@clinebot/core 0.0.29 → 0.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -7
- package/dist/session/default-session-manager.d.ts +5 -0
- package/dist/session/default-session-manager.d.ts.map +1 -1
- package/dist/telemetry/OpenTelemetryProvider.d.ts.map +1 -1
- package/dist/telemetry/index.js +2 -2
- package/package.json +4 -4
- package/src/runtime/checkpoint-hooks.test.ts +2 -1
- package/src/session/default-session-manager.ts +22 -0
- package/src/telemetry/OpenTelemetryAdapter.ts +1 -1
- package/src/telemetry/OpenTelemetryProvider.test.ts +191 -0
- package/src/telemetry/OpenTelemetryProvider.ts +2 -2
package/dist/telemetry/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{createRequire as tL}from"node:module";var uL=Object.create;var{getPrototypeOf:lL,defineProperty:LJ,getOwnPropertyNames:cL}=Object;var nL=Object.prototype.hasOwnProperty;function mL(Q){return this[Q]}var pL,gL,o=(Q,Y,G)=>{var K=Q!=null&&typeof Q==="object";if(K){var z=Y?pL??=new WeakMap:gL??=new WeakMap,W=z.get(Q);if(W)return W}G=Q!=null?uL(lL(Q)):{};let J=Y||!Q||!Q.__esModule?LJ(G,"default",{value:Q,enumerable:!0}):G;for(let Z of cL(Q))if(!nL.call(J,Z))LJ(J,Z,{get:mL.bind(Q,Z),enumerable:!0});if(K)z.set(Q,J);return J};var V=(Q,Y)=>()=>(Y||Q((Y={exports:{}}).exports,Y),Y.exports);var iL=(Q)=>Q;function oL(Q,Y){this[Q]=iL.bind(null,Y)}var aL=(Q,Y)=>{for(var G in Y)LJ(Q,G,{get:Y[G],enumerable:!0,configurable:!0,set:oL.bind(Y,G)})};var M1=(Q,Y)=>()=>(Q&&(Y=Q(Q=0)),Y);var j=tL(import.meta.url);class Q6{name;metadata;meter;logger;enabled;distinctId;commonProperties;counters=new Map;histograms=new Map;gauges=new Map;gaugeValues=new Map;meterProvider;loggerProvider;constructor(Q){this.name=Q.name??"OpenTelemetryAdapter",this.metadata={...Q.metadata},this.meterProvider=Q.meterProvider,this.loggerProvider=Q.loggerProvider,this.meter=Q.meterProvider?.getMeter("cline")??null,this.logger=Q.loggerProvider?.getLogger("cline")??null,this.enabled=Q.enabled??!0,this.distinctId=Q.distinctId,this.commonProperties=Q.commonProperties?{...Q.commonProperties}:{}}emit(Q,Y){if(!this.isEnabled())return;this.emitLog(Q,Y,!1)}emitRequired(Q,Y){this.emitLog(Q,Y,!0)}recordCounter(Q,Y,G,K,z=!1){if(!this.meter||!z&&!this.isEnabled())return;let W=this.counters.get(Q);if(!W)W=this.meter.createCounter(Q,K?{description:K}:void 0),this.counters.set(Q,W);W.add(Y,this.flattenProperties(this.buildAttributes(G)))}recordHistogram(Q,Y,G,K,z=!1){if(!this.meter||!z&&!this.isEnabled())return;let W=this.histograms.get(Q);if(!W)W=this.meter.createHistogram(Q,K?{description:K}:void 0),this.histograms.set(Q,W);W.record(Y,this.flattenProperties(this.buildAttributes(G)))}recordGauge(Q,Y,G,K,z=!1){if(!this.meter||!z&&!this.isEnabled())return;let W=this.buildAttributes(G),J=JSON.stringify(W),Z=this.gaugeValues.get(Q);if(Y===null){if(Z){if(Z.delete(J),Z.size===0)this.gaugeValues.delete(Q),this.gauges.delete(Q)}return}let X=Z;if(!X)X=new Map,this.gaugeValues.set(Q,X);if(!this.gauges.has(Q)){let q=this.meter.createObservableGauge(Q,K?{description:K}:void 0);q.addCallback((F)=>{for(let H of this.snapshotGaugeSeries(Q))F.observe(H.value,this.flattenProperties(H.attributes))}),this.gauges.set(Q,q)}X.set(J,{value:Y,attributes:W})}isEnabled(){return typeof this.enabled==="function"?this.enabled():this.enabled}setDistinctId(Q){this.distinctId=Q}setCommonProperties(Q){this.commonProperties={...Q}}updateCommonProperties(Q){this.commonProperties={...this.commonProperties,...Q}}async flush(){await Promise.all([this.meterProvider?.forceFlush?.(),this.loggerProvider?.forceFlush?.()])}async dispose(){await Promise.all([this.meterProvider?.shutdown?.(),this.loggerProvider?.shutdown?.()])}emitLog(Q,Y,G){if(!this.logger)return;let K=this.flattenProperties(this.buildAttributes(Y,G));this.logger.emit({severityText:"INFO",body:Q,attributes:K})}buildAttributes(Q,Y=!1){return{...this.commonProperties,...Q,...this.metadata,...this.distinctId?{distinct_id:this.distinctId}:{},...Y?{_required:!0}:{}}}snapshotGaugeSeries(Q){let Y=this.gaugeValues.get(Q);if(!Y)return[];return Array.from(Y.values(),(G)=>({value:G.value,attributes:G.attributes?{...G.attributes}:void 0}))}flattenProperties(Q,Y="",G=new WeakSet,K=0){if(!Q)return{};let z={},W=100,J=10;for(let[Z,X]of Object.entries(Q)){if(Z==="__proto__"||Z==="constructor"||Z==="prototype")continue;let q=Y?`${Y}.${Z}`:Z;if(X===null||X===void 0){z[q]=String(X);continue}if(Array.isArray(X)){let F=X.length>W?X.slice(0,W):X;try{z[q]=JSON.stringify(F)}catch{z[q]="[UnserializableArray]"}if(X.length>W)z[`${q}_truncated`]=!0,z[`${q}_original_length`]=X.length;continue}if(typeof X==="object"){if(X instanceof Date){z[q]=X.toISOString();continue}if(X instanceof Error){z[q]=X.message;continue}if(G.has(X)){z[q]="[Circular]";continue}if(K>=J){z[q]="[MaxDepthExceeded]";continue}G.add(X),Object.assign(z,this.flattenProperties(X,q,G,K+1));continue}if(rL(X)){z[q]=X;continue}try{z[q]=JSON.stringify(X)}catch{z[q]=String(X)}}return z}}function rL(Q){return typeof Q==="string"||typeof Q==="number"||typeof Q==="boolean"}var PJ=V((v8)=>{Object.defineProperty(v8,"__esModule",{value:!0});v8.VERSION=void 0;v8.VERSION="1.9.1"});var l8=V((d8)=>{Object.defineProperty(d8,"__esModule",{value:!0});d8.isCompatible=d8._makeCompatibilityCheck=void 0;var sL=PJ(),j8=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function b8(Q){let Y=new Set([Q]),G=new Set,K=Q.match(j8);if(!K)return()=>!1;let z={major:+K[1],minor:+K[2],patch:+K[3],prerelease:K[4]};if(z.prerelease!=null)return function(X){return X===Q};function W(Z){return G.add(Z),!1}function J(Z){return Y.add(Z),!0}return function(X){if(Y.has(X))return!0;if(G.has(X))return!1;let q=X.match(j8);if(!q)return W(X);let F={major:+q[1],minor:+q[2],patch:+q[3],prerelease:q[4]};if(F.prerelease!=null)return W(X);if(z.major!==F.major)return W(X);if(z.major===0){if(z.minor===F.minor&&z.patch<=F.patch)return J(X);return W(X)}if(z.minor<=F.minor)return J(X);return W(X)}}d8._makeCompatibilityCheck=b8;d8.isCompatible=b8(sL.VERSION)});var r0=V((c8)=>{Object.defineProperty(c8,"__esModule",{value:!0});c8.unregisterGlobal=c8.getGlobal=c8.registerGlobal=void 0;var P1=PJ(),ZM=l8(),JM=P1.VERSION.split(".")[0],X6=Symbol.for(`opentelemetry.js.api.${JM}`),Y6=typeof globalThis==="object"?globalThis:typeof self==="object"?self:typeof window==="object"?window:typeof global==="object"?global:{};function QM(Q,Y,G,K=!1){var z;let W=Y6[X6]=(z=Y6[X6])!==null&&z!==void 0?z:{version:P1.VERSION};if(!K&&W[Q]){let J=Error(`@opentelemetry/api: Attempted duplicate registration of API: ${Q}`);return G.error(J.stack||J.message),!1}if(W.version!==P1.VERSION){let J=Error(`@opentelemetry/api: Registration of version v${W.version} for ${Q} does not match previously registered API v${P1.VERSION}`);return G.error(J.stack||J.message),!1}return W[Q]=Y,G.debug(`@opentelemetry/api: Registered a global for ${Q} v${P1.VERSION}.`),!0}c8.registerGlobal=QM;function XM(Q){var Y,G;let K=(Y=Y6[X6])===null||Y===void 0?void 0:Y.version;if(!K||!(0,ZM.isCompatible)(K))return;return(G=Y6[X6])===null||G===void 0?void 0:G[Q]}c8.getGlobal=XM;function YM(Q,Y){Y.debug(`@opentelemetry/api: Unregistering a global for ${Q} v${P1.VERSION}.`);let G=Y6[X6];if(G)delete G[Q]}c8.unregisterGlobal=YM});var i8=V((p8)=>{Object.defineProperty(p8,"__esModule",{value:!0});p8.DiagComponentLogger=void 0;var WM=r0();class m8{constructor(Q){this._namespace=Q.namespace||"DiagComponentLogger"}debug(...Q){return z6("debug",this._namespace,Q)}error(...Q){return z6("error",this._namespace,Q)}info(...Q){return z6("info",this._namespace,Q)}warn(...Q){return z6("warn",this._namespace,Q)}verbose(...Q){return z6("verbose",this._namespace,Q)}}p8.DiagComponentLogger=m8;function z6(Q,Y,G){let K=(0,WM.getGlobal)("diag");if(!K)return;return K[Q](Y,...G)}});var t6=V((o8)=>{Object.defineProperty(o8,"__esModule",{value:!0});o8.DiagLogLevel=void 0;var qM;(function(Q){Q[Q.NONE=0]="NONE",Q[Q.ERROR=30]="ERROR",Q[Q.WARN=50]="WARN",Q[Q.INFO=60]="INFO",Q[Q.DEBUG=70]="DEBUG",Q[Q.VERBOSE=80]="VERBOSE",Q[Q.ALL=9999]="ALL"})(qM=o8.DiagLogLevel||(o8.DiagLogLevel={}))});var r8=V((a8)=>{Object.defineProperty(a8,"__esModule",{value:!0});a8.createLogLevelDiagLogger=void 0;var $0=t6();function KM(Q,Y){if(Q<$0.DiagLogLevel.NONE)Q=$0.DiagLogLevel.NONE;else if(Q>$0.DiagLogLevel.ALL)Q=$0.DiagLogLevel.ALL;Y=Y||{};function G(K,z){let W=Y[K];if(typeof W==="function"&&Q>=z)return W.bind(Y);return function(){}}return{error:G("error",$0.DiagLogLevel.ERROR),warn:G("warn",$0.DiagLogLevel.WARN),info:G("info",$0.DiagLogLevel.INFO),debug:G("debug",$0.DiagLogLevel.DEBUG),verbose:G("verbose",$0.DiagLogLevel.VERBOSE)}}a8.createLogLevelDiagLogger=KM});var s0=V((e8)=>{Object.defineProperty(e8,"__esModule",{value:!0});e8.DiagAPI=void 0;var FM=i8(),HM=r8(),s8=t6(),r6=r0(),OM="diag";class RJ{static instance(){if(!this._instance)this._instance=new RJ;return this._instance}constructor(){function Q(K){return function(...z){let W=(0,r6.getGlobal)("diag");if(!W)return;return W[K](...z)}}let Y=this,G=(K,z={logLevel:s8.DiagLogLevel.INFO})=>{var W,J,Z;if(K===Y){let F=Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return Y.error((W=F.stack)!==null&&W!==void 0?W:F.message),!1}if(typeof z==="number")z={logLevel:z};let X=(0,r6.getGlobal)("diag"),q=(0,HM.createLogLevelDiagLogger)((J=z.logLevel)!==null&&J!==void 0?J:s8.DiagLogLevel.INFO,K);if(X&&!z.suppressOverrideMessage){let F=(Z=Error().stack)!==null&&Z!==void 0?Z:"<failed to generate stacktrace>";X.warn(`Current logger will be overwritten from ${F}`),q.warn(`Current logger will overwrite one already registered from ${F}`)}return(0,r6.registerGlobal)("diag",q,Y,!0)};Y.setLogger=G,Y.disable=()=>{(0,r6.unregisterGlobal)(OM,Y)},Y.createComponentLogger=(K)=>{return new FM.DiagComponentLogger(K)},Y.verbose=Q("verbose"),Y.debug=Q("debug"),Y.info=Q("info"),Y.warn=Q("warn"),Y.error=Q("error")}}e8.DiagAPI=RJ});var XQ=V((JQ)=>{Object.defineProperty(JQ,"__esModule",{value:!0});JQ.BaggageImpl=void 0;class w1{constructor(Q){this._entries=Q?new Map(Q):new Map}getEntry(Q){let Y=this._entries.get(Q);if(!Y)return;return Object.assign({},Y)}getAllEntries(){return Array.from(this._entries.entries())}setEntry(Q,Y){let G=new w1(this._entries);return G._entries.set(Q,Y),G}removeEntry(Q){let Y=new w1(this._entries);return Y._entries.delete(Q),Y}removeEntries(...Q){let Y=new w1(this._entries);for(let G of Q)Y._entries.delete(G);return Y}clear(){return new w1}}JQ.BaggageImpl=w1});var GQ=V((YQ)=>{Object.defineProperty(YQ,"__esModule",{value:!0});YQ.baggageEntryMetadataSymbol=void 0;YQ.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")});var kJ=V((WQ)=>{Object.defineProperty(WQ,"__esModule",{value:!0});WQ.baggageEntryMetadataFromString=WQ.createBaggage=void 0;var BM=s0(),VM=XQ(),NM=GQ(),IM=BM.DiagAPI.instance();function CM(Q={}){return new VM.BaggageImpl(new Map(Object.entries(Q)))}WQ.createBaggage=CM;function DM(Q){if(typeof Q!=="string")IM.error(`Cannot create baggage metadata from unknown type: ${typeof Q}`),Q="";return{__TYPE__:NM.baggageEntryMetadataSymbol,toString(){return Q}}}WQ.baggageEntryMetadataFromString=DM});var G6=V((KQ)=>{Object.defineProperty(KQ,"__esModule",{value:!0});KQ.ROOT_CONTEXT=KQ.createContextKey=void 0;function AM(Q){return Symbol.for(Q)}KQ.createContextKey=AM;class s6{constructor(Q){let Y=this;Y._currentContext=Q?new Map(Q):new Map,Y.getValue=(G)=>Y._currentContext.get(G),Y.setValue=(G,K)=>{let z=new s6(Y._currentContext);return z._currentContext.set(G,K),z},Y.deleteValue=(G)=>{let K=new s6(Y._currentContext);return K._currentContext.delete(G),K}}}KQ.ROOT_CONTEXT=new s6});var VQ=V((OQ)=>{Object.defineProperty(OQ,"__esModule",{value:!0});OQ.DiagConsoleLogger=OQ._originalConsoleMethods=void 0;var $J=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}];OQ._originalConsoleMethods={};if(typeof console<"u"){let Q=["error","warn","info","debug","trace","log"];for(let Y of Q)if(typeof console[Y]==="function")OQ._originalConsoleMethods[Y]=console[Y]}class HQ{constructor(){function Q(Y){return function(...G){let K=OQ._originalConsoleMethods[Y];if(typeof K!=="function")K=OQ._originalConsoleMethods.log;if(typeof K!=="function"&&console){if(K=console[Y],typeof K!=="function")K=console.log}if(typeof K==="function")return K.apply(console,G)}}for(let Y=0;Y<$J.length;Y++)this[$J[Y].n]=Q($J[Y].c)}}OQ.DiagConsoleLogger=HQ});var dJ=V((NQ)=>{Object.defineProperty(NQ,"__esModule",{value:!0});NQ.createNoopMeter=NQ.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=NQ.NOOP_OBSERVABLE_GAUGE_METRIC=NQ.NOOP_OBSERVABLE_COUNTER_METRIC=NQ.NOOP_UP_DOWN_COUNTER_METRIC=NQ.NOOP_HISTOGRAM_METRIC=NQ.NOOP_GAUGE_METRIC=NQ.NOOP_COUNTER_METRIC=NQ.NOOP_METER=NQ.NoopObservableUpDownCounterMetric=NQ.NoopObservableGaugeMetric=NQ.NoopObservableCounterMetric=NQ.NoopObservableMetric=NQ.NoopHistogramMetric=NQ.NoopGaugeMetric=NQ.NoopUpDownCounterMetric=NQ.NoopCounterMetric=NQ.NoopMetric=NQ.NoopMeter=void 0;class SJ{constructor(){}createGauge(Q,Y){return NQ.NOOP_GAUGE_METRIC}createHistogram(Q,Y){return NQ.NOOP_HISTOGRAM_METRIC}createCounter(Q,Y){return NQ.NOOP_COUNTER_METRIC}createUpDownCounter(Q,Y){return NQ.NOOP_UP_DOWN_COUNTER_METRIC}createObservableGauge(Q,Y){return NQ.NOOP_OBSERVABLE_GAUGE_METRIC}createObservableCounter(Q,Y){return NQ.NOOP_OBSERVABLE_COUNTER_METRIC}createObservableUpDownCounter(Q,Y){return NQ.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC}addBatchObservableCallback(Q,Y){}removeBatchObservableCallback(Q){}}NQ.NoopMeter=SJ;class R1{}NQ.NoopMetric=R1;class fJ extends R1{add(Q,Y){}}NQ.NoopCounterMetric=fJ;class _J extends R1{add(Q,Y){}}NQ.NoopUpDownCounterMetric=_J;class yJ extends R1{record(Q,Y){}}NQ.NoopGaugeMetric=yJ;class vJ extends R1{record(Q,Y){}}NQ.NoopHistogramMetric=vJ;class W6{addCallback(Q){}removeCallback(Q){}}NQ.NoopObservableMetric=W6;class xJ extends W6{}NQ.NoopObservableCounterMetric=xJ;class jJ extends W6{}NQ.NoopObservableGaugeMetric=jJ;class bJ extends W6{}NQ.NoopObservableUpDownCounterMetric=bJ;NQ.NOOP_METER=new SJ;NQ.NOOP_COUNTER_METRIC=new fJ;NQ.NOOP_GAUGE_METRIC=new yJ;NQ.NOOP_HISTOGRAM_METRIC=new vJ;NQ.NOOP_UP_DOWN_COUNTER_METRIC=new _J;NQ.NOOP_OBSERVABLE_COUNTER_METRIC=new xJ;NQ.NOOP_OBSERVABLE_GAUGE_METRIC=new jJ;NQ.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=new bJ;function TM(){return NQ.NOOP_METER}NQ.createNoopMeter=TM});var PQ=V((MQ)=>{Object.defineProperty(MQ,"__esModule",{value:!0});MQ.ValueType=void 0;var _M;(function(Q){Q[Q.INT=0]="INT",Q[Q.DOUBLE=1]="DOUBLE"})(_M=MQ.ValueType||(MQ.ValueType={}))});var lJ=V((wQ)=>{Object.defineProperty(wQ,"__esModule",{value:!0});wQ.defaultTextMapSetter=wQ.defaultTextMapGetter=void 0;wQ.defaultTextMapGetter={get(Q,Y){if(Q==null)return;return Q[Y]},keys(Q){if(Q==null)return[];return Object.keys(Q)}};wQ.defaultTextMapSetter={set(Q,Y,G){if(Q==null)return;Q[Y]=G}}});var fQ=V(($Q)=>{Object.defineProperty($Q,"__esModule",{value:!0});$Q.NoopContextManager=void 0;var vM=G6();class kQ{active(){return vM.ROOT_CONTEXT}with(Q,Y,G,...K){return Y.call(G,...K)}bind(Q,Y){return Y}enable(){return this}disable(){return this}}$Q.NoopContextManager=kQ});var q6=V((yQ)=>{Object.defineProperty(yQ,"__esModule",{value:!0});yQ.ContextAPI=void 0;var xM=fQ(),cJ=r0(),_Q=s0(),nJ="context",jM=new xM.NoopContextManager;class mJ{constructor(){}static getInstance(){if(!this._instance)this._instance=new mJ;return this._instance}setGlobalContextManager(Q){return(0,cJ.registerGlobal)(nJ,Q,_Q.DiagAPI.instance())}active(){return this._getContextManager().active()}with(Q,Y,G,...K){return this._getContextManager().with(Q,Y,G,...K)}bind(Q,Y){return this._getContextManager().bind(Q,Y)}_getContextManager(){return(0,cJ.getGlobal)(nJ)||jM}disable(){this._getContextManager().disable(),(0,cJ.unregisterGlobal)(nJ,_Q.DiagAPI.instance())}}yQ.ContextAPI=mJ});var gJ=V((xQ)=>{Object.defineProperty(xQ,"__esModule",{value:!0});xQ.TraceFlags=void 0;var bM;(function(Q){Q[Q.NONE=0]="NONE",Q[Q.SAMPLED=1]="SAMPLED"})(bM=xQ.TraceFlags||(xQ.TraceFlags={}))});var ZZ=V((jQ)=>{Object.defineProperty(jQ,"__esModule",{value:!0});jQ.INVALID_SPAN_CONTEXT=jQ.INVALID_TRACEID=jQ.INVALID_SPANID=void 0;var dM=gJ();jQ.INVALID_SPANID="0000000000000000";jQ.INVALID_TRACEID="00000000000000000000000000000000";jQ.INVALID_SPAN_CONTEXT={traceId:jQ.INVALID_TRACEID,spanId:jQ.INVALID_SPANID,traceFlags:dM.TraceFlags.NONE}});var JZ=V((cQ)=>{Object.defineProperty(cQ,"__esModule",{value:!0});cQ.NonRecordingSpan=void 0;var uM=ZZ();class lQ{constructor(Q=uM.INVALID_SPAN_CONTEXT){this._spanContext=Q}spanContext(){return this._spanContext}setAttribute(Q,Y){return this}setAttributes(Q){return this}addEvent(Q,Y){return this}addLink(Q){return this}addLinks(Q){return this}setStatus(Q){return this}updateName(Q){return this}end(Q){}isRecording(){return!1}recordException(Q,Y){}}cQ.NonRecordingSpan=lQ});var aJ=V((pQ)=>{Object.defineProperty(pQ,"__esModule",{value:!0});pQ.getSpanContext=pQ.setSpanContext=pQ.deleteSpan=pQ.setSpan=pQ.getActiveSpan=pQ.getSpan=void 0;var lM=G6(),cM=JZ(),nM=q6(),iJ=(0,lM.createContextKey)("OpenTelemetry Context Key SPAN");function oJ(Q){return Q.getValue(iJ)||void 0}pQ.getSpan=oJ;function mM(){return oJ(nM.ContextAPI.getInstance().active())}pQ.getActiveSpan=mM;function mQ(Q,Y){return Q.setValue(iJ,Y)}pQ.setSpan=mQ;function pM(Q){return Q.deleteValue(iJ)}pQ.deleteSpan=pM;function gM(Q,Y){return mQ(Q,new cM.NonRecordingSpan(Y))}pQ.setSpanContext=gM;function iM(Q){var Y;return(Y=oJ(Q))===null||Y===void 0?void 0:Y.spanContext()}pQ.getSpanContext=iM});var XZ=V((rQ)=>{Object.defineProperty(rQ,"__esModule",{value:!0});rQ.wrapSpanContext=rQ.isSpanContextValid=rQ.isValidSpanId=rQ.isValidTraceId=void 0;var iQ=ZZ(),eM=JZ(),QZ=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 oQ(Q,Y){if(typeof Q!=="string"||Q.length!==Y)return!1;let G=0;for(let K=0;K<Q.length;K+=4)G+=(QZ[Q.charCodeAt(K)]|0)+(QZ[Q.charCodeAt(K+1)]|0)+(QZ[Q.charCodeAt(K+2)]|0)+(QZ[Q.charCodeAt(K+3)]|0);return G===Y}function aQ(Q){return oQ(Q,32)&&Q!==iQ.INVALID_TRACEID}rQ.isValidTraceId=aQ;function tQ(Q){return oQ(Q,16)&&Q!==iQ.INVALID_SPANID}rQ.isValidSpanId=tQ;function Z2(Q){return aQ(Q.traceId)&&tQ(Q.spanId)}rQ.isSpanContextValid=Z2;function J2(Q){return new eM.NonRecordingSpan(Q)}rQ.wrapSpanContext=J2});var sJ=V((J5)=>{Object.defineProperty(J5,"__esModule",{value:!0});J5.NoopTracer=void 0;var z2=q6(),eQ=aJ(),tJ=JZ(),G2=XZ(),rJ=z2.ContextAPI.getInstance();class Z5{startSpan(Q,Y,G=rJ.active()){if(Boolean(Y===null||Y===void 0?void 0:Y.root))return new tJ.NonRecordingSpan;let z=G&&(0,eQ.getSpanContext)(G);if(W2(z)&&(0,G2.isSpanContextValid)(z))return new tJ.NonRecordingSpan(z);else return new tJ.NonRecordingSpan}startActiveSpan(Q,Y,G,K){let z,W,J;if(arguments.length<2)return;else if(arguments.length===2)J=Y;else if(arguments.length===3)z=Y,J=G;else z=Y,W=G,J=K;let Z=W!==null&&W!==void 0?W:rJ.active(),X=this.startSpan(Q,z,Z),q=(0,eQ.setSpan)(Z,X);return rJ.with(q,J,void 0,X)}}J5.NoopTracer=Z5;function W2(Q){return Q!==null&&typeof Q==="object"&&"spanId"in Q&&typeof Q.spanId==="string"&&"traceId"in Q&&typeof Q.traceId==="string"&&"traceFlags"in Q&&typeof Q.traceFlags==="number"}});var eJ=V((Y5)=>{Object.defineProperty(Y5,"__esModule",{value:!0});Y5.ProxyTracer=void 0;var q2=sJ(),K2=new q2.NoopTracer;class X5{constructor(Q,Y,G,K){this._provider=Q,this.name=Y,this.version=G,this.options=K}startSpan(Q,Y,G){return this._getTracer().startSpan(Q,Y,G)}startActiveSpan(Q,Y,G,K){let z=this._getTracer();return Reflect.apply(z.startActiveSpan,z,arguments)}_getTracer(){if(this._delegate)return this._delegate;let Q=this._provider.getDelegateTracer(this.name,this.version,this.options);if(!Q)return K2;return this._delegate=Q,this._delegate}}Y5.ProxyTracer=X5});var K5=V((W5)=>{Object.defineProperty(W5,"__esModule",{value:!0});W5.NoopTracerProvider=void 0;var F2=sJ();class G5{getTracer(Q,Y,G){return new F2.NoopTracer}}W5.NoopTracerProvider=G5});var Z7=V((H5)=>{Object.defineProperty(H5,"__esModule",{value:!0});H5.ProxyTracerProvider=void 0;var H2=eJ(),O2=K5(),B2=new O2.NoopTracerProvider;class F5{getTracer(Q,Y,G){var K;return(K=this.getDelegateTracer(Q,Y,G))!==null&&K!==void 0?K:new H2.ProxyTracer(this,Q,Y,G)}getDelegate(){var Q;return(Q=this._delegate)!==null&&Q!==void 0?Q:B2}setDelegate(Q){this._delegate=Q}getDelegateTracer(Q,Y,G){var K;return(K=this._delegate)===null||K===void 0?void 0:K.getTracer(Q,Y,G)}}H5.ProxyTracerProvider=F5});var V5=V((B5)=>{Object.defineProperty(B5,"__esModule",{value:!0});B5.SamplingDecision=void 0;var V2;(function(Q){Q[Q.NOT_RECORD=0]="NOT_RECORD",Q[Q.RECORD=1]="RECORD",Q[Q.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(V2=B5.SamplingDecision||(B5.SamplingDecision={}))});var I5=V((N5)=>{Object.defineProperty(N5,"__esModule",{value:!0});N5.SpanKind=void 0;var N2;(function(Q){Q[Q.INTERNAL=0]="INTERNAL",Q[Q.SERVER=1]="SERVER",Q[Q.CLIENT=2]="CLIENT",Q[Q.PRODUCER=3]="PRODUCER",Q[Q.CONSUMER=4]="CONSUMER"})(N2=N5.SpanKind||(N5.SpanKind={}))});var D5=V((C5)=>{Object.defineProperty(C5,"__esModule",{value:!0});C5.SpanStatusCode=void 0;var I2;(function(Q){Q[Q.UNSET=0]="UNSET",Q[Q.OK=1]="OK",Q[Q.ERROR=2]="ERROR"})(I2=C5.SpanStatusCode||(C5.SpanStatusCode={}))});var E5=V((U5)=>{Object.defineProperty(U5,"__esModule",{value:!0});U5.validateValue=U5.validateKey=void 0;var Y7="[_0-9a-z-*/]",C2=`[a-z]${Y7}{0,255}`,D2=`[a-z0-9]${Y7}{0,240}@[a-z]${Y7}{0,13}`,U2=new RegExp(`^(?:${C2}|${D2})$`),A2=/^[ -~]{0,255}[!-~]$/,E2=/,|=/;function T2(Q){return U2.test(Q)}U5.validateKey=T2;function h2(Q){return A2.test(Q)&&!E2.test(Q)}U5.validateValue=h2});var R5=V((P5)=>{Object.defineProperty(P5,"__esModule",{value:!0});P5.TraceStateImpl=void 0;var T5=E5(),h5=32,M2=512,L5=",",M5="=";class z7{constructor(Q){if(this._internalState=new Map,Q)this._parse(Q)}set(Q,Y){let G=this._clone();if(G._internalState.has(Q))G._internalState.delete(Q);return G._internalState.set(Q,Y),G}unset(Q){let Y=this._clone();return Y._internalState.delete(Q),Y}get(Q){return this._internalState.get(Q)}serialize(){return Array.from(this._internalState.keys()).reduceRight((Q,Y)=>{return Q.push(Y+M5+this.get(Y)),Q},[]).join(L5)}_parse(Q){if(Q.length>M2)return;if(this._internalState=Q.split(L5).reduceRight((Y,G)=>{let K=G.trim(),z=K.indexOf(M5);if(z!==-1){let W=K.slice(0,z),J=K.slice(z+1,G.length);if((0,T5.validateKey)(W)&&(0,T5.validateValue)(J))Y.set(W,J)}return Y},new Map),this._internalState.size>h5)this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,h5))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let Q=new z7;return Q._internalState=new Map(this._internalState),Q}}P5.TraceStateImpl=z7});var S5=V((k5)=>{Object.defineProperty(k5,"__esModule",{value:!0});k5.createTraceState=void 0;var P2=R5();function w2(Q){return new P2.TraceStateImpl(Q)}k5.createTraceState=w2});var y5=V((f5)=>{Object.defineProperty(f5,"__esModule",{value:!0});f5.context=void 0;var R2=q6();f5.context=R2.ContextAPI.getInstance()});var j5=V((v5)=>{Object.defineProperty(v5,"__esModule",{value:!0});v5.diag=void 0;var k2=s0();v5.diag=k2.DiagAPI.instance()});var u5=V((b5)=>{Object.defineProperty(b5,"__esModule",{value:!0});b5.NOOP_METER_PROVIDER=b5.NoopMeterProvider=void 0;var $2=dJ();class G7{getMeter(Q,Y,G){return $2.NOOP_METER}}b5.NoopMeterProvider=G7;b5.NOOP_METER_PROVIDER=new G7});var m5=V((c5)=>{Object.defineProperty(c5,"__esModule",{value:!0});c5.MetricsAPI=void 0;var f2=u5(),W7=r0(),l5=s0(),q7="metrics";class K7{constructor(){}static getInstance(){if(!this._instance)this._instance=new K7;return this._instance}setGlobalMeterProvider(Q){return(0,W7.registerGlobal)(q7,Q,l5.DiagAPI.instance())}getMeterProvider(){return(0,W7.getGlobal)(q7)||f2.NOOP_METER_PROVIDER}getMeter(Q,Y,G){return this.getMeterProvider().getMeter(Q,Y,G)}disable(){(0,W7.unregisterGlobal)(q7,l5.DiagAPI.instance())}}c5.MetricsAPI=K7});var i5=V((p5)=>{Object.defineProperty(p5,"__esModule",{value:!0});p5.metrics=void 0;var _2=m5();p5.metrics=_2.MetricsAPI.getInstance()});var r5=V((a5)=>{Object.defineProperty(a5,"__esModule",{value:!0});a5.NoopTextMapPropagator=void 0;class o5{inject(Q,Y){}extract(Q,Y){return Q}fields(){return[]}}a5.NoopTextMapPropagator=o5});var JX=V((e5)=>{Object.defineProperty(e5,"__esModule",{value:!0});e5.deleteBaggage=e5.setBaggage=e5.getActiveBaggage=e5.getBaggage=void 0;var y2=q6(),v2=G6(),F7=(0,v2.createContextKey)("OpenTelemetry Baggage Key");function s5(Q){return Q.getValue(F7)||void 0}e5.getBaggage=s5;function x2(){return s5(y2.ContextAPI.getInstance().active())}e5.getActiveBaggage=x2;function j2(Q,Y){return Q.setValue(F7,Y)}e5.setBaggage=j2;function b2(Q){return Q.deleteValue(F7)}e5.deleteBaggage=b2});var GX=V((YX)=>{Object.defineProperty(YX,"__esModule",{value:!0});YX.PropagationAPI=void 0;var H7=r0(),c2=r5(),QX=lJ(),YZ=JX(),n2=kJ(),XX=s0(),O7="propagation",m2=new c2.NoopTextMapPropagator;class B7{constructor(){this.createBaggage=n2.createBaggage,this.getBaggage=YZ.getBaggage,this.getActiveBaggage=YZ.getActiveBaggage,this.setBaggage=YZ.setBaggage,this.deleteBaggage=YZ.deleteBaggage}static getInstance(){if(!this._instance)this._instance=new B7;return this._instance}setGlobalPropagator(Q){return(0,H7.registerGlobal)(O7,Q,XX.DiagAPI.instance())}inject(Q,Y,G=QX.defaultTextMapSetter){return this._getGlobalPropagator().inject(Q,Y,G)}extract(Q,Y,G=QX.defaultTextMapGetter){return this._getGlobalPropagator().extract(Q,Y,G)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,H7.unregisterGlobal)(O7,XX.DiagAPI.instance())}_getGlobalPropagator(){return(0,H7.getGlobal)(O7)||m2}}YX.PropagationAPI=B7});var KX=V((WX)=>{Object.defineProperty(WX,"__esModule",{value:!0});WX.propagation=void 0;var p2=GX();WX.propagation=p2.PropagationAPI.getInstance()});var NX=V((BX)=>{Object.defineProperty(BX,"__esModule",{value:!0});BX.TraceAPI=void 0;var V7=r0(),FX=Z7(),HX=XZ(),k1=aJ(),OX=s0(),N7="trace";class I7{constructor(){this._proxyTracerProvider=new FX.ProxyTracerProvider,this.wrapSpanContext=HX.wrapSpanContext,this.isSpanContextValid=HX.isSpanContextValid,this.deleteSpan=k1.deleteSpan,this.getSpan=k1.getSpan,this.getActiveSpan=k1.getActiveSpan,this.getSpanContext=k1.getSpanContext,this.setSpan=k1.setSpan,this.setSpanContext=k1.setSpanContext}static getInstance(){if(!this._instance)this._instance=new I7;return this._instance}setGlobalTracerProvider(Q){let Y=(0,V7.registerGlobal)(N7,this._proxyTracerProvider,OX.DiagAPI.instance());if(Y)this._proxyTracerProvider.setDelegate(Q);return Y}getTracerProvider(){return(0,V7.getGlobal)(N7)||this._proxyTracerProvider}getTracer(Q,Y){return this.getTracerProvider().getTracer(Q,Y)}disable(){(0,V7.unregisterGlobal)(N7,OX.DiagAPI.instance()),this._proxyTracerProvider=new FX.ProxyTracerProvider}}BX.TraceAPI=I7});var DX=V((IX)=>{Object.defineProperty(IX,"__esModule",{value:!0});IX.trace=void 0;var g2=NX();IX.trace=g2.TraceAPI.getInstance()});var T=V((v)=>{Object.defineProperty(v,"__esModule",{value:!0});v.trace=v.propagation=v.metrics=v.diag=v.context=v.INVALID_SPAN_CONTEXT=v.INVALID_TRACEID=v.INVALID_SPANID=v.isValidSpanId=v.isValidTraceId=v.isSpanContextValid=v.createTraceState=v.TraceFlags=v.SpanStatusCode=v.SpanKind=v.SamplingDecision=v.ProxyTracerProvider=v.ProxyTracer=v.defaultTextMapSetter=v.defaultTextMapGetter=v.ValueType=v.createNoopMeter=v.DiagLogLevel=v.DiagConsoleLogger=v.ROOT_CONTEXT=v.createContextKey=v.baggageEntryMetadataFromString=void 0;var i2=kJ();Object.defineProperty(v,"baggageEntryMetadataFromString",{enumerable:!0,get:function(){return i2.baggageEntryMetadataFromString}});var UX=G6();Object.defineProperty(v,"createContextKey",{enumerable:!0,get:function(){return UX.createContextKey}});Object.defineProperty(v,"ROOT_CONTEXT",{enumerable:!0,get:function(){return UX.ROOT_CONTEXT}});var o2=VQ();Object.defineProperty(v,"DiagConsoleLogger",{enumerable:!0,get:function(){return o2.DiagConsoleLogger}});var a2=t6();Object.defineProperty(v,"DiagLogLevel",{enumerable:!0,get:function(){return a2.DiagLogLevel}});var t2=dJ();Object.defineProperty(v,"createNoopMeter",{enumerable:!0,get:function(){return t2.createNoopMeter}});var r2=PQ();Object.defineProperty(v,"ValueType",{enumerable:!0,get:function(){return r2.ValueType}});var AX=lJ();Object.defineProperty(v,"defaultTextMapGetter",{enumerable:!0,get:function(){return AX.defaultTextMapGetter}});Object.defineProperty(v,"defaultTextMapSetter",{enumerable:!0,get:function(){return AX.defaultTextMapSetter}});var s2=eJ();Object.defineProperty(v,"ProxyTracer",{enumerable:!0,get:function(){return s2.ProxyTracer}});var e2=Z7();Object.defineProperty(v,"ProxyTracerProvider",{enumerable:!0,get:function(){return e2.ProxyTracerProvider}});var ZP=V5();Object.defineProperty(v,"SamplingDecision",{enumerable:!0,get:function(){return ZP.SamplingDecision}});var JP=I5();Object.defineProperty(v,"SpanKind",{enumerable:!0,get:function(){return JP.SpanKind}});var QP=D5();Object.defineProperty(v,"SpanStatusCode",{enumerable:!0,get:function(){return QP.SpanStatusCode}});var XP=gJ();Object.defineProperty(v,"TraceFlags",{enumerable:!0,get:function(){return XP.TraceFlags}});var YP=S5();Object.defineProperty(v,"createTraceState",{enumerable:!0,get:function(){return YP.createTraceState}});var C7=XZ();Object.defineProperty(v,"isSpanContextValid",{enumerable:!0,get:function(){return C7.isSpanContextValid}});Object.defineProperty(v,"isValidTraceId",{enumerable:!0,get:function(){return C7.isValidTraceId}});Object.defineProperty(v,"isValidSpanId",{enumerable:!0,get:function(){return C7.isValidSpanId}});var D7=ZZ();Object.defineProperty(v,"INVALID_SPANID",{enumerable:!0,get:function(){return D7.INVALID_SPANID}});Object.defineProperty(v,"INVALID_TRACEID",{enumerable:!0,get:function(){return D7.INVALID_TRACEID}});Object.defineProperty(v,"INVALID_SPAN_CONTEXT",{enumerable:!0,get:function(){return D7.INVALID_SPAN_CONTEXT}});var EX=y5();Object.defineProperty(v,"context",{enumerable:!0,get:function(){return EX.context}});var TX=j5();Object.defineProperty(v,"diag",{enumerable:!0,get:function(){return TX.diag}});var hX=i5();Object.defineProperty(v,"metrics",{enumerable:!0,get:function(){return hX.metrics}});var LX=KX();Object.defineProperty(v,"propagation",{enumerable:!0,get:function(){return LX.propagation}});var MX=DX();Object.defineProperty(v,"trace",{enumerable:!0,get:function(){return MX.trace}});v.default={context:EX.context,diag:TX.diag,metrics:hX.metrics,propagation:LX.propagation,trace:MX.trace}});var wX=V((PX)=>{Object.defineProperty(PX,"__esModule",{value:!0});PX.SeverityNumber=void 0;var WP;(function(Q){Q[Q.UNSPECIFIED=0]="UNSPECIFIED",Q[Q.TRACE=1]="TRACE",Q[Q.TRACE2=2]="TRACE2",Q[Q.TRACE3=3]="TRACE3",Q[Q.TRACE4=4]="TRACE4",Q[Q.DEBUG=5]="DEBUG",Q[Q.DEBUG2=6]="DEBUG2",Q[Q.DEBUG3=7]="DEBUG3",Q[Q.DEBUG4=8]="DEBUG4",Q[Q.INFO=9]="INFO",Q[Q.INFO2=10]="INFO2",Q[Q.INFO3=11]="INFO3",Q[Q.INFO4=12]="INFO4",Q[Q.WARN=13]="WARN",Q[Q.WARN2=14]="WARN2",Q[Q.WARN3=15]="WARN3",Q[Q.WARN4=16]="WARN4",Q[Q.ERROR=17]="ERROR",Q[Q.ERROR2=18]="ERROR2",Q[Q.ERROR3=19]="ERROR3",Q[Q.ERROR4=20]="ERROR4",Q[Q.FATAL=21]="FATAL",Q[Q.FATAL2=22]="FATAL2",Q[Q.FATAL3=23]="FATAL3",Q[Q.FATAL4=24]="FATAL4"})(WP=PX.SeverityNumber||(PX.SeverityNumber={}))});var zZ=V((RX)=>{Object.defineProperty(RX,"__esModule",{value:!0});RX.NOOP_LOGGER=RX.NoopLogger=void 0;class A7{emit(Q){}}RX.NoopLogger=A7;RX.NOOP_LOGGER=new A7});var fX=V(($X)=>{Object.defineProperty($X,"__esModule",{value:!0});$X.API_BACKWARDS_COMPATIBILITY_VERSION=$X.makeGetter=$X._global=$X.GLOBAL_LOGS_API_KEY=void 0;$X.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");$X._global=globalThis;function KP(Q,Y,G){return(K)=>K===Q?Y:G}$X.makeGetter=KP;$X.API_BACKWARDS_COMPATIBILITY_VERSION=1});var T7=V((_X)=>{Object.defineProperty(_X,"__esModule",{value:!0});_X.NOOP_LOGGER_PROVIDER=_X.NoopLoggerProvider=void 0;var BP=zZ();class E7{getLogger(Q,Y,G){return new BP.NoopLogger}}_X.NoopLoggerProvider=E7;_X.NOOP_LOGGER_PROVIDER=new E7});var bX=V((xX)=>{Object.defineProperty(xX,"__esModule",{value:!0});xX.ProxyLogger=void 0;var NP=zZ();class vX{constructor(Q,Y,G,K){this._provider=Q,this.name=Y,this.version=G,this.options=K}emit(Q){this._getLogger().emit(Q)}_getLogger(){if(this._delegate)return this._delegate;let Q=this._provider._getDelegateLogger(this.name,this.version,this.options);if(!Q)return NP.NOOP_LOGGER;return this._delegate=Q,this._delegate}}xX.ProxyLogger=vX});var cX=V((uX)=>{Object.defineProperty(uX,"__esModule",{value:!0});uX.ProxyLoggerProvider=void 0;var IP=T7(),CP=bX();class dX{getLogger(Q,Y,G){var K;return(K=this._getDelegateLogger(Q,Y,G))!==null&&K!==void 0?K:new CP.ProxyLogger(this,Q,Y,G)}_getDelegate(){var Q;return(Q=this._delegate)!==null&&Q!==void 0?Q:IP.NOOP_LOGGER_PROVIDER}_setDelegate(Q){this._delegate=Q}_getDelegateLogger(Q,Y,G){var K;return(K=this._delegate)===null||K===void 0?void 0:K.getLogger(Q,Y,G)}}uX.ProxyLoggerProvider=dX});var gX=V((mX)=>{Object.defineProperty(mX,"__esModule",{value:!0});mX.LogsAPI=void 0;var G0=fX(),DP=T7(),nX=cX();class h7{constructor(){this._proxyLoggerProvider=new nX.ProxyLoggerProvider}static getInstance(){if(!this._instance)this._instance=new h7;return this._instance}setGlobalLoggerProvider(Q){if(G0._global[G0.GLOBAL_LOGS_API_KEY])return this.getLoggerProvider();return G0._global[G0.GLOBAL_LOGS_API_KEY]=(0,G0.makeGetter)(G0.API_BACKWARDS_COMPATIBILITY_VERSION,Q,DP.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider._setDelegate(Q),Q}getLoggerProvider(){var Q,Y;return(Y=(Q=G0._global[G0.GLOBAL_LOGS_API_KEY])===null||Q===void 0?void 0:Q.call(G0._global,G0.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&Y!==void 0?Y:this._proxyLoggerProvider}getLogger(Q,Y,G){return this.getLoggerProvider().getLogger(Q,Y,G)}disable(){delete G0._global[G0.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new nX.ProxyLoggerProvider}}mX.LogsAPI=h7});var $1=V((K6)=>{Object.defineProperty(K6,"__esModule",{value:!0});K6.logs=K6.NoopLogger=K6.NOOP_LOGGER=K6.SeverityNumber=void 0;var UP=wX();Object.defineProperty(K6,"SeverityNumber",{enumerable:!0,get:function(){return UP.SeverityNumber}});var iX=zZ();Object.defineProperty(K6,"NOOP_LOGGER",{enumerable:!0,get:function(){return iX.NOOP_LOGGER}});Object.defineProperty(K6,"NoopLogger",{enumerable:!0,get:function(){return iX.NoopLogger}});var AP=gX();K6.logs=AP.LogsAPI.getInstance()});var sX=V((tX)=>{Object.defineProperty(tX,"__esModule",{value:!0});tX.OTLPExporterBase=void 0;class aX{_delegate;constructor(Q){this._delegate=Q}export(Q,Y){this._delegate.export(Q,Y)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}tX.OTLPExporterBase=aX});var GZ=V((Z9)=>{Object.defineProperty(Z9,"__esModule",{value:!0});Z9.OTLPExporterError=void 0;class eX extends Error{code;name="OTLPExporterError";data;constructor(Q,Y,G){super(Q);this.data=G,this.code=Y}}Z9.OTLPExporterError=eX});var F6=V((X9)=>{Object.defineProperty(X9,"__esModule",{value:!0});X9.getSharedConfigurationDefaults=X9.mergeOtlpSharedConfigurationWithDefaults=X9.wrapStaticHeadersInFunction=X9.validateTimeoutMillis=void 0;function Q9(Q){if(Number.isFinite(Q)&&Q>0)return Q;throw Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${Q}')`)}X9.validateTimeoutMillis=Q9;function EP(Q){if(Q==null)return;return async()=>Q}X9.wrapStaticHeadersInFunction=EP;function TP(Q,Y,G){return{timeoutMillis:Q9(Q.timeoutMillis??Y.timeoutMillis??G.timeoutMillis),concurrencyLimit:Q.concurrencyLimit??Y.concurrencyLimit??G.concurrencyLimit,compression:Q.compression??Y.compression??G.compression}}X9.mergeOtlpSharedConfigurationWithDefaults=TP;function hP(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}X9.getSharedConfigurationDefaults=hP});var G9=V((z9)=>{Object.defineProperty(z9,"__esModule",{value:!0});z9.CompressionAlgorithm=void 0;var wP;(function(Q){Q.NONE="none",Q.GZIP="gzip"})(wP=z9.CompressionAlgorithm||(z9.CompressionAlgorithm={}))});var M7=V((q9)=>{Object.defineProperty(q9,"__esModule",{value:!0});q9.createBoundedQueueExportPromiseHandler=void 0;class W9{_concurrencyLimit;_sendingPromises=[];constructor(Q){this._concurrencyLimit=Q}pushPromise(Q){if(this.hasReachedLimit())throw Error("Concurrency Limit reached");this._sendingPromises.push(Q);let Y=()=>{let G=this._sendingPromises.indexOf(Q);this._sendingPromises.splice(G,1)};Q.then(Y,Y)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function RP(Q){return new W9(Q.concurrencyLimit)}q9.createBoundedQueueExportPromiseHandler=RP});var H6=V((F9)=>{Object.defineProperty(F9,"__esModule",{value:!0});F9.isTracingSuppressed=F9.unsuppressTracing=F9.suppressTracing=void 0;var kP=T(),P7=(0,kP.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function $P(Q){return Q.setValue(P7,!0)}F9.suppressTracing=$P;function SP(Q){return Q.deleteValue(P7)}F9.unsuppressTracing=SP;function fP(Q){return Q.getValue(P7)===!0}F9.isTracingSuppressed=fP});var w7=V((O9)=>{Object.defineProperty(O9,"__esModule",{value:!0});O9.BAGGAGE_MAX_TOTAL_LENGTH=O9.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=O9.BAGGAGE_MAX_NAME_VALUE_PAIRS=O9.BAGGAGE_HEADER=O9.BAGGAGE_ITEMS_SEPARATOR=O9.BAGGAGE_PROPERTIES_SEPARATOR=O9.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;O9.BAGGAGE_KEY_PAIR_SEPARATOR="=";O9.BAGGAGE_PROPERTIES_SEPARATOR=";";O9.BAGGAGE_ITEMS_SEPARATOR=",";O9.BAGGAGE_HEADER="baggage";O9.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;O9.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;O9.BAGGAGE_MAX_TOTAL_LENGTH=8192});var R7=V((N9)=>{Object.defineProperty(N9,"__esModule",{value:!0});N9.parseKeyPairsIntoRecord=N9.parsePairKeyValue=N9.getKeyPairs=N9.serializeKeyPairs=void 0;var lP=T(),S1=w7();function cP(Q){return Q.reduce((Y,G)=>{let K=`${Y}${Y!==""?S1.BAGGAGE_ITEMS_SEPARATOR:""}${G}`;return K.length>S1.BAGGAGE_MAX_TOTAL_LENGTH?Y:K},"")}N9.serializeKeyPairs=cP;function nP(Q){return Q.getAllEntries().map(([Y,G])=>{let K=`${encodeURIComponent(Y)}=${encodeURIComponent(G.value)}`;if(G.metadata!==void 0)K+=S1.BAGGAGE_PROPERTIES_SEPARATOR+G.metadata.toString();return K})}N9.getKeyPairs=nP;function V9(Q){if(!Q)return;let Y=Q.indexOf(S1.BAGGAGE_PROPERTIES_SEPARATOR),G=Y===-1?Q:Q.substring(0,Y),K=G.indexOf(S1.BAGGAGE_KEY_PAIR_SEPARATOR);if(K<=0)return;let z=G.substring(0,K).trim(),W=G.substring(K+1).trim();if(!z||!W)return;let J,Z;try{J=decodeURIComponent(z),Z=decodeURIComponent(W)}catch{return}let X;if(Y!==-1&&Y<Q.length-1){let q=Q.substring(Y+1);X=(0,lP.baggageEntryMetadataFromString)(q)}return{key:J,value:Z,metadata:X}}N9.parsePairKeyValue=V9;function mP(Q){let Y={};if(typeof Q==="string"&&Q.length>0)Q.split(S1.BAGGAGE_ITEMS_SEPARATOR).forEach((G)=>{let K=V9(G);if(K!==void 0&&K.value.length>0)Y[K.key]=K.value});return Y}N9.parseKeyPairsIntoRecord=mP});var A9=V((D9)=>{Object.defineProperty(D9,"__esModule",{value:!0});D9.W3CBaggagePropagator=void 0;var k7=T(),oP=H6(),e0=w7(),$7=R7();class C9{inject(Q,Y,G){let K=k7.propagation.getBaggage(Q);if(!K||(0,oP.isTracingSuppressed)(Q))return;let z=(0,$7.getKeyPairs)(K).filter((J)=>{return J.length<=e0.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS}).slice(0,e0.BAGGAGE_MAX_NAME_VALUE_PAIRS),W=(0,$7.serializeKeyPairs)(z);if(W.length>0)G.set(Y,e0.BAGGAGE_HEADER,W)}extract(Q,Y,G){let K=G.get(Y,e0.BAGGAGE_HEADER),z=Array.isArray(K)?K.join(e0.BAGGAGE_ITEMS_SEPARATOR):K;if(!z)return Q;let W={};if(z.length===0)return Q;if(z.split(e0.BAGGAGE_ITEMS_SEPARATOR).forEach((Z)=>{let X=(0,$7.parsePairKeyValue)(Z);if(X){let q={value:X.value};if(X.metadata)q.metadata=X.metadata;W[X.key]=q}}),Object.entries(W).length===0)return Q;return k7.propagation.setBaggage(Q,k7.propagation.createBaggage(W))}fields(){return[e0.BAGGAGE_HEADER]}}D9.W3CBaggagePropagator=C9});var L9=V((T9)=>{Object.defineProperty(T9,"__esModule",{value:!0});T9.AnchoredClock=void 0;class E9{_monotonicClock;_epochMillis;_performanceMillis;constructor(Q,Y){this._monotonicClock=Y,this._epochMillis=Q.now(),this._performanceMillis=Y.now()}now(){let Q=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+Q}}T9.AnchoredClock=E9});var S9=V((k9)=>{Object.defineProperty(k9,"__esModule",{value:!0});k9.isAttributeValue=k9.isAttributeKey=k9.sanitizeAttributes=void 0;var M9=T();function aP(Q){let Y={};if(typeof Q!=="object"||Q==null)return Y;for(let G in Q){if(!Object.prototype.hasOwnProperty.call(Q,G))continue;if(!P9(G)){M9.diag.warn(`Invalid attribute key: ${G}`);continue}let K=Q[G];if(!w9(K)){M9.diag.warn(`Invalid attribute value set for key: ${G}`);continue}if(Array.isArray(K))Y[G]=K.slice();else Y[G]=K}return Y}k9.sanitizeAttributes=aP;function P9(Q){return typeof Q==="string"&&Q!==""}k9.isAttributeKey=P9;function w9(Q){if(Q==null)return!0;if(Array.isArray(Q))return tP(Q);return R9(typeof Q)}k9.isAttributeValue=w9;function tP(Q){let Y;for(let G of Q){if(G==null)continue;let K=typeof G;if(K===Y)continue;if(!Y){if(R9(K)){Y=K;continue}return!1}return!1}return!0}function R9(Q){switch(Q){case"number":case"boolean":case"string":return!0}return!1}});var S7=V((f9)=>{Object.defineProperty(f9,"__esModule",{value:!0});f9.loggingErrorHandler=void 0;var eP=T();function Zw(){return(Q)=>{eP.diag.error(Jw(Q))}}f9.loggingErrorHandler=Zw;function Jw(Q){if(typeof Q==="string")return Q;else return JSON.stringify(Qw(Q))}function Qw(Q){let Y={},G=Q;while(G!==null)Object.getOwnPropertyNames(G).forEach((K)=>{if(Y[K])return;let z=G[K];if(z)Y[K]=String(z)}),G=Object.getPrototypeOf(G);return Y}});var j9=V((v9)=>{Object.defineProperty(v9,"__esModule",{value:!0});v9.globalErrorHandler=v9.setGlobalErrorHandler=void 0;var Xw=S7(),y9=(0,Xw.loggingErrorHandler)();function Yw(Q){y9=Q}v9.setGlobalErrorHandler=Yw;function zw(Q){try{y9(Q)}catch{}}v9.globalErrorHandler=zw});var n9=V((l9)=>{Object.defineProperty(l9,"__esModule",{value:!0});l9.getStringListFromEnv=l9.getBooleanFromEnv=l9.getStringFromEnv=l9.getNumberFromEnv=void 0;var b9=T(),d9=j("util");function Ww(Q){let Y=process.env[Q];if(Y==null||Y.trim()==="")return;let G=Number(Y);if(isNaN(G)){b9.diag.warn(`Unknown value ${(0,d9.inspect)(Y)} for ${Q}, expected a number, using defaults`);return}return G}l9.getNumberFromEnv=Ww;function u9(Q){let Y=process.env[Q];if(Y==null||Y.trim()==="")return;return Y}l9.getStringFromEnv=u9;function qw(Q){let Y=process.env[Q]?.trim().toLowerCase();if(Y==null||Y==="")return!1;if(Y==="true")return!0;else if(Y==="false")return!1;else return b9.diag.warn(`Unknown value ${(0,d9.inspect)(Y)} for ${Q}, expected 'true' or 'false', falling back to 'false' (default)`),!1}l9.getBooleanFromEnv=qw;function Kw(Q){return u9(Q)?.split(",").map((Y)=>Y.trim()).filter((Y)=>Y!=="")}l9.getStringListFromEnv=Kw});var g9=V((m9)=>{Object.defineProperty(m9,"__esModule",{value:!0});m9._globalThis=void 0;m9._globalThis=globalThis});var a9=V((i9)=>{Object.defineProperty(i9,"__esModule",{value:!0});i9.VERSION=void 0;i9.VERSION="2.6.1"});var f7=V((t9)=>{Object.defineProperty(t9,"__esModule",{value:!0});t9.createConstMap=void 0;function Bw(Q){let Y={},G=Q.length;for(let K=0;K<G;K++){let z=Q[K];if(z)Y[String(z).toUpperCase().replace(/[-.]/g,"_")]=z}return Y}t9.createConstMap=Bw});var oW=V((lW)=>{Object.defineProperty(lW,"__esModule",{value:!0});lW.SEMATTRS_NET_HOST_CARRIER_ICC=lW.SEMATTRS_NET_HOST_CARRIER_MNC=lW.SEMATTRS_NET_HOST_CARRIER_MCC=lW.SEMATTRS_NET_HOST_CARRIER_NAME=lW.SEMATTRS_NET_HOST_CONNECTION_SUBTYPE=lW.SEMATTRS_NET_HOST_CONNECTION_TYPE=lW.SEMATTRS_NET_HOST_NAME=lW.SEMATTRS_NET_HOST_PORT=lW.SEMATTRS_NET_HOST_IP=lW.SEMATTRS_NET_PEER_NAME=lW.SEMATTRS_NET_PEER_PORT=lW.SEMATTRS_NET_PEER_IP=lW.SEMATTRS_NET_TRANSPORT=lW.SEMATTRS_FAAS_INVOKED_REGION=lW.SEMATTRS_FAAS_INVOKED_PROVIDER=lW.SEMATTRS_FAAS_INVOKED_NAME=lW.SEMATTRS_FAAS_COLDSTART=lW.SEMATTRS_FAAS_CRON=lW.SEMATTRS_FAAS_TIME=lW.SEMATTRS_FAAS_DOCUMENT_NAME=lW.SEMATTRS_FAAS_DOCUMENT_TIME=lW.SEMATTRS_FAAS_DOCUMENT_OPERATION=lW.SEMATTRS_FAAS_DOCUMENT_COLLECTION=lW.SEMATTRS_FAAS_EXECUTION=lW.SEMATTRS_FAAS_TRIGGER=lW.SEMATTRS_EXCEPTION_ESCAPED=lW.SEMATTRS_EXCEPTION_STACKTRACE=lW.SEMATTRS_EXCEPTION_MESSAGE=lW.SEMATTRS_EXCEPTION_TYPE=lW.SEMATTRS_DB_SQL_TABLE=lW.SEMATTRS_DB_MONGODB_COLLECTION=lW.SEMATTRS_DB_REDIS_DATABASE_INDEX=lW.SEMATTRS_DB_HBASE_NAMESPACE=lW.SEMATTRS_DB_CASSANDRA_COORDINATOR_DC=lW.SEMATTRS_DB_CASSANDRA_COORDINATOR_ID=lW.SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT=lW.SEMATTRS_DB_CASSANDRA_IDEMPOTENCE=lW.SEMATTRS_DB_CASSANDRA_TABLE=lW.SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL=lW.SEMATTRS_DB_CASSANDRA_PAGE_SIZE=lW.SEMATTRS_DB_CASSANDRA_KEYSPACE=lW.SEMATTRS_DB_MSSQL_INSTANCE_NAME=lW.SEMATTRS_DB_OPERATION=lW.SEMATTRS_DB_STATEMENT=lW.SEMATTRS_DB_NAME=lW.SEMATTRS_DB_JDBC_DRIVER_CLASSNAME=lW.SEMATTRS_DB_USER=lW.SEMATTRS_DB_CONNECTION_STRING=lW.SEMATTRS_DB_SYSTEM=lW.SEMATTRS_AWS_LAMBDA_INVOKED_ARN=void 0;lW.SEMATTRS_MESSAGING_DESTINATION_KIND=lW.SEMATTRS_MESSAGING_DESTINATION=lW.SEMATTRS_MESSAGING_SYSTEM=lW.SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES=lW.SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS=lW.SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT=lW.SEMATTRS_AWS_DYNAMODB_COUNT=lW.SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS=lW.SEMATTRS_AWS_DYNAMODB_SEGMENT=lW.SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD=lW.SEMATTRS_AWS_DYNAMODB_TABLE_COUNT=lW.SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE=lW.SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES=lW.SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES=lW.SEMATTRS_AWS_DYNAMODB_SELECT=lW.SEMATTRS_AWS_DYNAMODB_INDEX_NAME=lW.SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET=lW.SEMATTRS_AWS_DYNAMODB_LIMIT=lW.SEMATTRS_AWS_DYNAMODB_PROJECTION=lW.SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ=lW.SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY=lW.SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY=lW.SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS=lW.SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY=lW.SEMATTRS_AWS_DYNAMODB_TABLE_NAMES=lW.SEMATTRS_HTTP_CLIENT_IP=lW.SEMATTRS_HTTP_ROUTE=lW.SEMATTRS_HTTP_SERVER_NAME=lW.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED=lW.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH=lW.SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED=lW.SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH=lW.SEMATTRS_HTTP_USER_AGENT=lW.SEMATTRS_HTTP_FLAVOR=lW.SEMATTRS_HTTP_STATUS_CODE=lW.SEMATTRS_HTTP_SCHEME=lW.SEMATTRS_HTTP_HOST=lW.SEMATTRS_HTTP_TARGET=lW.SEMATTRS_HTTP_URL=lW.SEMATTRS_HTTP_METHOD=lW.SEMATTRS_CODE_LINENO=lW.SEMATTRS_CODE_FILEPATH=lW.SEMATTRS_CODE_NAMESPACE=lW.SEMATTRS_CODE_FUNCTION=lW.SEMATTRS_THREAD_NAME=lW.SEMATTRS_THREAD_ID=lW.SEMATTRS_ENDUSER_SCOPE=lW.SEMATTRS_ENDUSER_ROLE=lW.SEMATTRS_ENDUSER_ID=lW.SEMATTRS_PEER_SERVICE=void 0;lW.DBSYSTEMVALUES_FILEMAKER=lW.DBSYSTEMVALUES_DERBY=lW.DBSYSTEMVALUES_FIREBIRD=lW.DBSYSTEMVALUES_ADABAS=lW.DBSYSTEMVALUES_CACHE=lW.DBSYSTEMVALUES_EDB=lW.DBSYSTEMVALUES_FIRSTSQL=lW.DBSYSTEMVALUES_INGRES=lW.DBSYSTEMVALUES_HANADB=lW.DBSYSTEMVALUES_MAXDB=lW.DBSYSTEMVALUES_PROGRESS=lW.DBSYSTEMVALUES_HSQLDB=lW.DBSYSTEMVALUES_CLOUDSCAPE=lW.DBSYSTEMVALUES_HIVE=lW.DBSYSTEMVALUES_REDSHIFT=lW.DBSYSTEMVALUES_POSTGRESQL=lW.DBSYSTEMVALUES_DB2=lW.DBSYSTEMVALUES_ORACLE=lW.DBSYSTEMVALUES_MYSQL=lW.DBSYSTEMVALUES_MSSQL=lW.DBSYSTEMVALUES_OTHER_SQL=lW.SemanticAttributes=lW.SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE=lW.SEMATTRS_MESSAGE_COMPRESSED_SIZE=lW.SEMATTRS_MESSAGE_ID=lW.SEMATTRS_MESSAGE_TYPE=lW.SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE=lW.SEMATTRS_RPC_JSONRPC_ERROR_CODE=lW.SEMATTRS_RPC_JSONRPC_REQUEST_ID=lW.SEMATTRS_RPC_JSONRPC_VERSION=lW.SEMATTRS_RPC_GRPC_STATUS_CODE=lW.SEMATTRS_RPC_METHOD=lW.SEMATTRS_RPC_SERVICE=lW.SEMATTRS_RPC_SYSTEM=lW.SEMATTRS_MESSAGING_KAFKA_TOMBSTONE=lW.SEMATTRS_MESSAGING_KAFKA_PARTITION=lW.SEMATTRS_MESSAGING_KAFKA_CLIENT_ID=lW.SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP=lW.SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY=lW.SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY=lW.SEMATTRS_MESSAGING_CONSUMER_ID=lW.SEMATTRS_MESSAGING_OPERATION=lW.SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES=lW.SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES=lW.SEMATTRS_MESSAGING_CONVERSATION_ID=lW.SEMATTRS_MESSAGING_MESSAGE_ID=lW.SEMATTRS_MESSAGING_URL=lW.SEMATTRS_MESSAGING_PROTOCOL_VERSION=lW.SEMATTRS_MESSAGING_PROTOCOL=lW.SEMATTRS_MESSAGING_TEMP_DESTINATION=void 0;lW.FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD=lW.FaasDocumentOperationValues=lW.FAASDOCUMENTOPERATIONVALUES_DELETE=lW.FAASDOCUMENTOPERATIONVALUES_EDIT=lW.FAASDOCUMENTOPERATIONVALUES_INSERT=lW.FaasTriggerValues=lW.FAASTRIGGERVALUES_OTHER=lW.FAASTRIGGERVALUES_TIMER=lW.FAASTRIGGERVALUES_PUBSUB=lW.FAASTRIGGERVALUES_HTTP=lW.FAASTRIGGERVALUES_DATASOURCE=lW.DbCassandraConsistencyLevelValues=lW.DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL=lW.DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL=lW.DBCASSANDRACONSISTENCYLEVELVALUES_ANY=lW.DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE=lW.DBCASSANDRACONSISTENCYLEVELVALUES_THREE=lW.DBCASSANDRACONSISTENCYLEVELVALUES_TWO=lW.DBCASSANDRACONSISTENCYLEVELVALUES_ONE=lW.DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM=lW.DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM=lW.DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM=lW.DBCASSANDRACONSISTENCYLEVELVALUES_ALL=lW.DbSystemValues=lW.DBSYSTEMVALUES_COCKROACHDB=lW.DBSYSTEMVALUES_MEMCACHED=lW.DBSYSTEMVALUES_ELASTICSEARCH=lW.DBSYSTEMVALUES_GEODE=lW.DBSYSTEMVALUES_NEO4J=lW.DBSYSTEMVALUES_DYNAMODB=lW.DBSYSTEMVALUES_COSMOSDB=lW.DBSYSTEMVALUES_COUCHDB=lW.DBSYSTEMVALUES_COUCHBASE=lW.DBSYSTEMVALUES_REDIS=lW.DBSYSTEMVALUES_MONGODB=lW.DBSYSTEMVALUES_HBASE=lW.DBSYSTEMVALUES_CASSANDRA=lW.DBSYSTEMVALUES_COLDFUSION=lW.DBSYSTEMVALUES_H2=lW.DBSYSTEMVALUES_VERTICA=lW.DBSYSTEMVALUES_TERADATA=lW.DBSYSTEMVALUES_SYBASE=lW.DBSYSTEMVALUES_SQLITE=lW.DBSYSTEMVALUES_POINTBASE=lW.DBSYSTEMVALUES_PERVASIVE=lW.DBSYSTEMVALUES_NETEZZA=lW.DBSYSTEMVALUES_MARIADB=lW.DBSYSTEMVALUES_INTERBASE=lW.DBSYSTEMVALUES_INSTANTDB=lW.DBSYSTEMVALUES_INFORMIX=void 0;lW.MESSAGINGOPERATIONVALUES_RECEIVE=lW.MessagingDestinationKindValues=lW.MESSAGINGDESTINATIONKINDVALUES_TOPIC=lW.MESSAGINGDESTINATIONKINDVALUES_QUEUE=lW.HttpFlavorValues=lW.HTTPFLAVORVALUES_QUIC=lW.HTTPFLAVORVALUES_SPDY=lW.HTTPFLAVORVALUES_HTTP_2_0=lW.HTTPFLAVORVALUES_HTTP_1_1=lW.HTTPFLAVORVALUES_HTTP_1_0=lW.NetHostConnectionSubtypeValues=lW.NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA=lW.NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA=lW.NETHOSTCONNECTIONSUBTYPEVALUES_NR=lW.NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN=lW.NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA=lW.NETHOSTCONNECTIONSUBTYPEVALUES_GSM=lW.NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP=lW.NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD=lW.NETHOSTCONNECTIONSUBTYPEVALUES_LTE=lW.NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B=lW.NETHOSTCONNECTIONSUBTYPEVALUES_IDEN=lW.NETHOSTCONNECTIONSUBTYPEVALUES_HSPA=lW.NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA=lW.NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA=lW.NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT=lW.NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A=lW.NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0=lW.NETHOSTCONNECTIONSUBTYPEVALUES_CDMA=lW.NETHOSTCONNECTIONSUBTYPEVALUES_UMTS=lW.NETHOSTCONNECTIONSUBTYPEVALUES_EDGE=lW.NETHOSTCONNECTIONSUBTYPEVALUES_GPRS=lW.NetHostConnectionTypeValues=lW.NETHOSTCONNECTIONTYPEVALUES_UNKNOWN=lW.NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE=lW.NETHOSTCONNECTIONTYPEVALUES_CELL=lW.NETHOSTCONNECTIONTYPEVALUES_WIRED=lW.NETHOSTCONNECTIONTYPEVALUES_WIFI=lW.NetTransportValues=lW.NETTRANSPORTVALUES_OTHER=lW.NETTRANSPORTVALUES_INPROC=lW.NETTRANSPORTVALUES_PIPE=lW.NETTRANSPORTVALUES_UNIX=lW.NETTRANSPORTVALUES_IP=lW.NETTRANSPORTVALUES_IP_UDP=lW.NETTRANSPORTVALUES_IP_TCP=lW.FaasInvokedProviderValues=lW.FAASINVOKEDPROVIDERVALUES_GCP=lW.FAASINVOKEDPROVIDERVALUES_AZURE=lW.FAASINVOKEDPROVIDERVALUES_AWS=void 0;lW.MessageTypeValues=lW.MESSAGETYPEVALUES_RECEIVED=lW.MESSAGETYPEVALUES_SENT=lW.RpcGrpcStatusCodeValues=lW.RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED=lW.RPCGRPCSTATUSCODEVALUES_DATA_LOSS=lW.RPCGRPCSTATUSCODEVALUES_UNAVAILABLE=lW.RPCGRPCSTATUSCODEVALUES_INTERNAL=lW.RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED=lW.RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE=lW.RPCGRPCSTATUSCODEVALUES_ABORTED=lW.RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION=lW.RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED=lW.RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED=lW.RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS=lW.RPCGRPCSTATUSCODEVALUES_NOT_FOUND=lW.RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED=lW.RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT=lW.RPCGRPCSTATUSCODEVALUES_UNKNOWN=lW.RPCGRPCSTATUSCODEVALUES_CANCELLED=lW.RPCGRPCSTATUSCODEVALUES_OK=lW.MessagingOperationValues=lW.MESSAGINGOPERATIONVALUES_PROCESS=void 0;var W0=f7(),s9="aws.lambda.invoked_arn",e9="db.system",ZY="db.connection_string",JY="db.user",QY="db.jdbc.driver_classname",XY="db.name",YY="db.statement",zY="db.operation",GY="db.mssql.instance_name",WY="db.cassandra.keyspace",qY="db.cassandra.page_size",KY="db.cassandra.consistency_level",FY="db.cassandra.table",HY="db.cassandra.idempotence",OY="db.cassandra.speculative_execution_count",BY="db.cassandra.coordinator.id",VY="db.cassandra.coordinator.dc",NY="db.hbase.namespace",IY="db.redis.database_index",CY="db.mongodb.collection",DY="db.sql.table",UY="exception.type",AY="exception.message",EY="exception.stacktrace",TY="exception.escaped",hY="faas.trigger",LY="faas.execution",MY="faas.document.collection",PY="faas.document.operation",wY="faas.document.time",RY="faas.document.name",kY="faas.time",$Y="faas.cron",SY="faas.coldstart",fY="faas.invoked_name",_Y="faas.invoked_provider",yY="faas.invoked_region",vY="net.transport",xY="net.peer.ip",jY="net.peer.port",bY="net.peer.name",dY="net.host.ip",uY="net.host.port",lY="net.host.name",cY="net.host.connection.type",nY="net.host.connection.subtype",mY="net.host.carrier.name",pY="net.host.carrier.mcc",gY="net.host.carrier.mnc",iY="net.host.carrier.icc",oY="peer.service",aY="enduser.id",tY="enduser.role",rY="enduser.scope",sY="thread.id",eY="thread.name",Z3="code.function",J3="code.namespace",Q3="code.filepath",X3="code.lineno",Y3="http.method",z3="http.url",G3="http.target",W3="http.host",q3="http.scheme",K3="http.status_code",F3="http.flavor",H3="http.user_agent",O3="http.request_content_length",B3="http.request_content_length_uncompressed",V3="http.response_content_length",N3="http.response_content_length_uncompressed",I3="http.server_name",C3="http.route",D3="http.client_ip",U3="aws.dynamodb.table_names",A3="aws.dynamodb.consumed_capacity",E3="aws.dynamodb.item_collection_metrics",T3="aws.dynamodb.provisioned_read_capacity",h3="aws.dynamodb.provisioned_write_capacity",L3="aws.dynamodb.consistent_read",M3="aws.dynamodb.projection",P3="aws.dynamodb.limit",w3="aws.dynamodb.attributes_to_get",R3="aws.dynamodb.index_name",k3="aws.dynamodb.select",$3="aws.dynamodb.global_secondary_indexes",S3="aws.dynamodb.local_secondary_indexes",f3="aws.dynamodb.exclusive_start_table",_3="aws.dynamodb.table_count",y3="aws.dynamodb.scan_forward",v3="aws.dynamodb.segment",x3="aws.dynamodb.total_segments",j3="aws.dynamodb.count",b3="aws.dynamodb.scanned_count",d3="aws.dynamodb.attribute_definitions",u3="aws.dynamodb.global_secondary_index_updates",l3="messaging.system",c3="messaging.destination",n3="messaging.destination_kind",m3="messaging.temp_destination",p3="messaging.protocol",g3="messaging.protocol_version",i3="messaging.url",o3="messaging.message_id",a3="messaging.conversation_id",t3="messaging.message_payload_size_bytes",r3="messaging.message_payload_compressed_size_bytes",s3="messaging.operation",e3="messaging.consumer_id",Zz="messaging.rabbitmq.routing_key",Jz="messaging.kafka.message_key",Qz="messaging.kafka.consumer_group",Xz="messaging.kafka.client_id",Yz="messaging.kafka.partition",zz="messaging.kafka.tombstone",Gz="rpc.system",Wz="rpc.service",qz="rpc.method",Kz="rpc.grpc.status_code",Fz="rpc.jsonrpc.version",Hz="rpc.jsonrpc.request_id",Oz="rpc.jsonrpc.error_code",Bz="rpc.jsonrpc.error_message",Vz="message.type",Nz="message.id",Iz="message.compressed_size",Cz="message.uncompressed_size";lW.SEMATTRS_AWS_LAMBDA_INVOKED_ARN=s9;lW.SEMATTRS_DB_SYSTEM=e9;lW.SEMATTRS_DB_CONNECTION_STRING=ZY;lW.SEMATTRS_DB_USER=JY;lW.SEMATTRS_DB_JDBC_DRIVER_CLASSNAME=QY;lW.SEMATTRS_DB_NAME=XY;lW.SEMATTRS_DB_STATEMENT=YY;lW.SEMATTRS_DB_OPERATION=zY;lW.SEMATTRS_DB_MSSQL_INSTANCE_NAME=GY;lW.SEMATTRS_DB_CASSANDRA_KEYSPACE=WY;lW.SEMATTRS_DB_CASSANDRA_PAGE_SIZE=qY;lW.SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL=KY;lW.SEMATTRS_DB_CASSANDRA_TABLE=FY;lW.SEMATTRS_DB_CASSANDRA_IDEMPOTENCE=HY;lW.SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT=OY;lW.SEMATTRS_DB_CASSANDRA_COORDINATOR_ID=BY;lW.SEMATTRS_DB_CASSANDRA_COORDINATOR_DC=VY;lW.SEMATTRS_DB_HBASE_NAMESPACE=NY;lW.SEMATTRS_DB_REDIS_DATABASE_INDEX=IY;lW.SEMATTRS_DB_MONGODB_COLLECTION=CY;lW.SEMATTRS_DB_SQL_TABLE=DY;lW.SEMATTRS_EXCEPTION_TYPE=UY;lW.SEMATTRS_EXCEPTION_MESSAGE=AY;lW.SEMATTRS_EXCEPTION_STACKTRACE=EY;lW.SEMATTRS_EXCEPTION_ESCAPED=TY;lW.SEMATTRS_FAAS_TRIGGER=hY;lW.SEMATTRS_FAAS_EXECUTION=LY;lW.SEMATTRS_FAAS_DOCUMENT_COLLECTION=MY;lW.SEMATTRS_FAAS_DOCUMENT_OPERATION=PY;lW.SEMATTRS_FAAS_DOCUMENT_TIME=wY;lW.SEMATTRS_FAAS_DOCUMENT_NAME=RY;lW.SEMATTRS_FAAS_TIME=kY;lW.SEMATTRS_FAAS_CRON=$Y;lW.SEMATTRS_FAAS_COLDSTART=SY;lW.SEMATTRS_FAAS_INVOKED_NAME=fY;lW.SEMATTRS_FAAS_INVOKED_PROVIDER=_Y;lW.SEMATTRS_FAAS_INVOKED_REGION=yY;lW.SEMATTRS_NET_TRANSPORT=vY;lW.SEMATTRS_NET_PEER_IP=xY;lW.SEMATTRS_NET_PEER_PORT=jY;lW.SEMATTRS_NET_PEER_NAME=bY;lW.SEMATTRS_NET_HOST_IP=dY;lW.SEMATTRS_NET_HOST_PORT=uY;lW.SEMATTRS_NET_HOST_NAME=lY;lW.SEMATTRS_NET_HOST_CONNECTION_TYPE=cY;lW.SEMATTRS_NET_HOST_CONNECTION_SUBTYPE=nY;lW.SEMATTRS_NET_HOST_CARRIER_NAME=mY;lW.SEMATTRS_NET_HOST_CARRIER_MCC=pY;lW.SEMATTRS_NET_HOST_CARRIER_MNC=gY;lW.SEMATTRS_NET_HOST_CARRIER_ICC=iY;lW.SEMATTRS_PEER_SERVICE=oY;lW.SEMATTRS_ENDUSER_ID=aY;lW.SEMATTRS_ENDUSER_ROLE=tY;lW.SEMATTRS_ENDUSER_SCOPE=rY;lW.SEMATTRS_THREAD_ID=sY;lW.SEMATTRS_THREAD_NAME=eY;lW.SEMATTRS_CODE_FUNCTION=Z3;lW.SEMATTRS_CODE_NAMESPACE=J3;lW.SEMATTRS_CODE_FILEPATH=Q3;lW.SEMATTRS_CODE_LINENO=X3;lW.SEMATTRS_HTTP_METHOD=Y3;lW.SEMATTRS_HTTP_URL=z3;lW.SEMATTRS_HTTP_TARGET=G3;lW.SEMATTRS_HTTP_HOST=W3;lW.SEMATTRS_HTTP_SCHEME=q3;lW.SEMATTRS_HTTP_STATUS_CODE=K3;lW.SEMATTRS_HTTP_FLAVOR=F3;lW.SEMATTRS_HTTP_USER_AGENT=H3;lW.SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH=O3;lW.SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED=B3;lW.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH=V3;lW.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED=N3;lW.SEMATTRS_HTTP_SERVER_NAME=I3;lW.SEMATTRS_HTTP_ROUTE=C3;lW.SEMATTRS_HTTP_CLIENT_IP=D3;lW.SEMATTRS_AWS_DYNAMODB_TABLE_NAMES=U3;lW.SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY=A3;lW.SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS=E3;lW.SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY=T3;lW.SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY=h3;lW.SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ=L3;lW.SEMATTRS_AWS_DYNAMODB_PROJECTION=M3;lW.SEMATTRS_AWS_DYNAMODB_LIMIT=P3;lW.SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET=w3;lW.SEMATTRS_AWS_DYNAMODB_INDEX_NAME=R3;lW.SEMATTRS_AWS_DYNAMODB_SELECT=k3;lW.SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES=$3;lW.SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES=S3;lW.SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE=f3;lW.SEMATTRS_AWS_DYNAMODB_TABLE_COUNT=_3;lW.SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD=y3;lW.SEMATTRS_AWS_DYNAMODB_SEGMENT=v3;lW.SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS=x3;lW.SEMATTRS_AWS_DYNAMODB_COUNT=j3;lW.SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT=b3;lW.SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS=d3;lW.SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES=u3;lW.SEMATTRS_MESSAGING_SYSTEM=l3;lW.SEMATTRS_MESSAGING_DESTINATION=c3;lW.SEMATTRS_MESSAGING_DESTINATION_KIND=n3;lW.SEMATTRS_MESSAGING_TEMP_DESTINATION=m3;lW.SEMATTRS_MESSAGING_PROTOCOL=p3;lW.SEMATTRS_MESSAGING_PROTOCOL_VERSION=g3;lW.SEMATTRS_MESSAGING_URL=i3;lW.SEMATTRS_MESSAGING_MESSAGE_ID=o3;lW.SEMATTRS_MESSAGING_CONVERSATION_ID=a3;lW.SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES=t3;lW.SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES=r3;lW.SEMATTRS_MESSAGING_OPERATION=s3;lW.SEMATTRS_MESSAGING_CONSUMER_ID=e3;lW.SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY=Zz;lW.SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY=Jz;lW.SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP=Qz;lW.SEMATTRS_MESSAGING_KAFKA_CLIENT_ID=Xz;lW.SEMATTRS_MESSAGING_KAFKA_PARTITION=Yz;lW.SEMATTRS_MESSAGING_KAFKA_TOMBSTONE=zz;lW.SEMATTRS_RPC_SYSTEM=Gz;lW.SEMATTRS_RPC_SERVICE=Wz;lW.SEMATTRS_RPC_METHOD=qz;lW.SEMATTRS_RPC_GRPC_STATUS_CODE=Kz;lW.SEMATTRS_RPC_JSONRPC_VERSION=Fz;lW.SEMATTRS_RPC_JSONRPC_REQUEST_ID=Hz;lW.SEMATTRS_RPC_JSONRPC_ERROR_CODE=Oz;lW.SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE=Bz;lW.SEMATTRS_MESSAGE_TYPE=Vz;lW.SEMATTRS_MESSAGE_ID=Nz;lW.SEMATTRS_MESSAGE_COMPRESSED_SIZE=Iz;lW.SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE=Cz;lW.SemanticAttributes=(0,W0.createConstMap)([s9,e9,ZY,JY,QY,XY,YY,zY,GY,WY,qY,KY,FY,HY,OY,BY,VY,NY,IY,CY,DY,UY,AY,EY,TY,hY,LY,MY,PY,wY,RY,kY,$Y,SY,fY,_Y,yY,vY,xY,jY,bY,dY,uY,lY,cY,nY,mY,pY,gY,iY,oY,aY,tY,rY,sY,eY,Z3,J3,Q3,X3,Y3,z3,G3,W3,q3,K3,F3,H3,O3,B3,V3,N3,I3,C3,D3,U3,A3,E3,T3,h3,L3,M3,P3,w3,R3,k3,$3,S3,f3,_3,y3,v3,x3,j3,b3,d3,u3,l3,c3,n3,m3,p3,g3,i3,o3,a3,t3,r3,s3,e3,Zz,Jz,Qz,Xz,Yz,zz,Gz,Wz,qz,Kz,Fz,Hz,Oz,Bz,Vz,Nz,Iz,Cz]);var Dz="other_sql",Uz="mssql",Az="mysql",Ez="oracle",Tz="db2",hz="postgresql",Lz="redshift",Mz="hive",Pz="cloudscape",wz="hsqldb",Rz="progress",kz="maxdb",$z="hanadb",Sz="ingres",fz="firstsql",_z="edb",yz="cache",vz="adabas",xz="firebird",jz="derby",bz="filemaker",dz="informix",uz="instantdb",lz="interbase",cz="mariadb",nz="netezza",mz="pervasive",pz="pointbase",gz="sqlite",iz="sybase",oz="teradata",az="vertica",tz="h2",rz="coldfusion",sz="cassandra",ez="hbase",ZG="mongodb",JG="redis",QG="couchbase",XG="couchdb",YG="cosmosdb",zG="dynamodb",GG="neo4j",WG="geode",qG="elasticsearch",KG="memcached",FG="cockroachdb";lW.DBSYSTEMVALUES_OTHER_SQL=Dz;lW.DBSYSTEMVALUES_MSSQL=Uz;lW.DBSYSTEMVALUES_MYSQL=Az;lW.DBSYSTEMVALUES_ORACLE=Ez;lW.DBSYSTEMVALUES_DB2=Tz;lW.DBSYSTEMVALUES_POSTGRESQL=hz;lW.DBSYSTEMVALUES_REDSHIFT=Lz;lW.DBSYSTEMVALUES_HIVE=Mz;lW.DBSYSTEMVALUES_CLOUDSCAPE=Pz;lW.DBSYSTEMVALUES_HSQLDB=wz;lW.DBSYSTEMVALUES_PROGRESS=Rz;lW.DBSYSTEMVALUES_MAXDB=kz;lW.DBSYSTEMVALUES_HANADB=$z;lW.DBSYSTEMVALUES_INGRES=Sz;lW.DBSYSTEMVALUES_FIRSTSQL=fz;lW.DBSYSTEMVALUES_EDB=_z;lW.DBSYSTEMVALUES_CACHE=yz;lW.DBSYSTEMVALUES_ADABAS=vz;lW.DBSYSTEMVALUES_FIREBIRD=xz;lW.DBSYSTEMVALUES_DERBY=jz;lW.DBSYSTEMVALUES_FILEMAKER=bz;lW.DBSYSTEMVALUES_INFORMIX=dz;lW.DBSYSTEMVALUES_INSTANTDB=uz;lW.DBSYSTEMVALUES_INTERBASE=lz;lW.DBSYSTEMVALUES_MARIADB=cz;lW.DBSYSTEMVALUES_NETEZZA=nz;lW.DBSYSTEMVALUES_PERVASIVE=mz;lW.DBSYSTEMVALUES_POINTBASE=pz;lW.DBSYSTEMVALUES_SQLITE=gz;lW.DBSYSTEMVALUES_SYBASE=iz;lW.DBSYSTEMVALUES_TERADATA=oz;lW.DBSYSTEMVALUES_VERTICA=az;lW.DBSYSTEMVALUES_H2=tz;lW.DBSYSTEMVALUES_COLDFUSION=rz;lW.DBSYSTEMVALUES_CASSANDRA=sz;lW.DBSYSTEMVALUES_HBASE=ez;lW.DBSYSTEMVALUES_MONGODB=ZG;lW.DBSYSTEMVALUES_REDIS=JG;lW.DBSYSTEMVALUES_COUCHBASE=QG;lW.DBSYSTEMVALUES_COUCHDB=XG;lW.DBSYSTEMVALUES_COSMOSDB=YG;lW.DBSYSTEMVALUES_DYNAMODB=zG;lW.DBSYSTEMVALUES_NEO4J=GG;lW.DBSYSTEMVALUES_GEODE=WG;lW.DBSYSTEMVALUES_ELASTICSEARCH=qG;lW.DBSYSTEMVALUES_MEMCACHED=KG;lW.DBSYSTEMVALUES_COCKROACHDB=FG;lW.DbSystemValues=(0,W0.createConstMap)([Dz,Uz,Az,Ez,Tz,hz,Lz,Mz,Pz,wz,Rz,kz,$z,Sz,fz,_z,yz,vz,xz,jz,bz,dz,uz,lz,cz,nz,mz,pz,gz,iz,oz,az,tz,rz,sz,ez,ZG,JG,QG,XG,YG,zG,GG,WG,qG,KG,FG]);var HG="all",OG="each_quorum",BG="quorum",VG="local_quorum",NG="one",IG="two",CG="three",DG="local_one",UG="any",AG="serial",EG="local_serial";lW.DBCASSANDRACONSISTENCYLEVELVALUES_ALL=HG;lW.DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM=OG;lW.DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM=BG;lW.DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM=VG;lW.DBCASSANDRACONSISTENCYLEVELVALUES_ONE=NG;lW.DBCASSANDRACONSISTENCYLEVELVALUES_TWO=IG;lW.DBCASSANDRACONSISTENCYLEVELVALUES_THREE=CG;lW.DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE=DG;lW.DBCASSANDRACONSISTENCYLEVELVALUES_ANY=UG;lW.DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL=AG;lW.DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL=EG;lW.DbCassandraConsistencyLevelValues=(0,W0.createConstMap)([HG,OG,BG,VG,NG,IG,CG,DG,UG,AG,EG]);var TG="datasource",hG="http",LG="pubsub",MG="timer",PG="other";lW.FAASTRIGGERVALUES_DATASOURCE=TG;lW.FAASTRIGGERVALUES_HTTP=hG;lW.FAASTRIGGERVALUES_PUBSUB=LG;lW.FAASTRIGGERVALUES_TIMER=MG;lW.FAASTRIGGERVALUES_OTHER=PG;lW.FaasTriggerValues=(0,W0.createConstMap)([TG,hG,LG,MG,PG]);var wG="insert",RG="edit",kG="delete";lW.FAASDOCUMENTOPERATIONVALUES_INSERT=wG;lW.FAASDOCUMENTOPERATIONVALUES_EDIT=RG;lW.FAASDOCUMENTOPERATIONVALUES_DELETE=kG;lW.FaasDocumentOperationValues=(0,W0.createConstMap)([wG,RG,kG]);var $G="alibaba_cloud",SG="aws",fG="azure",_G="gcp";lW.FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD=$G;lW.FAASINVOKEDPROVIDERVALUES_AWS=SG;lW.FAASINVOKEDPROVIDERVALUES_AZURE=fG;lW.FAASINVOKEDPROVIDERVALUES_GCP=_G;lW.FaasInvokedProviderValues=(0,W0.createConstMap)([$G,SG,fG,_G]);var yG="ip_tcp",vG="ip_udp",xG="ip",jG="unix",bG="pipe",dG="inproc",uG="other";lW.NETTRANSPORTVALUES_IP_TCP=yG;lW.NETTRANSPORTVALUES_IP_UDP=vG;lW.NETTRANSPORTVALUES_IP=xG;lW.NETTRANSPORTVALUES_UNIX=jG;lW.NETTRANSPORTVALUES_PIPE=bG;lW.NETTRANSPORTVALUES_INPROC=dG;lW.NETTRANSPORTVALUES_OTHER=uG;lW.NetTransportValues=(0,W0.createConstMap)([yG,vG,xG,jG,bG,dG,uG]);var lG="wifi",cG="wired",nG="cell",mG="unavailable",pG="unknown";lW.NETHOSTCONNECTIONTYPEVALUES_WIFI=lG;lW.NETHOSTCONNECTIONTYPEVALUES_WIRED=cG;lW.NETHOSTCONNECTIONTYPEVALUES_CELL=nG;lW.NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE=mG;lW.NETHOSTCONNECTIONTYPEVALUES_UNKNOWN=pG;lW.NetHostConnectionTypeValues=(0,W0.createConstMap)([lG,cG,nG,mG,pG]);var gG="gprs",iG="edge",oG="umts",aG="cdma",tG="evdo_0",rG="evdo_a",sG="cdma2000_1xrtt",eG="hsdpa",ZW="hsupa",JW="hspa",QW="iden",XW="evdo_b",YW="lte",zW="ehrpd",GW="hspap",WW="gsm",qW="td_scdma",KW="iwlan",FW="nr",HW="nrnsa",OW="lte_ca";lW.NETHOSTCONNECTIONSUBTYPEVALUES_GPRS=gG;lW.NETHOSTCONNECTIONSUBTYPEVALUES_EDGE=iG;lW.NETHOSTCONNECTIONSUBTYPEVALUES_UMTS=oG;lW.NETHOSTCONNECTIONSUBTYPEVALUES_CDMA=aG;lW.NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0=tG;lW.NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A=rG;lW.NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT=sG;lW.NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA=eG;lW.NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA=ZW;lW.NETHOSTCONNECTIONSUBTYPEVALUES_HSPA=JW;lW.NETHOSTCONNECTIONSUBTYPEVALUES_IDEN=QW;lW.NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B=XW;lW.NETHOSTCONNECTIONSUBTYPEVALUES_LTE=YW;lW.NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD=zW;lW.NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP=GW;lW.NETHOSTCONNECTIONSUBTYPEVALUES_GSM=WW;lW.NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA=qW;lW.NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN=KW;lW.NETHOSTCONNECTIONSUBTYPEVALUES_NR=FW;lW.NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA=HW;lW.NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA=OW;lW.NetHostConnectionSubtypeValues=(0,W0.createConstMap)([gG,iG,oG,aG,tG,rG,sG,eG,ZW,JW,QW,XW,YW,zW,GW,WW,qW,KW,FW,HW,OW]);var BW="1.0",VW="1.1",NW="2.0",IW="SPDY",CW="QUIC";lW.HTTPFLAVORVALUES_HTTP_1_0=BW;lW.HTTPFLAVORVALUES_HTTP_1_1=VW;lW.HTTPFLAVORVALUES_HTTP_2_0=NW;lW.HTTPFLAVORVALUES_SPDY=IW;lW.HTTPFLAVORVALUES_QUIC=CW;lW.HttpFlavorValues={HTTP_1_0:BW,HTTP_1_1:VW,HTTP_2_0:NW,SPDY:IW,QUIC:CW};var DW="queue",UW="topic";lW.MESSAGINGDESTINATIONKINDVALUES_QUEUE=DW;lW.MESSAGINGDESTINATIONKINDVALUES_TOPIC=UW;lW.MessagingDestinationKindValues=(0,W0.createConstMap)([DW,UW]);var AW="receive",EW="process";lW.MESSAGINGOPERATIONVALUES_RECEIVE=AW;lW.MESSAGINGOPERATIONVALUES_PROCESS=EW;lW.MessagingOperationValues=(0,W0.createConstMap)([AW,EW]);var TW=0,hW=1,LW=2,MW=3,PW=4,wW=5,RW=6,kW=7,$W=8,SW=9,fW=10,_W=11,yW=12,vW=13,xW=14,jW=15,bW=16;lW.RPCGRPCSTATUSCODEVALUES_OK=TW;lW.RPCGRPCSTATUSCODEVALUES_CANCELLED=hW;lW.RPCGRPCSTATUSCODEVALUES_UNKNOWN=LW;lW.RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT=MW;lW.RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED=PW;lW.RPCGRPCSTATUSCODEVALUES_NOT_FOUND=wW;lW.RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS=RW;lW.RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED=kW;lW.RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED=$W;lW.RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION=SW;lW.RPCGRPCSTATUSCODEVALUES_ABORTED=fW;lW.RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE=_W;lW.RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED=yW;lW.RPCGRPCSTATUSCODEVALUES_INTERNAL=vW;lW.RPCGRPCSTATUSCODEVALUES_UNAVAILABLE=xW;lW.RPCGRPCSTATUSCODEVALUES_DATA_LOSS=jW;lW.RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED=bW;lW.RpcGrpcStatusCodeValues={OK:TW,CANCELLED:hW,UNKNOWN:LW,INVALID_ARGUMENT:MW,DEADLINE_EXCEEDED:PW,NOT_FOUND:wW,ALREADY_EXISTS:RW,PERMISSION_DENIED:kW,RESOURCE_EXHAUSTED:$W,FAILED_PRECONDITION:SW,ABORTED:fW,OUT_OF_RANGE:_W,UNIMPLEMENTED:yW,INTERNAL:vW,UNAVAILABLE:xW,DATA_LOSS:jW,UNAUTHENTICATED:bW};var dW="SENT",uW="RECEIVED";lW.MESSAGETYPEVALUES_SENT=dW;lW.MESSAGETYPEVALUES_RECEIVED=uW;lW.MessageTypeValues=(0,W0.createConstMap)([dW,uW])});var aW=V((Z1)=>{var Hf=Z1&&Z1.__createBinding||(Object.create?function(Q,Y,G,K){if(K===void 0)K=G;var z=Object.getOwnPropertyDescriptor(Y,G);if(!z||("get"in z?!Y.__esModule:z.writable||z.configurable))z={enumerable:!0,get:function(){return Y[G]}};Object.defineProperty(Q,K,z)}:function(Q,Y,G,K){if(K===void 0)K=G;Q[K]=Y[G]}),Of=Z1&&Z1.__exportStar||function(Q,Y){for(var G in Q)if(G!=="default"&&!Object.prototype.hasOwnProperty.call(Y,G))Hf(Y,Q,G)};Object.defineProperty(Z1,"__esModule",{value:!0});Of(oW(),Z1)});var LF=V((AF)=>{Object.defineProperty(AF,"__esModule",{value:!0});AF.SEMRESATTRS_K8S_STATEFULSET_NAME=AF.SEMRESATTRS_K8S_STATEFULSET_UID=AF.SEMRESATTRS_K8S_DEPLOYMENT_NAME=AF.SEMRESATTRS_K8S_DEPLOYMENT_UID=AF.SEMRESATTRS_K8S_REPLICASET_NAME=AF.SEMRESATTRS_K8S_REPLICASET_UID=AF.SEMRESATTRS_K8S_CONTAINER_NAME=AF.SEMRESATTRS_K8S_POD_NAME=AF.SEMRESATTRS_K8S_POD_UID=AF.SEMRESATTRS_K8S_NAMESPACE_NAME=AF.SEMRESATTRS_K8S_NODE_UID=AF.SEMRESATTRS_K8S_NODE_NAME=AF.SEMRESATTRS_K8S_CLUSTER_NAME=AF.SEMRESATTRS_HOST_IMAGE_VERSION=AF.SEMRESATTRS_HOST_IMAGE_ID=AF.SEMRESATTRS_HOST_IMAGE_NAME=AF.SEMRESATTRS_HOST_ARCH=AF.SEMRESATTRS_HOST_TYPE=AF.SEMRESATTRS_HOST_NAME=AF.SEMRESATTRS_HOST_ID=AF.SEMRESATTRS_FAAS_MAX_MEMORY=AF.SEMRESATTRS_FAAS_INSTANCE=AF.SEMRESATTRS_FAAS_VERSION=AF.SEMRESATTRS_FAAS_ID=AF.SEMRESATTRS_FAAS_NAME=AF.SEMRESATTRS_DEVICE_MODEL_NAME=AF.SEMRESATTRS_DEVICE_MODEL_IDENTIFIER=AF.SEMRESATTRS_DEVICE_ID=AF.SEMRESATTRS_DEPLOYMENT_ENVIRONMENT=AF.SEMRESATTRS_CONTAINER_IMAGE_TAG=AF.SEMRESATTRS_CONTAINER_IMAGE_NAME=AF.SEMRESATTRS_CONTAINER_RUNTIME=AF.SEMRESATTRS_CONTAINER_ID=AF.SEMRESATTRS_CONTAINER_NAME=AF.SEMRESATTRS_AWS_LOG_STREAM_ARNS=AF.SEMRESATTRS_AWS_LOG_STREAM_NAMES=AF.SEMRESATTRS_AWS_LOG_GROUP_ARNS=AF.SEMRESATTRS_AWS_LOG_GROUP_NAMES=AF.SEMRESATTRS_AWS_EKS_CLUSTER_ARN=AF.SEMRESATTRS_AWS_ECS_TASK_REVISION=AF.SEMRESATTRS_AWS_ECS_TASK_FAMILY=AF.SEMRESATTRS_AWS_ECS_TASK_ARN=AF.SEMRESATTRS_AWS_ECS_LAUNCHTYPE=AF.SEMRESATTRS_AWS_ECS_CLUSTER_ARN=AF.SEMRESATTRS_AWS_ECS_CONTAINER_ARN=AF.SEMRESATTRS_CLOUD_PLATFORM=AF.SEMRESATTRS_CLOUD_AVAILABILITY_ZONE=AF.SEMRESATTRS_CLOUD_REGION=AF.SEMRESATTRS_CLOUD_ACCOUNT_ID=AF.SEMRESATTRS_CLOUD_PROVIDER=void 0;AF.CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE=AF.CLOUDPLATFORMVALUES_AZURE_APP_SERVICE=AF.CLOUDPLATFORMVALUES_AZURE_FUNCTIONS=AF.CLOUDPLATFORMVALUES_AZURE_AKS=AF.CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES=AF.CLOUDPLATFORMVALUES_AZURE_VM=AF.CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK=AF.CLOUDPLATFORMVALUES_AWS_LAMBDA=AF.CLOUDPLATFORMVALUES_AWS_EKS=AF.CLOUDPLATFORMVALUES_AWS_ECS=AF.CLOUDPLATFORMVALUES_AWS_EC2=AF.CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC=AF.CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS=AF.CloudProviderValues=AF.CLOUDPROVIDERVALUES_GCP=AF.CLOUDPROVIDERVALUES_AZURE=AF.CLOUDPROVIDERVALUES_AWS=AF.CLOUDPROVIDERVALUES_ALIBABA_CLOUD=AF.SemanticResourceAttributes=AF.SEMRESATTRS_WEBENGINE_DESCRIPTION=AF.SEMRESATTRS_WEBENGINE_VERSION=AF.SEMRESATTRS_WEBENGINE_NAME=AF.SEMRESATTRS_TELEMETRY_AUTO_VERSION=AF.SEMRESATTRS_TELEMETRY_SDK_VERSION=AF.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE=AF.SEMRESATTRS_TELEMETRY_SDK_NAME=AF.SEMRESATTRS_SERVICE_VERSION=AF.SEMRESATTRS_SERVICE_INSTANCE_ID=AF.SEMRESATTRS_SERVICE_NAMESPACE=AF.SEMRESATTRS_SERVICE_NAME=AF.SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION=AF.SEMRESATTRS_PROCESS_RUNTIME_VERSION=AF.SEMRESATTRS_PROCESS_RUNTIME_NAME=AF.SEMRESATTRS_PROCESS_OWNER=AF.SEMRESATTRS_PROCESS_COMMAND_ARGS=AF.SEMRESATTRS_PROCESS_COMMAND_LINE=AF.SEMRESATTRS_PROCESS_COMMAND=AF.SEMRESATTRS_PROCESS_EXECUTABLE_PATH=AF.SEMRESATTRS_PROCESS_EXECUTABLE_NAME=AF.SEMRESATTRS_PROCESS_PID=AF.SEMRESATTRS_OS_VERSION=AF.SEMRESATTRS_OS_NAME=AF.SEMRESATTRS_OS_DESCRIPTION=AF.SEMRESATTRS_OS_TYPE=AF.SEMRESATTRS_K8S_CRONJOB_NAME=AF.SEMRESATTRS_K8S_CRONJOB_UID=AF.SEMRESATTRS_K8S_JOB_NAME=AF.SEMRESATTRS_K8S_JOB_UID=AF.SEMRESATTRS_K8S_DAEMONSET_NAME=AF.SEMRESATTRS_K8S_DAEMONSET_UID=void 0;AF.TelemetrySdkLanguageValues=AF.TELEMETRYSDKLANGUAGEVALUES_WEBJS=AF.TELEMETRYSDKLANGUAGEVALUES_RUBY=AF.TELEMETRYSDKLANGUAGEVALUES_PYTHON=AF.TELEMETRYSDKLANGUAGEVALUES_PHP=AF.TELEMETRYSDKLANGUAGEVALUES_NODEJS=AF.TELEMETRYSDKLANGUAGEVALUES_JAVA=AF.TELEMETRYSDKLANGUAGEVALUES_GO=AF.TELEMETRYSDKLANGUAGEVALUES_ERLANG=AF.TELEMETRYSDKLANGUAGEVALUES_DOTNET=AF.TELEMETRYSDKLANGUAGEVALUES_CPP=AF.OsTypeValues=AF.OSTYPEVALUES_Z_OS=AF.OSTYPEVALUES_SOLARIS=AF.OSTYPEVALUES_AIX=AF.OSTYPEVALUES_HPUX=AF.OSTYPEVALUES_DRAGONFLYBSD=AF.OSTYPEVALUES_OPENBSD=AF.OSTYPEVALUES_NETBSD=AF.OSTYPEVALUES_FREEBSD=AF.OSTYPEVALUES_DARWIN=AF.OSTYPEVALUES_LINUX=AF.OSTYPEVALUES_WINDOWS=AF.HostArchValues=AF.HOSTARCHVALUES_X86=AF.HOSTARCHVALUES_PPC64=AF.HOSTARCHVALUES_PPC32=AF.HOSTARCHVALUES_IA64=AF.HOSTARCHVALUES_ARM64=AF.HOSTARCHVALUES_ARM32=AF.HOSTARCHVALUES_AMD64=AF.AwsEcsLaunchtypeValues=AF.AWSECSLAUNCHTYPEVALUES_FARGATE=AF.AWSECSLAUNCHTYPEVALUES_EC2=AF.CloudPlatformValues=AF.CLOUDPLATFORMVALUES_GCP_APP_ENGINE=AF.CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS=AF.CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE=AF.CLOUDPLATFORMVALUES_GCP_CLOUD_RUN=void 0;var J1=f7(),tW="cloud.provider",rW="cloud.account.id",sW="cloud.region",eW="cloud.availability_zone",Zq="cloud.platform",Jq="aws.ecs.container.arn",Qq="aws.ecs.cluster.arn",Xq="aws.ecs.launchtype",Yq="aws.ecs.task.arn",zq="aws.ecs.task.family",Gq="aws.ecs.task.revision",Wq="aws.eks.cluster.arn",qq="aws.log.group.names",Kq="aws.log.group.arns",Fq="aws.log.stream.names",Hq="aws.log.stream.arns",Oq="container.name",Bq="container.id",Vq="container.runtime",Nq="container.image.name",Iq="container.image.tag",Cq="deployment.environment",Dq="device.id",Uq="device.model.identifier",Aq="device.model.name",Eq="faas.name",Tq="faas.id",hq="faas.version",Lq="faas.instance",Mq="faas.max_memory",Pq="host.id",wq="host.name",Rq="host.type",kq="host.arch",$q="host.image.name",Sq="host.image.id",fq="host.image.version",_q="k8s.cluster.name",yq="k8s.node.name",vq="k8s.node.uid",xq="k8s.namespace.name",jq="k8s.pod.uid",bq="k8s.pod.name",dq="k8s.container.name",uq="k8s.replicaset.uid",lq="k8s.replicaset.name",cq="k8s.deployment.uid",nq="k8s.deployment.name",mq="k8s.statefulset.uid",pq="k8s.statefulset.name",gq="k8s.daemonset.uid",iq="k8s.daemonset.name",oq="k8s.job.uid",aq="k8s.job.name",tq="k8s.cronjob.uid",rq="k8s.cronjob.name",sq="os.type",eq="os.description",ZK="os.name",JK="os.version",QK="process.pid",XK="process.executable.name",YK="process.executable.path",zK="process.command",GK="process.command_line",WK="process.command_args",qK="process.owner",KK="process.runtime.name",FK="process.runtime.version",HK="process.runtime.description",OK="service.name",BK="service.namespace",VK="service.instance.id",NK="service.version",IK="telemetry.sdk.name",CK="telemetry.sdk.language",DK="telemetry.sdk.version",UK="telemetry.auto.version",AK="webengine.name",EK="webengine.version",TK="webengine.description";AF.SEMRESATTRS_CLOUD_PROVIDER=tW;AF.SEMRESATTRS_CLOUD_ACCOUNT_ID=rW;AF.SEMRESATTRS_CLOUD_REGION=sW;AF.SEMRESATTRS_CLOUD_AVAILABILITY_ZONE=eW;AF.SEMRESATTRS_CLOUD_PLATFORM=Zq;AF.SEMRESATTRS_AWS_ECS_CONTAINER_ARN=Jq;AF.SEMRESATTRS_AWS_ECS_CLUSTER_ARN=Qq;AF.SEMRESATTRS_AWS_ECS_LAUNCHTYPE=Xq;AF.SEMRESATTRS_AWS_ECS_TASK_ARN=Yq;AF.SEMRESATTRS_AWS_ECS_TASK_FAMILY=zq;AF.SEMRESATTRS_AWS_ECS_TASK_REVISION=Gq;AF.SEMRESATTRS_AWS_EKS_CLUSTER_ARN=Wq;AF.SEMRESATTRS_AWS_LOG_GROUP_NAMES=qq;AF.SEMRESATTRS_AWS_LOG_GROUP_ARNS=Kq;AF.SEMRESATTRS_AWS_LOG_STREAM_NAMES=Fq;AF.SEMRESATTRS_AWS_LOG_STREAM_ARNS=Hq;AF.SEMRESATTRS_CONTAINER_NAME=Oq;AF.SEMRESATTRS_CONTAINER_ID=Bq;AF.SEMRESATTRS_CONTAINER_RUNTIME=Vq;AF.SEMRESATTRS_CONTAINER_IMAGE_NAME=Nq;AF.SEMRESATTRS_CONTAINER_IMAGE_TAG=Iq;AF.SEMRESATTRS_DEPLOYMENT_ENVIRONMENT=Cq;AF.SEMRESATTRS_DEVICE_ID=Dq;AF.SEMRESATTRS_DEVICE_MODEL_IDENTIFIER=Uq;AF.SEMRESATTRS_DEVICE_MODEL_NAME=Aq;AF.SEMRESATTRS_FAAS_NAME=Eq;AF.SEMRESATTRS_FAAS_ID=Tq;AF.SEMRESATTRS_FAAS_VERSION=hq;AF.SEMRESATTRS_FAAS_INSTANCE=Lq;AF.SEMRESATTRS_FAAS_MAX_MEMORY=Mq;AF.SEMRESATTRS_HOST_ID=Pq;AF.SEMRESATTRS_HOST_NAME=wq;AF.SEMRESATTRS_HOST_TYPE=Rq;AF.SEMRESATTRS_HOST_ARCH=kq;AF.SEMRESATTRS_HOST_IMAGE_NAME=$q;AF.SEMRESATTRS_HOST_IMAGE_ID=Sq;AF.SEMRESATTRS_HOST_IMAGE_VERSION=fq;AF.SEMRESATTRS_K8S_CLUSTER_NAME=_q;AF.SEMRESATTRS_K8S_NODE_NAME=yq;AF.SEMRESATTRS_K8S_NODE_UID=vq;AF.SEMRESATTRS_K8S_NAMESPACE_NAME=xq;AF.SEMRESATTRS_K8S_POD_UID=jq;AF.SEMRESATTRS_K8S_POD_NAME=bq;AF.SEMRESATTRS_K8S_CONTAINER_NAME=dq;AF.SEMRESATTRS_K8S_REPLICASET_UID=uq;AF.SEMRESATTRS_K8S_REPLICASET_NAME=lq;AF.SEMRESATTRS_K8S_DEPLOYMENT_UID=cq;AF.SEMRESATTRS_K8S_DEPLOYMENT_NAME=nq;AF.SEMRESATTRS_K8S_STATEFULSET_UID=mq;AF.SEMRESATTRS_K8S_STATEFULSET_NAME=pq;AF.SEMRESATTRS_K8S_DAEMONSET_UID=gq;AF.SEMRESATTRS_K8S_DAEMONSET_NAME=iq;AF.SEMRESATTRS_K8S_JOB_UID=oq;AF.SEMRESATTRS_K8S_JOB_NAME=aq;AF.SEMRESATTRS_K8S_CRONJOB_UID=tq;AF.SEMRESATTRS_K8S_CRONJOB_NAME=rq;AF.SEMRESATTRS_OS_TYPE=sq;AF.SEMRESATTRS_OS_DESCRIPTION=eq;AF.SEMRESATTRS_OS_NAME=ZK;AF.SEMRESATTRS_OS_VERSION=JK;AF.SEMRESATTRS_PROCESS_PID=QK;AF.SEMRESATTRS_PROCESS_EXECUTABLE_NAME=XK;AF.SEMRESATTRS_PROCESS_EXECUTABLE_PATH=YK;AF.SEMRESATTRS_PROCESS_COMMAND=zK;AF.SEMRESATTRS_PROCESS_COMMAND_LINE=GK;AF.SEMRESATTRS_PROCESS_COMMAND_ARGS=WK;AF.SEMRESATTRS_PROCESS_OWNER=qK;AF.SEMRESATTRS_PROCESS_RUNTIME_NAME=KK;AF.SEMRESATTRS_PROCESS_RUNTIME_VERSION=FK;AF.SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION=HK;AF.SEMRESATTRS_SERVICE_NAME=OK;AF.SEMRESATTRS_SERVICE_NAMESPACE=BK;AF.SEMRESATTRS_SERVICE_INSTANCE_ID=VK;AF.SEMRESATTRS_SERVICE_VERSION=NK;AF.SEMRESATTRS_TELEMETRY_SDK_NAME=IK;AF.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE=CK;AF.SEMRESATTRS_TELEMETRY_SDK_VERSION=DK;AF.SEMRESATTRS_TELEMETRY_AUTO_VERSION=UK;AF.SEMRESATTRS_WEBENGINE_NAME=AK;AF.SEMRESATTRS_WEBENGINE_VERSION=EK;AF.SEMRESATTRS_WEBENGINE_DESCRIPTION=TK;AF.SemanticResourceAttributes=(0,J1.createConstMap)([tW,rW,sW,eW,Zq,Jq,Qq,Xq,Yq,zq,Gq,Wq,qq,Kq,Fq,Hq,Oq,Bq,Vq,Nq,Iq,Cq,Dq,Uq,Aq,Eq,Tq,hq,Lq,Mq,Pq,wq,Rq,kq,$q,Sq,fq,_q,yq,vq,xq,jq,bq,dq,uq,lq,cq,nq,mq,pq,gq,iq,oq,aq,tq,rq,sq,eq,ZK,JK,QK,XK,YK,zK,GK,WK,qK,KK,FK,HK,OK,BK,VK,NK,IK,CK,DK,UK,AK,EK,TK]);var hK="alibaba_cloud",LK="aws",MK="azure",PK="gcp";AF.CLOUDPROVIDERVALUES_ALIBABA_CLOUD=hK;AF.CLOUDPROVIDERVALUES_AWS=LK;AF.CLOUDPROVIDERVALUES_AZURE=MK;AF.CLOUDPROVIDERVALUES_GCP=PK;AF.CloudProviderValues=(0,J1.createConstMap)([hK,LK,MK,PK]);var wK="alibaba_cloud_ecs",RK="alibaba_cloud_fc",kK="aws_ec2",$K="aws_ecs",SK="aws_eks",fK="aws_lambda",_K="aws_elastic_beanstalk",yK="azure_vm",vK="azure_container_instances",xK="azure_aks",jK="azure_functions",bK="azure_app_service",dK="gcp_compute_engine",uK="gcp_cloud_run",lK="gcp_kubernetes_engine",cK="gcp_cloud_functions",nK="gcp_app_engine";AF.CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS=wK;AF.CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC=RK;AF.CLOUDPLATFORMVALUES_AWS_EC2=kK;AF.CLOUDPLATFORMVALUES_AWS_ECS=$K;AF.CLOUDPLATFORMVALUES_AWS_EKS=SK;AF.CLOUDPLATFORMVALUES_AWS_LAMBDA=fK;AF.CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK=_K;AF.CLOUDPLATFORMVALUES_AZURE_VM=yK;AF.CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES=vK;AF.CLOUDPLATFORMVALUES_AZURE_AKS=xK;AF.CLOUDPLATFORMVALUES_AZURE_FUNCTIONS=jK;AF.CLOUDPLATFORMVALUES_AZURE_APP_SERVICE=bK;AF.CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE=dK;AF.CLOUDPLATFORMVALUES_GCP_CLOUD_RUN=uK;AF.CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE=lK;AF.CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS=cK;AF.CLOUDPLATFORMVALUES_GCP_APP_ENGINE=nK;AF.CloudPlatformValues=(0,J1.createConstMap)([wK,RK,kK,$K,SK,fK,_K,yK,vK,xK,jK,bK,dK,uK,lK,cK,nK]);var mK="ec2",pK="fargate";AF.AWSECSLAUNCHTYPEVALUES_EC2=mK;AF.AWSECSLAUNCHTYPEVALUES_FARGATE=pK;AF.AwsEcsLaunchtypeValues=(0,J1.createConstMap)([mK,pK]);var gK="amd64",iK="arm32",oK="arm64",aK="ia64",tK="ppc32",rK="ppc64",sK="x86";AF.HOSTARCHVALUES_AMD64=gK;AF.HOSTARCHVALUES_ARM32=iK;AF.HOSTARCHVALUES_ARM64=oK;AF.HOSTARCHVALUES_IA64=aK;AF.HOSTARCHVALUES_PPC32=tK;AF.HOSTARCHVALUES_PPC64=rK;AF.HOSTARCHVALUES_X86=sK;AF.HostArchValues=(0,J1.createConstMap)([gK,iK,oK,aK,tK,rK,sK]);var eK="windows",ZF="linux",JF="darwin",QF="freebsd",XF="netbsd",YF="openbsd",zF="dragonflybsd",GF="hpux",WF="aix",qF="solaris",KF="z_os";AF.OSTYPEVALUES_WINDOWS=eK;AF.OSTYPEVALUES_LINUX=ZF;AF.OSTYPEVALUES_DARWIN=JF;AF.OSTYPEVALUES_FREEBSD=QF;AF.OSTYPEVALUES_NETBSD=XF;AF.OSTYPEVALUES_OPENBSD=YF;AF.OSTYPEVALUES_DRAGONFLYBSD=zF;AF.OSTYPEVALUES_HPUX=GF;AF.OSTYPEVALUES_AIX=WF;AF.OSTYPEVALUES_SOLARIS=qF;AF.OSTYPEVALUES_Z_OS=KF;AF.OsTypeValues=(0,J1.createConstMap)([eK,ZF,JF,QF,XF,YF,zF,GF,WF,qF,KF]);var FF="cpp",HF="dotnet",OF="erlang",BF="go",VF="java",NF="nodejs",IF="php",CF="python",DF="ruby",UF="webjs";AF.TELEMETRYSDKLANGUAGEVALUES_CPP=FF;AF.TELEMETRYSDKLANGUAGEVALUES_DOTNET=HF;AF.TELEMETRYSDKLANGUAGEVALUES_ERLANG=OF;AF.TELEMETRYSDKLANGUAGEVALUES_GO=BF;AF.TELEMETRYSDKLANGUAGEVALUES_JAVA=VF;AF.TELEMETRYSDKLANGUAGEVALUES_NODEJS=NF;AF.TELEMETRYSDKLANGUAGEVALUES_PHP=IF;AF.TELEMETRYSDKLANGUAGEVALUES_PYTHON=CF;AF.TELEMETRYSDKLANGUAGEVALUES_RUBY=DF;AF.TELEMETRYSDKLANGUAGEVALUES_WEBJS=UF;AF.TelemetrySdkLanguageValues=(0,J1.createConstMap)([FF,HF,OF,BF,VF,NF,IF,CF,DF,UF])});var MF=V((Q1)=>{var cy=Q1&&Q1.__createBinding||(Object.create?function(Q,Y,G,K){if(K===void 0)K=G;var z=Object.getOwnPropertyDescriptor(Y,G);if(!z||("get"in z?!Y.__esModule:z.writable||z.configurable))z={enumerable:!0,get:function(){return Y[G]}};Object.defineProperty(Q,K,z)}:function(Q,Y,G,K){if(K===void 0)K=G;Q[K]=Y[G]}),ny=Q1&&Q1.__exportStar||function(Q,Y){for(var G in Q)if(G!=="default"&&!Object.prototype.hasOwnProperty.call(Y,G))cy(Y,Q,G)};Object.defineProperty(Q1,"__esModule",{value:!0});ny(LF(),Q1)});var $F=V((PF)=>{Object.defineProperty(PF,"__esModule",{value:!0});PF.ATTR_EXCEPTION_TYPE=PF.ATTR_EXCEPTION_STACKTRACE=PF.ATTR_EXCEPTION_MESSAGE=PF.ATTR_EXCEPTION_ESCAPED=PF.ERROR_TYPE_VALUE_OTHER=PF.ATTR_ERROR_TYPE=PF.DOTNET_GC_HEAP_GENERATION_VALUE_POH=PF.DOTNET_GC_HEAP_GENERATION_VALUE_LOH=PF.DOTNET_GC_HEAP_GENERATION_VALUE_GEN2=PF.DOTNET_GC_HEAP_GENERATION_VALUE_GEN1=PF.DOTNET_GC_HEAP_GENERATION_VALUE_GEN0=PF.ATTR_DOTNET_GC_HEAP_GENERATION=PF.DB_SYSTEM_NAME_VALUE_POSTGRESQL=PF.DB_SYSTEM_NAME_VALUE_MYSQL=PF.DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER=PF.DB_SYSTEM_NAME_VALUE_MARIADB=PF.ATTR_DB_SYSTEM_NAME=PF.ATTR_DB_STORED_PROCEDURE_NAME=PF.ATTR_DB_RESPONSE_STATUS_CODE=PF.ATTR_DB_QUERY_TEXT=PF.ATTR_DB_QUERY_SUMMARY=PF.ATTR_DB_OPERATION_NAME=PF.ATTR_DB_OPERATION_BATCH_SIZE=PF.ATTR_DB_NAMESPACE=PF.ATTR_DB_COLLECTION_NAME=PF.ATTR_CODE_STACKTRACE=PF.ATTR_CODE_LINE_NUMBER=PF.ATTR_CODE_FUNCTION_NAME=PF.ATTR_CODE_FILE_PATH=PF.ATTR_CODE_COLUMN_NUMBER=PF.ATTR_CLIENT_PORT=PF.ATTR_CLIENT_ADDRESS=PF.ATTR_ASPNETCORE_USER_IS_AUTHENTICATED=PF.ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS=PF.ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE=PF.ATTR_ASPNETCORE_ROUTING_MATCH_STATUS=PF.ATTR_ASPNETCORE_ROUTING_IS_FALLBACK=PF.ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED=PF.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED=PF.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER=PF.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER=PF.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED=PF.ATTR_ASPNETCORE_RATE_LIMITING_RESULT=PF.ATTR_ASPNETCORE_RATE_LIMITING_POLICY=PF.ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE=PF.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED=PF.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED=PF.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED=PF.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED=PF.ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT=void 0;PF.OTEL_STATUS_CODE_VALUE_ERROR=PF.ATTR_OTEL_STATUS_CODE=PF.ATTR_OTEL_SCOPE_VERSION=PF.ATTR_OTEL_SCOPE_NAME=PF.NETWORK_TYPE_VALUE_IPV6=PF.NETWORK_TYPE_VALUE_IPV4=PF.ATTR_NETWORK_TYPE=PF.NETWORK_TRANSPORT_VALUE_UNIX=PF.NETWORK_TRANSPORT_VALUE_UDP=PF.NETWORK_TRANSPORT_VALUE_TCP=PF.NETWORK_TRANSPORT_VALUE_QUIC=PF.NETWORK_TRANSPORT_VALUE_PIPE=PF.ATTR_NETWORK_TRANSPORT=PF.ATTR_NETWORK_PROTOCOL_VERSION=PF.ATTR_NETWORK_PROTOCOL_NAME=PF.ATTR_NETWORK_PEER_PORT=PF.ATTR_NETWORK_PEER_ADDRESS=PF.ATTR_NETWORK_LOCAL_PORT=PF.ATTR_NETWORK_LOCAL_ADDRESS=PF.JVM_THREAD_STATE_VALUE_WAITING=PF.JVM_THREAD_STATE_VALUE_TIMED_WAITING=PF.JVM_THREAD_STATE_VALUE_TERMINATED=PF.JVM_THREAD_STATE_VALUE_RUNNABLE=PF.JVM_THREAD_STATE_VALUE_NEW=PF.JVM_THREAD_STATE_VALUE_BLOCKED=PF.ATTR_JVM_THREAD_STATE=PF.ATTR_JVM_THREAD_DAEMON=PF.JVM_MEMORY_TYPE_VALUE_NON_HEAP=PF.JVM_MEMORY_TYPE_VALUE_HEAP=PF.ATTR_JVM_MEMORY_TYPE=PF.ATTR_JVM_MEMORY_POOL_NAME=PF.ATTR_JVM_GC_NAME=PF.ATTR_JVM_GC_ACTION=PF.ATTR_HTTP_ROUTE=PF.ATTR_HTTP_RESPONSE_STATUS_CODE=PF.ATTR_HTTP_RESPONSE_HEADER=PF.ATTR_HTTP_REQUEST_RESEND_COUNT=PF.ATTR_HTTP_REQUEST_METHOD_ORIGINAL=PF.HTTP_REQUEST_METHOD_VALUE_TRACE=PF.HTTP_REQUEST_METHOD_VALUE_PUT=PF.HTTP_REQUEST_METHOD_VALUE_POST=PF.HTTP_REQUEST_METHOD_VALUE_PATCH=PF.HTTP_REQUEST_METHOD_VALUE_OPTIONS=PF.HTTP_REQUEST_METHOD_VALUE_HEAD=PF.HTTP_REQUEST_METHOD_VALUE_GET=PF.HTTP_REQUEST_METHOD_VALUE_DELETE=PF.HTTP_REQUEST_METHOD_VALUE_CONNECT=PF.HTTP_REQUEST_METHOD_VALUE_OTHER=PF.ATTR_HTTP_REQUEST_METHOD=PF.ATTR_HTTP_REQUEST_HEADER=void 0;PF.ATTR_USER_AGENT_ORIGINAL=PF.ATTR_URL_SCHEME=PF.ATTR_URL_QUERY=PF.ATTR_URL_PATH=PF.ATTR_URL_FULL=PF.ATTR_URL_FRAGMENT=PF.ATTR_TELEMETRY_SDK_VERSION=PF.ATTR_TELEMETRY_SDK_NAME=PF.TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS=PF.TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT=PF.TELEMETRY_SDK_LANGUAGE_VALUE_RUST=PF.TELEMETRY_SDK_LANGUAGE_VALUE_RUBY=PF.TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON=PF.TELEMETRY_SDK_LANGUAGE_VALUE_PHP=PF.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS=PF.TELEMETRY_SDK_LANGUAGE_VALUE_JAVA=PF.TELEMETRY_SDK_LANGUAGE_VALUE_GO=PF.TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG=PF.TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET=PF.TELEMETRY_SDK_LANGUAGE_VALUE_CPP=PF.ATTR_TELEMETRY_SDK_LANGUAGE=PF.SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS=PF.SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS=PF.SIGNALR_TRANSPORT_VALUE_LONG_POLLING=PF.ATTR_SIGNALR_TRANSPORT=PF.SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT=PF.SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE=PF.SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN=PF.ATTR_SIGNALR_CONNECTION_STATUS=PF.ATTR_SERVICE_VERSION=PF.ATTR_SERVICE_NAMESPACE=PF.ATTR_SERVICE_NAME=PF.ATTR_SERVICE_INSTANCE_ID=PF.ATTR_SERVER_PORT=PF.ATTR_SERVER_ADDRESS=PF.ATTR_OTEL_STATUS_DESCRIPTION=PF.OTEL_STATUS_CODE_VALUE_OK=void 0;PF.ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT="aspnetcore.diagnostics.exception.result";PF.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED="aborted";PF.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED="handled";PF.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED="skipped";PF.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED="unhandled";PF.ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE="aspnetcore.diagnostics.handler.type";PF.ATTR_ASPNETCORE_RATE_LIMITING_POLICY="aspnetcore.rate_limiting.policy";PF.ATTR_ASPNETCORE_RATE_LIMITING_RESULT="aspnetcore.rate_limiting.result";PF.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED="acquired";PF.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER="endpoint_limiter";PF.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER="global_limiter";PF.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED="request_canceled";PF.ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED="aspnetcore.request.is_unhandled";PF.ATTR_ASPNETCORE_ROUTING_IS_FALLBACK="aspnetcore.routing.is_fallback";PF.ATTR_ASPNETCORE_ROUTING_MATCH_STATUS="aspnetcore.routing.match_status";PF.ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE="failure";PF.ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS="success";PF.ATTR_ASPNETCORE_USER_IS_AUTHENTICATED="aspnetcore.user.is_authenticated";PF.ATTR_CLIENT_ADDRESS="client.address";PF.ATTR_CLIENT_PORT="client.port";PF.ATTR_CODE_COLUMN_NUMBER="code.column.number";PF.ATTR_CODE_FILE_PATH="code.file.path";PF.ATTR_CODE_FUNCTION_NAME="code.function.name";PF.ATTR_CODE_LINE_NUMBER="code.line.number";PF.ATTR_CODE_STACKTRACE="code.stacktrace";PF.ATTR_DB_COLLECTION_NAME="db.collection.name";PF.ATTR_DB_NAMESPACE="db.namespace";PF.ATTR_DB_OPERATION_BATCH_SIZE="db.operation.batch.size";PF.ATTR_DB_OPERATION_NAME="db.operation.name";PF.ATTR_DB_QUERY_SUMMARY="db.query.summary";PF.ATTR_DB_QUERY_TEXT="db.query.text";PF.ATTR_DB_RESPONSE_STATUS_CODE="db.response.status_code";PF.ATTR_DB_STORED_PROCEDURE_NAME="db.stored_procedure.name";PF.ATTR_DB_SYSTEM_NAME="db.system.name";PF.DB_SYSTEM_NAME_VALUE_MARIADB="mariadb";PF.DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER="microsoft.sql_server";PF.DB_SYSTEM_NAME_VALUE_MYSQL="mysql";PF.DB_SYSTEM_NAME_VALUE_POSTGRESQL="postgresql";PF.ATTR_DOTNET_GC_HEAP_GENERATION="dotnet.gc.heap.generation";PF.DOTNET_GC_HEAP_GENERATION_VALUE_GEN0="gen0";PF.DOTNET_GC_HEAP_GENERATION_VALUE_GEN1="gen1";PF.DOTNET_GC_HEAP_GENERATION_VALUE_GEN2="gen2";PF.DOTNET_GC_HEAP_GENERATION_VALUE_LOH="loh";PF.DOTNET_GC_HEAP_GENERATION_VALUE_POH="poh";PF.ATTR_ERROR_TYPE="error.type";PF.ERROR_TYPE_VALUE_OTHER="_OTHER";PF.ATTR_EXCEPTION_ESCAPED="exception.escaped";PF.ATTR_EXCEPTION_MESSAGE="exception.message";PF.ATTR_EXCEPTION_STACKTRACE="exception.stacktrace";PF.ATTR_EXCEPTION_TYPE="exception.type";var my=(Q)=>`http.request.header.${Q}`;PF.ATTR_HTTP_REQUEST_HEADER=my;PF.ATTR_HTTP_REQUEST_METHOD="http.request.method";PF.HTTP_REQUEST_METHOD_VALUE_OTHER="_OTHER";PF.HTTP_REQUEST_METHOD_VALUE_CONNECT="CONNECT";PF.HTTP_REQUEST_METHOD_VALUE_DELETE="DELETE";PF.HTTP_REQUEST_METHOD_VALUE_GET="GET";PF.HTTP_REQUEST_METHOD_VALUE_HEAD="HEAD";PF.HTTP_REQUEST_METHOD_VALUE_OPTIONS="OPTIONS";PF.HTTP_REQUEST_METHOD_VALUE_PATCH="PATCH";PF.HTTP_REQUEST_METHOD_VALUE_POST="POST";PF.HTTP_REQUEST_METHOD_VALUE_PUT="PUT";PF.HTTP_REQUEST_METHOD_VALUE_TRACE="TRACE";PF.ATTR_HTTP_REQUEST_METHOD_ORIGINAL="http.request.method_original";PF.ATTR_HTTP_REQUEST_RESEND_COUNT="http.request.resend_count";var py=(Q)=>`http.response.header.${Q}`;PF.ATTR_HTTP_RESPONSE_HEADER=py;PF.ATTR_HTTP_RESPONSE_STATUS_CODE="http.response.status_code";PF.ATTR_HTTP_ROUTE="http.route";PF.ATTR_JVM_GC_ACTION="jvm.gc.action";PF.ATTR_JVM_GC_NAME="jvm.gc.name";PF.ATTR_JVM_MEMORY_POOL_NAME="jvm.memory.pool.name";PF.ATTR_JVM_MEMORY_TYPE="jvm.memory.type";PF.JVM_MEMORY_TYPE_VALUE_HEAP="heap";PF.JVM_MEMORY_TYPE_VALUE_NON_HEAP="non_heap";PF.ATTR_JVM_THREAD_DAEMON="jvm.thread.daemon";PF.ATTR_JVM_THREAD_STATE="jvm.thread.state";PF.JVM_THREAD_STATE_VALUE_BLOCKED="blocked";PF.JVM_THREAD_STATE_VALUE_NEW="new";PF.JVM_THREAD_STATE_VALUE_RUNNABLE="runnable";PF.JVM_THREAD_STATE_VALUE_TERMINATED="terminated";PF.JVM_THREAD_STATE_VALUE_TIMED_WAITING="timed_waiting";PF.JVM_THREAD_STATE_VALUE_WAITING="waiting";PF.ATTR_NETWORK_LOCAL_ADDRESS="network.local.address";PF.ATTR_NETWORK_LOCAL_PORT="network.local.port";PF.ATTR_NETWORK_PEER_ADDRESS="network.peer.address";PF.ATTR_NETWORK_PEER_PORT="network.peer.port";PF.ATTR_NETWORK_PROTOCOL_NAME="network.protocol.name";PF.ATTR_NETWORK_PROTOCOL_VERSION="network.protocol.version";PF.ATTR_NETWORK_TRANSPORT="network.transport";PF.NETWORK_TRANSPORT_VALUE_PIPE="pipe";PF.NETWORK_TRANSPORT_VALUE_QUIC="quic";PF.NETWORK_TRANSPORT_VALUE_TCP="tcp";PF.NETWORK_TRANSPORT_VALUE_UDP="udp";PF.NETWORK_TRANSPORT_VALUE_UNIX="unix";PF.ATTR_NETWORK_TYPE="network.type";PF.NETWORK_TYPE_VALUE_IPV4="ipv4";PF.NETWORK_TYPE_VALUE_IPV6="ipv6";PF.ATTR_OTEL_SCOPE_NAME="otel.scope.name";PF.ATTR_OTEL_SCOPE_VERSION="otel.scope.version";PF.ATTR_OTEL_STATUS_CODE="otel.status_code";PF.OTEL_STATUS_CODE_VALUE_ERROR="ERROR";PF.OTEL_STATUS_CODE_VALUE_OK="OK";PF.ATTR_OTEL_STATUS_DESCRIPTION="otel.status_description";PF.ATTR_SERVER_ADDRESS="server.address";PF.ATTR_SERVER_PORT="server.port";PF.ATTR_SERVICE_INSTANCE_ID="service.instance.id";PF.ATTR_SERVICE_NAME="service.name";PF.ATTR_SERVICE_NAMESPACE="service.namespace";PF.ATTR_SERVICE_VERSION="service.version";PF.ATTR_SIGNALR_CONNECTION_STATUS="signalr.connection.status";PF.SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN="app_shutdown";PF.SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE="normal_closure";PF.SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT="timeout";PF.ATTR_SIGNALR_TRANSPORT="signalr.transport";PF.SIGNALR_TRANSPORT_VALUE_LONG_POLLING="long_polling";PF.SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS="server_sent_events";PF.SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS="web_sockets";PF.ATTR_TELEMETRY_SDK_LANGUAGE="telemetry.sdk.language";PF.TELEMETRY_SDK_LANGUAGE_VALUE_CPP="cpp";PF.TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET="dotnet";PF.TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG="erlang";PF.TELEMETRY_SDK_LANGUAGE_VALUE_GO="go";PF.TELEMETRY_SDK_LANGUAGE_VALUE_JAVA="java";PF.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS="nodejs";PF.TELEMETRY_SDK_LANGUAGE_VALUE_PHP="php";PF.TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON="python";PF.TELEMETRY_SDK_LANGUAGE_VALUE_RUBY="ruby";PF.TELEMETRY_SDK_LANGUAGE_VALUE_RUST="rust";PF.TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT="swift";PF.TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS="webjs";PF.ATTR_TELEMETRY_SDK_NAME="telemetry.sdk.name";PF.ATTR_TELEMETRY_SDK_VERSION="telemetry.sdk.version";PF.ATTR_URL_FRAGMENT="url.fragment";PF.ATTR_URL_FULL="url.full";PF.ATTR_URL_PATH="url.path";PF.ATTR_URL_QUERY="url.query";PF.ATTR_URL_SCHEME="url.scheme";PF.ATTR_USER_AGENT_ORIGINAL="user_agent.original"});var yF=V((SF)=>{Object.defineProperty(SF,"__esModule",{value:!0});SF.METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS=SF.METRIC_KESTREL_UPGRADED_CONNECTIONS=SF.METRIC_KESTREL_TLS_HANDSHAKE_DURATION=SF.METRIC_KESTREL_REJECTED_CONNECTIONS=SF.METRIC_KESTREL_QUEUED_REQUESTS=SF.METRIC_KESTREL_QUEUED_CONNECTIONS=SF.METRIC_KESTREL_CONNECTION_DURATION=SF.METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES=SF.METRIC_KESTREL_ACTIVE_CONNECTIONS=SF.METRIC_JVM_THREAD_COUNT=SF.METRIC_JVM_MEMORY_USED_AFTER_LAST_GC=SF.METRIC_JVM_MEMORY_USED=SF.METRIC_JVM_MEMORY_LIMIT=SF.METRIC_JVM_MEMORY_COMMITTED=SF.METRIC_JVM_GC_DURATION=SF.METRIC_JVM_CPU_TIME=SF.METRIC_JVM_CPU_RECENT_UTILIZATION=SF.METRIC_JVM_CPU_COUNT=SF.METRIC_JVM_CLASS_UNLOADED=SF.METRIC_JVM_CLASS_LOADED=SF.METRIC_JVM_CLASS_COUNT=SF.METRIC_HTTP_SERVER_REQUEST_DURATION=SF.METRIC_HTTP_CLIENT_REQUEST_DURATION=SF.METRIC_DOTNET_TIMER_COUNT=SF.METRIC_DOTNET_THREAD_POOL_WORK_ITEM_COUNT=SF.METRIC_DOTNET_THREAD_POOL_THREAD_COUNT=SF.METRIC_DOTNET_THREAD_POOL_QUEUE_LENGTH=SF.METRIC_DOTNET_PROCESS_MEMORY_WORKING_SET=SF.METRIC_DOTNET_PROCESS_CPU_TIME=SF.METRIC_DOTNET_PROCESS_CPU_COUNT=SF.METRIC_DOTNET_MONITOR_LOCK_CONTENTIONS=SF.METRIC_DOTNET_JIT_COMPILED_METHODS=SF.METRIC_DOTNET_JIT_COMPILED_IL_SIZE=SF.METRIC_DOTNET_JIT_COMPILATION_TIME=SF.METRIC_DOTNET_GC_PAUSE_TIME=SF.METRIC_DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE=SF.METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_SIZE=SF.METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE=SF.METRIC_DOTNET_GC_HEAP_TOTAL_ALLOCATED=SF.METRIC_DOTNET_GC_COLLECTIONS=SF.METRIC_DOTNET_EXCEPTIONS=SF.METRIC_DOTNET_ASSEMBLY_COUNT=SF.METRIC_DB_CLIENT_OPERATION_DURATION=SF.METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS=SF.METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS=SF.METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION=SF.METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE=SF.METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS=SF.METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES=SF.METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS=void 0;SF.METRIC_SIGNALR_SERVER_CONNECTION_DURATION=void 0;SF.METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS="aspnetcore.diagnostics.exceptions";SF.METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES="aspnetcore.rate_limiting.active_request_leases";SF.METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS="aspnetcore.rate_limiting.queued_requests";SF.METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE="aspnetcore.rate_limiting.request.time_in_queue";SF.METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION="aspnetcore.rate_limiting.request_lease.duration";SF.METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS="aspnetcore.rate_limiting.requests";SF.METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS="aspnetcore.routing.match_attempts";SF.METRIC_DB_CLIENT_OPERATION_DURATION="db.client.operation.duration";SF.METRIC_DOTNET_ASSEMBLY_COUNT="dotnet.assembly.count";SF.METRIC_DOTNET_EXCEPTIONS="dotnet.exceptions";SF.METRIC_DOTNET_GC_COLLECTIONS="dotnet.gc.collections";SF.METRIC_DOTNET_GC_HEAP_TOTAL_ALLOCATED="dotnet.gc.heap.total_allocated";SF.METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE="dotnet.gc.last_collection.heap.fragmentation.size";SF.METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_SIZE="dotnet.gc.last_collection.heap.size";SF.METRIC_DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE="dotnet.gc.last_collection.memory.committed_size";SF.METRIC_DOTNET_GC_PAUSE_TIME="dotnet.gc.pause.time";SF.METRIC_DOTNET_JIT_COMPILATION_TIME="dotnet.jit.compilation.time";SF.METRIC_DOTNET_JIT_COMPILED_IL_SIZE="dotnet.jit.compiled_il.size";SF.METRIC_DOTNET_JIT_COMPILED_METHODS="dotnet.jit.compiled_methods";SF.METRIC_DOTNET_MONITOR_LOCK_CONTENTIONS="dotnet.monitor.lock_contentions";SF.METRIC_DOTNET_PROCESS_CPU_COUNT="dotnet.process.cpu.count";SF.METRIC_DOTNET_PROCESS_CPU_TIME="dotnet.process.cpu.time";SF.METRIC_DOTNET_PROCESS_MEMORY_WORKING_SET="dotnet.process.memory.working_set";SF.METRIC_DOTNET_THREAD_POOL_QUEUE_LENGTH="dotnet.thread_pool.queue.length";SF.METRIC_DOTNET_THREAD_POOL_THREAD_COUNT="dotnet.thread_pool.thread.count";SF.METRIC_DOTNET_THREAD_POOL_WORK_ITEM_COUNT="dotnet.thread_pool.work_item.count";SF.METRIC_DOTNET_TIMER_COUNT="dotnet.timer.count";SF.METRIC_HTTP_CLIENT_REQUEST_DURATION="http.client.request.duration";SF.METRIC_HTTP_SERVER_REQUEST_DURATION="http.server.request.duration";SF.METRIC_JVM_CLASS_COUNT="jvm.class.count";SF.METRIC_JVM_CLASS_LOADED="jvm.class.loaded";SF.METRIC_JVM_CLASS_UNLOADED="jvm.class.unloaded";SF.METRIC_JVM_CPU_COUNT="jvm.cpu.count";SF.METRIC_JVM_CPU_RECENT_UTILIZATION="jvm.cpu.recent_utilization";SF.METRIC_JVM_CPU_TIME="jvm.cpu.time";SF.METRIC_JVM_GC_DURATION="jvm.gc.duration";SF.METRIC_JVM_MEMORY_COMMITTED="jvm.memory.committed";SF.METRIC_JVM_MEMORY_LIMIT="jvm.memory.limit";SF.METRIC_JVM_MEMORY_USED="jvm.memory.used";SF.METRIC_JVM_MEMORY_USED_AFTER_LAST_GC="jvm.memory.used_after_last_gc";SF.METRIC_JVM_THREAD_COUNT="jvm.thread.count";SF.METRIC_KESTREL_ACTIVE_CONNECTIONS="kestrel.active_connections";SF.METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES="kestrel.active_tls_handshakes";SF.METRIC_KESTREL_CONNECTION_DURATION="kestrel.connection.duration";SF.METRIC_KESTREL_QUEUED_CONNECTIONS="kestrel.queued_connections";SF.METRIC_KESTREL_QUEUED_REQUESTS="kestrel.queued_requests";SF.METRIC_KESTREL_REJECTED_CONNECTIONS="kestrel.rejected_connections";SF.METRIC_KESTREL_TLS_HANDSHAKE_DURATION="kestrel.tls_handshake.duration";SF.METRIC_KESTREL_UPGRADED_CONNECTIONS="kestrel.upgraded_connections";SF.METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS="signalr.server.active_connections";SF.METRIC_SIGNALR_SERVER_CONNECTION_DURATION="signalr.server.connection.duration"});var jF=V((vF)=>{Object.defineProperty(vF,"__esModule",{value:!0});vF.EVENT_EXCEPTION=void 0;vF.EVENT_EXCEPTION="exception"});var X1=V((N0)=>{var Bb=N0&&N0.__createBinding||(Object.create?function(Q,Y,G,K){if(K===void 0)K=G;var z=Object.getOwnPropertyDescriptor(Y,G);if(!z||("get"in z?!Y.__esModule:z.writable||z.configurable))z={enumerable:!0,get:function(){return Y[G]}};Object.defineProperty(Q,K,z)}:function(Q,Y,G,K){if(K===void 0)K=G;Q[K]=Y[G]}),O6=N0&&N0.__exportStar||function(Q,Y){for(var G in Q)if(G!=="default"&&!Object.prototype.hasOwnProperty.call(Y,G))Bb(Y,Q,G)};Object.defineProperty(N0,"__esModule",{value:!0});O6(aW(),N0);O6(MF(),N0);O6($F(),N0);O6(yF(),N0);O6(jF(),N0)});var uF=V((bF)=>{Object.defineProperty(bF,"__esModule",{value:!0});bF.ATTR_PROCESS_RUNTIME_NAME=void 0;bF.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name"});var nF=V((lF)=>{Object.defineProperty(lF,"__esModule",{value:!0});lF.SDK_INFO=void 0;var Vb=a9(),WZ=X1(),Nb=uF();lF.SDK_INFO={[WZ.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[Nb.ATTR_PROCESS_RUNTIME_NAME]:"node",[WZ.ATTR_TELEMETRY_SDK_LANGUAGE]:WZ.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,[WZ.ATTR_TELEMETRY_SDK_VERSION]:Vb.VERSION}});var pF=V((j0)=>{Object.defineProperty(j0,"__esModule",{value:!0});j0.otperformance=j0.SDK_INFO=j0._globalThis=j0.getStringListFromEnv=j0.getNumberFromEnv=j0.getBooleanFromEnv=j0.getStringFromEnv=void 0;var qZ=n9();Object.defineProperty(j0,"getStringFromEnv",{enumerable:!0,get:function(){return qZ.getStringFromEnv}});Object.defineProperty(j0,"getBooleanFromEnv",{enumerable:!0,get:function(){return qZ.getBooleanFromEnv}});Object.defineProperty(j0,"getNumberFromEnv",{enumerable:!0,get:function(){return qZ.getNumberFromEnv}});Object.defineProperty(j0,"getStringListFromEnv",{enumerable:!0,get:function(){return qZ.getStringListFromEnv}});var Ib=g9();Object.defineProperty(j0,"_globalThis",{enumerable:!0,get:function(){return Ib._globalThis}});var Cb=nF();Object.defineProperty(j0,"SDK_INFO",{enumerable:!0,get:function(){return Cb.SDK_INFO}});j0.otperformance=performance});var _7=V((S0)=>{Object.defineProperty(S0,"__esModule",{value:!0});S0.getStringListFromEnv=S0.getNumberFromEnv=S0.getStringFromEnv=S0.getBooleanFromEnv=S0.otperformance=S0._globalThis=S0.SDK_INFO=void 0;var Y1=pF();Object.defineProperty(S0,"SDK_INFO",{enumerable:!0,get:function(){return Y1.SDK_INFO}});Object.defineProperty(S0,"_globalThis",{enumerable:!0,get:function(){return Y1._globalThis}});Object.defineProperty(S0,"otperformance",{enumerable:!0,get:function(){return Y1.otperformance}});Object.defineProperty(S0,"getBooleanFromEnv",{enumerable:!0,get:function(){return Y1.getBooleanFromEnv}});Object.defineProperty(S0,"getStringFromEnv",{enumerable:!0,get:function(){return Y1.getStringFromEnv}});Object.defineProperty(S0,"getNumberFromEnv",{enumerable:!0,get:function(){return Y1.getNumberFromEnv}});Object.defineProperty(S0,"getStringListFromEnv",{enumerable:!0,get:function(){return Y1.getStringListFromEnv}})});var rF=V((aF)=>{Object.defineProperty(aF,"__esModule",{value:!0});aF.addHrTimes=aF.isTimeInput=aF.isTimeInputHrTime=aF.hrTimeToMicroseconds=aF.hrTimeToMilliseconds=aF.hrTimeToNanoseconds=aF.hrTimeToTimeStamp=aF.hrTimeDuration=aF.timeInputToHrTime=aF.hrTime=aF.getTimeOrigin=aF.millisToHrTime=void 0;var KZ=_7(),gF=9,Ub=6,Ab=Math.pow(10,Ub),FZ=Math.pow(10,gF);function B6(Q){let Y=Q/1000,G=Math.trunc(Y),K=Math.round(Q%1000*Ab);return[G,K]}aF.millisToHrTime=B6;function Eb(){return KZ.otperformance.timeOrigin}aF.getTimeOrigin=Eb;function iF(Q){let Y=B6(KZ.otperformance.timeOrigin),G=B6(typeof Q==="number"?Q:KZ.otperformance.now());return oF(Y,G)}aF.hrTime=iF;function Tb(Q){if(y7(Q))return Q;else if(typeof Q==="number")if(Q<KZ.otperformance.timeOrigin)return iF(Q);else return B6(Q);else if(Q instanceof Date)return B6(Q.getTime());else throw TypeError("Invalid input type")}aF.timeInputToHrTime=Tb;function hb(Q,Y){let G=Y[0]-Q[0],K=Y[1]-Q[1];if(K<0)G-=1,K+=FZ;return[G,K]}aF.hrTimeDuration=hb;function Lb(Q){let Y=gF,G=`${"0".repeat(Y)}${Q[1]}Z`,K=G.substring(G.length-Y-1);return new Date(Q[0]*1000).toISOString().replace("000Z",K)}aF.hrTimeToTimeStamp=Lb;function Mb(Q){return Q[0]*FZ+Q[1]}aF.hrTimeToNanoseconds=Mb;function Pb(Q){return Q[0]*1000+Q[1]/1e6}aF.hrTimeToMilliseconds=Pb;function wb(Q){return Q[0]*1e6+Q[1]/1000}aF.hrTimeToMicroseconds=wb;function y7(Q){return Array.isArray(Q)&&Q.length===2&&typeof Q[0]==="number"&&typeof Q[1]==="number"}aF.isTimeInputHrTime=y7;function Rb(Q){return y7(Q)||typeof Q==="number"||Q instanceof Date}aF.isTimeInput=Rb;function oF(Q,Y){let G=[Q[0]+Y[0],Q[1]+Y[1]];if(G[1]>=FZ)G[1]-=FZ,G[0]+=1;return G}aF.addHrTimes=oF});var ZH=V((sF)=>{Object.defineProperty(sF,"__esModule",{value:!0});sF.unrefTimer=void 0;function ub(Q){if(typeof Q!=="number")Q.unref()}sF.unrefTimer=ub});var QH=V((JH)=>{Object.defineProperty(JH,"__esModule",{value:!0});JH.ExportResultCode=void 0;var lb;(function(Q){Q[Q.SUCCESS=0]="SUCCESS",Q[Q.FAILED=1]="FAILED"})(lb=JH.ExportResultCode||(JH.ExportResultCode={}))});var WH=V((zH)=>{Object.defineProperty(zH,"__esModule",{value:!0});zH.CompositePropagator=void 0;var XH=T();class YH{_propagators;_fields;constructor(Q={}){this._propagators=Q.propagators??[],this._fields=Array.from(new Set(this._propagators.map((Y)=>typeof Y.fields==="function"?Y.fields():[]).reduce((Y,G)=>Y.concat(G),[])))}inject(Q,Y,G){for(let K of this._propagators)try{K.inject(Q,Y,G)}catch(z){XH.diag.warn(`Failed to inject with ${K.constructor.name}. Err: ${z.message}`)}}extract(Q,Y,G){return this._propagators.reduce((K,z)=>{try{return z.extract(K,Y,G)}catch(W){XH.diag.warn(`Failed to extract with ${z.constructor.name}. Err: ${W.message}`)}return K},Q)}fields(){return this._fields.slice()}}zH.CompositePropagator=YH});var FH=V((qH)=>{Object.defineProperty(qH,"__esModule",{value:!0});qH.validateValue=qH.validateKey=void 0;var x7="[_0-9a-z-*/]",cb=`[a-z]${x7}{0,255}`,nb=`[a-z0-9]${x7}{0,240}@[a-z]${x7}{0,13}`,mb=new RegExp(`^(?:${cb}|${nb})$`),pb=/^[ -~]{0,255}[!-~]$/,gb=/,|=/;function ib(Q){return mb.test(Q)}qH.validateKey=ib;function ob(Q){return pb.test(Q)&&!gb.test(Q)}qH.validateValue=ob});var b7=V((NH)=>{Object.defineProperty(NH,"__esModule",{value:!0});NH.TraceState=void 0;var HH=FH(),OH=32,tb=512,BH=",",VH="=";class j7{_internalState=new Map;constructor(Q){if(Q)this._parse(Q)}set(Q,Y){let G=this._clone();if(G._internalState.has(Q))G._internalState.delete(Q);return G._internalState.set(Q,Y),G}unset(Q){let Y=this._clone();return Y._internalState.delete(Q),Y}get(Q){return this._internalState.get(Q)}serialize(){return this._keys().reduce((Q,Y)=>{return Q.push(Y+VH+this.get(Y)),Q},[]).join(BH)}_parse(Q){if(Q.length>tb)return;if(this._internalState=Q.split(BH).reverse().reduce((Y,G)=>{let K=G.trim(),z=K.indexOf(VH);if(z!==-1){let W=K.slice(0,z),J=K.slice(z+1,G.length);if((0,HH.validateKey)(W)&&(0,HH.validateValue)(J))Y.set(W,J)}return Y},new Map),this._internalState.size>OH)this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,OH))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let Q=new j7;return Q._internalState=new Map(this._internalState),Q}}NH.TraceState=j7});var EH=V((UH)=>{Object.defineProperty(UH,"__esModule",{value:!0});UH.W3CTraceContextPropagator=UH.parseTraceParent=UH.TRACE_STATE_HEADER=UH.TRACE_PARENT_HEADER=void 0;var HZ=T(),rb=H6(),sb=b7();UH.TRACE_PARENT_HEADER="traceparent";UH.TRACE_STATE_HEADER="tracestate";var eb="00",Zd="(?!ff)[\\da-f]{2}",Jd="(?![0]{32})[\\da-f]{32}",Qd="(?![0]{16})[\\da-f]{16}",Xd="[\\da-f]{2}",Yd=new RegExp(`^\\s?(${Zd})-(${Jd})-(${Qd})-(${Xd})(-.*)?\\s?$`);function CH(Q){let Y=Yd.exec(Q);if(!Y)return null;if(Y[1]==="00"&&Y[5])return null;return{traceId:Y[2],spanId:Y[3],traceFlags:parseInt(Y[4],16)}}UH.parseTraceParent=CH;class DH{inject(Q,Y,G){let K=HZ.trace.getSpanContext(Q);if(!K||(0,rb.isTracingSuppressed)(Q)||!(0,HZ.isSpanContextValid)(K))return;let z=`${eb}-${K.traceId}-${K.spanId}-0${Number(K.traceFlags||HZ.TraceFlags.NONE).toString(16)}`;if(G.set(Y,UH.TRACE_PARENT_HEADER,z),K.traceState)G.set(Y,UH.TRACE_STATE_HEADER,K.traceState.serialize())}extract(Q,Y,G){let K=G.get(Y,UH.TRACE_PARENT_HEADER);if(!K)return Q;let z=Array.isArray(K)?K[0]:K;if(typeof z!=="string")return Q;let W=CH(z);if(!W)return Q;W.isRemote=!0;let J=G.get(Y,UH.TRACE_STATE_HEADER);if(J){let Z=Array.isArray(J)?J.join(","):J;W.traceState=new sb.TraceState(typeof Z==="string"?Z:void 0)}return HZ.trace.setSpanContext(Q,W)}fields(){return[UH.TRACE_PARENT_HEADER,UH.TRACE_STATE_HEADER]}}UH.W3CTraceContextPropagator=DH});var MH=V((hH)=>{Object.defineProperty(hH,"__esModule",{value:!0});hH.getRPCMetadata=hH.deleteRPCMetadata=hH.setRPCMetadata=hH.RPCType=void 0;var Gd=T(),d7=(0,Gd.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),Wd;(function(Q){Q.HTTP="http"})(Wd=hH.RPCType||(hH.RPCType={}));function qd(Q,Y){return Q.setValue(d7,Y)}hH.setRPCMetadata=qd;function Kd(Q){return Q.deleteValue(d7)}hH.deleteRPCMetadata=Kd;function Fd(Q){return Q.getValue(d7)}hH.getRPCMetadata=Fd});var fH=V(($H)=>{Object.defineProperty($H,"__esModule",{value:!0});$H.isPlainObject=void 0;var Bd="[object Object]",Vd="[object Null]",Nd="[object Undefined]",Id=Function.prototype,PH=Id.toString,Cd=PH.call(Object),Dd=Object.getPrototypeOf,wH=Object.prototype,RH=wH.hasOwnProperty,z1=Symbol?Symbol.toStringTag:void 0,kH=wH.toString;function Ud(Q){if(!Ad(Q)||Ed(Q)!==Bd)return!1;let Y=Dd(Q);if(Y===null)return!0;let G=RH.call(Y,"constructor")&&Y.constructor;return typeof G=="function"&&G instanceof G&&PH.call(G)===Cd}$H.isPlainObject=Ud;function Ad(Q){return Q!=null&&typeof Q=="object"}function Ed(Q){if(Q==null)return Q===void 0?Nd:Vd;return z1&&z1 in Object(Q)?Td(Q):hd(Q)}function Td(Q){let Y=RH.call(Q,z1),G=Q[z1],K=!1;try{Q[z1]=void 0,K=!0}catch{}let z=kH.call(Q);if(K)if(Y)Q[z1]=G;else delete Q[z1];return z}function hd(Q){return kH.call(Q)}});var dH=V((jH)=>{Object.defineProperty(jH,"__esModule",{value:!0});jH.merge=void 0;var _H=fH(),Ld=20;function Md(...Q){let Y=Q.shift(),G=new WeakMap;while(Q.length>0)Y=vH(Y,Q.shift(),0,G);return Y}jH.merge=Md;function u7(Q){if(NZ(Q))return Q.slice();return Q}function vH(Q,Y,G=0,K){let z;if(G>Ld)return;if(G++,VZ(Q)||VZ(Y)||xH(Y))z=u7(Y);else if(NZ(Q)){if(z=Q.slice(),NZ(Y))for(let W=0,J=Y.length;W<J;W++)z.push(u7(Y[W]));else if(V6(Y)){let W=Object.keys(Y);for(let J=0,Z=W.length;J<Z;J++){let X=W[J];z[X]=u7(Y[X])}}}else if(V6(Q))if(V6(Y)){if(!Pd(Q,Y))return Y;z=Object.assign({},Q);let W=Object.keys(Y);for(let J=0,Z=W.length;J<Z;J++){let X=W[J],q=Y[X];if(VZ(q))if(typeof q>"u")delete z[X];else z[X]=q;else{let F=z[X],H=q;if(yH(Q,X,K)||yH(Y,X,K))delete z[X];else{if(V6(F)&&V6(H)){let N=K.get(F)||[],C=K.get(H)||[];N.push({obj:Q,key:X}),C.push({obj:Y,key:X}),K.set(F,N),K.set(H,C)}z[X]=vH(z[X],q,G,K)}}}}else z=Y;return z}function yH(Q,Y,G){let K=G.get(Q[Y])||[];for(let z=0,W=K.length;z<W;z++){let J=K[z];if(J.key===Y&&J.obj===Q)return!0}return!1}function NZ(Q){return Array.isArray(Q)}function xH(Q){return typeof Q==="function"}function V6(Q){return!VZ(Q)&&!NZ(Q)&&!xH(Q)&&typeof Q==="object"}function VZ(Q){return typeof Q==="string"||typeof Q==="number"||typeof Q==="boolean"||typeof Q>"u"||Q instanceof Date||Q instanceof RegExp||Q===null}function Pd(Q,Y){if(!(0,_H.isPlainObject)(Q)||!(0,_H.isPlainObject)(Y))return!1;return!0}});var cH=V((uH)=>{Object.defineProperty(uH,"__esModule",{value:!0});uH.callWithTimeout=uH.TimeoutError=void 0;class IZ extends Error{constructor(Q){super(Q);Object.setPrototypeOf(this,IZ.prototype)}}uH.TimeoutError=IZ;function wd(Q,Y){let G,K=new Promise(function(W,J){G=setTimeout(function(){J(new IZ("Operation timed out."))},Y)});return Promise.race([Q,K]).then((z)=>{return clearTimeout(G),z},(z)=>{throw clearTimeout(G),z})}uH.callWithTimeout=wd});var gH=V((mH)=>{Object.defineProperty(mH,"__esModule",{value:!0});mH.isUrlIgnored=mH.urlMatches=void 0;function nH(Q,Y){if(typeof Y==="string")return Q===Y;else return!!Q.match(Y)}mH.urlMatches=nH;function kd(Q,Y){if(!Y)return!1;for(let G of Y)if(nH(Q,G))return!0;return!1}mH.isUrlIgnored=kd});var tH=V((oH)=>{Object.defineProperty(oH,"__esModule",{value:!0});oH.Deferred=void 0;class iH{_promise;_resolve;_reject;constructor(){this._promise=new Promise((Q,Y)=>{this._resolve=Q,this._reject=Y})}get promise(){return this._promise}resolve(Q){this._resolve(Q)}reject(Q){this._reject(Q)}}oH.Deferred=iH});var ZO=V((sH)=>{Object.defineProperty(sH,"__esModule",{value:!0});sH.BindOnceFuture=void 0;var Sd=tH();class rH{_isCalled=!1;_deferred=new Sd.Deferred;_callback;_that;constructor(Q,Y){this._callback=Q,this._that=Y}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...Q){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...Q)).then((Y)=>this._deferred.resolve(Y),(Y)=>this._deferred.reject(Y))}catch(Y){this._deferred.reject(Y)}}return this._deferred.promise}}sH.BindOnceFuture=rH});var YO=V((QO)=>{Object.defineProperty(QO,"__esModule",{value:!0});QO.diagLogLevelFromString=void 0;var f0=T(),JO={ALL:f0.DiagLogLevel.ALL,VERBOSE:f0.DiagLogLevel.VERBOSE,DEBUG:f0.DiagLogLevel.DEBUG,INFO:f0.DiagLogLevel.INFO,WARN:f0.DiagLogLevel.WARN,ERROR:f0.DiagLogLevel.ERROR,NONE:f0.DiagLogLevel.NONE};function fd(Q){if(Q==null)return;let Y=JO[Q.toUpperCase()];if(Y==null)return f0.diag.warn(`Unknown log level "${Q}", expected one of ${Object.keys(JO)}, using default`),f0.DiagLogLevel.INFO;return Y}QO.diagLogLevelFromString=fd});var qO=V((GO)=>{Object.defineProperty(GO,"__esModule",{value:!0});GO._export=void 0;var zO=T(),_d=H6();function yd(Q,Y){return new Promise((G)=>{zO.context.with((0,_d.suppressTracing)(zO.context.active()),()=>{Q.export(Y,G)})})}GO._export=yd});var S=V((L)=>{Object.defineProperty(L,"__esModule",{value:!0});L.internal=L.diagLogLevelFromString=L.BindOnceFuture=L.urlMatches=L.isUrlIgnored=L.callWithTimeout=L.TimeoutError=L.merge=L.TraceState=L.unsuppressTracing=L.suppressTracing=L.isTracingSuppressed=L.setRPCMetadata=L.getRPCMetadata=L.deleteRPCMetadata=L.RPCType=L.parseTraceParent=L.W3CTraceContextPropagator=L.TRACE_STATE_HEADER=L.TRACE_PARENT_HEADER=L.CompositePropagator=L.otperformance=L.getStringListFromEnv=L.getNumberFromEnv=L.getBooleanFromEnv=L.getStringFromEnv=L._globalThis=L.SDK_INFO=L.parseKeyPairsIntoRecord=L.ExportResultCode=L.unrefTimer=L.timeInputToHrTime=L.millisToHrTime=L.isTimeInputHrTime=L.isTimeInput=L.hrTimeToTimeStamp=L.hrTimeToNanoseconds=L.hrTimeToMilliseconds=L.hrTimeToMicroseconds=L.hrTimeDuration=L.hrTime=L.getTimeOrigin=L.addHrTimes=L.loggingErrorHandler=L.setGlobalErrorHandler=L.globalErrorHandler=L.sanitizeAttributes=L.isAttributeValue=L.AnchoredClock=L.W3CBaggagePropagator=void 0;var vd=A9();Object.defineProperty(L,"W3CBaggagePropagator",{enumerable:!0,get:function(){return vd.W3CBaggagePropagator}});var xd=L9();Object.defineProperty(L,"AnchoredClock",{enumerable:!0,get:function(){return xd.AnchoredClock}});var KO=S9();Object.defineProperty(L,"isAttributeValue",{enumerable:!0,get:function(){return KO.isAttributeValue}});Object.defineProperty(L,"sanitizeAttributes",{enumerable:!0,get:function(){return KO.sanitizeAttributes}});var FO=j9();Object.defineProperty(L,"globalErrorHandler",{enumerable:!0,get:function(){return FO.globalErrorHandler}});Object.defineProperty(L,"setGlobalErrorHandler",{enumerable:!0,get:function(){return FO.setGlobalErrorHandler}});var jd=S7();Object.defineProperty(L,"loggingErrorHandler",{enumerable:!0,get:function(){return jd.loggingErrorHandler}});var q0=rF();Object.defineProperty(L,"addHrTimes",{enumerable:!0,get:function(){return q0.addHrTimes}});Object.defineProperty(L,"getTimeOrigin",{enumerable:!0,get:function(){return q0.getTimeOrigin}});Object.defineProperty(L,"hrTime",{enumerable:!0,get:function(){return q0.hrTime}});Object.defineProperty(L,"hrTimeDuration",{enumerable:!0,get:function(){return q0.hrTimeDuration}});Object.defineProperty(L,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return q0.hrTimeToMicroseconds}});Object.defineProperty(L,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return q0.hrTimeToMilliseconds}});Object.defineProperty(L,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return q0.hrTimeToNanoseconds}});Object.defineProperty(L,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return q0.hrTimeToTimeStamp}});Object.defineProperty(L,"isTimeInput",{enumerable:!0,get:function(){return q0.isTimeInput}});Object.defineProperty(L,"isTimeInputHrTime",{enumerable:!0,get:function(){return q0.isTimeInputHrTime}});Object.defineProperty(L,"millisToHrTime",{enumerable:!0,get:function(){return q0.millisToHrTime}});Object.defineProperty(L,"timeInputToHrTime",{enumerable:!0,get:function(){return q0.timeInputToHrTime}});var bd=ZH();Object.defineProperty(L,"unrefTimer",{enumerable:!0,get:function(){return bd.unrefTimer}});var dd=QH();Object.defineProperty(L,"ExportResultCode",{enumerable:!0,get:function(){return dd.ExportResultCode}});var ud=R7();Object.defineProperty(L,"parseKeyPairsIntoRecord",{enumerable:!0,get:function(){return ud.parseKeyPairsIntoRecord}});var G1=_7();Object.defineProperty(L,"SDK_INFO",{enumerable:!0,get:function(){return G1.SDK_INFO}});Object.defineProperty(L,"_globalThis",{enumerable:!0,get:function(){return G1._globalThis}});Object.defineProperty(L,"getStringFromEnv",{enumerable:!0,get:function(){return G1.getStringFromEnv}});Object.defineProperty(L,"getBooleanFromEnv",{enumerable:!0,get:function(){return G1.getBooleanFromEnv}});Object.defineProperty(L,"getNumberFromEnv",{enumerable:!0,get:function(){return G1.getNumberFromEnv}});Object.defineProperty(L,"getStringListFromEnv",{enumerable:!0,get:function(){return G1.getStringListFromEnv}});Object.defineProperty(L,"otperformance",{enumerable:!0,get:function(){return G1.otperformance}});var ld=WH();Object.defineProperty(L,"CompositePropagator",{enumerable:!0,get:function(){return ld.CompositePropagator}});var CZ=EH();Object.defineProperty(L,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return CZ.TRACE_PARENT_HEADER}});Object.defineProperty(L,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return CZ.TRACE_STATE_HEADER}});Object.defineProperty(L,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return CZ.W3CTraceContextPropagator}});Object.defineProperty(L,"parseTraceParent",{enumerable:!0,get:function(){return CZ.parseTraceParent}});var DZ=MH();Object.defineProperty(L,"RPCType",{enumerable:!0,get:function(){return DZ.RPCType}});Object.defineProperty(L,"deleteRPCMetadata",{enumerable:!0,get:function(){return DZ.deleteRPCMetadata}});Object.defineProperty(L,"getRPCMetadata",{enumerable:!0,get:function(){return DZ.getRPCMetadata}});Object.defineProperty(L,"setRPCMetadata",{enumerable:!0,get:function(){return DZ.setRPCMetadata}});var l7=H6();Object.defineProperty(L,"isTracingSuppressed",{enumerable:!0,get:function(){return l7.isTracingSuppressed}});Object.defineProperty(L,"suppressTracing",{enumerable:!0,get:function(){return l7.suppressTracing}});Object.defineProperty(L,"unsuppressTracing",{enumerable:!0,get:function(){return l7.unsuppressTracing}});var cd=b7();Object.defineProperty(L,"TraceState",{enumerable:!0,get:function(){return cd.TraceState}});var nd=dH();Object.defineProperty(L,"merge",{enumerable:!0,get:function(){return nd.merge}});var HO=cH();Object.defineProperty(L,"TimeoutError",{enumerable:!0,get:function(){return HO.TimeoutError}});Object.defineProperty(L,"callWithTimeout",{enumerable:!0,get:function(){return HO.callWithTimeout}});var OO=gH();Object.defineProperty(L,"isUrlIgnored",{enumerable:!0,get:function(){return OO.isUrlIgnored}});Object.defineProperty(L,"urlMatches",{enumerable:!0,get:function(){return OO.urlMatches}});var md=ZO();Object.defineProperty(L,"BindOnceFuture",{enumerable:!0,get:function(){return md.BindOnceFuture}});var pd=YO();Object.defineProperty(L,"diagLogLevelFromString",{enumerable:!0,get:function(){return pd.diagLogLevelFromString}});var gd=qO();L.internal={_export:gd._export}});var IO=V((VO)=>{Object.defineProperty(VO,"__esModule",{value:!0});VO.createLoggingPartialSuccessResponseHandler=void 0;var id=T();function od(Q){return Object.prototype.hasOwnProperty.call(Q,"partialSuccess")}function ad(){return{handleResponse(Q){if(Q==null||!od(Q)||Q.partialSuccess==null||Object.keys(Q.partialSuccess).length===0)return;id.diag.warn("Received Partial Success response:",JSON.stringify(Q.partialSuccess))}}}VO.createLoggingPartialSuccessResponseHandler=ad});var c7=V((UO)=>{Object.defineProperty(UO,"__esModule",{value:!0});UO.createOtlpExportDelegate=void 0;var W1=S(),CO=GZ(),td=IO(),rd=T();class DO{_diagLogger;_transport;_serializer;_responseHandler;_promiseQueue;_timeout;constructor(Q,Y,G,K,z){this._transport=Q,this._serializer=Y,this._responseHandler=G,this._promiseQueue=K,this._timeout=z,this._diagLogger=rd.diag.createComponentLogger({namespace:"OTLPExportDelegate"})}export(Q,Y){if(this._diagLogger.debug("items to be sent",Q),this._promiseQueue.hasReachedLimit()){Y({code:W1.ExportResultCode.FAILED,error:Error("Concurrent export limit reached")});return}let G=this._serializer.serializeRequest(Q);if(G==null){Y({code:W1.ExportResultCode.FAILED,error:Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(G,this._timeout).then((K)=>{if(K.status==="success"){if(K.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(K.data))}catch(z){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",z,K.data)}Y({code:W1.ExportResultCode.SUCCESS});return}else if(K.status==="failure"&&K.error){Y({code:W1.ExportResultCode.FAILED,error:K.error});return}else if(K.status==="retryable")Y({code:W1.ExportResultCode.FAILED,error:K.error??new CO.OTLPExporterError("Export failed with retryable status")});else Y({code:W1.ExportResultCode.FAILED,error:new CO.OTLPExporterError("Export failed with unknown error")})},(K)=>Y({code:W1.ExportResultCode.FAILED,error:K})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function sd(Q,Y){return new DO(Q.transport,Q.serializer,(0,td.createLoggingPartialSuccessResponseHandler)(),Q.promiseHandler,Y.timeout)}UO.createOtlpExportDelegate=sd});var hO=V((EO)=>{Object.defineProperty(EO,"__esModule",{value:!0});EO.createOtlpNetworkExportDelegate=void 0;var ed=M7(),Zu=c7();function Ju(Q,Y,G){return(0,Zu.createOtlpExportDelegate)({transport:G,serializer:Y,promiseHandler:(0,ed.createBoundedQueueExportPromiseHandler)(Q)},{timeout:Q.timeoutMillis})}EO.createOtlpNetworkExportDelegate=Ju});var UZ=V((b0)=>{Object.defineProperty(b0,"__esModule",{value:!0});b0.createOtlpNetworkExportDelegate=b0.CompressionAlgorithm=b0.getSharedConfigurationDefaults=b0.mergeOtlpSharedConfigurationWithDefaults=b0.OTLPExporterError=b0.OTLPExporterBase=void 0;var Qu=sX();Object.defineProperty(b0,"OTLPExporterBase",{enumerable:!0,get:function(){return Qu.OTLPExporterBase}});var Xu=GZ();Object.defineProperty(b0,"OTLPExporterError",{enumerable:!0,get:function(){return Xu.OTLPExporterError}});var LO=F6();Object.defineProperty(b0,"mergeOtlpSharedConfigurationWithDefaults",{enumerable:!0,get:function(){return LO.mergeOtlpSharedConfigurationWithDefaults}});Object.defineProperty(b0,"getSharedConfigurationDefaults",{enumerable:!0,get:function(){return LO.getSharedConfigurationDefaults}});var Yu=G9();Object.defineProperty(b0,"CompressionAlgorithm",{enumerable:!0,get:function(){return Yu.CompressionAlgorithm}});var zu=hO();Object.defineProperty(b0,"createOtlpNetworkExportDelegate",{enumerable:!0,get:function(){return zu.createOtlpNetworkExportDelegate}})});var PO=V((N00,MO)=>{MO.exports=Wu;function Wu(Q,Y){var G=Array(arguments.length-1),K=0,z=2,W=!0;while(z<arguments.length)G[K++]=arguments[z++];return new Promise(function(Z,X){G[K]=function(F){if(W)if(W=!1,F)X(F);else{var H=Array(arguments.length-1),N=0;while(N<H.length)H[N++]=arguments[N];Z.apply(null,H)}};try{Q.apply(Y||null,G)}catch(q){if(W)W=!1,X(q)}})}});var $O=V((kO)=>{var AZ=kO;AZ.length=function(Y){var G=Y.length;if(!G)return 0;var K=0;while(--G%4>1&&Y.charAt(G)==="=")++K;return Math.ceil(Y.length*3)/4-K};var f1=Array(64),RO=Array(123);for(K0=0;K0<64;)RO[f1[K0]=K0<26?K0+65:K0<52?K0+71:K0<62?K0-4:K0-59|43]=K0++;var K0;AZ.encode=function(Y,G,K){var z=null,W=[],J=0,Z=0,X;while(G<K){var q=Y[G++];switch(Z){case 0:W[J++]=f1[q>>2],X=(q&3)<<4,Z=1;break;case 1:W[J++]=f1[X|q>>4],X=(q&15)<<2,Z=2;break;case 2:W[J++]=f1[X|q>>6],W[J++]=f1[q&63],Z=0;break}if(J>8191)(z||(z=[])).push(String.fromCharCode.apply(String,W)),J=0}if(Z){if(W[J++]=f1[X],W[J++]=61,Z===1)W[J++]=61}if(z){if(J)z.push(String.fromCharCode.apply(String,W.slice(0,J)));return z.join("")}return String.fromCharCode.apply(String,W.slice(0,J))};var wO="invalid encoding";AZ.decode=function(Y,G,K){var z=K,W=0,J;for(var Z=0;Z<Y.length;){var X=Y.charCodeAt(Z++);if(X===61&&W>1)break;if((X=RO[X])===void 0)throw Error(wO);switch(W){case 0:J=X,W=1;break;case 1:G[K++]=J<<2|(X&48)>>4,J=X,W=2;break;case 2:G[K++]=(J&15)<<4|(X&60)>>2,J=X,W=3;break;case 3:G[K++]=(J&3)<<6|X,W=0;break}}if(W===1)throw Error(wO);return K-z};AZ.test=function(Y){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(Y)}});var fO=V((C00,SO)=>{SO.exports=EZ;function EZ(){this._listeners={}}EZ.prototype.on=function(Y,G,K){return(this._listeners[Y]||(this._listeners[Y]=[])).push({fn:G,ctx:K||this}),this};EZ.prototype.off=function(Y,G){if(Y===void 0)this._listeners={};else if(G===void 0)this._listeners[Y]=[];else{var K=this._listeners[Y];for(var z=0;z<K.length;)if(K[z].fn===G)K.splice(z,1);else++z}return this};EZ.prototype.emit=function(Y){var G=this._listeners[Y];if(G){var K=[],z=1;for(;z<arguments.length;)K.push(arguments[z++]);for(z=0;z<G.length;)G[z].fn.apply(G[z++].ctx,K)}return this}});var dO=V((D00,bO)=>{bO.exports=_O(_O);function _O(Q){if(typeof Float32Array<"u")(function(){var Y=new Float32Array([-0]),G=new Uint8Array(Y.buffer),K=G[3]===128;function z(X,q,F){Y[0]=X,q[F]=G[0],q[F+1]=G[1],q[F+2]=G[2],q[F+3]=G[3]}function W(X,q,F){Y[0]=X,q[F]=G[3],q[F+1]=G[2],q[F+2]=G[1],q[F+3]=G[0]}Q.writeFloatLE=K?z:W,Q.writeFloatBE=K?W:z;function J(X,q){return G[0]=X[q],G[1]=X[q+1],G[2]=X[q+2],G[3]=X[q+3],Y[0]}function Z(X,q){return G[3]=X[q],G[2]=X[q+1],G[1]=X[q+2],G[0]=X[q+3],Y[0]}Q.readFloatLE=K?J:Z,Q.readFloatBE=K?Z:J})();else(function(){function Y(K,z,W,J){var Z=z<0?1:0;if(Z)z=-z;if(z===0)K(1/z>0?0:2147483648,W,J);else if(isNaN(z))K(2143289344,W,J);else if(z>340282346638528860000000000000000000000)K((Z<<31|2139095040)>>>0,W,J);else if(z<0.000000000000000000000000000000000000011754943508222875)K((Z<<31|Math.round(z/0.000000000000000000000000000000000000000000001401298464324817))>>>0,W,J);else{var X=Math.floor(Math.log(z)/Math.LN2),q=Math.round(z*Math.pow(2,-X)*8388608)&8388607;K((Z<<31|X+127<<23|q)>>>0,W,J)}}Q.writeFloatLE=Y.bind(null,yO),Q.writeFloatBE=Y.bind(null,vO);function G(K,z,W){var J=K(z,W),Z=(J>>31)*2+1,X=J>>>23&255,q=J&8388607;return X===255?q?NaN:Z*(1/0):X===0?Z*0.000000000000000000000000000000000000000000001401298464324817*q:Z*Math.pow(2,X-150)*(q+8388608)}Q.readFloatLE=G.bind(null,xO),Q.readFloatBE=G.bind(null,jO)})();if(typeof Float64Array<"u")(function(){var Y=new Float64Array([-0]),G=new Uint8Array(Y.buffer),K=G[7]===128;function z(X,q,F){Y[0]=X,q[F]=G[0],q[F+1]=G[1],q[F+2]=G[2],q[F+3]=G[3],q[F+4]=G[4],q[F+5]=G[5],q[F+6]=G[6],q[F+7]=G[7]}function W(X,q,F){Y[0]=X,q[F]=G[7],q[F+1]=G[6],q[F+2]=G[5],q[F+3]=G[4],q[F+4]=G[3],q[F+5]=G[2],q[F+6]=G[1],q[F+7]=G[0]}Q.writeDoubleLE=K?z:W,Q.writeDoubleBE=K?W:z;function J(X,q){return G[0]=X[q],G[1]=X[q+1],G[2]=X[q+2],G[3]=X[q+3],G[4]=X[q+4],G[5]=X[q+5],G[6]=X[q+6],G[7]=X[q+7],Y[0]}function Z(X,q){return G[7]=X[q],G[6]=X[q+1],G[5]=X[q+2],G[4]=X[q+3],G[3]=X[q+4],G[2]=X[q+5],G[1]=X[q+6],G[0]=X[q+7],Y[0]}Q.readDoubleLE=K?J:Z,Q.readDoubleBE=K?Z:J})();else(function(){function Y(K,z,W,J,Z,X){var q=J<0?1:0;if(q)J=-J;if(J===0)K(0,Z,X+z),K(1/J>0?0:2147483648,Z,X+W);else if(isNaN(J))K(0,Z,X+z),K(2146959360,Z,X+W);else if(J>179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)K(0,Z,X+z),K((q<<31|2146435072)>>>0,Z,X+W);else{var F;if(J<0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022250738585072014)F=J/0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005,K(F>>>0,Z,X+z),K((q<<31|F/4294967296)>>>0,Z,X+W);else{var H=Math.floor(Math.log(J)/Math.LN2);if(H===1024)H=1023;F=J*Math.pow(2,-H),K(F*4503599627370496>>>0,Z,X+z),K((q<<31|H+1023<<20|F*1048576&1048575)>>>0,Z,X+W)}}}Q.writeDoubleLE=Y.bind(null,yO,0,4),Q.writeDoubleBE=Y.bind(null,vO,4,0);function G(K,z,W,J,Z){var X=K(J,Z+z),q=K(J,Z+W),F=(q>>31)*2+1,H=q>>>20&2047,N=4294967296*(q&1048575)+X;return H===2047?N?NaN:F*(1/0):H===0?F*0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005*N:F*Math.pow(2,H-1075)*(N+4503599627370496)}Q.readDoubleLE=G.bind(null,xO,0,4),Q.readDoubleBE=G.bind(null,jO,4,0)})();return Q}function yO(Q,Y,G){Y[G]=Q&255,Y[G+1]=Q>>>8&255,Y[G+2]=Q>>>16&255,Y[G+3]=Q>>>24}function vO(Q,Y,G){Y[G]=Q>>>24,Y[G+1]=Q>>>16&255,Y[G+2]=Q>>>8&255,Y[G+3]=Q&255}function xO(Q,Y){return(Q[Y]|Q[Y+1]<<8|Q[Y+2]<<16|Q[Y+3]<<24)>>>0}function jO(Q,Y){return(Q[Y]<<24|Q[Y+1]<<16|Q[Y+2]<<8|Q[Y+3])>>>0}});var lO=V((uO,n7)=>{n7.exports=qu;function qu(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(Q){}return null}});var nO=V((cO)=>{var m7=cO;m7.length=function(Y){var G=0,K=0;for(var z=0;z<Y.length;++z)if(K=Y.charCodeAt(z),K<128)G+=1;else if(K<2048)G+=2;else if((K&64512)===55296&&(Y.charCodeAt(z+1)&64512)===56320)++z,G+=4;else G+=3;return G};m7.read=function(Y,G,K){var z=K-G;if(z<1)return"";var W=null,J=[],Z=0,X;while(G<K){if(X=Y[G++],X<128)J[Z++]=X;else if(X>191&&X<224)J[Z++]=(X&31)<<6|Y[G++]&63;else if(X>239&&X<365)X=((X&7)<<18|(Y[G++]&63)<<12|(Y[G++]&63)<<6|Y[G++]&63)-65536,J[Z++]=55296+(X>>10),J[Z++]=56320+(X&1023);else J[Z++]=(X&15)<<12|(Y[G++]&63)<<6|Y[G++]&63;if(Z>8191)(W||(W=[])).push(String.fromCharCode.apply(String,J)),Z=0}if(W){if(Z)W.push(String.fromCharCode.apply(String,J.slice(0,Z)));return W.join("")}return String.fromCharCode.apply(String,J.slice(0,Z))};m7.write=function(Y,G,K){var z=K,W,J;for(var Z=0;Z<Y.length;++Z)if(W=Y.charCodeAt(Z),W<128)G[K++]=W;else if(W<2048)G[K++]=W>>6|192,G[K++]=W&63|128;else if((W&64512)===55296&&((J=Y.charCodeAt(Z+1))&64512)===56320)W=65536+((W&1023)<<10)+(J&1023),++Z,G[K++]=W>>18|240,G[K++]=W>>12&63|128,G[K++]=W>>6&63|128,G[K++]=W&63|128;else G[K++]=W>>12|224,G[K++]=W>>6&63|128,G[K++]=W&63|128;return K-z}});var pO=V((A00,mO)=>{mO.exports=Ku;function Ku(Q,Y,G){var K=G||8192,z=K>>>1,W=null,J=K;return function(X){if(X<1||X>z)return Q(X);if(J+X>K)W=Q(K),J=0;var q=Y.call(W,J,J+=X);if(J&7)J=(J|7)+1;return q}}});var iO=V((E00,gO)=>{gO.exports=p;var N6=u0();function p(Q,Y){this.lo=Q>>>0,this.hi=Y>>>0}var q1=p.zero=new p(0,0);q1.toNumber=function(){return 0};q1.zzEncode=q1.zzDecode=function(){return this};q1.length=function(){return 1};var Fu=p.zeroHash="\x00\x00\x00\x00\x00\x00\x00\x00";p.fromNumber=function(Y){if(Y===0)return q1;var G=Y<0;if(G)Y=-Y;var K=Y>>>0,z=(Y-K)/4294967296>>>0;if(G){if(z=~z>>>0,K=~K>>>0,++K>4294967295){if(K=0,++z>4294967295)z=0}}return new p(K,z)};p.from=function(Y){if(typeof Y==="number")return p.fromNumber(Y);if(N6.isString(Y))if(N6.Long)Y=N6.Long.fromString(Y);else return p.fromNumber(parseInt(Y,10));return Y.low||Y.high?new p(Y.low>>>0,Y.high>>>0):q1};p.prototype.toNumber=function(Y){if(!Y&&this.hi>>>31){var G=~this.lo+1>>>0,K=~this.hi>>>0;if(!G)K=K+1>>>0;return-(G+K*4294967296)}return this.lo+this.hi*4294967296};p.prototype.toLong=function(Y){return N6.Long?new N6.Long(this.lo|0,this.hi|0,Boolean(Y)):{low:this.lo|0,high:this.hi|0,unsigned:Boolean(Y)}};var d0=String.prototype.charCodeAt;p.fromHash=function(Y){if(Y===Fu)return q1;return new p((d0.call(Y,0)|d0.call(Y,1)<<8|d0.call(Y,2)<<16|d0.call(Y,3)<<24)>>>0,(d0.call(Y,4)|d0.call(Y,5)<<8|d0.call(Y,6)<<16|d0.call(Y,7)<<24)>>>0)};p.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)};p.prototype.zzEncode=function(){var Y=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^Y)>>>0,this.lo=(this.lo<<1^Y)>>>0,this};p.prototype.zzDecode=function(){var Y=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^Y)>>>0,this.hi=(this.hi>>>1^Y)>>>0,this};p.prototype.length=function(){var Y=this.lo,G=(this.lo>>>28|this.hi<<4)>>>0,K=this.hi>>>24;return K===0?G===0?Y<16384?Y<128?1:2:Y<2097152?3:4:G<16384?G<128?5:6:G<2097152?7:8:K<128?9:10}});var u0=V((p7)=>{var E=p7;E.asPromise=PO();E.base64=$O();E.EventEmitter=fO();E.float=dO();E.inquire=lO();E.utf8=nO();E.pool=pO();E.LongBits=iO();E.isNode=Boolean(typeof global<"u"&&global&&global.process&&global.process.versions&&global.process.versions.node);E.global=E.isNode&&global||typeof window<"u"&&window||typeof self<"u"&&self||p7;E.emptyArray=Object.freeze?Object.freeze([]):[];E.emptyObject=Object.freeze?Object.freeze({}):{};E.isInteger=Number.isInteger||function(Y){return typeof Y==="number"&&isFinite(Y)&&Math.floor(Y)===Y};E.isString=function(Y){return typeof Y==="string"||Y instanceof String};E.isObject=function(Y){return Y&&typeof Y==="object"};E.isset=E.isSet=function(Y,G){var K=Y[G];if(K!=null&&Y.hasOwnProperty(G))return typeof K!=="object"||(Array.isArray(K)?K.length:Object.keys(K).length)>0;return!1};E.Buffer=function(){try{var Q=E.inquire("buffer").Buffer;return Q.prototype.utf8Write?Q:null}catch(Y){return null}}();E._Buffer_from=null;E._Buffer_allocUnsafe=null;E.newBuffer=function(Y){return typeof Y==="number"?E.Buffer?E._Buffer_allocUnsafe(Y):new E.Array(Y):E.Buffer?E._Buffer_from(Y):typeof Uint8Array>"u"?Y:new Uint8Array(Y)};E.Array=typeof Uint8Array<"u"?Uint8Array:Array;E.Long=E.global.dcodeIO&&E.global.dcodeIO.Long||E.global.Long||E.inquire("long");E.key2Re=/^true|false|0|1$/;E.key32Re=/^-?(?:0|[1-9][0-9]*)$/;E.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;E.longToHash=function(Y){return Y?E.LongBits.from(Y).toHash():E.LongBits.zeroHash};E.longFromHash=function(Y,G){var K=E.LongBits.fromHash(Y);if(E.Long)return E.Long.fromBits(K.lo,K.hi,G);return K.toNumber(Boolean(G))};function oO(Q,Y,G){for(var K=Object.keys(Y),z=0;z<K.length;++z)if(Q[K[z]]===void 0||!G)Q[K[z]]=Y[K[z]];return Q}E.merge=oO;E.lcFirst=function(Y){return Y.charAt(0).toLowerCase()+Y.substring(1)};function aO(Q){function Y(G,K){if(!(this instanceof Y))return new Y(G,K);if(Object.defineProperty(this,"message",{get:function(){return G}}),Error.captureStackTrace)Error.captureStackTrace(this,Y);else Object.defineProperty(this,"stack",{value:Error().stack||""});if(K)oO(this,K)}return Y.prototype=Object.create(Error.prototype,{constructor:{value:Y,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return Q},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),Y}E.newError=aO;E.ProtocolError=aO("ProtocolError");E.oneOfGetter=function(Y){var G={};for(var K=0;K<Y.length;++K)G[Y[K]]=1;return function(){for(var z=Object.keys(this),W=z.length-1;W>-1;--W)if(G[z[W]]===1&&this[z[W]]!==void 0&&this[z[W]]!==null)return z[W]}};E.oneOfSetter=function(Y){return function(G){for(var K=0;K<Y.length;++K)if(Y[K]!==G)delete this[Y[K]]}};E.toJSONOptions={longs:String,enums:String,bytes:String,json:!0};E._configure=function(){var Q=E.Buffer;if(!Q){E._Buffer_from=E._Buffer_allocUnsafe=null;return}E._Buffer_from=Q.from!==Uint8Array.from&&Q.from||function(G,K){return new Q(G,K)},E._Buffer_allocUnsafe=Q.allocUnsafe||function(G){return new Q(G)}}});var s7=V((h00,eO)=>{eO.exports=f;var F0=u0(),g7,TZ=F0.LongBits,tO=F0.base64,rO=F0.utf8;function I6(Q,Y,G){this.fn=Q,this.len=Y,this.next=void 0,this.val=G}function o7(){}function Hu(Q){this.head=Q.head,this.tail=Q.tail,this.len=Q.len,this.next=Q.states}function f(){this.len=0,this.head=new I6(o7,0,0),this.tail=this.head,this.states=null}var sO=function(){return F0.Buffer?function(){return(f.create=function(){return new g7})()}:function(){return new f}};f.create=sO();f.alloc=function(Y){return new F0.Array(Y)};if(F0.Array!==Array)f.alloc=F0.pool(f.alloc,F0.Array.prototype.subarray);f.prototype._push=function(Y,G,K){return this.tail=this.tail.next=new I6(Y,G,K),this.len+=G,this};function a7(Q,Y,G){Y[G]=Q&255}function Ou(Q,Y,G){while(Q>127)Y[G++]=Q&127|128,Q>>>=7;Y[G]=Q}function t7(Q,Y){this.len=Q,this.next=void 0,this.val=Y}t7.prototype=Object.create(I6.prototype);t7.prototype.fn=Ou;f.prototype.uint32=function(Y){return this.len+=(this.tail=this.tail.next=new t7((Y=Y>>>0)<128?1:Y<16384?2:Y<2097152?3:Y<268435456?4:5,Y)).len,this};f.prototype.int32=function(Y){return Y<0?this._push(r7,10,TZ.fromNumber(Y)):this.uint32(Y)};f.prototype.sint32=function(Y){return this.uint32((Y<<1^Y>>31)>>>0)};function r7(Q,Y,G){while(Q.hi)Y[G++]=Q.lo&127|128,Q.lo=(Q.lo>>>7|Q.hi<<25)>>>0,Q.hi>>>=7;while(Q.lo>127)Y[G++]=Q.lo&127|128,Q.lo=Q.lo>>>7;Y[G++]=Q.lo}f.prototype.uint64=function(Y){var G=TZ.from(Y);return this._push(r7,G.length(),G)};f.prototype.int64=f.prototype.uint64;f.prototype.sint64=function(Y){var G=TZ.from(Y).zzEncode();return this._push(r7,G.length(),G)};f.prototype.bool=function(Y){return this._push(a7,1,Y?1:0)};function i7(Q,Y,G){Y[G]=Q&255,Y[G+1]=Q>>>8&255,Y[G+2]=Q>>>16&255,Y[G+3]=Q>>>24}f.prototype.fixed32=function(Y){return this._push(i7,4,Y>>>0)};f.prototype.sfixed32=f.prototype.fixed32;f.prototype.fixed64=function(Y){var G=TZ.from(Y);return this._push(i7,4,G.lo)._push(i7,4,G.hi)};f.prototype.sfixed64=f.prototype.fixed64;f.prototype.float=function(Y){return this._push(F0.float.writeFloatLE,4,Y)};f.prototype.double=function(Y){return this._push(F0.float.writeDoubleLE,8,Y)};var Bu=F0.Array.prototype.set?function(Y,G,K){G.set(Y,K)}:function(Y,G,K){for(var z=0;z<Y.length;++z)G[K+z]=Y[z]};f.prototype.bytes=function(Y){var G=Y.length>>>0;if(!G)return this._push(a7,1,0);if(F0.isString(Y)){var K=f.alloc(G=tO.length(Y));tO.decode(Y,K,0),Y=K}return this.uint32(G)._push(Bu,G,Y)};f.prototype.string=function(Y){var G=rO.length(Y);return G?this.uint32(G)._push(rO.write,G,Y):this._push(a7,1,0)};f.prototype.fork=function(){return this.states=new Hu(this),this.head=this.tail=new I6(o7,0,0),this.len=0,this};f.prototype.reset=function(){if(this.states)this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next;else this.head=this.tail=new I6(o7,0,0),this.len=0;return this};f.prototype.ldelim=function(){var Y=this.head,G=this.tail,K=this.len;if(this.reset().uint32(K),K)this.tail.next=Y.next,this.tail=G,this.len+=K;return this};f.prototype.finish=function(){var Y=this.head.next,G=this.constructor.alloc(this.len),K=0;while(Y)Y.fn(Y.val,G,K),K+=Y.len,Y=Y.next;return G};f._configure=function(Q){g7=Q,f.create=sO(),g7._configure()}});var QB=V((L00,JB)=>{JB.exports=A0;var ZB=s7();(A0.prototype=Object.create(ZB.prototype)).constructor=A0;var l0=u0();function A0(){ZB.call(this)}A0._configure=function(){A0.alloc=l0._Buffer_allocUnsafe,A0.writeBytesBuffer=l0.Buffer&&l0.Buffer.prototype instanceof Uint8Array&&l0.Buffer.prototype.set.name==="set"?function(Y,G,K){G.set(Y,K)}:function(Y,G,K){if(Y.copy)Y.copy(G,K,0,Y.length);else for(var z=0;z<Y.length;)G[K++]=Y[z++]}};A0.prototype.bytes=function(Y){if(l0.isString(Y))Y=l0._Buffer_from(Y,"base64");var G=Y.length>>>0;if(this.uint32(G),G)this._push(A0.writeBytesBuffer,G,Y);return this};function Vu(Q,Y,G){if(Q.length<40)l0.utf8.write(Q,Y,G);else if(Y.utf8Write)Y.utf8Write(Q,G);else Y.write(Q,G)}A0.prototype.string=function(Y){var G=l0.Buffer.byteLength(Y);if(this.uint32(G),G)this._push(Vu,G,Y);return this};A0._configure()});var J4=V((M00,WB)=>{WB.exports=l;var I0=u0(),Z4,zB=I0.LongBits,Nu=I0.utf8;function C0(Q,Y){return RangeError("index out of range: "+Q.pos+" + "+(Y||1)+" > "+Q.len)}function l(Q){this.buf=Q,this.pos=0,this.len=Q.length}var XB=typeof Uint8Array<"u"?function(Y){if(Y instanceof Uint8Array||Array.isArray(Y))return new l(Y);throw Error("illegal buffer")}:function(Y){if(Array.isArray(Y))return new l(Y);throw Error("illegal buffer")},GB=function(){return I0.Buffer?function(G){return(l.create=function(z){return I0.Buffer.isBuffer(z)?new Z4(z):XB(z)})(G)}:XB};l.create=GB();l.prototype._slice=I0.Array.prototype.subarray||I0.Array.prototype.slice;l.prototype.uint32=function(){var Y=4294967295;return function(){if(Y=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128)return Y;if(Y=(Y|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)return Y;if(Y=(Y|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)return Y;if(Y=(Y|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)return Y;if(Y=(Y|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128)return Y;if((this.pos+=5)>this.len)throw this.pos=this.len,C0(this,10);return Y}}();l.prototype.int32=function(){return this.uint32()|0};l.prototype.sint32=function(){var Y=this.uint32();return Y>>>1^-(Y&1)|0};function e7(){var Q=new zB(0,0),Y=0;if(this.len-this.pos>4){for(;Y<4;++Y)if(Q.lo=(Q.lo|(this.buf[this.pos]&127)<<Y*7)>>>0,this.buf[this.pos++]<128)return Q;if(Q.lo=(Q.lo|(this.buf[this.pos]&127)<<28)>>>0,Q.hi=(Q.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return Q;Y=0}else{for(;Y<3;++Y){if(this.pos>=this.len)throw C0(this);if(Q.lo=(Q.lo|(this.buf[this.pos]&127)<<Y*7)>>>0,this.buf[this.pos++]<128)return Q}return Q.lo=(Q.lo|(this.buf[this.pos++]&127)<<Y*7)>>>0,Q}if(this.len-this.pos>4){for(;Y<5;++Y)if(Q.hi=(Q.hi|(this.buf[this.pos]&127)<<Y*7+3)>>>0,this.buf[this.pos++]<128)return Q}else for(;Y<5;++Y){if(this.pos>=this.len)throw C0(this);if(Q.hi=(Q.hi|(this.buf[this.pos]&127)<<Y*7+3)>>>0,this.buf[this.pos++]<128)return Q}throw Error("invalid varint encoding")}l.prototype.bool=function(){return this.uint32()!==0};function hZ(Q,Y){return(Q[Y-4]|Q[Y-3]<<8|Q[Y-2]<<16|Q[Y-1]<<24)>>>0}l.prototype.fixed32=function(){if(this.pos+4>this.len)throw C0(this,4);return hZ(this.buf,this.pos+=4)};l.prototype.sfixed32=function(){if(this.pos+4>this.len)throw C0(this,4);return hZ(this.buf,this.pos+=4)|0};function YB(){if(this.pos+8>this.len)throw C0(this,8);return new zB(hZ(this.buf,this.pos+=4),hZ(this.buf,this.pos+=4))}l.prototype.float=function(){if(this.pos+4>this.len)throw C0(this,4);var Y=I0.float.readFloatLE(this.buf,this.pos);return this.pos+=4,Y};l.prototype.double=function(){if(this.pos+8>this.len)throw C0(this,4);var Y=I0.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,Y};l.prototype.bytes=function(){var Y=this.uint32(),G=this.pos,K=this.pos+Y;if(K>this.len)throw C0(this,Y);if(this.pos+=Y,Array.isArray(this.buf))return this.buf.slice(G,K);if(G===K){var z=I0.Buffer;return z?z.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,G,K)};l.prototype.string=function(){var Y=this.bytes();return Nu.read(Y,0,Y.length)};l.prototype.skip=function(Y){if(typeof Y==="number"){if(this.pos+Y>this.len)throw C0(this,Y);this.pos+=Y}else do if(this.pos>=this.len)throw C0(this);while(this.buf[this.pos++]&128);return this};l.prototype.skipType=function(Q){switch(Q){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:while((Q=this.uint32()&7)!==4)this.skipType(Q);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+Q+" at offset "+this.pos)}return this};l._configure=function(Q){Z4=Q,l.create=GB(),Z4._configure();var Y=I0.Long?"toLong":"toNumber";I0.merge(l.prototype,{int64:function(){return e7.call(this)[Y](!1)},uint64:function(){return e7.call(this)[Y](!0)},sint64:function(){return e7.call(this).zzDecode()[Y](!1)},fixed64:function(){return YB.call(this)[Y](!0)},sfixed64:function(){return YB.call(this)[Y](!1)}})}});var HB=V((P00,FB)=>{FB.exports=K1;var KB=J4();(K1.prototype=Object.create(KB.prototype)).constructor=K1;var qB=u0();function K1(Q){KB.call(this,Q)}K1._configure=function(){if(qB.Buffer)K1.prototype._slice=qB.Buffer.prototype.slice};K1.prototype.string=function(){var Y=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+Y,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+Y,this.len))};K1._configure()});var BB=V((w00,OB)=>{OB.exports=C6;var Q4=u0();(C6.prototype=Object.create(Q4.EventEmitter.prototype)).constructor=C6;function C6(Q,Y,G){if(typeof Q!=="function")throw TypeError("rpcImpl must be a function");Q4.EventEmitter.call(this),this.rpcImpl=Q,this.requestDelimited=Boolean(Y),this.responseDelimited=Boolean(G)}C6.prototype.rpcCall=function Q(Y,G,K,z,W){if(!z)throw TypeError("request must be specified");var J=this;if(!W)return Q4.asPromise(Q,J,Y,G,K,z);if(!J.rpcImpl){setTimeout(function(){W(Error("already ended"))},0);return}try{return J.rpcImpl(Y,G[J.requestDelimited?"encodeDelimited":"encode"](z).finish(),function(X,q){if(X)return J.emit("error",X,Y),W(X);if(q===null){J.end(!0);return}if(!(q instanceof K))try{q=K[J.responseDelimited?"decodeDelimited":"decode"](q)}catch(F){return J.emit("error",F,Y),W(F)}return J.emit("data",q,Y),W(null,q)})}catch(Z){J.emit("error",Z,Y),setTimeout(function(){W(Z)},0);return}};C6.prototype.end=function(Y){if(this.rpcImpl){if(!Y)this.rpcImpl(null,null,null);this.rpcImpl=null,this.emit("end").off()}return this}});var NB=V((VB)=>{var Iu=VB;Iu.Service=BB()});var CB=V((k00,IB)=>{IB.exports={}});var AB=V((UB)=>{var Q0=UB;Q0.build="minimal";Q0.Writer=s7();Q0.BufferWriter=QB();Q0.Reader=J4();Q0.BufferReader=HB();Q0.util=u0();Q0.rpc=NB();Q0.roots=CB();Q0.configure=DB;function DB(){Q0.util._configure(),Q0.Writer._configure(Q0.BufferWriter),Q0.Reader._configure(Q0.BufferReader)}DB()});var LZ=V((EB,TB)=>{Object.defineProperty(EB,"__esModule",{value:!0});var h=AB(),I=h.Reader,w=h.Writer,B=h.util,O=h.roots.default||(h.roots.default={});O.opentelemetry=function(){var Q={};return Q.proto=function(){var Y={};return Y.common=function(){var G={};return G.v1=function(){var K={};return K.AnyValue=function(){function z(J){if(J){for(var Z=Object.keys(J),X=0;X<Z.length;++X)if(J[Z[X]]!=null)this[Z[X]]=J[Z[X]]}}z.prototype.stringValue=null,z.prototype.boolValue=null,z.prototype.intValue=null,z.prototype.doubleValue=null,z.prototype.arrayValue=null,z.prototype.kvlistValue=null,z.prototype.bytesValue=null;var W;return Object.defineProperty(z.prototype,"value",{get:B.oneOfGetter(W=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"]),set:B.oneOfSetter(W)}),z.create=function(Z){return new z(Z)},z.encode=function(Z,X){if(!X)X=w.create();if(Z.stringValue!=null&&Object.hasOwnProperty.call(Z,"stringValue"))X.uint32(10).string(Z.stringValue);if(Z.boolValue!=null&&Object.hasOwnProperty.call(Z,"boolValue"))X.uint32(16).bool(Z.boolValue);if(Z.intValue!=null&&Object.hasOwnProperty.call(Z,"intValue"))X.uint32(24).int64(Z.intValue);if(Z.doubleValue!=null&&Object.hasOwnProperty.call(Z,"doubleValue"))X.uint32(33).double(Z.doubleValue);if(Z.arrayValue!=null&&Object.hasOwnProperty.call(Z,"arrayValue"))O.opentelemetry.proto.common.v1.ArrayValue.encode(Z.arrayValue,X.uint32(42).fork()).ldelim();if(Z.kvlistValue!=null&&Object.hasOwnProperty.call(Z,"kvlistValue"))O.opentelemetry.proto.common.v1.KeyValueList.encode(Z.kvlistValue,X.uint32(50).fork()).ldelim();if(Z.bytesValue!=null&&Object.hasOwnProperty.call(Z,"bytesValue"))X.uint32(58).bytes(Z.bytesValue);return X},z.encodeDelimited=function(Z,X){return this.encode(Z,X).ldelim()},z.decode=function(Z,X,q){if(!(Z instanceof I))Z=I.create(Z);var F=X===void 0?Z.len:Z.pos+X,H=new O.opentelemetry.proto.common.v1.AnyValue;while(Z.pos<F){var N=Z.uint32();if(N===q)break;switch(N>>>3){case 1:{H.stringValue=Z.string();break}case 2:{H.boolValue=Z.bool();break}case 3:{H.intValue=Z.int64();break}case 4:{H.doubleValue=Z.double();break}case 5:{H.arrayValue=O.opentelemetry.proto.common.v1.ArrayValue.decode(Z,Z.uint32());break}case 6:{H.kvlistValue=O.opentelemetry.proto.common.v1.KeyValueList.decode(Z,Z.uint32());break}case 7:{H.bytesValue=Z.bytes();break}default:Z.skipType(N&7);break}}return H},z.decodeDelimited=function(Z){if(!(Z instanceof I))Z=new I(Z);return this.decode(Z,Z.uint32())},z.verify=function(Z){if(typeof Z!=="object"||Z===null)return"object expected";var X={};if(Z.stringValue!=null&&Z.hasOwnProperty("stringValue")){if(X.value=1,!B.isString(Z.stringValue))return"stringValue: string expected"}if(Z.boolValue!=null&&Z.hasOwnProperty("boolValue")){if(X.value===1)return"value: multiple values";if(X.value=1,typeof Z.boolValue!=="boolean")return"boolValue: boolean expected"}if(Z.intValue!=null&&Z.hasOwnProperty("intValue")){if(X.value===1)return"value: multiple values";if(X.value=1,!B.isInteger(Z.intValue)&&!(Z.intValue&&B.isInteger(Z.intValue.low)&&B.isInteger(Z.intValue.high)))return"intValue: integer|Long expected"}if(Z.doubleValue!=null&&Z.hasOwnProperty("doubleValue")){if(X.value===1)return"value: multiple values";if(X.value=1,typeof Z.doubleValue!=="number")return"doubleValue: number expected"}if(Z.arrayValue!=null&&Z.hasOwnProperty("arrayValue")){if(X.value===1)return"value: multiple values";X.value=1;{var q=O.opentelemetry.proto.common.v1.ArrayValue.verify(Z.arrayValue);if(q)return"arrayValue."+q}}if(Z.kvlistValue!=null&&Z.hasOwnProperty("kvlistValue")){if(X.value===1)return"value: multiple values";X.value=1;{var q=O.opentelemetry.proto.common.v1.KeyValueList.verify(Z.kvlistValue);if(q)return"kvlistValue."+q}}if(Z.bytesValue!=null&&Z.hasOwnProperty("bytesValue")){if(X.value===1)return"value: multiple values";if(X.value=1,!(Z.bytesValue&&typeof Z.bytesValue.length==="number"||B.isString(Z.bytesValue)))return"bytesValue: buffer expected"}return null},z.fromObject=function(Z){if(Z instanceof O.opentelemetry.proto.common.v1.AnyValue)return Z;var X=new O.opentelemetry.proto.common.v1.AnyValue;if(Z.stringValue!=null)X.stringValue=String(Z.stringValue);if(Z.boolValue!=null)X.boolValue=Boolean(Z.boolValue);if(Z.intValue!=null){if(B.Long)(X.intValue=B.Long.fromValue(Z.intValue)).unsigned=!1;else if(typeof Z.intValue==="string")X.intValue=parseInt(Z.intValue,10);else if(typeof Z.intValue==="number")X.intValue=Z.intValue;else if(typeof Z.intValue==="object")X.intValue=new B.LongBits(Z.intValue.low>>>0,Z.intValue.high>>>0).toNumber()}if(Z.doubleValue!=null)X.doubleValue=Number(Z.doubleValue);if(Z.arrayValue!=null){if(typeof Z.arrayValue!=="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.arrayValue: object expected");X.arrayValue=O.opentelemetry.proto.common.v1.ArrayValue.fromObject(Z.arrayValue)}if(Z.kvlistValue!=null){if(typeof Z.kvlistValue!=="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.kvlistValue: object expected");X.kvlistValue=O.opentelemetry.proto.common.v1.KeyValueList.fromObject(Z.kvlistValue)}if(Z.bytesValue!=null){if(typeof Z.bytesValue==="string")B.base64.decode(Z.bytesValue,X.bytesValue=B.newBuffer(B.base64.length(Z.bytesValue)),0);else if(Z.bytesValue.length>=0)X.bytesValue=Z.bytesValue}return X},z.toObject=function(Z,X){if(!X)X={};var q={};if(Z.stringValue!=null&&Z.hasOwnProperty("stringValue")){if(q.stringValue=Z.stringValue,X.oneofs)q.value="stringValue"}if(Z.boolValue!=null&&Z.hasOwnProperty("boolValue")){if(q.boolValue=Z.boolValue,X.oneofs)q.value="boolValue"}if(Z.intValue!=null&&Z.hasOwnProperty("intValue")){if(typeof Z.intValue==="number")q.intValue=X.longs===String?String(Z.intValue):Z.intValue;else q.intValue=X.longs===String?B.Long.prototype.toString.call(Z.intValue):X.longs===Number?new B.LongBits(Z.intValue.low>>>0,Z.intValue.high>>>0).toNumber():Z.intValue;if(X.oneofs)q.value="intValue"}if(Z.doubleValue!=null&&Z.hasOwnProperty("doubleValue")){if(q.doubleValue=X.json&&!isFinite(Z.doubleValue)?String(Z.doubleValue):Z.doubleValue,X.oneofs)q.value="doubleValue"}if(Z.arrayValue!=null&&Z.hasOwnProperty("arrayValue")){if(q.arrayValue=O.opentelemetry.proto.common.v1.ArrayValue.toObject(Z.arrayValue,X),X.oneofs)q.value="arrayValue"}if(Z.kvlistValue!=null&&Z.hasOwnProperty("kvlistValue")){if(q.kvlistValue=O.opentelemetry.proto.common.v1.KeyValueList.toObject(Z.kvlistValue,X),X.oneofs)q.value="kvlistValue"}if(Z.bytesValue!=null&&Z.hasOwnProperty("bytesValue")){if(q.bytesValue=X.bytes===String?B.base64.encode(Z.bytesValue,0,Z.bytesValue.length):X.bytes===Array?Array.prototype.slice.call(Z.bytesValue):Z.bytesValue,X.oneofs)q.value="bytesValue"}return q},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(Z){if(Z===void 0)Z="type.googleapis.com";return Z+"/opentelemetry.proto.common.v1.AnyValue"},z}(),K.ArrayValue=function(){function z(W){if(this.values=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.values=B.emptyArray,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.values!=null&&J.values.length)for(var X=0;X<J.values.length;++X)O.opentelemetry.proto.common.v1.AnyValue.encode(J.values[X],Z.uint32(10).fork()).ldelim();return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.common.v1.ArrayValue;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{if(!(F.values&&F.values.length))F.values=[];F.values.push(O.opentelemetry.proto.common.v1.AnyValue.decode(J,J.uint32()));break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.values!=null&&J.hasOwnProperty("values")){if(!Array.isArray(J.values))return"values: array expected";for(var Z=0;Z<J.values.length;++Z){var X=O.opentelemetry.proto.common.v1.AnyValue.verify(J.values[Z]);if(X)return"values."+X}}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.common.v1.ArrayValue)return J;var Z=new O.opentelemetry.proto.common.v1.ArrayValue;if(J.values){if(!Array.isArray(J.values))throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: array expected");Z.values=[];for(var X=0;X<J.values.length;++X){if(typeof J.values[X]!=="object")throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: object expected");Z.values[X]=O.opentelemetry.proto.common.v1.AnyValue.fromObject(J.values[X])}}return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.values=[];if(J.values&&J.values.length){X.values=[];for(var q=0;q<J.values.length;++q)X.values[q]=O.opentelemetry.proto.common.v1.AnyValue.toObject(J.values[q],Z)}return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.common.v1.ArrayValue"},z}(),K.KeyValueList=function(){function z(W){if(this.values=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.values=B.emptyArray,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.values!=null&&J.values.length)for(var X=0;X<J.values.length;++X)O.opentelemetry.proto.common.v1.KeyValue.encode(J.values[X],Z.uint32(10).fork()).ldelim();return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.common.v1.KeyValueList;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{if(!(F.values&&F.values.length))F.values=[];F.values.push(O.opentelemetry.proto.common.v1.KeyValue.decode(J,J.uint32()));break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.values!=null&&J.hasOwnProperty("values")){if(!Array.isArray(J.values))return"values: array expected";for(var Z=0;Z<J.values.length;++Z){var X=O.opentelemetry.proto.common.v1.KeyValue.verify(J.values[Z]);if(X)return"values."+X}}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.common.v1.KeyValueList)return J;var Z=new O.opentelemetry.proto.common.v1.KeyValueList;if(J.values){if(!Array.isArray(J.values))throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: array expected");Z.values=[];for(var X=0;X<J.values.length;++X){if(typeof J.values[X]!=="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: object expected");Z.values[X]=O.opentelemetry.proto.common.v1.KeyValue.fromObject(J.values[X])}}return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.values=[];if(J.values&&J.values.length){X.values=[];for(var q=0;q<J.values.length;++q)X.values[q]=O.opentelemetry.proto.common.v1.KeyValue.toObject(J.values[q],Z)}return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.common.v1.KeyValueList"},z}(),K.KeyValue=function(){function z(W){if(W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.key=null,z.prototype.value=null,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.key!=null&&Object.hasOwnProperty.call(J,"key"))Z.uint32(10).string(J.key);if(J.value!=null&&Object.hasOwnProperty.call(J,"value"))O.opentelemetry.proto.common.v1.AnyValue.encode(J.value,Z.uint32(18).fork()).ldelim();return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.common.v1.KeyValue;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{F.key=J.string();break}case 2:{F.value=O.opentelemetry.proto.common.v1.AnyValue.decode(J,J.uint32());break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.key!=null&&J.hasOwnProperty("key")){if(!B.isString(J.key))return"key: string expected"}if(J.value!=null&&J.hasOwnProperty("value")){var Z=O.opentelemetry.proto.common.v1.AnyValue.verify(J.value);if(Z)return"value."+Z}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.common.v1.KeyValue)return J;var Z=new O.opentelemetry.proto.common.v1.KeyValue;if(J.key!=null)Z.key=String(J.key);if(J.value!=null){if(typeof J.value!=="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValue.value: object expected");Z.value=O.opentelemetry.proto.common.v1.AnyValue.fromObject(J.value)}return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.defaults)X.key="",X.value=null;if(J.key!=null&&J.hasOwnProperty("key"))X.key=J.key;if(J.value!=null&&J.hasOwnProperty("value"))X.value=O.opentelemetry.proto.common.v1.AnyValue.toObject(J.value,Z);return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.common.v1.KeyValue"},z}(),K.InstrumentationScope=function(){function z(W){if(this.attributes=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.name=null,z.prototype.version=null,z.prototype.attributes=B.emptyArray,z.prototype.droppedAttributesCount=null,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.name!=null&&Object.hasOwnProperty.call(J,"name"))Z.uint32(10).string(J.name);if(J.version!=null&&Object.hasOwnProperty.call(J,"version"))Z.uint32(18).string(J.version);if(J.attributes!=null&&J.attributes.length)for(var X=0;X<J.attributes.length;++X)O.opentelemetry.proto.common.v1.KeyValue.encode(J.attributes[X],Z.uint32(26).fork()).ldelim();if(J.droppedAttributesCount!=null&&Object.hasOwnProperty.call(J,"droppedAttributesCount"))Z.uint32(32).uint32(J.droppedAttributesCount);return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.common.v1.InstrumentationScope;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{F.name=J.string();break}case 2:{F.version=J.string();break}case 3:{if(!(F.attributes&&F.attributes.length))F.attributes=[];F.attributes.push(O.opentelemetry.proto.common.v1.KeyValue.decode(J,J.uint32()));break}case 4:{F.droppedAttributesCount=J.uint32();break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.name!=null&&J.hasOwnProperty("name")){if(!B.isString(J.name))return"name: string expected"}if(J.version!=null&&J.hasOwnProperty("version")){if(!B.isString(J.version))return"version: string expected"}if(J.attributes!=null&&J.hasOwnProperty("attributes")){if(!Array.isArray(J.attributes))return"attributes: array expected";for(var Z=0;Z<J.attributes.length;++Z){var X=O.opentelemetry.proto.common.v1.KeyValue.verify(J.attributes[Z]);if(X)return"attributes."+X}}if(J.droppedAttributesCount!=null&&J.hasOwnProperty("droppedAttributesCount")){if(!B.isInteger(J.droppedAttributesCount))return"droppedAttributesCount: integer expected"}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.common.v1.InstrumentationScope)return J;var Z=new O.opentelemetry.proto.common.v1.InstrumentationScope;if(J.name!=null)Z.name=String(J.name);if(J.version!=null)Z.version=String(J.version);if(J.attributes){if(!Array.isArray(J.attributes))throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: array expected");Z.attributes=[];for(var X=0;X<J.attributes.length;++X){if(typeof J.attributes[X]!=="object")throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: object expected");Z.attributes[X]=O.opentelemetry.proto.common.v1.KeyValue.fromObject(J.attributes[X])}}if(J.droppedAttributesCount!=null)Z.droppedAttributesCount=J.droppedAttributesCount>>>0;return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.attributes=[];if(Z.defaults)X.name="",X.version="",X.droppedAttributesCount=0;if(J.name!=null&&J.hasOwnProperty("name"))X.name=J.name;if(J.version!=null&&J.hasOwnProperty("version"))X.version=J.version;if(J.attributes&&J.attributes.length){X.attributes=[];for(var q=0;q<J.attributes.length;++q)X.attributes[q]=O.opentelemetry.proto.common.v1.KeyValue.toObject(J.attributes[q],Z)}if(J.droppedAttributesCount!=null&&J.hasOwnProperty("droppedAttributesCount"))X.droppedAttributesCount=J.droppedAttributesCount;return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.common.v1.InstrumentationScope"},z}(),K.EntityRef=function(){function z(W){if(this.idKeys=[],this.descriptionKeys=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.schemaUrl=null,z.prototype.type=null,z.prototype.idKeys=B.emptyArray,z.prototype.descriptionKeys=B.emptyArray,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.schemaUrl!=null&&Object.hasOwnProperty.call(J,"schemaUrl"))Z.uint32(10).string(J.schemaUrl);if(J.type!=null&&Object.hasOwnProperty.call(J,"type"))Z.uint32(18).string(J.type);if(J.idKeys!=null&&J.idKeys.length)for(var X=0;X<J.idKeys.length;++X)Z.uint32(26).string(J.idKeys[X]);if(J.descriptionKeys!=null&&J.descriptionKeys.length)for(var X=0;X<J.descriptionKeys.length;++X)Z.uint32(34).string(J.descriptionKeys[X]);return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.common.v1.EntityRef;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{F.schemaUrl=J.string();break}case 2:{F.type=J.string();break}case 3:{if(!(F.idKeys&&F.idKeys.length))F.idKeys=[];F.idKeys.push(J.string());break}case 4:{if(!(F.descriptionKeys&&F.descriptionKeys.length))F.descriptionKeys=[];F.descriptionKeys.push(J.string());break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.schemaUrl!=null&&J.hasOwnProperty("schemaUrl")){if(!B.isString(J.schemaUrl))return"schemaUrl: string expected"}if(J.type!=null&&J.hasOwnProperty("type")){if(!B.isString(J.type))return"type: string expected"}if(J.idKeys!=null&&J.hasOwnProperty("idKeys")){if(!Array.isArray(J.idKeys))return"idKeys: array expected";for(var Z=0;Z<J.idKeys.length;++Z)if(!B.isString(J.idKeys[Z]))return"idKeys: string[] expected"}if(J.descriptionKeys!=null&&J.hasOwnProperty("descriptionKeys")){if(!Array.isArray(J.descriptionKeys))return"descriptionKeys: array expected";for(var Z=0;Z<J.descriptionKeys.length;++Z)if(!B.isString(J.descriptionKeys[Z]))return"descriptionKeys: string[] expected"}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.common.v1.EntityRef)return J;var Z=new O.opentelemetry.proto.common.v1.EntityRef;if(J.schemaUrl!=null)Z.schemaUrl=String(J.schemaUrl);if(J.type!=null)Z.type=String(J.type);if(J.idKeys){if(!Array.isArray(J.idKeys))throw TypeError(".opentelemetry.proto.common.v1.EntityRef.idKeys: array expected");Z.idKeys=[];for(var X=0;X<J.idKeys.length;++X)Z.idKeys[X]=String(J.idKeys[X])}if(J.descriptionKeys){if(!Array.isArray(J.descriptionKeys))throw TypeError(".opentelemetry.proto.common.v1.EntityRef.descriptionKeys: array expected");Z.descriptionKeys=[];for(var X=0;X<J.descriptionKeys.length;++X)Z.descriptionKeys[X]=String(J.descriptionKeys[X])}return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.idKeys=[],X.descriptionKeys=[];if(Z.defaults)X.schemaUrl="",X.type="";if(J.schemaUrl!=null&&J.hasOwnProperty("schemaUrl"))X.schemaUrl=J.schemaUrl;if(J.type!=null&&J.hasOwnProperty("type"))X.type=J.type;if(J.idKeys&&J.idKeys.length){X.idKeys=[];for(var q=0;q<J.idKeys.length;++q)X.idKeys[q]=J.idKeys[q]}if(J.descriptionKeys&&J.descriptionKeys.length){X.descriptionKeys=[];for(var q=0;q<J.descriptionKeys.length;++q)X.descriptionKeys[q]=J.descriptionKeys[q]}return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.common.v1.EntityRef"},z}(),K}(),G}(),Y.resource=function(){var G={};return G.v1=function(){var K={};return K.Resource=function(){function z(W){if(this.attributes=[],this.entityRefs=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.attributes=B.emptyArray,z.prototype.droppedAttributesCount=null,z.prototype.entityRefs=B.emptyArray,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.attributes!=null&&J.attributes.length)for(var X=0;X<J.attributes.length;++X)O.opentelemetry.proto.common.v1.KeyValue.encode(J.attributes[X],Z.uint32(10).fork()).ldelim();if(J.droppedAttributesCount!=null&&Object.hasOwnProperty.call(J,"droppedAttributesCount"))Z.uint32(16).uint32(J.droppedAttributesCount);if(J.entityRefs!=null&&J.entityRefs.length)for(var X=0;X<J.entityRefs.length;++X)O.opentelemetry.proto.common.v1.EntityRef.encode(J.entityRefs[X],Z.uint32(26).fork()).ldelim();return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.resource.v1.Resource;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{if(!(F.attributes&&F.attributes.length))F.attributes=[];F.attributes.push(O.opentelemetry.proto.common.v1.KeyValue.decode(J,J.uint32()));break}case 2:{F.droppedAttributesCount=J.uint32();break}case 3:{if(!(F.entityRefs&&F.entityRefs.length))F.entityRefs=[];F.entityRefs.push(O.opentelemetry.proto.common.v1.EntityRef.decode(J,J.uint32()));break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.attributes!=null&&J.hasOwnProperty("attributes")){if(!Array.isArray(J.attributes))return"attributes: array expected";for(var Z=0;Z<J.attributes.length;++Z){var X=O.opentelemetry.proto.common.v1.KeyValue.verify(J.attributes[Z]);if(X)return"attributes."+X}}if(J.droppedAttributesCount!=null&&J.hasOwnProperty("droppedAttributesCount")){if(!B.isInteger(J.droppedAttributesCount))return"droppedAttributesCount: integer expected"}if(J.entityRefs!=null&&J.hasOwnProperty("entityRefs")){if(!Array.isArray(J.entityRefs))return"entityRefs: array expected";for(var Z=0;Z<J.entityRefs.length;++Z){var X=O.opentelemetry.proto.common.v1.EntityRef.verify(J.entityRefs[Z]);if(X)return"entityRefs."+X}}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.resource.v1.Resource)return J;var Z=new O.opentelemetry.proto.resource.v1.Resource;if(J.attributes){if(!Array.isArray(J.attributes))throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: array expected");Z.attributes=[];for(var X=0;X<J.attributes.length;++X){if(typeof J.attributes[X]!=="object")throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: object expected");Z.attributes[X]=O.opentelemetry.proto.common.v1.KeyValue.fromObject(J.attributes[X])}}if(J.droppedAttributesCount!=null)Z.droppedAttributesCount=J.droppedAttributesCount>>>0;if(J.entityRefs){if(!Array.isArray(J.entityRefs))throw TypeError(".opentelemetry.proto.resource.v1.Resource.entityRefs: array expected");Z.entityRefs=[];for(var X=0;X<J.entityRefs.length;++X){if(typeof J.entityRefs[X]!=="object")throw TypeError(".opentelemetry.proto.resource.v1.Resource.entityRefs: object expected");Z.entityRefs[X]=O.opentelemetry.proto.common.v1.EntityRef.fromObject(J.entityRefs[X])}}return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.attributes=[],X.entityRefs=[];if(Z.defaults)X.droppedAttributesCount=0;if(J.attributes&&J.attributes.length){X.attributes=[];for(var q=0;q<J.attributes.length;++q)X.attributes[q]=O.opentelemetry.proto.common.v1.KeyValue.toObject(J.attributes[q],Z)}if(J.droppedAttributesCount!=null&&J.hasOwnProperty("droppedAttributesCount"))X.droppedAttributesCount=J.droppedAttributesCount;if(J.entityRefs&&J.entityRefs.length){X.entityRefs=[];for(var q=0;q<J.entityRefs.length;++q)X.entityRefs[q]=O.opentelemetry.proto.common.v1.EntityRef.toObject(J.entityRefs[q],Z)}return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.resource.v1.Resource"},z}(),K}(),G}(),Y.trace=function(){var G={};return G.v1=function(){var K={};return K.TracesData=function(){function z(W){if(this.resourceSpans=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.resourceSpans=B.emptyArray,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.resourceSpans!=null&&J.resourceSpans.length)for(var X=0;X<J.resourceSpans.length;++X)O.opentelemetry.proto.trace.v1.ResourceSpans.encode(J.resourceSpans[X],Z.uint32(10).fork()).ldelim();return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.trace.v1.TracesData;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{if(!(F.resourceSpans&&F.resourceSpans.length))F.resourceSpans=[];F.resourceSpans.push(O.opentelemetry.proto.trace.v1.ResourceSpans.decode(J,J.uint32()));break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.resourceSpans!=null&&J.hasOwnProperty("resourceSpans")){if(!Array.isArray(J.resourceSpans))return"resourceSpans: array expected";for(var Z=0;Z<J.resourceSpans.length;++Z){var X=O.opentelemetry.proto.trace.v1.ResourceSpans.verify(J.resourceSpans[Z]);if(X)return"resourceSpans."+X}}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.trace.v1.TracesData)return J;var Z=new O.opentelemetry.proto.trace.v1.TracesData;if(J.resourceSpans){if(!Array.isArray(J.resourceSpans))throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: array expected");Z.resourceSpans=[];for(var X=0;X<J.resourceSpans.length;++X){if(typeof J.resourceSpans[X]!=="object")throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: object expected");Z.resourceSpans[X]=O.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(J.resourceSpans[X])}}return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.resourceSpans=[];if(J.resourceSpans&&J.resourceSpans.length){X.resourceSpans=[];for(var q=0;q<J.resourceSpans.length;++q)X.resourceSpans[q]=O.opentelemetry.proto.trace.v1.ResourceSpans.toObject(J.resourceSpans[q],Z)}return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.trace.v1.TracesData"},z}(),K.ResourceSpans=function(){function z(W){if(this.scopeSpans=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.resource=null,z.prototype.scopeSpans=B.emptyArray,z.prototype.schemaUrl=null,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.resource!=null&&Object.hasOwnProperty.call(J,"resource"))O.opentelemetry.proto.resource.v1.Resource.encode(J.resource,Z.uint32(10).fork()).ldelim();if(J.scopeSpans!=null&&J.scopeSpans.length)for(var X=0;X<J.scopeSpans.length;++X)O.opentelemetry.proto.trace.v1.ScopeSpans.encode(J.scopeSpans[X],Z.uint32(18).fork()).ldelim();if(J.schemaUrl!=null&&Object.hasOwnProperty.call(J,"schemaUrl"))Z.uint32(26).string(J.schemaUrl);return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.trace.v1.ResourceSpans;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{F.resource=O.opentelemetry.proto.resource.v1.Resource.decode(J,J.uint32());break}case 2:{if(!(F.scopeSpans&&F.scopeSpans.length))F.scopeSpans=[];F.scopeSpans.push(O.opentelemetry.proto.trace.v1.ScopeSpans.decode(J,J.uint32()));break}case 3:{F.schemaUrl=J.string();break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.resource!=null&&J.hasOwnProperty("resource")){var Z=O.opentelemetry.proto.resource.v1.Resource.verify(J.resource);if(Z)return"resource."+Z}if(J.scopeSpans!=null&&J.hasOwnProperty("scopeSpans")){if(!Array.isArray(J.scopeSpans))return"scopeSpans: array expected";for(var X=0;X<J.scopeSpans.length;++X){var Z=O.opentelemetry.proto.trace.v1.ScopeSpans.verify(J.scopeSpans[X]);if(Z)return"scopeSpans."+Z}}if(J.schemaUrl!=null&&J.hasOwnProperty("schemaUrl")){if(!B.isString(J.schemaUrl))return"schemaUrl: string expected"}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.trace.v1.ResourceSpans)return J;var Z=new O.opentelemetry.proto.trace.v1.ResourceSpans;if(J.resource!=null){if(typeof J.resource!=="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.resource: object expected");Z.resource=O.opentelemetry.proto.resource.v1.Resource.fromObject(J.resource)}if(J.scopeSpans){if(!Array.isArray(J.scopeSpans))throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: array expected");Z.scopeSpans=[];for(var X=0;X<J.scopeSpans.length;++X){if(typeof J.scopeSpans[X]!=="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: object expected");Z.scopeSpans[X]=O.opentelemetry.proto.trace.v1.ScopeSpans.fromObject(J.scopeSpans[X])}}if(J.schemaUrl!=null)Z.schemaUrl=String(J.schemaUrl);return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.scopeSpans=[];if(Z.defaults)X.resource=null,X.schemaUrl="";if(J.resource!=null&&J.hasOwnProperty("resource"))X.resource=O.opentelemetry.proto.resource.v1.Resource.toObject(J.resource,Z);if(J.scopeSpans&&J.scopeSpans.length){X.scopeSpans=[];for(var q=0;q<J.scopeSpans.length;++q)X.scopeSpans[q]=O.opentelemetry.proto.trace.v1.ScopeSpans.toObject(J.scopeSpans[q],Z)}if(J.schemaUrl!=null&&J.hasOwnProperty("schemaUrl"))X.schemaUrl=J.schemaUrl;return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.trace.v1.ResourceSpans"},z}(),K.ScopeSpans=function(){function z(W){if(this.spans=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.scope=null,z.prototype.spans=B.emptyArray,z.prototype.schemaUrl=null,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.scope!=null&&Object.hasOwnProperty.call(J,"scope"))O.opentelemetry.proto.common.v1.InstrumentationScope.encode(J.scope,Z.uint32(10).fork()).ldelim();if(J.spans!=null&&J.spans.length)for(var X=0;X<J.spans.length;++X)O.opentelemetry.proto.trace.v1.Span.encode(J.spans[X],Z.uint32(18).fork()).ldelim();if(J.schemaUrl!=null&&Object.hasOwnProperty.call(J,"schemaUrl"))Z.uint32(26).string(J.schemaUrl);return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.trace.v1.ScopeSpans;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{F.scope=O.opentelemetry.proto.common.v1.InstrumentationScope.decode(J,J.uint32());break}case 2:{if(!(F.spans&&F.spans.length))F.spans=[];F.spans.push(O.opentelemetry.proto.trace.v1.Span.decode(J,J.uint32()));break}case 3:{F.schemaUrl=J.string();break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.scope!=null&&J.hasOwnProperty("scope")){var Z=O.opentelemetry.proto.common.v1.InstrumentationScope.verify(J.scope);if(Z)return"scope."+Z}if(J.spans!=null&&J.hasOwnProperty("spans")){if(!Array.isArray(J.spans))return"spans: array expected";for(var X=0;X<J.spans.length;++X){var Z=O.opentelemetry.proto.trace.v1.Span.verify(J.spans[X]);if(Z)return"spans."+Z}}if(J.schemaUrl!=null&&J.hasOwnProperty("schemaUrl")){if(!B.isString(J.schemaUrl))return"schemaUrl: string expected"}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.trace.v1.ScopeSpans)return J;var Z=new O.opentelemetry.proto.trace.v1.ScopeSpans;if(J.scope!=null){if(typeof J.scope!=="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.scope: object expected");Z.scope=O.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(J.scope)}if(J.spans){if(!Array.isArray(J.spans))throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: array expected");Z.spans=[];for(var X=0;X<J.spans.length;++X){if(typeof J.spans[X]!=="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: object expected");Z.spans[X]=O.opentelemetry.proto.trace.v1.Span.fromObject(J.spans[X])}}if(J.schemaUrl!=null)Z.schemaUrl=String(J.schemaUrl);return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.spans=[];if(Z.defaults)X.scope=null,X.schemaUrl="";if(J.scope!=null&&J.hasOwnProperty("scope"))X.scope=O.opentelemetry.proto.common.v1.InstrumentationScope.toObject(J.scope,Z);if(J.spans&&J.spans.length){X.spans=[];for(var q=0;q<J.spans.length;++q)X.spans[q]=O.opentelemetry.proto.trace.v1.Span.toObject(J.spans[q],Z)}if(J.schemaUrl!=null&&J.hasOwnProperty("schemaUrl"))X.schemaUrl=J.schemaUrl;return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.trace.v1.ScopeSpans"},z}(),K.Span=function(){function z(W){if(this.attributes=[],this.events=[],this.links=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.traceId=null,z.prototype.spanId=null,z.prototype.traceState=null,z.prototype.parentSpanId=null,z.prototype.flags=null,z.prototype.name=null,z.prototype.kind=null,z.prototype.startTimeUnixNano=null,z.prototype.endTimeUnixNano=null,z.prototype.attributes=B.emptyArray,z.prototype.droppedAttributesCount=null,z.prototype.events=B.emptyArray,z.prototype.droppedEventsCount=null,z.prototype.links=B.emptyArray,z.prototype.droppedLinksCount=null,z.prototype.status=null,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.traceId!=null&&Object.hasOwnProperty.call(J,"traceId"))Z.uint32(10).bytes(J.traceId);if(J.spanId!=null&&Object.hasOwnProperty.call(J,"spanId"))Z.uint32(18).bytes(J.spanId);if(J.traceState!=null&&Object.hasOwnProperty.call(J,"traceState"))Z.uint32(26).string(J.traceState);if(J.parentSpanId!=null&&Object.hasOwnProperty.call(J,"parentSpanId"))Z.uint32(34).bytes(J.parentSpanId);if(J.name!=null&&Object.hasOwnProperty.call(J,"name"))Z.uint32(42).string(J.name);if(J.kind!=null&&Object.hasOwnProperty.call(J,"kind"))Z.uint32(48).int32(J.kind);if(J.startTimeUnixNano!=null&&Object.hasOwnProperty.call(J,"startTimeUnixNano"))Z.uint32(57).fixed64(J.startTimeUnixNano);if(J.endTimeUnixNano!=null&&Object.hasOwnProperty.call(J,"endTimeUnixNano"))Z.uint32(65).fixed64(J.endTimeUnixNano);if(J.attributes!=null&&J.attributes.length)for(var X=0;X<J.attributes.length;++X)O.opentelemetry.proto.common.v1.KeyValue.encode(J.attributes[X],Z.uint32(74).fork()).ldelim();if(J.droppedAttributesCount!=null&&Object.hasOwnProperty.call(J,"droppedAttributesCount"))Z.uint32(80).uint32(J.droppedAttributesCount);if(J.events!=null&&J.events.length)for(var X=0;X<J.events.length;++X)O.opentelemetry.proto.trace.v1.Span.Event.encode(J.events[X],Z.uint32(90).fork()).ldelim();if(J.droppedEventsCount!=null&&Object.hasOwnProperty.call(J,"droppedEventsCount"))Z.uint32(96).uint32(J.droppedEventsCount);if(J.links!=null&&J.links.length)for(var X=0;X<J.links.length;++X)O.opentelemetry.proto.trace.v1.Span.Link.encode(J.links[X],Z.uint32(106).fork()).ldelim();if(J.droppedLinksCount!=null&&Object.hasOwnProperty.call(J,"droppedLinksCount"))Z.uint32(112).uint32(J.droppedLinksCount);if(J.status!=null&&Object.hasOwnProperty.call(J,"status"))O.opentelemetry.proto.trace.v1.Status.encode(J.status,Z.uint32(122).fork()).ldelim();if(J.flags!=null&&Object.hasOwnProperty.call(J,"flags"))Z.uint32(133).fixed32(J.flags);return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.trace.v1.Span;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{F.traceId=J.bytes();break}case 2:{F.spanId=J.bytes();break}case 3:{F.traceState=J.string();break}case 4:{F.parentSpanId=J.bytes();break}case 16:{F.flags=J.fixed32();break}case 5:{F.name=J.string();break}case 6:{F.kind=J.int32();break}case 7:{F.startTimeUnixNano=J.fixed64();break}case 8:{F.endTimeUnixNano=J.fixed64();break}case 9:{if(!(F.attributes&&F.attributes.length))F.attributes=[];F.attributes.push(O.opentelemetry.proto.common.v1.KeyValue.decode(J,J.uint32()));break}case 10:{F.droppedAttributesCount=J.uint32();break}case 11:{if(!(F.events&&F.events.length))F.events=[];F.events.push(O.opentelemetry.proto.trace.v1.Span.Event.decode(J,J.uint32()));break}case 12:{F.droppedEventsCount=J.uint32();break}case 13:{if(!(F.links&&F.links.length))F.links=[];F.links.push(O.opentelemetry.proto.trace.v1.Span.Link.decode(J,J.uint32()));break}case 14:{F.droppedLinksCount=J.uint32();break}case 15:{F.status=O.opentelemetry.proto.trace.v1.Status.decode(J,J.uint32());break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.traceId!=null&&J.hasOwnProperty("traceId")){if(!(J.traceId&&typeof J.traceId.length==="number"||B.isString(J.traceId)))return"traceId: buffer expected"}if(J.spanId!=null&&J.hasOwnProperty("spanId")){if(!(J.spanId&&typeof J.spanId.length==="number"||B.isString(J.spanId)))return"spanId: buffer expected"}if(J.traceState!=null&&J.hasOwnProperty("traceState")){if(!B.isString(J.traceState))return"traceState: string expected"}if(J.parentSpanId!=null&&J.hasOwnProperty("parentSpanId")){if(!(J.parentSpanId&&typeof J.parentSpanId.length==="number"||B.isString(J.parentSpanId)))return"parentSpanId: buffer expected"}if(J.flags!=null&&J.hasOwnProperty("flags")){if(!B.isInteger(J.flags))return"flags: integer expected"}if(J.name!=null&&J.hasOwnProperty("name")){if(!B.isString(J.name))return"name: string expected"}if(J.kind!=null&&J.hasOwnProperty("kind"))switch(J.kind){default:return"kind: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:break}if(J.startTimeUnixNano!=null&&J.hasOwnProperty("startTimeUnixNano")){if(!B.isInteger(J.startTimeUnixNano)&&!(J.startTimeUnixNano&&B.isInteger(J.startTimeUnixNano.low)&&B.isInteger(J.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected"}if(J.endTimeUnixNano!=null&&J.hasOwnProperty("endTimeUnixNano")){if(!B.isInteger(J.endTimeUnixNano)&&!(J.endTimeUnixNano&&B.isInteger(J.endTimeUnixNano.low)&&B.isInteger(J.endTimeUnixNano.high)))return"endTimeUnixNano: integer|Long expected"}if(J.attributes!=null&&J.hasOwnProperty("attributes")){if(!Array.isArray(J.attributes))return"attributes: array expected";for(var Z=0;Z<J.attributes.length;++Z){var X=O.opentelemetry.proto.common.v1.KeyValue.verify(J.attributes[Z]);if(X)return"attributes."+X}}if(J.droppedAttributesCount!=null&&J.hasOwnProperty("droppedAttributesCount")){if(!B.isInteger(J.droppedAttributesCount))return"droppedAttributesCount: integer expected"}if(J.events!=null&&J.hasOwnProperty("events")){if(!Array.isArray(J.events))return"events: array expected";for(var Z=0;Z<J.events.length;++Z){var X=O.opentelemetry.proto.trace.v1.Span.Event.verify(J.events[Z]);if(X)return"events."+X}}if(J.droppedEventsCount!=null&&J.hasOwnProperty("droppedEventsCount")){if(!B.isInteger(J.droppedEventsCount))return"droppedEventsCount: integer expected"}if(J.links!=null&&J.hasOwnProperty("links")){if(!Array.isArray(J.links))return"links: array expected";for(var Z=0;Z<J.links.length;++Z){var X=O.opentelemetry.proto.trace.v1.Span.Link.verify(J.links[Z]);if(X)return"links."+X}}if(J.droppedLinksCount!=null&&J.hasOwnProperty("droppedLinksCount")){if(!B.isInteger(J.droppedLinksCount))return"droppedLinksCount: integer expected"}if(J.status!=null&&J.hasOwnProperty("status")){var X=O.opentelemetry.proto.trace.v1.Status.verify(J.status);if(X)return"status."+X}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.trace.v1.Span)return J;var Z=new O.opentelemetry.proto.trace.v1.Span;if(J.traceId!=null){if(typeof J.traceId==="string")B.base64.decode(J.traceId,Z.traceId=B.newBuffer(B.base64.length(J.traceId)),0);else if(J.traceId.length>=0)Z.traceId=J.traceId}if(J.spanId!=null){if(typeof J.spanId==="string")B.base64.decode(J.spanId,Z.spanId=B.newBuffer(B.base64.length(J.spanId)),0);else if(J.spanId.length>=0)Z.spanId=J.spanId}if(J.traceState!=null)Z.traceState=String(J.traceState);if(J.parentSpanId!=null){if(typeof J.parentSpanId==="string")B.base64.decode(J.parentSpanId,Z.parentSpanId=B.newBuffer(B.base64.length(J.parentSpanId)),0);else if(J.parentSpanId.length>=0)Z.parentSpanId=J.parentSpanId}if(J.flags!=null)Z.flags=J.flags>>>0;if(J.name!=null)Z.name=String(J.name);switch(J.kind){default:if(typeof J.kind==="number"){Z.kind=J.kind;break}break;case"SPAN_KIND_UNSPECIFIED":case 0:Z.kind=0;break;case"SPAN_KIND_INTERNAL":case 1:Z.kind=1;break;case"SPAN_KIND_SERVER":case 2:Z.kind=2;break;case"SPAN_KIND_CLIENT":case 3:Z.kind=3;break;case"SPAN_KIND_PRODUCER":case 4:Z.kind=4;break;case"SPAN_KIND_CONSUMER":case 5:Z.kind=5;break}if(J.startTimeUnixNano!=null){if(B.Long)(Z.startTimeUnixNano=B.Long.fromValue(J.startTimeUnixNano)).unsigned=!1;else if(typeof J.startTimeUnixNano==="string")Z.startTimeUnixNano=parseInt(J.startTimeUnixNano,10);else if(typeof J.startTimeUnixNano==="number")Z.startTimeUnixNano=J.startTimeUnixNano;else if(typeof J.startTimeUnixNano==="object")Z.startTimeUnixNano=new B.LongBits(J.startTimeUnixNano.low>>>0,J.startTimeUnixNano.high>>>0).toNumber()}if(J.endTimeUnixNano!=null){if(B.Long)(Z.endTimeUnixNano=B.Long.fromValue(J.endTimeUnixNano)).unsigned=!1;else if(typeof J.endTimeUnixNano==="string")Z.endTimeUnixNano=parseInt(J.endTimeUnixNano,10);else if(typeof J.endTimeUnixNano==="number")Z.endTimeUnixNano=J.endTimeUnixNano;else if(typeof J.endTimeUnixNano==="object")Z.endTimeUnixNano=new B.LongBits(J.endTimeUnixNano.low>>>0,J.endTimeUnixNano.high>>>0).toNumber()}if(J.attributes){if(!Array.isArray(J.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: array expected");Z.attributes=[];for(var X=0;X<J.attributes.length;++X){if(typeof J.attributes[X]!=="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: object expected");Z.attributes[X]=O.opentelemetry.proto.common.v1.KeyValue.fromObject(J.attributes[X])}}if(J.droppedAttributesCount!=null)Z.droppedAttributesCount=J.droppedAttributesCount>>>0;if(J.events){if(!Array.isArray(J.events))throw TypeError(".opentelemetry.proto.trace.v1.Span.events: array expected");Z.events=[];for(var X=0;X<J.events.length;++X){if(typeof J.events[X]!=="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.events: object expected");Z.events[X]=O.opentelemetry.proto.trace.v1.Span.Event.fromObject(J.events[X])}}if(J.droppedEventsCount!=null)Z.droppedEventsCount=J.droppedEventsCount>>>0;if(J.links){if(!Array.isArray(J.links))throw TypeError(".opentelemetry.proto.trace.v1.Span.links: array expected");Z.links=[];for(var X=0;X<J.links.length;++X){if(typeof J.links[X]!=="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.links: object expected");Z.links[X]=O.opentelemetry.proto.trace.v1.Span.Link.fromObject(J.links[X])}}if(J.droppedLinksCount!=null)Z.droppedLinksCount=J.droppedLinksCount>>>0;if(J.status!=null){if(typeof J.status!=="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.status: object expected");Z.status=O.opentelemetry.proto.trace.v1.Status.fromObject(J.status)}return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.attributes=[],X.events=[],X.links=[];if(Z.defaults){if(Z.bytes===String)X.traceId="";else if(X.traceId=[],Z.bytes!==Array)X.traceId=B.newBuffer(X.traceId);if(Z.bytes===String)X.spanId="";else if(X.spanId=[],Z.bytes!==Array)X.spanId=B.newBuffer(X.spanId);if(X.traceState="",Z.bytes===String)X.parentSpanId="";else if(X.parentSpanId=[],Z.bytes!==Array)X.parentSpanId=B.newBuffer(X.parentSpanId);if(X.name="",X.kind=Z.enums===String?"SPAN_KIND_UNSPECIFIED":0,B.Long){var q=new B.Long(0,0,!1);X.startTimeUnixNano=Z.longs===String?q.toString():Z.longs===Number?q.toNumber():q}else X.startTimeUnixNano=Z.longs===String?"0":0;if(B.Long){var q=new B.Long(0,0,!1);X.endTimeUnixNano=Z.longs===String?q.toString():Z.longs===Number?q.toNumber():q}else X.endTimeUnixNano=Z.longs===String?"0":0;X.droppedAttributesCount=0,X.droppedEventsCount=0,X.droppedLinksCount=0,X.status=null,X.flags=0}if(J.traceId!=null&&J.hasOwnProperty("traceId"))X.traceId=Z.bytes===String?B.base64.encode(J.traceId,0,J.traceId.length):Z.bytes===Array?Array.prototype.slice.call(J.traceId):J.traceId;if(J.spanId!=null&&J.hasOwnProperty("spanId"))X.spanId=Z.bytes===String?B.base64.encode(J.spanId,0,J.spanId.length):Z.bytes===Array?Array.prototype.slice.call(J.spanId):J.spanId;if(J.traceState!=null&&J.hasOwnProperty("traceState"))X.traceState=J.traceState;if(J.parentSpanId!=null&&J.hasOwnProperty("parentSpanId"))X.parentSpanId=Z.bytes===String?B.base64.encode(J.parentSpanId,0,J.parentSpanId.length):Z.bytes===Array?Array.prototype.slice.call(J.parentSpanId):J.parentSpanId;if(J.name!=null&&J.hasOwnProperty("name"))X.name=J.name;if(J.kind!=null&&J.hasOwnProperty("kind"))X.kind=Z.enums===String?O.opentelemetry.proto.trace.v1.Span.SpanKind[J.kind]===void 0?J.kind:O.opentelemetry.proto.trace.v1.Span.SpanKind[J.kind]:J.kind;if(J.startTimeUnixNano!=null&&J.hasOwnProperty("startTimeUnixNano"))if(typeof J.startTimeUnixNano==="number")X.startTimeUnixNano=Z.longs===String?String(J.startTimeUnixNano):J.startTimeUnixNano;else X.startTimeUnixNano=Z.longs===String?B.Long.prototype.toString.call(J.startTimeUnixNano):Z.longs===Number?new B.LongBits(J.startTimeUnixNano.low>>>0,J.startTimeUnixNano.high>>>0).toNumber():J.startTimeUnixNano;if(J.endTimeUnixNano!=null&&J.hasOwnProperty("endTimeUnixNano"))if(typeof J.endTimeUnixNano==="number")X.endTimeUnixNano=Z.longs===String?String(J.endTimeUnixNano):J.endTimeUnixNano;else X.endTimeUnixNano=Z.longs===String?B.Long.prototype.toString.call(J.endTimeUnixNano):Z.longs===Number?new B.LongBits(J.endTimeUnixNano.low>>>0,J.endTimeUnixNano.high>>>0).toNumber():J.endTimeUnixNano;if(J.attributes&&J.attributes.length){X.attributes=[];for(var F=0;F<J.attributes.length;++F)X.attributes[F]=O.opentelemetry.proto.common.v1.KeyValue.toObject(J.attributes[F],Z)}if(J.droppedAttributesCount!=null&&J.hasOwnProperty("droppedAttributesCount"))X.droppedAttributesCount=J.droppedAttributesCount;if(J.events&&J.events.length){X.events=[];for(var F=0;F<J.events.length;++F)X.events[F]=O.opentelemetry.proto.trace.v1.Span.Event.toObject(J.events[F],Z)}if(J.droppedEventsCount!=null&&J.hasOwnProperty("droppedEventsCount"))X.droppedEventsCount=J.droppedEventsCount;if(J.links&&J.links.length){X.links=[];for(var F=0;F<J.links.length;++F)X.links[F]=O.opentelemetry.proto.trace.v1.Span.Link.toObject(J.links[F],Z)}if(J.droppedLinksCount!=null&&J.hasOwnProperty("droppedLinksCount"))X.droppedLinksCount=J.droppedLinksCount;if(J.status!=null&&J.hasOwnProperty("status"))X.status=O.opentelemetry.proto.trace.v1.Status.toObject(J.status,Z);if(J.flags!=null&&J.hasOwnProperty("flags"))X.flags=J.flags;return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.trace.v1.Span"},z.SpanKind=function(){var W={},J=Object.create(W);return J[W[0]="SPAN_KIND_UNSPECIFIED"]=0,J[W[1]="SPAN_KIND_INTERNAL"]=1,J[W[2]="SPAN_KIND_SERVER"]=2,J[W[3]="SPAN_KIND_CLIENT"]=3,J[W[4]="SPAN_KIND_PRODUCER"]=4,J[W[5]="SPAN_KIND_CONSUMER"]=5,J}(),z.Event=function(){function W(J){if(this.attributes=[],J){for(var Z=Object.keys(J),X=0;X<Z.length;++X)if(J[Z[X]]!=null)this[Z[X]]=J[Z[X]]}}return W.prototype.timeUnixNano=null,W.prototype.name=null,W.prototype.attributes=B.emptyArray,W.prototype.droppedAttributesCount=null,W.create=function(Z){return new W(Z)},W.encode=function(Z,X){if(!X)X=w.create();if(Z.timeUnixNano!=null&&Object.hasOwnProperty.call(Z,"timeUnixNano"))X.uint32(9).fixed64(Z.timeUnixNano);if(Z.name!=null&&Object.hasOwnProperty.call(Z,"name"))X.uint32(18).string(Z.name);if(Z.attributes!=null&&Z.attributes.length)for(var q=0;q<Z.attributes.length;++q)O.opentelemetry.proto.common.v1.KeyValue.encode(Z.attributes[q],X.uint32(26).fork()).ldelim();if(Z.droppedAttributesCount!=null&&Object.hasOwnProperty.call(Z,"droppedAttributesCount"))X.uint32(32).uint32(Z.droppedAttributesCount);return X},W.encodeDelimited=function(Z,X){return this.encode(Z,X).ldelim()},W.decode=function(Z,X,q){if(!(Z instanceof I))Z=I.create(Z);var F=X===void 0?Z.len:Z.pos+X,H=new O.opentelemetry.proto.trace.v1.Span.Event;while(Z.pos<F){var N=Z.uint32();if(N===q)break;switch(N>>>3){case 1:{H.timeUnixNano=Z.fixed64();break}case 2:{H.name=Z.string();break}case 3:{if(!(H.attributes&&H.attributes.length))H.attributes=[];H.attributes.push(O.opentelemetry.proto.common.v1.KeyValue.decode(Z,Z.uint32()));break}case 4:{H.droppedAttributesCount=Z.uint32();break}default:Z.skipType(N&7);break}}return H},W.decodeDelimited=function(Z){if(!(Z instanceof I))Z=new I(Z);return this.decode(Z,Z.uint32())},W.verify=function(Z){if(typeof Z!=="object"||Z===null)return"object expected";if(Z.timeUnixNano!=null&&Z.hasOwnProperty("timeUnixNano")){if(!B.isInteger(Z.timeUnixNano)&&!(Z.timeUnixNano&&B.isInteger(Z.timeUnixNano.low)&&B.isInteger(Z.timeUnixNano.high)))return"timeUnixNano: integer|Long expected"}if(Z.name!=null&&Z.hasOwnProperty("name")){if(!B.isString(Z.name))return"name: string expected"}if(Z.attributes!=null&&Z.hasOwnProperty("attributes")){if(!Array.isArray(Z.attributes))return"attributes: array expected";for(var X=0;X<Z.attributes.length;++X){var q=O.opentelemetry.proto.common.v1.KeyValue.verify(Z.attributes[X]);if(q)return"attributes."+q}}if(Z.droppedAttributesCount!=null&&Z.hasOwnProperty("droppedAttributesCount")){if(!B.isInteger(Z.droppedAttributesCount))return"droppedAttributesCount: integer expected"}return null},W.fromObject=function(Z){if(Z instanceof O.opentelemetry.proto.trace.v1.Span.Event)return Z;var X=new O.opentelemetry.proto.trace.v1.Span.Event;if(Z.timeUnixNano!=null){if(B.Long)(X.timeUnixNano=B.Long.fromValue(Z.timeUnixNano)).unsigned=!1;else if(typeof Z.timeUnixNano==="string")X.timeUnixNano=parseInt(Z.timeUnixNano,10);else if(typeof Z.timeUnixNano==="number")X.timeUnixNano=Z.timeUnixNano;else if(typeof Z.timeUnixNano==="object")X.timeUnixNano=new B.LongBits(Z.timeUnixNano.low>>>0,Z.timeUnixNano.high>>>0).toNumber()}if(Z.name!=null)X.name=String(Z.name);if(Z.attributes){if(!Array.isArray(Z.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: array expected");X.attributes=[];for(var q=0;q<Z.attributes.length;++q){if(typeof Z.attributes[q]!=="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: object expected");X.attributes[q]=O.opentelemetry.proto.common.v1.KeyValue.fromObject(Z.attributes[q])}}if(Z.droppedAttributesCount!=null)X.droppedAttributesCount=Z.droppedAttributesCount>>>0;return X},W.toObject=function(Z,X){if(!X)X={};var q={};if(X.arrays||X.defaults)q.attributes=[];if(X.defaults){if(B.Long){var F=new B.Long(0,0,!1);q.timeUnixNano=X.longs===String?F.toString():X.longs===Number?F.toNumber():F}else q.timeUnixNano=X.longs===String?"0":0;q.name="",q.droppedAttributesCount=0}if(Z.timeUnixNano!=null&&Z.hasOwnProperty("timeUnixNano"))if(typeof Z.timeUnixNano==="number")q.timeUnixNano=X.longs===String?String(Z.timeUnixNano):Z.timeUnixNano;else q.timeUnixNano=X.longs===String?B.Long.prototype.toString.call(Z.timeUnixNano):X.longs===Number?new B.LongBits(Z.timeUnixNano.low>>>0,Z.timeUnixNano.high>>>0).toNumber():Z.timeUnixNano;if(Z.name!=null&&Z.hasOwnProperty("name"))q.name=Z.name;if(Z.attributes&&Z.attributes.length){q.attributes=[];for(var H=0;H<Z.attributes.length;++H)q.attributes[H]=O.opentelemetry.proto.common.v1.KeyValue.toObject(Z.attributes[H],X)}if(Z.droppedAttributesCount!=null&&Z.hasOwnProperty("droppedAttributesCount"))q.droppedAttributesCount=Z.droppedAttributesCount;return q},W.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},W.getTypeUrl=function(Z){if(Z===void 0)Z="type.googleapis.com";return Z+"/opentelemetry.proto.trace.v1.Span.Event"},W}(),z.Link=function(){function W(J){if(this.attributes=[],J){for(var Z=Object.keys(J),X=0;X<Z.length;++X)if(J[Z[X]]!=null)this[Z[X]]=J[Z[X]]}}return W.prototype.traceId=null,W.prototype.spanId=null,W.prototype.traceState=null,W.prototype.attributes=B.emptyArray,W.prototype.droppedAttributesCount=null,W.prototype.flags=null,W.create=function(Z){return new W(Z)},W.encode=function(Z,X){if(!X)X=w.create();if(Z.traceId!=null&&Object.hasOwnProperty.call(Z,"traceId"))X.uint32(10).bytes(Z.traceId);if(Z.spanId!=null&&Object.hasOwnProperty.call(Z,"spanId"))X.uint32(18).bytes(Z.spanId);if(Z.traceState!=null&&Object.hasOwnProperty.call(Z,"traceState"))X.uint32(26).string(Z.traceState);if(Z.attributes!=null&&Z.attributes.length)for(var q=0;q<Z.attributes.length;++q)O.opentelemetry.proto.common.v1.KeyValue.encode(Z.attributes[q],X.uint32(34).fork()).ldelim();if(Z.droppedAttributesCount!=null&&Object.hasOwnProperty.call(Z,"droppedAttributesCount"))X.uint32(40).uint32(Z.droppedAttributesCount);if(Z.flags!=null&&Object.hasOwnProperty.call(Z,"flags"))X.uint32(53).fixed32(Z.flags);return X},W.encodeDelimited=function(Z,X){return this.encode(Z,X).ldelim()},W.decode=function(Z,X,q){if(!(Z instanceof I))Z=I.create(Z);var F=X===void 0?Z.len:Z.pos+X,H=new O.opentelemetry.proto.trace.v1.Span.Link;while(Z.pos<F){var N=Z.uint32();if(N===q)break;switch(N>>>3){case 1:{H.traceId=Z.bytes();break}case 2:{H.spanId=Z.bytes();break}case 3:{H.traceState=Z.string();break}case 4:{if(!(H.attributes&&H.attributes.length))H.attributes=[];H.attributes.push(O.opentelemetry.proto.common.v1.KeyValue.decode(Z,Z.uint32()));break}case 5:{H.droppedAttributesCount=Z.uint32();break}case 6:{H.flags=Z.fixed32();break}default:Z.skipType(N&7);break}}return H},W.decodeDelimited=function(Z){if(!(Z instanceof I))Z=new I(Z);return this.decode(Z,Z.uint32())},W.verify=function(Z){if(typeof Z!=="object"||Z===null)return"object expected";if(Z.traceId!=null&&Z.hasOwnProperty("traceId")){if(!(Z.traceId&&typeof Z.traceId.length==="number"||B.isString(Z.traceId)))return"traceId: buffer expected"}if(Z.spanId!=null&&Z.hasOwnProperty("spanId")){if(!(Z.spanId&&typeof Z.spanId.length==="number"||B.isString(Z.spanId)))return"spanId: buffer expected"}if(Z.traceState!=null&&Z.hasOwnProperty("traceState")){if(!B.isString(Z.traceState))return"traceState: string expected"}if(Z.attributes!=null&&Z.hasOwnProperty("attributes")){if(!Array.isArray(Z.attributes))return"attributes: array expected";for(var X=0;X<Z.attributes.length;++X){var q=O.opentelemetry.proto.common.v1.KeyValue.verify(Z.attributes[X]);if(q)return"attributes."+q}}if(Z.droppedAttributesCount!=null&&Z.hasOwnProperty("droppedAttributesCount")){if(!B.isInteger(Z.droppedAttributesCount))return"droppedAttributesCount: integer expected"}if(Z.flags!=null&&Z.hasOwnProperty("flags")){if(!B.isInteger(Z.flags))return"flags: integer expected"}return null},W.fromObject=function(Z){if(Z instanceof O.opentelemetry.proto.trace.v1.Span.Link)return Z;var X=new O.opentelemetry.proto.trace.v1.Span.Link;if(Z.traceId!=null){if(typeof Z.traceId==="string")B.base64.decode(Z.traceId,X.traceId=B.newBuffer(B.base64.length(Z.traceId)),0);else if(Z.traceId.length>=0)X.traceId=Z.traceId}if(Z.spanId!=null){if(typeof Z.spanId==="string")B.base64.decode(Z.spanId,X.spanId=B.newBuffer(B.base64.length(Z.spanId)),0);else if(Z.spanId.length>=0)X.spanId=Z.spanId}if(Z.traceState!=null)X.traceState=String(Z.traceState);if(Z.attributes){if(!Array.isArray(Z.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: array expected");X.attributes=[];for(var q=0;q<Z.attributes.length;++q){if(typeof Z.attributes[q]!=="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: object expected");X.attributes[q]=O.opentelemetry.proto.common.v1.KeyValue.fromObject(Z.attributes[q])}}if(Z.droppedAttributesCount!=null)X.droppedAttributesCount=Z.droppedAttributesCount>>>0;if(Z.flags!=null)X.flags=Z.flags>>>0;return X},W.toObject=function(Z,X){if(!X)X={};var q={};if(X.arrays||X.defaults)q.attributes=[];if(X.defaults){if(X.bytes===String)q.traceId="";else if(q.traceId=[],X.bytes!==Array)q.traceId=B.newBuffer(q.traceId);if(X.bytes===String)q.spanId="";else if(q.spanId=[],X.bytes!==Array)q.spanId=B.newBuffer(q.spanId);q.traceState="",q.droppedAttributesCount=0,q.flags=0}if(Z.traceId!=null&&Z.hasOwnProperty("traceId"))q.traceId=X.bytes===String?B.base64.encode(Z.traceId,0,Z.traceId.length):X.bytes===Array?Array.prototype.slice.call(Z.traceId):Z.traceId;if(Z.spanId!=null&&Z.hasOwnProperty("spanId"))q.spanId=X.bytes===String?B.base64.encode(Z.spanId,0,Z.spanId.length):X.bytes===Array?Array.prototype.slice.call(Z.spanId):Z.spanId;if(Z.traceState!=null&&Z.hasOwnProperty("traceState"))q.traceState=Z.traceState;if(Z.attributes&&Z.attributes.length){q.attributes=[];for(var F=0;F<Z.attributes.length;++F)q.attributes[F]=O.opentelemetry.proto.common.v1.KeyValue.toObject(Z.attributes[F],X)}if(Z.droppedAttributesCount!=null&&Z.hasOwnProperty("droppedAttributesCount"))q.droppedAttributesCount=Z.droppedAttributesCount;if(Z.flags!=null&&Z.hasOwnProperty("flags"))q.flags=Z.flags;return q},W.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},W.getTypeUrl=function(Z){if(Z===void 0)Z="type.googleapis.com";return Z+"/opentelemetry.proto.trace.v1.Span.Link"},W}(),z}(),K.Status=function(){function z(W){if(W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.message=null,z.prototype.code=null,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.message!=null&&Object.hasOwnProperty.call(J,"message"))Z.uint32(18).string(J.message);if(J.code!=null&&Object.hasOwnProperty.call(J,"code"))Z.uint32(24).int32(J.code);return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.trace.v1.Status;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 2:{F.message=J.string();break}case 3:{F.code=J.int32();break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.message!=null&&J.hasOwnProperty("message")){if(!B.isString(J.message))return"message: string expected"}if(J.code!=null&&J.hasOwnProperty("code"))switch(J.code){default:return"code: enum value expected";case 0:case 1:case 2:break}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.trace.v1.Status)return J;var Z=new O.opentelemetry.proto.trace.v1.Status;if(J.message!=null)Z.message=String(J.message);switch(J.code){default:if(typeof J.code==="number"){Z.code=J.code;break}break;case"STATUS_CODE_UNSET":case 0:Z.code=0;break;case"STATUS_CODE_OK":case 1:Z.code=1;break;case"STATUS_CODE_ERROR":case 2:Z.code=2;break}return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.defaults)X.message="",X.code=Z.enums===String?"STATUS_CODE_UNSET":0;if(J.message!=null&&J.hasOwnProperty("message"))X.message=J.message;if(J.code!=null&&J.hasOwnProperty("code"))X.code=Z.enums===String?O.opentelemetry.proto.trace.v1.Status.StatusCode[J.code]===void 0?J.code:O.opentelemetry.proto.trace.v1.Status.StatusCode[J.code]:J.code;return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.trace.v1.Status"},z.StatusCode=function(){var W={},J=Object.create(W);return J[W[0]="STATUS_CODE_UNSET"]=0,J[W[1]="STATUS_CODE_OK"]=1,J[W[2]="STATUS_CODE_ERROR"]=2,J}(),z}(),K.SpanFlags=function(){var z={},W=Object.create(z);return W[z[0]="SPAN_FLAGS_DO_NOT_USE"]=0,W[z[255]="SPAN_FLAGS_TRACE_FLAGS_MASK"]=255,W[z[256]="SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK"]=256,W[z[512]="SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK"]=512,W}(),K}(),G}(),Y.collector=function(){var G={};return G.trace=function(){var K={};return K.v1=function(){var z={};return z.TraceService=function(){function W(J,Z,X){h.rpc.Service.call(this,J,Z,X)}return(W.prototype=Object.create(h.rpc.Service.prototype)).constructor=W,W.create=function(Z,X,q){return new this(Z,X,q)},Object.defineProperty(W.prototype.export=function J(Z,X){return this.rpcCall(J,O.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,O.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,Z,X)},"name",{value:"Export"}),W}(),z.ExportTraceServiceRequest=function(){function W(J){if(this.resourceSpans=[],J){for(var Z=Object.keys(J),X=0;X<Z.length;++X)if(J[Z[X]]!=null)this[Z[X]]=J[Z[X]]}}return W.prototype.resourceSpans=B.emptyArray,W.create=function(Z){return new W(Z)},W.encode=function(Z,X){if(!X)X=w.create();if(Z.resourceSpans!=null&&Z.resourceSpans.length)for(var q=0;q<Z.resourceSpans.length;++q)O.opentelemetry.proto.trace.v1.ResourceSpans.encode(Z.resourceSpans[q],X.uint32(10).fork()).ldelim();return X},W.encodeDelimited=function(Z,X){return this.encode(Z,X).ldelim()},W.decode=function(Z,X,q){if(!(Z instanceof I))Z=I.create(Z);var F=X===void 0?Z.len:Z.pos+X,H=new O.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;while(Z.pos<F){var N=Z.uint32();if(N===q)break;switch(N>>>3){case 1:{if(!(H.resourceSpans&&H.resourceSpans.length))H.resourceSpans=[];H.resourceSpans.push(O.opentelemetry.proto.trace.v1.ResourceSpans.decode(Z,Z.uint32()));break}default:Z.skipType(N&7);break}}return H},W.decodeDelimited=function(Z){if(!(Z instanceof I))Z=new I(Z);return this.decode(Z,Z.uint32())},W.verify=function(Z){if(typeof Z!=="object"||Z===null)return"object expected";if(Z.resourceSpans!=null&&Z.hasOwnProperty("resourceSpans")){if(!Array.isArray(Z.resourceSpans))return"resourceSpans: array expected";for(var X=0;X<Z.resourceSpans.length;++X){var q=O.opentelemetry.proto.trace.v1.ResourceSpans.verify(Z.resourceSpans[X]);if(q)return"resourceSpans."+q}}return null},W.fromObject=function(Z){if(Z instanceof O.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest)return Z;var X=new O.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;if(Z.resourceSpans){if(!Array.isArray(Z.resourceSpans))throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: array expected");X.resourceSpans=[];for(var q=0;q<Z.resourceSpans.length;++q){if(typeof Z.resourceSpans[q]!=="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: object expected");X.resourceSpans[q]=O.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(Z.resourceSpans[q])}}return X},W.toObject=function(Z,X){if(!X)X={};var q={};if(X.arrays||X.defaults)q.resourceSpans=[];if(Z.resourceSpans&&Z.resourceSpans.length){q.resourceSpans=[];for(var F=0;F<Z.resourceSpans.length;++F)q.resourceSpans[F]=O.opentelemetry.proto.trace.v1.ResourceSpans.toObject(Z.resourceSpans[F],X)}return q},W.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},W.getTypeUrl=function(Z){if(Z===void 0)Z="type.googleapis.com";return Z+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest"},W}(),z.ExportTraceServiceResponse=function(){function W(J){if(J){for(var Z=Object.keys(J),X=0;X<Z.length;++X)if(J[Z[X]]!=null)this[Z[X]]=J[Z[X]]}}return W.prototype.partialSuccess=null,W.create=function(Z){return new W(Z)},W.encode=function(Z,X){if(!X)X=w.create();if(Z.partialSuccess!=null&&Object.hasOwnProperty.call(Z,"partialSuccess"))O.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.encode(Z.partialSuccess,X.uint32(10).fork()).ldelim();return X},W.encodeDelimited=function(Z,X){return this.encode(Z,X).ldelim()},W.decode=function(Z,X,q){if(!(Z instanceof I))Z=I.create(Z);var F=X===void 0?Z.len:Z.pos+X,H=new O.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;while(Z.pos<F){var N=Z.uint32();if(N===q)break;switch(N>>>3){case 1:{H.partialSuccess=O.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.decode(Z,Z.uint32());break}default:Z.skipType(N&7);break}}return H},W.decodeDelimited=function(Z){if(!(Z instanceof I))Z=new I(Z);return this.decode(Z,Z.uint32())},W.verify=function(Z){if(typeof Z!=="object"||Z===null)return"object expected";if(Z.partialSuccess!=null&&Z.hasOwnProperty("partialSuccess")){var X=O.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.verify(Z.partialSuccess);if(X)return"partialSuccess."+X}return null},W.fromObject=function(Z){if(Z instanceof O.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse)return Z;var X=new O.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;if(Z.partialSuccess!=null){if(typeof Z.partialSuccess!=="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse.partialSuccess: object expected");X.partialSuccess=O.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.fromObject(Z.partialSuccess)}return X},W.toObject=function(Z,X){if(!X)X={};var q={};if(X.defaults)q.partialSuccess=null;if(Z.partialSuccess!=null&&Z.hasOwnProperty("partialSuccess"))q.partialSuccess=O.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.toObject(Z.partialSuccess,X);return q},W.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},W.getTypeUrl=function(Z){if(Z===void 0)Z="type.googleapis.com";return Z+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse"},W}(),z.ExportTracePartialSuccess=function(){function W(J){if(J){for(var Z=Object.keys(J),X=0;X<Z.length;++X)if(J[Z[X]]!=null)this[Z[X]]=J[Z[X]]}}return W.prototype.rejectedSpans=null,W.prototype.errorMessage=null,W.create=function(Z){return new W(Z)},W.encode=function(Z,X){if(!X)X=w.create();if(Z.rejectedSpans!=null&&Object.hasOwnProperty.call(Z,"rejectedSpans"))X.uint32(8).int64(Z.rejectedSpans);if(Z.errorMessage!=null&&Object.hasOwnProperty.call(Z,"errorMessage"))X.uint32(18).string(Z.errorMessage);return X},W.encodeDelimited=function(Z,X){return this.encode(Z,X).ldelim()},W.decode=function(Z,X,q){if(!(Z instanceof I))Z=I.create(Z);var F=X===void 0?Z.len:Z.pos+X,H=new O.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;while(Z.pos<F){var N=Z.uint32();if(N===q)break;switch(N>>>3){case 1:{H.rejectedSpans=Z.int64();break}case 2:{H.errorMessage=Z.string();break}default:Z.skipType(N&7);break}}return H},W.decodeDelimited=function(Z){if(!(Z instanceof I))Z=new I(Z);return this.decode(Z,Z.uint32())},W.verify=function(Z){if(typeof Z!=="object"||Z===null)return"object expected";if(Z.rejectedSpans!=null&&Z.hasOwnProperty("rejectedSpans")){if(!B.isInteger(Z.rejectedSpans)&&!(Z.rejectedSpans&&B.isInteger(Z.rejectedSpans.low)&&B.isInteger(Z.rejectedSpans.high)))return"rejectedSpans: integer|Long expected"}if(Z.errorMessage!=null&&Z.hasOwnProperty("errorMessage")){if(!B.isString(Z.errorMessage))return"errorMessage: string expected"}return null},W.fromObject=function(Z){if(Z instanceof O.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess)return Z;var X=new O.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;if(Z.rejectedSpans!=null){if(B.Long)(X.rejectedSpans=B.Long.fromValue(Z.rejectedSpans)).unsigned=!1;else if(typeof Z.rejectedSpans==="string")X.rejectedSpans=parseInt(Z.rejectedSpans,10);else if(typeof Z.rejectedSpans==="number")X.rejectedSpans=Z.rejectedSpans;else if(typeof Z.rejectedSpans==="object")X.rejectedSpans=new B.LongBits(Z.rejectedSpans.low>>>0,Z.rejectedSpans.high>>>0).toNumber()}if(Z.errorMessage!=null)X.errorMessage=String(Z.errorMessage);return X},W.toObject=function(Z,X){if(!X)X={};var q={};if(X.defaults){if(B.Long){var F=new B.Long(0,0,!1);q.rejectedSpans=X.longs===String?F.toString():X.longs===Number?F.toNumber():F}else q.rejectedSpans=X.longs===String?"0":0;q.errorMessage=""}if(Z.rejectedSpans!=null&&Z.hasOwnProperty("rejectedSpans"))if(typeof Z.rejectedSpans==="number")q.rejectedSpans=X.longs===String?String(Z.rejectedSpans):Z.rejectedSpans;else q.rejectedSpans=X.longs===String?B.Long.prototype.toString.call(Z.rejectedSpans):X.longs===Number?new B.LongBits(Z.rejectedSpans.low>>>0,Z.rejectedSpans.high>>>0).toNumber():Z.rejectedSpans;if(Z.errorMessage!=null&&Z.hasOwnProperty("errorMessage"))q.errorMessage=Z.errorMessage;return q},W.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},W.getTypeUrl=function(Z){if(Z===void 0)Z="type.googleapis.com";return Z+"/opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess"},W}(),z}(),K}(),G.metrics=function(){var K={};return K.v1=function(){var z={};return z.MetricsService=function(){function W(J,Z,X){h.rpc.Service.call(this,J,Z,X)}return(W.prototype=Object.create(h.rpc.Service.prototype)).constructor=W,W.create=function(Z,X,q){return new this(Z,X,q)},Object.defineProperty(W.prototype.export=function J(Z,X){return this.rpcCall(J,O.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,O.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,Z,X)},"name",{value:"Export"}),W}(),z.ExportMetricsServiceRequest=function(){function W(J){if(this.resourceMetrics=[],J){for(var Z=Object.keys(J),X=0;X<Z.length;++X)if(J[Z[X]]!=null)this[Z[X]]=J[Z[X]]}}return W.prototype.resourceMetrics=B.emptyArray,W.create=function(Z){return new W(Z)},W.encode=function(Z,X){if(!X)X=w.create();if(Z.resourceMetrics!=null&&Z.resourceMetrics.length)for(var q=0;q<Z.resourceMetrics.length;++q)O.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(Z.resourceMetrics[q],X.uint32(10).fork()).ldelim();return X},W.encodeDelimited=function(Z,X){return this.encode(Z,X).ldelim()},W.decode=function(Z,X,q){if(!(Z instanceof I))Z=I.create(Z);var F=X===void 0?Z.len:Z.pos+X,H=new O.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;while(Z.pos<F){var N=Z.uint32();if(N===q)break;switch(N>>>3){case 1:{if(!(H.resourceMetrics&&H.resourceMetrics.length))H.resourceMetrics=[];H.resourceMetrics.push(O.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(Z,Z.uint32()));break}default:Z.skipType(N&7);break}}return H},W.decodeDelimited=function(Z){if(!(Z instanceof I))Z=new I(Z);return this.decode(Z,Z.uint32())},W.verify=function(Z){if(typeof Z!=="object"||Z===null)return"object expected";if(Z.resourceMetrics!=null&&Z.hasOwnProperty("resourceMetrics")){if(!Array.isArray(Z.resourceMetrics))return"resourceMetrics: array expected";for(var X=0;X<Z.resourceMetrics.length;++X){var q=O.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(Z.resourceMetrics[X]);if(q)return"resourceMetrics."+q}}return null},W.fromObject=function(Z){if(Z instanceof O.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest)return Z;var X=new O.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;if(Z.resourceMetrics){if(!Array.isArray(Z.resourceMetrics))throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: array expected");X.resourceMetrics=[];for(var q=0;q<Z.resourceMetrics.length;++q){if(typeof Z.resourceMetrics[q]!=="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: object expected");X.resourceMetrics[q]=O.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(Z.resourceMetrics[q])}}return X},W.toObject=function(Z,X){if(!X)X={};var q={};if(X.arrays||X.defaults)q.resourceMetrics=[];if(Z.resourceMetrics&&Z.resourceMetrics.length){q.resourceMetrics=[];for(var F=0;F<Z.resourceMetrics.length;++F)q.resourceMetrics[F]=O.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(Z.resourceMetrics[F],X)}return q},W.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},W.getTypeUrl=function(Z){if(Z===void 0)Z="type.googleapis.com";return Z+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest"},W}(),z.ExportMetricsServiceResponse=function(){function W(J){if(J){for(var Z=Object.keys(J),X=0;X<Z.length;++X)if(J[Z[X]]!=null)this[Z[X]]=J[Z[X]]}}return W.prototype.partialSuccess=null,W.create=function(Z){return new W(Z)},W.encode=function(Z,X){if(!X)X=w.create();if(Z.partialSuccess!=null&&Object.hasOwnProperty.call(Z,"partialSuccess"))O.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.encode(Z.partialSuccess,X.uint32(10).fork()).ldelim();return X},W.encodeDelimited=function(Z,X){return this.encode(Z,X).ldelim()},W.decode=function(Z,X,q){if(!(Z instanceof I))Z=I.create(Z);var F=X===void 0?Z.len:Z.pos+X,H=new O.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;while(Z.pos<F){var N=Z.uint32();if(N===q)break;switch(N>>>3){case 1:{H.partialSuccess=O.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.decode(Z,Z.uint32());break}default:Z.skipType(N&7);break}}return H},W.decodeDelimited=function(Z){if(!(Z instanceof I))Z=new I(Z);return this.decode(Z,Z.uint32())},W.verify=function(Z){if(typeof Z!=="object"||Z===null)return"object expected";if(Z.partialSuccess!=null&&Z.hasOwnProperty("partialSuccess")){var X=O.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.verify(Z.partialSuccess);if(X)return"partialSuccess."+X}return null},W.fromObject=function(Z){if(Z instanceof O.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse)return Z;var X=new O.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;if(Z.partialSuccess!=null){if(typeof Z.partialSuccess!=="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse.partialSuccess: object expected");X.partialSuccess=O.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.fromObject(Z.partialSuccess)}return X},W.toObject=function(Z,X){if(!X)X={};var q={};if(X.defaults)q.partialSuccess=null;if(Z.partialSuccess!=null&&Z.hasOwnProperty("partialSuccess"))q.partialSuccess=O.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.toObject(Z.partialSuccess,X);return q},W.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},W.getTypeUrl=function(Z){if(Z===void 0)Z="type.googleapis.com";return Z+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse"},W}(),z.ExportMetricsPartialSuccess=function(){function W(J){if(J){for(var Z=Object.keys(J),X=0;X<Z.length;++X)if(J[Z[X]]!=null)this[Z[X]]=J[Z[X]]}}return W.prototype.rejectedDataPoints=null,W.prototype.errorMessage=null,W.create=function(Z){return new W(Z)},W.encode=function(Z,X){if(!X)X=w.create();if(Z.rejectedDataPoints!=null&&Object.hasOwnProperty.call(Z,"rejectedDataPoints"))X.uint32(8).int64(Z.rejectedDataPoints);if(Z.errorMessage!=null&&Object.hasOwnProperty.call(Z,"errorMessage"))X.uint32(18).string(Z.errorMessage);return X},W.encodeDelimited=function(Z,X){return this.encode(Z,X).ldelim()},W.decode=function(Z,X,q){if(!(Z instanceof I))Z=I.create(Z);var F=X===void 0?Z.len:Z.pos+X,H=new O.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;while(Z.pos<F){var N=Z.uint32();if(N===q)break;switch(N>>>3){case 1:{H.rejectedDataPoints=Z.int64();break}case 2:{H.errorMessage=Z.string();break}default:Z.skipType(N&7);break}}return H},W.decodeDelimited=function(Z){if(!(Z instanceof I))Z=new I(Z);return this.decode(Z,Z.uint32())},W.verify=function(Z){if(typeof Z!=="object"||Z===null)return"object expected";if(Z.rejectedDataPoints!=null&&Z.hasOwnProperty("rejectedDataPoints")){if(!B.isInteger(Z.rejectedDataPoints)&&!(Z.rejectedDataPoints&&B.isInteger(Z.rejectedDataPoints.low)&&B.isInteger(Z.rejectedDataPoints.high)))return"rejectedDataPoints: integer|Long expected"}if(Z.errorMessage!=null&&Z.hasOwnProperty("errorMessage")){if(!B.isString(Z.errorMessage))return"errorMessage: string expected"}return null},W.fromObject=function(Z){if(Z instanceof O.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess)return Z;var X=new O.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;if(Z.rejectedDataPoints!=null){if(B.Long)(X.rejectedDataPoints=B.Long.fromValue(Z.rejectedDataPoints)).unsigned=!1;else if(typeof Z.rejectedDataPoints==="string")X.rejectedDataPoints=parseInt(Z.rejectedDataPoints,10);else if(typeof Z.rejectedDataPoints==="number")X.rejectedDataPoints=Z.rejectedDataPoints;else if(typeof Z.rejectedDataPoints==="object")X.rejectedDataPoints=new B.LongBits(Z.rejectedDataPoints.low>>>0,Z.rejectedDataPoints.high>>>0).toNumber()}if(Z.errorMessage!=null)X.errorMessage=String(Z.errorMessage);return X},W.toObject=function(Z,X){if(!X)X={};var q={};if(X.defaults){if(B.Long){var F=new B.Long(0,0,!1);q.rejectedDataPoints=X.longs===String?F.toString():X.longs===Number?F.toNumber():F}else q.rejectedDataPoints=X.longs===String?"0":0;q.errorMessage=""}if(Z.rejectedDataPoints!=null&&Z.hasOwnProperty("rejectedDataPoints"))if(typeof Z.rejectedDataPoints==="number")q.rejectedDataPoints=X.longs===String?String(Z.rejectedDataPoints):Z.rejectedDataPoints;else q.rejectedDataPoints=X.longs===String?B.Long.prototype.toString.call(Z.rejectedDataPoints):X.longs===Number?new B.LongBits(Z.rejectedDataPoints.low>>>0,Z.rejectedDataPoints.high>>>0).toNumber():Z.rejectedDataPoints;if(Z.errorMessage!=null&&Z.hasOwnProperty("errorMessage"))q.errorMessage=Z.errorMessage;return q},W.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},W.getTypeUrl=function(Z){if(Z===void 0)Z="type.googleapis.com";return Z+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess"},W}(),z}(),K}(),G.logs=function(){var K={};return K.v1=function(){var z={};return z.LogsService=function(){function W(J,Z,X){h.rpc.Service.call(this,J,Z,X)}return(W.prototype=Object.create(h.rpc.Service.prototype)).constructor=W,W.create=function(Z,X,q){return new this(Z,X,q)},Object.defineProperty(W.prototype.export=function J(Z,X){return this.rpcCall(J,O.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,O.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,Z,X)},"name",{value:"Export"}),W}(),z.ExportLogsServiceRequest=function(){function W(J){if(this.resourceLogs=[],J){for(var Z=Object.keys(J),X=0;X<Z.length;++X)if(J[Z[X]]!=null)this[Z[X]]=J[Z[X]]}}return W.prototype.resourceLogs=B.emptyArray,W.create=function(Z){return new W(Z)},W.encode=function(Z,X){if(!X)X=w.create();if(Z.resourceLogs!=null&&Z.resourceLogs.length)for(var q=0;q<Z.resourceLogs.length;++q)O.opentelemetry.proto.logs.v1.ResourceLogs.encode(Z.resourceLogs[q],X.uint32(10).fork()).ldelim();return X},W.encodeDelimited=function(Z,X){return this.encode(Z,X).ldelim()},W.decode=function(Z,X,q){if(!(Z instanceof I))Z=I.create(Z);var F=X===void 0?Z.len:Z.pos+X,H=new O.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;while(Z.pos<F){var N=Z.uint32();if(N===q)break;switch(N>>>3){case 1:{if(!(H.resourceLogs&&H.resourceLogs.length))H.resourceLogs=[];H.resourceLogs.push(O.opentelemetry.proto.logs.v1.ResourceLogs.decode(Z,Z.uint32()));break}default:Z.skipType(N&7);break}}return H},W.decodeDelimited=function(Z){if(!(Z instanceof I))Z=new I(Z);return this.decode(Z,Z.uint32())},W.verify=function(Z){if(typeof Z!=="object"||Z===null)return"object expected";if(Z.resourceLogs!=null&&Z.hasOwnProperty("resourceLogs")){if(!Array.isArray(Z.resourceLogs))return"resourceLogs: array expected";for(var X=0;X<Z.resourceLogs.length;++X){var q=O.opentelemetry.proto.logs.v1.ResourceLogs.verify(Z.resourceLogs[X]);if(q)return"resourceLogs."+q}}return null},W.fromObject=function(Z){if(Z instanceof O.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest)return Z;var X=new O.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;if(Z.resourceLogs){if(!Array.isArray(Z.resourceLogs))throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: array expected");X.resourceLogs=[];for(var q=0;q<Z.resourceLogs.length;++q){if(typeof Z.resourceLogs[q]!=="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: object expected");X.resourceLogs[q]=O.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(Z.resourceLogs[q])}}return X},W.toObject=function(Z,X){if(!X)X={};var q={};if(X.arrays||X.defaults)q.resourceLogs=[];if(Z.resourceLogs&&Z.resourceLogs.length){q.resourceLogs=[];for(var F=0;F<Z.resourceLogs.length;++F)q.resourceLogs[F]=O.opentelemetry.proto.logs.v1.ResourceLogs.toObject(Z.resourceLogs[F],X)}return q},W.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},W.getTypeUrl=function(Z){if(Z===void 0)Z="type.googleapis.com";return Z+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest"},W}(),z.ExportLogsServiceResponse=function(){function W(J){if(J){for(var Z=Object.keys(J),X=0;X<Z.length;++X)if(J[Z[X]]!=null)this[Z[X]]=J[Z[X]]}}return W.prototype.partialSuccess=null,W.create=function(Z){return new W(Z)},W.encode=function(Z,X){if(!X)X=w.create();if(Z.partialSuccess!=null&&Object.hasOwnProperty.call(Z,"partialSuccess"))O.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.encode(Z.partialSuccess,X.uint32(10).fork()).ldelim();return X},W.encodeDelimited=function(Z,X){return this.encode(Z,X).ldelim()},W.decode=function(Z,X,q){if(!(Z instanceof I))Z=I.create(Z);var F=X===void 0?Z.len:Z.pos+X,H=new O.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;while(Z.pos<F){var N=Z.uint32();if(N===q)break;switch(N>>>3){case 1:{H.partialSuccess=O.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.decode(Z,Z.uint32());break}default:Z.skipType(N&7);break}}return H},W.decodeDelimited=function(Z){if(!(Z instanceof I))Z=new I(Z);return this.decode(Z,Z.uint32())},W.verify=function(Z){if(typeof Z!=="object"||Z===null)return"object expected";if(Z.partialSuccess!=null&&Z.hasOwnProperty("partialSuccess")){var X=O.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.verify(Z.partialSuccess);if(X)return"partialSuccess."+X}return null},W.fromObject=function(Z){if(Z instanceof O.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse)return Z;var X=new O.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;if(Z.partialSuccess!=null){if(typeof Z.partialSuccess!=="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse.partialSuccess: object expected");X.partialSuccess=O.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.fromObject(Z.partialSuccess)}return X},W.toObject=function(Z,X){if(!X)X={};var q={};if(X.defaults)q.partialSuccess=null;if(Z.partialSuccess!=null&&Z.hasOwnProperty("partialSuccess"))q.partialSuccess=O.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.toObject(Z.partialSuccess,X);return q},W.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},W.getTypeUrl=function(Z){if(Z===void 0)Z="type.googleapis.com";return Z+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse"},W}(),z.ExportLogsPartialSuccess=function(){function W(J){if(J){for(var Z=Object.keys(J),X=0;X<Z.length;++X)if(J[Z[X]]!=null)this[Z[X]]=J[Z[X]]}}return W.prototype.rejectedLogRecords=null,W.prototype.errorMessage=null,W.create=function(Z){return new W(Z)},W.encode=function(Z,X){if(!X)X=w.create();if(Z.rejectedLogRecords!=null&&Object.hasOwnProperty.call(Z,"rejectedLogRecords"))X.uint32(8).int64(Z.rejectedLogRecords);if(Z.errorMessage!=null&&Object.hasOwnProperty.call(Z,"errorMessage"))X.uint32(18).string(Z.errorMessage);return X},W.encodeDelimited=function(Z,X){return this.encode(Z,X).ldelim()},W.decode=function(Z,X,q){if(!(Z instanceof I))Z=I.create(Z);var F=X===void 0?Z.len:Z.pos+X,H=new O.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;while(Z.pos<F){var N=Z.uint32();if(N===q)break;switch(N>>>3){case 1:{H.rejectedLogRecords=Z.int64();break}case 2:{H.errorMessage=Z.string();break}default:Z.skipType(N&7);break}}return H},W.decodeDelimited=function(Z){if(!(Z instanceof I))Z=new I(Z);return this.decode(Z,Z.uint32())},W.verify=function(Z){if(typeof Z!=="object"||Z===null)return"object expected";if(Z.rejectedLogRecords!=null&&Z.hasOwnProperty("rejectedLogRecords")){if(!B.isInteger(Z.rejectedLogRecords)&&!(Z.rejectedLogRecords&&B.isInteger(Z.rejectedLogRecords.low)&&B.isInteger(Z.rejectedLogRecords.high)))return"rejectedLogRecords: integer|Long expected"}if(Z.errorMessage!=null&&Z.hasOwnProperty("errorMessage")){if(!B.isString(Z.errorMessage))return"errorMessage: string expected"}return null},W.fromObject=function(Z){if(Z instanceof O.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess)return Z;var X=new O.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;if(Z.rejectedLogRecords!=null){if(B.Long)(X.rejectedLogRecords=B.Long.fromValue(Z.rejectedLogRecords)).unsigned=!1;else if(typeof Z.rejectedLogRecords==="string")X.rejectedLogRecords=parseInt(Z.rejectedLogRecords,10);else if(typeof Z.rejectedLogRecords==="number")X.rejectedLogRecords=Z.rejectedLogRecords;else if(typeof Z.rejectedLogRecords==="object")X.rejectedLogRecords=new B.LongBits(Z.rejectedLogRecords.low>>>0,Z.rejectedLogRecords.high>>>0).toNumber()}if(Z.errorMessage!=null)X.errorMessage=String(Z.errorMessage);return X},W.toObject=function(Z,X){if(!X)X={};var q={};if(X.defaults){if(B.Long){var F=new B.Long(0,0,!1);q.rejectedLogRecords=X.longs===String?F.toString():X.longs===Number?F.toNumber():F}else q.rejectedLogRecords=X.longs===String?"0":0;q.errorMessage=""}if(Z.rejectedLogRecords!=null&&Z.hasOwnProperty("rejectedLogRecords"))if(typeof Z.rejectedLogRecords==="number")q.rejectedLogRecords=X.longs===String?String(Z.rejectedLogRecords):Z.rejectedLogRecords;else q.rejectedLogRecords=X.longs===String?B.Long.prototype.toString.call(Z.rejectedLogRecords):X.longs===Number?new B.LongBits(Z.rejectedLogRecords.low>>>0,Z.rejectedLogRecords.high>>>0).toNumber():Z.rejectedLogRecords;if(Z.errorMessage!=null&&Z.hasOwnProperty("errorMessage"))q.errorMessage=Z.errorMessage;return q},W.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},W.getTypeUrl=function(Z){if(Z===void 0)Z="type.googleapis.com";return Z+"/opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess"},W}(),z}(),K}(),G}(),Y.metrics=function(){var G={};return G.v1=function(){var K={};return K.MetricsData=function(){function z(W){if(this.resourceMetrics=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.resourceMetrics=B.emptyArray,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.resourceMetrics!=null&&J.resourceMetrics.length)for(var X=0;X<J.resourceMetrics.length;++X)O.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(J.resourceMetrics[X],Z.uint32(10).fork()).ldelim();return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.metrics.v1.MetricsData;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{if(!(F.resourceMetrics&&F.resourceMetrics.length))F.resourceMetrics=[];F.resourceMetrics.push(O.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(J,J.uint32()));break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.resourceMetrics!=null&&J.hasOwnProperty("resourceMetrics")){if(!Array.isArray(J.resourceMetrics))return"resourceMetrics: array expected";for(var Z=0;Z<J.resourceMetrics.length;++Z){var X=O.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(J.resourceMetrics[Z]);if(X)return"resourceMetrics."+X}}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.metrics.v1.MetricsData)return J;var Z=new O.opentelemetry.proto.metrics.v1.MetricsData;if(J.resourceMetrics){if(!Array.isArray(J.resourceMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: array expected");Z.resourceMetrics=[];for(var X=0;X<J.resourceMetrics.length;++X){if(typeof J.resourceMetrics[X]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: object expected");Z.resourceMetrics[X]=O.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(J.resourceMetrics[X])}}return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.resourceMetrics=[];if(J.resourceMetrics&&J.resourceMetrics.length){X.resourceMetrics=[];for(var q=0;q<J.resourceMetrics.length;++q)X.resourceMetrics[q]=O.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(J.resourceMetrics[q],Z)}return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.metrics.v1.MetricsData"},z}(),K.ResourceMetrics=function(){function z(W){if(this.scopeMetrics=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.resource=null,z.prototype.scopeMetrics=B.emptyArray,z.prototype.schemaUrl=null,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.resource!=null&&Object.hasOwnProperty.call(J,"resource"))O.opentelemetry.proto.resource.v1.Resource.encode(J.resource,Z.uint32(10).fork()).ldelim();if(J.scopeMetrics!=null&&J.scopeMetrics.length)for(var X=0;X<J.scopeMetrics.length;++X)O.opentelemetry.proto.metrics.v1.ScopeMetrics.encode(J.scopeMetrics[X],Z.uint32(18).fork()).ldelim();if(J.schemaUrl!=null&&Object.hasOwnProperty.call(J,"schemaUrl"))Z.uint32(26).string(J.schemaUrl);return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.metrics.v1.ResourceMetrics;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{F.resource=O.opentelemetry.proto.resource.v1.Resource.decode(J,J.uint32());break}case 2:{if(!(F.scopeMetrics&&F.scopeMetrics.length))F.scopeMetrics=[];F.scopeMetrics.push(O.opentelemetry.proto.metrics.v1.ScopeMetrics.decode(J,J.uint32()));break}case 3:{F.schemaUrl=J.string();break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.resource!=null&&J.hasOwnProperty("resource")){var Z=O.opentelemetry.proto.resource.v1.Resource.verify(J.resource);if(Z)return"resource."+Z}if(J.scopeMetrics!=null&&J.hasOwnProperty("scopeMetrics")){if(!Array.isArray(J.scopeMetrics))return"scopeMetrics: array expected";for(var X=0;X<J.scopeMetrics.length;++X){var Z=O.opentelemetry.proto.metrics.v1.ScopeMetrics.verify(J.scopeMetrics[X]);if(Z)return"scopeMetrics."+Z}}if(J.schemaUrl!=null&&J.hasOwnProperty("schemaUrl")){if(!B.isString(J.schemaUrl))return"schemaUrl: string expected"}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.metrics.v1.ResourceMetrics)return J;var Z=new O.opentelemetry.proto.metrics.v1.ResourceMetrics;if(J.resource!=null){if(typeof J.resource!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.resource: object expected");Z.resource=O.opentelemetry.proto.resource.v1.Resource.fromObject(J.resource)}if(J.scopeMetrics){if(!Array.isArray(J.scopeMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: array expected");Z.scopeMetrics=[];for(var X=0;X<J.scopeMetrics.length;++X){if(typeof J.scopeMetrics[X]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: object expected");Z.scopeMetrics[X]=O.opentelemetry.proto.metrics.v1.ScopeMetrics.fromObject(J.scopeMetrics[X])}}if(J.schemaUrl!=null)Z.schemaUrl=String(J.schemaUrl);return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.scopeMetrics=[];if(Z.defaults)X.resource=null,X.schemaUrl="";if(J.resource!=null&&J.hasOwnProperty("resource"))X.resource=O.opentelemetry.proto.resource.v1.Resource.toObject(J.resource,Z);if(J.scopeMetrics&&J.scopeMetrics.length){X.scopeMetrics=[];for(var q=0;q<J.scopeMetrics.length;++q)X.scopeMetrics[q]=O.opentelemetry.proto.metrics.v1.ScopeMetrics.toObject(J.scopeMetrics[q],Z)}if(J.schemaUrl!=null&&J.hasOwnProperty("schemaUrl"))X.schemaUrl=J.schemaUrl;return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.metrics.v1.ResourceMetrics"},z}(),K.ScopeMetrics=function(){function z(W){if(this.metrics=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.scope=null,z.prototype.metrics=B.emptyArray,z.prototype.schemaUrl=null,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.scope!=null&&Object.hasOwnProperty.call(J,"scope"))O.opentelemetry.proto.common.v1.InstrumentationScope.encode(J.scope,Z.uint32(10).fork()).ldelim();if(J.metrics!=null&&J.metrics.length)for(var X=0;X<J.metrics.length;++X)O.opentelemetry.proto.metrics.v1.Metric.encode(J.metrics[X],Z.uint32(18).fork()).ldelim();if(J.schemaUrl!=null&&Object.hasOwnProperty.call(J,"schemaUrl"))Z.uint32(26).string(J.schemaUrl);return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.metrics.v1.ScopeMetrics;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{F.scope=O.opentelemetry.proto.common.v1.InstrumentationScope.decode(J,J.uint32());break}case 2:{if(!(F.metrics&&F.metrics.length))F.metrics=[];F.metrics.push(O.opentelemetry.proto.metrics.v1.Metric.decode(J,J.uint32()));break}case 3:{F.schemaUrl=J.string();break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.scope!=null&&J.hasOwnProperty("scope")){var Z=O.opentelemetry.proto.common.v1.InstrumentationScope.verify(J.scope);if(Z)return"scope."+Z}if(J.metrics!=null&&J.hasOwnProperty("metrics")){if(!Array.isArray(J.metrics))return"metrics: array expected";for(var X=0;X<J.metrics.length;++X){var Z=O.opentelemetry.proto.metrics.v1.Metric.verify(J.metrics[X]);if(Z)return"metrics."+Z}}if(J.schemaUrl!=null&&J.hasOwnProperty("schemaUrl")){if(!B.isString(J.schemaUrl))return"schemaUrl: string expected"}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.metrics.v1.ScopeMetrics)return J;var Z=new O.opentelemetry.proto.metrics.v1.ScopeMetrics;if(J.scope!=null){if(typeof J.scope!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.scope: object expected");Z.scope=O.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(J.scope)}if(J.metrics){if(!Array.isArray(J.metrics))throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: array expected");Z.metrics=[];for(var X=0;X<J.metrics.length;++X){if(typeof J.metrics[X]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: object expected");Z.metrics[X]=O.opentelemetry.proto.metrics.v1.Metric.fromObject(J.metrics[X])}}if(J.schemaUrl!=null)Z.schemaUrl=String(J.schemaUrl);return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.metrics=[];if(Z.defaults)X.scope=null,X.schemaUrl="";if(J.scope!=null&&J.hasOwnProperty("scope"))X.scope=O.opentelemetry.proto.common.v1.InstrumentationScope.toObject(J.scope,Z);if(J.metrics&&J.metrics.length){X.metrics=[];for(var q=0;q<J.metrics.length;++q)X.metrics[q]=O.opentelemetry.proto.metrics.v1.Metric.toObject(J.metrics[q],Z)}if(J.schemaUrl!=null&&J.hasOwnProperty("schemaUrl"))X.schemaUrl=J.schemaUrl;return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.metrics.v1.ScopeMetrics"},z}(),K.Metric=function(){function z(J){if(this.metadata=[],J){for(var Z=Object.keys(J),X=0;X<Z.length;++X)if(J[Z[X]]!=null)this[Z[X]]=J[Z[X]]}}z.prototype.name=null,z.prototype.description=null,z.prototype.unit=null,z.prototype.gauge=null,z.prototype.sum=null,z.prototype.histogram=null,z.prototype.exponentialHistogram=null,z.prototype.summary=null,z.prototype.metadata=B.emptyArray;var W;return Object.defineProperty(z.prototype,"data",{get:B.oneOfGetter(W=["gauge","sum","histogram","exponentialHistogram","summary"]),set:B.oneOfSetter(W)}),z.create=function(Z){return new z(Z)},z.encode=function(Z,X){if(!X)X=w.create();if(Z.name!=null&&Object.hasOwnProperty.call(Z,"name"))X.uint32(10).string(Z.name);if(Z.description!=null&&Object.hasOwnProperty.call(Z,"description"))X.uint32(18).string(Z.description);if(Z.unit!=null&&Object.hasOwnProperty.call(Z,"unit"))X.uint32(26).string(Z.unit);if(Z.gauge!=null&&Object.hasOwnProperty.call(Z,"gauge"))O.opentelemetry.proto.metrics.v1.Gauge.encode(Z.gauge,X.uint32(42).fork()).ldelim();if(Z.sum!=null&&Object.hasOwnProperty.call(Z,"sum"))O.opentelemetry.proto.metrics.v1.Sum.encode(Z.sum,X.uint32(58).fork()).ldelim();if(Z.histogram!=null&&Object.hasOwnProperty.call(Z,"histogram"))O.opentelemetry.proto.metrics.v1.Histogram.encode(Z.histogram,X.uint32(74).fork()).ldelim();if(Z.exponentialHistogram!=null&&Object.hasOwnProperty.call(Z,"exponentialHistogram"))O.opentelemetry.proto.metrics.v1.ExponentialHistogram.encode(Z.exponentialHistogram,X.uint32(82).fork()).ldelim();if(Z.summary!=null&&Object.hasOwnProperty.call(Z,"summary"))O.opentelemetry.proto.metrics.v1.Summary.encode(Z.summary,X.uint32(90).fork()).ldelim();if(Z.metadata!=null&&Z.metadata.length)for(var q=0;q<Z.metadata.length;++q)O.opentelemetry.proto.common.v1.KeyValue.encode(Z.metadata[q],X.uint32(98).fork()).ldelim();return X},z.encodeDelimited=function(Z,X){return this.encode(Z,X).ldelim()},z.decode=function(Z,X,q){if(!(Z instanceof I))Z=I.create(Z);var F=X===void 0?Z.len:Z.pos+X,H=new O.opentelemetry.proto.metrics.v1.Metric;while(Z.pos<F){var N=Z.uint32();if(N===q)break;switch(N>>>3){case 1:{H.name=Z.string();break}case 2:{H.description=Z.string();break}case 3:{H.unit=Z.string();break}case 5:{H.gauge=O.opentelemetry.proto.metrics.v1.Gauge.decode(Z,Z.uint32());break}case 7:{H.sum=O.opentelemetry.proto.metrics.v1.Sum.decode(Z,Z.uint32());break}case 9:{H.histogram=O.opentelemetry.proto.metrics.v1.Histogram.decode(Z,Z.uint32());break}case 10:{H.exponentialHistogram=O.opentelemetry.proto.metrics.v1.ExponentialHistogram.decode(Z,Z.uint32());break}case 11:{H.summary=O.opentelemetry.proto.metrics.v1.Summary.decode(Z,Z.uint32());break}case 12:{if(!(H.metadata&&H.metadata.length))H.metadata=[];H.metadata.push(O.opentelemetry.proto.common.v1.KeyValue.decode(Z,Z.uint32()));break}default:Z.skipType(N&7);break}}return H},z.decodeDelimited=function(Z){if(!(Z instanceof I))Z=new I(Z);return this.decode(Z,Z.uint32())},z.verify=function(Z){if(typeof Z!=="object"||Z===null)return"object expected";var X={};if(Z.name!=null&&Z.hasOwnProperty("name")){if(!B.isString(Z.name))return"name: string expected"}if(Z.description!=null&&Z.hasOwnProperty("description")){if(!B.isString(Z.description))return"description: string expected"}if(Z.unit!=null&&Z.hasOwnProperty("unit")){if(!B.isString(Z.unit))return"unit: string expected"}if(Z.gauge!=null&&Z.hasOwnProperty("gauge")){X.data=1;{var q=O.opentelemetry.proto.metrics.v1.Gauge.verify(Z.gauge);if(q)return"gauge."+q}}if(Z.sum!=null&&Z.hasOwnProperty("sum")){if(X.data===1)return"data: multiple values";X.data=1;{var q=O.opentelemetry.proto.metrics.v1.Sum.verify(Z.sum);if(q)return"sum."+q}}if(Z.histogram!=null&&Z.hasOwnProperty("histogram")){if(X.data===1)return"data: multiple values";X.data=1;{var q=O.opentelemetry.proto.metrics.v1.Histogram.verify(Z.histogram);if(q)return"histogram."+q}}if(Z.exponentialHistogram!=null&&Z.hasOwnProperty("exponentialHistogram")){if(X.data===1)return"data: multiple values";X.data=1;{var q=O.opentelemetry.proto.metrics.v1.ExponentialHistogram.verify(Z.exponentialHistogram);if(q)return"exponentialHistogram."+q}}if(Z.summary!=null&&Z.hasOwnProperty("summary")){if(X.data===1)return"data: multiple values";X.data=1;{var q=O.opentelemetry.proto.metrics.v1.Summary.verify(Z.summary);if(q)return"summary."+q}}if(Z.metadata!=null&&Z.hasOwnProperty("metadata")){if(!Array.isArray(Z.metadata))return"metadata: array expected";for(var F=0;F<Z.metadata.length;++F){var q=O.opentelemetry.proto.common.v1.KeyValue.verify(Z.metadata[F]);if(q)return"metadata."+q}}return null},z.fromObject=function(Z){if(Z instanceof O.opentelemetry.proto.metrics.v1.Metric)return Z;var X=new O.opentelemetry.proto.metrics.v1.Metric;if(Z.name!=null)X.name=String(Z.name);if(Z.description!=null)X.description=String(Z.description);if(Z.unit!=null)X.unit=String(Z.unit);if(Z.gauge!=null){if(typeof Z.gauge!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.gauge: object expected");X.gauge=O.opentelemetry.proto.metrics.v1.Gauge.fromObject(Z.gauge)}if(Z.sum!=null){if(typeof Z.sum!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.sum: object expected");X.sum=O.opentelemetry.proto.metrics.v1.Sum.fromObject(Z.sum)}if(Z.histogram!=null){if(typeof Z.histogram!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.histogram: object expected");X.histogram=O.opentelemetry.proto.metrics.v1.Histogram.fromObject(Z.histogram)}if(Z.exponentialHistogram!=null){if(typeof Z.exponentialHistogram!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.exponentialHistogram: object expected");X.exponentialHistogram=O.opentelemetry.proto.metrics.v1.ExponentialHistogram.fromObject(Z.exponentialHistogram)}if(Z.summary!=null){if(typeof Z.summary!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.summary: object expected");X.summary=O.opentelemetry.proto.metrics.v1.Summary.fromObject(Z.summary)}if(Z.metadata){if(!Array.isArray(Z.metadata))throw TypeError(".opentelemetry.proto.metrics.v1.Metric.metadata: array expected");X.metadata=[];for(var q=0;q<Z.metadata.length;++q){if(typeof Z.metadata[q]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.metadata: object expected");X.metadata[q]=O.opentelemetry.proto.common.v1.KeyValue.fromObject(Z.metadata[q])}}return X},z.toObject=function(Z,X){if(!X)X={};var q={};if(X.arrays||X.defaults)q.metadata=[];if(X.defaults)q.name="",q.description="",q.unit="";if(Z.name!=null&&Z.hasOwnProperty("name"))q.name=Z.name;if(Z.description!=null&&Z.hasOwnProperty("description"))q.description=Z.description;if(Z.unit!=null&&Z.hasOwnProperty("unit"))q.unit=Z.unit;if(Z.gauge!=null&&Z.hasOwnProperty("gauge")){if(q.gauge=O.opentelemetry.proto.metrics.v1.Gauge.toObject(Z.gauge,X),X.oneofs)q.data="gauge"}if(Z.sum!=null&&Z.hasOwnProperty("sum")){if(q.sum=O.opentelemetry.proto.metrics.v1.Sum.toObject(Z.sum,X),X.oneofs)q.data="sum"}if(Z.histogram!=null&&Z.hasOwnProperty("histogram")){if(q.histogram=O.opentelemetry.proto.metrics.v1.Histogram.toObject(Z.histogram,X),X.oneofs)q.data="histogram"}if(Z.exponentialHistogram!=null&&Z.hasOwnProperty("exponentialHistogram")){if(q.exponentialHistogram=O.opentelemetry.proto.metrics.v1.ExponentialHistogram.toObject(Z.exponentialHistogram,X),X.oneofs)q.data="exponentialHistogram"}if(Z.summary!=null&&Z.hasOwnProperty("summary")){if(q.summary=O.opentelemetry.proto.metrics.v1.Summary.toObject(Z.summary,X),X.oneofs)q.data="summary"}if(Z.metadata&&Z.metadata.length){q.metadata=[];for(var F=0;F<Z.metadata.length;++F)q.metadata[F]=O.opentelemetry.proto.common.v1.KeyValue.toObject(Z.metadata[F],X)}return q},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(Z){if(Z===void 0)Z="type.googleapis.com";return Z+"/opentelemetry.proto.metrics.v1.Metric"},z}(),K.Gauge=function(){function z(W){if(this.dataPoints=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.dataPoints=B.emptyArray,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.dataPoints!=null&&J.dataPoints.length)for(var X=0;X<J.dataPoints.length;++X)O.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(J.dataPoints[X],Z.uint32(10).fork()).ldelim();return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.metrics.v1.Gauge;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{if(!(F.dataPoints&&F.dataPoints.length))F.dataPoints=[];F.dataPoints.push(O.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(J,J.uint32()));break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.dataPoints!=null&&J.hasOwnProperty("dataPoints")){if(!Array.isArray(J.dataPoints))return"dataPoints: array expected";for(var Z=0;Z<J.dataPoints.length;++Z){var X=O.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(J.dataPoints[Z]);if(X)return"dataPoints."+X}}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.metrics.v1.Gauge)return J;var Z=new O.opentelemetry.proto.metrics.v1.Gauge;if(J.dataPoints){if(!Array.isArray(J.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: array expected");Z.dataPoints=[];for(var X=0;X<J.dataPoints.length;++X){if(typeof J.dataPoints[X]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: object expected");Z.dataPoints[X]=O.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(J.dataPoints[X])}}return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.dataPoints=[];if(J.dataPoints&&J.dataPoints.length){X.dataPoints=[];for(var q=0;q<J.dataPoints.length;++q)X.dataPoints[q]=O.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(J.dataPoints[q],Z)}return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.metrics.v1.Gauge"},z}(),K.Sum=function(){function z(W){if(this.dataPoints=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.dataPoints=B.emptyArray,z.prototype.aggregationTemporality=null,z.prototype.isMonotonic=null,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.dataPoints!=null&&J.dataPoints.length)for(var X=0;X<J.dataPoints.length;++X)O.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(J.dataPoints[X],Z.uint32(10).fork()).ldelim();if(J.aggregationTemporality!=null&&Object.hasOwnProperty.call(J,"aggregationTemporality"))Z.uint32(16).int32(J.aggregationTemporality);if(J.isMonotonic!=null&&Object.hasOwnProperty.call(J,"isMonotonic"))Z.uint32(24).bool(J.isMonotonic);return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.metrics.v1.Sum;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{if(!(F.dataPoints&&F.dataPoints.length))F.dataPoints=[];F.dataPoints.push(O.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(J,J.uint32()));break}case 2:{F.aggregationTemporality=J.int32();break}case 3:{F.isMonotonic=J.bool();break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.dataPoints!=null&&J.hasOwnProperty("dataPoints")){if(!Array.isArray(J.dataPoints))return"dataPoints: array expected";for(var Z=0;Z<J.dataPoints.length;++Z){var X=O.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(J.dataPoints[Z]);if(X)return"dataPoints."+X}}if(J.aggregationTemporality!=null&&J.hasOwnProperty("aggregationTemporality"))switch(J.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}if(J.isMonotonic!=null&&J.hasOwnProperty("isMonotonic")){if(typeof J.isMonotonic!=="boolean")return"isMonotonic: boolean expected"}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.metrics.v1.Sum)return J;var Z=new O.opentelemetry.proto.metrics.v1.Sum;if(J.dataPoints){if(!Array.isArray(J.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: array expected");Z.dataPoints=[];for(var X=0;X<J.dataPoints.length;++X){if(typeof J.dataPoints[X]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: object expected");Z.dataPoints[X]=O.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(J.dataPoints[X])}}switch(J.aggregationTemporality){default:if(typeof J.aggregationTemporality==="number"){Z.aggregationTemporality=J.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:Z.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:Z.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:Z.aggregationTemporality=2;break}if(J.isMonotonic!=null)Z.isMonotonic=Boolean(J.isMonotonic);return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.dataPoints=[];if(Z.defaults)X.aggregationTemporality=Z.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0,X.isMonotonic=!1;if(J.dataPoints&&J.dataPoints.length){X.dataPoints=[];for(var q=0;q<J.dataPoints.length;++q)X.dataPoints[q]=O.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(J.dataPoints[q],Z)}if(J.aggregationTemporality!=null&&J.hasOwnProperty("aggregationTemporality"))X.aggregationTemporality=Z.enums===String?O.opentelemetry.proto.metrics.v1.AggregationTemporality[J.aggregationTemporality]===void 0?J.aggregationTemporality:O.opentelemetry.proto.metrics.v1.AggregationTemporality[J.aggregationTemporality]:J.aggregationTemporality;if(J.isMonotonic!=null&&J.hasOwnProperty("isMonotonic"))X.isMonotonic=J.isMonotonic;return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.metrics.v1.Sum"},z}(),K.Histogram=function(){function z(W){if(this.dataPoints=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.dataPoints=B.emptyArray,z.prototype.aggregationTemporality=null,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.dataPoints!=null&&J.dataPoints.length)for(var X=0;X<J.dataPoints.length;++X)O.opentelemetry.proto.metrics.v1.HistogramDataPoint.encode(J.dataPoints[X],Z.uint32(10).fork()).ldelim();if(J.aggregationTemporality!=null&&Object.hasOwnProperty.call(J,"aggregationTemporality"))Z.uint32(16).int32(J.aggregationTemporality);return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.metrics.v1.Histogram;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{if(!(F.dataPoints&&F.dataPoints.length))F.dataPoints=[];F.dataPoints.push(O.opentelemetry.proto.metrics.v1.HistogramDataPoint.decode(J,J.uint32()));break}case 2:{F.aggregationTemporality=J.int32();break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.dataPoints!=null&&J.hasOwnProperty("dataPoints")){if(!Array.isArray(J.dataPoints))return"dataPoints: array expected";for(var Z=0;Z<J.dataPoints.length;++Z){var X=O.opentelemetry.proto.metrics.v1.HistogramDataPoint.verify(J.dataPoints[Z]);if(X)return"dataPoints."+X}}if(J.aggregationTemporality!=null&&J.hasOwnProperty("aggregationTemporality"))switch(J.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.metrics.v1.Histogram)return J;var Z=new O.opentelemetry.proto.metrics.v1.Histogram;if(J.dataPoints){if(!Array.isArray(J.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: array expected");Z.dataPoints=[];for(var X=0;X<J.dataPoints.length;++X){if(typeof J.dataPoints[X]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: object expected");Z.dataPoints[X]=O.opentelemetry.proto.metrics.v1.HistogramDataPoint.fromObject(J.dataPoints[X])}}switch(J.aggregationTemporality){default:if(typeof J.aggregationTemporality==="number"){Z.aggregationTemporality=J.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:Z.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:Z.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:Z.aggregationTemporality=2;break}return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.dataPoints=[];if(Z.defaults)X.aggregationTemporality=Z.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0;if(J.dataPoints&&J.dataPoints.length){X.dataPoints=[];for(var q=0;q<J.dataPoints.length;++q)X.dataPoints[q]=O.opentelemetry.proto.metrics.v1.HistogramDataPoint.toObject(J.dataPoints[q],Z)}if(J.aggregationTemporality!=null&&J.hasOwnProperty("aggregationTemporality"))X.aggregationTemporality=Z.enums===String?O.opentelemetry.proto.metrics.v1.AggregationTemporality[J.aggregationTemporality]===void 0?J.aggregationTemporality:O.opentelemetry.proto.metrics.v1.AggregationTemporality[J.aggregationTemporality]:J.aggregationTemporality;return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.metrics.v1.Histogram"},z}(),K.ExponentialHistogram=function(){function z(W){if(this.dataPoints=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.dataPoints=B.emptyArray,z.prototype.aggregationTemporality=null,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.dataPoints!=null&&J.dataPoints.length)for(var X=0;X<J.dataPoints.length;++X)O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.encode(J.dataPoints[X],Z.uint32(10).fork()).ldelim();if(J.aggregationTemporality!=null&&Object.hasOwnProperty.call(J,"aggregationTemporality"))Z.uint32(16).int32(J.aggregationTemporality);return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.metrics.v1.ExponentialHistogram;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{if(!(F.dataPoints&&F.dataPoints.length))F.dataPoints=[];F.dataPoints.push(O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.decode(J,J.uint32()));break}case 2:{F.aggregationTemporality=J.int32();break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.dataPoints!=null&&J.hasOwnProperty("dataPoints")){if(!Array.isArray(J.dataPoints))return"dataPoints: array expected";for(var Z=0;Z<J.dataPoints.length;++Z){var X=O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.verify(J.dataPoints[Z]);if(X)return"dataPoints."+X}}if(J.aggregationTemporality!=null&&J.hasOwnProperty("aggregationTemporality"))switch(J.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.metrics.v1.ExponentialHistogram)return J;var Z=new O.opentelemetry.proto.metrics.v1.ExponentialHistogram;if(J.dataPoints){if(!Array.isArray(J.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: array expected");Z.dataPoints=[];for(var X=0;X<J.dataPoints.length;++X){if(typeof J.dataPoints[X]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: object expected");Z.dataPoints[X]=O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.fromObject(J.dataPoints[X])}}switch(J.aggregationTemporality){default:if(typeof J.aggregationTemporality==="number"){Z.aggregationTemporality=J.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:Z.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:Z.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:Z.aggregationTemporality=2;break}return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.dataPoints=[];if(Z.defaults)X.aggregationTemporality=Z.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0;if(J.dataPoints&&J.dataPoints.length){X.dataPoints=[];for(var q=0;q<J.dataPoints.length;++q)X.dataPoints[q]=O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.toObject(J.dataPoints[q],Z)}if(J.aggregationTemporality!=null&&J.hasOwnProperty("aggregationTemporality"))X.aggregationTemporality=Z.enums===String?O.opentelemetry.proto.metrics.v1.AggregationTemporality[J.aggregationTemporality]===void 0?J.aggregationTemporality:O.opentelemetry.proto.metrics.v1.AggregationTemporality[J.aggregationTemporality]:J.aggregationTemporality;return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.metrics.v1.ExponentialHistogram"},z}(),K.Summary=function(){function z(W){if(this.dataPoints=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.dataPoints=B.emptyArray,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.dataPoints!=null&&J.dataPoints.length)for(var X=0;X<J.dataPoints.length;++X)O.opentelemetry.proto.metrics.v1.SummaryDataPoint.encode(J.dataPoints[X],Z.uint32(10).fork()).ldelim();return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.metrics.v1.Summary;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{if(!(F.dataPoints&&F.dataPoints.length))F.dataPoints=[];F.dataPoints.push(O.opentelemetry.proto.metrics.v1.SummaryDataPoint.decode(J,J.uint32()));break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.dataPoints!=null&&J.hasOwnProperty("dataPoints")){if(!Array.isArray(J.dataPoints))return"dataPoints: array expected";for(var Z=0;Z<J.dataPoints.length;++Z){var X=O.opentelemetry.proto.metrics.v1.SummaryDataPoint.verify(J.dataPoints[Z]);if(X)return"dataPoints."+X}}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.metrics.v1.Summary)return J;var Z=new O.opentelemetry.proto.metrics.v1.Summary;if(J.dataPoints){if(!Array.isArray(J.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: array expected");Z.dataPoints=[];for(var X=0;X<J.dataPoints.length;++X){if(typeof J.dataPoints[X]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: object expected");Z.dataPoints[X]=O.opentelemetry.proto.metrics.v1.SummaryDataPoint.fromObject(J.dataPoints[X])}}return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.dataPoints=[];if(J.dataPoints&&J.dataPoints.length){X.dataPoints=[];for(var q=0;q<J.dataPoints.length;++q)X.dataPoints[q]=O.opentelemetry.proto.metrics.v1.SummaryDataPoint.toObject(J.dataPoints[q],Z)}return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.metrics.v1.Summary"},z}(),K.AggregationTemporality=function(){var z={},W=Object.create(z);return W[z[0]="AGGREGATION_TEMPORALITY_UNSPECIFIED"]=0,W[z[1]="AGGREGATION_TEMPORALITY_DELTA"]=1,W[z[2]="AGGREGATION_TEMPORALITY_CUMULATIVE"]=2,W}(),K.DataPointFlags=function(){var z={},W=Object.create(z);return W[z[0]="DATA_POINT_FLAGS_DO_NOT_USE"]=0,W[z[1]="DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK"]=1,W}(),K.NumberDataPoint=function(){function z(J){if(this.attributes=[],this.exemplars=[],J){for(var Z=Object.keys(J),X=0;X<Z.length;++X)if(J[Z[X]]!=null)this[Z[X]]=J[Z[X]]}}z.prototype.attributes=B.emptyArray,z.prototype.startTimeUnixNano=null,z.prototype.timeUnixNano=null,z.prototype.asDouble=null,z.prototype.asInt=null,z.prototype.exemplars=B.emptyArray,z.prototype.flags=null;var W;return Object.defineProperty(z.prototype,"value",{get:B.oneOfGetter(W=["asDouble","asInt"]),set:B.oneOfSetter(W)}),z.create=function(Z){return new z(Z)},z.encode=function(Z,X){if(!X)X=w.create();if(Z.startTimeUnixNano!=null&&Object.hasOwnProperty.call(Z,"startTimeUnixNano"))X.uint32(17).fixed64(Z.startTimeUnixNano);if(Z.timeUnixNano!=null&&Object.hasOwnProperty.call(Z,"timeUnixNano"))X.uint32(25).fixed64(Z.timeUnixNano);if(Z.asDouble!=null&&Object.hasOwnProperty.call(Z,"asDouble"))X.uint32(33).double(Z.asDouble);if(Z.exemplars!=null&&Z.exemplars.length)for(var q=0;q<Z.exemplars.length;++q)O.opentelemetry.proto.metrics.v1.Exemplar.encode(Z.exemplars[q],X.uint32(42).fork()).ldelim();if(Z.asInt!=null&&Object.hasOwnProperty.call(Z,"asInt"))X.uint32(49).sfixed64(Z.asInt);if(Z.attributes!=null&&Z.attributes.length)for(var q=0;q<Z.attributes.length;++q)O.opentelemetry.proto.common.v1.KeyValue.encode(Z.attributes[q],X.uint32(58).fork()).ldelim();if(Z.flags!=null&&Object.hasOwnProperty.call(Z,"flags"))X.uint32(64).uint32(Z.flags);return X},z.encodeDelimited=function(Z,X){return this.encode(Z,X).ldelim()},z.decode=function(Z,X,q){if(!(Z instanceof I))Z=I.create(Z);var F=X===void 0?Z.len:Z.pos+X,H=new O.opentelemetry.proto.metrics.v1.NumberDataPoint;while(Z.pos<F){var N=Z.uint32();if(N===q)break;switch(N>>>3){case 7:{if(!(H.attributes&&H.attributes.length))H.attributes=[];H.attributes.push(O.opentelemetry.proto.common.v1.KeyValue.decode(Z,Z.uint32()));break}case 2:{H.startTimeUnixNano=Z.fixed64();break}case 3:{H.timeUnixNano=Z.fixed64();break}case 4:{H.asDouble=Z.double();break}case 6:{H.asInt=Z.sfixed64();break}case 5:{if(!(H.exemplars&&H.exemplars.length))H.exemplars=[];H.exemplars.push(O.opentelemetry.proto.metrics.v1.Exemplar.decode(Z,Z.uint32()));break}case 8:{H.flags=Z.uint32();break}default:Z.skipType(N&7);break}}return H},z.decodeDelimited=function(Z){if(!(Z instanceof I))Z=new I(Z);return this.decode(Z,Z.uint32())},z.verify=function(Z){if(typeof Z!=="object"||Z===null)return"object expected";var X={};if(Z.attributes!=null&&Z.hasOwnProperty("attributes")){if(!Array.isArray(Z.attributes))return"attributes: array expected";for(var q=0;q<Z.attributes.length;++q){var F=O.opentelemetry.proto.common.v1.KeyValue.verify(Z.attributes[q]);if(F)return"attributes."+F}}if(Z.startTimeUnixNano!=null&&Z.hasOwnProperty("startTimeUnixNano")){if(!B.isInteger(Z.startTimeUnixNano)&&!(Z.startTimeUnixNano&&B.isInteger(Z.startTimeUnixNano.low)&&B.isInteger(Z.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected"}if(Z.timeUnixNano!=null&&Z.hasOwnProperty("timeUnixNano")){if(!B.isInteger(Z.timeUnixNano)&&!(Z.timeUnixNano&&B.isInteger(Z.timeUnixNano.low)&&B.isInteger(Z.timeUnixNano.high)))return"timeUnixNano: integer|Long expected"}if(Z.asDouble!=null&&Z.hasOwnProperty("asDouble")){if(X.value=1,typeof Z.asDouble!=="number")return"asDouble: number expected"}if(Z.asInt!=null&&Z.hasOwnProperty("asInt")){if(X.value===1)return"value: multiple values";if(X.value=1,!B.isInteger(Z.asInt)&&!(Z.asInt&&B.isInteger(Z.asInt.low)&&B.isInteger(Z.asInt.high)))return"asInt: integer|Long expected"}if(Z.exemplars!=null&&Z.hasOwnProperty("exemplars")){if(!Array.isArray(Z.exemplars))return"exemplars: array expected";for(var q=0;q<Z.exemplars.length;++q){var F=O.opentelemetry.proto.metrics.v1.Exemplar.verify(Z.exemplars[q]);if(F)return"exemplars."+F}}if(Z.flags!=null&&Z.hasOwnProperty("flags")){if(!B.isInteger(Z.flags))return"flags: integer expected"}return null},z.fromObject=function(Z){if(Z instanceof O.opentelemetry.proto.metrics.v1.NumberDataPoint)return Z;var X=new O.opentelemetry.proto.metrics.v1.NumberDataPoint;if(Z.attributes){if(!Array.isArray(Z.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: array expected");X.attributes=[];for(var q=0;q<Z.attributes.length;++q){if(typeof Z.attributes[q]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: object expected");X.attributes[q]=O.opentelemetry.proto.common.v1.KeyValue.fromObject(Z.attributes[q])}}if(Z.startTimeUnixNano!=null){if(B.Long)(X.startTimeUnixNano=B.Long.fromValue(Z.startTimeUnixNano)).unsigned=!1;else if(typeof Z.startTimeUnixNano==="string")X.startTimeUnixNano=parseInt(Z.startTimeUnixNano,10);else if(typeof Z.startTimeUnixNano==="number")X.startTimeUnixNano=Z.startTimeUnixNano;else if(typeof Z.startTimeUnixNano==="object")X.startTimeUnixNano=new B.LongBits(Z.startTimeUnixNano.low>>>0,Z.startTimeUnixNano.high>>>0).toNumber()}if(Z.timeUnixNano!=null){if(B.Long)(X.timeUnixNano=B.Long.fromValue(Z.timeUnixNano)).unsigned=!1;else if(typeof Z.timeUnixNano==="string")X.timeUnixNano=parseInt(Z.timeUnixNano,10);else if(typeof Z.timeUnixNano==="number")X.timeUnixNano=Z.timeUnixNano;else if(typeof Z.timeUnixNano==="object")X.timeUnixNano=new B.LongBits(Z.timeUnixNano.low>>>0,Z.timeUnixNano.high>>>0).toNumber()}if(Z.asDouble!=null)X.asDouble=Number(Z.asDouble);if(Z.asInt!=null){if(B.Long)(X.asInt=B.Long.fromValue(Z.asInt)).unsigned=!1;else if(typeof Z.asInt==="string")X.asInt=parseInt(Z.asInt,10);else if(typeof Z.asInt==="number")X.asInt=Z.asInt;else if(typeof Z.asInt==="object")X.asInt=new B.LongBits(Z.asInt.low>>>0,Z.asInt.high>>>0).toNumber()}if(Z.exemplars){if(!Array.isArray(Z.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: array expected");X.exemplars=[];for(var q=0;q<Z.exemplars.length;++q){if(typeof Z.exemplars[q]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: object expected");X.exemplars[q]=O.opentelemetry.proto.metrics.v1.Exemplar.fromObject(Z.exemplars[q])}}if(Z.flags!=null)X.flags=Z.flags>>>0;return X},z.toObject=function(Z,X){if(!X)X={};var q={};if(X.arrays||X.defaults)q.exemplars=[],q.attributes=[];if(X.defaults){if(B.Long){var F=new B.Long(0,0,!1);q.startTimeUnixNano=X.longs===String?F.toString():X.longs===Number?F.toNumber():F}else q.startTimeUnixNano=X.longs===String?"0":0;if(B.Long){var F=new B.Long(0,0,!1);q.timeUnixNano=X.longs===String?F.toString():X.longs===Number?F.toNumber():F}else q.timeUnixNano=X.longs===String?"0":0;q.flags=0}if(Z.startTimeUnixNano!=null&&Z.hasOwnProperty("startTimeUnixNano"))if(typeof Z.startTimeUnixNano==="number")q.startTimeUnixNano=X.longs===String?String(Z.startTimeUnixNano):Z.startTimeUnixNano;else q.startTimeUnixNano=X.longs===String?B.Long.prototype.toString.call(Z.startTimeUnixNano):X.longs===Number?new B.LongBits(Z.startTimeUnixNano.low>>>0,Z.startTimeUnixNano.high>>>0).toNumber():Z.startTimeUnixNano;if(Z.timeUnixNano!=null&&Z.hasOwnProperty("timeUnixNano"))if(typeof Z.timeUnixNano==="number")q.timeUnixNano=X.longs===String?String(Z.timeUnixNano):Z.timeUnixNano;else q.timeUnixNano=X.longs===String?B.Long.prototype.toString.call(Z.timeUnixNano):X.longs===Number?new B.LongBits(Z.timeUnixNano.low>>>0,Z.timeUnixNano.high>>>0).toNumber():Z.timeUnixNano;if(Z.asDouble!=null&&Z.hasOwnProperty("asDouble")){if(q.asDouble=X.json&&!isFinite(Z.asDouble)?String(Z.asDouble):Z.asDouble,X.oneofs)q.value="asDouble"}if(Z.exemplars&&Z.exemplars.length){q.exemplars=[];for(var H=0;H<Z.exemplars.length;++H)q.exemplars[H]=O.opentelemetry.proto.metrics.v1.Exemplar.toObject(Z.exemplars[H],X)}if(Z.asInt!=null&&Z.hasOwnProperty("asInt")){if(typeof Z.asInt==="number")q.asInt=X.longs===String?String(Z.asInt):Z.asInt;else q.asInt=X.longs===String?B.Long.prototype.toString.call(Z.asInt):X.longs===Number?new B.LongBits(Z.asInt.low>>>0,Z.asInt.high>>>0).toNumber():Z.asInt;if(X.oneofs)q.value="asInt"}if(Z.attributes&&Z.attributes.length){q.attributes=[];for(var H=0;H<Z.attributes.length;++H)q.attributes[H]=O.opentelemetry.proto.common.v1.KeyValue.toObject(Z.attributes[H],X)}if(Z.flags!=null&&Z.hasOwnProperty("flags"))q.flags=Z.flags;return q},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(Z){if(Z===void 0)Z="type.googleapis.com";return Z+"/opentelemetry.proto.metrics.v1.NumberDataPoint"},z}(),K.HistogramDataPoint=function(){function z(J){if(this.attributes=[],this.bucketCounts=[],this.explicitBounds=[],this.exemplars=[],J){for(var Z=Object.keys(J),X=0;X<Z.length;++X)if(J[Z[X]]!=null)this[Z[X]]=J[Z[X]]}}z.prototype.attributes=B.emptyArray,z.prototype.startTimeUnixNano=null,z.prototype.timeUnixNano=null,z.prototype.count=null,z.prototype.sum=null,z.prototype.bucketCounts=B.emptyArray,z.prototype.explicitBounds=B.emptyArray,z.prototype.exemplars=B.emptyArray,z.prototype.flags=null,z.prototype.min=null,z.prototype.max=null;var W;return Object.defineProperty(z.prototype,"_sum",{get:B.oneOfGetter(W=["sum"]),set:B.oneOfSetter(W)}),Object.defineProperty(z.prototype,"_min",{get:B.oneOfGetter(W=["min"]),set:B.oneOfSetter(W)}),Object.defineProperty(z.prototype,"_max",{get:B.oneOfGetter(W=["max"]),set:B.oneOfSetter(W)}),z.create=function(Z){return new z(Z)},z.encode=function(Z,X){if(!X)X=w.create();if(Z.startTimeUnixNano!=null&&Object.hasOwnProperty.call(Z,"startTimeUnixNano"))X.uint32(17).fixed64(Z.startTimeUnixNano);if(Z.timeUnixNano!=null&&Object.hasOwnProperty.call(Z,"timeUnixNano"))X.uint32(25).fixed64(Z.timeUnixNano);if(Z.count!=null&&Object.hasOwnProperty.call(Z,"count"))X.uint32(33).fixed64(Z.count);if(Z.sum!=null&&Object.hasOwnProperty.call(Z,"sum"))X.uint32(41).double(Z.sum);if(Z.bucketCounts!=null&&Z.bucketCounts.length){X.uint32(50).fork();for(var q=0;q<Z.bucketCounts.length;++q)X.fixed64(Z.bucketCounts[q]);X.ldelim()}if(Z.explicitBounds!=null&&Z.explicitBounds.length){X.uint32(58).fork();for(var q=0;q<Z.explicitBounds.length;++q)X.double(Z.explicitBounds[q]);X.ldelim()}if(Z.exemplars!=null&&Z.exemplars.length)for(var q=0;q<Z.exemplars.length;++q)O.opentelemetry.proto.metrics.v1.Exemplar.encode(Z.exemplars[q],X.uint32(66).fork()).ldelim();if(Z.attributes!=null&&Z.attributes.length)for(var q=0;q<Z.attributes.length;++q)O.opentelemetry.proto.common.v1.KeyValue.encode(Z.attributes[q],X.uint32(74).fork()).ldelim();if(Z.flags!=null&&Object.hasOwnProperty.call(Z,"flags"))X.uint32(80).uint32(Z.flags);if(Z.min!=null&&Object.hasOwnProperty.call(Z,"min"))X.uint32(89).double(Z.min);if(Z.max!=null&&Object.hasOwnProperty.call(Z,"max"))X.uint32(97).double(Z.max);return X},z.encodeDelimited=function(Z,X){return this.encode(Z,X).ldelim()},z.decode=function(Z,X,q){if(!(Z instanceof I))Z=I.create(Z);var F=X===void 0?Z.len:Z.pos+X,H=new O.opentelemetry.proto.metrics.v1.HistogramDataPoint;while(Z.pos<F){var N=Z.uint32();if(N===q)break;switch(N>>>3){case 9:{if(!(H.attributes&&H.attributes.length))H.attributes=[];H.attributes.push(O.opentelemetry.proto.common.v1.KeyValue.decode(Z,Z.uint32()));break}case 2:{H.startTimeUnixNano=Z.fixed64();break}case 3:{H.timeUnixNano=Z.fixed64();break}case 4:{H.count=Z.fixed64();break}case 5:{H.sum=Z.double();break}case 6:{if(!(H.bucketCounts&&H.bucketCounts.length))H.bucketCounts=[];if((N&7)===2){var C=Z.uint32()+Z.pos;while(Z.pos<C)H.bucketCounts.push(Z.fixed64())}else H.bucketCounts.push(Z.fixed64());break}case 7:{if(!(H.explicitBounds&&H.explicitBounds.length))H.explicitBounds=[];if((N&7)===2){var C=Z.uint32()+Z.pos;while(Z.pos<C)H.explicitBounds.push(Z.double())}else H.explicitBounds.push(Z.double());break}case 8:{if(!(H.exemplars&&H.exemplars.length))H.exemplars=[];H.exemplars.push(O.opentelemetry.proto.metrics.v1.Exemplar.decode(Z,Z.uint32()));break}case 10:{H.flags=Z.uint32();break}case 11:{H.min=Z.double();break}case 12:{H.max=Z.double();break}default:Z.skipType(N&7);break}}return H},z.decodeDelimited=function(Z){if(!(Z instanceof I))Z=new I(Z);return this.decode(Z,Z.uint32())},z.verify=function(Z){if(typeof Z!=="object"||Z===null)return"object expected";var X={};if(Z.attributes!=null&&Z.hasOwnProperty("attributes")){if(!Array.isArray(Z.attributes))return"attributes: array expected";for(var q=0;q<Z.attributes.length;++q){var F=O.opentelemetry.proto.common.v1.KeyValue.verify(Z.attributes[q]);if(F)return"attributes."+F}}if(Z.startTimeUnixNano!=null&&Z.hasOwnProperty("startTimeUnixNano")){if(!B.isInteger(Z.startTimeUnixNano)&&!(Z.startTimeUnixNano&&B.isInteger(Z.startTimeUnixNano.low)&&B.isInteger(Z.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected"}if(Z.timeUnixNano!=null&&Z.hasOwnProperty("timeUnixNano")){if(!B.isInteger(Z.timeUnixNano)&&!(Z.timeUnixNano&&B.isInteger(Z.timeUnixNano.low)&&B.isInteger(Z.timeUnixNano.high)))return"timeUnixNano: integer|Long expected"}if(Z.count!=null&&Z.hasOwnProperty("count")){if(!B.isInteger(Z.count)&&!(Z.count&&B.isInteger(Z.count.low)&&B.isInteger(Z.count.high)))return"count: integer|Long expected"}if(Z.sum!=null&&Z.hasOwnProperty("sum")){if(X._sum=1,typeof Z.sum!=="number")return"sum: number expected"}if(Z.bucketCounts!=null&&Z.hasOwnProperty("bucketCounts")){if(!Array.isArray(Z.bucketCounts))return"bucketCounts: array expected";for(var q=0;q<Z.bucketCounts.length;++q)if(!B.isInteger(Z.bucketCounts[q])&&!(Z.bucketCounts[q]&&B.isInteger(Z.bucketCounts[q].low)&&B.isInteger(Z.bucketCounts[q].high)))return"bucketCounts: integer|Long[] expected"}if(Z.explicitBounds!=null&&Z.hasOwnProperty("explicitBounds")){if(!Array.isArray(Z.explicitBounds))return"explicitBounds: array expected";for(var q=0;q<Z.explicitBounds.length;++q)if(typeof Z.explicitBounds[q]!=="number")return"explicitBounds: number[] expected"}if(Z.exemplars!=null&&Z.hasOwnProperty("exemplars")){if(!Array.isArray(Z.exemplars))return"exemplars: array expected";for(var q=0;q<Z.exemplars.length;++q){var F=O.opentelemetry.proto.metrics.v1.Exemplar.verify(Z.exemplars[q]);if(F)return"exemplars."+F}}if(Z.flags!=null&&Z.hasOwnProperty("flags")){if(!B.isInteger(Z.flags))return"flags: integer expected"}if(Z.min!=null&&Z.hasOwnProperty("min")){if(X._min=1,typeof Z.min!=="number")return"min: number expected"}if(Z.max!=null&&Z.hasOwnProperty("max")){if(X._max=1,typeof Z.max!=="number")return"max: number expected"}return null},z.fromObject=function(Z){if(Z instanceof O.opentelemetry.proto.metrics.v1.HistogramDataPoint)return Z;var X=new O.opentelemetry.proto.metrics.v1.HistogramDataPoint;if(Z.attributes){if(!Array.isArray(Z.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: array expected");X.attributes=[];for(var q=0;q<Z.attributes.length;++q){if(typeof Z.attributes[q]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: object expected");X.attributes[q]=O.opentelemetry.proto.common.v1.KeyValue.fromObject(Z.attributes[q])}}if(Z.startTimeUnixNano!=null){if(B.Long)(X.startTimeUnixNano=B.Long.fromValue(Z.startTimeUnixNano)).unsigned=!1;else if(typeof Z.startTimeUnixNano==="string")X.startTimeUnixNano=parseInt(Z.startTimeUnixNano,10);else if(typeof Z.startTimeUnixNano==="number")X.startTimeUnixNano=Z.startTimeUnixNano;else if(typeof Z.startTimeUnixNano==="object")X.startTimeUnixNano=new B.LongBits(Z.startTimeUnixNano.low>>>0,Z.startTimeUnixNano.high>>>0).toNumber()}if(Z.timeUnixNano!=null){if(B.Long)(X.timeUnixNano=B.Long.fromValue(Z.timeUnixNano)).unsigned=!1;else if(typeof Z.timeUnixNano==="string")X.timeUnixNano=parseInt(Z.timeUnixNano,10);else if(typeof Z.timeUnixNano==="number")X.timeUnixNano=Z.timeUnixNano;else if(typeof Z.timeUnixNano==="object")X.timeUnixNano=new B.LongBits(Z.timeUnixNano.low>>>0,Z.timeUnixNano.high>>>0).toNumber()}if(Z.count!=null){if(B.Long)(X.count=B.Long.fromValue(Z.count)).unsigned=!1;else if(typeof Z.count==="string")X.count=parseInt(Z.count,10);else if(typeof Z.count==="number")X.count=Z.count;else if(typeof Z.count==="object")X.count=new B.LongBits(Z.count.low>>>0,Z.count.high>>>0).toNumber()}if(Z.sum!=null)X.sum=Number(Z.sum);if(Z.bucketCounts){if(!Array.isArray(Z.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.bucketCounts: array expected");X.bucketCounts=[];for(var q=0;q<Z.bucketCounts.length;++q)if(B.Long)(X.bucketCounts[q]=B.Long.fromValue(Z.bucketCounts[q])).unsigned=!1;else if(typeof Z.bucketCounts[q]==="string")X.bucketCounts[q]=parseInt(Z.bucketCounts[q],10);else if(typeof Z.bucketCounts[q]==="number")X.bucketCounts[q]=Z.bucketCounts[q];else if(typeof Z.bucketCounts[q]==="object")X.bucketCounts[q]=new B.LongBits(Z.bucketCounts[q].low>>>0,Z.bucketCounts[q].high>>>0).toNumber()}if(Z.explicitBounds){if(!Array.isArray(Z.explicitBounds))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.explicitBounds: array expected");X.explicitBounds=[];for(var q=0;q<Z.explicitBounds.length;++q)X.explicitBounds[q]=Number(Z.explicitBounds[q])}if(Z.exemplars){if(!Array.isArray(Z.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: array expected");X.exemplars=[];for(var q=0;q<Z.exemplars.length;++q){if(typeof Z.exemplars[q]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: object expected");X.exemplars[q]=O.opentelemetry.proto.metrics.v1.Exemplar.fromObject(Z.exemplars[q])}}if(Z.flags!=null)X.flags=Z.flags>>>0;if(Z.min!=null)X.min=Number(Z.min);if(Z.max!=null)X.max=Number(Z.max);return X},z.toObject=function(Z,X){if(!X)X={};var q={};if(X.arrays||X.defaults)q.bucketCounts=[],q.explicitBounds=[],q.exemplars=[],q.attributes=[];if(X.defaults){if(B.Long){var F=new B.Long(0,0,!1);q.startTimeUnixNano=X.longs===String?F.toString():X.longs===Number?F.toNumber():F}else q.startTimeUnixNano=X.longs===String?"0":0;if(B.Long){var F=new B.Long(0,0,!1);q.timeUnixNano=X.longs===String?F.toString():X.longs===Number?F.toNumber():F}else q.timeUnixNano=X.longs===String?"0":0;if(B.Long){var F=new B.Long(0,0,!1);q.count=X.longs===String?F.toString():X.longs===Number?F.toNumber():F}else q.count=X.longs===String?"0":0;q.flags=0}if(Z.startTimeUnixNano!=null&&Z.hasOwnProperty("startTimeUnixNano"))if(typeof Z.startTimeUnixNano==="number")q.startTimeUnixNano=X.longs===String?String(Z.startTimeUnixNano):Z.startTimeUnixNano;else q.startTimeUnixNano=X.longs===String?B.Long.prototype.toString.call(Z.startTimeUnixNano):X.longs===Number?new B.LongBits(Z.startTimeUnixNano.low>>>0,Z.startTimeUnixNano.high>>>0).toNumber():Z.startTimeUnixNano;if(Z.timeUnixNano!=null&&Z.hasOwnProperty("timeUnixNano"))if(typeof Z.timeUnixNano==="number")q.timeUnixNano=X.longs===String?String(Z.timeUnixNano):Z.timeUnixNano;else q.timeUnixNano=X.longs===String?B.Long.prototype.toString.call(Z.timeUnixNano):X.longs===Number?new B.LongBits(Z.timeUnixNano.low>>>0,Z.timeUnixNano.high>>>0).toNumber():Z.timeUnixNano;if(Z.count!=null&&Z.hasOwnProperty("count"))if(typeof Z.count==="number")q.count=X.longs===String?String(Z.count):Z.count;else q.count=X.longs===String?B.Long.prototype.toString.call(Z.count):X.longs===Number?new B.LongBits(Z.count.low>>>0,Z.count.high>>>0).toNumber():Z.count;if(Z.sum!=null&&Z.hasOwnProperty("sum")){if(q.sum=X.json&&!isFinite(Z.sum)?String(Z.sum):Z.sum,X.oneofs)q._sum="sum"}if(Z.bucketCounts&&Z.bucketCounts.length){q.bucketCounts=[];for(var H=0;H<Z.bucketCounts.length;++H)if(typeof Z.bucketCounts[H]==="number")q.bucketCounts[H]=X.longs===String?String(Z.bucketCounts[H]):Z.bucketCounts[H];else q.bucketCounts[H]=X.longs===String?B.Long.prototype.toString.call(Z.bucketCounts[H]):X.longs===Number?new B.LongBits(Z.bucketCounts[H].low>>>0,Z.bucketCounts[H].high>>>0).toNumber():Z.bucketCounts[H]}if(Z.explicitBounds&&Z.explicitBounds.length){q.explicitBounds=[];for(var H=0;H<Z.explicitBounds.length;++H)q.explicitBounds[H]=X.json&&!isFinite(Z.explicitBounds[H])?String(Z.explicitBounds[H]):Z.explicitBounds[H]}if(Z.exemplars&&Z.exemplars.length){q.exemplars=[];for(var H=0;H<Z.exemplars.length;++H)q.exemplars[H]=O.opentelemetry.proto.metrics.v1.Exemplar.toObject(Z.exemplars[H],X)}if(Z.attributes&&Z.attributes.length){q.attributes=[];for(var H=0;H<Z.attributes.length;++H)q.attributes[H]=O.opentelemetry.proto.common.v1.KeyValue.toObject(Z.attributes[H],X)}if(Z.flags!=null&&Z.hasOwnProperty("flags"))q.flags=Z.flags;if(Z.min!=null&&Z.hasOwnProperty("min")){if(q.min=X.json&&!isFinite(Z.min)?String(Z.min):Z.min,X.oneofs)q._min="min"}if(Z.max!=null&&Z.hasOwnProperty("max")){if(q.max=X.json&&!isFinite(Z.max)?String(Z.max):Z.max,X.oneofs)q._max="max"}return q},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(Z){if(Z===void 0)Z="type.googleapis.com";return Z+"/opentelemetry.proto.metrics.v1.HistogramDataPoint"},z}(),K.ExponentialHistogramDataPoint=function(){function z(J){if(this.attributes=[],this.exemplars=[],J){for(var Z=Object.keys(J),X=0;X<Z.length;++X)if(J[Z[X]]!=null)this[Z[X]]=J[Z[X]]}}z.prototype.attributes=B.emptyArray,z.prototype.startTimeUnixNano=null,z.prototype.timeUnixNano=null,z.prototype.count=null,z.prototype.sum=null,z.prototype.scale=null,z.prototype.zeroCount=null,z.prototype.positive=null,z.prototype.negative=null,z.prototype.flags=null,z.prototype.exemplars=B.emptyArray,z.prototype.min=null,z.prototype.max=null,z.prototype.zeroThreshold=null;var W;return Object.defineProperty(z.prototype,"_sum",{get:B.oneOfGetter(W=["sum"]),set:B.oneOfSetter(W)}),Object.defineProperty(z.prototype,"_min",{get:B.oneOfGetter(W=["min"]),set:B.oneOfSetter(W)}),Object.defineProperty(z.prototype,"_max",{get:B.oneOfGetter(W=["max"]),set:B.oneOfSetter(W)}),z.create=function(Z){return new z(Z)},z.encode=function(Z,X){if(!X)X=w.create();if(Z.attributes!=null&&Z.attributes.length)for(var q=0;q<Z.attributes.length;++q)O.opentelemetry.proto.common.v1.KeyValue.encode(Z.attributes[q],X.uint32(10).fork()).ldelim();if(Z.startTimeUnixNano!=null&&Object.hasOwnProperty.call(Z,"startTimeUnixNano"))X.uint32(17).fixed64(Z.startTimeUnixNano);if(Z.timeUnixNano!=null&&Object.hasOwnProperty.call(Z,"timeUnixNano"))X.uint32(25).fixed64(Z.timeUnixNano);if(Z.count!=null&&Object.hasOwnProperty.call(Z,"count"))X.uint32(33).fixed64(Z.count);if(Z.sum!=null&&Object.hasOwnProperty.call(Z,"sum"))X.uint32(41).double(Z.sum);if(Z.scale!=null&&Object.hasOwnProperty.call(Z,"scale"))X.uint32(48).sint32(Z.scale);if(Z.zeroCount!=null&&Object.hasOwnProperty.call(Z,"zeroCount"))X.uint32(57).fixed64(Z.zeroCount);if(Z.positive!=null&&Object.hasOwnProperty.call(Z,"positive"))O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(Z.positive,X.uint32(66).fork()).ldelim();if(Z.negative!=null&&Object.hasOwnProperty.call(Z,"negative"))O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(Z.negative,X.uint32(74).fork()).ldelim();if(Z.flags!=null&&Object.hasOwnProperty.call(Z,"flags"))X.uint32(80).uint32(Z.flags);if(Z.exemplars!=null&&Z.exemplars.length)for(var q=0;q<Z.exemplars.length;++q)O.opentelemetry.proto.metrics.v1.Exemplar.encode(Z.exemplars[q],X.uint32(90).fork()).ldelim();if(Z.min!=null&&Object.hasOwnProperty.call(Z,"min"))X.uint32(97).double(Z.min);if(Z.max!=null&&Object.hasOwnProperty.call(Z,"max"))X.uint32(105).double(Z.max);if(Z.zeroThreshold!=null&&Object.hasOwnProperty.call(Z,"zeroThreshold"))X.uint32(113).double(Z.zeroThreshold);return X},z.encodeDelimited=function(Z,X){return this.encode(Z,X).ldelim()},z.decode=function(Z,X,q){if(!(Z instanceof I))Z=I.create(Z);var F=X===void 0?Z.len:Z.pos+X,H=new O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;while(Z.pos<F){var N=Z.uint32();if(N===q)break;switch(N>>>3){case 1:{if(!(H.attributes&&H.attributes.length))H.attributes=[];H.attributes.push(O.opentelemetry.proto.common.v1.KeyValue.decode(Z,Z.uint32()));break}case 2:{H.startTimeUnixNano=Z.fixed64();break}case 3:{H.timeUnixNano=Z.fixed64();break}case 4:{H.count=Z.fixed64();break}case 5:{H.sum=Z.double();break}case 6:{H.scale=Z.sint32();break}case 7:{H.zeroCount=Z.fixed64();break}case 8:{H.positive=O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(Z,Z.uint32());break}case 9:{H.negative=O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(Z,Z.uint32());break}case 10:{H.flags=Z.uint32();break}case 11:{if(!(H.exemplars&&H.exemplars.length))H.exemplars=[];H.exemplars.push(O.opentelemetry.proto.metrics.v1.Exemplar.decode(Z,Z.uint32()));break}case 12:{H.min=Z.double();break}case 13:{H.max=Z.double();break}case 14:{H.zeroThreshold=Z.double();break}default:Z.skipType(N&7);break}}return H},z.decodeDelimited=function(Z){if(!(Z instanceof I))Z=new I(Z);return this.decode(Z,Z.uint32())},z.verify=function(Z){if(typeof Z!=="object"||Z===null)return"object expected";var X={};if(Z.attributes!=null&&Z.hasOwnProperty("attributes")){if(!Array.isArray(Z.attributes))return"attributes: array expected";for(var q=0;q<Z.attributes.length;++q){var F=O.opentelemetry.proto.common.v1.KeyValue.verify(Z.attributes[q]);if(F)return"attributes."+F}}if(Z.startTimeUnixNano!=null&&Z.hasOwnProperty("startTimeUnixNano")){if(!B.isInteger(Z.startTimeUnixNano)&&!(Z.startTimeUnixNano&&B.isInteger(Z.startTimeUnixNano.low)&&B.isInteger(Z.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected"}if(Z.timeUnixNano!=null&&Z.hasOwnProperty("timeUnixNano")){if(!B.isInteger(Z.timeUnixNano)&&!(Z.timeUnixNano&&B.isInteger(Z.timeUnixNano.low)&&B.isInteger(Z.timeUnixNano.high)))return"timeUnixNano: integer|Long expected"}if(Z.count!=null&&Z.hasOwnProperty("count")){if(!B.isInteger(Z.count)&&!(Z.count&&B.isInteger(Z.count.low)&&B.isInteger(Z.count.high)))return"count: integer|Long expected"}if(Z.sum!=null&&Z.hasOwnProperty("sum")){if(X._sum=1,typeof Z.sum!=="number")return"sum: number expected"}if(Z.scale!=null&&Z.hasOwnProperty("scale")){if(!B.isInteger(Z.scale))return"scale: integer expected"}if(Z.zeroCount!=null&&Z.hasOwnProperty("zeroCount")){if(!B.isInteger(Z.zeroCount)&&!(Z.zeroCount&&B.isInteger(Z.zeroCount.low)&&B.isInteger(Z.zeroCount.high)))return"zeroCount: integer|Long expected"}if(Z.positive!=null&&Z.hasOwnProperty("positive")){var F=O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(Z.positive);if(F)return"positive."+F}if(Z.negative!=null&&Z.hasOwnProperty("negative")){var F=O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(Z.negative);if(F)return"negative."+F}if(Z.flags!=null&&Z.hasOwnProperty("flags")){if(!B.isInteger(Z.flags))return"flags: integer expected"}if(Z.exemplars!=null&&Z.hasOwnProperty("exemplars")){if(!Array.isArray(Z.exemplars))return"exemplars: array expected";for(var q=0;q<Z.exemplars.length;++q){var F=O.opentelemetry.proto.metrics.v1.Exemplar.verify(Z.exemplars[q]);if(F)return"exemplars."+F}}if(Z.min!=null&&Z.hasOwnProperty("min")){if(X._min=1,typeof Z.min!=="number")return"min: number expected"}if(Z.max!=null&&Z.hasOwnProperty("max")){if(X._max=1,typeof Z.max!=="number")return"max: number expected"}if(Z.zeroThreshold!=null&&Z.hasOwnProperty("zeroThreshold")){if(typeof Z.zeroThreshold!=="number")return"zeroThreshold: number expected"}return null},z.fromObject=function(Z){if(Z instanceof O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint)return Z;var X=new O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;if(Z.attributes){if(!Array.isArray(Z.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: array expected");X.attributes=[];for(var q=0;q<Z.attributes.length;++q){if(typeof Z.attributes[q]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: object expected");X.attributes[q]=O.opentelemetry.proto.common.v1.KeyValue.fromObject(Z.attributes[q])}}if(Z.startTimeUnixNano!=null){if(B.Long)(X.startTimeUnixNano=B.Long.fromValue(Z.startTimeUnixNano)).unsigned=!1;else if(typeof Z.startTimeUnixNano==="string")X.startTimeUnixNano=parseInt(Z.startTimeUnixNano,10);else if(typeof Z.startTimeUnixNano==="number")X.startTimeUnixNano=Z.startTimeUnixNano;else if(typeof Z.startTimeUnixNano==="object")X.startTimeUnixNano=new B.LongBits(Z.startTimeUnixNano.low>>>0,Z.startTimeUnixNano.high>>>0).toNumber()}if(Z.timeUnixNano!=null){if(B.Long)(X.timeUnixNano=B.Long.fromValue(Z.timeUnixNano)).unsigned=!1;else if(typeof Z.timeUnixNano==="string")X.timeUnixNano=parseInt(Z.timeUnixNano,10);else if(typeof Z.timeUnixNano==="number")X.timeUnixNano=Z.timeUnixNano;else if(typeof Z.timeUnixNano==="object")X.timeUnixNano=new B.LongBits(Z.timeUnixNano.low>>>0,Z.timeUnixNano.high>>>0).toNumber()}if(Z.count!=null){if(B.Long)(X.count=B.Long.fromValue(Z.count)).unsigned=!1;else if(typeof Z.count==="string")X.count=parseInt(Z.count,10);else if(typeof Z.count==="number")X.count=Z.count;else if(typeof Z.count==="object")X.count=new B.LongBits(Z.count.low>>>0,Z.count.high>>>0).toNumber()}if(Z.sum!=null)X.sum=Number(Z.sum);if(Z.scale!=null)X.scale=Z.scale|0;if(Z.zeroCount!=null){if(B.Long)(X.zeroCount=B.Long.fromValue(Z.zeroCount)).unsigned=!1;else if(typeof Z.zeroCount==="string")X.zeroCount=parseInt(Z.zeroCount,10);else if(typeof Z.zeroCount==="number")X.zeroCount=Z.zeroCount;else if(typeof Z.zeroCount==="object")X.zeroCount=new B.LongBits(Z.zeroCount.low>>>0,Z.zeroCount.high>>>0).toNumber()}if(Z.positive!=null){if(typeof Z.positive!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.positive: object expected");X.positive=O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(Z.positive)}if(Z.negative!=null){if(typeof Z.negative!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.negative: object expected");X.negative=O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(Z.negative)}if(Z.flags!=null)X.flags=Z.flags>>>0;if(Z.exemplars){if(!Array.isArray(Z.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: array expected");X.exemplars=[];for(var q=0;q<Z.exemplars.length;++q){if(typeof Z.exemplars[q]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: object expected");X.exemplars[q]=O.opentelemetry.proto.metrics.v1.Exemplar.fromObject(Z.exemplars[q])}}if(Z.min!=null)X.min=Number(Z.min);if(Z.max!=null)X.max=Number(Z.max);if(Z.zeroThreshold!=null)X.zeroThreshold=Number(Z.zeroThreshold);return X},z.toObject=function(Z,X){if(!X)X={};var q={};if(X.arrays||X.defaults)q.attributes=[],q.exemplars=[];if(X.defaults){if(B.Long){var F=new B.Long(0,0,!1);q.startTimeUnixNano=X.longs===String?F.toString():X.longs===Number?F.toNumber():F}else q.startTimeUnixNano=X.longs===String?"0":0;if(B.Long){var F=new B.Long(0,0,!1);q.timeUnixNano=X.longs===String?F.toString():X.longs===Number?F.toNumber():F}else q.timeUnixNano=X.longs===String?"0":0;if(B.Long){var F=new B.Long(0,0,!1);q.count=X.longs===String?F.toString():X.longs===Number?F.toNumber():F}else q.count=X.longs===String?"0":0;if(q.scale=0,B.Long){var F=new B.Long(0,0,!1);q.zeroCount=X.longs===String?F.toString():X.longs===Number?F.toNumber():F}else q.zeroCount=X.longs===String?"0":0;q.positive=null,q.negative=null,q.flags=0,q.zeroThreshold=0}if(Z.attributes&&Z.attributes.length){q.attributes=[];for(var H=0;H<Z.attributes.length;++H)q.attributes[H]=O.opentelemetry.proto.common.v1.KeyValue.toObject(Z.attributes[H],X)}if(Z.startTimeUnixNano!=null&&Z.hasOwnProperty("startTimeUnixNano"))if(typeof Z.startTimeUnixNano==="number")q.startTimeUnixNano=X.longs===String?String(Z.startTimeUnixNano):Z.startTimeUnixNano;else q.startTimeUnixNano=X.longs===String?B.Long.prototype.toString.call(Z.startTimeUnixNano):X.longs===Number?new B.LongBits(Z.startTimeUnixNano.low>>>0,Z.startTimeUnixNano.high>>>0).toNumber():Z.startTimeUnixNano;if(Z.timeUnixNano!=null&&Z.hasOwnProperty("timeUnixNano"))if(typeof Z.timeUnixNano==="number")q.timeUnixNano=X.longs===String?String(Z.timeUnixNano):Z.timeUnixNano;else q.timeUnixNano=X.longs===String?B.Long.prototype.toString.call(Z.timeUnixNano):X.longs===Number?new B.LongBits(Z.timeUnixNano.low>>>0,Z.timeUnixNano.high>>>0).toNumber():Z.timeUnixNano;if(Z.count!=null&&Z.hasOwnProperty("count"))if(typeof Z.count==="number")q.count=X.longs===String?String(Z.count):Z.count;else q.count=X.longs===String?B.Long.prototype.toString.call(Z.count):X.longs===Number?new B.LongBits(Z.count.low>>>0,Z.count.high>>>0).toNumber():Z.count;if(Z.sum!=null&&Z.hasOwnProperty("sum")){if(q.sum=X.json&&!isFinite(Z.sum)?String(Z.sum):Z.sum,X.oneofs)q._sum="sum"}if(Z.scale!=null&&Z.hasOwnProperty("scale"))q.scale=Z.scale;if(Z.zeroCount!=null&&Z.hasOwnProperty("zeroCount"))if(typeof Z.zeroCount==="number")q.zeroCount=X.longs===String?String(Z.zeroCount):Z.zeroCount;else q.zeroCount=X.longs===String?B.Long.prototype.toString.call(Z.zeroCount):X.longs===Number?new B.LongBits(Z.zeroCount.low>>>0,Z.zeroCount.high>>>0).toNumber():Z.zeroCount;if(Z.positive!=null&&Z.hasOwnProperty("positive"))q.positive=O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(Z.positive,X);if(Z.negative!=null&&Z.hasOwnProperty("negative"))q.negative=O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(Z.negative,X);if(Z.flags!=null&&Z.hasOwnProperty("flags"))q.flags=Z.flags;if(Z.exemplars&&Z.exemplars.length){q.exemplars=[];for(var H=0;H<Z.exemplars.length;++H)q.exemplars[H]=O.opentelemetry.proto.metrics.v1.Exemplar.toObject(Z.exemplars[H],X)}if(Z.min!=null&&Z.hasOwnProperty("min")){if(q.min=X.json&&!isFinite(Z.min)?String(Z.min):Z.min,X.oneofs)q._min="min"}if(Z.max!=null&&Z.hasOwnProperty("max")){if(q.max=X.json&&!isFinite(Z.max)?String(Z.max):Z.max,X.oneofs)q._max="max"}if(Z.zeroThreshold!=null&&Z.hasOwnProperty("zeroThreshold"))q.zeroThreshold=X.json&&!isFinite(Z.zeroThreshold)?String(Z.zeroThreshold):Z.zeroThreshold;return q},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(Z){if(Z===void 0)Z="type.googleapis.com";return Z+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint"},z.Buckets=function(){function J(Z){if(this.bucketCounts=[],Z){for(var X=Object.keys(Z),q=0;q<X.length;++q)if(Z[X[q]]!=null)this[X[q]]=Z[X[q]]}}return J.prototype.offset=null,J.prototype.bucketCounts=B.emptyArray,J.create=function(X){return new J(X)},J.encode=function(X,q){if(!q)q=w.create();if(X.offset!=null&&Object.hasOwnProperty.call(X,"offset"))q.uint32(8).sint32(X.offset);if(X.bucketCounts!=null&&X.bucketCounts.length){q.uint32(18).fork();for(var F=0;F<X.bucketCounts.length;++F)q.uint64(X.bucketCounts[F]);q.ldelim()}return q},J.encodeDelimited=function(X,q){return this.encode(X,q).ldelim()},J.decode=function(X,q,F){if(!(X instanceof I))X=I.create(X);var H=q===void 0?X.len:X.pos+q,N=new O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;while(X.pos<H){var C=X.uint32();if(C===F)break;switch(C>>>3){case 1:{N.offset=X.sint32();break}case 2:{if(!(N.bucketCounts&&N.bucketCounts.length))N.bucketCounts=[];if((C&7)===2){var U=X.uint32()+X.pos;while(X.pos<U)N.bucketCounts.push(X.uint64())}else N.bucketCounts.push(X.uint64());break}default:X.skipType(C&7);break}}return N},J.decodeDelimited=function(X){if(!(X instanceof I))X=new I(X);return this.decode(X,X.uint32())},J.verify=function(X){if(typeof X!=="object"||X===null)return"object expected";if(X.offset!=null&&X.hasOwnProperty("offset")){if(!B.isInteger(X.offset))return"offset: integer expected"}if(X.bucketCounts!=null&&X.hasOwnProperty("bucketCounts")){if(!Array.isArray(X.bucketCounts))return"bucketCounts: array expected";for(var q=0;q<X.bucketCounts.length;++q)if(!B.isInteger(X.bucketCounts[q])&&!(X.bucketCounts[q]&&B.isInteger(X.bucketCounts[q].low)&&B.isInteger(X.bucketCounts[q].high)))return"bucketCounts: integer|Long[] expected"}return null},J.fromObject=function(X){if(X instanceof O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets)return X;var q=new O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;if(X.offset!=null)q.offset=X.offset|0;if(X.bucketCounts){if(!Array.isArray(X.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.bucketCounts: array expected");q.bucketCounts=[];for(var F=0;F<X.bucketCounts.length;++F)if(B.Long)(q.bucketCounts[F]=B.Long.fromValue(X.bucketCounts[F])).unsigned=!0;else if(typeof X.bucketCounts[F]==="string")q.bucketCounts[F]=parseInt(X.bucketCounts[F],10);else if(typeof X.bucketCounts[F]==="number")q.bucketCounts[F]=X.bucketCounts[F];else if(typeof X.bucketCounts[F]==="object")q.bucketCounts[F]=new B.LongBits(X.bucketCounts[F].low>>>0,X.bucketCounts[F].high>>>0).toNumber(!0)}return q},J.toObject=function(X,q){if(!q)q={};var F={};if(q.arrays||q.defaults)F.bucketCounts=[];if(q.defaults)F.offset=0;if(X.offset!=null&&X.hasOwnProperty("offset"))F.offset=X.offset;if(X.bucketCounts&&X.bucketCounts.length){F.bucketCounts=[];for(var H=0;H<X.bucketCounts.length;++H)if(typeof X.bucketCounts[H]==="number")F.bucketCounts[H]=q.longs===String?String(X.bucketCounts[H]):X.bucketCounts[H];else F.bucketCounts[H]=q.longs===String?B.Long.prototype.toString.call(X.bucketCounts[H]):q.longs===Number?new B.LongBits(X.bucketCounts[H].low>>>0,X.bucketCounts[H].high>>>0).toNumber(!0):X.bucketCounts[H]}return F},J.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},J.getTypeUrl=function(X){if(X===void 0)X="type.googleapis.com";return X+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets"},J}(),z}(),K.SummaryDataPoint=function(){function z(W){if(this.attributes=[],this.quantileValues=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.attributes=B.emptyArray,z.prototype.startTimeUnixNano=null,z.prototype.timeUnixNano=null,z.prototype.count=null,z.prototype.sum=null,z.prototype.quantileValues=B.emptyArray,z.prototype.flags=null,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.startTimeUnixNano!=null&&Object.hasOwnProperty.call(J,"startTimeUnixNano"))Z.uint32(17).fixed64(J.startTimeUnixNano);if(J.timeUnixNano!=null&&Object.hasOwnProperty.call(J,"timeUnixNano"))Z.uint32(25).fixed64(J.timeUnixNano);if(J.count!=null&&Object.hasOwnProperty.call(J,"count"))Z.uint32(33).fixed64(J.count);if(J.sum!=null&&Object.hasOwnProperty.call(J,"sum"))Z.uint32(41).double(J.sum);if(J.quantileValues!=null&&J.quantileValues.length)for(var X=0;X<J.quantileValues.length;++X)O.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.encode(J.quantileValues[X],Z.uint32(50).fork()).ldelim();if(J.attributes!=null&&J.attributes.length)for(var X=0;X<J.attributes.length;++X)O.opentelemetry.proto.common.v1.KeyValue.encode(J.attributes[X],Z.uint32(58).fork()).ldelim();if(J.flags!=null&&Object.hasOwnProperty.call(J,"flags"))Z.uint32(64).uint32(J.flags);return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.metrics.v1.SummaryDataPoint;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 7:{if(!(F.attributes&&F.attributes.length))F.attributes=[];F.attributes.push(O.opentelemetry.proto.common.v1.KeyValue.decode(J,J.uint32()));break}case 2:{F.startTimeUnixNano=J.fixed64();break}case 3:{F.timeUnixNano=J.fixed64();break}case 4:{F.count=J.fixed64();break}case 5:{F.sum=J.double();break}case 6:{if(!(F.quantileValues&&F.quantileValues.length))F.quantileValues=[];F.quantileValues.push(O.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.decode(J,J.uint32()));break}case 8:{F.flags=J.uint32();break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.attributes!=null&&J.hasOwnProperty("attributes")){if(!Array.isArray(J.attributes))return"attributes: array expected";for(var Z=0;Z<J.attributes.length;++Z){var X=O.opentelemetry.proto.common.v1.KeyValue.verify(J.attributes[Z]);if(X)return"attributes."+X}}if(J.startTimeUnixNano!=null&&J.hasOwnProperty("startTimeUnixNano")){if(!B.isInteger(J.startTimeUnixNano)&&!(J.startTimeUnixNano&&B.isInteger(J.startTimeUnixNano.low)&&B.isInteger(J.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected"}if(J.timeUnixNano!=null&&J.hasOwnProperty("timeUnixNano")){if(!B.isInteger(J.timeUnixNano)&&!(J.timeUnixNano&&B.isInteger(J.timeUnixNano.low)&&B.isInteger(J.timeUnixNano.high)))return"timeUnixNano: integer|Long expected"}if(J.count!=null&&J.hasOwnProperty("count")){if(!B.isInteger(J.count)&&!(J.count&&B.isInteger(J.count.low)&&B.isInteger(J.count.high)))return"count: integer|Long expected"}if(J.sum!=null&&J.hasOwnProperty("sum")){if(typeof J.sum!=="number")return"sum: number expected"}if(J.quantileValues!=null&&J.hasOwnProperty("quantileValues")){if(!Array.isArray(J.quantileValues))return"quantileValues: array expected";for(var Z=0;Z<J.quantileValues.length;++Z){var X=O.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.verify(J.quantileValues[Z]);if(X)return"quantileValues."+X}}if(J.flags!=null&&J.hasOwnProperty("flags")){if(!B.isInteger(J.flags))return"flags: integer expected"}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.metrics.v1.SummaryDataPoint)return J;var Z=new O.opentelemetry.proto.metrics.v1.SummaryDataPoint;if(J.attributes){if(!Array.isArray(J.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: array expected");Z.attributes=[];for(var X=0;X<J.attributes.length;++X){if(typeof J.attributes[X]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: object expected");Z.attributes[X]=O.opentelemetry.proto.common.v1.KeyValue.fromObject(J.attributes[X])}}if(J.startTimeUnixNano!=null){if(B.Long)(Z.startTimeUnixNano=B.Long.fromValue(J.startTimeUnixNano)).unsigned=!1;else if(typeof J.startTimeUnixNano==="string")Z.startTimeUnixNano=parseInt(J.startTimeUnixNano,10);else if(typeof J.startTimeUnixNano==="number")Z.startTimeUnixNano=J.startTimeUnixNano;else if(typeof J.startTimeUnixNano==="object")Z.startTimeUnixNano=new B.LongBits(J.startTimeUnixNano.low>>>0,J.startTimeUnixNano.high>>>0).toNumber()}if(J.timeUnixNano!=null){if(B.Long)(Z.timeUnixNano=B.Long.fromValue(J.timeUnixNano)).unsigned=!1;else if(typeof J.timeUnixNano==="string")Z.timeUnixNano=parseInt(J.timeUnixNano,10);else if(typeof J.timeUnixNano==="number")Z.timeUnixNano=J.timeUnixNano;else if(typeof J.timeUnixNano==="object")Z.timeUnixNano=new B.LongBits(J.timeUnixNano.low>>>0,J.timeUnixNano.high>>>0).toNumber()}if(J.count!=null){if(B.Long)(Z.count=B.Long.fromValue(J.count)).unsigned=!1;else if(typeof J.count==="string")Z.count=parseInt(J.count,10);else if(typeof J.count==="number")Z.count=J.count;else if(typeof J.count==="object")Z.count=new B.LongBits(J.count.low>>>0,J.count.high>>>0).toNumber()}if(J.sum!=null)Z.sum=Number(J.sum);if(J.quantileValues){if(!Array.isArray(J.quantileValues))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: array expected");Z.quantileValues=[];for(var X=0;X<J.quantileValues.length;++X){if(typeof J.quantileValues[X]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: object expected");Z.quantileValues[X]=O.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.fromObject(J.quantileValues[X])}}if(J.flags!=null)Z.flags=J.flags>>>0;return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.quantileValues=[],X.attributes=[];if(Z.defaults){if(B.Long){var q=new B.Long(0,0,!1);X.startTimeUnixNano=Z.longs===String?q.toString():Z.longs===Number?q.toNumber():q}else X.startTimeUnixNano=Z.longs===String?"0":0;if(B.Long){var q=new B.Long(0,0,!1);X.timeUnixNano=Z.longs===String?q.toString():Z.longs===Number?q.toNumber():q}else X.timeUnixNano=Z.longs===String?"0":0;if(B.Long){var q=new B.Long(0,0,!1);X.count=Z.longs===String?q.toString():Z.longs===Number?q.toNumber():q}else X.count=Z.longs===String?"0":0;X.sum=0,X.flags=0}if(J.startTimeUnixNano!=null&&J.hasOwnProperty("startTimeUnixNano"))if(typeof J.startTimeUnixNano==="number")X.startTimeUnixNano=Z.longs===String?String(J.startTimeUnixNano):J.startTimeUnixNano;else X.startTimeUnixNano=Z.longs===String?B.Long.prototype.toString.call(J.startTimeUnixNano):Z.longs===Number?new B.LongBits(J.startTimeUnixNano.low>>>0,J.startTimeUnixNano.high>>>0).toNumber():J.startTimeUnixNano;if(J.timeUnixNano!=null&&J.hasOwnProperty("timeUnixNano"))if(typeof J.timeUnixNano==="number")X.timeUnixNano=Z.longs===String?String(J.timeUnixNano):J.timeUnixNano;else X.timeUnixNano=Z.longs===String?B.Long.prototype.toString.call(J.timeUnixNano):Z.longs===Number?new B.LongBits(J.timeUnixNano.low>>>0,J.timeUnixNano.high>>>0).toNumber():J.timeUnixNano;if(J.count!=null&&J.hasOwnProperty("count"))if(typeof J.count==="number")X.count=Z.longs===String?String(J.count):J.count;else X.count=Z.longs===String?B.Long.prototype.toString.call(J.count):Z.longs===Number?new B.LongBits(J.count.low>>>0,J.count.high>>>0).toNumber():J.count;if(J.sum!=null&&J.hasOwnProperty("sum"))X.sum=Z.json&&!isFinite(J.sum)?String(J.sum):J.sum;if(J.quantileValues&&J.quantileValues.length){X.quantileValues=[];for(var F=0;F<J.quantileValues.length;++F)X.quantileValues[F]=O.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.toObject(J.quantileValues[F],Z)}if(J.attributes&&J.attributes.length){X.attributes=[];for(var F=0;F<J.attributes.length;++F)X.attributes[F]=O.opentelemetry.proto.common.v1.KeyValue.toObject(J.attributes[F],Z)}if(J.flags!=null&&J.hasOwnProperty("flags"))X.flags=J.flags;return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.metrics.v1.SummaryDataPoint"},z.ValueAtQuantile=function(){function W(J){if(J){for(var Z=Object.keys(J),X=0;X<Z.length;++X)if(J[Z[X]]!=null)this[Z[X]]=J[Z[X]]}}return W.prototype.quantile=null,W.prototype.value=null,W.create=function(Z){return new W(Z)},W.encode=function(Z,X){if(!X)X=w.create();if(Z.quantile!=null&&Object.hasOwnProperty.call(Z,"quantile"))X.uint32(9).double(Z.quantile);if(Z.value!=null&&Object.hasOwnProperty.call(Z,"value"))X.uint32(17).double(Z.value);return X},W.encodeDelimited=function(Z,X){return this.encode(Z,X).ldelim()},W.decode=function(Z,X,q){if(!(Z instanceof I))Z=I.create(Z);var F=X===void 0?Z.len:Z.pos+X,H=new O.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;while(Z.pos<F){var N=Z.uint32();if(N===q)break;switch(N>>>3){case 1:{H.quantile=Z.double();break}case 2:{H.value=Z.double();break}default:Z.skipType(N&7);break}}return H},W.decodeDelimited=function(Z){if(!(Z instanceof I))Z=new I(Z);return this.decode(Z,Z.uint32())},W.verify=function(Z){if(typeof Z!=="object"||Z===null)return"object expected";if(Z.quantile!=null&&Z.hasOwnProperty("quantile")){if(typeof Z.quantile!=="number")return"quantile: number expected"}if(Z.value!=null&&Z.hasOwnProperty("value")){if(typeof Z.value!=="number")return"value: number expected"}return null},W.fromObject=function(Z){if(Z instanceof O.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile)return Z;var X=new O.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;if(Z.quantile!=null)X.quantile=Number(Z.quantile);if(Z.value!=null)X.value=Number(Z.value);return X},W.toObject=function(Z,X){if(!X)X={};var q={};if(X.defaults)q.quantile=0,q.value=0;if(Z.quantile!=null&&Z.hasOwnProperty("quantile"))q.quantile=X.json&&!isFinite(Z.quantile)?String(Z.quantile):Z.quantile;if(Z.value!=null&&Z.hasOwnProperty("value"))q.value=X.json&&!isFinite(Z.value)?String(Z.value):Z.value;return q},W.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},W.getTypeUrl=function(Z){if(Z===void 0)Z="type.googleapis.com";return Z+"/opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile"},W}(),z}(),K.Exemplar=function(){function z(J){if(this.filteredAttributes=[],J){for(var Z=Object.keys(J),X=0;X<Z.length;++X)if(J[Z[X]]!=null)this[Z[X]]=J[Z[X]]}}z.prototype.filteredAttributes=B.emptyArray,z.prototype.timeUnixNano=null,z.prototype.asDouble=null,z.prototype.asInt=null,z.prototype.spanId=null,z.prototype.traceId=null;var W;return Object.defineProperty(z.prototype,"value",{get:B.oneOfGetter(W=["asDouble","asInt"]),set:B.oneOfSetter(W)}),z.create=function(Z){return new z(Z)},z.encode=function(Z,X){if(!X)X=w.create();if(Z.timeUnixNano!=null&&Object.hasOwnProperty.call(Z,"timeUnixNano"))X.uint32(17).fixed64(Z.timeUnixNano);if(Z.asDouble!=null&&Object.hasOwnProperty.call(Z,"asDouble"))X.uint32(25).double(Z.asDouble);if(Z.spanId!=null&&Object.hasOwnProperty.call(Z,"spanId"))X.uint32(34).bytes(Z.spanId);if(Z.traceId!=null&&Object.hasOwnProperty.call(Z,"traceId"))X.uint32(42).bytes(Z.traceId);if(Z.asInt!=null&&Object.hasOwnProperty.call(Z,"asInt"))X.uint32(49).sfixed64(Z.asInt);if(Z.filteredAttributes!=null&&Z.filteredAttributes.length)for(var q=0;q<Z.filteredAttributes.length;++q)O.opentelemetry.proto.common.v1.KeyValue.encode(Z.filteredAttributes[q],X.uint32(58).fork()).ldelim();return X},z.encodeDelimited=function(Z,X){return this.encode(Z,X).ldelim()},z.decode=function(Z,X,q){if(!(Z instanceof I))Z=I.create(Z);var F=X===void 0?Z.len:Z.pos+X,H=new O.opentelemetry.proto.metrics.v1.Exemplar;while(Z.pos<F){var N=Z.uint32();if(N===q)break;switch(N>>>3){case 7:{if(!(H.filteredAttributes&&H.filteredAttributes.length))H.filteredAttributes=[];H.filteredAttributes.push(O.opentelemetry.proto.common.v1.KeyValue.decode(Z,Z.uint32()));break}case 2:{H.timeUnixNano=Z.fixed64();break}case 3:{H.asDouble=Z.double();break}case 6:{H.asInt=Z.sfixed64();break}case 4:{H.spanId=Z.bytes();break}case 5:{H.traceId=Z.bytes();break}default:Z.skipType(N&7);break}}return H},z.decodeDelimited=function(Z){if(!(Z instanceof I))Z=new I(Z);return this.decode(Z,Z.uint32())},z.verify=function(Z){if(typeof Z!=="object"||Z===null)return"object expected";var X={};if(Z.filteredAttributes!=null&&Z.hasOwnProperty("filteredAttributes")){if(!Array.isArray(Z.filteredAttributes))return"filteredAttributes: array expected";for(var q=0;q<Z.filteredAttributes.length;++q){var F=O.opentelemetry.proto.common.v1.KeyValue.verify(Z.filteredAttributes[q]);if(F)return"filteredAttributes."+F}}if(Z.timeUnixNano!=null&&Z.hasOwnProperty("timeUnixNano")){if(!B.isInteger(Z.timeUnixNano)&&!(Z.timeUnixNano&&B.isInteger(Z.timeUnixNano.low)&&B.isInteger(Z.timeUnixNano.high)))return"timeUnixNano: integer|Long expected"}if(Z.asDouble!=null&&Z.hasOwnProperty("asDouble")){if(X.value=1,typeof Z.asDouble!=="number")return"asDouble: number expected"}if(Z.asInt!=null&&Z.hasOwnProperty("asInt")){if(X.value===1)return"value: multiple values";if(X.value=1,!B.isInteger(Z.asInt)&&!(Z.asInt&&B.isInteger(Z.asInt.low)&&B.isInteger(Z.asInt.high)))return"asInt: integer|Long expected"}if(Z.spanId!=null&&Z.hasOwnProperty("spanId")){if(!(Z.spanId&&typeof Z.spanId.length==="number"||B.isString(Z.spanId)))return"spanId: buffer expected"}if(Z.traceId!=null&&Z.hasOwnProperty("traceId")){if(!(Z.traceId&&typeof Z.traceId.length==="number"||B.isString(Z.traceId)))return"traceId: buffer expected"}return null},z.fromObject=function(Z){if(Z instanceof O.opentelemetry.proto.metrics.v1.Exemplar)return Z;var X=new O.opentelemetry.proto.metrics.v1.Exemplar;if(Z.filteredAttributes){if(!Array.isArray(Z.filteredAttributes))throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: array expected");X.filteredAttributes=[];for(var q=0;q<Z.filteredAttributes.length;++q){if(typeof Z.filteredAttributes[q]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: object expected");X.filteredAttributes[q]=O.opentelemetry.proto.common.v1.KeyValue.fromObject(Z.filteredAttributes[q])}}if(Z.timeUnixNano!=null){if(B.Long)(X.timeUnixNano=B.Long.fromValue(Z.timeUnixNano)).unsigned=!1;else if(typeof Z.timeUnixNano==="string")X.timeUnixNano=parseInt(Z.timeUnixNano,10);else if(typeof Z.timeUnixNano==="number")X.timeUnixNano=Z.timeUnixNano;else if(typeof Z.timeUnixNano==="object")X.timeUnixNano=new B.LongBits(Z.timeUnixNano.low>>>0,Z.timeUnixNano.high>>>0).toNumber()}if(Z.asDouble!=null)X.asDouble=Number(Z.asDouble);if(Z.asInt!=null){if(B.Long)(X.asInt=B.Long.fromValue(Z.asInt)).unsigned=!1;else if(typeof Z.asInt==="string")X.asInt=parseInt(Z.asInt,10);else if(typeof Z.asInt==="number")X.asInt=Z.asInt;else if(typeof Z.asInt==="object")X.asInt=new B.LongBits(Z.asInt.low>>>0,Z.asInt.high>>>0).toNumber()}if(Z.spanId!=null){if(typeof Z.spanId==="string")B.base64.decode(Z.spanId,X.spanId=B.newBuffer(B.base64.length(Z.spanId)),0);else if(Z.spanId.length>=0)X.spanId=Z.spanId}if(Z.traceId!=null){if(typeof Z.traceId==="string")B.base64.decode(Z.traceId,X.traceId=B.newBuffer(B.base64.length(Z.traceId)),0);else if(Z.traceId.length>=0)X.traceId=Z.traceId}return X},z.toObject=function(Z,X){if(!X)X={};var q={};if(X.arrays||X.defaults)q.filteredAttributes=[];if(X.defaults){if(B.Long){var F=new B.Long(0,0,!1);q.timeUnixNano=X.longs===String?F.toString():X.longs===Number?F.toNumber():F}else q.timeUnixNano=X.longs===String?"0":0;if(X.bytes===String)q.spanId="";else if(q.spanId=[],X.bytes!==Array)q.spanId=B.newBuffer(q.spanId);if(X.bytes===String)q.traceId="";else if(q.traceId=[],X.bytes!==Array)q.traceId=B.newBuffer(q.traceId)}if(Z.timeUnixNano!=null&&Z.hasOwnProperty("timeUnixNano"))if(typeof Z.timeUnixNano==="number")q.timeUnixNano=X.longs===String?String(Z.timeUnixNano):Z.timeUnixNano;else q.timeUnixNano=X.longs===String?B.Long.prototype.toString.call(Z.timeUnixNano):X.longs===Number?new B.LongBits(Z.timeUnixNano.low>>>0,Z.timeUnixNano.high>>>0).toNumber():Z.timeUnixNano;if(Z.asDouble!=null&&Z.hasOwnProperty("asDouble")){if(q.asDouble=X.json&&!isFinite(Z.asDouble)?String(Z.asDouble):Z.asDouble,X.oneofs)q.value="asDouble"}if(Z.spanId!=null&&Z.hasOwnProperty("spanId"))q.spanId=X.bytes===String?B.base64.encode(Z.spanId,0,Z.spanId.length):X.bytes===Array?Array.prototype.slice.call(Z.spanId):Z.spanId;if(Z.traceId!=null&&Z.hasOwnProperty("traceId"))q.traceId=X.bytes===String?B.base64.encode(Z.traceId,0,Z.traceId.length):X.bytes===Array?Array.prototype.slice.call(Z.traceId):Z.traceId;if(Z.asInt!=null&&Z.hasOwnProperty("asInt")){if(typeof Z.asInt==="number")q.asInt=X.longs===String?String(Z.asInt):Z.asInt;else q.asInt=X.longs===String?B.Long.prototype.toString.call(Z.asInt):X.longs===Number?new B.LongBits(Z.asInt.low>>>0,Z.asInt.high>>>0).toNumber():Z.asInt;if(X.oneofs)q.value="asInt"}if(Z.filteredAttributes&&Z.filteredAttributes.length){q.filteredAttributes=[];for(var H=0;H<Z.filteredAttributes.length;++H)q.filteredAttributes[H]=O.opentelemetry.proto.common.v1.KeyValue.toObject(Z.filteredAttributes[H],X)}return q},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(Z){if(Z===void 0)Z="type.googleapis.com";return Z+"/opentelemetry.proto.metrics.v1.Exemplar"},z}(),K}(),G}(),Y.logs=function(){var G={};return G.v1=function(){var K={};return K.LogsData=function(){function z(W){if(this.resourceLogs=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.resourceLogs=B.emptyArray,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.resourceLogs!=null&&J.resourceLogs.length)for(var X=0;X<J.resourceLogs.length;++X)O.opentelemetry.proto.logs.v1.ResourceLogs.encode(J.resourceLogs[X],Z.uint32(10).fork()).ldelim();return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.logs.v1.LogsData;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{if(!(F.resourceLogs&&F.resourceLogs.length))F.resourceLogs=[];F.resourceLogs.push(O.opentelemetry.proto.logs.v1.ResourceLogs.decode(J,J.uint32()));break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.resourceLogs!=null&&J.hasOwnProperty("resourceLogs")){if(!Array.isArray(J.resourceLogs))return"resourceLogs: array expected";for(var Z=0;Z<J.resourceLogs.length;++Z){var X=O.opentelemetry.proto.logs.v1.ResourceLogs.verify(J.resourceLogs[Z]);if(X)return"resourceLogs."+X}}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.logs.v1.LogsData)return J;var Z=new O.opentelemetry.proto.logs.v1.LogsData;if(J.resourceLogs){if(!Array.isArray(J.resourceLogs))throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: array expected");Z.resourceLogs=[];for(var X=0;X<J.resourceLogs.length;++X){if(typeof J.resourceLogs[X]!=="object")throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: object expected");Z.resourceLogs[X]=O.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(J.resourceLogs[X])}}return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.resourceLogs=[];if(J.resourceLogs&&J.resourceLogs.length){X.resourceLogs=[];for(var q=0;q<J.resourceLogs.length;++q)X.resourceLogs[q]=O.opentelemetry.proto.logs.v1.ResourceLogs.toObject(J.resourceLogs[q],Z)}return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.logs.v1.LogsData"},z}(),K.ResourceLogs=function(){function z(W){if(this.scopeLogs=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.resource=null,z.prototype.scopeLogs=B.emptyArray,z.prototype.schemaUrl=null,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.resource!=null&&Object.hasOwnProperty.call(J,"resource"))O.opentelemetry.proto.resource.v1.Resource.encode(J.resource,Z.uint32(10).fork()).ldelim();if(J.scopeLogs!=null&&J.scopeLogs.length)for(var X=0;X<J.scopeLogs.length;++X)O.opentelemetry.proto.logs.v1.ScopeLogs.encode(J.scopeLogs[X],Z.uint32(18).fork()).ldelim();if(J.schemaUrl!=null&&Object.hasOwnProperty.call(J,"schemaUrl"))Z.uint32(26).string(J.schemaUrl);return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.logs.v1.ResourceLogs;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{F.resource=O.opentelemetry.proto.resource.v1.Resource.decode(J,J.uint32());break}case 2:{if(!(F.scopeLogs&&F.scopeLogs.length))F.scopeLogs=[];F.scopeLogs.push(O.opentelemetry.proto.logs.v1.ScopeLogs.decode(J,J.uint32()));break}case 3:{F.schemaUrl=J.string();break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.resource!=null&&J.hasOwnProperty("resource")){var Z=O.opentelemetry.proto.resource.v1.Resource.verify(J.resource);if(Z)return"resource."+Z}if(J.scopeLogs!=null&&J.hasOwnProperty("scopeLogs")){if(!Array.isArray(J.scopeLogs))return"scopeLogs: array expected";for(var X=0;X<J.scopeLogs.length;++X){var Z=O.opentelemetry.proto.logs.v1.ScopeLogs.verify(J.scopeLogs[X]);if(Z)return"scopeLogs."+Z}}if(J.schemaUrl!=null&&J.hasOwnProperty("schemaUrl")){if(!B.isString(J.schemaUrl))return"schemaUrl: string expected"}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.logs.v1.ResourceLogs)return J;var Z=new O.opentelemetry.proto.logs.v1.ResourceLogs;if(J.resource!=null){if(typeof J.resource!=="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.resource: object expected");Z.resource=O.opentelemetry.proto.resource.v1.Resource.fromObject(J.resource)}if(J.scopeLogs){if(!Array.isArray(J.scopeLogs))throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: array expected");Z.scopeLogs=[];for(var X=0;X<J.scopeLogs.length;++X){if(typeof J.scopeLogs[X]!=="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: object expected");Z.scopeLogs[X]=O.opentelemetry.proto.logs.v1.ScopeLogs.fromObject(J.scopeLogs[X])}}if(J.schemaUrl!=null)Z.schemaUrl=String(J.schemaUrl);return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.scopeLogs=[];if(Z.defaults)X.resource=null,X.schemaUrl="";if(J.resource!=null&&J.hasOwnProperty("resource"))X.resource=O.opentelemetry.proto.resource.v1.Resource.toObject(J.resource,Z);if(J.scopeLogs&&J.scopeLogs.length){X.scopeLogs=[];for(var q=0;q<J.scopeLogs.length;++q)X.scopeLogs[q]=O.opentelemetry.proto.logs.v1.ScopeLogs.toObject(J.scopeLogs[q],Z)}if(J.schemaUrl!=null&&J.hasOwnProperty("schemaUrl"))X.schemaUrl=J.schemaUrl;return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.logs.v1.ResourceLogs"},z}(),K.ScopeLogs=function(){function z(W){if(this.logRecords=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.scope=null,z.prototype.logRecords=B.emptyArray,z.prototype.schemaUrl=null,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.scope!=null&&Object.hasOwnProperty.call(J,"scope"))O.opentelemetry.proto.common.v1.InstrumentationScope.encode(J.scope,Z.uint32(10).fork()).ldelim();if(J.logRecords!=null&&J.logRecords.length)for(var X=0;X<J.logRecords.length;++X)O.opentelemetry.proto.logs.v1.LogRecord.encode(J.logRecords[X],Z.uint32(18).fork()).ldelim();if(J.schemaUrl!=null&&Object.hasOwnProperty.call(J,"schemaUrl"))Z.uint32(26).string(J.schemaUrl);return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.logs.v1.ScopeLogs;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{F.scope=O.opentelemetry.proto.common.v1.InstrumentationScope.decode(J,J.uint32());break}case 2:{if(!(F.logRecords&&F.logRecords.length))F.logRecords=[];F.logRecords.push(O.opentelemetry.proto.logs.v1.LogRecord.decode(J,J.uint32()));break}case 3:{F.schemaUrl=J.string();break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.scope!=null&&J.hasOwnProperty("scope")){var Z=O.opentelemetry.proto.common.v1.InstrumentationScope.verify(J.scope);if(Z)return"scope."+Z}if(J.logRecords!=null&&J.hasOwnProperty("logRecords")){if(!Array.isArray(J.logRecords))return"logRecords: array expected";for(var X=0;X<J.logRecords.length;++X){var Z=O.opentelemetry.proto.logs.v1.LogRecord.verify(J.logRecords[X]);if(Z)return"logRecords."+Z}}if(J.schemaUrl!=null&&J.hasOwnProperty("schemaUrl")){if(!B.isString(J.schemaUrl))return"schemaUrl: string expected"}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.logs.v1.ScopeLogs)return J;var Z=new O.opentelemetry.proto.logs.v1.ScopeLogs;if(J.scope!=null){if(typeof J.scope!=="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.scope: object expected");Z.scope=O.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(J.scope)}if(J.logRecords){if(!Array.isArray(J.logRecords))throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: array expected");Z.logRecords=[];for(var X=0;X<J.logRecords.length;++X){if(typeof J.logRecords[X]!=="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: object expected");Z.logRecords[X]=O.opentelemetry.proto.logs.v1.LogRecord.fromObject(J.logRecords[X])}}if(J.schemaUrl!=null)Z.schemaUrl=String(J.schemaUrl);return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.logRecords=[];if(Z.defaults)X.scope=null,X.schemaUrl="";if(J.scope!=null&&J.hasOwnProperty("scope"))X.scope=O.opentelemetry.proto.common.v1.InstrumentationScope.toObject(J.scope,Z);if(J.logRecords&&J.logRecords.length){X.logRecords=[];for(var q=0;q<J.logRecords.length;++q)X.logRecords[q]=O.opentelemetry.proto.logs.v1.LogRecord.toObject(J.logRecords[q],Z)}if(J.schemaUrl!=null&&J.hasOwnProperty("schemaUrl"))X.schemaUrl=J.schemaUrl;return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.logs.v1.ScopeLogs"},z}(),K.SeverityNumber=function(){var z={},W=Object.create(z);return W[z[0]="SEVERITY_NUMBER_UNSPECIFIED"]=0,W[z[1]="SEVERITY_NUMBER_TRACE"]=1,W[z[2]="SEVERITY_NUMBER_TRACE2"]=2,W[z[3]="SEVERITY_NUMBER_TRACE3"]=3,W[z[4]="SEVERITY_NUMBER_TRACE4"]=4,W[z[5]="SEVERITY_NUMBER_DEBUG"]=5,W[z[6]="SEVERITY_NUMBER_DEBUG2"]=6,W[z[7]="SEVERITY_NUMBER_DEBUG3"]=7,W[z[8]="SEVERITY_NUMBER_DEBUG4"]=8,W[z[9]="SEVERITY_NUMBER_INFO"]=9,W[z[10]="SEVERITY_NUMBER_INFO2"]=10,W[z[11]="SEVERITY_NUMBER_INFO3"]=11,W[z[12]="SEVERITY_NUMBER_INFO4"]=12,W[z[13]="SEVERITY_NUMBER_WARN"]=13,W[z[14]="SEVERITY_NUMBER_WARN2"]=14,W[z[15]="SEVERITY_NUMBER_WARN3"]=15,W[z[16]="SEVERITY_NUMBER_WARN4"]=16,W[z[17]="SEVERITY_NUMBER_ERROR"]=17,W[z[18]="SEVERITY_NUMBER_ERROR2"]=18,W[z[19]="SEVERITY_NUMBER_ERROR3"]=19,W[z[20]="SEVERITY_NUMBER_ERROR4"]=20,W[z[21]="SEVERITY_NUMBER_FATAL"]=21,W[z[22]="SEVERITY_NUMBER_FATAL2"]=22,W[z[23]="SEVERITY_NUMBER_FATAL3"]=23,W[z[24]="SEVERITY_NUMBER_FATAL4"]=24,W}(),K.LogRecordFlags=function(){var z={},W=Object.create(z);return W[z[0]="LOG_RECORD_FLAGS_DO_NOT_USE"]=0,W[z[255]="LOG_RECORD_FLAGS_TRACE_FLAGS_MASK"]=255,W}(),K.LogRecord=function(){function z(W){if(this.attributes=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.timeUnixNano=null,z.prototype.observedTimeUnixNano=null,z.prototype.severityNumber=null,z.prototype.severityText=null,z.prototype.body=null,z.prototype.attributes=B.emptyArray,z.prototype.droppedAttributesCount=null,z.prototype.flags=null,z.prototype.traceId=null,z.prototype.spanId=null,z.prototype.eventName=null,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.timeUnixNano!=null&&Object.hasOwnProperty.call(J,"timeUnixNano"))Z.uint32(9).fixed64(J.timeUnixNano);if(J.severityNumber!=null&&Object.hasOwnProperty.call(J,"severityNumber"))Z.uint32(16).int32(J.severityNumber);if(J.severityText!=null&&Object.hasOwnProperty.call(J,"severityText"))Z.uint32(26).string(J.severityText);if(J.body!=null&&Object.hasOwnProperty.call(J,"body"))O.opentelemetry.proto.common.v1.AnyValue.encode(J.body,Z.uint32(42).fork()).ldelim();if(J.attributes!=null&&J.attributes.length)for(var X=0;X<J.attributes.length;++X)O.opentelemetry.proto.common.v1.KeyValue.encode(J.attributes[X],Z.uint32(50).fork()).ldelim();if(J.droppedAttributesCount!=null&&Object.hasOwnProperty.call(J,"droppedAttributesCount"))Z.uint32(56).uint32(J.droppedAttributesCount);if(J.flags!=null&&Object.hasOwnProperty.call(J,"flags"))Z.uint32(69).fixed32(J.flags);if(J.traceId!=null&&Object.hasOwnProperty.call(J,"traceId"))Z.uint32(74).bytes(J.traceId);if(J.spanId!=null&&Object.hasOwnProperty.call(J,"spanId"))Z.uint32(82).bytes(J.spanId);if(J.observedTimeUnixNano!=null&&Object.hasOwnProperty.call(J,"observedTimeUnixNano"))Z.uint32(89).fixed64(J.observedTimeUnixNano);if(J.eventName!=null&&Object.hasOwnProperty.call(J,"eventName"))Z.uint32(98).string(J.eventName);return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.logs.v1.LogRecord;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{F.timeUnixNano=J.fixed64();break}case 11:{F.observedTimeUnixNano=J.fixed64();break}case 2:{F.severityNumber=J.int32();break}case 3:{F.severityText=J.string();break}case 5:{F.body=O.opentelemetry.proto.common.v1.AnyValue.decode(J,J.uint32());break}case 6:{if(!(F.attributes&&F.attributes.length))F.attributes=[];F.attributes.push(O.opentelemetry.proto.common.v1.KeyValue.decode(J,J.uint32()));break}case 7:{F.droppedAttributesCount=J.uint32();break}case 8:{F.flags=J.fixed32();break}case 9:{F.traceId=J.bytes();break}case 10:{F.spanId=J.bytes();break}case 12:{F.eventName=J.string();break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.timeUnixNano!=null&&J.hasOwnProperty("timeUnixNano")){if(!B.isInteger(J.timeUnixNano)&&!(J.timeUnixNano&&B.isInteger(J.timeUnixNano.low)&&B.isInteger(J.timeUnixNano.high)))return"timeUnixNano: integer|Long expected"}if(J.observedTimeUnixNano!=null&&J.hasOwnProperty("observedTimeUnixNano")){if(!B.isInteger(J.observedTimeUnixNano)&&!(J.observedTimeUnixNano&&B.isInteger(J.observedTimeUnixNano.low)&&B.isInteger(J.observedTimeUnixNano.high)))return"observedTimeUnixNano: integer|Long expected"}if(J.severityNumber!=null&&J.hasOwnProperty("severityNumber"))switch(J.severityNumber){default:return"severityNumber: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:break}if(J.severityText!=null&&J.hasOwnProperty("severityText")){if(!B.isString(J.severityText))return"severityText: string expected"}if(J.body!=null&&J.hasOwnProperty("body")){var Z=O.opentelemetry.proto.common.v1.AnyValue.verify(J.body);if(Z)return"body."+Z}if(J.attributes!=null&&J.hasOwnProperty("attributes")){if(!Array.isArray(J.attributes))return"attributes: array expected";for(var X=0;X<J.attributes.length;++X){var Z=O.opentelemetry.proto.common.v1.KeyValue.verify(J.attributes[X]);if(Z)return"attributes."+Z}}if(J.droppedAttributesCount!=null&&J.hasOwnProperty("droppedAttributesCount")){if(!B.isInteger(J.droppedAttributesCount))return"droppedAttributesCount: integer expected"}if(J.flags!=null&&J.hasOwnProperty("flags")){if(!B.isInteger(J.flags))return"flags: integer expected"}if(J.traceId!=null&&J.hasOwnProperty("traceId")){if(!(J.traceId&&typeof J.traceId.length==="number"||B.isString(J.traceId)))return"traceId: buffer expected"}if(J.spanId!=null&&J.hasOwnProperty("spanId")){if(!(J.spanId&&typeof J.spanId.length==="number"||B.isString(J.spanId)))return"spanId: buffer expected"}if(J.eventName!=null&&J.hasOwnProperty("eventName")){if(!B.isString(J.eventName))return"eventName: string expected"}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.logs.v1.LogRecord)return J;var Z=new O.opentelemetry.proto.logs.v1.LogRecord;if(J.timeUnixNano!=null){if(B.Long)(Z.timeUnixNano=B.Long.fromValue(J.timeUnixNano)).unsigned=!1;else if(typeof J.timeUnixNano==="string")Z.timeUnixNano=parseInt(J.timeUnixNano,10);else if(typeof J.timeUnixNano==="number")Z.timeUnixNano=J.timeUnixNano;else if(typeof J.timeUnixNano==="object")Z.timeUnixNano=new B.LongBits(J.timeUnixNano.low>>>0,J.timeUnixNano.high>>>0).toNumber()}if(J.observedTimeUnixNano!=null){if(B.Long)(Z.observedTimeUnixNano=B.Long.fromValue(J.observedTimeUnixNano)).unsigned=!1;else if(typeof J.observedTimeUnixNano==="string")Z.observedTimeUnixNano=parseInt(J.observedTimeUnixNano,10);else if(typeof J.observedTimeUnixNano==="number")Z.observedTimeUnixNano=J.observedTimeUnixNano;else if(typeof J.observedTimeUnixNano==="object")Z.observedTimeUnixNano=new B.LongBits(J.observedTimeUnixNano.low>>>0,J.observedTimeUnixNano.high>>>0).toNumber()}switch(J.severityNumber){default:if(typeof J.severityNumber==="number"){Z.severityNumber=J.severityNumber;break}break;case"SEVERITY_NUMBER_UNSPECIFIED":case 0:Z.severityNumber=0;break;case"SEVERITY_NUMBER_TRACE":case 1:Z.severityNumber=1;break;case"SEVERITY_NUMBER_TRACE2":case 2:Z.severityNumber=2;break;case"SEVERITY_NUMBER_TRACE3":case 3:Z.severityNumber=3;break;case"SEVERITY_NUMBER_TRACE4":case 4:Z.severityNumber=4;break;case"SEVERITY_NUMBER_DEBUG":case 5:Z.severityNumber=5;break;case"SEVERITY_NUMBER_DEBUG2":case 6:Z.severityNumber=6;break;case"SEVERITY_NUMBER_DEBUG3":case 7:Z.severityNumber=7;break;case"SEVERITY_NUMBER_DEBUG4":case 8:Z.severityNumber=8;break;case"SEVERITY_NUMBER_INFO":case 9:Z.severityNumber=9;break;case"SEVERITY_NUMBER_INFO2":case 10:Z.severityNumber=10;break;case"SEVERITY_NUMBER_INFO3":case 11:Z.severityNumber=11;break;case"SEVERITY_NUMBER_INFO4":case 12:Z.severityNumber=12;break;case"SEVERITY_NUMBER_WARN":case 13:Z.severityNumber=13;break;case"SEVERITY_NUMBER_WARN2":case 14:Z.severityNumber=14;break;case"SEVERITY_NUMBER_WARN3":case 15:Z.severityNumber=15;break;case"SEVERITY_NUMBER_WARN4":case 16:Z.severityNumber=16;break;case"SEVERITY_NUMBER_ERROR":case 17:Z.severityNumber=17;break;case"SEVERITY_NUMBER_ERROR2":case 18:Z.severityNumber=18;break;case"SEVERITY_NUMBER_ERROR3":case 19:Z.severityNumber=19;break;case"SEVERITY_NUMBER_ERROR4":case 20:Z.severityNumber=20;break;case"SEVERITY_NUMBER_FATAL":case 21:Z.severityNumber=21;break;case"SEVERITY_NUMBER_FATAL2":case 22:Z.severityNumber=22;break;case"SEVERITY_NUMBER_FATAL3":case 23:Z.severityNumber=23;break;case"SEVERITY_NUMBER_FATAL4":case 24:Z.severityNumber=24;break}if(J.severityText!=null)Z.severityText=String(J.severityText);if(J.body!=null){if(typeof J.body!=="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.body: object expected");Z.body=O.opentelemetry.proto.common.v1.AnyValue.fromObject(J.body)}if(J.attributes){if(!Array.isArray(J.attributes))throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: array expected");Z.attributes=[];for(var X=0;X<J.attributes.length;++X){if(typeof J.attributes[X]!=="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: object expected");Z.attributes[X]=O.opentelemetry.proto.common.v1.KeyValue.fromObject(J.attributes[X])}}if(J.droppedAttributesCount!=null)Z.droppedAttributesCount=J.droppedAttributesCount>>>0;if(J.flags!=null)Z.flags=J.flags>>>0;if(J.traceId!=null){if(typeof J.traceId==="string")B.base64.decode(J.traceId,Z.traceId=B.newBuffer(B.base64.length(J.traceId)),0);else if(J.traceId.length>=0)Z.traceId=J.traceId}if(J.spanId!=null){if(typeof J.spanId==="string")B.base64.decode(J.spanId,Z.spanId=B.newBuffer(B.base64.length(J.spanId)),0);else if(J.spanId.length>=0)Z.spanId=J.spanId}if(J.eventName!=null)Z.eventName=String(J.eventName);return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.attributes=[];if(Z.defaults){if(B.Long){var q=new B.Long(0,0,!1);X.timeUnixNano=Z.longs===String?q.toString():Z.longs===Number?q.toNumber():q}else X.timeUnixNano=Z.longs===String?"0":0;if(X.severityNumber=Z.enums===String?"SEVERITY_NUMBER_UNSPECIFIED":0,X.severityText="",X.body=null,X.droppedAttributesCount=0,X.flags=0,Z.bytes===String)X.traceId="";else if(X.traceId=[],Z.bytes!==Array)X.traceId=B.newBuffer(X.traceId);if(Z.bytes===String)X.spanId="";else if(X.spanId=[],Z.bytes!==Array)X.spanId=B.newBuffer(X.spanId);if(B.Long){var q=new B.Long(0,0,!1);X.observedTimeUnixNano=Z.longs===String?q.toString():Z.longs===Number?q.toNumber():q}else X.observedTimeUnixNano=Z.longs===String?"0":0;X.eventName=""}if(J.timeUnixNano!=null&&J.hasOwnProperty("timeUnixNano"))if(typeof J.timeUnixNano==="number")X.timeUnixNano=Z.longs===String?String(J.timeUnixNano):J.timeUnixNano;else X.timeUnixNano=Z.longs===String?B.Long.prototype.toString.call(J.timeUnixNano):Z.longs===Number?new B.LongBits(J.timeUnixNano.low>>>0,J.timeUnixNano.high>>>0).toNumber():J.timeUnixNano;if(J.severityNumber!=null&&J.hasOwnProperty("severityNumber"))X.severityNumber=Z.enums===String?O.opentelemetry.proto.logs.v1.SeverityNumber[J.severityNumber]===void 0?J.severityNumber:O.opentelemetry.proto.logs.v1.SeverityNumber[J.severityNumber]:J.severityNumber;if(J.severityText!=null&&J.hasOwnProperty("severityText"))X.severityText=J.severityText;if(J.body!=null&&J.hasOwnProperty("body"))X.body=O.opentelemetry.proto.common.v1.AnyValue.toObject(J.body,Z);if(J.attributes&&J.attributes.length){X.attributes=[];for(var F=0;F<J.attributes.length;++F)X.attributes[F]=O.opentelemetry.proto.common.v1.KeyValue.toObject(J.attributes[F],Z)}if(J.droppedAttributesCount!=null&&J.hasOwnProperty("droppedAttributesCount"))X.droppedAttributesCount=J.droppedAttributesCount;if(J.flags!=null&&J.hasOwnProperty("flags"))X.flags=J.flags;if(J.traceId!=null&&J.hasOwnProperty("traceId"))X.traceId=Z.bytes===String?B.base64.encode(J.traceId,0,J.traceId.length):Z.bytes===Array?Array.prototype.slice.call(J.traceId):J.traceId;if(J.spanId!=null&&J.hasOwnProperty("spanId"))X.spanId=Z.bytes===String?B.base64.encode(J.spanId,0,J.spanId.length):Z.bytes===Array?Array.prototype.slice.call(J.spanId):J.spanId;if(J.observedTimeUnixNano!=null&&J.hasOwnProperty("observedTimeUnixNano"))if(typeof J.observedTimeUnixNano==="number")X.observedTimeUnixNano=Z.longs===String?String(J.observedTimeUnixNano):J.observedTimeUnixNano;else X.observedTimeUnixNano=Z.longs===String?B.Long.prototype.toString.call(J.observedTimeUnixNano):Z.longs===Number?new B.LongBits(J.observedTimeUnixNano.low>>>0,J.observedTimeUnixNano.high>>>0).toNumber():J.observedTimeUnixNano;if(J.eventName!=null&&J.hasOwnProperty("eventName"))X.eventName=J.eventName;return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.logs.v1.LogRecord"},z}(),K}(),G}(),Y}(),Q}();TB.exports=O});var PZ=V((MB)=>{Object.defineProperty(MB,"__esModule",{value:!0});MB.toAnyValue=MB.toKeyValue=MB.toAttributes=MB.createInstrumentationScope=MB.createResource=void 0;function Cu(Q,Y){let G={attributes:hB(Q.attributes,Y),droppedAttributesCount:0},K=Q.schemaUrl;if(K&&K!=="")G.schemaUrl=K;return G}MB.createResource=Cu;function Du(Q){return{name:Q.name,version:Q.version}}MB.createInstrumentationScope=Du;function hB(Q,Y){return Object.keys(Q).map((G)=>LB(G,Q[G],Y))}MB.toAttributes=hB;function LB(Q,Y,G){return{key:Q,value:MZ(Y,G)}}MB.toKeyValue=LB;function MZ(Q,Y){let G=typeof Q;if(G==="string")return{stringValue:Q};if(G==="number"){if(!Number.isInteger(Q))return{doubleValue:Q};return{intValue:Q}}if(G==="boolean")return{boolValue:Q};if(Q instanceof Uint8Array)return{bytesValue:Y.encodeUint8Array(Q)};if(Array.isArray(Q)){let K=Array(Q.length);for(let z=0;z<Q.length;z++)K[z]=MZ(Q[z],Y);return{arrayValue:{values:K}}}if(G==="object"&&Q!=null){let K=Object.keys(Q),z=Array(K.length);for(let W=0;W<K.length;W++)z[W]={key:K[W],value:MZ(Q[K[W]],Y)};return{kvlistValue:{values:z}}}return{}}MB.toAnyValue=MZ});var X4=V((RB)=>{Object.defineProperty(RB,"__esModule",{value:!0});RB.toLogAttributes=RB.createExportLogsServiceRequest=void 0;var wZ=PZ();function hu(Q,Y){return{resourceLogs:Mu(Q,Y)}}RB.createExportLogsServiceRequest=hu;function Lu(Q){let Y=new Map;for(let G of Q){let{resource:K,instrumentationScope:{name:z,version:W="",schemaUrl:J=""}}=G,Z=Y.get(K);if(!Z)Z=new Map,Y.set(K,Z);let X=`${z}@${W}:${J}`,q=Z.get(X);if(!q)q=[],Z.set(X,q);q.push(G)}return Y}function Mu(Q,Y){let G=Lu(Q);return Array.from(G,([K,z])=>{let W=(0,wZ.createResource)(K,Y);return{resource:W,scopeLogs:Array.from(z,([,J])=>{return{scope:(0,wZ.createInstrumentationScope)(J[0].instrumentationScope),logRecords:J.map((Z)=>Pu(Z,Y)),schemaUrl:J[0].instrumentationScope.schemaUrl}}),schemaUrl:W.schemaUrl}})}function Pu(Q,Y){return{timeUnixNano:Y.encodeHrTime(Q.hrTime),observedTimeUnixNano:Y.encodeHrTime(Q.hrTimeObserved),severityNumber:wu(Q.severityNumber),severityText:Q.severityText,body:(0,wZ.toAnyValue)(Q.body,Y),eventName:Q.eventName,attributes:wB(Q.attributes,Y),droppedAttributesCount:Q.droppedAttributesCount,flags:Q.spanContext?.traceFlags,traceId:Y.encodeOptionalSpanContext(Q.spanContext?.traceId),spanId:Y.encodeOptionalSpanContext(Q.spanContext?.spanId)}}function wu(Q){return Q}function wB(Q,Y){return Object.keys(Q).map((G)=>(0,wZ.toKeyValue)(G,Q[G],Y))}RB.toLogAttributes=wB});var _B=V((SB)=>{Object.defineProperty(SB,"__esModule",{value:!0});SB.hexToBinary=void 0;function $B(Q){if(Q>=48&&Q<=57)return Q-48;if(Q>=97&&Q<=102)return Q-87;return Q-55}function ku(Q){let Y=new Uint8Array(Q.length/2),G=0;for(let K=0;K<Q.length;K+=2){let z=$B(Q.charCodeAt(K)),W=$B(Q.charCodeAt(K+1));Y[G++]=z<<4|W}return Y}SB.hexToBinary=ku});var F1=V((bB)=>{Object.defineProperty(bB,"__esModule",{value:!0});bB.JSON_ENCODER=bB.PROTOBUF_ENCODER=bB.encodeAsString=bB.encodeAsLongBits=bB.toLongBits=bB.hrTimeToNanos=void 0;var $u=S(),yB=_B();function z4(Q){let Y=BigInt(1e9);return BigInt(Math.trunc(Q[0]))*Y+BigInt(Math.trunc(Q[1]))}bB.hrTimeToNanos=z4;function vB(Q){let Y=Number(BigInt.asUintN(32,Q)),G=Number(BigInt.asUintN(32,Q>>BigInt(32)));return{low:Y,high:G}}bB.toLongBits=vB;function xB(Q){let Y=z4(Q);return vB(Y)}bB.encodeAsLongBits=xB;function jB(Q){return z4(Q).toString()}bB.encodeAsString=jB;var Su=typeof BigInt<"u"?jB:$u.hrTimeToNanoseconds;function Y4(Q){return Q}function fu(Q){if(Q===void 0)return;return(0,yB.hexToBinary)(Q)}bB.PROTOBUF_ENCODER={encodeHrTime:xB,encodeSpanContext:yB.hexToBinary,encodeOptionalSpanContext:fu,encodeUint8Array:Y4};bB.JSON_ENCODER={encodeHrTime:Su,encodeSpanContext:Y4,encodeOptionalSpanContext:Y4,encodeUint8Array:(Q)=>{if(typeof Buffer<"u")return Buffer.from(Q).toString("base64");let Y=Array(Q.length);for(let G=0;G<Q.length;G++)Y[G]=String.fromCharCode(Q[G]);return btoa(Y.join(""))}}});var nB=V((lB)=>{Object.defineProperty(lB,"__esModule",{value:!0});lB.ProtobufLogsSerializer=void 0;var uB=LZ(),bu=X4(),du=F1(),uu=uB.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,lu=uB.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;lB.ProtobufLogsSerializer={serializeRequest:(Q)=>{let Y=(0,bu.createExportLogsServiceRequest)(Q,du.PROTOBUF_ENCODER);return lu.encode(Y).finish()},deserializeResponse:(Q)=>{return uu.decode(Q)}}});var mB=V((G4)=>{Object.defineProperty(G4,"__esModule",{value:!0});G4.ProtobufLogsSerializer=void 0;var cu=nB();Object.defineProperty(G4,"ProtobufLogsSerializer",{enumerable:!0,get:function(){return cu.ProtobufLogsSerializer}})});var RZ=V((pB)=>{Object.defineProperty(pB,"__esModule",{value:!0});pB.AggregationTemporality=void 0;var mu;(function(Q){Q[Q.DELTA=0]="DELTA",Q[Q.CUMULATIVE=1]="CUMULATIVE"})(mu=pB.AggregationTemporality||(pB.AggregationTemporality={}))});var c0=V((iB)=>{Object.defineProperty(iB,"__esModule",{value:!0});iB.DataPointType=iB.InstrumentType=void 0;var pu;(function(Q){Q.COUNTER="COUNTER",Q.GAUGE="GAUGE",Q.HISTOGRAM="HISTOGRAM",Q.UP_DOWN_COUNTER="UP_DOWN_COUNTER",Q.OBSERVABLE_COUNTER="OBSERVABLE_COUNTER",Q.OBSERVABLE_GAUGE="OBSERVABLE_GAUGE",Q.OBSERVABLE_UP_DOWN_COUNTER="OBSERVABLE_UP_DOWN_COUNTER"})(pu=iB.InstrumentType||(iB.InstrumentType={}));var gu;(function(Q){Q[Q.HISTOGRAM=0]="HISTOGRAM",Q[Q.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",Q[Q.GAUGE=2]="GAUGE",Q[Q.SUM=3]="SUM"})(gu=iB.DataPointType||(iB.DataPointType={}))});var E0=V((oB)=>{Object.defineProperty(oB,"__esModule",{value:!0});oB.equalsCaseInsensitive=oB.binarySearchUB=oB.setEquals=oB.callWithTimeout=oB.TimeoutError=oB.instrumentationScopeId=oB.hashAttributes=void 0;function iu(Q){let Y=Object.keys(Q);if(Y.length===0)return"";return Y=Y.sort(),JSON.stringify(Y.map((G)=>[G,Q[G]]))}oB.hashAttributes=iu;function ou(Q){return`${Q.name}:${Q.version??""}:${Q.schemaUrl??""}`}oB.instrumentationScopeId=ou;class kZ extends Error{constructor(Q){super(Q);Object.setPrototypeOf(this,kZ.prototype)}}oB.TimeoutError=kZ;function au(Q,Y){let G,K=new Promise(function(W,J){G=setTimeout(function(){J(new kZ("Operation timed out."))},Y)});return Promise.race([Q,K]).then((z)=>{return clearTimeout(G),z},(z)=>{throw clearTimeout(G),z})}oB.callWithTimeout=au;function tu(Q,Y){if(Q.size!==Y.size)return!1;for(let G of Q)if(!Y.has(G))return!1;return!0}oB.setEquals=tu;function ru(Q,Y){let G=0,K=Q.length-1,z=Q.length;while(K>=G){let W=G+Math.trunc((K-G)/2);if(Q[W]<Y)G=W+1;else z=W,K=W-1}return z}oB.binarySearchUB=ru;function su(Q,Y){return Q.toLowerCase()===Y.toLowerCase()}oB.equalsCaseInsensitive=su});var _1=V((tB)=>{Object.defineProperty(tB,"__esModule",{value:!0});tB.AggregatorKind=void 0;var zl;(function(Q){Q[Q.DROP=0]="DROP",Q[Q.SUM=1]="SUM",Q[Q.LAST_VALUE=2]="LAST_VALUE",Q[Q.HISTOGRAM=3]="HISTOGRAM",Q[Q.EXPONENTIAL_HISTOGRAM=4]="EXPONENTIAL_HISTOGRAM"})(zl=tB.AggregatorKind||(tB.AggregatorKind={}))});var ZV=V((sB)=>{Object.defineProperty(sB,"__esModule",{value:!0});sB.DropAggregator=void 0;var Gl=_1();class rB{kind=Gl.AggregatorKind.DROP;createAccumulation(){return}merge(Q,Y){return}diff(Q,Y){return}toMetricData(Q,Y,G,K){return}}sB.DropAggregator=rB});var YV=V((QV)=>{Object.defineProperty(QV,"__esModule",{value:!0});QV.HistogramAggregator=QV.HistogramAccumulation=void 0;var Wl=_1(),D6=c0(),ql=E0();function Kl(Q){let Y=Q.map(()=>0);return Y.push(0),{buckets:{boundaries:Q,counts:Y},sum:0,count:0,hasMinMax:!1,min:1/0,max:-1/0}}class U6{startTime;_boundaries;_recordMinMax;_current;constructor(Q,Y,G=!0,K=Kl(Y)){this.startTime=Q,this._boundaries=Y,this._recordMinMax=G,this._current=K}record(Q){if(Number.isNaN(Q))return;if(this._current.count+=1,this._current.sum+=Q,this._recordMinMax)this._current.min=Math.min(Q,this._current.min),this._current.max=Math.max(Q,this._current.max),this._current.hasMinMax=!0;let Y=(0,ql.binarySearchUB)(this._boundaries,Q);this._current.buckets.counts[Y]+=1}setStartTime(Q){this.startTime=Q}toPointValue(){return this._current}}QV.HistogramAccumulation=U6;class JV{kind=Wl.AggregatorKind.HISTOGRAM;_boundaries;_recordMinMax;constructor(Q,Y){this._boundaries=Q,this._recordMinMax=Y}createAccumulation(Q){return new U6(Q,this._boundaries,this._recordMinMax)}merge(Q,Y){let G=Q.toPointValue(),K=Y.toPointValue(),z=G.buckets.counts,W=K.buckets.counts,J=Array(z.length);for(let q=0;q<z.length;q++)J[q]=z[q]+W[q];let Z=1/0,X=-1/0;if(this._recordMinMax){if(G.hasMinMax&&K.hasMinMax)Z=Math.min(G.min,K.min),X=Math.max(G.max,K.max);else if(G.hasMinMax)Z=G.min,X=G.max;else if(K.hasMinMax)Z=K.min,X=K.max}return new U6(Q.startTime,G.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:G.buckets.boundaries,counts:J},count:G.count+K.count,sum:G.sum+K.sum,hasMinMax:this._recordMinMax&&(G.hasMinMax||K.hasMinMax),min:Z,max:X})}diff(Q,Y){let G=Q.toPointValue(),K=Y.toPointValue(),z=G.buckets.counts,W=K.buckets.counts,J=Array(z.length);for(let Z=0;Z<z.length;Z++)J[Z]=W[Z]-z[Z];return new U6(Y.startTime,G.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:G.buckets.boundaries,counts:J},count:K.count-G.count,sum:K.sum-G.sum,hasMinMax:!1,min:1/0,max:-1/0})}toMetricData(Q,Y,G,K){return{descriptor:Q,aggregationTemporality:Y,dataPointType:D6.DataPointType.HISTOGRAM,dataPoints:G.map(([z,W])=>{let J=W.toPointValue(),Z=Q.type===D6.InstrumentType.GAUGE||Q.type===D6.InstrumentType.UP_DOWN_COUNTER||Q.type===D6.InstrumentType.OBSERVABLE_GAUGE||Q.type===D6.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:z,startTime:W.startTime,endTime:K,value:{min:J.hasMinMax?J.min:void 0,max:J.hasMinMax?J.max:void 0,sum:!Z?J.sum:void 0,buckets:J.buckets,count:J.count}}})}}}QV.HistogramAggregator=JV});var WV=V((zV)=>{Object.defineProperty(zV,"__esModule",{value:!0});zV.Buckets=void 0;class F4{backing;indexBase;indexStart;indexEnd;constructor(Q=new H4,Y=0,G=0,K=0){this.backing=Q,this.indexBase=Y,this.indexStart=G,this.indexEnd=K}get offset(){return this.indexStart}get length(){if(this.backing.length===0)return 0;if(this.indexEnd===this.indexStart&&this.at(0)===0)return 0;return this.indexEnd-this.indexStart+1}counts(){return Array.from({length:this.length},(Q,Y)=>this.at(Y))}at(Q){let Y=this.indexBase-this.indexStart;if(Q<Y)Q+=this.backing.length;return Q-=Y,this.backing.countAt(Q)}incrementBucket(Q,Y){this.backing.increment(Q,Y)}decrementBucket(Q,Y){this.backing.decrement(Q,Y)}trim(){for(let Q=0;Q<this.length;Q++)if(this.at(Q)!==0){this.indexStart+=Q;break}else if(Q===this.length-1){this.indexStart=this.indexEnd=this.indexBase=0;return}for(let Q=this.length-1;Q>=0;Q--)if(this.at(Q)!==0){this.indexEnd-=this.length-Q-1;break}this._rotate()}downscale(Q){this._rotate();let Y=1+this.indexEnd-this.indexStart,G=1<<Q,K=0,z=0;for(let W=this.indexStart;W<=this.indexEnd;){let J=W%G;if(J<0)J+=G;for(let Z=J;Z<G&&K<Y;Z++)this._relocateBucket(z,K),K++,W++;z++}this.indexStart>>=Q,this.indexEnd>>=Q,this.indexBase=this.indexStart}clone(){return new F4(this.backing.clone(),this.indexBase,this.indexStart,this.indexEnd)}_rotate(){let Q=this.indexBase-this.indexStart;if(Q===0)return;else if(Q>0)this.backing.reverse(0,this.backing.length),this.backing.reverse(0,Q),this.backing.reverse(Q,this.backing.length);else this.backing.reverse(0,this.backing.length),this.backing.reverse(0,this.backing.length+Q);this.indexBase=this.indexStart}_relocateBucket(Q,Y){if(Q===Y)return;this.incrementBucket(Q,this.backing.emptyBucket(Y))}}zV.Buckets=F4;class H4{_counts;constructor(Q=[0]){this._counts=Q}get length(){return this._counts.length}countAt(Q){return this._counts[Q]}growTo(Q,Y,G){let K=Array(Q).fill(0);K.splice(G,this._counts.length-Y,...this._counts.slice(Y)),K.splice(0,Y,...this._counts.slice(0,Y)),this._counts=K}reverse(Q,Y){let G=Math.floor((Q+Y)/2)-Q;for(let K=0;K<G;K++){let z=this._counts[Q+K];this._counts[Q+K]=this._counts[Y-K-1],this._counts[Y-K-1]=z}}emptyBucket(Q){let Y=this._counts[Q];return this._counts[Q]=0,Y}increment(Q,Y){this._counts[Q]+=Y}decrement(Q,Y){if(this._counts[Q]>=Y)this._counts[Q]-=Y;else this._counts[Q]=0}clone(){return new H4([...this._counts])}}});var B4=V((qV)=>{Object.defineProperty(qV,"__esModule",{value:!0});qV.getSignificand=qV.getNormalBase2=qV.MIN_VALUE=qV.MAX_NORMAL_EXPONENT=qV.MIN_NORMAL_EXPONENT=qV.SIGNIFICAND_WIDTH=void 0;qV.SIGNIFICAND_WIDTH=52;var Hl=2146435072,Ol=1048575,O4=1023;qV.MIN_NORMAL_EXPONENT=-O4+1;qV.MAX_NORMAL_EXPONENT=O4;qV.MIN_VALUE=Math.pow(2,-1022);function Bl(Q){let Y=new DataView(new ArrayBuffer(8));return Y.setFloat64(0,Q),((Y.getUint32(0)&Hl)>>20)-O4}qV.getNormalBase2=Bl;function Vl(Q){let Y=new DataView(new ArrayBuffer(8));Y.setFloat64(0,Q);let G=Y.getUint32(0),K=Y.getUint32(4);return(G&Ol)*Math.pow(2,32)+K}qV.getSignificand=Vl});var $Z=V((FV)=>{Object.defineProperty(FV,"__esModule",{value:!0});FV.nextGreaterSquare=FV.ldexp=void 0;function Al(Q,Y){if(Q===0||Q===Number.POSITIVE_INFINITY||Q===Number.NEGATIVE_INFINITY||Number.isNaN(Q))return Q;return Q*Math.pow(2,Y)}FV.ldexp=Al;function El(Q){return Q--,Q|=Q>>1,Q|=Q>>2,Q|=Q>>4,Q|=Q>>8,Q|=Q>>16,Q++,Q}FV.nextGreaterSquare=El});var SZ=V((BV)=>{Object.defineProperty(BV,"__esModule",{value:!0});BV.MappingError=void 0;class OV extends Error{}BV.MappingError=OV});var UV=V((CV)=>{Object.defineProperty(CV,"__esModule",{value:!0});CV.ExponentMapping=void 0;var y1=B4(),hl=$Z(),NV=SZ();class IV{_shift;constructor(Q){this._shift=-Q}mapToIndex(Q){if(Q<y1.MIN_VALUE)return this._minNormalLowerBoundaryIndex();let Y=y1.getNormalBase2(Q),G=this._rightShift(y1.getSignificand(Q)-1,y1.SIGNIFICAND_WIDTH);return Y+G>>this._shift}lowerBoundary(Q){let Y=this._minNormalLowerBoundaryIndex();if(Q<Y)throw new NV.MappingError(`underflow: ${Q} is < minimum lower boundary: ${Y}`);let G=this._maxNormalLowerBoundaryIndex();if(Q>G)throw new NV.MappingError(`overflow: ${Q} is > maximum lower boundary: ${G}`);return hl.ldexp(1,Q<<this._shift)}get scale(){if(this._shift===0)return 0;return-this._shift}_minNormalLowerBoundaryIndex(){let Q=y1.MIN_NORMAL_EXPONENT>>this._shift;if(this._shift<2)Q--;return Q}_maxNormalLowerBoundaryIndex(){return y1.MAX_NORMAL_EXPONENT>>this._shift}_rightShift(Q,Y){return Math.floor(Q*Math.pow(2,-Y))}}CV.ExponentMapping=IV});var MV=V((hV)=>{Object.defineProperty(hV,"__esModule",{value:!0});hV.LogarithmMapping=void 0;var v1=B4(),AV=$Z(),EV=SZ();class TV{_scale;_scaleFactor;_inverseFactor;constructor(Q){this._scale=Q,this._scaleFactor=AV.ldexp(Math.LOG2E,Q),this._inverseFactor=AV.ldexp(Math.LN2,-Q)}mapToIndex(Q){if(Q<=v1.MIN_VALUE)return this._minNormalLowerBoundaryIndex()-1;if(v1.getSignificand(Q)===0)return(v1.getNormalBase2(Q)<<this._scale)-1;let Y=Math.floor(Math.log(Q)*this._scaleFactor),G=this._maxNormalLowerBoundaryIndex();if(Y>=G)return G;return Y}lowerBoundary(Q){let Y=this._maxNormalLowerBoundaryIndex();if(Q>=Y){if(Q===Y)return 2*Math.exp((Q-(1<<this._scale))/this._scaleFactor);throw new EV.MappingError(`overflow: ${Q} is > maximum lower boundary: ${Y}`)}let G=this._minNormalLowerBoundaryIndex();if(Q<=G){if(Q===G)return v1.MIN_VALUE;else if(Q===G-1)return Math.exp((Q+(1<<this._scale))/this._scaleFactor)/2;throw new EV.MappingError(`overflow: ${Q} is < minimum lower boundary: ${G}`)}return Math.exp(Q*this._inverseFactor)}get scale(){return this._scale}_minNormalLowerBoundaryIndex(){return v1.MIN_NORMAL_EXPONENT<<this._scale}_maxNormalLowerBoundaryIndex(){return(v1.MAX_NORMAL_EXPONENT+1<<this._scale)-1}}hV.LogarithmMapping=TV});var $V=V((RV)=>{Object.defineProperty(RV,"__esModule",{value:!0});RV.getMapping=void 0;var Ll=UV(),Ml=MV(),Pl=SZ(),PV=-10,wV=20,wl=Array.from({length:31},(Q,Y)=>{if(Y>10)return new Ml.LogarithmMapping(Y-10);return new Ll.ExponentMapping(Y-10)});function Rl(Q){if(Q>wV||Q<PV)throw new Pl.MappingError(`expected scale >= ${PV} && <= ${wV}, got: ${Q}`);return wl[Q+10]}RV.getMapping=Rl});var xV=V((yV)=>{Object.defineProperty(yV,"__esModule",{value:!0});yV.ExponentialHistogramAggregator=yV.ExponentialHistogramAccumulation=void 0;var kl=_1(),A6=c0(),$l=T(),SV=WV(),fV=$V(),Sl=$Z();class x1{static combine(Q,Y){return new x1(Math.min(Q.low,Y.low),Math.max(Q.high,Y.high))}low;high;constructor(Q,Y){this.low=Q,this.high=Y}}var fl=20,_l=160,V4=2;class fZ{startTime;_maxSize;_recordMinMax;_sum;_count;_zeroCount;_min;_max;_positive;_negative;_mapping;constructor(Q,Y=_l,G=!0,K=0,z=0,W=0,J=Number.POSITIVE_INFINITY,Z=Number.NEGATIVE_INFINITY,X=new SV.Buckets,q=new SV.Buckets,F=(0,fV.getMapping)(fl)){if(this.startTime=Q,this._maxSize=Y,this._recordMinMax=G,this._sum=K,this._count=z,this._zeroCount=W,this._min=J,this._max=Z,this._positive=X,this._negative=q,this._mapping=F,this._maxSize<V4)$l.diag.warn(`Exponential Histogram Max Size set to ${this._maxSize}, changing to the minimum size of: ${V4}`),this._maxSize=V4}record(Q){this.updateByIncrement(Q,1)}setStartTime(Q){this.startTime=Q}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(){if(this._count===this._zeroCount)return 0;return this._mapping.scale}get positive(){return this._positive}get negative(){return this._negative}updateByIncrement(Q,Y){if(Number.isNaN(Q))return;if(Q>this._max)this._max=Q;if(Q<this._min)this._min=Q;if(this._count+=Y,Q===0){this._zeroCount+=Y;return}if(this._sum+=Q*Y,Q>0)this._updateBuckets(this._positive,Q,Y);else this._updateBuckets(this._negative,-Q,Y)}merge(Q){if(this._count===0)this._min=Q.min,this._max=Q.max;else if(Q.count!==0){if(Q.min<this.min)this._min=Q.min;if(Q.max>this.max)this._max=Q.max}this.startTime=Q.startTime,this._sum+=Q.sum,this._count+=Q.count,this._zeroCount+=Q.zeroCount;let Y=this._minScale(Q);this._downscale(this.scale-Y),this._mergeBuckets(this.positive,Q,Q.positive,Y),this._mergeBuckets(this.negative,Q,Q.negative,Y)}diff(Q){this._min=1/0,this._max=-1/0,this._sum-=Q.sum,this._count-=Q.count,this._zeroCount-=Q.zeroCount;let Y=this._minScale(Q);this._downscale(this.scale-Y),this._diffBuckets(this.positive,Q,Q.positive,Y),this._diffBuckets(this.negative,Q,Q.negative,Y)}clone(){return new fZ(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(Q,Y,G){let K=this._mapping.mapToIndex(Y),z=!1,W=0,J=0;if(Q.length===0)Q.indexStart=K,Q.indexEnd=Q.indexStart,Q.indexBase=Q.indexStart;else if(K<Q.indexStart&&Q.indexEnd-K>=this._maxSize)z=!0,J=K,W=Q.indexEnd;else if(K>Q.indexEnd&&K-Q.indexStart>=this._maxSize)z=!0,J=Q.indexStart,W=K;if(z){let Z=this._changeScale(W,J);this._downscale(Z),K=this._mapping.mapToIndex(Y)}this._incrementIndexBy(Q,K,G)}_incrementIndexBy(Q,Y,G){if(G===0)return;if(Q.length===0)Q.indexStart=Q.indexEnd=Q.indexBase=Y;if(Y<Q.indexStart){let z=Q.indexEnd-Y;if(z>=Q.backing.length)this._grow(Q,z+1);Q.indexStart=Y}else if(Y>Q.indexEnd){let z=Y-Q.indexStart;if(z>=Q.backing.length)this._grow(Q,z+1);Q.indexEnd=Y}let K=Y-Q.indexBase;if(K<0)K+=Q.backing.length;Q.incrementBucket(K,G)}_grow(Q,Y){let G=Q.backing.length,K=Q.indexBase-Q.indexStart,z=G-K,W=(0,Sl.nextGreaterSquare)(Y);if(W>this._maxSize)W=this._maxSize;let J=W-K;Q.backing.growTo(W,z,J)}_changeScale(Q,Y){let G=0;while(Q-Y>=this._maxSize)Q>>=1,Y>>=1,G++;return G}_downscale(Q){if(Q===0)return;if(Q<0)throw Error(`impossible change of scale: ${this.scale}`);let Y=this._mapping.scale-Q;this._positive.downscale(Q),this._negative.downscale(Q),this._mapping=(0,fV.getMapping)(Y)}_minScale(Q){let Y=Math.min(this.scale,Q.scale),G=x1.combine(this._highLowAtScale(this.positive,this.scale,Y),this._highLowAtScale(Q.positive,Q.scale,Y)),K=x1.combine(this._highLowAtScale(this.negative,this.scale,Y),this._highLowAtScale(Q.negative,Q.scale,Y));return Math.min(Y-this._changeScale(G.high,G.low),Y-this._changeScale(K.high,K.low))}_highLowAtScale(Q,Y,G){if(Q.length===0)return new x1(0,-1);let K=Y-G;return new x1(Q.indexStart>>K,Q.indexEnd>>K)}_mergeBuckets(Q,Y,G,K){let z=G.offset,W=Y.scale-K;for(let J=0;J<G.length;J++)this._incrementIndexBy(Q,z+J>>W,G.at(J))}_diffBuckets(Q,Y,G,K){let z=G.offset,W=Y.scale-K;for(let J=0;J<G.length;J++){let X=(z+J>>W)-Q.indexBase;if(X<0)X+=Q.backing.length;Q.decrementBucket(X,G.at(J))}Q.trim()}}yV.ExponentialHistogramAccumulation=fZ;class _V{kind=kl.AggregatorKind.EXPONENTIAL_HISTOGRAM;_maxSize;_recordMinMax;constructor(Q,Y){this._maxSize=Q,this._recordMinMax=Y}createAccumulation(Q){return new fZ(Q,this._maxSize,this._recordMinMax)}merge(Q,Y){let G=Y.clone();return G.merge(Q),G}diff(Q,Y){let G=Y.clone();return G.diff(Q),G}toMetricData(Q,Y,G,K){return{descriptor:Q,aggregationTemporality:Y,dataPointType:A6.DataPointType.EXPONENTIAL_HISTOGRAM,dataPoints:G.map(([z,W])=>{let J=W.toPointValue(),Z=Q.type===A6.InstrumentType.GAUGE||Q.type===A6.InstrumentType.UP_DOWN_COUNTER||Q.type===A6.InstrumentType.OBSERVABLE_GAUGE||Q.type===A6.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:z,startTime:W.startTime,endTime:K,value:{min:J.hasMinMax?J.min:void 0,max:J.hasMinMax?J.max:void 0,sum:!Z?J.sum:void 0,positive:{offset:J.positive.offset,bucketCounts:J.positive.bucketCounts},negative:{offset:J.negative.offset,bucketCounts:J.negative.bucketCounts},count:J.count,scale:J.scale,zeroCount:J.zeroCount}}})}}}yV.ExponentialHistogramAggregator=_V});var uV=V((bV)=>{Object.defineProperty(bV,"__esModule",{value:!0});bV.LastValueAggregator=bV.LastValueAccumulation=void 0;var vl=_1(),E6=S(),xl=c0();class T6{startTime;_current;sampleTime;constructor(Q,Y=0,G=[0,0]){this.startTime=Q,this._current=Y,this.sampleTime=G}record(Q){this._current=Q,this.sampleTime=(0,E6.millisToHrTime)(Date.now())}setStartTime(Q){this.startTime=Q}toPointValue(){return this._current}}bV.LastValueAccumulation=T6;class jV{kind=vl.AggregatorKind.LAST_VALUE;createAccumulation(Q){return new T6(Q)}merge(Q,Y){let G=(0,E6.hrTimeToMicroseconds)(Y.sampleTime)>=(0,E6.hrTimeToMicroseconds)(Q.sampleTime)?Y:Q;return new T6(Q.startTime,G.toPointValue(),G.sampleTime)}diff(Q,Y){let G=(0,E6.hrTimeToMicroseconds)(Y.sampleTime)>=(0,E6.hrTimeToMicroseconds)(Q.sampleTime)?Y:Q;return new T6(Y.startTime,G.toPointValue(),G.sampleTime)}toMetricData(Q,Y,G,K){return{descriptor:Q,aggregationTemporality:Y,dataPointType:xl.DataPointType.GAUGE,dataPoints:G.map(([z,W])=>{return{attributes:z,startTime:W.startTime,endTime:K,value:W.toPointValue()}})}}}bV.LastValueAggregator=jV});var mV=V((cV)=>{Object.defineProperty(cV,"__esModule",{value:!0});cV.SumAggregator=cV.SumAccumulation=void 0;var bl=_1(),dl=c0();class H1{startTime;monotonic;_current;reset;constructor(Q,Y,G=0,K=!1){this.startTime=Q,this.monotonic=Y,this._current=G,this.reset=K}record(Q){if(this.monotonic&&Q<0)return;this._current+=Q}setStartTime(Q){this.startTime=Q}toPointValue(){return this._current}}cV.SumAccumulation=H1;class lV{kind=bl.AggregatorKind.SUM;monotonic;constructor(Q){this.monotonic=Q}createAccumulation(Q){return new H1(Q,this.monotonic)}merge(Q,Y){let G=Q.toPointValue(),K=Y.toPointValue();if(Y.reset)return new H1(Y.startTime,this.monotonic,K,Y.reset);return new H1(Q.startTime,this.monotonic,G+K)}diff(Q,Y){let G=Q.toPointValue(),K=Y.toPointValue();if(this.monotonic&&G>K)return new H1(Y.startTime,this.monotonic,K,!0);return new H1(Y.startTime,this.monotonic,K-G)}toMetricData(Q,Y,G,K){return{descriptor:Q,aggregationTemporality:Y,dataPointType:dl.DataPointType.SUM,dataPoints:G.map(([z,W])=>{return{attributes:z,startTime:W.startTime,endTime:K,value:W.toPointValue()}}),isMonotonic:this.monotonic}}}cV.SumAggregator=lV});var aV=V((D0)=>{Object.defineProperty(D0,"__esModule",{value:!0});D0.SumAggregator=D0.SumAccumulation=D0.LastValueAggregator=D0.LastValueAccumulation=D0.ExponentialHistogramAggregator=D0.ExponentialHistogramAccumulation=D0.HistogramAggregator=D0.HistogramAccumulation=D0.DropAggregator=void 0;var ll=ZV();Object.defineProperty(D0,"DropAggregator",{enumerable:!0,get:function(){return ll.DropAggregator}});var pV=YV();Object.defineProperty(D0,"HistogramAccumulation",{enumerable:!0,get:function(){return pV.HistogramAccumulation}});Object.defineProperty(D0,"HistogramAggregator",{enumerable:!0,get:function(){return pV.HistogramAggregator}});var gV=xV();Object.defineProperty(D0,"ExponentialHistogramAccumulation",{enumerable:!0,get:function(){return gV.ExponentialHistogramAccumulation}});Object.defineProperty(D0,"ExponentialHistogramAggregator",{enumerable:!0,get:function(){return gV.ExponentialHistogramAggregator}});var iV=uV();Object.defineProperty(D0,"LastValueAccumulation",{enumerable:!0,get:function(){return iV.LastValueAccumulation}});Object.defineProperty(D0,"LastValueAggregator",{enumerable:!0,get:function(){return iV.LastValueAggregator}});var oV=mV();Object.defineProperty(D0,"SumAccumulation",{enumerable:!0,get:function(){return oV.SumAccumulation}});Object.defineProperty(D0,"SumAggregator",{enumerable:!0,get:function(){return oV.SumAggregator}})});var QN=V((tV)=>{Object.defineProperty(tV,"__esModule",{value:!0});tV.DEFAULT_AGGREGATION=tV.EXPONENTIAL_HISTOGRAM_AGGREGATION=tV.HISTOGRAM_AGGREGATION=tV.LAST_VALUE_AGGREGATION=tV.SUM_AGGREGATION=tV.DROP_AGGREGATION=tV.DefaultAggregation=tV.ExponentialHistogramAggregation=tV.ExplicitBucketHistogramAggregation=tV.HistogramAggregation=tV.LastValueAggregation=tV.SumAggregation=tV.DropAggregation=void 0;var nl=T(),O1=aV(),T0=c0();class _Z{static DEFAULT_INSTANCE=new O1.DropAggregator;createAggregator(Q){return _Z.DEFAULT_INSTANCE}}tV.DropAggregation=_Z;class h6{static MONOTONIC_INSTANCE=new O1.SumAggregator(!0);static NON_MONOTONIC_INSTANCE=new O1.SumAggregator(!1);createAggregator(Q){switch(Q.type){case T0.InstrumentType.COUNTER:case T0.InstrumentType.OBSERVABLE_COUNTER:case T0.InstrumentType.HISTOGRAM:return h6.MONOTONIC_INSTANCE;default:return h6.NON_MONOTONIC_INSTANCE}}}tV.SumAggregation=h6;class yZ{static DEFAULT_INSTANCE=new O1.LastValueAggregator;createAggregator(Q){return yZ.DEFAULT_INSTANCE}}tV.LastValueAggregation=yZ;class vZ{static DEFAULT_INSTANCE=new O1.HistogramAggregator([0,5,10,25,50,75,100,250,500,750,1000,2500,5000,7500,1e4],!0);createAggregator(Q){return vZ.DEFAULT_INSTANCE}}tV.HistogramAggregation=vZ;class N4{_boundaries;_recordMinMax;constructor(Q,Y=!0){if(Q==null)throw Error("ExplicitBucketHistogramAggregation should be created with explicit boundaries, if a single bucket histogram is required, please pass an empty array");Q=Q.concat(),Q=Q.sort((z,W)=>z-W);let G=Q.lastIndexOf(-1/0),K=Q.indexOf(1/0);if(K===-1)K=void 0;this._boundaries=Q.slice(G+1,K),this._recordMinMax=Y}createAggregator(Q){return new O1.HistogramAggregator(this._boundaries,this._recordMinMax)}}tV.ExplicitBucketHistogramAggregation=N4;class I4{_maxSize;_recordMinMax;constructor(Q=160,Y=!0){this._maxSize=Q,this._recordMinMax=Y}createAggregator(Q){return new O1.ExponentialHistogramAggregator(this._maxSize,this._recordMinMax)}}tV.ExponentialHistogramAggregation=I4;class C4{_resolve(Q){switch(Q.type){case T0.InstrumentType.COUNTER:case T0.InstrumentType.UP_DOWN_COUNTER:case T0.InstrumentType.OBSERVABLE_COUNTER:case T0.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER:return tV.SUM_AGGREGATION;case T0.InstrumentType.GAUGE:case T0.InstrumentType.OBSERVABLE_GAUGE:return tV.LAST_VALUE_AGGREGATION;case T0.InstrumentType.HISTOGRAM:{if(Q.advice.explicitBucketBoundaries)return new N4(Q.advice.explicitBucketBoundaries);return tV.HISTOGRAM_AGGREGATION}}return nl.diag.warn(`Unable to recognize instrument type: ${Q.type}`),tV.DROP_AGGREGATION}createAggregator(Q){return this._resolve(Q).createAggregator(Q)}}tV.DefaultAggregation=C4;tV.DROP_AGGREGATION=new _Z;tV.SUM_AGGREGATION=new h6;tV.LAST_VALUE_AGGREGATION=new yZ;tV.HISTOGRAM_AGGREGATION=new vZ;tV.EXPONENTIAL_HISTOGRAM_AGGREGATION=new I4;tV.DEFAULT_AGGREGATION=new C4});var L6=V((YN)=>{Object.defineProperty(YN,"__esModule",{value:!0});YN.toAggregation=YN.AggregationType=void 0;var B1=QN(),V1;(function(Q){Q[Q.DEFAULT=0]="DEFAULT",Q[Q.DROP=1]="DROP",Q[Q.SUM=2]="SUM",Q[Q.LAST_VALUE=3]="LAST_VALUE",Q[Q.EXPLICIT_BUCKET_HISTOGRAM=4]="EXPLICIT_BUCKET_HISTOGRAM",Q[Q.EXPONENTIAL_HISTOGRAM=5]="EXPONENTIAL_HISTOGRAM"})(V1=YN.AggregationType||(YN.AggregationType={}));function sl(Q){switch(Q.type){case V1.DEFAULT:return B1.DEFAULT_AGGREGATION;case V1.DROP:return B1.DROP_AGGREGATION;case V1.SUM:return B1.SUM_AGGREGATION;case V1.LAST_VALUE:return B1.LAST_VALUE_AGGREGATION;case V1.EXPONENTIAL_HISTOGRAM:{let Y=Q;return new B1.ExponentialHistogramAggregation(Y.options?.maxSize,Y.options?.recordMinMax)}case V1.EXPLICIT_BUCKET_HISTOGRAM:{let Y=Q;if(Y.options==null)return B1.HISTOGRAM_AGGREGATION;else return new B1.ExplicitBucketHistogramAggregation(Y.options?.boundaries,Y.options?.recordMinMax)}default:throw Error("Unsupported Aggregation")}}YN.toAggregation=sl});var D4=V((GN)=>{Object.defineProperty(GN,"__esModule",{value:!0});GN.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR=GN.DEFAULT_AGGREGATION_SELECTOR=void 0;var el=RZ(),Zc=L6(),Jc=(Q)=>{return{type:Zc.AggregationType.DEFAULT}};GN.DEFAULT_AGGREGATION_SELECTOR=Jc;var Qc=(Q)=>el.AggregationTemporality.CUMULATIVE;GN.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR=Qc});var U4=V((ON)=>{Object.defineProperty(ON,"__esModule",{value:!0});ON.MetricReader=void 0;var qN=T(),KN=E0(),FN=D4();class HN{_shutdown=!1;_metricProducers;_sdkMetricProducer;_aggregationTemporalitySelector;_aggregationSelector;_cardinalitySelector;constructor(Q){this._aggregationSelector=Q?.aggregationSelector??FN.DEFAULT_AGGREGATION_SELECTOR,this._aggregationTemporalitySelector=Q?.aggregationTemporalitySelector??FN.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR,this._metricProducers=Q?.metricProducers??[],this._cardinalitySelector=Q?.cardinalitySelector}setMetricProducer(Q){if(this._sdkMetricProducer)throw Error("MetricReader can not be bound to a MeterProvider again.");this._sdkMetricProducer=Q,this.onInitialized()}selectAggregation(Q){return this._aggregationSelector(Q)}selectAggregationTemporality(Q){return this._aggregationTemporalitySelector(Q)}selectCardinalityLimit(Q){return this._cardinalitySelector?this._cardinalitySelector(Q):2000}onInitialized(){}async collect(Q){if(this._sdkMetricProducer===void 0)throw Error("MetricReader is not bound to a MetricProducer");if(this._shutdown)throw Error("MetricReader is shutdown");let[Y,...G]=await Promise.all([this._sdkMetricProducer.collect({timeoutMillis:Q?.timeoutMillis}),...this._metricProducers.map((J)=>J.collect({timeoutMillis:Q?.timeoutMillis}))]),K=Y.errors.concat(G.flatMap((J)=>J.errors)),z=Y.resourceMetrics.resource,W=Y.resourceMetrics.scopeMetrics.concat(G.flatMap((J)=>J.resourceMetrics.scopeMetrics));return{resourceMetrics:{resource:z,scopeMetrics:W},errors:K}}async shutdown(Q){if(this._shutdown){qN.diag.error("Cannot call shutdown twice.");return}if(Q?.timeoutMillis==null)await this.onShutdown();else await(0,KN.callWithTimeout)(this.onShutdown(),Q.timeoutMillis);this._shutdown=!0}async forceFlush(Q){if(this._shutdown){qN.diag.warn("Cannot forceFlush on already shutdown MetricReader.");return}if(Q?.timeoutMillis==null){await this.onForceFlush();return}await(0,KN.callWithTimeout)(this.onForceFlush(),Q.timeoutMillis)}}ON.MetricReader=HN});var DN=V((IN)=>{Object.defineProperty(IN,"__esModule",{value:!0});IN.PeriodicExportingMetricReader=void 0;var xZ=T(),jZ=S(),Yc=U4(),VN=E0();class NN extends Yc.MetricReader{_interval;_exporter;_exportInterval;_exportTimeout;constructor(Q){let{exporter:Y,exportIntervalMillis:G=60000,metricProducers:K}=Q,{exportTimeoutMillis:z=30000}=Q;super({aggregationSelector:Y.selectAggregation?.bind(Y),aggregationTemporalitySelector:Y.selectAggregationTemporality?.bind(Y),metricProducers:K});if(G<=0)throw Error("exportIntervalMillis must be greater than 0");if(z<=0)throw Error("exportTimeoutMillis must be greater than 0");if(G<z)if("exportIntervalMillis"in Q&&"exportTimeoutMillis"in Q)throw Error("exportIntervalMillis must be greater than or equal to exportTimeoutMillis");else xZ.diag.info(`Timeout of ${z} exceeds the interval of ${G}. Clamping timeout to interval duration.`),z=G;this._exportInterval=G,this._exportTimeout=z,this._exporter=Y}async _runOnce(){try{await(0,VN.callWithTimeout)(this._doRun(),this._exportTimeout)}catch(Q){if(Q instanceof VN.TimeoutError){xZ.diag.error("Export took longer than %s milliseconds and timed out.",this._exportTimeout);return}(0,jZ.globalErrorHandler)(Q)}}async _doRun(){let{resourceMetrics:Q,errors:Y}=await this.collect({timeoutMillis:this._exportTimeout});if(Y.length>0)xZ.diag.error("PeriodicExportingMetricReader: metrics collection errors",...Y);if(Q.resource.asyncAttributesPending)try{await Q.resource.waitForAsyncAttributes?.()}catch(K){xZ.diag.debug("Error while resolving async portion of resource: ",K),(0,jZ.globalErrorHandler)(K)}if(Q.scopeMetrics.length===0)return;let G=await jZ.internal._export(this._exporter,Q);if(G.code!==jZ.ExportResultCode.SUCCESS)throw Error(`PeriodicExportingMetricReader: metrics export failed (error ${G.error})`)}onInitialized(){if(this._interval=setInterval(()=>{this._runOnce()},this._exportInterval),typeof this._interval!=="number")this._interval.unref()}async onForceFlush(){await this._runOnce(),await this._exporter.forceFlush()}async onShutdown(){if(this._interval)clearInterval(this._interval);await this.onForceFlush(),await this._exporter.shutdown()}}IN.PeriodicExportingMetricReader=NN});var hN=V((EN)=>{Object.defineProperty(EN,"__esModule",{value:!0});EN.InMemoryMetricExporter=void 0;var UN=S();class AN{_shutdown=!1;_aggregationTemporality;_metrics=[];constructor(Q){this._aggregationTemporality=Q}export(Q,Y){if(this._shutdown){setTimeout(()=>Y({code:UN.ExportResultCode.FAILED}),0);return}this._metrics.push(Q),setTimeout(()=>Y({code:UN.ExportResultCode.SUCCESS}),0)}getMetrics(){return this._metrics}forceFlush(){return Promise.resolve()}reset(){this._metrics=[]}selectAggregationTemporality(Q){return this._aggregationTemporality}shutdown(){return this._shutdown=!0,Promise.resolve()}}EN.InMemoryMetricExporter=AN});var wN=V((MN)=>{Object.defineProperty(MN,"__esModule",{value:!0});MN.ConsoleMetricExporter=void 0;var LN=S(),zc=D4();class A4{_shutdown=!1;_temporalitySelector;constructor(Q){this._temporalitySelector=Q?.temporalitySelector??zc.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR}export(Q,Y){if(this._shutdown){Y({code:LN.ExportResultCode.FAILED});return}return A4._sendMetrics(Q,Y)}forceFlush(){return Promise.resolve()}selectAggregationTemporality(Q){return this._temporalitySelector(Q)}shutdown(){return this._shutdown=!0,Promise.resolve()}static _sendMetrics(Q,Y){for(let G of Q.scopeMetrics)for(let K of G.metrics)console.dir({descriptor:K.descriptor,dataPointType:K.dataPointType,dataPoints:K.dataPoints},{depth:null});Y({code:LN.ExportResultCode.SUCCESS})}}MN.ConsoleMetricExporter=A4});var E4=V((RN)=>{Object.defineProperty(RN,"__esModule",{value:!0});RN._clearDefaultServiceNameCache=RN.defaultServiceName=void 0;var M6;function Gc(){if(M6===void 0)try{let Q=globalThis.process.argv0;M6=Q?`unknown_service:${Q}`:"unknown_service"}catch{M6="unknown_service"}return M6}RN.defaultServiceName=Gc;function Wc(){M6=void 0}RN._clearDefaultServiceNameCache=Wc});var fN=V(($N)=>{Object.defineProperty($N,"__esModule",{value:!0});$N.isPromiseLike=void 0;var Kc=(Q)=>{return Q!==null&&typeof Q==="object"&&typeof Q.then==="function"};$N.isPromiseLike=Kc});var L4=V((yN)=>{Object.defineProperty(yN,"__esModule",{value:!0});yN.defaultResource=yN.emptyResource=yN.resourceFromDetectedResource=yN.resourceFromAttributes=void 0;var w6=T(),T4=S(),N1=X1(),Fc=E4(),P6=fN();class R6{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(Q,Y){let G=new R6({},Y);return G._rawAttributes=_N(Q),G._asyncAttributesPending=Q.filter(([K,z])=>(0,P6.isPromiseLike)(z)).length>0,G}constructor(Q,Y){let G=Q.attributes??{};this._rawAttributes=Object.entries(G).map(([K,z])=>{if((0,P6.isPromiseLike)(z))this._asyncAttributesPending=!0;return[K,z]}),this._rawAttributes=_N(this._rawAttributes),this._schemaUrl=Vc(Y?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(!this.asyncAttributesPending)return;for(let Q=0;Q<this._rawAttributes.length;Q++){let[Y,G]=this._rawAttributes[Q];this._rawAttributes[Q]=[Y,(0,P6.isPromiseLike)(G)?await G:G]}this._asyncAttributesPending=!1}get attributes(){if(this.asyncAttributesPending)w6.diag.error("Accessing resource attributes before async attributes settled");if(this._memoizedAttributes)return this._memoizedAttributes;let Q={};for(let[Y,G]of this._rawAttributes){if((0,P6.isPromiseLike)(G)){w6.diag.debug(`Unsettled resource attribute ${Y} skipped`);continue}if(G!=null)Q[Y]??=G}if(!this._asyncAttributesPending)this._memoizedAttributes=Q;return Q}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(Q){if(Q==null)return this;let Y=Nc(this,Q),G=Y?{schemaUrl:Y}:void 0;return R6.FromAttributeList([...Q.getRawAttributes(),...this.getRawAttributes()],G)}}function h4(Q,Y){return R6.FromAttributeList(Object.entries(Q),Y)}yN.resourceFromAttributes=h4;function Hc(Q,Y){return new R6(Q,Y)}yN.resourceFromDetectedResource=Hc;function Oc(){return h4({})}yN.emptyResource=Oc;function Bc(){return h4({[N1.ATTR_SERVICE_NAME]:(0,Fc.defaultServiceName)(),[N1.ATTR_TELEMETRY_SDK_LANGUAGE]:T4.SDK_INFO[N1.ATTR_TELEMETRY_SDK_LANGUAGE],[N1.ATTR_TELEMETRY_SDK_NAME]:T4.SDK_INFO[N1.ATTR_TELEMETRY_SDK_NAME],[N1.ATTR_TELEMETRY_SDK_VERSION]:T4.SDK_INFO[N1.ATTR_TELEMETRY_SDK_VERSION]})}yN.defaultResource=Bc;function _N(Q){return Q.map(([Y,G])=>{if((0,P6.isPromiseLike)(G))return[Y,G.catch((K)=>{w6.diag.debug("promise rejection for resource attribute: %s - %s",Y,K);return})];return[Y,G]})}function Vc(Q){if(typeof Q==="string"||Q===void 0)return Q;w6.diag.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",Q);return}function Nc(Q,Y){let G=Q?.schemaUrl,K=Y?.schemaUrl,z=G===void 0||G==="",W=K===void 0||K==="";if(z)return K;if(W)return G;if(G===K)return G;w6.diag.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',G,K);return}});var dN=V((jN)=>{Object.defineProperty(jN,"__esModule",{value:!0});jN.detectResources=void 0;var xN=T(),M4=L4(),Uc=(Q={})=>{return(Q.detectors||[]).map((G)=>{try{let K=(0,M4.resourceFromDetectedResource)(G.detect(Q));return xN.diag.debug(`${G.constructor.name} found resource.`,K),K}catch(K){return xN.diag.debug(`${G.constructor.name} failed: ${K.message}`),(0,M4.emptyResource)()}}).reduce((G,K)=>G.merge(K),(0,M4.emptyResource)())};jN.detectResources=Uc});var mN=V((cN)=>{Object.defineProperty(cN,"__esModule",{value:!0});cN.envDetector=void 0;var Ac=T(),Ec=X1(),uN=S();class lN{_MAX_LENGTH=255;_COMMA_SEPARATOR=",";_LABEL_KEY_VALUE_SPLITTER="=";detect(Q){let Y={},G=(0,uN.getStringFromEnv)("OTEL_RESOURCE_ATTRIBUTES"),K=(0,uN.getStringFromEnv)("OTEL_SERVICE_NAME");if(G)try{let z=this._parseResourceAttributes(G);Object.assign(Y,z)}catch(z){Ac.diag.debug(`EnvDetector failed: ${z instanceof Error?z.message:z}`)}if(K)Y[Ec.ATTR_SERVICE_NAME]=K;return{attributes:Y}}_parseResourceAttributes(Q){if(!Q)return{};let Y={},G=Q.split(this._COMMA_SEPARATOR);for(let K of G){let z=K.split(this._LABEL_KEY_VALUE_SPLITTER);if(z.length!==2)throw Error(`Invalid format for OTEL_RESOURCE_ATTRIBUTES: "${K}". Expected format: key=value. The ',' and '=' characters must be percent-encoded in keys and values.`);let[W,J]=z,Z=W.trim(),X=J.trim();if(Z.length===0)throw Error(`Invalid OTEL_RESOURCE_ATTRIBUTES: empty attribute key in "${K}".`);let q,F;try{q=decodeURIComponent(Z),F=decodeURIComponent(X)}catch(H){throw Error(`Failed to percent-decode OTEL_RESOURCE_ATTRIBUTES entry "${K}": ${H instanceof Error?H.message:H}`)}if(q.length>this._MAX_LENGTH)throw Error(`Attribute key exceeds the maximum length of ${this._MAX_LENGTH} characters: "${q}".`);if(F.length>this._MAX_LENGTH)throw Error(`Attribute value exceeds the maximum length of ${this._MAX_LENGTH} characters for key "${q}".`);Y[q]=F}return Y}}cN.envDetector=new lN});var k6=V((pN)=>{Object.defineProperty(pN,"__esModule",{value:!0});pN.ATTR_WEBENGINE_VERSION=pN.ATTR_WEBENGINE_NAME=pN.ATTR_WEBENGINE_DESCRIPTION=pN.ATTR_SERVICE_NAMESPACE=pN.ATTR_SERVICE_INSTANCE_ID=pN.ATTR_PROCESS_RUNTIME_VERSION=pN.ATTR_PROCESS_RUNTIME_NAME=pN.ATTR_PROCESS_RUNTIME_DESCRIPTION=pN.ATTR_PROCESS_PID=pN.ATTR_PROCESS_OWNER=pN.ATTR_PROCESS_EXECUTABLE_PATH=pN.ATTR_PROCESS_EXECUTABLE_NAME=pN.ATTR_PROCESS_COMMAND_ARGS=pN.ATTR_PROCESS_COMMAND=pN.ATTR_OS_VERSION=pN.ATTR_OS_TYPE=pN.ATTR_K8S_POD_NAME=pN.ATTR_K8S_NAMESPACE_NAME=pN.ATTR_K8S_DEPLOYMENT_NAME=pN.ATTR_K8S_CLUSTER_NAME=pN.ATTR_HOST_TYPE=pN.ATTR_HOST_NAME=pN.ATTR_HOST_IMAGE_VERSION=pN.ATTR_HOST_IMAGE_NAME=pN.ATTR_HOST_IMAGE_ID=pN.ATTR_HOST_ID=pN.ATTR_HOST_ARCH=pN.ATTR_CONTAINER_NAME=pN.ATTR_CONTAINER_IMAGE_TAGS=pN.ATTR_CONTAINER_IMAGE_NAME=pN.ATTR_CONTAINER_ID=pN.ATTR_CLOUD_REGION=pN.ATTR_CLOUD_PROVIDER=pN.ATTR_CLOUD_AVAILABILITY_ZONE=pN.ATTR_CLOUD_ACCOUNT_ID=void 0;pN.ATTR_CLOUD_ACCOUNT_ID="cloud.account.id";pN.ATTR_CLOUD_AVAILABILITY_ZONE="cloud.availability_zone";pN.ATTR_CLOUD_PROVIDER="cloud.provider";pN.ATTR_CLOUD_REGION="cloud.region";pN.ATTR_CONTAINER_ID="container.id";pN.ATTR_CONTAINER_IMAGE_NAME="container.image.name";pN.ATTR_CONTAINER_IMAGE_TAGS="container.image.tags";pN.ATTR_CONTAINER_NAME="container.name";pN.ATTR_HOST_ARCH="host.arch";pN.ATTR_HOST_ID="host.id";pN.ATTR_HOST_IMAGE_ID="host.image.id";pN.ATTR_HOST_IMAGE_NAME="host.image.name";pN.ATTR_HOST_IMAGE_VERSION="host.image.version";pN.ATTR_HOST_NAME="host.name";pN.ATTR_HOST_TYPE="host.type";pN.ATTR_K8S_CLUSTER_NAME="k8s.cluster.name";pN.ATTR_K8S_DEPLOYMENT_NAME="k8s.deployment.name";pN.ATTR_K8S_NAMESPACE_NAME="k8s.namespace.name";pN.ATTR_K8S_POD_NAME="k8s.pod.name";pN.ATTR_OS_TYPE="os.type";pN.ATTR_OS_VERSION="os.version";pN.ATTR_PROCESS_COMMAND="process.command";pN.ATTR_PROCESS_COMMAND_ARGS="process.command_args";pN.ATTR_PROCESS_EXECUTABLE_NAME="process.executable.name";pN.ATTR_PROCESS_EXECUTABLE_PATH="process.executable.path";pN.ATTR_PROCESS_OWNER="process.owner";pN.ATTR_PROCESS_PID="process.pid";pN.ATTR_PROCESS_RUNTIME_DESCRIPTION="process.runtime.description";pN.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name";pN.ATTR_PROCESS_RUNTIME_VERSION="process.runtime.version";pN.ATTR_SERVICE_INSTANCE_ID="service.instance.id";pN.ATTR_SERVICE_NAMESPACE="service.namespace";pN.ATTR_WEBENGINE_DESCRIPTION="webengine.description";pN.ATTR_WEBENGINE_NAME="webengine.name";pN.ATTR_WEBENGINE_VERSION="webengine.version"});var bZ=V((iN)=>{Object.defineProperty(iN,"__esModule",{value:!0});iN.execAsync=void 0;var Qn=j("child_process"),Xn=j("util");iN.execAsync=Xn.promisify(Qn.exec)});var rN=V((aN)=>{Object.defineProperty(aN,"__esModule",{value:!0});aN.getMachineId=void 0;var Yn=bZ(),zn=T();async function Gn(){try{let Y=(await(0,Yn.execAsync)('ioreg -rd1 -c "IOPlatformExpertDevice"')).stdout.split(`
|
|
1
|
+
import{createRequire as tL}from"node:module";var uL=Object.create;var{getPrototypeOf:lL,defineProperty:LJ,getOwnPropertyNames:cL}=Object;var nL=Object.prototype.hasOwnProperty;function mL(Q){return this[Q]}var pL,gL,o=(Q,Y,G)=>{var K=Q!=null&&typeof Q==="object";if(K){var z=Y?pL??=new WeakMap:gL??=new WeakMap,W=z.get(Q);if(W)return W}G=Q!=null?uL(lL(Q)):{};let J=Y||!Q||!Q.__esModule?LJ(G,"default",{value:Q,enumerable:!0}):G;for(let Z of cL(Q))if(!nL.call(J,Z))LJ(J,Z,{get:mL.bind(Q,Z),enumerable:!0});if(K)z.set(Q,J);return J};var V=(Q,Y)=>()=>(Y||Q((Y={exports:{}}).exports,Y),Y.exports);var iL=(Q)=>Q;function oL(Q,Y){this[Q]=iL.bind(null,Y)}var aL=(Q,Y)=>{for(var G in Y)LJ(Q,G,{get:Y[G],enumerable:!0,configurable:!0,set:oL.bind(Y,G)})};var M1=(Q,Y)=>()=>(Q&&(Y=Q(Q=0)),Y);var j=tL(import.meta.url);class Q6{name;metadata;meter;logger;enabled;distinctId;commonProperties;counters=new Map;histograms=new Map;gauges=new Map;gaugeValues=new Map;meterProvider;loggerProvider;constructor(Q){this.name=Q.name??"OpenTelemetryAdapter",this.metadata={...Q.metadata},this.meterProvider=Q.meterProvider,this.loggerProvider=Q.loggerProvider,this.meter=Q.meterProvider?.getMeter("cline")??null,this.logger=Q.loggerProvider?.getLogger("cline")??null,this.enabled=Q.enabled??!0,this.distinctId=Q.distinctId,this.commonProperties=Q.commonProperties?{...Q.commonProperties}:{}}emit(Q,Y){if(!this.isEnabled())return;this.emitLog(Q,Y,!1)}emitRequired(Q,Y){this.emitLog(Q,Y,!0)}recordCounter(Q,Y,G,K,z=!1){if(!this.meter||!z&&!this.isEnabled())return;let W=this.counters.get(Q);if(!W)W=this.meter.createCounter(Q,K?{description:K}:void 0),this.counters.set(Q,W);W.add(Y,this.flattenProperties(this.buildAttributes(G)))}recordHistogram(Q,Y,G,K,z=!1){if(!this.meter||!z&&!this.isEnabled())return;let W=this.histograms.get(Q);if(!W)W=this.meter.createHistogram(Q,K?{description:K}:void 0),this.histograms.set(Q,W);W.record(Y,this.flattenProperties(this.buildAttributes(G)))}recordGauge(Q,Y,G,K,z=!1){if(!this.meter||!z&&!this.isEnabled())return;let W=this.buildAttributes(G),J=JSON.stringify(W),Z=this.gaugeValues.get(Q);if(Y===null){if(Z){if(Z.delete(J),Z.size===0)this.gaugeValues.delete(Q),this.gauges.delete(Q)}return}let X=Z;if(!X)X=new Map,this.gaugeValues.set(Q,X);if(!this.gauges.has(Q)){let q=this.meter.createObservableGauge(Q,K?{description:K}:void 0);q.addCallback((F)=>{for(let H of this.snapshotGaugeSeries(Q))F.observe(H.value,this.flattenProperties(H.attributes))}),this.gauges.set(Q,q)}X.set(J,{value:Y,attributes:W})}isEnabled(){return typeof this.enabled==="function"?this.enabled():this.enabled}setDistinctId(Q){this.distinctId=Q}setCommonProperties(Q){this.commonProperties={...Q}}updateCommonProperties(Q){this.commonProperties={...this.commonProperties,...Q}}async flush(){await Promise.all([this.meterProvider?.forceFlush?.(),this.loggerProvider?.forceFlush?.()])}async dispose(){await Promise.all([this.meterProvider?.shutdown?.(),this.loggerProvider?.shutdown?.()])}emitLog(Q,Y,G){if(!this.logger)return;let K=this.flattenProperties(this.buildAttributes(Y,G));this.logger.emit({severityText:"INFO",body:Q,attributes:K})}buildAttributes(Q,Y=!1){return{...this.commonProperties,...this.metadata,...Q,...this.distinctId?{distinct_id:this.distinctId}:{},...Y?{_required:!0}:{}}}snapshotGaugeSeries(Q){let Y=this.gaugeValues.get(Q);if(!Y)return[];return Array.from(Y.values(),(G)=>({value:G.value,attributes:G.attributes?{...G.attributes}:void 0}))}flattenProperties(Q,Y="",G=new WeakSet,K=0){if(!Q)return{};let z={},W=100,J=10;for(let[Z,X]of Object.entries(Q)){if(Z==="__proto__"||Z==="constructor"||Z==="prototype")continue;let q=Y?`${Y}.${Z}`:Z;if(X===null||X===void 0){z[q]=String(X);continue}if(Array.isArray(X)){let F=X.length>W?X.slice(0,W):X;try{z[q]=JSON.stringify(F)}catch{z[q]="[UnserializableArray]"}if(X.length>W)z[`${q}_truncated`]=!0,z[`${q}_original_length`]=X.length;continue}if(typeof X==="object"){if(X instanceof Date){z[q]=X.toISOString();continue}if(X instanceof Error){z[q]=X.message;continue}if(G.has(X)){z[q]="[Circular]";continue}if(K>=J){z[q]="[MaxDepthExceeded]";continue}G.add(X),Object.assign(z,this.flattenProperties(X,q,G,K+1));continue}if(rL(X)){z[q]=X;continue}try{z[q]=JSON.stringify(X)}catch{z[q]=String(X)}}return z}}function rL(Q){return typeof Q==="string"||typeof Q==="number"||typeof Q==="boolean"}var PJ=V((v8)=>{Object.defineProperty(v8,"__esModule",{value:!0});v8.VERSION=void 0;v8.VERSION="1.9.1"});var l8=V((d8)=>{Object.defineProperty(d8,"__esModule",{value:!0});d8.isCompatible=d8._makeCompatibilityCheck=void 0;var sL=PJ(),j8=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function b8(Q){let Y=new Set([Q]),G=new Set,K=Q.match(j8);if(!K)return()=>!1;let z={major:+K[1],minor:+K[2],patch:+K[3],prerelease:K[4]};if(z.prerelease!=null)return function(X){return X===Q};function W(Z){return G.add(Z),!1}function J(Z){return Y.add(Z),!0}return function(X){if(Y.has(X))return!0;if(G.has(X))return!1;let q=X.match(j8);if(!q)return W(X);let F={major:+q[1],minor:+q[2],patch:+q[3],prerelease:q[4]};if(F.prerelease!=null)return W(X);if(z.major!==F.major)return W(X);if(z.major===0){if(z.minor===F.minor&&z.patch<=F.patch)return J(X);return W(X)}if(z.minor<=F.minor)return J(X);return W(X)}}d8._makeCompatibilityCheck=b8;d8.isCompatible=b8(sL.VERSION)});var r0=V((c8)=>{Object.defineProperty(c8,"__esModule",{value:!0});c8.unregisterGlobal=c8.getGlobal=c8.registerGlobal=void 0;var P1=PJ(),ZM=l8(),JM=P1.VERSION.split(".")[0],X6=Symbol.for(`opentelemetry.js.api.${JM}`),Y6=typeof globalThis==="object"?globalThis:typeof self==="object"?self:typeof window==="object"?window:typeof global==="object"?global:{};function QM(Q,Y,G,K=!1){var z;let W=Y6[X6]=(z=Y6[X6])!==null&&z!==void 0?z:{version:P1.VERSION};if(!K&&W[Q]){let J=Error(`@opentelemetry/api: Attempted duplicate registration of API: ${Q}`);return G.error(J.stack||J.message),!1}if(W.version!==P1.VERSION){let J=Error(`@opentelemetry/api: Registration of version v${W.version} for ${Q} does not match previously registered API v${P1.VERSION}`);return G.error(J.stack||J.message),!1}return W[Q]=Y,G.debug(`@opentelemetry/api: Registered a global for ${Q} v${P1.VERSION}.`),!0}c8.registerGlobal=QM;function XM(Q){var Y,G;let K=(Y=Y6[X6])===null||Y===void 0?void 0:Y.version;if(!K||!(0,ZM.isCompatible)(K))return;return(G=Y6[X6])===null||G===void 0?void 0:G[Q]}c8.getGlobal=XM;function YM(Q,Y){Y.debug(`@opentelemetry/api: Unregistering a global for ${Q} v${P1.VERSION}.`);let G=Y6[X6];if(G)delete G[Q]}c8.unregisterGlobal=YM});var i8=V((p8)=>{Object.defineProperty(p8,"__esModule",{value:!0});p8.DiagComponentLogger=void 0;var WM=r0();class m8{constructor(Q){this._namespace=Q.namespace||"DiagComponentLogger"}debug(...Q){return z6("debug",this._namespace,Q)}error(...Q){return z6("error",this._namespace,Q)}info(...Q){return z6("info",this._namespace,Q)}warn(...Q){return z6("warn",this._namespace,Q)}verbose(...Q){return z6("verbose",this._namespace,Q)}}p8.DiagComponentLogger=m8;function z6(Q,Y,G){let K=(0,WM.getGlobal)("diag");if(!K)return;return K[Q](Y,...G)}});var t6=V((o8)=>{Object.defineProperty(o8,"__esModule",{value:!0});o8.DiagLogLevel=void 0;var qM;(function(Q){Q[Q.NONE=0]="NONE",Q[Q.ERROR=30]="ERROR",Q[Q.WARN=50]="WARN",Q[Q.INFO=60]="INFO",Q[Q.DEBUG=70]="DEBUG",Q[Q.VERBOSE=80]="VERBOSE",Q[Q.ALL=9999]="ALL"})(qM=o8.DiagLogLevel||(o8.DiagLogLevel={}))});var r8=V((a8)=>{Object.defineProperty(a8,"__esModule",{value:!0});a8.createLogLevelDiagLogger=void 0;var $0=t6();function KM(Q,Y){if(Q<$0.DiagLogLevel.NONE)Q=$0.DiagLogLevel.NONE;else if(Q>$0.DiagLogLevel.ALL)Q=$0.DiagLogLevel.ALL;Y=Y||{};function G(K,z){let W=Y[K];if(typeof W==="function"&&Q>=z)return W.bind(Y);return function(){}}return{error:G("error",$0.DiagLogLevel.ERROR),warn:G("warn",$0.DiagLogLevel.WARN),info:G("info",$0.DiagLogLevel.INFO),debug:G("debug",$0.DiagLogLevel.DEBUG),verbose:G("verbose",$0.DiagLogLevel.VERBOSE)}}a8.createLogLevelDiagLogger=KM});var s0=V((e8)=>{Object.defineProperty(e8,"__esModule",{value:!0});e8.DiagAPI=void 0;var FM=i8(),HM=r8(),s8=t6(),r6=r0(),OM="diag";class RJ{static instance(){if(!this._instance)this._instance=new RJ;return this._instance}constructor(){function Q(K){return function(...z){let W=(0,r6.getGlobal)("diag");if(!W)return;return W[K](...z)}}let Y=this,G=(K,z={logLevel:s8.DiagLogLevel.INFO})=>{var W,J,Z;if(K===Y){let F=Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return Y.error((W=F.stack)!==null&&W!==void 0?W:F.message),!1}if(typeof z==="number")z={logLevel:z};let X=(0,r6.getGlobal)("diag"),q=(0,HM.createLogLevelDiagLogger)((J=z.logLevel)!==null&&J!==void 0?J:s8.DiagLogLevel.INFO,K);if(X&&!z.suppressOverrideMessage){let F=(Z=Error().stack)!==null&&Z!==void 0?Z:"<failed to generate stacktrace>";X.warn(`Current logger will be overwritten from ${F}`),q.warn(`Current logger will overwrite one already registered from ${F}`)}return(0,r6.registerGlobal)("diag",q,Y,!0)};Y.setLogger=G,Y.disable=()=>{(0,r6.unregisterGlobal)(OM,Y)},Y.createComponentLogger=(K)=>{return new FM.DiagComponentLogger(K)},Y.verbose=Q("verbose"),Y.debug=Q("debug"),Y.info=Q("info"),Y.warn=Q("warn"),Y.error=Q("error")}}e8.DiagAPI=RJ});var XQ=V((JQ)=>{Object.defineProperty(JQ,"__esModule",{value:!0});JQ.BaggageImpl=void 0;class w1{constructor(Q){this._entries=Q?new Map(Q):new Map}getEntry(Q){let Y=this._entries.get(Q);if(!Y)return;return Object.assign({},Y)}getAllEntries(){return Array.from(this._entries.entries())}setEntry(Q,Y){let G=new w1(this._entries);return G._entries.set(Q,Y),G}removeEntry(Q){let Y=new w1(this._entries);return Y._entries.delete(Q),Y}removeEntries(...Q){let Y=new w1(this._entries);for(let G of Q)Y._entries.delete(G);return Y}clear(){return new w1}}JQ.BaggageImpl=w1});var GQ=V((YQ)=>{Object.defineProperty(YQ,"__esModule",{value:!0});YQ.baggageEntryMetadataSymbol=void 0;YQ.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")});var kJ=V((WQ)=>{Object.defineProperty(WQ,"__esModule",{value:!0});WQ.baggageEntryMetadataFromString=WQ.createBaggage=void 0;var BM=s0(),VM=XQ(),NM=GQ(),IM=BM.DiagAPI.instance();function CM(Q={}){return new VM.BaggageImpl(new Map(Object.entries(Q)))}WQ.createBaggage=CM;function DM(Q){if(typeof Q!=="string")IM.error(`Cannot create baggage metadata from unknown type: ${typeof Q}`),Q="";return{__TYPE__:NM.baggageEntryMetadataSymbol,toString(){return Q}}}WQ.baggageEntryMetadataFromString=DM});var G6=V((KQ)=>{Object.defineProperty(KQ,"__esModule",{value:!0});KQ.ROOT_CONTEXT=KQ.createContextKey=void 0;function AM(Q){return Symbol.for(Q)}KQ.createContextKey=AM;class s6{constructor(Q){let Y=this;Y._currentContext=Q?new Map(Q):new Map,Y.getValue=(G)=>Y._currentContext.get(G),Y.setValue=(G,K)=>{let z=new s6(Y._currentContext);return z._currentContext.set(G,K),z},Y.deleteValue=(G)=>{let K=new s6(Y._currentContext);return K._currentContext.delete(G),K}}}KQ.ROOT_CONTEXT=new s6});var VQ=V((OQ)=>{Object.defineProperty(OQ,"__esModule",{value:!0});OQ.DiagConsoleLogger=OQ._originalConsoleMethods=void 0;var $J=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}];OQ._originalConsoleMethods={};if(typeof console<"u"){let Q=["error","warn","info","debug","trace","log"];for(let Y of Q)if(typeof console[Y]==="function")OQ._originalConsoleMethods[Y]=console[Y]}class HQ{constructor(){function Q(Y){return function(...G){let K=OQ._originalConsoleMethods[Y];if(typeof K!=="function")K=OQ._originalConsoleMethods.log;if(typeof K!=="function"&&console){if(K=console[Y],typeof K!=="function")K=console.log}if(typeof K==="function")return K.apply(console,G)}}for(let Y=0;Y<$J.length;Y++)this[$J[Y].n]=Q($J[Y].c)}}OQ.DiagConsoleLogger=HQ});var dJ=V((NQ)=>{Object.defineProperty(NQ,"__esModule",{value:!0});NQ.createNoopMeter=NQ.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=NQ.NOOP_OBSERVABLE_GAUGE_METRIC=NQ.NOOP_OBSERVABLE_COUNTER_METRIC=NQ.NOOP_UP_DOWN_COUNTER_METRIC=NQ.NOOP_HISTOGRAM_METRIC=NQ.NOOP_GAUGE_METRIC=NQ.NOOP_COUNTER_METRIC=NQ.NOOP_METER=NQ.NoopObservableUpDownCounterMetric=NQ.NoopObservableGaugeMetric=NQ.NoopObservableCounterMetric=NQ.NoopObservableMetric=NQ.NoopHistogramMetric=NQ.NoopGaugeMetric=NQ.NoopUpDownCounterMetric=NQ.NoopCounterMetric=NQ.NoopMetric=NQ.NoopMeter=void 0;class SJ{constructor(){}createGauge(Q,Y){return NQ.NOOP_GAUGE_METRIC}createHistogram(Q,Y){return NQ.NOOP_HISTOGRAM_METRIC}createCounter(Q,Y){return NQ.NOOP_COUNTER_METRIC}createUpDownCounter(Q,Y){return NQ.NOOP_UP_DOWN_COUNTER_METRIC}createObservableGauge(Q,Y){return NQ.NOOP_OBSERVABLE_GAUGE_METRIC}createObservableCounter(Q,Y){return NQ.NOOP_OBSERVABLE_COUNTER_METRIC}createObservableUpDownCounter(Q,Y){return NQ.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC}addBatchObservableCallback(Q,Y){}removeBatchObservableCallback(Q){}}NQ.NoopMeter=SJ;class R1{}NQ.NoopMetric=R1;class fJ extends R1{add(Q,Y){}}NQ.NoopCounterMetric=fJ;class _J extends R1{add(Q,Y){}}NQ.NoopUpDownCounterMetric=_J;class yJ extends R1{record(Q,Y){}}NQ.NoopGaugeMetric=yJ;class vJ extends R1{record(Q,Y){}}NQ.NoopHistogramMetric=vJ;class W6{addCallback(Q){}removeCallback(Q){}}NQ.NoopObservableMetric=W6;class xJ extends W6{}NQ.NoopObservableCounterMetric=xJ;class jJ extends W6{}NQ.NoopObservableGaugeMetric=jJ;class bJ extends W6{}NQ.NoopObservableUpDownCounterMetric=bJ;NQ.NOOP_METER=new SJ;NQ.NOOP_COUNTER_METRIC=new fJ;NQ.NOOP_GAUGE_METRIC=new yJ;NQ.NOOP_HISTOGRAM_METRIC=new vJ;NQ.NOOP_UP_DOWN_COUNTER_METRIC=new _J;NQ.NOOP_OBSERVABLE_COUNTER_METRIC=new xJ;NQ.NOOP_OBSERVABLE_GAUGE_METRIC=new jJ;NQ.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=new bJ;function TM(){return NQ.NOOP_METER}NQ.createNoopMeter=TM});var PQ=V((MQ)=>{Object.defineProperty(MQ,"__esModule",{value:!0});MQ.ValueType=void 0;var _M;(function(Q){Q[Q.INT=0]="INT",Q[Q.DOUBLE=1]="DOUBLE"})(_M=MQ.ValueType||(MQ.ValueType={}))});var lJ=V((wQ)=>{Object.defineProperty(wQ,"__esModule",{value:!0});wQ.defaultTextMapSetter=wQ.defaultTextMapGetter=void 0;wQ.defaultTextMapGetter={get(Q,Y){if(Q==null)return;return Q[Y]},keys(Q){if(Q==null)return[];return Object.keys(Q)}};wQ.defaultTextMapSetter={set(Q,Y,G){if(Q==null)return;Q[Y]=G}}});var fQ=V(($Q)=>{Object.defineProperty($Q,"__esModule",{value:!0});$Q.NoopContextManager=void 0;var vM=G6();class kQ{active(){return vM.ROOT_CONTEXT}with(Q,Y,G,...K){return Y.call(G,...K)}bind(Q,Y){return Y}enable(){return this}disable(){return this}}$Q.NoopContextManager=kQ});var q6=V((yQ)=>{Object.defineProperty(yQ,"__esModule",{value:!0});yQ.ContextAPI=void 0;var xM=fQ(),cJ=r0(),_Q=s0(),nJ="context",jM=new xM.NoopContextManager;class mJ{constructor(){}static getInstance(){if(!this._instance)this._instance=new mJ;return this._instance}setGlobalContextManager(Q){return(0,cJ.registerGlobal)(nJ,Q,_Q.DiagAPI.instance())}active(){return this._getContextManager().active()}with(Q,Y,G,...K){return this._getContextManager().with(Q,Y,G,...K)}bind(Q,Y){return this._getContextManager().bind(Q,Y)}_getContextManager(){return(0,cJ.getGlobal)(nJ)||jM}disable(){this._getContextManager().disable(),(0,cJ.unregisterGlobal)(nJ,_Q.DiagAPI.instance())}}yQ.ContextAPI=mJ});var gJ=V((xQ)=>{Object.defineProperty(xQ,"__esModule",{value:!0});xQ.TraceFlags=void 0;var bM;(function(Q){Q[Q.NONE=0]="NONE",Q[Q.SAMPLED=1]="SAMPLED"})(bM=xQ.TraceFlags||(xQ.TraceFlags={}))});var ZZ=V((jQ)=>{Object.defineProperty(jQ,"__esModule",{value:!0});jQ.INVALID_SPAN_CONTEXT=jQ.INVALID_TRACEID=jQ.INVALID_SPANID=void 0;var dM=gJ();jQ.INVALID_SPANID="0000000000000000";jQ.INVALID_TRACEID="00000000000000000000000000000000";jQ.INVALID_SPAN_CONTEXT={traceId:jQ.INVALID_TRACEID,spanId:jQ.INVALID_SPANID,traceFlags:dM.TraceFlags.NONE}});var JZ=V((cQ)=>{Object.defineProperty(cQ,"__esModule",{value:!0});cQ.NonRecordingSpan=void 0;var uM=ZZ();class lQ{constructor(Q=uM.INVALID_SPAN_CONTEXT){this._spanContext=Q}spanContext(){return this._spanContext}setAttribute(Q,Y){return this}setAttributes(Q){return this}addEvent(Q,Y){return this}addLink(Q){return this}addLinks(Q){return this}setStatus(Q){return this}updateName(Q){return this}end(Q){}isRecording(){return!1}recordException(Q,Y){}}cQ.NonRecordingSpan=lQ});var aJ=V((pQ)=>{Object.defineProperty(pQ,"__esModule",{value:!0});pQ.getSpanContext=pQ.setSpanContext=pQ.deleteSpan=pQ.setSpan=pQ.getActiveSpan=pQ.getSpan=void 0;var lM=G6(),cM=JZ(),nM=q6(),iJ=(0,lM.createContextKey)("OpenTelemetry Context Key SPAN");function oJ(Q){return Q.getValue(iJ)||void 0}pQ.getSpan=oJ;function mM(){return oJ(nM.ContextAPI.getInstance().active())}pQ.getActiveSpan=mM;function mQ(Q,Y){return Q.setValue(iJ,Y)}pQ.setSpan=mQ;function pM(Q){return Q.deleteValue(iJ)}pQ.deleteSpan=pM;function gM(Q,Y){return mQ(Q,new cM.NonRecordingSpan(Y))}pQ.setSpanContext=gM;function iM(Q){var Y;return(Y=oJ(Q))===null||Y===void 0?void 0:Y.spanContext()}pQ.getSpanContext=iM});var XZ=V((rQ)=>{Object.defineProperty(rQ,"__esModule",{value:!0});rQ.wrapSpanContext=rQ.isSpanContextValid=rQ.isValidSpanId=rQ.isValidTraceId=void 0;var iQ=ZZ(),eM=JZ(),QZ=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 oQ(Q,Y){if(typeof Q!=="string"||Q.length!==Y)return!1;let G=0;for(let K=0;K<Q.length;K+=4)G+=(QZ[Q.charCodeAt(K)]|0)+(QZ[Q.charCodeAt(K+1)]|0)+(QZ[Q.charCodeAt(K+2)]|0)+(QZ[Q.charCodeAt(K+3)]|0);return G===Y}function aQ(Q){return oQ(Q,32)&&Q!==iQ.INVALID_TRACEID}rQ.isValidTraceId=aQ;function tQ(Q){return oQ(Q,16)&&Q!==iQ.INVALID_SPANID}rQ.isValidSpanId=tQ;function Z2(Q){return aQ(Q.traceId)&&tQ(Q.spanId)}rQ.isSpanContextValid=Z2;function J2(Q){return new eM.NonRecordingSpan(Q)}rQ.wrapSpanContext=J2});var sJ=V((J5)=>{Object.defineProperty(J5,"__esModule",{value:!0});J5.NoopTracer=void 0;var z2=q6(),eQ=aJ(),tJ=JZ(),G2=XZ(),rJ=z2.ContextAPI.getInstance();class Z5{startSpan(Q,Y,G=rJ.active()){if(Boolean(Y===null||Y===void 0?void 0:Y.root))return new tJ.NonRecordingSpan;let z=G&&(0,eQ.getSpanContext)(G);if(W2(z)&&(0,G2.isSpanContextValid)(z))return new tJ.NonRecordingSpan(z);else return new tJ.NonRecordingSpan}startActiveSpan(Q,Y,G,K){let z,W,J;if(arguments.length<2)return;else if(arguments.length===2)J=Y;else if(arguments.length===3)z=Y,J=G;else z=Y,W=G,J=K;let Z=W!==null&&W!==void 0?W:rJ.active(),X=this.startSpan(Q,z,Z),q=(0,eQ.setSpan)(Z,X);return rJ.with(q,J,void 0,X)}}J5.NoopTracer=Z5;function W2(Q){return Q!==null&&typeof Q==="object"&&"spanId"in Q&&typeof Q.spanId==="string"&&"traceId"in Q&&typeof Q.traceId==="string"&&"traceFlags"in Q&&typeof Q.traceFlags==="number"}});var eJ=V((Y5)=>{Object.defineProperty(Y5,"__esModule",{value:!0});Y5.ProxyTracer=void 0;var q2=sJ(),K2=new q2.NoopTracer;class X5{constructor(Q,Y,G,K){this._provider=Q,this.name=Y,this.version=G,this.options=K}startSpan(Q,Y,G){return this._getTracer().startSpan(Q,Y,G)}startActiveSpan(Q,Y,G,K){let z=this._getTracer();return Reflect.apply(z.startActiveSpan,z,arguments)}_getTracer(){if(this._delegate)return this._delegate;let Q=this._provider.getDelegateTracer(this.name,this.version,this.options);if(!Q)return K2;return this._delegate=Q,this._delegate}}Y5.ProxyTracer=X5});var K5=V((W5)=>{Object.defineProperty(W5,"__esModule",{value:!0});W5.NoopTracerProvider=void 0;var F2=sJ();class G5{getTracer(Q,Y,G){return new F2.NoopTracer}}W5.NoopTracerProvider=G5});var Z7=V((H5)=>{Object.defineProperty(H5,"__esModule",{value:!0});H5.ProxyTracerProvider=void 0;var H2=eJ(),O2=K5(),B2=new O2.NoopTracerProvider;class F5{getTracer(Q,Y,G){var K;return(K=this.getDelegateTracer(Q,Y,G))!==null&&K!==void 0?K:new H2.ProxyTracer(this,Q,Y,G)}getDelegate(){var Q;return(Q=this._delegate)!==null&&Q!==void 0?Q:B2}setDelegate(Q){this._delegate=Q}getDelegateTracer(Q,Y,G){var K;return(K=this._delegate)===null||K===void 0?void 0:K.getTracer(Q,Y,G)}}H5.ProxyTracerProvider=F5});var V5=V((B5)=>{Object.defineProperty(B5,"__esModule",{value:!0});B5.SamplingDecision=void 0;var V2;(function(Q){Q[Q.NOT_RECORD=0]="NOT_RECORD",Q[Q.RECORD=1]="RECORD",Q[Q.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(V2=B5.SamplingDecision||(B5.SamplingDecision={}))});var I5=V((N5)=>{Object.defineProperty(N5,"__esModule",{value:!0});N5.SpanKind=void 0;var N2;(function(Q){Q[Q.INTERNAL=0]="INTERNAL",Q[Q.SERVER=1]="SERVER",Q[Q.CLIENT=2]="CLIENT",Q[Q.PRODUCER=3]="PRODUCER",Q[Q.CONSUMER=4]="CONSUMER"})(N2=N5.SpanKind||(N5.SpanKind={}))});var D5=V((C5)=>{Object.defineProperty(C5,"__esModule",{value:!0});C5.SpanStatusCode=void 0;var I2;(function(Q){Q[Q.UNSET=0]="UNSET",Q[Q.OK=1]="OK",Q[Q.ERROR=2]="ERROR"})(I2=C5.SpanStatusCode||(C5.SpanStatusCode={}))});var E5=V((U5)=>{Object.defineProperty(U5,"__esModule",{value:!0});U5.validateValue=U5.validateKey=void 0;var Y7="[_0-9a-z-*/]",C2=`[a-z]${Y7}{0,255}`,D2=`[a-z0-9]${Y7}{0,240}@[a-z]${Y7}{0,13}`,U2=new RegExp(`^(?:${C2}|${D2})$`),A2=/^[ -~]{0,255}[!-~]$/,E2=/,|=/;function T2(Q){return U2.test(Q)}U5.validateKey=T2;function h2(Q){return A2.test(Q)&&!E2.test(Q)}U5.validateValue=h2});var R5=V((P5)=>{Object.defineProperty(P5,"__esModule",{value:!0});P5.TraceStateImpl=void 0;var T5=E5(),h5=32,M2=512,L5=",",M5="=";class z7{constructor(Q){if(this._internalState=new Map,Q)this._parse(Q)}set(Q,Y){let G=this._clone();if(G._internalState.has(Q))G._internalState.delete(Q);return G._internalState.set(Q,Y),G}unset(Q){let Y=this._clone();return Y._internalState.delete(Q),Y}get(Q){return this._internalState.get(Q)}serialize(){return Array.from(this._internalState.keys()).reduceRight((Q,Y)=>{return Q.push(Y+M5+this.get(Y)),Q},[]).join(L5)}_parse(Q){if(Q.length>M2)return;if(this._internalState=Q.split(L5).reduceRight((Y,G)=>{let K=G.trim(),z=K.indexOf(M5);if(z!==-1){let W=K.slice(0,z),J=K.slice(z+1,G.length);if((0,T5.validateKey)(W)&&(0,T5.validateValue)(J))Y.set(W,J)}return Y},new Map),this._internalState.size>h5)this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,h5))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let Q=new z7;return Q._internalState=new Map(this._internalState),Q}}P5.TraceStateImpl=z7});var S5=V((k5)=>{Object.defineProperty(k5,"__esModule",{value:!0});k5.createTraceState=void 0;var P2=R5();function w2(Q){return new P2.TraceStateImpl(Q)}k5.createTraceState=w2});var y5=V((f5)=>{Object.defineProperty(f5,"__esModule",{value:!0});f5.context=void 0;var R2=q6();f5.context=R2.ContextAPI.getInstance()});var j5=V((v5)=>{Object.defineProperty(v5,"__esModule",{value:!0});v5.diag=void 0;var k2=s0();v5.diag=k2.DiagAPI.instance()});var u5=V((b5)=>{Object.defineProperty(b5,"__esModule",{value:!0});b5.NOOP_METER_PROVIDER=b5.NoopMeterProvider=void 0;var $2=dJ();class G7{getMeter(Q,Y,G){return $2.NOOP_METER}}b5.NoopMeterProvider=G7;b5.NOOP_METER_PROVIDER=new G7});var m5=V((c5)=>{Object.defineProperty(c5,"__esModule",{value:!0});c5.MetricsAPI=void 0;var f2=u5(),W7=r0(),l5=s0(),q7="metrics";class K7{constructor(){}static getInstance(){if(!this._instance)this._instance=new K7;return this._instance}setGlobalMeterProvider(Q){return(0,W7.registerGlobal)(q7,Q,l5.DiagAPI.instance())}getMeterProvider(){return(0,W7.getGlobal)(q7)||f2.NOOP_METER_PROVIDER}getMeter(Q,Y,G){return this.getMeterProvider().getMeter(Q,Y,G)}disable(){(0,W7.unregisterGlobal)(q7,l5.DiagAPI.instance())}}c5.MetricsAPI=K7});var i5=V((p5)=>{Object.defineProperty(p5,"__esModule",{value:!0});p5.metrics=void 0;var _2=m5();p5.metrics=_2.MetricsAPI.getInstance()});var r5=V((a5)=>{Object.defineProperty(a5,"__esModule",{value:!0});a5.NoopTextMapPropagator=void 0;class o5{inject(Q,Y){}extract(Q,Y){return Q}fields(){return[]}}a5.NoopTextMapPropagator=o5});var JX=V((e5)=>{Object.defineProperty(e5,"__esModule",{value:!0});e5.deleteBaggage=e5.setBaggage=e5.getActiveBaggage=e5.getBaggage=void 0;var y2=q6(),v2=G6(),F7=(0,v2.createContextKey)("OpenTelemetry Baggage Key");function s5(Q){return Q.getValue(F7)||void 0}e5.getBaggage=s5;function x2(){return s5(y2.ContextAPI.getInstance().active())}e5.getActiveBaggage=x2;function j2(Q,Y){return Q.setValue(F7,Y)}e5.setBaggage=j2;function b2(Q){return Q.deleteValue(F7)}e5.deleteBaggage=b2});var GX=V((YX)=>{Object.defineProperty(YX,"__esModule",{value:!0});YX.PropagationAPI=void 0;var H7=r0(),c2=r5(),QX=lJ(),YZ=JX(),n2=kJ(),XX=s0(),O7="propagation",m2=new c2.NoopTextMapPropagator;class B7{constructor(){this.createBaggage=n2.createBaggage,this.getBaggage=YZ.getBaggage,this.getActiveBaggage=YZ.getActiveBaggage,this.setBaggage=YZ.setBaggage,this.deleteBaggage=YZ.deleteBaggage}static getInstance(){if(!this._instance)this._instance=new B7;return this._instance}setGlobalPropagator(Q){return(0,H7.registerGlobal)(O7,Q,XX.DiagAPI.instance())}inject(Q,Y,G=QX.defaultTextMapSetter){return this._getGlobalPropagator().inject(Q,Y,G)}extract(Q,Y,G=QX.defaultTextMapGetter){return this._getGlobalPropagator().extract(Q,Y,G)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,H7.unregisterGlobal)(O7,XX.DiagAPI.instance())}_getGlobalPropagator(){return(0,H7.getGlobal)(O7)||m2}}YX.PropagationAPI=B7});var KX=V((WX)=>{Object.defineProperty(WX,"__esModule",{value:!0});WX.propagation=void 0;var p2=GX();WX.propagation=p2.PropagationAPI.getInstance()});var NX=V((BX)=>{Object.defineProperty(BX,"__esModule",{value:!0});BX.TraceAPI=void 0;var V7=r0(),FX=Z7(),HX=XZ(),k1=aJ(),OX=s0(),N7="trace";class I7{constructor(){this._proxyTracerProvider=new FX.ProxyTracerProvider,this.wrapSpanContext=HX.wrapSpanContext,this.isSpanContextValid=HX.isSpanContextValid,this.deleteSpan=k1.deleteSpan,this.getSpan=k1.getSpan,this.getActiveSpan=k1.getActiveSpan,this.getSpanContext=k1.getSpanContext,this.setSpan=k1.setSpan,this.setSpanContext=k1.setSpanContext}static getInstance(){if(!this._instance)this._instance=new I7;return this._instance}setGlobalTracerProvider(Q){let Y=(0,V7.registerGlobal)(N7,this._proxyTracerProvider,OX.DiagAPI.instance());if(Y)this._proxyTracerProvider.setDelegate(Q);return Y}getTracerProvider(){return(0,V7.getGlobal)(N7)||this._proxyTracerProvider}getTracer(Q,Y){return this.getTracerProvider().getTracer(Q,Y)}disable(){(0,V7.unregisterGlobal)(N7,OX.DiagAPI.instance()),this._proxyTracerProvider=new FX.ProxyTracerProvider}}BX.TraceAPI=I7});var DX=V((IX)=>{Object.defineProperty(IX,"__esModule",{value:!0});IX.trace=void 0;var g2=NX();IX.trace=g2.TraceAPI.getInstance()});var T=V((v)=>{Object.defineProperty(v,"__esModule",{value:!0});v.trace=v.propagation=v.metrics=v.diag=v.context=v.INVALID_SPAN_CONTEXT=v.INVALID_TRACEID=v.INVALID_SPANID=v.isValidSpanId=v.isValidTraceId=v.isSpanContextValid=v.createTraceState=v.TraceFlags=v.SpanStatusCode=v.SpanKind=v.SamplingDecision=v.ProxyTracerProvider=v.ProxyTracer=v.defaultTextMapSetter=v.defaultTextMapGetter=v.ValueType=v.createNoopMeter=v.DiagLogLevel=v.DiagConsoleLogger=v.ROOT_CONTEXT=v.createContextKey=v.baggageEntryMetadataFromString=void 0;var i2=kJ();Object.defineProperty(v,"baggageEntryMetadataFromString",{enumerable:!0,get:function(){return i2.baggageEntryMetadataFromString}});var UX=G6();Object.defineProperty(v,"createContextKey",{enumerable:!0,get:function(){return UX.createContextKey}});Object.defineProperty(v,"ROOT_CONTEXT",{enumerable:!0,get:function(){return UX.ROOT_CONTEXT}});var o2=VQ();Object.defineProperty(v,"DiagConsoleLogger",{enumerable:!0,get:function(){return o2.DiagConsoleLogger}});var a2=t6();Object.defineProperty(v,"DiagLogLevel",{enumerable:!0,get:function(){return a2.DiagLogLevel}});var t2=dJ();Object.defineProperty(v,"createNoopMeter",{enumerable:!0,get:function(){return t2.createNoopMeter}});var r2=PQ();Object.defineProperty(v,"ValueType",{enumerable:!0,get:function(){return r2.ValueType}});var AX=lJ();Object.defineProperty(v,"defaultTextMapGetter",{enumerable:!0,get:function(){return AX.defaultTextMapGetter}});Object.defineProperty(v,"defaultTextMapSetter",{enumerable:!0,get:function(){return AX.defaultTextMapSetter}});var s2=eJ();Object.defineProperty(v,"ProxyTracer",{enumerable:!0,get:function(){return s2.ProxyTracer}});var e2=Z7();Object.defineProperty(v,"ProxyTracerProvider",{enumerable:!0,get:function(){return e2.ProxyTracerProvider}});var ZP=V5();Object.defineProperty(v,"SamplingDecision",{enumerable:!0,get:function(){return ZP.SamplingDecision}});var JP=I5();Object.defineProperty(v,"SpanKind",{enumerable:!0,get:function(){return JP.SpanKind}});var QP=D5();Object.defineProperty(v,"SpanStatusCode",{enumerable:!0,get:function(){return QP.SpanStatusCode}});var XP=gJ();Object.defineProperty(v,"TraceFlags",{enumerable:!0,get:function(){return XP.TraceFlags}});var YP=S5();Object.defineProperty(v,"createTraceState",{enumerable:!0,get:function(){return YP.createTraceState}});var C7=XZ();Object.defineProperty(v,"isSpanContextValid",{enumerable:!0,get:function(){return C7.isSpanContextValid}});Object.defineProperty(v,"isValidTraceId",{enumerable:!0,get:function(){return C7.isValidTraceId}});Object.defineProperty(v,"isValidSpanId",{enumerable:!0,get:function(){return C7.isValidSpanId}});var D7=ZZ();Object.defineProperty(v,"INVALID_SPANID",{enumerable:!0,get:function(){return D7.INVALID_SPANID}});Object.defineProperty(v,"INVALID_TRACEID",{enumerable:!0,get:function(){return D7.INVALID_TRACEID}});Object.defineProperty(v,"INVALID_SPAN_CONTEXT",{enumerable:!0,get:function(){return D7.INVALID_SPAN_CONTEXT}});var EX=y5();Object.defineProperty(v,"context",{enumerable:!0,get:function(){return EX.context}});var TX=j5();Object.defineProperty(v,"diag",{enumerable:!0,get:function(){return TX.diag}});var hX=i5();Object.defineProperty(v,"metrics",{enumerable:!0,get:function(){return hX.metrics}});var LX=KX();Object.defineProperty(v,"propagation",{enumerable:!0,get:function(){return LX.propagation}});var MX=DX();Object.defineProperty(v,"trace",{enumerable:!0,get:function(){return MX.trace}});v.default={context:EX.context,diag:TX.diag,metrics:hX.metrics,propagation:LX.propagation,trace:MX.trace}});var wX=V((PX)=>{Object.defineProperty(PX,"__esModule",{value:!0});PX.SeverityNumber=void 0;var WP;(function(Q){Q[Q.UNSPECIFIED=0]="UNSPECIFIED",Q[Q.TRACE=1]="TRACE",Q[Q.TRACE2=2]="TRACE2",Q[Q.TRACE3=3]="TRACE3",Q[Q.TRACE4=4]="TRACE4",Q[Q.DEBUG=5]="DEBUG",Q[Q.DEBUG2=6]="DEBUG2",Q[Q.DEBUG3=7]="DEBUG3",Q[Q.DEBUG4=8]="DEBUG4",Q[Q.INFO=9]="INFO",Q[Q.INFO2=10]="INFO2",Q[Q.INFO3=11]="INFO3",Q[Q.INFO4=12]="INFO4",Q[Q.WARN=13]="WARN",Q[Q.WARN2=14]="WARN2",Q[Q.WARN3=15]="WARN3",Q[Q.WARN4=16]="WARN4",Q[Q.ERROR=17]="ERROR",Q[Q.ERROR2=18]="ERROR2",Q[Q.ERROR3=19]="ERROR3",Q[Q.ERROR4=20]="ERROR4",Q[Q.FATAL=21]="FATAL",Q[Q.FATAL2=22]="FATAL2",Q[Q.FATAL3=23]="FATAL3",Q[Q.FATAL4=24]="FATAL4"})(WP=PX.SeverityNumber||(PX.SeverityNumber={}))});var zZ=V((RX)=>{Object.defineProperty(RX,"__esModule",{value:!0});RX.NOOP_LOGGER=RX.NoopLogger=void 0;class A7{emit(Q){}}RX.NoopLogger=A7;RX.NOOP_LOGGER=new A7});var fX=V(($X)=>{Object.defineProperty($X,"__esModule",{value:!0});$X.API_BACKWARDS_COMPATIBILITY_VERSION=$X.makeGetter=$X._global=$X.GLOBAL_LOGS_API_KEY=void 0;$X.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");$X._global=globalThis;function KP(Q,Y,G){return(K)=>K===Q?Y:G}$X.makeGetter=KP;$X.API_BACKWARDS_COMPATIBILITY_VERSION=1});var T7=V((_X)=>{Object.defineProperty(_X,"__esModule",{value:!0});_X.NOOP_LOGGER_PROVIDER=_X.NoopLoggerProvider=void 0;var BP=zZ();class E7{getLogger(Q,Y,G){return new BP.NoopLogger}}_X.NoopLoggerProvider=E7;_X.NOOP_LOGGER_PROVIDER=new E7});var bX=V((xX)=>{Object.defineProperty(xX,"__esModule",{value:!0});xX.ProxyLogger=void 0;var NP=zZ();class vX{constructor(Q,Y,G,K){this._provider=Q,this.name=Y,this.version=G,this.options=K}emit(Q){this._getLogger().emit(Q)}_getLogger(){if(this._delegate)return this._delegate;let Q=this._provider._getDelegateLogger(this.name,this.version,this.options);if(!Q)return NP.NOOP_LOGGER;return this._delegate=Q,this._delegate}}xX.ProxyLogger=vX});var cX=V((uX)=>{Object.defineProperty(uX,"__esModule",{value:!0});uX.ProxyLoggerProvider=void 0;var IP=T7(),CP=bX();class dX{getLogger(Q,Y,G){var K;return(K=this._getDelegateLogger(Q,Y,G))!==null&&K!==void 0?K:new CP.ProxyLogger(this,Q,Y,G)}_getDelegate(){var Q;return(Q=this._delegate)!==null&&Q!==void 0?Q:IP.NOOP_LOGGER_PROVIDER}_setDelegate(Q){this._delegate=Q}_getDelegateLogger(Q,Y,G){var K;return(K=this._delegate)===null||K===void 0?void 0:K.getLogger(Q,Y,G)}}uX.ProxyLoggerProvider=dX});var gX=V((mX)=>{Object.defineProperty(mX,"__esModule",{value:!0});mX.LogsAPI=void 0;var G0=fX(),DP=T7(),nX=cX();class h7{constructor(){this._proxyLoggerProvider=new nX.ProxyLoggerProvider}static getInstance(){if(!this._instance)this._instance=new h7;return this._instance}setGlobalLoggerProvider(Q){if(G0._global[G0.GLOBAL_LOGS_API_KEY])return this.getLoggerProvider();return G0._global[G0.GLOBAL_LOGS_API_KEY]=(0,G0.makeGetter)(G0.API_BACKWARDS_COMPATIBILITY_VERSION,Q,DP.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider._setDelegate(Q),Q}getLoggerProvider(){var Q,Y;return(Y=(Q=G0._global[G0.GLOBAL_LOGS_API_KEY])===null||Q===void 0?void 0:Q.call(G0._global,G0.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&Y!==void 0?Y:this._proxyLoggerProvider}getLogger(Q,Y,G){return this.getLoggerProvider().getLogger(Q,Y,G)}disable(){delete G0._global[G0.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new nX.ProxyLoggerProvider}}mX.LogsAPI=h7});var $1=V((K6)=>{Object.defineProperty(K6,"__esModule",{value:!0});K6.logs=K6.NoopLogger=K6.NOOP_LOGGER=K6.SeverityNumber=void 0;var UP=wX();Object.defineProperty(K6,"SeverityNumber",{enumerable:!0,get:function(){return UP.SeverityNumber}});var iX=zZ();Object.defineProperty(K6,"NOOP_LOGGER",{enumerable:!0,get:function(){return iX.NOOP_LOGGER}});Object.defineProperty(K6,"NoopLogger",{enumerable:!0,get:function(){return iX.NoopLogger}});var AP=gX();K6.logs=AP.LogsAPI.getInstance()});var sX=V((tX)=>{Object.defineProperty(tX,"__esModule",{value:!0});tX.OTLPExporterBase=void 0;class aX{_delegate;constructor(Q){this._delegate=Q}export(Q,Y){this._delegate.export(Q,Y)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}tX.OTLPExporterBase=aX});var GZ=V((Z9)=>{Object.defineProperty(Z9,"__esModule",{value:!0});Z9.OTLPExporterError=void 0;class eX extends Error{code;name="OTLPExporterError";data;constructor(Q,Y,G){super(Q);this.data=G,this.code=Y}}Z9.OTLPExporterError=eX});var F6=V((X9)=>{Object.defineProperty(X9,"__esModule",{value:!0});X9.getSharedConfigurationDefaults=X9.mergeOtlpSharedConfigurationWithDefaults=X9.wrapStaticHeadersInFunction=X9.validateTimeoutMillis=void 0;function Q9(Q){if(Number.isFinite(Q)&&Q>0)return Q;throw Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${Q}')`)}X9.validateTimeoutMillis=Q9;function EP(Q){if(Q==null)return;return async()=>Q}X9.wrapStaticHeadersInFunction=EP;function TP(Q,Y,G){return{timeoutMillis:Q9(Q.timeoutMillis??Y.timeoutMillis??G.timeoutMillis),concurrencyLimit:Q.concurrencyLimit??Y.concurrencyLimit??G.concurrencyLimit,compression:Q.compression??Y.compression??G.compression}}X9.mergeOtlpSharedConfigurationWithDefaults=TP;function hP(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}X9.getSharedConfigurationDefaults=hP});var G9=V((z9)=>{Object.defineProperty(z9,"__esModule",{value:!0});z9.CompressionAlgorithm=void 0;var wP;(function(Q){Q.NONE="none",Q.GZIP="gzip"})(wP=z9.CompressionAlgorithm||(z9.CompressionAlgorithm={}))});var M7=V((q9)=>{Object.defineProperty(q9,"__esModule",{value:!0});q9.createBoundedQueueExportPromiseHandler=void 0;class W9{_concurrencyLimit;_sendingPromises=[];constructor(Q){this._concurrencyLimit=Q}pushPromise(Q){if(this.hasReachedLimit())throw Error("Concurrency Limit reached");this._sendingPromises.push(Q);let Y=()=>{let G=this._sendingPromises.indexOf(Q);this._sendingPromises.splice(G,1)};Q.then(Y,Y)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function RP(Q){return new W9(Q.concurrencyLimit)}q9.createBoundedQueueExportPromiseHandler=RP});var H6=V((F9)=>{Object.defineProperty(F9,"__esModule",{value:!0});F9.isTracingSuppressed=F9.unsuppressTracing=F9.suppressTracing=void 0;var kP=T(),P7=(0,kP.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function $P(Q){return Q.setValue(P7,!0)}F9.suppressTracing=$P;function SP(Q){return Q.deleteValue(P7)}F9.unsuppressTracing=SP;function fP(Q){return Q.getValue(P7)===!0}F9.isTracingSuppressed=fP});var w7=V((O9)=>{Object.defineProperty(O9,"__esModule",{value:!0});O9.BAGGAGE_MAX_TOTAL_LENGTH=O9.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=O9.BAGGAGE_MAX_NAME_VALUE_PAIRS=O9.BAGGAGE_HEADER=O9.BAGGAGE_ITEMS_SEPARATOR=O9.BAGGAGE_PROPERTIES_SEPARATOR=O9.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;O9.BAGGAGE_KEY_PAIR_SEPARATOR="=";O9.BAGGAGE_PROPERTIES_SEPARATOR=";";O9.BAGGAGE_ITEMS_SEPARATOR=",";O9.BAGGAGE_HEADER="baggage";O9.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;O9.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;O9.BAGGAGE_MAX_TOTAL_LENGTH=8192});var R7=V((N9)=>{Object.defineProperty(N9,"__esModule",{value:!0});N9.parseKeyPairsIntoRecord=N9.parsePairKeyValue=N9.getKeyPairs=N9.serializeKeyPairs=void 0;var lP=T(),S1=w7();function cP(Q){return Q.reduce((Y,G)=>{let K=`${Y}${Y!==""?S1.BAGGAGE_ITEMS_SEPARATOR:""}${G}`;return K.length>S1.BAGGAGE_MAX_TOTAL_LENGTH?Y:K},"")}N9.serializeKeyPairs=cP;function nP(Q){return Q.getAllEntries().map(([Y,G])=>{let K=`${encodeURIComponent(Y)}=${encodeURIComponent(G.value)}`;if(G.metadata!==void 0)K+=S1.BAGGAGE_PROPERTIES_SEPARATOR+G.metadata.toString();return K})}N9.getKeyPairs=nP;function V9(Q){if(!Q)return;let Y=Q.indexOf(S1.BAGGAGE_PROPERTIES_SEPARATOR),G=Y===-1?Q:Q.substring(0,Y),K=G.indexOf(S1.BAGGAGE_KEY_PAIR_SEPARATOR);if(K<=0)return;let z=G.substring(0,K).trim(),W=G.substring(K+1).trim();if(!z||!W)return;let J,Z;try{J=decodeURIComponent(z),Z=decodeURIComponent(W)}catch{return}let X;if(Y!==-1&&Y<Q.length-1){let q=Q.substring(Y+1);X=(0,lP.baggageEntryMetadataFromString)(q)}return{key:J,value:Z,metadata:X}}N9.parsePairKeyValue=V9;function mP(Q){let Y={};if(typeof Q==="string"&&Q.length>0)Q.split(S1.BAGGAGE_ITEMS_SEPARATOR).forEach((G)=>{let K=V9(G);if(K!==void 0&&K.value.length>0)Y[K.key]=K.value});return Y}N9.parseKeyPairsIntoRecord=mP});var A9=V((D9)=>{Object.defineProperty(D9,"__esModule",{value:!0});D9.W3CBaggagePropagator=void 0;var k7=T(),oP=H6(),e0=w7(),$7=R7();class C9{inject(Q,Y,G){let K=k7.propagation.getBaggage(Q);if(!K||(0,oP.isTracingSuppressed)(Q))return;let z=(0,$7.getKeyPairs)(K).filter((J)=>{return J.length<=e0.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS}).slice(0,e0.BAGGAGE_MAX_NAME_VALUE_PAIRS),W=(0,$7.serializeKeyPairs)(z);if(W.length>0)G.set(Y,e0.BAGGAGE_HEADER,W)}extract(Q,Y,G){let K=G.get(Y,e0.BAGGAGE_HEADER),z=Array.isArray(K)?K.join(e0.BAGGAGE_ITEMS_SEPARATOR):K;if(!z)return Q;let W={};if(z.length===0)return Q;if(z.split(e0.BAGGAGE_ITEMS_SEPARATOR).forEach((Z)=>{let X=(0,$7.parsePairKeyValue)(Z);if(X){let q={value:X.value};if(X.metadata)q.metadata=X.metadata;W[X.key]=q}}),Object.entries(W).length===0)return Q;return k7.propagation.setBaggage(Q,k7.propagation.createBaggage(W))}fields(){return[e0.BAGGAGE_HEADER]}}D9.W3CBaggagePropagator=C9});var L9=V((T9)=>{Object.defineProperty(T9,"__esModule",{value:!0});T9.AnchoredClock=void 0;class E9{_monotonicClock;_epochMillis;_performanceMillis;constructor(Q,Y){this._monotonicClock=Y,this._epochMillis=Q.now(),this._performanceMillis=Y.now()}now(){let Q=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+Q}}T9.AnchoredClock=E9});var S9=V((k9)=>{Object.defineProperty(k9,"__esModule",{value:!0});k9.isAttributeValue=k9.isAttributeKey=k9.sanitizeAttributes=void 0;var M9=T();function aP(Q){let Y={};if(typeof Q!=="object"||Q==null)return Y;for(let G in Q){if(!Object.prototype.hasOwnProperty.call(Q,G))continue;if(!P9(G)){M9.diag.warn(`Invalid attribute key: ${G}`);continue}let K=Q[G];if(!w9(K)){M9.diag.warn(`Invalid attribute value set for key: ${G}`);continue}if(Array.isArray(K))Y[G]=K.slice();else Y[G]=K}return Y}k9.sanitizeAttributes=aP;function P9(Q){return typeof Q==="string"&&Q!==""}k9.isAttributeKey=P9;function w9(Q){if(Q==null)return!0;if(Array.isArray(Q))return tP(Q);return R9(typeof Q)}k9.isAttributeValue=w9;function tP(Q){let Y;for(let G of Q){if(G==null)continue;let K=typeof G;if(K===Y)continue;if(!Y){if(R9(K)){Y=K;continue}return!1}return!1}return!0}function R9(Q){switch(Q){case"number":case"boolean":case"string":return!0}return!1}});var S7=V((f9)=>{Object.defineProperty(f9,"__esModule",{value:!0});f9.loggingErrorHandler=void 0;var eP=T();function Zw(){return(Q)=>{eP.diag.error(Jw(Q))}}f9.loggingErrorHandler=Zw;function Jw(Q){if(typeof Q==="string")return Q;else return JSON.stringify(Qw(Q))}function Qw(Q){let Y={},G=Q;while(G!==null)Object.getOwnPropertyNames(G).forEach((K)=>{if(Y[K])return;let z=G[K];if(z)Y[K]=String(z)}),G=Object.getPrototypeOf(G);return Y}});var j9=V((v9)=>{Object.defineProperty(v9,"__esModule",{value:!0});v9.globalErrorHandler=v9.setGlobalErrorHandler=void 0;var Xw=S7(),y9=(0,Xw.loggingErrorHandler)();function Yw(Q){y9=Q}v9.setGlobalErrorHandler=Yw;function zw(Q){try{y9(Q)}catch{}}v9.globalErrorHandler=zw});var n9=V((l9)=>{Object.defineProperty(l9,"__esModule",{value:!0});l9.getStringListFromEnv=l9.getBooleanFromEnv=l9.getStringFromEnv=l9.getNumberFromEnv=void 0;var b9=T(),d9=j("util");function Ww(Q){let Y=process.env[Q];if(Y==null||Y.trim()==="")return;let G=Number(Y);if(isNaN(G)){b9.diag.warn(`Unknown value ${(0,d9.inspect)(Y)} for ${Q}, expected a number, using defaults`);return}return G}l9.getNumberFromEnv=Ww;function u9(Q){let Y=process.env[Q];if(Y==null||Y.trim()==="")return;return Y}l9.getStringFromEnv=u9;function qw(Q){let Y=process.env[Q]?.trim().toLowerCase();if(Y==null||Y==="")return!1;if(Y==="true")return!0;else if(Y==="false")return!1;else return b9.diag.warn(`Unknown value ${(0,d9.inspect)(Y)} for ${Q}, expected 'true' or 'false', falling back to 'false' (default)`),!1}l9.getBooleanFromEnv=qw;function Kw(Q){return u9(Q)?.split(",").map((Y)=>Y.trim()).filter((Y)=>Y!=="")}l9.getStringListFromEnv=Kw});var g9=V((m9)=>{Object.defineProperty(m9,"__esModule",{value:!0});m9._globalThis=void 0;m9._globalThis=globalThis});var a9=V((i9)=>{Object.defineProperty(i9,"__esModule",{value:!0});i9.VERSION=void 0;i9.VERSION="2.6.1"});var f7=V((t9)=>{Object.defineProperty(t9,"__esModule",{value:!0});t9.createConstMap=void 0;function Bw(Q){let Y={},G=Q.length;for(let K=0;K<G;K++){let z=Q[K];if(z)Y[String(z).toUpperCase().replace(/[-.]/g,"_")]=z}return Y}t9.createConstMap=Bw});var oW=V((lW)=>{Object.defineProperty(lW,"__esModule",{value:!0});lW.SEMATTRS_NET_HOST_CARRIER_ICC=lW.SEMATTRS_NET_HOST_CARRIER_MNC=lW.SEMATTRS_NET_HOST_CARRIER_MCC=lW.SEMATTRS_NET_HOST_CARRIER_NAME=lW.SEMATTRS_NET_HOST_CONNECTION_SUBTYPE=lW.SEMATTRS_NET_HOST_CONNECTION_TYPE=lW.SEMATTRS_NET_HOST_NAME=lW.SEMATTRS_NET_HOST_PORT=lW.SEMATTRS_NET_HOST_IP=lW.SEMATTRS_NET_PEER_NAME=lW.SEMATTRS_NET_PEER_PORT=lW.SEMATTRS_NET_PEER_IP=lW.SEMATTRS_NET_TRANSPORT=lW.SEMATTRS_FAAS_INVOKED_REGION=lW.SEMATTRS_FAAS_INVOKED_PROVIDER=lW.SEMATTRS_FAAS_INVOKED_NAME=lW.SEMATTRS_FAAS_COLDSTART=lW.SEMATTRS_FAAS_CRON=lW.SEMATTRS_FAAS_TIME=lW.SEMATTRS_FAAS_DOCUMENT_NAME=lW.SEMATTRS_FAAS_DOCUMENT_TIME=lW.SEMATTRS_FAAS_DOCUMENT_OPERATION=lW.SEMATTRS_FAAS_DOCUMENT_COLLECTION=lW.SEMATTRS_FAAS_EXECUTION=lW.SEMATTRS_FAAS_TRIGGER=lW.SEMATTRS_EXCEPTION_ESCAPED=lW.SEMATTRS_EXCEPTION_STACKTRACE=lW.SEMATTRS_EXCEPTION_MESSAGE=lW.SEMATTRS_EXCEPTION_TYPE=lW.SEMATTRS_DB_SQL_TABLE=lW.SEMATTRS_DB_MONGODB_COLLECTION=lW.SEMATTRS_DB_REDIS_DATABASE_INDEX=lW.SEMATTRS_DB_HBASE_NAMESPACE=lW.SEMATTRS_DB_CASSANDRA_COORDINATOR_DC=lW.SEMATTRS_DB_CASSANDRA_COORDINATOR_ID=lW.SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT=lW.SEMATTRS_DB_CASSANDRA_IDEMPOTENCE=lW.SEMATTRS_DB_CASSANDRA_TABLE=lW.SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL=lW.SEMATTRS_DB_CASSANDRA_PAGE_SIZE=lW.SEMATTRS_DB_CASSANDRA_KEYSPACE=lW.SEMATTRS_DB_MSSQL_INSTANCE_NAME=lW.SEMATTRS_DB_OPERATION=lW.SEMATTRS_DB_STATEMENT=lW.SEMATTRS_DB_NAME=lW.SEMATTRS_DB_JDBC_DRIVER_CLASSNAME=lW.SEMATTRS_DB_USER=lW.SEMATTRS_DB_CONNECTION_STRING=lW.SEMATTRS_DB_SYSTEM=lW.SEMATTRS_AWS_LAMBDA_INVOKED_ARN=void 0;lW.SEMATTRS_MESSAGING_DESTINATION_KIND=lW.SEMATTRS_MESSAGING_DESTINATION=lW.SEMATTRS_MESSAGING_SYSTEM=lW.SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES=lW.SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS=lW.SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT=lW.SEMATTRS_AWS_DYNAMODB_COUNT=lW.SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS=lW.SEMATTRS_AWS_DYNAMODB_SEGMENT=lW.SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD=lW.SEMATTRS_AWS_DYNAMODB_TABLE_COUNT=lW.SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE=lW.SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES=lW.SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES=lW.SEMATTRS_AWS_DYNAMODB_SELECT=lW.SEMATTRS_AWS_DYNAMODB_INDEX_NAME=lW.SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET=lW.SEMATTRS_AWS_DYNAMODB_LIMIT=lW.SEMATTRS_AWS_DYNAMODB_PROJECTION=lW.SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ=lW.SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY=lW.SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY=lW.SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS=lW.SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY=lW.SEMATTRS_AWS_DYNAMODB_TABLE_NAMES=lW.SEMATTRS_HTTP_CLIENT_IP=lW.SEMATTRS_HTTP_ROUTE=lW.SEMATTRS_HTTP_SERVER_NAME=lW.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED=lW.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH=lW.SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED=lW.SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH=lW.SEMATTRS_HTTP_USER_AGENT=lW.SEMATTRS_HTTP_FLAVOR=lW.SEMATTRS_HTTP_STATUS_CODE=lW.SEMATTRS_HTTP_SCHEME=lW.SEMATTRS_HTTP_HOST=lW.SEMATTRS_HTTP_TARGET=lW.SEMATTRS_HTTP_URL=lW.SEMATTRS_HTTP_METHOD=lW.SEMATTRS_CODE_LINENO=lW.SEMATTRS_CODE_FILEPATH=lW.SEMATTRS_CODE_NAMESPACE=lW.SEMATTRS_CODE_FUNCTION=lW.SEMATTRS_THREAD_NAME=lW.SEMATTRS_THREAD_ID=lW.SEMATTRS_ENDUSER_SCOPE=lW.SEMATTRS_ENDUSER_ROLE=lW.SEMATTRS_ENDUSER_ID=lW.SEMATTRS_PEER_SERVICE=void 0;lW.DBSYSTEMVALUES_FILEMAKER=lW.DBSYSTEMVALUES_DERBY=lW.DBSYSTEMVALUES_FIREBIRD=lW.DBSYSTEMVALUES_ADABAS=lW.DBSYSTEMVALUES_CACHE=lW.DBSYSTEMVALUES_EDB=lW.DBSYSTEMVALUES_FIRSTSQL=lW.DBSYSTEMVALUES_INGRES=lW.DBSYSTEMVALUES_HANADB=lW.DBSYSTEMVALUES_MAXDB=lW.DBSYSTEMVALUES_PROGRESS=lW.DBSYSTEMVALUES_HSQLDB=lW.DBSYSTEMVALUES_CLOUDSCAPE=lW.DBSYSTEMVALUES_HIVE=lW.DBSYSTEMVALUES_REDSHIFT=lW.DBSYSTEMVALUES_POSTGRESQL=lW.DBSYSTEMVALUES_DB2=lW.DBSYSTEMVALUES_ORACLE=lW.DBSYSTEMVALUES_MYSQL=lW.DBSYSTEMVALUES_MSSQL=lW.DBSYSTEMVALUES_OTHER_SQL=lW.SemanticAttributes=lW.SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE=lW.SEMATTRS_MESSAGE_COMPRESSED_SIZE=lW.SEMATTRS_MESSAGE_ID=lW.SEMATTRS_MESSAGE_TYPE=lW.SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE=lW.SEMATTRS_RPC_JSONRPC_ERROR_CODE=lW.SEMATTRS_RPC_JSONRPC_REQUEST_ID=lW.SEMATTRS_RPC_JSONRPC_VERSION=lW.SEMATTRS_RPC_GRPC_STATUS_CODE=lW.SEMATTRS_RPC_METHOD=lW.SEMATTRS_RPC_SERVICE=lW.SEMATTRS_RPC_SYSTEM=lW.SEMATTRS_MESSAGING_KAFKA_TOMBSTONE=lW.SEMATTRS_MESSAGING_KAFKA_PARTITION=lW.SEMATTRS_MESSAGING_KAFKA_CLIENT_ID=lW.SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP=lW.SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY=lW.SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY=lW.SEMATTRS_MESSAGING_CONSUMER_ID=lW.SEMATTRS_MESSAGING_OPERATION=lW.SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES=lW.SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES=lW.SEMATTRS_MESSAGING_CONVERSATION_ID=lW.SEMATTRS_MESSAGING_MESSAGE_ID=lW.SEMATTRS_MESSAGING_URL=lW.SEMATTRS_MESSAGING_PROTOCOL_VERSION=lW.SEMATTRS_MESSAGING_PROTOCOL=lW.SEMATTRS_MESSAGING_TEMP_DESTINATION=void 0;lW.FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD=lW.FaasDocumentOperationValues=lW.FAASDOCUMENTOPERATIONVALUES_DELETE=lW.FAASDOCUMENTOPERATIONVALUES_EDIT=lW.FAASDOCUMENTOPERATIONVALUES_INSERT=lW.FaasTriggerValues=lW.FAASTRIGGERVALUES_OTHER=lW.FAASTRIGGERVALUES_TIMER=lW.FAASTRIGGERVALUES_PUBSUB=lW.FAASTRIGGERVALUES_HTTP=lW.FAASTRIGGERVALUES_DATASOURCE=lW.DbCassandraConsistencyLevelValues=lW.DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL=lW.DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL=lW.DBCASSANDRACONSISTENCYLEVELVALUES_ANY=lW.DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE=lW.DBCASSANDRACONSISTENCYLEVELVALUES_THREE=lW.DBCASSANDRACONSISTENCYLEVELVALUES_TWO=lW.DBCASSANDRACONSISTENCYLEVELVALUES_ONE=lW.DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM=lW.DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM=lW.DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM=lW.DBCASSANDRACONSISTENCYLEVELVALUES_ALL=lW.DbSystemValues=lW.DBSYSTEMVALUES_COCKROACHDB=lW.DBSYSTEMVALUES_MEMCACHED=lW.DBSYSTEMVALUES_ELASTICSEARCH=lW.DBSYSTEMVALUES_GEODE=lW.DBSYSTEMVALUES_NEO4J=lW.DBSYSTEMVALUES_DYNAMODB=lW.DBSYSTEMVALUES_COSMOSDB=lW.DBSYSTEMVALUES_COUCHDB=lW.DBSYSTEMVALUES_COUCHBASE=lW.DBSYSTEMVALUES_REDIS=lW.DBSYSTEMVALUES_MONGODB=lW.DBSYSTEMVALUES_HBASE=lW.DBSYSTEMVALUES_CASSANDRA=lW.DBSYSTEMVALUES_COLDFUSION=lW.DBSYSTEMVALUES_H2=lW.DBSYSTEMVALUES_VERTICA=lW.DBSYSTEMVALUES_TERADATA=lW.DBSYSTEMVALUES_SYBASE=lW.DBSYSTEMVALUES_SQLITE=lW.DBSYSTEMVALUES_POINTBASE=lW.DBSYSTEMVALUES_PERVASIVE=lW.DBSYSTEMVALUES_NETEZZA=lW.DBSYSTEMVALUES_MARIADB=lW.DBSYSTEMVALUES_INTERBASE=lW.DBSYSTEMVALUES_INSTANTDB=lW.DBSYSTEMVALUES_INFORMIX=void 0;lW.MESSAGINGOPERATIONVALUES_RECEIVE=lW.MessagingDestinationKindValues=lW.MESSAGINGDESTINATIONKINDVALUES_TOPIC=lW.MESSAGINGDESTINATIONKINDVALUES_QUEUE=lW.HttpFlavorValues=lW.HTTPFLAVORVALUES_QUIC=lW.HTTPFLAVORVALUES_SPDY=lW.HTTPFLAVORVALUES_HTTP_2_0=lW.HTTPFLAVORVALUES_HTTP_1_1=lW.HTTPFLAVORVALUES_HTTP_1_0=lW.NetHostConnectionSubtypeValues=lW.NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA=lW.NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA=lW.NETHOSTCONNECTIONSUBTYPEVALUES_NR=lW.NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN=lW.NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA=lW.NETHOSTCONNECTIONSUBTYPEVALUES_GSM=lW.NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP=lW.NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD=lW.NETHOSTCONNECTIONSUBTYPEVALUES_LTE=lW.NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B=lW.NETHOSTCONNECTIONSUBTYPEVALUES_IDEN=lW.NETHOSTCONNECTIONSUBTYPEVALUES_HSPA=lW.NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA=lW.NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA=lW.NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT=lW.NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A=lW.NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0=lW.NETHOSTCONNECTIONSUBTYPEVALUES_CDMA=lW.NETHOSTCONNECTIONSUBTYPEVALUES_UMTS=lW.NETHOSTCONNECTIONSUBTYPEVALUES_EDGE=lW.NETHOSTCONNECTIONSUBTYPEVALUES_GPRS=lW.NetHostConnectionTypeValues=lW.NETHOSTCONNECTIONTYPEVALUES_UNKNOWN=lW.NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE=lW.NETHOSTCONNECTIONTYPEVALUES_CELL=lW.NETHOSTCONNECTIONTYPEVALUES_WIRED=lW.NETHOSTCONNECTIONTYPEVALUES_WIFI=lW.NetTransportValues=lW.NETTRANSPORTVALUES_OTHER=lW.NETTRANSPORTVALUES_INPROC=lW.NETTRANSPORTVALUES_PIPE=lW.NETTRANSPORTVALUES_UNIX=lW.NETTRANSPORTVALUES_IP=lW.NETTRANSPORTVALUES_IP_UDP=lW.NETTRANSPORTVALUES_IP_TCP=lW.FaasInvokedProviderValues=lW.FAASINVOKEDPROVIDERVALUES_GCP=lW.FAASINVOKEDPROVIDERVALUES_AZURE=lW.FAASINVOKEDPROVIDERVALUES_AWS=void 0;lW.MessageTypeValues=lW.MESSAGETYPEVALUES_RECEIVED=lW.MESSAGETYPEVALUES_SENT=lW.RpcGrpcStatusCodeValues=lW.RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED=lW.RPCGRPCSTATUSCODEVALUES_DATA_LOSS=lW.RPCGRPCSTATUSCODEVALUES_UNAVAILABLE=lW.RPCGRPCSTATUSCODEVALUES_INTERNAL=lW.RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED=lW.RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE=lW.RPCGRPCSTATUSCODEVALUES_ABORTED=lW.RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION=lW.RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED=lW.RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED=lW.RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS=lW.RPCGRPCSTATUSCODEVALUES_NOT_FOUND=lW.RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED=lW.RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT=lW.RPCGRPCSTATUSCODEVALUES_UNKNOWN=lW.RPCGRPCSTATUSCODEVALUES_CANCELLED=lW.RPCGRPCSTATUSCODEVALUES_OK=lW.MessagingOperationValues=lW.MESSAGINGOPERATIONVALUES_PROCESS=void 0;var W0=f7(),s9="aws.lambda.invoked_arn",e9="db.system",ZY="db.connection_string",JY="db.user",QY="db.jdbc.driver_classname",XY="db.name",YY="db.statement",zY="db.operation",GY="db.mssql.instance_name",WY="db.cassandra.keyspace",qY="db.cassandra.page_size",KY="db.cassandra.consistency_level",FY="db.cassandra.table",HY="db.cassandra.idempotence",OY="db.cassandra.speculative_execution_count",BY="db.cassandra.coordinator.id",VY="db.cassandra.coordinator.dc",NY="db.hbase.namespace",IY="db.redis.database_index",CY="db.mongodb.collection",DY="db.sql.table",UY="exception.type",AY="exception.message",EY="exception.stacktrace",TY="exception.escaped",hY="faas.trigger",LY="faas.execution",MY="faas.document.collection",PY="faas.document.operation",wY="faas.document.time",RY="faas.document.name",kY="faas.time",$Y="faas.cron",SY="faas.coldstart",fY="faas.invoked_name",_Y="faas.invoked_provider",yY="faas.invoked_region",vY="net.transport",xY="net.peer.ip",jY="net.peer.port",bY="net.peer.name",dY="net.host.ip",uY="net.host.port",lY="net.host.name",cY="net.host.connection.type",nY="net.host.connection.subtype",mY="net.host.carrier.name",pY="net.host.carrier.mcc",gY="net.host.carrier.mnc",iY="net.host.carrier.icc",oY="peer.service",aY="enduser.id",tY="enduser.role",rY="enduser.scope",sY="thread.id",eY="thread.name",Z3="code.function",J3="code.namespace",Q3="code.filepath",X3="code.lineno",Y3="http.method",z3="http.url",G3="http.target",W3="http.host",q3="http.scheme",K3="http.status_code",F3="http.flavor",H3="http.user_agent",O3="http.request_content_length",B3="http.request_content_length_uncompressed",V3="http.response_content_length",N3="http.response_content_length_uncompressed",I3="http.server_name",C3="http.route",D3="http.client_ip",U3="aws.dynamodb.table_names",A3="aws.dynamodb.consumed_capacity",E3="aws.dynamodb.item_collection_metrics",T3="aws.dynamodb.provisioned_read_capacity",h3="aws.dynamodb.provisioned_write_capacity",L3="aws.dynamodb.consistent_read",M3="aws.dynamodb.projection",P3="aws.dynamodb.limit",w3="aws.dynamodb.attributes_to_get",R3="aws.dynamodb.index_name",k3="aws.dynamodb.select",$3="aws.dynamodb.global_secondary_indexes",S3="aws.dynamodb.local_secondary_indexes",f3="aws.dynamodb.exclusive_start_table",_3="aws.dynamodb.table_count",y3="aws.dynamodb.scan_forward",v3="aws.dynamodb.segment",x3="aws.dynamodb.total_segments",j3="aws.dynamodb.count",b3="aws.dynamodb.scanned_count",d3="aws.dynamodb.attribute_definitions",u3="aws.dynamodb.global_secondary_index_updates",l3="messaging.system",c3="messaging.destination",n3="messaging.destination_kind",m3="messaging.temp_destination",p3="messaging.protocol",g3="messaging.protocol_version",i3="messaging.url",o3="messaging.message_id",a3="messaging.conversation_id",t3="messaging.message_payload_size_bytes",r3="messaging.message_payload_compressed_size_bytes",s3="messaging.operation",e3="messaging.consumer_id",Zz="messaging.rabbitmq.routing_key",Jz="messaging.kafka.message_key",Qz="messaging.kafka.consumer_group",Xz="messaging.kafka.client_id",Yz="messaging.kafka.partition",zz="messaging.kafka.tombstone",Gz="rpc.system",Wz="rpc.service",qz="rpc.method",Kz="rpc.grpc.status_code",Fz="rpc.jsonrpc.version",Hz="rpc.jsonrpc.request_id",Oz="rpc.jsonrpc.error_code",Bz="rpc.jsonrpc.error_message",Vz="message.type",Nz="message.id",Iz="message.compressed_size",Cz="message.uncompressed_size";lW.SEMATTRS_AWS_LAMBDA_INVOKED_ARN=s9;lW.SEMATTRS_DB_SYSTEM=e9;lW.SEMATTRS_DB_CONNECTION_STRING=ZY;lW.SEMATTRS_DB_USER=JY;lW.SEMATTRS_DB_JDBC_DRIVER_CLASSNAME=QY;lW.SEMATTRS_DB_NAME=XY;lW.SEMATTRS_DB_STATEMENT=YY;lW.SEMATTRS_DB_OPERATION=zY;lW.SEMATTRS_DB_MSSQL_INSTANCE_NAME=GY;lW.SEMATTRS_DB_CASSANDRA_KEYSPACE=WY;lW.SEMATTRS_DB_CASSANDRA_PAGE_SIZE=qY;lW.SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL=KY;lW.SEMATTRS_DB_CASSANDRA_TABLE=FY;lW.SEMATTRS_DB_CASSANDRA_IDEMPOTENCE=HY;lW.SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT=OY;lW.SEMATTRS_DB_CASSANDRA_COORDINATOR_ID=BY;lW.SEMATTRS_DB_CASSANDRA_COORDINATOR_DC=VY;lW.SEMATTRS_DB_HBASE_NAMESPACE=NY;lW.SEMATTRS_DB_REDIS_DATABASE_INDEX=IY;lW.SEMATTRS_DB_MONGODB_COLLECTION=CY;lW.SEMATTRS_DB_SQL_TABLE=DY;lW.SEMATTRS_EXCEPTION_TYPE=UY;lW.SEMATTRS_EXCEPTION_MESSAGE=AY;lW.SEMATTRS_EXCEPTION_STACKTRACE=EY;lW.SEMATTRS_EXCEPTION_ESCAPED=TY;lW.SEMATTRS_FAAS_TRIGGER=hY;lW.SEMATTRS_FAAS_EXECUTION=LY;lW.SEMATTRS_FAAS_DOCUMENT_COLLECTION=MY;lW.SEMATTRS_FAAS_DOCUMENT_OPERATION=PY;lW.SEMATTRS_FAAS_DOCUMENT_TIME=wY;lW.SEMATTRS_FAAS_DOCUMENT_NAME=RY;lW.SEMATTRS_FAAS_TIME=kY;lW.SEMATTRS_FAAS_CRON=$Y;lW.SEMATTRS_FAAS_COLDSTART=SY;lW.SEMATTRS_FAAS_INVOKED_NAME=fY;lW.SEMATTRS_FAAS_INVOKED_PROVIDER=_Y;lW.SEMATTRS_FAAS_INVOKED_REGION=yY;lW.SEMATTRS_NET_TRANSPORT=vY;lW.SEMATTRS_NET_PEER_IP=xY;lW.SEMATTRS_NET_PEER_PORT=jY;lW.SEMATTRS_NET_PEER_NAME=bY;lW.SEMATTRS_NET_HOST_IP=dY;lW.SEMATTRS_NET_HOST_PORT=uY;lW.SEMATTRS_NET_HOST_NAME=lY;lW.SEMATTRS_NET_HOST_CONNECTION_TYPE=cY;lW.SEMATTRS_NET_HOST_CONNECTION_SUBTYPE=nY;lW.SEMATTRS_NET_HOST_CARRIER_NAME=mY;lW.SEMATTRS_NET_HOST_CARRIER_MCC=pY;lW.SEMATTRS_NET_HOST_CARRIER_MNC=gY;lW.SEMATTRS_NET_HOST_CARRIER_ICC=iY;lW.SEMATTRS_PEER_SERVICE=oY;lW.SEMATTRS_ENDUSER_ID=aY;lW.SEMATTRS_ENDUSER_ROLE=tY;lW.SEMATTRS_ENDUSER_SCOPE=rY;lW.SEMATTRS_THREAD_ID=sY;lW.SEMATTRS_THREAD_NAME=eY;lW.SEMATTRS_CODE_FUNCTION=Z3;lW.SEMATTRS_CODE_NAMESPACE=J3;lW.SEMATTRS_CODE_FILEPATH=Q3;lW.SEMATTRS_CODE_LINENO=X3;lW.SEMATTRS_HTTP_METHOD=Y3;lW.SEMATTRS_HTTP_URL=z3;lW.SEMATTRS_HTTP_TARGET=G3;lW.SEMATTRS_HTTP_HOST=W3;lW.SEMATTRS_HTTP_SCHEME=q3;lW.SEMATTRS_HTTP_STATUS_CODE=K3;lW.SEMATTRS_HTTP_FLAVOR=F3;lW.SEMATTRS_HTTP_USER_AGENT=H3;lW.SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH=O3;lW.SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED=B3;lW.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH=V3;lW.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED=N3;lW.SEMATTRS_HTTP_SERVER_NAME=I3;lW.SEMATTRS_HTTP_ROUTE=C3;lW.SEMATTRS_HTTP_CLIENT_IP=D3;lW.SEMATTRS_AWS_DYNAMODB_TABLE_NAMES=U3;lW.SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY=A3;lW.SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS=E3;lW.SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY=T3;lW.SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY=h3;lW.SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ=L3;lW.SEMATTRS_AWS_DYNAMODB_PROJECTION=M3;lW.SEMATTRS_AWS_DYNAMODB_LIMIT=P3;lW.SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET=w3;lW.SEMATTRS_AWS_DYNAMODB_INDEX_NAME=R3;lW.SEMATTRS_AWS_DYNAMODB_SELECT=k3;lW.SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES=$3;lW.SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES=S3;lW.SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE=f3;lW.SEMATTRS_AWS_DYNAMODB_TABLE_COUNT=_3;lW.SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD=y3;lW.SEMATTRS_AWS_DYNAMODB_SEGMENT=v3;lW.SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS=x3;lW.SEMATTRS_AWS_DYNAMODB_COUNT=j3;lW.SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT=b3;lW.SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS=d3;lW.SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES=u3;lW.SEMATTRS_MESSAGING_SYSTEM=l3;lW.SEMATTRS_MESSAGING_DESTINATION=c3;lW.SEMATTRS_MESSAGING_DESTINATION_KIND=n3;lW.SEMATTRS_MESSAGING_TEMP_DESTINATION=m3;lW.SEMATTRS_MESSAGING_PROTOCOL=p3;lW.SEMATTRS_MESSAGING_PROTOCOL_VERSION=g3;lW.SEMATTRS_MESSAGING_URL=i3;lW.SEMATTRS_MESSAGING_MESSAGE_ID=o3;lW.SEMATTRS_MESSAGING_CONVERSATION_ID=a3;lW.SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES=t3;lW.SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES=r3;lW.SEMATTRS_MESSAGING_OPERATION=s3;lW.SEMATTRS_MESSAGING_CONSUMER_ID=e3;lW.SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY=Zz;lW.SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY=Jz;lW.SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP=Qz;lW.SEMATTRS_MESSAGING_KAFKA_CLIENT_ID=Xz;lW.SEMATTRS_MESSAGING_KAFKA_PARTITION=Yz;lW.SEMATTRS_MESSAGING_KAFKA_TOMBSTONE=zz;lW.SEMATTRS_RPC_SYSTEM=Gz;lW.SEMATTRS_RPC_SERVICE=Wz;lW.SEMATTRS_RPC_METHOD=qz;lW.SEMATTRS_RPC_GRPC_STATUS_CODE=Kz;lW.SEMATTRS_RPC_JSONRPC_VERSION=Fz;lW.SEMATTRS_RPC_JSONRPC_REQUEST_ID=Hz;lW.SEMATTRS_RPC_JSONRPC_ERROR_CODE=Oz;lW.SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE=Bz;lW.SEMATTRS_MESSAGE_TYPE=Vz;lW.SEMATTRS_MESSAGE_ID=Nz;lW.SEMATTRS_MESSAGE_COMPRESSED_SIZE=Iz;lW.SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE=Cz;lW.SemanticAttributes=(0,W0.createConstMap)([s9,e9,ZY,JY,QY,XY,YY,zY,GY,WY,qY,KY,FY,HY,OY,BY,VY,NY,IY,CY,DY,UY,AY,EY,TY,hY,LY,MY,PY,wY,RY,kY,$Y,SY,fY,_Y,yY,vY,xY,jY,bY,dY,uY,lY,cY,nY,mY,pY,gY,iY,oY,aY,tY,rY,sY,eY,Z3,J3,Q3,X3,Y3,z3,G3,W3,q3,K3,F3,H3,O3,B3,V3,N3,I3,C3,D3,U3,A3,E3,T3,h3,L3,M3,P3,w3,R3,k3,$3,S3,f3,_3,y3,v3,x3,j3,b3,d3,u3,l3,c3,n3,m3,p3,g3,i3,o3,a3,t3,r3,s3,e3,Zz,Jz,Qz,Xz,Yz,zz,Gz,Wz,qz,Kz,Fz,Hz,Oz,Bz,Vz,Nz,Iz,Cz]);var Dz="other_sql",Uz="mssql",Az="mysql",Ez="oracle",Tz="db2",hz="postgresql",Lz="redshift",Mz="hive",Pz="cloudscape",wz="hsqldb",Rz="progress",kz="maxdb",$z="hanadb",Sz="ingres",fz="firstsql",_z="edb",yz="cache",vz="adabas",xz="firebird",jz="derby",bz="filemaker",dz="informix",uz="instantdb",lz="interbase",cz="mariadb",nz="netezza",mz="pervasive",pz="pointbase",gz="sqlite",iz="sybase",oz="teradata",az="vertica",tz="h2",rz="coldfusion",sz="cassandra",ez="hbase",ZG="mongodb",JG="redis",QG="couchbase",XG="couchdb",YG="cosmosdb",zG="dynamodb",GG="neo4j",WG="geode",qG="elasticsearch",KG="memcached",FG="cockroachdb";lW.DBSYSTEMVALUES_OTHER_SQL=Dz;lW.DBSYSTEMVALUES_MSSQL=Uz;lW.DBSYSTEMVALUES_MYSQL=Az;lW.DBSYSTEMVALUES_ORACLE=Ez;lW.DBSYSTEMVALUES_DB2=Tz;lW.DBSYSTEMVALUES_POSTGRESQL=hz;lW.DBSYSTEMVALUES_REDSHIFT=Lz;lW.DBSYSTEMVALUES_HIVE=Mz;lW.DBSYSTEMVALUES_CLOUDSCAPE=Pz;lW.DBSYSTEMVALUES_HSQLDB=wz;lW.DBSYSTEMVALUES_PROGRESS=Rz;lW.DBSYSTEMVALUES_MAXDB=kz;lW.DBSYSTEMVALUES_HANADB=$z;lW.DBSYSTEMVALUES_INGRES=Sz;lW.DBSYSTEMVALUES_FIRSTSQL=fz;lW.DBSYSTEMVALUES_EDB=_z;lW.DBSYSTEMVALUES_CACHE=yz;lW.DBSYSTEMVALUES_ADABAS=vz;lW.DBSYSTEMVALUES_FIREBIRD=xz;lW.DBSYSTEMVALUES_DERBY=jz;lW.DBSYSTEMVALUES_FILEMAKER=bz;lW.DBSYSTEMVALUES_INFORMIX=dz;lW.DBSYSTEMVALUES_INSTANTDB=uz;lW.DBSYSTEMVALUES_INTERBASE=lz;lW.DBSYSTEMVALUES_MARIADB=cz;lW.DBSYSTEMVALUES_NETEZZA=nz;lW.DBSYSTEMVALUES_PERVASIVE=mz;lW.DBSYSTEMVALUES_POINTBASE=pz;lW.DBSYSTEMVALUES_SQLITE=gz;lW.DBSYSTEMVALUES_SYBASE=iz;lW.DBSYSTEMVALUES_TERADATA=oz;lW.DBSYSTEMVALUES_VERTICA=az;lW.DBSYSTEMVALUES_H2=tz;lW.DBSYSTEMVALUES_COLDFUSION=rz;lW.DBSYSTEMVALUES_CASSANDRA=sz;lW.DBSYSTEMVALUES_HBASE=ez;lW.DBSYSTEMVALUES_MONGODB=ZG;lW.DBSYSTEMVALUES_REDIS=JG;lW.DBSYSTEMVALUES_COUCHBASE=QG;lW.DBSYSTEMVALUES_COUCHDB=XG;lW.DBSYSTEMVALUES_COSMOSDB=YG;lW.DBSYSTEMVALUES_DYNAMODB=zG;lW.DBSYSTEMVALUES_NEO4J=GG;lW.DBSYSTEMVALUES_GEODE=WG;lW.DBSYSTEMVALUES_ELASTICSEARCH=qG;lW.DBSYSTEMVALUES_MEMCACHED=KG;lW.DBSYSTEMVALUES_COCKROACHDB=FG;lW.DbSystemValues=(0,W0.createConstMap)([Dz,Uz,Az,Ez,Tz,hz,Lz,Mz,Pz,wz,Rz,kz,$z,Sz,fz,_z,yz,vz,xz,jz,bz,dz,uz,lz,cz,nz,mz,pz,gz,iz,oz,az,tz,rz,sz,ez,ZG,JG,QG,XG,YG,zG,GG,WG,qG,KG,FG]);var HG="all",OG="each_quorum",BG="quorum",VG="local_quorum",NG="one",IG="two",CG="three",DG="local_one",UG="any",AG="serial",EG="local_serial";lW.DBCASSANDRACONSISTENCYLEVELVALUES_ALL=HG;lW.DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM=OG;lW.DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM=BG;lW.DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM=VG;lW.DBCASSANDRACONSISTENCYLEVELVALUES_ONE=NG;lW.DBCASSANDRACONSISTENCYLEVELVALUES_TWO=IG;lW.DBCASSANDRACONSISTENCYLEVELVALUES_THREE=CG;lW.DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE=DG;lW.DBCASSANDRACONSISTENCYLEVELVALUES_ANY=UG;lW.DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL=AG;lW.DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL=EG;lW.DbCassandraConsistencyLevelValues=(0,W0.createConstMap)([HG,OG,BG,VG,NG,IG,CG,DG,UG,AG,EG]);var TG="datasource",hG="http",LG="pubsub",MG="timer",PG="other";lW.FAASTRIGGERVALUES_DATASOURCE=TG;lW.FAASTRIGGERVALUES_HTTP=hG;lW.FAASTRIGGERVALUES_PUBSUB=LG;lW.FAASTRIGGERVALUES_TIMER=MG;lW.FAASTRIGGERVALUES_OTHER=PG;lW.FaasTriggerValues=(0,W0.createConstMap)([TG,hG,LG,MG,PG]);var wG="insert",RG="edit",kG="delete";lW.FAASDOCUMENTOPERATIONVALUES_INSERT=wG;lW.FAASDOCUMENTOPERATIONVALUES_EDIT=RG;lW.FAASDOCUMENTOPERATIONVALUES_DELETE=kG;lW.FaasDocumentOperationValues=(0,W0.createConstMap)([wG,RG,kG]);var $G="alibaba_cloud",SG="aws",fG="azure",_G="gcp";lW.FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD=$G;lW.FAASINVOKEDPROVIDERVALUES_AWS=SG;lW.FAASINVOKEDPROVIDERVALUES_AZURE=fG;lW.FAASINVOKEDPROVIDERVALUES_GCP=_G;lW.FaasInvokedProviderValues=(0,W0.createConstMap)([$G,SG,fG,_G]);var yG="ip_tcp",vG="ip_udp",xG="ip",jG="unix",bG="pipe",dG="inproc",uG="other";lW.NETTRANSPORTVALUES_IP_TCP=yG;lW.NETTRANSPORTVALUES_IP_UDP=vG;lW.NETTRANSPORTVALUES_IP=xG;lW.NETTRANSPORTVALUES_UNIX=jG;lW.NETTRANSPORTVALUES_PIPE=bG;lW.NETTRANSPORTVALUES_INPROC=dG;lW.NETTRANSPORTVALUES_OTHER=uG;lW.NetTransportValues=(0,W0.createConstMap)([yG,vG,xG,jG,bG,dG,uG]);var lG="wifi",cG="wired",nG="cell",mG="unavailable",pG="unknown";lW.NETHOSTCONNECTIONTYPEVALUES_WIFI=lG;lW.NETHOSTCONNECTIONTYPEVALUES_WIRED=cG;lW.NETHOSTCONNECTIONTYPEVALUES_CELL=nG;lW.NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE=mG;lW.NETHOSTCONNECTIONTYPEVALUES_UNKNOWN=pG;lW.NetHostConnectionTypeValues=(0,W0.createConstMap)([lG,cG,nG,mG,pG]);var gG="gprs",iG="edge",oG="umts",aG="cdma",tG="evdo_0",rG="evdo_a",sG="cdma2000_1xrtt",eG="hsdpa",ZW="hsupa",JW="hspa",QW="iden",XW="evdo_b",YW="lte",zW="ehrpd",GW="hspap",WW="gsm",qW="td_scdma",KW="iwlan",FW="nr",HW="nrnsa",OW="lte_ca";lW.NETHOSTCONNECTIONSUBTYPEVALUES_GPRS=gG;lW.NETHOSTCONNECTIONSUBTYPEVALUES_EDGE=iG;lW.NETHOSTCONNECTIONSUBTYPEVALUES_UMTS=oG;lW.NETHOSTCONNECTIONSUBTYPEVALUES_CDMA=aG;lW.NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0=tG;lW.NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A=rG;lW.NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT=sG;lW.NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA=eG;lW.NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA=ZW;lW.NETHOSTCONNECTIONSUBTYPEVALUES_HSPA=JW;lW.NETHOSTCONNECTIONSUBTYPEVALUES_IDEN=QW;lW.NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B=XW;lW.NETHOSTCONNECTIONSUBTYPEVALUES_LTE=YW;lW.NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD=zW;lW.NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP=GW;lW.NETHOSTCONNECTIONSUBTYPEVALUES_GSM=WW;lW.NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA=qW;lW.NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN=KW;lW.NETHOSTCONNECTIONSUBTYPEVALUES_NR=FW;lW.NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA=HW;lW.NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA=OW;lW.NetHostConnectionSubtypeValues=(0,W0.createConstMap)([gG,iG,oG,aG,tG,rG,sG,eG,ZW,JW,QW,XW,YW,zW,GW,WW,qW,KW,FW,HW,OW]);var BW="1.0",VW="1.1",NW="2.0",IW="SPDY",CW="QUIC";lW.HTTPFLAVORVALUES_HTTP_1_0=BW;lW.HTTPFLAVORVALUES_HTTP_1_1=VW;lW.HTTPFLAVORVALUES_HTTP_2_0=NW;lW.HTTPFLAVORVALUES_SPDY=IW;lW.HTTPFLAVORVALUES_QUIC=CW;lW.HttpFlavorValues={HTTP_1_0:BW,HTTP_1_1:VW,HTTP_2_0:NW,SPDY:IW,QUIC:CW};var DW="queue",UW="topic";lW.MESSAGINGDESTINATIONKINDVALUES_QUEUE=DW;lW.MESSAGINGDESTINATIONKINDVALUES_TOPIC=UW;lW.MessagingDestinationKindValues=(0,W0.createConstMap)([DW,UW]);var AW="receive",EW="process";lW.MESSAGINGOPERATIONVALUES_RECEIVE=AW;lW.MESSAGINGOPERATIONVALUES_PROCESS=EW;lW.MessagingOperationValues=(0,W0.createConstMap)([AW,EW]);var TW=0,hW=1,LW=2,MW=3,PW=4,wW=5,RW=6,kW=7,$W=8,SW=9,fW=10,_W=11,yW=12,vW=13,xW=14,jW=15,bW=16;lW.RPCGRPCSTATUSCODEVALUES_OK=TW;lW.RPCGRPCSTATUSCODEVALUES_CANCELLED=hW;lW.RPCGRPCSTATUSCODEVALUES_UNKNOWN=LW;lW.RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT=MW;lW.RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED=PW;lW.RPCGRPCSTATUSCODEVALUES_NOT_FOUND=wW;lW.RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS=RW;lW.RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED=kW;lW.RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED=$W;lW.RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION=SW;lW.RPCGRPCSTATUSCODEVALUES_ABORTED=fW;lW.RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE=_W;lW.RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED=yW;lW.RPCGRPCSTATUSCODEVALUES_INTERNAL=vW;lW.RPCGRPCSTATUSCODEVALUES_UNAVAILABLE=xW;lW.RPCGRPCSTATUSCODEVALUES_DATA_LOSS=jW;lW.RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED=bW;lW.RpcGrpcStatusCodeValues={OK:TW,CANCELLED:hW,UNKNOWN:LW,INVALID_ARGUMENT:MW,DEADLINE_EXCEEDED:PW,NOT_FOUND:wW,ALREADY_EXISTS:RW,PERMISSION_DENIED:kW,RESOURCE_EXHAUSTED:$W,FAILED_PRECONDITION:SW,ABORTED:fW,OUT_OF_RANGE:_W,UNIMPLEMENTED:yW,INTERNAL:vW,UNAVAILABLE:xW,DATA_LOSS:jW,UNAUTHENTICATED:bW};var dW="SENT",uW="RECEIVED";lW.MESSAGETYPEVALUES_SENT=dW;lW.MESSAGETYPEVALUES_RECEIVED=uW;lW.MessageTypeValues=(0,W0.createConstMap)([dW,uW])});var aW=V((Z1)=>{var Hf=Z1&&Z1.__createBinding||(Object.create?function(Q,Y,G,K){if(K===void 0)K=G;var z=Object.getOwnPropertyDescriptor(Y,G);if(!z||("get"in z?!Y.__esModule:z.writable||z.configurable))z={enumerable:!0,get:function(){return Y[G]}};Object.defineProperty(Q,K,z)}:function(Q,Y,G,K){if(K===void 0)K=G;Q[K]=Y[G]}),Of=Z1&&Z1.__exportStar||function(Q,Y){for(var G in Q)if(G!=="default"&&!Object.prototype.hasOwnProperty.call(Y,G))Hf(Y,Q,G)};Object.defineProperty(Z1,"__esModule",{value:!0});Of(oW(),Z1)});var LF=V((AF)=>{Object.defineProperty(AF,"__esModule",{value:!0});AF.SEMRESATTRS_K8S_STATEFULSET_NAME=AF.SEMRESATTRS_K8S_STATEFULSET_UID=AF.SEMRESATTRS_K8S_DEPLOYMENT_NAME=AF.SEMRESATTRS_K8S_DEPLOYMENT_UID=AF.SEMRESATTRS_K8S_REPLICASET_NAME=AF.SEMRESATTRS_K8S_REPLICASET_UID=AF.SEMRESATTRS_K8S_CONTAINER_NAME=AF.SEMRESATTRS_K8S_POD_NAME=AF.SEMRESATTRS_K8S_POD_UID=AF.SEMRESATTRS_K8S_NAMESPACE_NAME=AF.SEMRESATTRS_K8S_NODE_UID=AF.SEMRESATTRS_K8S_NODE_NAME=AF.SEMRESATTRS_K8S_CLUSTER_NAME=AF.SEMRESATTRS_HOST_IMAGE_VERSION=AF.SEMRESATTRS_HOST_IMAGE_ID=AF.SEMRESATTRS_HOST_IMAGE_NAME=AF.SEMRESATTRS_HOST_ARCH=AF.SEMRESATTRS_HOST_TYPE=AF.SEMRESATTRS_HOST_NAME=AF.SEMRESATTRS_HOST_ID=AF.SEMRESATTRS_FAAS_MAX_MEMORY=AF.SEMRESATTRS_FAAS_INSTANCE=AF.SEMRESATTRS_FAAS_VERSION=AF.SEMRESATTRS_FAAS_ID=AF.SEMRESATTRS_FAAS_NAME=AF.SEMRESATTRS_DEVICE_MODEL_NAME=AF.SEMRESATTRS_DEVICE_MODEL_IDENTIFIER=AF.SEMRESATTRS_DEVICE_ID=AF.SEMRESATTRS_DEPLOYMENT_ENVIRONMENT=AF.SEMRESATTRS_CONTAINER_IMAGE_TAG=AF.SEMRESATTRS_CONTAINER_IMAGE_NAME=AF.SEMRESATTRS_CONTAINER_RUNTIME=AF.SEMRESATTRS_CONTAINER_ID=AF.SEMRESATTRS_CONTAINER_NAME=AF.SEMRESATTRS_AWS_LOG_STREAM_ARNS=AF.SEMRESATTRS_AWS_LOG_STREAM_NAMES=AF.SEMRESATTRS_AWS_LOG_GROUP_ARNS=AF.SEMRESATTRS_AWS_LOG_GROUP_NAMES=AF.SEMRESATTRS_AWS_EKS_CLUSTER_ARN=AF.SEMRESATTRS_AWS_ECS_TASK_REVISION=AF.SEMRESATTRS_AWS_ECS_TASK_FAMILY=AF.SEMRESATTRS_AWS_ECS_TASK_ARN=AF.SEMRESATTRS_AWS_ECS_LAUNCHTYPE=AF.SEMRESATTRS_AWS_ECS_CLUSTER_ARN=AF.SEMRESATTRS_AWS_ECS_CONTAINER_ARN=AF.SEMRESATTRS_CLOUD_PLATFORM=AF.SEMRESATTRS_CLOUD_AVAILABILITY_ZONE=AF.SEMRESATTRS_CLOUD_REGION=AF.SEMRESATTRS_CLOUD_ACCOUNT_ID=AF.SEMRESATTRS_CLOUD_PROVIDER=void 0;AF.CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE=AF.CLOUDPLATFORMVALUES_AZURE_APP_SERVICE=AF.CLOUDPLATFORMVALUES_AZURE_FUNCTIONS=AF.CLOUDPLATFORMVALUES_AZURE_AKS=AF.CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES=AF.CLOUDPLATFORMVALUES_AZURE_VM=AF.CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK=AF.CLOUDPLATFORMVALUES_AWS_LAMBDA=AF.CLOUDPLATFORMVALUES_AWS_EKS=AF.CLOUDPLATFORMVALUES_AWS_ECS=AF.CLOUDPLATFORMVALUES_AWS_EC2=AF.CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC=AF.CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS=AF.CloudProviderValues=AF.CLOUDPROVIDERVALUES_GCP=AF.CLOUDPROVIDERVALUES_AZURE=AF.CLOUDPROVIDERVALUES_AWS=AF.CLOUDPROVIDERVALUES_ALIBABA_CLOUD=AF.SemanticResourceAttributes=AF.SEMRESATTRS_WEBENGINE_DESCRIPTION=AF.SEMRESATTRS_WEBENGINE_VERSION=AF.SEMRESATTRS_WEBENGINE_NAME=AF.SEMRESATTRS_TELEMETRY_AUTO_VERSION=AF.SEMRESATTRS_TELEMETRY_SDK_VERSION=AF.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE=AF.SEMRESATTRS_TELEMETRY_SDK_NAME=AF.SEMRESATTRS_SERVICE_VERSION=AF.SEMRESATTRS_SERVICE_INSTANCE_ID=AF.SEMRESATTRS_SERVICE_NAMESPACE=AF.SEMRESATTRS_SERVICE_NAME=AF.SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION=AF.SEMRESATTRS_PROCESS_RUNTIME_VERSION=AF.SEMRESATTRS_PROCESS_RUNTIME_NAME=AF.SEMRESATTRS_PROCESS_OWNER=AF.SEMRESATTRS_PROCESS_COMMAND_ARGS=AF.SEMRESATTRS_PROCESS_COMMAND_LINE=AF.SEMRESATTRS_PROCESS_COMMAND=AF.SEMRESATTRS_PROCESS_EXECUTABLE_PATH=AF.SEMRESATTRS_PROCESS_EXECUTABLE_NAME=AF.SEMRESATTRS_PROCESS_PID=AF.SEMRESATTRS_OS_VERSION=AF.SEMRESATTRS_OS_NAME=AF.SEMRESATTRS_OS_DESCRIPTION=AF.SEMRESATTRS_OS_TYPE=AF.SEMRESATTRS_K8S_CRONJOB_NAME=AF.SEMRESATTRS_K8S_CRONJOB_UID=AF.SEMRESATTRS_K8S_JOB_NAME=AF.SEMRESATTRS_K8S_JOB_UID=AF.SEMRESATTRS_K8S_DAEMONSET_NAME=AF.SEMRESATTRS_K8S_DAEMONSET_UID=void 0;AF.TelemetrySdkLanguageValues=AF.TELEMETRYSDKLANGUAGEVALUES_WEBJS=AF.TELEMETRYSDKLANGUAGEVALUES_RUBY=AF.TELEMETRYSDKLANGUAGEVALUES_PYTHON=AF.TELEMETRYSDKLANGUAGEVALUES_PHP=AF.TELEMETRYSDKLANGUAGEVALUES_NODEJS=AF.TELEMETRYSDKLANGUAGEVALUES_JAVA=AF.TELEMETRYSDKLANGUAGEVALUES_GO=AF.TELEMETRYSDKLANGUAGEVALUES_ERLANG=AF.TELEMETRYSDKLANGUAGEVALUES_DOTNET=AF.TELEMETRYSDKLANGUAGEVALUES_CPP=AF.OsTypeValues=AF.OSTYPEVALUES_Z_OS=AF.OSTYPEVALUES_SOLARIS=AF.OSTYPEVALUES_AIX=AF.OSTYPEVALUES_HPUX=AF.OSTYPEVALUES_DRAGONFLYBSD=AF.OSTYPEVALUES_OPENBSD=AF.OSTYPEVALUES_NETBSD=AF.OSTYPEVALUES_FREEBSD=AF.OSTYPEVALUES_DARWIN=AF.OSTYPEVALUES_LINUX=AF.OSTYPEVALUES_WINDOWS=AF.HostArchValues=AF.HOSTARCHVALUES_X86=AF.HOSTARCHVALUES_PPC64=AF.HOSTARCHVALUES_PPC32=AF.HOSTARCHVALUES_IA64=AF.HOSTARCHVALUES_ARM64=AF.HOSTARCHVALUES_ARM32=AF.HOSTARCHVALUES_AMD64=AF.AwsEcsLaunchtypeValues=AF.AWSECSLAUNCHTYPEVALUES_FARGATE=AF.AWSECSLAUNCHTYPEVALUES_EC2=AF.CloudPlatformValues=AF.CLOUDPLATFORMVALUES_GCP_APP_ENGINE=AF.CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS=AF.CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE=AF.CLOUDPLATFORMVALUES_GCP_CLOUD_RUN=void 0;var J1=f7(),tW="cloud.provider",rW="cloud.account.id",sW="cloud.region",eW="cloud.availability_zone",Zq="cloud.platform",Jq="aws.ecs.container.arn",Qq="aws.ecs.cluster.arn",Xq="aws.ecs.launchtype",Yq="aws.ecs.task.arn",zq="aws.ecs.task.family",Gq="aws.ecs.task.revision",Wq="aws.eks.cluster.arn",qq="aws.log.group.names",Kq="aws.log.group.arns",Fq="aws.log.stream.names",Hq="aws.log.stream.arns",Oq="container.name",Bq="container.id",Vq="container.runtime",Nq="container.image.name",Iq="container.image.tag",Cq="deployment.environment",Dq="device.id",Uq="device.model.identifier",Aq="device.model.name",Eq="faas.name",Tq="faas.id",hq="faas.version",Lq="faas.instance",Mq="faas.max_memory",Pq="host.id",wq="host.name",Rq="host.type",kq="host.arch",$q="host.image.name",Sq="host.image.id",fq="host.image.version",_q="k8s.cluster.name",yq="k8s.node.name",vq="k8s.node.uid",xq="k8s.namespace.name",jq="k8s.pod.uid",bq="k8s.pod.name",dq="k8s.container.name",uq="k8s.replicaset.uid",lq="k8s.replicaset.name",cq="k8s.deployment.uid",nq="k8s.deployment.name",mq="k8s.statefulset.uid",pq="k8s.statefulset.name",gq="k8s.daemonset.uid",iq="k8s.daemonset.name",oq="k8s.job.uid",aq="k8s.job.name",tq="k8s.cronjob.uid",rq="k8s.cronjob.name",sq="os.type",eq="os.description",ZK="os.name",JK="os.version",QK="process.pid",XK="process.executable.name",YK="process.executable.path",zK="process.command",GK="process.command_line",WK="process.command_args",qK="process.owner",KK="process.runtime.name",FK="process.runtime.version",HK="process.runtime.description",OK="service.name",BK="service.namespace",VK="service.instance.id",NK="service.version",IK="telemetry.sdk.name",CK="telemetry.sdk.language",DK="telemetry.sdk.version",UK="telemetry.auto.version",AK="webengine.name",EK="webengine.version",TK="webengine.description";AF.SEMRESATTRS_CLOUD_PROVIDER=tW;AF.SEMRESATTRS_CLOUD_ACCOUNT_ID=rW;AF.SEMRESATTRS_CLOUD_REGION=sW;AF.SEMRESATTRS_CLOUD_AVAILABILITY_ZONE=eW;AF.SEMRESATTRS_CLOUD_PLATFORM=Zq;AF.SEMRESATTRS_AWS_ECS_CONTAINER_ARN=Jq;AF.SEMRESATTRS_AWS_ECS_CLUSTER_ARN=Qq;AF.SEMRESATTRS_AWS_ECS_LAUNCHTYPE=Xq;AF.SEMRESATTRS_AWS_ECS_TASK_ARN=Yq;AF.SEMRESATTRS_AWS_ECS_TASK_FAMILY=zq;AF.SEMRESATTRS_AWS_ECS_TASK_REVISION=Gq;AF.SEMRESATTRS_AWS_EKS_CLUSTER_ARN=Wq;AF.SEMRESATTRS_AWS_LOG_GROUP_NAMES=qq;AF.SEMRESATTRS_AWS_LOG_GROUP_ARNS=Kq;AF.SEMRESATTRS_AWS_LOG_STREAM_NAMES=Fq;AF.SEMRESATTRS_AWS_LOG_STREAM_ARNS=Hq;AF.SEMRESATTRS_CONTAINER_NAME=Oq;AF.SEMRESATTRS_CONTAINER_ID=Bq;AF.SEMRESATTRS_CONTAINER_RUNTIME=Vq;AF.SEMRESATTRS_CONTAINER_IMAGE_NAME=Nq;AF.SEMRESATTRS_CONTAINER_IMAGE_TAG=Iq;AF.SEMRESATTRS_DEPLOYMENT_ENVIRONMENT=Cq;AF.SEMRESATTRS_DEVICE_ID=Dq;AF.SEMRESATTRS_DEVICE_MODEL_IDENTIFIER=Uq;AF.SEMRESATTRS_DEVICE_MODEL_NAME=Aq;AF.SEMRESATTRS_FAAS_NAME=Eq;AF.SEMRESATTRS_FAAS_ID=Tq;AF.SEMRESATTRS_FAAS_VERSION=hq;AF.SEMRESATTRS_FAAS_INSTANCE=Lq;AF.SEMRESATTRS_FAAS_MAX_MEMORY=Mq;AF.SEMRESATTRS_HOST_ID=Pq;AF.SEMRESATTRS_HOST_NAME=wq;AF.SEMRESATTRS_HOST_TYPE=Rq;AF.SEMRESATTRS_HOST_ARCH=kq;AF.SEMRESATTRS_HOST_IMAGE_NAME=$q;AF.SEMRESATTRS_HOST_IMAGE_ID=Sq;AF.SEMRESATTRS_HOST_IMAGE_VERSION=fq;AF.SEMRESATTRS_K8S_CLUSTER_NAME=_q;AF.SEMRESATTRS_K8S_NODE_NAME=yq;AF.SEMRESATTRS_K8S_NODE_UID=vq;AF.SEMRESATTRS_K8S_NAMESPACE_NAME=xq;AF.SEMRESATTRS_K8S_POD_UID=jq;AF.SEMRESATTRS_K8S_POD_NAME=bq;AF.SEMRESATTRS_K8S_CONTAINER_NAME=dq;AF.SEMRESATTRS_K8S_REPLICASET_UID=uq;AF.SEMRESATTRS_K8S_REPLICASET_NAME=lq;AF.SEMRESATTRS_K8S_DEPLOYMENT_UID=cq;AF.SEMRESATTRS_K8S_DEPLOYMENT_NAME=nq;AF.SEMRESATTRS_K8S_STATEFULSET_UID=mq;AF.SEMRESATTRS_K8S_STATEFULSET_NAME=pq;AF.SEMRESATTRS_K8S_DAEMONSET_UID=gq;AF.SEMRESATTRS_K8S_DAEMONSET_NAME=iq;AF.SEMRESATTRS_K8S_JOB_UID=oq;AF.SEMRESATTRS_K8S_JOB_NAME=aq;AF.SEMRESATTRS_K8S_CRONJOB_UID=tq;AF.SEMRESATTRS_K8S_CRONJOB_NAME=rq;AF.SEMRESATTRS_OS_TYPE=sq;AF.SEMRESATTRS_OS_DESCRIPTION=eq;AF.SEMRESATTRS_OS_NAME=ZK;AF.SEMRESATTRS_OS_VERSION=JK;AF.SEMRESATTRS_PROCESS_PID=QK;AF.SEMRESATTRS_PROCESS_EXECUTABLE_NAME=XK;AF.SEMRESATTRS_PROCESS_EXECUTABLE_PATH=YK;AF.SEMRESATTRS_PROCESS_COMMAND=zK;AF.SEMRESATTRS_PROCESS_COMMAND_LINE=GK;AF.SEMRESATTRS_PROCESS_COMMAND_ARGS=WK;AF.SEMRESATTRS_PROCESS_OWNER=qK;AF.SEMRESATTRS_PROCESS_RUNTIME_NAME=KK;AF.SEMRESATTRS_PROCESS_RUNTIME_VERSION=FK;AF.SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION=HK;AF.SEMRESATTRS_SERVICE_NAME=OK;AF.SEMRESATTRS_SERVICE_NAMESPACE=BK;AF.SEMRESATTRS_SERVICE_INSTANCE_ID=VK;AF.SEMRESATTRS_SERVICE_VERSION=NK;AF.SEMRESATTRS_TELEMETRY_SDK_NAME=IK;AF.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE=CK;AF.SEMRESATTRS_TELEMETRY_SDK_VERSION=DK;AF.SEMRESATTRS_TELEMETRY_AUTO_VERSION=UK;AF.SEMRESATTRS_WEBENGINE_NAME=AK;AF.SEMRESATTRS_WEBENGINE_VERSION=EK;AF.SEMRESATTRS_WEBENGINE_DESCRIPTION=TK;AF.SemanticResourceAttributes=(0,J1.createConstMap)([tW,rW,sW,eW,Zq,Jq,Qq,Xq,Yq,zq,Gq,Wq,qq,Kq,Fq,Hq,Oq,Bq,Vq,Nq,Iq,Cq,Dq,Uq,Aq,Eq,Tq,hq,Lq,Mq,Pq,wq,Rq,kq,$q,Sq,fq,_q,yq,vq,xq,jq,bq,dq,uq,lq,cq,nq,mq,pq,gq,iq,oq,aq,tq,rq,sq,eq,ZK,JK,QK,XK,YK,zK,GK,WK,qK,KK,FK,HK,OK,BK,VK,NK,IK,CK,DK,UK,AK,EK,TK]);var hK="alibaba_cloud",LK="aws",MK="azure",PK="gcp";AF.CLOUDPROVIDERVALUES_ALIBABA_CLOUD=hK;AF.CLOUDPROVIDERVALUES_AWS=LK;AF.CLOUDPROVIDERVALUES_AZURE=MK;AF.CLOUDPROVIDERVALUES_GCP=PK;AF.CloudProviderValues=(0,J1.createConstMap)([hK,LK,MK,PK]);var wK="alibaba_cloud_ecs",RK="alibaba_cloud_fc",kK="aws_ec2",$K="aws_ecs",SK="aws_eks",fK="aws_lambda",_K="aws_elastic_beanstalk",yK="azure_vm",vK="azure_container_instances",xK="azure_aks",jK="azure_functions",bK="azure_app_service",dK="gcp_compute_engine",uK="gcp_cloud_run",lK="gcp_kubernetes_engine",cK="gcp_cloud_functions",nK="gcp_app_engine";AF.CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS=wK;AF.CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC=RK;AF.CLOUDPLATFORMVALUES_AWS_EC2=kK;AF.CLOUDPLATFORMVALUES_AWS_ECS=$K;AF.CLOUDPLATFORMVALUES_AWS_EKS=SK;AF.CLOUDPLATFORMVALUES_AWS_LAMBDA=fK;AF.CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK=_K;AF.CLOUDPLATFORMVALUES_AZURE_VM=yK;AF.CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES=vK;AF.CLOUDPLATFORMVALUES_AZURE_AKS=xK;AF.CLOUDPLATFORMVALUES_AZURE_FUNCTIONS=jK;AF.CLOUDPLATFORMVALUES_AZURE_APP_SERVICE=bK;AF.CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE=dK;AF.CLOUDPLATFORMVALUES_GCP_CLOUD_RUN=uK;AF.CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE=lK;AF.CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS=cK;AF.CLOUDPLATFORMVALUES_GCP_APP_ENGINE=nK;AF.CloudPlatformValues=(0,J1.createConstMap)([wK,RK,kK,$K,SK,fK,_K,yK,vK,xK,jK,bK,dK,uK,lK,cK,nK]);var mK="ec2",pK="fargate";AF.AWSECSLAUNCHTYPEVALUES_EC2=mK;AF.AWSECSLAUNCHTYPEVALUES_FARGATE=pK;AF.AwsEcsLaunchtypeValues=(0,J1.createConstMap)([mK,pK]);var gK="amd64",iK="arm32",oK="arm64",aK="ia64",tK="ppc32",rK="ppc64",sK="x86";AF.HOSTARCHVALUES_AMD64=gK;AF.HOSTARCHVALUES_ARM32=iK;AF.HOSTARCHVALUES_ARM64=oK;AF.HOSTARCHVALUES_IA64=aK;AF.HOSTARCHVALUES_PPC32=tK;AF.HOSTARCHVALUES_PPC64=rK;AF.HOSTARCHVALUES_X86=sK;AF.HostArchValues=(0,J1.createConstMap)([gK,iK,oK,aK,tK,rK,sK]);var eK="windows",ZF="linux",JF="darwin",QF="freebsd",XF="netbsd",YF="openbsd",zF="dragonflybsd",GF="hpux",WF="aix",qF="solaris",KF="z_os";AF.OSTYPEVALUES_WINDOWS=eK;AF.OSTYPEVALUES_LINUX=ZF;AF.OSTYPEVALUES_DARWIN=JF;AF.OSTYPEVALUES_FREEBSD=QF;AF.OSTYPEVALUES_NETBSD=XF;AF.OSTYPEVALUES_OPENBSD=YF;AF.OSTYPEVALUES_DRAGONFLYBSD=zF;AF.OSTYPEVALUES_HPUX=GF;AF.OSTYPEVALUES_AIX=WF;AF.OSTYPEVALUES_SOLARIS=qF;AF.OSTYPEVALUES_Z_OS=KF;AF.OsTypeValues=(0,J1.createConstMap)([eK,ZF,JF,QF,XF,YF,zF,GF,WF,qF,KF]);var FF="cpp",HF="dotnet",OF="erlang",BF="go",VF="java",NF="nodejs",IF="php",CF="python",DF="ruby",UF="webjs";AF.TELEMETRYSDKLANGUAGEVALUES_CPP=FF;AF.TELEMETRYSDKLANGUAGEVALUES_DOTNET=HF;AF.TELEMETRYSDKLANGUAGEVALUES_ERLANG=OF;AF.TELEMETRYSDKLANGUAGEVALUES_GO=BF;AF.TELEMETRYSDKLANGUAGEVALUES_JAVA=VF;AF.TELEMETRYSDKLANGUAGEVALUES_NODEJS=NF;AF.TELEMETRYSDKLANGUAGEVALUES_PHP=IF;AF.TELEMETRYSDKLANGUAGEVALUES_PYTHON=CF;AF.TELEMETRYSDKLANGUAGEVALUES_RUBY=DF;AF.TELEMETRYSDKLANGUAGEVALUES_WEBJS=UF;AF.TelemetrySdkLanguageValues=(0,J1.createConstMap)([FF,HF,OF,BF,VF,NF,IF,CF,DF,UF])});var MF=V((Q1)=>{var cy=Q1&&Q1.__createBinding||(Object.create?function(Q,Y,G,K){if(K===void 0)K=G;var z=Object.getOwnPropertyDescriptor(Y,G);if(!z||("get"in z?!Y.__esModule:z.writable||z.configurable))z={enumerable:!0,get:function(){return Y[G]}};Object.defineProperty(Q,K,z)}:function(Q,Y,G,K){if(K===void 0)K=G;Q[K]=Y[G]}),ny=Q1&&Q1.__exportStar||function(Q,Y){for(var G in Q)if(G!=="default"&&!Object.prototype.hasOwnProperty.call(Y,G))cy(Y,Q,G)};Object.defineProperty(Q1,"__esModule",{value:!0});ny(LF(),Q1)});var $F=V((PF)=>{Object.defineProperty(PF,"__esModule",{value:!0});PF.ATTR_EXCEPTION_TYPE=PF.ATTR_EXCEPTION_STACKTRACE=PF.ATTR_EXCEPTION_MESSAGE=PF.ATTR_EXCEPTION_ESCAPED=PF.ERROR_TYPE_VALUE_OTHER=PF.ATTR_ERROR_TYPE=PF.DOTNET_GC_HEAP_GENERATION_VALUE_POH=PF.DOTNET_GC_HEAP_GENERATION_VALUE_LOH=PF.DOTNET_GC_HEAP_GENERATION_VALUE_GEN2=PF.DOTNET_GC_HEAP_GENERATION_VALUE_GEN1=PF.DOTNET_GC_HEAP_GENERATION_VALUE_GEN0=PF.ATTR_DOTNET_GC_HEAP_GENERATION=PF.DB_SYSTEM_NAME_VALUE_POSTGRESQL=PF.DB_SYSTEM_NAME_VALUE_MYSQL=PF.DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER=PF.DB_SYSTEM_NAME_VALUE_MARIADB=PF.ATTR_DB_SYSTEM_NAME=PF.ATTR_DB_STORED_PROCEDURE_NAME=PF.ATTR_DB_RESPONSE_STATUS_CODE=PF.ATTR_DB_QUERY_TEXT=PF.ATTR_DB_QUERY_SUMMARY=PF.ATTR_DB_OPERATION_NAME=PF.ATTR_DB_OPERATION_BATCH_SIZE=PF.ATTR_DB_NAMESPACE=PF.ATTR_DB_COLLECTION_NAME=PF.ATTR_CODE_STACKTRACE=PF.ATTR_CODE_LINE_NUMBER=PF.ATTR_CODE_FUNCTION_NAME=PF.ATTR_CODE_FILE_PATH=PF.ATTR_CODE_COLUMN_NUMBER=PF.ATTR_CLIENT_PORT=PF.ATTR_CLIENT_ADDRESS=PF.ATTR_ASPNETCORE_USER_IS_AUTHENTICATED=PF.ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS=PF.ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE=PF.ATTR_ASPNETCORE_ROUTING_MATCH_STATUS=PF.ATTR_ASPNETCORE_ROUTING_IS_FALLBACK=PF.ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED=PF.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED=PF.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER=PF.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER=PF.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED=PF.ATTR_ASPNETCORE_RATE_LIMITING_RESULT=PF.ATTR_ASPNETCORE_RATE_LIMITING_POLICY=PF.ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE=PF.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED=PF.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED=PF.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED=PF.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED=PF.ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT=void 0;PF.OTEL_STATUS_CODE_VALUE_ERROR=PF.ATTR_OTEL_STATUS_CODE=PF.ATTR_OTEL_SCOPE_VERSION=PF.ATTR_OTEL_SCOPE_NAME=PF.NETWORK_TYPE_VALUE_IPV6=PF.NETWORK_TYPE_VALUE_IPV4=PF.ATTR_NETWORK_TYPE=PF.NETWORK_TRANSPORT_VALUE_UNIX=PF.NETWORK_TRANSPORT_VALUE_UDP=PF.NETWORK_TRANSPORT_VALUE_TCP=PF.NETWORK_TRANSPORT_VALUE_QUIC=PF.NETWORK_TRANSPORT_VALUE_PIPE=PF.ATTR_NETWORK_TRANSPORT=PF.ATTR_NETWORK_PROTOCOL_VERSION=PF.ATTR_NETWORK_PROTOCOL_NAME=PF.ATTR_NETWORK_PEER_PORT=PF.ATTR_NETWORK_PEER_ADDRESS=PF.ATTR_NETWORK_LOCAL_PORT=PF.ATTR_NETWORK_LOCAL_ADDRESS=PF.JVM_THREAD_STATE_VALUE_WAITING=PF.JVM_THREAD_STATE_VALUE_TIMED_WAITING=PF.JVM_THREAD_STATE_VALUE_TERMINATED=PF.JVM_THREAD_STATE_VALUE_RUNNABLE=PF.JVM_THREAD_STATE_VALUE_NEW=PF.JVM_THREAD_STATE_VALUE_BLOCKED=PF.ATTR_JVM_THREAD_STATE=PF.ATTR_JVM_THREAD_DAEMON=PF.JVM_MEMORY_TYPE_VALUE_NON_HEAP=PF.JVM_MEMORY_TYPE_VALUE_HEAP=PF.ATTR_JVM_MEMORY_TYPE=PF.ATTR_JVM_MEMORY_POOL_NAME=PF.ATTR_JVM_GC_NAME=PF.ATTR_JVM_GC_ACTION=PF.ATTR_HTTP_ROUTE=PF.ATTR_HTTP_RESPONSE_STATUS_CODE=PF.ATTR_HTTP_RESPONSE_HEADER=PF.ATTR_HTTP_REQUEST_RESEND_COUNT=PF.ATTR_HTTP_REQUEST_METHOD_ORIGINAL=PF.HTTP_REQUEST_METHOD_VALUE_TRACE=PF.HTTP_REQUEST_METHOD_VALUE_PUT=PF.HTTP_REQUEST_METHOD_VALUE_POST=PF.HTTP_REQUEST_METHOD_VALUE_PATCH=PF.HTTP_REQUEST_METHOD_VALUE_OPTIONS=PF.HTTP_REQUEST_METHOD_VALUE_HEAD=PF.HTTP_REQUEST_METHOD_VALUE_GET=PF.HTTP_REQUEST_METHOD_VALUE_DELETE=PF.HTTP_REQUEST_METHOD_VALUE_CONNECT=PF.HTTP_REQUEST_METHOD_VALUE_OTHER=PF.ATTR_HTTP_REQUEST_METHOD=PF.ATTR_HTTP_REQUEST_HEADER=void 0;PF.ATTR_USER_AGENT_ORIGINAL=PF.ATTR_URL_SCHEME=PF.ATTR_URL_QUERY=PF.ATTR_URL_PATH=PF.ATTR_URL_FULL=PF.ATTR_URL_FRAGMENT=PF.ATTR_TELEMETRY_SDK_VERSION=PF.ATTR_TELEMETRY_SDK_NAME=PF.TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS=PF.TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT=PF.TELEMETRY_SDK_LANGUAGE_VALUE_RUST=PF.TELEMETRY_SDK_LANGUAGE_VALUE_RUBY=PF.TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON=PF.TELEMETRY_SDK_LANGUAGE_VALUE_PHP=PF.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS=PF.TELEMETRY_SDK_LANGUAGE_VALUE_JAVA=PF.TELEMETRY_SDK_LANGUAGE_VALUE_GO=PF.TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG=PF.TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET=PF.TELEMETRY_SDK_LANGUAGE_VALUE_CPP=PF.ATTR_TELEMETRY_SDK_LANGUAGE=PF.SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS=PF.SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS=PF.SIGNALR_TRANSPORT_VALUE_LONG_POLLING=PF.ATTR_SIGNALR_TRANSPORT=PF.SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT=PF.SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE=PF.SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN=PF.ATTR_SIGNALR_CONNECTION_STATUS=PF.ATTR_SERVICE_VERSION=PF.ATTR_SERVICE_NAMESPACE=PF.ATTR_SERVICE_NAME=PF.ATTR_SERVICE_INSTANCE_ID=PF.ATTR_SERVER_PORT=PF.ATTR_SERVER_ADDRESS=PF.ATTR_OTEL_STATUS_DESCRIPTION=PF.OTEL_STATUS_CODE_VALUE_OK=void 0;PF.ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT="aspnetcore.diagnostics.exception.result";PF.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED="aborted";PF.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED="handled";PF.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED="skipped";PF.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED="unhandled";PF.ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE="aspnetcore.diagnostics.handler.type";PF.ATTR_ASPNETCORE_RATE_LIMITING_POLICY="aspnetcore.rate_limiting.policy";PF.ATTR_ASPNETCORE_RATE_LIMITING_RESULT="aspnetcore.rate_limiting.result";PF.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED="acquired";PF.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER="endpoint_limiter";PF.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER="global_limiter";PF.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED="request_canceled";PF.ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED="aspnetcore.request.is_unhandled";PF.ATTR_ASPNETCORE_ROUTING_IS_FALLBACK="aspnetcore.routing.is_fallback";PF.ATTR_ASPNETCORE_ROUTING_MATCH_STATUS="aspnetcore.routing.match_status";PF.ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE="failure";PF.ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS="success";PF.ATTR_ASPNETCORE_USER_IS_AUTHENTICATED="aspnetcore.user.is_authenticated";PF.ATTR_CLIENT_ADDRESS="client.address";PF.ATTR_CLIENT_PORT="client.port";PF.ATTR_CODE_COLUMN_NUMBER="code.column.number";PF.ATTR_CODE_FILE_PATH="code.file.path";PF.ATTR_CODE_FUNCTION_NAME="code.function.name";PF.ATTR_CODE_LINE_NUMBER="code.line.number";PF.ATTR_CODE_STACKTRACE="code.stacktrace";PF.ATTR_DB_COLLECTION_NAME="db.collection.name";PF.ATTR_DB_NAMESPACE="db.namespace";PF.ATTR_DB_OPERATION_BATCH_SIZE="db.operation.batch.size";PF.ATTR_DB_OPERATION_NAME="db.operation.name";PF.ATTR_DB_QUERY_SUMMARY="db.query.summary";PF.ATTR_DB_QUERY_TEXT="db.query.text";PF.ATTR_DB_RESPONSE_STATUS_CODE="db.response.status_code";PF.ATTR_DB_STORED_PROCEDURE_NAME="db.stored_procedure.name";PF.ATTR_DB_SYSTEM_NAME="db.system.name";PF.DB_SYSTEM_NAME_VALUE_MARIADB="mariadb";PF.DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER="microsoft.sql_server";PF.DB_SYSTEM_NAME_VALUE_MYSQL="mysql";PF.DB_SYSTEM_NAME_VALUE_POSTGRESQL="postgresql";PF.ATTR_DOTNET_GC_HEAP_GENERATION="dotnet.gc.heap.generation";PF.DOTNET_GC_HEAP_GENERATION_VALUE_GEN0="gen0";PF.DOTNET_GC_HEAP_GENERATION_VALUE_GEN1="gen1";PF.DOTNET_GC_HEAP_GENERATION_VALUE_GEN2="gen2";PF.DOTNET_GC_HEAP_GENERATION_VALUE_LOH="loh";PF.DOTNET_GC_HEAP_GENERATION_VALUE_POH="poh";PF.ATTR_ERROR_TYPE="error.type";PF.ERROR_TYPE_VALUE_OTHER="_OTHER";PF.ATTR_EXCEPTION_ESCAPED="exception.escaped";PF.ATTR_EXCEPTION_MESSAGE="exception.message";PF.ATTR_EXCEPTION_STACKTRACE="exception.stacktrace";PF.ATTR_EXCEPTION_TYPE="exception.type";var my=(Q)=>`http.request.header.${Q}`;PF.ATTR_HTTP_REQUEST_HEADER=my;PF.ATTR_HTTP_REQUEST_METHOD="http.request.method";PF.HTTP_REQUEST_METHOD_VALUE_OTHER="_OTHER";PF.HTTP_REQUEST_METHOD_VALUE_CONNECT="CONNECT";PF.HTTP_REQUEST_METHOD_VALUE_DELETE="DELETE";PF.HTTP_REQUEST_METHOD_VALUE_GET="GET";PF.HTTP_REQUEST_METHOD_VALUE_HEAD="HEAD";PF.HTTP_REQUEST_METHOD_VALUE_OPTIONS="OPTIONS";PF.HTTP_REQUEST_METHOD_VALUE_PATCH="PATCH";PF.HTTP_REQUEST_METHOD_VALUE_POST="POST";PF.HTTP_REQUEST_METHOD_VALUE_PUT="PUT";PF.HTTP_REQUEST_METHOD_VALUE_TRACE="TRACE";PF.ATTR_HTTP_REQUEST_METHOD_ORIGINAL="http.request.method_original";PF.ATTR_HTTP_REQUEST_RESEND_COUNT="http.request.resend_count";var py=(Q)=>`http.response.header.${Q}`;PF.ATTR_HTTP_RESPONSE_HEADER=py;PF.ATTR_HTTP_RESPONSE_STATUS_CODE="http.response.status_code";PF.ATTR_HTTP_ROUTE="http.route";PF.ATTR_JVM_GC_ACTION="jvm.gc.action";PF.ATTR_JVM_GC_NAME="jvm.gc.name";PF.ATTR_JVM_MEMORY_POOL_NAME="jvm.memory.pool.name";PF.ATTR_JVM_MEMORY_TYPE="jvm.memory.type";PF.JVM_MEMORY_TYPE_VALUE_HEAP="heap";PF.JVM_MEMORY_TYPE_VALUE_NON_HEAP="non_heap";PF.ATTR_JVM_THREAD_DAEMON="jvm.thread.daemon";PF.ATTR_JVM_THREAD_STATE="jvm.thread.state";PF.JVM_THREAD_STATE_VALUE_BLOCKED="blocked";PF.JVM_THREAD_STATE_VALUE_NEW="new";PF.JVM_THREAD_STATE_VALUE_RUNNABLE="runnable";PF.JVM_THREAD_STATE_VALUE_TERMINATED="terminated";PF.JVM_THREAD_STATE_VALUE_TIMED_WAITING="timed_waiting";PF.JVM_THREAD_STATE_VALUE_WAITING="waiting";PF.ATTR_NETWORK_LOCAL_ADDRESS="network.local.address";PF.ATTR_NETWORK_LOCAL_PORT="network.local.port";PF.ATTR_NETWORK_PEER_ADDRESS="network.peer.address";PF.ATTR_NETWORK_PEER_PORT="network.peer.port";PF.ATTR_NETWORK_PROTOCOL_NAME="network.protocol.name";PF.ATTR_NETWORK_PROTOCOL_VERSION="network.protocol.version";PF.ATTR_NETWORK_TRANSPORT="network.transport";PF.NETWORK_TRANSPORT_VALUE_PIPE="pipe";PF.NETWORK_TRANSPORT_VALUE_QUIC="quic";PF.NETWORK_TRANSPORT_VALUE_TCP="tcp";PF.NETWORK_TRANSPORT_VALUE_UDP="udp";PF.NETWORK_TRANSPORT_VALUE_UNIX="unix";PF.ATTR_NETWORK_TYPE="network.type";PF.NETWORK_TYPE_VALUE_IPV4="ipv4";PF.NETWORK_TYPE_VALUE_IPV6="ipv6";PF.ATTR_OTEL_SCOPE_NAME="otel.scope.name";PF.ATTR_OTEL_SCOPE_VERSION="otel.scope.version";PF.ATTR_OTEL_STATUS_CODE="otel.status_code";PF.OTEL_STATUS_CODE_VALUE_ERROR="ERROR";PF.OTEL_STATUS_CODE_VALUE_OK="OK";PF.ATTR_OTEL_STATUS_DESCRIPTION="otel.status_description";PF.ATTR_SERVER_ADDRESS="server.address";PF.ATTR_SERVER_PORT="server.port";PF.ATTR_SERVICE_INSTANCE_ID="service.instance.id";PF.ATTR_SERVICE_NAME="service.name";PF.ATTR_SERVICE_NAMESPACE="service.namespace";PF.ATTR_SERVICE_VERSION="service.version";PF.ATTR_SIGNALR_CONNECTION_STATUS="signalr.connection.status";PF.SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN="app_shutdown";PF.SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE="normal_closure";PF.SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT="timeout";PF.ATTR_SIGNALR_TRANSPORT="signalr.transport";PF.SIGNALR_TRANSPORT_VALUE_LONG_POLLING="long_polling";PF.SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS="server_sent_events";PF.SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS="web_sockets";PF.ATTR_TELEMETRY_SDK_LANGUAGE="telemetry.sdk.language";PF.TELEMETRY_SDK_LANGUAGE_VALUE_CPP="cpp";PF.TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET="dotnet";PF.TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG="erlang";PF.TELEMETRY_SDK_LANGUAGE_VALUE_GO="go";PF.TELEMETRY_SDK_LANGUAGE_VALUE_JAVA="java";PF.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS="nodejs";PF.TELEMETRY_SDK_LANGUAGE_VALUE_PHP="php";PF.TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON="python";PF.TELEMETRY_SDK_LANGUAGE_VALUE_RUBY="ruby";PF.TELEMETRY_SDK_LANGUAGE_VALUE_RUST="rust";PF.TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT="swift";PF.TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS="webjs";PF.ATTR_TELEMETRY_SDK_NAME="telemetry.sdk.name";PF.ATTR_TELEMETRY_SDK_VERSION="telemetry.sdk.version";PF.ATTR_URL_FRAGMENT="url.fragment";PF.ATTR_URL_FULL="url.full";PF.ATTR_URL_PATH="url.path";PF.ATTR_URL_QUERY="url.query";PF.ATTR_URL_SCHEME="url.scheme";PF.ATTR_USER_AGENT_ORIGINAL="user_agent.original"});var yF=V((SF)=>{Object.defineProperty(SF,"__esModule",{value:!0});SF.METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS=SF.METRIC_KESTREL_UPGRADED_CONNECTIONS=SF.METRIC_KESTREL_TLS_HANDSHAKE_DURATION=SF.METRIC_KESTREL_REJECTED_CONNECTIONS=SF.METRIC_KESTREL_QUEUED_REQUESTS=SF.METRIC_KESTREL_QUEUED_CONNECTIONS=SF.METRIC_KESTREL_CONNECTION_DURATION=SF.METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES=SF.METRIC_KESTREL_ACTIVE_CONNECTIONS=SF.METRIC_JVM_THREAD_COUNT=SF.METRIC_JVM_MEMORY_USED_AFTER_LAST_GC=SF.METRIC_JVM_MEMORY_USED=SF.METRIC_JVM_MEMORY_LIMIT=SF.METRIC_JVM_MEMORY_COMMITTED=SF.METRIC_JVM_GC_DURATION=SF.METRIC_JVM_CPU_TIME=SF.METRIC_JVM_CPU_RECENT_UTILIZATION=SF.METRIC_JVM_CPU_COUNT=SF.METRIC_JVM_CLASS_UNLOADED=SF.METRIC_JVM_CLASS_LOADED=SF.METRIC_JVM_CLASS_COUNT=SF.METRIC_HTTP_SERVER_REQUEST_DURATION=SF.METRIC_HTTP_CLIENT_REQUEST_DURATION=SF.METRIC_DOTNET_TIMER_COUNT=SF.METRIC_DOTNET_THREAD_POOL_WORK_ITEM_COUNT=SF.METRIC_DOTNET_THREAD_POOL_THREAD_COUNT=SF.METRIC_DOTNET_THREAD_POOL_QUEUE_LENGTH=SF.METRIC_DOTNET_PROCESS_MEMORY_WORKING_SET=SF.METRIC_DOTNET_PROCESS_CPU_TIME=SF.METRIC_DOTNET_PROCESS_CPU_COUNT=SF.METRIC_DOTNET_MONITOR_LOCK_CONTENTIONS=SF.METRIC_DOTNET_JIT_COMPILED_METHODS=SF.METRIC_DOTNET_JIT_COMPILED_IL_SIZE=SF.METRIC_DOTNET_JIT_COMPILATION_TIME=SF.METRIC_DOTNET_GC_PAUSE_TIME=SF.METRIC_DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE=SF.METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_SIZE=SF.METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE=SF.METRIC_DOTNET_GC_HEAP_TOTAL_ALLOCATED=SF.METRIC_DOTNET_GC_COLLECTIONS=SF.METRIC_DOTNET_EXCEPTIONS=SF.METRIC_DOTNET_ASSEMBLY_COUNT=SF.METRIC_DB_CLIENT_OPERATION_DURATION=SF.METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS=SF.METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS=SF.METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION=SF.METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE=SF.METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS=SF.METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES=SF.METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS=void 0;SF.METRIC_SIGNALR_SERVER_CONNECTION_DURATION=void 0;SF.METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS="aspnetcore.diagnostics.exceptions";SF.METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES="aspnetcore.rate_limiting.active_request_leases";SF.METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS="aspnetcore.rate_limiting.queued_requests";SF.METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE="aspnetcore.rate_limiting.request.time_in_queue";SF.METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION="aspnetcore.rate_limiting.request_lease.duration";SF.METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS="aspnetcore.rate_limiting.requests";SF.METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS="aspnetcore.routing.match_attempts";SF.METRIC_DB_CLIENT_OPERATION_DURATION="db.client.operation.duration";SF.METRIC_DOTNET_ASSEMBLY_COUNT="dotnet.assembly.count";SF.METRIC_DOTNET_EXCEPTIONS="dotnet.exceptions";SF.METRIC_DOTNET_GC_COLLECTIONS="dotnet.gc.collections";SF.METRIC_DOTNET_GC_HEAP_TOTAL_ALLOCATED="dotnet.gc.heap.total_allocated";SF.METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE="dotnet.gc.last_collection.heap.fragmentation.size";SF.METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_SIZE="dotnet.gc.last_collection.heap.size";SF.METRIC_DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE="dotnet.gc.last_collection.memory.committed_size";SF.METRIC_DOTNET_GC_PAUSE_TIME="dotnet.gc.pause.time";SF.METRIC_DOTNET_JIT_COMPILATION_TIME="dotnet.jit.compilation.time";SF.METRIC_DOTNET_JIT_COMPILED_IL_SIZE="dotnet.jit.compiled_il.size";SF.METRIC_DOTNET_JIT_COMPILED_METHODS="dotnet.jit.compiled_methods";SF.METRIC_DOTNET_MONITOR_LOCK_CONTENTIONS="dotnet.monitor.lock_contentions";SF.METRIC_DOTNET_PROCESS_CPU_COUNT="dotnet.process.cpu.count";SF.METRIC_DOTNET_PROCESS_CPU_TIME="dotnet.process.cpu.time";SF.METRIC_DOTNET_PROCESS_MEMORY_WORKING_SET="dotnet.process.memory.working_set";SF.METRIC_DOTNET_THREAD_POOL_QUEUE_LENGTH="dotnet.thread_pool.queue.length";SF.METRIC_DOTNET_THREAD_POOL_THREAD_COUNT="dotnet.thread_pool.thread.count";SF.METRIC_DOTNET_THREAD_POOL_WORK_ITEM_COUNT="dotnet.thread_pool.work_item.count";SF.METRIC_DOTNET_TIMER_COUNT="dotnet.timer.count";SF.METRIC_HTTP_CLIENT_REQUEST_DURATION="http.client.request.duration";SF.METRIC_HTTP_SERVER_REQUEST_DURATION="http.server.request.duration";SF.METRIC_JVM_CLASS_COUNT="jvm.class.count";SF.METRIC_JVM_CLASS_LOADED="jvm.class.loaded";SF.METRIC_JVM_CLASS_UNLOADED="jvm.class.unloaded";SF.METRIC_JVM_CPU_COUNT="jvm.cpu.count";SF.METRIC_JVM_CPU_RECENT_UTILIZATION="jvm.cpu.recent_utilization";SF.METRIC_JVM_CPU_TIME="jvm.cpu.time";SF.METRIC_JVM_GC_DURATION="jvm.gc.duration";SF.METRIC_JVM_MEMORY_COMMITTED="jvm.memory.committed";SF.METRIC_JVM_MEMORY_LIMIT="jvm.memory.limit";SF.METRIC_JVM_MEMORY_USED="jvm.memory.used";SF.METRIC_JVM_MEMORY_USED_AFTER_LAST_GC="jvm.memory.used_after_last_gc";SF.METRIC_JVM_THREAD_COUNT="jvm.thread.count";SF.METRIC_KESTREL_ACTIVE_CONNECTIONS="kestrel.active_connections";SF.METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES="kestrel.active_tls_handshakes";SF.METRIC_KESTREL_CONNECTION_DURATION="kestrel.connection.duration";SF.METRIC_KESTREL_QUEUED_CONNECTIONS="kestrel.queued_connections";SF.METRIC_KESTREL_QUEUED_REQUESTS="kestrel.queued_requests";SF.METRIC_KESTREL_REJECTED_CONNECTIONS="kestrel.rejected_connections";SF.METRIC_KESTREL_TLS_HANDSHAKE_DURATION="kestrel.tls_handshake.duration";SF.METRIC_KESTREL_UPGRADED_CONNECTIONS="kestrel.upgraded_connections";SF.METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS="signalr.server.active_connections";SF.METRIC_SIGNALR_SERVER_CONNECTION_DURATION="signalr.server.connection.duration"});var jF=V((vF)=>{Object.defineProperty(vF,"__esModule",{value:!0});vF.EVENT_EXCEPTION=void 0;vF.EVENT_EXCEPTION="exception"});var X1=V((N0)=>{var Bb=N0&&N0.__createBinding||(Object.create?function(Q,Y,G,K){if(K===void 0)K=G;var z=Object.getOwnPropertyDescriptor(Y,G);if(!z||("get"in z?!Y.__esModule:z.writable||z.configurable))z={enumerable:!0,get:function(){return Y[G]}};Object.defineProperty(Q,K,z)}:function(Q,Y,G,K){if(K===void 0)K=G;Q[K]=Y[G]}),O6=N0&&N0.__exportStar||function(Q,Y){for(var G in Q)if(G!=="default"&&!Object.prototype.hasOwnProperty.call(Y,G))Bb(Y,Q,G)};Object.defineProperty(N0,"__esModule",{value:!0});O6(aW(),N0);O6(MF(),N0);O6($F(),N0);O6(yF(),N0);O6(jF(),N0)});var uF=V((bF)=>{Object.defineProperty(bF,"__esModule",{value:!0});bF.ATTR_PROCESS_RUNTIME_NAME=void 0;bF.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name"});var nF=V((lF)=>{Object.defineProperty(lF,"__esModule",{value:!0});lF.SDK_INFO=void 0;var Vb=a9(),WZ=X1(),Nb=uF();lF.SDK_INFO={[WZ.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[Nb.ATTR_PROCESS_RUNTIME_NAME]:"node",[WZ.ATTR_TELEMETRY_SDK_LANGUAGE]:WZ.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,[WZ.ATTR_TELEMETRY_SDK_VERSION]:Vb.VERSION}});var pF=V((j0)=>{Object.defineProperty(j0,"__esModule",{value:!0});j0.otperformance=j0.SDK_INFO=j0._globalThis=j0.getStringListFromEnv=j0.getNumberFromEnv=j0.getBooleanFromEnv=j0.getStringFromEnv=void 0;var qZ=n9();Object.defineProperty(j0,"getStringFromEnv",{enumerable:!0,get:function(){return qZ.getStringFromEnv}});Object.defineProperty(j0,"getBooleanFromEnv",{enumerable:!0,get:function(){return qZ.getBooleanFromEnv}});Object.defineProperty(j0,"getNumberFromEnv",{enumerable:!0,get:function(){return qZ.getNumberFromEnv}});Object.defineProperty(j0,"getStringListFromEnv",{enumerable:!0,get:function(){return qZ.getStringListFromEnv}});var Ib=g9();Object.defineProperty(j0,"_globalThis",{enumerable:!0,get:function(){return Ib._globalThis}});var Cb=nF();Object.defineProperty(j0,"SDK_INFO",{enumerable:!0,get:function(){return Cb.SDK_INFO}});j0.otperformance=performance});var _7=V((S0)=>{Object.defineProperty(S0,"__esModule",{value:!0});S0.getStringListFromEnv=S0.getNumberFromEnv=S0.getStringFromEnv=S0.getBooleanFromEnv=S0.otperformance=S0._globalThis=S0.SDK_INFO=void 0;var Y1=pF();Object.defineProperty(S0,"SDK_INFO",{enumerable:!0,get:function(){return Y1.SDK_INFO}});Object.defineProperty(S0,"_globalThis",{enumerable:!0,get:function(){return Y1._globalThis}});Object.defineProperty(S0,"otperformance",{enumerable:!0,get:function(){return Y1.otperformance}});Object.defineProperty(S0,"getBooleanFromEnv",{enumerable:!0,get:function(){return Y1.getBooleanFromEnv}});Object.defineProperty(S0,"getStringFromEnv",{enumerable:!0,get:function(){return Y1.getStringFromEnv}});Object.defineProperty(S0,"getNumberFromEnv",{enumerable:!0,get:function(){return Y1.getNumberFromEnv}});Object.defineProperty(S0,"getStringListFromEnv",{enumerable:!0,get:function(){return Y1.getStringListFromEnv}})});var rF=V((aF)=>{Object.defineProperty(aF,"__esModule",{value:!0});aF.addHrTimes=aF.isTimeInput=aF.isTimeInputHrTime=aF.hrTimeToMicroseconds=aF.hrTimeToMilliseconds=aF.hrTimeToNanoseconds=aF.hrTimeToTimeStamp=aF.hrTimeDuration=aF.timeInputToHrTime=aF.hrTime=aF.getTimeOrigin=aF.millisToHrTime=void 0;var KZ=_7(),gF=9,Ub=6,Ab=Math.pow(10,Ub),FZ=Math.pow(10,gF);function B6(Q){let Y=Q/1000,G=Math.trunc(Y),K=Math.round(Q%1000*Ab);return[G,K]}aF.millisToHrTime=B6;function Eb(){return KZ.otperformance.timeOrigin}aF.getTimeOrigin=Eb;function iF(Q){let Y=B6(KZ.otperformance.timeOrigin),G=B6(typeof Q==="number"?Q:KZ.otperformance.now());return oF(Y,G)}aF.hrTime=iF;function Tb(Q){if(y7(Q))return Q;else if(typeof Q==="number")if(Q<KZ.otperformance.timeOrigin)return iF(Q);else return B6(Q);else if(Q instanceof Date)return B6(Q.getTime());else throw TypeError("Invalid input type")}aF.timeInputToHrTime=Tb;function hb(Q,Y){let G=Y[0]-Q[0],K=Y[1]-Q[1];if(K<0)G-=1,K+=FZ;return[G,K]}aF.hrTimeDuration=hb;function Lb(Q){let Y=gF,G=`${"0".repeat(Y)}${Q[1]}Z`,K=G.substring(G.length-Y-1);return new Date(Q[0]*1000).toISOString().replace("000Z",K)}aF.hrTimeToTimeStamp=Lb;function Mb(Q){return Q[0]*FZ+Q[1]}aF.hrTimeToNanoseconds=Mb;function Pb(Q){return Q[0]*1000+Q[1]/1e6}aF.hrTimeToMilliseconds=Pb;function wb(Q){return Q[0]*1e6+Q[1]/1000}aF.hrTimeToMicroseconds=wb;function y7(Q){return Array.isArray(Q)&&Q.length===2&&typeof Q[0]==="number"&&typeof Q[1]==="number"}aF.isTimeInputHrTime=y7;function Rb(Q){return y7(Q)||typeof Q==="number"||Q instanceof Date}aF.isTimeInput=Rb;function oF(Q,Y){let G=[Q[0]+Y[0],Q[1]+Y[1]];if(G[1]>=FZ)G[1]-=FZ,G[0]+=1;return G}aF.addHrTimes=oF});var ZH=V((sF)=>{Object.defineProperty(sF,"__esModule",{value:!0});sF.unrefTimer=void 0;function ub(Q){if(typeof Q!=="number")Q.unref()}sF.unrefTimer=ub});var QH=V((JH)=>{Object.defineProperty(JH,"__esModule",{value:!0});JH.ExportResultCode=void 0;var lb;(function(Q){Q[Q.SUCCESS=0]="SUCCESS",Q[Q.FAILED=1]="FAILED"})(lb=JH.ExportResultCode||(JH.ExportResultCode={}))});var WH=V((zH)=>{Object.defineProperty(zH,"__esModule",{value:!0});zH.CompositePropagator=void 0;var XH=T();class YH{_propagators;_fields;constructor(Q={}){this._propagators=Q.propagators??[],this._fields=Array.from(new Set(this._propagators.map((Y)=>typeof Y.fields==="function"?Y.fields():[]).reduce((Y,G)=>Y.concat(G),[])))}inject(Q,Y,G){for(let K of this._propagators)try{K.inject(Q,Y,G)}catch(z){XH.diag.warn(`Failed to inject with ${K.constructor.name}. Err: ${z.message}`)}}extract(Q,Y,G){return this._propagators.reduce((K,z)=>{try{return z.extract(K,Y,G)}catch(W){XH.diag.warn(`Failed to extract with ${z.constructor.name}. Err: ${W.message}`)}return K},Q)}fields(){return this._fields.slice()}}zH.CompositePropagator=YH});var FH=V((qH)=>{Object.defineProperty(qH,"__esModule",{value:!0});qH.validateValue=qH.validateKey=void 0;var x7="[_0-9a-z-*/]",cb=`[a-z]${x7}{0,255}`,nb=`[a-z0-9]${x7}{0,240}@[a-z]${x7}{0,13}`,mb=new RegExp(`^(?:${cb}|${nb})$`),pb=/^[ -~]{0,255}[!-~]$/,gb=/,|=/;function ib(Q){return mb.test(Q)}qH.validateKey=ib;function ob(Q){return pb.test(Q)&&!gb.test(Q)}qH.validateValue=ob});var b7=V((NH)=>{Object.defineProperty(NH,"__esModule",{value:!0});NH.TraceState=void 0;var HH=FH(),OH=32,tb=512,BH=",",VH="=";class j7{_internalState=new Map;constructor(Q){if(Q)this._parse(Q)}set(Q,Y){let G=this._clone();if(G._internalState.has(Q))G._internalState.delete(Q);return G._internalState.set(Q,Y),G}unset(Q){let Y=this._clone();return Y._internalState.delete(Q),Y}get(Q){return this._internalState.get(Q)}serialize(){return this._keys().reduce((Q,Y)=>{return Q.push(Y+VH+this.get(Y)),Q},[]).join(BH)}_parse(Q){if(Q.length>tb)return;if(this._internalState=Q.split(BH).reverse().reduce((Y,G)=>{let K=G.trim(),z=K.indexOf(VH);if(z!==-1){let W=K.slice(0,z),J=K.slice(z+1,G.length);if((0,HH.validateKey)(W)&&(0,HH.validateValue)(J))Y.set(W,J)}return Y},new Map),this._internalState.size>OH)this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,OH))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let Q=new j7;return Q._internalState=new Map(this._internalState),Q}}NH.TraceState=j7});var EH=V((UH)=>{Object.defineProperty(UH,"__esModule",{value:!0});UH.W3CTraceContextPropagator=UH.parseTraceParent=UH.TRACE_STATE_HEADER=UH.TRACE_PARENT_HEADER=void 0;var HZ=T(),rb=H6(),sb=b7();UH.TRACE_PARENT_HEADER="traceparent";UH.TRACE_STATE_HEADER="tracestate";var eb="00",Zd="(?!ff)[\\da-f]{2}",Jd="(?![0]{32})[\\da-f]{32}",Qd="(?![0]{16})[\\da-f]{16}",Xd="[\\da-f]{2}",Yd=new RegExp(`^\\s?(${Zd})-(${Jd})-(${Qd})-(${Xd})(-.*)?\\s?$`);function CH(Q){let Y=Yd.exec(Q);if(!Y)return null;if(Y[1]==="00"&&Y[5])return null;return{traceId:Y[2],spanId:Y[3],traceFlags:parseInt(Y[4],16)}}UH.parseTraceParent=CH;class DH{inject(Q,Y,G){let K=HZ.trace.getSpanContext(Q);if(!K||(0,rb.isTracingSuppressed)(Q)||!(0,HZ.isSpanContextValid)(K))return;let z=`${eb}-${K.traceId}-${K.spanId}-0${Number(K.traceFlags||HZ.TraceFlags.NONE).toString(16)}`;if(G.set(Y,UH.TRACE_PARENT_HEADER,z),K.traceState)G.set(Y,UH.TRACE_STATE_HEADER,K.traceState.serialize())}extract(Q,Y,G){let K=G.get(Y,UH.TRACE_PARENT_HEADER);if(!K)return Q;let z=Array.isArray(K)?K[0]:K;if(typeof z!=="string")return Q;let W=CH(z);if(!W)return Q;W.isRemote=!0;let J=G.get(Y,UH.TRACE_STATE_HEADER);if(J){let Z=Array.isArray(J)?J.join(","):J;W.traceState=new sb.TraceState(typeof Z==="string"?Z:void 0)}return HZ.trace.setSpanContext(Q,W)}fields(){return[UH.TRACE_PARENT_HEADER,UH.TRACE_STATE_HEADER]}}UH.W3CTraceContextPropagator=DH});var MH=V((hH)=>{Object.defineProperty(hH,"__esModule",{value:!0});hH.getRPCMetadata=hH.deleteRPCMetadata=hH.setRPCMetadata=hH.RPCType=void 0;var Gd=T(),d7=(0,Gd.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),Wd;(function(Q){Q.HTTP="http"})(Wd=hH.RPCType||(hH.RPCType={}));function qd(Q,Y){return Q.setValue(d7,Y)}hH.setRPCMetadata=qd;function Kd(Q){return Q.deleteValue(d7)}hH.deleteRPCMetadata=Kd;function Fd(Q){return Q.getValue(d7)}hH.getRPCMetadata=Fd});var fH=V(($H)=>{Object.defineProperty($H,"__esModule",{value:!0});$H.isPlainObject=void 0;var Bd="[object Object]",Vd="[object Null]",Nd="[object Undefined]",Id=Function.prototype,PH=Id.toString,Cd=PH.call(Object),Dd=Object.getPrototypeOf,wH=Object.prototype,RH=wH.hasOwnProperty,z1=Symbol?Symbol.toStringTag:void 0,kH=wH.toString;function Ud(Q){if(!Ad(Q)||Ed(Q)!==Bd)return!1;let Y=Dd(Q);if(Y===null)return!0;let G=RH.call(Y,"constructor")&&Y.constructor;return typeof G=="function"&&G instanceof G&&PH.call(G)===Cd}$H.isPlainObject=Ud;function Ad(Q){return Q!=null&&typeof Q=="object"}function Ed(Q){if(Q==null)return Q===void 0?Nd:Vd;return z1&&z1 in Object(Q)?Td(Q):hd(Q)}function Td(Q){let Y=RH.call(Q,z1),G=Q[z1],K=!1;try{Q[z1]=void 0,K=!0}catch{}let z=kH.call(Q);if(K)if(Y)Q[z1]=G;else delete Q[z1];return z}function hd(Q){return kH.call(Q)}});var dH=V((jH)=>{Object.defineProperty(jH,"__esModule",{value:!0});jH.merge=void 0;var _H=fH(),Ld=20;function Md(...Q){let Y=Q.shift(),G=new WeakMap;while(Q.length>0)Y=vH(Y,Q.shift(),0,G);return Y}jH.merge=Md;function u7(Q){if(NZ(Q))return Q.slice();return Q}function vH(Q,Y,G=0,K){let z;if(G>Ld)return;if(G++,VZ(Q)||VZ(Y)||xH(Y))z=u7(Y);else if(NZ(Q)){if(z=Q.slice(),NZ(Y))for(let W=0,J=Y.length;W<J;W++)z.push(u7(Y[W]));else if(V6(Y)){let W=Object.keys(Y);for(let J=0,Z=W.length;J<Z;J++){let X=W[J];z[X]=u7(Y[X])}}}else if(V6(Q))if(V6(Y)){if(!Pd(Q,Y))return Y;z=Object.assign({},Q);let W=Object.keys(Y);for(let J=0,Z=W.length;J<Z;J++){let X=W[J],q=Y[X];if(VZ(q))if(typeof q>"u")delete z[X];else z[X]=q;else{let F=z[X],H=q;if(yH(Q,X,K)||yH(Y,X,K))delete z[X];else{if(V6(F)&&V6(H)){let N=K.get(F)||[],C=K.get(H)||[];N.push({obj:Q,key:X}),C.push({obj:Y,key:X}),K.set(F,N),K.set(H,C)}z[X]=vH(z[X],q,G,K)}}}}else z=Y;return z}function yH(Q,Y,G){let K=G.get(Q[Y])||[];for(let z=0,W=K.length;z<W;z++){let J=K[z];if(J.key===Y&&J.obj===Q)return!0}return!1}function NZ(Q){return Array.isArray(Q)}function xH(Q){return typeof Q==="function"}function V6(Q){return!VZ(Q)&&!NZ(Q)&&!xH(Q)&&typeof Q==="object"}function VZ(Q){return typeof Q==="string"||typeof Q==="number"||typeof Q==="boolean"||typeof Q>"u"||Q instanceof Date||Q instanceof RegExp||Q===null}function Pd(Q,Y){if(!(0,_H.isPlainObject)(Q)||!(0,_H.isPlainObject)(Y))return!1;return!0}});var cH=V((uH)=>{Object.defineProperty(uH,"__esModule",{value:!0});uH.callWithTimeout=uH.TimeoutError=void 0;class IZ extends Error{constructor(Q){super(Q);Object.setPrototypeOf(this,IZ.prototype)}}uH.TimeoutError=IZ;function wd(Q,Y){let G,K=new Promise(function(W,J){G=setTimeout(function(){J(new IZ("Operation timed out."))},Y)});return Promise.race([Q,K]).then((z)=>{return clearTimeout(G),z},(z)=>{throw clearTimeout(G),z})}uH.callWithTimeout=wd});var gH=V((mH)=>{Object.defineProperty(mH,"__esModule",{value:!0});mH.isUrlIgnored=mH.urlMatches=void 0;function nH(Q,Y){if(typeof Y==="string")return Q===Y;else return!!Q.match(Y)}mH.urlMatches=nH;function kd(Q,Y){if(!Y)return!1;for(let G of Y)if(nH(Q,G))return!0;return!1}mH.isUrlIgnored=kd});var tH=V((oH)=>{Object.defineProperty(oH,"__esModule",{value:!0});oH.Deferred=void 0;class iH{_promise;_resolve;_reject;constructor(){this._promise=new Promise((Q,Y)=>{this._resolve=Q,this._reject=Y})}get promise(){return this._promise}resolve(Q){this._resolve(Q)}reject(Q){this._reject(Q)}}oH.Deferred=iH});var ZO=V((sH)=>{Object.defineProperty(sH,"__esModule",{value:!0});sH.BindOnceFuture=void 0;var Sd=tH();class rH{_isCalled=!1;_deferred=new Sd.Deferred;_callback;_that;constructor(Q,Y){this._callback=Q,this._that=Y}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...Q){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...Q)).then((Y)=>this._deferred.resolve(Y),(Y)=>this._deferred.reject(Y))}catch(Y){this._deferred.reject(Y)}}return this._deferred.promise}}sH.BindOnceFuture=rH});var YO=V((QO)=>{Object.defineProperty(QO,"__esModule",{value:!0});QO.diagLogLevelFromString=void 0;var f0=T(),JO={ALL:f0.DiagLogLevel.ALL,VERBOSE:f0.DiagLogLevel.VERBOSE,DEBUG:f0.DiagLogLevel.DEBUG,INFO:f0.DiagLogLevel.INFO,WARN:f0.DiagLogLevel.WARN,ERROR:f0.DiagLogLevel.ERROR,NONE:f0.DiagLogLevel.NONE};function fd(Q){if(Q==null)return;let Y=JO[Q.toUpperCase()];if(Y==null)return f0.diag.warn(`Unknown log level "${Q}", expected one of ${Object.keys(JO)}, using default`),f0.DiagLogLevel.INFO;return Y}QO.diagLogLevelFromString=fd});var qO=V((GO)=>{Object.defineProperty(GO,"__esModule",{value:!0});GO._export=void 0;var zO=T(),_d=H6();function yd(Q,Y){return new Promise((G)=>{zO.context.with((0,_d.suppressTracing)(zO.context.active()),()=>{Q.export(Y,G)})})}GO._export=yd});var S=V((L)=>{Object.defineProperty(L,"__esModule",{value:!0});L.internal=L.diagLogLevelFromString=L.BindOnceFuture=L.urlMatches=L.isUrlIgnored=L.callWithTimeout=L.TimeoutError=L.merge=L.TraceState=L.unsuppressTracing=L.suppressTracing=L.isTracingSuppressed=L.setRPCMetadata=L.getRPCMetadata=L.deleteRPCMetadata=L.RPCType=L.parseTraceParent=L.W3CTraceContextPropagator=L.TRACE_STATE_HEADER=L.TRACE_PARENT_HEADER=L.CompositePropagator=L.otperformance=L.getStringListFromEnv=L.getNumberFromEnv=L.getBooleanFromEnv=L.getStringFromEnv=L._globalThis=L.SDK_INFO=L.parseKeyPairsIntoRecord=L.ExportResultCode=L.unrefTimer=L.timeInputToHrTime=L.millisToHrTime=L.isTimeInputHrTime=L.isTimeInput=L.hrTimeToTimeStamp=L.hrTimeToNanoseconds=L.hrTimeToMilliseconds=L.hrTimeToMicroseconds=L.hrTimeDuration=L.hrTime=L.getTimeOrigin=L.addHrTimes=L.loggingErrorHandler=L.setGlobalErrorHandler=L.globalErrorHandler=L.sanitizeAttributes=L.isAttributeValue=L.AnchoredClock=L.W3CBaggagePropagator=void 0;var vd=A9();Object.defineProperty(L,"W3CBaggagePropagator",{enumerable:!0,get:function(){return vd.W3CBaggagePropagator}});var xd=L9();Object.defineProperty(L,"AnchoredClock",{enumerable:!0,get:function(){return xd.AnchoredClock}});var KO=S9();Object.defineProperty(L,"isAttributeValue",{enumerable:!0,get:function(){return KO.isAttributeValue}});Object.defineProperty(L,"sanitizeAttributes",{enumerable:!0,get:function(){return KO.sanitizeAttributes}});var FO=j9();Object.defineProperty(L,"globalErrorHandler",{enumerable:!0,get:function(){return FO.globalErrorHandler}});Object.defineProperty(L,"setGlobalErrorHandler",{enumerable:!0,get:function(){return FO.setGlobalErrorHandler}});var jd=S7();Object.defineProperty(L,"loggingErrorHandler",{enumerable:!0,get:function(){return jd.loggingErrorHandler}});var q0=rF();Object.defineProperty(L,"addHrTimes",{enumerable:!0,get:function(){return q0.addHrTimes}});Object.defineProperty(L,"getTimeOrigin",{enumerable:!0,get:function(){return q0.getTimeOrigin}});Object.defineProperty(L,"hrTime",{enumerable:!0,get:function(){return q0.hrTime}});Object.defineProperty(L,"hrTimeDuration",{enumerable:!0,get:function(){return q0.hrTimeDuration}});Object.defineProperty(L,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return q0.hrTimeToMicroseconds}});Object.defineProperty(L,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return q0.hrTimeToMilliseconds}});Object.defineProperty(L,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return q0.hrTimeToNanoseconds}});Object.defineProperty(L,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return q0.hrTimeToTimeStamp}});Object.defineProperty(L,"isTimeInput",{enumerable:!0,get:function(){return q0.isTimeInput}});Object.defineProperty(L,"isTimeInputHrTime",{enumerable:!0,get:function(){return q0.isTimeInputHrTime}});Object.defineProperty(L,"millisToHrTime",{enumerable:!0,get:function(){return q0.millisToHrTime}});Object.defineProperty(L,"timeInputToHrTime",{enumerable:!0,get:function(){return q0.timeInputToHrTime}});var bd=ZH();Object.defineProperty(L,"unrefTimer",{enumerable:!0,get:function(){return bd.unrefTimer}});var dd=QH();Object.defineProperty(L,"ExportResultCode",{enumerable:!0,get:function(){return dd.ExportResultCode}});var ud=R7();Object.defineProperty(L,"parseKeyPairsIntoRecord",{enumerable:!0,get:function(){return ud.parseKeyPairsIntoRecord}});var G1=_7();Object.defineProperty(L,"SDK_INFO",{enumerable:!0,get:function(){return G1.SDK_INFO}});Object.defineProperty(L,"_globalThis",{enumerable:!0,get:function(){return G1._globalThis}});Object.defineProperty(L,"getStringFromEnv",{enumerable:!0,get:function(){return G1.getStringFromEnv}});Object.defineProperty(L,"getBooleanFromEnv",{enumerable:!0,get:function(){return G1.getBooleanFromEnv}});Object.defineProperty(L,"getNumberFromEnv",{enumerable:!0,get:function(){return G1.getNumberFromEnv}});Object.defineProperty(L,"getStringListFromEnv",{enumerable:!0,get:function(){return G1.getStringListFromEnv}});Object.defineProperty(L,"otperformance",{enumerable:!0,get:function(){return G1.otperformance}});var ld=WH();Object.defineProperty(L,"CompositePropagator",{enumerable:!0,get:function(){return ld.CompositePropagator}});var CZ=EH();Object.defineProperty(L,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return CZ.TRACE_PARENT_HEADER}});Object.defineProperty(L,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return CZ.TRACE_STATE_HEADER}});Object.defineProperty(L,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return CZ.W3CTraceContextPropagator}});Object.defineProperty(L,"parseTraceParent",{enumerable:!0,get:function(){return CZ.parseTraceParent}});var DZ=MH();Object.defineProperty(L,"RPCType",{enumerable:!0,get:function(){return DZ.RPCType}});Object.defineProperty(L,"deleteRPCMetadata",{enumerable:!0,get:function(){return DZ.deleteRPCMetadata}});Object.defineProperty(L,"getRPCMetadata",{enumerable:!0,get:function(){return DZ.getRPCMetadata}});Object.defineProperty(L,"setRPCMetadata",{enumerable:!0,get:function(){return DZ.setRPCMetadata}});var l7=H6();Object.defineProperty(L,"isTracingSuppressed",{enumerable:!0,get:function(){return l7.isTracingSuppressed}});Object.defineProperty(L,"suppressTracing",{enumerable:!0,get:function(){return l7.suppressTracing}});Object.defineProperty(L,"unsuppressTracing",{enumerable:!0,get:function(){return l7.unsuppressTracing}});var cd=b7();Object.defineProperty(L,"TraceState",{enumerable:!0,get:function(){return cd.TraceState}});var nd=dH();Object.defineProperty(L,"merge",{enumerable:!0,get:function(){return nd.merge}});var HO=cH();Object.defineProperty(L,"TimeoutError",{enumerable:!0,get:function(){return HO.TimeoutError}});Object.defineProperty(L,"callWithTimeout",{enumerable:!0,get:function(){return HO.callWithTimeout}});var OO=gH();Object.defineProperty(L,"isUrlIgnored",{enumerable:!0,get:function(){return OO.isUrlIgnored}});Object.defineProperty(L,"urlMatches",{enumerable:!0,get:function(){return OO.urlMatches}});var md=ZO();Object.defineProperty(L,"BindOnceFuture",{enumerable:!0,get:function(){return md.BindOnceFuture}});var pd=YO();Object.defineProperty(L,"diagLogLevelFromString",{enumerable:!0,get:function(){return pd.diagLogLevelFromString}});var gd=qO();L.internal={_export:gd._export}});var IO=V((VO)=>{Object.defineProperty(VO,"__esModule",{value:!0});VO.createLoggingPartialSuccessResponseHandler=void 0;var id=T();function od(Q){return Object.prototype.hasOwnProperty.call(Q,"partialSuccess")}function ad(){return{handleResponse(Q){if(Q==null||!od(Q)||Q.partialSuccess==null||Object.keys(Q.partialSuccess).length===0)return;id.diag.warn("Received Partial Success response:",JSON.stringify(Q.partialSuccess))}}}VO.createLoggingPartialSuccessResponseHandler=ad});var c7=V((UO)=>{Object.defineProperty(UO,"__esModule",{value:!0});UO.createOtlpExportDelegate=void 0;var W1=S(),CO=GZ(),td=IO(),rd=T();class DO{_diagLogger;_transport;_serializer;_responseHandler;_promiseQueue;_timeout;constructor(Q,Y,G,K,z){this._transport=Q,this._serializer=Y,this._responseHandler=G,this._promiseQueue=K,this._timeout=z,this._diagLogger=rd.diag.createComponentLogger({namespace:"OTLPExportDelegate"})}export(Q,Y){if(this._diagLogger.debug("items to be sent",Q),this._promiseQueue.hasReachedLimit()){Y({code:W1.ExportResultCode.FAILED,error:Error("Concurrent export limit reached")});return}let G=this._serializer.serializeRequest(Q);if(G==null){Y({code:W1.ExportResultCode.FAILED,error:Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(G,this._timeout).then((K)=>{if(K.status==="success"){if(K.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(K.data))}catch(z){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",z,K.data)}Y({code:W1.ExportResultCode.SUCCESS});return}else if(K.status==="failure"&&K.error){Y({code:W1.ExportResultCode.FAILED,error:K.error});return}else if(K.status==="retryable")Y({code:W1.ExportResultCode.FAILED,error:K.error??new CO.OTLPExporterError("Export failed with retryable status")});else Y({code:W1.ExportResultCode.FAILED,error:new CO.OTLPExporterError("Export failed with unknown error")})},(K)=>Y({code:W1.ExportResultCode.FAILED,error:K})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function sd(Q,Y){return new DO(Q.transport,Q.serializer,(0,td.createLoggingPartialSuccessResponseHandler)(),Q.promiseHandler,Y.timeout)}UO.createOtlpExportDelegate=sd});var hO=V((EO)=>{Object.defineProperty(EO,"__esModule",{value:!0});EO.createOtlpNetworkExportDelegate=void 0;var ed=M7(),Zu=c7();function Ju(Q,Y,G){return(0,Zu.createOtlpExportDelegate)({transport:G,serializer:Y,promiseHandler:(0,ed.createBoundedQueueExportPromiseHandler)(Q)},{timeout:Q.timeoutMillis})}EO.createOtlpNetworkExportDelegate=Ju});var UZ=V((b0)=>{Object.defineProperty(b0,"__esModule",{value:!0});b0.createOtlpNetworkExportDelegate=b0.CompressionAlgorithm=b0.getSharedConfigurationDefaults=b0.mergeOtlpSharedConfigurationWithDefaults=b0.OTLPExporterError=b0.OTLPExporterBase=void 0;var Qu=sX();Object.defineProperty(b0,"OTLPExporterBase",{enumerable:!0,get:function(){return Qu.OTLPExporterBase}});var Xu=GZ();Object.defineProperty(b0,"OTLPExporterError",{enumerable:!0,get:function(){return Xu.OTLPExporterError}});var LO=F6();Object.defineProperty(b0,"mergeOtlpSharedConfigurationWithDefaults",{enumerable:!0,get:function(){return LO.mergeOtlpSharedConfigurationWithDefaults}});Object.defineProperty(b0,"getSharedConfigurationDefaults",{enumerable:!0,get:function(){return LO.getSharedConfigurationDefaults}});var Yu=G9();Object.defineProperty(b0,"CompressionAlgorithm",{enumerable:!0,get:function(){return Yu.CompressionAlgorithm}});var zu=hO();Object.defineProperty(b0,"createOtlpNetworkExportDelegate",{enumerable:!0,get:function(){return zu.createOtlpNetworkExportDelegate}})});var PO=V((N00,MO)=>{MO.exports=Wu;function Wu(Q,Y){var G=Array(arguments.length-1),K=0,z=2,W=!0;while(z<arguments.length)G[K++]=arguments[z++];return new Promise(function(Z,X){G[K]=function(F){if(W)if(W=!1,F)X(F);else{var H=Array(arguments.length-1),N=0;while(N<H.length)H[N++]=arguments[N];Z.apply(null,H)}};try{Q.apply(Y||null,G)}catch(q){if(W)W=!1,X(q)}})}});var $O=V((kO)=>{var AZ=kO;AZ.length=function(Y){var G=Y.length;if(!G)return 0;var K=0;while(--G%4>1&&Y.charAt(G)==="=")++K;return Math.ceil(Y.length*3)/4-K};var f1=Array(64),RO=Array(123);for(K0=0;K0<64;)RO[f1[K0]=K0<26?K0+65:K0<52?K0+71:K0<62?K0-4:K0-59|43]=K0++;var K0;AZ.encode=function(Y,G,K){var z=null,W=[],J=0,Z=0,X;while(G<K){var q=Y[G++];switch(Z){case 0:W[J++]=f1[q>>2],X=(q&3)<<4,Z=1;break;case 1:W[J++]=f1[X|q>>4],X=(q&15)<<2,Z=2;break;case 2:W[J++]=f1[X|q>>6],W[J++]=f1[q&63],Z=0;break}if(J>8191)(z||(z=[])).push(String.fromCharCode.apply(String,W)),J=0}if(Z){if(W[J++]=f1[X],W[J++]=61,Z===1)W[J++]=61}if(z){if(J)z.push(String.fromCharCode.apply(String,W.slice(0,J)));return z.join("")}return String.fromCharCode.apply(String,W.slice(0,J))};var wO="invalid encoding";AZ.decode=function(Y,G,K){var z=K,W=0,J;for(var Z=0;Z<Y.length;){var X=Y.charCodeAt(Z++);if(X===61&&W>1)break;if((X=RO[X])===void 0)throw Error(wO);switch(W){case 0:J=X,W=1;break;case 1:G[K++]=J<<2|(X&48)>>4,J=X,W=2;break;case 2:G[K++]=(J&15)<<4|(X&60)>>2,J=X,W=3;break;case 3:G[K++]=(J&3)<<6|X,W=0;break}}if(W===1)throw Error(wO);return K-z};AZ.test=function(Y){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(Y)}});var fO=V((C00,SO)=>{SO.exports=EZ;function EZ(){this._listeners={}}EZ.prototype.on=function(Y,G,K){return(this._listeners[Y]||(this._listeners[Y]=[])).push({fn:G,ctx:K||this}),this};EZ.prototype.off=function(Y,G){if(Y===void 0)this._listeners={};else if(G===void 0)this._listeners[Y]=[];else{var K=this._listeners[Y];for(var z=0;z<K.length;)if(K[z].fn===G)K.splice(z,1);else++z}return this};EZ.prototype.emit=function(Y){var G=this._listeners[Y];if(G){var K=[],z=1;for(;z<arguments.length;)K.push(arguments[z++]);for(z=0;z<G.length;)G[z].fn.apply(G[z++].ctx,K)}return this}});var dO=V((D00,bO)=>{bO.exports=_O(_O);function _O(Q){if(typeof Float32Array<"u")(function(){var Y=new Float32Array([-0]),G=new Uint8Array(Y.buffer),K=G[3]===128;function z(X,q,F){Y[0]=X,q[F]=G[0],q[F+1]=G[1],q[F+2]=G[2],q[F+3]=G[3]}function W(X,q,F){Y[0]=X,q[F]=G[3],q[F+1]=G[2],q[F+2]=G[1],q[F+3]=G[0]}Q.writeFloatLE=K?z:W,Q.writeFloatBE=K?W:z;function J(X,q){return G[0]=X[q],G[1]=X[q+1],G[2]=X[q+2],G[3]=X[q+3],Y[0]}function Z(X,q){return G[3]=X[q],G[2]=X[q+1],G[1]=X[q+2],G[0]=X[q+3],Y[0]}Q.readFloatLE=K?J:Z,Q.readFloatBE=K?Z:J})();else(function(){function Y(K,z,W,J){var Z=z<0?1:0;if(Z)z=-z;if(z===0)K(1/z>0?0:2147483648,W,J);else if(isNaN(z))K(2143289344,W,J);else if(z>340282346638528860000000000000000000000)K((Z<<31|2139095040)>>>0,W,J);else if(z<0.000000000000000000000000000000000000011754943508222875)K((Z<<31|Math.round(z/0.000000000000000000000000000000000000000000001401298464324817))>>>0,W,J);else{var X=Math.floor(Math.log(z)/Math.LN2),q=Math.round(z*Math.pow(2,-X)*8388608)&8388607;K((Z<<31|X+127<<23|q)>>>0,W,J)}}Q.writeFloatLE=Y.bind(null,yO),Q.writeFloatBE=Y.bind(null,vO);function G(K,z,W){var J=K(z,W),Z=(J>>31)*2+1,X=J>>>23&255,q=J&8388607;return X===255?q?NaN:Z*(1/0):X===0?Z*0.000000000000000000000000000000000000000000001401298464324817*q:Z*Math.pow(2,X-150)*(q+8388608)}Q.readFloatLE=G.bind(null,xO),Q.readFloatBE=G.bind(null,jO)})();if(typeof Float64Array<"u")(function(){var Y=new Float64Array([-0]),G=new Uint8Array(Y.buffer),K=G[7]===128;function z(X,q,F){Y[0]=X,q[F]=G[0],q[F+1]=G[1],q[F+2]=G[2],q[F+3]=G[3],q[F+4]=G[4],q[F+5]=G[5],q[F+6]=G[6],q[F+7]=G[7]}function W(X,q,F){Y[0]=X,q[F]=G[7],q[F+1]=G[6],q[F+2]=G[5],q[F+3]=G[4],q[F+4]=G[3],q[F+5]=G[2],q[F+6]=G[1],q[F+7]=G[0]}Q.writeDoubleLE=K?z:W,Q.writeDoubleBE=K?W:z;function J(X,q){return G[0]=X[q],G[1]=X[q+1],G[2]=X[q+2],G[3]=X[q+3],G[4]=X[q+4],G[5]=X[q+5],G[6]=X[q+6],G[7]=X[q+7],Y[0]}function Z(X,q){return G[7]=X[q],G[6]=X[q+1],G[5]=X[q+2],G[4]=X[q+3],G[3]=X[q+4],G[2]=X[q+5],G[1]=X[q+6],G[0]=X[q+7],Y[0]}Q.readDoubleLE=K?J:Z,Q.readDoubleBE=K?Z:J})();else(function(){function Y(K,z,W,J,Z,X){var q=J<0?1:0;if(q)J=-J;if(J===0)K(0,Z,X+z),K(1/J>0?0:2147483648,Z,X+W);else if(isNaN(J))K(0,Z,X+z),K(2146959360,Z,X+W);else if(J>179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)K(0,Z,X+z),K((q<<31|2146435072)>>>0,Z,X+W);else{var F;if(J<0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022250738585072014)F=J/0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005,K(F>>>0,Z,X+z),K((q<<31|F/4294967296)>>>0,Z,X+W);else{var H=Math.floor(Math.log(J)/Math.LN2);if(H===1024)H=1023;F=J*Math.pow(2,-H),K(F*4503599627370496>>>0,Z,X+z),K((q<<31|H+1023<<20|F*1048576&1048575)>>>0,Z,X+W)}}}Q.writeDoubleLE=Y.bind(null,yO,0,4),Q.writeDoubleBE=Y.bind(null,vO,4,0);function G(K,z,W,J,Z){var X=K(J,Z+z),q=K(J,Z+W),F=(q>>31)*2+1,H=q>>>20&2047,N=4294967296*(q&1048575)+X;return H===2047?N?NaN:F*(1/0):H===0?F*0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005*N:F*Math.pow(2,H-1075)*(N+4503599627370496)}Q.readDoubleLE=G.bind(null,xO,0,4),Q.readDoubleBE=G.bind(null,jO,4,0)})();return Q}function yO(Q,Y,G){Y[G]=Q&255,Y[G+1]=Q>>>8&255,Y[G+2]=Q>>>16&255,Y[G+3]=Q>>>24}function vO(Q,Y,G){Y[G]=Q>>>24,Y[G+1]=Q>>>16&255,Y[G+2]=Q>>>8&255,Y[G+3]=Q&255}function xO(Q,Y){return(Q[Y]|Q[Y+1]<<8|Q[Y+2]<<16|Q[Y+3]<<24)>>>0}function jO(Q,Y){return(Q[Y]<<24|Q[Y+1]<<16|Q[Y+2]<<8|Q[Y+3])>>>0}});var lO=V((uO,n7)=>{n7.exports=qu;function qu(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(Q){}return null}});var nO=V((cO)=>{var m7=cO;m7.length=function(Y){var G=0,K=0;for(var z=0;z<Y.length;++z)if(K=Y.charCodeAt(z),K<128)G+=1;else if(K<2048)G+=2;else if((K&64512)===55296&&(Y.charCodeAt(z+1)&64512)===56320)++z,G+=4;else G+=3;return G};m7.read=function(Y,G,K){var z=K-G;if(z<1)return"";var W=null,J=[],Z=0,X;while(G<K){if(X=Y[G++],X<128)J[Z++]=X;else if(X>191&&X<224)J[Z++]=(X&31)<<6|Y[G++]&63;else if(X>239&&X<365)X=((X&7)<<18|(Y[G++]&63)<<12|(Y[G++]&63)<<6|Y[G++]&63)-65536,J[Z++]=55296+(X>>10),J[Z++]=56320+(X&1023);else J[Z++]=(X&15)<<12|(Y[G++]&63)<<6|Y[G++]&63;if(Z>8191)(W||(W=[])).push(String.fromCharCode.apply(String,J)),Z=0}if(W){if(Z)W.push(String.fromCharCode.apply(String,J.slice(0,Z)));return W.join("")}return String.fromCharCode.apply(String,J.slice(0,Z))};m7.write=function(Y,G,K){var z=K,W,J;for(var Z=0;Z<Y.length;++Z)if(W=Y.charCodeAt(Z),W<128)G[K++]=W;else if(W<2048)G[K++]=W>>6|192,G[K++]=W&63|128;else if((W&64512)===55296&&((J=Y.charCodeAt(Z+1))&64512)===56320)W=65536+((W&1023)<<10)+(J&1023),++Z,G[K++]=W>>18|240,G[K++]=W>>12&63|128,G[K++]=W>>6&63|128,G[K++]=W&63|128;else G[K++]=W>>12|224,G[K++]=W>>6&63|128,G[K++]=W&63|128;return K-z}});var pO=V((A00,mO)=>{mO.exports=Ku;function Ku(Q,Y,G){var K=G||8192,z=K>>>1,W=null,J=K;return function(X){if(X<1||X>z)return Q(X);if(J+X>K)W=Q(K),J=0;var q=Y.call(W,J,J+=X);if(J&7)J=(J|7)+1;return q}}});var iO=V((E00,gO)=>{gO.exports=p;var N6=u0();function p(Q,Y){this.lo=Q>>>0,this.hi=Y>>>0}var q1=p.zero=new p(0,0);q1.toNumber=function(){return 0};q1.zzEncode=q1.zzDecode=function(){return this};q1.length=function(){return 1};var Fu=p.zeroHash="\x00\x00\x00\x00\x00\x00\x00\x00";p.fromNumber=function(Y){if(Y===0)return q1;var G=Y<0;if(G)Y=-Y;var K=Y>>>0,z=(Y-K)/4294967296>>>0;if(G){if(z=~z>>>0,K=~K>>>0,++K>4294967295){if(K=0,++z>4294967295)z=0}}return new p(K,z)};p.from=function(Y){if(typeof Y==="number")return p.fromNumber(Y);if(N6.isString(Y))if(N6.Long)Y=N6.Long.fromString(Y);else return p.fromNumber(parseInt(Y,10));return Y.low||Y.high?new p(Y.low>>>0,Y.high>>>0):q1};p.prototype.toNumber=function(Y){if(!Y&&this.hi>>>31){var G=~this.lo+1>>>0,K=~this.hi>>>0;if(!G)K=K+1>>>0;return-(G+K*4294967296)}return this.lo+this.hi*4294967296};p.prototype.toLong=function(Y){return N6.Long?new N6.Long(this.lo|0,this.hi|0,Boolean(Y)):{low:this.lo|0,high:this.hi|0,unsigned:Boolean(Y)}};var d0=String.prototype.charCodeAt;p.fromHash=function(Y){if(Y===Fu)return q1;return new p((d0.call(Y,0)|d0.call(Y,1)<<8|d0.call(Y,2)<<16|d0.call(Y,3)<<24)>>>0,(d0.call(Y,4)|d0.call(Y,5)<<8|d0.call(Y,6)<<16|d0.call(Y,7)<<24)>>>0)};p.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)};p.prototype.zzEncode=function(){var Y=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^Y)>>>0,this.lo=(this.lo<<1^Y)>>>0,this};p.prototype.zzDecode=function(){var Y=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^Y)>>>0,this.hi=(this.hi>>>1^Y)>>>0,this};p.prototype.length=function(){var Y=this.lo,G=(this.lo>>>28|this.hi<<4)>>>0,K=this.hi>>>24;return K===0?G===0?Y<16384?Y<128?1:2:Y<2097152?3:4:G<16384?G<128?5:6:G<2097152?7:8:K<128?9:10}});var u0=V((p7)=>{var E=p7;E.asPromise=PO();E.base64=$O();E.EventEmitter=fO();E.float=dO();E.inquire=lO();E.utf8=nO();E.pool=pO();E.LongBits=iO();E.isNode=Boolean(typeof global<"u"&&global&&global.process&&global.process.versions&&global.process.versions.node);E.global=E.isNode&&global||typeof window<"u"&&window||typeof self<"u"&&self||p7;E.emptyArray=Object.freeze?Object.freeze([]):[];E.emptyObject=Object.freeze?Object.freeze({}):{};E.isInteger=Number.isInteger||function(Y){return typeof Y==="number"&&isFinite(Y)&&Math.floor(Y)===Y};E.isString=function(Y){return typeof Y==="string"||Y instanceof String};E.isObject=function(Y){return Y&&typeof Y==="object"};E.isset=E.isSet=function(Y,G){var K=Y[G];if(K!=null&&Y.hasOwnProperty(G))return typeof K!=="object"||(Array.isArray(K)?K.length:Object.keys(K).length)>0;return!1};E.Buffer=function(){try{var Q=E.inquire("buffer").Buffer;return Q.prototype.utf8Write?Q:null}catch(Y){return null}}();E._Buffer_from=null;E._Buffer_allocUnsafe=null;E.newBuffer=function(Y){return typeof Y==="number"?E.Buffer?E._Buffer_allocUnsafe(Y):new E.Array(Y):E.Buffer?E._Buffer_from(Y):typeof Uint8Array>"u"?Y:new Uint8Array(Y)};E.Array=typeof Uint8Array<"u"?Uint8Array:Array;E.Long=E.global.dcodeIO&&E.global.dcodeIO.Long||E.global.Long||E.inquire("long");E.key2Re=/^true|false|0|1$/;E.key32Re=/^-?(?:0|[1-9][0-9]*)$/;E.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;E.longToHash=function(Y){return Y?E.LongBits.from(Y).toHash():E.LongBits.zeroHash};E.longFromHash=function(Y,G){var K=E.LongBits.fromHash(Y);if(E.Long)return E.Long.fromBits(K.lo,K.hi,G);return K.toNumber(Boolean(G))};function oO(Q,Y,G){for(var K=Object.keys(Y),z=0;z<K.length;++z)if(Q[K[z]]===void 0||!G)Q[K[z]]=Y[K[z]];return Q}E.merge=oO;E.lcFirst=function(Y){return Y.charAt(0).toLowerCase()+Y.substring(1)};function aO(Q){function Y(G,K){if(!(this instanceof Y))return new Y(G,K);if(Object.defineProperty(this,"message",{get:function(){return G}}),Error.captureStackTrace)Error.captureStackTrace(this,Y);else Object.defineProperty(this,"stack",{value:Error().stack||""});if(K)oO(this,K)}return Y.prototype=Object.create(Error.prototype,{constructor:{value:Y,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return Q},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),Y}E.newError=aO;E.ProtocolError=aO("ProtocolError");E.oneOfGetter=function(Y){var G={};for(var K=0;K<Y.length;++K)G[Y[K]]=1;return function(){for(var z=Object.keys(this),W=z.length-1;W>-1;--W)if(G[z[W]]===1&&this[z[W]]!==void 0&&this[z[W]]!==null)return z[W]}};E.oneOfSetter=function(Y){return function(G){for(var K=0;K<Y.length;++K)if(Y[K]!==G)delete this[Y[K]]}};E.toJSONOptions={longs:String,enums:String,bytes:String,json:!0};E._configure=function(){var Q=E.Buffer;if(!Q){E._Buffer_from=E._Buffer_allocUnsafe=null;return}E._Buffer_from=Q.from!==Uint8Array.from&&Q.from||function(G,K){return new Q(G,K)},E._Buffer_allocUnsafe=Q.allocUnsafe||function(G){return new Q(G)}}});var s7=V((h00,eO)=>{eO.exports=f;var F0=u0(),g7,TZ=F0.LongBits,tO=F0.base64,rO=F0.utf8;function I6(Q,Y,G){this.fn=Q,this.len=Y,this.next=void 0,this.val=G}function o7(){}function Hu(Q){this.head=Q.head,this.tail=Q.tail,this.len=Q.len,this.next=Q.states}function f(){this.len=0,this.head=new I6(o7,0,0),this.tail=this.head,this.states=null}var sO=function(){return F0.Buffer?function(){return(f.create=function(){return new g7})()}:function(){return new f}};f.create=sO();f.alloc=function(Y){return new F0.Array(Y)};if(F0.Array!==Array)f.alloc=F0.pool(f.alloc,F0.Array.prototype.subarray);f.prototype._push=function(Y,G,K){return this.tail=this.tail.next=new I6(Y,G,K),this.len+=G,this};function a7(Q,Y,G){Y[G]=Q&255}function Ou(Q,Y,G){while(Q>127)Y[G++]=Q&127|128,Q>>>=7;Y[G]=Q}function t7(Q,Y){this.len=Q,this.next=void 0,this.val=Y}t7.prototype=Object.create(I6.prototype);t7.prototype.fn=Ou;f.prototype.uint32=function(Y){return this.len+=(this.tail=this.tail.next=new t7((Y=Y>>>0)<128?1:Y<16384?2:Y<2097152?3:Y<268435456?4:5,Y)).len,this};f.prototype.int32=function(Y){return Y<0?this._push(r7,10,TZ.fromNumber(Y)):this.uint32(Y)};f.prototype.sint32=function(Y){return this.uint32((Y<<1^Y>>31)>>>0)};function r7(Q,Y,G){while(Q.hi)Y[G++]=Q.lo&127|128,Q.lo=(Q.lo>>>7|Q.hi<<25)>>>0,Q.hi>>>=7;while(Q.lo>127)Y[G++]=Q.lo&127|128,Q.lo=Q.lo>>>7;Y[G++]=Q.lo}f.prototype.uint64=function(Y){var G=TZ.from(Y);return this._push(r7,G.length(),G)};f.prototype.int64=f.prototype.uint64;f.prototype.sint64=function(Y){var G=TZ.from(Y).zzEncode();return this._push(r7,G.length(),G)};f.prototype.bool=function(Y){return this._push(a7,1,Y?1:0)};function i7(Q,Y,G){Y[G]=Q&255,Y[G+1]=Q>>>8&255,Y[G+2]=Q>>>16&255,Y[G+3]=Q>>>24}f.prototype.fixed32=function(Y){return this._push(i7,4,Y>>>0)};f.prototype.sfixed32=f.prototype.fixed32;f.prototype.fixed64=function(Y){var G=TZ.from(Y);return this._push(i7,4,G.lo)._push(i7,4,G.hi)};f.prototype.sfixed64=f.prototype.fixed64;f.prototype.float=function(Y){return this._push(F0.float.writeFloatLE,4,Y)};f.prototype.double=function(Y){return this._push(F0.float.writeDoubleLE,8,Y)};var Bu=F0.Array.prototype.set?function(Y,G,K){G.set(Y,K)}:function(Y,G,K){for(var z=0;z<Y.length;++z)G[K+z]=Y[z]};f.prototype.bytes=function(Y){var G=Y.length>>>0;if(!G)return this._push(a7,1,0);if(F0.isString(Y)){var K=f.alloc(G=tO.length(Y));tO.decode(Y,K,0),Y=K}return this.uint32(G)._push(Bu,G,Y)};f.prototype.string=function(Y){var G=rO.length(Y);return G?this.uint32(G)._push(rO.write,G,Y):this._push(a7,1,0)};f.prototype.fork=function(){return this.states=new Hu(this),this.head=this.tail=new I6(o7,0,0),this.len=0,this};f.prototype.reset=function(){if(this.states)this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next;else this.head=this.tail=new I6(o7,0,0),this.len=0;return this};f.prototype.ldelim=function(){var Y=this.head,G=this.tail,K=this.len;if(this.reset().uint32(K),K)this.tail.next=Y.next,this.tail=G,this.len+=K;return this};f.prototype.finish=function(){var Y=this.head.next,G=this.constructor.alloc(this.len),K=0;while(Y)Y.fn(Y.val,G,K),K+=Y.len,Y=Y.next;return G};f._configure=function(Q){g7=Q,f.create=sO(),g7._configure()}});var QB=V((L00,JB)=>{JB.exports=A0;var ZB=s7();(A0.prototype=Object.create(ZB.prototype)).constructor=A0;var l0=u0();function A0(){ZB.call(this)}A0._configure=function(){A0.alloc=l0._Buffer_allocUnsafe,A0.writeBytesBuffer=l0.Buffer&&l0.Buffer.prototype instanceof Uint8Array&&l0.Buffer.prototype.set.name==="set"?function(Y,G,K){G.set(Y,K)}:function(Y,G,K){if(Y.copy)Y.copy(G,K,0,Y.length);else for(var z=0;z<Y.length;)G[K++]=Y[z++]}};A0.prototype.bytes=function(Y){if(l0.isString(Y))Y=l0._Buffer_from(Y,"base64");var G=Y.length>>>0;if(this.uint32(G),G)this._push(A0.writeBytesBuffer,G,Y);return this};function Vu(Q,Y,G){if(Q.length<40)l0.utf8.write(Q,Y,G);else if(Y.utf8Write)Y.utf8Write(Q,G);else Y.write(Q,G)}A0.prototype.string=function(Y){var G=l0.Buffer.byteLength(Y);if(this.uint32(G),G)this._push(Vu,G,Y);return this};A0._configure()});var J4=V((M00,WB)=>{WB.exports=l;var I0=u0(),Z4,zB=I0.LongBits,Nu=I0.utf8;function C0(Q,Y){return RangeError("index out of range: "+Q.pos+" + "+(Y||1)+" > "+Q.len)}function l(Q){this.buf=Q,this.pos=0,this.len=Q.length}var XB=typeof Uint8Array<"u"?function(Y){if(Y instanceof Uint8Array||Array.isArray(Y))return new l(Y);throw Error("illegal buffer")}:function(Y){if(Array.isArray(Y))return new l(Y);throw Error("illegal buffer")},GB=function(){return I0.Buffer?function(G){return(l.create=function(z){return I0.Buffer.isBuffer(z)?new Z4(z):XB(z)})(G)}:XB};l.create=GB();l.prototype._slice=I0.Array.prototype.subarray||I0.Array.prototype.slice;l.prototype.uint32=function(){var Y=4294967295;return function(){if(Y=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128)return Y;if(Y=(Y|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)return Y;if(Y=(Y|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)return Y;if(Y=(Y|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)return Y;if(Y=(Y|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128)return Y;if((this.pos+=5)>this.len)throw this.pos=this.len,C0(this,10);return Y}}();l.prototype.int32=function(){return this.uint32()|0};l.prototype.sint32=function(){var Y=this.uint32();return Y>>>1^-(Y&1)|0};function e7(){var Q=new zB(0,0),Y=0;if(this.len-this.pos>4){for(;Y<4;++Y)if(Q.lo=(Q.lo|(this.buf[this.pos]&127)<<Y*7)>>>0,this.buf[this.pos++]<128)return Q;if(Q.lo=(Q.lo|(this.buf[this.pos]&127)<<28)>>>0,Q.hi=(Q.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return Q;Y=0}else{for(;Y<3;++Y){if(this.pos>=this.len)throw C0(this);if(Q.lo=(Q.lo|(this.buf[this.pos]&127)<<Y*7)>>>0,this.buf[this.pos++]<128)return Q}return Q.lo=(Q.lo|(this.buf[this.pos++]&127)<<Y*7)>>>0,Q}if(this.len-this.pos>4){for(;Y<5;++Y)if(Q.hi=(Q.hi|(this.buf[this.pos]&127)<<Y*7+3)>>>0,this.buf[this.pos++]<128)return Q}else for(;Y<5;++Y){if(this.pos>=this.len)throw C0(this);if(Q.hi=(Q.hi|(this.buf[this.pos]&127)<<Y*7+3)>>>0,this.buf[this.pos++]<128)return Q}throw Error("invalid varint encoding")}l.prototype.bool=function(){return this.uint32()!==0};function hZ(Q,Y){return(Q[Y-4]|Q[Y-3]<<8|Q[Y-2]<<16|Q[Y-1]<<24)>>>0}l.prototype.fixed32=function(){if(this.pos+4>this.len)throw C0(this,4);return hZ(this.buf,this.pos+=4)};l.prototype.sfixed32=function(){if(this.pos+4>this.len)throw C0(this,4);return hZ(this.buf,this.pos+=4)|0};function YB(){if(this.pos+8>this.len)throw C0(this,8);return new zB(hZ(this.buf,this.pos+=4),hZ(this.buf,this.pos+=4))}l.prototype.float=function(){if(this.pos+4>this.len)throw C0(this,4);var Y=I0.float.readFloatLE(this.buf,this.pos);return this.pos+=4,Y};l.prototype.double=function(){if(this.pos+8>this.len)throw C0(this,4);var Y=I0.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,Y};l.prototype.bytes=function(){var Y=this.uint32(),G=this.pos,K=this.pos+Y;if(K>this.len)throw C0(this,Y);if(this.pos+=Y,Array.isArray(this.buf))return this.buf.slice(G,K);if(G===K){var z=I0.Buffer;return z?z.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,G,K)};l.prototype.string=function(){var Y=this.bytes();return Nu.read(Y,0,Y.length)};l.prototype.skip=function(Y){if(typeof Y==="number"){if(this.pos+Y>this.len)throw C0(this,Y);this.pos+=Y}else do if(this.pos>=this.len)throw C0(this);while(this.buf[this.pos++]&128);return this};l.prototype.skipType=function(Q){switch(Q){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:while((Q=this.uint32()&7)!==4)this.skipType(Q);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+Q+" at offset "+this.pos)}return this};l._configure=function(Q){Z4=Q,l.create=GB(),Z4._configure();var Y=I0.Long?"toLong":"toNumber";I0.merge(l.prototype,{int64:function(){return e7.call(this)[Y](!1)},uint64:function(){return e7.call(this)[Y](!0)},sint64:function(){return e7.call(this).zzDecode()[Y](!1)},fixed64:function(){return YB.call(this)[Y](!0)},sfixed64:function(){return YB.call(this)[Y](!1)}})}});var HB=V((P00,FB)=>{FB.exports=K1;var KB=J4();(K1.prototype=Object.create(KB.prototype)).constructor=K1;var qB=u0();function K1(Q){KB.call(this,Q)}K1._configure=function(){if(qB.Buffer)K1.prototype._slice=qB.Buffer.prototype.slice};K1.prototype.string=function(){var Y=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+Y,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+Y,this.len))};K1._configure()});var BB=V((w00,OB)=>{OB.exports=C6;var Q4=u0();(C6.prototype=Object.create(Q4.EventEmitter.prototype)).constructor=C6;function C6(Q,Y,G){if(typeof Q!=="function")throw TypeError("rpcImpl must be a function");Q4.EventEmitter.call(this),this.rpcImpl=Q,this.requestDelimited=Boolean(Y),this.responseDelimited=Boolean(G)}C6.prototype.rpcCall=function Q(Y,G,K,z,W){if(!z)throw TypeError("request must be specified");var J=this;if(!W)return Q4.asPromise(Q,J,Y,G,K,z);if(!J.rpcImpl){setTimeout(function(){W(Error("already ended"))},0);return}try{return J.rpcImpl(Y,G[J.requestDelimited?"encodeDelimited":"encode"](z).finish(),function(X,q){if(X)return J.emit("error",X,Y),W(X);if(q===null){J.end(!0);return}if(!(q instanceof K))try{q=K[J.responseDelimited?"decodeDelimited":"decode"](q)}catch(F){return J.emit("error",F,Y),W(F)}return J.emit("data",q,Y),W(null,q)})}catch(Z){J.emit("error",Z,Y),setTimeout(function(){W(Z)},0);return}};C6.prototype.end=function(Y){if(this.rpcImpl){if(!Y)this.rpcImpl(null,null,null);this.rpcImpl=null,this.emit("end").off()}return this}});var NB=V((VB)=>{var Iu=VB;Iu.Service=BB()});var CB=V((k00,IB)=>{IB.exports={}});var AB=V((UB)=>{var Q0=UB;Q0.build="minimal";Q0.Writer=s7();Q0.BufferWriter=QB();Q0.Reader=J4();Q0.BufferReader=HB();Q0.util=u0();Q0.rpc=NB();Q0.roots=CB();Q0.configure=DB;function DB(){Q0.util._configure(),Q0.Writer._configure(Q0.BufferWriter),Q0.Reader._configure(Q0.BufferReader)}DB()});var LZ=V((EB,TB)=>{Object.defineProperty(EB,"__esModule",{value:!0});var h=AB(),I=h.Reader,w=h.Writer,B=h.util,O=h.roots.default||(h.roots.default={});O.opentelemetry=function(){var Q={};return Q.proto=function(){var Y={};return Y.common=function(){var G={};return G.v1=function(){var K={};return K.AnyValue=function(){function z(J){if(J){for(var Z=Object.keys(J),X=0;X<Z.length;++X)if(J[Z[X]]!=null)this[Z[X]]=J[Z[X]]}}z.prototype.stringValue=null,z.prototype.boolValue=null,z.prototype.intValue=null,z.prototype.doubleValue=null,z.prototype.arrayValue=null,z.prototype.kvlistValue=null,z.prototype.bytesValue=null;var W;return Object.defineProperty(z.prototype,"value",{get:B.oneOfGetter(W=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"]),set:B.oneOfSetter(W)}),z.create=function(Z){return new z(Z)},z.encode=function(Z,X){if(!X)X=w.create();if(Z.stringValue!=null&&Object.hasOwnProperty.call(Z,"stringValue"))X.uint32(10).string(Z.stringValue);if(Z.boolValue!=null&&Object.hasOwnProperty.call(Z,"boolValue"))X.uint32(16).bool(Z.boolValue);if(Z.intValue!=null&&Object.hasOwnProperty.call(Z,"intValue"))X.uint32(24).int64(Z.intValue);if(Z.doubleValue!=null&&Object.hasOwnProperty.call(Z,"doubleValue"))X.uint32(33).double(Z.doubleValue);if(Z.arrayValue!=null&&Object.hasOwnProperty.call(Z,"arrayValue"))O.opentelemetry.proto.common.v1.ArrayValue.encode(Z.arrayValue,X.uint32(42).fork()).ldelim();if(Z.kvlistValue!=null&&Object.hasOwnProperty.call(Z,"kvlistValue"))O.opentelemetry.proto.common.v1.KeyValueList.encode(Z.kvlistValue,X.uint32(50).fork()).ldelim();if(Z.bytesValue!=null&&Object.hasOwnProperty.call(Z,"bytesValue"))X.uint32(58).bytes(Z.bytesValue);return X},z.encodeDelimited=function(Z,X){return this.encode(Z,X).ldelim()},z.decode=function(Z,X,q){if(!(Z instanceof I))Z=I.create(Z);var F=X===void 0?Z.len:Z.pos+X,H=new O.opentelemetry.proto.common.v1.AnyValue;while(Z.pos<F){var N=Z.uint32();if(N===q)break;switch(N>>>3){case 1:{H.stringValue=Z.string();break}case 2:{H.boolValue=Z.bool();break}case 3:{H.intValue=Z.int64();break}case 4:{H.doubleValue=Z.double();break}case 5:{H.arrayValue=O.opentelemetry.proto.common.v1.ArrayValue.decode(Z,Z.uint32());break}case 6:{H.kvlistValue=O.opentelemetry.proto.common.v1.KeyValueList.decode(Z,Z.uint32());break}case 7:{H.bytesValue=Z.bytes();break}default:Z.skipType(N&7);break}}return H},z.decodeDelimited=function(Z){if(!(Z instanceof I))Z=new I(Z);return this.decode(Z,Z.uint32())},z.verify=function(Z){if(typeof Z!=="object"||Z===null)return"object expected";var X={};if(Z.stringValue!=null&&Z.hasOwnProperty("stringValue")){if(X.value=1,!B.isString(Z.stringValue))return"stringValue: string expected"}if(Z.boolValue!=null&&Z.hasOwnProperty("boolValue")){if(X.value===1)return"value: multiple values";if(X.value=1,typeof Z.boolValue!=="boolean")return"boolValue: boolean expected"}if(Z.intValue!=null&&Z.hasOwnProperty("intValue")){if(X.value===1)return"value: multiple values";if(X.value=1,!B.isInteger(Z.intValue)&&!(Z.intValue&&B.isInteger(Z.intValue.low)&&B.isInteger(Z.intValue.high)))return"intValue: integer|Long expected"}if(Z.doubleValue!=null&&Z.hasOwnProperty("doubleValue")){if(X.value===1)return"value: multiple values";if(X.value=1,typeof Z.doubleValue!=="number")return"doubleValue: number expected"}if(Z.arrayValue!=null&&Z.hasOwnProperty("arrayValue")){if(X.value===1)return"value: multiple values";X.value=1;{var q=O.opentelemetry.proto.common.v1.ArrayValue.verify(Z.arrayValue);if(q)return"arrayValue."+q}}if(Z.kvlistValue!=null&&Z.hasOwnProperty("kvlistValue")){if(X.value===1)return"value: multiple values";X.value=1;{var q=O.opentelemetry.proto.common.v1.KeyValueList.verify(Z.kvlistValue);if(q)return"kvlistValue."+q}}if(Z.bytesValue!=null&&Z.hasOwnProperty("bytesValue")){if(X.value===1)return"value: multiple values";if(X.value=1,!(Z.bytesValue&&typeof Z.bytesValue.length==="number"||B.isString(Z.bytesValue)))return"bytesValue: buffer expected"}return null},z.fromObject=function(Z){if(Z instanceof O.opentelemetry.proto.common.v1.AnyValue)return Z;var X=new O.opentelemetry.proto.common.v1.AnyValue;if(Z.stringValue!=null)X.stringValue=String(Z.stringValue);if(Z.boolValue!=null)X.boolValue=Boolean(Z.boolValue);if(Z.intValue!=null){if(B.Long)(X.intValue=B.Long.fromValue(Z.intValue)).unsigned=!1;else if(typeof Z.intValue==="string")X.intValue=parseInt(Z.intValue,10);else if(typeof Z.intValue==="number")X.intValue=Z.intValue;else if(typeof Z.intValue==="object")X.intValue=new B.LongBits(Z.intValue.low>>>0,Z.intValue.high>>>0).toNumber()}if(Z.doubleValue!=null)X.doubleValue=Number(Z.doubleValue);if(Z.arrayValue!=null){if(typeof Z.arrayValue!=="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.arrayValue: object expected");X.arrayValue=O.opentelemetry.proto.common.v1.ArrayValue.fromObject(Z.arrayValue)}if(Z.kvlistValue!=null){if(typeof Z.kvlistValue!=="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.kvlistValue: object expected");X.kvlistValue=O.opentelemetry.proto.common.v1.KeyValueList.fromObject(Z.kvlistValue)}if(Z.bytesValue!=null){if(typeof Z.bytesValue==="string")B.base64.decode(Z.bytesValue,X.bytesValue=B.newBuffer(B.base64.length(Z.bytesValue)),0);else if(Z.bytesValue.length>=0)X.bytesValue=Z.bytesValue}return X},z.toObject=function(Z,X){if(!X)X={};var q={};if(Z.stringValue!=null&&Z.hasOwnProperty("stringValue")){if(q.stringValue=Z.stringValue,X.oneofs)q.value="stringValue"}if(Z.boolValue!=null&&Z.hasOwnProperty("boolValue")){if(q.boolValue=Z.boolValue,X.oneofs)q.value="boolValue"}if(Z.intValue!=null&&Z.hasOwnProperty("intValue")){if(typeof Z.intValue==="number")q.intValue=X.longs===String?String(Z.intValue):Z.intValue;else q.intValue=X.longs===String?B.Long.prototype.toString.call(Z.intValue):X.longs===Number?new B.LongBits(Z.intValue.low>>>0,Z.intValue.high>>>0).toNumber():Z.intValue;if(X.oneofs)q.value="intValue"}if(Z.doubleValue!=null&&Z.hasOwnProperty("doubleValue")){if(q.doubleValue=X.json&&!isFinite(Z.doubleValue)?String(Z.doubleValue):Z.doubleValue,X.oneofs)q.value="doubleValue"}if(Z.arrayValue!=null&&Z.hasOwnProperty("arrayValue")){if(q.arrayValue=O.opentelemetry.proto.common.v1.ArrayValue.toObject(Z.arrayValue,X),X.oneofs)q.value="arrayValue"}if(Z.kvlistValue!=null&&Z.hasOwnProperty("kvlistValue")){if(q.kvlistValue=O.opentelemetry.proto.common.v1.KeyValueList.toObject(Z.kvlistValue,X),X.oneofs)q.value="kvlistValue"}if(Z.bytesValue!=null&&Z.hasOwnProperty("bytesValue")){if(q.bytesValue=X.bytes===String?B.base64.encode(Z.bytesValue,0,Z.bytesValue.length):X.bytes===Array?Array.prototype.slice.call(Z.bytesValue):Z.bytesValue,X.oneofs)q.value="bytesValue"}return q},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(Z){if(Z===void 0)Z="type.googleapis.com";return Z+"/opentelemetry.proto.common.v1.AnyValue"},z}(),K.ArrayValue=function(){function z(W){if(this.values=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.values=B.emptyArray,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.values!=null&&J.values.length)for(var X=0;X<J.values.length;++X)O.opentelemetry.proto.common.v1.AnyValue.encode(J.values[X],Z.uint32(10).fork()).ldelim();return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.common.v1.ArrayValue;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{if(!(F.values&&F.values.length))F.values=[];F.values.push(O.opentelemetry.proto.common.v1.AnyValue.decode(J,J.uint32()));break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.values!=null&&J.hasOwnProperty("values")){if(!Array.isArray(J.values))return"values: array expected";for(var Z=0;Z<J.values.length;++Z){var X=O.opentelemetry.proto.common.v1.AnyValue.verify(J.values[Z]);if(X)return"values."+X}}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.common.v1.ArrayValue)return J;var Z=new O.opentelemetry.proto.common.v1.ArrayValue;if(J.values){if(!Array.isArray(J.values))throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: array expected");Z.values=[];for(var X=0;X<J.values.length;++X){if(typeof J.values[X]!=="object")throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: object expected");Z.values[X]=O.opentelemetry.proto.common.v1.AnyValue.fromObject(J.values[X])}}return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.values=[];if(J.values&&J.values.length){X.values=[];for(var q=0;q<J.values.length;++q)X.values[q]=O.opentelemetry.proto.common.v1.AnyValue.toObject(J.values[q],Z)}return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.common.v1.ArrayValue"},z}(),K.KeyValueList=function(){function z(W){if(this.values=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.values=B.emptyArray,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.values!=null&&J.values.length)for(var X=0;X<J.values.length;++X)O.opentelemetry.proto.common.v1.KeyValue.encode(J.values[X],Z.uint32(10).fork()).ldelim();return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.common.v1.KeyValueList;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{if(!(F.values&&F.values.length))F.values=[];F.values.push(O.opentelemetry.proto.common.v1.KeyValue.decode(J,J.uint32()));break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.values!=null&&J.hasOwnProperty("values")){if(!Array.isArray(J.values))return"values: array expected";for(var Z=0;Z<J.values.length;++Z){var X=O.opentelemetry.proto.common.v1.KeyValue.verify(J.values[Z]);if(X)return"values."+X}}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.common.v1.KeyValueList)return J;var Z=new O.opentelemetry.proto.common.v1.KeyValueList;if(J.values){if(!Array.isArray(J.values))throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: array expected");Z.values=[];for(var X=0;X<J.values.length;++X){if(typeof J.values[X]!=="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: object expected");Z.values[X]=O.opentelemetry.proto.common.v1.KeyValue.fromObject(J.values[X])}}return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.values=[];if(J.values&&J.values.length){X.values=[];for(var q=0;q<J.values.length;++q)X.values[q]=O.opentelemetry.proto.common.v1.KeyValue.toObject(J.values[q],Z)}return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.common.v1.KeyValueList"},z}(),K.KeyValue=function(){function z(W){if(W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.key=null,z.prototype.value=null,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.key!=null&&Object.hasOwnProperty.call(J,"key"))Z.uint32(10).string(J.key);if(J.value!=null&&Object.hasOwnProperty.call(J,"value"))O.opentelemetry.proto.common.v1.AnyValue.encode(J.value,Z.uint32(18).fork()).ldelim();return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.common.v1.KeyValue;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{F.key=J.string();break}case 2:{F.value=O.opentelemetry.proto.common.v1.AnyValue.decode(J,J.uint32());break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.key!=null&&J.hasOwnProperty("key")){if(!B.isString(J.key))return"key: string expected"}if(J.value!=null&&J.hasOwnProperty("value")){var Z=O.opentelemetry.proto.common.v1.AnyValue.verify(J.value);if(Z)return"value."+Z}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.common.v1.KeyValue)return J;var Z=new O.opentelemetry.proto.common.v1.KeyValue;if(J.key!=null)Z.key=String(J.key);if(J.value!=null){if(typeof J.value!=="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValue.value: object expected");Z.value=O.opentelemetry.proto.common.v1.AnyValue.fromObject(J.value)}return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.defaults)X.key="",X.value=null;if(J.key!=null&&J.hasOwnProperty("key"))X.key=J.key;if(J.value!=null&&J.hasOwnProperty("value"))X.value=O.opentelemetry.proto.common.v1.AnyValue.toObject(J.value,Z);return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.common.v1.KeyValue"},z}(),K.InstrumentationScope=function(){function z(W){if(this.attributes=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.name=null,z.prototype.version=null,z.prototype.attributes=B.emptyArray,z.prototype.droppedAttributesCount=null,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.name!=null&&Object.hasOwnProperty.call(J,"name"))Z.uint32(10).string(J.name);if(J.version!=null&&Object.hasOwnProperty.call(J,"version"))Z.uint32(18).string(J.version);if(J.attributes!=null&&J.attributes.length)for(var X=0;X<J.attributes.length;++X)O.opentelemetry.proto.common.v1.KeyValue.encode(J.attributes[X],Z.uint32(26).fork()).ldelim();if(J.droppedAttributesCount!=null&&Object.hasOwnProperty.call(J,"droppedAttributesCount"))Z.uint32(32).uint32(J.droppedAttributesCount);return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.common.v1.InstrumentationScope;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{F.name=J.string();break}case 2:{F.version=J.string();break}case 3:{if(!(F.attributes&&F.attributes.length))F.attributes=[];F.attributes.push(O.opentelemetry.proto.common.v1.KeyValue.decode(J,J.uint32()));break}case 4:{F.droppedAttributesCount=J.uint32();break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.name!=null&&J.hasOwnProperty("name")){if(!B.isString(J.name))return"name: string expected"}if(J.version!=null&&J.hasOwnProperty("version")){if(!B.isString(J.version))return"version: string expected"}if(J.attributes!=null&&J.hasOwnProperty("attributes")){if(!Array.isArray(J.attributes))return"attributes: array expected";for(var Z=0;Z<J.attributes.length;++Z){var X=O.opentelemetry.proto.common.v1.KeyValue.verify(J.attributes[Z]);if(X)return"attributes."+X}}if(J.droppedAttributesCount!=null&&J.hasOwnProperty("droppedAttributesCount")){if(!B.isInteger(J.droppedAttributesCount))return"droppedAttributesCount: integer expected"}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.common.v1.InstrumentationScope)return J;var Z=new O.opentelemetry.proto.common.v1.InstrumentationScope;if(J.name!=null)Z.name=String(J.name);if(J.version!=null)Z.version=String(J.version);if(J.attributes){if(!Array.isArray(J.attributes))throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: array expected");Z.attributes=[];for(var X=0;X<J.attributes.length;++X){if(typeof J.attributes[X]!=="object")throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: object expected");Z.attributes[X]=O.opentelemetry.proto.common.v1.KeyValue.fromObject(J.attributes[X])}}if(J.droppedAttributesCount!=null)Z.droppedAttributesCount=J.droppedAttributesCount>>>0;return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.attributes=[];if(Z.defaults)X.name="",X.version="",X.droppedAttributesCount=0;if(J.name!=null&&J.hasOwnProperty("name"))X.name=J.name;if(J.version!=null&&J.hasOwnProperty("version"))X.version=J.version;if(J.attributes&&J.attributes.length){X.attributes=[];for(var q=0;q<J.attributes.length;++q)X.attributes[q]=O.opentelemetry.proto.common.v1.KeyValue.toObject(J.attributes[q],Z)}if(J.droppedAttributesCount!=null&&J.hasOwnProperty("droppedAttributesCount"))X.droppedAttributesCount=J.droppedAttributesCount;return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.common.v1.InstrumentationScope"},z}(),K.EntityRef=function(){function z(W){if(this.idKeys=[],this.descriptionKeys=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.schemaUrl=null,z.prototype.type=null,z.prototype.idKeys=B.emptyArray,z.prototype.descriptionKeys=B.emptyArray,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.schemaUrl!=null&&Object.hasOwnProperty.call(J,"schemaUrl"))Z.uint32(10).string(J.schemaUrl);if(J.type!=null&&Object.hasOwnProperty.call(J,"type"))Z.uint32(18).string(J.type);if(J.idKeys!=null&&J.idKeys.length)for(var X=0;X<J.idKeys.length;++X)Z.uint32(26).string(J.idKeys[X]);if(J.descriptionKeys!=null&&J.descriptionKeys.length)for(var X=0;X<J.descriptionKeys.length;++X)Z.uint32(34).string(J.descriptionKeys[X]);return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.common.v1.EntityRef;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{F.schemaUrl=J.string();break}case 2:{F.type=J.string();break}case 3:{if(!(F.idKeys&&F.idKeys.length))F.idKeys=[];F.idKeys.push(J.string());break}case 4:{if(!(F.descriptionKeys&&F.descriptionKeys.length))F.descriptionKeys=[];F.descriptionKeys.push(J.string());break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.schemaUrl!=null&&J.hasOwnProperty("schemaUrl")){if(!B.isString(J.schemaUrl))return"schemaUrl: string expected"}if(J.type!=null&&J.hasOwnProperty("type")){if(!B.isString(J.type))return"type: string expected"}if(J.idKeys!=null&&J.hasOwnProperty("idKeys")){if(!Array.isArray(J.idKeys))return"idKeys: array expected";for(var Z=0;Z<J.idKeys.length;++Z)if(!B.isString(J.idKeys[Z]))return"idKeys: string[] expected"}if(J.descriptionKeys!=null&&J.hasOwnProperty("descriptionKeys")){if(!Array.isArray(J.descriptionKeys))return"descriptionKeys: array expected";for(var Z=0;Z<J.descriptionKeys.length;++Z)if(!B.isString(J.descriptionKeys[Z]))return"descriptionKeys: string[] expected"}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.common.v1.EntityRef)return J;var Z=new O.opentelemetry.proto.common.v1.EntityRef;if(J.schemaUrl!=null)Z.schemaUrl=String(J.schemaUrl);if(J.type!=null)Z.type=String(J.type);if(J.idKeys){if(!Array.isArray(J.idKeys))throw TypeError(".opentelemetry.proto.common.v1.EntityRef.idKeys: array expected");Z.idKeys=[];for(var X=0;X<J.idKeys.length;++X)Z.idKeys[X]=String(J.idKeys[X])}if(J.descriptionKeys){if(!Array.isArray(J.descriptionKeys))throw TypeError(".opentelemetry.proto.common.v1.EntityRef.descriptionKeys: array expected");Z.descriptionKeys=[];for(var X=0;X<J.descriptionKeys.length;++X)Z.descriptionKeys[X]=String(J.descriptionKeys[X])}return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.idKeys=[],X.descriptionKeys=[];if(Z.defaults)X.schemaUrl="",X.type="";if(J.schemaUrl!=null&&J.hasOwnProperty("schemaUrl"))X.schemaUrl=J.schemaUrl;if(J.type!=null&&J.hasOwnProperty("type"))X.type=J.type;if(J.idKeys&&J.idKeys.length){X.idKeys=[];for(var q=0;q<J.idKeys.length;++q)X.idKeys[q]=J.idKeys[q]}if(J.descriptionKeys&&J.descriptionKeys.length){X.descriptionKeys=[];for(var q=0;q<J.descriptionKeys.length;++q)X.descriptionKeys[q]=J.descriptionKeys[q]}return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.common.v1.EntityRef"},z}(),K}(),G}(),Y.resource=function(){var G={};return G.v1=function(){var K={};return K.Resource=function(){function z(W){if(this.attributes=[],this.entityRefs=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.attributes=B.emptyArray,z.prototype.droppedAttributesCount=null,z.prototype.entityRefs=B.emptyArray,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.attributes!=null&&J.attributes.length)for(var X=0;X<J.attributes.length;++X)O.opentelemetry.proto.common.v1.KeyValue.encode(J.attributes[X],Z.uint32(10).fork()).ldelim();if(J.droppedAttributesCount!=null&&Object.hasOwnProperty.call(J,"droppedAttributesCount"))Z.uint32(16).uint32(J.droppedAttributesCount);if(J.entityRefs!=null&&J.entityRefs.length)for(var X=0;X<J.entityRefs.length;++X)O.opentelemetry.proto.common.v1.EntityRef.encode(J.entityRefs[X],Z.uint32(26).fork()).ldelim();return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.resource.v1.Resource;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{if(!(F.attributes&&F.attributes.length))F.attributes=[];F.attributes.push(O.opentelemetry.proto.common.v1.KeyValue.decode(J,J.uint32()));break}case 2:{F.droppedAttributesCount=J.uint32();break}case 3:{if(!(F.entityRefs&&F.entityRefs.length))F.entityRefs=[];F.entityRefs.push(O.opentelemetry.proto.common.v1.EntityRef.decode(J,J.uint32()));break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.attributes!=null&&J.hasOwnProperty("attributes")){if(!Array.isArray(J.attributes))return"attributes: array expected";for(var Z=0;Z<J.attributes.length;++Z){var X=O.opentelemetry.proto.common.v1.KeyValue.verify(J.attributes[Z]);if(X)return"attributes."+X}}if(J.droppedAttributesCount!=null&&J.hasOwnProperty("droppedAttributesCount")){if(!B.isInteger(J.droppedAttributesCount))return"droppedAttributesCount: integer expected"}if(J.entityRefs!=null&&J.hasOwnProperty("entityRefs")){if(!Array.isArray(J.entityRefs))return"entityRefs: array expected";for(var Z=0;Z<J.entityRefs.length;++Z){var X=O.opentelemetry.proto.common.v1.EntityRef.verify(J.entityRefs[Z]);if(X)return"entityRefs."+X}}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.resource.v1.Resource)return J;var Z=new O.opentelemetry.proto.resource.v1.Resource;if(J.attributes){if(!Array.isArray(J.attributes))throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: array expected");Z.attributes=[];for(var X=0;X<J.attributes.length;++X){if(typeof J.attributes[X]!=="object")throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: object expected");Z.attributes[X]=O.opentelemetry.proto.common.v1.KeyValue.fromObject(J.attributes[X])}}if(J.droppedAttributesCount!=null)Z.droppedAttributesCount=J.droppedAttributesCount>>>0;if(J.entityRefs){if(!Array.isArray(J.entityRefs))throw TypeError(".opentelemetry.proto.resource.v1.Resource.entityRefs: array expected");Z.entityRefs=[];for(var X=0;X<J.entityRefs.length;++X){if(typeof J.entityRefs[X]!=="object")throw TypeError(".opentelemetry.proto.resource.v1.Resource.entityRefs: object expected");Z.entityRefs[X]=O.opentelemetry.proto.common.v1.EntityRef.fromObject(J.entityRefs[X])}}return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.attributes=[],X.entityRefs=[];if(Z.defaults)X.droppedAttributesCount=0;if(J.attributes&&J.attributes.length){X.attributes=[];for(var q=0;q<J.attributes.length;++q)X.attributes[q]=O.opentelemetry.proto.common.v1.KeyValue.toObject(J.attributes[q],Z)}if(J.droppedAttributesCount!=null&&J.hasOwnProperty("droppedAttributesCount"))X.droppedAttributesCount=J.droppedAttributesCount;if(J.entityRefs&&J.entityRefs.length){X.entityRefs=[];for(var q=0;q<J.entityRefs.length;++q)X.entityRefs[q]=O.opentelemetry.proto.common.v1.EntityRef.toObject(J.entityRefs[q],Z)}return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.resource.v1.Resource"},z}(),K}(),G}(),Y.trace=function(){var G={};return G.v1=function(){var K={};return K.TracesData=function(){function z(W){if(this.resourceSpans=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.resourceSpans=B.emptyArray,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.resourceSpans!=null&&J.resourceSpans.length)for(var X=0;X<J.resourceSpans.length;++X)O.opentelemetry.proto.trace.v1.ResourceSpans.encode(J.resourceSpans[X],Z.uint32(10).fork()).ldelim();return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.trace.v1.TracesData;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{if(!(F.resourceSpans&&F.resourceSpans.length))F.resourceSpans=[];F.resourceSpans.push(O.opentelemetry.proto.trace.v1.ResourceSpans.decode(J,J.uint32()));break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.resourceSpans!=null&&J.hasOwnProperty("resourceSpans")){if(!Array.isArray(J.resourceSpans))return"resourceSpans: array expected";for(var Z=0;Z<J.resourceSpans.length;++Z){var X=O.opentelemetry.proto.trace.v1.ResourceSpans.verify(J.resourceSpans[Z]);if(X)return"resourceSpans."+X}}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.trace.v1.TracesData)return J;var Z=new O.opentelemetry.proto.trace.v1.TracesData;if(J.resourceSpans){if(!Array.isArray(J.resourceSpans))throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: array expected");Z.resourceSpans=[];for(var X=0;X<J.resourceSpans.length;++X){if(typeof J.resourceSpans[X]!=="object")throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: object expected");Z.resourceSpans[X]=O.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(J.resourceSpans[X])}}return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.resourceSpans=[];if(J.resourceSpans&&J.resourceSpans.length){X.resourceSpans=[];for(var q=0;q<J.resourceSpans.length;++q)X.resourceSpans[q]=O.opentelemetry.proto.trace.v1.ResourceSpans.toObject(J.resourceSpans[q],Z)}return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.trace.v1.TracesData"},z}(),K.ResourceSpans=function(){function z(W){if(this.scopeSpans=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.resource=null,z.prototype.scopeSpans=B.emptyArray,z.prototype.schemaUrl=null,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.resource!=null&&Object.hasOwnProperty.call(J,"resource"))O.opentelemetry.proto.resource.v1.Resource.encode(J.resource,Z.uint32(10).fork()).ldelim();if(J.scopeSpans!=null&&J.scopeSpans.length)for(var X=0;X<J.scopeSpans.length;++X)O.opentelemetry.proto.trace.v1.ScopeSpans.encode(J.scopeSpans[X],Z.uint32(18).fork()).ldelim();if(J.schemaUrl!=null&&Object.hasOwnProperty.call(J,"schemaUrl"))Z.uint32(26).string(J.schemaUrl);return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.trace.v1.ResourceSpans;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{F.resource=O.opentelemetry.proto.resource.v1.Resource.decode(J,J.uint32());break}case 2:{if(!(F.scopeSpans&&F.scopeSpans.length))F.scopeSpans=[];F.scopeSpans.push(O.opentelemetry.proto.trace.v1.ScopeSpans.decode(J,J.uint32()));break}case 3:{F.schemaUrl=J.string();break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.resource!=null&&J.hasOwnProperty("resource")){var Z=O.opentelemetry.proto.resource.v1.Resource.verify(J.resource);if(Z)return"resource."+Z}if(J.scopeSpans!=null&&J.hasOwnProperty("scopeSpans")){if(!Array.isArray(J.scopeSpans))return"scopeSpans: array expected";for(var X=0;X<J.scopeSpans.length;++X){var Z=O.opentelemetry.proto.trace.v1.ScopeSpans.verify(J.scopeSpans[X]);if(Z)return"scopeSpans."+Z}}if(J.schemaUrl!=null&&J.hasOwnProperty("schemaUrl")){if(!B.isString(J.schemaUrl))return"schemaUrl: string expected"}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.trace.v1.ResourceSpans)return J;var Z=new O.opentelemetry.proto.trace.v1.ResourceSpans;if(J.resource!=null){if(typeof J.resource!=="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.resource: object expected");Z.resource=O.opentelemetry.proto.resource.v1.Resource.fromObject(J.resource)}if(J.scopeSpans){if(!Array.isArray(J.scopeSpans))throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: array expected");Z.scopeSpans=[];for(var X=0;X<J.scopeSpans.length;++X){if(typeof J.scopeSpans[X]!=="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: object expected");Z.scopeSpans[X]=O.opentelemetry.proto.trace.v1.ScopeSpans.fromObject(J.scopeSpans[X])}}if(J.schemaUrl!=null)Z.schemaUrl=String(J.schemaUrl);return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.scopeSpans=[];if(Z.defaults)X.resource=null,X.schemaUrl="";if(J.resource!=null&&J.hasOwnProperty("resource"))X.resource=O.opentelemetry.proto.resource.v1.Resource.toObject(J.resource,Z);if(J.scopeSpans&&J.scopeSpans.length){X.scopeSpans=[];for(var q=0;q<J.scopeSpans.length;++q)X.scopeSpans[q]=O.opentelemetry.proto.trace.v1.ScopeSpans.toObject(J.scopeSpans[q],Z)}if(J.schemaUrl!=null&&J.hasOwnProperty("schemaUrl"))X.schemaUrl=J.schemaUrl;return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.trace.v1.ResourceSpans"},z}(),K.ScopeSpans=function(){function z(W){if(this.spans=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.scope=null,z.prototype.spans=B.emptyArray,z.prototype.schemaUrl=null,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.scope!=null&&Object.hasOwnProperty.call(J,"scope"))O.opentelemetry.proto.common.v1.InstrumentationScope.encode(J.scope,Z.uint32(10).fork()).ldelim();if(J.spans!=null&&J.spans.length)for(var X=0;X<J.spans.length;++X)O.opentelemetry.proto.trace.v1.Span.encode(J.spans[X],Z.uint32(18).fork()).ldelim();if(J.schemaUrl!=null&&Object.hasOwnProperty.call(J,"schemaUrl"))Z.uint32(26).string(J.schemaUrl);return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.trace.v1.ScopeSpans;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{F.scope=O.opentelemetry.proto.common.v1.InstrumentationScope.decode(J,J.uint32());break}case 2:{if(!(F.spans&&F.spans.length))F.spans=[];F.spans.push(O.opentelemetry.proto.trace.v1.Span.decode(J,J.uint32()));break}case 3:{F.schemaUrl=J.string();break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.scope!=null&&J.hasOwnProperty("scope")){var Z=O.opentelemetry.proto.common.v1.InstrumentationScope.verify(J.scope);if(Z)return"scope."+Z}if(J.spans!=null&&J.hasOwnProperty("spans")){if(!Array.isArray(J.spans))return"spans: array expected";for(var X=0;X<J.spans.length;++X){var Z=O.opentelemetry.proto.trace.v1.Span.verify(J.spans[X]);if(Z)return"spans."+Z}}if(J.schemaUrl!=null&&J.hasOwnProperty("schemaUrl")){if(!B.isString(J.schemaUrl))return"schemaUrl: string expected"}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.trace.v1.ScopeSpans)return J;var Z=new O.opentelemetry.proto.trace.v1.ScopeSpans;if(J.scope!=null){if(typeof J.scope!=="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.scope: object expected");Z.scope=O.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(J.scope)}if(J.spans){if(!Array.isArray(J.spans))throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: array expected");Z.spans=[];for(var X=0;X<J.spans.length;++X){if(typeof J.spans[X]!=="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: object expected");Z.spans[X]=O.opentelemetry.proto.trace.v1.Span.fromObject(J.spans[X])}}if(J.schemaUrl!=null)Z.schemaUrl=String(J.schemaUrl);return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.spans=[];if(Z.defaults)X.scope=null,X.schemaUrl="";if(J.scope!=null&&J.hasOwnProperty("scope"))X.scope=O.opentelemetry.proto.common.v1.InstrumentationScope.toObject(J.scope,Z);if(J.spans&&J.spans.length){X.spans=[];for(var q=0;q<J.spans.length;++q)X.spans[q]=O.opentelemetry.proto.trace.v1.Span.toObject(J.spans[q],Z)}if(J.schemaUrl!=null&&J.hasOwnProperty("schemaUrl"))X.schemaUrl=J.schemaUrl;return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.trace.v1.ScopeSpans"},z}(),K.Span=function(){function z(W){if(this.attributes=[],this.events=[],this.links=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.traceId=null,z.prototype.spanId=null,z.prototype.traceState=null,z.prototype.parentSpanId=null,z.prototype.flags=null,z.prototype.name=null,z.prototype.kind=null,z.prototype.startTimeUnixNano=null,z.prototype.endTimeUnixNano=null,z.prototype.attributes=B.emptyArray,z.prototype.droppedAttributesCount=null,z.prototype.events=B.emptyArray,z.prototype.droppedEventsCount=null,z.prototype.links=B.emptyArray,z.prototype.droppedLinksCount=null,z.prototype.status=null,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.traceId!=null&&Object.hasOwnProperty.call(J,"traceId"))Z.uint32(10).bytes(J.traceId);if(J.spanId!=null&&Object.hasOwnProperty.call(J,"spanId"))Z.uint32(18).bytes(J.spanId);if(J.traceState!=null&&Object.hasOwnProperty.call(J,"traceState"))Z.uint32(26).string(J.traceState);if(J.parentSpanId!=null&&Object.hasOwnProperty.call(J,"parentSpanId"))Z.uint32(34).bytes(J.parentSpanId);if(J.name!=null&&Object.hasOwnProperty.call(J,"name"))Z.uint32(42).string(J.name);if(J.kind!=null&&Object.hasOwnProperty.call(J,"kind"))Z.uint32(48).int32(J.kind);if(J.startTimeUnixNano!=null&&Object.hasOwnProperty.call(J,"startTimeUnixNano"))Z.uint32(57).fixed64(J.startTimeUnixNano);if(J.endTimeUnixNano!=null&&Object.hasOwnProperty.call(J,"endTimeUnixNano"))Z.uint32(65).fixed64(J.endTimeUnixNano);if(J.attributes!=null&&J.attributes.length)for(var X=0;X<J.attributes.length;++X)O.opentelemetry.proto.common.v1.KeyValue.encode(J.attributes[X],Z.uint32(74).fork()).ldelim();if(J.droppedAttributesCount!=null&&Object.hasOwnProperty.call(J,"droppedAttributesCount"))Z.uint32(80).uint32(J.droppedAttributesCount);if(J.events!=null&&J.events.length)for(var X=0;X<J.events.length;++X)O.opentelemetry.proto.trace.v1.Span.Event.encode(J.events[X],Z.uint32(90).fork()).ldelim();if(J.droppedEventsCount!=null&&Object.hasOwnProperty.call(J,"droppedEventsCount"))Z.uint32(96).uint32(J.droppedEventsCount);if(J.links!=null&&J.links.length)for(var X=0;X<J.links.length;++X)O.opentelemetry.proto.trace.v1.Span.Link.encode(J.links[X],Z.uint32(106).fork()).ldelim();if(J.droppedLinksCount!=null&&Object.hasOwnProperty.call(J,"droppedLinksCount"))Z.uint32(112).uint32(J.droppedLinksCount);if(J.status!=null&&Object.hasOwnProperty.call(J,"status"))O.opentelemetry.proto.trace.v1.Status.encode(J.status,Z.uint32(122).fork()).ldelim();if(J.flags!=null&&Object.hasOwnProperty.call(J,"flags"))Z.uint32(133).fixed32(J.flags);return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.trace.v1.Span;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{F.traceId=J.bytes();break}case 2:{F.spanId=J.bytes();break}case 3:{F.traceState=J.string();break}case 4:{F.parentSpanId=J.bytes();break}case 16:{F.flags=J.fixed32();break}case 5:{F.name=J.string();break}case 6:{F.kind=J.int32();break}case 7:{F.startTimeUnixNano=J.fixed64();break}case 8:{F.endTimeUnixNano=J.fixed64();break}case 9:{if(!(F.attributes&&F.attributes.length))F.attributes=[];F.attributes.push(O.opentelemetry.proto.common.v1.KeyValue.decode(J,J.uint32()));break}case 10:{F.droppedAttributesCount=J.uint32();break}case 11:{if(!(F.events&&F.events.length))F.events=[];F.events.push(O.opentelemetry.proto.trace.v1.Span.Event.decode(J,J.uint32()));break}case 12:{F.droppedEventsCount=J.uint32();break}case 13:{if(!(F.links&&F.links.length))F.links=[];F.links.push(O.opentelemetry.proto.trace.v1.Span.Link.decode(J,J.uint32()));break}case 14:{F.droppedLinksCount=J.uint32();break}case 15:{F.status=O.opentelemetry.proto.trace.v1.Status.decode(J,J.uint32());break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.traceId!=null&&J.hasOwnProperty("traceId")){if(!(J.traceId&&typeof J.traceId.length==="number"||B.isString(J.traceId)))return"traceId: buffer expected"}if(J.spanId!=null&&J.hasOwnProperty("spanId")){if(!(J.spanId&&typeof J.spanId.length==="number"||B.isString(J.spanId)))return"spanId: buffer expected"}if(J.traceState!=null&&J.hasOwnProperty("traceState")){if(!B.isString(J.traceState))return"traceState: string expected"}if(J.parentSpanId!=null&&J.hasOwnProperty("parentSpanId")){if(!(J.parentSpanId&&typeof J.parentSpanId.length==="number"||B.isString(J.parentSpanId)))return"parentSpanId: buffer expected"}if(J.flags!=null&&J.hasOwnProperty("flags")){if(!B.isInteger(J.flags))return"flags: integer expected"}if(J.name!=null&&J.hasOwnProperty("name")){if(!B.isString(J.name))return"name: string expected"}if(J.kind!=null&&J.hasOwnProperty("kind"))switch(J.kind){default:return"kind: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:break}if(J.startTimeUnixNano!=null&&J.hasOwnProperty("startTimeUnixNano")){if(!B.isInteger(J.startTimeUnixNano)&&!(J.startTimeUnixNano&&B.isInteger(J.startTimeUnixNano.low)&&B.isInteger(J.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected"}if(J.endTimeUnixNano!=null&&J.hasOwnProperty("endTimeUnixNano")){if(!B.isInteger(J.endTimeUnixNano)&&!(J.endTimeUnixNano&&B.isInteger(J.endTimeUnixNano.low)&&B.isInteger(J.endTimeUnixNano.high)))return"endTimeUnixNano: integer|Long expected"}if(J.attributes!=null&&J.hasOwnProperty("attributes")){if(!Array.isArray(J.attributes))return"attributes: array expected";for(var Z=0;Z<J.attributes.length;++Z){var X=O.opentelemetry.proto.common.v1.KeyValue.verify(J.attributes[Z]);if(X)return"attributes."+X}}if(J.droppedAttributesCount!=null&&J.hasOwnProperty("droppedAttributesCount")){if(!B.isInteger(J.droppedAttributesCount))return"droppedAttributesCount: integer expected"}if(J.events!=null&&J.hasOwnProperty("events")){if(!Array.isArray(J.events))return"events: array expected";for(var Z=0;Z<J.events.length;++Z){var X=O.opentelemetry.proto.trace.v1.Span.Event.verify(J.events[Z]);if(X)return"events."+X}}if(J.droppedEventsCount!=null&&J.hasOwnProperty("droppedEventsCount")){if(!B.isInteger(J.droppedEventsCount))return"droppedEventsCount: integer expected"}if(J.links!=null&&J.hasOwnProperty("links")){if(!Array.isArray(J.links))return"links: array expected";for(var Z=0;Z<J.links.length;++Z){var X=O.opentelemetry.proto.trace.v1.Span.Link.verify(J.links[Z]);if(X)return"links."+X}}if(J.droppedLinksCount!=null&&J.hasOwnProperty("droppedLinksCount")){if(!B.isInteger(J.droppedLinksCount))return"droppedLinksCount: integer expected"}if(J.status!=null&&J.hasOwnProperty("status")){var X=O.opentelemetry.proto.trace.v1.Status.verify(J.status);if(X)return"status."+X}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.trace.v1.Span)return J;var Z=new O.opentelemetry.proto.trace.v1.Span;if(J.traceId!=null){if(typeof J.traceId==="string")B.base64.decode(J.traceId,Z.traceId=B.newBuffer(B.base64.length(J.traceId)),0);else if(J.traceId.length>=0)Z.traceId=J.traceId}if(J.spanId!=null){if(typeof J.spanId==="string")B.base64.decode(J.spanId,Z.spanId=B.newBuffer(B.base64.length(J.spanId)),0);else if(J.spanId.length>=0)Z.spanId=J.spanId}if(J.traceState!=null)Z.traceState=String(J.traceState);if(J.parentSpanId!=null){if(typeof J.parentSpanId==="string")B.base64.decode(J.parentSpanId,Z.parentSpanId=B.newBuffer(B.base64.length(J.parentSpanId)),0);else if(J.parentSpanId.length>=0)Z.parentSpanId=J.parentSpanId}if(J.flags!=null)Z.flags=J.flags>>>0;if(J.name!=null)Z.name=String(J.name);switch(J.kind){default:if(typeof J.kind==="number"){Z.kind=J.kind;break}break;case"SPAN_KIND_UNSPECIFIED":case 0:Z.kind=0;break;case"SPAN_KIND_INTERNAL":case 1:Z.kind=1;break;case"SPAN_KIND_SERVER":case 2:Z.kind=2;break;case"SPAN_KIND_CLIENT":case 3:Z.kind=3;break;case"SPAN_KIND_PRODUCER":case 4:Z.kind=4;break;case"SPAN_KIND_CONSUMER":case 5:Z.kind=5;break}if(J.startTimeUnixNano!=null){if(B.Long)(Z.startTimeUnixNano=B.Long.fromValue(J.startTimeUnixNano)).unsigned=!1;else if(typeof J.startTimeUnixNano==="string")Z.startTimeUnixNano=parseInt(J.startTimeUnixNano,10);else if(typeof J.startTimeUnixNano==="number")Z.startTimeUnixNano=J.startTimeUnixNano;else if(typeof J.startTimeUnixNano==="object")Z.startTimeUnixNano=new B.LongBits(J.startTimeUnixNano.low>>>0,J.startTimeUnixNano.high>>>0).toNumber()}if(J.endTimeUnixNano!=null){if(B.Long)(Z.endTimeUnixNano=B.Long.fromValue(J.endTimeUnixNano)).unsigned=!1;else if(typeof J.endTimeUnixNano==="string")Z.endTimeUnixNano=parseInt(J.endTimeUnixNano,10);else if(typeof J.endTimeUnixNano==="number")Z.endTimeUnixNano=J.endTimeUnixNano;else if(typeof J.endTimeUnixNano==="object")Z.endTimeUnixNano=new B.LongBits(J.endTimeUnixNano.low>>>0,J.endTimeUnixNano.high>>>0).toNumber()}if(J.attributes){if(!Array.isArray(J.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: array expected");Z.attributes=[];for(var X=0;X<J.attributes.length;++X){if(typeof J.attributes[X]!=="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: object expected");Z.attributes[X]=O.opentelemetry.proto.common.v1.KeyValue.fromObject(J.attributes[X])}}if(J.droppedAttributesCount!=null)Z.droppedAttributesCount=J.droppedAttributesCount>>>0;if(J.events){if(!Array.isArray(J.events))throw TypeError(".opentelemetry.proto.trace.v1.Span.events: array expected");Z.events=[];for(var X=0;X<J.events.length;++X){if(typeof J.events[X]!=="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.events: object expected");Z.events[X]=O.opentelemetry.proto.trace.v1.Span.Event.fromObject(J.events[X])}}if(J.droppedEventsCount!=null)Z.droppedEventsCount=J.droppedEventsCount>>>0;if(J.links){if(!Array.isArray(J.links))throw TypeError(".opentelemetry.proto.trace.v1.Span.links: array expected");Z.links=[];for(var X=0;X<J.links.length;++X){if(typeof J.links[X]!=="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.links: object expected");Z.links[X]=O.opentelemetry.proto.trace.v1.Span.Link.fromObject(J.links[X])}}if(J.droppedLinksCount!=null)Z.droppedLinksCount=J.droppedLinksCount>>>0;if(J.status!=null){if(typeof J.status!=="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.status: object expected");Z.status=O.opentelemetry.proto.trace.v1.Status.fromObject(J.status)}return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.attributes=[],X.events=[],X.links=[];if(Z.defaults){if(Z.bytes===String)X.traceId="";else if(X.traceId=[],Z.bytes!==Array)X.traceId=B.newBuffer(X.traceId);if(Z.bytes===String)X.spanId="";else if(X.spanId=[],Z.bytes!==Array)X.spanId=B.newBuffer(X.spanId);if(X.traceState="",Z.bytes===String)X.parentSpanId="";else if(X.parentSpanId=[],Z.bytes!==Array)X.parentSpanId=B.newBuffer(X.parentSpanId);if(X.name="",X.kind=Z.enums===String?"SPAN_KIND_UNSPECIFIED":0,B.Long){var q=new B.Long(0,0,!1);X.startTimeUnixNano=Z.longs===String?q.toString():Z.longs===Number?q.toNumber():q}else X.startTimeUnixNano=Z.longs===String?"0":0;if(B.Long){var q=new B.Long(0,0,!1);X.endTimeUnixNano=Z.longs===String?q.toString():Z.longs===Number?q.toNumber():q}else X.endTimeUnixNano=Z.longs===String?"0":0;X.droppedAttributesCount=0,X.droppedEventsCount=0,X.droppedLinksCount=0,X.status=null,X.flags=0}if(J.traceId!=null&&J.hasOwnProperty("traceId"))X.traceId=Z.bytes===String?B.base64.encode(J.traceId,0,J.traceId.length):Z.bytes===Array?Array.prototype.slice.call(J.traceId):J.traceId;if(J.spanId!=null&&J.hasOwnProperty("spanId"))X.spanId=Z.bytes===String?B.base64.encode(J.spanId,0,J.spanId.length):Z.bytes===Array?Array.prototype.slice.call(J.spanId):J.spanId;if(J.traceState!=null&&J.hasOwnProperty("traceState"))X.traceState=J.traceState;if(J.parentSpanId!=null&&J.hasOwnProperty("parentSpanId"))X.parentSpanId=Z.bytes===String?B.base64.encode(J.parentSpanId,0,J.parentSpanId.length):Z.bytes===Array?Array.prototype.slice.call(J.parentSpanId):J.parentSpanId;if(J.name!=null&&J.hasOwnProperty("name"))X.name=J.name;if(J.kind!=null&&J.hasOwnProperty("kind"))X.kind=Z.enums===String?O.opentelemetry.proto.trace.v1.Span.SpanKind[J.kind]===void 0?J.kind:O.opentelemetry.proto.trace.v1.Span.SpanKind[J.kind]:J.kind;if(J.startTimeUnixNano!=null&&J.hasOwnProperty("startTimeUnixNano"))if(typeof J.startTimeUnixNano==="number")X.startTimeUnixNano=Z.longs===String?String(J.startTimeUnixNano):J.startTimeUnixNano;else X.startTimeUnixNano=Z.longs===String?B.Long.prototype.toString.call(J.startTimeUnixNano):Z.longs===Number?new B.LongBits(J.startTimeUnixNano.low>>>0,J.startTimeUnixNano.high>>>0).toNumber():J.startTimeUnixNano;if(J.endTimeUnixNano!=null&&J.hasOwnProperty("endTimeUnixNano"))if(typeof J.endTimeUnixNano==="number")X.endTimeUnixNano=Z.longs===String?String(J.endTimeUnixNano):J.endTimeUnixNano;else X.endTimeUnixNano=Z.longs===String?B.Long.prototype.toString.call(J.endTimeUnixNano):Z.longs===Number?new B.LongBits(J.endTimeUnixNano.low>>>0,J.endTimeUnixNano.high>>>0).toNumber():J.endTimeUnixNano;if(J.attributes&&J.attributes.length){X.attributes=[];for(var F=0;F<J.attributes.length;++F)X.attributes[F]=O.opentelemetry.proto.common.v1.KeyValue.toObject(J.attributes[F],Z)}if(J.droppedAttributesCount!=null&&J.hasOwnProperty("droppedAttributesCount"))X.droppedAttributesCount=J.droppedAttributesCount;if(J.events&&J.events.length){X.events=[];for(var F=0;F<J.events.length;++F)X.events[F]=O.opentelemetry.proto.trace.v1.Span.Event.toObject(J.events[F],Z)}if(J.droppedEventsCount!=null&&J.hasOwnProperty("droppedEventsCount"))X.droppedEventsCount=J.droppedEventsCount;if(J.links&&J.links.length){X.links=[];for(var F=0;F<J.links.length;++F)X.links[F]=O.opentelemetry.proto.trace.v1.Span.Link.toObject(J.links[F],Z)}if(J.droppedLinksCount!=null&&J.hasOwnProperty("droppedLinksCount"))X.droppedLinksCount=J.droppedLinksCount;if(J.status!=null&&J.hasOwnProperty("status"))X.status=O.opentelemetry.proto.trace.v1.Status.toObject(J.status,Z);if(J.flags!=null&&J.hasOwnProperty("flags"))X.flags=J.flags;return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.trace.v1.Span"},z.SpanKind=function(){var W={},J=Object.create(W);return J[W[0]="SPAN_KIND_UNSPECIFIED"]=0,J[W[1]="SPAN_KIND_INTERNAL"]=1,J[W[2]="SPAN_KIND_SERVER"]=2,J[W[3]="SPAN_KIND_CLIENT"]=3,J[W[4]="SPAN_KIND_PRODUCER"]=4,J[W[5]="SPAN_KIND_CONSUMER"]=5,J}(),z.Event=function(){function W(J){if(this.attributes=[],J){for(var Z=Object.keys(J),X=0;X<Z.length;++X)if(J[Z[X]]!=null)this[Z[X]]=J[Z[X]]}}return W.prototype.timeUnixNano=null,W.prototype.name=null,W.prototype.attributes=B.emptyArray,W.prototype.droppedAttributesCount=null,W.create=function(Z){return new W(Z)},W.encode=function(Z,X){if(!X)X=w.create();if(Z.timeUnixNano!=null&&Object.hasOwnProperty.call(Z,"timeUnixNano"))X.uint32(9).fixed64(Z.timeUnixNano);if(Z.name!=null&&Object.hasOwnProperty.call(Z,"name"))X.uint32(18).string(Z.name);if(Z.attributes!=null&&Z.attributes.length)for(var q=0;q<Z.attributes.length;++q)O.opentelemetry.proto.common.v1.KeyValue.encode(Z.attributes[q],X.uint32(26).fork()).ldelim();if(Z.droppedAttributesCount!=null&&Object.hasOwnProperty.call(Z,"droppedAttributesCount"))X.uint32(32).uint32(Z.droppedAttributesCount);return X},W.encodeDelimited=function(Z,X){return this.encode(Z,X).ldelim()},W.decode=function(Z,X,q){if(!(Z instanceof I))Z=I.create(Z);var F=X===void 0?Z.len:Z.pos+X,H=new O.opentelemetry.proto.trace.v1.Span.Event;while(Z.pos<F){var N=Z.uint32();if(N===q)break;switch(N>>>3){case 1:{H.timeUnixNano=Z.fixed64();break}case 2:{H.name=Z.string();break}case 3:{if(!(H.attributes&&H.attributes.length))H.attributes=[];H.attributes.push(O.opentelemetry.proto.common.v1.KeyValue.decode(Z,Z.uint32()));break}case 4:{H.droppedAttributesCount=Z.uint32();break}default:Z.skipType(N&7);break}}return H},W.decodeDelimited=function(Z){if(!(Z instanceof I))Z=new I(Z);return this.decode(Z,Z.uint32())},W.verify=function(Z){if(typeof Z!=="object"||Z===null)return"object expected";if(Z.timeUnixNano!=null&&Z.hasOwnProperty("timeUnixNano")){if(!B.isInteger(Z.timeUnixNano)&&!(Z.timeUnixNano&&B.isInteger(Z.timeUnixNano.low)&&B.isInteger(Z.timeUnixNano.high)))return"timeUnixNano: integer|Long expected"}if(Z.name!=null&&Z.hasOwnProperty("name")){if(!B.isString(Z.name))return"name: string expected"}if(Z.attributes!=null&&Z.hasOwnProperty("attributes")){if(!Array.isArray(Z.attributes))return"attributes: array expected";for(var X=0;X<Z.attributes.length;++X){var q=O.opentelemetry.proto.common.v1.KeyValue.verify(Z.attributes[X]);if(q)return"attributes."+q}}if(Z.droppedAttributesCount!=null&&Z.hasOwnProperty("droppedAttributesCount")){if(!B.isInteger(Z.droppedAttributesCount))return"droppedAttributesCount: integer expected"}return null},W.fromObject=function(Z){if(Z instanceof O.opentelemetry.proto.trace.v1.Span.Event)return Z;var X=new O.opentelemetry.proto.trace.v1.Span.Event;if(Z.timeUnixNano!=null){if(B.Long)(X.timeUnixNano=B.Long.fromValue(Z.timeUnixNano)).unsigned=!1;else if(typeof Z.timeUnixNano==="string")X.timeUnixNano=parseInt(Z.timeUnixNano,10);else if(typeof Z.timeUnixNano==="number")X.timeUnixNano=Z.timeUnixNano;else if(typeof Z.timeUnixNano==="object")X.timeUnixNano=new B.LongBits(Z.timeUnixNano.low>>>0,Z.timeUnixNano.high>>>0).toNumber()}if(Z.name!=null)X.name=String(Z.name);if(Z.attributes){if(!Array.isArray(Z.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: array expected");X.attributes=[];for(var q=0;q<Z.attributes.length;++q){if(typeof Z.attributes[q]!=="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: object expected");X.attributes[q]=O.opentelemetry.proto.common.v1.KeyValue.fromObject(Z.attributes[q])}}if(Z.droppedAttributesCount!=null)X.droppedAttributesCount=Z.droppedAttributesCount>>>0;return X},W.toObject=function(Z,X){if(!X)X={};var q={};if(X.arrays||X.defaults)q.attributes=[];if(X.defaults){if(B.Long){var F=new B.Long(0,0,!1);q.timeUnixNano=X.longs===String?F.toString():X.longs===Number?F.toNumber():F}else q.timeUnixNano=X.longs===String?"0":0;q.name="",q.droppedAttributesCount=0}if(Z.timeUnixNano!=null&&Z.hasOwnProperty("timeUnixNano"))if(typeof Z.timeUnixNano==="number")q.timeUnixNano=X.longs===String?String(Z.timeUnixNano):Z.timeUnixNano;else q.timeUnixNano=X.longs===String?B.Long.prototype.toString.call(Z.timeUnixNano):X.longs===Number?new B.LongBits(Z.timeUnixNano.low>>>0,Z.timeUnixNano.high>>>0).toNumber():Z.timeUnixNano;if(Z.name!=null&&Z.hasOwnProperty("name"))q.name=Z.name;if(Z.attributes&&Z.attributes.length){q.attributes=[];for(var H=0;H<Z.attributes.length;++H)q.attributes[H]=O.opentelemetry.proto.common.v1.KeyValue.toObject(Z.attributes[H],X)}if(Z.droppedAttributesCount!=null&&Z.hasOwnProperty("droppedAttributesCount"))q.droppedAttributesCount=Z.droppedAttributesCount;return q},W.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},W.getTypeUrl=function(Z){if(Z===void 0)Z="type.googleapis.com";return Z+"/opentelemetry.proto.trace.v1.Span.Event"},W}(),z.Link=function(){function W(J){if(this.attributes=[],J){for(var Z=Object.keys(J),X=0;X<Z.length;++X)if(J[Z[X]]!=null)this[Z[X]]=J[Z[X]]}}return W.prototype.traceId=null,W.prototype.spanId=null,W.prototype.traceState=null,W.prototype.attributes=B.emptyArray,W.prototype.droppedAttributesCount=null,W.prototype.flags=null,W.create=function(Z){return new W(Z)},W.encode=function(Z,X){if(!X)X=w.create();if(Z.traceId!=null&&Object.hasOwnProperty.call(Z,"traceId"))X.uint32(10).bytes(Z.traceId);if(Z.spanId!=null&&Object.hasOwnProperty.call(Z,"spanId"))X.uint32(18).bytes(Z.spanId);if(Z.traceState!=null&&Object.hasOwnProperty.call(Z,"traceState"))X.uint32(26).string(Z.traceState);if(Z.attributes!=null&&Z.attributes.length)for(var q=0;q<Z.attributes.length;++q)O.opentelemetry.proto.common.v1.KeyValue.encode(Z.attributes[q],X.uint32(34).fork()).ldelim();if(Z.droppedAttributesCount!=null&&Object.hasOwnProperty.call(Z,"droppedAttributesCount"))X.uint32(40).uint32(Z.droppedAttributesCount);if(Z.flags!=null&&Object.hasOwnProperty.call(Z,"flags"))X.uint32(53).fixed32(Z.flags);return X},W.encodeDelimited=function(Z,X){return this.encode(Z,X).ldelim()},W.decode=function(Z,X,q){if(!(Z instanceof I))Z=I.create(Z);var F=X===void 0?Z.len:Z.pos+X,H=new O.opentelemetry.proto.trace.v1.Span.Link;while(Z.pos<F){var N=Z.uint32();if(N===q)break;switch(N>>>3){case 1:{H.traceId=Z.bytes();break}case 2:{H.spanId=Z.bytes();break}case 3:{H.traceState=Z.string();break}case 4:{if(!(H.attributes&&H.attributes.length))H.attributes=[];H.attributes.push(O.opentelemetry.proto.common.v1.KeyValue.decode(Z,Z.uint32()));break}case 5:{H.droppedAttributesCount=Z.uint32();break}case 6:{H.flags=Z.fixed32();break}default:Z.skipType(N&7);break}}return H},W.decodeDelimited=function(Z){if(!(Z instanceof I))Z=new I(Z);return this.decode(Z,Z.uint32())},W.verify=function(Z){if(typeof Z!=="object"||Z===null)return"object expected";if(Z.traceId!=null&&Z.hasOwnProperty("traceId")){if(!(Z.traceId&&typeof Z.traceId.length==="number"||B.isString(Z.traceId)))return"traceId: buffer expected"}if(Z.spanId!=null&&Z.hasOwnProperty("spanId")){if(!(Z.spanId&&typeof Z.spanId.length==="number"||B.isString(Z.spanId)))return"spanId: buffer expected"}if(Z.traceState!=null&&Z.hasOwnProperty("traceState")){if(!B.isString(Z.traceState))return"traceState: string expected"}if(Z.attributes!=null&&Z.hasOwnProperty("attributes")){if(!Array.isArray(Z.attributes))return"attributes: array expected";for(var X=0;X<Z.attributes.length;++X){var q=O.opentelemetry.proto.common.v1.KeyValue.verify(Z.attributes[X]);if(q)return"attributes."+q}}if(Z.droppedAttributesCount!=null&&Z.hasOwnProperty("droppedAttributesCount")){if(!B.isInteger(Z.droppedAttributesCount))return"droppedAttributesCount: integer expected"}if(Z.flags!=null&&Z.hasOwnProperty("flags")){if(!B.isInteger(Z.flags))return"flags: integer expected"}return null},W.fromObject=function(Z){if(Z instanceof O.opentelemetry.proto.trace.v1.Span.Link)return Z;var X=new O.opentelemetry.proto.trace.v1.Span.Link;if(Z.traceId!=null){if(typeof Z.traceId==="string")B.base64.decode(Z.traceId,X.traceId=B.newBuffer(B.base64.length(Z.traceId)),0);else if(Z.traceId.length>=0)X.traceId=Z.traceId}if(Z.spanId!=null){if(typeof Z.spanId==="string")B.base64.decode(Z.spanId,X.spanId=B.newBuffer(B.base64.length(Z.spanId)),0);else if(Z.spanId.length>=0)X.spanId=Z.spanId}if(Z.traceState!=null)X.traceState=String(Z.traceState);if(Z.attributes){if(!Array.isArray(Z.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: array expected");X.attributes=[];for(var q=0;q<Z.attributes.length;++q){if(typeof Z.attributes[q]!=="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: object expected");X.attributes[q]=O.opentelemetry.proto.common.v1.KeyValue.fromObject(Z.attributes[q])}}if(Z.droppedAttributesCount!=null)X.droppedAttributesCount=Z.droppedAttributesCount>>>0;if(Z.flags!=null)X.flags=Z.flags>>>0;return X},W.toObject=function(Z,X){if(!X)X={};var q={};if(X.arrays||X.defaults)q.attributes=[];if(X.defaults){if(X.bytes===String)q.traceId="";else if(q.traceId=[],X.bytes!==Array)q.traceId=B.newBuffer(q.traceId);if(X.bytes===String)q.spanId="";else if(q.spanId=[],X.bytes!==Array)q.spanId=B.newBuffer(q.spanId);q.traceState="",q.droppedAttributesCount=0,q.flags=0}if(Z.traceId!=null&&Z.hasOwnProperty("traceId"))q.traceId=X.bytes===String?B.base64.encode(Z.traceId,0,Z.traceId.length):X.bytes===Array?Array.prototype.slice.call(Z.traceId):Z.traceId;if(Z.spanId!=null&&Z.hasOwnProperty("spanId"))q.spanId=X.bytes===String?B.base64.encode(Z.spanId,0,Z.spanId.length):X.bytes===Array?Array.prototype.slice.call(Z.spanId):Z.spanId;if(Z.traceState!=null&&Z.hasOwnProperty("traceState"))q.traceState=Z.traceState;if(Z.attributes&&Z.attributes.length){q.attributes=[];for(var F=0;F<Z.attributes.length;++F)q.attributes[F]=O.opentelemetry.proto.common.v1.KeyValue.toObject(Z.attributes[F],X)}if(Z.droppedAttributesCount!=null&&Z.hasOwnProperty("droppedAttributesCount"))q.droppedAttributesCount=Z.droppedAttributesCount;if(Z.flags!=null&&Z.hasOwnProperty("flags"))q.flags=Z.flags;return q},W.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},W.getTypeUrl=function(Z){if(Z===void 0)Z="type.googleapis.com";return Z+"/opentelemetry.proto.trace.v1.Span.Link"},W}(),z}(),K.Status=function(){function z(W){if(W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.message=null,z.prototype.code=null,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.message!=null&&Object.hasOwnProperty.call(J,"message"))Z.uint32(18).string(J.message);if(J.code!=null&&Object.hasOwnProperty.call(J,"code"))Z.uint32(24).int32(J.code);return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.trace.v1.Status;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 2:{F.message=J.string();break}case 3:{F.code=J.int32();break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.message!=null&&J.hasOwnProperty("message")){if(!B.isString(J.message))return"message: string expected"}if(J.code!=null&&J.hasOwnProperty("code"))switch(J.code){default:return"code: enum value expected";case 0:case 1:case 2:break}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.trace.v1.Status)return J;var Z=new O.opentelemetry.proto.trace.v1.Status;if(J.message!=null)Z.message=String(J.message);switch(J.code){default:if(typeof J.code==="number"){Z.code=J.code;break}break;case"STATUS_CODE_UNSET":case 0:Z.code=0;break;case"STATUS_CODE_OK":case 1:Z.code=1;break;case"STATUS_CODE_ERROR":case 2:Z.code=2;break}return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.defaults)X.message="",X.code=Z.enums===String?"STATUS_CODE_UNSET":0;if(J.message!=null&&J.hasOwnProperty("message"))X.message=J.message;if(J.code!=null&&J.hasOwnProperty("code"))X.code=Z.enums===String?O.opentelemetry.proto.trace.v1.Status.StatusCode[J.code]===void 0?J.code:O.opentelemetry.proto.trace.v1.Status.StatusCode[J.code]:J.code;return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.trace.v1.Status"},z.StatusCode=function(){var W={},J=Object.create(W);return J[W[0]="STATUS_CODE_UNSET"]=0,J[W[1]="STATUS_CODE_OK"]=1,J[W[2]="STATUS_CODE_ERROR"]=2,J}(),z}(),K.SpanFlags=function(){var z={},W=Object.create(z);return W[z[0]="SPAN_FLAGS_DO_NOT_USE"]=0,W[z[255]="SPAN_FLAGS_TRACE_FLAGS_MASK"]=255,W[z[256]="SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK"]=256,W[z[512]="SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK"]=512,W}(),K}(),G}(),Y.collector=function(){var G={};return G.trace=function(){var K={};return K.v1=function(){var z={};return z.TraceService=function(){function W(J,Z,X){h.rpc.Service.call(this,J,Z,X)}return(W.prototype=Object.create(h.rpc.Service.prototype)).constructor=W,W.create=function(Z,X,q){return new this(Z,X,q)},Object.defineProperty(W.prototype.export=function J(Z,X){return this.rpcCall(J,O.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,O.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,Z,X)},"name",{value:"Export"}),W}(),z.ExportTraceServiceRequest=function(){function W(J){if(this.resourceSpans=[],J){for(var Z=Object.keys(J),X=0;X<Z.length;++X)if(J[Z[X]]!=null)this[Z[X]]=J[Z[X]]}}return W.prototype.resourceSpans=B.emptyArray,W.create=function(Z){return new W(Z)},W.encode=function(Z,X){if(!X)X=w.create();if(Z.resourceSpans!=null&&Z.resourceSpans.length)for(var q=0;q<Z.resourceSpans.length;++q)O.opentelemetry.proto.trace.v1.ResourceSpans.encode(Z.resourceSpans[q],X.uint32(10).fork()).ldelim();return X},W.encodeDelimited=function(Z,X){return this.encode(Z,X).ldelim()},W.decode=function(Z,X,q){if(!(Z instanceof I))Z=I.create(Z);var F=X===void 0?Z.len:Z.pos+X,H=new O.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;while(Z.pos<F){var N=Z.uint32();if(N===q)break;switch(N>>>3){case 1:{if(!(H.resourceSpans&&H.resourceSpans.length))H.resourceSpans=[];H.resourceSpans.push(O.opentelemetry.proto.trace.v1.ResourceSpans.decode(Z,Z.uint32()));break}default:Z.skipType(N&7);break}}return H},W.decodeDelimited=function(Z){if(!(Z instanceof I))Z=new I(Z);return this.decode(Z,Z.uint32())},W.verify=function(Z){if(typeof Z!=="object"||Z===null)return"object expected";if(Z.resourceSpans!=null&&Z.hasOwnProperty("resourceSpans")){if(!Array.isArray(Z.resourceSpans))return"resourceSpans: array expected";for(var X=0;X<Z.resourceSpans.length;++X){var q=O.opentelemetry.proto.trace.v1.ResourceSpans.verify(Z.resourceSpans[X]);if(q)return"resourceSpans."+q}}return null},W.fromObject=function(Z){if(Z instanceof O.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest)return Z;var X=new O.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;if(Z.resourceSpans){if(!Array.isArray(Z.resourceSpans))throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: array expected");X.resourceSpans=[];for(var q=0;q<Z.resourceSpans.length;++q){if(typeof Z.resourceSpans[q]!=="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: object expected");X.resourceSpans[q]=O.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(Z.resourceSpans[q])}}return X},W.toObject=function(Z,X){if(!X)X={};var q={};if(X.arrays||X.defaults)q.resourceSpans=[];if(Z.resourceSpans&&Z.resourceSpans.length){q.resourceSpans=[];for(var F=0;F<Z.resourceSpans.length;++F)q.resourceSpans[F]=O.opentelemetry.proto.trace.v1.ResourceSpans.toObject(Z.resourceSpans[F],X)}return q},W.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},W.getTypeUrl=function(Z){if(Z===void 0)Z="type.googleapis.com";return Z+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest"},W}(),z.ExportTraceServiceResponse=function(){function W(J){if(J){for(var Z=Object.keys(J),X=0;X<Z.length;++X)if(J[Z[X]]!=null)this[Z[X]]=J[Z[X]]}}return W.prototype.partialSuccess=null,W.create=function(Z){return new W(Z)},W.encode=function(Z,X){if(!X)X=w.create();if(Z.partialSuccess!=null&&Object.hasOwnProperty.call(Z,"partialSuccess"))O.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.encode(Z.partialSuccess,X.uint32(10).fork()).ldelim();return X},W.encodeDelimited=function(Z,X){return this.encode(Z,X).ldelim()},W.decode=function(Z,X,q){if(!(Z instanceof I))Z=I.create(Z);var F=X===void 0?Z.len:Z.pos+X,H=new O.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;while(Z.pos<F){var N=Z.uint32();if(N===q)break;switch(N>>>3){case 1:{H.partialSuccess=O.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.decode(Z,Z.uint32());break}default:Z.skipType(N&7);break}}return H},W.decodeDelimited=function(Z){if(!(Z instanceof I))Z=new I(Z);return this.decode(Z,Z.uint32())},W.verify=function(Z){if(typeof Z!=="object"||Z===null)return"object expected";if(Z.partialSuccess!=null&&Z.hasOwnProperty("partialSuccess")){var X=O.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.verify(Z.partialSuccess);if(X)return"partialSuccess."+X}return null},W.fromObject=function(Z){if(Z instanceof O.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse)return Z;var X=new O.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;if(Z.partialSuccess!=null){if(typeof Z.partialSuccess!=="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse.partialSuccess: object expected");X.partialSuccess=O.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.fromObject(Z.partialSuccess)}return X},W.toObject=function(Z,X){if(!X)X={};var q={};if(X.defaults)q.partialSuccess=null;if(Z.partialSuccess!=null&&Z.hasOwnProperty("partialSuccess"))q.partialSuccess=O.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.toObject(Z.partialSuccess,X);return q},W.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},W.getTypeUrl=function(Z){if(Z===void 0)Z="type.googleapis.com";return Z+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse"},W}(),z.ExportTracePartialSuccess=function(){function W(J){if(J){for(var Z=Object.keys(J),X=0;X<Z.length;++X)if(J[Z[X]]!=null)this[Z[X]]=J[Z[X]]}}return W.prototype.rejectedSpans=null,W.prototype.errorMessage=null,W.create=function(Z){return new W(Z)},W.encode=function(Z,X){if(!X)X=w.create();if(Z.rejectedSpans!=null&&Object.hasOwnProperty.call(Z,"rejectedSpans"))X.uint32(8).int64(Z.rejectedSpans);if(Z.errorMessage!=null&&Object.hasOwnProperty.call(Z,"errorMessage"))X.uint32(18).string(Z.errorMessage);return X},W.encodeDelimited=function(Z,X){return this.encode(Z,X).ldelim()},W.decode=function(Z,X,q){if(!(Z instanceof I))Z=I.create(Z);var F=X===void 0?Z.len:Z.pos+X,H=new O.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;while(Z.pos<F){var N=Z.uint32();if(N===q)break;switch(N>>>3){case 1:{H.rejectedSpans=Z.int64();break}case 2:{H.errorMessage=Z.string();break}default:Z.skipType(N&7);break}}return H},W.decodeDelimited=function(Z){if(!(Z instanceof I))Z=new I(Z);return this.decode(Z,Z.uint32())},W.verify=function(Z){if(typeof Z!=="object"||Z===null)return"object expected";if(Z.rejectedSpans!=null&&Z.hasOwnProperty("rejectedSpans")){if(!B.isInteger(Z.rejectedSpans)&&!(Z.rejectedSpans&&B.isInteger(Z.rejectedSpans.low)&&B.isInteger(Z.rejectedSpans.high)))return"rejectedSpans: integer|Long expected"}if(Z.errorMessage!=null&&Z.hasOwnProperty("errorMessage")){if(!B.isString(Z.errorMessage))return"errorMessage: string expected"}return null},W.fromObject=function(Z){if(Z instanceof O.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess)return Z;var X=new O.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;if(Z.rejectedSpans!=null){if(B.Long)(X.rejectedSpans=B.Long.fromValue(Z.rejectedSpans)).unsigned=!1;else if(typeof Z.rejectedSpans==="string")X.rejectedSpans=parseInt(Z.rejectedSpans,10);else if(typeof Z.rejectedSpans==="number")X.rejectedSpans=Z.rejectedSpans;else if(typeof Z.rejectedSpans==="object")X.rejectedSpans=new B.LongBits(Z.rejectedSpans.low>>>0,Z.rejectedSpans.high>>>0).toNumber()}if(Z.errorMessage!=null)X.errorMessage=String(Z.errorMessage);return X},W.toObject=function(Z,X){if(!X)X={};var q={};if(X.defaults){if(B.Long){var F=new B.Long(0,0,!1);q.rejectedSpans=X.longs===String?F.toString():X.longs===Number?F.toNumber():F}else q.rejectedSpans=X.longs===String?"0":0;q.errorMessage=""}if(Z.rejectedSpans!=null&&Z.hasOwnProperty("rejectedSpans"))if(typeof Z.rejectedSpans==="number")q.rejectedSpans=X.longs===String?String(Z.rejectedSpans):Z.rejectedSpans;else q.rejectedSpans=X.longs===String?B.Long.prototype.toString.call(Z.rejectedSpans):X.longs===Number?new B.LongBits(Z.rejectedSpans.low>>>0,Z.rejectedSpans.high>>>0).toNumber():Z.rejectedSpans;if(Z.errorMessage!=null&&Z.hasOwnProperty("errorMessage"))q.errorMessage=Z.errorMessage;return q},W.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},W.getTypeUrl=function(Z){if(Z===void 0)Z="type.googleapis.com";return Z+"/opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess"},W}(),z}(),K}(),G.metrics=function(){var K={};return K.v1=function(){var z={};return z.MetricsService=function(){function W(J,Z,X){h.rpc.Service.call(this,J,Z,X)}return(W.prototype=Object.create(h.rpc.Service.prototype)).constructor=W,W.create=function(Z,X,q){return new this(Z,X,q)},Object.defineProperty(W.prototype.export=function J(Z,X){return this.rpcCall(J,O.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,O.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,Z,X)},"name",{value:"Export"}),W}(),z.ExportMetricsServiceRequest=function(){function W(J){if(this.resourceMetrics=[],J){for(var Z=Object.keys(J),X=0;X<Z.length;++X)if(J[Z[X]]!=null)this[Z[X]]=J[Z[X]]}}return W.prototype.resourceMetrics=B.emptyArray,W.create=function(Z){return new W(Z)},W.encode=function(Z,X){if(!X)X=w.create();if(Z.resourceMetrics!=null&&Z.resourceMetrics.length)for(var q=0;q<Z.resourceMetrics.length;++q)O.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(Z.resourceMetrics[q],X.uint32(10).fork()).ldelim();return X},W.encodeDelimited=function(Z,X){return this.encode(Z,X).ldelim()},W.decode=function(Z,X,q){if(!(Z instanceof I))Z=I.create(Z);var F=X===void 0?Z.len:Z.pos+X,H=new O.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;while(Z.pos<F){var N=Z.uint32();if(N===q)break;switch(N>>>3){case 1:{if(!(H.resourceMetrics&&H.resourceMetrics.length))H.resourceMetrics=[];H.resourceMetrics.push(O.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(Z,Z.uint32()));break}default:Z.skipType(N&7);break}}return H},W.decodeDelimited=function(Z){if(!(Z instanceof I))Z=new I(Z);return this.decode(Z,Z.uint32())},W.verify=function(Z){if(typeof Z!=="object"||Z===null)return"object expected";if(Z.resourceMetrics!=null&&Z.hasOwnProperty("resourceMetrics")){if(!Array.isArray(Z.resourceMetrics))return"resourceMetrics: array expected";for(var X=0;X<Z.resourceMetrics.length;++X){var q=O.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(Z.resourceMetrics[X]);if(q)return"resourceMetrics."+q}}return null},W.fromObject=function(Z){if(Z instanceof O.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest)return Z;var X=new O.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;if(Z.resourceMetrics){if(!Array.isArray(Z.resourceMetrics))throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: array expected");X.resourceMetrics=[];for(var q=0;q<Z.resourceMetrics.length;++q){if(typeof Z.resourceMetrics[q]!=="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: object expected");X.resourceMetrics[q]=O.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(Z.resourceMetrics[q])}}return X},W.toObject=function(Z,X){if(!X)X={};var q={};if(X.arrays||X.defaults)q.resourceMetrics=[];if(Z.resourceMetrics&&Z.resourceMetrics.length){q.resourceMetrics=[];for(var F=0;F<Z.resourceMetrics.length;++F)q.resourceMetrics[F]=O.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(Z.resourceMetrics[F],X)}return q},W.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},W.getTypeUrl=function(Z){if(Z===void 0)Z="type.googleapis.com";return Z+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest"},W}(),z.ExportMetricsServiceResponse=function(){function W(J){if(J){for(var Z=Object.keys(J),X=0;X<Z.length;++X)if(J[Z[X]]!=null)this[Z[X]]=J[Z[X]]}}return W.prototype.partialSuccess=null,W.create=function(Z){return new W(Z)},W.encode=function(Z,X){if(!X)X=w.create();if(Z.partialSuccess!=null&&Object.hasOwnProperty.call(Z,"partialSuccess"))O.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.encode(Z.partialSuccess,X.uint32(10).fork()).ldelim();return X},W.encodeDelimited=function(Z,X){return this.encode(Z,X).ldelim()},W.decode=function(Z,X,q){if(!(Z instanceof I))Z=I.create(Z);var F=X===void 0?Z.len:Z.pos+X,H=new O.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;while(Z.pos<F){var N=Z.uint32();if(N===q)break;switch(N>>>3){case 1:{H.partialSuccess=O.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.decode(Z,Z.uint32());break}default:Z.skipType(N&7);break}}return H},W.decodeDelimited=function(Z){if(!(Z instanceof I))Z=new I(Z);return this.decode(Z,Z.uint32())},W.verify=function(Z){if(typeof Z!=="object"||Z===null)return"object expected";if(Z.partialSuccess!=null&&Z.hasOwnProperty("partialSuccess")){var X=O.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.verify(Z.partialSuccess);if(X)return"partialSuccess."+X}return null},W.fromObject=function(Z){if(Z instanceof O.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse)return Z;var X=new O.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;if(Z.partialSuccess!=null){if(typeof Z.partialSuccess!=="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse.partialSuccess: object expected");X.partialSuccess=O.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.fromObject(Z.partialSuccess)}return X},W.toObject=function(Z,X){if(!X)X={};var q={};if(X.defaults)q.partialSuccess=null;if(Z.partialSuccess!=null&&Z.hasOwnProperty("partialSuccess"))q.partialSuccess=O.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.toObject(Z.partialSuccess,X);return q},W.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},W.getTypeUrl=function(Z){if(Z===void 0)Z="type.googleapis.com";return Z+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse"},W}(),z.ExportMetricsPartialSuccess=function(){function W(J){if(J){for(var Z=Object.keys(J),X=0;X<Z.length;++X)if(J[Z[X]]!=null)this[Z[X]]=J[Z[X]]}}return W.prototype.rejectedDataPoints=null,W.prototype.errorMessage=null,W.create=function(Z){return new W(Z)},W.encode=function(Z,X){if(!X)X=w.create();if(Z.rejectedDataPoints!=null&&Object.hasOwnProperty.call(Z,"rejectedDataPoints"))X.uint32(8).int64(Z.rejectedDataPoints);if(Z.errorMessage!=null&&Object.hasOwnProperty.call(Z,"errorMessage"))X.uint32(18).string(Z.errorMessage);return X},W.encodeDelimited=function(Z,X){return this.encode(Z,X).ldelim()},W.decode=function(Z,X,q){if(!(Z instanceof I))Z=I.create(Z);var F=X===void 0?Z.len:Z.pos+X,H=new O.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;while(Z.pos<F){var N=Z.uint32();if(N===q)break;switch(N>>>3){case 1:{H.rejectedDataPoints=Z.int64();break}case 2:{H.errorMessage=Z.string();break}default:Z.skipType(N&7);break}}return H},W.decodeDelimited=function(Z){if(!(Z instanceof I))Z=new I(Z);return this.decode(Z,Z.uint32())},W.verify=function(Z){if(typeof Z!=="object"||Z===null)return"object expected";if(Z.rejectedDataPoints!=null&&Z.hasOwnProperty("rejectedDataPoints")){if(!B.isInteger(Z.rejectedDataPoints)&&!(Z.rejectedDataPoints&&B.isInteger(Z.rejectedDataPoints.low)&&B.isInteger(Z.rejectedDataPoints.high)))return"rejectedDataPoints: integer|Long expected"}if(Z.errorMessage!=null&&Z.hasOwnProperty("errorMessage")){if(!B.isString(Z.errorMessage))return"errorMessage: string expected"}return null},W.fromObject=function(Z){if(Z instanceof O.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess)return Z;var X=new O.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;if(Z.rejectedDataPoints!=null){if(B.Long)(X.rejectedDataPoints=B.Long.fromValue(Z.rejectedDataPoints)).unsigned=!1;else if(typeof Z.rejectedDataPoints==="string")X.rejectedDataPoints=parseInt(Z.rejectedDataPoints,10);else if(typeof Z.rejectedDataPoints==="number")X.rejectedDataPoints=Z.rejectedDataPoints;else if(typeof Z.rejectedDataPoints==="object")X.rejectedDataPoints=new B.LongBits(Z.rejectedDataPoints.low>>>0,Z.rejectedDataPoints.high>>>0).toNumber()}if(Z.errorMessage!=null)X.errorMessage=String(Z.errorMessage);return X},W.toObject=function(Z,X){if(!X)X={};var q={};if(X.defaults){if(B.Long){var F=new B.Long(0,0,!1);q.rejectedDataPoints=X.longs===String?F.toString():X.longs===Number?F.toNumber():F}else q.rejectedDataPoints=X.longs===String?"0":0;q.errorMessage=""}if(Z.rejectedDataPoints!=null&&Z.hasOwnProperty("rejectedDataPoints"))if(typeof Z.rejectedDataPoints==="number")q.rejectedDataPoints=X.longs===String?String(Z.rejectedDataPoints):Z.rejectedDataPoints;else q.rejectedDataPoints=X.longs===String?B.Long.prototype.toString.call(Z.rejectedDataPoints):X.longs===Number?new B.LongBits(Z.rejectedDataPoints.low>>>0,Z.rejectedDataPoints.high>>>0).toNumber():Z.rejectedDataPoints;if(Z.errorMessage!=null&&Z.hasOwnProperty("errorMessage"))q.errorMessage=Z.errorMessage;return q},W.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},W.getTypeUrl=function(Z){if(Z===void 0)Z="type.googleapis.com";return Z+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess"},W}(),z}(),K}(),G.logs=function(){var K={};return K.v1=function(){var z={};return z.LogsService=function(){function W(J,Z,X){h.rpc.Service.call(this,J,Z,X)}return(W.prototype=Object.create(h.rpc.Service.prototype)).constructor=W,W.create=function(Z,X,q){return new this(Z,X,q)},Object.defineProperty(W.prototype.export=function J(Z,X){return this.rpcCall(J,O.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,O.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,Z,X)},"name",{value:"Export"}),W}(),z.ExportLogsServiceRequest=function(){function W(J){if(this.resourceLogs=[],J){for(var Z=Object.keys(J),X=0;X<Z.length;++X)if(J[Z[X]]!=null)this[Z[X]]=J[Z[X]]}}return W.prototype.resourceLogs=B.emptyArray,W.create=function(Z){return new W(Z)},W.encode=function(Z,X){if(!X)X=w.create();if(Z.resourceLogs!=null&&Z.resourceLogs.length)for(var q=0;q<Z.resourceLogs.length;++q)O.opentelemetry.proto.logs.v1.ResourceLogs.encode(Z.resourceLogs[q],X.uint32(10).fork()).ldelim();return X},W.encodeDelimited=function(Z,X){return this.encode(Z,X).ldelim()},W.decode=function(Z,X,q){if(!(Z instanceof I))Z=I.create(Z);var F=X===void 0?Z.len:Z.pos+X,H=new O.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;while(Z.pos<F){var N=Z.uint32();if(N===q)break;switch(N>>>3){case 1:{if(!(H.resourceLogs&&H.resourceLogs.length))H.resourceLogs=[];H.resourceLogs.push(O.opentelemetry.proto.logs.v1.ResourceLogs.decode(Z,Z.uint32()));break}default:Z.skipType(N&7);break}}return H},W.decodeDelimited=function(Z){if(!(Z instanceof I))Z=new I(Z);return this.decode(Z,Z.uint32())},W.verify=function(Z){if(typeof Z!=="object"||Z===null)return"object expected";if(Z.resourceLogs!=null&&Z.hasOwnProperty("resourceLogs")){if(!Array.isArray(Z.resourceLogs))return"resourceLogs: array expected";for(var X=0;X<Z.resourceLogs.length;++X){var q=O.opentelemetry.proto.logs.v1.ResourceLogs.verify(Z.resourceLogs[X]);if(q)return"resourceLogs."+q}}return null},W.fromObject=function(Z){if(Z instanceof O.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest)return Z;var X=new O.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;if(Z.resourceLogs){if(!Array.isArray(Z.resourceLogs))throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: array expected");X.resourceLogs=[];for(var q=0;q<Z.resourceLogs.length;++q){if(typeof Z.resourceLogs[q]!=="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: object expected");X.resourceLogs[q]=O.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(Z.resourceLogs[q])}}return X},W.toObject=function(Z,X){if(!X)X={};var q={};if(X.arrays||X.defaults)q.resourceLogs=[];if(Z.resourceLogs&&Z.resourceLogs.length){q.resourceLogs=[];for(var F=0;F<Z.resourceLogs.length;++F)q.resourceLogs[F]=O.opentelemetry.proto.logs.v1.ResourceLogs.toObject(Z.resourceLogs[F],X)}return q},W.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},W.getTypeUrl=function(Z){if(Z===void 0)Z="type.googleapis.com";return Z+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest"},W}(),z.ExportLogsServiceResponse=function(){function W(J){if(J){for(var Z=Object.keys(J),X=0;X<Z.length;++X)if(J[Z[X]]!=null)this[Z[X]]=J[Z[X]]}}return W.prototype.partialSuccess=null,W.create=function(Z){return new W(Z)},W.encode=function(Z,X){if(!X)X=w.create();if(Z.partialSuccess!=null&&Object.hasOwnProperty.call(Z,"partialSuccess"))O.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.encode(Z.partialSuccess,X.uint32(10).fork()).ldelim();return X},W.encodeDelimited=function(Z,X){return this.encode(Z,X).ldelim()},W.decode=function(Z,X,q){if(!(Z instanceof I))Z=I.create(Z);var F=X===void 0?Z.len:Z.pos+X,H=new O.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;while(Z.pos<F){var N=Z.uint32();if(N===q)break;switch(N>>>3){case 1:{H.partialSuccess=O.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.decode(Z,Z.uint32());break}default:Z.skipType(N&7);break}}return H},W.decodeDelimited=function(Z){if(!(Z instanceof I))Z=new I(Z);return this.decode(Z,Z.uint32())},W.verify=function(Z){if(typeof Z!=="object"||Z===null)return"object expected";if(Z.partialSuccess!=null&&Z.hasOwnProperty("partialSuccess")){var X=O.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.verify(Z.partialSuccess);if(X)return"partialSuccess."+X}return null},W.fromObject=function(Z){if(Z instanceof O.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse)return Z;var X=new O.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;if(Z.partialSuccess!=null){if(typeof Z.partialSuccess!=="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse.partialSuccess: object expected");X.partialSuccess=O.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.fromObject(Z.partialSuccess)}return X},W.toObject=function(Z,X){if(!X)X={};var q={};if(X.defaults)q.partialSuccess=null;if(Z.partialSuccess!=null&&Z.hasOwnProperty("partialSuccess"))q.partialSuccess=O.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.toObject(Z.partialSuccess,X);return q},W.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},W.getTypeUrl=function(Z){if(Z===void 0)Z="type.googleapis.com";return Z+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse"},W}(),z.ExportLogsPartialSuccess=function(){function W(J){if(J){for(var Z=Object.keys(J),X=0;X<Z.length;++X)if(J[Z[X]]!=null)this[Z[X]]=J[Z[X]]}}return W.prototype.rejectedLogRecords=null,W.prototype.errorMessage=null,W.create=function(Z){return new W(Z)},W.encode=function(Z,X){if(!X)X=w.create();if(Z.rejectedLogRecords!=null&&Object.hasOwnProperty.call(Z,"rejectedLogRecords"))X.uint32(8).int64(Z.rejectedLogRecords);if(Z.errorMessage!=null&&Object.hasOwnProperty.call(Z,"errorMessage"))X.uint32(18).string(Z.errorMessage);return X},W.encodeDelimited=function(Z,X){return this.encode(Z,X).ldelim()},W.decode=function(Z,X,q){if(!(Z instanceof I))Z=I.create(Z);var F=X===void 0?Z.len:Z.pos+X,H=new O.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;while(Z.pos<F){var N=Z.uint32();if(N===q)break;switch(N>>>3){case 1:{H.rejectedLogRecords=Z.int64();break}case 2:{H.errorMessage=Z.string();break}default:Z.skipType(N&7);break}}return H},W.decodeDelimited=function(Z){if(!(Z instanceof I))Z=new I(Z);return this.decode(Z,Z.uint32())},W.verify=function(Z){if(typeof Z!=="object"||Z===null)return"object expected";if(Z.rejectedLogRecords!=null&&Z.hasOwnProperty("rejectedLogRecords")){if(!B.isInteger(Z.rejectedLogRecords)&&!(Z.rejectedLogRecords&&B.isInteger(Z.rejectedLogRecords.low)&&B.isInteger(Z.rejectedLogRecords.high)))return"rejectedLogRecords: integer|Long expected"}if(Z.errorMessage!=null&&Z.hasOwnProperty("errorMessage")){if(!B.isString(Z.errorMessage))return"errorMessage: string expected"}return null},W.fromObject=function(Z){if(Z instanceof O.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess)return Z;var X=new O.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;if(Z.rejectedLogRecords!=null){if(B.Long)(X.rejectedLogRecords=B.Long.fromValue(Z.rejectedLogRecords)).unsigned=!1;else if(typeof Z.rejectedLogRecords==="string")X.rejectedLogRecords=parseInt(Z.rejectedLogRecords,10);else if(typeof Z.rejectedLogRecords==="number")X.rejectedLogRecords=Z.rejectedLogRecords;else if(typeof Z.rejectedLogRecords==="object")X.rejectedLogRecords=new B.LongBits(Z.rejectedLogRecords.low>>>0,Z.rejectedLogRecords.high>>>0).toNumber()}if(Z.errorMessage!=null)X.errorMessage=String(Z.errorMessage);return X},W.toObject=function(Z,X){if(!X)X={};var q={};if(X.defaults){if(B.Long){var F=new B.Long(0,0,!1);q.rejectedLogRecords=X.longs===String?F.toString():X.longs===Number?F.toNumber():F}else q.rejectedLogRecords=X.longs===String?"0":0;q.errorMessage=""}if(Z.rejectedLogRecords!=null&&Z.hasOwnProperty("rejectedLogRecords"))if(typeof Z.rejectedLogRecords==="number")q.rejectedLogRecords=X.longs===String?String(Z.rejectedLogRecords):Z.rejectedLogRecords;else q.rejectedLogRecords=X.longs===String?B.Long.prototype.toString.call(Z.rejectedLogRecords):X.longs===Number?new B.LongBits(Z.rejectedLogRecords.low>>>0,Z.rejectedLogRecords.high>>>0).toNumber():Z.rejectedLogRecords;if(Z.errorMessage!=null&&Z.hasOwnProperty("errorMessage"))q.errorMessage=Z.errorMessage;return q},W.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},W.getTypeUrl=function(Z){if(Z===void 0)Z="type.googleapis.com";return Z+"/opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess"},W}(),z}(),K}(),G}(),Y.metrics=function(){var G={};return G.v1=function(){var K={};return K.MetricsData=function(){function z(W){if(this.resourceMetrics=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.resourceMetrics=B.emptyArray,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.resourceMetrics!=null&&J.resourceMetrics.length)for(var X=0;X<J.resourceMetrics.length;++X)O.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(J.resourceMetrics[X],Z.uint32(10).fork()).ldelim();return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.metrics.v1.MetricsData;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{if(!(F.resourceMetrics&&F.resourceMetrics.length))F.resourceMetrics=[];F.resourceMetrics.push(O.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(J,J.uint32()));break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.resourceMetrics!=null&&J.hasOwnProperty("resourceMetrics")){if(!Array.isArray(J.resourceMetrics))return"resourceMetrics: array expected";for(var Z=0;Z<J.resourceMetrics.length;++Z){var X=O.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(J.resourceMetrics[Z]);if(X)return"resourceMetrics."+X}}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.metrics.v1.MetricsData)return J;var Z=new O.opentelemetry.proto.metrics.v1.MetricsData;if(J.resourceMetrics){if(!Array.isArray(J.resourceMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: array expected");Z.resourceMetrics=[];for(var X=0;X<J.resourceMetrics.length;++X){if(typeof J.resourceMetrics[X]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: object expected");Z.resourceMetrics[X]=O.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(J.resourceMetrics[X])}}return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.resourceMetrics=[];if(J.resourceMetrics&&J.resourceMetrics.length){X.resourceMetrics=[];for(var q=0;q<J.resourceMetrics.length;++q)X.resourceMetrics[q]=O.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(J.resourceMetrics[q],Z)}return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.metrics.v1.MetricsData"},z}(),K.ResourceMetrics=function(){function z(W){if(this.scopeMetrics=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.resource=null,z.prototype.scopeMetrics=B.emptyArray,z.prototype.schemaUrl=null,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.resource!=null&&Object.hasOwnProperty.call(J,"resource"))O.opentelemetry.proto.resource.v1.Resource.encode(J.resource,Z.uint32(10).fork()).ldelim();if(J.scopeMetrics!=null&&J.scopeMetrics.length)for(var X=0;X<J.scopeMetrics.length;++X)O.opentelemetry.proto.metrics.v1.ScopeMetrics.encode(J.scopeMetrics[X],Z.uint32(18).fork()).ldelim();if(J.schemaUrl!=null&&Object.hasOwnProperty.call(J,"schemaUrl"))Z.uint32(26).string(J.schemaUrl);return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.metrics.v1.ResourceMetrics;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{F.resource=O.opentelemetry.proto.resource.v1.Resource.decode(J,J.uint32());break}case 2:{if(!(F.scopeMetrics&&F.scopeMetrics.length))F.scopeMetrics=[];F.scopeMetrics.push(O.opentelemetry.proto.metrics.v1.ScopeMetrics.decode(J,J.uint32()));break}case 3:{F.schemaUrl=J.string();break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.resource!=null&&J.hasOwnProperty("resource")){var Z=O.opentelemetry.proto.resource.v1.Resource.verify(J.resource);if(Z)return"resource."+Z}if(J.scopeMetrics!=null&&J.hasOwnProperty("scopeMetrics")){if(!Array.isArray(J.scopeMetrics))return"scopeMetrics: array expected";for(var X=0;X<J.scopeMetrics.length;++X){var Z=O.opentelemetry.proto.metrics.v1.ScopeMetrics.verify(J.scopeMetrics[X]);if(Z)return"scopeMetrics."+Z}}if(J.schemaUrl!=null&&J.hasOwnProperty("schemaUrl")){if(!B.isString(J.schemaUrl))return"schemaUrl: string expected"}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.metrics.v1.ResourceMetrics)return J;var Z=new O.opentelemetry.proto.metrics.v1.ResourceMetrics;if(J.resource!=null){if(typeof J.resource!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.resource: object expected");Z.resource=O.opentelemetry.proto.resource.v1.Resource.fromObject(J.resource)}if(J.scopeMetrics){if(!Array.isArray(J.scopeMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: array expected");Z.scopeMetrics=[];for(var X=0;X<J.scopeMetrics.length;++X){if(typeof J.scopeMetrics[X]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: object expected");Z.scopeMetrics[X]=O.opentelemetry.proto.metrics.v1.ScopeMetrics.fromObject(J.scopeMetrics[X])}}if(J.schemaUrl!=null)Z.schemaUrl=String(J.schemaUrl);return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.scopeMetrics=[];if(Z.defaults)X.resource=null,X.schemaUrl="";if(J.resource!=null&&J.hasOwnProperty("resource"))X.resource=O.opentelemetry.proto.resource.v1.Resource.toObject(J.resource,Z);if(J.scopeMetrics&&J.scopeMetrics.length){X.scopeMetrics=[];for(var q=0;q<J.scopeMetrics.length;++q)X.scopeMetrics[q]=O.opentelemetry.proto.metrics.v1.ScopeMetrics.toObject(J.scopeMetrics[q],Z)}if(J.schemaUrl!=null&&J.hasOwnProperty("schemaUrl"))X.schemaUrl=J.schemaUrl;return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.metrics.v1.ResourceMetrics"},z}(),K.ScopeMetrics=function(){function z(W){if(this.metrics=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.scope=null,z.prototype.metrics=B.emptyArray,z.prototype.schemaUrl=null,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.scope!=null&&Object.hasOwnProperty.call(J,"scope"))O.opentelemetry.proto.common.v1.InstrumentationScope.encode(J.scope,Z.uint32(10).fork()).ldelim();if(J.metrics!=null&&J.metrics.length)for(var X=0;X<J.metrics.length;++X)O.opentelemetry.proto.metrics.v1.Metric.encode(J.metrics[X],Z.uint32(18).fork()).ldelim();if(J.schemaUrl!=null&&Object.hasOwnProperty.call(J,"schemaUrl"))Z.uint32(26).string(J.schemaUrl);return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.metrics.v1.ScopeMetrics;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{F.scope=O.opentelemetry.proto.common.v1.InstrumentationScope.decode(J,J.uint32());break}case 2:{if(!(F.metrics&&F.metrics.length))F.metrics=[];F.metrics.push(O.opentelemetry.proto.metrics.v1.Metric.decode(J,J.uint32()));break}case 3:{F.schemaUrl=J.string();break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.scope!=null&&J.hasOwnProperty("scope")){var Z=O.opentelemetry.proto.common.v1.InstrumentationScope.verify(J.scope);if(Z)return"scope."+Z}if(J.metrics!=null&&J.hasOwnProperty("metrics")){if(!Array.isArray(J.metrics))return"metrics: array expected";for(var X=0;X<J.metrics.length;++X){var Z=O.opentelemetry.proto.metrics.v1.Metric.verify(J.metrics[X]);if(Z)return"metrics."+Z}}if(J.schemaUrl!=null&&J.hasOwnProperty("schemaUrl")){if(!B.isString(J.schemaUrl))return"schemaUrl: string expected"}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.metrics.v1.ScopeMetrics)return J;var Z=new O.opentelemetry.proto.metrics.v1.ScopeMetrics;if(J.scope!=null){if(typeof J.scope!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.scope: object expected");Z.scope=O.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(J.scope)}if(J.metrics){if(!Array.isArray(J.metrics))throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: array expected");Z.metrics=[];for(var X=0;X<J.metrics.length;++X){if(typeof J.metrics[X]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: object expected");Z.metrics[X]=O.opentelemetry.proto.metrics.v1.Metric.fromObject(J.metrics[X])}}if(J.schemaUrl!=null)Z.schemaUrl=String(J.schemaUrl);return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.metrics=[];if(Z.defaults)X.scope=null,X.schemaUrl="";if(J.scope!=null&&J.hasOwnProperty("scope"))X.scope=O.opentelemetry.proto.common.v1.InstrumentationScope.toObject(J.scope,Z);if(J.metrics&&J.metrics.length){X.metrics=[];for(var q=0;q<J.metrics.length;++q)X.metrics[q]=O.opentelemetry.proto.metrics.v1.Metric.toObject(J.metrics[q],Z)}if(J.schemaUrl!=null&&J.hasOwnProperty("schemaUrl"))X.schemaUrl=J.schemaUrl;return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.metrics.v1.ScopeMetrics"},z}(),K.Metric=function(){function z(J){if(this.metadata=[],J){for(var Z=Object.keys(J),X=0;X<Z.length;++X)if(J[Z[X]]!=null)this[Z[X]]=J[Z[X]]}}z.prototype.name=null,z.prototype.description=null,z.prototype.unit=null,z.prototype.gauge=null,z.prototype.sum=null,z.prototype.histogram=null,z.prototype.exponentialHistogram=null,z.prototype.summary=null,z.prototype.metadata=B.emptyArray;var W;return Object.defineProperty(z.prototype,"data",{get:B.oneOfGetter(W=["gauge","sum","histogram","exponentialHistogram","summary"]),set:B.oneOfSetter(W)}),z.create=function(Z){return new z(Z)},z.encode=function(Z,X){if(!X)X=w.create();if(Z.name!=null&&Object.hasOwnProperty.call(Z,"name"))X.uint32(10).string(Z.name);if(Z.description!=null&&Object.hasOwnProperty.call(Z,"description"))X.uint32(18).string(Z.description);if(Z.unit!=null&&Object.hasOwnProperty.call(Z,"unit"))X.uint32(26).string(Z.unit);if(Z.gauge!=null&&Object.hasOwnProperty.call(Z,"gauge"))O.opentelemetry.proto.metrics.v1.Gauge.encode(Z.gauge,X.uint32(42).fork()).ldelim();if(Z.sum!=null&&Object.hasOwnProperty.call(Z,"sum"))O.opentelemetry.proto.metrics.v1.Sum.encode(Z.sum,X.uint32(58).fork()).ldelim();if(Z.histogram!=null&&Object.hasOwnProperty.call(Z,"histogram"))O.opentelemetry.proto.metrics.v1.Histogram.encode(Z.histogram,X.uint32(74).fork()).ldelim();if(Z.exponentialHistogram!=null&&Object.hasOwnProperty.call(Z,"exponentialHistogram"))O.opentelemetry.proto.metrics.v1.ExponentialHistogram.encode(Z.exponentialHistogram,X.uint32(82).fork()).ldelim();if(Z.summary!=null&&Object.hasOwnProperty.call(Z,"summary"))O.opentelemetry.proto.metrics.v1.Summary.encode(Z.summary,X.uint32(90).fork()).ldelim();if(Z.metadata!=null&&Z.metadata.length)for(var q=0;q<Z.metadata.length;++q)O.opentelemetry.proto.common.v1.KeyValue.encode(Z.metadata[q],X.uint32(98).fork()).ldelim();return X},z.encodeDelimited=function(Z,X){return this.encode(Z,X).ldelim()},z.decode=function(Z,X,q){if(!(Z instanceof I))Z=I.create(Z);var F=X===void 0?Z.len:Z.pos+X,H=new O.opentelemetry.proto.metrics.v1.Metric;while(Z.pos<F){var N=Z.uint32();if(N===q)break;switch(N>>>3){case 1:{H.name=Z.string();break}case 2:{H.description=Z.string();break}case 3:{H.unit=Z.string();break}case 5:{H.gauge=O.opentelemetry.proto.metrics.v1.Gauge.decode(Z,Z.uint32());break}case 7:{H.sum=O.opentelemetry.proto.metrics.v1.Sum.decode(Z,Z.uint32());break}case 9:{H.histogram=O.opentelemetry.proto.metrics.v1.Histogram.decode(Z,Z.uint32());break}case 10:{H.exponentialHistogram=O.opentelemetry.proto.metrics.v1.ExponentialHistogram.decode(Z,Z.uint32());break}case 11:{H.summary=O.opentelemetry.proto.metrics.v1.Summary.decode(Z,Z.uint32());break}case 12:{if(!(H.metadata&&H.metadata.length))H.metadata=[];H.metadata.push(O.opentelemetry.proto.common.v1.KeyValue.decode(Z,Z.uint32()));break}default:Z.skipType(N&7);break}}return H},z.decodeDelimited=function(Z){if(!(Z instanceof I))Z=new I(Z);return this.decode(Z,Z.uint32())},z.verify=function(Z){if(typeof Z!=="object"||Z===null)return"object expected";var X={};if(Z.name!=null&&Z.hasOwnProperty("name")){if(!B.isString(Z.name))return"name: string expected"}if(Z.description!=null&&Z.hasOwnProperty("description")){if(!B.isString(Z.description))return"description: string expected"}if(Z.unit!=null&&Z.hasOwnProperty("unit")){if(!B.isString(Z.unit))return"unit: string expected"}if(Z.gauge!=null&&Z.hasOwnProperty("gauge")){X.data=1;{var q=O.opentelemetry.proto.metrics.v1.Gauge.verify(Z.gauge);if(q)return"gauge."+q}}if(Z.sum!=null&&Z.hasOwnProperty("sum")){if(X.data===1)return"data: multiple values";X.data=1;{var q=O.opentelemetry.proto.metrics.v1.Sum.verify(Z.sum);if(q)return"sum."+q}}if(Z.histogram!=null&&Z.hasOwnProperty("histogram")){if(X.data===1)return"data: multiple values";X.data=1;{var q=O.opentelemetry.proto.metrics.v1.Histogram.verify(Z.histogram);if(q)return"histogram."+q}}if(Z.exponentialHistogram!=null&&Z.hasOwnProperty("exponentialHistogram")){if(X.data===1)return"data: multiple values";X.data=1;{var q=O.opentelemetry.proto.metrics.v1.ExponentialHistogram.verify(Z.exponentialHistogram);if(q)return"exponentialHistogram."+q}}if(Z.summary!=null&&Z.hasOwnProperty("summary")){if(X.data===1)return"data: multiple values";X.data=1;{var q=O.opentelemetry.proto.metrics.v1.Summary.verify(Z.summary);if(q)return"summary."+q}}if(Z.metadata!=null&&Z.hasOwnProperty("metadata")){if(!Array.isArray(Z.metadata))return"metadata: array expected";for(var F=0;F<Z.metadata.length;++F){var q=O.opentelemetry.proto.common.v1.KeyValue.verify(Z.metadata[F]);if(q)return"metadata."+q}}return null},z.fromObject=function(Z){if(Z instanceof O.opentelemetry.proto.metrics.v1.Metric)return Z;var X=new O.opentelemetry.proto.metrics.v1.Metric;if(Z.name!=null)X.name=String(Z.name);if(Z.description!=null)X.description=String(Z.description);if(Z.unit!=null)X.unit=String(Z.unit);if(Z.gauge!=null){if(typeof Z.gauge!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.gauge: object expected");X.gauge=O.opentelemetry.proto.metrics.v1.Gauge.fromObject(Z.gauge)}if(Z.sum!=null){if(typeof Z.sum!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.sum: object expected");X.sum=O.opentelemetry.proto.metrics.v1.Sum.fromObject(Z.sum)}if(Z.histogram!=null){if(typeof Z.histogram!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.histogram: object expected");X.histogram=O.opentelemetry.proto.metrics.v1.Histogram.fromObject(Z.histogram)}if(Z.exponentialHistogram!=null){if(typeof Z.exponentialHistogram!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.exponentialHistogram: object expected");X.exponentialHistogram=O.opentelemetry.proto.metrics.v1.ExponentialHistogram.fromObject(Z.exponentialHistogram)}if(Z.summary!=null){if(typeof Z.summary!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.summary: object expected");X.summary=O.opentelemetry.proto.metrics.v1.Summary.fromObject(Z.summary)}if(Z.metadata){if(!Array.isArray(Z.metadata))throw TypeError(".opentelemetry.proto.metrics.v1.Metric.metadata: array expected");X.metadata=[];for(var q=0;q<Z.metadata.length;++q){if(typeof Z.metadata[q]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.metadata: object expected");X.metadata[q]=O.opentelemetry.proto.common.v1.KeyValue.fromObject(Z.metadata[q])}}return X},z.toObject=function(Z,X){if(!X)X={};var q={};if(X.arrays||X.defaults)q.metadata=[];if(X.defaults)q.name="",q.description="",q.unit="";if(Z.name!=null&&Z.hasOwnProperty("name"))q.name=Z.name;if(Z.description!=null&&Z.hasOwnProperty("description"))q.description=Z.description;if(Z.unit!=null&&Z.hasOwnProperty("unit"))q.unit=Z.unit;if(Z.gauge!=null&&Z.hasOwnProperty("gauge")){if(q.gauge=O.opentelemetry.proto.metrics.v1.Gauge.toObject(Z.gauge,X),X.oneofs)q.data="gauge"}if(Z.sum!=null&&Z.hasOwnProperty("sum")){if(q.sum=O.opentelemetry.proto.metrics.v1.Sum.toObject(Z.sum,X),X.oneofs)q.data="sum"}if(Z.histogram!=null&&Z.hasOwnProperty("histogram")){if(q.histogram=O.opentelemetry.proto.metrics.v1.Histogram.toObject(Z.histogram,X),X.oneofs)q.data="histogram"}if(Z.exponentialHistogram!=null&&Z.hasOwnProperty("exponentialHistogram")){if(q.exponentialHistogram=O.opentelemetry.proto.metrics.v1.ExponentialHistogram.toObject(Z.exponentialHistogram,X),X.oneofs)q.data="exponentialHistogram"}if(Z.summary!=null&&Z.hasOwnProperty("summary")){if(q.summary=O.opentelemetry.proto.metrics.v1.Summary.toObject(Z.summary,X),X.oneofs)q.data="summary"}if(Z.metadata&&Z.metadata.length){q.metadata=[];for(var F=0;F<Z.metadata.length;++F)q.metadata[F]=O.opentelemetry.proto.common.v1.KeyValue.toObject(Z.metadata[F],X)}return q},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(Z){if(Z===void 0)Z="type.googleapis.com";return Z+"/opentelemetry.proto.metrics.v1.Metric"},z}(),K.Gauge=function(){function z(W){if(this.dataPoints=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.dataPoints=B.emptyArray,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.dataPoints!=null&&J.dataPoints.length)for(var X=0;X<J.dataPoints.length;++X)O.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(J.dataPoints[X],Z.uint32(10).fork()).ldelim();return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.metrics.v1.Gauge;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{if(!(F.dataPoints&&F.dataPoints.length))F.dataPoints=[];F.dataPoints.push(O.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(J,J.uint32()));break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.dataPoints!=null&&J.hasOwnProperty("dataPoints")){if(!Array.isArray(J.dataPoints))return"dataPoints: array expected";for(var Z=0;Z<J.dataPoints.length;++Z){var X=O.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(J.dataPoints[Z]);if(X)return"dataPoints."+X}}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.metrics.v1.Gauge)return J;var Z=new O.opentelemetry.proto.metrics.v1.Gauge;if(J.dataPoints){if(!Array.isArray(J.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: array expected");Z.dataPoints=[];for(var X=0;X<J.dataPoints.length;++X){if(typeof J.dataPoints[X]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: object expected");Z.dataPoints[X]=O.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(J.dataPoints[X])}}return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.dataPoints=[];if(J.dataPoints&&J.dataPoints.length){X.dataPoints=[];for(var q=0;q<J.dataPoints.length;++q)X.dataPoints[q]=O.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(J.dataPoints[q],Z)}return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.metrics.v1.Gauge"},z}(),K.Sum=function(){function z(W){if(this.dataPoints=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.dataPoints=B.emptyArray,z.prototype.aggregationTemporality=null,z.prototype.isMonotonic=null,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.dataPoints!=null&&J.dataPoints.length)for(var X=0;X<J.dataPoints.length;++X)O.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(J.dataPoints[X],Z.uint32(10).fork()).ldelim();if(J.aggregationTemporality!=null&&Object.hasOwnProperty.call(J,"aggregationTemporality"))Z.uint32(16).int32(J.aggregationTemporality);if(J.isMonotonic!=null&&Object.hasOwnProperty.call(J,"isMonotonic"))Z.uint32(24).bool(J.isMonotonic);return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.metrics.v1.Sum;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{if(!(F.dataPoints&&F.dataPoints.length))F.dataPoints=[];F.dataPoints.push(O.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(J,J.uint32()));break}case 2:{F.aggregationTemporality=J.int32();break}case 3:{F.isMonotonic=J.bool();break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.dataPoints!=null&&J.hasOwnProperty("dataPoints")){if(!Array.isArray(J.dataPoints))return"dataPoints: array expected";for(var Z=0;Z<J.dataPoints.length;++Z){var X=O.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(J.dataPoints[Z]);if(X)return"dataPoints."+X}}if(J.aggregationTemporality!=null&&J.hasOwnProperty("aggregationTemporality"))switch(J.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}if(J.isMonotonic!=null&&J.hasOwnProperty("isMonotonic")){if(typeof J.isMonotonic!=="boolean")return"isMonotonic: boolean expected"}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.metrics.v1.Sum)return J;var Z=new O.opentelemetry.proto.metrics.v1.Sum;if(J.dataPoints){if(!Array.isArray(J.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: array expected");Z.dataPoints=[];for(var X=0;X<J.dataPoints.length;++X){if(typeof J.dataPoints[X]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: object expected");Z.dataPoints[X]=O.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(J.dataPoints[X])}}switch(J.aggregationTemporality){default:if(typeof J.aggregationTemporality==="number"){Z.aggregationTemporality=J.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:Z.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:Z.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:Z.aggregationTemporality=2;break}if(J.isMonotonic!=null)Z.isMonotonic=Boolean(J.isMonotonic);return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.dataPoints=[];if(Z.defaults)X.aggregationTemporality=Z.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0,X.isMonotonic=!1;if(J.dataPoints&&J.dataPoints.length){X.dataPoints=[];for(var q=0;q<J.dataPoints.length;++q)X.dataPoints[q]=O.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(J.dataPoints[q],Z)}if(J.aggregationTemporality!=null&&J.hasOwnProperty("aggregationTemporality"))X.aggregationTemporality=Z.enums===String?O.opentelemetry.proto.metrics.v1.AggregationTemporality[J.aggregationTemporality]===void 0?J.aggregationTemporality:O.opentelemetry.proto.metrics.v1.AggregationTemporality[J.aggregationTemporality]:J.aggregationTemporality;if(J.isMonotonic!=null&&J.hasOwnProperty("isMonotonic"))X.isMonotonic=J.isMonotonic;return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.metrics.v1.Sum"},z}(),K.Histogram=function(){function z(W){if(this.dataPoints=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.dataPoints=B.emptyArray,z.prototype.aggregationTemporality=null,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.dataPoints!=null&&J.dataPoints.length)for(var X=0;X<J.dataPoints.length;++X)O.opentelemetry.proto.metrics.v1.HistogramDataPoint.encode(J.dataPoints[X],Z.uint32(10).fork()).ldelim();if(J.aggregationTemporality!=null&&Object.hasOwnProperty.call(J,"aggregationTemporality"))Z.uint32(16).int32(J.aggregationTemporality);return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.metrics.v1.Histogram;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{if(!(F.dataPoints&&F.dataPoints.length))F.dataPoints=[];F.dataPoints.push(O.opentelemetry.proto.metrics.v1.HistogramDataPoint.decode(J,J.uint32()));break}case 2:{F.aggregationTemporality=J.int32();break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.dataPoints!=null&&J.hasOwnProperty("dataPoints")){if(!Array.isArray(J.dataPoints))return"dataPoints: array expected";for(var Z=0;Z<J.dataPoints.length;++Z){var X=O.opentelemetry.proto.metrics.v1.HistogramDataPoint.verify(J.dataPoints[Z]);if(X)return"dataPoints."+X}}if(J.aggregationTemporality!=null&&J.hasOwnProperty("aggregationTemporality"))switch(J.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.metrics.v1.Histogram)return J;var Z=new O.opentelemetry.proto.metrics.v1.Histogram;if(J.dataPoints){if(!Array.isArray(J.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: array expected");Z.dataPoints=[];for(var X=0;X<J.dataPoints.length;++X){if(typeof J.dataPoints[X]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: object expected");Z.dataPoints[X]=O.opentelemetry.proto.metrics.v1.HistogramDataPoint.fromObject(J.dataPoints[X])}}switch(J.aggregationTemporality){default:if(typeof J.aggregationTemporality==="number"){Z.aggregationTemporality=J.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:Z.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:Z.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:Z.aggregationTemporality=2;break}return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.dataPoints=[];if(Z.defaults)X.aggregationTemporality=Z.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0;if(J.dataPoints&&J.dataPoints.length){X.dataPoints=[];for(var q=0;q<J.dataPoints.length;++q)X.dataPoints[q]=O.opentelemetry.proto.metrics.v1.HistogramDataPoint.toObject(J.dataPoints[q],Z)}if(J.aggregationTemporality!=null&&J.hasOwnProperty("aggregationTemporality"))X.aggregationTemporality=Z.enums===String?O.opentelemetry.proto.metrics.v1.AggregationTemporality[J.aggregationTemporality]===void 0?J.aggregationTemporality:O.opentelemetry.proto.metrics.v1.AggregationTemporality[J.aggregationTemporality]:J.aggregationTemporality;return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.metrics.v1.Histogram"},z}(),K.ExponentialHistogram=function(){function z(W){if(this.dataPoints=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.dataPoints=B.emptyArray,z.prototype.aggregationTemporality=null,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.dataPoints!=null&&J.dataPoints.length)for(var X=0;X<J.dataPoints.length;++X)O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.encode(J.dataPoints[X],Z.uint32(10).fork()).ldelim();if(J.aggregationTemporality!=null&&Object.hasOwnProperty.call(J,"aggregationTemporality"))Z.uint32(16).int32(J.aggregationTemporality);return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.metrics.v1.ExponentialHistogram;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{if(!(F.dataPoints&&F.dataPoints.length))F.dataPoints=[];F.dataPoints.push(O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.decode(J,J.uint32()));break}case 2:{F.aggregationTemporality=J.int32();break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.dataPoints!=null&&J.hasOwnProperty("dataPoints")){if(!Array.isArray(J.dataPoints))return"dataPoints: array expected";for(var Z=0;Z<J.dataPoints.length;++Z){var X=O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.verify(J.dataPoints[Z]);if(X)return"dataPoints."+X}}if(J.aggregationTemporality!=null&&J.hasOwnProperty("aggregationTemporality"))switch(J.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.metrics.v1.ExponentialHistogram)return J;var Z=new O.opentelemetry.proto.metrics.v1.ExponentialHistogram;if(J.dataPoints){if(!Array.isArray(J.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: array expected");Z.dataPoints=[];for(var X=0;X<J.dataPoints.length;++X){if(typeof J.dataPoints[X]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: object expected");Z.dataPoints[X]=O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.fromObject(J.dataPoints[X])}}switch(J.aggregationTemporality){default:if(typeof J.aggregationTemporality==="number"){Z.aggregationTemporality=J.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:Z.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:Z.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:Z.aggregationTemporality=2;break}return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.dataPoints=[];if(Z.defaults)X.aggregationTemporality=Z.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0;if(J.dataPoints&&J.dataPoints.length){X.dataPoints=[];for(var q=0;q<J.dataPoints.length;++q)X.dataPoints[q]=O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.toObject(J.dataPoints[q],Z)}if(J.aggregationTemporality!=null&&J.hasOwnProperty("aggregationTemporality"))X.aggregationTemporality=Z.enums===String?O.opentelemetry.proto.metrics.v1.AggregationTemporality[J.aggregationTemporality]===void 0?J.aggregationTemporality:O.opentelemetry.proto.metrics.v1.AggregationTemporality[J.aggregationTemporality]:J.aggregationTemporality;return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.metrics.v1.ExponentialHistogram"},z}(),K.Summary=function(){function z(W){if(this.dataPoints=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.dataPoints=B.emptyArray,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.dataPoints!=null&&J.dataPoints.length)for(var X=0;X<J.dataPoints.length;++X)O.opentelemetry.proto.metrics.v1.SummaryDataPoint.encode(J.dataPoints[X],Z.uint32(10).fork()).ldelim();return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.metrics.v1.Summary;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{if(!(F.dataPoints&&F.dataPoints.length))F.dataPoints=[];F.dataPoints.push(O.opentelemetry.proto.metrics.v1.SummaryDataPoint.decode(J,J.uint32()));break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.dataPoints!=null&&J.hasOwnProperty("dataPoints")){if(!Array.isArray(J.dataPoints))return"dataPoints: array expected";for(var Z=0;Z<J.dataPoints.length;++Z){var X=O.opentelemetry.proto.metrics.v1.SummaryDataPoint.verify(J.dataPoints[Z]);if(X)return"dataPoints."+X}}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.metrics.v1.Summary)return J;var Z=new O.opentelemetry.proto.metrics.v1.Summary;if(J.dataPoints){if(!Array.isArray(J.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: array expected");Z.dataPoints=[];for(var X=0;X<J.dataPoints.length;++X){if(typeof J.dataPoints[X]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: object expected");Z.dataPoints[X]=O.opentelemetry.proto.metrics.v1.SummaryDataPoint.fromObject(J.dataPoints[X])}}return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.dataPoints=[];if(J.dataPoints&&J.dataPoints.length){X.dataPoints=[];for(var q=0;q<J.dataPoints.length;++q)X.dataPoints[q]=O.opentelemetry.proto.metrics.v1.SummaryDataPoint.toObject(J.dataPoints[q],Z)}return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.metrics.v1.Summary"},z}(),K.AggregationTemporality=function(){var z={},W=Object.create(z);return W[z[0]="AGGREGATION_TEMPORALITY_UNSPECIFIED"]=0,W[z[1]="AGGREGATION_TEMPORALITY_DELTA"]=1,W[z[2]="AGGREGATION_TEMPORALITY_CUMULATIVE"]=2,W}(),K.DataPointFlags=function(){var z={},W=Object.create(z);return W[z[0]="DATA_POINT_FLAGS_DO_NOT_USE"]=0,W[z[1]="DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK"]=1,W}(),K.NumberDataPoint=function(){function z(J){if(this.attributes=[],this.exemplars=[],J){for(var Z=Object.keys(J),X=0;X<Z.length;++X)if(J[Z[X]]!=null)this[Z[X]]=J[Z[X]]}}z.prototype.attributes=B.emptyArray,z.prototype.startTimeUnixNano=null,z.prototype.timeUnixNano=null,z.prototype.asDouble=null,z.prototype.asInt=null,z.prototype.exemplars=B.emptyArray,z.prototype.flags=null;var W;return Object.defineProperty(z.prototype,"value",{get:B.oneOfGetter(W=["asDouble","asInt"]),set:B.oneOfSetter(W)}),z.create=function(Z){return new z(Z)},z.encode=function(Z,X){if(!X)X=w.create();if(Z.startTimeUnixNano!=null&&Object.hasOwnProperty.call(Z,"startTimeUnixNano"))X.uint32(17).fixed64(Z.startTimeUnixNano);if(Z.timeUnixNano!=null&&Object.hasOwnProperty.call(Z,"timeUnixNano"))X.uint32(25).fixed64(Z.timeUnixNano);if(Z.asDouble!=null&&Object.hasOwnProperty.call(Z,"asDouble"))X.uint32(33).double(Z.asDouble);if(Z.exemplars!=null&&Z.exemplars.length)for(var q=0;q<Z.exemplars.length;++q)O.opentelemetry.proto.metrics.v1.Exemplar.encode(Z.exemplars[q],X.uint32(42).fork()).ldelim();if(Z.asInt!=null&&Object.hasOwnProperty.call(Z,"asInt"))X.uint32(49).sfixed64(Z.asInt);if(Z.attributes!=null&&Z.attributes.length)for(var q=0;q<Z.attributes.length;++q)O.opentelemetry.proto.common.v1.KeyValue.encode(Z.attributes[q],X.uint32(58).fork()).ldelim();if(Z.flags!=null&&Object.hasOwnProperty.call(Z,"flags"))X.uint32(64).uint32(Z.flags);return X},z.encodeDelimited=function(Z,X){return this.encode(Z,X).ldelim()},z.decode=function(Z,X,q){if(!(Z instanceof I))Z=I.create(Z);var F=X===void 0?Z.len:Z.pos+X,H=new O.opentelemetry.proto.metrics.v1.NumberDataPoint;while(Z.pos<F){var N=Z.uint32();if(N===q)break;switch(N>>>3){case 7:{if(!(H.attributes&&H.attributes.length))H.attributes=[];H.attributes.push(O.opentelemetry.proto.common.v1.KeyValue.decode(Z,Z.uint32()));break}case 2:{H.startTimeUnixNano=Z.fixed64();break}case 3:{H.timeUnixNano=Z.fixed64();break}case 4:{H.asDouble=Z.double();break}case 6:{H.asInt=Z.sfixed64();break}case 5:{if(!(H.exemplars&&H.exemplars.length))H.exemplars=[];H.exemplars.push(O.opentelemetry.proto.metrics.v1.Exemplar.decode(Z,Z.uint32()));break}case 8:{H.flags=Z.uint32();break}default:Z.skipType(N&7);break}}return H},z.decodeDelimited=function(Z){if(!(Z instanceof I))Z=new I(Z);return this.decode(Z,Z.uint32())},z.verify=function(Z){if(typeof Z!=="object"||Z===null)return"object expected";var X={};if(Z.attributes!=null&&Z.hasOwnProperty("attributes")){if(!Array.isArray(Z.attributes))return"attributes: array expected";for(var q=0;q<Z.attributes.length;++q){var F=O.opentelemetry.proto.common.v1.KeyValue.verify(Z.attributes[q]);if(F)return"attributes."+F}}if(Z.startTimeUnixNano!=null&&Z.hasOwnProperty("startTimeUnixNano")){if(!B.isInteger(Z.startTimeUnixNano)&&!(Z.startTimeUnixNano&&B.isInteger(Z.startTimeUnixNano.low)&&B.isInteger(Z.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected"}if(Z.timeUnixNano!=null&&Z.hasOwnProperty("timeUnixNano")){if(!B.isInteger(Z.timeUnixNano)&&!(Z.timeUnixNano&&B.isInteger(Z.timeUnixNano.low)&&B.isInteger(Z.timeUnixNano.high)))return"timeUnixNano: integer|Long expected"}if(Z.asDouble!=null&&Z.hasOwnProperty("asDouble")){if(X.value=1,typeof Z.asDouble!=="number")return"asDouble: number expected"}if(Z.asInt!=null&&Z.hasOwnProperty("asInt")){if(X.value===1)return"value: multiple values";if(X.value=1,!B.isInteger(Z.asInt)&&!(Z.asInt&&B.isInteger(Z.asInt.low)&&B.isInteger(Z.asInt.high)))return"asInt: integer|Long expected"}if(Z.exemplars!=null&&Z.hasOwnProperty("exemplars")){if(!Array.isArray(Z.exemplars))return"exemplars: array expected";for(var q=0;q<Z.exemplars.length;++q){var F=O.opentelemetry.proto.metrics.v1.Exemplar.verify(Z.exemplars[q]);if(F)return"exemplars."+F}}if(Z.flags!=null&&Z.hasOwnProperty("flags")){if(!B.isInteger(Z.flags))return"flags: integer expected"}return null},z.fromObject=function(Z){if(Z instanceof O.opentelemetry.proto.metrics.v1.NumberDataPoint)return Z;var X=new O.opentelemetry.proto.metrics.v1.NumberDataPoint;if(Z.attributes){if(!Array.isArray(Z.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: array expected");X.attributes=[];for(var q=0;q<Z.attributes.length;++q){if(typeof Z.attributes[q]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: object expected");X.attributes[q]=O.opentelemetry.proto.common.v1.KeyValue.fromObject(Z.attributes[q])}}if(Z.startTimeUnixNano!=null){if(B.Long)(X.startTimeUnixNano=B.Long.fromValue(Z.startTimeUnixNano)).unsigned=!1;else if(typeof Z.startTimeUnixNano==="string")X.startTimeUnixNano=parseInt(Z.startTimeUnixNano,10);else if(typeof Z.startTimeUnixNano==="number")X.startTimeUnixNano=Z.startTimeUnixNano;else if(typeof Z.startTimeUnixNano==="object")X.startTimeUnixNano=new B.LongBits(Z.startTimeUnixNano.low>>>0,Z.startTimeUnixNano.high>>>0).toNumber()}if(Z.timeUnixNano!=null){if(B.Long)(X.timeUnixNano=B.Long.fromValue(Z.timeUnixNano)).unsigned=!1;else if(typeof Z.timeUnixNano==="string")X.timeUnixNano=parseInt(Z.timeUnixNano,10);else if(typeof Z.timeUnixNano==="number")X.timeUnixNano=Z.timeUnixNano;else if(typeof Z.timeUnixNano==="object")X.timeUnixNano=new B.LongBits(Z.timeUnixNano.low>>>0,Z.timeUnixNano.high>>>0).toNumber()}if(Z.asDouble!=null)X.asDouble=Number(Z.asDouble);if(Z.asInt!=null){if(B.Long)(X.asInt=B.Long.fromValue(Z.asInt)).unsigned=!1;else if(typeof Z.asInt==="string")X.asInt=parseInt(Z.asInt,10);else if(typeof Z.asInt==="number")X.asInt=Z.asInt;else if(typeof Z.asInt==="object")X.asInt=new B.LongBits(Z.asInt.low>>>0,Z.asInt.high>>>0).toNumber()}if(Z.exemplars){if(!Array.isArray(Z.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: array expected");X.exemplars=[];for(var q=0;q<Z.exemplars.length;++q){if(typeof Z.exemplars[q]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: object expected");X.exemplars[q]=O.opentelemetry.proto.metrics.v1.Exemplar.fromObject(Z.exemplars[q])}}if(Z.flags!=null)X.flags=Z.flags>>>0;return X},z.toObject=function(Z,X){if(!X)X={};var q={};if(X.arrays||X.defaults)q.exemplars=[],q.attributes=[];if(X.defaults){if(B.Long){var F=new B.Long(0,0,!1);q.startTimeUnixNano=X.longs===String?F.toString():X.longs===Number?F.toNumber():F}else q.startTimeUnixNano=X.longs===String?"0":0;if(B.Long){var F=new B.Long(0,0,!1);q.timeUnixNano=X.longs===String?F.toString():X.longs===Number?F.toNumber():F}else q.timeUnixNano=X.longs===String?"0":0;q.flags=0}if(Z.startTimeUnixNano!=null&&Z.hasOwnProperty("startTimeUnixNano"))if(typeof Z.startTimeUnixNano==="number")q.startTimeUnixNano=X.longs===String?String(Z.startTimeUnixNano):Z.startTimeUnixNano;else q.startTimeUnixNano=X.longs===String?B.Long.prototype.toString.call(Z.startTimeUnixNano):X.longs===Number?new B.LongBits(Z.startTimeUnixNano.low>>>0,Z.startTimeUnixNano.high>>>0).toNumber():Z.startTimeUnixNano;if(Z.timeUnixNano!=null&&Z.hasOwnProperty("timeUnixNano"))if(typeof Z.timeUnixNano==="number")q.timeUnixNano=X.longs===String?String(Z.timeUnixNano):Z.timeUnixNano;else q.timeUnixNano=X.longs===String?B.Long.prototype.toString.call(Z.timeUnixNano):X.longs===Number?new B.LongBits(Z.timeUnixNano.low>>>0,Z.timeUnixNano.high>>>0).toNumber():Z.timeUnixNano;if(Z.asDouble!=null&&Z.hasOwnProperty("asDouble")){if(q.asDouble=X.json&&!isFinite(Z.asDouble)?String(Z.asDouble):Z.asDouble,X.oneofs)q.value="asDouble"}if(Z.exemplars&&Z.exemplars.length){q.exemplars=[];for(var H=0;H<Z.exemplars.length;++H)q.exemplars[H]=O.opentelemetry.proto.metrics.v1.Exemplar.toObject(Z.exemplars[H],X)}if(Z.asInt!=null&&Z.hasOwnProperty("asInt")){if(typeof Z.asInt==="number")q.asInt=X.longs===String?String(Z.asInt):Z.asInt;else q.asInt=X.longs===String?B.Long.prototype.toString.call(Z.asInt):X.longs===Number?new B.LongBits(Z.asInt.low>>>0,Z.asInt.high>>>0).toNumber():Z.asInt;if(X.oneofs)q.value="asInt"}if(Z.attributes&&Z.attributes.length){q.attributes=[];for(var H=0;H<Z.attributes.length;++H)q.attributes[H]=O.opentelemetry.proto.common.v1.KeyValue.toObject(Z.attributes[H],X)}if(Z.flags!=null&&Z.hasOwnProperty("flags"))q.flags=Z.flags;return q},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(Z){if(Z===void 0)Z="type.googleapis.com";return Z+"/opentelemetry.proto.metrics.v1.NumberDataPoint"},z}(),K.HistogramDataPoint=function(){function z(J){if(this.attributes=[],this.bucketCounts=[],this.explicitBounds=[],this.exemplars=[],J){for(var Z=Object.keys(J),X=0;X<Z.length;++X)if(J[Z[X]]!=null)this[Z[X]]=J[Z[X]]}}z.prototype.attributes=B.emptyArray,z.prototype.startTimeUnixNano=null,z.prototype.timeUnixNano=null,z.prototype.count=null,z.prototype.sum=null,z.prototype.bucketCounts=B.emptyArray,z.prototype.explicitBounds=B.emptyArray,z.prototype.exemplars=B.emptyArray,z.prototype.flags=null,z.prototype.min=null,z.prototype.max=null;var W;return Object.defineProperty(z.prototype,"_sum",{get:B.oneOfGetter(W=["sum"]),set:B.oneOfSetter(W)}),Object.defineProperty(z.prototype,"_min",{get:B.oneOfGetter(W=["min"]),set:B.oneOfSetter(W)}),Object.defineProperty(z.prototype,"_max",{get:B.oneOfGetter(W=["max"]),set:B.oneOfSetter(W)}),z.create=function(Z){return new z(Z)},z.encode=function(Z,X){if(!X)X=w.create();if(Z.startTimeUnixNano!=null&&Object.hasOwnProperty.call(Z,"startTimeUnixNano"))X.uint32(17).fixed64(Z.startTimeUnixNano);if(Z.timeUnixNano!=null&&Object.hasOwnProperty.call(Z,"timeUnixNano"))X.uint32(25).fixed64(Z.timeUnixNano);if(Z.count!=null&&Object.hasOwnProperty.call(Z,"count"))X.uint32(33).fixed64(Z.count);if(Z.sum!=null&&Object.hasOwnProperty.call(Z,"sum"))X.uint32(41).double(Z.sum);if(Z.bucketCounts!=null&&Z.bucketCounts.length){X.uint32(50).fork();for(var q=0;q<Z.bucketCounts.length;++q)X.fixed64(Z.bucketCounts[q]);X.ldelim()}if(Z.explicitBounds!=null&&Z.explicitBounds.length){X.uint32(58).fork();for(var q=0;q<Z.explicitBounds.length;++q)X.double(Z.explicitBounds[q]);X.ldelim()}if(Z.exemplars!=null&&Z.exemplars.length)for(var q=0;q<Z.exemplars.length;++q)O.opentelemetry.proto.metrics.v1.Exemplar.encode(Z.exemplars[q],X.uint32(66).fork()).ldelim();if(Z.attributes!=null&&Z.attributes.length)for(var q=0;q<Z.attributes.length;++q)O.opentelemetry.proto.common.v1.KeyValue.encode(Z.attributes[q],X.uint32(74).fork()).ldelim();if(Z.flags!=null&&Object.hasOwnProperty.call(Z,"flags"))X.uint32(80).uint32(Z.flags);if(Z.min!=null&&Object.hasOwnProperty.call(Z,"min"))X.uint32(89).double(Z.min);if(Z.max!=null&&Object.hasOwnProperty.call(Z,"max"))X.uint32(97).double(Z.max);return X},z.encodeDelimited=function(Z,X){return this.encode(Z,X).ldelim()},z.decode=function(Z,X,q){if(!(Z instanceof I))Z=I.create(Z);var F=X===void 0?Z.len:Z.pos+X,H=new O.opentelemetry.proto.metrics.v1.HistogramDataPoint;while(Z.pos<F){var N=Z.uint32();if(N===q)break;switch(N>>>3){case 9:{if(!(H.attributes&&H.attributes.length))H.attributes=[];H.attributes.push(O.opentelemetry.proto.common.v1.KeyValue.decode(Z,Z.uint32()));break}case 2:{H.startTimeUnixNano=Z.fixed64();break}case 3:{H.timeUnixNano=Z.fixed64();break}case 4:{H.count=Z.fixed64();break}case 5:{H.sum=Z.double();break}case 6:{if(!(H.bucketCounts&&H.bucketCounts.length))H.bucketCounts=[];if((N&7)===2){var C=Z.uint32()+Z.pos;while(Z.pos<C)H.bucketCounts.push(Z.fixed64())}else H.bucketCounts.push(Z.fixed64());break}case 7:{if(!(H.explicitBounds&&H.explicitBounds.length))H.explicitBounds=[];if((N&7)===2){var C=Z.uint32()+Z.pos;while(Z.pos<C)H.explicitBounds.push(Z.double())}else H.explicitBounds.push(Z.double());break}case 8:{if(!(H.exemplars&&H.exemplars.length))H.exemplars=[];H.exemplars.push(O.opentelemetry.proto.metrics.v1.Exemplar.decode(Z,Z.uint32()));break}case 10:{H.flags=Z.uint32();break}case 11:{H.min=Z.double();break}case 12:{H.max=Z.double();break}default:Z.skipType(N&7);break}}return H},z.decodeDelimited=function(Z){if(!(Z instanceof I))Z=new I(Z);return this.decode(Z,Z.uint32())},z.verify=function(Z){if(typeof Z!=="object"||Z===null)return"object expected";var X={};if(Z.attributes!=null&&Z.hasOwnProperty("attributes")){if(!Array.isArray(Z.attributes))return"attributes: array expected";for(var q=0;q<Z.attributes.length;++q){var F=O.opentelemetry.proto.common.v1.KeyValue.verify(Z.attributes[q]);if(F)return"attributes."+F}}if(Z.startTimeUnixNano!=null&&Z.hasOwnProperty("startTimeUnixNano")){if(!B.isInteger(Z.startTimeUnixNano)&&!(Z.startTimeUnixNano&&B.isInteger(Z.startTimeUnixNano.low)&&B.isInteger(Z.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected"}if(Z.timeUnixNano!=null&&Z.hasOwnProperty("timeUnixNano")){if(!B.isInteger(Z.timeUnixNano)&&!(Z.timeUnixNano&&B.isInteger(Z.timeUnixNano.low)&&B.isInteger(Z.timeUnixNano.high)))return"timeUnixNano: integer|Long expected"}if(Z.count!=null&&Z.hasOwnProperty("count")){if(!B.isInteger(Z.count)&&!(Z.count&&B.isInteger(Z.count.low)&&B.isInteger(Z.count.high)))return"count: integer|Long expected"}if(Z.sum!=null&&Z.hasOwnProperty("sum")){if(X._sum=1,typeof Z.sum!=="number")return"sum: number expected"}if(Z.bucketCounts!=null&&Z.hasOwnProperty("bucketCounts")){if(!Array.isArray(Z.bucketCounts))return"bucketCounts: array expected";for(var q=0;q<Z.bucketCounts.length;++q)if(!B.isInteger(Z.bucketCounts[q])&&!(Z.bucketCounts[q]&&B.isInteger(Z.bucketCounts[q].low)&&B.isInteger(Z.bucketCounts[q].high)))return"bucketCounts: integer|Long[] expected"}if(Z.explicitBounds!=null&&Z.hasOwnProperty("explicitBounds")){if(!Array.isArray(Z.explicitBounds))return"explicitBounds: array expected";for(var q=0;q<Z.explicitBounds.length;++q)if(typeof Z.explicitBounds[q]!=="number")return"explicitBounds: number[] expected"}if(Z.exemplars!=null&&Z.hasOwnProperty("exemplars")){if(!Array.isArray(Z.exemplars))return"exemplars: array expected";for(var q=0;q<Z.exemplars.length;++q){var F=O.opentelemetry.proto.metrics.v1.Exemplar.verify(Z.exemplars[q]);if(F)return"exemplars."+F}}if(Z.flags!=null&&Z.hasOwnProperty("flags")){if(!B.isInteger(Z.flags))return"flags: integer expected"}if(Z.min!=null&&Z.hasOwnProperty("min")){if(X._min=1,typeof Z.min!=="number")return"min: number expected"}if(Z.max!=null&&Z.hasOwnProperty("max")){if(X._max=1,typeof Z.max!=="number")return"max: number expected"}return null},z.fromObject=function(Z){if(Z instanceof O.opentelemetry.proto.metrics.v1.HistogramDataPoint)return Z;var X=new O.opentelemetry.proto.metrics.v1.HistogramDataPoint;if(Z.attributes){if(!Array.isArray(Z.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: array expected");X.attributes=[];for(var q=0;q<Z.attributes.length;++q){if(typeof Z.attributes[q]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: object expected");X.attributes[q]=O.opentelemetry.proto.common.v1.KeyValue.fromObject(Z.attributes[q])}}if(Z.startTimeUnixNano!=null){if(B.Long)(X.startTimeUnixNano=B.Long.fromValue(Z.startTimeUnixNano)).unsigned=!1;else if(typeof Z.startTimeUnixNano==="string")X.startTimeUnixNano=parseInt(Z.startTimeUnixNano,10);else if(typeof Z.startTimeUnixNano==="number")X.startTimeUnixNano=Z.startTimeUnixNano;else if(typeof Z.startTimeUnixNano==="object")X.startTimeUnixNano=new B.LongBits(Z.startTimeUnixNano.low>>>0,Z.startTimeUnixNano.high>>>0).toNumber()}if(Z.timeUnixNano!=null){if(B.Long)(X.timeUnixNano=B.Long.fromValue(Z.timeUnixNano)).unsigned=!1;else if(typeof Z.timeUnixNano==="string")X.timeUnixNano=parseInt(Z.timeUnixNano,10);else if(typeof Z.timeUnixNano==="number")X.timeUnixNano=Z.timeUnixNano;else if(typeof Z.timeUnixNano==="object")X.timeUnixNano=new B.LongBits(Z.timeUnixNano.low>>>0,Z.timeUnixNano.high>>>0).toNumber()}if(Z.count!=null){if(B.Long)(X.count=B.Long.fromValue(Z.count)).unsigned=!1;else if(typeof Z.count==="string")X.count=parseInt(Z.count,10);else if(typeof Z.count==="number")X.count=Z.count;else if(typeof Z.count==="object")X.count=new B.LongBits(Z.count.low>>>0,Z.count.high>>>0).toNumber()}if(Z.sum!=null)X.sum=Number(Z.sum);if(Z.bucketCounts){if(!Array.isArray(Z.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.bucketCounts: array expected");X.bucketCounts=[];for(var q=0;q<Z.bucketCounts.length;++q)if(B.Long)(X.bucketCounts[q]=B.Long.fromValue(Z.bucketCounts[q])).unsigned=!1;else if(typeof Z.bucketCounts[q]==="string")X.bucketCounts[q]=parseInt(Z.bucketCounts[q],10);else if(typeof Z.bucketCounts[q]==="number")X.bucketCounts[q]=Z.bucketCounts[q];else if(typeof Z.bucketCounts[q]==="object")X.bucketCounts[q]=new B.LongBits(Z.bucketCounts[q].low>>>0,Z.bucketCounts[q].high>>>0).toNumber()}if(Z.explicitBounds){if(!Array.isArray(Z.explicitBounds))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.explicitBounds: array expected");X.explicitBounds=[];for(var q=0;q<Z.explicitBounds.length;++q)X.explicitBounds[q]=Number(Z.explicitBounds[q])}if(Z.exemplars){if(!Array.isArray(Z.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: array expected");X.exemplars=[];for(var q=0;q<Z.exemplars.length;++q){if(typeof Z.exemplars[q]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: object expected");X.exemplars[q]=O.opentelemetry.proto.metrics.v1.Exemplar.fromObject(Z.exemplars[q])}}if(Z.flags!=null)X.flags=Z.flags>>>0;if(Z.min!=null)X.min=Number(Z.min);if(Z.max!=null)X.max=Number(Z.max);return X},z.toObject=function(Z,X){if(!X)X={};var q={};if(X.arrays||X.defaults)q.bucketCounts=[],q.explicitBounds=[],q.exemplars=[],q.attributes=[];if(X.defaults){if(B.Long){var F=new B.Long(0,0,!1);q.startTimeUnixNano=X.longs===String?F.toString():X.longs===Number?F.toNumber():F}else q.startTimeUnixNano=X.longs===String?"0":0;if(B.Long){var F=new B.Long(0,0,!1);q.timeUnixNano=X.longs===String?F.toString():X.longs===Number?F.toNumber():F}else q.timeUnixNano=X.longs===String?"0":0;if(B.Long){var F=new B.Long(0,0,!1);q.count=X.longs===String?F.toString():X.longs===Number?F.toNumber():F}else q.count=X.longs===String?"0":0;q.flags=0}if(Z.startTimeUnixNano!=null&&Z.hasOwnProperty("startTimeUnixNano"))if(typeof Z.startTimeUnixNano==="number")q.startTimeUnixNano=X.longs===String?String(Z.startTimeUnixNano):Z.startTimeUnixNano;else q.startTimeUnixNano=X.longs===String?B.Long.prototype.toString.call(Z.startTimeUnixNano):X.longs===Number?new B.LongBits(Z.startTimeUnixNano.low>>>0,Z.startTimeUnixNano.high>>>0).toNumber():Z.startTimeUnixNano;if(Z.timeUnixNano!=null&&Z.hasOwnProperty("timeUnixNano"))if(typeof Z.timeUnixNano==="number")q.timeUnixNano=X.longs===String?String(Z.timeUnixNano):Z.timeUnixNano;else q.timeUnixNano=X.longs===String?B.Long.prototype.toString.call(Z.timeUnixNano):X.longs===Number?new B.LongBits(Z.timeUnixNano.low>>>0,Z.timeUnixNano.high>>>0).toNumber():Z.timeUnixNano;if(Z.count!=null&&Z.hasOwnProperty("count"))if(typeof Z.count==="number")q.count=X.longs===String?String(Z.count):Z.count;else q.count=X.longs===String?B.Long.prototype.toString.call(Z.count):X.longs===Number?new B.LongBits(Z.count.low>>>0,Z.count.high>>>0).toNumber():Z.count;if(Z.sum!=null&&Z.hasOwnProperty("sum")){if(q.sum=X.json&&!isFinite(Z.sum)?String(Z.sum):Z.sum,X.oneofs)q._sum="sum"}if(Z.bucketCounts&&Z.bucketCounts.length){q.bucketCounts=[];for(var H=0;H<Z.bucketCounts.length;++H)if(typeof Z.bucketCounts[H]==="number")q.bucketCounts[H]=X.longs===String?String(Z.bucketCounts[H]):Z.bucketCounts[H];else q.bucketCounts[H]=X.longs===String?B.Long.prototype.toString.call(Z.bucketCounts[H]):X.longs===Number?new B.LongBits(Z.bucketCounts[H].low>>>0,Z.bucketCounts[H].high>>>0).toNumber():Z.bucketCounts[H]}if(Z.explicitBounds&&Z.explicitBounds.length){q.explicitBounds=[];for(var H=0;H<Z.explicitBounds.length;++H)q.explicitBounds[H]=X.json&&!isFinite(Z.explicitBounds[H])?String(Z.explicitBounds[H]):Z.explicitBounds[H]}if(Z.exemplars&&Z.exemplars.length){q.exemplars=[];for(var H=0;H<Z.exemplars.length;++H)q.exemplars[H]=O.opentelemetry.proto.metrics.v1.Exemplar.toObject(Z.exemplars[H],X)}if(Z.attributes&&Z.attributes.length){q.attributes=[];for(var H=0;H<Z.attributes.length;++H)q.attributes[H]=O.opentelemetry.proto.common.v1.KeyValue.toObject(Z.attributes[H],X)}if(Z.flags!=null&&Z.hasOwnProperty("flags"))q.flags=Z.flags;if(Z.min!=null&&Z.hasOwnProperty("min")){if(q.min=X.json&&!isFinite(Z.min)?String(Z.min):Z.min,X.oneofs)q._min="min"}if(Z.max!=null&&Z.hasOwnProperty("max")){if(q.max=X.json&&!isFinite(Z.max)?String(Z.max):Z.max,X.oneofs)q._max="max"}return q},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(Z){if(Z===void 0)Z="type.googleapis.com";return Z+"/opentelemetry.proto.metrics.v1.HistogramDataPoint"},z}(),K.ExponentialHistogramDataPoint=function(){function z(J){if(this.attributes=[],this.exemplars=[],J){for(var Z=Object.keys(J),X=0;X<Z.length;++X)if(J[Z[X]]!=null)this[Z[X]]=J[Z[X]]}}z.prototype.attributes=B.emptyArray,z.prototype.startTimeUnixNano=null,z.prototype.timeUnixNano=null,z.prototype.count=null,z.prototype.sum=null,z.prototype.scale=null,z.prototype.zeroCount=null,z.prototype.positive=null,z.prototype.negative=null,z.prototype.flags=null,z.prototype.exemplars=B.emptyArray,z.prototype.min=null,z.prototype.max=null,z.prototype.zeroThreshold=null;var W;return Object.defineProperty(z.prototype,"_sum",{get:B.oneOfGetter(W=["sum"]),set:B.oneOfSetter(W)}),Object.defineProperty(z.prototype,"_min",{get:B.oneOfGetter(W=["min"]),set:B.oneOfSetter(W)}),Object.defineProperty(z.prototype,"_max",{get:B.oneOfGetter(W=["max"]),set:B.oneOfSetter(W)}),z.create=function(Z){return new z(Z)},z.encode=function(Z,X){if(!X)X=w.create();if(Z.attributes!=null&&Z.attributes.length)for(var q=0;q<Z.attributes.length;++q)O.opentelemetry.proto.common.v1.KeyValue.encode(Z.attributes[q],X.uint32(10).fork()).ldelim();if(Z.startTimeUnixNano!=null&&Object.hasOwnProperty.call(Z,"startTimeUnixNano"))X.uint32(17).fixed64(Z.startTimeUnixNano);if(Z.timeUnixNano!=null&&Object.hasOwnProperty.call(Z,"timeUnixNano"))X.uint32(25).fixed64(Z.timeUnixNano);if(Z.count!=null&&Object.hasOwnProperty.call(Z,"count"))X.uint32(33).fixed64(Z.count);if(Z.sum!=null&&Object.hasOwnProperty.call(Z,"sum"))X.uint32(41).double(Z.sum);if(Z.scale!=null&&Object.hasOwnProperty.call(Z,"scale"))X.uint32(48).sint32(Z.scale);if(Z.zeroCount!=null&&Object.hasOwnProperty.call(Z,"zeroCount"))X.uint32(57).fixed64(Z.zeroCount);if(Z.positive!=null&&Object.hasOwnProperty.call(Z,"positive"))O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(Z.positive,X.uint32(66).fork()).ldelim();if(Z.negative!=null&&Object.hasOwnProperty.call(Z,"negative"))O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(Z.negative,X.uint32(74).fork()).ldelim();if(Z.flags!=null&&Object.hasOwnProperty.call(Z,"flags"))X.uint32(80).uint32(Z.flags);if(Z.exemplars!=null&&Z.exemplars.length)for(var q=0;q<Z.exemplars.length;++q)O.opentelemetry.proto.metrics.v1.Exemplar.encode(Z.exemplars[q],X.uint32(90).fork()).ldelim();if(Z.min!=null&&Object.hasOwnProperty.call(Z,"min"))X.uint32(97).double(Z.min);if(Z.max!=null&&Object.hasOwnProperty.call(Z,"max"))X.uint32(105).double(Z.max);if(Z.zeroThreshold!=null&&Object.hasOwnProperty.call(Z,"zeroThreshold"))X.uint32(113).double(Z.zeroThreshold);return X},z.encodeDelimited=function(Z,X){return this.encode(Z,X).ldelim()},z.decode=function(Z,X,q){if(!(Z instanceof I))Z=I.create(Z);var F=X===void 0?Z.len:Z.pos+X,H=new O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;while(Z.pos<F){var N=Z.uint32();if(N===q)break;switch(N>>>3){case 1:{if(!(H.attributes&&H.attributes.length))H.attributes=[];H.attributes.push(O.opentelemetry.proto.common.v1.KeyValue.decode(Z,Z.uint32()));break}case 2:{H.startTimeUnixNano=Z.fixed64();break}case 3:{H.timeUnixNano=Z.fixed64();break}case 4:{H.count=Z.fixed64();break}case 5:{H.sum=Z.double();break}case 6:{H.scale=Z.sint32();break}case 7:{H.zeroCount=Z.fixed64();break}case 8:{H.positive=O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(Z,Z.uint32());break}case 9:{H.negative=O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(Z,Z.uint32());break}case 10:{H.flags=Z.uint32();break}case 11:{if(!(H.exemplars&&H.exemplars.length))H.exemplars=[];H.exemplars.push(O.opentelemetry.proto.metrics.v1.Exemplar.decode(Z,Z.uint32()));break}case 12:{H.min=Z.double();break}case 13:{H.max=Z.double();break}case 14:{H.zeroThreshold=Z.double();break}default:Z.skipType(N&7);break}}return H},z.decodeDelimited=function(Z){if(!(Z instanceof I))Z=new I(Z);return this.decode(Z,Z.uint32())},z.verify=function(Z){if(typeof Z!=="object"||Z===null)return"object expected";var X={};if(Z.attributes!=null&&Z.hasOwnProperty("attributes")){if(!Array.isArray(Z.attributes))return"attributes: array expected";for(var q=0;q<Z.attributes.length;++q){var F=O.opentelemetry.proto.common.v1.KeyValue.verify(Z.attributes[q]);if(F)return"attributes."+F}}if(Z.startTimeUnixNano!=null&&Z.hasOwnProperty("startTimeUnixNano")){if(!B.isInteger(Z.startTimeUnixNano)&&!(Z.startTimeUnixNano&&B.isInteger(Z.startTimeUnixNano.low)&&B.isInteger(Z.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected"}if(Z.timeUnixNano!=null&&Z.hasOwnProperty("timeUnixNano")){if(!B.isInteger(Z.timeUnixNano)&&!(Z.timeUnixNano&&B.isInteger(Z.timeUnixNano.low)&&B.isInteger(Z.timeUnixNano.high)))return"timeUnixNano: integer|Long expected"}if(Z.count!=null&&Z.hasOwnProperty("count")){if(!B.isInteger(Z.count)&&!(Z.count&&B.isInteger(Z.count.low)&&B.isInteger(Z.count.high)))return"count: integer|Long expected"}if(Z.sum!=null&&Z.hasOwnProperty("sum")){if(X._sum=1,typeof Z.sum!=="number")return"sum: number expected"}if(Z.scale!=null&&Z.hasOwnProperty("scale")){if(!B.isInteger(Z.scale))return"scale: integer expected"}if(Z.zeroCount!=null&&Z.hasOwnProperty("zeroCount")){if(!B.isInteger(Z.zeroCount)&&!(Z.zeroCount&&B.isInteger(Z.zeroCount.low)&&B.isInteger(Z.zeroCount.high)))return"zeroCount: integer|Long expected"}if(Z.positive!=null&&Z.hasOwnProperty("positive")){var F=O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(Z.positive);if(F)return"positive."+F}if(Z.negative!=null&&Z.hasOwnProperty("negative")){var F=O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(Z.negative);if(F)return"negative."+F}if(Z.flags!=null&&Z.hasOwnProperty("flags")){if(!B.isInteger(Z.flags))return"flags: integer expected"}if(Z.exemplars!=null&&Z.hasOwnProperty("exemplars")){if(!Array.isArray(Z.exemplars))return"exemplars: array expected";for(var q=0;q<Z.exemplars.length;++q){var F=O.opentelemetry.proto.metrics.v1.Exemplar.verify(Z.exemplars[q]);if(F)return"exemplars."+F}}if(Z.min!=null&&Z.hasOwnProperty("min")){if(X._min=1,typeof Z.min!=="number")return"min: number expected"}if(Z.max!=null&&Z.hasOwnProperty("max")){if(X._max=1,typeof Z.max!=="number")return"max: number expected"}if(Z.zeroThreshold!=null&&Z.hasOwnProperty("zeroThreshold")){if(typeof Z.zeroThreshold!=="number")return"zeroThreshold: number expected"}return null},z.fromObject=function(Z){if(Z instanceof O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint)return Z;var X=new O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;if(Z.attributes){if(!Array.isArray(Z.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: array expected");X.attributes=[];for(var q=0;q<Z.attributes.length;++q){if(typeof Z.attributes[q]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: object expected");X.attributes[q]=O.opentelemetry.proto.common.v1.KeyValue.fromObject(Z.attributes[q])}}if(Z.startTimeUnixNano!=null){if(B.Long)(X.startTimeUnixNano=B.Long.fromValue(Z.startTimeUnixNano)).unsigned=!1;else if(typeof Z.startTimeUnixNano==="string")X.startTimeUnixNano=parseInt(Z.startTimeUnixNano,10);else if(typeof Z.startTimeUnixNano==="number")X.startTimeUnixNano=Z.startTimeUnixNano;else if(typeof Z.startTimeUnixNano==="object")X.startTimeUnixNano=new B.LongBits(Z.startTimeUnixNano.low>>>0,Z.startTimeUnixNano.high>>>0).toNumber()}if(Z.timeUnixNano!=null){if(B.Long)(X.timeUnixNano=B.Long.fromValue(Z.timeUnixNano)).unsigned=!1;else if(typeof Z.timeUnixNano==="string")X.timeUnixNano=parseInt(Z.timeUnixNano,10);else if(typeof Z.timeUnixNano==="number")X.timeUnixNano=Z.timeUnixNano;else if(typeof Z.timeUnixNano==="object")X.timeUnixNano=new B.LongBits(Z.timeUnixNano.low>>>0,Z.timeUnixNano.high>>>0).toNumber()}if(Z.count!=null){if(B.Long)(X.count=B.Long.fromValue(Z.count)).unsigned=!1;else if(typeof Z.count==="string")X.count=parseInt(Z.count,10);else if(typeof Z.count==="number")X.count=Z.count;else if(typeof Z.count==="object")X.count=new B.LongBits(Z.count.low>>>0,Z.count.high>>>0).toNumber()}if(Z.sum!=null)X.sum=Number(Z.sum);if(Z.scale!=null)X.scale=Z.scale|0;if(Z.zeroCount!=null){if(B.Long)(X.zeroCount=B.Long.fromValue(Z.zeroCount)).unsigned=!1;else if(typeof Z.zeroCount==="string")X.zeroCount=parseInt(Z.zeroCount,10);else if(typeof Z.zeroCount==="number")X.zeroCount=Z.zeroCount;else if(typeof Z.zeroCount==="object")X.zeroCount=new B.LongBits(Z.zeroCount.low>>>0,Z.zeroCount.high>>>0).toNumber()}if(Z.positive!=null){if(typeof Z.positive!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.positive: object expected");X.positive=O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(Z.positive)}if(Z.negative!=null){if(typeof Z.negative!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.negative: object expected");X.negative=O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(Z.negative)}if(Z.flags!=null)X.flags=Z.flags>>>0;if(Z.exemplars){if(!Array.isArray(Z.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: array expected");X.exemplars=[];for(var q=0;q<Z.exemplars.length;++q){if(typeof Z.exemplars[q]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: object expected");X.exemplars[q]=O.opentelemetry.proto.metrics.v1.Exemplar.fromObject(Z.exemplars[q])}}if(Z.min!=null)X.min=Number(Z.min);if(Z.max!=null)X.max=Number(Z.max);if(Z.zeroThreshold!=null)X.zeroThreshold=Number(Z.zeroThreshold);return X},z.toObject=function(Z,X){if(!X)X={};var q={};if(X.arrays||X.defaults)q.attributes=[],q.exemplars=[];if(X.defaults){if(B.Long){var F=new B.Long(0,0,!1);q.startTimeUnixNano=X.longs===String?F.toString():X.longs===Number?F.toNumber():F}else q.startTimeUnixNano=X.longs===String?"0":0;if(B.Long){var F=new B.Long(0,0,!1);q.timeUnixNano=X.longs===String?F.toString():X.longs===Number?F.toNumber():F}else q.timeUnixNano=X.longs===String?"0":0;if(B.Long){var F=new B.Long(0,0,!1);q.count=X.longs===String?F.toString():X.longs===Number?F.toNumber():F}else q.count=X.longs===String?"0":0;if(q.scale=0,B.Long){var F=new B.Long(0,0,!1);q.zeroCount=X.longs===String?F.toString():X.longs===Number?F.toNumber():F}else q.zeroCount=X.longs===String?"0":0;q.positive=null,q.negative=null,q.flags=0,q.zeroThreshold=0}if(Z.attributes&&Z.attributes.length){q.attributes=[];for(var H=0;H<Z.attributes.length;++H)q.attributes[H]=O.opentelemetry.proto.common.v1.KeyValue.toObject(Z.attributes[H],X)}if(Z.startTimeUnixNano!=null&&Z.hasOwnProperty("startTimeUnixNano"))if(typeof Z.startTimeUnixNano==="number")q.startTimeUnixNano=X.longs===String?String(Z.startTimeUnixNano):Z.startTimeUnixNano;else q.startTimeUnixNano=X.longs===String?B.Long.prototype.toString.call(Z.startTimeUnixNano):X.longs===Number?new B.LongBits(Z.startTimeUnixNano.low>>>0,Z.startTimeUnixNano.high>>>0).toNumber():Z.startTimeUnixNano;if(Z.timeUnixNano!=null&&Z.hasOwnProperty("timeUnixNano"))if(typeof Z.timeUnixNano==="number")q.timeUnixNano=X.longs===String?String(Z.timeUnixNano):Z.timeUnixNano;else q.timeUnixNano=X.longs===String?B.Long.prototype.toString.call(Z.timeUnixNano):X.longs===Number?new B.LongBits(Z.timeUnixNano.low>>>0,Z.timeUnixNano.high>>>0).toNumber():Z.timeUnixNano;if(Z.count!=null&&Z.hasOwnProperty("count"))if(typeof Z.count==="number")q.count=X.longs===String?String(Z.count):Z.count;else q.count=X.longs===String?B.Long.prototype.toString.call(Z.count):X.longs===Number?new B.LongBits(Z.count.low>>>0,Z.count.high>>>0).toNumber():Z.count;if(Z.sum!=null&&Z.hasOwnProperty("sum")){if(q.sum=X.json&&!isFinite(Z.sum)?String(Z.sum):Z.sum,X.oneofs)q._sum="sum"}if(Z.scale!=null&&Z.hasOwnProperty("scale"))q.scale=Z.scale;if(Z.zeroCount!=null&&Z.hasOwnProperty("zeroCount"))if(typeof Z.zeroCount==="number")q.zeroCount=X.longs===String?String(Z.zeroCount):Z.zeroCount;else q.zeroCount=X.longs===String?B.Long.prototype.toString.call(Z.zeroCount):X.longs===Number?new B.LongBits(Z.zeroCount.low>>>0,Z.zeroCount.high>>>0).toNumber():Z.zeroCount;if(Z.positive!=null&&Z.hasOwnProperty("positive"))q.positive=O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(Z.positive,X);if(Z.negative!=null&&Z.hasOwnProperty("negative"))q.negative=O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(Z.negative,X);if(Z.flags!=null&&Z.hasOwnProperty("flags"))q.flags=Z.flags;if(Z.exemplars&&Z.exemplars.length){q.exemplars=[];for(var H=0;H<Z.exemplars.length;++H)q.exemplars[H]=O.opentelemetry.proto.metrics.v1.Exemplar.toObject(Z.exemplars[H],X)}if(Z.min!=null&&Z.hasOwnProperty("min")){if(q.min=X.json&&!isFinite(Z.min)?String(Z.min):Z.min,X.oneofs)q._min="min"}if(Z.max!=null&&Z.hasOwnProperty("max")){if(q.max=X.json&&!isFinite(Z.max)?String(Z.max):Z.max,X.oneofs)q._max="max"}if(Z.zeroThreshold!=null&&Z.hasOwnProperty("zeroThreshold"))q.zeroThreshold=X.json&&!isFinite(Z.zeroThreshold)?String(Z.zeroThreshold):Z.zeroThreshold;return q},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(Z){if(Z===void 0)Z="type.googleapis.com";return Z+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint"},z.Buckets=function(){function J(Z){if(this.bucketCounts=[],Z){for(var X=Object.keys(Z),q=0;q<X.length;++q)if(Z[X[q]]!=null)this[X[q]]=Z[X[q]]}}return J.prototype.offset=null,J.prototype.bucketCounts=B.emptyArray,J.create=function(X){return new J(X)},J.encode=function(X,q){if(!q)q=w.create();if(X.offset!=null&&Object.hasOwnProperty.call(X,"offset"))q.uint32(8).sint32(X.offset);if(X.bucketCounts!=null&&X.bucketCounts.length){q.uint32(18).fork();for(var F=0;F<X.bucketCounts.length;++F)q.uint64(X.bucketCounts[F]);q.ldelim()}return q},J.encodeDelimited=function(X,q){return this.encode(X,q).ldelim()},J.decode=function(X,q,F){if(!(X instanceof I))X=I.create(X);var H=q===void 0?X.len:X.pos+q,N=new O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;while(X.pos<H){var C=X.uint32();if(C===F)break;switch(C>>>3){case 1:{N.offset=X.sint32();break}case 2:{if(!(N.bucketCounts&&N.bucketCounts.length))N.bucketCounts=[];if((C&7)===2){var U=X.uint32()+X.pos;while(X.pos<U)N.bucketCounts.push(X.uint64())}else N.bucketCounts.push(X.uint64());break}default:X.skipType(C&7);break}}return N},J.decodeDelimited=function(X){if(!(X instanceof I))X=new I(X);return this.decode(X,X.uint32())},J.verify=function(X){if(typeof X!=="object"||X===null)return"object expected";if(X.offset!=null&&X.hasOwnProperty("offset")){if(!B.isInteger(X.offset))return"offset: integer expected"}if(X.bucketCounts!=null&&X.hasOwnProperty("bucketCounts")){if(!Array.isArray(X.bucketCounts))return"bucketCounts: array expected";for(var q=0;q<X.bucketCounts.length;++q)if(!B.isInteger(X.bucketCounts[q])&&!(X.bucketCounts[q]&&B.isInteger(X.bucketCounts[q].low)&&B.isInteger(X.bucketCounts[q].high)))return"bucketCounts: integer|Long[] expected"}return null},J.fromObject=function(X){if(X instanceof O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets)return X;var q=new O.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;if(X.offset!=null)q.offset=X.offset|0;if(X.bucketCounts){if(!Array.isArray(X.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.bucketCounts: array expected");q.bucketCounts=[];for(var F=0;F<X.bucketCounts.length;++F)if(B.Long)(q.bucketCounts[F]=B.Long.fromValue(X.bucketCounts[F])).unsigned=!0;else if(typeof X.bucketCounts[F]==="string")q.bucketCounts[F]=parseInt(X.bucketCounts[F],10);else if(typeof X.bucketCounts[F]==="number")q.bucketCounts[F]=X.bucketCounts[F];else if(typeof X.bucketCounts[F]==="object")q.bucketCounts[F]=new B.LongBits(X.bucketCounts[F].low>>>0,X.bucketCounts[F].high>>>0).toNumber(!0)}return q},J.toObject=function(X,q){if(!q)q={};var F={};if(q.arrays||q.defaults)F.bucketCounts=[];if(q.defaults)F.offset=0;if(X.offset!=null&&X.hasOwnProperty("offset"))F.offset=X.offset;if(X.bucketCounts&&X.bucketCounts.length){F.bucketCounts=[];for(var H=0;H<X.bucketCounts.length;++H)if(typeof X.bucketCounts[H]==="number")F.bucketCounts[H]=q.longs===String?String(X.bucketCounts[H]):X.bucketCounts[H];else F.bucketCounts[H]=q.longs===String?B.Long.prototype.toString.call(X.bucketCounts[H]):q.longs===Number?new B.LongBits(X.bucketCounts[H].low>>>0,X.bucketCounts[H].high>>>0).toNumber(!0):X.bucketCounts[H]}return F},J.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},J.getTypeUrl=function(X){if(X===void 0)X="type.googleapis.com";return X+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets"},J}(),z}(),K.SummaryDataPoint=function(){function z(W){if(this.attributes=[],this.quantileValues=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.attributes=B.emptyArray,z.prototype.startTimeUnixNano=null,z.prototype.timeUnixNano=null,z.prototype.count=null,z.prototype.sum=null,z.prototype.quantileValues=B.emptyArray,z.prototype.flags=null,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.startTimeUnixNano!=null&&Object.hasOwnProperty.call(J,"startTimeUnixNano"))Z.uint32(17).fixed64(J.startTimeUnixNano);if(J.timeUnixNano!=null&&Object.hasOwnProperty.call(J,"timeUnixNano"))Z.uint32(25).fixed64(J.timeUnixNano);if(J.count!=null&&Object.hasOwnProperty.call(J,"count"))Z.uint32(33).fixed64(J.count);if(J.sum!=null&&Object.hasOwnProperty.call(J,"sum"))Z.uint32(41).double(J.sum);if(J.quantileValues!=null&&J.quantileValues.length)for(var X=0;X<J.quantileValues.length;++X)O.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.encode(J.quantileValues[X],Z.uint32(50).fork()).ldelim();if(J.attributes!=null&&J.attributes.length)for(var X=0;X<J.attributes.length;++X)O.opentelemetry.proto.common.v1.KeyValue.encode(J.attributes[X],Z.uint32(58).fork()).ldelim();if(J.flags!=null&&Object.hasOwnProperty.call(J,"flags"))Z.uint32(64).uint32(J.flags);return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.metrics.v1.SummaryDataPoint;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 7:{if(!(F.attributes&&F.attributes.length))F.attributes=[];F.attributes.push(O.opentelemetry.proto.common.v1.KeyValue.decode(J,J.uint32()));break}case 2:{F.startTimeUnixNano=J.fixed64();break}case 3:{F.timeUnixNano=J.fixed64();break}case 4:{F.count=J.fixed64();break}case 5:{F.sum=J.double();break}case 6:{if(!(F.quantileValues&&F.quantileValues.length))F.quantileValues=[];F.quantileValues.push(O.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.decode(J,J.uint32()));break}case 8:{F.flags=J.uint32();break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.attributes!=null&&J.hasOwnProperty("attributes")){if(!Array.isArray(J.attributes))return"attributes: array expected";for(var Z=0;Z<J.attributes.length;++Z){var X=O.opentelemetry.proto.common.v1.KeyValue.verify(J.attributes[Z]);if(X)return"attributes."+X}}if(J.startTimeUnixNano!=null&&J.hasOwnProperty("startTimeUnixNano")){if(!B.isInteger(J.startTimeUnixNano)&&!(J.startTimeUnixNano&&B.isInteger(J.startTimeUnixNano.low)&&B.isInteger(J.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected"}if(J.timeUnixNano!=null&&J.hasOwnProperty("timeUnixNano")){if(!B.isInteger(J.timeUnixNano)&&!(J.timeUnixNano&&B.isInteger(J.timeUnixNano.low)&&B.isInteger(J.timeUnixNano.high)))return"timeUnixNano: integer|Long expected"}if(J.count!=null&&J.hasOwnProperty("count")){if(!B.isInteger(J.count)&&!(J.count&&B.isInteger(J.count.low)&&B.isInteger(J.count.high)))return"count: integer|Long expected"}if(J.sum!=null&&J.hasOwnProperty("sum")){if(typeof J.sum!=="number")return"sum: number expected"}if(J.quantileValues!=null&&J.hasOwnProperty("quantileValues")){if(!Array.isArray(J.quantileValues))return"quantileValues: array expected";for(var Z=0;Z<J.quantileValues.length;++Z){var X=O.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.verify(J.quantileValues[Z]);if(X)return"quantileValues."+X}}if(J.flags!=null&&J.hasOwnProperty("flags")){if(!B.isInteger(J.flags))return"flags: integer expected"}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.metrics.v1.SummaryDataPoint)return J;var Z=new O.opentelemetry.proto.metrics.v1.SummaryDataPoint;if(J.attributes){if(!Array.isArray(J.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: array expected");Z.attributes=[];for(var X=0;X<J.attributes.length;++X){if(typeof J.attributes[X]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: object expected");Z.attributes[X]=O.opentelemetry.proto.common.v1.KeyValue.fromObject(J.attributes[X])}}if(J.startTimeUnixNano!=null){if(B.Long)(Z.startTimeUnixNano=B.Long.fromValue(J.startTimeUnixNano)).unsigned=!1;else if(typeof J.startTimeUnixNano==="string")Z.startTimeUnixNano=parseInt(J.startTimeUnixNano,10);else if(typeof J.startTimeUnixNano==="number")Z.startTimeUnixNano=J.startTimeUnixNano;else if(typeof J.startTimeUnixNano==="object")Z.startTimeUnixNano=new B.LongBits(J.startTimeUnixNano.low>>>0,J.startTimeUnixNano.high>>>0).toNumber()}if(J.timeUnixNano!=null){if(B.Long)(Z.timeUnixNano=B.Long.fromValue(J.timeUnixNano)).unsigned=!1;else if(typeof J.timeUnixNano==="string")Z.timeUnixNano=parseInt(J.timeUnixNano,10);else if(typeof J.timeUnixNano==="number")Z.timeUnixNano=J.timeUnixNano;else if(typeof J.timeUnixNano==="object")Z.timeUnixNano=new B.LongBits(J.timeUnixNano.low>>>0,J.timeUnixNano.high>>>0).toNumber()}if(J.count!=null){if(B.Long)(Z.count=B.Long.fromValue(J.count)).unsigned=!1;else if(typeof J.count==="string")Z.count=parseInt(J.count,10);else if(typeof J.count==="number")Z.count=J.count;else if(typeof J.count==="object")Z.count=new B.LongBits(J.count.low>>>0,J.count.high>>>0).toNumber()}if(J.sum!=null)Z.sum=Number(J.sum);if(J.quantileValues){if(!Array.isArray(J.quantileValues))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: array expected");Z.quantileValues=[];for(var X=0;X<J.quantileValues.length;++X){if(typeof J.quantileValues[X]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: object expected");Z.quantileValues[X]=O.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.fromObject(J.quantileValues[X])}}if(J.flags!=null)Z.flags=J.flags>>>0;return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.quantileValues=[],X.attributes=[];if(Z.defaults){if(B.Long){var q=new B.Long(0,0,!1);X.startTimeUnixNano=Z.longs===String?q.toString():Z.longs===Number?q.toNumber():q}else X.startTimeUnixNano=Z.longs===String?"0":0;if(B.Long){var q=new B.Long(0,0,!1);X.timeUnixNano=Z.longs===String?q.toString():Z.longs===Number?q.toNumber():q}else X.timeUnixNano=Z.longs===String?"0":0;if(B.Long){var q=new B.Long(0,0,!1);X.count=Z.longs===String?q.toString():Z.longs===Number?q.toNumber():q}else X.count=Z.longs===String?"0":0;X.sum=0,X.flags=0}if(J.startTimeUnixNano!=null&&J.hasOwnProperty("startTimeUnixNano"))if(typeof J.startTimeUnixNano==="number")X.startTimeUnixNano=Z.longs===String?String(J.startTimeUnixNano):J.startTimeUnixNano;else X.startTimeUnixNano=Z.longs===String?B.Long.prototype.toString.call(J.startTimeUnixNano):Z.longs===Number?new B.LongBits(J.startTimeUnixNano.low>>>0,J.startTimeUnixNano.high>>>0).toNumber():J.startTimeUnixNano;if(J.timeUnixNano!=null&&J.hasOwnProperty("timeUnixNano"))if(typeof J.timeUnixNano==="number")X.timeUnixNano=Z.longs===String?String(J.timeUnixNano):J.timeUnixNano;else X.timeUnixNano=Z.longs===String?B.Long.prototype.toString.call(J.timeUnixNano):Z.longs===Number?new B.LongBits(J.timeUnixNano.low>>>0,J.timeUnixNano.high>>>0).toNumber():J.timeUnixNano;if(J.count!=null&&J.hasOwnProperty("count"))if(typeof J.count==="number")X.count=Z.longs===String?String(J.count):J.count;else X.count=Z.longs===String?B.Long.prototype.toString.call(J.count):Z.longs===Number?new B.LongBits(J.count.low>>>0,J.count.high>>>0).toNumber():J.count;if(J.sum!=null&&J.hasOwnProperty("sum"))X.sum=Z.json&&!isFinite(J.sum)?String(J.sum):J.sum;if(J.quantileValues&&J.quantileValues.length){X.quantileValues=[];for(var F=0;F<J.quantileValues.length;++F)X.quantileValues[F]=O.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.toObject(J.quantileValues[F],Z)}if(J.attributes&&J.attributes.length){X.attributes=[];for(var F=0;F<J.attributes.length;++F)X.attributes[F]=O.opentelemetry.proto.common.v1.KeyValue.toObject(J.attributes[F],Z)}if(J.flags!=null&&J.hasOwnProperty("flags"))X.flags=J.flags;return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.metrics.v1.SummaryDataPoint"},z.ValueAtQuantile=function(){function W(J){if(J){for(var Z=Object.keys(J),X=0;X<Z.length;++X)if(J[Z[X]]!=null)this[Z[X]]=J[Z[X]]}}return W.prototype.quantile=null,W.prototype.value=null,W.create=function(Z){return new W(Z)},W.encode=function(Z,X){if(!X)X=w.create();if(Z.quantile!=null&&Object.hasOwnProperty.call(Z,"quantile"))X.uint32(9).double(Z.quantile);if(Z.value!=null&&Object.hasOwnProperty.call(Z,"value"))X.uint32(17).double(Z.value);return X},W.encodeDelimited=function(Z,X){return this.encode(Z,X).ldelim()},W.decode=function(Z,X,q){if(!(Z instanceof I))Z=I.create(Z);var F=X===void 0?Z.len:Z.pos+X,H=new O.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;while(Z.pos<F){var N=Z.uint32();if(N===q)break;switch(N>>>3){case 1:{H.quantile=Z.double();break}case 2:{H.value=Z.double();break}default:Z.skipType(N&7);break}}return H},W.decodeDelimited=function(Z){if(!(Z instanceof I))Z=new I(Z);return this.decode(Z,Z.uint32())},W.verify=function(Z){if(typeof Z!=="object"||Z===null)return"object expected";if(Z.quantile!=null&&Z.hasOwnProperty("quantile")){if(typeof Z.quantile!=="number")return"quantile: number expected"}if(Z.value!=null&&Z.hasOwnProperty("value")){if(typeof Z.value!=="number")return"value: number expected"}return null},W.fromObject=function(Z){if(Z instanceof O.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile)return Z;var X=new O.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;if(Z.quantile!=null)X.quantile=Number(Z.quantile);if(Z.value!=null)X.value=Number(Z.value);return X},W.toObject=function(Z,X){if(!X)X={};var q={};if(X.defaults)q.quantile=0,q.value=0;if(Z.quantile!=null&&Z.hasOwnProperty("quantile"))q.quantile=X.json&&!isFinite(Z.quantile)?String(Z.quantile):Z.quantile;if(Z.value!=null&&Z.hasOwnProperty("value"))q.value=X.json&&!isFinite(Z.value)?String(Z.value):Z.value;return q},W.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},W.getTypeUrl=function(Z){if(Z===void 0)Z="type.googleapis.com";return Z+"/opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile"},W}(),z}(),K.Exemplar=function(){function z(J){if(this.filteredAttributes=[],J){for(var Z=Object.keys(J),X=0;X<Z.length;++X)if(J[Z[X]]!=null)this[Z[X]]=J[Z[X]]}}z.prototype.filteredAttributes=B.emptyArray,z.prototype.timeUnixNano=null,z.prototype.asDouble=null,z.prototype.asInt=null,z.prototype.spanId=null,z.prototype.traceId=null;var W;return Object.defineProperty(z.prototype,"value",{get:B.oneOfGetter(W=["asDouble","asInt"]),set:B.oneOfSetter(W)}),z.create=function(Z){return new z(Z)},z.encode=function(Z,X){if(!X)X=w.create();if(Z.timeUnixNano!=null&&Object.hasOwnProperty.call(Z,"timeUnixNano"))X.uint32(17).fixed64(Z.timeUnixNano);if(Z.asDouble!=null&&Object.hasOwnProperty.call(Z,"asDouble"))X.uint32(25).double(Z.asDouble);if(Z.spanId!=null&&Object.hasOwnProperty.call(Z,"spanId"))X.uint32(34).bytes(Z.spanId);if(Z.traceId!=null&&Object.hasOwnProperty.call(Z,"traceId"))X.uint32(42).bytes(Z.traceId);if(Z.asInt!=null&&Object.hasOwnProperty.call(Z,"asInt"))X.uint32(49).sfixed64(Z.asInt);if(Z.filteredAttributes!=null&&Z.filteredAttributes.length)for(var q=0;q<Z.filteredAttributes.length;++q)O.opentelemetry.proto.common.v1.KeyValue.encode(Z.filteredAttributes[q],X.uint32(58).fork()).ldelim();return X},z.encodeDelimited=function(Z,X){return this.encode(Z,X).ldelim()},z.decode=function(Z,X,q){if(!(Z instanceof I))Z=I.create(Z);var F=X===void 0?Z.len:Z.pos+X,H=new O.opentelemetry.proto.metrics.v1.Exemplar;while(Z.pos<F){var N=Z.uint32();if(N===q)break;switch(N>>>3){case 7:{if(!(H.filteredAttributes&&H.filteredAttributes.length))H.filteredAttributes=[];H.filteredAttributes.push(O.opentelemetry.proto.common.v1.KeyValue.decode(Z,Z.uint32()));break}case 2:{H.timeUnixNano=Z.fixed64();break}case 3:{H.asDouble=Z.double();break}case 6:{H.asInt=Z.sfixed64();break}case 4:{H.spanId=Z.bytes();break}case 5:{H.traceId=Z.bytes();break}default:Z.skipType(N&7);break}}return H},z.decodeDelimited=function(Z){if(!(Z instanceof I))Z=new I(Z);return this.decode(Z,Z.uint32())},z.verify=function(Z){if(typeof Z!=="object"||Z===null)return"object expected";var X={};if(Z.filteredAttributes!=null&&Z.hasOwnProperty("filteredAttributes")){if(!Array.isArray(Z.filteredAttributes))return"filteredAttributes: array expected";for(var q=0;q<Z.filteredAttributes.length;++q){var F=O.opentelemetry.proto.common.v1.KeyValue.verify(Z.filteredAttributes[q]);if(F)return"filteredAttributes."+F}}if(Z.timeUnixNano!=null&&Z.hasOwnProperty("timeUnixNano")){if(!B.isInteger(Z.timeUnixNano)&&!(Z.timeUnixNano&&B.isInteger(Z.timeUnixNano.low)&&B.isInteger(Z.timeUnixNano.high)))return"timeUnixNano: integer|Long expected"}if(Z.asDouble!=null&&Z.hasOwnProperty("asDouble")){if(X.value=1,typeof Z.asDouble!=="number")return"asDouble: number expected"}if(Z.asInt!=null&&Z.hasOwnProperty("asInt")){if(X.value===1)return"value: multiple values";if(X.value=1,!B.isInteger(Z.asInt)&&!(Z.asInt&&B.isInteger(Z.asInt.low)&&B.isInteger(Z.asInt.high)))return"asInt: integer|Long expected"}if(Z.spanId!=null&&Z.hasOwnProperty("spanId")){if(!(Z.spanId&&typeof Z.spanId.length==="number"||B.isString(Z.spanId)))return"spanId: buffer expected"}if(Z.traceId!=null&&Z.hasOwnProperty("traceId")){if(!(Z.traceId&&typeof Z.traceId.length==="number"||B.isString(Z.traceId)))return"traceId: buffer expected"}return null},z.fromObject=function(Z){if(Z instanceof O.opentelemetry.proto.metrics.v1.Exemplar)return Z;var X=new O.opentelemetry.proto.metrics.v1.Exemplar;if(Z.filteredAttributes){if(!Array.isArray(Z.filteredAttributes))throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: array expected");X.filteredAttributes=[];for(var q=0;q<Z.filteredAttributes.length;++q){if(typeof Z.filteredAttributes[q]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: object expected");X.filteredAttributes[q]=O.opentelemetry.proto.common.v1.KeyValue.fromObject(Z.filteredAttributes[q])}}if(Z.timeUnixNano!=null){if(B.Long)(X.timeUnixNano=B.Long.fromValue(Z.timeUnixNano)).unsigned=!1;else if(typeof Z.timeUnixNano==="string")X.timeUnixNano=parseInt(Z.timeUnixNano,10);else if(typeof Z.timeUnixNano==="number")X.timeUnixNano=Z.timeUnixNano;else if(typeof Z.timeUnixNano==="object")X.timeUnixNano=new B.LongBits(Z.timeUnixNano.low>>>0,Z.timeUnixNano.high>>>0).toNumber()}if(Z.asDouble!=null)X.asDouble=Number(Z.asDouble);if(Z.asInt!=null){if(B.Long)(X.asInt=B.Long.fromValue(Z.asInt)).unsigned=!1;else if(typeof Z.asInt==="string")X.asInt=parseInt(Z.asInt,10);else if(typeof Z.asInt==="number")X.asInt=Z.asInt;else if(typeof Z.asInt==="object")X.asInt=new B.LongBits(Z.asInt.low>>>0,Z.asInt.high>>>0).toNumber()}if(Z.spanId!=null){if(typeof Z.spanId==="string")B.base64.decode(Z.spanId,X.spanId=B.newBuffer(B.base64.length(Z.spanId)),0);else if(Z.spanId.length>=0)X.spanId=Z.spanId}if(Z.traceId!=null){if(typeof Z.traceId==="string")B.base64.decode(Z.traceId,X.traceId=B.newBuffer(B.base64.length(Z.traceId)),0);else if(Z.traceId.length>=0)X.traceId=Z.traceId}return X},z.toObject=function(Z,X){if(!X)X={};var q={};if(X.arrays||X.defaults)q.filteredAttributes=[];if(X.defaults){if(B.Long){var F=new B.Long(0,0,!1);q.timeUnixNano=X.longs===String?F.toString():X.longs===Number?F.toNumber():F}else q.timeUnixNano=X.longs===String?"0":0;if(X.bytes===String)q.spanId="";else if(q.spanId=[],X.bytes!==Array)q.spanId=B.newBuffer(q.spanId);if(X.bytes===String)q.traceId="";else if(q.traceId=[],X.bytes!==Array)q.traceId=B.newBuffer(q.traceId)}if(Z.timeUnixNano!=null&&Z.hasOwnProperty("timeUnixNano"))if(typeof Z.timeUnixNano==="number")q.timeUnixNano=X.longs===String?String(Z.timeUnixNano):Z.timeUnixNano;else q.timeUnixNano=X.longs===String?B.Long.prototype.toString.call(Z.timeUnixNano):X.longs===Number?new B.LongBits(Z.timeUnixNano.low>>>0,Z.timeUnixNano.high>>>0).toNumber():Z.timeUnixNano;if(Z.asDouble!=null&&Z.hasOwnProperty("asDouble")){if(q.asDouble=X.json&&!isFinite(Z.asDouble)?String(Z.asDouble):Z.asDouble,X.oneofs)q.value="asDouble"}if(Z.spanId!=null&&Z.hasOwnProperty("spanId"))q.spanId=X.bytes===String?B.base64.encode(Z.spanId,0,Z.spanId.length):X.bytes===Array?Array.prototype.slice.call(Z.spanId):Z.spanId;if(Z.traceId!=null&&Z.hasOwnProperty("traceId"))q.traceId=X.bytes===String?B.base64.encode(Z.traceId,0,Z.traceId.length):X.bytes===Array?Array.prototype.slice.call(Z.traceId):Z.traceId;if(Z.asInt!=null&&Z.hasOwnProperty("asInt")){if(typeof Z.asInt==="number")q.asInt=X.longs===String?String(Z.asInt):Z.asInt;else q.asInt=X.longs===String?B.Long.prototype.toString.call(Z.asInt):X.longs===Number?new B.LongBits(Z.asInt.low>>>0,Z.asInt.high>>>0).toNumber():Z.asInt;if(X.oneofs)q.value="asInt"}if(Z.filteredAttributes&&Z.filteredAttributes.length){q.filteredAttributes=[];for(var H=0;H<Z.filteredAttributes.length;++H)q.filteredAttributes[H]=O.opentelemetry.proto.common.v1.KeyValue.toObject(Z.filteredAttributes[H],X)}return q},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(Z){if(Z===void 0)Z="type.googleapis.com";return Z+"/opentelemetry.proto.metrics.v1.Exemplar"},z}(),K}(),G}(),Y.logs=function(){var G={};return G.v1=function(){var K={};return K.LogsData=function(){function z(W){if(this.resourceLogs=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.resourceLogs=B.emptyArray,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.resourceLogs!=null&&J.resourceLogs.length)for(var X=0;X<J.resourceLogs.length;++X)O.opentelemetry.proto.logs.v1.ResourceLogs.encode(J.resourceLogs[X],Z.uint32(10).fork()).ldelim();return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.logs.v1.LogsData;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{if(!(F.resourceLogs&&F.resourceLogs.length))F.resourceLogs=[];F.resourceLogs.push(O.opentelemetry.proto.logs.v1.ResourceLogs.decode(J,J.uint32()));break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.resourceLogs!=null&&J.hasOwnProperty("resourceLogs")){if(!Array.isArray(J.resourceLogs))return"resourceLogs: array expected";for(var Z=0;Z<J.resourceLogs.length;++Z){var X=O.opentelemetry.proto.logs.v1.ResourceLogs.verify(J.resourceLogs[Z]);if(X)return"resourceLogs."+X}}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.logs.v1.LogsData)return J;var Z=new O.opentelemetry.proto.logs.v1.LogsData;if(J.resourceLogs){if(!Array.isArray(J.resourceLogs))throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: array expected");Z.resourceLogs=[];for(var X=0;X<J.resourceLogs.length;++X){if(typeof J.resourceLogs[X]!=="object")throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: object expected");Z.resourceLogs[X]=O.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(J.resourceLogs[X])}}return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.resourceLogs=[];if(J.resourceLogs&&J.resourceLogs.length){X.resourceLogs=[];for(var q=0;q<J.resourceLogs.length;++q)X.resourceLogs[q]=O.opentelemetry.proto.logs.v1.ResourceLogs.toObject(J.resourceLogs[q],Z)}return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.logs.v1.LogsData"},z}(),K.ResourceLogs=function(){function z(W){if(this.scopeLogs=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.resource=null,z.prototype.scopeLogs=B.emptyArray,z.prototype.schemaUrl=null,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.resource!=null&&Object.hasOwnProperty.call(J,"resource"))O.opentelemetry.proto.resource.v1.Resource.encode(J.resource,Z.uint32(10).fork()).ldelim();if(J.scopeLogs!=null&&J.scopeLogs.length)for(var X=0;X<J.scopeLogs.length;++X)O.opentelemetry.proto.logs.v1.ScopeLogs.encode(J.scopeLogs[X],Z.uint32(18).fork()).ldelim();if(J.schemaUrl!=null&&Object.hasOwnProperty.call(J,"schemaUrl"))Z.uint32(26).string(J.schemaUrl);return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.logs.v1.ResourceLogs;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{F.resource=O.opentelemetry.proto.resource.v1.Resource.decode(J,J.uint32());break}case 2:{if(!(F.scopeLogs&&F.scopeLogs.length))F.scopeLogs=[];F.scopeLogs.push(O.opentelemetry.proto.logs.v1.ScopeLogs.decode(J,J.uint32()));break}case 3:{F.schemaUrl=J.string();break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.resource!=null&&J.hasOwnProperty("resource")){var Z=O.opentelemetry.proto.resource.v1.Resource.verify(J.resource);if(Z)return"resource."+Z}if(J.scopeLogs!=null&&J.hasOwnProperty("scopeLogs")){if(!Array.isArray(J.scopeLogs))return"scopeLogs: array expected";for(var X=0;X<J.scopeLogs.length;++X){var Z=O.opentelemetry.proto.logs.v1.ScopeLogs.verify(J.scopeLogs[X]);if(Z)return"scopeLogs."+Z}}if(J.schemaUrl!=null&&J.hasOwnProperty("schemaUrl")){if(!B.isString(J.schemaUrl))return"schemaUrl: string expected"}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.logs.v1.ResourceLogs)return J;var Z=new O.opentelemetry.proto.logs.v1.ResourceLogs;if(J.resource!=null){if(typeof J.resource!=="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.resource: object expected");Z.resource=O.opentelemetry.proto.resource.v1.Resource.fromObject(J.resource)}if(J.scopeLogs){if(!Array.isArray(J.scopeLogs))throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: array expected");Z.scopeLogs=[];for(var X=0;X<J.scopeLogs.length;++X){if(typeof J.scopeLogs[X]!=="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: object expected");Z.scopeLogs[X]=O.opentelemetry.proto.logs.v1.ScopeLogs.fromObject(J.scopeLogs[X])}}if(J.schemaUrl!=null)Z.schemaUrl=String(J.schemaUrl);return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.scopeLogs=[];if(Z.defaults)X.resource=null,X.schemaUrl="";if(J.resource!=null&&J.hasOwnProperty("resource"))X.resource=O.opentelemetry.proto.resource.v1.Resource.toObject(J.resource,Z);if(J.scopeLogs&&J.scopeLogs.length){X.scopeLogs=[];for(var q=0;q<J.scopeLogs.length;++q)X.scopeLogs[q]=O.opentelemetry.proto.logs.v1.ScopeLogs.toObject(J.scopeLogs[q],Z)}if(J.schemaUrl!=null&&J.hasOwnProperty("schemaUrl"))X.schemaUrl=J.schemaUrl;return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.logs.v1.ResourceLogs"},z}(),K.ScopeLogs=function(){function z(W){if(this.logRecords=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.scope=null,z.prototype.logRecords=B.emptyArray,z.prototype.schemaUrl=null,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.scope!=null&&Object.hasOwnProperty.call(J,"scope"))O.opentelemetry.proto.common.v1.InstrumentationScope.encode(J.scope,Z.uint32(10).fork()).ldelim();if(J.logRecords!=null&&J.logRecords.length)for(var X=0;X<J.logRecords.length;++X)O.opentelemetry.proto.logs.v1.LogRecord.encode(J.logRecords[X],Z.uint32(18).fork()).ldelim();if(J.schemaUrl!=null&&Object.hasOwnProperty.call(J,"schemaUrl"))Z.uint32(26).string(J.schemaUrl);return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.logs.v1.ScopeLogs;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{F.scope=O.opentelemetry.proto.common.v1.InstrumentationScope.decode(J,J.uint32());break}case 2:{if(!(F.logRecords&&F.logRecords.length))F.logRecords=[];F.logRecords.push(O.opentelemetry.proto.logs.v1.LogRecord.decode(J,J.uint32()));break}case 3:{F.schemaUrl=J.string();break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.scope!=null&&J.hasOwnProperty("scope")){var Z=O.opentelemetry.proto.common.v1.InstrumentationScope.verify(J.scope);if(Z)return"scope."+Z}if(J.logRecords!=null&&J.hasOwnProperty("logRecords")){if(!Array.isArray(J.logRecords))return"logRecords: array expected";for(var X=0;X<J.logRecords.length;++X){var Z=O.opentelemetry.proto.logs.v1.LogRecord.verify(J.logRecords[X]);if(Z)return"logRecords."+Z}}if(J.schemaUrl!=null&&J.hasOwnProperty("schemaUrl")){if(!B.isString(J.schemaUrl))return"schemaUrl: string expected"}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.logs.v1.ScopeLogs)return J;var Z=new O.opentelemetry.proto.logs.v1.ScopeLogs;if(J.scope!=null){if(typeof J.scope!=="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.scope: object expected");Z.scope=O.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(J.scope)}if(J.logRecords){if(!Array.isArray(J.logRecords))throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: array expected");Z.logRecords=[];for(var X=0;X<J.logRecords.length;++X){if(typeof J.logRecords[X]!=="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: object expected");Z.logRecords[X]=O.opentelemetry.proto.logs.v1.LogRecord.fromObject(J.logRecords[X])}}if(J.schemaUrl!=null)Z.schemaUrl=String(J.schemaUrl);return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.logRecords=[];if(Z.defaults)X.scope=null,X.schemaUrl="";if(J.scope!=null&&J.hasOwnProperty("scope"))X.scope=O.opentelemetry.proto.common.v1.InstrumentationScope.toObject(J.scope,Z);if(J.logRecords&&J.logRecords.length){X.logRecords=[];for(var q=0;q<J.logRecords.length;++q)X.logRecords[q]=O.opentelemetry.proto.logs.v1.LogRecord.toObject(J.logRecords[q],Z)}if(J.schemaUrl!=null&&J.hasOwnProperty("schemaUrl"))X.schemaUrl=J.schemaUrl;return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.logs.v1.ScopeLogs"},z}(),K.SeverityNumber=function(){var z={},W=Object.create(z);return W[z[0]="SEVERITY_NUMBER_UNSPECIFIED"]=0,W[z[1]="SEVERITY_NUMBER_TRACE"]=1,W[z[2]="SEVERITY_NUMBER_TRACE2"]=2,W[z[3]="SEVERITY_NUMBER_TRACE3"]=3,W[z[4]="SEVERITY_NUMBER_TRACE4"]=4,W[z[5]="SEVERITY_NUMBER_DEBUG"]=5,W[z[6]="SEVERITY_NUMBER_DEBUG2"]=6,W[z[7]="SEVERITY_NUMBER_DEBUG3"]=7,W[z[8]="SEVERITY_NUMBER_DEBUG4"]=8,W[z[9]="SEVERITY_NUMBER_INFO"]=9,W[z[10]="SEVERITY_NUMBER_INFO2"]=10,W[z[11]="SEVERITY_NUMBER_INFO3"]=11,W[z[12]="SEVERITY_NUMBER_INFO4"]=12,W[z[13]="SEVERITY_NUMBER_WARN"]=13,W[z[14]="SEVERITY_NUMBER_WARN2"]=14,W[z[15]="SEVERITY_NUMBER_WARN3"]=15,W[z[16]="SEVERITY_NUMBER_WARN4"]=16,W[z[17]="SEVERITY_NUMBER_ERROR"]=17,W[z[18]="SEVERITY_NUMBER_ERROR2"]=18,W[z[19]="SEVERITY_NUMBER_ERROR3"]=19,W[z[20]="SEVERITY_NUMBER_ERROR4"]=20,W[z[21]="SEVERITY_NUMBER_FATAL"]=21,W[z[22]="SEVERITY_NUMBER_FATAL2"]=22,W[z[23]="SEVERITY_NUMBER_FATAL3"]=23,W[z[24]="SEVERITY_NUMBER_FATAL4"]=24,W}(),K.LogRecordFlags=function(){var z={},W=Object.create(z);return W[z[0]="LOG_RECORD_FLAGS_DO_NOT_USE"]=0,W[z[255]="LOG_RECORD_FLAGS_TRACE_FLAGS_MASK"]=255,W}(),K.LogRecord=function(){function z(W){if(this.attributes=[],W){for(var J=Object.keys(W),Z=0;Z<J.length;++Z)if(W[J[Z]]!=null)this[J[Z]]=W[J[Z]]}}return z.prototype.timeUnixNano=null,z.prototype.observedTimeUnixNano=null,z.prototype.severityNumber=null,z.prototype.severityText=null,z.prototype.body=null,z.prototype.attributes=B.emptyArray,z.prototype.droppedAttributesCount=null,z.prototype.flags=null,z.prototype.traceId=null,z.prototype.spanId=null,z.prototype.eventName=null,z.create=function(J){return new z(J)},z.encode=function(J,Z){if(!Z)Z=w.create();if(J.timeUnixNano!=null&&Object.hasOwnProperty.call(J,"timeUnixNano"))Z.uint32(9).fixed64(J.timeUnixNano);if(J.severityNumber!=null&&Object.hasOwnProperty.call(J,"severityNumber"))Z.uint32(16).int32(J.severityNumber);if(J.severityText!=null&&Object.hasOwnProperty.call(J,"severityText"))Z.uint32(26).string(J.severityText);if(J.body!=null&&Object.hasOwnProperty.call(J,"body"))O.opentelemetry.proto.common.v1.AnyValue.encode(J.body,Z.uint32(42).fork()).ldelim();if(J.attributes!=null&&J.attributes.length)for(var X=0;X<J.attributes.length;++X)O.opentelemetry.proto.common.v1.KeyValue.encode(J.attributes[X],Z.uint32(50).fork()).ldelim();if(J.droppedAttributesCount!=null&&Object.hasOwnProperty.call(J,"droppedAttributesCount"))Z.uint32(56).uint32(J.droppedAttributesCount);if(J.flags!=null&&Object.hasOwnProperty.call(J,"flags"))Z.uint32(69).fixed32(J.flags);if(J.traceId!=null&&Object.hasOwnProperty.call(J,"traceId"))Z.uint32(74).bytes(J.traceId);if(J.spanId!=null&&Object.hasOwnProperty.call(J,"spanId"))Z.uint32(82).bytes(J.spanId);if(J.observedTimeUnixNano!=null&&Object.hasOwnProperty.call(J,"observedTimeUnixNano"))Z.uint32(89).fixed64(J.observedTimeUnixNano);if(J.eventName!=null&&Object.hasOwnProperty.call(J,"eventName"))Z.uint32(98).string(J.eventName);return Z},z.encodeDelimited=function(J,Z){return this.encode(J,Z).ldelim()},z.decode=function(J,Z,X){if(!(J instanceof I))J=I.create(J);var q=Z===void 0?J.len:J.pos+Z,F=new O.opentelemetry.proto.logs.v1.LogRecord;while(J.pos<q){var H=J.uint32();if(H===X)break;switch(H>>>3){case 1:{F.timeUnixNano=J.fixed64();break}case 11:{F.observedTimeUnixNano=J.fixed64();break}case 2:{F.severityNumber=J.int32();break}case 3:{F.severityText=J.string();break}case 5:{F.body=O.opentelemetry.proto.common.v1.AnyValue.decode(J,J.uint32());break}case 6:{if(!(F.attributes&&F.attributes.length))F.attributes=[];F.attributes.push(O.opentelemetry.proto.common.v1.KeyValue.decode(J,J.uint32()));break}case 7:{F.droppedAttributesCount=J.uint32();break}case 8:{F.flags=J.fixed32();break}case 9:{F.traceId=J.bytes();break}case 10:{F.spanId=J.bytes();break}case 12:{F.eventName=J.string();break}default:J.skipType(H&7);break}}return F},z.decodeDelimited=function(J){if(!(J instanceof I))J=new I(J);return this.decode(J,J.uint32())},z.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.timeUnixNano!=null&&J.hasOwnProperty("timeUnixNano")){if(!B.isInteger(J.timeUnixNano)&&!(J.timeUnixNano&&B.isInteger(J.timeUnixNano.low)&&B.isInteger(J.timeUnixNano.high)))return"timeUnixNano: integer|Long expected"}if(J.observedTimeUnixNano!=null&&J.hasOwnProperty("observedTimeUnixNano")){if(!B.isInteger(J.observedTimeUnixNano)&&!(J.observedTimeUnixNano&&B.isInteger(J.observedTimeUnixNano.low)&&B.isInteger(J.observedTimeUnixNano.high)))return"observedTimeUnixNano: integer|Long expected"}if(J.severityNumber!=null&&J.hasOwnProperty("severityNumber"))switch(J.severityNumber){default:return"severityNumber: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:break}if(J.severityText!=null&&J.hasOwnProperty("severityText")){if(!B.isString(J.severityText))return"severityText: string expected"}if(J.body!=null&&J.hasOwnProperty("body")){var Z=O.opentelemetry.proto.common.v1.AnyValue.verify(J.body);if(Z)return"body."+Z}if(J.attributes!=null&&J.hasOwnProperty("attributes")){if(!Array.isArray(J.attributes))return"attributes: array expected";for(var X=0;X<J.attributes.length;++X){var Z=O.opentelemetry.proto.common.v1.KeyValue.verify(J.attributes[X]);if(Z)return"attributes."+Z}}if(J.droppedAttributesCount!=null&&J.hasOwnProperty("droppedAttributesCount")){if(!B.isInteger(J.droppedAttributesCount))return"droppedAttributesCount: integer expected"}if(J.flags!=null&&J.hasOwnProperty("flags")){if(!B.isInteger(J.flags))return"flags: integer expected"}if(J.traceId!=null&&J.hasOwnProperty("traceId")){if(!(J.traceId&&typeof J.traceId.length==="number"||B.isString(J.traceId)))return"traceId: buffer expected"}if(J.spanId!=null&&J.hasOwnProperty("spanId")){if(!(J.spanId&&typeof J.spanId.length==="number"||B.isString(J.spanId)))return"spanId: buffer expected"}if(J.eventName!=null&&J.hasOwnProperty("eventName")){if(!B.isString(J.eventName))return"eventName: string expected"}return null},z.fromObject=function(J){if(J instanceof O.opentelemetry.proto.logs.v1.LogRecord)return J;var Z=new O.opentelemetry.proto.logs.v1.LogRecord;if(J.timeUnixNano!=null){if(B.Long)(Z.timeUnixNano=B.Long.fromValue(J.timeUnixNano)).unsigned=!1;else if(typeof J.timeUnixNano==="string")Z.timeUnixNano=parseInt(J.timeUnixNano,10);else if(typeof J.timeUnixNano==="number")Z.timeUnixNano=J.timeUnixNano;else if(typeof J.timeUnixNano==="object")Z.timeUnixNano=new B.LongBits(J.timeUnixNano.low>>>0,J.timeUnixNano.high>>>0).toNumber()}if(J.observedTimeUnixNano!=null){if(B.Long)(Z.observedTimeUnixNano=B.Long.fromValue(J.observedTimeUnixNano)).unsigned=!1;else if(typeof J.observedTimeUnixNano==="string")Z.observedTimeUnixNano=parseInt(J.observedTimeUnixNano,10);else if(typeof J.observedTimeUnixNano==="number")Z.observedTimeUnixNano=J.observedTimeUnixNano;else if(typeof J.observedTimeUnixNano==="object")Z.observedTimeUnixNano=new B.LongBits(J.observedTimeUnixNano.low>>>0,J.observedTimeUnixNano.high>>>0).toNumber()}switch(J.severityNumber){default:if(typeof J.severityNumber==="number"){Z.severityNumber=J.severityNumber;break}break;case"SEVERITY_NUMBER_UNSPECIFIED":case 0:Z.severityNumber=0;break;case"SEVERITY_NUMBER_TRACE":case 1:Z.severityNumber=1;break;case"SEVERITY_NUMBER_TRACE2":case 2:Z.severityNumber=2;break;case"SEVERITY_NUMBER_TRACE3":case 3:Z.severityNumber=3;break;case"SEVERITY_NUMBER_TRACE4":case 4:Z.severityNumber=4;break;case"SEVERITY_NUMBER_DEBUG":case 5:Z.severityNumber=5;break;case"SEVERITY_NUMBER_DEBUG2":case 6:Z.severityNumber=6;break;case"SEVERITY_NUMBER_DEBUG3":case 7:Z.severityNumber=7;break;case"SEVERITY_NUMBER_DEBUG4":case 8:Z.severityNumber=8;break;case"SEVERITY_NUMBER_INFO":case 9:Z.severityNumber=9;break;case"SEVERITY_NUMBER_INFO2":case 10:Z.severityNumber=10;break;case"SEVERITY_NUMBER_INFO3":case 11:Z.severityNumber=11;break;case"SEVERITY_NUMBER_INFO4":case 12:Z.severityNumber=12;break;case"SEVERITY_NUMBER_WARN":case 13:Z.severityNumber=13;break;case"SEVERITY_NUMBER_WARN2":case 14:Z.severityNumber=14;break;case"SEVERITY_NUMBER_WARN3":case 15:Z.severityNumber=15;break;case"SEVERITY_NUMBER_WARN4":case 16:Z.severityNumber=16;break;case"SEVERITY_NUMBER_ERROR":case 17:Z.severityNumber=17;break;case"SEVERITY_NUMBER_ERROR2":case 18:Z.severityNumber=18;break;case"SEVERITY_NUMBER_ERROR3":case 19:Z.severityNumber=19;break;case"SEVERITY_NUMBER_ERROR4":case 20:Z.severityNumber=20;break;case"SEVERITY_NUMBER_FATAL":case 21:Z.severityNumber=21;break;case"SEVERITY_NUMBER_FATAL2":case 22:Z.severityNumber=22;break;case"SEVERITY_NUMBER_FATAL3":case 23:Z.severityNumber=23;break;case"SEVERITY_NUMBER_FATAL4":case 24:Z.severityNumber=24;break}if(J.severityText!=null)Z.severityText=String(J.severityText);if(J.body!=null){if(typeof J.body!=="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.body: object expected");Z.body=O.opentelemetry.proto.common.v1.AnyValue.fromObject(J.body)}if(J.attributes){if(!Array.isArray(J.attributes))throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: array expected");Z.attributes=[];for(var X=0;X<J.attributes.length;++X){if(typeof J.attributes[X]!=="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: object expected");Z.attributes[X]=O.opentelemetry.proto.common.v1.KeyValue.fromObject(J.attributes[X])}}if(J.droppedAttributesCount!=null)Z.droppedAttributesCount=J.droppedAttributesCount>>>0;if(J.flags!=null)Z.flags=J.flags>>>0;if(J.traceId!=null){if(typeof J.traceId==="string")B.base64.decode(J.traceId,Z.traceId=B.newBuffer(B.base64.length(J.traceId)),0);else if(J.traceId.length>=0)Z.traceId=J.traceId}if(J.spanId!=null){if(typeof J.spanId==="string")B.base64.decode(J.spanId,Z.spanId=B.newBuffer(B.base64.length(J.spanId)),0);else if(J.spanId.length>=0)Z.spanId=J.spanId}if(J.eventName!=null)Z.eventName=String(J.eventName);return Z},z.toObject=function(J,Z){if(!Z)Z={};var X={};if(Z.arrays||Z.defaults)X.attributes=[];if(Z.defaults){if(B.Long){var q=new B.Long(0,0,!1);X.timeUnixNano=Z.longs===String?q.toString():Z.longs===Number?q.toNumber():q}else X.timeUnixNano=Z.longs===String?"0":0;if(X.severityNumber=Z.enums===String?"SEVERITY_NUMBER_UNSPECIFIED":0,X.severityText="",X.body=null,X.droppedAttributesCount=0,X.flags=0,Z.bytes===String)X.traceId="";else if(X.traceId=[],Z.bytes!==Array)X.traceId=B.newBuffer(X.traceId);if(Z.bytes===String)X.spanId="";else if(X.spanId=[],Z.bytes!==Array)X.spanId=B.newBuffer(X.spanId);if(B.Long){var q=new B.Long(0,0,!1);X.observedTimeUnixNano=Z.longs===String?q.toString():Z.longs===Number?q.toNumber():q}else X.observedTimeUnixNano=Z.longs===String?"0":0;X.eventName=""}if(J.timeUnixNano!=null&&J.hasOwnProperty("timeUnixNano"))if(typeof J.timeUnixNano==="number")X.timeUnixNano=Z.longs===String?String(J.timeUnixNano):J.timeUnixNano;else X.timeUnixNano=Z.longs===String?B.Long.prototype.toString.call(J.timeUnixNano):Z.longs===Number?new B.LongBits(J.timeUnixNano.low>>>0,J.timeUnixNano.high>>>0).toNumber():J.timeUnixNano;if(J.severityNumber!=null&&J.hasOwnProperty("severityNumber"))X.severityNumber=Z.enums===String?O.opentelemetry.proto.logs.v1.SeverityNumber[J.severityNumber]===void 0?J.severityNumber:O.opentelemetry.proto.logs.v1.SeverityNumber[J.severityNumber]:J.severityNumber;if(J.severityText!=null&&J.hasOwnProperty("severityText"))X.severityText=J.severityText;if(J.body!=null&&J.hasOwnProperty("body"))X.body=O.opentelemetry.proto.common.v1.AnyValue.toObject(J.body,Z);if(J.attributes&&J.attributes.length){X.attributes=[];for(var F=0;F<J.attributes.length;++F)X.attributes[F]=O.opentelemetry.proto.common.v1.KeyValue.toObject(J.attributes[F],Z)}if(J.droppedAttributesCount!=null&&J.hasOwnProperty("droppedAttributesCount"))X.droppedAttributesCount=J.droppedAttributesCount;if(J.flags!=null&&J.hasOwnProperty("flags"))X.flags=J.flags;if(J.traceId!=null&&J.hasOwnProperty("traceId"))X.traceId=Z.bytes===String?B.base64.encode(J.traceId,0,J.traceId.length):Z.bytes===Array?Array.prototype.slice.call(J.traceId):J.traceId;if(J.spanId!=null&&J.hasOwnProperty("spanId"))X.spanId=Z.bytes===String?B.base64.encode(J.spanId,0,J.spanId.length):Z.bytes===Array?Array.prototype.slice.call(J.spanId):J.spanId;if(J.observedTimeUnixNano!=null&&J.hasOwnProperty("observedTimeUnixNano"))if(typeof J.observedTimeUnixNano==="number")X.observedTimeUnixNano=Z.longs===String?String(J.observedTimeUnixNano):J.observedTimeUnixNano;else X.observedTimeUnixNano=Z.longs===String?B.Long.prototype.toString.call(J.observedTimeUnixNano):Z.longs===Number?new B.LongBits(J.observedTimeUnixNano.low>>>0,J.observedTimeUnixNano.high>>>0).toNumber():J.observedTimeUnixNano;if(J.eventName!=null&&J.hasOwnProperty("eventName"))X.eventName=J.eventName;return X},z.prototype.toJSON=function(){return this.constructor.toObject(this,h.util.toJSONOptions)},z.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.logs.v1.LogRecord"},z}(),K}(),G}(),Y}(),Q}();TB.exports=O});var PZ=V((MB)=>{Object.defineProperty(MB,"__esModule",{value:!0});MB.toAnyValue=MB.toKeyValue=MB.toAttributes=MB.createInstrumentationScope=MB.createResource=void 0;function Cu(Q,Y){let G={attributes:hB(Q.attributes,Y),droppedAttributesCount:0},K=Q.schemaUrl;if(K&&K!=="")G.schemaUrl=K;return G}MB.createResource=Cu;function Du(Q){return{name:Q.name,version:Q.version}}MB.createInstrumentationScope=Du;function hB(Q,Y){return Object.keys(Q).map((G)=>LB(G,Q[G],Y))}MB.toAttributes=hB;function LB(Q,Y,G){return{key:Q,value:MZ(Y,G)}}MB.toKeyValue=LB;function MZ(Q,Y){let G=typeof Q;if(G==="string")return{stringValue:Q};if(G==="number"){if(!Number.isInteger(Q))return{doubleValue:Q};return{intValue:Q}}if(G==="boolean")return{boolValue:Q};if(Q instanceof Uint8Array)return{bytesValue:Y.encodeUint8Array(Q)};if(Array.isArray(Q)){let K=Array(Q.length);for(let z=0;z<Q.length;z++)K[z]=MZ(Q[z],Y);return{arrayValue:{values:K}}}if(G==="object"&&Q!=null){let K=Object.keys(Q),z=Array(K.length);for(let W=0;W<K.length;W++)z[W]={key:K[W],value:MZ(Q[K[W]],Y)};return{kvlistValue:{values:z}}}return{}}MB.toAnyValue=MZ});var X4=V((RB)=>{Object.defineProperty(RB,"__esModule",{value:!0});RB.toLogAttributes=RB.createExportLogsServiceRequest=void 0;var wZ=PZ();function hu(Q,Y){return{resourceLogs:Mu(Q,Y)}}RB.createExportLogsServiceRequest=hu;function Lu(Q){let Y=new Map;for(let G of Q){let{resource:K,instrumentationScope:{name:z,version:W="",schemaUrl:J=""}}=G,Z=Y.get(K);if(!Z)Z=new Map,Y.set(K,Z);let X=`${z}@${W}:${J}`,q=Z.get(X);if(!q)q=[],Z.set(X,q);q.push(G)}return Y}function Mu(Q,Y){let G=Lu(Q);return Array.from(G,([K,z])=>{let W=(0,wZ.createResource)(K,Y);return{resource:W,scopeLogs:Array.from(z,([,J])=>{return{scope:(0,wZ.createInstrumentationScope)(J[0].instrumentationScope),logRecords:J.map((Z)=>Pu(Z,Y)),schemaUrl:J[0].instrumentationScope.schemaUrl}}),schemaUrl:W.schemaUrl}})}function Pu(Q,Y){return{timeUnixNano:Y.encodeHrTime(Q.hrTime),observedTimeUnixNano:Y.encodeHrTime(Q.hrTimeObserved),severityNumber:wu(Q.severityNumber),severityText:Q.severityText,body:(0,wZ.toAnyValue)(Q.body,Y),eventName:Q.eventName,attributes:wB(Q.attributes,Y),droppedAttributesCount:Q.droppedAttributesCount,flags:Q.spanContext?.traceFlags,traceId:Y.encodeOptionalSpanContext(Q.spanContext?.traceId),spanId:Y.encodeOptionalSpanContext(Q.spanContext?.spanId)}}function wu(Q){return Q}function wB(Q,Y){return Object.keys(Q).map((G)=>(0,wZ.toKeyValue)(G,Q[G],Y))}RB.toLogAttributes=wB});var _B=V((SB)=>{Object.defineProperty(SB,"__esModule",{value:!0});SB.hexToBinary=void 0;function $B(Q){if(Q>=48&&Q<=57)return Q-48;if(Q>=97&&Q<=102)return Q-87;return Q-55}function ku(Q){let Y=new Uint8Array(Q.length/2),G=0;for(let K=0;K<Q.length;K+=2){let z=$B(Q.charCodeAt(K)),W=$B(Q.charCodeAt(K+1));Y[G++]=z<<4|W}return Y}SB.hexToBinary=ku});var F1=V((bB)=>{Object.defineProperty(bB,"__esModule",{value:!0});bB.JSON_ENCODER=bB.PROTOBUF_ENCODER=bB.encodeAsString=bB.encodeAsLongBits=bB.toLongBits=bB.hrTimeToNanos=void 0;var $u=S(),yB=_B();function z4(Q){let Y=BigInt(1e9);return BigInt(Math.trunc(Q[0]))*Y+BigInt(Math.trunc(Q[1]))}bB.hrTimeToNanos=z4;function vB(Q){let Y=Number(BigInt.asUintN(32,Q)),G=Number(BigInt.asUintN(32,Q>>BigInt(32)));return{low:Y,high:G}}bB.toLongBits=vB;function xB(Q){let Y=z4(Q);return vB(Y)}bB.encodeAsLongBits=xB;function jB(Q){return z4(Q).toString()}bB.encodeAsString=jB;var Su=typeof BigInt<"u"?jB:$u.hrTimeToNanoseconds;function Y4(Q){return Q}function fu(Q){if(Q===void 0)return;return(0,yB.hexToBinary)(Q)}bB.PROTOBUF_ENCODER={encodeHrTime:xB,encodeSpanContext:yB.hexToBinary,encodeOptionalSpanContext:fu,encodeUint8Array:Y4};bB.JSON_ENCODER={encodeHrTime:Su,encodeSpanContext:Y4,encodeOptionalSpanContext:Y4,encodeUint8Array:(Q)=>{if(typeof Buffer<"u")return Buffer.from(Q).toString("base64");let Y=Array(Q.length);for(let G=0;G<Q.length;G++)Y[G]=String.fromCharCode(Q[G]);return btoa(Y.join(""))}}});var nB=V((lB)=>{Object.defineProperty(lB,"__esModule",{value:!0});lB.ProtobufLogsSerializer=void 0;var uB=LZ(),bu=X4(),du=F1(),uu=uB.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,lu=uB.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;lB.ProtobufLogsSerializer={serializeRequest:(Q)=>{let Y=(0,bu.createExportLogsServiceRequest)(Q,du.PROTOBUF_ENCODER);return lu.encode(Y).finish()},deserializeResponse:(Q)=>{return uu.decode(Q)}}});var mB=V((G4)=>{Object.defineProperty(G4,"__esModule",{value:!0});G4.ProtobufLogsSerializer=void 0;var cu=nB();Object.defineProperty(G4,"ProtobufLogsSerializer",{enumerable:!0,get:function(){return cu.ProtobufLogsSerializer}})});var RZ=V((pB)=>{Object.defineProperty(pB,"__esModule",{value:!0});pB.AggregationTemporality=void 0;var mu;(function(Q){Q[Q.DELTA=0]="DELTA",Q[Q.CUMULATIVE=1]="CUMULATIVE"})(mu=pB.AggregationTemporality||(pB.AggregationTemporality={}))});var c0=V((iB)=>{Object.defineProperty(iB,"__esModule",{value:!0});iB.DataPointType=iB.InstrumentType=void 0;var pu;(function(Q){Q.COUNTER="COUNTER",Q.GAUGE="GAUGE",Q.HISTOGRAM="HISTOGRAM",Q.UP_DOWN_COUNTER="UP_DOWN_COUNTER",Q.OBSERVABLE_COUNTER="OBSERVABLE_COUNTER",Q.OBSERVABLE_GAUGE="OBSERVABLE_GAUGE",Q.OBSERVABLE_UP_DOWN_COUNTER="OBSERVABLE_UP_DOWN_COUNTER"})(pu=iB.InstrumentType||(iB.InstrumentType={}));var gu;(function(Q){Q[Q.HISTOGRAM=0]="HISTOGRAM",Q[Q.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",Q[Q.GAUGE=2]="GAUGE",Q[Q.SUM=3]="SUM"})(gu=iB.DataPointType||(iB.DataPointType={}))});var E0=V((oB)=>{Object.defineProperty(oB,"__esModule",{value:!0});oB.equalsCaseInsensitive=oB.binarySearchUB=oB.setEquals=oB.callWithTimeout=oB.TimeoutError=oB.instrumentationScopeId=oB.hashAttributes=void 0;function iu(Q){let Y=Object.keys(Q);if(Y.length===0)return"";return Y=Y.sort(),JSON.stringify(Y.map((G)=>[G,Q[G]]))}oB.hashAttributes=iu;function ou(Q){return`${Q.name}:${Q.version??""}:${Q.schemaUrl??""}`}oB.instrumentationScopeId=ou;class kZ extends Error{constructor(Q){super(Q);Object.setPrototypeOf(this,kZ.prototype)}}oB.TimeoutError=kZ;function au(Q,Y){let G,K=new Promise(function(W,J){G=setTimeout(function(){J(new kZ("Operation timed out."))},Y)});return Promise.race([Q,K]).then((z)=>{return clearTimeout(G),z},(z)=>{throw clearTimeout(G),z})}oB.callWithTimeout=au;function tu(Q,Y){if(Q.size!==Y.size)return!1;for(let G of Q)if(!Y.has(G))return!1;return!0}oB.setEquals=tu;function ru(Q,Y){let G=0,K=Q.length-1,z=Q.length;while(K>=G){let W=G+Math.trunc((K-G)/2);if(Q[W]<Y)G=W+1;else z=W,K=W-1}return z}oB.binarySearchUB=ru;function su(Q,Y){return Q.toLowerCase()===Y.toLowerCase()}oB.equalsCaseInsensitive=su});var _1=V((tB)=>{Object.defineProperty(tB,"__esModule",{value:!0});tB.AggregatorKind=void 0;var zl;(function(Q){Q[Q.DROP=0]="DROP",Q[Q.SUM=1]="SUM",Q[Q.LAST_VALUE=2]="LAST_VALUE",Q[Q.HISTOGRAM=3]="HISTOGRAM",Q[Q.EXPONENTIAL_HISTOGRAM=4]="EXPONENTIAL_HISTOGRAM"})(zl=tB.AggregatorKind||(tB.AggregatorKind={}))});var ZV=V((sB)=>{Object.defineProperty(sB,"__esModule",{value:!0});sB.DropAggregator=void 0;var Gl=_1();class rB{kind=Gl.AggregatorKind.DROP;createAccumulation(){return}merge(Q,Y){return}diff(Q,Y){return}toMetricData(Q,Y,G,K){return}}sB.DropAggregator=rB});var YV=V((QV)=>{Object.defineProperty(QV,"__esModule",{value:!0});QV.HistogramAggregator=QV.HistogramAccumulation=void 0;var Wl=_1(),D6=c0(),ql=E0();function Kl(Q){let Y=Q.map(()=>0);return Y.push(0),{buckets:{boundaries:Q,counts:Y},sum:0,count:0,hasMinMax:!1,min:1/0,max:-1/0}}class U6{startTime;_boundaries;_recordMinMax;_current;constructor(Q,Y,G=!0,K=Kl(Y)){this.startTime=Q,this._boundaries=Y,this._recordMinMax=G,this._current=K}record(Q){if(Number.isNaN(Q))return;if(this._current.count+=1,this._current.sum+=Q,this._recordMinMax)this._current.min=Math.min(Q,this._current.min),this._current.max=Math.max(Q,this._current.max),this._current.hasMinMax=!0;let Y=(0,ql.binarySearchUB)(this._boundaries,Q);this._current.buckets.counts[Y]+=1}setStartTime(Q){this.startTime=Q}toPointValue(){return this._current}}QV.HistogramAccumulation=U6;class JV{kind=Wl.AggregatorKind.HISTOGRAM;_boundaries;_recordMinMax;constructor(Q,Y){this._boundaries=Q,this._recordMinMax=Y}createAccumulation(Q){return new U6(Q,this._boundaries,this._recordMinMax)}merge(Q,Y){let G=Q.toPointValue(),K=Y.toPointValue(),z=G.buckets.counts,W=K.buckets.counts,J=Array(z.length);for(let q=0;q<z.length;q++)J[q]=z[q]+W[q];let Z=1/0,X=-1/0;if(this._recordMinMax){if(G.hasMinMax&&K.hasMinMax)Z=Math.min(G.min,K.min),X=Math.max(G.max,K.max);else if(G.hasMinMax)Z=G.min,X=G.max;else if(K.hasMinMax)Z=K.min,X=K.max}return new U6(Q.startTime,G.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:G.buckets.boundaries,counts:J},count:G.count+K.count,sum:G.sum+K.sum,hasMinMax:this._recordMinMax&&(G.hasMinMax||K.hasMinMax),min:Z,max:X})}diff(Q,Y){let G=Q.toPointValue(),K=Y.toPointValue(),z=G.buckets.counts,W=K.buckets.counts,J=Array(z.length);for(let Z=0;Z<z.length;Z++)J[Z]=W[Z]-z[Z];return new U6(Y.startTime,G.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:G.buckets.boundaries,counts:J},count:K.count-G.count,sum:K.sum-G.sum,hasMinMax:!1,min:1/0,max:-1/0})}toMetricData(Q,Y,G,K){return{descriptor:Q,aggregationTemporality:Y,dataPointType:D6.DataPointType.HISTOGRAM,dataPoints:G.map(([z,W])=>{let J=W.toPointValue(),Z=Q.type===D6.InstrumentType.GAUGE||Q.type===D6.InstrumentType.UP_DOWN_COUNTER||Q.type===D6.InstrumentType.OBSERVABLE_GAUGE||Q.type===D6.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:z,startTime:W.startTime,endTime:K,value:{min:J.hasMinMax?J.min:void 0,max:J.hasMinMax?J.max:void 0,sum:!Z?J.sum:void 0,buckets:J.buckets,count:J.count}}})}}}QV.HistogramAggregator=JV});var WV=V((zV)=>{Object.defineProperty(zV,"__esModule",{value:!0});zV.Buckets=void 0;class F4{backing;indexBase;indexStart;indexEnd;constructor(Q=new H4,Y=0,G=0,K=0){this.backing=Q,this.indexBase=Y,this.indexStart=G,this.indexEnd=K}get offset(){return this.indexStart}get length(){if(this.backing.length===0)return 0;if(this.indexEnd===this.indexStart&&this.at(0)===0)return 0;return this.indexEnd-this.indexStart+1}counts(){return Array.from({length:this.length},(Q,Y)=>this.at(Y))}at(Q){let Y=this.indexBase-this.indexStart;if(Q<Y)Q+=this.backing.length;return Q-=Y,this.backing.countAt(Q)}incrementBucket(Q,Y){this.backing.increment(Q,Y)}decrementBucket(Q,Y){this.backing.decrement(Q,Y)}trim(){for(let Q=0;Q<this.length;Q++)if(this.at(Q)!==0){this.indexStart+=Q;break}else if(Q===this.length-1){this.indexStart=this.indexEnd=this.indexBase=0;return}for(let Q=this.length-1;Q>=0;Q--)if(this.at(Q)!==0){this.indexEnd-=this.length-Q-1;break}this._rotate()}downscale(Q){this._rotate();let Y=1+this.indexEnd-this.indexStart,G=1<<Q,K=0,z=0;for(let W=this.indexStart;W<=this.indexEnd;){let J=W%G;if(J<0)J+=G;for(let Z=J;Z<G&&K<Y;Z++)this._relocateBucket(z,K),K++,W++;z++}this.indexStart>>=Q,this.indexEnd>>=Q,this.indexBase=this.indexStart}clone(){return new F4(this.backing.clone(),this.indexBase,this.indexStart,this.indexEnd)}_rotate(){let Q=this.indexBase-this.indexStart;if(Q===0)return;else if(Q>0)this.backing.reverse(0,this.backing.length),this.backing.reverse(0,Q),this.backing.reverse(Q,this.backing.length);else this.backing.reverse(0,this.backing.length),this.backing.reverse(0,this.backing.length+Q);this.indexBase=this.indexStart}_relocateBucket(Q,Y){if(Q===Y)return;this.incrementBucket(Q,this.backing.emptyBucket(Y))}}zV.Buckets=F4;class H4{_counts;constructor(Q=[0]){this._counts=Q}get length(){return this._counts.length}countAt(Q){return this._counts[Q]}growTo(Q,Y,G){let K=Array(Q).fill(0);K.splice(G,this._counts.length-Y,...this._counts.slice(Y)),K.splice(0,Y,...this._counts.slice(0,Y)),this._counts=K}reverse(Q,Y){let G=Math.floor((Q+Y)/2)-Q;for(let K=0;K<G;K++){let z=this._counts[Q+K];this._counts[Q+K]=this._counts[Y-K-1],this._counts[Y-K-1]=z}}emptyBucket(Q){let Y=this._counts[Q];return this._counts[Q]=0,Y}increment(Q,Y){this._counts[Q]+=Y}decrement(Q,Y){if(this._counts[Q]>=Y)this._counts[Q]-=Y;else this._counts[Q]=0}clone(){return new H4([...this._counts])}}});var B4=V((qV)=>{Object.defineProperty(qV,"__esModule",{value:!0});qV.getSignificand=qV.getNormalBase2=qV.MIN_VALUE=qV.MAX_NORMAL_EXPONENT=qV.MIN_NORMAL_EXPONENT=qV.SIGNIFICAND_WIDTH=void 0;qV.SIGNIFICAND_WIDTH=52;var Hl=2146435072,Ol=1048575,O4=1023;qV.MIN_NORMAL_EXPONENT=-O4+1;qV.MAX_NORMAL_EXPONENT=O4;qV.MIN_VALUE=Math.pow(2,-1022);function Bl(Q){let Y=new DataView(new ArrayBuffer(8));return Y.setFloat64(0,Q),((Y.getUint32(0)&Hl)>>20)-O4}qV.getNormalBase2=Bl;function Vl(Q){let Y=new DataView(new ArrayBuffer(8));Y.setFloat64(0,Q);let G=Y.getUint32(0),K=Y.getUint32(4);return(G&Ol)*Math.pow(2,32)+K}qV.getSignificand=Vl});var $Z=V((FV)=>{Object.defineProperty(FV,"__esModule",{value:!0});FV.nextGreaterSquare=FV.ldexp=void 0;function Al(Q,Y){if(Q===0||Q===Number.POSITIVE_INFINITY||Q===Number.NEGATIVE_INFINITY||Number.isNaN(Q))return Q;return Q*Math.pow(2,Y)}FV.ldexp=Al;function El(Q){return Q--,Q|=Q>>1,Q|=Q>>2,Q|=Q>>4,Q|=Q>>8,Q|=Q>>16,Q++,Q}FV.nextGreaterSquare=El});var SZ=V((BV)=>{Object.defineProperty(BV,"__esModule",{value:!0});BV.MappingError=void 0;class OV extends Error{}BV.MappingError=OV});var UV=V((CV)=>{Object.defineProperty(CV,"__esModule",{value:!0});CV.ExponentMapping=void 0;var y1=B4(),hl=$Z(),NV=SZ();class IV{_shift;constructor(Q){this._shift=-Q}mapToIndex(Q){if(Q<y1.MIN_VALUE)return this._minNormalLowerBoundaryIndex();let Y=y1.getNormalBase2(Q),G=this._rightShift(y1.getSignificand(Q)-1,y1.SIGNIFICAND_WIDTH);return Y+G>>this._shift}lowerBoundary(Q){let Y=this._minNormalLowerBoundaryIndex();if(Q<Y)throw new NV.MappingError(`underflow: ${Q} is < minimum lower boundary: ${Y}`);let G=this._maxNormalLowerBoundaryIndex();if(Q>G)throw new NV.MappingError(`overflow: ${Q} is > maximum lower boundary: ${G}`);return hl.ldexp(1,Q<<this._shift)}get scale(){if(this._shift===0)return 0;return-this._shift}_minNormalLowerBoundaryIndex(){let Q=y1.MIN_NORMAL_EXPONENT>>this._shift;if(this._shift<2)Q--;return Q}_maxNormalLowerBoundaryIndex(){return y1.MAX_NORMAL_EXPONENT>>this._shift}_rightShift(Q,Y){return Math.floor(Q*Math.pow(2,-Y))}}CV.ExponentMapping=IV});var MV=V((hV)=>{Object.defineProperty(hV,"__esModule",{value:!0});hV.LogarithmMapping=void 0;var v1=B4(),AV=$Z(),EV=SZ();class TV{_scale;_scaleFactor;_inverseFactor;constructor(Q){this._scale=Q,this._scaleFactor=AV.ldexp(Math.LOG2E,Q),this._inverseFactor=AV.ldexp(Math.LN2,-Q)}mapToIndex(Q){if(Q<=v1.MIN_VALUE)return this._minNormalLowerBoundaryIndex()-1;if(v1.getSignificand(Q)===0)return(v1.getNormalBase2(Q)<<this._scale)-1;let Y=Math.floor(Math.log(Q)*this._scaleFactor),G=this._maxNormalLowerBoundaryIndex();if(Y>=G)return G;return Y}lowerBoundary(Q){let Y=this._maxNormalLowerBoundaryIndex();if(Q>=Y){if(Q===Y)return 2*Math.exp((Q-(1<<this._scale))/this._scaleFactor);throw new EV.MappingError(`overflow: ${Q} is > maximum lower boundary: ${Y}`)}let G=this._minNormalLowerBoundaryIndex();if(Q<=G){if(Q===G)return v1.MIN_VALUE;else if(Q===G-1)return Math.exp((Q+(1<<this._scale))/this._scaleFactor)/2;throw new EV.MappingError(`overflow: ${Q} is < minimum lower boundary: ${G}`)}return Math.exp(Q*this._inverseFactor)}get scale(){return this._scale}_minNormalLowerBoundaryIndex(){return v1.MIN_NORMAL_EXPONENT<<this._scale}_maxNormalLowerBoundaryIndex(){return(v1.MAX_NORMAL_EXPONENT+1<<this._scale)-1}}hV.LogarithmMapping=TV});var $V=V((RV)=>{Object.defineProperty(RV,"__esModule",{value:!0});RV.getMapping=void 0;var Ll=UV(),Ml=MV(),Pl=SZ(),PV=-10,wV=20,wl=Array.from({length:31},(Q,Y)=>{if(Y>10)return new Ml.LogarithmMapping(Y-10);return new Ll.ExponentMapping(Y-10)});function Rl(Q){if(Q>wV||Q<PV)throw new Pl.MappingError(`expected scale >= ${PV} && <= ${wV}, got: ${Q}`);return wl[Q+10]}RV.getMapping=Rl});var xV=V((yV)=>{Object.defineProperty(yV,"__esModule",{value:!0});yV.ExponentialHistogramAggregator=yV.ExponentialHistogramAccumulation=void 0;var kl=_1(),A6=c0(),$l=T(),SV=WV(),fV=$V(),Sl=$Z();class x1{static combine(Q,Y){return new x1(Math.min(Q.low,Y.low),Math.max(Q.high,Y.high))}low;high;constructor(Q,Y){this.low=Q,this.high=Y}}var fl=20,_l=160,V4=2;class fZ{startTime;_maxSize;_recordMinMax;_sum;_count;_zeroCount;_min;_max;_positive;_negative;_mapping;constructor(Q,Y=_l,G=!0,K=0,z=0,W=0,J=Number.POSITIVE_INFINITY,Z=Number.NEGATIVE_INFINITY,X=new SV.Buckets,q=new SV.Buckets,F=(0,fV.getMapping)(fl)){if(this.startTime=Q,this._maxSize=Y,this._recordMinMax=G,this._sum=K,this._count=z,this._zeroCount=W,this._min=J,this._max=Z,this._positive=X,this._negative=q,this._mapping=F,this._maxSize<V4)$l.diag.warn(`Exponential Histogram Max Size set to ${this._maxSize}, changing to the minimum size of: ${V4}`),this._maxSize=V4}record(Q){this.updateByIncrement(Q,1)}setStartTime(Q){this.startTime=Q}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(){if(this._count===this._zeroCount)return 0;return this._mapping.scale}get positive(){return this._positive}get negative(){return this._negative}updateByIncrement(Q,Y){if(Number.isNaN(Q))return;if(Q>this._max)this._max=Q;if(Q<this._min)this._min=Q;if(this._count+=Y,Q===0){this._zeroCount+=Y;return}if(this._sum+=Q*Y,Q>0)this._updateBuckets(this._positive,Q,Y);else this._updateBuckets(this._negative,-Q,Y)}merge(Q){if(this._count===0)this._min=Q.min,this._max=Q.max;else if(Q.count!==0){if(Q.min<this.min)this._min=Q.min;if(Q.max>this.max)this._max=Q.max}this.startTime=Q.startTime,this._sum+=Q.sum,this._count+=Q.count,this._zeroCount+=Q.zeroCount;let Y=this._minScale(Q);this._downscale(this.scale-Y),this._mergeBuckets(this.positive,Q,Q.positive,Y),this._mergeBuckets(this.negative,Q,Q.negative,Y)}diff(Q){this._min=1/0,this._max=-1/0,this._sum-=Q.sum,this._count-=Q.count,this._zeroCount-=Q.zeroCount;let Y=this._minScale(Q);this._downscale(this.scale-Y),this._diffBuckets(this.positive,Q,Q.positive,Y),this._diffBuckets(this.negative,Q,Q.negative,Y)}clone(){return new fZ(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(Q,Y,G){let K=this._mapping.mapToIndex(Y),z=!1,W=0,J=0;if(Q.length===0)Q.indexStart=K,Q.indexEnd=Q.indexStart,Q.indexBase=Q.indexStart;else if(K<Q.indexStart&&Q.indexEnd-K>=this._maxSize)z=!0,J=K,W=Q.indexEnd;else if(K>Q.indexEnd&&K-Q.indexStart>=this._maxSize)z=!0,J=Q.indexStart,W=K;if(z){let Z=this._changeScale(W,J);this._downscale(Z),K=this._mapping.mapToIndex(Y)}this._incrementIndexBy(Q,K,G)}_incrementIndexBy(Q,Y,G){if(G===0)return;if(Q.length===0)Q.indexStart=Q.indexEnd=Q.indexBase=Y;if(Y<Q.indexStart){let z=Q.indexEnd-Y;if(z>=Q.backing.length)this._grow(Q,z+1);Q.indexStart=Y}else if(Y>Q.indexEnd){let z=Y-Q.indexStart;if(z>=Q.backing.length)this._grow(Q,z+1);Q.indexEnd=Y}let K=Y-Q.indexBase;if(K<0)K+=Q.backing.length;Q.incrementBucket(K,G)}_grow(Q,Y){let G=Q.backing.length,K=Q.indexBase-Q.indexStart,z=G-K,W=(0,Sl.nextGreaterSquare)(Y);if(W>this._maxSize)W=this._maxSize;let J=W-K;Q.backing.growTo(W,z,J)}_changeScale(Q,Y){let G=0;while(Q-Y>=this._maxSize)Q>>=1,Y>>=1,G++;return G}_downscale(Q){if(Q===0)return;if(Q<0)throw Error(`impossible change of scale: ${this.scale}`);let Y=this._mapping.scale-Q;this._positive.downscale(Q),this._negative.downscale(Q),this._mapping=(0,fV.getMapping)(Y)}_minScale(Q){let Y=Math.min(this.scale,Q.scale),G=x1.combine(this._highLowAtScale(this.positive,this.scale,Y),this._highLowAtScale(Q.positive,Q.scale,Y)),K=x1.combine(this._highLowAtScale(this.negative,this.scale,Y),this._highLowAtScale(Q.negative,Q.scale,Y));return Math.min(Y-this._changeScale(G.high,G.low),Y-this._changeScale(K.high,K.low))}_highLowAtScale(Q,Y,G){if(Q.length===0)return new x1(0,-1);let K=Y-G;return new x1(Q.indexStart>>K,Q.indexEnd>>K)}_mergeBuckets(Q,Y,G,K){let z=G.offset,W=Y.scale-K;for(let J=0;J<G.length;J++)this._incrementIndexBy(Q,z+J>>W,G.at(J))}_diffBuckets(Q,Y,G,K){let z=G.offset,W=Y.scale-K;for(let J=0;J<G.length;J++){let X=(z+J>>W)-Q.indexBase;if(X<0)X+=Q.backing.length;Q.decrementBucket(X,G.at(J))}Q.trim()}}yV.ExponentialHistogramAccumulation=fZ;class _V{kind=kl.AggregatorKind.EXPONENTIAL_HISTOGRAM;_maxSize;_recordMinMax;constructor(Q,Y){this._maxSize=Q,this._recordMinMax=Y}createAccumulation(Q){return new fZ(Q,this._maxSize,this._recordMinMax)}merge(Q,Y){let G=Y.clone();return G.merge(Q),G}diff(Q,Y){let G=Y.clone();return G.diff(Q),G}toMetricData(Q,Y,G,K){return{descriptor:Q,aggregationTemporality:Y,dataPointType:A6.DataPointType.EXPONENTIAL_HISTOGRAM,dataPoints:G.map(([z,W])=>{let J=W.toPointValue(),Z=Q.type===A6.InstrumentType.GAUGE||Q.type===A6.InstrumentType.UP_DOWN_COUNTER||Q.type===A6.InstrumentType.OBSERVABLE_GAUGE||Q.type===A6.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:z,startTime:W.startTime,endTime:K,value:{min:J.hasMinMax?J.min:void 0,max:J.hasMinMax?J.max:void 0,sum:!Z?J.sum:void 0,positive:{offset:J.positive.offset,bucketCounts:J.positive.bucketCounts},negative:{offset:J.negative.offset,bucketCounts:J.negative.bucketCounts},count:J.count,scale:J.scale,zeroCount:J.zeroCount}}})}}}yV.ExponentialHistogramAggregator=_V});var uV=V((bV)=>{Object.defineProperty(bV,"__esModule",{value:!0});bV.LastValueAggregator=bV.LastValueAccumulation=void 0;var vl=_1(),E6=S(),xl=c0();class T6{startTime;_current;sampleTime;constructor(Q,Y=0,G=[0,0]){this.startTime=Q,this._current=Y,this.sampleTime=G}record(Q){this._current=Q,this.sampleTime=(0,E6.millisToHrTime)(Date.now())}setStartTime(Q){this.startTime=Q}toPointValue(){return this._current}}bV.LastValueAccumulation=T6;class jV{kind=vl.AggregatorKind.LAST_VALUE;createAccumulation(Q){return new T6(Q)}merge(Q,Y){let G=(0,E6.hrTimeToMicroseconds)(Y.sampleTime)>=(0,E6.hrTimeToMicroseconds)(Q.sampleTime)?Y:Q;return new T6(Q.startTime,G.toPointValue(),G.sampleTime)}diff(Q,Y){let G=(0,E6.hrTimeToMicroseconds)(Y.sampleTime)>=(0,E6.hrTimeToMicroseconds)(Q.sampleTime)?Y:Q;return new T6(Y.startTime,G.toPointValue(),G.sampleTime)}toMetricData(Q,Y,G,K){return{descriptor:Q,aggregationTemporality:Y,dataPointType:xl.DataPointType.GAUGE,dataPoints:G.map(([z,W])=>{return{attributes:z,startTime:W.startTime,endTime:K,value:W.toPointValue()}})}}}bV.LastValueAggregator=jV});var mV=V((cV)=>{Object.defineProperty(cV,"__esModule",{value:!0});cV.SumAggregator=cV.SumAccumulation=void 0;var bl=_1(),dl=c0();class H1{startTime;monotonic;_current;reset;constructor(Q,Y,G=0,K=!1){this.startTime=Q,this.monotonic=Y,this._current=G,this.reset=K}record(Q){if(this.monotonic&&Q<0)return;this._current+=Q}setStartTime(Q){this.startTime=Q}toPointValue(){return this._current}}cV.SumAccumulation=H1;class lV{kind=bl.AggregatorKind.SUM;monotonic;constructor(Q){this.monotonic=Q}createAccumulation(Q){return new H1(Q,this.monotonic)}merge(Q,Y){let G=Q.toPointValue(),K=Y.toPointValue();if(Y.reset)return new H1(Y.startTime,this.monotonic,K,Y.reset);return new H1(Q.startTime,this.monotonic,G+K)}diff(Q,Y){let G=Q.toPointValue(),K=Y.toPointValue();if(this.monotonic&&G>K)return new H1(Y.startTime,this.monotonic,K,!0);return new H1(Y.startTime,this.monotonic,K-G)}toMetricData(Q,Y,G,K){return{descriptor:Q,aggregationTemporality:Y,dataPointType:dl.DataPointType.SUM,dataPoints:G.map(([z,W])=>{return{attributes:z,startTime:W.startTime,endTime:K,value:W.toPointValue()}}),isMonotonic:this.monotonic}}}cV.SumAggregator=lV});var aV=V((D0)=>{Object.defineProperty(D0,"__esModule",{value:!0});D0.SumAggregator=D0.SumAccumulation=D0.LastValueAggregator=D0.LastValueAccumulation=D0.ExponentialHistogramAggregator=D0.ExponentialHistogramAccumulation=D0.HistogramAggregator=D0.HistogramAccumulation=D0.DropAggregator=void 0;var ll=ZV();Object.defineProperty(D0,"DropAggregator",{enumerable:!0,get:function(){return ll.DropAggregator}});var pV=YV();Object.defineProperty(D0,"HistogramAccumulation",{enumerable:!0,get:function(){return pV.HistogramAccumulation}});Object.defineProperty(D0,"HistogramAggregator",{enumerable:!0,get:function(){return pV.HistogramAggregator}});var gV=xV();Object.defineProperty(D0,"ExponentialHistogramAccumulation",{enumerable:!0,get:function(){return gV.ExponentialHistogramAccumulation}});Object.defineProperty(D0,"ExponentialHistogramAggregator",{enumerable:!0,get:function(){return gV.ExponentialHistogramAggregator}});var iV=uV();Object.defineProperty(D0,"LastValueAccumulation",{enumerable:!0,get:function(){return iV.LastValueAccumulation}});Object.defineProperty(D0,"LastValueAggregator",{enumerable:!0,get:function(){return iV.LastValueAggregator}});var oV=mV();Object.defineProperty(D0,"SumAccumulation",{enumerable:!0,get:function(){return oV.SumAccumulation}});Object.defineProperty(D0,"SumAggregator",{enumerable:!0,get:function(){return oV.SumAggregator}})});var QN=V((tV)=>{Object.defineProperty(tV,"__esModule",{value:!0});tV.DEFAULT_AGGREGATION=tV.EXPONENTIAL_HISTOGRAM_AGGREGATION=tV.HISTOGRAM_AGGREGATION=tV.LAST_VALUE_AGGREGATION=tV.SUM_AGGREGATION=tV.DROP_AGGREGATION=tV.DefaultAggregation=tV.ExponentialHistogramAggregation=tV.ExplicitBucketHistogramAggregation=tV.HistogramAggregation=tV.LastValueAggregation=tV.SumAggregation=tV.DropAggregation=void 0;var nl=T(),O1=aV(),T0=c0();class _Z{static DEFAULT_INSTANCE=new O1.DropAggregator;createAggregator(Q){return _Z.DEFAULT_INSTANCE}}tV.DropAggregation=_Z;class h6{static MONOTONIC_INSTANCE=new O1.SumAggregator(!0);static NON_MONOTONIC_INSTANCE=new O1.SumAggregator(!1);createAggregator(Q){switch(Q.type){case T0.InstrumentType.COUNTER:case T0.InstrumentType.OBSERVABLE_COUNTER:case T0.InstrumentType.HISTOGRAM:return h6.MONOTONIC_INSTANCE;default:return h6.NON_MONOTONIC_INSTANCE}}}tV.SumAggregation=h6;class yZ{static DEFAULT_INSTANCE=new O1.LastValueAggregator;createAggregator(Q){return yZ.DEFAULT_INSTANCE}}tV.LastValueAggregation=yZ;class vZ{static DEFAULT_INSTANCE=new O1.HistogramAggregator([0,5,10,25,50,75,100,250,500,750,1000,2500,5000,7500,1e4],!0);createAggregator(Q){return vZ.DEFAULT_INSTANCE}}tV.HistogramAggregation=vZ;class N4{_boundaries;_recordMinMax;constructor(Q,Y=!0){if(Q==null)throw Error("ExplicitBucketHistogramAggregation should be created with explicit boundaries, if a single bucket histogram is required, please pass an empty array");Q=Q.concat(),Q=Q.sort((z,W)=>z-W);let G=Q.lastIndexOf(-1/0),K=Q.indexOf(1/0);if(K===-1)K=void 0;this._boundaries=Q.slice(G+1,K),this._recordMinMax=Y}createAggregator(Q){return new O1.HistogramAggregator(this._boundaries,this._recordMinMax)}}tV.ExplicitBucketHistogramAggregation=N4;class I4{_maxSize;_recordMinMax;constructor(Q=160,Y=!0){this._maxSize=Q,this._recordMinMax=Y}createAggregator(Q){return new O1.ExponentialHistogramAggregator(this._maxSize,this._recordMinMax)}}tV.ExponentialHistogramAggregation=I4;class C4{_resolve(Q){switch(Q.type){case T0.InstrumentType.COUNTER:case T0.InstrumentType.UP_DOWN_COUNTER:case T0.InstrumentType.OBSERVABLE_COUNTER:case T0.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER:return tV.SUM_AGGREGATION;case T0.InstrumentType.GAUGE:case T0.InstrumentType.OBSERVABLE_GAUGE:return tV.LAST_VALUE_AGGREGATION;case T0.InstrumentType.HISTOGRAM:{if(Q.advice.explicitBucketBoundaries)return new N4(Q.advice.explicitBucketBoundaries);return tV.HISTOGRAM_AGGREGATION}}return nl.diag.warn(`Unable to recognize instrument type: ${Q.type}`),tV.DROP_AGGREGATION}createAggregator(Q){return this._resolve(Q).createAggregator(Q)}}tV.DefaultAggregation=C4;tV.DROP_AGGREGATION=new _Z;tV.SUM_AGGREGATION=new h6;tV.LAST_VALUE_AGGREGATION=new yZ;tV.HISTOGRAM_AGGREGATION=new vZ;tV.EXPONENTIAL_HISTOGRAM_AGGREGATION=new I4;tV.DEFAULT_AGGREGATION=new C4});var L6=V((YN)=>{Object.defineProperty(YN,"__esModule",{value:!0});YN.toAggregation=YN.AggregationType=void 0;var B1=QN(),V1;(function(Q){Q[Q.DEFAULT=0]="DEFAULT",Q[Q.DROP=1]="DROP",Q[Q.SUM=2]="SUM",Q[Q.LAST_VALUE=3]="LAST_VALUE",Q[Q.EXPLICIT_BUCKET_HISTOGRAM=4]="EXPLICIT_BUCKET_HISTOGRAM",Q[Q.EXPONENTIAL_HISTOGRAM=5]="EXPONENTIAL_HISTOGRAM"})(V1=YN.AggregationType||(YN.AggregationType={}));function sl(Q){switch(Q.type){case V1.DEFAULT:return B1.DEFAULT_AGGREGATION;case V1.DROP:return B1.DROP_AGGREGATION;case V1.SUM:return B1.SUM_AGGREGATION;case V1.LAST_VALUE:return B1.LAST_VALUE_AGGREGATION;case V1.EXPONENTIAL_HISTOGRAM:{let Y=Q;return new B1.ExponentialHistogramAggregation(Y.options?.maxSize,Y.options?.recordMinMax)}case V1.EXPLICIT_BUCKET_HISTOGRAM:{let Y=Q;if(Y.options==null)return B1.HISTOGRAM_AGGREGATION;else return new B1.ExplicitBucketHistogramAggregation(Y.options?.boundaries,Y.options?.recordMinMax)}default:throw Error("Unsupported Aggregation")}}YN.toAggregation=sl});var D4=V((GN)=>{Object.defineProperty(GN,"__esModule",{value:!0});GN.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR=GN.DEFAULT_AGGREGATION_SELECTOR=void 0;var el=RZ(),Zc=L6(),Jc=(Q)=>{return{type:Zc.AggregationType.DEFAULT}};GN.DEFAULT_AGGREGATION_SELECTOR=Jc;var Qc=(Q)=>el.AggregationTemporality.CUMULATIVE;GN.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR=Qc});var U4=V((ON)=>{Object.defineProperty(ON,"__esModule",{value:!0});ON.MetricReader=void 0;var qN=T(),KN=E0(),FN=D4();class HN{_shutdown=!1;_metricProducers;_sdkMetricProducer;_aggregationTemporalitySelector;_aggregationSelector;_cardinalitySelector;constructor(Q){this._aggregationSelector=Q?.aggregationSelector??FN.DEFAULT_AGGREGATION_SELECTOR,this._aggregationTemporalitySelector=Q?.aggregationTemporalitySelector??FN.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR,this._metricProducers=Q?.metricProducers??[],this._cardinalitySelector=Q?.cardinalitySelector}setMetricProducer(Q){if(this._sdkMetricProducer)throw Error("MetricReader can not be bound to a MeterProvider again.");this._sdkMetricProducer=Q,this.onInitialized()}selectAggregation(Q){return this._aggregationSelector(Q)}selectAggregationTemporality(Q){return this._aggregationTemporalitySelector(Q)}selectCardinalityLimit(Q){return this._cardinalitySelector?this._cardinalitySelector(Q):2000}onInitialized(){}async collect(Q){if(this._sdkMetricProducer===void 0)throw Error("MetricReader is not bound to a MetricProducer");if(this._shutdown)throw Error("MetricReader is shutdown");let[Y,...G]=await Promise.all([this._sdkMetricProducer.collect({timeoutMillis:Q?.timeoutMillis}),...this._metricProducers.map((J)=>J.collect({timeoutMillis:Q?.timeoutMillis}))]),K=Y.errors.concat(G.flatMap((J)=>J.errors)),z=Y.resourceMetrics.resource,W=Y.resourceMetrics.scopeMetrics.concat(G.flatMap((J)=>J.resourceMetrics.scopeMetrics));return{resourceMetrics:{resource:z,scopeMetrics:W},errors:K}}async shutdown(Q){if(this._shutdown){qN.diag.error("Cannot call shutdown twice.");return}if(Q?.timeoutMillis==null)await this.onShutdown();else await(0,KN.callWithTimeout)(this.onShutdown(),Q.timeoutMillis);this._shutdown=!0}async forceFlush(Q){if(this._shutdown){qN.diag.warn("Cannot forceFlush on already shutdown MetricReader.");return}if(Q?.timeoutMillis==null){await this.onForceFlush();return}await(0,KN.callWithTimeout)(this.onForceFlush(),Q.timeoutMillis)}}ON.MetricReader=HN});var DN=V((IN)=>{Object.defineProperty(IN,"__esModule",{value:!0});IN.PeriodicExportingMetricReader=void 0;var xZ=T(),jZ=S(),Yc=U4(),VN=E0();class NN extends Yc.MetricReader{_interval;_exporter;_exportInterval;_exportTimeout;constructor(Q){let{exporter:Y,exportIntervalMillis:G=60000,metricProducers:K}=Q,{exportTimeoutMillis:z=30000}=Q;super({aggregationSelector:Y.selectAggregation?.bind(Y),aggregationTemporalitySelector:Y.selectAggregationTemporality?.bind(Y),metricProducers:K});if(G<=0)throw Error("exportIntervalMillis must be greater than 0");if(z<=0)throw Error("exportTimeoutMillis must be greater than 0");if(G<z)if("exportIntervalMillis"in Q&&"exportTimeoutMillis"in Q)throw Error("exportIntervalMillis must be greater than or equal to exportTimeoutMillis");else xZ.diag.info(`Timeout of ${z} exceeds the interval of ${G}. Clamping timeout to interval duration.`),z=G;this._exportInterval=G,this._exportTimeout=z,this._exporter=Y}async _runOnce(){try{await(0,VN.callWithTimeout)(this._doRun(),this._exportTimeout)}catch(Q){if(Q instanceof VN.TimeoutError){xZ.diag.error("Export took longer than %s milliseconds and timed out.",this._exportTimeout);return}(0,jZ.globalErrorHandler)(Q)}}async _doRun(){let{resourceMetrics:Q,errors:Y}=await this.collect({timeoutMillis:this._exportTimeout});if(Y.length>0)xZ.diag.error("PeriodicExportingMetricReader: metrics collection errors",...Y);if(Q.resource.asyncAttributesPending)try{await Q.resource.waitForAsyncAttributes?.()}catch(K){xZ.diag.debug("Error while resolving async portion of resource: ",K),(0,jZ.globalErrorHandler)(K)}if(Q.scopeMetrics.length===0)return;let G=await jZ.internal._export(this._exporter,Q);if(G.code!==jZ.ExportResultCode.SUCCESS)throw Error(`PeriodicExportingMetricReader: metrics export failed (error ${G.error})`)}onInitialized(){if(this._interval=setInterval(()=>{this._runOnce()},this._exportInterval),typeof this._interval!=="number")this._interval.unref()}async onForceFlush(){await this._runOnce(),await this._exporter.forceFlush()}async onShutdown(){if(this._interval)clearInterval(this._interval);await this.onForceFlush(),await this._exporter.shutdown()}}IN.PeriodicExportingMetricReader=NN});var hN=V((EN)=>{Object.defineProperty(EN,"__esModule",{value:!0});EN.InMemoryMetricExporter=void 0;var UN=S();class AN{_shutdown=!1;_aggregationTemporality;_metrics=[];constructor(Q){this._aggregationTemporality=Q}export(Q,Y){if(this._shutdown){setTimeout(()=>Y({code:UN.ExportResultCode.FAILED}),0);return}this._metrics.push(Q),setTimeout(()=>Y({code:UN.ExportResultCode.SUCCESS}),0)}getMetrics(){return this._metrics}forceFlush(){return Promise.resolve()}reset(){this._metrics=[]}selectAggregationTemporality(Q){return this._aggregationTemporality}shutdown(){return this._shutdown=!0,Promise.resolve()}}EN.InMemoryMetricExporter=AN});var wN=V((MN)=>{Object.defineProperty(MN,"__esModule",{value:!0});MN.ConsoleMetricExporter=void 0;var LN=S(),zc=D4();class A4{_shutdown=!1;_temporalitySelector;constructor(Q){this._temporalitySelector=Q?.temporalitySelector??zc.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR}export(Q,Y){if(this._shutdown){Y({code:LN.ExportResultCode.FAILED});return}return A4._sendMetrics(Q,Y)}forceFlush(){return Promise.resolve()}selectAggregationTemporality(Q){return this._temporalitySelector(Q)}shutdown(){return this._shutdown=!0,Promise.resolve()}static _sendMetrics(Q,Y){for(let G of Q.scopeMetrics)for(let K of G.metrics)console.dir({descriptor:K.descriptor,dataPointType:K.dataPointType,dataPoints:K.dataPoints},{depth:null});Y({code:LN.ExportResultCode.SUCCESS})}}MN.ConsoleMetricExporter=A4});var E4=V((RN)=>{Object.defineProperty(RN,"__esModule",{value:!0});RN._clearDefaultServiceNameCache=RN.defaultServiceName=void 0;var M6;function Gc(){if(M6===void 0)try{let Q=globalThis.process.argv0;M6=Q?`unknown_service:${Q}`:"unknown_service"}catch{M6="unknown_service"}return M6}RN.defaultServiceName=Gc;function Wc(){M6=void 0}RN._clearDefaultServiceNameCache=Wc});var fN=V(($N)=>{Object.defineProperty($N,"__esModule",{value:!0});$N.isPromiseLike=void 0;var Kc=(Q)=>{return Q!==null&&typeof Q==="object"&&typeof Q.then==="function"};$N.isPromiseLike=Kc});var L4=V((yN)=>{Object.defineProperty(yN,"__esModule",{value:!0});yN.defaultResource=yN.emptyResource=yN.resourceFromDetectedResource=yN.resourceFromAttributes=void 0;var w6=T(),T4=S(),N1=X1(),Fc=E4(),P6=fN();class R6{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(Q,Y){let G=new R6({},Y);return G._rawAttributes=_N(Q),G._asyncAttributesPending=Q.filter(([K,z])=>(0,P6.isPromiseLike)(z)).length>0,G}constructor(Q,Y){let G=Q.attributes??{};this._rawAttributes=Object.entries(G).map(([K,z])=>{if((0,P6.isPromiseLike)(z))this._asyncAttributesPending=!0;return[K,z]}),this._rawAttributes=_N(this._rawAttributes),this._schemaUrl=Vc(Y?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(!this.asyncAttributesPending)return;for(let Q=0;Q<this._rawAttributes.length;Q++){let[Y,G]=this._rawAttributes[Q];this._rawAttributes[Q]=[Y,(0,P6.isPromiseLike)(G)?await G:G]}this._asyncAttributesPending=!1}get attributes(){if(this.asyncAttributesPending)w6.diag.error("Accessing resource attributes before async attributes settled");if(this._memoizedAttributes)return this._memoizedAttributes;let Q={};for(let[Y,G]of this._rawAttributes){if((0,P6.isPromiseLike)(G)){w6.diag.debug(`Unsettled resource attribute ${Y} skipped`);continue}if(G!=null)Q[Y]??=G}if(!this._asyncAttributesPending)this._memoizedAttributes=Q;return Q}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(Q){if(Q==null)return this;let Y=Nc(this,Q),G=Y?{schemaUrl:Y}:void 0;return R6.FromAttributeList([...Q.getRawAttributes(),...this.getRawAttributes()],G)}}function h4(Q,Y){return R6.FromAttributeList(Object.entries(Q),Y)}yN.resourceFromAttributes=h4;function Hc(Q,Y){return new R6(Q,Y)}yN.resourceFromDetectedResource=Hc;function Oc(){return h4({})}yN.emptyResource=Oc;function Bc(){return h4({[N1.ATTR_SERVICE_NAME]:(0,Fc.defaultServiceName)(),[N1.ATTR_TELEMETRY_SDK_LANGUAGE]:T4.SDK_INFO[N1.ATTR_TELEMETRY_SDK_LANGUAGE],[N1.ATTR_TELEMETRY_SDK_NAME]:T4.SDK_INFO[N1.ATTR_TELEMETRY_SDK_NAME],[N1.ATTR_TELEMETRY_SDK_VERSION]:T4.SDK_INFO[N1.ATTR_TELEMETRY_SDK_VERSION]})}yN.defaultResource=Bc;function _N(Q){return Q.map(([Y,G])=>{if((0,P6.isPromiseLike)(G))return[Y,G.catch((K)=>{w6.diag.debug("promise rejection for resource attribute: %s - %s",Y,K);return})];return[Y,G]})}function Vc(Q){if(typeof Q==="string"||Q===void 0)return Q;w6.diag.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",Q);return}function Nc(Q,Y){let G=Q?.schemaUrl,K=Y?.schemaUrl,z=G===void 0||G==="",W=K===void 0||K==="";if(z)return K;if(W)return G;if(G===K)return G;w6.diag.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',G,K);return}});var dN=V((jN)=>{Object.defineProperty(jN,"__esModule",{value:!0});jN.detectResources=void 0;var xN=T(),M4=L4(),Uc=(Q={})=>{return(Q.detectors||[]).map((G)=>{try{let K=(0,M4.resourceFromDetectedResource)(G.detect(Q));return xN.diag.debug(`${G.constructor.name} found resource.`,K),K}catch(K){return xN.diag.debug(`${G.constructor.name} failed: ${K.message}`),(0,M4.emptyResource)()}}).reduce((G,K)=>G.merge(K),(0,M4.emptyResource)())};jN.detectResources=Uc});var mN=V((cN)=>{Object.defineProperty(cN,"__esModule",{value:!0});cN.envDetector=void 0;var Ac=T(),Ec=X1(),uN=S();class lN{_MAX_LENGTH=255;_COMMA_SEPARATOR=",";_LABEL_KEY_VALUE_SPLITTER="=";detect(Q){let Y={},G=(0,uN.getStringFromEnv)("OTEL_RESOURCE_ATTRIBUTES"),K=(0,uN.getStringFromEnv)("OTEL_SERVICE_NAME");if(G)try{let z=this._parseResourceAttributes(G);Object.assign(Y,z)}catch(z){Ac.diag.debug(`EnvDetector failed: ${z instanceof Error?z.message:z}`)}if(K)Y[Ec.ATTR_SERVICE_NAME]=K;return{attributes:Y}}_parseResourceAttributes(Q){if(!Q)return{};let Y={},G=Q.split(this._COMMA_SEPARATOR);for(let K of G){let z=K.split(this._LABEL_KEY_VALUE_SPLITTER);if(z.length!==2)throw Error(`Invalid format for OTEL_RESOURCE_ATTRIBUTES: "${K}". Expected format: key=value. The ',' and '=' characters must be percent-encoded in keys and values.`);let[W,J]=z,Z=W.trim(),X=J.trim();if(Z.length===0)throw Error(`Invalid OTEL_RESOURCE_ATTRIBUTES: empty attribute key in "${K}".`);let q,F;try{q=decodeURIComponent(Z),F=decodeURIComponent(X)}catch(H){throw Error(`Failed to percent-decode OTEL_RESOURCE_ATTRIBUTES entry "${K}": ${H instanceof Error?H.message:H}`)}if(q.length>this._MAX_LENGTH)throw Error(`Attribute key exceeds the maximum length of ${this._MAX_LENGTH} characters: "${q}".`);if(F.length>this._MAX_LENGTH)throw Error(`Attribute value exceeds the maximum length of ${this._MAX_LENGTH} characters for key "${q}".`);Y[q]=F}return Y}}cN.envDetector=new lN});var k6=V((pN)=>{Object.defineProperty(pN,"__esModule",{value:!0});pN.ATTR_WEBENGINE_VERSION=pN.ATTR_WEBENGINE_NAME=pN.ATTR_WEBENGINE_DESCRIPTION=pN.ATTR_SERVICE_NAMESPACE=pN.ATTR_SERVICE_INSTANCE_ID=pN.ATTR_PROCESS_RUNTIME_VERSION=pN.ATTR_PROCESS_RUNTIME_NAME=pN.ATTR_PROCESS_RUNTIME_DESCRIPTION=pN.ATTR_PROCESS_PID=pN.ATTR_PROCESS_OWNER=pN.ATTR_PROCESS_EXECUTABLE_PATH=pN.ATTR_PROCESS_EXECUTABLE_NAME=pN.ATTR_PROCESS_COMMAND_ARGS=pN.ATTR_PROCESS_COMMAND=pN.ATTR_OS_VERSION=pN.ATTR_OS_TYPE=pN.ATTR_K8S_POD_NAME=pN.ATTR_K8S_NAMESPACE_NAME=pN.ATTR_K8S_DEPLOYMENT_NAME=pN.ATTR_K8S_CLUSTER_NAME=pN.ATTR_HOST_TYPE=pN.ATTR_HOST_NAME=pN.ATTR_HOST_IMAGE_VERSION=pN.ATTR_HOST_IMAGE_NAME=pN.ATTR_HOST_IMAGE_ID=pN.ATTR_HOST_ID=pN.ATTR_HOST_ARCH=pN.ATTR_CONTAINER_NAME=pN.ATTR_CONTAINER_IMAGE_TAGS=pN.ATTR_CONTAINER_IMAGE_NAME=pN.ATTR_CONTAINER_ID=pN.ATTR_CLOUD_REGION=pN.ATTR_CLOUD_PROVIDER=pN.ATTR_CLOUD_AVAILABILITY_ZONE=pN.ATTR_CLOUD_ACCOUNT_ID=void 0;pN.ATTR_CLOUD_ACCOUNT_ID="cloud.account.id";pN.ATTR_CLOUD_AVAILABILITY_ZONE="cloud.availability_zone";pN.ATTR_CLOUD_PROVIDER="cloud.provider";pN.ATTR_CLOUD_REGION="cloud.region";pN.ATTR_CONTAINER_ID="container.id";pN.ATTR_CONTAINER_IMAGE_NAME="container.image.name";pN.ATTR_CONTAINER_IMAGE_TAGS="container.image.tags";pN.ATTR_CONTAINER_NAME="container.name";pN.ATTR_HOST_ARCH="host.arch";pN.ATTR_HOST_ID="host.id";pN.ATTR_HOST_IMAGE_ID="host.image.id";pN.ATTR_HOST_IMAGE_NAME="host.image.name";pN.ATTR_HOST_IMAGE_VERSION="host.image.version";pN.ATTR_HOST_NAME="host.name";pN.ATTR_HOST_TYPE="host.type";pN.ATTR_K8S_CLUSTER_NAME="k8s.cluster.name";pN.ATTR_K8S_DEPLOYMENT_NAME="k8s.deployment.name";pN.ATTR_K8S_NAMESPACE_NAME="k8s.namespace.name";pN.ATTR_K8S_POD_NAME="k8s.pod.name";pN.ATTR_OS_TYPE="os.type";pN.ATTR_OS_VERSION="os.version";pN.ATTR_PROCESS_COMMAND="process.command";pN.ATTR_PROCESS_COMMAND_ARGS="process.command_args";pN.ATTR_PROCESS_EXECUTABLE_NAME="process.executable.name";pN.ATTR_PROCESS_EXECUTABLE_PATH="process.executable.path";pN.ATTR_PROCESS_OWNER="process.owner";pN.ATTR_PROCESS_PID="process.pid";pN.ATTR_PROCESS_RUNTIME_DESCRIPTION="process.runtime.description";pN.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name";pN.ATTR_PROCESS_RUNTIME_VERSION="process.runtime.version";pN.ATTR_SERVICE_INSTANCE_ID="service.instance.id";pN.ATTR_SERVICE_NAMESPACE="service.namespace";pN.ATTR_WEBENGINE_DESCRIPTION="webengine.description";pN.ATTR_WEBENGINE_NAME="webengine.name";pN.ATTR_WEBENGINE_VERSION="webengine.version"});var bZ=V((iN)=>{Object.defineProperty(iN,"__esModule",{value:!0});iN.execAsync=void 0;var Qn=j("child_process"),Xn=j("util");iN.execAsync=Xn.promisify(Qn.exec)});var rN=V((aN)=>{Object.defineProperty(aN,"__esModule",{value:!0});aN.getMachineId=void 0;var Yn=bZ(),zn=T();async function Gn(){try{let Y=(await(0,Yn.execAsync)('ioreg -rd1 -c "IOPlatformExpertDevice"')).stdout.split(`
|
|
2
2
|
`).find((K)=>K.includes("IOPlatformUUID"));if(!Y)return;let G=Y.split('" = "');if(G.length===2)return G[1].slice(0,-1)}catch(Q){zn.diag.debug(`error reading machine id: ${Q}`)}return}aN.getMachineId=Gn});var ZI=V((sN)=>{Object.defineProperty(sN,"__esModule",{value:!0});sN.getMachineId=void 0;var Wn=j("fs"),qn=T();async function Kn(){let Q=["/etc/machine-id","/var/lib/dbus/machine-id"];for(let Y of Q)try{return(await Wn.promises.readFile(Y,{encoding:"utf8"})).trim()}catch(G){qn.diag.debug(`error reading machine id: ${G}`)}return}sN.getMachineId=Kn});var YI=V((QI)=>{Object.defineProperty(QI,"__esModule",{value:!0});QI.getMachineId=void 0;var Fn=j("fs"),Hn=bZ(),JI=T();async function On(){try{return(await Fn.promises.readFile("/etc/hostid",{encoding:"utf8"})).trim()}catch(Q){JI.diag.debug(`error reading machine id: ${Q}`)}try{return(await(0,Hn.execAsync)("kenv -q smbios.system.uuid")).stdout.trim()}catch(Q){JI.diag.debug(`error reading machine id: ${Q}`)}return}QI.getMachineId=On});var qI=V((GI)=>{Object.defineProperty(GI,"__esModule",{value:!0});GI.getMachineId=void 0;var zI=j("process"),Bn=bZ(),Vn=T();async function Nn(){let Y="%windir%\\System32\\REG.exe";if(zI.arch==="ia32"&&"PROCESSOR_ARCHITEW6432"in zI.env)Y="%windir%\\sysnative\\cmd.exe /c "+Y;try{let K=(await(0,Bn.execAsync)(`${Y} QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid`)).stdout.split("REG_SZ");if(K.length===2)return K[1].trim()}catch(G){Vn.diag.debug(`error reading machine id: ${G}`)}return}GI.getMachineId=Nn});var HI=V((KI)=>{Object.defineProperty(KI,"__esModule",{value:!0});KI.getMachineId=void 0;var In=T();async function Cn(){In.diag.debug("could not read machine-id: unsupported platform");return}KI.getMachineId=Cn});var VI=V((OI)=>{Object.defineProperty(OI,"__esModule",{value:!0});OI.getMachineId=void 0;var Dn=j("process"),I1;async function Un(){if(!I1)switch(Dn.platform){case"darwin":I1=(await Promise.resolve().then(() => o(rN()))).getMachineId;break;case"linux":I1=(await Promise.resolve().then(() => o(ZI()))).getMachineId;break;case"freebsd":I1=(await Promise.resolve().then(() => o(YI()))).getMachineId;break;case"win32":I1=(await Promise.resolve().then(() => o(qI()))).getMachineId;break;default:I1=(await Promise.resolve().then(() => o(HI()))).getMachineId;break}return I1()}OI.getMachineId=Un});var P4=V((NI)=>{Object.defineProperty(NI,"__esModule",{value:!0});NI.normalizeType=NI.normalizeArch=void 0;var An=(Q)=>{switch(Q){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return Q}};NI.normalizeArch=An;var En=(Q)=>{switch(Q){case"sunos":return"solaris";case"win32":return"windows";default:return Q}};NI.normalizeType=En});var EI=V((UI)=>{Object.defineProperty(UI,"__esModule",{value:!0});UI.hostDetector=void 0;var w4=k6(),CI=j("os"),hn=VI(),Ln=P4();class DI{detect(Q){return{attributes:{[w4.ATTR_HOST_NAME]:(0,CI.hostname)(),[w4.ATTR_HOST_ARCH]:(0,Ln.normalizeArch)((0,CI.arch)()),[w4.ATTR_HOST_ID]:(0,hn.getMachineId)()}}}}UI.hostDetector=new DI});var wI=V((MI)=>{Object.defineProperty(MI,"__esModule",{value:!0});MI.osDetector=void 0;var TI=k6(),hI=j("os"),Mn=P4();class LI{detect(Q){return{attributes:{[TI.ATTR_OS_TYPE]:(0,Mn.normalizeType)((0,hI.platform)()),[TI.ATTR_OS_VERSION]:(0,hI.release)()}}}}MI.osDetector=new LI});var SI=V((kI)=>{Object.defineProperty(kI,"__esModule",{value:!0});kI.processDetector=void 0;var Pn=T(),_0=k6(),wn=j("os");class RI{detect(Q){let Y={[_0.ATTR_PROCESS_PID]:process.pid,[_0.ATTR_PROCESS_EXECUTABLE_NAME]:process.title,[_0.ATTR_PROCESS_EXECUTABLE_PATH]:process.execPath,[_0.ATTR_PROCESS_COMMAND_ARGS]:[process.argv[0],...process.execArgv,...process.argv.slice(1)],[_0.ATTR_PROCESS_RUNTIME_VERSION]:process.versions.node,[_0.ATTR_PROCESS_RUNTIME_NAME]:"nodejs",[_0.ATTR_PROCESS_RUNTIME_DESCRIPTION]:"Node.js"};if(process.argv.length>1)Y[_0.ATTR_PROCESS_COMMAND]=process.argv[1];try{let G=wn.userInfo();Y[_0.ATTR_PROCESS_OWNER]=G.username}catch(G){Pn.diag.debug(`error obtaining process owner: ${G}`)}return{attributes:Y}}}kI.processDetector=new RI});var vI=V((_I)=>{Object.defineProperty(_I,"__esModule",{value:!0});_I.serviceInstanceIdDetector=void 0;var Rn=k6(),kn=j("crypto");class fI{detect(Q){return{attributes:{[Rn.ATTR_SERVICE_INSTANCE_ID]:(0,kn.randomUUID)()}}}}_I.serviceInstanceIdDetector=new fI});var xI=V((j1)=>{Object.defineProperty(j1,"__esModule",{value:!0});j1.serviceInstanceIdDetector=j1.processDetector=j1.osDetector=j1.hostDetector=void 0;var $n=EI();Object.defineProperty(j1,"hostDetector",{enumerable:!0,get:function(){return $n.hostDetector}});var Sn=wI();Object.defineProperty(j1,"osDetector",{enumerable:!0,get:function(){return Sn.osDetector}});var fn=SI();Object.defineProperty(j1,"processDetector",{enumerable:!0,get:function(){return fn.processDetector}});var _n=vI();Object.defineProperty(j1,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return _n.serviceInstanceIdDetector}})});var jI=V((b1)=>{Object.defineProperty(b1,"__esModule",{value:!0});b1.serviceInstanceIdDetector=b1.processDetector=b1.osDetector=b1.hostDetector=void 0;var dZ=xI();Object.defineProperty(b1,"hostDetector",{enumerable:!0,get:function(){return dZ.hostDetector}});Object.defineProperty(b1,"osDetector",{enumerable:!0,get:function(){return dZ.osDetector}});Object.defineProperty(b1,"processDetector",{enumerable:!0,get:function(){return dZ.processDetector}});Object.defineProperty(b1,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return dZ.serviceInstanceIdDetector}})});var uI=V((bI)=>{Object.defineProperty(bI,"__esModule",{value:!0});bI.noopDetector=bI.NoopDetector=void 0;class R4{detect(){return{attributes:{}}}}bI.NoopDetector=R4;bI.noopDetector=new R4});var lI=V((n0)=>{Object.defineProperty(n0,"__esModule",{value:!0});n0.noopDetector=n0.serviceInstanceIdDetector=n0.processDetector=n0.osDetector=n0.hostDetector=n0.envDetector=void 0;var jn=mN();Object.defineProperty(n0,"envDetector",{enumerable:!0,get:function(){return jn.envDetector}});var uZ=jI();Object.defineProperty(n0,"hostDetector",{enumerable:!0,get:function(){return uZ.hostDetector}});Object.defineProperty(n0,"osDetector",{enumerable:!0,get:function(){return uZ.osDetector}});Object.defineProperty(n0,"processDetector",{enumerable:!0,get:function(){return uZ.processDetector}});Object.defineProperty(n0,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return uZ.serviceInstanceIdDetector}});var bn=uI();Object.defineProperty(n0,"noopDetector",{enumerable:!0,get:function(){return bn.noopDetector}})});var S6=V((H0)=>{Object.defineProperty(H0,"__esModule",{value:!0});H0.defaultServiceName=H0.emptyResource=H0.defaultResource=H0.resourceFromAttributes=H0.serviceInstanceIdDetector=H0.processDetector=H0.osDetector=H0.hostDetector=H0.envDetector=H0.detectResources=void 0;var un=dN();Object.defineProperty(H0,"detectResources",{enumerable:!0,get:function(){return un.detectResources}});var $6=lI();Object.defineProperty(H0,"envDetector",{enumerable:!0,get:function(){return $6.envDetector}});Object.defineProperty(H0,"hostDetector",{enumerable:!0,get:function(){return $6.hostDetector}});Object.defineProperty(H0,"osDetector",{enumerable:!0,get:function(){return $6.osDetector}});Object.defineProperty(H0,"processDetector",{enumerable:!0,get:function(){return $6.processDetector}});Object.defineProperty(H0,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return $6.serviceInstanceIdDetector}});var k4=L4();Object.defineProperty(H0,"resourceFromAttributes",{enumerable:!0,get:function(){return k4.resourceFromAttributes}});Object.defineProperty(H0,"defaultResource",{enumerable:!0,get:function(){return k4.defaultResource}});Object.defineProperty(H0,"emptyResource",{enumerable:!0,get:function(){return k4.emptyResource}});var ln=E4();Object.defineProperty(H0,"defaultServiceName",{enumerable:!0,get:function(){return ln.defaultServiceName}})});var pI=V((nI)=>{Object.defineProperty(nI,"__esModule",{value:!0});nI.ViewRegistry=void 0;class cI{_registeredViews=[];addView(Q){this._registeredViews.push(Q)}findViews(Q,Y){return this._registeredViews.filter((K)=>{return this._matchInstrument(K.instrumentSelector,Q)&&this._matchMeter(K.meterSelector,Y)})}_matchInstrument(Q,Y){return(Q.getType()===void 0||Y.type===Q.getType())&&Q.getNameFilter().match(Y.name)&&Q.getUnitFilter().match(Y.unit)}_matchMeter(Q,Y){return Q.getNameFilter().match(Y.name)&&(Y.version===void 0||Q.getVersionFilter().match(Y.version))&&(Y.schemaUrl===void 0||Q.getSchemaUrlFilter().match(Y.schemaUrl))}}nI.ViewRegistry=cI});var f6=V((oI)=>{Object.defineProperty(oI,"__esModule",{value:!0});oI.isValidName=oI.isDescriptorCompatibleWith=oI.createInstrumentDescriptorWithView=oI.createInstrumentDescriptor=void 0;var gI=T(),nn=E0();function mn(Q,Y,G){if(!iI(Q))gI.diag.warn(`Invalid metric name: "${Q}". The metric name should be a ASCII string with a length no greater than 255 characters.`);return{name:Q,type:Y,description:G?.description??"",unit:G?.unit??"",valueType:G?.valueType??gI.ValueType.DOUBLE,advice:G?.advice??{}}}oI.createInstrumentDescriptor=mn;function pn(Q,Y){return{name:Q.name??Y.name,description:Q.description??Y.description,type:Y.type,unit:Y.unit,valueType:Y.valueType,advice:Y.advice}}oI.createInstrumentDescriptorWithView=pn;function gn(Q,Y){return(0,nn.equalsCaseInsensitive)(Q.name,Y.name)&&Q.unit===Y.unit&&Q.type===Y.type&&Q.valueType===Y.valueType}oI.isDescriptorCompatibleWith=gn;var on=/^[a-z][a-z0-9_.\-/]{0,254}$/i;function iI(Q){return on.test(Q)}oI.isValidName=iI});var lZ=V((XC)=>{Object.defineProperty(XC,"__esModule",{value:!0});XC.isObservableInstrument=XC.ObservableUpDownCounterInstrument=XC.ObservableGaugeInstrument=XC.ObservableCounterInstrument=XC.ObservableInstrument=XC.HistogramInstrument=XC.GaugeInstrument=XC.CounterInstrument=XC.UpDownCounterInstrument=XC.SyncInstrument=void 0;var d1=T(),sn=S();class u1{_writableMetricStorage;_descriptor;constructor(Q,Y){this._writableMetricStorage=Q,this._descriptor=Y}_record(Q,Y={},G=d1.context.active()){if(typeof Q!=="number"){d1.diag.warn(`non-number value provided to metric ${this._descriptor.name}: ${Q}`);return}if(this._descriptor.valueType===d1.ValueType.INT&&!Number.isInteger(Q)){if(d1.diag.warn(`INT value type cannot accept a floating-point value for ${this._descriptor.name}, ignoring the fractional digits.`),Q=Math.trunc(Q),!Number.isInteger(Q))return}this._writableMetricStorage.record(Q,Y,G,(0,sn.millisToHrTime)(Date.now()))}}XC.SyncInstrument=u1;class tI extends u1{add(Q,Y,G){this._record(Q,Y,G)}}XC.UpDownCounterInstrument=tI;class rI extends u1{add(Q,Y,G){if(Q<0){d1.diag.warn(`negative value provided to counter ${this._descriptor.name}: ${Q}`);return}this._record(Q,Y,G)}}XC.CounterInstrument=rI;class sI extends u1{record(Q,Y,G){this._record(Q,Y,G)}}XC.GaugeInstrument=sI;class eI extends u1{record(Q,Y,G){if(Q<0){d1.diag.warn(`negative value provided to histogram ${this._descriptor.name}: ${Q}`);return}this._record(Q,Y,G)}}XC.HistogramInstrument=eI;class l1{_metricStorages;_descriptor;_observableRegistry;constructor(Q,Y,G){this._descriptor=Q,this._metricStorages=Y,this._observableRegistry=G}addCallback(Q){this._observableRegistry.addCallback(Q,this)}removeCallback(Q){this._observableRegistry.removeCallback(Q,this)}}XC.ObservableInstrument=l1;class ZC extends l1{}XC.ObservableCounterInstrument=ZC;class JC extends l1{}XC.ObservableGaugeInstrument=JC;class QC extends l1{}XC.ObservableUpDownCounterInstrument=QC;function en(Q){return Q instanceof l1}XC.isObservableInstrument=en});var qC=V((GC)=>{Object.defineProperty(GC,"__esModule",{value:!0});GC.Meter=void 0;var C1=f6(),D1=lZ(),U1=c0();class zC{_meterSharedState;constructor(Q){this._meterSharedState=Q}createGauge(Q,Y){let G=(0,C1.createInstrumentDescriptor)(Q,U1.InstrumentType.GAUGE,Y),K=this._meterSharedState.registerMetricStorage(G);return new D1.GaugeInstrument(K,G)}createHistogram(Q,Y){let G=(0,C1.createInstrumentDescriptor)(Q,U1.InstrumentType.HISTOGRAM,Y),K=this._meterSharedState.registerMetricStorage(G);return new D1.HistogramInstrument(K,G)}createCounter(Q,Y){let G=(0,C1.createInstrumentDescriptor)(Q,U1.InstrumentType.COUNTER,Y),K=this._meterSharedState.registerMetricStorage(G);return new D1.CounterInstrument(K,G)}createUpDownCounter(Q,Y){let G=(0,C1.createInstrumentDescriptor)(Q,U1.InstrumentType.UP_DOWN_COUNTER,Y),K=this._meterSharedState.registerMetricStorage(G);return new D1.UpDownCounterInstrument(K,G)}createObservableGauge(Q,Y){let G=(0,C1.createInstrumentDescriptor)(Q,U1.InstrumentType.OBSERVABLE_GAUGE,Y),K=this._meterSharedState.registerAsyncMetricStorage(G);return new D1.ObservableGaugeInstrument(G,K,this._meterSharedState.observableRegistry)}createObservableCounter(Q,Y){let G=(0,C1.createInstrumentDescriptor)(Q,U1.InstrumentType.OBSERVABLE_COUNTER,Y),K=this._meterSharedState.registerAsyncMetricStorage(G);return new D1.ObservableCounterInstrument(G,K,this._meterSharedState.observableRegistry)}createObservableUpDownCounter(Q,Y){let G=(0,C1.createInstrumentDescriptor)(Q,U1.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER,Y),K=this._meterSharedState.registerAsyncMetricStorage(G);return new D1.ObservableUpDownCounterInstrument(G,K,this._meterSharedState.observableRegistry)}addBatchObservableCallback(Q,Y){this._meterSharedState.observableRegistry.addBatchCallback(Q,Y)}removeBatchObservableCallback(Q,Y){this._meterSharedState.observableRegistry.removeBatchCallback(Q,Y)}}GC.Meter=zC});var $4=V((FC)=>{Object.defineProperty(FC,"__esModule",{value:!0});FC.MetricStorage=void 0;var Km=f6();class KC{_instrumentDescriptor;constructor(Q){this._instrumentDescriptor=Q}getInstrumentDescriptor(){return this._instrumentDescriptor}updateDescription(Q){this._instrumentDescriptor=(0,Km.createInstrumentDescriptor)(this._instrumentDescriptor.name,this._instrumentDescriptor.type,{description:Q,valueType:this._instrumentDescriptor.valueType,unit:this._instrumentDescriptor.unit,advice:this._instrumentDescriptor.advice})}}FC.MetricStorage=KC});var _6=V((BC)=>{Object.defineProperty(BC,"__esModule",{value:!0});BC.AttributeHashMap=BC.HashMap=void 0;var Fm=E0();class S4{_valueMap=new Map;_keyMap=new Map;_hash;constructor(Q){this._hash=Q}get(Q,Y){return Y??=this._hash(Q),this._valueMap.get(Y)}getOrDefault(Q,Y){let G=this._hash(Q);if(this._valueMap.has(G))return this._valueMap.get(G);let K=Y();if(!this._keyMap.has(G))this._keyMap.set(G,Q);return this._valueMap.set(G,K),K}set(Q,Y,G){if(G??=this._hash(Q),!this._keyMap.has(G))this._keyMap.set(G,Q);this._valueMap.set(G,Y)}has(Q,Y){return Y??=this._hash(Q),this._valueMap.has(Y)}*keys(){let Q=this._keyMap.entries(),Y=Q.next();while(Y.done!==!0)yield[Y.value[1],Y.value[0]],Y=Q.next()}*entries(){let Q=this._valueMap.entries(),Y=Q.next();while(Y.done!==!0)yield[this._keyMap.get(Y.value[0]),Y.value[1],Y.value[0]],Y=Q.next()}get size(){return this._valueMap.size}}BC.HashMap=S4;class OC extends S4{constructor(){super(Fm.hashAttributes)}}BC.AttributeHashMap=OC});var _4=V((IC)=>{Object.defineProperty(IC,"__esModule",{value:!0});IC.DeltaMetricProcessor=void 0;var Om=E0(),f4=_6();class NC{_activeCollectionStorage=new f4.AttributeHashMap;_cumulativeMemoStorage=new f4.AttributeHashMap;_cardinalityLimit;_overflowAttributes={"otel.metric.overflow":!0};_overflowHashCode;_aggregator;constructor(Q,Y){this._aggregator=Q,this._cardinalityLimit=(Y??2000)-1,this._overflowHashCode=(0,Om.hashAttributes)(this._overflowAttributes)}record(Q,Y,G,K){let z=this._activeCollectionStorage.get(Y);if(!z){if(this._activeCollectionStorage.size>=this._cardinalityLimit){this._activeCollectionStorage.getOrDefault(this._overflowAttributes,()=>this._aggregator.createAccumulation(K))?.record(Q);return}z=this._aggregator.createAccumulation(K),this._activeCollectionStorage.set(Y,z)}z?.record(Q)}batchCumulate(Q,Y){Array.from(Q.entries()).forEach(([G,K,z])=>{let W=this._aggregator.createAccumulation(Y);W?.record(K);let J=W;if(this._cumulativeMemoStorage.has(G,z)){let Z=this._cumulativeMemoStorage.get(G,z);J=this._aggregator.diff(Z,W)}else if(this._cumulativeMemoStorage.size>=this._cardinalityLimit){if(G=this._overflowAttributes,z=this._overflowHashCode,this._cumulativeMemoStorage.has(G,z)){let Z=this._cumulativeMemoStorage.get(G,z);J=this._aggregator.diff(Z,W)}}if(this._activeCollectionStorage.has(G,z)){let Z=this._activeCollectionStorage.get(G,z);J=this._aggregator.merge(Z,J)}this._cumulativeMemoStorage.set(G,W,z),this._activeCollectionStorage.set(G,J,z)})}collect(){let Q=this._activeCollectionStorage;return this._activeCollectionStorage=new f4.AttributeHashMap,Q}}IC.DeltaMetricProcessor=NC});var y4=V((DC)=>{Object.defineProperty(DC,"__esModule",{value:!0});DC.TemporalMetricProcessor=void 0;var Bm=RZ(),Vm=_6();class y6{_aggregator;_unreportedAccumulations=new Map;_reportHistory=new Map;constructor(Q,Y){this._aggregator=Q,Y.forEach((G)=>{this._unreportedAccumulations.set(G,[])})}buildMetrics(Q,Y,G,K){this._stashAccumulations(G);let z=this._getMergedUnreportedAccumulations(Q),W=z,J;if(this._reportHistory.has(Q)){let X=this._reportHistory.get(Q),q=X.collectionTime;if(J=X.aggregationTemporality,J===Bm.AggregationTemporality.CUMULATIVE)W=y6.merge(X.accumulations,z,this._aggregator);else W=y6.calibrateStartTime(X.accumulations,z,q)}else J=Q.selectAggregationTemporality(Y.type);this._reportHistory.set(Q,{accumulations:W,collectionTime:K,aggregationTemporality:J});let Z=Nm(W);if(Z.length===0)return;return this._aggregator.toMetricData(Y,J,Z,K)}_stashAccumulations(Q){let Y=this._unreportedAccumulations.keys();for(let G of Y){let K=this._unreportedAccumulations.get(G);if(K===void 0)K=[],this._unreportedAccumulations.set(G,K);K.push(Q)}}_getMergedUnreportedAccumulations(Q){let Y=new Vm.AttributeHashMap,G=this._unreportedAccumulations.get(Q);if(this._unreportedAccumulations.set(Q,[]),G===void 0)return Y;for(let K of G)Y=y6.merge(Y,K,this._aggregator);return Y}static merge(Q,Y,G){let K=Q,z=Y.entries(),W=z.next();while(W.done!==!0){let[J,Z,X]=W.value;if(Q.has(J,X)){let q=Q.get(J,X),F=G.merge(q,Z);K.set(J,F,X)}else K.set(J,Z,X);W=z.next()}return K}static calibrateStartTime(Q,Y,G){for(let[K,z]of Q.keys())Y.get(K,z)?.setStartTime(G);return Y}}DC.TemporalMetricProcessor=y6;function Nm(Q){return Array.from(Q.entries())}});var hC=V((EC)=>{Object.defineProperty(EC,"__esModule",{value:!0});EC.AsyncMetricStorage=void 0;var Im=$4(),Cm=_4(),Dm=y4(),Um=_6();class AC extends Im.MetricStorage{_aggregationCardinalityLimit;_deltaMetricStorage;_temporalMetricStorage;_attributesProcessor;constructor(Q,Y,G,K,z){super(Q);this._aggregationCardinalityLimit=z,this._deltaMetricStorage=new Cm.DeltaMetricProcessor(Y,this._aggregationCardinalityLimit),this._temporalMetricStorage=new Dm.TemporalMetricProcessor(Y,K),this._attributesProcessor=G}record(Q,Y){let G=new Um.AttributeHashMap;Array.from(Q.entries()).forEach(([K,z])=>{G.set(this._attributesProcessor.process(K),z)}),this._deltaMetricStorage.batchCumulate(G,Y)}collect(Q,Y){let G=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(Q,this._instrumentDescriptor,G,Y)}}EC.AsyncMetricStorage=AC});var $C=V((RC)=>{Object.defineProperty(RC,"__esModule",{value:!0});RC.getConflictResolutionRecipe=RC.getDescriptionResolutionRecipe=RC.getTypeConflictResolutionRecipe=RC.getUnitConflictResolutionRecipe=RC.getValueTypeConflictResolutionRecipe=RC.getIncompatibilityDetails=void 0;function Am(Q,Y){let G="";if(Q.unit!==Y.unit)G+=` - Unit '${Q.unit}' does not match '${Y.unit}'
|
|
3
3
|
`;if(Q.type!==Y.type)G+=` - Type '${Q.type}' does not match '${Y.type}'
|
|
4
4
|
`;if(Q.valueType!==Y.valueType)G+=` - Value Type '${Q.valueType}' does not match '${Y.valueType}'
|
|
@@ -12,4 +12,4 @@ To resolve the conflict:`,(0,cZ.getConflictResolutionRecipe)(z,Q))}G=K}else SC.d
|
|
|
12
12
|
`,`Details:
|
|
13
13
|
`,(0,cZ.getIncompatibilityDetails)(z,Q),`To resolve the conflict:
|
|
14
14
|
`,(0,cZ.getConflictResolutionRecipe)(z,Q))}return G}}fC.MetricStorageRegistry=v4});var bC=V((xC)=>{Object.defineProperty(xC,"__esModule",{value:!0});xC.MultiMetricStorage=void 0;class vC{_backingStorages;constructor(Q){this._backingStorages=Q}record(Q,Y,G,K){this._backingStorages.forEach((z)=>{z.record(Q,Y,G,K)})}}xC.MultiMetricStorage=vC});var mC=V((cC)=>{Object.defineProperty(cC,"__esModule",{value:!0});cC.BatchObservableResultImpl=cC.ObservableResultImpl=void 0;var c1=T(),dC=_6(),Rm=lZ();class uC{_buffer=new dC.AttributeHashMap;_instrumentName;_valueType;constructor(Q,Y){this._instrumentName=Q,this._valueType=Y}observe(Q,Y={}){if(typeof Q!=="number"){c1.diag.warn(`non-number value provided to metric ${this._instrumentName}: ${Q}`);return}if(this._valueType===c1.ValueType.INT&&!Number.isInteger(Q)){if(c1.diag.warn(`INT value type cannot accept a floating-point value for ${this._instrumentName}, ignoring the fractional digits.`),Q=Math.trunc(Q),!Number.isInteger(Q))return}this._buffer.set(Y,Q)}}cC.ObservableResultImpl=uC;class lC{_buffer=new Map;observe(Q,Y,G={}){if(!(0,Rm.isObservableInstrument)(Q))return;let K=this._buffer.get(Q);if(K==null)K=new dC.AttributeHashMap,this._buffer.set(Q,K);if(typeof Y!=="number"){c1.diag.warn(`non-number value provided to metric ${Q._descriptor.name}: ${Y}`);return}if(Q._descriptor.valueType===c1.ValueType.INT&&!Number.isInteger(Y)){if(c1.diag.warn(`INT value type cannot accept a floating-point value for ${Q._descriptor.name}, ignoring the fractional digits.`),Y=Math.trunc(Y),!Number.isInteger(Y))return}K.set(G,Y)}}cC.BatchObservableResultImpl=lC});var tC=V((oC)=>{Object.defineProperty(oC,"__esModule",{value:!0});oC.ObservableRegistry=void 0;var $m=T(),pC=lZ(),gC=mC(),x4=E0();class iC{_callbacks=[];_batchCallbacks=[];addCallback(Q,Y){if(this._findCallback(Q,Y)>=0)return;this._callbacks.push({callback:Q,instrument:Y})}removeCallback(Q,Y){let G=this._findCallback(Q,Y);if(G<0)return;this._callbacks.splice(G,1)}addBatchCallback(Q,Y){let G=new Set(Y.filter(pC.isObservableInstrument));if(G.size===0){$m.diag.error("BatchObservableCallback is not associated with valid instruments",Y);return}if(this._findBatchCallback(Q,G)>=0)return;this._batchCallbacks.push({callback:Q,instruments:G})}removeBatchCallback(Q,Y){let G=new Set(Y.filter(pC.isObservableInstrument)),K=this._findBatchCallback(Q,G);if(K<0)return;this._batchCallbacks.splice(K,1)}async observe(Q,Y){let G=this._observeCallbacks(Q,Y),K=this._observeBatchCallbacks(Q,Y);return(await Promise.allSettled([...G,...K])).filter((J)=>J.status==="rejected").map((J)=>J.reason)}_observeCallbacks(Q,Y){return this._callbacks.map(async({callback:G,instrument:K})=>{let z=new gC.ObservableResultImpl(K._descriptor.name,K._descriptor.valueType),W=Promise.resolve(G(z));if(Y!=null)W=(0,x4.callWithTimeout)(W,Y);await W,K._metricStorages.forEach((J)=>{J.record(z._buffer,Q)})})}_observeBatchCallbacks(Q,Y){return this._batchCallbacks.map(async({callback:G,instruments:K})=>{let z=new gC.BatchObservableResultImpl,W=Promise.resolve(G(z));if(Y!=null)W=(0,x4.callWithTimeout)(W,Y);await W,K.forEach((J)=>{let Z=z._buffer.get(J);if(Z==null)return;J._metricStorages.forEach((X)=>{X.record(Z,Q)})})})}_findCallback(Q,Y){return this._callbacks.findIndex((G)=>{return G.callback===Q&&G.instrument===Y})}_findBatchCallback(Q,Y){return this._batchCallbacks.findIndex((G)=>{return G.callback===Q&&(0,x4.setEquals)(G.instruments,Y)})}}oC.ObservableRegistry=iC});var ZD=V((sC)=>{Object.defineProperty(sC,"__esModule",{value:!0});sC.SyncMetricStorage=void 0;var Sm=$4(),fm=_4(),_m=y4();class rC extends Sm.MetricStorage{_aggregationCardinalityLimit;_deltaMetricStorage;_temporalMetricStorage;_attributesProcessor;constructor(Q,Y,G,K,z){super(Q);this._aggregationCardinalityLimit=z,this._deltaMetricStorage=new fm.DeltaMetricProcessor(Y,this._aggregationCardinalityLimit),this._temporalMetricStorage=new _m.TemporalMetricProcessor(Y,K),this._attributesProcessor=G}record(Q,Y,G,K){Y=this._attributesProcessor.process(Y,G),this._deltaMetricStorage.record(Q,Y,G,K)}collect(Q,Y){let G=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(Q,this._instrumentDescriptor,G,Y)}}sC.SyncMetricStorage=rC});var nZ=V((zD)=>{Object.defineProperty(zD,"__esModule",{value:!0});zD.createDenyListAttributesProcessor=zD.createAllowListAttributesProcessor=zD.createMultiAttributesProcessor=zD.createNoopAttributesProcessor=void 0;class JD{process(Q,Y){return Q}}class QD{_processors;constructor(Q){this._processors=Q}process(Q,Y){let G=Q;for(let K of this._processors)G=K.process(G,Y);return G}}class XD{_allowedAttributeNames;constructor(Q){this._allowedAttributeNames=Q}process(Q,Y){let G={};return Object.keys(Q).forEach((K)=>{if(this._allowedAttributeNames.includes(K))G[K]=Q[K]}),G}}class YD{_deniedAttributeNames;constructor(Q){this._deniedAttributeNames=Q}process(Q,Y){let G={};return Object.keys(Q).forEach((K)=>{if(!this._deniedAttributeNames.includes(K))G[K]=Q[K]}),G}}function ym(){return bm}zD.createNoopAttributesProcessor=ym;function vm(Q){return new QD(Q)}zD.createMultiAttributesProcessor=vm;function xm(Q){return new XD(Q)}zD.createAllowListAttributesProcessor=xm;function jm(Q){return new YD(Q)}zD.createDenyListAttributesProcessor=jm;var bm=new JD});var FD=V((qD)=>{Object.defineProperty(qD,"__esModule",{value:!0});qD.MeterSharedState=void 0;var cm=f6(),nm=qC(),mm=hC(),pm=yC(),gm=bC(),im=tC(),om=ZD(),am=nZ();class WD{metricStorageRegistry=new pm.MetricStorageRegistry;observableRegistry=new im.ObservableRegistry;meter;_meterProviderSharedState;_instrumentationScope;constructor(Q,Y){this.meter=new nm.Meter(this),this._meterProviderSharedState=Q,this._instrumentationScope=Y}registerMetricStorage(Q){let Y=this._registerMetricStorage(Q,om.SyncMetricStorage);if(Y.length===1)return Y[0];return new gm.MultiMetricStorage(Y)}registerAsyncMetricStorage(Q){return this._registerMetricStorage(Q,mm.AsyncMetricStorage)}async collect(Q,Y,G){let K=await this.observableRegistry.observe(Y,G?.timeoutMillis),z=this.metricStorageRegistry.getStorages(Q);if(z.length===0)return null;let W=[];if(z.forEach((J)=>{let Z=J.collect(Q,Y);if(Z!=null)W.push(Z)}),W.length===0)return{errors:K};return{scopeMetrics:{scope:this._instrumentationScope,metrics:W},errors:K}}_registerMetricStorage(Q,Y){let K=this._meterProviderSharedState.viewRegistry.findViews(Q,this._instrumentationScope).map((z)=>{let W=(0,cm.createInstrumentDescriptorWithView)(z,Q),J=this.metricStorageRegistry.findOrUpdateCompatibleStorage(W);if(J!=null)return J;let Z=z.aggregation.createAggregator(W),X=new Y(W,Z,z.attributesProcessor,this._meterProviderSharedState.metricCollectors,z.aggregationCardinalityLimit);return this.metricStorageRegistry.register(X),X});if(K.length===0){let W=this._meterProviderSharedState.selectAggregations(Q.type).map(([J,Z])=>{let X=this.metricStorageRegistry.findOrUpdateCompatibleCollectorStorage(J,Q);if(X!=null)return X;let q=Z.createAggregator(Q),F=J.selectCardinalityLimit(Q.type),H=new Y(Q,q,(0,am.createNoopAttributesProcessor)(),[J],F);return this.metricStorageRegistry.registerForCollector(J,H),H});K=K.concat(W)}return K}}qD.MeterSharedState=WD});var VD=V((OD)=>{Object.defineProperty(OD,"__esModule",{value:!0});OD.MeterProviderSharedState=void 0;var tm=E0(),rm=pI(),sm=FD(),em=L6();class HD{viewRegistry=new rm.ViewRegistry;metricCollectors=[];meterSharedStates=new Map;resource;constructor(Q){this.resource=Q}getMeterSharedState(Q){let Y=(0,tm.instrumentationScopeId)(Q),G=this.meterSharedStates.get(Y);if(G==null)G=new sm.MeterSharedState(this,Q),this.meterSharedStates.set(Y,G);return G}selectAggregations(Q){let Y=[];for(let G of this.metricCollectors)Y.push([G,(0,em.toAggregation)(G.selectAggregation(Q))]);return Y}}OD.MeterProviderSharedState=HD});var DD=V((ID)=>{Object.defineProperty(ID,"__esModule",{value:!0});ID.MetricCollector=void 0;var Zp=S();class ND{_sharedState;_metricReader;constructor(Q,Y){this._sharedState=Q,this._metricReader=Y}async collect(Q){let Y=(0,Zp.millisToHrTime)(Date.now()),G=[],K=[],z=Array.from(this._sharedState.meterSharedStates.values()).map(async(W)=>{let J=await W.collect(this,Y,Q);if(J?.scopeMetrics!=null)G.push(J.scopeMetrics);if(J?.errors!=null)K.push(...J.errors)});return await Promise.all(z),{resourceMetrics:{resource:this._sharedState.resource,scopeMetrics:G},errors:K}}async forceFlush(Q){await this._metricReader.forceFlush(Q)}async shutdown(Q){await this._metricReader.shutdown(Q)}selectAggregationTemporality(Q){return this._metricReader.selectAggregationTemporality(Q)}selectAggregation(Q){return this._metricReader.selectAggregation(Q)}selectCardinalityLimit(Q){return this._metricReader.selectCardinalityLimit?.(Q)??2000}}ID.MetricCollector=ND});var mZ=V((AD)=>{Object.defineProperty(AD,"__esModule",{value:!0});AD.ExactPredicate=AD.PatternPredicate=void 0;var Jp=/[\^$\\.+?()[\]{}|]/g;class j4{_matchAll;_regexp;constructor(Q){if(Q==="*")this._matchAll=!0,this._regexp=/.*/;else this._matchAll=!1,this._regexp=new RegExp(j4.escapePattern(Q))}match(Q){if(this._matchAll)return!0;return this._regexp.test(Q)}static escapePattern(Q){return`^${Q.replace(Jp,"\\$&").replace("*",".*")}$`}static hasWildcard(Q){return Q.includes("*")}}AD.PatternPredicate=j4;class UD{_matchAll;_pattern;constructor(Q){this._matchAll=Q===void 0,this._pattern=Q}match(Q){if(this._matchAll)return!0;if(Q===this._pattern)return!0;return!1}}AD.ExactPredicate=UD});var PD=V((LD)=>{Object.defineProperty(LD,"__esModule",{value:!0});LD.InstrumentSelector=void 0;var TD=mZ();class hD{_nameFilter;_type;_unitFilter;constructor(Q){this._nameFilter=new TD.PatternPredicate(Q?.name??"*"),this._type=Q?.type,this._unitFilter=new TD.ExactPredicate(Q?.unit)}getType(){return this._type}getNameFilter(){return this._nameFilter}getUnitFilter(){return this._unitFilter}}LD.InstrumentSelector=hD});var $D=V((RD)=>{Object.defineProperty(RD,"__esModule",{value:!0});RD.MeterSelector=void 0;var b4=mZ();class wD{_nameFilter;_versionFilter;_schemaUrlFilter;constructor(Q){this._nameFilter=new b4.ExactPredicate(Q?.name),this._versionFilter=new b4.ExactPredicate(Q?.version),this._schemaUrlFilter=new b4.ExactPredicate(Q?.schemaUrl)}getNameFilter(){return this._nameFilter}getVersionFilter(){return this._versionFilter}getSchemaUrlFilter(){return this._schemaUrlFilter}}RD.MeterSelector=wD});var xD=V((yD)=>{Object.defineProperty(yD,"__esModule",{value:!0});yD.View=void 0;var Xp=mZ(),SD=nZ(),Yp=PD(),zp=$D(),fD=L6();function Gp(Q){return Q.instrumentName==null&&Q.instrumentType==null&&Q.instrumentUnit==null&&Q.meterName==null&&Q.meterVersion==null&&Q.meterSchemaUrl==null}function Wp(Q){if(Gp(Q))throw Error("Cannot create view with no selector arguments supplied");if(Q.name!=null&&(Q?.instrumentName==null||Xp.PatternPredicate.hasWildcard(Q.instrumentName)))throw Error("Views with a specified name must be declared with an instrument selector that selects at most one instrument per meter.")}class _D{name;description;aggregation;attributesProcessor;instrumentSelector;meterSelector;aggregationCardinalityLimit;constructor(Q){if(Wp(Q),Q.attributesProcessors!=null)this.attributesProcessor=(0,SD.createMultiAttributesProcessor)(Q.attributesProcessors);else this.attributesProcessor=(0,SD.createNoopAttributesProcessor)();this.name=Q.name,this.description=Q.description,this.aggregation=(0,fD.toAggregation)(Q.aggregation??{type:fD.AggregationType.DEFAULT}),this.instrumentSelector=new Yp.InstrumentSelector({name:Q.instrumentName,type:Q.instrumentType,unit:Q.instrumentUnit}),this.meterSelector=new zp.MeterSelector({name:Q.meterName,version:Q.meterVersion,schemaUrl:Q.meterSchemaUrl}),this.aggregationCardinalityLimit=Q.aggregationCardinalityLimit}}yD.View=_D});var uD=V((bD)=>{Object.defineProperty(bD,"__esModule",{value:!0});bD.MeterProvider=void 0;var pZ=T(),qp=S6(),Kp=VD(),Fp=DD(),Hp=xD();class jD{_sharedState;_shutdown=!1;constructor(Q){if(this._sharedState=new Kp.MeterProviderSharedState(Q?.resource??(0,qp.defaultResource)()),Q?.views!=null&&Q.views.length>0)for(let Y of Q.views)this._sharedState.viewRegistry.addView(new Hp.View(Y));if(Q?.readers!=null&&Q.readers.length>0)for(let Y of Q.readers){let G=new Fp.MetricCollector(this._sharedState,Y);Y.setMetricProducer(G),this._sharedState.metricCollectors.push(G)}}getMeter(Q,Y="",G={}){if(this._shutdown)return pZ.diag.warn("A shutdown MeterProvider cannot provide a Meter"),(0,pZ.createNoopMeter)();return this._sharedState.getMeterSharedState({name:Q,version:Y,schemaUrl:G.schemaUrl}).meter}async shutdown(Q){if(this._shutdown){pZ.diag.warn("shutdown may only be called once per MeterProvider");return}this._shutdown=!0,await Promise.all(this._sharedState.metricCollectors.map((Y)=>{return Y.shutdown(Q)}))}async forceFlush(Q){if(this._shutdown){pZ.diag.warn("invalid attempt to force flush after MeterProvider shutdown");return}await Promise.all(this._sharedState.metricCollectors.map((Y)=>{return Y.forceFlush(Q)}))}}bD.MeterProvider=jD});var gZ=V((X0)=>{Object.defineProperty(X0,"__esModule",{value:!0});X0.TimeoutError=X0.createDenyListAttributesProcessor=X0.createAllowListAttributesProcessor=X0.AggregationType=X0.MeterProvider=X0.ConsoleMetricExporter=X0.InMemoryMetricExporter=X0.PeriodicExportingMetricReader=X0.MetricReader=X0.InstrumentType=X0.DataPointType=X0.AggregationTemporality=void 0;var Op=RZ();Object.defineProperty(X0,"AggregationTemporality",{enumerable:!0,get:function(){return Op.AggregationTemporality}});var lD=c0();Object.defineProperty(X0,"DataPointType",{enumerable:!0,get:function(){return lD.DataPointType}});Object.defineProperty(X0,"InstrumentType",{enumerable:!0,get:function(){return lD.InstrumentType}});var Bp=U4();Object.defineProperty(X0,"MetricReader",{enumerable:!0,get:function(){return Bp.MetricReader}});var Vp=DN();Object.defineProperty(X0,"PeriodicExportingMetricReader",{enumerable:!0,get:function(){return Vp.PeriodicExportingMetricReader}});var Np=hN();Object.defineProperty(X0,"InMemoryMetricExporter",{enumerable:!0,get:function(){return Np.InMemoryMetricExporter}});var Ip=wN();Object.defineProperty(X0,"ConsoleMetricExporter",{enumerable:!0,get:function(){return Ip.ConsoleMetricExporter}});var Cp=uD();Object.defineProperty(X0,"MeterProvider",{enumerable:!0,get:function(){return Cp.MeterProvider}});var Dp=L6();Object.defineProperty(X0,"AggregationType",{enumerable:!0,get:function(){return Dp.AggregationType}});var cD=nZ();Object.defineProperty(X0,"createAllowListAttributesProcessor",{enumerable:!0,get:function(){return cD.createAllowListAttributesProcessor}});Object.defineProperty(X0,"createDenyListAttributesProcessor",{enumerable:!0,get:function(){return cD.createDenyListAttributesProcessor}});var Up=E0();Object.defineProperty(X0,"TimeoutError",{enumerable:!0,get:function(){return Up.TimeoutError}})});var mD=V((nD)=>{Object.defineProperty(nD,"__esModule",{value:!0});nD.EAggregationTemporality=void 0;var Ep;(function(Q){Q[Q.AGGREGATION_TEMPORALITY_UNSPECIFIED=0]="AGGREGATION_TEMPORALITY_UNSPECIFIED",Q[Q.AGGREGATION_TEMPORALITY_DELTA=1]="AGGREGATION_TEMPORALITY_DELTA",Q[Q.AGGREGATION_TEMPORALITY_CUMULATIVE=2]="AGGREGATION_TEMPORALITY_CUMULATIVE"})(Ep=nD.EAggregationTemporality||(nD.EAggregationTemporality={}))});var u4=V((rD)=>{Object.defineProperty(rD,"__esModule",{value:!0});rD.createExportMetricsServiceRequest=rD.toMetric=rD.toScopeMetrics=rD.toResourceMetrics=void 0;var pD=T(),n1=gZ(),gD=mD(),v6=PZ();function oD(Q,Y){let G=(0,v6.createResource)(Q.resource,Y);return{resource:G,schemaUrl:G.schemaUrl,scopeMetrics:aD(Q.scopeMetrics,Y)}}rD.toResourceMetrics=oD;function aD(Q,Y){return Array.from(Q.map((G)=>({scope:(0,v6.createInstrumentationScope)(G.scope),metrics:G.metrics.map((K)=>tD(K,Y)),schemaUrl:G.scope.schemaUrl})))}rD.toScopeMetrics=aD;function tD(Q,Y){let G={name:Q.descriptor.name,description:Q.descriptor.description,unit:Q.descriptor.unit},K=Mp(Q.aggregationTemporality);switch(Q.dataPointType){case n1.DataPointType.SUM:G.sum={aggregationTemporality:K,isMonotonic:Q.isMonotonic,dataPoints:iD(Q,Y)};break;case n1.DataPointType.GAUGE:G.gauge={dataPoints:iD(Q,Y)};break;case n1.DataPointType.HISTOGRAM:G.histogram={aggregationTemporality:K,dataPoints:hp(Q,Y)};break;case n1.DataPointType.EXPONENTIAL_HISTOGRAM:G.exponentialHistogram={aggregationTemporality:K,dataPoints:Lp(Q,Y)};break}return G}rD.toMetric=tD;function Tp(Q,Y,G){let K={attributes:(0,v6.toAttributes)(Q.attributes,G),startTimeUnixNano:G.encodeHrTime(Q.startTime),timeUnixNano:G.encodeHrTime(Q.endTime)};switch(Y){case pD.ValueType.INT:K.asInt=Q.value;break;case pD.ValueType.DOUBLE:K.asDouble=Q.value;break}return K}function iD(Q,Y){return Q.dataPoints.map((G)=>{return Tp(G,Q.descriptor.valueType,Y)})}function hp(Q,Y){return Q.dataPoints.map((G)=>{let K=G.value;return{attributes:(0,v6.toAttributes)(G.attributes,Y),bucketCounts:K.buckets.counts,explicitBounds:K.buckets.boundaries,count:K.count,sum:K.sum,min:K.min,max:K.max,startTimeUnixNano:Y.encodeHrTime(G.startTime),timeUnixNano:Y.encodeHrTime(G.endTime)}})}function Lp(Q,Y){return Q.dataPoints.map((G)=>{let K=G.value;return{attributes:(0,v6.toAttributes)(G.attributes,Y),count:K.count,min:K.min,max:K.max,sum:K.sum,positive:{offset:K.positive.offset,bucketCounts:K.positive.bucketCounts},negative:{offset:K.negative.offset,bucketCounts:K.negative.bucketCounts},scale:K.scale,zeroCount:K.zeroCount,startTimeUnixNano:Y.encodeHrTime(G.startTime),timeUnixNano:Y.encodeHrTime(G.endTime)}})}function Mp(Q){switch(Q){case n1.AggregationTemporality.DELTA:return gD.EAggregationTemporality.AGGREGATION_TEMPORALITY_DELTA;case n1.AggregationTemporality.CUMULATIVE:return gD.EAggregationTemporality.AGGREGATION_TEMPORALITY_CUMULATIVE}}function Pp(Q,Y){return{resourceMetrics:Q.map((G)=>oD(G,Y))}}rD.createExportMetricsServiceRequest=Pp});var QU=V((ZU)=>{Object.defineProperty(ZU,"__esModule",{value:!0});ZU.ProtobufMetricsSerializer=void 0;var eD=LZ(),$p=u4(),Sp=F1(),fp=eD.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,_p=eD.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;ZU.ProtobufMetricsSerializer={serializeRequest:(Q)=>{let Y=(0,$p.createExportMetricsServiceRequest)([Q],Sp.PROTOBUF_ENCODER);return _p.encode(Y).finish()},deserializeResponse:(Q)=>{return fp.decode(Q)}}});var XU=V((l4)=>{Object.defineProperty(l4,"__esModule",{value:!0});l4.ProtobufMetricsSerializer=void 0;var yp=QU();Object.defineProperty(l4,"ProtobufMetricsSerializer",{enumerable:!0,get:function(){return yp.ProtobufMetricsSerializer}})});var c4=V((qU)=>{Object.defineProperty(qU,"__esModule",{value:!0});qU.createExportTraceServiceRequest=qU.toOtlpSpanEvent=qU.toOtlpLink=qU.sdkSpanToOtlpSpan=void 0;var x6=PZ(),xp=256,jp=512;function YU(Q,Y){let G=Q&255|xp;if(Y)G|=jp;return G}function zU(Q,Y){let G=Q.spanContext(),K=Q.status,z=Q.parentSpanContext?.spanId?Y.encodeSpanContext(Q.parentSpanContext?.spanId):void 0;return{traceId:Y.encodeSpanContext(G.traceId),spanId:Y.encodeSpanContext(G.spanId),parentSpanId:z,traceState:G.traceState?.serialize(),name:Q.name,kind:Q.kind==null?0:Q.kind+1,startTimeUnixNano:Y.encodeHrTime(Q.startTime),endTimeUnixNano:Y.encodeHrTime(Q.endTime),attributes:(0,x6.toAttributes)(Q.attributes,Y),droppedAttributesCount:Q.droppedAttributesCount,events:Q.events.map((W)=>WU(W,Y)),droppedEventsCount:Q.droppedEventsCount,status:{code:K.code,message:K.message},links:Q.links.map((W)=>GU(W,Y)),droppedLinksCount:Q.droppedLinksCount,flags:YU(G.traceFlags,Q.parentSpanContext?.isRemote)}}qU.sdkSpanToOtlpSpan=zU;function GU(Q,Y){return{attributes:Q.attributes?(0,x6.toAttributes)(Q.attributes,Y):[],spanId:Y.encodeSpanContext(Q.context.spanId),traceId:Y.encodeSpanContext(Q.context.traceId),traceState:Q.context.traceState?.serialize(),droppedAttributesCount:Q.droppedAttributesCount||0,flags:YU(Q.context.traceFlags,Q.context.isRemote)}}qU.toOtlpLink=GU;function WU(Q,Y){return{attributes:Q.attributes?(0,x6.toAttributes)(Q.attributes,Y):[],name:Q.name,timeUnixNano:Y.encodeHrTime(Q.time),droppedAttributesCount:Q.droppedAttributesCount||0}}qU.toOtlpSpanEvent=WU;function bp(Q,Y){return{resourceSpans:up(Q,Y)}}qU.createExportTraceServiceRequest=bp;function dp(Q){let Y=new Map;for(let G of Q){let K=Y.get(G.resource);if(!K)K=new Map,Y.set(G.resource,K);let z=`${G.instrumentationScope.name}@${G.instrumentationScope.version||""}:${G.instrumentationScope.schemaUrl||""}`,W=K.get(z);if(!W)W=[],K.set(z,W);W.push(G)}return Y}function up(Q,Y){let G=dp(Q),K=[],z=G.entries(),W=z.next();while(!W.done){let[J,Z]=W.value,X=[],q=Z.values(),F=q.next();while(!F.done){let C=F.value;if(C.length>0){let U=C.map((R)=>zU(R,Y));X.push({scope:(0,x6.createInstrumentationScope)(C[0].instrumentationScope),spans:U,schemaUrl:C[0].instrumentationScope.schemaUrl})}F=q.next()}let H=(0,x6.createResource)(J,Y),N={resource:H,scopeSpans:X,schemaUrl:H.schemaUrl};K.push(N),W=z.next()}return K}});var BU=V((HU)=>{Object.defineProperty(HU,"__esModule",{value:!0});HU.ProtobufTraceSerializer=void 0;var FU=LZ(),mp=c4(),pp=F1(),gp=FU.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,ip=FU.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;HU.ProtobufTraceSerializer={serializeRequest:(Q)=>{let Y=(0,mp.createExportTraceServiceRequest)(Q,pp.PROTOBUF_ENCODER);return ip.encode(Y).finish()},deserializeResponse:(Q)=>{return gp.decode(Q)}}});var VU=V((n4)=>{Object.defineProperty(n4,"__esModule",{value:!0});n4.ProtobufTraceSerializer=void 0;var op=BU();Object.defineProperty(n4,"ProtobufTraceSerializer",{enumerable:!0,get:function(){return op.ProtobufTraceSerializer}})});var CU=V((NU)=>{Object.defineProperty(NU,"__esModule",{value:!0});NU.JsonLogsSerializer=void 0;var tp=X4(),rp=F1();NU.JsonLogsSerializer={serializeRequest:(Q)=>{let Y=(0,tp.createExportLogsServiceRequest)(Q,rp.JSON_ENCODER);return new TextEncoder().encode(JSON.stringify(Y))},deserializeResponse:(Q)=>{if(Q.length===0)return{};return JSON.parse(new TextDecoder().decode(Q))}}});var DU=V((m4)=>{Object.defineProperty(m4,"__esModule",{value:!0});m4.JsonLogsSerializer=void 0;var sp=CU();Object.defineProperty(m4,"JsonLogsSerializer",{enumerable:!0,get:function(){return sp.JsonLogsSerializer}})});var EU=V((UU)=>{Object.defineProperty(UU,"__esModule",{value:!0});UU.JsonMetricsSerializer=void 0;var Zg=u4(),Jg=F1();UU.JsonMetricsSerializer={serializeRequest:(Q)=>{let Y=(0,Zg.createExportMetricsServiceRequest)([Q],Jg.JSON_ENCODER);return new TextEncoder().encode(JSON.stringify(Y))},deserializeResponse:(Q)=>{if(Q.length===0)return{};return JSON.parse(new TextDecoder().decode(Q))}}});var TU=V((p4)=>{Object.defineProperty(p4,"__esModule",{value:!0});p4.JsonMetricsSerializer=void 0;var Qg=EU();Object.defineProperty(p4,"JsonMetricsSerializer",{enumerable:!0,get:function(){return Qg.JsonMetricsSerializer}})});var MU=V((hU)=>{Object.defineProperty(hU,"__esModule",{value:!0});hU.JsonTraceSerializer=void 0;var Yg=c4(),zg=F1();hU.JsonTraceSerializer={serializeRequest:(Q)=>{let Y=(0,Yg.createExportTraceServiceRequest)(Q,zg.JSON_ENCODER);return new TextEncoder().encode(JSON.stringify(Y))},deserializeResponse:(Q)=>{if(Q.length===0)return{};return JSON.parse(new TextDecoder().decode(Q))}}});var PU=V((g4)=>{Object.defineProperty(g4,"__esModule",{value:!0});g4.JsonTraceSerializer=void 0;var Gg=MU();Object.defineProperty(g4,"JsonTraceSerializer",{enumerable:!0,get:function(){return Gg.JsonTraceSerializer}})});var iZ=V((m0)=>{Object.defineProperty(m0,"__esModule",{value:!0});m0.JsonTraceSerializer=m0.JsonMetricsSerializer=m0.JsonLogsSerializer=m0.ProtobufTraceSerializer=m0.ProtobufMetricsSerializer=m0.ProtobufLogsSerializer=void 0;var qg=mB();Object.defineProperty(m0,"ProtobufLogsSerializer",{enumerable:!0,get:function(){return qg.ProtobufLogsSerializer}});var Kg=XU();Object.defineProperty(m0,"ProtobufMetricsSerializer",{enumerable:!0,get:function(){return Kg.ProtobufMetricsSerializer}});var Fg=VU();Object.defineProperty(m0,"ProtobufTraceSerializer",{enumerable:!0,get:function(){return Fg.ProtobufTraceSerializer}});var Hg=DU();Object.defineProperty(m0,"JsonLogsSerializer",{enumerable:!0,get:function(){return Hg.JsonLogsSerializer}});var Og=TU();Object.defineProperty(m0,"JsonMetricsSerializer",{enumerable:!0,get:function(){return Og.JsonMetricsSerializer}});var Bg=PU();Object.defineProperty(m0,"JsonTraceSerializer",{enumerable:!0,get:function(){return Bg.JsonTraceSerializer}})});var kU=V((wU)=>{Object.defineProperty(wU,"__esModule",{value:!0});wU.validateAndNormalizeHeaders=void 0;var Ng=T();function Ig(Q){let Y={};return Object.entries(Q??{}).forEach(([G,K])=>{if(typeof K<"u")Y[G]=String(K);else Ng.diag.warn(`Header "${G}" has invalid value (${K}) and will be ignored`)}),Y}wU.validateAndNormalizeHeaders=Ig});var _U=V((SU)=>{Object.defineProperty(SU,"__esModule",{value:!0});SU.getHttpConfigurationDefaults=SU.mergeOtlpHttpConfigurationWithDefaults=void 0;var $U=F6(),Cg=kU();function Dg(Q,Y,G){return async()=>{let K={...await G()},z={};if(Y!=null)Object.assign(z,await Y());if(Q!=null)Object.assign(z,(0,Cg.validateAndNormalizeHeaders)(await Q()));return Object.assign(z,K)}}function Ug(Q){if(Q==null)return;try{let Y=globalThis.location?.href;return new URL(Q,Y).href}catch{throw Error(`Configuration: Could not parse user-provided export URL: '${Q}'`)}}function Ag(Q,Y,G){return{...(0,$U.mergeOtlpSharedConfigurationWithDefaults)(Q,Y,G),headers:Dg(Q.headers,Y.headers,G.headers),url:Ug(Q.url)??Y.url??G.url}}SU.mergeOtlpHttpConfigurationWithDefaults=Ag;function Eg(Q,Y){return{...(0,$U.getSharedConfigurationDefaults)(),headers:async()=>Q,url:"http://localhost:4318/"+Y}}SU.getHttpConfigurationDefaults=Eg});var oZ=V((xU)=>{Object.defineProperty(xU,"__esModule",{value:!0});xU.getNodeHttpConfigurationDefaults=xU.mergeOtlpNodeHttpConfigurationWithDefaults=xU.httpAgentFactoryFromOptions=void 0;var yU=_U();function vU(Q){return async(Y)=>{let G=Y==="http:",K=G?import("http"):import("https"),{Agent:z}=await K;if(G){let{ca:W,cert:J,key:Z,...X}=Q;return new z(X)}return new z(Q)}}xU.httpAgentFactoryFromOptions=vU;function hg(Q,Y,G){return{...(0,yU.mergeOtlpHttpConfigurationWithDefaults)(Q,Y,G),agentFactory:Q.agentFactory??Y.agentFactory??G.agentFactory,userAgent:Q.userAgent}}xU.mergeOtlpNodeHttpConfigurationWithDefaults=hg;function Lg(Q,Y){return{...(0,yU.getHttpConfigurationDefaults)(Q,Y),agentFactory:vU({keepAlive:!0})}}xU.getNodeHttpConfigurationDefaults=Lg});var uU=V((bU)=>{Object.defineProperty(bU,"__esModule",{value:!0});bU.parseRetryAfterToMills=bU.isExportHTTPErrorRetryable=void 0;function wg(Q){return Q===429||Q===502||Q===503||Q===504}bU.isExportHTTPErrorRetryable=wg;function Rg(Q){if(Q==null)return;let Y=Number.parseInt(Q,10);if(Number.isInteger(Y))return Y>0?Y*1000:-1;let G=new Date(Q).getTime()-Date.now();if(G>=0)return G;return 0}bU.parseRetryAfterToMills=Rg});var nU=V((lU)=>{Object.defineProperty(lU,"__esModule",{value:!0});lU.VERSION=void 0;lU.VERSION="0.214.0"});var oU=V((gU)=>{Object.defineProperty(gU,"__esModule",{value:!0});gU.compressAndSend=gU.sendWithHttp=void 0;var $g=j("zlib"),Sg=j("stream"),aZ=uU(),fg=GZ(),_g=nU(),mU=`OTel-OTLP-Exporter-JavaScript/${_g.VERSION}`;function yg(Q,Y,G,K,z,W,J,Z){return new Promise((X)=>{let q=new URL(Y);if(z)G["User-Agent"]=`${z} ${mU}`;else G["User-Agent"]=mU;let F={hostname:q.hostname,port:q.port,path:q.pathname,method:"POST",headers:G,agent:W},H=Q(F,(N)=>{let C=[];N.on("data",(U)=>C.push(U)),N.on("end",()=>{if(N.statusCode&&N.statusCode<=299)X({status:"success",data:Buffer.concat(C)});else if(N.statusCode&&(0,aZ.isExportHTTPErrorRetryable)(N.statusCode))X({status:"retryable",retryInMillis:(0,aZ.parseRetryAfterToMills)(N.headers["retry-after"])});else{let U=new fg.OTLPExporterError(N.statusMessage,N.statusCode,Buffer.concat(C).toString());X({status:"failure",error:U})}}),N.on("error",(U)=>{if(N.statusCode&&N.statusCode<=299)X({status:"success"});else if(N.statusCode&&(0,aZ.isExportHTTPErrorRetryable)(N.statusCode))X({status:"retryable",error:U,retryInMillis:(0,aZ.parseRetryAfterToMills)(N.headers["retry-after"])});else X({status:"failure",error:U})})});H.setTimeout(Z,()=>{H.destroy(),X({status:"retryable",error:Error("Request timed out")})}),H.on("error",(N)=>{if(xg(N))X({status:"retryable",error:N});else X({status:"failure",error:N})}),pU(H,K,J,(N)=>{X({status:"failure",error:N})})})}gU.sendWithHttp=yg;function pU(Q,Y,G,K){let z=vg(G);if(Y==="gzip")Q.setHeader("Content-Encoding","gzip"),z=z.on("error",K).pipe($g.createGzip()).on("error",K);z.pipe(Q).on("error",K)}gU.compressAndSend=pU;function vg(Q){let Y=new Sg.Readable;return Y.push(Q),Y.push(null),Y}function xg(Q){let Y=new Set(["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT","EAI_AGAIN","ENOTFOUND","ENETUNREACH","EHOSTUNREACH"]);if("code"in Q&&typeof Q.code==="string")return Y.has(Q.code);return!1}});var sU=V((tU)=>{Object.defineProperty(tU,"__esModule",{value:!0});tU.createHttpExporterTransport=void 0;var bg=oU();class aU{_utils=null;_parameters;constructor(Q){this._parameters=Q}async send(Q,Y){let{agent:G,request:K}=await this._loadUtils(),z=await this._parameters.headers();return(0,bg.sendWithHttp)(K,this._parameters.url,z,this._parameters.compression,this._parameters.userAgent,G,Q,Y)}shutdown(){}async _loadUtils(){let Q=this._utils;if(Q===null){let Y=new URL(this._parameters.url).protocol,[G,K]=await Promise.all([this._parameters.agentFactory(Y),dg(Y)]);Q=this._utils={agent:G,request:K}}return Q}}async function dg(Q){let Y=Q==="http:"?import("http"):import("https"),{request:G}=await Y;return G}function ug(Q){return new aU(Q)}tU.createHttpExporterTransport=ug});var XA=V((JA)=>{Object.defineProperty(JA,"__esModule",{value:!0});JA.createRetryingTransport=void 0;var j6=T(),i4=5,lg=1000,cg=5000,ng=1.5,eU=0.2;function mg(){return Math.random()*(2*eU)-eU}class ZA{_transport;constructor(Q){this._transport=Q}retry(Q,Y,G){return new Promise((K,z)=>{setTimeout(()=>{this._transport.send(Q,Y).then(K,z)},G)})}async send(Q,Y){let G=i4,K=lg,z=Date.now()+Y,W=await this._transport.send(Q,Y);while(W.status==="retryable"&&G>0){G--;let J=Math.max(Math.min(K*(1+mg()),cg),0);K=K*ng;let Z=W.retryInMillis??J,X=z-Date.now();if(Z>X)return j6.diag.info(`Export retry time ${Math.round(Z)}ms exceeds remaining timeout ${Math.round(X)}ms, not retrying further.`),W;j6.diag.verbose(`Scheduling export retry in ${Math.round(Z)}ms`),W=await this.retry(Q,X,Z)}if(W.status==="success")j6.diag.verbose(`Export succeeded after ${i4-G} retry attempts.`);else if(W.status==="retryable")j6.diag.info(`Export failed after maximum retry attempts (${i4}).`);else j6.diag.info(`Export failed with non-retryable error: ${W.error}`);return W}shutdown(){return this._transport.shutdown()}}function pg(Q){return new ZA(Q.transport)}JA.createRetryingTransport=pg});var GA=V((YA)=>{Object.defineProperty(YA,"__esModule",{value:!0});YA.createOtlpHttpExportDelegate=void 0;var gg=c7(),ig=sU(),og=M7(),ag=XA();function tg(Q,Y){return(0,gg.createOtlpExportDelegate)({transport:(0,ag.createRetryingTransport)({transport:(0,ig.createHttpExporterTransport)(Q)}),serializer:Y,promiseHandler:(0,og.createBoundedQueueExportPromiseHandler)(Q)},{timeout:Q.timeoutMillis})}YA.createOtlpHttpExportDelegate=tg});var o4=V((HA)=>{Object.defineProperty(HA,"__esModule",{value:!0});HA.getSharedConfigurationFromEnvironment=void 0;var KA=S(),FA=T();function WA(Q){let Y=(0,KA.getNumberFromEnv)(Q);if(Y!=null){if(Number.isFinite(Y)&&Y>0)return Y;FA.diag.warn(`Configuration: ${Q} is invalid, expected number greater than 0 (actual: ${Y})`)}return}function rg(Q){let Y=WA(`OTEL_EXPORTER_OTLP_${Q}_TIMEOUT`),G=WA("OTEL_EXPORTER_OTLP_TIMEOUT");return Y??G}function qA(Q){let Y=(0,KA.getStringFromEnv)(Q)?.trim();if(Y==null||Y==="none"||Y==="gzip")return Y;FA.diag.warn(`Configuration: ${Q} is invalid, expected 'none' or 'gzip' (actual: '${Y}')`);return}function sg(Q){let Y=qA(`OTEL_EXPORTER_OTLP_${Q}_COMPRESSION`),G=qA("OTEL_EXPORTER_OTLP_COMPRESSION");return Y??G}function eg(Q){return{timeoutMillis:rg(Q),compression:sg(Q)}}HA.getSharedConfigurationFromEnvironment=eg});var NA=V((BA)=>{Object.defineProperty(BA,"__esModule",{value:!0});BA.getNodeHttpConfigurationFromEnvironment=void 0;var Zi=j("fs"),Ji=j("path"),h0=S(),tZ=T(),Qi=o4(),Xi=F6(),Yi=oZ();function zi(Q){let Y=(0,h0.getStringFromEnv)(`OTEL_EXPORTER_OTLP_${Q}_HEADERS`),G=(0,h0.getStringFromEnv)("OTEL_EXPORTER_OTLP_HEADERS"),K=(0,h0.parseKeyPairsIntoRecord)(Y),z=(0,h0.parseKeyPairsIntoRecord)(G);if(Object.keys(K).length===0&&Object.keys(z).length===0)return;return Object.assign({},(0,h0.parseKeyPairsIntoRecord)(G),(0,h0.parseKeyPairsIntoRecord)(Y))}function Gi(Q){try{return new URL(Q).toString()}catch{tZ.diag.warn(`Configuration: Could not parse environment-provided export URL: '${Q}', falling back to undefined`);return}}function Wi(Q,Y){try{new URL(Q)}catch{tZ.diag.warn(`Configuration: Could not parse environment-provided export URL: '${Q}', falling back to undefined`);return}if(!Q.endsWith("/"))Q=Q+"/";Q+=Y;try{new URL(Q)}catch{tZ.diag.warn(`Configuration: Provided URL appended with '${Y}' is not a valid URL, using 'undefined' instead of '${Q}'`);return}return Q}function qi(Q){let Y=(0,h0.getStringFromEnv)("OTEL_EXPORTER_OTLP_ENDPOINT");if(Y===void 0)return;return Wi(Y,Q)}function Ki(Q){let Y=(0,h0.getStringFromEnv)(`OTEL_EXPORTER_OTLP_${Q}_ENDPOINT`);if(Y===void 0)return;return Gi(Y)}function a4(Q,Y,G){let K=(0,h0.getStringFromEnv)(Q),z=(0,h0.getStringFromEnv)(Y),W=K??z;if(W!=null)try{return Zi.readFileSync(Ji.resolve(process.cwd(),W))}catch{tZ.diag.warn(G);return}else return}function Fi(Q){return a4(`OTEL_EXPORTER_OTLP_${Q}_CLIENT_CERTIFICATE`,"OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE","Failed to read client certificate chain file")}function Hi(Q){return a4(`OTEL_EXPORTER_OTLP_${Q}_CLIENT_KEY`,"OTEL_EXPORTER_OTLP_CLIENT_KEY","Failed to read client certificate private key file")}function Oi(Q){return a4(`OTEL_EXPORTER_OTLP_${Q}_CERTIFICATE`,"OTEL_EXPORTER_OTLP_CERTIFICATE","Failed to read root certificate file")}function Bi(Q,Y){return{...(0,Qi.getSharedConfigurationFromEnvironment)(Q),url:Ki(Q)??qi(Y),headers:(0,Xi.wrapStaticHeadersInFunction)(zi(Q)),agentFactory:(0,Yi.httpAgentFactoryFromOptions)({keepAlive:!0,ca:Oi(Q),cert:Fi(Q),key:Hi(Q)})}}BA.getNodeHttpConfigurationFromEnvironment=Bi});var DA=V((IA)=>{Object.defineProperty(IA,"__esModule",{value:!0});IA.convertLegacyHeaders=void 0;var Vi=F6();function Ni(Q){if(typeof Q.headers==="function")return Q.headers;return(0,Vi.wrapStaticHeadersInFunction)(Q.headers)}IA.convertLegacyHeaders=Ni});var TA=V((AA)=>{Object.defineProperty(AA,"__esModule",{value:!0});AA.convertLegacyHttpOptions=void 0;var Ii=T(),UA=oZ(),Ci=b6(),Di=NA(),Ui=DA();function Ai(Q){if(typeof Q.httpAgentOptions==="function")return Q.httpAgentOptions;let Y=Q.httpAgentOptions;if(Q.keepAlive!=null)Y={keepAlive:Q.keepAlive,...Y};if(Y!=null)return(0,Ci.httpAgentFactoryFromOptions)(Y);else return}function Ei(Q,Y,G,K){if(Q.metadata)Ii.diag.warn("Metadata cannot be set when using http");return(0,UA.mergeOtlpNodeHttpConfigurationWithDefaults)({url:Q.url,headers:(0,Ui.convertLegacyHeaders)(Q),concurrencyLimit:Q.concurrencyLimit,timeoutMillis:Q.timeoutMillis,compression:Q.compression,agentFactory:Ai(Q),userAgent:Q.userAgent},(0,Di.getNodeHttpConfigurationFromEnvironment)(Y,G),(0,UA.getNodeHttpConfigurationDefaults)(K,G))}AA.convertLegacyHttpOptions=Ei});var b6=V((m1)=>{Object.defineProperty(m1,"__esModule",{value:!0});m1.convertLegacyHttpOptions=m1.getSharedConfigurationFromEnvironment=m1.createOtlpHttpExportDelegate=m1.httpAgentFactoryFromOptions=void 0;var Ti=oZ();Object.defineProperty(m1,"httpAgentFactoryFromOptions",{enumerable:!0,get:function(){return Ti.httpAgentFactoryFromOptions}});var hi=GA();Object.defineProperty(m1,"createOtlpHttpExportDelegate",{enumerable:!0,get:function(){return hi.createOtlpHttpExportDelegate}});var Li=o4();Object.defineProperty(m1,"getSharedConfigurationFromEnvironment",{enumerable:!0,get:function(){return Li.getSharedConfigurationFromEnvironment}});var Mi=TA();Object.defineProperty(m1,"convertLegacyHttpOptions",{enumerable:!0,get:function(){return Mi.convertLegacyHttpOptions}})});var wA=V((MA)=>{Object.defineProperty(MA,"__esModule",{value:!0});MA.OTLPLogExporter=void 0;var wi=UZ(),Ri=iZ(),hA=b6();class LA extends wi.OTLPExporterBase{constructor(Q={}){super((0,hA.createOtlpHttpExportDelegate)((0,hA.convertLegacyHttpOptions)(Q,"LOGS","v1/logs",{"Content-Type":"application/json"}),Ri.JsonLogsSerializer))}}MA.OTLPLogExporter=LA});var RA=V((t4)=>{Object.defineProperty(t4,"__esModule",{value:!0});t4.OTLPLogExporter=void 0;var ki=wA();Object.defineProperty(t4,"OTLPLogExporter",{enumerable:!0,get:function(){return ki.OTLPLogExporter}})});var kA=V((r4)=>{Object.defineProperty(r4,"__esModule",{value:!0});r4.OTLPLogExporter=void 0;var Si=RA();Object.defineProperty(r4,"OTLPLogExporter",{enumerable:!0,get:function(){return Si.OTLPLogExporter}})});var $A=V((s4)=>{Object.defineProperty(s4,"__esModule",{value:!0});s4.OTLPLogExporter=void 0;var _i=kA();Object.defineProperty(s4,"OTLPLogExporter",{enumerable:!0,get:function(){return _i.OTLPLogExporter}})});var Z8=V((SA)=>{Object.defineProperty(SA,"__esModule",{value:!0});SA.AggregationTemporalityPreference=void 0;var vi;(function(Q){Q[Q.DELTA=0]="DELTA",Q[Q.CUMULATIVE=1]="CUMULATIVE",Q[Q.LOWMEMORY=2]="LOWMEMORY"})(vi=SA.AggregationTemporalityPreference||(SA.AggregationTemporalityPreference={}))});var X8=V((yA)=>{Object.defineProperty(yA,"__esModule",{value:!0});yA.OTLPMetricExporterBase=yA.LowMemoryTemporalitySelector=yA.DeltaTemporalitySelector=yA.CumulativeTemporalitySelector=void 0;var xi=S(),m=gZ(),fA=Z8(),ji=UZ(),bi=T(),di=()=>m.AggregationTemporality.CUMULATIVE;yA.CumulativeTemporalitySelector=di;var ui=(Q)=>{switch(Q){case m.InstrumentType.COUNTER:case m.InstrumentType.OBSERVABLE_COUNTER:case m.InstrumentType.GAUGE:case m.InstrumentType.HISTOGRAM:case m.InstrumentType.OBSERVABLE_GAUGE:return m.AggregationTemporality.DELTA;case m.InstrumentType.UP_DOWN_COUNTER:case m.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER:return m.AggregationTemporality.CUMULATIVE}};yA.DeltaTemporalitySelector=ui;var li=(Q)=>{switch(Q){case m.InstrumentType.COUNTER:case m.InstrumentType.HISTOGRAM:return m.AggregationTemporality.DELTA;case m.InstrumentType.GAUGE:case m.InstrumentType.UP_DOWN_COUNTER:case m.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER:case m.InstrumentType.OBSERVABLE_COUNTER:case m.InstrumentType.OBSERVABLE_GAUGE:return m.AggregationTemporality.CUMULATIVE}};yA.LowMemoryTemporalitySelector=li;function ci(){let Q=((0,xi.getStringFromEnv)("OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE")??"cumulative").toLowerCase();if(Q==="cumulative")return yA.CumulativeTemporalitySelector;if(Q==="delta")return yA.DeltaTemporalitySelector;if(Q==="lowmemory")return yA.LowMemoryTemporalitySelector;return bi.diag.warn(`OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE is set to '${Q}', but only 'cumulative' and 'delta' are allowed. Using default ('cumulative') instead.`),yA.CumulativeTemporalitySelector}function ni(Q){if(Q!=null){if(Q===fA.AggregationTemporalityPreference.DELTA)return yA.DeltaTemporalitySelector;else if(Q===fA.AggregationTemporalityPreference.LOWMEMORY)return yA.LowMemoryTemporalitySelector;return yA.CumulativeTemporalitySelector}return ci()}var mi=Object.freeze({type:m.AggregationType.DEFAULT});function pi(Q){return Q?.aggregationPreference??(()=>mi)}class _A extends ji.OTLPExporterBase{_aggregationTemporalitySelector;_aggregationSelector;constructor(Q,Y){super(Q);this._aggregationSelector=pi(Y),this._aggregationTemporalitySelector=ni(Y?.temporalityPreference)}selectAggregation(Q){return this._aggregationSelector(Q)}selectAggregationTemporality(Q){return this._aggregationTemporalitySelector(Q)}}yA.OTLPMetricExporterBase=_A});var uA=V((bA)=>{Object.defineProperty(bA,"__esModule",{value:!0});bA.OTLPMetricExporter=void 0;var gi=X8(),ii=iZ(),xA=b6();class jA extends gi.OTLPMetricExporterBase{constructor(Q){super((0,xA.createOtlpHttpExportDelegate)((0,xA.convertLegacyHttpOptions)(Q??{},"METRICS","v1/metrics",{"Content-Type":"application/json"}),ii.JsonMetricsSerializer),Q)}}bA.OTLPMetricExporter=jA});var lA=V((Y8)=>{Object.defineProperty(Y8,"__esModule",{value:!0});Y8.OTLPMetricExporter=void 0;var oi=uA();Object.defineProperty(Y8,"OTLPMetricExporter",{enumerable:!0,get:function(){return oi.OTLPMetricExporter}})});var cA=V((z8)=>{Object.defineProperty(z8,"__esModule",{value:!0});z8.OTLPMetricExporter=void 0;var ti=lA();Object.defineProperty(z8,"OTLPMetricExporter",{enumerable:!0,get:function(){return ti.OTLPMetricExporter}})});var nA=V((p0)=>{Object.defineProperty(p0,"__esModule",{value:!0});p0.OTLPMetricExporterBase=p0.LowMemoryTemporalitySelector=p0.DeltaTemporalitySelector=p0.CumulativeTemporalitySelector=p0.AggregationTemporalityPreference=p0.OTLPMetricExporter=void 0;var si=cA();Object.defineProperty(p0,"OTLPMetricExporter",{enumerable:!0,get:function(){return si.OTLPMetricExporter}});var ei=Z8();Object.defineProperty(p0,"AggregationTemporalityPreference",{enumerable:!0,get:function(){return ei.AggregationTemporalityPreference}});var sZ=X8();Object.defineProperty(p0,"CumulativeTemporalitySelector",{enumerable:!0,get:function(){return sZ.CumulativeTemporalitySelector}});Object.defineProperty(p0,"DeltaTemporalitySelector",{enumerable:!0,get:function(){return sZ.DeltaTemporalitySelector}});Object.defineProperty(p0,"LowMemoryTemporalitySelector",{enumerable:!0,get:function(){return sZ.LowMemoryTemporalitySelector}});Object.defineProperty(p0,"OTLPMetricExporterBase",{enumerable:!0,get:function(){return sZ.OTLPMetricExporterBase}})});var oA=V((gA)=>{Object.defineProperty(gA,"__esModule",{value:!0});gA.OTLPTraceExporter=void 0;var Jo=UZ(),Qo=iZ(),mA=b6();class pA extends Jo.OTLPExporterBase{constructor(Q={}){super((0,mA.createOtlpHttpExportDelegate)((0,mA.convertLegacyHttpOptions)(Q,"TRACES","v1/traces",{"Content-Type":"application/json"}),Qo.JsonTraceSerializer))}}gA.OTLPTraceExporter=pA});var aA=V((G8)=>{Object.defineProperty(G8,"__esModule",{value:!0});G8.OTLPTraceExporter=void 0;var Xo=oA();Object.defineProperty(G8,"OTLPTraceExporter",{enumerable:!0,get:function(){return Xo.OTLPTraceExporter}})});var tA=V((W8)=>{Object.defineProperty(W8,"__esModule",{value:!0});W8.OTLPTraceExporter=void 0;var zo=aA();Object.defineProperty(W8,"OTLPTraceExporter",{enumerable:!0,get:function(){return zo.OTLPTraceExporter}})});var rA=V((q8)=>{Object.defineProperty(q8,"__esModule",{value:!0});q8.OTLPTraceExporter=void 0;var Wo=tA();Object.defineProperty(q8,"OTLPTraceExporter",{enumerable:!0,get:function(){return Wo.OTLPTraceExporter}})});var ZE=V((sA)=>{Object.defineProperty(sA,"__esModule",{value:!0});sA.isLogAttributeValue=void 0;function Ko(Q){return K8(Q,new WeakSet)}sA.isLogAttributeValue=Ko;function K8(Q,Y){if(Q==null)return!0;if(typeof Q==="string"||typeof Q==="number"||typeof Q==="boolean")return!0;if(Q instanceof Uint8Array)return!0;if(typeof Q==="object"){if(Y.has(Q))return!1;if(Y.add(Q),Array.isArray(Q))return Q.every((K)=>K8(K,Y));let G=Q;if(G.constructor!==Object&&G.constructor!==void 0)return!1;return Object.values(G).every((K)=>K8(K,Y))}return!1}});var zE=V((XE)=>{Object.defineProperty(XE,"__esModule",{value:!0});XE.LogRecordImpl=void 0;var g0=T(),JE=S(),L0=X1(),Fo=ZE();class QE{hrTime;hrTimeObserved;spanContext;resource;instrumentationScope;attributes={};_severityText;_severityNumber;_body;_eventName;_attributesCount=0;_droppedAttributesCount=0;_isReadonly=!1;_logRecordLimits;set severityText(Q){if(this._isLogRecordReadonly())return;this._severityText=Q}get severityText(){return this._severityText}set severityNumber(Q){if(this._isLogRecordReadonly())return;this._severityNumber=Q}get severityNumber(){return this._severityNumber}set body(Q){if(this._isLogRecordReadonly())return;this._body=Q}get body(){return this._body}get eventName(){return this._eventName}set eventName(Q){if(this._isLogRecordReadonly())return;this._eventName=Q}get droppedAttributesCount(){return this._droppedAttributesCount}constructor(Q,Y,G){let{timestamp:K,observedTimestamp:z,eventName:W,severityNumber:J,severityText:Z,body:X,attributes:q={},exception:F,context:H}=G,N=Date.now();if(this.hrTime=(0,JE.timeInputToHrTime)(K??N),this.hrTimeObserved=(0,JE.timeInputToHrTime)(z??N),H){let C=g0.trace.getSpanContext(H);if(C&&g0.isSpanContextValid(C))this.spanContext=C}if(this.severityNumber=J,this.severityText=Z,this.body=X,this.resource=Q.resource,this.instrumentationScope=Y,this._logRecordLimits=Q.logRecordLimits,this._eventName=W,this.setAttributes(q),F!=null)this._setException(F)}setAttribute(Q,Y){if(this._isLogRecordReadonly())return this;if(Q.length===0)return g0.diag.warn(`Invalid attribute key: ${Q}`),this;if(!(0,Fo.isLogAttributeValue)(Y))return g0.diag.warn(`Invalid attribute value set for key: ${Q}`),this;let G=!Object.prototype.hasOwnProperty.call(this.attributes,Q);if(G&&this._attributesCount>=this._logRecordLimits.attributeCountLimit){if(this._droppedAttributesCount++,this._droppedAttributesCount===1)g0.diag.warn("Dropping extra attributes.");return this}if(this.attributes[Q]=this._truncateToSize(Y),G)this._attributesCount++;return this}setAttributes(Q){for(let[Y,G]of Object.entries(Q))this.setAttribute(Y,G);return this}setBody(Q){return this.body=Q,this}setEventName(Q){return this.eventName=Q,this}setSeverityNumber(Q){return this.severityNumber=Q,this}setSeverityText(Q){return this.severityText=Q,this}_makeReadonly(){this._isReadonly=!0}_truncateToSize(Q){let Y=this._logRecordLimits.attributeValueLengthLimit;if(Y<=0)return g0.diag.warn(`Attribute value limit must be positive, got ${Y}`),Q;if(Q==null)return Q;if(typeof Q==="string")return this._truncateToLimitUtil(Q,Y);if(Q instanceof Uint8Array)return Q;if(Array.isArray(Q))return Q.map((G)=>this._truncateToSize(G));if(typeof Q==="object"){let G={};for(let[K,z]of Object.entries(Q))G[K]=this._truncateToSize(z);return G}return Q}_setException(Q){let Y=!1;if(typeof Q==="string"||typeof Q==="number"){if(!Object.hasOwn(this.attributes,L0.ATTR_EXCEPTION_MESSAGE))this.setAttribute(L0.ATTR_EXCEPTION_MESSAGE,String(Q));Y=!0}else if(Q&&typeof Q==="object"){let G=Q;if(G.code){if(!Object.hasOwn(this.attributes,L0.ATTR_EXCEPTION_TYPE))this.setAttribute(L0.ATTR_EXCEPTION_TYPE,G.code.toString());Y=!0}else if(G.name){if(!Object.hasOwn(this.attributes,L0.ATTR_EXCEPTION_TYPE))this.setAttribute(L0.ATTR_EXCEPTION_TYPE,G.name);Y=!0}if(G.message){if(!Object.hasOwn(this.attributes,L0.ATTR_EXCEPTION_MESSAGE))this.setAttribute(L0.ATTR_EXCEPTION_MESSAGE,G.message);Y=!0}if(G.stack){if(!Object.hasOwn(this.attributes,L0.ATTR_EXCEPTION_STACKTRACE))this.setAttribute(L0.ATTR_EXCEPTION_STACKTRACE,G.stack);Y=!0}}if(!Y)g0.diag.warn(`Failed to record an exception ${Q}`)}_truncateToLimitUtil(Q,Y){if(Q.length<=Y)return Q;return Q.substring(0,Y)}_isLogRecordReadonly(){if(this._isReadonly)g0.diag.warn("Can not execute the operation on emitted log record");return this._isReadonly}}XE.LogRecordImpl=QE});var FE=V((qE)=>{Object.defineProperty(qE,"__esModule",{value:!0});qE.Logger=void 0;var GE=$1(),d6=T(),Ho=zE();class WE{instrumentationScope;_sharedState;_loggerConfig;constructor(Q,Y){this.instrumentationScope=Q,this._sharedState=Y,this._loggerConfig=this._sharedState.getLoggerConfig(this.instrumentationScope)}emit(Q){let Y=this._loggerConfig,G=Q.context||d6.context.active(),K=Q.severityNumber??GE.SeverityNumber.UNSPECIFIED;if(K!==GE.SeverityNumber.UNSPECIFIED&&K<Y.minimumSeverity)return;if(Y.traceBased){let W=d6.trace.getSpanContext(G);if(W&&(0,d6.isSpanContextValid)(W)){if((W.traceFlags&d6.TraceFlags.SAMPLED)!==d6.TraceFlags.SAMPLED)return}}let z=new Ho.LogRecordImpl(this._sharedState,this.instrumentationScope,{context:G,...Q});this._sharedState.activeProcessor.onEmit(z,G),z._makeReadonly()}}qE.Logger=WE});var VE=V((OE)=>{Object.defineProperty(OE,"__esModule",{value:!0});OE.NoopLogRecordProcessor=void 0;class HE{forceFlush(){return Promise.resolve()}onEmit(Q,Y){}shutdown(){return Promise.resolve()}}OE.NoopLogRecordProcessor=HE});var DE=V((IE)=>{Object.defineProperty(IE,"__esModule",{value:!0});IE.MultiLogRecordProcessor=void 0;var Oo=S();class NE{processors;forceFlushTimeoutMillis;constructor(Q,Y){this.processors=Q,this.forceFlushTimeoutMillis=Y}async forceFlush(){let Q=this.forceFlushTimeoutMillis;await Promise.all(this.processors.map((Y)=>(0,Oo.callWithTimeout)(Y.forceFlush(),Q)))}onEmit(Q,Y){this.processors.forEach((G)=>G.onEmit(Q,Y))}async shutdown(){await Promise.all(this.processors.map((Q)=>Q.shutdown()))}}IE.MultiLogRecordProcessor=NE});var EE=V((UE)=>{Object.defineProperty(UE,"__esModule",{value:!0});UE.getInstrumentationScopeKey=void 0;function Bo(Q){return`${Q.name}@${Q.version||""}:${Q.schemaUrl||""}`}UE.getInstrumentationScopeKey=Bo});var PE=V((hE)=>{Object.defineProperty(hE,"__esModule",{value:!0});hE.LoggerProviderSharedState=hE.DEFAULT_LOGGER_CONFIGURATOR=void 0;var Vo=$1(),No=VE(),Io=DE(),Co=EE(),Do={disabled:!1,minimumSeverity:Vo.SeverityNumber.UNSPECIFIED,traceBased:!1},Uo=()=>({...Do});hE.DEFAULT_LOGGER_CONFIGURATOR=Uo;class TE{loggers=new Map;activeProcessor;registeredLogRecordProcessors=[];resource;forceFlushTimeoutMillis;logRecordLimits;processors;_loggerConfigurator;_loggerConfigs=new Map;constructor(Q,Y,G,K,z){if(this.resource=Q,this.forceFlushTimeoutMillis=Y,this.logRecordLimits=G,this.processors=K,K.length>0)this.registeredLogRecordProcessors=K,this.activeProcessor=new Io.MultiLogRecordProcessor(this.registeredLogRecordProcessors,this.forceFlushTimeoutMillis);else this.activeProcessor=new No.NoopLogRecordProcessor;this._loggerConfigurator=z??hE.DEFAULT_LOGGER_CONFIGURATOR}getLoggerConfig(Q){let Y=(0,Co.getInstrumentationScopeKey)(Q),G=this._loggerConfigs.get(Y);if(G)return G;return G=this._loggerConfigurator(Q),this._loggerConfigs.set(Y,G),G}}hE.LoggerProviderSharedState=TE});var fE=V((kE)=>{Object.defineProperty(kE,"__esModule",{value:!0});kE.LoggerProvider=kE.DEFAULT_LOGGER_NAME=void 0;var eZ=T(),Ao=$1(),Eo=S6(),To=S(),ho=FE(),wE=PE();kE.DEFAULT_LOGGER_NAME="unknown";class RE{_shutdownOnce;_sharedState;constructor(Q={}){let Y={resource:Q.resource??(0,Eo.defaultResource)(),forceFlushTimeoutMillis:Q.forceFlushTimeoutMillis??30000,logRecordLimits:{attributeCountLimit:Q.logRecordLimits?.attributeCountLimit??128,attributeValueLengthLimit:Q.logRecordLimits?.attributeValueLengthLimit??1/0},loggerConfigurator:Q.loggerConfigurator??wE.DEFAULT_LOGGER_CONFIGURATOR,processors:Q.processors??[]};this._sharedState=new wE.LoggerProviderSharedState(Y.resource,Y.forceFlushTimeoutMillis,Y.logRecordLimits,Y.processors,Y.loggerConfigurator),this._shutdownOnce=new To.BindOnceFuture(this._shutdown,this)}getLogger(Q,Y,G){if(this._shutdownOnce.isCalled)return eZ.diag.warn("A shutdown LoggerProvider cannot provide a Logger"),Ao.NOOP_LOGGER;if(!Q)eZ.diag.warn("Logger requested without instrumentation scope name.");let K=Q||kE.DEFAULT_LOGGER_NAME,z=`${K}@${Y||""}:${G?.schemaUrl||""}`;if(!this._sharedState.loggers.has(z))this._sharedState.loggers.set(z,new ho.Logger({name:K,version:Y,schemaUrl:G?.schemaUrl},this._sharedState));return this._sharedState.loggers.get(z)}forceFlush(){if(this._shutdownOnce.isCalled)return eZ.diag.warn("invalid attempt to force flush after LoggerProvider shutdown"),this._shutdownOnce.promise;return this._sharedState.activeProcessor.forceFlush()}shutdown(){if(this._shutdownOnce.isCalled)return eZ.diag.warn("shutdown may only be called once per LoggerProvider"),this._shutdownOnce.promise;return this._shutdownOnce.call()}_shutdown(){return this._sharedState.activeProcessor.shutdown()}}kE.LoggerProvider=RE});var jE=V((vE)=>{Object.defineProperty(vE,"__esModule",{value:!0});vE.ConsoleLogRecordExporter=void 0;var _E=S();class yE{export(Q,Y){this._sendLogRecords(Q,Y)}shutdown(){return Promise.resolve()}_exportInfo(Q){return{resource:{attributes:Q.resource.attributes},instrumentationScope:Q.instrumentationScope,timestamp:(0,_E.hrTimeToMicroseconds)(Q.hrTime),traceId:Q.spanContext?.traceId,spanId:Q.spanContext?.spanId,traceFlags:Q.spanContext?.traceFlags,severityText:Q.severityText,severityNumber:Q.severityNumber,eventName:Q.eventName,body:Q.body,attributes:Q.attributes}}_sendLogRecords(Q,Y){for(let G of Q)console.dir(this._exportInfo(G),{depth:3});Y?.({code:_E.ExportResultCode.SUCCESS})}}vE.ConsoleLogRecordExporter=yE});var lE=V((dE)=>{Object.defineProperty(dE,"__esModule",{value:!0});dE.SimpleLogRecordProcessor=void 0;var p1=S();class bE{_exporter;_shutdownOnce;_unresolvedExports;constructor(Q){this._exporter=Q,this._shutdownOnce=new p1.BindOnceFuture(this._shutdown,this),this._unresolvedExports=new Set}onEmit(Q){if(this._shutdownOnce.isCalled)return;let Y=()=>p1.internal._export(this._exporter,[Q]).then((G)=>{if(G.code!==p1.ExportResultCode.SUCCESS)(0,p1.globalErrorHandler)(G.error??Error(`SimpleLogRecordProcessor: log record export failed (status ${G})`))}).catch(p1.globalErrorHandler);if(Q.resource.asyncAttributesPending){let G=Q.resource.waitForAsyncAttributes?.().then(()=>{return this._unresolvedExports.delete(G),Y()},p1.globalErrorHandler);if(G!=null)this._unresolvedExports.add(G)}else Y()}async forceFlush(){await Promise.all(Array.from(this._unresolvedExports))}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}}dE.SimpleLogRecordProcessor=bE});var gE=V((mE)=>{Object.defineProperty(mE,"__esModule",{value:!0});mE.InMemoryLogRecordExporter=void 0;var cE=S();class nE{_finishedLogRecords=[];_stopped=!1;export(Q,Y){if(this._stopped)return Y({code:cE.ExportResultCode.FAILED,error:Error("Exporter has been stopped")});this._finishedLogRecords.push(...Q),Y({code:cE.ExportResultCode.SUCCESS})}shutdown(){return this._stopped=!0,this.reset(),Promise.resolve()}getFinishedLogRecords(){return this._finishedLogRecords}reset(){this._finishedLogRecords=[]}}mE.InMemoryLogRecordExporter=nE});var tE=V((oE)=>{Object.defineProperty(oE,"__esModule",{value:!0});oE.BatchLogRecordProcessorBase=void 0;var Lo=T(),i0=S();class iE{_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_exporter;_isExporting=!1;_finishedLogRecords=[];_timer;_shutdownOnce;constructor(Q,Y){if(this._exporter=Q,this._maxExportBatchSize=Y?.maxExportBatchSize??512,this._maxQueueSize=Y?.maxQueueSize??2048,this._scheduledDelayMillis=Y?.scheduledDelayMillis??5000,this._exportTimeoutMillis=Y?.exportTimeoutMillis??30000,this._shutdownOnce=new i0.BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize)Lo.diag.warn("BatchLogRecordProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize}onEmit(Q){if(this._shutdownOnce.isCalled)return;this._addToBuffer(Q)}forceFlush(){if(this._shutdownOnce.isCalled)return this._shutdownOnce.promise;return this._flushAll()}shutdown(){return this._shutdownOnce.call()}async _shutdown(){this.onShutdown(),await this._flushAll(),await this._exporter.shutdown()}_addToBuffer(Q){if(this._finishedLogRecords.length>=this._maxQueueSize)return;this._finishedLogRecords.push(Q),this._maybeStartTimer()}_flushAll(){return new Promise((Q,Y)=>{let G=[],K=Math.ceil(this._finishedLogRecords.length/this._maxExportBatchSize);for(let z=0;z<K;z++)G.push(this._flushOneBatch());Promise.all(G).then(()=>{Q()}).catch(Y)})}_flushOneBatch(){if(this._clearTimer(),this._finishedLogRecords.length===0)return Promise.resolve();return(0,i0.callWithTimeout)(this._export(this._finishedLogRecords.splice(0,this._maxExportBatchSize)),this._exportTimeoutMillis)}_maybeStartTimer(){if(this._isExporting)return;let Q=()=>{this._isExporting=!0,this._flushOneBatch().then(()=>{if(this._isExporting=!1,this._finishedLogRecords.length>0)this._clearTimer(),this._maybeStartTimer()}).catch((Y)=>{this._isExporting=!1,(0,i0.globalErrorHandler)(Y)})};if(this._finishedLogRecords.length>=this._maxExportBatchSize)return Q();if(this._timer!==void 0)return;if(this._timer=setTimeout(()=>Q(),this._scheduledDelayMillis),typeof this._timer!=="number")this._timer.unref()}_clearTimer(){if(this._timer!==void 0)clearTimeout(this._timer),this._timer=void 0}_export(Q){let Y=()=>i0.internal._export(this._exporter,Q).then((K)=>{if(K.code!==i0.ExportResultCode.SUCCESS)(0,i0.globalErrorHandler)(K.error??Error(`BatchLogRecordProcessor: log record export failed (status ${K})`))}).catch(i0.globalErrorHandler),G=[];for(let K=0;K<Q.length;K++){let z=Q[K].resource;if(z.asyncAttributesPending&&typeof z.waitForAsyncAttributes==="function")G.push(z.waitForAsyncAttributes())}if(G.length===0)return Y();else return Promise.all(G).then(Y,i0.globalErrorHandler)}}oE.BatchLogRecordProcessorBase=iE});var ZT=V((sE)=>{Object.defineProperty(sE,"__esModule",{value:!0});sE.BatchLogRecordProcessor=void 0;var Mo=tE();class rE extends Mo.BatchLogRecordProcessorBase{onShutdown(){}}sE.BatchLogRecordProcessor=rE});var JT=V((F8)=>{Object.defineProperty(F8,"__esModule",{value:!0});F8.BatchLogRecordProcessor=void 0;var Po=ZT();Object.defineProperty(F8,"BatchLogRecordProcessor",{enumerable:!0,get:function(){return Po.BatchLogRecordProcessor}})});var QT=V((H8)=>{Object.defineProperty(H8,"__esModule",{value:!0});H8.BatchLogRecordProcessor=void 0;var Ro=JT();Object.defineProperty(H8,"BatchLogRecordProcessor",{enumerable:!0,get:function(){return Ro.BatchLogRecordProcessor}})});var zT=V((XT)=>{Object.defineProperty(XT,"__esModule",{value:!0});XT.createLoggerConfigurator=void 0;var $o=$1(),ZJ={disabled:!1,minimumSeverity:$o.SeverityNumber.UNSPECIFIED,traceBased:!1};function So(Q){return(Y)=>{let G=Y.name;for(let{pattern:K,config:z}of Q)if(fo(G,K))return{disabled:z.disabled??ZJ.disabled,minimumSeverity:z.minimumSeverity??ZJ.minimumSeverity,traceBased:z.traceBased??ZJ.traceBased};return{...ZJ}}}XT.createLoggerConfigurator=So;function fo(Q,Y){if(Y===Q)return!0;if(Y.includes("*")){let G=Y.split("*").map((z)=>z.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join(".*");return new RegExp(`^${G}$`).test(Q)}return!1}});var GT=V((o0)=>{Object.defineProperty(o0,"__esModule",{value:!0});o0.createLoggerConfigurator=o0.BatchLogRecordProcessor=o0.InMemoryLogRecordExporter=o0.SimpleLogRecordProcessor=o0.ConsoleLogRecordExporter=o0.LoggerProvider=void 0;var _o=fE();Object.defineProperty(o0,"LoggerProvider",{enumerable:!0,get:function(){return _o.LoggerProvider}});var yo=jE();Object.defineProperty(o0,"ConsoleLogRecordExporter",{enumerable:!0,get:function(){return yo.ConsoleLogRecordExporter}});var vo=lE();Object.defineProperty(o0,"SimpleLogRecordProcessor",{enumerable:!0,get:function(){return vo.SimpleLogRecordProcessor}});var xo=gE();Object.defineProperty(o0,"InMemoryLogRecordExporter",{enumerable:!0,get:function(){return xo.InMemoryLogRecordExporter}});var jo=QT();Object.defineProperty(o0,"BatchLogRecordProcessor",{enumerable:!0,get:function(){return jo.BatchLogRecordProcessor}});var bo=zT();Object.defineProperty(o0,"createLoggerConfigurator",{enumerable:!0,get:function(){return bo.createLoggerConfigurator}})});var KT=V((WT)=>{Object.defineProperty(WT,"__esModule",{value:!0});WT.ExceptionEventName=void 0;WT.ExceptionEventName="exception"});var BT=V((HT)=>{Object.defineProperty(HT,"__esModule",{value:!0});HT.SpanImpl=void 0;var a=T(),t=S(),A1=X1(),lo=KT();class FT{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;_attributesCount=0;name;status={code:a.SpanStatusCode.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_recordEndMetrics;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(Q){let Y=Date.now();if(this._spanContext=Q.spanContext,this._performanceStartTime=t.otperformance.now(),this._performanceOffset=Y-(this._performanceStartTime+t.otperformance.timeOrigin),this._startTimeProvided=Q.startTime!=null,this._spanLimits=Q.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit??0,this._spanProcessor=Q.spanProcessor,this.name=Q.name,this.parentSpanContext=Q.parentSpanContext,this.kind=Q.kind,Q.links)for(let G of Q.links)this.addLink(G);if(this.startTime=this._getTime(Q.startTime??Y),this.resource=Q.resource,this.instrumentationScope=Q.scope,this._recordEndMetrics=Q.recordEndMetrics,Q.attributes!=null)this.setAttributes(Q.attributes);this._spanProcessor.onStart(this,Q.context)}spanContext(){return this._spanContext}setAttribute(Q,Y){if(Y==null||this._isSpanEnded())return this;if(Q.length===0)return a.diag.warn(`Invalid attribute key: ${Q}`),this;if(!(0,t.isAttributeValue)(Y))return a.diag.warn(`Invalid attribute value set for key: ${Q}`),this;let{attributeCountLimit:G}=this._spanLimits,K=!Object.prototype.hasOwnProperty.call(this.attributes,Q);if(G!==void 0&&this._attributesCount>=G&&K)return this._droppedAttributesCount++,this;if(this.attributes[Q]=this._truncateToSize(Y),K)this._attributesCount++;return this}setAttributes(Q){for(let Y in Q)if(Object.prototype.hasOwnProperty.call(Q,Y))this.setAttribute(Y,Q[Y]);return this}addEvent(Q,Y,G){if(this._isSpanEnded())return this;let{eventCountLimit:K}=this._spanLimits;if(K===0)return a.diag.warn("No events allowed."),this._droppedEventsCount++,this;if(K!==void 0&&this.events.length>=K){if(this._droppedEventsCount===0)a.diag.debug("Dropping extra events.");this.events.shift(),this._droppedEventsCount++}if((0,t.isTimeInput)(Y)){if(!(0,t.isTimeInput)(G))G=Y;Y=void 0}let z=(0,t.sanitizeAttributes)(Y),{attributePerEventCountLimit:W}=this._spanLimits,J={},Z=0,X=0;for(let q in z){if(!Object.prototype.hasOwnProperty.call(z,q))continue;let F=z[q];if(W!==void 0&&X>=W){Z++;continue}J[q]=this._truncateToSize(F),X++}return this.events.push({name:Q,attributes:J,time:this._getTime(G),droppedAttributesCount:Z}),this}addLink(Q){if(this._isSpanEnded())return this;let{linkCountLimit:Y}=this._spanLimits;if(Y===0)return this._droppedLinksCount++,this;if(Y!==void 0&&this.links.length>=Y){if(this._droppedLinksCount===0)a.diag.debug("Dropping extra links.");this.links.shift(),this._droppedLinksCount++}let{attributePerLinkCountLimit:G}=this._spanLimits,K=(0,t.sanitizeAttributes)(Q.attributes),z={},W=0,J=0;for(let X in K){if(!Object.prototype.hasOwnProperty.call(K,X))continue;let q=K[X];if(G!==void 0&&J>=G){W++;continue}z[X]=this._truncateToSize(q),J++}let Z={context:Q.context};if(J>0)Z.attributes=z;if(W>0)Z.droppedAttributesCount=W;return this.links.push(Z),this}addLinks(Q){for(let Y of Q)this.addLink(Y);return this}setStatus(Q){if(this._isSpanEnded())return this;if(Q.code===a.SpanStatusCode.UNSET)return this;if(this.status.code===a.SpanStatusCode.OK)return this;let Y={code:Q.code};if(Q.code===a.SpanStatusCode.ERROR){if(typeof Q.message==="string")Y.message=Q.message;else if(Q.message!=null)a.diag.warn(`Dropping invalid status.message of type '${typeof Q.message}', expected 'string'`)}return this.status=Y,this}updateName(Q){if(this._isSpanEnded())return this;return this.name=Q,this}end(Q){if(this._isSpanEnded()){a.diag.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}if(this.endTime=this._getTime(Q),this._duration=(0,t.hrTimeDuration)(this.startTime,this.endTime),this._duration[0]<0)a.diag.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];if(this._droppedEventsCount>0)a.diag.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`);if(this._droppedLinksCount>0)a.diag.warn(`Dropped ${this._droppedLinksCount} links because linkCountLimit reached`);if(this._spanProcessor.onEnding)this._spanProcessor.onEnding(this);this._recordEndMetrics?.(),this._ended=!0,this._spanProcessor.onEnd(this)}_getTime(Q){if(typeof Q==="number"&&Q<=t.otperformance.now())return(0,t.hrTime)(Q+this._performanceOffset);if(typeof Q==="number")return(0,t.millisToHrTime)(Q);if(Q instanceof Date)return(0,t.millisToHrTime)(Q.getTime());if((0,t.isTimeInputHrTime)(Q))return Q;if(this._startTimeProvided)return(0,t.millisToHrTime)(Date.now());let Y=t.otperformance.now()-this._performanceStartTime;return(0,t.addHrTimes)(this.startTime,(0,t.millisToHrTime)(Y))}isRecording(){return this._ended===!1}recordException(Q,Y){let G={};if(typeof Q==="string")G[A1.ATTR_EXCEPTION_MESSAGE]=Q;else if(Q){if(Q.code)G[A1.ATTR_EXCEPTION_TYPE]=Q.code.toString();else if(Q.name)G[A1.ATTR_EXCEPTION_TYPE]=Q.name;if(Q.message)G[A1.ATTR_EXCEPTION_MESSAGE]=Q.message;if(Q.stack)G[A1.ATTR_EXCEPTION_STACKTRACE]=Q.stack}if(G[A1.ATTR_EXCEPTION_TYPE]||G[A1.ATTR_EXCEPTION_MESSAGE])this.addEvent(lo.ExceptionEventName,G,Y);else a.diag.warn(`Failed to record an exception ${Q}`)}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 Q=Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);a.diag.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,Q)}return this._ended}_truncateToLimitUtil(Q,Y){if(Q.length<=Y)return Q;return Q.substring(0,Y)}_truncateToSize(Q){let Y=this._attributeValueLengthLimit;if(Y<=0)return a.diag.warn(`Attribute value limit must be positive, got ${Y}`),Q;if(typeof Q==="string")return this._truncateToLimitUtil(Q,Y);if(Array.isArray(Q))return Q.map((G)=>typeof G==="string"?this._truncateToLimitUtil(G,Y):G);return Q}}HT.SpanImpl=FT});var g1=V((VT)=>{Object.defineProperty(VT,"__esModule",{value:!0});VT.SamplingDecision=void 0;var co;(function(Q){Q[Q.NOT_RECORD=0]="NOT_RECORD",Q[Q.RECORD=1]="RECORD",Q[Q.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(co=VT.SamplingDecision||(VT.SamplingDecision={}))});var JJ=V((IT)=>{Object.defineProperty(IT,"__esModule",{value:!0});IT.AlwaysOffSampler=void 0;var no=g1();class NT{shouldSample(){return{decision:no.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}IT.AlwaysOffSampler=NT});var QJ=V((UT)=>{Object.defineProperty(UT,"__esModule",{value:!0});UT.AlwaysOnSampler=void 0;var mo=g1();class DT{shouldSample(){return{decision:mo.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}UT.AlwaysOnSampler=DT});var V8=V((hT)=>{Object.defineProperty(hT,"__esModule",{value:!0});hT.ParentBasedSampler=void 0;var XJ=T(),po=S(),ET=JJ(),B8=QJ();class TT{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(Q){if(this._root=Q.root,!this._root)(0,po.globalErrorHandler)(Error("ParentBasedSampler must have a root sampler configured")),this._root=new B8.AlwaysOnSampler;this._remoteParentSampled=Q.remoteParentSampled??new B8.AlwaysOnSampler,this._remoteParentNotSampled=Q.remoteParentNotSampled??new ET.AlwaysOffSampler,this._localParentSampled=Q.localParentSampled??new B8.AlwaysOnSampler,this._localParentNotSampled=Q.localParentNotSampled??new ET.AlwaysOffSampler}shouldSample(Q,Y,G,K,z,W){let J=XJ.trace.getSpanContext(Q);if(!J||!(0,XJ.isSpanContextValid)(J))return this._root.shouldSample(Q,Y,G,K,z,W);if(J.isRemote){if(J.traceFlags&XJ.TraceFlags.SAMPLED)return this._remoteParentSampled.shouldSample(Q,Y,G,K,z,W);return this._remoteParentNotSampled.shouldSample(Q,Y,G,K,z,W)}if(J.traceFlags&XJ.TraceFlags.SAMPLED)return this._localParentSampled.shouldSample(Q,Y,G,K,z,W);return this._localParentNotSampled.shouldSample(Q,Y,G,K,z,W)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}hT.ParentBasedSampler=TT});var N8=V((wT)=>{Object.defineProperty(wT,"__esModule",{value:!0});wT.TraceIdRatioBasedSampler=void 0;var go=T(),MT=g1();class PT{_ratio;_upperBound;constructor(Q=0){this._ratio=this._normalize(Q),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(Q,Y){return{decision:(0,go.isValidTraceId)(Y)&&this._accumulate(Y)<this._upperBound?MT.SamplingDecision.RECORD_AND_SAMPLED:MT.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(Q){if(typeof Q!=="number"||isNaN(Q))return 0;return Q>=1?1:Q<=0?0:Q}_accumulate(Q){let Y=0;for(let G=0;G<Q.length/8;G++){let K=G*8,z=parseInt(Q.slice(K,K+8),16);Y=(Y^z)>>>0}return Y}}wT.TraceIdRatioBasedSampler=PT});var D8=V((_T)=>{Object.defineProperty(_T,"__esModule",{value:!0});_T.buildSamplerFromEnv=_T.loadDefaultConfig=void 0;var C8=T(),M0=S(),kT=JJ(),I8=QJ(),YJ=V8(),$T=N8(),P0;(function(Q){Q.AlwaysOff="always_off",Q.AlwaysOn="always_on",Q.ParentBasedAlwaysOff="parentbased_always_off",Q.ParentBasedAlwaysOn="parentbased_always_on",Q.ParentBasedTraceIdRatio="parentbased_traceidratio",Q.TraceIdRatio="traceidratio"})(P0||(P0={}));var zJ=1;function io(){return{sampler:fT(),forceFlushTimeoutMillis:30000,generalLimits:{attributeValueLengthLimit:(0,M0.getNumberFromEnv)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,M0.getNumberFromEnv)("OTEL_ATTRIBUTE_COUNT_LIMIT")??128},spanLimits:{attributeValueLengthLimit:(0,M0.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,M0.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??128,linkCountLimit:(0,M0.getNumberFromEnv)("OTEL_SPAN_LINK_COUNT_LIMIT")??128,eventCountLimit:(0,M0.getNumberFromEnv)("OTEL_SPAN_EVENT_COUNT_LIMIT")??128,attributePerEventCountLimit:(0,M0.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT")??128,attributePerLinkCountLimit:(0,M0.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT")??128}}}_T.loadDefaultConfig=io;function fT(){let Q=(0,M0.getStringFromEnv)("OTEL_TRACES_SAMPLER")??P0.ParentBasedAlwaysOn;switch(Q){case P0.AlwaysOn:return new I8.AlwaysOnSampler;case P0.AlwaysOff:return new kT.AlwaysOffSampler;case P0.ParentBasedAlwaysOn:return new YJ.ParentBasedSampler({root:new I8.AlwaysOnSampler});case P0.ParentBasedAlwaysOff:return new YJ.ParentBasedSampler({root:new kT.AlwaysOffSampler});case P0.TraceIdRatio:return new $T.TraceIdRatioBasedSampler(ST());case P0.ParentBasedTraceIdRatio:return new YJ.ParentBasedSampler({root:new $T.TraceIdRatioBasedSampler(ST())});default:return C8.diag.error(`OTEL_TRACES_SAMPLER value "${Q}" invalid, defaulting to "${P0.ParentBasedAlwaysOn}".`),new YJ.ParentBasedSampler({root:new I8.AlwaysOnSampler})}}_T.buildSamplerFromEnv=fT;function ST(){let Q=(0,M0.getNumberFromEnv)("OTEL_TRACES_SAMPLER_ARG");if(Q==null)return C8.diag.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${zJ}.`),zJ;if(Q<0||Q>1)return C8.diag.error(`OTEL_TRACES_SAMPLER_ARG=${Q} was given, but it is out of range ([0..1]), defaulting to ${zJ}.`),zJ;return Q}});var U8=V((xT)=>{Object.defineProperty(xT,"__esModule",{value:!0});xT.reconfigureLimits=xT.mergeConfig=xT.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=xT.DEFAULT_ATTRIBUTE_COUNT_LIMIT=void 0;var vT=D8(),GJ=S();xT.DEFAULT_ATTRIBUTE_COUNT_LIMIT=128;xT.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=1/0;function ao(Q){let Y={sampler:(0,vT.buildSamplerFromEnv)()},G=(0,vT.loadDefaultConfig)(),K=Object.assign({},G,Y,Q);return K.generalLimits=Object.assign({},G.generalLimits,Q.generalLimits||{}),K.spanLimits=Object.assign({},G.spanLimits,Q.spanLimits||{}),K}xT.mergeConfig=ao;function to(Q){let Y=Object.assign({},Q.spanLimits);return Y.attributeCountLimit=Q.spanLimits?.attributeCountLimit??Q.generalLimits?.attributeCountLimit??(0,GJ.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??(0,GJ.getNumberFromEnv)("OTEL_ATTRIBUTE_COUNT_LIMIT")??xT.DEFAULT_ATTRIBUTE_COUNT_LIMIT,Y.attributeValueLengthLimit=Q.spanLimits?.attributeValueLengthLimit??Q.generalLimits?.attributeValueLengthLimit??(0,GJ.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??(0,GJ.getNumberFromEnv)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??xT.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,Object.assign({},Q,{spanLimits:Y})}xT.reconfigureLimits=to});var nT=V((lT)=>{Object.defineProperty(lT,"__esModule",{value:!0});lT.BatchSpanProcessorBase=void 0;var i1=T(),y0=S();class uT{_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_exporter;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(Q,Y){if(this._exporter=Q,this._maxExportBatchSize=typeof Y?.maxExportBatchSize==="number"?Y.maxExportBatchSize:(0,y0.getNumberFromEnv)("OTEL_BSP_MAX_EXPORT_BATCH_SIZE")??512,this._maxQueueSize=typeof Y?.maxQueueSize==="number"?Y.maxQueueSize:(0,y0.getNumberFromEnv)("OTEL_BSP_MAX_QUEUE_SIZE")??2048,this._scheduledDelayMillis=typeof Y?.scheduledDelayMillis==="number"?Y.scheduledDelayMillis:(0,y0.getNumberFromEnv)("OTEL_BSP_SCHEDULE_DELAY")??5000,this._exportTimeoutMillis=typeof Y?.exportTimeoutMillis==="number"?Y.exportTimeoutMillis:(0,y0.getNumberFromEnv)("OTEL_BSP_EXPORT_TIMEOUT")??30000,this._shutdownOnce=new y0.BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize)i1.diag.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize}forceFlush(){if(this._shutdownOnce.isCalled)return this._shutdownOnce.promise;return this._flushAll()}onStart(Q,Y){}onEnd(Q){if(this._shutdownOnce.isCalled)return;if((Q.spanContext().traceFlags&i1.TraceFlags.SAMPLED)===0)return;this._addToBuffer(Q)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>{return this.onShutdown()}).then(()=>{return this._flushAll()}).then(()=>{return this._exporter.shutdown()})}_addToBuffer(Q){if(this._finishedSpans.length>=this._maxQueueSize){if(this._droppedSpansCount===0)i1.diag.debug("maxQueueSize reached, dropping spans");this._droppedSpansCount++;return}if(this._droppedSpansCount>0)i1.diag.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0;this._finishedSpans.push(Q),this._maybeStartTimer()}_flushAll(){return new Promise((Q,Y)=>{let G=[],K=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let z=0,W=K;z<W;z++)G.push(this._flushOneBatch());Promise.all(G).then(()=>{Q()}).catch(Y)})}_flushOneBatch(){if(this._clearTimer(),this._finishedSpans.length===0)return Promise.resolve();return new Promise((Q,Y)=>{let G=setTimeout(()=>{Y(Error("Timeout"))},this._exportTimeoutMillis);i1.context.with((0,y0.suppressTracing)(i1.context.active()),()=>{let K;if(this._finishedSpans.length<=this._maxExportBatchSize)K=this._finishedSpans,this._finishedSpans=[];else K=this._finishedSpans.splice(0,this._maxExportBatchSize);let z=()=>this._exporter.export(K,(J)=>{if(clearTimeout(G),J.code===y0.ExportResultCode.SUCCESS)Q();else Y(J.error??Error("BatchSpanProcessor: span export failed"))}),W=null;for(let J=0,Z=K.length;J<Z;J++){let X=K[J];if(X.resource.asyncAttributesPending&&X.resource.waitForAsyncAttributes)W??=[],W.push(X.resource.waitForAsyncAttributes())}if(W===null)z();else Promise.all(W).then(z,(J)=>{(0,y0.globalErrorHandler)(J),Y(J)})})})}_maybeStartTimer(){if(this._isExporting)return;let Q=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{if(this._isExporting=!1,this._finishedSpans.length>0)this._clearTimer(),this._maybeStartTimer()}).catch((Y)=>{this._isExporting=!1,(0,y0.globalErrorHandler)(Y)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return Q();if(this._timer!==void 0)return;if(this._timer=setTimeout(()=>Q(),this._scheduledDelayMillis),typeof this._timer!=="number")this._timer.unref()}_clearTimer(){if(this._timer!==void 0)clearTimeout(this._timer),this._timer=void 0}}lT.BatchSpanProcessorBase=uT});var iT=V((pT)=>{Object.defineProperty(pT,"__esModule",{value:!0});pT.BatchSpanProcessor=void 0;var so=nT();class mT extends so.BatchSpanProcessorBase{onShutdown(){}}pT.BatchSpanProcessor=mT});var eT=V((rT)=>{Object.defineProperty(rT,"__esModule",{value:!0});rT.RandomIdGenerator=void 0;var eo=8,aT=16;class tT{generateTraceId=oT(aT);generateSpanId=oT(eo)}rT.RandomIdGenerator=tT;var WJ=Buffer.allocUnsafe(aT);function oT(Q){return function(){for(let G=0;G<Q/4;G++)WJ.writeUInt32BE(Math.random()*4294967296>>>0,G*4);for(let G=0;G<Q;G++)if(WJ[G]>0)break;else if(G===Q-1)WJ[Q-1]=1;return WJ.toString("hex",0,Q)}}});var Zh=V((qJ)=>{Object.defineProperty(qJ,"__esModule",{value:!0});qJ.RandomIdGenerator=qJ.BatchSpanProcessor=void 0;var Za=iT();Object.defineProperty(qJ,"BatchSpanProcessor",{enumerable:!0,get:function(){return Za.BatchSpanProcessor}});var Ja=eT();Object.defineProperty(qJ,"RandomIdGenerator",{enumerable:!0,get:function(){return Ja.RandomIdGenerator}})});var A8=V((KJ)=>{Object.defineProperty(KJ,"__esModule",{value:!0});KJ.RandomIdGenerator=KJ.BatchSpanProcessor=void 0;var Jh=Zh();Object.defineProperty(KJ,"BatchSpanProcessor",{enumerable:!0,get:function(){return Jh.BatchSpanProcessor}});Object.defineProperty(KJ,"RandomIdGenerator",{enumerable:!0,get:function(){return Jh.RandomIdGenerator}})});var Yh=V((Qh)=>{Object.defineProperty(Qh,"__esModule",{value:!0});Qh.METRIC_OTEL_SDK_SPAN_STARTED=Qh.METRIC_OTEL_SDK_SPAN_LIVE=Qh.ATTR_OTEL_SPAN_SAMPLING_RESULT=Qh.ATTR_OTEL_SPAN_PARENT_ORIGIN=void 0;Qh.ATTR_OTEL_SPAN_PARENT_ORIGIN="otel.span.parent.origin";Qh.ATTR_OTEL_SPAN_SAMPLING_RESULT="otel.span.sampling_result";Qh.METRIC_OTEL_SDK_SPAN_LIVE="otel.sdk.span.live";Qh.METRIC_OTEL_SDK_SPAN_STARTED="otel.sdk.span.started"});var qh=V((Gh)=>{Object.defineProperty(Gh,"__esModule",{value:!0});Gh.TracerMetrics=void 0;var FJ=g1(),u6=Yh();class zh{startedSpans;liveSpans;constructor(Q){this.startedSpans=Q.createCounter(u6.METRIC_OTEL_SDK_SPAN_STARTED,{unit:"{span}",description:"The number of created spans."}),this.liveSpans=Q.createUpDownCounter(u6.METRIC_OTEL_SDK_SPAN_LIVE,{unit:"{span}",description:"The number of currently live spans."})}startSpan(Q,Y){let G=qa(Y);if(this.startedSpans.add(1,{[u6.ATTR_OTEL_SPAN_PARENT_ORIGIN]:Wa(Q),[u6.ATTR_OTEL_SPAN_SAMPLING_RESULT]:G}),Y===FJ.SamplingDecision.NOT_RECORD)return()=>{};let K={[u6.ATTR_OTEL_SPAN_SAMPLING_RESULT]:G};return this.liveSpans.add(1,K),()=>{this.liveSpans.add(-1,K)}}}Gh.TracerMetrics=zh;function Wa(Q){if(!Q)return"none";if(Q.isRemote)return"remote";return"local"}function qa(Q){switch(Q){case FJ.SamplingDecision.RECORD_AND_SAMPLED:return"RECORD_AND_SAMPLE";case FJ.SamplingDecision.RECORD:return"RECORD_ONLY";case FJ.SamplingDecision.NOT_RECORD:return"DROP"}}});var Hh=V((Kh)=>{Object.defineProperty(Kh,"__esModule",{value:!0});Kh.VERSION=void 0;Kh.VERSION="2.6.1"});var Nh=V((Bh)=>{Object.defineProperty(Bh,"__esModule",{value:!0});Bh.Tracer=void 0;var g=T(),HJ=S(),Ka=BT(),Fa=U8(),Ha=A8(),Oa=qh(),Ba=Hh();class Oh{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;_tracerMetrics;constructor(Q,Y,G,K){let z=(0,Fa.mergeConfig)(Y);this._sampler=z.sampler,this._generalLimits=z.generalLimits,this._spanLimits=z.spanLimits,this._idGenerator=Y.idGenerator||new Ha.RandomIdGenerator,this._resource=G,this._spanProcessor=K,this.instrumentationScope=Q;let W=z.meterProvider?z.meterProvider.getMeter("@opentelemetry/sdk-trace",Ba.VERSION):g.createNoopMeter();this._tracerMetrics=new Oa.TracerMetrics(W)}startSpan(Q,Y={},G=g.context.active()){if(Y.root)G=g.trace.deleteSpan(G);let K=g.trace.getSpan(G);if((0,HJ.isTracingSuppressed)(G))return g.diag.debug("Instrumentation suppressed, returning Noop Span"),g.trace.wrapSpanContext(g.INVALID_SPAN_CONTEXT);let z=K?.spanContext(),W=this._idGenerator.generateSpanId(),J,Z,X;if(!z||!g.trace.isSpanContextValid(z))Z=this._idGenerator.generateTraceId();else Z=z.traceId,X=z.traceState,J=z;let q=Y.kind??g.SpanKind.INTERNAL,F=(Y.links??[]).map(($)=>{return{context:$.context,attributes:(0,HJ.sanitizeAttributes)($.attributes)}}),H=(0,HJ.sanitizeAttributes)(Y.attributes),N=this._sampler.shouldSample(G,Z,Q,q,H,F),C=this._tracerMetrics.startSpan(z,N.decision);X=N.traceState??X;let U=N.decision===g.SamplingDecision.RECORD_AND_SAMPLED?g.TraceFlags.SAMPLED:g.TraceFlags.NONE,R={traceId:Z,spanId:W,traceFlags:U,traceState:X};if(N.decision===g.SamplingDecision.NOT_RECORD)return g.diag.debug("Recording is off, propagating context in a non-recording span"),g.trace.wrapSpanContext(R);let x=(0,HJ.sanitizeAttributes)(Object.assign(H,N.attributes));return new Ka.SpanImpl({resource:this._resource,scope:this.instrumentationScope,context:G,spanContext:R,name:Q,kind:q,links:F,parentSpanContext:J,attributes:x,startTime:Y.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits,recordEndMetrics:C})}startActiveSpan(Q,Y,G,K){let z,W,J;if(arguments.length<2)return;else if(arguments.length===2)J=Y;else if(arguments.length===3)z=Y,J=G;else z=Y,W=G,J=K;let Z=W??g.context.active(),X=this.startSpan(Q,z,Z),q=g.trace.setSpan(Z,X);return g.context.with(q,J,void 0,X)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}Bh.Tracer=Oh});var Uh=V((Ch)=>{Object.defineProperty(Ch,"__esModule",{value:!0});Ch.MultiSpanProcessor=void 0;var Va=S();class Ih{_spanProcessors;constructor(Q){this._spanProcessors=Q}forceFlush(){let Q=[];for(let Y of this._spanProcessors)Q.push(Y.forceFlush());return new Promise((Y)=>{Promise.all(Q).then(()=>{Y()}).catch((G)=>{(0,Va.globalErrorHandler)(G||Error("MultiSpanProcessor: forceFlush failed")),Y()})})}onStart(Q,Y){for(let G of this._spanProcessors)G.onStart(Q,Y)}onEnding(Q){for(let Y of this._spanProcessors)if(Y.onEnding)Y.onEnding(Q)}onEnd(Q){for(let Y of this._spanProcessors)Y.onEnd(Q)}shutdown(){let Q=[];for(let Y of this._spanProcessors)Q.push(Y.shutdown());return new Promise((Y,G)=>{Promise.all(Q).then(()=>{Y()},G)})}}Ch.MultiSpanProcessor=Ih});var Lh=V((Th)=>{Object.defineProperty(Th,"__esModule",{value:!0});Th.BasicTracerProvider=Th.ForceFlushState=void 0;var Na=S(),Ia=S6(),Ca=Nh(),Da=D8(),Ua=Uh(),Aa=U8(),o1;(function(Q){Q[Q.resolved=0]="resolved",Q[Q.timeout=1]="timeout",Q[Q.error=2]="error",Q[Q.unresolved=3]="unresolved"})(o1=Th.ForceFlushState||(Th.ForceFlushState={}));class Eh{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(Q={}){let Y=(0,Na.merge)({},(0,Da.loadDefaultConfig)(),(0,Aa.reconfigureLimits)(Q));this._resource=Y.resource??(0,Ia.defaultResource)(),this._config=Object.assign({},Y,{resource:this._resource});let G=[];if(Q.spanProcessors?.length)G.push(...Q.spanProcessors);this._activeSpanProcessor=new Ua.MultiSpanProcessor(G)}getTracer(Q,Y,G){let K=`${Q}@${Y||""}:${G?.schemaUrl||""}`;if(!this._tracers.has(K))this._tracers.set(K,new Ca.Tracer({name:Q,version:Y,schemaUrl:G?.schemaUrl},this._config,this._resource,this._activeSpanProcessor));return this._tracers.get(K)}forceFlush(){let Q=this._config.forceFlushTimeoutMillis,Y=this._activeSpanProcessor._spanProcessors.map((G)=>{return new Promise((K)=>{let z,W=setTimeout(()=>{K(Error(`Span processor did not completed within timeout period of ${Q} ms`)),z=o1.timeout},Q);G.forceFlush().then(()=>{if(clearTimeout(W),z!==o1.timeout)z=o1.resolved,K(z)}).catch((J)=>{clearTimeout(W),z=o1.error,K(J)})})});return new Promise((G,K)=>{Promise.all(Y).then((z)=>{let W=z.filter((J)=>J!==o1.resolved);if(W.length>0)K(W);else G()}).catch((z)=>K([z]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}Th.BasicTracerProvider=Eh});var Rh=V((Ph)=>{Object.defineProperty(Ph,"__esModule",{value:!0});Ph.ConsoleSpanExporter=void 0;var E8=S();class Mh{export(Q,Y){return this._sendSpans(Q,Y)}shutdown(){return this._sendSpans([]),this.forceFlush()}forceFlush(){return Promise.resolve()}_exportInfo(Q){return{resource:{attributes:Q.resource.attributes},instrumentationScope:Q.instrumentationScope,traceId:Q.spanContext().traceId,parentSpanContext:Q.parentSpanContext,traceState:Q.spanContext().traceState?.serialize(),name:Q.name,id:Q.spanContext().spanId,kind:Q.kind,timestamp:(0,E8.hrTimeToMicroseconds)(Q.startTime),duration:(0,E8.hrTimeToMicroseconds)(Q.duration),attributes:Q.attributes,status:Q.status,events:Q.events,links:Q.links}}_sendSpans(Q,Y){for(let G of Q)console.dir(this._exportInfo(G),{depth:3});if(Y)return Y({code:E8.ExportResultCode.SUCCESS})}}Ph.ConsoleSpanExporter=Mh});var _h=V((Sh)=>{Object.defineProperty(Sh,"__esModule",{value:!0});Sh.InMemorySpanExporter=void 0;var kh=S();class $h{_finishedSpans=[];_stopped=!1;export(Q,Y){if(this._stopped)return Y({code:kh.ExportResultCode.FAILED,error:Error("Exporter has been stopped")});this._finishedSpans.push(...Q),setTimeout(()=>Y({code:kh.ExportResultCode.SUCCESS}),0)}shutdown(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()}forceFlush(){return Promise.resolve()}reset(){this._finishedSpans=[]}getFinishedSpans(){return this._finishedSpans}}Sh.InMemorySpanExporter=$h});var jh=V((vh)=>{Object.defineProperty(vh,"__esModule",{value:!0});vh.SimpleSpanProcessor=void 0;var Ea=T(),OJ=S();class yh{_exporter;_shutdownOnce;_pendingExports;constructor(Q){this._exporter=Q,this._shutdownOnce=new OJ.BindOnceFuture(this._shutdown,this),this._pendingExports=new Set}async forceFlush(){if(await Promise.all(Array.from(this._pendingExports)),this._exporter.forceFlush)await this._exporter.forceFlush()}onStart(Q,Y){}onEnd(Q){if(this._shutdownOnce.isCalled)return;if((Q.spanContext().traceFlags&Ea.TraceFlags.SAMPLED)===0)return;let Y=this._doExport(Q).catch((G)=>(0,OJ.globalErrorHandler)(G));this._pendingExports.add(Y),Y.finally(()=>this._pendingExports.delete(Y))}async _doExport(Q){if(Q.resource.asyncAttributesPending)await Q.resource.waitForAsyncAttributes?.();let Y=await OJ.internal._export(this._exporter,[Q]);if(Y.code!==OJ.ExportResultCode.SUCCESS)throw Y.error??Error(`SimpleSpanProcessor: span export failed (status ${Y})`)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}}vh.SimpleSpanProcessor=yh});var lh=V((dh)=>{Object.defineProperty(dh,"__esModule",{value:!0});dh.NoopSpanProcessor=void 0;class bh{onStart(Q,Y){}onEnd(Q){}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}}dh.NoopSpanProcessor=bh});var BJ=V((Y0)=>{Object.defineProperty(Y0,"__esModule",{value:!0});Y0.SamplingDecision=Y0.TraceIdRatioBasedSampler=Y0.ParentBasedSampler=Y0.AlwaysOnSampler=Y0.AlwaysOffSampler=Y0.NoopSpanProcessor=Y0.SimpleSpanProcessor=Y0.InMemorySpanExporter=Y0.ConsoleSpanExporter=Y0.RandomIdGenerator=Y0.BatchSpanProcessor=Y0.BasicTracerProvider=void 0;var Ta=Lh();Object.defineProperty(Y0,"BasicTracerProvider",{enumerable:!0,get:function(){return Ta.BasicTracerProvider}});var ch=A8();Object.defineProperty(Y0,"BatchSpanProcessor",{enumerable:!0,get:function(){return ch.BatchSpanProcessor}});Object.defineProperty(Y0,"RandomIdGenerator",{enumerable:!0,get:function(){return ch.RandomIdGenerator}});var ha=Rh();Object.defineProperty(Y0,"ConsoleSpanExporter",{enumerable:!0,get:function(){return ha.ConsoleSpanExporter}});var La=_h();Object.defineProperty(Y0,"InMemorySpanExporter",{enumerable:!0,get:function(){return La.InMemorySpanExporter}});var Ma=jh();Object.defineProperty(Y0,"SimpleSpanProcessor",{enumerable:!0,get:function(){return Ma.SimpleSpanProcessor}});var Pa=lh();Object.defineProperty(Y0,"NoopSpanProcessor",{enumerable:!0,get:function(){return Pa.NoopSpanProcessor}});var wa=JJ();Object.defineProperty(Y0,"AlwaysOffSampler",{enumerable:!0,get:function(){return wa.AlwaysOffSampler}});var Ra=QJ();Object.defineProperty(Y0,"AlwaysOnSampler",{enumerable:!0,get:function(){return Ra.AlwaysOnSampler}});var ka=V8();Object.defineProperty(Y0,"ParentBasedSampler",{enumerable:!0,get:function(){return ka.ParentBasedSampler}});var $a=N8();Object.defineProperty(Y0,"TraceIdRatioBasedSampler",{enumerable:!0,get:function(){return $a.TraceIdRatioBasedSampler}});var Sa=g1();Object.defineProperty(Y0,"SamplingDecision",{enumerable:!0,get:function(){return Sa.SamplingDecision}})});var T8=V((mh)=>{Object.defineProperty(mh,"__esModule",{value:!0});mh.AbstractAsyncHooksContextManager=void 0;var _a=j("events"),ya=["addListener","on","once","prependListener","prependOnceListener"];class nh{bind(Q,Y){if(Y instanceof _a.EventEmitter)return this._bindEventEmitter(Q,Y);if(typeof Y==="function")return this._bindFunction(Q,Y);return Y}_bindFunction(Q,Y){let G=this,K=function(...z){return G.with(Q,()=>Y.apply(this,z))};return Object.defineProperty(K,"length",{enumerable:!1,configurable:!0,writable:!1,value:Y.length}),K}_bindEventEmitter(Q,Y){if(this._getPatchMap(Y)!==void 0)return Y;if(this._createPatchMap(Y),ya.forEach((K)=>{if(Y[K]===void 0)return;Y[K]=this._patchAddListener(Y,Y[K],Q)}),typeof Y.removeListener==="function")Y.removeListener=this._patchRemoveListener(Y,Y.removeListener);if(typeof Y.off==="function")Y.off=this._patchRemoveListener(Y,Y.off);if(typeof Y.removeAllListeners==="function")Y.removeAllListeners=this._patchRemoveAllListeners(Y,Y.removeAllListeners);return Y}_patchRemoveListener(Q,Y){let G=this;return function(K,z){let W=G._getPatchMap(Q)?.[K];if(W===void 0)return Y.call(this,K,z);let J=W.get(z);return Y.call(this,K,J||z)}}_patchRemoveAllListeners(Q,Y){let G=this;return function(K){let z=G._getPatchMap(Q);if(z!==void 0){if(arguments.length===0)G._createPatchMap(Q);else if(z[K]!==void 0)delete z[K]}return Y.apply(this,arguments)}}_patchAddListener(Q,Y,G){let K=this;return function(z,W){if(K._wrapped)return Y.call(this,z,W);let J=K._getPatchMap(Q);if(J===void 0)J=K._createPatchMap(Q);let Z=J[z];if(Z===void 0)Z=new WeakMap,J[z]=Z;let X=K.bind(G,W);Z.set(W,X),K._wrapped=!0;try{return Y.call(this,z,X)}finally{K._wrapped=!1}}}_createPatchMap(Q){let Y=Object.create(null);return Q[this._kOtListeners]=Y,Y}_getPatchMap(Q){return Q[this._kOtListeners]}_kOtListeners=Symbol("OtListeners");_wrapped=!1}mh.AbstractAsyncHooksContextManager=nh});var ah=V((ih)=>{Object.defineProperty(ih,"__esModule",{value:!0});ih.AsyncHooksContextManager=void 0;var va=T(),xa=j("async_hooks"),ja=T8();class gh extends ja.AbstractAsyncHooksContextManager{_asyncHook;_contexts=new Map;_stack=[];constructor(){super();this._asyncHook=xa.createHook({init:this._init.bind(this),before:this._before.bind(this),after:this._after.bind(this),destroy:this._destroy.bind(this),promiseResolve:this._destroy.bind(this)})}active(){return this._stack[this._stack.length-1]??va.ROOT_CONTEXT}with(Q,Y,G,...K){this._enterContext(Q);try{return Y.call(G,...K)}finally{this._exitContext()}}enable(){return this._asyncHook.enable(),this}disable(){return this._asyncHook.disable(),this._contexts.clear(),this._stack=[],this}_init(Q,Y){if(Y==="TIMERWRAP")return;let G=this._stack[this._stack.length-1];if(G!==void 0)this._contexts.set(Q,G)}_destroy(Q){this._contexts.delete(Q)}_before(Q){let Y=this._contexts.get(Q);if(Y!==void 0)this._enterContext(Y)}_after(){this._exitContext()}_enterContext(Q){this._stack.push(Q)}_exitContext(){this._stack.pop()}}ih.AsyncHooksContextManager=gh});var eh=V((rh)=>{Object.defineProperty(rh,"__esModule",{value:!0});rh.AsyncLocalStorageContextManager=void 0;var ba=T(),da=j("async_hooks"),ua=T8();class th extends ua.AbstractAsyncHooksContextManager{_asyncLocalStorage;constructor(){super();this._asyncLocalStorage=new da.AsyncLocalStorage}active(){return this._asyncLocalStorage.getStore()??ba.ROOT_CONTEXT}with(Q,Y,G,...K){let z=G==null?Y:Y.bind(G);return this._asyncLocalStorage.run(Q,z,...K)}enable(){return this}disable(){return this._asyncLocalStorage.disable(),this}}rh.AsyncLocalStorageContextManager=th});var ZL=V((VJ)=>{Object.defineProperty(VJ,"__esModule",{value:!0});VJ.AsyncLocalStorageContextManager=VJ.AsyncHooksContextManager=void 0;var la=ah();Object.defineProperty(VJ,"AsyncHooksContextManager",{enumerable:!0,get:function(){return la.AsyncHooksContextManager}});var ca=eh();Object.defineProperty(VJ,"AsyncLocalStorageContextManager",{enumerable:!0,get:function(){return ca.AsyncLocalStorageContextManager}})});var YL=V((QL)=>{Object.defineProperty(QL,"__esModule",{value:!0});QL.NodeTracerProvider=void 0;var ma=ZL(),pa=BJ(),l6=T(),h8=S();function ga(Q){if(Q===null)return;if(Q===void 0){let Y=new ma.AsyncLocalStorageContextManager;Y.enable(),l6.context.setGlobalContextManager(Y);return}Q.enable(),l6.context.setGlobalContextManager(Q)}function ia(Q){if(Q===null)return;if(Q===void 0){l6.propagation.setGlobalPropagator(new h8.CompositePropagator({propagators:[new h8.W3CTraceContextPropagator,new h8.W3CBaggagePropagator]}));return}l6.propagation.setGlobalPropagator(Q)}class JL extends pa.BasicTracerProvider{constructor(Q={}){super(Q)}register(Q={}){l6.trace.setGlobalTracerProvider(this),ga(Q.contextManager),ia(Q.propagator)}}QL.NodeTracerProvider=JL});var zL=V((e)=>{Object.defineProperty(e,"__esModule",{value:!0});e.TraceIdRatioBasedSampler=e.SimpleSpanProcessor=e.SamplingDecision=e.RandomIdGenerator=e.ParentBasedSampler=e.NoopSpanProcessor=e.InMemorySpanExporter=e.ConsoleSpanExporter=e.BatchSpanProcessor=e.BasicTracerProvider=e.AlwaysOnSampler=e.AlwaysOffSampler=e.NodeTracerProvider=void 0;var oa=YL();Object.defineProperty(e,"NodeTracerProvider",{enumerable:!0,get:function(){return oa.NodeTracerProvider}});var O0=BJ();Object.defineProperty(e,"AlwaysOffSampler",{enumerable:!0,get:function(){return O0.AlwaysOffSampler}});Object.defineProperty(e,"AlwaysOnSampler",{enumerable:!0,get:function(){return O0.AlwaysOnSampler}});Object.defineProperty(e,"BasicTracerProvider",{enumerable:!0,get:function(){return O0.BasicTracerProvider}});Object.defineProperty(e,"BatchSpanProcessor",{enumerable:!0,get:function(){return O0.BatchSpanProcessor}});Object.defineProperty(e,"ConsoleSpanExporter",{enumerable:!0,get:function(){return O0.ConsoleSpanExporter}});Object.defineProperty(e,"InMemorySpanExporter",{enumerable:!0,get:function(){return O0.InMemorySpanExporter}});Object.defineProperty(e,"NoopSpanProcessor",{enumerable:!0,get:function(){return O0.NoopSpanProcessor}});Object.defineProperty(e,"ParentBasedSampler",{enumerable:!0,get:function(){return O0.ParentBasedSampler}});Object.defineProperty(e,"RandomIdGenerator",{enumerable:!0,get:function(){return O0.RandomIdGenerator}});Object.defineProperty(e,"SamplingDecision",{enumerable:!0,get:function(){return O0.SamplingDecision}});Object.defineProperty(e,"SimpleSpanProcessor",{enumerable:!0,get:function(){return O0.SimpleSpanProcessor}});Object.defineProperty(e,"TraceIdRatioBasedSampler",{enumerable:!0,get:function(){return O0.TraceIdRatioBasedSampler}})});import{existsSync as w0,mkdirSync as WL,readdirSync as ta,readFileSync as ra,statSync as c6}from"node:fs";import{homedir as sa}from"node:os";import{dirname as qL,join as _,resolve as n6}from"node:path";function ea(){let Q=process?.env?.HOME?.trim();if(Q&&Q!=="~")return Q;let Y=process?.env?.USERPROFILE?.trim();if(Y)return Y;let G=process?.env?.HOMEDRIVE?.trim(),K=process?.env?.HOMEPATH?.trim();if(G&&K)return`${G}${K}`;let z=sa().trim();if(z&&z!=="~")return z;return"~"}function Zt(Q){let Y=Q.trim();if(!Y)return;p6=Y,FL=!0}function Jt(Q){if(FL)return;let Y=Q.trim();if(!Y)return;p6=Y}function Qt(Q){let Y=Q.trim();if(!Y)return;CJ=Y,HL=!0}function Xt(Q){if(HL)return;let Y=Q.trim();if(!Y)return;CJ=Y}function UJ(){if(CJ)return CJ;let Q=process.env.CLINE_DIR?.trim();if(Q)return Q;return _(p6,".cline")}function a1(){return _(p6,"Documents","Cline")}function OL(){return _(a1(),"Agents")}function BL(){return _(a1(),"Hooks")}function VL(){return _(a1(),"Rules")}function NL(){return _(a1(),"Workflows")}function IL(){return _(a1(),"Plugins")}function R0(){let Q=process.env.CLINE_DATA_DIR?.trim();if(Q)return Q;return _(UJ(),"data")}function R8(){let Q=process.env.CLINE_SESSION_DATA_DIR?.trim();if(Q)return Q;return _(R0(),"sessions")}function Yt(){let Q=process.env.CLINE_TEAM_DATA_DIR?.trim();if(Q)return Q;return _(R0(),"teams")}function zt(){let Q=process.env.CLINE_PROVIDER_SETTINGS_PATH?.trim();if(Q)return Q;return _(R0(),"settings","providers.json")}function Gt(){let Q=process.env.CLINE_MCP_SETTINGS_PATH?.trim();if(Q)return Q;return _(R0(),"settings",KL)}function g6(Q){let Y=new Set,G=[];for(let K of Q){if(!K||Y.has(K))continue;Y.add(K),G.push(K)}return G}function Wt(Q){if(!Q)return[];return[P8,w8,DJ].map((Y)=>_(Q,Y,IJ))}function CL(){return _(R0(),"settings",DJ)}function qt(){return[OL(),CL()]}function Kt(Q){let Y=[BL(),_(R0(),NJ)];if(Q)Y.push(_(Q,P8,NJ),_(Q,w8,NJ));return g6(Y)}function Ft(Q){return g6([...Wt(Q),_(UJ(),IJ),_(p6,DJ,IJ)])}function Ht(Q){let Y=Q?[_(Q,P8),_(Q,w8,L8)]:[],G=Q?[_(Q,"AGENTS.md")]:[];return g6([...G,...Y,_(R0(),L8),VL()])}function Ot(Q){return g6([Q?_(Q,".clinerules",M8):"",_(R0(),M8),NL()])}function Bt(Q){return g6([Q?_(Q,".cline",GL):"",_(UJ(),GL),IL()])}function m6(Q){let Y=Q.lastIndexOf(".");if(Y===-1)return!1;return DL.has(Q.slice(Y))}function AL(Q){try{let Y=JSON.parse(ra(Q,"utf8"));if(!Y.cline||typeof Y.cline!=="object")return null;return Y.cline}catch{return null}}function EL(Q){let Y=Q?.plugins;if(!Array.isArray(Y))return[];return Y.flatMap((G)=>G.paths??[])}function TL(Q){let Y=n6(Q);if(!w0(Y)||!c6(Y).isDirectory())return null;let G=_(Y,UL);if(w0(G)){let K=AL(G),z=EL(K).map((W)=>n6(Y,W)).filter((W)=>w0(W)&&c6(W).isFile()&&m6(W));if(z.length>0)return z}for(let K of Vt){let z=_(Y,K);if(w0(z)&&c6(z).isFile())return[z]}return null}function hL(Q){let Y=n6(Q);if(!w0(Y))return[];let G=[],K=[Y];while(K.length>0){let z=K.pop();if(!z)continue;for(let W of ta(z,{withFileTypes:!0})){let J=_(z,W.name);if(W.isDirectory()){let Z=_(J,UL);if(w0(Z)){let X=AL(Z),q=EL(X).map((F)=>n6(J,F)).filter((F)=>w0(F)&&c6(F).isFile()&&m6(F));if(q.length>0){G.push(...q);continue}}K.push(J);continue}if(W.name.startsWith("."))continue;if(W.isFile()&&m6(J))G.push(J)}}return G.sort((z,W)=>z.localeCompare(W))}function Nt(Q,Y){let G=[];for(let K of Q){let z=K.trim();if(!z)continue;let W=n6(Y,z);if(!w0(W))throw Error(`Plugin path does not exist: ${W}`);if(c6(W).isDirectory()){let Z=TL(W);if(Z){G.push(...Z);continue}G.push(...hL(W));continue}if(!m6(W))throw Error(`Plugin file must use a supported extension (${[...DL].join(", ")}): ${W}`);G.push(W)}return G}function LL(Q){let Y=qL(Q);if(!w0(Y))WL(Y,{recursive:!0})}function It(Q){if(Q?.trim())return LL(Q),qL(Q);let Y=_(R0(),"hooks");if(!w0(Y))WL(Y,{recursive:!0});return Y}var P8=".clinerules",w8=".cline",DJ=".agents",NJ="hooks",IJ="skills",L8="rules",M8="workflows",GL="plugins",KL="cline_mcp_settings.json",p6,FL=!1,CJ,HL=!1,DL,UL="package.json",Vt;var ML=M1(()=>{p6=ea();DL=new Set([".js",".ts"]),Vt=["index.ts","index.js"]});var PL=M1(()=>{ML()});var wL=V((i6,k8)=>{(function(Q,Y){typeof i6=="object"&&typeof k8=="object"?k8.exports=Y(j("child_process"),j("crypto")):typeof define=="function"&&define.amd?define(["child_process","crypto"],Y):typeof i6=="object"?i6["electron-machine-id"]=Y(j("child_process"),j("crypto")):Q["electron-machine-id"]=Y(Q.child_process,Q.crypto)})(i6,function(Q,Y){return function(G){function K(W){if(z[W])return z[W].exports;var J=z[W]={exports:{},id:W,loaded:!1};return G[W].call(J.exports,J,J.exports,K),J.loaded=!0,J.exports}var z={};return K.m=G,K.c=z,K.p="",K(0)}([function(G,K,z){G.exports=z(34)},function(G,K,z){var W=z(29)("wks"),J=z(33),Z=z(2).Symbol,X=typeof Z=="function",q=G.exports=function(F){return W[F]||(W[F]=X&&Z[F]||(X?Z:J)("Symbol."+F))};q.store=W},function(G,K){var z=G.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=z)},function(G,K,z){var W=z(9);G.exports=function(J){if(!W(J))throw TypeError(J+" is not an object!");return J}},function(G,K,z){G.exports=!z(24)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(G,K,z){var W=z(12),J=z(17);G.exports=z(4)?function(Z,X,q){return W.f(Z,X,J(1,q))}:function(Z,X,q){return Z[X]=q,Z}},function(G,K){var z=G.exports={version:"2.4.0"};typeof __e=="number"&&(__e=z)},function(G,K,z){var W=z(14);G.exports=function(J,Z,X){if(W(J),Z===void 0)return J;switch(X){case 1:return function(q){return J.call(Z,q)};case 2:return function(q,F){return J.call(Z,q,F)};case 3:return function(q,F,H){return J.call(Z,q,F,H)}}return function(){return J.apply(Z,arguments)}}},function(G,K){var z={}.hasOwnProperty;G.exports=function(W,J){return z.call(W,J)}},function(G,K){G.exports=function(z){return typeof z=="object"?z!==null:typeof z=="function"}},function(G,K){G.exports={}},function(G,K){var z={}.toString;G.exports=function(W){return z.call(W).slice(8,-1)}},function(G,K,z){var W=z(3),J=z(26),Z=z(32),X=Object.defineProperty;K.f=z(4)?Object.defineProperty:function(q,F,H){if(W(q),F=Z(F,!0),W(H),J)try{return X(q,F,H)}catch(N){}if("get"in H||"set"in H)throw TypeError("Accessors not supported!");return"value"in H&&(q[F]=H.value),q}},function(G,K,z){var W=z(42),J=z(15);G.exports=function(Z){return W(J(Z))}},function(G,K){G.exports=function(z){if(typeof z!="function")throw TypeError(z+" is not a function!");return z}},function(G,K){G.exports=function(z){if(z==null)throw TypeError("Can't call method on "+z);return z}},function(G,K,z){var W=z(9),J=z(2).document,Z=W(J)&&W(J.createElement);G.exports=function(X){return Z?J.createElement(X):{}}},function(G,K){G.exports=function(z,W){return{enumerable:!(1&z),configurable:!(2&z),writable:!(4&z),value:W}}},function(G,K,z){var W=z(12).f,J=z(8),Z=z(1)("toStringTag");G.exports=function(X,q,F){X&&!J(X=F?X:X.prototype,Z)&&W(X,Z,{configurable:!0,value:q})}},function(G,K,z){var W=z(29)("keys"),J=z(33);G.exports=function(Z){return W[Z]||(W[Z]=J(Z))}},function(G,K){var{ceil:z,floor:W}=Math;G.exports=function(J){return isNaN(J=+J)?0:(J>0?W:z)(J)}},function(G,K,z){var W=z(11),J=z(1)("toStringTag"),Z=W(function(){return arguments}())=="Arguments",X=function(q,F){try{return q[F]}catch(H){}};G.exports=function(q){var F,H,N;return q===void 0?"Undefined":q===null?"Null":typeof(H=X(F=Object(q),J))=="string"?H:Z?W(F):(N=W(F))=="Object"&&typeof F.callee=="function"?"Arguments":N}},function(G,K){G.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(G,K,z){var W=z(2),J=z(6),Z=z(7),X=z(5),q="prototype",F=function(H,N,C){var U,R,x,i=H&F.F,$=H&F.G,k=H&F.S,y=H&F.P,c=H&F.B,M=H&F.W,b=$?J:J[N]||(J[N]={}),d=b[q],n=$?W:k?W[N]:(W[N]||{})[q];$&&(C=N);for(U in C)R=!i&&n&&n[U]!==void 0,R&&U in b||(x=R?n[U]:C[U],b[U]=$&&typeof n[U]!="function"?C[U]:c&&R?Z(x,W):M&&n[U]==x?function(r){var B0=function(V0,Z0,k0){if(this instanceof r){switch(arguments.length){case 0:return new r;case 1:return new r(V0);case 2:return new r(V0,Z0)}return new r(V0,Z0,k0)}return r.apply(this,arguments)};return B0[q]=r[q],B0}(x):y&&typeof x=="function"?Z(Function.call,x):x,y&&((b.virtual||(b.virtual={}))[U]=x,H&F.R&&d&&!d[U]&&X(d,U,x)))};F.F=1,F.G=2,F.S=4,F.P=8,F.B=16,F.W=32,F.U=64,F.R=128,G.exports=F},function(G,K){G.exports=function(z){try{return!!z()}catch(W){return!0}}},function(G,K,z){G.exports=z(2).document&&document.documentElement},function(G,K,z){G.exports=!z(4)&&!z(24)(function(){return Object.defineProperty(z(16)("div"),"a",{get:function(){return 7}}).a!=7})},function(G,K,z){var W=z(28),J=z(23),Z=z(57),X=z(5),q=z(8),F=z(10),H=z(45),N=z(18),C=z(52),U=z(1)("iterator"),R=!([].keys&&("next"in[].keys())),x="@@iterator",i="keys",$="values",k=function(){return this};G.exports=function(y,c,M,b,d,n,r){H(M,c,b);var B0,V0,Z0,k0=function(A){if(!R&&A in J0)return J0[A];switch(A){case i:return function(){return new M(this,A)};case $:return function(){return new M(this,A)}}return function(){return new M(this,A)}},T1=c+" Iterator",a0=d==$,s1=!1,J0=y.prototype,v0=J0[U]||J0[x]||d&&J0[d],z0=v0||k0(d),e1=d?a0?k0("entries"):z0:void 0,D=c=="Array"?J0.entries||v0:v0;if(D&&(Z0=C(D.call(new y)),Z0!==Object.prototype&&(N(Z0,T1,!0),W||q(Z0,U)||X(Z0,U,k))),a0&&v0&&v0.name!==$&&(s1=!0,z0=function(){return v0.call(this)}),W&&!r||!R&&!s1&&J0[U]||X(J0,U,z0),F[c]=z0,F[T1]=k,d)if(B0={values:a0?z0:k0($),keys:n?z0:k0(i),entries:e1},r)for(V0 in B0)V0 in J0||Z(J0,V0,B0[V0]);else J(J.P+J.F*(R||s1),c,B0);return B0}},function(G,K){G.exports=!0},function(G,K,z){var W=z(2),J="__core-js_shared__",Z=W[J]||(W[J]={});G.exports=function(X){return Z[X]||(Z[X]={})}},function(G,K,z){var W,J,Z,X=z(7),q=z(41),F=z(25),H=z(16),N=z(2),C=N.process,U=N.setImmediate,R=N.clearImmediate,x=N.MessageChannel,i=0,$={},k="onreadystatechange",y=function(){var M=+this;if($.hasOwnProperty(M)){var b=$[M];delete $[M],b()}},c=function(M){y.call(M.data)};U&&R||(U=function(M){for(var b=[],d=1;arguments.length>d;)b.push(arguments[d++]);return $[++i]=function(){q(typeof M=="function"?M:Function(M),b)},W(i),i},R=function(M){delete $[M]},z(11)(C)=="process"?W=function(M){C.nextTick(X(y,M,1))}:x?(J=new x,Z=J.port2,J.port1.onmessage=c,W=X(Z.postMessage,Z,1)):N.addEventListener&&typeof postMessage=="function"&&!N.importScripts?(W=function(M){N.postMessage(M+"","*")},N.addEventListener("message",c,!1)):W=(k in H("script"))?function(M){F.appendChild(H("script"))[k]=function(){F.removeChild(this),y.call(M)}}:function(M){setTimeout(X(y,M,1),0)}),G.exports={set:U,clear:R}},function(G,K,z){var W=z(20),J=Math.min;G.exports=function(Z){return Z>0?J(W(Z),9007199254740991):0}},function(G,K,z){var W=z(9);G.exports=function(J,Z){if(!W(J))return J;var X,q;if(Z&&typeof(X=J.toString)=="function"&&!W(q=X.call(J)))return q;if(typeof(X=J.valueOf)=="function"&&!W(q=X.call(J)))return q;if(!Z&&typeof(X=J.toString)=="function"&&!W(q=X.call(J)))return q;throw TypeError("Can't convert object to primitive value")}},function(G,K){var z=0,W=Math.random();G.exports=function(J){return"Symbol(".concat(J===void 0?"":J,")_",(++z+W).toString(36))}},function(G,K,z){function W(k){return k&&k.__esModule?k:{default:k}}function J(){return process.platform!=="win32"?"":process.arch==="ia32"&&process.env.hasOwnProperty("PROCESSOR_ARCHITEW6432")?"mixed":"native"}function Z(k){return(0,U.createHash)("sha256").update(k).digest("hex")}function X(k){switch(x){case"darwin":return k.split("IOPlatformUUID")[1].split(`
|
|
15
|
-
`)[0].replace(/\=|\s+|\"/gi,"").toLowerCase();case"win32":return k.toString().split("REG_SZ")[1].replace(/\r+|\n+|\s+/gi,"").toLowerCase();case"linux":return k.toString().replace(/\r+|\n+|\s+/gi,"").toLowerCase();case"freebsd":return k.toString().replace(/\r+|\n+|\s+/gi,"").toLowerCase();default:throw Error("Unsupported platform: "+process.platform)}}function q(k){var y=X((0,C.execSync)($[x]).toString());return k?y:Z(y)}function F(k){return new N.default(function(y,c){return(0,C.exec)($[x],{},function(M,b,d){if(M)return c(Error("Error while obtaining machine id: "+M.stack));var n=X(b.toString());return y(k?n:Z(n))})})}Object.defineProperty(K,"__esModule",{value:!0});var H=z(35),N=W(H);K.machineIdSync=q,K.machineId=F;var C=z(70),U=z(71),R=process,x=R.platform,i={native:"%windir%\\System32",mixed:"%windir%\\sysnative\\cmd.exe /c %windir%\\System32"},$={darwin:"ioreg -rd1 -c IOPlatformExpertDevice",win32:i[J()]+"\\REG.exe QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid",linux:"( cat /var/lib/dbus/machine-id /etc/machine-id 2> /dev/null || hostname ) | head -n 1 || :",freebsd:"kenv -q smbios.system.uuid || sysctl -n kern.hostuuid"}},function(G,K,z){G.exports={default:z(36),__esModule:!0}},function(G,K,z){z(66),z(68),z(69),z(67),G.exports=z(6).Promise},function(G,K){G.exports=function(){}},function(G,K){G.exports=function(z,W,J,Z){if(!(z instanceof W)||Z!==void 0&&Z in z)throw TypeError(J+": incorrect invocation!");return z}},function(G,K,z){var W=z(13),J=z(31),Z=z(62);G.exports=function(X){return function(q,F,H){var N,C=W(q),U=J(C.length),R=Z(H,U);if(X&&F!=F){for(;U>R;)if(N=C[R++],N!=N)return!0}else for(;U>R;R++)if((X||(R in C))&&C[R]===F)return X||R||0;return!X&&-1}}},function(G,C,z){var W=z(7),J=z(44),Z=z(43),X=z(3),q=z(31),F=z(64),H={},N={},C=G.exports=function(U,R,x,i,$){var k,y,c,M,b=$?function(){return U}:F(U),d=W(x,i,R?2:1),n=0;if(typeof b!="function")throw TypeError(U+" is not iterable!");if(Z(b)){for(k=q(U.length);k>n;n++)if(M=R?d(X(y=U[n])[0],y[1]):d(U[n]),M===H||M===N)return M}else for(c=b.call(U);!(y=c.next()).done;)if(M=J(c,d,y.value,R),M===H||M===N)return M};C.BREAK=H,C.RETURN=N},function(G,K){G.exports=function(z,W,J){var Z=J===void 0;switch(W.length){case 0:return Z?z():z.call(J);case 1:return Z?z(W[0]):z.call(J,W[0]);case 2:return Z?z(W[0],W[1]):z.call(J,W[0],W[1]);case 3:return Z?z(W[0],W[1],W[2]):z.call(J,W[0],W[1],W[2]);case 4:return Z?z(W[0],W[1],W[2],W[3]):z.call(J,W[0],W[1],W[2],W[3])}return z.apply(J,W)}},function(G,K,z){var W=z(11);G.exports=Object("z").propertyIsEnumerable(0)?Object:function(J){return W(J)=="String"?J.split(""):Object(J)}},function(G,K,z){var W=z(10),J=z(1)("iterator"),Z=Array.prototype;G.exports=function(X){return X!==void 0&&(W.Array===X||Z[J]===X)}},function(G,K,z){var W=z(3);G.exports=function(J,Z,X,q){try{return q?Z(W(X)[0],X[1]):Z(X)}catch(H){var F=J.return;throw F!==void 0&&W(F.call(J)),H}}},function(G,K,z){var W=z(49),J=z(17),Z=z(18),X={};z(5)(X,z(1)("iterator"),function(){return this}),G.exports=function(q,F,H){q.prototype=W(X,{next:J(1,H)}),Z(q,F+" Iterator")}},function(G,K,z){var W=z(1)("iterator"),J=!1;try{var Z=[7][W]();Z.return=function(){J=!0},Array.from(Z,function(){throw 2})}catch(X){}G.exports=function(X,q){if(!q&&!J)return!1;var F=!1;try{var H=[7],N=H[W]();N.next=function(){return{done:F=!0}},H[W]=function(){return N},X(H)}catch(C){}return F}},function(G,K){G.exports=function(z,W){return{value:W,done:!!z}}},function(G,K,z){var W=z(2),J=z(30).set,Z=W.MutationObserver||W.WebKitMutationObserver,X=W.process,q=W.Promise,F=z(11)(X)=="process";G.exports=function(){var H,N,C,U=function(){var $,k;for(F&&($=X.domain)&&$.exit();H;){k=H.fn,H=H.next;try{k()}catch(y){throw H?C():N=void 0,y}}N=void 0,$&&$.enter()};if(F)C=function(){X.nextTick(U)};else if(Z){var R=!0,x=document.createTextNode("");new Z(U).observe(x,{characterData:!0}),C=function(){x.data=R=!R}}else if(q&&q.resolve){var i=q.resolve();C=function(){i.then(U)}}else C=function(){J.call(W,U)};return function($){var k={fn:$,next:void 0};N&&(N.next=k),H||(H=k,C()),N=k}}},function(G,K,z){var W=z(3),J=z(50),Z=z(22),X=z(19)("IE_PROTO"),q=function(){},F="prototype",H=function(){var N,C=z(16)("iframe"),U=Z.length,R=">";for(C.style.display="none",z(25).appendChild(C),C.src="javascript:",N=C.contentWindow.document,N.open(),N.write("<script>document.F=Object</script"+R),N.close(),H=N.F;U--;)delete H[F][Z[U]];return H()};G.exports=Object.create||function(N,C){var U;return N!==null?(q[F]=W(N),U=new q,q[F]=null,U[X]=N):U=H(),C===void 0?U:J(U,C)}},function(G,K,z){var W=z(12),J=z(3),Z=z(54);G.exports=z(4)?Object.defineProperties:function(X,q){J(X);for(var F,H=Z(q),N=H.length,C=0;N>C;)W.f(X,F=H[C++],q[F]);return X}},function(G,K,z){var W=z(55),J=z(17),Z=z(13),X=z(32),q=z(8),F=z(26),H=Object.getOwnPropertyDescriptor;K.f=z(4)?H:function(N,C){if(N=Z(N),C=X(C,!0),F)try{return H(N,C)}catch(U){}if(q(N,C))return J(!W.f.call(N,C),N[C])}},function(G,K,z){var W=z(8),J=z(63),Z=z(19)("IE_PROTO"),X=Object.prototype;G.exports=Object.getPrototypeOf||function(q){return q=J(q),W(q,Z)?q[Z]:typeof q.constructor=="function"&&q instanceof q.constructor?q.constructor.prototype:q instanceof Object?X:null}},function(G,K,z){var W=z(8),J=z(13),Z=z(39)(!1),X=z(19)("IE_PROTO");G.exports=function(q,F){var H,N=J(q),C=0,U=[];for(H in N)H!=X&&W(N,H)&&U.push(H);for(;F.length>C;)W(N,H=F[C++])&&(~Z(U,H)||U.push(H));return U}},function(G,K,z){var W=z(53),J=z(22);G.exports=Object.keys||function(Z){return W(Z,J)}},function(G,K){K.f={}.propertyIsEnumerable},function(G,K,z){var W=z(5);G.exports=function(J,Z,X){for(var q in Z)X&&J[q]?J[q]=Z[q]:W(J,q,Z[q]);return J}},function(G,K,z){G.exports=z(5)},function(G,K,z){var W=z(9),J=z(3),Z=function(X,q){if(J(X),!W(q)&&q!==null)throw TypeError(q+": can't set as prototype!")};G.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(X,q,F){try{F=z(7)(Function.call,z(51).f(Object.prototype,"__proto__").set,2),F(X,[]),q=!(X instanceof Array)}catch(H){q=!0}return function(H,N){return Z(H,N),q?H.__proto__=N:F(H,N),H}}({},!1):void 0),check:Z}},function(G,K,z){var W=z(2),J=z(6),Z=z(12),X=z(4),q=z(1)("species");G.exports=function(F){var H=typeof J[F]=="function"?J[F]:W[F];X&&H&&!H[q]&&Z.f(H,q,{configurable:!0,get:function(){return this}})}},function(G,K,z){var W=z(3),J=z(14),Z=z(1)("species");G.exports=function(X,q){var F,H=W(X).constructor;return H===void 0||(F=W(H)[Z])==null?q:J(F)}},function(G,K,z){var W=z(20),J=z(15);G.exports=function(Z){return function(X,q){var F,H,N=String(J(X)),C=W(q),U=N.length;return C<0||C>=U?Z?"":void 0:(F=N.charCodeAt(C),F<55296||F>56319||C+1===U||(H=N.charCodeAt(C+1))<56320||H>57343?Z?N.charAt(C):F:Z?N.slice(C,C+2):(F-55296<<10)+(H-56320)+65536)}}},function(G,K,z){var W=z(20),J=Math.max,Z=Math.min;G.exports=function(X,q){return X=W(X),X<0?J(X+q,0):Z(X,q)}},function(G,K,z){var W=z(15);G.exports=function(J){return Object(W(J))}},function(G,K,z){var W=z(21),J=z(1)("iterator"),Z=z(10);G.exports=z(6).getIteratorMethod=function(X){if(X!=null)return X[J]||X["@@iterator"]||Z[W(X)]}},function(G,K,z){var W=z(37),J=z(47),Z=z(10),X=z(13);G.exports=z(27)(Array,"Array",function(q,F){this._t=X(q),this._i=0,this._k=F},function(){var q=this._t,F=this._k,H=this._i++;return!q||H>=q.length?(this._t=void 0,J(1)):F=="keys"?J(0,H):F=="values"?J(0,q[H]):J(0,[H,q[H]])},"values"),Z.Arguments=Z.Array,W("keys"),W("values"),W("entries")},function(G,K){},function(G,K,z){var W,J,Z,X=z(28),q=z(2),F=z(7),H=z(21),N=z(23),C=z(9),U=(z(3),z(14)),R=z(38),x=z(40),i=(z(58).set,z(60)),$=z(30).set,k=z(48)(),y="Promise",c=q.TypeError,b=q.process,M=q[y],b=q.process,d=H(b)=="process",n=function(){},r=!!function(){try{var D=M.resolve(1),A=(D.constructor={})[z(1)("species")]=function(P){P(n,n)};return(d||typeof PromiseRejectionEvent=="function")&&D.then(n)instanceof A}catch(P){}}(),B0=function(D,A){return D===A||D===M&&A===Z},V0=function(D){var A;return!(!C(D)||typeof(A=D.then)!="function")&&A},Z0=function(D){return B0(M,D)?new k0(D):new J(D)},k0=J=function(D){var A,P;this.promise=new D(function(u,s){if(A!==void 0||P!==void 0)throw c("Bad Promise constructor");A=u,P=s}),this.resolve=U(A),this.reject=U(P)},T1=function(D){try{D()}catch(A){return{error:A}}},a0=function(D,A){if(!D._n){D._n=!0;var P=D._c;k(function(){for(var u=D._v,s=D._s==1,t0=0,h1=function(x0){var U0,o6,Z6=s?x0.ok:x0.fail,J6=x0.resolve,L1=x0.reject,a6=x0.domain;try{Z6?(s||(D._h==2&&v0(D),D._h=1),Z6===!0?U0=u:(a6&&a6.enter(),U0=Z6(u),a6&&a6.exit()),U0===x0.promise?L1(c("Promise-chain cycle")):(o6=V0(U0))?o6.call(U0,J6,L1):J6(U0)):L1(u)}catch(dL){L1(dL)}};P.length>t0;)h1(P[t0++]);D._c=[],D._n=!1,A&&!D._h&&s1(D)})}},s1=function(D){$.call(q,function(){var A,P,u,s=D._v;if(J0(D)&&(A=T1(function(){d?b.emit("unhandledRejection",s,D):(P=q.onunhandledrejection)?P({promise:D,reason:s}):(u=q.console)&&u.error&&u.error("Unhandled promise rejection",s)}),D._h=d||J0(D)?2:1),D._a=void 0,A)throw A.error})},J0=function(D){if(D._h==1)return!1;for(var A,P=D._a||D._c,u=0;P.length>u;)if(A=P[u++],A.fail||!J0(A.promise))return!1;return!0},v0=function(D){$.call(q,function(){var A;d?b.emit("rejectionHandled",D):(A=q.onrejectionhandled)&&A({promise:D,reason:D._v})})},z0=function(D){var A=this;A._d||(A._d=!0,A=A._w||A,A._v=D,A._s=2,A._a||(A._a=A._c.slice()),a0(A,!0))},e1=function(D){var A,P=this;if(!P._d){P._d=!0,P=P._w||P;try{if(P===D)throw c("Promise can't be resolved itself");(A=V0(D))?k(function(){var u={_w:P,_d:!1};try{A.call(D,F(e1,u,1),F(z0,u,1))}catch(s){z0.call(u,s)}}):(P._v=D,P._s=1,a0(P,!1))}catch(u){z0.call({_w:P,_d:!1},u)}}};r||(M=function(D){R(this,M,y,"_h"),U(D),W.call(this);try{D(F(e1,this,1),F(z0,this,1))}catch(A){z0.call(this,A)}},W=function(D){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},W.prototype=z(56)(M.prototype,{then:function(D,A){var P=Z0(i(this,M));return P.ok=typeof D!="function"||D,P.fail=typeof A=="function"&&A,P.domain=d?b.domain:void 0,this._c.push(P),this._a&&this._a.push(P),this._s&&a0(this,!1),P.promise},catch:function(D){return this.then(void 0,D)}}),k0=function(){var D=new W;this.promise=D,this.resolve=F(e1,D,1),this.reject=F(z0,D,1)}),N(N.G+N.W+N.F*!r,{Promise:M}),z(18)(M,y),z(59)(y),Z=z(6)[y],N(N.S+N.F*!r,y,{reject:function(D){var A=Z0(this),P=A.reject;return P(D),A.promise}}),N(N.S+N.F*(X||!r),y,{resolve:function(D){if(D instanceof M&&B0(D.constructor,this))return D;var A=Z0(this),P=A.resolve;return P(D),A.promise}}),N(N.S+N.F*!(r&&z(46)(function(D){M.all(D).catch(n)})),y,{all:function(D){var A=this,P=Z0(A),u=P.resolve,s=P.reject,t0=T1(function(){var h1=[],x0=0,U0=1;x(D,!1,function(o6){var Z6=x0++,J6=!1;h1.push(void 0),U0++,A.resolve(o6).then(function(L1){J6||(J6=!0,h1[Z6]=L1,--U0||u(h1))},s)}),--U0||u(h1)});return t0&&s(t0.error),P.promise},race:function(D){var A=this,P=Z0(A),u=P.reject,s=T1(function(){x(D,!1,function(t0){A.resolve(t0).then(P.resolve,u)})});return s&&u(s.error),P.promise}})},function(G,K,z){var W=z(61)(!0);z(27)(String,"String",function(J){this._t=String(J),this._i=0},function(){var J,Z=this._t,X=this._i;return X>=Z.length?{value:void 0,done:!0}:(J=W(Z,X),this._i+=J.length,{value:J,done:!1})})},function(G,K,z){z(65);for(var W=z(2),J=z(5),Z=z(10),X=z(1)("toStringTag"),q=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],F=0;F<5;F++){var H=q[F],N=W[H],C=N&&N.prototype;C&&!C[X]&&J(C,X,H),Z[H]=Z.Array}},function(G,K){G.exports=j("child_process")},function(G,K){G.exports=j("crypto")}])})});import{existsSync as Ct,mkdirSync as Dt,readFileSync as Ut,writeFileSync as At}from"node:fs";import{resolve as Et}from"node:path";import{nanoid as Tt}from"nanoid";function $8(Q){let Y=Q?.trim();if(Y)return Y;let G=Lt();if(G)return G;return Mt()}function Lt(){try{return RL.machineIdSync().trim()||void 0}catch{return}}function Mt(){let Q=R8(),Y=Et(Q,ht);try{if(Ct(Y)){let K=Ut(Y,"utf8").trim();if(K.length>0)return K}}catch{}let G=`cl-${Tt()}`;try{Dt(Q,{recursive:!0}),At(Y,G,"utf8")}catch{}return G}var RL,ht="machine-id";var kL=M1(()=>{PL();RL=o(wL(),1)});class S8{name;logger;enabled;constructor(Q={}){this.name=Q.name??"TelemetryLoggerSink",this.logger=Q.logger,this.enabled=Q.enabled??!0}emit(Q,Y){if(!this.isEnabled())return;this.logger?.log("telemetry.event",{telemetrySink:this.name,event:Q,properties:Y})}emitRequired(Q,Y){this.logger?.log("telemetry.required_event",{telemetrySink:this.name,severity:"warn",event:Q,properties:Y})}recordCounter(Q,Y,G,K,z){if(!z&&!this.isEnabled())return;this.logger?.debug("telemetry.metric",{telemetrySink:this.name,instrument:"counter",name:Q,value:Y,attributes:G,description:K,required:z===!0})}recordHistogram(Q,Y,G,K,z){if(!z&&!this.isEnabled())return;this.logger?.debug("telemetry.metric",{telemetrySink:this.name,instrument:"histogram",name:Q,value:Y,attributes:G,description:K,required:z===!0})}recordGauge(Q,Y,G,K,z){if(!z&&!this.isEnabled())return;this.logger?.debug("telemetry.metric",{telemetrySink:this.name,instrument:"gauge",name:Q,value:Y,attributes:G,description:K,required:z===!0})}isEnabled(){return typeof this.enabled==="function"?this.enabled():this.enabled}async flush(){}async dispose(){}}class AJ{adapters;metadata;distinctId;commonProperties;constructor(Q={}){if(this.adapters=[...Q.adapters??[]],Q.logger)this.adapters.push(new S8({logger:Q.logger}));this.metadata={...Q.metadata??{}},this.distinctId=Q.distinctId,this.commonProperties={...Q.commonProperties??{}}}addAdapter(Q){this.adapters.push(Q)}setDistinctId(Q){this.distinctId=Q}setMetadata(Q){this.metadata={...Q}}updateMetadata(Q){this.metadata={...this.metadata,...Q}}setCommonProperties(Q){this.commonProperties={...Q}}updateCommonProperties(Q){this.commonProperties={...this.commonProperties,...Q}}isEnabled(){return this.adapters.some((Q)=>Q.isEnabled())}capture(Q){let Y=this.buildAttributes(Q.properties);for(let G of this.adapters)G.emit(Q.event,Y)}captureRequired(Q,Y){let G=this.buildAttributes(Y);for(let K of this.adapters)K.emitRequired(Q,G)}recordCounter(Q,Y,G,K,z=!1){let W=this.buildAttributes(G);for(let J of this.adapters)J.recordCounter(Q,Y,W,K,z)}recordHistogram(Q,Y,G,K,z=!1){let W=this.buildAttributes(G);for(let J of this.adapters)J.recordHistogram(Q,Y,W,K,z)}recordGauge(Q,Y,G,K,z=!1){let W=this.buildAttributes(G);for(let J of this.adapters)J.recordGauge(Q,Y,W,K,z)}async flush(){await Promise.all(this.adapters.map((Q)=>Q.flush()))}async dispose(){await Promise.all(this.adapters.map((Q)=>Q.dispose()))}buildAttributes(Q){return{...this.commonProperties,...Q,...this.metadata,...this.distinctId?{distinct_id:this.distinctId}:{}}}}var $L=()=>{};class hJ{meterProvider;loggerProvider;tracerProvider;options;constructor(Q={}){this.options=Q;let Y=vL.resourceFromAttributes({[TJ.ATTR_SERVICE_NAME]:Q.serviceName??"cline",...Q.serviceVersion?{[TJ.ATTR_SERVICE_VERSION]:Q.serviceVersion}:{}});if(this.meterProvider=this.createMeterProvider(Y),this.loggerProvider=this.createLoggerProvider(Y),this.tracerProvider=this.createTracerProvider(Y),this.meterProvider)EJ.metrics.setGlobalMeterProvider(this.meterProvider);if(this.loggerProvider)SL.logs.setGlobalLoggerProvider(this.loggerProvider);if(this.tracerProvider)this.tracerProvider.register()}getTracer(Q="cline",Y){return EJ.trace.getTracer(Q,Y??this.options.serviceVersion)}createAdapter(Q){return new Q6({...Q,meterProvider:this.meterProvider,loggerProvider:this.loggerProvider})}createTelemetryService(Q){let Y=this.createAdapter({name:Q.name,enabled:this.options.enabled,metadata:Q.metadata});return new AJ({adapters:[Y],distinctId:$8(Q.distinctId),commonProperties:Q.commonProperties,logger:Q.logger})}async forceFlush(){await Promise.all([this.meterProvider?.forceFlush?.(),this.loggerProvider?.forceFlush?.(),this.tracerProvider?.forceFlush?.()])}async dispose(){await Promise.all([this.meterProvider?.shutdown?.(),this.loggerProvider?.shutdown?.(),this.tracerProvider?.shutdown?.()])}createMeterProvider(Q){let Y=f8(this.options.metricsExporter);if(Y.length===0)return null;let G=Math.max(1000,this.options.metricExportIntervalMs??this.options.metricExportInterval??60000),K=Math.min(30000,Math.floor(G*0.8)),z=Y.map((W)=>Rt(W,{endpoint:this.options.otlpEndpoint,headers:this.options.otlpHeaders,insecure:this.options.otlpInsecure??!1,protocol:"http/json",interval:G,timeout:K})).filter((W)=>W!==null);if(z.length===0)return null;return new E1.MeterProvider({resource:Q,readers:z})}createTracerProvider(Q){let Y=f8(this.options.tracesExporter);if(Y.length===0)return null;let G=this.options.otlpTracesEndpoint??this.options.otlpEndpoint,K=this.options.otlpTracesHeaders??this.options.otlpHeaders,z=[];for(let W of Y){let J=wt(W,{endpoint:G,headers:K,insecure:this.options.otlpInsecure??!1,protocol:"http/json"});if(J)z.push(J)}if(z.length===0)return null;return new xL.NodeTracerProvider({resource:Q,spanProcessors:z})}createLoggerProvider(Q){let Y=f8(this.options.logsExporter);if(Y.length===0)return null;let G=Y.map((K)=>{let z=Pt(K,{endpoint:this.options.otlpEndpoint,headers:this.options.otlpHeaders,insecure:this.options.otlpInsecure??!1,protocol:"http/json"});if(!z)return null;return new t1.BatchLogRecordProcessor(z,{maxQueueSize:this.options.logMaxQueueSize??2048,maxExportBatchSize:this.options.logBatchSize??512,scheduledDelayMillis:this.options.logBatchTimeoutMs??this.options.logBatchTimeout??5000})}).filter((K)=>K!==null);if(G.length===0)return null;return new t1.LoggerProvider({resource:Q,processors:G})}}function _8(Q){let Y=new hJ(Q),G=Y.createTelemetryService(Q);return G.captureRequired("telemetry.provider_created",{provider:"opentelemetry",enabled:Q.enabled??!0,logsExporter:Array.isArray(Q.logsExporter)?Q.logsExporter.join(","):Q.logsExporter,metricsExporter:Array.isArray(Q.metricsExporter)?Q.metricsExporter.join(","):Q.metricsExporter,tracesExporter:Array.isArray(Q.tracesExporter)?Q.tracesExporter.join(","):Q.tracesExporter,otlpProtocol:Q.otlpProtocol,hasOtlpEndpoint:Boolean(Q.otlpEndpoint),serviceName:Q.serviceName,serviceVersion:Q.serviceVersion}),{provider:Y,telemetry:G}}function jL(Q){if(Q.enabled!==!0)return{telemetry:new AJ({distinctId:$8(Q.distinctId)})};return _8(Q)}function f8(Q){if(!Q)return[];return(Array.isArray(Q)?Q:Q.split(",")).map((G)=>G.trim()).filter((G)=>G==="console"||G==="otlp")}function Pt(Q,Y){if(Q==="console")return new t1.ConsoleLogRecordExporter;if(!Y.endpoint)return null;let G=y8(Y.endpoint,"/v1/logs");return new fL.OTLPLogExporter({url:G,headers:Y.headers})}function wt(Q,Y){if(Q==="console")return new r1.SimpleSpanProcessor(new r1.ConsoleSpanExporter);if(!Y.endpoint)return null;let G=y8(Y.endpoint,"/v1/traces");return new r1.BatchSpanProcessor(new yL.OTLPTraceExporter({url:G,headers:Y.headers}))}function Rt(Q,Y){if(Q==="console")return new E1.PeriodicExportingMetricReader({exporter:new E1.ConsoleMetricExporter,exportIntervalMillis:Y.interval,exportTimeoutMillis:Y.timeout});if(!Y.endpoint)return null;let G=y8(Y.endpoint,"/v1/metrics");return new E1.PeriodicExportingMetricReader({exporter:new _L.OTLPMetricExporter({url:G,headers:Y.headers}),exportIntervalMillis:Y.interval,exportTimeoutMillis:Y.timeout})}function y8(Q,Y){let G=new URL(Q),K=G.pathname.endsWith("/")?G.pathname.slice(0,-1):G.pathname;return G.pathname=K.endsWith(Y)?K:`${K}${Y}`,G.toString()}var EJ,SL,fL,_L,yL,vL,t1,E1,r1,xL,TJ;var bL=M1(()=>{kL();$L();EJ=o(T(),1),SL=o($1(),1),fL=o($A(),1),_L=o(nA(),1),yL=o(rA(),1),vL=o(S6(),1),t1=o(GT(),1),E1=o(gZ(),1),r1=o(BJ(),1),xL=o(zL(),1),TJ=o(X1(),1)});var kt={};aL(kt,{createOpenTelemetryTelemetryService:()=>_8,createConfiguredTelemetryService:()=>jL,OpenTelemetryProvider:()=>hJ,OpenTelemetryAdapter:()=>Q6});var $t=M1(()=>{bL()});$t();export{_8 as createOpenTelemetryTelemetryService,jL as createConfiguredTelemetryService,hJ as OpenTelemetryProvider,Q6 as OpenTelemetryAdapter};
|
|
15
|
+
`)[0].replace(/\=|\s+|\"/gi,"").toLowerCase();case"win32":return k.toString().split("REG_SZ")[1].replace(/\r+|\n+|\s+/gi,"").toLowerCase();case"linux":return k.toString().replace(/\r+|\n+|\s+/gi,"").toLowerCase();case"freebsd":return k.toString().replace(/\r+|\n+|\s+/gi,"").toLowerCase();default:throw Error("Unsupported platform: "+process.platform)}}function q(k){var y=X((0,C.execSync)($[x]).toString());return k?y:Z(y)}function F(k){return new N.default(function(y,c){return(0,C.exec)($[x],{},function(M,b,d){if(M)return c(Error("Error while obtaining machine id: "+M.stack));var n=X(b.toString());return y(k?n:Z(n))})})}Object.defineProperty(K,"__esModule",{value:!0});var H=z(35),N=W(H);K.machineIdSync=q,K.machineId=F;var C=z(70),U=z(71),R=process,x=R.platform,i={native:"%windir%\\System32",mixed:"%windir%\\sysnative\\cmd.exe /c %windir%\\System32"},$={darwin:"ioreg -rd1 -c IOPlatformExpertDevice",win32:i[J()]+"\\REG.exe QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid",linux:"( cat /var/lib/dbus/machine-id /etc/machine-id 2> /dev/null || hostname ) | head -n 1 || :",freebsd:"kenv -q smbios.system.uuid || sysctl -n kern.hostuuid"}},function(G,K,z){G.exports={default:z(36),__esModule:!0}},function(G,K,z){z(66),z(68),z(69),z(67),G.exports=z(6).Promise},function(G,K){G.exports=function(){}},function(G,K){G.exports=function(z,W,J,Z){if(!(z instanceof W)||Z!==void 0&&Z in z)throw TypeError(J+": incorrect invocation!");return z}},function(G,K,z){var W=z(13),J=z(31),Z=z(62);G.exports=function(X){return function(q,F,H){var N,C=W(q),U=J(C.length),R=Z(H,U);if(X&&F!=F){for(;U>R;)if(N=C[R++],N!=N)return!0}else for(;U>R;R++)if((X||(R in C))&&C[R]===F)return X||R||0;return!X&&-1}}},function(G,C,z){var W=z(7),J=z(44),Z=z(43),X=z(3),q=z(31),F=z(64),H={},N={},C=G.exports=function(U,R,x,i,$){var k,y,c,M,b=$?function(){return U}:F(U),d=W(x,i,R?2:1),n=0;if(typeof b!="function")throw TypeError(U+" is not iterable!");if(Z(b)){for(k=q(U.length);k>n;n++)if(M=R?d(X(y=U[n])[0],y[1]):d(U[n]),M===H||M===N)return M}else for(c=b.call(U);!(y=c.next()).done;)if(M=J(c,d,y.value,R),M===H||M===N)return M};C.BREAK=H,C.RETURN=N},function(G,K){G.exports=function(z,W,J){var Z=J===void 0;switch(W.length){case 0:return Z?z():z.call(J);case 1:return Z?z(W[0]):z.call(J,W[0]);case 2:return Z?z(W[0],W[1]):z.call(J,W[0],W[1]);case 3:return Z?z(W[0],W[1],W[2]):z.call(J,W[0],W[1],W[2]);case 4:return Z?z(W[0],W[1],W[2],W[3]):z.call(J,W[0],W[1],W[2],W[3])}return z.apply(J,W)}},function(G,K,z){var W=z(11);G.exports=Object("z").propertyIsEnumerable(0)?Object:function(J){return W(J)=="String"?J.split(""):Object(J)}},function(G,K,z){var W=z(10),J=z(1)("iterator"),Z=Array.prototype;G.exports=function(X){return X!==void 0&&(W.Array===X||Z[J]===X)}},function(G,K,z){var W=z(3);G.exports=function(J,Z,X,q){try{return q?Z(W(X)[0],X[1]):Z(X)}catch(H){var F=J.return;throw F!==void 0&&W(F.call(J)),H}}},function(G,K,z){var W=z(49),J=z(17),Z=z(18),X={};z(5)(X,z(1)("iterator"),function(){return this}),G.exports=function(q,F,H){q.prototype=W(X,{next:J(1,H)}),Z(q,F+" Iterator")}},function(G,K,z){var W=z(1)("iterator"),J=!1;try{var Z=[7][W]();Z.return=function(){J=!0},Array.from(Z,function(){throw 2})}catch(X){}G.exports=function(X,q){if(!q&&!J)return!1;var F=!1;try{var H=[7],N=H[W]();N.next=function(){return{done:F=!0}},H[W]=function(){return N},X(H)}catch(C){}return F}},function(G,K){G.exports=function(z,W){return{value:W,done:!!z}}},function(G,K,z){var W=z(2),J=z(30).set,Z=W.MutationObserver||W.WebKitMutationObserver,X=W.process,q=W.Promise,F=z(11)(X)=="process";G.exports=function(){var H,N,C,U=function(){var $,k;for(F&&($=X.domain)&&$.exit();H;){k=H.fn,H=H.next;try{k()}catch(y){throw H?C():N=void 0,y}}N=void 0,$&&$.enter()};if(F)C=function(){X.nextTick(U)};else if(Z){var R=!0,x=document.createTextNode("");new Z(U).observe(x,{characterData:!0}),C=function(){x.data=R=!R}}else if(q&&q.resolve){var i=q.resolve();C=function(){i.then(U)}}else C=function(){J.call(W,U)};return function($){var k={fn:$,next:void 0};N&&(N.next=k),H||(H=k,C()),N=k}}},function(G,K,z){var W=z(3),J=z(50),Z=z(22),X=z(19)("IE_PROTO"),q=function(){},F="prototype",H=function(){var N,C=z(16)("iframe"),U=Z.length,R=">";for(C.style.display="none",z(25).appendChild(C),C.src="javascript:",N=C.contentWindow.document,N.open(),N.write("<script>document.F=Object</script"+R),N.close(),H=N.F;U--;)delete H[F][Z[U]];return H()};G.exports=Object.create||function(N,C){var U;return N!==null?(q[F]=W(N),U=new q,q[F]=null,U[X]=N):U=H(),C===void 0?U:J(U,C)}},function(G,K,z){var W=z(12),J=z(3),Z=z(54);G.exports=z(4)?Object.defineProperties:function(X,q){J(X);for(var F,H=Z(q),N=H.length,C=0;N>C;)W.f(X,F=H[C++],q[F]);return X}},function(G,K,z){var W=z(55),J=z(17),Z=z(13),X=z(32),q=z(8),F=z(26),H=Object.getOwnPropertyDescriptor;K.f=z(4)?H:function(N,C){if(N=Z(N),C=X(C,!0),F)try{return H(N,C)}catch(U){}if(q(N,C))return J(!W.f.call(N,C),N[C])}},function(G,K,z){var W=z(8),J=z(63),Z=z(19)("IE_PROTO"),X=Object.prototype;G.exports=Object.getPrototypeOf||function(q){return q=J(q),W(q,Z)?q[Z]:typeof q.constructor=="function"&&q instanceof q.constructor?q.constructor.prototype:q instanceof Object?X:null}},function(G,K,z){var W=z(8),J=z(13),Z=z(39)(!1),X=z(19)("IE_PROTO");G.exports=function(q,F){var H,N=J(q),C=0,U=[];for(H in N)H!=X&&W(N,H)&&U.push(H);for(;F.length>C;)W(N,H=F[C++])&&(~Z(U,H)||U.push(H));return U}},function(G,K,z){var W=z(53),J=z(22);G.exports=Object.keys||function(Z){return W(Z,J)}},function(G,K){K.f={}.propertyIsEnumerable},function(G,K,z){var W=z(5);G.exports=function(J,Z,X){for(var q in Z)X&&J[q]?J[q]=Z[q]:W(J,q,Z[q]);return J}},function(G,K,z){G.exports=z(5)},function(G,K,z){var W=z(9),J=z(3),Z=function(X,q){if(J(X),!W(q)&&q!==null)throw TypeError(q+": can't set as prototype!")};G.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(X,q,F){try{F=z(7)(Function.call,z(51).f(Object.prototype,"__proto__").set,2),F(X,[]),q=!(X instanceof Array)}catch(H){q=!0}return function(H,N){return Z(H,N),q?H.__proto__=N:F(H,N),H}}({},!1):void 0),check:Z}},function(G,K,z){var W=z(2),J=z(6),Z=z(12),X=z(4),q=z(1)("species");G.exports=function(F){var H=typeof J[F]=="function"?J[F]:W[F];X&&H&&!H[q]&&Z.f(H,q,{configurable:!0,get:function(){return this}})}},function(G,K,z){var W=z(3),J=z(14),Z=z(1)("species");G.exports=function(X,q){var F,H=W(X).constructor;return H===void 0||(F=W(H)[Z])==null?q:J(F)}},function(G,K,z){var W=z(20),J=z(15);G.exports=function(Z){return function(X,q){var F,H,N=String(J(X)),C=W(q),U=N.length;return C<0||C>=U?Z?"":void 0:(F=N.charCodeAt(C),F<55296||F>56319||C+1===U||(H=N.charCodeAt(C+1))<56320||H>57343?Z?N.charAt(C):F:Z?N.slice(C,C+2):(F-55296<<10)+(H-56320)+65536)}}},function(G,K,z){var W=z(20),J=Math.max,Z=Math.min;G.exports=function(X,q){return X=W(X),X<0?J(X+q,0):Z(X,q)}},function(G,K,z){var W=z(15);G.exports=function(J){return Object(W(J))}},function(G,K,z){var W=z(21),J=z(1)("iterator"),Z=z(10);G.exports=z(6).getIteratorMethod=function(X){if(X!=null)return X[J]||X["@@iterator"]||Z[W(X)]}},function(G,K,z){var W=z(37),J=z(47),Z=z(10),X=z(13);G.exports=z(27)(Array,"Array",function(q,F){this._t=X(q),this._i=0,this._k=F},function(){var q=this._t,F=this._k,H=this._i++;return!q||H>=q.length?(this._t=void 0,J(1)):F=="keys"?J(0,H):F=="values"?J(0,q[H]):J(0,[H,q[H]])},"values"),Z.Arguments=Z.Array,W("keys"),W("values"),W("entries")},function(G,K){},function(G,K,z){var W,J,Z,X=z(28),q=z(2),F=z(7),H=z(21),N=z(23),C=z(9),U=(z(3),z(14)),R=z(38),x=z(40),i=(z(58).set,z(60)),$=z(30).set,k=z(48)(),y="Promise",c=q.TypeError,b=q.process,M=q[y],b=q.process,d=H(b)=="process",n=function(){},r=!!function(){try{var D=M.resolve(1),A=(D.constructor={})[z(1)("species")]=function(P){P(n,n)};return(d||typeof PromiseRejectionEvent=="function")&&D.then(n)instanceof A}catch(P){}}(),B0=function(D,A){return D===A||D===M&&A===Z},V0=function(D){var A;return!(!C(D)||typeof(A=D.then)!="function")&&A},Z0=function(D){return B0(M,D)?new k0(D):new J(D)},k0=J=function(D){var A,P;this.promise=new D(function(u,s){if(A!==void 0||P!==void 0)throw c("Bad Promise constructor");A=u,P=s}),this.resolve=U(A),this.reject=U(P)},T1=function(D){try{D()}catch(A){return{error:A}}},a0=function(D,A){if(!D._n){D._n=!0;var P=D._c;k(function(){for(var u=D._v,s=D._s==1,t0=0,h1=function(x0){var U0,o6,Z6=s?x0.ok:x0.fail,J6=x0.resolve,L1=x0.reject,a6=x0.domain;try{Z6?(s||(D._h==2&&v0(D),D._h=1),Z6===!0?U0=u:(a6&&a6.enter(),U0=Z6(u),a6&&a6.exit()),U0===x0.promise?L1(c("Promise-chain cycle")):(o6=V0(U0))?o6.call(U0,J6,L1):J6(U0)):L1(u)}catch(dL){L1(dL)}};P.length>t0;)h1(P[t0++]);D._c=[],D._n=!1,A&&!D._h&&s1(D)})}},s1=function(D){$.call(q,function(){var A,P,u,s=D._v;if(J0(D)&&(A=T1(function(){d?b.emit("unhandledRejection",s,D):(P=q.onunhandledrejection)?P({promise:D,reason:s}):(u=q.console)&&u.error&&u.error("Unhandled promise rejection",s)}),D._h=d||J0(D)?2:1),D._a=void 0,A)throw A.error})},J0=function(D){if(D._h==1)return!1;for(var A,P=D._a||D._c,u=0;P.length>u;)if(A=P[u++],A.fail||!J0(A.promise))return!1;return!0},v0=function(D){$.call(q,function(){var A;d?b.emit("rejectionHandled",D):(A=q.onrejectionhandled)&&A({promise:D,reason:D._v})})},z0=function(D){var A=this;A._d||(A._d=!0,A=A._w||A,A._v=D,A._s=2,A._a||(A._a=A._c.slice()),a0(A,!0))},e1=function(D){var A,P=this;if(!P._d){P._d=!0,P=P._w||P;try{if(P===D)throw c("Promise can't be resolved itself");(A=V0(D))?k(function(){var u={_w:P,_d:!1};try{A.call(D,F(e1,u,1),F(z0,u,1))}catch(s){z0.call(u,s)}}):(P._v=D,P._s=1,a0(P,!1))}catch(u){z0.call({_w:P,_d:!1},u)}}};r||(M=function(D){R(this,M,y,"_h"),U(D),W.call(this);try{D(F(e1,this,1),F(z0,this,1))}catch(A){z0.call(this,A)}},W=function(D){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},W.prototype=z(56)(M.prototype,{then:function(D,A){var P=Z0(i(this,M));return P.ok=typeof D!="function"||D,P.fail=typeof A=="function"&&A,P.domain=d?b.domain:void 0,this._c.push(P),this._a&&this._a.push(P),this._s&&a0(this,!1),P.promise},catch:function(D){return this.then(void 0,D)}}),k0=function(){var D=new W;this.promise=D,this.resolve=F(e1,D,1),this.reject=F(z0,D,1)}),N(N.G+N.W+N.F*!r,{Promise:M}),z(18)(M,y),z(59)(y),Z=z(6)[y],N(N.S+N.F*!r,y,{reject:function(D){var A=Z0(this),P=A.reject;return P(D),A.promise}}),N(N.S+N.F*(X||!r),y,{resolve:function(D){if(D instanceof M&&B0(D.constructor,this))return D;var A=Z0(this),P=A.resolve;return P(D),A.promise}}),N(N.S+N.F*!(r&&z(46)(function(D){M.all(D).catch(n)})),y,{all:function(D){var A=this,P=Z0(A),u=P.resolve,s=P.reject,t0=T1(function(){var h1=[],x0=0,U0=1;x(D,!1,function(o6){var Z6=x0++,J6=!1;h1.push(void 0),U0++,A.resolve(o6).then(function(L1){J6||(J6=!0,h1[Z6]=L1,--U0||u(h1))},s)}),--U0||u(h1)});return t0&&s(t0.error),P.promise},race:function(D){var A=this,P=Z0(A),u=P.reject,s=T1(function(){x(D,!1,function(t0){A.resolve(t0).then(P.resolve,u)})});return s&&u(s.error),P.promise}})},function(G,K,z){var W=z(61)(!0);z(27)(String,"String",function(J){this._t=String(J),this._i=0},function(){var J,Z=this._t,X=this._i;return X>=Z.length?{value:void 0,done:!0}:(J=W(Z,X),this._i+=J.length,{value:J,done:!1})})},function(G,K,z){z(65);for(var W=z(2),J=z(5),Z=z(10),X=z(1)("toStringTag"),q=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],F=0;F<5;F++){var H=q[F],N=W[H],C=N&&N.prototype;C&&!C[X]&&J(C,X,H),Z[H]=Z.Array}},function(G,K){G.exports=j("child_process")},function(G,K){G.exports=j("crypto")}])})});import{existsSync as Ct,mkdirSync as Dt,readFileSync as Ut,writeFileSync as At}from"node:fs";import{resolve as Et}from"node:path";import{nanoid as Tt}from"nanoid";function $8(Q){let Y=Q?.trim();if(Y)return Y;let G=Lt();if(G)return G;return Mt()}function Lt(){try{return RL.machineIdSync().trim()||void 0}catch{return}}function Mt(){let Q=R8(),Y=Et(Q,ht);try{if(Ct(Y)){let K=Ut(Y,"utf8").trim();if(K.length>0)return K}}catch{}let G=`cl-${Tt()}`;try{Dt(Q,{recursive:!0}),At(Y,G,"utf8")}catch{}return G}var RL,ht="machine-id";var kL=M1(()=>{PL();RL=o(wL(),1)});class S8{name;logger;enabled;constructor(Q={}){this.name=Q.name??"TelemetryLoggerSink",this.logger=Q.logger,this.enabled=Q.enabled??!0}emit(Q,Y){if(!this.isEnabled())return;this.logger?.log("telemetry.event",{telemetrySink:this.name,event:Q,properties:Y})}emitRequired(Q,Y){this.logger?.log("telemetry.required_event",{telemetrySink:this.name,severity:"warn",event:Q,properties:Y})}recordCounter(Q,Y,G,K,z){if(!z&&!this.isEnabled())return;this.logger?.debug("telemetry.metric",{telemetrySink:this.name,instrument:"counter",name:Q,value:Y,attributes:G,description:K,required:z===!0})}recordHistogram(Q,Y,G,K,z){if(!z&&!this.isEnabled())return;this.logger?.debug("telemetry.metric",{telemetrySink:this.name,instrument:"histogram",name:Q,value:Y,attributes:G,description:K,required:z===!0})}recordGauge(Q,Y,G,K,z){if(!z&&!this.isEnabled())return;this.logger?.debug("telemetry.metric",{telemetrySink:this.name,instrument:"gauge",name:Q,value:Y,attributes:G,description:K,required:z===!0})}isEnabled(){return typeof this.enabled==="function"?this.enabled():this.enabled}async flush(){}async dispose(){}}class AJ{adapters;metadata;distinctId;commonProperties;constructor(Q={}){if(this.adapters=[...Q.adapters??[]],Q.logger)this.adapters.push(new S8({logger:Q.logger}));this.metadata={...Q.metadata??{}},this.distinctId=Q.distinctId,this.commonProperties={...Q.commonProperties??{}}}addAdapter(Q){this.adapters.push(Q)}setDistinctId(Q){this.distinctId=Q}setMetadata(Q){this.metadata={...Q}}updateMetadata(Q){this.metadata={...this.metadata,...Q}}setCommonProperties(Q){this.commonProperties={...Q}}updateCommonProperties(Q){this.commonProperties={...this.commonProperties,...Q}}isEnabled(){return this.adapters.some((Q)=>Q.isEnabled())}capture(Q){let Y=this.buildAttributes(Q.properties);for(let G of this.adapters)G.emit(Q.event,Y)}captureRequired(Q,Y){let G=this.buildAttributes(Y);for(let K of this.adapters)K.emitRequired(Q,G)}recordCounter(Q,Y,G,K,z=!1){let W=this.buildAttributes(G);for(let J of this.adapters)J.recordCounter(Q,Y,W,K,z)}recordHistogram(Q,Y,G,K,z=!1){let W=this.buildAttributes(G);for(let J of this.adapters)J.recordHistogram(Q,Y,W,K,z)}recordGauge(Q,Y,G,K,z=!1){let W=this.buildAttributes(G);for(let J of this.adapters)J.recordGauge(Q,Y,W,K,z)}async flush(){await Promise.all(this.adapters.map((Q)=>Q.flush()))}async dispose(){await Promise.all(this.adapters.map((Q)=>Q.dispose()))}buildAttributes(Q){return{...this.commonProperties,...Q,...this.metadata,...this.distinctId?{distinct_id:this.distinctId}:{}}}}var $L=()=>{};class hJ{meterProvider;loggerProvider;tracerProvider;options;constructor(Q={}){this.options=Q;let Y=vL.resourceFromAttributes({[TJ.ATTR_SERVICE_NAME]:Q.serviceName??"cline",...Q.serviceVersion?{[TJ.ATTR_SERVICE_VERSION]:Q.serviceVersion}:{}});if(this.meterProvider=this.createMeterProvider(Y),this.loggerProvider=this.createLoggerProvider(Y),this.tracerProvider=this.createTracerProvider(Y),this.meterProvider)EJ.metrics.setGlobalMeterProvider(this.meterProvider);if(this.loggerProvider)SL.logs.setGlobalLoggerProvider(this.loggerProvider);if(this.tracerProvider)this.tracerProvider.register()}getTracer(Q="cline",Y){return EJ.trace.getTracer(Q,Y??this.options.serviceVersion)}createAdapter(Q){return new Q6({...Q,meterProvider:this.meterProvider,loggerProvider:this.loggerProvider})}createTelemetryService(Q){let Y=this.createAdapter({name:Q.name,enabled:this.options.enabled,metadata:Q.metadata});return new AJ({...Q,adapters:[Y],distinctId:$8(Q.distinctId)})}async forceFlush(){await Promise.all([this.meterProvider?.forceFlush?.(),this.loggerProvider?.forceFlush?.(),this.tracerProvider?.forceFlush?.()])}async dispose(){await Promise.all([this.meterProvider?.shutdown?.(),this.loggerProvider?.shutdown?.(),this.tracerProvider?.shutdown?.()])}createMeterProvider(Q){let Y=f8(this.options.metricsExporter);if(Y.length===0)return null;let G=Math.max(1000,this.options.metricExportIntervalMs??this.options.metricExportInterval??60000),K=Math.min(30000,Math.floor(G*0.8)),z=Y.map((W)=>Rt(W,{endpoint:this.options.otlpEndpoint,headers:this.options.otlpHeaders,insecure:this.options.otlpInsecure??!1,protocol:"http/json",interval:G,timeout:K})).filter((W)=>W!==null);if(z.length===0)return null;return new E1.MeterProvider({resource:Q,readers:z})}createTracerProvider(Q){let Y=f8(this.options.tracesExporter);if(Y.length===0)return null;let G=this.options.otlpTracesEndpoint??this.options.otlpEndpoint,K=this.options.otlpTracesHeaders??this.options.otlpHeaders,z=[];for(let W of Y){let J=wt(W,{endpoint:G,headers:K,insecure:this.options.otlpInsecure??!1,protocol:"http/json"});if(J)z.push(J)}if(z.length===0)return null;return new xL.NodeTracerProvider({resource:Q,spanProcessors:z})}createLoggerProvider(Q){let Y=f8(this.options.logsExporter);if(Y.length===0)return null;let G=Y.map((K)=>{let z=Pt(K,{endpoint:this.options.otlpEndpoint,headers:this.options.otlpHeaders,insecure:this.options.otlpInsecure??!1,protocol:"http/json"});if(!z)return null;return new t1.BatchLogRecordProcessor(z,{maxQueueSize:this.options.logMaxQueueSize??2048,maxExportBatchSize:this.options.logBatchSize??512,scheduledDelayMillis:this.options.logBatchTimeoutMs??this.options.logBatchTimeout??5000})}).filter((K)=>K!==null);if(G.length===0)return null;return new t1.LoggerProvider({resource:Q,processors:G})}}function _8(Q){let Y=new hJ(Q),G=Y.createTelemetryService(Q);return G.captureRequired("telemetry.provider_created",{provider:"opentelemetry",enabled:Q.enabled??!0,logsExporter:Array.isArray(Q.logsExporter)?Q.logsExporter.join(","):Q.logsExporter,metricsExporter:Array.isArray(Q.metricsExporter)?Q.metricsExporter.join(","):Q.metricsExporter,tracesExporter:Array.isArray(Q.tracesExporter)?Q.tracesExporter.join(","):Q.tracesExporter,otlpProtocol:Q.otlpProtocol,hasOtlpEndpoint:Boolean(Q.otlpEndpoint),serviceName:Q.serviceName,serviceVersion:Q.serviceVersion}),{provider:Y,telemetry:G}}function jL(Q){if(Q.enabled!==!0)return{telemetry:new AJ({...Q,distinctId:$8(Q.distinctId)})};return _8(Q)}function f8(Q){if(!Q)return[];return(Array.isArray(Q)?Q:Q.split(",")).map((G)=>G.trim()).filter((G)=>G==="console"||G==="otlp")}function Pt(Q,Y){if(Q==="console")return new t1.ConsoleLogRecordExporter;if(!Y.endpoint)return null;let G=y8(Y.endpoint,"/v1/logs");return new fL.OTLPLogExporter({url:G,headers:Y.headers})}function wt(Q,Y){if(Q==="console")return new r1.SimpleSpanProcessor(new r1.ConsoleSpanExporter);if(!Y.endpoint)return null;let G=y8(Y.endpoint,"/v1/traces");return new r1.BatchSpanProcessor(new yL.OTLPTraceExporter({url:G,headers:Y.headers}))}function Rt(Q,Y){if(Q==="console")return new E1.PeriodicExportingMetricReader({exporter:new E1.ConsoleMetricExporter,exportIntervalMillis:Y.interval,exportTimeoutMillis:Y.timeout});if(!Y.endpoint)return null;let G=y8(Y.endpoint,"/v1/metrics");return new E1.PeriodicExportingMetricReader({exporter:new _L.OTLPMetricExporter({url:G,headers:Y.headers}),exportIntervalMillis:Y.interval,exportTimeoutMillis:Y.timeout})}function y8(Q,Y){let G=new URL(Q),K=G.pathname.endsWith("/")?G.pathname.slice(0,-1):G.pathname;return G.pathname=K.endsWith(Y)?K:`${K}${Y}`,G.toString()}var EJ,SL,fL,_L,yL,vL,t1,E1,r1,xL,TJ;var bL=M1(()=>{kL();$L();EJ=o(T(),1),SL=o($1(),1),fL=o($A(),1),_L=o(nA(),1),yL=o(rA(),1),vL=o(S6(),1),t1=o(GT(),1),E1=o(gZ(),1),r1=o(BJ(),1),xL=o(zL(),1),TJ=o(X1(),1)});var kt={};aL(kt,{createOpenTelemetryTelemetryService:()=>_8,createConfiguredTelemetryService:()=>jL,OpenTelemetryProvider:()=>hJ,OpenTelemetryAdapter:()=>Q6});var $t=M1(()=>{bL()});$t();export{_8 as createOpenTelemetryTelemetryService,jL as createConfiguredTelemetryService,hJ as OpenTelemetryProvider,Q6 as OpenTelemetryAdapter};
|