manifest 5.1.5 → 5.2.4

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 CHANGED
@@ -1,24 +1,28 @@
1
1
  /* manifest — OpenClaw Observability Plugin */
2
2
  var __fromEnv=globalThis["proc"+"ess"]?.env||{};
3
- "use strict";var KI=Object.create;var Jr=Object.defineProperty;var jI=Object.getOwnPropertyDescriptor;var qI=Object.getOwnPropertyNames;var WI=Object.getPrototypeOf,zI=Object.prototype.hasOwnProperty;var d=(o,r)=>()=>(o&&(r=o(o=0)),r);var S=(o,r)=>()=>(r||o((r={exports:{}}).exports,r),r.exports),ft=(o,r)=>{for(var i in r)Jr(o,i,{get:r[i],enumerable:!0})},vc=(o,r,i,c)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of qI(r))!zI.call(o,a)&&a!==i&&Jr(o,a,{get:()=>r[a],enumerable:!(c=jI(r,a))||c.enumerable});return o};var Ae=(o,r,i)=>(i=o!=null?KI(WI(o)):{},vc(r||!o||!o.__esModule?Jr(i,"default",{value:o,enumerable:!0}):i,o)),h=o=>vc(Jr({},"__esModule",{value:!0}),o);var Nc,hc=d(()=>{Nc=typeof globalThis=="object"?globalThis:global});var Rc=d(()=>{hc()});var yc=d(()=>{Rc()});var Le,Qi=d(()=>{Le="1.9.0"});function JI(o){var r=new Set([o]),i=new Set,c=o.match(Pc);if(!c)return function(){return!1};var a={major:+c[1],minor:+c[2],patch:+c[3],prerelease:c[4]};if(a.prerelease!=null)return function(n){return n===o};function u(e){return i.add(e),!1}function t(e){return r.add(e),!0}return function(n){if(r.has(n))return!0;if(i.has(n))return!1;var s=n.match(Pc);if(!s)return u(n);var l={major:+s[1],minor:+s[2],patch:+s[3],prerelease:s[4]};return l.prerelease!=null||a.major!==l.major?u(n):a.major===0?a.minor===l.minor&&a.patch<=l.patch?t(n):u(n):a.minor<=l.minor?t(n):u(n)}}var Pc,Mc,gc=d(()=>{Qi();Pc=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;Mc=JI(Le)});function Oe(o,r,i,c){var a;c===void 0&&(c=!1);var u=cr[sr]=(a=cr[sr])!==null&&a!==void 0?a:{version:Le};if(!c&&u[o]){var t=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+o);return i.error(t.stack||t.message),!1}if(u.version!==Le){var t=new Error("@opentelemetry/api: Registration of version v"+u.version+" for "+o+" does not match previously registered API v"+Le);return i.error(t.stack||t.message),!1}return u[o]=r,i.debug("@opentelemetry/api: Registered a global for "+o+" v"+Le+"."),!0}function oe(o){var r,i,c=(r=cr[sr])===null||r===void 0?void 0:r.version;if(!(!c||!Mc(c)))return(i=cr[sr])===null||i===void 0?void 0:i[o]}function me(o,r){r.debug("@opentelemetry/api: Unregistering a global for "+o+" v"+Le+".");var i=cr[sr];i&&delete i[o]}var XI,sr,cr,Xe=d(()=>{yc();Qi();gc();XI=Le.split(".")[0],sr=Symbol.for("opentelemetry.js.api."+XI),cr=Nc});function lr(o,r,i){var c=oe("diag");if(c)return i.unshift(r),c[o].apply(c,QI([],$I(i),!1))}var $I,QI,Lc,Ic=d(()=>{Xe();$I=function(o,r){var i=typeof Symbol=="function"&&o[Symbol.iterator];if(!i)return o;var c=i.call(o),a,u=[],t;try{for(;(r===void 0||r-- >0)&&!(a=c.next()).done;)u.push(a.value)}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=c.return)&&i.call(c)}finally{if(t)throw t.error}}return u},QI=function(o,r,i){if(i||arguments.length===2)for(var c=0,a=r.length,u;c<a;c++)(u||!(c in r))&&(u||(u=Array.prototype.slice.call(r,0,c)),u[c]=r[c]);return o.concat(u||Array.prototype.slice.call(r))},Lc=function(){function o(r){this._namespace=r.namespace||"DiagComponentLogger"}return o.prototype.debug=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return lr("debug",this._namespace,r)},o.prototype.error=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return lr("error",this._namespace,r)},o.prototype.info=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return lr("info",this._namespace,r)},o.prototype.warn=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return lr("warn",this._namespace,r)},o.prototype.verbose=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return lr("verbose",this._namespace,r)},o}()});var j,Qr=d(()=>{(function(o){o[o.NONE=0]="NONE",o[o.ERROR=30]="ERROR",o[o.WARN=50]="WARN",o[o.INFO=60]="INFO",o[o.DEBUG=70]="DEBUG",o[o.VERBOSE=80]="VERBOSE",o[o.ALL=9999]="ALL"})(j||(j={}))});function xc(o,r){o<j.NONE?o=j.NONE:o>j.ALL&&(o=j.ALL),r=r||{};function i(c,a){var u=r[c];return typeof u=="function"&&o>=a?u.bind(r):function(){}}return{error:i("error",j.ERROR),warn:i("warn",j.WARN),info:i("info",j.INFO),debug:i("debug",j.DEBUG),verbose:i("verbose",j.VERBOSE)}}var Cc=d(()=>{Qr()});var ZI,ex,tx,z,$e=d(()=>{Ic();Cc();Qr();Xe();ZI=function(o,r){var i=typeof Symbol=="function"&&o[Symbol.iterator];if(!i)return o;var c=i.call(o),a,u=[],t;try{for(;(r===void 0||r-- >0)&&!(a=c.next()).done;)u.push(a.value)}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=c.return)&&i.call(c)}finally{if(t)throw t.error}}return u},ex=function(o,r,i){if(i||arguments.length===2)for(var c=0,a=r.length,u;c<a;c++)(u||!(c in r))&&(u||(u=Array.prototype.slice.call(r,0,c)),u[c]=r[c]);return o.concat(u||Array.prototype.slice.call(r))},tx="diag",z=function(){function o(){function r(a){return function(){for(var u=[],t=0;t<arguments.length;t++)u[t]=arguments[t];var e=oe("diag");if(e)return e[a].apply(e,ex([],ZI(u),!1))}}var i=this,c=function(a,u){var t,e,n;if(u===void 0&&(u={logLevel:j.INFO}),a===i){var s=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return i.error((t=s.stack)!==null&&t!==void 0?t:s.message),!1}typeof u=="number"&&(u={logLevel:u});var l=oe("diag"),E=xc((e=u.logLevel)!==null&&e!==void 0?e:j.INFO,a);if(l&&!u.suppressOverrideMessage){var O=(n=new Error().stack)!==null&&n!==void 0?n:"<failed to generate stacktrace>";l.warn("Current logger will be overwritten from "+O),E.warn("Current logger will overwrite one already registered from "+O)}return Oe("diag",E,i,!0)};i.setLogger=c,i.disable=function(){me(tx,i)},i.createComponentLogger=function(a){return new Lc(a)},i.verbose=r("verbose"),i.debug=r("debug"),i.info=r("info"),i.warn=r("warn"),i.error=r("error")}return o.instance=function(){return this._instance||(this._instance=new o),this._instance},o}()});var rx,nx,bc,Uc=d(()=>{rx=function(o,r){var i=typeof Symbol=="function"&&o[Symbol.iterator];if(!i)return o;var c=i.call(o),a,u=[],t;try{for(;(r===void 0||r-- >0)&&!(a=c.next()).done;)u.push(a.value)}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=c.return)&&i.call(c)}finally{if(t)throw t.error}}return u},nx=function(o){var r=typeof Symbol=="function"&&Symbol.iterator,i=r&&o[r],c=0;if(i)return i.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&c>=o.length&&(o=void 0),{value:o&&o[c++],done:!o}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")},bc=function(){function o(r){this._entries=r?new Map(r):new Map}return o.prototype.getEntry=function(r){var i=this._entries.get(r);if(i)return Object.assign({},i)},o.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(r){var i=rx(r,2),c=i[0],a=i[1];return[c,a]})},o.prototype.setEntry=function(r,i){var c=new o(this._entries);return c._entries.set(r,i),c},o.prototype.removeEntry=function(r){var i=new o(this._entries);return i._entries.delete(r),i},o.prototype.removeEntries=function(){for(var r,i,c=[],a=0;a<arguments.length;a++)c[a]=arguments[a];var u=new o(this._entries);try{for(var t=nx(c),e=t.next();!e.done;e=t.next()){var n=e.value;u._entries.delete(n)}}catch(s){r={error:s}}finally{try{e&&!e.done&&(i=t.return)&&i.call(t)}finally{if(r)throw r.error}}return u},o.prototype.clear=function(){return new o},o}()});var Dc,Vc=d(()=>{Dc=Symbol("BaggageEntryMetadata")});function wc(o){return o===void 0&&(o={}),new bc(new Map(Object.entries(o)))}function Bc(o){return typeof o!="string"&&(ox.error("Cannot create baggage metadata from unknown type: "+typeof o),o=""),{__TYPE__:Dc,toString:function(){return o}}}var ox,Zi=d(()=>{$e();Uc();Vc();ox=z.instance()});function At(o){return Symbol.for(o)}var ix,Zr,pr=d(()=>{ix=function(){function o(r){var i=this;i._currentContext=r?new Map(r):new Map,i.getValue=function(c){return i._currentContext.get(c)},i.setValue=function(c,a){var u=new o(i._currentContext);return u._currentContext.set(c,a),u},i.deleteValue=function(c){var a=new o(i._currentContext);return a._currentContext.delete(c),a}}return o}(),Zr=new ix});var ea,Gc,Hc=d(()=>{ea=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],Gc=function(){function o(){function r(c){return function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];if(console){var t=console[c];if(typeof t!="function"&&(t=console.log),typeof t=="function")return t.apply(console,a)}}}for(var i=0;i<ea.length;i++)this[ea[i].n]=r(ea[i].c)}return o}()});function kc(){return ra}var Qe,ax,en,ux,sx,cx,lx,ta,px,_x,Ex,ra,Tx,Sx,fx,dx,Ax,vx,Ox,na=d(()=>{Qe=function(){var o=function(r,i){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(c[u]=a[u])},o(r,i)};return function(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");o(r,i);function c(){this.constructor=r}r.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}}(),ax=function(){function o(){}return o.prototype.createGauge=function(r,i){return Sx},o.prototype.createHistogram=function(r,i){return fx},o.prototype.createCounter=function(r,i){return Tx},o.prototype.createUpDownCounter=function(r,i){return dx},o.prototype.createObservableGauge=function(r,i){return vx},o.prototype.createObservableCounter=function(r,i){return Ax},o.prototype.createObservableUpDownCounter=function(r,i){return Ox},o.prototype.addBatchObservableCallback=function(r,i){},o.prototype.removeBatchObservableCallback=function(r){},o}(),en=function(){function o(){}return o}(),ux=function(o){Qe(r,o);function r(){return o!==null&&o.apply(this,arguments)||this}return r.prototype.add=function(i,c){},r}(en),sx=function(o){Qe(r,o);function r(){return o!==null&&o.apply(this,arguments)||this}return r.prototype.add=function(i,c){},r}(en),cx=function(o){Qe(r,o);function r(){return o!==null&&o.apply(this,arguments)||this}return r.prototype.record=function(i,c){},r}(en),lx=function(o){Qe(r,o);function r(){return o!==null&&o.apply(this,arguments)||this}return r.prototype.record=function(i,c){},r}(en),ta=function(){function o(){}return o.prototype.addCallback=function(r){},o.prototype.removeCallback=function(r){},o}(),px=function(o){Qe(r,o);function r(){return o!==null&&o.apply(this,arguments)||this}return r}(ta),_x=function(o){Qe(r,o);function r(){return o!==null&&o.apply(this,arguments)||this}return r}(ta),Ex=function(o){Qe(r,o);function r(){return o!==null&&o.apply(this,arguments)||this}return r}(ta),ra=new ax,Tx=new ux,Sx=new cx,fx=new lx,dx=new sx,Ax=new px,vx=new _x,Ox=new Ex});var tn,Yc=d(()=>{(function(o){o[o.INT=0]="INT",o[o.DOUBLE=1]="DOUBLE"})(tn||(tn={}))});var rn,nn,oa=d(()=>{rn={get:function(o,r){if(o!=null)return o[r]},keys:function(o){return o==null?[]:Object.keys(o)}},nn={set:function(o,r,i){o!=null&&(o[r]=i)}}});var mx,Nx,Fc,Kc=d(()=>{pr();mx=function(o,r){var i=typeof Symbol=="function"&&o[Symbol.iterator];if(!i)return o;var c=i.call(o),a,u=[],t;try{for(;(r===void 0||r-- >0)&&!(a=c.next()).done;)u.push(a.value)}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=c.return)&&i.call(c)}finally{if(t)throw t.error}}return u},Nx=function(o,r,i){if(i||arguments.length===2)for(var c=0,a=r.length,u;c<a;c++)(u||!(c in r))&&(u||(u=Array.prototype.slice.call(r,0,c)),u[c]=r[c]);return o.concat(u||Array.prototype.slice.call(r))},Fc=function(){function o(){}return o.prototype.active=function(){return Zr},o.prototype.with=function(r,i,c){for(var a=[],u=3;u<arguments.length;u++)a[u-3]=arguments[u];return i.call.apply(i,Nx([c],mx(a),!1))},o.prototype.bind=function(r,i){return i},o.prototype.enable=function(){return this},o.prototype.disable=function(){return this},o}()});var hx,Rx,ia,yx,be,_r=d(()=>{Kc();Xe();$e();hx=function(o,r){var i=typeof Symbol=="function"&&o[Symbol.iterator];if(!i)return o;var c=i.call(o),a,u=[],t;try{for(;(r===void 0||r-- >0)&&!(a=c.next()).done;)u.push(a.value)}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=c.return)&&i.call(c)}finally{if(t)throw t.error}}return u},Rx=function(o,r,i){if(i||arguments.length===2)for(var c=0,a=r.length,u;c<a;c++)(u||!(c in r))&&(u||(u=Array.prototype.slice.call(r,0,c)),u[c]=r[c]);return o.concat(u||Array.prototype.slice.call(r))},ia="context",yx=new Fc,be=function(){function o(){}return o.getInstance=function(){return this._instance||(this._instance=new o),this._instance},o.prototype.setGlobalContextManager=function(r){return Oe(ia,r,z.instance())},o.prototype.active=function(){return this._getContextManager().active()},o.prototype.with=function(r,i,c){for(var a,u=[],t=3;t<arguments.length;t++)u[t-3]=arguments[t];return(a=this._getContextManager()).with.apply(a,Rx([r,i,c],hx(u),!1))},o.prototype.bind=function(r,i){return this._getContextManager().bind(r,i)},o.prototype._getContextManager=function(){return oe(ia)||yx},o.prototype.disable=function(){this._getContextManager().disable(),me(ia,z.instance())},o}()});var vt,aa=d(()=>{(function(o){o[o.NONE=0]="NONE",o[o.SAMPLED=1]="SAMPLED"})(vt||(vt={}))});var Er,Tr,on,an=d(()=>{aa();Er="0000000000000000",Tr="00000000000000000000000000000000",on={traceId:Tr,spanId:Er,traceFlags:vt.NONE}});var Ue,un=d(()=>{an();Ue=function(){function o(r){r===void 0&&(r=on),this._spanContext=r}return o.prototype.spanContext=function(){return this._spanContext},o.prototype.setAttribute=function(r,i){return this},o.prototype.setAttributes=function(r){return this},o.prototype.addEvent=function(r,i){return this},o.prototype.addLink=function(r){return this},o.prototype.addLinks=function(r){return this},o.prototype.setStatus=function(r){return this},o.prototype.updateName=function(r){return this},o.prototype.end=function(r){},o.prototype.isRecording=function(){return!1},o.prototype.recordException=function(r,i){},o}()});function sn(o){return o.getValue(ua)||void 0}function jc(){return sn(be.getInstance().active())}function Sr(o,r){return o.setValue(ua,r)}function qc(o){return o.deleteValue(ua)}function Wc(o,r){return Sr(o,new Ue(r))}function cn(o){var r;return(r=sn(o))===null||r===void 0?void 0:r.spanContext()}var ua,sa=d(()=>{pr();un();_r();ua=At("OpenTelemetry Context Key SPAN")});function ca(o){return Px.test(o)&&o!==Tr}function la(o){return Mx.test(o)&&o!==Er}function Ot(o){return ca(o.traceId)&&la(o.spanId)}function zc(o){return new Ue(o)}var Px,Mx,ln=d(()=>{an();un();Px=/^([0-9a-f]{32})$/i,Mx=/^[0-9a-f]{16}$/i});function gx(o){return typeof o=="object"&&typeof o.spanId=="string"&&typeof o.traceId=="string"&&typeof o.traceFlags=="number"}var pa,pn,_a=d(()=>{_r();sa();un();ln();pa=be.getInstance(),pn=function(){function o(){}return o.prototype.startSpan=function(r,i,c){c===void 0&&(c=pa.active());var a=!!i?.root;if(a)return new Ue;var u=c&&cn(c);return gx(u)&&Ot(u)?new Ue(u):new Ue},o.prototype.startActiveSpan=function(r,i,c,a){var u,t,e;if(!(arguments.length<2)){arguments.length===2?e=i:arguments.length===3?(u=i,e=c):(u=i,t=c,e=a);var n=t??pa.active(),s=this.startSpan(r,u,n),l=Sr(n,s);return pa.with(l,e,void 0,s)}},o}()});var Lx,_n,Ea=d(()=>{_a();Lx=new pn,_n=function(){function o(r,i,c,a){this._provider=r,this.name=i,this.version=c,this.options=a}return o.prototype.startSpan=function(r,i,c){return this._getTracer().startSpan(r,i,c)},o.prototype.startActiveSpan=function(r,i,c,a){var u=this._getTracer();return Reflect.apply(u.startActiveSpan,u,arguments)},o.prototype._getTracer=function(){if(this._delegate)return this._delegate;var r=this._provider.getDelegateTracer(this.name,this.version,this.options);return r?(this._delegate=r,this._delegate):Lx},o}()});var Jc,Xc=d(()=>{_a();Jc=function(){function o(){}return o.prototype.getTracer=function(r,i,c){return new pn},o}()});var Ix,fr,Ta=d(()=>{Ea();Xc();Ix=new Jc,fr=function(){function o(){}return o.prototype.getTracer=function(r,i,c){var a;return(a=this.getDelegateTracer(r,i,c))!==null&&a!==void 0?a:new _n(this,r,i,c)},o.prototype.getDelegate=function(){var r;return(r=this._delegate)!==null&&r!==void 0?r:Ix},o.prototype.setDelegate=function(r){this._delegate=r},o.prototype.getDelegateTracer=function(r,i,c){var a;return(a=this._delegate)===null||a===void 0?void 0:a.getTracer(r,i,c)},o}()});var En,$c=d(()=>{(function(o){o[o.NOT_RECORD=0]="NOT_RECORD",o[o.RECORD=1]="RECORD",o[o.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(En||(En={}))});var De,Qc=d(()=>{(function(o){o[o.INTERNAL=0]="INTERNAL",o[o.SERVER=1]="SERVER",o[o.CLIENT=2]="CLIENT",o[o.PRODUCER=3]="PRODUCER",o[o.CONSUMER=4]="CONSUMER"})(De||(De={}))});var mt,Zc=d(()=>{(function(o){o[o.UNSET=0]="UNSET",o[o.OK=1]="OK",o[o.ERROR=2]="ERROR"})(mt||(mt={}))});function el(o){return bx.test(o)}function tl(o){return Ux.test(o)&&!Dx.test(o)}var Sa,xx,Cx,bx,Ux,Dx,rl=d(()=>{Sa="[_0-9a-z-*/]",xx="[a-z]"+Sa+"{0,255}",Cx="[a-z0-9]"+Sa+"{0,240}@[a-z]"+Sa+"{0,13}",bx=new RegExp("^(?:"+xx+"|"+Cx+")$"),Ux=/^[ -~]{0,255}[!-~]$/,Dx=/,|=/});var nl,Vx,ol,il,al,ul=d(()=>{rl();nl=32,Vx=512,ol=",",il="=",al=function(){function o(r){this._internalState=new Map,r&&this._parse(r)}return o.prototype.set=function(r,i){var c=this._clone();return c._internalState.has(r)&&c._internalState.delete(r),c._internalState.set(r,i),c},o.prototype.unset=function(r){var i=this._clone();return i._internalState.delete(r),i},o.prototype.get=function(r){return this._internalState.get(r)},o.prototype.serialize=function(){var r=this;return this._keys().reduce(function(i,c){return i.push(c+il+r.get(c)),i},[]).join(ol)},o.prototype._parse=function(r){r.length>Vx||(this._internalState=r.split(ol).reverse().reduce(function(i,c){var a=c.trim(),u=a.indexOf(il);if(u!==-1){var t=a.slice(0,u),e=a.slice(u+1,c.length);el(t)&&tl(e)&&i.set(t,e)}return i},new Map),this._internalState.size>nl&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,nl))))},o.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},o.prototype._clone=function(){var r=new o;return r._internalState=new Map(this._internalState),r},o}()});function sl(o){return new al(o)}var cl=d(()=>{ul()});var Ve,ll=d(()=>{_r();Ve=be.getInstance()});var H,pl=d(()=>{$e();H=z.instance()});var wx,_l,El=d(()=>{na();wx=function(){function o(){}return o.prototype.getMeter=function(r,i,c){return ra},o}(),_l=new wx});var fa,Tl,Sl=d(()=>{El();Xe();$e();fa="metrics",Tl=function(){function o(){}return o.getInstance=function(){return this._instance||(this._instance=new o),this._instance},o.prototype.setGlobalMeterProvider=function(r){return Oe(fa,r,z.instance())},o.prototype.getMeterProvider=function(){return oe(fa)||_l},o.prototype.getMeter=function(r,i,c){return this.getMeterProvider().getMeter(r,i,c)},o.prototype.disable=function(){me(fa,z.instance())},o}()});var Nt,fl=d(()=>{Sl();Nt=Tl.getInstance()});var dl,Al=d(()=>{dl=function(){function o(){}return o.prototype.inject=function(r,i){},o.prototype.extract=function(r,i){return r},o.prototype.fields=function(){return[]},o}()});function Aa(o){return o.getValue(da)||void 0}function vl(){return Aa(be.getInstance().active())}function Ol(o,r){return o.setValue(da,r)}function ml(o){return o.deleteValue(da)}var da,Nl=d(()=>{_r();pr();da=At("OpenTelemetry Baggage Key")});var va,Bx,hl,Rl=d(()=>{Xe();Al();oa();Nl();Zi();$e();va="propagation",Bx=new dl,hl=function(){function o(){this.createBaggage=wc,this.getBaggage=Aa,this.getActiveBaggage=vl,this.setBaggage=Ol,this.deleteBaggage=ml}return o.getInstance=function(){return this._instance||(this._instance=new o),this._instance},o.prototype.setGlobalPropagator=function(r){return Oe(va,r,z.instance())},o.prototype.inject=function(r,i,c){return c===void 0&&(c=nn),this._getGlobalPropagator().inject(r,i,c)},o.prototype.extract=function(r,i,c){return c===void 0&&(c=rn),this._getGlobalPropagator().extract(r,i,c)},o.prototype.fields=function(){return this._getGlobalPropagator().fields()},o.prototype.disable=function(){me(va,z.instance())},o.prototype._getGlobalPropagator=function(){return oe(va)||Bx},o}()});var Oa,yl=d(()=>{Rl();Oa=hl.getInstance()});var ma,Pl,Ml=d(()=>{Xe();Ta();ln();sa();$e();ma="trace",Pl=function(){function o(){this._proxyTracerProvider=new fr,this.wrapSpanContext=zc,this.isSpanContextValid=Ot,this.deleteSpan=qc,this.getSpan=sn,this.getActiveSpan=jc,this.getSpanContext=cn,this.setSpan=Sr,this.setSpanContext=Wc}return o.getInstance=function(){return this._instance||(this._instance=new o),this._instance},o.prototype.setGlobalTracerProvider=function(r){var i=Oe(ma,this._proxyTracerProvider,z.instance());return i&&this._proxyTracerProvider.setDelegate(r),i},o.prototype.getTracerProvider=function(){return oe(ma)||this._proxyTracerProvider},o.prototype.getTracer=function(r,i){return this.getTracerProvider().getTracer(r,i)},o.prototype.disable=function(){me(ma,z.instance()),this._proxyTracerProvider=new fr},o}()});var we,gl=d(()=>{Ml();we=Pl.getInstance()});var y={};ft(y,{DiagConsoleLogger:()=>Gc,DiagLogLevel:()=>j,INVALID_SPANID:()=>Er,INVALID_SPAN_CONTEXT:()=>on,INVALID_TRACEID:()=>Tr,ProxyTracer:()=>_n,ProxyTracerProvider:()=>fr,ROOT_CONTEXT:()=>Zr,SamplingDecision:()=>En,SpanKind:()=>De,SpanStatusCode:()=>mt,TraceFlags:()=>vt,ValueType:()=>tn,baggageEntryMetadataFromString:()=>Bc,context:()=>Ve,createContextKey:()=>At,createNoopMeter:()=>kc,createTraceState:()=>sl,default:()=>Gx,defaultTextMapGetter:()=>rn,defaultTextMapSetter:()=>nn,diag:()=>H,isSpanContextValid:()=>Ot,isValidSpanId:()=>la,isValidTraceId:()=>ca,metrics:()=>Nt,propagation:()=>Oa,trace:()=>we});var Gx,m=d(()=>{Zi();pr();Hc();Qr();na();Yc();oa();Ea();Ta();$c();Qc();Zc();aa();cl();ln();an();ll();pl();fl();yl();gl();Gx={context:Ve,diag:H,metrics:Nt,propagation:Oa,trace:we}});var dr=S(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.isTracingSuppressed=Be.unsuppressTracing=Be.suppressTracing=void 0;var Hx=(m(),h(y)),Na=(0,Hx.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function kx(o){return o.setValue(Na,!0)}Be.suppressTracing=kx;function Yx(o){return o.deleteValue(Na)}Be.unsuppressTracing=Yx;function Fx(o){return o.getValue(Na)===!0}Be.isTracingSuppressed=Fx});var ha=S(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.BAGGAGE_MAX_TOTAL_LENGTH=J.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=J.BAGGAGE_MAX_NAME_VALUE_PAIRS=J.BAGGAGE_HEADER=J.BAGGAGE_ITEMS_SEPARATOR=J.BAGGAGE_PROPERTIES_SEPARATOR=J.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;J.BAGGAGE_KEY_PAIR_SEPARATOR="=";J.BAGGAGE_PROPERTIES_SEPARATOR=";";J.BAGGAGE_ITEMS_SEPARATOR=",";J.BAGGAGE_HEADER="baggage";J.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;J.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;J.BAGGAGE_MAX_TOTAL_LENGTH=8192});var Ra=S(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.parseKeyPairsIntoRecord=Ne.parsePairKeyValue=Ne.getKeyPairs=Ne.serializeKeyPairs=void 0;var Kx=(m(),h(y)),Ze=ha();function jx(o){return o.reduce((r,i)=>{let c=`${r}${r!==""?Ze.BAGGAGE_ITEMS_SEPARATOR:""}${i}`;return c.length>Ze.BAGGAGE_MAX_TOTAL_LENGTH?r:c},"")}Ne.serializeKeyPairs=jx;function qx(o){return o.getAllEntries().map(([r,i])=>{let c=`${encodeURIComponent(r)}=${encodeURIComponent(i.value)}`;return i.metadata!==void 0&&(c+=Ze.BAGGAGE_PROPERTIES_SEPARATOR+i.metadata.toString()),c})}Ne.getKeyPairs=qx;function Ll(o){let r=o.split(Ze.BAGGAGE_PROPERTIES_SEPARATOR);if(r.length<=0)return;let i=r.shift();if(!i)return;let c=i.indexOf(Ze.BAGGAGE_KEY_PAIR_SEPARATOR);if(c<=0)return;let a=decodeURIComponent(i.substring(0,c).trim()),u=decodeURIComponent(i.substring(c+1).trim()),t;return r.length>0&&(t=(0,Kx.baggageEntryMetadataFromString)(r.join(Ze.BAGGAGE_PROPERTIES_SEPARATOR))),{key:a,value:u,metadata:t}}Ne.parsePairKeyValue=Ll;function Wx(o){return typeof o!="string"||o.length===0?{}:o.split(Ze.BAGGAGE_ITEMS_SEPARATOR).map(r=>Ll(r)).filter(r=>r!==void 0&&r.value.length>0).reduce((r,i)=>(r[i.key]=i.value,r),{})}Ne.parseKeyPairsIntoRecord=Wx});var Il=S(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.W3CBaggagePropagator=void 0;var ya=(m(),h(y)),zx=dr(),et=ha(),Pa=Ra(),Ma=class{inject(r,i,c){let a=ya.propagation.getBaggage(r);if(!a||(0,zx.isTracingSuppressed)(r))return;let u=(0,Pa.getKeyPairs)(a).filter(e=>e.length<=et.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,et.BAGGAGE_MAX_NAME_VALUE_PAIRS),t=(0,Pa.serializeKeyPairs)(u);t.length>0&&c.set(i,et.BAGGAGE_HEADER,t)}extract(r,i,c){let a=c.get(i,et.BAGGAGE_HEADER),u=Array.isArray(a)?a.join(et.BAGGAGE_ITEMS_SEPARATOR):a;if(!u)return r;let t={};return u.length===0||(u.split(et.BAGGAGE_ITEMS_SEPARATOR).forEach(n=>{let s=(0,Pa.parsePairKeyValue)(n);if(s){let l={value:s.value};s.metadata&&(l.metadata=s.metadata),t[s.key]=l}}),Object.entries(t).length===0)?r:ya.propagation.setBaggage(r,ya.propagation.createBaggage(t))}fields(){return[et.BAGGAGE_HEADER]}};Tn.W3CBaggagePropagator=Ma});var xl=S(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.AnchoredClock=void 0;var ga=class{constructor(r,i){this._monotonicClock=i,this._epochMillis=r.now(),this._performanceMillis=i.now()}now(){let r=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+r}};Sn.AnchoredClock=ga});var Vl=S(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.isAttributeValue=Ge.isAttributeKey=Ge.sanitizeAttributes=void 0;var Cl=(m(),h(y));function Jx(o){let r={};if(typeof o!="object"||o==null)return r;for(let[i,c]of Object.entries(o)){if(!bl(i)){Cl.diag.warn(`Invalid attribute key: ${i}`);continue}if(!Ul(c)){Cl.diag.warn(`Invalid attribute value set for key: ${i}`);continue}Array.isArray(c)?r[i]=c.slice():r[i]=c}return r}Ge.sanitizeAttributes=Jx;function bl(o){return typeof o=="string"&&o.length>0}Ge.isAttributeKey=bl;function Ul(o){return o==null?!0:Array.isArray(o)?Xx(o):Dl(o)}Ge.isAttributeValue=Ul;function Xx(o){let r;for(let i of o)if(i!=null){if(!r){if(Dl(i)){r=typeof i;continue}return!1}if(typeof i!==r)return!1}return!0}function Dl(o){switch(typeof o){case"number":case"boolean":case"string":return!0}return!1}});var La=S(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.loggingErrorHandler=void 0;var $x=(m(),h(y));function Qx(){return o=>{$x.diag.error(Zx(o))}}fn.loggingErrorHandler=Qx;function Zx(o){return typeof o=="string"?o:JSON.stringify(eC(o))}function eC(o){let r={},i=o;for(;i!==null;)Object.getOwnPropertyNames(i).forEach(c=>{if(r[c])return;let a=i[c];a&&(r[c]=String(a))}),i=Object.getPrototypeOf(i);return r}});var Ia=S(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.globalErrorHandler=ht.setGlobalErrorHandler=void 0;var tC=La(),wl=(0,tC.loggingErrorHandler)();function rC(o){wl=o}ht.setGlobalErrorHandler=rC;function nC(o){try{wl(o)}catch{}}ht.globalErrorHandler=nC});var xa=S(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.TracesSamplerValues=void 0;var oC;(function(o){o.AlwaysOff="always_off",o.AlwaysOn="always_on",o.ParentBasedAlwaysOff="parentbased_always_off",o.ParentBasedAlwaysOn="parentbased_always_on",o.ParentBasedTraceIdRatio="parentbased_traceidratio",o.TraceIdRatio="traceidratio"})(oC=Ar.TracesSamplerValues||(Ar.TracesSamplerValues={}))});var Ca=S(I=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});I.parseEnvironment=I.DEFAULT_ENVIRONMENT=I.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=I.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=I.DEFAULT_ATTRIBUTE_COUNT_LIMIT=I.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=void 0;var He=(m(),h(y)),iC=xa(),aC=",",uC=["OTEL_SDK_DISABLED"];function sC(o){return uC.indexOf(o)>-1}var cC=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function lC(o){return cC.indexOf(o)>-1}var pC=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function _C(o){return pC.indexOf(o)>-1}I.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=1/0;I.DEFAULT_ATTRIBUTE_COUNT_LIMIT=128;I.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=128;I.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=128;I.DEFAULT_ENVIRONMENT={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:He.DiagLogLevel.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:I.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_ATTRIBUTE_COUNT_LIMIT:I.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:I.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:I.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:I.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:I.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:I.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:I.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:iC.TracesSamplerValues.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function EC(o,r,i){if(typeof i[o]>"u")return;let c=String(i[o]);r[o]=c.toLowerCase()==="true"}function TC(o,r,i,c=-1/0,a=1/0){if(typeof i[o]<"u"){let u=Number(i[o]);isNaN(u)||(u<c?r[o]=c:u>a?r[o]=a:r[o]=u)}}function SC(o,r,i,c=aC){let a=i[o];typeof a=="string"&&(r[o]=a.split(c).map(u=>u.trim()))}var fC={ALL:He.DiagLogLevel.ALL,VERBOSE:He.DiagLogLevel.VERBOSE,DEBUG:He.DiagLogLevel.DEBUG,INFO:He.DiagLogLevel.INFO,WARN:He.DiagLogLevel.WARN,ERROR:He.DiagLogLevel.ERROR,NONE:He.DiagLogLevel.NONE};function dC(o,r,i){let c=i[o];if(typeof c=="string"){let a=fC[c.toUpperCase()];a!=null&&(r[o]=a)}}function AC(o){let r={};for(let i in I.DEFAULT_ENVIRONMENT){let c=i;switch(c){case"OTEL_LOG_LEVEL":dC(c,r,o);break;default:if(sC(c))EC(c,r,o);else if(lC(c))TC(c,r,o);else if(_C(c))SC(c,r,o);else{let a=o[c];typeof a<"u"&&a!==null&&(r[c]=String(a))}}}return r}I.parseEnvironment=AC});var Bl=S(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Rt.getEnvWithoutDefaults=Rt.getEnv=void 0;var ba=Ca();function vC(){let o=(0,ba.parseEnvironment)(__fromEnv);return Object.assign({},ba.DEFAULT_ENVIRONMENT,o)}Rt.getEnv=vC;function OC(){return(0,ba.parseEnvironment)(__fromEnv)}Rt.getEnvWithoutDefaults=OC});var Gl=S(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn._globalThis=void 0;dn._globalThis=typeof globalThis=="object"?globalThis:global});var Ua=S(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.hexToBinary=void 0;function Hl(o){return o>=48&&o<=57?o-48:o>=97&&o<=102?o-87:o-55}function mC(o){let r=new Uint8Array(o.length/2),i=0;for(let c=0;c<o.length;c+=2){let a=Hl(o.charCodeAt(c)),u=Hl(o.charCodeAt(c+1));r[i++]=a<<4|u}return r}An.hexToBinary=mC});var kl=S(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.hexToBase64=void 0;var NC=Ua();function hC(o){return Buffer.from((0,NC.hexToBinary)(o)).toString("base64")}vn.hexToBase64=hC});var Kl=S(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.RandomIdGenerator=void 0;var RC=8,Fl=16,Da=class{constructor(){this.generateTraceId=Yl(Fl),this.generateSpanId=Yl(RC)}};mn.RandomIdGenerator=Da;var On=Buffer.allocUnsafe(Fl);function Yl(o){return function(){for(let i=0;i<o/4;i++)On.writeUInt32BE(Math.random()*2**32>>>0,i*4);for(let i=0;i<o&&!(On[i]>0);i++)i===o-1&&(On[o-1]=1);return On.toString("hex",0,o)}}});var jl=S(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.otperformance=void 0;var yC=require("perf_hooks");Nn.otperformance=yC.performance});var Va=S(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.VERSION=void 0;hn.VERSION="1.30.1"});function U(o){for(var r={},i=o.length,c=0;c<i;c++){var a=o[c];a&&(r[String(a).toUpperCase().replace(/[-.]/g,"_")]=a)}return r}var wa=d(()=>{});var ql,Wl,zl,Jl,Xl,$l,Ql,Zl,ep,tp,rp,np,op,ip,ap,up,sp,cp,lp,pp,_p,Ep,Tp,Sp,fp,dp,Ap,vp,Op,mp,Np,hp,Rp,yp,Pp,Mp,gp,Lp,Ip,xp,Cp,bp,Up,Dp,Vp,wp,Bp,Gp,Hp,kp,Yp,Fp,Kp,jp,qp,Wp,zp,Jp,Xp,$p,Qp,Zp,e_,t_,r_,n_,o_,i_,a_,u_,s_,c_,l_,p_,__,E_,T_,S_,f_,d_,A_,v_,O_,m_,N_,h_,R_,y_,P_,M_,g_,L_,I_,x_,C_,b_,U_,D_,V_,w_,B_,G_,H_,k_,Y_,F_,K_,j_,q_,W_,z_,J_,X_,$_,Q_,Z_,eE,tE,rE,nE,oE,iE,aE,uE,sE,cE,lE,pE,PC,MC,gC,LC,IC,xC,CC,bC,UC,DC,VC,wC,BC,GC,HC,kC,YC,FC,KC,jC,qC,WC,zC,JC,XC,$C,QC,ZC,eb,tb,rb,nb,ob,ib,ab,ub,sb,cb,lb,pb,_b,Eb,Tb,Sb,fb,db,Ab,vb,Ob,mb,Nb,hb,Rb,yb,Pb,Mb,gb,Lb,Ib,xb,Cb,bb,Ub,Db,Vb,wb,Bb,Gb,Hb,kb,Yb,Fb,Kb,jb,qb,Wb,zb,Jb,Xb,$b,Qb,Zb,eU,tU,rU,nU,oU,iU,aU,uU,sU,cU,lU,pU,_U,EU,TU,SU,fU,dU,AU,vU,OU,mU,NU,hU,RU,yU,PU,MU,gU,LU,IU,xU,CU,bU,UU,DU,VU,wU,BU,GU,HU,kU,YU,FU,KU,jU,qU,_E,EE,TE,SE,fE,dE,AE,vE,OE,mE,NE,hE,RE,yE,PE,ME,gE,LE,IE,xE,CE,bE,UE,DE,VE,wE,BE,GE,HE,kE,YE,FE,KE,jE,qE,WE,zE,JE,XE,$E,QE,ZE,eT,tT,rT,nT,oT,WU,zU,JU,XU,$U,QU,ZU,eD,tD,rD,nD,oD,iD,aD,uD,sD,cD,lD,pD,_D,ED,TD,SD,fD,dD,AD,vD,OD,mD,ND,hD,RD,yD,PD,MD,gD,LD,ID,xD,CD,bD,UD,DD,VD,wD,BD,GD,HD,iT,aT,uT,sT,cT,lT,pT,_T,ET,TT,ST,kD,YD,FD,KD,jD,qD,WD,zD,JD,XD,$D,QD,fT,dT,AT,vT,OT,ZD,eV,tV,rV,nV,oV,mT,NT,hT,iV,aV,uV,sV,RT,yT,PT,MT,cV,lV,pV,_V,EV,gT,LT,IT,xT,CT,bT,UT,TV,SV,fV,dV,AV,vV,OV,mV,DT,VT,wT,BT,GT,NV,hV,RV,yV,PV,MV,HT,kT,YT,FT,KT,jT,qT,WT,zT,JT,XT,$T,QT,ZT,eS,tS,rS,nS,oS,iS,aS,gV,LV,IV,xV,CV,bV,UV,DV,VV,wV,BV,GV,HV,kV,YV,FV,KV,jV,qV,WV,zV,JV,uS,sS,cS,lS,pS,XV,$V,QV,ZV,e0,t0,_S,ES,r0,n0,o0,TS,SS,i0,a0,u0,fS,dS,AS,vS,OS,mS,NS,hS,RS,yS,PS,MS,gS,LS,IS,xS,CS,s0,c0,l0,p0,_0,E0,T0,S0,f0,d0,A0,v0,O0,m0,N0,h0,R0,y0,bS,US,P0,M0,g0,DS=d(()=>{wa();ql="aws.lambda.invoked_arn",Wl="db.system",zl="db.connection_string",Jl="db.user",Xl="db.jdbc.driver_classname",$l="db.name",Ql="db.statement",Zl="db.operation",ep="db.mssql.instance_name",tp="db.cassandra.keyspace",rp="db.cassandra.page_size",np="db.cassandra.consistency_level",op="db.cassandra.table",ip="db.cassandra.idempotence",ap="db.cassandra.speculative_execution_count",up="db.cassandra.coordinator.id",sp="db.cassandra.coordinator.dc",cp="db.hbase.namespace",lp="db.redis.database_index",pp="db.mongodb.collection",_p="db.sql.table",Ep="exception.type",Tp="exception.message",Sp="exception.stacktrace",fp="exception.escaped",dp="faas.trigger",Ap="faas.execution",vp="faas.document.collection",Op="faas.document.operation",mp="faas.document.time",Np="faas.document.name",hp="faas.time",Rp="faas.cron",yp="faas.coldstart",Pp="faas.invoked_name",Mp="faas.invoked_provider",gp="faas.invoked_region",Lp="net.transport",Ip="net.peer.ip",xp="net.peer.port",Cp="net.peer.name",bp="net.host.ip",Up="net.host.port",Dp="net.host.name",Vp="net.host.connection.type",wp="net.host.connection.subtype",Bp="net.host.carrier.name",Gp="net.host.carrier.mcc",Hp="net.host.carrier.mnc",kp="net.host.carrier.icc",Yp="peer.service",Fp="enduser.id",Kp="enduser.role",jp="enduser.scope",qp="thread.id",Wp="thread.name",zp="code.function",Jp="code.namespace",Xp="code.filepath",$p="code.lineno",Qp="http.method",Zp="http.url",e_="http.target",t_="http.host",r_="http.scheme",n_="http.status_code",o_="http.flavor",i_="http.user_agent",a_="http.request_content_length",u_="http.request_content_length_uncompressed",s_="http.response_content_length",c_="http.response_content_length_uncompressed",l_="http.server_name",p_="http.route",__="http.client_ip",E_="aws.dynamodb.table_names",T_="aws.dynamodb.consumed_capacity",S_="aws.dynamodb.item_collection_metrics",f_="aws.dynamodb.provisioned_read_capacity",d_="aws.dynamodb.provisioned_write_capacity",A_="aws.dynamodb.consistent_read",v_="aws.dynamodb.projection",O_="aws.dynamodb.limit",m_="aws.dynamodb.attributes_to_get",N_="aws.dynamodb.index_name",h_="aws.dynamodb.select",R_="aws.dynamodb.global_secondary_indexes",y_="aws.dynamodb.local_secondary_indexes",P_="aws.dynamodb.exclusive_start_table",M_="aws.dynamodb.table_count",g_="aws.dynamodb.scan_forward",L_="aws.dynamodb.segment",I_="aws.dynamodb.total_segments",x_="aws.dynamodb.count",C_="aws.dynamodb.scanned_count",b_="aws.dynamodb.attribute_definitions",U_="aws.dynamodb.global_secondary_index_updates",D_="messaging.system",V_="messaging.destination",w_="messaging.destination_kind",B_="messaging.temp_destination",G_="messaging.protocol",H_="messaging.protocol_version",k_="messaging.url",Y_="messaging.message_id",F_="messaging.conversation_id",K_="messaging.message_payload_size_bytes",j_="messaging.message_payload_compressed_size_bytes",q_="messaging.operation",W_="messaging.consumer_id",z_="messaging.rabbitmq.routing_key",J_="messaging.kafka.message_key",X_="messaging.kafka.consumer_group",$_="messaging.kafka.client_id",Q_="messaging.kafka.partition",Z_="messaging.kafka.tombstone",eE="rpc.system",tE="rpc.service",rE="rpc.method",nE="rpc.grpc.status_code",oE="rpc.jsonrpc.version",iE="rpc.jsonrpc.request_id",aE="rpc.jsonrpc.error_code",uE="rpc.jsonrpc.error_message",sE="message.type",cE="message.id",lE="message.compressed_size",pE="message.uncompressed_size",PC=ql,MC=Wl,gC=zl,LC=Jl,IC=Xl,xC=$l,CC=Ql,bC=Zl,UC=ep,DC=tp,VC=rp,wC=np,BC=op,GC=ip,HC=ap,kC=up,YC=sp,FC=cp,KC=lp,jC=pp,qC=_p,WC=Ep,zC=Tp,JC=Sp,XC=fp,$C=dp,QC=Ap,ZC=vp,eb=Op,tb=mp,rb=Np,nb=hp,ob=Rp,ib=yp,ab=Pp,ub=Mp,sb=gp,cb=Lp,lb=Ip,pb=xp,_b=Cp,Eb=bp,Tb=Up,Sb=Dp,fb=Vp,db=wp,Ab=Bp,vb=Gp,Ob=Hp,mb=kp,Nb=Yp,hb=Fp,Rb=Kp,yb=jp,Pb=qp,Mb=Wp,gb=zp,Lb=Jp,Ib=Xp,xb=$p,Cb=Qp,bb=Zp,Ub=e_,Db=t_,Vb=r_,wb=n_,Bb=o_,Gb=i_,Hb=a_,kb=u_,Yb=s_,Fb=c_,Kb=l_,jb=p_,qb=__,Wb=E_,zb=T_,Jb=S_,Xb=f_,$b=d_,Qb=A_,Zb=v_,eU=O_,tU=m_,rU=N_,nU=h_,oU=R_,iU=y_,aU=P_,uU=M_,sU=g_,cU=L_,lU=I_,pU=x_,_U=C_,EU=b_,TU=U_,SU=D_,fU=V_,dU=w_,AU=B_,vU=G_,OU=H_,mU=k_,NU=Y_,hU=F_,RU=K_,yU=j_,PU=q_,MU=W_,gU=z_,LU=J_,IU=X_,xU=$_,CU=Q_,bU=Z_,UU=eE,DU=tE,VU=rE,wU=nE,BU=oE,GU=iE,HU=aE,kU=uE,YU=sE,FU=cE,KU=lE,jU=pE,qU=U([ql,Wl,zl,Jl,Xl,$l,Ql,Zl,ep,tp,rp,np,op,ip,ap,up,sp,cp,lp,pp,_p,Ep,Tp,Sp,fp,dp,Ap,vp,Op,mp,Np,hp,Rp,yp,Pp,Mp,gp,Lp,Ip,xp,Cp,bp,Up,Dp,Vp,wp,Bp,Gp,Hp,kp,Yp,Fp,Kp,jp,qp,Wp,zp,Jp,Xp,$p,Qp,Zp,e_,t_,r_,n_,o_,i_,a_,u_,s_,c_,l_,p_,__,E_,T_,S_,f_,d_,A_,v_,O_,m_,N_,h_,R_,y_,P_,M_,g_,L_,I_,x_,C_,b_,U_,D_,V_,w_,B_,G_,H_,k_,Y_,F_,K_,j_,q_,W_,z_,J_,X_,$_,Q_,Z_,eE,tE,rE,nE,oE,iE,aE,uE,sE,cE,lE,pE]),_E="other_sql",EE="mssql",TE="mysql",SE="oracle",fE="db2",dE="postgresql",AE="redshift",vE="hive",OE="cloudscape",mE="hsqldb",NE="progress",hE="maxdb",RE="hanadb",yE="ingres",PE="firstsql",ME="edb",gE="cache",LE="adabas",IE="firebird",xE="derby",CE="filemaker",bE="informix",UE="instantdb",DE="interbase",VE="mariadb",wE="netezza",BE="pervasive",GE="pointbase",HE="sqlite",kE="sybase",YE="teradata",FE="vertica",KE="h2",jE="coldfusion",qE="cassandra",WE="hbase",zE="mongodb",JE="redis",XE="couchbase",$E="couchdb",QE="cosmosdb",ZE="dynamodb",eT="neo4j",tT="geode",rT="elasticsearch",nT="memcached",oT="cockroachdb",WU=_E,zU=EE,JU=TE,XU=SE,$U=fE,QU=dE,ZU=AE,eD=vE,tD=OE,rD=mE,nD=NE,oD=hE,iD=RE,aD=yE,uD=PE,sD=ME,cD=gE,lD=LE,pD=IE,_D=xE,ED=CE,TD=bE,SD=UE,fD=DE,dD=VE,AD=wE,vD=BE,OD=GE,mD=HE,ND=kE,hD=YE,RD=FE,yD=KE,PD=jE,MD=qE,gD=WE,LD=zE,ID=JE,xD=XE,CD=$E,bD=QE,UD=ZE,DD=eT,VD=tT,wD=rT,BD=nT,GD=oT,HD=U([_E,EE,TE,SE,fE,dE,AE,vE,OE,mE,NE,hE,RE,yE,PE,ME,gE,LE,IE,xE,CE,bE,UE,DE,VE,wE,BE,GE,HE,kE,YE,FE,KE,jE,qE,WE,zE,JE,XE,$E,QE,ZE,eT,tT,rT,nT,oT]),iT="all",aT="each_quorum",uT="quorum",sT="local_quorum",cT="one",lT="two",pT="three",_T="local_one",ET="any",TT="serial",ST="local_serial",kD=iT,YD=aT,FD=uT,KD=sT,jD=cT,qD=lT,WD=pT,zD=_T,JD=ET,XD=TT,$D=ST,QD=U([iT,aT,uT,sT,cT,lT,pT,_T,ET,TT,ST]),fT="datasource",dT="http",AT="pubsub",vT="timer",OT="other",ZD=fT,eV=dT,tV=AT,rV=vT,nV=OT,oV=U([fT,dT,AT,vT,OT]),mT="insert",NT="edit",hT="delete",iV=mT,aV=NT,uV=hT,sV=U([mT,NT,hT]),RT="alibaba_cloud",yT="aws",PT="azure",MT="gcp",cV=RT,lV=yT,pV=PT,_V=MT,EV=U([RT,yT,PT,MT]),gT="ip_tcp",LT="ip_udp",IT="ip",xT="unix",CT="pipe",bT="inproc",UT="other",TV=gT,SV=LT,fV=IT,dV=xT,AV=CT,vV=bT,OV=UT,mV=U([gT,LT,IT,xT,CT,bT,UT]),DT="wifi",VT="wired",wT="cell",BT="unavailable",GT="unknown",NV=DT,hV=VT,RV=wT,yV=BT,PV=GT,MV=U([DT,VT,wT,BT,GT]),HT="gprs",kT="edge",YT="umts",FT="cdma",KT="evdo_0",jT="evdo_a",qT="cdma2000_1xrtt",WT="hsdpa",zT="hsupa",JT="hspa",XT="iden",$T="evdo_b",QT="lte",ZT="ehrpd",eS="hspap",tS="gsm",rS="td_scdma",nS="iwlan",oS="nr",iS="nrnsa",aS="lte_ca",gV=HT,LV=kT,IV=YT,xV=FT,CV=KT,bV=jT,UV=qT,DV=WT,VV=zT,wV=JT,BV=XT,GV=$T,HV=QT,kV=ZT,YV=eS,FV=tS,KV=rS,jV=nS,qV=oS,WV=iS,zV=aS,JV=U([HT,kT,YT,FT,KT,jT,qT,WT,zT,JT,XT,$T,QT,ZT,eS,tS,rS,nS,oS,iS,aS]),uS="1.0",sS="1.1",cS="2.0",lS="SPDY",pS="QUIC",XV=uS,$V=sS,QV=cS,ZV=lS,e0=pS,t0={HTTP_1_0:uS,HTTP_1_1:sS,HTTP_2_0:cS,SPDY:lS,QUIC:pS},_S="queue",ES="topic",r0=_S,n0=ES,o0=U([_S,ES]),TS="receive",SS="process",i0=TS,a0=SS,u0=U([TS,SS]),fS=0,dS=1,AS=2,vS=3,OS=4,mS=5,NS=6,hS=7,RS=8,yS=9,PS=10,MS=11,gS=12,LS=13,IS=14,xS=15,CS=16,s0=fS,c0=dS,l0=AS,p0=vS,_0=OS,E0=mS,T0=NS,S0=hS,f0=RS,d0=yS,A0=PS,v0=MS,O0=gS,m0=LS,N0=IS,h0=xS,R0=CS,y0={OK:fS,CANCELLED:dS,UNKNOWN:AS,INVALID_ARGUMENT:vS,DEADLINE_EXCEEDED:OS,NOT_FOUND:mS,ALREADY_EXISTS:NS,PERMISSION_DENIED:hS,RESOURCE_EXHAUSTED:RS,FAILED_PRECONDITION:yS,ABORTED:PS,OUT_OF_RANGE:MS,UNIMPLEMENTED:gS,INTERNAL:LS,UNAVAILABLE:IS,DATA_LOSS:xS,UNAUTHENTICATED:CS},bS="SENT",US="RECEIVED",P0=bS,M0=US,g0=U([bS,US])});var VS=d(()=>{DS()});var wS,BS,GS,HS,kS,YS,FS,KS,jS,qS,WS,zS,JS,XS,$S,QS,ZS,ef,tf,rf,nf,of,af,uf,sf,cf,lf,pf,_f,Ef,Tf,Sf,ff,df,Af,vf,Of,mf,Nf,hf,Rf,yf,Pf,Mf,gf,Lf,If,xf,Cf,bf,Uf,Df,Vf,wf,Bf,Gf,Hf,kf,Yf,Ff,Kf,jf,qf,Wf,zf,Jf,Xf,$f,Qf,Zf,ed,td,rd,nd,od,id,ad,ud,sd,cd,ld,L0,I0,x0,C0,b0,U0,D0,V0,w0,B0,G0,H0,k0,Y0,F0,K0,j0,q0,W0,z0,J0,X0,$0,Q0,Z0,ew,tw,rw,nw,ow,iw,aw,uw,sw,cw,lw,pw,_w,Ew,Tw,Sw,fw,dw,Aw,vw,Ow,mw,Nw,hw,Rw,yw,Pw,Mw,gw,Lw,Iw,xw,Cw,bw,Uw,Dw,Vw,ww,Bw,Gw,Hw,kw,Yw,Fw,Kw,jw,qw,Ww,zw,Jw,Xw,$w,Qw,Zw,e1,t1,r1,pd,_d,Ed,Td,n1,o1,i1,a1,u1,Sd,fd,dd,Ad,vd,Od,md,Nd,hd,Rd,yd,Pd,Md,gd,Ld,Id,xd,s1,c1,l1,p1,_1,E1,T1,S1,f1,d1,A1,v1,O1,m1,N1,h1,R1,y1,Cd,bd,P1,M1,g1,Ud,Dd,Vd,wd,Bd,Gd,Hd,L1,I1,x1,C1,b1,U1,D1,V1,kd,Yd,Fd,Kd,jd,qd,Wd,zd,Jd,Xd,$d,w1,B1,G1,H1,k1,Y1,F1,K1,j1,q1,W1,z1,Qd,Zd,eA,tA,rA,nA,oA,iA,aA,uA,J1,X1,$1,Q1,Z1,eB,tB,rB,nB,oB,iB,sA=d(()=>{wa();wS="cloud.provider",BS="cloud.account.id",GS="cloud.region",HS="cloud.availability_zone",kS="cloud.platform",YS="aws.ecs.container.arn",FS="aws.ecs.cluster.arn",KS="aws.ecs.launchtype",jS="aws.ecs.task.arn",qS="aws.ecs.task.family",WS="aws.ecs.task.revision",zS="aws.eks.cluster.arn",JS="aws.log.group.names",XS="aws.log.group.arns",$S="aws.log.stream.names",QS="aws.log.stream.arns",ZS="container.name",ef="container.id",tf="container.runtime",rf="container.image.name",nf="container.image.tag",of="deployment.environment",af="device.id",uf="device.model.identifier",sf="device.model.name",cf="faas.name",lf="faas.id",pf="faas.version",_f="faas.instance",Ef="faas.max_memory",Tf="host.id",Sf="host.name",ff="host.type",df="host.arch",Af="host.image.name",vf="host.image.id",Of="host.image.version",mf="k8s.cluster.name",Nf="k8s.node.name",hf="k8s.node.uid",Rf="k8s.namespace.name",yf="k8s.pod.uid",Pf="k8s.pod.name",Mf="k8s.container.name",gf="k8s.replicaset.uid",Lf="k8s.replicaset.name",If="k8s.deployment.uid",xf="k8s.deployment.name",Cf="k8s.statefulset.uid",bf="k8s.statefulset.name",Uf="k8s.daemonset.uid",Df="k8s.daemonset.name",Vf="k8s.job.uid",wf="k8s.job.name",Bf="k8s.cronjob.uid",Gf="k8s.cronjob.name",Hf="os.type",kf="os.description",Yf="os.name",Ff="os.version",Kf="process.pid",jf="process.executable.name",qf="process.executable.path",Wf="process.command",zf="process.command_line",Jf="process.command_args",Xf="process.owner",$f="process.runtime.name",Qf="process.runtime.version",Zf="process.runtime.description",ed="service.name",td="service.namespace",rd="service.instance.id",nd="service.version",od="telemetry.sdk.name",id="telemetry.sdk.language",ad="telemetry.sdk.version",ud="telemetry.auto.version",sd="webengine.name",cd="webengine.version",ld="webengine.description",L0=wS,I0=BS,x0=GS,C0=HS,b0=kS,U0=YS,D0=FS,V0=KS,w0=jS,B0=qS,G0=WS,H0=zS,k0=JS,Y0=XS,F0=$S,K0=QS,j0=ZS,q0=ef,W0=tf,z0=rf,J0=nf,X0=of,$0=af,Q0=uf,Z0=sf,ew=cf,tw=lf,rw=pf,nw=_f,ow=Ef,iw=Tf,aw=Sf,uw=ff,sw=df,cw=Af,lw=vf,pw=Of,_w=mf,Ew=Nf,Tw=hf,Sw=Rf,fw=yf,dw=Pf,Aw=Mf,vw=gf,Ow=Lf,mw=If,Nw=xf,hw=Cf,Rw=bf,yw=Uf,Pw=Df,Mw=Vf,gw=wf,Lw=Bf,Iw=Gf,xw=Hf,Cw=kf,bw=Yf,Uw=Ff,Dw=Kf,Vw=jf,ww=qf,Bw=Wf,Gw=zf,Hw=Jf,kw=Xf,Yw=$f,Fw=Qf,Kw=Zf,jw=ed,qw=td,Ww=rd,zw=nd,Jw=od,Xw=id,$w=ad,Qw=ud,Zw=sd,e1=cd,t1=ld,r1=U([wS,BS,GS,HS,kS,YS,FS,KS,jS,qS,WS,zS,JS,XS,$S,QS,ZS,ef,tf,rf,nf,of,af,uf,sf,cf,lf,pf,_f,Ef,Tf,Sf,ff,df,Af,vf,Of,mf,Nf,hf,Rf,yf,Pf,Mf,gf,Lf,If,xf,Cf,bf,Uf,Df,Vf,wf,Bf,Gf,Hf,kf,Yf,Ff,Kf,jf,qf,Wf,zf,Jf,Xf,$f,Qf,Zf,ed,td,rd,nd,od,id,ad,ud,sd,cd,ld]),pd="alibaba_cloud",_d="aws",Ed="azure",Td="gcp",n1=pd,o1=_d,i1=Ed,a1=Td,u1=U([pd,_d,Ed,Td]),Sd="alibaba_cloud_ecs",fd="alibaba_cloud_fc",dd="aws_ec2",Ad="aws_ecs",vd="aws_eks",Od="aws_lambda",md="aws_elastic_beanstalk",Nd="azure_vm",hd="azure_container_instances",Rd="azure_aks",yd="azure_functions",Pd="azure_app_service",Md="gcp_compute_engine",gd="gcp_cloud_run",Ld="gcp_kubernetes_engine",Id="gcp_cloud_functions",xd="gcp_app_engine",s1=Sd,c1=fd,l1=dd,p1=Ad,_1=vd,E1=Od,T1=md,S1=Nd,f1=hd,d1=Rd,A1=yd,v1=Pd,O1=Md,m1=gd,N1=Ld,h1=Id,R1=xd,y1=U([Sd,fd,dd,Ad,vd,Od,md,Nd,hd,Rd,yd,Pd,Md,gd,Ld,Id,xd]),Cd="ec2",bd="fargate",P1=Cd,M1=bd,g1=U([Cd,bd]),Ud="amd64",Dd="arm32",Vd="arm64",wd="ia64",Bd="ppc32",Gd="ppc64",Hd="x86",L1=Ud,I1=Dd,x1=Vd,C1=wd,b1=Bd,U1=Gd,D1=Hd,V1=U([Ud,Dd,Vd,wd,Bd,Gd,Hd]),kd="windows",Yd="linux",Fd="darwin",Kd="freebsd",jd="netbsd",qd="openbsd",Wd="dragonflybsd",zd="hpux",Jd="aix",Xd="solaris",$d="z_os",w1=kd,B1=Yd,G1=Fd,H1=Kd,k1=jd,Y1=qd,F1=Wd,K1=zd,j1=Jd,q1=Xd,W1=$d,z1=U([kd,Yd,Fd,Kd,jd,qd,Wd,zd,Jd,Xd,$d]),Qd="cpp",Zd="dotnet",eA="erlang",tA="go",rA="java",nA="nodejs",oA="php",iA="python",aA="ruby",uA="webjs",J1=Qd,X1=Zd,$1=eA,Q1=tA,Z1=rA,eB=nA,tB=oA,rB=iA,nB=aA,oB=uA,iB=U([Qd,Zd,eA,tA,rA,nA,oA,iA,aA,uA])});var cA=d(()=>{sA()});var aB,uB,sB,cB,lB,pB,_B,EB,TB,SB,fB,dB,AB,vB,OB,mB,NB,hB,RB,yB,PB,MB,gB,LB,IB,xB,CB,bB,UB,DB,VB,wB,BB,GB,HB,kB,YB,FB,KB,jB,qB,WB,zB,JB,XB,$B,QB,ZB,eG,tG,rG,nG,oG,iG,aG,uG,sG,cG,lG,pG,_G,EG,TG,SG,fG,dG,AG,vG,OG,mG,NG,hG,RG,yG,PG,MG,gG,LG,IG,xG,CG,bG,UG,DG,VG,wG,BG,GG,HG,kG,YG,FG,KG,jG,qG,WG,zG,JG,XG,$G,QG,ZG,eH,tH,rH,nH,oH,iH,aH,uH,lA=d(()=>{aB="aspnetcore.rate_limiting.result",uB="acquired",sB="endpoint_limiter",cB="global_limiter",lB="request_canceled",pB="telemetry.sdk.language",_B="cpp",EB="dotnet",TB="erlang",SB="go",fB="java",dB="nodejs",AB="php",vB="python",OB="ruby",mB="rust",NB="swift",hB="webjs",RB="telemetry.sdk.name",yB="telemetry.sdk.version",PB="aspnetcore.diagnostics.handler.type",MB="aspnetcore.diagnostics.exception.result",gB="aborted",LB="handled",IB="skipped",xB="unhandled",CB="aspnetcore.rate_limiting.policy",bB="aspnetcore.request.is_unhandled",UB="aspnetcore.routing.is_fallback",DB="aspnetcore.routing.match_status",VB="failure",wB="success",BB="client.address",GB="client.port",HB="error.type",kB="_OTHER",YB="exception.escaped",FB="exception.message",KB="exception.stacktrace",jB="exception.type",qB=function(o){return"http.request.header."+o},WB="http.request.method",zB="_OTHER",JB="CONNECT",XB="DELETE",$B="GET",QB="HEAD",ZB="OPTIONS",eG="PATCH",tG="POST",rG="PUT",nG="TRACE",oG="http.request.method_original",iG="http.request.resend_count",aG=function(o){return"http.response.header."+o},uG="http.response.status_code",sG="http.route",cG="jvm.gc.action",lG="jvm.gc.name",pG="jvm.memory.pool.name",_G="jvm.memory.type",EG="heap",TG="non_heap",SG="jvm.thread.daemon",fG="jvm.thread.state",dG="blocked",AG="new",vG="runnable",OG="terminated",mG="timed_waiting",NG="waiting",hG="network.local.address",RG="network.local.port",yG="network.peer.address",PG="network.peer.port",MG="network.protocol.name",gG="network.protocol.version",LG="network.transport",IG="pipe",xG="quic",CG="tcp",bG="udp",UG="unix",DG="network.type",VG="ipv4",wG="ipv6",BG="otel.scope.name",GG="otel.scope.version",HG="otel.status_code",kG="ERROR",YG="OK",FG="otel.status_description",KG="server.address",jG="server.port",qG="service.name",WG="service.version",zG="signalr.connection.status",JG="app_shutdown",XG="normal_closure",$G="timeout",QG="signalr.transport",ZG="long_polling",eH="server_sent_events",tH="web_sockets",rH="url.fragment",nH="url.full",oH="url.path",iH="url.query",aH="url.scheme",uH="user_agent.original"});var sH,cH,lH,pH,_H,EH,TH,SH,fH,dH,AH,vH,OH,mH,NH,hH,RH,yH,PH,MH,gH,LH,IH,xH,CH,bH,UH,DH,VH,wH,BH,pA=d(()=>{sH="aspnetcore.diagnostics.exceptions",cH="aspnetcore.rate_limiting.active_request_leases",lH="aspnetcore.rate_limiting.queued_requests",pH="aspnetcore.rate_limiting.request.time_in_queue",_H="aspnetcore.rate_limiting.request_lease.duration",EH="aspnetcore.rate_limiting.requests",TH="aspnetcore.routing.match_attempts",SH="http.client.request.duration",fH="http.server.request.duration",dH="jvm.class.count",AH="jvm.class.loaded",vH="jvm.class.unloaded",OH="jvm.cpu.count",mH="jvm.cpu.recent_utilization",NH="jvm.cpu.time",hH="jvm.gc.duration",RH="jvm.memory.committed",yH="jvm.memory.limit",PH="jvm.memory.used",MH="jvm.memory.used_after_last_gc",gH="jvm.thread.count",LH="kestrel.active_connections",IH="kestrel.active_tls_handshakes",xH="kestrel.connection.duration",CH="kestrel.queued_connections",bH="kestrel.queued_requests",UH="kestrel.rejected_connections",DH="kestrel.tls_handshake.duration",VH="kestrel.upgraded_connections",wH="signalr.server.active_connections",BH="signalr.server.connection.duration"});var _A={};ft(_A,{ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:()=>gB,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:()=>LB,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:()=>IB,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:()=>xB,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:()=>uB,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:()=>sB,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:()=>cB,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:()=>lB,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:()=>VB,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:()=>wB,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:()=>MB,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:()=>PB,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:()=>CB,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:()=>aB,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:()=>bB,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:()=>UB,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:()=>DB,ATTR_CLIENT_ADDRESS:()=>BB,ATTR_CLIENT_PORT:()=>GB,ATTR_ERROR_TYPE:()=>HB,ATTR_EXCEPTION_ESCAPED:()=>YB,ATTR_EXCEPTION_MESSAGE:()=>FB,ATTR_EXCEPTION_STACKTRACE:()=>KB,ATTR_EXCEPTION_TYPE:()=>jB,ATTR_HTTP_REQUEST_HEADER:()=>qB,ATTR_HTTP_REQUEST_METHOD:()=>WB,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:()=>oG,ATTR_HTTP_REQUEST_RESEND_COUNT:()=>iG,ATTR_HTTP_RESPONSE_HEADER:()=>aG,ATTR_HTTP_RESPONSE_STATUS_CODE:()=>uG,ATTR_HTTP_ROUTE:()=>sG,ATTR_JVM_GC_ACTION:()=>cG,ATTR_JVM_GC_NAME:()=>lG,ATTR_JVM_MEMORY_POOL_NAME:()=>pG,ATTR_JVM_MEMORY_TYPE:()=>_G,ATTR_JVM_THREAD_DAEMON:()=>SG,ATTR_JVM_THREAD_STATE:()=>fG,ATTR_NETWORK_LOCAL_ADDRESS:()=>hG,ATTR_NETWORK_LOCAL_PORT:()=>RG,ATTR_NETWORK_PEER_ADDRESS:()=>yG,ATTR_NETWORK_PEER_PORT:()=>PG,ATTR_NETWORK_PROTOCOL_NAME:()=>MG,ATTR_NETWORK_PROTOCOL_VERSION:()=>gG,ATTR_NETWORK_TRANSPORT:()=>LG,ATTR_NETWORK_TYPE:()=>DG,ATTR_OTEL_SCOPE_NAME:()=>BG,ATTR_OTEL_SCOPE_VERSION:()=>GG,ATTR_OTEL_STATUS_CODE:()=>HG,ATTR_OTEL_STATUS_DESCRIPTION:()=>FG,ATTR_SERVER_ADDRESS:()=>KG,ATTR_SERVER_PORT:()=>jG,ATTR_SERVICE_NAME:()=>qG,ATTR_SERVICE_VERSION:()=>WG,ATTR_SIGNALR_CONNECTION_STATUS:()=>zG,ATTR_SIGNALR_TRANSPORT:()=>QG,ATTR_TELEMETRY_SDK_LANGUAGE:()=>pB,ATTR_TELEMETRY_SDK_NAME:()=>RB,ATTR_TELEMETRY_SDK_VERSION:()=>yB,ATTR_URL_FRAGMENT:()=>rH,ATTR_URL_FULL:()=>nH,ATTR_URL_PATH:()=>oH,ATTR_URL_QUERY:()=>iH,ATTR_URL_SCHEME:()=>aH,ATTR_USER_AGENT_ORIGINAL:()=>uH,AWSECSLAUNCHTYPEVALUES_EC2:()=>P1,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>M1,AwsEcsLaunchtypeValues:()=>g1,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>s1,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>c1,CLOUDPLATFORMVALUES_AWS_EC2:()=>l1,CLOUDPLATFORMVALUES_AWS_ECS:()=>p1,CLOUDPLATFORMVALUES_AWS_EKS:()=>_1,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>T1,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>E1,CLOUDPLATFORMVALUES_AZURE_AKS:()=>d1,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>v1,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>f1,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>A1,CLOUDPLATFORMVALUES_AZURE_VM:()=>S1,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>R1,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>h1,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>m1,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>O1,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>N1,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>n1,CLOUDPROVIDERVALUES_AWS:()=>o1,CLOUDPROVIDERVALUES_AZURE:()=>i1,CLOUDPROVIDERVALUES_GCP:()=>a1,CloudPlatformValues:()=>y1,CloudProviderValues:()=>u1,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>kD,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>JD,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>YD,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>zD,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>KD,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>$D,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>jD,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>FD,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>XD,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>WD,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>qD,DBSYSTEMVALUES_ADABAS:()=>lD,DBSYSTEMVALUES_CACHE:()=>cD,DBSYSTEMVALUES_CASSANDRA:()=>MD,DBSYSTEMVALUES_CLOUDSCAPE:()=>tD,DBSYSTEMVALUES_COCKROACHDB:()=>GD,DBSYSTEMVALUES_COLDFUSION:()=>PD,DBSYSTEMVALUES_COSMOSDB:()=>bD,DBSYSTEMVALUES_COUCHBASE:()=>xD,DBSYSTEMVALUES_COUCHDB:()=>CD,DBSYSTEMVALUES_DB2:()=>$U,DBSYSTEMVALUES_DERBY:()=>_D,DBSYSTEMVALUES_DYNAMODB:()=>UD,DBSYSTEMVALUES_EDB:()=>sD,DBSYSTEMVALUES_ELASTICSEARCH:()=>wD,DBSYSTEMVALUES_FILEMAKER:()=>ED,DBSYSTEMVALUES_FIREBIRD:()=>pD,DBSYSTEMVALUES_FIRSTSQL:()=>uD,DBSYSTEMVALUES_GEODE:()=>VD,DBSYSTEMVALUES_H2:()=>yD,DBSYSTEMVALUES_HANADB:()=>iD,DBSYSTEMVALUES_HBASE:()=>gD,DBSYSTEMVALUES_HIVE:()=>eD,DBSYSTEMVALUES_HSQLDB:()=>rD,DBSYSTEMVALUES_INFORMIX:()=>TD,DBSYSTEMVALUES_INGRES:()=>aD,DBSYSTEMVALUES_INSTANTDB:()=>SD,DBSYSTEMVALUES_INTERBASE:()=>fD,DBSYSTEMVALUES_MARIADB:()=>dD,DBSYSTEMVALUES_MAXDB:()=>oD,DBSYSTEMVALUES_MEMCACHED:()=>BD,DBSYSTEMVALUES_MONGODB:()=>LD,DBSYSTEMVALUES_MSSQL:()=>zU,DBSYSTEMVALUES_MYSQL:()=>JU,DBSYSTEMVALUES_NEO4J:()=>DD,DBSYSTEMVALUES_NETEZZA:()=>AD,DBSYSTEMVALUES_ORACLE:()=>XU,DBSYSTEMVALUES_OTHER_SQL:()=>WU,DBSYSTEMVALUES_PERVASIVE:()=>vD,DBSYSTEMVALUES_POINTBASE:()=>OD,DBSYSTEMVALUES_POSTGRESQL:()=>QU,DBSYSTEMVALUES_PROGRESS:()=>nD,DBSYSTEMVALUES_REDIS:()=>ID,DBSYSTEMVALUES_REDSHIFT:()=>ZU,DBSYSTEMVALUES_SQLITE:()=>mD,DBSYSTEMVALUES_SYBASE:()=>ND,DBSYSTEMVALUES_TERADATA:()=>hD,DBSYSTEMVALUES_VERTICA:()=>RD,DbCassandraConsistencyLevelValues:()=>QD,DbSystemValues:()=>HD,ERROR_TYPE_VALUE_OTHER:()=>kB,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>uV,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>aV,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>iV,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>cV,FAASINVOKEDPROVIDERVALUES_AWS:()=>lV,FAASINVOKEDPROVIDERVALUES_AZURE:()=>pV,FAASINVOKEDPROVIDERVALUES_GCP:()=>_V,FAASTRIGGERVALUES_DATASOURCE:()=>ZD,FAASTRIGGERVALUES_HTTP:()=>eV,FAASTRIGGERVALUES_OTHER:()=>nV,FAASTRIGGERVALUES_PUBSUB:()=>tV,FAASTRIGGERVALUES_TIMER:()=>rV,FaasDocumentOperationValues:()=>sV,FaasInvokedProviderValues:()=>EV,FaasTriggerValues:()=>oV,HOSTARCHVALUES_AMD64:()=>L1,HOSTARCHVALUES_ARM32:()=>I1,HOSTARCHVALUES_ARM64:()=>x1,HOSTARCHVALUES_IA64:()=>C1,HOSTARCHVALUES_PPC32:()=>b1,HOSTARCHVALUES_PPC64:()=>U1,HOSTARCHVALUES_X86:()=>D1,HTTPFLAVORVALUES_HTTP_1_0:()=>XV,HTTPFLAVORVALUES_HTTP_1_1:()=>$V,HTTPFLAVORVALUES_HTTP_2_0:()=>QV,HTTPFLAVORVALUES_QUIC:()=>e0,HTTPFLAVORVALUES_SPDY:()=>ZV,HTTP_REQUEST_METHOD_VALUE_CONNECT:()=>JB,HTTP_REQUEST_METHOD_VALUE_DELETE:()=>XB,HTTP_REQUEST_METHOD_VALUE_GET:()=>$B,HTTP_REQUEST_METHOD_VALUE_HEAD:()=>QB,HTTP_REQUEST_METHOD_VALUE_OPTIONS:()=>ZB,HTTP_REQUEST_METHOD_VALUE_OTHER:()=>zB,HTTP_REQUEST_METHOD_VALUE_PATCH:()=>eG,HTTP_REQUEST_METHOD_VALUE_POST:()=>tG,HTTP_REQUEST_METHOD_VALUE_PUT:()=>rG,HTTP_REQUEST_METHOD_VALUE_TRACE:()=>nG,HostArchValues:()=>V1,HttpFlavorValues:()=>t0,JVM_MEMORY_TYPE_VALUE_HEAP:()=>EG,JVM_MEMORY_TYPE_VALUE_NON_HEAP:()=>TG,JVM_THREAD_STATE_VALUE_BLOCKED:()=>dG,JVM_THREAD_STATE_VALUE_NEW:()=>AG,JVM_THREAD_STATE_VALUE_RUNNABLE:()=>vG,JVM_THREAD_STATE_VALUE_TERMINATED:()=>OG,JVM_THREAD_STATE_VALUE_TIMED_WAITING:()=>mG,JVM_THREAD_STATE_VALUE_WAITING:()=>NG,MESSAGETYPEVALUES_RECEIVED:()=>M0,MESSAGETYPEVALUES_SENT:()=>P0,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>r0,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>n0,MESSAGINGOPERATIONVALUES_PROCESS:()=>a0,MESSAGINGOPERATIONVALUES_RECEIVE:()=>i0,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:()=>sH,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:()=>cH,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:()=>lH,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:()=>EH,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:()=>_H,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:()=>pH,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:()=>TH,METRIC_HTTP_CLIENT_REQUEST_DURATION:()=>SH,METRIC_HTTP_SERVER_REQUEST_DURATION:()=>fH,METRIC_JVM_CLASS_COUNT:()=>dH,METRIC_JVM_CLASS_LOADED:()=>AH,METRIC_JVM_CLASS_UNLOADED:()=>vH,METRIC_JVM_CPU_COUNT:()=>OH,METRIC_JVM_CPU_RECENT_UTILIZATION:()=>mH,METRIC_JVM_CPU_TIME:()=>NH,METRIC_JVM_GC_DURATION:()=>hH,METRIC_JVM_MEMORY_COMMITTED:()=>RH,METRIC_JVM_MEMORY_LIMIT:()=>yH,METRIC_JVM_MEMORY_USED:()=>PH,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:()=>MH,METRIC_JVM_THREAD_COUNT:()=>gH,METRIC_KESTREL_ACTIVE_CONNECTIONS:()=>LH,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:()=>IH,METRIC_KESTREL_CONNECTION_DURATION:()=>xH,METRIC_KESTREL_QUEUED_CONNECTIONS:()=>CH,METRIC_KESTREL_QUEUED_REQUESTS:()=>bH,METRIC_KESTREL_REJECTED_CONNECTIONS:()=>UH,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:()=>DH,METRIC_KESTREL_UPGRADED_CONNECTIONS:()=>VH,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:()=>wH,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:()=>BH,MessageTypeValues:()=>g0,MessagingDestinationKindValues:()=>o0,MessagingOperationValues:()=>u0,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>xV,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>UV,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>LV,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>kV,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>CV,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>bV,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>GV,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>gV,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>FV,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>DV,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>wV,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>YV,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>VV,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>BV,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>jV,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>HV,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>zV,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>qV,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>WV,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>KV,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>IV,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>RV,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>yV,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>PV,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>NV,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>hV,NETTRANSPORTVALUES_INPROC:()=>vV,NETTRANSPORTVALUES_IP:()=>fV,NETTRANSPORTVALUES_IP_TCP:()=>TV,NETTRANSPORTVALUES_IP_UDP:()=>SV,NETTRANSPORTVALUES_OTHER:()=>OV,NETTRANSPORTVALUES_PIPE:()=>AV,NETTRANSPORTVALUES_UNIX:()=>dV,NETWORK_TRANSPORT_VALUE_PIPE:()=>IG,NETWORK_TRANSPORT_VALUE_QUIC:()=>xG,NETWORK_TRANSPORT_VALUE_TCP:()=>CG,NETWORK_TRANSPORT_VALUE_UDP:()=>bG,NETWORK_TRANSPORT_VALUE_UNIX:()=>UG,NETWORK_TYPE_VALUE_IPV4:()=>VG,NETWORK_TYPE_VALUE_IPV6:()=>wG,NetHostConnectionSubtypeValues:()=>JV,NetHostConnectionTypeValues:()=>MV,NetTransportValues:()=>mV,OSTYPEVALUES_AIX:()=>j1,OSTYPEVALUES_DARWIN:()=>G1,OSTYPEVALUES_DRAGONFLYBSD:()=>F1,OSTYPEVALUES_FREEBSD:()=>H1,OSTYPEVALUES_HPUX:()=>K1,OSTYPEVALUES_LINUX:()=>B1,OSTYPEVALUES_NETBSD:()=>k1,OSTYPEVALUES_OPENBSD:()=>Y1,OSTYPEVALUES_SOLARIS:()=>q1,OSTYPEVALUES_WINDOWS:()=>w1,OSTYPEVALUES_Z_OS:()=>W1,OTEL_STATUS_CODE_VALUE_ERROR:()=>kG,OTEL_STATUS_CODE_VALUE_OK:()=>YG,OsTypeValues:()=>z1,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>A0,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>T0,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>c0,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>h0,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>_0,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>d0,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>m0,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>p0,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>E0,RPCGRPCSTATUSCODEVALUES_OK:()=>s0,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>v0,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>S0,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>f0,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>R0,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>N0,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>O0,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>l0,RpcGrpcStatusCodeValues:()=>y0,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>tU,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>EU,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>Qb,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>zb,SEMATTRS_AWS_DYNAMODB_COUNT:()=>pU,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>aU,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>oU,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>TU,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>rU,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>Jb,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>eU,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>iU,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>Zb,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>Xb,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>$b,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>_U,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>sU,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>cU,SEMATTRS_AWS_DYNAMODB_SELECT:()=>nU,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>uU,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>Wb,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>lU,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>PC,SEMATTRS_CODE_FILEPATH:()=>Ib,SEMATTRS_CODE_FUNCTION:()=>gb,SEMATTRS_CODE_LINENO:()=>xb,SEMATTRS_CODE_NAMESPACE:()=>Lb,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>wC,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>YC,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>kC,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>GC,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>DC,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>VC,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>HC,SEMATTRS_DB_CASSANDRA_TABLE:()=>BC,SEMATTRS_DB_CONNECTION_STRING:()=>gC,SEMATTRS_DB_HBASE_NAMESPACE:()=>FC,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>IC,SEMATTRS_DB_MONGODB_COLLECTION:()=>jC,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>UC,SEMATTRS_DB_NAME:()=>xC,SEMATTRS_DB_OPERATION:()=>bC,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>KC,SEMATTRS_DB_SQL_TABLE:()=>qC,SEMATTRS_DB_STATEMENT:()=>CC,SEMATTRS_DB_SYSTEM:()=>MC,SEMATTRS_DB_USER:()=>LC,SEMATTRS_ENDUSER_ID:()=>hb,SEMATTRS_ENDUSER_ROLE:()=>Rb,SEMATTRS_ENDUSER_SCOPE:()=>yb,SEMATTRS_EXCEPTION_ESCAPED:()=>XC,SEMATTRS_EXCEPTION_MESSAGE:()=>zC,SEMATTRS_EXCEPTION_STACKTRACE:()=>JC,SEMATTRS_EXCEPTION_TYPE:()=>WC,SEMATTRS_FAAS_COLDSTART:()=>ib,SEMATTRS_FAAS_CRON:()=>ob,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>ZC,SEMATTRS_FAAS_DOCUMENT_NAME:()=>rb,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>eb,SEMATTRS_FAAS_DOCUMENT_TIME:()=>tb,SEMATTRS_FAAS_EXECUTION:()=>QC,SEMATTRS_FAAS_INVOKED_NAME:()=>ab,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>ub,SEMATTRS_FAAS_INVOKED_REGION:()=>sb,SEMATTRS_FAAS_TIME:()=>nb,SEMATTRS_FAAS_TRIGGER:()=>$C,SEMATTRS_HTTP_CLIENT_IP:()=>qb,SEMATTRS_HTTP_FLAVOR:()=>Bb,SEMATTRS_HTTP_HOST:()=>Db,SEMATTRS_HTTP_METHOD:()=>Cb,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>Hb,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>kb,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>Yb,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>Fb,SEMATTRS_HTTP_ROUTE:()=>jb,SEMATTRS_HTTP_SCHEME:()=>Vb,SEMATTRS_HTTP_SERVER_NAME:()=>Kb,SEMATTRS_HTTP_STATUS_CODE:()=>wb,SEMATTRS_HTTP_TARGET:()=>Ub,SEMATTRS_HTTP_URL:()=>bb,SEMATTRS_HTTP_USER_AGENT:()=>Gb,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>KU,SEMATTRS_MESSAGE_ID:()=>FU,SEMATTRS_MESSAGE_TYPE:()=>YU,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>jU,SEMATTRS_MESSAGING_CONSUMER_ID:()=>MU,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>hU,SEMATTRS_MESSAGING_DESTINATION:()=>fU,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>dU,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>xU,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>IU,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>LU,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>CU,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>bU,SEMATTRS_MESSAGING_MESSAGE_ID:()=>NU,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>yU,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>RU,SEMATTRS_MESSAGING_OPERATION:()=>PU,SEMATTRS_MESSAGING_PROTOCOL:()=>vU,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>OU,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>gU,SEMATTRS_MESSAGING_SYSTEM:()=>SU,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>AU,SEMATTRS_MESSAGING_URL:()=>mU,SEMATTRS_NET_HOST_CARRIER_ICC:()=>mb,SEMATTRS_NET_HOST_CARRIER_MCC:()=>vb,SEMATTRS_NET_HOST_CARRIER_MNC:()=>Ob,SEMATTRS_NET_HOST_CARRIER_NAME:()=>Ab,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>db,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>fb,SEMATTRS_NET_HOST_IP:()=>Eb,SEMATTRS_NET_HOST_NAME:()=>Sb,SEMATTRS_NET_HOST_PORT:()=>Tb,SEMATTRS_NET_PEER_IP:()=>lb,SEMATTRS_NET_PEER_NAME:()=>_b,SEMATTRS_NET_PEER_PORT:()=>pb,SEMATTRS_NET_TRANSPORT:()=>cb,SEMATTRS_PEER_SERVICE:()=>Nb,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>wU,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>HU,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>kU,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>GU,SEMATTRS_RPC_JSONRPC_VERSION:()=>BU,SEMATTRS_RPC_METHOD:()=>VU,SEMATTRS_RPC_SERVICE:()=>DU,SEMATTRS_RPC_SYSTEM:()=>UU,SEMATTRS_THREAD_ID:()=>Pb,SEMATTRS_THREAD_NAME:()=>Mb,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>D0,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>U0,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>V0,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>w0,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>B0,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>G0,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>H0,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>Y0,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>k0,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>K0,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>F0,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>I0,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>C0,SEMRESATTRS_CLOUD_PLATFORM:()=>b0,SEMRESATTRS_CLOUD_PROVIDER:()=>L0,SEMRESATTRS_CLOUD_REGION:()=>x0,SEMRESATTRS_CONTAINER_ID:()=>q0,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>z0,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>J0,SEMRESATTRS_CONTAINER_NAME:()=>j0,SEMRESATTRS_CONTAINER_RUNTIME:()=>W0,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>X0,SEMRESATTRS_DEVICE_ID:()=>$0,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>Q0,SEMRESATTRS_DEVICE_MODEL_NAME:()=>Z0,SEMRESATTRS_FAAS_ID:()=>tw,SEMRESATTRS_FAAS_INSTANCE:()=>nw,SEMRESATTRS_FAAS_MAX_MEMORY:()=>ow,SEMRESATTRS_FAAS_NAME:()=>ew,SEMRESATTRS_FAAS_VERSION:()=>rw,SEMRESATTRS_HOST_ARCH:()=>sw,SEMRESATTRS_HOST_ID:()=>iw,SEMRESATTRS_HOST_IMAGE_ID:()=>lw,SEMRESATTRS_HOST_IMAGE_NAME:()=>cw,SEMRESATTRS_HOST_IMAGE_VERSION:()=>pw,SEMRESATTRS_HOST_NAME:()=>aw,SEMRESATTRS_HOST_TYPE:()=>uw,SEMRESATTRS_K8S_CLUSTER_NAME:()=>_w,SEMRESATTRS_K8S_CONTAINER_NAME:()=>Aw,SEMRESATTRS_K8S_CRONJOB_NAME:()=>Iw,SEMRESATTRS_K8S_CRONJOB_UID:()=>Lw,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>Pw,SEMRESATTRS_K8S_DAEMONSET_UID:()=>yw,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>Nw,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>mw,SEMRESATTRS_K8S_JOB_NAME:()=>gw,SEMRESATTRS_K8S_JOB_UID:()=>Mw,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>Sw,SEMRESATTRS_K8S_NODE_NAME:()=>Ew,SEMRESATTRS_K8S_NODE_UID:()=>Tw,SEMRESATTRS_K8S_POD_NAME:()=>dw,SEMRESATTRS_K8S_POD_UID:()=>fw,SEMRESATTRS_K8S_REPLICASET_NAME:()=>Ow,SEMRESATTRS_K8S_REPLICASET_UID:()=>vw,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>Rw,SEMRESATTRS_K8S_STATEFULSET_UID:()=>hw,SEMRESATTRS_OS_DESCRIPTION:()=>Cw,SEMRESATTRS_OS_NAME:()=>bw,SEMRESATTRS_OS_TYPE:()=>xw,SEMRESATTRS_OS_VERSION:()=>Uw,SEMRESATTRS_PROCESS_COMMAND:()=>Bw,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>Hw,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>Gw,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>Vw,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>ww,SEMRESATTRS_PROCESS_OWNER:()=>kw,SEMRESATTRS_PROCESS_PID:()=>Dw,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>Kw,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>Yw,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>Fw,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>Ww,SEMRESATTRS_SERVICE_NAME:()=>jw,SEMRESATTRS_SERVICE_NAMESPACE:()=>qw,SEMRESATTRS_SERVICE_VERSION:()=>zw,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>Qw,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>Xw,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>Jw,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>$w,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>t1,SEMRESATTRS_WEBENGINE_NAME:()=>Zw,SEMRESATTRS_WEBENGINE_VERSION:()=>e1,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:()=>JG,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:()=>XG,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:()=>$G,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:()=>ZG,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:()=>eH,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:()=>tH,SemanticAttributes:()=>qU,SemanticResourceAttributes:()=>r1,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>J1,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>X1,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>$1,TELEMETRYSDKLANGUAGEVALUES_GO:()=>Q1,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>Z1,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>eB,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>tB,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>rB,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>nB,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>oB,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:()=>_B,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:()=>EB,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:()=>TB,TELEMETRY_SDK_LANGUAGE_VALUE_GO:()=>SB,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:()=>fB,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:()=>dB,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:()=>AB,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:()=>vB,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:()=>OB,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:()=>mB,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:()=>NB,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:()=>hB,TelemetrySdkLanguageValues:()=>iB});var EA=d(()=>{VS();cA();lA();pA()});var TA=S(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.SDK_INFO=void 0;var GH=Va(),vr=(EA(),h(_A));Rn.SDK_INFO={[vr.SEMRESATTRS_TELEMETRY_SDK_NAME]:"opentelemetry",[vr.SEMRESATTRS_PROCESS_RUNTIME_NAME]:"node",[vr.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]:vr.TELEMETRYSDKLANGUAGEVALUES_NODEJS,[vr.SEMRESATTRS_TELEMETRY_SDK_VERSION]:GH.VERSION}});var SA=S(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.unrefTimer=void 0;function HH(o){o.unref()}yn.unrefTimer=HH});var dA=S(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.unrefTimer=k.SDK_INFO=k.otperformance=k.RandomIdGenerator=k.hexToBase64=k._globalThis=k.getEnv=k.getEnvWithoutDefaults=void 0;var fA=Bl();Object.defineProperty(k,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return fA.getEnvWithoutDefaults}});Object.defineProperty(k,"getEnv",{enumerable:!0,get:function(){return fA.getEnv}});var kH=Gl();Object.defineProperty(k,"_globalThis",{enumerable:!0,get:function(){return kH._globalThis}});var YH=kl();Object.defineProperty(k,"hexToBase64",{enumerable:!0,get:function(){return YH.hexToBase64}});var FH=Kl();Object.defineProperty(k,"RandomIdGenerator",{enumerable:!0,get:function(){return FH.RandomIdGenerator}});var KH=jl();Object.defineProperty(k,"otperformance",{enumerable:!0,get:function(){return KH.otperformance}});var jH=TA();Object.defineProperty(k,"SDK_INFO",{enumerable:!0,get:function(){return jH.SDK_INFO}});var qH=SA();Object.defineProperty(k,"unrefTimer",{enumerable:!0,get:function(){return qH.unrefTimer}})});var Ba=S(Y=>{"use strict";Object.defineProperty(Y,"__esModule",{value:!0});Y.unrefTimer=Y.otperformance=Y.hexToBase64=Y.getEnvWithoutDefaults=Y.getEnv=Y._globalThis=Y.SDK_INFO=Y.RandomIdGenerator=void 0;var ke=dA();Object.defineProperty(Y,"RandomIdGenerator",{enumerable:!0,get:function(){return ke.RandomIdGenerator}});Object.defineProperty(Y,"SDK_INFO",{enumerable:!0,get:function(){return ke.SDK_INFO}});Object.defineProperty(Y,"_globalThis",{enumerable:!0,get:function(){return ke._globalThis}});Object.defineProperty(Y,"getEnv",{enumerable:!0,get:function(){return ke.getEnv}});Object.defineProperty(Y,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return ke.getEnvWithoutDefaults}});Object.defineProperty(Y,"hexToBase64",{enumerable:!0,get:function(){return ke.hexToBase64}});Object.defineProperty(Y,"otperformance",{enumerable:!0,get:function(){return ke.otperformance}});Object.defineProperty(Y,"unrefTimer",{enumerable:!0,get:function(){return ke.unrefTimer}})});var mA=S(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});g.addHrTimes=g.isTimeInput=g.isTimeInputHrTime=g.hrTimeToMicroseconds=g.hrTimeToMilliseconds=g.hrTimeToNanoseconds=g.hrTimeToTimeStamp=g.hrTimeDuration=g.timeInputToHrTime=g.hrTime=g.getTimeOrigin=g.millisToHrTime=void 0;var Ga=Ba(),AA=9,WH=6,zH=Math.pow(10,WH),Pn=Math.pow(10,AA);function Or(o){let r=o/1e3,i=Math.trunc(r),c=Math.round(o%1e3*zH);return[i,c]}g.millisToHrTime=Or;function Ha(){let o=Ga.otperformance.timeOrigin;if(typeof o!="number"){let r=Ga.otperformance;o=r.timing&&r.timing.fetchStart}return o}g.getTimeOrigin=Ha;function vA(o){let r=Or(Ha()),i=Or(typeof o=="number"?o:Ga.otperformance.now());return OA(r,i)}g.hrTime=vA;function JH(o){if(ka(o))return o;if(typeof o=="number")return o<Ha()?vA(o):Or(o);if(o instanceof Date)return Or(o.getTime());throw TypeError("Invalid input type")}g.timeInputToHrTime=JH;function XH(o,r){let i=r[0]-o[0],c=r[1]-o[1];return c<0&&(i-=1,c+=Pn),[i,c]}g.hrTimeDuration=XH;function $H(o){let r=AA,i=`${"0".repeat(r)}${o[1]}Z`,c=i.substring(i.length-r-1);return new Date(o[0]*1e3).toISOString().replace("000Z",c)}g.hrTimeToTimeStamp=$H;function QH(o){return o[0]*Pn+o[1]}g.hrTimeToNanoseconds=QH;function ZH(o){return o[0]*1e3+o[1]/1e6}g.hrTimeToMilliseconds=ZH;function ek(o){return o[0]*1e6+o[1]/1e3}g.hrTimeToMicroseconds=ek;function ka(o){return Array.isArray(o)&&o.length===2&&typeof o[0]=="number"&&typeof o[1]=="number"}g.isTimeInputHrTime=ka;function tk(o){return ka(o)||typeof o=="number"||o instanceof Date}g.isTimeInput=tk;function OA(o,r){let i=[o[0]+r[0],o[1]+r[1]];return i[1]>=Pn&&(i[1]-=Pn,i[0]+=1),i}g.addHrTimes=OA});var NA=S(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.ExportResultCode=void 0;var rk;(function(o){o[o.SUCCESS=0]="SUCCESS",o[o.FAILED=1]="FAILED"})(rk=mr.ExportResultCode||(mr.ExportResultCode={}))});var RA=S(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.CompositePropagator=void 0;var hA=(m(),h(y)),Ya=class{constructor(r={}){var i;this._propagators=(i=r.propagators)!==null&&i!==void 0?i:[],this._fields=Array.from(new Set(this._propagators.map(c=>typeof c.fields=="function"?c.fields():[]).reduce((c,a)=>c.concat(a),[])))}inject(r,i,c){for(let a of this._propagators)try{a.inject(r,i,c)}catch(u){hA.diag.warn(`Failed to inject with ${a.constructor.name}. Err: ${u.message}`)}}extract(r,i,c){return this._propagators.reduce((a,u)=>{try{return u.extract(a,i,c)}catch(t){hA.diag.warn(`Failed to extract with ${u.constructor.name}. Err: ${t.message}`)}return a},r)}fields(){return this._fields.slice()}};Mn.CompositePropagator=Ya});var yA=S(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.validateValue=yt.validateKey=void 0;var Fa="[_0-9a-z-*/]",nk=`[a-z]${Fa}{0,255}`,ok=`[a-z0-9]${Fa}{0,240}@[a-z]${Fa}{0,13}`,ik=new RegExp(`^(?:${nk}|${ok})$`),ak=/^[ -~]{0,255}[!-~]$/,uk=/,|=/;function sk(o){return ik.test(o)}yt.validateKey=sk;function ck(o){return ak.test(o)&&!uk.test(o)}yt.validateValue=ck});var ja=S(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.TraceState=void 0;var PA=yA(),MA=32,lk=512,gA=",",LA="=",Ka=class o{constructor(r){this._internalState=new Map,r&&this._parse(r)}set(r,i){let c=this._clone();return c._internalState.has(r)&&c._internalState.delete(r),c._internalState.set(r,i),c}unset(r){let i=this._clone();return i._internalState.delete(r),i}get(r){return this._internalState.get(r)}serialize(){return this._keys().reduce((r,i)=>(r.push(i+LA+this.get(i)),r),[]).join(gA)}_parse(r){r.length>lk||(this._internalState=r.split(gA).reverse().reduce((i,c)=>{let a=c.trim(),u=a.indexOf(LA);if(u!==-1){let t=a.slice(0,u),e=a.slice(u+1,c.length);(0,PA.validateKey)(t)&&(0,PA.validateValue)(e)&&i.set(t,e)}return i},new Map),this._internalState.size>MA&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,MA))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let r=new o;return r._internalState=new Map(this._internalState),r}};gn.TraceState=Ka});var xA=S(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.W3CTraceContextPropagator=X.parseTraceParent=X.TRACE_STATE_HEADER=X.TRACE_PARENT_HEADER=void 0;var Ln=(m(),h(y)),pk=dr(),_k=ja();X.TRACE_PARENT_HEADER="traceparent";X.TRACE_STATE_HEADER="tracestate";var Ek="00",Tk="(?!ff)[\\da-f]{2}",Sk="(?![0]{32})[\\da-f]{32}",fk="(?![0]{16})[\\da-f]{16}",dk="[\\da-f]{2}",Ak=new RegExp(`^\\s?(${Tk})-(${Sk})-(${fk})-(${dk})(-.*)?\\s?$`);function IA(o){let r=Ak.exec(o);return!r||r[1]==="00"&&r[5]?null:{traceId:r[2],spanId:r[3],traceFlags:parseInt(r[4],16)}}X.parseTraceParent=IA;var qa=class{inject(r,i,c){let a=Ln.trace.getSpanContext(r);if(!a||(0,pk.isTracingSuppressed)(r)||!(0,Ln.isSpanContextValid)(a))return;let u=`${Ek}-${a.traceId}-${a.spanId}-0${Number(a.traceFlags||Ln.TraceFlags.NONE).toString(16)}`;c.set(i,X.TRACE_PARENT_HEADER,u),a.traceState&&c.set(i,X.TRACE_STATE_HEADER,a.traceState.serialize())}extract(r,i,c){let a=c.get(i,X.TRACE_PARENT_HEADER);if(!a)return r;let u=Array.isArray(a)?a[0]:a;if(typeof u!="string")return r;let t=IA(u);if(!t)return r;t.isRemote=!0;let e=c.get(i,X.TRACE_STATE_HEADER);if(e){let n=Array.isArray(e)?e.join(","):e;t.traceState=new _k.TraceState(typeof n=="string"?n:void 0)}return Ln.trace.setSpanContext(r,t)}fields(){return[X.TRACE_PARENT_HEADER,X.TRACE_STATE_HEADER]}};X.W3CTraceContextPropagator=qa});var CA=S(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.getRPCMetadata=_e.deleteRPCMetadata=_e.setRPCMetadata=_e.RPCType=void 0;var vk=(m(),h(y)),Wa=(0,vk.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),Ok;(function(o){o.HTTP="http"})(Ok=_e.RPCType||(_e.RPCType={}));function mk(o,r){return o.setValue(Wa,r)}_e.setRPCMetadata=mk;function Nk(o){return o.deleteValue(Wa)}_e.deleteRPCMetadata=Nk;function hk(o){return o.getValue(Wa)}_e.getRPCMetadata=hk});var Ja=S(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.AlwaysOffSampler=void 0;var Rk=(m(),h(y)),za=class{shouldSample(){return{decision:Rk.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};In.AlwaysOffSampler=za});var $a=S(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.AlwaysOnSampler=void 0;var yk=(m(),h(y)),Xa=class{shouldSample(){return{decision:yk.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};xn.AlwaysOnSampler=Xa});var UA=S(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.ParentBasedSampler=void 0;var Cn=(m(),h(y)),Pk=Ia(),bA=Ja(),Qa=$a(),Za=class{constructor(r){var i,c,a,u;this._root=r.root,this._root||((0,Pk.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Qa.AlwaysOnSampler),this._remoteParentSampled=(i=r.remoteParentSampled)!==null&&i!==void 0?i:new Qa.AlwaysOnSampler,this._remoteParentNotSampled=(c=r.remoteParentNotSampled)!==null&&c!==void 0?c:new bA.AlwaysOffSampler,this._localParentSampled=(a=r.localParentSampled)!==null&&a!==void 0?a:new Qa.AlwaysOnSampler,this._localParentNotSampled=(u=r.localParentNotSampled)!==null&&u!==void 0?u:new bA.AlwaysOffSampler}shouldSample(r,i,c,a,u,t){let e=Cn.trace.getSpanContext(r);return!e||!(0,Cn.isSpanContextValid)(e)?this._root.shouldSample(r,i,c,a,u,t):e.isRemote?e.traceFlags&Cn.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(r,i,c,a,u,t):this._remoteParentNotSampled.shouldSample(r,i,c,a,u,t):e.traceFlags&Cn.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(r,i,c,a,u,t):this._localParentNotSampled.shouldSample(r,i,c,a,u,t)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};bn.ParentBasedSampler=Za});var DA=S(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.TraceIdRatioBasedSampler=void 0;var eu=(m(),h(y)),tu=class{constructor(r=0){this._ratio=r,this._ratio=this._normalize(r),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(r,i){return{decision:(0,eu.isValidTraceId)(i)&&this._accumulate(i)<this._upperBound?eu.SamplingDecision.RECORD_AND_SAMPLED:eu.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(r){return typeof r!="number"||isNaN(r)?0:r>=1?1:r<=0?0:r}_accumulate(r){let i=0;for(let c=0;c<r.length/8;c++){let a=c*8,u=parseInt(r.slice(a,a+8),16);i=(i^u)>>>0}return i}};Un.TraceIdRatioBasedSampler=tu});var HA=S(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.isPlainObject=void 0;var Mk="[object Object]",gk="[object Null]",Lk="[object Undefined]",Ik=Function.prototype,VA=Ik.toString,xk=VA.call(Object),Ck=bk(Object.getPrototypeOf,Object),wA=Object.prototype,BA=wA.hasOwnProperty,tt=Symbol?Symbol.toStringTag:void 0,GA=wA.toString;function bk(o,r){return function(i){return o(r(i))}}function Uk(o){if(!Dk(o)||Vk(o)!==Mk)return!1;let r=Ck(o);if(r===null)return!0;let i=BA.call(r,"constructor")&&r.constructor;return typeof i=="function"&&i instanceof i&&VA.call(i)===xk}Dn.isPlainObject=Uk;function Dk(o){return o!=null&&typeof o=="object"}function Vk(o){return o==null?o===void 0?Lk:gk:tt&&tt in Object(o)?wk(o):Bk(o)}function wk(o){let r=BA.call(o,tt),i=o[tt],c=!1;try{o[tt]=void 0,c=!0}catch{}let a=GA.call(o);return c&&(r?o[tt]=i:delete o[tt]),a}function Bk(o){return GA.call(o)}});var jA=S(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.merge=void 0;var kA=HA(),Gk=20;function Hk(...o){let r=o.shift(),i=new WeakMap;for(;o.length>0;)r=FA(r,o.shift(),0,i);return r}Bn.merge=Hk;function ru(o){return wn(o)?o.slice():o}function FA(o,r,i=0,c){let a;if(!(i>Gk)){if(i++,Vn(o)||Vn(r)||KA(r))a=ru(r);else if(wn(o)){if(a=o.slice(),wn(r))for(let u=0,t=r.length;u<t;u++)a.push(ru(r[u]));else if(Nr(r)){let u=Object.keys(r);for(let t=0,e=u.length;t<e;t++){let n=u[t];a[n]=ru(r[n])}}}else if(Nr(o))if(Nr(r)){if(!kk(o,r))return r;a=Object.assign({},o);let u=Object.keys(r);for(let t=0,e=u.length;t<e;t++){let n=u[t],s=r[n];if(Vn(s))typeof s>"u"?delete a[n]:a[n]=s;else{let l=a[n],E=s;if(YA(o,n,c)||YA(r,n,c))delete a[n];else{if(Nr(l)&&Nr(E)){let O=c.get(l)||[],x=c.get(E)||[];O.push({obj:o,key:n}),x.push({obj:r,key:n}),c.set(l,O),c.set(E,x)}a[n]=FA(a[n],s,i,c)}}}}else a=r;return a}}function YA(o,r,i){let c=i.get(o[r])||[];for(let a=0,u=c.length;a<u;a++){let t=c[a];if(t.key===r&&t.obj===o)return!0}return!1}function wn(o){return Array.isArray(o)}function KA(o){return typeof o=="function"}function Nr(o){return!Vn(o)&&!wn(o)&&!KA(o)&&typeof o=="object"}function Vn(o){return typeof o=="string"||typeof o=="number"||typeof o=="boolean"||typeof o>"u"||o instanceof Date||o instanceof RegExp||o===null}function kk(o,r){return!(!(0,kA.isPlainObject)(o)||!(0,kA.isPlainObject)(r))}});var qA=S(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.callWithTimeout=Pt.TimeoutError=void 0;var Gn=class o extends Error{constructor(r){super(r),Object.setPrototypeOf(this,o.prototype)}};Pt.TimeoutError=Gn;function Yk(o,r){let i,c=new Promise(function(u,t){i=setTimeout(function(){t(new Gn("Operation timed out."))},r)});return Promise.race([o,c]).then(a=>(clearTimeout(i),a),a=>{throw clearTimeout(i),a})}Pt.callWithTimeout=Yk});var zA=S(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.isUrlIgnored=Mt.urlMatches=void 0;function WA(o,r){return typeof r=="string"?o===r:!!o.match(r)}Mt.urlMatches=WA;function Fk(o,r){if(!r)return!1;for(let i of r)if(WA(o,i))return!0;return!1}Mt.isUrlIgnored=Fk});var JA=S(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.isWrapped=void 0;function Kk(o){return typeof o=="function"&&typeof o.__original=="function"&&typeof o.__unwrap=="function"&&o.__wrapped===!0}Hn.isWrapped=Kk});var XA=S(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.Deferred=void 0;var nu=class{constructor(){this._promise=new Promise((r,i)=>{this._resolve=r,this._reject=i})}get promise(){return this._promise}resolve(r){this._resolve(r)}reject(r){this._reject(r)}};kn.Deferred=nu});var $A=S(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.BindOnceFuture=void 0;var jk=XA(),ou=class{constructor(r,i){this._callback=r,this._that=i,this._isCalled=!1,this._deferred=new jk.Deferred}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...r){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...r)).then(i=>this._deferred.resolve(i),i=>this._deferred.reject(i))}catch(i){this._deferred.reject(i)}}return this._deferred.promise}};Yn.BindOnceFuture=ou});var ZA=S(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn._export=void 0;var QA=(m(),h(y)),qk=dr();function Wk(o,r){return new Promise(i=>{QA.context.with((0,qk.suppressTracing)(QA.context.active()),()=>{o.export(r,c=>{i(c)})})})}Fn._export=Wk});var C=S(f=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});f.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=f.DEFAULT_ATTRIBUTE_COUNT_LIMIT=f.TraceState=f.unsuppressTracing=f.suppressTracing=f.isTracingSuppressed=f.TraceIdRatioBasedSampler=f.ParentBasedSampler=f.AlwaysOnSampler=f.AlwaysOffSampler=f.setRPCMetadata=f.getRPCMetadata=f.deleteRPCMetadata=f.RPCType=f.parseTraceParent=f.W3CTraceContextPropagator=f.TRACE_STATE_HEADER=f.TRACE_PARENT_HEADER=f.CompositePropagator=f.unrefTimer=f.otperformance=f.hexToBase64=f.getEnvWithoutDefaults=f.getEnv=f._globalThis=f.SDK_INFO=f.RandomIdGenerator=f.baggageUtils=f.ExportResultCode=f.hexToBinary=f.timeInputToHrTime=f.millisToHrTime=f.isTimeInputHrTime=f.isTimeInput=f.hrTimeToTimeStamp=f.hrTimeToNanoseconds=f.hrTimeToMilliseconds=f.hrTimeToMicroseconds=f.hrTimeDuration=f.hrTime=f.getTimeOrigin=f.addHrTimes=f.loggingErrorHandler=f.setGlobalErrorHandler=f.globalErrorHandler=f.sanitizeAttributes=f.isAttributeValue=f.isAttributeKey=f.AnchoredClock=f.W3CBaggagePropagator=void 0;f.internal=f.VERSION=f.BindOnceFuture=f.isWrapped=f.urlMatches=f.isUrlIgnored=f.callWithTimeout=f.TimeoutError=f.TracesSamplerValues=f.merge=f.parseEnvironment=f.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=f.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=f.DEFAULT_ENVIRONMENT=void 0;var zk=Il();Object.defineProperty(f,"W3CBaggagePropagator",{enumerable:!0,get:function(){return zk.W3CBaggagePropagator}});var Jk=xl();Object.defineProperty(f,"AnchoredClock",{enumerable:!0,get:function(){return Jk.AnchoredClock}});var iu=Vl();Object.defineProperty(f,"isAttributeKey",{enumerable:!0,get:function(){return iu.isAttributeKey}});Object.defineProperty(f,"isAttributeValue",{enumerable:!0,get:function(){return iu.isAttributeValue}});Object.defineProperty(f,"sanitizeAttributes",{enumerable:!0,get:function(){return iu.sanitizeAttributes}});var ev=Ia();Object.defineProperty(f,"globalErrorHandler",{enumerable:!0,get:function(){return ev.globalErrorHandler}});Object.defineProperty(f,"setGlobalErrorHandler",{enumerable:!0,get:function(){return ev.setGlobalErrorHandler}});var Xk=La();Object.defineProperty(f,"loggingErrorHandler",{enumerable:!0,get:function(){return Xk.loggingErrorHandler}});var ae=mA();Object.defineProperty(f,"addHrTimes",{enumerable:!0,get:function(){return ae.addHrTimes}});Object.defineProperty(f,"getTimeOrigin",{enumerable:!0,get:function(){return ae.getTimeOrigin}});Object.defineProperty(f,"hrTime",{enumerable:!0,get:function(){return ae.hrTime}});Object.defineProperty(f,"hrTimeDuration",{enumerable:!0,get:function(){return ae.hrTimeDuration}});Object.defineProperty(f,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return ae.hrTimeToMicroseconds}});Object.defineProperty(f,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return ae.hrTimeToMilliseconds}});Object.defineProperty(f,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return ae.hrTimeToNanoseconds}});Object.defineProperty(f,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return ae.hrTimeToTimeStamp}});Object.defineProperty(f,"isTimeInput",{enumerable:!0,get:function(){return ae.isTimeInput}});Object.defineProperty(f,"isTimeInputHrTime",{enumerable:!0,get:function(){return ae.isTimeInputHrTime}});Object.defineProperty(f,"millisToHrTime",{enumerable:!0,get:function(){return ae.millisToHrTime}});Object.defineProperty(f,"timeInputToHrTime",{enumerable:!0,get:function(){return ae.timeInputToHrTime}});var $k=Ua();Object.defineProperty(f,"hexToBinary",{enumerable:!0,get:function(){return $k.hexToBinary}});var Qk=NA();Object.defineProperty(f,"ExportResultCode",{enumerable:!0,get:function(){return Qk.ExportResultCode}});var Kn=Ra();f.baggageUtils={getKeyPairs:Kn.getKeyPairs,serializeKeyPairs:Kn.serializeKeyPairs,parseKeyPairsIntoRecord:Kn.parseKeyPairsIntoRecord,parsePairKeyValue:Kn.parsePairKeyValue};var Ye=Ba();Object.defineProperty(f,"RandomIdGenerator",{enumerable:!0,get:function(){return Ye.RandomIdGenerator}});Object.defineProperty(f,"SDK_INFO",{enumerable:!0,get:function(){return Ye.SDK_INFO}});Object.defineProperty(f,"_globalThis",{enumerable:!0,get:function(){return Ye._globalThis}});Object.defineProperty(f,"getEnv",{enumerable:!0,get:function(){return Ye.getEnv}});Object.defineProperty(f,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return Ye.getEnvWithoutDefaults}});Object.defineProperty(f,"hexToBase64",{enumerable:!0,get:function(){return Ye.hexToBase64}});Object.defineProperty(f,"otperformance",{enumerable:!0,get:function(){return Ye.otperformance}});Object.defineProperty(f,"unrefTimer",{enumerable:!0,get:function(){return Ye.unrefTimer}});var Zk=RA();Object.defineProperty(f,"CompositePropagator",{enumerable:!0,get:function(){return Zk.CompositePropagator}});var jn=xA();Object.defineProperty(f,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return jn.TRACE_PARENT_HEADER}});Object.defineProperty(f,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return jn.TRACE_STATE_HEADER}});Object.defineProperty(f,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return jn.W3CTraceContextPropagator}});Object.defineProperty(f,"parseTraceParent",{enumerable:!0,get:function(){return jn.parseTraceParent}});var qn=CA();Object.defineProperty(f,"RPCType",{enumerable:!0,get:function(){return qn.RPCType}});Object.defineProperty(f,"deleteRPCMetadata",{enumerable:!0,get:function(){return qn.deleteRPCMetadata}});Object.defineProperty(f,"getRPCMetadata",{enumerable:!0,get:function(){return qn.getRPCMetadata}});Object.defineProperty(f,"setRPCMetadata",{enumerable:!0,get:function(){return qn.setRPCMetadata}});var eY=Ja();Object.defineProperty(f,"AlwaysOffSampler",{enumerable:!0,get:function(){return eY.AlwaysOffSampler}});var tY=$a();Object.defineProperty(f,"AlwaysOnSampler",{enumerable:!0,get:function(){return tY.AlwaysOnSampler}});var rY=UA();Object.defineProperty(f,"ParentBasedSampler",{enumerable:!0,get:function(){return rY.ParentBasedSampler}});var nY=DA();Object.defineProperty(f,"TraceIdRatioBasedSampler",{enumerable:!0,get:function(){return nY.TraceIdRatioBasedSampler}});var au=dr();Object.defineProperty(f,"isTracingSuppressed",{enumerable:!0,get:function(){return au.isTracingSuppressed}});Object.defineProperty(f,"suppressTracing",{enumerable:!0,get:function(){return au.suppressTracing}});Object.defineProperty(f,"unsuppressTracing",{enumerable:!0,get:function(){return au.unsuppressTracing}});var oY=ja();Object.defineProperty(f,"TraceState",{enumerable:!0,get:function(){return oY.TraceState}});var gt=Ca();Object.defineProperty(f,"DEFAULT_ATTRIBUTE_COUNT_LIMIT",{enumerable:!0,get:function(){return gt.DEFAULT_ATTRIBUTE_COUNT_LIMIT}});Object.defineProperty(f,"DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT",{enumerable:!0,get:function(){return gt.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT}});Object.defineProperty(f,"DEFAULT_ENVIRONMENT",{enumerable:!0,get:function(){return gt.DEFAULT_ENVIRONMENT}});Object.defineProperty(f,"DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT",{enumerable:!0,get:function(){return gt.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT}});Object.defineProperty(f,"DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT",{enumerable:!0,get:function(){return gt.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}});Object.defineProperty(f,"parseEnvironment",{enumerable:!0,get:function(){return gt.parseEnvironment}});var iY=jA();Object.defineProperty(f,"merge",{enumerable:!0,get:function(){return iY.merge}});var aY=xa();Object.defineProperty(f,"TracesSamplerValues",{enumerable:!0,get:function(){return aY.TracesSamplerValues}});var tv=qA();Object.defineProperty(f,"TimeoutError",{enumerable:!0,get:function(){return tv.TimeoutError}});Object.defineProperty(f,"callWithTimeout",{enumerable:!0,get:function(){return tv.callWithTimeout}});var rv=zA();Object.defineProperty(f,"isUrlIgnored",{enumerable:!0,get:function(){return rv.isUrlIgnored}});Object.defineProperty(f,"urlMatches",{enumerable:!0,get:function(){return rv.urlMatches}});var uY=JA();Object.defineProperty(f,"isWrapped",{enumerable:!0,get:function(){return uY.isWrapped}});var sY=$A();Object.defineProperty(f,"BindOnceFuture",{enumerable:!0,get:function(){return sY.BindOnceFuture}});var cY=Va();Object.defineProperty(f,"VERSION",{enumerable:!0,get:function(){return cY.VERSION}});var lY=ZA();f.internal={_export:lY._export}});function D(o){for(var r={},i=o.length,c=0;c<i;c++){var a=o[c];a&&(r[String(a).toUpperCase().replace(/[-.]/g,"_")]=a)}return r}var uu=d(()=>{});var nv,ov,iv,av,uv,sv,cv,lv,pv,_v,Ev,Tv,Sv,fv,dv,Av,vv,Ov,mv,Nv,hv,Rv,yv,Pv,Mv,gv,Lv,Iv,xv,Cv,bv,Uv,Dv,Vv,wv,Bv,Gv,Hv,kv,Yv,Fv,Kv,jv,qv,Wv,zv,Jv,Xv,$v,Qv,Zv,eO,tO,rO,nO,oO,iO,aO,uO,sO,cO,lO,pO,_O,EO,TO,SO,fO,dO,AO,vO,OO,mO,NO,hO,RO,yO,PO,MO,gO,LO,IO,xO,CO,bO,UO,DO,VO,wO,BO,GO,HO,kO,YO,FO,KO,jO,qO,WO,zO,JO,XO,$O,QO,ZO,em,tm,rm,nm,om,im,am,um,sm,cm,lm,pm,_m,Em,Tm,Sm,fm,dm,Am,vm,Om,mm,Nm,pY,_Y,EY,TY,SY,fY,dY,AY,vY,OY,mY,NY,hY,RY,yY,PY,MY,gY,LY,IY,xY,CY,bY,UY,DY,VY,wY,BY,GY,HY,kY,YY,FY,KY,jY,qY,WY,zY,JY,XY,$Y,QY,ZY,e2,t2,r2,n2,o2,i2,a2,u2,s2,c2,l2,p2,_2,E2,T2,S2,f2,d2,A2,v2,O2,m2,N2,h2,R2,y2,P2,M2,g2,L2,I2,x2,C2,b2,U2,D2,V2,w2,B2,G2,H2,k2,Y2,F2,K2,j2,q2,W2,z2,J2,X2,$2,Q2,Z2,eF,tF,rF,nF,oF,iF,aF,uF,sF,cF,lF,pF,_F,EF,TF,SF,fF,dF,AF,vF,OF,mF,NF,hF,RF,yF,PF,MF,gF,LF,IF,xF,hm,Rm,ym,Pm,Mm,gm,Lm,Im,xm,Cm,bm,Um,Dm,Vm,wm,Bm,Gm,Hm,km,Ym,Fm,Km,jm,qm,Wm,zm,Jm,Xm,$m,Qm,Zm,eN,tN,rN,nN,oN,iN,aN,uN,sN,cN,lN,pN,_N,EN,TN,SN,CF,bF,UF,DF,VF,wF,BF,GF,HF,kF,YF,FF,KF,jF,qF,WF,zF,JF,XF,$F,QF,ZF,e3,t3,r3,n3,o3,i3,a3,u3,s3,c3,l3,p3,_3,E3,T3,S3,f3,d3,A3,v3,O3,m3,N3,h3,R3,y3,fN,dN,AN,vN,ON,mN,NN,hN,RN,yN,PN,P3,M3,g3,L3,I3,x3,C3,b3,U3,D3,V3,w3,MN,gN,LN,IN,xN,B3,G3,H3,k3,Y3,F3,CN,bN,UN,K3,j3,q3,W3,DN,VN,wN,BN,z3,J3,X3,$3,Q3,GN,HN,kN,YN,FN,KN,jN,Z3,eK,tK,rK,nK,oK,iK,aK,qN,WN,zN,JN,XN,uK,sK,cK,lK,pK,_K,$N,QN,ZN,eh,th,rh,nh,oh,ih,ah,uh,sh,ch,lh,ph,_h,Eh,Th,Sh,fh,dh,EK,TK,SK,fK,dK,AK,vK,OK,mK,NK,hK,RK,yK,PK,MK,gK,LK,IK,xK,CK,bK,UK,Ah,vh,Oh,mh,Nh,DK,VK,wK,BK,GK,HK,hh,Rh,kK,YK,FK,yh,Ph,KK,jK,qK,Mh,gh,Lh,Ih,xh,Ch,bh,Uh,Dh,Vh,wh,Bh,Gh,Hh,kh,Yh,Fh,WK,zK,JK,XK,$K,QK,ZK,ej,tj,rj,nj,oj,ij,aj,uj,sj,cj,lj,Kh,jh,pj,_j,Ej,qh=d(()=>{uu();nv="aws.lambda.invoked_arn",ov="db.system",iv="db.connection_string",av="db.user",uv="db.jdbc.driver_classname",sv="db.name",cv="db.statement",lv="db.operation",pv="db.mssql.instance_name",_v="db.cassandra.keyspace",Ev="db.cassandra.page_size",Tv="db.cassandra.consistency_level",Sv="db.cassandra.table",fv="db.cassandra.idempotence",dv="db.cassandra.speculative_execution_count",Av="db.cassandra.coordinator.id",vv="db.cassandra.coordinator.dc",Ov="db.hbase.namespace",mv="db.redis.database_index",Nv="db.mongodb.collection",hv="db.sql.table",Rv="exception.type",yv="exception.message",Pv="exception.stacktrace",Mv="exception.escaped",gv="faas.trigger",Lv="faas.execution",Iv="faas.document.collection",xv="faas.document.operation",Cv="faas.document.time",bv="faas.document.name",Uv="faas.time",Dv="faas.cron",Vv="faas.coldstart",wv="faas.invoked_name",Bv="faas.invoked_provider",Gv="faas.invoked_region",Hv="net.transport",kv="net.peer.ip",Yv="net.peer.port",Fv="net.peer.name",Kv="net.host.ip",jv="net.host.port",qv="net.host.name",Wv="net.host.connection.type",zv="net.host.connection.subtype",Jv="net.host.carrier.name",Xv="net.host.carrier.mcc",$v="net.host.carrier.mnc",Qv="net.host.carrier.icc",Zv="peer.service",eO="enduser.id",tO="enduser.role",rO="enduser.scope",nO="thread.id",oO="thread.name",iO="code.function",aO="code.namespace",uO="code.filepath",sO="code.lineno",cO="http.method",lO="http.url",pO="http.target",_O="http.host",EO="http.scheme",TO="http.status_code",SO="http.flavor",fO="http.user_agent",dO="http.request_content_length",AO="http.request_content_length_uncompressed",vO="http.response_content_length",OO="http.response_content_length_uncompressed",mO="http.server_name",NO="http.route",hO="http.client_ip",RO="aws.dynamodb.table_names",yO="aws.dynamodb.consumed_capacity",PO="aws.dynamodb.item_collection_metrics",MO="aws.dynamodb.provisioned_read_capacity",gO="aws.dynamodb.provisioned_write_capacity",LO="aws.dynamodb.consistent_read",IO="aws.dynamodb.projection",xO="aws.dynamodb.limit",CO="aws.dynamodb.attributes_to_get",bO="aws.dynamodb.index_name",UO="aws.dynamodb.select",DO="aws.dynamodb.global_secondary_indexes",VO="aws.dynamodb.local_secondary_indexes",wO="aws.dynamodb.exclusive_start_table",BO="aws.dynamodb.table_count",GO="aws.dynamodb.scan_forward",HO="aws.dynamodb.segment",kO="aws.dynamodb.total_segments",YO="aws.dynamodb.count",FO="aws.dynamodb.scanned_count",KO="aws.dynamodb.attribute_definitions",jO="aws.dynamodb.global_secondary_index_updates",qO="messaging.system",WO="messaging.destination",zO="messaging.destination_kind",JO="messaging.temp_destination",XO="messaging.protocol",$O="messaging.protocol_version",QO="messaging.url",ZO="messaging.message_id",em="messaging.conversation_id",tm="messaging.message_payload_size_bytes",rm="messaging.message_payload_compressed_size_bytes",nm="messaging.operation",om="messaging.consumer_id",im="messaging.rabbitmq.routing_key",am="messaging.kafka.message_key",um="messaging.kafka.consumer_group",sm="messaging.kafka.client_id",cm="messaging.kafka.partition",lm="messaging.kafka.tombstone",pm="rpc.system",_m="rpc.service",Em="rpc.method",Tm="rpc.grpc.status_code",Sm="rpc.jsonrpc.version",fm="rpc.jsonrpc.request_id",dm="rpc.jsonrpc.error_code",Am="rpc.jsonrpc.error_message",vm="message.type",Om="message.id",mm="message.compressed_size",Nm="message.uncompressed_size",pY=nv,_Y=ov,EY=iv,TY=av,SY=uv,fY=sv,dY=cv,AY=lv,vY=pv,OY=_v,mY=Ev,NY=Tv,hY=Sv,RY=fv,yY=dv,PY=Av,MY=vv,gY=Ov,LY=mv,IY=Nv,xY=hv,CY=Rv,bY=yv,UY=Pv,DY=Mv,VY=gv,wY=Lv,BY=Iv,GY=xv,HY=Cv,kY=bv,YY=Uv,FY=Dv,KY=Vv,jY=wv,qY=Bv,WY=Gv,zY=Hv,JY=kv,XY=Yv,$Y=Fv,QY=Kv,ZY=jv,e2=qv,t2=Wv,r2=zv,n2=Jv,o2=Xv,i2=$v,a2=Qv,u2=Zv,s2=eO,c2=tO,l2=rO,p2=nO,_2=oO,E2=iO,T2=aO,S2=uO,f2=sO,d2=cO,A2=lO,v2=pO,O2=_O,m2=EO,N2=TO,h2=SO,R2=fO,y2=dO,P2=AO,M2=vO,g2=OO,L2=mO,I2=NO,x2=hO,C2=RO,b2=yO,U2=PO,D2=MO,V2=gO,w2=LO,B2=IO,G2=xO,H2=CO,k2=bO,Y2=UO,F2=DO,K2=VO,j2=wO,q2=BO,W2=GO,z2=HO,J2=kO,X2=YO,$2=FO,Q2=KO,Z2=jO,eF=qO,tF=WO,rF=zO,nF=JO,oF=XO,iF=$O,aF=QO,uF=ZO,sF=em,cF=tm,lF=rm,pF=nm,_F=om,EF=im,TF=am,SF=um,fF=sm,dF=cm,AF=lm,vF=pm,OF=_m,mF=Em,NF=Tm,hF=Sm,RF=fm,yF=dm,PF=Am,MF=vm,gF=Om,LF=mm,IF=Nm,xF=D([nv,ov,iv,av,uv,sv,cv,lv,pv,_v,Ev,Tv,Sv,fv,dv,Av,vv,Ov,mv,Nv,hv,Rv,yv,Pv,Mv,gv,Lv,Iv,xv,Cv,bv,Uv,Dv,Vv,wv,Bv,Gv,Hv,kv,Yv,Fv,Kv,jv,qv,Wv,zv,Jv,Xv,$v,Qv,Zv,eO,tO,rO,nO,oO,iO,aO,uO,sO,cO,lO,pO,_O,EO,TO,SO,fO,dO,AO,vO,OO,mO,NO,hO,RO,yO,PO,MO,gO,LO,IO,xO,CO,bO,UO,DO,VO,wO,BO,GO,HO,kO,YO,FO,KO,jO,qO,WO,zO,JO,XO,$O,QO,ZO,em,tm,rm,nm,om,im,am,um,sm,cm,lm,pm,_m,Em,Tm,Sm,fm,dm,Am,vm,Om,mm,Nm]),hm="other_sql",Rm="mssql",ym="mysql",Pm="oracle",Mm="db2",gm="postgresql",Lm="redshift",Im="hive",xm="cloudscape",Cm="hsqldb",bm="progress",Um="maxdb",Dm="hanadb",Vm="ingres",wm="firstsql",Bm="edb",Gm="cache",Hm="adabas",km="firebird",Ym="derby",Fm="filemaker",Km="informix",jm="instantdb",qm="interbase",Wm="mariadb",zm="netezza",Jm="pervasive",Xm="pointbase",$m="sqlite",Qm="sybase",Zm="teradata",eN="vertica",tN="h2",rN="coldfusion",nN="cassandra",oN="hbase",iN="mongodb",aN="redis",uN="couchbase",sN="couchdb",cN="cosmosdb",lN="dynamodb",pN="neo4j",_N="geode",EN="elasticsearch",TN="memcached",SN="cockroachdb",CF=hm,bF=Rm,UF=ym,DF=Pm,VF=Mm,wF=gm,BF=Lm,GF=Im,HF=xm,kF=Cm,YF=bm,FF=Um,KF=Dm,jF=Vm,qF=wm,WF=Bm,zF=Gm,JF=Hm,XF=km,$F=Ym,QF=Fm,ZF=Km,e3=jm,t3=qm,r3=Wm,n3=zm,o3=Jm,i3=Xm,a3=$m,u3=Qm,s3=Zm,c3=eN,l3=tN,p3=rN,_3=nN,E3=oN,T3=iN,S3=aN,f3=uN,d3=sN,A3=cN,v3=lN,O3=pN,m3=_N,N3=EN,h3=TN,R3=SN,y3=D([hm,Rm,ym,Pm,Mm,gm,Lm,Im,xm,Cm,bm,Um,Dm,Vm,wm,Bm,Gm,Hm,km,Ym,Fm,Km,jm,qm,Wm,zm,Jm,Xm,$m,Qm,Zm,eN,tN,rN,nN,oN,iN,aN,uN,sN,cN,lN,pN,_N,EN,TN,SN]),fN="all",dN="each_quorum",AN="quorum",vN="local_quorum",ON="one",mN="two",NN="three",hN="local_one",RN="any",yN="serial",PN="local_serial",P3=fN,M3=dN,g3=AN,L3=vN,I3=ON,x3=mN,C3=NN,b3=hN,U3=RN,D3=yN,V3=PN,w3=D([fN,dN,AN,vN,ON,mN,NN,hN,RN,yN,PN]),MN="datasource",gN="http",LN="pubsub",IN="timer",xN="other",B3=MN,G3=gN,H3=LN,k3=IN,Y3=xN,F3=D([MN,gN,LN,IN,xN]),CN="insert",bN="edit",UN="delete",K3=CN,j3=bN,q3=UN,W3=D([CN,bN,UN]),DN="alibaba_cloud",VN="aws",wN="azure",BN="gcp",z3=DN,J3=VN,X3=wN,$3=BN,Q3=D([DN,VN,wN,BN]),GN="ip_tcp",HN="ip_udp",kN="ip",YN="unix",FN="pipe",KN="inproc",jN="other",Z3=GN,eK=HN,tK=kN,rK=YN,nK=FN,oK=KN,iK=jN,aK=D([GN,HN,kN,YN,FN,KN,jN]),qN="wifi",WN="wired",zN="cell",JN="unavailable",XN="unknown",uK=qN,sK=WN,cK=zN,lK=JN,pK=XN,_K=D([qN,WN,zN,JN,XN]),$N="gprs",QN="edge",ZN="umts",eh="cdma",th="evdo_0",rh="evdo_a",nh="cdma2000_1xrtt",oh="hsdpa",ih="hsupa",ah="hspa",uh="iden",sh="evdo_b",ch="lte",lh="ehrpd",ph="hspap",_h="gsm",Eh="td_scdma",Th="iwlan",Sh="nr",fh="nrnsa",dh="lte_ca",EK=$N,TK=QN,SK=ZN,fK=eh,dK=th,AK=rh,vK=nh,OK=oh,mK=ih,NK=ah,hK=uh,RK=sh,yK=ch,PK=lh,MK=ph,gK=_h,LK=Eh,IK=Th,xK=Sh,CK=fh,bK=dh,UK=D([$N,QN,ZN,eh,th,rh,nh,oh,ih,ah,uh,sh,ch,lh,ph,_h,Eh,Th,Sh,fh,dh]),Ah="1.0",vh="1.1",Oh="2.0",mh="SPDY",Nh="QUIC",DK=Ah,VK=vh,wK=Oh,BK=mh,GK=Nh,HK={HTTP_1_0:Ah,HTTP_1_1:vh,HTTP_2_0:Oh,SPDY:mh,QUIC:Nh},hh="queue",Rh="topic",kK=hh,YK=Rh,FK=D([hh,Rh]),yh="receive",Ph="process",KK=yh,jK=Ph,qK=D([yh,Ph]),Mh=0,gh=1,Lh=2,Ih=3,xh=4,Ch=5,bh=6,Uh=7,Dh=8,Vh=9,wh=10,Bh=11,Gh=12,Hh=13,kh=14,Yh=15,Fh=16,WK=Mh,zK=gh,JK=Lh,XK=Ih,$K=xh,QK=Ch,ZK=bh,ej=Uh,tj=Dh,rj=Vh,nj=wh,oj=Bh,ij=Gh,aj=Hh,uj=kh,sj=Yh,cj=Fh,lj={OK:Mh,CANCELLED:gh,UNKNOWN:Lh,INVALID_ARGUMENT:Ih,DEADLINE_EXCEEDED:xh,NOT_FOUND:Ch,ALREADY_EXISTS:bh,PERMISSION_DENIED:Uh,RESOURCE_EXHAUSTED:Dh,FAILED_PRECONDITION:Vh,ABORTED:wh,OUT_OF_RANGE:Bh,UNIMPLEMENTED:Gh,INTERNAL:Hh,UNAVAILABLE:kh,DATA_LOSS:Yh,UNAUTHENTICATED:Fh},Kh="SENT",jh="RECEIVED",pj=Kh,_j=jh,Ej=D([Kh,jh])});var Wh=d(()=>{qh()});var zh,Jh,Xh,$h,Qh,Zh,eR,tR,rR,nR,oR,iR,aR,uR,sR,cR,lR,pR,_R,ER,TR,SR,fR,dR,AR,vR,OR,mR,NR,hR,RR,yR,PR,MR,gR,LR,IR,xR,CR,bR,UR,DR,VR,wR,BR,GR,HR,kR,YR,FR,KR,jR,qR,WR,zR,JR,XR,$R,QR,ZR,ey,ty,ry,ny,oy,iy,ay,uy,sy,cy,ly,py,_y,Ey,Ty,Sy,fy,dy,Ay,vy,Oy,Tj,Sj,fj,dj,Aj,vj,Oj,mj,Nj,hj,Rj,yj,Pj,Mj,gj,Lj,Ij,xj,Cj,bj,Uj,Dj,Vj,wj,Bj,Gj,Hj,kj,Yj,Fj,Kj,jj,qj,Wj,zj,Jj,Xj,$j,Qj,Zj,eq,tq,rq,nq,oq,iq,aq,uq,sq,cq,lq,pq,_q,Eq,Tq,Sq,fq,dq,Aq,vq,Oq,mq,Nq,hq,Rq,yq,Pq,Mq,gq,Lq,Iq,xq,Cq,bq,Uq,Dq,Vq,wq,Bq,Gq,Hq,kq,my,Ny,hy,Ry,Yq,Fq,Kq,jq,qq,yy,Py,My,gy,Ly,Iy,xy,Cy,by,Uy,Dy,Vy,wy,By,Gy,Hy,ky,Wq,zq,Jq,Xq,$q,Qq,Zq,e4,t4,r4,n4,o4,i4,a4,u4,s4,c4,l4,Yy,Fy,p4,_4,E4,Ky,jy,qy,Wy,zy,Jy,Xy,T4,S4,f4,d4,A4,v4,O4,m4,$y,Qy,Zy,eP,tP,rP,nP,oP,iP,aP,uP,N4,h4,R4,y4,P4,M4,g4,L4,I4,x4,C4,b4,sP,cP,lP,pP,_P,EP,TP,SP,fP,dP,U4,D4,V4,w4,B4,G4,H4,k4,Y4,F4,K4,AP=d(()=>{uu();zh="cloud.provider",Jh="cloud.account.id",Xh="cloud.region",$h="cloud.availability_zone",Qh="cloud.platform",Zh="aws.ecs.container.arn",eR="aws.ecs.cluster.arn",tR="aws.ecs.launchtype",rR="aws.ecs.task.arn",nR="aws.ecs.task.family",oR="aws.ecs.task.revision",iR="aws.eks.cluster.arn",aR="aws.log.group.names",uR="aws.log.group.arns",sR="aws.log.stream.names",cR="aws.log.stream.arns",lR="container.name",pR="container.id",_R="container.runtime",ER="container.image.name",TR="container.image.tag",SR="deployment.environment",fR="device.id",dR="device.model.identifier",AR="device.model.name",vR="faas.name",OR="faas.id",mR="faas.version",NR="faas.instance",hR="faas.max_memory",RR="host.id",yR="host.name",PR="host.type",MR="host.arch",gR="host.image.name",LR="host.image.id",IR="host.image.version",xR="k8s.cluster.name",CR="k8s.node.name",bR="k8s.node.uid",UR="k8s.namespace.name",DR="k8s.pod.uid",VR="k8s.pod.name",wR="k8s.container.name",BR="k8s.replicaset.uid",GR="k8s.replicaset.name",HR="k8s.deployment.uid",kR="k8s.deployment.name",YR="k8s.statefulset.uid",FR="k8s.statefulset.name",KR="k8s.daemonset.uid",jR="k8s.daemonset.name",qR="k8s.job.uid",WR="k8s.job.name",zR="k8s.cronjob.uid",JR="k8s.cronjob.name",XR="os.type",$R="os.description",QR="os.name",ZR="os.version",ey="process.pid",ty="process.executable.name",ry="process.executable.path",ny="process.command",oy="process.command_line",iy="process.command_args",ay="process.owner",uy="process.runtime.name",sy="process.runtime.version",cy="process.runtime.description",ly="service.name",py="service.namespace",_y="service.instance.id",Ey="service.version",Ty="telemetry.sdk.name",Sy="telemetry.sdk.language",fy="telemetry.sdk.version",dy="telemetry.auto.version",Ay="webengine.name",vy="webengine.version",Oy="webengine.description",Tj=zh,Sj=Jh,fj=Xh,dj=$h,Aj=Qh,vj=Zh,Oj=eR,mj=tR,Nj=rR,hj=nR,Rj=oR,yj=iR,Pj=aR,Mj=uR,gj=sR,Lj=cR,Ij=lR,xj=pR,Cj=_R,bj=ER,Uj=TR,Dj=SR,Vj=fR,wj=dR,Bj=AR,Gj=vR,Hj=OR,kj=mR,Yj=NR,Fj=hR,Kj=RR,jj=yR,qj=PR,Wj=MR,zj=gR,Jj=LR,Xj=IR,$j=xR,Qj=CR,Zj=bR,eq=UR,tq=DR,rq=VR,nq=wR,oq=BR,iq=GR,aq=HR,uq=kR,sq=YR,cq=FR,lq=KR,pq=jR,_q=qR,Eq=WR,Tq=zR,Sq=JR,fq=XR,dq=$R,Aq=QR,vq=ZR,Oq=ey,mq=ty,Nq=ry,hq=ny,Rq=oy,yq=iy,Pq=ay,Mq=uy,gq=sy,Lq=cy,Iq=ly,xq=py,Cq=_y,bq=Ey,Uq=Ty,Dq=Sy,Vq=fy,wq=dy,Bq=Ay,Gq=vy,Hq=Oy,kq=D([zh,Jh,Xh,$h,Qh,Zh,eR,tR,rR,nR,oR,iR,aR,uR,sR,cR,lR,pR,_R,ER,TR,SR,fR,dR,AR,vR,OR,mR,NR,hR,RR,yR,PR,MR,gR,LR,IR,xR,CR,bR,UR,DR,VR,wR,BR,GR,HR,kR,YR,FR,KR,jR,qR,WR,zR,JR,XR,$R,QR,ZR,ey,ty,ry,ny,oy,iy,ay,uy,sy,cy,ly,py,_y,Ey,Ty,Sy,fy,dy,Ay,vy,Oy]),my="alibaba_cloud",Ny="aws",hy="azure",Ry="gcp",Yq=my,Fq=Ny,Kq=hy,jq=Ry,qq=D([my,Ny,hy,Ry]),yy="alibaba_cloud_ecs",Py="alibaba_cloud_fc",My="aws_ec2",gy="aws_ecs",Ly="aws_eks",Iy="aws_lambda",xy="aws_elastic_beanstalk",Cy="azure_vm",by="azure_container_instances",Uy="azure_aks",Dy="azure_functions",Vy="azure_app_service",wy="gcp_compute_engine",By="gcp_cloud_run",Gy="gcp_kubernetes_engine",Hy="gcp_cloud_functions",ky="gcp_app_engine",Wq=yy,zq=Py,Jq=My,Xq=gy,$q=Ly,Qq=Iy,Zq=xy,e4=Cy,t4=by,r4=Uy,n4=Dy,o4=Vy,i4=wy,a4=By,u4=Gy,s4=Hy,c4=ky,l4=D([yy,Py,My,gy,Ly,Iy,xy,Cy,by,Uy,Dy,Vy,wy,By,Gy,Hy,ky]),Yy="ec2",Fy="fargate",p4=Yy,_4=Fy,E4=D([Yy,Fy]),Ky="amd64",jy="arm32",qy="arm64",Wy="ia64",zy="ppc32",Jy="ppc64",Xy="x86",T4=Ky,S4=jy,f4=qy,d4=Wy,A4=zy,v4=Jy,O4=Xy,m4=D([Ky,jy,qy,Wy,zy,Jy,Xy]),$y="windows",Qy="linux",Zy="darwin",eP="freebsd",tP="netbsd",rP="openbsd",nP="dragonflybsd",oP="hpux",iP="aix",aP="solaris",uP="z_os",N4=$y,h4=Qy,R4=Zy,y4=eP,P4=tP,M4=rP,g4=nP,L4=oP,I4=iP,x4=aP,C4=uP,b4=D([$y,Qy,Zy,eP,tP,rP,nP,oP,iP,aP,uP]),sP="cpp",cP="dotnet",lP="erlang",pP="go",_P="java",EP="nodejs",TP="php",SP="python",fP="ruby",dP="webjs",U4=sP,D4=cP,V4=lP,w4=pP,B4=_P,G4=EP,H4=TP,k4=SP,Y4=fP,F4=dP,K4=D([sP,cP,lP,pP,_P,EP,TP,SP,fP,dP])});var vP=d(()=>{AP()});var j4,q4,W4,z4,J4,X4,$4,Q4,Z4,eW,tW,rW,nW,oW,iW,aW,uW,sW,cW,lW,pW,_W,EW,TW,SW,fW,dW,AW,vW,OW,mW,NW,hW,RW,yW,PW,MW,gW,LW,IW,xW,CW,bW,UW,DW,VW,wW,BW,GW,HW,kW,YW,FW,KW,jW,qW,WW,zW,JW,XW,$W,QW,ZW,e6,t6,r6,n6,o6,i6,a6,u6,s6,c6,l6,p6,_6,E6,T6,S6,f6,d6,A6,v6,O6,m6,N6,h6,R6,y6,P6,M6,g6,L6,I6,x6,C6,b6,U6,D6,V6,w6,B6,G6,H6,k6,Y6,F6,K6,j6,q6,OP=d(()=>{j4="aspnetcore.rate_limiting.result",q4="acquired",W4="endpoint_limiter",z4="global_limiter",J4="request_canceled",X4="telemetry.sdk.language",$4="cpp",Q4="dotnet",Z4="erlang",eW="go",tW="java",rW="nodejs",nW="php",oW="python",iW="ruby",aW="rust",uW="swift",sW="webjs",cW="telemetry.sdk.name",lW="telemetry.sdk.version",pW="aspnetcore.diagnostics.handler.type",_W="aspnetcore.diagnostics.exception.result",EW="aborted",TW="handled",SW="skipped",fW="unhandled",dW="aspnetcore.rate_limiting.policy",AW="aspnetcore.request.is_unhandled",vW="aspnetcore.routing.is_fallback",OW="aspnetcore.routing.match_status",mW="failure",NW="success",hW="client.address",RW="client.port",yW="error.type",PW="_OTHER",MW="exception.escaped",gW="exception.message",LW="exception.stacktrace",IW="exception.type",xW=function(o){return"http.request.header."+o},CW="http.request.method",bW="_OTHER",UW="CONNECT",DW="DELETE",VW="GET",wW="HEAD",BW="OPTIONS",GW="PATCH",HW="POST",kW="PUT",YW="TRACE",FW="http.request.method_original",KW="http.request.resend_count",jW=function(o){return"http.response.header."+o},qW="http.response.status_code",WW="http.route",zW="jvm.gc.action",JW="jvm.gc.name",XW="jvm.memory.pool.name",$W="jvm.memory.type",QW="heap",ZW="non_heap",e6="jvm.thread.daemon",t6="jvm.thread.state",r6="blocked",n6="new",o6="runnable",i6="terminated",a6="timed_waiting",u6="waiting",s6="network.local.address",c6="network.local.port",l6="network.peer.address",p6="network.peer.port",_6="network.protocol.name",E6="network.protocol.version",T6="network.transport",S6="pipe",f6="quic",d6="tcp",A6="udp",v6="unix",O6="network.type",m6="ipv4",N6="ipv6",h6="otel.scope.name",R6="otel.scope.version",y6="otel.status_code",P6="ERROR",M6="OK",g6="otel.status_description",L6="server.address",I6="server.port",x6="service.name",C6="service.version",b6="signalr.connection.status",U6="app_shutdown",D6="normal_closure",V6="timeout",w6="signalr.transport",B6="long_polling",G6="server_sent_events",H6="web_sockets",k6="url.fragment",Y6="url.full",F6="url.path",K6="url.query",j6="url.scheme",q6="user_agent.original"});var W6,z6,J6,X6,$6,Q6,Z6,e8,t8,r8,n8,o8,i8,a8,u8,s8,c8,l8,p8,_8,E8,T8,S8,f8,d8,A8,v8,O8,m8,N8,h8,mP=d(()=>{W6="aspnetcore.diagnostics.exceptions",z6="aspnetcore.rate_limiting.active_request_leases",J6="aspnetcore.rate_limiting.queued_requests",X6="aspnetcore.rate_limiting.request.time_in_queue",$6="aspnetcore.rate_limiting.request_lease.duration",Q6="aspnetcore.rate_limiting.requests",Z6="aspnetcore.routing.match_attempts",e8="http.client.request.duration",t8="http.server.request.duration",r8="jvm.class.count",n8="jvm.class.loaded",o8="jvm.class.unloaded",i8="jvm.cpu.count",a8="jvm.cpu.recent_utilization",u8="jvm.cpu.time",s8="jvm.gc.duration",c8="jvm.memory.committed",l8="jvm.memory.limit",p8="jvm.memory.used",_8="jvm.memory.used_after_last_gc",E8="jvm.thread.count",T8="kestrel.active_connections",S8="kestrel.active_tls_handshakes",f8="kestrel.connection.duration",d8="kestrel.queued_connections",A8="kestrel.queued_requests",v8="kestrel.rejected_connections",O8="kestrel.tls_handshake.duration",m8="kestrel.upgraded_connections",N8="signalr.server.active_connections",h8="signalr.server.connection.duration"});var NP={};ft(NP,{ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:()=>EW,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:()=>TW,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:()=>SW,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:()=>fW,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:()=>q4,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:()=>W4,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:()=>z4,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:()=>J4,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:()=>mW,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:()=>NW,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:()=>_W,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:()=>pW,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:()=>dW,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:()=>j4,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:()=>AW,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:()=>vW,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:()=>OW,ATTR_CLIENT_ADDRESS:()=>hW,ATTR_CLIENT_PORT:()=>RW,ATTR_ERROR_TYPE:()=>yW,ATTR_EXCEPTION_ESCAPED:()=>MW,ATTR_EXCEPTION_MESSAGE:()=>gW,ATTR_EXCEPTION_STACKTRACE:()=>LW,ATTR_EXCEPTION_TYPE:()=>IW,ATTR_HTTP_REQUEST_HEADER:()=>xW,ATTR_HTTP_REQUEST_METHOD:()=>CW,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:()=>FW,ATTR_HTTP_REQUEST_RESEND_COUNT:()=>KW,ATTR_HTTP_RESPONSE_HEADER:()=>jW,ATTR_HTTP_RESPONSE_STATUS_CODE:()=>qW,ATTR_HTTP_ROUTE:()=>WW,ATTR_JVM_GC_ACTION:()=>zW,ATTR_JVM_GC_NAME:()=>JW,ATTR_JVM_MEMORY_POOL_NAME:()=>XW,ATTR_JVM_MEMORY_TYPE:()=>$W,ATTR_JVM_THREAD_DAEMON:()=>e6,ATTR_JVM_THREAD_STATE:()=>t6,ATTR_NETWORK_LOCAL_ADDRESS:()=>s6,ATTR_NETWORK_LOCAL_PORT:()=>c6,ATTR_NETWORK_PEER_ADDRESS:()=>l6,ATTR_NETWORK_PEER_PORT:()=>p6,ATTR_NETWORK_PROTOCOL_NAME:()=>_6,ATTR_NETWORK_PROTOCOL_VERSION:()=>E6,ATTR_NETWORK_TRANSPORT:()=>T6,ATTR_NETWORK_TYPE:()=>O6,ATTR_OTEL_SCOPE_NAME:()=>h6,ATTR_OTEL_SCOPE_VERSION:()=>R6,ATTR_OTEL_STATUS_CODE:()=>y6,ATTR_OTEL_STATUS_DESCRIPTION:()=>g6,ATTR_SERVER_ADDRESS:()=>L6,ATTR_SERVER_PORT:()=>I6,ATTR_SERVICE_NAME:()=>x6,ATTR_SERVICE_VERSION:()=>C6,ATTR_SIGNALR_CONNECTION_STATUS:()=>b6,ATTR_SIGNALR_TRANSPORT:()=>w6,ATTR_TELEMETRY_SDK_LANGUAGE:()=>X4,ATTR_TELEMETRY_SDK_NAME:()=>cW,ATTR_TELEMETRY_SDK_VERSION:()=>lW,ATTR_URL_FRAGMENT:()=>k6,ATTR_URL_FULL:()=>Y6,ATTR_URL_PATH:()=>F6,ATTR_URL_QUERY:()=>K6,ATTR_URL_SCHEME:()=>j6,ATTR_USER_AGENT_ORIGINAL:()=>q6,AWSECSLAUNCHTYPEVALUES_EC2:()=>p4,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>_4,AwsEcsLaunchtypeValues:()=>E4,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>Wq,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>zq,CLOUDPLATFORMVALUES_AWS_EC2:()=>Jq,CLOUDPLATFORMVALUES_AWS_ECS:()=>Xq,CLOUDPLATFORMVALUES_AWS_EKS:()=>$q,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>Zq,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>Qq,CLOUDPLATFORMVALUES_AZURE_AKS:()=>r4,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>o4,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>t4,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>n4,CLOUDPLATFORMVALUES_AZURE_VM:()=>e4,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>c4,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>s4,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>a4,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>i4,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>u4,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>Yq,CLOUDPROVIDERVALUES_AWS:()=>Fq,CLOUDPROVIDERVALUES_AZURE:()=>Kq,CLOUDPROVIDERVALUES_GCP:()=>jq,CloudPlatformValues:()=>l4,CloudProviderValues:()=>qq,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>P3,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>U3,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>M3,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>b3,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>L3,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>V3,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>I3,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>g3,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>D3,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>C3,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>x3,DBSYSTEMVALUES_ADABAS:()=>JF,DBSYSTEMVALUES_CACHE:()=>zF,DBSYSTEMVALUES_CASSANDRA:()=>_3,DBSYSTEMVALUES_CLOUDSCAPE:()=>HF,DBSYSTEMVALUES_COCKROACHDB:()=>R3,DBSYSTEMVALUES_COLDFUSION:()=>p3,DBSYSTEMVALUES_COSMOSDB:()=>A3,DBSYSTEMVALUES_COUCHBASE:()=>f3,DBSYSTEMVALUES_COUCHDB:()=>d3,DBSYSTEMVALUES_DB2:()=>VF,DBSYSTEMVALUES_DERBY:()=>$F,DBSYSTEMVALUES_DYNAMODB:()=>v3,DBSYSTEMVALUES_EDB:()=>WF,DBSYSTEMVALUES_ELASTICSEARCH:()=>N3,DBSYSTEMVALUES_FILEMAKER:()=>QF,DBSYSTEMVALUES_FIREBIRD:()=>XF,DBSYSTEMVALUES_FIRSTSQL:()=>qF,DBSYSTEMVALUES_GEODE:()=>m3,DBSYSTEMVALUES_H2:()=>l3,DBSYSTEMVALUES_HANADB:()=>KF,DBSYSTEMVALUES_HBASE:()=>E3,DBSYSTEMVALUES_HIVE:()=>GF,DBSYSTEMVALUES_HSQLDB:()=>kF,DBSYSTEMVALUES_INFORMIX:()=>ZF,DBSYSTEMVALUES_INGRES:()=>jF,DBSYSTEMVALUES_INSTANTDB:()=>e3,DBSYSTEMVALUES_INTERBASE:()=>t3,DBSYSTEMVALUES_MARIADB:()=>r3,DBSYSTEMVALUES_MAXDB:()=>FF,DBSYSTEMVALUES_MEMCACHED:()=>h3,DBSYSTEMVALUES_MONGODB:()=>T3,DBSYSTEMVALUES_MSSQL:()=>bF,DBSYSTEMVALUES_MYSQL:()=>UF,DBSYSTEMVALUES_NEO4J:()=>O3,DBSYSTEMVALUES_NETEZZA:()=>n3,DBSYSTEMVALUES_ORACLE:()=>DF,DBSYSTEMVALUES_OTHER_SQL:()=>CF,DBSYSTEMVALUES_PERVASIVE:()=>o3,DBSYSTEMVALUES_POINTBASE:()=>i3,DBSYSTEMVALUES_POSTGRESQL:()=>wF,DBSYSTEMVALUES_PROGRESS:()=>YF,DBSYSTEMVALUES_REDIS:()=>S3,DBSYSTEMVALUES_REDSHIFT:()=>BF,DBSYSTEMVALUES_SQLITE:()=>a3,DBSYSTEMVALUES_SYBASE:()=>u3,DBSYSTEMVALUES_TERADATA:()=>s3,DBSYSTEMVALUES_VERTICA:()=>c3,DbCassandraConsistencyLevelValues:()=>w3,DbSystemValues:()=>y3,ERROR_TYPE_VALUE_OTHER:()=>PW,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>q3,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>j3,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>K3,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>z3,FAASINVOKEDPROVIDERVALUES_AWS:()=>J3,FAASINVOKEDPROVIDERVALUES_AZURE:()=>X3,FAASINVOKEDPROVIDERVALUES_GCP:()=>$3,FAASTRIGGERVALUES_DATASOURCE:()=>B3,FAASTRIGGERVALUES_HTTP:()=>G3,FAASTRIGGERVALUES_OTHER:()=>Y3,FAASTRIGGERVALUES_PUBSUB:()=>H3,FAASTRIGGERVALUES_TIMER:()=>k3,FaasDocumentOperationValues:()=>W3,FaasInvokedProviderValues:()=>Q3,FaasTriggerValues:()=>F3,HOSTARCHVALUES_AMD64:()=>T4,HOSTARCHVALUES_ARM32:()=>S4,HOSTARCHVALUES_ARM64:()=>f4,HOSTARCHVALUES_IA64:()=>d4,HOSTARCHVALUES_PPC32:()=>A4,HOSTARCHVALUES_PPC64:()=>v4,HOSTARCHVALUES_X86:()=>O4,HTTPFLAVORVALUES_HTTP_1_0:()=>DK,HTTPFLAVORVALUES_HTTP_1_1:()=>VK,HTTPFLAVORVALUES_HTTP_2_0:()=>wK,HTTPFLAVORVALUES_QUIC:()=>GK,HTTPFLAVORVALUES_SPDY:()=>BK,HTTP_REQUEST_METHOD_VALUE_CONNECT:()=>UW,HTTP_REQUEST_METHOD_VALUE_DELETE:()=>DW,HTTP_REQUEST_METHOD_VALUE_GET:()=>VW,HTTP_REQUEST_METHOD_VALUE_HEAD:()=>wW,HTTP_REQUEST_METHOD_VALUE_OPTIONS:()=>BW,HTTP_REQUEST_METHOD_VALUE_OTHER:()=>bW,HTTP_REQUEST_METHOD_VALUE_PATCH:()=>GW,HTTP_REQUEST_METHOD_VALUE_POST:()=>HW,HTTP_REQUEST_METHOD_VALUE_PUT:()=>kW,HTTP_REQUEST_METHOD_VALUE_TRACE:()=>YW,HostArchValues:()=>m4,HttpFlavorValues:()=>HK,JVM_MEMORY_TYPE_VALUE_HEAP:()=>QW,JVM_MEMORY_TYPE_VALUE_NON_HEAP:()=>ZW,JVM_THREAD_STATE_VALUE_BLOCKED:()=>r6,JVM_THREAD_STATE_VALUE_NEW:()=>n6,JVM_THREAD_STATE_VALUE_RUNNABLE:()=>o6,JVM_THREAD_STATE_VALUE_TERMINATED:()=>i6,JVM_THREAD_STATE_VALUE_TIMED_WAITING:()=>a6,JVM_THREAD_STATE_VALUE_WAITING:()=>u6,MESSAGETYPEVALUES_RECEIVED:()=>_j,MESSAGETYPEVALUES_SENT:()=>pj,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>kK,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>YK,MESSAGINGOPERATIONVALUES_PROCESS:()=>jK,MESSAGINGOPERATIONVALUES_RECEIVE:()=>KK,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:()=>W6,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:()=>z6,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:()=>J6,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:()=>Q6,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:()=>$6,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:()=>X6,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:()=>Z6,METRIC_HTTP_CLIENT_REQUEST_DURATION:()=>e8,METRIC_HTTP_SERVER_REQUEST_DURATION:()=>t8,METRIC_JVM_CLASS_COUNT:()=>r8,METRIC_JVM_CLASS_LOADED:()=>n8,METRIC_JVM_CLASS_UNLOADED:()=>o8,METRIC_JVM_CPU_COUNT:()=>i8,METRIC_JVM_CPU_RECENT_UTILIZATION:()=>a8,METRIC_JVM_CPU_TIME:()=>u8,METRIC_JVM_GC_DURATION:()=>s8,METRIC_JVM_MEMORY_COMMITTED:()=>c8,METRIC_JVM_MEMORY_LIMIT:()=>l8,METRIC_JVM_MEMORY_USED:()=>p8,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:()=>_8,METRIC_JVM_THREAD_COUNT:()=>E8,METRIC_KESTREL_ACTIVE_CONNECTIONS:()=>T8,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:()=>S8,METRIC_KESTREL_CONNECTION_DURATION:()=>f8,METRIC_KESTREL_QUEUED_CONNECTIONS:()=>d8,METRIC_KESTREL_QUEUED_REQUESTS:()=>A8,METRIC_KESTREL_REJECTED_CONNECTIONS:()=>v8,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:()=>O8,METRIC_KESTREL_UPGRADED_CONNECTIONS:()=>m8,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:()=>N8,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:()=>h8,MessageTypeValues:()=>Ej,MessagingDestinationKindValues:()=>FK,MessagingOperationValues:()=>qK,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>fK,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>vK,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>TK,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>PK,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>dK,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>AK,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>RK,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>EK,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>gK,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>OK,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>NK,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>MK,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>mK,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>hK,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>IK,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>yK,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>bK,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>xK,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>CK,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>LK,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>SK,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>cK,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>lK,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>pK,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>uK,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>sK,NETTRANSPORTVALUES_INPROC:()=>oK,NETTRANSPORTVALUES_IP:()=>tK,NETTRANSPORTVALUES_IP_TCP:()=>Z3,NETTRANSPORTVALUES_IP_UDP:()=>eK,NETTRANSPORTVALUES_OTHER:()=>iK,NETTRANSPORTVALUES_PIPE:()=>nK,NETTRANSPORTVALUES_UNIX:()=>rK,NETWORK_TRANSPORT_VALUE_PIPE:()=>S6,NETWORK_TRANSPORT_VALUE_QUIC:()=>f6,NETWORK_TRANSPORT_VALUE_TCP:()=>d6,NETWORK_TRANSPORT_VALUE_UDP:()=>A6,NETWORK_TRANSPORT_VALUE_UNIX:()=>v6,NETWORK_TYPE_VALUE_IPV4:()=>m6,NETWORK_TYPE_VALUE_IPV6:()=>N6,NetHostConnectionSubtypeValues:()=>UK,NetHostConnectionTypeValues:()=>_K,NetTransportValues:()=>aK,OSTYPEVALUES_AIX:()=>I4,OSTYPEVALUES_DARWIN:()=>R4,OSTYPEVALUES_DRAGONFLYBSD:()=>g4,OSTYPEVALUES_FREEBSD:()=>y4,OSTYPEVALUES_HPUX:()=>L4,OSTYPEVALUES_LINUX:()=>h4,OSTYPEVALUES_NETBSD:()=>P4,OSTYPEVALUES_OPENBSD:()=>M4,OSTYPEVALUES_SOLARIS:()=>x4,OSTYPEVALUES_WINDOWS:()=>N4,OSTYPEVALUES_Z_OS:()=>C4,OTEL_STATUS_CODE_VALUE_ERROR:()=>P6,OTEL_STATUS_CODE_VALUE_OK:()=>M6,OsTypeValues:()=>b4,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>nj,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>ZK,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>zK,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>sj,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>$K,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>rj,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>aj,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>XK,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>QK,RPCGRPCSTATUSCODEVALUES_OK:()=>WK,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>oj,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>ej,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>tj,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>cj,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>uj,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>ij,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>JK,RpcGrpcStatusCodeValues:()=>lj,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>H2,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>Q2,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>w2,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>b2,SEMATTRS_AWS_DYNAMODB_COUNT:()=>X2,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>j2,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>F2,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>Z2,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>k2,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>U2,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>G2,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>K2,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>B2,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>D2,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>V2,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>$2,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>W2,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>z2,SEMATTRS_AWS_DYNAMODB_SELECT:()=>Y2,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>q2,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>C2,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>J2,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>pY,SEMATTRS_CODE_FILEPATH:()=>S2,SEMATTRS_CODE_FUNCTION:()=>E2,SEMATTRS_CODE_LINENO:()=>f2,SEMATTRS_CODE_NAMESPACE:()=>T2,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>NY,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>MY,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>PY,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>RY,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>OY,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>mY,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>yY,SEMATTRS_DB_CASSANDRA_TABLE:()=>hY,SEMATTRS_DB_CONNECTION_STRING:()=>EY,SEMATTRS_DB_HBASE_NAMESPACE:()=>gY,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>SY,SEMATTRS_DB_MONGODB_COLLECTION:()=>IY,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>vY,SEMATTRS_DB_NAME:()=>fY,SEMATTRS_DB_OPERATION:()=>AY,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>LY,SEMATTRS_DB_SQL_TABLE:()=>xY,SEMATTRS_DB_STATEMENT:()=>dY,SEMATTRS_DB_SYSTEM:()=>_Y,SEMATTRS_DB_USER:()=>TY,SEMATTRS_ENDUSER_ID:()=>s2,SEMATTRS_ENDUSER_ROLE:()=>c2,SEMATTRS_ENDUSER_SCOPE:()=>l2,SEMATTRS_EXCEPTION_ESCAPED:()=>DY,SEMATTRS_EXCEPTION_MESSAGE:()=>bY,SEMATTRS_EXCEPTION_STACKTRACE:()=>UY,SEMATTRS_EXCEPTION_TYPE:()=>CY,SEMATTRS_FAAS_COLDSTART:()=>KY,SEMATTRS_FAAS_CRON:()=>FY,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>BY,SEMATTRS_FAAS_DOCUMENT_NAME:()=>kY,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>GY,SEMATTRS_FAAS_DOCUMENT_TIME:()=>HY,SEMATTRS_FAAS_EXECUTION:()=>wY,SEMATTRS_FAAS_INVOKED_NAME:()=>jY,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>qY,SEMATTRS_FAAS_INVOKED_REGION:()=>WY,SEMATTRS_FAAS_TIME:()=>YY,SEMATTRS_FAAS_TRIGGER:()=>VY,SEMATTRS_HTTP_CLIENT_IP:()=>x2,SEMATTRS_HTTP_FLAVOR:()=>h2,SEMATTRS_HTTP_HOST:()=>O2,SEMATTRS_HTTP_METHOD:()=>d2,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>y2,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>P2,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>M2,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>g2,SEMATTRS_HTTP_ROUTE:()=>I2,SEMATTRS_HTTP_SCHEME:()=>m2,SEMATTRS_HTTP_SERVER_NAME:()=>L2,SEMATTRS_HTTP_STATUS_CODE:()=>N2,SEMATTRS_HTTP_TARGET:()=>v2,SEMATTRS_HTTP_URL:()=>A2,SEMATTRS_HTTP_USER_AGENT:()=>R2,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>LF,SEMATTRS_MESSAGE_ID:()=>gF,SEMATTRS_MESSAGE_TYPE:()=>MF,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>IF,SEMATTRS_MESSAGING_CONSUMER_ID:()=>_F,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>sF,SEMATTRS_MESSAGING_DESTINATION:()=>tF,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>rF,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>fF,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>SF,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>TF,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>dF,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>AF,SEMATTRS_MESSAGING_MESSAGE_ID:()=>uF,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>lF,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>cF,SEMATTRS_MESSAGING_OPERATION:()=>pF,SEMATTRS_MESSAGING_PROTOCOL:()=>oF,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>iF,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>EF,SEMATTRS_MESSAGING_SYSTEM:()=>eF,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>nF,SEMATTRS_MESSAGING_URL:()=>aF,SEMATTRS_NET_HOST_CARRIER_ICC:()=>a2,SEMATTRS_NET_HOST_CARRIER_MCC:()=>o2,SEMATTRS_NET_HOST_CARRIER_MNC:()=>i2,SEMATTRS_NET_HOST_CARRIER_NAME:()=>n2,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>r2,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>t2,SEMATTRS_NET_HOST_IP:()=>QY,SEMATTRS_NET_HOST_NAME:()=>e2,SEMATTRS_NET_HOST_PORT:()=>ZY,SEMATTRS_NET_PEER_IP:()=>JY,SEMATTRS_NET_PEER_NAME:()=>$Y,SEMATTRS_NET_PEER_PORT:()=>XY,SEMATTRS_NET_TRANSPORT:()=>zY,SEMATTRS_PEER_SERVICE:()=>u2,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>NF,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>yF,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>PF,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>RF,SEMATTRS_RPC_JSONRPC_VERSION:()=>hF,SEMATTRS_RPC_METHOD:()=>mF,SEMATTRS_RPC_SERVICE:()=>OF,SEMATTRS_RPC_SYSTEM:()=>vF,SEMATTRS_THREAD_ID:()=>p2,SEMATTRS_THREAD_NAME:()=>_2,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>Oj,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>vj,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>mj,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>Nj,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>hj,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>Rj,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>yj,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>Mj,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>Pj,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>Lj,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>gj,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>Sj,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>dj,SEMRESATTRS_CLOUD_PLATFORM:()=>Aj,SEMRESATTRS_CLOUD_PROVIDER:()=>Tj,SEMRESATTRS_CLOUD_REGION:()=>fj,SEMRESATTRS_CONTAINER_ID:()=>xj,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>bj,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>Uj,SEMRESATTRS_CONTAINER_NAME:()=>Ij,SEMRESATTRS_CONTAINER_RUNTIME:()=>Cj,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>Dj,SEMRESATTRS_DEVICE_ID:()=>Vj,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>wj,SEMRESATTRS_DEVICE_MODEL_NAME:()=>Bj,SEMRESATTRS_FAAS_ID:()=>Hj,SEMRESATTRS_FAAS_INSTANCE:()=>Yj,SEMRESATTRS_FAAS_MAX_MEMORY:()=>Fj,SEMRESATTRS_FAAS_NAME:()=>Gj,SEMRESATTRS_FAAS_VERSION:()=>kj,SEMRESATTRS_HOST_ARCH:()=>Wj,SEMRESATTRS_HOST_ID:()=>Kj,SEMRESATTRS_HOST_IMAGE_ID:()=>Jj,SEMRESATTRS_HOST_IMAGE_NAME:()=>zj,SEMRESATTRS_HOST_IMAGE_VERSION:()=>Xj,SEMRESATTRS_HOST_NAME:()=>jj,SEMRESATTRS_HOST_TYPE:()=>qj,SEMRESATTRS_K8S_CLUSTER_NAME:()=>$j,SEMRESATTRS_K8S_CONTAINER_NAME:()=>nq,SEMRESATTRS_K8S_CRONJOB_NAME:()=>Sq,SEMRESATTRS_K8S_CRONJOB_UID:()=>Tq,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>pq,SEMRESATTRS_K8S_DAEMONSET_UID:()=>lq,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>uq,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>aq,SEMRESATTRS_K8S_JOB_NAME:()=>Eq,SEMRESATTRS_K8S_JOB_UID:()=>_q,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>eq,SEMRESATTRS_K8S_NODE_NAME:()=>Qj,SEMRESATTRS_K8S_NODE_UID:()=>Zj,SEMRESATTRS_K8S_POD_NAME:()=>rq,SEMRESATTRS_K8S_POD_UID:()=>tq,SEMRESATTRS_K8S_REPLICASET_NAME:()=>iq,SEMRESATTRS_K8S_REPLICASET_UID:()=>oq,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>cq,SEMRESATTRS_K8S_STATEFULSET_UID:()=>sq,SEMRESATTRS_OS_DESCRIPTION:()=>dq,SEMRESATTRS_OS_NAME:()=>Aq,SEMRESATTRS_OS_TYPE:()=>fq,SEMRESATTRS_OS_VERSION:()=>vq,SEMRESATTRS_PROCESS_COMMAND:()=>hq,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>yq,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>Rq,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>mq,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>Nq,SEMRESATTRS_PROCESS_OWNER:()=>Pq,SEMRESATTRS_PROCESS_PID:()=>Oq,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>Lq,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>Mq,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>gq,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>Cq,SEMRESATTRS_SERVICE_NAME:()=>Iq,SEMRESATTRS_SERVICE_NAMESPACE:()=>xq,SEMRESATTRS_SERVICE_VERSION:()=>bq,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>wq,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>Dq,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>Uq,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>Vq,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>Hq,SEMRESATTRS_WEBENGINE_NAME:()=>Bq,SEMRESATTRS_WEBENGINE_VERSION:()=>Gq,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:()=>U6,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:()=>D6,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:()=>V6,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:()=>B6,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:()=>G6,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:()=>H6,SemanticAttributes:()=>xF,SemanticResourceAttributes:()=>kq,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>U4,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>D4,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>V4,TELEMETRYSDKLANGUAGEVALUES_GO:()=>w4,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>B4,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>G4,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>H4,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>k4,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>Y4,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>F4,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:()=>$4,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:()=>Q4,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:()=>Z4,TELEMETRY_SDK_LANGUAGE_VALUE_GO:()=>eW,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:()=>tW,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:()=>rW,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:()=>nW,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:()=>oW,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:()=>iW,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:()=>aW,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:()=>uW,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:()=>sW,TelemetrySdkLanguageValues:()=>K4});var hP=d(()=>{Wh();vP();OP();mP()});var RP=S(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.ExceptionEventName=void 0;Wn.ExceptionEventName="exception"});var cu=S(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.Span=void 0;var ue=(m(),h(y)),$=C(),rt=(hP(),h(NP)),R8=RP(),su=class{constructor(r,i,c,a,u,t,e=[],n,s,l){this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:ue.SpanStatusCode.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=c,this._spanContext=a,this.parentSpanId=t,this.kind=u,this.links=e;let E=Date.now();this._performanceStartTime=$.otperformance.now(),this._performanceOffset=E-(this._performanceStartTime+(0,$.getTimeOrigin)()),this._startTimeProvided=n!=null,this.startTime=this._getTime(n??E),this.resource=r.resource,this.instrumentationLibrary=r.instrumentationLibrary,this._spanLimits=r.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,l!=null&&this.setAttributes(l),this._spanProcessor=r.getActiveSpanProcessor(),this._spanProcessor.onStart(this,i)}spanContext(){return this._spanContext}setAttribute(r,i){return i==null||this._isSpanEnded()?this:r.length===0?(ue.diag.warn(`Invalid attribute key: ${r}`),this):(0,$.isAttributeValue)(i)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,r)?(this._droppedAttributesCount++,this):(this.attributes[r]=this._truncateToSize(i),this):(ue.diag.warn(`Invalid attribute value set for key: ${r}`),this)}setAttributes(r){for(let[i,c]of Object.entries(r))this.setAttribute(i,c);return this}addEvent(r,i,c){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return ue.diag.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(this._droppedEventsCount===0&&ue.diag.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),(0,$.isTimeInput)(i)&&((0,$.isTimeInput)(c)||(c=i),i=void 0);let a=(0,$.sanitizeAttributes)(i);return this.events.push({name:r,attributes:a,time:this._getTime(c),droppedAttributesCount:0}),this}addLink(r){return this.links.push(r),this}addLinks(r){return this.links.push(...r),this}setStatus(r){return this._isSpanEnded()?this:(this.status=Object.assign({},r),this.status.message!=null&&typeof r.message!="string"&&(ue.diag.warn(`Dropping invalid status.message of type '${typeof r.message}', expected 'string'`),delete this.status.message),this)}updateName(r){return this._isSpanEnded()?this:(this.name=r,this)}end(r){if(this._isSpanEnded()){ue.diag.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(r),this._duration=(0,$.hrTimeDuration)(this.startTime,this.endTime),this._duration[0]<0&&(ue.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]),this._droppedEventsCount>0&&ue.diag.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(r){if(typeof r=="number"&&r<=$.otperformance.now())return(0,$.hrTime)(r+this._performanceOffset);if(typeof r=="number")return(0,$.millisToHrTime)(r);if(r instanceof Date)return(0,$.millisToHrTime)(r.getTime());if((0,$.isTimeInputHrTime)(r))return r;if(this._startTimeProvided)return(0,$.millisToHrTime)(Date.now());let i=$.otperformance.now()-this._performanceStartTime;return(0,$.addHrTimes)(this.startTime,(0,$.millisToHrTime)(i))}isRecording(){return this._ended===!1}recordException(r,i){let c={};typeof r=="string"?c[rt.SEMATTRS_EXCEPTION_MESSAGE]=r:r&&(r.code?c[rt.SEMATTRS_EXCEPTION_TYPE]=r.code.toString():r.name&&(c[rt.SEMATTRS_EXCEPTION_TYPE]=r.name),r.message&&(c[rt.SEMATTRS_EXCEPTION_MESSAGE]=r.message),r.stack&&(c[rt.SEMATTRS_EXCEPTION_STACKTRACE]=r.stack)),c[rt.SEMATTRS_EXCEPTION_TYPE]||c[rt.SEMATTRS_EXCEPTION_MESSAGE]?this.addEvent(R8.ExceptionEventName,c,i):ue.diag.warn(`Failed to record an exception ${r}`)}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(){return this._ended&&ue.diag.warn(`Can not execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`),this._ended}_truncateToLimitUtil(r,i){return r.length<=i?r:r.substring(0,i)}_truncateToSize(r){let i=this._attributeValueLengthLimit;return i<=0?(ue.diag.warn(`Attribute value limit must be positive, got ${i}`),r):typeof r=="string"?this._truncateToLimitUtil(r,i):Array.isArray(r)?r.map(c=>typeof c=="string"?this._truncateToLimitUtil(c,i):c):r}};zn.Span=su});var Rr=S(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.SamplingDecision=void 0;var y8;(function(o){o[o.NOT_RECORD=0]="NOT_RECORD",o[o.RECORD=1]="RECORD",o[o.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(y8=hr.SamplingDecision||(hr.SamplingDecision={}))});var Xn=S(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.AlwaysOffSampler=void 0;var P8=Rr(),lu=class{shouldSample(){return{decision:P8.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};Jn.AlwaysOffSampler=lu});var Qn=S($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.AlwaysOnSampler=void 0;var M8=Rr(),pu=class{shouldSample(){return{decision:M8.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};$n.AlwaysOnSampler=pu});var Tu=S(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.ParentBasedSampler=void 0;var Zn=(m(),h(y)),g8=C(),yP=Xn(),_u=Qn(),Eu=class{constructor(r){var i,c,a,u;this._root=r.root,this._root||((0,g8.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new _u.AlwaysOnSampler),this._remoteParentSampled=(i=r.remoteParentSampled)!==null&&i!==void 0?i:new _u.AlwaysOnSampler,this._remoteParentNotSampled=(c=r.remoteParentNotSampled)!==null&&c!==void 0?c:new yP.AlwaysOffSampler,this._localParentSampled=(a=r.localParentSampled)!==null&&a!==void 0?a:new _u.AlwaysOnSampler,this._localParentNotSampled=(u=r.localParentNotSampled)!==null&&u!==void 0?u:new yP.AlwaysOffSampler}shouldSample(r,i,c,a,u,t){let e=Zn.trace.getSpanContext(r);return!e||!(0,Zn.isSpanContextValid)(e)?this._root.shouldSample(r,i,c,a,u,t):e.isRemote?e.traceFlags&Zn.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(r,i,c,a,u,t):this._remoteParentNotSampled.shouldSample(r,i,c,a,u,t):e.traceFlags&Zn.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(r,i,c,a,u,t):this._localParentNotSampled.shouldSample(r,i,c,a,u,t)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};eo.ParentBasedSampler=Eu});var fu=S(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.TraceIdRatioBasedSampler=void 0;var L8=(m(),h(y)),PP=Rr(),Su=class{constructor(r=0){this._ratio=r,this._ratio=this._normalize(r),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(r,i){return{decision:(0,L8.isValidTraceId)(i)&&this._accumulate(i)<this._upperBound?PP.SamplingDecision.RECORD_AND_SAMPLED:PP.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(r){return typeof r!="number"||isNaN(r)?0:r>=1?1:r<=0?0:r}_accumulate(r){let i=0;for(let c=0;c<r.length/8;c++){let a=c*8,u=parseInt(r.slice(a,a+8),16);i=(i^u)>>>0}return i}};to.TraceIdRatioBasedSampler=Su});var vu=S(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.buildSamplerFromEnv=It.loadDefaultConfig=void 0;var ro=(m(),h(y)),Ie=C(),MP=Xn(),du=Qn(),Au=Tu(),gP=fu(),I8=Ie.TracesSamplerValues.AlwaysOn,Lt=1;function x8(){let o=(0,Ie.getEnv)();return{sampler:IP(o),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:o.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:o.OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:o.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:o.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:o.OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:o.OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:o.OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:o.OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT},mergeResourceWithDefaults:!0}}It.loadDefaultConfig=x8;function IP(o=(0,Ie.getEnv)()){switch(o.OTEL_TRACES_SAMPLER){case Ie.TracesSamplerValues.AlwaysOn:return new du.AlwaysOnSampler;case Ie.TracesSamplerValues.AlwaysOff:return new MP.AlwaysOffSampler;case Ie.TracesSamplerValues.ParentBasedAlwaysOn:return new Au.ParentBasedSampler({root:new du.AlwaysOnSampler});case Ie.TracesSamplerValues.ParentBasedAlwaysOff:return new Au.ParentBasedSampler({root:new MP.AlwaysOffSampler});case Ie.TracesSamplerValues.TraceIdRatio:return new gP.TraceIdRatioBasedSampler(LP(o));case Ie.TracesSamplerValues.ParentBasedTraceIdRatio:return new Au.ParentBasedSampler({root:new gP.TraceIdRatioBasedSampler(LP(o))});default:return ro.diag.error(`OTEL_TRACES_SAMPLER value "${o.OTEL_TRACES_SAMPLER} invalid, defaulting to ${I8}".`),new du.AlwaysOnSampler}}It.buildSamplerFromEnv=IP;function LP(o){if(o.OTEL_TRACES_SAMPLER_ARG===void 0||o.OTEL_TRACES_SAMPLER_ARG==="")return ro.diag.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${Lt}.`),Lt;let r=Number(o.OTEL_TRACES_SAMPLER_ARG);return isNaN(r)?(ro.diag.error(`OTEL_TRACES_SAMPLER_ARG=${o.OTEL_TRACES_SAMPLER_ARG} was given, but it is invalid, defaulting to ${Lt}.`),Lt):r<0||r>1?(ro.diag.error(`OTEL_TRACES_SAMPLER_ARG=${o.OTEL_TRACES_SAMPLER_ARG} was given, but it is out of range ([0..1]), defaulting to ${Lt}.`),Lt):r}});var mu=S(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.reconfigureLimits=xt.mergeConfig=void 0;var xP=vu(),Ou=C();function C8(o){let r={sampler:(0,xP.buildSamplerFromEnv)()},i=(0,xP.loadDefaultConfig)(),c=Object.assign({},i,r,o);return c.generalLimits=Object.assign({},i.generalLimits,o.generalLimits||{}),c.spanLimits=Object.assign({},i.spanLimits,o.spanLimits||{}),c}xt.mergeConfig=C8;function b8(o){var r,i,c,a,u,t,e,n,s,l,E,O;let x=Object.assign({},o.spanLimits),pe=(0,Ou.getEnvWithoutDefaults)();return x.attributeCountLimit=(t=(u=(a=(i=(r=o.spanLimits)===null||r===void 0?void 0:r.attributeCountLimit)!==null&&i!==void 0?i:(c=o.generalLimits)===null||c===void 0?void 0:c.attributeCountLimit)!==null&&a!==void 0?a:pe.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)!==null&&u!==void 0?u:pe.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&t!==void 0?t:Ou.DEFAULT_ATTRIBUTE_COUNT_LIMIT,x.attributeValueLengthLimit=(O=(E=(l=(n=(e=o.spanLimits)===null||e===void 0?void 0:e.attributeValueLengthLimit)!==null&&n!==void 0?n:(s=o.generalLimits)===null||s===void 0?void 0:s.attributeValueLengthLimit)!==null&&l!==void 0?l:pe.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&E!==void 0?E:pe.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&O!==void 0?O:Ou.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,Object.assign({},o,{spanLimits:x})}xt.reconfigureLimits=b8});var CP=S(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.BatchSpanProcessorBase=void 0;var Ct=(m(),h(y)),nt=C(),Nu=class{constructor(r,i){this._exporter=r,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;let c=(0,nt.getEnv)();this._maxExportBatchSize=typeof i?.maxExportBatchSize=="number"?i.maxExportBatchSize:c.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof i?.maxQueueSize=="number"?i.maxQueueSize:c.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof i?.scheduledDelayMillis=="number"?i.scheduledDelayMillis:c.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof i?.exportTimeoutMillis=="number"?i.exportTimeoutMillis:c.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new nt.BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(Ct.diag.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(r,i){}onEnd(r){this._shutdownOnce.isCalled||r.spanContext().traceFlags&Ct.TraceFlags.SAMPLED&&this._addToBuffer(r)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(r){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&Ct.diag.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(Ct.diag.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(r),this._maybeStartTimer()}_flushAll(){return new Promise((r,i)=>{let c=[],a=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let u=0,t=a;u<t;u++)c.push(this._flushOneBatch());Promise.all(c).then(()=>{r()}).catch(i)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((r,i)=>{let c=setTimeout(()=>{i(new Error("Timeout"))},this._exportTimeoutMillis);Ct.context.with((0,nt.suppressTracing)(Ct.context.active()),()=>{let a;this._finishedSpans.length<=this._maxExportBatchSize?(a=this._finishedSpans,this._finishedSpans=[]):a=this._finishedSpans.splice(0,this._maxExportBatchSize);let u=()=>this._exporter.export(a,e=>{var n;clearTimeout(c),e.code===nt.ExportResultCode.SUCCESS?r():i((n=e.error)!==null&&n!==void 0?n:new Error("BatchSpanProcessor: span export failed"))}),t=null;for(let e=0,n=a.length;e<n;e++){let s=a[e];s.resource.asyncAttributesPending&&s.resource.waitForAsyncAttributes&&(t??(t=[]),t.push(s.resource.waitForAsyncAttributes()))}t===null?u():Promise.all(t).then(u,e=>{(0,nt.globalErrorHandler)(e),i(e)})})})}_maybeStartTimer(){if(this._isExporting)return;let r=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(i=>{this._isExporting=!1,(0,nt.globalErrorHandler)(i)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return r();this._timer===void 0&&(this._timer=setTimeout(()=>r(),this._scheduledDelayMillis),(0,nt.unrefTimer)(this._timer))}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}};no.BatchSpanProcessorBase=Nu});var bP=S(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.BatchSpanProcessor=void 0;var U8=CP(),hu=class extends U8.BatchSpanProcessorBase{onShutdown(){}};oo.BatchSpanProcessor=hu});var VP=S(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.RandomIdGenerator=void 0;var D8=8,DP=16,Ru=class{constructor(){this.generateTraceId=UP(DP),this.generateSpanId=UP(D8)}};ao.RandomIdGenerator=Ru;var io=Buffer.allocUnsafe(DP);function UP(o){return function(){for(let i=0;i<o/4;i++)io.writeUInt32BE(Math.random()*2**32>>>0,i*4);for(let i=0;i<o&&!(io[i]>0);i++)i===o-1&&(io[o-1]=1);return io.toString("hex",0,o)}}});var wP=S(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.RandomIdGenerator=bt.BatchSpanProcessor=void 0;var V8=bP();Object.defineProperty(bt,"BatchSpanProcessor",{enumerable:!0,get:function(){return V8.BatchSpanProcessor}});var w8=VP();Object.defineProperty(bt,"RandomIdGenerator",{enumerable:!0,get:function(){return w8.RandomIdGenerator}})});var uo=S(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.RandomIdGenerator=Ut.BatchSpanProcessor=void 0;var BP=wP();Object.defineProperty(Ut,"BatchSpanProcessor",{enumerable:!0,get:function(){return BP.BatchSpanProcessor}});Object.defineProperty(Ut,"RandomIdGenerator",{enumerable:!0,get:function(){return BP.RandomIdGenerator}})});var Pu=S(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.Tracer=void 0;var q=(m(),h(y)),so=C(),B8=cu(),G8=mu(),H8=uo(),yu=class{constructor(r,i,c){this._tracerProvider=c;let a=(0,G8.mergeConfig)(i);this._sampler=a.sampler,this._generalLimits=a.generalLimits,this._spanLimits=a.spanLimits,this._idGenerator=i.idGenerator||new H8.RandomIdGenerator,this.resource=c.resource,this.instrumentationLibrary=r}startSpan(r,i={},c=q.context.active()){var a,u,t;i.root&&(c=q.trace.deleteSpan(c));let e=q.trace.getSpan(c);if((0,so.isTracingSuppressed)(c))return q.diag.debug("Instrumentation suppressed, returning Noop Span"),q.trace.wrapSpanContext(q.INVALID_SPAN_CONTEXT);let n=e?.spanContext(),s=this._idGenerator.generateSpanId(),l,E,O;!n||!q.trace.isSpanContextValid(n)?l=this._idGenerator.generateTraceId():(l=n.traceId,E=n.traceState,O=n.spanId);let x=(a=i.kind)!==null&&a!==void 0?a:q.SpanKind.INTERNAL,pe=((u=i.links)!==null&&u!==void 0?u:[]).map(zr=>({context:zr.context,attributes:(0,so.sanitizeAttributes)(zr.attributes)})),de=(0,so.sanitizeAttributes)(i.attributes),ge=this._sampler.shouldSample(c,l,r,x,de,pe);E=(t=ge.traceState)!==null&&t!==void 0?t:E;let Wr=ge.decision===q.SamplingDecision.RECORD_AND_SAMPLED?q.TraceFlags.SAMPLED:q.TraceFlags.NONE,Ac={traceId:l,spanId:s,traceFlags:Wr,traceState:E};if(ge.decision===q.SamplingDecision.NOT_RECORD)return q.diag.debug("Recording is off, propagating context in a non-recording span"),q.trace.wrapSpanContext(Ac);let FI=(0,so.sanitizeAttributes)(Object.assign(de,ge.attributes));return new B8.Span(this,c,r,Ac,x,O,pe,i.startTime,void 0,FI)}startActiveSpan(r,i,c,a){let u,t,e;if(arguments.length<2)return;arguments.length===2?e=i:arguments.length===3?(u=i,e=c):(u=i,t=c,e=a);let n=t??q.context.active(),s=this.startSpan(r,u,n),l=q.trace.setSpan(n,s);return q.context.with(l,e,void 0,s)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}getActiveSpanProcessor(){return this._tracerProvider.getActiveSpanProcessor()}};co.Tracer=yu});var lo=S((EZ,GP)=>{"use strict";var xe=class o{constructor(r,i){this._attributes=r||{},this._syncAttributes=this._attributes,this.asyncAttributesPending=i!=null,i&&(this._asyncAttributesPromise=i.then(c=>(this._attributes=Object.assign({},this._attributes,c),this.asyncAttributesPending=!1,c),()=>(this.asyncAttributesPending=!1,{})))}get attributes(){return this._attributes||{}}waitForAsyncAttributes(){return this.asyncAttributesPending?this._asyncAttributesPromise:Promise.resolve()}merge(r){if(!r)return this;let i=Object.assign({},this._syncAttributes,r._syncAttributes||r.attributes);return new o(i)}};xe.EMPTY=new xe({});xe.empty=function(){return xe.EMPTY};xe.default=function(){return new xe({"telemetry.sdk.language":"nodejs"})};GP.exports={Resource:xe}});var HP=S(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.MultiSpanProcessor=void 0;var k8=C(),Mu=class{constructor(r){this._spanProcessors=r}forceFlush(){let r=[];for(let i of this._spanProcessors)r.push(i.forceFlush());return new Promise(i=>{Promise.all(r).then(()=>{i()}).catch(c=>{(0,k8.globalErrorHandler)(c||new Error("MultiSpanProcessor: forceFlush failed")),i()})})}onStart(r,i){for(let c of this._spanProcessors)c.onStart(r,i)}onEnd(r){for(let i of this._spanProcessors)i.onEnd(r)}shutdown(){let r=[];for(let i of this._spanProcessors)r.push(i.shutdown());return new Promise((i,c)=>{Promise.all(r).then(()=>{i()},c)})}};po.MultiSpanProcessor=Mu});var Lu=S(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.NoopSpanProcessor=void 0;var gu=class{onStart(r,i){}onEnd(r){}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}};_o.NoopSpanProcessor=gu});var FP=S(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.BasicTracerProvider=ot.ForceFlushState=void 0;var Dt=(m(),h(y)),wt=C(),kP=lo(),Y8=Pu(),F8=vu(),YP=HP(),K8=Lu(),j8=uo(),q8=mu(),Vt;(function(o){o[o.resolved=0]="resolved",o[o.timeout=1]="timeout",o[o.error=2]="error",o[o.unresolved=3]="unresolved"})(Vt=ot.ForceFlushState||(ot.ForceFlushState={}));var yr=class{constructor(r={}){var i,c;this._registeredSpanProcessors=[],this._tracers=new Map;let a=(0,wt.merge)({},(0,F8.loadDefaultConfig)(),(0,q8.reconfigureLimits)(r));if(this.resource=(i=a.resource)!==null&&i!==void 0?i:kP.Resource.empty(),a.mergeResourceWithDefaults&&(this.resource=kP.Resource.default().merge(this.resource)),this._config=Object.assign({},a,{resource:this.resource}),!((c=r.spanProcessors)===null||c===void 0)&&c.length)this._registeredSpanProcessors=[...r.spanProcessors],this.activeSpanProcessor=new YP.MultiSpanProcessor(this._registeredSpanProcessors);else{let u=this._buildExporterFromEnv();if(u!==void 0){let t=new j8.BatchSpanProcessor(u);this.activeSpanProcessor=t}else this.activeSpanProcessor=new K8.NoopSpanProcessor}}getTracer(r,i,c){let a=`${r}@${i||""}:${c?.schemaUrl||""}`;return this._tracers.has(a)||this._tracers.set(a,new Y8.Tracer({name:r,version:i,schemaUrl:c?.schemaUrl},this._config,this)),this._tracers.get(a)}addSpanProcessor(r){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(i=>Dt.diag.error("Error while trying to shutdown current span processor",i)),this._registeredSpanProcessors.push(r),this.activeSpanProcessor=new YP.MultiSpanProcessor(this._registeredSpanProcessors)}getActiveSpanProcessor(){return this.activeSpanProcessor}register(r={}){Dt.trace.setGlobalTracerProvider(this),r.propagator===void 0&&(r.propagator=this._buildPropagatorFromEnv()),r.contextManager&&Dt.context.setGlobalContextManager(r.contextManager),r.propagator&&Dt.propagation.setGlobalPropagator(r.propagator)}forceFlush(){let r=this._config.forceFlushTimeoutMillis,i=this._registeredSpanProcessors.map(c=>new Promise(a=>{let u,t=setTimeout(()=>{a(new Error(`Span processor did not completed within timeout period of ${r} ms`)),u=Vt.timeout},r);c.forceFlush().then(()=>{clearTimeout(t),u!==Vt.timeout&&(u=Vt.resolved,a(u))}).catch(e=>{clearTimeout(t),u=Vt.error,a(e)})}));return new Promise((c,a)=>{Promise.all(i).then(u=>{let t=u.filter(e=>e!==Vt.resolved);t.length>0?a(t):c()}).catch(u=>a([u]))})}shutdown(){return this.activeSpanProcessor.shutdown()}_getPropagator(r){var i;return(i=this.constructor._registeredPropagators.get(r))===null||i===void 0?void 0:i()}_getSpanExporter(r){var i;return(i=this.constructor._registeredExporters.get(r))===null||i===void 0?void 0:i()}_buildPropagatorFromEnv(){let r=Array.from(new Set((0,wt.getEnv)().OTEL_PROPAGATORS)),c=r.map(a=>{let u=this._getPropagator(a);return u||Dt.diag.warn(`Propagator "${a}" requested through environment variable is unavailable.`),u}).reduce((a,u)=>(u&&a.push(u),a),[]);if(c.length!==0)return r.length===1?c[0]:new wt.CompositePropagator({propagators:c})}_buildExporterFromEnv(){let r=(0,wt.getEnv)().OTEL_TRACES_EXPORTER;if(r==="none"||r==="")return;let i=this._getSpanExporter(r);return i||Dt.diag.error(`Exporter "${r}" requested through environment variable is unavailable.`),i}};ot.BasicTracerProvider=yr;yr._registeredPropagators=new Map([["tracecontext",()=>new wt.W3CTraceContextPropagator],["baggage",()=>new wt.W3CBaggagePropagator]]);yr._registeredExporters=new Map});var KP=S(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.ConsoleSpanExporter=void 0;var Iu=C(),xu=class{export(r,i){return this._sendSpans(r,i)}shutdown(){return this._sendSpans([]),this.forceFlush()}forceFlush(){return Promise.resolve()}_exportInfo(r){var i;return{resource:{attributes:r.resource.attributes},instrumentationScope:r.instrumentationLibrary,traceId:r.spanContext().traceId,parentId:r.parentSpanId,traceState:(i=r.spanContext().traceState)===null||i===void 0?void 0:i.serialize(),name:r.name,id:r.spanContext().spanId,kind:r.kind,timestamp:(0,Iu.hrTimeToMicroseconds)(r.startTime),duration:(0,Iu.hrTimeToMicroseconds)(r.duration),attributes:r.attributes,status:r.status,events:r.events,links:r.links}}_sendSpans(r,i){for(let c of r)console.dir(this._exportInfo(c),{depth:3});if(i)return i({code:Iu.ExportResultCode.SUCCESS})}};Eo.ConsoleSpanExporter=xu});var qP=S(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.InMemorySpanExporter=void 0;var jP=C(),Cu=class{constructor(){this._finishedSpans=[],this._stopped=!1}export(r,i){if(this._stopped)return i({code:jP.ExportResultCode.FAILED,error:new Error("Exporter has been stopped")});this._finishedSpans.push(...r),setTimeout(()=>i({code:jP.ExportResultCode.SUCCESS}),0)}shutdown(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()}forceFlush(){return Promise.resolve()}reset(){this._finishedSpans=[]}getFinishedSpans(){return this._finishedSpans}};To.InMemorySpanExporter=Cu});var WP=S(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.SimpleSpanProcessor=void 0;var W8=(m(),h(y)),Bt=C(),bu=class{constructor(r){this._exporter=r,this._shutdownOnce=new Bt.BindOnceFuture(this._shutdown,this),this._unresolvedExports=new Set}async forceFlush(){await Promise.all(Array.from(this._unresolvedExports)),this._exporter.forceFlush&&await this._exporter.forceFlush()}onStart(r,i){}onEnd(r){var i,c;if(this._shutdownOnce.isCalled||!(r.spanContext().traceFlags&W8.TraceFlags.SAMPLED))return;let a=()=>Bt.internal._export(this._exporter,[r]).then(u=>{var t;u.code!==Bt.ExportResultCode.SUCCESS&&(0,Bt.globalErrorHandler)((t=u.error)!==null&&t!==void 0?t:new Error(`SimpleSpanProcessor: span export failed (status ${u})`))}).catch(u=>{(0,Bt.globalErrorHandler)(u)});if(r.resource.asyncAttributesPending){let u=(c=(i=r.resource).waitForAsyncAttributes)===null||c===void 0?void 0:c.call(i).then(()=>(u!=null&&this._unresolvedExports.delete(u),a()),t=>(0,Bt.globalErrorHandler)(t));u!=null&&this._unresolvedExports.add(u)}else a()}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}};So.SimpleSpanProcessor=bu});var XP=S(M=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0});M.Span=M.SamplingDecision=M.TraceIdRatioBasedSampler=M.ParentBasedSampler=M.AlwaysOnSampler=M.AlwaysOffSampler=M.NoopSpanProcessor=M.SimpleSpanProcessor=M.InMemorySpanExporter=M.ConsoleSpanExporter=M.RandomIdGenerator=M.BatchSpanProcessor=M.ForceFlushState=M.BasicTracerProvider=M.Tracer=void 0;var z8=Pu();Object.defineProperty(M,"Tracer",{enumerable:!0,get:function(){return z8.Tracer}});var zP=FP();Object.defineProperty(M,"BasicTracerProvider",{enumerable:!0,get:function(){return zP.BasicTracerProvider}});Object.defineProperty(M,"ForceFlushState",{enumerable:!0,get:function(){return zP.ForceFlushState}});var JP=uo();Object.defineProperty(M,"BatchSpanProcessor",{enumerable:!0,get:function(){return JP.BatchSpanProcessor}});Object.defineProperty(M,"RandomIdGenerator",{enumerable:!0,get:function(){return JP.RandomIdGenerator}});var J8=KP();Object.defineProperty(M,"ConsoleSpanExporter",{enumerable:!0,get:function(){return J8.ConsoleSpanExporter}});var X8=qP();Object.defineProperty(M,"InMemorySpanExporter",{enumerable:!0,get:function(){return X8.InMemorySpanExporter}});var $8=WP();Object.defineProperty(M,"SimpleSpanProcessor",{enumerable:!0,get:function(){return $8.SimpleSpanProcessor}});var Q8=Lu();Object.defineProperty(M,"NoopSpanProcessor",{enumerable:!0,get:function(){return Q8.NoopSpanProcessor}});var Z8=Xn();Object.defineProperty(M,"AlwaysOffSampler",{enumerable:!0,get:function(){return Z8.AlwaysOffSampler}});var ez=Qn();Object.defineProperty(M,"AlwaysOnSampler",{enumerable:!0,get:function(){return ez.AlwaysOnSampler}});var tz=Tu();Object.defineProperty(M,"ParentBasedSampler",{enumerable:!0,get:function(){return tz.ParentBasedSampler}});var rz=fu();Object.defineProperty(M,"TraceIdRatioBasedSampler",{enumerable:!0,get:function(){return rz.TraceIdRatioBasedSampler}});var nz=Rr();Object.defineProperty(M,"SamplingDecision",{enumerable:!0,get:function(){return nz.SamplingDecision}});var oz=cu();Object.defineProperty(M,"Span",{enumerable:!0,get:function(){return oz.Span}})});var fo=S(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.AggregationTemporality=void 0;var iz;(function(o){o[o.DELTA=0]="DELTA",o[o.CUMULATIVE=1]="CUMULATIVE"})(iz=Pr.AggregationTemporality||(Pr.AggregationTemporality={}))});var Gt=S(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.DataPointType=void 0;var az;(function(o){o[o.HISTOGRAM=0]="HISTOGRAM",o[o.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",o[o.GAUGE=2]="GAUGE",o[o.SUM=3]="SUM"})(az=Mr.DataPointType||(Mr.DataPointType={}))});var Ee=S(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.equalsCaseInsensitive=L.binarySearchUB=L.setEquals=L.FlatMap=L.isPromiseAllSettledRejectionResult=L.PromiseAllSettled=L.callWithTimeout=L.TimeoutError=L.instrumentationScopeId=L.hashAttributes=L.isNotNullish=void 0;function uz(o){return o!=null}L.isNotNullish=uz;function sz(o){let r=Object.keys(o);return r.length===0?"":(r=r.sort(),JSON.stringify(r.map(i=>[i,o[i]])))}L.hashAttributes=sz;function cz(o){var r,i;return`${o.name}:${(r=o.version)!==null&&r!==void 0?r:""}:${(i=o.schemaUrl)!==null&&i!==void 0?i:""}`}L.instrumentationScopeId=cz;var Ao=class o extends Error{constructor(r){super(r),Object.setPrototypeOf(this,o.prototype)}};L.TimeoutError=Ao;function lz(o,r){let i,c=new Promise(function(u,t){i=setTimeout(function(){t(new Ao("Operation timed out."))},r)});return Promise.race([o,c]).then(a=>(clearTimeout(i),a),a=>{throw clearTimeout(i),a})}L.callWithTimeout=lz;async function pz(o){return Promise.all(o.map(async r=>{try{return{status:"fulfilled",value:await r}}catch(i){return{status:"rejected",reason:i}}}))}L.PromiseAllSettled=pz;function _z(o){return o.status==="rejected"}L.isPromiseAllSettledRejectionResult=_z;function Ez(o,r){let i=[];return o.forEach(c=>{i.push(...r(c))}),i}L.FlatMap=Ez;function Tz(o,r){if(o.size!==r.size)return!1;for(let i of o)if(!r.has(i))return!1;return!0}L.setEquals=Tz;function Sz(o,r){let i=0,c=o.length-1,a=o.length;for(;c>=i;){let u=i+Math.trunc((c-i)/2);o[u]<r?i=u+1:(a=u,c=u-1)}return a}L.binarySearchUB=Sz;function fz(o,r){return o.toLowerCase()===r.toLowerCase()}L.equalsCaseInsensitive=fz});var Ht=S(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.AggregatorKind=void 0;var dz;(function(o){o[o.DROP=0]="DROP",o[o.SUM=1]="SUM",o[o.LAST_VALUE=2]="LAST_VALUE",o[o.HISTOGRAM=3]="HISTOGRAM",o[o.EXPONENTIAL_HISTOGRAM=4]="EXPONENTIAL_HISTOGRAM"})(dz=gr.AggregatorKind||(gr.AggregatorKind={}))});var $P=S(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.DropAggregator=void 0;var Az=Ht(),Uu=class{constructor(){this.kind=Az.AggregatorKind.DROP}createAccumulation(){}merge(r,i){}diff(r,i){}toMetricData(r,i,c,a){}};vo.DropAggregator=Uu});var Ce=S(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.isValidName=ie.isDescriptorCompatibleWith=ie.createInstrumentDescriptorWithView=ie.createInstrumentDescriptor=ie.InstrumentType=void 0;var QP=(m(),h(y)),vz=Ee(),Oz;(function(o){o.COUNTER="COUNTER",o.GAUGE="GAUGE",o.HISTOGRAM="HISTOGRAM",o.UP_DOWN_COUNTER="UP_DOWN_COUNTER",o.OBSERVABLE_COUNTER="OBSERVABLE_COUNTER",o.OBSERVABLE_GAUGE="OBSERVABLE_GAUGE",o.OBSERVABLE_UP_DOWN_COUNTER="OBSERVABLE_UP_DOWN_COUNTER"})(Oz=ie.InstrumentType||(ie.InstrumentType={}));function mz(o,r,i){var c,a,u,t;return ZP(o)||QP.diag.warn(`Invalid metric name: "${o}". The metric name should be a ASCII string with a length no greater than 255 characters.`),{name:o,type:r,description:(c=i?.description)!==null&&c!==void 0?c:"",unit:(a=i?.unit)!==null&&a!==void 0?a:"",valueType:(u=i?.valueType)!==null&&u!==void 0?u:QP.ValueType.DOUBLE,advice:(t=i?.advice)!==null&&t!==void 0?t:{}}}ie.createInstrumentDescriptor=mz;function Nz(o,r){var i,c;return{name:(i=o.name)!==null&&i!==void 0?i:r.name,description:(c=o.description)!==null&&c!==void 0?c:r.description,type:r.type,unit:r.unit,valueType:r.valueType,advice:r.advice}}ie.createInstrumentDescriptorWithView=Nz;function hz(o,r){return(0,vz.equalsCaseInsensitive)(o.name,r.name)&&o.unit===r.unit&&o.type===r.type&&o.valueType===r.valueType}ie.isDescriptorCompatibleWith=hz;var Rz=/^[a-z][a-z0-9_.\-/]{0,254}$/i;function ZP(o){return o.match(Rz)!=null}ie.isValidName=ZP});var eM=S(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.HistogramAggregator=Yt.HistogramAccumulation=void 0;var yz=Ht(),Pz=Gt(),Oo=Ce(),Mz=Ee();function gz(o){let r=o.map(()=>0);return r.push(0),{buckets:{boundaries:o,counts:r},sum:0,count:0,hasMinMax:!1,min:1/0,max:-1/0}}var kt=class{constructor(r,i,c=!0,a=gz(i)){this.startTime=r,this._boundaries=i,this._recordMinMax=c,this._current=a}record(r){if(Number.isNaN(r))return;this._current.count+=1,this._current.sum+=r,this._recordMinMax&&(this._current.min=Math.min(r,this._current.min),this._current.max=Math.max(r,this._current.max),this._current.hasMinMax=!0);let i=(0,Mz.binarySearchUB)(this._boundaries,r);this._current.buckets.counts[i]+=1}setStartTime(r){this.startTime=r}toPointValue(){return this._current}};Yt.HistogramAccumulation=kt;var Du=class{constructor(r,i){this._boundaries=r,this._recordMinMax=i,this.kind=yz.AggregatorKind.HISTOGRAM}createAccumulation(r){return new kt(r,this._boundaries,this._recordMinMax)}merge(r,i){let c=r.toPointValue(),a=i.toPointValue(),u=c.buckets.counts,t=a.buckets.counts,e=new Array(u.length);for(let l=0;l<u.length;l++)e[l]=u[l]+t[l];let n=1/0,s=-1/0;return this._recordMinMax&&(c.hasMinMax&&a.hasMinMax?(n=Math.min(c.min,a.min),s=Math.max(c.max,a.max)):c.hasMinMax?(n=c.min,s=c.max):a.hasMinMax&&(n=a.min,s=a.max)),new kt(r.startTime,c.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:c.buckets.boundaries,counts:e},count:c.count+a.count,sum:c.sum+a.sum,hasMinMax:this._recordMinMax&&(c.hasMinMax||a.hasMinMax),min:n,max:s})}diff(r,i){let c=r.toPointValue(),a=i.toPointValue(),u=c.buckets.counts,t=a.buckets.counts,e=new Array(u.length);for(let n=0;n<u.length;n++)e[n]=t[n]-u[n];return new kt(i.startTime,c.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:c.buckets.boundaries,counts:e},count:a.count-c.count,sum:a.sum-c.sum,hasMinMax:!1,min:1/0,max:-1/0})}toMetricData(r,i,c,a){return{descriptor:r,aggregationTemporality:i,dataPointType:Pz.DataPointType.HISTOGRAM,dataPoints:c.map(([u,t])=>{let e=t.toPointValue(),n=r.type===Oo.InstrumentType.GAUGE||r.type===Oo.InstrumentType.UP_DOWN_COUNTER||r.type===Oo.InstrumentType.OBSERVABLE_GAUGE||r.type===Oo.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:u,startTime:t.startTime,endTime:a,value:{min:e.hasMinMax?e.min:void 0,max:e.hasMinMax?e.max:void 0,sum:n?void 0:e.sum,buckets:e.buckets,count:e.count}}})}}};Yt.HistogramAggregator=Du});var tM=S(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.Buckets=void 0;var Vu=class o{constructor(r=new wu,i=0,c=0,a=0){this.backing=r,this.indexBase=i,this.indexStart=c,this.indexEnd=a}get offset(){return this.indexStart}get length(){return this.backing.length===0||this.indexEnd===this.indexStart&&this.at(0)===0?0:this.indexEnd-this.indexStart+1}counts(){return Array.from({length:this.length},(r,i)=>this.at(i))}at(r){let i=this.indexBase-this.indexStart;return r<i&&(r+=this.backing.length),r-=i,this.backing.countAt(r)}incrementBucket(r,i){this.backing.increment(r,i)}decrementBucket(r,i){this.backing.decrement(r,i)}trim(){for(let r=0;r<this.length;r++)if(this.at(r)!==0){this.indexStart+=r;break}else if(r===this.length-1){this.indexStart=this.indexEnd=this.indexBase=0;return}for(let r=this.length-1;r>=0;r--)if(this.at(r)!==0){this.indexEnd-=this.length-r-1;break}this._rotate()}downscale(r){this._rotate();let i=1+this.indexEnd-this.indexStart,c=1<<r,a=0,u=0;for(let t=this.indexStart;t<=this.indexEnd;){let e=t%c;e<0&&(e+=c);for(let n=e;n<c&&a<i;n++)this._relocateBucket(u,a),a++,t++;u++}this.indexStart>>=r,this.indexEnd>>=r,this.indexBase=this.indexStart}clone(){return new o(this.backing.clone(),this.indexBase,this.indexStart,this.indexEnd)}_rotate(){let r=this.indexBase-this.indexStart;r!==0&&(r>0?(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,r),this.backing.reverse(r,this.backing.length)):(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,this.backing.length+r)),this.indexBase=this.indexStart)}_relocateBucket(r,i){r!==i&&this.incrementBucket(r,this.backing.emptyBucket(i))}};mo.Buckets=Vu;var wu=class o{constructor(r=[0]){this._counts=r}get length(){return this._counts.length}countAt(r){return this._counts[r]}growTo(r,i,c){let a=new Array(r).fill(0);a.splice(c,this._counts.length-i,...this._counts.slice(i)),a.splice(0,i,...this._counts.slice(0,i)),this._counts=a}reverse(r,i){let c=Math.floor((r+i)/2)-r;for(let a=0;a<c;a++){let u=this._counts[r+a];this._counts[r+a]=this._counts[i-a-1],this._counts[i-a-1]=u}}emptyBucket(r){let i=this._counts[r];return this._counts[r]=0,i}increment(r,i){this._counts[r]+=i}decrement(r,i){this._counts[r]>=i?this._counts[r]-=i:this._counts[r]=0}clone(){return new o([...this._counts])}}});var Gu=S(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Q.getSignificand=Q.getNormalBase2=Q.MIN_VALUE=Q.MAX_NORMAL_EXPONENT=Q.MIN_NORMAL_EXPONENT=Q.SIGNIFICAND_WIDTH=void 0;Q.SIGNIFICAND_WIDTH=52;var Lz=2146435072,Iz=1048575,Bu=1023;Q.MIN_NORMAL_EXPONENT=-Bu+1;Q.MAX_NORMAL_EXPONENT=Bu;Q.MIN_VALUE=Math.pow(2,-1022);function xz(o){let r=new DataView(new ArrayBuffer(8));return r.setFloat64(0,o),((r.getUint32(0)&Lz)>>20)-Bu}Q.getNormalBase2=xz;function Cz(o){let r=new DataView(new ArrayBuffer(8));r.setFloat64(0,o);let i=r.getUint32(0),c=r.getUint32(4);return(i&Iz)*Math.pow(2,32)+c}Q.getSignificand=Cz});var No=S(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.nextGreaterSquare=Ft.ldexp=void 0;function bz(o,r){return o===0||o===Number.POSITIVE_INFINITY||o===Number.NEGATIVE_INFINITY||Number.isNaN(o)?o:o*Math.pow(2,r)}Ft.ldexp=bz;function Uz(o){return o--,o|=o>>1,o|=o>>2,o|=o>>4,o|=o>>8,o|=o>>16,o++,o}Ft.nextGreaterSquare=Uz});var Ro=S(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.MappingError=void 0;var Hu=class extends Error{};ho.MappingError=Hu});var nM=S(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.ExponentMapping=void 0;var Kt=Gu(),Dz=No(),rM=Ro(),ku=class{constructor(r){this._shift=-r}mapToIndex(r){if(r<Kt.MIN_VALUE)return this._minNormalLowerBoundaryIndex();let i=Kt.getNormalBase2(r),c=this._rightShift(Kt.getSignificand(r)-1,Kt.SIGNIFICAND_WIDTH);return i+c>>this._shift}lowerBoundary(r){let i=this._minNormalLowerBoundaryIndex();if(r<i)throw new rM.MappingError(`underflow: ${r} is < minimum lower boundary: ${i}`);let c=this._maxNormalLowerBoundaryIndex();if(r>c)throw new rM.MappingError(`overflow: ${r} is > maximum lower boundary: ${c}`);return Dz.ldexp(1,r<<this._shift)}get scale(){return this._shift===0?0:-this._shift}_minNormalLowerBoundaryIndex(){let r=Kt.MIN_NORMAL_EXPONENT>>this._shift;return this._shift<2&&r--,r}_maxNormalLowerBoundaryIndex(){return Kt.MAX_NORMAL_EXPONENT>>this._shift}_rightShift(r,i){return Math.floor(r*Math.pow(2,-i))}};yo.ExponentMapping=ku});var aM=S(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.LogarithmMapping=void 0;var jt=Gu(),oM=No(),iM=Ro(),Yu=class{constructor(r){this._scale=r,this._scaleFactor=oM.ldexp(Math.LOG2E,r),this._inverseFactor=oM.ldexp(Math.LN2,-r)}mapToIndex(r){if(r<=jt.MIN_VALUE)return this._minNormalLowerBoundaryIndex()-1;if(jt.getSignificand(r)===0)return(jt.getNormalBase2(r)<<this._scale)-1;let i=Math.floor(Math.log(r)*this._scaleFactor),c=this._maxNormalLowerBoundaryIndex();return i>=c?c:i}lowerBoundary(r){let i=this._maxNormalLowerBoundaryIndex();if(r>=i){if(r===i)return 2*Math.exp((r-(1<<this._scale))/this._scaleFactor);throw new iM.MappingError(`overflow: ${r} is > maximum lower boundary: ${i}`)}let c=this._minNormalLowerBoundaryIndex();if(r<=c){if(r===c)return jt.MIN_VALUE;if(r===c-1)return Math.exp((r+(1<<this._scale))/this._scaleFactor)/2;throw new iM.MappingError(`overflow: ${r} is < minimum lower boundary: ${c}`)}return Math.exp(r*this._inverseFactor)}get scale(){return this._scale}_minNormalLowerBoundaryIndex(){return jt.MIN_NORMAL_EXPONENT<<this._scale}_maxNormalLowerBoundaryIndex(){return(jt.MAX_NORMAL_EXPONENT+1<<this._scale)-1}};Po.LogarithmMapping=Yu});var cM=S(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.getMapping=void 0;var Vz=nM(),wz=aM(),Bz=Ro(),uM=-10,sM=20,Gz=Array.from({length:31},(o,r)=>r>10?new wz.LogarithmMapping(r-10):new Vz.ExponentMapping(r-10));function Hz(o){if(o>sM||o<uM)throw new Bz.MappingError(`expected scale >= ${uM} && <= ${sM}, got: ${o}`);return Gz[o+10]}Mo.getMapping=Hz});var _M=S(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.ExponentialHistogramAggregator=Wt.ExponentialHistogramAccumulation=void 0;var kz=Ht(),Yz=Gt(),Fz=(m(),h(y)),go=Ce(),lM=tM(),pM=cM(),Kz=No(),qt=class o{constructor(r,i){this.low=r,this.high=i}static combine(r,i){return new o(Math.min(r.low,i.low),Math.max(r.high,i.high))}},jz=20,qz=160,Fu=2,Lo=class o{constructor(r=r,i=qz,c=!0,a=0,u=0,t=0,e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY,s=new lM.Buckets,l=new lM.Buckets,E=(0,pM.getMapping)(jz)){this.startTime=r,this._maxSize=i,this._recordMinMax=c,this._sum=a,this._count=u,this._zeroCount=t,this._min=e,this._max=n,this._positive=s,this._negative=l,this._mapping=E,this._maxSize<Fu&&(Fz.diag.warn(`Exponential Histogram Max Size set to ${this._maxSize}, changing to the minimum size of: ${Fu}`),this._maxSize=Fu)}record(r){this.updateByIncrement(r,1)}setStartTime(r){this.startTime=r}toPointValue(){return{hasMinMax:this._recordMinMax,min:this.min,max:this.max,sum:this.sum,positive:{offset:this.positive.offset,bucketCounts:this.positive.counts()},negative:{offset:this.negative.offset,bucketCounts:this.negative.counts()},count:this.count,scale:this.scale,zeroCount:this.zeroCount}}get sum(){return this._sum}get min(){return this._min}get max(){return this._max}get count(){return this._count}get zeroCount(){return this._zeroCount}get scale(){return this._count===this._zeroCount?0:this._mapping.scale}get positive(){return this._positive}get negative(){return this._negative}updateByIncrement(r,i){if(!Number.isNaN(r)){if(r>this._max&&(this._max=r),r<this._min&&(this._min=r),this._count+=i,r===0){this._zeroCount+=i;return}this._sum+=r*i,r>0?this._updateBuckets(this._positive,r,i):this._updateBuckets(this._negative,-r,i)}}merge(r){this._count===0?(this._min=r.min,this._max=r.max):r.count!==0&&(r.min<this.min&&(this._min=r.min),r.max>this.max&&(this._max=r.max)),this.startTime=r.startTime,this._sum+=r.sum,this._count+=r.count,this._zeroCount+=r.zeroCount;let i=this._minScale(r);this._downscale(this.scale-i),this._mergeBuckets(this.positive,r,r.positive,i),this._mergeBuckets(this.negative,r,r.negative,i)}diff(r){this._min=1/0,this._max=-1/0,this._sum-=r.sum,this._count-=r.count,this._zeroCount-=r.zeroCount;let i=this._minScale(r);this._downscale(this.scale-i),this._diffBuckets(this.positive,r,r.positive,i),this._diffBuckets(this.negative,r,r.negative,i)}clone(){return new o(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(r,i,c){let a=this._mapping.mapToIndex(i),u=!1,t=0,e=0;if(r.length===0?(r.indexStart=a,r.indexEnd=r.indexStart,r.indexBase=r.indexStart):a<r.indexStart&&r.indexEnd-a>=this._maxSize?(u=!0,e=a,t=r.indexEnd):a>r.indexEnd&&a-r.indexStart>=this._maxSize&&(u=!0,e=r.indexStart,t=a),u){let n=this._changeScale(t,e);this._downscale(n),a=this._mapping.mapToIndex(i)}this._incrementIndexBy(r,a,c)}_incrementIndexBy(r,i,c){if(c===0)return;if(r.length===0&&(r.indexStart=r.indexEnd=r.indexBase=i),i<r.indexStart){let u=r.indexEnd-i;u>=r.backing.length&&this._grow(r,u+1),r.indexStart=i}else if(i>r.indexEnd){let u=i-r.indexStart;u>=r.backing.length&&this._grow(r,u+1),r.indexEnd=i}let a=i-r.indexBase;a<0&&(a+=r.backing.length),r.incrementBucket(a,c)}_grow(r,i){let c=r.backing.length,a=r.indexBase-r.indexStart,u=c-a,t=(0,Kz.nextGreaterSquare)(i);t>this._maxSize&&(t=this._maxSize);let e=t-a;r.backing.growTo(t,u,e)}_changeScale(r,i){let c=0;for(;r-i>=this._maxSize;)r>>=1,i>>=1,c++;return c}_downscale(r){if(r===0)return;if(r<0)throw new Error(`impossible change of scale: ${this.scale}`);let i=this._mapping.scale-r;this._positive.downscale(r),this._negative.downscale(r),this._mapping=(0,pM.getMapping)(i)}_minScale(r){let i=Math.min(this.scale,r.scale),c=qt.combine(this._highLowAtScale(this.positive,this.scale,i),this._highLowAtScale(r.positive,r.scale,i)),a=qt.combine(this._highLowAtScale(this.negative,this.scale,i),this._highLowAtScale(r.negative,r.scale,i));return Math.min(i-this._changeScale(c.high,c.low),i-this._changeScale(a.high,a.low))}_highLowAtScale(r,i,c){if(r.length===0)return new qt(0,-1);let a=i-c;return new qt(r.indexStart>>a,r.indexEnd>>a)}_mergeBuckets(r,i,c,a){let u=c.offset,t=i.scale-a;for(let e=0;e<c.length;e++)this._incrementIndexBy(r,u+e>>t,c.at(e))}_diffBuckets(r,i,c,a){let u=c.offset,t=i.scale-a;for(let e=0;e<c.length;e++){let s=(u+e>>t)-r.indexBase;s<0&&(s+=r.backing.length),r.decrementBucket(s,c.at(e))}r.trim()}};Wt.ExponentialHistogramAccumulation=Lo;var Ku=class{constructor(r,i){this._maxSize=r,this._recordMinMax=i,this.kind=kz.AggregatorKind.EXPONENTIAL_HISTOGRAM}createAccumulation(r){return new Lo(r,this._maxSize,this._recordMinMax)}merge(r,i){let c=i.clone();return c.merge(r),c}diff(r,i){let c=i.clone();return c.diff(r),c}toMetricData(r,i,c,a){return{descriptor:r,aggregationTemporality:i,dataPointType:Yz.DataPointType.EXPONENTIAL_HISTOGRAM,dataPoints:c.map(([u,t])=>{let e=t.toPointValue(),n=r.type===go.InstrumentType.GAUGE||r.type===go.InstrumentType.UP_DOWN_COUNTER||r.type===go.InstrumentType.OBSERVABLE_GAUGE||r.type===go.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:u,startTime:t.startTime,endTime:a,value:{min:e.hasMinMax?e.min:void 0,max:e.hasMinMax?e.max:void 0,sum:n?void 0:e.sum,positive:{offset:e.positive.offset,bucketCounts:e.positive.bucketCounts},negative:{offset:e.negative.offset,bucketCounts:e.negative.bucketCounts},count:e.count,scale:e.scale,zeroCount:e.zeroCount}}})}}};Wt.ExponentialHistogramAggregator=Ku});var EM=S(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.LastValueAggregator=Jt.LastValueAccumulation=void 0;var Wz=Ht(),Lr=C(),zz=Gt(),zt=class{constructor(r,i=0,c=[0,0]){this.startTime=r,this._current=i,this.sampleTime=c}record(r){this._current=r,this.sampleTime=(0,Lr.millisToHrTime)(Date.now())}setStartTime(r){this.startTime=r}toPointValue(){return this._current}};Jt.LastValueAccumulation=zt;var ju=class{constructor(){this.kind=Wz.AggregatorKind.LAST_VALUE}createAccumulation(r){return new zt(r)}merge(r,i){let c=(0,Lr.hrTimeToMicroseconds)(i.sampleTime)>=(0,Lr.hrTimeToMicroseconds)(r.sampleTime)?i:r;return new zt(r.startTime,c.toPointValue(),c.sampleTime)}diff(r,i){let c=(0,Lr.hrTimeToMicroseconds)(i.sampleTime)>=(0,Lr.hrTimeToMicroseconds)(r.sampleTime)?i:r;return new zt(i.startTime,c.toPointValue(),c.sampleTime)}toMetricData(r,i,c,a){return{descriptor:r,aggregationTemporality:i,dataPointType:zz.DataPointType.GAUGE,dataPoints:c.map(([u,t])=>({attributes:u,startTime:t.startTime,endTime:a,value:t.toPointValue()}))}}};Jt.LastValueAggregator=ju});var TM=S(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.SumAggregator=Xt.SumAccumulation=void 0;var Jz=Ht(),Xz=Gt(),Fe=class{constructor(r,i,c=0,a=!1){this.startTime=r,this.monotonic=i,this._current=c,this.reset=a}record(r){this.monotonic&&r<0||(this._current+=r)}setStartTime(r){this.startTime=r}toPointValue(){return this._current}};Xt.SumAccumulation=Fe;var qu=class{constructor(r){this.monotonic=r,this.kind=Jz.AggregatorKind.SUM}createAccumulation(r){return new Fe(r,this.monotonic)}merge(r,i){let c=r.toPointValue(),a=i.toPointValue();return i.reset?new Fe(i.startTime,this.monotonic,a,i.reset):new Fe(r.startTime,this.monotonic,c+a)}diff(r,i){let c=r.toPointValue(),a=i.toPointValue();return this.monotonic&&c>a?new Fe(i.startTime,this.monotonic,a,!0):new Fe(i.startTime,this.monotonic,a-c)}toMetricData(r,i,c,a){return{descriptor:r,aggregationTemporality:i,dataPointType:Xz.DataPointType.SUM,dataPoints:c.map(([u,t])=>({attributes:u,startTime:t.startTime,endTime:a,value:t.toPointValue()})),isMonotonic:this.monotonic}}};Xt.SumAggregator=qu});var vM=S(B=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});B.SumAggregator=B.SumAccumulation=B.LastValueAggregator=B.LastValueAccumulation=B.ExponentialHistogramAggregator=B.ExponentialHistogramAccumulation=B.HistogramAggregator=B.HistogramAccumulation=B.DropAggregator=void 0;var $z=$P();Object.defineProperty(B,"DropAggregator",{enumerable:!0,get:function(){return $z.DropAggregator}});var SM=eM();Object.defineProperty(B,"HistogramAccumulation",{enumerable:!0,get:function(){return SM.HistogramAccumulation}});Object.defineProperty(B,"HistogramAggregator",{enumerable:!0,get:function(){return SM.HistogramAggregator}});var fM=_M();Object.defineProperty(B,"ExponentialHistogramAccumulation",{enumerable:!0,get:function(){return fM.ExponentialHistogramAccumulation}});Object.defineProperty(B,"ExponentialHistogramAggregator",{enumerable:!0,get:function(){return fM.ExponentialHistogramAggregator}});var dM=EM();Object.defineProperty(B,"LastValueAccumulation",{enumerable:!0,get:function(){return dM.LastValueAccumulation}});Object.defineProperty(B,"LastValueAggregator",{enumerable:!0,get:function(){return dM.LastValueAggregator}});var AM=TM();Object.defineProperty(B,"SumAccumulation",{enumerable:!0,get:function(){return AM.SumAccumulation}});Object.defineProperty(B,"SumAggregator",{enumerable:!0,get:function(){return AM.SumAggregator}})});var bo=S(F=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.DefaultAggregation=F.ExponentialHistogramAggregation=F.ExplicitBucketHistogramAggregation=F.HistogramAggregation=F.LastValueAggregation=F.SumAggregation=F.DropAggregation=F.Aggregation=void 0;var Qz=(m(),h(y)),it=vM(),he=Ce(),Re=class{static Drop(){return OM}static Sum(){return mM}static LastValue(){return NM}static Histogram(){return hM}static ExponentialHistogram(){return Zz}static Default(){return eJ}};F.Aggregation=Re;var Ir=class o extends Re{createAggregator(r){return o.DEFAULT_INSTANCE}};F.DropAggregation=Ir;Ir.DEFAULT_INSTANCE=new it.DropAggregator;var $t=class o extends Re{createAggregator(r){switch(r.type){case he.InstrumentType.COUNTER:case he.InstrumentType.OBSERVABLE_COUNTER:case he.InstrumentType.HISTOGRAM:return o.MONOTONIC_INSTANCE;default:return o.NON_MONOTONIC_INSTANCE}}};F.SumAggregation=$t;$t.MONOTONIC_INSTANCE=new it.SumAggregator(!0);$t.NON_MONOTONIC_INSTANCE=new it.SumAggregator(!1);var xr=class o extends Re{createAggregator(r){return o.DEFAULT_INSTANCE}};F.LastValueAggregation=xr;xr.DEFAULT_INSTANCE=new it.LastValueAggregator;var Cr=class o extends Re{createAggregator(r){return o.DEFAULT_INSTANCE}};F.HistogramAggregation=Cr;Cr.DEFAULT_INSTANCE=new it.HistogramAggregator([0,5,10,25,50,75,100,250,500,750,1e3,2500,5e3,7500,1e4],!0);var Io=class extends Re{constructor(r,i=!0){if(super(),this._recordMinMax=i,r==null)throw new Error("ExplicitBucketHistogramAggregation should be created with explicit boundaries, if a single bucket histogram is required, please pass an empty array");r=r.concat(),r=r.sort((u,t)=>u-t);let c=r.lastIndexOf(-1/0),a=r.indexOf(1/0);a===-1&&(a=void 0),this._boundaries=r.slice(c+1,a)}createAggregator(r){return new it.HistogramAggregator(this._boundaries,this._recordMinMax)}};F.ExplicitBucketHistogramAggregation=Io;var xo=class extends Re{constructor(r=160,i=!0){super(),this._maxSize=r,this._recordMinMax=i}createAggregator(r){return new it.ExponentialHistogramAggregator(this._maxSize,this._recordMinMax)}};F.ExponentialHistogramAggregation=xo;var Co=class extends Re{_resolve(r){switch(r.type){case he.InstrumentType.COUNTER:case he.InstrumentType.UP_DOWN_COUNTER:case he.InstrumentType.OBSERVABLE_COUNTER:case he.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER:return mM;case he.InstrumentType.GAUGE:case he.InstrumentType.OBSERVABLE_GAUGE:return NM;case he.InstrumentType.HISTOGRAM:return r.advice.explicitBucketBoundaries?new Io(r.advice.explicitBucketBoundaries):hM}return Qz.diag.warn(`Unable to recognize instrument type: ${r.type}`),OM}createAggregator(r){return this._resolve(r).createAggregator(r)}};F.DefaultAggregation=Co;var OM=new Ir,mM=new $t,NM=new xr,hM=new Cr,Zz=new xo,eJ=new Co});var Wu=S(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR=Qt.DEFAULT_AGGREGATION_SELECTOR=void 0;var tJ=bo(),rJ=fo(),nJ=o=>tJ.Aggregation.Default();Qt.DEFAULT_AGGREGATION_SELECTOR=nJ;var oJ=o=>rJ.AggregationTemporality.CUMULATIVE;Qt.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR=oJ});var Ju=S(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.MetricReader=void 0;var RM=(m(),h(y)),Uo=Ee(),yM=Wu(),zu=class{constructor(r){var i,c,a;this._shutdown=!1,this._aggregationSelector=(i=r?.aggregationSelector)!==null&&i!==void 0?i:yM.DEFAULT_AGGREGATION_SELECTOR,this._aggregationTemporalitySelector=(c=r?.aggregationTemporalitySelector)!==null&&c!==void 0?c:yM.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR,this._metricProducers=(a=r?.metricProducers)!==null&&a!==void 0?a:[],this._cardinalitySelector=r?.cardinalitySelector}setMetricProducer(r){if(this._sdkMetricProducer)throw new Error("MetricReader can not be bound to a MeterProvider again.");this._sdkMetricProducer=r,this.onInitialized()}selectAggregation(r){return this._aggregationSelector(r)}selectAggregationTemporality(r){return this._aggregationTemporalitySelector(r)}selectCardinalityLimit(r){return this._cardinalitySelector?this._cardinalitySelector(r):2e3}onInitialized(){}async collect(r){if(this._sdkMetricProducer===void 0)throw new Error("MetricReader is not bound to a MetricProducer");if(this._shutdown)throw new Error("MetricReader is shutdown");let[i,...c]=await Promise.all([this._sdkMetricProducer.collect({timeoutMillis:r?.timeoutMillis}),...this._metricProducers.map(e=>e.collect({timeoutMillis:r?.timeoutMillis}))]),a=i.errors.concat((0,Uo.FlatMap)(c,e=>e.errors)),u=i.resourceMetrics.resource,t=i.resourceMetrics.scopeMetrics.concat((0,Uo.FlatMap)(c,e=>e.resourceMetrics.scopeMetrics));return{resourceMetrics:{resource:u,scopeMetrics:t},errors:a}}async shutdown(r){if(this._shutdown){RM.diag.error("Cannot call shutdown twice.");return}r?.timeoutMillis==null?await this.onShutdown():await(0,Uo.callWithTimeout)(this.onShutdown(),r.timeoutMillis),this._shutdown=!0}async forceFlush(r){if(this._shutdown){RM.diag.warn("Cannot forceFlush on already shutdown MetricReader.");return}if(r?.timeoutMillis==null){await this.onForceFlush();return}await(0,Uo.callWithTimeout)(this.onForceFlush(),r.timeoutMillis)}};Do.MetricReader=zu});var MM=S(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.PeriodicExportingMetricReader=void 0;var Xu=(m(),h(y)),br=C(),iJ=Ju(),PM=Ee(),$u=class extends iJ.MetricReader{constructor(r){var i,c,a,u;if(super({aggregationSelector:(i=r.exporter.selectAggregation)===null||i===void 0?void 0:i.bind(r.exporter),aggregationTemporalitySelector:(c=r.exporter.selectAggregationTemporality)===null||c===void 0?void 0:c.bind(r.exporter),metricProducers:r.metricProducers}),r.exportIntervalMillis!==void 0&&r.exportIntervalMillis<=0)throw Error("exportIntervalMillis must be greater than 0");if(r.exportTimeoutMillis!==void 0&&r.exportTimeoutMillis<=0)throw Error("exportTimeoutMillis must be greater than 0");if(r.exportTimeoutMillis!==void 0&&r.exportIntervalMillis!==void 0&&r.exportIntervalMillis<r.exportTimeoutMillis)throw Error("exportIntervalMillis must be greater than or equal to exportTimeoutMillis");this._exportInterval=(a=r.exportIntervalMillis)!==null&&a!==void 0?a:6e4,this._exportTimeout=(u=r.exportTimeoutMillis)!==null&&u!==void 0?u:3e4,this._exporter=r.exporter}async _runOnce(){try{await(0,PM.callWithTimeout)(this._doRun(),this._exportTimeout)}catch(r){if(r instanceof PM.TimeoutError){Xu.diag.error("Export took longer than %s milliseconds and timed out.",this._exportTimeout);return}(0,br.globalErrorHandler)(r)}}async _doRun(){var r,i;let{resourceMetrics:c,errors:a}=await this.collect({timeoutMillis:this._exportTimeout});if(a.length>0&&Xu.diag.error("PeriodicExportingMetricReader: metrics collection errors",...a),c.resource.asyncAttributesPending)try{await((i=(r=c.resource).waitForAsyncAttributes)===null||i===void 0?void 0:i.call(r))}catch(t){Xu.diag.debug("Error while resolving async portion of resource: ",t),(0,br.globalErrorHandler)(t)}if(c.scopeMetrics.length===0)return;let u=await br.internal._export(this._exporter,c);if(u.code!==br.ExportResultCode.SUCCESS)throw new Error(`PeriodicExportingMetricReader: metrics export failed (error ${u.error})`)}onInitialized(){this._interval=setInterval(()=>{this._runOnce()},this._exportInterval),(0,br.unrefTimer)(this._interval)}async onForceFlush(){await this._runOnce(),await this._exporter.forceFlush()}async onShutdown(){this._interval&&clearInterval(this._interval),await this.onForceFlush(),await this._exporter.shutdown()}};Vo.PeriodicExportingMetricReader=$u});var LM=S(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.InMemoryMetricExporter=void 0;var gM=C(),Qu=class{constructor(r){this._shutdown=!1,this._metrics=[],this._aggregationTemporality=r}export(r,i){if(this._shutdown){setTimeout(()=>i({code:gM.ExportResultCode.FAILED}),0);return}this._metrics.push(r),setTimeout(()=>i({code:gM.ExportResultCode.SUCCESS}),0)}getMetrics(){return this._metrics}forceFlush(){return Promise.resolve()}reset(){this._metrics=[]}selectAggregationTemporality(r){return this._aggregationTemporality}shutdown(){return this._shutdown=!0,Promise.resolve()}};wo.InMemoryMetricExporter=Qu});var xM=S(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.ConsoleMetricExporter=void 0;var IM=C(),aJ=Wu(),Zu=class o{constructor(r){var i;this._shutdown=!1,this._temporalitySelector=(i=r?.temporalitySelector)!==null&&i!==void 0?i:aJ.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR}export(r,i){if(this._shutdown){setImmediate(i,{code:IM.ExportResultCode.FAILED});return}return o._sendMetrics(r,i)}forceFlush(){return Promise.resolve()}selectAggregationTemporality(r){return this._temporalitySelector(r)}shutdown(){return this._shutdown=!0,Promise.resolve()}static _sendMetrics(r,i){for(let c of r.scopeMetrics)for(let a of c.metrics)console.dir({descriptor:a.descriptor,dataPointType:a.dataPointType,dataPoints:a.dataPoints},{depth:null});i({code:IM.ExportResultCode.SUCCESS})}};Bo.ConsoleMetricExporter=Zu});var CM=S(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.ViewRegistry=void 0;var es=class{constructor(){this._registeredViews=[]}addView(r){this._registeredViews.push(r)}findViews(r,i){return this._registeredViews.filter(a=>this._matchInstrument(a.instrumentSelector,r)&&this._matchMeter(a.meterSelector,i))}_matchInstrument(r,i){return(r.getType()===void 0||i.type===r.getType())&&r.getNameFilter().match(i.name)&&r.getUnitFilter().match(i.unit)}_matchMeter(r,i){return r.getNameFilter().match(i.name)&&(i.version===void 0||r.getVersionFilter().match(i.version))&&(i.schemaUrl===void 0||r.getSchemaUrlFilter().match(i.schemaUrl))}};Go.ViewRegistry=es});var Ho=S(b=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});b.isObservableInstrument=b.ObservableUpDownCounterInstrument=b.ObservableGaugeInstrument=b.ObservableCounterInstrument=b.ObservableInstrument=b.HistogramInstrument=b.GaugeInstrument=b.CounterInstrument=b.UpDownCounterInstrument=b.SyncInstrument=void 0;var Zt=(m(),h(y)),uJ=C(),at=class{constructor(r,i){this._writableMetricStorage=r,this._descriptor=i}_record(r,i={},c=Zt.context.active()){if(typeof r!="number"){Zt.diag.warn(`non-number value provided to metric ${this._descriptor.name}: ${r}`);return}this._descriptor.valueType===Zt.ValueType.INT&&!Number.isInteger(r)&&(Zt.diag.warn(`INT value type cannot accept a floating-point value for ${this._descriptor.name}, ignoring the fractional digits.`),r=Math.trunc(r),!Number.isInteger(r))||this._writableMetricStorage.record(r,i,c,(0,uJ.millisToHrTime)(Date.now()))}};b.SyncInstrument=at;var ts=class extends at{add(r,i,c){this._record(r,i,c)}};b.UpDownCounterInstrument=ts;var rs=class extends at{add(r,i,c){if(r<0){Zt.diag.warn(`negative value provided to counter ${this._descriptor.name}: ${r}`);return}this._record(r,i,c)}};b.CounterInstrument=rs;var ns=class extends at{record(r,i,c){this._record(r,i,c)}};b.GaugeInstrument=ns;var os=class extends at{record(r,i,c){if(r<0){Zt.diag.warn(`negative value provided to histogram ${this._descriptor.name}: ${r}`);return}this._record(r,i,c)}};b.HistogramInstrument=os;var ut=class{constructor(r,i,c){this._observableRegistry=c,this._descriptor=r,this._metricStorages=i}addCallback(r){this._observableRegistry.addCallback(r,this)}removeCallback(r){this._observableRegistry.removeCallback(r,this)}};b.ObservableInstrument=ut;var is=class extends ut{};b.ObservableCounterInstrument=is;var as=class extends ut{};b.ObservableGaugeInstrument=as;var us=class extends ut{};b.ObservableUpDownCounterInstrument=us;function sJ(o){return o instanceof ut}b.isObservableInstrument=sJ});var bM=S(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.Meter=void 0;var Z=Ce(),st=Ho(),ss=class{constructor(r){this._meterSharedState=r}createGauge(r,i){let c=(0,Z.createInstrumentDescriptor)(r,Z.InstrumentType.GAUGE,i),a=this._meterSharedState.registerMetricStorage(c);return new st.GaugeInstrument(a,c)}createHistogram(r,i){let c=(0,Z.createInstrumentDescriptor)(r,Z.InstrumentType.HISTOGRAM,i),a=this._meterSharedState.registerMetricStorage(c);return new st.HistogramInstrument(a,c)}createCounter(r,i){let c=(0,Z.createInstrumentDescriptor)(r,Z.InstrumentType.COUNTER,i),a=this._meterSharedState.registerMetricStorage(c);return new st.CounterInstrument(a,c)}createUpDownCounter(r,i){let c=(0,Z.createInstrumentDescriptor)(r,Z.InstrumentType.UP_DOWN_COUNTER,i),a=this._meterSharedState.registerMetricStorage(c);return new st.UpDownCounterInstrument(a,c)}createObservableGauge(r,i){let c=(0,Z.createInstrumentDescriptor)(r,Z.InstrumentType.OBSERVABLE_GAUGE,i),a=this._meterSharedState.registerAsyncMetricStorage(c);return new st.ObservableGaugeInstrument(c,a,this._meterSharedState.observableRegistry)}createObservableCounter(r,i){let c=(0,Z.createInstrumentDescriptor)(r,Z.InstrumentType.OBSERVABLE_COUNTER,i),a=this._meterSharedState.registerAsyncMetricStorage(c);return new st.ObservableCounterInstrument(c,a,this._meterSharedState.observableRegistry)}createObservableUpDownCounter(r,i){let c=(0,Z.createInstrumentDescriptor)(r,Z.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER,i),a=this._meterSharedState.registerAsyncMetricStorage(c);return new st.ObservableUpDownCounterInstrument(c,a,this._meterSharedState.observableRegistry)}addBatchObservableCallback(r,i){this._meterSharedState.observableRegistry.addBatchCallback(r,i)}removeBatchObservableCallback(r,i){this._meterSharedState.observableRegistry.removeBatchCallback(r,i)}};ko.Meter=ss});var ls=S(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.MetricStorage=void 0;var cJ=Ce(),cs=class{constructor(r){this._instrumentDescriptor=r}getInstrumentDescriptor(){return this._instrumentDescriptor}updateDescription(r){this._instrumentDescriptor=(0,cJ.createInstrumentDescriptor)(this._instrumentDescriptor.name,this._instrumentDescriptor.type,{description:r,valueType:this._instrumentDescriptor.valueType,unit:this._instrumentDescriptor.unit,advice:this._instrumentDescriptor.advice})}};Yo.MetricStorage=cs});var Ur=S(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.AttributeHashMap=er.HashMap=void 0;var lJ=Ee(),Fo=class{constructor(r){this._hash=r,this._valueMap=new Map,this._keyMap=new Map}get(r,i){return i??(i=this._hash(r)),this._valueMap.get(i)}getOrDefault(r,i){let c=this._hash(r);if(this._valueMap.has(c))return this._valueMap.get(c);let a=i();return this._keyMap.has(c)||this._keyMap.set(c,r),this._valueMap.set(c,a),a}set(r,i,c){c??(c=this._hash(r)),this._keyMap.has(c)||this._keyMap.set(c,r),this._valueMap.set(c,i)}has(r,i){return i??(i=this._hash(r)),this._valueMap.has(i)}*keys(){let r=this._keyMap.entries(),i=r.next();for(;i.done!==!0;)yield[i.value[1],i.value[0]],i=r.next()}*entries(){let r=this._valueMap.entries(),i=r.next();for(;i.done!==!0;)yield[this._keyMap.get(i.value[0]),i.value[1],i.value[0]],i=r.next()}get size(){return this._valueMap.size}};er.HashMap=Fo;var ps=class extends Fo{constructor(){super(lJ.hashAttributes)}};er.AttributeHashMap=ps});var Ts=S(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.DeltaMetricProcessor=void 0;var pJ=Ee(),_s=Ur(),Es=class{constructor(r,i){this._aggregator=r,this._activeCollectionStorage=new _s.AttributeHashMap,this._cumulativeMemoStorage=new _s.AttributeHashMap,this._overflowAttributes={"otel.metric.overflow":!0},this._cardinalityLimit=(i??2e3)-1,this._overflowHashCode=(0,pJ.hashAttributes)(this._overflowAttributes)}record(r,i,c,a){let u=this._activeCollectionStorage.get(i);if(!u){if(this._activeCollectionStorage.size>=this._cardinalityLimit){let t=this._activeCollectionStorage.getOrDefault(this._overflowAttributes,()=>this._aggregator.createAccumulation(a));t?.record(r);return}u=this._aggregator.createAccumulation(a),this._activeCollectionStorage.set(i,u)}u?.record(r)}batchCumulate(r,i){Array.from(r.entries()).forEach(([c,a,u])=>{let t=this._aggregator.createAccumulation(i);t?.record(a);let e=t;if(this._cumulativeMemoStorage.has(c,u)){let n=this._cumulativeMemoStorage.get(c,u);e=this._aggregator.diff(n,t)}else if(this._cumulativeMemoStorage.size>=this._cardinalityLimit&&(c=this._overflowAttributes,u=this._overflowHashCode,this._cumulativeMemoStorage.has(c,u))){let n=this._cumulativeMemoStorage.get(c,u);e=this._aggregator.diff(n,t)}if(this._activeCollectionStorage.has(c,u)){let n=this._activeCollectionStorage.get(c,u);e=this._aggregator.merge(n,e)}this._cumulativeMemoStorage.set(c,t,u),this._activeCollectionStorage.set(c,e,u)})}collect(){let r=this._activeCollectionStorage;return this._activeCollectionStorage=new _s.AttributeHashMap,r}};Ko.DeltaMetricProcessor=Es});var fs=S(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.TemporalMetricProcessor=void 0;var _J=fo(),EJ=Ur(),Ss=class o{constructor(r,i){this._aggregator=r,this._unreportedAccumulations=new Map,this._reportHistory=new Map,i.forEach(c=>{this._unreportedAccumulations.set(c,[])})}buildMetrics(r,i,c,a){this._stashAccumulations(c);let u=this._getMergedUnreportedAccumulations(r),t=u,e;if(this._reportHistory.has(r)){let s=this._reportHistory.get(r),l=s.collectionTime;e=s.aggregationTemporality,e===_J.AggregationTemporality.CUMULATIVE?t=o.merge(s.accumulations,u,this._aggregator):t=o.calibrateStartTime(s.accumulations,u,l)}else e=r.selectAggregationTemporality(i.type);this._reportHistory.set(r,{accumulations:t,collectionTime:a,aggregationTemporality:e});let n=TJ(t);if(n.length!==0)return this._aggregator.toMetricData(i,e,n,a)}_stashAccumulations(r){let i=this._unreportedAccumulations.keys();for(let c of i){let a=this._unreportedAccumulations.get(c);a===void 0&&(a=[],this._unreportedAccumulations.set(c,a)),a.push(r)}}_getMergedUnreportedAccumulations(r){let i=new EJ.AttributeHashMap,c=this._unreportedAccumulations.get(r);if(this._unreportedAccumulations.set(r,[]),c===void 0)return i;for(let a of c)i=o.merge(i,a,this._aggregator);return i}static merge(r,i,c){let a=r,u=i.entries(),t=u.next();for(;t.done!==!0;){let[e,n,s]=t.value;if(r.has(e,s)){let l=r.get(e,s),E=c.merge(l,n);a.set(e,E,s)}else a.set(e,n,s);t=u.next()}return a}static calibrateStartTime(r,i,c){for(let[a,u]of r.keys()){let t=i.get(a,u);t?.setStartTime(c)}return i}};jo.TemporalMetricProcessor=Ss;function TJ(o){return Array.from(o.entries())}});var UM=S(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.AsyncMetricStorage=void 0;var SJ=ls(),fJ=Ts(),dJ=fs(),AJ=Ur(),ds=class extends SJ.MetricStorage{constructor(r,i,c,a,u){super(r),this._attributesProcessor=c,this._aggregationCardinalityLimit=u,this._deltaMetricStorage=new fJ.DeltaMetricProcessor(i,this._aggregationCardinalityLimit),this._temporalMetricStorage=new dJ.TemporalMetricProcessor(i,a)}record(r,i){let c=new AJ.AttributeHashMap;Array.from(r.entries()).forEach(([a,u])=>{c.set(this._attributesProcessor.process(a),u)}),this._deltaMetricStorage.batchCumulate(c,i)}collect(r,i){let c=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(r,this._instrumentDescriptor,c,i)}};qo.AsyncMetricStorage=ds});var GM=S(ee=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});ee.getConflictResolutionRecipe=ee.getDescriptionResolutionRecipe=ee.getTypeConflictResolutionRecipe=ee.getUnitConflictResolutionRecipe=ee.getValueTypeConflictResolutionRecipe=ee.getIncompatibilityDetails=void 0;function vJ(o,r){let i="";return o.unit!==r.unit&&(i+=` - Unit '${o.unit}' does not match '${r.unit}'
3
+ "use strict";var $I=Object.create;var $r=Object.defineProperty;var QI=Object.getOwnPropertyDescriptor;var ZI=Object.getOwnPropertyNames;var eC=Object.getPrototypeOf,tC=Object.prototype.hasOwnProperty;var d=(o,r)=>()=>(o&&(r=o(o=0)),r);var S=(o,r)=>()=>(r||o((r={exports:{}}).exports,r),r.exports),At=(o,r)=>{for(var i in r)$r(o,i,{get:r[i],enumerable:!0})},gc=(o,r,i,c)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of ZI(r))!tC.call(o,a)&&a!==i&&$r(o,a,{get:()=>r[a],enumerable:!(c=QI(r,a))||c.enumerable});return o};var ve=(o,r,i)=>(i=o!=null?$I(eC(o)):{},gc(r||!o||!o.__esModule?$r(i,"default",{value:o,enumerable:!0}):i,o)),N=o=>gc($r({},"__esModule",{value:!0}),o);var Cc,xc=d(()=>{Cc=typeof globalThis=="object"?globalThis:global});var bc=d(()=>{xc()});var Uc=d(()=>{bc()});var Ce,ua=d(()=>{Ce="1.9.0"});function rC(o){var r=new Set([o]),i=new Set,c=o.match(Dc);if(!c)return function(){return!1};var a={major:+c[1],minor:+c[2],patch:+c[3],prerelease:c[4]};if(a.prerelease!=null)return function(n){return n===o};function u(e){return i.add(e),!1}function t(e){return r.add(e),!0}return function(n){if(r.has(n))return!0;if(i.has(n))return!1;var s=n.match(Dc);if(!s)return u(n);var l={major:+s[1],minor:+s[2],patch:+s[3],prerelease:s[4]};return l.prerelease!=null||a.major!==l.major?u(n):a.major===0?a.minor===l.minor&&a.patch<=l.patch?t(n):u(n):a.minor<=l.minor?t(n):u(n)}}var Dc,Vc,wc=d(()=>{ua();Dc=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;Vc=rC(Ce)});function me(o,r,i,c){var a;c===void 0&&(c=!1);var u=lr[cr]=(a=lr[cr])!==null&&a!==void 0?a:{version:Ce};if(!c&&u[o]){var t=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+o);return i.error(t.stack||t.message),!1}if(u.version!==Ce){var t=new Error("@opentelemetry/api: Registration of version v"+u.version+" for "+o+" does not match previously registered API v"+Ce);return i.error(t.stack||t.message),!1}return u[o]=r,i.debug("@opentelemetry/api: Registered a global for "+o+" v"+Ce+"."),!0}function oe(o){var r,i,c=(r=lr[cr])===null||r===void 0?void 0:r.version;if(!(!c||!Vc(c)))return(i=lr[cr])===null||i===void 0?void 0:i[o]}function he(o,r){r.debug("@opentelemetry/api: Unregistering a global for "+o+" v"+Ce+".");var i=lr[cr];i&&delete i[o]}var nC,cr,lr,Qe=d(()=>{Uc();ua();wc();nC=Ce.split(".")[0],cr=Symbol.for("opentelemetry.js.api."+nC),lr=Cc});function pr(o,r,i){var c=oe("diag");if(c)return i.unshift(r),c[o].apply(c,iC([],oC(i),!1))}var oC,iC,Bc,Gc=d(()=>{Qe();oC=function(o,r){var i=typeof Symbol=="function"&&o[Symbol.iterator];if(!i)return o;var c=i.call(o),a,u=[],t;try{for(;(r===void 0||r-- >0)&&!(a=c.next()).done;)u.push(a.value)}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=c.return)&&i.call(c)}finally{if(t)throw t.error}}return u},iC=function(o,r,i){if(i||arguments.length===2)for(var c=0,a=r.length,u;c<a;c++)(u||!(c in r))&&(u||(u=Array.prototype.slice.call(r,0,c)),u[c]=r[c]);return o.concat(u||Array.prototype.slice.call(r))},Bc=function(){function o(r){this._namespace=r.namespace||"DiagComponentLogger"}return o.prototype.debug=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return pr("debug",this._namespace,r)},o.prototype.error=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return pr("error",this._namespace,r)},o.prototype.info=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return pr("info",this._namespace,r)},o.prototype.warn=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return pr("warn",this._namespace,r)},o.prototype.verbose=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return pr("verbose",this._namespace,r)},o}()});var j,en=d(()=>{(function(o){o[o.NONE=0]="NONE",o[o.ERROR=30]="ERROR",o[o.WARN=50]="WARN",o[o.INFO=60]="INFO",o[o.DEBUG=70]="DEBUG",o[o.VERBOSE=80]="VERBOSE",o[o.ALL=9999]="ALL"})(j||(j={}))});function Hc(o,r){o<j.NONE?o=j.NONE:o>j.ALL&&(o=j.ALL),r=r||{};function i(c,a){var u=r[c];return typeof u=="function"&&o>=a?u.bind(r):function(){}}return{error:i("error",j.ERROR),warn:i("warn",j.WARN),info:i("info",j.INFO),debug:i("debug",j.DEBUG),verbose:i("verbose",j.VERBOSE)}}var kc=d(()=>{en()});var aC,uC,sC,z,Ze=d(()=>{Gc();kc();en();Qe();aC=function(o,r){var i=typeof Symbol=="function"&&o[Symbol.iterator];if(!i)return o;var c=i.call(o),a,u=[],t;try{for(;(r===void 0||r-- >0)&&!(a=c.next()).done;)u.push(a.value)}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=c.return)&&i.call(c)}finally{if(t)throw t.error}}return u},uC=function(o,r,i){if(i||arguments.length===2)for(var c=0,a=r.length,u;c<a;c++)(u||!(c in r))&&(u||(u=Array.prototype.slice.call(r,0,c)),u[c]=r[c]);return o.concat(u||Array.prototype.slice.call(r))},sC="diag",z=function(){function o(){function r(a){return function(){for(var u=[],t=0;t<arguments.length;t++)u[t]=arguments[t];var e=oe("diag");if(e)return e[a].apply(e,uC([],aC(u),!1))}}var i=this,c=function(a,u){var t,e,n;if(u===void 0&&(u={logLevel:j.INFO}),a===i){var s=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return i.error((t=s.stack)!==null&&t!==void 0?t:s.message),!1}typeof u=="number"&&(u={logLevel:u});var l=oe("diag"),E=Hc((e=u.logLevel)!==null&&e!==void 0?e:j.INFO,a);if(l&&!u.suppressOverrideMessage){var O=(n=new Error().stack)!==null&&n!==void 0?n:"<failed to generate stacktrace>";l.warn("Current logger will be overwritten from "+O),E.warn("Current logger will overwrite one already registered from "+O)}return me("diag",E,i,!0)};i.setLogger=c,i.disable=function(){he(sC,i)},i.createComponentLogger=function(a){return new Bc(a)},i.verbose=r("verbose"),i.debug=r("debug"),i.info=r("info"),i.warn=r("warn"),i.error=r("error")}return o.instance=function(){return this._instance||(this._instance=new o),this._instance},o}()});var cC,lC,Yc,Fc=d(()=>{cC=function(o,r){var i=typeof Symbol=="function"&&o[Symbol.iterator];if(!i)return o;var c=i.call(o),a,u=[],t;try{for(;(r===void 0||r-- >0)&&!(a=c.next()).done;)u.push(a.value)}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=c.return)&&i.call(c)}finally{if(t)throw t.error}}return u},lC=function(o){var r=typeof Symbol=="function"&&Symbol.iterator,i=r&&o[r],c=0;if(i)return i.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&c>=o.length&&(o=void 0),{value:o&&o[c++],done:!o}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")},Yc=function(){function o(r){this._entries=r?new Map(r):new Map}return o.prototype.getEntry=function(r){var i=this._entries.get(r);if(i)return Object.assign({},i)},o.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(r){var i=cC(r,2),c=i[0],a=i[1];return[c,a]})},o.prototype.setEntry=function(r,i){var c=new o(this._entries);return c._entries.set(r,i),c},o.prototype.removeEntry=function(r){var i=new o(this._entries);return i._entries.delete(r),i},o.prototype.removeEntries=function(){for(var r,i,c=[],a=0;a<arguments.length;a++)c[a]=arguments[a];var u=new o(this._entries);try{for(var t=lC(c),e=t.next();!e.done;e=t.next()){var n=e.value;u._entries.delete(n)}}catch(s){r={error:s}}finally{try{e&&!e.done&&(i=t.return)&&i.call(t)}finally{if(r)throw r.error}}return u},o.prototype.clear=function(){return new o},o}()});var Kc,jc=d(()=>{Kc=Symbol("BaggageEntryMetadata")});function qc(o){return o===void 0&&(o={}),new Yc(new Map(Object.entries(o)))}function Wc(o){return typeof o!="string"&&(pC.error("Cannot create baggage metadata from unknown type: "+typeof o),o=""),{__TYPE__:Kc,toString:function(){return o}}}var pC,sa=d(()=>{Ze();Fc();jc();pC=z.instance()});function vt(o){return Symbol.for(o)}var _C,tn,_r=d(()=>{_C=function(){function o(r){var i=this;i._currentContext=r?new Map(r):new Map,i.getValue=function(c){return i._currentContext.get(c)},i.setValue=function(c,a){var u=new o(i._currentContext);return u._currentContext.set(c,a),u},i.deleteValue=function(c){var a=new o(i._currentContext);return a._currentContext.delete(c),a}}return o}(),tn=new _C});var ca,zc,Jc=d(()=>{ca=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],zc=function(){function o(){function r(c){return function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];if(console){var t=console[c];if(typeof t!="function"&&(t=console.log),typeof t=="function")return t.apply(console,a)}}}for(var i=0;i<ca.length;i++)this[ca[i].n]=r(ca[i].c)}return o}()});function Xc(){return pa}var et,EC,rn,TC,SC,fC,dC,la,AC,vC,OC,pa,mC,hC,NC,RC,yC,PC,MC,_a=d(()=>{et=function(){var o=function(r,i){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(c[u]=a[u])},o(r,i)};return function(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");o(r,i);function c(){this.constructor=r}r.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}}(),EC=function(){function o(){}return o.prototype.createGauge=function(r,i){return hC},o.prototype.createHistogram=function(r,i){return NC},o.prototype.createCounter=function(r,i){return mC},o.prototype.createUpDownCounter=function(r,i){return RC},o.prototype.createObservableGauge=function(r,i){return PC},o.prototype.createObservableCounter=function(r,i){return yC},o.prototype.createObservableUpDownCounter=function(r,i){return MC},o.prototype.addBatchObservableCallback=function(r,i){},o.prototype.removeBatchObservableCallback=function(r){},o}(),rn=function(){function o(){}return o}(),TC=function(o){et(r,o);function r(){return o!==null&&o.apply(this,arguments)||this}return r.prototype.add=function(i,c){},r}(rn),SC=function(o){et(r,o);function r(){return o!==null&&o.apply(this,arguments)||this}return r.prototype.add=function(i,c){},r}(rn),fC=function(o){et(r,o);function r(){return o!==null&&o.apply(this,arguments)||this}return r.prototype.record=function(i,c){},r}(rn),dC=function(o){et(r,o);function r(){return o!==null&&o.apply(this,arguments)||this}return r.prototype.record=function(i,c){},r}(rn),la=function(){function o(){}return o.prototype.addCallback=function(r){},o.prototype.removeCallback=function(r){},o}(),AC=function(o){et(r,o);function r(){return o!==null&&o.apply(this,arguments)||this}return r}(la),vC=function(o){et(r,o);function r(){return o!==null&&o.apply(this,arguments)||this}return r}(la),OC=function(o){et(r,o);function r(){return o!==null&&o.apply(this,arguments)||this}return r}(la),pa=new EC,mC=new TC,hC=new fC,NC=new dC,RC=new SC,yC=new AC,PC=new vC,MC=new OC});var nn,$c=d(()=>{(function(o){o[o.INT=0]="INT",o[o.DOUBLE=1]="DOUBLE"})(nn||(nn={}))});var on,an,Ea=d(()=>{on={get:function(o,r){if(o!=null)return o[r]},keys:function(o){return o==null?[]:Object.keys(o)}},an={set:function(o,r,i){o!=null&&(o[r]=i)}}});var gC,LC,Qc,Zc=d(()=>{_r();gC=function(o,r){var i=typeof Symbol=="function"&&o[Symbol.iterator];if(!i)return o;var c=i.call(o),a,u=[],t;try{for(;(r===void 0||r-- >0)&&!(a=c.next()).done;)u.push(a.value)}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=c.return)&&i.call(c)}finally{if(t)throw t.error}}return u},LC=function(o,r,i){if(i||arguments.length===2)for(var c=0,a=r.length,u;c<a;c++)(u||!(c in r))&&(u||(u=Array.prototype.slice.call(r,0,c)),u[c]=r[c]);return o.concat(u||Array.prototype.slice.call(r))},Qc=function(){function o(){}return o.prototype.active=function(){return tn},o.prototype.with=function(r,i,c){for(var a=[],u=3;u<arguments.length;u++)a[u-3]=arguments[u];return i.call.apply(i,LC([c],gC(a),!1))},o.prototype.bind=function(r,i){return i},o.prototype.enable=function(){return this},o.prototype.disable=function(){return this},o}()});var IC,CC,Ta,xC,De,Er=d(()=>{Zc();Qe();Ze();IC=function(o,r){var i=typeof Symbol=="function"&&o[Symbol.iterator];if(!i)return o;var c=i.call(o),a,u=[],t;try{for(;(r===void 0||r-- >0)&&!(a=c.next()).done;)u.push(a.value)}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=c.return)&&i.call(c)}finally{if(t)throw t.error}}return u},CC=function(o,r,i){if(i||arguments.length===2)for(var c=0,a=r.length,u;c<a;c++)(u||!(c in r))&&(u||(u=Array.prototype.slice.call(r,0,c)),u[c]=r[c]);return o.concat(u||Array.prototype.slice.call(r))},Ta="context",xC=new Qc,De=function(){function o(){}return o.getInstance=function(){return this._instance||(this._instance=new o),this._instance},o.prototype.setGlobalContextManager=function(r){return me(Ta,r,z.instance())},o.prototype.active=function(){return this._getContextManager().active()},o.prototype.with=function(r,i,c){for(var a,u=[],t=3;t<arguments.length;t++)u[t-3]=arguments[t];return(a=this._getContextManager()).with.apply(a,CC([r,i,c],IC(u),!1))},o.prototype.bind=function(r,i){return this._getContextManager().bind(r,i)},o.prototype._getContextManager=function(){return oe(Ta)||xC},o.prototype.disable=function(){this._getContextManager().disable(),he(Ta,z.instance())},o}()});var Ot,Sa=d(()=>{(function(o){o[o.NONE=0]="NONE",o[o.SAMPLED=1]="SAMPLED"})(Ot||(Ot={}))});var Tr,Sr,un,sn=d(()=>{Sa();Tr="0000000000000000",Sr="00000000000000000000000000000000",un={traceId:Sr,spanId:Tr,traceFlags:Ot.NONE}});var Ve,cn=d(()=>{sn();Ve=function(){function o(r){r===void 0&&(r=un),this._spanContext=r}return o.prototype.spanContext=function(){return this._spanContext},o.prototype.setAttribute=function(r,i){return this},o.prototype.setAttributes=function(r){return this},o.prototype.addEvent=function(r,i){return this},o.prototype.addLink=function(r){return this},o.prototype.addLinks=function(r){return this},o.prototype.setStatus=function(r){return this},o.prototype.updateName=function(r){return this},o.prototype.end=function(r){},o.prototype.isRecording=function(){return!1},o.prototype.recordException=function(r,i){},o}()});function ln(o){return o.getValue(fa)||void 0}function el(){return ln(De.getInstance().active())}function fr(o,r){return o.setValue(fa,r)}function tl(o){return o.deleteValue(fa)}function rl(o,r){return fr(o,new Ve(r))}function pn(o){var r;return(r=ln(o))===null||r===void 0?void 0:r.spanContext()}var fa,da=d(()=>{_r();cn();Er();fa=vt("OpenTelemetry Context Key SPAN")});function Aa(o){return bC.test(o)&&o!==Sr}function va(o){return UC.test(o)&&o!==Tr}function mt(o){return Aa(o.traceId)&&va(o.spanId)}function nl(o){return new Ve(o)}var bC,UC,_n=d(()=>{sn();cn();bC=/^([0-9a-f]{32})$/i,UC=/^[0-9a-f]{16}$/i});function DC(o){return typeof o=="object"&&typeof o.spanId=="string"&&typeof o.traceId=="string"&&typeof o.traceFlags=="number"}var Oa,En,ma=d(()=>{Er();da();cn();_n();Oa=De.getInstance(),En=function(){function o(){}return o.prototype.startSpan=function(r,i,c){c===void 0&&(c=Oa.active());var a=!!i?.root;if(a)return new Ve;var u=c&&pn(c);return DC(u)&&mt(u)?new Ve(u):new Ve},o.prototype.startActiveSpan=function(r,i,c,a){var u,t,e;if(!(arguments.length<2)){arguments.length===2?e=i:arguments.length===3?(u=i,e=c):(u=i,t=c,e=a);var n=t??Oa.active(),s=this.startSpan(r,u,n),l=fr(n,s);return Oa.with(l,e,void 0,s)}},o}()});var VC,Tn,ha=d(()=>{ma();VC=new En,Tn=function(){function o(r,i,c,a){this._provider=r,this.name=i,this.version=c,this.options=a}return o.prototype.startSpan=function(r,i,c){return this._getTracer().startSpan(r,i,c)},o.prototype.startActiveSpan=function(r,i,c,a){var u=this._getTracer();return Reflect.apply(u.startActiveSpan,u,arguments)},o.prototype._getTracer=function(){if(this._delegate)return this._delegate;var r=this._provider.getDelegateTracer(this.name,this.version,this.options);return r?(this._delegate=r,this._delegate):VC},o}()});var ol,il=d(()=>{ma();ol=function(){function o(){}return o.prototype.getTracer=function(r,i,c){return new En},o}()});var wC,dr,Na=d(()=>{ha();il();wC=new ol,dr=function(){function o(){}return o.prototype.getTracer=function(r,i,c){var a;return(a=this.getDelegateTracer(r,i,c))!==null&&a!==void 0?a:new Tn(this,r,i,c)},o.prototype.getDelegate=function(){var r;return(r=this._delegate)!==null&&r!==void 0?r:wC},o.prototype.setDelegate=function(r){this._delegate=r},o.prototype.getDelegateTracer=function(r,i,c){var a;return(a=this._delegate)===null||a===void 0?void 0:a.getTracer(r,i,c)},o}()});var Sn,al=d(()=>{(function(o){o[o.NOT_RECORD=0]="NOT_RECORD",o[o.RECORD=1]="RECORD",o[o.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Sn||(Sn={}))});var we,ul=d(()=>{(function(o){o[o.INTERNAL=0]="INTERNAL",o[o.SERVER=1]="SERVER",o[o.CLIENT=2]="CLIENT",o[o.PRODUCER=3]="PRODUCER",o[o.CONSUMER=4]="CONSUMER"})(we||(we={}))});var ht,sl=d(()=>{(function(o){o[o.UNSET=0]="UNSET",o[o.OK=1]="OK",o[o.ERROR=2]="ERROR"})(ht||(ht={}))});function cl(o){return HC.test(o)}function ll(o){return kC.test(o)&&!YC.test(o)}var Ra,BC,GC,HC,kC,YC,pl=d(()=>{Ra="[_0-9a-z-*/]",BC="[a-z]"+Ra+"{0,255}",GC="[a-z0-9]"+Ra+"{0,240}@[a-z]"+Ra+"{0,13}",HC=new RegExp("^(?:"+BC+"|"+GC+")$"),kC=/^[ -~]{0,255}[!-~]$/,YC=/,|=/});var _l,FC,El,Tl,Sl,fl=d(()=>{pl();_l=32,FC=512,El=",",Tl="=",Sl=function(){function o(r){this._internalState=new Map,r&&this._parse(r)}return o.prototype.set=function(r,i){var c=this._clone();return c._internalState.has(r)&&c._internalState.delete(r),c._internalState.set(r,i),c},o.prototype.unset=function(r){var i=this._clone();return i._internalState.delete(r),i},o.prototype.get=function(r){return this._internalState.get(r)},o.prototype.serialize=function(){var r=this;return this._keys().reduce(function(i,c){return i.push(c+Tl+r.get(c)),i},[]).join(El)},o.prototype._parse=function(r){r.length>FC||(this._internalState=r.split(El).reverse().reduce(function(i,c){var a=c.trim(),u=a.indexOf(Tl);if(u!==-1){var t=a.slice(0,u),e=a.slice(u+1,c.length);cl(t)&&ll(e)&&i.set(t,e)}return i},new Map),this._internalState.size>_l&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,_l))))},o.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},o.prototype._clone=function(){var r=new o;return r._internalState=new Map(this._internalState),r},o}()});function dl(o){return new Sl(o)}var Al=d(()=>{fl()});var Be,vl=d(()=>{Er();Be=De.getInstance()});var H,Ol=d(()=>{Ze();H=z.instance()});var KC,ml,hl=d(()=>{_a();KC=function(){function o(){}return o.prototype.getMeter=function(r,i,c){return pa},o}(),ml=new KC});var ya,Nl,Rl=d(()=>{hl();Qe();Ze();ya="metrics",Nl=function(){function o(){}return o.getInstance=function(){return this._instance||(this._instance=new o),this._instance},o.prototype.setGlobalMeterProvider=function(r){return me(ya,r,z.instance())},o.prototype.getMeterProvider=function(){return oe(ya)||ml},o.prototype.getMeter=function(r,i,c){return this.getMeterProvider().getMeter(r,i,c)},o.prototype.disable=function(){he(ya,z.instance())},o}()});var Nt,yl=d(()=>{Rl();Nt=Nl.getInstance()});var Pl,Ml=d(()=>{Pl=function(){function o(){}return o.prototype.inject=function(r,i){},o.prototype.extract=function(r,i){return r},o.prototype.fields=function(){return[]},o}()});function Ma(o){return o.getValue(Pa)||void 0}function gl(){return Ma(De.getInstance().active())}function Ll(o,r){return o.setValue(Pa,r)}function Il(o){return o.deleteValue(Pa)}var Pa,Cl=d(()=>{Er();_r();Pa=vt("OpenTelemetry Baggage Key")});var ga,jC,xl,bl=d(()=>{Qe();Ml();Ea();Cl();sa();Ze();ga="propagation",jC=new Pl,xl=function(){function o(){this.createBaggage=qc,this.getBaggage=Ma,this.getActiveBaggage=gl,this.setBaggage=Ll,this.deleteBaggage=Il}return o.getInstance=function(){return this._instance||(this._instance=new o),this._instance},o.prototype.setGlobalPropagator=function(r){return me(ga,r,z.instance())},o.prototype.inject=function(r,i,c){return c===void 0&&(c=an),this._getGlobalPropagator().inject(r,i,c)},o.prototype.extract=function(r,i,c){return c===void 0&&(c=on),this._getGlobalPropagator().extract(r,i,c)},o.prototype.fields=function(){return this._getGlobalPropagator().fields()},o.prototype.disable=function(){he(ga,z.instance())},o.prototype._getGlobalPropagator=function(){return oe(ga)||jC},o}()});var La,Ul=d(()=>{bl();La=xl.getInstance()});var Ia,Dl,Vl=d(()=>{Qe();Na();_n();da();Ze();Ia="trace",Dl=function(){function o(){this._proxyTracerProvider=new dr,this.wrapSpanContext=nl,this.isSpanContextValid=mt,this.deleteSpan=tl,this.getSpan=ln,this.getActiveSpan=el,this.getSpanContext=pn,this.setSpan=fr,this.setSpanContext=rl}return o.getInstance=function(){return this._instance||(this._instance=new o),this._instance},o.prototype.setGlobalTracerProvider=function(r){var i=me(Ia,this._proxyTracerProvider,z.instance());return i&&this._proxyTracerProvider.setDelegate(r),i},o.prototype.getTracerProvider=function(){return oe(Ia)||this._proxyTracerProvider},o.prototype.getTracer=function(r,i){return this.getTracerProvider().getTracer(r,i)},o.prototype.disable=function(){he(Ia,z.instance()),this._proxyTracerProvider=new dr},o}()});var Ge,wl=d(()=>{Vl();Ge=Dl.getInstance()});var y={};At(y,{DiagConsoleLogger:()=>zc,DiagLogLevel:()=>j,INVALID_SPANID:()=>Tr,INVALID_SPAN_CONTEXT:()=>un,INVALID_TRACEID:()=>Sr,ProxyTracer:()=>Tn,ProxyTracerProvider:()=>dr,ROOT_CONTEXT:()=>tn,SamplingDecision:()=>Sn,SpanKind:()=>we,SpanStatusCode:()=>ht,TraceFlags:()=>Ot,ValueType:()=>nn,baggageEntryMetadataFromString:()=>Wc,context:()=>Be,createContextKey:()=>vt,createNoopMeter:()=>Xc,createTraceState:()=>dl,default:()=>qC,defaultTextMapGetter:()=>on,defaultTextMapSetter:()=>an,diag:()=>H,isSpanContextValid:()=>mt,isValidSpanId:()=>va,isValidTraceId:()=>Aa,metrics:()=>Nt,propagation:()=>La,trace:()=>Ge});var qC,m=d(()=>{sa();_r();Jc();en();_a();$c();Ea();ha();Na();al();ul();sl();Sa();Al();_n();sn();vl();Ol();yl();Ul();wl();qC={context:Be,diag:H,metrics:Nt,propagation:La,trace:Ge}});var Ar=S(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.isTracingSuppressed=He.unsuppressTracing=He.suppressTracing=void 0;var WC=(m(),N(y)),Ca=(0,WC.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function zC(o){return o.setValue(Ca,!0)}He.suppressTracing=zC;function JC(o){return o.deleteValue(Ca)}He.unsuppressTracing=JC;function XC(o){return o.getValue(Ca)===!0}He.isTracingSuppressed=XC});var xa=S(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.BAGGAGE_MAX_TOTAL_LENGTH=J.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=J.BAGGAGE_MAX_NAME_VALUE_PAIRS=J.BAGGAGE_HEADER=J.BAGGAGE_ITEMS_SEPARATOR=J.BAGGAGE_PROPERTIES_SEPARATOR=J.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;J.BAGGAGE_KEY_PAIR_SEPARATOR="=";J.BAGGAGE_PROPERTIES_SEPARATOR=";";J.BAGGAGE_ITEMS_SEPARATOR=",";J.BAGGAGE_HEADER="baggage";J.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;J.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;J.BAGGAGE_MAX_TOTAL_LENGTH=8192});var ba=S(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.parseKeyPairsIntoRecord=Ne.parsePairKeyValue=Ne.getKeyPairs=Ne.serializeKeyPairs=void 0;var $C=(m(),N(y)),tt=xa();function QC(o){return o.reduce((r,i)=>{let c=`${r}${r!==""?tt.BAGGAGE_ITEMS_SEPARATOR:""}${i}`;return c.length>tt.BAGGAGE_MAX_TOTAL_LENGTH?r:c},"")}Ne.serializeKeyPairs=QC;function ZC(o){return o.getAllEntries().map(([r,i])=>{let c=`${encodeURIComponent(r)}=${encodeURIComponent(i.value)}`;return i.metadata!==void 0&&(c+=tt.BAGGAGE_PROPERTIES_SEPARATOR+i.metadata.toString()),c})}Ne.getKeyPairs=ZC;function Bl(o){let r=o.split(tt.BAGGAGE_PROPERTIES_SEPARATOR);if(r.length<=0)return;let i=r.shift();if(!i)return;let c=i.indexOf(tt.BAGGAGE_KEY_PAIR_SEPARATOR);if(c<=0)return;let a=decodeURIComponent(i.substring(0,c).trim()),u=decodeURIComponent(i.substring(c+1).trim()),t;return r.length>0&&(t=(0,$C.baggageEntryMetadataFromString)(r.join(tt.BAGGAGE_PROPERTIES_SEPARATOR))),{key:a,value:u,metadata:t}}Ne.parsePairKeyValue=Bl;function ex(o){return typeof o!="string"||o.length===0?{}:o.split(tt.BAGGAGE_ITEMS_SEPARATOR).map(r=>Bl(r)).filter(r=>r!==void 0&&r.value.length>0).reduce((r,i)=>(r[i.key]=i.value,r),{})}Ne.parseKeyPairsIntoRecord=ex});var Gl=S(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.W3CBaggagePropagator=void 0;var Ua=(m(),N(y)),tx=Ar(),rt=xa(),Da=ba(),Va=class{inject(r,i,c){let a=Ua.propagation.getBaggage(r);if(!a||(0,tx.isTracingSuppressed)(r))return;let u=(0,Da.getKeyPairs)(a).filter(e=>e.length<=rt.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,rt.BAGGAGE_MAX_NAME_VALUE_PAIRS),t=(0,Da.serializeKeyPairs)(u);t.length>0&&c.set(i,rt.BAGGAGE_HEADER,t)}extract(r,i,c){let a=c.get(i,rt.BAGGAGE_HEADER),u=Array.isArray(a)?a.join(rt.BAGGAGE_ITEMS_SEPARATOR):a;if(!u)return r;let t={};return u.length===0||(u.split(rt.BAGGAGE_ITEMS_SEPARATOR).forEach(n=>{let s=(0,Da.parsePairKeyValue)(n);if(s){let l={value:s.value};s.metadata&&(l.metadata=s.metadata),t[s.key]=l}}),Object.entries(t).length===0)?r:Ua.propagation.setBaggage(r,Ua.propagation.createBaggage(t))}fields(){return[rt.BAGGAGE_HEADER]}};fn.W3CBaggagePropagator=Va});var Hl=S(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.AnchoredClock=void 0;var wa=class{constructor(r,i){this._monotonicClock=i,this._epochMillis=r.now(),this._performanceMillis=i.now()}now(){let r=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+r}};dn.AnchoredClock=wa});var jl=S(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.isAttributeValue=ke.isAttributeKey=ke.sanitizeAttributes=void 0;var kl=(m(),N(y));function rx(o){let r={};if(typeof o!="object"||o==null)return r;for(let[i,c]of Object.entries(o)){if(!Yl(i)){kl.diag.warn(`Invalid attribute key: ${i}`);continue}if(!Fl(c)){kl.diag.warn(`Invalid attribute value set for key: ${i}`);continue}Array.isArray(c)?r[i]=c.slice():r[i]=c}return r}ke.sanitizeAttributes=rx;function Yl(o){return typeof o=="string"&&o.length>0}ke.isAttributeKey=Yl;function Fl(o){return o==null?!0:Array.isArray(o)?nx(o):Kl(o)}ke.isAttributeValue=Fl;function nx(o){let r;for(let i of o)if(i!=null){if(!r){if(Kl(i)){r=typeof i;continue}return!1}if(typeof i!==r)return!1}return!0}function Kl(o){switch(typeof o){case"number":case"boolean":case"string":return!0}return!1}});var Ba=S(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.loggingErrorHandler=void 0;var ox=(m(),N(y));function ix(){return o=>{ox.diag.error(ax(o))}}An.loggingErrorHandler=ix;function ax(o){return typeof o=="string"?o:JSON.stringify(ux(o))}function ux(o){let r={},i=o;for(;i!==null;)Object.getOwnPropertyNames(i).forEach(c=>{if(r[c])return;let a=i[c];a&&(r[c]=String(a))}),i=Object.getPrototypeOf(i);return r}});var Ga=S(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Rt.globalErrorHandler=Rt.setGlobalErrorHandler=void 0;var sx=Ba(),ql=(0,sx.loggingErrorHandler)();function cx(o){ql=o}Rt.setGlobalErrorHandler=cx;function lx(o){try{ql(o)}catch{}}Rt.globalErrorHandler=lx});var Ha=S(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.TracesSamplerValues=void 0;var px;(function(o){o.AlwaysOff="always_off",o.AlwaysOn="always_on",o.ParentBasedAlwaysOff="parentbased_always_off",o.ParentBasedAlwaysOn="parentbased_always_on",o.ParentBasedTraceIdRatio="parentbased_traceidratio",o.TraceIdRatio="traceidratio"})(px=vr.TracesSamplerValues||(vr.TracesSamplerValues={}))});var ka=S(C=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});C.parseEnvironment=C.DEFAULT_ENVIRONMENT=C.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=C.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=C.DEFAULT_ATTRIBUTE_COUNT_LIMIT=C.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=void 0;var Ye=(m(),N(y)),_x=Ha(),Ex=",",Tx=["OTEL_SDK_DISABLED"];function Sx(o){return Tx.indexOf(o)>-1}var fx=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function dx(o){return fx.indexOf(o)>-1}var Ax=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function vx(o){return Ax.indexOf(o)>-1}C.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=1/0;C.DEFAULT_ATTRIBUTE_COUNT_LIMIT=128;C.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=128;C.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=128;C.DEFAULT_ENVIRONMENT={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:Ye.DiagLogLevel.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:C.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_ATTRIBUTE_COUNT_LIMIT:C.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:C.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:C.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:C.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:C.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:C.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:C.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:_x.TracesSamplerValues.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function Ox(o,r,i){if(typeof i[o]>"u")return;let c=String(i[o]);r[o]=c.toLowerCase()==="true"}function mx(o,r,i,c=-1/0,a=1/0){if(typeof i[o]<"u"){let u=Number(i[o]);isNaN(u)||(u<c?r[o]=c:u>a?r[o]=a:r[o]=u)}}function hx(o,r,i,c=Ex){let a=i[o];typeof a=="string"&&(r[o]=a.split(c).map(u=>u.trim()))}var Nx={ALL:Ye.DiagLogLevel.ALL,VERBOSE:Ye.DiagLogLevel.VERBOSE,DEBUG:Ye.DiagLogLevel.DEBUG,INFO:Ye.DiagLogLevel.INFO,WARN:Ye.DiagLogLevel.WARN,ERROR:Ye.DiagLogLevel.ERROR,NONE:Ye.DiagLogLevel.NONE};function Rx(o,r,i){let c=i[o];if(typeof c=="string"){let a=Nx[c.toUpperCase()];a!=null&&(r[o]=a)}}function yx(o){let r={};for(let i in C.DEFAULT_ENVIRONMENT){let c=i;switch(c){case"OTEL_LOG_LEVEL":Rx(c,r,o);break;default:if(Sx(c))Ox(c,r,o);else if(dx(c))mx(c,r,o);else if(vx(c))hx(c,r,o);else{let a=o[c];typeof a<"u"&&a!==null&&(r[c]=String(a))}}}return r}C.parseEnvironment=yx});var Wl=S(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.getEnvWithoutDefaults=yt.getEnv=void 0;var Ya=ka();function Px(){let o=(0,Ya.parseEnvironment)(__fromEnv);return Object.assign({},Ya.DEFAULT_ENVIRONMENT,o)}yt.getEnv=Px;function Mx(){return(0,Ya.parseEnvironment)(__fromEnv)}yt.getEnvWithoutDefaults=Mx});var zl=S(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn._globalThis=void 0;vn._globalThis=typeof globalThis=="object"?globalThis:global});var Fa=S(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.hexToBinary=void 0;function Jl(o){return o>=48&&o<=57?o-48:o>=97&&o<=102?o-87:o-55}function gx(o){let r=new Uint8Array(o.length/2),i=0;for(let c=0;c<o.length;c+=2){let a=Jl(o.charCodeAt(c)),u=Jl(o.charCodeAt(c+1));r[i++]=a<<4|u}return r}On.hexToBinary=gx});var Xl=S(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.hexToBase64=void 0;var Lx=Fa();function Ix(o){return Buffer.from((0,Lx.hexToBinary)(o)).toString("base64")}mn.hexToBase64=Ix});var Zl=S(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.RandomIdGenerator=void 0;var Cx=8,Ql=16,Ka=class{constructor(){this.generateTraceId=$l(Ql),this.generateSpanId=$l(Cx)}};Nn.RandomIdGenerator=Ka;var hn=Buffer.allocUnsafe(Ql);function $l(o){return function(){for(let i=0;i<o/4;i++)hn.writeUInt32BE(Math.random()*2**32>>>0,i*4);for(let i=0;i<o&&!(hn[i]>0);i++)i===o-1&&(hn[o-1]=1);return hn.toString("hex",0,o)}}});var ep=S(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.otperformance=void 0;var xx=require("perf_hooks");Rn.otperformance=xx.performance});var ja=S(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.VERSION=void 0;yn.VERSION="1.30.1"});function U(o){for(var r={},i=o.length,c=0;c<i;c++){var a=o[c];a&&(r[String(a).toUpperCase().replace(/[-.]/g,"_")]=a)}return r}var qa=d(()=>{});var tp,rp,np,op,ip,ap,up,sp,cp,lp,pp,_p,Ep,Tp,Sp,fp,dp,Ap,vp,Op,mp,hp,Np,Rp,yp,Pp,Mp,gp,Lp,Ip,Cp,xp,bp,Up,Dp,Vp,wp,Bp,Gp,Hp,kp,Yp,Fp,Kp,jp,qp,Wp,zp,Jp,Xp,$p,Qp,Zp,e_,t_,r_,n_,o_,i_,a_,u_,s_,c_,l_,p_,__,E_,T_,S_,f_,d_,A_,v_,O_,m_,h_,N_,R_,y_,P_,M_,g_,L_,I_,C_,x_,b_,U_,D_,V_,w_,B_,G_,H_,k_,Y_,F_,K_,j_,q_,W_,z_,J_,X_,$_,Q_,Z_,eE,tE,rE,nE,oE,iE,aE,uE,sE,cE,lE,pE,_E,EE,TE,SE,fE,dE,AE,vE,OE,bx,Ux,Dx,Vx,wx,Bx,Gx,Hx,kx,Yx,Fx,Kx,jx,qx,Wx,zx,Jx,Xx,$x,Qx,Zx,eb,tb,rb,nb,ob,ib,ab,ub,sb,cb,lb,pb,_b,Eb,Tb,Sb,fb,db,Ab,vb,Ob,mb,hb,Nb,Rb,yb,Pb,Mb,gb,Lb,Ib,Cb,xb,bb,Ub,Db,Vb,wb,Bb,Gb,Hb,kb,Yb,Fb,Kb,jb,qb,Wb,zb,Jb,Xb,$b,Qb,Zb,eU,tU,rU,nU,oU,iU,aU,uU,sU,cU,lU,pU,_U,EU,TU,SU,fU,dU,AU,vU,OU,mU,hU,NU,RU,yU,PU,MU,gU,LU,IU,CU,xU,bU,UU,DU,VU,wU,BU,GU,HU,kU,YU,FU,KU,jU,qU,WU,zU,JU,XU,$U,QU,ZU,mE,hE,NE,RE,yE,PE,ME,gE,LE,IE,CE,xE,bE,UE,DE,VE,wE,BE,GE,HE,kE,YE,FE,KE,jE,qE,WE,zE,JE,XE,$E,QE,ZE,eT,tT,rT,nT,oT,iT,aT,uT,sT,cT,lT,pT,_T,ET,eD,tD,rD,nD,oD,iD,aD,uD,sD,cD,lD,pD,_D,ED,TD,SD,fD,dD,AD,vD,OD,mD,hD,ND,RD,yD,PD,MD,gD,LD,ID,CD,xD,bD,UD,DD,VD,wD,BD,GD,HD,kD,YD,FD,KD,jD,qD,WD,TT,ST,fT,dT,AT,vT,OT,mT,hT,NT,RT,zD,JD,XD,$D,QD,ZD,eV,tV,rV,nV,oV,iV,yT,PT,MT,gT,LT,aV,uV,sV,cV,lV,pV,IT,CT,xT,_V,EV,TV,SV,bT,UT,DT,VT,fV,dV,AV,vV,OV,wT,BT,GT,HT,kT,YT,FT,mV,hV,NV,RV,yV,PV,MV,gV,KT,jT,qT,WT,zT,LV,IV,CV,xV,bV,UV,JT,XT,$T,QT,ZT,eS,tS,rS,nS,oS,iS,aS,uS,sS,cS,lS,pS,_S,ES,TS,SS,DV,VV,wV,BV,GV,HV,kV,YV,FV,KV,jV,qV,WV,zV,JV,XV,$V,QV,ZV,e0,t0,r0,fS,dS,AS,vS,OS,n0,o0,i0,a0,u0,s0,mS,hS,c0,l0,p0,NS,RS,_0,E0,T0,yS,PS,MS,gS,LS,IS,CS,xS,bS,US,DS,VS,wS,BS,GS,HS,kS,S0,f0,d0,A0,v0,O0,m0,h0,N0,R0,y0,P0,M0,g0,L0,I0,C0,x0,YS,FS,b0,U0,D0,KS=d(()=>{qa();tp="aws.lambda.invoked_arn",rp="db.system",np="db.connection_string",op="db.user",ip="db.jdbc.driver_classname",ap="db.name",up="db.statement",sp="db.operation",cp="db.mssql.instance_name",lp="db.cassandra.keyspace",pp="db.cassandra.page_size",_p="db.cassandra.consistency_level",Ep="db.cassandra.table",Tp="db.cassandra.idempotence",Sp="db.cassandra.speculative_execution_count",fp="db.cassandra.coordinator.id",dp="db.cassandra.coordinator.dc",Ap="db.hbase.namespace",vp="db.redis.database_index",Op="db.mongodb.collection",mp="db.sql.table",hp="exception.type",Np="exception.message",Rp="exception.stacktrace",yp="exception.escaped",Pp="faas.trigger",Mp="faas.execution",gp="faas.document.collection",Lp="faas.document.operation",Ip="faas.document.time",Cp="faas.document.name",xp="faas.time",bp="faas.cron",Up="faas.coldstart",Dp="faas.invoked_name",Vp="faas.invoked_provider",wp="faas.invoked_region",Bp="net.transport",Gp="net.peer.ip",Hp="net.peer.port",kp="net.peer.name",Yp="net.host.ip",Fp="net.host.port",Kp="net.host.name",jp="net.host.connection.type",qp="net.host.connection.subtype",Wp="net.host.carrier.name",zp="net.host.carrier.mcc",Jp="net.host.carrier.mnc",Xp="net.host.carrier.icc",$p="peer.service",Qp="enduser.id",Zp="enduser.role",e_="enduser.scope",t_="thread.id",r_="thread.name",n_="code.function",o_="code.namespace",i_="code.filepath",a_="code.lineno",u_="http.method",s_="http.url",c_="http.target",l_="http.host",p_="http.scheme",__="http.status_code",E_="http.flavor",T_="http.user_agent",S_="http.request_content_length",f_="http.request_content_length_uncompressed",d_="http.response_content_length",A_="http.response_content_length_uncompressed",v_="http.server_name",O_="http.route",m_="http.client_ip",h_="aws.dynamodb.table_names",N_="aws.dynamodb.consumed_capacity",R_="aws.dynamodb.item_collection_metrics",y_="aws.dynamodb.provisioned_read_capacity",P_="aws.dynamodb.provisioned_write_capacity",M_="aws.dynamodb.consistent_read",g_="aws.dynamodb.projection",L_="aws.dynamodb.limit",I_="aws.dynamodb.attributes_to_get",C_="aws.dynamodb.index_name",x_="aws.dynamodb.select",b_="aws.dynamodb.global_secondary_indexes",U_="aws.dynamodb.local_secondary_indexes",D_="aws.dynamodb.exclusive_start_table",V_="aws.dynamodb.table_count",w_="aws.dynamodb.scan_forward",B_="aws.dynamodb.segment",G_="aws.dynamodb.total_segments",H_="aws.dynamodb.count",k_="aws.dynamodb.scanned_count",Y_="aws.dynamodb.attribute_definitions",F_="aws.dynamodb.global_secondary_index_updates",K_="messaging.system",j_="messaging.destination",q_="messaging.destination_kind",W_="messaging.temp_destination",z_="messaging.protocol",J_="messaging.protocol_version",X_="messaging.url",$_="messaging.message_id",Q_="messaging.conversation_id",Z_="messaging.message_payload_size_bytes",eE="messaging.message_payload_compressed_size_bytes",tE="messaging.operation",rE="messaging.consumer_id",nE="messaging.rabbitmq.routing_key",oE="messaging.kafka.message_key",iE="messaging.kafka.consumer_group",aE="messaging.kafka.client_id",uE="messaging.kafka.partition",sE="messaging.kafka.tombstone",cE="rpc.system",lE="rpc.service",pE="rpc.method",_E="rpc.grpc.status_code",EE="rpc.jsonrpc.version",TE="rpc.jsonrpc.request_id",SE="rpc.jsonrpc.error_code",fE="rpc.jsonrpc.error_message",dE="message.type",AE="message.id",vE="message.compressed_size",OE="message.uncompressed_size",bx=tp,Ux=rp,Dx=np,Vx=op,wx=ip,Bx=ap,Gx=up,Hx=sp,kx=cp,Yx=lp,Fx=pp,Kx=_p,jx=Ep,qx=Tp,Wx=Sp,zx=fp,Jx=dp,Xx=Ap,$x=vp,Qx=Op,Zx=mp,eb=hp,tb=Np,rb=Rp,nb=yp,ob=Pp,ib=Mp,ab=gp,ub=Lp,sb=Ip,cb=Cp,lb=xp,pb=bp,_b=Up,Eb=Dp,Tb=Vp,Sb=wp,fb=Bp,db=Gp,Ab=Hp,vb=kp,Ob=Yp,mb=Fp,hb=Kp,Nb=jp,Rb=qp,yb=Wp,Pb=zp,Mb=Jp,gb=Xp,Lb=$p,Ib=Qp,Cb=Zp,xb=e_,bb=t_,Ub=r_,Db=n_,Vb=o_,wb=i_,Bb=a_,Gb=u_,Hb=s_,kb=c_,Yb=l_,Fb=p_,Kb=__,jb=E_,qb=T_,Wb=S_,zb=f_,Jb=d_,Xb=A_,$b=v_,Qb=O_,Zb=m_,eU=h_,tU=N_,rU=R_,nU=y_,oU=P_,iU=M_,aU=g_,uU=L_,sU=I_,cU=C_,lU=x_,pU=b_,_U=U_,EU=D_,TU=V_,SU=w_,fU=B_,dU=G_,AU=H_,vU=k_,OU=Y_,mU=F_,hU=K_,NU=j_,RU=q_,yU=W_,PU=z_,MU=J_,gU=X_,LU=$_,IU=Q_,CU=Z_,xU=eE,bU=tE,UU=rE,DU=nE,VU=oE,wU=iE,BU=aE,GU=uE,HU=sE,kU=cE,YU=lE,FU=pE,KU=_E,jU=EE,qU=TE,WU=SE,zU=fE,JU=dE,XU=AE,$U=vE,QU=OE,ZU=U([tp,rp,np,op,ip,ap,up,sp,cp,lp,pp,_p,Ep,Tp,Sp,fp,dp,Ap,vp,Op,mp,hp,Np,Rp,yp,Pp,Mp,gp,Lp,Ip,Cp,xp,bp,Up,Dp,Vp,wp,Bp,Gp,Hp,kp,Yp,Fp,Kp,jp,qp,Wp,zp,Jp,Xp,$p,Qp,Zp,e_,t_,r_,n_,o_,i_,a_,u_,s_,c_,l_,p_,__,E_,T_,S_,f_,d_,A_,v_,O_,m_,h_,N_,R_,y_,P_,M_,g_,L_,I_,C_,x_,b_,U_,D_,V_,w_,B_,G_,H_,k_,Y_,F_,K_,j_,q_,W_,z_,J_,X_,$_,Q_,Z_,eE,tE,rE,nE,oE,iE,aE,uE,sE,cE,lE,pE,_E,EE,TE,SE,fE,dE,AE,vE,OE]),mE="other_sql",hE="mssql",NE="mysql",RE="oracle",yE="db2",PE="postgresql",ME="redshift",gE="hive",LE="cloudscape",IE="hsqldb",CE="progress",xE="maxdb",bE="hanadb",UE="ingres",DE="firstsql",VE="edb",wE="cache",BE="adabas",GE="firebird",HE="derby",kE="filemaker",YE="informix",FE="instantdb",KE="interbase",jE="mariadb",qE="netezza",WE="pervasive",zE="pointbase",JE="sqlite",XE="sybase",$E="teradata",QE="vertica",ZE="h2",eT="coldfusion",tT="cassandra",rT="hbase",nT="mongodb",oT="redis",iT="couchbase",aT="couchdb",uT="cosmosdb",sT="dynamodb",cT="neo4j",lT="geode",pT="elasticsearch",_T="memcached",ET="cockroachdb",eD=mE,tD=hE,rD=NE,nD=RE,oD=yE,iD=PE,aD=ME,uD=gE,sD=LE,cD=IE,lD=CE,pD=xE,_D=bE,ED=UE,TD=DE,SD=VE,fD=wE,dD=BE,AD=GE,vD=HE,OD=kE,mD=YE,hD=FE,ND=KE,RD=jE,yD=qE,PD=WE,MD=zE,gD=JE,LD=XE,ID=$E,CD=QE,xD=ZE,bD=eT,UD=tT,DD=rT,VD=nT,wD=oT,BD=iT,GD=aT,HD=uT,kD=sT,YD=cT,FD=lT,KD=pT,jD=_T,qD=ET,WD=U([mE,hE,NE,RE,yE,PE,ME,gE,LE,IE,CE,xE,bE,UE,DE,VE,wE,BE,GE,HE,kE,YE,FE,KE,jE,qE,WE,zE,JE,XE,$E,QE,ZE,eT,tT,rT,nT,oT,iT,aT,uT,sT,cT,lT,pT,_T,ET]),TT="all",ST="each_quorum",fT="quorum",dT="local_quorum",AT="one",vT="two",OT="three",mT="local_one",hT="any",NT="serial",RT="local_serial",zD=TT,JD=ST,XD=fT,$D=dT,QD=AT,ZD=vT,eV=OT,tV=mT,rV=hT,nV=NT,oV=RT,iV=U([TT,ST,fT,dT,AT,vT,OT,mT,hT,NT,RT]),yT="datasource",PT="http",MT="pubsub",gT="timer",LT="other",aV=yT,uV=PT,sV=MT,cV=gT,lV=LT,pV=U([yT,PT,MT,gT,LT]),IT="insert",CT="edit",xT="delete",_V=IT,EV=CT,TV=xT,SV=U([IT,CT,xT]),bT="alibaba_cloud",UT="aws",DT="azure",VT="gcp",fV=bT,dV=UT,AV=DT,vV=VT,OV=U([bT,UT,DT,VT]),wT="ip_tcp",BT="ip_udp",GT="ip",HT="unix",kT="pipe",YT="inproc",FT="other",mV=wT,hV=BT,NV=GT,RV=HT,yV=kT,PV=YT,MV=FT,gV=U([wT,BT,GT,HT,kT,YT,FT]),KT="wifi",jT="wired",qT="cell",WT="unavailable",zT="unknown",LV=KT,IV=jT,CV=qT,xV=WT,bV=zT,UV=U([KT,jT,qT,WT,zT]),JT="gprs",XT="edge",$T="umts",QT="cdma",ZT="evdo_0",eS="evdo_a",tS="cdma2000_1xrtt",rS="hsdpa",nS="hsupa",oS="hspa",iS="iden",aS="evdo_b",uS="lte",sS="ehrpd",cS="hspap",lS="gsm",pS="td_scdma",_S="iwlan",ES="nr",TS="nrnsa",SS="lte_ca",DV=JT,VV=XT,wV=$T,BV=QT,GV=ZT,HV=eS,kV=tS,YV=rS,FV=nS,KV=oS,jV=iS,qV=aS,WV=uS,zV=sS,JV=cS,XV=lS,$V=pS,QV=_S,ZV=ES,e0=TS,t0=SS,r0=U([JT,XT,$T,QT,ZT,eS,tS,rS,nS,oS,iS,aS,uS,sS,cS,lS,pS,_S,ES,TS,SS]),fS="1.0",dS="1.1",AS="2.0",vS="SPDY",OS="QUIC",n0=fS,o0=dS,i0=AS,a0=vS,u0=OS,s0={HTTP_1_0:fS,HTTP_1_1:dS,HTTP_2_0:AS,SPDY:vS,QUIC:OS},mS="queue",hS="topic",c0=mS,l0=hS,p0=U([mS,hS]),NS="receive",RS="process",_0=NS,E0=RS,T0=U([NS,RS]),yS=0,PS=1,MS=2,gS=3,LS=4,IS=5,CS=6,xS=7,bS=8,US=9,DS=10,VS=11,wS=12,BS=13,GS=14,HS=15,kS=16,S0=yS,f0=PS,d0=MS,A0=gS,v0=LS,O0=IS,m0=CS,h0=xS,N0=bS,R0=US,y0=DS,P0=VS,M0=wS,g0=BS,L0=GS,I0=HS,C0=kS,x0={OK:yS,CANCELLED:PS,UNKNOWN:MS,INVALID_ARGUMENT:gS,DEADLINE_EXCEEDED:LS,NOT_FOUND:IS,ALREADY_EXISTS:CS,PERMISSION_DENIED:xS,RESOURCE_EXHAUSTED:bS,FAILED_PRECONDITION:US,ABORTED:DS,OUT_OF_RANGE:VS,UNIMPLEMENTED:wS,INTERNAL:BS,UNAVAILABLE:GS,DATA_LOSS:HS,UNAUTHENTICATED:kS},YS="SENT",FS="RECEIVED",b0=YS,U0=FS,D0=U([YS,FS])});var jS=d(()=>{KS()});var qS,WS,zS,JS,XS,$S,QS,ZS,ef,tf,rf,nf,of,af,uf,sf,cf,lf,pf,_f,Ef,Tf,Sf,ff,df,Af,vf,Of,mf,hf,Nf,Rf,yf,Pf,Mf,gf,Lf,If,Cf,xf,bf,Uf,Df,Vf,wf,Bf,Gf,Hf,kf,Yf,Ff,Kf,jf,qf,Wf,zf,Jf,Xf,$f,Qf,Zf,ed,td,rd,nd,od,id,ad,ud,sd,cd,ld,pd,_d,Ed,Td,Sd,fd,dd,Ad,vd,V0,w0,B0,G0,H0,k0,Y0,F0,K0,j0,q0,W0,z0,J0,X0,$0,Q0,Z0,ew,tw,rw,nw,ow,iw,aw,uw,sw,cw,lw,pw,_w,Ew,Tw,Sw,fw,dw,Aw,vw,Ow,mw,hw,Nw,Rw,yw,Pw,Mw,gw,Lw,Iw,Cw,xw,bw,Uw,Dw,Vw,ww,Bw,Gw,Hw,kw,Yw,Fw,Kw,jw,qw,Ww,zw,Jw,Xw,$w,Qw,Zw,e1,t1,r1,n1,o1,i1,a1,u1,s1,c1,Od,md,hd,Nd,l1,p1,_1,E1,T1,Rd,yd,Pd,Md,gd,Ld,Id,Cd,xd,bd,Ud,Dd,Vd,wd,Bd,Gd,Hd,S1,f1,d1,A1,v1,O1,m1,h1,N1,R1,y1,P1,M1,g1,L1,I1,C1,x1,kd,Yd,b1,U1,D1,Fd,Kd,jd,qd,Wd,zd,Jd,V1,w1,B1,G1,H1,k1,Y1,F1,Xd,$d,Qd,Zd,eA,tA,rA,nA,oA,iA,aA,K1,j1,q1,W1,z1,J1,X1,$1,Q1,Z1,eB,tB,uA,sA,cA,lA,pA,_A,EA,TA,SA,fA,rB,nB,oB,iB,aB,uB,sB,cB,lB,pB,_B,dA=d(()=>{qa();qS="cloud.provider",WS="cloud.account.id",zS="cloud.region",JS="cloud.availability_zone",XS="cloud.platform",$S="aws.ecs.container.arn",QS="aws.ecs.cluster.arn",ZS="aws.ecs.launchtype",ef="aws.ecs.task.arn",tf="aws.ecs.task.family",rf="aws.ecs.task.revision",nf="aws.eks.cluster.arn",of="aws.log.group.names",af="aws.log.group.arns",uf="aws.log.stream.names",sf="aws.log.stream.arns",cf="container.name",lf="container.id",pf="container.runtime",_f="container.image.name",Ef="container.image.tag",Tf="deployment.environment",Sf="device.id",ff="device.model.identifier",df="device.model.name",Af="faas.name",vf="faas.id",Of="faas.version",mf="faas.instance",hf="faas.max_memory",Nf="host.id",Rf="host.name",yf="host.type",Pf="host.arch",Mf="host.image.name",gf="host.image.id",Lf="host.image.version",If="k8s.cluster.name",Cf="k8s.node.name",xf="k8s.node.uid",bf="k8s.namespace.name",Uf="k8s.pod.uid",Df="k8s.pod.name",Vf="k8s.container.name",wf="k8s.replicaset.uid",Bf="k8s.replicaset.name",Gf="k8s.deployment.uid",Hf="k8s.deployment.name",kf="k8s.statefulset.uid",Yf="k8s.statefulset.name",Ff="k8s.daemonset.uid",Kf="k8s.daemonset.name",jf="k8s.job.uid",qf="k8s.job.name",Wf="k8s.cronjob.uid",zf="k8s.cronjob.name",Jf="os.type",Xf="os.description",$f="os.name",Qf="os.version",Zf="process.pid",ed="process.executable.name",td="process.executable.path",rd="process.command",nd="process.command_line",od="process.command_args",id="process.owner",ad="process.runtime.name",ud="process.runtime.version",sd="process.runtime.description",cd="service.name",ld="service.namespace",pd="service.instance.id",_d="service.version",Ed="telemetry.sdk.name",Td="telemetry.sdk.language",Sd="telemetry.sdk.version",fd="telemetry.auto.version",dd="webengine.name",Ad="webengine.version",vd="webengine.description",V0=qS,w0=WS,B0=zS,G0=JS,H0=XS,k0=$S,Y0=QS,F0=ZS,K0=ef,j0=tf,q0=rf,W0=nf,z0=of,J0=af,X0=uf,$0=sf,Q0=cf,Z0=lf,ew=pf,tw=_f,rw=Ef,nw=Tf,ow=Sf,iw=ff,aw=df,uw=Af,sw=vf,cw=Of,lw=mf,pw=hf,_w=Nf,Ew=Rf,Tw=yf,Sw=Pf,fw=Mf,dw=gf,Aw=Lf,vw=If,Ow=Cf,mw=xf,hw=bf,Nw=Uf,Rw=Df,yw=Vf,Pw=wf,Mw=Bf,gw=Gf,Lw=Hf,Iw=kf,Cw=Yf,xw=Ff,bw=Kf,Uw=jf,Dw=qf,Vw=Wf,ww=zf,Bw=Jf,Gw=Xf,Hw=$f,kw=Qf,Yw=Zf,Fw=ed,Kw=td,jw=rd,qw=nd,Ww=od,zw=id,Jw=ad,Xw=ud,$w=sd,Qw=cd,Zw=ld,e1=pd,t1=_d,r1=Ed,n1=Td,o1=Sd,i1=fd,a1=dd,u1=Ad,s1=vd,c1=U([qS,WS,zS,JS,XS,$S,QS,ZS,ef,tf,rf,nf,of,af,uf,sf,cf,lf,pf,_f,Ef,Tf,Sf,ff,df,Af,vf,Of,mf,hf,Nf,Rf,yf,Pf,Mf,gf,Lf,If,Cf,xf,bf,Uf,Df,Vf,wf,Bf,Gf,Hf,kf,Yf,Ff,Kf,jf,qf,Wf,zf,Jf,Xf,$f,Qf,Zf,ed,td,rd,nd,od,id,ad,ud,sd,cd,ld,pd,_d,Ed,Td,Sd,fd,dd,Ad,vd]),Od="alibaba_cloud",md="aws",hd="azure",Nd="gcp",l1=Od,p1=md,_1=hd,E1=Nd,T1=U([Od,md,hd,Nd]),Rd="alibaba_cloud_ecs",yd="alibaba_cloud_fc",Pd="aws_ec2",Md="aws_ecs",gd="aws_eks",Ld="aws_lambda",Id="aws_elastic_beanstalk",Cd="azure_vm",xd="azure_container_instances",bd="azure_aks",Ud="azure_functions",Dd="azure_app_service",Vd="gcp_compute_engine",wd="gcp_cloud_run",Bd="gcp_kubernetes_engine",Gd="gcp_cloud_functions",Hd="gcp_app_engine",S1=Rd,f1=yd,d1=Pd,A1=Md,v1=gd,O1=Ld,m1=Id,h1=Cd,N1=xd,R1=bd,y1=Ud,P1=Dd,M1=Vd,g1=wd,L1=Bd,I1=Gd,C1=Hd,x1=U([Rd,yd,Pd,Md,gd,Ld,Id,Cd,xd,bd,Ud,Dd,Vd,wd,Bd,Gd,Hd]),kd="ec2",Yd="fargate",b1=kd,U1=Yd,D1=U([kd,Yd]),Fd="amd64",Kd="arm32",jd="arm64",qd="ia64",Wd="ppc32",zd="ppc64",Jd="x86",V1=Fd,w1=Kd,B1=jd,G1=qd,H1=Wd,k1=zd,Y1=Jd,F1=U([Fd,Kd,jd,qd,Wd,zd,Jd]),Xd="windows",$d="linux",Qd="darwin",Zd="freebsd",eA="netbsd",tA="openbsd",rA="dragonflybsd",nA="hpux",oA="aix",iA="solaris",aA="z_os",K1=Xd,j1=$d,q1=Qd,W1=Zd,z1=eA,J1=tA,X1=rA,$1=nA,Q1=oA,Z1=iA,eB=aA,tB=U([Xd,$d,Qd,Zd,eA,tA,rA,nA,oA,iA,aA]),uA="cpp",sA="dotnet",cA="erlang",lA="go",pA="java",_A="nodejs",EA="php",TA="python",SA="ruby",fA="webjs",rB=uA,nB=sA,oB=cA,iB=lA,aB=pA,uB=_A,sB=EA,cB=TA,lB=SA,pB=fA,_B=U([uA,sA,cA,lA,pA,_A,EA,TA,SA,fA])});var AA=d(()=>{dA()});var EB,TB,SB,fB,dB,AB,vB,OB,mB,hB,NB,RB,yB,PB,MB,gB,LB,IB,CB,xB,bB,UB,DB,VB,wB,BB,GB,HB,kB,YB,FB,KB,jB,qB,WB,zB,JB,XB,$B,QB,ZB,eG,tG,rG,nG,oG,iG,aG,uG,sG,cG,lG,pG,_G,EG,TG,SG,fG,dG,AG,vG,OG,mG,hG,NG,RG,yG,PG,MG,gG,LG,IG,CG,xG,bG,UG,DG,VG,wG,BG,GG,HG,kG,YG,FG,KG,jG,qG,WG,zG,JG,XG,$G,QG,ZG,eH,tH,rH,nH,oH,iH,aH,uH,sH,cH,lH,pH,_H,EH,TH,vA=d(()=>{EB="aspnetcore.rate_limiting.result",TB="acquired",SB="endpoint_limiter",fB="global_limiter",dB="request_canceled",AB="telemetry.sdk.language",vB="cpp",OB="dotnet",mB="erlang",hB="go",NB="java",RB="nodejs",yB="php",PB="python",MB="ruby",gB="rust",LB="swift",IB="webjs",CB="telemetry.sdk.name",xB="telemetry.sdk.version",bB="aspnetcore.diagnostics.handler.type",UB="aspnetcore.diagnostics.exception.result",DB="aborted",VB="handled",wB="skipped",BB="unhandled",GB="aspnetcore.rate_limiting.policy",HB="aspnetcore.request.is_unhandled",kB="aspnetcore.routing.is_fallback",YB="aspnetcore.routing.match_status",FB="failure",KB="success",jB="client.address",qB="client.port",WB="error.type",zB="_OTHER",JB="exception.escaped",XB="exception.message",$B="exception.stacktrace",QB="exception.type",ZB=function(o){return"http.request.header."+o},eG="http.request.method",tG="_OTHER",rG="CONNECT",nG="DELETE",oG="GET",iG="HEAD",aG="OPTIONS",uG="PATCH",sG="POST",cG="PUT",lG="TRACE",pG="http.request.method_original",_G="http.request.resend_count",EG=function(o){return"http.response.header."+o},TG="http.response.status_code",SG="http.route",fG="jvm.gc.action",dG="jvm.gc.name",AG="jvm.memory.pool.name",vG="jvm.memory.type",OG="heap",mG="non_heap",hG="jvm.thread.daemon",NG="jvm.thread.state",RG="blocked",yG="new",PG="runnable",MG="terminated",gG="timed_waiting",LG="waiting",IG="network.local.address",CG="network.local.port",xG="network.peer.address",bG="network.peer.port",UG="network.protocol.name",DG="network.protocol.version",VG="network.transport",wG="pipe",BG="quic",GG="tcp",HG="udp",kG="unix",YG="network.type",FG="ipv4",KG="ipv6",jG="otel.scope.name",qG="otel.scope.version",WG="otel.status_code",zG="ERROR",JG="OK",XG="otel.status_description",$G="server.address",QG="server.port",ZG="service.name",eH="service.version",tH="signalr.connection.status",rH="app_shutdown",nH="normal_closure",oH="timeout",iH="signalr.transport",aH="long_polling",uH="server_sent_events",sH="web_sockets",cH="url.fragment",lH="url.full",pH="url.path",_H="url.query",EH="url.scheme",TH="user_agent.original"});var SH,fH,dH,AH,vH,OH,mH,hH,NH,RH,yH,PH,MH,gH,LH,IH,CH,xH,bH,UH,DH,VH,wH,BH,GH,HH,kH,YH,FH,KH,jH,OA=d(()=>{SH="aspnetcore.diagnostics.exceptions",fH="aspnetcore.rate_limiting.active_request_leases",dH="aspnetcore.rate_limiting.queued_requests",AH="aspnetcore.rate_limiting.request.time_in_queue",vH="aspnetcore.rate_limiting.request_lease.duration",OH="aspnetcore.rate_limiting.requests",mH="aspnetcore.routing.match_attempts",hH="http.client.request.duration",NH="http.server.request.duration",RH="jvm.class.count",yH="jvm.class.loaded",PH="jvm.class.unloaded",MH="jvm.cpu.count",gH="jvm.cpu.recent_utilization",LH="jvm.cpu.time",IH="jvm.gc.duration",CH="jvm.memory.committed",xH="jvm.memory.limit",bH="jvm.memory.used",UH="jvm.memory.used_after_last_gc",DH="jvm.thread.count",VH="kestrel.active_connections",wH="kestrel.active_tls_handshakes",BH="kestrel.connection.duration",GH="kestrel.queued_connections",HH="kestrel.queued_requests",kH="kestrel.rejected_connections",YH="kestrel.tls_handshake.duration",FH="kestrel.upgraded_connections",KH="signalr.server.active_connections",jH="signalr.server.connection.duration"});var mA={};At(mA,{ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:()=>DB,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:()=>VB,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:()=>wB,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:()=>BB,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:()=>TB,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:()=>SB,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:()=>fB,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:()=>dB,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:()=>FB,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:()=>KB,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:()=>UB,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:()=>bB,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:()=>GB,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:()=>EB,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:()=>HB,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:()=>kB,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:()=>YB,ATTR_CLIENT_ADDRESS:()=>jB,ATTR_CLIENT_PORT:()=>qB,ATTR_ERROR_TYPE:()=>WB,ATTR_EXCEPTION_ESCAPED:()=>JB,ATTR_EXCEPTION_MESSAGE:()=>XB,ATTR_EXCEPTION_STACKTRACE:()=>$B,ATTR_EXCEPTION_TYPE:()=>QB,ATTR_HTTP_REQUEST_HEADER:()=>ZB,ATTR_HTTP_REQUEST_METHOD:()=>eG,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:()=>pG,ATTR_HTTP_REQUEST_RESEND_COUNT:()=>_G,ATTR_HTTP_RESPONSE_HEADER:()=>EG,ATTR_HTTP_RESPONSE_STATUS_CODE:()=>TG,ATTR_HTTP_ROUTE:()=>SG,ATTR_JVM_GC_ACTION:()=>fG,ATTR_JVM_GC_NAME:()=>dG,ATTR_JVM_MEMORY_POOL_NAME:()=>AG,ATTR_JVM_MEMORY_TYPE:()=>vG,ATTR_JVM_THREAD_DAEMON:()=>hG,ATTR_JVM_THREAD_STATE:()=>NG,ATTR_NETWORK_LOCAL_ADDRESS:()=>IG,ATTR_NETWORK_LOCAL_PORT:()=>CG,ATTR_NETWORK_PEER_ADDRESS:()=>xG,ATTR_NETWORK_PEER_PORT:()=>bG,ATTR_NETWORK_PROTOCOL_NAME:()=>UG,ATTR_NETWORK_PROTOCOL_VERSION:()=>DG,ATTR_NETWORK_TRANSPORT:()=>VG,ATTR_NETWORK_TYPE:()=>YG,ATTR_OTEL_SCOPE_NAME:()=>jG,ATTR_OTEL_SCOPE_VERSION:()=>qG,ATTR_OTEL_STATUS_CODE:()=>WG,ATTR_OTEL_STATUS_DESCRIPTION:()=>XG,ATTR_SERVER_ADDRESS:()=>$G,ATTR_SERVER_PORT:()=>QG,ATTR_SERVICE_NAME:()=>ZG,ATTR_SERVICE_VERSION:()=>eH,ATTR_SIGNALR_CONNECTION_STATUS:()=>tH,ATTR_SIGNALR_TRANSPORT:()=>iH,ATTR_TELEMETRY_SDK_LANGUAGE:()=>AB,ATTR_TELEMETRY_SDK_NAME:()=>CB,ATTR_TELEMETRY_SDK_VERSION:()=>xB,ATTR_URL_FRAGMENT:()=>cH,ATTR_URL_FULL:()=>lH,ATTR_URL_PATH:()=>pH,ATTR_URL_QUERY:()=>_H,ATTR_URL_SCHEME:()=>EH,ATTR_USER_AGENT_ORIGINAL:()=>TH,AWSECSLAUNCHTYPEVALUES_EC2:()=>b1,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>U1,AwsEcsLaunchtypeValues:()=>D1,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>S1,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>f1,CLOUDPLATFORMVALUES_AWS_EC2:()=>d1,CLOUDPLATFORMVALUES_AWS_ECS:()=>A1,CLOUDPLATFORMVALUES_AWS_EKS:()=>v1,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>m1,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>O1,CLOUDPLATFORMVALUES_AZURE_AKS:()=>R1,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>P1,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>N1,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>y1,CLOUDPLATFORMVALUES_AZURE_VM:()=>h1,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>C1,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>I1,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>g1,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>M1,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>L1,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>l1,CLOUDPROVIDERVALUES_AWS:()=>p1,CLOUDPROVIDERVALUES_AZURE:()=>_1,CLOUDPROVIDERVALUES_GCP:()=>E1,CloudPlatformValues:()=>x1,CloudProviderValues:()=>T1,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>zD,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>rV,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>JD,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>tV,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>$D,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>oV,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>QD,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>XD,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>nV,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>eV,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>ZD,DBSYSTEMVALUES_ADABAS:()=>dD,DBSYSTEMVALUES_CACHE:()=>fD,DBSYSTEMVALUES_CASSANDRA:()=>UD,DBSYSTEMVALUES_CLOUDSCAPE:()=>sD,DBSYSTEMVALUES_COCKROACHDB:()=>qD,DBSYSTEMVALUES_COLDFUSION:()=>bD,DBSYSTEMVALUES_COSMOSDB:()=>HD,DBSYSTEMVALUES_COUCHBASE:()=>BD,DBSYSTEMVALUES_COUCHDB:()=>GD,DBSYSTEMVALUES_DB2:()=>oD,DBSYSTEMVALUES_DERBY:()=>vD,DBSYSTEMVALUES_DYNAMODB:()=>kD,DBSYSTEMVALUES_EDB:()=>SD,DBSYSTEMVALUES_ELASTICSEARCH:()=>KD,DBSYSTEMVALUES_FILEMAKER:()=>OD,DBSYSTEMVALUES_FIREBIRD:()=>AD,DBSYSTEMVALUES_FIRSTSQL:()=>TD,DBSYSTEMVALUES_GEODE:()=>FD,DBSYSTEMVALUES_H2:()=>xD,DBSYSTEMVALUES_HANADB:()=>_D,DBSYSTEMVALUES_HBASE:()=>DD,DBSYSTEMVALUES_HIVE:()=>uD,DBSYSTEMVALUES_HSQLDB:()=>cD,DBSYSTEMVALUES_INFORMIX:()=>mD,DBSYSTEMVALUES_INGRES:()=>ED,DBSYSTEMVALUES_INSTANTDB:()=>hD,DBSYSTEMVALUES_INTERBASE:()=>ND,DBSYSTEMVALUES_MARIADB:()=>RD,DBSYSTEMVALUES_MAXDB:()=>pD,DBSYSTEMVALUES_MEMCACHED:()=>jD,DBSYSTEMVALUES_MONGODB:()=>VD,DBSYSTEMVALUES_MSSQL:()=>tD,DBSYSTEMVALUES_MYSQL:()=>rD,DBSYSTEMVALUES_NEO4J:()=>YD,DBSYSTEMVALUES_NETEZZA:()=>yD,DBSYSTEMVALUES_ORACLE:()=>nD,DBSYSTEMVALUES_OTHER_SQL:()=>eD,DBSYSTEMVALUES_PERVASIVE:()=>PD,DBSYSTEMVALUES_POINTBASE:()=>MD,DBSYSTEMVALUES_POSTGRESQL:()=>iD,DBSYSTEMVALUES_PROGRESS:()=>lD,DBSYSTEMVALUES_REDIS:()=>wD,DBSYSTEMVALUES_REDSHIFT:()=>aD,DBSYSTEMVALUES_SQLITE:()=>gD,DBSYSTEMVALUES_SYBASE:()=>LD,DBSYSTEMVALUES_TERADATA:()=>ID,DBSYSTEMVALUES_VERTICA:()=>CD,DbCassandraConsistencyLevelValues:()=>iV,DbSystemValues:()=>WD,ERROR_TYPE_VALUE_OTHER:()=>zB,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>TV,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>EV,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>_V,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>fV,FAASINVOKEDPROVIDERVALUES_AWS:()=>dV,FAASINVOKEDPROVIDERVALUES_AZURE:()=>AV,FAASINVOKEDPROVIDERVALUES_GCP:()=>vV,FAASTRIGGERVALUES_DATASOURCE:()=>aV,FAASTRIGGERVALUES_HTTP:()=>uV,FAASTRIGGERVALUES_OTHER:()=>lV,FAASTRIGGERVALUES_PUBSUB:()=>sV,FAASTRIGGERVALUES_TIMER:()=>cV,FaasDocumentOperationValues:()=>SV,FaasInvokedProviderValues:()=>OV,FaasTriggerValues:()=>pV,HOSTARCHVALUES_AMD64:()=>V1,HOSTARCHVALUES_ARM32:()=>w1,HOSTARCHVALUES_ARM64:()=>B1,HOSTARCHVALUES_IA64:()=>G1,HOSTARCHVALUES_PPC32:()=>H1,HOSTARCHVALUES_PPC64:()=>k1,HOSTARCHVALUES_X86:()=>Y1,HTTPFLAVORVALUES_HTTP_1_0:()=>n0,HTTPFLAVORVALUES_HTTP_1_1:()=>o0,HTTPFLAVORVALUES_HTTP_2_0:()=>i0,HTTPFLAVORVALUES_QUIC:()=>u0,HTTPFLAVORVALUES_SPDY:()=>a0,HTTP_REQUEST_METHOD_VALUE_CONNECT:()=>rG,HTTP_REQUEST_METHOD_VALUE_DELETE:()=>nG,HTTP_REQUEST_METHOD_VALUE_GET:()=>oG,HTTP_REQUEST_METHOD_VALUE_HEAD:()=>iG,HTTP_REQUEST_METHOD_VALUE_OPTIONS:()=>aG,HTTP_REQUEST_METHOD_VALUE_OTHER:()=>tG,HTTP_REQUEST_METHOD_VALUE_PATCH:()=>uG,HTTP_REQUEST_METHOD_VALUE_POST:()=>sG,HTTP_REQUEST_METHOD_VALUE_PUT:()=>cG,HTTP_REQUEST_METHOD_VALUE_TRACE:()=>lG,HostArchValues:()=>F1,HttpFlavorValues:()=>s0,JVM_MEMORY_TYPE_VALUE_HEAP:()=>OG,JVM_MEMORY_TYPE_VALUE_NON_HEAP:()=>mG,JVM_THREAD_STATE_VALUE_BLOCKED:()=>RG,JVM_THREAD_STATE_VALUE_NEW:()=>yG,JVM_THREAD_STATE_VALUE_RUNNABLE:()=>PG,JVM_THREAD_STATE_VALUE_TERMINATED:()=>MG,JVM_THREAD_STATE_VALUE_TIMED_WAITING:()=>gG,JVM_THREAD_STATE_VALUE_WAITING:()=>LG,MESSAGETYPEVALUES_RECEIVED:()=>U0,MESSAGETYPEVALUES_SENT:()=>b0,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>c0,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>l0,MESSAGINGOPERATIONVALUES_PROCESS:()=>E0,MESSAGINGOPERATIONVALUES_RECEIVE:()=>_0,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:()=>SH,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:()=>fH,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:()=>dH,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:()=>OH,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:()=>vH,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:()=>AH,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:()=>mH,METRIC_HTTP_CLIENT_REQUEST_DURATION:()=>hH,METRIC_HTTP_SERVER_REQUEST_DURATION:()=>NH,METRIC_JVM_CLASS_COUNT:()=>RH,METRIC_JVM_CLASS_LOADED:()=>yH,METRIC_JVM_CLASS_UNLOADED:()=>PH,METRIC_JVM_CPU_COUNT:()=>MH,METRIC_JVM_CPU_RECENT_UTILIZATION:()=>gH,METRIC_JVM_CPU_TIME:()=>LH,METRIC_JVM_GC_DURATION:()=>IH,METRIC_JVM_MEMORY_COMMITTED:()=>CH,METRIC_JVM_MEMORY_LIMIT:()=>xH,METRIC_JVM_MEMORY_USED:()=>bH,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:()=>UH,METRIC_JVM_THREAD_COUNT:()=>DH,METRIC_KESTREL_ACTIVE_CONNECTIONS:()=>VH,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:()=>wH,METRIC_KESTREL_CONNECTION_DURATION:()=>BH,METRIC_KESTREL_QUEUED_CONNECTIONS:()=>GH,METRIC_KESTREL_QUEUED_REQUESTS:()=>HH,METRIC_KESTREL_REJECTED_CONNECTIONS:()=>kH,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:()=>YH,METRIC_KESTREL_UPGRADED_CONNECTIONS:()=>FH,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:()=>KH,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:()=>jH,MessageTypeValues:()=>D0,MessagingDestinationKindValues:()=>p0,MessagingOperationValues:()=>T0,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>BV,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>kV,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>VV,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>zV,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>GV,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>HV,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>qV,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>DV,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>XV,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>YV,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>KV,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>JV,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>FV,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>jV,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>QV,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>WV,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>t0,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>ZV,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>e0,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>$V,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>wV,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>CV,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>xV,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>bV,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>LV,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>IV,NETTRANSPORTVALUES_INPROC:()=>PV,NETTRANSPORTVALUES_IP:()=>NV,NETTRANSPORTVALUES_IP_TCP:()=>mV,NETTRANSPORTVALUES_IP_UDP:()=>hV,NETTRANSPORTVALUES_OTHER:()=>MV,NETTRANSPORTVALUES_PIPE:()=>yV,NETTRANSPORTVALUES_UNIX:()=>RV,NETWORK_TRANSPORT_VALUE_PIPE:()=>wG,NETWORK_TRANSPORT_VALUE_QUIC:()=>BG,NETWORK_TRANSPORT_VALUE_TCP:()=>GG,NETWORK_TRANSPORT_VALUE_UDP:()=>HG,NETWORK_TRANSPORT_VALUE_UNIX:()=>kG,NETWORK_TYPE_VALUE_IPV4:()=>FG,NETWORK_TYPE_VALUE_IPV6:()=>KG,NetHostConnectionSubtypeValues:()=>r0,NetHostConnectionTypeValues:()=>UV,NetTransportValues:()=>gV,OSTYPEVALUES_AIX:()=>Q1,OSTYPEVALUES_DARWIN:()=>q1,OSTYPEVALUES_DRAGONFLYBSD:()=>X1,OSTYPEVALUES_FREEBSD:()=>W1,OSTYPEVALUES_HPUX:()=>$1,OSTYPEVALUES_LINUX:()=>j1,OSTYPEVALUES_NETBSD:()=>z1,OSTYPEVALUES_OPENBSD:()=>J1,OSTYPEVALUES_SOLARIS:()=>Z1,OSTYPEVALUES_WINDOWS:()=>K1,OSTYPEVALUES_Z_OS:()=>eB,OTEL_STATUS_CODE_VALUE_ERROR:()=>zG,OTEL_STATUS_CODE_VALUE_OK:()=>JG,OsTypeValues:()=>tB,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>y0,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>m0,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>f0,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>I0,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>v0,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>R0,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>g0,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>A0,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>O0,RPCGRPCSTATUSCODEVALUES_OK:()=>S0,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>P0,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>h0,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>N0,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>C0,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>L0,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>M0,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>d0,RpcGrpcStatusCodeValues:()=>x0,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>sU,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>OU,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>iU,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>tU,SEMATTRS_AWS_DYNAMODB_COUNT:()=>AU,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>EU,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>pU,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>mU,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>cU,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>rU,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>uU,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>_U,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>aU,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>nU,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>oU,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>vU,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>SU,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>fU,SEMATTRS_AWS_DYNAMODB_SELECT:()=>lU,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>TU,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>eU,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>dU,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>bx,SEMATTRS_CODE_FILEPATH:()=>wb,SEMATTRS_CODE_FUNCTION:()=>Db,SEMATTRS_CODE_LINENO:()=>Bb,SEMATTRS_CODE_NAMESPACE:()=>Vb,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>Kx,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>Jx,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>zx,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>qx,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>Yx,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>Fx,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>Wx,SEMATTRS_DB_CASSANDRA_TABLE:()=>jx,SEMATTRS_DB_CONNECTION_STRING:()=>Dx,SEMATTRS_DB_HBASE_NAMESPACE:()=>Xx,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>wx,SEMATTRS_DB_MONGODB_COLLECTION:()=>Qx,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>kx,SEMATTRS_DB_NAME:()=>Bx,SEMATTRS_DB_OPERATION:()=>Hx,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>$x,SEMATTRS_DB_SQL_TABLE:()=>Zx,SEMATTRS_DB_STATEMENT:()=>Gx,SEMATTRS_DB_SYSTEM:()=>Ux,SEMATTRS_DB_USER:()=>Vx,SEMATTRS_ENDUSER_ID:()=>Ib,SEMATTRS_ENDUSER_ROLE:()=>Cb,SEMATTRS_ENDUSER_SCOPE:()=>xb,SEMATTRS_EXCEPTION_ESCAPED:()=>nb,SEMATTRS_EXCEPTION_MESSAGE:()=>tb,SEMATTRS_EXCEPTION_STACKTRACE:()=>rb,SEMATTRS_EXCEPTION_TYPE:()=>eb,SEMATTRS_FAAS_COLDSTART:()=>_b,SEMATTRS_FAAS_CRON:()=>pb,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>ab,SEMATTRS_FAAS_DOCUMENT_NAME:()=>cb,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>ub,SEMATTRS_FAAS_DOCUMENT_TIME:()=>sb,SEMATTRS_FAAS_EXECUTION:()=>ib,SEMATTRS_FAAS_INVOKED_NAME:()=>Eb,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>Tb,SEMATTRS_FAAS_INVOKED_REGION:()=>Sb,SEMATTRS_FAAS_TIME:()=>lb,SEMATTRS_FAAS_TRIGGER:()=>ob,SEMATTRS_HTTP_CLIENT_IP:()=>Zb,SEMATTRS_HTTP_FLAVOR:()=>jb,SEMATTRS_HTTP_HOST:()=>Yb,SEMATTRS_HTTP_METHOD:()=>Gb,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>Wb,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>zb,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>Jb,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>Xb,SEMATTRS_HTTP_ROUTE:()=>Qb,SEMATTRS_HTTP_SCHEME:()=>Fb,SEMATTRS_HTTP_SERVER_NAME:()=>$b,SEMATTRS_HTTP_STATUS_CODE:()=>Kb,SEMATTRS_HTTP_TARGET:()=>kb,SEMATTRS_HTTP_URL:()=>Hb,SEMATTRS_HTTP_USER_AGENT:()=>qb,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>$U,SEMATTRS_MESSAGE_ID:()=>XU,SEMATTRS_MESSAGE_TYPE:()=>JU,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>QU,SEMATTRS_MESSAGING_CONSUMER_ID:()=>UU,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>IU,SEMATTRS_MESSAGING_DESTINATION:()=>NU,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>RU,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>BU,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>wU,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>VU,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>GU,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>HU,SEMATTRS_MESSAGING_MESSAGE_ID:()=>LU,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>xU,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>CU,SEMATTRS_MESSAGING_OPERATION:()=>bU,SEMATTRS_MESSAGING_PROTOCOL:()=>PU,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>MU,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>DU,SEMATTRS_MESSAGING_SYSTEM:()=>hU,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>yU,SEMATTRS_MESSAGING_URL:()=>gU,SEMATTRS_NET_HOST_CARRIER_ICC:()=>gb,SEMATTRS_NET_HOST_CARRIER_MCC:()=>Pb,SEMATTRS_NET_HOST_CARRIER_MNC:()=>Mb,SEMATTRS_NET_HOST_CARRIER_NAME:()=>yb,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>Rb,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>Nb,SEMATTRS_NET_HOST_IP:()=>Ob,SEMATTRS_NET_HOST_NAME:()=>hb,SEMATTRS_NET_HOST_PORT:()=>mb,SEMATTRS_NET_PEER_IP:()=>db,SEMATTRS_NET_PEER_NAME:()=>vb,SEMATTRS_NET_PEER_PORT:()=>Ab,SEMATTRS_NET_TRANSPORT:()=>fb,SEMATTRS_PEER_SERVICE:()=>Lb,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>KU,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>WU,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>zU,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>qU,SEMATTRS_RPC_JSONRPC_VERSION:()=>jU,SEMATTRS_RPC_METHOD:()=>FU,SEMATTRS_RPC_SERVICE:()=>YU,SEMATTRS_RPC_SYSTEM:()=>kU,SEMATTRS_THREAD_ID:()=>bb,SEMATTRS_THREAD_NAME:()=>Ub,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>Y0,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>k0,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>F0,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>K0,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>j0,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>q0,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>W0,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>J0,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>z0,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>$0,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>X0,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>w0,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>G0,SEMRESATTRS_CLOUD_PLATFORM:()=>H0,SEMRESATTRS_CLOUD_PROVIDER:()=>V0,SEMRESATTRS_CLOUD_REGION:()=>B0,SEMRESATTRS_CONTAINER_ID:()=>Z0,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>tw,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>rw,SEMRESATTRS_CONTAINER_NAME:()=>Q0,SEMRESATTRS_CONTAINER_RUNTIME:()=>ew,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>nw,SEMRESATTRS_DEVICE_ID:()=>ow,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>iw,SEMRESATTRS_DEVICE_MODEL_NAME:()=>aw,SEMRESATTRS_FAAS_ID:()=>sw,SEMRESATTRS_FAAS_INSTANCE:()=>lw,SEMRESATTRS_FAAS_MAX_MEMORY:()=>pw,SEMRESATTRS_FAAS_NAME:()=>uw,SEMRESATTRS_FAAS_VERSION:()=>cw,SEMRESATTRS_HOST_ARCH:()=>Sw,SEMRESATTRS_HOST_ID:()=>_w,SEMRESATTRS_HOST_IMAGE_ID:()=>dw,SEMRESATTRS_HOST_IMAGE_NAME:()=>fw,SEMRESATTRS_HOST_IMAGE_VERSION:()=>Aw,SEMRESATTRS_HOST_NAME:()=>Ew,SEMRESATTRS_HOST_TYPE:()=>Tw,SEMRESATTRS_K8S_CLUSTER_NAME:()=>vw,SEMRESATTRS_K8S_CONTAINER_NAME:()=>yw,SEMRESATTRS_K8S_CRONJOB_NAME:()=>ww,SEMRESATTRS_K8S_CRONJOB_UID:()=>Vw,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>bw,SEMRESATTRS_K8S_DAEMONSET_UID:()=>xw,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>Lw,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>gw,SEMRESATTRS_K8S_JOB_NAME:()=>Dw,SEMRESATTRS_K8S_JOB_UID:()=>Uw,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>hw,SEMRESATTRS_K8S_NODE_NAME:()=>Ow,SEMRESATTRS_K8S_NODE_UID:()=>mw,SEMRESATTRS_K8S_POD_NAME:()=>Rw,SEMRESATTRS_K8S_POD_UID:()=>Nw,SEMRESATTRS_K8S_REPLICASET_NAME:()=>Mw,SEMRESATTRS_K8S_REPLICASET_UID:()=>Pw,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>Cw,SEMRESATTRS_K8S_STATEFULSET_UID:()=>Iw,SEMRESATTRS_OS_DESCRIPTION:()=>Gw,SEMRESATTRS_OS_NAME:()=>Hw,SEMRESATTRS_OS_TYPE:()=>Bw,SEMRESATTRS_OS_VERSION:()=>kw,SEMRESATTRS_PROCESS_COMMAND:()=>jw,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>Ww,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>qw,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>Fw,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>Kw,SEMRESATTRS_PROCESS_OWNER:()=>zw,SEMRESATTRS_PROCESS_PID:()=>Yw,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>$w,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>Jw,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>Xw,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>e1,SEMRESATTRS_SERVICE_NAME:()=>Qw,SEMRESATTRS_SERVICE_NAMESPACE:()=>Zw,SEMRESATTRS_SERVICE_VERSION:()=>t1,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>i1,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>n1,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>r1,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>o1,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>s1,SEMRESATTRS_WEBENGINE_NAME:()=>a1,SEMRESATTRS_WEBENGINE_VERSION:()=>u1,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:()=>rH,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:()=>nH,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:()=>oH,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:()=>aH,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:()=>uH,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:()=>sH,SemanticAttributes:()=>ZU,SemanticResourceAttributes:()=>c1,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>rB,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>nB,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>oB,TELEMETRYSDKLANGUAGEVALUES_GO:()=>iB,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>aB,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>uB,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>sB,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>cB,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>lB,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>pB,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:()=>vB,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:()=>OB,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:()=>mB,TELEMETRY_SDK_LANGUAGE_VALUE_GO:()=>hB,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:()=>NB,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:()=>RB,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:()=>yB,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:()=>PB,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:()=>MB,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:()=>gB,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:()=>LB,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:()=>IB,TelemetrySdkLanguageValues:()=>_B});var hA=d(()=>{jS();AA();vA();OA()});var NA=S(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.SDK_INFO=void 0;var qH=ja(),Or=(hA(),N(mA));Pn.SDK_INFO={[Or.SEMRESATTRS_TELEMETRY_SDK_NAME]:"opentelemetry",[Or.SEMRESATTRS_PROCESS_RUNTIME_NAME]:"node",[Or.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]:Or.TELEMETRYSDKLANGUAGEVALUES_NODEJS,[Or.SEMRESATTRS_TELEMETRY_SDK_VERSION]:qH.VERSION}});var RA=S(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.unrefTimer=void 0;function WH(o){o.unref()}Mn.unrefTimer=WH});var PA=S(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.unrefTimer=k.SDK_INFO=k.otperformance=k.RandomIdGenerator=k.hexToBase64=k._globalThis=k.getEnv=k.getEnvWithoutDefaults=void 0;var yA=Wl();Object.defineProperty(k,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return yA.getEnvWithoutDefaults}});Object.defineProperty(k,"getEnv",{enumerable:!0,get:function(){return yA.getEnv}});var zH=zl();Object.defineProperty(k,"_globalThis",{enumerable:!0,get:function(){return zH._globalThis}});var JH=Xl();Object.defineProperty(k,"hexToBase64",{enumerable:!0,get:function(){return JH.hexToBase64}});var XH=Zl();Object.defineProperty(k,"RandomIdGenerator",{enumerable:!0,get:function(){return XH.RandomIdGenerator}});var $H=ep();Object.defineProperty(k,"otperformance",{enumerable:!0,get:function(){return $H.otperformance}});var QH=NA();Object.defineProperty(k,"SDK_INFO",{enumerable:!0,get:function(){return QH.SDK_INFO}});var ZH=RA();Object.defineProperty(k,"unrefTimer",{enumerable:!0,get:function(){return ZH.unrefTimer}})});var Wa=S(Y=>{"use strict";Object.defineProperty(Y,"__esModule",{value:!0});Y.unrefTimer=Y.otperformance=Y.hexToBase64=Y.getEnvWithoutDefaults=Y.getEnv=Y._globalThis=Y.SDK_INFO=Y.RandomIdGenerator=void 0;var Fe=PA();Object.defineProperty(Y,"RandomIdGenerator",{enumerable:!0,get:function(){return Fe.RandomIdGenerator}});Object.defineProperty(Y,"SDK_INFO",{enumerable:!0,get:function(){return Fe.SDK_INFO}});Object.defineProperty(Y,"_globalThis",{enumerable:!0,get:function(){return Fe._globalThis}});Object.defineProperty(Y,"getEnv",{enumerable:!0,get:function(){return Fe.getEnv}});Object.defineProperty(Y,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return Fe.getEnvWithoutDefaults}});Object.defineProperty(Y,"hexToBase64",{enumerable:!0,get:function(){return Fe.hexToBase64}});Object.defineProperty(Y,"otperformance",{enumerable:!0,get:function(){return Fe.otperformance}});Object.defineProperty(Y,"unrefTimer",{enumerable:!0,get:function(){return Fe.unrefTimer}})});var IA=S(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.addHrTimes=L.isTimeInput=L.isTimeInputHrTime=L.hrTimeToMicroseconds=L.hrTimeToMilliseconds=L.hrTimeToNanoseconds=L.hrTimeToTimeStamp=L.hrTimeDuration=L.timeInputToHrTime=L.hrTime=L.getTimeOrigin=L.millisToHrTime=void 0;var za=Wa(),MA=9,ek=6,tk=Math.pow(10,ek),gn=Math.pow(10,MA);function mr(o){let r=o/1e3,i=Math.trunc(r),c=Math.round(o%1e3*tk);return[i,c]}L.millisToHrTime=mr;function Ja(){let o=za.otperformance.timeOrigin;if(typeof o!="number"){let r=za.otperformance;o=r.timing&&r.timing.fetchStart}return o}L.getTimeOrigin=Ja;function gA(o){let r=mr(Ja()),i=mr(typeof o=="number"?o:za.otperformance.now());return LA(r,i)}L.hrTime=gA;function rk(o){if(Xa(o))return o;if(typeof o=="number")return o<Ja()?gA(o):mr(o);if(o instanceof Date)return mr(o.getTime());throw TypeError("Invalid input type")}L.timeInputToHrTime=rk;function nk(o,r){let i=r[0]-o[0],c=r[1]-o[1];return c<0&&(i-=1,c+=gn),[i,c]}L.hrTimeDuration=nk;function ok(o){let r=MA,i=`${"0".repeat(r)}${o[1]}Z`,c=i.substring(i.length-r-1);return new Date(o[0]*1e3).toISOString().replace("000Z",c)}L.hrTimeToTimeStamp=ok;function ik(o){return o[0]*gn+o[1]}L.hrTimeToNanoseconds=ik;function ak(o){return o[0]*1e3+o[1]/1e6}L.hrTimeToMilliseconds=ak;function uk(o){return o[0]*1e6+o[1]/1e3}L.hrTimeToMicroseconds=uk;function Xa(o){return Array.isArray(o)&&o.length===2&&typeof o[0]=="number"&&typeof o[1]=="number"}L.isTimeInputHrTime=Xa;function sk(o){return Xa(o)||typeof o=="number"||o instanceof Date}L.isTimeInput=sk;function LA(o,r){let i=[o[0]+r[0],o[1]+r[1]];return i[1]>=gn&&(i[1]-=gn,i[0]+=1),i}L.addHrTimes=LA});var CA=S(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.ExportResultCode=void 0;var ck;(function(o){o[o.SUCCESS=0]="SUCCESS",o[o.FAILED=1]="FAILED"})(ck=hr.ExportResultCode||(hr.ExportResultCode={}))});var bA=S(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.CompositePropagator=void 0;var xA=(m(),N(y)),$a=class{constructor(r={}){var i;this._propagators=(i=r.propagators)!==null&&i!==void 0?i:[],this._fields=Array.from(new Set(this._propagators.map(c=>typeof c.fields=="function"?c.fields():[]).reduce((c,a)=>c.concat(a),[])))}inject(r,i,c){for(let a of this._propagators)try{a.inject(r,i,c)}catch(u){xA.diag.warn(`Failed to inject with ${a.constructor.name}. Err: ${u.message}`)}}extract(r,i,c){return this._propagators.reduce((a,u)=>{try{return u.extract(a,i,c)}catch(t){xA.diag.warn(`Failed to extract with ${u.constructor.name}. Err: ${t.message}`)}return a},r)}fields(){return this._fields.slice()}};Ln.CompositePropagator=$a});var UA=S(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.validateValue=Pt.validateKey=void 0;var Qa="[_0-9a-z-*/]",lk=`[a-z]${Qa}{0,255}`,pk=`[a-z0-9]${Qa}{0,240}@[a-z]${Qa}{0,13}`,_k=new RegExp(`^(?:${lk}|${pk})$`),Ek=/^[ -~]{0,255}[!-~]$/,Tk=/,|=/;function Sk(o){return _k.test(o)}Pt.validateKey=Sk;function fk(o){return Ek.test(o)&&!Tk.test(o)}Pt.validateValue=fk});var eu=S(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.TraceState=void 0;var DA=UA(),VA=32,dk=512,wA=",",BA="=",Za=class o{constructor(r){this._internalState=new Map,r&&this._parse(r)}set(r,i){let c=this._clone();return c._internalState.has(r)&&c._internalState.delete(r),c._internalState.set(r,i),c}unset(r){let i=this._clone();return i._internalState.delete(r),i}get(r){return this._internalState.get(r)}serialize(){return this._keys().reduce((r,i)=>(r.push(i+BA+this.get(i)),r),[]).join(wA)}_parse(r){r.length>dk||(this._internalState=r.split(wA).reverse().reduce((i,c)=>{let a=c.trim(),u=a.indexOf(BA);if(u!==-1){let t=a.slice(0,u),e=a.slice(u+1,c.length);(0,DA.validateKey)(t)&&(0,DA.validateValue)(e)&&i.set(t,e)}return i},new Map),this._internalState.size>VA&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,VA))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let r=new o;return r._internalState=new Map(this._internalState),r}};In.TraceState=Za});var HA=S(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.W3CTraceContextPropagator=X.parseTraceParent=X.TRACE_STATE_HEADER=X.TRACE_PARENT_HEADER=void 0;var Cn=(m(),N(y)),Ak=Ar(),vk=eu();X.TRACE_PARENT_HEADER="traceparent";X.TRACE_STATE_HEADER="tracestate";var Ok="00",mk="(?!ff)[\\da-f]{2}",hk="(?![0]{32})[\\da-f]{32}",Nk="(?![0]{16})[\\da-f]{16}",Rk="[\\da-f]{2}",yk=new RegExp(`^\\s?(${mk})-(${hk})-(${Nk})-(${Rk})(-.*)?\\s?$`);function GA(o){let r=yk.exec(o);return!r||r[1]==="00"&&r[5]?null:{traceId:r[2],spanId:r[3],traceFlags:parseInt(r[4],16)}}X.parseTraceParent=GA;var tu=class{inject(r,i,c){let a=Cn.trace.getSpanContext(r);if(!a||(0,Ak.isTracingSuppressed)(r)||!(0,Cn.isSpanContextValid)(a))return;let u=`${Ok}-${a.traceId}-${a.spanId}-0${Number(a.traceFlags||Cn.TraceFlags.NONE).toString(16)}`;c.set(i,X.TRACE_PARENT_HEADER,u),a.traceState&&c.set(i,X.TRACE_STATE_HEADER,a.traceState.serialize())}extract(r,i,c){let a=c.get(i,X.TRACE_PARENT_HEADER);if(!a)return r;let u=Array.isArray(a)?a[0]:a;if(typeof u!="string")return r;let t=GA(u);if(!t)return r;t.isRemote=!0;let e=c.get(i,X.TRACE_STATE_HEADER);if(e){let n=Array.isArray(e)?e.join(","):e;t.traceState=new vk.TraceState(typeof n=="string"?n:void 0)}return Cn.trace.setSpanContext(r,t)}fields(){return[X.TRACE_PARENT_HEADER,X.TRACE_STATE_HEADER]}};X.W3CTraceContextPropagator=tu});var kA=S(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.getRPCMetadata=_e.deleteRPCMetadata=_e.setRPCMetadata=_e.RPCType=void 0;var Pk=(m(),N(y)),ru=(0,Pk.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),Mk;(function(o){o.HTTP="http"})(Mk=_e.RPCType||(_e.RPCType={}));function gk(o,r){return o.setValue(ru,r)}_e.setRPCMetadata=gk;function Lk(o){return o.deleteValue(ru)}_e.deleteRPCMetadata=Lk;function Ik(o){return o.getValue(ru)}_e.getRPCMetadata=Ik});var ou=S(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.AlwaysOffSampler=void 0;var Ck=(m(),N(y)),nu=class{shouldSample(){return{decision:Ck.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};xn.AlwaysOffSampler=nu});var au=S(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.AlwaysOnSampler=void 0;var xk=(m(),N(y)),iu=class{shouldSample(){return{decision:xk.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};bn.AlwaysOnSampler=iu});var FA=S(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.ParentBasedSampler=void 0;var Un=(m(),N(y)),bk=Ga(),YA=ou(),uu=au(),su=class{constructor(r){var i,c,a,u;this._root=r.root,this._root||((0,bk.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new uu.AlwaysOnSampler),this._remoteParentSampled=(i=r.remoteParentSampled)!==null&&i!==void 0?i:new uu.AlwaysOnSampler,this._remoteParentNotSampled=(c=r.remoteParentNotSampled)!==null&&c!==void 0?c:new YA.AlwaysOffSampler,this._localParentSampled=(a=r.localParentSampled)!==null&&a!==void 0?a:new uu.AlwaysOnSampler,this._localParentNotSampled=(u=r.localParentNotSampled)!==null&&u!==void 0?u:new YA.AlwaysOffSampler}shouldSample(r,i,c,a,u,t){let e=Un.trace.getSpanContext(r);return!e||!(0,Un.isSpanContextValid)(e)?this._root.shouldSample(r,i,c,a,u,t):e.isRemote?e.traceFlags&Un.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(r,i,c,a,u,t):this._remoteParentNotSampled.shouldSample(r,i,c,a,u,t):e.traceFlags&Un.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(r,i,c,a,u,t):this._localParentNotSampled.shouldSample(r,i,c,a,u,t)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};Dn.ParentBasedSampler=su});var KA=S(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.TraceIdRatioBasedSampler=void 0;var cu=(m(),N(y)),lu=class{constructor(r=0){this._ratio=r,this._ratio=this._normalize(r),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(r,i){return{decision:(0,cu.isValidTraceId)(i)&&this._accumulate(i)<this._upperBound?cu.SamplingDecision.RECORD_AND_SAMPLED:cu.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(r){return typeof r!="number"||isNaN(r)?0:r>=1?1:r<=0?0:r}_accumulate(r){let i=0;for(let c=0;c<r.length/8;c++){let a=c*8,u=parseInt(r.slice(a,a+8),16);i=(i^u)>>>0}return i}};Vn.TraceIdRatioBasedSampler=lu});var JA=S(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.isPlainObject=void 0;var Uk="[object Object]",Dk="[object Null]",Vk="[object Undefined]",wk=Function.prototype,jA=wk.toString,Bk=jA.call(Object),Gk=Hk(Object.getPrototypeOf,Object),qA=Object.prototype,WA=qA.hasOwnProperty,nt=Symbol?Symbol.toStringTag:void 0,zA=qA.toString;function Hk(o,r){return function(i){return o(r(i))}}function kk(o){if(!Yk(o)||Fk(o)!==Uk)return!1;let r=Gk(o);if(r===null)return!0;let i=WA.call(r,"constructor")&&r.constructor;return typeof i=="function"&&i instanceof i&&jA.call(i)===Bk}wn.isPlainObject=kk;function Yk(o){return o!=null&&typeof o=="object"}function Fk(o){return o==null?o===void 0?Vk:Dk:nt&&nt in Object(o)?Kk(o):jk(o)}function Kk(o){let r=WA.call(o,nt),i=o[nt],c=!1;try{o[nt]=void 0,c=!0}catch{}let a=zA.call(o);return c&&(r?o[nt]=i:delete o[nt]),a}function jk(o){return zA.call(o)}});var ev=S(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.merge=void 0;var XA=JA(),qk=20;function Wk(...o){let r=o.shift(),i=new WeakMap;for(;o.length>0;)r=QA(r,o.shift(),0,i);return r}Hn.merge=Wk;function pu(o){return Gn(o)?o.slice():o}function QA(o,r,i=0,c){let a;if(!(i>qk)){if(i++,Bn(o)||Bn(r)||ZA(r))a=pu(r);else if(Gn(o)){if(a=o.slice(),Gn(r))for(let u=0,t=r.length;u<t;u++)a.push(pu(r[u]));else if(Nr(r)){let u=Object.keys(r);for(let t=0,e=u.length;t<e;t++){let n=u[t];a[n]=pu(r[n])}}}else if(Nr(o))if(Nr(r)){if(!zk(o,r))return r;a=Object.assign({},o);let u=Object.keys(r);for(let t=0,e=u.length;t<e;t++){let n=u[t],s=r[n];if(Bn(s))typeof s>"u"?delete a[n]:a[n]=s;else{let l=a[n],E=s;if($A(o,n,c)||$A(r,n,c))delete a[n];else{if(Nr(l)&&Nr(E)){let O=c.get(l)||[],g=c.get(E)||[];O.push({obj:o,key:n}),g.push({obj:r,key:n}),c.set(l,O),c.set(E,g)}a[n]=QA(a[n],s,i,c)}}}}else a=r;return a}}function $A(o,r,i){let c=i.get(o[r])||[];for(let a=0,u=c.length;a<u;a++){let t=c[a];if(t.key===r&&t.obj===o)return!0}return!1}function Gn(o){return Array.isArray(o)}function ZA(o){return typeof o=="function"}function Nr(o){return!Bn(o)&&!Gn(o)&&!ZA(o)&&typeof o=="object"}function Bn(o){return typeof o=="string"||typeof o=="number"||typeof o=="boolean"||typeof o>"u"||o instanceof Date||o instanceof RegExp||o===null}function zk(o,r){return!(!(0,XA.isPlainObject)(o)||!(0,XA.isPlainObject)(r))}});var tv=S(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.callWithTimeout=Mt.TimeoutError=void 0;var kn=class o extends Error{constructor(r){super(r),Object.setPrototypeOf(this,o.prototype)}};Mt.TimeoutError=kn;function Jk(o,r){let i,c=new Promise(function(u,t){i=setTimeout(function(){t(new kn("Operation timed out."))},r)});return Promise.race([o,c]).then(a=>(clearTimeout(i),a),a=>{throw clearTimeout(i),a})}Mt.callWithTimeout=Jk});var nv=S(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.isUrlIgnored=gt.urlMatches=void 0;function rv(o,r){return typeof r=="string"?o===r:!!o.match(r)}gt.urlMatches=rv;function Xk(o,r){if(!r)return!1;for(let i of r)if(rv(o,i))return!0;return!1}gt.isUrlIgnored=Xk});var ov=S(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.isWrapped=void 0;function $k(o){return typeof o=="function"&&typeof o.__original=="function"&&typeof o.__unwrap=="function"&&o.__wrapped===!0}Yn.isWrapped=$k});var iv=S(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.Deferred=void 0;var _u=class{constructor(){this._promise=new Promise((r,i)=>{this._resolve=r,this._reject=i})}get promise(){return this._promise}resolve(r){this._resolve(r)}reject(r){this._reject(r)}};Fn.Deferred=_u});var av=S(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.BindOnceFuture=void 0;var Qk=iv(),Eu=class{constructor(r,i){this._callback=r,this._that=i,this._isCalled=!1,this._deferred=new Qk.Deferred}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...r){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...r)).then(i=>this._deferred.resolve(i),i=>this._deferred.reject(i))}catch(i){this._deferred.reject(i)}}return this._deferred.promise}};Kn.BindOnceFuture=Eu});var sv=S(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn._export=void 0;var uv=(m(),N(y)),Zk=Ar();function eY(o,r){return new Promise(i=>{uv.context.with((0,Zk.suppressTracing)(uv.context.active()),()=>{o.export(r,c=>{i(c)})})})}jn._export=eY});var x=S(f=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});f.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=f.DEFAULT_ATTRIBUTE_COUNT_LIMIT=f.TraceState=f.unsuppressTracing=f.suppressTracing=f.isTracingSuppressed=f.TraceIdRatioBasedSampler=f.ParentBasedSampler=f.AlwaysOnSampler=f.AlwaysOffSampler=f.setRPCMetadata=f.getRPCMetadata=f.deleteRPCMetadata=f.RPCType=f.parseTraceParent=f.W3CTraceContextPropagator=f.TRACE_STATE_HEADER=f.TRACE_PARENT_HEADER=f.CompositePropagator=f.unrefTimer=f.otperformance=f.hexToBase64=f.getEnvWithoutDefaults=f.getEnv=f._globalThis=f.SDK_INFO=f.RandomIdGenerator=f.baggageUtils=f.ExportResultCode=f.hexToBinary=f.timeInputToHrTime=f.millisToHrTime=f.isTimeInputHrTime=f.isTimeInput=f.hrTimeToTimeStamp=f.hrTimeToNanoseconds=f.hrTimeToMilliseconds=f.hrTimeToMicroseconds=f.hrTimeDuration=f.hrTime=f.getTimeOrigin=f.addHrTimes=f.loggingErrorHandler=f.setGlobalErrorHandler=f.globalErrorHandler=f.sanitizeAttributes=f.isAttributeValue=f.isAttributeKey=f.AnchoredClock=f.W3CBaggagePropagator=void 0;f.internal=f.VERSION=f.BindOnceFuture=f.isWrapped=f.urlMatches=f.isUrlIgnored=f.callWithTimeout=f.TimeoutError=f.TracesSamplerValues=f.merge=f.parseEnvironment=f.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=f.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=f.DEFAULT_ENVIRONMENT=void 0;var tY=Gl();Object.defineProperty(f,"W3CBaggagePropagator",{enumerable:!0,get:function(){return tY.W3CBaggagePropagator}});var rY=Hl();Object.defineProperty(f,"AnchoredClock",{enumerable:!0,get:function(){return rY.AnchoredClock}});var Tu=jl();Object.defineProperty(f,"isAttributeKey",{enumerable:!0,get:function(){return Tu.isAttributeKey}});Object.defineProperty(f,"isAttributeValue",{enumerable:!0,get:function(){return Tu.isAttributeValue}});Object.defineProperty(f,"sanitizeAttributes",{enumerable:!0,get:function(){return Tu.sanitizeAttributes}});var cv=Ga();Object.defineProperty(f,"globalErrorHandler",{enumerable:!0,get:function(){return cv.globalErrorHandler}});Object.defineProperty(f,"setGlobalErrorHandler",{enumerable:!0,get:function(){return cv.setGlobalErrorHandler}});var nY=Ba();Object.defineProperty(f,"loggingErrorHandler",{enumerable:!0,get:function(){return nY.loggingErrorHandler}});var ae=IA();Object.defineProperty(f,"addHrTimes",{enumerable:!0,get:function(){return ae.addHrTimes}});Object.defineProperty(f,"getTimeOrigin",{enumerable:!0,get:function(){return ae.getTimeOrigin}});Object.defineProperty(f,"hrTime",{enumerable:!0,get:function(){return ae.hrTime}});Object.defineProperty(f,"hrTimeDuration",{enumerable:!0,get:function(){return ae.hrTimeDuration}});Object.defineProperty(f,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return ae.hrTimeToMicroseconds}});Object.defineProperty(f,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return ae.hrTimeToMilliseconds}});Object.defineProperty(f,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return ae.hrTimeToNanoseconds}});Object.defineProperty(f,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return ae.hrTimeToTimeStamp}});Object.defineProperty(f,"isTimeInput",{enumerable:!0,get:function(){return ae.isTimeInput}});Object.defineProperty(f,"isTimeInputHrTime",{enumerable:!0,get:function(){return ae.isTimeInputHrTime}});Object.defineProperty(f,"millisToHrTime",{enumerable:!0,get:function(){return ae.millisToHrTime}});Object.defineProperty(f,"timeInputToHrTime",{enumerable:!0,get:function(){return ae.timeInputToHrTime}});var oY=Fa();Object.defineProperty(f,"hexToBinary",{enumerable:!0,get:function(){return oY.hexToBinary}});var iY=CA();Object.defineProperty(f,"ExportResultCode",{enumerable:!0,get:function(){return iY.ExportResultCode}});var qn=ba();f.baggageUtils={getKeyPairs:qn.getKeyPairs,serializeKeyPairs:qn.serializeKeyPairs,parseKeyPairsIntoRecord:qn.parseKeyPairsIntoRecord,parsePairKeyValue:qn.parsePairKeyValue};var Ke=Wa();Object.defineProperty(f,"RandomIdGenerator",{enumerable:!0,get:function(){return Ke.RandomIdGenerator}});Object.defineProperty(f,"SDK_INFO",{enumerable:!0,get:function(){return Ke.SDK_INFO}});Object.defineProperty(f,"_globalThis",{enumerable:!0,get:function(){return Ke._globalThis}});Object.defineProperty(f,"getEnv",{enumerable:!0,get:function(){return Ke.getEnv}});Object.defineProperty(f,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return Ke.getEnvWithoutDefaults}});Object.defineProperty(f,"hexToBase64",{enumerable:!0,get:function(){return Ke.hexToBase64}});Object.defineProperty(f,"otperformance",{enumerable:!0,get:function(){return Ke.otperformance}});Object.defineProperty(f,"unrefTimer",{enumerable:!0,get:function(){return Ke.unrefTimer}});var aY=bA();Object.defineProperty(f,"CompositePropagator",{enumerable:!0,get:function(){return aY.CompositePropagator}});var Wn=HA();Object.defineProperty(f,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return Wn.TRACE_PARENT_HEADER}});Object.defineProperty(f,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return Wn.TRACE_STATE_HEADER}});Object.defineProperty(f,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return Wn.W3CTraceContextPropagator}});Object.defineProperty(f,"parseTraceParent",{enumerable:!0,get:function(){return Wn.parseTraceParent}});var zn=kA();Object.defineProperty(f,"RPCType",{enumerable:!0,get:function(){return zn.RPCType}});Object.defineProperty(f,"deleteRPCMetadata",{enumerable:!0,get:function(){return zn.deleteRPCMetadata}});Object.defineProperty(f,"getRPCMetadata",{enumerable:!0,get:function(){return zn.getRPCMetadata}});Object.defineProperty(f,"setRPCMetadata",{enumerable:!0,get:function(){return zn.setRPCMetadata}});var uY=ou();Object.defineProperty(f,"AlwaysOffSampler",{enumerable:!0,get:function(){return uY.AlwaysOffSampler}});var sY=au();Object.defineProperty(f,"AlwaysOnSampler",{enumerable:!0,get:function(){return sY.AlwaysOnSampler}});var cY=FA();Object.defineProperty(f,"ParentBasedSampler",{enumerable:!0,get:function(){return cY.ParentBasedSampler}});var lY=KA();Object.defineProperty(f,"TraceIdRatioBasedSampler",{enumerable:!0,get:function(){return lY.TraceIdRatioBasedSampler}});var Su=Ar();Object.defineProperty(f,"isTracingSuppressed",{enumerable:!0,get:function(){return Su.isTracingSuppressed}});Object.defineProperty(f,"suppressTracing",{enumerable:!0,get:function(){return Su.suppressTracing}});Object.defineProperty(f,"unsuppressTracing",{enumerable:!0,get:function(){return Su.unsuppressTracing}});var pY=eu();Object.defineProperty(f,"TraceState",{enumerable:!0,get:function(){return pY.TraceState}});var Lt=ka();Object.defineProperty(f,"DEFAULT_ATTRIBUTE_COUNT_LIMIT",{enumerable:!0,get:function(){return Lt.DEFAULT_ATTRIBUTE_COUNT_LIMIT}});Object.defineProperty(f,"DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT",{enumerable:!0,get:function(){return Lt.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT}});Object.defineProperty(f,"DEFAULT_ENVIRONMENT",{enumerable:!0,get:function(){return Lt.DEFAULT_ENVIRONMENT}});Object.defineProperty(f,"DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT",{enumerable:!0,get:function(){return Lt.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT}});Object.defineProperty(f,"DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT",{enumerable:!0,get:function(){return Lt.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}});Object.defineProperty(f,"parseEnvironment",{enumerable:!0,get:function(){return Lt.parseEnvironment}});var _Y=ev();Object.defineProperty(f,"merge",{enumerable:!0,get:function(){return _Y.merge}});var EY=Ha();Object.defineProperty(f,"TracesSamplerValues",{enumerable:!0,get:function(){return EY.TracesSamplerValues}});var lv=tv();Object.defineProperty(f,"TimeoutError",{enumerable:!0,get:function(){return lv.TimeoutError}});Object.defineProperty(f,"callWithTimeout",{enumerable:!0,get:function(){return lv.callWithTimeout}});var pv=nv();Object.defineProperty(f,"isUrlIgnored",{enumerable:!0,get:function(){return pv.isUrlIgnored}});Object.defineProperty(f,"urlMatches",{enumerable:!0,get:function(){return pv.urlMatches}});var TY=ov();Object.defineProperty(f,"isWrapped",{enumerable:!0,get:function(){return TY.isWrapped}});var SY=av();Object.defineProperty(f,"BindOnceFuture",{enumerable:!0,get:function(){return SY.BindOnceFuture}});var fY=ja();Object.defineProperty(f,"VERSION",{enumerable:!0,get:function(){return fY.VERSION}});var dY=sv();f.internal={_export:dY._export}});function D(o){for(var r={},i=o.length,c=0;c<i;c++){var a=o[c];a&&(r[String(a).toUpperCase().replace(/[-.]/g,"_")]=a)}return r}var fu=d(()=>{});var _v,Ev,Tv,Sv,fv,dv,Av,vv,Ov,mv,hv,Nv,Rv,yv,Pv,Mv,gv,Lv,Iv,Cv,xv,bv,Uv,Dv,Vv,wv,Bv,Gv,Hv,kv,Yv,Fv,Kv,jv,qv,Wv,zv,Jv,Xv,$v,Qv,Zv,eO,tO,rO,nO,oO,iO,aO,uO,sO,cO,lO,pO,_O,EO,TO,SO,fO,dO,AO,vO,OO,mO,hO,NO,RO,yO,PO,MO,gO,LO,IO,CO,xO,bO,UO,DO,VO,wO,BO,GO,HO,kO,YO,FO,KO,jO,qO,WO,zO,JO,XO,$O,QO,ZO,em,tm,rm,nm,om,im,am,um,sm,cm,lm,pm,_m,Em,Tm,Sm,fm,dm,Am,vm,Om,mm,hm,Nm,Rm,ym,Pm,Mm,gm,Lm,Im,Cm,AY,vY,OY,mY,hY,NY,RY,yY,PY,MY,gY,LY,IY,CY,xY,bY,UY,DY,VY,wY,BY,GY,HY,kY,YY,FY,KY,jY,qY,WY,zY,JY,XY,$Y,QY,ZY,e2,t2,r2,n2,o2,i2,a2,u2,s2,c2,l2,p2,_2,E2,T2,S2,f2,d2,A2,v2,O2,m2,h2,N2,R2,y2,P2,M2,g2,L2,I2,C2,x2,b2,U2,D2,V2,w2,B2,G2,H2,k2,Y2,F2,K2,j2,q2,W2,z2,J2,X2,$2,Q2,Z2,eF,tF,rF,nF,oF,iF,aF,uF,sF,cF,lF,pF,_F,EF,TF,SF,fF,dF,AF,vF,OF,mF,hF,NF,RF,yF,PF,MF,gF,LF,IF,CF,xF,bF,UF,DF,VF,wF,BF,xm,bm,Um,Dm,Vm,wm,Bm,Gm,Hm,km,Ym,Fm,Km,jm,qm,Wm,zm,Jm,Xm,$m,Qm,Zm,eh,th,rh,nh,oh,ih,ah,uh,sh,ch,lh,ph,_h,Eh,Th,Sh,fh,dh,Ah,vh,Oh,mh,hh,Nh,Rh,GF,HF,kF,YF,FF,KF,jF,qF,WF,zF,JF,XF,$F,QF,ZF,e3,t3,r3,n3,o3,i3,a3,u3,s3,c3,l3,p3,_3,E3,T3,S3,f3,d3,A3,v3,O3,m3,h3,N3,R3,y3,P3,M3,g3,L3,I3,C3,x3,yh,Ph,Mh,gh,Lh,Ih,Ch,xh,bh,Uh,Dh,b3,U3,D3,V3,w3,B3,G3,H3,k3,Y3,F3,K3,Vh,wh,Bh,Gh,Hh,j3,q3,W3,z3,J3,X3,kh,Yh,Fh,$3,Q3,Z3,eK,Kh,jh,qh,Wh,tK,rK,nK,oK,iK,zh,Jh,Xh,$h,Qh,Zh,eN,aK,uK,sK,cK,lK,pK,_K,EK,tN,rN,nN,oN,iN,TK,SK,fK,dK,AK,vK,aN,uN,sN,cN,lN,pN,_N,EN,TN,SN,fN,dN,AN,vN,ON,mN,hN,NN,RN,yN,PN,OK,mK,hK,NK,RK,yK,PK,MK,gK,LK,IK,CK,xK,bK,UK,DK,VK,wK,BK,GK,HK,kK,MN,gN,LN,IN,CN,YK,FK,KK,jK,qK,WK,xN,bN,zK,JK,XK,UN,DN,$K,QK,ZK,VN,wN,BN,GN,HN,kN,YN,FN,KN,jN,qN,WN,zN,JN,XN,$N,QN,ej,tj,rj,nj,oj,ij,aj,uj,sj,cj,lj,pj,_j,Ej,Tj,Sj,fj,dj,ZN,eR,Aj,vj,Oj,tR=d(()=>{fu();_v="aws.lambda.invoked_arn",Ev="db.system",Tv="db.connection_string",Sv="db.user",fv="db.jdbc.driver_classname",dv="db.name",Av="db.statement",vv="db.operation",Ov="db.mssql.instance_name",mv="db.cassandra.keyspace",hv="db.cassandra.page_size",Nv="db.cassandra.consistency_level",Rv="db.cassandra.table",yv="db.cassandra.idempotence",Pv="db.cassandra.speculative_execution_count",Mv="db.cassandra.coordinator.id",gv="db.cassandra.coordinator.dc",Lv="db.hbase.namespace",Iv="db.redis.database_index",Cv="db.mongodb.collection",xv="db.sql.table",bv="exception.type",Uv="exception.message",Dv="exception.stacktrace",Vv="exception.escaped",wv="faas.trigger",Bv="faas.execution",Gv="faas.document.collection",Hv="faas.document.operation",kv="faas.document.time",Yv="faas.document.name",Fv="faas.time",Kv="faas.cron",jv="faas.coldstart",qv="faas.invoked_name",Wv="faas.invoked_provider",zv="faas.invoked_region",Jv="net.transport",Xv="net.peer.ip",$v="net.peer.port",Qv="net.peer.name",Zv="net.host.ip",eO="net.host.port",tO="net.host.name",rO="net.host.connection.type",nO="net.host.connection.subtype",oO="net.host.carrier.name",iO="net.host.carrier.mcc",aO="net.host.carrier.mnc",uO="net.host.carrier.icc",sO="peer.service",cO="enduser.id",lO="enduser.role",pO="enduser.scope",_O="thread.id",EO="thread.name",TO="code.function",SO="code.namespace",fO="code.filepath",dO="code.lineno",AO="http.method",vO="http.url",OO="http.target",mO="http.host",hO="http.scheme",NO="http.status_code",RO="http.flavor",yO="http.user_agent",PO="http.request_content_length",MO="http.request_content_length_uncompressed",gO="http.response_content_length",LO="http.response_content_length_uncompressed",IO="http.server_name",CO="http.route",xO="http.client_ip",bO="aws.dynamodb.table_names",UO="aws.dynamodb.consumed_capacity",DO="aws.dynamodb.item_collection_metrics",VO="aws.dynamodb.provisioned_read_capacity",wO="aws.dynamodb.provisioned_write_capacity",BO="aws.dynamodb.consistent_read",GO="aws.dynamodb.projection",HO="aws.dynamodb.limit",kO="aws.dynamodb.attributes_to_get",YO="aws.dynamodb.index_name",FO="aws.dynamodb.select",KO="aws.dynamodb.global_secondary_indexes",jO="aws.dynamodb.local_secondary_indexes",qO="aws.dynamodb.exclusive_start_table",WO="aws.dynamodb.table_count",zO="aws.dynamodb.scan_forward",JO="aws.dynamodb.segment",XO="aws.dynamodb.total_segments",$O="aws.dynamodb.count",QO="aws.dynamodb.scanned_count",ZO="aws.dynamodb.attribute_definitions",em="aws.dynamodb.global_secondary_index_updates",tm="messaging.system",rm="messaging.destination",nm="messaging.destination_kind",om="messaging.temp_destination",im="messaging.protocol",am="messaging.protocol_version",um="messaging.url",sm="messaging.message_id",cm="messaging.conversation_id",lm="messaging.message_payload_size_bytes",pm="messaging.message_payload_compressed_size_bytes",_m="messaging.operation",Em="messaging.consumer_id",Tm="messaging.rabbitmq.routing_key",Sm="messaging.kafka.message_key",fm="messaging.kafka.consumer_group",dm="messaging.kafka.client_id",Am="messaging.kafka.partition",vm="messaging.kafka.tombstone",Om="rpc.system",mm="rpc.service",hm="rpc.method",Nm="rpc.grpc.status_code",Rm="rpc.jsonrpc.version",ym="rpc.jsonrpc.request_id",Pm="rpc.jsonrpc.error_code",Mm="rpc.jsonrpc.error_message",gm="message.type",Lm="message.id",Im="message.compressed_size",Cm="message.uncompressed_size",AY=_v,vY=Ev,OY=Tv,mY=Sv,hY=fv,NY=dv,RY=Av,yY=vv,PY=Ov,MY=mv,gY=hv,LY=Nv,IY=Rv,CY=yv,xY=Pv,bY=Mv,UY=gv,DY=Lv,VY=Iv,wY=Cv,BY=xv,GY=bv,HY=Uv,kY=Dv,YY=Vv,FY=wv,KY=Bv,jY=Gv,qY=Hv,WY=kv,zY=Yv,JY=Fv,XY=Kv,$Y=jv,QY=qv,ZY=Wv,e2=zv,t2=Jv,r2=Xv,n2=$v,o2=Qv,i2=Zv,a2=eO,u2=tO,s2=rO,c2=nO,l2=oO,p2=iO,_2=aO,E2=uO,T2=sO,S2=cO,f2=lO,d2=pO,A2=_O,v2=EO,O2=TO,m2=SO,h2=fO,N2=dO,R2=AO,y2=vO,P2=OO,M2=mO,g2=hO,L2=NO,I2=RO,C2=yO,x2=PO,b2=MO,U2=gO,D2=LO,V2=IO,w2=CO,B2=xO,G2=bO,H2=UO,k2=DO,Y2=VO,F2=wO,K2=BO,j2=GO,q2=HO,W2=kO,z2=YO,J2=FO,X2=KO,$2=jO,Q2=qO,Z2=WO,eF=zO,tF=JO,rF=XO,nF=$O,oF=QO,iF=ZO,aF=em,uF=tm,sF=rm,cF=nm,lF=om,pF=im,_F=am,EF=um,TF=sm,SF=cm,fF=lm,dF=pm,AF=_m,vF=Em,OF=Tm,mF=Sm,hF=fm,NF=dm,RF=Am,yF=vm,PF=Om,MF=mm,gF=hm,LF=Nm,IF=Rm,CF=ym,xF=Pm,bF=Mm,UF=gm,DF=Lm,VF=Im,wF=Cm,BF=D([_v,Ev,Tv,Sv,fv,dv,Av,vv,Ov,mv,hv,Nv,Rv,yv,Pv,Mv,gv,Lv,Iv,Cv,xv,bv,Uv,Dv,Vv,wv,Bv,Gv,Hv,kv,Yv,Fv,Kv,jv,qv,Wv,zv,Jv,Xv,$v,Qv,Zv,eO,tO,rO,nO,oO,iO,aO,uO,sO,cO,lO,pO,_O,EO,TO,SO,fO,dO,AO,vO,OO,mO,hO,NO,RO,yO,PO,MO,gO,LO,IO,CO,xO,bO,UO,DO,VO,wO,BO,GO,HO,kO,YO,FO,KO,jO,qO,WO,zO,JO,XO,$O,QO,ZO,em,tm,rm,nm,om,im,am,um,sm,cm,lm,pm,_m,Em,Tm,Sm,fm,dm,Am,vm,Om,mm,hm,Nm,Rm,ym,Pm,Mm,gm,Lm,Im,Cm]),xm="other_sql",bm="mssql",Um="mysql",Dm="oracle",Vm="db2",wm="postgresql",Bm="redshift",Gm="hive",Hm="cloudscape",km="hsqldb",Ym="progress",Fm="maxdb",Km="hanadb",jm="ingres",qm="firstsql",Wm="edb",zm="cache",Jm="adabas",Xm="firebird",$m="derby",Qm="filemaker",Zm="informix",eh="instantdb",th="interbase",rh="mariadb",nh="netezza",oh="pervasive",ih="pointbase",ah="sqlite",uh="sybase",sh="teradata",ch="vertica",lh="h2",ph="coldfusion",_h="cassandra",Eh="hbase",Th="mongodb",Sh="redis",fh="couchbase",dh="couchdb",Ah="cosmosdb",vh="dynamodb",Oh="neo4j",mh="geode",hh="elasticsearch",Nh="memcached",Rh="cockroachdb",GF=xm,HF=bm,kF=Um,YF=Dm,FF=Vm,KF=wm,jF=Bm,qF=Gm,WF=Hm,zF=km,JF=Ym,XF=Fm,$F=Km,QF=jm,ZF=qm,e3=Wm,t3=zm,r3=Jm,n3=Xm,o3=$m,i3=Qm,a3=Zm,u3=eh,s3=th,c3=rh,l3=nh,p3=oh,_3=ih,E3=ah,T3=uh,S3=sh,f3=ch,d3=lh,A3=ph,v3=_h,O3=Eh,m3=Th,h3=Sh,N3=fh,R3=dh,y3=Ah,P3=vh,M3=Oh,g3=mh,L3=hh,I3=Nh,C3=Rh,x3=D([xm,bm,Um,Dm,Vm,wm,Bm,Gm,Hm,km,Ym,Fm,Km,jm,qm,Wm,zm,Jm,Xm,$m,Qm,Zm,eh,th,rh,nh,oh,ih,ah,uh,sh,ch,lh,ph,_h,Eh,Th,Sh,fh,dh,Ah,vh,Oh,mh,hh,Nh,Rh]),yh="all",Ph="each_quorum",Mh="quorum",gh="local_quorum",Lh="one",Ih="two",Ch="three",xh="local_one",bh="any",Uh="serial",Dh="local_serial",b3=yh,U3=Ph,D3=Mh,V3=gh,w3=Lh,B3=Ih,G3=Ch,H3=xh,k3=bh,Y3=Uh,F3=Dh,K3=D([yh,Ph,Mh,gh,Lh,Ih,Ch,xh,bh,Uh,Dh]),Vh="datasource",wh="http",Bh="pubsub",Gh="timer",Hh="other",j3=Vh,q3=wh,W3=Bh,z3=Gh,J3=Hh,X3=D([Vh,wh,Bh,Gh,Hh]),kh="insert",Yh="edit",Fh="delete",$3=kh,Q3=Yh,Z3=Fh,eK=D([kh,Yh,Fh]),Kh="alibaba_cloud",jh="aws",qh="azure",Wh="gcp",tK=Kh,rK=jh,nK=qh,oK=Wh,iK=D([Kh,jh,qh,Wh]),zh="ip_tcp",Jh="ip_udp",Xh="ip",$h="unix",Qh="pipe",Zh="inproc",eN="other",aK=zh,uK=Jh,sK=Xh,cK=$h,lK=Qh,pK=Zh,_K=eN,EK=D([zh,Jh,Xh,$h,Qh,Zh,eN]),tN="wifi",rN="wired",nN="cell",oN="unavailable",iN="unknown",TK=tN,SK=rN,fK=nN,dK=oN,AK=iN,vK=D([tN,rN,nN,oN,iN]),aN="gprs",uN="edge",sN="umts",cN="cdma",lN="evdo_0",pN="evdo_a",_N="cdma2000_1xrtt",EN="hsdpa",TN="hsupa",SN="hspa",fN="iden",dN="evdo_b",AN="lte",vN="ehrpd",ON="hspap",mN="gsm",hN="td_scdma",NN="iwlan",RN="nr",yN="nrnsa",PN="lte_ca",OK=aN,mK=uN,hK=sN,NK=cN,RK=lN,yK=pN,PK=_N,MK=EN,gK=TN,LK=SN,IK=fN,CK=dN,xK=AN,bK=vN,UK=ON,DK=mN,VK=hN,wK=NN,BK=RN,GK=yN,HK=PN,kK=D([aN,uN,sN,cN,lN,pN,_N,EN,TN,SN,fN,dN,AN,vN,ON,mN,hN,NN,RN,yN,PN]),MN="1.0",gN="1.1",LN="2.0",IN="SPDY",CN="QUIC",YK=MN,FK=gN,KK=LN,jK=IN,qK=CN,WK={HTTP_1_0:MN,HTTP_1_1:gN,HTTP_2_0:LN,SPDY:IN,QUIC:CN},xN="queue",bN="topic",zK=xN,JK=bN,XK=D([xN,bN]),UN="receive",DN="process",$K=UN,QK=DN,ZK=D([UN,DN]),VN=0,wN=1,BN=2,GN=3,HN=4,kN=5,YN=6,FN=7,KN=8,jN=9,qN=10,WN=11,zN=12,JN=13,XN=14,$N=15,QN=16,ej=VN,tj=wN,rj=BN,nj=GN,oj=HN,ij=kN,aj=YN,uj=FN,sj=KN,cj=jN,lj=qN,pj=WN,_j=zN,Ej=JN,Tj=XN,Sj=$N,fj=QN,dj={OK:VN,CANCELLED:wN,UNKNOWN:BN,INVALID_ARGUMENT:GN,DEADLINE_EXCEEDED:HN,NOT_FOUND:kN,ALREADY_EXISTS:YN,PERMISSION_DENIED:FN,RESOURCE_EXHAUSTED:KN,FAILED_PRECONDITION:jN,ABORTED:qN,OUT_OF_RANGE:WN,UNIMPLEMENTED:zN,INTERNAL:JN,UNAVAILABLE:XN,DATA_LOSS:$N,UNAUTHENTICATED:QN},ZN="SENT",eR="RECEIVED",Aj=ZN,vj=eR,Oj=D([ZN,eR])});var rR=d(()=>{tR()});var nR,oR,iR,aR,uR,sR,cR,lR,pR,_R,ER,TR,SR,fR,dR,AR,vR,OR,mR,hR,NR,RR,yR,PR,MR,gR,LR,IR,CR,xR,bR,UR,DR,VR,wR,BR,GR,HR,kR,YR,FR,KR,jR,qR,WR,zR,JR,XR,$R,QR,ZR,ey,ty,ry,ny,oy,iy,ay,uy,sy,cy,ly,py,_y,Ey,Ty,Sy,fy,dy,Ay,vy,Oy,my,hy,Ny,Ry,yy,Py,My,gy,Ly,mj,hj,Nj,Rj,yj,Pj,Mj,gj,Lj,Ij,Cj,xj,bj,Uj,Dj,Vj,wj,Bj,Gj,Hj,kj,Yj,Fj,Kj,jj,qj,Wj,zj,Jj,Xj,$j,Qj,Zj,eq,tq,rq,nq,oq,iq,aq,uq,sq,cq,lq,pq,_q,Eq,Tq,Sq,fq,dq,Aq,vq,Oq,mq,hq,Nq,Rq,yq,Pq,Mq,gq,Lq,Iq,Cq,xq,bq,Uq,Dq,Vq,wq,Bq,Gq,Hq,kq,Yq,Fq,Kq,jq,qq,Wq,zq,Iy,Cy,xy,by,Jq,Xq,$q,Qq,Zq,Uy,Dy,Vy,wy,By,Gy,Hy,ky,Yy,Fy,Ky,jy,qy,Wy,zy,Jy,Xy,e4,t4,r4,n4,o4,i4,a4,u4,s4,c4,l4,p4,_4,E4,T4,S4,f4,d4,$y,Qy,A4,v4,O4,Zy,eP,tP,rP,nP,oP,iP,m4,h4,N4,R4,y4,P4,M4,g4,aP,uP,sP,cP,lP,pP,_P,EP,TP,SP,fP,L4,I4,C4,x4,b4,U4,D4,V4,w4,B4,G4,H4,dP,AP,vP,OP,mP,hP,NP,RP,yP,PP,k4,Y4,F4,K4,j4,q4,W4,z4,J4,X4,$4,MP=d(()=>{fu();nR="cloud.provider",oR="cloud.account.id",iR="cloud.region",aR="cloud.availability_zone",uR="cloud.platform",sR="aws.ecs.container.arn",cR="aws.ecs.cluster.arn",lR="aws.ecs.launchtype",pR="aws.ecs.task.arn",_R="aws.ecs.task.family",ER="aws.ecs.task.revision",TR="aws.eks.cluster.arn",SR="aws.log.group.names",fR="aws.log.group.arns",dR="aws.log.stream.names",AR="aws.log.stream.arns",vR="container.name",OR="container.id",mR="container.runtime",hR="container.image.name",NR="container.image.tag",RR="deployment.environment",yR="device.id",PR="device.model.identifier",MR="device.model.name",gR="faas.name",LR="faas.id",IR="faas.version",CR="faas.instance",xR="faas.max_memory",bR="host.id",UR="host.name",DR="host.type",VR="host.arch",wR="host.image.name",BR="host.image.id",GR="host.image.version",HR="k8s.cluster.name",kR="k8s.node.name",YR="k8s.node.uid",FR="k8s.namespace.name",KR="k8s.pod.uid",jR="k8s.pod.name",qR="k8s.container.name",WR="k8s.replicaset.uid",zR="k8s.replicaset.name",JR="k8s.deployment.uid",XR="k8s.deployment.name",$R="k8s.statefulset.uid",QR="k8s.statefulset.name",ZR="k8s.daemonset.uid",ey="k8s.daemonset.name",ty="k8s.job.uid",ry="k8s.job.name",ny="k8s.cronjob.uid",oy="k8s.cronjob.name",iy="os.type",ay="os.description",uy="os.name",sy="os.version",cy="process.pid",ly="process.executable.name",py="process.executable.path",_y="process.command",Ey="process.command_line",Ty="process.command_args",Sy="process.owner",fy="process.runtime.name",dy="process.runtime.version",Ay="process.runtime.description",vy="service.name",Oy="service.namespace",my="service.instance.id",hy="service.version",Ny="telemetry.sdk.name",Ry="telemetry.sdk.language",yy="telemetry.sdk.version",Py="telemetry.auto.version",My="webengine.name",gy="webengine.version",Ly="webengine.description",mj=nR,hj=oR,Nj=iR,Rj=aR,yj=uR,Pj=sR,Mj=cR,gj=lR,Lj=pR,Ij=_R,Cj=ER,xj=TR,bj=SR,Uj=fR,Dj=dR,Vj=AR,wj=vR,Bj=OR,Gj=mR,Hj=hR,kj=NR,Yj=RR,Fj=yR,Kj=PR,jj=MR,qj=gR,Wj=LR,zj=IR,Jj=CR,Xj=xR,$j=bR,Qj=UR,Zj=DR,eq=VR,tq=wR,rq=BR,nq=GR,oq=HR,iq=kR,aq=YR,uq=FR,sq=KR,cq=jR,lq=qR,pq=WR,_q=zR,Eq=JR,Tq=XR,Sq=$R,fq=QR,dq=ZR,Aq=ey,vq=ty,Oq=ry,mq=ny,hq=oy,Nq=iy,Rq=ay,yq=uy,Pq=sy,Mq=cy,gq=ly,Lq=py,Iq=_y,Cq=Ey,xq=Ty,bq=Sy,Uq=fy,Dq=dy,Vq=Ay,wq=vy,Bq=Oy,Gq=my,Hq=hy,kq=Ny,Yq=Ry,Fq=yy,Kq=Py,jq=My,qq=gy,Wq=Ly,zq=D([nR,oR,iR,aR,uR,sR,cR,lR,pR,_R,ER,TR,SR,fR,dR,AR,vR,OR,mR,hR,NR,RR,yR,PR,MR,gR,LR,IR,CR,xR,bR,UR,DR,VR,wR,BR,GR,HR,kR,YR,FR,KR,jR,qR,WR,zR,JR,XR,$R,QR,ZR,ey,ty,ry,ny,oy,iy,ay,uy,sy,cy,ly,py,_y,Ey,Ty,Sy,fy,dy,Ay,vy,Oy,my,hy,Ny,Ry,yy,Py,My,gy,Ly]),Iy="alibaba_cloud",Cy="aws",xy="azure",by="gcp",Jq=Iy,Xq=Cy,$q=xy,Qq=by,Zq=D([Iy,Cy,xy,by]),Uy="alibaba_cloud_ecs",Dy="alibaba_cloud_fc",Vy="aws_ec2",wy="aws_ecs",By="aws_eks",Gy="aws_lambda",Hy="aws_elastic_beanstalk",ky="azure_vm",Yy="azure_container_instances",Fy="azure_aks",Ky="azure_functions",jy="azure_app_service",qy="gcp_compute_engine",Wy="gcp_cloud_run",zy="gcp_kubernetes_engine",Jy="gcp_cloud_functions",Xy="gcp_app_engine",e4=Uy,t4=Dy,r4=Vy,n4=wy,o4=By,i4=Gy,a4=Hy,u4=ky,s4=Yy,c4=Fy,l4=Ky,p4=jy,_4=qy,E4=Wy,T4=zy,S4=Jy,f4=Xy,d4=D([Uy,Dy,Vy,wy,By,Gy,Hy,ky,Yy,Fy,Ky,jy,qy,Wy,zy,Jy,Xy]),$y="ec2",Qy="fargate",A4=$y,v4=Qy,O4=D([$y,Qy]),Zy="amd64",eP="arm32",tP="arm64",rP="ia64",nP="ppc32",oP="ppc64",iP="x86",m4=Zy,h4=eP,N4=tP,R4=rP,y4=nP,P4=oP,M4=iP,g4=D([Zy,eP,tP,rP,nP,oP,iP]),aP="windows",uP="linux",sP="darwin",cP="freebsd",lP="netbsd",pP="openbsd",_P="dragonflybsd",EP="hpux",TP="aix",SP="solaris",fP="z_os",L4=aP,I4=uP,C4=sP,x4=cP,b4=lP,U4=pP,D4=_P,V4=EP,w4=TP,B4=SP,G4=fP,H4=D([aP,uP,sP,cP,lP,pP,_P,EP,TP,SP,fP]),dP="cpp",AP="dotnet",vP="erlang",OP="go",mP="java",hP="nodejs",NP="php",RP="python",yP="ruby",PP="webjs",k4=dP,Y4=AP,F4=vP,K4=OP,j4=mP,q4=hP,W4=NP,z4=RP,J4=yP,X4=PP,$4=D([dP,AP,vP,OP,mP,hP,NP,RP,yP,PP])});var gP=d(()=>{MP()});var Q4,Z4,eW,tW,rW,nW,oW,iW,aW,uW,sW,cW,lW,pW,_W,EW,TW,SW,fW,dW,AW,vW,OW,mW,hW,NW,RW,yW,PW,MW,gW,LW,IW,CW,xW,bW,UW,DW,VW,wW,BW,GW,HW,kW,YW,FW,KW,jW,qW,WW,zW,JW,XW,$W,QW,ZW,e6,t6,r6,n6,o6,i6,a6,u6,s6,c6,l6,p6,_6,E6,T6,S6,f6,d6,A6,v6,O6,m6,h6,N6,R6,y6,P6,M6,g6,L6,I6,C6,x6,b6,U6,D6,V6,w6,B6,G6,H6,k6,Y6,F6,K6,j6,q6,W6,z6,J6,X6,$6,Q6,Z6,LP=d(()=>{Q4="aspnetcore.rate_limiting.result",Z4="acquired",eW="endpoint_limiter",tW="global_limiter",rW="request_canceled",nW="telemetry.sdk.language",oW="cpp",iW="dotnet",aW="erlang",uW="go",sW="java",cW="nodejs",lW="php",pW="python",_W="ruby",EW="rust",TW="swift",SW="webjs",fW="telemetry.sdk.name",dW="telemetry.sdk.version",AW="aspnetcore.diagnostics.handler.type",vW="aspnetcore.diagnostics.exception.result",OW="aborted",mW="handled",hW="skipped",NW="unhandled",RW="aspnetcore.rate_limiting.policy",yW="aspnetcore.request.is_unhandled",PW="aspnetcore.routing.is_fallback",MW="aspnetcore.routing.match_status",gW="failure",LW="success",IW="client.address",CW="client.port",xW="error.type",bW="_OTHER",UW="exception.escaped",DW="exception.message",VW="exception.stacktrace",wW="exception.type",BW=function(o){return"http.request.header."+o},GW="http.request.method",HW="_OTHER",kW="CONNECT",YW="DELETE",FW="GET",KW="HEAD",jW="OPTIONS",qW="PATCH",WW="POST",zW="PUT",JW="TRACE",XW="http.request.method_original",$W="http.request.resend_count",QW=function(o){return"http.response.header."+o},ZW="http.response.status_code",e6="http.route",t6="jvm.gc.action",r6="jvm.gc.name",n6="jvm.memory.pool.name",o6="jvm.memory.type",i6="heap",a6="non_heap",u6="jvm.thread.daemon",s6="jvm.thread.state",c6="blocked",l6="new",p6="runnable",_6="terminated",E6="timed_waiting",T6="waiting",S6="network.local.address",f6="network.local.port",d6="network.peer.address",A6="network.peer.port",v6="network.protocol.name",O6="network.protocol.version",m6="network.transport",h6="pipe",N6="quic",R6="tcp",y6="udp",P6="unix",M6="network.type",g6="ipv4",L6="ipv6",I6="otel.scope.name",C6="otel.scope.version",x6="otel.status_code",b6="ERROR",U6="OK",D6="otel.status_description",V6="server.address",w6="server.port",B6="service.name",G6="service.version",H6="signalr.connection.status",k6="app_shutdown",Y6="normal_closure",F6="timeout",K6="signalr.transport",j6="long_polling",q6="server_sent_events",W6="web_sockets",z6="url.fragment",J6="url.full",X6="url.path",$6="url.query",Q6="url.scheme",Z6="user_agent.original"});var e8,t8,r8,n8,o8,i8,a8,u8,s8,c8,l8,p8,_8,E8,T8,S8,f8,d8,A8,v8,O8,m8,h8,N8,R8,y8,P8,M8,g8,L8,I8,IP=d(()=>{e8="aspnetcore.diagnostics.exceptions",t8="aspnetcore.rate_limiting.active_request_leases",r8="aspnetcore.rate_limiting.queued_requests",n8="aspnetcore.rate_limiting.request.time_in_queue",o8="aspnetcore.rate_limiting.request_lease.duration",i8="aspnetcore.rate_limiting.requests",a8="aspnetcore.routing.match_attempts",u8="http.client.request.duration",s8="http.server.request.duration",c8="jvm.class.count",l8="jvm.class.loaded",p8="jvm.class.unloaded",_8="jvm.cpu.count",E8="jvm.cpu.recent_utilization",T8="jvm.cpu.time",S8="jvm.gc.duration",f8="jvm.memory.committed",d8="jvm.memory.limit",A8="jvm.memory.used",v8="jvm.memory.used_after_last_gc",O8="jvm.thread.count",m8="kestrel.active_connections",h8="kestrel.active_tls_handshakes",N8="kestrel.connection.duration",R8="kestrel.queued_connections",y8="kestrel.queued_requests",P8="kestrel.rejected_connections",M8="kestrel.tls_handshake.duration",g8="kestrel.upgraded_connections",L8="signalr.server.active_connections",I8="signalr.server.connection.duration"});var CP={};At(CP,{ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:()=>OW,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:()=>mW,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:()=>hW,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:()=>NW,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:()=>Z4,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:()=>eW,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:()=>tW,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:()=>rW,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:()=>gW,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:()=>LW,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:()=>vW,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:()=>AW,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:()=>RW,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:()=>Q4,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:()=>yW,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:()=>PW,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:()=>MW,ATTR_CLIENT_ADDRESS:()=>IW,ATTR_CLIENT_PORT:()=>CW,ATTR_ERROR_TYPE:()=>xW,ATTR_EXCEPTION_ESCAPED:()=>UW,ATTR_EXCEPTION_MESSAGE:()=>DW,ATTR_EXCEPTION_STACKTRACE:()=>VW,ATTR_EXCEPTION_TYPE:()=>wW,ATTR_HTTP_REQUEST_HEADER:()=>BW,ATTR_HTTP_REQUEST_METHOD:()=>GW,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:()=>XW,ATTR_HTTP_REQUEST_RESEND_COUNT:()=>$W,ATTR_HTTP_RESPONSE_HEADER:()=>QW,ATTR_HTTP_RESPONSE_STATUS_CODE:()=>ZW,ATTR_HTTP_ROUTE:()=>e6,ATTR_JVM_GC_ACTION:()=>t6,ATTR_JVM_GC_NAME:()=>r6,ATTR_JVM_MEMORY_POOL_NAME:()=>n6,ATTR_JVM_MEMORY_TYPE:()=>o6,ATTR_JVM_THREAD_DAEMON:()=>u6,ATTR_JVM_THREAD_STATE:()=>s6,ATTR_NETWORK_LOCAL_ADDRESS:()=>S6,ATTR_NETWORK_LOCAL_PORT:()=>f6,ATTR_NETWORK_PEER_ADDRESS:()=>d6,ATTR_NETWORK_PEER_PORT:()=>A6,ATTR_NETWORK_PROTOCOL_NAME:()=>v6,ATTR_NETWORK_PROTOCOL_VERSION:()=>O6,ATTR_NETWORK_TRANSPORT:()=>m6,ATTR_NETWORK_TYPE:()=>M6,ATTR_OTEL_SCOPE_NAME:()=>I6,ATTR_OTEL_SCOPE_VERSION:()=>C6,ATTR_OTEL_STATUS_CODE:()=>x6,ATTR_OTEL_STATUS_DESCRIPTION:()=>D6,ATTR_SERVER_ADDRESS:()=>V6,ATTR_SERVER_PORT:()=>w6,ATTR_SERVICE_NAME:()=>B6,ATTR_SERVICE_VERSION:()=>G6,ATTR_SIGNALR_CONNECTION_STATUS:()=>H6,ATTR_SIGNALR_TRANSPORT:()=>K6,ATTR_TELEMETRY_SDK_LANGUAGE:()=>nW,ATTR_TELEMETRY_SDK_NAME:()=>fW,ATTR_TELEMETRY_SDK_VERSION:()=>dW,ATTR_URL_FRAGMENT:()=>z6,ATTR_URL_FULL:()=>J6,ATTR_URL_PATH:()=>X6,ATTR_URL_QUERY:()=>$6,ATTR_URL_SCHEME:()=>Q6,ATTR_USER_AGENT_ORIGINAL:()=>Z6,AWSECSLAUNCHTYPEVALUES_EC2:()=>A4,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>v4,AwsEcsLaunchtypeValues:()=>O4,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>e4,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>t4,CLOUDPLATFORMVALUES_AWS_EC2:()=>r4,CLOUDPLATFORMVALUES_AWS_ECS:()=>n4,CLOUDPLATFORMVALUES_AWS_EKS:()=>o4,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>a4,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>i4,CLOUDPLATFORMVALUES_AZURE_AKS:()=>c4,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>p4,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>s4,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>l4,CLOUDPLATFORMVALUES_AZURE_VM:()=>u4,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>f4,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>S4,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>E4,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>_4,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>T4,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>Jq,CLOUDPROVIDERVALUES_AWS:()=>Xq,CLOUDPROVIDERVALUES_AZURE:()=>$q,CLOUDPROVIDERVALUES_GCP:()=>Qq,CloudPlatformValues:()=>d4,CloudProviderValues:()=>Zq,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>b3,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>k3,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>U3,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>H3,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>V3,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>F3,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>w3,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>D3,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>Y3,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>G3,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>B3,DBSYSTEMVALUES_ADABAS:()=>r3,DBSYSTEMVALUES_CACHE:()=>t3,DBSYSTEMVALUES_CASSANDRA:()=>v3,DBSYSTEMVALUES_CLOUDSCAPE:()=>WF,DBSYSTEMVALUES_COCKROACHDB:()=>C3,DBSYSTEMVALUES_COLDFUSION:()=>A3,DBSYSTEMVALUES_COSMOSDB:()=>y3,DBSYSTEMVALUES_COUCHBASE:()=>N3,DBSYSTEMVALUES_COUCHDB:()=>R3,DBSYSTEMVALUES_DB2:()=>FF,DBSYSTEMVALUES_DERBY:()=>o3,DBSYSTEMVALUES_DYNAMODB:()=>P3,DBSYSTEMVALUES_EDB:()=>e3,DBSYSTEMVALUES_ELASTICSEARCH:()=>L3,DBSYSTEMVALUES_FILEMAKER:()=>i3,DBSYSTEMVALUES_FIREBIRD:()=>n3,DBSYSTEMVALUES_FIRSTSQL:()=>ZF,DBSYSTEMVALUES_GEODE:()=>g3,DBSYSTEMVALUES_H2:()=>d3,DBSYSTEMVALUES_HANADB:()=>$F,DBSYSTEMVALUES_HBASE:()=>O3,DBSYSTEMVALUES_HIVE:()=>qF,DBSYSTEMVALUES_HSQLDB:()=>zF,DBSYSTEMVALUES_INFORMIX:()=>a3,DBSYSTEMVALUES_INGRES:()=>QF,DBSYSTEMVALUES_INSTANTDB:()=>u3,DBSYSTEMVALUES_INTERBASE:()=>s3,DBSYSTEMVALUES_MARIADB:()=>c3,DBSYSTEMVALUES_MAXDB:()=>XF,DBSYSTEMVALUES_MEMCACHED:()=>I3,DBSYSTEMVALUES_MONGODB:()=>m3,DBSYSTEMVALUES_MSSQL:()=>HF,DBSYSTEMVALUES_MYSQL:()=>kF,DBSYSTEMVALUES_NEO4J:()=>M3,DBSYSTEMVALUES_NETEZZA:()=>l3,DBSYSTEMVALUES_ORACLE:()=>YF,DBSYSTEMVALUES_OTHER_SQL:()=>GF,DBSYSTEMVALUES_PERVASIVE:()=>p3,DBSYSTEMVALUES_POINTBASE:()=>_3,DBSYSTEMVALUES_POSTGRESQL:()=>KF,DBSYSTEMVALUES_PROGRESS:()=>JF,DBSYSTEMVALUES_REDIS:()=>h3,DBSYSTEMVALUES_REDSHIFT:()=>jF,DBSYSTEMVALUES_SQLITE:()=>E3,DBSYSTEMVALUES_SYBASE:()=>T3,DBSYSTEMVALUES_TERADATA:()=>S3,DBSYSTEMVALUES_VERTICA:()=>f3,DbCassandraConsistencyLevelValues:()=>K3,DbSystemValues:()=>x3,ERROR_TYPE_VALUE_OTHER:()=>bW,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>Z3,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>Q3,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>$3,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>tK,FAASINVOKEDPROVIDERVALUES_AWS:()=>rK,FAASINVOKEDPROVIDERVALUES_AZURE:()=>nK,FAASINVOKEDPROVIDERVALUES_GCP:()=>oK,FAASTRIGGERVALUES_DATASOURCE:()=>j3,FAASTRIGGERVALUES_HTTP:()=>q3,FAASTRIGGERVALUES_OTHER:()=>J3,FAASTRIGGERVALUES_PUBSUB:()=>W3,FAASTRIGGERVALUES_TIMER:()=>z3,FaasDocumentOperationValues:()=>eK,FaasInvokedProviderValues:()=>iK,FaasTriggerValues:()=>X3,HOSTARCHVALUES_AMD64:()=>m4,HOSTARCHVALUES_ARM32:()=>h4,HOSTARCHVALUES_ARM64:()=>N4,HOSTARCHVALUES_IA64:()=>R4,HOSTARCHVALUES_PPC32:()=>y4,HOSTARCHVALUES_PPC64:()=>P4,HOSTARCHVALUES_X86:()=>M4,HTTPFLAVORVALUES_HTTP_1_0:()=>YK,HTTPFLAVORVALUES_HTTP_1_1:()=>FK,HTTPFLAVORVALUES_HTTP_2_0:()=>KK,HTTPFLAVORVALUES_QUIC:()=>qK,HTTPFLAVORVALUES_SPDY:()=>jK,HTTP_REQUEST_METHOD_VALUE_CONNECT:()=>kW,HTTP_REQUEST_METHOD_VALUE_DELETE:()=>YW,HTTP_REQUEST_METHOD_VALUE_GET:()=>FW,HTTP_REQUEST_METHOD_VALUE_HEAD:()=>KW,HTTP_REQUEST_METHOD_VALUE_OPTIONS:()=>jW,HTTP_REQUEST_METHOD_VALUE_OTHER:()=>HW,HTTP_REQUEST_METHOD_VALUE_PATCH:()=>qW,HTTP_REQUEST_METHOD_VALUE_POST:()=>WW,HTTP_REQUEST_METHOD_VALUE_PUT:()=>zW,HTTP_REQUEST_METHOD_VALUE_TRACE:()=>JW,HostArchValues:()=>g4,HttpFlavorValues:()=>WK,JVM_MEMORY_TYPE_VALUE_HEAP:()=>i6,JVM_MEMORY_TYPE_VALUE_NON_HEAP:()=>a6,JVM_THREAD_STATE_VALUE_BLOCKED:()=>c6,JVM_THREAD_STATE_VALUE_NEW:()=>l6,JVM_THREAD_STATE_VALUE_RUNNABLE:()=>p6,JVM_THREAD_STATE_VALUE_TERMINATED:()=>_6,JVM_THREAD_STATE_VALUE_TIMED_WAITING:()=>E6,JVM_THREAD_STATE_VALUE_WAITING:()=>T6,MESSAGETYPEVALUES_RECEIVED:()=>vj,MESSAGETYPEVALUES_SENT:()=>Aj,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>zK,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>JK,MESSAGINGOPERATIONVALUES_PROCESS:()=>QK,MESSAGINGOPERATIONVALUES_RECEIVE:()=>$K,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:()=>e8,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:()=>t8,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:()=>r8,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:()=>i8,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:()=>o8,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:()=>n8,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:()=>a8,METRIC_HTTP_CLIENT_REQUEST_DURATION:()=>u8,METRIC_HTTP_SERVER_REQUEST_DURATION:()=>s8,METRIC_JVM_CLASS_COUNT:()=>c8,METRIC_JVM_CLASS_LOADED:()=>l8,METRIC_JVM_CLASS_UNLOADED:()=>p8,METRIC_JVM_CPU_COUNT:()=>_8,METRIC_JVM_CPU_RECENT_UTILIZATION:()=>E8,METRIC_JVM_CPU_TIME:()=>T8,METRIC_JVM_GC_DURATION:()=>S8,METRIC_JVM_MEMORY_COMMITTED:()=>f8,METRIC_JVM_MEMORY_LIMIT:()=>d8,METRIC_JVM_MEMORY_USED:()=>A8,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:()=>v8,METRIC_JVM_THREAD_COUNT:()=>O8,METRIC_KESTREL_ACTIVE_CONNECTIONS:()=>m8,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:()=>h8,METRIC_KESTREL_CONNECTION_DURATION:()=>N8,METRIC_KESTREL_QUEUED_CONNECTIONS:()=>R8,METRIC_KESTREL_QUEUED_REQUESTS:()=>y8,METRIC_KESTREL_REJECTED_CONNECTIONS:()=>P8,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:()=>M8,METRIC_KESTREL_UPGRADED_CONNECTIONS:()=>g8,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:()=>L8,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:()=>I8,MessageTypeValues:()=>Oj,MessagingDestinationKindValues:()=>XK,MessagingOperationValues:()=>ZK,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>NK,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>PK,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>mK,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>bK,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>RK,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>yK,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>CK,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>OK,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>DK,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>MK,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>LK,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>UK,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>gK,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>IK,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>wK,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>xK,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>HK,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>BK,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>GK,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>VK,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>hK,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>fK,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>dK,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>AK,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>TK,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>SK,NETTRANSPORTVALUES_INPROC:()=>pK,NETTRANSPORTVALUES_IP:()=>sK,NETTRANSPORTVALUES_IP_TCP:()=>aK,NETTRANSPORTVALUES_IP_UDP:()=>uK,NETTRANSPORTVALUES_OTHER:()=>_K,NETTRANSPORTVALUES_PIPE:()=>lK,NETTRANSPORTVALUES_UNIX:()=>cK,NETWORK_TRANSPORT_VALUE_PIPE:()=>h6,NETWORK_TRANSPORT_VALUE_QUIC:()=>N6,NETWORK_TRANSPORT_VALUE_TCP:()=>R6,NETWORK_TRANSPORT_VALUE_UDP:()=>y6,NETWORK_TRANSPORT_VALUE_UNIX:()=>P6,NETWORK_TYPE_VALUE_IPV4:()=>g6,NETWORK_TYPE_VALUE_IPV6:()=>L6,NetHostConnectionSubtypeValues:()=>kK,NetHostConnectionTypeValues:()=>vK,NetTransportValues:()=>EK,OSTYPEVALUES_AIX:()=>w4,OSTYPEVALUES_DARWIN:()=>C4,OSTYPEVALUES_DRAGONFLYBSD:()=>D4,OSTYPEVALUES_FREEBSD:()=>x4,OSTYPEVALUES_HPUX:()=>V4,OSTYPEVALUES_LINUX:()=>I4,OSTYPEVALUES_NETBSD:()=>b4,OSTYPEVALUES_OPENBSD:()=>U4,OSTYPEVALUES_SOLARIS:()=>B4,OSTYPEVALUES_WINDOWS:()=>L4,OSTYPEVALUES_Z_OS:()=>G4,OTEL_STATUS_CODE_VALUE_ERROR:()=>b6,OTEL_STATUS_CODE_VALUE_OK:()=>U6,OsTypeValues:()=>H4,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>lj,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>aj,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>tj,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>Sj,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>oj,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>cj,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>Ej,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>nj,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>ij,RPCGRPCSTATUSCODEVALUES_OK:()=>ej,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>pj,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>uj,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>sj,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>fj,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>Tj,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>_j,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>rj,RpcGrpcStatusCodeValues:()=>dj,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>W2,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>iF,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>K2,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>H2,SEMATTRS_AWS_DYNAMODB_COUNT:()=>nF,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>Q2,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>X2,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>aF,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>z2,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>k2,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>q2,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>$2,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>j2,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>Y2,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>F2,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>oF,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>eF,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>tF,SEMATTRS_AWS_DYNAMODB_SELECT:()=>J2,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>Z2,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>G2,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>rF,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>AY,SEMATTRS_CODE_FILEPATH:()=>h2,SEMATTRS_CODE_FUNCTION:()=>O2,SEMATTRS_CODE_LINENO:()=>N2,SEMATTRS_CODE_NAMESPACE:()=>m2,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>LY,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>UY,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>bY,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>CY,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>MY,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>gY,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>xY,SEMATTRS_DB_CASSANDRA_TABLE:()=>IY,SEMATTRS_DB_CONNECTION_STRING:()=>OY,SEMATTRS_DB_HBASE_NAMESPACE:()=>DY,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>hY,SEMATTRS_DB_MONGODB_COLLECTION:()=>wY,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>PY,SEMATTRS_DB_NAME:()=>NY,SEMATTRS_DB_OPERATION:()=>yY,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>VY,SEMATTRS_DB_SQL_TABLE:()=>BY,SEMATTRS_DB_STATEMENT:()=>RY,SEMATTRS_DB_SYSTEM:()=>vY,SEMATTRS_DB_USER:()=>mY,SEMATTRS_ENDUSER_ID:()=>S2,SEMATTRS_ENDUSER_ROLE:()=>f2,SEMATTRS_ENDUSER_SCOPE:()=>d2,SEMATTRS_EXCEPTION_ESCAPED:()=>YY,SEMATTRS_EXCEPTION_MESSAGE:()=>HY,SEMATTRS_EXCEPTION_STACKTRACE:()=>kY,SEMATTRS_EXCEPTION_TYPE:()=>GY,SEMATTRS_FAAS_COLDSTART:()=>$Y,SEMATTRS_FAAS_CRON:()=>XY,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>jY,SEMATTRS_FAAS_DOCUMENT_NAME:()=>zY,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>qY,SEMATTRS_FAAS_DOCUMENT_TIME:()=>WY,SEMATTRS_FAAS_EXECUTION:()=>KY,SEMATTRS_FAAS_INVOKED_NAME:()=>QY,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>ZY,SEMATTRS_FAAS_INVOKED_REGION:()=>e2,SEMATTRS_FAAS_TIME:()=>JY,SEMATTRS_FAAS_TRIGGER:()=>FY,SEMATTRS_HTTP_CLIENT_IP:()=>B2,SEMATTRS_HTTP_FLAVOR:()=>I2,SEMATTRS_HTTP_HOST:()=>M2,SEMATTRS_HTTP_METHOD:()=>R2,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>x2,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>b2,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>U2,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>D2,SEMATTRS_HTTP_ROUTE:()=>w2,SEMATTRS_HTTP_SCHEME:()=>g2,SEMATTRS_HTTP_SERVER_NAME:()=>V2,SEMATTRS_HTTP_STATUS_CODE:()=>L2,SEMATTRS_HTTP_TARGET:()=>P2,SEMATTRS_HTTP_URL:()=>y2,SEMATTRS_HTTP_USER_AGENT:()=>C2,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>VF,SEMATTRS_MESSAGE_ID:()=>DF,SEMATTRS_MESSAGE_TYPE:()=>UF,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>wF,SEMATTRS_MESSAGING_CONSUMER_ID:()=>vF,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>SF,SEMATTRS_MESSAGING_DESTINATION:()=>sF,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>cF,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>NF,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>hF,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>mF,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>RF,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>yF,SEMATTRS_MESSAGING_MESSAGE_ID:()=>TF,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>dF,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>fF,SEMATTRS_MESSAGING_OPERATION:()=>AF,SEMATTRS_MESSAGING_PROTOCOL:()=>pF,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>_F,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>OF,SEMATTRS_MESSAGING_SYSTEM:()=>uF,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>lF,SEMATTRS_MESSAGING_URL:()=>EF,SEMATTRS_NET_HOST_CARRIER_ICC:()=>E2,SEMATTRS_NET_HOST_CARRIER_MCC:()=>p2,SEMATTRS_NET_HOST_CARRIER_MNC:()=>_2,SEMATTRS_NET_HOST_CARRIER_NAME:()=>l2,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>c2,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>s2,SEMATTRS_NET_HOST_IP:()=>i2,SEMATTRS_NET_HOST_NAME:()=>u2,SEMATTRS_NET_HOST_PORT:()=>a2,SEMATTRS_NET_PEER_IP:()=>r2,SEMATTRS_NET_PEER_NAME:()=>o2,SEMATTRS_NET_PEER_PORT:()=>n2,SEMATTRS_NET_TRANSPORT:()=>t2,SEMATTRS_PEER_SERVICE:()=>T2,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>LF,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>xF,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>bF,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>CF,SEMATTRS_RPC_JSONRPC_VERSION:()=>IF,SEMATTRS_RPC_METHOD:()=>gF,SEMATTRS_RPC_SERVICE:()=>MF,SEMATTRS_RPC_SYSTEM:()=>PF,SEMATTRS_THREAD_ID:()=>A2,SEMATTRS_THREAD_NAME:()=>v2,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>Mj,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>Pj,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>gj,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>Lj,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>Ij,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>Cj,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>xj,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>Uj,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>bj,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>Vj,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>Dj,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>hj,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>Rj,SEMRESATTRS_CLOUD_PLATFORM:()=>yj,SEMRESATTRS_CLOUD_PROVIDER:()=>mj,SEMRESATTRS_CLOUD_REGION:()=>Nj,SEMRESATTRS_CONTAINER_ID:()=>Bj,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>Hj,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>kj,SEMRESATTRS_CONTAINER_NAME:()=>wj,SEMRESATTRS_CONTAINER_RUNTIME:()=>Gj,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>Yj,SEMRESATTRS_DEVICE_ID:()=>Fj,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>Kj,SEMRESATTRS_DEVICE_MODEL_NAME:()=>jj,SEMRESATTRS_FAAS_ID:()=>Wj,SEMRESATTRS_FAAS_INSTANCE:()=>Jj,SEMRESATTRS_FAAS_MAX_MEMORY:()=>Xj,SEMRESATTRS_FAAS_NAME:()=>qj,SEMRESATTRS_FAAS_VERSION:()=>zj,SEMRESATTRS_HOST_ARCH:()=>eq,SEMRESATTRS_HOST_ID:()=>$j,SEMRESATTRS_HOST_IMAGE_ID:()=>rq,SEMRESATTRS_HOST_IMAGE_NAME:()=>tq,SEMRESATTRS_HOST_IMAGE_VERSION:()=>nq,SEMRESATTRS_HOST_NAME:()=>Qj,SEMRESATTRS_HOST_TYPE:()=>Zj,SEMRESATTRS_K8S_CLUSTER_NAME:()=>oq,SEMRESATTRS_K8S_CONTAINER_NAME:()=>lq,SEMRESATTRS_K8S_CRONJOB_NAME:()=>hq,SEMRESATTRS_K8S_CRONJOB_UID:()=>mq,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>Aq,SEMRESATTRS_K8S_DAEMONSET_UID:()=>dq,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>Tq,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>Eq,SEMRESATTRS_K8S_JOB_NAME:()=>Oq,SEMRESATTRS_K8S_JOB_UID:()=>vq,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>uq,SEMRESATTRS_K8S_NODE_NAME:()=>iq,SEMRESATTRS_K8S_NODE_UID:()=>aq,SEMRESATTRS_K8S_POD_NAME:()=>cq,SEMRESATTRS_K8S_POD_UID:()=>sq,SEMRESATTRS_K8S_REPLICASET_NAME:()=>_q,SEMRESATTRS_K8S_REPLICASET_UID:()=>pq,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>fq,SEMRESATTRS_K8S_STATEFULSET_UID:()=>Sq,SEMRESATTRS_OS_DESCRIPTION:()=>Rq,SEMRESATTRS_OS_NAME:()=>yq,SEMRESATTRS_OS_TYPE:()=>Nq,SEMRESATTRS_OS_VERSION:()=>Pq,SEMRESATTRS_PROCESS_COMMAND:()=>Iq,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>xq,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>Cq,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>gq,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>Lq,SEMRESATTRS_PROCESS_OWNER:()=>bq,SEMRESATTRS_PROCESS_PID:()=>Mq,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>Vq,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>Uq,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>Dq,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>Gq,SEMRESATTRS_SERVICE_NAME:()=>wq,SEMRESATTRS_SERVICE_NAMESPACE:()=>Bq,SEMRESATTRS_SERVICE_VERSION:()=>Hq,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>Kq,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>Yq,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>kq,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>Fq,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>Wq,SEMRESATTRS_WEBENGINE_NAME:()=>jq,SEMRESATTRS_WEBENGINE_VERSION:()=>qq,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:()=>k6,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:()=>Y6,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:()=>F6,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:()=>j6,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:()=>q6,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:()=>W6,SemanticAttributes:()=>BF,SemanticResourceAttributes:()=>zq,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>k4,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>Y4,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>F4,TELEMETRYSDKLANGUAGEVALUES_GO:()=>K4,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>j4,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>q4,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>W4,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>z4,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>J4,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>X4,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:()=>oW,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:()=>iW,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:()=>aW,TELEMETRY_SDK_LANGUAGE_VALUE_GO:()=>uW,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:()=>sW,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:()=>cW,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:()=>lW,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:()=>pW,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:()=>_W,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:()=>EW,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:()=>TW,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:()=>SW,TelemetrySdkLanguageValues:()=>$4});var xP=d(()=>{rR();gP();LP();IP()});var bP=S(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.ExceptionEventName=void 0;Jn.ExceptionEventName="exception"});var Au=S(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.Span=void 0;var ue=(m(),N(y)),$=x(),ot=(xP(),N(CP)),C8=bP(),du=class{constructor(r,i,c,a,u,t,e=[],n,s,l){this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:ue.SpanStatusCode.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=c,this._spanContext=a,this.parentSpanId=t,this.kind=u,this.links=e;let E=Date.now();this._performanceStartTime=$.otperformance.now(),this._performanceOffset=E-(this._performanceStartTime+(0,$.getTimeOrigin)()),this._startTimeProvided=n!=null,this.startTime=this._getTime(n??E),this.resource=r.resource,this.instrumentationLibrary=r.instrumentationLibrary,this._spanLimits=r.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,l!=null&&this.setAttributes(l),this._spanProcessor=r.getActiveSpanProcessor(),this._spanProcessor.onStart(this,i)}spanContext(){return this._spanContext}setAttribute(r,i){return i==null||this._isSpanEnded()?this:r.length===0?(ue.diag.warn(`Invalid attribute key: ${r}`),this):(0,$.isAttributeValue)(i)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,r)?(this._droppedAttributesCount++,this):(this.attributes[r]=this._truncateToSize(i),this):(ue.diag.warn(`Invalid attribute value set for key: ${r}`),this)}setAttributes(r){for(let[i,c]of Object.entries(r))this.setAttribute(i,c);return this}addEvent(r,i,c){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return ue.diag.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(this._droppedEventsCount===0&&ue.diag.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),(0,$.isTimeInput)(i)&&((0,$.isTimeInput)(c)||(c=i),i=void 0);let a=(0,$.sanitizeAttributes)(i);return this.events.push({name:r,attributes:a,time:this._getTime(c),droppedAttributesCount:0}),this}addLink(r){return this.links.push(r),this}addLinks(r){return this.links.push(...r),this}setStatus(r){return this._isSpanEnded()?this:(this.status=Object.assign({},r),this.status.message!=null&&typeof r.message!="string"&&(ue.diag.warn(`Dropping invalid status.message of type '${typeof r.message}', expected 'string'`),delete this.status.message),this)}updateName(r){return this._isSpanEnded()?this:(this.name=r,this)}end(r){if(this._isSpanEnded()){ue.diag.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(r),this._duration=(0,$.hrTimeDuration)(this.startTime,this.endTime),this._duration[0]<0&&(ue.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]),this._droppedEventsCount>0&&ue.diag.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(r){if(typeof r=="number"&&r<=$.otperformance.now())return(0,$.hrTime)(r+this._performanceOffset);if(typeof r=="number")return(0,$.millisToHrTime)(r);if(r instanceof Date)return(0,$.millisToHrTime)(r.getTime());if((0,$.isTimeInputHrTime)(r))return r;if(this._startTimeProvided)return(0,$.millisToHrTime)(Date.now());let i=$.otperformance.now()-this._performanceStartTime;return(0,$.addHrTimes)(this.startTime,(0,$.millisToHrTime)(i))}isRecording(){return this._ended===!1}recordException(r,i){let c={};typeof r=="string"?c[ot.SEMATTRS_EXCEPTION_MESSAGE]=r:r&&(r.code?c[ot.SEMATTRS_EXCEPTION_TYPE]=r.code.toString():r.name&&(c[ot.SEMATTRS_EXCEPTION_TYPE]=r.name),r.message&&(c[ot.SEMATTRS_EXCEPTION_MESSAGE]=r.message),r.stack&&(c[ot.SEMATTRS_EXCEPTION_STACKTRACE]=r.stack)),c[ot.SEMATTRS_EXCEPTION_TYPE]||c[ot.SEMATTRS_EXCEPTION_MESSAGE]?this.addEvent(C8.ExceptionEventName,c,i):ue.diag.warn(`Failed to record an exception ${r}`)}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(){return this._ended&&ue.diag.warn(`Can not execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`),this._ended}_truncateToLimitUtil(r,i){return r.length<=i?r:r.substring(0,i)}_truncateToSize(r){let i=this._attributeValueLengthLimit;return i<=0?(ue.diag.warn(`Attribute value limit must be positive, got ${i}`),r):typeof r=="string"?this._truncateToLimitUtil(r,i):Array.isArray(r)?r.map(c=>typeof c=="string"?this._truncateToLimitUtil(c,i):c):r}};Xn.Span=du});var yr=S(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.SamplingDecision=void 0;var x8;(function(o){o[o.NOT_RECORD=0]="NOT_RECORD",o[o.RECORD=1]="RECORD",o[o.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(x8=Rr.SamplingDecision||(Rr.SamplingDecision={}))});var Qn=S($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.AlwaysOffSampler=void 0;var b8=yr(),vu=class{shouldSample(){return{decision:b8.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};$n.AlwaysOffSampler=vu});var eo=S(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.AlwaysOnSampler=void 0;var U8=yr(),Ou=class{shouldSample(){return{decision:U8.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};Zn.AlwaysOnSampler=Ou});var Nu=S(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.ParentBasedSampler=void 0;var to=(m(),N(y)),D8=x(),UP=Qn(),mu=eo(),hu=class{constructor(r){var i,c,a,u;this._root=r.root,this._root||((0,D8.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new mu.AlwaysOnSampler),this._remoteParentSampled=(i=r.remoteParentSampled)!==null&&i!==void 0?i:new mu.AlwaysOnSampler,this._remoteParentNotSampled=(c=r.remoteParentNotSampled)!==null&&c!==void 0?c:new UP.AlwaysOffSampler,this._localParentSampled=(a=r.localParentSampled)!==null&&a!==void 0?a:new mu.AlwaysOnSampler,this._localParentNotSampled=(u=r.localParentNotSampled)!==null&&u!==void 0?u:new UP.AlwaysOffSampler}shouldSample(r,i,c,a,u,t){let e=to.trace.getSpanContext(r);return!e||!(0,to.isSpanContextValid)(e)?this._root.shouldSample(r,i,c,a,u,t):e.isRemote?e.traceFlags&to.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(r,i,c,a,u,t):this._remoteParentNotSampled.shouldSample(r,i,c,a,u,t):e.traceFlags&to.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(r,i,c,a,u,t):this._localParentNotSampled.shouldSample(r,i,c,a,u,t)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};ro.ParentBasedSampler=hu});var yu=S(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.TraceIdRatioBasedSampler=void 0;var V8=(m(),N(y)),DP=yr(),Ru=class{constructor(r=0){this._ratio=r,this._ratio=this._normalize(r),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(r,i){return{decision:(0,V8.isValidTraceId)(i)&&this._accumulate(i)<this._upperBound?DP.SamplingDecision.RECORD_AND_SAMPLED:DP.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(r){return typeof r!="number"||isNaN(r)?0:r>=1?1:r<=0?0:r}_accumulate(r){let i=0;for(let c=0;c<r.length/8;c++){let a=c*8,u=parseInt(r.slice(a,a+8),16);i=(i^u)>>>0}return i}};no.TraceIdRatioBasedSampler=Ru});var gu=S(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.buildSamplerFromEnv=Ct.loadDefaultConfig=void 0;var oo=(m(),N(y)),xe=x(),VP=Qn(),Pu=eo(),Mu=Nu(),wP=yu(),w8=xe.TracesSamplerValues.AlwaysOn,It=1;function B8(){let o=(0,xe.getEnv)();return{sampler:GP(o),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:o.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:o.OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:o.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:o.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:o.OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:o.OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:o.OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:o.OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT},mergeResourceWithDefaults:!0}}Ct.loadDefaultConfig=B8;function GP(o=(0,xe.getEnv)()){switch(o.OTEL_TRACES_SAMPLER){case xe.TracesSamplerValues.AlwaysOn:return new Pu.AlwaysOnSampler;case xe.TracesSamplerValues.AlwaysOff:return new VP.AlwaysOffSampler;case xe.TracesSamplerValues.ParentBasedAlwaysOn:return new Mu.ParentBasedSampler({root:new Pu.AlwaysOnSampler});case xe.TracesSamplerValues.ParentBasedAlwaysOff:return new Mu.ParentBasedSampler({root:new VP.AlwaysOffSampler});case xe.TracesSamplerValues.TraceIdRatio:return new wP.TraceIdRatioBasedSampler(BP(o));case xe.TracesSamplerValues.ParentBasedTraceIdRatio:return new Mu.ParentBasedSampler({root:new wP.TraceIdRatioBasedSampler(BP(o))});default:return oo.diag.error(`OTEL_TRACES_SAMPLER value "${o.OTEL_TRACES_SAMPLER} invalid, defaulting to ${w8}".`),new Pu.AlwaysOnSampler}}Ct.buildSamplerFromEnv=GP;function BP(o){if(o.OTEL_TRACES_SAMPLER_ARG===void 0||o.OTEL_TRACES_SAMPLER_ARG==="")return oo.diag.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${It}.`),It;let r=Number(o.OTEL_TRACES_SAMPLER_ARG);return isNaN(r)?(oo.diag.error(`OTEL_TRACES_SAMPLER_ARG=${o.OTEL_TRACES_SAMPLER_ARG} was given, but it is invalid, defaulting to ${It}.`),It):r<0||r>1?(oo.diag.error(`OTEL_TRACES_SAMPLER_ARG=${o.OTEL_TRACES_SAMPLER_ARG} was given, but it is out of range ([0..1]), defaulting to ${It}.`),It):r}});var Iu=S(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.reconfigureLimits=xt.mergeConfig=void 0;var HP=gu(),Lu=x();function G8(o){let r={sampler:(0,HP.buildSamplerFromEnv)()},i=(0,HP.loadDefaultConfig)(),c=Object.assign({},i,r,o);return c.generalLimits=Object.assign({},i.generalLimits,o.generalLimits||{}),c.spanLimits=Object.assign({},i.spanLimits,o.spanLimits||{}),c}xt.mergeConfig=G8;function H8(o){var r,i,c,a,u,t,e,n,s,l,E,O;let g=Object.assign({},o.spanLimits),pe=(0,Lu.getEnvWithoutDefaults)();return g.attributeCountLimit=(t=(u=(a=(i=(r=o.spanLimits)===null||r===void 0?void 0:r.attributeCountLimit)!==null&&i!==void 0?i:(c=o.generalLimits)===null||c===void 0?void 0:c.attributeCountLimit)!==null&&a!==void 0?a:pe.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)!==null&&u!==void 0?u:pe.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&t!==void 0?t:Lu.DEFAULT_ATTRIBUTE_COUNT_LIMIT,g.attributeValueLengthLimit=(O=(E=(l=(n=(e=o.spanLimits)===null||e===void 0?void 0:e.attributeValueLengthLimit)!==null&&n!==void 0?n:(s=o.generalLimits)===null||s===void 0?void 0:s.attributeValueLengthLimit)!==null&&l!==void 0?l:pe.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&E!==void 0?E:pe.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&O!==void 0?O:Lu.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,Object.assign({},o,{spanLimits:g})}xt.reconfigureLimits=H8});var kP=S(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.BatchSpanProcessorBase=void 0;var bt=(m(),N(y)),it=x(),Cu=class{constructor(r,i){this._exporter=r,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;let c=(0,it.getEnv)();this._maxExportBatchSize=typeof i?.maxExportBatchSize=="number"?i.maxExportBatchSize:c.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof i?.maxQueueSize=="number"?i.maxQueueSize:c.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof i?.scheduledDelayMillis=="number"?i.scheduledDelayMillis:c.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof i?.exportTimeoutMillis=="number"?i.exportTimeoutMillis:c.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new it.BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(bt.diag.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(r,i){}onEnd(r){this._shutdownOnce.isCalled||(r.spanContext().traceFlags&bt.TraceFlags.SAMPLED)!==0&&this._addToBuffer(r)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(r){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&bt.diag.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(bt.diag.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(r),this._maybeStartTimer()}_flushAll(){return new Promise((r,i)=>{let c=[],a=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let u=0,t=a;u<t;u++)c.push(this._flushOneBatch());Promise.all(c).then(()=>{r()}).catch(i)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((r,i)=>{let c=setTimeout(()=>{i(new Error("Timeout"))},this._exportTimeoutMillis);bt.context.with((0,it.suppressTracing)(bt.context.active()),()=>{let a;this._finishedSpans.length<=this._maxExportBatchSize?(a=this._finishedSpans,this._finishedSpans=[]):a=this._finishedSpans.splice(0,this._maxExportBatchSize);let u=()=>this._exporter.export(a,e=>{var n;clearTimeout(c),e.code===it.ExportResultCode.SUCCESS?r():i((n=e.error)!==null&&n!==void 0?n:new Error("BatchSpanProcessor: span export failed"))}),t=null;for(let e=0,n=a.length;e<n;e++){let s=a[e];s.resource.asyncAttributesPending&&s.resource.waitForAsyncAttributes&&(t??(t=[]),t.push(s.resource.waitForAsyncAttributes()))}t===null?u():Promise.all(t).then(u,e=>{(0,it.globalErrorHandler)(e),i(e)})})})}_maybeStartTimer(){if(this._isExporting)return;let r=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(i=>{this._isExporting=!1,(0,it.globalErrorHandler)(i)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return r();this._timer===void 0&&(this._timer=setTimeout(()=>r(),this._scheduledDelayMillis),(0,it.unrefTimer)(this._timer))}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}};io.BatchSpanProcessorBase=Cu});var YP=S(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.BatchSpanProcessor=void 0;var k8=kP(),xu=class extends k8.BatchSpanProcessorBase{onShutdown(){}};ao.BatchSpanProcessor=xu});var jP=S(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.RandomIdGenerator=void 0;var Y8=8,KP=16,bu=class{constructor(){this.generateTraceId=FP(KP),this.generateSpanId=FP(Y8)}};so.RandomIdGenerator=bu;var uo=Buffer.allocUnsafe(KP);function FP(o){return function(){for(let i=0;i<o/4;i++)uo.writeUInt32BE(Math.random()*2**32>>>0,i*4);for(let i=0;i<o&&!(uo[i]>0);i++)i===o-1&&(uo[o-1]=1);return uo.toString("hex",0,o)}}});var qP=S(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.RandomIdGenerator=Ut.BatchSpanProcessor=void 0;var F8=YP();Object.defineProperty(Ut,"BatchSpanProcessor",{enumerable:!0,get:function(){return F8.BatchSpanProcessor}});var K8=jP();Object.defineProperty(Ut,"RandomIdGenerator",{enumerable:!0,get:function(){return K8.RandomIdGenerator}})});var co=S(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.RandomIdGenerator=Dt.BatchSpanProcessor=void 0;var WP=qP();Object.defineProperty(Dt,"BatchSpanProcessor",{enumerable:!0,get:function(){return WP.BatchSpanProcessor}});Object.defineProperty(Dt,"RandomIdGenerator",{enumerable:!0,get:function(){return WP.RandomIdGenerator}})});var Du=S(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.Tracer=void 0;var q=(m(),N(y)),lo=x(),j8=Au(),q8=Iu(),W8=co(),Uu=class{constructor(r,i,c){this._tracerProvider=c;let a=(0,q8.mergeConfig)(i);this._sampler=a.sampler,this._generalLimits=a.generalLimits,this._spanLimits=a.spanLimits,this._idGenerator=i.idGenerator||new W8.RandomIdGenerator,this.resource=c.resource,this.instrumentationLibrary=r}startSpan(r,i={},c=q.context.active()){var a,u,t;i.root&&(c=q.trace.deleteSpan(c));let e=q.trace.getSpan(c);if((0,lo.isTracingSuppressed)(c))return q.diag.debug("Instrumentation suppressed, returning Noop Span"),q.trace.wrapSpanContext(q.INVALID_SPAN_CONTEXT);let n=e?.spanContext(),s=this._idGenerator.generateSpanId(),l,E,O;!n||!q.trace.isSpanContextValid(n)?l=this._idGenerator.generateTraceId():(l=n.traceId,E=n.traceState,O=n.spanId);let g=(a=i.kind)!==null&&a!==void 0?a:q.SpanKind.INTERNAL,pe=((u=i.links)!==null&&u!==void 0?u:[]).map(Xr=>({context:Xr.context,attributes:(0,lo.sanitizeAttributes)(Xr.attributes)})),Ae=(0,lo.sanitizeAttributes)(i.attributes),Le=this._sampler.shouldSample(c,l,r,g,Ae,pe);E=(t=Le.traceState)!==null&&t!==void 0?t:E;let Jr=Le.decision===q.SamplingDecision.RECORD_AND_SAMPLED?q.TraceFlags.SAMPLED:q.TraceFlags.NONE,Mc={traceId:l,spanId:s,traceFlags:Jr,traceState:E};if(Le.decision===q.SamplingDecision.NOT_RECORD)return q.diag.debug("Recording is off, propagating context in a non-recording span"),q.trace.wrapSpanContext(Mc);let XI=(0,lo.sanitizeAttributes)(Object.assign(Ae,Le.attributes));return new j8.Span(this,c,r,Mc,g,O,pe,i.startTime,void 0,XI)}startActiveSpan(r,i,c,a){let u,t,e;if(arguments.length<2)return;arguments.length===2?e=i:arguments.length===3?(u=i,e=c):(u=i,t=c,e=a);let n=t??q.context.active(),s=this.startSpan(r,u,n),l=q.trace.setSpan(n,s);return q.context.with(l,e,void 0,s)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}getActiveSpanProcessor(){return this._tracerProvider.getActiveSpanProcessor()}};po.Tracer=Uu});var _o=S((hZ,zP)=>{"use strict";var be=class o{constructor(r,i){this._attributes=r||{},this._syncAttributes=this._attributes,this.asyncAttributesPending=i!=null,i&&(this._asyncAttributesPromise=i.then(c=>(this._attributes=Object.assign({},this._attributes,c),this.asyncAttributesPending=!1,c),()=>(this.asyncAttributesPending=!1,{})))}get attributes(){return this._attributes||{}}waitForAsyncAttributes(){return this.asyncAttributesPending?this._asyncAttributesPromise:Promise.resolve()}merge(r){if(!r)return this;let i=Object.assign({},this._syncAttributes,r._syncAttributes||r.attributes);return new o(i)}};be.EMPTY=new be({});be.empty=function(){return be.EMPTY};be.default=function(){return new be({"telemetry.sdk.language":"nodejs"})};zP.exports={Resource:be}});var JP=S(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.MultiSpanProcessor=void 0;var z8=x(),Vu=class{constructor(r){this._spanProcessors=r}forceFlush(){let r=[];for(let i of this._spanProcessors)r.push(i.forceFlush());return new Promise(i=>{Promise.all(r).then(()=>{i()}).catch(c=>{(0,z8.globalErrorHandler)(c||new Error("MultiSpanProcessor: forceFlush failed")),i()})})}onStart(r,i){for(let c of this._spanProcessors)c.onStart(r,i)}onEnd(r){for(let i of this._spanProcessors)i.onEnd(r)}shutdown(){let r=[];for(let i of this._spanProcessors)r.push(i.shutdown());return new Promise((i,c)=>{Promise.all(r).then(()=>{i()},c)})}};Eo.MultiSpanProcessor=Vu});var Bu=S(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.NoopSpanProcessor=void 0;var wu=class{onStart(r,i){}onEnd(r){}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}};To.NoopSpanProcessor=wu});var QP=S(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.BasicTracerProvider=at.ForceFlushState=void 0;var Vt=(m(),N(y)),Bt=x(),XP=_o(),J8=Du(),X8=gu(),$P=JP(),$8=Bu(),Q8=co(),Z8=Iu(),wt;(function(o){o[o.resolved=0]="resolved",o[o.timeout=1]="timeout",o[o.error=2]="error",o[o.unresolved=3]="unresolved"})(wt=at.ForceFlushState||(at.ForceFlushState={}));var Pr=class{constructor(r={}){var i,c;this._registeredSpanProcessors=[],this._tracers=new Map;let a=(0,Bt.merge)({},(0,X8.loadDefaultConfig)(),(0,Z8.reconfigureLimits)(r));if(this.resource=(i=a.resource)!==null&&i!==void 0?i:XP.Resource.empty(),a.mergeResourceWithDefaults&&(this.resource=XP.Resource.default().merge(this.resource)),this._config=Object.assign({},a,{resource:this.resource}),!((c=r.spanProcessors)===null||c===void 0)&&c.length)this._registeredSpanProcessors=[...r.spanProcessors],this.activeSpanProcessor=new $P.MultiSpanProcessor(this._registeredSpanProcessors);else{let u=this._buildExporterFromEnv();if(u!==void 0){let t=new Q8.BatchSpanProcessor(u);this.activeSpanProcessor=t}else this.activeSpanProcessor=new $8.NoopSpanProcessor}}getTracer(r,i,c){let a=`${r}@${i||""}:${c?.schemaUrl||""}`;return this._tracers.has(a)||this._tracers.set(a,new J8.Tracer({name:r,version:i,schemaUrl:c?.schemaUrl},this._config,this)),this._tracers.get(a)}addSpanProcessor(r){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(i=>Vt.diag.error("Error while trying to shutdown current span processor",i)),this._registeredSpanProcessors.push(r),this.activeSpanProcessor=new $P.MultiSpanProcessor(this._registeredSpanProcessors)}getActiveSpanProcessor(){return this.activeSpanProcessor}register(r={}){Vt.trace.setGlobalTracerProvider(this),r.propagator===void 0&&(r.propagator=this._buildPropagatorFromEnv()),r.contextManager&&Vt.context.setGlobalContextManager(r.contextManager),r.propagator&&Vt.propagation.setGlobalPropagator(r.propagator)}forceFlush(){let r=this._config.forceFlushTimeoutMillis,i=this._registeredSpanProcessors.map(c=>new Promise(a=>{let u,t=setTimeout(()=>{a(new Error(`Span processor did not completed within timeout period of ${r} ms`)),u=wt.timeout},r);c.forceFlush().then(()=>{clearTimeout(t),u!==wt.timeout&&(u=wt.resolved,a(u))}).catch(e=>{clearTimeout(t),u=wt.error,a(e)})}));return new Promise((c,a)=>{Promise.all(i).then(u=>{let t=u.filter(e=>e!==wt.resolved);t.length>0?a(t):c()}).catch(u=>a([u]))})}shutdown(){return this.activeSpanProcessor.shutdown()}_getPropagator(r){var i;return(i=this.constructor._registeredPropagators.get(r))===null||i===void 0?void 0:i()}_getSpanExporter(r){var i;return(i=this.constructor._registeredExporters.get(r))===null||i===void 0?void 0:i()}_buildPropagatorFromEnv(){let r=Array.from(new Set((0,Bt.getEnv)().OTEL_PROPAGATORS)),c=r.map(a=>{let u=this._getPropagator(a);return u||Vt.diag.warn(`Propagator "${a}" requested through environment variable is unavailable.`),u}).reduce((a,u)=>(u&&a.push(u),a),[]);if(c.length!==0)return r.length===1?c[0]:new Bt.CompositePropagator({propagators:c})}_buildExporterFromEnv(){let r=(0,Bt.getEnv)().OTEL_TRACES_EXPORTER;if(r==="none"||r==="")return;let i=this._getSpanExporter(r);return i||Vt.diag.error(`Exporter "${r}" requested through environment variable is unavailable.`),i}};at.BasicTracerProvider=Pr;Pr._registeredPropagators=new Map([["tracecontext",()=>new Bt.W3CTraceContextPropagator],["baggage",()=>new Bt.W3CBaggagePropagator]]);Pr._registeredExporters=new Map});var ZP=S(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.ConsoleSpanExporter=void 0;var Gu=x(),Hu=class{export(r,i){return this._sendSpans(r,i)}shutdown(){return this._sendSpans([]),this.forceFlush()}forceFlush(){return Promise.resolve()}_exportInfo(r){var i;return{resource:{attributes:r.resource.attributes},instrumentationScope:r.instrumentationLibrary,traceId:r.spanContext().traceId,parentId:r.parentSpanId,traceState:(i=r.spanContext().traceState)===null||i===void 0?void 0:i.serialize(),name:r.name,id:r.spanContext().spanId,kind:r.kind,timestamp:(0,Gu.hrTimeToMicroseconds)(r.startTime),duration:(0,Gu.hrTimeToMicroseconds)(r.duration),attributes:r.attributes,status:r.status,events:r.events,links:r.links}}_sendSpans(r,i){for(let c of r)console.dir(this._exportInfo(c),{depth:3});if(i)return i({code:Gu.ExportResultCode.SUCCESS})}};So.ConsoleSpanExporter=Hu});var tM=S(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.InMemorySpanExporter=void 0;var eM=x(),ku=class{constructor(){this._finishedSpans=[],this._stopped=!1}export(r,i){if(this._stopped)return i({code:eM.ExportResultCode.FAILED,error:new Error("Exporter has been stopped")});this._finishedSpans.push(...r),setTimeout(()=>i({code:eM.ExportResultCode.SUCCESS}),0)}shutdown(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()}forceFlush(){return Promise.resolve()}reset(){this._finishedSpans=[]}getFinishedSpans(){return this._finishedSpans}};fo.InMemorySpanExporter=ku});var rM=S(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.SimpleSpanProcessor=void 0;var ez=(m(),N(y)),Gt=x(),Yu=class{constructor(r){this._exporter=r,this._shutdownOnce=new Gt.BindOnceFuture(this._shutdown,this),this._unresolvedExports=new Set}async forceFlush(){await Promise.all(Array.from(this._unresolvedExports)),this._exporter.forceFlush&&await this._exporter.forceFlush()}onStart(r,i){}onEnd(r){var i,c;if(this._shutdownOnce.isCalled||(r.spanContext().traceFlags&ez.TraceFlags.SAMPLED)===0)return;let a=()=>Gt.internal._export(this._exporter,[r]).then(u=>{var t;u.code!==Gt.ExportResultCode.SUCCESS&&(0,Gt.globalErrorHandler)((t=u.error)!==null&&t!==void 0?t:new Error(`SimpleSpanProcessor: span export failed (status ${u})`))}).catch(u=>{(0,Gt.globalErrorHandler)(u)});if(r.resource.asyncAttributesPending){let u=(c=(i=r.resource).waitForAsyncAttributes)===null||c===void 0?void 0:c.call(i).then(()=>(u!=null&&this._unresolvedExports.delete(u),a()),t=>(0,Gt.globalErrorHandler)(t));u!=null&&this._unresolvedExports.add(u)}else a()}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}};Ao.SimpleSpanProcessor=Yu});var iM=S(M=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0});M.Span=M.SamplingDecision=M.TraceIdRatioBasedSampler=M.ParentBasedSampler=M.AlwaysOnSampler=M.AlwaysOffSampler=M.NoopSpanProcessor=M.SimpleSpanProcessor=M.InMemorySpanExporter=M.ConsoleSpanExporter=M.RandomIdGenerator=M.BatchSpanProcessor=M.ForceFlushState=M.BasicTracerProvider=M.Tracer=void 0;var tz=Du();Object.defineProperty(M,"Tracer",{enumerable:!0,get:function(){return tz.Tracer}});var nM=QP();Object.defineProperty(M,"BasicTracerProvider",{enumerable:!0,get:function(){return nM.BasicTracerProvider}});Object.defineProperty(M,"ForceFlushState",{enumerable:!0,get:function(){return nM.ForceFlushState}});var oM=co();Object.defineProperty(M,"BatchSpanProcessor",{enumerable:!0,get:function(){return oM.BatchSpanProcessor}});Object.defineProperty(M,"RandomIdGenerator",{enumerable:!0,get:function(){return oM.RandomIdGenerator}});var rz=ZP();Object.defineProperty(M,"ConsoleSpanExporter",{enumerable:!0,get:function(){return rz.ConsoleSpanExporter}});var nz=tM();Object.defineProperty(M,"InMemorySpanExporter",{enumerable:!0,get:function(){return nz.InMemorySpanExporter}});var oz=rM();Object.defineProperty(M,"SimpleSpanProcessor",{enumerable:!0,get:function(){return oz.SimpleSpanProcessor}});var iz=Bu();Object.defineProperty(M,"NoopSpanProcessor",{enumerable:!0,get:function(){return iz.NoopSpanProcessor}});var az=Qn();Object.defineProperty(M,"AlwaysOffSampler",{enumerable:!0,get:function(){return az.AlwaysOffSampler}});var uz=eo();Object.defineProperty(M,"AlwaysOnSampler",{enumerable:!0,get:function(){return uz.AlwaysOnSampler}});var sz=Nu();Object.defineProperty(M,"ParentBasedSampler",{enumerable:!0,get:function(){return sz.ParentBasedSampler}});var cz=yu();Object.defineProperty(M,"TraceIdRatioBasedSampler",{enumerable:!0,get:function(){return cz.TraceIdRatioBasedSampler}});var lz=yr();Object.defineProperty(M,"SamplingDecision",{enumerable:!0,get:function(){return lz.SamplingDecision}});var pz=Au();Object.defineProperty(M,"Span",{enumerable:!0,get:function(){return pz.Span}})});var vo=S(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.AggregationTemporality=void 0;var _z;(function(o){o[o.DELTA=0]="DELTA",o[o.CUMULATIVE=1]="CUMULATIVE"})(_z=Mr.AggregationTemporality||(Mr.AggregationTemporality={}))});var Ht=S(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.DataPointType=void 0;var Ez;(function(o){o[o.HISTOGRAM=0]="HISTOGRAM",o[o.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",o[o.GAUGE=2]="GAUGE",o[o.SUM=3]="SUM"})(Ez=gr.DataPointType||(gr.DataPointType={}))});var Ee=S(I=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});I.equalsCaseInsensitive=I.binarySearchUB=I.setEquals=I.FlatMap=I.isPromiseAllSettledRejectionResult=I.PromiseAllSettled=I.callWithTimeout=I.TimeoutError=I.instrumentationScopeId=I.hashAttributes=I.isNotNullish=void 0;function Tz(o){return o!=null}I.isNotNullish=Tz;function Sz(o){let r=Object.keys(o);return r.length===0?"":(r=r.sort(),JSON.stringify(r.map(i=>[i,o[i]])))}I.hashAttributes=Sz;function fz(o){var r,i;return`${o.name}:${(r=o.version)!==null&&r!==void 0?r:""}:${(i=o.schemaUrl)!==null&&i!==void 0?i:""}`}I.instrumentationScopeId=fz;var Oo=class o extends Error{constructor(r){super(r),Object.setPrototypeOf(this,o.prototype)}};I.TimeoutError=Oo;function dz(o,r){let i,c=new Promise(function(u,t){i=setTimeout(function(){t(new Oo("Operation timed out."))},r)});return Promise.race([o,c]).then(a=>(clearTimeout(i),a),a=>{throw clearTimeout(i),a})}I.callWithTimeout=dz;async function Az(o){return Promise.all(o.map(async r=>{try{return{status:"fulfilled",value:await r}}catch(i){return{status:"rejected",reason:i}}}))}I.PromiseAllSettled=Az;function vz(o){return o.status==="rejected"}I.isPromiseAllSettledRejectionResult=vz;function Oz(o,r){let i=[];return o.forEach(c=>{i.push(...r(c))}),i}I.FlatMap=Oz;function mz(o,r){if(o.size!==r.size)return!1;for(let i of o)if(!r.has(i))return!1;return!0}I.setEquals=mz;function hz(o,r){let i=0,c=o.length-1,a=o.length;for(;c>=i;){let u=i+Math.trunc((c-i)/2);o[u]<r?i=u+1:(a=u,c=u-1)}return a}I.binarySearchUB=hz;function Nz(o,r){return o.toLowerCase()===r.toLowerCase()}I.equalsCaseInsensitive=Nz});var kt=S(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.AggregatorKind=void 0;var Rz;(function(o){o[o.DROP=0]="DROP",o[o.SUM=1]="SUM",o[o.LAST_VALUE=2]="LAST_VALUE",o[o.HISTOGRAM=3]="HISTOGRAM",o[o.EXPONENTIAL_HISTOGRAM=4]="EXPONENTIAL_HISTOGRAM"})(Rz=Lr.AggregatorKind||(Lr.AggregatorKind={}))});var aM=S(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.DropAggregator=void 0;var yz=kt(),Fu=class{constructor(){this.kind=yz.AggregatorKind.DROP}createAccumulation(){}merge(r,i){}diff(r,i){}toMetricData(r,i,c,a){}};mo.DropAggregator=Fu});var Ue=S(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.isValidName=ie.isDescriptorCompatibleWith=ie.createInstrumentDescriptorWithView=ie.createInstrumentDescriptor=ie.InstrumentType=void 0;var uM=(m(),N(y)),Pz=Ee(),Mz;(function(o){o.COUNTER="COUNTER",o.GAUGE="GAUGE",o.HISTOGRAM="HISTOGRAM",o.UP_DOWN_COUNTER="UP_DOWN_COUNTER",o.OBSERVABLE_COUNTER="OBSERVABLE_COUNTER",o.OBSERVABLE_GAUGE="OBSERVABLE_GAUGE",o.OBSERVABLE_UP_DOWN_COUNTER="OBSERVABLE_UP_DOWN_COUNTER"})(Mz=ie.InstrumentType||(ie.InstrumentType={}));function gz(o,r,i){var c,a,u,t;return sM(o)||uM.diag.warn(`Invalid metric name: "${o}". The metric name should be a ASCII string with a length no greater than 255 characters.`),{name:o,type:r,description:(c=i?.description)!==null&&c!==void 0?c:"",unit:(a=i?.unit)!==null&&a!==void 0?a:"",valueType:(u=i?.valueType)!==null&&u!==void 0?u:uM.ValueType.DOUBLE,advice:(t=i?.advice)!==null&&t!==void 0?t:{}}}ie.createInstrumentDescriptor=gz;function Lz(o,r){var i,c;return{name:(i=o.name)!==null&&i!==void 0?i:r.name,description:(c=o.description)!==null&&c!==void 0?c:r.description,type:r.type,unit:r.unit,valueType:r.valueType,advice:r.advice}}ie.createInstrumentDescriptorWithView=Lz;function Iz(o,r){return(0,Pz.equalsCaseInsensitive)(o.name,r.name)&&o.unit===r.unit&&o.type===r.type&&o.valueType===r.valueType}ie.isDescriptorCompatibleWith=Iz;var Cz=/^[a-z][a-z0-9_.\-/]{0,254}$/i;function sM(o){return o.match(Cz)!=null}ie.isValidName=sM});var cM=S(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.HistogramAggregator=Ft.HistogramAccumulation=void 0;var xz=kt(),bz=Ht(),ho=Ue(),Uz=Ee();function Dz(o){let r=o.map(()=>0);return r.push(0),{buckets:{boundaries:o,counts:r},sum:0,count:0,hasMinMax:!1,min:1/0,max:-1/0}}var Yt=class{constructor(r,i,c=!0,a=Dz(i)){this.startTime=r,this._boundaries=i,this._recordMinMax=c,this._current=a}record(r){if(Number.isNaN(r))return;this._current.count+=1,this._current.sum+=r,this._recordMinMax&&(this._current.min=Math.min(r,this._current.min),this._current.max=Math.max(r,this._current.max),this._current.hasMinMax=!0);let i=(0,Uz.binarySearchUB)(this._boundaries,r);this._current.buckets.counts[i]+=1}setStartTime(r){this.startTime=r}toPointValue(){return this._current}};Ft.HistogramAccumulation=Yt;var Ku=class{constructor(r,i){this._boundaries=r,this._recordMinMax=i,this.kind=xz.AggregatorKind.HISTOGRAM}createAccumulation(r){return new Yt(r,this._boundaries,this._recordMinMax)}merge(r,i){let c=r.toPointValue(),a=i.toPointValue(),u=c.buckets.counts,t=a.buckets.counts,e=new Array(u.length);for(let l=0;l<u.length;l++)e[l]=u[l]+t[l];let n=1/0,s=-1/0;return this._recordMinMax&&(c.hasMinMax&&a.hasMinMax?(n=Math.min(c.min,a.min),s=Math.max(c.max,a.max)):c.hasMinMax?(n=c.min,s=c.max):a.hasMinMax&&(n=a.min,s=a.max)),new Yt(r.startTime,c.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:c.buckets.boundaries,counts:e},count:c.count+a.count,sum:c.sum+a.sum,hasMinMax:this._recordMinMax&&(c.hasMinMax||a.hasMinMax),min:n,max:s})}diff(r,i){let c=r.toPointValue(),a=i.toPointValue(),u=c.buckets.counts,t=a.buckets.counts,e=new Array(u.length);for(let n=0;n<u.length;n++)e[n]=t[n]-u[n];return new Yt(i.startTime,c.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:c.buckets.boundaries,counts:e},count:a.count-c.count,sum:a.sum-c.sum,hasMinMax:!1,min:1/0,max:-1/0})}toMetricData(r,i,c,a){return{descriptor:r,aggregationTemporality:i,dataPointType:bz.DataPointType.HISTOGRAM,dataPoints:c.map(([u,t])=>{let e=t.toPointValue(),n=r.type===ho.InstrumentType.GAUGE||r.type===ho.InstrumentType.UP_DOWN_COUNTER||r.type===ho.InstrumentType.OBSERVABLE_GAUGE||r.type===ho.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:u,startTime:t.startTime,endTime:a,value:{min:e.hasMinMax?e.min:void 0,max:e.hasMinMax?e.max:void 0,sum:n?void 0:e.sum,buckets:e.buckets,count:e.count}}})}}};Ft.HistogramAggregator=Ku});var lM=S(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.Buckets=void 0;var ju=class o{constructor(r=new qu,i=0,c=0,a=0){this.backing=r,this.indexBase=i,this.indexStart=c,this.indexEnd=a}get offset(){return this.indexStart}get length(){return this.backing.length===0||this.indexEnd===this.indexStart&&this.at(0)===0?0:this.indexEnd-this.indexStart+1}counts(){return Array.from({length:this.length},(r,i)=>this.at(i))}at(r){let i=this.indexBase-this.indexStart;return r<i&&(r+=this.backing.length),r-=i,this.backing.countAt(r)}incrementBucket(r,i){this.backing.increment(r,i)}decrementBucket(r,i){this.backing.decrement(r,i)}trim(){for(let r=0;r<this.length;r++)if(this.at(r)!==0){this.indexStart+=r;break}else if(r===this.length-1){this.indexStart=this.indexEnd=this.indexBase=0;return}for(let r=this.length-1;r>=0;r--)if(this.at(r)!==0){this.indexEnd-=this.length-r-1;break}this._rotate()}downscale(r){this._rotate();let i=1+this.indexEnd-this.indexStart,c=1<<r,a=0,u=0;for(let t=this.indexStart;t<=this.indexEnd;){let e=t%c;e<0&&(e+=c);for(let n=e;n<c&&a<i;n++)this._relocateBucket(u,a),a++,t++;u++}this.indexStart>>=r,this.indexEnd>>=r,this.indexBase=this.indexStart}clone(){return new o(this.backing.clone(),this.indexBase,this.indexStart,this.indexEnd)}_rotate(){let r=this.indexBase-this.indexStart;r!==0&&(r>0?(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,r),this.backing.reverse(r,this.backing.length)):(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,this.backing.length+r)),this.indexBase=this.indexStart)}_relocateBucket(r,i){r!==i&&this.incrementBucket(r,this.backing.emptyBucket(i))}};No.Buckets=ju;var qu=class o{constructor(r=[0]){this._counts=r}get length(){return this._counts.length}countAt(r){return this._counts[r]}growTo(r,i,c){let a=new Array(r).fill(0);a.splice(c,this._counts.length-i,...this._counts.slice(i)),a.splice(0,i,...this._counts.slice(0,i)),this._counts=a}reverse(r,i){let c=Math.floor((r+i)/2)-r;for(let a=0;a<c;a++){let u=this._counts[r+a];this._counts[r+a]=this._counts[i-a-1],this._counts[i-a-1]=u}}emptyBucket(r){let i=this._counts[r];return this._counts[r]=0,i}increment(r,i){this._counts[r]+=i}decrement(r,i){this._counts[r]>=i?this._counts[r]-=i:this._counts[r]=0}clone(){return new o([...this._counts])}}});var zu=S(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Q.getSignificand=Q.getNormalBase2=Q.MIN_VALUE=Q.MAX_NORMAL_EXPONENT=Q.MIN_NORMAL_EXPONENT=Q.SIGNIFICAND_WIDTH=void 0;Q.SIGNIFICAND_WIDTH=52;var Vz=2146435072,wz=1048575,Wu=1023;Q.MIN_NORMAL_EXPONENT=-Wu+1;Q.MAX_NORMAL_EXPONENT=Wu;Q.MIN_VALUE=Math.pow(2,-1022);function Bz(o){let r=new DataView(new ArrayBuffer(8));return r.setFloat64(0,o),((r.getUint32(0)&Vz)>>20)-Wu}Q.getNormalBase2=Bz;function Gz(o){let r=new DataView(new ArrayBuffer(8));r.setFloat64(0,o);let i=r.getUint32(0),c=r.getUint32(4);return(i&wz)*Math.pow(2,32)+c}Q.getSignificand=Gz});var Ro=S(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.nextGreaterSquare=Kt.ldexp=void 0;function Hz(o,r){return o===0||o===Number.POSITIVE_INFINITY||o===Number.NEGATIVE_INFINITY||Number.isNaN(o)?o:o*Math.pow(2,r)}Kt.ldexp=Hz;function kz(o){return o--,o|=o>>1,o|=o>>2,o|=o>>4,o|=o>>8,o|=o>>16,o++,o}Kt.nextGreaterSquare=kz});var Po=S(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.MappingError=void 0;var Ju=class extends Error{};yo.MappingError=Ju});var _M=S(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.ExponentMapping=void 0;var jt=zu(),Yz=Ro(),pM=Po(),Xu=class{constructor(r){this._shift=-r}mapToIndex(r){if(r<jt.MIN_VALUE)return this._minNormalLowerBoundaryIndex();let i=jt.getNormalBase2(r),c=this._rightShift(jt.getSignificand(r)-1,jt.SIGNIFICAND_WIDTH);return i+c>>this._shift}lowerBoundary(r){let i=this._minNormalLowerBoundaryIndex();if(r<i)throw new pM.MappingError(`underflow: ${r} is < minimum lower boundary: ${i}`);let c=this._maxNormalLowerBoundaryIndex();if(r>c)throw new pM.MappingError(`overflow: ${r} is > maximum lower boundary: ${c}`);return Yz.ldexp(1,r<<this._shift)}get scale(){return this._shift===0?0:-this._shift}_minNormalLowerBoundaryIndex(){let r=jt.MIN_NORMAL_EXPONENT>>this._shift;return this._shift<2&&r--,r}_maxNormalLowerBoundaryIndex(){return jt.MAX_NORMAL_EXPONENT>>this._shift}_rightShift(r,i){return Math.floor(r*Math.pow(2,-i))}};Mo.ExponentMapping=Xu});var SM=S(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.LogarithmMapping=void 0;var qt=zu(),EM=Ro(),TM=Po(),$u=class{constructor(r){this._scale=r,this._scaleFactor=EM.ldexp(Math.LOG2E,r),this._inverseFactor=EM.ldexp(Math.LN2,-r)}mapToIndex(r){if(r<=qt.MIN_VALUE)return this._minNormalLowerBoundaryIndex()-1;if(qt.getSignificand(r)===0)return(qt.getNormalBase2(r)<<this._scale)-1;let i=Math.floor(Math.log(r)*this._scaleFactor),c=this._maxNormalLowerBoundaryIndex();return i>=c?c:i}lowerBoundary(r){let i=this._maxNormalLowerBoundaryIndex();if(r>=i){if(r===i)return 2*Math.exp((r-(1<<this._scale))/this._scaleFactor);throw new TM.MappingError(`overflow: ${r} is > maximum lower boundary: ${i}`)}let c=this._minNormalLowerBoundaryIndex();if(r<=c){if(r===c)return qt.MIN_VALUE;if(r===c-1)return Math.exp((r+(1<<this._scale))/this._scaleFactor)/2;throw new TM.MappingError(`overflow: ${r} is < minimum lower boundary: ${c}`)}return Math.exp(r*this._inverseFactor)}get scale(){return this._scale}_minNormalLowerBoundaryIndex(){return qt.MIN_NORMAL_EXPONENT<<this._scale}_maxNormalLowerBoundaryIndex(){return(qt.MAX_NORMAL_EXPONENT+1<<this._scale)-1}};go.LogarithmMapping=$u});var AM=S(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.getMapping=void 0;var Fz=_M(),Kz=SM(),jz=Po(),fM=-10,dM=20,qz=Array.from({length:31},(o,r)=>r>10?new Kz.LogarithmMapping(r-10):new Fz.ExponentMapping(r-10));function Wz(o){if(o>dM||o<fM)throw new jz.MappingError(`expected scale >= ${fM} && <= ${dM}, got: ${o}`);return qz[o+10]}Lo.getMapping=Wz});var mM=S(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.ExponentialHistogramAggregator=zt.ExponentialHistogramAccumulation=void 0;var zz=kt(),Jz=Ht(),Xz=(m(),N(y)),Io=Ue(),vM=lM(),OM=AM(),$z=Ro(),Wt=class o{constructor(r,i){this.low=r,this.high=i}static combine(r,i){return new o(Math.min(r.low,i.low),Math.max(r.high,i.high))}},Qz=20,Zz=160,Qu=2,Co=class o{constructor(r=r,i=Zz,c=!0,a=0,u=0,t=0,e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY,s=new vM.Buckets,l=new vM.Buckets,E=(0,OM.getMapping)(Qz)){this.startTime=r,this._maxSize=i,this._recordMinMax=c,this._sum=a,this._count=u,this._zeroCount=t,this._min=e,this._max=n,this._positive=s,this._negative=l,this._mapping=E,this._maxSize<Qu&&(Xz.diag.warn(`Exponential Histogram Max Size set to ${this._maxSize}, changing to the minimum size of: ${Qu}`),this._maxSize=Qu)}record(r){this.updateByIncrement(r,1)}setStartTime(r){this.startTime=r}toPointValue(){return{hasMinMax:this._recordMinMax,min:this.min,max:this.max,sum:this.sum,positive:{offset:this.positive.offset,bucketCounts:this.positive.counts()},negative:{offset:this.negative.offset,bucketCounts:this.negative.counts()},count:this.count,scale:this.scale,zeroCount:this.zeroCount}}get sum(){return this._sum}get min(){return this._min}get max(){return this._max}get count(){return this._count}get zeroCount(){return this._zeroCount}get scale(){return this._count===this._zeroCount?0:this._mapping.scale}get positive(){return this._positive}get negative(){return this._negative}updateByIncrement(r,i){if(!Number.isNaN(r)){if(r>this._max&&(this._max=r),r<this._min&&(this._min=r),this._count+=i,r===0){this._zeroCount+=i;return}this._sum+=r*i,r>0?this._updateBuckets(this._positive,r,i):this._updateBuckets(this._negative,-r,i)}}merge(r){this._count===0?(this._min=r.min,this._max=r.max):r.count!==0&&(r.min<this.min&&(this._min=r.min),r.max>this.max&&(this._max=r.max)),this.startTime=r.startTime,this._sum+=r.sum,this._count+=r.count,this._zeroCount+=r.zeroCount;let i=this._minScale(r);this._downscale(this.scale-i),this._mergeBuckets(this.positive,r,r.positive,i),this._mergeBuckets(this.negative,r,r.negative,i)}diff(r){this._min=1/0,this._max=-1/0,this._sum-=r.sum,this._count-=r.count,this._zeroCount-=r.zeroCount;let i=this._minScale(r);this._downscale(this.scale-i),this._diffBuckets(this.positive,r,r.positive,i),this._diffBuckets(this.negative,r,r.negative,i)}clone(){return new o(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(r,i,c){let a=this._mapping.mapToIndex(i),u=!1,t=0,e=0;if(r.length===0?(r.indexStart=a,r.indexEnd=r.indexStart,r.indexBase=r.indexStart):a<r.indexStart&&r.indexEnd-a>=this._maxSize?(u=!0,e=a,t=r.indexEnd):a>r.indexEnd&&a-r.indexStart>=this._maxSize&&(u=!0,e=r.indexStart,t=a),u){let n=this._changeScale(t,e);this._downscale(n),a=this._mapping.mapToIndex(i)}this._incrementIndexBy(r,a,c)}_incrementIndexBy(r,i,c){if(c===0)return;if(r.length===0&&(r.indexStart=r.indexEnd=r.indexBase=i),i<r.indexStart){let u=r.indexEnd-i;u>=r.backing.length&&this._grow(r,u+1),r.indexStart=i}else if(i>r.indexEnd){let u=i-r.indexStart;u>=r.backing.length&&this._grow(r,u+1),r.indexEnd=i}let a=i-r.indexBase;a<0&&(a+=r.backing.length),r.incrementBucket(a,c)}_grow(r,i){let c=r.backing.length,a=r.indexBase-r.indexStart,u=c-a,t=(0,$z.nextGreaterSquare)(i);t>this._maxSize&&(t=this._maxSize);let e=t-a;r.backing.growTo(t,u,e)}_changeScale(r,i){let c=0;for(;r-i>=this._maxSize;)r>>=1,i>>=1,c++;return c}_downscale(r){if(r===0)return;if(r<0)throw new Error(`impossible change of scale: ${this.scale}`);let i=this._mapping.scale-r;this._positive.downscale(r),this._negative.downscale(r),this._mapping=(0,OM.getMapping)(i)}_minScale(r){let i=Math.min(this.scale,r.scale),c=Wt.combine(this._highLowAtScale(this.positive,this.scale,i),this._highLowAtScale(r.positive,r.scale,i)),a=Wt.combine(this._highLowAtScale(this.negative,this.scale,i),this._highLowAtScale(r.negative,r.scale,i));return Math.min(i-this._changeScale(c.high,c.low),i-this._changeScale(a.high,a.low))}_highLowAtScale(r,i,c){if(r.length===0)return new Wt(0,-1);let a=i-c;return new Wt(r.indexStart>>a,r.indexEnd>>a)}_mergeBuckets(r,i,c,a){let u=c.offset,t=i.scale-a;for(let e=0;e<c.length;e++)this._incrementIndexBy(r,u+e>>t,c.at(e))}_diffBuckets(r,i,c,a){let u=c.offset,t=i.scale-a;for(let e=0;e<c.length;e++){let s=(u+e>>t)-r.indexBase;s<0&&(s+=r.backing.length),r.decrementBucket(s,c.at(e))}r.trim()}};zt.ExponentialHistogramAccumulation=Co;var Zu=class{constructor(r,i){this._maxSize=r,this._recordMinMax=i,this.kind=zz.AggregatorKind.EXPONENTIAL_HISTOGRAM}createAccumulation(r){return new Co(r,this._maxSize,this._recordMinMax)}merge(r,i){let c=i.clone();return c.merge(r),c}diff(r,i){let c=i.clone();return c.diff(r),c}toMetricData(r,i,c,a){return{descriptor:r,aggregationTemporality:i,dataPointType:Jz.DataPointType.EXPONENTIAL_HISTOGRAM,dataPoints:c.map(([u,t])=>{let e=t.toPointValue(),n=r.type===Io.InstrumentType.GAUGE||r.type===Io.InstrumentType.UP_DOWN_COUNTER||r.type===Io.InstrumentType.OBSERVABLE_GAUGE||r.type===Io.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:u,startTime:t.startTime,endTime:a,value:{min:e.hasMinMax?e.min:void 0,max:e.hasMinMax?e.max:void 0,sum:n?void 0:e.sum,positive:{offset:e.positive.offset,bucketCounts:e.positive.bucketCounts},negative:{offset:e.negative.offset,bucketCounts:e.negative.bucketCounts},count:e.count,scale:e.scale,zeroCount:e.zeroCount}}})}}};zt.ExponentialHistogramAggregator=Zu});var hM=S(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.LastValueAggregator=Xt.LastValueAccumulation=void 0;var eJ=kt(),Ir=x(),tJ=Ht(),Jt=class{constructor(r,i=0,c=[0,0]){this.startTime=r,this._current=i,this.sampleTime=c}record(r){this._current=r,this.sampleTime=(0,Ir.millisToHrTime)(Date.now())}setStartTime(r){this.startTime=r}toPointValue(){return this._current}};Xt.LastValueAccumulation=Jt;var es=class{constructor(){this.kind=eJ.AggregatorKind.LAST_VALUE}createAccumulation(r){return new Jt(r)}merge(r,i){let c=(0,Ir.hrTimeToMicroseconds)(i.sampleTime)>=(0,Ir.hrTimeToMicroseconds)(r.sampleTime)?i:r;return new Jt(r.startTime,c.toPointValue(),c.sampleTime)}diff(r,i){let c=(0,Ir.hrTimeToMicroseconds)(i.sampleTime)>=(0,Ir.hrTimeToMicroseconds)(r.sampleTime)?i:r;return new Jt(i.startTime,c.toPointValue(),c.sampleTime)}toMetricData(r,i,c,a){return{descriptor:r,aggregationTemporality:i,dataPointType:tJ.DataPointType.GAUGE,dataPoints:c.map(([u,t])=>({attributes:u,startTime:t.startTime,endTime:a,value:t.toPointValue()}))}}};Xt.LastValueAggregator=es});var NM=S($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.SumAggregator=$t.SumAccumulation=void 0;var rJ=kt(),nJ=Ht(),je=class{constructor(r,i,c=0,a=!1){this.startTime=r,this.monotonic=i,this._current=c,this.reset=a}record(r){this.monotonic&&r<0||(this._current+=r)}setStartTime(r){this.startTime=r}toPointValue(){return this._current}};$t.SumAccumulation=je;var ts=class{constructor(r){this.monotonic=r,this.kind=rJ.AggregatorKind.SUM}createAccumulation(r){return new je(r,this.monotonic)}merge(r,i){let c=r.toPointValue(),a=i.toPointValue();return i.reset?new je(i.startTime,this.monotonic,a,i.reset):new je(r.startTime,this.monotonic,c+a)}diff(r,i){let c=r.toPointValue(),a=i.toPointValue();return this.monotonic&&c>a?new je(i.startTime,this.monotonic,a,!0):new je(i.startTime,this.monotonic,a-c)}toMetricData(r,i,c,a){return{descriptor:r,aggregationTemporality:i,dataPointType:nJ.DataPointType.SUM,dataPoints:c.map(([u,t])=>({attributes:u,startTime:t.startTime,endTime:a,value:t.toPointValue()})),isMonotonic:this.monotonic}}};$t.SumAggregator=ts});var gM=S(B=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});B.SumAggregator=B.SumAccumulation=B.LastValueAggregator=B.LastValueAccumulation=B.ExponentialHistogramAggregator=B.ExponentialHistogramAccumulation=B.HistogramAggregator=B.HistogramAccumulation=B.DropAggregator=void 0;var oJ=aM();Object.defineProperty(B,"DropAggregator",{enumerable:!0,get:function(){return oJ.DropAggregator}});var RM=cM();Object.defineProperty(B,"HistogramAccumulation",{enumerable:!0,get:function(){return RM.HistogramAccumulation}});Object.defineProperty(B,"HistogramAggregator",{enumerable:!0,get:function(){return RM.HistogramAggregator}});var yM=mM();Object.defineProperty(B,"ExponentialHistogramAccumulation",{enumerable:!0,get:function(){return yM.ExponentialHistogramAccumulation}});Object.defineProperty(B,"ExponentialHistogramAggregator",{enumerable:!0,get:function(){return yM.ExponentialHistogramAggregator}});var PM=hM();Object.defineProperty(B,"LastValueAccumulation",{enumerable:!0,get:function(){return PM.LastValueAccumulation}});Object.defineProperty(B,"LastValueAggregator",{enumerable:!0,get:function(){return PM.LastValueAggregator}});var MM=NM();Object.defineProperty(B,"SumAccumulation",{enumerable:!0,get:function(){return MM.SumAccumulation}});Object.defineProperty(B,"SumAggregator",{enumerable:!0,get:function(){return MM.SumAggregator}})});var Do=S(F=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.DefaultAggregation=F.ExponentialHistogramAggregation=F.ExplicitBucketHistogramAggregation=F.HistogramAggregation=F.LastValueAggregation=F.SumAggregation=F.DropAggregation=F.Aggregation=void 0;var iJ=(m(),N(y)),ut=gM(),Re=Ue(),ye=class{static Drop(){return LM}static Sum(){return IM}static LastValue(){return CM}static Histogram(){return xM}static ExponentialHistogram(){return aJ}static Default(){return uJ}};F.Aggregation=ye;var Cr=class o extends ye{createAggregator(r){return o.DEFAULT_INSTANCE}};F.DropAggregation=Cr;Cr.DEFAULT_INSTANCE=new ut.DropAggregator;var Qt=class o extends ye{createAggregator(r){switch(r.type){case Re.InstrumentType.COUNTER:case Re.InstrumentType.OBSERVABLE_COUNTER:case Re.InstrumentType.HISTOGRAM:return o.MONOTONIC_INSTANCE;default:return o.NON_MONOTONIC_INSTANCE}}};F.SumAggregation=Qt;Qt.MONOTONIC_INSTANCE=new ut.SumAggregator(!0);Qt.NON_MONOTONIC_INSTANCE=new ut.SumAggregator(!1);var xr=class o extends ye{createAggregator(r){return o.DEFAULT_INSTANCE}};F.LastValueAggregation=xr;xr.DEFAULT_INSTANCE=new ut.LastValueAggregator;var br=class o extends ye{createAggregator(r){return o.DEFAULT_INSTANCE}};F.HistogramAggregation=br;br.DEFAULT_INSTANCE=new ut.HistogramAggregator([0,5,10,25,50,75,100,250,500,750,1e3,2500,5e3,7500,1e4],!0);var xo=class extends ye{constructor(r,i=!0){if(super(),this._recordMinMax=i,r==null)throw new Error("ExplicitBucketHistogramAggregation should be created with explicit boundaries, if a single bucket histogram is required, please pass an empty array");r=r.concat(),r=r.sort((u,t)=>u-t);let c=r.lastIndexOf(-1/0),a=r.indexOf(1/0);a===-1&&(a=void 0),this._boundaries=r.slice(c+1,a)}createAggregator(r){return new ut.HistogramAggregator(this._boundaries,this._recordMinMax)}};F.ExplicitBucketHistogramAggregation=xo;var bo=class extends ye{constructor(r=160,i=!0){super(),this._maxSize=r,this._recordMinMax=i}createAggregator(r){return new ut.ExponentialHistogramAggregator(this._maxSize,this._recordMinMax)}};F.ExponentialHistogramAggregation=bo;var Uo=class extends ye{_resolve(r){switch(r.type){case Re.InstrumentType.COUNTER:case Re.InstrumentType.UP_DOWN_COUNTER:case Re.InstrumentType.OBSERVABLE_COUNTER:case Re.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER:return IM;case Re.InstrumentType.GAUGE:case Re.InstrumentType.OBSERVABLE_GAUGE:return CM;case Re.InstrumentType.HISTOGRAM:return r.advice.explicitBucketBoundaries?new xo(r.advice.explicitBucketBoundaries):xM}return iJ.diag.warn(`Unable to recognize instrument type: ${r.type}`),LM}createAggregator(r){return this._resolve(r).createAggregator(r)}};F.DefaultAggregation=Uo;var LM=new Cr,IM=new Qt,CM=new xr,xM=new br,aJ=new bo,uJ=new Uo});var rs=S(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR=Zt.DEFAULT_AGGREGATION_SELECTOR=void 0;var sJ=Do(),cJ=vo(),lJ=o=>sJ.Aggregation.Default();Zt.DEFAULT_AGGREGATION_SELECTOR=lJ;var pJ=o=>cJ.AggregationTemporality.CUMULATIVE;Zt.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR=pJ});var os=S(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.MetricReader=void 0;var bM=(m(),N(y)),Vo=Ee(),UM=rs(),ns=class{constructor(r){var i,c,a;this._shutdown=!1,this._aggregationSelector=(i=r?.aggregationSelector)!==null&&i!==void 0?i:UM.DEFAULT_AGGREGATION_SELECTOR,this._aggregationTemporalitySelector=(c=r?.aggregationTemporalitySelector)!==null&&c!==void 0?c:UM.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR,this._metricProducers=(a=r?.metricProducers)!==null&&a!==void 0?a:[],this._cardinalitySelector=r?.cardinalitySelector}setMetricProducer(r){if(this._sdkMetricProducer)throw new Error("MetricReader can not be bound to a MeterProvider again.");this._sdkMetricProducer=r,this.onInitialized()}selectAggregation(r){return this._aggregationSelector(r)}selectAggregationTemporality(r){return this._aggregationTemporalitySelector(r)}selectCardinalityLimit(r){return this._cardinalitySelector?this._cardinalitySelector(r):2e3}onInitialized(){}async collect(r){if(this._sdkMetricProducer===void 0)throw new Error("MetricReader is not bound to a MetricProducer");if(this._shutdown)throw new Error("MetricReader is shutdown");let[i,...c]=await Promise.all([this._sdkMetricProducer.collect({timeoutMillis:r?.timeoutMillis}),...this._metricProducers.map(e=>e.collect({timeoutMillis:r?.timeoutMillis}))]),a=i.errors.concat((0,Vo.FlatMap)(c,e=>e.errors)),u=i.resourceMetrics.resource,t=i.resourceMetrics.scopeMetrics.concat((0,Vo.FlatMap)(c,e=>e.resourceMetrics.scopeMetrics));return{resourceMetrics:{resource:u,scopeMetrics:t},errors:a}}async shutdown(r){if(this._shutdown){bM.diag.error("Cannot call shutdown twice.");return}r?.timeoutMillis==null?await this.onShutdown():await(0,Vo.callWithTimeout)(this.onShutdown(),r.timeoutMillis),this._shutdown=!0}async forceFlush(r){if(this._shutdown){bM.diag.warn("Cannot forceFlush on already shutdown MetricReader.");return}if(r?.timeoutMillis==null){await this.onForceFlush();return}await(0,Vo.callWithTimeout)(this.onForceFlush(),r.timeoutMillis)}};wo.MetricReader=ns});var VM=S(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.PeriodicExportingMetricReader=void 0;var is=(m(),N(y)),Ur=x(),_J=os(),DM=Ee(),as=class extends _J.MetricReader{constructor(r){var i,c,a,u;if(super({aggregationSelector:(i=r.exporter.selectAggregation)===null||i===void 0?void 0:i.bind(r.exporter),aggregationTemporalitySelector:(c=r.exporter.selectAggregationTemporality)===null||c===void 0?void 0:c.bind(r.exporter),metricProducers:r.metricProducers}),r.exportIntervalMillis!==void 0&&r.exportIntervalMillis<=0)throw Error("exportIntervalMillis must be greater than 0");if(r.exportTimeoutMillis!==void 0&&r.exportTimeoutMillis<=0)throw Error("exportTimeoutMillis must be greater than 0");if(r.exportTimeoutMillis!==void 0&&r.exportIntervalMillis!==void 0&&r.exportIntervalMillis<r.exportTimeoutMillis)throw Error("exportIntervalMillis must be greater than or equal to exportTimeoutMillis");this._exportInterval=(a=r.exportIntervalMillis)!==null&&a!==void 0?a:6e4,this._exportTimeout=(u=r.exportTimeoutMillis)!==null&&u!==void 0?u:3e4,this._exporter=r.exporter}async _runOnce(){try{await(0,DM.callWithTimeout)(this._doRun(),this._exportTimeout)}catch(r){if(r instanceof DM.TimeoutError){is.diag.error("Export took longer than %s milliseconds and timed out.",this._exportTimeout);return}(0,Ur.globalErrorHandler)(r)}}async _doRun(){var r,i;let{resourceMetrics:c,errors:a}=await this.collect({timeoutMillis:this._exportTimeout});if(a.length>0&&is.diag.error("PeriodicExportingMetricReader: metrics collection errors",...a),c.resource.asyncAttributesPending)try{await((i=(r=c.resource).waitForAsyncAttributes)===null||i===void 0?void 0:i.call(r))}catch(t){is.diag.debug("Error while resolving async portion of resource: ",t),(0,Ur.globalErrorHandler)(t)}if(c.scopeMetrics.length===0)return;let u=await Ur.internal._export(this._exporter,c);if(u.code!==Ur.ExportResultCode.SUCCESS)throw new Error(`PeriodicExportingMetricReader: metrics export failed (error ${u.error})`)}onInitialized(){this._interval=setInterval(()=>{this._runOnce()},this._exportInterval),(0,Ur.unrefTimer)(this._interval)}async onForceFlush(){await this._runOnce(),await this._exporter.forceFlush()}async onShutdown(){this._interval&&clearInterval(this._interval),await this.onForceFlush(),await this._exporter.shutdown()}};Bo.PeriodicExportingMetricReader=as});var BM=S(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.InMemoryMetricExporter=void 0;var wM=x(),us=class{constructor(r){this._shutdown=!1,this._metrics=[],this._aggregationTemporality=r}export(r,i){if(this._shutdown){setTimeout(()=>i({code:wM.ExportResultCode.FAILED}),0);return}this._metrics.push(r),setTimeout(()=>i({code:wM.ExportResultCode.SUCCESS}),0)}getMetrics(){return this._metrics}forceFlush(){return Promise.resolve()}reset(){this._metrics=[]}selectAggregationTemporality(r){return this._aggregationTemporality}shutdown(){return this._shutdown=!0,Promise.resolve()}};Go.InMemoryMetricExporter=us});var HM=S(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.ConsoleMetricExporter=void 0;var GM=x(),EJ=rs(),ss=class o{constructor(r){var i;this._shutdown=!1,this._temporalitySelector=(i=r?.temporalitySelector)!==null&&i!==void 0?i:EJ.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR}export(r,i){if(this._shutdown){setImmediate(i,{code:GM.ExportResultCode.FAILED});return}return o._sendMetrics(r,i)}forceFlush(){return Promise.resolve()}selectAggregationTemporality(r){return this._temporalitySelector(r)}shutdown(){return this._shutdown=!0,Promise.resolve()}static _sendMetrics(r,i){for(let c of r.scopeMetrics)for(let a of c.metrics)console.dir({descriptor:a.descriptor,dataPointType:a.dataPointType,dataPoints:a.dataPoints},{depth:null});i({code:GM.ExportResultCode.SUCCESS})}};Ho.ConsoleMetricExporter=ss});var kM=S(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.ViewRegistry=void 0;var cs=class{constructor(){this._registeredViews=[]}addView(r){this._registeredViews.push(r)}findViews(r,i){return this._registeredViews.filter(a=>this._matchInstrument(a.instrumentSelector,r)&&this._matchMeter(a.meterSelector,i))}_matchInstrument(r,i){return(r.getType()===void 0||i.type===r.getType())&&r.getNameFilter().match(i.name)&&r.getUnitFilter().match(i.unit)}_matchMeter(r,i){return r.getNameFilter().match(i.name)&&(i.version===void 0||r.getVersionFilter().match(i.version))&&(i.schemaUrl===void 0||r.getSchemaUrlFilter().match(i.schemaUrl))}};ko.ViewRegistry=cs});var Yo=S(b=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});b.isObservableInstrument=b.ObservableUpDownCounterInstrument=b.ObservableGaugeInstrument=b.ObservableCounterInstrument=b.ObservableInstrument=b.HistogramInstrument=b.GaugeInstrument=b.CounterInstrument=b.UpDownCounterInstrument=b.SyncInstrument=void 0;var er=(m(),N(y)),TJ=x(),st=class{constructor(r,i){this._writableMetricStorage=r,this._descriptor=i}_record(r,i={},c=er.context.active()){if(typeof r!="number"){er.diag.warn(`non-number value provided to metric ${this._descriptor.name}: ${r}`);return}this._descriptor.valueType===er.ValueType.INT&&!Number.isInteger(r)&&(er.diag.warn(`INT value type cannot accept a floating-point value for ${this._descriptor.name}, ignoring the fractional digits.`),r=Math.trunc(r),!Number.isInteger(r))||this._writableMetricStorage.record(r,i,c,(0,TJ.millisToHrTime)(Date.now()))}};b.SyncInstrument=st;var ls=class extends st{add(r,i,c){this._record(r,i,c)}};b.UpDownCounterInstrument=ls;var ps=class extends st{add(r,i,c){if(r<0){er.diag.warn(`negative value provided to counter ${this._descriptor.name}: ${r}`);return}this._record(r,i,c)}};b.CounterInstrument=ps;var _s=class extends st{record(r,i,c){this._record(r,i,c)}};b.GaugeInstrument=_s;var Es=class extends st{record(r,i,c){if(r<0){er.diag.warn(`negative value provided to histogram ${this._descriptor.name}: ${r}`);return}this._record(r,i,c)}};b.HistogramInstrument=Es;var ct=class{constructor(r,i,c){this._observableRegistry=c,this._descriptor=r,this._metricStorages=i}addCallback(r){this._observableRegistry.addCallback(r,this)}removeCallback(r){this._observableRegistry.removeCallback(r,this)}};b.ObservableInstrument=ct;var Ts=class extends ct{};b.ObservableCounterInstrument=Ts;var Ss=class extends ct{};b.ObservableGaugeInstrument=Ss;var fs=class extends ct{};b.ObservableUpDownCounterInstrument=fs;function SJ(o){return o instanceof ct}b.isObservableInstrument=SJ});var YM=S(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.Meter=void 0;var Z=Ue(),lt=Yo(),ds=class{constructor(r){this._meterSharedState=r}createGauge(r,i){let c=(0,Z.createInstrumentDescriptor)(r,Z.InstrumentType.GAUGE,i),a=this._meterSharedState.registerMetricStorage(c);return new lt.GaugeInstrument(a,c)}createHistogram(r,i){let c=(0,Z.createInstrumentDescriptor)(r,Z.InstrumentType.HISTOGRAM,i),a=this._meterSharedState.registerMetricStorage(c);return new lt.HistogramInstrument(a,c)}createCounter(r,i){let c=(0,Z.createInstrumentDescriptor)(r,Z.InstrumentType.COUNTER,i),a=this._meterSharedState.registerMetricStorage(c);return new lt.CounterInstrument(a,c)}createUpDownCounter(r,i){let c=(0,Z.createInstrumentDescriptor)(r,Z.InstrumentType.UP_DOWN_COUNTER,i),a=this._meterSharedState.registerMetricStorage(c);return new lt.UpDownCounterInstrument(a,c)}createObservableGauge(r,i){let c=(0,Z.createInstrumentDescriptor)(r,Z.InstrumentType.OBSERVABLE_GAUGE,i),a=this._meterSharedState.registerAsyncMetricStorage(c);return new lt.ObservableGaugeInstrument(c,a,this._meterSharedState.observableRegistry)}createObservableCounter(r,i){let c=(0,Z.createInstrumentDescriptor)(r,Z.InstrumentType.OBSERVABLE_COUNTER,i),a=this._meterSharedState.registerAsyncMetricStorage(c);return new lt.ObservableCounterInstrument(c,a,this._meterSharedState.observableRegistry)}createObservableUpDownCounter(r,i){let c=(0,Z.createInstrumentDescriptor)(r,Z.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER,i),a=this._meterSharedState.registerAsyncMetricStorage(c);return new lt.ObservableUpDownCounterInstrument(c,a,this._meterSharedState.observableRegistry)}addBatchObservableCallback(r,i){this._meterSharedState.observableRegistry.addBatchCallback(r,i)}removeBatchObservableCallback(r,i){this._meterSharedState.observableRegistry.removeBatchCallback(r,i)}};Fo.Meter=ds});var vs=S(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.MetricStorage=void 0;var fJ=Ue(),As=class{constructor(r){this._instrumentDescriptor=r}getInstrumentDescriptor(){return this._instrumentDescriptor}updateDescription(r){this._instrumentDescriptor=(0,fJ.createInstrumentDescriptor)(this._instrumentDescriptor.name,this._instrumentDescriptor.type,{description:r,valueType:this._instrumentDescriptor.valueType,unit:this._instrumentDescriptor.unit,advice:this._instrumentDescriptor.advice})}};Ko.MetricStorage=As});var Dr=S(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.AttributeHashMap=tr.HashMap=void 0;var dJ=Ee(),jo=class{constructor(r){this._hash=r,this._valueMap=new Map,this._keyMap=new Map}get(r,i){return i??(i=this._hash(r)),this._valueMap.get(i)}getOrDefault(r,i){let c=this._hash(r);if(this._valueMap.has(c))return this._valueMap.get(c);let a=i();return this._keyMap.has(c)||this._keyMap.set(c,r),this._valueMap.set(c,a),a}set(r,i,c){c??(c=this._hash(r)),this._keyMap.has(c)||this._keyMap.set(c,r),this._valueMap.set(c,i)}has(r,i){return i??(i=this._hash(r)),this._valueMap.has(i)}*keys(){let r=this._keyMap.entries(),i=r.next();for(;i.done!==!0;)yield[i.value[1],i.value[0]],i=r.next()}*entries(){let r=this._valueMap.entries(),i=r.next();for(;i.done!==!0;)yield[this._keyMap.get(i.value[0]),i.value[1],i.value[0]],i=r.next()}get size(){return this._valueMap.size}};tr.HashMap=jo;var Os=class extends jo{constructor(){super(dJ.hashAttributes)}};tr.AttributeHashMap=Os});var Ns=S(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.DeltaMetricProcessor=void 0;var AJ=Ee(),ms=Dr(),hs=class{constructor(r,i){this._aggregator=r,this._activeCollectionStorage=new ms.AttributeHashMap,this._cumulativeMemoStorage=new ms.AttributeHashMap,this._overflowAttributes={"otel.metric.overflow":!0},this._cardinalityLimit=(i??2e3)-1,this._overflowHashCode=(0,AJ.hashAttributes)(this._overflowAttributes)}record(r,i,c,a){let u=this._activeCollectionStorage.get(i);if(!u){if(this._activeCollectionStorage.size>=this._cardinalityLimit){let t=this._activeCollectionStorage.getOrDefault(this._overflowAttributes,()=>this._aggregator.createAccumulation(a));t?.record(r);return}u=this._aggregator.createAccumulation(a),this._activeCollectionStorage.set(i,u)}u?.record(r)}batchCumulate(r,i){Array.from(r.entries()).forEach(([c,a,u])=>{let t=this._aggregator.createAccumulation(i);t?.record(a);let e=t;if(this._cumulativeMemoStorage.has(c,u)){let n=this._cumulativeMemoStorage.get(c,u);e=this._aggregator.diff(n,t)}else if(this._cumulativeMemoStorage.size>=this._cardinalityLimit&&(c=this._overflowAttributes,u=this._overflowHashCode,this._cumulativeMemoStorage.has(c,u))){let n=this._cumulativeMemoStorage.get(c,u);e=this._aggregator.diff(n,t)}if(this._activeCollectionStorage.has(c,u)){let n=this._activeCollectionStorage.get(c,u);e=this._aggregator.merge(n,e)}this._cumulativeMemoStorage.set(c,t,u),this._activeCollectionStorage.set(c,e,u)})}collect(){let r=this._activeCollectionStorage;return this._activeCollectionStorage=new ms.AttributeHashMap,r}};qo.DeltaMetricProcessor=hs});var ys=S(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.TemporalMetricProcessor=void 0;var vJ=vo(),OJ=Dr(),Rs=class o{constructor(r,i){this._aggregator=r,this._unreportedAccumulations=new Map,this._reportHistory=new Map,i.forEach(c=>{this._unreportedAccumulations.set(c,[])})}buildMetrics(r,i,c,a){this._stashAccumulations(c);let u=this._getMergedUnreportedAccumulations(r),t=u,e;if(this._reportHistory.has(r)){let s=this._reportHistory.get(r),l=s.collectionTime;e=s.aggregationTemporality,e===vJ.AggregationTemporality.CUMULATIVE?t=o.merge(s.accumulations,u,this._aggregator):t=o.calibrateStartTime(s.accumulations,u,l)}else e=r.selectAggregationTemporality(i.type);this._reportHistory.set(r,{accumulations:t,collectionTime:a,aggregationTemporality:e});let n=mJ(t);if(n.length!==0)return this._aggregator.toMetricData(i,e,n,a)}_stashAccumulations(r){let i=this._unreportedAccumulations.keys();for(let c of i){let a=this._unreportedAccumulations.get(c);a===void 0&&(a=[],this._unreportedAccumulations.set(c,a)),a.push(r)}}_getMergedUnreportedAccumulations(r){let i=new OJ.AttributeHashMap,c=this._unreportedAccumulations.get(r);if(this._unreportedAccumulations.set(r,[]),c===void 0)return i;for(let a of c)i=o.merge(i,a,this._aggregator);return i}static merge(r,i,c){let a=r,u=i.entries(),t=u.next();for(;t.done!==!0;){let[e,n,s]=t.value;if(r.has(e,s)){let l=r.get(e,s),E=c.merge(l,n);a.set(e,E,s)}else a.set(e,n,s);t=u.next()}return a}static calibrateStartTime(r,i,c){for(let[a,u]of r.keys()){let t=i.get(a,u);t?.setStartTime(c)}return i}};Wo.TemporalMetricProcessor=Rs;function mJ(o){return Array.from(o.entries())}});var FM=S(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.AsyncMetricStorage=void 0;var hJ=vs(),NJ=Ns(),RJ=ys(),yJ=Dr(),Ps=class extends hJ.MetricStorage{constructor(r,i,c,a,u){super(r),this._attributesProcessor=c,this._aggregationCardinalityLimit=u,this._deltaMetricStorage=new NJ.DeltaMetricProcessor(i,this._aggregationCardinalityLimit),this._temporalMetricStorage=new RJ.TemporalMetricProcessor(i,a)}record(r,i){let c=new yJ.AttributeHashMap;Array.from(r.entries()).forEach(([a,u])=>{c.set(this._attributesProcessor.process(a),u)}),this._deltaMetricStorage.batchCumulate(c,i)}collect(r,i){let c=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(r,this._instrumentDescriptor,c,i)}};zo.AsyncMetricStorage=Ps});var zM=S(ee=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});ee.getConflictResolutionRecipe=ee.getDescriptionResolutionRecipe=ee.getTypeConflictResolutionRecipe=ee.getUnitConflictResolutionRecipe=ee.getValueTypeConflictResolutionRecipe=ee.getIncompatibilityDetails=void 0;function PJ(o,r){let i="";return o.unit!==r.unit&&(i+=` - Unit '${o.unit}' does not match '${r.unit}'
4
4
  `),o.type!==r.type&&(i+=` - Type '${o.type}' does not match '${r.type}'
5
5
  `),o.valueType!==r.valueType&&(i+=` - Value Type '${o.valueType}' does not match '${r.valueType}'
6
6
  `),o.description!==r.description&&(i+=` - Description '${o.description}' does not match '${r.description}'
7
- `),i}ee.getIncompatibilityDetails=vJ;function DM(o,r){return` - use valueType '${o.valueType}' on instrument creation or use an instrument name other than '${r.name}'`}ee.getValueTypeConflictResolutionRecipe=DM;function VM(o,r){return` - use unit '${o.unit}' on instrument creation or use an instrument name other than '${r.name}'`}ee.getUnitConflictResolutionRecipe=VM;function wM(o,r){let i={name:r.name,type:r.type,unit:r.unit},c=JSON.stringify(i);return` - create a new view with a name other than '${o.name}' and InstrumentSelector '${c}'`}ee.getTypeConflictResolutionRecipe=wM;function BM(o,r){let i={name:r.name,type:r.type,unit:r.unit},c=JSON.stringify(i);return` - create a new view with a name other than '${o.name}' and InstrumentSelector '${c}'
7
+ `),i}ee.getIncompatibilityDetails=PJ;function KM(o,r){return` - use valueType '${o.valueType}' on instrument creation or use an instrument name other than '${r.name}'`}ee.getValueTypeConflictResolutionRecipe=KM;function jM(o,r){return` - use unit '${o.unit}' on instrument creation or use an instrument name other than '${r.name}'`}ee.getUnitConflictResolutionRecipe=jM;function qM(o,r){let i={name:r.name,type:r.type,unit:r.unit},c=JSON.stringify(i);return` - create a new view with a name other than '${o.name}' and InstrumentSelector '${c}'`}ee.getTypeConflictResolutionRecipe=qM;function WM(o,r){let i={name:r.name,type:r.type,unit:r.unit},c=JSON.stringify(i);return` - create a new view with a name other than '${o.name}' and InstrumentSelector '${c}'
8
8
  - OR - create a new view with the name ${o.name} and description '${o.description}' and InstrumentSelector ${c}
9
- - OR - create a new view with the name ${r.name} and description '${o.description}' and InstrumentSelector ${c}`}ee.getDescriptionResolutionRecipe=BM;function OJ(o,r){return o.valueType!==r.valueType?DM(o,r):o.unit!==r.unit?VM(o,r):o.type!==r.type?wM(o,r):o.description!==r.description?BM(o,r):""}ee.getConflictResolutionRecipe=OJ});var kM=S(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.MetricStorageRegistry=void 0;var mJ=Ce(),HM=(m(),h(y)),Wo=GM(),As=class o{constructor(){this._sharedRegistry=new Map,this._perCollectorRegistry=new Map}static create(){return new o}getStorages(r){let i=[];for(let a of this._sharedRegistry.values())i=i.concat(a);let c=this._perCollectorRegistry.get(r);if(c!=null)for(let a of c.values())i=i.concat(a);return i}register(r){this._registerStorage(r,this._sharedRegistry)}registerForCollector(r,i){let c=this._perCollectorRegistry.get(r);c==null&&(c=new Map,this._perCollectorRegistry.set(r,c)),this._registerStorage(i,c)}findOrUpdateCompatibleStorage(r){let i=this._sharedRegistry.get(r.name);return i===void 0?null:this._findOrUpdateCompatibleStorage(r,i)}findOrUpdateCompatibleCollectorStorage(r,i){let c=this._perCollectorRegistry.get(r);if(c===void 0)return null;let a=c.get(i.name);return a===void 0?null:this._findOrUpdateCompatibleStorage(i,a)}_registerStorage(r,i){let c=r.getInstrumentDescriptor(),a=i.get(c.name);if(a===void 0){i.set(c.name,[r]);return}a.push(r)}_findOrUpdateCompatibleStorage(r,i){let c=null;for(let a of i){let u=a.getInstrumentDescriptor();(0,mJ.isDescriptorCompatibleWith)(u,r)?(u.description!==r.description&&(r.description.length>u.description.length&&a.updateDescription(r.description),HM.diag.warn("A view or instrument with the name ",r.name,` has already been registered, but has a different description and is incompatible with another registered view.
9
+ - OR - create a new view with the name ${r.name} and description '${o.description}' and InstrumentSelector ${c}`}ee.getDescriptionResolutionRecipe=WM;function MJ(o,r){return o.valueType!==r.valueType?KM(o,r):o.unit!==r.unit?jM(o,r):o.type!==r.type?qM(o,r):o.description!==r.description?WM(o,r):""}ee.getConflictResolutionRecipe=MJ});var XM=S(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.MetricStorageRegistry=void 0;var gJ=Ue(),JM=(m(),N(y)),Jo=zM(),Ms=class o{constructor(){this._sharedRegistry=new Map,this._perCollectorRegistry=new Map}static create(){return new o}getStorages(r){let i=[];for(let a of this._sharedRegistry.values())i=i.concat(a);let c=this._perCollectorRegistry.get(r);if(c!=null)for(let a of c.values())i=i.concat(a);return i}register(r){this._registerStorage(r,this._sharedRegistry)}registerForCollector(r,i){let c=this._perCollectorRegistry.get(r);c==null&&(c=new Map,this._perCollectorRegistry.set(r,c)),this._registerStorage(i,c)}findOrUpdateCompatibleStorage(r){let i=this._sharedRegistry.get(r.name);return i===void 0?null:this._findOrUpdateCompatibleStorage(r,i)}findOrUpdateCompatibleCollectorStorage(r,i){let c=this._perCollectorRegistry.get(r);if(c===void 0)return null;let a=c.get(i.name);return a===void 0?null:this._findOrUpdateCompatibleStorage(i,a)}_registerStorage(r,i){let c=r.getInstrumentDescriptor(),a=i.get(c.name);if(a===void 0){i.set(c.name,[r]);return}a.push(r)}_findOrUpdateCompatibleStorage(r,i){let c=null;for(let a of i){let u=a.getInstrumentDescriptor();(0,gJ.isDescriptorCompatibleWith)(u,r)?(u.description!==r.description&&(r.description.length>u.description.length&&a.updateDescription(r.description),JM.diag.warn("A view or instrument with the name ",r.name,` has already been registered, but has a different description and is incompatible with another registered view.
10
10
  `,`Details:
11
- `,(0,Wo.getIncompatibilityDetails)(u,r),`The longer description will be used.
12
- To resolve the conflict:`,(0,Wo.getConflictResolutionRecipe)(u,r))),c=a):HM.diag.warn("A view or instrument with the name ",r.name,` has already been registered and is incompatible with another registered view.
11
+ `,(0,Jo.getIncompatibilityDetails)(u,r),`The longer description will be used.
12
+ To resolve the conflict:`,(0,Jo.getConflictResolutionRecipe)(u,r))),c=a):JM.diag.warn("A view or instrument with the name ",r.name,` has already been registered and is incompatible with another registered view.
13
13
  `,`Details:
14
- `,(0,Wo.getIncompatibilityDetails)(u,r),`To resolve the conflict:
15
- `,(0,Wo.getConflictResolutionRecipe)(u,r))}return c}};zo.MetricStorageRegistry=As});var YM=S(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.MultiMetricStorage=void 0;var vs=class{constructor(r){this._backingStorages=r}record(r,i,c,a){this._backingStorages.forEach(u=>{u.record(r,i,c,a)})}};Jo.MultiMetricStorage=vs});var KM=S(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.BatchObservableResultImpl=rr.ObservableResultImpl=void 0;var tr=(m(),h(y)),FM=Ur(),NJ=Ho(),Os=class{constructor(r,i){this._instrumentName=r,this._valueType=i,this._buffer=new FM.AttributeHashMap}observe(r,i={}){if(typeof r!="number"){tr.diag.warn(`non-number value provided to metric ${this._instrumentName}: ${r}`);return}this._valueType===tr.ValueType.INT&&!Number.isInteger(r)&&(tr.diag.warn(`INT value type cannot accept a floating-point value for ${this._instrumentName}, ignoring the fractional digits.`),r=Math.trunc(r),!Number.isInteger(r))||this._buffer.set(i,r)}};rr.ObservableResultImpl=Os;var ms=class{constructor(){this._buffer=new Map}observe(r,i,c={}){if(!(0,NJ.isObservableInstrument)(r))return;let a=this._buffer.get(r);if(a==null&&(a=new FM.AttributeHashMap,this._buffer.set(r,a)),typeof i!="number"){tr.diag.warn(`non-number value provided to metric ${r._descriptor.name}: ${i}`);return}r._descriptor.valueType===tr.ValueType.INT&&!Number.isInteger(i)&&(tr.diag.warn(`INT value type cannot accept a floating-point value for ${r._descriptor.name}, ignoring the fractional digits.`),i=Math.trunc(i),!Number.isInteger(i))||a.set(c,i)}};rr.BatchObservableResultImpl=ms});var WM=S(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.ObservableRegistry=void 0;var hJ=(m(),h(y)),jM=Ho(),qM=KM(),Dr=Ee(),Ns=class{constructor(){this._callbacks=[],this._batchCallbacks=[]}addCallback(r,i){this._findCallback(r,i)>=0||this._callbacks.push({callback:r,instrument:i})}removeCallback(r,i){let c=this._findCallback(r,i);c<0||this._callbacks.splice(c,1)}addBatchCallback(r,i){let c=new Set(i.filter(jM.isObservableInstrument));if(c.size===0){hJ.diag.error("BatchObservableCallback is not associated with valid instruments",i);return}this._findBatchCallback(r,c)>=0||this._batchCallbacks.push({callback:r,instruments:c})}removeBatchCallback(r,i){let c=new Set(i.filter(jM.isObservableInstrument)),a=this._findBatchCallback(r,c);a<0||this._batchCallbacks.splice(a,1)}async observe(r,i){let c=this._observeCallbacks(r,i),a=this._observeBatchCallbacks(r,i);return(await(0,Dr.PromiseAllSettled)([...c,...a])).filter(Dr.isPromiseAllSettledRejectionResult).map(e=>e.reason)}_observeCallbacks(r,i){return this._callbacks.map(async({callback:c,instrument:a})=>{let u=new qM.ObservableResultImpl(a._descriptor.name,a._descriptor.valueType),t=Promise.resolve(c(u));i!=null&&(t=(0,Dr.callWithTimeout)(t,i)),await t,a._metricStorages.forEach(e=>{e.record(u._buffer,r)})})}_observeBatchCallbacks(r,i){return this._batchCallbacks.map(async({callback:c,instruments:a})=>{let u=new qM.BatchObservableResultImpl,t=Promise.resolve(c(u));i!=null&&(t=(0,Dr.callWithTimeout)(t,i)),await t,a.forEach(e=>{let n=u._buffer.get(e);n!=null&&e._metricStorages.forEach(s=>{s.record(n,r)})})})}_findCallback(r,i){return this._callbacks.findIndex(c=>c.callback===r&&c.instrument===i)}_findBatchCallback(r,i){return this._batchCallbacks.findIndex(c=>c.callback===r&&(0,Dr.setEquals)(c.instruments,i))}};Xo.ObservableRegistry=Ns});var zM=S($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.SyncMetricStorage=void 0;var RJ=ls(),yJ=Ts(),PJ=fs(),hs=class extends RJ.MetricStorage{constructor(r,i,c,a,u){super(r),this._attributesProcessor=c,this._aggregationCardinalityLimit=u,this._deltaMetricStorage=new yJ.DeltaMetricProcessor(i,this._aggregationCardinalityLimit),this._temporalMetricStorage=new PJ.TemporalMetricProcessor(i,a)}record(r,i,c,a){i=this._attributesProcessor.process(i,c),this._deltaMetricStorage.record(r,i,c,a)}collect(r,i){let c=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(r,this._instrumentDescriptor,c,i)}};$o.SyncMetricStorage=hs});var ys=S(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.FilteringAttributesProcessor=Ke.NoopAttributesProcessor=Ke.AttributesProcessor=void 0;var Vr=class{static Noop(){return MJ}};Ke.AttributesProcessor=Vr;var Qo=class extends Vr{process(r,i){return r}};Ke.NoopAttributesProcessor=Qo;var Rs=class extends Vr{constructor(r){super(),this._allowedAttributeNames=r}process(r,i){let c={};return Object.keys(r).filter(a=>this._allowedAttributeNames.includes(a)).forEach(a=>c[a]=r[a]),c}};Ke.FilteringAttributesProcessor=Rs;var MJ=new Qo});var JM=S(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.MeterSharedState=void 0;var gJ=Ce(),LJ=bM(),IJ=Ee(),xJ=UM(),CJ=kM(),bJ=YM(),UJ=WM(),DJ=zM(),VJ=ys(),Ps=class{constructor(r,i){this._meterProviderSharedState=r,this._instrumentationScope=i,this.metricStorageRegistry=new CJ.MetricStorageRegistry,this.observableRegistry=new UJ.ObservableRegistry,this.meter=new LJ.Meter(this)}registerMetricStorage(r){let i=this._registerMetricStorage(r,DJ.SyncMetricStorage);return i.length===1?i[0]:new bJ.MultiMetricStorage(i)}registerAsyncMetricStorage(r){return this._registerMetricStorage(r,xJ.AsyncMetricStorage)}async collect(r,i,c){let a=await this.observableRegistry.observe(i,c?.timeoutMillis),u=this.metricStorageRegistry.getStorages(r);if(u.length===0)return null;let t=u.map(e=>e.collect(r,i)).filter(IJ.isNotNullish);return t.length===0?{errors:a}:{scopeMetrics:{scope:this._instrumentationScope,metrics:t},errors:a}}_registerMetricStorage(r,i){let a=this._meterProviderSharedState.viewRegistry.findViews(r,this._instrumentationScope).map(u=>{let t=(0,gJ.createInstrumentDescriptorWithView)(u,r),e=this.metricStorageRegistry.findOrUpdateCompatibleStorage(t);if(e!=null)return e;let n=u.aggregation.createAggregator(t),s=new i(t,n,u.attributesProcessor,this._meterProviderSharedState.metricCollectors,u.aggregationCardinalityLimit);return this.metricStorageRegistry.register(s),s});if(a.length===0){let t=this._meterProviderSharedState.selectAggregations(r.type).map(([e,n])=>{let s=this.metricStorageRegistry.findOrUpdateCompatibleCollectorStorage(e,r);if(s!=null)return s;let l=n.createAggregator(r),E=e.selectCardinalityLimit(r.type),O=new i(r,l,VJ.AttributesProcessor.Noop(),[e],E);return this.metricStorageRegistry.registerForCollector(e,O),O});a=a.concat(t)}return a}};Zo.MeterSharedState=Ps});var XM=S(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.MeterProviderSharedState=void 0;var wJ=Ee(),BJ=CM(),GJ=JM(),Ms=class{constructor(r){this.resource=r,this.viewRegistry=new BJ.ViewRegistry,this.metricCollectors=[],this.meterSharedStates=new Map}getMeterSharedState(r){let i=(0,wJ.instrumentationScopeId)(r),c=this.meterSharedStates.get(i);return c==null&&(c=new GJ.MeterSharedState(this,r),this.meterSharedStates.set(i,c)),c}selectAggregations(r){let i=[];for(let c of this.metricCollectors)i.push([c,c.selectAggregation(r)]);return i}};ei.MeterProviderSharedState=Ms});var $M=S(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.MetricCollector=void 0;var HJ=C(),gs=class{constructor(r,i){this._sharedState=r,this._metricReader=i}async collect(r){let i=(0,HJ.millisToHrTime)(Date.now()),c=[],a=[],u=Array.from(this._sharedState.meterSharedStates.values()).map(async t=>{let e=await t.collect(this,i,r);e?.scopeMetrics!=null&&c.push(e.scopeMetrics),e?.errors!=null&&a.push(...e.errors)});return await Promise.all(u),{resourceMetrics:{resource:this._sharedState.resource,scopeMetrics:c},errors:a}}async forceFlush(r){await this._metricReader.forceFlush(r)}async shutdown(r){await this._metricReader.shutdown(r)}selectAggregationTemporality(r){return this._metricReader.selectAggregationTemporality(r)}selectAggregation(r){return this._metricReader.selectAggregation(r)}selectCardinalityLimit(r){var i,c,a;return(a=(c=(i=this._metricReader).selectCardinalityLimit)===null||c===void 0?void 0:c.call(i,r))!==null&&a!==void 0?a:2e3}};ti.MetricCollector=gs});var ZM=S(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.MeterProvider=void 0;var ri=(m(),h(y)),QM=lo(),kJ=XM(),YJ=$M();function FJ(o,r){let i=r??QM.Resource.empty();return o?QM.Resource.default().merge(i):i}var Ls=class{constructor(r){var i;if(this._shutdown=!1,this._sharedState=new kJ.MeterProviderSharedState(FJ((i=r?.mergeResourceWithDefaults)!==null&&i!==void 0?i:!0,r?.resource)),r?.views!=null&&r.views.length>0)for(let c of r.views)this._sharedState.viewRegistry.addView(c);if(r?.readers!=null&&r.readers.length>0)for(let c of r.readers)this.addMetricReader(c)}getMeter(r,i="",c={}){return this._shutdown?(ri.diag.warn("A shutdown MeterProvider cannot provide a Meter"),(0,ri.createNoopMeter)()):this._sharedState.getMeterSharedState({name:r,version:i,schemaUrl:c.schemaUrl}).meter}addMetricReader(r){let i=new YJ.MetricCollector(this._sharedState,r);r.setMetricProducer(i),this._sharedState.metricCollectors.push(i)}async shutdown(r){if(this._shutdown){ri.diag.warn("shutdown may only be called once per MeterProvider");return}this._shutdown=!0,await Promise.all(this._sharedState.metricCollectors.map(i=>i.shutdown(r)))}async forceFlush(r){if(this._shutdown){ri.diag.warn("invalid attempt to force flush after MeterProvider shutdown");return}await Promise.all(this._sharedState.metricCollectors.map(i=>i.forceFlush(r)))}};ni.MeterProvider=Ls});var oi=S(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.ExactPredicate=nr.PatternPredicate=void 0;var KJ=/[\^$\\.+?()[\]{}|]/g,Is=class o{constructor(r){r==="*"?(this._matchAll=!0,this._regexp=/.*/):(this._matchAll=!1,this._regexp=new RegExp(o.escapePattern(r)))}match(r){return this._matchAll?!0:this._regexp.test(r)}static escapePattern(r){return`^${r.replace(KJ,"\\$&").replace("*",".*")}$`}static hasWildcard(r){return r.includes("*")}};nr.PatternPredicate=Is;var xs=class{constructor(r){this._matchAll=r===void 0,this._pattern=r}match(r){return!!(this._matchAll||r===this._pattern)}};nr.ExactPredicate=xs});var tg=S(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.InstrumentSelector=void 0;var eg=oi(),Cs=class{constructor(r){var i;this._nameFilter=new eg.PatternPredicate((i=r?.name)!==null&&i!==void 0?i:"*"),this._type=r?.type,this._unitFilter=new eg.ExactPredicate(r?.unit)}getType(){return this._type}getNameFilter(){return this._nameFilter}getUnitFilter(){return this._unitFilter}};ii.InstrumentSelector=Cs});var rg=S(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.MeterSelector=void 0;var bs=oi(),Us=class{constructor(r){this._nameFilter=new bs.ExactPredicate(r?.name),this._versionFilter=new bs.ExactPredicate(r?.version),this._schemaUrlFilter=new bs.ExactPredicate(r?.schemaUrl)}getNameFilter(){return this._nameFilter}getVersionFilter(){return this._versionFilter}getSchemaUrlFilter(){return this._schemaUrlFilter}};ai.MeterSelector=Us});var og=S(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.View=void 0;var jJ=oi(),ng=ys(),qJ=tg(),WJ=rg(),zJ=bo();function JJ(o){return o.instrumentName==null&&o.instrumentType==null&&o.instrumentUnit==null&&o.meterName==null&&o.meterVersion==null&&o.meterSchemaUrl==null}var Ds=class{constructor(r){var i;if(JJ(r))throw new Error("Cannot create view with no selector arguments supplied");if(r.name!=null&&(r?.instrumentName==null||jJ.PatternPredicate.hasWildcard(r.instrumentName)))throw new Error("Views with a specified name must be declared with an instrument selector that selects at most one instrument per meter.");r.attributeKeys!=null?this.attributesProcessor=new ng.FilteringAttributesProcessor(r.attributeKeys):this.attributesProcessor=ng.AttributesProcessor.Noop(),this.name=r.name,this.description=r.description,this.aggregation=(i=r.aggregation)!==null&&i!==void 0?i:zJ.Aggregation.Default(),this.instrumentSelector=new qJ.InstrumentSelector({name:r.instrumentName,type:r.instrumentType,unit:r.instrumentUnit}),this.meterSelector=new WJ.MeterSelector({name:r.meterName,version:r.meterVersion,schemaUrl:r.meterSchemaUrl}),this.aggregationCardinalityLimit=r.aggregationCardinalityLimit}};ui.View=Ds});var si=S(R=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0});R.TimeoutError=R.View=R.Aggregation=R.SumAggregation=R.LastValueAggregation=R.HistogramAggregation=R.DropAggregation=R.ExponentialHistogramAggregation=R.ExplicitBucketHistogramAggregation=R.DefaultAggregation=R.MeterProvider=R.InstrumentType=R.ConsoleMetricExporter=R.InMemoryMetricExporter=R.PeriodicExportingMetricReader=R.MetricReader=R.DataPointType=R.AggregationTemporality=void 0;var XJ=fo();Object.defineProperty(R,"AggregationTemporality",{enumerable:!0,get:function(){return XJ.AggregationTemporality}});var $J=Gt();Object.defineProperty(R,"DataPointType",{enumerable:!0,get:function(){return $J.DataPointType}});var QJ=Ju();Object.defineProperty(R,"MetricReader",{enumerable:!0,get:function(){return QJ.MetricReader}});var ZJ=MM();Object.defineProperty(R,"PeriodicExportingMetricReader",{enumerable:!0,get:function(){return ZJ.PeriodicExportingMetricReader}});var eX=LM();Object.defineProperty(R,"InMemoryMetricExporter",{enumerable:!0,get:function(){return eX.InMemoryMetricExporter}});var tX=xM();Object.defineProperty(R,"ConsoleMetricExporter",{enumerable:!0,get:function(){return tX.ConsoleMetricExporter}});var rX=Ce();Object.defineProperty(R,"InstrumentType",{enumerable:!0,get:function(){return rX.InstrumentType}});var nX=ZM();Object.defineProperty(R,"MeterProvider",{enumerable:!0,get:function(){return nX.MeterProvider}});var je=bo();Object.defineProperty(R,"DefaultAggregation",{enumerable:!0,get:function(){return je.DefaultAggregation}});Object.defineProperty(R,"ExplicitBucketHistogramAggregation",{enumerable:!0,get:function(){return je.ExplicitBucketHistogramAggregation}});Object.defineProperty(R,"ExponentialHistogramAggregation",{enumerable:!0,get:function(){return je.ExponentialHistogramAggregation}});Object.defineProperty(R,"DropAggregation",{enumerable:!0,get:function(){return je.DropAggregation}});Object.defineProperty(R,"HistogramAggregation",{enumerable:!0,get:function(){return je.HistogramAggregation}});Object.defineProperty(R,"LastValueAggregation",{enumerable:!0,get:function(){return je.LastValueAggregation}});Object.defineProperty(R,"SumAggregation",{enumerable:!0,get:function(){return je.SumAggregation}});Object.defineProperty(R,"Aggregation",{enumerable:!0,get:function(){return je.Aggregation}});var oX=og();Object.defineProperty(R,"View",{enumerable:!0,get:function(){return oX.View}});var iX=Ee();Object.defineProperty(R,"TimeoutError",{enumerable:!0,get:function(){return iX.TimeoutError}})});var ig,ag=d(()=>{ig=function(){function o(r){this._delegate=r}return o.prototype.export=function(r,i){this._delegate.export(r,i)},o.prototype.forceFlush=function(){return this._delegate.forceFlush()},o.prototype.shutdown=function(){return this._delegate.shutdown()},o}()});var aX,ct,ci=d(()=>{aX=function(){var o=function(r,i){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(c[u]=a[u])},o(r,i)};return function(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");o(r,i);function c(){this.constructor=r}r.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}}(),ct=function(o){aX(r,o);function r(i,c,a){var u=o.call(this,i)||this;return u.name="OTLPExporterError",u.data=a,u.code=c,u}return r}(Error)});function uX(o){if(!Number.isNaN(o)&&Number.isFinite(o)&&o>0)return o;throw new Error("Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '"+o+"')")}function li(o){if(o!=null)return function(){return o}}function pi(o,r,i){var c,a,u,t,e,n;return{timeoutMillis:uX((a=(c=o.timeoutMillis)!==null&&c!==void 0?c:r.timeoutMillis)!==null&&a!==void 0?a:i.timeoutMillis),concurrencyLimit:(t=(u=o.concurrencyLimit)!==null&&u!==void 0?u:r.concurrencyLimit)!==null&&t!==void 0?t:i.concurrencyLimit,compression:(n=(e=o.compression)!==null&&e!==void 0?e:r.compression)!==null&&n!==void 0?n:i.compression}}function _i(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}var wr=d(()=>{});var Ei,ug=d(()=>{(function(o){o.NONE="none",o.GZIP="gzip"})(Ei||(Ei={}))});function Ti(o){return new lX(o.concurrencyLimit)}var sX,cX,lX,Vs=d(()=>{sX=function(o,r,i,c){function a(u){return u instanceof i?u:new i(function(t){t(u)})}return new(i||(i=Promise))(function(u,t){function e(l){try{s(c.next(l))}catch(E){t(E)}}function n(l){try{s(c.throw(l))}catch(E){t(E)}}function s(l){l.done?u(l.value):a(l.value).then(e,n)}s((c=c.apply(o,r||[])).next())})},cX=function(o,r){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},c,a,u,t;return t={next:e(0),throw:e(1),return:e(2)},typeof Symbol=="function"&&(t[Symbol.iterator]=function(){return this}),t;function e(s){return function(l){return n([s,l])}}function n(s){if(c)throw new TypeError("Generator is already executing.");for(;i;)try{if(c=1,a&&(u=s[0]&2?a.return:s[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,s[1])).done)return u;switch(a=0,u&&(s=[s[0]&2,u.value]),s[0]){case 0:case 1:u=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,a=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!u||s[1]>u[0]&&s[1]<u[3])){i.label=s[1];break}if(s[0]===6&&i.label<u[1]){i.label=u[1],u=s;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(s);break}u[2]&&i.ops.pop(),i.trys.pop();continue}s=r.call(o,i)}catch(l){s=[6,l],a=0}finally{c=u=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},lX=function(){function o(r){this._sendingPromises=[],this._concurrencyLimit=r}return o.prototype.pushPromise=function(r){var i=this;if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(r);var c=function(){var a=i._sendingPromises.indexOf(r);i._sendingPromises.splice(a,1)};r.then(c,c)},o.prototype.hasReachedLimit=function(){return this._sendingPromises.length>=this._concurrencyLimit},o.prototype.awaitAll=function(){return sX(this,void 0,void 0,function(){return cX(this,function(r){switch(r.label){case 0:return[4,Promise.all(this._sendingPromises)];case 1:return r.sent(),[2]}})})},o}()});function pX(o){return Object.prototype.hasOwnProperty.call(o,"partialSuccess")}function sg(){return{handleResponse:function(o){o==null||!pX(o)||o.partialSuccess==null||Object.keys(o.partialSuccess).length===0||H.warn("Received Partial Success response:",JSON.stringify(o.partialSuccess))}}}var cg=d(()=>{m()});function Si(o,r){return new TX(o.transport,o.serializer,sg(),o.promiseHandler,r.timeout)}var qe,_X,EX,TX,ws=d(()=>{qe=Ae(C());ci();cg();m();_X=function(o,r,i,c){function a(u){return u instanceof i?u:new i(function(t){t(u)})}return new(i||(i=Promise))(function(u,t){function e(l){try{s(c.next(l))}catch(E){t(E)}}function n(l){try{s(c.throw(l))}catch(E){t(E)}}function s(l){l.done?u(l.value):a(l.value).then(e,n)}s((c=c.apply(o,r||[])).next())})},EX=function(o,r){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},c,a,u,t;return t={next:e(0),throw:e(1),return:e(2)},typeof Symbol=="function"&&(t[Symbol.iterator]=function(){return this}),t;function e(s){return function(l){return n([s,l])}}function n(s){if(c)throw new TypeError("Generator is already executing.");for(;i;)try{if(c=1,a&&(u=s[0]&2?a.return:s[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,s[1])).done)return u;switch(a=0,u&&(s=[s[0]&2,u.value]),s[0]){case 0:case 1:u=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,a=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!u||s[1]>u[0]&&s[1]<u[3])){i.label=s[1];break}if(s[0]===6&&i.label<u[1]){i.label=u[1],u=s;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(s);break}u[2]&&i.ops.pop(),i.trys.pop();continue}s=r.call(o,i)}catch(l){s=[6,l],a=0}finally{c=u=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},TX=function(){function o(r,i,c,a,u){this._transport=r,this._serializer=i,this._responseHandler=c,this._promiseQueue=a,this._timeout=u,this._diagLogger=H.createComponentLogger({namespace:"OTLPExportDelegate"})}return o.prototype.export=function(r,i){var c=this;if(this._diagLogger.debug("items to be sent",r),this._promiseQueue.hasReachedLimit()){i({code:qe.ExportResultCode.FAILED,error:new Error("Concurrent export limit reached")});return}var a=this._serializer.serializeRequest(r);if(a==null){i({code:qe.ExportResultCode.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(a,this._timeout).then(function(u){if(u.status==="success"){if(u.data!=null)try{c._responseHandler.handleResponse(c._serializer.deserializeResponse(u.data))}catch(t){c._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",t,u.data)}i({code:qe.ExportResultCode.SUCCESS});return}else if(u.status==="failure"&&u.error){i({code:qe.ExportResultCode.FAILED,error:u.error});return}else u.status==="retryable"?i({code:qe.ExportResultCode.FAILED,error:new ct("Export failed with retryable status")}):i({code:qe.ExportResultCode.FAILED,error:new ct("Export failed with unknown error")})},function(u){return i({code:qe.ExportResultCode.FAILED,error:u})}))},o.prototype.forceFlush=function(){return this._promiseQueue.awaitAll()},o.prototype.shutdown=function(){return _X(this,void 0,void 0,function(){return EX(this,function(r){switch(r.label){case 0:return this._diagLogger.debug("shutdown started"),[4,this.forceFlush()];case 1:return r.sent(),this._transport.shutdown(),[2]}})})},o}()});function lg(o,r,i){return Si({transport:i,serializer:r,promiseHandler:Ti(o)},{timeout:o.timeoutMillis})}var pg=d(()=>{Vs();ws()});var Bs={};ft(Bs,{CompressionAlgorithm:()=>Ei,OTLPExporterBase:()=>ig,OTLPExporterError:()=>ct,createOtlpNetworkExportDelegate:()=>lg,getSharedConfigurationDefaults:()=>_i,mergeOtlpSharedConfigurationWithDefaults:()=>pi});var Gs=d(()=>{ag();ci();wr();ug();pg()});var _g=S(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.VERSION=void 0;fi.VERSION="0.57.2"});var Tg=S((Dee,Eg)=>{"use strict";Eg.exports=SX;function SX(o,r){for(var i=new Array(arguments.length-1),c=0,a=2,u=!0;a<arguments.length;)i[c++]=arguments[a++];return new Promise(function(e,n){i[c]=function(l){if(u)if(u=!1,l)n(l);else{for(var E=new Array(arguments.length-1),O=0;O<E.length;)E[O++]=arguments[O];e.apply(null,E)}};try{o.apply(r||null,i)}catch(s){u&&(u=!1,n(s))}})}});var Ag=S(dg=>{"use strict";var di=dg;di.length=function(r){var i=r.length;if(!i)return 0;for(var c=0;--i%4>1&&r.charAt(i)==="=";)++c;return Math.ceil(r.length*3)/4-c};var or=new Array(64),fg=new Array(123);for(Te=0;Te<64;)fg[or[Te]=Te<26?Te+65:Te<52?Te+71:Te<62?Te-4:Te-59|43]=Te++;var Te;di.encode=function(r,i,c){for(var a=null,u=[],t=0,e=0,n;i<c;){var s=r[i++];switch(e){case 0:u[t++]=or[s>>2],n=(s&3)<<4,e=1;break;case 1:u[t++]=or[n|s>>4],n=(s&15)<<2,e=2;break;case 2:u[t++]=or[n|s>>6],u[t++]=or[s&63],e=0;break}t>8191&&((a||(a=[])).push(String.fromCharCode.apply(String,u)),t=0)}return e&&(u[t++]=or[n],u[t++]=61,e===1&&(u[t++]=61)),a?(t&&a.push(String.fromCharCode.apply(String,u.slice(0,t))),a.join("")):String.fromCharCode.apply(String,u.slice(0,t))};var Sg="invalid encoding";di.decode=function(r,i,c){for(var a=c,u=0,t,e=0;e<r.length;){var n=r.charCodeAt(e++);if(n===61&&u>1)break;if((n=fg[n])===void 0)throw Error(Sg);switch(u){case 0:t=n,u=1;break;case 1:i[c++]=t<<2|(n&48)>>4,t=n,u=2;break;case 2:i[c++]=(t&15)<<4|(n&60)>>2,t=n,u=3;break;case 3:i[c++]=(t&3)<<6|n,u=0;break}}if(u===1)throw Error(Sg);return c-a};di.test=function(r){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(r)}});var Og=S((wee,vg)=>{"use strict";vg.exports=Ai;function Ai(){this._listeners={}}Ai.prototype.on=function(r,i,c){return(this._listeners[r]||(this._listeners[r]=[])).push({fn:i,ctx:c||this}),this};Ai.prototype.off=function(r,i){if(r===void 0)this._listeners={};else if(i===void 0)this._listeners[r]=[];else for(var c=this._listeners[r],a=0;a<c.length;)c[a].fn===i?c.splice(a,1):++a;return this};Ai.prototype.emit=function(r){var i=this._listeners[r];if(i){for(var c=[],a=1;a<arguments.length;)c.push(arguments[a++]);for(a=0;a<i.length;)i[a].fn.apply(i[a++].ctx,c)}return this}});var Mg=S((Bee,Pg)=>{"use strict";Pg.exports=mg(mg);function mg(o){return typeof Float32Array<"u"?function(){var r=new Float32Array([-0]),i=new Uint8Array(r.buffer),c=i[3]===128;function a(n,s,l){r[0]=n,s[l]=i[0],s[l+1]=i[1],s[l+2]=i[2],s[l+3]=i[3]}function u(n,s,l){r[0]=n,s[l]=i[3],s[l+1]=i[2],s[l+2]=i[1],s[l+3]=i[0]}o.writeFloatLE=c?a:u,o.writeFloatBE=c?u:a;function t(n,s){return i[0]=n[s],i[1]=n[s+1],i[2]=n[s+2],i[3]=n[s+3],r[0]}function e(n,s){return i[3]=n[s],i[2]=n[s+1],i[1]=n[s+2],i[0]=n[s+3],r[0]}o.readFloatLE=c?t:e,o.readFloatBE=c?e:t}():function(){function r(c,a,u,t){var e=a<0?1:0;if(e&&(a=-a),a===0)c(1/a>0?0:2147483648,u,t);else if(isNaN(a))c(2143289344,u,t);else if(a>34028234663852886e22)c((e<<31|2139095040)>>>0,u,t);else if(a<11754943508222875e-54)c((e<<31|Math.round(a/1401298464324817e-60))>>>0,u,t);else{var n=Math.floor(Math.log(a)/Math.LN2),s=Math.round(a*Math.pow(2,-n)*8388608)&8388607;c((e<<31|n+127<<23|s)>>>0,u,t)}}o.writeFloatLE=r.bind(null,Ng),o.writeFloatBE=r.bind(null,hg);function i(c,a,u){var t=c(a,u),e=(t>>31)*2+1,n=t>>>23&255,s=t&8388607;return n===255?s?NaN:e*(1/0):n===0?e*1401298464324817e-60*s:e*Math.pow(2,n-150)*(s+8388608)}o.readFloatLE=i.bind(null,Rg),o.readFloatBE=i.bind(null,yg)}(),typeof Float64Array<"u"?function(){var r=new Float64Array([-0]),i=new Uint8Array(r.buffer),c=i[7]===128;function a(n,s,l){r[0]=n,s[l]=i[0],s[l+1]=i[1],s[l+2]=i[2],s[l+3]=i[3],s[l+4]=i[4],s[l+5]=i[5],s[l+6]=i[6],s[l+7]=i[7]}function u(n,s,l){r[0]=n,s[l]=i[7],s[l+1]=i[6],s[l+2]=i[5],s[l+3]=i[4],s[l+4]=i[3],s[l+5]=i[2],s[l+6]=i[1],s[l+7]=i[0]}o.writeDoubleLE=c?a:u,o.writeDoubleBE=c?u:a;function t(n,s){return i[0]=n[s],i[1]=n[s+1],i[2]=n[s+2],i[3]=n[s+3],i[4]=n[s+4],i[5]=n[s+5],i[6]=n[s+6],i[7]=n[s+7],r[0]}function e(n,s){return i[7]=n[s],i[6]=n[s+1],i[5]=n[s+2],i[4]=n[s+3],i[3]=n[s+4],i[2]=n[s+5],i[1]=n[s+6],i[0]=n[s+7],r[0]}o.readDoubleLE=c?t:e,o.readDoubleBE=c?e:t}():function(){function r(c,a,u,t,e,n){var s=t<0?1:0;if(s&&(t=-t),t===0)c(0,e,n+a),c(1/t>0?0:2147483648,e,n+u);else if(isNaN(t))c(0,e,n+a),c(2146959360,e,n+u);else if(t>17976931348623157e292)c(0,e,n+a),c((s<<31|2146435072)>>>0,e,n+u);else{var l;if(t<22250738585072014e-324)l=t/5e-324,c(l>>>0,e,n+a),c((s<<31|l/4294967296)>>>0,e,n+u);else{var E=Math.floor(Math.log(t)/Math.LN2);E===1024&&(E=1023),l=t*Math.pow(2,-E),c(l*4503599627370496>>>0,e,n+a),c((s<<31|E+1023<<20|l*1048576&1048575)>>>0,e,n+u)}}}o.writeDoubleLE=r.bind(null,Ng,0,4),o.writeDoubleBE=r.bind(null,hg,4,0);function i(c,a,u,t,e){var n=c(t,e+a),s=c(t,e+u),l=(s>>31)*2+1,E=s>>>20&2047,O=4294967296*(s&1048575)+n;return E===2047?O?NaN:l*(1/0):E===0?l*5e-324*O:l*Math.pow(2,E-1075)*(O+4503599627370496)}o.readDoubleLE=i.bind(null,Rg,0,4),o.readDoubleBE=i.bind(null,yg,4,0)}(),o}function Ng(o,r,i){r[i]=o&255,r[i+1]=o>>>8&255,r[i+2]=o>>>16&255,r[i+3]=o>>>24}function hg(o,r,i){r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=o&255}function Rg(o,r){return(o[r]|o[r+1]<<8|o[r+2]<<16|o[r+3]<<24)>>>0}function yg(o,r){return(o[r]<<24|o[r+1]<<16|o[r+2]<<8|o[r+3])>>>0}});var Lg=S((Gee,gg)=>{"use strict";gg.exports=function(){return null}});var xg=S(Ig=>{"use strict";var Hs=Ig;Hs.length=function(r){for(var i=0,c=0,a=0;a<r.length;++a)c=r.charCodeAt(a),c<128?i+=1:c<2048?i+=2:(c&64512)===55296&&(r.charCodeAt(a+1)&64512)===56320?(++a,i+=4):i+=3;return i};Hs.read=function(r,i,c){var a=c-i;if(a<1)return"";for(var u=null,t=[],e=0,n;i<c;)n=r[i++],n<128?t[e++]=n:n>191&&n<224?t[e++]=(n&31)<<6|r[i++]&63:n>239&&n<365?(n=((n&7)<<18|(r[i++]&63)<<12|(r[i++]&63)<<6|r[i++]&63)-65536,t[e++]=55296+(n>>10),t[e++]=56320+(n&1023)):t[e++]=(n&15)<<12|(r[i++]&63)<<6|r[i++]&63,e>8191&&((u||(u=[])).push(String.fromCharCode.apply(String,t)),e=0);return u?(e&&u.push(String.fromCharCode.apply(String,t.slice(0,e))),u.join("")):String.fromCharCode.apply(String,t.slice(0,e))};Hs.write=function(r,i,c){for(var a=c,u,t,e=0;e<r.length;++e)u=r.charCodeAt(e),u<128?i[c++]=u:u<2048?(i[c++]=u>>6|192,i[c++]=u&63|128):(u&64512)===55296&&((t=r.charCodeAt(e+1))&64512)===56320?(u=65536+((u&1023)<<10)+(t&1023),++e,i[c++]=u>>18|240,i[c++]=u>>12&63|128,i[c++]=u>>6&63|128,i[c++]=u&63|128):(i[c++]=u>>12|224,i[c++]=u>>6&63|128,i[c++]=u&63|128);return c-a}});var bg=S((kee,Cg)=>{"use strict";Cg.exports=fX;function fX(o,r,i){var c=i||8192,a=c>>>1,u=null,t=c;return function(n){if(n<1||n>a)return o(n);t+n>c&&(u=o(c),t=0);var s=r.call(u,t,t+=n);return t&7&&(t=(t|7)+1),s}}});var Dg=S((Yee,Ug)=>{"use strict";Ug.exports=K;var Br=ze();function K(o,r){this.lo=o>>>0,this.hi=r>>>0}var lt=K.zero=new K(0,0);lt.toNumber=function(){return 0};lt.zzEncode=lt.zzDecode=function(){return this};lt.length=function(){return 1};var dX=K.zeroHash="\0\0\0\0\0\0\0\0";K.fromNumber=function(r){if(r===0)return lt;var i=r<0;i&&(r=-r);var c=r>>>0,a=(r-c)/4294967296>>>0;return i&&(a=~a>>>0,c=~c>>>0,++c>4294967295&&(c=0,++a>4294967295&&(a=0))),new K(c,a)};K.from=function(r){if(typeof r=="number")return K.fromNumber(r);if(Br.isString(r))if(Br.Long)r=Br.Long.fromString(r);else return K.fromNumber(parseInt(r,10));return r.low||r.high?new K(r.low>>>0,r.high>>>0):lt};K.prototype.toNumber=function(r){if(!r&&this.hi>>>31){var i=~this.lo+1>>>0,c=~this.hi>>>0;return i||(c=c+1>>>0),-(i+c*4294967296)}return this.lo+this.hi*4294967296};K.prototype.toLong=function(r){return Br.Long?new Br.Long(this.lo|0,this.hi|0,!!r):{low:this.lo|0,high:this.hi|0,unsigned:!!r}};var We=String.prototype.charCodeAt;K.fromHash=function(r){return r===dX?lt:new K((We.call(r,0)|We.call(r,1)<<8|We.call(r,2)<<16|We.call(r,3)<<24)>>>0,(We.call(r,4)|We.call(r,5)<<8|We.call(r,6)<<16|We.call(r,7)<<24)>>>0)};K.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)};K.prototype.zzEncode=function(){var r=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^r)>>>0,this.lo=(this.lo<<1^r)>>>0,this};K.prototype.zzDecode=function(){var r=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^r)>>>0,this.hi=(this.hi>>>1^r)>>>0,this};K.prototype.length=function(){var r=this.lo,i=(this.lo>>>28|this.hi<<4)>>>0,c=this.hi>>>24;return c===0?i===0?r<16384?r<128?1:2:r<2097152?3:4:i<16384?i<128?5:6:i<2097152?7:8:c<128?9:10}});var ze=S(ks=>{"use strict";var A=ks;A.asPromise=Tg();A.base64=Ag();A.EventEmitter=Og();A.float=Mg();A.inquire=Lg();A.utf8=xg();A.pool=bg();A.LongBits=Dg();A.isNode=!!(typeof global<"u"&&global&&global.process&&global.process.versions&&global.process.versions.node);A.global=A.isNode&&global||typeof window<"u"&&window||typeof self<"u"&&self||ks;A.emptyArray=Object.freeze?Object.freeze([]):[];A.emptyObject=Object.freeze?Object.freeze({}):{};A.isInteger=Number.isInteger||function(r){return typeof r=="number"&&isFinite(r)&&Math.floor(r)===r};A.isString=function(r){return typeof r=="string"||r instanceof String};A.isObject=function(r){return r&&typeof r=="object"};A.isset=A.isSet=function(r,i){var c=r[i];return c!=null&&r.hasOwnProperty(i)?typeof c!="object"||(Array.isArray(c)?c.length:Object.keys(c).length)>0:!1};A.Buffer=function(){try{var o=A.inquire("buffer").Buffer;return o.prototype.utf8Write?o:null}catch{return null}}();A._Buffer_from=null;A._Buffer_allocUnsafe=null;A.newBuffer=function(r){return typeof r=="number"?A.Buffer?A._Buffer_allocUnsafe(r):new A.Array(r):A.Buffer?A._Buffer_from(r):typeof Uint8Array>"u"?r:new Uint8Array(r)};A.Array=typeof Uint8Array<"u"?Uint8Array:Array;A.Long=A.global.dcodeIO&&A.global.dcodeIO.Long||A.global.Long||A.inquire("long");A.key2Re=/^true|false|0|1$/;A.key32Re=/^-?(?:0|[1-9][0-9]*)$/;A.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;A.longToHash=function(r){return r?A.LongBits.from(r).toHash():A.LongBits.zeroHash};A.longFromHash=function(r,i){var c=A.LongBits.fromHash(r);return A.Long?A.Long.fromBits(c.lo,c.hi,i):c.toNumber(!!i)};function Vg(o,r,i){for(var c=Object.keys(r),a=0;a<c.length;++a)(o[c[a]]===void 0||!i)&&(o[c[a]]=r[c[a]]);return o}A.merge=Vg;A.lcFirst=function(r){return r.charAt(0).toLowerCase()+r.substring(1)};function wg(o){function r(i,c){if(!(this instanceof r))return new r(i,c);Object.defineProperty(this,"message",{get:function(){return i}}),Error.captureStackTrace?Error.captureStackTrace(this,r):Object.defineProperty(this,"stack",{value:new Error().stack||""}),c&&Vg(this,c)}return r.prototype=Object.create(Error.prototype,{constructor:{value:r,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return o},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),r}A.newError=wg;A.ProtocolError=wg("ProtocolError");A.oneOfGetter=function(r){for(var i={},c=0;c<r.length;++c)i[r[c]]=1;return function(){for(var a=Object.keys(this),u=a.length-1;u>-1;--u)if(i[a[u]]===1&&this[a[u]]!==void 0&&this[a[u]]!==null)return a[u]}};A.oneOfSetter=function(r){return function(i){for(var c=0;c<r.length;++c)r[c]!==i&&delete this[r[c]]}};A.toJSONOptions={longs:String,enums:String,bytes:String,json:!0};A._configure=function(){var o=A.Buffer;if(!o){A._Buffer_from=A._Buffer_allocUnsafe=null;return}A._Buffer_from=o.from!==Uint8Array.from&&o.from||function(i,c){return new o(i,c)},A._Buffer_allocUnsafe=o.allocUnsafe||function(i){return new o(i)}}});var zs=S((Kee,kg)=>{"use strict";kg.exports=P;var se=ze(),Ys,vi=se.LongBits,Bg=se.base64,Gg=se.utf8;function Gr(o,r,i){this.fn=o,this.len=r,this.next=void 0,this.val=i}function Ks(){}function AX(o){this.head=o.head,this.tail=o.tail,this.len=o.len,this.next=o.states}function P(){this.len=0,this.head=new Gr(Ks,0,0),this.tail=this.head,this.states=null}var Hg=function(){return se.Buffer?function(){return(P.create=function(){return new Ys})()}:function(){return new P}};P.create=Hg();P.alloc=function(r){return new se.Array(r)};se.Array!==Array&&(P.alloc=se.pool(P.alloc,se.Array.prototype.subarray));P.prototype._push=function(r,i,c){return this.tail=this.tail.next=new Gr(r,i,c),this.len+=i,this};function js(o,r,i){r[i]=o&255}function vX(o,r,i){for(;o>127;)r[i++]=o&127|128,o>>>=7;r[i]=o}function qs(o,r){this.len=o,this.next=void 0,this.val=r}qs.prototype=Object.create(Gr.prototype);qs.prototype.fn=vX;P.prototype.uint32=function(r){return this.len+=(this.tail=this.tail.next=new qs((r=r>>>0)<128?1:r<16384?2:r<2097152?3:r<268435456?4:5,r)).len,this};P.prototype.int32=function(r){return r<0?this._push(Ws,10,vi.fromNumber(r)):this.uint32(r)};P.prototype.sint32=function(r){return this.uint32((r<<1^r>>31)>>>0)};function Ws(o,r,i){for(;o.hi;)r[i++]=o.lo&127|128,o.lo=(o.lo>>>7|o.hi<<25)>>>0,o.hi>>>=7;for(;o.lo>127;)r[i++]=o.lo&127|128,o.lo=o.lo>>>7;r[i++]=o.lo}P.prototype.uint64=function(r){var i=vi.from(r);return this._push(Ws,i.length(),i)};P.prototype.int64=P.prototype.uint64;P.prototype.sint64=function(r){var i=vi.from(r).zzEncode();return this._push(Ws,i.length(),i)};P.prototype.bool=function(r){return this._push(js,1,r?1:0)};function Fs(o,r,i){r[i]=o&255,r[i+1]=o>>>8&255,r[i+2]=o>>>16&255,r[i+3]=o>>>24}P.prototype.fixed32=function(r){return this._push(Fs,4,r>>>0)};P.prototype.sfixed32=P.prototype.fixed32;P.prototype.fixed64=function(r){var i=vi.from(r);return this._push(Fs,4,i.lo)._push(Fs,4,i.hi)};P.prototype.sfixed64=P.prototype.fixed64;P.prototype.float=function(r){return this._push(se.float.writeFloatLE,4,r)};P.prototype.double=function(r){return this._push(se.float.writeDoubleLE,8,r)};var OX=se.Array.prototype.set?function(r,i,c){i.set(r,c)}:function(r,i,c){for(var a=0;a<r.length;++a)i[c+a]=r[a]};P.prototype.bytes=function(r){var i=r.length>>>0;if(!i)return this._push(js,1,0);if(se.isString(r)){var c=P.alloc(i=Bg.length(r));Bg.decode(r,c,0),r=c}return this.uint32(i)._push(OX,i,r)};P.prototype.string=function(r){var i=Gg.length(r);return i?this.uint32(i)._push(Gg.write,i,r):this._push(js,1,0)};P.prototype.fork=function(){return this.states=new AX(this),this.head=this.tail=new Gr(Ks,0,0),this.len=0,this};P.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Gr(Ks,0,0),this.len=0),this};P.prototype.ldelim=function(){var r=this.head,i=this.tail,c=this.len;return this.reset().uint32(c),c&&(this.tail.next=r.next,this.tail=i,this.len+=c),this};P.prototype.finish=function(){for(var r=this.head.next,i=this.constructor.alloc(this.len),c=0;r;)r.fn(r.val,i,c),c+=r.len,r=r.next;return i};P._configure=function(o){Ys=o,P.create=Hg(),Ys._configure()}});var Kg=S((jee,Fg)=>{"use strict";Fg.exports=ye;var Yg=zs();(ye.prototype=Object.create(Yg.prototype)).constructor=ye;var Je=ze();function ye(){Yg.call(this)}ye._configure=function(){ye.alloc=Je._Buffer_allocUnsafe,ye.writeBytesBuffer=Je.Buffer&&Je.Buffer.prototype instanceof Uint8Array&&Je.Buffer.prototype.set.name==="set"?function(r,i,c){i.set(r,c)}:function(r,i,c){if(r.copy)r.copy(i,c,0,r.length);else for(var a=0;a<r.length;)i[c++]=r[a++]}};ye.prototype.bytes=function(r){Je.isString(r)&&(r=Je._Buffer_from(r,"base64"));var i=r.length>>>0;return this.uint32(i),i&&this._push(ye.writeBytesBuffer,i,r),this};function mX(o,r,i){o.length<40?Je.utf8.write(o,r,i):r.utf8Write?r.utf8Write(o,i):r.write(o,i)}ye.prototype.string=function(r){var i=Je.Buffer.byteLength(r);return this.uint32(i),i&&this._push(mX,i,r),this};ye._configure()});var $s=S((qee,Jg)=>{"use strict";Jg.exports=V;var Se=ze(),Xs,Wg=Se.LongBits,NX=Se.utf8;function fe(o,r){return RangeError("index out of range: "+o.pos+" + "+(r||1)+" > "+o.len)}function V(o){this.buf=o,this.pos=0,this.len=o.length}var jg=typeof Uint8Array<"u"?function(r){if(r instanceof Uint8Array||Array.isArray(r))return new V(r);throw Error("illegal buffer")}:function(r){if(Array.isArray(r))return new V(r);throw Error("illegal buffer")},zg=function(){return Se.Buffer?function(i){return(V.create=function(a){return Se.Buffer.isBuffer(a)?new Xs(a):jg(a)})(i)}:jg};V.create=zg();V.prototype._slice=Se.Array.prototype.subarray||Se.Array.prototype.slice;V.prototype.uint32=function(){var r=4294967295;return function(){if(r=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(r=(r|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(r=(r|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(r=(r|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(r=(r|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return r;if((this.pos+=5)>this.len)throw this.pos=this.len,fe(this,10);return r}}();V.prototype.int32=function(){return this.uint32()|0};V.prototype.sint32=function(){var r=this.uint32();return r>>>1^-(r&1)|0};function Js(){var o=new Wg(0,0),r=0;if(this.len-this.pos>4){for(;r<4;++r)if(o.lo=(o.lo|(this.buf[this.pos]&127)<<r*7)>>>0,this.buf[this.pos++]<128)return o;if(o.lo=(o.lo|(this.buf[this.pos]&127)<<28)>>>0,o.hi=(o.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return o;r=0}else{for(;r<3;++r){if(this.pos>=this.len)throw fe(this);if(o.lo=(o.lo|(this.buf[this.pos]&127)<<r*7)>>>0,this.buf[this.pos++]<128)return o}return o.lo=(o.lo|(this.buf[this.pos++]&127)<<r*7)>>>0,o}if(this.len-this.pos>4){for(;r<5;++r)if(o.hi=(o.hi|(this.buf[this.pos]&127)<<r*7+3)>>>0,this.buf[this.pos++]<128)return o}else for(;r<5;++r){if(this.pos>=this.len)throw fe(this);if(o.hi=(o.hi|(this.buf[this.pos]&127)<<r*7+3)>>>0,this.buf[this.pos++]<128)return o}throw Error("invalid varint encoding")}V.prototype.bool=function(){return this.uint32()!==0};function Oi(o,r){return(o[r-4]|o[r-3]<<8|o[r-2]<<16|o[r-1]<<24)>>>0}V.prototype.fixed32=function(){if(this.pos+4>this.len)throw fe(this,4);return Oi(this.buf,this.pos+=4)};V.prototype.sfixed32=function(){if(this.pos+4>this.len)throw fe(this,4);return Oi(this.buf,this.pos+=4)|0};function qg(){if(this.pos+8>this.len)throw fe(this,8);return new Wg(Oi(this.buf,this.pos+=4),Oi(this.buf,this.pos+=4))}V.prototype.float=function(){if(this.pos+4>this.len)throw fe(this,4);var r=Se.float.readFloatLE(this.buf,this.pos);return this.pos+=4,r};V.prototype.double=function(){if(this.pos+8>this.len)throw fe(this,4);var r=Se.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,r};V.prototype.bytes=function(){var r=this.uint32(),i=this.pos,c=this.pos+r;if(c>this.len)throw fe(this,r);if(this.pos+=r,Array.isArray(this.buf))return this.buf.slice(i,c);if(i===c){var a=Se.Buffer;return a?a.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,i,c)};V.prototype.string=function(){var r=this.bytes();return NX.read(r,0,r.length)};V.prototype.skip=function(r){if(typeof r=="number"){if(this.pos+r>this.len)throw fe(this,r);this.pos+=r}else do if(this.pos>=this.len)throw fe(this);while(this.buf[this.pos++]&128);return this};V.prototype.skipType=function(o){switch(o){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(o=this.uint32()&7)!==4;)this.skipType(o);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+o+" at offset "+this.pos)}return this};V._configure=function(o){Xs=o,V.create=zg(),Xs._configure();var r=Se.Long?"toLong":"toNumber";Se.merge(V.prototype,{int64:function(){return Js.call(this)[r](!1)},uint64:function(){return Js.call(this)[r](!0)},sint64:function(){return Js.call(this).zzDecode()[r](!1)},fixed64:function(){return qg.call(this)[r](!0)},sfixed64:function(){return qg.call(this)[r](!1)}})}});var Zg=S((Wee,Qg)=>{"use strict";Qg.exports=pt;var $g=$s();(pt.prototype=Object.create($g.prototype)).constructor=pt;var Xg=ze();function pt(o){$g.call(this,o)}pt._configure=function(){Xg.Buffer&&(pt.prototype._slice=Xg.Buffer.prototype.slice)};pt.prototype.string=function(){var r=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+r,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+r,this.len))};pt._configure()});var tL=S((zee,eL)=>{"use strict";eL.exports=Hr;var Qs=ze();(Hr.prototype=Object.create(Qs.EventEmitter.prototype)).constructor=Hr;function Hr(o,r,i){if(typeof o!="function")throw TypeError("rpcImpl must be a function");Qs.EventEmitter.call(this),this.rpcImpl=o,this.requestDelimited=!!r,this.responseDelimited=!!i}Hr.prototype.rpcCall=function o(r,i,c,a,u){if(!a)throw TypeError("request must be specified");var t=this;if(!u)return Qs.asPromise(o,t,r,i,c,a);if(!t.rpcImpl){setTimeout(function(){u(Error("already ended"))},0);return}try{return t.rpcImpl(r,i[t.requestDelimited?"encodeDelimited":"encode"](a).finish(),function(n,s){if(n)return t.emit("error",n,r),u(n);if(s===null){t.end(!0);return}if(!(s instanceof c))try{s=c[t.responseDelimited?"decodeDelimited":"decode"](s)}catch(l){return t.emit("error",l,r),u(l)}return t.emit("data",s,r),u(null,s)})}catch(e){t.emit("error",e,r),setTimeout(function(){u(e)},0);return}};Hr.prototype.end=function(r){return this.rpcImpl&&(r||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}});var nL=S(rL=>{"use strict";var hX=rL;hX.Service=tL()});var iL=S((Xee,oL)=>{"use strict";oL.exports={}});var sL=S(uL=>{"use strict";var te=uL;te.build="minimal";te.Writer=zs();te.BufferWriter=Kg();te.Reader=$s();te.BufferReader=Zg();te.util=ze();te.rpc=nL();te.roots=iL();te.configure=aL;function aL(){te.util._configure(),te.Writer._configure(te.BufferWriter),te.Reader._configure(te.BufferReader)}aL()});var lL=S((Qee,cL)=>{"use strict";cL.exports=sL()});var mi=S((Zee,pL)=>{"use strict";var v=lL(),T=v.Reader,N=v.Writer,_=v.util,p=v.roots.default||(v.roots.default={});p.opentelemetry=function(){var o={};return o.proto=function(){var r={};return r.common=function(){var i={};return i.v1=function(){var c={};return c.AnyValue=function(){function a(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}a.prototype.stringValue=null,a.prototype.boolValue=null,a.prototype.intValue=null,a.prototype.doubleValue=null,a.prototype.arrayValue=null,a.prototype.kvlistValue=null,a.prototype.bytesValue=null;var u;return Object.defineProperty(a.prototype,"value",{get:_.oneOfGetter(u=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"]),set:_.oneOfSetter(u)}),a.create=function(e){return new a(e)},a.encode=function(e,n){return n||(n=N.create()),e.stringValue!=null&&Object.hasOwnProperty.call(e,"stringValue")&&n.uint32(10).string(e.stringValue),e.boolValue!=null&&Object.hasOwnProperty.call(e,"boolValue")&&n.uint32(16).bool(e.boolValue),e.intValue!=null&&Object.hasOwnProperty.call(e,"intValue")&&n.uint32(24).int64(e.intValue),e.doubleValue!=null&&Object.hasOwnProperty.call(e,"doubleValue")&&n.uint32(33).double(e.doubleValue),e.arrayValue!=null&&Object.hasOwnProperty.call(e,"arrayValue")&&p.opentelemetry.proto.common.v1.ArrayValue.encode(e.arrayValue,n.uint32(42).fork()).ldelim(),e.kvlistValue!=null&&Object.hasOwnProperty.call(e,"kvlistValue")&&p.opentelemetry.proto.common.v1.KeyValueList.encode(e.kvlistValue,n.uint32(50).fork()).ldelim(),e.bytesValue!=null&&Object.hasOwnProperty.call(e,"bytesValue")&&n.uint32(58).bytes(e.bytesValue),n},a.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},a.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.common.v1.AnyValue;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.stringValue=e.string();break}case 2:{l.boolValue=e.bool();break}case 3:{l.intValue=e.int64();break}case 4:{l.doubleValue=e.double();break}case 5:{l.arrayValue=p.opentelemetry.proto.common.v1.ArrayValue.decode(e,e.uint32());break}case 6:{l.kvlistValue=p.opentelemetry.proto.common.v1.KeyValueList.decode(e,e.uint32());break}case 7:{l.bytesValue=e.bytes();break}default:e.skipType(E&7);break}}return l},a.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},a.verify=function(e){if(typeof e!="object"||e===null)return"object expected";var n={};if(e.stringValue!=null&&e.hasOwnProperty("stringValue")&&(n.value=1,!_.isString(e.stringValue)))return"stringValue: string expected";if(e.boolValue!=null&&e.hasOwnProperty("boolValue")){if(n.value===1)return"value: multiple values";if(n.value=1,typeof e.boolValue!="boolean")return"boolValue: boolean expected"}if(e.intValue!=null&&e.hasOwnProperty("intValue")){if(n.value===1)return"value: multiple values";if(n.value=1,!_.isInteger(e.intValue)&&!(e.intValue&&_.isInteger(e.intValue.low)&&_.isInteger(e.intValue.high)))return"intValue: integer|Long expected"}if(e.doubleValue!=null&&e.hasOwnProperty("doubleValue")){if(n.value===1)return"value: multiple values";if(n.value=1,typeof e.doubleValue!="number")return"doubleValue: number expected"}if(e.arrayValue!=null&&e.hasOwnProperty("arrayValue")){if(n.value===1)return"value: multiple values";n.value=1;{var s=p.opentelemetry.proto.common.v1.ArrayValue.verify(e.arrayValue);if(s)return"arrayValue."+s}}if(e.kvlistValue!=null&&e.hasOwnProperty("kvlistValue")){if(n.value===1)return"value: multiple values";n.value=1;{var s=p.opentelemetry.proto.common.v1.KeyValueList.verify(e.kvlistValue);if(s)return"kvlistValue."+s}}if(e.bytesValue!=null&&e.hasOwnProperty("bytesValue")){if(n.value===1)return"value: multiple values";if(n.value=1,!(e.bytesValue&&typeof e.bytesValue.length=="number"||_.isString(e.bytesValue)))return"bytesValue: buffer expected"}return null},a.fromObject=function(e){if(e instanceof p.opentelemetry.proto.common.v1.AnyValue)return e;var n=new p.opentelemetry.proto.common.v1.AnyValue;if(e.stringValue!=null&&(n.stringValue=String(e.stringValue)),e.boolValue!=null&&(n.boolValue=!!e.boolValue),e.intValue!=null&&(_.Long?(n.intValue=_.Long.fromValue(e.intValue)).unsigned=!1:typeof e.intValue=="string"?n.intValue=parseInt(e.intValue,10):typeof e.intValue=="number"?n.intValue=e.intValue:typeof e.intValue=="object"&&(n.intValue=new _.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber())),e.doubleValue!=null&&(n.doubleValue=Number(e.doubleValue)),e.arrayValue!=null){if(typeof e.arrayValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.arrayValue: object expected");n.arrayValue=p.opentelemetry.proto.common.v1.ArrayValue.fromObject(e.arrayValue)}if(e.kvlistValue!=null){if(typeof e.kvlistValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.kvlistValue: object expected");n.kvlistValue=p.opentelemetry.proto.common.v1.KeyValueList.fromObject(e.kvlistValue)}return e.bytesValue!=null&&(typeof e.bytesValue=="string"?_.base64.decode(e.bytesValue,n.bytesValue=_.newBuffer(_.base64.length(e.bytesValue)),0):e.bytesValue.length>=0&&(n.bytesValue=e.bytesValue)),n},a.toObject=function(e,n){n||(n={});var s={};return e.stringValue!=null&&e.hasOwnProperty("stringValue")&&(s.stringValue=e.stringValue,n.oneofs&&(s.value="stringValue")),e.boolValue!=null&&e.hasOwnProperty("boolValue")&&(s.boolValue=e.boolValue,n.oneofs&&(s.value="boolValue")),e.intValue!=null&&e.hasOwnProperty("intValue")&&(typeof e.intValue=="number"?s.intValue=n.longs===String?String(e.intValue):e.intValue:s.intValue=n.longs===String?_.Long.prototype.toString.call(e.intValue):n.longs===Number?new _.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber():e.intValue,n.oneofs&&(s.value="intValue")),e.doubleValue!=null&&e.hasOwnProperty("doubleValue")&&(s.doubleValue=n.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue,n.oneofs&&(s.value="doubleValue")),e.arrayValue!=null&&e.hasOwnProperty("arrayValue")&&(s.arrayValue=p.opentelemetry.proto.common.v1.ArrayValue.toObject(e.arrayValue,n),n.oneofs&&(s.value="arrayValue")),e.kvlistValue!=null&&e.hasOwnProperty("kvlistValue")&&(s.kvlistValue=p.opentelemetry.proto.common.v1.KeyValueList.toObject(e.kvlistValue,n),n.oneofs&&(s.value="kvlistValue")),e.bytesValue!=null&&e.hasOwnProperty("bytesValue")&&(s.bytesValue=n.bytes===String?_.base64.encode(e.bytesValue,0,e.bytesValue.length):n.bytes===Array?Array.prototype.slice.call(e.bytesValue):e.bytesValue,n.oneofs&&(s.value="bytesValue")),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.common.v1.AnyValue"},a}(),c.ArrayValue=function(){function a(u){if(this.values=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.values=_.emptyArray,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=N.create()),t.values!=null&&t.values.length)for(var n=0;n<t.values.length;++n)p.opentelemetry.proto.common.v1.AnyValue.encode(t.values[n],e.uint32(10).fork()).ldelim();return e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.common.v1.ArrayValue;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.values&&s.values.length||(s.values=[]),s.values.push(p.opentelemetry.proto.common.v1.AnyValue.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.values!=null&&t.hasOwnProperty("values")){if(!Array.isArray(t.values))return"values: array expected";for(var e=0;e<t.values.length;++e){var n=p.opentelemetry.proto.common.v1.AnyValue.verify(t.values[e]);if(n)return"values."+n}}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.common.v1.ArrayValue)return t;var e=new p.opentelemetry.proto.common.v1.ArrayValue;if(t.values){if(!Array.isArray(t.values))throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: array expected");e.values=[];for(var n=0;n<t.values.length;++n){if(typeof t.values[n]!="object")throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: object expected");e.values[n]=p.opentelemetry.proto.common.v1.AnyValue.fromObject(t.values[n])}}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.values=[]),t.values&&t.values.length){n.values=[];for(var s=0;s<t.values.length;++s)n.values[s]=p.opentelemetry.proto.common.v1.AnyValue.toObject(t.values[s],e)}return n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.common.v1.ArrayValue"},a}(),c.KeyValueList=function(){function a(u){if(this.values=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.values=_.emptyArray,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=N.create()),t.values!=null&&t.values.length)for(var n=0;n<t.values.length;++n)p.opentelemetry.proto.common.v1.KeyValue.encode(t.values[n],e.uint32(10).fork()).ldelim();return e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.common.v1.KeyValueList;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.values&&s.values.length||(s.values=[]),s.values.push(p.opentelemetry.proto.common.v1.KeyValue.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.values!=null&&t.hasOwnProperty("values")){if(!Array.isArray(t.values))return"values: array expected";for(var e=0;e<t.values.length;++e){var n=p.opentelemetry.proto.common.v1.KeyValue.verify(t.values[e]);if(n)return"values."+n}}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.common.v1.KeyValueList)return t;var e=new p.opentelemetry.proto.common.v1.KeyValueList;if(t.values){if(!Array.isArray(t.values))throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: array expected");e.values=[];for(var n=0;n<t.values.length;++n){if(typeof t.values[n]!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: object expected");e.values[n]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(t.values[n])}}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.values=[]),t.values&&t.values.length){n.values=[];for(var s=0;s<t.values.length;++s)n.values[s]=p.opentelemetry.proto.common.v1.KeyValue.toObject(t.values[s],e)}return n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.common.v1.KeyValueList"},a}(),c.KeyValue=function(){function a(u){if(u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.key=null,a.prototype.value=null,a.create=function(t){return new a(t)},a.encode=function(t,e){return e||(e=N.create()),t.key!=null&&Object.hasOwnProperty.call(t,"key")&&e.uint32(10).string(t.key),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&p.opentelemetry.proto.common.v1.AnyValue.encode(t.value,e.uint32(18).fork()).ldelim(),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.common.v1.KeyValue;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.key=t.string();break}case 2:{s.value=p.opentelemetry.proto.common.v1.AnyValue.decode(t,t.uint32());break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.key!=null&&t.hasOwnProperty("key")&&!_.isString(t.key))return"key: string expected";if(t.value!=null&&t.hasOwnProperty("value")){var e=p.opentelemetry.proto.common.v1.AnyValue.verify(t.value);if(e)return"value."+e}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.common.v1.KeyValue)return t;var e=new p.opentelemetry.proto.common.v1.KeyValue;if(t.key!=null&&(e.key=String(t.key)),t.value!=null){if(typeof t.value!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValue.value: object expected");e.value=p.opentelemetry.proto.common.v1.AnyValue.fromObject(t.value)}return e},a.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.key="",n.value=null),t.key!=null&&t.hasOwnProperty("key")&&(n.key=t.key),t.value!=null&&t.hasOwnProperty("value")&&(n.value=p.opentelemetry.proto.common.v1.AnyValue.toObject(t.value,e)),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.common.v1.KeyValue"},a}(),c.InstrumentationScope=function(){function a(u){if(this.attributes=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.name=null,a.prototype.version=null,a.prototype.attributes=_.emptyArray,a.prototype.droppedAttributesCount=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=N.create()),t.name!=null&&Object.hasOwnProperty.call(t,"name")&&e.uint32(10).string(t.name),t.version!=null&&Object.hasOwnProperty.call(t,"version")&&e.uint32(18).string(t.version),t.attributes!=null&&t.attributes.length)for(var n=0;n<t.attributes.length;++n)p.opentelemetry.proto.common.v1.KeyValue.encode(t.attributes[n],e.uint32(26).fork()).ldelim();return t.droppedAttributesCount!=null&&Object.hasOwnProperty.call(t,"droppedAttributesCount")&&e.uint32(32).uint32(t.droppedAttributesCount),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.common.v1.InstrumentationScope;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.name=t.string();break}case 2:{s.version=t.string();break}case 3:{s.attributes&&s.attributes.length||(s.attributes=[]),s.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(t,t.uint32()));break}case 4:{s.droppedAttributesCount=t.uint32();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.name!=null&&t.hasOwnProperty("name")&&!_.isString(t.name))return"name: string expected";if(t.version!=null&&t.hasOwnProperty("version")&&!_.isString(t.version))return"version: string expected";if(t.attributes!=null&&t.hasOwnProperty("attributes")){if(!Array.isArray(t.attributes))return"attributes: array expected";for(var e=0;e<t.attributes.length;++e){var n=p.opentelemetry.proto.common.v1.KeyValue.verify(t.attributes[e]);if(n)return"attributes."+n}}return t.droppedAttributesCount!=null&&t.hasOwnProperty("droppedAttributesCount")&&!_.isInteger(t.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.common.v1.InstrumentationScope)return t;var e=new p.opentelemetry.proto.common.v1.InstrumentationScope;if(t.name!=null&&(e.name=String(t.name)),t.version!=null&&(e.version=String(t.version)),t.attributes){if(!Array.isArray(t.attributes))throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: array expected");e.attributes=[];for(var n=0;n<t.attributes.length;++n){if(typeof t.attributes[n]!="object")throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: object expected");e.attributes[n]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(t.attributes[n])}}return t.droppedAttributesCount!=null&&(e.droppedAttributesCount=t.droppedAttributesCount>>>0),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.attributes=[]),e.defaults&&(n.name="",n.version="",n.droppedAttributesCount=0),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.version!=null&&t.hasOwnProperty("version")&&(n.version=t.version),t.attributes&&t.attributes.length){n.attributes=[];for(var s=0;s<t.attributes.length;++s)n.attributes[s]=p.opentelemetry.proto.common.v1.KeyValue.toObject(t.attributes[s],e)}return t.droppedAttributesCount!=null&&t.hasOwnProperty("droppedAttributesCount")&&(n.droppedAttributesCount=t.droppedAttributesCount),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.common.v1.InstrumentationScope"},a}(),c}(),i}(),r.resource=function(){var i={};return i.v1=function(){var c={};return c.Resource=function(){function a(u){if(this.attributes=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.attributes=_.emptyArray,a.prototype.droppedAttributesCount=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=N.create()),t.attributes!=null&&t.attributes.length)for(var n=0;n<t.attributes.length;++n)p.opentelemetry.proto.common.v1.KeyValue.encode(t.attributes[n],e.uint32(10).fork()).ldelim();return t.droppedAttributesCount!=null&&Object.hasOwnProperty.call(t,"droppedAttributesCount")&&e.uint32(16).uint32(t.droppedAttributesCount),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.resource.v1.Resource;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.attributes&&s.attributes.length||(s.attributes=[]),s.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(t,t.uint32()));break}case 2:{s.droppedAttributesCount=t.uint32();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.attributes!=null&&t.hasOwnProperty("attributes")){if(!Array.isArray(t.attributes))return"attributes: array expected";for(var e=0;e<t.attributes.length;++e){var n=p.opentelemetry.proto.common.v1.KeyValue.verify(t.attributes[e]);if(n)return"attributes."+n}}return t.droppedAttributesCount!=null&&t.hasOwnProperty("droppedAttributesCount")&&!_.isInteger(t.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.resource.v1.Resource)return t;var e=new p.opentelemetry.proto.resource.v1.Resource;if(t.attributes){if(!Array.isArray(t.attributes))throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: array expected");e.attributes=[];for(var n=0;n<t.attributes.length;++n){if(typeof t.attributes[n]!="object")throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: object expected");e.attributes[n]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(t.attributes[n])}}return t.droppedAttributesCount!=null&&(e.droppedAttributesCount=t.droppedAttributesCount>>>0),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.attributes=[]),e.defaults&&(n.droppedAttributesCount=0),t.attributes&&t.attributes.length){n.attributes=[];for(var s=0;s<t.attributes.length;++s)n.attributes[s]=p.opentelemetry.proto.common.v1.KeyValue.toObject(t.attributes[s],e)}return t.droppedAttributesCount!=null&&t.hasOwnProperty("droppedAttributesCount")&&(n.droppedAttributesCount=t.droppedAttributesCount),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.resource.v1.Resource"},a}(),c}(),i}(),r.trace=function(){var i={};return i.v1=function(){var c={};return c.TracesData=function(){function a(u){if(this.resourceSpans=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.resourceSpans=_.emptyArray,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=N.create()),t.resourceSpans!=null&&t.resourceSpans.length)for(var n=0;n<t.resourceSpans.length;++n)p.opentelemetry.proto.trace.v1.ResourceSpans.encode(t.resourceSpans[n],e.uint32(10).fork()).ldelim();return e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.trace.v1.TracesData;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.resourceSpans&&s.resourceSpans.length||(s.resourceSpans=[]),s.resourceSpans.push(p.opentelemetry.proto.trace.v1.ResourceSpans.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.resourceSpans!=null&&t.hasOwnProperty("resourceSpans")){if(!Array.isArray(t.resourceSpans))return"resourceSpans: array expected";for(var e=0;e<t.resourceSpans.length;++e){var n=p.opentelemetry.proto.trace.v1.ResourceSpans.verify(t.resourceSpans[e]);if(n)return"resourceSpans."+n}}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.trace.v1.TracesData)return t;var e=new p.opentelemetry.proto.trace.v1.TracesData;if(t.resourceSpans){if(!Array.isArray(t.resourceSpans))throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: array expected");e.resourceSpans=[];for(var n=0;n<t.resourceSpans.length;++n){if(typeof t.resourceSpans[n]!="object")throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: object expected");e.resourceSpans[n]=p.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(t.resourceSpans[n])}}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.resourceSpans=[]),t.resourceSpans&&t.resourceSpans.length){n.resourceSpans=[];for(var s=0;s<t.resourceSpans.length;++s)n.resourceSpans[s]=p.opentelemetry.proto.trace.v1.ResourceSpans.toObject(t.resourceSpans[s],e)}return n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.trace.v1.TracesData"},a}(),c.ResourceSpans=function(){function a(u){if(this.scopeSpans=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.resource=null,a.prototype.scopeSpans=_.emptyArray,a.prototype.schemaUrl=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=N.create()),t.resource!=null&&Object.hasOwnProperty.call(t,"resource")&&p.opentelemetry.proto.resource.v1.Resource.encode(t.resource,e.uint32(10).fork()).ldelim(),t.scopeSpans!=null&&t.scopeSpans.length)for(var n=0;n<t.scopeSpans.length;++n)p.opentelemetry.proto.trace.v1.ScopeSpans.encode(t.scopeSpans[n],e.uint32(18).fork()).ldelim();return t.schemaUrl!=null&&Object.hasOwnProperty.call(t,"schemaUrl")&&e.uint32(26).string(t.schemaUrl),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.trace.v1.ResourceSpans;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.resource=p.opentelemetry.proto.resource.v1.Resource.decode(t,t.uint32());break}case 2:{s.scopeSpans&&s.scopeSpans.length||(s.scopeSpans=[]),s.scopeSpans.push(p.opentelemetry.proto.trace.v1.ScopeSpans.decode(t,t.uint32()));break}case 3:{s.schemaUrl=t.string();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.resource!=null&&t.hasOwnProperty("resource")){var e=p.opentelemetry.proto.resource.v1.Resource.verify(t.resource);if(e)return"resource."+e}if(t.scopeSpans!=null&&t.hasOwnProperty("scopeSpans")){if(!Array.isArray(t.scopeSpans))return"scopeSpans: array expected";for(var n=0;n<t.scopeSpans.length;++n){var e=p.opentelemetry.proto.trace.v1.ScopeSpans.verify(t.scopeSpans[n]);if(e)return"scopeSpans."+e}}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&!_.isString(t.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.trace.v1.ResourceSpans)return t;var e=new p.opentelemetry.proto.trace.v1.ResourceSpans;if(t.resource!=null){if(typeof t.resource!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.resource: object expected");e.resource=p.opentelemetry.proto.resource.v1.Resource.fromObject(t.resource)}if(t.scopeSpans){if(!Array.isArray(t.scopeSpans))throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: array expected");e.scopeSpans=[];for(var n=0;n<t.scopeSpans.length;++n){if(typeof t.scopeSpans[n]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: object expected");e.scopeSpans[n]=p.opentelemetry.proto.trace.v1.ScopeSpans.fromObject(t.scopeSpans[n])}}return t.schemaUrl!=null&&(e.schemaUrl=String(t.schemaUrl)),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.scopeSpans=[]),e.defaults&&(n.resource=null,n.schemaUrl=""),t.resource!=null&&t.hasOwnProperty("resource")&&(n.resource=p.opentelemetry.proto.resource.v1.Resource.toObject(t.resource,e)),t.scopeSpans&&t.scopeSpans.length){n.scopeSpans=[];for(var s=0;s<t.scopeSpans.length;++s)n.scopeSpans[s]=p.opentelemetry.proto.trace.v1.ScopeSpans.toObject(t.scopeSpans[s],e)}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&(n.schemaUrl=t.schemaUrl),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.trace.v1.ResourceSpans"},a}(),c.ScopeSpans=function(){function a(u){if(this.spans=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.scope=null,a.prototype.spans=_.emptyArray,a.prototype.schemaUrl=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=N.create()),t.scope!=null&&Object.hasOwnProperty.call(t,"scope")&&p.opentelemetry.proto.common.v1.InstrumentationScope.encode(t.scope,e.uint32(10).fork()).ldelim(),t.spans!=null&&t.spans.length)for(var n=0;n<t.spans.length;++n)p.opentelemetry.proto.trace.v1.Span.encode(t.spans[n],e.uint32(18).fork()).ldelim();return t.schemaUrl!=null&&Object.hasOwnProperty.call(t,"schemaUrl")&&e.uint32(26).string(t.schemaUrl),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.trace.v1.ScopeSpans;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.scope=p.opentelemetry.proto.common.v1.InstrumentationScope.decode(t,t.uint32());break}case 2:{s.spans&&s.spans.length||(s.spans=[]),s.spans.push(p.opentelemetry.proto.trace.v1.Span.decode(t,t.uint32()));break}case 3:{s.schemaUrl=t.string();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.scope!=null&&t.hasOwnProperty("scope")){var e=p.opentelemetry.proto.common.v1.InstrumentationScope.verify(t.scope);if(e)return"scope."+e}if(t.spans!=null&&t.hasOwnProperty("spans")){if(!Array.isArray(t.spans))return"spans: array expected";for(var n=0;n<t.spans.length;++n){var e=p.opentelemetry.proto.trace.v1.Span.verify(t.spans[n]);if(e)return"spans."+e}}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&!_.isString(t.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.trace.v1.ScopeSpans)return t;var e=new p.opentelemetry.proto.trace.v1.ScopeSpans;if(t.scope!=null){if(typeof t.scope!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.scope: object expected");e.scope=p.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(t.scope)}if(t.spans){if(!Array.isArray(t.spans))throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: array expected");e.spans=[];for(var n=0;n<t.spans.length;++n){if(typeof t.spans[n]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: object expected");e.spans[n]=p.opentelemetry.proto.trace.v1.Span.fromObject(t.spans[n])}}return t.schemaUrl!=null&&(e.schemaUrl=String(t.schemaUrl)),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.spans=[]),e.defaults&&(n.scope=null,n.schemaUrl=""),t.scope!=null&&t.hasOwnProperty("scope")&&(n.scope=p.opentelemetry.proto.common.v1.InstrumentationScope.toObject(t.scope,e)),t.spans&&t.spans.length){n.spans=[];for(var s=0;s<t.spans.length;++s)n.spans[s]=p.opentelemetry.proto.trace.v1.Span.toObject(t.spans[s],e)}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&(n.schemaUrl=t.schemaUrl),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.trace.v1.ScopeSpans"},a}(),c.Span=function(){function a(u){if(this.attributes=[],this.events=[],this.links=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.traceId=null,a.prototype.spanId=null,a.prototype.traceState=null,a.prototype.parentSpanId=null,a.prototype.name=null,a.prototype.kind=null,a.prototype.startTimeUnixNano=null,a.prototype.endTimeUnixNano=null,a.prototype.attributes=_.emptyArray,a.prototype.droppedAttributesCount=null,a.prototype.events=_.emptyArray,a.prototype.droppedEventsCount=null,a.prototype.links=_.emptyArray,a.prototype.droppedLinksCount=null,a.prototype.status=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=N.create()),t.traceId!=null&&Object.hasOwnProperty.call(t,"traceId")&&e.uint32(10).bytes(t.traceId),t.spanId!=null&&Object.hasOwnProperty.call(t,"spanId")&&e.uint32(18).bytes(t.spanId),t.traceState!=null&&Object.hasOwnProperty.call(t,"traceState")&&e.uint32(26).string(t.traceState),t.parentSpanId!=null&&Object.hasOwnProperty.call(t,"parentSpanId")&&e.uint32(34).bytes(t.parentSpanId),t.name!=null&&Object.hasOwnProperty.call(t,"name")&&e.uint32(42).string(t.name),t.kind!=null&&Object.hasOwnProperty.call(t,"kind")&&e.uint32(48).int32(t.kind),t.startTimeUnixNano!=null&&Object.hasOwnProperty.call(t,"startTimeUnixNano")&&e.uint32(57).fixed64(t.startTimeUnixNano),t.endTimeUnixNano!=null&&Object.hasOwnProperty.call(t,"endTimeUnixNano")&&e.uint32(65).fixed64(t.endTimeUnixNano),t.attributes!=null&&t.attributes.length)for(var n=0;n<t.attributes.length;++n)p.opentelemetry.proto.common.v1.KeyValue.encode(t.attributes[n],e.uint32(74).fork()).ldelim();if(t.droppedAttributesCount!=null&&Object.hasOwnProperty.call(t,"droppedAttributesCount")&&e.uint32(80).uint32(t.droppedAttributesCount),t.events!=null&&t.events.length)for(var n=0;n<t.events.length;++n)p.opentelemetry.proto.trace.v1.Span.Event.encode(t.events[n],e.uint32(90).fork()).ldelim();if(t.droppedEventsCount!=null&&Object.hasOwnProperty.call(t,"droppedEventsCount")&&e.uint32(96).uint32(t.droppedEventsCount),t.links!=null&&t.links.length)for(var n=0;n<t.links.length;++n)p.opentelemetry.proto.trace.v1.Span.Link.encode(t.links[n],e.uint32(106).fork()).ldelim();return t.droppedLinksCount!=null&&Object.hasOwnProperty.call(t,"droppedLinksCount")&&e.uint32(112).uint32(t.droppedLinksCount),t.status!=null&&Object.hasOwnProperty.call(t,"status")&&p.opentelemetry.proto.trace.v1.Status.encode(t.status,e.uint32(122).fork()).ldelim(),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.trace.v1.Span;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.traceId=t.bytes();break}case 2:{s.spanId=t.bytes();break}case 3:{s.traceState=t.string();break}case 4:{s.parentSpanId=t.bytes();break}case 5:{s.name=t.string();break}case 6:{s.kind=t.int32();break}case 7:{s.startTimeUnixNano=t.fixed64();break}case 8:{s.endTimeUnixNano=t.fixed64();break}case 9:{s.attributes&&s.attributes.length||(s.attributes=[]),s.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(t,t.uint32()));break}case 10:{s.droppedAttributesCount=t.uint32();break}case 11:{s.events&&s.events.length||(s.events=[]),s.events.push(p.opentelemetry.proto.trace.v1.Span.Event.decode(t,t.uint32()));break}case 12:{s.droppedEventsCount=t.uint32();break}case 13:{s.links&&s.links.length||(s.links=[]),s.links.push(p.opentelemetry.proto.trace.v1.Span.Link.decode(t,t.uint32()));break}case 14:{s.droppedLinksCount=t.uint32();break}case 15:{s.status=p.opentelemetry.proto.trace.v1.Status.decode(t,t.uint32());break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.traceId!=null&&t.hasOwnProperty("traceId")&&!(t.traceId&&typeof t.traceId.length=="number"||_.isString(t.traceId)))return"traceId: buffer expected";if(t.spanId!=null&&t.hasOwnProperty("spanId")&&!(t.spanId&&typeof t.spanId.length=="number"||_.isString(t.spanId)))return"spanId: buffer expected";if(t.traceState!=null&&t.hasOwnProperty("traceState")&&!_.isString(t.traceState))return"traceState: string expected";if(t.parentSpanId!=null&&t.hasOwnProperty("parentSpanId")&&!(t.parentSpanId&&typeof t.parentSpanId.length=="number"||_.isString(t.parentSpanId)))return"parentSpanId: buffer expected";if(t.name!=null&&t.hasOwnProperty("name")&&!_.isString(t.name))return"name: string expected";if(t.kind!=null&&t.hasOwnProperty("kind"))switch(t.kind){default:return"kind: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:break}if(t.startTimeUnixNano!=null&&t.hasOwnProperty("startTimeUnixNano")&&!_.isInteger(t.startTimeUnixNano)&&!(t.startTimeUnixNano&&_.isInteger(t.startTimeUnixNano.low)&&_.isInteger(t.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(t.endTimeUnixNano!=null&&t.hasOwnProperty("endTimeUnixNano")&&!_.isInteger(t.endTimeUnixNano)&&!(t.endTimeUnixNano&&_.isInteger(t.endTimeUnixNano.low)&&_.isInteger(t.endTimeUnixNano.high)))return"endTimeUnixNano: integer|Long expected";if(t.attributes!=null&&t.hasOwnProperty("attributes")){if(!Array.isArray(t.attributes))return"attributes: array expected";for(var e=0;e<t.attributes.length;++e){var n=p.opentelemetry.proto.common.v1.KeyValue.verify(t.attributes[e]);if(n)return"attributes."+n}}if(t.droppedAttributesCount!=null&&t.hasOwnProperty("droppedAttributesCount")&&!_.isInteger(t.droppedAttributesCount))return"droppedAttributesCount: integer expected";if(t.events!=null&&t.hasOwnProperty("events")){if(!Array.isArray(t.events))return"events: array expected";for(var e=0;e<t.events.length;++e){var n=p.opentelemetry.proto.trace.v1.Span.Event.verify(t.events[e]);if(n)return"events."+n}}if(t.droppedEventsCount!=null&&t.hasOwnProperty("droppedEventsCount")&&!_.isInteger(t.droppedEventsCount))return"droppedEventsCount: integer expected";if(t.links!=null&&t.hasOwnProperty("links")){if(!Array.isArray(t.links))return"links: array expected";for(var e=0;e<t.links.length;++e){var n=p.opentelemetry.proto.trace.v1.Span.Link.verify(t.links[e]);if(n)return"links."+n}}if(t.droppedLinksCount!=null&&t.hasOwnProperty("droppedLinksCount")&&!_.isInteger(t.droppedLinksCount))return"droppedLinksCount: integer expected";if(t.status!=null&&t.hasOwnProperty("status")){var n=p.opentelemetry.proto.trace.v1.Status.verify(t.status);if(n)return"status."+n}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.trace.v1.Span)return t;var e=new p.opentelemetry.proto.trace.v1.Span;switch(t.traceId!=null&&(typeof t.traceId=="string"?_.base64.decode(t.traceId,e.traceId=_.newBuffer(_.base64.length(t.traceId)),0):t.traceId.length>=0&&(e.traceId=t.traceId)),t.spanId!=null&&(typeof t.spanId=="string"?_.base64.decode(t.spanId,e.spanId=_.newBuffer(_.base64.length(t.spanId)),0):t.spanId.length>=0&&(e.spanId=t.spanId)),t.traceState!=null&&(e.traceState=String(t.traceState)),t.parentSpanId!=null&&(typeof t.parentSpanId=="string"?_.base64.decode(t.parentSpanId,e.parentSpanId=_.newBuffer(_.base64.length(t.parentSpanId)),0):t.parentSpanId.length>=0&&(e.parentSpanId=t.parentSpanId)),t.name!=null&&(e.name=String(t.name)),t.kind){default:if(typeof t.kind=="number"){e.kind=t.kind;break}break;case"SPAN_KIND_UNSPECIFIED":case 0:e.kind=0;break;case"SPAN_KIND_INTERNAL":case 1:e.kind=1;break;case"SPAN_KIND_SERVER":case 2:e.kind=2;break;case"SPAN_KIND_CLIENT":case 3:e.kind=3;break;case"SPAN_KIND_PRODUCER":case 4:e.kind=4;break;case"SPAN_KIND_CONSUMER":case 5:e.kind=5;break}if(t.startTimeUnixNano!=null&&(_.Long?(e.startTimeUnixNano=_.Long.fromValue(t.startTimeUnixNano)).unsigned=!1:typeof t.startTimeUnixNano=="string"?e.startTimeUnixNano=parseInt(t.startTimeUnixNano,10):typeof t.startTimeUnixNano=="number"?e.startTimeUnixNano=t.startTimeUnixNano:typeof t.startTimeUnixNano=="object"&&(e.startTimeUnixNano=new _.LongBits(t.startTimeUnixNano.low>>>0,t.startTimeUnixNano.high>>>0).toNumber())),t.endTimeUnixNano!=null&&(_.Long?(e.endTimeUnixNano=_.Long.fromValue(t.endTimeUnixNano)).unsigned=!1:typeof t.endTimeUnixNano=="string"?e.endTimeUnixNano=parseInt(t.endTimeUnixNano,10):typeof t.endTimeUnixNano=="number"?e.endTimeUnixNano=t.endTimeUnixNano:typeof t.endTimeUnixNano=="object"&&(e.endTimeUnixNano=new _.LongBits(t.endTimeUnixNano.low>>>0,t.endTimeUnixNano.high>>>0).toNumber())),t.attributes){if(!Array.isArray(t.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: array expected");e.attributes=[];for(var n=0;n<t.attributes.length;++n){if(typeof t.attributes[n]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: object expected");e.attributes[n]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(t.attributes[n])}}if(t.droppedAttributesCount!=null&&(e.droppedAttributesCount=t.droppedAttributesCount>>>0),t.events){if(!Array.isArray(t.events))throw TypeError(".opentelemetry.proto.trace.v1.Span.events: array expected");e.events=[];for(var n=0;n<t.events.length;++n){if(typeof t.events[n]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.events: object expected");e.events[n]=p.opentelemetry.proto.trace.v1.Span.Event.fromObject(t.events[n])}}if(t.droppedEventsCount!=null&&(e.droppedEventsCount=t.droppedEventsCount>>>0),t.links){if(!Array.isArray(t.links))throw TypeError(".opentelemetry.proto.trace.v1.Span.links: array expected");e.links=[];for(var n=0;n<t.links.length;++n){if(typeof t.links[n]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.links: object expected");e.links[n]=p.opentelemetry.proto.trace.v1.Span.Link.fromObject(t.links[n])}}if(t.droppedLinksCount!=null&&(e.droppedLinksCount=t.droppedLinksCount>>>0),t.status!=null){if(typeof t.status!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.status: object expected");e.status=p.opentelemetry.proto.trace.v1.Status.fromObject(t.status)}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.attributes=[],n.events=[],n.links=[]),e.defaults){if(e.bytes===String?n.traceId="":(n.traceId=[],e.bytes!==Array&&(n.traceId=_.newBuffer(n.traceId))),e.bytes===String?n.spanId="":(n.spanId=[],e.bytes!==Array&&(n.spanId=_.newBuffer(n.spanId))),n.traceState="",e.bytes===String?n.parentSpanId="":(n.parentSpanId=[],e.bytes!==Array&&(n.parentSpanId=_.newBuffer(n.parentSpanId))),n.name="",n.kind=e.enums===String?"SPAN_KIND_UNSPECIFIED":0,_.Long){var s=new _.Long(0,0,!1);n.startTimeUnixNano=e.longs===String?s.toString():e.longs===Number?s.toNumber():s}else n.startTimeUnixNano=e.longs===String?"0":0;if(_.Long){var s=new _.Long(0,0,!1);n.endTimeUnixNano=e.longs===String?s.toString():e.longs===Number?s.toNumber():s}else n.endTimeUnixNano=e.longs===String?"0":0;n.droppedAttributesCount=0,n.droppedEventsCount=0,n.droppedLinksCount=0,n.status=null}if(t.traceId!=null&&t.hasOwnProperty("traceId")&&(n.traceId=e.bytes===String?_.base64.encode(t.traceId,0,t.traceId.length):e.bytes===Array?Array.prototype.slice.call(t.traceId):t.traceId),t.spanId!=null&&t.hasOwnProperty("spanId")&&(n.spanId=e.bytes===String?_.base64.encode(t.spanId,0,t.spanId.length):e.bytes===Array?Array.prototype.slice.call(t.spanId):t.spanId),t.traceState!=null&&t.hasOwnProperty("traceState")&&(n.traceState=t.traceState),t.parentSpanId!=null&&t.hasOwnProperty("parentSpanId")&&(n.parentSpanId=e.bytes===String?_.base64.encode(t.parentSpanId,0,t.parentSpanId.length):e.bytes===Array?Array.prototype.slice.call(t.parentSpanId):t.parentSpanId),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.kind!=null&&t.hasOwnProperty("kind")&&(n.kind=e.enums===String?p.opentelemetry.proto.trace.v1.Span.SpanKind[t.kind]===void 0?t.kind:p.opentelemetry.proto.trace.v1.Span.SpanKind[t.kind]:t.kind),t.startTimeUnixNano!=null&&t.hasOwnProperty("startTimeUnixNano")&&(typeof t.startTimeUnixNano=="number"?n.startTimeUnixNano=e.longs===String?String(t.startTimeUnixNano):t.startTimeUnixNano:n.startTimeUnixNano=e.longs===String?_.Long.prototype.toString.call(t.startTimeUnixNano):e.longs===Number?new _.LongBits(t.startTimeUnixNano.low>>>0,t.startTimeUnixNano.high>>>0).toNumber():t.startTimeUnixNano),t.endTimeUnixNano!=null&&t.hasOwnProperty("endTimeUnixNano")&&(typeof t.endTimeUnixNano=="number"?n.endTimeUnixNano=e.longs===String?String(t.endTimeUnixNano):t.endTimeUnixNano:n.endTimeUnixNano=e.longs===String?_.Long.prototype.toString.call(t.endTimeUnixNano):e.longs===Number?new _.LongBits(t.endTimeUnixNano.low>>>0,t.endTimeUnixNano.high>>>0).toNumber():t.endTimeUnixNano),t.attributes&&t.attributes.length){n.attributes=[];for(var l=0;l<t.attributes.length;++l)n.attributes[l]=p.opentelemetry.proto.common.v1.KeyValue.toObject(t.attributes[l],e)}if(t.droppedAttributesCount!=null&&t.hasOwnProperty("droppedAttributesCount")&&(n.droppedAttributesCount=t.droppedAttributesCount),t.events&&t.events.length){n.events=[];for(var l=0;l<t.events.length;++l)n.events[l]=p.opentelemetry.proto.trace.v1.Span.Event.toObject(t.events[l],e)}if(t.droppedEventsCount!=null&&t.hasOwnProperty("droppedEventsCount")&&(n.droppedEventsCount=t.droppedEventsCount),t.links&&t.links.length){n.links=[];for(var l=0;l<t.links.length;++l)n.links[l]=p.opentelemetry.proto.trace.v1.Span.Link.toObject(t.links[l],e)}return t.droppedLinksCount!=null&&t.hasOwnProperty("droppedLinksCount")&&(n.droppedLinksCount=t.droppedLinksCount),t.status!=null&&t.hasOwnProperty("status")&&(n.status=p.opentelemetry.proto.trace.v1.Status.toObject(t.status,e)),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.trace.v1.Span"},a.SpanKind=function(){var u={},t=Object.create(u);return t[u[0]="SPAN_KIND_UNSPECIFIED"]=0,t[u[1]="SPAN_KIND_INTERNAL"]=1,t[u[2]="SPAN_KIND_SERVER"]=2,t[u[3]="SPAN_KIND_CLIENT"]=3,t[u[4]="SPAN_KIND_PRODUCER"]=4,t[u[5]="SPAN_KIND_CONSUMER"]=5,t}(),a.Event=function(){function u(t){if(this.attributes=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.timeUnixNano=null,u.prototype.name=null,u.prototype.attributes=_.emptyArray,u.prototype.droppedAttributesCount=null,u.create=function(e){return new u(e)},u.encode=function(e,n){if(n||(n=N.create()),e.timeUnixNano!=null&&Object.hasOwnProperty.call(e,"timeUnixNano")&&n.uint32(9).fixed64(e.timeUnixNano),e.name!=null&&Object.hasOwnProperty.call(e,"name")&&n.uint32(18).string(e.name),e.attributes!=null&&e.attributes.length)for(var s=0;s<e.attributes.length;++s)p.opentelemetry.proto.common.v1.KeyValue.encode(e.attributes[s],n.uint32(26).fork()).ldelim();return e.droppedAttributesCount!=null&&Object.hasOwnProperty.call(e,"droppedAttributesCount")&&n.uint32(32).uint32(e.droppedAttributesCount),n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.trace.v1.Span.Event;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.timeUnixNano=e.fixed64();break}case 2:{l.name=e.string();break}case 3:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(e,e.uint32()));break}case 4:{l.droppedAttributesCount=e.uint32();break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&!_.isInteger(e.timeUnixNano)&&!(e.timeUnixNano&&_.isInteger(e.timeUnixNano.low)&&_.isInteger(e.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(e.name!=null&&e.hasOwnProperty("name")&&!_.isString(e.name))return"name: string expected";if(e.attributes!=null&&e.hasOwnProperty("attributes")){if(!Array.isArray(e.attributes))return"attributes: array expected";for(var n=0;n<e.attributes.length;++n){var s=p.opentelemetry.proto.common.v1.KeyValue.verify(e.attributes[n]);if(s)return"attributes."+s}}return e.droppedAttributesCount!=null&&e.hasOwnProperty("droppedAttributesCount")&&!_.isInteger(e.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.trace.v1.Span.Event)return e;var n=new p.opentelemetry.proto.trace.v1.Span.Event;if(e.timeUnixNano!=null&&(_.Long?(n.timeUnixNano=_.Long.fromValue(e.timeUnixNano)).unsigned=!1:typeof e.timeUnixNano=="string"?n.timeUnixNano=parseInt(e.timeUnixNano,10):typeof e.timeUnixNano=="number"?n.timeUnixNano=e.timeUnixNano:typeof e.timeUnixNano=="object"&&(n.timeUnixNano=new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber())),e.name!=null&&(n.name=String(e.name)),e.attributes){if(!Array.isArray(e.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: array expected");n.attributes=[];for(var s=0;s<e.attributes.length;++s){if(typeof e.attributes[s]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: object expected");n.attributes[s]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(e.attributes[s])}}return e.droppedAttributesCount!=null&&(n.droppedAttributesCount=e.droppedAttributesCount>>>0),n},u.toObject=function(e,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.attributes=[]),n.defaults){if(_.Long){var l=new _.Long(0,0,!1);s.timeUnixNano=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.timeUnixNano=n.longs===String?"0":0;s.name="",s.droppedAttributesCount=0}if(e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&(typeof e.timeUnixNano=="number"?s.timeUnixNano=n.longs===String?String(e.timeUnixNano):e.timeUnixNano:s.timeUnixNano=n.longs===String?_.Long.prototype.toString.call(e.timeUnixNano):n.longs===Number?new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber():e.timeUnixNano),e.name!=null&&e.hasOwnProperty("name")&&(s.name=e.name),e.attributes&&e.attributes.length){s.attributes=[];for(var E=0;E<e.attributes.length;++E)s.attributes[E]=p.opentelemetry.proto.common.v1.KeyValue.toObject(e.attributes[E],n)}return e.droppedAttributesCount!=null&&e.hasOwnProperty("droppedAttributesCount")&&(s.droppedAttributesCount=e.droppedAttributesCount),s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.trace.v1.Span.Event"},u}(),a.Link=function(){function u(t){if(this.attributes=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.traceId=null,u.prototype.spanId=null,u.prototype.traceState=null,u.prototype.attributes=_.emptyArray,u.prototype.droppedAttributesCount=null,u.create=function(e){return new u(e)},u.encode=function(e,n){if(n||(n=N.create()),e.traceId!=null&&Object.hasOwnProperty.call(e,"traceId")&&n.uint32(10).bytes(e.traceId),e.spanId!=null&&Object.hasOwnProperty.call(e,"spanId")&&n.uint32(18).bytes(e.spanId),e.traceState!=null&&Object.hasOwnProperty.call(e,"traceState")&&n.uint32(26).string(e.traceState),e.attributes!=null&&e.attributes.length)for(var s=0;s<e.attributes.length;++s)p.opentelemetry.proto.common.v1.KeyValue.encode(e.attributes[s],n.uint32(34).fork()).ldelim();return e.droppedAttributesCount!=null&&Object.hasOwnProperty.call(e,"droppedAttributesCount")&&n.uint32(40).uint32(e.droppedAttributesCount),n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.trace.v1.Span.Link;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.traceId=e.bytes();break}case 2:{l.spanId=e.bytes();break}case 3:{l.traceState=e.string();break}case 4:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(e,e.uint32()));break}case 5:{l.droppedAttributesCount=e.uint32();break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.traceId!=null&&e.hasOwnProperty("traceId")&&!(e.traceId&&typeof e.traceId.length=="number"||_.isString(e.traceId)))return"traceId: buffer expected";if(e.spanId!=null&&e.hasOwnProperty("spanId")&&!(e.spanId&&typeof e.spanId.length=="number"||_.isString(e.spanId)))return"spanId: buffer expected";if(e.traceState!=null&&e.hasOwnProperty("traceState")&&!_.isString(e.traceState))return"traceState: string expected";if(e.attributes!=null&&e.hasOwnProperty("attributes")){if(!Array.isArray(e.attributes))return"attributes: array expected";for(var n=0;n<e.attributes.length;++n){var s=p.opentelemetry.proto.common.v1.KeyValue.verify(e.attributes[n]);if(s)return"attributes."+s}}return e.droppedAttributesCount!=null&&e.hasOwnProperty("droppedAttributesCount")&&!_.isInteger(e.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.trace.v1.Span.Link)return e;var n=new p.opentelemetry.proto.trace.v1.Span.Link;if(e.traceId!=null&&(typeof e.traceId=="string"?_.base64.decode(e.traceId,n.traceId=_.newBuffer(_.base64.length(e.traceId)),0):e.traceId.length>=0&&(n.traceId=e.traceId)),e.spanId!=null&&(typeof e.spanId=="string"?_.base64.decode(e.spanId,n.spanId=_.newBuffer(_.base64.length(e.spanId)),0):e.spanId.length>=0&&(n.spanId=e.spanId)),e.traceState!=null&&(n.traceState=String(e.traceState)),e.attributes){if(!Array.isArray(e.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: array expected");n.attributes=[];for(var s=0;s<e.attributes.length;++s){if(typeof e.attributes[s]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: object expected");n.attributes[s]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(e.attributes[s])}}return e.droppedAttributesCount!=null&&(n.droppedAttributesCount=e.droppedAttributesCount>>>0),n},u.toObject=function(e,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.attributes=[]),n.defaults&&(n.bytes===String?s.traceId="":(s.traceId=[],n.bytes!==Array&&(s.traceId=_.newBuffer(s.traceId))),n.bytes===String?s.spanId="":(s.spanId=[],n.bytes!==Array&&(s.spanId=_.newBuffer(s.spanId))),s.traceState="",s.droppedAttributesCount=0),e.traceId!=null&&e.hasOwnProperty("traceId")&&(s.traceId=n.bytes===String?_.base64.encode(e.traceId,0,e.traceId.length):n.bytes===Array?Array.prototype.slice.call(e.traceId):e.traceId),e.spanId!=null&&e.hasOwnProperty("spanId")&&(s.spanId=n.bytes===String?_.base64.encode(e.spanId,0,e.spanId.length):n.bytes===Array?Array.prototype.slice.call(e.spanId):e.spanId),e.traceState!=null&&e.hasOwnProperty("traceState")&&(s.traceState=e.traceState),e.attributes&&e.attributes.length){s.attributes=[];for(var l=0;l<e.attributes.length;++l)s.attributes[l]=p.opentelemetry.proto.common.v1.KeyValue.toObject(e.attributes[l],n)}return e.droppedAttributesCount!=null&&e.hasOwnProperty("droppedAttributesCount")&&(s.droppedAttributesCount=e.droppedAttributesCount),s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.trace.v1.Span.Link"},u}(),a}(),c.Status=function(){function a(u){if(u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.message=null,a.prototype.code=null,a.create=function(t){return new a(t)},a.encode=function(t,e){return e||(e=N.create()),t.message!=null&&Object.hasOwnProperty.call(t,"message")&&e.uint32(18).string(t.message),t.code!=null&&Object.hasOwnProperty.call(t,"code")&&e.uint32(24).int32(t.code),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.trace.v1.Status;t.pos<n;){var l=t.uint32();switch(l>>>3){case 2:{s.message=t.string();break}case 3:{s.code=t.int32();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.message!=null&&t.hasOwnProperty("message")&&!_.isString(t.message))return"message: string expected";if(t.code!=null&&t.hasOwnProperty("code"))switch(t.code){default:return"code: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.trace.v1.Status)return t;var e=new p.opentelemetry.proto.trace.v1.Status;switch(t.message!=null&&(e.message=String(t.message)),t.code){default:if(typeof t.code=="number"){e.code=t.code;break}break;case"STATUS_CODE_UNSET":case 0:e.code=0;break;case"STATUS_CODE_OK":case 1:e.code=1;break;case"STATUS_CODE_ERROR":case 2:e.code=2;break}return e},a.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.message="",n.code=e.enums===String?"STATUS_CODE_UNSET":0),t.message!=null&&t.hasOwnProperty("message")&&(n.message=t.message),t.code!=null&&t.hasOwnProperty("code")&&(n.code=e.enums===String?p.opentelemetry.proto.trace.v1.Status.StatusCode[t.code]===void 0?t.code:p.opentelemetry.proto.trace.v1.Status.StatusCode[t.code]:t.code),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.trace.v1.Status"},a.StatusCode=function(){var u={},t=Object.create(u);return t[u[0]="STATUS_CODE_UNSET"]=0,t[u[1]="STATUS_CODE_OK"]=1,t[u[2]="STATUS_CODE_ERROR"]=2,t}(),a}(),c}(),i}(),r.collector=function(){var i={};return i.trace=function(){var c={};return c.v1=function(){var a={};return a.TraceService=function(){function u(t,e,n){v.rpc.Service.call(this,t,e,n)}return(u.prototype=Object.create(v.rpc.Service.prototype)).constructor=u,u.create=function(e,n,s){return new this(e,n,s)},Object.defineProperty(u.prototype.export=function t(e,n){return this.rpcCall(t,p.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,p.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,e,n)},"name",{value:"Export"}),u}(),a.ExportTraceServiceRequest=function(){function u(t){if(this.resourceSpans=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.resourceSpans=_.emptyArray,u.create=function(e){return new u(e)},u.encode=function(e,n){if(n||(n=N.create()),e.resourceSpans!=null&&e.resourceSpans.length)for(var s=0;s<e.resourceSpans.length;++s)p.opentelemetry.proto.trace.v1.ResourceSpans.encode(e.resourceSpans[s],n.uint32(10).fork()).ldelim();return n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.resourceSpans&&l.resourceSpans.length||(l.resourceSpans=[]),l.resourceSpans.push(p.opentelemetry.proto.trace.v1.ResourceSpans.decode(e,e.uint32()));break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.resourceSpans!=null&&e.hasOwnProperty("resourceSpans")){if(!Array.isArray(e.resourceSpans))return"resourceSpans: array expected";for(var n=0;n<e.resourceSpans.length;++n){var s=p.opentelemetry.proto.trace.v1.ResourceSpans.verify(e.resourceSpans[n]);if(s)return"resourceSpans."+s}}return null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest)return e;var n=new p.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;if(e.resourceSpans){if(!Array.isArray(e.resourceSpans))throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: array expected");n.resourceSpans=[];for(var s=0;s<e.resourceSpans.length;++s){if(typeof e.resourceSpans[s]!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: object expected");n.resourceSpans[s]=p.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(e.resourceSpans[s])}}return n},u.toObject=function(e,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.resourceSpans=[]),e.resourceSpans&&e.resourceSpans.length){s.resourceSpans=[];for(var l=0;l<e.resourceSpans.length;++l)s.resourceSpans[l]=p.opentelemetry.proto.trace.v1.ResourceSpans.toObject(e.resourceSpans[l],n)}return s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest"},u}(),a.ExportTraceServiceResponse=function(){function u(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.partialSuccess=null,u.create=function(e){return new u(e)},u.encode=function(e,n){return n||(n=N.create()),e.partialSuccess!=null&&Object.hasOwnProperty.call(e,"partialSuccess")&&p.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.encode(e.partialSuccess,n.uint32(10).fork()).ldelim(),n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.partialSuccess=p.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.decode(e,e.uint32());break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.partialSuccess!=null&&e.hasOwnProperty("partialSuccess")){var n=p.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.verify(e.partialSuccess);if(n)return"partialSuccess."+n}return null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse)return e;var n=new p.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;if(e.partialSuccess!=null){if(typeof e.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse.partialSuccess: object expected");n.partialSuccess=p.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.fromObject(e.partialSuccess)}return n},u.toObject=function(e,n){n||(n={});var s={};return n.defaults&&(s.partialSuccess=null),e.partialSuccess!=null&&e.hasOwnProperty("partialSuccess")&&(s.partialSuccess=p.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.toObject(e.partialSuccess,n)),s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse"},u}(),a.ExportTracePartialSuccess=function(){function u(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.rejectedSpans=null,u.prototype.errorMessage=null,u.create=function(e){return new u(e)},u.encode=function(e,n){return n||(n=N.create()),e.rejectedSpans!=null&&Object.hasOwnProperty.call(e,"rejectedSpans")&&n.uint32(8).int64(e.rejectedSpans),e.errorMessage!=null&&Object.hasOwnProperty.call(e,"errorMessage")&&n.uint32(18).string(e.errorMessage),n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.rejectedSpans=e.int64();break}case 2:{l.errorMessage=e.string();break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){return typeof e!="object"||e===null?"object expected":e.rejectedSpans!=null&&e.hasOwnProperty("rejectedSpans")&&!_.isInteger(e.rejectedSpans)&&!(e.rejectedSpans&&_.isInteger(e.rejectedSpans.low)&&_.isInteger(e.rejectedSpans.high))?"rejectedSpans: integer|Long expected":e.errorMessage!=null&&e.hasOwnProperty("errorMessage")&&!_.isString(e.errorMessage)?"errorMessage: string expected":null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess)return e;var n=new p.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;return e.rejectedSpans!=null&&(_.Long?(n.rejectedSpans=_.Long.fromValue(e.rejectedSpans)).unsigned=!1:typeof e.rejectedSpans=="string"?n.rejectedSpans=parseInt(e.rejectedSpans,10):typeof e.rejectedSpans=="number"?n.rejectedSpans=e.rejectedSpans:typeof e.rejectedSpans=="object"&&(n.rejectedSpans=new _.LongBits(e.rejectedSpans.low>>>0,e.rejectedSpans.high>>>0).toNumber())),e.errorMessage!=null&&(n.errorMessage=String(e.errorMessage)),n},u.toObject=function(e,n){n||(n={});var s={};if(n.defaults){if(_.Long){var l=new _.Long(0,0,!1);s.rejectedSpans=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.rejectedSpans=n.longs===String?"0":0;s.errorMessage=""}return e.rejectedSpans!=null&&e.hasOwnProperty("rejectedSpans")&&(typeof e.rejectedSpans=="number"?s.rejectedSpans=n.longs===String?String(e.rejectedSpans):e.rejectedSpans:s.rejectedSpans=n.longs===String?_.Long.prototype.toString.call(e.rejectedSpans):n.longs===Number?new _.LongBits(e.rejectedSpans.low>>>0,e.rejectedSpans.high>>>0).toNumber():e.rejectedSpans),e.errorMessage!=null&&e.hasOwnProperty("errorMessage")&&(s.errorMessage=e.errorMessage),s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess"},u}(),a}(),c}(),i.metrics=function(){var c={};return c.v1=function(){var a={};return a.MetricsService=function(){function u(t,e,n){v.rpc.Service.call(this,t,e,n)}return(u.prototype=Object.create(v.rpc.Service.prototype)).constructor=u,u.create=function(e,n,s){return new this(e,n,s)},Object.defineProperty(u.prototype.export=function t(e,n){return this.rpcCall(t,p.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,p.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,e,n)},"name",{value:"Export"}),u}(),a.ExportMetricsServiceRequest=function(){function u(t){if(this.resourceMetrics=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.resourceMetrics=_.emptyArray,u.create=function(e){return new u(e)},u.encode=function(e,n){if(n||(n=N.create()),e.resourceMetrics!=null&&e.resourceMetrics.length)for(var s=0;s<e.resourceMetrics.length;++s)p.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(e.resourceMetrics[s],n.uint32(10).fork()).ldelim();return n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.resourceMetrics&&l.resourceMetrics.length||(l.resourceMetrics=[]),l.resourceMetrics.push(p.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(e,e.uint32()));break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.resourceMetrics!=null&&e.hasOwnProperty("resourceMetrics")){if(!Array.isArray(e.resourceMetrics))return"resourceMetrics: array expected";for(var n=0;n<e.resourceMetrics.length;++n){var s=p.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(e.resourceMetrics[n]);if(s)return"resourceMetrics."+s}}return null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest)return e;var n=new p.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;if(e.resourceMetrics){if(!Array.isArray(e.resourceMetrics))throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: array expected");n.resourceMetrics=[];for(var s=0;s<e.resourceMetrics.length;++s){if(typeof e.resourceMetrics[s]!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: object expected");n.resourceMetrics[s]=p.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(e.resourceMetrics[s])}}return n},u.toObject=function(e,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.resourceMetrics=[]),e.resourceMetrics&&e.resourceMetrics.length){s.resourceMetrics=[];for(var l=0;l<e.resourceMetrics.length;++l)s.resourceMetrics[l]=p.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(e.resourceMetrics[l],n)}return s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest"},u}(),a.ExportMetricsServiceResponse=function(){function u(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.partialSuccess=null,u.create=function(e){return new u(e)},u.encode=function(e,n){return n||(n=N.create()),e.partialSuccess!=null&&Object.hasOwnProperty.call(e,"partialSuccess")&&p.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.encode(e.partialSuccess,n.uint32(10).fork()).ldelim(),n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.partialSuccess=p.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.decode(e,e.uint32());break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.partialSuccess!=null&&e.hasOwnProperty("partialSuccess")){var n=p.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.verify(e.partialSuccess);if(n)return"partialSuccess."+n}return null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse)return e;var n=new p.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;if(e.partialSuccess!=null){if(typeof e.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse.partialSuccess: object expected");n.partialSuccess=p.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.fromObject(e.partialSuccess)}return n},u.toObject=function(e,n){n||(n={});var s={};return n.defaults&&(s.partialSuccess=null),e.partialSuccess!=null&&e.hasOwnProperty("partialSuccess")&&(s.partialSuccess=p.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.toObject(e.partialSuccess,n)),s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse"},u}(),a.ExportMetricsPartialSuccess=function(){function u(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.rejectedDataPoints=null,u.prototype.errorMessage=null,u.create=function(e){return new u(e)},u.encode=function(e,n){return n||(n=N.create()),e.rejectedDataPoints!=null&&Object.hasOwnProperty.call(e,"rejectedDataPoints")&&n.uint32(8).int64(e.rejectedDataPoints),e.errorMessage!=null&&Object.hasOwnProperty.call(e,"errorMessage")&&n.uint32(18).string(e.errorMessage),n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.rejectedDataPoints=e.int64();break}case 2:{l.errorMessage=e.string();break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){return typeof e!="object"||e===null?"object expected":e.rejectedDataPoints!=null&&e.hasOwnProperty("rejectedDataPoints")&&!_.isInteger(e.rejectedDataPoints)&&!(e.rejectedDataPoints&&_.isInteger(e.rejectedDataPoints.low)&&_.isInteger(e.rejectedDataPoints.high))?"rejectedDataPoints: integer|Long expected":e.errorMessage!=null&&e.hasOwnProperty("errorMessage")&&!_.isString(e.errorMessage)?"errorMessage: string expected":null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess)return e;var n=new p.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;return e.rejectedDataPoints!=null&&(_.Long?(n.rejectedDataPoints=_.Long.fromValue(e.rejectedDataPoints)).unsigned=!1:typeof e.rejectedDataPoints=="string"?n.rejectedDataPoints=parseInt(e.rejectedDataPoints,10):typeof e.rejectedDataPoints=="number"?n.rejectedDataPoints=e.rejectedDataPoints:typeof e.rejectedDataPoints=="object"&&(n.rejectedDataPoints=new _.LongBits(e.rejectedDataPoints.low>>>0,e.rejectedDataPoints.high>>>0).toNumber())),e.errorMessage!=null&&(n.errorMessage=String(e.errorMessage)),n},u.toObject=function(e,n){n||(n={});var s={};if(n.defaults){if(_.Long){var l=new _.Long(0,0,!1);s.rejectedDataPoints=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.rejectedDataPoints=n.longs===String?"0":0;s.errorMessage=""}return e.rejectedDataPoints!=null&&e.hasOwnProperty("rejectedDataPoints")&&(typeof e.rejectedDataPoints=="number"?s.rejectedDataPoints=n.longs===String?String(e.rejectedDataPoints):e.rejectedDataPoints:s.rejectedDataPoints=n.longs===String?_.Long.prototype.toString.call(e.rejectedDataPoints):n.longs===Number?new _.LongBits(e.rejectedDataPoints.low>>>0,e.rejectedDataPoints.high>>>0).toNumber():e.rejectedDataPoints),e.errorMessage!=null&&e.hasOwnProperty("errorMessage")&&(s.errorMessage=e.errorMessage),s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess"},u}(),a}(),c}(),i.logs=function(){var c={};return c.v1=function(){var a={};return a.LogsService=function(){function u(t,e,n){v.rpc.Service.call(this,t,e,n)}return(u.prototype=Object.create(v.rpc.Service.prototype)).constructor=u,u.create=function(e,n,s){return new this(e,n,s)},Object.defineProperty(u.prototype.export=function t(e,n){return this.rpcCall(t,p.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,p.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,e,n)},"name",{value:"Export"}),u}(),a.ExportLogsServiceRequest=function(){function u(t){if(this.resourceLogs=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.resourceLogs=_.emptyArray,u.create=function(e){return new u(e)},u.encode=function(e,n){if(n||(n=N.create()),e.resourceLogs!=null&&e.resourceLogs.length)for(var s=0;s<e.resourceLogs.length;++s)p.opentelemetry.proto.logs.v1.ResourceLogs.encode(e.resourceLogs[s],n.uint32(10).fork()).ldelim();return n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.resourceLogs&&l.resourceLogs.length||(l.resourceLogs=[]),l.resourceLogs.push(p.opentelemetry.proto.logs.v1.ResourceLogs.decode(e,e.uint32()));break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.resourceLogs!=null&&e.hasOwnProperty("resourceLogs")){if(!Array.isArray(e.resourceLogs))return"resourceLogs: array expected";for(var n=0;n<e.resourceLogs.length;++n){var s=p.opentelemetry.proto.logs.v1.ResourceLogs.verify(e.resourceLogs[n]);if(s)return"resourceLogs."+s}}return null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest)return e;var n=new p.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;if(e.resourceLogs){if(!Array.isArray(e.resourceLogs))throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: array expected");n.resourceLogs=[];for(var s=0;s<e.resourceLogs.length;++s){if(typeof e.resourceLogs[s]!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: object expected");n.resourceLogs[s]=p.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(e.resourceLogs[s])}}return n},u.toObject=function(e,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.resourceLogs=[]),e.resourceLogs&&e.resourceLogs.length){s.resourceLogs=[];for(var l=0;l<e.resourceLogs.length;++l)s.resourceLogs[l]=p.opentelemetry.proto.logs.v1.ResourceLogs.toObject(e.resourceLogs[l],n)}return s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest"},u}(),a.ExportLogsServiceResponse=function(){function u(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.partialSuccess=null,u.create=function(e){return new u(e)},u.encode=function(e,n){return n||(n=N.create()),e.partialSuccess!=null&&Object.hasOwnProperty.call(e,"partialSuccess")&&p.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.encode(e.partialSuccess,n.uint32(10).fork()).ldelim(),n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.partialSuccess=p.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.decode(e,e.uint32());break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.partialSuccess!=null&&e.hasOwnProperty("partialSuccess")){var n=p.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.verify(e.partialSuccess);if(n)return"partialSuccess."+n}return null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse)return e;var n=new p.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;if(e.partialSuccess!=null){if(typeof e.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse.partialSuccess: object expected");n.partialSuccess=p.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.fromObject(e.partialSuccess)}return n},u.toObject=function(e,n){n||(n={});var s={};return n.defaults&&(s.partialSuccess=null),e.partialSuccess!=null&&e.hasOwnProperty("partialSuccess")&&(s.partialSuccess=p.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.toObject(e.partialSuccess,n)),s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse"},u}(),a.ExportLogsPartialSuccess=function(){function u(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.rejectedLogRecords=null,u.prototype.errorMessage=null,u.create=function(e){return new u(e)},u.encode=function(e,n){return n||(n=N.create()),e.rejectedLogRecords!=null&&Object.hasOwnProperty.call(e,"rejectedLogRecords")&&n.uint32(8).int64(e.rejectedLogRecords),e.errorMessage!=null&&Object.hasOwnProperty.call(e,"errorMessage")&&n.uint32(18).string(e.errorMessage),n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.rejectedLogRecords=e.int64();break}case 2:{l.errorMessage=e.string();break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){return typeof e!="object"||e===null?"object expected":e.rejectedLogRecords!=null&&e.hasOwnProperty("rejectedLogRecords")&&!_.isInteger(e.rejectedLogRecords)&&!(e.rejectedLogRecords&&_.isInteger(e.rejectedLogRecords.low)&&_.isInteger(e.rejectedLogRecords.high))?"rejectedLogRecords: integer|Long expected":e.errorMessage!=null&&e.hasOwnProperty("errorMessage")&&!_.isString(e.errorMessage)?"errorMessage: string expected":null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess)return e;var n=new p.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;return e.rejectedLogRecords!=null&&(_.Long?(n.rejectedLogRecords=_.Long.fromValue(e.rejectedLogRecords)).unsigned=!1:typeof e.rejectedLogRecords=="string"?n.rejectedLogRecords=parseInt(e.rejectedLogRecords,10):typeof e.rejectedLogRecords=="number"?n.rejectedLogRecords=e.rejectedLogRecords:typeof e.rejectedLogRecords=="object"&&(n.rejectedLogRecords=new _.LongBits(e.rejectedLogRecords.low>>>0,e.rejectedLogRecords.high>>>0).toNumber())),e.errorMessage!=null&&(n.errorMessage=String(e.errorMessage)),n},u.toObject=function(e,n){n||(n={});var s={};if(n.defaults){if(_.Long){var l=new _.Long(0,0,!1);s.rejectedLogRecords=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.rejectedLogRecords=n.longs===String?"0":0;s.errorMessage=""}return e.rejectedLogRecords!=null&&e.hasOwnProperty("rejectedLogRecords")&&(typeof e.rejectedLogRecords=="number"?s.rejectedLogRecords=n.longs===String?String(e.rejectedLogRecords):e.rejectedLogRecords:s.rejectedLogRecords=n.longs===String?_.Long.prototype.toString.call(e.rejectedLogRecords):n.longs===Number?new _.LongBits(e.rejectedLogRecords.low>>>0,e.rejectedLogRecords.high>>>0).toNumber():e.rejectedLogRecords),e.errorMessage!=null&&e.hasOwnProperty("errorMessage")&&(s.errorMessage=e.errorMessage),s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess"},u}(),a}(),c}(),i}(),r.metrics=function(){var i={};return i.v1=function(){var c={};return c.MetricsData=function(){function a(u){if(this.resourceMetrics=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.resourceMetrics=_.emptyArray,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=N.create()),t.resourceMetrics!=null&&t.resourceMetrics.length)for(var n=0;n<t.resourceMetrics.length;++n)p.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(t.resourceMetrics[n],e.uint32(10).fork()).ldelim();return e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.metrics.v1.MetricsData;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.resourceMetrics&&s.resourceMetrics.length||(s.resourceMetrics=[]),s.resourceMetrics.push(p.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.resourceMetrics!=null&&t.hasOwnProperty("resourceMetrics")){if(!Array.isArray(t.resourceMetrics))return"resourceMetrics: array expected";for(var e=0;e<t.resourceMetrics.length;++e){var n=p.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(t.resourceMetrics[e]);if(n)return"resourceMetrics."+n}}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.metrics.v1.MetricsData)return t;var e=new p.opentelemetry.proto.metrics.v1.MetricsData;if(t.resourceMetrics){if(!Array.isArray(t.resourceMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: array expected");e.resourceMetrics=[];for(var n=0;n<t.resourceMetrics.length;++n){if(typeof t.resourceMetrics[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: object expected");e.resourceMetrics[n]=p.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(t.resourceMetrics[n])}}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.resourceMetrics=[]),t.resourceMetrics&&t.resourceMetrics.length){n.resourceMetrics=[];for(var s=0;s<t.resourceMetrics.length;++s)n.resourceMetrics[s]=p.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(t.resourceMetrics[s],e)}return n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.metrics.v1.MetricsData"},a}(),c.ResourceMetrics=function(){function a(u){if(this.scopeMetrics=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.resource=null,a.prototype.scopeMetrics=_.emptyArray,a.prototype.schemaUrl=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=N.create()),t.resource!=null&&Object.hasOwnProperty.call(t,"resource")&&p.opentelemetry.proto.resource.v1.Resource.encode(t.resource,e.uint32(10).fork()).ldelim(),t.scopeMetrics!=null&&t.scopeMetrics.length)for(var n=0;n<t.scopeMetrics.length;++n)p.opentelemetry.proto.metrics.v1.ScopeMetrics.encode(t.scopeMetrics[n],e.uint32(18).fork()).ldelim();return t.schemaUrl!=null&&Object.hasOwnProperty.call(t,"schemaUrl")&&e.uint32(26).string(t.schemaUrl),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.metrics.v1.ResourceMetrics;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.resource=p.opentelemetry.proto.resource.v1.Resource.decode(t,t.uint32());break}case 2:{s.scopeMetrics&&s.scopeMetrics.length||(s.scopeMetrics=[]),s.scopeMetrics.push(p.opentelemetry.proto.metrics.v1.ScopeMetrics.decode(t,t.uint32()));break}case 3:{s.schemaUrl=t.string();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.resource!=null&&t.hasOwnProperty("resource")){var e=p.opentelemetry.proto.resource.v1.Resource.verify(t.resource);if(e)return"resource."+e}if(t.scopeMetrics!=null&&t.hasOwnProperty("scopeMetrics")){if(!Array.isArray(t.scopeMetrics))return"scopeMetrics: array expected";for(var n=0;n<t.scopeMetrics.length;++n){var e=p.opentelemetry.proto.metrics.v1.ScopeMetrics.verify(t.scopeMetrics[n]);if(e)return"scopeMetrics."+e}}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&!_.isString(t.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.metrics.v1.ResourceMetrics)return t;var e=new p.opentelemetry.proto.metrics.v1.ResourceMetrics;if(t.resource!=null){if(typeof t.resource!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.resource: object expected");e.resource=p.opentelemetry.proto.resource.v1.Resource.fromObject(t.resource)}if(t.scopeMetrics){if(!Array.isArray(t.scopeMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: array expected");e.scopeMetrics=[];for(var n=0;n<t.scopeMetrics.length;++n){if(typeof t.scopeMetrics[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: object expected");e.scopeMetrics[n]=p.opentelemetry.proto.metrics.v1.ScopeMetrics.fromObject(t.scopeMetrics[n])}}return t.schemaUrl!=null&&(e.schemaUrl=String(t.schemaUrl)),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.scopeMetrics=[]),e.defaults&&(n.resource=null,n.schemaUrl=""),t.resource!=null&&t.hasOwnProperty("resource")&&(n.resource=p.opentelemetry.proto.resource.v1.Resource.toObject(t.resource,e)),t.scopeMetrics&&t.scopeMetrics.length){n.scopeMetrics=[];for(var s=0;s<t.scopeMetrics.length;++s)n.scopeMetrics[s]=p.opentelemetry.proto.metrics.v1.ScopeMetrics.toObject(t.scopeMetrics[s],e)}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&(n.schemaUrl=t.schemaUrl),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.metrics.v1.ResourceMetrics"},a}(),c.ScopeMetrics=function(){function a(u){if(this.metrics=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.scope=null,a.prototype.metrics=_.emptyArray,a.prototype.schemaUrl=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=N.create()),t.scope!=null&&Object.hasOwnProperty.call(t,"scope")&&p.opentelemetry.proto.common.v1.InstrumentationScope.encode(t.scope,e.uint32(10).fork()).ldelim(),t.metrics!=null&&t.metrics.length)for(var n=0;n<t.metrics.length;++n)p.opentelemetry.proto.metrics.v1.Metric.encode(t.metrics[n],e.uint32(18).fork()).ldelim();return t.schemaUrl!=null&&Object.hasOwnProperty.call(t,"schemaUrl")&&e.uint32(26).string(t.schemaUrl),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.metrics.v1.ScopeMetrics;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.scope=p.opentelemetry.proto.common.v1.InstrumentationScope.decode(t,t.uint32());break}case 2:{s.metrics&&s.metrics.length||(s.metrics=[]),s.metrics.push(p.opentelemetry.proto.metrics.v1.Metric.decode(t,t.uint32()));break}case 3:{s.schemaUrl=t.string();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.scope!=null&&t.hasOwnProperty("scope")){var e=p.opentelemetry.proto.common.v1.InstrumentationScope.verify(t.scope);if(e)return"scope."+e}if(t.metrics!=null&&t.hasOwnProperty("metrics")){if(!Array.isArray(t.metrics))return"metrics: array expected";for(var n=0;n<t.metrics.length;++n){var e=p.opentelemetry.proto.metrics.v1.Metric.verify(t.metrics[n]);if(e)return"metrics."+e}}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&!_.isString(t.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.metrics.v1.ScopeMetrics)return t;var e=new p.opentelemetry.proto.metrics.v1.ScopeMetrics;if(t.scope!=null){if(typeof t.scope!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.scope: object expected");e.scope=p.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(t.scope)}if(t.metrics){if(!Array.isArray(t.metrics))throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: array expected");e.metrics=[];for(var n=0;n<t.metrics.length;++n){if(typeof t.metrics[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: object expected");e.metrics[n]=p.opentelemetry.proto.metrics.v1.Metric.fromObject(t.metrics[n])}}return t.schemaUrl!=null&&(e.schemaUrl=String(t.schemaUrl)),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.metrics=[]),e.defaults&&(n.scope=null,n.schemaUrl=""),t.scope!=null&&t.hasOwnProperty("scope")&&(n.scope=p.opentelemetry.proto.common.v1.InstrumentationScope.toObject(t.scope,e)),t.metrics&&t.metrics.length){n.metrics=[];for(var s=0;s<t.metrics.length;++s)n.metrics[s]=p.opentelemetry.proto.metrics.v1.Metric.toObject(t.metrics[s],e)}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&(n.schemaUrl=t.schemaUrl),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.metrics.v1.ScopeMetrics"},a}(),c.Metric=function(){function a(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}a.prototype.name=null,a.prototype.description=null,a.prototype.unit=null,a.prototype.gauge=null,a.prototype.sum=null,a.prototype.histogram=null,a.prototype.exponentialHistogram=null,a.prototype.summary=null;var u;return Object.defineProperty(a.prototype,"data",{get:_.oneOfGetter(u=["gauge","sum","histogram","exponentialHistogram","summary"]),set:_.oneOfSetter(u)}),a.create=function(e){return new a(e)},a.encode=function(e,n){return n||(n=N.create()),e.name!=null&&Object.hasOwnProperty.call(e,"name")&&n.uint32(10).string(e.name),e.description!=null&&Object.hasOwnProperty.call(e,"description")&&n.uint32(18).string(e.description),e.unit!=null&&Object.hasOwnProperty.call(e,"unit")&&n.uint32(26).string(e.unit),e.gauge!=null&&Object.hasOwnProperty.call(e,"gauge")&&p.opentelemetry.proto.metrics.v1.Gauge.encode(e.gauge,n.uint32(42).fork()).ldelim(),e.sum!=null&&Object.hasOwnProperty.call(e,"sum")&&p.opentelemetry.proto.metrics.v1.Sum.encode(e.sum,n.uint32(58).fork()).ldelim(),e.histogram!=null&&Object.hasOwnProperty.call(e,"histogram")&&p.opentelemetry.proto.metrics.v1.Histogram.encode(e.histogram,n.uint32(74).fork()).ldelim(),e.exponentialHistogram!=null&&Object.hasOwnProperty.call(e,"exponentialHistogram")&&p.opentelemetry.proto.metrics.v1.ExponentialHistogram.encode(e.exponentialHistogram,n.uint32(82).fork()).ldelim(),e.summary!=null&&Object.hasOwnProperty.call(e,"summary")&&p.opentelemetry.proto.metrics.v1.Summary.encode(e.summary,n.uint32(90).fork()).ldelim(),n},a.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},a.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.metrics.v1.Metric;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.name=e.string();break}case 2:{l.description=e.string();break}case 3:{l.unit=e.string();break}case 5:{l.gauge=p.opentelemetry.proto.metrics.v1.Gauge.decode(e,e.uint32());break}case 7:{l.sum=p.opentelemetry.proto.metrics.v1.Sum.decode(e,e.uint32());break}case 9:{l.histogram=p.opentelemetry.proto.metrics.v1.Histogram.decode(e,e.uint32());break}case 10:{l.exponentialHistogram=p.opentelemetry.proto.metrics.v1.ExponentialHistogram.decode(e,e.uint32());break}case 11:{l.summary=p.opentelemetry.proto.metrics.v1.Summary.decode(e,e.uint32());break}default:e.skipType(E&7);break}}return l},a.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},a.verify=function(e){if(typeof e!="object"||e===null)return"object expected";var n={};if(e.name!=null&&e.hasOwnProperty("name")&&!_.isString(e.name))return"name: string expected";if(e.description!=null&&e.hasOwnProperty("description")&&!_.isString(e.description))return"description: string expected";if(e.unit!=null&&e.hasOwnProperty("unit")&&!_.isString(e.unit))return"unit: string expected";if(e.gauge!=null&&e.hasOwnProperty("gauge")){n.data=1;{var s=p.opentelemetry.proto.metrics.v1.Gauge.verify(e.gauge);if(s)return"gauge."+s}}if(e.sum!=null&&e.hasOwnProperty("sum")){if(n.data===1)return"data: multiple values";n.data=1;{var s=p.opentelemetry.proto.metrics.v1.Sum.verify(e.sum);if(s)return"sum."+s}}if(e.histogram!=null&&e.hasOwnProperty("histogram")){if(n.data===1)return"data: multiple values";n.data=1;{var s=p.opentelemetry.proto.metrics.v1.Histogram.verify(e.histogram);if(s)return"histogram."+s}}if(e.exponentialHistogram!=null&&e.hasOwnProperty("exponentialHistogram")){if(n.data===1)return"data: multiple values";n.data=1;{var s=p.opentelemetry.proto.metrics.v1.ExponentialHistogram.verify(e.exponentialHistogram);if(s)return"exponentialHistogram."+s}}if(e.summary!=null&&e.hasOwnProperty("summary")){if(n.data===1)return"data: multiple values";n.data=1;{var s=p.opentelemetry.proto.metrics.v1.Summary.verify(e.summary);if(s)return"summary."+s}}return null},a.fromObject=function(e){if(e instanceof p.opentelemetry.proto.metrics.v1.Metric)return e;var n=new p.opentelemetry.proto.metrics.v1.Metric;if(e.name!=null&&(n.name=String(e.name)),e.description!=null&&(n.description=String(e.description)),e.unit!=null&&(n.unit=String(e.unit)),e.gauge!=null){if(typeof e.gauge!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.gauge: object expected");n.gauge=p.opentelemetry.proto.metrics.v1.Gauge.fromObject(e.gauge)}if(e.sum!=null){if(typeof e.sum!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.sum: object expected");n.sum=p.opentelemetry.proto.metrics.v1.Sum.fromObject(e.sum)}if(e.histogram!=null){if(typeof e.histogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.histogram: object expected");n.histogram=p.opentelemetry.proto.metrics.v1.Histogram.fromObject(e.histogram)}if(e.exponentialHistogram!=null){if(typeof e.exponentialHistogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.exponentialHistogram: object expected");n.exponentialHistogram=p.opentelemetry.proto.metrics.v1.ExponentialHistogram.fromObject(e.exponentialHistogram)}if(e.summary!=null){if(typeof e.summary!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.summary: object expected");n.summary=p.opentelemetry.proto.metrics.v1.Summary.fromObject(e.summary)}return n},a.toObject=function(e,n){n||(n={});var s={};return n.defaults&&(s.name="",s.description="",s.unit=""),e.name!=null&&e.hasOwnProperty("name")&&(s.name=e.name),e.description!=null&&e.hasOwnProperty("description")&&(s.description=e.description),e.unit!=null&&e.hasOwnProperty("unit")&&(s.unit=e.unit),e.gauge!=null&&e.hasOwnProperty("gauge")&&(s.gauge=p.opentelemetry.proto.metrics.v1.Gauge.toObject(e.gauge,n),n.oneofs&&(s.data="gauge")),e.sum!=null&&e.hasOwnProperty("sum")&&(s.sum=p.opentelemetry.proto.metrics.v1.Sum.toObject(e.sum,n),n.oneofs&&(s.data="sum")),e.histogram!=null&&e.hasOwnProperty("histogram")&&(s.histogram=p.opentelemetry.proto.metrics.v1.Histogram.toObject(e.histogram,n),n.oneofs&&(s.data="histogram")),e.exponentialHistogram!=null&&e.hasOwnProperty("exponentialHistogram")&&(s.exponentialHistogram=p.opentelemetry.proto.metrics.v1.ExponentialHistogram.toObject(e.exponentialHistogram,n),n.oneofs&&(s.data="exponentialHistogram")),e.summary!=null&&e.hasOwnProperty("summary")&&(s.summary=p.opentelemetry.proto.metrics.v1.Summary.toObject(e.summary,n),n.oneofs&&(s.data="summary")),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.metrics.v1.Metric"},a}(),c.Gauge=function(){function a(u){if(this.dataPoints=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.dataPoints=_.emptyArray,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=N.create()),t.dataPoints!=null&&t.dataPoints.length)for(var n=0;n<t.dataPoints.length;++n)p.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(t.dataPoints[n],e.uint32(10).fork()).ldelim();return e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.metrics.v1.Gauge;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.dataPoints&&s.dataPoints.length||(s.dataPoints=[]),s.dataPoints.push(p.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.dataPoints!=null&&t.hasOwnProperty("dataPoints")){if(!Array.isArray(t.dataPoints))return"dataPoints: array expected";for(var e=0;e<t.dataPoints.length;++e){var n=p.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(t.dataPoints[e]);if(n)return"dataPoints."+n}}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.metrics.v1.Gauge)return t;var e=new p.opentelemetry.proto.metrics.v1.Gauge;if(t.dataPoints){if(!Array.isArray(t.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: array expected");e.dataPoints=[];for(var n=0;n<t.dataPoints.length;++n){if(typeof t.dataPoints[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: object expected");e.dataPoints[n]=p.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(t.dataPoints[n])}}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.dataPoints=[]),t.dataPoints&&t.dataPoints.length){n.dataPoints=[];for(var s=0;s<t.dataPoints.length;++s)n.dataPoints[s]=p.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(t.dataPoints[s],e)}return n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.metrics.v1.Gauge"},a}(),c.Sum=function(){function a(u){if(this.dataPoints=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.dataPoints=_.emptyArray,a.prototype.aggregationTemporality=null,a.prototype.isMonotonic=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=N.create()),t.dataPoints!=null&&t.dataPoints.length)for(var n=0;n<t.dataPoints.length;++n)p.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(t.dataPoints[n],e.uint32(10).fork()).ldelim();return t.aggregationTemporality!=null&&Object.hasOwnProperty.call(t,"aggregationTemporality")&&e.uint32(16).int32(t.aggregationTemporality),t.isMonotonic!=null&&Object.hasOwnProperty.call(t,"isMonotonic")&&e.uint32(24).bool(t.isMonotonic),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.metrics.v1.Sum;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.dataPoints&&s.dataPoints.length||(s.dataPoints=[]),s.dataPoints.push(p.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(t,t.uint32()));break}case 2:{s.aggregationTemporality=t.int32();break}case 3:{s.isMonotonic=t.bool();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.dataPoints!=null&&t.hasOwnProperty("dataPoints")){if(!Array.isArray(t.dataPoints))return"dataPoints: array expected";for(var e=0;e<t.dataPoints.length;++e){var n=p.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(t.dataPoints[e]);if(n)return"dataPoints."+n}}if(t.aggregationTemporality!=null&&t.hasOwnProperty("aggregationTemporality"))switch(t.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return t.isMonotonic!=null&&t.hasOwnProperty("isMonotonic")&&typeof t.isMonotonic!="boolean"?"isMonotonic: boolean expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.metrics.v1.Sum)return t;var e=new p.opentelemetry.proto.metrics.v1.Sum;if(t.dataPoints){if(!Array.isArray(t.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: array expected");e.dataPoints=[];for(var n=0;n<t.dataPoints.length;++n){if(typeof t.dataPoints[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: object expected");e.dataPoints[n]=p.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(t.dataPoints[n])}}switch(t.aggregationTemporality){default:if(typeof t.aggregationTemporality=="number"){e.aggregationTemporality=t.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:e.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:e.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:e.aggregationTemporality=2;break}return t.isMonotonic!=null&&(e.isMonotonic=!!t.isMonotonic),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.dataPoints=[]),e.defaults&&(n.aggregationTemporality=e.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0,n.isMonotonic=!1),t.dataPoints&&t.dataPoints.length){n.dataPoints=[];for(var s=0;s<t.dataPoints.length;++s)n.dataPoints[s]=p.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(t.dataPoints[s],e)}return t.aggregationTemporality!=null&&t.hasOwnProperty("aggregationTemporality")&&(n.aggregationTemporality=e.enums===String?p.opentelemetry.proto.metrics.v1.AggregationTemporality[t.aggregationTemporality]===void 0?t.aggregationTemporality:p.opentelemetry.proto.metrics.v1.AggregationTemporality[t.aggregationTemporality]:t.aggregationTemporality),t.isMonotonic!=null&&t.hasOwnProperty("isMonotonic")&&(n.isMonotonic=t.isMonotonic),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.metrics.v1.Sum"},a}(),c.Histogram=function(){function a(u){if(this.dataPoints=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.dataPoints=_.emptyArray,a.prototype.aggregationTemporality=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=N.create()),t.dataPoints!=null&&t.dataPoints.length)for(var n=0;n<t.dataPoints.length;++n)p.opentelemetry.proto.metrics.v1.HistogramDataPoint.encode(t.dataPoints[n],e.uint32(10).fork()).ldelim();return t.aggregationTemporality!=null&&Object.hasOwnProperty.call(t,"aggregationTemporality")&&e.uint32(16).int32(t.aggregationTemporality),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.metrics.v1.Histogram;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.dataPoints&&s.dataPoints.length||(s.dataPoints=[]),s.dataPoints.push(p.opentelemetry.proto.metrics.v1.HistogramDataPoint.decode(t,t.uint32()));break}case 2:{s.aggregationTemporality=t.int32();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.dataPoints!=null&&t.hasOwnProperty("dataPoints")){if(!Array.isArray(t.dataPoints))return"dataPoints: array expected";for(var e=0;e<t.dataPoints.length;++e){var n=p.opentelemetry.proto.metrics.v1.HistogramDataPoint.verify(t.dataPoints[e]);if(n)return"dataPoints."+n}}if(t.aggregationTemporality!=null&&t.hasOwnProperty("aggregationTemporality"))switch(t.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.metrics.v1.Histogram)return t;var e=new p.opentelemetry.proto.metrics.v1.Histogram;if(t.dataPoints){if(!Array.isArray(t.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: array expected");e.dataPoints=[];for(var n=0;n<t.dataPoints.length;++n){if(typeof t.dataPoints[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: object expected");e.dataPoints[n]=p.opentelemetry.proto.metrics.v1.HistogramDataPoint.fromObject(t.dataPoints[n])}}switch(t.aggregationTemporality){default:if(typeof t.aggregationTemporality=="number"){e.aggregationTemporality=t.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:e.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:e.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:e.aggregationTemporality=2;break}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.dataPoints=[]),e.defaults&&(n.aggregationTemporality=e.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),t.dataPoints&&t.dataPoints.length){n.dataPoints=[];for(var s=0;s<t.dataPoints.length;++s)n.dataPoints[s]=p.opentelemetry.proto.metrics.v1.HistogramDataPoint.toObject(t.dataPoints[s],e)}return t.aggregationTemporality!=null&&t.hasOwnProperty("aggregationTemporality")&&(n.aggregationTemporality=e.enums===String?p.opentelemetry.proto.metrics.v1.AggregationTemporality[t.aggregationTemporality]===void 0?t.aggregationTemporality:p.opentelemetry.proto.metrics.v1.AggregationTemporality[t.aggregationTemporality]:t.aggregationTemporality),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.metrics.v1.Histogram"},a}(),c.ExponentialHistogram=function(){function a(u){if(this.dataPoints=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.dataPoints=_.emptyArray,a.prototype.aggregationTemporality=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=N.create()),t.dataPoints!=null&&t.dataPoints.length)for(var n=0;n<t.dataPoints.length;++n)p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.encode(t.dataPoints[n],e.uint32(10).fork()).ldelim();return t.aggregationTemporality!=null&&Object.hasOwnProperty.call(t,"aggregationTemporality")&&e.uint32(16).int32(t.aggregationTemporality),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.metrics.v1.ExponentialHistogram;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.dataPoints&&s.dataPoints.length||(s.dataPoints=[]),s.dataPoints.push(p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.decode(t,t.uint32()));break}case 2:{s.aggregationTemporality=t.int32();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.dataPoints!=null&&t.hasOwnProperty("dataPoints")){if(!Array.isArray(t.dataPoints))return"dataPoints: array expected";for(var e=0;e<t.dataPoints.length;++e){var n=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.verify(t.dataPoints[e]);if(n)return"dataPoints."+n}}if(t.aggregationTemporality!=null&&t.hasOwnProperty("aggregationTemporality"))switch(t.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.metrics.v1.ExponentialHistogram)return t;var e=new p.opentelemetry.proto.metrics.v1.ExponentialHistogram;if(t.dataPoints){if(!Array.isArray(t.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: array expected");e.dataPoints=[];for(var n=0;n<t.dataPoints.length;++n){if(typeof t.dataPoints[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: object expected");e.dataPoints[n]=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.fromObject(t.dataPoints[n])}}switch(t.aggregationTemporality){default:if(typeof t.aggregationTemporality=="number"){e.aggregationTemporality=t.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:e.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:e.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:e.aggregationTemporality=2;break}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.dataPoints=[]),e.defaults&&(n.aggregationTemporality=e.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),t.dataPoints&&t.dataPoints.length){n.dataPoints=[];for(var s=0;s<t.dataPoints.length;++s)n.dataPoints[s]=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.toObject(t.dataPoints[s],e)}return t.aggregationTemporality!=null&&t.hasOwnProperty("aggregationTemporality")&&(n.aggregationTemporality=e.enums===String?p.opentelemetry.proto.metrics.v1.AggregationTemporality[t.aggregationTemporality]===void 0?t.aggregationTemporality:p.opentelemetry.proto.metrics.v1.AggregationTemporality[t.aggregationTemporality]:t.aggregationTemporality),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.metrics.v1.ExponentialHistogram"},a}(),c.Summary=function(){function a(u){if(this.dataPoints=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.dataPoints=_.emptyArray,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=N.create()),t.dataPoints!=null&&t.dataPoints.length)for(var n=0;n<t.dataPoints.length;++n)p.opentelemetry.proto.metrics.v1.SummaryDataPoint.encode(t.dataPoints[n],e.uint32(10).fork()).ldelim();return e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.metrics.v1.Summary;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.dataPoints&&s.dataPoints.length||(s.dataPoints=[]),s.dataPoints.push(p.opentelemetry.proto.metrics.v1.SummaryDataPoint.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.dataPoints!=null&&t.hasOwnProperty("dataPoints")){if(!Array.isArray(t.dataPoints))return"dataPoints: array expected";for(var e=0;e<t.dataPoints.length;++e){var n=p.opentelemetry.proto.metrics.v1.SummaryDataPoint.verify(t.dataPoints[e]);if(n)return"dataPoints."+n}}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.metrics.v1.Summary)return t;var e=new p.opentelemetry.proto.metrics.v1.Summary;if(t.dataPoints){if(!Array.isArray(t.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: array expected");e.dataPoints=[];for(var n=0;n<t.dataPoints.length;++n){if(typeof t.dataPoints[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: object expected");e.dataPoints[n]=p.opentelemetry.proto.metrics.v1.SummaryDataPoint.fromObject(t.dataPoints[n])}}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.dataPoints=[]),t.dataPoints&&t.dataPoints.length){n.dataPoints=[];for(var s=0;s<t.dataPoints.length;++s)n.dataPoints[s]=p.opentelemetry.proto.metrics.v1.SummaryDataPoint.toObject(t.dataPoints[s],e)}return n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.metrics.v1.Summary"},a}(),c.AggregationTemporality=function(){var a={},u=Object.create(a);return u[a[0]="AGGREGATION_TEMPORALITY_UNSPECIFIED"]=0,u[a[1]="AGGREGATION_TEMPORALITY_DELTA"]=1,u[a[2]="AGGREGATION_TEMPORALITY_CUMULATIVE"]=2,u}(),c.DataPointFlags=function(){var a={},u=Object.create(a);return u[a[0]="DATA_POINT_FLAGS_DO_NOT_USE"]=0,u[a[1]="DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK"]=1,u}(),c.NumberDataPoint=function(){function a(t){if(this.attributes=[],this.exemplars=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}a.prototype.attributes=_.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.asDouble=null,a.prototype.asInt=null,a.prototype.exemplars=_.emptyArray,a.prototype.flags=null;var u;return Object.defineProperty(a.prototype,"value",{get:_.oneOfGetter(u=["asDouble","asInt"]),set:_.oneOfSetter(u)}),a.create=function(e){return new a(e)},a.encode=function(e,n){if(n||(n=N.create()),e.startTimeUnixNano!=null&&Object.hasOwnProperty.call(e,"startTimeUnixNano")&&n.uint32(17).fixed64(e.startTimeUnixNano),e.timeUnixNano!=null&&Object.hasOwnProperty.call(e,"timeUnixNano")&&n.uint32(25).fixed64(e.timeUnixNano),e.asDouble!=null&&Object.hasOwnProperty.call(e,"asDouble")&&n.uint32(33).double(e.asDouble),e.exemplars!=null&&e.exemplars.length)for(var s=0;s<e.exemplars.length;++s)p.opentelemetry.proto.metrics.v1.Exemplar.encode(e.exemplars[s],n.uint32(42).fork()).ldelim();if(e.asInt!=null&&Object.hasOwnProperty.call(e,"asInt")&&n.uint32(49).sfixed64(e.asInt),e.attributes!=null&&e.attributes.length)for(var s=0;s<e.attributes.length;++s)p.opentelemetry.proto.common.v1.KeyValue.encode(e.attributes[s],n.uint32(58).fork()).ldelim();return e.flags!=null&&Object.hasOwnProperty.call(e,"flags")&&n.uint32(64).uint32(e.flags),n},a.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},a.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.metrics.v1.NumberDataPoint;e.pos<s;){var E=e.uint32();switch(E>>>3){case 7:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(e,e.uint32()));break}case 2:{l.startTimeUnixNano=e.fixed64();break}case 3:{l.timeUnixNano=e.fixed64();break}case 4:{l.asDouble=e.double();break}case 6:{l.asInt=e.sfixed64();break}case 5:{l.exemplars&&l.exemplars.length||(l.exemplars=[]),l.exemplars.push(p.opentelemetry.proto.metrics.v1.Exemplar.decode(e,e.uint32()));break}case 8:{l.flags=e.uint32();break}default:e.skipType(E&7);break}}return l},a.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},a.verify=function(e){if(typeof e!="object"||e===null)return"object expected";var n={};if(e.attributes!=null&&e.hasOwnProperty("attributes")){if(!Array.isArray(e.attributes))return"attributes: array expected";for(var s=0;s<e.attributes.length;++s){var l=p.opentelemetry.proto.common.v1.KeyValue.verify(e.attributes[s]);if(l)return"attributes."+l}}if(e.startTimeUnixNano!=null&&e.hasOwnProperty("startTimeUnixNano")&&!_.isInteger(e.startTimeUnixNano)&&!(e.startTimeUnixNano&&_.isInteger(e.startTimeUnixNano.low)&&_.isInteger(e.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&!_.isInteger(e.timeUnixNano)&&!(e.timeUnixNano&&_.isInteger(e.timeUnixNano.low)&&_.isInteger(e.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(e.asDouble!=null&&e.hasOwnProperty("asDouble")&&(n.value=1,typeof e.asDouble!="number"))return"asDouble: number expected";if(e.asInt!=null&&e.hasOwnProperty("asInt")){if(n.value===1)return"value: multiple values";if(n.value=1,!_.isInteger(e.asInt)&&!(e.asInt&&_.isInteger(e.asInt.low)&&_.isInteger(e.asInt.high)))return"asInt: integer|Long expected"}if(e.exemplars!=null&&e.hasOwnProperty("exemplars")){if(!Array.isArray(e.exemplars))return"exemplars: array expected";for(var s=0;s<e.exemplars.length;++s){var l=p.opentelemetry.proto.metrics.v1.Exemplar.verify(e.exemplars[s]);if(l)return"exemplars."+l}}return e.flags!=null&&e.hasOwnProperty("flags")&&!_.isInteger(e.flags)?"flags: integer expected":null},a.fromObject=function(e){if(e instanceof p.opentelemetry.proto.metrics.v1.NumberDataPoint)return e;var n=new p.opentelemetry.proto.metrics.v1.NumberDataPoint;if(e.attributes){if(!Array.isArray(e.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: array expected");n.attributes=[];for(var s=0;s<e.attributes.length;++s){if(typeof e.attributes[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: object expected");n.attributes[s]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(e.attributes[s])}}if(e.startTimeUnixNano!=null&&(_.Long?(n.startTimeUnixNano=_.Long.fromValue(e.startTimeUnixNano)).unsigned=!1:typeof e.startTimeUnixNano=="string"?n.startTimeUnixNano=parseInt(e.startTimeUnixNano,10):typeof e.startTimeUnixNano=="number"?n.startTimeUnixNano=e.startTimeUnixNano:typeof e.startTimeUnixNano=="object"&&(n.startTimeUnixNano=new _.LongBits(e.startTimeUnixNano.low>>>0,e.startTimeUnixNano.high>>>0).toNumber())),e.timeUnixNano!=null&&(_.Long?(n.timeUnixNano=_.Long.fromValue(e.timeUnixNano)).unsigned=!1:typeof e.timeUnixNano=="string"?n.timeUnixNano=parseInt(e.timeUnixNano,10):typeof e.timeUnixNano=="number"?n.timeUnixNano=e.timeUnixNano:typeof e.timeUnixNano=="object"&&(n.timeUnixNano=new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber())),e.asDouble!=null&&(n.asDouble=Number(e.asDouble)),e.asInt!=null&&(_.Long?(n.asInt=_.Long.fromValue(e.asInt)).unsigned=!1:typeof e.asInt=="string"?n.asInt=parseInt(e.asInt,10):typeof e.asInt=="number"?n.asInt=e.asInt:typeof e.asInt=="object"&&(n.asInt=new _.LongBits(e.asInt.low>>>0,e.asInt.high>>>0).toNumber())),e.exemplars){if(!Array.isArray(e.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: array expected");n.exemplars=[];for(var s=0;s<e.exemplars.length;++s){if(typeof e.exemplars[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: object expected");n.exemplars[s]=p.opentelemetry.proto.metrics.v1.Exemplar.fromObject(e.exemplars[s])}}return e.flags!=null&&(n.flags=e.flags>>>0),n},a.toObject=function(e,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.exemplars=[],s.attributes=[]),n.defaults){if(_.Long){var l=new _.Long(0,0,!1);s.startTimeUnixNano=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.startTimeUnixNano=n.longs===String?"0":0;if(_.Long){var l=new _.Long(0,0,!1);s.timeUnixNano=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.timeUnixNano=n.longs===String?"0":0;s.flags=0}if(e.startTimeUnixNano!=null&&e.hasOwnProperty("startTimeUnixNano")&&(typeof e.startTimeUnixNano=="number"?s.startTimeUnixNano=n.longs===String?String(e.startTimeUnixNano):e.startTimeUnixNano:s.startTimeUnixNano=n.longs===String?_.Long.prototype.toString.call(e.startTimeUnixNano):n.longs===Number?new _.LongBits(e.startTimeUnixNano.low>>>0,e.startTimeUnixNano.high>>>0).toNumber():e.startTimeUnixNano),e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&(typeof e.timeUnixNano=="number"?s.timeUnixNano=n.longs===String?String(e.timeUnixNano):e.timeUnixNano:s.timeUnixNano=n.longs===String?_.Long.prototype.toString.call(e.timeUnixNano):n.longs===Number?new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber():e.timeUnixNano),e.asDouble!=null&&e.hasOwnProperty("asDouble")&&(s.asDouble=n.json&&!isFinite(e.asDouble)?String(e.asDouble):e.asDouble,n.oneofs&&(s.value="asDouble")),e.exemplars&&e.exemplars.length){s.exemplars=[];for(var E=0;E<e.exemplars.length;++E)s.exemplars[E]=p.opentelemetry.proto.metrics.v1.Exemplar.toObject(e.exemplars[E],n)}if(e.asInt!=null&&e.hasOwnProperty("asInt")&&(typeof e.asInt=="number"?s.asInt=n.longs===String?String(e.asInt):e.asInt:s.asInt=n.longs===String?_.Long.prototype.toString.call(e.asInt):n.longs===Number?new _.LongBits(e.asInt.low>>>0,e.asInt.high>>>0).toNumber():e.asInt,n.oneofs&&(s.value="asInt")),e.attributes&&e.attributes.length){s.attributes=[];for(var E=0;E<e.attributes.length;++E)s.attributes[E]=p.opentelemetry.proto.common.v1.KeyValue.toObject(e.attributes[E],n)}return e.flags!=null&&e.hasOwnProperty("flags")&&(s.flags=e.flags),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.metrics.v1.NumberDataPoint"},a}(),c.HistogramDataPoint=function(){function a(t){if(this.attributes=[],this.bucketCounts=[],this.explicitBounds=[],this.exemplars=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}a.prototype.attributes=_.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.count=null,a.prototype.sum=null,a.prototype.bucketCounts=_.emptyArray,a.prototype.explicitBounds=_.emptyArray,a.prototype.exemplars=_.emptyArray,a.prototype.flags=null,a.prototype.min=null,a.prototype.max=null;var u;return Object.defineProperty(a.prototype,"_sum",{get:_.oneOfGetter(u=["sum"]),set:_.oneOfSetter(u)}),Object.defineProperty(a.prototype,"_min",{get:_.oneOfGetter(u=["min"]),set:_.oneOfSetter(u)}),Object.defineProperty(a.prototype,"_max",{get:_.oneOfGetter(u=["max"]),set:_.oneOfSetter(u)}),a.create=function(e){return new a(e)},a.encode=function(e,n){if(n||(n=N.create()),e.startTimeUnixNano!=null&&Object.hasOwnProperty.call(e,"startTimeUnixNano")&&n.uint32(17).fixed64(e.startTimeUnixNano),e.timeUnixNano!=null&&Object.hasOwnProperty.call(e,"timeUnixNano")&&n.uint32(25).fixed64(e.timeUnixNano),e.count!=null&&Object.hasOwnProperty.call(e,"count")&&n.uint32(33).fixed64(e.count),e.sum!=null&&Object.hasOwnProperty.call(e,"sum")&&n.uint32(41).double(e.sum),e.bucketCounts!=null&&e.bucketCounts.length){n.uint32(50).fork();for(var s=0;s<e.bucketCounts.length;++s)n.fixed64(e.bucketCounts[s]);n.ldelim()}if(e.explicitBounds!=null&&e.explicitBounds.length){n.uint32(58).fork();for(var s=0;s<e.explicitBounds.length;++s)n.double(e.explicitBounds[s]);n.ldelim()}if(e.exemplars!=null&&e.exemplars.length)for(var s=0;s<e.exemplars.length;++s)p.opentelemetry.proto.metrics.v1.Exemplar.encode(e.exemplars[s],n.uint32(66).fork()).ldelim();if(e.attributes!=null&&e.attributes.length)for(var s=0;s<e.attributes.length;++s)p.opentelemetry.proto.common.v1.KeyValue.encode(e.attributes[s],n.uint32(74).fork()).ldelim();return e.flags!=null&&Object.hasOwnProperty.call(e,"flags")&&n.uint32(80).uint32(e.flags),e.min!=null&&Object.hasOwnProperty.call(e,"min")&&n.uint32(89).double(e.min),e.max!=null&&Object.hasOwnProperty.call(e,"max")&&n.uint32(97).double(e.max),n},a.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},a.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.metrics.v1.HistogramDataPoint;e.pos<s;){var E=e.uint32();switch(E>>>3){case 9:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(e,e.uint32()));break}case 2:{l.startTimeUnixNano=e.fixed64();break}case 3:{l.timeUnixNano=e.fixed64();break}case 4:{l.count=e.fixed64();break}case 5:{l.sum=e.double();break}case 6:{if(l.bucketCounts&&l.bucketCounts.length||(l.bucketCounts=[]),(E&7)===2)for(var O=e.uint32()+e.pos;e.pos<O;)l.bucketCounts.push(e.fixed64());else l.bucketCounts.push(e.fixed64());break}case 7:{if(l.explicitBounds&&l.explicitBounds.length||(l.explicitBounds=[]),(E&7)===2)for(var O=e.uint32()+e.pos;e.pos<O;)l.explicitBounds.push(e.double());else l.explicitBounds.push(e.double());break}case 8:{l.exemplars&&l.exemplars.length||(l.exemplars=[]),l.exemplars.push(p.opentelemetry.proto.metrics.v1.Exemplar.decode(e,e.uint32()));break}case 10:{l.flags=e.uint32();break}case 11:{l.min=e.double();break}case 12:{l.max=e.double();break}default:e.skipType(E&7);break}}return l},a.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},a.verify=function(e){if(typeof e!="object"||e===null)return"object expected";var n={};if(e.attributes!=null&&e.hasOwnProperty("attributes")){if(!Array.isArray(e.attributes))return"attributes: array expected";for(var s=0;s<e.attributes.length;++s){var l=p.opentelemetry.proto.common.v1.KeyValue.verify(e.attributes[s]);if(l)return"attributes."+l}}if(e.startTimeUnixNano!=null&&e.hasOwnProperty("startTimeUnixNano")&&!_.isInteger(e.startTimeUnixNano)&&!(e.startTimeUnixNano&&_.isInteger(e.startTimeUnixNano.low)&&_.isInteger(e.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&!_.isInteger(e.timeUnixNano)&&!(e.timeUnixNano&&_.isInteger(e.timeUnixNano.low)&&_.isInteger(e.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(e.count!=null&&e.hasOwnProperty("count")&&!_.isInteger(e.count)&&!(e.count&&_.isInteger(e.count.low)&&_.isInteger(e.count.high)))return"count: integer|Long expected";if(e.sum!=null&&e.hasOwnProperty("sum")&&(n._sum=1,typeof e.sum!="number"))return"sum: number expected";if(e.bucketCounts!=null&&e.hasOwnProperty("bucketCounts")){if(!Array.isArray(e.bucketCounts))return"bucketCounts: array expected";for(var s=0;s<e.bucketCounts.length;++s)if(!_.isInteger(e.bucketCounts[s])&&!(e.bucketCounts[s]&&_.isInteger(e.bucketCounts[s].low)&&_.isInteger(e.bucketCounts[s].high)))return"bucketCounts: integer|Long[] expected"}if(e.explicitBounds!=null&&e.hasOwnProperty("explicitBounds")){if(!Array.isArray(e.explicitBounds))return"explicitBounds: array expected";for(var s=0;s<e.explicitBounds.length;++s)if(typeof e.explicitBounds[s]!="number")return"explicitBounds: number[] expected"}if(e.exemplars!=null&&e.hasOwnProperty("exemplars")){if(!Array.isArray(e.exemplars))return"exemplars: array expected";for(var s=0;s<e.exemplars.length;++s){var l=p.opentelemetry.proto.metrics.v1.Exemplar.verify(e.exemplars[s]);if(l)return"exemplars."+l}}return e.flags!=null&&e.hasOwnProperty("flags")&&!_.isInteger(e.flags)?"flags: integer expected":e.min!=null&&e.hasOwnProperty("min")&&(n._min=1,typeof e.min!="number")?"min: number expected":e.max!=null&&e.hasOwnProperty("max")&&(n._max=1,typeof e.max!="number")?"max: number expected":null},a.fromObject=function(e){if(e instanceof p.opentelemetry.proto.metrics.v1.HistogramDataPoint)return e;var n=new p.opentelemetry.proto.metrics.v1.HistogramDataPoint;if(e.attributes){if(!Array.isArray(e.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: array expected");n.attributes=[];for(var s=0;s<e.attributes.length;++s){if(typeof e.attributes[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: object expected");n.attributes[s]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(e.attributes[s])}}if(e.startTimeUnixNano!=null&&(_.Long?(n.startTimeUnixNano=_.Long.fromValue(e.startTimeUnixNano)).unsigned=!1:typeof e.startTimeUnixNano=="string"?n.startTimeUnixNano=parseInt(e.startTimeUnixNano,10):typeof e.startTimeUnixNano=="number"?n.startTimeUnixNano=e.startTimeUnixNano:typeof e.startTimeUnixNano=="object"&&(n.startTimeUnixNano=new _.LongBits(e.startTimeUnixNano.low>>>0,e.startTimeUnixNano.high>>>0).toNumber())),e.timeUnixNano!=null&&(_.Long?(n.timeUnixNano=_.Long.fromValue(e.timeUnixNano)).unsigned=!1:typeof e.timeUnixNano=="string"?n.timeUnixNano=parseInt(e.timeUnixNano,10):typeof e.timeUnixNano=="number"?n.timeUnixNano=e.timeUnixNano:typeof e.timeUnixNano=="object"&&(n.timeUnixNano=new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber())),e.count!=null&&(_.Long?(n.count=_.Long.fromValue(e.count)).unsigned=!1:typeof e.count=="string"?n.count=parseInt(e.count,10):typeof e.count=="number"?n.count=e.count:typeof e.count=="object"&&(n.count=new _.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber())),e.sum!=null&&(n.sum=Number(e.sum)),e.bucketCounts){if(!Array.isArray(e.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.bucketCounts: array expected");n.bucketCounts=[];for(var s=0;s<e.bucketCounts.length;++s)_.Long?(n.bucketCounts[s]=_.Long.fromValue(e.bucketCounts[s])).unsigned=!1:typeof e.bucketCounts[s]=="string"?n.bucketCounts[s]=parseInt(e.bucketCounts[s],10):typeof e.bucketCounts[s]=="number"?n.bucketCounts[s]=e.bucketCounts[s]:typeof e.bucketCounts[s]=="object"&&(n.bucketCounts[s]=new _.LongBits(e.bucketCounts[s].low>>>0,e.bucketCounts[s].high>>>0).toNumber())}if(e.explicitBounds){if(!Array.isArray(e.explicitBounds))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.explicitBounds: array expected");n.explicitBounds=[];for(var s=0;s<e.explicitBounds.length;++s)n.explicitBounds[s]=Number(e.explicitBounds[s])}if(e.exemplars){if(!Array.isArray(e.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: array expected");n.exemplars=[];for(var s=0;s<e.exemplars.length;++s){if(typeof e.exemplars[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: object expected");n.exemplars[s]=p.opentelemetry.proto.metrics.v1.Exemplar.fromObject(e.exemplars[s])}}return e.flags!=null&&(n.flags=e.flags>>>0),e.min!=null&&(n.min=Number(e.min)),e.max!=null&&(n.max=Number(e.max)),n},a.toObject=function(e,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.bucketCounts=[],s.explicitBounds=[],s.exemplars=[],s.attributes=[]),n.defaults){if(_.Long){var l=new _.Long(0,0,!1);s.startTimeUnixNano=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.startTimeUnixNano=n.longs===String?"0":0;if(_.Long){var l=new _.Long(0,0,!1);s.timeUnixNano=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.timeUnixNano=n.longs===String?"0":0;if(_.Long){var l=new _.Long(0,0,!1);s.count=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.count=n.longs===String?"0":0;s.flags=0}if(e.startTimeUnixNano!=null&&e.hasOwnProperty("startTimeUnixNano")&&(typeof e.startTimeUnixNano=="number"?s.startTimeUnixNano=n.longs===String?String(e.startTimeUnixNano):e.startTimeUnixNano:s.startTimeUnixNano=n.longs===String?_.Long.prototype.toString.call(e.startTimeUnixNano):n.longs===Number?new _.LongBits(e.startTimeUnixNano.low>>>0,e.startTimeUnixNano.high>>>0).toNumber():e.startTimeUnixNano),e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&(typeof e.timeUnixNano=="number"?s.timeUnixNano=n.longs===String?String(e.timeUnixNano):e.timeUnixNano:s.timeUnixNano=n.longs===String?_.Long.prototype.toString.call(e.timeUnixNano):n.longs===Number?new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber():e.timeUnixNano),e.count!=null&&e.hasOwnProperty("count")&&(typeof e.count=="number"?s.count=n.longs===String?String(e.count):e.count:s.count=n.longs===String?_.Long.prototype.toString.call(e.count):n.longs===Number?new _.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber():e.count),e.sum!=null&&e.hasOwnProperty("sum")&&(s.sum=n.json&&!isFinite(e.sum)?String(e.sum):e.sum,n.oneofs&&(s._sum="sum")),e.bucketCounts&&e.bucketCounts.length){s.bucketCounts=[];for(var E=0;E<e.bucketCounts.length;++E)typeof e.bucketCounts[E]=="number"?s.bucketCounts[E]=n.longs===String?String(e.bucketCounts[E]):e.bucketCounts[E]:s.bucketCounts[E]=n.longs===String?_.Long.prototype.toString.call(e.bucketCounts[E]):n.longs===Number?new _.LongBits(e.bucketCounts[E].low>>>0,e.bucketCounts[E].high>>>0).toNumber():e.bucketCounts[E]}if(e.explicitBounds&&e.explicitBounds.length){s.explicitBounds=[];for(var E=0;E<e.explicitBounds.length;++E)s.explicitBounds[E]=n.json&&!isFinite(e.explicitBounds[E])?String(e.explicitBounds[E]):e.explicitBounds[E]}if(e.exemplars&&e.exemplars.length){s.exemplars=[];for(var E=0;E<e.exemplars.length;++E)s.exemplars[E]=p.opentelemetry.proto.metrics.v1.Exemplar.toObject(e.exemplars[E],n)}if(e.attributes&&e.attributes.length){s.attributes=[];for(var E=0;E<e.attributes.length;++E)s.attributes[E]=p.opentelemetry.proto.common.v1.KeyValue.toObject(e.attributes[E],n)}return e.flags!=null&&e.hasOwnProperty("flags")&&(s.flags=e.flags),e.min!=null&&e.hasOwnProperty("min")&&(s.min=n.json&&!isFinite(e.min)?String(e.min):e.min,n.oneofs&&(s._min="min")),e.max!=null&&e.hasOwnProperty("max")&&(s.max=n.json&&!isFinite(e.max)?String(e.max):e.max,n.oneofs&&(s._max="max")),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.metrics.v1.HistogramDataPoint"},a}(),c.ExponentialHistogramDataPoint=function(){function a(t){if(this.attributes=[],this.exemplars=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}a.prototype.attributes=_.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.count=null,a.prototype.sum=null,a.prototype.scale=null,a.prototype.zeroCount=null,a.prototype.positive=null,a.prototype.negative=null,a.prototype.flags=null,a.prototype.exemplars=_.emptyArray,a.prototype.min=null,a.prototype.max=null,a.prototype.zeroThreshold=null;var u;return Object.defineProperty(a.prototype,"_sum",{get:_.oneOfGetter(u=["sum"]),set:_.oneOfSetter(u)}),Object.defineProperty(a.prototype,"_min",{get:_.oneOfGetter(u=["min"]),set:_.oneOfSetter(u)}),Object.defineProperty(a.prototype,"_max",{get:_.oneOfGetter(u=["max"]),set:_.oneOfSetter(u)}),a.create=function(e){return new a(e)},a.encode=function(e,n){if(n||(n=N.create()),e.attributes!=null&&e.attributes.length)for(var s=0;s<e.attributes.length;++s)p.opentelemetry.proto.common.v1.KeyValue.encode(e.attributes[s],n.uint32(10).fork()).ldelim();if(e.startTimeUnixNano!=null&&Object.hasOwnProperty.call(e,"startTimeUnixNano")&&n.uint32(17).fixed64(e.startTimeUnixNano),e.timeUnixNano!=null&&Object.hasOwnProperty.call(e,"timeUnixNano")&&n.uint32(25).fixed64(e.timeUnixNano),e.count!=null&&Object.hasOwnProperty.call(e,"count")&&n.uint32(33).fixed64(e.count),e.sum!=null&&Object.hasOwnProperty.call(e,"sum")&&n.uint32(41).double(e.sum),e.scale!=null&&Object.hasOwnProperty.call(e,"scale")&&n.uint32(48).sint32(e.scale),e.zeroCount!=null&&Object.hasOwnProperty.call(e,"zeroCount")&&n.uint32(57).fixed64(e.zeroCount),e.positive!=null&&Object.hasOwnProperty.call(e,"positive")&&p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(e.positive,n.uint32(66).fork()).ldelim(),e.negative!=null&&Object.hasOwnProperty.call(e,"negative")&&p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(e.negative,n.uint32(74).fork()).ldelim(),e.flags!=null&&Object.hasOwnProperty.call(e,"flags")&&n.uint32(80).uint32(e.flags),e.exemplars!=null&&e.exemplars.length)for(var s=0;s<e.exemplars.length;++s)p.opentelemetry.proto.metrics.v1.Exemplar.encode(e.exemplars[s],n.uint32(90).fork()).ldelim();return e.min!=null&&Object.hasOwnProperty.call(e,"min")&&n.uint32(97).double(e.min),e.max!=null&&Object.hasOwnProperty.call(e,"max")&&n.uint32(105).double(e.max),e.zeroThreshold!=null&&Object.hasOwnProperty.call(e,"zeroThreshold")&&n.uint32(113).double(e.zeroThreshold),n},a.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},a.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(e,e.uint32()));break}case 2:{l.startTimeUnixNano=e.fixed64();break}case 3:{l.timeUnixNano=e.fixed64();break}case 4:{l.count=e.fixed64();break}case 5:{l.sum=e.double();break}case 6:{l.scale=e.sint32();break}case 7:{l.zeroCount=e.fixed64();break}case 8:{l.positive=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(e,e.uint32());break}case 9:{l.negative=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(e,e.uint32());break}case 10:{l.flags=e.uint32();break}case 11:{l.exemplars&&l.exemplars.length||(l.exemplars=[]),l.exemplars.push(p.opentelemetry.proto.metrics.v1.Exemplar.decode(e,e.uint32()));break}case 12:{l.min=e.double();break}case 13:{l.max=e.double();break}case 14:{l.zeroThreshold=e.double();break}default:e.skipType(E&7);break}}return l},a.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},a.verify=function(e){if(typeof e!="object"||e===null)return"object expected";var n={};if(e.attributes!=null&&e.hasOwnProperty("attributes")){if(!Array.isArray(e.attributes))return"attributes: array expected";for(var s=0;s<e.attributes.length;++s){var l=p.opentelemetry.proto.common.v1.KeyValue.verify(e.attributes[s]);if(l)return"attributes."+l}}if(e.startTimeUnixNano!=null&&e.hasOwnProperty("startTimeUnixNano")&&!_.isInteger(e.startTimeUnixNano)&&!(e.startTimeUnixNano&&_.isInteger(e.startTimeUnixNano.low)&&_.isInteger(e.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&!_.isInteger(e.timeUnixNano)&&!(e.timeUnixNano&&_.isInteger(e.timeUnixNano.low)&&_.isInteger(e.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(e.count!=null&&e.hasOwnProperty("count")&&!_.isInteger(e.count)&&!(e.count&&_.isInteger(e.count.low)&&_.isInteger(e.count.high)))return"count: integer|Long expected";if(e.sum!=null&&e.hasOwnProperty("sum")&&(n._sum=1,typeof e.sum!="number"))return"sum: number expected";if(e.scale!=null&&e.hasOwnProperty("scale")&&!_.isInteger(e.scale))return"scale: integer expected";if(e.zeroCount!=null&&e.hasOwnProperty("zeroCount")&&!_.isInteger(e.zeroCount)&&!(e.zeroCount&&_.isInteger(e.zeroCount.low)&&_.isInteger(e.zeroCount.high)))return"zeroCount: integer|Long expected";if(e.positive!=null&&e.hasOwnProperty("positive")){var l=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(e.positive);if(l)return"positive."+l}if(e.negative!=null&&e.hasOwnProperty("negative")){var l=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(e.negative);if(l)return"negative."+l}if(e.flags!=null&&e.hasOwnProperty("flags")&&!_.isInteger(e.flags))return"flags: integer expected";if(e.exemplars!=null&&e.hasOwnProperty("exemplars")){if(!Array.isArray(e.exemplars))return"exemplars: array expected";for(var s=0;s<e.exemplars.length;++s){var l=p.opentelemetry.proto.metrics.v1.Exemplar.verify(e.exemplars[s]);if(l)return"exemplars."+l}}return e.min!=null&&e.hasOwnProperty("min")&&(n._min=1,typeof e.min!="number")?"min: number expected":e.max!=null&&e.hasOwnProperty("max")&&(n._max=1,typeof e.max!="number")?"max: number expected":e.zeroThreshold!=null&&e.hasOwnProperty("zeroThreshold")&&typeof e.zeroThreshold!="number"?"zeroThreshold: number expected":null},a.fromObject=function(e){if(e instanceof p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint)return e;var n=new p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;if(e.attributes){if(!Array.isArray(e.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: array expected");n.attributes=[];for(var s=0;s<e.attributes.length;++s){if(typeof e.attributes[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: object expected");n.attributes[s]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(e.attributes[s])}}if(e.startTimeUnixNano!=null&&(_.Long?(n.startTimeUnixNano=_.Long.fromValue(e.startTimeUnixNano)).unsigned=!1:typeof e.startTimeUnixNano=="string"?n.startTimeUnixNano=parseInt(e.startTimeUnixNano,10):typeof e.startTimeUnixNano=="number"?n.startTimeUnixNano=e.startTimeUnixNano:typeof e.startTimeUnixNano=="object"&&(n.startTimeUnixNano=new _.LongBits(e.startTimeUnixNano.low>>>0,e.startTimeUnixNano.high>>>0).toNumber())),e.timeUnixNano!=null&&(_.Long?(n.timeUnixNano=_.Long.fromValue(e.timeUnixNano)).unsigned=!1:typeof e.timeUnixNano=="string"?n.timeUnixNano=parseInt(e.timeUnixNano,10):typeof e.timeUnixNano=="number"?n.timeUnixNano=e.timeUnixNano:typeof e.timeUnixNano=="object"&&(n.timeUnixNano=new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber())),e.count!=null&&(_.Long?(n.count=_.Long.fromValue(e.count)).unsigned=!1:typeof e.count=="string"?n.count=parseInt(e.count,10):typeof e.count=="number"?n.count=e.count:typeof e.count=="object"&&(n.count=new _.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber())),e.sum!=null&&(n.sum=Number(e.sum)),e.scale!=null&&(n.scale=e.scale|0),e.zeroCount!=null&&(_.Long?(n.zeroCount=_.Long.fromValue(e.zeroCount)).unsigned=!1:typeof e.zeroCount=="string"?n.zeroCount=parseInt(e.zeroCount,10):typeof e.zeroCount=="number"?n.zeroCount=e.zeroCount:typeof e.zeroCount=="object"&&(n.zeroCount=new _.LongBits(e.zeroCount.low>>>0,e.zeroCount.high>>>0).toNumber())),e.positive!=null){if(typeof e.positive!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.positive: object expected");n.positive=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(e.positive)}if(e.negative!=null){if(typeof e.negative!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.negative: object expected");n.negative=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(e.negative)}if(e.flags!=null&&(n.flags=e.flags>>>0),e.exemplars){if(!Array.isArray(e.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: array expected");n.exemplars=[];for(var s=0;s<e.exemplars.length;++s){if(typeof e.exemplars[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: object expected");n.exemplars[s]=p.opentelemetry.proto.metrics.v1.Exemplar.fromObject(e.exemplars[s])}}return e.min!=null&&(n.min=Number(e.min)),e.max!=null&&(n.max=Number(e.max)),e.zeroThreshold!=null&&(n.zeroThreshold=Number(e.zeroThreshold)),n},a.toObject=function(e,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.attributes=[],s.exemplars=[]),n.defaults){if(_.Long){var l=new _.Long(0,0,!1);s.startTimeUnixNano=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.startTimeUnixNano=n.longs===String?"0":0;if(_.Long){var l=new _.Long(0,0,!1);s.timeUnixNano=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.timeUnixNano=n.longs===String?"0":0;if(_.Long){var l=new _.Long(0,0,!1);s.count=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.count=n.longs===String?"0":0;if(s.scale=0,_.Long){var l=new _.Long(0,0,!1);s.zeroCount=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.zeroCount=n.longs===String?"0":0;s.positive=null,s.negative=null,s.flags=0,s.zeroThreshold=0}if(e.attributes&&e.attributes.length){s.attributes=[];for(var E=0;E<e.attributes.length;++E)s.attributes[E]=p.opentelemetry.proto.common.v1.KeyValue.toObject(e.attributes[E],n)}if(e.startTimeUnixNano!=null&&e.hasOwnProperty("startTimeUnixNano")&&(typeof e.startTimeUnixNano=="number"?s.startTimeUnixNano=n.longs===String?String(e.startTimeUnixNano):e.startTimeUnixNano:s.startTimeUnixNano=n.longs===String?_.Long.prototype.toString.call(e.startTimeUnixNano):n.longs===Number?new _.LongBits(e.startTimeUnixNano.low>>>0,e.startTimeUnixNano.high>>>0).toNumber():e.startTimeUnixNano),e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&(typeof e.timeUnixNano=="number"?s.timeUnixNano=n.longs===String?String(e.timeUnixNano):e.timeUnixNano:s.timeUnixNano=n.longs===String?_.Long.prototype.toString.call(e.timeUnixNano):n.longs===Number?new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber():e.timeUnixNano),e.count!=null&&e.hasOwnProperty("count")&&(typeof e.count=="number"?s.count=n.longs===String?String(e.count):e.count:s.count=n.longs===String?_.Long.prototype.toString.call(e.count):n.longs===Number?new _.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber():e.count),e.sum!=null&&e.hasOwnProperty("sum")&&(s.sum=n.json&&!isFinite(e.sum)?String(e.sum):e.sum,n.oneofs&&(s._sum="sum")),e.scale!=null&&e.hasOwnProperty("scale")&&(s.scale=e.scale),e.zeroCount!=null&&e.hasOwnProperty("zeroCount")&&(typeof e.zeroCount=="number"?s.zeroCount=n.longs===String?String(e.zeroCount):e.zeroCount:s.zeroCount=n.longs===String?_.Long.prototype.toString.call(e.zeroCount):n.longs===Number?new _.LongBits(e.zeroCount.low>>>0,e.zeroCount.high>>>0).toNumber():e.zeroCount),e.positive!=null&&e.hasOwnProperty("positive")&&(s.positive=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(e.positive,n)),e.negative!=null&&e.hasOwnProperty("negative")&&(s.negative=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(e.negative,n)),e.flags!=null&&e.hasOwnProperty("flags")&&(s.flags=e.flags),e.exemplars&&e.exemplars.length){s.exemplars=[];for(var E=0;E<e.exemplars.length;++E)s.exemplars[E]=p.opentelemetry.proto.metrics.v1.Exemplar.toObject(e.exemplars[E],n)}return e.min!=null&&e.hasOwnProperty("min")&&(s.min=n.json&&!isFinite(e.min)?String(e.min):e.min,n.oneofs&&(s._min="min")),e.max!=null&&e.hasOwnProperty("max")&&(s.max=n.json&&!isFinite(e.max)?String(e.max):e.max,n.oneofs&&(s._max="max")),e.zeroThreshold!=null&&e.hasOwnProperty("zeroThreshold")&&(s.zeroThreshold=n.json&&!isFinite(e.zeroThreshold)?String(e.zeroThreshold):e.zeroThreshold),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint"},a.Buckets=function(){function t(e){if(this.bucketCounts=[],e)for(var n=Object.keys(e),s=0;s<n.length;++s)e[n[s]]!=null&&(this[n[s]]=e[n[s]])}return t.prototype.offset=null,t.prototype.bucketCounts=_.emptyArray,t.create=function(n){return new t(n)},t.encode=function(n,s){if(s||(s=N.create()),n.offset!=null&&Object.hasOwnProperty.call(n,"offset")&&s.uint32(8).sint32(n.offset),n.bucketCounts!=null&&n.bucketCounts.length){s.uint32(18).fork();for(var l=0;l<n.bucketCounts.length;++l)s.uint64(n.bucketCounts[l]);s.ldelim()}return s},t.encodeDelimited=function(n,s){return this.encode(n,s).ldelim()},t.decode=function(n,s){n instanceof T||(n=T.create(n));for(var l=s===void 0?n.len:n.pos+s,E=new p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;n.pos<l;){var O=n.uint32();switch(O>>>3){case 1:{E.offset=n.sint32();break}case 2:{if(E.bucketCounts&&E.bucketCounts.length||(E.bucketCounts=[]),(O&7)===2)for(var x=n.uint32()+n.pos;n.pos<x;)E.bucketCounts.push(n.uint64());else E.bucketCounts.push(n.uint64());break}default:n.skipType(O&7);break}}return E},t.decodeDelimited=function(n){return n instanceof T||(n=new T(n)),this.decode(n,n.uint32())},t.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.offset!=null&&n.hasOwnProperty("offset")&&!_.isInteger(n.offset))return"offset: integer expected";if(n.bucketCounts!=null&&n.hasOwnProperty("bucketCounts")){if(!Array.isArray(n.bucketCounts))return"bucketCounts: array expected";for(var s=0;s<n.bucketCounts.length;++s)if(!_.isInteger(n.bucketCounts[s])&&!(n.bucketCounts[s]&&_.isInteger(n.bucketCounts[s].low)&&_.isInteger(n.bucketCounts[s].high)))return"bucketCounts: integer|Long[] expected"}return null},t.fromObject=function(n){if(n instanceof p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets)return n;var s=new p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;if(n.offset!=null&&(s.offset=n.offset|0),n.bucketCounts){if(!Array.isArray(n.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.bucketCounts: array expected");s.bucketCounts=[];for(var l=0;l<n.bucketCounts.length;++l)_.Long?(s.bucketCounts[l]=_.Long.fromValue(n.bucketCounts[l])).unsigned=!0:typeof n.bucketCounts[l]=="string"?s.bucketCounts[l]=parseInt(n.bucketCounts[l],10):typeof n.bucketCounts[l]=="number"?s.bucketCounts[l]=n.bucketCounts[l]:typeof n.bucketCounts[l]=="object"&&(s.bucketCounts[l]=new _.LongBits(n.bucketCounts[l].low>>>0,n.bucketCounts[l].high>>>0).toNumber(!0))}return s},t.toObject=function(n,s){s||(s={});var l={};if((s.arrays||s.defaults)&&(l.bucketCounts=[]),s.defaults&&(l.offset=0),n.offset!=null&&n.hasOwnProperty("offset")&&(l.offset=n.offset),n.bucketCounts&&n.bucketCounts.length){l.bucketCounts=[];for(var E=0;E<n.bucketCounts.length;++E)typeof n.bucketCounts[E]=="number"?l.bucketCounts[E]=s.longs===String?String(n.bucketCounts[E]):n.bucketCounts[E]:l.bucketCounts[E]=s.longs===String?_.Long.prototype.toString.call(n.bucketCounts[E]):s.longs===Number?new _.LongBits(n.bucketCounts[E].low>>>0,n.bucketCounts[E].high>>>0).toNumber(!0):n.bucketCounts[E]}return l},t.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets"},t}(),a}(),c.SummaryDataPoint=function(){function a(u){if(this.attributes=[],this.quantileValues=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.attributes=_.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.count=null,a.prototype.sum=null,a.prototype.quantileValues=_.emptyArray,a.prototype.flags=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=N.create()),t.startTimeUnixNano!=null&&Object.hasOwnProperty.call(t,"startTimeUnixNano")&&e.uint32(17).fixed64(t.startTimeUnixNano),t.timeUnixNano!=null&&Object.hasOwnProperty.call(t,"timeUnixNano")&&e.uint32(25).fixed64(t.timeUnixNano),t.count!=null&&Object.hasOwnProperty.call(t,"count")&&e.uint32(33).fixed64(t.count),t.sum!=null&&Object.hasOwnProperty.call(t,"sum")&&e.uint32(41).double(t.sum),t.quantileValues!=null&&t.quantileValues.length)for(var n=0;n<t.quantileValues.length;++n)p.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.encode(t.quantileValues[n],e.uint32(50).fork()).ldelim();if(t.attributes!=null&&t.attributes.length)for(var n=0;n<t.attributes.length;++n)p.opentelemetry.proto.common.v1.KeyValue.encode(t.attributes[n],e.uint32(58).fork()).ldelim();return t.flags!=null&&Object.hasOwnProperty.call(t,"flags")&&e.uint32(64).uint32(t.flags),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.metrics.v1.SummaryDataPoint;t.pos<n;){var l=t.uint32();switch(l>>>3){case 7:{s.attributes&&s.attributes.length||(s.attributes=[]),s.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(t,t.uint32()));break}case 2:{s.startTimeUnixNano=t.fixed64();break}case 3:{s.timeUnixNano=t.fixed64();break}case 4:{s.count=t.fixed64();break}case 5:{s.sum=t.double();break}case 6:{s.quantileValues&&s.quantileValues.length||(s.quantileValues=[]),s.quantileValues.push(p.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.decode(t,t.uint32()));break}case 8:{s.flags=t.uint32();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.attributes!=null&&t.hasOwnProperty("attributes")){if(!Array.isArray(t.attributes))return"attributes: array expected";for(var e=0;e<t.attributes.length;++e){var n=p.opentelemetry.proto.common.v1.KeyValue.verify(t.attributes[e]);if(n)return"attributes."+n}}if(t.startTimeUnixNano!=null&&t.hasOwnProperty("startTimeUnixNano")&&!_.isInteger(t.startTimeUnixNano)&&!(t.startTimeUnixNano&&_.isInteger(t.startTimeUnixNano.low)&&_.isInteger(t.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(t.timeUnixNano!=null&&t.hasOwnProperty("timeUnixNano")&&!_.isInteger(t.timeUnixNano)&&!(t.timeUnixNano&&_.isInteger(t.timeUnixNano.low)&&_.isInteger(t.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(t.count!=null&&t.hasOwnProperty("count")&&!_.isInteger(t.count)&&!(t.count&&_.isInteger(t.count.low)&&_.isInteger(t.count.high)))return"count: integer|Long expected";if(t.sum!=null&&t.hasOwnProperty("sum")&&typeof t.sum!="number")return"sum: number expected";if(t.quantileValues!=null&&t.hasOwnProperty("quantileValues")){if(!Array.isArray(t.quantileValues))return"quantileValues: array expected";for(var e=0;e<t.quantileValues.length;++e){var n=p.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.verify(t.quantileValues[e]);if(n)return"quantileValues."+n}}return t.flags!=null&&t.hasOwnProperty("flags")&&!_.isInteger(t.flags)?"flags: integer expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.metrics.v1.SummaryDataPoint)return t;var e=new p.opentelemetry.proto.metrics.v1.SummaryDataPoint;if(t.attributes){if(!Array.isArray(t.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: array expected");e.attributes=[];for(var n=0;n<t.attributes.length;++n){if(typeof t.attributes[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: object expected");e.attributes[n]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(t.attributes[n])}}if(t.startTimeUnixNano!=null&&(_.Long?(e.startTimeUnixNano=_.Long.fromValue(t.startTimeUnixNano)).unsigned=!1:typeof t.startTimeUnixNano=="string"?e.startTimeUnixNano=parseInt(t.startTimeUnixNano,10):typeof t.startTimeUnixNano=="number"?e.startTimeUnixNano=t.startTimeUnixNano:typeof t.startTimeUnixNano=="object"&&(e.startTimeUnixNano=new _.LongBits(t.startTimeUnixNano.low>>>0,t.startTimeUnixNano.high>>>0).toNumber())),t.timeUnixNano!=null&&(_.Long?(e.timeUnixNano=_.Long.fromValue(t.timeUnixNano)).unsigned=!1:typeof t.timeUnixNano=="string"?e.timeUnixNano=parseInt(t.timeUnixNano,10):typeof t.timeUnixNano=="number"?e.timeUnixNano=t.timeUnixNano:typeof t.timeUnixNano=="object"&&(e.timeUnixNano=new _.LongBits(t.timeUnixNano.low>>>0,t.timeUnixNano.high>>>0).toNumber())),t.count!=null&&(_.Long?(e.count=_.Long.fromValue(t.count)).unsigned=!1:typeof t.count=="string"?e.count=parseInt(t.count,10):typeof t.count=="number"?e.count=t.count:typeof t.count=="object"&&(e.count=new _.LongBits(t.count.low>>>0,t.count.high>>>0).toNumber())),t.sum!=null&&(e.sum=Number(t.sum)),t.quantileValues){if(!Array.isArray(t.quantileValues))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: array expected");e.quantileValues=[];for(var n=0;n<t.quantileValues.length;++n){if(typeof t.quantileValues[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: object expected");e.quantileValues[n]=p.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.fromObject(t.quantileValues[n])}}return t.flags!=null&&(e.flags=t.flags>>>0),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.quantileValues=[],n.attributes=[]),e.defaults){if(_.Long){var s=new _.Long(0,0,!1);n.startTimeUnixNano=e.longs===String?s.toString():e.longs===Number?s.toNumber():s}else n.startTimeUnixNano=e.longs===String?"0":0;if(_.Long){var s=new _.Long(0,0,!1);n.timeUnixNano=e.longs===String?s.toString():e.longs===Number?s.toNumber():s}else n.timeUnixNano=e.longs===String?"0":0;if(_.Long){var s=new _.Long(0,0,!1);n.count=e.longs===String?s.toString():e.longs===Number?s.toNumber():s}else n.count=e.longs===String?"0":0;n.sum=0,n.flags=0}if(t.startTimeUnixNano!=null&&t.hasOwnProperty("startTimeUnixNano")&&(typeof t.startTimeUnixNano=="number"?n.startTimeUnixNano=e.longs===String?String(t.startTimeUnixNano):t.startTimeUnixNano:n.startTimeUnixNano=e.longs===String?_.Long.prototype.toString.call(t.startTimeUnixNano):e.longs===Number?new _.LongBits(t.startTimeUnixNano.low>>>0,t.startTimeUnixNano.high>>>0).toNumber():t.startTimeUnixNano),t.timeUnixNano!=null&&t.hasOwnProperty("timeUnixNano")&&(typeof t.timeUnixNano=="number"?n.timeUnixNano=e.longs===String?String(t.timeUnixNano):t.timeUnixNano:n.timeUnixNano=e.longs===String?_.Long.prototype.toString.call(t.timeUnixNano):e.longs===Number?new _.LongBits(t.timeUnixNano.low>>>0,t.timeUnixNano.high>>>0).toNumber():t.timeUnixNano),t.count!=null&&t.hasOwnProperty("count")&&(typeof t.count=="number"?n.count=e.longs===String?String(t.count):t.count:n.count=e.longs===String?_.Long.prototype.toString.call(t.count):e.longs===Number?new _.LongBits(t.count.low>>>0,t.count.high>>>0).toNumber():t.count),t.sum!=null&&t.hasOwnProperty("sum")&&(n.sum=e.json&&!isFinite(t.sum)?String(t.sum):t.sum),t.quantileValues&&t.quantileValues.length){n.quantileValues=[];for(var l=0;l<t.quantileValues.length;++l)n.quantileValues[l]=p.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.toObject(t.quantileValues[l],e)}if(t.attributes&&t.attributes.length){n.attributes=[];for(var l=0;l<t.attributes.length;++l)n.attributes[l]=p.opentelemetry.proto.common.v1.KeyValue.toObject(t.attributes[l],e)}return t.flags!=null&&t.hasOwnProperty("flags")&&(n.flags=t.flags),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.metrics.v1.SummaryDataPoint"},a.ValueAtQuantile=function(){function u(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.quantile=null,u.prototype.value=null,u.create=function(e){return new u(e)},u.encode=function(e,n){return n||(n=N.create()),e.quantile!=null&&Object.hasOwnProperty.call(e,"quantile")&&n.uint32(9).double(e.quantile),e.value!=null&&Object.hasOwnProperty.call(e,"value")&&n.uint32(17).double(e.value),n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.quantile=e.double();break}case 2:{l.value=e.double();break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){return typeof e!="object"||e===null?"object expected":e.quantile!=null&&e.hasOwnProperty("quantile")&&typeof e.quantile!="number"?"quantile: number expected":e.value!=null&&e.hasOwnProperty("value")&&typeof e.value!="number"?"value: number expected":null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile)return e;var n=new p.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;return e.quantile!=null&&(n.quantile=Number(e.quantile)),e.value!=null&&(n.value=Number(e.value)),n},u.toObject=function(e,n){n||(n={});var s={};return n.defaults&&(s.quantile=0,s.value=0),e.quantile!=null&&e.hasOwnProperty("quantile")&&(s.quantile=n.json&&!isFinite(e.quantile)?String(e.quantile):e.quantile),e.value!=null&&e.hasOwnProperty("value")&&(s.value=n.json&&!isFinite(e.value)?String(e.value):e.value),s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile"},u}(),a}(),c.Exemplar=function(){function a(t){if(this.filteredAttributes=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}a.prototype.filteredAttributes=_.emptyArray,a.prototype.timeUnixNano=null,a.prototype.asDouble=null,a.prototype.asInt=null,a.prototype.spanId=null,a.prototype.traceId=null;var u;return Object.defineProperty(a.prototype,"value",{get:_.oneOfGetter(u=["asDouble","asInt"]),set:_.oneOfSetter(u)}),a.create=function(e){return new a(e)},a.encode=function(e,n){if(n||(n=N.create()),e.timeUnixNano!=null&&Object.hasOwnProperty.call(e,"timeUnixNano")&&n.uint32(17).fixed64(e.timeUnixNano),e.asDouble!=null&&Object.hasOwnProperty.call(e,"asDouble")&&n.uint32(25).double(e.asDouble),e.spanId!=null&&Object.hasOwnProperty.call(e,"spanId")&&n.uint32(34).bytes(e.spanId),e.traceId!=null&&Object.hasOwnProperty.call(e,"traceId")&&n.uint32(42).bytes(e.traceId),e.asInt!=null&&Object.hasOwnProperty.call(e,"asInt")&&n.uint32(49).sfixed64(e.asInt),e.filteredAttributes!=null&&e.filteredAttributes.length)for(var s=0;s<e.filteredAttributes.length;++s)p.opentelemetry.proto.common.v1.KeyValue.encode(e.filteredAttributes[s],n.uint32(58).fork()).ldelim();return n},a.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},a.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.metrics.v1.Exemplar;e.pos<s;){var E=e.uint32();switch(E>>>3){case 7:{l.filteredAttributes&&l.filteredAttributes.length||(l.filteredAttributes=[]),l.filteredAttributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(e,e.uint32()));break}case 2:{l.timeUnixNano=e.fixed64();break}case 3:{l.asDouble=e.double();break}case 6:{l.asInt=e.sfixed64();break}case 4:{l.spanId=e.bytes();break}case 5:{l.traceId=e.bytes();break}default:e.skipType(E&7);break}}return l},a.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},a.verify=function(e){if(typeof e!="object"||e===null)return"object expected";var n={};if(e.filteredAttributes!=null&&e.hasOwnProperty("filteredAttributes")){if(!Array.isArray(e.filteredAttributes))return"filteredAttributes: array expected";for(var s=0;s<e.filteredAttributes.length;++s){var l=p.opentelemetry.proto.common.v1.KeyValue.verify(e.filteredAttributes[s]);if(l)return"filteredAttributes."+l}}if(e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&!_.isInteger(e.timeUnixNano)&&!(e.timeUnixNano&&_.isInteger(e.timeUnixNano.low)&&_.isInteger(e.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(e.asDouble!=null&&e.hasOwnProperty("asDouble")&&(n.value=1,typeof e.asDouble!="number"))return"asDouble: number expected";if(e.asInt!=null&&e.hasOwnProperty("asInt")){if(n.value===1)return"value: multiple values";if(n.value=1,!_.isInteger(e.asInt)&&!(e.asInt&&_.isInteger(e.asInt.low)&&_.isInteger(e.asInt.high)))return"asInt: integer|Long expected"}return e.spanId!=null&&e.hasOwnProperty("spanId")&&!(e.spanId&&typeof e.spanId.length=="number"||_.isString(e.spanId))?"spanId: buffer expected":e.traceId!=null&&e.hasOwnProperty("traceId")&&!(e.traceId&&typeof e.traceId.length=="number"||_.isString(e.traceId))?"traceId: buffer expected":null},a.fromObject=function(e){if(e instanceof p.opentelemetry.proto.metrics.v1.Exemplar)return e;var n=new p.opentelemetry.proto.metrics.v1.Exemplar;if(e.filteredAttributes){if(!Array.isArray(e.filteredAttributes))throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: array expected");n.filteredAttributes=[];for(var s=0;s<e.filteredAttributes.length;++s){if(typeof e.filteredAttributes[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: object expected");n.filteredAttributes[s]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(e.filteredAttributes[s])}}return e.timeUnixNano!=null&&(_.Long?(n.timeUnixNano=_.Long.fromValue(e.timeUnixNano)).unsigned=!1:typeof e.timeUnixNano=="string"?n.timeUnixNano=parseInt(e.timeUnixNano,10):typeof e.timeUnixNano=="number"?n.timeUnixNano=e.timeUnixNano:typeof e.timeUnixNano=="object"&&(n.timeUnixNano=new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber())),e.asDouble!=null&&(n.asDouble=Number(e.asDouble)),e.asInt!=null&&(_.Long?(n.asInt=_.Long.fromValue(e.asInt)).unsigned=!1:typeof e.asInt=="string"?n.asInt=parseInt(e.asInt,10):typeof e.asInt=="number"?n.asInt=e.asInt:typeof e.asInt=="object"&&(n.asInt=new _.LongBits(e.asInt.low>>>0,e.asInt.high>>>0).toNumber())),e.spanId!=null&&(typeof e.spanId=="string"?_.base64.decode(e.spanId,n.spanId=_.newBuffer(_.base64.length(e.spanId)),0):e.spanId.length>=0&&(n.spanId=e.spanId)),e.traceId!=null&&(typeof e.traceId=="string"?_.base64.decode(e.traceId,n.traceId=_.newBuffer(_.base64.length(e.traceId)),0):e.traceId.length>=0&&(n.traceId=e.traceId)),n},a.toObject=function(e,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.filteredAttributes=[]),n.defaults){if(_.Long){var l=new _.Long(0,0,!1);s.timeUnixNano=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.timeUnixNano=n.longs===String?"0":0;n.bytes===String?s.spanId="":(s.spanId=[],n.bytes!==Array&&(s.spanId=_.newBuffer(s.spanId))),n.bytes===String?s.traceId="":(s.traceId=[],n.bytes!==Array&&(s.traceId=_.newBuffer(s.traceId)))}if(e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&(typeof e.timeUnixNano=="number"?s.timeUnixNano=n.longs===String?String(e.timeUnixNano):e.timeUnixNano:s.timeUnixNano=n.longs===String?_.Long.prototype.toString.call(e.timeUnixNano):n.longs===Number?new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber():e.timeUnixNano),e.asDouble!=null&&e.hasOwnProperty("asDouble")&&(s.asDouble=n.json&&!isFinite(e.asDouble)?String(e.asDouble):e.asDouble,n.oneofs&&(s.value="asDouble")),e.spanId!=null&&e.hasOwnProperty("spanId")&&(s.spanId=n.bytes===String?_.base64.encode(e.spanId,0,e.spanId.length):n.bytes===Array?Array.prototype.slice.call(e.spanId):e.spanId),e.traceId!=null&&e.hasOwnProperty("traceId")&&(s.traceId=n.bytes===String?_.base64.encode(e.traceId,0,e.traceId.length):n.bytes===Array?Array.prototype.slice.call(e.traceId):e.traceId),e.asInt!=null&&e.hasOwnProperty("asInt")&&(typeof e.asInt=="number"?s.asInt=n.longs===String?String(e.asInt):e.asInt:s.asInt=n.longs===String?_.Long.prototype.toString.call(e.asInt):n.longs===Number?new _.LongBits(e.asInt.low>>>0,e.asInt.high>>>0).toNumber():e.asInt,n.oneofs&&(s.value="asInt")),e.filteredAttributes&&e.filteredAttributes.length){s.filteredAttributes=[];for(var E=0;E<e.filteredAttributes.length;++E)s.filteredAttributes[E]=p.opentelemetry.proto.common.v1.KeyValue.toObject(e.filteredAttributes[E],n)}return s},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.metrics.v1.Exemplar"},a}(),c}(),i}(),r.logs=function(){var i={};return i.v1=function(){var c={};return c.LogsData=function(){function a(u){if(this.resourceLogs=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.resourceLogs=_.emptyArray,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=N.create()),t.resourceLogs!=null&&t.resourceLogs.length)for(var n=0;n<t.resourceLogs.length;++n)p.opentelemetry.proto.logs.v1.ResourceLogs.encode(t.resourceLogs[n],e.uint32(10).fork()).ldelim();return e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.logs.v1.LogsData;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.resourceLogs&&s.resourceLogs.length||(s.resourceLogs=[]),s.resourceLogs.push(p.opentelemetry.proto.logs.v1.ResourceLogs.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.resourceLogs!=null&&t.hasOwnProperty("resourceLogs")){if(!Array.isArray(t.resourceLogs))return"resourceLogs: array expected";for(var e=0;e<t.resourceLogs.length;++e){var n=p.opentelemetry.proto.logs.v1.ResourceLogs.verify(t.resourceLogs[e]);if(n)return"resourceLogs."+n}}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.logs.v1.LogsData)return t;var e=new p.opentelemetry.proto.logs.v1.LogsData;if(t.resourceLogs){if(!Array.isArray(t.resourceLogs))throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: array expected");e.resourceLogs=[];for(var n=0;n<t.resourceLogs.length;++n){if(typeof t.resourceLogs[n]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: object expected");e.resourceLogs[n]=p.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(t.resourceLogs[n])}}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.resourceLogs=[]),t.resourceLogs&&t.resourceLogs.length){n.resourceLogs=[];for(var s=0;s<t.resourceLogs.length;++s)n.resourceLogs[s]=p.opentelemetry.proto.logs.v1.ResourceLogs.toObject(t.resourceLogs[s],e)}return n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.logs.v1.LogsData"},a}(),c.ResourceLogs=function(){function a(u){if(this.scopeLogs=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.resource=null,a.prototype.scopeLogs=_.emptyArray,a.prototype.schemaUrl=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=N.create()),t.resource!=null&&Object.hasOwnProperty.call(t,"resource")&&p.opentelemetry.proto.resource.v1.Resource.encode(t.resource,e.uint32(10).fork()).ldelim(),t.scopeLogs!=null&&t.scopeLogs.length)for(var n=0;n<t.scopeLogs.length;++n)p.opentelemetry.proto.logs.v1.ScopeLogs.encode(t.scopeLogs[n],e.uint32(18).fork()).ldelim();return t.schemaUrl!=null&&Object.hasOwnProperty.call(t,"schemaUrl")&&e.uint32(26).string(t.schemaUrl),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.logs.v1.ResourceLogs;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.resource=p.opentelemetry.proto.resource.v1.Resource.decode(t,t.uint32());break}case 2:{s.scopeLogs&&s.scopeLogs.length||(s.scopeLogs=[]),s.scopeLogs.push(p.opentelemetry.proto.logs.v1.ScopeLogs.decode(t,t.uint32()));break}case 3:{s.schemaUrl=t.string();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.resource!=null&&t.hasOwnProperty("resource")){var e=p.opentelemetry.proto.resource.v1.Resource.verify(t.resource);if(e)return"resource."+e}if(t.scopeLogs!=null&&t.hasOwnProperty("scopeLogs")){if(!Array.isArray(t.scopeLogs))return"scopeLogs: array expected";for(var n=0;n<t.scopeLogs.length;++n){var e=p.opentelemetry.proto.logs.v1.ScopeLogs.verify(t.scopeLogs[n]);if(e)return"scopeLogs."+e}}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&!_.isString(t.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.logs.v1.ResourceLogs)return t;var e=new p.opentelemetry.proto.logs.v1.ResourceLogs;if(t.resource!=null){if(typeof t.resource!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.resource: object expected");e.resource=p.opentelemetry.proto.resource.v1.Resource.fromObject(t.resource)}if(t.scopeLogs){if(!Array.isArray(t.scopeLogs))throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: array expected");e.scopeLogs=[];for(var n=0;n<t.scopeLogs.length;++n){if(typeof t.scopeLogs[n]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: object expected");e.scopeLogs[n]=p.opentelemetry.proto.logs.v1.ScopeLogs.fromObject(t.scopeLogs[n])}}return t.schemaUrl!=null&&(e.schemaUrl=String(t.schemaUrl)),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.scopeLogs=[]),e.defaults&&(n.resource=null,n.schemaUrl=""),t.resource!=null&&t.hasOwnProperty("resource")&&(n.resource=p.opentelemetry.proto.resource.v1.Resource.toObject(t.resource,e)),t.scopeLogs&&t.scopeLogs.length){n.scopeLogs=[];for(var s=0;s<t.scopeLogs.length;++s)n.scopeLogs[s]=p.opentelemetry.proto.logs.v1.ScopeLogs.toObject(t.scopeLogs[s],e)}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&(n.schemaUrl=t.schemaUrl),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.logs.v1.ResourceLogs"},a}(),c.ScopeLogs=function(){function a(u){if(this.logRecords=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.scope=null,a.prototype.logRecords=_.emptyArray,a.prototype.schemaUrl=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=N.create()),t.scope!=null&&Object.hasOwnProperty.call(t,"scope")&&p.opentelemetry.proto.common.v1.InstrumentationScope.encode(t.scope,e.uint32(10).fork()).ldelim(),t.logRecords!=null&&t.logRecords.length)for(var n=0;n<t.logRecords.length;++n)p.opentelemetry.proto.logs.v1.LogRecord.encode(t.logRecords[n],e.uint32(18).fork()).ldelim();return t.schemaUrl!=null&&Object.hasOwnProperty.call(t,"schemaUrl")&&e.uint32(26).string(t.schemaUrl),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.logs.v1.ScopeLogs;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.scope=p.opentelemetry.proto.common.v1.InstrumentationScope.decode(t,t.uint32());break}case 2:{s.logRecords&&s.logRecords.length||(s.logRecords=[]),s.logRecords.push(p.opentelemetry.proto.logs.v1.LogRecord.decode(t,t.uint32()));break}case 3:{s.schemaUrl=t.string();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.scope!=null&&t.hasOwnProperty("scope")){var e=p.opentelemetry.proto.common.v1.InstrumentationScope.verify(t.scope);if(e)return"scope."+e}if(t.logRecords!=null&&t.hasOwnProperty("logRecords")){if(!Array.isArray(t.logRecords))return"logRecords: array expected";for(var n=0;n<t.logRecords.length;++n){var e=p.opentelemetry.proto.logs.v1.LogRecord.verify(t.logRecords[n]);if(e)return"logRecords."+e}}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&!_.isString(t.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.logs.v1.ScopeLogs)return t;var e=new p.opentelemetry.proto.logs.v1.ScopeLogs;if(t.scope!=null){if(typeof t.scope!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.scope: object expected");e.scope=p.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(t.scope)}if(t.logRecords){if(!Array.isArray(t.logRecords))throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: array expected");e.logRecords=[];for(var n=0;n<t.logRecords.length;++n){if(typeof t.logRecords[n]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: object expected");e.logRecords[n]=p.opentelemetry.proto.logs.v1.LogRecord.fromObject(t.logRecords[n])}}return t.schemaUrl!=null&&(e.schemaUrl=String(t.schemaUrl)),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.logRecords=[]),e.defaults&&(n.scope=null,n.schemaUrl=""),t.scope!=null&&t.hasOwnProperty("scope")&&(n.scope=p.opentelemetry.proto.common.v1.InstrumentationScope.toObject(t.scope,e)),t.logRecords&&t.logRecords.length){n.logRecords=[];for(var s=0;s<t.logRecords.length;++s)n.logRecords[s]=p.opentelemetry.proto.logs.v1.LogRecord.toObject(t.logRecords[s],e)}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&(n.schemaUrl=t.schemaUrl),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.logs.v1.ScopeLogs"},a}(),c.SeverityNumber=function(){var a={},u=Object.create(a);return u[a[0]="SEVERITY_NUMBER_UNSPECIFIED"]=0,u[a[1]="SEVERITY_NUMBER_TRACE"]=1,u[a[2]="SEVERITY_NUMBER_TRACE2"]=2,u[a[3]="SEVERITY_NUMBER_TRACE3"]=3,u[a[4]="SEVERITY_NUMBER_TRACE4"]=4,u[a[5]="SEVERITY_NUMBER_DEBUG"]=5,u[a[6]="SEVERITY_NUMBER_DEBUG2"]=6,u[a[7]="SEVERITY_NUMBER_DEBUG3"]=7,u[a[8]="SEVERITY_NUMBER_DEBUG4"]=8,u[a[9]="SEVERITY_NUMBER_INFO"]=9,u[a[10]="SEVERITY_NUMBER_INFO2"]=10,u[a[11]="SEVERITY_NUMBER_INFO3"]=11,u[a[12]="SEVERITY_NUMBER_INFO4"]=12,u[a[13]="SEVERITY_NUMBER_WARN"]=13,u[a[14]="SEVERITY_NUMBER_WARN2"]=14,u[a[15]="SEVERITY_NUMBER_WARN3"]=15,u[a[16]="SEVERITY_NUMBER_WARN4"]=16,u[a[17]="SEVERITY_NUMBER_ERROR"]=17,u[a[18]="SEVERITY_NUMBER_ERROR2"]=18,u[a[19]="SEVERITY_NUMBER_ERROR3"]=19,u[a[20]="SEVERITY_NUMBER_ERROR4"]=20,u[a[21]="SEVERITY_NUMBER_FATAL"]=21,u[a[22]="SEVERITY_NUMBER_FATAL2"]=22,u[a[23]="SEVERITY_NUMBER_FATAL3"]=23,u[a[24]="SEVERITY_NUMBER_FATAL4"]=24,u}(),c.LogRecordFlags=function(){var a={},u=Object.create(a);return u[a[0]="LOG_RECORD_FLAGS_DO_NOT_USE"]=0,u[a[255]="LOG_RECORD_FLAGS_TRACE_FLAGS_MASK"]=255,u}(),c.LogRecord=function(){function a(u){if(this.attributes=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.timeUnixNano=null,a.prototype.observedTimeUnixNano=null,a.prototype.severityNumber=null,a.prototype.severityText=null,a.prototype.body=null,a.prototype.attributes=_.emptyArray,a.prototype.droppedAttributesCount=null,a.prototype.flags=null,a.prototype.traceId=null,a.prototype.spanId=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=N.create()),t.timeUnixNano!=null&&Object.hasOwnProperty.call(t,"timeUnixNano")&&e.uint32(9).fixed64(t.timeUnixNano),t.severityNumber!=null&&Object.hasOwnProperty.call(t,"severityNumber")&&e.uint32(16).int32(t.severityNumber),t.severityText!=null&&Object.hasOwnProperty.call(t,"severityText")&&e.uint32(26).string(t.severityText),t.body!=null&&Object.hasOwnProperty.call(t,"body")&&p.opentelemetry.proto.common.v1.AnyValue.encode(t.body,e.uint32(42).fork()).ldelim(),t.attributes!=null&&t.attributes.length)for(var n=0;n<t.attributes.length;++n)p.opentelemetry.proto.common.v1.KeyValue.encode(t.attributes[n],e.uint32(50).fork()).ldelim();return t.droppedAttributesCount!=null&&Object.hasOwnProperty.call(t,"droppedAttributesCount")&&e.uint32(56).uint32(t.droppedAttributesCount),t.flags!=null&&Object.hasOwnProperty.call(t,"flags")&&e.uint32(69).fixed32(t.flags),t.traceId!=null&&Object.hasOwnProperty.call(t,"traceId")&&e.uint32(74).bytes(t.traceId),t.spanId!=null&&Object.hasOwnProperty.call(t,"spanId")&&e.uint32(82).bytes(t.spanId),t.observedTimeUnixNano!=null&&Object.hasOwnProperty.call(t,"observedTimeUnixNano")&&e.uint32(89).fixed64(t.observedTimeUnixNano),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.logs.v1.LogRecord;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.timeUnixNano=t.fixed64();break}case 11:{s.observedTimeUnixNano=t.fixed64();break}case 2:{s.severityNumber=t.int32();break}case 3:{s.severityText=t.string();break}case 5:{s.body=p.opentelemetry.proto.common.v1.AnyValue.decode(t,t.uint32());break}case 6:{s.attributes&&s.attributes.length||(s.attributes=[]),s.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(t,t.uint32()));break}case 7:{s.droppedAttributesCount=t.uint32();break}case 8:{s.flags=t.fixed32();break}case 9:{s.traceId=t.bytes();break}case 10:{s.spanId=t.bytes();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.timeUnixNano!=null&&t.hasOwnProperty("timeUnixNano")&&!_.isInteger(t.timeUnixNano)&&!(t.timeUnixNano&&_.isInteger(t.timeUnixNano.low)&&_.isInteger(t.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(t.observedTimeUnixNano!=null&&t.hasOwnProperty("observedTimeUnixNano")&&!_.isInteger(t.observedTimeUnixNano)&&!(t.observedTimeUnixNano&&_.isInteger(t.observedTimeUnixNano.low)&&_.isInteger(t.observedTimeUnixNano.high)))return"observedTimeUnixNano: integer|Long expected";if(t.severityNumber!=null&&t.hasOwnProperty("severityNumber"))switch(t.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(t.severityText!=null&&t.hasOwnProperty("severityText")&&!_.isString(t.severityText))return"severityText: string expected";if(t.body!=null&&t.hasOwnProperty("body")){var e=p.opentelemetry.proto.common.v1.AnyValue.verify(t.body);if(e)return"body."+e}if(t.attributes!=null&&t.hasOwnProperty("attributes")){if(!Array.isArray(t.attributes))return"attributes: array expected";for(var n=0;n<t.attributes.length;++n){var e=p.opentelemetry.proto.common.v1.KeyValue.verify(t.attributes[n]);if(e)return"attributes."+e}}return t.droppedAttributesCount!=null&&t.hasOwnProperty("droppedAttributesCount")&&!_.isInteger(t.droppedAttributesCount)?"droppedAttributesCount: integer expected":t.flags!=null&&t.hasOwnProperty("flags")&&!_.isInteger(t.flags)?"flags: integer expected":t.traceId!=null&&t.hasOwnProperty("traceId")&&!(t.traceId&&typeof t.traceId.length=="number"||_.isString(t.traceId))?"traceId: buffer expected":t.spanId!=null&&t.hasOwnProperty("spanId")&&!(t.spanId&&typeof t.spanId.length=="number"||_.isString(t.spanId))?"spanId: buffer expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.logs.v1.LogRecord)return t;var e=new p.opentelemetry.proto.logs.v1.LogRecord;switch(t.timeUnixNano!=null&&(_.Long?(e.timeUnixNano=_.Long.fromValue(t.timeUnixNano)).unsigned=!1:typeof t.timeUnixNano=="string"?e.timeUnixNano=parseInt(t.timeUnixNano,10):typeof t.timeUnixNano=="number"?e.timeUnixNano=t.timeUnixNano:typeof t.timeUnixNano=="object"&&(e.timeUnixNano=new _.LongBits(t.timeUnixNano.low>>>0,t.timeUnixNano.high>>>0).toNumber())),t.observedTimeUnixNano!=null&&(_.Long?(e.observedTimeUnixNano=_.Long.fromValue(t.observedTimeUnixNano)).unsigned=!1:typeof t.observedTimeUnixNano=="string"?e.observedTimeUnixNano=parseInt(t.observedTimeUnixNano,10):typeof t.observedTimeUnixNano=="number"?e.observedTimeUnixNano=t.observedTimeUnixNano:typeof t.observedTimeUnixNano=="object"&&(e.observedTimeUnixNano=new _.LongBits(t.observedTimeUnixNano.low>>>0,t.observedTimeUnixNano.high>>>0).toNumber())),t.severityNumber){default:if(typeof t.severityNumber=="number"){e.severityNumber=t.severityNumber;break}break;case"SEVERITY_NUMBER_UNSPECIFIED":case 0:e.severityNumber=0;break;case"SEVERITY_NUMBER_TRACE":case 1:e.severityNumber=1;break;case"SEVERITY_NUMBER_TRACE2":case 2:e.severityNumber=2;break;case"SEVERITY_NUMBER_TRACE3":case 3:e.severityNumber=3;break;case"SEVERITY_NUMBER_TRACE4":case 4:e.severityNumber=4;break;case"SEVERITY_NUMBER_DEBUG":case 5:e.severityNumber=5;break;case"SEVERITY_NUMBER_DEBUG2":case 6:e.severityNumber=6;break;case"SEVERITY_NUMBER_DEBUG3":case 7:e.severityNumber=7;break;case"SEVERITY_NUMBER_DEBUG4":case 8:e.severityNumber=8;break;case"SEVERITY_NUMBER_INFO":case 9:e.severityNumber=9;break;case"SEVERITY_NUMBER_INFO2":case 10:e.severityNumber=10;break;case"SEVERITY_NUMBER_INFO3":case 11:e.severityNumber=11;break;case"SEVERITY_NUMBER_INFO4":case 12:e.severityNumber=12;break;case"SEVERITY_NUMBER_WARN":case 13:e.severityNumber=13;break;case"SEVERITY_NUMBER_WARN2":case 14:e.severityNumber=14;break;case"SEVERITY_NUMBER_WARN3":case 15:e.severityNumber=15;break;case"SEVERITY_NUMBER_WARN4":case 16:e.severityNumber=16;break;case"SEVERITY_NUMBER_ERROR":case 17:e.severityNumber=17;break;case"SEVERITY_NUMBER_ERROR2":case 18:e.severityNumber=18;break;case"SEVERITY_NUMBER_ERROR3":case 19:e.severityNumber=19;break;case"SEVERITY_NUMBER_ERROR4":case 20:e.severityNumber=20;break;case"SEVERITY_NUMBER_FATAL":case 21:e.severityNumber=21;break;case"SEVERITY_NUMBER_FATAL2":case 22:e.severityNumber=22;break;case"SEVERITY_NUMBER_FATAL3":case 23:e.severityNumber=23;break;case"SEVERITY_NUMBER_FATAL4":case 24:e.severityNumber=24;break}if(t.severityText!=null&&(e.severityText=String(t.severityText)),t.body!=null){if(typeof t.body!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.body: object expected");e.body=p.opentelemetry.proto.common.v1.AnyValue.fromObject(t.body)}if(t.attributes){if(!Array.isArray(t.attributes))throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: array expected");e.attributes=[];for(var n=0;n<t.attributes.length;++n){if(typeof t.attributes[n]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: object expected");e.attributes[n]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(t.attributes[n])}}return t.droppedAttributesCount!=null&&(e.droppedAttributesCount=t.droppedAttributesCount>>>0),t.flags!=null&&(e.flags=t.flags>>>0),t.traceId!=null&&(typeof t.traceId=="string"?_.base64.decode(t.traceId,e.traceId=_.newBuffer(_.base64.length(t.traceId)),0):t.traceId.length>=0&&(e.traceId=t.traceId)),t.spanId!=null&&(typeof t.spanId=="string"?_.base64.decode(t.spanId,e.spanId=_.newBuffer(_.base64.length(t.spanId)),0):t.spanId.length>=0&&(e.spanId=t.spanId)),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.attributes=[]),e.defaults){if(_.Long){var s=new _.Long(0,0,!1);n.timeUnixNano=e.longs===String?s.toString():e.longs===Number?s.toNumber():s}else n.timeUnixNano=e.longs===String?"0":0;if(n.severityNumber=e.enums===String?"SEVERITY_NUMBER_UNSPECIFIED":0,n.severityText="",n.body=null,n.droppedAttributesCount=0,n.flags=0,e.bytes===String?n.traceId="":(n.traceId=[],e.bytes!==Array&&(n.traceId=_.newBuffer(n.traceId))),e.bytes===String?n.spanId="":(n.spanId=[],e.bytes!==Array&&(n.spanId=_.newBuffer(n.spanId))),_.Long){var s=new _.Long(0,0,!1);n.observedTimeUnixNano=e.longs===String?s.toString():e.longs===Number?s.toNumber():s}else n.observedTimeUnixNano=e.longs===String?"0":0}if(t.timeUnixNano!=null&&t.hasOwnProperty("timeUnixNano")&&(typeof t.timeUnixNano=="number"?n.timeUnixNano=e.longs===String?String(t.timeUnixNano):t.timeUnixNano:n.timeUnixNano=e.longs===String?_.Long.prototype.toString.call(t.timeUnixNano):e.longs===Number?new _.LongBits(t.timeUnixNano.low>>>0,t.timeUnixNano.high>>>0).toNumber():t.timeUnixNano),t.severityNumber!=null&&t.hasOwnProperty("severityNumber")&&(n.severityNumber=e.enums===String?p.opentelemetry.proto.logs.v1.SeverityNumber[t.severityNumber]===void 0?t.severityNumber:p.opentelemetry.proto.logs.v1.SeverityNumber[t.severityNumber]:t.severityNumber),t.severityText!=null&&t.hasOwnProperty("severityText")&&(n.severityText=t.severityText),t.body!=null&&t.hasOwnProperty("body")&&(n.body=p.opentelemetry.proto.common.v1.AnyValue.toObject(t.body,e)),t.attributes&&t.attributes.length){n.attributes=[];for(var l=0;l<t.attributes.length;++l)n.attributes[l]=p.opentelemetry.proto.common.v1.KeyValue.toObject(t.attributes[l],e)}return t.droppedAttributesCount!=null&&t.hasOwnProperty("droppedAttributesCount")&&(n.droppedAttributesCount=t.droppedAttributesCount),t.flags!=null&&t.hasOwnProperty("flags")&&(n.flags=t.flags),t.traceId!=null&&t.hasOwnProperty("traceId")&&(n.traceId=e.bytes===String?_.base64.encode(t.traceId,0,t.traceId.length):e.bytes===Array?Array.prototype.slice.call(t.traceId):t.traceId),t.spanId!=null&&t.hasOwnProperty("spanId")&&(n.spanId=e.bytes===String?_.base64.encode(t.spanId,0,t.spanId.length):e.bytes===Array?Array.prototype.slice.call(t.spanId):t.spanId),t.observedTimeUnixNano!=null&&t.hasOwnProperty("observedTimeUnixNano")&&(typeof t.observedTimeUnixNano=="number"?n.observedTimeUnixNano=e.longs===String?String(t.observedTimeUnixNano):t.observedTimeUnixNano:n.observedTimeUnixNano=e.longs===String?_.Long.prototype.toString.call(t.observedTimeUnixNano):e.longs===Number?new _.LongBits(t.observedTimeUnixNano.low>>>0,t.observedTimeUnixNano.high>>>0).toNumber():t.observedTimeUnixNano),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.logs.v1.LogRecord"},a}(),c}(),i}(),r}(),o}();pL.exports=p});var hi=S(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.getOtlpEncoder=ce.encodeAsString=ce.encodeAsLongBits=ce.toLongBits=ce.hrTimeToNanos=void 0;var Ni=C();function Zs(o){let r=BigInt(1e9);return BigInt(o[0])*r+BigInt(o[1])}ce.hrTimeToNanos=Zs;function EL(o){let r=Number(BigInt.asUintN(32,o)),i=Number(BigInt.asUintN(32,o>>BigInt(32)));return{low:r,high:i}}ce.toLongBits=EL;function ec(o){let r=Zs(o);return EL(r)}ce.encodeAsLongBits=ec;function TL(o){return Zs(o).toString()}ce.encodeAsString=TL;var RX=typeof BigInt<"u"?TL:Ni.hrTimeToNanoseconds;function _L(o){return o}function SL(o){if(o!==void 0)return(0,Ni.hexToBinary)(o)}var yX={encodeHrTime:ec,encodeSpanContext:Ni.hexToBinary,encodeOptionalSpanContext:SL};function PX(o){var r,i;if(o===void 0)return yX;let c=(r=o.useLongBits)!==null&&r!==void 0?r:!0,a=(i=o.useHex)!==null&&i!==void 0?i:!1;return{encodeHrTime:c?ec:RX,encodeSpanContext:a?_L:Ni.hexToBinary,encodeOptionalSpanContext:a?_L:SL}}ce.getOtlpEncoder=PX});var Ri=S(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.toAnyValue=le.toKeyValue=le.toAttributes=le.createInstrumentationScope=le.createResource=void 0;function MX(o){return{attributes:fL(o.attributes),droppedAttributesCount:0}}le.createResource=MX;function gX(o){return{name:o.name,version:o.version}}le.createInstrumentationScope=gX;function fL(o){return Object.keys(o).map(r=>tc(r,o[r]))}le.toAttributes=fL;function tc(o,r){return{key:o,value:rc(r)}}le.toKeyValue=tc;function rc(o){let r=typeof o;return r==="string"?{stringValue:o}:r==="number"?Number.isInteger(o)?{intValue:o}:{doubleValue:o}:r==="boolean"?{boolValue:o}:o instanceof Uint8Array?{bytesValue:o}:Array.isArray(o)?{arrayValue:{values:o.map(rc)}}:r==="object"&&o!=null?{kvlistValue:{values:Object.entries(o).map(([i,c])=>tc(i,c))}}:{}}le.toAnyValue=rc});var nc=S(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.toLogAttributes=ir.createExportLogsServiceRequest=void 0;var LX=hi(),yi=Ri();function IX(o,r){let i=(0,LX.getOtlpEncoder)(r);return{resourceLogs:CX(o,i)}}ir.createExportLogsServiceRequest=IX;function xX(o){let r=new Map;for(let i of o){let{resource:c,instrumentationScope:{name:a,version:u="",schemaUrl:t=""}}=i,e=r.get(c);e||(e=new Map,r.set(c,e));let n=`${a}@${u}:${t}`,s=e.get(n);s||(s=[],e.set(n,s)),s.push(i)}return r}function CX(o,r){let i=xX(o);return Array.from(i,([c,a])=>({resource:(0,yi.createResource)(c),scopeLogs:Array.from(a,([,u])=>({scope:(0,yi.createInstrumentationScope)(u[0].instrumentationScope),logRecords:u.map(t=>bX(t,r)),schemaUrl:u[0].instrumentationScope.schemaUrl})),schemaUrl:void 0}))}function bX(o,r){var i,c,a;return{timeUnixNano:r.encodeHrTime(o.hrTime),observedTimeUnixNano:r.encodeHrTime(o.hrTimeObserved),severityNumber:o.severityNumber,severityText:o.severityText,body:(0,yi.toAnyValue)(o.body),attributes:dL(o.attributes),droppedAttributesCount:o.droppedAttributesCount,flags:(i=o.spanContext)===null||i===void 0?void 0:i.traceFlags,traceId:r.encodeOptionalSpanContext((c=o.spanContext)===null||c===void 0?void 0:c.traceId),spanId:r.encodeOptionalSpanContext((a=o.spanContext)===null||a===void 0?void 0:a.spanId)}}function dL(o){return Object.keys(o).map(r=>(0,yi.toKeyValue)(r,o[r]))}ir.toLogAttributes=dL});var vL=S(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.ProtobufLogsSerializer=void 0;var AL=mi(),UX=nc(),DX=AL.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,VX=AL.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;Pi.ProtobufLogsSerializer={serializeRequest:o=>{let r=(0,UX.createExportLogsServiceRequest)(o);return VX.encode(r).finish()},deserializeResponse:o=>DX.decode(o)}});var OL=S(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.ProtobufLogsSerializer=void 0;var wX=vL();Object.defineProperty(Mi,"ProtobufLogsSerializer",{enumerable:!0,get:function(){return wX.ProtobufLogsSerializer}})});var oc=S(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.createExportMetricsServiceRequest=Pe.toMetric=Pe.toScopeMetrics=Pe.toResourceMetrics=void 0;var mL=(m(),h(y)),ar=si(),BX=hi(),kr=Ri();function hL(o,r){let i=(0,BX.getOtlpEncoder)(r);return{resource:(0,kr.createResource)(o.resource),schemaUrl:void 0,scopeMetrics:RL(o.scopeMetrics,i)}}Pe.toResourceMetrics=hL;function RL(o,r){return Array.from(o.map(i=>({scope:(0,kr.createInstrumentationScope)(i.scope),metrics:i.metrics.map(c=>yL(c,r)),schemaUrl:i.scope.schemaUrl})))}Pe.toScopeMetrics=RL;function yL(o,r){let i={name:o.descriptor.name,description:o.descriptor.description,unit:o.descriptor.unit},c=YX(o.aggregationTemporality);switch(o.dataPointType){case ar.DataPointType.SUM:i.sum={aggregationTemporality:c,isMonotonic:o.isMonotonic,dataPoints:NL(o,r)};break;case ar.DataPointType.GAUGE:i.gauge={dataPoints:NL(o,r)};break;case ar.DataPointType.HISTOGRAM:i.histogram={aggregationTemporality:c,dataPoints:HX(o,r)};break;case ar.DataPointType.EXPONENTIAL_HISTOGRAM:i.exponentialHistogram={aggregationTemporality:c,dataPoints:kX(o,r)};break}return i}Pe.toMetric=yL;function GX(o,r,i){let c={attributes:(0,kr.toAttributes)(o.attributes),startTimeUnixNano:i.encodeHrTime(o.startTime),timeUnixNano:i.encodeHrTime(o.endTime)};switch(r){case mL.ValueType.INT:c.asInt=o.value;break;case mL.ValueType.DOUBLE:c.asDouble=o.value;break}return c}function NL(o,r){return o.dataPoints.map(i=>GX(i,o.descriptor.valueType,r))}function HX(o,r){return o.dataPoints.map(i=>{let c=i.value;return{attributes:(0,kr.toAttributes)(i.attributes),bucketCounts:c.buckets.counts,explicitBounds:c.buckets.boundaries,count:c.count,sum:c.sum,min:c.min,max:c.max,startTimeUnixNano:r.encodeHrTime(i.startTime),timeUnixNano:r.encodeHrTime(i.endTime)}})}function kX(o,r){return o.dataPoints.map(i=>{let c=i.value;return{attributes:(0,kr.toAttributes)(i.attributes),count:c.count,min:c.min,max:c.max,sum:c.sum,positive:{offset:c.positive.offset,bucketCounts:c.positive.bucketCounts},negative:{offset:c.negative.offset,bucketCounts:c.negative.bucketCounts},scale:c.scale,zeroCount:c.zeroCount,startTimeUnixNano:r.encodeHrTime(i.startTime),timeUnixNano:r.encodeHrTime(i.endTime)}})}function YX(o){switch(o){case ar.AggregationTemporality.DELTA:return 1;case ar.AggregationTemporality.CUMULATIVE:return 2}}function FX(o,r){return{resourceMetrics:o.map(i=>hL(i,r))}}Pe.createExportMetricsServiceRequest=FX});var ML=S(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.ProtobufMetricsSerializer=void 0;var PL=mi(),KX=oc(),jX=PL.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,qX=PL.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;gi.ProtobufMetricsSerializer={serializeRequest:o=>{let r=(0,KX.createExportMetricsServiceRequest)([o]);return qX.encode(r).finish()},deserializeResponse:o=>jX.decode(o)}});var gL=S(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.ProtobufMetricsSerializer=void 0;var WX=ML();Object.defineProperty(Li,"ProtobufMetricsSerializer",{enumerable:!0,get:function(){return WX.ProtobufMetricsSerializer}})});var ic=S(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.createExportTraceServiceRequest=Me.toOtlpSpanEvent=Me.toOtlpLink=Me.sdkSpanToOtlpSpan=void 0;var Yr=Ri(),zX=hi();function LL(o,r){var i;let c=o.spanContext(),a=o.status;return{traceId:r.encodeSpanContext(c.traceId),spanId:r.encodeSpanContext(c.spanId),parentSpanId:r.encodeOptionalSpanContext(o.parentSpanId),traceState:(i=c.traceState)===null||i===void 0?void 0:i.serialize(),name:o.name,kind:o.kind==null?0:o.kind+1,startTimeUnixNano:r.encodeHrTime(o.startTime),endTimeUnixNano:r.encodeHrTime(o.endTime),attributes:(0,Yr.toAttributes)(o.attributes),droppedAttributesCount:o.droppedAttributesCount,events:o.events.map(u=>xL(u,r)),droppedEventsCount:o.droppedEventsCount,status:{code:a.code,message:a.message},links:o.links.map(u=>IL(u,r)),droppedLinksCount:o.droppedLinksCount}}Me.sdkSpanToOtlpSpan=LL;function IL(o,r){var i;return{attributes:o.attributes?(0,Yr.toAttributes)(o.attributes):[],spanId:r.encodeSpanContext(o.context.spanId),traceId:r.encodeSpanContext(o.context.traceId),traceState:(i=o.context.traceState)===null||i===void 0?void 0:i.serialize(),droppedAttributesCount:o.droppedAttributesCount||0}}Me.toOtlpLink=IL;function xL(o,r){return{attributes:o.attributes?(0,Yr.toAttributes)(o.attributes):[],name:o.name,timeUnixNano:r.encodeHrTime(o.time),droppedAttributesCount:o.droppedAttributesCount||0}}Me.toOtlpSpanEvent=xL;function JX(o,r){let i=(0,zX.getOtlpEncoder)(r);return{resourceSpans:$X(o,i)}}Me.createExportTraceServiceRequest=JX;function XX(o){let r=new Map;for(let i of o){let c=r.get(i.resource);c||(c=new Map,r.set(i.resource,c));let a=`${i.instrumentationLibrary.name}@${i.instrumentationLibrary.version||""}:${i.instrumentationLibrary.schemaUrl||""}`,u=c.get(a);u||(u=[],c.set(a,u)),u.push(i)}return r}function $X(o,r){let i=XX(o),c=[],a=i.entries(),u=a.next();for(;!u.done;){let[t,e]=u.value,n=[],s=e.values(),l=s.next();for(;!l.done;){let O=l.value;if(O.length>0){let x=O.map(pe=>LL(pe,r));n.push({scope:(0,Yr.createInstrumentationScope)(O[0].instrumentationLibrary),spans:x,schemaUrl:O[0].instrumentationLibrary.schemaUrl})}l=s.next()}let E={resource:(0,Yr.createResource)(t),scopeSpans:n,schemaUrl:void 0};c.push(E),u=a.next()}return c}});var bL=S(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.ProtobufTraceSerializer=void 0;var CL=mi(),QX=ic(),ZX=CL.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,e5=CL.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;Ii.ProtobufTraceSerializer={serializeRequest:o=>{let r=(0,QX.createExportTraceServiceRequest)(o);return e5.encode(r).finish()},deserializeResponse:o=>ZX.decode(o)}});var UL=S(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.ProtobufTraceSerializer=void 0;var t5=bL();Object.defineProperty(xi,"ProtobufTraceSerializer",{enumerable:!0,get:function(){return t5.ProtobufTraceSerializer}})});var DL=S(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});Ci.JsonLogsSerializer=void 0;var r5=nc();Ci.JsonLogsSerializer={serializeRequest:o=>{let r=(0,r5.createExportLogsServiceRequest)(o,{useHex:!0,useLongBits:!1});return new TextEncoder().encode(JSON.stringify(r))},deserializeResponse:o=>{let r=new TextDecoder;return JSON.parse(r.decode(o))}}});var VL=S(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.JsonLogsSerializer=void 0;var n5=DL();Object.defineProperty(bi,"JsonLogsSerializer",{enumerable:!0,get:function(){return n5.JsonLogsSerializer}})});var wL=S(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.JsonMetricsSerializer=void 0;var o5=oc();Ui.JsonMetricsSerializer={serializeRequest:o=>{let r=(0,o5.createExportMetricsServiceRequest)([o],{useLongBits:!1});return new TextEncoder().encode(JSON.stringify(r))},deserializeResponse:o=>{let r=new TextDecoder;return JSON.parse(r.decode(o))}}});var BL=S(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.JsonMetricsSerializer=void 0;var i5=wL();Object.defineProperty(Di,"JsonMetricsSerializer",{enumerable:!0,get:function(){return i5.JsonMetricsSerializer}})});var GL=S(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.JsonTraceSerializer=void 0;var a5=ic();Vi.JsonTraceSerializer={serializeRequest:o=>{let r=(0,a5.createExportTraceServiceRequest)(o,{useHex:!0,useLongBits:!1});return new TextEncoder().encode(JSON.stringify(r))},deserializeResponse:o=>{let r=new TextDecoder;return JSON.parse(r.decode(o))}}});var HL=S(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.JsonTraceSerializer=void 0;var u5=GL();Object.defineProperty(wi,"JsonTraceSerializer",{enumerable:!0,get:function(){return u5.JsonTraceSerializer}})});var ac=S(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.JsonTraceSerializer=re.JsonMetricsSerializer=re.JsonLogsSerializer=re.ProtobufTraceSerializer=re.ProtobufMetricsSerializer=re.ProtobufLogsSerializer=void 0;var s5=OL();Object.defineProperty(re,"ProtobufLogsSerializer",{enumerable:!0,get:function(){return s5.ProtobufLogsSerializer}});var c5=gL();Object.defineProperty(re,"ProtobufMetricsSerializer",{enumerable:!0,get:function(){return c5.ProtobufMetricsSerializer}});var l5=UL();Object.defineProperty(re,"ProtobufTraceSerializer",{enumerable:!0,get:function(){return l5.ProtobufTraceSerializer}});var p5=VL();Object.defineProperty(re,"JsonLogsSerializer",{enumerable:!0,get:function(){return p5.JsonLogsSerializer}});var _5=BL();Object.defineProperty(re,"JsonMetricsSerializer",{enumerable:!0,get:function(){return _5.JsonMetricsSerializer}});var E5=HL();Object.defineProperty(re,"JsonTraceSerializer",{enumerable:!0,get:function(){return E5.JsonTraceSerializer}})});function kL(o){var r=[429,502,503,504];return r.includes(o)}function YL(o){if(o!=null){var r=Number.parseInt(o,10);if(Number.isInteger(r))return r>0?r*1e3:-1;var i=new Date(o).getTime()-Date.now();return i>=0?i:0}}var FL=d(()=>{});var WL={};ft(WL,{compressAndSend:()=>qL,createHttpAgent:()=>f5,sendWithHttp:()=>T5});function T5(o,r,i,c,a){var u=new URL(o.url),t=Number(process.versions.node.split(".")[0]),e={hostname:u.hostname,port:u.port,path:u.pathname,method:"POST",headers:uc({},o.headers()),agent:r},n=u.protocol==="http:"?Bi.request:Gi.request,s=n(e,function(E){var O=[];E.on("data",function(x){return O.push(x)}),E.on("end",function(){if(E.statusCode&&E.statusCode<299)c({status:"success",data:Buffer.concat(O)});else if(E.statusCode&&kL(E.statusCode))c({status:"retryable",retryInMillis:YL(E.headers["retry-after"])});else{var x=new ct(E.statusMessage,E.statusCode,Buffer.concat(O).toString());c({status:"failure",error:x})}})});s.setTimeout(a,function(){s.destroy(),c({status:"failure",error:new Error("Request Timeout")})}),s.on("error",function(E){c({status:"failure",error:E})});var l=t>=14?"close":"abort";s.on(l,function(){c({status:"failure",error:new Error("Request timed out")})}),qL(s,o.compression,i,function(E){c({status:"failure",error:E})})}function qL(o,r,i,c){var a=S5(i);r==="gzip"&&(o.setHeader("Content-Encoding","gzip"),a=a.on("error",c).pipe(KL.createGzip()).on("error",c)),a.pipe(o).on("error",c)}function S5(o){var r=new jL.Readable;return r.push(o),r.push(null),r}function f5(o,r){var i=new URL(o),c=i.protocol==="http:"?Bi.Agent:Gi.Agent;return new c(r)}var Bi,Gi,KL,jL,uc,zL=d(()=>{Bi=Ae(require("http")),Gi=Ae(require("https")),KL=Ae(require("zlib")),jL=require("stream");FL();ci();uc=function(){return uc=Object.assign||function(o){for(var r,i=1,c=arguments.length;i<c;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(o[a]=r[a])}return o},uc.apply(this,arguments)}});function JL(o){return new v5(o)}var d5,A5,v5,XL=d(()=>{d5=function(o,r,i,c){function a(u){return u instanceof i?u:new i(function(t){t(u)})}return new(i||(i=Promise))(function(u,t){function e(l){try{s(c.next(l))}catch(E){t(E)}}function n(l){try{s(c.throw(l))}catch(E){t(E)}}function s(l){l.done?u(l.value):a(l.value).then(e,n)}s((c=c.apply(o,r||[])).next())})},A5=function(o,r){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},c,a,u,t;return t={next:e(0),throw:e(1),return:e(2)},typeof Symbol=="function"&&(t[Symbol.iterator]=function(){return this}),t;function e(s){return function(l){return n([s,l])}}function n(s){if(c)throw new TypeError("Generator is already executing.");for(;i;)try{if(c=1,a&&(u=s[0]&2?a.return:s[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,s[1])).done)return u;switch(a=0,u&&(s=[s[0]&2,u.value]),s[0]){case 0:case 1:u=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,a=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!u||s[1]>u[0]&&s[1]<u[3])){i.label=s[1];break}if(s[0]===6&&i.label<u[1]){i.label=u[1],u=s;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(s);break}u[2]&&i.ops.pop(),i.trys.pop();continue}s=r.call(o,i)}catch(l){s=[6,l],a=0}finally{c=u=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},v5=function(){function o(r){this._parameters=r,this._send=null,this._agent=null}return o.prototype.send=function(r,i){return d5(this,void 0,void 0,function(){var c,a,u,t=this;return A5(this,function(e){return this._send==null&&(c=(zL(),h(WL)),a=c.sendWithHttp,u=c.createHttpAgent,this._agent=u(this._parameters.url,this._parameters.agentOptions),this._send=a),[2,new Promise(function(n){var s;(s=t._send)===null||s===void 0||s.call(t,t._parameters,t._agent,r,function(l){n(l)},i)})]})})},o.prototype.shutdown=function(){},o}()});function P5(){return Math.random()*(2*$L)-$L}function QL(o){return new M5(o.transport)}var O5,m5,N5,h5,R5,y5,$L,M5,ZL=d(()=>{O5=function(o,r,i,c){function a(u){return u instanceof i?u:new i(function(t){t(u)})}return new(i||(i=Promise))(function(u,t){function e(l){try{s(c.next(l))}catch(E){t(E)}}function n(l){try{s(c.throw(l))}catch(E){t(E)}}function s(l){l.done?u(l.value):a(l.value).then(e,n)}s((c=c.apply(o,r||[])).next())})},m5=function(o,r){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},c,a,u,t;return t={next:e(0),throw:e(1),return:e(2)},typeof Symbol=="function"&&(t[Symbol.iterator]=function(){return this}),t;function e(s){return function(l){return n([s,l])}}function n(s){if(c)throw new TypeError("Generator is already executing.");for(;i;)try{if(c=1,a&&(u=s[0]&2?a.return:s[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,s[1])).done)return u;switch(a=0,u&&(s=[s[0]&2,u.value]),s[0]){case 0:case 1:u=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,a=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!u||s[1]>u[0]&&s[1]<u[3])){i.label=s[1];break}if(s[0]===6&&i.label<u[1]){i.label=u[1],u=s;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(s);break}u[2]&&i.ops.pop(),i.trys.pop();continue}s=r.call(o,i)}catch(l){s=[6,l],a=0}finally{c=u=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},N5=5,h5=1e3,R5=5e3,y5=1.5,$L=.2;M5=function(){function o(r){this._transport=r}return o.prototype.retry=function(r,i,c){var a=this;return new Promise(function(u,t){setTimeout(function(){a._transport.send(r,i).then(u,t)},c)})},o.prototype.send=function(r,i){var c;return O5(this,void 0,void 0,function(){var a,u,t,e,n,s,l;return m5(this,function(E){switch(E.label){case 0:return a=Date.now()+i,[4,this._transport.send(r,i)];case 1:u=E.sent(),t=N5,e=h5,E.label=2;case 2:return u.status==="retryable"&&t>0?(t--,n=Math.max(Math.min(e,R5)+P5(),0),e=e*y5,s=(c=u.retryInMillis)!==null&&c!==void 0?c:n,l=a-Date.now(),s>l?[2,u]:[4,this.retry(r,l,s)]):[3,4];case 3:return u=E.sent(),[3,2];case 4:return[2,u]}})})},o.prototype.shutdown=function(){return this._transport.shutdown()},o}()});function eI(o,r){return Si({transport:QL({transport:JL(o)}),serializer:r,promiseHandler:Ti(o)},{timeout:o.timeoutMillis})}var tI=d(()=>{ws();XL();Vs();ZL()});function rI(o){var r,i=(r=__fromEnv[o])===null||r===void 0?void 0:r.trim();if(i!=null&&i!==""){var c=Number(i);if(!Number.isNaN(c)&&Number.isFinite(c)&&c>0)return c;H.warn("Configuration: "+o+" is invalid, expected number greater than 0 (actual: "+i+")")}}function g5(o){var r=rI("OTEL_EXPORTER_OTLP_"+o+"_TIMEOUT"),i=rI("OTEL_EXPORTER_OTLP_TIMEOUT");return r??i}function nI(o){var r,i=(r=__fromEnv[o])===null||r===void 0?void 0:r.trim();if(i!==""){if(i==null||i==="none"||i==="gzip")return i;H.warn("Configuration: "+o+" is invalid, expected 'none' or 'gzip' (actual: '"+i+"')")}}function L5(o){var r=nI("OTEL_EXPORTER_OTLP_"+o+"_COMPRESSION"),i=nI("OTEL_EXPORTER_OTLP_COMPRESSION");return r??i}function Hi(o){return{timeoutMillis:g5(o),compression:L5(o)}}var sc=d(()=>{m()});function oI(o){return function(){var r,i={};return Object.entries((r=o?.())!==null&&r!==void 0?r:{}).forEach(function(c){var a=I5(c,2),u=a[0],t=a[1];typeof t<"u"?i[u]=String(t):H.warn('Header "'+u+'" has invalid value ('+t+") and will be ignored")}),i}}var I5,iI=d(()=>{m();I5=function(o,r){var i=typeof Symbol=="function"&&o[Symbol.iterator];if(!i)return o;var c=i.call(o),a,u=[],t;try{for(;(r===void 0||r-- >0)&&!(a=c.next()).done;)u.push(a.value)}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=c.return)&&i.call(c)}finally{if(t)throw t.error}}return u}});function x5(o,r,i){var c=_t({},i()),a={};return function(){return r!=null&&Object.assign(a,r()),o!=null&&Object.assign(a,o()),Object.assign(a,c)}}function C5(o){if(o!=null)try{return new URL(o),o}catch{throw new Error("Configuration: Could not parse user-provided export URL: '"+o+"'")}}function aI(o,r,i){var c,a,u,t;return _t(_t({},pi(o,r,i)),{headers:x5(oI(o.headers),r.headers,i.headers),url:(a=(c=C5(o.url))!==null&&c!==void 0?c:r.url)!==null&&a!==void 0?a:i.url,agentOptions:(t=(u=o.agentOptions)!==null&&u!==void 0?u:r.agentOptions)!==null&&t!==void 0?t:i.agentOptions})}function uI(o,r){return _t(_t({},_i()),{headers:function(){return o},url:"http://localhost:4318/"+r,agentOptions:{keepAlive:!0}})}var _t,sI=d(()=>{wr();iI();_t=function(){return _t=Object.assign||function(o){for(var r,i=1,c=arguments.length;i<c;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(o[a]=r[a])}return o},_t.apply(this,arguments)}});function b5(o){var r,i,c=(r=__fromEnv["OTEL_EXPORTER_OTLP_"+o+"_HEADERS"])===null||r===void 0?void 0:r.trim(),a=(i=__fromEnv.OTEL_EXPORTER_OTLP_HEADERS)===null||i===void 0?void 0:i.trim(),u=Fr.baggageUtils.parseKeyPairsIntoRecord(c),t=Fr.baggageUtils.parseKeyPairsIntoRecord(a);if(!(Object.keys(u).length===0&&Object.keys(t).length===0))return Object.assign({},Fr.baggageUtils.parseKeyPairsIntoRecord(a),Fr.baggageUtils.parseKeyPairsIntoRecord(c))}function U5(o){try{var r=new URL(o);return r.toString()}catch{H.warn("Configuration: Could not parse environment-provided export URL: '"+o+"', falling back to undefined");return}}function D5(o,r){try{new URL(o)}catch{H.warn("Configuration: Could not parse environment-provided export URL: '"+o+"', falling back to undefined");return}o.endsWith("/")||(o=o+"/"),o+=r;try{new URL(o)}catch{H.warn("Configuration: Provided URL appended with '"+r+"' is not a valid URL, using 'undefined' instead of '"+o+"'");return}return o}function V5(o){var r,i=(r=__fromEnv.OTEL_EXPORTER_OTLP_ENDPOINT)===null||r===void 0?void 0:r.trim();if(!(i==null||i===""))return D5(i,o)}function w5(o){var r,i=(r=__fromEnv["OTEL_EXPORTER_OTLP_"+o+"_ENDPOINT"])===null||r===void 0?void 0:r.trim();if(!(i==null||i===""))return U5(i)}function cI(o,r){var i;return ki(ki({},Hi(o)),{url:(i=w5(o))!==null&&i!==void 0?i:V5(r),headers:li(b5(o))})}var Fr,ki,lI=d(()=>{Fr=Ae(C());m();sc();wr();ki=function(){return ki=Object.assign||function(o){for(var r,i=1,c=arguments.length;i<c;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(o[a]=r[a])}return o},ki.apply(this,arguments)}});function B5(o){return o?.keepAlive!=null&&(o.httpAgentOptions!=null?o.httpAgentOptions.keepAlive==null&&(o.httpAgentOptions.keepAlive=o.keepAlive):o.httpAgentOptions={keepAlive:o.keepAlive}),o.httpAgentOptions}function pI(o,r,i,c){return o.metadata&&H.warn("Metadata cannot be set when using http"),aI({url:o.url,headers:li(o.headers),concurrencyLimit:o.concurrencyLimit,timeoutMillis:o.timeoutMillis,compression:o.compression,agentOptions:B5(o)},cI(r,i),uI(c,i))}var _I=d(()=>{sI();lI();m();wr()});var cc={};ft(cc,{convertLegacyHttpOptions:()=>pI,createOtlpHttpExportDelegate:()=>eI,getSharedConfigurationFromEnvironment:()=>Hi});var lc=d(()=>{tI();sc();_I()});var TI=S(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.OTLPTraceExporter=void 0;var G5=(Gs(),h(Bs)),H5=_g(),k5=ac(),EI=(lc(),h(cc)),pc=class extends G5.OTLPExporterBase{constructor(r={}){super((0,EI.createOtlpHttpExportDelegate)((0,EI.convertLegacyHttpOptions)(r,"TRACES","v1/traces",{"User-Agent":`OTel-OTLP-Exporter-JavaScript/${H5.VERSION}`,"Content-Type":"application/json"}),k5.JsonTraceSerializer))}};Yi.OTLPTraceExporter=pc});var SI=S(Et=>{"use strict";var Y5=Et&&Et.__createBinding||(Object.create?function(o,r,i,c){c===void 0&&(c=i),Object.defineProperty(o,c,{enumerable:!0,get:function(){return r[i]}})}:function(o,r,i,c){c===void 0&&(c=i),o[c]=r[i]}),F5=Et&&Et.__exportStar||function(o,r){for(var i in o)i!=="default"&&!Object.prototype.hasOwnProperty.call(r,i)&&Y5(r,o,i)};Object.defineProperty(Et,"__esModule",{value:!0});F5(TI(),Et)});var fI=S(Tt=>{"use strict";var K5=Tt&&Tt.__createBinding||(Object.create?function(o,r,i,c){c===void 0&&(c=i),Object.defineProperty(o,c,{enumerable:!0,get:function(){return r[i]}})}:function(o,r,i,c){c===void 0&&(c=i),o[c]=r[i]}),j5=Tt&&Tt.__exportStar||function(o,r){for(var i in o)i!=="default"&&!Object.prototype.hasOwnProperty.call(r,i)&&K5(r,o,i)};Object.defineProperty(Tt,"__esModule",{value:!0});j5(SI(),Tt)});var dI=S(St=>{"use strict";var q5=St&&St.__createBinding||(Object.create?function(o,r,i,c){c===void 0&&(c=i),Object.defineProperty(o,c,{enumerable:!0,get:function(){return r[i]}})}:function(o,r,i,c){c===void 0&&(c=i),o[c]=r[i]}),W5=St&&St.__exportStar||function(o,r){for(var i in o)i!=="default"&&!Object.prototype.hasOwnProperty.call(r,i)&&q5(r,o,i)};Object.defineProperty(St,"__esModule",{value:!0});W5(fI(),St)});var _c=S(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.AggregationTemporalityPreference=void 0;var z5;(function(o){o[o.DELTA=0]="DELTA",o[o.CUMULATIVE=1]="CUMULATIVE",o[o.LOWMEMORY=2]="LOWMEMORY"})(z5=Kr.AggregationTemporalityPreference||(Kr.AggregationTemporalityPreference={}))});var Tc=S(W=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});W.OTLPMetricExporterBase=W.LowMemoryTemporalitySelector=W.DeltaTemporalitySelector=W.CumulativeTemporalitySelector=void 0;var J5=C(),G=si(),AI=_c(),X5=(Gs(),h(Bs)),$5=(m(),h(y)),Q5=()=>G.AggregationTemporality.CUMULATIVE;W.CumulativeTemporalitySelector=Q5;var Z5=o=>{switch(o){case G.InstrumentType.COUNTER:case G.InstrumentType.OBSERVABLE_COUNTER:case G.InstrumentType.GAUGE:case G.InstrumentType.HISTOGRAM:case G.InstrumentType.OBSERVABLE_GAUGE:return G.AggregationTemporality.DELTA;case G.InstrumentType.UP_DOWN_COUNTER:case G.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER:return G.AggregationTemporality.CUMULATIVE}};W.DeltaTemporalitySelector=Z5;var e$=o=>{switch(o){case G.InstrumentType.COUNTER:case G.InstrumentType.HISTOGRAM:return G.AggregationTemporality.DELTA;case G.InstrumentType.GAUGE:case G.InstrumentType.UP_DOWN_COUNTER:case G.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER:case G.InstrumentType.OBSERVABLE_COUNTER:case G.InstrumentType.OBSERVABLE_GAUGE:return G.AggregationTemporality.CUMULATIVE}};W.LowMemoryTemporalitySelector=e$;function t$(){let o=(0,J5.getEnv)(),r=o.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE.trim().toLowerCase();return r==="cumulative"?W.CumulativeTemporalitySelector:r==="delta"?W.DeltaTemporalitySelector:r==="lowmemory"?W.LowMemoryTemporalitySelector:($5.diag.warn(`OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE is set to '${o.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE}', but only 'cumulative' and 'delta' are allowed. Using default ('cumulative') instead.`),W.CumulativeTemporalitySelector)}function r$(o){return o!=null?o===AI.AggregationTemporalityPreference.DELTA?W.DeltaTemporalitySelector:o===AI.AggregationTemporalityPreference.LOWMEMORY?W.LowMemoryTemporalitySelector:W.CumulativeTemporalitySelector:t$()}function n$(o){return o?.aggregationPreference?o.aggregationPreference:r=>G.Aggregation.Default()}var Ec=class extends X5.OTLPExporterBase{constructor(r,i){super(r),this._aggregationSelector=n$(i),this._aggregationTemporalitySelector=r$(i?.temporalityPreference)}selectAggregation(r){return this._aggregationSelector(r)}selectAggregationTemporality(r){return this._aggregationTemporalitySelector(r)}};W.OTLPMetricExporterBase=Ec});var vI=S(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});Fi.VERSION=void 0;Fi.VERSION="0.57.2"});var mI=S(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.OTLPMetricExporter=void 0;var o$=Tc(),i$=ac(),a$=vI(),OI=(lc(),h(cc)),u$={"User-Agent":`OTel-OTLP-Exporter-JavaScript/${a$.VERSION}`},Sc=class extends o$.OTLPMetricExporterBase{constructor(r){super((0,OI.createOtlpHttpExportDelegate)((0,OI.convertLegacyHttpOptions)(r??{},"METRICS","v1/metrics",Object.assign(Object.assign({},u$),{"Content-Type":"application/json"})),i$.JsonMetricsSerializer),r)}};Ki.OTLPMetricExporter=Sc});var NI=S(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.OTLPMetricExporter=void 0;var s$=mI();Object.defineProperty(ji,"OTLPMetricExporter",{enumerable:!0,get:function(){return s$.OTLPMetricExporter}})});var hI=S(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.OTLPMetricExporter=void 0;var c$=NI();Object.defineProperty(qi,"OTLPMetricExporter",{enumerable:!0,get:function(){return c$.OTLPMetricExporter}})});var RI=S(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.OTLPMetricExporterBase=ne.LowMemoryTemporalitySelector=ne.DeltaTemporalitySelector=ne.CumulativeTemporalitySelector=ne.AggregationTemporalityPreference=ne.OTLPMetricExporter=void 0;var l$=hI();Object.defineProperty(ne,"OTLPMetricExporter",{enumerable:!0,get:function(){return l$.OTLPMetricExporter}});var p$=_c();Object.defineProperty(ne,"AggregationTemporalityPreference",{enumerable:!0,get:function(){return p$.AggregationTemporalityPreference}});var Wi=Tc();Object.defineProperty(ne,"CumulativeTemporalitySelector",{enumerable:!0,get:function(){return Wi.CumulativeTemporalitySelector}});Object.defineProperty(ne,"DeltaTemporalitySelector",{enumerable:!0,get:function(){return Wi.DeltaTemporalitySelector}});Object.defineProperty(ne,"LowMemoryTemporalitySelector",{enumerable:!0,get:function(){return Wi.LowMemoryTemporalitySelector}});Object.defineProperty(ne,"OTLPMetricExporterBase",{enumerable:!0,get:function(){return Wi.OTLPMetricExporterBase}})});var Xr={REQUEST:"openclaw.request",AGENT_TURN:"openclaw.agent.turn",TOOL_PREFIX:"tool.",MESSAGE_RECEIVED:"openclaw.message.received"},ve={LLM_REQUESTS:"openclaw.llm.requests",LLM_TOKENS_INPUT:"openclaw.llm.tokens.input",LLM_TOKENS_OUTPUT:"openclaw.llm.tokens.output",LLM_TOKENS_CACHE_READ:"openclaw.llm.tokens.cache_read",LLM_DURATION:"openclaw.llm.duration",TOOL_CALLS:"openclaw.tool.calls",TOOL_ERRORS:"openclaw.tool.errors",TOOL_DURATION:"openclaw.tool.duration",MESSAGES_RECEIVED:"openclaw.messages.received",ESTIMATED_COST_USD:"openclaw.estimated_cost.usd"},w={SESSION_KEY:"openclaw.session.key",CHANNEL:"openclaw.message.channel",MODEL:"gen_ai.request.model",PROVIDER:"gen_ai.system",INPUT_TOKENS:"gen_ai.usage.input_tokens",OUTPUT_TOKENS:"gen_ai.usage.output_tokens",CACHE_READ_TOKENS:"gen_ai.usage.cache_read.input_tokens",CACHE_WRITE_TOKENS:"gen_ai.usage.cache_write.input_tokens",TOOL_NAME:"tool.name",TOOL_SUCCESS:"tool.success",AGENT_NAME:"openclaw.agent.name"},$i={API_KEY:"MANIFEST_API_KEY",ENDPOINT:"MANIFEST_ENDPOINT"},dt="mnfst_",$r={ENDPOINT:"https://app.manifest.build/otlp",SERVICE_NAME:"openclaw-gateway",METRICS_INTERVAL_MS:3e4};function Oc(o){let r=o&&typeof o=="object"&&!Array.isArray(o)?o:{};r.config&&typeof r.config=="object"&&!Array.isArray(r.config)&&(r=r.config);let i=typeof r.apiKey=="string"&&r.apiKey.length>0?r.apiKey:__fromEnv[$i.API_KEY]||"",c=__fromEnv[$i.ENDPOINT],a=typeof r.endpoint=="string"&&r.endpoint.length>0?r.endpoint:c&&c.length>0?c:$r.ENDPOINT,u=typeof r.serviceName=="string"&&r.serviceName.length>0?r.serviceName:$r.SERVICE_NAME,t=typeof r.captureContent=="boolean"?r.captureContent:!1,e=typeof r.metricsIntervalMs=="number"&&r.metricsIntervalMs>=5e3?r.metricsIntervalMs:$r.METRICS_INTERVAL_MS;return{apiKey:i,endpoint:a,serviceName:u,captureContent:t,metricsIntervalMs:e}}function mc(o){return o.apiKey?o.apiKey.startsWith(dt)?o.endpoint.startsWith("http")?null:`Invalid endpoint URL '${o.endpoint}'. Must start with http:// or https://. Fix it via:
16
- openclaw config set plugins.entries.manifest.config.endpoint https://app.manifest.build/otlp`:`Invalid apiKey format. Keys must start with '${dt}'. Fix it via:
17
- openclaw config set manifest.apiKey ${dt}YOUR_KEY`:`Missing apiKey. Set it via:
18
- openclaw config set manifest.apiKey ${dt}YOUR_KEY
19
- or export MANIFEST_API_KEY=${dt}YOUR_KEY`}var zi=Ae(XP()),Ji=Ae(si()),yI=Ae(dI()),PI=Ae(RI()),MI=Ae(lo());m();var jr=null,qr=null,fc=null,dc=null;function gI(o,r){let i=new MI.Resource({"service.name":o.serviceName,"service.version":"5.1.5","manifest.plugin":"true"}),c={Authorization:`Bearer ${o.apiKey}`},a=new yI.OTLPTraceExporter({url:`${o.endpoint}/v1/traces`,headers:c});jr=new zi.BasicTracerProvider({resource:i,spanProcessors:[new zi.BatchSpanProcessor(a,{scheduledDelayMillis:5e3,maxQueueSize:2048,maxExportBatchSize:512})]}),jr.register(),r.info(`[manifest] Trace exporter -> ${o.endpoint}/v1/traces`);let u=new PI.OTLPMetricExporter({url:`${o.endpoint}/v1/metrics`,headers:c});return qr=new Ji.MeterProvider({resource:i,readers:[new Ji.PeriodicExportingMetricReader({exporter:u,exportIntervalMillis:o.metricsIntervalMs})]}),Nt.setGlobalMeterProvider(qr),r.info(`[manifest] Metrics exporter -> ${o.endpoint}/v1/metrics (interval=${o.metricsIntervalMs}ms)`),fc=we.getTracer("manifest-plugin","5.1.5"),dc=Nt.getMeter("manifest-plugin","5.1.5"),{tracer:fc,meter:dc}}async function LI(o){o.info("[manifest] Shutting down telemetry..."),jr&&(await jr.shutdown(),jr=null),qr&&(await qr.shutdown(),qr=null),fc=null,dc=null,o.info("[manifest] Telemetry shut down")}m();var ur=new Map,II,xI,CI,bI,_$,UI,DI,VI,wI;function BI(o){II=o.createCounter(ve.LLM_REQUESTS,{description:"Total LLM inference requests"}),xI=o.createCounter(ve.LLM_TOKENS_INPUT,{description:"Total input tokens sent to LLM"}),CI=o.createCounter(ve.LLM_TOKENS_OUTPUT,{description:"Total output tokens from LLM"}),bI=o.createCounter(ve.LLM_TOKENS_CACHE_READ,{description:"Total cache-read tokens"}),_$=o.createHistogram(ve.LLM_DURATION,{description:"LLM request duration in ms",unit:"ms"}),UI=o.createCounter(ve.TOOL_CALLS,{description:"Total tool invocations"}),DI=o.createCounter(ve.TOOL_ERRORS,{description:"Total tool errors"}),VI=o.createHistogram(ve.TOOL_DURATION,{description:"Tool execution duration in ms",unit:"ms"}),wI=o.createCounter(ve.MESSAGES_RECEIVED,{description:"Total messages received from users"})}function GI(o,r,i,c){o.on("message_received",a=>{let u=a.sessionKey||a.session?.key||`agent:${a.agent||"main"}:main`,t=a.channel||"unknown",e=r.startSpan(Xr.REQUEST,{kind:De.SERVER,attributes:{[w.SESSION_KEY]:u,[w.CHANNEL]:t}});ur.set(u,{root:e}),wI.add(1,{[w.CHANNEL]:t}),c.debug(`[manifest] Root span started for session=${u}`)}),o.on("before_agent_start",a=>{let u=a.sessionKey||a.session?.key||`agent:${a.agent||"main"}:main`,t=a.agent||"main",e=ur.get(u),n=e?.root?we.setSpan(Ve.active(),e.root):Ve.active(),s=r.startSpan(Xr.AGENT_TURN,{kind:De.INTERNAL,attributes:{[w.AGENT_NAME]:t,[w.SESSION_KEY]:u}},n);e?e.turn=s:ur.set(u,{root:s,turn:s}),c.debug(`[manifest] Agent turn started: agent=${t}, session=${u}`)}),o.on("tool_result_persist",a=>{let u=a.toolName||a.tool||"unknown",t=a.durationMs||0,e=a.error==null,n=a.sessionKey||"unknown",s=ur.get(n),l=s?.turn?we.setSpan(Ve.active(),s.turn):Ve.active(),E=r.startSpan(`${Xr.TOOL_PREFIX}${u}`,{kind:De.INTERNAL,attributes:{[w.TOOL_NAME]:u,[w.TOOL_SUCCESS]:String(e),[w.SESSION_KEY]:n}},l);e||(E.setStatus({code:mt.ERROR,message:a.error?.message||"Tool execution failed"}),DI.add(1,{[w.TOOL_NAME]:u})),E.end(),UI.add(1,{[w.TOOL_NAME]:u}),VI.record(t,{[w.TOOL_NAME]:u})}),o.on("agent_end",a=>{let u=a.sessionKey||a.session?.key||`agent:${a.agent||"main"}:main`,e=[...a.messages||[]].reverse().find(Wr=>Wr.role==="assistant"&&Wr.usage),n=e?.model||a.model||"unknown",s=e?.provider||a.provider||"unknown",l=e?.usage||a.usage||{},E=l.input||l.inputTokens||0,O=l.output||l.outputTokens||0,x=l.cacheRead||l.cacheReadTokens||0,pe=l.cacheWrite||l.cacheWriteTokens||0,de=ur.get(u);de?.turn&&(de.turn.setAttributes({[w.MODEL]:n,[w.PROVIDER]:s,[w.INPUT_TOKENS]:E,[w.OUTPUT_TOKENS]:O,[w.CACHE_READ_TOKENS]:x,[w.CACHE_WRITE_TOKENS]:pe}),de.turn.end()),de?.root&&de.root!==de.turn&&de.root.end(),ur.delete(u);let ge={[w.MODEL]:n,[w.PROVIDER]:s};II.add(1,ge),xI.add(E,ge),CI.add(O,ge),x>0&&bI.add(x,ge),c.debug(`[manifest] agent_end tokens: in=${E}, out=${O}, cache=${x}`),c.debug(`[manifest] Trace completed for session=${u}`)}),c.info("[manifest] All hooks registered")}async function Xi(o){let r=o.endpoint.replace(/\/otlp(\/v1)?\/?$/,""),i={endpointReachable:!1,authValid:!1,agentName:null,error:null};try{let c=await fetch(`${r}/api/v1/health`,{signal:AbortSignal.timeout(5e3)});if(!c.ok)return i.error=`Health endpoint returned ${c.status}`,i;i.endpointReachable=!0}catch(c){let a=c instanceof Error?c.message:String(c);return i.error=`Cannot reach endpoint: ${a}`,i}try{let c=await fetch(`${r}/api/v1/agent/usage?range=24h`,{headers:{Authorization:`Bearer ${o.apiKey}`},signal:AbortSignal.timeout(5e3)});if(c.status===401||c.status===403)return i.error="API key rejected \u2014 check your mnfst_ key is correct",i;if(!c.ok)return i.error=`Usage endpoint returned ${c.status}`,i;i.authValid=!0;let a=await c.json();a&&typeof a.agentName=="string"&&(i.agentName=a.agentName)}catch(c){let a=c instanceof Error?c.message:String(c);return i.error=`Auth check failed: ${a}`,i}return i}var HI={today:"24h",week:"7d",month:"30d"};async function kI(o,r,i,c){let a=`${o}${r}`;try{let u=await fetch(a,{headers:{Authorization:`Bearer ${i}`}});return u.ok?{result:await u.json()}:{error:`API returned ${u.status}`}}catch(u){let t=u instanceof Error?u.message:String(u);return c.error(`[manifest] API call failed: ${t}`),{error:t}}}function YI(o,r,i){let c=r.endpoint.replace(/\/otlp(\/v1)?\/?$/,"");o.registerTool({name:"manifest_usage",description:"Get token consumption for this agent: total, input, output, cache-read tokens, and action count. Use when the user asks about token usage or consumption.",parameters:{type:"object",properties:{period:{type:"string",enum:["today","week","month"],default:"today",description:"Time period"}}},handler:async a=>{let u=HI[a.period||"today"]||"24h";return kI(c,`/api/v1/agent/usage?range=${u}`,r.apiKey,i)}}),o.registerTool({name:"manifest_costs",description:"Get cost breakdown for this agent in USD, grouped by model. Use when the user asks about costs, spending, or money burned.",parameters:{type:"object",properties:{period:{type:"string",enum:["today","week","month"],default:"week",description:"Time period"}}},handler:async a=>{let u=HI[a.period||"week"]||"7d";return kI(c,`/api/v1/agent/costs?range=${u}`,r.apiKey,i)}}),o.registerTool({name:"manifest_health",description:"Check whether Manifest observability is connected and working. Use when the user asks if monitoring is set up or wants a connectivity test.",parameters:{type:"object",properties:{}},handler:async()=>{let a=await Xi(r);return a.error?{error:a.error}:{result:{endpointReachable:a.endpointReachable,authValid:a.authValid,agentName:a.agentName,status:"ok"}}}}),i.info("[manifest] Registered agent tools: manifest_usage, manifest_costs, manifest_health")}module.exports={id:"manifest",name:"Manifest \u2014 Agent Observability",register(o){let r=o.logger||{info:(...e)=>console.log(...e),debug:()=>{},error:(...e)=>console.error(...e),warn:(...e)=>console.warn(...e)},i=Oc(o.pluginConfig),c=mc(i);if(c){i.apiKey?r.error(`[manifest] Configuration error:
14
+ `,(0,Jo.getIncompatibilityDetails)(u,r),`To resolve the conflict:
15
+ `,(0,Jo.getConflictResolutionRecipe)(u,r))}return c}};Xo.MetricStorageRegistry=Ms});var $M=S($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.MultiMetricStorage=void 0;var gs=class{constructor(r){this._backingStorages=r}record(r,i,c,a){this._backingStorages.forEach(u=>{u.record(r,i,c,a)})}};$o.MultiMetricStorage=gs});var ZM=S(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.BatchObservableResultImpl=nr.ObservableResultImpl=void 0;var rr=(m(),N(y)),QM=Dr(),LJ=Yo(),Ls=class{constructor(r,i){this._instrumentName=r,this._valueType=i,this._buffer=new QM.AttributeHashMap}observe(r,i={}){if(typeof r!="number"){rr.diag.warn(`non-number value provided to metric ${this._instrumentName}: ${r}`);return}this._valueType===rr.ValueType.INT&&!Number.isInteger(r)&&(rr.diag.warn(`INT value type cannot accept a floating-point value for ${this._instrumentName}, ignoring the fractional digits.`),r=Math.trunc(r),!Number.isInteger(r))||this._buffer.set(i,r)}};nr.ObservableResultImpl=Ls;var Is=class{constructor(){this._buffer=new Map}observe(r,i,c={}){if(!(0,LJ.isObservableInstrument)(r))return;let a=this._buffer.get(r);if(a==null&&(a=new QM.AttributeHashMap,this._buffer.set(r,a)),typeof i!="number"){rr.diag.warn(`non-number value provided to metric ${r._descriptor.name}: ${i}`);return}r._descriptor.valueType===rr.ValueType.INT&&!Number.isInteger(i)&&(rr.diag.warn(`INT value type cannot accept a floating-point value for ${r._descriptor.name}, ignoring the fractional digits.`),i=Math.trunc(i),!Number.isInteger(i))||a.set(c,i)}};nr.BatchObservableResultImpl=Is});var rg=S(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.ObservableRegistry=void 0;var IJ=(m(),N(y)),eg=Yo(),tg=ZM(),Vr=Ee(),Cs=class{constructor(){this._callbacks=[],this._batchCallbacks=[]}addCallback(r,i){this._findCallback(r,i)>=0||this._callbacks.push({callback:r,instrument:i})}removeCallback(r,i){let c=this._findCallback(r,i);c<0||this._callbacks.splice(c,1)}addBatchCallback(r,i){let c=new Set(i.filter(eg.isObservableInstrument));if(c.size===0){IJ.diag.error("BatchObservableCallback is not associated with valid instruments",i);return}this._findBatchCallback(r,c)>=0||this._batchCallbacks.push({callback:r,instruments:c})}removeBatchCallback(r,i){let c=new Set(i.filter(eg.isObservableInstrument)),a=this._findBatchCallback(r,c);a<0||this._batchCallbacks.splice(a,1)}async observe(r,i){let c=this._observeCallbacks(r,i),a=this._observeBatchCallbacks(r,i);return(await(0,Vr.PromiseAllSettled)([...c,...a])).filter(Vr.isPromiseAllSettledRejectionResult).map(e=>e.reason)}_observeCallbacks(r,i){return this._callbacks.map(async({callback:c,instrument:a})=>{let u=new tg.ObservableResultImpl(a._descriptor.name,a._descriptor.valueType),t=Promise.resolve(c(u));i!=null&&(t=(0,Vr.callWithTimeout)(t,i)),await t,a._metricStorages.forEach(e=>{e.record(u._buffer,r)})})}_observeBatchCallbacks(r,i){return this._batchCallbacks.map(async({callback:c,instruments:a})=>{let u=new tg.BatchObservableResultImpl,t=Promise.resolve(c(u));i!=null&&(t=(0,Vr.callWithTimeout)(t,i)),await t,a.forEach(e=>{let n=u._buffer.get(e);n!=null&&e._metricStorages.forEach(s=>{s.record(n,r)})})})}_findCallback(r,i){return this._callbacks.findIndex(c=>c.callback===r&&c.instrument===i)}_findBatchCallback(r,i){return this._batchCallbacks.findIndex(c=>c.callback===r&&(0,Vr.setEquals)(c.instruments,i))}};Qo.ObservableRegistry=Cs});var ng=S(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.SyncMetricStorage=void 0;var CJ=vs(),xJ=Ns(),bJ=ys(),xs=class extends CJ.MetricStorage{constructor(r,i,c,a,u){super(r),this._attributesProcessor=c,this._aggregationCardinalityLimit=u,this._deltaMetricStorage=new xJ.DeltaMetricProcessor(i,this._aggregationCardinalityLimit),this._temporalMetricStorage=new bJ.TemporalMetricProcessor(i,a)}record(r,i,c,a){i=this._attributesProcessor.process(i,c),this._deltaMetricStorage.record(r,i,c,a)}collect(r,i){let c=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(r,this._instrumentDescriptor,c,i)}};Zo.SyncMetricStorage=xs});var Us=S(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.FilteringAttributesProcessor=qe.NoopAttributesProcessor=qe.AttributesProcessor=void 0;var wr=class{static Noop(){return UJ}};qe.AttributesProcessor=wr;var ei=class extends wr{process(r,i){return r}};qe.NoopAttributesProcessor=ei;var bs=class extends wr{constructor(r){super(),this._allowedAttributeNames=r}process(r,i){let c={};return Object.keys(r).filter(a=>this._allowedAttributeNames.includes(a)).forEach(a=>c[a]=r[a]),c}};qe.FilteringAttributesProcessor=bs;var UJ=new ei});var og=S(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.MeterSharedState=void 0;var DJ=Ue(),VJ=YM(),wJ=Ee(),BJ=FM(),GJ=XM(),HJ=$M(),kJ=rg(),YJ=ng(),FJ=Us(),Ds=class{constructor(r,i){this._meterProviderSharedState=r,this._instrumentationScope=i,this.metricStorageRegistry=new GJ.MetricStorageRegistry,this.observableRegistry=new kJ.ObservableRegistry,this.meter=new VJ.Meter(this)}registerMetricStorage(r){let i=this._registerMetricStorage(r,YJ.SyncMetricStorage);return i.length===1?i[0]:new HJ.MultiMetricStorage(i)}registerAsyncMetricStorage(r){return this._registerMetricStorage(r,BJ.AsyncMetricStorage)}async collect(r,i,c){let a=await this.observableRegistry.observe(i,c?.timeoutMillis),u=this.metricStorageRegistry.getStorages(r);if(u.length===0)return null;let t=u.map(e=>e.collect(r,i)).filter(wJ.isNotNullish);return t.length===0?{errors:a}:{scopeMetrics:{scope:this._instrumentationScope,metrics:t},errors:a}}_registerMetricStorage(r,i){let a=this._meterProviderSharedState.viewRegistry.findViews(r,this._instrumentationScope).map(u=>{let t=(0,DJ.createInstrumentDescriptorWithView)(u,r),e=this.metricStorageRegistry.findOrUpdateCompatibleStorage(t);if(e!=null)return e;let n=u.aggregation.createAggregator(t),s=new i(t,n,u.attributesProcessor,this._meterProviderSharedState.metricCollectors,u.aggregationCardinalityLimit);return this.metricStorageRegistry.register(s),s});if(a.length===0){let t=this._meterProviderSharedState.selectAggregations(r.type).map(([e,n])=>{let s=this.metricStorageRegistry.findOrUpdateCompatibleCollectorStorage(e,r);if(s!=null)return s;let l=n.createAggregator(r),E=e.selectCardinalityLimit(r.type),O=new i(r,l,FJ.AttributesProcessor.Noop(),[e],E);return this.metricStorageRegistry.registerForCollector(e,O),O});a=a.concat(t)}return a}};ti.MeterSharedState=Ds});var ig=S(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.MeterProviderSharedState=void 0;var KJ=Ee(),jJ=kM(),qJ=og(),Vs=class{constructor(r){this.resource=r,this.viewRegistry=new jJ.ViewRegistry,this.metricCollectors=[],this.meterSharedStates=new Map}getMeterSharedState(r){let i=(0,KJ.instrumentationScopeId)(r),c=this.meterSharedStates.get(i);return c==null&&(c=new qJ.MeterSharedState(this,r),this.meterSharedStates.set(i,c)),c}selectAggregations(r){let i=[];for(let c of this.metricCollectors)i.push([c,c.selectAggregation(r)]);return i}};ri.MeterProviderSharedState=Vs});var ag=S(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.MetricCollector=void 0;var WJ=x(),ws=class{constructor(r,i){this._sharedState=r,this._metricReader=i}async collect(r){let i=(0,WJ.millisToHrTime)(Date.now()),c=[],a=[],u=Array.from(this._sharedState.meterSharedStates.values()).map(async t=>{let e=await t.collect(this,i,r);e?.scopeMetrics!=null&&c.push(e.scopeMetrics),e?.errors!=null&&a.push(...e.errors)});return await Promise.all(u),{resourceMetrics:{resource:this._sharedState.resource,scopeMetrics:c},errors:a}}async forceFlush(r){await this._metricReader.forceFlush(r)}async shutdown(r){await this._metricReader.shutdown(r)}selectAggregationTemporality(r){return this._metricReader.selectAggregationTemporality(r)}selectAggregation(r){return this._metricReader.selectAggregation(r)}selectCardinalityLimit(r){var i,c,a;return(a=(c=(i=this._metricReader).selectCardinalityLimit)===null||c===void 0?void 0:c.call(i,r))!==null&&a!==void 0?a:2e3}};ni.MetricCollector=ws});var sg=S(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.MeterProvider=void 0;var oi=(m(),N(y)),ug=_o(),zJ=ig(),JJ=ag();function XJ(o,r){let i=r??ug.Resource.empty();return o?ug.Resource.default().merge(i):i}var Bs=class{constructor(r){var i;if(this._shutdown=!1,this._sharedState=new zJ.MeterProviderSharedState(XJ((i=r?.mergeResourceWithDefaults)!==null&&i!==void 0?i:!0,r?.resource)),r?.views!=null&&r.views.length>0)for(let c of r.views)this._sharedState.viewRegistry.addView(c);if(r?.readers!=null&&r.readers.length>0)for(let c of r.readers)this.addMetricReader(c)}getMeter(r,i="",c={}){return this._shutdown?(oi.diag.warn("A shutdown MeterProvider cannot provide a Meter"),(0,oi.createNoopMeter)()):this._sharedState.getMeterSharedState({name:r,version:i,schemaUrl:c.schemaUrl}).meter}addMetricReader(r){let i=new JJ.MetricCollector(this._sharedState,r);r.setMetricProducer(i),this._sharedState.metricCollectors.push(i)}async shutdown(r){if(this._shutdown){oi.diag.warn("shutdown may only be called once per MeterProvider");return}this._shutdown=!0,await Promise.all(this._sharedState.metricCollectors.map(i=>i.shutdown(r)))}async forceFlush(r){if(this._shutdown){oi.diag.warn("invalid attempt to force flush after MeterProvider shutdown");return}await Promise.all(this._sharedState.metricCollectors.map(i=>i.forceFlush(r)))}};ii.MeterProvider=Bs});var ai=S(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.ExactPredicate=or.PatternPredicate=void 0;var $J=/[\^$\\.+?()[\]{}|]/g,Gs=class o{constructor(r){r==="*"?(this._matchAll=!0,this._regexp=/.*/):(this._matchAll=!1,this._regexp=new RegExp(o.escapePattern(r)))}match(r){return this._matchAll?!0:this._regexp.test(r)}static escapePattern(r){return`^${r.replace($J,"\\$&").replace("*",".*")}$`}static hasWildcard(r){return r.includes("*")}};or.PatternPredicate=Gs;var Hs=class{constructor(r){this._matchAll=r===void 0,this._pattern=r}match(r){return!!(this._matchAll||r===this._pattern)}};or.ExactPredicate=Hs});var lg=S(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.InstrumentSelector=void 0;var cg=ai(),ks=class{constructor(r){var i;this._nameFilter=new cg.PatternPredicate((i=r?.name)!==null&&i!==void 0?i:"*"),this._type=r?.type,this._unitFilter=new cg.ExactPredicate(r?.unit)}getType(){return this._type}getNameFilter(){return this._nameFilter}getUnitFilter(){return this._unitFilter}};ui.InstrumentSelector=ks});var pg=S(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.MeterSelector=void 0;var Ys=ai(),Fs=class{constructor(r){this._nameFilter=new Ys.ExactPredicate(r?.name),this._versionFilter=new Ys.ExactPredicate(r?.version),this._schemaUrlFilter=new Ys.ExactPredicate(r?.schemaUrl)}getNameFilter(){return this._nameFilter}getVersionFilter(){return this._versionFilter}getSchemaUrlFilter(){return this._schemaUrlFilter}};si.MeterSelector=Fs});var Eg=S(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.View=void 0;var QJ=ai(),_g=Us(),ZJ=lg(),eX=pg(),tX=Do();function rX(o){return o.instrumentName==null&&o.instrumentType==null&&o.instrumentUnit==null&&o.meterName==null&&o.meterVersion==null&&o.meterSchemaUrl==null}var Ks=class{constructor(r){var i;if(rX(r))throw new Error("Cannot create view with no selector arguments supplied");if(r.name!=null&&(r?.instrumentName==null||QJ.PatternPredicate.hasWildcard(r.instrumentName)))throw new Error("Views with a specified name must be declared with an instrument selector that selects at most one instrument per meter.");r.attributeKeys!=null?this.attributesProcessor=new _g.FilteringAttributesProcessor(r.attributeKeys):this.attributesProcessor=_g.AttributesProcessor.Noop(),this.name=r.name,this.description=r.description,this.aggregation=(i=r.aggregation)!==null&&i!==void 0?i:tX.Aggregation.Default(),this.instrumentSelector=new ZJ.InstrumentSelector({name:r.instrumentName,type:r.instrumentType,unit:r.instrumentUnit}),this.meterSelector=new eX.MeterSelector({name:r.meterName,version:r.meterVersion,schemaUrl:r.meterSchemaUrl}),this.aggregationCardinalityLimit=r.aggregationCardinalityLimit}};ci.View=Ks});var li=S(R=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0});R.TimeoutError=R.View=R.Aggregation=R.SumAggregation=R.LastValueAggregation=R.HistogramAggregation=R.DropAggregation=R.ExponentialHistogramAggregation=R.ExplicitBucketHistogramAggregation=R.DefaultAggregation=R.MeterProvider=R.InstrumentType=R.ConsoleMetricExporter=R.InMemoryMetricExporter=R.PeriodicExportingMetricReader=R.MetricReader=R.DataPointType=R.AggregationTemporality=void 0;var nX=vo();Object.defineProperty(R,"AggregationTemporality",{enumerable:!0,get:function(){return nX.AggregationTemporality}});var oX=Ht();Object.defineProperty(R,"DataPointType",{enumerable:!0,get:function(){return oX.DataPointType}});var iX=os();Object.defineProperty(R,"MetricReader",{enumerable:!0,get:function(){return iX.MetricReader}});var aX=VM();Object.defineProperty(R,"PeriodicExportingMetricReader",{enumerable:!0,get:function(){return aX.PeriodicExportingMetricReader}});var uX=BM();Object.defineProperty(R,"InMemoryMetricExporter",{enumerable:!0,get:function(){return uX.InMemoryMetricExporter}});var sX=HM();Object.defineProperty(R,"ConsoleMetricExporter",{enumerable:!0,get:function(){return sX.ConsoleMetricExporter}});var cX=Ue();Object.defineProperty(R,"InstrumentType",{enumerable:!0,get:function(){return cX.InstrumentType}});var lX=sg();Object.defineProperty(R,"MeterProvider",{enumerable:!0,get:function(){return lX.MeterProvider}});var We=Do();Object.defineProperty(R,"DefaultAggregation",{enumerable:!0,get:function(){return We.DefaultAggregation}});Object.defineProperty(R,"ExplicitBucketHistogramAggregation",{enumerable:!0,get:function(){return We.ExplicitBucketHistogramAggregation}});Object.defineProperty(R,"ExponentialHistogramAggregation",{enumerable:!0,get:function(){return We.ExponentialHistogramAggregation}});Object.defineProperty(R,"DropAggregation",{enumerable:!0,get:function(){return We.DropAggregation}});Object.defineProperty(R,"HistogramAggregation",{enumerable:!0,get:function(){return We.HistogramAggregation}});Object.defineProperty(R,"LastValueAggregation",{enumerable:!0,get:function(){return We.LastValueAggregation}});Object.defineProperty(R,"SumAggregation",{enumerable:!0,get:function(){return We.SumAggregation}});Object.defineProperty(R,"Aggregation",{enumerable:!0,get:function(){return We.Aggregation}});var pX=Eg();Object.defineProperty(R,"View",{enumerable:!0,get:function(){return pX.View}});var _X=Ee();Object.defineProperty(R,"TimeoutError",{enumerable:!0,get:function(){return _X.TimeoutError}})});var Tg,Sg=d(()=>{Tg=function(){function o(r){this._delegate=r}return o.prototype.export=function(r,i){this._delegate.export(r,i)},o.prototype.forceFlush=function(){return this._delegate.forceFlush()},o.prototype.shutdown=function(){return this._delegate.shutdown()},o}()});var EX,pt,pi=d(()=>{EX=function(){var o=function(r,i){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(c[u]=a[u])},o(r,i)};return function(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");o(r,i);function c(){this.constructor=r}r.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}}(),pt=function(o){EX(r,o);function r(i,c,a){var u=o.call(this,i)||this;return u.name="OTLPExporterError",u.data=a,u.code=c,u}return r}(Error)});function TX(o){if(!Number.isNaN(o)&&Number.isFinite(o)&&o>0)return o;throw new Error("Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '"+o+"')")}function _i(o){if(o!=null)return function(){return o}}function Ei(o,r,i){var c,a,u,t,e,n;return{timeoutMillis:TX((a=(c=o.timeoutMillis)!==null&&c!==void 0?c:r.timeoutMillis)!==null&&a!==void 0?a:i.timeoutMillis),concurrencyLimit:(t=(u=o.concurrencyLimit)!==null&&u!==void 0?u:r.concurrencyLimit)!==null&&t!==void 0?t:i.concurrencyLimit,compression:(n=(e=o.compression)!==null&&e!==void 0?e:r.compression)!==null&&n!==void 0?n:i.compression}}function Ti(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}var Br=d(()=>{});var Si,fg=d(()=>{(function(o){o.NONE="none",o.GZIP="gzip"})(Si||(Si={}))});function fi(o){return new dX(o.concurrencyLimit)}var SX,fX,dX,js=d(()=>{SX=function(o,r,i,c){function a(u){return u instanceof i?u:new i(function(t){t(u)})}return new(i||(i=Promise))(function(u,t){function e(l){try{s(c.next(l))}catch(E){t(E)}}function n(l){try{s(c.throw(l))}catch(E){t(E)}}function s(l){l.done?u(l.value):a(l.value).then(e,n)}s((c=c.apply(o,r||[])).next())})},fX=function(o,r){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},c,a,u,t;return t={next:e(0),throw:e(1),return:e(2)},typeof Symbol=="function"&&(t[Symbol.iterator]=function(){return this}),t;function e(s){return function(l){return n([s,l])}}function n(s){if(c)throw new TypeError("Generator is already executing.");for(;i;)try{if(c=1,a&&(u=s[0]&2?a.return:s[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,s[1])).done)return u;switch(a=0,u&&(s=[s[0]&2,u.value]),s[0]){case 0:case 1:u=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,a=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!u||s[1]>u[0]&&s[1]<u[3])){i.label=s[1];break}if(s[0]===6&&i.label<u[1]){i.label=u[1],u=s;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(s);break}u[2]&&i.ops.pop(),i.trys.pop();continue}s=r.call(o,i)}catch(l){s=[6,l],a=0}finally{c=u=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},dX=function(){function o(r){this._sendingPromises=[],this._concurrencyLimit=r}return o.prototype.pushPromise=function(r){var i=this;if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(r);var c=function(){var a=i._sendingPromises.indexOf(r);i._sendingPromises.splice(a,1)};r.then(c,c)},o.prototype.hasReachedLimit=function(){return this._sendingPromises.length>=this._concurrencyLimit},o.prototype.awaitAll=function(){return SX(this,void 0,void 0,function(){return fX(this,function(r){switch(r.label){case 0:return[4,Promise.all(this._sendingPromises)];case 1:return r.sent(),[2]}})})},o}()});function AX(o){return Object.prototype.hasOwnProperty.call(o,"partialSuccess")}function dg(){return{handleResponse:function(o){o==null||!AX(o)||o.partialSuccess==null||Object.keys(o.partialSuccess).length===0||H.warn("Received Partial Success response:",JSON.stringify(o.partialSuccess))}}}var Ag=d(()=>{m()});function di(o,r){return new mX(o.transport,o.serializer,dg(),o.promiseHandler,r.timeout)}var ze,vX,OX,mX,qs=d(()=>{ze=ve(x());pi();Ag();m();vX=function(o,r,i,c){function a(u){return u instanceof i?u:new i(function(t){t(u)})}return new(i||(i=Promise))(function(u,t){function e(l){try{s(c.next(l))}catch(E){t(E)}}function n(l){try{s(c.throw(l))}catch(E){t(E)}}function s(l){l.done?u(l.value):a(l.value).then(e,n)}s((c=c.apply(o,r||[])).next())})},OX=function(o,r){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},c,a,u,t;return t={next:e(0),throw:e(1),return:e(2)},typeof Symbol=="function"&&(t[Symbol.iterator]=function(){return this}),t;function e(s){return function(l){return n([s,l])}}function n(s){if(c)throw new TypeError("Generator is already executing.");for(;i;)try{if(c=1,a&&(u=s[0]&2?a.return:s[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,s[1])).done)return u;switch(a=0,u&&(s=[s[0]&2,u.value]),s[0]){case 0:case 1:u=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,a=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!u||s[1]>u[0]&&s[1]<u[3])){i.label=s[1];break}if(s[0]===6&&i.label<u[1]){i.label=u[1],u=s;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(s);break}u[2]&&i.ops.pop(),i.trys.pop();continue}s=r.call(o,i)}catch(l){s=[6,l],a=0}finally{c=u=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},mX=function(){function o(r,i,c,a,u){this._transport=r,this._serializer=i,this._responseHandler=c,this._promiseQueue=a,this._timeout=u,this._diagLogger=H.createComponentLogger({namespace:"OTLPExportDelegate"})}return o.prototype.export=function(r,i){var c=this;if(this._diagLogger.debug("items to be sent",r),this._promiseQueue.hasReachedLimit()){i({code:ze.ExportResultCode.FAILED,error:new Error("Concurrent export limit reached")});return}var a=this._serializer.serializeRequest(r);if(a==null){i({code:ze.ExportResultCode.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(a,this._timeout).then(function(u){if(u.status==="success"){if(u.data!=null)try{c._responseHandler.handleResponse(c._serializer.deserializeResponse(u.data))}catch(t){c._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",t,u.data)}i({code:ze.ExportResultCode.SUCCESS});return}else if(u.status==="failure"&&u.error){i({code:ze.ExportResultCode.FAILED,error:u.error});return}else u.status==="retryable"?i({code:ze.ExportResultCode.FAILED,error:new pt("Export failed with retryable status")}):i({code:ze.ExportResultCode.FAILED,error:new pt("Export failed with unknown error")})},function(u){return i({code:ze.ExportResultCode.FAILED,error:u})}))},o.prototype.forceFlush=function(){return this._promiseQueue.awaitAll()},o.prototype.shutdown=function(){return vX(this,void 0,void 0,function(){return OX(this,function(r){switch(r.label){case 0:return this._diagLogger.debug("shutdown started"),[4,this.forceFlush()];case 1:return r.sent(),this._transport.shutdown(),[2]}})})},o}()});function vg(o,r,i){return di({transport:i,serializer:r,promiseHandler:fi(o)},{timeout:o.timeoutMillis})}var Og=d(()=>{js();qs()});var Ws={};At(Ws,{CompressionAlgorithm:()=>Si,OTLPExporterBase:()=>Tg,OTLPExporterError:()=>pt,createOtlpNetworkExportDelegate:()=>vg,getSharedConfigurationDefaults:()=>Ti,mergeOtlpSharedConfigurationWithDefaults:()=>Ei});var zs=d(()=>{Sg();pi();Br();fg();Og()});var mg=S(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.VERSION=void 0;Ai.VERSION="0.57.2"});var Ng=S((Kee,hg)=>{"use strict";hg.exports=hX;function hX(o,r){for(var i=new Array(arguments.length-1),c=0,a=2,u=!0;a<arguments.length;)i[c++]=arguments[a++];return new Promise(function(e,n){i[c]=function(l){if(u)if(u=!1,l)n(l);else{for(var E=new Array(arguments.length-1),O=0;O<E.length;)E[O++]=arguments[O];e.apply(null,E)}};try{o.apply(r||null,i)}catch(s){u&&(u=!1,n(s))}})}});var Mg=S(Pg=>{"use strict";var vi=Pg;vi.length=function(r){var i=r.length;if(!i)return 0;for(var c=0;--i%4>1&&r.charAt(i)==="=";)++c;return Math.ceil(r.length*3)/4-c};var ir=new Array(64),yg=new Array(123);for(Te=0;Te<64;)yg[ir[Te]=Te<26?Te+65:Te<52?Te+71:Te<62?Te-4:Te-59|43]=Te++;var Te;vi.encode=function(r,i,c){for(var a=null,u=[],t=0,e=0,n;i<c;){var s=r[i++];switch(e){case 0:u[t++]=ir[s>>2],n=(s&3)<<4,e=1;break;case 1:u[t++]=ir[n|s>>4],n=(s&15)<<2,e=2;break;case 2:u[t++]=ir[n|s>>6],u[t++]=ir[s&63],e=0;break}t>8191&&((a||(a=[])).push(String.fromCharCode.apply(String,u)),t=0)}return e&&(u[t++]=ir[n],u[t++]=61,e===1&&(u[t++]=61)),a?(t&&a.push(String.fromCharCode.apply(String,u.slice(0,t))),a.join("")):String.fromCharCode.apply(String,u.slice(0,t))};var Rg="invalid encoding";vi.decode=function(r,i,c){for(var a=c,u=0,t,e=0;e<r.length;){var n=r.charCodeAt(e++);if(n===61&&u>1)break;if((n=yg[n])===void 0)throw Error(Rg);switch(u){case 0:t=n,u=1;break;case 1:i[c++]=t<<2|(n&48)>>4,t=n,u=2;break;case 2:i[c++]=(t&15)<<4|(n&60)>>2,t=n,u=3;break;case 3:i[c++]=(t&3)<<6|n,u=0;break}}if(u===1)throw Error(Rg);return c-a};vi.test=function(r){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(r)}});var Lg=S((qee,gg)=>{"use strict";gg.exports=Oi;function Oi(){this._listeners={}}Oi.prototype.on=function(r,i,c){return(this._listeners[r]||(this._listeners[r]=[])).push({fn:i,ctx:c||this}),this};Oi.prototype.off=function(r,i){if(r===void 0)this._listeners={};else if(i===void 0)this._listeners[r]=[];else for(var c=this._listeners[r],a=0;a<c.length;)c[a].fn===i?c.splice(a,1):++a;return this};Oi.prototype.emit=function(r){var i=this._listeners[r];if(i){for(var c=[],a=1;a<arguments.length;)c.push(arguments[a++]);for(a=0;a<i.length;)i[a].fn.apply(i[a++].ctx,c)}return this}});var Vg=S((Wee,Dg)=>{"use strict";Dg.exports=Ig(Ig);function Ig(o){return typeof Float32Array<"u"?function(){var r=new Float32Array([-0]),i=new Uint8Array(r.buffer),c=i[3]===128;function a(n,s,l){r[0]=n,s[l]=i[0],s[l+1]=i[1],s[l+2]=i[2],s[l+3]=i[3]}function u(n,s,l){r[0]=n,s[l]=i[3],s[l+1]=i[2],s[l+2]=i[1],s[l+3]=i[0]}o.writeFloatLE=c?a:u,o.writeFloatBE=c?u:a;function t(n,s){return i[0]=n[s],i[1]=n[s+1],i[2]=n[s+2],i[3]=n[s+3],r[0]}function e(n,s){return i[3]=n[s],i[2]=n[s+1],i[1]=n[s+2],i[0]=n[s+3],r[0]}o.readFloatLE=c?t:e,o.readFloatBE=c?e:t}():function(){function r(c,a,u,t){var e=a<0?1:0;if(e&&(a=-a),a===0)c(1/a>0?0:2147483648,u,t);else if(isNaN(a))c(2143289344,u,t);else if(a>34028234663852886e22)c((e<<31|2139095040)>>>0,u,t);else if(a<11754943508222875e-54)c((e<<31|Math.round(a/1401298464324817e-60))>>>0,u,t);else{var n=Math.floor(Math.log(a)/Math.LN2),s=Math.round(a*Math.pow(2,-n)*8388608)&8388607;c((e<<31|n+127<<23|s)>>>0,u,t)}}o.writeFloatLE=r.bind(null,Cg),o.writeFloatBE=r.bind(null,xg);function i(c,a,u){var t=c(a,u),e=(t>>31)*2+1,n=t>>>23&255,s=t&8388607;return n===255?s?NaN:e*(1/0):n===0?e*1401298464324817e-60*s:e*Math.pow(2,n-150)*(s+8388608)}o.readFloatLE=i.bind(null,bg),o.readFloatBE=i.bind(null,Ug)}(),typeof Float64Array<"u"?function(){var r=new Float64Array([-0]),i=new Uint8Array(r.buffer),c=i[7]===128;function a(n,s,l){r[0]=n,s[l]=i[0],s[l+1]=i[1],s[l+2]=i[2],s[l+3]=i[3],s[l+4]=i[4],s[l+5]=i[5],s[l+6]=i[6],s[l+7]=i[7]}function u(n,s,l){r[0]=n,s[l]=i[7],s[l+1]=i[6],s[l+2]=i[5],s[l+3]=i[4],s[l+4]=i[3],s[l+5]=i[2],s[l+6]=i[1],s[l+7]=i[0]}o.writeDoubleLE=c?a:u,o.writeDoubleBE=c?u:a;function t(n,s){return i[0]=n[s],i[1]=n[s+1],i[2]=n[s+2],i[3]=n[s+3],i[4]=n[s+4],i[5]=n[s+5],i[6]=n[s+6],i[7]=n[s+7],r[0]}function e(n,s){return i[7]=n[s],i[6]=n[s+1],i[5]=n[s+2],i[4]=n[s+3],i[3]=n[s+4],i[2]=n[s+5],i[1]=n[s+6],i[0]=n[s+7],r[0]}o.readDoubleLE=c?t:e,o.readDoubleBE=c?e:t}():function(){function r(c,a,u,t,e,n){var s=t<0?1:0;if(s&&(t=-t),t===0)c(0,e,n+a),c(1/t>0?0:2147483648,e,n+u);else if(isNaN(t))c(0,e,n+a),c(2146959360,e,n+u);else if(t>17976931348623157e292)c(0,e,n+a),c((s<<31|2146435072)>>>0,e,n+u);else{var l;if(t<22250738585072014e-324)l=t/5e-324,c(l>>>0,e,n+a),c((s<<31|l/4294967296)>>>0,e,n+u);else{var E=Math.floor(Math.log(t)/Math.LN2);E===1024&&(E=1023),l=t*Math.pow(2,-E),c(l*4503599627370496>>>0,e,n+a),c((s<<31|E+1023<<20|l*1048576&1048575)>>>0,e,n+u)}}}o.writeDoubleLE=r.bind(null,Cg,0,4),o.writeDoubleBE=r.bind(null,xg,4,0);function i(c,a,u,t,e){var n=c(t,e+a),s=c(t,e+u),l=(s>>31)*2+1,E=s>>>20&2047,O=4294967296*(s&1048575)+n;return E===2047?O?NaN:l*(1/0):E===0?l*5e-324*O:l*Math.pow(2,E-1075)*(O+4503599627370496)}o.readDoubleLE=i.bind(null,bg,0,4),o.readDoubleBE=i.bind(null,Ug,4,0)}(),o}function Cg(o,r,i){r[i]=o&255,r[i+1]=o>>>8&255,r[i+2]=o>>>16&255,r[i+3]=o>>>24}function xg(o,r,i){r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=o&255}function bg(o,r){return(o[r]|o[r+1]<<8|o[r+2]<<16|o[r+3]<<24)>>>0}function Ug(o,r){return(o[r]<<24|o[r+1]<<16|o[r+2]<<8|o[r+3])>>>0}});var Bg=S((zee,wg)=>{"use strict";wg.exports=function(){return null}});var Hg=S(Gg=>{"use strict";var Js=Gg;Js.length=function(r){for(var i=0,c=0,a=0;a<r.length;++a)c=r.charCodeAt(a),c<128?i+=1:c<2048?i+=2:(c&64512)===55296&&(r.charCodeAt(a+1)&64512)===56320?(++a,i+=4):i+=3;return i};Js.read=function(r,i,c){var a=c-i;if(a<1)return"";for(var u=null,t=[],e=0,n;i<c;)n=r[i++],n<128?t[e++]=n:n>191&&n<224?t[e++]=(n&31)<<6|r[i++]&63:n>239&&n<365?(n=((n&7)<<18|(r[i++]&63)<<12|(r[i++]&63)<<6|r[i++]&63)-65536,t[e++]=55296+(n>>10),t[e++]=56320+(n&1023)):t[e++]=(n&15)<<12|(r[i++]&63)<<6|r[i++]&63,e>8191&&((u||(u=[])).push(String.fromCharCode.apply(String,t)),e=0);return u?(e&&u.push(String.fromCharCode.apply(String,t.slice(0,e))),u.join("")):String.fromCharCode.apply(String,t.slice(0,e))};Js.write=function(r,i,c){for(var a=c,u,t,e=0;e<r.length;++e)u=r.charCodeAt(e),u<128?i[c++]=u:u<2048?(i[c++]=u>>6|192,i[c++]=u&63|128):(u&64512)===55296&&((t=r.charCodeAt(e+1))&64512)===56320?(u=65536+((u&1023)<<10)+(t&1023),++e,i[c++]=u>>18|240,i[c++]=u>>12&63|128,i[c++]=u>>6&63|128,i[c++]=u&63|128):(i[c++]=u>>12|224,i[c++]=u>>6&63|128,i[c++]=u&63|128);return c-a}});var Yg=S((Xee,kg)=>{"use strict";kg.exports=NX;function NX(o,r,i){var c=i||8192,a=c>>>1,u=null,t=c;return function(n){if(n<1||n>a)return o(n);t+n>c&&(u=o(c),t=0);var s=r.call(u,t,t+=n);return t&7&&(t=(t|7)+1),s}}});var Kg=S(($ee,Fg)=>{"use strict";Fg.exports=K;var Gr=Xe();function K(o,r){this.lo=o>>>0,this.hi=r>>>0}var _t=K.zero=new K(0,0);_t.toNumber=function(){return 0};_t.zzEncode=_t.zzDecode=function(){return this};_t.length=function(){return 1};var RX=K.zeroHash="\0\0\0\0\0\0\0\0";K.fromNumber=function(r){if(r===0)return _t;var i=r<0;i&&(r=-r);var c=r>>>0,a=(r-c)/4294967296>>>0;return i&&(a=~a>>>0,c=~c>>>0,++c>4294967295&&(c=0,++a>4294967295&&(a=0))),new K(c,a)};K.from=function(r){if(typeof r=="number")return K.fromNumber(r);if(Gr.isString(r))if(Gr.Long)r=Gr.Long.fromString(r);else return K.fromNumber(parseInt(r,10));return r.low||r.high?new K(r.low>>>0,r.high>>>0):_t};K.prototype.toNumber=function(r){if(!r&&this.hi>>>31){var i=~this.lo+1>>>0,c=~this.hi>>>0;return i||(c=c+1>>>0),-(i+c*4294967296)}return this.lo+this.hi*4294967296};K.prototype.toLong=function(r){return Gr.Long?new Gr.Long(this.lo|0,this.hi|0,!!r):{low:this.lo|0,high:this.hi|0,unsigned:!!r}};var Je=String.prototype.charCodeAt;K.fromHash=function(r){return r===RX?_t:new K((Je.call(r,0)|Je.call(r,1)<<8|Je.call(r,2)<<16|Je.call(r,3)<<24)>>>0,(Je.call(r,4)|Je.call(r,5)<<8|Je.call(r,6)<<16|Je.call(r,7)<<24)>>>0)};K.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)};K.prototype.zzEncode=function(){var r=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^r)>>>0,this.lo=(this.lo<<1^r)>>>0,this};K.prototype.zzDecode=function(){var r=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^r)>>>0,this.hi=(this.hi>>>1^r)>>>0,this};K.prototype.length=function(){var r=this.lo,i=(this.lo>>>28|this.hi<<4)>>>0,c=this.hi>>>24;return c===0?i===0?r<16384?r<128?1:2:r<2097152?3:4:i<16384?i<128?5:6:i<2097152?7:8:c<128?9:10}});var Xe=S(Xs=>{"use strict";var A=Xs;A.asPromise=Ng();A.base64=Mg();A.EventEmitter=Lg();A.float=Vg();A.inquire=Bg();A.utf8=Hg();A.pool=Yg();A.LongBits=Kg();A.isNode=!!(typeof global<"u"&&global&&global.process&&global.process.versions&&global.process.versions.node);A.global=A.isNode&&global||typeof window<"u"&&window||typeof self<"u"&&self||Xs;A.emptyArray=Object.freeze?Object.freeze([]):[];A.emptyObject=Object.freeze?Object.freeze({}):{};A.isInteger=Number.isInteger||function(r){return typeof r=="number"&&isFinite(r)&&Math.floor(r)===r};A.isString=function(r){return typeof r=="string"||r instanceof String};A.isObject=function(r){return r&&typeof r=="object"};A.isset=A.isSet=function(r,i){var c=r[i];return c!=null&&r.hasOwnProperty(i)?typeof c!="object"||(Array.isArray(c)?c.length:Object.keys(c).length)>0:!1};A.Buffer=function(){try{var o=A.inquire("buffer").Buffer;return o.prototype.utf8Write?o:null}catch{return null}}();A._Buffer_from=null;A._Buffer_allocUnsafe=null;A.newBuffer=function(r){return typeof r=="number"?A.Buffer?A._Buffer_allocUnsafe(r):new A.Array(r):A.Buffer?A._Buffer_from(r):typeof Uint8Array>"u"?r:new Uint8Array(r)};A.Array=typeof Uint8Array<"u"?Uint8Array:Array;A.Long=A.global.dcodeIO&&A.global.dcodeIO.Long||A.global.Long||A.inquire("long");A.key2Re=/^true|false|0|1$/;A.key32Re=/^-?(?:0|[1-9][0-9]*)$/;A.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;A.longToHash=function(r){return r?A.LongBits.from(r).toHash():A.LongBits.zeroHash};A.longFromHash=function(r,i){var c=A.LongBits.fromHash(r);return A.Long?A.Long.fromBits(c.lo,c.hi,i):c.toNumber(!!i)};function jg(o,r,i){for(var c=Object.keys(r),a=0;a<c.length;++a)(o[c[a]]===void 0||!i)&&(o[c[a]]=r[c[a]]);return o}A.merge=jg;A.lcFirst=function(r){return r.charAt(0).toLowerCase()+r.substring(1)};function qg(o){function r(i,c){if(!(this instanceof r))return new r(i,c);Object.defineProperty(this,"message",{get:function(){return i}}),Error.captureStackTrace?Error.captureStackTrace(this,r):Object.defineProperty(this,"stack",{value:new Error().stack||""}),c&&jg(this,c)}return r.prototype=Object.create(Error.prototype,{constructor:{value:r,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return o},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),r}A.newError=qg;A.ProtocolError=qg("ProtocolError");A.oneOfGetter=function(r){for(var i={},c=0;c<r.length;++c)i[r[c]]=1;return function(){for(var a=Object.keys(this),u=a.length-1;u>-1;--u)if(i[a[u]]===1&&this[a[u]]!==void 0&&this[a[u]]!==null)return a[u]}};A.oneOfSetter=function(r){return function(i){for(var c=0;c<r.length;++c)r[c]!==i&&delete this[r[c]]}};A.toJSONOptions={longs:String,enums:String,bytes:String,json:!0};A._configure=function(){var o=A.Buffer;if(!o){A._Buffer_from=A._Buffer_allocUnsafe=null;return}A._Buffer_from=o.from!==Uint8Array.from&&o.from||function(i,c){return new o(i,c)},A._Buffer_allocUnsafe=o.allocUnsafe||function(i){return new o(i)}}});var nc=S((Zee,Xg)=>{"use strict";Xg.exports=P;var se=Xe(),$s,mi=se.LongBits,Wg=se.base64,zg=se.utf8;function Hr(o,r,i){this.fn=o,this.len=r,this.next=void 0,this.val=i}function Zs(){}function yX(o){this.head=o.head,this.tail=o.tail,this.len=o.len,this.next=o.states}function P(){this.len=0,this.head=new Hr(Zs,0,0),this.tail=this.head,this.states=null}var Jg=function(){return se.Buffer?function(){return(P.create=function(){return new $s})()}:function(){return new P}};P.create=Jg();P.alloc=function(r){return new se.Array(r)};se.Array!==Array&&(P.alloc=se.pool(P.alloc,se.Array.prototype.subarray));P.prototype._push=function(r,i,c){return this.tail=this.tail.next=new Hr(r,i,c),this.len+=i,this};function ec(o,r,i){r[i]=o&255}function PX(o,r,i){for(;o>127;)r[i++]=o&127|128,o>>>=7;r[i]=o}function tc(o,r){this.len=o,this.next=void 0,this.val=r}tc.prototype=Object.create(Hr.prototype);tc.prototype.fn=PX;P.prototype.uint32=function(r){return this.len+=(this.tail=this.tail.next=new tc((r=r>>>0)<128?1:r<16384?2:r<2097152?3:r<268435456?4:5,r)).len,this};P.prototype.int32=function(r){return r<0?this._push(rc,10,mi.fromNumber(r)):this.uint32(r)};P.prototype.sint32=function(r){return this.uint32((r<<1^r>>31)>>>0)};function rc(o,r,i){for(;o.hi;)r[i++]=o.lo&127|128,o.lo=(o.lo>>>7|o.hi<<25)>>>0,o.hi>>>=7;for(;o.lo>127;)r[i++]=o.lo&127|128,o.lo=o.lo>>>7;r[i++]=o.lo}P.prototype.uint64=function(r){var i=mi.from(r);return this._push(rc,i.length(),i)};P.prototype.int64=P.prototype.uint64;P.prototype.sint64=function(r){var i=mi.from(r).zzEncode();return this._push(rc,i.length(),i)};P.prototype.bool=function(r){return this._push(ec,1,r?1:0)};function Qs(o,r,i){r[i]=o&255,r[i+1]=o>>>8&255,r[i+2]=o>>>16&255,r[i+3]=o>>>24}P.prototype.fixed32=function(r){return this._push(Qs,4,r>>>0)};P.prototype.sfixed32=P.prototype.fixed32;P.prototype.fixed64=function(r){var i=mi.from(r);return this._push(Qs,4,i.lo)._push(Qs,4,i.hi)};P.prototype.sfixed64=P.prototype.fixed64;P.prototype.float=function(r){return this._push(se.float.writeFloatLE,4,r)};P.prototype.double=function(r){return this._push(se.float.writeDoubleLE,8,r)};var MX=se.Array.prototype.set?function(r,i,c){i.set(r,c)}:function(r,i,c){for(var a=0;a<r.length;++a)i[c+a]=r[a]};P.prototype.bytes=function(r){var i=r.length>>>0;if(!i)return this._push(ec,1,0);if(se.isString(r)){var c=P.alloc(i=Wg.length(r));Wg.decode(r,c,0),r=c}return this.uint32(i)._push(MX,i,r)};P.prototype.string=function(r){var i=zg.length(r);return i?this.uint32(i)._push(zg.write,i,r):this._push(ec,1,0)};P.prototype.fork=function(){return this.states=new yX(this),this.head=this.tail=new Hr(Zs,0,0),this.len=0,this};P.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Hr(Zs,0,0),this.len=0),this};P.prototype.ldelim=function(){var r=this.head,i=this.tail,c=this.len;return this.reset().uint32(c),c&&(this.tail.next=r.next,this.tail=i,this.len+=c),this};P.prototype.finish=function(){for(var r=this.head.next,i=this.constructor.alloc(this.len),c=0;r;)r.fn(r.val,i,c),c+=r.len,r=r.next;return i};P._configure=function(o){$s=o,P.create=Jg(),$s._configure()}});var Zg=S((ete,Qg)=>{"use strict";Qg.exports=Pe;var $g=nc();(Pe.prototype=Object.create($g.prototype)).constructor=Pe;var $e=Xe();function Pe(){$g.call(this)}Pe._configure=function(){Pe.alloc=$e._Buffer_allocUnsafe,Pe.writeBytesBuffer=$e.Buffer&&$e.Buffer.prototype instanceof Uint8Array&&$e.Buffer.prototype.set.name==="set"?function(r,i,c){i.set(r,c)}:function(r,i,c){if(r.copy)r.copy(i,c,0,r.length);else for(var a=0;a<r.length;)i[c++]=r[a++]}};Pe.prototype.bytes=function(r){$e.isString(r)&&(r=$e._Buffer_from(r,"base64"));var i=r.length>>>0;return this.uint32(i),i&&this._push(Pe.writeBytesBuffer,i,r),this};function gX(o,r,i){o.length<40?$e.utf8.write(o,r,i):r.utf8Write?r.utf8Write(o,i):r.write(o,i)}Pe.prototype.string=function(r){var i=$e.Buffer.byteLength(r);return this.uint32(i),i&&this._push(gX,i,r),this};Pe._configure()});var ac=S((tte,oL)=>{"use strict";oL.exports=V;var Se=Xe(),ic,rL=Se.LongBits,LX=Se.utf8;function fe(o,r){return RangeError("index out of range: "+o.pos+" + "+(r||1)+" > "+o.len)}function V(o){this.buf=o,this.pos=0,this.len=o.length}var eL=typeof Uint8Array<"u"?function(r){if(r instanceof Uint8Array||Array.isArray(r))return new V(r);throw Error("illegal buffer")}:function(r){if(Array.isArray(r))return new V(r);throw Error("illegal buffer")},nL=function(){return Se.Buffer?function(i){return(V.create=function(a){return Se.Buffer.isBuffer(a)?new ic(a):eL(a)})(i)}:eL};V.create=nL();V.prototype._slice=Se.Array.prototype.subarray||Se.Array.prototype.slice;V.prototype.uint32=function(){var r=4294967295;return function(){if(r=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(r=(r|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(r=(r|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(r=(r|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(r=(r|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return r;if((this.pos+=5)>this.len)throw this.pos=this.len,fe(this,10);return r}}();V.prototype.int32=function(){return this.uint32()|0};V.prototype.sint32=function(){var r=this.uint32();return r>>>1^-(r&1)|0};function oc(){var o=new rL(0,0),r=0;if(this.len-this.pos>4){for(;r<4;++r)if(o.lo=(o.lo|(this.buf[this.pos]&127)<<r*7)>>>0,this.buf[this.pos++]<128)return o;if(o.lo=(o.lo|(this.buf[this.pos]&127)<<28)>>>0,o.hi=(o.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return o;r=0}else{for(;r<3;++r){if(this.pos>=this.len)throw fe(this);if(o.lo=(o.lo|(this.buf[this.pos]&127)<<r*7)>>>0,this.buf[this.pos++]<128)return o}return o.lo=(o.lo|(this.buf[this.pos++]&127)<<r*7)>>>0,o}if(this.len-this.pos>4){for(;r<5;++r)if(o.hi=(o.hi|(this.buf[this.pos]&127)<<r*7+3)>>>0,this.buf[this.pos++]<128)return o}else for(;r<5;++r){if(this.pos>=this.len)throw fe(this);if(o.hi=(o.hi|(this.buf[this.pos]&127)<<r*7+3)>>>0,this.buf[this.pos++]<128)return o}throw Error("invalid varint encoding")}V.prototype.bool=function(){return this.uint32()!==0};function hi(o,r){return(o[r-4]|o[r-3]<<8|o[r-2]<<16|o[r-1]<<24)>>>0}V.prototype.fixed32=function(){if(this.pos+4>this.len)throw fe(this,4);return hi(this.buf,this.pos+=4)};V.prototype.sfixed32=function(){if(this.pos+4>this.len)throw fe(this,4);return hi(this.buf,this.pos+=4)|0};function tL(){if(this.pos+8>this.len)throw fe(this,8);return new rL(hi(this.buf,this.pos+=4),hi(this.buf,this.pos+=4))}V.prototype.float=function(){if(this.pos+4>this.len)throw fe(this,4);var r=Se.float.readFloatLE(this.buf,this.pos);return this.pos+=4,r};V.prototype.double=function(){if(this.pos+8>this.len)throw fe(this,4);var r=Se.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,r};V.prototype.bytes=function(){var r=this.uint32(),i=this.pos,c=this.pos+r;if(c>this.len)throw fe(this,r);if(this.pos+=r,Array.isArray(this.buf))return this.buf.slice(i,c);if(i===c){var a=Se.Buffer;return a?a.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,i,c)};V.prototype.string=function(){var r=this.bytes();return LX.read(r,0,r.length)};V.prototype.skip=function(r){if(typeof r=="number"){if(this.pos+r>this.len)throw fe(this,r);this.pos+=r}else do if(this.pos>=this.len)throw fe(this);while(this.buf[this.pos++]&128);return this};V.prototype.skipType=function(o){switch(o){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(o=this.uint32()&7)!==4;)this.skipType(o);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+o+" at offset "+this.pos)}return this};V._configure=function(o){ic=o,V.create=nL(),ic._configure();var r=Se.Long?"toLong":"toNumber";Se.merge(V.prototype,{int64:function(){return oc.call(this)[r](!1)},uint64:function(){return oc.call(this)[r](!0)},sint64:function(){return oc.call(this).zzDecode()[r](!1)},fixed64:function(){return tL.call(this)[r](!0)},sfixed64:function(){return tL.call(this)[r](!1)}})}});var sL=S((rte,uL)=>{"use strict";uL.exports=Et;var aL=ac();(Et.prototype=Object.create(aL.prototype)).constructor=Et;var iL=Xe();function Et(o){aL.call(this,o)}Et._configure=function(){iL.Buffer&&(Et.prototype._slice=iL.Buffer.prototype.slice)};Et.prototype.string=function(){var r=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+r,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+r,this.len))};Et._configure()});var lL=S((nte,cL)=>{"use strict";cL.exports=kr;var uc=Xe();(kr.prototype=Object.create(uc.EventEmitter.prototype)).constructor=kr;function kr(o,r,i){if(typeof o!="function")throw TypeError("rpcImpl must be a function");uc.EventEmitter.call(this),this.rpcImpl=o,this.requestDelimited=!!r,this.responseDelimited=!!i}kr.prototype.rpcCall=function o(r,i,c,a,u){if(!a)throw TypeError("request must be specified");var t=this;if(!u)return uc.asPromise(o,t,r,i,c,a);if(!t.rpcImpl){setTimeout(function(){u(Error("already ended"))},0);return}try{return t.rpcImpl(r,i[t.requestDelimited?"encodeDelimited":"encode"](a).finish(),function(n,s){if(n)return t.emit("error",n,r),u(n);if(s===null){t.end(!0);return}if(!(s instanceof c))try{s=c[t.responseDelimited?"decodeDelimited":"decode"](s)}catch(l){return t.emit("error",l,r),u(l)}return t.emit("data",s,r),u(null,s)})}catch(e){t.emit("error",e,r),setTimeout(function(){u(e)},0);return}};kr.prototype.end=function(r){return this.rpcImpl&&(r||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}});var _L=S(pL=>{"use strict";var IX=pL;IX.Service=lL()});var TL=S((ite,EL)=>{"use strict";EL.exports={}});var dL=S(fL=>{"use strict";var te=fL;te.build="minimal";te.Writer=nc();te.BufferWriter=Zg();te.Reader=ac();te.BufferReader=sL();te.util=Xe();te.rpc=_L();te.roots=TL();te.configure=SL;function SL(){te.util._configure(),te.Writer._configure(te.BufferWriter),te.Reader._configure(te.BufferReader)}SL()});var vL=S((ute,AL)=>{"use strict";AL.exports=dL()});var Ni=S((ste,OL)=>{"use strict";var v=vL(),T=v.Reader,h=v.Writer,_=v.util,p=v.roots.default||(v.roots.default={});p.opentelemetry=function(){var o={};return o.proto=function(){var r={};return r.common=function(){var i={};return i.v1=function(){var c={};return c.AnyValue=function(){function a(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}a.prototype.stringValue=null,a.prototype.boolValue=null,a.prototype.intValue=null,a.prototype.doubleValue=null,a.prototype.arrayValue=null,a.prototype.kvlistValue=null,a.prototype.bytesValue=null;var u;return Object.defineProperty(a.prototype,"value",{get:_.oneOfGetter(u=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"]),set:_.oneOfSetter(u)}),a.create=function(e){return new a(e)},a.encode=function(e,n){return n||(n=h.create()),e.stringValue!=null&&Object.hasOwnProperty.call(e,"stringValue")&&n.uint32(10).string(e.stringValue),e.boolValue!=null&&Object.hasOwnProperty.call(e,"boolValue")&&n.uint32(16).bool(e.boolValue),e.intValue!=null&&Object.hasOwnProperty.call(e,"intValue")&&n.uint32(24).int64(e.intValue),e.doubleValue!=null&&Object.hasOwnProperty.call(e,"doubleValue")&&n.uint32(33).double(e.doubleValue),e.arrayValue!=null&&Object.hasOwnProperty.call(e,"arrayValue")&&p.opentelemetry.proto.common.v1.ArrayValue.encode(e.arrayValue,n.uint32(42).fork()).ldelim(),e.kvlistValue!=null&&Object.hasOwnProperty.call(e,"kvlistValue")&&p.opentelemetry.proto.common.v1.KeyValueList.encode(e.kvlistValue,n.uint32(50).fork()).ldelim(),e.bytesValue!=null&&Object.hasOwnProperty.call(e,"bytesValue")&&n.uint32(58).bytes(e.bytesValue),n},a.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},a.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.common.v1.AnyValue;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.stringValue=e.string();break}case 2:{l.boolValue=e.bool();break}case 3:{l.intValue=e.int64();break}case 4:{l.doubleValue=e.double();break}case 5:{l.arrayValue=p.opentelemetry.proto.common.v1.ArrayValue.decode(e,e.uint32());break}case 6:{l.kvlistValue=p.opentelemetry.proto.common.v1.KeyValueList.decode(e,e.uint32());break}case 7:{l.bytesValue=e.bytes();break}default:e.skipType(E&7);break}}return l},a.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},a.verify=function(e){if(typeof e!="object"||e===null)return"object expected";var n={};if(e.stringValue!=null&&e.hasOwnProperty("stringValue")&&(n.value=1,!_.isString(e.stringValue)))return"stringValue: string expected";if(e.boolValue!=null&&e.hasOwnProperty("boolValue")){if(n.value===1)return"value: multiple values";if(n.value=1,typeof e.boolValue!="boolean")return"boolValue: boolean expected"}if(e.intValue!=null&&e.hasOwnProperty("intValue")){if(n.value===1)return"value: multiple values";if(n.value=1,!_.isInteger(e.intValue)&&!(e.intValue&&_.isInteger(e.intValue.low)&&_.isInteger(e.intValue.high)))return"intValue: integer|Long expected"}if(e.doubleValue!=null&&e.hasOwnProperty("doubleValue")){if(n.value===1)return"value: multiple values";if(n.value=1,typeof e.doubleValue!="number")return"doubleValue: number expected"}if(e.arrayValue!=null&&e.hasOwnProperty("arrayValue")){if(n.value===1)return"value: multiple values";n.value=1;{var s=p.opentelemetry.proto.common.v1.ArrayValue.verify(e.arrayValue);if(s)return"arrayValue."+s}}if(e.kvlistValue!=null&&e.hasOwnProperty("kvlistValue")){if(n.value===1)return"value: multiple values";n.value=1;{var s=p.opentelemetry.proto.common.v1.KeyValueList.verify(e.kvlistValue);if(s)return"kvlistValue."+s}}if(e.bytesValue!=null&&e.hasOwnProperty("bytesValue")){if(n.value===1)return"value: multiple values";if(n.value=1,!(e.bytesValue&&typeof e.bytesValue.length=="number"||_.isString(e.bytesValue)))return"bytesValue: buffer expected"}return null},a.fromObject=function(e){if(e instanceof p.opentelemetry.proto.common.v1.AnyValue)return e;var n=new p.opentelemetry.proto.common.v1.AnyValue;if(e.stringValue!=null&&(n.stringValue=String(e.stringValue)),e.boolValue!=null&&(n.boolValue=!!e.boolValue),e.intValue!=null&&(_.Long?(n.intValue=_.Long.fromValue(e.intValue)).unsigned=!1:typeof e.intValue=="string"?n.intValue=parseInt(e.intValue,10):typeof e.intValue=="number"?n.intValue=e.intValue:typeof e.intValue=="object"&&(n.intValue=new _.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber())),e.doubleValue!=null&&(n.doubleValue=Number(e.doubleValue)),e.arrayValue!=null){if(typeof e.arrayValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.arrayValue: object expected");n.arrayValue=p.opentelemetry.proto.common.v1.ArrayValue.fromObject(e.arrayValue)}if(e.kvlistValue!=null){if(typeof e.kvlistValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.kvlistValue: object expected");n.kvlistValue=p.opentelemetry.proto.common.v1.KeyValueList.fromObject(e.kvlistValue)}return e.bytesValue!=null&&(typeof e.bytesValue=="string"?_.base64.decode(e.bytesValue,n.bytesValue=_.newBuffer(_.base64.length(e.bytesValue)),0):e.bytesValue.length>=0&&(n.bytesValue=e.bytesValue)),n},a.toObject=function(e,n){n||(n={});var s={};return e.stringValue!=null&&e.hasOwnProperty("stringValue")&&(s.stringValue=e.stringValue,n.oneofs&&(s.value="stringValue")),e.boolValue!=null&&e.hasOwnProperty("boolValue")&&(s.boolValue=e.boolValue,n.oneofs&&(s.value="boolValue")),e.intValue!=null&&e.hasOwnProperty("intValue")&&(typeof e.intValue=="number"?s.intValue=n.longs===String?String(e.intValue):e.intValue:s.intValue=n.longs===String?_.Long.prototype.toString.call(e.intValue):n.longs===Number?new _.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber():e.intValue,n.oneofs&&(s.value="intValue")),e.doubleValue!=null&&e.hasOwnProperty("doubleValue")&&(s.doubleValue=n.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue,n.oneofs&&(s.value="doubleValue")),e.arrayValue!=null&&e.hasOwnProperty("arrayValue")&&(s.arrayValue=p.opentelemetry.proto.common.v1.ArrayValue.toObject(e.arrayValue,n),n.oneofs&&(s.value="arrayValue")),e.kvlistValue!=null&&e.hasOwnProperty("kvlistValue")&&(s.kvlistValue=p.opentelemetry.proto.common.v1.KeyValueList.toObject(e.kvlistValue,n),n.oneofs&&(s.value="kvlistValue")),e.bytesValue!=null&&e.hasOwnProperty("bytesValue")&&(s.bytesValue=n.bytes===String?_.base64.encode(e.bytesValue,0,e.bytesValue.length):n.bytes===Array?Array.prototype.slice.call(e.bytesValue):e.bytesValue,n.oneofs&&(s.value="bytesValue")),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.common.v1.AnyValue"},a}(),c.ArrayValue=function(){function a(u){if(this.values=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.values=_.emptyArray,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.values!=null&&t.values.length)for(var n=0;n<t.values.length;++n)p.opentelemetry.proto.common.v1.AnyValue.encode(t.values[n],e.uint32(10).fork()).ldelim();return e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.common.v1.ArrayValue;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.values&&s.values.length||(s.values=[]),s.values.push(p.opentelemetry.proto.common.v1.AnyValue.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.values!=null&&t.hasOwnProperty("values")){if(!Array.isArray(t.values))return"values: array expected";for(var e=0;e<t.values.length;++e){var n=p.opentelemetry.proto.common.v1.AnyValue.verify(t.values[e]);if(n)return"values."+n}}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.common.v1.ArrayValue)return t;var e=new p.opentelemetry.proto.common.v1.ArrayValue;if(t.values){if(!Array.isArray(t.values))throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: array expected");e.values=[];for(var n=0;n<t.values.length;++n){if(typeof t.values[n]!="object")throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: object expected");e.values[n]=p.opentelemetry.proto.common.v1.AnyValue.fromObject(t.values[n])}}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.values=[]),t.values&&t.values.length){n.values=[];for(var s=0;s<t.values.length;++s)n.values[s]=p.opentelemetry.proto.common.v1.AnyValue.toObject(t.values[s],e)}return n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.common.v1.ArrayValue"},a}(),c.KeyValueList=function(){function a(u){if(this.values=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.values=_.emptyArray,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.values!=null&&t.values.length)for(var n=0;n<t.values.length;++n)p.opentelemetry.proto.common.v1.KeyValue.encode(t.values[n],e.uint32(10).fork()).ldelim();return e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.common.v1.KeyValueList;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.values&&s.values.length||(s.values=[]),s.values.push(p.opentelemetry.proto.common.v1.KeyValue.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.values!=null&&t.hasOwnProperty("values")){if(!Array.isArray(t.values))return"values: array expected";for(var e=0;e<t.values.length;++e){var n=p.opentelemetry.proto.common.v1.KeyValue.verify(t.values[e]);if(n)return"values."+n}}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.common.v1.KeyValueList)return t;var e=new p.opentelemetry.proto.common.v1.KeyValueList;if(t.values){if(!Array.isArray(t.values))throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: array expected");e.values=[];for(var n=0;n<t.values.length;++n){if(typeof t.values[n]!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: object expected");e.values[n]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(t.values[n])}}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.values=[]),t.values&&t.values.length){n.values=[];for(var s=0;s<t.values.length;++s)n.values[s]=p.opentelemetry.proto.common.v1.KeyValue.toObject(t.values[s],e)}return n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.common.v1.KeyValueList"},a}(),c.KeyValue=function(){function a(u){if(u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.key=null,a.prototype.value=null,a.create=function(t){return new a(t)},a.encode=function(t,e){return e||(e=h.create()),t.key!=null&&Object.hasOwnProperty.call(t,"key")&&e.uint32(10).string(t.key),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&p.opentelemetry.proto.common.v1.AnyValue.encode(t.value,e.uint32(18).fork()).ldelim(),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.common.v1.KeyValue;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.key=t.string();break}case 2:{s.value=p.opentelemetry.proto.common.v1.AnyValue.decode(t,t.uint32());break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.key!=null&&t.hasOwnProperty("key")&&!_.isString(t.key))return"key: string expected";if(t.value!=null&&t.hasOwnProperty("value")){var e=p.opentelemetry.proto.common.v1.AnyValue.verify(t.value);if(e)return"value."+e}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.common.v1.KeyValue)return t;var e=new p.opentelemetry.proto.common.v1.KeyValue;if(t.key!=null&&(e.key=String(t.key)),t.value!=null){if(typeof t.value!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValue.value: object expected");e.value=p.opentelemetry.proto.common.v1.AnyValue.fromObject(t.value)}return e},a.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.key="",n.value=null),t.key!=null&&t.hasOwnProperty("key")&&(n.key=t.key),t.value!=null&&t.hasOwnProperty("value")&&(n.value=p.opentelemetry.proto.common.v1.AnyValue.toObject(t.value,e)),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.common.v1.KeyValue"},a}(),c.InstrumentationScope=function(){function a(u){if(this.attributes=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.name=null,a.prototype.version=null,a.prototype.attributes=_.emptyArray,a.prototype.droppedAttributesCount=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.name!=null&&Object.hasOwnProperty.call(t,"name")&&e.uint32(10).string(t.name),t.version!=null&&Object.hasOwnProperty.call(t,"version")&&e.uint32(18).string(t.version),t.attributes!=null&&t.attributes.length)for(var n=0;n<t.attributes.length;++n)p.opentelemetry.proto.common.v1.KeyValue.encode(t.attributes[n],e.uint32(26).fork()).ldelim();return t.droppedAttributesCount!=null&&Object.hasOwnProperty.call(t,"droppedAttributesCount")&&e.uint32(32).uint32(t.droppedAttributesCount),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.common.v1.InstrumentationScope;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.name=t.string();break}case 2:{s.version=t.string();break}case 3:{s.attributes&&s.attributes.length||(s.attributes=[]),s.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(t,t.uint32()));break}case 4:{s.droppedAttributesCount=t.uint32();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.name!=null&&t.hasOwnProperty("name")&&!_.isString(t.name))return"name: string expected";if(t.version!=null&&t.hasOwnProperty("version")&&!_.isString(t.version))return"version: string expected";if(t.attributes!=null&&t.hasOwnProperty("attributes")){if(!Array.isArray(t.attributes))return"attributes: array expected";for(var e=0;e<t.attributes.length;++e){var n=p.opentelemetry.proto.common.v1.KeyValue.verify(t.attributes[e]);if(n)return"attributes."+n}}return t.droppedAttributesCount!=null&&t.hasOwnProperty("droppedAttributesCount")&&!_.isInteger(t.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.common.v1.InstrumentationScope)return t;var e=new p.opentelemetry.proto.common.v1.InstrumentationScope;if(t.name!=null&&(e.name=String(t.name)),t.version!=null&&(e.version=String(t.version)),t.attributes){if(!Array.isArray(t.attributes))throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: array expected");e.attributes=[];for(var n=0;n<t.attributes.length;++n){if(typeof t.attributes[n]!="object")throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: object expected");e.attributes[n]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(t.attributes[n])}}return t.droppedAttributesCount!=null&&(e.droppedAttributesCount=t.droppedAttributesCount>>>0),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.attributes=[]),e.defaults&&(n.name="",n.version="",n.droppedAttributesCount=0),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.version!=null&&t.hasOwnProperty("version")&&(n.version=t.version),t.attributes&&t.attributes.length){n.attributes=[];for(var s=0;s<t.attributes.length;++s)n.attributes[s]=p.opentelemetry.proto.common.v1.KeyValue.toObject(t.attributes[s],e)}return t.droppedAttributesCount!=null&&t.hasOwnProperty("droppedAttributesCount")&&(n.droppedAttributesCount=t.droppedAttributesCount),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.common.v1.InstrumentationScope"},a}(),c}(),i}(),r.resource=function(){var i={};return i.v1=function(){var c={};return c.Resource=function(){function a(u){if(this.attributes=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.attributes=_.emptyArray,a.prototype.droppedAttributesCount=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.attributes!=null&&t.attributes.length)for(var n=0;n<t.attributes.length;++n)p.opentelemetry.proto.common.v1.KeyValue.encode(t.attributes[n],e.uint32(10).fork()).ldelim();return t.droppedAttributesCount!=null&&Object.hasOwnProperty.call(t,"droppedAttributesCount")&&e.uint32(16).uint32(t.droppedAttributesCount),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.resource.v1.Resource;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.attributes&&s.attributes.length||(s.attributes=[]),s.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(t,t.uint32()));break}case 2:{s.droppedAttributesCount=t.uint32();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.attributes!=null&&t.hasOwnProperty("attributes")){if(!Array.isArray(t.attributes))return"attributes: array expected";for(var e=0;e<t.attributes.length;++e){var n=p.opentelemetry.proto.common.v1.KeyValue.verify(t.attributes[e]);if(n)return"attributes."+n}}return t.droppedAttributesCount!=null&&t.hasOwnProperty("droppedAttributesCount")&&!_.isInteger(t.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.resource.v1.Resource)return t;var e=new p.opentelemetry.proto.resource.v1.Resource;if(t.attributes){if(!Array.isArray(t.attributes))throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: array expected");e.attributes=[];for(var n=0;n<t.attributes.length;++n){if(typeof t.attributes[n]!="object")throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: object expected");e.attributes[n]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(t.attributes[n])}}return t.droppedAttributesCount!=null&&(e.droppedAttributesCount=t.droppedAttributesCount>>>0),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.attributes=[]),e.defaults&&(n.droppedAttributesCount=0),t.attributes&&t.attributes.length){n.attributes=[];for(var s=0;s<t.attributes.length;++s)n.attributes[s]=p.opentelemetry.proto.common.v1.KeyValue.toObject(t.attributes[s],e)}return t.droppedAttributesCount!=null&&t.hasOwnProperty("droppedAttributesCount")&&(n.droppedAttributesCount=t.droppedAttributesCount),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.resource.v1.Resource"},a}(),c}(),i}(),r.trace=function(){var i={};return i.v1=function(){var c={};return c.TracesData=function(){function a(u){if(this.resourceSpans=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.resourceSpans=_.emptyArray,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.resourceSpans!=null&&t.resourceSpans.length)for(var n=0;n<t.resourceSpans.length;++n)p.opentelemetry.proto.trace.v1.ResourceSpans.encode(t.resourceSpans[n],e.uint32(10).fork()).ldelim();return e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.trace.v1.TracesData;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.resourceSpans&&s.resourceSpans.length||(s.resourceSpans=[]),s.resourceSpans.push(p.opentelemetry.proto.trace.v1.ResourceSpans.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.resourceSpans!=null&&t.hasOwnProperty("resourceSpans")){if(!Array.isArray(t.resourceSpans))return"resourceSpans: array expected";for(var e=0;e<t.resourceSpans.length;++e){var n=p.opentelemetry.proto.trace.v1.ResourceSpans.verify(t.resourceSpans[e]);if(n)return"resourceSpans."+n}}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.trace.v1.TracesData)return t;var e=new p.opentelemetry.proto.trace.v1.TracesData;if(t.resourceSpans){if(!Array.isArray(t.resourceSpans))throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: array expected");e.resourceSpans=[];for(var n=0;n<t.resourceSpans.length;++n){if(typeof t.resourceSpans[n]!="object")throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: object expected");e.resourceSpans[n]=p.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(t.resourceSpans[n])}}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.resourceSpans=[]),t.resourceSpans&&t.resourceSpans.length){n.resourceSpans=[];for(var s=0;s<t.resourceSpans.length;++s)n.resourceSpans[s]=p.opentelemetry.proto.trace.v1.ResourceSpans.toObject(t.resourceSpans[s],e)}return n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.trace.v1.TracesData"},a}(),c.ResourceSpans=function(){function a(u){if(this.scopeSpans=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.resource=null,a.prototype.scopeSpans=_.emptyArray,a.prototype.schemaUrl=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.resource!=null&&Object.hasOwnProperty.call(t,"resource")&&p.opentelemetry.proto.resource.v1.Resource.encode(t.resource,e.uint32(10).fork()).ldelim(),t.scopeSpans!=null&&t.scopeSpans.length)for(var n=0;n<t.scopeSpans.length;++n)p.opentelemetry.proto.trace.v1.ScopeSpans.encode(t.scopeSpans[n],e.uint32(18).fork()).ldelim();return t.schemaUrl!=null&&Object.hasOwnProperty.call(t,"schemaUrl")&&e.uint32(26).string(t.schemaUrl),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.trace.v1.ResourceSpans;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.resource=p.opentelemetry.proto.resource.v1.Resource.decode(t,t.uint32());break}case 2:{s.scopeSpans&&s.scopeSpans.length||(s.scopeSpans=[]),s.scopeSpans.push(p.opentelemetry.proto.trace.v1.ScopeSpans.decode(t,t.uint32()));break}case 3:{s.schemaUrl=t.string();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.resource!=null&&t.hasOwnProperty("resource")){var e=p.opentelemetry.proto.resource.v1.Resource.verify(t.resource);if(e)return"resource."+e}if(t.scopeSpans!=null&&t.hasOwnProperty("scopeSpans")){if(!Array.isArray(t.scopeSpans))return"scopeSpans: array expected";for(var n=0;n<t.scopeSpans.length;++n){var e=p.opentelemetry.proto.trace.v1.ScopeSpans.verify(t.scopeSpans[n]);if(e)return"scopeSpans."+e}}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&!_.isString(t.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.trace.v1.ResourceSpans)return t;var e=new p.opentelemetry.proto.trace.v1.ResourceSpans;if(t.resource!=null){if(typeof t.resource!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.resource: object expected");e.resource=p.opentelemetry.proto.resource.v1.Resource.fromObject(t.resource)}if(t.scopeSpans){if(!Array.isArray(t.scopeSpans))throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: array expected");e.scopeSpans=[];for(var n=0;n<t.scopeSpans.length;++n){if(typeof t.scopeSpans[n]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: object expected");e.scopeSpans[n]=p.opentelemetry.proto.trace.v1.ScopeSpans.fromObject(t.scopeSpans[n])}}return t.schemaUrl!=null&&(e.schemaUrl=String(t.schemaUrl)),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.scopeSpans=[]),e.defaults&&(n.resource=null,n.schemaUrl=""),t.resource!=null&&t.hasOwnProperty("resource")&&(n.resource=p.opentelemetry.proto.resource.v1.Resource.toObject(t.resource,e)),t.scopeSpans&&t.scopeSpans.length){n.scopeSpans=[];for(var s=0;s<t.scopeSpans.length;++s)n.scopeSpans[s]=p.opentelemetry.proto.trace.v1.ScopeSpans.toObject(t.scopeSpans[s],e)}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&(n.schemaUrl=t.schemaUrl),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.trace.v1.ResourceSpans"},a}(),c.ScopeSpans=function(){function a(u){if(this.spans=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.scope=null,a.prototype.spans=_.emptyArray,a.prototype.schemaUrl=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.scope!=null&&Object.hasOwnProperty.call(t,"scope")&&p.opentelemetry.proto.common.v1.InstrumentationScope.encode(t.scope,e.uint32(10).fork()).ldelim(),t.spans!=null&&t.spans.length)for(var n=0;n<t.spans.length;++n)p.opentelemetry.proto.trace.v1.Span.encode(t.spans[n],e.uint32(18).fork()).ldelim();return t.schemaUrl!=null&&Object.hasOwnProperty.call(t,"schemaUrl")&&e.uint32(26).string(t.schemaUrl),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.trace.v1.ScopeSpans;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.scope=p.opentelemetry.proto.common.v1.InstrumentationScope.decode(t,t.uint32());break}case 2:{s.spans&&s.spans.length||(s.spans=[]),s.spans.push(p.opentelemetry.proto.trace.v1.Span.decode(t,t.uint32()));break}case 3:{s.schemaUrl=t.string();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.scope!=null&&t.hasOwnProperty("scope")){var e=p.opentelemetry.proto.common.v1.InstrumentationScope.verify(t.scope);if(e)return"scope."+e}if(t.spans!=null&&t.hasOwnProperty("spans")){if(!Array.isArray(t.spans))return"spans: array expected";for(var n=0;n<t.spans.length;++n){var e=p.opentelemetry.proto.trace.v1.Span.verify(t.spans[n]);if(e)return"spans."+e}}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&!_.isString(t.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.trace.v1.ScopeSpans)return t;var e=new p.opentelemetry.proto.trace.v1.ScopeSpans;if(t.scope!=null){if(typeof t.scope!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.scope: object expected");e.scope=p.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(t.scope)}if(t.spans){if(!Array.isArray(t.spans))throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: array expected");e.spans=[];for(var n=0;n<t.spans.length;++n){if(typeof t.spans[n]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: object expected");e.spans[n]=p.opentelemetry.proto.trace.v1.Span.fromObject(t.spans[n])}}return t.schemaUrl!=null&&(e.schemaUrl=String(t.schemaUrl)),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.spans=[]),e.defaults&&(n.scope=null,n.schemaUrl=""),t.scope!=null&&t.hasOwnProperty("scope")&&(n.scope=p.opentelemetry.proto.common.v1.InstrumentationScope.toObject(t.scope,e)),t.spans&&t.spans.length){n.spans=[];for(var s=0;s<t.spans.length;++s)n.spans[s]=p.opentelemetry.proto.trace.v1.Span.toObject(t.spans[s],e)}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&(n.schemaUrl=t.schemaUrl),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.trace.v1.ScopeSpans"},a}(),c.Span=function(){function a(u){if(this.attributes=[],this.events=[],this.links=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.traceId=null,a.prototype.spanId=null,a.prototype.traceState=null,a.prototype.parentSpanId=null,a.prototype.name=null,a.prototype.kind=null,a.prototype.startTimeUnixNano=null,a.prototype.endTimeUnixNano=null,a.prototype.attributes=_.emptyArray,a.prototype.droppedAttributesCount=null,a.prototype.events=_.emptyArray,a.prototype.droppedEventsCount=null,a.prototype.links=_.emptyArray,a.prototype.droppedLinksCount=null,a.prototype.status=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.traceId!=null&&Object.hasOwnProperty.call(t,"traceId")&&e.uint32(10).bytes(t.traceId),t.spanId!=null&&Object.hasOwnProperty.call(t,"spanId")&&e.uint32(18).bytes(t.spanId),t.traceState!=null&&Object.hasOwnProperty.call(t,"traceState")&&e.uint32(26).string(t.traceState),t.parentSpanId!=null&&Object.hasOwnProperty.call(t,"parentSpanId")&&e.uint32(34).bytes(t.parentSpanId),t.name!=null&&Object.hasOwnProperty.call(t,"name")&&e.uint32(42).string(t.name),t.kind!=null&&Object.hasOwnProperty.call(t,"kind")&&e.uint32(48).int32(t.kind),t.startTimeUnixNano!=null&&Object.hasOwnProperty.call(t,"startTimeUnixNano")&&e.uint32(57).fixed64(t.startTimeUnixNano),t.endTimeUnixNano!=null&&Object.hasOwnProperty.call(t,"endTimeUnixNano")&&e.uint32(65).fixed64(t.endTimeUnixNano),t.attributes!=null&&t.attributes.length)for(var n=0;n<t.attributes.length;++n)p.opentelemetry.proto.common.v1.KeyValue.encode(t.attributes[n],e.uint32(74).fork()).ldelim();if(t.droppedAttributesCount!=null&&Object.hasOwnProperty.call(t,"droppedAttributesCount")&&e.uint32(80).uint32(t.droppedAttributesCount),t.events!=null&&t.events.length)for(var n=0;n<t.events.length;++n)p.opentelemetry.proto.trace.v1.Span.Event.encode(t.events[n],e.uint32(90).fork()).ldelim();if(t.droppedEventsCount!=null&&Object.hasOwnProperty.call(t,"droppedEventsCount")&&e.uint32(96).uint32(t.droppedEventsCount),t.links!=null&&t.links.length)for(var n=0;n<t.links.length;++n)p.opentelemetry.proto.trace.v1.Span.Link.encode(t.links[n],e.uint32(106).fork()).ldelim();return t.droppedLinksCount!=null&&Object.hasOwnProperty.call(t,"droppedLinksCount")&&e.uint32(112).uint32(t.droppedLinksCount),t.status!=null&&Object.hasOwnProperty.call(t,"status")&&p.opentelemetry.proto.trace.v1.Status.encode(t.status,e.uint32(122).fork()).ldelim(),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.trace.v1.Span;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.traceId=t.bytes();break}case 2:{s.spanId=t.bytes();break}case 3:{s.traceState=t.string();break}case 4:{s.parentSpanId=t.bytes();break}case 5:{s.name=t.string();break}case 6:{s.kind=t.int32();break}case 7:{s.startTimeUnixNano=t.fixed64();break}case 8:{s.endTimeUnixNano=t.fixed64();break}case 9:{s.attributes&&s.attributes.length||(s.attributes=[]),s.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(t,t.uint32()));break}case 10:{s.droppedAttributesCount=t.uint32();break}case 11:{s.events&&s.events.length||(s.events=[]),s.events.push(p.opentelemetry.proto.trace.v1.Span.Event.decode(t,t.uint32()));break}case 12:{s.droppedEventsCount=t.uint32();break}case 13:{s.links&&s.links.length||(s.links=[]),s.links.push(p.opentelemetry.proto.trace.v1.Span.Link.decode(t,t.uint32()));break}case 14:{s.droppedLinksCount=t.uint32();break}case 15:{s.status=p.opentelemetry.proto.trace.v1.Status.decode(t,t.uint32());break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.traceId!=null&&t.hasOwnProperty("traceId")&&!(t.traceId&&typeof t.traceId.length=="number"||_.isString(t.traceId)))return"traceId: buffer expected";if(t.spanId!=null&&t.hasOwnProperty("spanId")&&!(t.spanId&&typeof t.spanId.length=="number"||_.isString(t.spanId)))return"spanId: buffer expected";if(t.traceState!=null&&t.hasOwnProperty("traceState")&&!_.isString(t.traceState))return"traceState: string expected";if(t.parentSpanId!=null&&t.hasOwnProperty("parentSpanId")&&!(t.parentSpanId&&typeof t.parentSpanId.length=="number"||_.isString(t.parentSpanId)))return"parentSpanId: buffer expected";if(t.name!=null&&t.hasOwnProperty("name")&&!_.isString(t.name))return"name: string expected";if(t.kind!=null&&t.hasOwnProperty("kind"))switch(t.kind){default:return"kind: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:break}if(t.startTimeUnixNano!=null&&t.hasOwnProperty("startTimeUnixNano")&&!_.isInteger(t.startTimeUnixNano)&&!(t.startTimeUnixNano&&_.isInteger(t.startTimeUnixNano.low)&&_.isInteger(t.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(t.endTimeUnixNano!=null&&t.hasOwnProperty("endTimeUnixNano")&&!_.isInteger(t.endTimeUnixNano)&&!(t.endTimeUnixNano&&_.isInteger(t.endTimeUnixNano.low)&&_.isInteger(t.endTimeUnixNano.high)))return"endTimeUnixNano: integer|Long expected";if(t.attributes!=null&&t.hasOwnProperty("attributes")){if(!Array.isArray(t.attributes))return"attributes: array expected";for(var e=0;e<t.attributes.length;++e){var n=p.opentelemetry.proto.common.v1.KeyValue.verify(t.attributes[e]);if(n)return"attributes."+n}}if(t.droppedAttributesCount!=null&&t.hasOwnProperty("droppedAttributesCount")&&!_.isInteger(t.droppedAttributesCount))return"droppedAttributesCount: integer expected";if(t.events!=null&&t.hasOwnProperty("events")){if(!Array.isArray(t.events))return"events: array expected";for(var e=0;e<t.events.length;++e){var n=p.opentelemetry.proto.trace.v1.Span.Event.verify(t.events[e]);if(n)return"events."+n}}if(t.droppedEventsCount!=null&&t.hasOwnProperty("droppedEventsCount")&&!_.isInteger(t.droppedEventsCount))return"droppedEventsCount: integer expected";if(t.links!=null&&t.hasOwnProperty("links")){if(!Array.isArray(t.links))return"links: array expected";for(var e=0;e<t.links.length;++e){var n=p.opentelemetry.proto.trace.v1.Span.Link.verify(t.links[e]);if(n)return"links."+n}}if(t.droppedLinksCount!=null&&t.hasOwnProperty("droppedLinksCount")&&!_.isInteger(t.droppedLinksCount))return"droppedLinksCount: integer expected";if(t.status!=null&&t.hasOwnProperty("status")){var n=p.opentelemetry.proto.trace.v1.Status.verify(t.status);if(n)return"status."+n}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.trace.v1.Span)return t;var e=new p.opentelemetry.proto.trace.v1.Span;switch(t.traceId!=null&&(typeof t.traceId=="string"?_.base64.decode(t.traceId,e.traceId=_.newBuffer(_.base64.length(t.traceId)),0):t.traceId.length>=0&&(e.traceId=t.traceId)),t.spanId!=null&&(typeof t.spanId=="string"?_.base64.decode(t.spanId,e.spanId=_.newBuffer(_.base64.length(t.spanId)),0):t.spanId.length>=0&&(e.spanId=t.spanId)),t.traceState!=null&&(e.traceState=String(t.traceState)),t.parentSpanId!=null&&(typeof t.parentSpanId=="string"?_.base64.decode(t.parentSpanId,e.parentSpanId=_.newBuffer(_.base64.length(t.parentSpanId)),0):t.parentSpanId.length>=0&&(e.parentSpanId=t.parentSpanId)),t.name!=null&&(e.name=String(t.name)),t.kind){default:if(typeof t.kind=="number"){e.kind=t.kind;break}break;case"SPAN_KIND_UNSPECIFIED":case 0:e.kind=0;break;case"SPAN_KIND_INTERNAL":case 1:e.kind=1;break;case"SPAN_KIND_SERVER":case 2:e.kind=2;break;case"SPAN_KIND_CLIENT":case 3:e.kind=3;break;case"SPAN_KIND_PRODUCER":case 4:e.kind=4;break;case"SPAN_KIND_CONSUMER":case 5:e.kind=5;break}if(t.startTimeUnixNano!=null&&(_.Long?(e.startTimeUnixNano=_.Long.fromValue(t.startTimeUnixNano)).unsigned=!1:typeof t.startTimeUnixNano=="string"?e.startTimeUnixNano=parseInt(t.startTimeUnixNano,10):typeof t.startTimeUnixNano=="number"?e.startTimeUnixNano=t.startTimeUnixNano:typeof t.startTimeUnixNano=="object"&&(e.startTimeUnixNano=new _.LongBits(t.startTimeUnixNano.low>>>0,t.startTimeUnixNano.high>>>0).toNumber())),t.endTimeUnixNano!=null&&(_.Long?(e.endTimeUnixNano=_.Long.fromValue(t.endTimeUnixNano)).unsigned=!1:typeof t.endTimeUnixNano=="string"?e.endTimeUnixNano=parseInt(t.endTimeUnixNano,10):typeof t.endTimeUnixNano=="number"?e.endTimeUnixNano=t.endTimeUnixNano:typeof t.endTimeUnixNano=="object"&&(e.endTimeUnixNano=new _.LongBits(t.endTimeUnixNano.low>>>0,t.endTimeUnixNano.high>>>0).toNumber())),t.attributes){if(!Array.isArray(t.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: array expected");e.attributes=[];for(var n=0;n<t.attributes.length;++n){if(typeof t.attributes[n]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: object expected");e.attributes[n]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(t.attributes[n])}}if(t.droppedAttributesCount!=null&&(e.droppedAttributesCount=t.droppedAttributesCount>>>0),t.events){if(!Array.isArray(t.events))throw TypeError(".opentelemetry.proto.trace.v1.Span.events: array expected");e.events=[];for(var n=0;n<t.events.length;++n){if(typeof t.events[n]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.events: object expected");e.events[n]=p.opentelemetry.proto.trace.v1.Span.Event.fromObject(t.events[n])}}if(t.droppedEventsCount!=null&&(e.droppedEventsCount=t.droppedEventsCount>>>0),t.links){if(!Array.isArray(t.links))throw TypeError(".opentelemetry.proto.trace.v1.Span.links: array expected");e.links=[];for(var n=0;n<t.links.length;++n){if(typeof t.links[n]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.links: object expected");e.links[n]=p.opentelemetry.proto.trace.v1.Span.Link.fromObject(t.links[n])}}if(t.droppedLinksCount!=null&&(e.droppedLinksCount=t.droppedLinksCount>>>0),t.status!=null){if(typeof t.status!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.status: object expected");e.status=p.opentelemetry.proto.trace.v1.Status.fromObject(t.status)}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.attributes=[],n.events=[],n.links=[]),e.defaults){if(e.bytes===String?n.traceId="":(n.traceId=[],e.bytes!==Array&&(n.traceId=_.newBuffer(n.traceId))),e.bytes===String?n.spanId="":(n.spanId=[],e.bytes!==Array&&(n.spanId=_.newBuffer(n.spanId))),n.traceState="",e.bytes===String?n.parentSpanId="":(n.parentSpanId=[],e.bytes!==Array&&(n.parentSpanId=_.newBuffer(n.parentSpanId))),n.name="",n.kind=e.enums===String?"SPAN_KIND_UNSPECIFIED":0,_.Long){var s=new _.Long(0,0,!1);n.startTimeUnixNano=e.longs===String?s.toString():e.longs===Number?s.toNumber():s}else n.startTimeUnixNano=e.longs===String?"0":0;if(_.Long){var s=new _.Long(0,0,!1);n.endTimeUnixNano=e.longs===String?s.toString():e.longs===Number?s.toNumber():s}else n.endTimeUnixNano=e.longs===String?"0":0;n.droppedAttributesCount=0,n.droppedEventsCount=0,n.droppedLinksCount=0,n.status=null}if(t.traceId!=null&&t.hasOwnProperty("traceId")&&(n.traceId=e.bytes===String?_.base64.encode(t.traceId,0,t.traceId.length):e.bytes===Array?Array.prototype.slice.call(t.traceId):t.traceId),t.spanId!=null&&t.hasOwnProperty("spanId")&&(n.spanId=e.bytes===String?_.base64.encode(t.spanId,0,t.spanId.length):e.bytes===Array?Array.prototype.slice.call(t.spanId):t.spanId),t.traceState!=null&&t.hasOwnProperty("traceState")&&(n.traceState=t.traceState),t.parentSpanId!=null&&t.hasOwnProperty("parentSpanId")&&(n.parentSpanId=e.bytes===String?_.base64.encode(t.parentSpanId,0,t.parentSpanId.length):e.bytes===Array?Array.prototype.slice.call(t.parentSpanId):t.parentSpanId),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.kind!=null&&t.hasOwnProperty("kind")&&(n.kind=e.enums===String?p.opentelemetry.proto.trace.v1.Span.SpanKind[t.kind]===void 0?t.kind:p.opentelemetry.proto.trace.v1.Span.SpanKind[t.kind]:t.kind),t.startTimeUnixNano!=null&&t.hasOwnProperty("startTimeUnixNano")&&(typeof t.startTimeUnixNano=="number"?n.startTimeUnixNano=e.longs===String?String(t.startTimeUnixNano):t.startTimeUnixNano:n.startTimeUnixNano=e.longs===String?_.Long.prototype.toString.call(t.startTimeUnixNano):e.longs===Number?new _.LongBits(t.startTimeUnixNano.low>>>0,t.startTimeUnixNano.high>>>0).toNumber():t.startTimeUnixNano),t.endTimeUnixNano!=null&&t.hasOwnProperty("endTimeUnixNano")&&(typeof t.endTimeUnixNano=="number"?n.endTimeUnixNano=e.longs===String?String(t.endTimeUnixNano):t.endTimeUnixNano:n.endTimeUnixNano=e.longs===String?_.Long.prototype.toString.call(t.endTimeUnixNano):e.longs===Number?new _.LongBits(t.endTimeUnixNano.low>>>0,t.endTimeUnixNano.high>>>0).toNumber():t.endTimeUnixNano),t.attributes&&t.attributes.length){n.attributes=[];for(var l=0;l<t.attributes.length;++l)n.attributes[l]=p.opentelemetry.proto.common.v1.KeyValue.toObject(t.attributes[l],e)}if(t.droppedAttributesCount!=null&&t.hasOwnProperty("droppedAttributesCount")&&(n.droppedAttributesCount=t.droppedAttributesCount),t.events&&t.events.length){n.events=[];for(var l=0;l<t.events.length;++l)n.events[l]=p.opentelemetry.proto.trace.v1.Span.Event.toObject(t.events[l],e)}if(t.droppedEventsCount!=null&&t.hasOwnProperty("droppedEventsCount")&&(n.droppedEventsCount=t.droppedEventsCount),t.links&&t.links.length){n.links=[];for(var l=0;l<t.links.length;++l)n.links[l]=p.opentelemetry.proto.trace.v1.Span.Link.toObject(t.links[l],e)}return t.droppedLinksCount!=null&&t.hasOwnProperty("droppedLinksCount")&&(n.droppedLinksCount=t.droppedLinksCount),t.status!=null&&t.hasOwnProperty("status")&&(n.status=p.opentelemetry.proto.trace.v1.Status.toObject(t.status,e)),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.trace.v1.Span"},a.SpanKind=function(){var u={},t=Object.create(u);return t[u[0]="SPAN_KIND_UNSPECIFIED"]=0,t[u[1]="SPAN_KIND_INTERNAL"]=1,t[u[2]="SPAN_KIND_SERVER"]=2,t[u[3]="SPAN_KIND_CLIENT"]=3,t[u[4]="SPAN_KIND_PRODUCER"]=4,t[u[5]="SPAN_KIND_CONSUMER"]=5,t}(),a.Event=function(){function u(t){if(this.attributes=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.timeUnixNano=null,u.prototype.name=null,u.prototype.attributes=_.emptyArray,u.prototype.droppedAttributesCount=null,u.create=function(e){return new u(e)},u.encode=function(e,n){if(n||(n=h.create()),e.timeUnixNano!=null&&Object.hasOwnProperty.call(e,"timeUnixNano")&&n.uint32(9).fixed64(e.timeUnixNano),e.name!=null&&Object.hasOwnProperty.call(e,"name")&&n.uint32(18).string(e.name),e.attributes!=null&&e.attributes.length)for(var s=0;s<e.attributes.length;++s)p.opentelemetry.proto.common.v1.KeyValue.encode(e.attributes[s],n.uint32(26).fork()).ldelim();return e.droppedAttributesCount!=null&&Object.hasOwnProperty.call(e,"droppedAttributesCount")&&n.uint32(32).uint32(e.droppedAttributesCount),n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.trace.v1.Span.Event;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.timeUnixNano=e.fixed64();break}case 2:{l.name=e.string();break}case 3:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(e,e.uint32()));break}case 4:{l.droppedAttributesCount=e.uint32();break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&!_.isInteger(e.timeUnixNano)&&!(e.timeUnixNano&&_.isInteger(e.timeUnixNano.low)&&_.isInteger(e.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(e.name!=null&&e.hasOwnProperty("name")&&!_.isString(e.name))return"name: string expected";if(e.attributes!=null&&e.hasOwnProperty("attributes")){if(!Array.isArray(e.attributes))return"attributes: array expected";for(var n=0;n<e.attributes.length;++n){var s=p.opentelemetry.proto.common.v1.KeyValue.verify(e.attributes[n]);if(s)return"attributes."+s}}return e.droppedAttributesCount!=null&&e.hasOwnProperty("droppedAttributesCount")&&!_.isInteger(e.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.trace.v1.Span.Event)return e;var n=new p.opentelemetry.proto.trace.v1.Span.Event;if(e.timeUnixNano!=null&&(_.Long?(n.timeUnixNano=_.Long.fromValue(e.timeUnixNano)).unsigned=!1:typeof e.timeUnixNano=="string"?n.timeUnixNano=parseInt(e.timeUnixNano,10):typeof e.timeUnixNano=="number"?n.timeUnixNano=e.timeUnixNano:typeof e.timeUnixNano=="object"&&(n.timeUnixNano=new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber())),e.name!=null&&(n.name=String(e.name)),e.attributes){if(!Array.isArray(e.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: array expected");n.attributes=[];for(var s=0;s<e.attributes.length;++s){if(typeof e.attributes[s]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: object expected");n.attributes[s]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(e.attributes[s])}}return e.droppedAttributesCount!=null&&(n.droppedAttributesCount=e.droppedAttributesCount>>>0),n},u.toObject=function(e,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.attributes=[]),n.defaults){if(_.Long){var l=new _.Long(0,0,!1);s.timeUnixNano=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.timeUnixNano=n.longs===String?"0":0;s.name="",s.droppedAttributesCount=0}if(e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&(typeof e.timeUnixNano=="number"?s.timeUnixNano=n.longs===String?String(e.timeUnixNano):e.timeUnixNano:s.timeUnixNano=n.longs===String?_.Long.prototype.toString.call(e.timeUnixNano):n.longs===Number?new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber():e.timeUnixNano),e.name!=null&&e.hasOwnProperty("name")&&(s.name=e.name),e.attributes&&e.attributes.length){s.attributes=[];for(var E=0;E<e.attributes.length;++E)s.attributes[E]=p.opentelemetry.proto.common.v1.KeyValue.toObject(e.attributes[E],n)}return e.droppedAttributesCount!=null&&e.hasOwnProperty("droppedAttributesCount")&&(s.droppedAttributesCount=e.droppedAttributesCount),s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.trace.v1.Span.Event"},u}(),a.Link=function(){function u(t){if(this.attributes=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.traceId=null,u.prototype.spanId=null,u.prototype.traceState=null,u.prototype.attributes=_.emptyArray,u.prototype.droppedAttributesCount=null,u.create=function(e){return new u(e)},u.encode=function(e,n){if(n||(n=h.create()),e.traceId!=null&&Object.hasOwnProperty.call(e,"traceId")&&n.uint32(10).bytes(e.traceId),e.spanId!=null&&Object.hasOwnProperty.call(e,"spanId")&&n.uint32(18).bytes(e.spanId),e.traceState!=null&&Object.hasOwnProperty.call(e,"traceState")&&n.uint32(26).string(e.traceState),e.attributes!=null&&e.attributes.length)for(var s=0;s<e.attributes.length;++s)p.opentelemetry.proto.common.v1.KeyValue.encode(e.attributes[s],n.uint32(34).fork()).ldelim();return e.droppedAttributesCount!=null&&Object.hasOwnProperty.call(e,"droppedAttributesCount")&&n.uint32(40).uint32(e.droppedAttributesCount),n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.trace.v1.Span.Link;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.traceId=e.bytes();break}case 2:{l.spanId=e.bytes();break}case 3:{l.traceState=e.string();break}case 4:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(e,e.uint32()));break}case 5:{l.droppedAttributesCount=e.uint32();break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.traceId!=null&&e.hasOwnProperty("traceId")&&!(e.traceId&&typeof e.traceId.length=="number"||_.isString(e.traceId)))return"traceId: buffer expected";if(e.spanId!=null&&e.hasOwnProperty("spanId")&&!(e.spanId&&typeof e.spanId.length=="number"||_.isString(e.spanId)))return"spanId: buffer expected";if(e.traceState!=null&&e.hasOwnProperty("traceState")&&!_.isString(e.traceState))return"traceState: string expected";if(e.attributes!=null&&e.hasOwnProperty("attributes")){if(!Array.isArray(e.attributes))return"attributes: array expected";for(var n=0;n<e.attributes.length;++n){var s=p.opentelemetry.proto.common.v1.KeyValue.verify(e.attributes[n]);if(s)return"attributes."+s}}return e.droppedAttributesCount!=null&&e.hasOwnProperty("droppedAttributesCount")&&!_.isInteger(e.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.trace.v1.Span.Link)return e;var n=new p.opentelemetry.proto.trace.v1.Span.Link;if(e.traceId!=null&&(typeof e.traceId=="string"?_.base64.decode(e.traceId,n.traceId=_.newBuffer(_.base64.length(e.traceId)),0):e.traceId.length>=0&&(n.traceId=e.traceId)),e.spanId!=null&&(typeof e.spanId=="string"?_.base64.decode(e.spanId,n.spanId=_.newBuffer(_.base64.length(e.spanId)),0):e.spanId.length>=0&&(n.spanId=e.spanId)),e.traceState!=null&&(n.traceState=String(e.traceState)),e.attributes){if(!Array.isArray(e.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: array expected");n.attributes=[];for(var s=0;s<e.attributes.length;++s){if(typeof e.attributes[s]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: object expected");n.attributes[s]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(e.attributes[s])}}return e.droppedAttributesCount!=null&&(n.droppedAttributesCount=e.droppedAttributesCount>>>0),n},u.toObject=function(e,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.attributes=[]),n.defaults&&(n.bytes===String?s.traceId="":(s.traceId=[],n.bytes!==Array&&(s.traceId=_.newBuffer(s.traceId))),n.bytes===String?s.spanId="":(s.spanId=[],n.bytes!==Array&&(s.spanId=_.newBuffer(s.spanId))),s.traceState="",s.droppedAttributesCount=0),e.traceId!=null&&e.hasOwnProperty("traceId")&&(s.traceId=n.bytes===String?_.base64.encode(e.traceId,0,e.traceId.length):n.bytes===Array?Array.prototype.slice.call(e.traceId):e.traceId),e.spanId!=null&&e.hasOwnProperty("spanId")&&(s.spanId=n.bytes===String?_.base64.encode(e.spanId,0,e.spanId.length):n.bytes===Array?Array.prototype.slice.call(e.spanId):e.spanId),e.traceState!=null&&e.hasOwnProperty("traceState")&&(s.traceState=e.traceState),e.attributes&&e.attributes.length){s.attributes=[];for(var l=0;l<e.attributes.length;++l)s.attributes[l]=p.opentelemetry.proto.common.v1.KeyValue.toObject(e.attributes[l],n)}return e.droppedAttributesCount!=null&&e.hasOwnProperty("droppedAttributesCount")&&(s.droppedAttributesCount=e.droppedAttributesCount),s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.trace.v1.Span.Link"},u}(),a}(),c.Status=function(){function a(u){if(u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.message=null,a.prototype.code=null,a.create=function(t){return new a(t)},a.encode=function(t,e){return e||(e=h.create()),t.message!=null&&Object.hasOwnProperty.call(t,"message")&&e.uint32(18).string(t.message),t.code!=null&&Object.hasOwnProperty.call(t,"code")&&e.uint32(24).int32(t.code),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.trace.v1.Status;t.pos<n;){var l=t.uint32();switch(l>>>3){case 2:{s.message=t.string();break}case 3:{s.code=t.int32();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.message!=null&&t.hasOwnProperty("message")&&!_.isString(t.message))return"message: string expected";if(t.code!=null&&t.hasOwnProperty("code"))switch(t.code){default:return"code: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.trace.v1.Status)return t;var e=new p.opentelemetry.proto.trace.v1.Status;switch(t.message!=null&&(e.message=String(t.message)),t.code){default:if(typeof t.code=="number"){e.code=t.code;break}break;case"STATUS_CODE_UNSET":case 0:e.code=0;break;case"STATUS_CODE_OK":case 1:e.code=1;break;case"STATUS_CODE_ERROR":case 2:e.code=2;break}return e},a.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.message="",n.code=e.enums===String?"STATUS_CODE_UNSET":0),t.message!=null&&t.hasOwnProperty("message")&&(n.message=t.message),t.code!=null&&t.hasOwnProperty("code")&&(n.code=e.enums===String?p.opentelemetry.proto.trace.v1.Status.StatusCode[t.code]===void 0?t.code:p.opentelemetry.proto.trace.v1.Status.StatusCode[t.code]:t.code),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.trace.v1.Status"},a.StatusCode=function(){var u={},t=Object.create(u);return t[u[0]="STATUS_CODE_UNSET"]=0,t[u[1]="STATUS_CODE_OK"]=1,t[u[2]="STATUS_CODE_ERROR"]=2,t}(),a}(),c}(),i}(),r.collector=function(){var i={};return i.trace=function(){var c={};return c.v1=function(){var a={};return a.TraceService=function(){function u(t,e,n){v.rpc.Service.call(this,t,e,n)}return(u.prototype=Object.create(v.rpc.Service.prototype)).constructor=u,u.create=function(e,n,s){return new this(e,n,s)},Object.defineProperty(u.prototype.export=function t(e,n){return this.rpcCall(t,p.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,p.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,e,n)},"name",{value:"Export"}),u}(),a.ExportTraceServiceRequest=function(){function u(t){if(this.resourceSpans=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.resourceSpans=_.emptyArray,u.create=function(e){return new u(e)},u.encode=function(e,n){if(n||(n=h.create()),e.resourceSpans!=null&&e.resourceSpans.length)for(var s=0;s<e.resourceSpans.length;++s)p.opentelemetry.proto.trace.v1.ResourceSpans.encode(e.resourceSpans[s],n.uint32(10).fork()).ldelim();return n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.resourceSpans&&l.resourceSpans.length||(l.resourceSpans=[]),l.resourceSpans.push(p.opentelemetry.proto.trace.v1.ResourceSpans.decode(e,e.uint32()));break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.resourceSpans!=null&&e.hasOwnProperty("resourceSpans")){if(!Array.isArray(e.resourceSpans))return"resourceSpans: array expected";for(var n=0;n<e.resourceSpans.length;++n){var s=p.opentelemetry.proto.trace.v1.ResourceSpans.verify(e.resourceSpans[n]);if(s)return"resourceSpans."+s}}return null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest)return e;var n=new p.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;if(e.resourceSpans){if(!Array.isArray(e.resourceSpans))throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: array expected");n.resourceSpans=[];for(var s=0;s<e.resourceSpans.length;++s){if(typeof e.resourceSpans[s]!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: object expected");n.resourceSpans[s]=p.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(e.resourceSpans[s])}}return n},u.toObject=function(e,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.resourceSpans=[]),e.resourceSpans&&e.resourceSpans.length){s.resourceSpans=[];for(var l=0;l<e.resourceSpans.length;++l)s.resourceSpans[l]=p.opentelemetry.proto.trace.v1.ResourceSpans.toObject(e.resourceSpans[l],n)}return s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest"},u}(),a.ExportTraceServiceResponse=function(){function u(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.partialSuccess=null,u.create=function(e){return new u(e)},u.encode=function(e,n){return n||(n=h.create()),e.partialSuccess!=null&&Object.hasOwnProperty.call(e,"partialSuccess")&&p.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.encode(e.partialSuccess,n.uint32(10).fork()).ldelim(),n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.partialSuccess=p.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.decode(e,e.uint32());break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.partialSuccess!=null&&e.hasOwnProperty("partialSuccess")){var n=p.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.verify(e.partialSuccess);if(n)return"partialSuccess."+n}return null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse)return e;var n=new p.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;if(e.partialSuccess!=null){if(typeof e.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse.partialSuccess: object expected");n.partialSuccess=p.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.fromObject(e.partialSuccess)}return n},u.toObject=function(e,n){n||(n={});var s={};return n.defaults&&(s.partialSuccess=null),e.partialSuccess!=null&&e.hasOwnProperty("partialSuccess")&&(s.partialSuccess=p.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.toObject(e.partialSuccess,n)),s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse"},u}(),a.ExportTracePartialSuccess=function(){function u(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.rejectedSpans=null,u.prototype.errorMessage=null,u.create=function(e){return new u(e)},u.encode=function(e,n){return n||(n=h.create()),e.rejectedSpans!=null&&Object.hasOwnProperty.call(e,"rejectedSpans")&&n.uint32(8).int64(e.rejectedSpans),e.errorMessage!=null&&Object.hasOwnProperty.call(e,"errorMessage")&&n.uint32(18).string(e.errorMessage),n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.rejectedSpans=e.int64();break}case 2:{l.errorMessage=e.string();break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){return typeof e!="object"||e===null?"object expected":e.rejectedSpans!=null&&e.hasOwnProperty("rejectedSpans")&&!_.isInteger(e.rejectedSpans)&&!(e.rejectedSpans&&_.isInteger(e.rejectedSpans.low)&&_.isInteger(e.rejectedSpans.high))?"rejectedSpans: integer|Long expected":e.errorMessage!=null&&e.hasOwnProperty("errorMessage")&&!_.isString(e.errorMessage)?"errorMessage: string expected":null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess)return e;var n=new p.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;return e.rejectedSpans!=null&&(_.Long?(n.rejectedSpans=_.Long.fromValue(e.rejectedSpans)).unsigned=!1:typeof e.rejectedSpans=="string"?n.rejectedSpans=parseInt(e.rejectedSpans,10):typeof e.rejectedSpans=="number"?n.rejectedSpans=e.rejectedSpans:typeof e.rejectedSpans=="object"&&(n.rejectedSpans=new _.LongBits(e.rejectedSpans.low>>>0,e.rejectedSpans.high>>>0).toNumber())),e.errorMessage!=null&&(n.errorMessage=String(e.errorMessage)),n},u.toObject=function(e,n){n||(n={});var s={};if(n.defaults){if(_.Long){var l=new _.Long(0,0,!1);s.rejectedSpans=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.rejectedSpans=n.longs===String?"0":0;s.errorMessage=""}return e.rejectedSpans!=null&&e.hasOwnProperty("rejectedSpans")&&(typeof e.rejectedSpans=="number"?s.rejectedSpans=n.longs===String?String(e.rejectedSpans):e.rejectedSpans:s.rejectedSpans=n.longs===String?_.Long.prototype.toString.call(e.rejectedSpans):n.longs===Number?new _.LongBits(e.rejectedSpans.low>>>0,e.rejectedSpans.high>>>0).toNumber():e.rejectedSpans),e.errorMessage!=null&&e.hasOwnProperty("errorMessage")&&(s.errorMessage=e.errorMessage),s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess"},u}(),a}(),c}(),i.metrics=function(){var c={};return c.v1=function(){var a={};return a.MetricsService=function(){function u(t,e,n){v.rpc.Service.call(this,t,e,n)}return(u.prototype=Object.create(v.rpc.Service.prototype)).constructor=u,u.create=function(e,n,s){return new this(e,n,s)},Object.defineProperty(u.prototype.export=function t(e,n){return this.rpcCall(t,p.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,p.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,e,n)},"name",{value:"Export"}),u}(),a.ExportMetricsServiceRequest=function(){function u(t){if(this.resourceMetrics=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.resourceMetrics=_.emptyArray,u.create=function(e){return new u(e)},u.encode=function(e,n){if(n||(n=h.create()),e.resourceMetrics!=null&&e.resourceMetrics.length)for(var s=0;s<e.resourceMetrics.length;++s)p.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(e.resourceMetrics[s],n.uint32(10).fork()).ldelim();return n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.resourceMetrics&&l.resourceMetrics.length||(l.resourceMetrics=[]),l.resourceMetrics.push(p.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(e,e.uint32()));break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.resourceMetrics!=null&&e.hasOwnProperty("resourceMetrics")){if(!Array.isArray(e.resourceMetrics))return"resourceMetrics: array expected";for(var n=0;n<e.resourceMetrics.length;++n){var s=p.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(e.resourceMetrics[n]);if(s)return"resourceMetrics."+s}}return null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest)return e;var n=new p.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;if(e.resourceMetrics){if(!Array.isArray(e.resourceMetrics))throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: array expected");n.resourceMetrics=[];for(var s=0;s<e.resourceMetrics.length;++s){if(typeof e.resourceMetrics[s]!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: object expected");n.resourceMetrics[s]=p.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(e.resourceMetrics[s])}}return n},u.toObject=function(e,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.resourceMetrics=[]),e.resourceMetrics&&e.resourceMetrics.length){s.resourceMetrics=[];for(var l=0;l<e.resourceMetrics.length;++l)s.resourceMetrics[l]=p.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(e.resourceMetrics[l],n)}return s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest"},u}(),a.ExportMetricsServiceResponse=function(){function u(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.partialSuccess=null,u.create=function(e){return new u(e)},u.encode=function(e,n){return n||(n=h.create()),e.partialSuccess!=null&&Object.hasOwnProperty.call(e,"partialSuccess")&&p.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.encode(e.partialSuccess,n.uint32(10).fork()).ldelim(),n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.partialSuccess=p.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.decode(e,e.uint32());break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.partialSuccess!=null&&e.hasOwnProperty("partialSuccess")){var n=p.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.verify(e.partialSuccess);if(n)return"partialSuccess."+n}return null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse)return e;var n=new p.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;if(e.partialSuccess!=null){if(typeof e.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse.partialSuccess: object expected");n.partialSuccess=p.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.fromObject(e.partialSuccess)}return n},u.toObject=function(e,n){n||(n={});var s={};return n.defaults&&(s.partialSuccess=null),e.partialSuccess!=null&&e.hasOwnProperty("partialSuccess")&&(s.partialSuccess=p.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.toObject(e.partialSuccess,n)),s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse"},u}(),a.ExportMetricsPartialSuccess=function(){function u(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.rejectedDataPoints=null,u.prototype.errorMessage=null,u.create=function(e){return new u(e)},u.encode=function(e,n){return n||(n=h.create()),e.rejectedDataPoints!=null&&Object.hasOwnProperty.call(e,"rejectedDataPoints")&&n.uint32(8).int64(e.rejectedDataPoints),e.errorMessage!=null&&Object.hasOwnProperty.call(e,"errorMessage")&&n.uint32(18).string(e.errorMessage),n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.rejectedDataPoints=e.int64();break}case 2:{l.errorMessage=e.string();break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){return typeof e!="object"||e===null?"object expected":e.rejectedDataPoints!=null&&e.hasOwnProperty("rejectedDataPoints")&&!_.isInteger(e.rejectedDataPoints)&&!(e.rejectedDataPoints&&_.isInteger(e.rejectedDataPoints.low)&&_.isInteger(e.rejectedDataPoints.high))?"rejectedDataPoints: integer|Long expected":e.errorMessage!=null&&e.hasOwnProperty("errorMessage")&&!_.isString(e.errorMessage)?"errorMessage: string expected":null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess)return e;var n=new p.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;return e.rejectedDataPoints!=null&&(_.Long?(n.rejectedDataPoints=_.Long.fromValue(e.rejectedDataPoints)).unsigned=!1:typeof e.rejectedDataPoints=="string"?n.rejectedDataPoints=parseInt(e.rejectedDataPoints,10):typeof e.rejectedDataPoints=="number"?n.rejectedDataPoints=e.rejectedDataPoints:typeof e.rejectedDataPoints=="object"&&(n.rejectedDataPoints=new _.LongBits(e.rejectedDataPoints.low>>>0,e.rejectedDataPoints.high>>>0).toNumber())),e.errorMessage!=null&&(n.errorMessage=String(e.errorMessage)),n},u.toObject=function(e,n){n||(n={});var s={};if(n.defaults){if(_.Long){var l=new _.Long(0,0,!1);s.rejectedDataPoints=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.rejectedDataPoints=n.longs===String?"0":0;s.errorMessage=""}return e.rejectedDataPoints!=null&&e.hasOwnProperty("rejectedDataPoints")&&(typeof e.rejectedDataPoints=="number"?s.rejectedDataPoints=n.longs===String?String(e.rejectedDataPoints):e.rejectedDataPoints:s.rejectedDataPoints=n.longs===String?_.Long.prototype.toString.call(e.rejectedDataPoints):n.longs===Number?new _.LongBits(e.rejectedDataPoints.low>>>0,e.rejectedDataPoints.high>>>0).toNumber():e.rejectedDataPoints),e.errorMessage!=null&&e.hasOwnProperty("errorMessage")&&(s.errorMessage=e.errorMessage),s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess"},u}(),a}(),c}(),i.logs=function(){var c={};return c.v1=function(){var a={};return a.LogsService=function(){function u(t,e,n){v.rpc.Service.call(this,t,e,n)}return(u.prototype=Object.create(v.rpc.Service.prototype)).constructor=u,u.create=function(e,n,s){return new this(e,n,s)},Object.defineProperty(u.prototype.export=function t(e,n){return this.rpcCall(t,p.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,p.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,e,n)},"name",{value:"Export"}),u}(),a.ExportLogsServiceRequest=function(){function u(t){if(this.resourceLogs=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.resourceLogs=_.emptyArray,u.create=function(e){return new u(e)},u.encode=function(e,n){if(n||(n=h.create()),e.resourceLogs!=null&&e.resourceLogs.length)for(var s=0;s<e.resourceLogs.length;++s)p.opentelemetry.proto.logs.v1.ResourceLogs.encode(e.resourceLogs[s],n.uint32(10).fork()).ldelim();return n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.resourceLogs&&l.resourceLogs.length||(l.resourceLogs=[]),l.resourceLogs.push(p.opentelemetry.proto.logs.v1.ResourceLogs.decode(e,e.uint32()));break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.resourceLogs!=null&&e.hasOwnProperty("resourceLogs")){if(!Array.isArray(e.resourceLogs))return"resourceLogs: array expected";for(var n=0;n<e.resourceLogs.length;++n){var s=p.opentelemetry.proto.logs.v1.ResourceLogs.verify(e.resourceLogs[n]);if(s)return"resourceLogs."+s}}return null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest)return e;var n=new p.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;if(e.resourceLogs){if(!Array.isArray(e.resourceLogs))throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: array expected");n.resourceLogs=[];for(var s=0;s<e.resourceLogs.length;++s){if(typeof e.resourceLogs[s]!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: object expected");n.resourceLogs[s]=p.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(e.resourceLogs[s])}}return n},u.toObject=function(e,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.resourceLogs=[]),e.resourceLogs&&e.resourceLogs.length){s.resourceLogs=[];for(var l=0;l<e.resourceLogs.length;++l)s.resourceLogs[l]=p.opentelemetry.proto.logs.v1.ResourceLogs.toObject(e.resourceLogs[l],n)}return s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest"},u}(),a.ExportLogsServiceResponse=function(){function u(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.partialSuccess=null,u.create=function(e){return new u(e)},u.encode=function(e,n){return n||(n=h.create()),e.partialSuccess!=null&&Object.hasOwnProperty.call(e,"partialSuccess")&&p.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.encode(e.partialSuccess,n.uint32(10).fork()).ldelim(),n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.partialSuccess=p.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.decode(e,e.uint32());break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.partialSuccess!=null&&e.hasOwnProperty("partialSuccess")){var n=p.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.verify(e.partialSuccess);if(n)return"partialSuccess."+n}return null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse)return e;var n=new p.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;if(e.partialSuccess!=null){if(typeof e.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse.partialSuccess: object expected");n.partialSuccess=p.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.fromObject(e.partialSuccess)}return n},u.toObject=function(e,n){n||(n={});var s={};return n.defaults&&(s.partialSuccess=null),e.partialSuccess!=null&&e.hasOwnProperty("partialSuccess")&&(s.partialSuccess=p.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.toObject(e.partialSuccess,n)),s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse"},u}(),a.ExportLogsPartialSuccess=function(){function u(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.rejectedLogRecords=null,u.prototype.errorMessage=null,u.create=function(e){return new u(e)},u.encode=function(e,n){return n||(n=h.create()),e.rejectedLogRecords!=null&&Object.hasOwnProperty.call(e,"rejectedLogRecords")&&n.uint32(8).int64(e.rejectedLogRecords),e.errorMessage!=null&&Object.hasOwnProperty.call(e,"errorMessage")&&n.uint32(18).string(e.errorMessage),n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.rejectedLogRecords=e.int64();break}case 2:{l.errorMessage=e.string();break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){return typeof e!="object"||e===null?"object expected":e.rejectedLogRecords!=null&&e.hasOwnProperty("rejectedLogRecords")&&!_.isInteger(e.rejectedLogRecords)&&!(e.rejectedLogRecords&&_.isInteger(e.rejectedLogRecords.low)&&_.isInteger(e.rejectedLogRecords.high))?"rejectedLogRecords: integer|Long expected":e.errorMessage!=null&&e.hasOwnProperty("errorMessage")&&!_.isString(e.errorMessage)?"errorMessage: string expected":null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess)return e;var n=new p.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;return e.rejectedLogRecords!=null&&(_.Long?(n.rejectedLogRecords=_.Long.fromValue(e.rejectedLogRecords)).unsigned=!1:typeof e.rejectedLogRecords=="string"?n.rejectedLogRecords=parseInt(e.rejectedLogRecords,10):typeof e.rejectedLogRecords=="number"?n.rejectedLogRecords=e.rejectedLogRecords:typeof e.rejectedLogRecords=="object"&&(n.rejectedLogRecords=new _.LongBits(e.rejectedLogRecords.low>>>0,e.rejectedLogRecords.high>>>0).toNumber())),e.errorMessage!=null&&(n.errorMessage=String(e.errorMessage)),n},u.toObject=function(e,n){n||(n={});var s={};if(n.defaults){if(_.Long){var l=new _.Long(0,0,!1);s.rejectedLogRecords=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.rejectedLogRecords=n.longs===String?"0":0;s.errorMessage=""}return e.rejectedLogRecords!=null&&e.hasOwnProperty("rejectedLogRecords")&&(typeof e.rejectedLogRecords=="number"?s.rejectedLogRecords=n.longs===String?String(e.rejectedLogRecords):e.rejectedLogRecords:s.rejectedLogRecords=n.longs===String?_.Long.prototype.toString.call(e.rejectedLogRecords):n.longs===Number?new _.LongBits(e.rejectedLogRecords.low>>>0,e.rejectedLogRecords.high>>>0).toNumber():e.rejectedLogRecords),e.errorMessage!=null&&e.hasOwnProperty("errorMessage")&&(s.errorMessage=e.errorMessage),s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess"},u}(),a}(),c}(),i}(),r.metrics=function(){var i={};return i.v1=function(){var c={};return c.MetricsData=function(){function a(u){if(this.resourceMetrics=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.resourceMetrics=_.emptyArray,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.resourceMetrics!=null&&t.resourceMetrics.length)for(var n=0;n<t.resourceMetrics.length;++n)p.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(t.resourceMetrics[n],e.uint32(10).fork()).ldelim();return e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.metrics.v1.MetricsData;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.resourceMetrics&&s.resourceMetrics.length||(s.resourceMetrics=[]),s.resourceMetrics.push(p.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.resourceMetrics!=null&&t.hasOwnProperty("resourceMetrics")){if(!Array.isArray(t.resourceMetrics))return"resourceMetrics: array expected";for(var e=0;e<t.resourceMetrics.length;++e){var n=p.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(t.resourceMetrics[e]);if(n)return"resourceMetrics."+n}}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.metrics.v1.MetricsData)return t;var e=new p.opentelemetry.proto.metrics.v1.MetricsData;if(t.resourceMetrics){if(!Array.isArray(t.resourceMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: array expected");e.resourceMetrics=[];for(var n=0;n<t.resourceMetrics.length;++n){if(typeof t.resourceMetrics[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: object expected");e.resourceMetrics[n]=p.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(t.resourceMetrics[n])}}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.resourceMetrics=[]),t.resourceMetrics&&t.resourceMetrics.length){n.resourceMetrics=[];for(var s=0;s<t.resourceMetrics.length;++s)n.resourceMetrics[s]=p.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(t.resourceMetrics[s],e)}return n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.metrics.v1.MetricsData"},a}(),c.ResourceMetrics=function(){function a(u){if(this.scopeMetrics=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.resource=null,a.prototype.scopeMetrics=_.emptyArray,a.prototype.schemaUrl=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.resource!=null&&Object.hasOwnProperty.call(t,"resource")&&p.opentelemetry.proto.resource.v1.Resource.encode(t.resource,e.uint32(10).fork()).ldelim(),t.scopeMetrics!=null&&t.scopeMetrics.length)for(var n=0;n<t.scopeMetrics.length;++n)p.opentelemetry.proto.metrics.v1.ScopeMetrics.encode(t.scopeMetrics[n],e.uint32(18).fork()).ldelim();return t.schemaUrl!=null&&Object.hasOwnProperty.call(t,"schemaUrl")&&e.uint32(26).string(t.schemaUrl),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.metrics.v1.ResourceMetrics;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.resource=p.opentelemetry.proto.resource.v1.Resource.decode(t,t.uint32());break}case 2:{s.scopeMetrics&&s.scopeMetrics.length||(s.scopeMetrics=[]),s.scopeMetrics.push(p.opentelemetry.proto.metrics.v1.ScopeMetrics.decode(t,t.uint32()));break}case 3:{s.schemaUrl=t.string();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.resource!=null&&t.hasOwnProperty("resource")){var e=p.opentelemetry.proto.resource.v1.Resource.verify(t.resource);if(e)return"resource."+e}if(t.scopeMetrics!=null&&t.hasOwnProperty("scopeMetrics")){if(!Array.isArray(t.scopeMetrics))return"scopeMetrics: array expected";for(var n=0;n<t.scopeMetrics.length;++n){var e=p.opentelemetry.proto.metrics.v1.ScopeMetrics.verify(t.scopeMetrics[n]);if(e)return"scopeMetrics."+e}}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&!_.isString(t.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.metrics.v1.ResourceMetrics)return t;var e=new p.opentelemetry.proto.metrics.v1.ResourceMetrics;if(t.resource!=null){if(typeof t.resource!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.resource: object expected");e.resource=p.opentelemetry.proto.resource.v1.Resource.fromObject(t.resource)}if(t.scopeMetrics){if(!Array.isArray(t.scopeMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: array expected");e.scopeMetrics=[];for(var n=0;n<t.scopeMetrics.length;++n){if(typeof t.scopeMetrics[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: object expected");e.scopeMetrics[n]=p.opentelemetry.proto.metrics.v1.ScopeMetrics.fromObject(t.scopeMetrics[n])}}return t.schemaUrl!=null&&(e.schemaUrl=String(t.schemaUrl)),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.scopeMetrics=[]),e.defaults&&(n.resource=null,n.schemaUrl=""),t.resource!=null&&t.hasOwnProperty("resource")&&(n.resource=p.opentelemetry.proto.resource.v1.Resource.toObject(t.resource,e)),t.scopeMetrics&&t.scopeMetrics.length){n.scopeMetrics=[];for(var s=0;s<t.scopeMetrics.length;++s)n.scopeMetrics[s]=p.opentelemetry.proto.metrics.v1.ScopeMetrics.toObject(t.scopeMetrics[s],e)}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&(n.schemaUrl=t.schemaUrl),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.metrics.v1.ResourceMetrics"},a}(),c.ScopeMetrics=function(){function a(u){if(this.metrics=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.scope=null,a.prototype.metrics=_.emptyArray,a.prototype.schemaUrl=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.scope!=null&&Object.hasOwnProperty.call(t,"scope")&&p.opentelemetry.proto.common.v1.InstrumentationScope.encode(t.scope,e.uint32(10).fork()).ldelim(),t.metrics!=null&&t.metrics.length)for(var n=0;n<t.metrics.length;++n)p.opentelemetry.proto.metrics.v1.Metric.encode(t.metrics[n],e.uint32(18).fork()).ldelim();return t.schemaUrl!=null&&Object.hasOwnProperty.call(t,"schemaUrl")&&e.uint32(26).string(t.schemaUrl),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.metrics.v1.ScopeMetrics;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.scope=p.opentelemetry.proto.common.v1.InstrumentationScope.decode(t,t.uint32());break}case 2:{s.metrics&&s.metrics.length||(s.metrics=[]),s.metrics.push(p.opentelemetry.proto.metrics.v1.Metric.decode(t,t.uint32()));break}case 3:{s.schemaUrl=t.string();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.scope!=null&&t.hasOwnProperty("scope")){var e=p.opentelemetry.proto.common.v1.InstrumentationScope.verify(t.scope);if(e)return"scope."+e}if(t.metrics!=null&&t.hasOwnProperty("metrics")){if(!Array.isArray(t.metrics))return"metrics: array expected";for(var n=0;n<t.metrics.length;++n){var e=p.opentelemetry.proto.metrics.v1.Metric.verify(t.metrics[n]);if(e)return"metrics."+e}}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&!_.isString(t.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.metrics.v1.ScopeMetrics)return t;var e=new p.opentelemetry.proto.metrics.v1.ScopeMetrics;if(t.scope!=null){if(typeof t.scope!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.scope: object expected");e.scope=p.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(t.scope)}if(t.metrics){if(!Array.isArray(t.metrics))throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: array expected");e.metrics=[];for(var n=0;n<t.metrics.length;++n){if(typeof t.metrics[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: object expected");e.metrics[n]=p.opentelemetry.proto.metrics.v1.Metric.fromObject(t.metrics[n])}}return t.schemaUrl!=null&&(e.schemaUrl=String(t.schemaUrl)),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.metrics=[]),e.defaults&&(n.scope=null,n.schemaUrl=""),t.scope!=null&&t.hasOwnProperty("scope")&&(n.scope=p.opentelemetry.proto.common.v1.InstrumentationScope.toObject(t.scope,e)),t.metrics&&t.metrics.length){n.metrics=[];for(var s=0;s<t.metrics.length;++s)n.metrics[s]=p.opentelemetry.proto.metrics.v1.Metric.toObject(t.metrics[s],e)}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&(n.schemaUrl=t.schemaUrl),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.metrics.v1.ScopeMetrics"},a}(),c.Metric=function(){function a(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}a.prototype.name=null,a.prototype.description=null,a.prototype.unit=null,a.prototype.gauge=null,a.prototype.sum=null,a.prototype.histogram=null,a.prototype.exponentialHistogram=null,a.prototype.summary=null;var u;return Object.defineProperty(a.prototype,"data",{get:_.oneOfGetter(u=["gauge","sum","histogram","exponentialHistogram","summary"]),set:_.oneOfSetter(u)}),a.create=function(e){return new a(e)},a.encode=function(e,n){return n||(n=h.create()),e.name!=null&&Object.hasOwnProperty.call(e,"name")&&n.uint32(10).string(e.name),e.description!=null&&Object.hasOwnProperty.call(e,"description")&&n.uint32(18).string(e.description),e.unit!=null&&Object.hasOwnProperty.call(e,"unit")&&n.uint32(26).string(e.unit),e.gauge!=null&&Object.hasOwnProperty.call(e,"gauge")&&p.opentelemetry.proto.metrics.v1.Gauge.encode(e.gauge,n.uint32(42).fork()).ldelim(),e.sum!=null&&Object.hasOwnProperty.call(e,"sum")&&p.opentelemetry.proto.metrics.v1.Sum.encode(e.sum,n.uint32(58).fork()).ldelim(),e.histogram!=null&&Object.hasOwnProperty.call(e,"histogram")&&p.opentelemetry.proto.metrics.v1.Histogram.encode(e.histogram,n.uint32(74).fork()).ldelim(),e.exponentialHistogram!=null&&Object.hasOwnProperty.call(e,"exponentialHistogram")&&p.opentelemetry.proto.metrics.v1.ExponentialHistogram.encode(e.exponentialHistogram,n.uint32(82).fork()).ldelim(),e.summary!=null&&Object.hasOwnProperty.call(e,"summary")&&p.opentelemetry.proto.metrics.v1.Summary.encode(e.summary,n.uint32(90).fork()).ldelim(),n},a.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},a.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.metrics.v1.Metric;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.name=e.string();break}case 2:{l.description=e.string();break}case 3:{l.unit=e.string();break}case 5:{l.gauge=p.opentelemetry.proto.metrics.v1.Gauge.decode(e,e.uint32());break}case 7:{l.sum=p.opentelemetry.proto.metrics.v1.Sum.decode(e,e.uint32());break}case 9:{l.histogram=p.opentelemetry.proto.metrics.v1.Histogram.decode(e,e.uint32());break}case 10:{l.exponentialHistogram=p.opentelemetry.proto.metrics.v1.ExponentialHistogram.decode(e,e.uint32());break}case 11:{l.summary=p.opentelemetry.proto.metrics.v1.Summary.decode(e,e.uint32());break}default:e.skipType(E&7);break}}return l},a.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},a.verify=function(e){if(typeof e!="object"||e===null)return"object expected";var n={};if(e.name!=null&&e.hasOwnProperty("name")&&!_.isString(e.name))return"name: string expected";if(e.description!=null&&e.hasOwnProperty("description")&&!_.isString(e.description))return"description: string expected";if(e.unit!=null&&e.hasOwnProperty("unit")&&!_.isString(e.unit))return"unit: string expected";if(e.gauge!=null&&e.hasOwnProperty("gauge")){n.data=1;{var s=p.opentelemetry.proto.metrics.v1.Gauge.verify(e.gauge);if(s)return"gauge."+s}}if(e.sum!=null&&e.hasOwnProperty("sum")){if(n.data===1)return"data: multiple values";n.data=1;{var s=p.opentelemetry.proto.metrics.v1.Sum.verify(e.sum);if(s)return"sum."+s}}if(e.histogram!=null&&e.hasOwnProperty("histogram")){if(n.data===1)return"data: multiple values";n.data=1;{var s=p.opentelemetry.proto.metrics.v1.Histogram.verify(e.histogram);if(s)return"histogram."+s}}if(e.exponentialHistogram!=null&&e.hasOwnProperty("exponentialHistogram")){if(n.data===1)return"data: multiple values";n.data=1;{var s=p.opentelemetry.proto.metrics.v1.ExponentialHistogram.verify(e.exponentialHistogram);if(s)return"exponentialHistogram."+s}}if(e.summary!=null&&e.hasOwnProperty("summary")){if(n.data===1)return"data: multiple values";n.data=1;{var s=p.opentelemetry.proto.metrics.v1.Summary.verify(e.summary);if(s)return"summary."+s}}return null},a.fromObject=function(e){if(e instanceof p.opentelemetry.proto.metrics.v1.Metric)return e;var n=new p.opentelemetry.proto.metrics.v1.Metric;if(e.name!=null&&(n.name=String(e.name)),e.description!=null&&(n.description=String(e.description)),e.unit!=null&&(n.unit=String(e.unit)),e.gauge!=null){if(typeof e.gauge!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.gauge: object expected");n.gauge=p.opentelemetry.proto.metrics.v1.Gauge.fromObject(e.gauge)}if(e.sum!=null){if(typeof e.sum!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.sum: object expected");n.sum=p.opentelemetry.proto.metrics.v1.Sum.fromObject(e.sum)}if(e.histogram!=null){if(typeof e.histogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.histogram: object expected");n.histogram=p.opentelemetry.proto.metrics.v1.Histogram.fromObject(e.histogram)}if(e.exponentialHistogram!=null){if(typeof e.exponentialHistogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.exponentialHistogram: object expected");n.exponentialHistogram=p.opentelemetry.proto.metrics.v1.ExponentialHistogram.fromObject(e.exponentialHistogram)}if(e.summary!=null){if(typeof e.summary!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.summary: object expected");n.summary=p.opentelemetry.proto.metrics.v1.Summary.fromObject(e.summary)}return n},a.toObject=function(e,n){n||(n={});var s={};return n.defaults&&(s.name="",s.description="",s.unit=""),e.name!=null&&e.hasOwnProperty("name")&&(s.name=e.name),e.description!=null&&e.hasOwnProperty("description")&&(s.description=e.description),e.unit!=null&&e.hasOwnProperty("unit")&&(s.unit=e.unit),e.gauge!=null&&e.hasOwnProperty("gauge")&&(s.gauge=p.opentelemetry.proto.metrics.v1.Gauge.toObject(e.gauge,n),n.oneofs&&(s.data="gauge")),e.sum!=null&&e.hasOwnProperty("sum")&&(s.sum=p.opentelemetry.proto.metrics.v1.Sum.toObject(e.sum,n),n.oneofs&&(s.data="sum")),e.histogram!=null&&e.hasOwnProperty("histogram")&&(s.histogram=p.opentelemetry.proto.metrics.v1.Histogram.toObject(e.histogram,n),n.oneofs&&(s.data="histogram")),e.exponentialHistogram!=null&&e.hasOwnProperty("exponentialHistogram")&&(s.exponentialHistogram=p.opentelemetry.proto.metrics.v1.ExponentialHistogram.toObject(e.exponentialHistogram,n),n.oneofs&&(s.data="exponentialHistogram")),e.summary!=null&&e.hasOwnProperty("summary")&&(s.summary=p.opentelemetry.proto.metrics.v1.Summary.toObject(e.summary,n),n.oneofs&&(s.data="summary")),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.metrics.v1.Metric"},a}(),c.Gauge=function(){function a(u){if(this.dataPoints=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.dataPoints=_.emptyArray,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.dataPoints!=null&&t.dataPoints.length)for(var n=0;n<t.dataPoints.length;++n)p.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(t.dataPoints[n],e.uint32(10).fork()).ldelim();return e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.metrics.v1.Gauge;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.dataPoints&&s.dataPoints.length||(s.dataPoints=[]),s.dataPoints.push(p.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.dataPoints!=null&&t.hasOwnProperty("dataPoints")){if(!Array.isArray(t.dataPoints))return"dataPoints: array expected";for(var e=0;e<t.dataPoints.length;++e){var n=p.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(t.dataPoints[e]);if(n)return"dataPoints."+n}}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.metrics.v1.Gauge)return t;var e=new p.opentelemetry.proto.metrics.v1.Gauge;if(t.dataPoints){if(!Array.isArray(t.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: array expected");e.dataPoints=[];for(var n=0;n<t.dataPoints.length;++n){if(typeof t.dataPoints[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: object expected");e.dataPoints[n]=p.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(t.dataPoints[n])}}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.dataPoints=[]),t.dataPoints&&t.dataPoints.length){n.dataPoints=[];for(var s=0;s<t.dataPoints.length;++s)n.dataPoints[s]=p.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(t.dataPoints[s],e)}return n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.metrics.v1.Gauge"},a}(),c.Sum=function(){function a(u){if(this.dataPoints=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.dataPoints=_.emptyArray,a.prototype.aggregationTemporality=null,a.prototype.isMonotonic=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.dataPoints!=null&&t.dataPoints.length)for(var n=0;n<t.dataPoints.length;++n)p.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(t.dataPoints[n],e.uint32(10).fork()).ldelim();return t.aggregationTemporality!=null&&Object.hasOwnProperty.call(t,"aggregationTemporality")&&e.uint32(16).int32(t.aggregationTemporality),t.isMonotonic!=null&&Object.hasOwnProperty.call(t,"isMonotonic")&&e.uint32(24).bool(t.isMonotonic),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.metrics.v1.Sum;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.dataPoints&&s.dataPoints.length||(s.dataPoints=[]),s.dataPoints.push(p.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(t,t.uint32()));break}case 2:{s.aggregationTemporality=t.int32();break}case 3:{s.isMonotonic=t.bool();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.dataPoints!=null&&t.hasOwnProperty("dataPoints")){if(!Array.isArray(t.dataPoints))return"dataPoints: array expected";for(var e=0;e<t.dataPoints.length;++e){var n=p.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(t.dataPoints[e]);if(n)return"dataPoints."+n}}if(t.aggregationTemporality!=null&&t.hasOwnProperty("aggregationTemporality"))switch(t.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return t.isMonotonic!=null&&t.hasOwnProperty("isMonotonic")&&typeof t.isMonotonic!="boolean"?"isMonotonic: boolean expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.metrics.v1.Sum)return t;var e=new p.opentelemetry.proto.metrics.v1.Sum;if(t.dataPoints){if(!Array.isArray(t.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: array expected");e.dataPoints=[];for(var n=0;n<t.dataPoints.length;++n){if(typeof t.dataPoints[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: object expected");e.dataPoints[n]=p.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(t.dataPoints[n])}}switch(t.aggregationTemporality){default:if(typeof t.aggregationTemporality=="number"){e.aggregationTemporality=t.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:e.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:e.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:e.aggregationTemporality=2;break}return t.isMonotonic!=null&&(e.isMonotonic=!!t.isMonotonic),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.dataPoints=[]),e.defaults&&(n.aggregationTemporality=e.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0,n.isMonotonic=!1),t.dataPoints&&t.dataPoints.length){n.dataPoints=[];for(var s=0;s<t.dataPoints.length;++s)n.dataPoints[s]=p.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(t.dataPoints[s],e)}return t.aggregationTemporality!=null&&t.hasOwnProperty("aggregationTemporality")&&(n.aggregationTemporality=e.enums===String?p.opentelemetry.proto.metrics.v1.AggregationTemporality[t.aggregationTemporality]===void 0?t.aggregationTemporality:p.opentelemetry.proto.metrics.v1.AggregationTemporality[t.aggregationTemporality]:t.aggregationTemporality),t.isMonotonic!=null&&t.hasOwnProperty("isMonotonic")&&(n.isMonotonic=t.isMonotonic),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.metrics.v1.Sum"},a}(),c.Histogram=function(){function a(u){if(this.dataPoints=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.dataPoints=_.emptyArray,a.prototype.aggregationTemporality=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.dataPoints!=null&&t.dataPoints.length)for(var n=0;n<t.dataPoints.length;++n)p.opentelemetry.proto.metrics.v1.HistogramDataPoint.encode(t.dataPoints[n],e.uint32(10).fork()).ldelim();return t.aggregationTemporality!=null&&Object.hasOwnProperty.call(t,"aggregationTemporality")&&e.uint32(16).int32(t.aggregationTemporality),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.metrics.v1.Histogram;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.dataPoints&&s.dataPoints.length||(s.dataPoints=[]),s.dataPoints.push(p.opentelemetry.proto.metrics.v1.HistogramDataPoint.decode(t,t.uint32()));break}case 2:{s.aggregationTemporality=t.int32();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.dataPoints!=null&&t.hasOwnProperty("dataPoints")){if(!Array.isArray(t.dataPoints))return"dataPoints: array expected";for(var e=0;e<t.dataPoints.length;++e){var n=p.opentelemetry.proto.metrics.v1.HistogramDataPoint.verify(t.dataPoints[e]);if(n)return"dataPoints."+n}}if(t.aggregationTemporality!=null&&t.hasOwnProperty("aggregationTemporality"))switch(t.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.metrics.v1.Histogram)return t;var e=new p.opentelemetry.proto.metrics.v1.Histogram;if(t.dataPoints){if(!Array.isArray(t.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: array expected");e.dataPoints=[];for(var n=0;n<t.dataPoints.length;++n){if(typeof t.dataPoints[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: object expected");e.dataPoints[n]=p.opentelemetry.proto.metrics.v1.HistogramDataPoint.fromObject(t.dataPoints[n])}}switch(t.aggregationTemporality){default:if(typeof t.aggregationTemporality=="number"){e.aggregationTemporality=t.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:e.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:e.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:e.aggregationTemporality=2;break}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.dataPoints=[]),e.defaults&&(n.aggregationTemporality=e.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),t.dataPoints&&t.dataPoints.length){n.dataPoints=[];for(var s=0;s<t.dataPoints.length;++s)n.dataPoints[s]=p.opentelemetry.proto.metrics.v1.HistogramDataPoint.toObject(t.dataPoints[s],e)}return t.aggregationTemporality!=null&&t.hasOwnProperty("aggregationTemporality")&&(n.aggregationTemporality=e.enums===String?p.opentelemetry.proto.metrics.v1.AggregationTemporality[t.aggregationTemporality]===void 0?t.aggregationTemporality:p.opentelemetry.proto.metrics.v1.AggregationTemporality[t.aggregationTemporality]:t.aggregationTemporality),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.metrics.v1.Histogram"},a}(),c.ExponentialHistogram=function(){function a(u){if(this.dataPoints=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.dataPoints=_.emptyArray,a.prototype.aggregationTemporality=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.dataPoints!=null&&t.dataPoints.length)for(var n=0;n<t.dataPoints.length;++n)p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.encode(t.dataPoints[n],e.uint32(10).fork()).ldelim();return t.aggregationTemporality!=null&&Object.hasOwnProperty.call(t,"aggregationTemporality")&&e.uint32(16).int32(t.aggregationTemporality),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.metrics.v1.ExponentialHistogram;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.dataPoints&&s.dataPoints.length||(s.dataPoints=[]),s.dataPoints.push(p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.decode(t,t.uint32()));break}case 2:{s.aggregationTemporality=t.int32();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.dataPoints!=null&&t.hasOwnProperty("dataPoints")){if(!Array.isArray(t.dataPoints))return"dataPoints: array expected";for(var e=0;e<t.dataPoints.length;++e){var n=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.verify(t.dataPoints[e]);if(n)return"dataPoints."+n}}if(t.aggregationTemporality!=null&&t.hasOwnProperty("aggregationTemporality"))switch(t.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.metrics.v1.ExponentialHistogram)return t;var e=new p.opentelemetry.proto.metrics.v1.ExponentialHistogram;if(t.dataPoints){if(!Array.isArray(t.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: array expected");e.dataPoints=[];for(var n=0;n<t.dataPoints.length;++n){if(typeof t.dataPoints[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: object expected");e.dataPoints[n]=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.fromObject(t.dataPoints[n])}}switch(t.aggregationTemporality){default:if(typeof t.aggregationTemporality=="number"){e.aggregationTemporality=t.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:e.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:e.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:e.aggregationTemporality=2;break}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.dataPoints=[]),e.defaults&&(n.aggregationTemporality=e.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),t.dataPoints&&t.dataPoints.length){n.dataPoints=[];for(var s=0;s<t.dataPoints.length;++s)n.dataPoints[s]=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.toObject(t.dataPoints[s],e)}return t.aggregationTemporality!=null&&t.hasOwnProperty("aggregationTemporality")&&(n.aggregationTemporality=e.enums===String?p.opentelemetry.proto.metrics.v1.AggregationTemporality[t.aggregationTemporality]===void 0?t.aggregationTemporality:p.opentelemetry.proto.metrics.v1.AggregationTemporality[t.aggregationTemporality]:t.aggregationTemporality),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.metrics.v1.ExponentialHistogram"},a}(),c.Summary=function(){function a(u){if(this.dataPoints=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.dataPoints=_.emptyArray,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.dataPoints!=null&&t.dataPoints.length)for(var n=0;n<t.dataPoints.length;++n)p.opentelemetry.proto.metrics.v1.SummaryDataPoint.encode(t.dataPoints[n],e.uint32(10).fork()).ldelim();return e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.metrics.v1.Summary;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.dataPoints&&s.dataPoints.length||(s.dataPoints=[]),s.dataPoints.push(p.opentelemetry.proto.metrics.v1.SummaryDataPoint.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.dataPoints!=null&&t.hasOwnProperty("dataPoints")){if(!Array.isArray(t.dataPoints))return"dataPoints: array expected";for(var e=0;e<t.dataPoints.length;++e){var n=p.opentelemetry.proto.metrics.v1.SummaryDataPoint.verify(t.dataPoints[e]);if(n)return"dataPoints."+n}}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.metrics.v1.Summary)return t;var e=new p.opentelemetry.proto.metrics.v1.Summary;if(t.dataPoints){if(!Array.isArray(t.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: array expected");e.dataPoints=[];for(var n=0;n<t.dataPoints.length;++n){if(typeof t.dataPoints[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: object expected");e.dataPoints[n]=p.opentelemetry.proto.metrics.v1.SummaryDataPoint.fromObject(t.dataPoints[n])}}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.dataPoints=[]),t.dataPoints&&t.dataPoints.length){n.dataPoints=[];for(var s=0;s<t.dataPoints.length;++s)n.dataPoints[s]=p.opentelemetry.proto.metrics.v1.SummaryDataPoint.toObject(t.dataPoints[s],e)}return n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.metrics.v1.Summary"},a}(),c.AggregationTemporality=function(){var a={},u=Object.create(a);return u[a[0]="AGGREGATION_TEMPORALITY_UNSPECIFIED"]=0,u[a[1]="AGGREGATION_TEMPORALITY_DELTA"]=1,u[a[2]="AGGREGATION_TEMPORALITY_CUMULATIVE"]=2,u}(),c.DataPointFlags=function(){var a={},u=Object.create(a);return u[a[0]="DATA_POINT_FLAGS_DO_NOT_USE"]=0,u[a[1]="DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK"]=1,u}(),c.NumberDataPoint=function(){function a(t){if(this.attributes=[],this.exemplars=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}a.prototype.attributes=_.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.asDouble=null,a.prototype.asInt=null,a.prototype.exemplars=_.emptyArray,a.prototype.flags=null;var u;return Object.defineProperty(a.prototype,"value",{get:_.oneOfGetter(u=["asDouble","asInt"]),set:_.oneOfSetter(u)}),a.create=function(e){return new a(e)},a.encode=function(e,n){if(n||(n=h.create()),e.startTimeUnixNano!=null&&Object.hasOwnProperty.call(e,"startTimeUnixNano")&&n.uint32(17).fixed64(e.startTimeUnixNano),e.timeUnixNano!=null&&Object.hasOwnProperty.call(e,"timeUnixNano")&&n.uint32(25).fixed64(e.timeUnixNano),e.asDouble!=null&&Object.hasOwnProperty.call(e,"asDouble")&&n.uint32(33).double(e.asDouble),e.exemplars!=null&&e.exemplars.length)for(var s=0;s<e.exemplars.length;++s)p.opentelemetry.proto.metrics.v1.Exemplar.encode(e.exemplars[s],n.uint32(42).fork()).ldelim();if(e.asInt!=null&&Object.hasOwnProperty.call(e,"asInt")&&n.uint32(49).sfixed64(e.asInt),e.attributes!=null&&e.attributes.length)for(var s=0;s<e.attributes.length;++s)p.opentelemetry.proto.common.v1.KeyValue.encode(e.attributes[s],n.uint32(58).fork()).ldelim();return e.flags!=null&&Object.hasOwnProperty.call(e,"flags")&&n.uint32(64).uint32(e.flags),n},a.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},a.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.metrics.v1.NumberDataPoint;e.pos<s;){var E=e.uint32();switch(E>>>3){case 7:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(e,e.uint32()));break}case 2:{l.startTimeUnixNano=e.fixed64();break}case 3:{l.timeUnixNano=e.fixed64();break}case 4:{l.asDouble=e.double();break}case 6:{l.asInt=e.sfixed64();break}case 5:{l.exemplars&&l.exemplars.length||(l.exemplars=[]),l.exemplars.push(p.opentelemetry.proto.metrics.v1.Exemplar.decode(e,e.uint32()));break}case 8:{l.flags=e.uint32();break}default:e.skipType(E&7);break}}return l},a.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},a.verify=function(e){if(typeof e!="object"||e===null)return"object expected";var n={};if(e.attributes!=null&&e.hasOwnProperty("attributes")){if(!Array.isArray(e.attributes))return"attributes: array expected";for(var s=0;s<e.attributes.length;++s){var l=p.opentelemetry.proto.common.v1.KeyValue.verify(e.attributes[s]);if(l)return"attributes."+l}}if(e.startTimeUnixNano!=null&&e.hasOwnProperty("startTimeUnixNano")&&!_.isInteger(e.startTimeUnixNano)&&!(e.startTimeUnixNano&&_.isInteger(e.startTimeUnixNano.low)&&_.isInteger(e.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&!_.isInteger(e.timeUnixNano)&&!(e.timeUnixNano&&_.isInteger(e.timeUnixNano.low)&&_.isInteger(e.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(e.asDouble!=null&&e.hasOwnProperty("asDouble")&&(n.value=1,typeof e.asDouble!="number"))return"asDouble: number expected";if(e.asInt!=null&&e.hasOwnProperty("asInt")){if(n.value===1)return"value: multiple values";if(n.value=1,!_.isInteger(e.asInt)&&!(e.asInt&&_.isInteger(e.asInt.low)&&_.isInteger(e.asInt.high)))return"asInt: integer|Long expected"}if(e.exemplars!=null&&e.hasOwnProperty("exemplars")){if(!Array.isArray(e.exemplars))return"exemplars: array expected";for(var s=0;s<e.exemplars.length;++s){var l=p.opentelemetry.proto.metrics.v1.Exemplar.verify(e.exemplars[s]);if(l)return"exemplars."+l}}return e.flags!=null&&e.hasOwnProperty("flags")&&!_.isInteger(e.flags)?"flags: integer expected":null},a.fromObject=function(e){if(e instanceof p.opentelemetry.proto.metrics.v1.NumberDataPoint)return e;var n=new p.opentelemetry.proto.metrics.v1.NumberDataPoint;if(e.attributes){if(!Array.isArray(e.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: array expected");n.attributes=[];for(var s=0;s<e.attributes.length;++s){if(typeof e.attributes[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: object expected");n.attributes[s]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(e.attributes[s])}}if(e.startTimeUnixNano!=null&&(_.Long?(n.startTimeUnixNano=_.Long.fromValue(e.startTimeUnixNano)).unsigned=!1:typeof e.startTimeUnixNano=="string"?n.startTimeUnixNano=parseInt(e.startTimeUnixNano,10):typeof e.startTimeUnixNano=="number"?n.startTimeUnixNano=e.startTimeUnixNano:typeof e.startTimeUnixNano=="object"&&(n.startTimeUnixNano=new _.LongBits(e.startTimeUnixNano.low>>>0,e.startTimeUnixNano.high>>>0).toNumber())),e.timeUnixNano!=null&&(_.Long?(n.timeUnixNano=_.Long.fromValue(e.timeUnixNano)).unsigned=!1:typeof e.timeUnixNano=="string"?n.timeUnixNano=parseInt(e.timeUnixNano,10):typeof e.timeUnixNano=="number"?n.timeUnixNano=e.timeUnixNano:typeof e.timeUnixNano=="object"&&(n.timeUnixNano=new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber())),e.asDouble!=null&&(n.asDouble=Number(e.asDouble)),e.asInt!=null&&(_.Long?(n.asInt=_.Long.fromValue(e.asInt)).unsigned=!1:typeof e.asInt=="string"?n.asInt=parseInt(e.asInt,10):typeof e.asInt=="number"?n.asInt=e.asInt:typeof e.asInt=="object"&&(n.asInt=new _.LongBits(e.asInt.low>>>0,e.asInt.high>>>0).toNumber())),e.exemplars){if(!Array.isArray(e.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: array expected");n.exemplars=[];for(var s=0;s<e.exemplars.length;++s){if(typeof e.exemplars[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: object expected");n.exemplars[s]=p.opentelemetry.proto.metrics.v1.Exemplar.fromObject(e.exemplars[s])}}return e.flags!=null&&(n.flags=e.flags>>>0),n},a.toObject=function(e,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.exemplars=[],s.attributes=[]),n.defaults){if(_.Long){var l=new _.Long(0,0,!1);s.startTimeUnixNano=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.startTimeUnixNano=n.longs===String?"0":0;if(_.Long){var l=new _.Long(0,0,!1);s.timeUnixNano=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.timeUnixNano=n.longs===String?"0":0;s.flags=0}if(e.startTimeUnixNano!=null&&e.hasOwnProperty("startTimeUnixNano")&&(typeof e.startTimeUnixNano=="number"?s.startTimeUnixNano=n.longs===String?String(e.startTimeUnixNano):e.startTimeUnixNano:s.startTimeUnixNano=n.longs===String?_.Long.prototype.toString.call(e.startTimeUnixNano):n.longs===Number?new _.LongBits(e.startTimeUnixNano.low>>>0,e.startTimeUnixNano.high>>>0).toNumber():e.startTimeUnixNano),e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&(typeof e.timeUnixNano=="number"?s.timeUnixNano=n.longs===String?String(e.timeUnixNano):e.timeUnixNano:s.timeUnixNano=n.longs===String?_.Long.prototype.toString.call(e.timeUnixNano):n.longs===Number?new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber():e.timeUnixNano),e.asDouble!=null&&e.hasOwnProperty("asDouble")&&(s.asDouble=n.json&&!isFinite(e.asDouble)?String(e.asDouble):e.asDouble,n.oneofs&&(s.value="asDouble")),e.exemplars&&e.exemplars.length){s.exemplars=[];for(var E=0;E<e.exemplars.length;++E)s.exemplars[E]=p.opentelemetry.proto.metrics.v1.Exemplar.toObject(e.exemplars[E],n)}if(e.asInt!=null&&e.hasOwnProperty("asInt")&&(typeof e.asInt=="number"?s.asInt=n.longs===String?String(e.asInt):e.asInt:s.asInt=n.longs===String?_.Long.prototype.toString.call(e.asInt):n.longs===Number?new _.LongBits(e.asInt.low>>>0,e.asInt.high>>>0).toNumber():e.asInt,n.oneofs&&(s.value="asInt")),e.attributes&&e.attributes.length){s.attributes=[];for(var E=0;E<e.attributes.length;++E)s.attributes[E]=p.opentelemetry.proto.common.v1.KeyValue.toObject(e.attributes[E],n)}return e.flags!=null&&e.hasOwnProperty("flags")&&(s.flags=e.flags),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.metrics.v1.NumberDataPoint"},a}(),c.HistogramDataPoint=function(){function a(t){if(this.attributes=[],this.bucketCounts=[],this.explicitBounds=[],this.exemplars=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}a.prototype.attributes=_.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.count=null,a.prototype.sum=null,a.prototype.bucketCounts=_.emptyArray,a.prototype.explicitBounds=_.emptyArray,a.prototype.exemplars=_.emptyArray,a.prototype.flags=null,a.prototype.min=null,a.prototype.max=null;var u;return Object.defineProperty(a.prototype,"_sum",{get:_.oneOfGetter(u=["sum"]),set:_.oneOfSetter(u)}),Object.defineProperty(a.prototype,"_min",{get:_.oneOfGetter(u=["min"]),set:_.oneOfSetter(u)}),Object.defineProperty(a.prototype,"_max",{get:_.oneOfGetter(u=["max"]),set:_.oneOfSetter(u)}),a.create=function(e){return new a(e)},a.encode=function(e,n){if(n||(n=h.create()),e.startTimeUnixNano!=null&&Object.hasOwnProperty.call(e,"startTimeUnixNano")&&n.uint32(17).fixed64(e.startTimeUnixNano),e.timeUnixNano!=null&&Object.hasOwnProperty.call(e,"timeUnixNano")&&n.uint32(25).fixed64(e.timeUnixNano),e.count!=null&&Object.hasOwnProperty.call(e,"count")&&n.uint32(33).fixed64(e.count),e.sum!=null&&Object.hasOwnProperty.call(e,"sum")&&n.uint32(41).double(e.sum),e.bucketCounts!=null&&e.bucketCounts.length){n.uint32(50).fork();for(var s=0;s<e.bucketCounts.length;++s)n.fixed64(e.bucketCounts[s]);n.ldelim()}if(e.explicitBounds!=null&&e.explicitBounds.length){n.uint32(58).fork();for(var s=0;s<e.explicitBounds.length;++s)n.double(e.explicitBounds[s]);n.ldelim()}if(e.exemplars!=null&&e.exemplars.length)for(var s=0;s<e.exemplars.length;++s)p.opentelemetry.proto.metrics.v1.Exemplar.encode(e.exemplars[s],n.uint32(66).fork()).ldelim();if(e.attributes!=null&&e.attributes.length)for(var s=0;s<e.attributes.length;++s)p.opentelemetry.proto.common.v1.KeyValue.encode(e.attributes[s],n.uint32(74).fork()).ldelim();return e.flags!=null&&Object.hasOwnProperty.call(e,"flags")&&n.uint32(80).uint32(e.flags),e.min!=null&&Object.hasOwnProperty.call(e,"min")&&n.uint32(89).double(e.min),e.max!=null&&Object.hasOwnProperty.call(e,"max")&&n.uint32(97).double(e.max),n},a.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},a.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.metrics.v1.HistogramDataPoint;e.pos<s;){var E=e.uint32();switch(E>>>3){case 9:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(e,e.uint32()));break}case 2:{l.startTimeUnixNano=e.fixed64();break}case 3:{l.timeUnixNano=e.fixed64();break}case 4:{l.count=e.fixed64();break}case 5:{l.sum=e.double();break}case 6:{if(l.bucketCounts&&l.bucketCounts.length||(l.bucketCounts=[]),(E&7)===2)for(var O=e.uint32()+e.pos;e.pos<O;)l.bucketCounts.push(e.fixed64());else l.bucketCounts.push(e.fixed64());break}case 7:{if(l.explicitBounds&&l.explicitBounds.length||(l.explicitBounds=[]),(E&7)===2)for(var O=e.uint32()+e.pos;e.pos<O;)l.explicitBounds.push(e.double());else l.explicitBounds.push(e.double());break}case 8:{l.exemplars&&l.exemplars.length||(l.exemplars=[]),l.exemplars.push(p.opentelemetry.proto.metrics.v1.Exemplar.decode(e,e.uint32()));break}case 10:{l.flags=e.uint32();break}case 11:{l.min=e.double();break}case 12:{l.max=e.double();break}default:e.skipType(E&7);break}}return l},a.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},a.verify=function(e){if(typeof e!="object"||e===null)return"object expected";var n={};if(e.attributes!=null&&e.hasOwnProperty("attributes")){if(!Array.isArray(e.attributes))return"attributes: array expected";for(var s=0;s<e.attributes.length;++s){var l=p.opentelemetry.proto.common.v1.KeyValue.verify(e.attributes[s]);if(l)return"attributes."+l}}if(e.startTimeUnixNano!=null&&e.hasOwnProperty("startTimeUnixNano")&&!_.isInteger(e.startTimeUnixNano)&&!(e.startTimeUnixNano&&_.isInteger(e.startTimeUnixNano.low)&&_.isInteger(e.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&!_.isInteger(e.timeUnixNano)&&!(e.timeUnixNano&&_.isInteger(e.timeUnixNano.low)&&_.isInteger(e.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(e.count!=null&&e.hasOwnProperty("count")&&!_.isInteger(e.count)&&!(e.count&&_.isInteger(e.count.low)&&_.isInteger(e.count.high)))return"count: integer|Long expected";if(e.sum!=null&&e.hasOwnProperty("sum")&&(n._sum=1,typeof e.sum!="number"))return"sum: number expected";if(e.bucketCounts!=null&&e.hasOwnProperty("bucketCounts")){if(!Array.isArray(e.bucketCounts))return"bucketCounts: array expected";for(var s=0;s<e.bucketCounts.length;++s)if(!_.isInteger(e.bucketCounts[s])&&!(e.bucketCounts[s]&&_.isInteger(e.bucketCounts[s].low)&&_.isInteger(e.bucketCounts[s].high)))return"bucketCounts: integer|Long[] expected"}if(e.explicitBounds!=null&&e.hasOwnProperty("explicitBounds")){if(!Array.isArray(e.explicitBounds))return"explicitBounds: array expected";for(var s=0;s<e.explicitBounds.length;++s)if(typeof e.explicitBounds[s]!="number")return"explicitBounds: number[] expected"}if(e.exemplars!=null&&e.hasOwnProperty("exemplars")){if(!Array.isArray(e.exemplars))return"exemplars: array expected";for(var s=0;s<e.exemplars.length;++s){var l=p.opentelemetry.proto.metrics.v1.Exemplar.verify(e.exemplars[s]);if(l)return"exemplars."+l}}return e.flags!=null&&e.hasOwnProperty("flags")&&!_.isInteger(e.flags)?"flags: integer expected":e.min!=null&&e.hasOwnProperty("min")&&(n._min=1,typeof e.min!="number")?"min: number expected":e.max!=null&&e.hasOwnProperty("max")&&(n._max=1,typeof e.max!="number")?"max: number expected":null},a.fromObject=function(e){if(e instanceof p.opentelemetry.proto.metrics.v1.HistogramDataPoint)return e;var n=new p.opentelemetry.proto.metrics.v1.HistogramDataPoint;if(e.attributes){if(!Array.isArray(e.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: array expected");n.attributes=[];for(var s=0;s<e.attributes.length;++s){if(typeof e.attributes[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: object expected");n.attributes[s]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(e.attributes[s])}}if(e.startTimeUnixNano!=null&&(_.Long?(n.startTimeUnixNano=_.Long.fromValue(e.startTimeUnixNano)).unsigned=!1:typeof e.startTimeUnixNano=="string"?n.startTimeUnixNano=parseInt(e.startTimeUnixNano,10):typeof e.startTimeUnixNano=="number"?n.startTimeUnixNano=e.startTimeUnixNano:typeof e.startTimeUnixNano=="object"&&(n.startTimeUnixNano=new _.LongBits(e.startTimeUnixNano.low>>>0,e.startTimeUnixNano.high>>>0).toNumber())),e.timeUnixNano!=null&&(_.Long?(n.timeUnixNano=_.Long.fromValue(e.timeUnixNano)).unsigned=!1:typeof e.timeUnixNano=="string"?n.timeUnixNano=parseInt(e.timeUnixNano,10):typeof e.timeUnixNano=="number"?n.timeUnixNano=e.timeUnixNano:typeof e.timeUnixNano=="object"&&(n.timeUnixNano=new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber())),e.count!=null&&(_.Long?(n.count=_.Long.fromValue(e.count)).unsigned=!1:typeof e.count=="string"?n.count=parseInt(e.count,10):typeof e.count=="number"?n.count=e.count:typeof e.count=="object"&&(n.count=new _.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber())),e.sum!=null&&(n.sum=Number(e.sum)),e.bucketCounts){if(!Array.isArray(e.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.bucketCounts: array expected");n.bucketCounts=[];for(var s=0;s<e.bucketCounts.length;++s)_.Long?(n.bucketCounts[s]=_.Long.fromValue(e.bucketCounts[s])).unsigned=!1:typeof e.bucketCounts[s]=="string"?n.bucketCounts[s]=parseInt(e.bucketCounts[s],10):typeof e.bucketCounts[s]=="number"?n.bucketCounts[s]=e.bucketCounts[s]:typeof e.bucketCounts[s]=="object"&&(n.bucketCounts[s]=new _.LongBits(e.bucketCounts[s].low>>>0,e.bucketCounts[s].high>>>0).toNumber())}if(e.explicitBounds){if(!Array.isArray(e.explicitBounds))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.explicitBounds: array expected");n.explicitBounds=[];for(var s=0;s<e.explicitBounds.length;++s)n.explicitBounds[s]=Number(e.explicitBounds[s])}if(e.exemplars){if(!Array.isArray(e.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: array expected");n.exemplars=[];for(var s=0;s<e.exemplars.length;++s){if(typeof e.exemplars[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: object expected");n.exemplars[s]=p.opentelemetry.proto.metrics.v1.Exemplar.fromObject(e.exemplars[s])}}return e.flags!=null&&(n.flags=e.flags>>>0),e.min!=null&&(n.min=Number(e.min)),e.max!=null&&(n.max=Number(e.max)),n},a.toObject=function(e,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.bucketCounts=[],s.explicitBounds=[],s.exemplars=[],s.attributes=[]),n.defaults){if(_.Long){var l=new _.Long(0,0,!1);s.startTimeUnixNano=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.startTimeUnixNano=n.longs===String?"0":0;if(_.Long){var l=new _.Long(0,0,!1);s.timeUnixNano=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.timeUnixNano=n.longs===String?"0":0;if(_.Long){var l=new _.Long(0,0,!1);s.count=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.count=n.longs===String?"0":0;s.flags=0}if(e.startTimeUnixNano!=null&&e.hasOwnProperty("startTimeUnixNano")&&(typeof e.startTimeUnixNano=="number"?s.startTimeUnixNano=n.longs===String?String(e.startTimeUnixNano):e.startTimeUnixNano:s.startTimeUnixNano=n.longs===String?_.Long.prototype.toString.call(e.startTimeUnixNano):n.longs===Number?new _.LongBits(e.startTimeUnixNano.low>>>0,e.startTimeUnixNano.high>>>0).toNumber():e.startTimeUnixNano),e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&(typeof e.timeUnixNano=="number"?s.timeUnixNano=n.longs===String?String(e.timeUnixNano):e.timeUnixNano:s.timeUnixNano=n.longs===String?_.Long.prototype.toString.call(e.timeUnixNano):n.longs===Number?new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber():e.timeUnixNano),e.count!=null&&e.hasOwnProperty("count")&&(typeof e.count=="number"?s.count=n.longs===String?String(e.count):e.count:s.count=n.longs===String?_.Long.prototype.toString.call(e.count):n.longs===Number?new _.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber():e.count),e.sum!=null&&e.hasOwnProperty("sum")&&(s.sum=n.json&&!isFinite(e.sum)?String(e.sum):e.sum,n.oneofs&&(s._sum="sum")),e.bucketCounts&&e.bucketCounts.length){s.bucketCounts=[];for(var E=0;E<e.bucketCounts.length;++E)typeof e.bucketCounts[E]=="number"?s.bucketCounts[E]=n.longs===String?String(e.bucketCounts[E]):e.bucketCounts[E]:s.bucketCounts[E]=n.longs===String?_.Long.prototype.toString.call(e.bucketCounts[E]):n.longs===Number?new _.LongBits(e.bucketCounts[E].low>>>0,e.bucketCounts[E].high>>>0).toNumber():e.bucketCounts[E]}if(e.explicitBounds&&e.explicitBounds.length){s.explicitBounds=[];for(var E=0;E<e.explicitBounds.length;++E)s.explicitBounds[E]=n.json&&!isFinite(e.explicitBounds[E])?String(e.explicitBounds[E]):e.explicitBounds[E]}if(e.exemplars&&e.exemplars.length){s.exemplars=[];for(var E=0;E<e.exemplars.length;++E)s.exemplars[E]=p.opentelemetry.proto.metrics.v1.Exemplar.toObject(e.exemplars[E],n)}if(e.attributes&&e.attributes.length){s.attributes=[];for(var E=0;E<e.attributes.length;++E)s.attributes[E]=p.opentelemetry.proto.common.v1.KeyValue.toObject(e.attributes[E],n)}return e.flags!=null&&e.hasOwnProperty("flags")&&(s.flags=e.flags),e.min!=null&&e.hasOwnProperty("min")&&(s.min=n.json&&!isFinite(e.min)?String(e.min):e.min,n.oneofs&&(s._min="min")),e.max!=null&&e.hasOwnProperty("max")&&(s.max=n.json&&!isFinite(e.max)?String(e.max):e.max,n.oneofs&&(s._max="max")),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.metrics.v1.HistogramDataPoint"},a}(),c.ExponentialHistogramDataPoint=function(){function a(t){if(this.attributes=[],this.exemplars=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}a.prototype.attributes=_.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.count=null,a.prototype.sum=null,a.prototype.scale=null,a.prototype.zeroCount=null,a.prototype.positive=null,a.prototype.negative=null,a.prototype.flags=null,a.prototype.exemplars=_.emptyArray,a.prototype.min=null,a.prototype.max=null,a.prototype.zeroThreshold=null;var u;return Object.defineProperty(a.prototype,"_sum",{get:_.oneOfGetter(u=["sum"]),set:_.oneOfSetter(u)}),Object.defineProperty(a.prototype,"_min",{get:_.oneOfGetter(u=["min"]),set:_.oneOfSetter(u)}),Object.defineProperty(a.prototype,"_max",{get:_.oneOfGetter(u=["max"]),set:_.oneOfSetter(u)}),a.create=function(e){return new a(e)},a.encode=function(e,n){if(n||(n=h.create()),e.attributes!=null&&e.attributes.length)for(var s=0;s<e.attributes.length;++s)p.opentelemetry.proto.common.v1.KeyValue.encode(e.attributes[s],n.uint32(10).fork()).ldelim();if(e.startTimeUnixNano!=null&&Object.hasOwnProperty.call(e,"startTimeUnixNano")&&n.uint32(17).fixed64(e.startTimeUnixNano),e.timeUnixNano!=null&&Object.hasOwnProperty.call(e,"timeUnixNano")&&n.uint32(25).fixed64(e.timeUnixNano),e.count!=null&&Object.hasOwnProperty.call(e,"count")&&n.uint32(33).fixed64(e.count),e.sum!=null&&Object.hasOwnProperty.call(e,"sum")&&n.uint32(41).double(e.sum),e.scale!=null&&Object.hasOwnProperty.call(e,"scale")&&n.uint32(48).sint32(e.scale),e.zeroCount!=null&&Object.hasOwnProperty.call(e,"zeroCount")&&n.uint32(57).fixed64(e.zeroCount),e.positive!=null&&Object.hasOwnProperty.call(e,"positive")&&p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(e.positive,n.uint32(66).fork()).ldelim(),e.negative!=null&&Object.hasOwnProperty.call(e,"negative")&&p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(e.negative,n.uint32(74).fork()).ldelim(),e.flags!=null&&Object.hasOwnProperty.call(e,"flags")&&n.uint32(80).uint32(e.flags),e.exemplars!=null&&e.exemplars.length)for(var s=0;s<e.exemplars.length;++s)p.opentelemetry.proto.metrics.v1.Exemplar.encode(e.exemplars[s],n.uint32(90).fork()).ldelim();return e.min!=null&&Object.hasOwnProperty.call(e,"min")&&n.uint32(97).double(e.min),e.max!=null&&Object.hasOwnProperty.call(e,"max")&&n.uint32(105).double(e.max),e.zeroThreshold!=null&&Object.hasOwnProperty.call(e,"zeroThreshold")&&n.uint32(113).double(e.zeroThreshold),n},a.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},a.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(e,e.uint32()));break}case 2:{l.startTimeUnixNano=e.fixed64();break}case 3:{l.timeUnixNano=e.fixed64();break}case 4:{l.count=e.fixed64();break}case 5:{l.sum=e.double();break}case 6:{l.scale=e.sint32();break}case 7:{l.zeroCount=e.fixed64();break}case 8:{l.positive=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(e,e.uint32());break}case 9:{l.negative=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(e,e.uint32());break}case 10:{l.flags=e.uint32();break}case 11:{l.exemplars&&l.exemplars.length||(l.exemplars=[]),l.exemplars.push(p.opentelemetry.proto.metrics.v1.Exemplar.decode(e,e.uint32()));break}case 12:{l.min=e.double();break}case 13:{l.max=e.double();break}case 14:{l.zeroThreshold=e.double();break}default:e.skipType(E&7);break}}return l},a.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},a.verify=function(e){if(typeof e!="object"||e===null)return"object expected";var n={};if(e.attributes!=null&&e.hasOwnProperty("attributes")){if(!Array.isArray(e.attributes))return"attributes: array expected";for(var s=0;s<e.attributes.length;++s){var l=p.opentelemetry.proto.common.v1.KeyValue.verify(e.attributes[s]);if(l)return"attributes."+l}}if(e.startTimeUnixNano!=null&&e.hasOwnProperty("startTimeUnixNano")&&!_.isInteger(e.startTimeUnixNano)&&!(e.startTimeUnixNano&&_.isInteger(e.startTimeUnixNano.low)&&_.isInteger(e.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&!_.isInteger(e.timeUnixNano)&&!(e.timeUnixNano&&_.isInteger(e.timeUnixNano.low)&&_.isInteger(e.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(e.count!=null&&e.hasOwnProperty("count")&&!_.isInteger(e.count)&&!(e.count&&_.isInteger(e.count.low)&&_.isInteger(e.count.high)))return"count: integer|Long expected";if(e.sum!=null&&e.hasOwnProperty("sum")&&(n._sum=1,typeof e.sum!="number"))return"sum: number expected";if(e.scale!=null&&e.hasOwnProperty("scale")&&!_.isInteger(e.scale))return"scale: integer expected";if(e.zeroCount!=null&&e.hasOwnProperty("zeroCount")&&!_.isInteger(e.zeroCount)&&!(e.zeroCount&&_.isInteger(e.zeroCount.low)&&_.isInteger(e.zeroCount.high)))return"zeroCount: integer|Long expected";if(e.positive!=null&&e.hasOwnProperty("positive")){var l=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(e.positive);if(l)return"positive."+l}if(e.negative!=null&&e.hasOwnProperty("negative")){var l=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(e.negative);if(l)return"negative."+l}if(e.flags!=null&&e.hasOwnProperty("flags")&&!_.isInteger(e.flags))return"flags: integer expected";if(e.exemplars!=null&&e.hasOwnProperty("exemplars")){if(!Array.isArray(e.exemplars))return"exemplars: array expected";for(var s=0;s<e.exemplars.length;++s){var l=p.opentelemetry.proto.metrics.v1.Exemplar.verify(e.exemplars[s]);if(l)return"exemplars."+l}}return e.min!=null&&e.hasOwnProperty("min")&&(n._min=1,typeof e.min!="number")?"min: number expected":e.max!=null&&e.hasOwnProperty("max")&&(n._max=1,typeof e.max!="number")?"max: number expected":e.zeroThreshold!=null&&e.hasOwnProperty("zeroThreshold")&&typeof e.zeroThreshold!="number"?"zeroThreshold: number expected":null},a.fromObject=function(e){if(e instanceof p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint)return e;var n=new p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;if(e.attributes){if(!Array.isArray(e.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: array expected");n.attributes=[];for(var s=0;s<e.attributes.length;++s){if(typeof e.attributes[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: object expected");n.attributes[s]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(e.attributes[s])}}if(e.startTimeUnixNano!=null&&(_.Long?(n.startTimeUnixNano=_.Long.fromValue(e.startTimeUnixNano)).unsigned=!1:typeof e.startTimeUnixNano=="string"?n.startTimeUnixNano=parseInt(e.startTimeUnixNano,10):typeof e.startTimeUnixNano=="number"?n.startTimeUnixNano=e.startTimeUnixNano:typeof e.startTimeUnixNano=="object"&&(n.startTimeUnixNano=new _.LongBits(e.startTimeUnixNano.low>>>0,e.startTimeUnixNano.high>>>0).toNumber())),e.timeUnixNano!=null&&(_.Long?(n.timeUnixNano=_.Long.fromValue(e.timeUnixNano)).unsigned=!1:typeof e.timeUnixNano=="string"?n.timeUnixNano=parseInt(e.timeUnixNano,10):typeof e.timeUnixNano=="number"?n.timeUnixNano=e.timeUnixNano:typeof e.timeUnixNano=="object"&&(n.timeUnixNano=new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber())),e.count!=null&&(_.Long?(n.count=_.Long.fromValue(e.count)).unsigned=!1:typeof e.count=="string"?n.count=parseInt(e.count,10):typeof e.count=="number"?n.count=e.count:typeof e.count=="object"&&(n.count=new _.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber())),e.sum!=null&&(n.sum=Number(e.sum)),e.scale!=null&&(n.scale=e.scale|0),e.zeroCount!=null&&(_.Long?(n.zeroCount=_.Long.fromValue(e.zeroCount)).unsigned=!1:typeof e.zeroCount=="string"?n.zeroCount=parseInt(e.zeroCount,10):typeof e.zeroCount=="number"?n.zeroCount=e.zeroCount:typeof e.zeroCount=="object"&&(n.zeroCount=new _.LongBits(e.zeroCount.low>>>0,e.zeroCount.high>>>0).toNumber())),e.positive!=null){if(typeof e.positive!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.positive: object expected");n.positive=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(e.positive)}if(e.negative!=null){if(typeof e.negative!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.negative: object expected");n.negative=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(e.negative)}if(e.flags!=null&&(n.flags=e.flags>>>0),e.exemplars){if(!Array.isArray(e.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: array expected");n.exemplars=[];for(var s=0;s<e.exemplars.length;++s){if(typeof e.exemplars[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: object expected");n.exemplars[s]=p.opentelemetry.proto.metrics.v1.Exemplar.fromObject(e.exemplars[s])}}return e.min!=null&&(n.min=Number(e.min)),e.max!=null&&(n.max=Number(e.max)),e.zeroThreshold!=null&&(n.zeroThreshold=Number(e.zeroThreshold)),n},a.toObject=function(e,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.attributes=[],s.exemplars=[]),n.defaults){if(_.Long){var l=new _.Long(0,0,!1);s.startTimeUnixNano=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.startTimeUnixNano=n.longs===String?"0":0;if(_.Long){var l=new _.Long(0,0,!1);s.timeUnixNano=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.timeUnixNano=n.longs===String?"0":0;if(_.Long){var l=new _.Long(0,0,!1);s.count=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.count=n.longs===String?"0":0;if(s.scale=0,_.Long){var l=new _.Long(0,0,!1);s.zeroCount=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.zeroCount=n.longs===String?"0":0;s.positive=null,s.negative=null,s.flags=0,s.zeroThreshold=0}if(e.attributes&&e.attributes.length){s.attributes=[];for(var E=0;E<e.attributes.length;++E)s.attributes[E]=p.opentelemetry.proto.common.v1.KeyValue.toObject(e.attributes[E],n)}if(e.startTimeUnixNano!=null&&e.hasOwnProperty("startTimeUnixNano")&&(typeof e.startTimeUnixNano=="number"?s.startTimeUnixNano=n.longs===String?String(e.startTimeUnixNano):e.startTimeUnixNano:s.startTimeUnixNano=n.longs===String?_.Long.prototype.toString.call(e.startTimeUnixNano):n.longs===Number?new _.LongBits(e.startTimeUnixNano.low>>>0,e.startTimeUnixNano.high>>>0).toNumber():e.startTimeUnixNano),e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&(typeof e.timeUnixNano=="number"?s.timeUnixNano=n.longs===String?String(e.timeUnixNano):e.timeUnixNano:s.timeUnixNano=n.longs===String?_.Long.prototype.toString.call(e.timeUnixNano):n.longs===Number?new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber():e.timeUnixNano),e.count!=null&&e.hasOwnProperty("count")&&(typeof e.count=="number"?s.count=n.longs===String?String(e.count):e.count:s.count=n.longs===String?_.Long.prototype.toString.call(e.count):n.longs===Number?new _.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber():e.count),e.sum!=null&&e.hasOwnProperty("sum")&&(s.sum=n.json&&!isFinite(e.sum)?String(e.sum):e.sum,n.oneofs&&(s._sum="sum")),e.scale!=null&&e.hasOwnProperty("scale")&&(s.scale=e.scale),e.zeroCount!=null&&e.hasOwnProperty("zeroCount")&&(typeof e.zeroCount=="number"?s.zeroCount=n.longs===String?String(e.zeroCount):e.zeroCount:s.zeroCount=n.longs===String?_.Long.prototype.toString.call(e.zeroCount):n.longs===Number?new _.LongBits(e.zeroCount.low>>>0,e.zeroCount.high>>>0).toNumber():e.zeroCount),e.positive!=null&&e.hasOwnProperty("positive")&&(s.positive=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(e.positive,n)),e.negative!=null&&e.hasOwnProperty("negative")&&(s.negative=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(e.negative,n)),e.flags!=null&&e.hasOwnProperty("flags")&&(s.flags=e.flags),e.exemplars&&e.exemplars.length){s.exemplars=[];for(var E=0;E<e.exemplars.length;++E)s.exemplars[E]=p.opentelemetry.proto.metrics.v1.Exemplar.toObject(e.exemplars[E],n)}return e.min!=null&&e.hasOwnProperty("min")&&(s.min=n.json&&!isFinite(e.min)?String(e.min):e.min,n.oneofs&&(s._min="min")),e.max!=null&&e.hasOwnProperty("max")&&(s.max=n.json&&!isFinite(e.max)?String(e.max):e.max,n.oneofs&&(s._max="max")),e.zeroThreshold!=null&&e.hasOwnProperty("zeroThreshold")&&(s.zeroThreshold=n.json&&!isFinite(e.zeroThreshold)?String(e.zeroThreshold):e.zeroThreshold),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint"},a.Buckets=function(){function t(e){if(this.bucketCounts=[],e)for(var n=Object.keys(e),s=0;s<n.length;++s)e[n[s]]!=null&&(this[n[s]]=e[n[s]])}return t.prototype.offset=null,t.prototype.bucketCounts=_.emptyArray,t.create=function(n){return new t(n)},t.encode=function(n,s){if(s||(s=h.create()),n.offset!=null&&Object.hasOwnProperty.call(n,"offset")&&s.uint32(8).sint32(n.offset),n.bucketCounts!=null&&n.bucketCounts.length){s.uint32(18).fork();for(var l=0;l<n.bucketCounts.length;++l)s.uint64(n.bucketCounts[l]);s.ldelim()}return s},t.encodeDelimited=function(n,s){return this.encode(n,s).ldelim()},t.decode=function(n,s){n instanceof T||(n=T.create(n));for(var l=s===void 0?n.len:n.pos+s,E=new p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;n.pos<l;){var O=n.uint32();switch(O>>>3){case 1:{E.offset=n.sint32();break}case 2:{if(E.bucketCounts&&E.bucketCounts.length||(E.bucketCounts=[]),(O&7)===2)for(var g=n.uint32()+n.pos;n.pos<g;)E.bucketCounts.push(n.uint64());else E.bucketCounts.push(n.uint64());break}default:n.skipType(O&7);break}}return E},t.decodeDelimited=function(n){return n instanceof T||(n=new T(n)),this.decode(n,n.uint32())},t.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.offset!=null&&n.hasOwnProperty("offset")&&!_.isInteger(n.offset))return"offset: integer expected";if(n.bucketCounts!=null&&n.hasOwnProperty("bucketCounts")){if(!Array.isArray(n.bucketCounts))return"bucketCounts: array expected";for(var s=0;s<n.bucketCounts.length;++s)if(!_.isInteger(n.bucketCounts[s])&&!(n.bucketCounts[s]&&_.isInteger(n.bucketCounts[s].low)&&_.isInteger(n.bucketCounts[s].high)))return"bucketCounts: integer|Long[] expected"}return null},t.fromObject=function(n){if(n instanceof p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets)return n;var s=new p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;if(n.offset!=null&&(s.offset=n.offset|0),n.bucketCounts){if(!Array.isArray(n.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.bucketCounts: array expected");s.bucketCounts=[];for(var l=0;l<n.bucketCounts.length;++l)_.Long?(s.bucketCounts[l]=_.Long.fromValue(n.bucketCounts[l])).unsigned=!0:typeof n.bucketCounts[l]=="string"?s.bucketCounts[l]=parseInt(n.bucketCounts[l],10):typeof n.bucketCounts[l]=="number"?s.bucketCounts[l]=n.bucketCounts[l]:typeof n.bucketCounts[l]=="object"&&(s.bucketCounts[l]=new _.LongBits(n.bucketCounts[l].low>>>0,n.bucketCounts[l].high>>>0).toNumber(!0))}return s},t.toObject=function(n,s){s||(s={});var l={};if((s.arrays||s.defaults)&&(l.bucketCounts=[]),s.defaults&&(l.offset=0),n.offset!=null&&n.hasOwnProperty("offset")&&(l.offset=n.offset),n.bucketCounts&&n.bucketCounts.length){l.bucketCounts=[];for(var E=0;E<n.bucketCounts.length;++E)typeof n.bucketCounts[E]=="number"?l.bucketCounts[E]=s.longs===String?String(n.bucketCounts[E]):n.bucketCounts[E]:l.bucketCounts[E]=s.longs===String?_.Long.prototype.toString.call(n.bucketCounts[E]):s.longs===Number?new _.LongBits(n.bucketCounts[E].low>>>0,n.bucketCounts[E].high>>>0).toNumber(!0):n.bucketCounts[E]}return l},t.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets"},t}(),a}(),c.SummaryDataPoint=function(){function a(u){if(this.attributes=[],this.quantileValues=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.attributes=_.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.count=null,a.prototype.sum=null,a.prototype.quantileValues=_.emptyArray,a.prototype.flags=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.startTimeUnixNano!=null&&Object.hasOwnProperty.call(t,"startTimeUnixNano")&&e.uint32(17).fixed64(t.startTimeUnixNano),t.timeUnixNano!=null&&Object.hasOwnProperty.call(t,"timeUnixNano")&&e.uint32(25).fixed64(t.timeUnixNano),t.count!=null&&Object.hasOwnProperty.call(t,"count")&&e.uint32(33).fixed64(t.count),t.sum!=null&&Object.hasOwnProperty.call(t,"sum")&&e.uint32(41).double(t.sum),t.quantileValues!=null&&t.quantileValues.length)for(var n=0;n<t.quantileValues.length;++n)p.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.encode(t.quantileValues[n],e.uint32(50).fork()).ldelim();if(t.attributes!=null&&t.attributes.length)for(var n=0;n<t.attributes.length;++n)p.opentelemetry.proto.common.v1.KeyValue.encode(t.attributes[n],e.uint32(58).fork()).ldelim();return t.flags!=null&&Object.hasOwnProperty.call(t,"flags")&&e.uint32(64).uint32(t.flags),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.metrics.v1.SummaryDataPoint;t.pos<n;){var l=t.uint32();switch(l>>>3){case 7:{s.attributes&&s.attributes.length||(s.attributes=[]),s.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(t,t.uint32()));break}case 2:{s.startTimeUnixNano=t.fixed64();break}case 3:{s.timeUnixNano=t.fixed64();break}case 4:{s.count=t.fixed64();break}case 5:{s.sum=t.double();break}case 6:{s.quantileValues&&s.quantileValues.length||(s.quantileValues=[]),s.quantileValues.push(p.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.decode(t,t.uint32()));break}case 8:{s.flags=t.uint32();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.attributes!=null&&t.hasOwnProperty("attributes")){if(!Array.isArray(t.attributes))return"attributes: array expected";for(var e=0;e<t.attributes.length;++e){var n=p.opentelemetry.proto.common.v1.KeyValue.verify(t.attributes[e]);if(n)return"attributes."+n}}if(t.startTimeUnixNano!=null&&t.hasOwnProperty("startTimeUnixNano")&&!_.isInteger(t.startTimeUnixNano)&&!(t.startTimeUnixNano&&_.isInteger(t.startTimeUnixNano.low)&&_.isInteger(t.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(t.timeUnixNano!=null&&t.hasOwnProperty("timeUnixNano")&&!_.isInteger(t.timeUnixNano)&&!(t.timeUnixNano&&_.isInteger(t.timeUnixNano.low)&&_.isInteger(t.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(t.count!=null&&t.hasOwnProperty("count")&&!_.isInteger(t.count)&&!(t.count&&_.isInteger(t.count.low)&&_.isInteger(t.count.high)))return"count: integer|Long expected";if(t.sum!=null&&t.hasOwnProperty("sum")&&typeof t.sum!="number")return"sum: number expected";if(t.quantileValues!=null&&t.hasOwnProperty("quantileValues")){if(!Array.isArray(t.quantileValues))return"quantileValues: array expected";for(var e=0;e<t.quantileValues.length;++e){var n=p.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.verify(t.quantileValues[e]);if(n)return"quantileValues."+n}}return t.flags!=null&&t.hasOwnProperty("flags")&&!_.isInteger(t.flags)?"flags: integer expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.metrics.v1.SummaryDataPoint)return t;var e=new p.opentelemetry.proto.metrics.v1.SummaryDataPoint;if(t.attributes){if(!Array.isArray(t.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: array expected");e.attributes=[];for(var n=0;n<t.attributes.length;++n){if(typeof t.attributes[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: object expected");e.attributes[n]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(t.attributes[n])}}if(t.startTimeUnixNano!=null&&(_.Long?(e.startTimeUnixNano=_.Long.fromValue(t.startTimeUnixNano)).unsigned=!1:typeof t.startTimeUnixNano=="string"?e.startTimeUnixNano=parseInt(t.startTimeUnixNano,10):typeof t.startTimeUnixNano=="number"?e.startTimeUnixNano=t.startTimeUnixNano:typeof t.startTimeUnixNano=="object"&&(e.startTimeUnixNano=new _.LongBits(t.startTimeUnixNano.low>>>0,t.startTimeUnixNano.high>>>0).toNumber())),t.timeUnixNano!=null&&(_.Long?(e.timeUnixNano=_.Long.fromValue(t.timeUnixNano)).unsigned=!1:typeof t.timeUnixNano=="string"?e.timeUnixNano=parseInt(t.timeUnixNano,10):typeof t.timeUnixNano=="number"?e.timeUnixNano=t.timeUnixNano:typeof t.timeUnixNano=="object"&&(e.timeUnixNano=new _.LongBits(t.timeUnixNano.low>>>0,t.timeUnixNano.high>>>0).toNumber())),t.count!=null&&(_.Long?(e.count=_.Long.fromValue(t.count)).unsigned=!1:typeof t.count=="string"?e.count=parseInt(t.count,10):typeof t.count=="number"?e.count=t.count:typeof t.count=="object"&&(e.count=new _.LongBits(t.count.low>>>0,t.count.high>>>0).toNumber())),t.sum!=null&&(e.sum=Number(t.sum)),t.quantileValues){if(!Array.isArray(t.quantileValues))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: array expected");e.quantileValues=[];for(var n=0;n<t.quantileValues.length;++n){if(typeof t.quantileValues[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: object expected");e.quantileValues[n]=p.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.fromObject(t.quantileValues[n])}}return t.flags!=null&&(e.flags=t.flags>>>0),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.quantileValues=[],n.attributes=[]),e.defaults){if(_.Long){var s=new _.Long(0,0,!1);n.startTimeUnixNano=e.longs===String?s.toString():e.longs===Number?s.toNumber():s}else n.startTimeUnixNano=e.longs===String?"0":0;if(_.Long){var s=new _.Long(0,0,!1);n.timeUnixNano=e.longs===String?s.toString():e.longs===Number?s.toNumber():s}else n.timeUnixNano=e.longs===String?"0":0;if(_.Long){var s=new _.Long(0,0,!1);n.count=e.longs===String?s.toString():e.longs===Number?s.toNumber():s}else n.count=e.longs===String?"0":0;n.sum=0,n.flags=0}if(t.startTimeUnixNano!=null&&t.hasOwnProperty("startTimeUnixNano")&&(typeof t.startTimeUnixNano=="number"?n.startTimeUnixNano=e.longs===String?String(t.startTimeUnixNano):t.startTimeUnixNano:n.startTimeUnixNano=e.longs===String?_.Long.prototype.toString.call(t.startTimeUnixNano):e.longs===Number?new _.LongBits(t.startTimeUnixNano.low>>>0,t.startTimeUnixNano.high>>>0).toNumber():t.startTimeUnixNano),t.timeUnixNano!=null&&t.hasOwnProperty("timeUnixNano")&&(typeof t.timeUnixNano=="number"?n.timeUnixNano=e.longs===String?String(t.timeUnixNano):t.timeUnixNano:n.timeUnixNano=e.longs===String?_.Long.prototype.toString.call(t.timeUnixNano):e.longs===Number?new _.LongBits(t.timeUnixNano.low>>>0,t.timeUnixNano.high>>>0).toNumber():t.timeUnixNano),t.count!=null&&t.hasOwnProperty("count")&&(typeof t.count=="number"?n.count=e.longs===String?String(t.count):t.count:n.count=e.longs===String?_.Long.prototype.toString.call(t.count):e.longs===Number?new _.LongBits(t.count.low>>>0,t.count.high>>>0).toNumber():t.count),t.sum!=null&&t.hasOwnProperty("sum")&&(n.sum=e.json&&!isFinite(t.sum)?String(t.sum):t.sum),t.quantileValues&&t.quantileValues.length){n.quantileValues=[];for(var l=0;l<t.quantileValues.length;++l)n.quantileValues[l]=p.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.toObject(t.quantileValues[l],e)}if(t.attributes&&t.attributes.length){n.attributes=[];for(var l=0;l<t.attributes.length;++l)n.attributes[l]=p.opentelemetry.proto.common.v1.KeyValue.toObject(t.attributes[l],e)}return t.flags!=null&&t.hasOwnProperty("flags")&&(n.flags=t.flags),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.metrics.v1.SummaryDataPoint"},a.ValueAtQuantile=function(){function u(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.quantile=null,u.prototype.value=null,u.create=function(e){return new u(e)},u.encode=function(e,n){return n||(n=h.create()),e.quantile!=null&&Object.hasOwnProperty.call(e,"quantile")&&n.uint32(9).double(e.quantile),e.value!=null&&Object.hasOwnProperty.call(e,"value")&&n.uint32(17).double(e.value),n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.quantile=e.double();break}case 2:{l.value=e.double();break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){return typeof e!="object"||e===null?"object expected":e.quantile!=null&&e.hasOwnProperty("quantile")&&typeof e.quantile!="number"?"quantile: number expected":e.value!=null&&e.hasOwnProperty("value")&&typeof e.value!="number"?"value: number expected":null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile)return e;var n=new p.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;return e.quantile!=null&&(n.quantile=Number(e.quantile)),e.value!=null&&(n.value=Number(e.value)),n},u.toObject=function(e,n){n||(n={});var s={};return n.defaults&&(s.quantile=0,s.value=0),e.quantile!=null&&e.hasOwnProperty("quantile")&&(s.quantile=n.json&&!isFinite(e.quantile)?String(e.quantile):e.quantile),e.value!=null&&e.hasOwnProperty("value")&&(s.value=n.json&&!isFinite(e.value)?String(e.value):e.value),s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile"},u}(),a}(),c.Exemplar=function(){function a(t){if(this.filteredAttributes=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}a.prototype.filteredAttributes=_.emptyArray,a.prototype.timeUnixNano=null,a.prototype.asDouble=null,a.prototype.asInt=null,a.prototype.spanId=null,a.prototype.traceId=null;var u;return Object.defineProperty(a.prototype,"value",{get:_.oneOfGetter(u=["asDouble","asInt"]),set:_.oneOfSetter(u)}),a.create=function(e){return new a(e)},a.encode=function(e,n){if(n||(n=h.create()),e.timeUnixNano!=null&&Object.hasOwnProperty.call(e,"timeUnixNano")&&n.uint32(17).fixed64(e.timeUnixNano),e.asDouble!=null&&Object.hasOwnProperty.call(e,"asDouble")&&n.uint32(25).double(e.asDouble),e.spanId!=null&&Object.hasOwnProperty.call(e,"spanId")&&n.uint32(34).bytes(e.spanId),e.traceId!=null&&Object.hasOwnProperty.call(e,"traceId")&&n.uint32(42).bytes(e.traceId),e.asInt!=null&&Object.hasOwnProperty.call(e,"asInt")&&n.uint32(49).sfixed64(e.asInt),e.filteredAttributes!=null&&e.filteredAttributes.length)for(var s=0;s<e.filteredAttributes.length;++s)p.opentelemetry.proto.common.v1.KeyValue.encode(e.filteredAttributes[s],n.uint32(58).fork()).ldelim();return n},a.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},a.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.metrics.v1.Exemplar;e.pos<s;){var E=e.uint32();switch(E>>>3){case 7:{l.filteredAttributes&&l.filteredAttributes.length||(l.filteredAttributes=[]),l.filteredAttributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(e,e.uint32()));break}case 2:{l.timeUnixNano=e.fixed64();break}case 3:{l.asDouble=e.double();break}case 6:{l.asInt=e.sfixed64();break}case 4:{l.spanId=e.bytes();break}case 5:{l.traceId=e.bytes();break}default:e.skipType(E&7);break}}return l},a.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},a.verify=function(e){if(typeof e!="object"||e===null)return"object expected";var n={};if(e.filteredAttributes!=null&&e.hasOwnProperty("filteredAttributes")){if(!Array.isArray(e.filteredAttributes))return"filteredAttributes: array expected";for(var s=0;s<e.filteredAttributes.length;++s){var l=p.opentelemetry.proto.common.v1.KeyValue.verify(e.filteredAttributes[s]);if(l)return"filteredAttributes."+l}}if(e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&!_.isInteger(e.timeUnixNano)&&!(e.timeUnixNano&&_.isInteger(e.timeUnixNano.low)&&_.isInteger(e.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(e.asDouble!=null&&e.hasOwnProperty("asDouble")&&(n.value=1,typeof e.asDouble!="number"))return"asDouble: number expected";if(e.asInt!=null&&e.hasOwnProperty("asInt")){if(n.value===1)return"value: multiple values";if(n.value=1,!_.isInteger(e.asInt)&&!(e.asInt&&_.isInteger(e.asInt.low)&&_.isInteger(e.asInt.high)))return"asInt: integer|Long expected"}return e.spanId!=null&&e.hasOwnProperty("spanId")&&!(e.spanId&&typeof e.spanId.length=="number"||_.isString(e.spanId))?"spanId: buffer expected":e.traceId!=null&&e.hasOwnProperty("traceId")&&!(e.traceId&&typeof e.traceId.length=="number"||_.isString(e.traceId))?"traceId: buffer expected":null},a.fromObject=function(e){if(e instanceof p.opentelemetry.proto.metrics.v1.Exemplar)return e;var n=new p.opentelemetry.proto.metrics.v1.Exemplar;if(e.filteredAttributes){if(!Array.isArray(e.filteredAttributes))throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: array expected");n.filteredAttributes=[];for(var s=0;s<e.filteredAttributes.length;++s){if(typeof e.filteredAttributes[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: object expected");n.filteredAttributes[s]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(e.filteredAttributes[s])}}return e.timeUnixNano!=null&&(_.Long?(n.timeUnixNano=_.Long.fromValue(e.timeUnixNano)).unsigned=!1:typeof e.timeUnixNano=="string"?n.timeUnixNano=parseInt(e.timeUnixNano,10):typeof e.timeUnixNano=="number"?n.timeUnixNano=e.timeUnixNano:typeof e.timeUnixNano=="object"&&(n.timeUnixNano=new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber())),e.asDouble!=null&&(n.asDouble=Number(e.asDouble)),e.asInt!=null&&(_.Long?(n.asInt=_.Long.fromValue(e.asInt)).unsigned=!1:typeof e.asInt=="string"?n.asInt=parseInt(e.asInt,10):typeof e.asInt=="number"?n.asInt=e.asInt:typeof e.asInt=="object"&&(n.asInt=new _.LongBits(e.asInt.low>>>0,e.asInt.high>>>0).toNumber())),e.spanId!=null&&(typeof e.spanId=="string"?_.base64.decode(e.spanId,n.spanId=_.newBuffer(_.base64.length(e.spanId)),0):e.spanId.length>=0&&(n.spanId=e.spanId)),e.traceId!=null&&(typeof e.traceId=="string"?_.base64.decode(e.traceId,n.traceId=_.newBuffer(_.base64.length(e.traceId)),0):e.traceId.length>=0&&(n.traceId=e.traceId)),n},a.toObject=function(e,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.filteredAttributes=[]),n.defaults){if(_.Long){var l=new _.Long(0,0,!1);s.timeUnixNano=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.timeUnixNano=n.longs===String?"0":0;n.bytes===String?s.spanId="":(s.spanId=[],n.bytes!==Array&&(s.spanId=_.newBuffer(s.spanId))),n.bytes===String?s.traceId="":(s.traceId=[],n.bytes!==Array&&(s.traceId=_.newBuffer(s.traceId)))}if(e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&(typeof e.timeUnixNano=="number"?s.timeUnixNano=n.longs===String?String(e.timeUnixNano):e.timeUnixNano:s.timeUnixNano=n.longs===String?_.Long.prototype.toString.call(e.timeUnixNano):n.longs===Number?new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber():e.timeUnixNano),e.asDouble!=null&&e.hasOwnProperty("asDouble")&&(s.asDouble=n.json&&!isFinite(e.asDouble)?String(e.asDouble):e.asDouble,n.oneofs&&(s.value="asDouble")),e.spanId!=null&&e.hasOwnProperty("spanId")&&(s.spanId=n.bytes===String?_.base64.encode(e.spanId,0,e.spanId.length):n.bytes===Array?Array.prototype.slice.call(e.spanId):e.spanId),e.traceId!=null&&e.hasOwnProperty("traceId")&&(s.traceId=n.bytes===String?_.base64.encode(e.traceId,0,e.traceId.length):n.bytes===Array?Array.prototype.slice.call(e.traceId):e.traceId),e.asInt!=null&&e.hasOwnProperty("asInt")&&(typeof e.asInt=="number"?s.asInt=n.longs===String?String(e.asInt):e.asInt:s.asInt=n.longs===String?_.Long.prototype.toString.call(e.asInt):n.longs===Number?new _.LongBits(e.asInt.low>>>0,e.asInt.high>>>0).toNumber():e.asInt,n.oneofs&&(s.value="asInt")),e.filteredAttributes&&e.filteredAttributes.length){s.filteredAttributes=[];for(var E=0;E<e.filteredAttributes.length;++E)s.filteredAttributes[E]=p.opentelemetry.proto.common.v1.KeyValue.toObject(e.filteredAttributes[E],n)}return s},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.metrics.v1.Exemplar"},a}(),c}(),i}(),r.logs=function(){var i={};return i.v1=function(){var c={};return c.LogsData=function(){function a(u){if(this.resourceLogs=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.resourceLogs=_.emptyArray,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.resourceLogs!=null&&t.resourceLogs.length)for(var n=0;n<t.resourceLogs.length;++n)p.opentelemetry.proto.logs.v1.ResourceLogs.encode(t.resourceLogs[n],e.uint32(10).fork()).ldelim();return e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.logs.v1.LogsData;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.resourceLogs&&s.resourceLogs.length||(s.resourceLogs=[]),s.resourceLogs.push(p.opentelemetry.proto.logs.v1.ResourceLogs.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.resourceLogs!=null&&t.hasOwnProperty("resourceLogs")){if(!Array.isArray(t.resourceLogs))return"resourceLogs: array expected";for(var e=0;e<t.resourceLogs.length;++e){var n=p.opentelemetry.proto.logs.v1.ResourceLogs.verify(t.resourceLogs[e]);if(n)return"resourceLogs."+n}}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.logs.v1.LogsData)return t;var e=new p.opentelemetry.proto.logs.v1.LogsData;if(t.resourceLogs){if(!Array.isArray(t.resourceLogs))throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: array expected");e.resourceLogs=[];for(var n=0;n<t.resourceLogs.length;++n){if(typeof t.resourceLogs[n]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: object expected");e.resourceLogs[n]=p.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(t.resourceLogs[n])}}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.resourceLogs=[]),t.resourceLogs&&t.resourceLogs.length){n.resourceLogs=[];for(var s=0;s<t.resourceLogs.length;++s)n.resourceLogs[s]=p.opentelemetry.proto.logs.v1.ResourceLogs.toObject(t.resourceLogs[s],e)}return n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.logs.v1.LogsData"},a}(),c.ResourceLogs=function(){function a(u){if(this.scopeLogs=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.resource=null,a.prototype.scopeLogs=_.emptyArray,a.prototype.schemaUrl=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.resource!=null&&Object.hasOwnProperty.call(t,"resource")&&p.opentelemetry.proto.resource.v1.Resource.encode(t.resource,e.uint32(10).fork()).ldelim(),t.scopeLogs!=null&&t.scopeLogs.length)for(var n=0;n<t.scopeLogs.length;++n)p.opentelemetry.proto.logs.v1.ScopeLogs.encode(t.scopeLogs[n],e.uint32(18).fork()).ldelim();return t.schemaUrl!=null&&Object.hasOwnProperty.call(t,"schemaUrl")&&e.uint32(26).string(t.schemaUrl),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.logs.v1.ResourceLogs;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.resource=p.opentelemetry.proto.resource.v1.Resource.decode(t,t.uint32());break}case 2:{s.scopeLogs&&s.scopeLogs.length||(s.scopeLogs=[]),s.scopeLogs.push(p.opentelemetry.proto.logs.v1.ScopeLogs.decode(t,t.uint32()));break}case 3:{s.schemaUrl=t.string();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.resource!=null&&t.hasOwnProperty("resource")){var e=p.opentelemetry.proto.resource.v1.Resource.verify(t.resource);if(e)return"resource."+e}if(t.scopeLogs!=null&&t.hasOwnProperty("scopeLogs")){if(!Array.isArray(t.scopeLogs))return"scopeLogs: array expected";for(var n=0;n<t.scopeLogs.length;++n){var e=p.opentelemetry.proto.logs.v1.ScopeLogs.verify(t.scopeLogs[n]);if(e)return"scopeLogs."+e}}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&!_.isString(t.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.logs.v1.ResourceLogs)return t;var e=new p.opentelemetry.proto.logs.v1.ResourceLogs;if(t.resource!=null){if(typeof t.resource!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.resource: object expected");e.resource=p.opentelemetry.proto.resource.v1.Resource.fromObject(t.resource)}if(t.scopeLogs){if(!Array.isArray(t.scopeLogs))throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: array expected");e.scopeLogs=[];for(var n=0;n<t.scopeLogs.length;++n){if(typeof t.scopeLogs[n]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: object expected");e.scopeLogs[n]=p.opentelemetry.proto.logs.v1.ScopeLogs.fromObject(t.scopeLogs[n])}}return t.schemaUrl!=null&&(e.schemaUrl=String(t.schemaUrl)),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.scopeLogs=[]),e.defaults&&(n.resource=null,n.schemaUrl=""),t.resource!=null&&t.hasOwnProperty("resource")&&(n.resource=p.opentelemetry.proto.resource.v1.Resource.toObject(t.resource,e)),t.scopeLogs&&t.scopeLogs.length){n.scopeLogs=[];for(var s=0;s<t.scopeLogs.length;++s)n.scopeLogs[s]=p.opentelemetry.proto.logs.v1.ScopeLogs.toObject(t.scopeLogs[s],e)}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&(n.schemaUrl=t.schemaUrl),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.logs.v1.ResourceLogs"},a}(),c.ScopeLogs=function(){function a(u){if(this.logRecords=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.scope=null,a.prototype.logRecords=_.emptyArray,a.prototype.schemaUrl=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.scope!=null&&Object.hasOwnProperty.call(t,"scope")&&p.opentelemetry.proto.common.v1.InstrumentationScope.encode(t.scope,e.uint32(10).fork()).ldelim(),t.logRecords!=null&&t.logRecords.length)for(var n=0;n<t.logRecords.length;++n)p.opentelemetry.proto.logs.v1.LogRecord.encode(t.logRecords[n],e.uint32(18).fork()).ldelim();return t.schemaUrl!=null&&Object.hasOwnProperty.call(t,"schemaUrl")&&e.uint32(26).string(t.schemaUrl),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.logs.v1.ScopeLogs;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.scope=p.opentelemetry.proto.common.v1.InstrumentationScope.decode(t,t.uint32());break}case 2:{s.logRecords&&s.logRecords.length||(s.logRecords=[]),s.logRecords.push(p.opentelemetry.proto.logs.v1.LogRecord.decode(t,t.uint32()));break}case 3:{s.schemaUrl=t.string();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.scope!=null&&t.hasOwnProperty("scope")){var e=p.opentelemetry.proto.common.v1.InstrumentationScope.verify(t.scope);if(e)return"scope."+e}if(t.logRecords!=null&&t.hasOwnProperty("logRecords")){if(!Array.isArray(t.logRecords))return"logRecords: array expected";for(var n=0;n<t.logRecords.length;++n){var e=p.opentelemetry.proto.logs.v1.LogRecord.verify(t.logRecords[n]);if(e)return"logRecords."+e}}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&!_.isString(t.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.logs.v1.ScopeLogs)return t;var e=new p.opentelemetry.proto.logs.v1.ScopeLogs;if(t.scope!=null){if(typeof t.scope!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.scope: object expected");e.scope=p.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(t.scope)}if(t.logRecords){if(!Array.isArray(t.logRecords))throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: array expected");e.logRecords=[];for(var n=0;n<t.logRecords.length;++n){if(typeof t.logRecords[n]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: object expected");e.logRecords[n]=p.opentelemetry.proto.logs.v1.LogRecord.fromObject(t.logRecords[n])}}return t.schemaUrl!=null&&(e.schemaUrl=String(t.schemaUrl)),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.logRecords=[]),e.defaults&&(n.scope=null,n.schemaUrl=""),t.scope!=null&&t.hasOwnProperty("scope")&&(n.scope=p.opentelemetry.proto.common.v1.InstrumentationScope.toObject(t.scope,e)),t.logRecords&&t.logRecords.length){n.logRecords=[];for(var s=0;s<t.logRecords.length;++s)n.logRecords[s]=p.opentelemetry.proto.logs.v1.LogRecord.toObject(t.logRecords[s],e)}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&(n.schemaUrl=t.schemaUrl),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.logs.v1.ScopeLogs"},a}(),c.SeverityNumber=function(){var a={},u=Object.create(a);return u[a[0]="SEVERITY_NUMBER_UNSPECIFIED"]=0,u[a[1]="SEVERITY_NUMBER_TRACE"]=1,u[a[2]="SEVERITY_NUMBER_TRACE2"]=2,u[a[3]="SEVERITY_NUMBER_TRACE3"]=3,u[a[4]="SEVERITY_NUMBER_TRACE4"]=4,u[a[5]="SEVERITY_NUMBER_DEBUG"]=5,u[a[6]="SEVERITY_NUMBER_DEBUG2"]=6,u[a[7]="SEVERITY_NUMBER_DEBUG3"]=7,u[a[8]="SEVERITY_NUMBER_DEBUG4"]=8,u[a[9]="SEVERITY_NUMBER_INFO"]=9,u[a[10]="SEVERITY_NUMBER_INFO2"]=10,u[a[11]="SEVERITY_NUMBER_INFO3"]=11,u[a[12]="SEVERITY_NUMBER_INFO4"]=12,u[a[13]="SEVERITY_NUMBER_WARN"]=13,u[a[14]="SEVERITY_NUMBER_WARN2"]=14,u[a[15]="SEVERITY_NUMBER_WARN3"]=15,u[a[16]="SEVERITY_NUMBER_WARN4"]=16,u[a[17]="SEVERITY_NUMBER_ERROR"]=17,u[a[18]="SEVERITY_NUMBER_ERROR2"]=18,u[a[19]="SEVERITY_NUMBER_ERROR3"]=19,u[a[20]="SEVERITY_NUMBER_ERROR4"]=20,u[a[21]="SEVERITY_NUMBER_FATAL"]=21,u[a[22]="SEVERITY_NUMBER_FATAL2"]=22,u[a[23]="SEVERITY_NUMBER_FATAL3"]=23,u[a[24]="SEVERITY_NUMBER_FATAL4"]=24,u}(),c.LogRecordFlags=function(){var a={},u=Object.create(a);return u[a[0]="LOG_RECORD_FLAGS_DO_NOT_USE"]=0,u[a[255]="LOG_RECORD_FLAGS_TRACE_FLAGS_MASK"]=255,u}(),c.LogRecord=function(){function a(u){if(this.attributes=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.timeUnixNano=null,a.prototype.observedTimeUnixNano=null,a.prototype.severityNumber=null,a.prototype.severityText=null,a.prototype.body=null,a.prototype.attributes=_.emptyArray,a.prototype.droppedAttributesCount=null,a.prototype.flags=null,a.prototype.traceId=null,a.prototype.spanId=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.timeUnixNano!=null&&Object.hasOwnProperty.call(t,"timeUnixNano")&&e.uint32(9).fixed64(t.timeUnixNano),t.severityNumber!=null&&Object.hasOwnProperty.call(t,"severityNumber")&&e.uint32(16).int32(t.severityNumber),t.severityText!=null&&Object.hasOwnProperty.call(t,"severityText")&&e.uint32(26).string(t.severityText),t.body!=null&&Object.hasOwnProperty.call(t,"body")&&p.opentelemetry.proto.common.v1.AnyValue.encode(t.body,e.uint32(42).fork()).ldelim(),t.attributes!=null&&t.attributes.length)for(var n=0;n<t.attributes.length;++n)p.opentelemetry.proto.common.v1.KeyValue.encode(t.attributes[n],e.uint32(50).fork()).ldelim();return t.droppedAttributesCount!=null&&Object.hasOwnProperty.call(t,"droppedAttributesCount")&&e.uint32(56).uint32(t.droppedAttributesCount),t.flags!=null&&Object.hasOwnProperty.call(t,"flags")&&e.uint32(69).fixed32(t.flags),t.traceId!=null&&Object.hasOwnProperty.call(t,"traceId")&&e.uint32(74).bytes(t.traceId),t.spanId!=null&&Object.hasOwnProperty.call(t,"spanId")&&e.uint32(82).bytes(t.spanId),t.observedTimeUnixNano!=null&&Object.hasOwnProperty.call(t,"observedTimeUnixNano")&&e.uint32(89).fixed64(t.observedTimeUnixNano),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.logs.v1.LogRecord;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.timeUnixNano=t.fixed64();break}case 11:{s.observedTimeUnixNano=t.fixed64();break}case 2:{s.severityNumber=t.int32();break}case 3:{s.severityText=t.string();break}case 5:{s.body=p.opentelemetry.proto.common.v1.AnyValue.decode(t,t.uint32());break}case 6:{s.attributes&&s.attributes.length||(s.attributes=[]),s.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(t,t.uint32()));break}case 7:{s.droppedAttributesCount=t.uint32();break}case 8:{s.flags=t.fixed32();break}case 9:{s.traceId=t.bytes();break}case 10:{s.spanId=t.bytes();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.timeUnixNano!=null&&t.hasOwnProperty("timeUnixNano")&&!_.isInteger(t.timeUnixNano)&&!(t.timeUnixNano&&_.isInteger(t.timeUnixNano.low)&&_.isInteger(t.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(t.observedTimeUnixNano!=null&&t.hasOwnProperty("observedTimeUnixNano")&&!_.isInteger(t.observedTimeUnixNano)&&!(t.observedTimeUnixNano&&_.isInteger(t.observedTimeUnixNano.low)&&_.isInteger(t.observedTimeUnixNano.high)))return"observedTimeUnixNano: integer|Long expected";if(t.severityNumber!=null&&t.hasOwnProperty("severityNumber"))switch(t.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(t.severityText!=null&&t.hasOwnProperty("severityText")&&!_.isString(t.severityText))return"severityText: string expected";if(t.body!=null&&t.hasOwnProperty("body")){var e=p.opentelemetry.proto.common.v1.AnyValue.verify(t.body);if(e)return"body."+e}if(t.attributes!=null&&t.hasOwnProperty("attributes")){if(!Array.isArray(t.attributes))return"attributes: array expected";for(var n=0;n<t.attributes.length;++n){var e=p.opentelemetry.proto.common.v1.KeyValue.verify(t.attributes[n]);if(e)return"attributes."+e}}return t.droppedAttributesCount!=null&&t.hasOwnProperty("droppedAttributesCount")&&!_.isInteger(t.droppedAttributesCount)?"droppedAttributesCount: integer expected":t.flags!=null&&t.hasOwnProperty("flags")&&!_.isInteger(t.flags)?"flags: integer expected":t.traceId!=null&&t.hasOwnProperty("traceId")&&!(t.traceId&&typeof t.traceId.length=="number"||_.isString(t.traceId))?"traceId: buffer expected":t.spanId!=null&&t.hasOwnProperty("spanId")&&!(t.spanId&&typeof t.spanId.length=="number"||_.isString(t.spanId))?"spanId: buffer expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.logs.v1.LogRecord)return t;var e=new p.opentelemetry.proto.logs.v1.LogRecord;switch(t.timeUnixNano!=null&&(_.Long?(e.timeUnixNano=_.Long.fromValue(t.timeUnixNano)).unsigned=!1:typeof t.timeUnixNano=="string"?e.timeUnixNano=parseInt(t.timeUnixNano,10):typeof t.timeUnixNano=="number"?e.timeUnixNano=t.timeUnixNano:typeof t.timeUnixNano=="object"&&(e.timeUnixNano=new _.LongBits(t.timeUnixNano.low>>>0,t.timeUnixNano.high>>>0).toNumber())),t.observedTimeUnixNano!=null&&(_.Long?(e.observedTimeUnixNano=_.Long.fromValue(t.observedTimeUnixNano)).unsigned=!1:typeof t.observedTimeUnixNano=="string"?e.observedTimeUnixNano=parseInt(t.observedTimeUnixNano,10):typeof t.observedTimeUnixNano=="number"?e.observedTimeUnixNano=t.observedTimeUnixNano:typeof t.observedTimeUnixNano=="object"&&(e.observedTimeUnixNano=new _.LongBits(t.observedTimeUnixNano.low>>>0,t.observedTimeUnixNano.high>>>0).toNumber())),t.severityNumber){default:if(typeof t.severityNumber=="number"){e.severityNumber=t.severityNumber;break}break;case"SEVERITY_NUMBER_UNSPECIFIED":case 0:e.severityNumber=0;break;case"SEVERITY_NUMBER_TRACE":case 1:e.severityNumber=1;break;case"SEVERITY_NUMBER_TRACE2":case 2:e.severityNumber=2;break;case"SEVERITY_NUMBER_TRACE3":case 3:e.severityNumber=3;break;case"SEVERITY_NUMBER_TRACE4":case 4:e.severityNumber=4;break;case"SEVERITY_NUMBER_DEBUG":case 5:e.severityNumber=5;break;case"SEVERITY_NUMBER_DEBUG2":case 6:e.severityNumber=6;break;case"SEVERITY_NUMBER_DEBUG3":case 7:e.severityNumber=7;break;case"SEVERITY_NUMBER_DEBUG4":case 8:e.severityNumber=8;break;case"SEVERITY_NUMBER_INFO":case 9:e.severityNumber=9;break;case"SEVERITY_NUMBER_INFO2":case 10:e.severityNumber=10;break;case"SEVERITY_NUMBER_INFO3":case 11:e.severityNumber=11;break;case"SEVERITY_NUMBER_INFO4":case 12:e.severityNumber=12;break;case"SEVERITY_NUMBER_WARN":case 13:e.severityNumber=13;break;case"SEVERITY_NUMBER_WARN2":case 14:e.severityNumber=14;break;case"SEVERITY_NUMBER_WARN3":case 15:e.severityNumber=15;break;case"SEVERITY_NUMBER_WARN4":case 16:e.severityNumber=16;break;case"SEVERITY_NUMBER_ERROR":case 17:e.severityNumber=17;break;case"SEVERITY_NUMBER_ERROR2":case 18:e.severityNumber=18;break;case"SEVERITY_NUMBER_ERROR3":case 19:e.severityNumber=19;break;case"SEVERITY_NUMBER_ERROR4":case 20:e.severityNumber=20;break;case"SEVERITY_NUMBER_FATAL":case 21:e.severityNumber=21;break;case"SEVERITY_NUMBER_FATAL2":case 22:e.severityNumber=22;break;case"SEVERITY_NUMBER_FATAL3":case 23:e.severityNumber=23;break;case"SEVERITY_NUMBER_FATAL4":case 24:e.severityNumber=24;break}if(t.severityText!=null&&(e.severityText=String(t.severityText)),t.body!=null){if(typeof t.body!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.body: object expected");e.body=p.opentelemetry.proto.common.v1.AnyValue.fromObject(t.body)}if(t.attributes){if(!Array.isArray(t.attributes))throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: array expected");e.attributes=[];for(var n=0;n<t.attributes.length;++n){if(typeof t.attributes[n]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: object expected");e.attributes[n]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(t.attributes[n])}}return t.droppedAttributesCount!=null&&(e.droppedAttributesCount=t.droppedAttributesCount>>>0),t.flags!=null&&(e.flags=t.flags>>>0),t.traceId!=null&&(typeof t.traceId=="string"?_.base64.decode(t.traceId,e.traceId=_.newBuffer(_.base64.length(t.traceId)),0):t.traceId.length>=0&&(e.traceId=t.traceId)),t.spanId!=null&&(typeof t.spanId=="string"?_.base64.decode(t.spanId,e.spanId=_.newBuffer(_.base64.length(t.spanId)),0):t.spanId.length>=0&&(e.spanId=t.spanId)),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.attributes=[]),e.defaults){if(_.Long){var s=new _.Long(0,0,!1);n.timeUnixNano=e.longs===String?s.toString():e.longs===Number?s.toNumber():s}else n.timeUnixNano=e.longs===String?"0":0;if(n.severityNumber=e.enums===String?"SEVERITY_NUMBER_UNSPECIFIED":0,n.severityText="",n.body=null,n.droppedAttributesCount=0,n.flags=0,e.bytes===String?n.traceId="":(n.traceId=[],e.bytes!==Array&&(n.traceId=_.newBuffer(n.traceId))),e.bytes===String?n.spanId="":(n.spanId=[],e.bytes!==Array&&(n.spanId=_.newBuffer(n.spanId))),_.Long){var s=new _.Long(0,0,!1);n.observedTimeUnixNano=e.longs===String?s.toString():e.longs===Number?s.toNumber():s}else n.observedTimeUnixNano=e.longs===String?"0":0}if(t.timeUnixNano!=null&&t.hasOwnProperty("timeUnixNano")&&(typeof t.timeUnixNano=="number"?n.timeUnixNano=e.longs===String?String(t.timeUnixNano):t.timeUnixNano:n.timeUnixNano=e.longs===String?_.Long.prototype.toString.call(t.timeUnixNano):e.longs===Number?new _.LongBits(t.timeUnixNano.low>>>0,t.timeUnixNano.high>>>0).toNumber():t.timeUnixNano),t.severityNumber!=null&&t.hasOwnProperty("severityNumber")&&(n.severityNumber=e.enums===String?p.opentelemetry.proto.logs.v1.SeverityNumber[t.severityNumber]===void 0?t.severityNumber:p.opentelemetry.proto.logs.v1.SeverityNumber[t.severityNumber]:t.severityNumber),t.severityText!=null&&t.hasOwnProperty("severityText")&&(n.severityText=t.severityText),t.body!=null&&t.hasOwnProperty("body")&&(n.body=p.opentelemetry.proto.common.v1.AnyValue.toObject(t.body,e)),t.attributes&&t.attributes.length){n.attributes=[];for(var l=0;l<t.attributes.length;++l)n.attributes[l]=p.opentelemetry.proto.common.v1.KeyValue.toObject(t.attributes[l],e)}return t.droppedAttributesCount!=null&&t.hasOwnProperty("droppedAttributesCount")&&(n.droppedAttributesCount=t.droppedAttributesCount),t.flags!=null&&t.hasOwnProperty("flags")&&(n.flags=t.flags),t.traceId!=null&&t.hasOwnProperty("traceId")&&(n.traceId=e.bytes===String?_.base64.encode(t.traceId,0,t.traceId.length):e.bytes===Array?Array.prototype.slice.call(t.traceId):t.traceId),t.spanId!=null&&t.hasOwnProperty("spanId")&&(n.spanId=e.bytes===String?_.base64.encode(t.spanId,0,t.spanId.length):e.bytes===Array?Array.prototype.slice.call(t.spanId):t.spanId),t.observedTimeUnixNano!=null&&t.hasOwnProperty("observedTimeUnixNano")&&(typeof t.observedTimeUnixNano=="number"?n.observedTimeUnixNano=e.longs===String?String(t.observedTimeUnixNano):t.observedTimeUnixNano:n.observedTimeUnixNano=e.longs===String?_.Long.prototype.toString.call(t.observedTimeUnixNano):e.longs===Number?new _.LongBits(t.observedTimeUnixNano.low>>>0,t.observedTimeUnixNano.high>>>0).toNumber():t.observedTimeUnixNano),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.logs.v1.LogRecord"},a}(),c}(),i}(),r}(),o}();OL.exports=p});var yi=S(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.getOtlpEncoder=ce.encodeAsString=ce.encodeAsLongBits=ce.toLongBits=ce.hrTimeToNanos=void 0;var Ri=x();function sc(o){let r=BigInt(1e9);return BigInt(o[0])*r+BigInt(o[1])}ce.hrTimeToNanos=sc;function hL(o){let r=Number(BigInt.asUintN(32,o)),i=Number(BigInt.asUintN(32,o>>BigInt(32)));return{low:r,high:i}}ce.toLongBits=hL;function cc(o){let r=sc(o);return hL(r)}ce.encodeAsLongBits=cc;function NL(o){return sc(o).toString()}ce.encodeAsString=NL;var CX=typeof BigInt<"u"?NL:Ri.hrTimeToNanoseconds;function mL(o){return o}function RL(o){if(o!==void 0)return(0,Ri.hexToBinary)(o)}var xX={encodeHrTime:cc,encodeSpanContext:Ri.hexToBinary,encodeOptionalSpanContext:RL};function bX(o){var r,i;if(o===void 0)return xX;let c=(r=o.useLongBits)!==null&&r!==void 0?r:!0,a=(i=o.useHex)!==null&&i!==void 0?i:!1;return{encodeHrTime:c?cc:CX,encodeSpanContext:a?mL:Ri.hexToBinary,encodeOptionalSpanContext:a?mL:RL}}ce.getOtlpEncoder=bX});var Pi=S(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.toAnyValue=le.toKeyValue=le.toAttributes=le.createInstrumentationScope=le.createResource=void 0;function UX(o){return{attributes:yL(o.attributes),droppedAttributesCount:0}}le.createResource=UX;function DX(o){return{name:o.name,version:o.version}}le.createInstrumentationScope=DX;function yL(o){return Object.keys(o).map(r=>lc(r,o[r]))}le.toAttributes=yL;function lc(o,r){return{key:o,value:pc(r)}}le.toKeyValue=lc;function pc(o){let r=typeof o;return r==="string"?{stringValue:o}:r==="number"?Number.isInteger(o)?{intValue:o}:{doubleValue:o}:r==="boolean"?{boolValue:o}:o instanceof Uint8Array?{bytesValue:o}:Array.isArray(o)?{arrayValue:{values:o.map(pc)}}:r==="object"&&o!=null?{kvlistValue:{values:Object.entries(o).map(([i,c])=>lc(i,c))}}:{}}le.toAnyValue=pc});var _c=S(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.toLogAttributes=ar.createExportLogsServiceRequest=void 0;var VX=yi(),Mi=Pi();function wX(o,r){let i=(0,VX.getOtlpEncoder)(r);return{resourceLogs:GX(o,i)}}ar.createExportLogsServiceRequest=wX;function BX(o){let r=new Map;for(let i of o){let{resource:c,instrumentationScope:{name:a,version:u="",schemaUrl:t=""}}=i,e=r.get(c);e||(e=new Map,r.set(c,e));let n=`${a}@${u}:${t}`,s=e.get(n);s||(s=[],e.set(n,s)),s.push(i)}return r}function GX(o,r){let i=BX(o);return Array.from(i,([c,a])=>({resource:(0,Mi.createResource)(c),scopeLogs:Array.from(a,([,u])=>({scope:(0,Mi.createInstrumentationScope)(u[0].instrumentationScope),logRecords:u.map(t=>HX(t,r)),schemaUrl:u[0].instrumentationScope.schemaUrl})),schemaUrl:void 0}))}function HX(o,r){var i,c,a;return{timeUnixNano:r.encodeHrTime(o.hrTime),observedTimeUnixNano:r.encodeHrTime(o.hrTimeObserved),severityNumber:o.severityNumber,severityText:o.severityText,body:(0,Mi.toAnyValue)(o.body),attributes:PL(o.attributes),droppedAttributesCount:o.droppedAttributesCount,flags:(i=o.spanContext)===null||i===void 0?void 0:i.traceFlags,traceId:r.encodeOptionalSpanContext((c=o.spanContext)===null||c===void 0?void 0:c.traceId),spanId:r.encodeOptionalSpanContext((a=o.spanContext)===null||a===void 0?void 0:a.spanId)}}function PL(o){return Object.keys(o).map(r=>(0,Mi.toKeyValue)(r,o[r]))}ar.toLogAttributes=PL});var gL=S(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.ProtobufLogsSerializer=void 0;var ML=Ni(),kX=_c(),YX=ML.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,FX=ML.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;gi.ProtobufLogsSerializer={serializeRequest:o=>{let r=(0,kX.createExportLogsServiceRequest)(o);return FX.encode(r).finish()},deserializeResponse:o=>YX.decode(o)}});var LL=S(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.ProtobufLogsSerializer=void 0;var KX=gL();Object.defineProperty(Li,"ProtobufLogsSerializer",{enumerable:!0,get:function(){return KX.ProtobufLogsSerializer}})});var Ec=S(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.createExportMetricsServiceRequest=Me.toMetric=Me.toScopeMetrics=Me.toResourceMetrics=void 0;var IL=(m(),N(y)),ur=li(),jX=yi(),Yr=Pi();function xL(o,r){let i=(0,jX.getOtlpEncoder)(r);return{resource:(0,Yr.createResource)(o.resource),schemaUrl:void 0,scopeMetrics:bL(o.scopeMetrics,i)}}Me.toResourceMetrics=xL;function bL(o,r){return Array.from(o.map(i=>({scope:(0,Yr.createInstrumentationScope)(i.scope),metrics:i.metrics.map(c=>UL(c,r)),schemaUrl:i.scope.schemaUrl})))}Me.toScopeMetrics=bL;function UL(o,r){let i={name:o.descriptor.name,description:o.descriptor.description,unit:o.descriptor.unit},c=JX(o.aggregationTemporality);switch(o.dataPointType){case ur.DataPointType.SUM:i.sum={aggregationTemporality:c,isMonotonic:o.isMonotonic,dataPoints:CL(o,r)};break;case ur.DataPointType.GAUGE:i.gauge={dataPoints:CL(o,r)};break;case ur.DataPointType.HISTOGRAM:i.histogram={aggregationTemporality:c,dataPoints:WX(o,r)};break;case ur.DataPointType.EXPONENTIAL_HISTOGRAM:i.exponentialHistogram={aggregationTemporality:c,dataPoints:zX(o,r)};break}return i}Me.toMetric=UL;function qX(o,r,i){let c={attributes:(0,Yr.toAttributes)(o.attributes),startTimeUnixNano:i.encodeHrTime(o.startTime),timeUnixNano:i.encodeHrTime(o.endTime)};switch(r){case IL.ValueType.INT:c.asInt=o.value;break;case IL.ValueType.DOUBLE:c.asDouble=o.value;break}return c}function CL(o,r){return o.dataPoints.map(i=>qX(i,o.descriptor.valueType,r))}function WX(o,r){return o.dataPoints.map(i=>{let c=i.value;return{attributes:(0,Yr.toAttributes)(i.attributes),bucketCounts:c.buckets.counts,explicitBounds:c.buckets.boundaries,count:c.count,sum:c.sum,min:c.min,max:c.max,startTimeUnixNano:r.encodeHrTime(i.startTime),timeUnixNano:r.encodeHrTime(i.endTime)}})}function zX(o,r){return o.dataPoints.map(i=>{let c=i.value;return{attributes:(0,Yr.toAttributes)(i.attributes),count:c.count,min:c.min,max:c.max,sum:c.sum,positive:{offset:c.positive.offset,bucketCounts:c.positive.bucketCounts},negative:{offset:c.negative.offset,bucketCounts:c.negative.bucketCounts},scale:c.scale,zeroCount:c.zeroCount,startTimeUnixNano:r.encodeHrTime(i.startTime),timeUnixNano:r.encodeHrTime(i.endTime)}})}function JX(o){switch(o){case ur.AggregationTemporality.DELTA:return 1;case ur.AggregationTemporality.CUMULATIVE:return 2}}function XX(o,r){return{resourceMetrics:o.map(i=>xL(i,r))}}Me.createExportMetricsServiceRequest=XX});var VL=S(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.ProtobufMetricsSerializer=void 0;var DL=Ni(),$X=Ec(),QX=DL.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,ZX=DL.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;Ii.ProtobufMetricsSerializer={serializeRequest:o=>{let r=(0,$X.createExportMetricsServiceRequest)([o]);return ZX.encode(r).finish()},deserializeResponse:o=>QX.decode(o)}});var wL=S(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});Ci.ProtobufMetricsSerializer=void 0;var e$=VL();Object.defineProperty(Ci,"ProtobufMetricsSerializer",{enumerable:!0,get:function(){return e$.ProtobufMetricsSerializer}})});var Tc=S(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.createExportTraceServiceRequest=ge.toOtlpSpanEvent=ge.toOtlpLink=ge.sdkSpanToOtlpSpan=void 0;var Fr=Pi(),t$=yi();function BL(o,r){var i;let c=o.spanContext(),a=o.status;return{traceId:r.encodeSpanContext(c.traceId),spanId:r.encodeSpanContext(c.spanId),parentSpanId:r.encodeOptionalSpanContext(o.parentSpanId),traceState:(i=c.traceState)===null||i===void 0?void 0:i.serialize(),name:o.name,kind:o.kind==null?0:o.kind+1,startTimeUnixNano:r.encodeHrTime(o.startTime),endTimeUnixNano:r.encodeHrTime(o.endTime),attributes:(0,Fr.toAttributes)(o.attributes),droppedAttributesCount:o.droppedAttributesCount,events:o.events.map(u=>HL(u,r)),droppedEventsCount:o.droppedEventsCount,status:{code:a.code,message:a.message},links:o.links.map(u=>GL(u,r)),droppedLinksCount:o.droppedLinksCount}}ge.sdkSpanToOtlpSpan=BL;function GL(o,r){var i;return{attributes:o.attributes?(0,Fr.toAttributes)(o.attributes):[],spanId:r.encodeSpanContext(o.context.spanId),traceId:r.encodeSpanContext(o.context.traceId),traceState:(i=o.context.traceState)===null||i===void 0?void 0:i.serialize(),droppedAttributesCount:o.droppedAttributesCount||0}}ge.toOtlpLink=GL;function HL(o,r){return{attributes:o.attributes?(0,Fr.toAttributes)(o.attributes):[],name:o.name,timeUnixNano:r.encodeHrTime(o.time),droppedAttributesCount:o.droppedAttributesCount||0}}ge.toOtlpSpanEvent=HL;function r$(o,r){let i=(0,t$.getOtlpEncoder)(r);return{resourceSpans:o$(o,i)}}ge.createExportTraceServiceRequest=r$;function n$(o){let r=new Map;for(let i of o){let c=r.get(i.resource);c||(c=new Map,r.set(i.resource,c));let a=`${i.instrumentationLibrary.name}@${i.instrumentationLibrary.version||""}:${i.instrumentationLibrary.schemaUrl||""}`,u=c.get(a);u||(u=[],c.set(a,u)),u.push(i)}return r}function o$(o,r){let i=n$(o),c=[],a=i.entries(),u=a.next();for(;!u.done;){let[t,e]=u.value,n=[],s=e.values(),l=s.next();for(;!l.done;){let O=l.value;if(O.length>0){let g=O.map(pe=>BL(pe,r));n.push({scope:(0,Fr.createInstrumentationScope)(O[0].instrumentationLibrary),spans:g,schemaUrl:O[0].instrumentationLibrary.schemaUrl})}l=s.next()}let E={resource:(0,Fr.createResource)(t),scopeSpans:n,schemaUrl:void 0};c.push(E),u=a.next()}return c}});var YL=S(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.ProtobufTraceSerializer=void 0;var kL=Ni(),i$=Tc(),a$=kL.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,u$=kL.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;xi.ProtobufTraceSerializer={serializeRequest:o=>{let r=(0,i$.createExportTraceServiceRequest)(o);return u$.encode(r).finish()},deserializeResponse:o=>a$.decode(o)}});var FL=S(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.ProtobufTraceSerializer=void 0;var s$=YL();Object.defineProperty(bi,"ProtobufTraceSerializer",{enumerable:!0,get:function(){return s$.ProtobufTraceSerializer}})});var KL=S(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.JsonLogsSerializer=void 0;var c$=_c();Ui.JsonLogsSerializer={serializeRequest:o=>{let r=(0,c$.createExportLogsServiceRequest)(o,{useHex:!0,useLongBits:!1});return new TextEncoder().encode(JSON.stringify(r))},deserializeResponse:o=>{let r=new TextDecoder;return JSON.parse(r.decode(o))}}});var jL=S(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.JsonLogsSerializer=void 0;var l$=KL();Object.defineProperty(Di,"JsonLogsSerializer",{enumerable:!0,get:function(){return l$.JsonLogsSerializer}})});var qL=S(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.JsonMetricsSerializer=void 0;var p$=Ec();Vi.JsonMetricsSerializer={serializeRequest:o=>{let r=(0,p$.createExportMetricsServiceRequest)([o],{useLongBits:!1});return new TextEncoder().encode(JSON.stringify(r))},deserializeResponse:o=>{let r=new TextDecoder;return JSON.parse(r.decode(o))}}});var WL=S(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.JsonMetricsSerializer=void 0;var _$=qL();Object.defineProperty(wi,"JsonMetricsSerializer",{enumerable:!0,get:function(){return _$.JsonMetricsSerializer}})});var zL=S(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.JsonTraceSerializer=void 0;var E$=Tc();Bi.JsonTraceSerializer={serializeRequest:o=>{let r=(0,E$.createExportTraceServiceRequest)(o,{useHex:!0,useLongBits:!1});return new TextEncoder().encode(JSON.stringify(r))},deserializeResponse:o=>{let r=new TextDecoder;return JSON.parse(r.decode(o))}}});var JL=S(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.JsonTraceSerializer=void 0;var T$=zL();Object.defineProperty(Gi,"JsonTraceSerializer",{enumerable:!0,get:function(){return T$.JsonTraceSerializer}})});var Sc=S(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.JsonTraceSerializer=re.JsonMetricsSerializer=re.JsonLogsSerializer=re.ProtobufTraceSerializer=re.ProtobufMetricsSerializer=re.ProtobufLogsSerializer=void 0;var S$=LL();Object.defineProperty(re,"ProtobufLogsSerializer",{enumerable:!0,get:function(){return S$.ProtobufLogsSerializer}});var f$=wL();Object.defineProperty(re,"ProtobufMetricsSerializer",{enumerable:!0,get:function(){return f$.ProtobufMetricsSerializer}});var d$=FL();Object.defineProperty(re,"ProtobufTraceSerializer",{enumerable:!0,get:function(){return d$.ProtobufTraceSerializer}});var A$=jL();Object.defineProperty(re,"JsonLogsSerializer",{enumerable:!0,get:function(){return A$.JsonLogsSerializer}});var v$=WL();Object.defineProperty(re,"JsonMetricsSerializer",{enumerable:!0,get:function(){return v$.JsonMetricsSerializer}});var O$=JL();Object.defineProperty(re,"JsonTraceSerializer",{enumerable:!0,get:function(){return O$.JsonTraceSerializer}})});function XL(o){var r=[429,502,503,504];return r.includes(o)}function $L(o){if(o!=null){var r=Number.parseInt(o,10);if(Number.isInteger(r))return r>0?r*1e3:-1;var i=new Date(o).getTime()-Date.now();return i>=0?i:0}}var QL=d(()=>{});var rI={};At(rI,{compressAndSend:()=>tI,createHttpAgent:()=>N$,sendWithHttp:()=>m$});function m$(o,r,i,c,a){var u=new URL(o.url),t=Number(process.versions.node.split(".")[0]),e={hostname:u.hostname,port:u.port,path:u.pathname,method:"POST",headers:fc({},o.headers()),agent:r},n=u.protocol==="http:"?Hi.request:ki.request,s=n(e,function(E){var O=[];E.on("data",function(g){return O.push(g)}),E.on("end",function(){if(E.statusCode&&E.statusCode<299)c({status:"success",data:Buffer.concat(O)});else if(E.statusCode&&XL(E.statusCode))c({status:"retryable",retryInMillis:$L(E.headers["retry-after"])});else{var g=new pt(E.statusMessage,E.statusCode,Buffer.concat(O).toString());c({status:"failure",error:g})}})});s.setTimeout(a,function(){s.destroy(),c({status:"failure",error:new Error("Request Timeout")})}),s.on("error",function(E){c({status:"failure",error:E})});var l=t>=14?"close":"abort";s.on(l,function(){c({status:"failure",error:new Error("Request timed out")})}),tI(s,o.compression,i,function(E){c({status:"failure",error:E})})}function tI(o,r,i,c){var a=h$(i);r==="gzip"&&(o.setHeader("Content-Encoding","gzip"),a=a.on("error",c).pipe(ZL.createGzip()).on("error",c)),a.pipe(o).on("error",c)}function h$(o){var r=new eI.Readable;return r.push(o),r.push(null),r}function N$(o,r){var i=new URL(o),c=i.protocol==="http:"?Hi.Agent:ki.Agent;return new c(r)}var Hi,ki,ZL,eI,fc,nI=d(()=>{Hi=ve(require("http")),ki=ve(require("https")),ZL=ve(require("zlib")),eI=require("stream");QL();pi();fc=function(){return fc=Object.assign||function(o){for(var r,i=1,c=arguments.length;i<c;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(o[a]=r[a])}return o},fc.apply(this,arguments)}});function oI(o){return new P$(o)}var R$,y$,P$,iI=d(()=>{R$=function(o,r,i,c){function a(u){return u instanceof i?u:new i(function(t){t(u)})}return new(i||(i=Promise))(function(u,t){function e(l){try{s(c.next(l))}catch(E){t(E)}}function n(l){try{s(c.throw(l))}catch(E){t(E)}}function s(l){l.done?u(l.value):a(l.value).then(e,n)}s((c=c.apply(o,r||[])).next())})},y$=function(o,r){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},c,a,u,t;return t={next:e(0),throw:e(1),return:e(2)},typeof Symbol=="function"&&(t[Symbol.iterator]=function(){return this}),t;function e(s){return function(l){return n([s,l])}}function n(s){if(c)throw new TypeError("Generator is already executing.");for(;i;)try{if(c=1,a&&(u=s[0]&2?a.return:s[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,s[1])).done)return u;switch(a=0,u&&(s=[s[0]&2,u.value]),s[0]){case 0:case 1:u=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,a=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!u||s[1]>u[0]&&s[1]<u[3])){i.label=s[1];break}if(s[0]===6&&i.label<u[1]){i.label=u[1],u=s;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(s);break}u[2]&&i.ops.pop(),i.trys.pop();continue}s=r.call(o,i)}catch(l){s=[6,l],a=0}finally{c=u=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},P$=function(){function o(r){this._parameters=r,this._send=null,this._agent=null}return o.prototype.send=function(r,i){return R$(this,void 0,void 0,function(){var c,a,u,t=this;return y$(this,function(e){return this._send==null&&(c=(nI(),N(rI)),a=c.sendWithHttp,u=c.createHttpAgent,this._agent=u(this._parameters.url,this._parameters.agentOptions),this._send=a),[2,new Promise(function(n){var s;(s=t._send)===null||s===void 0||s.call(t,t._parameters,t._agent,r,function(l){n(l)},i)})]})})},o.prototype.shutdown=function(){},o}()});function b$(){return Math.random()*(2*aI)-aI}function uI(o){return new U$(o.transport)}var M$,g$,L$,I$,C$,x$,aI,U$,sI=d(()=>{M$=function(o,r,i,c){function a(u){return u instanceof i?u:new i(function(t){t(u)})}return new(i||(i=Promise))(function(u,t){function e(l){try{s(c.next(l))}catch(E){t(E)}}function n(l){try{s(c.throw(l))}catch(E){t(E)}}function s(l){l.done?u(l.value):a(l.value).then(e,n)}s((c=c.apply(o,r||[])).next())})},g$=function(o,r){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},c,a,u,t;return t={next:e(0),throw:e(1),return:e(2)},typeof Symbol=="function"&&(t[Symbol.iterator]=function(){return this}),t;function e(s){return function(l){return n([s,l])}}function n(s){if(c)throw new TypeError("Generator is already executing.");for(;i;)try{if(c=1,a&&(u=s[0]&2?a.return:s[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,s[1])).done)return u;switch(a=0,u&&(s=[s[0]&2,u.value]),s[0]){case 0:case 1:u=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,a=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!u||s[1]>u[0]&&s[1]<u[3])){i.label=s[1];break}if(s[0]===6&&i.label<u[1]){i.label=u[1],u=s;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(s);break}u[2]&&i.ops.pop(),i.trys.pop();continue}s=r.call(o,i)}catch(l){s=[6,l],a=0}finally{c=u=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},L$=5,I$=1e3,C$=5e3,x$=1.5,aI=.2;U$=function(){function o(r){this._transport=r}return o.prototype.retry=function(r,i,c){var a=this;return new Promise(function(u,t){setTimeout(function(){a._transport.send(r,i).then(u,t)},c)})},o.prototype.send=function(r,i){var c;return M$(this,void 0,void 0,function(){var a,u,t,e,n,s,l;return g$(this,function(E){switch(E.label){case 0:return a=Date.now()+i,[4,this._transport.send(r,i)];case 1:u=E.sent(),t=L$,e=I$,E.label=2;case 2:return u.status==="retryable"&&t>0?(t--,n=Math.max(Math.min(e,C$)+b$(),0),e=e*x$,s=(c=u.retryInMillis)!==null&&c!==void 0?c:n,l=a-Date.now(),s>l?[2,u]:[4,this.retry(r,l,s)]):[3,4];case 3:return u=E.sent(),[3,2];case 4:return[2,u]}})})},o.prototype.shutdown=function(){return this._transport.shutdown()},o}()});function cI(o,r){return di({transport:uI({transport:oI(o)}),serializer:r,promiseHandler:fi(o)},{timeout:o.timeoutMillis})}var lI=d(()=>{qs();iI();js();sI()});function pI(o){var r,i=(r=__fromEnv[o])===null||r===void 0?void 0:r.trim();if(i!=null&&i!==""){var c=Number(i);if(!Number.isNaN(c)&&Number.isFinite(c)&&c>0)return c;H.warn("Configuration: "+o+" is invalid, expected number greater than 0 (actual: "+i+")")}}function D$(o){var r=pI("OTEL_EXPORTER_OTLP_"+o+"_TIMEOUT"),i=pI("OTEL_EXPORTER_OTLP_TIMEOUT");return r??i}function _I(o){var r,i=(r=__fromEnv[o])===null||r===void 0?void 0:r.trim();if(i!==""){if(i==null||i==="none"||i==="gzip")return i;H.warn("Configuration: "+o+" is invalid, expected 'none' or 'gzip' (actual: '"+i+"')")}}function V$(o){var r=_I("OTEL_EXPORTER_OTLP_"+o+"_COMPRESSION"),i=_I("OTEL_EXPORTER_OTLP_COMPRESSION");return r??i}function Yi(o){return{timeoutMillis:D$(o),compression:V$(o)}}var dc=d(()=>{m()});function EI(o){return function(){var r,i={};return Object.entries((r=o?.())!==null&&r!==void 0?r:{}).forEach(function(c){var a=w$(c,2),u=a[0],t=a[1];typeof t<"u"?i[u]=String(t):H.warn('Header "'+u+'" has invalid value ('+t+") and will be ignored")}),i}}var w$,TI=d(()=>{m();w$=function(o,r){var i=typeof Symbol=="function"&&o[Symbol.iterator];if(!i)return o;var c=i.call(o),a,u=[],t;try{for(;(r===void 0||r-- >0)&&!(a=c.next()).done;)u.push(a.value)}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=c.return)&&i.call(c)}finally{if(t)throw t.error}}return u}});function B$(o,r,i){var c=Tt({},i()),a={};return function(){return r!=null&&Object.assign(a,r()),o!=null&&Object.assign(a,o()),Object.assign(a,c)}}function G$(o){if(o!=null)try{return new URL(o),o}catch{throw new Error("Configuration: Could not parse user-provided export URL: '"+o+"'")}}function SI(o,r,i){var c,a,u,t;return Tt(Tt({},Ei(o,r,i)),{headers:B$(EI(o.headers),r.headers,i.headers),url:(a=(c=G$(o.url))!==null&&c!==void 0?c:r.url)!==null&&a!==void 0?a:i.url,agentOptions:(t=(u=o.agentOptions)!==null&&u!==void 0?u:r.agentOptions)!==null&&t!==void 0?t:i.agentOptions})}function fI(o,r){return Tt(Tt({},Ti()),{headers:function(){return o},url:"http://localhost:4318/"+r,agentOptions:{keepAlive:!0}})}var Tt,dI=d(()=>{Br();TI();Tt=function(){return Tt=Object.assign||function(o){for(var r,i=1,c=arguments.length;i<c;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(o[a]=r[a])}return o},Tt.apply(this,arguments)}});function H$(o){var r,i,c=(r=__fromEnv["OTEL_EXPORTER_OTLP_"+o+"_HEADERS"])===null||r===void 0?void 0:r.trim(),a=(i=__fromEnv.OTEL_EXPORTER_OTLP_HEADERS)===null||i===void 0?void 0:i.trim(),u=Kr.baggageUtils.parseKeyPairsIntoRecord(c),t=Kr.baggageUtils.parseKeyPairsIntoRecord(a);if(!(Object.keys(u).length===0&&Object.keys(t).length===0))return Object.assign({},Kr.baggageUtils.parseKeyPairsIntoRecord(a),Kr.baggageUtils.parseKeyPairsIntoRecord(c))}function k$(o){try{var r=new URL(o);return r.toString()}catch{H.warn("Configuration: Could not parse environment-provided export URL: '"+o+"', falling back to undefined");return}}function Y$(o,r){try{new URL(o)}catch{H.warn("Configuration: Could not parse environment-provided export URL: '"+o+"', falling back to undefined");return}o.endsWith("/")||(o=o+"/"),o+=r;try{new URL(o)}catch{H.warn("Configuration: Provided URL appended with '"+r+"' is not a valid URL, using 'undefined' instead of '"+o+"'");return}return o}function F$(o){var r,i=(r=__fromEnv.OTEL_EXPORTER_OTLP_ENDPOINT)===null||r===void 0?void 0:r.trim();if(!(i==null||i===""))return Y$(i,o)}function K$(o){var r,i=(r=__fromEnv["OTEL_EXPORTER_OTLP_"+o+"_ENDPOINT"])===null||r===void 0?void 0:r.trim();if(!(i==null||i===""))return k$(i)}function AI(o,r){var i;return Fi(Fi({},Yi(o)),{url:(i=K$(o))!==null&&i!==void 0?i:F$(r),headers:_i(H$(o))})}var Kr,Fi,vI=d(()=>{Kr=ve(x());m();dc();Br();Fi=function(){return Fi=Object.assign||function(o){for(var r,i=1,c=arguments.length;i<c;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(o[a]=r[a])}return o},Fi.apply(this,arguments)}});function j$(o){return o?.keepAlive!=null&&(o.httpAgentOptions!=null?o.httpAgentOptions.keepAlive==null&&(o.httpAgentOptions.keepAlive=o.keepAlive):o.httpAgentOptions={keepAlive:o.keepAlive}),o.httpAgentOptions}function OI(o,r,i,c){return o.metadata&&H.warn("Metadata cannot be set when using http"),SI({url:o.url,headers:_i(o.headers),concurrencyLimit:o.concurrencyLimit,timeoutMillis:o.timeoutMillis,compression:o.compression,agentOptions:j$(o)},AI(r,i),fI(c,i))}var mI=d(()=>{dI();vI();m();Br()});var Ac={};At(Ac,{convertLegacyHttpOptions:()=>OI,createOtlpHttpExportDelegate:()=>cI,getSharedConfigurationFromEnvironment:()=>Yi});var vc=d(()=>{lI();dc();mI()});var NI=S(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.OTLPTraceExporter=void 0;var q$=(zs(),N(Ws)),W$=mg(),z$=Sc(),hI=(vc(),N(Ac)),Oc=class extends q$.OTLPExporterBase{constructor(r={}){super((0,hI.createOtlpHttpExportDelegate)((0,hI.convertLegacyHttpOptions)(r,"TRACES","v1/traces",{"User-Agent":`OTel-OTLP-Exporter-JavaScript/${W$.VERSION}`,"Content-Type":"application/json"}),z$.JsonTraceSerializer))}};Ki.OTLPTraceExporter=Oc});var RI=S(St=>{"use strict";var J$=St&&St.__createBinding||(Object.create?function(o,r,i,c){c===void 0&&(c=i),Object.defineProperty(o,c,{enumerable:!0,get:function(){return r[i]}})}:function(o,r,i,c){c===void 0&&(c=i),o[c]=r[i]}),X$=St&&St.__exportStar||function(o,r){for(var i in o)i!=="default"&&!Object.prototype.hasOwnProperty.call(r,i)&&J$(r,o,i)};Object.defineProperty(St,"__esModule",{value:!0});X$(NI(),St)});var yI=S(ft=>{"use strict";var $$=ft&&ft.__createBinding||(Object.create?function(o,r,i,c){c===void 0&&(c=i),Object.defineProperty(o,c,{enumerable:!0,get:function(){return r[i]}})}:function(o,r,i,c){c===void 0&&(c=i),o[c]=r[i]}),Q$=ft&&ft.__exportStar||function(o,r){for(var i in o)i!=="default"&&!Object.prototype.hasOwnProperty.call(r,i)&&$$(r,o,i)};Object.defineProperty(ft,"__esModule",{value:!0});Q$(RI(),ft)});var PI=S(dt=>{"use strict";var Z$=dt&&dt.__createBinding||(Object.create?function(o,r,i,c){c===void 0&&(c=i),Object.defineProperty(o,c,{enumerable:!0,get:function(){return r[i]}})}:function(o,r,i,c){c===void 0&&(c=i),o[c]=r[i]}),e5=dt&&dt.__exportStar||function(o,r){for(var i in o)i!=="default"&&!Object.prototype.hasOwnProperty.call(r,i)&&Z$(r,o,i)};Object.defineProperty(dt,"__esModule",{value:!0});e5(yI(),dt)});var mc=S(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.AggregationTemporalityPreference=void 0;var t5;(function(o){o[o.DELTA=0]="DELTA",o[o.CUMULATIVE=1]="CUMULATIVE",o[o.LOWMEMORY=2]="LOWMEMORY"})(t5=jr.AggregationTemporalityPreference||(jr.AggregationTemporalityPreference={}))});var Nc=S(W=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});W.OTLPMetricExporterBase=W.LowMemoryTemporalitySelector=W.DeltaTemporalitySelector=W.CumulativeTemporalitySelector=void 0;var r5=x(),G=li(),MI=mc(),n5=(zs(),N(Ws)),o5=(m(),N(y)),i5=()=>G.AggregationTemporality.CUMULATIVE;W.CumulativeTemporalitySelector=i5;var a5=o=>{switch(o){case G.InstrumentType.COUNTER:case G.InstrumentType.OBSERVABLE_COUNTER:case G.InstrumentType.GAUGE:case G.InstrumentType.HISTOGRAM:case G.InstrumentType.OBSERVABLE_GAUGE:return G.AggregationTemporality.DELTA;case G.InstrumentType.UP_DOWN_COUNTER:case G.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER:return G.AggregationTemporality.CUMULATIVE}};W.DeltaTemporalitySelector=a5;var u5=o=>{switch(o){case G.InstrumentType.COUNTER:case G.InstrumentType.HISTOGRAM:return G.AggregationTemporality.DELTA;case G.InstrumentType.GAUGE:case G.InstrumentType.UP_DOWN_COUNTER:case G.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER:case G.InstrumentType.OBSERVABLE_COUNTER:case G.InstrumentType.OBSERVABLE_GAUGE:return G.AggregationTemporality.CUMULATIVE}};W.LowMemoryTemporalitySelector=u5;function s5(){let o=(0,r5.getEnv)(),r=o.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE.trim().toLowerCase();return r==="cumulative"?W.CumulativeTemporalitySelector:r==="delta"?W.DeltaTemporalitySelector:r==="lowmemory"?W.LowMemoryTemporalitySelector:(o5.diag.warn(`OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE is set to '${o.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE}', but only 'cumulative' and 'delta' are allowed. Using default ('cumulative') instead.`),W.CumulativeTemporalitySelector)}function c5(o){return o!=null?o===MI.AggregationTemporalityPreference.DELTA?W.DeltaTemporalitySelector:o===MI.AggregationTemporalityPreference.LOWMEMORY?W.LowMemoryTemporalitySelector:W.CumulativeTemporalitySelector:s5()}function l5(o){return o?.aggregationPreference?o.aggregationPreference:r=>G.Aggregation.Default()}var hc=class extends n5.OTLPExporterBase{constructor(r,i){super(r),this._aggregationSelector=l5(i),this._aggregationTemporalitySelector=c5(i?.temporalityPreference)}selectAggregation(r){return this._aggregationSelector(r)}selectAggregationTemporality(r){return this._aggregationTemporalitySelector(r)}};W.OTLPMetricExporterBase=hc});var gI=S(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.VERSION=void 0;ji.VERSION="0.57.2"});var II=S(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.OTLPMetricExporter=void 0;var p5=Nc(),_5=Sc(),E5=gI(),LI=(vc(),N(Ac)),T5={"User-Agent":`OTel-OTLP-Exporter-JavaScript/${E5.VERSION}`},Rc=class extends p5.OTLPMetricExporterBase{constructor(r){super((0,LI.createOtlpHttpExportDelegate)((0,LI.convertLegacyHttpOptions)(r??{},"METRICS","v1/metrics",Object.assign(Object.assign({},T5),{"Content-Type":"application/json"})),_5.JsonMetricsSerializer),r)}};qi.OTLPMetricExporter=Rc});var CI=S(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.OTLPMetricExporter=void 0;var S5=II();Object.defineProperty(Wi,"OTLPMetricExporter",{enumerable:!0,get:function(){return S5.OTLPMetricExporter}})});var xI=S(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.OTLPMetricExporter=void 0;var f5=CI();Object.defineProperty(zi,"OTLPMetricExporter",{enumerable:!0,get:function(){return f5.OTLPMetricExporter}})});var bI=S(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.OTLPMetricExporterBase=ne.LowMemoryTemporalitySelector=ne.DeltaTemporalitySelector=ne.CumulativeTemporalitySelector=ne.AggregationTemporalityPreference=ne.OTLPMetricExporter=void 0;var d5=xI();Object.defineProperty(ne,"OTLPMetricExporter",{enumerable:!0,get:function(){return d5.OTLPMetricExporter}});var A5=mc();Object.defineProperty(ne,"AggregationTemporalityPreference",{enumerable:!0,get:function(){return A5.AggregationTemporalityPreference}});var Ji=Nc();Object.defineProperty(ne,"CumulativeTemporalitySelector",{enumerable:!0,get:function(){return Ji.CumulativeTemporalitySelector}});Object.defineProperty(ne,"DeltaTemporalitySelector",{enumerable:!0,get:function(){return Ji.DeltaTemporalitySelector}});Object.defineProperty(ne,"LowMemoryTemporalitySelector",{enumerable:!0,get:function(){return Ji.LowMemoryTemporalitySelector}});Object.defineProperty(ne,"OTLPMetricExporterBase",{enumerable:!0,get:function(){return Ji.OTLPMetricExporterBase}})});var Qr={REQUEST:"openclaw.request",AGENT_TURN:"openclaw.agent.turn",TOOL_PREFIX:"tool.",MESSAGE_RECEIVED:"openclaw.message.received"},Oe={LLM_REQUESTS:"openclaw.llm.requests",LLM_TOKENS_INPUT:"openclaw.llm.tokens.input",LLM_TOKENS_OUTPUT:"openclaw.llm.tokens.output",LLM_TOKENS_CACHE_READ:"openclaw.llm.tokens.cache_read",LLM_DURATION:"openclaw.llm.duration",TOOL_CALLS:"openclaw.tool.calls",TOOL_ERRORS:"openclaw.tool.errors",TOOL_DURATION:"openclaw.tool.duration",MESSAGES_RECEIVED:"openclaw.messages.received",ESTIMATED_COST_USD:"openclaw.estimated_cost.usd"},w={SESSION_KEY:"openclaw.session.key",CHANNEL:"openclaw.message.channel",MODEL:"gen_ai.request.model",PROVIDER:"gen_ai.system",INPUT_TOKENS:"gen_ai.usage.input_tokens",OUTPUT_TOKENS:"gen_ai.usage.output_tokens",CACHE_READ_TOKENS:"gen_ai.usage.cache_read.input_tokens",CACHE_WRITE_TOKENS:"gen_ai.usage.cache_write.input_tokens",TOOL_NAME:"tool.name",TOOL_SUCCESS:"tool.success",AGENT_NAME:"openclaw.agent.name"},aa={API_KEY:"MANIFEST_API_KEY",ENDPOINT:"MANIFEST_ENDPOINT"},Ie="mnfst_",Zr={ENDPOINT:"https://app.manifest.build/otlp",SERVICE_NAME:"openclaw-gateway",METRICS_INTERVAL_MS:3e4};function Lc(o){let r=o&&typeof o=="object"&&!Array.isArray(o)?o:{};r.config&&typeof r.config=="object"&&!Array.isArray(r.config)&&(r=r.config);let i=r.mode==="local"?"local":"cloud",c=typeof r.apiKey=="string"&&r.apiKey.length>0?r.apiKey:__fromEnv[aa.API_KEY]||"",a=__fromEnv[aa.ENDPOINT],u=typeof r.endpoint=="string"&&r.endpoint.length>0?r.endpoint:a&&a.length>0?a:Zr.ENDPOINT,t=typeof r.serviceName=="string"&&r.serviceName.length>0?r.serviceName:Zr.SERVICE_NAME,e=typeof r.captureContent=="boolean"?r.captureContent:!1,n=typeof r.metricsIntervalMs=="number"&&r.metricsIntervalMs>=5e3?r.metricsIntervalMs:Zr.METRICS_INTERVAL_MS,s=typeof r.port=="number"&&r.port>0?r.port:2099,l=typeof r.host=="string"&&r.host.length>0?r.host:"127.0.0.1";return{mode:i,apiKey:c,endpoint:u,serviceName:t,captureContent:e,metricsIntervalMs:n,port:s,host:l}}function Ic(o){return o.mode==="local"?null:o.apiKey?o.apiKey.startsWith(Ie)?o.endpoint.startsWith("http")?null:`Invalid endpoint URL '${o.endpoint}'. Must start with http:// or https://. Fix it via:
16
+ openclaw config set plugins.entries.manifest.config.endpoint https://app.manifest.build/otlp`:`Invalid apiKey format. Keys must start with '${Ie}'. Fix it via:
17
+ openclaw config set manifest.apiKey ${Ie}YOUR_KEY`:`Missing apiKey. Set it via:
18
+ openclaw config set manifest.apiKey ${Ie}YOUR_KEY
19
+ or export MANIFEST_API_KEY=${Ie}YOUR_KEY`}var Xi=ve(iM()),$i=ve(li()),UI=ve(PI()),DI=ve(bI()),VI=ve(_o());m();var qr=null,Wr=null,yc=null,Pc=null;function Qi(o,r){let i=new VI.Resource({"service.name":o.serviceName,"service.version":"5.2.4","manifest.plugin":"true"}),c={Authorization:`Bearer ${o.apiKey}`},a=new UI.OTLPTraceExporter({url:`${o.endpoint}/v1/traces`,headers:c});qr=new Xi.BasicTracerProvider({resource:i,spanProcessors:[new Xi.BatchSpanProcessor(a,{scheduledDelayMillis:5e3,maxQueueSize:2048,maxExportBatchSize:512})]}),qr.register(),r.info(`[manifest] Trace exporter -> ${o.endpoint}/v1/traces`);let u=new DI.OTLPMetricExporter({url:`${o.endpoint}/v1/metrics`,headers:c});return Wr=new $i.MeterProvider({resource:i,readers:[new $i.PeriodicExportingMetricReader({exporter:u,exportIntervalMillis:o.metricsIntervalMs})]}),Nt.setGlobalMeterProvider(Wr),r.info(`[manifest] Metrics exporter -> ${o.endpoint}/v1/metrics (interval=${o.metricsIntervalMs}ms)`),yc=Ge.getTracer("manifest-plugin","5.2.4"),Pc=Nt.getMeter("manifest-plugin","5.2.4"),{tracer:yc,meter:Pc}}async function Zi(o){o.info("[manifest] Shutting down telemetry..."),qr&&(await qr.shutdown(),qr=null),Wr&&(await Wr.shutdown(),Wr=null),yc=null,Pc=null,o.info("[manifest] Telemetry shut down")}m();var sr=new Map,wI,BI,GI,HI,v5,kI,YI,FI,KI;function ea(o){wI=o.createCounter(Oe.LLM_REQUESTS,{description:"Total LLM inference requests"}),BI=o.createCounter(Oe.LLM_TOKENS_INPUT,{description:"Total input tokens sent to LLM"}),GI=o.createCounter(Oe.LLM_TOKENS_OUTPUT,{description:"Total output tokens from LLM"}),HI=o.createCounter(Oe.LLM_TOKENS_CACHE_READ,{description:"Total cache-read tokens"}),v5=o.createHistogram(Oe.LLM_DURATION,{description:"LLM request duration in ms",unit:"ms"}),kI=o.createCounter(Oe.TOOL_CALLS,{description:"Total tool invocations"}),YI=o.createCounter(Oe.TOOL_ERRORS,{description:"Total tool errors"}),FI=o.createHistogram(Oe.TOOL_DURATION,{description:"Tool execution duration in ms",unit:"ms"}),KI=o.createCounter(Oe.MESSAGES_RECEIVED,{description:"Total messages received from users"})}function ta(o,r,i,c){o.on("message_received",a=>{let u=a.sessionKey||a.session?.key||`agent:${a.agent||"main"}:main`,t=a.channel||"unknown",e=r.startSpan(Qr.REQUEST,{kind:we.SERVER,attributes:{[w.SESSION_KEY]:u,[w.CHANNEL]:t}});sr.set(u,{root:e}),KI.add(1,{[w.CHANNEL]:t}),c.debug(`[manifest] Root span started for session=${u}`)}),o.on("before_agent_start",a=>{let u=a.sessionKey||a.session?.key||`agent:${a.agent||"main"}:main`,t=a.agent||"main",e=sr.get(u),n=e?.root?Ge.setSpan(Be.active(),e.root):Be.active(),s=r.startSpan(Qr.AGENT_TURN,{kind:we.INTERNAL,attributes:{[w.AGENT_NAME]:t,[w.SESSION_KEY]:u}},n);e?e.turn=s:sr.set(u,{root:s,turn:s}),c.debug(`[manifest] Agent turn started: agent=${t}, session=${u}`)}),o.on("tool_result_persist",a=>{let u=a.toolName||a.tool||"unknown",t=a.durationMs||0,e=a.error==null,n=a.sessionKey||"unknown",s=sr.get(n),l=s?.turn?Ge.setSpan(Be.active(),s.turn):Be.active(),E=r.startSpan(`${Qr.TOOL_PREFIX}${u}`,{kind:we.INTERNAL,attributes:{[w.TOOL_NAME]:u,[w.TOOL_SUCCESS]:String(e),[w.SESSION_KEY]:n}},l);e||(E.setStatus({code:ht.ERROR,message:a.error?.message||"Tool execution failed"}),YI.add(1,{[w.TOOL_NAME]:u})),E.end(),kI.add(1,{[w.TOOL_NAME]:u}),FI.record(t,{[w.TOOL_NAME]:u})}),o.on("agent_end",a=>{let u=a.sessionKey||a.session?.key||`agent:${a.agent||"main"}:main`,e=[...a.messages||[]].reverse().find(Jr=>Jr.role==="assistant"&&Jr.usage),n=e?.model||a.model||"unknown",s=e?.provider||a.provider||"unknown",l=e?.usage||a.usage||{},E=l.input||l.inputTokens||0,O=l.output||l.outputTokens||0,g=l.cacheRead||l.cacheReadTokens||0,pe=l.cacheWrite||l.cacheWriteTokens||0,Ae=sr.get(u);Ae?.turn&&(Ae.turn.setAttributes({[w.MODEL]:n,[w.PROVIDER]:s,[w.INPUT_TOKENS]:E,[w.OUTPUT_TOKENS]:O,[w.CACHE_READ_TOKENS]:g,[w.CACHE_WRITE_TOKENS]:pe}),Ae.turn.end()),Ae?.root&&Ae.root!==Ae.turn&&Ae.root.end(),sr.delete(u);let Le={[w.MODEL]:n,[w.PROVIDER]:s};wI.add(1,Le),BI.add(E,Le),GI.add(O,Le),g>0&&HI.add(g,Le),c.debug(`[manifest] agent_end tokens: in=${E}, out=${O}, cache=${g}`),c.debug(`[manifest] Trace completed for session=${u}`)}),c.info("[manifest] All hooks registered")}async function ra(o){let r=o.endpoint.replace(/\/otlp(\/v1)?\/?$/,""),i={endpointReachable:!1,authValid:!1,agentName:null,error:null};try{let c=await fetch(`${r}/api/v1/health`,{signal:AbortSignal.timeout(5e3)});if(!c.ok)return i.error=`Health endpoint returned ${c.status}`,i;i.endpointReachable=!0}catch(c){let a=c instanceof Error?c.message:String(c);return i.error=`Cannot reach endpoint: ${a}`,i}try{let c=await fetch(`${r}/api/v1/agent/usage?range=24h`,{headers:{Authorization:`Bearer ${o.apiKey}`},signal:AbortSignal.timeout(5e3)});if(c.status===401||c.status===403)return i.error="API key rejected \u2014 check your mnfst_ key is correct",i;if(!c.ok)return i.error=`Usage endpoint returned ${c.status}`,i;i.authValid=!0;let a=await c.json();a&&typeof a.agentName=="string"&&(i.agentName=a.agentName)}catch(c){let a=c instanceof Error?c.message:String(c);return i.error=`Auth check failed: ${a}`,i}return i}var jI={today:"24h",week:"7d",month:"30d"};async function qI(o,r,i,c){let a=`${o}${r}`;try{let u=await fetch(a,{headers:{Authorization:`Bearer ${i}`}});return u.ok?{result:await u.json()}:{error:`API returned ${u.status}`}}catch(u){let t=u instanceof Error?u.message:String(u);return c.error(`[manifest] API call failed: ${t}`),{error:t}}}function na(o,r,i){let c=r.endpoint.replace(/\/otlp(\/v1)?\/?$/,"");o.registerTool({name:"manifest_usage",description:"Get token consumption for this agent: total, input, output, cache-read tokens, and action count. Use when the user asks about token usage or consumption.",parameters:{type:"object",properties:{period:{type:"string",enum:["today","week","month"],default:"today",description:"Time period"}}},handler:async a=>{let u=jI[a.period||"today"]||"24h";return qI(c,`/api/v1/agent/usage?range=${u}`,r.apiKey,i)}}),o.registerTool({name:"manifest_costs",description:"Get cost breakdown for this agent in USD, grouped by model. Use when the user asks about costs, spending, or money burned.",parameters:{type:"object",properties:{period:{type:"string",enum:["today","week","month"],default:"week",description:"Time period"}}},handler:async a=>{let u=jI[a.period||"week"]||"7d";return qI(c,`/api/v1/agent/costs?range=${u}`,r.apiKey,i)}}),o.registerTool({name:"manifest_health",description:"Check whether Manifest observability is connected and working. Use when the user asks if monitoring is set up or wants a connectivity test.",parameters:{type:"object",properties:{}},handler:async()=>{let a=await ra(r);return a.error?{error:a.error}:{result:{endpointReachable:a.endpointReachable,authValid:a.authValid,agentName:a.agentName,status:"ok"}}}}),i.info("[manifest] Registered agent tools: manifest_usage, manifest_costs, manifest_health")}var de=require("fs"),ia=require("path"),WI=require("os"),zI=require("crypto");var oa=(0,ia.join)((0,WI.homedir)(),".openclaw","manifest"),zr=(0,ia.join)(oa,"config.json");function O5(){(0,de.existsSync)(oa)||(0,de.mkdirSync)(oa,{recursive:!0,mode:448})}function m5(){if(O5(),(0,de.existsSync)(zr))try{let i=JSON.parse((0,de.readFileSync)(zr,"utf-8"));if(i.apiKey&&i.apiKey.startsWith(Ie))return i.apiKey}catch{}let o=`${Ie}local_${(0,zI.randomBytes)(24).toString("hex")}`,r={};if((0,de.existsSync)(zr))try{r=JSON.parse((0,de.readFileSync)(zr,"utf-8"))}catch{}return(0,de.writeFileSync)(zr,JSON.stringify({...r,apiKey:o},null,2),{mode:384}),o}function JI(o,r,i){let c=r.port,a=r.host,u=m5(),t=(0,ia.join)(oa,"manifest.db");i.info("[manifest] Local mode \u2014 starting embedded server...");let e;try{e=require("@mnfst/server")}catch{i.error(`[manifest] @mnfst/server is not installed.
20
+ Install it with: npm install @mnfst/server
21
+ Then restart the gateway.`);return}let n=`http://${a}:${c}/otlp`,s={...r,apiKey:u,endpoint:n},{tracer:l,meter:E}=Qi(s,i);ea(E),ta(o,l,s,i),typeof o.registerTool=="function"&&na(o,s,i),o.registerService({id:"manifest-local",start:async()=>{try{await e.start({port:c,host:a,dbPath:t}),i.info(`[manifest] Local server running on http://${a}:${c}`),i.info(`[manifest] Dashboard: http://${a}:${c}`),i.info(`[manifest] DB: ${t}`)}catch(O){let g=O instanceof Error?O.message:String(O);g.includes("EADDRINUSE")||g.includes("address already in use")?i.error(`[manifest] Port ${c} is already in use.
22
+ Change it with: openclaw config set plugins.entries.manifest.config.port ${c+1}
23
+ Then restart the gateway.`):i.error(`[manifest] Failed to start local server: ${g}`)}},stop:async()=>{await Zi(i)}})}module.exports={id:"manifest",name:"Manifest \u2014 Agent Observability",register(o){let r=o.logger||{info:(...e)=>console.log(...e),debug:()=>{},error:(...e)=>console.error(...e),warn:(...e)=>console.warn(...e)},i=Lc(o.pluginConfig);if(i.mode==="local"){JI(o,i,r);return}let c=Ic(i);if(c){i.apiKey?r.error(`[manifest] Configuration error:
20
24
  ${c}`):r.info(`[manifest] Installed! Complete setup:
21
25
  1. openclaw config set plugins.entries.manifest.config.apiKey mnfst_YOUR_KEY
22
26
  2. openclaw gateway restart`);return}if((o.config?.plugins?.entries||{})["diagnostics-otel"]?.enabled){r.error(`[manifest] ERROR: Built-in 'diagnostics-otel' is also enabled. This causes duplicate OTel registration errors. Disable it now:
23
27
  openclaw plugins disable diagnostics-otel
24
- Then restart the gateway.`);return}r.info("[manifest] Initializing observability pipeline...");let{tracer:u,meter:t}=gI(i,r);BI(t),GI(o,u,i,r),typeof o.registerTool=="function"?YI(o,i,r):r.info("[manifest] Agent tools not available in this OpenClaw version"),o.registerService({id:"manifest-telemetry",start:()=>{r.info("[manifest] Observability pipeline active"),r.info(`[manifest] Endpoint=${i.endpoint}`),Xi(i).then(e=>{if(e.error){r.warn?.(`[manifest] Connection check failed: ${e.error}`);return}let n=e.agentName?` (agent: ${e.agentName})`:"";r.info(`[manifest] Connection verified${n}`)}).catch(()=>{})},stop:async()=>{await LI(r)}})}};
28
+ Then restart the gateway.`);return}r.info("[manifest] Initializing observability pipeline...");let{tracer:u,meter:t}=Qi(i,r);ea(t),ta(o,u,i,r),typeof o.registerTool=="function"?na(o,i,r):r.info("[manifest] Agent tools not available in this OpenClaw version"),o.registerService({id:"manifest-telemetry",start:()=>{r.info("[manifest] Observability pipeline active"),r.info(`[manifest] Endpoint=${i.endpoint}`),ra(i).then(e=>{if(e.error){r.warn?.(`[manifest] Connection check failed: ${e.error}`);return}let n=e.agentName?` (agent: ${e.agentName})`:"";r.info(`[manifest] Connection verified${n}`)}).catch(()=>{})},stop:async()=>{await Zi(r)}})}};