@sentio/runtime 2.44.3-rc.6 → 2.44.3-rc.7
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/lib/processor-runner.js +47 -47
- package/lib/processor-runner.js.map +1 -1
- package/package.json +1 -1
package/lib/processor-runner.js
CHANGED
@@ -1,62 +1,62 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
2
|
import { createRequire as createRequireShim } from 'module'; const require = createRequireShim(import.meta.url);
|
3
|
-
import{A as
|
4
|
-
GFS4: `),console.error(t)});oe[_e]||(vh=global[_e]||[],_h(oe,vh),oe.close=function(t){function e(n,o){return t.call(oe,n,function(a){a||yh(),typeof o=="function"&&o.apply(this,arguments)})}return Object.defineProperty(e,Vo,{value:t}),e}(oe.close),oe.closeSync=function(t){function e(n){t.apply(oe,arguments),yh()}return Object.defineProperty(e,Vo,{value:t}),e}(oe.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Er(oe[_e]),M("assert").equal(oe[_e].length,0)}));var vh;global[_e]||_h(global,oe[_e]);dl.exports=fl(cC(oe));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!oe.__patched&&(dl.exports=fl(oe),oe.__patched=!0);function fl(t){sC(t),t.gracefulify=fl,t.createReadStream=B,t.createWriteStream=j;var e=t.readFile;t.readFile=n;function n(P,k,U){return typeof k=="function"&&(U=k,k=null),z(P,k,U);function z(W,ne,ie,ue){return e(W,ne,function(Z){Z&&(Z.code==="EMFILE"||Z.code==="ENFILE")?Zr([z,[W,ne,ie],Z,ue||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}var o=t.writeFile;t.writeFile=a;function a(P,k,U,z){return typeof U=="function"&&(z=U,U=null),W(P,k,U,z);function W(ne,ie,ue,Z,ye){return o(ne,ie,ue,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Zr([W,[ne,ie,ue,Z],re,ye||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}var u=t.appendFile;u&&(t.appendFile=i);function i(P,k,U,z){return typeof U=="function"&&(z=U,U=null),W(P,k,U,z);function W(ne,ie,ue,Z,ye){return u(ne,ie,ue,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Zr([W,[ne,ie,ue,Z],re,ye||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}var r=t.copyFile;r&&(t.copyFile=s);function s(P,k,U,z){return typeof U=="function"&&(z=U,U=0),W(P,k,U,z);function W(ne,ie,ue,Z,ye){return r(ne,ie,ue,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Zr([W,[ne,ie,ue,Z],re,ye||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}var l=t.readdir;t.readdir=p;var c=/^v[0-5]\./;function p(P,k,U){typeof k=="function"&&(U=k,k=null);var z=c.test(process.version)?function(ie,ue,Z,ye){return l(ie,W(ie,ue,Z,ye))}:function(ie,ue,Z,ye){return l(ie,ue,W(ie,ue,Z,ye))};return z(P,k,U);function W(ne,ie,ue,Z){return function(ye,re){ye&&(ye.code==="EMFILE"||ye.code==="ENFILE")?Zr([z,[ne,ie,ue],ye,Z||Date.now(),Date.now()]):(re&&re.sort&&re.sort(),typeof ue=="function"&&ue.call(this,ye,re))}}}if(process.version.substr(0,4)==="v0.8"){var m=lC(t);O=m.ReadStream,b=m.WriteStream}var f=t.ReadStream;f&&(O.prototype=Object.create(f.prototype),O.prototype.open=g);var v=t.WriteStream;v&&(b.prototype=Object.create(v.prototype),b.prototype.open=L),Object.defineProperty(t,"ReadStream",{get:function(){return O},set:function(P){O=P},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return b},set:function(P){b=P},enumerable:!0,configurable:!0});var S=O;Object.defineProperty(t,"FileReadStream",{get:function(){return S},set:function(P){S=P},enumerable:!0,configurable:!0});var _=b;Object.defineProperty(t,"FileWriteStream",{get:function(){return _},set:function(P){_=P},enumerable:!0,configurable:!0});function O(P,k){return this instanceof O?(f.apply(this,arguments),this):O.apply(Object.create(O.prototype),arguments)}function g(){var P=this;$(P.path,P.flags,P.mode,function(k,U){k?(P.autoClose&&P.destroy(),P.emit("error",k)):(P.fd=U,P.emit("open",U),P.read())})}function b(P,k){return this instanceof b?(v.apply(this,arguments),this):b.apply(Object.create(b.prototype),arguments)}function L(){var P=this;$(P.path,P.flags,P.mode,function(k,U){k?(P.destroy(),P.emit("error",k)):(P.fd=U,P.emit("open",U))})}function B(P,k){return new t.ReadStream(P,k)}function j(P,k){return new t.WriteStream(P,k)}var ae=t.open;t.open=$;function $(P,k,U,z){return typeof U=="function"&&(z=U,U=null),W(P,k,U,z);function W(ne,ie,ue,Z,ye){return ae(ne,ie,ue,function(re,N7){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Zr([W,[ne,ie,ue,Z],re,ye||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}return t}function Zr(t){Er("ENQUEUE",t[0].name,t[1]),oe[_e].push(t),pl()}var Do;function yh(){for(var t=Date.now(),e=0;e<oe[_e].length;++e)oe[_e][e].length>2&&(oe[_e][e][3]=t,oe[_e][e][4]=t);pl()}function pl(){if(clearTimeout(Do),Do=void 0,oe[_e].length!==0){var t=oe[_e].shift(),e=t[0],n=t[1],o=t[2],a=t[3],u=t[4];if(a===void 0)Er("RETRY",e.name,n),e.apply(null,n);else if(Date.now()-a>=6e4){Er("TIMEOUT",e.name,n);var i=n.pop();typeof i=="function"&&i.call(null,o)}else{var r=Date.now()-u,s=Math.max(u-a,1),l=Math.min(s*1.2,100);r>=l?(Er("RETRY",e.name,n),e.apply(null,n.concat([a]))):oe[_e].push(t)}Do===void 0&&(Do=setTimeout(pl,0))}}});var Pe=y(Mt=>{"use strict";var Sh=he().fromCallback,Re=en(),pC=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(t=>typeof Re[t]=="function");Object.assign(Mt,Re);pC.forEach(t=>{Mt[t]=Sh(Re[t])});Mt.exists=function(t,e){return typeof e=="function"?Re.exists(t,e):new Promise(n=>Re.exists(t,n))};Mt.read=function(t,e,n,o,a,u){return typeof u=="function"?Re.read(t,e,n,o,a,u):new Promise((i,r)=>{Re.read(t,e,n,o,a,(s,l,c)=>{if(s)return r(s);i({bytesRead:l,buffer:c})})})};Mt.write=function(t,e,...n){return typeof n[n.length-1]=="function"?Re.write(t,e,...n):new Promise((o,a)=>{Re.write(t,e,...n,(u,i,r)=>{if(u)return a(u);o({bytesWritten:i,buffer:r})})})};Mt.readv=function(t,e,...n){return typeof n[n.length-1]=="function"?Re.readv(t,e,...n):new Promise((o,a)=>{Re.readv(t,e,...n,(u,i,r)=>{if(u)return a(u);o({bytesRead:i,buffers:r})})})};Mt.writev=function(t,e,...n){return typeof n[n.length-1]=="function"?Re.writev(t,e,...n):new Promise((o,a)=>{Re.writev(t,e,...n,(u,i,r)=>{if(u)return a(u);o({bytesWritten:i,buffers:r})})})};typeof Re.realpath.native=="function"?Mt.realpath.native=Sh(Re.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var Th=y((C7,Eh)=>{"use strict";var dC=M("path");Eh.exports.checkPath=function(e){if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(dC.parse(e).root,""))){let o=new Error(`Path contains invalid characters: ${e}`);throw o.code="EINVAL",o}}});var bh=y((U7,hl)=>{"use strict";var gh=Pe(),{checkPath:Oh}=Th(),Ah=t=>{let e={mode:511};return typeof t=="number"?t:{...e,...t}.mode};hl.exports.makeDir=async(t,e)=>(Oh(t),gh.mkdir(t,{mode:Ah(e),recursive:!0}));hl.exports.makeDirSync=(t,e)=>(Oh(t),gh.mkdirSync(t,{mode:Ah(e),recursive:!0}))});var ut=y((D7,xh)=>{"use strict";var hC=he().fromPromise,{makeDir:mC,makeDirSync:ml}=bh(),vl=hC(mC);xh.exports={mkdirs:vl,mkdirsSync:ml,mkdirp:vl,mkdirpSync:ml,ensureDir:vl,ensureDirSync:ml}});var Kt=y((V7,Rh)=>{"use strict";var vC=he().fromPromise,Nh=Pe();function yC(t){return Nh.access(t).then(()=>!0).catch(()=>!1)}Rh.exports={pathExists:vC(yC),pathExistsSync:Nh.existsSync}});var yl=y((k7,Ph)=>{"use strict";var tn=Pe(),_C=he().fromPromise;async function SC(t,e,n){let o=await tn.open(t,"r+"),a=null;try{await tn.futimes(o,e,n)}finally{try{await tn.close(o)}catch(u){a=u}}if(a)throw a}function EC(t,e,n){let o=tn.openSync(t,"r+");return tn.futimesSync(o,e,n),tn.closeSync(o)}Ph.exports={utimesMillis:_C(SC),utimesMillisSync:EC}});var Tr=y((B7,Lh)=>{"use strict";var rn=Pe(),me=M("path"),wh=he().fromPromise;function TC(t,e,n){let o=n.dereference?a=>rn.stat(a,{bigint:!0}):a=>rn.lstat(a,{bigint:!0});return Promise.all([o(t),o(e).catch(a=>{if(a.code==="ENOENT")return null;throw a})]).then(([a,u])=>({srcStat:a,destStat:u}))}function gC(t,e,n){let o,a=n.dereference?i=>rn.statSync(i,{bigint:!0}):i=>rn.lstatSync(i,{bigint:!0}),u=a(t);try{o=a(e)}catch(i){if(i.code==="ENOENT")return{srcStat:u,destStat:null};throw i}return{srcStat:u,destStat:o}}async function OC(t,e,n,o){let{srcStat:a,destStat:u}=await TC(t,e,o);if(u){if(Qn(a,u)){let i=me.basename(t),r=me.basename(e);if(n==="move"&&i!==r&&i.toLowerCase()===r.toLowerCase())return{srcStat:a,destStat:u,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(a.isDirectory()&&!u.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`);if(!a.isDirectory()&&u.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`)}if(a.isDirectory()&&_l(t,e))throw new Error(ko(t,e,n));return{srcStat:a,destStat:u}}function AC(t,e,n,o){let{srcStat:a,destStat:u}=gC(t,e,o);if(u){if(Qn(a,u)){let i=me.basename(t),r=me.basename(e);if(n==="move"&&i!==r&&i.toLowerCase()===r.toLowerCase())return{srcStat:a,destStat:u,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(a.isDirectory()&&!u.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`);if(!a.isDirectory()&&u.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`)}if(a.isDirectory()&&_l(t,e))throw new Error(ko(t,e,n));return{srcStat:a,destStat:u}}async function Mh(t,e,n,o){let a=me.resolve(me.dirname(t)),u=me.resolve(me.dirname(n));if(u===a||u===me.parse(u).root)return;let i;try{i=await rn.stat(u,{bigint:!0})}catch(r){if(r.code==="ENOENT")return;throw r}if(Qn(e,i))throw new Error(ko(t,n,o));return Mh(t,e,u,o)}function Ih(t,e,n,o){let a=me.resolve(me.dirname(t)),u=me.resolve(me.dirname(n));if(u===a||u===me.parse(u).root)return;let i;try{i=rn.statSync(u,{bigint:!0})}catch(r){if(r.code==="ENOENT")return;throw r}if(Qn(e,i))throw new Error(ko(t,n,o));return Ih(t,e,u,o)}function Qn(t,e){return e.ino&&e.dev&&e.ino===t.ino&&e.dev===t.dev}function _l(t,e){let n=me.resolve(t).split(me.sep).filter(a=>a),o=me.resolve(e).split(me.sep).filter(a=>a);return n.every((a,u)=>o[u]===a)}function ko(t,e,n){return`Cannot ${n} '${t}' to a subdirectory of itself, '${e}'.`}Lh.exports={checkPaths:wh(OC),checkPathsSync:AC,checkParentPaths:wh(Mh),checkParentPathsSync:Ih,isSrcSubdir:_l,areIdentical:Qn}});var kh=y((G7,Vh)=>{"use strict";var Oe=Pe(),Zn=M("path"),{mkdirs:bC}=ut(),{pathExists:xC}=Kt(),{utimesMillis:NC}=yl(),ei=Tr();async function RC(t,e,n={}){typeof n=="function"&&(n={filter:n}),n.clobber="clobber"in n?!!n.clobber:!0,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
3
|
+
import{A as nE,B as Xr,C as oE,D as iE,E as Et,F as J,G as aE,H as Ft,I as Vi,J as _t,K as sE,L as St,M as uE,N as lE,O as ke,P as g,Q as Bi,R as st,S as X,T as Re,U as b,_ as cE,a as L,b as m,c as h,d as it,e as $e,f as Y,h as PU,k as Zd,l as eE,q as yr,r as Nl,s as bU,t as no,u as tE,v as rE,w as MU,x as xU,y as Rl,z as at}from"./chunk-OIJYNZ76.js";var Ee=h(Pl=>{"use strict";Pl.fromCallback=function(t){return Object.defineProperty(function(...e){if(typeof e[e.length-1]=="function")t.apply(this,e);else return new Promise((n,i)=>{e.push((a,s)=>a!=null?i(a):n(s)),t.apply(this,e)})},"name",{value:t.name})};Pl.fromPromise=function(t){return Object.defineProperty(function(...e){let n=e[e.length-1];if(typeof n!="function")return t.apply(this,e);e.pop(),t.apply(this,e).then(i=>n(null,i),n)},"name",{value:t.name})}});var pE=h((P7,fE)=>{var Yt=L("constants"),LU=process.cwd,Gi=null,IU=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Gi||(Gi=LU.call(process)),Gi};try{process.cwd()}catch{}typeof process.chdir=="function"&&(bl=process.chdir,process.chdir=function(t){Gi=null,bl.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,bl));var bl;fE.exports=CU;function CU(t){Yt.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||n(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=i(t.chmod),t.fchmod=i(t.fchmod),t.lchmod=i(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=a(t.chmodSync),t.fchmodSync=a(t.fchmodSync),t.lchmodSync=a(t.lchmodSync),t.stat=r(t.stat),t.fstat=r(t.fstat),t.lstat=r(t.lstat),t.statSync=u(t.statSync),t.fstatSync=u(t.fstatSync),t.lstatSync=u(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(c,p,_){_&&process.nextTick(_)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(c,p,_,f){f&&process.nextTick(f)},t.lchownSync=function(){}),IU==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(c){function p(_,f,S){var v=Date.now(),T=0;c(_,f,function A(O){if(O&&(O.code==="EACCES"||O.code==="EPERM"||O.code==="EBUSY")&&Date.now()-v<6e4){setTimeout(function(){t.stat(f,function(N,D){N&&N.code==="ENOENT"?c(_,f,A):S(O)})},T),T<100&&(T+=10);return}S&&S(O)})}return Object.setPrototypeOf&&Object.setPrototypeOf(p,c),p}(t.rename)),t.read=typeof t.read!="function"?t.read:function(c){function p(_,f,S,v,T,A){var O;if(A&&typeof A=="function"){var N=0;O=function(D,G,F){if(D&&D.code==="EAGAIN"&&N<10)return N++,c.call(t,_,f,S,v,T,O);A.apply(this,arguments)}}return c.call(t,_,f,S,v,T,O)}return Object.setPrototypeOf&&Object.setPrototypeOf(p,c),p}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(c){return function(p,_,f,S,v){for(var T=0;;)try{return c.call(t,p,_,f,S,v)}catch(A){if(A.code==="EAGAIN"&&T<10){T++;continue}throw A}}}(t.readSync);function e(c){c.lchmod=function(p,_,f){c.open(p,Yt.O_WRONLY|Yt.O_SYMLINK,_,function(S,v){if(S){f&&f(S);return}c.fchmod(v,_,function(T){c.close(v,function(A){f&&f(T||A)})})})},c.lchmodSync=function(p,_){var f=c.openSync(p,Yt.O_WRONLY|Yt.O_SYMLINK,_),S=!0,v;try{v=c.fchmodSync(f,_),S=!1}finally{if(S)try{c.closeSync(f)}catch{}else c.closeSync(f)}return v}}function n(c){Yt.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(p,_,f,S){c.open(p,Yt.O_SYMLINK,function(v,T){if(v){S&&S(v);return}c.futimes(T,_,f,function(A){c.close(T,function(O){S&&S(A||O)})})})},c.lutimesSync=function(p,_,f){var S=c.openSync(p,Yt.O_SYMLINK),v,T=!0;try{v=c.futimesSync(S,_,f),T=!1}finally{if(T)try{c.closeSync(S)}catch{}else c.closeSync(S)}return v}):c.futimes&&(c.lutimes=function(p,_,f,S){S&&process.nextTick(S)},c.lutimesSync=function(){})}function i(c){return c&&function(p,_,f){return c.call(t,p,_,function(S){l(S)&&(S=null),f&&f.apply(this,arguments)})}}function a(c){return c&&function(p,_){try{return c.call(t,p,_)}catch(f){if(!l(f))throw f}}}function s(c){return c&&function(p,_,f,S){return c.call(t,p,_,f,function(v){l(v)&&(v=null),S&&S.apply(this,arguments)})}}function o(c){return c&&function(p,_,f){try{return c.call(t,p,_,f)}catch(S){if(!l(S))throw S}}}function r(c){return c&&function(p,_,f){typeof _=="function"&&(f=_,_=null);function S(v,T){T&&(T.uid<0&&(T.uid+=4294967296),T.gid<0&&(T.gid+=4294967296)),f&&f.apply(this,arguments)}return _?c.call(t,p,_,S):c.call(t,p,S)}}function u(c){return c&&function(p,_){var f=_?c.call(t,p,_):c.call(t,p);return f&&(f.uid<0&&(f.uid+=4294967296),f.gid<0&&(f.gid+=4294967296)),f}}function l(c){if(!c||c.code==="ENOSYS")return!0;var p=!process.getuid||process.getuid()!==0;return!!(p&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var _E=h((b7,EE)=>{var dE=L("stream").Stream;EE.exports=wU;function wU(t){return{ReadStream:e,WriteStream:n};function e(i,a){if(!(this instanceof e))return new e(i,a);dE.call(this);var s=this;this.path=i,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,a=a||{};for(var o=Object.keys(a),r=0,u=o.length;r<u;r++){var l=o[r];this[l]=a[l]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}t.open(this.path,this.flags,this.mode,function(c,p){if(c){s.emit("error",c),s.readable=!1;return}s.fd=p,s.emit("open",p),s._read()})}function n(i,a){if(!(this instanceof n))return new n(i,a);dE.call(this),this.path=i,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,a=a||{};for(var s=Object.keys(a),o=0,r=s.length;o<r;o++){var u=s[o];this[u]=a[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var hE=h((M7,SE)=>{"use strict";SE.exports=DU;var UU=Object.getPrototypeOf||function(t){return t.__proto__};function DU(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:UU(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}});var Qr=h((x7,Ll)=>{var ie=L("fs"),VU=pE(),BU=_E(),GU=hE(),ki=L("util"),ve,Fi;typeof Symbol=="function"&&typeof Symbol.for=="function"?(ve=Symbol.for("graceful-fs.queue"),Fi=Symbol.for("graceful-fs.previous")):(ve="___graceful-fs.queue",Fi="___graceful-fs.previous");function kU(){}function mE(t,e){Object.defineProperty(t,ve,{get:function(){return e}})}var Ar=kU;ki.debuglog?Ar=ki.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Ar=function(){var t=ki.format.apply(ki,arguments);t="GFS4: "+t.split(/\n/).join(`
|
4
|
+
GFS4: `),console.error(t)});ie[ve]||(TE=global[ve]||[],mE(ie,TE),ie.close=function(t){function e(n,i){return t.call(ie,n,function(a){a||vE(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,Fi,{value:t}),e}(ie.close),ie.closeSync=function(t){function e(n){t.apply(ie,arguments),vE()}return Object.defineProperty(e,Fi,{value:t}),e}(ie.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Ar(ie[ve]),L("assert").equal(ie[ve].length,0)}));var TE;global[ve]||mE(global,ie[ve]);Ll.exports=Ml(GU(ie));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ie.__patched&&(Ll.exports=Ml(ie),ie.__patched=!0);function Ml(t){VU(t),t.gracefulify=Ml,t.createReadStream=G,t.createWriteStream=F;var e=t.readFile;t.readFile=n;function n(x,B,w){return typeof B=="function"&&(w=B,B=null),W(x,B,w);function W(z,ne,oe,se){return e(z,ne,function(Z){Z&&(Z.code==="EMFILE"||Z.code==="ENFILE")?Jr([W,[z,ne,oe],Z,se||Date.now(),Date.now()]):typeof oe=="function"&&oe.apply(this,arguments)})}}var i=t.writeFile;t.writeFile=a;function a(x,B,w,W){return typeof w=="function"&&(W=w,w=null),z(x,B,w,W);function z(ne,oe,se,Z,Te){return i(ne,oe,se,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Jr([z,[ne,oe,se,Z],re,Te||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(x,B,w,W){return typeof w=="function"&&(W=w,w=null),z(x,B,w,W);function z(ne,oe,se,Z,Te){return s(ne,oe,se,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Jr([z,[ne,oe,se,Z],re,Te||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}var r=t.copyFile;r&&(t.copyFile=u);function u(x,B,w,W){return typeof w=="function"&&(W=w,w=0),z(x,B,w,W);function z(ne,oe,se,Z,Te){return r(ne,oe,se,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Jr([z,[ne,oe,se,Z],re,Te||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}var l=t.readdir;t.readdir=p;var c=/^v[0-5]\./;function p(x,B,w){typeof B=="function"&&(w=B,B=null);var W=c.test(process.version)?function(oe,se,Z,Te){return l(oe,z(oe,se,Z,Te))}:function(oe,se,Z,Te){return l(oe,se,z(oe,se,Z,Te))};return W(x,B,w);function z(ne,oe,se,Z){return function(Te,re){Te&&(Te.code==="EMFILE"||Te.code==="ENFILE")?Jr([W,[ne,oe,se],Te,Z||Date.now(),Date.now()]):(re&&re.sort&&re.sort(),typeof se=="function"&&se.call(this,Te,re))}}}if(process.version.substr(0,4)==="v0.8"){var _=BU(t);A=_.ReadStream,N=_.WriteStream}var f=t.ReadStream;f&&(A.prototype=Object.create(f.prototype),A.prototype.open=O);var S=t.WriteStream;S&&(N.prototype=Object.create(S.prototype),N.prototype.open=D),Object.defineProperty(t,"ReadStream",{get:function(){return A},set:function(x){A=x},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return N},set:function(x){N=x},enumerable:!0,configurable:!0});var v=A;Object.defineProperty(t,"FileReadStream",{get:function(){return v},set:function(x){v=x},enumerable:!0,configurable:!0});var T=N;Object.defineProperty(t,"FileWriteStream",{get:function(){return T},set:function(x){T=x},enumerable:!0,configurable:!0});function A(x,B){return this instanceof A?(f.apply(this,arguments),this):A.apply(Object.create(A.prototype),arguments)}function O(){var x=this;j(x.path,x.flags,x.mode,function(B,w){B?(x.autoClose&&x.destroy(),x.emit("error",B)):(x.fd=w,x.emit("open",w),x.read())})}function N(x,B){return this instanceof N?(S.apply(this,arguments),this):N.apply(Object.create(N.prototype),arguments)}function D(){var x=this;j(x.path,x.flags,x.mode,function(B,w){B?(x.destroy(),x.emit("error",B)):(x.fd=w,x.emit("open",w))})}function G(x,B){return new t.ReadStream(x,B)}function F(x,B){return new t.WriteStream(x,B)}var ae=t.open;t.open=j;function j(x,B,w,W){return typeof w=="function"&&(W=w,w=null),z(x,B,w,W);function z(ne,oe,se,Z,Te){return ae(ne,oe,se,function(re,N7){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Jr([z,[ne,oe,se,Z],re,Te||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}return t}function Jr(t){Ar("ENQUEUE",t[0].name,t[1]),ie[ve].push(t),xl()}var Hi;function vE(){for(var t=Date.now(),e=0;e<ie[ve].length;++e)ie[ve][e].length>2&&(ie[ve][e][3]=t,ie[ve][e][4]=t);xl()}function xl(){if(clearTimeout(Hi),Hi=void 0,ie[ve].length!==0){var t=ie[ve].shift(),e=t[0],n=t[1],i=t[2],a=t[3],s=t[4];if(a===void 0)Ar("RETRY",e.name,n),e.apply(null,n);else if(Date.now()-a>=6e4){Ar("TIMEOUT",e.name,n);var o=n.pop();typeof o=="function"&&o.call(null,i)}else{var r=Date.now()-s,u=Math.max(s-a,1),l=Math.min(u*1.2,100);r>=l?(Ar("RETRY",e.name,n),e.apply(null,n.concat([a]))):ie[ve].push(t)}Hi===void 0&&(Hi=setTimeout(xl,0))}}});var Le=h(Ct=>{"use strict";var yE=Ee().fromCallback,xe=Qr(),HU=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(t=>typeof xe[t]=="function");Object.assign(Ct,xe);HU.forEach(t=>{Ct[t]=yE(xe[t])});Ct.exists=function(t,e){return typeof e=="function"?xe.exists(t,e):new Promise(n=>xe.exists(t,n))};Ct.read=function(t,e,n,i,a,s){return typeof s=="function"?xe.read(t,e,n,i,a,s):new Promise((o,r)=>{xe.read(t,e,n,i,a,(u,l,c)=>{if(u)return r(u);o({bytesRead:l,buffer:c})})})};Ct.write=function(t,e,...n){return typeof n[n.length-1]=="function"?xe.write(t,e,...n):new Promise((i,a)=>{xe.write(t,e,...n,(s,o,r)=>{if(s)return a(s);i({bytesWritten:o,buffer:r})})})};Ct.readv=function(t,e,...n){return typeof n[n.length-1]=="function"?xe.readv(t,e,...n):new Promise((i,a)=>{xe.readv(t,e,...n,(s,o,r)=>{if(s)return a(s);i({bytesRead:o,buffers:r})})})};Ct.writev=function(t,e,...n){return typeof n[n.length-1]=="function"?xe.writev(t,e,...n):new Promise((i,a)=>{xe.writev(t,e,...n,(s,o,r)=>{if(s)return a(s);i({bytesWritten:o,buffers:r})})})};typeof xe.realpath.native=="function"?Ct.realpath.native=yE(xe.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var OE=h((I7,AE)=>{"use strict";var FU=L("path");AE.exports.checkPath=function(e){if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(FU.parse(e).root,""))){let i=new Error(`Path contains invalid characters: ${e}`);throw i.code="EINVAL",i}}});var PE=h((C7,Il)=>{"use strict";var gE=Le(),{checkPath:NE}=OE(),RE=t=>{let e={mode:511};return typeof t=="number"?t:{...e,...t}.mode};Il.exports.makeDir=async(t,e)=>(NE(t),gE.mkdir(t,{mode:RE(e),recursive:!0}));Il.exports.makeDirSync=(t,e)=>(NE(t),gE.mkdirSync(t,{mode:RE(e),recursive:!0}))});var ut=h((w7,bE)=>{"use strict";var YU=Ee().fromPromise,{makeDir:qU,makeDirSync:Cl}=PE(),wl=YU(qU);bE.exports={mkdirs:wl,mkdirsSync:Cl,mkdirp:wl,mkdirpSync:Cl,ensureDir:wl,ensureDirSync:Cl}});var qt=h((U7,xE)=>{"use strict";var jU=Ee().fromPromise,ME=Le();function $U(t){return ME.access(t).then(()=>!0).catch(()=>!1)}xE.exports={pathExists:jU($U),pathExistsSync:ME.existsSync}});var Ul=h((D7,LE)=>{"use strict";var Zr=Le(),KU=Ee().fromPromise;async function WU(t,e,n){let i=await Zr.open(t,"r+"),a=null;try{await Zr.futimes(i,e,n)}finally{try{await Zr.close(i)}catch(s){a=s}}if(a)throw a}function zU(t,e,n){let i=Zr.openSync(t,"r+");return Zr.futimesSync(i,e,n),Zr.closeSync(i)}LE.exports={utimesMillis:KU(WU),utimesMillisSync:zU}});var Or=h((V7,UE)=>{"use strict";var en=Le(),_e=L("path"),IE=Ee().fromPromise;function XU(t,e,n){let i=n.dereference?a=>en.stat(a,{bigint:!0}):a=>en.lstat(a,{bigint:!0});return Promise.all([i(t),i(e).catch(a=>{if(a.code==="ENOENT")return null;throw a})]).then(([a,s])=>({srcStat:a,destStat:s}))}function JU(t,e,n){let i,a=n.dereference?o=>en.statSync(o,{bigint:!0}):o=>en.lstatSync(o,{bigint:!0}),s=a(t);try{i=a(e)}catch(o){if(o.code==="ENOENT")return{srcStat:s,destStat:null};throw o}return{srcStat:s,destStat:i}}async function QU(t,e,n,i){let{srcStat:a,destStat:s}=await XU(t,e,i);if(s){if(oo(a,s)){let o=_e.basename(t),r=_e.basename(e);if(n==="move"&&o!==r&&o.toLowerCase()===r.toLowerCase())return{srcStat:a,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(a.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`);if(!a.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`)}if(a.isDirectory()&&Dl(t,e))throw new Error(Yi(t,e,n));return{srcStat:a,destStat:s}}function ZU(t,e,n,i){let{srcStat:a,destStat:s}=JU(t,e,i);if(s){if(oo(a,s)){let o=_e.basename(t),r=_e.basename(e);if(n==="move"&&o!==r&&o.toLowerCase()===r.toLowerCase())return{srcStat:a,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(a.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`);if(!a.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`)}if(a.isDirectory()&&Dl(t,e))throw new Error(Yi(t,e,n));return{srcStat:a,destStat:s}}async function CE(t,e,n,i){let a=_e.resolve(_e.dirname(t)),s=_e.resolve(_e.dirname(n));if(s===a||s===_e.parse(s).root)return;let o;try{o=await en.stat(s,{bigint:!0})}catch(r){if(r.code==="ENOENT")return;throw r}if(oo(e,o))throw new Error(Yi(t,n,i));return CE(t,e,s,i)}function wE(t,e,n,i){let a=_e.resolve(_e.dirname(t)),s=_e.resolve(_e.dirname(n));if(s===a||s===_e.parse(s).root)return;let o;try{o=en.statSync(s,{bigint:!0})}catch(r){if(r.code==="ENOENT")return;throw r}if(oo(e,o))throw new Error(Yi(t,n,i));return wE(t,e,s,i)}function oo(t,e){return e.ino&&e.dev&&e.ino===t.ino&&e.dev===t.dev}function Dl(t,e){let n=_e.resolve(t).split(_e.sep).filter(a=>a),i=_e.resolve(e).split(_e.sep).filter(a=>a);return n.every((a,s)=>i[s]===a)}function Yi(t,e,n){return`Cannot ${n} '${t}' to a subdirectory of itself, '${e}'.`}UE.exports={checkPaths:IE(QU),checkPathsSync:ZU,checkParentPaths:IE(CE),checkParentPathsSync:wE,isSrcSubdir:Dl,areIdentical:oo}});var kE=h((B7,GE)=>{"use strict";var Pe=Le(),io=L("path"),{mkdirs:eD}=ut(),{pathExists:tD}=qt(),{utimesMillis:rD}=Ul(),ao=Or();async function nD(t,e,n={}){typeof n=="function"&&(n={filter:n}),n.clobber="clobber"in n?!!n.clobber:!0,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
5
5
|
|
6
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001");let{srcStat:
|
6
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001");let{srcStat:i,destStat:a}=await ao.checkPaths(t,e,"copy",n);if(await ao.checkParentPaths(t,i,e,"copy"),!await VE(t,e,n))return;let o=io.dirname(e);await tD(o)||await eD(o),await BE(a,t,e,n)}async function VE(t,e,n){return n.filter?n.filter(t,e):!0}async function BE(t,e,n,i){let s=await(i.dereference?Pe.stat:Pe.lstat)(e);if(s.isDirectory())return sD(s,t,e,n,i);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return oD(s,t,e,n,i);if(s.isSymbolicLink())return uD(t,e,n,i);throw s.isSocket()?new Error(`Cannot copy a socket file: ${e}`):s.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}async function oD(t,e,n,i,a){if(!e)return DE(t,n,i,a);if(a.overwrite)return await Pe.unlink(i),DE(t,n,i,a);if(a.errorOnExist)throw new Error(`'${i}' already exists`)}async function DE(t,e,n,i){if(await Pe.copyFile(e,n),i.preserveTimestamps){iD(t.mode)&&await aD(n,t.mode);let a=await Pe.stat(e);await rD(n,a.atime,a.mtime)}return Pe.chmod(n,t.mode)}function iD(t){return(t&128)===0}function aD(t,e){return Pe.chmod(t,e|128)}async function sD(t,e,n,i,a){e||await Pe.mkdir(i);let s=await Pe.readdir(n);await Promise.all(s.map(async o=>{let r=io.join(n,o),u=io.join(i,o);if(!await VE(r,u,a))return;let{destStat:c}=await ao.checkPaths(r,u,"copy",a);return BE(c,r,u,a)})),e||await Pe.chmod(i,t.mode)}async function uD(t,e,n,i){let a=await Pe.readlink(e);if(i.dereference&&(a=io.resolve(process.cwd(),a)),!t)return Pe.symlink(a,n);let s=null;try{s=await Pe.readlink(n)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return Pe.symlink(a,n);throw o}if(i.dereference&&(s=io.resolve(process.cwd(),s)),ao.isSrcSubdir(a,s))throw new Error(`Cannot copy '${a}' to a subdirectory of itself, '${s}'.`);if(ao.isSrcSubdir(s,a))throw new Error(`Cannot overwrite '${s}' with '${a}'.`);return await Pe.unlink(n),Pe.symlink(a,n)}GE.exports=nD});var jE=h((G7,qE)=>{"use strict";var Ie=Qr(),so=L("path"),lD=ut().mkdirsSync,cD=Ul().utimesMillisSync,uo=Or();function fD(t,e,n){typeof n=="function"&&(n={filter:n}),n=n||{},n.clobber="clobber"in n?!!n.clobber:!0,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
7
7
|
|
8
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:
|
9
|
-
`,finalEOL:n=!0,replacer:o=null,spaces:a}={}){let u=n?e:"";return JSON.stringify(t,o,a).replace(/\n/g,e)+u}function AU(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t.replace(/^\uFEFF/,"")}Nm.exports={stringify:OU,stripBom:AU}});var Mm=y((Q7,wm)=>{var nn;try{nn=en()}catch{nn=M("fs")}var qo=he(),{stringify:Rm,stripBom:Pm}=Go();async function bU(t,e={}){typeof e=="string"&&(e={encoding:e});let n=e.fs||nn,o="throws"in e?e.throws:!0,a=await qo.fromCallback(n.readFile)(t,e);a=Pm(a);let u;try{u=JSON.parse(a,e?e.reviver:null)}catch(i){if(o)throw i.message=`${t}: ${i.message}`,i;return null}return u}var xU=qo.fromPromise(bU);function NU(t,e={}){typeof e=="string"&&(e={encoding:e});let n=e.fs||nn,o="throws"in e?e.throws:!0;try{let a=n.readFileSync(t,e);return a=Pm(a),JSON.parse(a,e.reviver)}catch(a){if(o)throw a.message=`${t}: ${a.message}`,a;return null}}async function RU(t,e,n={}){let o=n.fs||nn,a=Rm(e,n);await qo.fromCallback(o.writeFile)(t,a,n)}var PU=qo.fromPromise(RU);function wU(t,e,n={}){let o=n.fs||nn,a=Rm(e,n);return o.writeFileSync(t,a,n)}var MU={readFile:xU,readFileSync:NU,writeFile:PU,writeFileSync:wU};wm.exports=MU});var Lm=y((Z7,Im)=>{"use strict";var Fo=Mm();Im.exports={readJson:Fo.readFile,readJsonSync:Fo.readFileSync,writeJson:Fo.writeFile,writeJsonSync:Fo.writeFileSync}});var Ho=y((eJ,Dm)=>{"use strict";var IU=he().fromPromise,El=Pe(),Cm=M("path"),Um=ut(),LU=Kt().pathExists;async function CU(t,e,n="utf-8"){let o=Cm.dirname(t);return await LU(o)||await Um.mkdirs(o),El.writeFile(t,e,n)}function UU(t,...e){let n=Cm.dirname(t);El.existsSync(n)||Um.mkdirsSync(n),El.writeFileSync(t,...e)}Dm.exports={outputFile:IU(CU),outputFileSync:UU}});var km=y((tJ,Vm)=>{"use strict";var{stringify:DU}=Go(),{outputFile:VU}=Ho();async function kU(t,e,n={}){let o=DU(e,n);await VU(t,o,n)}Vm.exports=kU});var Gm=y((rJ,Bm)=>{"use strict";var{stringify:BU}=Go(),{outputFileSync:GU}=Ho();function qU(t,e,n){let o=BU(e,n);GU(t,o,n)}Bm.exports=qU});var Fm=y((nJ,qm)=>{"use strict";var FU=he().fromPromise,Me=Lm();Me.outputJson=FU(km());Me.outputJsonSync=Gm();Me.outputJSON=Me.outputJson;Me.outputJSONSync=Me.outputJsonSync;Me.writeJSON=Me.writeJson;Me.writeJSONSync=Me.writeJsonSync;Me.readJSON=Me.readJson;Me.readJSONSync=Me.readJsonSync;qm.exports=Me});var Km=y((iJ,$m)=>{"use strict";var HU=Pe(),Hm=M("path"),{copy:jU}=Bo(),{remove:Ym}=ni(),{mkdirp:YU}=ut(),{pathExists:$U}=Kt(),jm=Tr();async function KU(t,e,n={}){let o=n.overwrite||n.clobber||!1,{srcStat:a,isChangingCase:u=!1}=await jm.checkPaths(t,e,"move",n);await jm.checkParentPaths(t,a,e,"move");let i=Hm.dirname(e);return Hm.parse(i).root!==i&&await YU(i),zU(t,e,o,u)}async function zU(t,e,n,o){if(!o){if(n)await Ym(e);else if(await $U(e))throw new Error("dest already exists.")}try{await HU.rename(t,e)}catch(a){if(a.code!=="EXDEV")throw a;await WU(t,e,n)}}async function WU(t,e,n){return await jU(t,e,{overwrite:n,errorOnExist:!0,preserveTimestamps:!0}),Ym(t)}$m.exports=KU});var Qm=y((oJ,Jm)=>{"use strict";var Wm=en(),gl=M("path"),XU=Bo().copySync,Xm=ni().removeSync,JU=ut().mkdirpSync,zm=Tr();function QU(t,e,n){n=n||{};let o=n.overwrite||n.clobber||!1,{srcStat:a,isChangingCase:u=!1}=zm.checkPathsSync(t,e,"move",n);return zm.checkParentPathsSync(t,a,e,"move"),ZU(e)||JU(gl.dirname(e)),eD(t,e,o,u)}function ZU(t){let e=gl.dirname(t);return gl.parse(e).root===e}function eD(t,e,n,o){if(o)return Tl(t,e,n);if(n)return Xm(e),Tl(t,e,n);if(Wm.existsSync(e))throw new Error("dest already exists.");return Tl(t,e,n)}function Tl(t,e,n){try{Wm.renameSync(t,e)}catch(o){if(o.code!=="EXDEV")throw o;return tD(t,e,n)}}function tD(t,e,n){return XU(t,e,{overwrite:n,errorOnExist:!0,preserveTimestamps:!0}),Xm(t)}Jm.exports=QU});var ev=y((aJ,Zm)=>{"use strict";var rD=he().fromPromise;Zm.exports={move:rD(Km()),moveSync:Qm()}});var Ol=y((uJ,tv)=>{"use strict";tv.exports={...Pe(),...Bo(),...em(),...xm(),...Fm(),...ut(),...ev(),...Ho(),...Kt(),...ni()}});var cv=y((sJ,lv)=>{"use strict";function nD(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var Al=nD(Z1());function iD(t){return typeof t=="object"&&t!==null}function oD(t){return iD(t)&&typeof t.length=="number"}function ui(t){return Array.isArray(t)?t:t===void 0?[]:oD(t)||t instanceof Set?Array.from(t):[t]}function aD(t){return typeof t=="object"&&t!==null}function uD(t){return aD(t)&&typeof t.length=="number"}function rv(t){return Array.isArray(t)?t:t===void 0?[]:uD(t)?Array.prototype.slice.call(t):[t]}function av(t,e){let n=[],o=rv(arguments);return o.splice(0,2),rv(t).forEach((a,u)=>{let i=[];o.forEach(r=>{typeof r=="function"?i=i.concat(r(a)):i.push(r)}),e(a)&&n.push({index:u,replaceWithValue:i})}),n.reverse().forEach(a=>{let u=[a.index,1].concat(a.replaceWithValue);t.splice.apply(t,u)}),t}var pe={short:/^-([^\d-])$/,long:/^--(\S+)/,combinedShort:/^-[^\d-]{2,}$/,optEquals:/^(--\S+?)=(.*)/},bl=class extends Array{load(e){if(this.clear(),e&&e!==process.argv)e=ui(e);else{e=process.argv.slice(0);let n=process.execArgv.some(fD)?1:2;e.splice(0,n)}e.forEach(n=>this.push(String(n)))}clear(){this.length=0}expandOptionEqualsNotation(){if(this.some(e=>pe.optEquals.test(e))){let e=[];this.forEach(n=>{let o=n.match(pe.optEquals);o?e.push(o[1],o[2]):e.push(n)}),this.clear(),this.load(e)}}expandGetoptNotation(){this.hasCombinedShortOptions()&&av(this,pe.combinedShort,sD)}hasCombinedShortOptions(){return this.some(e=>pe.combinedShort.test(e))}static from(e){let n=new this;return n.load(e),n}};function sD(t){return t=t.slice(1),t.split("").map(e=>"-"+e)}function Pl(t){return pe.optEquals.test(t)}function wl(t){return(pe.short.test(t)||pe.long.test(t))&&!pe.optEquals.test(t)}function lD(t){return pe.long.test(t)&&!Pl(t)}function nv(t){return pe.short.test(t)?t.match(pe.short)[1]:lD(t)?t.match(pe.long)[1]:Pl(t)?t.match(pe.optEquals)[1].replace(/^--/,""):null}function cD(t){return!(wl(t)||pe.combinedShort.test(t)||pe.optEquals.test(t))}function fD(t){return["--eval","-e"].indexOf(t)>-1||t.startsWith("--eval=")}function pD(t){return!isNaN(parseFloat(t))&&isFinite(t)}function dD(t){return t!==null&&typeof t=="object"&&t.constructor===Object}function hD(t){return uv(t)&&typeof t.length=="number"}function uv(t){return typeof t=="object"&&t!==null}function Ml(t){return typeof t<"u"}function mD(t){return typeof t=="string"}function vD(t){return typeof t=="boolean"}function sv(t){return typeof t=="function"}function yD(t){return sv(t)?/^class /.test(Function.prototype.toString.call(t)):!1}function _D(t){if(t===null)return!0;switch(typeof t){case"string":case"number":case"symbol":case"undefined":case"boolean":return!0;default:return!1}}function SD(t){if(t){let e=Ml(Promise)&&t instanceof Promise,n=t.then&&typeof t.then=="function";return!!(e||n)}else return!1}function ED(t){return t===null||!Ml(t)?!1:typeof t[Symbol.iterator]=="function"||typeof t[Symbol.asyncIterator]=="function"}var Ye={isNumber:pD,isString:mD,isBoolean:vD,isPlainObject:dD,isArrayLike:hD,isObject:uv,isDefined:Ml,isFunction:sv,isClass:yD,isPrimitive:_D,isPromise:SD,isIterable:ED},oi=class{constructor(e){this.name=e.name,this.type=e.type||String,this.alias=e.alias,this.multiple=e.multiple,this.lazyMultiple=e.lazyMultiple,this.defaultOption=e.defaultOption,this.defaultValue=e.defaultValue,this.group=e.group;for(let n in e)this[n]||(this[n]=e[n])}isBoolean(){return this.type===Boolean||Ye.isFunction(this.type)&&this.type.name==="Boolean"}isMultiple(){return this.multiple||this.lazyMultiple}static create(e){return new this(e)}},ai=class extends Array{validate(e){this.some(m=>!m.name)&&Lt("INVALID_DEFINITIONS","Invalid option definitions: the `name` property is required on each definition"),this.some(m=>m.type&&typeof m.type!="function")&&Lt("INVALID_DEFINITIONS","Invalid option definitions: the `type` property must be a setter fuction (default: `Boolean`)");let a;this.some(m=>(a=m,Ye.isDefined(m.alias)&&Ye.isNumber(m.alias)))&&Lt("INVALID_DEFINITIONS","Invalid option definition: to avoid ambiguity an alias cannot be numeric [--"+a.name+" alias is -"+a.alias+"]"),this.some(m=>(a=m,Ye.isDefined(m.alias)&&m.alias.length!==1))&&Lt("INVALID_DEFINITIONS","Invalid option definition: an alias must be a single character"),this.some(m=>(a=m,m.alias==="-"))&&Lt("INVALID_DEFINITIONS",'Invalid option definition: an alias cannot be "-"'),ov(this.map(m=>e?m.name.toLowerCase():m.name))&&Lt("INVALID_DEFINITIONS","Two or more option definitions have the same name"),ov(this.map(m=>e&&Ye.isDefined(m.alias)?m.alias.toLowerCase():m.alias))&&Lt("INVALID_DEFINITIONS","Two or more option definitions have the same alias"),this.filter(m=>m.defaultOption===!0).length>1&&Lt("INVALID_DEFINITIONS","Only one option definition can be the defaultOption"),this.some(m=>(a=m,m.isBoolean()&&m.defaultOption))&&Lt("INVALID_DEFINITIONS",`A boolean option ["${a.name}"] can not also be the defaultOption.`)}get(e,n){if(wl(e))if(pe.short.test(e)){let o=nv(e);if(n){let a=o.toLowerCase();return this.find(u=>Ye.isDefined(u.alias)&&u.alias.toLowerCase()===a)}else return this.find(a=>a.alias===o)}else{let o=nv(e);if(n){let a=o.toLowerCase();return this.find(u=>u.name.toLowerCase()===a)}else return this.find(a=>a.name===o)}else return this.find(o=>o.name===e)}getDefault(){return this.find(e=>e.defaultOption===!0)}isGrouped(){return this.some(e=>e.group)}whereGrouped(){return this.filter(iv)}whereNotGrouped(){return this.filter(e=>!iv(e))}whereDefaultValueSet(){return this.filter(e=>Ye.isDefined(e.defaultValue))}static from(e,n){if(e instanceof this)return e;let o=super.from(ui(e),a=>oi.create(a));return o.validate(n),o}};function Lt(t,e){let n=new Error(e);throw n.name=t,n}function iv(t){return ui(t.group).some(e=>e)}function ov(t){let e={};for(let n=0;n<t.length;n++){let o=t[n];if(e[o])return!0;Ye.isDefined(o)&&(e[o]=!0)}}var xl=class{constructor(e,n){this.options=Object.assign({},n),this.definitions=ai.from(e,this.options.caseInsensitive),this.argv=bl.from(this.options.argv),this.argv.hasCombinedShortOptions()&&av(this.argv,pe.combinedShort.test.bind(pe.combinedShort),o=>(o=o.slice(1),o.split("").map(a=>({origArg:`-${o}`,arg:"-"+a}))))}*[Symbol.iterator](){let e=this.definitions,n,o,a,u,i=!1,r=!1,s;for(let l of this.argv){if(Ye.isPlainObject(l)&&(s=l.origArg,l=l.arg),r&&this.options.stopAtFirstUnknown){yield{event:"unknown_value",arg:l,name:"_unknown",value:void 0};continue}if(wl(l))n=e.get(l,this.options.caseInsensitive),o=void 0,n?(o=n.isBoolean()?!0:null,u="set"):u="unknown_option";else if(Pl(l)){let p=l.match(pe.optEquals);n=e.get(p[1],this.options.caseInsensitive),n?n.isBoolean()?(yield{event:"unknown_value",arg:l,name:"_unknown",value:o,def:n},u="set",o=!0):(u="set",o=p[2]):u="unknown_option"}else cD(l)&&(n?(o=l,u="set"):(n=this.definitions.getDefault(),n&&!i?(o=l,u="set"):(u="unknown_value",n=void 0)));a=n?n.name:"_unknown";let c={event:u,arg:l,name:a,value:o,def:n};s&&(c.subArg=l,c.arg=s),yield c,a==="_unknown"&&(r=!0),n&&n.defaultOption&&!n.isMultiple()&&u==="set"&&(i=!0),n&&n.isBoolean()&&(n=void 0),n&&!n.multiple&&Ye.isDefined(o)&&o!==null&&(n=void 0),o=void 0,u=void 0,a=void 0,s=void 0}}},gr=new WeakMap,on=class{constructor(e){this.definition=new oi(e),this.state=null,this.resetToDefault()}get(){return gr.get(this)}set(e){this._set(e,"set")}_set(e,n){let o=this.definition;if(o.isMultiple()){if(e!=null){let a=this.get();this.state==="default"&&(a.length=0),a.push(o.type(e)),this.state=n}}else if(!o.isMultiple()&&this.state==="set"){let a=new Error(`Singular option already set [${this.definition.name}=${this.get()}]`);throw a.name="ALREADY_SET",a.value=e,a.optionName=o.name,a}else e==null?gr.set(this,e):(gr.set(this,o.type(e)),this.state=n)}resetToDefault(){Ye.isDefined(this.definition.defaultValue)?this.definition.isMultiple()?gr.set(this,ui(this.definition.defaultValue).slice()):gr.set(this,this.definition.defaultValue):this.definition.isMultiple()?gr.set(this,[]):gr.set(this,null),this.state="default"}static create(e){return e=new oi(e),e.isBoolean()?Nl.create(e):new this(e)}},Nl=class extends on{set(e){super.set(!0)}static create(e){return new this(e)}},jo=class extends Map{constructor(e){super(),this.definitions=ai.from(e),this.set("_unknown",on.create({name:"_unknown",multiple:!0}));for(let n of this.definitions.whereDefaultValueSet())this.set(n.name,on.create(n))}toObject(e){e=e||{};let n={};for(let o of this){let a=e.camelCase&&o[0]!=="_unknown"?Al(o[0]):o[0],u=o[1];a==="_unknown"&&!u.get().length||(n[a]=u.get())}return e.skipUnknown&&delete n._unknown,n}},Rl=class extends jo{toObject(e){let n=super.toObject({skipUnknown:e.skipUnknown}),o=super.toObject(e),a=o._unknown;delete o._unknown;let u={_all:o};return a&&a.length&&(u._unknown=a),this.definitions.whereGrouped().forEach(i=>{let r=e.camelCase?Al(i.name):i.name,s=n[i.name];for(let l of ui(i.group))u[l]=u[l]||{},Ye.isDefined(s)&&(u[l][r]=s)}),this.definitions.whereNotGrouped().forEach(i=>{let r=e.camelCase?Al(i.name):i.name,s=n[i.name];Ye.isDefined(s)&&(u._none||(u._none={}),u._none[r]=s)}),u}};function TD(t,e){e=e||{},e.stopAtFirstUnknown&&(e.partial=!0),t=ai.from(t,e.caseInsensitive);let n=new xl(t,{argv:e.argv,stopAtFirstUnknown:e.stopAtFirstUnknown,caseInsensitive:e.caseInsensitive}),o=t.isGrouped()?Rl:jo,a=new o(t);for(let u of n){let i=u.subArg||u.arg;if(!e.partial){if(u.event==="unknown_value"){let s=new Error(`Unknown value: ${i}`);throw s.name="UNKNOWN_VALUE",s.value=i,s}else if(u.event==="unknown_option"){let s=new Error(`Unknown option: ${i}`);throw s.name="UNKNOWN_OPTION",s.optionName=i,s}}let r;a.has(u.name)?r=a.get(u.name):(r=on.create(u.def),a.set(u.name,r)),u.name==="_unknown"?r.set(i):r.set(u.value)}return a.toObject({skipUnknown:!e.partial,camelCase:e.camelCase})}lv.exports=TD});function ce(t){for(var e={},n=t.length,o=0;o<n;o++){var a=t[o];a&&(e[String(a).toUpperCase().replace(/[-.]/g,"_")]=a)}return e}var Il=E(()=>{});var fv,pv,dv,hv,mv,vv,yv,_v,Sv,Ev,Tv,gv,Ov,Av,bv,xv,Nv,Rv,Pv,wv,Mv,Iv,Lv,Cv,Uv,Dv,Vv,kv,Bv,Gv,qv,Fv,Hv,jv,Yv,$v,Kv,zv,Wv,Xv,Jv,Qv,Zv,ey,ty,ry,ny,iy,oy,ay,uy,sy,ly,cy,fy,py,dy,hy,my,vy,yy,_y,Sy,Ey,Ty,gy,Oy,Ay,by,xy,Ny,Ry,Py,wy,My,Iy,Ly,Cy,Uy,Dy,Vy,ky,By,Gy,qy,Fy,Hy,jy,Yy,$y,Ky,zy,Wy,Xy,Jy,Qy,Zy,e_,t_,r_,n_,i_,o_,a_,u_,s_,l_,c_,f_,p_,d_,h_,m_,v_,y_,__,S_,E_,T_,g_,O_,A_,b_,x_,N_,R_,P_,w_,gD,OD,AD,bD,xD,ND,RD,PD,wD,MD,ID,LD,CD,UD,DD,VD,kD,BD,GD,qD,FD,si,li,Ll,HD,jD,YD,$D,KD,zD,WD,XD,JD,QD,ZD,e2,t2,r2,n2,i2,o2,a2,u2,s2,l2,c2,f2,p2,d2,h2,m2,v2,y2,_2,S2,E2,T2,g2,O2,A2,b2,x2,N2,R2,P2,w2,M2,I2,L2,C2,U2,D2,V2,k2,B2,G2,q2,F2,H2,j2,Y2,$2,K2,z2,W2,X2,J2,Q2,Z2,eV,tV,rV,nV,iV,oV,aV,uV,sV,lV,cV,fV,pV,dV,hV,mV,vV,yV,_V,SV,EV,TV,gV,OV,AV,bV,xV,NV,RV,PV,wV,MV,IV,LV,CV,UV,DV,VV,kV,BV,M_,I_,L_,C_,U_,D_,V_,k_,B_,G_,q_,F_,H_,j_,Y_,$_,K_,z_,W_,X_,J_,Q_,Z_,eS,tS,rS,nS,iS,oS,aS,uS,sS,lS,cS,fS,pS,dS,hS,mS,vS,yS,_S,SS,ES,TS,gS,OS,GV,qV,FV,HV,jV,YV,$V,KV,zV,WV,XV,JV,QV,ZV,ek,tk,rk,nk,ik,ok,ak,uk,sk,lk,ck,fk,pk,dk,hk,mk,vk,yk,_k,Sk,Ek,Tk,gk,Ok,Ak,bk,xk,Nk,Rk,Pk,wk,Mk,Ik,Lk,AS,bS,xS,NS,RS,PS,wS,MS,IS,LS,CS,Ck,Uk,Dk,Vk,kk,Bk,Gk,qk,Fk,Hk,jk,Yk,US,DS,VS,kS,BS,$k,Kk,zk,Wk,Xk,Jk,GS,qS,FS,Qk,Zk,eB,tB,HS,jS,YS,$S,rB,nB,iB,oB,aB,KS,zS,WS,XS,JS,QS,ZS,uB,sB,lB,cB,fB,pB,dB,hB,eE,tE,rE,nE,iE,mB,vB,yB,_B,SB,EB,oE,aE,uE,sE,lE,cE,fE,pE,dE,hE,mE,vE,yE,_E,SE,EE,TE,gE,OE,AE,bE,TB,gB,OB,AB,bB,xB,NB,RB,PB,wB,MB,IB,LB,CB,UB,DB,VB,kB,BB,GB,qB,FB,xE,NE,RE,PE,wE,HB,jB,YB,$B,KB,zB,ME,IE,WB,XB,JB,LE,CE,QB,ZB,e3,UE,DE,VE,kE,BE,GE,qE,FE,HE,jE,YE,$E,KE,zE,WE,XE,JE,t3,r3,n3,i3,o3,a3,u3,s3,l3,c3,f3,p3,d3,h3,m3,v3,y3,_3,QE,ZE,S3,E3,T3,eT=E(()=>{Il();fv="aws.lambda.invoked_arn",pv="db.system",dv="db.connection_string",hv="db.user",mv="db.jdbc.driver_classname",vv="db.name",yv="db.statement",_v="db.operation",Sv="db.mssql.instance_name",Ev="db.cassandra.keyspace",Tv="db.cassandra.page_size",gv="db.cassandra.consistency_level",Ov="db.cassandra.table",Av="db.cassandra.idempotence",bv="db.cassandra.speculative_execution_count",xv="db.cassandra.coordinator.id",Nv="db.cassandra.coordinator.dc",Rv="db.hbase.namespace",Pv="db.redis.database_index",wv="db.mongodb.collection",Mv="db.sql.table",Iv="exception.type",Lv="exception.message",Cv="exception.stacktrace",Uv="exception.escaped",Dv="faas.trigger",Vv="faas.execution",kv="faas.document.collection",Bv="faas.document.operation",Gv="faas.document.time",qv="faas.document.name",Fv="faas.time",Hv="faas.cron",jv="faas.coldstart",Yv="faas.invoked_name",$v="faas.invoked_provider",Kv="faas.invoked_region",zv="net.transport",Wv="net.peer.ip",Xv="net.peer.port",Jv="net.peer.name",Qv="net.host.ip",Zv="net.host.port",ey="net.host.name",ty="net.host.connection.type",ry="net.host.connection.subtype",ny="net.host.carrier.name",iy="net.host.carrier.mcc",oy="net.host.carrier.mnc",ay="net.host.carrier.icc",uy="peer.service",sy="enduser.id",ly="enduser.role",cy="enduser.scope",fy="thread.id",py="thread.name",dy="code.function",hy="code.namespace",my="code.filepath",vy="code.lineno",yy="http.method",_y="http.url",Sy="http.target",Ey="http.host",Ty="http.scheme",gy="http.status_code",Oy="http.flavor",Ay="http.user_agent",by="http.request_content_length",xy="http.request_content_length_uncompressed",Ny="http.response_content_length",Ry="http.response_content_length_uncompressed",Py="http.server_name",wy="http.route",My="http.client_ip",Iy="aws.dynamodb.table_names",Ly="aws.dynamodb.consumed_capacity",Cy="aws.dynamodb.item_collection_metrics",Uy="aws.dynamodb.provisioned_read_capacity",Dy="aws.dynamodb.provisioned_write_capacity",Vy="aws.dynamodb.consistent_read",ky="aws.dynamodb.projection",By="aws.dynamodb.limit",Gy="aws.dynamodb.attributes_to_get",qy="aws.dynamodb.index_name",Fy="aws.dynamodb.select",Hy="aws.dynamodb.global_secondary_indexes",jy="aws.dynamodb.local_secondary_indexes",Yy="aws.dynamodb.exclusive_start_table",$y="aws.dynamodb.table_count",Ky="aws.dynamodb.scan_forward",zy="aws.dynamodb.segment",Wy="aws.dynamodb.total_segments",Xy="aws.dynamodb.count",Jy="aws.dynamodb.scanned_count",Qy="aws.dynamodb.attribute_definitions",Zy="aws.dynamodb.global_secondary_index_updates",e_="messaging.system",t_="messaging.destination",r_="messaging.destination_kind",n_="messaging.temp_destination",i_="messaging.protocol",o_="messaging.protocol_version",a_="messaging.url",u_="messaging.message_id",s_="messaging.conversation_id",l_="messaging.message_payload_size_bytes",c_="messaging.message_payload_compressed_size_bytes",f_="messaging.operation",p_="messaging.consumer_id",d_="messaging.rabbitmq.routing_key",h_="messaging.kafka.message_key",m_="messaging.kafka.consumer_group",v_="messaging.kafka.client_id",y_="messaging.kafka.partition",__="messaging.kafka.tombstone",S_="rpc.system",E_="rpc.service",T_="rpc.method",g_="rpc.grpc.status_code",O_="rpc.jsonrpc.version",A_="rpc.jsonrpc.request_id",b_="rpc.jsonrpc.error_code",x_="rpc.jsonrpc.error_message",N_="message.type",R_="message.id",P_="message.compressed_size",w_="message.uncompressed_size",gD=fv,OD=pv,AD=dv,bD=hv,xD=mv,ND=vv,RD=yv,PD=_v,wD=Sv,MD=Ev,ID=Tv,LD=gv,CD=Ov,UD=Av,DD=bv,VD=xv,kD=Nv,BD=Rv,GD=Pv,qD=wv,FD=Mv,si=Iv,li=Lv,Ll=Cv,HD=Uv,jD=Dv,YD=Vv,$D=kv,KD=Bv,zD=Gv,WD=qv,XD=Fv,JD=Hv,QD=jv,ZD=Yv,e2=$v,t2=Kv,r2=zv,n2=Wv,i2=Xv,o2=Jv,a2=Qv,u2=Zv,s2=ey,l2=ty,c2=ry,f2=ny,p2=iy,d2=oy,h2=ay,m2=uy,v2=sy,y2=ly,_2=cy,S2=fy,E2=py,T2=dy,g2=hy,O2=my,A2=vy,b2=yy,x2=_y,N2=Sy,R2=Ey,P2=Ty,w2=gy,M2=Oy,I2=Ay,L2=by,C2=xy,U2=Ny,D2=Ry,V2=Py,k2=wy,B2=My,G2=Iy,q2=Ly,F2=Cy,H2=Uy,j2=Dy,Y2=Vy,$2=ky,K2=By,z2=Gy,W2=qy,X2=Fy,J2=Hy,Q2=jy,Z2=Yy,eV=$y,tV=Ky,rV=zy,nV=Wy,iV=Xy,oV=Jy,aV=Qy,uV=Zy,sV=e_,lV=t_,cV=r_,fV=n_,pV=i_,dV=o_,hV=a_,mV=u_,vV=s_,yV=l_,_V=c_,SV=f_,EV=p_,TV=d_,gV=h_,OV=m_,AV=v_,bV=y_,xV=__,NV=S_,RV=E_,PV=T_,wV=g_,MV=O_,IV=A_,LV=b_,CV=x_,UV=N_,DV=R_,VV=P_,kV=w_,BV=ce([fv,pv,dv,hv,mv,vv,yv,_v,Sv,Ev,Tv,gv,Ov,Av,bv,xv,Nv,Rv,Pv,wv,Mv,Iv,Lv,Cv,Uv,Dv,Vv,kv,Bv,Gv,qv,Fv,Hv,jv,Yv,$v,Kv,zv,Wv,Xv,Jv,Qv,Zv,ey,ty,ry,ny,iy,oy,ay,uy,sy,ly,cy,fy,py,dy,hy,my,vy,yy,_y,Sy,Ey,Ty,gy,Oy,Ay,by,xy,Ny,Ry,Py,wy,My,Iy,Ly,Cy,Uy,Dy,Vy,ky,By,Gy,qy,Fy,Hy,jy,Yy,$y,Ky,zy,Wy,Xy,Jy,Qy,Zy,e_,t_,r_,n_,i_,o_,a_,u_,s_,l_,c_,f_,p_,d_,h_,m_,v_,y_,__,S_,E_,T_,g_,O_,A_,b_,x_,N_,R_,P_,w_]),M_="other_sql",I_="mssql",L_="mysql",C_="oracle",U_="db2",D_="postgresql",V_="redshift",k_="hive",B_="cloudscape",G_="hsqldb",q_="progress",F_="maxdb",H_="hanadb",j_="ingres",Y_="firstsql",$_="edb",K_="cache",z_="adabas",W_="firebird",X_="derby",J_="filemaker",Q_="informix",Z_="instantdb",eS="interbase",tS="mariadb",rS="netezza",nS="pervasive",iS="pointbase",oS="sqlite",aS="sybase",uS="teradata",sS="vertica",lS="h2",cS="coldfusion",fS="cassandra",pS="hbase",dS="mongodb",hS="redis",mS="couchbase",vS="couchdb",yS="cosmosdb",_S="dynamodb",SS="neo4j",ES="geode",TS="elasticsearch",gS="memcached",OS="cockroachdb",GV=M_,qV=I_,FV=L_,HV=C_,jV=U_,YV=D_,$V=V_,KV=k_,zV=B_,WV=G_,XV=q_,JV=F_,QV=H_,ZV=j_,ek=Y_,tk=$_,rk=K_,nk=z_,ik=W_,ok=X_,ak=J_,uk=Q_,sk=Z_,lk=eS,ck=tS,fk=rS,pk=nS,dk=iS,hk=oS,mk=aS,vk=uS,yk=sS,_k=lS,Sk=cS,Ek=fS,Tk=pS,gk=dS,Ok=hS,Ak=mS,bk=vS,xk=yS,Nk=_S,Rk=SS,Pk=ES,wk=TS,Mk=gS,Ik=OS,Lk=ce([M_,I_,L_,C_,U_,D_,V_,k_,B_,G_,q_,F_,H_,j_,Y_,$_,K_,z_,W_,X_,J_,Q_,Z_,eS,tS,rS,nS,iS,oS,aS,uS,sS,lS,cS,fS,pS,dS,hS,mS,vS,yS,_S,SS,ES,TS,gS,OS]),AS="all",bS="each_quorum",xS="quorum",NS="local_quorum",RS="one",PS="two",wS="three",MS="local_one",IS="any",LS="serial",CS="local_serial",Ck=AS,Uk=bS,Dk=xS,Vk=NS,kk=RS,Bk=PS,Gk=wS,qk=MS,Fk=IS,Hk=LS,jk=CS,Yk=ce([AS,bS,xS,NS,RS,PS,wS,MS,IS,LS,CS]),US="datasource",DS="http",VS="pubsub",kS="timer",BS="other",$k=US,Kk=DS,zk=VS,Wk=kS,Xk=BS,Jk=ce([US,DS,VS,kS,BS]),GS="insert",qS="edit",FS="delete",Qk=GS,Zk=qS,eB=FS,tB=ce([GS,qS,FS]),HS="alibaba_cloud",jS="aws",YS="azure",$S="gcp",rB=HS,nB=jS,iB=YS,oB=$S,aB=ce([HS,jS,YS,$S]),KS="ip_tcp",zS="ip_udp",WS="ip",XS="unix",JS="pipe",QS="inproc",ZS="other",uB=KS,sB=zS,lB=WS,cB=XS,fB=JS,pB=QS,dB=ZS,hB=ce([KS,zS,WS,XS,JS,QS,ZS]),eE="wifi",tE="wired",rE="cell",nE="unavailable",iE="unknown",mB=eE,vB=tE,yB=rE,_B=nE,SB=iE,EB=ce([eE,tE,rE,nE,iE]),oE="gprs",aE="edge",uE="umts",sE="cdma",lE="evdo_0",cE="evdo_a",fE="cdma2000_1xrtt",pE="hsdpa",dE="hsupa",hE="hspa",mE="iden",vE="evdo_b",yE="lte",_E="ehrpd",SE="hspap",EE="gsm",TE="td_scdma",gE="iwlan",OE="nr",AE="nrnsa",bE="lte_ca",TB=oE,gB=aE,OB=uE,AB=sE,bB=lE,xB=cE,NB=fE,RB=pE,PB=dE,wB=hE,MB=mE,IB=vE,LB=yE,CB=_E,UB=SE,DB=EE,VB=TE,kB=gE,BB=OE,GB=AE,qB=bE,FB=ce([oE,aE,uE,sE,lE,cE,fE,pE,dE,hE,mE,vE,yE,_E,SE,EE,TE,gE,OE,AE,bE]),xE="1.0",NE="1.1",RE="2.0",PE="SPDY",wE="QUIC",HB=xE,jB=NE,YB=RE,$B=PE,KB=wE,zB={HTTP_1_0:xE,HTTP_1_1:NE,HTTP_2_0:RE,SPDY:PE,QUIC:wE},ME="queue",IE="topic",WB=ME,XB=IE,JB=ce([ME,IE]),LE="receive",CE="process",QB=LE,ZB=CE,e3=ce([LE,CE]),UE=0,DE=1,VE=2,kE=3,BE=4,GE=5,qE=6,FE=7,HE=8,jE=9,YE=10,$E=11,KE=12,zE=13,WE=14,XE=15,JE=16,t3=UE,r3=DE,n3=VE,i3=kE,o3=BE,a3=GE,u3=qE,s3=FE,l3=HE,c3=jE,f3=YE,p3=$E,d3=KE,h3=zE,m3=WE,v3=XE,y3=JE,_3={OK:UE,CANCELLED:DE,UNKNOWN:VE,INVALID_ARGUMENT:kE,DEADLINE_EXCEEDED:BE,NOT_FOUND:GE,ALREADY_EXISTS:qE,PERMISSION_DENIED:FE,RESOURCE_EXHAUSTED:HE,FAILED_PRECONDITION:jE,ABORTED:YE,OUT_OF_RANGE:$E,UNIMPLEMENTED:KE,INTERNAL:zE,UNAVAILABLE:WE,DATA_LOSS:XE,UNAUTHENTICATED:JE},QE="SENT",ZE="RECEIVED",S3=QE,E3=ZE,T3=ce([QE,ZE])});var tT=E(()=>{eT()});var rT,nT,iT,oT,aT,uT,sT,lT,cT,fT,pT,dT,hT,mT,vT,yT,_T,ST,ET,TT,gT,OT,AT,bT,xT,NT,RT,PT,wT,MT,IT,LT,CT,UT,DT,VT,kT,BT,GT,qT,FT,HT,jT,YT,$T,KT,zT,WT,XT,JT,QT,ZT,eg,tg,rg,ng,ig,og,ag,ug,sg,lg,cg,fg,pg,dg,hg,mg,vg,yg,_g,Sg,Eg,Tg,gg,Og,Ag,bg,xg,Ng,Rg,g3,O3,A3,b3,x3,N3,R3,P3,w3,M3,I3,L3,C3,U3,D3,V3,k3,B3,G3,q3,F3,H3,j3,Y3,$3,K3,z3,W3,X3,J3,Q3,Z3,e5,t5,r5,n5,i5,o5,a5,u5,s5,l5,c5,f5,p5,d5,h5,m5,v5,y5,_5,S5,E5,T5,g5,O5,A5,b5,x5,N5,R5,P5,w5,M5,I5,L5,C5,Cl,U5,D5,ci,V5,k5,B5,an,un,sn,G5,q5,F5,H5,j5,Pg,wg,Mg,Ig,Y5,$5,K5,z5,W5,Lg,Cg,Ug,Dg,Vg,kg,Bg,Gg,qg,Fg,Hg,jg,Yg,$g,Kg,zg,Wg,X5,J5,Q5,Z5,eG,tG,rG,nG,iG,oG,aG,uG,sG,lG,cG,fG,pG,dG,Xg,Jg,hG,mG,vG,Qg,Zg,eO,tO,rO,nO,iO,yG,_G,SG,EG,TG,gG,OG,AG,oO,aO,uO,sO,lO,cO,fO,pO,dO,hO,mO,bG,xG,NG,RG,PG,wG,MG,IG,LG,CG,UG,DG,vO,yO,_O,SO,EO,TO,gO,OO,AO,bO,VG,kG,BG,GG,qG,Ul,FG,HG,jG,YG,$G,xO=E(()=>{Il();rT="cloud.provider",nT="cloud.account.id",iT="cloud.region",oT="cloud.availability_zone",aT="cloud.platform",uT="aws.ecs.container.arn",sT="aws.ecs.cluster.arn",lT="aws.ecs.launchtype",cT="aws.ecs.task.arn",fT="aws.ecs.task.family",pT="aws.ecs.task.revision",dT="aws.eks.cluster.arn",hT="aws.log.group.names",mT="aws.log.group.arns",vT="aws.log.stream.names",yT="aws.log.stream.arns",_T="container.name",ST="container.id",ET="container.runtime",TT="container.image.name",gT="container.image.tag",OT="deployment.environment",AT="device.id",bT="device.model.identifier",xT="device.model.name",NT="faas.name",RT="faas.id",PT="faas.version",wT="faas.instance",MT="faas.max_memory",IT="host.id",LT="host.name",CT="host.type",UT="host.arch",DT="host.image.name",VT="host.image.id",kT="host.image.version",BT="k8s.cluster.name",GT="k8s.node.name",qT="k8s.node.uid",FT="k8s.namespace.name",HT="k8s.pod.uid",jT="k8s.pod.name",YT="k8s.container.name",$T="k8s.replicaset.uid",KT="k8s.replicaset.name",zT="k8s.deployment.uid",WT="k8s.deployment.name",XT="k8s.statefulset.uid",JT="k8s.statefulset.name",QT="k8s.daemonset.uid",ZT="k8s.daemonset.name",eg="k8s.job.uid",tg="k8s.job.name",rg="k8s.cronjob.uid",ng="k8s.cronjob.name",ig="os.type",og="os.description",ag="os.name",ug="os.version",sg="process.pid",lg="process.executable.name",cg="process.executable.path",fg="process.command",pg="process.command_line",dg="process.command_args",hg="process.owner",mg="process.runtime.name",vg="process.runtime.version",yg="process.runtime.description",_g="service.name",Sg="service.namespace",Eg="service.instance.id",Tg="service.version",gg="telemetry.sdk.name",Og="telemetry.sdk.language",Ag="telemetry.sdk.version",bg="telemetry.auto.version",xg="webengine.name",Ng="webengine.version",Rg="webengine.description",g3=rT,O3=nT,A3=iT,b3=oT,x3=aT,N3=uT,R3=sT,P3=lT,w3=cT,M3=fT,I3=pT,L3=dT,C3=hT,U3=mT,D3=vT,V3=yT,k3=_T,B3=ST,G3=ET,q3=TT,F3=gT,H3=OT,j3=AT,Y3=bT,$3=xT,K3=NT,z3=RT,W3=PT,X3=wT,J3=MT,Q3=IT,Z3=LT,e5=CT,t5=UT,r5=DT,n5=VT,i5=kT,o5=BT,a5=GT,u5=qT,s5=FT,l5=HT,c5=jT,f5=YT,p5=$T,d5=KT,h5=zT,m5=WT,v5=XT,y5=JT,_5=QT,S5=ZT,E5=eg,T5=tg,g5=rg,O5=ng,A5=ig,b5=og,x5=ag,N5=ug,R5=sg,P5=lg,w5=cg,M5=fg,I5=pg,L5=dg,C5=hg,Cl=mg,U5=vg,D5=yg,ci=_g,V5=Sg,k5=Eg,B5=Tg,an=gg,un=Og,sn=Ag,G5=bg,q5=xg,F5=Ng,H5=Rg,j5=ce([rT,nT,iT,oT,aT,uT,sT,lT,cT,fT,pT,dT,hT,mT,vT,yT,_T,ST,ET,TT,gT,OT,AT,bT,xT,NT,RT,PT,wT,MT,IT,LT,CT,UT,DT,VT,kT,BT,GT,qT,FT,HT,jT,YT,$T,KT,zT,WT,XT,JT,QT,ZT,eg,tg,rg,ng,ig,og,ag,ug,sg,lg,cg,fg,pg,dg,hg,mg,vg,yg,_g,Sg,Eg,Tg,gg,Og,Ag,bg,xg,Ng,Rg]),Pg="alibaba_cloud",wg="aws",Mg="azure",Ig="gcp",Y5=Pg,$5=wg,K5=Mg,z5=Ig,W5=ce([Pg,wg,Mg,Ig]),Lg="alibaba_cloud_ecs",Cg="alibaba_cloud_fc",Ug="aws_ec2",Dg="aws_ecs",Vg="aws_eks",kg="aws_lambda",Bg="aws_elastic_beanstalk",Gg="azure_vm",qg="azure_container_instances",Fg="azure_aks",Hg="azure_functions",jg="azure_app_service",Yg="gcp_compute_engine",$g="gcp_cloud_run",Kg="gcp_kubernetes_engine",zg="gcp_cloud_functions",Wg="gcp_app_engine",X5=Lg,J5=Cg,Q5=Ug,Z5=Dg,eG=Vg,tG=kg,rG=Bg,nG=Gg,iG=qg,oG=Fg,aG=Hg,uG=jg,sG=Yg,lG=$g,cG=Kg,fG=zg,pG=Wg,dG=ce([Lg,Cg,Ug,Dg,Vg,kg,Bg,Gg,qg,Fg,Hg,jg,Yg,$g,Kg,zg,Wg]),Xg="ec2",Jg="fargate",hG=Xg,mG=Jg,vG=ce([Xg,Jg]),Qg="amd64",Zg="arm32",eO="arm64",tO="ia64",rO="ppc32",nO="ppc64",iO="x86",yG=Qg,_G=Zg,SG=eO,EG=tO,TG=rO,gG=nO,OG=iO,AG=ce([Qg,Zg,eO,tO,rO,nO,iO]),oO="windows",aO="linux",uO="darwin",sO="freebsd",lO="netbsd",cO="openbsd",fO="dragonflybsd",pO="hpux",dO="aix",hO="solaris",mO="z_os",bG=oO,xG=aO,NG=uO,RG=sO,PG=lO,wG=cO,MG=fO,IG=pO,LG=dO,CG=hO,UG=mO,DG=ce([oO,aO,uO,sO,lO,cO,fO,pO,dO,hO,mO]),vO="cpp",yO="dotnet",_O="erlang",SO="go",EO="java",TO="nodejs",gO="php",OO="python",AO="ruby",bO="webjs",VG=vO,kG=yO,BG=_O,GG=SO,qG=EO,Ul=TO,FG=gO,HG=OO,jG=AO,YG=bO,$G=ce([vO,yO,_O,SO,EO,TO,gO,OO,AO,bO])});var NO=E(()=>{xO()});var fi={};it(fi,{AWSECSLAUNCHTYPEVALUES_EC2:()=>hG,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>mG,AwsEcsLaunchtypeValues:()=>vG,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>X5,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>J5,CLOUDPLATFORMVALUES_AWS_EC2:()=>Q5,CLOUDPLATFORMVALUES_AWS_ECS:()=>Z5,CLOUDPLATFORMVALUES_AWS_EKS:()=>eG,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>rG,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>tG,CLOUDPLATFORMVALUES_AZURE_AKS:()=>oG,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>uG,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>iG,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>aG,CLOUDPLATFORMVALUES_AZURE_VM:()=>nG,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>pG,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>fG,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>lG,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>sG,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>cG,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>Y5,CLOUDPROVIDERVALUES_AWS:()=>$5,CLOUDPROVIDERVALUES_AZURE:()=>K5,CLOUDPROVIDERVALUES_GCP:()=>z5,CloudPlatformValues:()=>dG,CloudProviderValues:()=>W5,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>Ck,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>Fk,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>Uk,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>qk,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>Vk,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>jk,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>kk,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>Dk,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>Hk,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>Gk,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>Bk,DBSYSTEMVALUES_ADABAS:()=>nk,DBSYSTEMVALUES_CACHE:()=>rk,DBSYSTEMVALUES_CASSANDRA:()=>Ek,DBSYSTEMVALUES_CLOUDSCAPE:()=>zV,DBSYSTEMVALUES_COCKROACHDB:()=>Ik,DBSYSTEMVALUES_COLDFUSION:()=>Sk,DBSYSTEMVALUES_COSMOSDB:()=>xk,DBSYSTEMVALUES_COUCHBASE:()=>Ak,DBSYSTEMVALUES_COUCHDB:()=>bk,DBSYSTEMVALUES_DB2:()=>jV,DBSYSTEMVALUES_DERBY:()=>ok,DBSYSTEMVALUES_DYNAMODB:()=>Nk,DBSYSTEMVALUES_EDB:()=>tk,DBSYSTEMVALUES_ELASTICSEARCH:()=>wk,DBSYSTEMVALUES_FILEMAKER:()=>ak,DBSYSTEMVALUES_FIREBIRD:()=>ik,DBSYSTEMVALUES_FIRSTSQL:()=>ek,DBSYSTEMVALUES_GEODE:()=>Pk,DBSYSTEMVALUES_H2:()=>_k,DBSYSTEMVALUES_HANADB:()=>QV,DBSYSTEMVALUES_HBASE:()=>Tk,DBSYSTEMVALUES_HIVE:()=>KV,DBSYSTEMVALUES_HSQLDB:()=>WV,DBSYSTEMVALUES_INFORMIX:()=>uk,DBSYSTEMVALUES_INGRES:()=>ZV,DBSYSTEMVALUES_INSTANTDB:()=>sk,DBSYSTEMVALUES_INTERBASE:()=>lk,DBSYSTEMVALUES_MARIADB:()=>ck,DBSYSTEMVALUES_MAXDB:()=>JV,DBSYSTEMVALUES_MEMCACHED:()=>Mk,DBSYSTEMVALUES_MONGODB:()=>gk,DBSYSTEMVALUES_MSSQL:()=>qV,DBSYSTEMVALUES_MYSQL:()=>FV,DBSYSTEMVALUES_NEO4J:()=>Rk,DBSYSTEMVALUES_NETEZZA:()=>fk,DBSYSTEMVALUES_ORACLE:()=>HV,DBSYSTEMVALUES_OTHER_SQL:()=>GV,DBSYSTEMVALUES_PERVASIVE:()=>pk,DBSYSTEMVALUES_POINTBASE:()=>dk,DBSYSTEMVALUES_POSTGRESQL:()=>YV,DBSYSTEMVALUES_PROGRESS:()=>XV,DBSYSTEMVALUES_REDIS:()=>Ok,DBSYSTEMVALUES_REDSHIFT:()=>$V,DBSYSTEMVALUES_SQLITE:()=>hk,DBSYSTEMVALUES_SYBASE:()=>mk,DBSYSTEMVALUES_TERADATA:()=>vk,DBSYSTEMVALUES_VERTICA:()=>yk,DbCassandraConsistencyLevelValues:()=>Yk,DbSystemValues:()=>Lk,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>eB,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>Zk,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>Qk,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>rB,FAASINVOKEDPROVIDERVALUES_AWS:()=>nB,FAASINVOKEDPROVIDERVALUES_AZURE:()=>iB,FAASINVOKEDPROVIDERVALUES_GCP:()=>oB,FAASTRIGGERVALUES_DATASOURCE:()=>$k,FAASTRIGGERVALUES_HTTP:()=>Kk,FAASTRIGGERVALUES_OTHER:()=>Xk,FAASTRIGGERVALUES_PUBSUB:()=>zk,FAASTRIGGERVALUES_TIMER:()=>Wk,FaasDocumentOperationValues:()=>tB,FaasInvokedProviderValues:()=>aB,FaasTriggerValues:()=>Jk,HOSTARCHVALUES_AMD64:()=>yG,HOSTARCHVALUES_ARM32:()=>_G,HOSTARCHVALUES_ARM64:()=>SG,HOSTARCHVALUES_IA64:()=>EG,HOSTARCHVALUES_PPC32:()=>TG,HOSTARCHVALUES_PPC64:()=>gG,HOSTARCHVALUES_X86:()=>OG,HTTPFLAVORVALUES_HTTP_1_0:()=>HB,HTTPFLAVORVALUES_HTTP_1_1:()=>jB,HTTPFLAVORVALUES_HTTP_2_0:()=>YB,HTTPFLAVORVALUES_QUIC:()=>KB,HTTPFLAVORVALUES_SPDY:()=>$B,HostArchValues:()=>AG,HttpFlavorValues:()=>zB,MESSAGETYPEVALUES_RECEIVED:()=>E3,MESSAGETYPEVALUES_SENT:()=>S3,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>WB,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>XB,MESSAGINGOPERATIONVALUES_PROCESS:()=>ZB,MESSAGINGOPERATIONVALUES_RECEIVE:()=>QB,MessageTypeValues:()=>T3,MessagingDestinationKindValues:()=>JB,MessagingOperationValues:()=>e3,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>AB,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>NB,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>gB,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>CB,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>bB,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>xB,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>IB,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>TB,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>DB,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>RB,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>wB,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>UB,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>PB,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>MB,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>kB,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>LB,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>qB,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>BB,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>GB,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>VB,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>OB,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>yB,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>_B,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>SB,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>mB,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>vB,NETTRANSPORTVALUES_INPROC:()=>pB,NETTRANSPORTVALUES_IP:()=>lB,NETTRANSPORTVALUES_IP_TCP:()=>uB,NETTRANSPORTVALUES_IP_UDP:()=>sB,NETTRANSPORTVALUES_OTHER:()=>dB,NETTRANSPORTVALUES_PIPE:()=>fB,NETTRANSPORTVALUES_UNIX:()=>cB,NetHostConnectionSubtypeValues:()=>FB,NetHostConnectionTypeValues:()=>EB,NetTransportValues:()=>hB,OSTYPEVALUES_AIX:()=>LG,OSTYPEVALUES_DARWIN:()=>NG,OSTYPEVALUES_DRAGONFLYBSD:()=>MG,OSTYPEVALUES_FREEBSD:()=>RG,OSTYPEVALUES_HPUX:()=>IG,OSTYPEVALUES_LINUX:()=>xG,OSTYPEVALUES_NETBSD:()=>PG,OSTYPEVALUES_OPENBSD:()=>wG,OSTYPEVALUES_SOLARIS:()=>CG,OSTYPEVALUES_WINDOWS:()=>bG,OSTYPEVALUES_Z_OS:()=>UG,OsTypeValues:()=>DG,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>f3,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>u3,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>r3,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>v3,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>o3,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>c3,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>h3,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>i3,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>a3,RPCGRPCSTATUSCODEVALUES_OK:()=>t3,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>p3,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>s3,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>l3,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>y3,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>m3,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>d3,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>n3,RpcGrpcStatusCodeValues:()=>_3,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>z2,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>aV,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>Y2,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>q2,SEMATTRS_AWS_DYNAMODB_COUNT:()=>iV,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>Z2,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>J2,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>uV,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>W2,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>F2,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>K2,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>Q2,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>$2,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>H2,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>j2,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>oV,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>tV,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>rV,SEMATTRS_AWS_DYNAMODB_SELECT:()=>X2,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>eV,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>G2,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>nV,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>gD,SEMATTRS_CODE_FILEPATH:()=>O2,SEMATTRS_CODE_FUNCTION:()=>T2,SEMATTRS_CODE_LINENO:()=>A2,SEMATTRS_CODE_NAMESPACE:()=>g2,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>LD,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>kD,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>VD,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>UD,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>MD,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>ID,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>DD,SEMATTRS_DB_CASSANDRA_TABLE:()=>CD,SEMATTRS_DB_CONNECTION_STRING:()=>AD,SEMATTRS_DB_HBASE_NAMESPACE:()=>BD,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>xD,SEMATTRS_DB_MONGODB_COLLECTION:()=>qD,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>wD,SEMATTRS_DB_NAME:()=>ND,SEMATTRS_DB_OPERATION:()=>PD,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>GD,SEMATTRS_DB_SQL_TABLE:()=>FD,SEMATTRS_DB_STATEMENT:()=>RD,SEMATTRS_DB_SYSTEM:()=>OD,SEMATTRS_DB_USER:()=>bD,SEMATTRS_ENDUSER_ID:()=>v2,SEMATTRS_ENDUSER_ROLE:()=>y2,SEMATTRS_ENDUSER_SCOPE:()=>_2,SEMATTRS_EXCEPTION_ESCAPED:()=>HD,SEMATTRS_EXCEPTION_MESSAGE:()=>li,SEMATTRS_EXCEPTION_STACKTRACE:()=>Ll,SEMATTRS_EXCEPTION_TYPE:()=>si,SEMATTRS_FAAS_COLDSTART:()=>QD,SEMATTRS_FAAS_CRON:()=>JD,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>$D,SEMATTRS_FAAS_DOCUMENT_NAME:()=>WD,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>KD,SEMATTRS_FAAS_DOCUMENT_TIME:()=>zD,SEMATTRS_FAAS_EXECUTION:()=>YD,SEMATTRS_FAAS_INVOKED_NAME:()=>ZD,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>e2,SEMATTRS_FAAS_INVOKED_REGION:()=>t2,SEMATTRS_FAAS_TIME:()=>XD,SEMATTRS_FAAS_TRIGGER:()=>jD,SEMATTRS_HTTP_CLIENT_IP:()=>B2,SEMATTRS_HTTP_FLAVOR:()=>M2,SEMATTRS_HTTP_HOST:()=>R2,SEMATTRS_HTTP_METHOD:()=>b2,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>L2,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>C2,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>U2,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>D2,SEMATTRS_HTTP_ROUTE:()=>k2,SEMATTRS_HTTP_SCHEME:()=>P2,SEMATTRS_HTTP_SERVER_NAME:()=>V2,SEMATTRS_HTTP_STATUS_CODE:()=>w2,SEMATTRS_HTTP_TARGET:()=>N2,SEMATTRS_HTTP_URL:()=>x2,SEMATTRS_HTTP_USER_AGENT:()=>I2,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>VV,SEMATTRS_MESSAGE_ID:()=>DV,SEMATTRS_MESSAGE_TYPE:()=>UV,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>kV,SEMATTRS_MESSAGING_CONSUMER_ID:()=>EV,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>vV,SEMATTRS_MESSAGING_DESTINATION:()=>lV,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>cV,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>AV,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>OV,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>gV,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>bV,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>xV,SEMATTRS_MESSAGING_MESSAGE_ID:()=>mV,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>_V,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>yV,SEMATTRS_MESSAGING_OPERATION:()=>SV,SEMATTRS_MESSAGING_PROTOCOL:()=>pV,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>dV,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>TV,SEMATTRS_MESSAGING_SYSTEM:()=>sV,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>fV,SEMATTRS_MESSAGING_URL:()=>hV,SEMATTRS_NET_HOST_CARRIER_ICC:()=>h2,SEMATTRS_NET_HOST_CARRIER_MCC:()=>p2,SEMATTRS_NET_HOST_CARRIER_MNC:()=>d2,SEMATTRS_NET_HOST_CARRIER_NAME:()=>f2,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>c2,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>l2,SEMATTRS_NET_HOST_IP:()=>a2,SEMATTRS_NET_HOST_NAME:()=>s2,SEMATTRS_NET_HOST_PORT:()=>u2,SEMATTRS_NET_PEER_IP:()=>n2,SEMATTRS_NET_PEER_NAME:()=>o2,SEMATTRS_NET_PEER_PORT:()=>i2,SEMATTRS_NET_TRANSPORT:()=>r2,SEMATTRS_PEER_SERVICE:()=>m2,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>wV,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>LV,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>CV,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>IV,SEMATTRS_RPC_JSONRPC_VERSION:()=>MV,SEMATTRS_RPC_METHOD:()=>PV,SEMATTRS_RPC_SERVICE:()=>RV,SEMATTRS_RPC_SYSTEM:()=>NV,SEMATTRS_THREAD_ID:()=>S2,SEMATTRS_THREAD_NAME:()=>E2,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>R3,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>N3,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>P3,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>w3,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>M3,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>I3,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>L3,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>U3,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>C3,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>V3,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>D3,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>O3,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>b3,SEMRESATTRS_CLOUD_PLATFORM:()=>x3,SEMRESATTRS_CLOUD_PROVIDER:()=>g3,SEMRESATTRS_CLOUD_REGION:()=>A3,SEMRESATTRS_CONTAINER_ID:()=>B3,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>q3,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>F3,SEMRESATTRS_CONTAINER_NAME:()=>k3,SEMRESATTRS_CONTAINER_RUNTIME:()=>G3,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>H3,SEMRESATTRS_DEVICE_ID:()=>j3,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>Y3,SEMRESATTRS_DEVICE_MODEL_NAME:()=>$3,SEMRESATTRS_FAAS_ID:()=>z3,SEMRESATTRS_FAAS_INSTANCE:()=>X3,SEMRESATTRS_FAAS_MAX_MEMORY:()=>J3,SEMRESATTRS_FAAS_NAME:()=>K3,SEMRESATTRS_FAAS_VERSION:()=>W3,SEMRESATTRS_HOST_ARCH:()=>t5,SEMRESATTRS_HOST_ID:()=>Q3,SEMRESATTRS_HOST_IMAGE_ID:()=>n5,SEMRESATTRS_HOST_IMAGE_NAME:()=>r5,SEMRESATTRS_HOST_IMAGE_VERSION:()=>i5,SEMRESATTRS_HOST_NAME:()=>Z3,SEMRESATTRS_HOST_TYPE:()=>e5,SEMRESATTRS_K8S_CLUSTER_NAME:()=>o5,SEMRESATTRS_K8S_CONTAINER_NAME:()=>f5,SEMRESATTRS_K8S_CRONJOB_NAME:()=>O5,SEMRESATTRS_K8S_CRONJOB_UID:()=>g5,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>S5,SEMRESATTRS_K8S_DAEMONSET_UID:()=>_5,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>m5,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>h5,SEMRESATTRS_K8S_JOB_NAME:()=>T5,SEMRESATTRS_K8S_JOB_UID:()=>E5,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>s5,SEMRESATTRS_K8S_NODE_NAME:()=>a5,SEMRESATTRS_K8S_NODE_UID:()=>u5,SEMRESATTRS_K8S_POD_NAME:()=>c5,SEMRESATTRS_K8S_POD_UID:()=>l5,SEMRESATTRS_K8S_REPLICASET_NAME:()=>d5,SEMRESATTRS_K8S_REPLICASET_UID:()=>p5,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>y5,SEMRESATTRS_K8S_STATEFULSET_UID:()=>v5,SEMRESATTRS_OS_DESCRIPTION:()=>b5,SEMRESATTRS_OS_NAME:()=>x5,SEMRESATTRS_OS_TYPE:()=>A5,SEMRESATTRS_OS_VERSION:()=>N5,SEMRESATTRS_PROCESS_COMMAND:()=>M5,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>L5,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>I5,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>P5,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>w5,SEMRESATTRS_PROCESS_OWNER:()=>C5,SEMRESATTRS_PROCESS_PID:()=>R5,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>D5,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>Cl,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>U5,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>k5,SEMRESATTRS_SERVICE_NAME:()=>ci,SEMRESATTRS_SERVICE_NAMESPACE:()=>V5,SEMRESATTRS_SERVICE_VERSION:()=>B5,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>G5,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>un,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>an,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>sn,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>H5,SEMRESATTRS_WEBENGINE_NAME:()=>q5,SEMRESATTRS_WEBENGINE_VERSION:()=>F5,SemanticAttributes:()=>BV,SemanticResourceAttributes:()=>j5,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>VG,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>kG,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>BG,TELEMETRYSDKLANGUAGEVALUES_GO:()=>GG,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>qG,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>Ul,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>FG,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>HG,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>jG,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>YG,TelemetrySdkLanguageValues:()=>$G});var Ct=E(()=>{tT();NO()});var PO=y((RO,Yo)=>{(function(t){"use strict";let e="(0?\\d+|0x[a-f0-9]+)",n={fourOctet:new RegExp(`^${e}\\.${e}\\.${e}\\.${e}$`,"i"),threeOctet:new RegExp(`^${e}\\.${e}\\.${e}$`,"i"),twoOctet:new RegExp(`^${e}\\.${e}$`,"i"),longValue:new RegExp(`^${e}$`,"i")},o=new RegExp("^0[0-7]+$","i"),a=new RegExp("^0x[a-f0-9]+$","i"),u="%[0-9a-z]{1,}",i="(?:[0-9a-f]+::?)+",r={zoneIndex:new RegExp(u,"i"),native:new RegExp(`^(::)?(${i})?([0-9a-f]+)?(::)?(${u})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${e}\\.${e}\\.${e}\\.${e}(${u})?)$`,"i"),transitional:new RegExp(`^((?:${i})|(?:::)(?:${i})?)${e}\\.${e}\\.${e}\\.${e}(${u})?$`,"i")};function s(f,v){if(f.indexOf("::")!==f.lastIndexOf("::"))return null;let S=0,_=-1,O=(f.match(r.zoneIndex)||[])[0],g,b;for(O&&(O=O.substring(1),f=f.replace(/%.+$/,""));(_=f.indexOf(":",_+1))>=0;)S++;if(f.substr(0,2)==="::"&&S--,f.substr(-2,2)==="::"&&S--,S>v)return null;for(b=v-S,g=":";b--;)g+="0:";return f=f.replace("::",g),f[0]===":"&&(f=f.slice(1)),f[f.length-1]===":"&&(f=f.slice(0,-1)),v=function(){let L=f.split(":"),B=[];for(let j=0;j<L.length;j++)B.push(parseInt(L[j],16));return B}(),{parts:v,zoneId:O}}function l(f,v,S,_){if(f.length!==v.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let O=0,g;for(;_>0;){if(g=S-_,g<0&&(g=0),f[O]>>g!==v[O]>>g)return!1;_-=S,O+=1}return!0}function c(f){if(a.test(f))return parseInt(f,16);if(f[0]==="0"&&!isNaN(parseInt(f[1],10))){if(o.test(f))return parseInt(f,8);throw new Error(`ipaddr: cannot parse ${f} as octal`)}return parseInt(f,10)}function p(f,v){for(;f.length<v;)f=`0${f}`;return f}let m={};m.IPv4=function(){function f(v){if(v.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let S,_;for(S=0;S<v.length;S++)if(_=v[S],!(0<=_&&_<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=v}return f.prototype.SpecialRanges={unspecified:[[new f([0,0,0,0]),8]],broadcast:[[new f([255,255,255,255]),32]],multicast:[[new f([224,0,0,0]),4]],linkLocal:[[new f([169,254,0,0]),16]],loopback:[[new f([127,0,0,0]),8]],carrierGradeNat:[[new f([100,64,0,0]),10]],private:[[new f([10,0,0,0]),8],[new f([172,16,0,0]),12],[new f([192,168,0,0]),16]],reserved:[[new f([192,0,0,0]),24],[new f([192,0,2,0]),24],[new f([192,88,99,0]),24],[new f([198,18,0,0]),15],[new f([198,51,100,0]),24],[new f([203,0,113,0]),24],[new f([240,0,0,0]),4]],as112:[[new f([192,175,48,0]),24],[new f([192,31,196,0]),24]],amt:[[new f([192,52,193,0]),24]]},f.prototype.kind=function(){return"ipv4"},f.prototype.match=function(v,S){let _;if(S===void 0&&(_=v,v=_[0],S=_[1]),v.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return l(this.octets,v.octets,8,S)},f.prototype.prefixLengthFromSubnetMask=function(){let v=0,S=!1,_={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},O,g,b;for(O=3;O>=0;O-=1)if(g=this.octets[O],g in _){if(b=_[g],S&&b!==0)return null;b!==8&&(S=!0),v+=b}else return null;return 32-v},f.prototype.range=function(){return m.subnetMatch(this,this.SpecialRanges)},f.prototype.toByteArray=function(){return this.octets.slice(0)},f.prototype.toIPv4MappedAddress=function(){return m.IPv6.parse(`::ffff:${this.toString()}`)},f.prototype.toNormalizedString=function(){return this.toString()},f.prototype.toString=function(){return this.octets.join(".")},f}(),m.IPv4.broadcastAddressFromCIDR=function(f){try{let v=this.parseCIDR(f),S=v[0].toByteArray(),_=this.subnetMaskFromPrefixLength(v[1]).toByteArray(),O=[],g=0;for(;g<4;)O.push(parseInt(S[g],10)|parseInt(_[g],10)^255),g++;return new this(O)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},m.IPv4.isIPv4=function(f){return this.parser(f)!==null},m.IPv4.isValid=function(f){try{return new this(this.parser(f)),!0}catch{return!1}},m.IPv4.isValidCIDR=function(f){try{return this.parseCIDR(f),!0}catch{return!1}},m.IPv4.isValidFourPartDecimal=function(f){return!!(m.IPv4.isValid(f)&&f.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},m.IPv4.networkAddressFromCIDR=function(f){let v,S,_,O,g;try{for(v=this.parseCIDR(f),_=v[0].toByteArray(),g=this.subnetMaskFromPrefixLength(v[1]).toByteArray(),O=[],S=0;S<4;)O.push(parseInt(_[S],10)&parseInt(g[S],10)),S++;return new this(O)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},m.IPv4.parse=function(f){let v=this.parser(f);if(v===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(v)},m.IPv4.parseCIDR=function(f){let v;if(v=f.match(/^(.+)\/(\d+)$/)){let S=parseInt(v[2]);if(S>=0&&S<=32){let _=[this.parse(v[1]),S];return Object.defineProperty(_,"toString",{value:function(){return this.join("/")}}),_}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},m.IPv4.parser=function(f){let v,S,_;if(v=f.match(n.fourOctet))return function(){let O=v.slice(1,6),g=[];for(let b=0;b<O.length;b++)S=O[b],g.push(c(S));return g}();if(v=f.match(n.longValue)){if(_=c(v[1]),_>4294967295||_<0)throw new Error("ipaddr: address outside defined range");return function(){let O=[],g;for(g=0;g<=24;g+=8)O.push(_>>g&255);return O}().reverse()}else return(v=f.match(n.twoOctet))?function(){let O=v.slice(1,4),g=[];if(_=c(O[1]),_>16777215||_<0)throw new Error("ipaddr: address outside defined range");return g.push(c(O[0])),g.push(_>>16&255),g.push(_>>8&255),g.push(_&255),g}():(v=f.match(n.threeOctet))?function(){let O=v.slice(1,5),g=[];if(_=c(O[2]),_>65535||_<0)throw new Error("ipaddr: address outside defined range");return g.push(c(O[0])),g.push(c(O[1])),g.push(_>>8&255),g.push(_&255),g}():null},m.IPv4.subnetMaskFromPrefixLength=function(f){if(f=parseInt(f),f<0||f>32)throw new Error("ipaddr: invalid IPv4 prefix length");let v=[0,0,0,0],S=0,_=Math.floor(f/8);for(;S<_;)v[S]=255,S++;return _<4&&(v[_]=Math.pow(2,f%8)-1<<8-f%8),new this(v)},m.IPv6=function(){function f(v,S){let _,O;if(v.length===16)for(this.parts=[],_=0;_<=14;_+=2)this.parts.push(v[_]<<8|v[_+1]);else if(v.length===8)this.parts=v;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(_=0;_<this.parts.length;_++)if(O=this.parts[_],!(0<=O&&O<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");S&&(this.zoneId=S)}return f.prototype.SpecialRanges={unspecified:[new f([0,0,0,0,0,0,0,0]),128],linkLocal:[new f([65152,0,0,0,0,0,0,0]),10],multicast:[new f([65280,0,0,0,0,0,0,0]),8],loopback:[new f([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new f([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new f([0,0,0,0,0,65535,0,0]),96],discard:[new f([256,0,0,0,0,0,0,0]),64],rfc6145:[new f([0,0,0,0,65535,0,0,0]),96],rfc6052:[new f([100,65435,0,0,0,0,0,0]),96],"6to4":[new f([8194,0,0,0,0,0,0,0]),16],teredo:[new f([8193,0,0,0,0,0,0,0]),32],benchmarking:[new f([8193,2,0,0,0,0,0,0]),48],amt:[new f([8193,3,0,0,0,0,0,0]),32],as112v6:[[new f([8193,4,274,0,0,0,0,0]),48],[new f([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new f([8193,16,0,0,0,0,0,0]),28],orchid2:[new f([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new f([8193,48,0,0,0,0,0,0]),28],reserved:[[new f([8193,0,0,0,0,0,0,0]),23],[new f([8193,3512,0,0,0,0,0,0]),32]]},f.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},f.prototype.kind=function(){return"ipv6"},f.prototype.match=function(v,S){let _;if(S===void 0&&(_=v,v=_[0],S=_[1]),v.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return l(this.parts,v.parts,16,S)},f.prototype.prefixLengthFromSubnetMask=function(){let v=0,S=!1,_={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},O,g;for(let b=7;b>=0;b-=1)if(O=this.parts[b],O in _){if(g=_[O],S&&g!==0)return null;g!==16&&(S=!0),v+=g}else return null;return 128-v},f.prototype.range=function(){return m.subnetMatch(this,this.SpecialRanges)},f.prototype.toByteArray=function(){let v,S=[],_=this.parts;for(let O=0;O<_.length;O++)v=_[O],S.push(v>>8),S.push(v&255);return S},f.prototype.toFixedLengthString=function(){let v=function(){let _=[];for(let O=0;O<this.parts.length;O++)_.push(p(this.parts[O].toString(16),4));return _}.call(this).join(":"),S="";return this.zoneId&&(S=`%${this.zoneId}`),v+S},f.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let v=this.parts.slice(-2),S=v[0],_=v[1];return new m.IPv4([S>>8,S&255,_>>8,_&255])},f.prototype.toNormalizedString=function(){let v=function(){let _=[];for(let O=0;O<this.parts.length;O++)_.push(this.parts[O].toString(16));return _}.call(this).join(":"),S="";return this.zoneId&&(S=`%${this.zoneId}`),v+S},f.prototype.toRFC5952String=function(){let v=/((^|:)(0(:|$)){2,})/g,S=this.toNormalizedString(),_=0,O=-1,g;for(;g=v.exec(S);)g[0].length>O&&(_=g.index,O=g[0].length);return O<0?S:`${S.substring(0,_)}::${S.substring(_+O)}`},f.prototype.toString=function(){return this.toRFC5952String()},f}(),m.IPv6.broadcastAddressFromCIDR=function(f){try{let v=this.parseCIDR(f),S=v[0].toByteArray(),_=this.subnetMaskFromPrefixLength(v[1]).toByteArray(),O=[],g=0;for(;g<16;)O.push(parseInt(S[g],10)|parseInt(_[g],10)^255),g++;return new this(O)}catch(v){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${v})`)}},m.IPv6.isIPv6=function(f){return this.parser(f)!==null},m.IPv6.isValid=function(f){if(typeof f=="string"&&f.indexOf(":")===-1)return!1;try{let v=this.parser(f);return new this(v.parts,v.zoneId),!0}catch{return!1}},m.IPv6.isValidCIDR=function(f){if(typeof f=="string"&&f.indexOf(":")===-1)return!1;try{return this.parseCIDR(f),!0}catch{return!1}},m.IPv6.networkAddressFromCIDR=function(f){let v,S,_,O,g;try{for(v=this.parseCIDR(f),_=v[0].toByteArray(),g=this.subnetMaskFromPrefixLength(v[1]).toByteArray(),O=[],S=0;S<16;)O.push(parseInt(_[S],10)&parseInt(g[S],10)),S++;return new this(O)}catch(b){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${b})`)}},m.IPv6.parse=function(f){let v=this.parser(f);if(v.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(v.parts,v.zoneId)},m.IPv6.parseCIDR=function(f){let v,S,_;if((S=f.match(/^(.+)\/(\d+)$/))&&(v=parseInt(S[2]),v>=0&&v<=128))return _=[this.parse(S[1]),v],Object.defineProperty(_,"toString",{value:function(){return this.join("/")}}),_;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},m.IPv6.parser=function(f){let v,S,_,O,g,b;if(_=f.match(r.deprecatedTransitional))return this.parser(`::ffff:${_[1]}`);if(r.native.test(f))return s(f,8);if((_=f.match(r.transitional))&&(b=_[6]||"",v=_[1],_[1].endsWith("::")||(v=v.slice(0,-1)),v=s(v+b,6),v.parts)){for(g=[parseInt(_[2]),parseInt(_[3]),parseInt(_[4]),parseInt(_[5])],S=0;S<g.length;S++)if(O=g[S],!(0<=O&&O<=255))return null;return v.parts.push(g[0]<<8|g[1]),v.parts.push(g[2]<<8|g[3]),{parts:v.parts,zoneId:v.zoneId}}return null},m.IPv6.subnetMaskFromPrefixLength=function(f){if(f=parseInt(f),f<0||f>128)throw new Error("ipaddr: invalid IPv6 prefix length");let v=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],S=0,_=Math.floor(f/8);for(;S<_;)v[S]=255,S++;return _<16&&(v[_]=Math.pow(2,f%8)-1<<8-f%8),new this(v)},m.fromByteArray=function(f){let v=f.length;if(v===4)return new m.IPv4(f);if(v===16)return new m.IPv6(f);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},m.isValid=function(f){return m.IPv6.isValid(f)||m.IPv4.isValid(f)},m.isValidCIDR=function(f){return m.IPv6.isValidCIDR(f)||m.IPv4.isValidCIDR(f)},m.parse=function(f){if(m.IPv6.isValid(f))return m.IPv6.parse(f);if(m.IPv4.isValid(f))return m.IPv4.parse(f);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},m.parseCIDR=function(f){try{return m.IPv6.parseCIDR(f)}catch{try{return m.IPv4.parseCIDR(f)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},m.process=function(f){let v=this.parse(f);return v.kind()==="ipv6"&&v.isIPv4MappedAddress()?v.toIPv4Address():v},m.subnetMatch=function(f,v,S){let _,O,g,b;S==null&&(S="unicast");for(O in v)if(Object.prototype.hasOwnProperty.call(v,O)){for(g=v[O],g[0]&&!(g[0]instanceof Array)&&(g=[g]),_=0;_<g.length;_++)if(b=g[_],f.kind()===b[0].kind()&&f.match.apply(f,b))return O}return S},typeof Yo<"u"&&Yo.exports?Yo.exports=m:t.ipaddr=m})(RO)});var Dl=y(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.getPeerAttributes=Xt.getStatusAttributes=Xt.getMethodAttributes=void 0;var vt=(Ct(),Y(fi)),KG=PO(),zG=ul();function WG(t){let[,e,n]=t.split("/");return{[vt.SEMATTRS_RPC_SYSTEM]:"grpc",[vt.SEMATTRS_RPC_SERVICE]:e,[vt.SEMATTRS_RPC_METHOD]:n}}Xt.getMethodAttributes=WG;function XG(t){return{[vt.SEMATTRS_RPC_GRPC_STATUS_CODE]:t,"rpc.grpc.status_text":zG.Status[t]}}Xt.getStatusAttributes=XG;function JG(t){let e=t.lastIndexOf(":");if(e===-1)return{[vt.SEMATTRS_NET_PEER_NAME]:t};let n=t.slice(0,e),o=+t.slice(e+1);return Number.isNaN(o)?{[vt.SEMATTRS_NET_PEER_NAME]:t}:KG.isValid(n)?{[vt.SEMATTRS_NET_PEER_IP]:n,[vt.SEMATTRS_NET_PEER_PORT]:o}:{[vt.SEMATTRS_NET_PEER_NAME]:n,[vt.SEMATTRS_NET_PEER_PORT]:o}}Xt.getPeerAttributes=JG});var Vl=y(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.metadataGetter=ln.metadataSetter=void 0;ln.metadataSetter={set(t,e,n){t.set(e,n)}};ln.metadataGetter={get:(t,e)=>t.get(e),keys:t=>Array.from(t,([e])=>e)}});var wO=y($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.VERSION=void 0;$o.VERSION="0.1.15"});var kl=y(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.emitSpanEvents=Jt.getSpanName=Jt.tracer=void 0;var QG=(w(),Y(Ne)),MO=(Ct(),Y(fi)),ZG=wO();Jt.tracer=QG.trace.getTracer("nice-grpc-opentelemetry",ZG.VERSION);function eq(t){return t.slice(1)}Jt.getSpanName=eq;async function*tq(t,e,n){let o=1;for await(let a of t)e.addEvent("message",{[MO.SEMATTRS_MESSAGE_TYPE]:n,[MO.SEMATTRS_MESSAGE_ID]:o++}),yield a}Jt.emitSpanEvents=tq});var Gl=y(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.bindAsyncGenerator=void 0;var Bl=(w(),Y(Ne));function IO(t,e){return{next:Bl.context.bind(t,e.next.bind(e)),return:Bl.context.bind(t,e.return.bind(e)),throw:Bl.context.bind(t,e.throw.bind(e)),[Symbol.asyncIterator](){return IO(t,e[Symbol.asyncIterator]())}}}Ko.bindAsyncGenerator=IO});var CO=y(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.openTelemetryServerMiddleware=void 0;var pi=(w(),Y(Ne)),LO=(Ct(),Y(fi)),rq=(eh(),Y(Zd)),cn=ul(),ql=Dl(),nq=Vl(),zo=kl(),iq=Gl();function oq(){return(t,e)=>zo.tracer.startActiveSpan((0,zo.getSpanName)(t.method.path),{kind:pi.SpanKind.SERVER},pi.propagation.extract(pi.ROOT_CONTEXT,e.metadata,nq.metadataGetter),n=>(0,iq.bindAsyncGenerator)(pi.context.active(),aq(n,t,e)))}Wo.openTelemetryServerMiddleware=oq;async function*aq(t,e,n){let o={...(0,ql.getMethodAttributes)(e.method.path),...(0,ql.getPeerAttributes)(n.peer)};t.setAttributes(o);let a=cn.Status.OK,u;try{let i;if(e.requestStream?i=(0,zo.emitSpanEvents)(e.request,t,LO.MESSAGETYPEVALUES_RECEIVED):i=e.request,e.responseStream){yield*(0,zo.emitSpanEvents)(e.next(i,n),t,LO.MESSAGETYPEVALUES_SENT);return}else return yield*e.next(i,n)}catch(i){throw i instanceof cn.ServerError?(a=i.code,u=i.details):(0,rq.isAbortError)(i)?(a=cn.Status.CANCELLED,u="The operation was cancelled"):(a=cn.Status.UNKNOWN,u="Unknown server error occurred",t.recordException(i)),i}finally{let i=(0,ql.getStatusAttributes)(a);t.setAttributes(i),a!==cn.Status.OK&&t.setStatus({code:pi.SpanStatusCode.ERROR,message:`${cn.Status[a]}: ${u}`}),t.end()}}});var VO=y(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.openTelemetryClientMiddleware=void 0;var di=(w(),Y(Ne)),UO=(Ct(),Y(fi)),uq=(eh(),Y(Zd)),Qt=ul(),DO=Dl(),sq=Vl(),Xo=kl(),lq=Gl();function cq(){return(t,e)=>Xo.tracer.startActiveSpan((0,Xo.getSpanName)(t.method.path),{kind:di.SpanKind.CLIENT},n=>{let o=(0,Qt.Metadata)(e.metadata);return di.propagation.inject(di.context.active(),o,sq.metadataSetter),(0,lq.bindAsyncGenerator)(di.context.active(),fq(n,t,{...e,metadata:o}))})}Jo.openTelemetryClientMiddleware=cq;async function*fq(t,e,n){let o=(0,DO.getMethodAttributes)(e.method.path);t.setAttributes(o);let a=!1,u=Qt.Status.OK,i;try{let r;if(e.requestStream?r=(0,Xo.emitSpanEvents)(e.request,t,UO.MESSAGETYPEVALUES_SENT):r=e.request,e.responseStream){yield*(0,Xo.emitSpanEvents)(e.next(r,n),t,UO.MESSAGETYPEVALUES_RECEIVED),a=!0;return}else{let s=yield*e.next(r,n);return a=!0,s}}catch(r){throw a=!0,r instanceof Qt.ClientError?(u=r.code,i=r.details):(0,uq.isAbortError)(r)?(u=Qt.Status.CANCELLED,i="The operation was cancelled"):(u=Qt.Status.UNKNOWN,i="Unknown server error occurred",t.recordException(r)),r}finally{a||(u=Qt.Status.CANCELLED,i="Stream iteration was aborted by client, e.g. by breaking from the for .. of loop");let r=(0,DO.getStatusAttributes)(u);t.setAttributes(r),u!==Qt.Status.OK&&t.setStatus({code:di.SpanStatusCode.ERROR,message:`${Qt.Status[u]}: ${i}`}),t.end()}}});var kO=y(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.openTelemetryClientMiddleware=fn.openTelemetryServerMiddleware=void 0;var pq=CO();Object.defineProperty(fn,"openTelemetryServerMiddleware",{enumerable:!0,get:function(){return pq.openTelemetryServerMiddleware}});var dq=VO();Object.defineProperty(fn,"openTelemetryClientMiddleware",{enumerable:!0,get:function(){return dq.openTelemetryClientMiddleware}})});var Be=y((HJ,FO)=>{"use strict";var hi=class extends Error{constructor(e){super(`Format functions must be synchronous taking a two arguments: (info, opts)
|
8
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:i,destStat:a}=uo.checkPathsSync(t,e,"copy",n);if(uo.checkParentPathsSync(t,i,e,"copy"),n.filter&&!n.filter(t,e))return;let s=so.dirname(e);return Ie.existsSync(s)||lD(s),HE(a,t,e,n)}function HE(t,e,n,i){let s=(i.dereference?Ie.statSync:Ie.lstatSync)(e);if(s.isDirectory())return TD(s,t,e,n,i);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return pD(s,t,e,n,i);if(s.isSymbolicLink())return yD(t,e,n,i);throw s.isSocket()?new Error(`Cannot copy a socket file: ${e}`):s.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}function pD(t,e,n,i,a){return e?dD(t,n,i,a):FE(t,n,i,a)}function dD(t,e,n,i){if(i.overwrite)return Ie.unlinkSync(n),FE(t,e,n,i);if(i.errorOnExist)throw new Error(`'${n}' already exists`)}function FE(t,e,n,i){return Ie.copyFileSync(e,n),i.preserveTimestamps&&ED(t.mode,e,n),Vl(n,t.mode)}function ED(t,e,n){return _D(t)&&SD(n,t),hD(e,n)}function _D(t){return(t&128)===0}function SD(t,e){return Vl(t,e|128)}function Vl(t,e){return Ie.chmodSync(t,e)}function hD(t,e){let n=Ie.statSync(t);return cD(e,n.atime,n.mtime)}function TD(t,e,n,i,a){return e?YE(n,i,a):vD(t.mode,n,i,a)}function vD(t,e,n,i){return Ie.mkdirSync(n),YE(e,n,i),Vl(n,t)}function YE(t,e,n){Ie.readdirSync(t).forEach(i=>mD(i,t,e,n))}function mD(t,e,n,i){let a=so.join(e,t),s=so.join(n,t);if(i.filter&&!i.filter(a,s))return;let{destStat:o}=uo.checkPathsSync(a,s,"copy",i);return HE(o,a,s,i)}function yD(t,e,n,i){let a=Ie.readlinkSync(e);if(i.dereference&&(a=so.resolve(process.cwd(),a)),t){let s;try{s=Ie.readlinkSync(n)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return Ie.symlinkSync(a,n);throw o}if(i.dereference&&(s=so.resolve(process.cwd(),s)),uo.isSrcSubdir(a,s))throw new Error(`Cannot copy '${a}' to a subdirectory of itself, '${s}'.`);if(uo.isSrcSubdir(s,a))throw new Error(`Cannot overwrite '${s}' with '${a}'.`);return AD(a,n)}else return Ie.symlinkSync(a,n)}function AD(t,e){return Ie.unlinkSync(e),Ie.symlinkSync(t,e)}qE.exports=fD});var qi=h((k7,$E)=>{"use strict";var OD=Ee().fromPromise;$E.exports={copy:OD(kE()),copySync:jE()}});var lo=h((H7,WE)=>{"use strict";var KE=Qr(),gD=Ee().fromCallback;function ND(t,e){KE.rm(t,{recursive:!0,force:!0},e)}function RD(t){KE.rmSync(t,{recursive:!0,force:!0})}WE.exports={remove:gD(ND),removeSync:RD}});var r_=h((F7,t_)=>{"use strict";var PD=Ee().fromPromise,JE=Le(),QE=L("path"),ZE=ut(),e_=lo(),zE=PD(async function(e){let n;try{n=await JE.readdir(e)}catch{return ZE.mkdirs(e)}return Promise.all(n.map(i=>e_.remove(QE.join(e,i))))});function XE(t){let e;try{e=JE.readdirSync(t)}catch{return ZE.mkdirsSync(t)}e.forEach(n=>{n=QE.join(t,n),e_.removeSync(n)})}t_.exports={emptyDirSync:XE,emptydirSync:XE,emptyDir:zE,emptydir:zE}});var a_=h((Y7,i_)=>{"use strict";var bD=Ee().fromPromise,n_=L("path"),wt=Le(),o_=ut();async function MD(t){let e;try{e=await wt.stat(t)}catch{}if(e&&e.isFile())return;let n=n_.dirname(t),i=null;try{i=await wt.stat(n)}catch(a){if(a.code==="ENOENT"){await o_.mkdirs(n),await wt.writeFile(t,"");return}else throw a}i.isDirectory()?await wt.writeFile(t,""):await wt.readdir(n)}function xD(t){let e;try{e=wt.statSync(t)}catch{}if(e&&e.isFile())return;let n=n_.dirname(t);try{wt.statSync(n).isDirectory()||wt.readdirSync(n)}catch(i){if(i&&i.code==="ENOENT")o_.mkdirsSync(n);else throw i}wt.writeFileSync(t,"")}i_.exports={createFile:bD(MD),createFileSync:xD}});var f_=h((q7,c_)=>{"use strict";var LD=Ee().fromPromise,s_=L("path"),jt=Le(),u_=ut(),{pathExists:ID}=qt(),{areIdentical:l_}=Or();async function CD(t,e){let n;try{n=await jt.lstat(e)}catch{}let i;try{i=await jt.lstat(t)}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}if(n&&l_(i,n))return;let a=s_.dirname(e);await ID(a)||await u_.mkdirs(a),await jt.link(t,e)}function wD(t,e){let n;try{n=jt.lstatSync(e)}catch{}try{let s=jt.lstatSync(t);if(n&&l_(s,n))return}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let i=s_.dirname(e);return jt.existsSync(i)||u_.mkdirsSync(i),jt.linkSync(t,e)}c_.exports={createLink:LD(CD),createLinkSync:wD}});var d_=h((j7,p_)=>{"use strict";var $t=L("path"),co=Le(),{pathExists:UD}=qt(),DD=Ee().fromPromise;async function VD(t,e){if($t.isAbsolute(t)){try{await co.lstat(t)}catch(s){throw s.message=s.message.replace("lstat","ensureSymlink"),s}return{toCwd:t,toDst:t}}let n=$t.dirname(e),i=$t.join(n,t);if(await UD(i))return{toCwd:i,toDst:t};try{await co.lstat(t)}catch(s){throw s.message=s.message.replace("lstat","ensureSymlink"),s}return{toCwd:t,toDst:$t.relative(n,t)}}function BD(t,e){if($t.isAbsolute(t)){if(!co.existsSync(t))throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}let n=$t.dirname(e),i=$t.join(n,t);if(co.existsSync(i))return{toCwd:i,toDst:t};if(!co.existsSync(t))throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:$t.relative(n,t)}}p_.exports={symlinkPaths:DD(VD),symlinkPathsSync:BD}});var S_=h(($7,__)=>{"use strict";var E_=Le(),GD=Ee().fromPromise;async function kD(t,e){if(e)return e;let n;try{n=await E_.lstat(t)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}function HD(t,e){if(e)return e;let n;try{n=E_.lstatSync(t)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}__.exports={symlinkType:GD(kD),symlinkTypeSync:HD}});var m_=h((K7,v_)=>{"use strict";var FD=Ee().fromPromise,h_=L("path"),ht=Le(),{mkdirs:YD,mkdirsSync:qD}=ut(),{symlinkPaths:jD,symlinkPathsSync:$D}=d_(),{symlinkType:KD,symlinkTypeSync:WD}=S_(),{pathExists:zD}=qt(),{areIdentical:T_}=Or();async function XD(t,e,n){let i;try{i=await ht.lstat(e)}catch{}if(i&&i.isSymbolicLink()){let[r,u]=await Promise.all([ht.stat(t),ht.stat(e)]);if(T_(r,u))return}let a=await jD(t,e);t=a.toDst;let s=await KD(a.toCwd,n),o=h_.dirname(e);return await zD(o)||await YD(o),ht.symlink(t,e,s)}function JD(t,e,n){let i;try{i=ht.lstatSync(e)}catch{}if(i&&i.isSymbolicLink()){let r=ht.statSync(t),u=ht.statSync(e);if(T_(r,u))return}let a=$D(t,e);t=a.toDst,n=WD(a.toCwd,n);let s=h_.dirname(e);return ht.existsSync(s)||qD(s),ht.symlinkSync(t,e,n)}v_.exports={createSymlink:FD(XD),createSymlinkSync:JD}});var b_=h((W7,P_)=>{"use strict";var{createFile:y_,createFileSync:A_}=a_(),{createLink:O_,createLinkSync:g_}=f_(),{createSymlink:N_,createSymlinkSync:R_}=m_();P_.exports={createFile:y_,createFileSync:A_,ensureFile:y_,ensureFileSync:A_,createLink:O_,createLinkSync:g_,ensureLink:O_,ensureLinkSync:g_,createSymlink:N_,createSymlinkSync:R_,ensureSymlink:N_,ensureSymlinkSync:R_}});var ji=h((z7,M_)=>{function QD(t,{EOL:e=`
|
9
|
+
`,finalEOL:n=!0,replacer:i=null,spaces:a}={}){let s=n?e:"";return JSON.stringify(t,i,a).replace(/\n/g,e)+s}function ZD(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t.replace(/^\uFEFF/,"")}M_.exports={stringify:QD,stripBom:ZD}});var C_=h((X7,I_)=>{var tn;try{tn=Qr()}catch{tn=L("fs")}var $i=Ee(),{stringify:x_,stripBom:L_}=ji();async function e1(t,e={}){typeof e=="string"&&(e={encoding:e});let n=e.fs||tn,i="throws"in e?e.throws:!0,a=await $i.fromCallback(n.readFile)(t,e);a=L_(a);let s;try{s=JSON.parse(a,e?e.reviver:null)}catch(o){if(i)throw o.message=`${t}: ${o.message}`,o;return null}return s}var t1=$i.fromPromise(e1);function r1(t,e={}){typeof e=="string"&&(e={encoding:e});let n=e.fs||tn,i="throws"in e?e.throws:!0;try{let a=n.readFileSync(t,e);return a=L_(a),JSON.parse(a,e.reviver)}catch(a){if(i)throw a.message=`${t}: ${a.message}`,a;return null}}async function n1(t,e,n={}){let i=n.fs||tn,a=x_(e,n);await $i.fromCallback(i.writeFile)(t,a,n)}var o1=$i.fromPromise(n1);function i1(t,e,n={}){let i=n.fs||tn,a=x_(e,n);return i.writeFileSync(t,a,n)}var a1={readFile:t1,readFileSync:r1,writeFile:o1,writeFileSync:i1};I_.exports=a1});var U_=h((J7,w_)=>{"use strict";var Ki=C_();w_.exports={readJson:Ki.readFile,readJsonSync:Ki.readFileSync,writeJson:Ki.writeFile,writeJsonSync:Ki.writeFileSync}});var Wi=h((Q7,B_)=>{"use strict";var s1=Ee().fromPromise,Bl=Le(),D_=L("path"),V_=ut(),u1=qt().pathExists;async function l1(t,e,n="utf-8"){let i=D_.dirname(t);return await u1(i)||await V_.mkdirs(i),Bl.writeFile(t,e,n)}function c1(t,...e){let n=D_.dirname(t);Bl.existsSync(n)||V_.mkdirsSync(n),Bl.writeFileSync(t,...e)}B_.exports={outputFile:s1(l1),outputFileSync:c1}});var k_=h((Z7,G_)=>{"use strict";var{stringify:f1}=ji(),{outputFile:p1}=Wi();async function d1(t,e,n={}){let i=f1(e,n);await p1(t,i,n)}G_.exports=d1});var F_=h((eQ,H_)=>{"use strict";var{stringify:E1}=ji(),{outputFileSync:_1}=Wi();function S1(t,e,n){let i=E1(e,n);_1(t,i,n)}H_.exports=S1});var q_=h((tQ,Y_)=>{"use strict";var h1=Ee().fromPromise,Ce=U_();Ce.outputJson=h1(k_());Ce.outputJsonSync=F_();Ce.outputJSON=Ce.outputJson;Ce.outputJSONSync=Ce.outputJsonSync;Ce.writeJSON=Ce.writeJson;Ce.writeJSONSync=Ce.writeJsonSync;Ce.readJSON=Ce.readJson;Ce.readJSONSync=Ce.readJsonSync;Y_.exports=Ce});var z_=h((rQ,W_)=>{"use strict";var T1=Le(),j_=L("path"),{copy:v1}=qi(),{remove:K_}=lo(),{mkdirp:m1}=ut(),{pathExists:y1}=qt(),$_=Or();async function A1(t,e,n={}){let i=n.overwrite||n.clobber||!1,{srcStat:a,isChangingCase:s=!1}=await $_.checkPaths(t,e,"move",n);await $_.checkParentPaths(t,a,e,"move");let o=j_.dirname(e);return j_.parse(o).root!==o&&await m1(o),O1(t,e,i,s)}async function O1(t,e,n,i){if(!i){if(n)await K_(e);else if(await y1(e))throw new Error("dest already exists.")}try{await T1.rename(t,e)}catch(a){if(a.code!=="EXDEV")throw a;await g1(t,e,n)}}async function g1(t,e,n){return await v1(t,e,{overwrite:n,errorOnExist:!0,preserveTimestamps:!0}),K_(t)}W_.exports=A1});var eS=h((nQ,Z_)=>{"use strict";var J_=Qr(),kl=L("path"),N1=qi().copySync,Q_=lo().removeSync,R1=ut().mkdirpSync,X_=Or();function P1(t,e,n){n=n||{};let i=n.overwrite||n.clobber||!1,{srcStat:a,isChangingCase:s=!1}=X_.checkPathsSync(t,e,"move",n);return X_.checkParentPathsSync(t,a,e,"move"),b1(e)||R1(kl.dirname(e)),M1(t,e,i,s)}function b1(t){let e=kl.dirname(t);return kl.parse(e).root===e}function M1(t,e,n,i){if(i)return Gl(t,e,n);if(n)return Q_(e),Gl(t,e,n);if(J_.existsSync(e))throw new Error("dest already exists.");return Gl(t,e,n)}function Gl(t,e,n){try{J_.renameSync(t,e)}catch(i){if(i.code!=="EXDEV")throw i;return x1(t,e,n)}}function x1(t,e,n){return N1(t,e,{overwrite:n,errorOnExist:!0,preserveTimestamps:!0}),Q_(t)}Z_.exports=P1});var rS=h((oQ,tS)=>{"use strict";var L1=Ee().fromPromise;tS.exports={move:L1(z_()),moveSync:eS()}});var Hl=h((iQ,nS)=>{"use strict";nS.exports={...Le(),...qi(),...r_(),...b_(),...q_(),...ut(),...rS(),...Wi(),...qt(),...lo()}});var pS=h((aQ,fS)=>{"use strict";function I1(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var Fl=I1(bU());function C1(t){return typeof t=="object"&&t!==null}function w1(t){return C1(t)&&typeof t.length=="number"}function Eo(t){return Array.isArray(t)?t:t===void 0?[]:w1(t)||t instanceof Set?Array.from(t):[t]}function U1(t){return typeof t=="object"&&t!==null}function D1(t){return U1(t)&&typeof t.length=="number"}function oS(t){return Array.isArray(t)?t:t===void 0?[]:D1(t)?Array.prototype.slice.call(t):[t]}function uS(t,e){let n=[],i=oS(arguments);return i.splice(0,2),oS(t).forEach((a,s)=>{let o=[];i.forEach(r=>{typeof r=="function"?o=o.concat(r(a)):o.push(r)}),e(a)&&n.push({index:s,replaceWithValue:o})}),n.reverse().forEach(a=>{let s=[a.index,1].concat(a.replaceWithValue);t.splice.apply(t,s)}),t}var pe={short:/^-([^\d-])$/,long:/^--(\S+)/,combinedShort:/^-[^\d-]{2,}$/,optEquals:/^(--\S+?)=(.*)/},Yl=class extends Array{load(e){if(this.clear(),e&&e!==process.argv)e=Eo(e);else{e=process.argv.slice(0);let n=process.execArgv.some(k1)?1:2;e.splice(0,n)}e.forEach(n=>this.push(String(n)))}clear(){this.length=0}expandOptionEqualsNotation(){if(this.some(e=>pe.optEquals.test(e))){let e=[];this.forEach(n=>{let i=n.match(pe.optEquals);i?e.push(i[1],i[2]):e.push(n)}),this.clear(),this.load(e)}}expandGetoptNotation(){this.hasCombinedShortOptions()&&uS(this,pe.combinedShort,V1)}hasCombinedShortOptions(){return this.some(e=>pe.combinedShort.test(e))}static from(e){let n=new this;return n.load(e),n}};function V1(t){return t=t.slice(1),t.split("").map(e=>"-"+e)}function Kl(t){return pe.optEquals.test(t)}function Wl(t){return(pe.short.test(t)||pe.long.test(t))&&!pe.optEquals.test(t)}function B1(t){return pe.long.test(t)&&!Kl(t)}function iS(t){return pe.short.test(t)?t.match(pe.short)[1]:B1(t)?t.match(pe.long)[1]:Kl(t)?t.match(pe.optEquals)[1].replace(/^--/,""):null}function G1(t){return!(Wl(t)||pe.combinedShort.test(t)||pe.optEquals.test(t))}function k1(t){return["--eval","-e"].indexOf(t)>-1||t.startsWith("--eval=")}function H1(t){return!isNaN(parseFloat(t))&&isFinite(t)}function F1(t){return t!==null&&typeof t=="object"&&t.constructor===Object}function Y1(t){return lS(t)&&typeof t.length=="number"}function lS(t){return typeof t=="object"&&t!==null}function zl(t){return typeof t<"u"}function q1(t){return typeof t=="string"}function j1(t){return typeof t=="boolean"}function cS(t){return typeof t=="function"}function $1(t){return cS(t)?/^class /.test(Function.prototype.toString.call(t)):!1}function K1(t){if(t===null)return!0;switch(typeof t){case"string":case"number":case"symbol":case"undefined":case"boolean":return!0;default:return!1}}function W1(t){if(t){let e=zl(Promise)&&t instanceof Promise,n=t.then&&typeof t.then=="function";return!!(e||n)}else return!1}function z1(t){return t===null||!zl(t)?!1:typeof t[Symbol.iterator]=="function"||typeof t[Symbol.asyncIterator]=="function"}var Ke={isNumber:H1,isString:q1,isBoolean:j1,isPlainObject:F1,isArrayLike:Y1,isObject:lS,isDefined:zl,isFunction:cS,isClass:$1,isPrimitive:K1,isPromise:W1,isIterable:z1},fo=class{constructor(e){this.name=e.name,this.type=e.type||String,this.alias=e.alias,this.multiple=e.multiple,this.lazyMultiple=e.lazyMultiple,this.defaultOption=e.defaultOption,this.defaultValue=e.defaultValue,this.group=e.group;for(let n in e)this[n]||(this[n]=e[n])}isBoolean(){return this.type===Boolean||Ke.isFunction(this.type)&&this.type.name==="Boolean"}isMultiple(){return this.multiple||this.lazyMultiple}static create(e){return new this(e)}},po=class extends Array{validate(e){this.some(_=>!_.name)&&Ut("INVALID_DEFINITIONS","Invalid option definitions: the `name` property is required on each definition"),this.some(_=>_.type&&typeof _.type!="function")&&Ut("INVALID_DEFINITIONS","Invalid option definitions: the `type` property must be a setter fuction (default: `Boolean`)");let a;this.some(_=>(a=_,Ke.isDefined(_.alias)&&Ke.isNumber(_.alias)))&&Ut("INVALID_DEFINITIONS","Invalid option definition: to avoid ambiguity an alias cannot be numeric [--"+a.name+" alias is -"+a.alias+"]"),this.some(_=>(a=_,Ke.isDefined(_.alias)&&_.alias.length!==1))&&Ut("INVALID_DEFINITIONS","Invalid option definition: an alias must be a single character"),this.some(_=>(a=_,_.alias==="-"))&&Ut("INVALID_DEFINITIONS",'Invalid option definition: an alias cannot be "-"'),sS(this.map(_=>e?_.name.toLowerCase():_.name))&&Ut("INVALID_DEFINITIONS","Two or more option definitions have the same name"),sS(this.map(_=>e&&Ke.isDefined(_.alias)?_.alias.toLowerCase():_.alias))&&Ut("INVALID_DEFINITIONS","Two or more option definitions have the same alias"),this.filter(_=>_.defaultOption===!0).length>1&&Ut("INVALID_DEFINITIONS","Only one option definition can be the defaultOption"),this.some(_=>(a=_,_.isBoolean()&&_.defaultOption))&&Ut("INVALID_DEFINITIONS",`A boolean option ["${a.name}"] can not also be the defaultOption.`)}get(e,n){if(Wl(e))if(pe.short.test(e)){let i=iS(e);if(n){let a=i.toLowerCase();return this.find(s=>Ke.isDefined(s.alias)&&s.alias.toLowerCase()===a)}else return this.find(a=>a.alias===i)}else{let i=iS(e);if(n){let a=i.toLowerCase();return this.find(s=>s.name.toLowerCase()===a)}else return this.find(a=>a.name===i)}else return this.find(i=>i.name===e)}getDefault(){return this.find(e=>e.defaultOption===!0)}isGrouped(){return this.some(e=>e.group)}whereGrouped(){return this.filter(aS)}whereNotGrouped(){return this.filter(e=>!aS(e))}whereDefaultValueSet(){return this.filter(e=>Ke.isDefined(e.defaultValue))}static from(e,n){if(e instanceof this)return e;let i=super.from(Eo(e),a=>fo.create(a));return i.validate(n),i}};function Ut(t,e){let n=new Error(e);throw n.name=t,n}function aS(t){return Eo(t.group).some(e=>e)}function sS(t){let e={};for(let n=0;n<t.length;n++){let i=t[n];if(e[i])return!0;Ke.isDefined(i)&&(e[i]=!0)}}var ql=class{constructor(e,n){this.options=Object.assign({},n),this.definitions=po.from(e,this.options.caseInsensitive),this.argv=Yl.from(this.options.argv),this.argv.hasCombinedShortOptions()&&uS(this.argv,pe.combinedShort.test.bind(pe.combinedShort),i=>(i=i.slice(1),i.split("").map(a=>({origArg:`-${i}`,arg:"-"+a}))))}*[Symbol.iterator](){let e=this.definitions,n,i,a,s,o=!1,r=!1,u;for(let l of this.argv){if(Ke.isPlainObject(l)&&(u=l.origArg,l=l.arg),r&&this.options.stopAtFirstUnknown){yield{event:"unknown_value",arg:l,name:"_unknown",value:void 0};continue}if(Wl(l))n=e.get(l,this.options.caseInsensitive),i=void 0,n?(i=n.isBoolean()?!0:null,s="set"):s="unknown_option";else if(Kl(l)){let p=l.match(pe.optEquals);n=e.get(p[1],this.options.caseInsensitive),n?n.isBoolean()?(yield{event:"unknown_value",arg:l,name:"_unknown",value:i,def:n},s="set",i=!0):(s="set",i=p[2]):s="unknown_option"}else G1(l)&&(n?(i=l,s="set"):(n=this.definitions.getDefault(),n&&!o?(i=l,s="set"):(s="unknown_value",n=void 0)));a=n?n.name:"_unknown";let c={event:s,arg:l,name:a,value:i,def:n};u&&(c.subArg=l,c.arg=u),yield c,a==="_unknown"&&(r=!0),n&&n.defaultOption&&!n.isMultiple()&&s==="set"&&(o=!0),n&&n.isBoolean()&&(n=void 0),n&&!n.multiple&&Ke.isDefined(i)&&i!==null&&(n=void 0),i=void 0,s=void 0,a=void 0,u=void 0}}},gr=new WeakMap,rn=class{constructor(e){this.definition=new fo(e),this.state=null,this.resetToDefault()}get(){return gr.get(this)}set(e){this._set(e,"set")}_set(e,n){let i=this.definition;if(i.isMultiple()){if(e!=null){let a=this.get();this.state==="default"&&(a.length=0),a.push(i.type(e)),this.state=n}}else if(!i.isMultiple()&&this.state==="set"){let a=new Error(`Singular option already set [${this.definition.name}=${this.get()}]`);throw a.name="ALREADY_SET",a.value=e,a.optionName=i.name,a}else e==null?gr.set(this,e):(gr.set(this,i.type(e)),this.state=n)}resetToDefault(){Ke.isDefined(this.definition.defaultValue)?this.definition.isMultiple()?gr.set(this,Eo(this.definition.defaultValue).slice()):gr.set(this,this.definition.defaultValue):this.definition.isMultiple()?gr.set(this,[]):gr.set(this,null),this.state="default"}static create(e){return e=new fo(e),e.isBoolean()?jl.create(e):new this(e)}},jl=class extends rn{set(e){super.set(!0)}static create(e){return new this(e)}},zi=class extends Map{constructor(e){super(),this.definitions=po.from(e),this.set("_unknown",rn.create({name:"_unknown",multiple:!0}));for(let n of this.definitions.whereDefaultValueSet())this.set(n.name,rn.create(n))}toObject(e){e=e||{};let n={};for(let i of this){let a=e.camelCase&&i[0]!=="_unknown"?Fl(i[0]):i[0],s=i[1];a==="_unknown"&&!s.get().length||(n[a]=s.get())}return e.skipUnknown&&delete n._unknown,n}},$l=class extends zi{toObject(e){let n=super.toObject({skipUnknown:e.skipUnknown}),i=super.toObject(e),a=i._unknown;delete i._unknown;let s={_all:i};return a&&a.length&&(s._unknown=a),this.definitions.whereGrouped().forEach(o=>{let r=e.camelCase?Fl(o.name):o.name,u=n[o.name];for(let l of Eo(o.group))s[l]=s[l]||{},Ke.isDefined(u)&&(s[l][r]=u)}),this.definitions.whereNotGrouped().forEach(o=>{let r=e.camelCase?Fl(o.name):o.name,u=n[o.name];Ke.isDefined(u)&&(s._none||(s._none={}),s._none[r]=u)}),s}};function X1(t,e){e=e||{},e.stopAtFirstUnknown&&(e.partial=!0),t=po.from(t,e.caseInsensitive);let n=new ql(t,{argv:e.argv,stopAtFirstUnknown:e.stopAtFirstUnknown,caseInsensitive:e.caseInsensitive}),i=t.isGrouped()?$l:zi,a=new i(t);for(let s of n){let o=s.subArg||s.arg;if(!e.partial){if(s.event==="unknown_value"){let u=new Error(`Unknown value: ${o}`);throw u.name="UNKNOWN_VALUE",u.value=o,u}else if(s.event==="unknown_option"){let u=new Error(`Unknown option: ${o}`);throw u.name="UNKNOWN_OPTION",u.optionName=o,u}}let r;a.has(s.name)?r=a.get(s.name):(r=rn.create(s.def),a.set(s.name,r)),s.name==="_unknown"?r.set(o):r.set(s.value)}return a.toObject({skipUnknown:!e.partial,camelCase:e.camelCase})}fS.exports=X1});function ce(t){for(var e={},n=t.length,i=0;i<n;i++){var a=t[i];a&&(e[String(a).toUpperCase().replace(/[-.]/g,"_")]=a)}return e}var Xl=m(()=>{});var dS,ES,_S,SS,hS,TS,vS,mS,yS,AS,OS,gS,NS,RS,PS,bS,MS,xS,LS,IS,CS,wS,US,DS,VS,BS,GS,kS,HS,FS,YS,qS,jS,$S,KS,WS,zS,XS,JS,QS,ZS,eh,th,rh,nh,oh,ih,ah,sh,uh,lh,ch,fh,ph,dh,Eh,_h,Sh,hh,Th,vh,mh,yh,Ah,Oh,gh,Nh,Rh,Ph,bh,Mh,xh,Lh,Ih,Ch,wh,Uh,Dh,Vh,Bh,Gh,kh,Hh,Fh,Yh,qh,jh,$h,Kh,Wh,zh,Xh,Jh,Qh,Zh,eT,tT,rT,nT,oT,iT,aT,sT,uT,lT,cT,fT,pT,dT,ET,_T,ST,hT,TT,vT,mT,yT,AT,OT,gT,NT,RT,PT,bT,MT,xT,LT,IT,J1,Q1,Z1,eV,tV,rV,nV,oV,iV,aV,sV,uV,lV,cV,fV,pV,dV,EV,_V,SV,hV,TV,vV,mV,yV,AV,OV,gV,NV,RV,PV,bV,MV,xV,LV,IV,CV,wV,UV,DV,VV,BV,GV,kV,HV,FV,YV,qV,jV,$V,KV,WV,zV,XV,JV,QV,ZV,e2,t2,r2,n2,o2,i2,a2,s2,u2,l2,c2,f2,p2,d2,E2,_2,S2,h2,T2,v2,m2,y2,A2,O2,g2,N2,R2,P2,b2,M2,x2,L2,I2,C2,w2,U2,D2,V2,B2,G2,k2,H2,F2,Y2,q2,j2,$2,K2,W2,z2,X2,J2,Q2,Z2,eB,tB,rB,nB,oB,iB,aB,sB,uB,lB,cB,fB,pB,dB,EB,_B,SB,hB,CT,wT,UT,DT,VT,BT,GT,kT,HT,FT,YT,qT,jT,$T,KT,WT,zT,XT,JT,QT,ZT,ev,tv,rv,nv,ov,iv,av,sv,uv,lv,cv,fv,pv,dv,Ev,_v,Sv,hv,Tv,vv,mv,yv,Av,Ov,gv,Nv,TB,vB,mB,yB,AB,OB,gB,NB,RB,PB,bB,MB,xB,LB,IB,CB,wB,UB,DB,VB,BB,GB,kB,HB,FB,YB,qB,jB,$B,KB,WB,zB,XB,JB,QB,ZB,eG,tG,rG,nG,oG,iG,aG,sG,uG,lG,cG,fG,Rv,Pv,bv,Mv,xv,Lv,Iv,Cv,wv,Uv,Dv,pG,dG,EG,_G,SG,hG,TG,vG,mG,yG,AG,OG,Vv,Bv,Gv,kv,Hv,gG,NG,RG,PG,bG,MG,Fv,Yv,qv,xG,LG,IG,CG,jv,$v,Kv,Wv,wG,UG,DG,VG,BG,zv,Xv,Jv,Qv,Zv,em,tm,GG,kG,HG,FG,YG,qG,jG,$G,rm,nm,om,im,am,KG,WG,zG,XG,JG,QG,sm,um,lm,cm,fm,pm,dm,Em,_m,Sm,hm,Tm,vm,mm,ym,Am,Om,gm,Nm,Rm,Pm,ZG,ek,tk,rk,nk,ok,ik,ak,sk,uk,lk,ck,fk,pk,dk,Ek,_k,Sk,hk,Tk,vk,mk,bm,Mm,xm,Lm,Im,yk,Ak,Ok,gk,Nk,Rk,Cm,wm,Pk,bk,Mk,Um,Dm,xk,Lk,Ik,Vm,Bm,Gm,km,Hm,Fm,Ym,qm,jm,$m,Km,Wm,zm,Xm,Jm,Qm,Zm,Ck,wk,Uk,Dk,Vk,Bk,Gk,kk,Hk,Fk,Yk,qk,jk,$k,Kk,Wk,zk,Xk,ey,ty,Jk,Qk,Zk,ry=m(()=>{Xl();dS="aws.lambda.invoked_arn",ES="db.system",_S="db.connection_string",SS="db.user",hS="db.jdbc.driver_classname",TS="db.name",vS="db.statement",mS="db.operation",yS="db.mssql.instance_name",AS="db.cassandra.keyspace",OS="db.cassandra.page_size",gS="db.cassandra.consistency_level",NS="db.cassandra.table",RS="db.cassandra.idempotence",PS="db.cassandra.speculative_execution_count",bS="db.cassandra.coordinator.id",MS="db.cassandra.coordinator.dc",xS="db.hbase.namespace",LS="db.redis.database_index",IS="db.mongodb.collection",CS="db.sql.table",wS="exception.type",US="exception.message",DS="exception.stacktrace",VS="exception.escaped",BS="faas.trigger",GS="faas.execution",kS="faas.document.collection",HS="faas.document.operation",FS="faas.document.time",YS="faas.document.name",qS="faas.time",jS="faas.cron",$S="faas.coldstart",KS="faas.invoked_name",WS="faas.invoked_provider",zS="faas.invoked_region",XS="net.transport",JS="net.peer.ip",QS="net.peer.port",ZS="net.peer.name",eh="net.host.ip",th="net.host.port",rh="net.host.name",nh="net.host.connection.type",oh="net.host.connection.subtype",ih="net.host.carrier.name",ah="net.host.carrier.mcc",sh="net.host.carrier.mnc",uh="net.host.carrier.icc",lh="peer.service",ch="enduser.id",fh="enduser.role",ph="enduser.scope",dh="thread.id",Eh="thread.name",_h="code.function",Sh="code.namespace",hh="code.filepath",Th="code.lineno",vh="http.method",mh="http.url",yh="http.target",Ah="http.host",Oh="http.scheme",gh="http.status_code",Nh="http.flavor",Rh="http.user_agent",Ph="http.request_content_length",bh="http.request_content_length_uncompressed",Mh="http.response_content_length",xh="http.response_content_length_uncompressed",Lh="http.server_name",Ih="http.route",Ch="http.client_ip",wh="aws.dynamodb.table_names",Uh="aws.dynamodb.consumed_capacity",Dh="aws.dynamodb.item_collection_metrics",Vh="aws.dynamodb.provisioned_read_capacity",Bh="aws.dynamodb.provisioned_write_capacity",Gh="aws.dynamodb.consistent_read",kh="aws.dynamodb.projection",Hh="aws.dynamodb.limit",Fh="aws.dynamodb.attributes_to_get",Yh="aws.dynamodb.index_name",qh="aws.dynamodb.select",jh="aws.dynamodb.global_secondary_indexes",$h="aws.dynamodb.local_secondary_indexes",Kh="aws.dynamodb.exclusive_start_table",Wh="aws.dynamodb.table_count",zh="aws.dynamodb.scan_forward",Xh="aws.dynamodb.segment",Jh="aws.dynamodb.total_segments",Qh="aws.dynamodb.count",Zh="aws.dynamodb.scanned_count",eT="aws.dynamodb.attribute_definitions",tT="aws.dynamodb.global_secondary_index_updates",rT="messaging.system",nT="messaging.destination",oT="messaging.destination_kind",iT="messaging.temp_destination",aT="messaging.protocol",sT="messaging.protocol_version",uT="messaging.url",lT="messaging.message_id",cT="messaging.conversation_id",fT="messaging.message_payload_size_bytes",pT="messaging.message_payload_compressed_size_bytes",dT="messaging.operation",ET="messaging.consumer_id",_T="messaging.rabbitmq.routing_key",ST="messaging.kafka.message_key",hT="messaging.kafka.consumer_group",TT="messaging.kafka.client_id",vT="messaging.kafka.partition",mT="messaging.kafka.tombstone",yT="rpc.system",AT="rpc.service",OT="rpc.method",gT="rpc.grpc.status_code",NT="rpc.jsonrpc.version",RT="rpc.jsonrpc.request_id",PT="rpc.jsonrpc.error_code",bT="rpc.jsonrpc.error_message",MT="message.type",xT="message.id",LT="message.compressed_size",IT="message.uncompressed_size",J1=dS,Q1=ES,Z1=_S,eV=SS,tV=hS,rV=TS,nV=vS,oV=mS,iV=yS,aV=AS,sV=OS,uV=gS,lV=NS,cV=RS,fV=PS,pV=bS,dV=MS,EV=xS,_V=LS,SV=IS,hV=CS,TV=wS,vV=US,mV=DS,yV=VS,AV=BS,OV=GS,gV=kS,NV=HS,RV=FS,PV=YS,bV=qS,MV=jS,xV=$S,LV=KS,IV=WS,CV=zS,wV=XS,UV=JS,DV=QS,VV=ZS,BV=eh,GV=th,kV=rh,HV=nh,FV=oh,YV=ih,qV=ah,jV=sh,$V=uh,KV=lh,WV=ch,zV=fh,XV=ph,JV=dh,QV=Eh,ZV=_h,e2=Sh,t2=hh,r2=Th,n2=vh,o2=mh,i2=yh,a2=Ah,s2=Oh,u2=gh,l2=Nh,c2=Rh,f2=Ph,p2=bh,d2=Mh,E2=xh,_2=Lh,S2=Ih,h2=Ch,T2=wh,v2=Uh,m2=Dh,y2=Vh,A2=Bh,O2=Gh,g2=kh,N2=Hh,R2=Fh,P2=Yh,b2=qh,M2=jh,x2=$h,L2=Kh,I2=Wh,C2=zh,w2=Xh,U2=Jh,D2=Qh,V2=Zh,B2=eT,G2=tT,k2=rT,H2=nT,F2=oT,Y2=iT,q2=aT,j2=sT,$2=uT,K2=lT,W2=cT,z2=fT,X2=pT,J2=dT,Q2=ET,Z2=_T,eB=ST,tB=hT,rB=TT,nB=vT,oB=mT,iB=yT,aB=AT,sB=OT,uB=gT,lB=NT,cB=RT,fB=PT,pB=bT,dB=MT,EB=xT,_B=LT,SB=IT,hB=ce([dS,ES,_S,SS,hS,TS,vS,mS,yS,AS,OS,gS,NS,RS,PS,bS,MS,xS,LS,IS,CS,wS,US,DS,VS,BS,GS,kS,HS,FS,YS,qS,jS,$S,KS,WS,zS,XS,JS,QS,ZS,eh,th,rh,nh,oh,ih,ah,sh,uh,lh,ch,fh,ph,dh,Eh,_h,Sh,hh,Th,vh,mh,yh,Ah,Oh,gh,Nh,Rh,Ph,bh,Mh,xh,Lh,Ih,Ch,wh,Uh,Dh,Vh,Bh,Gh,kh,Hh,Fh,Yh,qh,jh,$h,Kh,Wh,zh,Xh,Jh,Qh,Zh,eT,tT,rT,nT,oT,iT,aT,sT,uT,lT,cT,fT,pT,dT,ET,_T,ST,hT,TT,vT,mT,yT,AT,OT,gT,NT,RT,PT,bT,MT,xT,LT,IT]),CT="other_sql",wT="mssql",UT="mysql",DT="oracle",VT="db2",BT="postgresql",GT="redshift",kT="hive",HT="cloudscape",FT="hsqldb",YT="progress",qT="maxdb",jT="hanadb",$T="ingres",KT="firstsql",WT="edb",zT="cache",XT="adabas",JT="firebird",QT="derby",ZT="filemaker",ev="informix",tv="instantdb",rv="interbase",nv="mariadb",ov="netezza",iv="pervasive",av="pointbase",sv="sqlite",uv="sybase",lv="teradata",cv="vertica",fv="h2",pv="coldfusion",dv="cassandra",Ev="hbase",_v="mongodb",Sv="redis",hv="couchbase",Tv="couchdb",vv="cosmosdb",mv="dynamodb",yv="neo4j",Av="geode",Ov="elasticsearch",gv="memcached",Nv="cockroachdb",TB=CT,vB=wT,mB=UT,yB=DT,AB=VT,OB=BT,gB=GT,NB=kT,RB=HT,PB=FT,bB=YT,MB=qT,xB=jT,LB=$T,IB=KT,CB=WT,wB=zT,UB=XT,DB=JT,VB=QT,BB=ZT,GB=ev,kB=tv,HB=rv,FB=nv,YB=ov,qB=iv,jB=av,$B=sv,KB=uv,WB=lv,zB=cv,XB=fv,JB=pv,QB=dv,ZB=Ev,eG=_v,tG=Sv,rG=hv,nG=Tv,oG=vv,iG=mv,aG=yv,sG=Av,uG=Ov,lG=gv,cG=Nv,fG=ce([CT,wT,UT,DT,VT,BT,GT,kT,HT,FT,YT,qT,jT,$T,KT,WT,zT,XT,JT,QT,ZT,ev,tv,rv,nv,ov,iv,av,sv,uv,lv,cv,fv,pv,dv,Ev,_v,Sv,hv,Tv,vv,mv,yv,Av,Ov,gv,Nv]),Rv="all",Pv="each_quorum",bv="quorum",Mv="local_quorum",xv="one",Lv="two",Iv="three",Cv="local_one",wv="any",Uv="serial",Dv="local_serial",pG=Rv,dG=Pv,EG=bv,_G=Mv,SG=xv,hG=Lv,TG=Iv,vG=Cv,mG=wv,yG=Uv,AG=Dv,OG=ce([Rv,Pv,bv,Mv,xv,Lv,Iv,Cv,wv,Uv,Dv]),Vv="datasource",Bv="http",Gv="pubsub",kv="timer",Hv="other",gG=Vv,NG=Bv,RG=Gv,PG=kv,bG=Hv,MG=ce([Vv,Bv,Gv,kv,Hv]),Fv="insert",Yv="edit",qv="delete",xG=Fv,LG=Yv,IG=qv,CG=ce([Fv,Yv,qv]),jv="alibaba_cloud",$v="aws",Kv="azure",Wv="gcp",wG=jv,UG=$v,DG=Kv,VG=Wv,BG=ce([jv,$v,Kv,Wv]),zv="ip_tcp",Xv="ip_udp",Jv="ip",Qv="unix",Zv="pipe",em="inproc",tm="other",GG=zv,kG=Xv,HG=Jv,FG=Qv,YG=Zv,qG=em,jG=tm,$G=ce([zv,Xv,Jv,Qv,Zv,em,tm]),rm="wifi",nm="wired",om="cell",im="unavailable",am="unknown",KG=rm,WG=nm,zG=om,XG=im,JG=am,QG=ce([rm,nm,om,im,am]),sm="gprs",um="edge",lm="umts",cm="cdma",fm="evdo_0",pm="evdo_a",dm="cdma2000_1xrtt",Em="hsdpa",_m="hsupa",Sm="hspa",hm="iden",Tm="evdo_b",vm="lte",mm="ehrpd",ym="hspap",Am="gsm",Om="td_scdma",gm="iwlan",Nm="nr",Rm="nrnsa",Pm="lte_ca",ZG=sm,ek=um,tk=lm,rk=cm,nk=fm,ok=pm,ik=dm,ak=Em,sk=_m,uk=Sm,lk=hm,ck=Tm,fk=vm,pk=mm,dk=ym,Ek=Am,_k=Om,Sk=gm,hk=Nm,Tk=Rm,vk=Pm,mk=ce([sm,um,lm,cm,fm,pm,dm,Em,_m,Sm,hm,Tm,vm,mm,ym,Am,Om,gm,Nm,Rm,Pm]),bm="1.0",Mm="1.1",xm="2.0",Lm="SPDY",Im="QUIC",yk=bm,Ak=Mm,Ok=xm,gk=Lm,Nk=Im,Rk={HTTP_1_0:bm,HTTP_1_1:Mm,HTTP_2_0:xm,SPDY:Lm,QUIC:Im},Cm="queue",wm="topic",Pk=Cm,bk=wm,Mk=ce([Cm,wm]),Um="receive",Dm="process",xk=Um,Lk=Dm,Ik=ce([Um,Dm]),Vm=0,Bm=1,Gm=2,km=3,Hm=4,Fm=5,Ym=6,qm=7,jm=8,$m=9,Km=10,Wm=11,zm=12,Xm=13,Jm=14,Qm=15,Zm=16,Ck=Vm,wk=Bm,Uk=Gm,Dk=km,Vk=Hm,Bk=Fm,Gk=Ym,kk=qm,Hk=jm,Fk=$m,Yk=Km,qk=Wm,jk=zm,$k=Xm,Kk=Jm,Wk=Qm,zk=Zm,Xk={OK:Vm,CANCELLED:Bm,UNKNOWN:Gm,INVALID_ARGUMENT:km,DEADLINE_EXCEEDED:Hm,NOT_FOUND:Fm,ALREADY_EXISTS:Ym,PERMISSION_DENIED:qm,RESOURCE_EXHAUSTED:jm,FAILED_PRECONDITION:$m,ABORTED:Km,OUT_OF_RANGE:Wm,UNIMPLEMENTED:zm,INTERNAL:Xm,UNAVAILABLE:Jm,DATA_LOSS:Qm,UNAUTHENTICATED:Zm},ey="SENT",ty="RECEIVED",Jk=ey,Qk=ty,Zk=ce([ey,ty])});var ny=m(()=>{ry()});var oy,iy,ay,sy,uy,ly,cy,fy,py,dy,Ey,_y,Sy,hy,Ty,vy,my,yy,Ay,Oy,gy,Ny,Ry,Py,by,My,xy,Ly,Iy,Cy,wy,Uy,Dy,Vy,By,Gy,ky,Hy,Fy,Yy,qy,jy,$y,Ky,Wy,zy,Xy,Jy,Qy,Zy,eA,tA,rA,nA,oA,iA,aA,sA,uA,lA,cA,fA,pA,dA,EA,_A,SA,hA,TA,vA,mA,yA,AA,OA,gA,NA,RA,PA,bA,MA,xA,eH,tH,rH,nH,oH,iH,aH,sH,uH,lH,cH,fH,pH,dH,EH,_H,SH,hH,TH,vH,mH,yH,AH,OH,gH,NH,RH,PH,bH,MH,xH,LH,IH,CH,wH,UH,DH,VH,BH,GH,kH,HH,FH,YH,qH,jH,$H,KH,WH,zH,XH,JH,QH,ZH,e3,t3,r3,n3,o3,i3,a3,s3,u3,l3,c3,f3,p3,d3,E3,_3,S3,h3,T3,v3,m3,y3,A3,O3,g3,N3,R3,P3,LA,IA,CA,wA,b3,M3,x3,L3,I3,UA,DA,VA,BA,GA,kA,HA,FA,YA,qA,jA,$A,KA,WA,zA,XA,JA,C3,w3,U3,D3,V3,B3,G3,k3,H3,F3,Y3,q3,j3,$3,K3,W3,z3,X3,QA,ZA,J3,Q3,Z3,eO,tO,rO,nO,oO,iO,aO,eF,tF,rF,nF,oF,iF,aF,sF,sO,uO,lO,cO,fO,pO,dO,EO,_O,SO,hO,uF,lF,cF,fF,pF,dF,EF,_F,SF,hF,TF,vF,TO,vO,mO,yO,AO,OO,gO,NO,RO,PO,mF,yF,AF,OF,gF,NF,RF,PF,bF,MF,xF,bO=m(()=>{Xl();oy="cloud.provider",iy="cloud.account.id",ay="cloud.region",sy="cloud.availability_zone",uy="cloud.platform",ly="aws.ecs.container.arn",cy="aws.ecs.cluster.arn",fy="aws.ecs.launchtype",py="aws.ecs.task.arn",dy="aws.ecs.task.family",Ey="aws.ecs.task.revision",_y="aws.eks.cluster.arn",Sy="aws.log.group.names",hy="aws.log.group.arns",Ty="aws.log.stream.names",vy="aws.log.stream.arns",my="container.name",yy="container.id",Ay="container.runtime",Oy="container.image.name",gy="container.image.tag",Ny="deployment.environment",Ry="device.id",Py="device.model.identifier",by="device.model.name",My="faas.name",xy="faas.id",Ly="faas.version",Iy="faas.instance",Cy="faas.max_memory",wy="host.id",Uy="host.name",Dy="host.type",Vy="host.arch",By="host.image.name",Gy="host.image.id",ky="host.image.version",Hy="k8s.cluster.name",Fy="k8s.node.name",Yy="k8s.node.uid",qy="k8s.namespace.name",jy="k8s.pod.uid",$y="k8s.pod.name",Ky="k8s.container.name",Wy="k8s.replicaset.uid",zy="k8s.replicaset.name",Xy="k8s.deployment.uid",Jy="k8s.deployment.name",Qy="k8s.statefulset.uid",Zy="k8s.statefulset.name",eA="k8s.daemonset.uid",tA="k8s.daemonset.name",rA="k8s.job.uid",nA="k8s.job.name",oA="k8s.cronjob.uid",iA="k8s.cronjob.name",aA="os.type",sA="os.description",uA="os.name",lA="os.version",cA="process.pid",fA="process.executable.name",pA="process.executable.path",dA="process.command",EA="process.command_line",_A="process.command_args",SA="process.owner",hA="process.runtime.name",TA="process.runtime.version",vA="process.runtime.description",mA="service.name",yA="service.namespace",AA="service.instance.id",OA="service.version",gA="telemetry.sdk.name",NA="telemetry.sdk.language",RA="telemetry.sdk.version",PA="telemetry.auto.version",bA="webengine.name",MA="webengine.version",xA="webengine.description",eH=oy,tH=iy,rH=ay,nH=sy,oH=uy,iH=ly,aH=cy,sH=fy,uH=py,lH=dy,cH=Ey,fH=_y,pH=Sy,dH=hy,EH=Ty,_H=vy,SH=my,hH=yy,TH=Ay,vH=Oy,mH=gy,yH=Ny,AH=Ry,OH=Py,gH=by,NH=My,RH=xy,PH=Ly,bH=Iy,MH=Cy,xH=wy,LH=Uy,IH=Dy,CH=Vy,wH=By,UH=Gy,DH=ky,VH=Hy,BH=Fy,GH=Yy,kH=qy,HH=jy,FH=$y,YH=Ky,qH=Wy,jH=zy,$H=Xy,KH=Jy,WH=Qy,zH=Zy,XH=eA,JH=tA,QH=rA,ZH=nA,e3=oA,t3=iA,r3=aA,n3=sA,o3=uA,i3=lA,a3=cA,s3=fA,u3=pA,l3=dA,c3=EA,f3=_A,p3=SA,d3=hA,E3=TA,_3=vA,S3=mA,h3=yA,T3=AA,v3=OA,m3=gA,y3=NA,A3=RA,O3=PA,g3=bA,N3=MA,R3=xA,P3=ce([oy,iy,ay,sy,uy,ly,cy,fy,py,dy,Ey,_y,Sy,hy,Ty,vy,my,yy,Ay,Oy,gy,Ny,Ry,Py,by,My,xy,Ly,Iy,Cy,wy,Uy,Dy,Vy,By,Gy,ky,Hy,Fy,Yy,qy,jy,$y,Ky,Wy,zy,Xy,Jy,Qy,Zy,eA,tA,rA,nA,oA,iA,aA,sA,uA,lA,cA,fA,pA,dA,EA,_A,SA,hA,TA,vA,mA,yA,AA,OA,gA,NA,RA,PA,bA,MA,xA]),LA="alibaba_cloud",IA="aws",CA="azure",wA="gcp",b3=LA,M3=IA,x3=CA,L3=wA,I3=ce([LA,IA,CA,wA]),UA="alibaba_cloud_ecs",DA="alibaba_cloud_fc",VA="aws_ec2",BA="aws_ecs",GA="aws_eks",kA="aws_lambda",HA="aws_elastic_beanstalk",FA="azure_vm",YA="azure_container_instances",qA="azure_aks",jA="azure_functions",$A="azure_app_service",KA="gcp_compute_engine",WA="gcp_cloud_run",zA="gcp_kubernetes_engine",XA="gcp_cloud_functions",JA="gcp_app_engine",C3=UA,w3=DA,U3=VA,D3=BA,V3=GA,B3=kA,G3=HA,k3=FA,H3=YA,F3=qA,Y3=jA,q3=$A,j3=KA,$3=WA,K3=zA,W3=XA,z3=JA,X3=ce([UA,DA,VA,BA,GA,kA,HA,FA,YA,qA,jA,$A,KA,WA,zA,XA,JA]),QA="ec2",ZA="fargate",J3=QA,Q3=ZA,Z3=ce([QA,ZA]),eO="amd64",tO="arm32",rO="arm64",nO="ia64",oO="ppc32",iO="ppc64",aO="x86",eF=eO,tF=tO,rF=rO,nF=nO,oF=oO,iF=iO,aF=aO,sF=ce([eO,tO,rO,nO,oO,iO,aO]),sO="windows",uO="linux",lO="darwin",cO="freebsd",fO="netbsd",pO="openbsd",dO="dragonflybsd",EO="hpux",_O="aix",SO="solaris",hO="z_os",uF=sO,lF=uO,cF=lO,fF=cO,pF=fO,dF=pO,EF=dO,_F=EO,SF=_O,hF=SO,TF=hO,vF=ce([sO,uO,lO,cO,fO,pO,dO,EO,_O,SO,hO]),TO="cpp",vO="dotnet",mO="erlang",yO="go",AO="java",OO="nodejs",gO="php",NO="python",RO="ruby",PO="webjs",mF=TO,yF=vO,AF=mO,OF=yO,gF=AO,NF=OO,RF=gO,PF=NO,bF=RO,MF=PO,xF=ce([TO,vO,mO,yO,AO,OO,gO,NO,RO,PO])});var MO=m(()=>{bO()});var _o={};it(_o,{AWSECSLAUNCHTYPEVALUES_EC2:()=>J3,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>Q3,AwsEcsLaunchtypeValues:()=>Z3,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>C3,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>w3,CLOUDPLATFORMVALUES_AWS_EC2:()=>U3,CLOUDPLATFORMVALUES_AWS_ECS:()=>D3,CLOUDPLATFORMVALUES_AWS_EKS:()=>V3,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>G3,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>B3,CLOUDPLATFORMVALUES_AZURE_AKS:()=>F3,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>q3,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>H3,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>Y3,CLOUDPLATFORMVALUES_AZURE_VM:()=>k3,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>z3,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>W3,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>$3,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>j3,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>K3,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>b3,CLOUDPROVIDERVALUES_AWS:()=>M3,CLOUDPROVIDERVALUES_AZURE:()=>x3,CLOUDPROVIDERVALUES_GCP:()=>L3,CloudPlatformValues:()=>X3,CloudProviderValues:()=>I3,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>pG,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>mG,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>dG,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>vG,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>_G,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>AG,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>SG,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>EG,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>yG,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>TG,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>hG,DBSYSTEMVALUES_ADABAS:()=>UB,DBSYSTEMVALUES_CACHE:()=>wB,DBSYSTEMVALUES_CASSANDRA:()=>QB,DBSYSTEMVALUES_CLOUDSCAPE:()=>RB,DBSYSTEMVALUES_COCKROACHDB:()=>cG,DBSYSTEMVALUES_COLDFUSION:()=>JB,DBSYSTEMVALUES_COSMOSDB:()=>oG,DBSYSTEMVALUES_COUCHBASE:()=>rG,DBSYSTEMVALUES_COUCHDB:()=>nG,DBSYSTEMVALUES_DB2:()=>AB,DBSYSTEMVALUES_DERBY:()=>VB,DBSYSTEMVALUES_DYNAMODB:()=>iG,DBSYSTEMVALUES_EDB:()=>CB,DBSYSTEMVALUES_ELASTICSEARCH:()=>uG,DBSYSTEMVALUES_FILEMAKER:()=>BB,DBSYSTEMVALUES_FIREBIRD:()=>DB,DBSYSTEMVALUES_FIRSTSQL:()=>IB,DBSYSTEMVALUES_GEODE:()=>sG,DBSYSTEMVALUES_H2:()=>XB,DBSYSTEMVALUES_HANADB:()=>xB,DBSYSTEMVALUES_HBASE:()=>ZB,DBSYSTEMVALUES_HIVE:()=>NB,DBSYSTEMVALUES_HSQLDB:()=>PB,DBSYSTEMVALUES_INFORMIX:()=>GB,DBSYSTEMVALUES_INGRES:()=>LB,DBSYSTEMVALUES_INSTANTDB:()=>kB,DBSYSTEMVALUES_INTERBASE:()=>HB,DBSYSTEMVALUES_MARIADB:()=>FB,DBSYSTEMVALUES_MAXDB:()=>MB,DBSYSTEMVALUES_MEMCACHED:()=>lG,DBSYSTEMVALUES_MONGODB:()=>eG,DBSYSTEMVALUES_MSSQL:()=>vB,DBSYSTEMVALUES_MYSQL:()=>mB,DBSYSTEMVALUES_NEO4J:()=>aG,DBSYSTEMVALUES_NETEZZA:()=>YB,DBSYSTEMVALUES_ORACLE:()=>yB,DBSYSTEMVALUES_OTHER_SQL:()=>TB,DBSYSTEMVALUES_PERVASIVE:()=>qB,DBSYSTEMVALUES_POINTBASE:()=>jB,DBSYSTEMVALUES_POSTGRESQL:()=>OB,DBSYSTEMVALUES_PROGRESS:()=>bB,DBSYSTEMVALUES_REDIS:()=>tG,DBSYSTEMVALUES_REDSHIFT:()=>gB,DBSYSTEMVALUES_SQLITE:()=>$B,DBSYSTEMVALUES_SYBASE:()=>KB,DBSYSTEMVALUES_TERADATA:()=>WB,DBSYSTEMVALUES_VERTICA:()=>zB,DbCassandraConsistencyLevelValues:()=>OG,DbSystemValues:()=>fG,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>IG,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>LG,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>xG,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>wG,FAASINVOKEDPROVIDERVALUES_AWS:()=>UG,FAASINVOKEDPROVIDERVALUES_AZURE:()=>DG,FAASINVOKEDPROVIDERVALUES_GCP:()=>VG,FAASTRIGGERVALUES_DATASOURCE:()=>gG,FAASTRIGGERVALUES_HTTP:()=>NG,FAASTRIGGERVALUES_OTHER:()=>bG,FAASTRIGGERVALUES_PUBSUB:()=>RG,FAASTRIGGERVALUES_TIMER:()=>PG,FaasDocumentOperationValues:()=>CG,FaasInvokedProviderValues:()=>BG,FaasTriggerValues:()=>MG,HOSTARCHVALUES_AMD64:()=>eF,HOSTARCHVALUES_ARM32:()=>tF,HOSTARCHVALUES_ARM64:()=>rF,HOSTARCHVALUES_IA64:()=>nF,HOSTARCHVALUES_PPC32:()=>oF,HOSTARCHVALUES_PPC64:()=>iF,HOSTARCHVALUES_X86:()=>aF,HTTPFLAVORVALUES_HTTP_1_0:()=>yk,HTTPFLAVORVALUES_HTTP_1_1:()=>Ak,HTTPFLAVORVALUES_HTTP_2_0:()=>Ok,HTTPFLAVORVALUES_QUIC:()=>Nk,HTTPFLAVORVALUES_SPDY:()=>gk,HostArchValues:()=>sF,HttpFlavorValues:()=>Rk,MESSAGETYPEVALUES_RECEIVED:()=>Qk,MESSAGETYPEVALUES_SENT:()=>Jk,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>Pk,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>bk,MESSAGINGOPERATIONVALUES_PROCESS:()=>Lk,MESSAGINGOPERATIONVALUES_RECEIVE:()=>xk,MessageTypeValues:()=>Zk,MessagingDestinationKindValues:()=>Mk,MessagingOperationValues:()=>Ik,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>rk,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>ik,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>ek,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>pk,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>nk,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>ok,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>ck,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>ZG,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>Ek,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>ak,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>uk,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>dk,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>sk,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>lk,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>Sk,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>fk,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>vk,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>hk,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>Tk,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>_k,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>tk,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>zG,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>XG,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>JG,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>KG,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>WG,NETTRANSPORTVALUES_INPROC:()=>qG,NETTRANSPORTVALUES_IP:()=>HG,NETTRANSPORTVALUES_IP_TCP:()=>GG,NETTRANSPORTVALUES_IP_UDP:()=>kG,NETTRANSPORTVALUES_OTHER:()=>jG,NETTRANSPORTVALUES_PIPE:()=>YG,NETTRANSPORTVALUES_UNIX:()=>FG,NetHostConnectionSubtypeValues:()=>mk,NetHostConnectionTypeValues:()=>QG,NetTransportValues:()=>$G,OSTYPEVALUES_AIX:()=>SF,OSTYPEVALUES_DARWIN:()=>cF,OSTYPEVALUES_DRAGONFLYBSD:()=>EF,OSTYPEVALUES_FREEBSD:()=>fF,OSTYPEVALUES_HPUX:()=>_F,OSTYPEVALUES_LINUX:()=>lF,OSTYPEVALUES_NETBSD:()=>pF,OSTYPEVALUES_OPENBSD:()=>dF,OSTYPEVALUES_SOLARIS:()=>hF,OSTYPEVALUES_WINDOWS:()=>uF,OSTYPEVALUES_Z_OS:()=>TF,OsTypeValues:()=>vF,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>Yk,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>Gk,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>wk,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>Wk,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>Vk,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>Fk,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>$k,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>Dk,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>Bk,RPCGRPCSTATUSCODEVALUES_OK:()=>Ck,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>qk,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>kk,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>Hk,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>zk,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>Kk,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>jk,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>Uk,RpcGrpcStatusCodeValues:()=>Xk,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>R2,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>B2,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>O2,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>v2,SEMATTRS_AWS_DYNAMODB_COUNT:()=>D2,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>L2,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>M2,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>G2,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>P2,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>m2,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>N2,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>x2,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>g2,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>y2,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>A2,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>V2,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>C2,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>w2,SEMATTRS_AWS_DYNAMODB_SELECT:()=>b2,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>I2,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>T2,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>U2,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>J1,SEMATTRS_CODE_FILEPATH:()=>t2,SEMATTRS_CODE_FUNCTION:()=>ZV,SEMATTRS_CODE_LINENO:()=>r2,SEMATTRS_CODE_NAMESPACE:()=>e2,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>uV,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>dV,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>pV,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>cV,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>aV,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>sV,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>fV,SEMATTRS_DB_CASSANDRA_TABLE:()=>lV,SEMATTRS_DB_CONNECTION_STRING:()=>Z1,SEMATTRS_DB_HBASE_NAMESPACE:()=>EV,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>tV,SEMATTRS_DB_MONGODB_COLLECTION:()=>SV,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>iV,SEMATTRS_DB_NAME:()=>rV,SEMATTRS_DB_OPERATION:()=>oV,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>_V,SEMATTRS_DB_SQL_TABLE:()=>hV,SEMATTRS_DB_STATEMENT:()=>nV,SEMATTRS_DB_SYSTEM:()=>Q1,SEMATTRS_DB_USER:()=>eV,SEMATTRS_ENDUSER_ID:()=>WV,SEMATTRS_ENDUSER_ROLE:()=>zV,SEMATTRS_ENDUSER_SCOPE:()=>XV,SEMATTRS_EXCEPTION_ESCAPED:()=>yV,SEMATTRS_EXCEPTION_MESSAGE:()=>vV,SEMATTRS_EXCEPTION_STACKTRACE:()=>mV,SEMATTRS_EXCEPTION_TYPE:()=>TV,SEMATTRS_FAAS_COLDSTART:()=>xV,SEMATTRS_FAAS_CRON:()=>MV,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>gV,SEMATTRS_FAAS_DOCUMENT_NAME:()=>PV,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>NV,SEMATTRS_FAAS_DOCUMENT_TIME:()=>RV,SEMATTRS_FAAS_EXECUTION:()=>OV,SEMATTRS_FAAS_INVOKED_NAME:()=>LV,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>IV,SEMATTRS_FAAS_INVOKED_REGION:()=>CV,SEMATTRS_FAAS_TIME:()=>bV,SEMATTRS_FAAS_TRIGGER:()=>AV,SEMATTRS_HTTP_CLIENT_IP:()=>h2,SEMATTRS_HTTP_FLAVOR:()=>l2,SEMATTRS_HTTP_HOST:()=>a2,SEMATTRS_HTTP_METHOD:()=>n2,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>f2,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>p2,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>d2,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>E2,SEMATTRS_HTTP_ROUTE:()=>S2,SEMATTRS_HTTP_SCHEME:()=>s2,SEMATTRS_HTTP_SERVER_NAME:()=>_2,SEMATTRS_HTTP_STATUS_CODE:()=>u2,SEMATTRS_HTTP_TARGET:()=>i2,SEMATTRS_HTTP_URL:()=>o2,SEMATTRS_HTTP_USER_AGENT:()=>c2,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>_B,SEMATTRS_MESSAGE_ID:()=>EB,SEMATTRS_MESSAGE_TYPE:()=>dB,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>SB,SEMATTRS_MESSAGING_CONSUMER_ID:()=>Q2,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>W2,SEMATTRS_MESSAGING_DESTINATION:()=>H2,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>F2,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>rB,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>tB,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>eB,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>nB,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>oB,SEMATTRS_MESSAGING_MESSAGE_ID:()=>K2,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>X2,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>z2,SEMATTRS_MESSAGING_OPERATION:()=>J2,SEMATTRS_MESSAGING_PROTOCOL:()=>q2,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>j2,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>Z2,SEMATTRS_MESSAGING_SYSTEM:()=>k2,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>Y2,SEMATTRS_MESSAGING_URL:()=>$2,SEMATTRS_NET_HOST_CARRIER_ICC:()=>$V,SEMATTRS_NET_HOST_CARRIER_MCC:()=>qV,SEMATTRS_NET_HOST_CARRIER_MNC:()=>jV,SEMATTRS_NET_HOST_CARRIER_NAME:()=>YV,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>FV,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>HV,SEMATTRS_NET_HOST_IP:()=>BV,SEMATTRS_NET_HOST_NAME:()=>kV,SEMATTRS_NET_HOST_PORT:()=>GV,SEMATTRS_NET_PEER_IP:()=>UV,SEMATTRS_NET_PEER_NAME:()=>VV,SEMATTRS_NET_PEER_PORT:()=>DV,SEMATTRS_NET_TRANSPORT:()=>wV,SEMATTRS_PEER_SERVICE:()=>KV,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>uB,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>fB,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>pB,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>cB,SEMATTRS_RPC_JSONRPC_VERSION:()=>lB,SEMATTRS_RPC_METHOD:()=>sB,SEMATTRS_RPC_SERVICE:()=>aB,SEMATTRS_RPC_SYSTEM:()=>iB,SEMATTRS_THREAD_ID:()=>JV,SEMATTRS_THREAD_NAME:()=>QV,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>aH,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>iH,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>sH,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>uH,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>lH,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>cH,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>fH,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>dH,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>pH,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>_H,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>EH,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>tH,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>nH,SEMRESATTRS_CLOUD_PLATFORM:()=>oH,SEMRESATTRS_CLOUD_PROVIDER:()=>eH,SEMRESATTRS_CLOUD_REGION:()=>rH,SEMRESATTRS_CONTAINER_ID:()=>hH,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>vH,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>mH,SEMRESATTRS_CONTAINER_NAME:()=>SH,SEMRESATTRS_CONTAINER_RUNTIME:()=>TH,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>yH,SEMRESATTRS_DEVICE_ID:()=>AH,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>OH,SEMRESATTRS_DEVICE_MODEL_NAME:()=>gH,SEMRESATTRS_FAAS_ID:()=>RH,SEMRESATTRS_FAAS_INSTANCE:()=>bH,SEMRESATTRS_FAAS_MAX_MEMORY:()=>MH,SEMRESATTRS_FAAS_NAME:()=>NH,SEMRESATTRS_FAAS_VERSION:()=>PH,SEMRESATTRS_HOST_ARCH:()=>CH,SEMRESATTRS_HOST_ID:()=>xH,SEMRESATTRS_HOST_IMAGE_ID:()=>UH,SEMRESATTRS_HOST_IMAGE_NAME:()=>wH,SEMRESATTRS_HOST_IMAGE_VERSION:()=>DH,SEMRESATTRS_HOST_NAME:()=>LH,SEMRESATTRS_HOST_TYPE:()=>IH,SEMRESATTRS_K8S_CLUSTER_NAME:()=>VH,SEMRESATTRS_K8S_CONTAINER_NAME:()=>YH,SEMRESATTRS_K8S_CRONJOB_NAME:()=>t3,SEMRESATTRS_K8S_CRONJOB_UID:()=>e3,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>JH,SEMRESATTRS_K8S_DAEMONSET_UID:()=>XH,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>KH,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>$H,SEMRESATTRS_K8S_JOB_NAME:()=>ZH,SEMRESATTRS_K8S_JOB_UID:()=>QH,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>kH,SEMRESATTRS_K8S_NODE_NAME:()=>BH,SEMRESATTRS_K8S_NODE_UID:()=>GH,SEMRESATTRS_K8S_POD_NAME:()=>FH,SEMRESATTRS_K8S_POD_UID:()=>HH,SEMRESATTRS_K8S_REPLICASET_NAME:()=>jH,SEMRESATTRS_K8S_REPLICASET_UID:()=>qH,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>zH,SEMRESATTRS_K8S_STATEFULSET_UID:()=>WH,SEMRESATTRS_OS_DESCRIPTION:()=>n3,SEMRESATTRS_OS_NAME:()=>o3,SEMRESATTRS_OS_TYPE:()=>r3,SEMRESATTRS_OS_VERSION:()=>i3,SEMRESATTRS_PROCESS_COMMAND:()=>l3,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>f3,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>c3,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>s3,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>u3,SEMRESATTRS_PROCESS_OWNER:()=>p3,SEMRESATTRS_PROCESS_PID:()=>a3,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>_3,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>d3,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>E3,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>T3,SEMRESATTRS_SERVICE_NAME:()=>S3,SEMRESATTRS_SERVICE_NAMESPACE:()=>h3,SEMRESATTRS_SERVICE_VERSION:()=>v3,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>O3,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>y3,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>m3,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>A3,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>R3,SEMRESATTRS_WEBENGINE_NAME:()=>g3,SEMRESATTRS_WEBENGINE_VERSION:()=>N3,SemanticAttributes:()=>hB,SemanticResourceAttributes:()=>P3,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>mF,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>yF,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>AF,TELEMETRYSDKLANGUAGEVALUES_GO:()=>OF,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>gF,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>NF,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>RF,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>PF,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>bF,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>MF,TelemetrySdkLanguageValues:()=>xF});var So=m(()=>{ny();MO()});var LO=h((xO,Xi)=>{(function(t){"use strict";let e="(0?\\d+|0x[a-f0-9]+)",n={fourOctet:new RegExp(`^${e}\\.${e}\\.${e}\\.${e}$`,"i"),threeOctet:new RegExp(`^${e}\\.${e}\\.${e}$`,"i"),twoOctet:new RegExp(`^${e}\\.${e}$`,"i"),longValue:new RegExp(`^${e}$`,"i")},i=new RegExp("^0[0-7]+$","i"),a=new RegExp("^0x[a-f0-9]+$","i"),s="%[0-9a-z]{1,}",o="(?:[0-9a-f]+::?)+",r={zoneIndex:new RegExp(s,"i"),native:new RegExp(`^(::)?(${o})?([0-9a-f]+)?(::)?(${s})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${e}\\.${e}\\.${e}\\.${e}(${s})?)$`,"i"),transitional:new RegExp(`^((?:${o})|(?:::)(?:${o})?)${e}\\.${e}\\.${e}\\.${e}(${s})?$`,"i")};function u(f,S){if(f.indexOf("::")!==f.lastIndexOf("::"))return null;let v=0,T=-1,A=(f.match(r.zoneIndex)||[])[0],O,N;for(A&&(A=A.substring(1),f=f.replace(/%.+$/,""));(T=f.indexOf(":",T+1))>=0;)v++;if(f.substr(0,2)==="::"&&v--,f.substr(-2,2)==="::"&&v--,v>S)return null;for(N=S-v,O=":";N--;)O+="0:";return f=f.replace("::",O),f[0]===":"&&(f=f.slice(1)),f[f.length-1]===":"&&(f=f.slice(0,-1)),S=function(){let D=f.split(":"),G=[];for(let F=0;F<D.length;F++)G.push(parseInt(D[F],16));return G}(),{parts:S,zoneId:A}}function l(f,S,v,T){if(f.length!==S.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let A=0,O;for(;T>0;){if(O=v-T,O<0&&(O=0),f[A]>>O!==S[A]>>O)return!1;T-=v,A+=1}return!0}function c(f){if(a.test(f))return parseInt(f,16);if(f[0]==="0"&&!isNaN(parseInt(f[1],10))){if(i.test(f))return parseInt(f,8);throw new Error(`ipaddr: cannot parse ${f} as octal`)}return parseInt(f,10)}function p(f,S){for(;f.length<S;)f=`0${f}`;return f}let _={};_.IPv4=function(){function f(S){if(S.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let v,T;for(v=0;v<S.length;v++)if(T=S[v],!(0<=T&&T<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=S}return f.prototype.SpecialRanges={unspecified:[[new f([0,0,0,0]),8]],broadcast:[[new f([255,255,255,255]),32]],multicast:[[new f([224,0,0,0]),4]],linkLocal:[[new f([169,254,0,0]),16]],loopback:[[new f([127,0,0,0]),8]],carrierGradeNat:[[new f([100,64,0,0]),10]],private:[[new f([10,0,0,0]),8],[new f([172,16,0,0]),12],[new f([192,168,0,0]),16]],reserved:[[new f([192,0,0,0]),24],[new f([192,0,2,0]),24],[new f([192,88,99,0]),24],[new f([198,18,0,0]),15],[new f([198,51,100,0]),24],[new f([203,0,113,0]),24],[new f([240,0,0,0]),4]],as112:[[new f([192,175,48,0]),24],[new f([192,31,196,0]),24]],amt:[[new f([192,52,193,0]),24]]},f.prototype.kind=function(){return"ipv4"},f.prototype.match=function(S,v){let T;if(v===void 0&&(T=S,S=T[0],v=T[1]),S.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return l(this.octets,S.octets,8,v)},f.prototype.prefixLengthFromSubnetMask=function(){let S=0,v=!1,T={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},A,O,N;for(A=3;A>=0;A-=1)if(O=this.octets[A],O in T){if(N=T[O],v&&N!==0)return null;N!==8&&(v=!0),S+=N}else return null;return 32-S},f.prototype.range=function(){return _.subnetMatch(this,this.SpecialRanges)},f.prototype.toByteArray=function(){return this.octets.slice(0)},f.prototype.toIPv4MappedAddress=function(){return _.IPv6.parse(`::ffff:${this.toString()}`)},f.prototype.toNormalizedString=function(){return this.toString()},f.prototype.toString=function(){return this.octets.join(".")},f}(),_.IPv4.broadcastAddressFromCIDR=function(f){try{let S=this.parseCIDR(f),v=S[0].toByteArray(),T=this.subnetMaskFromPrefixLength(S[1]).toByteArray(),A=[],O=0;for(;O<4;)A.push(parseInt(v[O],10)|parseInt(T[O],10)^255),O++;return new this(A)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},_.IPv4.isIPv4=function(f){return this.parser(f)!==null},_.IPv4.isValid=function(f){try{return new this(this.parser(f)),!0}catch{return!1}},_.IPv4.isValidCIDR=function(f){try{return this.parseCIDR(f),!0}catch{return!1}},_.IPv4.isValidFourPartDecimal=function(f){return!!(_.IPv4.isValid(f)&&f.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},_.IPv4.networkAddressFromCIDR=function(f){let S,v,T,A,O;try{for(S=this.parseCIDR(f),T=S[0].toByteArray(),O=this.subnetMaskFromPrefixLength(S[1]).toByteArray(),A=[],v=0;v<4;)A.push(parseInt(T[v],10)&parseInt(O[v],10)),v++;return new this(A)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},_.IPv4.parse=function(f){let S=this.parser(f);if(S===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(S)},_.IPv4.parseCIDR=function(f){let S;if(S=f.match(/^(.+)\/(\d+)$/)){let v=parseInt(S[2]);if(v>=0&&v<=32){let T=[this.parse(S[1]),v];return Object.defineProperty(T,"toString",{value:function(){return this.join("/")}}),T}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},_.IPv4.parser=function(f){let S,v,T;if(S=f.match(n.fourOctet))return function(){let A=S.slice(1,6),O=[];for(let N=0;N<A.length;N++)v=A[N],O.push(c(v));return O}();if(S=f.match(n.longValue)){if(T=c(S[1]),T>4294967295||T<0)throw new Error("ipaddr: address outside defined range");return function(){let A=[],O;for(O=0;O<=24;O+=8)A.push(T>>O&255);return A}().reverse()}else return(S=f.match(n.twoOctet))?function(){let A=S.slice(1,4),O=[];if(T=c(A[1]),T>16777215||T<0)throw new Error("ipaddr: address outside defined range");return O.push(c(A[0])),O.push(T>>16&255),O.push(T>>8&255),O.push(T&255),O}():(S=f.match(n.threeOctet))?function(){let A=S.slice(1,5),O=[];if(T=c(A[2]),T>65535||T<0)throw new Error("ipaddr: address outside defined range");return O.push(c(A[0])),O.push(c(A[1])),O.push(T>>8&255),O.push(T&255),O}():null},_.IPv4.subnetMaskFromPrefixLength=function(f){if(f=parseInt(f),f<0||f>32)throw new Error("ipaddr: invalid IPv4 prefix length");let S=[0,0,0,0],v=0,T=Math.floor(f/8);for(;v<T;)S[v]=255,v++;return T<4&&(S[T]=Math.pow(2,f%8)-1<<8-f%8),new this(S)},_.IPv6=function(){function f(S,v){let T,A;if(S.length===16)for(this.parts=[],T=0;T<=14;T+=2)this.parts.push(S[T]<<8|S[T+1]);else if(S.length===8)this.parts=S;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(T=0;T<this.parts.length;T++)if(A=this.parts[T],!(0<=A&&A<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");v&&(this.zoneId=v)}return f.prototype.SpecialRanges={unspecified:[new f([0,0,0,0,0,0,0,0]),128],linkLocal:[new f([65152,0,0,0,0,0,0,0]),10],multicast:[new f([65280,0,0,0,0,0,0,0]),8],loopback:[new f([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new f([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new f([0,0,0,0,0,65535,0,0]),96],discard:[new f([256,0,0,0,0,0,0,0]),64],rfc6145:[new f([0,0,0,0,65535,0,0,0]),96],rfc6052:[new f([100,65435,0,0,0,0,0,0]),96],"6to4":[new f([8194,0,0,0,0,0,0,0]),16],teredo:[new f([8193,0,0,0,0,0,0,0]),32],benchmarking:[new f([8193,2,0,0,0,0,0,0]),48],amt:[new f([8193,3,0,0,0,0,0,0]),32],as112v6:[[new f([8193,4,274,0,0,0,0,0]),48],[new f([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new f([8193,16,0,0,0,0,0,0]),28],orchid2:[new f([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new f([8193,48,0,0,0,0,0,0]),28],reserved:[[new f([8193,0,0,0,0,0,0,0]),23],[new f([8193,3512,0,0,0,0,0,0]),32]]},f.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},f.prototype.kind=function(){return"ipv6"},f.prototype.match=function(S,v){let T;if(v===void 0&&(T=S,S=T[0],v=T[1]),S.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return l(this.parts,S.parts,16,v)},f.prototype.prefixLengthFromSubnetMask=function(){let S=0,v=!1,T={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},A,O;for(let N=7;N>=0;N-=1)if(A=this.parts[N],A in T){if(O=T[A],v&&O!==0)return null;O!==16&&(v=!0),S+=O}else return null;return 128-S},f.prototype.range=function(){return _.subnetMatch(this,this.SpecialRanges)},f.prototype.toByteArray=function(){let S,v=[],T=this.parts;for(let A=0;A<T.length;A++)S=T[A],v.push(S>>8),v.push(S&255);return v},f.prototype.toFixedLengthString=function(){let S=function(){let T=[];for(let A=0;A<this.parts.length;A++)T.push(p(this.parts[A].toString(16),4));return T}.call(this).join(":"),v="";return this.zoneId&&(v=`%${this.zoneId}`),S+v},f.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let S=this.parts.slice(-2),v=S[0],T=S[1];return new _.IPv4([v>>8,v&255,T>>8,T&255])},f.prototype.toNormalizedString=function(){let S=function(){let T=[];for(let A=0;A<this.parts.length;A++)T.push(this.parts[A].toString(16));return T}.call(this).join(":"),v="";return this.zoneId&&(v=`%${this.zoneId}`),S+v},f.prototype.toRFC5952String=function(){let S=/((^|:)(0(:|$)){2,})/g,v=this.toNormalizedString(),T=0,A=-1,O;for(;O=S.exec(v);)O[0].length>A&&(T=O.index,A=O[0].length);return A<0?v:`${v.substring(0,T)}::${v.substring(T+A)}`},f.prototype.toString=function(){return this.toRFC5952String()},f}(),_.IPv6.broadcastAddressFromCIDR=function(f){try{let S=this.parseCIDR(f),v=S[0].toByteArray(),T=this.subnetMaskFromPrefixLength(S[1]).toByteArray(),A=[],O=0;for(;O<16;)A.push(parseInt(v[O],10)|parseInt(T[O],10)^255),O++;return new this(A)}catch(S){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${S})`)}},_.IPv6.isIPv6=function(f){return this.parser(f)!==null},_.IPv6.isValid=function(f){if(typeof f=="string"&&f.indexOf(":")===-1)return!1;try{let S=this.parser(f);return new this(S.parts,S.zoneId),!0}catch{return!1}},_.IPv6.isValidCIDR=function(f){if(typeof f=="string"&&f.indexOf(":")===-1)return!1;try{return this.parseCIDR(f),!0}catch{return!1}},_.IPv6.networkAddressFromCIDR=function(f){let S,v,T,A,O;try{for(S=this.parseCIDR(f),T=S[0].toByteArray(),O=this.subnetMaskFromPrefixLength(S[1]).toByteArray(),A=[],v=0;v<16;)A.push(parseInt(T[v],10)&parseInt(O[v],10)),v++;return new this(A)}catch(N){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${N})`)}},_.IPv6.parse=function(f){let S=this.parser(f);if(S.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(S.parts,S.zoneId)},_.IPv6.parseCIDR=function(f){let S,v,T;if((v=f.match(/^(.+)\/(\d+)$/))&&(S=parseInt(v[2]),S>=0&&S<=128))return T=[this.parse(v[1]),S],Object.defineProperty(T,"toString",{value:function(){return this.join("/")}}),T;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},_.IPv6.parser=function(f){let S,v,T,A,O,N;if(T=f.match(r.deprecatedTransitional))return this.parser(`::ffff:${T[1]}`);if(r.native.test(f))return u(f,8);if((T=f.match(r.transitional))&&(N=T[6]||"",S=T[1],T[1].endsWith("::")||(S=S.slice(0,-1)),S=u(S+N,6),S.parts)){for(O=[parseInt(T[2]),parseInt(T[3]),parseInt(T[4]),parseInt(T[5])],v=0;v<O.length;v++)if(A=O[v],!(0<=A&&A<=255))return null;return S.parts.push(O[0]<<8|O[1]),S.parts.push(O[2]<<8|O[3]),{parts:S.parts,zoneId:S.zoneId}}return null},_.IPv6.subnetMaskFromPrefixLength=function(f){if(f=parseInt(f),f<0||f>128)throw new Error("ipaddr: invalid IPv6 prefix length");let S=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],v=0,T=Math.floor(f/8);for(;v<T;)S[v]=255,v++;return T<16&&(S[T]=Math.pow(2,f%8)-1<<8-f%8),new this(S)},_.fromByteArray=function(f){let S=f.length;if(S===4)return new _.IPv4(f);if(S===16)return new _.IPv6(f);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},_.isValid=function(f){return _.IPv6.isValid(f)||_.IPv4.isValid(f)},_.isValidCIDR=function(f){return _.IPv6.isValidCIDR(f)||_.IPv4.isValidCIDR(f)},_.parse=function(f){if(_.IPv6.isValid(f))return _.IPv6.parse(f);if(_.IPv4.isValid(f))return _.IPv4.parse(f);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},_.parseCIDR=function(f){try{return _.IPv6.parseCIDR(f)}catch{try{return _.IPv4.parseCIDR(f)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},_.process=function(f){let S=this.parse(f);return S.kind()==="ipv6"&&S.isIPv4MappedAddress()?S.toIPv4Address():S},_.subnetMatch=function(f,S,v){let T,A,O,N;v==null&&(v="unicast");for(A in S)if(Object.prototype.hasOwnProperty.call(S,A)){for(O=S[A],O[0]&&!(O[0]instanceof Array)&&(O=[O]),T=0;T<O.length;T++)if(N=O[T],f.kind()===N[0].kind()&&f.match.apply(f,N))return A}return v},typeof Xi<"u"&&Xi.exports?Xi.exports=_:t.ipaddr=_})(xO)});var Jl=h(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.getPeerAttributes=Kt.getStatusAttributes=Kt.getMethodAttributes=void 0;var Tt=(So(),Y(_o)),LF=LO(),IF=Nl();function CF(t){let[,e,n]=t.split("/");return{[Tt.SEMATTRS_RPC_SYSTEM]:"grpc",[Tt.SEMATTRS_RPC_SERVICE]:e,[Tt.SEMATTRS_RPC_METHOD]:n}}Kt.getMethodAttributes=CF;function wF(t){return{[Tt.SEMATTRS_RPC_GRPC_STATUS_CODE]:t,"rpc.grpc.status_text":IF.Status[t]}}Kt.getStatusAttributes=wF;function UF(t){let e=t.lastIndexOf(":");if(e===-1)return{[Tt.SEMATTRS_NET_PEER_NAME]:t};let n=t.slice(0,e),i=+t.slice(e+1);return Number.isNaN(i)?{[Tt.SEMATTRS_NET_PEER_NAME]:t}:LF.isValid(n)?{[Tt.SEMATTRS_NET_PEER_IP]:n,[Tt.SEMATTRS_NET_PEER_PORT]:i}:{[Tt.SEMATTRS_NET_PEER_NAME]:n,[Tt.SEMATTRS_NET_PEER_PORT]:i}}Kt.getPeerAttributes=UF});var Ql=h(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.metadataGetter=nn.metadataSetter=void 0;nn.metadataSetter={set(t,e,n){t.set(e,n)}};nn.metadataGetter={get:(t,e)=>t.get(e),keys:t=>Array.from(t,([e])=>e)}});var IO=h(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.VERSION=void 0;Ji.VERSION="0.1.15"});var Zl=h(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.emitSpanEvents=Wt.getSpanName=Wt.tracer=void 0;var DF=(b(),Y(Re)),CO=(So(),Y(_o)),VF=IO();Wt.tracer=DF.trace.getTracer("nice-grpc-opentelemetry",VF.VERSION);function BF(t){return t.slice(1)}Wt.getSpanName=BF;async function*GF(t,e,n){let i=1;for await(let a of t)e.addEvent("message",{[CO.SEMATTRS_MESSAGE_TYPE]:n,[CO.SEMATTRS_MESSAGE_ID]:i++}),yield a}Wt.emitSpanEvents=GF});var tc=h(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.bindAsyncGenerator=void 0;var ec=(b(),Y(Re));function wO(t,e){return{next:ec.context.bind(t,e.next.bind(e)),return:ec.context.bind(t,e.return.bind(e)),throw:ec.context.bind(t,e.throw.bind(e)),[Symbol.asyncIterator](){return wO(t,e[Symbol.asyncIterator]())}}}Qi.bindAsyncGenerator=wO});var DO=h(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.openTelemetryServerMiddleware=void 0;var ho=(b(),Y(Re)),UO=(So(),Y(_o)),kF=(rE(),Y(tE)),on=Nl(),rc=Jl(),HF=Ql(),Zi=Zl(),FF=tc();function YF(){return(t,e)=>Zi.tracer.startActiveSpan((0,Zi.getSpanName)(t.method.path),{kind:ho.SpanKind.SERVER},ho.propagation.extract(ho.ROOT_CONTEXT,e.metadata,HF.metadataGetter),n=>(0,FF.bindAsyncGenerator)(ho.context.active(),qF(n,t,e)))}ea.openTelemetryServerMiddleware=YF;async function*qF(t,e,n){let i={...(0,rc.getMethodAttributes)(e.method.path),...(0,rc.getPeerAttributes)(n.peer)};t.setAttributes(i);let a=on.Status.OK,s;try{let o;if(e.requestStream?o=(0,Zi.emitSpanEvents)(e.request,t,UO.MESSAGETYPEVALUES_RECEIVED):o=e.request,e.responseStream){yield*(0,Zi.emitSpanEvents)(e.next(o,n),t,UO.MESSAGETYPEVALUES_SENT);return}else return yield*e.next(o,n)}catch(o){throw o instanceof on.ServerError?(a=o.code,s=o.details):(0,kF.isAbortError)(o)?(a=on.Status.CANCELLED,s="The operation was cancelled"):(a=on.Status.UNKNOWN,s="Unknown server error occurred",t.recordException(o)),o}finally{let o=(0,rc.getStatusAttributes)(a);t.setAttributes(o),a!==on.Status.OK&&t.setStatus({code:ho.SpanStatusCode.ERROR,message:`${on.Status[a]}: ${s}`}),t.end()}}});var GO=h(ra=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});ra.openTelemetryClientMiddleware=void 0;var To=(b(),Y(Re)),VO=(So(),Y(_o)),jF=(rE(),Y(tE)),zt=Nl(),BO=Jl(),$F=Ql(),ta=Zl(),KF=tc();function WF(){return(t,e)=>ta.tracer.startActiveSpan((0,ta.getSpanName)(t.method.path),{kind:To.SpanKind.CLIENT},n=>{let i=(0,zt.Metadata)(e.metadata);return To.propagation.inject(To.context.active(),i,$F.metadataSetter),(0,KF.bindAsyncGenerator)(To.context.active(),zF(n,t,{...e,metadata:i}))})}ra.openTelemetryClientMiddleware=WF;async function*zF(t,e,n){let i=(0,BO.getMethodAttributes)(e.method.path);t.setAttributes(i);let a=!1,s=zt.Status.OK,o;try{let r;if(e.requestStream?r=(0,ta.emitSpanEvents)(e.request,t,VO.MESSAGETYPEVALUES_SENT):r=e.request,e.responseStream){yield*(0,ta.emitSpanEvents)(e.next(r,n),t,VO.MESSAGETYPEVALUES_RECEIVED),a=!0;return}else{let u=yield*e.next(r,n);return a=!0,u}}catch(r){throw a=!0,r instanceof zt.ClientError?(s=r.code,o=r.details):(0,jF.isAbortError)(r)?(s=zt.Status.CANCELLED,o="The operation was cancelled"):(s=zt.Status.UNKNOWN,o="Unknown server error occurred",t.recordException(r)),r}finally{a||(s=zt.Status.CANCELLED,o="Stream iteration was aborted by client, e.g. by breaking from the for .. of loop");let r=(0,BO.getStatusAttributes)(s);t.setAttributes(r),s!==zt.Status.OK&&t.setStatus({code:To.SpanStatusCode.ERROR,message:`${zt.Status[s]}: ${o}`}),t.end()}}});var kO=h(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.openTelemetryClientMiddleware=an.openTelemetryServerMiddleware=void 0;var XF=DO();Object.defineProperty(an,"openTelemetryServerMiddleware",{enumerable:!0,get:function(){return XF.openTelemetryServerMiddleware}});var JF=GO();Object.defineProperty(an,"openTelemetryClientMiddleware",{enumerable:!0,get:function(){return JF.openTelemetryClientMiddleware}})});var He=h((HQ,qO)=>{"use strict";var vo=class extends Error{constructor(e){super(`Format functions must be synchronous taking a two arguments: (info, opts)
|
10
10
|
Found: ${e.toString().split(`
|
11
11
|
`)[0]}
|
12
|
-
`),Error.captureStackTrace(this,
|
13
|
-
`)!=-1,
|
14
|
-
`));return!0}
|
15
|
-
${
|
16
|
-
${
|
17
|
-
${
|
18
|
-
${
|
19
|
-
${
|
20
|
-
${
|
21
|
-
${
|
22
|
-
${
|
23
|
-
${
|
24
|
-
${
|
25
|
-
${
|
26
|
-
${
|
27
|
-
${
|
28
|
-
${
|
29
|
-
${
|
30
|
-
${
|
31
|
-
${
|
32
|
-
${O}`),v.pop(),`{${B}}`}case"number":return isFinite(f)?String(f):e?e(f):"null";case"boolean":return f===!0?"true":"false";case"undefined":return;case"bigint":if(o)return String(f);default:return e?e(f):void 0}}function c(m,f,v){switch(typeof f){case"string":return er(f);case"object":{if(f===null)return"null";if(typeof f.toJSON=="function"){if(f=f.toJSON(m),typeof f!="object")return c(m,f,v);if(f===null)return"null"}if(v.indexOf(f)!==-1)return n;let S="";if(Array.isArray(f)){if(f.length===0)return"[]";if(u<v.length+1)return'"[Array]"';v.push(f);let L=Math.min(f.length,i),B=0;for(;B<L-1;B++){let ae=c(String(B),f[B],v);S+=ae!==void 0?ae:"null",S+=","}let j=c(String(B),f[B],v);if(S+=j!==void 0?j:"null",f.length-1>i){let ae=f.length-i-1;S+=`,"... ${Ar(ae)} not stringified"`}return v.pop(),`[${S}]`}let _=Object.keys(f),O=_.length;if(O===0)return"{}";if(u<v.length+1)return'"[Object]"';let g="",b=Math.min(O,i);ic(f)&&(S+=I0(f,",",i),_=_.slice(f.length),b-=f.length,g=","),a&&(_=nc(_)),v.push(f);for(let L=0;L<b;L++){let B=_[L],j=c(B,f[B],v);j!==void 0&&(S+=`${g}${er(B)}:${j}`,g=",")}if(O>i){let L=O-i;S+=`${g}"...":"${Ar(L)} not stringified"`}return v.pop(),`{${S}}`}case"number":return isFinite(f)?String(f):e?e(f):"null";case"boolean":return f===!0?"true":"false";case"undefined":return;case"bigint":if(o)return String(f);default:return e?e(f):void 0}}function p(m,f,v){if(arguments.length>1){let S="";if(typeof v=="number"?S=" ".repeat(Math.min(v,10)):typeof v=="string"&&(S=v.slice(0,10)),f!=null){if(typeof f=="function")return r("",{"":m},[],f,S,"");if(Array.isArray(f))return s("",m,[],Fq(f),S,"")}if(S.length!==0)return l("",m,[],S,"")}return c("",m,[])}return p}});var uc=y((hQ,D0)=>{"use strict";var jq=Be(),{MESSAGE:Yq}=fe(),$q=vi();function Kq(t,e){return typeof e=="bigint"?e.toString():e}D0.exports=jq((t,e)=>{let n=$q.configure(e);return t[Yq]=n(t,e.replacer||Kq,e.space),t})});var k0=y((mQ,V0)=>{"use strict";var zq=Be();V0.exports=zq((t,e)=>e.message?(t.message=`[${e.label}] ${t.message}`,t):(t.label=e.label,t))});var G0=y((vQ,B0)=>{"use strict";var Wq=Be(),{MESSAGE:Xq}=fe(),Jq=vi();B0.exports=Wq(t=>{let e={};return t.message&&(e["@message"]=t.message,delete t.message),t.timestamp&&(e["@timestamp"]=t.timestamp,delete t.timestamp),e["@fields"]=t,t[Xq]=Jq(e),t})});var F0=y((yQ,q0)=>{"use strict";var Qq=Be();function Zq(t,e,n){let o=e.reduce((u,i)=>(u[i]=t[i],delete t[i],u),{}),a=Object.keys(t).reduce((u,i)=>(u[i]=t[i],delete t[i],u),{});return Object.assign(t,o,{[n]:a}),t}function eF(t,e,n){return t[n]=e.reduce((o,a)=>(o[a]=t[a],delete t[a],o),{}),t}q0.exports=Qq((t,e={})=>{let n="metadata";e.key&&(n=e.key);let o=[];return!e.fillExcept&&!e.fillWith&&(o.push("level"),o.push("message")),e.fillExcept&&(o=e.fillExcept),o.length>0?Zq(t,o,n):e.fillWith?eF(t,e.fillWith,n):t})});var j0=y((_Q,H0)=>{var dn=1e3,hn=dn*60,mn=hn*60,xr=mn*24,tF=xr*7,rF=xr*365.25;H0.exports=function(t,e){e=e||{};var n=typeof t;if(n==="string"&&t.length>0)return nF(t);if(n==="number"&&isFinite(t))return e.long?oF(t):iF(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function nF(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),o=(e[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return n*rF;case"weeks":case"week":case"w":return n*tF;case"days":case"day":case"d":return n*xr;case"hours":case"hour":case"hrs":case"hr":case"h":return n*mn;case"minutes":case"minute":case"mins":case"min":case"m":return n*hn;case"seconds":case"second":case"secs":case"sec":case"s":return n*dn;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function iF(t){var e=Math.abs(t);return e>=xr?Math.round(t/xr)+"d":e>=mn?Math.round(t/mn)+"h":e>=hn?Math.round(t/hn)+"m":e>=dn?Math.round(t/dn)+"s":t+"ms"}function oF(t){var e=Math.abs(t);return e>=xr?aa(t,e,xr,"day"):e>=mn?aa(t,e,mn,"hour"):e>=hn?aa(t,e,hn,"minute"):e>=dn?aa(t,e,dn,"second"):t+" ms"}function aa(t,e,n,o){var a=e>=n*1.5;return Math.round(t/n)+" "+o+(a?"s":"")}});var $0=y((yi,Y0)=>{"use strict";var aF=Be(),uF=j0();Y0.exports=aF(t=>{let e=+new Date;return yi.diff=e-(yi.prevTime||e),yi.prevTime=e,t.ms=`+${uF(yi.diff)}`,t})});var W0=y((SQ,z0)=>{"use strict";var sF=M("util").inspect,lF=Be(),{LEVEL:cF,MESSAGE:K0,SPLAT:fF}=fe();z0.exports=lF((t,e={})=>{let n=Object.assign({},t);return delete n[cF],delete n[K0],delete n[fF],t[K0]=sF(n,!1,e.depth||null,e.colorize),t})});var X0=y((EQ,sa)=>{"use strict";var{MESSAGE:pF}=fe(),ua=class{constructor(e){this.template=e}transform(e){return e[pF]=this.template(e),e}};sa.exports=t=>new ua(t);sa.exports.Printf=sa.exports.Format=ua});var Z0=y((TQ,Q0)=>{"use strict";var dF=Be(),{MESSAGE:J0}=fe(),hF=vi();Q0.exports=dF(t=>{let e=hF(Object.assign({},t,{level:void 0,message:void 0,splat:void 0})),n=t.padding&&t.padding[t.level]||"";return e!=="{}"?t[J0]=`${t.level}:${n} ${t.message} ${e}`:t[J0]=`${t.level}:${n} ${t.message}`,t})});var rA=y((gQ,tA)=>{"use strict";var mF=M("util"),{SPLAT:eA}=fe(),vF=/%[scdjifoO%]/g,yF=/%%/g,sc=class{constructor(e){this.options=e}_splat(e,n){let o=e.message,a=e[eA]||e.splat||[],u=o.match(yF),i=u&&u.length||0,s=n.length-i-a.length,l=s<0?a.splice(s,-1*s):[],c=l.length;if(c)for(let p=0;p<c;p++)Object.assign(e,l[p]);return e.message=mF.format(o,...a),e}transform(e){let n=e.message,o=e[eA]||e.splat;if(!o||!o.length)return e;let a=n&&n.match&&n.match(vF);if(!a&&(o||o.length)){let u=o.length>1?o.splice(0):o,i=u.length;if(i)for(let r=0;r<i;r++)Object.assign(e,u[r]);return e}return a?this._splat(e,a):e}};tA.exports=t=>new sc(t)});var SA={};it(SA,{assign:()=>nr,default:()=>bF,defaultI18n:()=>lc,format:()=>yA,parse:()=>_A,setGlobalDateI18n:()=>mA,setGlobalDateMasks:()=>vA});function pA(t,e){for(var n=[],o=0,a=t.length;o<a;o++)n.push(t[o].substr(0,e));return n}function nr(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var o=0,a=e;o<a.length;o++){var u=a[o];for(var i in u)t[i]=u[i]}return t}function _A(t,e,n){if(n===void 0&&(n={}),typeof e!="string")throw new Error("Invalid format in fecha parse");if(e=ca[e]||e,t.length>1e3)return null;var o=new Date,a={year:o.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},u=[],i=[],r=e.replace(fA,function(L,B){return i.push(iA(B)),"@@@"}),s={},l={};r=iA(r).replace(cA,function(L){var B=OF[L],j=B[0],ae=B[1],$=B[3];if(s[j])throw new Error("Invalid format. "+j+" specified twice in format");return s[j]=!0,$&&(l[$]=!0),u.push(B),"("+ae+")"}),Object.keys(l).forEach(function(L){if(!s[L])throw new Error("Invalid format. "+L+" is required in specified format")}),r=r.replace(/@@@/g,function(){return i.shift()});var c=t.match(new RegExp(r,"i"));if(!c)return null;for(var p=nr(nr({},la),n),m=1;m<c.length;m++){var f=u[m-1],v=f[0],S=f[2],_=S?S(c[m],p):+c[m];if(_==null)return null;a[v]=_}a.isPm===1&&a.hour!=null&&+a.hour!=12?a.hour=+a.hour+12:a.isPm===0&&+a.hour==12&&(a.hour=0);var O;if(a.timezoneOffset==null){O=new Date(a.year,a.month,a.day,a.hour,a.minute,a.second,a.millisecond);for(var g=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],m=0,b=g.length;m<b;m++)if(s[g[m][0]]&&a[g[m][0]]!==O[g[m][1]]())return null}else if(O=new Date(Date.UTC(a.year,a.month,a.day,a.hour,a.minute-a.timezoneOffset,a.second,a.millisecond)),a.month>11||a.month<0||a.day>31||a.day<1||a.hour>23||a.hour<0||a.minute>59||a.minute<0||a.second>59||a.second<0)return null;return O}var cA,rr,tr,_F,SF,_i,fA,nA,dA,hA,EF,TF,lc,la,mA,iA,Ge,gF,oA,aA,uA,sA,lA,OF,ca,vA,yA,AF,bF,EA=E(()=>{cA=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,rr="\\d\\d?",tr="\\d\\d",_F="\\d{3}",SF="\\d{4}",_i="[^\\s]+",fA=/\[([^]*?)\]/gm;nA=function(t){return function(e,n){var o=n[t].map(function(u){return u.toLowerCase()}),a=o.indexOf(e.toLowerCase());return a>-1?a:null}};dA=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],hA=["January","February","March","April","May","June","July","August","September","October","November","December"],EF=pA(hA,3),TF=pA(dA,3),lc={dayNamesShort:TF,dayNames:dA,monthNamesShort:EF,monthNames:hA,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!==10?1:0)*t%10]}},la=nr({},lc),mA=function(t){return la=nr(la,t)},iA=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},Ge=function(t,e){for(e===void 0&&(e=2),t=String(t);t.length<e;)t="0"+t;return t},gF={D:function(t){return String(t.getDate())},DD:function(t){return Ge(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return String(t.getDay())},dd:function(t){return Ge(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return String(t.getMonth()+1)},MM:function(t){return Ge(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return Ge(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return Ge(t.getFullYear(),4)},h:function(t){return String(t.getHours()%12||12)},hh:function(t){return Ge(t.getHours()%12||12)},H:function(t){return String(t.getHours())},HH:function(t){return Ge(t.getHours())},m:function(t){return String(t.getMinutes())},mm:function(t){return Ge(t.getMinutes())},s:function(t){return String(t.getSeconds())},ss:function(t){return Ge(t.getSeconds())},S:function(t){return String(Math.round(t.getMilliseconds()/100))},SS:function(t){return Ge(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return Ge(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+Ge(Math.floor(Math.abs(e)/60)*100+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+Ge(Math.floor(Math.abs(e)/60),2)+":"+Ge(Math.abs(e)%60,2)}},oA=function(t){return+t-1},aA=[null,rr],uA=[null,_i],sA=["isPm",_i,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],lA=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var n=+e[1]*60+parseInt(e[2],10);return e[0]==="+"?n:-n}return 0}],OF={D:["day",rr],DD:["day",tr],Do:["day",rr+_i,function(t){return parseInt(t,10)}],M:["month",rr,oA],MM:["month",tr,oA],YY:["year",tr,function(t){var e=new Date,n=+(""+e.getFullYear()).substr(0,2);return+(""+(+t>68?n-1:n)+t)}],h:["hour",rr,void 0,"isPm"],hh:["hour",tr,void 0,"isPm"],H:["hour",rr],HH:["hour",tr],m:["minute",rr],mm:["minute",tr],s:["second",rr],ss:["second",tr],YYYY:["year",SF],S:["millisecond","\\d",function(t){return+t*100}],SS:["millisecond",tr,function(t){return+t*10}],SSS:["millisecond",_F],d:aA,dd:aA,ddd:uA,dddd:uA,MMM:["month",_i,nA("monthNamesShort")],MMMM:["month",_i,nA("monthNames")],a:sA,A:sA,ZZ:lA,Z:lA},ca={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},vA=function(t){return nr(ca,t)},yA=function(t,e,n){if(e===void 0&&(e=ca.default),n===void 0&&(n={}),typeof t=="number"&&(t=new Date(t)),Object.prototype.toString.call(t)!=="[object Date]"||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");e=ca[e]||e;var o=[];e=e.replace(fA,function(u,i){return o.push(i),"@@@"});var a=nr(nr({},la),n);return e=e.replace(cA,function(u){return gF[u](t,a)}),e.replace(/@@@/g,function(){return o.shift()})};AF={format:yA,parse:_A,defaultI18n:lc,setGlobalDateI18n:mA,setGlobalDateMasks:vA},bF=AF});var gA=y((OQ,TA)=>{"use strict";var xF=(EA(),Y(SA)),NF=Be();TA.exports=NF((t,e={})=>(e.format&&(t.timestamp=typeof e.format=="function"?e.format():xF.format(new Date,e.format)),t.timestamp||(t.timestamp=new Date().toISOString()),e.alias&&(t[e.alias]=t.timestamp),t))});var AA=y((AQ,OA)=>{"use strict";var cc=Yl(),RF=Be(),{MESSAGE:fc}=fe();OA.exports=RF((t,e)=>(e.level!==!1&&(t.level=cc.strip(t.level)),e.message!==!1&&(t.message=cc.strip(String(t.message))),e.raw!==!1&&t[fc]&&(t[fc]=cc.strip(String(t[fc]))),t))});var dc=y(pc=>{"use strict";var PF=pc.format=Be();pc.levels=g0();function Se(t,e){Object.defineProperty(PF,t,{get(){return e()},configurable:!0})}Se("align",function(){return A0()});Se("errors",function(){return N0()});Se("cli",function(){return P0()});Se("combine",function(){return M0()});Se("colorize",function(){return ra()});Se("json",function(){return uc()});Se("label",function(){return k0()});Se("logstash",function(){return G0()});Se("metadata",function(){return F0()});Se("ms",function(){return $0()});Se("padLevels",function(){return ec()});Se("prettyPrint",function(){return W0()});Se("printf",function(){return X0()});Se("simple",function(){return Z0()});Se("splat",function(){return rA()});Se("timestamp",function(){return gA()});Se("uncolorize",function(){return AA()})});var hc=y(fa=>{"use strict";var{format:bA}=M("util");fa.warn={deprecated(t){return()=>{throw new Error(bA("{ %s } was removed in winston@3.0.0.",t))}},useFormat(t){return()=>{throw new Error([bA("{ %s } was removed in winston@3.0.0.",t),"Use a custom winston.format = winston.format(function) instead."].join(`
|
33
|
-
`))}},forFunctions(t,e,n){n.forEach(o=>{t[o]=fa.warn[e](o)})},forProperties(t,e,n){n.forEach(o=>{let a=fa.warn[e](o);Object.defineProperty(t,o,{get:a,set:a})})}}});var xA=y((NQ,wF)=>{wF.exports={name:"winston",description:"A logger for just about everything.",version:"3.13.0",author:"Charlie Robbins <charlie.robbins@gmail.com>",maintainers:["David Hyde <dabh@alumni.stanford.edu>"],repository:{type:"git",url:"https://github.com/winstonjs/winston.git"},keywords:["winston","logger","logging","logs","sysadmin","bunyan","pino","loglevel","tools","json","stream"],dependencies:{"@dabh/diagnostics":"^2.0.2","@colors/colors":"^1.6.0",async:"^3.2.3","is-stream":"^2.0.0",logform:"^2.4.0","one-time":"^1.0.0","readable-stream":"^3.4.0","safe-stable-stringify":"^2.3.1","stack-trace":"0.0.x","triple-beam":"^1.3.0","winston-transport":"^4.7.0"},devDependencies:{"@babel/cli":"^7.23.9","@babel/core":"^7.24.0","@babel/preset-env":"^7.24.0","@dabh/eslint-config-populist":"^5.0.0","@types/node":"^20.11.24","abstract-winston-transport":"^0.5.1",assume:"^2.2.0","cross-spawn-async":"^2.2.5",eslint:"^8.57.0",hock:"^1.4.1",mocha:"^10.3.0",nyc:"^15.1.0",rimraf:"^5.0.5",split2:"^4.1.0","std-mocks":"^2.0.0",through2:"^4.0.2","winston-compat":"^0.1.5"},main:"./lib/winston.js",browser:"./dist/winston",types:"./index.d.ts",scripts:{lint:"eslint lib/*.js lib/winston/*.js lib/winston/**/*.js --resolve-plugins-relative-to ./node_modules/@dabh/eslint-config-populist",test:"rimraf test/fixtures/logs/* && mocha","test:coverage":"nyc npm run test:unit","test:unit":"mocha test/unit","test:integration":"mocha test/integration",build:"rimraf dist && babel lib -d dist",prepublishOnly:"npm run build"},engines:{node:">= 12.0.0"},license:"MIT"}});var RA=y((RQ,NA)=>{NA.exports=M("util").deprecate});var mc=y((PQ,PA)=>{PA.exports=M("stream")});var yc=y((wQ,MA)=>{"use strict";function MF(t,e){var n=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(vc,this,t)):process.nextTick(vc,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(u){!e&&u?n._writableState?n._writableState.errorEmitted?process.nextTick(pa,n):(n._writableState.errorEmitted=!0,process.nextTick(wA,n,u)):process.nextTick(wA,n,u):e?(process.nextTick(pa,n),e(u)):process.nextTick(pa,n)}),this)}function wA(t,e){vc(t,e),pa(t)}function pa(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function IF(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function vc(t,e){t.emit("error",e)}function LF(t,e){var n=t._readableState,o=t._writableState;n&&n.autoDestroy||o&&o.autoDestroy?t.destroy(e):t.emit("error",e)}MA.exports={destroy:MF,undestroy:IF,errorOrDestroy:LF}});var ir=y((MQ,CA)=>{"use strict";var LA={};function Ze(t,e,n){n||(n=Error);function o(u,i,r){return typeof e=="string"?e:e(u,i,r)}class a extends n{constructor(i,r,s){super(o(i,r,s))}}a.prototype.name=n.name,a.prototype.code=t,LA[t]=a}function IA(t,e){if(Array.isArray(t)){let n=t.length;return t=t.map(o=>String(o)),n>2?`one of ${e} ${t.slice(0,n-1).join(", ")}, or `+t[n-1]:n===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function CF(t,e,n){return t.substr(!n||n<0?0:+n,e.length)===e}function UF(t,e,n){return(n===void 0||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}function DF(t,e,n){return typeof n!="number"&&(n=0),n+e.length>t.length?!1:t.indexOf(e,n)!==-1}Ze("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);Ze("ERR_INVALID_ARG_TYPE",function(t,e,n){let o;typeof e=="string"&&CF(e,"not ")?(o="must not be",e=e.replace(/^not /,"")):o="must be";let a;if(UF(t," argument"))a=`The ${t} ${o} ${IA(e,"type")}`;else{let u=DF(t,".")?"property":"argument";a=`The "${t}" ${u} ${o} ${IA(e,"type")}`}return a+=`. Received type ${typeof n}`,a},TypeError);Ze("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Ze("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});Ze("ERR_STREAM_PREMATURE_CLOSE","Premature close");Ze("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});Ze("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Ze("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Ze("ERR_STREAM_WRITE_AFTER_END","write after end");Ze("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Ze("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);Ze("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");CA.exports.codes=LA});var _c=y((IQ,UA)=>{"use strict";var VF=ir().codes.ERR_INVALID_OPT_VALUE;function kF(t,e,n){return t.highWaterMark!=null?t.highWaterMark:e?t[n]:null}function BF(t,e,n,o){var a=kF(e,o,n);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var u=o?n:"highWaterMark";throw new VF(u,a)}return Math.floor(a)}return t.objectMode?16:16*1024}UA.exports={getHighWaterMark:BF}});var DA=y((LQ,Sc)=>{typeof Object.create=="function"?Sc.exports=function(e,n){n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Sc.exports=function(e,n){if(n){e.super_=n;var o=function(){};o.prototype=n.prototype,e.prototype=new o,e.prototype.constructor=e}}});var vn=y((CQ,Tc)=>{try{if(Ec=M("util"),typeof Ec.inherits!="function")throw"";Tc.exports=Ec.inherits}catch{Tc.exports=DA()}var Ec});var FA=y((UQ,qA)=>{"use strict";function VA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,o)}return n}function kA(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?VA(Object(n),!0).forEach(function(o){GF(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):VA(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function GF(t,e,n){return e=GA(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qF(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function BA(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,GA(o.key),o)}}function FF(t,e,n){return e&&BA(t.prototype,e),n&&BA(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function GA(t){var e=HF(t,"string");return typeof e=="symbol"?e:String(e)}function HF(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var jF=M("buffer"),da=jF.Buffer,YF=M("util"),gc=YF.inspect,$F=gc&&gc.custom||"inspect";function KF(t,e,n){da.prototype.copy.call(t,e,n)}qA.exports=function(){function t(){qF(this,t),this.head=null,this.tail=null,this.length=0}return FF(t,[{key:"push",value:function(n){var o={data:n,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length}},{key:"unshift",value:function(n){var o={data:n,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length}},{key:"shift",value:function(){if(this.length!==0){var n=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,n}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(n){if(this.length===0)return"";for(var o=this.head,a=""+o.data;o=o.next;)a+=n+o.data;return a}},{key:"concat",value:function(n){if(this.length===0)return da.alloc(0);for(var o=da.allocUnsafe(n>>>0),a=this.head,u=0;a;)KF(a.data,o,u),u+=a.data.length,a=a.next;return o}},{key:"consume",value:function(n,o){var a;return n<this.head.data.length?(a=this.head.data.slice(0,n),this.head.data=this.head.data.slice(n)):n===this.head.data.length?a=this.shift():a=o?this._getString(n):this._getBuffer(n),a}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(n){var o=this.head,a=1,u=o.data;for(n-=u.length;o=o.next;){var i=o.data,r=n>i.length?i.length:n;if(r===i.length?u+=i:u+=i.slice(0,n),n-=r,n===0){r===i.length?(++a,o.next?this.head=o.next:this.head=this.tail=null):(this.head=o,o.data=i.slice(r));break}++a}return this.length-=a,u}},{key:"_getBuffer",value:function(n){var o=da.allocUnsafe(n),a=this.head,u=1;for(a.data.copy(o),n-=a.data.length;a=a.next;){var i=a.data,r=n>i.length?i.length:n;if(i.copy(o,o.length-n,0,r),n-=r,n===0){r===i.length?(++u,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=i.slice(r));break}++u}return this.length-=u,o}},{key:$F,value:function(n,o){return gc(this,kA(kA({},o),{},{depth:0,customInspect:!1}))}}]),t}()});var YA=y((Oc,jA)=>{var ha=M("buffer"),yt=ha.Buffer;function HA(t,e){for(var n in t)e[n]=t[n]}yt.from&&yt.alloc&&yt.allocUnsafe&&yt.allocUnsafeSlow?jA.exports=ha:(HA(ha,Oc),Oc.Buffer=Nr);function Nr(t,e,n){return yt(t,e,n)}Nr.prototype=Object.create(yt.prototype);HA(yt,Nr);Nr.from=function(t,e,n){if(typeof t=="number")throw new TypeError("Argument must not be a number");return yt(t,e,n)};Nr.alloc=function(t,e,n){if(typeof t!="number")throw new TypeError("Argument must be a number");var o=yt(t);return e!==void 0?typeof n=="string"?o.fill(e,n):o.fill(e):o.fill(0),o};Nr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return yt(t)};Nr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ha.SlowBuffer(t)}});var xc=y(KA=>{"use strict";var bc=YA().Buffer,$A=bc.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function zF(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function WF(t){var e=zF(t);if(typeof e!="string"&&(bc.isEncoding===$A||!$A(t)))throw new Error("Unknown encoding: "+t);return e||t}KA.StringDecoder=Si;function Si(t){this.encoding=WF(t);var e;switch(this.encoding){case"utf16le":this.text=t4,this.end=r4,e=4;break;case"utf8":this.fillLast=QF,e=4;break;case"base64":this.text=n4,this.end=i4,e=3;break;default:this.write=o4,this.end=a4;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=bc.allocUnsafe(e)}Si.prototype.write=function(t){if(t.length===0)return"";var e,n;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<t.length?e?e+this.text(t,n):this.text(t,n):e||""};Si.prototype.end=e4;Si.prototype.text=ZF;Si.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function Ac(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function XF(t,e,n){var o=e.length-1;if(o<n)return 0;var a=Ac(e[o]);return a>=0?(a>0&&(t.lastNeed=a-1),a):--o<n||a===-2?0:(a=Ac(e[o]),a>=0?(a>0&&(t.lastNeed=a-2),a):--o<n||a===-2?0:(a=Ac(e[o]),a>=0?(a>0&&(a===2?a=0:t.lastNeed=a-3),a):0))}function JF(t,e,n){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function QF(t){var e=this.lastTotal-this.lastNeed,n=JF(this,t,e);if(n!==void 0)return n;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function ZF(t,e){var n=XF(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var o=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,o),t.toString("utf8",e,o)}function e4(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function t4(t,e){if((t.length-e)%2===0){var n=t.toString("utf16le",e);if(n){var o=n.charCodeAt(n.length-1);if(o>=55296&&o<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function r4(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function n4(t,e){var n=(t.length-e)%3;return n===0?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function i4(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function o4(t){return t.toString(this.encoding)}function a4(t){return t&&t.length?this.write(t):""}});var ma=y((VQ,XA)=>{"use strict";var zA=ir().codes.ERR_STREAM_PREMATURE_CLOSE;function u4(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];t.apply(this,o)}}}function s4(){}function l4(t){return t.setHeader&&typeof t.abort=="function"}function WA(t,e,n){if(typeof e=="function")return WA(t,null,e);e||(e={}),n=u4(n||s4);var o=e.readable||e.readable!==!1&&t.readable,a=e.writable||e.writable!==!1&&t.writable,u=function(){t.writable||r()},i=t._writableState&&t._writableState.finished,r=function(){a=!1,i=!0,o||n.call(t)},s=t._readableState&&t._readableState.endEmitted,l=function(){o=!1,s=!0,a||n.call(t)},c=function(v){n.call(t,v)},p=function(){var v;if(o&&!s)return(!t._readableState||!t._readableState.ended)&&(v=new zA),n.call(t,v);if(a&&!i)return(!t._writableState||!t._writableState.ended)&&(v=new zA),n.call(t,v)},m=function(){t.req.on("finish",r)};return l4(t)?(t.on("complete",r),t.on("abort",p),t.req?m():t.on("request",m)):a&&!t._writableState&&(t.on("end",u),t.on("close",u)),t.on("end",l),t.on("finish",r),e.error!==!1&&t.on("error",c),t.on("close",p),function(){t.removeListener("complete",r),t.removeListener("abort",p),t.removeListener("request",m),t.req&&t.req.removeListener("finish",r),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",r),t.removeListener("end",l),t.removeListener("error",c),t.removeListener("close",p)}}XA.exports=WA});var QA=y((kQ,JA)=>{"use strict";var va;function or(t,e,n){return e=c4(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c4(t){var e=f4(t,"string");return typeof e=="symbol"?e:String(e)}function f4(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var p4=ma(),ar=Symbol("lastResolve"),Rr=Symbol("lastReject"),Ei=Symbol("error"),ya=Symbol("ended"),Pr=Symbol("lastPromise"),Nc=Symbol("handlePromise"),wr=Symbol("stream");function ur(t,e){return{value:t,done:e}}function d4(t){var e=t[ar];if(e!==null){var n=t[wr].read();n!==null&&(t[Pr]=null,t[ar]=null,t[Rr]=null,e(ur(n,!1)))}}function h4(t){process.nextTick(d4,t)}function m4(t,e){return function(n,o){t.then(function(){if(e[ya]){n(ur(void 0,!0));return}e[Nc](n,o)},o)}}var v4=Object.getPrototypeOf(function(){}),y4=Object.setPrototypeOf((va={get stream(){return this[wr]},next:function(){var e=this,n=this[Ei];if(n!==null)return Promise.reject(n);if(this[ya])return Promise.resolve(ur(void 0,!0));if(this[wr].destroyed)return new Promise(function(i,r){process.nextTick(function(){e[Ei]?r(e[Ei]):i(ur(void 0,!0))})});var o=this[Pr],a;if(o)a=new Promise(m4(o,this));else{var u=this[wr].read();if(u!==null)return Promise.resolve(ur(u,!1));a=new Promise(this[Nc])}return this[Pr]=a,a}},or(va,Symbol.asyncIterator,function(){return this}),or(va,"return",function(){var e=this;return new Promise(function(n,o){e[wr].destroy(null,function(a){if(a){o(a);return}n(ur(void 0,!0))})})}),va),v4),_4=function(e){var n,o=Object.create(y4,(n={},or(n,wr,{value:e,writable:!0}),or(n,ar,{value:null,writable:!0}),or(n,Rr,{value:null,writable:!0}),or(n,Ei,{value:null,writable:!0}),or(n,ya,{value:e._readableState.endEmitted,writable:!0}),or(n,Nc,{value:function(u,i){var r=o[wr].read();r?(o[Pr]=null,o[ar]=null,o[Rr]=null,u(ur(r,!1))):(o[ar]=u,o[Rr]=i)},writable:!0}),n));return o[Pr]=null,p4(e,function(a){if(a&&a.code!=="ERR_STREAM_PREMATURE_CLOSE"){var u=o[Rr];u!==null&&(o[Pr]=null,o[ar]=null,o[Rr]=null,u(a)),o[Ei]=a;return}var i=o[ar];i!==null&&(o[Pr]=null,o[ar]=null,o[Rr]=null,i(ur(void 0,!0))),o[ya]=!0}),e.on("readable",h4.bind(null,o)),o};JA.exports=_4});var rb=y((BQ,tb)=>{"use strict";function ZA(t,e,n,o,a,u,i){try{var r=t[u](i),s=r.value}catch(l){n(l);return}r.done?e(s):Promise.resolve(s).then(o,a)}function S4(t){return function(){var e=this,n=arguments;return new Promise(function(o,a){var u=t.apply(e,n);function i(s){ZA(u,o,a,i,r,"next",s)}function r(s){ZA(u,o,a,i,r,"throw",s)}i(void 0)})}}function eb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,o)}return n}function E4(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?eb(Object(n),!0).forEach(function(o){T4(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):eb(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function T4(t,e,n){return e=g4(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g4(t){var e=O4(t,"string");return typeof e=="symbol"?e:String(e)}function O4(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var A4=ir().codes.ERR_INVALID_ARG_TYPE;function b4(t,e,n){var o;if(e&&typeof e.next=="function")o=e;else if(e&&e[Symbol.asyncIterator])o=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])o=e[Symbol.iterator]();else throw new A4("iterable",["Iterable"],e);var a=new t(E4({objectMode:!0},n)),u=!1;a._read=function(){u||(u=!0,i())};function i(){return r.apply(this,arguments)}function r(){return r=S4(function*(){try{var s=yield o.next(),l=s.value,c=s.done;c?a.push(null):a.push(yield l)?i():u=!1}catch(p){a.destroy(p)}}),r.apply(this,arguments)}return a}tb.exports=b4});var Vc=y((qQ,pb)=>{"use strict";pb.exports=K;var yn;K.ReadableState=ab;var GQ=M("events").EventEmitter,ob=function(e,n){return e.listeners(n).length},gi=mc(),_a=M("buffer").Buffer,x4=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function N4(t){return _a.from(t)}function R4(t){return _a.isBuffer(t)||t instanceof x4}var Rc=M("util"),G;Rc&&Rc.debuglog?G=Rc.debuglog("stream"):G=function(){};var P4=FA(),Uc=yc(),w4=_c(),M4=w4.getHighWaterMark,Sa=ir().codes,I4=Sa.ERR_INVALID_ARG_TYPE,L4=Sa.ERR_STREAM_PUSH_AFTER_EOF,C4=Sa.ERR_METHOD_NOT_IMPLEMENTED,U4=Sa.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,_n,Pc,wc;vn()(K,gi);var Ti=Uc.errorOrDestroy,Mc=["error","close","destroy","pause","resume"];function D4(t,e,n){if(typeof t.prependListener=="function")return t.prependListener(e,n);!t._events||!t._events[e]?t.on(e,n):Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]}function ab(t,e,n){yn=yn||Mr(),t=t||{},typeof n!="boolean"&&(n=e instanceof yn),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=M4(this,t,"readableHighWaterMark",n),this.buffer=new P4,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(_n||(_n=xc().StringDecoder),this.decoder=new _n(t.encoding),this.encoding=t.encoding)}function K(t){if(yn=yn||Mr(),!(this instanceof K))return new K(t);var e=this instanceof yn;this._readableState=new ab(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),gi.call(this)}Object.defineProperty(K.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});K.prototype.destroy=Uc.destroy;K.prototype._undestroy=Uc.undestroy;K.prototype._destroy=function(t,e){e(t)};K.prototype.push=function(t,e){var n=this._readableState,o;return n.objectMode?o=!0:typeof t=="string"&&(e=e||n.defaultEncoding,e!==n.encoding&&(t=_a.from(t,e),e=""),o=!0),ub(this,t,e,!1,o)};K.prototype.unshift=function(t){return ub(this,t,null,!0,!1)};function ub(t,e,n,o,a){G("readableAddChunk",e);var u=t._readableState;if(e===null)u.reading=!1,B4(t,u);else{var i;if(a||(i=V4(u,e)),i)Ti(t,i);else if(u.objectMode||e&&e.length>0)if(typeof e!="string"&&!u.objectMode&&Object.getPrototypeOf(e)!==_a.prototype&&(e=N4(e)),o)u.endEmitted?Ti(t,new U4):Ic(t,u,e,!0);else if(u.ended)Ti(t,new L4);else{if(u.destroyed)return!1;u.reading=!1,u.decoder&&!n?(e=u.decoder.write(e),u.objectMode||e.length!==0?Ic(t,u,e,!1):Cc(t,u)):Ic(t,u,e,!1)}else o||(u.reading=!1,Cc(t,u))}return!u.ended&&(u.length<u.highWaterMark||u.length===0)}function Ic(t,e,n,o){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",n)):(e.length+=e.objectMode?1:n.length,o?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&Ea(t)),Cc(t,e)}function V4(t,e){var n;return!R4(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(n=new I4("chunk",["string","Buffer","Uint8Array"],e)),n}K.prototype.isPaused=function(){return this._readableState.flowing===!1};K.prototype.setEncoding=function(t){_n||(_n=xc().StringDecoder);var e=new _n(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,o="";n!==null;)o+=e.write(n.data),n=n.next;return this._readableState.buffer.clear(),o!==""&&this._readableState.buffer.push(o),this._readableState.length=o.length,this};var nb=1073741824;function k4(t){return t>=nb?t=nb:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function ib(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=k4(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}K.prototype.read=function(t){G("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return G("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Lc(this):Ea(this),null;if(t=ib(t,e),t===0&&e.ended)return e.length===0&&Lc(this),null;var o=e.needReadable;G("need readable",o),(e.length===0||e.length-t<e.highWaterMark)&&(o=!0,G("length less than watermark",o)),e.ended||e.reading?(o=!1,G("reading or ended",o)):o&&(G("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=ib(n,e)));var a;return t>0?a=cb(t,e):a=null,a===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&Lc(this)),a!==null&&this.emit("data",a),a};function B4(t,e){if(G("onEofChunk"),!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,e.sync?Ea(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,sb(t)))}}function Ea(t){var e=t._readableState;G("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(G("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(sb,t))}function sb(t){var e=t._readableState;G("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,Dc(t)}function Cc(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(G4,t,e))}function G4(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var n=e.length;if(G("maybeReadMore read 0"),t.read(0),n===e.length)break}e.readingMore=!1}K.prototype._read=function(t){Ti(this,new C4("_read()"))};K.prototype.pipe=function(t,e){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t);break}o.pipesCount+=1,G("pipe count=%d opts=%j",o.pipesCount,e);var a=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,u=a?r:S;o.endEmitted?process.nextTick(u):n.once("end",u),t.on("unpipe",i);function i(_,O){G("onunpipe"),_===n&&O&&O.hasUnpiped===!1&&(O.hasUnpiped=!0,c())}function r(){G("onend"),t.end()}var s=q4(n);t.on("drain",s);var l=!1;function c(){G("cleanup"),t.removeListener("close",f),t.removeListener("finish",v),t.removeListener("drain",s),t.removeListener("error",m),t.removeListener("unpipe",i),n.removeListener("end",r),n.removeListener("end",S),n.removeListener("data",p),l=!0,o.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&s()}n.on("data",p);function p(_){G("ondata");var O=t.write(_);G("dest.write",O),O===!1&&((o.pipesCount===1&&o.pipes===t||o.pipesCount>1&&fb(o.pipes,t)!==-1)&&!l&&(G("false write response, pause",o.awaitDrain),o.awaitDrain++),n.pause())}function m(_){G("onerror",_),S(),t.removeListener("error",m),ob(t,"error")===0&&Ti(t,_)}D4(t,"error",m);function f(){t.removeListener("finish",v),S()}t.once("close",f);function v(){G("onfinish"),t.removeListener("close",f),S()}t.once("finish",v);function S(){G("unpipe"),n.unpipe(t)}return t.emit("pipe",n),o.flowing||(G("pipe resume"),n.resume()),t};function q4(t){return function(){var n=t._readableState;G("pipeOnDrain",n.awaitDrain),n.awaitDrain&&n.awaitDrain--,n.awaitDrain===0&&ob(t,"data")&&(n.flowing=!0,Dc(t))}}K.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n),this);if(!t){var o=e.pipes,a=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var u=0;u<a;u++)o[u].emit("unpipe",this,{hasUnpiped:!1});return this}var i=fb(e.pipes,t);return i===-1?this:(e.pipes.splice(i,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n),this)};K.prototype.on=function(t,e){var n=gi.prototype.on.call(this,t,e),o=this._readableState;return t==="data"?(o.readableListening=this.listenerCount("readable")>0,o.flowing!==!1&&this.resume()):t==="readable"&&!o.endEmitted&&!o.readableListening&&(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,G("on readable",o.length,o.reading),o.length?Ea(this):o.reading||process.nextTick(F4,this)),n};K.prototype.addListener=K.prototype.on;K.prototype.removeListener=function(t,e){var n=gi.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(lb,this),n};K.prototype.removeAllListeners=function(t){var e=gi.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(lb,this),e};function lb(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function F4(t){G("readable nexttick read 0"),t.read(0)}K.prototype.resume=function(){var t=this._readableState;return t.flowing||(G("resume"),t.flowing=!t.readableListening,H4(this,t)),t.paused=!1,this};function H4(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(j4,t,e))}function j4(t,e){G("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),Dc(t),e.flowing&&!e.reading&&t.read(0)}K.prototype.pause=function(){return G("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(G("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Dc(t){var e=t._readableState;for(G("flow",e.flowing);e.flowing&&t.read()!==null;);}K.prototype.wrap=function(t){var e=this,n=this._readableState,o=!1;t.on("end",function(){if(G("wrapped end"),n.decoder&&!n.ended){var i=n.decoder.end();i&&i.length&&e.push(i)}e.push(null)}),t.on("data",function(i){if(G("wrapped data"),n.decoder&&(i=n.decoder.write(i)),!(n.objectMode&&i==null)&&!(!n.objectMode&&(!i||!i.length))){var r=e.push(i);r||(o=!0,t.pause())}});for(var a in t)this[a]===void 0&&typeof t[a]=="function"&&(this[a]=function(r){return function(){return t[r].apply(t,arguments)}}(a));for(var u=0;u<Mc.length;u++)t.on(Mc[u],this.emit.bind(this,Mc[u]));return this._read=function(i){G("wrapped _read",i),o&&(o=!1,t.resume())},this};typeof Symbol=="function"&&(K.prototype[Symbol.asyncIterator]=function(){return Pc===void 0&&(Pc=QA()),Pc(this)});Object.defineProperty(K.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(K.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(K.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});K._fromList=cb;Object.defineProperty(K.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function cb(t,e){if(e.length===0)return null;var n;return e.objectMode?n=e.buffer.shift():!t||t>=e.length?(e.decoder?n=e.buffer.join(""):e.buffer.length===1?n=e.buffer.first():n=e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n}function Lc(t){var e=t._readableState;G("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(Y4,e,t))}function Y4(t,e){if(G("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}typeof Symbol=="function"&&(K.from=function(t,e){return wc===void 0&&(wc=rb()),wc(K,t,e)});function fb(t,e){for(var n=0,o=t.length;n<o;n++)if(t[n]===e)return n;return-1}});var Mr=y((FQ,hb)=>{"use strict";var $4=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};hb.exports=_t;var db=Vc(),Bc=Oa();vn()(_t,db);for(kc=$4(Bc.prototype),Ta=0;Ta<kc.length;Ta++)ga=kc[Ta],_t.prototype[ga]||(_t.prototype[ga]=Bc.prototype[ga]);var kc,ga,Ta;function _t(t){if(!(this instanceof _t))return new _t(t);db.call(this,t),Bc.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",K4)))}Object.defineProperty(_t.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(_t.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(_t.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function K4(){this._writableState.ended||process.nextTick(z4,this)}function z4(t){t.end()}Object.defineProperty(_t.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var Oa=y((HQ,Eb)=>{"use strict";Eb.exports=se;function vb(t){var e=this;this.next=null,this.entry=null,this.finish=function(){TH(e,t)}}var Sn;se.WritableState=Ai;var W4={deprecate:RA()},yb=mc(),ba=M("buffer").Buffer,X4=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function J4(t){return ba.from(t)}function Q4(t){return ba.isBuffer(t)||t instanceof X4}var qc=yc(),Z4=_c(),eH=Z4.getHighWaterMark,sr=ir().codes,tH=sr.ERR_INVALID_ARG_TYPE,rH=sr.ERR_METHOD_NOT_IMPLEMENTED,nH=sr.ERR_MULTIPLE_CALLBACK,iH=sr.ERR_STREAM_CANNOT_PIPE,oH=sr.ERR_STREAM_DESTROYED,aH=sr.ERR_STREAM_NULL_VALUES,uH=sr.ERR_STREAM_WRITE_AFTER_END,sH=sr.ERR_UNKNOWN_ENCODING,En=qc.errorOrDestroy;vn()(se,yb);function lH(){}function Ai(t,e,n){Sn=Sn||Mr(),t=t||{},typeof n!="boolean"&&(n=e instanceof Sn),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=eH(this,t,"writableHighWaterMark",n),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=t.decodeStrings===!1;this.decodeStrings=!o,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){vH(e,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new vb(this)}Ai.prototype.getBuffer=function(){for(var e=this.bufferedRequest,n=[];e;)n.push(e),e=e.next;return n};(function(){try{Object.defineProperty(Ai.prototype,"buffer",{get:W4.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Aa;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Aa=Function.prototype[Symbol.hasInstance],Object.defineProperty(se,Symbol.hasInstance,{value:function(e){return Aa.call(this,e)?!0:this!==se?!1:e&&e._writableState instanceof Ai}})):Aa=function(e){return e instanceof this};function se(t){Sn=Sn||Mr();var e=this instanceof Sn;if(!e&&!Aa.call(se,this))return new se(t);this._writableState=new Ai(t,this,e),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),yb.call(this)}se.prototype.pipe=function(){En(this,new iH)};function cH(t,e){var n=new uH;En(t,n),process.nextTick(e,n)}function fH(t,e,n,o){var a;return n===null?a=new aH:typeof n!="string"&&!e.objectMode&&(a=new tH("chunk",["string","Buffer"],n)),a?(En(t,a),process.nextTick(o,a),!1):!0}se.prototype.write=function(t,e,n){var o=this._writableState,a=!1,u=!o.objectMode&&Q4(t);return u&&!ba.isBuffer(t)&&(t=J4(t)),typeof e=="function"&&(n=e,e=null),u?e="buffer":e||(e=o.defaultEncoding),typeof n!="function"&&(n=lH),o.ending?cH(this,n):(u||fH(this,o,t,n))&&(o.pendingcb++,a=dH(this,o,u,t,e,n)),a};se.prototype.cork=function(){this._writableState.corked++};se.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&_b(this,t))};se.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new sH(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(se.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function pH(t,e,n){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=ba.from(e,n)),e}Object.defineProperty(se.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function dH(t,e,n,o,a,u){if(!n){var i=pH(e,o,a);o!==i&&(n=!0,a="buffer",o=i)}var r=e.objectMode?1:o.length;e.length+=r;var s=e.length<e.highWaterMark;if(s||(e.needDrain=!0),e.writing||e.corked){var l=e.lastBufferedRequest;e.lastBufferedRequest={chunk:o,encoding:a,isBuf:n,callback:u,next:null},l?l.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else Gc(t,e,!1,r,o,a,u);return s}function Gc(t,e,n,o,a,u,i){e.writelen=o,e.writecb=i,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new oH("write")):n?t._writev(a,e.onwrite):t._write(a,u,e.onwrite),e.sync=!1}function hH(t,e,n,o,a){--e.pendingcb,n?(process.nextTick(a,o),process.nextTick(Oi,t,e),t._writableState.errorEmitted=!0,En(t,o)):(a(o),t._writableState.errorEmitted=!0,En(t,o),Oi(t,e))}function mH(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function vH(t,e){var n=t._writableState,o=n.sync,a=n.writecb;if(typeof a!="function")throw new nH;if(mH(n),e)hH(t,n,o,e,a);else{var u=Sb(n)||t.destroyed;!u&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest&&_b(t,n),o?process.nextTick(mb,t,n,u,a):mb(t,n,u,a)}}function mb(t,e,n,o){n||yH(t,e),e.pendingcb--,o(),Oi(t,e)}function yH(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function _b(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var o=e.bufferedRequestCount,a=new Array(o),u=e.corkedRequestsFree;u.entry=n;for(var i=0,r=!0;n;)a[i]=n,n.isBuf||(r=!1),n=n.next,i+=1;a.allBuffers=r,Gc(t,e,!0,e.length,a,"",u.finish),e.pendingcb++,e.lastBufferedRequest=null,u.next?(e.corkedRequestsFree=u.next,u.next=null):e.corkedRequestsFree=new vb(e),e.bufferedRequestCount=0}else{for(;n;){var s=n.chunk,l=n.encoding,c=n.callback,p=e.objectMode?1:s.length;if(Gc(t,e,!1,p,s,l,c),n=n.next,e.bufferedRequestCount--,e.writing)break}n===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}se.prototype._write=function(t,e,n){n(new rH("_write()"))};se.prototype._writev=null;se.prototype.end=function(t,e,n){var o=this._writableState;return typeof t=="function"?(n=t,t=null,e=null):typeof e=="function"&&(n=e,e=null),t!=null&&this.write(t,e),o.corked&&(o.corked=1,this.uncork()),o.ending||EH(this,o,n),this};Object.defineProperty(se.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Sb(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function _H(t,e){t._final(function(n){e.pendingcb--,n&&En(t,n),e.prefinished=!0,t.emit("prefinish"),Oi(t,e)})}function SH(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(_H,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Oi(t,e){var n=Sb(e);if(n&&(SH(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var o=t._readableState;(!o||o.autoDestroy&&o.endEmitted)&&t.destroy()}return n}function EH(t,e,n){e.ending=!0,Oi(t,e),n&&(e.finished?process.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}function TH(t,e,n){var o=t.entry;for(t.entry=null;o;){var a=o.callback;e.pendingcb--,a(n),o=o.next}e.corkedRequestsFree.next=t}Object.defineProperty(se.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});se.prototype.destroy=qc.destroy;se.prototype._undestroy=qc.undestroy;se.prototype._destroy=function(t,e){e(t)}});var Fc=y((jQ,Ob)=>{"use strict";var gH=M("util"),Tb=Oa(),{LEVEL:gb}=fe(),bi=Ob.exports=function(e={}){Tb.call(this,{objectMode:!0,highWaterMark:e.highWaterMark}),this.format=e.format,this.level=e.level,this.handleExceptions=e.handleExceptions,this.handleRejections=e.handleRejections,this.silent=e.silent,e.log&&(this.log=e.log),e.logv&&(this.logv=e.logv),e.close&&(this.close=e.close),this.once("pipe",n=>{this.levels=n.levels,this.parent=n}),this.once("unpipe",n=>{n===this.parent&&(this.parent=null,this.close&&this.close())})};gH.inherits(bi,Tb);bi.prototype._write=function(e,n,o){if(this.silent||e.exception===!0&&!this.handleExceptions)return o(null);let a=this.level||this.parent&&this.parent.level;if(!a||this.levels[a]>=this.levels[e[gb]]){if(e&&!this.format)return this.log(e,o);let u,i;try{i=this.format.transform(Object.assign({},e),this.format.options)}catch(r){u=r}if(u||!i){if(o(),u)throw u;return}return this.log(i,o)}return this._writableState.sync=!1,o(null)};bi.prototype._writev=function(e,n){if(this.logv){let o=e.filter(this._accept,this);return o.length?this.logv(o,n):n(null)}for(let o=0;o<e.length;o++){if(!this._accept(e[o]))continue;if(e[o].chunk&&!this.format){this.log(e[o].chunk,e[o].callback);continue}let a,u;try{u=this.format.transform(Object.assign({},e[o].chunk),this.format.options)}catch(i){a=i}if(a||!u){if(e[o].callback(),a)throw n(null),a}else this.log(u,e[o].callback)}return n(null)};bi.prototype._accept=function(e){let n=e.chunk;if(this.silent)return!1;let o=this.level||this.parent&&this.parent.level;return!!((n.exception===!0||!o||this.levels[o]>=this.levels[n[gb]])&&(this.handleExceptions||n.exception!==!0))};bi.prototype._nop=function(){}});var jc=y((YQ,bb)=>{"use strict";var OH=M("util"),{LEVEL:Hc}=fe(),Ab=Fc(),xi=bb.exports=function(e={}){if(Ab.call(this,e),!e.transport||typeof e.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=e.transport,this.level=this.level||e.transport.level,this.handleExceptions=this.handleExceptions||e.transport.handleExceptions,this._deprecated();function n(o){this.emit("error",o,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=n.bind(this),this.transport.on("error",this.transport.__winstonError))};OH.inherits(xi,Ab);xi.prototype._write=function(e,n,o){if(this.silent||e.exception===!0&&!this.handleExceptions)return o(null);(!this.level||this.levels[this.level]>=this.levels[e[Hc]])&&this.transport.log(e[Hc],e.message,e,this._nop),o(null)};xi.prototype._writev=function(e,n){for(let o=0;o<e.length;o++)this._accept(e[o])&&(this.transport.log(e[o].chunk[Hc],e[o].chunk.message,e[o].chunk,this._nop),e[o].callback());return n(null)};xi.prototype._deprecated=function(){console.error([`${this.transport.name} is a legacy winston transport. Consider upgrading: `,"- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"].join(`
|
34
|
-
`))};xi.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)}});var Tn=y(($Q,Yc)=>{"use strict";Yc.exports=Fc();Yc.exports.LegacyTransportStream=jc()});var Rb=y((zQ,Nb)=>{"use strict";var AH=M("os"),{LEVEL:xb,MESSAGE:gn}=fe(),bH=Tn();Nb.exports=class extends bH{constructor(e={}){super(e),this.name=e.name||"console",this.stderrLevels=this._stringArrayToSet(e.stderrLevels),this.consoleWarnLevels=this._stringArrayToSet(e.consoleWarnLevels),this.eol=typeof e.eol=="string"?e.eol:AH.EOL,this.setMaxListeners(30)}log(e,n){if(setImmediate(()=>this.emit("logged",e)),this.stderrLevels[e[xb]]){console._stderr?console._stderr.write(`${e[gn]}${this.eol}`):console.error(e[gn]),n&&n();return}else if(this.consoleWarnLevels[e[xb]]){console._stderr?console._stderr.write(`${e[gn]}${this.eol}`):console.warn(e[gn]),n&&n();return}console._stdout?console._stdout.write(`${e[gn]}${this.eol}`):console.log(e[gn]),n&&n()}_stringArrayToSet(e,n){if(!e)return{};if(n=n||"Cannot make set from type other than Array of string elements",!Array.isArray(e))throw new Error(n);return e.reduce((o,a)=>{if(typeof a!="string")throw new Error(n);return o[a]=!0,o},{})}}});var Na=y((xa,Pb)=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});xa.default=xH;function xH(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}Pb.exports=xa.default});var Mb=y((Ra,wb)=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.default=function(t){return function(...e){var n=e.pop();return t.call(this,e,n)}};wb.exports=Ra.default});var Cb=y(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.fallback=Ib;lr.wrap=Lb;var NH=lr.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,RH=lr.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,PH=lr.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function Ib(t){setTimeout(t,0)}function Lb(t){return(e,...n)=>t(()=>e(...n))}var Ni;NH?Ni=queueMicrotask:RH?Ni=setImmediate:PH?Ni=process.nextTick:Ni=Ib;lr.default=Lb(Ni)});var Bb=y((Pa,kb)=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.default=UH;var wH=Mb(),MH=Vb(wH),IH=Cb(),LH=Vb(IH),CH=Ir();function Vb(t){return t&&t.__esModule?t:{default:t}}function UH(t){return(0,CH.isAsync)(t)?function(...e){let n=e.pop(),o=t.apply(this,e);return Ub(o,n)}:(0,MH.default)(function(e,n){var o;try{o=t.apply(this,e)}catch(a){return n(a)}if(o&&typeof o.then=="function")return Ub(o,n);n(null,o)})}function Ub(t,e){return t.then(n=>{Db(e,null,n)},n=>{Db(e,n&&(n instanceof Error||n.message)?n:new Error(n))})}function Db(t,e,n){try{t(e,n)}catch(o){(0,LH.default)(a=>{throw a},o)}}kb.exports=Pa.default});var Ir=y(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.isAsyncIterable=Ut.isAsyncGenerator=Ut.isAsync=void 0;var DH=Bb(),VH=kH(DH);function kH(t){return t&&t.__esModule?t:{default:t}}function Gb(t){return t[Symbol.toStringTag]==="AsyncFunction"}function BH(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function GH(t){return typeof t[Symbol.asyncIterator]=="function"}function qH(t){if(typeof t!="function")throw new Error("expected a function");return Gb(t)?(0,VH.default)(t):t}Ut.default=qH;Ut.isAsync=Gb;Ut.isAsyncGenerator=BH;Ut.isAsyncIterable=GH});var On=y((wa,qb)=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.default=FH;function FH(t,e){if(e||(e=t.length),!e)throw new Error("arity is undefined");function n(...o){return typeof o[e-1]=="function"?t.apply(this,o):new Promise((a,u)=>{o[e-1]=(i,...r)=>{if(i)return u(i);a(r.length>1?r:r[0])},t.apply(this,o)})}return n}qb.exports=wa.default});var Hb=y((Ma,Fb)=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});var HH=Na(),jH=$c(HH),YH=Ir(),$H=$c(YH),KH=On(),zH=$c(KH);function $c(t){return t&&t.__esModule?t:{default:t}}Ma.default=(0,zH.default)((t,e,n)=>{var o=(0,jH.default)(e)?[]:{};t(e,(a,u,i)=>{(0,$H.default)(a)((r,...s)=>{s.length<2&&([s]=s),o[u]=s,i(r)})},a=>n(a,o))},3);Fb.exports=Ma.default});var Kc=y((Ia,jb)=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});Ia.default=WH;function WH(t){function e(...n){if(t!==null){var o=t;t=null,o.apply(this,n)}}return Object.assign(e,t),e}jb.exports=Ia.default});var $b=y((La,Yb)=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()};Yb.exports=La.default});var Wb=y((Ca,zb)=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.default=nj;var XH=Na(),JH=Kb(XH),QH=$b(),ZH=Kb(QH);function Kb(t){return t&&t.__esModule?t:{default:t}}function ej(t){var e=-1,n=t.length;return function(){return++e<n?{value:t[e],key:e}:null}}function tj(t){var e=-1;return function(){var o=t.next();return o.done?null:(e++,{value:o.value,key:e})}}function rj(t){var e=t?Object.keys(t):[],n=-1,o=e.length;return function a(){var u=e[++n];return u==="__proto__"?a():n<o?{value:t[u],key:u}:null}}function nj(t){if((0,JH.default)(t))return ej(t);var e=(0,ZH.default)(t);return e?tj(e):rj(t)}zb.exports=Ca.default});var zc=y((Ua,Xb)=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.default=ij;function ij(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var n=t;t=null,n.apply(this,e)}}Xb.exports=Ua.default});var Va=y((Da,Jb)=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});var oj={};Da.default=oj;Jb.exports=Da.default});var Zb=y((ka,Qb)=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.default=lj;var aj=Va(),uj=sj(aj);function sj(t){return t&&t.__esModule?t:{default:t}}function lj(t,e,n,o){let a=!1,u=!1,i=!1,r=0,s=0;function l(){r>=e||i||a||(i=!0,t.next().then(({value:m,done:f})=>{if(!(u||a)){if(i=!1,f){a=!0,r<=0&&o(null);return}r++,n(m,s,c),s++,l()}}).catch(p))}function c(m,f){if(r-=1,!u){if(m)return p(m);if(m===!1){a=!0,u=!0;return}if(f===uj.default||a&&r<=0)return a=!0,o(null);l()}}function p(m){u||(i=!1,a=!0,o(m))}l()}Qb.exports=ka.default});var nx=y((Ba,rx)=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});var cj=Kc(),fj=Ri(cj),pj=Wb(),dj=Ri(pj),hj=zc(),mj=Ri(hj),ex=Ir(),vj=Zb(),tx=Ri(vj),yj=Va(),_j=Ri(yj);function Ri(t){return t&&t.__esModule?t:{default:t}}Ba.default=t=>(e,n,o)=>{if(o=(0,fj.default)(o),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return o(null);if((0,ex.isAsyncGenerator)(e))return(0,tx.default)(e,t,n,o);if((0,ex.isAsyncIterable)(e))return(0,tx.default)(e[Symbol.asyncIterator](),t,n,o);var a=(0,dj.default)(e),u=!1,i=!1,r=0,s=!1;function l(p,m){if(!i)if(r-=1,p)u=!0,o(p);else if(p===!1)u=!0,i=!0;else{if(m===_j.default||u&&r<=0)return u=!0,o(null);s||c()}}function c(){for(s=!0;r<t&&!u;){var p=a();if(p===null){u=!0,r<=0&&o(null);return}r+=1,n(p.value,p.key,(0,mj.default)(l))}s=!1}c()};rx.exports=Ba.default});var Xc=y((Ga,ix)=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});var Sj=nx(),Ej=Wc(Sj),Tj=Ir(),gj=Wc(Tj),Oj=On(),Aj=Wc(Oj);function Wc(t){return t&&t.__esModule?t:{default:t}}function bj(t,e,n,o){return(0,Ej.default)(e)(t,(0,gj.default)(n),o)}Ga.default=(0,Aj.default)(bj,4);ix.exports=Ga.default});var ux=y((qa,ax)=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});var xj=Xc(),Nj=ox(xj),Rj=On(),Pj=ox(Rj);function ox(t){return t&&t.__esModule?t:{default:t}}function wj(t,e,n){return(0,Nj.default)(t,1,e,n)}qa.default=(0,Pj.default)(wj,3);ax.exports=qa.default});var cx=y((Fa,lx)=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.default=Uj;var Mj=Hb(),Ij=sx(Mj),Lj=ux(),Cj=sx(Lj);function sx(t){return t&&t.__esModule?t:{default:t}}function Uj(t,e){return(0,Ij.default)(Cj.default,t,e)}lx.exports=Fa.default});var Jc=y((JQ,px)=>{"use strict";px.exports=Dt;var Ha=ir().codes,Dj=Ha.ERR_METHOD_NOT_IMPLEMENTED,Vj=Ha.ERR_MULTIPLE_CALLBACK,kj=Ha.ERR_TRANSFORM_ALREADY_TRANSFORMING,Bj=Ha.ERR_TRANSFORM_WITH_LENGTH_0,ja=Mr();vn()(Dt,ja);function Gj(t,e){var n=this._transformState;n.transforming=!1;var o=n.writecb;if(o===null)return this.emit("error",new Vj);n.writechunk=null,n.writecb=null,e!=null&&this.push(e),o(t);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function Dt(t){if(!(this instanceof Dt))return new Dt(t);ja.call(this,t),this._transformState={afterTransform:Gj.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",qj)}function qj(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,n){fx(t,e,n)}):fx(this,null,null)}Dt.prototype.push=function(t,e){return this._transformState.needTransform=!1,ja.prototype.push.call(this,t,e)};Dt.prototype._transform=function(t,e,n){n(new Dj("_transform()"))};Dt.prototype._write=function(t,e,n){var o=this._transformState;if(o.writecb=n,o.writechunk=t,o.writeencoding=e,!o.transforming){var a=this._readableState;(o.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}};Dt.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};Dt.prototype._destroy=function(t,e){ja.prototype._destroy.call(this,t,function(n){e(n)})};function fx(t,e,n){if(e)return t.emit("error",e);if(n!=null&&t.push(n),t._writableState.length)throw new Bj;if(t._transformState.transforming)throw new kj;return t.push(null)}});var mx=y((QQ,hx)=>{"use strict";hx.exports=Pi;var dx=Jc();vn()(Pi,dx);function Pi(t){if(!(this instanceof Pi))return new Pi(t);dx.call(this,t)}Pi.prototype._transform=function(t,e,n){n(null,t)}});var Ex=y((ZQ,Sx)=>{"use strict";var Qc;function Fj(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var _x=ir().codes,Hj=_x.ERR_MISSING_ARGS,jj=_x.ERR_STREAM_DESTROYED;function vx(t){if(t)throw t}function Yj(t){return t.setHeader&&typeof t.abort=="function"}function $j(t,e,n,o){o=Fj(o);var a=!1;t.on("close",function(){a=!0}),Qc===void 0&&(Qc=ma()),Qc(t,{readable:e,writable:n},function(i){if(i)return o(i);a=!0,o()});var u=!1;return function(i){if(!a&&!u){if(u=!0,Yj(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();o(i||new jj("pipe"))}}}function yx(t){t()}function Kj(t,e){return t.pipe(e)}function zj(t){return!t.length||typeof t[t.length-1]!="function"?vx:t.pop()}function Wj(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var o=zj(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Hj("streams");var a,u=e.map(function(i,r){var s=r<e.length-1,l=r>0;return $j(i,s,l,function(c){a||(a=c),c&&u.forEach(yx),!s&&(u.forEach(yx),o(a))})});return e.reduce(Kj)}Sx.exports=Wj});var Lr=y((et,Mi)=>{var wi=M("stream");process.env.READABLE_STREAM==="disable"&&wi?(Mi.exports=wi.Readable,Object.assign(Mi.exports,wi),Mi.exports.Stream=wi):(et=Mi.exports=Vc(),et.Stream=wi||et,et.Readable=et,et.Writable=Oa(),et.Duplex=Mr(),et.Transform=Jc(),et.PassThrough=mx(),et.finished=ma(),et.pipeline=Ex())});var af=y((eZ,gx)=>{var An=[],Ii=[],Zc=function(){};function tf(t){return~An.indexOf(t)?!1:(An.push(t),!0)}function rf(t){Zc=t}function Xj(t){for(var e=[],n=0;n<An.length;n++){if(An[n].async){e.push(An[n]);continue}if(An[n](t))return!0}return e.length?new Promise(function(a){Promise.all(e.map(function(i){return i(t)})).then(function(i){a(i.some(Boolean))})}):!1}function nf(t){return~Ii.indexOf(t)?!1:(Ii.push(t),!0)}function ef(){Zc.apply(Zc,arguments)}function Tx(t){for(var e=0;e<Ii.length;e++)t=Ii[e].apply(Ii[e],arguments);return t}function of(t,e){var n=Object.prototype.hasOwnProperty;for(var o in e)n.call(e,o)&&(t[o]=e[o]);return t}function Jj(t){return t.enabled=!1,t.modify=nf,t.set=rf,t.use=tf,of(function(){return!1},t)}function Qj(t){function e(){var n=Array.prototype.slice.call(arguments,0);return ef.call(ef,t,Tx(n,t)),!0}return t.enabled=!0,t.modify=nf,t.set=rf,t.use=tf,of(e,t)}gx.exports=function(e){return e.introduce=of,e.enabled=Xj,e.process=Tx,e.modify=nf,e.write=ef,e.nope=Jj,e.yep=Qj,e.set=rf,e.use=tf,e}});var Ax=y((tZ,Ox)=>{var Zj=af(),e6=Zj(function t(e,n){return n=n||{},n.namespace=e,n.prod=!0,n.dev=!1,n.force||t.force?t.yep(n):t.nope(n)});Ox.exports=e6});var xx=y((rZ,bx)=>{"use strict";bx.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var Rx=y((nZ,Nx)=>{Nx.exports=function(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")}});var Mx=y((iZ,wx)=>{"use strict";var t6=Rx(),r6=Array.prototype.concat,n6=Array.prototype.slice,Px=wx.exports=function(e){for(var n=[],o=0,a=e.length;o<a;o++){var u=e[o];t6(u)?n=r6.call(n,n6.call(u)):n.push(u)}return n};Px.wrap=function(t){return function(){return t(Px(arguments))}}});var Ux=y((oZ,Cx)=>{var Li=xx(),Ci=Mx(),Ix=Object.hasOwnProperty,Lx=Object.create(null);for(Ya in Li)Ix.call(Li,Ya)&&(Lx[Li[Ya]]=Ya);var Ya,Ke=Cx.exports={to:{},get:{}};Ke.get=function(t){var e=t.substring(0,3).toLowerCase(),n,o;switch(e){case"hsl":n=Ke.get.hsl(t),o="hsl";break;case"hwb":n=Ke.get.hwb(t),o="hwb";break;default:n=Ke.get.rgb(t),o="rgb";break}return n?{model:o,value:n}:null};Ke.get.rgb=function(t){if(!t)return null;var e=/^#([a-f0-9]{3,4})$/i,n=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,o=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,a=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,u=/^(\w+)$/,i=[0,0,0,1],r,s,l;if(r=t.match(n)){for(l=r[2],r=r[1],s=0;s<3;s++){var c=s*2;i[s]=parseInt(r.slice(c,c+2),16)}l&&(i[3]=parseInt(l,16)/255)}else if(r=t.match(e)){for(r=r[1],l=r[3],s=0;s<3;s++)i[s]=parseInt(r[s]+r[s],16);l&&(i[3]=parseInt(l+l,16)/255)}else if(r=t.match(o)){for(s=0;s<3;s++)i[s]=parseInt(r[s+1],0);r[4]&&(r[5]?i[3]=parseFloat(r[4])*.01:i[3]=parseFloat(r[4]))}else if(r=t.match(a)){for(s=0;s<3;s++)i[s]=Math.round(parseFloat(r[s+1])*2.55);r[4]&&(r[5]?i[3]=parseFloat(r[4])*.01:i[3]=parseFloat(r[4]))}else return(r=t.match(u))?r[1]==="transparent"?[0,0,0,0]:Ix.call(Li,r[1])?(i=Li[r[1]],i[3]=1,i):null:null;for(s=0;s<3;s++)i[s]=cr(i[s],0,255);return i[3]=cr(i[3],0,1),i};Ke.get.hsl=function(t){if(!t)return null;var e=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=t.match(e);if(n){var o=parseFloat(n[4]),a=(parseFloat(n[1])%360+360)%360,u=cr(parseFloat(n[2]),0,100),i=cr(parseFloat(n[3]),0,100),r=cr(isNaN(o)?1:o,0,1);return[a,u,i,r]}return null};Ke.get.hwb=function(t){if(!t)return null;var e=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=t.match(e);if(n){var o=parseFloat(n[4]),a=(parseFloat(n[1])%360+360)%360,u=cr(parseFloat(n[2]),0,100),i=cr(parseFloat(n[3]),0,100),r=cr(isNaN(o)?1:o,0,1);return[a,u,i,r]}return null};Ke.to.hex=function(){var t=Ci(arguments);return"#"+$a(t[0])+$a(t[1])+$a(t[2])+(t[3]<1?$a(Math.round(t[3]*255)):"")};Ke.to.rgb=function(){var t=Ci(arguments);return t.length<4||t[3]===1?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"};Ke.to.rgb.percent=function(){var t=Ci(arguments),e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),o=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+e+"%, "+n+"%, "+o+"%)":"rgba("+e+"%, "+n+"%, "+o+"%, "+t[3]+")"};Ke.to.hsl=function(){var t=Ci(arguments);return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};Ke.to.hwb=function(){var t=Ci(arguments),e="";return t.length>=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};Ke.to.keyword=function(t){return Lx[t.slice(0,3)]};function cr(t,e,n){return Math.min(Math.max(e,t),n)}function $a(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}});var Vx=y((aZ,Dx)=>{"use strict";Dx.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var uf=y((uZ,qx)=>{var Cr=Vx(),Gx={};for(Ka in Cr)Cr.hasOwnProperty(Ka)&&(Gx[Cr[Ka]]=Ka);var Ka,R=qx.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(Le in R)if(R.hasOwnProperty(Le)){if(!("channels"in R[Le]))throw new Error("missing channels property: "+Le);if(!("labels"in R[Le]))throw new Error("missing channel labels property: "+Le);if(R[Le].labels.length!==R[Le].channels)throw new Error("channel and label counts mismatch: "+Le);kx=R[Le].channels,Bx=R[Le].labels,delete R[Le].channels,delete R[Le].labels,Object.defineProperty(R[Le],"channels",{value:kx}),Object.defineProperty(R[Le],"labels",{value:Bx})}var kx,Bx,Le;R.rgb.hsl=function(t){var e=t[0]/255,n=t[1]/255,o=t[2]/255,a=Math.min(e,n,o),u=Math.max(e,n,o),i=u-a,r,s,l;return u===a?r=0:e===u?r=(n-o)/i:n===u?r=2+(o-e)/i:o===u&&(r=4+(e-n)/i),r=Math.min(r*60,360),r<0&&(r+=360),l=(a+u)/2,u===a?s=0:l<=.5?s=i/(u+a):s=i/(2-u-a),[r,s*100,l*100]};R.rgb.hsv=function(t){var e,n,o,a,u,i=t[0]/255,r=t[1]/255,s=t[2]/255,l=Math.max(i,r,s),c=l-Math.min(i,r,s),p=function(m){return(l-m)/6/c+1/2};return c===0?a=u=0:(u=c/l,e=p(i),n=p(r),o=p(s),i===l?a=o-n:r===l?a=1/3+e-o:s===l&&(a=2/3+n-e),a<0?a+=1:a>1&&(a-=1)),[a*360,u*100,l*100]};R.rgb.hwb=function(t){var e=t[0],n=t[1],o=t[2],a=R.rgb.hsl(t)[0],u=1/255*Math.min(e,Math.min(n,o));return o=1-1/255*Math.max(e,Math.max(n,o)),[a,u*100,o*100]};R.rgb.cmyk=function(t){var e=t[0]/255,n=t[1]/255,o=t[2]/255,a,u,i,r;return r=Math.min(1-e,1-n,1-o),a=(1-e-r)/(1-r)||0,u=(1-n-r)/(1-r)||0,i=(1-o-r)/(1-r)||0,[a*100,u*100,i*100,r*100]};function i6(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}R.rgb.keyword=function(t){var e=Gx[t];if(e)return e;var n=1/0,o;for(var a in Cr)if(Cr.hasOwnProperty(a)){var u=Cr[a],i=i6(t,u);i<n&&(n=i,o=a)}return o};R.keyword.rgb=function(t){return Cr[t]};R.rgb.xyz=function(t){var e=t[0]/255,n=t[1]/255,o=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,o=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92;var a=e*.4124+n*.3576+o*.1805,u=e*.2126+n*.7152+o*.0722,i=e*.0193+n*.1192+o*.9505;return[a*100,u*100,i*100]};R.rgb.lab=function(t){var e=R.rgb.xyz(t),n=e[0],o=e[1],a=e[2],u,i,r;return n/=95.047,o/=100,a/=108.883,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,u=116*o-16,i=500*(n-o),r=200*(o-a),[u,i,r]};R.hsl.rgb=function(t){var e=t[0]/360,n=t[1]/100,o=t[2]/100,a,u,i,r,s;if(n===0)return s=o*255,[s,s,s];o<.5?u=o*(1+n):u=o+n-o*n,a=2*o-u,r=[0,0,0];for(var l=0;l<3;l++)i=e+1/3*-(l-1),i<0&&i++,i>1&&i--,6*i<1?s=a+(u-a)*6*i:2*i<1?s=u:3*i<2?s=a+(u-a)*(2/3-i)*6:s=a,r[l]=s*255;return r};R.hsl.hsv=function(t){var e=t[0],n=t[1]/100,o=t[2]/100,a=n,u=Math.max(o,.01),i,r;return o*=2,n*=o<=1?o:2-o,a*=u<=1?u:2-u,r=(o+n)/2,i=o===0?2*a/(u+a):2*n/(o+n),[e,i*100,r*100]};R.hsv.rgb=function(t){var e=t[0]/60,n=t[1]/100,o=t[2]/100,a=Math.floor(e)%6,u=e-Math.floor(e),i=255*o*(1-n),r=255*o*(1-n*u),s=255*o*(1-n*(1-u));switch(o*=255,a){case 0:return[o,s,i];case 1:return[r,o,i];case 2:return[i,o,s];case 3:return[i,r,o];case 4:return[s,i,o];case 5:return[o,i,r]}};R.hsv.hsl=function(t){var e=t[0],n=t[1]/100,o=t[2]/100,a=Math.max(o,.01),u,i,r;return r=(2-n)*o,u=(2-n)*a,i=n*a,i/=u<=1?u:2-u,i=i||0,r/=2,[e,i*100,r*100]};R.hwb.rgb=function(t){var e=t[0]/360,n=t[1]/100,o=t[2]/100,a=n+o,u,i,r,s;a>1&&(n/=a,o/=a),u=Math.floor(6*e),i=1-o,r=6*e-u,u&1&&(r=1-r),s=n+r*(i-n);var l,c,p;switch(u){default:case 6:case 0:l=i,c=s,p=n;break;case 1:l=s,c=i,p=n;break;case 2:l=n,c=i,p=s;break;case 3:l=n,c=s,p=i;break;case 4:l=s,c=n,p=i;break;case 5:l=i,c=n,p=s;break}return[l*255,c*255,p*255]};R.cmyk.rgb=function(t){var e=t[0]/100,n=t[1]/100,o=t[2]/100,a=t[3]/100,u,i,r;return u=1-Math.min(1,e*(1-a)+a),i=1-Math.min(1,n*(1-a)+a),r=1-Math.min(1,o*(1-a)+a),[u*255,i*255,r*255]};R.xyz.rgb=function(t){var e=t[0]/100,n=t[1]/100,o=t[2]/100,a,u,i;return a=e*3.2406+n*-1.5372+o*-.4986,u=e*-.9689+n*1.8758+o*.0415,i=e*.0557+n*-.204+o*1.057,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,u=u>.0031308?1.055*Math.pow(u,1/2.4)-.055:u*12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,a=Math.min(Math.max(0,a),1),u=Math.min(Math.max(0,u),1),i=Math.min(Math.max(0,i),1),[a*255,u*255,i*255]};R.xyz.lab=function(t){var e=t[0],n=t[1],o=t[2],a,u,i;return e/=95.047,n/=100,o/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,a=116*n-16,u=500*(e-n),i=200*(n-o),[a,u,i]};R.lab.xyz=function(t){var e=t[0],n=t[1],o=t[2],a,u,i;u=(e+16)/116,a=n/500+u,i=u-o/200;var r=Math.pow(u,3),s=Math.pow(a,3),l=Math.pow(i,3);return u=r>.008856?r:(u-16/116)/7.787,a=s>.008856?s:(a-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,a*=95.047,u*=100,i*=108.883,[a,u,i]};R.lab.lch=function(t){var e=t[0],n=t[1],o=t[2],a,u,i;return a=Math.atan2(o,n),u=a*360/2/Math.PI,u<0&&(u+=360),i=Math.sqrt(n*n+o*o),[e,i,u]};R.lch.lab=function(t){var e=t[0],n=t[1],o=t[2],a,u,i;return i=o/360*2*Math.PI,a=n*Math.cos(i),u=n*Math.sin(i),[e,a,u]};R.rgb.ansi16=function(t){var e=t[0],n=t[1],o=t[2],a=1 in arguments?arguments[1]:R.rgb.hsv(t)[2];if(a=Math.round(a/50),a===0)return 30;var u=30+(Math.round(o/255)<<2|Math.round(n/255)<<1|Math.round(e/255));return a===2&&(u+=60),u};R.hsv.ansi16=function(t){return R.rgb.ansi16(R.hsv.rgb(t),t[2])};R.rgb.ansi256=function(t){var e=t[0],n=t[1],o=t[2];if(e===n&&n===o)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var a=16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(o/255*5);return a};R.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var n=(~~(t>50)+1)*.5,o=(e&1)*n*255,a=(e>>1&1)*n*255,u=(e>>2&1)*n*255;return[o,a,u]};R.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var n,o=Math.floor(t/36)/5*255,a=Math.floor((n=t%36)/6)/5*255,u=n%6/5*255;return[o,a,u]};R.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),n=e.toString(16).toUpperCase();return"000000".substring(n.length)+n};R.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var n=e[0];e[0].length===3&&(n=n.split("").map(function(r){return r+r}).join(""));var o=parseInt(n,16),a=o>>16&255,u=o>>8&255,i=o&255;return[a,u,i]};R.rgb.hcg=function(t){var e=t[0]/255,n=t[1]/255,o=t[2]/255,a=Math.max(Math.max(e,n),o),u=Math.min(Math.min(e,n),o),i=a-u,r,s;return i<1?r=u/(1-i):r=0,i<=0?s=0:a===e?s=(n-o)/i%6:a===n?s=2+(o-e)/i:s=4+(e-n)/i+4,s/=6,s%=1,[s*360,i*100,r*100]};R.hsl.hcg=function(t){var e=t[1]/100,n=t[2]/100,o=1,a=0;return n<.5?o=2*e*n:o=2*e*(1-n),o<1&&(a=(n-.5*o)/(1-o)),[t[0],o*100,a*100]};R.hsv.hcg=function(t){var e=t[1]/100,n=t[2]/100,o=e*n,a=0;return o<1&&(a=(n-o)/(1-o)),[t[0],o*100,a*100]};R.hcg.rgb=function(t){var e=t[0]/360,n=t[1]/100,o=t[2]/100;if(n===0)return[o*255,o*255,o*255];var a=[0,0,0],u=e%1*6,i=u%1,r=1-i,s=0;switch(Math.floor(u)){case 0:a[0]=1,a[1]=i,a[2]=0;break;case 1:a[0]=r,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=i;break;case 3:a[0]=0,a[1]=r,a[2]=1;break;case 4:a[0]=i,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=r}return s=(1-n)*o,[(n*a[0]+s)*255,(n*a[1]+s)*255,(n*a[2]+s)*255]};R.hcg.hsv=function(t){var e=t[1]/100,n=t[2]/100,o=e+n*(1-e),a=0;return o>0&&(a=e/o),[t[0],a*100,o*100]};R.hcg.hsl=function(t){var e=t[1]/100,n=t[2]/100,o=n*(1-e)+.5*e,a=0;return o>0&&o<.5?a=e/(2*o):o>=.5&&o<1&&(a=e/(2*(1-o))),[t[0],a*100,o*100]};R.hcg.hwb=function(t){var e=t[1]/100,n=t[2]/100,o=e+n*(1-e);return[t[0],(o-e)*100,(1-o)*100]};R.hwb.hcg=function(t){var e=t[1]/100,n=t[2]/100,o=1-n,a=o-e,u=0;return a<1&&(u=(o-a)/(1-a)),[t[0],a*100,u*100]};R.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};R.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};R.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};R.gray.hsl=R.gray.hsv=function(t){return[0,0,t[0]]};R.gray.hwb=function(t){return[0,100,t[0]]};R.gray.cmyk=function(t){return[0,0,0,t[0]]};R.gray.lab=function(t){return[t[0],0,0]};R.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,n=(e<<16)+(e<<8)+e,o=n.toString(16).toUpperCase();return"000000".substring(o.length)+o};R.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}});var Hx=y((sZ,Fx)=>{var za=uf();function o6(){for(var t={},e=Object.keys(za),n=e.length,o=0;o<n;o++)t[e[o]]={distance:-1,parent:null};return t}function a6(t){var e=o6(),n=[t];for(e[t].distance=0;n.length;)for(var o=n.pop(),a=Object.keys(za[o]),u=a.length,i=0;i<u;i++){var r=a[i],s=e[r];s.distance===-1&&(s.distance=e[o].distance+1,s.parent=o,n.unshift(r))}return e}function u6(t,e){return function(n){return e(t(n))}}function s6(t,e){for(var n=[e[t].parent,t],o=za[e[t].parent][t],a=e[t].parent;e[a].parent;)n.unshift(e[a].parent),o=u6(za[e[a].parent][a],o),a=e[a].parent;return o.conversion=n,o}Fx.exports=function(t){for(var e=a6(t),n={},o=Object.keys(e),a=o.length,u=0;u<a;u++){var i=o[u],r=e[i];r.parent!==null&&(n[i]=s6(i,e))}return n}});var Yx=y((lZ,jx)=>{var sf=uf(),l6=Hx(),bn={},c6=Object.keys(sf);function f6(t){var e=function(n){return n==null?n:(arguments.length>1&&(n=Array.prototype.slice.call(arguments)),t(n))};return"conversion"in t&&(e.conversion=t.conversion),e}function p6(t){var e=function(n){if(n==null)return n;arguments.length>1&&(n=Array.prototype.slice.call(arguments));var o=t(n);if(typeof o=="object")for(var a=o.length,u=0;u<a;u++)o[u]=Math.round(o[u]);return o};return"conversion"in t&&(e.conversion=t.conversion),e}c6.forEach(function(t){bn[t]={},Object.defineProperty(bn[t],"channels",{value:sf[t].channels}),Object.defineProperty(bn[t],"labels",{value:sf[t].labels});var e=l6(t),n=Object.keys(e);n.forEach(function(o){var a=e[o];bn[t][o]=p6(a),bn[t][o].raw=f6(a)})});jx.exports=bn});var zx=y((cZ,Kx)=>{"use strict";var Ui=Ux(),ze=Yx(),ff=[].slice,$x=["keyword","gray","hex"],lf={};Object.keys(ze).forEach(function(t){lf[ff.call(ze[t].labels).sort().join("")]=t});var Wa={};function Ee(t,e){if(!(this instanceof Ee))return new Ee(t,e);if(e&&e in $x&&(e=null),e&&!(e in ze))throw new Error("Unknown model: "+e);var n,o;if(t==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof Ee)this.model=t.model,this.color=t.color.slice(),this.valpha=t.valpha;else if(typeof t=="string"){var a=Ui.get(t);if(a===null)throw new Error("Unable to parse color from string: "+t);this.model=a.model,o=ze[this.model].channels,this.color=a.value.slice(0,o),this.valpha=typeof a.value[o]=="number"?a.value[o]:1}else if(t.length){this.model=e||"rgb",o=ze[this.model].channels;var u=ff.call(t,0,o);this.color=cf(u,o),this.valpha=typeof t[o]=="number"?t[o]:1}else if(typeof t=="number")t&=16777215,this.model="rgb",this.color=[t>>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;var i=Object.keys(t);"alpha"in t&&(i.splice(i.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);var r=i.sort().join("");if(!(r in lf))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=lf[r];var s=ze[this.model].labels,l=[];for(n=0;n<s.length;n++)l.push(t[s[n]]);this.color=cf(l)}if(Wa[this.model])for(o=ze[this.model].channels,n=0;n<o;n++){var c=Wa[this.model][n];c&&(this.color[n]=c(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}Ee.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(t){var e=this.model in Ui.to?this:this.rgb();e=e.round(typeof t=="number"?t:1);var n=e.valpha===1?e.color:e.color.concat(this.valpha);return Ui.to[e.model](n)},percentString:function(t){var e=this.rgb().round(typeof t=="number"?t:1),n=e.valpha===1?e.color:e.color.concat(this.valpha);return Ui.to.rgb.percent(n)},array:function(){return this.valpha===1?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var t={},e=ze[this.model].channels,n=ze[this.model].labels,o=0;o<e;o++)t[n[o]]=this.color[o];return this.valpha!==1&&(t.alpha=this.valpha),t},unitArray:function(){var t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,this.valpha!==1&&t.push(this.valpha),t},unitObject:function(){var t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,this.valpha!==1&&(t.alpha=this.valpha),t},round:function(t){return t=Math.max(t||0,0),new Ee(this.color.map(h6(t)).concat(this.valpha),this.model)},alpha:function(t){return arguments.length?new Ee(this.color.concat(Math.max(0,Math.min(1,t))),this.model):this.valpha},red:le("rgb",0,de(255)),green:le("rgb",1,de(255)),blue:le("rgb",2,de(255)),hue:le(["hsl","hsv","hsl","hwb","hcg"],0,function(t){return(t%360+360)%360}),saturationl:le("hsl",1,de(100)),lightness:le("hsl",2,de(100)),saturationv:le("hsv",1,de(100)),value:le("hsv",2,de(100)),chroma:le("hcg",1,de(100)),gray:le("hcg",2,de(100)),white:le("hwb",1,de(100)),wblack:le("hwb",2,de(100)),cyan:le("cmyk",0,de(100)),magenta:le("cmyk",1,de(100)),yellow:le("cmyk",2,de(100)),black:le("cmyk",3,de(100)),x:le("xyz",0,de(100)),y:le("xyz",1,de(100)),z:le("xyz",2,de(100)),l:le("lab",0,de(100)),a:le("lab",1),b:le("lab",2),keyword:function(t){return arguments.length?new Ee(t):ze[this.model].keyword(this.color)},hex:function(t){return arguments.length?new Ee(t):Ui.to.hex(this.rgb().round().color)},rgbNumber:function(){var t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity:function(){for(var t=this.rgb().color,e=[],n=0;n<t.length;n++){var o=t[n]/255;e[n]=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)}return .2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),n=t.luminosity();return e>n?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},isDark:function(){var t=this.rgb().color,e=(t[0]*299+t[1]*587+t[2]*114)/1e3;return e<128},isLight:function(){return!this.isDark()},negate:function(){for(var t=this.rgb(),e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten:function(t){var e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken:function(t){var e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate:function(t){var e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate:function(t){var e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten:function(t){var e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken:function(t){var e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale:function(){var t=this.rgb().color,e=t[0]*.3+t[1]*.59+t[2]*.11;return Ee.rgb(e,e,e)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var e=this.hsl(),n=e.color[0];return n=(n+t)%360,n=n<0?360+n:n,e.color[0]=n,e},mix:function(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);var n=t.rgb(),o=this.rgb(),a=e===void 0?.5:e,u=2*a-1,i=n.alpha()-o.alpha(),r=((u*i===-1?u:(u+i)/(1+u*i))+1)/2,s=1-r;return Ee.rgb(r*n.red()+s*o.red(),r*n.green()+s*o.green(),r*n.blue()+s*o.blue(),n.alpha()*a+o.alpha()*(1-a))}};Object.keys(ze).forEach(function(t){if($x.indexOf(t)===-1){var e=ze[t].channels;Ee.prototype[t]=function(){if(this.model===t)return new Ee(this);if(arguments.length)return new Ee(arguments,t);var n=typeof arguments[e]=="number"?e:this.valpha;return new Ee(m6(ze[this.model][t].raw(this.color)).concat(n),t)},Ee[t]=function(n){return typeof n=="number"&&(n=cf(ff.call(arguments),e)),new Ee(n,t)}}});function d6(t,e){return Number(t.toFixed(e))}function h6(t){return function(e){return d6(e,t)}}function le(t,e,n){return t=Array.isArray(t)?t:[t],t.forEach(function(o){(Wa[o]||(Wa[o]=[]))[e]=n}),t=t[0],function(o){var a;return arguments.length?(n&&(o=n(o)),a=this[t](),a.color[e]=o,a):(a=this[t]().color[e],n&&(a=n(a)),a)}}function de(t){return function(e){return Math.max(0,Math.min(t,e))}}function m6(t){return Array.isArray(t)?t:[t]}function cf(t,e){for(var n=0;n<e;n++)typeof t[n]!="number"&&(t[n]=0);return t}Kx.exports=Ee});var Xx=y((fZ,Wx)=>{"use strict";Wx.exports=function(e){for(var n=0,o=0;n<e.length;o=e.charCodeAt(n++)+((o<<5)-o));var a=Math.floor(Math.abs(Math.sin(o)*1e4%1*16777216)).toString(16);return"#"+Array(6-a.length+1).join("0")+a}});var eN=y((pZ,Zx)=>{"use strict";var Jx=zx(),Qx=Xx();Zx.exports=function(e,n){var o=e.split(n||":"),a=Qx(o[0]);if(!o.length)return a;for(var u=0,i=o.length-1;u<i;u++)a=Jx(a).mix(Jx(Qx(o[u+1]))).saturate(1).hex();return a}});var rN=y((dZ,tN)=>{"use strict";function lt(t,e){if(e)return new lt(t).style(e);if(!(this instanceof lt))return new lt(t);this.text=t}lt.prototype.prefix="\x1B[";lt.prototype.suffix="m";lt.prototype.hex=function(e){e=e[0]==="#"?e.substring(1):e,e.length===3&&(e=e.split(""),e[5]=e[2],e[4]=e[2],e[3]=e[1],e[2]=e[1],e[1]=e[0],e=e.join(""));var n=e.substring(0,2),o=e.substring(2,4),a=e.substring(4,6);return[parseInt(n,16),parseInt(o,16),parseInt(a,16)]};lt.prototype.rgb=function(e,n,o){var a=e/255*5,u=n/255*5,i=o/255*5;return this.ansi(a,u,i)};lt.prototype.ansi=function(e,n,o){var a=Math.round(e),u=Math.round(n),i=Math.round(o);return 16+a*36+u*6+i};lt.prototype.reset=function(){return this.prefix+"39;49"+this.suffix};lt.prototype.style=function(e){return this.prefix+"38;5;"+this.rgb.apply(this,this.hex(e))+this.suffix+this.text+this.reset()};tN.exports=lt});var iN=y((hZ,nN)=>{var v6=eN(),y6=rN();nN.exports=function(e,n){var o=n.namespace,a=n.colors!==!1?y6(o+":",v6(o)):o+":";return e[0]=a+" "+e[0],e}});var aN=y((mZ,oN)=>{"use strict";oN.exports=function(e,n){if(!n)return!1;for(var o=n.split(/[\s,]+/),a=0;a<o.length;a++){if(n=o[a].replace("*",".*?"),n.charAt(0)==="-"){if(new RegExp("^"+n.substr(1)+"$").test(e))return!1;continue}if(new RegExp("^"+n+"$").test(e))return!0}return!1}});var sN=y((vZ,uN)=>{var _6=aN();uN.exports=function(e){return function(o){try{return _6(o,e())}catch{}return!1}}});var cN=y((yZ,lN)=>{var S6=sN();lN.exports=S6(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var pN=y((_Z,fN)=>{fN.exports=function(t,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var hN=y((SZ,dN)=>{var E6=af(),T6=M("tty").isatty(1),Xa=E6(function t(e,n){return n=n||{},n.colors="colors"in n?n.colors:T6,n.namespace=e,n.prod=!1,n.dev=!0,!t.enabled(e)&&!(n.force||t.force)?t.nope(n):t.yep(n)});Xa.modify(iN());Xa.use(cN());Xa.set(pN());dN.exports=Xa});var Di=y((EZ,pf)=>{process.env.NODE_ENV==="production"?pf.exports=Ax():pf.exports=hN()});var vN=y((TZ,mN)=>{"use strict";var df=M("fs"),{StringDecoder:g6}=M("string_decoder"),{Stream:O6}=Lr();function A6(){}mN.exports=(t,e)=>{let n=Buffer.alloc(65536),o=new g6("utf8"),a=new O6,u="",i=0,r=0;return t.start===-1&&delete t.start,a.readable=!0,a.destroy=()=>{a.destroyed=!0,a.emit("end"),a.emit("close")},df.open(t.file,"a+","0644",(s,l)=>{if(s){e?e(s):a.emit("error",s),a.destroy();return}(function c(){if(a.destroyed){df.close(l,A6);return}return df.read(l,n,0,n.length,i,(p,m)=>{if(p){e?e(p):a.emit("error",p),a.destroy();return}if(!m)return u&&((t.start==null||r>t.start)&&(e?e(null,u):a.emit("line",u)),r++,u=""),setTimeout(c,1e3);let f=o.write(n.slice(0,m));e||a.emit("data",f),f=(u+f).split(/\n+/);let v=f.length-1,S=0;for(;S<v;S++)(t.start==null||r>t.start)&&(e?e(null,f[S]):a.emit("line",f[S])),r++;return u=f[v],i+=m,c()})})()}),e?a.destroy:a}});var EN=y((OZ,SN)=>{"use strict";var qe=M("fs"),ve=M("path"),yN=cx(),b6=M("zlib"),{MESSAGE:x6}=fe(),{Stream:N6,PassThrough:_N}=Lr(),R6=Tn(),ct=Di()("winston:file"),P6=M("os"),w6=vN();SN.exports=class extends R6{constructor(e={}){super(e),this.name=e.name||"file";function n(o,...a){a.slice(1).forEach(u=>{if(e[u])throw new Error(`Cannot set ${u} and ${o} together`)})}if(this._stream=new _N,this._stream.setMaxListeners(30),this._onError=this._onError.bind(this),e.filename||e.dirname)n("filename or dirname","stream"),this._basename=this.filename=e.filename?ve.basename(e.filename):"winston.log",this.dirname=e.dirname||ve.dirname(e.filename),this.options=e.options||{flags:"a"};else if(e.stream)console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),n("stream","filename","maxsize"),this._dest=this._stream.pipe(this._setupStream(e.stream)),this.dirname=ve.dirname(this._dest.path);else throw new Error("Cannot log to file without filename or stream.");this.maxsize=e.maxsize||null,this.rotationFormat=e.rotationFormat||!1,this.zippedArchive=e.zippedArchive||!1,this.maxFiles=e.maxFiles||null,this.eol=typeof e.eol=="string"?e.eol:P6.EOL,this.tailable=e.tailable||!1,this.lazy=e.lazy||!1,this._size=0,this._pendingSize=0,this._created=0,this._drain=!1,this._opening=!1,this._ending=!1,this._fileExist=!1,this.dirname&&this._createLogDirIfNotExist(this.dirname),this.lazy||this.open()}finishIfEnding(){this._ending&&(this._opening?this.once("open",()=>{this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())}):(this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())))}log(e,n=()=>{}){if(this.silent)return n(),!0;if(this._drain){this._stream.once("drain",()=>{this._drain=!1,this.log(e,n)});return}if(this._rotate){this._stream.once("rotate",()=>{this._rotate=!1,this.log(e,n)});return}if(this.lazy){if(!this._fileExist){this._opening||this.open(),this.once("open",()=>{this._fileExist=!0,this.log(e,n)});return}if(this._needsNewFile(this._pendingSize)){this._dest.once("close",()=>{this._opening||this.open(),this.once("open",()=>{this.log(e,n)})});return}}let o=`${e[x6]}${this.eol}`,a=Buffer.byteLength(o);function u(){if(this._size+=a,this._pendingSize-=a,ct("logged %s %s",this._size,o),this.emit("logged",e),!this._rotate&&!this._opening&&this._needsNewFile()){if(this.lazy){this._endStream(()=>{this.emit("fileclosed")});return}this._rotate=!0,this._endStream(()=>this._rotateFile())}}this._pendingSize+=a,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);let i=this._stream.write(o,u.bind(this));return i?n():(this._drain=!0,this._stream.once("drain",()=>{this._drain=!1,n()})),ct("written",i,this._drain),this.finishIfEnding(),i}query(e,n){typeof e=="function"&&(n=e,e={}),e=p(e);let o=ve.join(this.dirname,this.filename),a="",u=[],i=0,r=qe.createReadStream(o,{encoding:"utf8"});r.on("error",m=>{if(r.readable&&r.destroy(),!!n)return m.code!=="ENOENT"?n(m):n(null,u)}),r.on("data",m=>{m=(a+m).split(/\n+/);let f=m.length-1,v=0;for(;v<f;v++)(!e.start||i>=e.start)&&s(m[v]),i++;a=m[f]}),r.on("close",()=>{a&&s(a,!0),e.order==="desc"&&(u=u.reverse()),n&&n(null,u)});function s(m,f){try{let v=JSON.parse(m);c(v)&&l(v)}catch(v){f||r.emit("error",v)}}function l(m){if(e.rows&&u.length>=e.rows&&e.order!=="desc"){r.readable&&r.destroy();return}e.fields&&(m=e.fields.reduce((f,v)=>(f[v]=m[v],f),{})),e.order==="desc"&&u.length>=e.rows&&u.shift(),u.push(m)}function c(m){if(!m||typeof m!="object")return;let f=new Date(m.timestamp);if(!(e.from&&f<e.from||e.until&&f>e.until||e.level&&e.level!==m.level))return!0}function p(m){return m=m||{},m.rows=m.rows||m.limit||10,m.start=m.start||0,m.until=m.until||new Date,typeof m.until!="object"&&(m.until=new Date(m.until)),m.from=m.from||m.until-24*60*60*1e3,typeof m.from!="object"&&(m.from=new Date(m.from)),m.order=m.order||"desc",m}}stream(e={}){let n=ve.join(this.dirname,this.filename),o=new N6,a={file:n,start:e.start};return o.destroy=w6(a,(u,i)=>{if(u)return o.emit("error",u);try{o.emit("data",i),i=JSON.parse(i),o.emit("log",i)}catch(r){o.emit("error",r)}}),o}open(){this.filename&&(this._opening||(this._opening=!0,this.stat((e,n)=>{if(e)return this.emit("error",e);ct("stat done: %s { size: %s }",this.filename,n),this._size=n,this._dest=this._createStream(this._stream),this._opening=!1,this.once("open",()=>{this._stream.eventNames().includes("rotate")?this._stream.emit("rotate"):this._rotate=!1})})))}stat(e){let n=this._getFile(),o=ve.join(this.dirname,n);qe.stat(o,(a,u)=>{if(a&&a.code==="ENOENT")return ct("ENOENT\xA0ok",o),this.filename=n,e(null,0);if(a)return ct(`err ${a.code} ${o}`),e(a);if(!u||this._needsNewFile(u.size))return this._incFile(()=>this.stat(e));this.filename=n,e(null,u.size)})}close(e){this._stream&&this._stream.end(()=>{e&&e(),this.emit("flush"),this.emit("closed")})}_needsNewFile(e){return e=e||this._size,this.maxsize&&e>=this.maxsize}_onError(e){this.emit("error",e)}_setupStream(e){return e.on("error",this._onError),e}_cleanupStream(e){return e.removeListener("error",this._onError),e.destroy(),e}_rotateFile(){this._incFile(()=>this.open())}_endStream(e=()=>{}){this._dest?(this._stream.unpipe(this._dest),this._dest.end(()=>{this._cleanupStream(this._dest),e()})):e()}_createStream(e){let n=ve.join(this.dirname,this.filename);ct("create stream start",n,this.options);let o=qe.createWriteStream(n,this.options).on("error",a=>ct(a)).on("close",()=>ct("close",o.path,o.bytesWritten)).on("open",()=>{ct("file open ok",n),this.emit("open",n),e.pipe(o),this.rotatedWhileOpening&&(this._stream=new _N,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(o),e.end())});return ct("create stream ok",n),o}_incFile(e){ct("_incFile",this.filename);let n=ve.extname(this._basename),o=ve.basename(this._basename,n),a=[];this.zippedArchive&&a.push(function(u){let i=this._created>0&&!this.tailable?this._created:"";this._compressFile(ve.join(this.dirname,`${o}${i}${n}`),ve.join(this.dirname,`${o}${i}${n}.gz`),u)}.bind(this)),a.push(function(u){this.tailable?this._checkMaxFilesTailable(n,o,u):(this._created+=1,this._checkMaxFilesIncrementing(n,o,u))}.bind(this)),yN(a,e)}_getFile(){let e=ve.extname(this._basename),n=ve.basename(this._basename,e),o=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?`${n}${o}${e}`:`${n}${e}`}_checkMaxFilesIncrementing(e,n,o){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate(o);let a=this._created-this.maxFiles,u=a!==0?a:"",i=this.zippedArchive?".gz":"",r=`${n}${u}${e}${i}`,s=ve.join(this.dirname,r);qe.unlink(s,o)}_checkMaxFilesTailable(e,n,o){let a=[];if(!this.maxFiles)return;let u=this.zippedArchive?".gz":"";for(let i=this.maxFiles-1;i>1;i--)a.push(function(r,s){let l=`${n}${r-1}${e}${u}`,c=ve.join(this.dirname,l);qe.exists(c,p=>{if(!p)return s(null);l=`${n}${r}${e}${u}`,qe.rename(c,ve.join(this.dirname,l),s)})}.bind(this,i));yN(a,()=>{qe.rename(ve.join(this.dirname,`${n}${e}${u}`),ve.join(this.dirname,`${n}1${e}${u}`),o)})}_compressFile(e,n,o){qe.access(e,qe.F_OK,a=>{if(a)return o();var u=b6.createGzip(),i=qe.createReadStream(e),r=qe.createWriteStream(n);r.on("finish",()=>{qe.unlink(e,o)}),i.pipe(u).pipe(r)})}_createLogDirIfNotExist(e){qe.existsSync(e)||qe.mkdirSync(e,{recursive:!0})}}});var gN=y((bZ,TN)=>{"use strict";var M6=M("http"),I6=M("https"),{Stream:L6}=Lr(),C6=Tn(),{configure:U6}=vi();TN.exports=class extends C6{constructor(e={}){super(e),this.options=e,this.name=e.name||"http",this.ssl=!!e.ssl,this.host=e.host||"localhost",this.port=e.port,this.auth=e.auth,this.path=e.path||"",this.maximumDepth=e.maximumDepth,this.agent=e.agent,this.headers=e.headers||{},this.headers["content-type"]="application/json",this.batch=e.batch||!1,this.batchInterval=e.batchInterval||5e3,this.batchCount=e.batchCount||10,this.batchOptions=[],this.batchTimeoutID=-1,this.batchCallback={},this.port||(this.port=this.ssl?443:80)}log(e,n){this._request(e,null,null,(o,a)=>{a&&a.statusCode!==200&&(o=new Error(`Invalid HTTP Status Code: ${a.statusCode}`)),o?this.emit("warn",o):this.emit("logged",e)}),n&&setImmediate(n)}query(e,n){typeof e=="function"&&(n=e,e={}),e={method:"query",params:this.normalizeQuery(e)};let o=e.params.auth||null;delete e.params.auth;let a=e.params.path||null;delete e.params.path,this._request(e,o,a,(u,i,r)=>{if(i&&i.statusCode!==200&&(u=new Error(`Invalid HTTP Status Code: ${i.statusCode}`)),u)return n(u);if(typeof r=="string")try{r=JSON.parse(r)}catch(s){return n(s)}n(null,r)})}stream(e={}){let n=new L6;e={method:"stream",params:e};let o=e.params.path||null;delete e.params.path;let a=e.params.auth||null;delete e.params.auth;let u="",i=this._request(e,a,o);return n.destroy=()=>i.destroy(),i.on("data",r=>{r=(u+r).split(/\n+/);let s=r.length-1,l=0;for(;l<s;l++)try{n.emit("log",JSON.parse(r[l]))}catch(c){n.emit("error",c)}u=r[s]}),i.on("error",r=>n.emit("error",r)),n}_request(e,n,o,a){e=e||{},n=n||this.auth,o=o||this.path||"",this.batch?this._doBatch(e,a,n,o):this._doRequest(e,a,n,o)}_doBatch(e,n,o,a){if(this.batchOptions.push(e),this.batchOptions.length===1){let u=this;this.batchCallback=n,this.batchTimeoutID=setTimeout(function(){u.batchTimeoutID=-1,u._doBatchRequest(u.batchCallback,o,a)},this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,o,a)}_doBatchRequest(e,n,o){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);let a=this.batchOptions.slice();this.batchOptions=[],this._doRequest(a,e,n,o)}_doRequest(e,n,o,a){let u=Object.assign({},this.headers);o&&o.bearer&&(u.Authorization=`Bearer ${o.bearer}`);let i=(this.ssl?I6:M6).request({...this.options,method:"POST",host:this.host,port:this.port,path:`/${a.replace(/^\//,"")}`,headers:u,auth:o&&o.username&&o.password?`${o.username}:${o.password}`:"",agent:this.agent});i.on("error",n),i.on("response",s=>s.on("end",()=>n(null,s)).resume());let r=U6({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});i.end(Buffer.from(r(e,this.options.replacer),"utf8"))}}});var hf=y((xZ,ON)=>{"use strict";var St=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";St.writable=t=>St(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";St.readable=t=>St(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";St.duplex=t=>St.writable(t)&&St.readable(t);St.transform=t=>St.duplex(t)&&typeof t._transform=="function";ON.exports=St});var bN=y((RZ,AN)=>{"use strict";var D6=hf(),{MESSAGE:V6}=fe(),k6=M("os"),B6=Tn();AN.exports=class extends B6{constructor(e={}){if(super(e),!e.stream||!D6(e.stream))throw new Error("options.stream is required.");this._stream=e.stream,this._stream.setMaxListeners(1/0),this.isObjectMode=e.stream._writableState.objectMode,this.eol=typeof e.eol=="string"?e.eol:k6.EOL}log(e,n){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode){this._stream.write(e),n&&n();return}this._stream.write(`${e[V6]}${this.eol}`),n&&n()}}});var xN=y(Vi=>{"use strict";Object.defineProperty(Vi,"Console",{configurable:!0,enumerable:!0,get(){return Rb()}});Object.defineProperty(Vi,"File",{configurable:!0,enumerable:!0,get(){return EN()}});Object.defineProperty(Vi,"Http",{configurable:!0,enumerable:!0,get(){return gN()}});Object.defineProperty(Vi,"Stream",{configurable:!0,enumerable:!0,get(){return bN()}})});var Qa=y(ki=>{"use strict";var Ja=dc(),{configs:mf}=fe();ki.cli=Ja.levels(mf.cli);ki.npm=Ja.levels(mf.npm);ki.syslog=Ja.levels(mf.syslog);ki.addColors=Ja.levels});var RN=y((Za,NN)=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});var G6=Na(),q6=Ur(G6),F6=Va(),H6=Ur(F6),j6=Xc(),Y6=Ur(j6),$6=Kc(),K6=Ur($6),z6=zc(),W6=Ur(z6),X6=Ir(),J6=Ur(X6),Q6=On(),Z6=Ur(Q6);function Ur(t){return t&&t.__esModule?t:{default:t}}function eY(t,e,n){n=(0,K6.default)(n);var o=0,a=0,{length:u}=t,i=!1;u===0&&n(null);function r(s,l){s===!1&&(i=!0),i!==!0&&(s?n(s):(++a===u||l===H6.default)&&n(null))}for(;o<u;o++)e(t[o],o,(0,W6.default)(r))}function tY(t,e,n){return(0,Y6.default)(t,1/0,e,n)}function rY(t,e,n){var o=(0,q6.default)(t)?eY:tY;return o(t,(0,J6.default)(e),n)}Za.default=(0,Z6.default)(rY,3);NN.exports=Za.default});var wN=y((eu,PN)=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.default=nY;function nY(t){return(e,n,o)=>t(e,o)}PN.exports=eu.default});var nu=y((ru,MN)=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});var iY=RN(),oY=tu(iY),aY=wN(),uY=tu(aY),sY=Ir(),lY=tu(sY),cY=On(),fY=tu(cY);function tu(t){return t&&t.__esModule?t:{default:t}}function pY(t,e,n){return(0,oY.default)(t,(0,uY.default)((0,lY.default)(e)),n)}ru.default=(0,fY.default)(pY,3);MN.exports=ru.default});var LN=y((MZ,IN)=>{"use strict";var dY=Object.prototype.toString;IN.exports=function(e){if(typeof e.displayName=="string"&&e.constructor.name)return e.displayName;if(typeof e.name=="string"&&e.name)return e.name;if(typeof e=="object"&&e.constructor&&typeof e.constructor.name=="string")return e.constructor.name;var n=e.toString(),o=dY.call(e).slice(8,-1);return o==="Function"?n=n.substring(n.indexOf("(")+1,n.indexOf(")")):n=o,n||"anonymous"}});var vf=y((IZ,CN)=>{"use strict";var hY=LN();CN.exports=function(e){var n=0,o;function a(){return n||(n=1,o=e.apply(this,arguments),e=null),o}return a.displayName=hY(e),a}});var yf=y(Gi=>{Gi.get=function(t){var e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var n={},o=Error.prepareStackTrace;Error.prepareStackTrace=function(u,i){return i},Error.captureStackTrace(n,t||Gi.get);var a=n.stack;return Error.prepareStackTrace=o,Error.stackTraceLimit=e,a};Gi.parse=function(t){if(!t.stack)return[];var e=this,n=t.stack.split(`
|
35
|
-
`).slice(1);return n.map(function(
|
36
|
-
`),stack:e&&e.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:
|
37
|
-
`),stack:e&&e.stack,rejection:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:
|
38
|
-
`));
|
39
|
-
`))}_onEvent(e,n){function o(a){e==="error"&&!this.transports.includes(n)&&this.add(n),this.emit(e,a,n)}n["__winston"+e]||(n["__winston"+e]=o.bind(this),n.on(e,n["__winston"+e]))}_addDefaultMeta(e){this.defaultMeta&&Object.assign(e,this.defaultMeta)}};function Of(t,e){let n=t[e];return!n&&n!==0?null:n}Object.defineProperty(ou.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:t}=this._readableState;return Array.isArray(t)?t:[t].filter(Boolean)}});XN.exports=ou});var Af=y((jZ,JN)=>{"use strict";var{LEVEL:CY}=fe(),UY=Qa(),DY=iu(),VY=Di()("winston:create-logger");function kY(t){return"is"+t.charAt(0).toUpperCase()+t.slice(1)+"Enabled"}JN.exports=function(t={}){t.levels=t.levels||UY.npm.levels;class e extends DY{constructor(a){super(a)}}let n=new e(t);return Object.keys(t.levels).forEach(function(o){if(VY('Define prototype method for "%s"',o),o==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}e.prototype[o]=function(...a){let u=this||n;if(a.length===1){let[i]=a,r=i&&i.message&&i||{message:i};return r.level=r[CY]=o,u._addDefaultMeta(r),u.write(r),this||n}return a.length===0?(u.log(o,""),u):u.log(o,...a)},e.prototype[kY(o)]=function(){return(this||n).isLevelEnabled(o)}}),n}});var ZN=y(($Z,QN)=>{"use strict";var BY=Af();QN.exports=class{constructor(e={}){this.loggers=new Map,this.options=e}add(e,n){if(!this.loggers.has(e)){n=Object.assign({},n||this.options);let o=n.transports||this.options.transports;o?n.transports=Array.isArray(o)?o.slice():[o]:n.transports=[];let a=BY(n);a.on("close",()=>this._delete(e)),this.loggers.set(e,a)}return this.loggers.get(e)}get(e,n){return this.add(e,n)}has(e){return!!this.loggers.has(e)}close(e){if(e)return this._removeLogger(e);this.loggers.forEach((n,o)=>this._removeLogger(o))}_removeLogger(e){if(!this.loggers.has(e))return;this.loggers.get(e).close(),this._delete(e)}_delete(e){this.loggers.delete(e)}}});var tR=y(Q=>{"use strict";var eR=dc(),{warn:qi}=hc();Q.version=xA().version;Q.transports=xN();Q.config=Qa();Q.addColors=eR.levels;Q.format=eR.format;Q.createLogger=Af();Q.Logger=iu();Q.ExceptionHandler=Sf();Q.RejectionHandler=Tf();Q.Container=ZN();Q.Transport=Tn();Q.loggers=new Q.Container;var Tt=Q.createLogger();Object.keys(Q.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(t=>Q[t]=(...e)=>Tt[t](...e));Object.defineProperty(Q,"level",{get(){return Tt.level},set(t){Tt.level=t}});Object.defineProperty(Q,"exceptions",{get(){return Tt.exceptions}});Object.defineProperty(Q,"rejections",{get(){return Tt.rejections}});["exitOnError"].forEach(t=>{Object.defineProperty(Q,t,{get(){return Tt[t]},set(e){Tt[t]=e}})});Object.defineProperty(Q,"default",{get(){return{exceptionHandlers:Tt.exceptionHandlers,rejectionHandlers:Tt.rejectionHandlers,transports:Tt.transports}}});qi.deprecated(Q,"setLevels");qi.forFunctions(Q,"useFormat",["cli"]);qi.forProperties(Q,"useFormat",["padLevels","stripColors"]);qi.forFunctions(Q,"deprecated",["addRewriter","addFilter","clone","extend"]);qi.forProperties(Q,"deprecated",["emitErrs","levelLength"])});function Fi(t){return t.setValue(bf,!0)}function GY(t){return t.deleteValue(bf)}function Ce(t){return t.getValue(bf)===!0}var bf,Hi=E(()=>{w();bf=Qr("OpenTelemetry SDK Context Key SUPPRESS_TRACING")});var nR,au,xn,uu,iR,oR,aR,xf=E(()=>{nR="=",au=";",xn=",",uu="baggage",iR=180,oR=4096,aR=8192});var Vt={};it(Vt,{getKeyPairs:()=>Rf,parseKeyPairsIntoRecord:()=>FY,parsePairKeyValue:()=>su,serializeKeyPairs:()=>Nf});function Nf(t){return t.reduce(function(e,n){var o=""+e+(e!==""?xn:"")+n;return o.length>aR?e:o},"")}function Rf(t){return t.getAllEntries().map(function(e){var n=qY(e,2),o=n[0],a=n[1],u=encodeURIComponent(o)+"="+encodeURIComponent(a.value);return a.metadata!==void 0&&(u+=au+a.metadata.toString()),u})}function su(t){var e=t.split(au);if(!(e.length<=0)){var n=e.shift();if(n){var o=n.indexOf(nR);if(!(o<=0)){var a=decodeURIComponent(n.substring(0,o).trim()),u=decodeURIComponent(n.substring(o+1).trim()),i;return e.length>0&&(i=th(e.join(au))),{key:a,value:u,metadata:i}}}}}function FY(t){return typeof t!="string"||t.length===0?{}:t.split(xn).map(function(e){return su(e)}).filter(function(e){return e!==void 0&&e.value.length>0}).reduce(function(e,n){return e[n.key]=n.value,e},{})}var qY,Pf=E(()=>{w();xf();qY=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),a,u=[],i;try{for(;(e===void 0||e-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(r){i={error:r}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u}});var wf,uR=E(()=>{w();Hi();xf();Pf();wf=function(){function t(){}return t.prototype.inject=function(e,n,o){var a=at.getBaggage(e);if(!(!a||Ce(e))){var u=Rf(a).filter(function(r){return r.length<=oR}).slice(0,iR),i=Nf(u);i.length>0&&o.set(n,uu,i)}},t.prototype.extract=function(e,n,o){var a=o.get(n,uu),u=Array.isArray(a)?a.join(xn):a;if(!u)return e;var i={};if(u.length===0)return e;var r=u.split(xn);return r.forEach(function(s){var l=su(s);if(l){var c={value:l.value};l.metadata&&(c.metadata=l.metadata),i[l.key]=c}}),Object.entries(i).length===0?e:at.setBaggage(e,at.createBaggage(i))},t.prototype.fields=function(){return[uu]},t}()});var HY,sR=E(()=>{HY=function(){function t(e,n){this._monotonicClock=n,this._epochMillis=e.now(),this._performanceMillis=n.now()}return t.prototype.now=function(){var e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e},t}()});function Dr(t){var e,n,o={};if(typeof t!="object"||t==null)return o;try{for(var a=lR(Object.entries(t)),u=a.next();!u.done;u=a.next()){var i=jY(u.value,2),r=i[0],s=i[1];if(!cR(r)){A.warn("Invalid attribute key: "+r);continue}if(!lu(s)){A.warn("Invalid attribute value set for key: "+r);continue}Array.isArray(s)?o[r]=s.slice():o[r]=s}}catch(l){e={error:l}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return o}function cR(t){return typeof t=="string"&&t.length>0}function lu(t){return t==null?!0:Array.isArray(t)?YY(t):fR(t)}function YY(t){var e,n,o;try{for(var a=lR(t),u=a.next();!u.done;u=a.next()){var i=u.value;if(i!=null){if(!o){if(fR(i)){o=typeof i;continue}return!1}if(typeof i!==o)return!1}}}catch(r){e={error:r}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return!0}function fR(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}var lR,jY,pR=E(()=>{w();lR=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},jY=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),a,u=[],i;try{for(;(e===void 0||e-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(r){i={error:r}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u}});function Mf(){return function(t){A.error($Y(t))}}function $Y(t){return typeof t=="string"?t:JSON.stringify(KY(t))}function KY(t){for(var e={},n=t;n!==null;)Object.getOwnPropertyNames(n).forEach(function(o){if(!e[o]){var a=n[o];a&&(e[o]=String(a))}}),n=Object.getPrototypeOf(n);return e}var If=E(()=>{w()});function zY(t){dR=t}function Ae(t){try{dR(t)}catch{}}var dR,Lf=E(()=>{If();dR=Mf()});var We,Cf=E(()=>{(function(t){t.AlwaysOff="always_off",t.AlwaysOn="always_on",t.ParentBasedAlwaysOff="parentbased_always_off",t.ParentBasedAlwaysOn="parentbased_always_on",t.ParentBasedTraceIdRatio="parentbased_traceidratio",t.TraceIdRatio="traceidratio"})(We||(We={}))});function JY(t){return XY.indexOf(t)>-1}function ZY(t){return QY.indexOf(t)>-1}function t$(t){return e$.indexOf(t)>-1}function r$(t,e,n){if(!(typeof n[t]>"u")){var o=String(n[t]);e[t]=o.toLowerCase()==="true"}}function n$(t,e,n,o,a){if(o===void 0&&(o=-1/0),a===void 0&&(a=1/0),typeof n[t]<"u"){var u=Number(n[t]);isNaN(u)||(u<o?e[t]=o:u>a?e[t]=a:e[t]=u)}}function i$(t,e,n,o){o===void 0&&(o=WY);var a=n[t];typeof a=="string"&&(e[t]=a.split(o).map(function(u){return u.trim()}))}function a$(t,e,n){var o=n[t];if(typeof o=="string"){var a=o$[o.toUpperCase()];a!=null&&(e[t]=a)}}function fu(t){var e={};for(var n in cu){var o=n;switch(o){case"OTEL_LOG_LEVEL":a$(o,e,t);break;default:if(JY(o))r$(o,e,t);else if(ZY(o))n$(o,e,t);else if(t$(o))i$(o,e,t);else{var a=t[o];typeof a<"u"&&a!==null&&(e[o]=String(a))}}}return e}var WY,XY,QY,e$,Nn,Rn,hR,mR,cu,o$,Uf=E(()=>{w();Cf();WY=",",XY=["OTEL_SDK_DISABLED"];QY=["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"];e$=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];Nn=1/0,Rn=128,hR=128,mR=128,cu={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:ot.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:Nn,OTEL_ATTRIBUTE_COUNT_LIMIT:Rn,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:Nn,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:Rn,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:Nn,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:Rn,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:hR,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:mR,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:We.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"};o$={ALL:ot.ALL,VERBOSE:ot.VERBOSE,DEBUG:ot.DEBUG,INFO:ot.INFO,WARN:ot.WARN,ERROR:ot.ERROR,NONE:ot.NONE}});function q(){var t=fu(process.env);return Object.assign({},cu,t)}function pu(){return fu(process.env)}var vR=E(()=>{Uf()});var u$,yR=E(()=>{u$=typeof globalThis=="object"?globalThis:global});function _R(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function Vr(t){for(var e=new Uint8Array(t.length/2),n=0,o=0;o<t.length;o+=2){var a=_R(t.charCodeAt(o)),u=_R(t.charCodeAt(o+1));e[n++]=a<<4|u}return e}var Df=E(()=>{});function s$(t){return Buffer.from(Vr(t)).toString("base64")}var SR=E(()=>{Df()});function ER(t){return function(){for(var n=0;n<t/4;n++)du.writeUInt32BE(Math.random()*Math.pow(2,32)>>>0,n*4);for(var n=0;n<t&&!(du[n]>0);n++)n===t-1&&(du[t-1]=1);return du.toString("hex",0,t)}}var l$,TR,c$,du,gR=E(()=>{l$=8,TR=16,c$=function(){function t(){this.generateTraceId=ER(TR),this.generateSpanId=ER(l$)}return t}(),du=Buffer.allocUnsafe(TR)});import{performance as f$}from"perf_hooks";var kt,OR=E(()=>{kt=f$});var Vf,kf=E(()=>{Vf="1.25.1"});var Pn,ji,AR=E(()=>{kf();Ct();ji=(Pn={},Pn[an]="opentelemetry",Pn[Cl]="node",Pn[un]=Ul,Pn[sn]=Vf,Pn)});function Yi(t){t.unref()}var bR=E(()=>{});var xR=E(()=>{vR();yR();SR();gR();OR();AR();bR()});var Bf=E(()=>{xR()});function be(t){var e=t/1e3,n=Math.trunc(e),o=Math.round(t%1e3*d$);return[n,o]}function $i(){var t=kt.timeOrigin;if(typeof t!="number"){var e=kt;t=e.timing&&e.timing.fetchStart}return t}function mu(t){var e=be($i()),n=be(typeof t=="number"?t:kt.now());return yu(e,n)}function h$(t){if(Ki(t))return t;if(typeof t=="number")return t<$i()?mu(t):be(t);if(t instanceof Date)return be(t.getTime());throw TypeError("Invalid input type")}function Gf(t,e){var n=e[0]-t[0],o=e[1]-t[1];return o<0&&(n-=1,o+=hu),[n,o]}function m$(t){var e=NR,n=""+"0".repeat(e)+t[1]+"Z",o=n.substr(n.length-e-1),a=new Date(t[0]*1e3).toISOString();return a.replace("000Z",o)}function qf(t){return t[0]*hu+t[1]}function v$(t){return t[0]*1e3+t[1]/1e6}function Bt(t){return t[0]*1e6+t[1]/1e3}function Ki(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}function vu(t){return Ki(t)||typeof t=="number"||t instanceof Date}function yu(t,e){var n=[t[0]+e[0],t[1]+e[1]];return n[1]>=hu&&(n[1]-=hu,n[0]+=1),n}var NR,p$,d$,hu,RR=E(()=>{Bf();NR=9,p$=6,d$=Math.pow(10,p$),hu=Math.pow(10,NR)});var PR=E(()=>{});var ee,wR=E(()=>{(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(ee||(ee={}))});var y$,Ff,MR=E(()=>{w();y$=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Ff=function(){function t(e){e===void 0&&(e={});var n;this._propagators=(n=e.propagators)!==null&&n!==void 0?n:[],this._fields=Array.from(new Set(this._propagators.map(function(o){return typeof o.fields=="function"?o.fields():[]}).reduce(function(o,a){return o.concat(a)},[])))}return t.prototype.inject=function(e,n,o){var a,u;try{for(var i=y$(this._propagators),r=i.next();!r.done;r=i.next()){var s=r.value;try{s.inject(e,n,o)}catch(l){A.warn("Failed to inject with "+s.constructor.name+". Err: "+l.message)}}}catch(l){a={error:l}}finally{try{r&&!r.done&&(u=i.return)&&u.call(i)}finally{if(a)throw a.error}}},t.prototype.extract=function(e,n,o){return this._propagators.reduce(function(a,u){try{return u.extract(a,n,o)}catch(i){A.warn("Failed to inject with "+u.constructor.name+". Err: "+i.message)}return a},e)},t.prototype.fields=function(){return this._fields.slice()},t}()});function IR(t){return E$.test(t)}function LR(t){return T$.test(t)&&!g$.test(t)}var Hf,_$,S$,E$,T$,g$,CR=E(()=>{Hf="[_0-9a-z-*/]",_$="[a-z]"+Hf+"{0,255}",S$="[a-z0-9]"+Hf+"{0,240}@[a-z]"+Hf+"{0,13}",E$=new RegExp("^(?:"+_$+"|"+S$+")$"),T$=/^[ -~]{0,255}[!-~]$/,g$=/,|=/});var UR,O$,DR,VR,jf,Yf=E(()=>{CR();UR=32,O$=512,DR=",",VR="=",jf=function(){function t(e){this._internalState=new Map,e&&this._parse(e)}return t.prototype.set=function(e,n){var o=this._clone();return o._internalState.has(e)&&o._internalState.delete(e),o._internalState.set(e,n),o},t.prototype.unset=function(e){var n=this._clone();return n._internalState.delete(e),n},t.prototype.get=function(e){return this._internalState.get(e)},t.prototype.serialize=function(){var e=this;return this._keys().reduce(function(n,o){return n.push(o+VR+e.get(o)),n},[]).join(DR)},t.prototype._parse=function(e){e.length>O$||(this._internalState=e.split(DR).reverse().reduce(function(n,o){var a=o.trim(),u=a.indexOf(VR);if(u!==-1){var i=a.slice(0,u),r=a.slice(u+1,o.length);IR(i)&&LR(r)&&n.set(i,r)}return n},new Map),this._internalState.size>UR&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,UR))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t}()});function kR(t){var e=P$.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}var _u,Su,A$,b$,x$,N$,R$,P$,$f,BR=E(()=>{w();Hi();Yf();_u="traceparent",Su="tracestate",A$="00",b$="(?!ff)[\\da-f]{2}",x$="(?![0]{32})[\\da-f]{32}",N$="(?![0]{16})[\\da-f]{16}",R$="[\\da-f]{2}",P$=new RegExp("^\\s?("+b$+")-("+x$+")-("+N$+")-("+R$+")(-.*)?\\s?$");$f=function(){function t(){}return t.prototype.inject=function(e,n,o){var a=X.getSpanContext(e);if(!(!a||Ce(e)||!dt(a))){var u=A$+"-"+a.traceId+"-"+a.spanId+"-0"+Number(a.traceFlags||J.NONE).toString(16);o.set(n,_u,u),a.traceState&&o.set(n,Su,a.traceState.serialize())}},t.prototype.extract=function(e,n,o){var a=o.get(n,_u);if(!a)return e;var u=Array.isArray(a)?a[0]:a;if(typeof u!="string")return e;var i=kR(u);if(!i)return e;i.isRemote=!0;var r=o.get(n,Su);if(r){var s=Array.isArray(r)?r.join(","):r;i.traceState=new jf(typeof s=="string"?s:void 0)}return X.setSpanContext(e,i)},t.prototype.fields=function(){return[_u,Su]},t}()});var GR=E(()=>{});function w$(t,e){return t.setValue(zf,e)}function M$(t){return t.deleteValue(zf)}function I$(t){return t.getValue(zf)}var zf,Kf,qR=E(()=>{w();zf=Qr("OpenTelemetry SDK Context Key RPC_METADATA");(function(t){t.HTTP="http"})(Kf||(Kf={}))});var Eu,Wf=E(()=>{w();Eu=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:ht.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}()});var zi,Xf=E(()=>{w();zi=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:ht.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}()});var L$,FR=E(()=>{w();Lf();Wf();Xf();L$=function(){function t(e){var n,o,a,u;this._root=e.root,this._root||(Ae(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new zi),this._remoteParentSampled=(n=e.remoteParentSampled)!==null&&n!==void 0?n:new zi,this._remoteParentNotSampled=(o=e.remoteParentNotSampled)!==null&&o!==void 0?o:new Eu,this._localParentSampled=(a=e.localParentSampled)!==null&&a!==void 0?a:new zi,this._localParentNotSampled=(u=e.localParentNotSampled)!==null&&u!==void 0?u:new Eu}return t.prototype.shouldSample=function(e,n,o,a,u,i){var r=X.getSpanContext(e);return!r||!dt(r)?this._root.shouldSample(e,n,o,a,u,i):r.isRemote?r.traceFlags&J.SAMPLED?this._remoteParentSampled.shouldSample(e,n,o,a,u,i):this._remoteParentNotSampled.shouldSample(e,n,o,a,u,i):r.traceFlags&J.SAMPLED?this._localParentSampled.shouldSample(e,n,o,a,u,i):this._localParentNotSampled.shouldSample(e,n,o,a,u,i)},t.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},t}()});var C$,HR=E(()=>{w();C$=function(){function t(e){e===void 0&&(e=0),this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}return t.prototype.shouldSample=function(e,n){return{decision:Yt(n)&&this._accumulate(n)<this._upperBound?ht.RECORD_AND_SAMPLED:ht.NOT_RECORD}},t.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},t.prototype._normalize=function(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e},t.prototype._accumulate=function(e){for(var n=0,o=0;o<e.length/8;o++){var a=o*8,u=parseInt(e.slice(a,a+8),16);n=(n^u)>>>0}return n},t}()});function q$(t,e){return function(n){return t(e(n))}}function Jf(t){if(!F$(t)||H$(t)!==U$)return!1;var e=G$(t);if(e===null)return!0;var n=$R.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&jR.call(n)===B$}function F$(t){return t!=null&&typeof t=="object"}function H$(t){return t==null?t===void 0?V$:D$:kr&&kr in Object(t)?j$(t):Y$(t)}function j$(t){var e=$R.call(t,kr),n=t[kr],o=!1;try{t[kr]=void 0,o=!0}catch{}var a=KR.call(t);return o&&(e?t[kr]=n:delete t[kr]),a}function Y$(t){return KR.call(t)}var U$,D$,V$,k$,jR,B$,G$,YR,$R,kr,KR,zR=E(()=>{U$="[object Object]",D$="[object Null]",V$="[object Undefined]",k$=Function.prototype,jR=k$.toString,B$=jR.call(Object),G$=q$(Object.getPrototypeOf,Object),YR=Object.prototype,$R=YR.hasOwnProperty,kr=Symbol?Symbol.toStringTag:void 0,KR=YR.toString});function Zf(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t.shift(),o=new WeakMap;t.length>0;)n=XR(n,t.shift(),0,o);return n}function Qf(t){return gu(t)?t.slice():t}function XR(t,e,n,o){n===void 0&&(n=0);var a;if(!(n>$$)){if(n++,Tu(t)||Tu(e)||JR(e))a=Qf(e);else if(gu(t)){if(a=t.slice(),gu(e))for(var u=0,i=e.length;u<i;u++)a.push(Qf(e[u]));else if(Wi(e))for(var r=Object.keys(e),u=0,i=r.length;u<i;u++){var s=r[u];a[s]=Qf(e[s])}}else if(Wi(t))if(Wi(e)){if(!K$(t,e))return e;a=Object.assign({},t);for(var r=Object.keys(e),u=0,i=r.length;u<i;u++){var s=r[u],l=e[s];if(Tu(l))typeof l>"u"?delete a[s]:a[s]=l;else{var c=a[s],p=l;if(WR(t,s,o)||WR(e,s,o))delete a[s];else{if(Wi(c)&&Wi(p)){var m=o.get(c)||[],f=o.get(p)||[];m.push({obj:t,key:s}),f.push({obj:e,key:s}),o.set(c,m),o.set(p,f)}a[s]=XR(a[s],l,n,o)}}}}else a=e;return a}}function WR(t,e,n){for(var o=n.get(t[e])||[],a=0,u=o.length;a<u;a++){var i=o[a];if(i.key===e&&i.obj===t)return!0}return!1}function gu(t){return Array.isArray(t)}function JR(t){return typeof t=="function"}function Wi(t){return!Tu(t)&&!gu(t)&&!JR(t)&&typeof t=="object"}function Tu(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function K$(t,e){return!(!Jf(t)||!Jf(e))}var $$,QR=E(()=>{zR();$$=20});function W$(t,e){var n,o=new Promise(function(u,i){n=setTimeout(function(){i(new ZR("Operation timed out."))},e)});return Promise.race([t,o]).then(function(a){return clearTimeout(n),a},function(a){throw clearTimeout(n),a})}var z$,ZR,eP=E(()=>{z$=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(o[u]=a[u])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function o(){this.constructor=e}e.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),ZR=function(t){z$(e,t);function e(n){var o=t.call(this,n)||this;return Object.setPrototypeOf(o,e.prototype),o}return e}(Error)});function tP(t,e){return typeof e=="string"?t===e:!!t.match(e)}function J$(t,e){var n,o;if(!e)return!1;try{for(var a=X$(e),u=a.next();!u.done;u=a.next()){var i=u.value;if(tP(t,i))return!0}}catch(r){n={error:r}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return!1}var X$,rP=E(()=>{X$=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}});function Q$(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}var nP=E(()=>{});var iP,oP=E(()=>{iP=function(){function t(){var e=this;this._promise=new Promise(function(n,o){e._resolve=n,e._reject=o})}return Object.defineProperty(t.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),t.prototype.resolve=function(e){this._resolve(e)},t.prototype.reject=function(e){this._reject(e)},t}()});var Z$,e8,Br,aP=E(()=>{oP();Z$=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),a,u=[],i;try{for(;(e===void 0||e-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(r){i={error:r}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u},e8=function(t,e,n){if(n||arguments.length===2)for(var o=0,a=e.length,u;o<a;o++)(u||!(o in e))&&(u||(u=Array.prototype.slice.call(e,0,o)),u[o]=e[o]);return t.concat(u||Array.prototype.slice.call(e))},Br=function(){function t(e,n){this._callback=e,this._that=n,this._isCalled=!1,this._deferred=new iP}return Object.defineProperty(t.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),t.prototype.call=function(){for(var e,n=this,o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((e=this._callback).call.apply(e,e8([this._that],Z$(o),!1))).then(function(u){return n._deferred.resolve(u)},function(u){return n._deferred.reject(u)})}catch(u){this._deferred.reject(u)}}return this._deferred.promise},t}()});function uP(t,e){return new Promise(function(n){ke.with(Fi(ke.active()),function(){t.export(e,function(o){n(o)})})})}var sP=E(()=>{w();Hi()});var Gr={};it(Gr,{AlwaysOffSampler:()=>Eu,AlwaysOnSampler:()=>zi,AnchoredClock:()=>HY,BindOnceFuture:()=>Br,CompositePropagator:()=>Ff,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>Rn,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>Nn,DEFAULT_ENVIRONMENT:()=>cu,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:()=>hR,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:()=>mR,ExportResultCode:()=>ee,ParentBasedSampler:()=>L$,RPCType:()=>Kf,RandomIdGenerator:()=>c$,SDK_INFO:()=>ji,TRACE_PARENT_HEADER:()=>_u,TRACE_STATE_HEADER:()=>Su,TimeoutError:()=>ZR,TraceIdRatioBasedSampler:()=>C$,TraceState:()=>jf,TracesSamplerValues:()=>We,VERSION:()=>Vf,W3CBaggagePropagator:()=>wf,W3CTraceContextPropagator:()=>$f,_globalThis:()=>u$,addHrTimes:()=>yu,baggageUtils:()=>Vt,callWithTimeout:()=>W$,deleteRPCMetadata:()=>M$,getEnv:()=>q,getEnvWithoutDefaults:()=>pu,getRPCMetadata:()=>I$,getTimeOrigin:()=>$i,globalErrorHandler:()=>Ae,hexToBase64:()=>s$,hexToBinary:()=>Vr,hrTime:()=>mu,hrTimeDuration:()=>Gf,hrTimeToMicroseconds:()=>Bt,hrTimeToMilliseconds:()=>v$,hrTimeToNanoseconds:()=>qf,hrTimeToTimeStamp:()=>m$,internal:()=>Xi,isAttributeKey:()=>cR,isAttributeValue:()=>lu,isTimeInput:()=>vu,isTimeInputHrTime:()=>Ki,isTracingSuppressed:()=>Ce,isUrlIgnored:()=>J$,isWrapped:()=>Q$,loggingErrorHandler:()=>Mf,merge:()=>Zf,millisToHrTime:()=>be,otperformance:()=>kt,parseEnvironment:()=>fu,parseTraceParent:()=>kR,sanitizeAttributes:()=>Dr,setGlobalErrorHandler:()=>zY,setRPCMetadata:()=>w$,suppressTracing:()=>Fi,timeInputToHrTime:()=>h$,unrefTimer:()=>Yi,unsuppressTracing:()=>GY,urlMatches:()=>tP});var Xi,F=E(()=>{uR();sR();pR();Lf();If();RR();PR();Df();wR();Pf();Bf();MR();BR();GR();qR();Wf();Xf();FR();HR();Hi();Yf();Uf();QR();Cf();eP();rP();nP();aP();kf();sP();Xi={_export:uP}});function Ou(){return"unknown_service:"+process.argv0}var lP=E(()=>{});var cP=E(()=>{lP()});var fP=E(()=>{cP()});var fr,t8,r8,n8,Gt,ep=E(()=>{w();Ct();F();fP();fr=function(){return fr=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},fr.apply(this,arguments)},t8=function(t,e,n,o){function a(u){return u instanceof n?u:new n(function(i){i(u)})}return new(n||(n=Promise))(function(u,i){function r(c){try{l(o.next(c))}catch(p){i(p)}}function s(c){try{l(o.throw(c))}catch(p){i(p)}}function l(c){c.done?u(c.value):a(c.value).then(r,s)}l((o=o.apply(t,e||[])).next())})},r8=function(t,e){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},o,a,u,i;return i={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function r(l){return function(c){return s([l,c])}}function s(l){if(o)throw new TypeError("Generator is already executing.");for(;n;)try{if(o=1,a&&(u=l[0]&2?a.return:l[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,l[1])).done)return u;switch(a=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(u=n.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){n.label=l[1];break}if(l[0]===6&&n.label<u[1]){n.label=u[1],u=l;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(l);break}u[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{o=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},n8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),a,u=[],i;try{for(;(e===void 0||e-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(r){i={error:r}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u},Gt=function(){function t(e,n){var o=this,a;this._attributes=e,this.asyncAttributesPending=n!=null,this._syncAttributes=(a=this._attributes)!==null&&a!==void 0?a:{},this._asyncAttributesPromise=n?.then(function(u){return o._attributes=Object.assign({},o._attributes,u),o.asyncAttributesPending=!1,u},function(u){return A.debug("a resource's async attributes promise rejected: %s",u),o.asyncAttributesPending=!1,{}})}return t.empty=function(){return t.EMPTY},t.default=function(){var e;return new t((e={},e[ci]=Ou(),e[un]=ji[un],e[an]=ji[an],e[sn]=ji[sn],e))},Object.defineProperty(t.prototype,"attributes",{get:function(){var e;return this.asyncAttributesPending&&A.error("Accessing resource attributes before async attributes settled"),(e=this._attributes)!==null&&e!==void 0?e:{}},enumerable:!1,configurable:!0}),t.prototype.waitForAsyncAttributes=function(){return t8(this,void 0,void 0,function(){return r8(this,function(e){switch(e.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})},t.prototype.merge=function(e){var n=this,o;if(!e)return this;var a=fr(fr({},this._syncAttributes),(o=e._syncAttributes)!==null&&o!==void 0?o:e.attributes);if(!this._asyncAttributesPromise&&!e._asyncAttributesPromise)return new t(a);var u=Promise.all([this._asyncAttributesPromise,e._asyncAttributesPromise]).then(function(i){var r,s=n8(i,2),l=s[0],c=s[1];return fr(fr(fr(fr({},n._syncAttributes),l),(r=e._syncAttributes)!==null&&r!==void 0?r:e.attributes),c)});return new t(a,u)},t.EMPTY=new t({}),t}()});var i8,o8,a8,tp,pP=E(()=>{w();F();Ct();ep();i8=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),a,u=[],i;try{for(;(e===void 0||e-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(r){i={error:r}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u},a8=function(){function t(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return t.prototype.detect=function(e){var n={},o=q(),a=o.OTEL_RESOURCE_ATTRIBUTES,u=o.OTEL_SERVICE_NAME;if(a)try{var i=this._parseResourceAttributes(a);Object.assign(n,i)}catch(r){A.debug("EnvDetector failed: "+r.message)}return u&&(n[ci]=u),new Gt(n)},t.prototype._parseResourceAttributes=function(e){var n,o;if(!e)return{};var a={},u=e.split(this._COMMA_SEPARATOR,-1);try{for(var i=i8(u),r=i.next();!r.done;r=i.next()){var s=r.value,l=s.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(l.length===2){var c=o8(l,2),p=c[0],m=c[1];if(p=p.trim(),m=m.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(p))throw new Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(m))throw new Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);a[p]=decodeURIComponent(m)}}}catch(f){n={error:f}}finally{try{r&&!r.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return a},t.prototype._isValid=function(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)},t.prototype._isBaggageOctetString=function(e){for(var n=0;n<e.length;n++){var o=e.charCodeAt(n);if(o<33||o===44||o===59||o===92||o>126)return!1}return!0},t.prototype._isValidAndNotEmpty=function(e){return e.length>0&&this._isValid(e)},t}(),tp=new a8});var u8,Au,dP=E(()=>{pP();u8=function(){function t(){}return t.prototype.detect=function(e){return Promise.resolve(tp.detect(e))},t}(),Au=new u8});var hP=E(()=>{dP()});var bu=E(()=>{ep();hP()});var Te,xu=E(()=>{(function(t){t[t.DELTA=0]="DELTA",t[t.CUMULATIVE=1]="CUMULATIVE"})(Te||(Te={}))});var ge,wn=E(()=>{(function(t){t[t.HISTOGRAM=0]="HISTOGRAM",t[t.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",t[t.GAUGE=2]="GAUGE",t[t.SUM=3]="SUM"})(ge||(ge={}))});function yP(t){return t!=null}function _P(t){var e=Object.keys(t);return e.length===0?"":(e=e.sort(),JSON.stringify(e.map(function(n){return[n,t[n]]})))}function SP(t){var e,n;return t.name+":"+((e=t.version)!==null&&e!==void 0?e:"")+":"+((n=t.schemaUrl)!==null&&n!==void 0?n:"")}function pr(t,e){var n,o=new Promise(function(u,i){n=setTimeout(function(){i(new Ji("Operation timed out."))},e)});return Promise.race([t,o]).then(function(a){return clearTimeout(n),a},function(a){throw clearTimeout(n),a})}function EP(t){return mP(this,void 0,void 0,function(){var e=this;return vP(this,function(n){return[2,Promise.all(t.map(function(o){return mP(e,void 0,void 0,function(){var a,u;return vP(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,o];case 1:return a=i.sent(),[2,{status:"fulfilled",value:a}];case 2:return u=i.sent(),[2,{status:"rejected",reason:u}];case 3:return[2]}})})}))]})})}function TP(t){return t.status==="rejected"}function rp(t,e){var n=[];return t.forEach(function(o){n.push.apply(n,c8([],l8(e(o)),!1))}),n}function gP(t,e){var n,o;if(t.size!==e.size)return!1;try{for(var a=f8(t),u=a.next();!u.done;u=a.next()){var i=u.value;if(!e.has(i))return!1}}catch(r){n={error:r}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return!0}function OP(t,e){for(var n=0,o=t.length-1;o-n>1;){var a=Math.trunc((o+n)/2);t[a]<=e?n=a:o=a-1}return t[o]<=e?o:t[n]<=e?n:-1}function AP(t,e){return t.toLowerCase()===e.toLowerCase()}var s8,mP,vP,l8,c8,f8,Ji,Ot=E(()=>{s8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(o[u]=a[u])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function o(){this.constructor=e}e.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),mP=function(t,e,n,o){function a(u){return u instanceof n?u:new n(function(i){i(u)})}return new(n||(n=Promise))(function(u,i){function r(c){try{l(o.next(c))}catch(p){i(p)}}function s(c){try{l(o.throw(c))}catch(p){i(p)}}function l(c){c.done?u(c.value):a(c.value).then(r,s)}l((o=o.apply(t,e||[])).next())})},vP=function(t,e){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},o,a,u,i;return i={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function r(l){return function(c){return s([l,c])}}function s(l){if(o)throw new TypeError("Generator is already executing.");for(;n;)try{if(o=1,a&&(u=l[0]&2?a.return:l[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,l[1])).done)return u;switch(a=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(u=n.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){n.label=l[1];break}if(l[0]===6&&n.label<u[1]){n.label=u[1],u=l;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(l);break}u[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{o=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},l8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),a,u=[],i;try{for(;(e===void 0||e-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(r){i={error:r}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u},c8=function(t,e,n){if(n||arguments.length===2)for(var o=0,a=e.length,u;o<a;o++)(u||!(o in e))&&(u||(u=Array.prototype.slice.call(e,0,o)),u[o]=e[o]);return t.concat(u||Array.prototype.slice.call(e))},f8=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Ji=function(t){s8(e,t);function e(n){var o=t.call(this,n)||this;return Object.setPrototypeOf(o,e.prototype),o}return e}(Error)});var tt,Mn=E(()=>{(function(t){t[t.DROP=0]="DROP",t[t.SUM=1]="SUM",t[t.LAST_VALUE=2]="LAST_VALUE",t[t.HISTOGRAM=3]="HISTOGRAM",t[t.EXPONENTIAL_HISTOGRAM=4]="EXPONENTIAL_HISTOGRAM"})(tt||(tt={}))});var bP,xP=E(()=>{Mn();bP=function(){function t(){this.kind=tt.DROP}return t.prototype.createAccumulation=function(){},t.prototype.merge=function(e,n){},t.prototype.diff=function(e,n){},t.prototype.toMetricData=function(e,n,o,a){},t}()});function At(t,e,n){var o,a,u,i;return d8(t)||A.warn('Invalid metric name: "'+t+'". The metric name should be a ASCII string with a length no greater than 255 characters.'),{name:t,type:e,description:(o=n?.description)!==null&&o!==void 0?o:"",unit:(a=n?.unit)!==null&&a!==void 0?a:"",valueType:(u=n?.valueType)!==null&&u!==void 0?u:pt.DOUBLE,advice:(i=n?.advice)!==null&&i!==void 0?i:{}}}function NP(t,e){var n,o;return{name:(n=t.name)!==null&&n!==void 0?n:e.name,description:(o=t.description)!==null&&o!==void 0?o:e.description,type:e.type,unit:e.unit,valueType:e.valueType,advice:e.advice}}function RP(t,e){return AP(t.name,e.name)&&t.unit===e.unit&&t.type===e.type&&t.valueType===e.valueType}function d8(t){return t.match(p8)!=null}var C,p8,qt=E(()=>{w();Ot();(function(t){t.COUNTER="COUNTER",t.GAUGE="GAUGE",t.HISTOGRAM="HISTOGRAM",t.UP_DOWN_COUNTER="UP_DOWN_COUNTER",t.OBSERVABLE_COUNTER="OBSERVABLE_COUNTER",t.OBSERVABLE_GAUGE="OBSERVABLE_GAUGE",t.OBSERVABLE_UP_DOWN_COUNTER="OBSERVABLE_UP_DOWN_COUNTER"})(C||(C={}));p8=/^[a-z][a-z0-9_.\-/]{0,254}$/i});function m8(t){var e=t.map(function(){return 0});return e.push(0),{buckets:{boundaries:t,counts:e},sum:0,count:0,hasMinMax:!1,min:1/0,max:-1/0}}var h8,np,ip,PP=E(()=>{Mn();wn();qt();Ot();h8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),a,u=[],i;try{for(;(e===void 0||e-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(r){i={error:r}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u};np=function(){function t(e,n,o,a){o===void 0&&(o=!0),a===void 0&&(a=m8(n)),this.startTime=e,this._boundaries=n,this._recordMinMax=o,this._current=a}return t.prototype.record=function(e){if(!Number.isNaN(e)){this._current.count+=1,this._current.sum+=e,this._recordMinMax&&(this._current.min=Math.min(e,this._current.min),this._current.max=Math.max(e,this._current.max),this._current.hasMinMax=!0);var n=OP(this._boundaries,e);this._current.buckets.counts[n+1]+=1}},t.prototype.setStartTime=function(e){this.startTime=e},t.prototype.toPointValue=function(){return this._current},t}(),ip=function(){function t(e,n){this._boundaries=e,this._recordMinMax=n,this.kind=tt.HISTOGRAM}return t.prototype.createAccumulation=function(e){return new np(e,this._boundaries,this._recordMinMax)},t.prototype.merge=function(e,n){for(var o=e.toPointValue(),a=n.toPointValue(),u=o.buckets.counts,i=a.buckets.counts,r=new Array(u.length),s=0;s<u.length;s++)r[s]=u[s]+i[s];var l=1/0,c=-1/0;return this._recordMinMax&&(o.hasMinMax&&a.hasMinMax?(l=Math.min(o.min,a.min),c=Math.max(o.max,a.max)):o.hasMinMax?(l=o.min,c=o.max):a.hasMinMax&&(l=a.min,c=a.max)),new np(e.startTime,o.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:o.buckets.boundaries,counts:r},count:o.count+a.count,sum:o.sum+a.sum,hasMinMax:this._recordMinMax&&(o.hasMinMax||a.hasMinMax),min:l,max:c})},t.prototype.diff=function(e,n){for(var o=e.toPointValue(),a=n.toPointValue(),u=o.buckets.counts,i=a.buckets.counts,r=new Array(u.length),s=0;s<u.length;s++)r[s]=i[s]-u[s];return new np(n.startTime,o.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:o.buckets.boundaries,counts:r},count:a.count-o.count,sum:a.sum-o.sum,hasMinMax:!1,min:1/0,max:-1/0})},t.prototype.toMetricData=function(e,n,o,a){return{descriptor:e,aggregationTemporality:n,dataPointType:ge.HISTOGRAM,dataPoints:o.map(function(u){var i=h8(u,2),r=i[0],s=i[1],l=s.toPointValue(),c=e.type===C.GAUGE||e.type===C.UP_DOWN_COUNTER||e.type===C.OBSERVABLE_GAUGE||e.type===C.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:r,startTime:s.startTime,endTime:a,value:{min:l.hasMinMax?l.min:void 0,max:l.hasMinMax?l.max:void 0,sum:c?void 0:l.sum,buckets:l.buckets,count:l.count}}})}},t}()});var op,ap,up,v8,wP=E(()=>{op=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),a,u=[],i;try{for(;(e===void 0||e-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(r){i={error:r}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u},ap=function(t,e,n){if(n||arguments.length===2)for(var o=0,a=e.length,u;o<a;o++)(u||!(o in e))&&(u||(u=Array.prototype.slice.call(e,0,o)),u[o]=e[o]);return t.concat(u||Array.prototype.slice.call(e))},up=function(){function t(e,n,o,a){e===void 0&&(e=new v8),n===void 0&&(n=0),o===void 0&&(o=0),a===void 0&&(a=0),this.backing=e,this.indexBase=n,this.indexStart=o,this.indexEnd=a}return Object.defineProperty(t.prototype,"offset",{get:function(){return this.indexStart},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this.backing.length===0||this.indexEnd===this.indexStart&&this.at(0)===0?0:this.indexEnd-this.indexStart+1},enumerable:!1,configurable:!0}),t.prototype.counts=function(){var e=this;return Array.from({length:this.length},function(n,o){return e.at(o)})},t.prototype.at=function(e){var n=this.indexBase-this.indexStart;return e<n&&(e+=this.backing.length),e-=n,this.backing.countAt(e)},t.prototype.incrementBucket=function(e,n){this.backing.increment(e,n)},t.prototype.decrementBucket=function(e,n){this.backing.decrement(e,n)},t.prototype.trim=function(){for(var e=0;e<this.length;e++)if(this.at(e)!==0){this.indexStart+=e;break}else if(e===this.length-1){this.indexStart=this.indexEnd=this.indexBase=0;return}for(var e=this.length-1;e>=0;e--)if(this.at(e)!==0){this.indexEnd-=this.length-e-1;break}this._rotate()},t.prototype.downscale=function(e){this._rotate();for(var n=1+this.indexEnd-this.indexStart,o=1<<e,a=0,u=0,i=this.indexStart;i<=this.indexEnd;){var r=i%o;r<0&&(r+=o);for(var s=r;s<o&&a<n;s++)this._relocateBucket(u,a),a++,i++;u++}this.indexStart>>=e,this.indexEnd>>=e,this.indexBase=this.indexStart},t.prototype.clone=function(){return new t(this.backing.clone(),this.indexBase,this.indexStart,this.indexEnd)},t.prototype._rotate=function(){var e=this.indexBase-this.indexStart;e!==0&&(e>0?(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,e),this.backing.reverse(e,this.backing.length)):(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,this.backing.length+e)),this.indexBase=this.indexStart)},t.prototype._relocateBucket=function(e,n){e!==n&&this.incrementBucket(e,this.backing.emptyBucket(n))},t}(),v8=function(){function t(e){e===void 0&&(e=[0]),this._counts=e}return Object.defineProperty(t.prototype,"length",{get:function(){return this._counts.length},enumerable:!1,configurable:!0}),t.prototype.countAt=function(e){return this._counts[e]},t.prototype.growTo=function(e,n,o){var a=new Array(e).fill(0);a.splice.apply(a,ap([o,this._counts.length-n],op(this._counts.slice(n)),!1)),a.splice.apply(a,ap([0,n],op(this._counts.slice(0,n)),!1)),this._counts=a},t.prototype.reverse=function(e,n){for(var o=Math.floor((e+n)/2)-e,a=0;a<o;a++){var u=this._counts[e+a];this._counts[e+a]=this._counts[n-a-1],this._counts[n-a-1]=u}},t.prototype.emptyBucket=function(e){var n=this._counts[e];return this._counts[e]=0,n},t.prototype.increment=function(e,n){this._counts[e]+=n},t.prototype.decrement=function(e,n){this._counts[e]>=n?this._counts[e]-=n:this._counts[e]=0},t.prototype.clone=function(){return new t(ap([],op(this._counts),!1))},t}()});function Pu(t){var e=new DataView(new ArrayBuffer(8));e.setFloat64(0,t);var n=e.getUint32(0),o=(n&y8)>>20;return o-sp}function wu(t){var e=new DataView(new ArrayBuffer(8));e.setFloat64(0,t);var n=e.getUint32(0),o=e.getUint32(4),a=(n&_8)*Math.pow(2,32);return a+o}var MP,y8,_8,sp,Nu,Ru,Qi,lp=E(()=>{MP=52,y8=2146435072,_8=1048575,sp=1023,Nu=-sp+1,Ru=sp,Qi=Math.pow(2,-1022)});function Zi(t,e){return t===0||t===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY||Number.isNaN(t)?t:t*Math.pow(2,e)}function LP(t){return t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,t++,t}var Mu=E(()=>{});var S8,dr,Iu=E(()=>{S8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(o[u]=a[u])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function o(){this.constructor=e}e.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),dr=function(t){S8(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Error)});var UP,DP=E(()=>{lp();Mu();Iu();UP=function(){function t(e){this._shift=-e}return t.prototype.mapToIndex=function(e){if(e<Qi)return this._minNormalLowerBoundaryIndex();var n=Pu(e),o=this._rightShift(wu(e)-1,MP);return n+o>>this._shift},t.prototype.lowerBoundary=function(e){var n=this._minNormalLowerBoundaryIndex();if(e<n)throw new dr("underflow: "+e+" is < minimum lower boundary: "+n);var o=this._maxNormalLowerBoundaryIndex();if(e>o)throw new dr("overflow: "+e+" is > maximum lower boundary: "+o);return Zi(1,e<<this._shift)},Object.defineProperty(t.prototype,"scale",{get:function(){return this._shift===0?0:-this._shift},enumerable:!1,configurable:!0}),t.prototype._minNormalLowerBoundaryIndex=function(){var e=Nu>>this._shift;return this._shift<2&&e--,e},t.prototype._maxNormalLowerBoundaryIndex=function(){return Ru>>this._shift},t.prototype._rightShift=function(e,n){return Math.floor(e*Math.pow(2,-n))},t}()});var VP,kP=E(()=>{lp();Mu();Iu();VP=function(){function t(e){this._scale=e,this._scaleFactor=Zi(Math.LOG2E,e),this._inverseFactor=Zi(Math.LN2,-e)}return t.prototype.mapToIndex=function(e){if(e<=Qi)return this._minNormalLowerBoundaryIndex()-1;if(wu(e)===0){var n=Pu(e);return(n<<this._scale)-1}var o=Math.floor(Math.log(e)*this._scaleFactor),a=this._maxNormalLowerBoundaryIndex();return o>=a?a:o},t.prototype.lowerBoundary=function(e){var n=this._maxNormalLowerBoundaryIndex();if(e>=n){if(e===n)return 2*Math.exp((e-(1<<this._scale))/this._scaleFactor);throw new dr("overflow: "+e+" is > maximum lower boundary: "+n)}var o=this._minNormalLowerBoundaryIndex();if(e<=o){if(e===o)return Qi;if(e===o-1)return Math.exp((e+(1<<this._scale))/this._scaleFactor)/2;throw new dr("overflow: "+e+" is < minimum lower boundary: "+o)}return Math.exp(e*this._inverseFactor)},Object.defineProperty(t.prototype,"scale",{get:function(){return this._scale},enumerable:!1,configurable:!0}),t.prototype._minNormalLowerBoundaryIndex=function(){return Nu<<this._scale},t.prototype._maxNormalLowerBoundaryIndex=function(){return(Ru+1<<this._scale)-1},t}()});function cp(t){if(t>GP||t<BP)throw new dr("expected scale >= "+BP+" && <= "+GP+", got: "+t);return E8[t+10]}var BP,GP,E8,qP=E(()=>{DP();kP();Iu();BP=-10,GP=20,E8=Array.from({length:31},function(t,e){return e>10?new VP(e-10):new UP(e-10)})});var T8,Lu,g8,O8,fp,A8,FP,HP=E(()=>{Mn();wn();w();qt();wP();qP();Mu();T8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),a,u=[],i;try{for(;(e===void 0||e-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(r){i={error:r}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u},Lu=function(){function t(e,n){this.low=e,this.high=n}return t.combine=function(e,n){return new t(Math.min(e.low,n.low),Math.max(e.high,n.high))},t}(),g8=20,O8=160,fp=2,A8=function(){function t(e,n,o,a,u,i,r,s,l,c,p){e===void 0&&(e=e),n===void 0&&(n=O8),o===void 0&&(o=!0),a===void 0&&(a=0),u===void 0&&(u=0),i===void 0&&(i=0),r===void 0&&(r=Number.POSITIVE_INFINITY),s===void 0&&(s=Number.NEGATIVE_INFINITY),l===void 0&&(l=new up),c===void 0&&(c=new up),p===void 0&&(p=cp(g8)),this.startTime=e,this._maxSize=n,this._recordMinMax=o,this._sum=a,this._count=u,this._zeroCount=i,this._min=r,this._max=s,this._positive=l,this._negative=c,this._mapping=p,this._maxSize<fp&&(A.warn("Exponential Histogram Max Size set to "+this._maxSize+", changing to the minimum size of: "+fp),this._maxSize=fp)}return t.prototype.record=function(e){this.updateByIncrement(e,1)},t.prototype.setStartTime=function(e){this.startTime=e},t.prototype.toPointValue=function(){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}},Object.defineProperty(t.prototype,"sum",{get:function(){return this._sum},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this._min},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this._max},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this._count},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"zeroCount",{get:function(){return this._zeroCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scale",{get:function(){return this._count===this._zeroCount?0:this._mapping.scale},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"positive",{get:function(){return this._positive},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"negative",{get:function(){return this._negative},enumerable:!1,configurable:!0}),t.prototype.updateByIncrement=function(e,n){if(!Number.isNaN(e)){if(e>this._max&&(this._max=e),e<this._min&&(this._min=e),this._count+=n,e===0){this._zeroCount+=n;return}this._sum+=e*n,e>0?this._updateBuckets(this._positive,e,n):this._updateBuckets(this._negative,-e,n)}},t.prototype.merge=function(e){this._count===0?(this._min=e.min,this._max=e.max):e.count!==0&&(e.min<this.min&&(this._min=e.min),e.max>this.max&&(this._max=e.max)),this.startTime=e.startTime,this._sum+=e.sum,this._count+=e.count,this._zeroCount+=e.zeroCount;var n=this._minScale(e);this._downscale(this.scale-n),this._mergeBuckets(this.positive,e,e.positive,n),this._mergeBuckets(this.negative,e,e.negative,n)},t.prototype.diff=function(e){this._min=1/0,this._max=-1/0,this._sum-=e.sum,this._count-=e.count,this._zeroCount-=e.zeroCount;var n=this._minScale(e);this._downscale(this.scale-n),this._diffBuckets(this.positive,e,e.positive,n),this._diffBuckets(this.negative,e,e.negative,n)},t.prototype.clone=function(){return new t(this.startTime,this._maxSize,this._recordMinMax,this._sum,this._count,this._zeroCount,this._min,this._max,this.positive.clone(),this.negative.clone(),this._mapping)},t.prototype._updateBuckets=function(e,n,o){var a=this._mapping.mapToIndex(n),u=!1,i=0,r=0;if(e.length===0?(e.indexStart=a,e.indexEnd=e.indexStart,e.indexBase=e.indexStart):a<e.indexStart&&e.indexEnd-a>=this._maxSize?(u=!0,r=a,i=e.indexEnd):a>e.indexEnd&&a-e.indexStart>=this._maxSize&&(u=!0,r=e.indexStart,i=a),u){var s=this._changeScale(i,r);this._downscale(s),a=this._mapping.mapToIndex(n)}this._incrementIndexBy(e,a,o)},t.prototype._incrementIndexBy=function(e,n,o){if(o!==0){if(e.length===0&&(e.indexStart=e.indexEnd=e.indexBase=n),n<e.indexStart){var a=e.indexEnd-n;a>=e.backing.length&&this._grow(e,a+1),e.indexStart=n}else if(n>e.indexEnd){var a=n-e.indexStart;a>=e.backing.length&&this._grow(e,a+1),e.indexEnd=n}var u=n-e.indexBase;u<0&&(u+=e.backing.length),e.incrementBucket(u,o)}},t.prototype._grow=function(e,n){var o=e.backing.length,a=e.indexBase-e.indexStart,u=o-a,i=LP(n);i>this._maxSize&&(i=this._maxSize);var r=i-a;e.backing.growTo(i,u,r)},t.prototype._changeScale=function(e,n){for(var o=0;e-n>=this._maxSize;)e>>=1,n>>=1,o++;return o},t.prototype._downscale=function(e){if(e!==0){if(e<0)throw new Error("impossible change of scale: "+this.scale);var n=this._mapping.scale-e;this._positive.downscale(e),this._negative.downscale(e),this._mapping=cp(n)}},t.prototype._minScale=function(e){var n=Math.min(this.scale,e.scale),o=Lu.combine(this._highLowAtScale(this.positive,this.scale,n),this._highLowAtScale(e.positive,e.scale,n)),a=Lu.combine(this._highLowAtScale(this.negative,this.scale,n),this._highLowAtScale(e.negative,e.scale,n));return Math.min(n-this._changeScale(o.high,o.low),n-this._changeScale(a.high,a.low))},t.prototype._highLowAtScale=function(e,n,o){if(e.length===0)return new Lu(0,-1);var a=n-o;return new Lu(e.indexStart>>a,e.indexEnd>>a)},t.prototype._mergeBuckets=function(e,n,o,a){for(var u=o.offset,i=n.scale-a,r=0;r<o.length;r++)this._incrementIndexBy(e,u+r>>i,o.at(r))},t.prototype._diffBuckets=function(e,n,o,a){for(var u=o.offset,i=n.scale-a,r=0;r<o.length;r++){var s=u+r>>i,l=s-e.indexBase;l<0&&(l+=e.backing.length),e.decrementBucket(l,o.at(r))}e.trim()},t}(),FP=function(){function t(e,n){this._maxSize=e,this._recordMinMax=n,this.kind=tt.EXPONENTIAL_HISTOGRAM}return t.prototype.createAccumulation=function(e){return new A8(e,this._maxSize,this._recordMinMax)},t.prototype.merge=function(e,n){var o=n.clone();return o.merge(e),o},t.prototype.diff=function(e,n){var o=n.clone();return o.diff(e),o},t.prototype.toMetricData=function(e,n,o,a){return{descriptor:e,aggregationTemporality:n,dataPointType:ge.EXPONENTIAL_HISTOGRAM,dataPoints:o.map(function(u){var i=T8(u,2),r=i[0],s=i[1],l=s.toPointValue(),c=e.type===C.GAUGE||e.type===C.UP_DOWN_COUNTER||e.type===C.OBSERVABLE_GAUGE||e.type===C.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:r,startTime:s.startTime,endTime:a,value:{min:l.hasMinMax?l.min:void 0,max:l.hasMinMax?l.max:void 0,sum:c?void 0:l.sum,positive:{offset:l.positive.offset,bucketCounts:l.positive.bucketCounts},negative:{offset:l.negative.offset,bucketCounts:l.negative.bucketCounts},count:l.count,scale:l.scale,zeroCount:l.zeroCount}}})}},t}()});var b8,pp,jP,YP=E(()=>{Mn();F();wn();b8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),a,u=[],i;try{for(;(e===void 0||e-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(r){i={error:r}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u},pp=function(){function t(e,n,o){n===void 0&&(n=0),o===void 0&&(o=[0,0]),this.startTime=e,this._current=n,this.sampleTime=o}return t.prototype.record=function(e){this._current=e,this.sampleTime=be(Date.now())},t.prototype.setStartTime=function(e){this.startTime=e},t.prototype.toPointValue=function(){return this._current},t}(),jP=function(){function t(){this.kind=tt.LAST_VALUE}return t.prototype.createAccumulation=function(e){return new pp(e)},t.prototype.merge=function(e,n){var o=Bt(n.sampleTime)>=Bt(e.sampleTime)?n:e;return new pp(e.startTime,o.toPointValue(),o.sampleTime)},t.prototype.diff=function(e,n){var o=Bt(n.sampleTime)>=Bt(e.sampleTime)?n:e;return new pp(n.startTime,o.toPointValue(),o.sampleTime)},t.prototype.toMetricData=function(e,n,o,a){return{descriptor:e,aggregationTemporality:n,dataPointType:ge.GAUGE,dataPoints:o.map(function(u){var i=b8(u,2),r=i[0],s=i[1];return{attributes:r,startTime:s.startTime,endTime:a,value:s.toPointValue()}})}},t}()});var x8,eo,dp,$P=E(()=>{Mn();wn();x8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),a,u=[],i;try{for(;(e===void 0||e-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(r){i={error:r}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u},eo=function(){function t(e,n,o,a){o===void 0&&(o=0),a===void 0&&(a=!1),this.startTime=e,this.monotonic=n,this._current=o,this.reset=a}return t.prototype.record=function(e){this.monotonic&&e<0||(this._current+=e)},t.prototype.setStartTime=function(e){this.startTime=e},t.prototype.toPointValue=function(){return this._current},t}(),dp=function(){function t(e){this.monotonic=e,this.kind=tt.SUM}return t.prototype.createAccumulation=function(e){return new eo(e,this.monotonic)},t.prototype.merge=function(e,n){var o=e.toPointValue(),a=n.toPointValue();return n.reset?new eo(n.startTime,this.monotonic,a,n.reset):new eo(e.startTime,this.monotonic,o+a)},t.prototype.diff=function(e,n){var o=e.toPointValue(),a=n.toPointValue();return this.monotonic&&o>a?new eo(n.startTime,this.monotonic,a,!0):new eo(n.startTime,this.monotonic,a-o)},t.prototype.toMetricData=function(e,n,o,a){return{descriptor:e,aggregationTemporality:n,dataPointType:ge.SUM,dataPoints:o.map(function(u){var i=x8(u,2),r=i[0],s=i[1];return{attributes:r,startTime:s.startTime,endTime:a,value:s.toPointValue()}}),isMonotonic:this.monotonic}},t}()});var KP=E(()=>{xP();PP();HP();YP();$P()});var qr,Ue,hp,mp,vp,yp,_p,Sp,Ep,zP,WP,XP,JP,N8,R8,Cu=E(()=>{w();KP();qt();qr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(o[u]=a[u])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function o(){this.constructor=e}e.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ue=function(){function t(){}return t.Drop=function(){return zP},t.Sum=function(){return WP},t.LastValue=function(){return XP},t.Histogram=function(){return JP},t.ExponentialHistogram=function(){return N8},t.Default=function(){return R8},t}(),hp=function(t){qr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createAggregator=function(n){return e.DEFAULT_INSTANCE},e.DEFAULT_INSTANCE=new bP,e}(Ue),mp=function(t){qr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createAggregator=function(n){switch(n.type){case C.COUNTER:case C.OBSERVABLE_COUNTER:case C.HISTOGRAM:return e.MONOTONIC_INSTANCE;default:return e.NON_MONOTONIC_INSTANCE}},e.MONOTONIC_INSTANCE=new dp(!0),e.NON_MONOTONIC_INSTANCE=new dp(!1),e}(Ue),vp=function(t){qr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createAggregator=function(n){return e.DEFAULT_INSTANCE},e.DEFAULT_INSTANCE=new jP,e}(Ue),yp=function(t){qr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createAggregator=function(n){return e.DEFAULT_INSTANCE},e.DEFAULT_INSTANCE=new ip([0,5,10,25,50,75,100,250,500,750,1e3,2500,5e3,7500,1e4],!0),e}(Ue),_p=function(t){qr(e,t);function e(n,o){o===void 0&&(o=!0);var a=t.call(this)||this;if(a._recordMinMax=o,n==null)throw new Error("ExplicitBucketHistogramAggregation should be created with explicit boundaries, if a single bucket histogram is required, please pass an empty array");n=n.concat(),n=n.sort(function(r,s){return r-s});var u=n.lastIndexOf(-1/0),i=n.indexOf(1/0);return i===-1&&(i=void 0),a._boundaries=n.slice(u+1,i),a}return e.prototype.createAggregator=function(n){return new ip(this._boundaries,this._recordMinMax)},e}(Ue),Sp=function(t){qr(e,t);function e(n,o){n===void 0&&(n=160),o===void 0&&(o=!0);var a=t.call(this)||this;return a._maxSize=n,a._recordMinMax=o,a}return e.prototype.createAggregator=function(n){return new FP(this._maxSize,this._recordMinMax)},e}(Ue),Ep=function(t){qr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype._resolve=function(n){switch(n.type){case C.COUNTER:case C.UP_DOWN_COUNTER:case C.OBSERVABLE_COUNTER:case C.OBSERVABLE_UP_DOWN_COUNTER:return WP;case C.GAUGE:case C.OBSERVABLE_GAUGE:return XP;case C.HISTOGRAM:return n.advice.explicitBucketBoundaries?new _p(n.advice.explicitBucketBoundaries):JP}return A.warn("Unable to recognize instrument type: "+n.type),zP},e.prototype.createAggregator=function(n){return this._resolve(n).createAggregator(n)},e}(Ue),zP=new hp,WP=new mp,XP=new vp,JP=new yp,N8=new Sp,R8=new Ep});var QP,Uu,Tp=E(()=>{Cu();xu();QP=function(t){return Ue.Default()},Uu=function(t){return Te.CUMULATIVE}});var gp,Op,ZP,P8,Du,Ap=E(()=>{w();Ot();Tp();gp=function(t,e,n,o){function a(u){return u instanceof n?u:new n(function(i){i(u)})}return new(n||(n=Promise))(function(u,i){function r(c){try{l(o.next(c))}catch(p){i(p)}}function s(c){try{l(o.throw(c))}catch(p){i(p)}}function l(c){c.done?u(c.value):a(c.value).then(r,s)}l((o=o.apply(t,e||[])).next())})},Op=function(t,e){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},o,a,u,i;return i={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function r(l){return function(c){return s([l,c])}}function s(l){if(o)throw new TypeError("Generator is already executing.");for(;n;)try{if(o=1,a&&(u=l[0]&2?a.return:l[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,l[1])).done)return u;switch(a=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(u=n.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){n.label=l[1];break}if(l[0]===6&&n.label<u[1]){n.label=u[1],u=l;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(l);break}u[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{o=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},ZP=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),a,u=[],i;try{for(;(e===void 0||e-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(r){i={error:r}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u},P8=function(t,e,n){if(n||arguments.length===2)for(var o=0,a=e.length,u;o<a;o++)(u||!(o in e))&&(u||(u=Array.prototype.slice.call(e,0,o)),u[o]=e[o]);return t.concat(u||Array.prototype.slice.call(e))},Du=function(){function t(e){var n,o,a;this._shutdown=!1,this._aggregationSelector=(n=e?.aggregationSelector)!==null&&n!==void 0?n:QP,this._aggregationTemporalitySelector=(o=e?.aggregationTemporalitySelector)!==null&&o!==void 0?o:Uu,this._metricProducers=(a=e?.metricProducers)!==null&&a!==void 0?a:[]}return t.prototype.setMetricProducer=function(e){if(this._sdkMetricProducer)throw new Error("MetricReader can not be bound to a MeterProvider again.");this._sdkMetricProducer=e,this.onInitialized()},t.prototype.selectAggregation=function(e){return this._aggregationSelector(e)},t.prototype.selectAggregationTemporality=function(e){return this._aggregationTemporalitySelector(e)},t.prototype.onInitialized=function(){},t.prototype.collect=function(e){return gp(this,void 0,void 0,function(){var n,o,a,u,i,r;return Op(this,function(s){switch(s.label){case 0:if(this._sdkMetricProducer===void 0)throw new Error("MetricReader is not bound to a MetricProducer");if(this._shutdown)throw new Error("MetricReader is shutdown");return[4,Promise.all(P8([this._sdkMetricProducer.collect({timeoutMillis:e?.timeoutMillis})],ZP(this._metricProducers.map(function(l){return l.collect({timeoutMillis:e?.timeoutMillis})})),!1))];case 1:return n=ZP.apply(void 0,[s.sent()]),o=n[0],a=n.slice(1),u=o.errors.concat(rp(a,function(l){return l.errors})),i=o.resourceMetrics.resource,r=o.resourceMetrics.scopeMetrics.concat(rp(a,function(l){return l.resourceMetrics.scopeMetrics})),[2,{resourceMetrics:{resource:i,scopeMetrics:r},errors:u}]}})})},t.prototype.shutdown=function(e){return gp(this,void 0,void 0,function(){return Op(this,function(n){switch(n.label){case 0:return this._shutdown?(A.error("Cannot call shutdown twice."),[2]):e?.timeoutMillis!=null?[3,2]:[4,this.onShutdown()];case 1:return n.sent(),[3,4];case 2:return[4,pr(this.onShutdown(),e.timeoutMillis)];case 3:n.sent(),n.label=4;case 4:return this._shutdown=!0,[2]}})})},t.prototype.forceFlush=function(e){return gp(this,void 0,void 0,function(){return Op(this,function(n){switch(n.label){case 0:return this._shutdown?(A.warn("Cannot forceFlush on already shutdown MetricReader."),[2]):e?.timeoutMillis!=null?[3,2]:[4,this.onForceFlush()];case 1:return n.sent(),[2];case 2:return[4,pr(this.onForceFlush(),e.timeoutMillis)];case 3:return n.sent(),[2]}})})},t}()});var w8,to,ro,M8,I8,Vu,ew=E(()=>{w();F();Ap();Ot();w();w8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(o[u]=a[u])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function o(){this.constructor=e}e.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),to=function(t,e,n,o){function a(u){return u instanceof n?u:new n(function(i){i(u)})}return new(n||(n=Promise))(function(u,i){function r(c){try{l(o.next(c))}catch(p){i(p)}}function s(c){try{l(o.throw(c))}catch(p){i(p)}}function l(c){c.done?u(c.value):a(c.value).then(r,s)}l((o=o.apply(t,e||[])).next())})},ro=function(t,e){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},o,a,u,i;return i={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function r(l){return function(c){return s([l,c])}}function s(l){if(o)throw new TypeError("Generator is already executing.");for(;n;)try{if(o=1,a&&(u=l[0]&2?a.return:l[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,l[1])).done)return u;switch(a=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(u=n.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){n.label=l[1];break}if(l[0]===6&&n.label<u[1]){n.label=u[1],u=l;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(l);break}u[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{o=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},M8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),a,u=[],i;try{for(;(e===void 0||e-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(r){i={error:r}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u},I8=function(t,e,n){if(n||arguments.length===2)for(var o=0,a=e.length,u;o<a;o++)(u||!(o in e))&&(u||(u=Array.prototype.slice.call(e,0,o)),u[o]=e[o]);return t.concat(u||Array.prototype.slice.call(e))},Vu=function(t){w8(e,t);function e(n){var o,a,u,i,r=t.call(this,{aggregationSelector:(o=n.exporter.selectAggregation)===null||o===void 0?void 0:o.bind(n.exporter),aggregationTemporalitySelector:(a=n.exporter.selectAggregationTemporality)===null||a===void 0?void 0:a.bind(n.exporter),metricProducers:n.metricProducers})||this;if(n.exportIntervalMillis!==void 0&&n.exportIntervalMillis<=0)throw Error("exportIntervalMillis must be greater than 0");if(n.exportTimeoutMillis!==void 0&&n.exportTimeoutMillis<=0)throw Error("exportTimeoutMillis must be greater than 0");if(n.exportTimeoutMillis!==void 0&&n.exportIntervalMillis!==void 0&&n.exportIntervalMillis<n.exportTimeoutMillis)throw Error("exportIntervalMillis must be greater than or equal to exportTimeoutMillis");return r._exportInterval=(u=n.exportIntervalMillis)!==null&&u!==void 0?u:6e4,r._exportTimeout=(i=n.exportTimeoutMillis)!==null&&i!==void 0?i:3e4,r._exporter=n.exporter,r}return e.prototype._runOnce=function(){return to(this,void 0,void 0,function(){var n;return ro(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,pr(this._doRun(),this._exportTimeout)];case 1:return o.sent(),[3,3];case 2:return n=o.sent(),n instanceof Ji?(A.error("Export took longer than %s milliseconds and timed out.",this._exportTimeout),[2]):(Ae(n),[3,3]);case 3:return[2]}})})},e.prototype._doRun=function(){var n,o;return to(this,void 0,void 0,function(){var a,u,i,r,s,l=this;return ro(this,function(c){switch(c.label){case 0:return[4,this.collect({timeoutMillis:this._exportTimeout})];case 1:return a=c.sent(),u=a.resourceMetrics,i=a.errors,i.length>0&&(s=A).error.apply(s,I8(["PeriodicExportingMetricReader: metrics collection errors"],M8(i),!1)),r=function(){return to(l,void 0,void 0,function(){var p;return ro(this,function(m){switch(m.label){case 0:return[4,Xi._export(this._exporter,u)];case 1:if(p=m.sent(),p.code!==ee.SUCCESS)throw new Error("PeriodicExportingMetricReader: metrics export failed (error "+p.error+")");return[2]}})})},u.resource.asyncAttributesPending?((o=(n=u.resource).waitForAsyncAttributes)===null||o===void 0||o.call(n).then(r,function(p){return A.debug("Error while resolving async portion of resource: ",p)}),[3,4]):[3,2];case 2:return[4,r()];case 3:c.sent(),c.label=4;case 4:return[2]}})})},e.prototype.onInitialized=function(){var n=this;this._interval=setInterval(function(){n._runOnce()},this._exportInterval),Yi(this._interval)},e.prototype.onForceFlush=function(){return to(this,void 0,void 0,function(){return ro(this,function(n){switch(n.label){case 0:return[4,this._runOnce()];case 1:return n.sent(),[4,this._exporter.forceFlush()];case 2:return n.sent(),[2]}})})},e.prototype.onShutdown=function(){return to(this,void 0,void 0,function(){return ro(this,function(n){switch(n.label){case 0:return this._interval&&clearInterval(this._interval),[4,this._exporter.shutdown()];case 1:return n.sent(),[2]}})})},e}(Du)});var tw,rw=E(()=>{F();tw=function(){function t(e){this._shutdown=!1,this._metrics=[],this._aggregationTemporality=e}return t.prototype.export=function(e,n){if(this._shutdown){setTimeout(function(){return n({code:ee.FAILED})},0);return}this._metrics.push(e),setTimeout(function(){return n({code:ee.SUCCESS})},0)},t.prototype.getMetrics=function(){return this._metrics},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype.reset=function(){this._metrics=[]},t.prototype.selectAggregationTemporality=function(e){return this._aggregationTemporality},t.prototype.shutdown=function(){return this._shutdown=!0,Promise.resolve()},t}()});var nw,iw,ow=E(()=>{F();Tp();nw=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},iw=function(){function t(e){var n;this._shutdown=!1,this._temporalitySelector=(n=e?.temporalitySelector)!==null&&n!==void 0?n:Uu}return t.prototype.export=function(e,n){if(this._shutdown){setImmediate(n,{code:ee.FAILED});return}return t._sendMetrics(e,n)},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype.selectAggregationTemporality=function(e){return this._temporalitySelector(e)},t.prototype.shutdown=function(){return this._shutdown=!0,Promise.resolve()},t._sendMetrics=function(e,n){var o,a,u,i;try{for(var r=nw(e.scopeMetrics),s=r.next();!s.done;s=r.next()){var l=s.value;try{for(var c=(u=void 0,nw(l.metrics)),p=c.next();!p.done;p=c.next()){var m=p.value;console.dir({descriptor:m.descriptor,dataPointType:m.dataPointType,dataPoints:m.dataPoints},{depth:null})}}catch(f){u={error:f}}finally{try{p&&!p.done&&(i=c.return)&&i.call(c)}finally{if(u)throw u.error}}}}catch(f){o={error:f}}finally{try{s&&!s.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}n({code:ee.SUCCESS})},t}()});var aw,uw=E(()=>{aw=function(){function t(){this._registeredViews=[]}return t.prototype.addView=function(e){this._registeredViews.push(e)},t.prototype.findViews=function(e,n){var o=this,a=this._registeredViews.filter(function(u){return o._matchInstrument(u.instrumentSelector,e)&&o._matchMeter(u.meterSelector,n)});return a},t.prototype._matchInstrument=function(e,n){return(e.getType()===void 0||n.type===e.getType())&&e.getNameFilter().match(n.name)&&e.getUnitFilter().match(n.unit)},t.prototype._matchMeter=function(e,n){return e.getNameFilter().match(n.name)&&(n.version===void 0||e.getVersionFilter().match(n.version))&&(n.schemaUrl===void 0||e.getSchemaUrlFilter().match(n.schemaUrl))},t}()});function no(t){return t instanceof Bu}var Fr,ku,sw,lw,cw,fw,Bu,pw,dw,hw,Gu=E(()=>{w();F();Fr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(o[u]=a[u])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function o(){this.constructor=e}e.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),ku=function(){function t(e,n){this._writableMetricStorage=e,this._descriptor=n}return t.prototype._record=function(e,n,o){if(n===void 0&&(n={}),o===void 0&&(o=ke.active()),typeof e!="number"){A.warn("non-number value provided to metric "+this._descriptor.name+": "+e);return}this._descriptor.valueType===pt.INT&&!Number.isInteger(e)&&(A.warn("INT value type cannot accept a floating-point value for "+this._descriptor.name+", ignoring the fractional digits."),e=Math.trunc(e),!Number.isInteger(e))||this._writableMetricStorage.record(e,n,o,be(Date.now()))},t}(),sw=function(t){Fr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(n,o,a){this._record(n,o,a)},e}(ku),lw=function(t){Fr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(n,o,a){if(n<0){A.warn("negative value provided to counter "+this._descriptor.name+": "+n);return}this._record(n,o,a)},e}(ku),cw=function(t){Fr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(n,o,a){this._record(n,o,a)},e}(ku),fw=function(t){Fr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(n,o,a){if(n<0){A.warn("negative value provided to histogram "+this._descriptor.name+": "+n);return}this._record(n,o,a)},e}(ku),Bu=function(){function t(e,n,o){this._observableRegistry=o,this._descriptor=e,this._metricStorages=n}return t.prototype.addCallback=function(e){this._observableRegistry.addCallback(e,this)},t.prototype.removeCallback=function(e){this._observableRegistry.removeCallback(e,this)},t}(),pw=function(t){Fr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Bu),dw=function(t){Fr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Bu),hw=function(t){Fr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Bu)});var mw,vw=E(()=>{qt();Gu();mw=function(){function t(e){this._meterSharedState=e}return t.prototype.createGauge=function(e,n){var o=At(e,C.GAUGE,n),a=this._meterSharedState.registerMetricStorage(o);return new cw(a,o)},t.prototype.createHistogram=function(e,n){var o=At(e,C.HISTOGRAM,n),a=this._meterSharedState.registerMetricStorage(o);return new fw(a,o)},t.prototype.createCounter=function(e,n){var o=At(e,C.COUNTER,n),a=this._meterSharedState.registerMetricStorage(o);return new lw(a,o)},t.prototype.createUpDownCounter=function(e,n){var o=At(e,C.UP_DOWN_COUNTER,n),a=this._meterSharedState.registerMetricStorage(o);return new sw(a,o)},t.prototype.createObservableGauge=function(e,n){var o=At(e,C.OBSERVABLE_GAUGE,n),a=this._meterSharedState.registerAsyncMetricStorage(o);return new dw(o,a,this._meterSharedState.observableRegistry)},t.prototype.createObservableCounter=function(e,n){var o=At(e,C.OBSERVABLE_COUNTER,n),a=this._meterSharedState.registerAsyncMetricStorage(o);return new pw(o,a,this._meterSharedState.observableRegistry)},t.prototype.createObservableUpDownCounter=function(e,n){var o=At(e,C.OBSERVABLE_UP_DOWN_COUNTER,n),a=this._meterSharedState.registerAsyncMetricStorage(o);return new hw(o,a,this._meterSharedState.observableRegistry)},t.prototype.addBatchObservableCallback=function(e,n){this._meterSharedState.observableRegistry.addBatchCallback(e,n)},t.prototype.removeBatchObservableCallback=function(e,n){this._meterSharedState.observableRegistry.removeBatchCallback(e,n)},t}()});var qu,bp=E(()=>{qt();qu=function(){function t(e){this._instrumentDescriptor=e}return t.prototype.getInstrumentDescriptor=function(){return this._instrumentDescriptor},t.prototype.updateDescription=function(e){this._instrumentDescriptor=At(this._instrumentDescriptor.name,this._instrumentDescriptor.type,{description:e,valueType:this._instrumentDescriptor.valueType,unit:this._instrumentDescriptor.unit,advice:this._instrumentDescriptor.advice})},t}()});var L8,yw,C8,ft,io=E(()=>{Ot();L8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(o[u]=a[u])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function o(){this.constructor=e}e.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),yw=function(t,e){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},o,a,u,i;return i={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function r(l){return function(c){return s([l,c])}}function s(l){if(o)throw new TypeError("Generator is already executing.");for(;n;)try{if(o=1,a&&(u=l[0]&2?a.return:l[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,l[1])).done)return u;switch(a=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(u=n.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){n.label=l[1];break}if(l[0]===6&&n.label<u[1]){n.label=u[1],u=l;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(l);break}u[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{o=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},C8=function(){function t(e){this._hash=e,this._valueMap=new Map,this._keyMap=new Map}return t.prototype.get=function(e,n){return n??(n=this._hash(e)),this._valueMap.get(n)},t.prototype.getOrDefault=function(e,n){var o=this._hash(e);if(this._valueMap.has(o))return this._valueMap.get(o);var a=n();return this._keyMap.has(o)||this._keyMap.set(o,e),this._valueMap.set(o,a),a},t.prototype.set=function(e,n,o){o??(o=this._hash(e)),this._keyMap.has(o)||this._keyMap.set(o,e),this._valueMap.set(o,n)},t.prototype.has=function(e,n){return n??(n=this._hash(e)),this._valueMap.has(n)},t.prototype.keys=function(){var e,n;return yw(this,function(o){switch(o.label){case 0:e=this._keyMap.entries(),n=e.next(),o.label=1;case 1:return n.done===!0?[3,3]:[4,[n.value[1],n.value[0]]];case 2:return o.sent(),n=e.next(),[3,1];case 3:return[2]}})},t.prototype.entries=function(){var e,n;return yw(this,function(o){switch(o.label){case 0:e=this._valueMap.entries(),n=e.next(),o.label=1;case 1:return n.done===!0?[3,3]:[4,[this._keyMap.get(n.value[0]),n.value[1],n.value[0]]];case 2:return o.sent(),n=e.next(),[3,1];case 3:return[2]}})},Object.defineProperty(t.prototype,"size",{get:function(){return this._valueMap.size},enumerable:!1,configurable:!0}),t}(),ft=function(t){L8(e,t);function e(){return t.call(this,_P)||this}return e}(C8)});var U8,Fu,xp=E(()=>{io();U8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),a,u=[],i;try{for(;(e===void 0||e-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(r){i={error:r}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u},Fu=function(){function t(e){this._aggregator=e,this._activeCollectionStorage=new ft,this._cumulativeMemoStorage=new ft}return t.prototype.record=function(e,n,o,a){var u=this,i=this._activeCollectionStorage.getOrDefault(n,function(){return u._aggregator.createAccumulation(a)});i?.record(e)},t.prototype.batchCumulate=function(e,n){var o=this;Array.from(e.entries()).forEach(function(a){var u=U8(a,3),i=u[0],r=u[1],s=u[2],l=o._aggregator.createAccumulation(n);l?.record(r);var c=l;if(o._cumulativeMemoStorage.has(i,s)){var p=o._cumulativeMemoStorage.get(i,s);c=o._aggregator.diff(p,l)}if(o._activeCollectionStorage.has(i,s)){var m=o._activeCollectionStorage.get(i,s);c=o._aggregator.merge(m,c)}o._cumulativeMemoStorage.set(i,l,s),o._activeCollectionStorage.set(i,c,s)})},t.prototype.collect=function(){var e=this._activeCollectionStorage;return this._activeCollectionStorage=new ft,e},t}()});function D8(t){return Array.from(t.entries())}var Np,_w,Hu,Rp=E(()=>{xu();io();Np=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},_w=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),a,u=[],i;try{for(;(e===void 0||e-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(r){i={error:r}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u},Hu=function(){function t(e,n){var o=this;this._aggregator=e,this._unreportedAccumulations=new Map,this._reportHistory=new Map,n.forEach(function(a){o._unreportedAccumulations.set(a,[])})}return t.prototype.buildMetrics=function(e,n,o,a){this._stashAccumulations(o);var u=this._getMergedUnreportedAccumulations(e),i=u,r;if(this._reportHistory.has(e)){var s=this._reportHistory.get(e),l=s.collectionTime;r=s.aggregationTemporality,r===Te.CUMULATIVE?i=t.merge(s.accumulations,u,this._aggregator):i=t.calibrateStartTime(s.accumulations,u,l)}else r=e.selectAggregationTemporality(n.type);this._reportHistory.set(e,{accumulations:i,collectionTime:a,aggregationTemporality:r});var c=D8(i);if(c.length!==0)return this._aggregator.toMetricData(n,r,c,a)},t.prototype._stashAccumulations=function(e){var n,o,a=this._unreportedAccumulations.keys();try{for(var u=Np(a),i=u.next();!i.done;i=u.next()){var r=i.value,s=this._unreportedAccumulations.get(r);s===void 0&&(s=[],this._unreportedAccumulations.set(r,s)),s.push(e)}}catch(l){n={error:l}}finally{try{i&&!i.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}},t.prototype._getMergedUnreportedAccumulations=function(e){var n,o,a=new ft,u=this._unreportedAccumulations.get(e);if(this._unreportedAccumulations.set(e,[]),u===void 0)return a;try{for(var i=Np(u),r=i.next();!r.done;r=i.next()){var s=r.value;a=t.merge(a,s,this._aggregator)}}catch(l){n={error:l}}finally{try{r&&!r.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return a},t.merge=function(e,n,o){for(var a=e,u=n.entries(),i=u.next();i.done!==!0;){var r=_w(i.value,3),s=r[0],l=r[1],c=r[2];if(e.has(s,c)){var p=e.get(s,c),m=o.merge(p,l);a.set(s,m,c)}else a.set(s,l,c);i=u.next()}return a},t.calibrateStartTime=function(e,n,o){var a,u;try{for(var i=Np(e.keys()),r=i.next();!r.done;r=i.next()){var s=_w(r.value,2),l=s[0],c=s[1],p=n.get(l,c);p?.setStartTime(o)}}catch(m){a={error:m}}finally{try{r&&!r.done&&(u=i.return)&&u.call(i)}finally{if(a)throw a.error}}return n},t}()});var V8,k8,Sw,Ew=E(()=>{bp();xp();Rp();io();V8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(o[u]=a[u])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function o(){this.constructor=e}e.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),k8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),a,u=[],i;try{for(;(e===void 0||e-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(r){i={error:r}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u},Sw=function(t){V8(e,t);function e(n,o,a,u){var i=t.call(this,n)||this;return i._attributesProcessor=a,i._deltaMetricStorage=new Fu(o),i._temporalMetricStorage=new Hu(o,u),i}return e.prototype.record=function(n,o){var a=this,u=new ft;Array.from(n.entries()).forEach(function(i){var r=k8(i,2),s=r[0],l=r[1];u.set(a._attributesProcessor.process(s),l)}),this._deltaMetricStorage.batchCumulate(u,o)},e.prototype.collect=function(n,o){var a=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(n,this._instrumentDescriptor,a,o)},e}(qu)});function Pp(t,e){var n="";return t.unit!==e.unit&&(n+=" - Unit '"+t.unit+"' does not match '"+e.unit+`'
|
12
|
+
`),Error.captureStackTrace(this,vo)}};qO.exports=t=>{if(t.length>2)throw new vo(t);function e(i={}){this.options=i}e.prototype.transform=t;function n(i){return new e(i)}return n.Format=e,n}});var WO=h((FQ,KO)=>{var $O={};KO.exports=$O;var jO={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(jO).forEach(function(t){var e=jO[t],n=$O[t]=[];n.open="\x1B["+e[0]+"m",n.close="\x1B["+e[1]+"m"})});var XO=h((YQ,zO)=>{"use strict";zO.exports=function(t,e){e=e||process.argv||[];var n=e.indexOf("--"),i=/^-{1,2}/.test(t)?"":"--",a=e.indexOf(i+t);return a!==-1&&(n===-1?!0:a<n)}});var QO=h((qQ,JO)=>{"use strict";var tY=L("os"),lt=XO(),we=process.env,sn=void 0;lt("no-color")||lt("no-colors")||lt("color=false")?sn=!1:(lt("color")||lt("colors")||lt("color=true")||lt("color=always"))&&(sn=!0);"FORCE_COLOR"in we&&(sn=we.FORCE_COLOR.length===0||parseInt(we.FORCE_COLOR,10)!==0);function rY(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function nY(t){if(sn===!1)return 0;if(lt("color=16m")||lt("color=full")||lt("color=truecolor"))return 3;if(lt("color=256"))return 2;if(t&&!t.isTTY&&sn!==!0)return 0;var e=sn?1:0;if(process.platform==="win32"){var n=tY.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in we)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(a){return a in we})||we.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in we)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(we.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in we){var i=parseInt((we.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(we.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(we.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(we.TERM)||"COLORTERM"in we?1:(we.TERM==="dumb",e)}function ic(t){var e=nY(t);return rY(e)}JO.exports={supportsColor:ic,stdout:ic(process.stdout),stderr:ic(process.stderr)}});var eg=h((jQ,ZO)=>{ZO.exports=function(e,n){var i="";e=e||"Run the trap, drop the bass",e=e.split("");var a={a:["@","\u0104","\u023A","\u0245","\u0394","\u039B","\u0414"],b:["\xDF","\u0181","\u0243","\u026E","\u03B2","\u0E3F"],c:["\xA9","\u023B","\u03FE"],d:["\xD0","\u018A","\u0500","\u0501","\u0502","\u0503"],e:["\xCB","\u0115","\u018E","\u0258","\u03A3","\u03BE","\u04BC","\u0A6C"],f:["\u04FA"],g:["\u0262"],h:["\u0126","\u0195","\u04A2","\u04BA","\u04C7","\u050A"],i:["\u0F0F"],j:["\u0134"],k:["\u0138","\u04A0","\u04C3","\u051E"],l:["\u0139"],m:["\u028D","\u04CD","\u04CE","\u0520","\u0521","\u0D69"],n:["\xD1","\u014B","\u019D","\u0376","\u03A0","\u048A"],o:["\xD8","\xF5","\xF8","\u01FE","\u0298","\u047A","\u05DD","\u06DD","\u0E4F"],p:["\u01F7","\u048E"],q:["\u09CD"],r:["\xAE","\u01A6","\u0210","\u024C","\u0280","\u042F"],s:["\xA7","\u03DE","\u03DF","\u03E8"],t:["\u0141","\u0166","\u0373"],u:["\u01B1","\u054D"],v:["\u05D8"],w:["\u0428","\u0460","\u047C","\u0D70"],x:["\u04B2","\u04FE","\u04FC","\u04FD"],y:["\xA5","\u04B0","\u04CB"],z:["\u01B5","\u0240"]};return e.forEach(function(s){s=s.toLowerCase();var o=a[s]||[" "],r=Math.floor(Math.random()*o.length);typeof a[s]<"u"?i+=a[s][r]:i+=s}),i}});var rg=h(($Q,tg)=>{tg.exports=function(e,n){e=e||" he is here ";var i={up:["\u030D","\u030E","\u0304","\u0305","\u033F","\u0311","\u0306","\u0310","\u0352","\u0357","\u0351","\u0307","\u0308","\u030A","\u0342","\u0313","\u0308","\u034A","\u034B","\u034C","\u0303","\u0302","\u030C","\u0350","\u0300","\u0301","\u030B","\u030F","\u0312","\u0313","\u0314","\u033D","\u0309","\u0363","\u0364","\u0365","\u0366","\u0367","\u0368","\u0369","\u036A","\u036B","\u036C","\u036D","\u036E","\u036F","\u033E","\u035B","\u0346","\u031A"],down:["\u0316","\u0317","\u0318","\u0319","\u031C","\u031D","\u031E","\u031F","\u0320","\u0324","\u0325","\u0326","\u0329","\u032A","\u032B","\u032C","\u032D","\u032E","\u032F","\u0330","\u0331","\u0332","\u0333","\u0339","\u033A","\u033B","\u033C","\u0345","\u0347","\u0348","\u0349","\u034D","\u034E","\u0353","\u0354","\u0355","\u0356","\u0359","\u035A","\u0323"],mid:["\u0315","\u031B","\u0300","\u0301","\u0358","\u0321","\u0322","\u0327","\u0328","\u0334","\u0335","\u0336","\u035C","\u035D","\u035E","\u035F","\u0360","\u0362","\u0338","\u0337","\u0361"," \u0489"]},a=[].concat(i.up,i.down,i.mid);function s(u){var l=Math.floor(Math.random()*u);return l}function o(u){var l=!1;return a.filter(function(c){l=c===u}),l}function r(u,l){var c="",p,_;l=l||{},l.up=typeof l.up<"u"?l.up:!0,l.mid=typeof l.mid<"u"?l.mid:!0,l.down=typeof l.down<"u"?l.down:!0,l.size=typeof l.size<"u"?l.size:"maxi",u=u.split("");for(_ in u)if(!o(_)){switch(c=c+u[_],p={up:0,down:0,mid:0},l.size){case"mini":p.up=s(8),p.mid=s(2),p.down=s(8);break;case"maxi":p.up=s(16)+3,p.mid=s(4)+1,p.down=s(64)+3;break;default:p.up=s(8)+1,p.mid=s(6)/2,p.down=s(8)+1;break}var f=["up","mid","down"];for(var S in f)for(var v=f[S],T=0;T<=p[v];T++)l[v]&&(c=c+i[v][s(i[v].length)])}return c}return r(e,n)}});var og=h((KQ,ng)=>{ng.exports=function(t){return function(e,n,i){if(e===" ")return e;switch(n%3){case 0:return t.red(e);case 1:return t.white(e);case 2:return t.blue(e)}}}});var ag=h((WQ,ig)=>{ig.exports=function(t){return function(e,n,i){return n%2===0?e:t.inverse(e)}}});var ug=h((zQ,sg)=>{sg.exports=function(t){var e=["red","yellow","green","blue","magenta"];return function(n,i,a){return n===" "?n:t[e[i++%e.length]](n)}}});var cg=h((XQ,lg)=>{lg.exports=function(t){var e=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(n,i,a){return n===" "?n:t[e[Math.round(Math.random()*(e.length-2))]](n)}}});var Sg=h((QQ,_g)=>{var H={};_g.exports=H;H.themes={};var oY=L("util"),Nr=H.styles=WO(),pg=Object.defineProperties,iY=new RegExp(/[\r\n]+/g);H.supportsColor=QO().supportsColor;typeof H.enabled>"u"&&(H.enabled=H.supportsColor()!==!1);H.enable=function(){H.enabled=!0};H.disable=function(){H.enabled=!1};H.stripColors=H.strip=function(t){return(""+t).replace(/\x1B\[\d+m/g,"")};var JQ=H.stylize=function(e,n){if(!H.enabled)return e+"";var i=Nr[n];return!i&&n in H?H[n](e):i.open+e+i.close},aY=/[|\\{}()[\]^$+*?.]/g,sY=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(aY,"\\$&")};function dg(t){var e=function n(){return lY.apply(n,arguments)};return e._styles=t,e.__proto__=uY,e}var Eg=function(){var t={};return Nr.grey=Nr.gray,Object.keys(Nr).forEach(function(e){Nr[e].closeRe=new RegExp(sY(Nr[e].close),"g"),t[e]={get:function(){return dg(this._styles.concat(e))}}}),t}(),uY=pg(function(){},Eg);function lY(){var t=Array.prototype.slice.call(arguments),e=t.map(function(o){return o!=null&&o.constructor===String?o:oY.inspect(o)}).join(" ");if(!H.enabled||!e)return e;for(var n=e.indexOf(`
|
13
|
+
`)!=-1,i=this._styles,a=i.length;a--;){var s=Nr[i[a]];e=s.open+e.replace(s.closeRe,s.open)+s.close,n&&(e=e.replace(iY,function(o){return s.close+o+s.open}))}return e}H.setTheme=function(t){if(typeof t=="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var e in t)(function(n){H[n]=function(i){if(typeof t[n]=="object"){var a=i;for(var s in t[n])a=H[t[n][s]](a);return a}return H[t[n]](i)}})(e)};function cY(){var t={};return Object.keys(Eg).forEach(function(e){t[e]={get:function(){return dg([e])}}}),t}var fY=function(e,n){var i=n.split("");return i=i.map(e),i.join("")};H.trap=eg();H.zalgo=rg();H.maps={};H.maps.america=og()(H);H.maps.zebra=ag()(H);H.maps.rainbow=ug()(H);H.maps.random=cg()(H);for(fg in H.maps)(function(t){H[t]=function(e){return fY(H.maps[t],e)}})(fg);var fg;pg(H,cY())});var ac=h((ZQ,hg)=>{var pY=Sg();hg.exports=pY});var Tg=h(sc=>{"use strict";sc.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9};sc.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}});var vg=h(uc=>{"use strict";uc.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6};uc.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}});var mg=h(lc=>{"use strict";lc.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7};lc.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}});var yg=h(ia=>{"use strict";Object.defineProperty(ia,"cli",{value:Tg()});Object.defineProperty(ia,"npm",{value:vg()});Object.defineProperty(ia,"syslog",{value:mg()})});var fe=h(mo=>{"use strict";Object.defineProperty(mo,"LEVEL",{value:Symbol.for("level")});Object.defineProperty(mo,"MESSAGE",{value:Symbol.for("message")});Object.defineProperty(mo,"SPLAT",{value:Symbol.for("splat")});Object.defineProperty(mo,"configs",{value:yg()})});var sa=h((iZ,aa)=>{"use strict";var pc=ac(),{LEVEL:cc,MESSAGE:fc}=fe();pc.enabled=!0;var Ag=/\s+/,We=class{constructor(e={}){e.colors&&this.addColors(e.colors),this.options=e}static addColors(e){let n=Object.keys(e).reduce((i,a)=>(i[a]=Ag.test(e[a])?e[a].split(Ag):e[a],i),{});return We.allColors=Object.assign({},We.allColors||{},n),We.allColors}addColors(e){return We.addColors(e)}colorize(e,n,i){if(typeof i>"u"&&(i=n),!Array.isArray(We.allColors[e]))return pc[We.allColors[e]](i);for(let a=0,s=We.allColors[e].length;a<s;a++)i=pc[We.allColors[e][a]](i);return i}transform(e,n){return n.all&&typeof e[fc]=="string"&&(e[fc]=this.colorize(e[cc],e.level,e[fc])),(n.level||n.all||!n.message)&&(e.level=this.colorize(e[cc],e.level)),(n.all||n.message)&&(e.message=this.colorize(e[cc],e.level,e.message)),e}};aa.exports=t=>new We(t);aa.exports.Colorizer=aa.exports.Format=We});var gg=h((aZ,Og)=>{"use strict";var{Colorizer:dY}=sa();Og.exports=t=>(dY.addColors(t.colors||t),t)});var Rg=h((sZ,Ng)=>{"use strict";var EY=He();Ng.exports=EY(t=>(t.message=` ${t.message}`,t))});var Mg=h((uZ,bg)=>{"use strict";var _Y=He(),{LEVEL:Pg,MESSAGE:dc}=fe();bg.exports=_Y((t,{stack:e,cause:n})=>{if(t instanceof Error){let a=Object.assign({},t,{level:t.level,[Pg]:t[Pg]||t.level,message:t.message,[dc]:t[dc]||t.message});return e&&(a.stack=t.stack),n&&(a.cause=t.cause),a}if(!(t.message instanceof Error))return t;let i=t.message;return Object.assign(t,i),t.message=i.message,t[dc]=i.message,e&&(t.stack=i.stack),n&&(t.cause=i.cause),t})});var _c=h((lZ,ua)=>{"use strict";var{configs:SY,LEVEL:xg,MESSAGE:Ec}=fe(),Xt=class{constructor(e={levels:SY.npm.levels}){this.paddings=Xt.paddingForLevels(e.levels,e.filler),this.options=e}static getLongestLevel(e){let n=Object.keys(e).map(i=>i.length);return Math.max(...n)}static paddingForLevel(e,n,i){let a=i+1-e.length,s=Math.floor(a/n.length);return`${n}${n.repeat(s)}`.slice(0,a)}static paddingForLevels(e,n=" "){let i=Xt.getLongestLevel(e);return Object.keys(e).reduce((a,s)=>(a[s]=Xt.paddingForLevel(s,n,i),a),{})}transform(e,n){return e.message=`${this.paddings[e[xg]]}${e.message}`,e[Ec]&&(e[Ec]=`${this.paddings[e[xg]]}${e[Ec]}`),e}};ua.exports=t=>new Xt(t);ua.exports.Padder=ua.exports.Format=Xt});var Lg=h((cZ,Sc)=>{"use strict";var{Colorizer:hY}=sa(),{Padder:TY}=_c(),{configs:vY,MESSAGE:mY}=fe(),la=class{constructor(e={}){e.levels||(e.levels=vY.cli.levels),this.colorizer=new hY(e),this.padder=new TY(e),this.options=e}transform(e,n){return this.colorizer.transform(this.padder.transform(e,n),n),e[mY]=`${e.level}:${e.message}`,e}};Sc.exports=t=>new la(t);Sc.exports.Format=la});var Cg=h((fZ,hc)=>{"use strict";var yY=He();function Ig(t){if(t.every(AY))return e=>{let n=e;for(let i=0;i<t.length;i++)if(n=t[i].transform(n,t[i].options),!n)return!1;return n}}function AY(t){if(typeof t.transform!="function")throw new Error(["No transform function found on format. Did you create a format instance?","const myFormat = format(formatFn);","const instance = myFormat();"].join(`
|
14
|
+
`));return!0}hc.exports=(...t)=>{let e=yY(Ig(t)),n=e();return n.Format=e.Format,n};hc.exports.cascade=Ig});var yo=h((yc,Vg)=>{"use strict";var{hasOwnProperty:ca}=Object.prototype,Pr=mc();Pr.configure=mc;Pr.stringify=Pr;Pr.default=Pr;yc.stringify=Pr;yc.configure=mc;Vg.exports=Pr;var OY=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;function Jt(t){return t.length<5e3&&!OY.test(t)?`"${t}"`:JSON.stringify(t)}function Tc(t){if(t.length>200)return t.sort();for(let e=1;e<t.length;e++){let n=t[e],i=e;for(;i!==0&&t[i-1]>n;)t[i]=t[i-1],i--;t[i]=n}return t}var gY=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function vc(t){return gY.call(t)!==void 0&&t.length!==0}function wg(t,e,n){t.length<n&&(n=t.length);let i=e===","?"":" ",a=`"0":${i}${t[0]}`;for(let s=1;s<n;s++)a+=`${e}"${s}":${i}${t[s]}`;return a}function NY(t){if(ca.call(t,"circularValue")){let e=t.circularValue;if(typeof e=="string")return`"${e}"`;if(e==null)return e;if(e===Error||e===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}function Ug(t,e){let n;if(ca.call(t,e)&&(n=t[e],typeof n!="boolean"))throw new TypeError(`The "${e}" argument must be of type boolean`);return n===void 0?!0:n}function Dg(t,e){let n;if(ca.call(t,e)){if(n=t[e],typeof n!="number")throw new TypeError(`The "${e}" argument must be of type number`);if(!Number.isInteger(n))throw new TypeError(`The "${e}" argument must be an integer`);if(n<1)throw new RangeError(`The "${e}" argument must be >= 1`)}return n===void 0?1/0:n}function Rr(t){return t===1?"1 item":`${t} items`}function RY(t){let e=new Set;for(let n of t)(typeof n=="string"||typeof n=="number")&&e.add(String(n));return e}function PY(t){if(ca.call(t,"strict")){let e=t.strict;if(typeof e!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(e)return n=>{let i=`Object can not safely be stringified. Received type ${typeof n}`;throw typeof n!="function"&&(i+=` (${n.toString()})`),new Error(i)}}}function mc(t){t={...t};let e=PY(t);e&&(t.bigint===void 0&&(t.bigint=!1),"circularValue"in t||(t.circularValue=Error));let n=NY(t),i=Ug(t,"bigint"),a=Ug(t,"deterministic"),s=Dg(t,"maximumDepth"),o=Dg(t,"maximumBreadth");function r(_,f,S,v,T,A){let O=f[_];switch(typeof O=="object"&&O!==null&&typeof O.toJSON=="function"&&(O=O.toJSON(_)),O=v.call(f,_,O),typeof O){case"string":return Jt(O);case"object":{if(O===null)return"null";if(S.indexOf(O)!==-1)return n;let N="",D=",",G=A;if(Array.isArray(O)){if(O.length===0)return"[]";if(s<S.length+1)return'"[Array]"';S.push(O),T!==""&&(A+=T,N+=`
|
15
|
+
${A}`,D=`,
|
16
|
+
${A}`);let w=Math.min(O.length,o),W=0;for(;W<w-1;W++){let ne=r(String(W),O,S,v,T,A);N+=ne!==void 0?ne:"null",N+=D}let z=r(String(W),O,S,v,T,A);if(N+=z!==void 0?z:"null",O.length-1>o){let ne=O.length-o-1;N+=`${D}"... ${Rr(ne)} not stringified"`}return T!==""&&(N+=`
|
17
|
+
${G}`),S.pop(),`[${N}]`}let F=Object.keys(O),ae=F.length;if(ae===0)return"{}";if(s<S.length+1)return'"[Object]"';let j="",x="";T!==""&&(A+=T,D=`,
|
18
|
+
${A}`,j=" ");let B=Math.min(ae,o);a&&!vc(O)&&(F=Tc(F)),S.push(O);for(let w=0;w<B;w++){let W=F[w],z=r(W,O,S,v,T,A);z!==void 0&&(N+=`${x}${Jt(W)}:${j}${z}`,x=D)}if(ae>o){let w=ae-o;N+=`${x}"...":${j}"${Rr(w)} not stringified"`,x=D}return T!==""&&x.length>1&&(N=`
|
19
|
+
${A}${N}
|
20
|
+
${G}`),S.pop(),`{${N}}`}case"number":return isFinite(O)?String(O):e?e(O):"null";case"boolean":return O===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(O);default:return e?e(O):void 0}}function u(_,f,S,v,T,A){switch(typeof f=="object"&&f!==null&&typeof f.toJSON=="function"&&(f=f.toJSON(_)),typeof f){case"string":return Jt(f);case"object":{if(f===null)return"null";if(S.indexOf(f)!==-1)return n;let O=A,N="",D=",";if(Array.isArray(f)){if(f.length===0)return"[]";if(s<S.length+1)return'"[Array]"';S.push(f),T!==""&&(A+=T,N+=`
|
21
|
+
${A}`,D=`,
|
22
|
+
${A}`);let ae=Math.min(f.length,o),j=0;for(;j<ae-1;j++){let B=u(String(j),f[j],S,v,T,A);N+=B!==void 0?B:"null",N+=D}let x=u(String(j),f[j],S,v,T,A);if(N+=x!==void 0?x:"null",f.length-1>o){let B=f.length-o-1;N+=`${D}"... ${Rr(B)} not stringified"`}return T!==""&&(N+=`
|
23
|
+
${O}`),S.pop(),`[${N}]`}S.push(f);let G="";T!==""&&(A+=T,D=`,
|
24
|
+
${A}`,G=" ");let F="";for(let ae of v){let j=u(ae,f[ae],S,v,T,A);j!==void 0&&(N+=`${F}${Jt(ae)}:${G}${j}`,F=D)}return T!==""&&F.length>1&&(N=`
|
25
|
+
${A}${N}
|
26
|
+
${O}`),S.pop(),`{${N}}`}case"number":return isFinite(f)?String(f):e?e(f):"null";case"boolean":return f===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(f);default:return e?e(f):void 0}}function l(_,f,S,v,T){switch(typeof f){case"string":return Jt(f);case"object":{if(f===null)return"null";if(typeof f.toJSON=="function"){if(f=f.toJSON(_),typeof f!="object")return l(_,f,S,v,T);if(f===null)return"null"}if(S.indexOf(f)!==-1)return n;let A=T;if(Array.isArray(f)){if(f.length===0)return"[]";if(s<S.length+1)return'"[Array]"';S.push(f),T+=v;let j=`
|
27
|
+
${T}`,x=`,
|
28
|
+
${T}`,B=Math.min(f.length,o),w=0;for(;w<B-1;w++){let z=l(String(w),f[w],S,v,T);j+=z!==void 0?z:"null",j+=x}let W=l(String(w),f[w],S,v,T);if(j+=W!==void 0?W:"null",f.length-1>o){let z=f.length-o-1;j+=`${x}"... ${Rr(z)} not stringified"`}return j+=`
|
29
|
+
${A}`,S.pop(),`[${j}]`}let O=Object.keys(f),N=O.length;if(N===0)return"{}";if(s<S.length+1)return'"[Object]"';T+=v;let D=`,
|
30
|
+
${T}`,G="",F="",ae=Math.min(N,o);vc(f)&&(G+=wg(f,D,o),O=O.slice(f.length),ae-=f.length,F=D),a&&(O=Tc(O)),S.push(f);for(let j=0;j<ae;j++){let x=O[j],B=l(x,f[x],S,v,T);B!==void 0&&(G+=`${F}${Jt(x)}: ${B}`,F=D)}if(N>o){let j=N-o;G+=`${F}"...": "${Rr(j)} not stringified"`,F=D}return F!==""&&(G=`
|
31
|
+
${T}${G}
|
32
|
+
${A}`),S.pop(),`{${G}}`}case"number":return isFinite(f)?String(f):e?e(f):"null";case"boolean":return f===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(f);default:return e?e(f):void 0}}function c(_,f,S){switch(typeof f){case"string":return Jt(f);case"object":{if(f===null)return"null";if(typeof f.toJSON=="function"){if(f=f.toJSON(_),typeof f!="object")return c(_,f,S);if(f===null)return"null"}if(S.indexOf(f)!==-1)return n;let v="";if(Array.isArray(f)){if(f.length===0)return"[]";if(s<S.length+1)return'"[Array]"';S.push(f);let D=Math.min(f.length,o),G=0;for(;G<D-1;G++){let ae=c(String(G),f[G],S);v+=ae!==void 0?ae:"null",v+=","}let F=c(String(G),f[G],S);if(v+=F!==void 0?F:"null",f.length-1>o){let ae=f.length-o-1;v+=`,"... ${Rr(ae)} not stringified"`}return S.pop(),`[${v}]`}let T=Object.keys(f),A=T.length;if(A===0)return"{}";if(s<S.length+1)return'"[Object]"';let O="",N=Math.min(A,o);vc(f)&&(v+=wg(f,",",o),T=T.slice(f.length),N-=f.length,O=","),a&&(T=Tc(T)),S.push(f);for(let D=0;D<N;D++){let G=T[D],F=c(G,f[G],S);F!==void 0&&(v+=`${O}${Jt(G)}:${F}`,O=",")}if(A>o){let D=A-o;v+=`${O}"...":"${Rr(D)} not stringified"`}return S.pop(),`{${v}}`}case"number":return isFinite(f)?String(f):e?e(f):"null";case"boolean":return f===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(f);default:return e?e(f):void 0}}function p(_,f,S){if(arguments.length>1){let v="";if(typeof S=="number"?v=" ".repeat(Math.min(S,10)):typeof S=="string"&&(v=S.slice(0,10)),f!=null){if(typeof f=="function")return r("",{"":_},[],f,v,"");if(Array.isArray(f))return u("",_,[],RY(f),v,"")}if(v.length!==0)return l("",_,[],v,"")}return c("",_,[])}return p}});var Ac=h((pZ,Bg)=>{"use strict";var bY=He(),{MESSAGE:MY}=fe(),xY=yo();function LY(t,e){return typeof e=="bigint"?e.toString():e}Bg.exports=bY((t,e)=>{let n=xY.configure(e);return t[MY]=n(t,e.replacer||LY,e.space),t})});var kg=h((dZ,Gg)=>{"use strict";var IY=He();Gg.exports=IY((t,e)=>e.message?(t.message=`[${e.label}] ${t.message}`,t):(t.label=e.label,t))});var Fg=h((EZ,Hg)=>{"use strict";var CY=He(),{MESSAGE:wY}=fe(),UY=yo();Hg.exports=CY(t=>{let e={};return t.message&&(e["@message"]=t.message,delete t.message),t.timestamp&&(e["@timestamp"]=t.timestamp,delete t.timestamp),e["@fields"]=t,t[wY]=UY(e),t})});var qg=h((_Z,Yg)=>{"use strict";var DY=He();function VY(t,e,n){let i=e.reduce((s,o)=>(s[o]=t[o],delete t[o],s),{}),a=Object.keys(t).reduce((s,o)=>(s[o]=t[o],delete t[o],s),{});return Object.assign(t,i,{[n]:a}),t}function BY(t,e,n){return t[n]=e.reduce((i,a)=>(i[a]=t[a],delete t[a],i),{}),t}Yg.exports=DY((t,e={})=>{let n="metadata";e.key&&(n=e.key);let i=[];return!e.fillExcept&&!e.fillWith&&(i.push("level"),i.push("message")),e.fillExcept&&(i=e.fillExcept),i.length>0?VY(t,i,n):e.fillWith?BY(t,e.fillWith,n):t})});var $g=h((SZ,jg)=>{var un=1e3,ln=un*60,cn=ln*60,br=cn*24,GY=br*7,kY=br*365.25;jg.exports=function(t,e){e=e||{};var n=typeof t;if(n==="string"&&t.length>0)return HY(t);if(n==="number"&&isFinite(t))return e.long?YY(t):FY(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function HY(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),i=(e[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return n*kY;case"weeks":case"week":case"w":return n*GY;case"days":case"day":case"d":return n*br;case"hours":case"hour":case"hrs":case"hr":case"h":return n*cn;case"minutes":case"minute":case"mins":case"min":case"m":return n*ln;case"seconds":case"second":case"secs":case"sec":case"s":return n*un;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function FY(t){var e=Math.abs(t);return e>=br?Math.round(t/br)+"d":e>=cn?Math.round(t/cn)+"h":e>=ln?Math.round(t/ln)+"m":e>=un?Math.round(t/un)+"s":t+"ms"}function YY(t){var e=Math.abs(t);return e>=br?fa(t,e,br,"day"):e>=cn?fa(t,e,cn,"hour"):e>=ln?fa(t,e,ln,"minute"):e>=un?fa(t,e,un,"second"):t+" ms"}function fa(t,e,n,i){var a=e>=n*1.5;return Math.round(t/n)+" "+i+(a?"s":"")}});var Wg=h((Ao,Kg)=>{"use strict";var qY=He(),jY=$g();Kg.exports=qY(t=>{let e=+new Date;return Ao.diff=e-(Ao.prevTime||e),Ao.prevTime=e,t.ms=`+${jY(Ao.diff)}`,t})});var Jg=h((hZ,Xg)=>{"use strict";var $Y=L("util").inspect,KY=He(),{LEVEL:WY,MESSAGE:zg,SPLAT:zY}=fe();Xg.exports=KY((t,e={})=>{let n=Object.assign({},t);return delete n[WY],delete n[zg],delete n[zY],t[zg]=$Y(n,!1,e.depth||null,e.colorize),t})});var Qg=h((TZ,da)=>{"use strict";var{MESSAGE:XY}=fe(),pa=class{constructor(e){this.template=e}transform(e){return e[XY]=this.template(e),e}};da.exports=t=>new pa(t);da.exports.Printf=da.exports.Format=pa});var tN=h((vZ,eN)=>{"use strict";var JY=He(),{MESSAGE:Zg}=fe(),QY=yo();eN.exports=JY(t=>{let e=QY(Object.assign({},t,{level:void 0,message:void 0,splat:void 0})),n=t.padding&&t.padding[t.level]||"";return e!=="{}"?t[Zg]=`${t.level}:${n} ${t.message} ${e}`:t[Zg]=`${t.level}:${n} ${t.message}`,t})});var oN=h((mZ,nN)=>{"use strict";var ZY=L("util"),{SPLAT:rN}=fe(),eq=/%[scdjifoO%]/g,tq=/%%/g,Oc=class{constructor(e){this.options=e}_splat(e,n){let i=e.message,a=e[rN]||e.splat||[],s=i.match(tq),o=s&&s.length||0,u=n.length-o-a.length,l=u<0?a.splice(u,-1*u):[],c=l.length;if(c)for(let p=0;p<c;p++)Object.assign(e,l[p]);return e.message=ZY.format(i,...a),e}transform(e){let n=e.message,i=e[rN]||e.splat;if(!i||!i.length)return e;let a=n&&n.match&&n.match(eq);if(!a&&(i||i.length)){let s=i.length>1?i.splice(0):i,o=s.length;if(o)for(let r=0;r<o;r++)Object.assign(e,s[r]);return e}return a?this._splat(e,a):e}};nN.exports=t=>new Oc(t)});var yN={};it(yN,{assign:()=>er,default:()=>lq,defaultI18n:()=>gc,format:()=>vN,parse:()=>mN,setGlobalDateI18n:()=>hN,setGlobalDateMasks:()=>TN});function EN(t,e){for(var n=[],i=0,a=t.length;i<a;i++)n.push(t[i].substr(0,e));return n}function er(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=0,a=e;i<a.length;i++){var s=a[i];for(var o in s)t[o]=s[o]}return t}function mN(t,e,n){if(n===void 0&&(n={}),typeof e!="string")throw new Error("Invalid format in fecha parse");if(e=_a[e]||e,t.length>1e3)return null;var i=new Date,a={year:i.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},s=[],o=[],r=e.replace(dN,function(D,G){return o.push(aN(G)),"@@@"}),u={},l={};r=aN(r).replace(pN,function(D){var G=sq[D],F=G[0],ae=G[1],j=G[3];if(u[F])throw new Error("Invalid format. "+F+" specified twice in format");return u[F]=!0,j&&(l[j]=!0),s.push(G),"("+ae+")"}),Object.keys(l).forEach(function(D){if(!u[D])throw new Error("Invalid format. "+D+" is required in specified format")}),r=r.replace(/@@@/g,function(){return o.shift()});var c=t.match(new RegExp(r,"i"));if(!c)return null;for(var p=er(er({},Ea),n),_=1;_<c.length;_++){var f=s[_-1],S=f[0],v=f[2],T=v?v(c[_],p):+c[_];if(T==null)return null;a[S]=T}a.isPm===1&&a.hour!=null&&+a.hour!=12?a.hour=+a.hour+12:a.isPm===0&&+a.hour==12&&(a.hour=0);var A;if(a.timezoneOffset==null){A=new Date(a.year,a.month,a.day,a.hour,a.minute,a.second,a.millisecond);for(var O=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],_=0,N=O.length;_<N;_++)if(u[O[_][0]]&&a[O[_][0]]!==A[O[_][1]]())return null}else if(A=new Date(Date.UTC(a.year,a.month,a.day,a.hour,a.minute-a.timezoneOffset,a.second,a.millisecond)),a.month>11||a.month<0||a.day>31||a.day<1||a.hour>23||a.hour<0||a.minute>59||a.minute<0||a.second>59||a.second<0)return null;return A}var pN,Zt,Qt,rq,nq,Oo,dN,iN,_N,SN,oq,iq,gc,Ea,hN,aN,Fe,aq,sN,uN,lN,cN,fN,sq,_a,TN,vN,uq,lq,AN=m(()=>{pN=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,Zt="\\d\\d?",Qt="\\d\\d",rq="\\d{3}",nq="\\d{4}",Oo="[^\\s]+",dN=/\[([^]*?)\]/gm;iN=function(t){return function(e,n){var i=n[t].map(function(s){return s.toLowerCase()}),a=i.indexOf(e.toLowerCase());return a>-1?a:null}};_N=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],SN=["January","February","March","April","May","June","July","August","September","October","November","December"],oq=EN(SN,3),iq=EN(_N,3),gc={dayNamesShort:iq,dayNames:_N,monthNamesShort:oq,monthNames:SN,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!==10?1:0)*t%10]}},Ea=er({},gc),hN=function(t){return Ea=er(Ea,t)},aN=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},Fe=function(t,e){for(e===void 0&&(e=2),t=String(t);t.length<e;)t="0"+t;return t},aq={D:function(t){return String(t.getDate())},DD:function(t){return Fe(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return String(t.getDay())},dd:function(t){return Fe(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return String(t.getMonth()+1)},MM:function(t){return Fe(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return Fe(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return Fe(t.getFullYear(),4)},h:function(t){return String(t.getHours()%12||12)},hh:function(t){return Fe(t.getHours()%12||12)},H:function(t){return String(t.getHours())},HH:function(t){return Fe(t.getHours())},m:function(t){return String(t.getMinutes())},mm:function(t){return Fe(t.getMinutes())},s:function(t){return String(t.getSeconds())},ss:function(t){return Fe(t.getSeconds())},S:function(t){return String(Math.round(t.getMilliseconds()/100))},SS:function(t){return Fe(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return Fe(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+Fe(Math.floor(Math.abs(e)/60)*100+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+Fe(Math.floor(Math.abs(e)/60),2)+":"+Fe(Math.abs(e)%60,2)}},sN=function(t){return+t-1},uN=[null,Zt],lN=[null,Oo],cN=["isPm",Oo,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],fN=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var n=+e[1]*60+parseInt(e[2],10);return e[0]==="+"?n:-n}return 0}],sq={D:["day",Zt],DD:["day",Qt],Do:["day",Zt+Oo,function(t){return parseInt(t,10)}],M:["month",Zt,sN],MM:["month",Qt,sN],YY:["year",Qt,function(t){var e=new Date,n=+(""+e.getFullYear()).substr(0,2);return+(""+(+t>68?n-1:n)+t)}],h:["hour",Zt,void 0,"isPm"],hh:["hour",Qt,void 0,"isPm"],H:["hour",Zt],HH:["hour",Qt],m:["minute",Zt],mm:["minute",Qt],s:["second",Zt],ss:["second",Qt],YYYY:["year",nq],S:["millisecond","\\d",function(t){return+t*100}],SS:["millisecond",Qt,function(t){return+t*10}],SSS:["millisecond",rq],d:uN,dd:uN,ddd:lN,dddd:lN,MMM:["month",Oo,iN("monthNamesShort")],MMMM:["month",Oo,iN("monthNames")],a:cN,A:cN,ZZ:fN,Z:fN},_a={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},TN=function(t){return er(_a,t)},vN=function(t,e,n){if(e===void 0&&(e=_a.default),n===void 0&&(n={}),typeof t=="number"&&(t=new Date(t)),Object.prototype.toString.call(t)!=="[object Date]"||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");e=_a[e]||e;var i=[];e=e.replace(dN,function(s,o){return i.push(o),"@@@"});var a=er(er({},Ea),n);return e=e.replace(pN,function(s){return aq[s](t,a)}),e.replace(/@@@/g,function(){return i.shift()})};uq={format:vN,parse:mN,defaultI18n:gc,setGlobalDateI18n:hN,setGlobalDateMasks:TN},lq=uq});var gN=h((yZ,ON)=>{"use strict";var cq=(AN(),Y(yN)),fq=He();ON.exports=fq((t,e={})=>(e.format&&(t.timestamp=typeof e.format=="function"?e.format():cq.format(new Date,e.format)),t.timestamp||(t.timestamp=new Date().toISOString()),e.alias&&(t[e.alias]=t.timestamp),t))});var RN=h((AZ,NN)=>{"use strict";var Nc=ac(),pq=He(),{MESSAGE:Rc}=fe();NN.exports=pq((t,e)=>(e.level!==!1&&(t.level=Nc.strip(t.level)),e.message!==!1&&(t.message=Nc.strip(String(t.message))),e.raw!==!1&&t[Rc]&&(t[Rc]=Nc.strip(String(t[Rc]))),t))});var bc=h(Pc=>{"use strict";var dq=Pc.format=He();Pc.levels=gg();function me(t,e){Object.defineProperty(dq,t,{get(){return e()},configurable:!0})}me("align",function(){return Rg()});me("errors",function(){return Mg()});me("cli",function(){return Lg()});me("combine",function(){return Cg()});me("colorize",function(){return sa()});me("json",function(){return Ac()});me("label",function(){return kg()});me("logstash",function(){return Fg()});me("metadata",function(){return qg()});me("ms",function(){return Wg()});me("padLevels",function(){return _c()});me("prettyPrint",function(){return Jg()});me("printf",function(){return Qg()});me("simple",function(){return tN()});me("splat",function(){return oN()});me("timestamp",function(){return gN()});me("uncolorize",function(){return RN()})});var Mc=h(Sa=>{"use strict";var{format:PN}=L("util");Sa.warn={deprecated(t){return()=>{throw new Error(PN("{ %s } was removed in winston@3.0.0.",t))}},useFormat(t){return()=>{throw new Error([PN("{ %s } was removed in winston@3.0.0.",t),"Use a custom winston.format = winston.format(function) instead."].join(`
|
33
|
+
`))}},forFunctions(t,e,n){n.forEach(i=>{t[i]=Sa.warn[e](i)})},forProperties(t,e,n){n.forEach(i=>{let a=Sa.warn[e](i);Object.defineProperty(t,i,{get:a,set:a})})}}});var bN=h((NZ,Eq)=>{Eq.exports={name:"winston",description:"A logger for just about everything.",version:"3.13.0",author:"Charlie Robbins <charlie.robbins@gmail.com>",maintainers:["David Hyde <dabh@alumni.stanford.edu>"],repository:{type:"git",url:"https://github.com/winstonjs/winston.git"},keywords:["winston","logger","logging","logs","sysadmin","bunyan","pino","loglevel","tools","json","stream"],dependencies:{"@dabh/diagnostics":"^2.0.2","@colors/colors":"^1.6.0",async:"^3.2.3","is-stream":"^2.0.0",logform:"^2.4.0","one-time":"^1.0.0","readable-stream":"^3.4.0","safe-stable-stringify":"^2.3.1","stack-trace":"0.0.x","triple-beam":"^1.3.0","winston-transport":"^4.7.0"},devDependencies:{"@babel/cli":"^7.23.9","@babel/core":"^7.24.0","@babel/preset-env":"^7.24.0","@dabh/eslint-config-populist":"^5.0.0","@types/node":"^20.11.24","abstract-winston-transport":"^0.5.1",assume:"^2.2.0","cross-spawn-async":"^2.2.5",eslint:"^8.57.0",hock:"^1.4.1",mocha:"^10.3.0",nyc:"^15.1.0",rimraf:"^5.0.5",split2:"^4.1.0","std-mocks":"^2.0.0",through2:"^4.0.2","winston-compat":"^0.1.5"},main:"./lib/winston.js",browser:"./dist/winston",types:"./index.d.ts",scripts:{lint:"eslint lib/*.js lib/winston/*.js lib/winston/**/*.js --resolve-plugins-relative-to ./node_modules/@dabh/eslint-config-populist",test:"rimraf test/fixtures/logs/* && mocha","test:coverage":"nyc npm run test:unit","test:unit":"mocha test/unit","test:integration":"mocha test/integration",build:"rimraf dist && babel lib -d dist",prepublishOnly:"npm run build"},engines:{node:">= 12.0.0"},license:"MIT"}});var xN=h((RZ,MN)=>{MN.exports=L("util").deprecate});var xc=h((PZ,LN)=>{LN.exports=L("stream")});var Ic=h((bZ,CN)=>{"use strict";function _q(t,e){var n=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(Lc,this,t)):process.nextTick(Lc,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?n._writableState?n._writableState.errorEmitted?process.nextTick(ha,n):(n._writableState.errorEmitted=!0,process.nextTick(IN,n,s)):process.nextTick(IN,n,s):e?(process.nextTick(ha,n),e(s)):process.nextTick(ha,n)}),this)}function IN(t,e){Lc(t,e),ha(t)}function ha(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function Sq(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Lc(t,e){t.emit("error",e)}function hq(t,e){var n=t._readableState,i=t._writableState;n&&n.autoDestroy||i&&i.autoDestroy?t.destroy(e):t.emit("error",e)}CN.exports={destroy:_q,undestroy:Sq,errorOrDestroy:hq}});var tr=h((MZ,DN)=>{"use strict";var UN={};function Ze(t,e,n){n||(n=Error);function i(s,o,r){return typeof e=="string"?e:e(s,o,r)}class a extends n{constructor(o,r,u){super(i(o,r,u))}}a.prototype.name=n.name,a.prototype.code=t,UN[t]=a}function wN(t,e){if(Array.isArray(t)){let n=t.length;return t=t.map(i=>String(i)),n>2?`one of ${e} ${t.slice(0,n-1).join(", ")}, or `+t[n-1]:n===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function Tq(t,e,n){return t.substr(!n||n<0?0:+n,e.length)===e}function vq(t,e,n){return(n===void 0||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}function mq(t,e,n){return typeof n!="number"&&(n=0),n+e.length>t.length?!1:t.indexOf(e,n)!==-1}Ze("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);Ze("ERR_INVALID_ARG_TYPE",function(t,e,n){let i;typeof e=="string"&&Tq(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be";let a;if(vq(t," argument"))a=`The ${t} ${i} ${wN(e,"type")}`;else{let s=mq(t,".")?"property":"argument";a=`The "${t}" ${s} ${i} ${wN(e,"type")}`}return a+=`. Received type ${typeof n}`,a},TypeError);Ze("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Ze("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});Ze("ERR_STREAM_PREMATURE_CLOSE","Premature close");Ze("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});Ze("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Ze("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Ze("ERR_STREAM_WRITE_AFTER_END","write after end");Ze("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Ze("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);Ze("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");DN.exports.codes=UN});var Cc=h((xZ,VN)=>{"use strict";var yq=tr().codes.ERR_INVALID_OPT_VALUE;function Aq(t,e,n){return t.highWaterMark!=null?t.highWaterMark:e?t[n]:null}function Oq(t,e,n,i){var a=Aq(e,i,n);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var s=i?n:"highWaterMark";throw new yq(s,a)}return Math.floor(a)}return t.objectMode?16:16*1024}VN.exports={getHighWaterMark:Oq}});var BN=h((LZ,wc)=>{typeof Object.create=="function"?wc.exports=function(e,n){n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:wc.exports=function(e,n){if(n){e.super_=n;var i=function(){};i.prototype=n.prototype,e.prototype=new i,e.prototype.constructor=e}}});var fn=h((IZ,Dc)=>{try{if(Uc=L("util"),typeof Uc.inherits!="function")throw"";Dc.exports=Uc.inherits}catch{Dc.exports=BN()}var Uc});var qN=h((CZ,YN)=>{"use strict";function GN(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,i)}return n}function kN(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?GN(Object(n),!0).forEach(function(i){gq(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):GN(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function gq(t,e,n){return e=FN(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Nq(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function HN(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,FN(i.key),i)}}function Rq(t,e,n){return e&&HN(t.prototype,e),n&&HN(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function FN(t){var e=Pq(t,"string");return typeof e=="symbol"?e:String(e)}function Pq(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var bq=L("buffer"),Ta=bq.Buffer,Mq=L("util"),Vc=Mq.inspect,xq=Vc&&Vc.custom||"inspect";function Lq(t,e,n){Ta.prototype.copy.call(t,e,n)}YN.exports=function(){function t(){Nq(this,t),this.head=null,this.tail=null,this.length=0}return Rq(t,[{key:"push",value:function(n){var i={data:n,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(n){var i={data:n,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var n=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,n}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(n){if(this.length===0)return"";for(var i=this.head,a=""+i.data;i=i.next;)a+=n+i.data;return a}},{key:"concat",value:function(n){if(this.length===0)return Ta.alloc(0);for(var i=Ta.allocUnsafe(n>>>0),a=this.head,s=0;a;)Lq(a.data,i,s),s+=a.data.length,a=a.next;return i}},{key:"consume",value:function(n,i){var a;return n<this.head.data.length?(a=this.head.data.slice(0,n),this.head.data=this.head.data.slice(n)):n===this.head.data.length?a=this.shift():a=i?this._getString(n):this._getBuffer(n),a}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(n){var i=this.head,a=1,s=i.data;for(n-=s.length;i=i.next;){var o=i.data,r=n>o.length?o.length:n;if(r===o.length?s+=o:s+=o.slice(0,n),n-=r,n===0){r===o.length?(++a,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(r));break}++a}return this.length-=a,s}},{key:"_getBuffer",value:function(n){var i=Ta.allocUnsafe(n),a=this.head,s=1;for(a.data.copy(i),n-=a.data.length;a=a.next;){var o=a.data,r=n>o.length?o.length:n;if(o.copy(i,i.length-n,0,r),n-=r,n===0){r===o.length?(++s,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=o.slice(r));break}++s}return this.length-=s,i}},{key:xq,value:function(n,i){return Vc(this,kN(kN({},i),{},{depth:0,customInspect:!1}))}}]),t}()});var KN=h((Bc,$N)=>{var va=L("buffer"),vt=va.Buffer;function jN(t,e){for(var n in t)e[n]=t[n]}vt.from&&vt.alloc&&vt.allocUnsafe&&vt.allocUnsafeSlow?$N.exports=va:(jN(va,Bc),Bc.Buffer=Mr);function Mr(t,e,n){return vt(t,e,n)}Mr.prototype=Object.create(vt.prototype);jN(vt,Mr);Mr.from=function(t,e,n){if(typeof t=="number")throw new TypeError("Argument must not be a number");return vt(t,e,n)};Mr.alloc=function(t,e,n){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=vt(t);return e!==void 0?typeof n=="string"?i.fill(e,n):i.fill(e):i.fill(0),i};Mr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return vt(t)};Mr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return va.SlowBuffer(t)}});var Hc=h(zN=>{"use strict";var kc=KN().Buffer,WN=kc.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Iq(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function Cq(t){var e=Iq(t);if(typeof e!="string"&&(kc.isEncoding===WN||!WN(t)))throw new Error("Unknown encoding: "+t);return e||t}zN.StringDecoder=go;function go(t){this.encoding=Cq(t);var e;switch(this.encoding){case"utf16le":this.text=Gq,this.end=kq,e=4;break;case"utf8":this.fillLast=Dq,e=4;break;case"base64":this.text=Hq,this.end=Fq,e=3;break;default:this.write=Yq,this.end=qq;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=kc.allocUnsafe(e)}go.prototype.write=function(t){if(t.length===0)return"";var e,n;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<t.length?e?e+this.text(t,n):this.text(t,n):e||""};go.prototype.end=Bq;go.prototype.text=Vq;go.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function Gc(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function wq(t,e,n){var i=e.length-1;if(i<n)return 0;var a=Gc(e[i]);return a>=0?(a>0&&(t.lastNeed=a-1),a):--i<n||a===-2?0:(a=Gc(e[i]),a>=0?(a>0&&(t.lastNeed=a-2),a):--i<n||a===-2?0:(a=Gc(e[i]),a>=0?(a>0&&(a===2?a=0:t.lastNeed=a-3),a):0))}function Uq(t,e,n){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function Dq(t){var e=this.lastTotal-this.lastNeed,n=Uq(this,t,e);if(n!==void 0)return n;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function Vq(t,e){var n=wq(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var i=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function Bq(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function Gq(t,e){if((t.length-e)%2===0){var n=t.toString("utf16le",e);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function kq(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function Hq(t,e){var n=(t.length-e)%3;return n===0?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function Fq(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function Yq(t){return t.toString(this.encoding)}function qq(t){return t&&t.length?this.write(t):""}});var ma=h((UZ,QN)=>{"use strict";var XN=tr().codes.ERR_STREAM_PREMATURE_CLOSE;function jq(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];t.apply(this,i)}}}function $q(){}function Kq(t){return t.setHeader&&typeof t.abort=="function"}function JN(t,e,n){if(typeof e=="function")return JN(t,null,e);e||(e={}),n=jq(n||$q);var i=e.readable||e.readable!==!1&&t.readable,a=e.writable||e.writable!==!1&&t.writable,s=function(){t.writable||r()},o=t._writableState&&t._writableState.finished,r=function(){a=!1,o=!0,i||n.call(t)},u=t._readableState&&t._readableState.endEmitted,l=function(){i=!1,u=!0,a||n.call(t)},c=function(S){n.call(t,S)},p=function(){var S;if(i&&!u)return(!t._readableState||!t._readableState.ended)&&(S=new XN),n.call(t,S);if(a&&!o)return(!t._writableState||!t._writableState.ended)&&(S=new XN),n.call(t,S)},_=function(){t.req.on("finish",r)};return Kq(t)?(t.on("complete",r),t.on("abort",p),t.req?_():t.on("request",_)):a&&!t._writableState&&(t.on("end",s),t.on("close",s)),t.on("end",l),t.on("finish",r),e.error!==!1&&t.on("error",c),t.on("close",p),function(){t.removeListener("complete",r),t.removeListener("abort",p),t.removeListener("request",_),t.req&&t.req.removeListener("finish",r),t.removeListener("end",s),t.removeListener("close",s),t.removeListener("finish",r),t.removeListener("end",l),t.removeListener("error",c),t.removeListener("close",p)}}QN.exports=JN});var eR=h((DZ,ZN)=>{"use strict";var ya;function rr(t,e,n){return e=Wq(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Wq(t){var e=zq(t,"string");return typeof e=="symbol"?e:String(e)}function zq(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Xq=ma(),nr=Symbol("lastResolve"),xr=Symbol("lastReject"),No=Symbol("error"),Aa=Symbol("ended"),Lr=Symbol("lastPromise"),Fc=Symbol("handlePromise"),Ir=Symbol("stream");function or(t,e){return{value:t,done:e}}function Jq(t){var e=t[nr];if(e!==null){var n=t[Ir].read();n!==null&&(t[Lr]=null,t[nr]=null,t[xr]=null,e(or(n,!1)))}}function Qq(t){process.nextTick(Jq,t)}function Zq(t,e){return function(n,i){t.then(function(){if(e[Aa]){n(or(void 0,!0));return}e[Fc](n,i)},i)}}var e5=Object.getPrototypeOf(function(){}),t5=Object.setPrototypeOf((ya={get stream(){return this[Ir]},next:function(){var e=this,n=this[No];if(n!==null)return Promise.reject(n);if(this[Aa])return Promise.resolve(or(void 0,!0));if(this[Ir].destroyed)return new Promise(function(o,r){process.nextTick(function(){e[No]?r(e[No]):o(or(void 0,!0))})});var i=this[Lr],a;if(i)a=new Promise(Zq(i,this));else{var s=this[Ir].read();if(s!==null)return Promise.resolve(or(s,!1));a=new Promise(this[Fc])}return this[Lr]=a,a}},rr(ya,Symbol.asyncIterator,function(){return this}),rr(ya,"return",function(){var e=this;return new Promise(function(n,i){e[Ir].destroy(null,function(a){if(a){i(a);return}n(or(void 0,!0))})})}),ya),e5),r5=function(e){var n,i=Object.create(t5,(n={},rr(n,Ir,{value:e,writable:!0}),rr(n,nr,{value:null,writable:!0}),rr(n,xr,{value:null,writable:!0}),rr(n,No,{value:null,writable:!0}),rr(n,Aa,{value:e._readableState.endEmitted,writable:!0}),rr(n,Fc,{value:function(s,o){var r=i[Ir].read();r?(i[Lr]=null,i[nr]=null,i[xr]=null,s(or(r,!1))):(i[nr]=s,i[xr]=o)},writable:!0}),n));return i[Lr]=null,Xq(e,function(a){if(a&&a.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=i[xr];s!==null&&(i[Lr]=null,i[nr]=null,i[xr]=null,s(a)),i[No]=a;return}var o=i[nr];o!==null&&(i[Lr]=null,i[nr]=null,i[xr]=null,o(or(void 0,!0))),i[Aa]=!0}),e.on("readable",Qq.bind(null,i)),i};ZN.exports=r5});var oR=h((VZ,nR)=>{"use strict";function tR(t,e,n,i,a,s,o){try{var r=t[s](o),u=r.value}catch(l){n(l);return}r.done?e(u):Promise.resolve(u).then(i,a)}function n5(t){return function(){var e=this,n=arguments;return new Promise(function(i,a){var s=t.apply(e,n);function o(u){tR(s,i,a,o,r,"next",u)}function r(u){tR(s,i,a,o,r,"throw",u)}o(void 0)})}}function rR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,i)}return n}function o5(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?rR(Object(n),!0).forEach(function(i){i5(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rR(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function i5(t,e,n){return e=a5(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a5(t){var e=s5(t,"string");return typeof e=="symbol"?e:String(e)}function s5(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var u5=tr().codes.ERR_INVALID_ARG_TYPE;function l5(t,e,n){var i;if(e&&typeof e.next=="function")i=e;else if(e&&e[Symbol.asyncIterator])i=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])i=e[Symbol.iterator]();else throw new u5("iterable",["Iterable"],e);var a=new t(o5({objectMode:!0},n)),s=!1;a._read=function(){s||(s=!0,o())};function o(){return r.apply(this,arguments)}function r(){return r=n5(function*(){try{var u=yield i.next(),l=u.value,c=u.done;c?a.push(null):a.push(yield l)?o():s=!1}catch(p){a.destroy(p)}}),r.apply(this,arguments)}return a}nR.exports=l5});var Qc=h((GZ,ER)=>{"use strict";ER.exports=$;var pn;$.ReadableState=uR;var BZ=L("events").EventEmitter,sR=function(e,n){return e.listeners(n).length},Po=xc(),Oa=L("buffer").Buffer,c5=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function f5(t){return Oa.from(t)}function p5(t){return Oa.isBuffer(t)||t instanceof c5}var Yc=L("util"),k;Yc&&Yc.debuglog?k=Yc.debuglog("stream"):k=function(){};var d5=qN(),Xc=Ic(),E5=Cc(),_5=E5.getHighWaterMark,ga=tr().codes,S5=ga.ERR_INVALID_ARG_TYPE,h5=ga.ERR_STREAM_PUSH_AFTER_EOF,T5=ga.ERR_METHOD_NOT_IMPLEMENTED,v5=ga.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,dn,qc,jc;fn()($,Po);var Ro=Xc.errorOrDestroy,$c=["error","close","destroy","pause","resume"];function m5(t,e,n){if(typeof t.prependListener=="function")return t.prependListener(e,n);!t._events||!t._events[e]?t.on(e,n):Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]}function uR(t,e,n){pn=pn||Cr(),t=t||{},typeof n!="boolean"&&(n=e instanceof pn),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=_5(this,t,"readableHighWaterMark",n),this.buffer=new d5,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(dn||(dn=Hc().StringDecoder),this.decoder=new dn(t.encoding),this.encoding=t.encoding)}function $(t){if(pn=pn||Cr(),!(this instanceof $))return new $(t);var e=this instanceof pn;this._readableState=new uR(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),Po.call(this)}Object.defineProperty($.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});$.prototype.destroy=Xc.destroy;$.prototype._undestroy=Xc.undestroy;$.prototype._destroy=function(t,e){e(t)};$.prototype.push=function(t,e){var n=this._readableState,i;return n.objectMode?i=!0:typeof t=="string"&&(e=e||n.defaultEncoding,e!==n.encoding&&(t=Oa.from(t,e),e=""),i=!0),lR(this,t,e,!1,i)};$.prototype.unshift=function(t){return lR(this,t,null,!0,!1)};function lR(t,e,n,i,a){k("readableAddChunk",e);var s=t._readableState;if(e===null)s.reading=!1,O5(t,s);else{var o;if(a||(o=y5(s,e)),o)Ro(t,o);else if(s.objectMode||e&&e.length>0)if(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==Oa.prototype&&(e=f5(e)),i)s.endEmitted?Ro(t,new v5):Kc(t,s,e,!0);else if(s.ended)Ro(t,new h5);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!n?(e=s.decoder.write(e),s.objectMode||e.length!==0?Kc(t,s,e,!1):zc(t,s)):Kc(t,s,e,!1)}else i||(s.reading=!1,zc(t,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function Kc(t,e,n,i){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",n)):(e.length+=e.objectMode?1:n.length,i?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&Na(t)),zc(t,e)}function y5(t,e){var n;return!p5(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(n=new S5("chunk",["string","Buffer","Uint8Array"],e)),n}$.prototype.isPaused=function(){return this._readableState.flowing===!1};$.prototype.setEncoding=function(t){dn||(dn=Hc().StringDecoder);var e=new dn(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";n!==null;)i+=e.write(n.data),n=n.next;return this._readableState.buffer.clear(),i!==""&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var iR=1073741824;function A5(t){return t>=iR?t=iR:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function aR(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=A5(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}$.prototype.read=function(t){k("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return k("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Wc(this):Na(this),null;if(t=aR(t,e),t===0&&e.ended)return e.length===0&&Wc(this),null;var i=e.needReadable;k("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,k("length less than watermark",i)),e.ended||e.reading?(i=!1,k("reading or ended",i)):i&&(k("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=aR(n,e)));var a;return t>0?a=pR(t,e):a=null,a===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&Wc(this)),a!==null&&this.emit("data",a),a};function O5(t,e){if(k("onEofChunk"),!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,e.sync?Na(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,cR(t)))}}function Na(t){var e=t._readableState;k("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(k("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(cR,t))}function cR(t){var e=t._readableState;k("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,Jc(t)}function zc(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(g5,t,e))}function g5(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var n=e.length;if(k("maybeReadMore read 0"),t.read(0),n===e.length)break}e.readingMore=!1}$.prototype._read=function(t){Ro(this,new T5("_read()"))};$.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,k("pipe count=%d opts=%j",i.pipesCount,e);var a=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=a?r:v;i.endEmitted?process.nextTick(s):n.once("end",s),t.on("unpipe",o);function o(T,A){k("onunpipe"),T===n&&A&&A.hasUnpiped===!1&&(A.hasUnpiped=!0,c())}function r(){k("onend"),t.end()}var u=N5(n);t.on("drain",u);var l=!1;function c(){k("cleanup"),t.removeListener("close",f),t.removeListener("finish",S),t.removeListener("drain",u),t.removeListener("error",_),t.removeListener("unpipe",o),n.removeListener("end",r),n.removeListener("end",v),n.removeListener("data",p),l=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&u()}n.on("data",p);function p(T){k("ondata");var A=t.write(T);k("dest.write",A),A===!1&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&dR(i.pipes,t)!==-1)&&!l&&(k("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function _(T){k("onerror",T),v(),t.removeListener("error",_),sR(t,"error")===0&&Ro(t,T)}m5(t,"error",_);function f(){t.removeListener("finish",S),v()}t.once("close",f);function S(){k("onfinish"),t.removeListener("close",f),v()}t.once("finish",S);function v(){k("unpipe"),n.unpipe(t)}return t.emit("pipe",n),i.flowing||(k("pipe resume"),n.resume()),t};function N5(t){return function(){var n=t._readableState;k("pipeOnDrain",n.awaitDrain),n.awaitDrain&&n.awaitDrain--,n.awaitDrain===0&&sR(t,"data")&&(n.flowing=!0,Jc(t))}}$.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n),this);if(!t){var i=e.pipes,a=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<a;s++)i[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=dR(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n),this)};$.prototype.on=function(t,e){var n=Po.prototype.on.call(this,t,e),i=this._readableState;return t==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):t==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,k("on readable",i.length,i.reading),i.length?Na(this):i.reading||process.nextTick(R5,this)),n};$.prototype.addListener=$.prototype.on;$.prototype.removeListener=function(t,e){var n=Po.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(fR,this),n};$.prototype.removeAllListeners=function(t){var e=Po.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(fR,this),e};function fR(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function R5(t){k("readable nexttick read 0"),t.read(0)}$.prototype.resume=function(){var t=this._readableState;return t.flowing||(k("resume"),t.flowing=!t.readableListening,P5(this,t)),t.paused=!1,this};function P5(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(b5,t,e))}function b5(t,e){k("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),Jc(t),e.flowing&&!e.reading&&t.read(0)}$.prototype.pause=function(){return k("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(k("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Jc(t){var e=t._readableState;for(k("flow",e.flowing);e.flowing&&t.read()!==null;);}$.prototype.wrap=function(t){var e=this,n=this._readableState,i=!1;t.on("end",function(){if(k("wrapped end"),n.decoder&&!n.ended){var o=n.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),t.on("data",function(o){if(k("wrapped data"),n.decoder&&(o=n.decoder.write(o)),!(n.objectMode&&o==null)&&!(!n.objectMode&&(!o||!o.length))){var r=e.push(o);r||(i=!0,t.pause())}});for(var a in t)this[a]===void 0&&typeof t[a]=="function"&&(this[a]=function(r){return function(){return t[r].apply(t,arguments)}}(a));for(var s=0;s<$c.length;s++)t.on($c[s],this.emit.bind(this,$c[s]));return this._read=function(o){k("wrapped _read",o),i&&(i=!1,t.resume())},this};typeof Symbol=="function"&&($.prototype[Symbol.asyncIterator]=function(){return qc===void 0&&(qc=eR()),qc(this)});Object.defineProperty($.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty($.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty($.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});$._fromList=pR;Object.defineProperty($.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function pR(t,e){if(e.length===0)return null;var n;return e.objectMode?n=e.buffer.shift():!t||t>=e.length?(e.decoder?n=e.buffer.join(""):e.buffer.length===1?n=e.buffer.first():n=e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n}function Wc(t){var e=t._readableState;k("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(M5,e,t))}function M5(t,e){if(k("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}typeof Symbol=="function"&&($.from=function(t,e){return jc===void 0&&(jc=oR()),jc($,t,e)});function dR(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1}});var Cr=h((kZ,SR)=>{"use strict";var x5=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};SR.exports=mt;var _R=Qc(),ef=ba();fn()(mt,_R);for(Zc=x5(ef.prototype),Ra=0;Ra<Zc.length;Ra++)Pa=Zc[Ra],mt.prototype[Pa]||(mt.prototype[Pa]=ef.prototype[Pa]);var Zc,Pa,Ra;function mt(t){if(!(this instanceof mt))return new mt(t);_R.call(this,t),ef.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",L5)))}Object.defineProperty(mt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(mt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(mt.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function L5(){this._writableState.ended||process.nextTick(I5,this)}function I5(t){t.end()}Object.defineProperty(mt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var ba=h((HZ,AR)=>{"use strict";AR.exports=ue;function TR(t){var e=this;this.next=null,this.entry=null,this.finish=function(){ij(e,t)}}var En;ue.WritableState=Mo;var C5={deprecate:xN()},vR=xc(),xa=L("buffer").Buffer,w5=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function U5(t){return xa.from(t)}function D5(t){return xa.isBuffer(t)||t instanceof w5}var rf=Ic(),V5=Cc(),B5=V5.getHighWaterMark,ir=tr().codes,G5=ir.ERR_INVALID_ARG_TYPE,k5=ir.ERR_METHOD_NOT_IMPLEMENTED,H5=ir.ERR_MULTIPLE_CALLBACK,F5=ir.ERR_STREAM_CANNOT_PIPE,Y5=ir.ERR_STREAM_DESTROYED,q5=ir.ERR_STREAM_NULL_VALUES,j5=ir.ERR_STREAM_WRITE_AFTER_END,$5=ir.ERR_UNKNOWN_ENCODING,_n=rf.errorOrDestroy;fn()(ue,vR);function K5(){}function Mo(t,e,n){En=En||Cr(),t=t||{},typeof n!="boolean"&&(n=e instanceof En),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=B5(this,t,"writableHighWaterMark",n),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=t.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){ej(e,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new TR(this)}Mo.prototype.getBuffer=function(){for(var e=this.bufferedRequest,n=[];e;)n.push(e),e=e.next;return n};(function(){try{Object.defineProperty(Mo.prototype,"buffer",{get:C5.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Ma;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Ma=Function.prototype[Symbol.hasInstance],Object.defineProperty(ue,Symbol.hasInstance,{value:function(e){return Ma.call(this,e)?!0:this!==ue?!1:e&&e._writableState instanceof Mo}})):Ma=function(e){return e instanceof this};function ue(t){En=En||Cr();var e=this instanceof En;if(!e&&!Ma.call(ue,this))return new ue(t);this._writableState=new Mo(t,this,e),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),vR.call(this)}ue.prototype.pipe=function(){_n(this,new F5)};function W5(t,e){var n=new j5;_n(t,n),process.nextTick(e,n)}function z5(t,e,n,i){var a;return n===null?a=new q5:typeof n!="string"&&!e.objectMode&&(a=new G5("chunk",["string","Buffer"],n)),a?(_n(t,a),process.nextTick(i,a),!1):!0}ue.prototype.write=function(t,e,n){var i=this._writableState,a=!1,s=!i.objectMode&&D5(t);return s&&!xa.isBuffer(t)&&(t=U5(t)),typeof e=="function"&&(n=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),typeof n!="function"&&(n=K5),i.ending?W5(this,n):(s||z5(this,i,t,n))&&(i.pendingcb++,a=J5(this,i,s,t,e,n)),a};ue.prototype.cork=function(){this._writableState.corked++};ue.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&mR(this,t))};ue.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new $5(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(ue.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function X5(t,e,n){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=xa.from(e,n)),e}Object.defineProperty(ue.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function J5(t,e,n,i,a,s){if(!n){var o=X5(e,i,a);i!==o&&(n=!0,a="buffer",i=o)}var r=e.objectMode?1:i.length;e.length+=r;var u=e.length<e.highWaterMark;if(u||(e.needDrain=!0),e.writing||e.corked){var l=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:a,isBuf:n,callback:s,next:null},l?l.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else tf(t,e,!1,r,i,a,s);return u}function tf(t,e,n,i,a,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new Y5("write")):n?t._writev(a,e.onwrite):t._write(a,s,e.onwrite),e.sync=!1}function Q5(t,e,n,i,a){--e.pendingcb,n?(process.nextTick(a,i),process.nextTick(bo,t,e),t._writableState.errorEmitted=!0,_n(t,i)):(a(i),t._writableState.errorEmitted=!0,_n(t,i),bo(t,e))}function Z5(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function ej(t,e){var n=t._writableState,i=n.sync,a=n.writecb;if(typeof a!="function")throw new H5;if(Z5(n),e)Q5(t,n,i,e,a);else{var s=yR(n)||t.destroyed;!s&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest&&mR(t,n),i?process.nextTick(hR,t,n,s,a):hR(t,n,s,a)}}function hR(t,e,n,i){n||tj(t,e),e.pendingcb--,i(),bo(t,e)}function tj(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function mR(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var i=e.bufferedRequestCount,a=new Array(i),s=e.corkedRequestsFree;s.entry=n;for(var o=0,r=!0;n;)a[o]=n,n.isBuf||(r=!1),n=n.next,o+=1;a.allBuffers=r,tf(t,e,!0,e.length,a,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new TR(e),e.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,l=n.encoding,c=n.callback,p=e.objectMode?1:u.length;if(tf(t,e,!1,p,u,l,c),n=n.next,e.bufferedRequestCount--,e.writing)break}n===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}ue.prototype._write=function(t,e,n){n(new k5("_write()"))};ue.prototype._writev=null;ue.prototype.end=function(t,e,n){var i=this._writableState;return typeof t=="function"?(n=t,t=null,e=null):typeof e=="function"&&(n=e,e=null),t!=null&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||oj(this,i,n),this};Object.defineProperty(ue.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function yR(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function rj(t,e){t._final(function(n){e.pendingcb--,n&&_n(t,n),e.prefinished=!0,t.emit("prefinish"),bo(t,e)})}function nj(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(rj,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function bo(t,e){var n=yR(e);if(n&&(nj(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var i=t._readableState;(!i||i.autoDestroy&&i.endEmitted)&&t.destroy()}return n}function oj(t,e,n){e.ending=!0,bo(t,e),n&&(e.finished?process.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}function ij(t,e,n){var i=t.entry;for(t.entry=null;i;){var a=i.callback;e.pendingcb--,a(n),i=i.next}e.corkedRequestsFree.next=t}Object.defineProperty(ue.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});ue.prototype.destroy=rf.destroy;ue.prototype._undestroy=rf.undestroy;ue.prototype._destroy=function(t,e){e(t)}});var nf=h((FZ,NR)=>{"use strict";var aj=L("util"),OR=ba(),{LEVEL:gR}=fe(),xo=NR.exports=function(e={}){OR.call(this,{objectMode:!0,highWaterMark:e.highWaterMark}),this.format=e.format,this.level=e.level,this.handleExceptions=e.handleExceptions,this.handleRejections=e.handleRejections,this.silent=e.silent,e.log&&(this.log=e.log),e.logv&&(this.logv=e.logv),e.close&&(this.close=e.close),this.once("pipe",n=>{this.levels=n.levels,this.parent=n}),this.once("unpipe",n=>{n===this.parent&&(this.parent=null,this.close&&this.close())})};aj.inherits(xo,OR);xo.prototype._write=function(e,n,i){if(this.silent||e.exception===!0&&!this.handleExceptions)return i(null);let a=this.level||this.parent&&this.parent.level;if(!a||this.levels[a]>=this.levels[e[gR]]){if(e&&!this.format)return this.log(e,i);let s,o;try{o=this.format.transform(Object.assign({},e),this.format.options)}catch(r){s=r}if(s||!o){if(i(),s)throw s;return}return this.log(o,i)}return this._writableState.sync=!1,i(null)};xo.prototype._writev=function(e,n){if(this.logv){let i=e.filter(this._accept,this);return i.length?this.logv(i,n):n(null)}for(let i=0;i<e.length;i++){if(!this._accept(e[i]))continue;if(e[i].chunk&&!this.format){this.log(e[i].chunk,e[i].callback);continue}let a,s;try{s=this.format.transform(Object.assign({},e[i].chunk),this.format.options)}catch(o){a=o}if(a||!s){if(e[i].callback(),a)throw n(null),a}else this.log(s,e[i].callback)}return n(null)};xo.prototype._accept=function(e){let n=e.chunk;if(this.silent)return!1;let i=this.level||this.parent&&this.parent.level;return!!((n.exception===!0||!i||this.levels[i]>=this.levels[n[gR]])&&(this.handleExceptions||n.exception!==!0))};xo.prototype._nop=function(){}});var af=h((YZ,PR)=>{"use strict";var sj=L("util"),{LEVEL:of}=fe(),RR=nf(),Lo=PR.exports=function(e={}){if(RR.call(this,e),!e.transport||typeof e.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=e.transport,this.level=this.level||e.transport.level,this.handleExceptions=this.handleExceptions||e.transport.handleExceptions,this._deprecated();function n(i){this.emit("error",i,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=n.bind(this),this.transport.on("error",this.transport.__winstonError))};sj.inherits(Lo,RR);Lo.prototype._write=function(e,n,i){if(this.silent||e.exception===!0&&!this.handleExceptions)return i(null);(!this.level||this.levels[this.level]>=this.levels[e[of]])&&this.transport.log(e[of],e.message,e,this._nop),i(null)};Lo.prototype._writev=function(e,n){for(let i=0;i<e.length;i++)this._accept(e[i])&&(this.transport.log(e[i].chunk[of],e[i].chunk.message,e[i].chunk,this._nop),e[i].callback());return n(null)};Lo.prototype._deprecated=function(){console.error([`${this.transport.name} is a legacy winston transport. Consider upgrading: `,"- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"].join(`
|
34
|
+
`))};Lo.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)}});var Sn=h((qZ,sf)=>{"use strict";sf.exports=nf();sf.exports.LegacyTransportStream=af()});var xR=h(($Z,MR)=>{"use strict";var uj=L("os"),{LEVEL:bR,MESSAGE:hn}=fe(),lj=Sn();MR.exports=class extends lj{constructor(e={}){super(e),this.name=e.name||"console",this.stderrLevels=this._stringArrayToSet(e.stderrLevels),this.consoleWarnLevels=this._stringArrayToSet(e.consoleWarnLevels),this.eol=typeof e.eol=="string"?e.eol:uj.EOL,this.setMaxListeners(30)}log(e,n){if(setImmediate(()=>this.emit("logged",e)),this.stderrLevels[e[bR]]){console._stderr?console._stderr.write(`${e[hn]}${this.eol}`):console.error(e[hn]),n&&n();return}else if(this.consoleWarnLevels[e[bR]]){console._stderr?console._stderr.write(`${e[hn]}${this.eol}`):console.warn(e[hn]),n&&n();return}console._stdout?console._stdout.write(`${e[hn]}${this.eol}`):console.log(e[hn]),n&&n()}_stringArrayToSet(e,n){if(!e)return{};if(n=n||"Cannot make set from type other than Array of string elements",!Array.isArray(e))throw new Error(n);return e.reduce((i,a)=>{if(typeof a!="string")throw new Error(n);return i[a]=!0,i},{})}}});var Ia=h((La,LR)=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.default=cj;function cj(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}LR.exports=La.default});var CR=h((Ca,IR)=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.default=function(t){return function(...e){var n=e.pop();return t.call(this,e,n)}};IR.exports=Ca.default});var DR=h(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.fallback=wR;ar.wrap=UR;var fj=ar.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,pj=ar.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,dj=ar.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function wR(t){setTimeout(t,0)}function UR(t){return(e,...n)=>t(()=>e(...n))}var Io;fj?Io=queueMicrotask:pj?Io=setImmediate:dj?Io=process.nextTick:Io=wR;ar.default=UR(Io)});var HR=h((wa,kR)=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.default=vj;var Ej=CR(),_j=GR(Ej),Sj=DR(),hj=GR(Sj),Tj=wr();function GR(t){return t&&t.__esModule?t:{default:t}}function vj(t){return(0,Tj.isAsync)(t)?function(...e){let n=e.pop(),i=t.apply(this,e);return VR(i,n)}:(0,_j.default)(function(e,n){var i;try{i=t.apply(this,e)}catch(a){return n(a)}if(i&&typeof i.then=="function")return VR(i,n);n(null,i)})}function VR(t,e){return t.then(n=>{BR(e,null,n)},n=>{BR(e,n&&(n instanceof Error||n.message)?n:new Error(n))})}function BR(t,e,n){try{t(e,n)}catch(i){(0,hj.default)(a=>{throw a},i)}}kR.exports=wa.default});var wr=h(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.isAsyncIterable=Dt.isAsyncGenerator=Dt.isAsync=void 0;var mj=HR(),yj=Aj(mj);function Aj(t){return t&&t.__esModule?t:{default:t}}function FR(t){return t[Symbol.toStringTag]==="AsyncFunction"}function Oj(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function gj(t){return typeof t[Symbol.asyncIterator]=="function"}function Nj(t){if(typeof t!="function")throw new Error("expected a function");return FR(t)?(0,yj.default)(t):t}Dt.default=Nj;Dt.isAsync=FR;Dt.isAsyncGenerator=Oj;Dt.isAsyncIterable=gj});var Tn=h((Ua,YR)=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.default=Rj;function Rj(t,e){if(e||(e=t.length),!e)throw new Error("arity is undefined");function n(...i){return typeof i[e-1]=="function"?t.apply(this,i):new Promise((a,s)=>{i[e-1]=(o,...r)=>{if(o)return s(o);a(r.length>1?r:r[0])},t.apply(this,i)})}return n}YR.exports=Ua.default});var jR=h((Da,qR)=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});var Pj=Ia(),bj=uf(Pj),Mj=wr(),xj=uf(Mj),Lj=Tn(),Ij=uf(Lj);function uf(t){return t&&t.__esModule?t:{default:t}}Da.default=(0,Ij.default)((t,e,n)=>{var i=(0,bj.default)(e)?[]:{};t(e,(a,s,o)=>{(0,xj.default)(a)((r,...u)=>{u.length<2&&([u]=u),i[s]=u,o(r)})},a=>n(a,i))},3);qR.exports=Da.default});var lf=h((Va,$R)=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.default=Cj;function Cj(t){function e(...n){if(t!==null){var i=t;t=null,i.apply(this,n)}}return Object.assign(e,t),e}$R.exports=Va.default});var WR=h((Ba,KR)=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});Ba.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()};KR.exports=Ba.default});var JR=h((Ga,XR)=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.default=Hj;var wj=Ia(),Uj=zR(wj),Dj=WR(),Vj=zR(Dj);function zR(t){return t&&t.__esModule?t:{default:t}}function Bj(t){var e=-1,n=t.length;return function(){return++e<n?{value:t[e],key:e}:null}}function Gj(t){var e=-1;return function(){var i=t.next();return i.done?null:(e++,{value:i.value,key:e})}}function kj(t){var e=t?Object.keys(t):[],n=-1,i=e.length;return function a(){var s=e[++n];return s==="__proto__"?a():n<i?{value:t[s],key:s}:null}}function Hj(t){if((0,Uj.default)(t))return Bj(t);var e=(0,Vj.default)(t);return e?Gj(e):kj(t)}XR.exports=Ga.default});var cf=h((ka,QR)=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.default=Fj;function Fj(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var n=t;t=null,n.apply(this,e)}}QR.exports=ka.default});var Fa=h((Ha,ZR)=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});var Yj={};Ha.default=Yj;ZR.exports=Ha.default});var tP=h((Ya,eP)=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.default=Kj;var qj=Fa(),jj=$j(qj);function $j(t){return t&&t.__esModule?t:{default:t}}function Kj(t,e,n,i){let a=!1,s=!1,o=!1,r=0,u=0;function l(){r>=e||o||a||(o=!0,t.next().then(({value:_,done:f})=>{if(!(s||a)){if(o=!1,f){a=!0,r<=0&&i(null);return}r++,n(_,u,c),u++,l()}}).catch(p))}function c(_,f){if(r-=1,!s){if(_)return p(_);if(_===!1){a=!0,s=!0;return}if(f===jj.default||a&&r<=0)return a=!0,i(null);l()}}function p(_){s||(o=!1,a=!0,i(_))}l()}eP.exports=Ya.default});var iP=h((qa,oP)=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});var Wj=lf(),zj=Co(Wj),Xj=JR(),Jj=Co(Xj),Qj=cf(),Zj=Co(Qj),rP=wr(),e4=tP(),nP=Co(e4),t4=Fa(),r4=Co(t4);function Co(t){return t&&t.__esModule?t:{default:t}}qa.default=t=>(e,n,i)=>{if(i=(0,zj.default)(i),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return i(null);if((0,rP.isAsyncGenerator)(e))return(0,nP.default)(e,t,n,i);if((0,rP.isAsyncIterable)(e))return(0,nP.default)(e[Symbol.asyncIterator](),t,n,i);var a=(0,Jj.default)(e),s=!1,o=!1,r=0,u=!1;function l(p,_){if(!o)if(r-=1,p)s=!0,i(p);else if(p===!1)s=!0,o=!0;else{if(_===r4.default||s&&r<=0)return s=!0,i(null);u||c()}}function c(){for(u=!0;r<t&&!s;){var p=a();if(p===null){s=!0,r<=0&&i(null);return}r+=1,n(p.value,p.key,(0,Zj.default)(l))}u=!1}c()};oP.exports=qa.default});var pf=h((ja,aP)=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});var n4=iP(),o4=ff(n4),i4=wr(),a4=ff(i4),s4=Tn(),u4=ff(s4);function ff(t){return t&&t.__esModule?t:{default:t}}function l4(t,e,n,i){return(0,o4.default)(e)(t,(0,a4.default)(n),i)}ja.default=(0,u4.default)(l4,4);aP.exports=ja.default});var lP=h(($a,uP)=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});var c4=pf(),f4=sP(c4),p4=Tn(),d4=sP(p4);function sP(t){return t&&t.__esModule?t:{default:t}}function E4(t,e,n){return(0,f4.default)(t,1,e,n)}$a.default=(0,d4.default)(E4,3);uP.exports=$a.default});var pP=h((Ka,fP)=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.default=v4;var _4=jR(),S4=cP(_4),h4=lP(),T4=cP(h4);function cP(t){return t&&t.__esModule?t:{default:t}}function v4(t,e){return(0,S4.default)(T4.default,t,e)}fP.exports=Ka.default});var df=h((zZ,EP)=>{"use strict";EP.exports=Vt;var Wa=tr().codes,m4=Wa.ERR_METHOD_NOT_IMPLEMENTED,y4=Wa.ERR_MULTIPLE_CALLBACK,A4=Wa.ERR_TRANSFORM_ALREADY_TRANSFORMING,O4=Wa.ERR_TRANSFORM_WITH_LENGTH_0,za=Cr();fn()(Vt,za);function g4(t,e){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(i===null)return this.emit("error",new y4);n.writechunk=null,n.writecb=null,e!=null&&this.push(e),i(t);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function Vt(t){if(!(this instanceof Vt))return new Vt(t);za.call(this,t),this._transformState={afterTransform:g4.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",N4)}function N4(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,n){dP(t,e,n)}):dP(this,null,null)}Vt.prototype.push=function(t,e){return this._transformState.needTransform=!1,za.prototype.push.call(this,t,e)};Vt.prototype._transform=function(t,e,n){n(new m4("_transform()"))};Vt.prototype._write=function(t,e,n){var i=this._transformState;if(i.writecb=n,i.writechunk=t,i.writeencoding=e,!i.transforming){var a=this._readableState;(i.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}};Vt.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};Vt.prototype._destroy=function(t,e){za.prototype._destroy.call(this,t,function(n){e(n)})};function dP(t,e,n){if(e)return t.emit("error",e);if(n!=null&&t.push(n),t._writableState.length)throw new O4;if(t._transformState.transforming)throw new A4;return t.push(null)}});var hP=h((XZ,SP)=>{"use strict";SP.exports=wo;var _P=df();fn()(wo,_P);function wo(t){if(!(this instanceof wo))return new wo(t);_P.call(this,t)}wo.prototype._transform=function(t,e,n){n(null,t)}});var AP=h((JZ,yP)=>{"use strict";var Ef;function R4(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var mP=tr().codes,P4=mP.ERR_MISSING_ARGS,b4=mP.ERR_STREAM_DESTROYED;function TP(t){if(t)throw t}function M4(t){return t.setHeader&&typeof t.abort=="function"}function x4(t,e,n,i){i=R4(i);var a=!1;t.on("close",function(){a=!0}),Ef===void 0&&(Ef=ma()),Ef(t,{readable:e,writable:n},function(o){if(o)return i(o);a=!0,i()});var s=!1;return function(o){if(!a&&!s){if(s=!0,M4(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();i(o||new b4("pipe"))}}}function vP(t){t()}function L4(t,e){return t.pipe(e)}function I4(t){return!t.length||typeof t[t.length-1]!="function"?TP:t.pop()}function C4(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=I4(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new P4("streams");var a,s=e.map(function(o,r){var u=r<e.length-1,l=r>0;return x4(o,u,l,function(c){a||(a=c),c&&s.forEach(vP),!u&&(s.forEach(vP),i(a))})});return e.reduce(L4)}yP.exports=C4});var Ur=h((et,Do)=>{var Uo=L("stream");process.env.READABLE_STREAM==="disable"&&Uo?(Do.exports=Uo.Readable,Object.assign(Do.exports,Uo),Do.exports.Stream=Uo):(et=Do.exports=Qc(),et.Stream=Uo||et,et.Readable=et,et.Writable=ba(),et.Duplex=Cr(),et.Transform=df(),et.PassThrough=hP(),et.finished=ma(),et.pipeline=AP())});var yf=h((QZ,gP)=>{var vn=[],Vo=[],_f=function(){};function hf(t){return~vn.indexOf(t)?!1:(vn.push(t),!0)}function Tf(t){_f=t}function w4(t){for(var e=[],n=0;n<vn.length;n++){if(vn[n].async){e.push(vn[n]);continue}if(vn[n](t))return!0}return e.length?new Promise(function(a){Promise.all(e.map(function(o){return o(t)})).then(function(o){a(o.some(Boolean))})}):!1}function vf(t){return~Vo.indexOf(t)?!1:(Vo.push(t),!0)}function Sf(){_f.apply(_f,arguments)}function OP(t){for(var e=0;e<Vo.length;e++)t=Vo[e].apply(Vo[e],arguments);return t}function mf(t,e){var n=Object.prototype.hasOwnProperty;for(var i in e)n.call(e,i)&&(t[i]=e[i]);return t}function U4(t){return t.enabled=!1,t.modify=vf,t.set=Tf,t.use=hf,mf(function(){return!1},t)}function D4(t){function e(){var n=Array.prototype.slice.call(arguments,0);return Sf.call(Sf,t,OP(n,t)),!0}return t.enabled=!0,t.modify=vf,t.set=Tf,t.use=hf,mf(e,t)}gP.exports=function(e){return e.introduce=mf,e.enabled=w4,e.process=OP,e.modify=vf,e.write=Sf,e.nope=U4,e.yep=D4,e.set=Tf,e.use=hf,e}});var RP=h((ZZ,NP)=>{var V4=yf(),B4=V4(function t(e,n){return n=n||{},n.namespace=e,n.prod=!0,n.dev=!1,n.force||t.force?t.yep(n):t.nope(n)});NP.exports=B4});var bP=h((eee,PP)=>{"use strict";PP.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var xP=h((tee,MP)=>{MP.exports=function(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")}});var CP=h((ree,IP)=>{"use strict";var G4=xP(),k4=Array.prototype.concat,H4=Array.prototype.slice,LP=IP.exports=function(e){for(var n=[],i=0,a=e.length;i<a;i++){var s=e[i];G4(s)?n=k4.call(n,H4.call(s)):n.push(s)}return n};LP.wrap=function(t){return function(){return t(LP(arguments))}}});var VP=h((nee,DP)=>{var Bo=bP(),Go=CP(),wP=Object.hasOwnProperty,UP=Object.create(null);for(Xa in Bo)wP.call(Bo,Xa)&&(UP[Bo[Xa]]=Xa);var Xa,ze=DP.exports={to:{},get:{}};ze.get=function(t){var e=t.substring(0,3).toLowerCase(),n,i;switch(e){case"hsl":n=ze.get.hsl(t),i="hsl";break;case"hwb":n=ze.get.hwb(t),i="hwb";break;default:n=ze.get.rgb(t),i="rgb";break}return n?{model:i,value:n}:null};ze.get.rgb=function(t){if(!t)return null;var e=/^#([a-f0-9]{3,4})$/i,n=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,i=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,a=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,s=/^(\w+)$/,o=[0,0,0,1],r,u,l;if(r=t.match(n)){for(l=r[2],r=r[1],u=0;u<3;u++){var c=u*2;o[u]=parseInt(r.slice(c,c+2),16)}l&&(o[3]=parseInt(l,16)/255)}else if(r=t.match(e)){for(r=r[1],l=r[3],u=0;u<3;u++)o[u]=parseInt(r[u]+r[u],16);l&&(o[3]=parseInt(l+l,16)/255)}else if(r=t.match(i)){for(u=0;u<3;u++)o[u]=parseInt(r[u+1],0);r[4]&&(r[5]?o[3]=parseFloat(r[4])*.01:o[3]=parseFloat(r[4]))}else if(r=t.match(a)){for(u=0;u<3;u++)o[u]=Math.round(parseFloat(r[u+1])*2.55);r[4]&&(r[5]?o[3]=parseFloat(r[4])*.01:o[3]=parseFloat(r[4]))}else return(r=t.match(s))?r[1]==="transparent"?[0,0,0,0]:wP.call(Bo,r[1])?(o=Bo[r[1]],o[3]=1,o):null:null;for(u=0;u<3;u++)o[u]=sr(o[u],0,255);return o[3]=sr(o[3],0,1),o};ze.get.hsl=function(t){if(!t)return null;var e=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=t.match(e);if(n){var i=parseFloat(n[4]),a=(parseFloat(n[1])%360+360)%360,s=sr(parseFloat(n[2]),0,100),o=sr(parseFloat(n[3]),0,100),r=sr(isNaN(i)?1:i,0,1);return[a,s,o,r]}return null};ze.get.hwb=function(t){if(!t)return null;var e=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=t.match(e);if(n){var i=parseFloat(n[4]),a=(parseFloat(n[1])%360+360)%360,s=sr(parseFloat(n[2]),0,100),o=sr(parseFloat(n[3]),0,100),r=sr(isNaN(i)?1:i,0,1);return[a,s,o,r]}return null};ze.to.hex=function(){var t=Go(arguments);return"#"+Ja(t[0])+Ja(t[1])+Ja(t[2])+(t[3]<1?Ja(Math.round(t[3]*255)):"")};ze.to.rgb=function(){var t=Go(arguments);return t.length<4||t[3]===1?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"};ze.to.rgb.percent=function(){var t=Go(arguments),e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),i=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+e+"%, "+n+"%, "+i+"%)":"rgba("+e+"%, "+n+"%, "+i+"%, "+t[3]+")"};ze.to.hsl=function(){var t=Go(arguments);return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};ze.to.hwb=function(){var t=Go(arguments),e="";return t.length>=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};ze.to.keyword=function(t){return UP[t.slice(0,3)]};function sr(t,e,n){return Math.min(Math.max(e,t),n)}function Ja(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}});var GP=h((oee,BP)=>{"use strict";BP.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var Af=h((iee,YP)=>{var Dr=GP(),FP={};for(Qa in Dr)Dr.hasOwnProperty(Qa)&&(FP[Dr[Qa]]=Qa);var Qa,M=YP.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(Ue in M)if(M.hasOwnProperty(Ue)){if(!("channels"in M[Ue]))throw new Error("missing channels property: "+Ue);if(!("labels"in M[Ue]))throw new Error("missing channel labels property: "+Ue);if(M[Ue].labels.length!==M[Ue].channels)throw new Error("channel and label counts mismatch: "+Ue);kP=M[Ue].channels,HP=M[Ue].labels,delete M[Ue].channels,delete M[Ue].labels,Object.defineProperty(M[Ue],"channels",{value:kP}),Object.defineProperty(M[Ue],"labels",{value:HP})}var kP,HP,Ue;M.rgb.hsl=function(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255,a=Math.min(e,n,i),s=Math.max(e,n,i),o=s-a,r,u,l;return s===a?r=0:e===s?r=(n-i)/o:n===s?r=2+(i-e)/o:i===s&&(r=4+(e-n)/o),r=Math.min(r*60,360),r<0&&(r+=360),l=(a+s)/2,s===a?u=0:l<=.5?u=o/(s+a):u=o/(2-s-a),[r,u*100,l*100]};M.rgb.hsv=function(t){var e,n,i,a,s,o=t[0]/255,r=t[1]/255,u=t[2]/255,l=Math.max(o,r,u),c=l-Math.min(o,r,u),p=function(_){return(l-_)/6/c+1/2};return c===0?a=s=0:(s=c/l,e=p(o),n=p(r),i=p(u),o===l?a=i-n:r===l?a=1/3+e-i:u===l&&(a=2/3+n-e),a<0?a+=1:a>1&&(a-=1)),[a*360,s*100,l*100]};M.rgb.hwb=function(t){var e=t[0],n=t[1],i=t[2],a=M.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(n,i));return i=1-1/255*Math.max(e,Math.max(n,i)),[a,s*100,i*100]};M.rgb.cmyk=function(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255,a,s,o,r;return r=Math.min(1-e,1-n,1-i),a=(1-e-r)/(1-r)||0,s=(1-n-r)/(1-r)||0,o=(1-i-r)/(1-r)||0,[a*100,s*100,o*100,r*100]};function F4(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}M.rgb.keyword=function(t){var e=FP[t];if(e)return e;var n=1/0,i;for(var a in Dr)if(Dr.hasOwnProperty(a)){var s=Dr[a],o=F4(t,s);o<n&&(n=o,i=a)}return i};M.keyword.rgb=function(t){return Dr[t]};M.rgb.xyz=function(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92;var a=e*.4124+n*.3576+i*.1805,s=e*.2126+n*.7152+i*.0722,o=e*.0193+n*.1192+i*.9505;return[a*100,s*100,o*100]};M.rgb.lab=function(t){var e=M.rgb.xyz(t),n=e[0],i=e[1],a=e[2],s,o,r;return n/=95.047,i/=100,a/=108.883,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,s=116*i-16,o=500*(n-i),r=200*(i-a),[s,o,r]};M.hsl.rgb=function(t){var e=t[0]/360,n=t[1]/100,i=t[2]/100,a,s,o,r,u;if(n===0)return u=i*255,[u,u,u];i<.5?s=i*(1+n):s=i+n-i*n,a=2*i-s,r=[0,0,0];for(var l=0;l<3;l++)o=e+1/3*-(l-1),o<0&&o++,o>1&&o--,6*o<1?u=a+(s-a)*6*o:2*o<1?u=s:3*o<2?u=a+(s-a)*(2/3-o)*6:u=a,r[l]=u*255;return r};M.hsl.hsv=function(t){var e=t[0],n=t[1]/100,i=t[2]/100,a=n,s=Math.max(i,.01),o,r;return i*=2,n*=i<=1?i:2-i,a*=s<=1?s:2-s,r=(i+n)/2,o=i===0?2*a/(s+a):2*n/(i+n),[e,o*100,r*100]};M.hsv.rgb=function(t){var e=t[0]/60,n=t[1]/100,i=t[2]/100,a=Math.floor(e)%6,s=e-Math.floor(e),o=255*i*(1-n),r=255*i*(1-n*s),u=255*i*(1-n*(1-s));switch(i*=255,a){case 0:return[i,u,o];case 1:return[r,i,o];case 2:return[o,i,u];case 3:return[o,r,i];case 4:return[u,o,i];case 5:return[i,o,r]}};M.hsv.hsl=function(t){var e=t[0],n=t[1]/100,i=t[2]/100,a=Math.max(i,.01),s,o,r;return r=(2-n)*i,s=(2-n)*a,o=n*a,o/=s<=1?s:2-s,o=o||0,r/=2,[e,o*100,r*100]};M.hwb.rgb=function(t){var e=t[0]/360,n=t[1]/100,i=t[2]/100,a=n+i,s,o,r,u;a>1&&(n/=a,i/=a),s=Math.floor(6*e),o=1-i,r=6*e-s,s&1&&(r=1-r),u=n+r*(o-n);var l,c,p;switch(s){default:case 6:case 0:l=o,c=u,p=n;break;case 1:l=u,c=o,p=n;break;case 2:l=n,c=o,p=u;break;case 3:l=n,c=u,p=o;break;case 4:l=u,c=n,p=o;break;case 5:l=o,c=n,p=u;break}return[l*255,c*255,p*255]};M.cmyk.rgb=function(t){var e=t[0]/100,n=t[1]/100,i=t[2]/100,a=t[3]/100,s,o,r;return s=1-Math.min(1,e*(1-a)+a),o=1-Math.min(1,n*(1-a)+a),r=1-Math.min(1,i*(1-a)+a),[s*255,o*255,r*255]};M.xyz.rgb=function(t){var e=t[0]/100,n=t[1]/100,i=t[2]/100,a,s,o;return a=e*3.2406+n*-1.5372+i*-.4986,s=e*-.9689+n*1.8758+i*.0415,o=e*.0557+n*-.204+i*1.057,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[a*255,s*255,o*255]};M.xyz.lab=function(t){var e=t[0],n=t[1],i=t[2],a,s,o;return e/=95.047,n/=100,i/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,a=116*n-16,s=500*(e-n),o=200*(n-i),[a,s,o]};M.lab.xyz=function(t){var e=t[0],n=t[1],i=t[2],a,s,o;s=(e+16)/116,a=n/500+s,o=s-i/200;var r=Math.pow(s,3),u=Math.pow(a,3),l=Math.pow(o,3);return s=r>.008856?r:(s-16/116)/7.787,a=u>.008856?u:(a-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,a*=95.047,s*=100,o*=108.883,[a,s,o]};M.lab.lch=function(t){var e=t[0],n=t[1],i=t[2],a,s,o;return a=Math.atan2(i,n),s=a*360/2/Math.PI,s<0&&(s+=360),o=Math.sqrt(n*n+i*i),[e,o,s]};M.lch.lab=function(t){var e=t[0],n=t[1],i=t[2],a,s,o;return o=i/360*2*Math.PI,a=n*Math.cos(o),s=n*Math.sin(o),[e,a,s]};M.rgb.ansi16=function(t){var e=t[0],n=t[1],i=t[2],a=1 in arguments?arguments[1]:M.rgb.hsv(t)[2];if(a=Math.round(a/50),a===0)return 30;var s=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(e/255));return a===2&&(s+=60),s};M.hsv.ansi16=function(t){return M.rgb.ansi16(M.hsv.rgb(t),t[2])};M.rgb.ansi256=function(t){var e=t[0],n=t[1],i=t[2];if(e===n&&n===i)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var a=16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5);return a};M.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var n=(~~(t>50)+1)*.5,i=(e&1)*n*255,a=(e>>1&1)*n*255,s=(e>>2&1)*n*255;return[i,a,s]};M.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var n,i=Math.floor(t/36)/5*255,a=Math.floor((n=t%36)/6)/5*255,s=n%6/5*255;return[i,a,s]};M.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),n=e.toString(16).toUpperCase();return"000000".substring(n.length)+n};M.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var n=e[0];e[0].length===3&&(n=n.split("").map(function(r){return r+r}).join(""));var i=parseInt(n,16),a=i>>16&255,s=i>>8&255,o=i&255;return[a,s,o]};M.rgb.hcg=function(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255,a=Math.max(Math.max(e,n),i),s=Math.min(Math.min(e,n),i),o=a-s,r,u;return o<1?r=s/(1-o):r=0,o<=0?u=0:a===e?u=(n-i)/o%6:a===n?u=2+(i-e)/o:u=4+(e-n)/o+4,u/=6,u%=1,[u*360,o*100,r*100]};M.hsl.hcg=function(t){var e=t[1]/100,n=t[2]/100,i=1,a=0;return n<.5?i=2*e*n:i=2*e*(1-n),i<1&&(a=(n-.5*i)/(1-i)),[t[0],i*100,a*100]};M.hsv.hcg=function(t){var e=t[1]/100,n=t[2]/100,i=e*n,a=0;return i<1&&(a=(n-i)/(1-i)),[t[0],i*100,a*100]};M.hcg.rgb=function(t){var e=t[0]/360,n=t[1]/100,i=t[2]/100;if(n===0)return[i*255,i*255,i*255];var a=[0,0,0],s=e%1*6,o=s%1,r=1-o,u=0;switch(Math.floor(s)){case 0:a[0]=1,a[1]=o,a[2]=0;break;case 1:a[0]=r,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=o;break;case 3:a[0]=0,a[1]=r,a[2]=1;break;case 4:a[0]=o,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=r}return u=(1-n)*i,[(n*a[0]+u)*255,(n*a[1]+u)*255,(n*a[2]+u)*255]};M.hcg.hsv=function(t){var e=t[1]/100,n=t[2]/100,i=e+n*(1-e),a=0;return i>0&&(a=e/i),[t[0],a*100,i*100]};M.hcg.hsl=function(t){var e=t[1]/100,n=t[2]/100,i=n*(1-e)+.5*e,a=0;return i>0&&i<.5?a=e/(2*i):i>=.5&&i<1&&(a=e/(2*(1-i))),[t[0],a*100,i*100]};M.hcg.hwb=function(t){var e=t[1]/100,n=t[2]/100,i=e+n*(1-e);return[t[0],(i-e)*100,(1-i)*100]};M.hwb.hcg=function(t){var e=t[1]/100,n=t[2]/100,i=1-n,a=i-e,s=0;return a<1&&(s=(i-a)/(1-a)),[t[0],a*100,s*100]};M.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};M.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};M.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};M.gray.hsl=M.gray.hsv=function(t){return[0,0,t[0]]};M.gray.hwb=function(t){return[0,100,t[0]]};M.gray.cmyk=function(t){return[0,0,0,t[0]]};M.gray.lab=function(t){return[t[0],0,0]};M.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,n=(e<<16)+(e<<8)+e,i=n.toString(16).toUpperCase();return"000000".substring(i.length)+i};M.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}});var jP=h((aee,qP)=>{var Za=Af();function Y4(){for(var t={},e=Object.keys(Za),n=e.length,i=0;i<n;i++)t[e[i]]={distance:-1,parent:null};return t}function q4(t){var e=Y4(),n=[t];for(e[t].distance=0;n.length;)for(var i=n.pop(),a=Object.keys(Za[i]),s=a.length,o=0;o<s;o++){var r=a[o],u=e[r];u.distance===-1&&(u.distance=e[i].distance+1,u.parent=i,n.unshift(r))}return e}function j4(t,e){return function(n){return e(t(n))}}function $4(t,e){for(var n=[e[t].parent,t],i=Za[e[t].parent][t],a=e[t].parent;e[a].parent;)n.unshift(e[a].parent),i=j4(Za[e[a].parent][a],i),a=e[a].parent;return i.conversion=n,i}qP.exports=function(t){for(var e=q4(t),n={},i=Object.keys(e),a=i.length,s=0;s<a;s++){var o=i[s],r=e[o];r.parent!==null&&(n[o]=$4(o,e))}return n}});var KP=h((see,$P)=>{var Of=Af(),K4=jP(),mn={},W4=Object.keys(Of);function z4(t){var e=function(n){return n==null?n:(arguments.length>1&&(n=Array.prototype.slice.call(arguments)),t(n))};return"conversion"in t&&(e.conversion=t.conversion),e}function X4(t){var e=function(n){if(n==null)return n;arguments.length>1&&(n=Array.prototype.slice.call(arguments));var i=t(n);if(typeof i=="object")for(var a=i.length,s=0;s<a;s++)i[s]=Math.round(i[s]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}W4.forEach(function(t){mn[t]={},Object.defineProperty(mn[t],"channels",{value:Of[t].channels}),Object.defineProperty(mn[t],"labels",{value:Of[t].labels});var e=K4(t),n=Object.keys(e);n.forEach(function(i){var a=e[i];mn[t][i]=X4(a),mn[t][i].raw=z4(a)})});$P.exports=mn});var XP=h((uee,zP)=>{"use strict";var ko=VP(),Xe=KP(),Rf=[].slice,WP=["keyword","gray","hex"],gf={};Object.keys(Xe).forEach(function(t){gf[Rf.call(Xe[t].labels).sort().join("")]=t});var es={};function ye(t,e){if(!(this instanceof ye))return new ye(t,e);if(e&&e in WP&&(e=null),e&&!(e in Xe))throw new Error("Unknown model: "+e);var n,i;if(t==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof ye)this.model=t.model,this.color=t.color.slice(),this.valpha=t.valpha;else if(typeof t=="string"){var a=ko.get(t);if(a===null)throw new Error("Unable to parse color from string: "+t);this.model=a.model,i=Xe[this.model].channels,this.color=a.value.slice(0,i),this.valpha=typeof a.value[i]=="number"?a.value[i]:1}else if(t.length){this.model=e||"rgb",i=Xe[this.model].channels;var s=Rf.call(t,0,i);this.color=Nf(s,i),this.valpha=typeof t[i]=="number"?t[i]:1}else if(typeof t=="number")t&=16777215,this.model="rgb",this.color=[t>>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;var o=Object.keys(t);"alpha"in t&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);var r=o.sort().join("");if(!(r in gf))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=gf[r];var u=Xe[this.model].labels,l=[];for(n=0;n<u.length;n++)l.push(t[u[n]]);this.color=Nf(l)}if(es[this.model])for(i=Xe[this.model].channels,n=0;n<i;n++){var c=es[this.model][n];c&&(this.color[n]=c(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}ye.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(t){var e=this.model in ko.to?this:this.rgb();e=e.round(typeof t=="number"?t:1);var n=e.valpha===1?e.color:e.color.concat(this.valpha);return ko.to[e.model](n)},percentString:function(t){var e=this.rgb().round(typeof t=="number"?t:1),n=e.valpha===1?e.color:e.color.concat(this.valpha);return ko.to.rgb.percent(n)},array:function(){return this.valpha===1?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var t={},e=Xe[this.model].channels,n=Xe[this.model].labels,i=0;i<e;i++)t[n[i]]=this.color[i];return this.valpha!==1&&(t.alpha=this.valpha),t},unitArray:function(){var t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,this.valpha!==1&&t.push(this.valpha),t},unitObject:function(){var t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,this.valpha!==1&&(t.alpha=this.valpha),t},round:function(t){return t=Math.max(t||0,0),new ye(this.color.map(Q4(t)).concat(this.valpha),this.model)},alpha:function(t){return arguments.length?new ye(this.color.concat(Math.max(0,Math.min(1,t))),this.model):this.valpha},red:le("rgb",0,de(255)),green:le("rgb",1,de(255)),blue:le("rgb",2,de(255)),hue:le(["hsl","hsv","hsl","hwb","hcg"],0,function(t){return(t%360+360)%360}),saturationl:le("hsl",1,de(100)),lightness:le("hsl",2,de(100)),saturationv:le("hsv",1,de(100)),value:le("hsv",2,de(100)),chroma:le("hcg",1,de(100)),gray:le("hcg",2,de(100)),white:le("hwb",1,de(100)),wblack:le("hwb",2,de(100)),cyan:le("cmyk",0,de(100)),magenta:le("cmyk",1,de(100)),yellow:le("cmyk",2,de(100)),black:le("cmyk",3,de(100)),x:le("xyz",0,de(100)),y:le("xyz",1,de(100)),z:le("xyz",2,de(100)),l:le("lab",0,de(100)),a:le("lab",1),b:le("lab",2),keyword:function(t){return arguments.length?new ye(t):Xe[this.model].keyword(this.color)},hex:function(t){return arguments.length?new ye(t):ko.to.hex(this.rgb().round().color)},rgbNumber:function(){var t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity:function(){for(var t=this.rgb().color,e=[],n=0;n<t.length;n++){var i=t[n]/255;e[n]=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}return .2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),n=t.luminosity();return e>n?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},isDark:function(){var t=this.rgb().color,e=(t[0]*299+t[1]*587+t[2]*114)/1e3;return e<128},isLight:function(){return!this.isDark()},negate:function(){for(var t=this.rgb(),e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten:function(t){var e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken:function(t){var e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate:function(t){var e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate:function(t){var e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten:function(t){var e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken:function(t){var e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale:function(){var t=this.rgb().color,e=t[0]*.3+t[1]*.59+t[2]*.11;return ye.rgb(e,e,e)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var e=this.hsl(),n=e.color[0];return n=(n+t)%360,n=n<0?360+n:n,e.color[0]=n,e},mix:function(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);var n=t.rgb(),i=this.rgb(),a=e===void 0?.5:e,s=2*a-1,o=n.alpha()-i.alpha(),r=((s*o===-1?s:(s+o)/(1+s*o))+1)/2,u=1-r;return ye.rgb(r*n.red()+u*i.red(),r*n.green()+u*i.green(),r*n.blue()+u*i.blue(),n.alpha()*a+i.alpha()*(1-a))}};Object.keys(Xe).forEach(function(t){if(WP.indexOf(t)===-1){var e=Xe[t].channels;ye.prototype[t]=function(){if(this.model===t)return new ye(this);if(arguments.length)return new ye(arguments,t);var n=typeof arguments[e]=="number"?e:this.valpha;return new ye(Z4(Xe[this.model][t].raw(this.color)).concat(n),t)},ye[t]=function(n){return typeof n=="number"&&(n=Nf(Rf.call(arguments),e)),new ye(n,t)}}});function J4(t,e){return Number(t.toFixed(e))}function Q4(t){return function(e){return J4(e,t)}}function le(t,e,n){return t=Array.isArray(t)?t:[t],t.forEach(function(i){(es[i]||(es[i]=[]))[e]=n}),t=t[0],function(i){var a;return arguments.length?(n&&(i=n(i)),a=this[t](),a.color[e]=i,a):(a=this[t]().color[e],n&&(a=n(a)),a)}}function de(t){return function(e){return Math.max(0,Math.min(t,e))}}function Z4(t){return Array.isArray(t)?t:[t]}function Nf(t,e){for(var n=0;n<e;n++)typeof t[n]!="number"&&(t[n]=0);return t}zP.exports=ye});var QP=h((lee,JP)=>{"use strict";JP.exports=function(e){for(var n=0,i=0;n<e.length;i=e.charCodeAt(n++)+((i<<5)-i));var a=Math.floor(Math.abs(Math.sin(i)*1e4%1*16777216)).toString(16);return"#"+Array(6-a.length+1).join("0")+a}});var rb=h((cee,tb)=>{"use strict";var ZP=XP(),eb=QP();tb.exports=function(e,n){var i=e.split(n||":"),a=eb(i[0]);if(!i.length)return a;for(var s=0,o=i.length-1;s<o;s++)a=ZP(a).mix(ZP(eb(i[s+1]))).saturate(1).hex();return a}});var ob=h((fee,nb)=>{"use strict";function ct(t,e){if(e)return new ct(t).style(e);if(!(this instanceof ct))return new ct(t);this.text=t}ct.prototype.prefix="\x1B[";ct.prototype.suffix="m";ct.prototype.hex=function(e){e=e[0]==="#"?e.substring(1):e,e.length===3&&(e=e.split(""),e[5]=e[2],e[4]=e[2],e[3]=e[1],e[2]=e[1],e[1]=e[0],e=e.join(""));var n=e.substring(0,2),i=e.substring(2,4),a=e.substring(4,6);return[parseInt(n,16),parseInt(i,16),parseInt(a,16)]};ct.prototype.rgb=function(e,n,i){var a=e/255*5,s=n/255*5,o=i/255*5;return this.ansi(a,s,o)};ct.prototype.ansi=function(e,n,i){var a=Math.round(e),s=Math.round(n),o=Math.round(i);return 16+a*36+s*6+o};ct.prototype.reset=function(){return this.prefix+"39;49"+this.suffix};ct.prototype.style=function(e){return this.prefix+"38;5;"+this.rgb.apply(this,this.hex(e))+this.suffix+this.text+this.reset()};nb.exports=ct});var ab=h((pee,ib)=>{var e6=rb(),t6=ob();ib.exports=function(e,n){var i=n.namespace,a=n.colors!==!1?t6(i+":",e6(i)):i+":";return e[0]=a+" "+e[0],e}});var ub=h((dee,sb)=>{"use strict";sb.exports=function(e,n){if(!n)return!1;for(var i=n.split(/[\s,]+/),a=0;a<i.length;a++){if(n=i[a].replace("*",".*?"),n.charAt(0)==="-"){if(new RegExp("^"+n.substr(1)+"$").test(e))return!1;continue}if(new RegExp("^"+n+"$").test(e))return!0}return!1}});var cb=h((Eee,lb)=>{var r6=ub();lb.exports=function(e){return function(i){try{return r6(i,e())}catch{}return!1}}});var pb=h((_ee,fb)=>{var n6=cb();fb.exports=n6(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var Eb=h((See,db)=>{db.exports=function(t,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var Sb=h((hee,_b)=>{var o6=yf(),i6=L("tty").isatty(1),ts=o6(function t(e,n){return n=n||{},n.colors="colors"in n?n.colors:i6,n.namespace=e,n.prod=!1,n.dev=!0,!t.enabled(e)&&!(n.force||t.force)?t.nope(n):t.yep(n)});ts.modify(ab());ts.use(pb());ts.set(Eb());_b.exports=ts});var Ho=h((Tee,Pf)=>{process.env.NODE_ENV==="production"?Pf.exports=RP():Pf.exports=Sb()});var Tb=h((vee,hb)=>{"use strict";var bf=L("fs"),{StringDecoder:a6}=L("string_decoder"),{Stream:s6}=Ur();function u6(){}hb.exports=(t,e)=>{let n=Buffer.alloc(65536),i=new a6("utf8"),a=new s6,s="",o=0,r=0;return t.start===-1&&delete t.start,a.readable=!0,a.destroy=()=>{a.destroyed=!0,a.emit("end"),a.emit("close")},bf.open(t.file,"a+","0644",(u,l)=>{if(u){e?e(u):a.emit("error",u),a.destroy();return}(function c(){if(a.destroyed){bf.close(l,u6);return}return bf.read(l,n,0,n.length,o,(p,_)=>{if(p){e?e(p):a.emit("error",p),a.destroy();return}if(!_)return s&&((t.start==null||r>t.start)&&(e?e(null,s):a.emit("line",s)),r++,s=""),setTimeout(c,1e3);let f=i.write(n.slice(0,_));e||a.emit("data",f),f=(s+f).split(/\n+/);let S=f.length-1,v=0;for(;v<S;v++)(t.start==null||r>t.start)&&(e?e(null,f[v]):a.emit("line",f[v])),r++;return s=f[S],o+=_,c()})})()}),e?a.destroy:a}});var Ab=h((yee,yb)=>{"use strict";var Ye=L("fs"),Se=L("path"),vb=pP(),l6=L("zlib"),{MESSAGE:c6}=fe(),{Stream:f6,PassThrough:mb}=Ur(),p6=Sn(),ft=Ho()("winston:file"),d6=L("os"),E6=Tb();yb.exports=class extends p6{constructor(e={}){super(e),this.name=e.name||"file";function n(i,...a){a.slice(1).forEach(s=>{if(e[s])throw new Error(`Cannot set ${s} and ${i} together`)})}if(this._stream=new mb,this._stream.setMaxListeners(30),this._onError=this._onError.bind(this),e.filename||e.dirname)n("filename or dirname","stream"),this._basename=this.filename=e.filename?Se.basename(e.filename):"winston.log",this.dirname=e.dirname||Se.dirname(e.filename),this.options=e.options||{flags:"a"};else if(e.stream)console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),n("stream","filename","maxsize"),this._dest=this._stream.pipe(this._setupStream(e.stream)),this.dirname=Se.dirname(this._dest.path);else throw new Error("Cannot log to file without filename or stream.");this.maxsize=e.maxsize||null,this.rotationFormat=e.rotationFormat||!1,this.zippedArchive=e.zippedArchive||!1,this.maxFiles=e.maxFiles||null,this.eol=typeof e.eol=="string"?e.eol:d6.EOL,this.tailable=e.tailable||!1,this.lazy=e.lazy||!1,this._size=0,this._pendingSize=0,this._created=0,this._drain=!1,this._opening=!1,this._ending=!1,this._fileExist=!1,this.dirname&&this._createLogDirIfNotExist(this.dirname),this.lazy||this.open()}finishIfEnding(){this._ending&&(this._opening?this.once("open",()=>{this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())}):(this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())))}log(e,n=()=>{}){if(this.silent)return n(),!0;if(this._drain){this._stream.once("drain",()=>{this._drain=!1,this.log(e,n)});return}if(this._rotate){this._stream.once("rotate",()=>{this._rotate=!1,this.log(e,n)});return}if(this.lazy){if(!this._fileExist){this._opening||this.open(),this.once("open",()=>{this._fileExist=!0,this.log(e,n)});return}if(this._needsNewFile(this._pendingSize)){this._dest.once("close",()=>{this._opening||this.open(),this.once("open",()=>{this.log(e,n)})});return}}let i=`${e[c6]}${this.eol}`,a=Buffer.byteLength(i);function s(){if(this._size+=a,this._pendingSize-=a,ft("logged %s %s",this._size,i),this.emit("logged",e),!this._rotate&&!this._opening&&this._needsNewFile()){if(this.lazy){this._endStream(()=>{this.emit("fileclosed")});return}this._rotate=!0,this._endStream(()=>this._rotateFile())}}this._pendingSize+=a,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);let o=this._stream.write(i,s.bind(this));return o?n():(this._drain=!0,this._stream.once("drain",()=>{this._drain=!1,n()})),ft("written",o,this._drain),this.finishIfEnding(),o}query(e,n){typeof e=="function"&&(n=e,e={}),e=p(e);let i=Se.join(this.dirname,this.filename),a="",s=[],o=0,r=Ye.createReadStream(i,{encoding:"utf8"});r.on("error",_=>{if(r.readable&&r.destroy(),!!n)return _.code!=="ENOENT"?n(_):n(null,s)}),r.on("data",_=>{_=(a+_).split(/\n+/);let f=_.length-1,S=0;for(;S<f;S++)(!e.start||o>=e.start)&&u(_[S]),o++;a=_[f]}),r.on("close",()=>{a&&u(a,!0),e.order==="desc"&&(s=s.reverse()),n&&n(null,s)});function u(_,f){try{let S=JSON.parse(_);c(S)&&l(S)}catch(S){f||r.emit("error",S)}}function l(_){if(e.rows&&s.length>=e.rows&&e.order!=="desc"){r.readable&&r.destroy();return}e.fields&&(_=e.fields.reduce((f,S)=>(f[S]=_[S],f),{})),e.order==="desc"&&s.length>=e.rows&&s.shift(),s.push(_)}function c(_){if(!_||typeof _!="object")return;let f=new Date(_.timestamp);if(!(e.from&&f<e.from||e.until&&f>e.until||e.level&&e.level!==_.level))return!0}function p(_){return _=_||{},_.rows=_.rows||_.limit||10,_.start=_.start||0,_.until=_.until||new Date,typeof _.until!="object"&&(_.until=new Date(_.until)),_.from=_.from||_.until-24*60*60*1e3,typeof _.from!="object"&&(_.from=new Date(_.from)),_.order=_.order||"desc",_}}stream(e={}){let n=Se.join(this.dirname,this.filename),i=new f6,a={file:n,start:e.start};return i.destroy=E6(a,(s,o)=>{if(s)return i.emit("error",s);try{i.emit("data",o),o=JSON.parse(o),i.emit("log",o)}catch(r){i.emit("error",r)}}),i}open(){this.filename&&(this._opening||(this._opening=!0,this.stat((e,n)=>{if(e)return this.emit("error",e);ft("stat done: %s { size: %s }",this.filename,n),this._size=n,this._dest=this._createStream(this._stream),this._opening=!1,this.once("open",()=>{this._stream.eventNames().includes("rotate")?this._stream.emit("rotate"):this._rotate=!1})})))}stat(e){let n=this._getFile(),i=Se.join(this.dirname,n);Ye.stat(i,(a,s)=>{if(a&&a.code==="ENOENT")return ft("ENOENT\xA0ok",i),this.filename=n,e(null,0);if(a)return ft(`err ${a.code} ${i}`),e(a);if(!s||this._needsNewFile(s.size))return this._incFile(()=>this.stat(e));this.filename=n,e(null,s.size)})}close(e){this._stream&&this._stream.end(()=>{e&&e(),this.emit("flush"),this.emit("closed")})}_needsNewFile(e){return e=e||this._size,this.maxsize&&e>=this.maxsize}_onError(e){this.emit("error",e)}_setupStream(e){return e.on("error",this._onError),e}_cleanupStream(e){return e.removeListener("error",this._onError),e.destroy(),e}_rotateFile(){this._incFile(()=>this.open())}_endStream(e=()=>{}){this._dest?(this._stream.unpipe(this._dest),this._dest.end(()=>{this._cleanupStream(this._dest),e()})):e()}_createStream(e){let n=Se.join(this.dirname,this.filename);ft("create stream start",n,this.options);let i=Ye.createWriteStream(n,this.options).on("error",a=>ft(a)).on("close",()=>ft("close",i.path,i.bytesWritten)).on("open",()=>{ft("file open ok",n),this.emit("open",n),e.pipe(i),this.rotatedWhileOpening&&(this._stream=new mb,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(i),e.end())});return ft("create stream ok",n),i}_incFile(e){ft("_incFile",this.filename);let n=Se.extname(this._basename),i=Se.basename(this._basename,n),a=[];this.zippedArchive&&a.push(function(s){let o=this._created>0&&!this.tailable?this._created:"";this._compressFile(Se.join(this.dirname,`${i}${o}${n}`),Se.join(this.dirname,`${i}${o}${n}.gz`),s)}.bind(this)),a.push(function(s){this.tailable?this._checkMaxFilesTailable(n,i,s):(this._created+=1,this._checkMaxFilesIncrementing(n,i,s))}.bind(this)),vb(a,e)}_getFile(){let e=Se.extname(this._basename),n=Se.basename(this._basename,e),i=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?`${n}${i}${e}`:`${n}${e}`}_checkMaxFilesIncrementing(e,n,i){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate(i);let a=this._created-this.maxFiles,s=a!==0?a:"",o=this.zippedArchive?".gz":"",r=`${n}${s}${e}${o}`,u=Se.join(this.dirname,r);Ye.unlink(u,i)}_checkMaxFilesTailable(e,n,i){let a=[];if(!this.maxFiles)return;let s=this.zippedArchive?".gz":"";for(let o=this.maxFiles-1;o>1;o--)a.push(function(r,u){let l=`${n}${r-1}${e}${s}`,c=Se.join(this.dirname,l);Ye.exists(c,p=>{if(!p)return u(null);l=`${n}${r}${e}${s}`,Ye.rename(c,Se.join(this.dirname,l),u)})}.bind(this,o));vb(a,()=>{Ye.rename(Se.join(this.dirname,`${n}${e}${s}`),Se.join(this.dirname,`${n}1${e}${s}`),i)})}_compressFile(e,n,i){Ye.access(e,Ye.F_OK,a=>{if(a)return i();var s=l6.createGzip(),o=Ye.createReadStream(e),r=Ye.createWriteStream(n);r.on("finish",()=>{Ye.unlink(e,i)}),o.pipe(s).pipe(r)})}_createLogDirIfNotExist(e){Ye.existsSync(e)||Ye.mkdirSync(e,{recursive:!0})}}});var gb=h((Oee,Ob)=>{"use strict";var _6=L("http"),S6=L("https"),{Stream:h6}=Ur(),T6=Sn(),{configure:v6}=yo();Ob.exports=class extends T6{constructor(e={}){super(e),this.options=e,this.name=e.name||"http",this.ssl=!!e.ssl,this.host=e.host||"localhost",this.port=e.port,this.auth=e.auth,this.path=e.path||"",this.maximumDepth=e.maximumDepth,this.agent=e.agent,this.headers=e.headers||{},this.headers["content-type"]="application/json",this.batch=e.batch||!1,this.batchInterval=e.batchInterval||5e3,this.batchCount=e.batchCount||10,this.batchOptions=[],this.batchTimeoutID=-1,this.batchCallback={},this.port||(this.port=this.ssl?443:80)}log(e,n){this._request(e,null,null,(i,a)=>{a&&a.statusCode!==200&&(i=new Error(`Invalid HTTP Status Code: ${a.statusCode}`)),i?this.emit("warn",i):this.emit("logged",e)}),n&&setImmediate(n)}query(e,n){typeof e=="function"&&(n=e,e={}),e={method:"query",params:this.normalizeQuery(e)};let i=e.params.auth||null;delete e.params.auth;let a=e.params.path||null;delete e.params.path,this._request(e,i,a,(s,o,r)=>{if(o&&o.statusCode!==200&&(s=new Error(`Invalid HTTP Status Code: ${o.statusCode}`)),s)return n(s);if(typeof r=="string")try{r=JSON.parse(r)}catch(u){return n(u)}n(null,r)})}stream(e={}){let n=new h6;e={method:"stream",params:e};let i=e.params.path||null;delete e.params.path;let a=e.params.auth||null;delete e.params.auth;let s="",o=this._request(e,a,i);return n.destroy=()=>o.destroy(),o.on("data",r=>{r=(s+r).split(/\n+/);let u=r.length-1,l=0;for(;l<u;l++)try{n.emit("log",JSON.parse(r[l]))}catch(c){n.emit("error",c)}s=r[u]}),o.on("error",r=>n.emit("error",r)),n}_request(e,n,i,a){e=e||{},n=n||this.auth,i=i||this.path||"",this.batch?this._doBatch(e,a,n,i):this._doRequest(e,a,n,i)}_doBatch(e,n,i,a){if(this.batchOptions.push(e),this.batchOptions.length===1){let s=this;this.batchCallback=n,this.batchTimeoutID=setTimeout(function(){s.batchTimeoutID=-1,s._doBatchRequest(s.batchCallback,i,a)},this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,i,a)}_doBatchRequest(e,n,i){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);let a=this.batchOptions.slice();this.batchOptions=[],this._doRequest(a,e,n,i)}_doRequest(e,n,i,a){let s=Object.assign({},this.headers);i&&i.bearer&&(s.Authorization=`Bearer ${i.bearer}`);let o=(this.ssl?S6:_6).request({...this.options,method:"POST",host:this.host,port:this.port,path:`/${a.replace(/^\//,"")}`,headers:s,auth:i&&i.username&&i.password?`${i.username}:${i.password}`:"",agent:this.agent});o.on("error",n),o.on("response",u=>u.on("end",()=>n(null,u)).resume());let r=v6({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});o.end(Buffer.from(r(e,this.options.replacer),"utf8"))}}});var Mf=h((gee,Nb)=>{"use strict";var yt=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";yt.writable=t=>yt(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";yt.readable=t=>yt(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";yt.duplex=t=>yt.writable(t)&&yt.readable(t);yt.transform=t=>yt.duplex(t)&&typeof t._transform=="function";Nb.exports=yt});var Pb=h((Ree,Rb)=>{"use strict";var m6=Mf(),{MESSAGE:y6}=fe(),A6=L("os"),O6=Sn();Rb.exports=class extends O6{constructor(e={}){if(super(e),!e.stream||!m6(e.stream))throw new Error("options.stream is required.");this._stream=e.stream,this._stream.setMaxListeners(1/0),this.isObjectMode=e.stream._writableState.objectMode,this.eol=typeof e.eol=="string"?e.eol:A6.EOL}log(e,n){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode){this._stream.write(e),n&&n();return}this._stream.write(`${e[y6]}${this.eol}`),n&&n()}}});var bb=h(Fo=>{"use strict";Object.defineProperty(Fo,"Console",{configurable:!0,enumerable:!0,get(){return xR()}});Object.defineProperty(Fo,"File",{configurable:!0,enumerable:!0,get(){return Ab()}});Object.defineProperty(Fo,"Http",{configurable:!0,enumerable:!0,get(){return gb()}});Object.defineProperty(Fo,"Stream",{configurable:!0,enumerable:!0,get(){return Pb()}})});var ns=h(Yo=>{"use strict";var rs=bc(),{configs:xf}=fe();Yo.cli=rs.levels(xf.cli);Yo.npm=rs.levels(xf.npm);Yo.syslog=rs.levels(xf.syslog);Yo.addColors=rs.levels});var xb=h((os,Mb)=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});var g6=Ia(),N6=Vr(g6),R6=Fa(),P6=Vr(R6),b6=pf(),M6=Vr(b6),x6=lf(),L6=Vr(x6),I6=cf(),C6=Vr(I6),w6=wr(),U6=Vr(w6),D6=Tn(),V6=Vr(D6);function Vr(t){return t&&t.__esModule?t:{default:t}}function B6(t,e,n){n=(0,L6.default)(n);var i=0,a=0,{length:s}=t,o=!1;s===0&&n(null);function r(u,l){u===!1&&(o=!0),o!==!0&&(u?n(u):(++a===s||l===P6.default)&&n(null))}for(;i<s;i++)e(t[i],i,(0,C6.default)(r))}function G6(t,e,n){return(0,M6.default)(t,1/0,e,n)}function k6(t,e,n){var i=(0,N6.default)(t)?B6:G6;return i(t,(0,U6.default)(e),n)}os.default=(0,V6.default)(k6,3);Mb.exports=os.default});var Ib=h((is,Lb)=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.default=H6;function H6(t){return(e,n,i)=>t(e,i)}Lb.exports=is.default});var us=h((ss,Cb)=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});var F6=xb(),Y6=as(F6),q6=Ib(),j6=as(q6),$6=wr(),K6=as($6),W6=Tn(),z6=as(W6);function as(t){return t&&t.__esModule?t:{default:t}}function X6(t,e,n){return(0,Y6.default)(t,(0,j6.default)((0,K6.default)(e)),n)}ss.default=(0,z6.default)(X6,3);Cb.exports=ss.default});var Ub=h((Mee,wb)=>{"use strict";var J6=Object.prototype.toString;wb.exports=function(e){if(typeof e.displayName=="string"&&e.constructor.name)return e.displayName;if(typeof e.name=="string"&&e.name)return e.name;if(typeof e=="object"&&e.constructor&&typeof e.constructor.name=="string")return e.constructor.name;var n=e.toString(),i=J6.call(e).slice(8,-1);return i==="Function"?n=n.substring(n.indexOf("(")+1,n.indexOf(")")):n=i,n||"anonymous"}});var Lf=h((xee,Db)=>{"use strict";var Q6=Ub();Db.exports=function(e){var n=0,i;function a(){return n||(n=1,i=e.apply(this,arguments),e=null),i}return a.displayName=Q6(e),a}});var If=h(jo=>{jo.get=function(t){var e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var n={},i=Error.prepareStackTrace;Error.prepareStackTrace=function(s,o){return o},Error.captureStackTrace(n,t||jo.get);var a=n.stack;return Error.prepareStackTrace=i,Error.stackTraceLimit=e,a};jo.parse=function(t){if(!t.stack)return[];var e=this,n=t.stack.split(`
|
35
|
+
`).slice(1);return n.map(function(i){if(i.match(/^\s*[-]{4,}$/))return e._createParsedCallSite({fileName:i,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var a=i.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(a){var s=null,o=null,r=null,u=null,l=null,c=a[5]==="native";if(a[1]){r=a[1];var p=r.lastIndexOf(".");if(r[p-1]=="."&&p--,p>0){s=r.substr(0,p),o=r.substr(p+1);var _=s.indexOf(".Module");_>0&&(r=r.substr(_+1),s=s.substr(0,_))}u=null}o&&(u=s,l=o),o==="<anonymous>"&&(l=null,r=null);var f={fileName:a[2]||null,lineNumber:parseInt(a[3],10)||null,functionName:r,typeName:u,methodName:l,columnNumber:parseInt(a[4],10)||null,native:c};return e._createParsedCallSite(f)}}).filter(function(i){return!!i})};function qo(t){for(var e in t)this[e]=t[e]}var Z6=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],e$=["topLevel","eval","native","constructor"];Z6.forEach(function(t){qo.prototype[t]=null,qo.prototype["get"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});e$.forEach(function(t){qo.prototype[t]=!1,qo.prototype["is"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});jo._createParsedCallSite=function(t){return new qo(t)}});var Bb=h((Cee,Vb)=>{"use strict";var{Writable:t$}=Ur();Vb.exports=class extends t${constructor(e){if(super({objectMode:!0}),!e)throw new Error("ExceptionStream requires a TransportStream instance.");this.handleExceptions=!0,this.transport=e}_write(e,n,i){return e.exception?this.transport.log(e,i):(i(),!0)}}});var wf=h((Uee,Hb)=>{"use strict";var Gb=L("os"),r$=us(),Cf=Ho()("winston:exception"),n$=Lf(),kb=If(),o$=Bb();Hb.exports=class{constructor(e){if(!e)throw new Error("Logger is required to handle exceptions");this.logger=e,this.handlers=new Map}handle(...e){e.forEach(n=>{if(Array.isArray(n))return n.forEach(i=>this._addHandler(i));this._addHandler(n)}),this.catcher||(this.catcher=this._uncaughtException.bind(this),process.on("uncaughtException",this.catcher))}unhandle(){this.catcher&&(process.removeListener("uncaughtException",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(e=>this.logger.unpipe(e)))}getAllInfo(e){let n=null;return e&&(n=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`uncaughtException: ${n||"(no error message)"}`,e&&e.stack||" No stack trace"].join(`
|
36
|
+
`),stack:e&&e.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:Gb.loadavg(),uptime:Gb.uptime()}}getTrace(e){return(e?kb.parse(e):kb.get()).map(i=>({column:i.getColumnNumber(),file:i.getFileName(),function:i.getFunctionName(),line:i.getLineNumber(),method:i.getMethodName(),native:i.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleExceptions=!0;let n=new o$(e);this.handlers.set(e,n),this.logger.pipe(n)}}_uncaughtException(e){let n=this.getAllInfo(e),i=this._getExceptionHandlers(),a=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,s;!i.length&&a&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),a=!1);function o(){Cf("doExit",a),Cf("process._exiting",process._exiting),a&&!process._exiting&&(s&&clearTimeout(s),process.exit(1))}if(!i||i.length===0)return process.nextTick(o);r$(i,(r,u)=>{let l=n$(u),c=r.transport||r;function p(_){return()=>{Cf(_),l()}}c._ending=!0,c.once("finish",p("finished")),c.once("error",p("error"))},()=>a&&o()),this.logger.log(n),a&&(s=setTimeout(o,3e3))}_getExceptionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleExceptions)}}});var Yb=h((Vee,Fb)=>{"use strict";var{Writable:i$}=Ur();Fb.exports=class extends i${constructor(e){if(super({objectMode:!0}),!e)throw new Error("RejectionStream requires a TransportStream instance.");this.handleRejections=!0,this.transport=e}_write(e,n,i){return e.rejection?this.transport.log(e,i):(i(),!0)}}});var Df=h((Gee,$b)=>{"use strict";var qb=L("os"),a$=us(),Uf=Ho()("winston:rejection"),s$=Lf(),jb=If(),u$=Yb();$b.exports=class{constructor(e){if(!e)throw new Error("Logger is required to handle rejections");this.logger=e,this.handlers=new Map}handle(...e){e.forEach(n=>{if(Array.isArray(n))return n.forEach(i=>this._addHandler(i));this._addHandler(n)}),this.catcher||(this.catcher=this._unhandledRejection.bind(this),process.on("unhandledRejection",this.catcher))}unhandle(){this.catcher&&(process.removeListener("unhandledRejection",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(e=>this.logger.unpipe(e)))}getAllInfo(e){let n=null;return e&&(n=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`unhandledRejection: ${n||"(no error message)"}`,e&&e.stack||" No stack trace"].join(`
|
37
|
+
`),stack:e&&e.stack,rejection:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:qb.loadavg(),uptime:qb.uptime()}}getTrace(e){return(e?jb.parse(e):jb.get()).map(i=>({column:i.getColumnNumber(),file:i.getFileName(),function:i.getFunctionName(),line:i.getLineNumber(),method:i.getMethodName(),native:i.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleRejections=!0;let n=new u$(e);this.handlers.set(e,n),this.logger.pipe(n)}}_unhandledRejection(e){let n=this.getAllInfo(e),i=this._getRejectionHandlers(),a=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,s;!i.length&&a&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),a=!1);function o(){Uf("doExit",a),Uf("process._exiting",process._exiting),a&&!process._exiting&&(s&&clearTimeout(s),process.exit(1))}if(!i||i.length===0)return process.nextTick(o);a$(i,(r,u)=>{let l=s$(u),c=r.transport||r;function p(_){return()=>{Uf(_),l()}}c._ending=!0,c.once("finish",p("finished")),c.once("error",p("error"))},()=>a&&o()),this.logger.log(n),a&&(s=setTimeout(o,3e3))}_getRejectionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleRejections)}}});var Wb=h((kee,Kb)=>{"use strict";var Vf=class{constructor(e){let n=ls();if(typeof e!="object"||Array.isArray(e)||!(e instanceof n))throw new Error("Logger is required for profiling");this.logger=e,this.start=Date.now()}done(...e){typeof e[e.length-1]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),e.pop());let n=typeof e[e.length-1]=="object"?e.pop():{};return n.level=n.level||"info",n.durationMs=Date.now()-this.start,this.logger.write(n)}};Kb.exports=Vf});var ls=h((Hee,Qb)=>{"use strict";var{Stream:l$,Transform:c$}=Ur(),zb=us(),{LEVEL:At,SPLAT:Xb}=fe(),Jb=Mf(),f$=wf(),p$=Df(),d$=af(),E$=Wb(),{warn:_$}=Mc(),S$=ns(),h$=/%[scdjifoO%]/g,cs=class extends c${constructor(e){super({objectMode:!0}),this.configure(e)}child(e){let n=this;return Object.create(n,{write:{value:function(i){let a=Object.assign({},e,i);i instanceof Error&&(a.stack=i.stack,a.message=i.message),n.write(a)}}})}configure({silent:e,format:n,defaultMeta:i,levels:a,level:s="info",exitOnError:o=!0,transports:r,colors:u,emitErrs:l,formatters:c,padLevels:p,rewriters:_,stripColors:f,exceptionHandlers:S,rejectionHandlers:v}={}){if(this.transports.length&&this.clear(),this.silent=e,this.format=n||this.format||Ac()(),this.defaultMeta=i||null,this.levels=a||this.levels||S$.npm.levels,this.level=s,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new f$(this),this.rejections=new p$(this),this.profilers={},this.exitOnError=o,r&&(r=Array.isArray(r)?r:[r],r.forEach(T=>this.add(T))),u||l||c||p||_||f)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
|
38
|
+
`));S&&this.exceptions.handle(S),v&&this.rejections.handle(v)}isLevelEnabled(e){let n=Bf(this.levels,e);if(n===null)return!1;let i=Bf(this.levels,this.level);return i===null?!1:!this.transports||this.transports.length===0?i>=n:this.transports.findIndex(s=>{let o=Bf(this.levels,s.level);return o===null&&(o=i),o>=n})!==-1}log(e,n,...i){if(arguments.length===1)return e[At]=e.level,this._addDefaultMeta(e),this.write(e),this;if(arguments.length===2)return n&&typeof n=="object"?(n[At]=n.level=e,this._addDefaultMeta(n),this.write(n),this):(n={[At]:e,level:e,message:n},this._addDefaultMeta(n),this.write(n),this);let[a]=i;if(typeof a=="object"&&a!==null&&!(n&&n.match&&n.match(h$))){let o=Object.assign({},this.defaultMeta,a,{[At]:e,[Xb]:i,level:e,message:n});return a.message&&(o.message=`${o.message} ${a.message}`),a.stack&&(o.stack=a.stack),this.write(o),this}return this.write(Object.assign({},this.defaultMeta,{[At]:e,[Xb]:i,level:e,message:n})),this}_transform(e,n,i){if(this.silent)return i();e[At]||(e[At]=e.level),!this.levels[e[At]]&&this.levels[e[At]]!==0&&console.error("[winston] Unknown logger level: %s",e[At]),this._readableState.pipes||console.error("[winston] Attempt to write logs with no transports, which can increase memory usage: %j",e);try{this.push(this.format.transform(e,this.format.options))}finally{this._writableState.sync=!1,i()}}_final(e){let n=this.transports.slice();zb(n,(i,a)=>{if(!i||i.finished)return setImmediate(a);i.once("finish",a),i.end()},e)}add(e){let n=!Jb(e)||e.log.length>2?new d$({transport:e}):e;if(!n._writableState||!n._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",n),this._onEvent("warn",n),this.pipe(n),e.handleExceptions&&this.exceptions.handle(),e.handleRejections&&this.rejections.handle(),this}remove(e){if(!e)return this;let n=e;return(!Jb(e)||e.log.length>2)&&(n=this.transports.filter(i=>i.transport===e)[0]),n&&this.unpipe(n),this}clear(){return this.unpipe(),this}close(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}setLevels(){_$.deprecated("setLevels")}query(e,n){typeof e=="function"&&(n=e,e={}),e=e||{};let i={},a=Object.assign({},e.query||{});function s(r,u){e.query&&typeof r.formatQuery=="function"&&(e.query=r.formatQuery(a)),r.query(e,(l,c)=>{if(l)return u(l);typeof r.formatResults=="function"&&(c=r.formatResults(c,e.format)),u(null,c)})}function o(r,u){s(r,(l,c)=>{u&&(c=l||c,c&&(i[r.name]=c),u()),u=null})}zb(this.transports.filter(r=>!!r.query),o,()=>n(null,i))}stream(e={}){let n=new l$,i=[];return n._streams=i,n.destroy=()=>{let a=i.length;for(;a--;)i[a].destroy()},this.transports.filter(a=>!!a.stream).forEach(a=>{let s=a.stream(e);s&&(i.push(s),s.on("log",o=>{o.transport=o.transport||[],o.transport.push(a.name),n.emit("log",o)}),s.on("error",o=>{o.transport=o.transport||[],o.transport.push(a.name),n.emit("error",o)}))}),n}startTimer(){return new E$(this)}profile(e,...n){let i=Date.now();if(this.profilers[e]){let a=this.profilers[e];delete this.profilers[e],typeof n[n.length-2]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),n.pop());let s=typeof n[n.length-1]=="object"?n.pop():{};return s.level=s.level||"info",s.durationMs=i-a,s.message=s.message||e,this.write(s)}return this.profilers[e]=i,this}handleExceptions(...e){console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),this.exceptions.handle(...e)}unhandleExceptions(...e){console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),this.exceptions.unhandle(...e)}cli(){throw new Error(["Logger.cli() was removed in winston@3.0.0","Use a custom winston.formats.cli() instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
|
39
|
+
`))}_onEvent(e,n){function i(a){e==="error"&&!this.transports.includes(n)&&this.add(n),this.emit(e,a,n)}n["__winston"+e]||(n["__winston"+e]=i.bind(this),n.on(e,n["__winston"+e]))}_addDefaultMeta(e){this.defaultMeta&&Object.assign(e,this.defaultMeta)}};function Bf(t,e){let n=t[e];return!n&&n!==0?null:n}Object.defineProperty(cs.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:t}=this._readableState;return Array.isArray(t)?t:[t].filter(Boolean)}});Qb.exports=cs});var Gf=h((Fee,Zb)=>{"use strict";var{LEVEL:T$}=fe(),v$=ns(),m$=ls(),y$=Ho()("winston:create-logger");function A$(t){return"is"+t.charAt(0).toUpperCase()+t.slice(1)+"Enabled"}Zb.exports=function(t={}){t.levels=t.levels||v$.npm.levels;class e extends m${constructor(a){super(a)}}let n=new e(t);return Object.keys(t.levels).forEach(function(i){if(y$('Define prototype method for "%s"',i),i==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}e.prototype[i]=function(...a){let s=this||n;if(a.length===1){let[o]=a,r=o&&o.message&&o||{message:o};return r.level=r[T$]=i,s._addDefaultMeta(r),s.write(r),this||n}return a.length===0?(s.log(i,""),s):s.log(i,...a)},e.prototype[A$(i)]=function(){return(this||n).isLevelEnabled(i)}}),n}});var t0=h((qee,e0)=>{"use strict";var O$=Gf();e0.exports=class{constructor(e={}){this.loggers=new Map,this.options=e}add(e,n){if(!this.loggers.has(e)){n=Object.assign({},n||this.options);let i=n.transports||this.options.transports;i?n.transports=Array.isArray(i)?i.slice():[i]:n.transports=[];let a=O$(n);a.on("close",()=>this._delete(e)),this.loggers.set(e,a)}return this.loggers.get(e)}get(e,n){return this.add(e,n)}has(e){return!!this.loggers.has(e)}close(e){if(e)return this._removeLogger(e);this.loggers.forEach((n,i)=>this._removeLogger(i))}_removeLogger(e){if(!this.loggers.has(e))return;this.loggers.get(e).close(),this._delete(e)}_delete(e){this.loggers.delete(e)}}});var n0=h(Q=>{"use strict";var r0=bc(),{warn:$o}=Mc();Q.version=bN().version;Q.transports=bb();Q.config=ns();Q.addColors=r0.levels;Q.format=r0.format;Q.createLogger=Gf();Q.Logger=ls();Q.ExceptionHandler=wf();Q.RejectionHandler=Df();Q.Container=t0();Q.Transport=Sn();Q.loggers=new Q.Container;var Ot=Q.createLogger();Object.keys(Q.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(t=>Q[t]=(...e)=>Ot[t](...e));Object.defineProperty(Q,"level",{get(){return Ot.level},set(t){Ot.level=t}});Object.defineProperty(Q,"exceptions",{get(){return Ot.exceptions}});Object.defineProperty(Q,"rejections",{get(){return Ot.rejections}});["exitOnError"].forEach(t=>{Object.defineProperty(Q,t,{get(){return Ot[t]},set(e){Ot[t]=e}})});Object.defineProperty(Q,"default",{get(){return{exceptionHandlers:Ot.exceptionHandlers,rejectionHandlers:Ot.rejectionHandlers,transports:Ot.transports}}});$o.deprecated(Q,"setLevels");$o.forFunctions(Q,"useFormat",["cli"]);$o.forProperties(Q,"useFormat",["padLevels","stripColors"]);$o.forFunctions(Q,"deprecated",["addRewriter","addFilter","clone","extend"]);$o.forProperties(Q,"deprecated",["emitErrs","levelLength"])});var g$,N$,R$,fs,ps,i0,a0=m(()=>{g$="exception.type",N$="exception.message",R$="exception.stacktrace",fs=g$,ps=N$,i0=R$});var s0=m(()=>{a0()});var P$,b$,M$,x$,L$,u0,ds,Ko,Wo,zo,I$,l0,c0=m(()=>{P$="process.runtime.name",b$="service.name",M$="telemetry.sdk.name",x$="telemetry.sdk.language",L$="telemetry.sdk.version",u0=P$,ds=b$,Ko=M$,Wo=x$,zo=L$,I$="nodejs",l0=I$});var f0=m(()=>{c0()});var p0=m(()=>{});var d0=m(()=>{});var Xo=m(()=>{s0();f0();p0();d0()});function yn(t){return t.setValue(kf,!0)}function E0(t){return t.deleteValue(kf)}function be(t){return t.getValue(kf)===!0}var kf,Jo=m(()=>{b();kf=Xr("OpenTelemetry SDK Context Key SUPPRESS_TRACING")});var _0,Es,An,_s,S0,h0,T0,Hf=m(()=>{_0="=",Es=";",An=",",_s="baggage",S0=180,h0=4096,T0=8192});function Ss(t){return t.reduce(function(e,n){var i=""+e+(e!==""?An:"")+n;return i.length>T0?e:i},"")}function hs(t){return t.getAllEntries().map(function(e){var n=C$(e,2),i=n[0],a=n[1],s=encodeURIComponent(i)+"="+encodeURIComponent(a.value);return a.metadata!==void 0&&(s+=Es+a.metadata.toString()),s})}function Qo(t){var e=t.split(Es);if(!(e.length<=0)){var n=e.shift();if(n){var i=n.indexOf(_0);if(!(i<=0)){var a=decodeURIComponent(n.substring(0,i).trim()),s=decodeURIComponent(n.substring(i+1).trim()),o;return e.length>0&&(o=nE(e.join(Es))),{key:a,value:s,metadata:o}}}}}function v0(t){return typeof t!="string"||t.length===0?{}:t.split(An).map(function(e){return Qo(e)}).filter(function(e){return e!==void 0&&e.value.length>0}).reduce(function(e,n){return e[n.key]=n.value,e},{})}var C$,Ff=m(()=>{b();Hf();C$=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}});var Ts,m0=m(()=>{b();Jo();Hf();Ff();Ts=function(){function t(){}return t.prototype.inject=function(e,n,i){var a=st.getBaggage(e);if(!(!a||be(e))){var s=hs(a).filter(function(r){return r.length<=h0}).slice(0,S0),o=Ss(s);o.length>0&&i.set(n,_s,o)}},t.prototype.extract=function(e,n,i){var a=i.get(n,_s),s=Array.isArray(a)?a.join(An):a;if(!s)return e;var o={};if(s.length===0)return e;var r=s.split(An);return r.forEach(function(u){var l=Qo(u);if(l){var c={value:l.value};l.metadata&&(c.metadata=l.metadata),o[l.key]=c}}),Object.entries(o).length===0?e:st.setBaggage(e,st.createBaggage(o))},t.prototype.fields=function(){return[_s]},t}()});var y0,A0=m(()=>{y0=function(){function t(e,n){this._monotonicClock=n,this._epochMillis=e.now(),this._performanceMillis=n.now()}return t.prototype.now=function(){var e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e},t}()});function ur(t){var e,n,i={};if(typeof t!="object"||t==null)return i;try{for(var a=O0(Object.entries(t)),s=a.next();!s.done;s=a.next()){var o=w$(s.value,2),r=o[0],u=o[1];if(!Yf(r)){g.warn("Invalid attribute key: "+r);continue}if(!Zo(u)){g.warn("Invalid attribute value set for key: "+r);continue}Array.isArray(u)?i[r]=u.slice():i[r]=u}}catch(l){e={error:l}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return i}function Yf(t){return typeof t=="string"&&t.length>0}function Zo(t){return t==null?!0:Array.isArray(t)?U$(t):g0(t)}function U$(t){var e,n,i;try{for(var a=O0(t),s=a.next();!s.done;s=a.next()){var o=s.value;if(o!=null){if(!i){if(g0(o)){i=typeof o;continue}return!1}if(typeof o!==i)return!1}}}catch(r){e={error:r}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return!0}function g0(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}var O0,w$,N0=m(()=>{b();O0=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},w$=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}});function vs(){return function(t){g.error(D$(t))}}function D$(t){return typeof t=="string"?t:JSON.stringify(V$(t))}function V$(t){for(var e={},n=t;n!==null;)Object.getOwnPropertyNames(n).forEach(function(i){if(!e[i]){var a=n[i];a&&(e[i]=String(a))}}),n=Object.getPrototypeOf(n);return e}var qf=m(()=>{b()});function P0(t){R0=t}function he(t){try{R0(t)}catch{}}var R0,jf=m(()=>{qf();R0=vs()});var qe,$f=m(()=>{(function(t){t.AlwaysOff="always_off",t.AlwaysOn="always_on",t.ParentBasedAlwaysOff="parentbased_always_off",t.ParentBasedAlwaysOn="parentbased_always_on",t.ParentBasedTraceIdRatio="parentbased_traceidratio",t.TraceIdRatio="traceidratio"})(qe||(qe={}))});function k$(t){return G$.indexOf(t)>-1}function F$(t){return H$.indexOf(t)>-1}function q$(t){return Y$.indexOf(t)>-1}function j$(t,e,n){if(!(typeof n[t]>"u")){var i=String(n[t]);e[t]=i.toLowerCase()==="true"}}function $$(t,e,n,i,a){if(i===void 0&&(i=-1/0),a===void 0&&(a=1/0),typeof n[t]<"u"){var s=Number(n[t]);isNaN(s)||(s<i?e[t]=i:s>a?e[t]=a:e[t]=s)}}function K$(t,e,n,i){i===void 0&&(i=B$);var a=n[t];typeof a=="string"&&(e[t]=a.split(i).map(function(s){return s.trim()}))}function z$(t,e,n){var i=n[t];if(typeof i=="string"){var a=W$[i.toUpperCase()];a!=null&&(e[t]=a)}}function ti(t){var e={};for(var n in ei){var i=n;switch(i){case"OTEL_LOG_LEVEL":z$(i,e,t);break;default:if(k$(i))j$(i,e,t);else if(F$(i))$$(i,e,t);else if(q$(i))K$(i,e,t);else{var a=t[i];typeof a<"u"&&a!==null&&(e[i]=String(a))}}}return e}var B$,G$,H$,Y$,Br,Gr,Kf,Wf,ei,W$,zf=m(()=>{b();$f();B$=",",G$=["OTEL_SDK_DISABLED"];H$=["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"];Y$=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];Br=1/0,Gr=128,Kf=128,Wf=128,ei={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:at.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:Br,OTEL_ATTRIBUTE_COUNT_LIMIT:Gr,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:Br,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:Gr,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:Br,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:Gr,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:Kf,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:Wf,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:qe.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:[]};W$={ALL:at.ALL,VERBOSE:at.VERBOSE,DEBUG:at.DEBUG,INFO:at.INFO,WARN:at.WARN,ERROR:at.ERROR,NONE:at.NONE}});function Ae(){var t=ti(process.env);return Object.assign({},ei,t)}function On(){return ti(process.env)}var b0=m(()=>{zf()});var ms,M0=m(()=>{ms=typeof globalThis=="object"?globalThis:global});function x0(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function lr(t){for(var e=new Uint8Array(t.length/2),n=0,i=0;i<t.length;i+=2){var a=x0(t.charCodeAt(i)),s=x0(t.charCodeAt(i+1));e[n++]=a<<4|s}return e}var Xf=m(()=>{});function ys(t){return Buffer.from(lr(t)).toString("base64")}var L0=m(()=>{Xf()});function I0(t){return function(){for(var n=0;n<t/4;n++)As.writeUInt32BE(Math.random()*Math.pow(2,32)>>>0,n*4);for(var n=0;n<t&&!(As[n]>0);n++)n===t-1&&(As[t-1]=1);return As.toString("hex",0,t)}}var X$,C0,Os,As,w0=m(()=>{X$=8,C0=16,Os=function(){function t(){this.generateTraceId=I0(C0),this.generateSpanId=I0(X$)}return t}(),As=Buffer.allocUnsafe(C0)});import{performance as J$}from"perf_hooks";var tt,U0=m(()=>{tt=J$});var gs,Jf=m(()=>{gs="1.27.0"});var gn,cr,D0=m(()=>{Jf();Xo();cr=(gn={},gn[Ko]="opentelemetry",gn[u0]="node",gn[Wo]=l0,gn[zo]=gs,gn)});function fr(t){t.unref()}var V0=m(()=>{});var B0=m(()=>{b0();M0();L0();w0();U0();D0();V0()});var Qf=m(()=>{B0()});function Oe(t){var e=t/1e3,n=Math.trunc(e),i=Math.round(t%1e3*Z$);return[n,i]}function Nn(){var t=tt.timeOrigin;if(typeof t!="number"){var e=tt;t=e.timing&&e.timing.fetchStart}return t}function ri(t){var e=Oe(Nn()),n=Oe(typeof t=="number"?t:tt.now());return oi(e,n)}function k0(t){if(Rn(t))return t;if(typeof t=="number")return t<Nn()?ri(t):Oe(t);if(t instanceof Date)return Oe(t.getTime());throw TypeError("Invalid input type")}function Rs(t,e){var n=e[0]-t[0],i=e[1]-t[1];return i<0&&(n-=1,i+=Ns),[n,i]}function H0(t){var e=G0,n=""+"0".repeat(e)+t[1]+"Z",i=n.substr(n.length-e-1),a=new Date(t[0]*1e3).toISOString();return a.replace("000Z",i)}function Ps(t){return t[0]*Ns+t[1]}function F0(t){return t[0]*1e3+t[1]/1e6}function Nt(t){return t[0]*1e6+t[1]/1e3}function Rn(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}function ni(t){return Rn(t)||typeof t=="number"||t instanceof Date}function oi(t,e){var n=[t[0]+e[0],t[1]+e[1]];return n[1]>=Ns&&(n[1]-=Ns,n[0]+=1),n}var G0,Q$,Z$,Ns,Y0=m(()=>{Qf();G0=9,Q$=6,Z$=Math.pow(10,Q$),Ns=Math.pow(10,G0)});var ee,q0=m(()=>{(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(ee||(ee={}))});var eK,bs,j0=m(()=>{b();eK=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},bs=function(){function t(e){e===void 0&&(e={});var n;this._propagators=(n=e.propagators)!==null&&n!==void 0?n:[],this._fields=Array.from(new Set(this._propagators.map(function(i){return typeof i.fields=="function"?i.fields():[]}).reduce(function(i,a){return i.concat(a)},[])))}return t.prototype.inject=function(e,n,i){var a,s;try{for(var o=eK(this._propagators),r=o.next();!r.done;r=o.next()){var u=r.value;try{u.inject(e,n,i)}catch(l){g.warn("Failed to inject with "+u.constructor.name+". Err: "+l.message)}}}catch(l){a={error:l}}finally{try{r&&!r.done&&(s=o.return)&&s.call(o)}finally{if(a)throw a.error}}},t.prototype.extract=function(e,n,i){return this._propagators.reduce(function(a,s){try{return s.extract(a,n,i)}catch(o){g.warn("Failed to extract with "+s.constructor.name+". Err: "+o.message)}return a},e)},t.prototype.fields=function(){return this._fields.slice()},t}()});function $0(t){return nK.test(t)}function K0(t){return oK.test(t)&&!iK.test(t)}var Zf,tK,rK,nK,oK,iK,W0=m(()=>{Zf="[_0-9a-z-*/]",tK="[a-z]"+Zf+"{0,255}",rK="[a-z0-9]"+Zf+"{0,240}@[a-z]"+Zf+"{0,13}",nK=new RegExp("^(?:"+tK+"|"+rK+")$"),oK=/^[ -~]{0,255}[!-~]$/,iK=/,|=/});var z0,aK,X0,J0,Ms,ep=m(()=>{W0();z0=32,aK=512,X0=",",J0="=",Ms=function(){function t(e){this._internalState=new Map,e&&this._parse(e)}return t.prototype.set=function(e,n){var i=this._clone();return i._internalState.has(e)&&i._internalState.delete(e),i._internalState.set(e,n),i},t.prototype.unset=function(e){var n=this._clone();return n._internalState.delete(e),n},t.prototype.get=function(e){return this._internalState.get(e)},t.prototype.serialize=function(){var e=this;return this._keys().reduce(function(n,i){return n.push(i+J0+e.get(i)),n},[]).join(X0)},t.prototype._parse=function(e){e.length>aK||(this._internalState=e.split(X0).reverse().reduce(function(n,i){var a=i.trim(),s=a.indexOf(J0);if(s!==-1){var o=a.slice(0,s),r=a.slice(s+1,i.length);$0(o)&&K0(r)&&n.set(o,r)}return n},new Map),this._internalState.size>z0&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,z0))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t}()});function tp(t){var e=pK.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}var ii,ai,sK,uK,lK,cK,fK,pK,xs,Q0=m(()=>{b();Jo();ep();ii="traceparent",ai="tracestate",sK="00",uK="(?!ff)[\\da-f]{2}",lK="(?![0]{32})[\\da-f]{32}",cK="(?![0]{16})[\\da-f]{16}",fK="[\\da-f]{2}",pK=new RegExp("^\\s?("+uK+")-("+lK+")-("+cK+")-("+fK+")(-.*)?\\s?$");xs=function(){function t(){}return t.prototype.inject=function(e,n,i){var a=X.getSpanContext(e);if(!(!a||be(e)||!_t(a))){var s=sK+"-"+a.traceId+"-"+a.spanId+"-0"+Number(a.traceFlags||J.NONE).toString(16);i.set(n,ii,s),a.traceState&&i.set(n,ai,a.traceState.serialize())}},t.prototype.extract=function(e,n,i){var a=i.get(n,ii);if(!a)return e;var s=Array.isArray(a)?a[0]:a;if(typeof s!="string")return e;var o=tp(s);if(!o)return e;o.isRemote=!0;var r=i.get(n,ai);if(r){var u=Array.isArray(r)?r.join(","):r;o.traceState=new Ms(typeof u=="string"?u:void 0)}return X.setSpanContext(e,o)},t.prototype.fields=function(){return[ii,ai]},t}()});function Z0(t,e){return t.setValue(rp,e)}function eM(t){return t.deleteValue(rp)}function tM(t){return t.getValue(rp)}var rp,Ls,rM=m(()=>{b();rp=Xr("OpenTelemetry SDK Context Key RPC_METADATA");(function(t){t.HTTP="http"})(Ls||(Ls={}))});var si,np=m(()=>{b();si=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:St.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}()});var Pn,op=m(()=>{b();Pn=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:St.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}()});var nM,oM=m(()=>{b();jf();np();op();nM=function(){function t(e){var n,i,a,s;this._root=e.root,this._root||(he(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Pn),this._remoteParentSampled=(n=e.remoteParentSampled)!==null&&n!==void 0?n:new Pn,this._remoteParentNotSampled=(i=e.remoteParentNotSampled)!==null&&i!==void 0?i:new si,this._localParentSampled=(a=e.localParentSampled)!==null&&a!==void 0?a:new Pn,this._localParentNotSampled=(s=e.localParentNotSampled)!==null&&s!==void 0?s:new si}return t.prototype.shouldSample=function(e,n,i,a,s,o){var r=X.getSpanContext(e);return!r||!_t(r)?this._root.shouldSample(e,n,i,a,s,o):r.isRemote?r.traceFlags&J.SAMPLED?this._remoteParentSampled.shouldSample(e,n,i,a,s,o):this._remoteParentNotSampled.shouldSample(e,n,i,a,s,o):r.traceFlags&J.SAMPLED?this._localParentSampled.shouldSample(e,n,i,a,s,o):this._localParentNotSampled.shouldSample(e,n,i,a,s,o)},t.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},t}()});var iM,aM=m(()=>{b();iM=function(){function t(e){e===void 0&&(e=0),this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}return t.prototype.shouldSample=function(e,n){return{decision:Ft(n)&&this._accumulate(n)<this._upperBound?St.RECORD_AND_SAMPLED:St.NOT_RECORD}},t.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},t.prototype._normalize=function(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e},t.prototype._accumulate=function(e){for(var n=0,i=0;i<e.length/8;i++){var a=i*8,s=parseInt(e.slice(a,a+8),16);n=(n^s)>>>0}return n},t}()});function vK(t,e){return function(n){return t(e(n))}}function ip(t){if(!mK(t)||yK(t)!==dK)return!1;var e=TK(t);if(e===null)return!0;var n=lM.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&sM.call(n)===hK}function mK(t){return t!=null&&typeof t=="object"}function yK(t){return t==null?t===void 0?_K:EK:kr&&kr in Object(t)?AK(t):OK(t)}function AK(t){var e=lM.call(t,kr),n=t[kr],i=!1;try{t[kr]=void 0,i=!0}catch{}var a=cM.call(t);return i&&(e?t[kr]=n:delete t[kr]),a}function OK(t){return cM.call(t)}var dK,EK,_K,SK,sM,hK,TK,uM,lM,kr,cM,fM=m(()=>{dK="[object Object]",EK="[object Null]",_K="[object Undefined]",SK=Function.prototype,sM=SK.toString,hK=sM.call(Object),TK=vK(Object.getPrototypeOf,Object),uM=Object.prototype,lM=uM.hasOwnProperty,kr=Symbol?Symbol.toStringTag:void 0,cM=uM.toString});function ws(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t.shift(),i=new WeakMap;t.length>0;)n=dM(n,t.shift(),0,i);return n}function ap(t){return Cs(t)?t.slice():t}function dM(t,e,n,i){n===void 0&&(n=0);var a;if(!(n>gK)){if(n++,Is(t)||Is(e)||EM(e))a=ap(e);else if(Cs(t)){if(a=t.slice(),Cs(e))for(var s=0,o=e.length;s<o;s++)a.push(ap(e[s]));else if(ui(e))for(var r=Object.keys(e),s=0,o=r.length;s<o;s++){var u=r[s];a[u]=ap(e[u])}}else if(ui(t))if(ui(e)){if(!NK(t,e))return e;a=Object.assign({},t);for(var r=Object.keys(e),s=0,o=r.length;s<o;s++){var u=r[s],l=e[u];if(Is(l))typeof l>"u"?delete a[u]:a[u]=l;else{var c=a[u],p=l;if(pM(t,u,i)||pM(e,u,i))delete a[u];else{if(ui(c)&&ui(p)){var _=i.get(c)||[],f=i.get(p)||[];_.push({obj:t,key:u}),f.push({obj:e,key:u}),i.set(c,_),i.set(p,f)}a[u]=dM(a[u],l,n,i)}}}}else a=e;return a}}function pM(t,e,n){for(var i=n.get(t[e])||[],a=0,s=i.length;a<s;a++){var o=i[a];if(o.key===e&&o.obj===t)return!0}return!1}function Cs(t){return Array.isArray(t)}function EM(t){return typeof t=="function"}function ui(t){return!Is(t)&&!Cs(t)&&!EM(t)&&typeof t=="object"}function Is(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function NK(t,e){return!(!ip(t)||!ip(e))}var gK,_M=m(()=>{fM();gK=20});function SM(t,e){var n,i=new Promise(function(s,o){n=setTimeout(function(){o(new sp("Operation timed out."))},e)});return Promise.race([t,i]).then(function(a){return clearTimeout(n),a},function(a){throw clearTimeout(n),a})}var RK,sp,hM=m(()=>{RK=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),sp=function(t){RK(e,t);function e(n){var i=t.call(this,n)||this;return Object.setPrototypeOf(i,e.prototype),i}return e}(Error)});function up(t,e){return typeof e=="string"?t===e:!!t.match(e)}function TM(t,e){var n,i;if(!e)return!1;try{for(var a=PK(e),s=a.next();!s.done;s=a.next()){var o=s.value;if(up(t,o))return!0}}catch(r){n={error:r}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return!1}var PK,vM=m(()=>{PK=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}});function mM(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}var yM=m(()=>{});var AM,OM=m(()=>{AM=function(){function t(){var e=this;this._promise=new Promise(function(n,i){e._resolve=n,e._reject=i})}return Object.defineProperty(t.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),t.prototype.resolve=function(e){this._resolve(e)},t.prototype.reject=function(e){this._reject(e)},t}()});var bK,MK,pr,gM=m(()=>{OM();bK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},MK=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},pr=function(){function t(e,n){this._callback=e,this._that=n,this._isCalled=!1,this._deferred=new AM}return Object.defineProperty(t.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),t.prototype.call=function(){for(var e,n=this,i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((e=this._callback).call.apply(e,MK([this._that],bK(i),!1))).then(function(s){return n._deferred.resolve(s)},function(s){return n._deferred.reject(s)})}catch(s){this._deferred.reject(s)}}return this._deferred.promise},t}()});function NM(t,e){return new Promise(function(n){ke.with(yn(ke.active()),function(){t.export(e,function(i){n(i)})})})}var RM=m(()=>{b();Jo()});var Us={};it(Us,{AlwaysOffSampler:()=>si,AlwaysOnSampler:()=>Pn,AnchoredClock:()=>y0,BindOnceFuture:()=>pr,CompositePropagator:()=>bs,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>Gr,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>Br,DEFAULT_ENVIRONMENT:()=>ei,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:()=>Kf,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:()=>Wf,ExportResultCode:()=>ee,ParentBasedSampler:()=>nM,RPCType:()=>Ls,RandomIdGenerator:()=>Os,SDK_INFO:()=>cr,TRACE_PARENT_HEADER:()=>ii,TRACE_STATE_HEADER:()=>ai,TimeoutError:()=>sp,TraceIdRatioBasedSampler:()=>iM,TraceState:()=>Ms,TracesSamplerValues:()=>qe,VERSION:()=>gs,W3CBaggagePropagator:()=>Ts,W3CTraceContextPropagator:()=>xs,_globalThis:()=>ms,addHrTimes:()=>oi,baggageUtils:()=>bn,callWithTimeout:()=>SM,deleteRPCMetadata:()=>eM,getEnv:()=>Ae,getEnvWithoutDefaults:()=>On,getRPCMetadata:()=>tM,getTimeOrigin:()=>Nn,globalErrorHandler:()=>he,hexToBase64:()=>ys,hexToBinary:()=>lr,hrTime:()=>ri,hrTimeDuration:()=>Rs,hrTimeToMicroseconds:()=>Nt,hrTimeToMilliseconds:()=>F0,hrTimeToNanoseconds:()=>Ps,hrTimeToTimeStamp:()=>H0,internal:()=>li,isAttributeKey:()=>Yf,isAttributeValue:()=>Zo,isTimeInput:()=>ni,isTimeInputHrTime:()=>Rn,isTracingSuppressed:()=>be,isUrlIgnored:()=>TM,isWrapped:()=>mM,loggingErrorHandler:()=>vs,merge:()=>ws,millisToHrTime:()=>Oe,otperformance:()=>tt,parseEnvironment:()=>ti,parseTraceParent:()=>tp,sanitizeAttributes:()=>ur,setGlobalErrorHandler:()=>P0,setRPCMetadata:()=>Z0,suppressTracing:()=>yn,timeInputToHrTime:()=>k0,unrefTimer:()=>fr,unsuppressTracing:()=>E0,urlMatches:()=>up});var bn,li,K=m(()=>{m0();A0();N0();jf();qf();Y0();Xf();q0();Ff();Qf();j0();Q0();rM();np();op();oM();aM();Jo();ep();zf();_M();$f();hM();vM();yM();gM();Jf();RM();bn={getKeyPairs:hs,serializeKeyPairs:Ss,parseKeyPairsIntoRecord:v0,parsePairKeyValue:Qo},li={_export:NM}});function Ds(){return"unknown_service:"+process.argv0}var PM=m(()=>{});var bM=m(()=>{PM()});var MM=m(()=>{bM()});var dr,xK,LK,IK,Bt,lp=m(()=>{b();Xo();K();MM();dr=function(){return dr=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},dr.apply(this,arguments)},xK=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},LK=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},IK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Bt=function(){function t(e,n){var i=this,a;this._attributes=e,this.asyncAttributesPending=n!=null,this._syncAttributes=(a=this._attributes)!==null&&a!==void 0?a:{},this._asyncAttributesPromise=n?.then(function(s){return i._attributes=Object.assign({},i._attributes,s),i.asyncAttributesPending=!1,s},function(s){return g.debug("a resource's async attributes promise rejected: %s",s),i.asyncAttributesPending=!1,{}})}return t.empty=function(){return t.EMPTY},t.default=function(){var e;return new t((e={},e[ds]=Ds(),e[Wo]=cr[Wo],e[Ko]=cr[Ko],e[zo]=cr[zo],e))},Object.defineProperty(t.prototype,"attributes",{get:function(){var e;return this.asyncAttributesPending&&g.error("Accessing resource attributes before async attributes settled"),(e=this._attributes)!==null&&e!==void 0?e:{}},enumerable:!1,configurable:!0}),t.prototype.waitForAsyncAttributes=function(){return xK(this,void 0,void 0,function(){return LK(this,function(e){switch(e.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})},t.prototype.merge=function(e){var n=this,i;if(!e)return this;var a=dr(dr({},this._syncAttributes),(i=e._syncAttributes)!==null&&i!==void 0?i:e.attributes);if(!this._asyncAttributesPromise&&!e._asyncAttributesPromise)return new t(a);var s=Promise.all([this._asyncAttributesPromise,e._asyncAttributesPromise]).then(function(o){var r,u=IK(o,2),l=u[0],c=u[1];return dr(dr(dr(dr({},n._syncAttributes),l),(r=e._syncAttributes)!==null&&r!==void 0?r:e.attributes),c)});return new t(a,s)},t.EMPTY=new t({}),t}()});var CK,wK,UK,cp,xM=m(()=>{b();K();Xo();lp();CK=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},wK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},UK=function(){function t(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return t.prototype.detect=function(e){var n={},i=Ae(),a=i.OTEL_RESOURCE_ATTRIBUTES,s=i.OTEL_SERVICE_NAME;if(a)try{var o=this._parseResourceAttributes(a);Object.assign(n,o)}catch(r){g.debug("EnvDetector failed: "+r.message)}return s&&(n[ds]=s),new Bt(n)},t.prototype._parseResourceAttributes=function(e){var n,i;if(!e)return{};var a={},s=e.split(this._COMMA_SEPARATOR,-1);try{for(var o=CK(s),r=o.next();!r.done;r=o.next()){var u=r.value,l=u.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(l.length===2){var c=wK(l,2),p=c[0],_=c[1];if(p=p.trim(),_=_.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(p))throw new Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(_))throw new Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);a[p]=decodeURIComponent(_)}}}catch(f){n={error:f}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return a},t.prototype._isValid=function(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)},t.prototype._isBaggageOctetString=function(e){for(var n=0;n<e.length;n++){var i=e.charCodeAt(n);if(i<33||i===44||i===59||i===92||i>126)return!1}return!0},t.prototype._isValidAndNotEmpty=function(e){return e.length>0&&this._isValid(e)},t}(),cp=new UK});var DK,Vs,LM=m(()=>{xM();DK=function(){function t(){}return t.prototype.detect=function(e){return Promise.resolve(cp.detect(e))},t}(),Vs=new DK});var IM=m(()=>{LM()});var Bs=m(()=>{lp();IM()});var ge,Gs=m(()=>{(function(t){t[t.DELTA=0]="DELTA",t[t.CUMULATIVE=1]="CUMULATIVE"})(ge||(ge={}))});var Ne,Mn=m(()=>{(function(t){t[t.HISTOGRAM=0]="HISTOGRAM",t[t.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",t[t.GAUGE=2]="GAUGE",t[t.SUM=3]="SUM"})(Ne||(Ne={}))});function UM(t){return t!=null}function DM(t){var e=Object.keys(t);return e.length===0?"":(e=e.sort(),JSON.stringify(e.map(function(n){return[n,t[n]]})))}function VM(t){var e,n;return t.name+":"+((e=t.version)!==null&&e!==void 0?e:"")+":"+((n=t.schemaUrl)!==null&&n!==void 0?n:"")}function Er(t,e){var n,i=new Promise(function(s,o){n=setTimeout(function(){o(new ci("Operation timed out."))},e)});return Promise.race([t,i]).then(function(a){return clearTimeout(n),a},function(a){throw clearTimeout(n),a})}function BM(t){return CM(this,void 0,void 0,function(){var e=this;return wM(this,function(n){return[2,Promise.all(t.map(function(i){return CM(e,void 0,void 0,function(){var a,s;return wM(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,i];case 1:return a=o.sent(),[2,{status:"fulfilled",value:a}];case 2:return s=o.sent(),[2,{status:"rejected",reason:s}];case 3:return[2]}})})}))]})})}function GM(t){return t.status==="rejected"}function fp(t,e){var n=[];return t.forEach(function(i){n.push.apply(n,GK([],BK(e(i)),!1))}),n}function kM(t,e){var n,i;if(t.size!==e.size)return!1;try{for(var a=kK(t),s=a.next();!s.done;s=a.next()){var o=s.value;if(!e.has(o))return!1}}catch(r){n={error:r}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return!0}function HM(t,e){for(var n=0,i=t.length-1,a=t.length;i>=n;){var s=n+Math.trunc((i-n)/2);t[s]<e?n=s+1:(a=s,i=s-1)}return a}function FM(t,e){return t.toLowerCase()===e.toLowerCase()}var VK,CM,wM,BK,GK,kK,ci,Rt=m(()=>{VK=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),CM=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},wM=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},BK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},GK=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},kK=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};ci=function(t){VK(e,t);function e(n){var i=t.call(this,n)||this;return Object.setPrototypeOf(i,e.prototype),i}return e}(Error)});var rt,xn=m(()=>{(function(t){t[t.DROP=0]="DROP",t[t.SUM=1]="SUM",t[t.LAST_VALUE=2]="LAST_VALUE",t[t.HISTOGRAM=3]="HISTOGRAM",t[t.EXPONENTIAL_HISTOGRAM=4]="EXPONENTIAL_HISTOGRAM"})(rt||(rt={}))});var pp,YM=m(()=>{xn();pp=function(){function t(){this.kind=rt.DROP}return t.prototype.createAccumulation=function(){},t.prototype.merge=function(e,n){},t.prototype.diff=function(e,n){},t.prototype.toMetricData=function(e,n,i,a){},t}()});function Pt(t,e,n){var i,a,s,o;return FK(t)||g.warn('Invalid metric name: "'+t+'". The metric name should be a ASCII string with a length no greater than 255 characters.'),{name:t,type:e,description:(i=n?.description)!==null&&i!==void 0?i:"",unit:(a=n?.unit)!==null&&a!==void 0?a:"",valueType:(s=n?.valueType)!==null&&s!==void 0?s:Et.DOUBLE,advice:(o=n?.advice)!==null&&o!==void 0?o:{}}}function qM(t,e){var n,i;return{name:(n=t.name)!==null&&n!==void 0?n:e.name,description:(i=t.description)!==null&&i!==void 0?i:e.description,type:e.type,unit:e.unit,valueType:e.valueType,advice:e.advice}}function jM(t,e){return FM(t.name,e.name)&&t.unit===e.unit&&t.type===e.type&&t.valueType===e.valueType}function FK(t){return t.match(HK)!=null}var C,HK,Gt=m(()=>{b();Rt();(function(t){t.COUNTER="COUNTER",t.GAUGE="GAUGE",t.HISTOGRAM="HISTOGRAM",t.UP_DOWN_COUNTER="UP_DOWN_COUNTER",t.OBSERVABLE_COUNTER="OBSERVABLE_COUNTER",t.OBSERVABLE_GAUGE="OBSERVABLE_GAUGE",t.OBSERVABLE_UP_DOWN_COUNTER="OBSERVABLE_UP_DOWN_COUNTER"})(C||(C={}));HK=/^[a-z][a-z0-9_.\-/]{0,254}$/i});function qK(t){var e=t.map(function(){return 0});return e.push(0),{buckets:{boundaries:t,counts:e},sum:0,count:0,hasMinMax:!1,min:1/0,max:-1/0}}var YK,ks,Hs,$M=m(()=>{xn();Mn();Gt();Rt();YK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s};ks=function(){function t(e,n,i,a){i===void 0&&(i=!0),a===void 0&&(a=qK(n)),this.startTime=e,this._boundaries=n,this._recordMinMax=i,this._current=a}return t.prototype.record=function(e){if(!Number.isNaN(e)){this._current.count+=1,this._current.sum+=e,this._recordMinMax&&(this._current.min=Math.min(e,this._current.min),this._current.max=Math.max(e,this._current.max),this._current.hasMinMax=!0);var n=HM(this._boundaries,e);this._current.buckets.counts[n]+=1}},t.prototype.setStartTime=function(e){this.startTime=e},t.prototype.toPointValue=function(){return this._current},t}(),Hs=function(){function t(e,n){this._boundaries=e,this._recordMinMax=n,this.kind=rt.HISTOGRAM}return t.prototype.createAccumulation=function(e){return new ks(e,this._boundaries,this._recordMinMax)},t.prototype.merge=function(e,n){for(var i=e.toPointValue(),a=n.toPointValue(),s=i.buckets.counts,o=a.buckets.counts,r=new Array(s.length),u=0;u<s.length;u++)r[u]=s[u]+o[u];var l=1/0,c=-1/0;return this._recordMinMax&&(i.hasMinMax&&a.hasMinMax?(l=Math.min(i.min,a.min),c=Math.max(i.max,a.max)):i.hasMinMax?(l=i.min,c=i.max):a.hasMinMax&&(l=a.min,c=a.max)),new ks(e.startTime,i.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:i.buckets.boundaries,counts:r},count:i.count+a.count,sum:i.sum+a.sum,hasMinMax:this._recordMinMax&&(i.hasMinMax||a.hasMinMax),min:l,max:c})},t.prototype.diff=function(e,n){for(var i=e.toPointValue(),a=n.toPointValue(),s=i.buckets.counts,o=a.buckets.counts,r=new Array(s.length),u=0;u<s.length;u++)r[u]=o[u]-s[u];return new ks(n.startTime,i.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:i.buckets.boundaries,counts:r},count:a.count-i.count,sum:a.sum-i.sum,hasMinMax:!1,min:1/0,max:-1/0})},t.prototype.toMetricData=function(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:Ne.HISTOGRAM,dataPoints:i.map(function(s){var o=YK(s,2),r=o[0],u=o[1],l=u.toPointValue(),c=e.type===C.GAUGE||e.type===C.UP_DOWN_COUNTER||e.type===C.OBSERVABLE_GAUGE||e.type===C.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:r,startTime:u.startTime,endTime:a,value:{min:l.hasMinMax?l.min:void 0,max:l.hasMinMax?l.max:void 0,sum:c?void 0:l.sum,buckets:l.buckets,count:l.count}}})}},t}()});var dp,Ep,_p,jK,KM=m(()=>{dp=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Ep=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},_p=function(){function t(e,n,i,a){e===void 0&&(e=new jK),n===void 0&&(n=0),i===void 0&&(i=0),a===void 0&&(a=0),this.backing=e,this.indexBase=n,this.indexStart=i,this.indexEnd=a}return Object.defineProperty(t.prototype,"offset",{get:function(){return this.indexStart},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this.backing.length===0||this.indexEnd===this.indexStart&&this.at(0)===0?0:this.indexEnd-this.indexStart+1},enumerable:!1,configurable:!0}),t.prototype.counts=function(){var e=this;return Array.from({length:this.length},function(n,i){return e.at(i)})},t.prototype.at=function(e){var n=this.indexBase-this.indexStart;return e<n&&(e+=this.backing.length),e-=n,this.backing.countAt(e)},t.prototype.incrementBucket=function(e,n){this.backing.increment(e,n)},t.prototype.decrementBucket=function(e,n){this.backing.decrement(e,n)},t.prototype.trim=function(){for(var e=0;e<this.length;e++)if(this.at(e)!==0){this.indexStart+=e;break}else if(e===this.length-1){this.indexStart=this.indexEnd=this.indexBase=0;return}for(var e=this.length-1;e>=0;e--)if(this.at(e)!==0){this.indexEnd-=this.length-e-1;break}this._rotate()},t.prototype.downscale=function(e){this._rotate();for(var n=1+this.indexEnd-this.indexStart,i=1<<e,a=0,s=0,o=this.indexStart;o<=this.indexEnd;){var r=o%i;r<0&&(r+=i);for(var u=r;u<i&&a<n;u++)this._relocateBucket(s,a),a++,o++;s++}this.indexStart>>=e,this.indexEnd>>=e,this.indexBase=this.indexStart},t.prototype.clone=function(){return new t(this.backing.clone(),this.indexBase,this.indexStart,this.indexEnd)},t.prototype._rotate=function(){var e=this.indexBase-this.indexStart;e!==0&&(e>0?(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,e),this.backing.reverse(e,this.backing.length)):(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,this.backing.length+e)),this.indexBase=this.indexStart)},t.prototype._relocateBucket=function(e,n){e!==n&&this.incrementBucket(e,this.backing.emptyBucket(n))},t}(),jK=function(){function t(e){e===void 0&&(e=[0]),this._counts=e}return Object.defineProperty(t.prototype,"length",{get:function(){return this._counts.length},enumerable:!1,configurable:!0}),t.prototype.countAt=function(e){return this._counts[e]},t.prototype.growTo=function(e,n,i){var a=new Array(e).fill(0);a.splice.apply(a,Ep([i,this._counts.length-n],dp(this._counts.slice(n)),!1)),a.splice.apply(a,Ep([0,n],dp(this._counts.slice(0,n)),!1)),this._counts=a},t.prototype.reverse=function(e,n){for(var i=Math.floor((e+n)/2)-e,a=0;a<i;a++){var s=this._counts[e+a];this._counts[e+a]=this._counts[n-a-1],this._counts[n-a-1]=s}},t.prototype.emptyBucket=function(e){var n=this._counts[e];return this._counts[e]=0,n},t.prototype.increment=function(e,n){this._counts[e]+=n},t.prototype.decrement=function(e,n){this._counts[e]>=n?this._counts[e]-=n:this._counts[e]=0},t.prototype.clone=function(){return new t(Ep([],dp(this._counts),!1))},t}()});function qs(t){var e=new DataView(new ArrayBuffer(8));e.setFloat64(0,t);var n=e.getUint32(0),i=(n&$K)>>20;return i-Sp}function js(t){var e=new DataView(new ArrayBuffer(8));e.setFloat64(0,t);var n=e.getUint32(0),i=e.getUint32(4),a=(n&KK)*Math.pow(2,32);return a+i}var WM,$K,KK,Sp,Fs,Ys,fi,hp=m(()=>{WM=52,$K=2146435072,KK=1048575,Sp=1023,Fs=-Sp+1,Ys=Sp,fi=Math.pow(2,-1022)});function pi(t,e){return t===0||t===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY||Number.isNaN(t)?t:t*Math.pow(2,e)}function XM(t){return t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,t++,t}var $s=m(()=>{});var WK,_r,Ks=m(()=>{WK=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),_r=function(t){WK(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Error)});var QM,ZM=m(()=>{hp();$s();Ks();QM=function(){function t(e){this._shift=-e}return t.prototype.mapToIndex=function(e){if(e<fi)return this._minNormalLowerBoundaryIndex();var n=qs(e),i=this._rightShift(js(e)-1,WM);return n+i>>this._shift},t.prototype.lowerBoundary=function(e){var n=this._minNormalLowerBoundaryIndex();if(e<n)throw new _r("underflow: "+e+" is < minimum lower boundary: "+n);var i=this._maxNormalLowerBoundaryIndex();if(e>i)throw new _r("overflow: "+e+" is > maximum lower boundary: "+i);return pi(1,e<<this._shift)},Object.defineProperty(t.prototype,"scale",{get:function(){return this._shift===0?0:-this._shift},enumerable:!1,configurable:!0}),t.prototype._minNormalLowerBoundaryIndex=function(){var e=Fs>>this._shift;return this._shift<2&&e--,e},t.prototype._maxNormalLowerBoundaryIndex=function(){return Ys>>this._shift},t.prototype._rightShift=function(e,n){return Math.floor(e*Math.pow(2,-n))},t}()});var ex,tx=m(()=>{hp();$s();Ks();ex=function(){function t(e){this._scale=e,this._scaleFactor=pi(Math.LOG2E,e),this._inverseFactor=pi(Math.LN2,-e)}return t.prototype.mapToIndex=function(e){if(e<=fi)return this._minNormalLowerBoundaryIndex()-1;if(js(e)===0){var n=qs(e);return(n<<this._scale)-1}var i=Math.floor(Math.log(e)*this._scaleFactor),a=this._maxNormalLowerBoundaryIndex();return i>=a?a:i},t.prototype.lowerBoundary=function(e){var n=this._maxNormalLowerBoundaryIndex();if(e>=n){if(e===n)return 2*Math.exp((e-(1<<this._scale))/this._scaleFactor);throw new _r("overflow: "+e+" is > maximum lower boundary: "+n)}var i=this._minNormalLowerBoundaryIndex();if(e<=i){if(e===i)return fi;if(e===i-1)return Math.exp((e+(1<<this._scale))/this._scaleFactor)/2;throw new _r("overflow: "+e+" is < minimum lower boundary: "+i)}return Math.exp(e*this._inverseFactor)},Object.defineProperty(t.prototype,"scale",{get:function(){return this._scale},enumerable:!1,configurable:!0}),t.prototype._minNormalLowerBoundaryIndex=function(){return Fs<<this._scale},t.prototype._maxNormalLowerBoundaryIndex=function(){return(Ys+1<<this._scale)-1},t}()});function Tp(t){if(t>nx||t<rx)throw new _r("expected scale >= "+rx+" && <= "+nx+", got: "+t);return zK[t+10]}var rx,nx,zK,ox=m(()=>{ZM();tx();Ks();rx=-10,nx=20,zK=Array.from({length:31},function(t,e){return e>10?new ex(e-10):new QM(e-10)})});var XK,Ws,JK,QK,vp,ix,mp,ax=m(()=>{xn();Mn();b();Gt();KM();ox();$s();XK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Ws=function(){function t(e,n){this.low=e,this.high=n}return t.combine=function(e,n){return new t(Math.min(e.low,n.low),Math.max(e.high,n.high))},t}(),JK=20,QK=160,vp=2,ix=function(){function t(e,n,i,a,s,o,r,u,l,c,p){e===void 0&&(e=e),n===void 0&&(n=QK),i===void 0&&(i=!0),a===void 0&&(a=0),s===void 0&&(s=0),o===void 0&&(o=0),r===void 0&&(r=Number.POSITIVE_INFINITY),u===void 0&&(u=Number.NEGATIVE_INFINITY),l===void 0&&(l=new _p),c===void 0&&(c=new _p),p===void 0&&(p=Tp(JK)),this.startTime=e,this._maxSize=n,this._recordMinMax=i,this._sum=a,this._count=s,this._zeroCount=o,this._min=r,this._max=u,this._positive=l,this._negative=c,this._mapping=p,this._maxSize<vp&&(g.warn("Exponential Histogram Max Size set to "+this._maxSize+", changing to the minimum size of: "+vp),this._maxSize=vp)}return t.prototype.record=function(e){this.updateByIncrement(e,1)},t.prototype.setStartTime=function(e){this.startTime=e},t.prototype.toPointValue=function(){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}},Object.defineProperty(t.prototype,"sum",{get:function(){return this._sum},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this._min},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this._max},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this._count},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"zeroCount",{get:function(){return this._zeroCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scale",{get:function(){return this._count===this._zeroCount?0:this._mapping.scale},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"positive",{get:function(){return this._positive},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"negative",{get:function(){return this._negative},enumerable:!1,configurable:!0}),t.prototype.updateByIncrement=function(e,n){if(!Number.isNaN(e)){if(e>this._max&&(this._max=e),e<this._min&&(this._min=e),this._count+=n,e===0){this._zeroCount+=n;return}this._sum+=e*n,e>0?this._updateBuckets(this._positive,e,n):this._updateBuckets(this._negative,-e,n)}},t.prototype.merge=function(e){this._count===0?(this._min=e.min,this._max=e.max):e.count!==0&&(e.min<this.min&&(this._min=e.min),e.max>this.max&&(this._max=e.max)),this.startTime=e.startTime,this._sum+=e.sum,this._count+=e.count,this._zeroCount+=e.zeroCount;var n=this._minScale(e);this._downscale(this.scale-n),this._mergeBuckets(this.positive,e,e.positive,n),this._mergeBuckets(this.negative,e,e.negative,n)},t.prototype.diff=function(e){this._min=1/0,this._max=-1/0,this._sum-=e.sum,this._count-=e.count,this._zeroCount-=e.zeroCount;var n=this._minScale(e);this._downscale(this.scale-n),this._diffBuckets(this.positive,e,e.positive,n),this._diffBuckets(this.negative,e,e.negative,n)},t.prototype.clone=function(){return new t(this.startTime,this._maxSize,this._recordMinMax,this._sum,this._count,this._zeroCount,this._min,this._max,this.positive.clone(),this.negative.clone(),this._mapping)},t.prototype._updateBuckets=function(e,n,i){var a=this._mapping.mapToIndex(n),s=!1,o=0,r=0;if(e.length===0?(e.indexStart=a,e.indexEnd=e.indexStart,e.indexBase=e.indexStart):a<e.indexStart&&e.indexEnd-a>=this._maxSize?(s=!0,r=a,o=e.indexEnd):a>e.indexEnd&&a-e.indexStart>=this._maxSize&&(s=!0,r=e.indexStart,o=a),s){var u=this._changeScale(o,r);this._downscale(u),a=this._mapping.mapToIndex(n)}this._incrementIndexBy(e,a,i)},t.prototype._incrementIndexBy=function(e,n,i){if(i!==0){if(e.length===0&&(e.indexStart=e.indexEnd=e.indexBase=n),n<e.indexStart){var a=e.indexEnd-n;a>=e.backing.length&&this._grow(e,a+1),e.indexStart=n}else if(n>e.indexEnd){var a=n-e.indexStart;a>=e.backing.length&&this._grow(e,a+1),e.indexEnd=n}var s=n-e.indexBase;s<0&&(s+=e.backing.length),e.incrementBucket(s,i)}},t.prototype._grow=function(e,n){var i=e.backing.length,a=e.indexBase-e.indexStart,s=i-a,o=XM(n);o>this._maxSize&&(o=this._maxSize);var r=o-a;e.backing.growTo(o,s,r)},t.prototype._changeScale=function(e,n){for(var i=0;e-n>=this._maxSize;)e>>=1,n>>=1,i++;return i},t.prototype._downscale=function(e){if(e!==0){if(e<0)throw new Error("impossible change of scale: "+this.scale);var n=this._mapping.scale-e;this._positive.downscale(e),this._negative.downscale(e),this._mapping=Tp(n)}},t.prototype._minScale=function(e){var n=Math.min(this.scale,e.scale),i=Ws.combine(this._highLowAtScale(this.positive,this.scale,n),this._highLowAtScale(e.positive,e.scale,n)),a=Ws.combine(this._highLowAtScale(this.negative,this.scale,n),this._highLowAtScale(e.negative,e.scale,n));return Math.min(n-this._changeScale(i.high,i.low),n-this._changeScale(a.high,a.low))},t.prototype._highLowAtScale=function(e,n,i){if(e.length===0)return new Ws(0,-1);var a=n-i;return new Ws(e.indexStart>>a,e.indexEnd>>a)},t.prototype._mergeBuckets=function(e,n,i,a){for(var s=i.offset,o=n.scale-a,r=0;r<i.length;r++)this._incrementIndexBy(e,s+r>>o,i.at(r))},t.prototype._diffBuckets=function(e,n,i,a){for(var s=i.offset,o=n.scale-a,r=0;r<i.length;r++){var u=s+r>>o,l=u-e.indexBase;l<0&&(l+=e.backing.length),e.decrementBucket(l,i.at(r))}e.trim()},t}(),mp=function(){function t(e,n){this._maxSize=e,this._recordMinMax=n,this.kind=rt.EXPONENTIAL_HISTOGRAM}return t.prototype.createAccumulation=function(e){return new ix(e,this._maxSize,this._recordMinMax)},t.prototype.merge=function(e,n){var i=n.clone();return i.merge(e),i},t.prototype.diff=function(e,n){var i=n.clone();return i.diff(e),i},t.prototype.toMetricData=function(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:Ne.EXPONENTIAL_HISTOGRAM,dataPoints:i.map(function(s){var o=XK(s,2),r=o[0],u=o[1],l=u.toPointValue(),c=e.type===C.GAUGE||e.type===C.UP_DOWN_COUNTER||e.type===C.OBSERVABLE_GAUGE||e.type===C.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:r,startTime:u.startTime,endTime:a,value:{min:l.hasMinMax?l.min:void 0,max:l.hasMinMax?l.max:void 0,sum:c?void 0:l.sum,positive:{offset:l.positive.offset,bucketCounts:l.positive.bucketCounts},negative:{offset:l.negative.offset,bucketCounts:l.negative.bucketCounts},count:l.count,scale:l.scale,zeroCount:l.zeroCount}}})}},t}()});var ZK,zs,yp,sx=m(()=>{xn();K();Mn();ZK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},zs=function(){function t(e,n,i){n===void 0&&(n=0),i===void 0&&(i=[0,0]),this.startTime=e,this._current=n,this.sampleTime=i}return t.prototype.record=function(e){this._current=e,this.sampleTime=Oe(Date.now())},t.prototype.setStartTime=function(e){this.startTime=e},t.prototype.toPointValue=function(){return this._current},t}(),yp=function(){function t(){this.kind=rt.LAST_VALUE}return t.prototype.createAccumulation=function(e){return new zs(e)},t.prototype.merge=function(e,n){var i=Nt(n.sampleTime)>=Nt(e.sampleTime)?n:e;return new zs(e.startTime,i.toPointValue(),i.sampleTime)},t.prototype.diff=function(e,n){var i=Nt(n.sampleTime)>=Nt(e.sampleTime)?n:e;return new zs(n.startTime,i.toPointValue(),i.sampleTime)},t.prototype.toMetricData=function(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:Ne.GAUGE,dataPoints:i.map(function(s){var o=ZK(s,2),r=o[0],u=o[1];return{attributes:r,startTime:u.startTime,endTime:a,value:u.toPointValue()}})}},t}()});var e8,Ln,Xs,ux=m(()=>{xn();Mn();e8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Ln=function(){function t(e,n,i,a){i===void 0&&(i=0),a===void 0&&(a=!1),this.startTime=e,this.monotonic=n,this._current=i,this.reset=a}return t.prototype.record=function(e){this.monotonic&&e<0||(this._current+=e)},t.prototype.setStartTime=function(e){this.startTime=e},t.prototype.toPointValue=function(){return this._current},t}(),Xs=function(){function t(e){this.monotonic=e,this.kind=rt.SUM}return t.prototype.createAccumulation=function(e){return new Ln(e,this.monotonic)},t.prototype.merge=function(e,n){var i=e.toPointValue(),a=n.toPointValue();return n.reset?new Ln(n.startTime,this.monotonic,a,n.reset):new Ln(e.startTime,this.monotonic,i+a)},t.prototype.diff=function(e,n){var i=e.toPointValue(),a=n.toPointValue();return this.monotonic&&i>a?new Ln(n.startTime,this.monotonic,a,!0):new Ln(n.startTime,this.monotonic,a-i)},t.prototype.toMetricData=function(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:Ne.SUM,dataPoints:i.map(function(s){var o=e8(s,2),r=o[0],u=o[1];return{attributes:r,startTime:u.startTime,endTime:a,value:u.toPointValue()}}),isMonotonic:this.monotonic}},t}()});var lx=m(()=>{YM();$M();ax();sx();ux()});var Hr,De,Ap,Op,gp,Np,Rp,Pp,bp,cx,fx,px,dx,t8,r8,Js=m(()=>{b();lx();Gt();Hr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),De=function(){function t(){}return t.Drop=function(){return cx},t.Sum=function(){return fx},t.LastValue=function(){return px},t.Histogram=function(){return dx},t.ExponentialHistogram=function(){return t8},t.Default=function(){return r8},t}(),Ap=function(t){Hr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createAggregator=function(n){return e.DEFAULT_INSTANCE},e.DEFAULT_INSTANCE=new pp,e}(De),Op=function(t){Hr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createAggregator=function(n){switch(n.type){case C.COUNTER:case C.OBSERVABLE_COUNTER:case C.HISTOGRAM:return e.MONOTONIC_INSTANCE;default:return e.NON_MONOTONIC_INSTANCE}},e.MONOTONIC_INSTANCE=new Xs(!0),e.NON_MONOTONIC_INSTANCE=new Xs(!1),e}(De),gp=function(t){Hr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createAggregator=function(n){return e.DEFAULT_INSTANCE},e.DEFAULT_INSTANCE=new yp,e}(De),Np=function(t){Hr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createAggregator=function(n){return e.DEFAULT_INSTANCE},e.DEFAULT_INSTANCE=new Hs([0,5,10,25,50,75,100,250,500,750,1e3,2500,5e3,7500,1e4],!0),e}(De),Rp=function(t){Hr(e,t);function e(n,i){i===void 0&&(i=!0);var a=t.call(this)||this;if(a._recordMinMax=i,n==null)throw new Error("ExplicitBucketHistogramAggregation should be created with explicit boundaries, if a single bucket histogram is required, please pass an empty array");n=n.concat(),n=n.sort(function(r,u){return r-u});var s=n.lastIndexOf(-1/0),o=n.indexOf(1/0);return o===-1&&(o=void 0),a._boundaries=n.slice(s+1,o),a}return e.prototype.createAggregator=function(n){return new Hs(this._boundaries,this._recordMinMax)},e}(De),Pp=function(t){Hr(e,t);function e(n,i){n===void 0&&(n=160),i===void 0&&(i=!0);var a=t.call(this)||this;return a._maxSize=n,a._recordMinMax=i,a}return e.prototype.createAggregator=function(n){return new mp(this._maxSize,this._recordMinMax)},e}(De),bp=function(t){Hr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype._resolve=function(n){switch(n.type){case C.COUNTER:case C.UP_DOWN_COUNTER:case C.OBSERVABLE_COUNTER:case C.OBSERVABLE_UP_DOWN_COUNTER:return fx;case C.GAUGE:case C.OBSERVABLE_GAUGE:return px;case C.HISTOGRAM:return n.advice.explicitBucketBoundaries?new Rp(n.advice.explicitBucketBoundaries):dx}return g.warn("Unable to recognize instrument type: "+n.type),cx},e.prototype.createAggregator=function(n){return this._resolve(n).createAggregator(n)},e}(De),cx=new Ap,fx=new Op,px=new gp,dx=new Np,t8=new Pp,r8=new bp});var Ex,Qs,Mp=m(()=>{Js();Gs();Ex=function(t){return De.Default()},Qs=function(t){return ge.CUMULATIVE}});var xp,Lp,_x,n8,Zs,Ip=m(()=>{b();Rt();Mp();xp=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},Lp=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},_x=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},n8=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},Zs=function(){function t(e){var n,i,a;this._shutdown=!1,this._aggregationSelector=(n=e?.aggregationSelector)!==null&&n!==void 0?n:Ex,this._aggregationTemporalitySelector=(i=e?.aggregationTemporalitySelector)!==null&&i!==void 0?i:Qs,this._metricProducers=(a=e?.metricProducers)!==null&&a!==void 0?a:[]}return t.prototype.setMetricProducer=function(e){if(this._sdkMetricProducer)throw new Error("MetricReader can not be bound to a MeterProvider again.");this._sdkMetricProducer=e,this.onInitialized()},t.prototype.selectAggregation=function(e){return this._aggregationSelector(e)},t.prototype.selectAggregationTemporality=function(e){return this._aggregationTemporalitySelector(e)},t.prototype.onInitialized=function(){},t.prototype.collect=function(e){return xp(this,void 0,void 0,function(){var n,i,a,s,o,r;return Lp(this,function(u){switch(u.label){case 0:if(this._sdkMetricProducer===void 0)throw new Error("MetricReader is not bound to a MetricProducer");if(this._shutdown)throw new Error("MetricReader is shutdown");return[4,Promise.all(n8([this._sdkMetricProducer.collect({timeoutMillis:e?.timeoutMillis})],_x(this._metricProducers.map(function(l){return l.collect({timeoutMillis:e?.timeoutMillis})})),!1))];case 1:return n=_x.apply(void 0,[u.sent()]),i=n[0],a=n.slice(1),s=i.errors.concat(fp(a,function(l){return l.errors})),o=i.resourceMetrics.resource,r=i.resourceMetrics.scopeMetrics.concat(fp(a,function(l){return l.resourceMetrics.scopeMetrics})),[2,{resourceMetrics:{resource:o,scopeMetrics:r},errors:s}]}})})},t.prototype.shutdown=function(e){return xp(this,void 0,void 0,function(){return Lp(this,function(n){switch(n.label){case 0:return this._shutdown?(g.error("Cannot call shutdown twice."),[2]):e?.timeoutMillis!=null?[3,2]:[4,this.onShutdown()];case 1:return n.sent(),[3,4];case 2:return[4,Er(this.onShutdown(),e.timeoutMillis)];case 3:n.sent(),n.label=4;case 4:return this._shutdown=!0,[2]}})})},t.prototype.forceFlush=function(e){return xp(this,void 0,void 0,function(){return Lp(this,function(n){switch(n.label){case 0:return this._shutdown?(g.warn("Cannot forceFlush on already shutdown MetricReader."),[2]):e?.timeoutMillis!=null?[3,2]:[4,this.onForceFlush()];case 1:return n.sent(),[2];case 2:return[4,Er(this.onForceFlush(),e.timeoutMillis)];case 3:return n.sent(),[2]}})})},t}()});var o8,di,Ei,i8,a8,eu,Sx=m(()=>{b();K();Ip();Rt();b();o8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),di=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},Ei=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},i8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},a8=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},eu=function(t){o8(e,t);function e(n){var i,a,s,o,r=t.call(this,{aggregationSelector:(i=n.exporter.selectAggregation)===null||i===void 0?void 0:i.bind(n.exporter),aggregationTemporalitySelector:(a=n.exporter.selectAggregationTemporality)===null||a===void 0?void 0:a.bind(n.exporter),metricProducers:n.metricProducers})||this;if(n.exportIntervalMillis!==void 0&&n.exportIntervalMillis<=0)throw Error("exportIntervalMillis must be greater than 0");if(n.exportTimeoutMillis!==void 0&&n.exportTimeoutMillis<=0)throw Error("exportTimeoutMillis must be greater than 0");if(n.exportTimeoutMillis!==void 0&&n.exportIntervalMillis!==void 0&&n.exportIntervalMillis<n.exportTimeoutMillis)throw Error("exportIntervalMillis must be greater than or equal to exportTimeoutMillis");return r._exportInterval=(s=n.exportIntervalMillis)!==null&&s!==void 0?s:6e4,r._exportTimeout=(o=n.exportTimeoutMillis)!==null&&o!==void 0?o:3e4,r._exporter=n.exporter,r}return e.prototype._runOnce=function(){return di(this,void 0,void 0,function(){var n;return Ei(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,Er(this._doRun(),this._exportTimeout)];case 1:return i.sent(),[3,3];case 2:return n=i.sent(),n instanceof ci?(g.error("Export took longer than %s milliseconds and timed out.",this._exportTimeout),[2]):(he(n),[3,3]);case 3:return[2]}})})},e.prototype._doRun=function(){var n,i;return di(this,void 0,void 0,function(){var a,s,o,r,u,l=this;return Ei(this,function(c){switch(c.label){case 0:return[4,this.collect({timeoutMillis:this._exportTimeout})];case 1:return a=c.sent(),s=a.resourceMetrics,o=a.errors,o.length>0&&(u=g).error.apply(u,a8(["PeriodicExportingMetricReader: metrics collection errors"],i8(o),!1)),r=function(){return di(l,void 0,void 0,function(){var p;return Ei(this,function(_){switch(_.label){case 0:return[4,li._export(this._exporter,s)];case 1:if(p=_.sent(),p.code!==ee.SUCCESS)throw new Error("PeriodicExportingMetricReader: metrics export failed (error "+p.error+")");return[2]}})})},s.resource.asyncAttributesPending?((i=(n=s.resource).waitForAsyncAttributes)===null||i===void 0||i.call(n).then(r,function(p){return g.debug("Error while resolving async portion of resource: ",p)}).catch(he),[3,4]):[3,2];case 2:return[4,r()];case 3:c.sent(),c.label=4;case 4:return[2]}})})},e.prototype.onInitialized=function(){var n=this;this._interval=setInterval(function(){n._runOnce()},this._exportInterval),fr(this._interval)},e.prototype.onForceFlush=function(){return di(this,void 0,void 0,function(){return Ei(this,function(n){switch(n.label){case 0:return[4,this._runOnce()];case 1:return n.sent(),[4,this._exporter.forceFlush()];case 2:return n.sent(),[2]}})})},e.prototype.onShutdown=function(){return di(this,void 0,void 0,function(){return Ei(this,function(n){switch(n.label){case 0:return this._interval&&clearInterval(this._interval),[4,this._exporter.shutdown()];case 1:return n.sent(),[2]}})})},e}(Zs)});var hx,Tx=m(()=>{K();hx=function(){function t(e){this._shutdown=!1,this._metrics=[],this._aggregationTemporality=e}return t.prototype.export=function(e,n){if(this._shutdown){setTimeout(function(){return n({code:ee.FAILED})},0);return}this._metrics.push(e),setTimeout(function(){return n({code:ee.SUCCESS})},0)},t.prototype.getMetrics=function(){return this._metrics},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype.reset=function(){this._metrics=[]},t.prototype.selectAggregationTemporality=function(e){return this._aggregationTemporality},t.prototype.shutdown=function(){return this._shutdown=!0,Promise.resolve()},t}()});var vx,mx,yx=m(()=>{K();Mp();vx=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},mx=function(){function t(e){var n;this._shutdown=!1,this._temporalitySelector=(n=e?.temporalitySelector)!==null&&n!==void 0?n:Qs}return t.prototype.export=function(e,n){if(this._shutdown){setImmediate(n,{code:ee.FAILED});return}return t._sendMetrics(e,n)},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype.selectAggregationTemporality=function(e){return this._temporalitySelector(e)},t.prototype.shutdown=function(){return this._shutdown=!0,Promise.resolve()},t._sendMetrics=function(e,n){var i,a,s,o;try{for(var r=vx(e.scopeMetrics),u=r.next();!u.done;u=r.next()){var l=u.value;try{for(var c=(s=void 0,vx(l.metrics)),p=c.next();!p.done;p=c.next()){var _=p.value;console.dir({descriptor:_.descriptor,dataPointType:_.dataPointType,dataPoints:_.dataPoints},{depth:null})}}catch(f){s={error:f}}finally{try{p&&!p.done&&(o=c.return)&&o.call(c)}finally{if(s)throw s.error}}}}catch(f){i={error:f}}finally{try{u&&!u.done&&(a=r.return)&&a.call(r)}finally{if(i)throw i.error}}n({code:ee.SUCCESS})},t}()});var Ax,Ox=m(()=>{Ax=function(){function t(){this._registeredViews=[]}return t.prototype.addView=function(e){this._registeredViews.push(e)},t.prototype.findViews=function(e,n){var i=this,a=this._registeredViews.filter(function(s){return i._matchInstrument(s.instrumentSelector,e)&&i._matchMeter(s.meterSelector,n)});return a},t.prototype._matchInstrument=function(e,n){return(e.getType()===void 0||n.type===e.getType())&&e.getNameFilter().match(n.name)&&e.getUnitFilter().match(n.unit)},t.prototype._matchMeter=function(e,n){return e.getNameFilter().match(n.name)&&(n.version===void 0||e.getVersionFilter().match(n.version))&&(n.schemaUrl===void 0||e.getSchemaUrlFilter().match(n.schemaUrl))},t}()});function _i(t){return t instanceof ru}var Fr,tu,gx,Nx,Rx,Px,ru,bx,Mx,xx,nu=m(()=>{b();K();Fr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),tu=function(){function t(e,n){this._writableMetricStorage=e,this._descriptor=n}return t.prototype._record=function(e,n,i){if(n===void 0&&(n={}),i===void 0&&(i=ke.active()),typeof e!="number"){g.warn("non-number value provided to metric "+this._descriptor.name+": "+e);return}this._descriptor.valueType===Et.INT&&!Number.isInteger(e)&&(g.warn("INT value type cannot accept a floating-point value for "+this._descriptor.name+", ignoring the fractional digits."),e=Math.trunc(e),!Number.isInteger(e))||this._writableMetricStorage.record(e,n,i,Oe(Date.now()))},t}(),gx=function(t){Fr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(n,i,a){this._record(n,i,a)},e}(tu),Nx=function(t){Fr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(n,i,a){if(n<0){g.warn("negative value provided to counter "+this._descriptor.name+": "+n);return}this._record(n,i,a)},e}(tu),Rx=function(t){Fr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(n,i,a){this._record(n,i,a)},e}(tu),Px=function(t){Fr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(n,i,a){if(n<0){g.warn("negative value provided to histogram "+this._descriptor.name+": "+n);return}this._record(n,i,a)},e}(tu),ru=function(){function t(e,n,i){this._observableRegistry=i,this._descriptor=e,this._metricStorages=n}return t.prototype.addCallback=function(e){this._observableRegistry.addCallback(e,this)},t.prototype.removeCallback=function(e){this._observableRegistry.removeCallback(e,this)},t}(),bx=function(t){Fr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(ru),Mx=function(t){Fr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(ru),xx=function(t){Fr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(ru)});var Lx,Ix=m(()=>{Gt();nu();Lx=function(){function t(e){this._meterSharedState=e}return t.prototype.createGauge=function(e,n){var i=Pt(e,C.GAUGE,n),a=this._meterSharedState.registerMetricStorage(i);return new Rx(a,i)},t.prototype.createHistogram=function(e,n){var i=Pt(e,C.HISTOGRAM,n),a=this._meterSharedState.registerMetricStorage(i);return new Px(a,i)},t.prototype.createCounter=function(e,n){var i=Pt(e,C.COUNTER,n),a=this._meterSharedState.registerMetricStorage(i);return new Nx(a,i)},t.prototype.createUpDownCounter=function(e,n){var i=Pt(e,C.UP_DOWN_COUNTER,n),a=this._meterSharedState.registerMetricStorage(i);return new gx(a,i)},t.prototype.createObservableGauge=function(e,n){var i=Pt(e,C.OBSERVABLE_GAUGE,n),a=this._meterSharedState.registerAsyncMetricStorage(i);return new Mx(i,a,this._meterSharedState.observableRegistry)},t.prototype.createObservableCounter=function(e,n){var i=Pt(e,C.OBSERVABLE_COUNTER,n),a=this._meterSharedState.registerAsyncMetricStorage(i);return new bx(i,a,this._meterSharedState.observableRegistry)},t.prototype.createObservableUpDownCounter=function(e,n){var i=Pt(e,C.OBSERVABLE_UP_DOWN_COUNTER,n),a=this._meterSharedState.registerAsyncMetricStorage(i);return new xx(i,a,this._meterSharedState.observableRegistry)},t.prototype.addBatchObservableCallback=function(e,n){this._meterSharedState.observableRegistry.addBatchCallback(e,n)},t.prototype.removeBatchObservableCallback=function(e,n){this._meterSharedState.observableRegistry.removeBatchCallback(e,n)},t}()});var ou,Cp=m(()=>{Gt();ou=function(){function t(e){this._instrumentDescriptor=e}return t.prototype.getInstrumentDescriptor=function(){return this._instrumentDescriptor},t.prototype.updateDescription=function(e){this._instrumentDescriptor=Pt(this._instrumentDescriptor.name,this._instrumentDescriptor.type,{description:e,valueType:this._instrumentDescriptor.valueType,unit:this._instrumentDescriptor.unit,advice:this._instrumentDescriptor.advice})},t}()});var s8,Cx,u8,pt,Si=m(()=>{Rt();s8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Cx=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},u8=function(){function t(e){this._hash=e,this._valueMap=new Map,this._keyMap=new Map}return t.prototype.get=function(e,n){return n??(n=this._hash(e)),this._valueMap.get(n)},t.prototype.getOrDefault=function(e,n){var i=this._hash(e);if(this._valueMap.has(i))return this._valueMap.get(i);var a=n();return this._keyMap.has(i)||this._keyMap.set(i,e),this._valueMap.set(i,a),a},t.prototype.set=function(e,n,i){i??(i=this._hash(e)),this._keyMap.has(i)||this._keyMap.set(i,e),this._valueMap.set(i,n)},t.prototype.has=function(e,n){return n??(n=this._hash(e)),this._valueMap.has(n)},t.prototype.keys=function(){var e,n;return Cx(this,function(i){switch(i.label){case 0:e=this._keyMap.entries(),n=e.next(),i.label=1;case 1:return n.done===!0?[3,3]:[4,[n.value[1],n.value[0]]];case 2:return i.sent(),n=e.next(),[3,1];case 3:return[2]}})},t.prototype.entries=function(){var e,n;return Cx(this,function(i){switch(i.label){case 0:e=this._valueMap.entries(),n=e.next(),i.label=1;case 1:return n.done===!0?[3,3]:[4,[this._keyMap.get(n.value[0]),n.value[1],n.value[0]]];case 2:return i.sent(),n=e.next(),[3,1];case 3:return[2]}})},Object.defineProperty(t.prototype,"size",{get:function(){return this._valueMap.size},enumerable:!1,configurable:!0}),t}(),pt=function(t){s8(e,t);function e(){return t.call(this,DM)||this}return e}(u8)});var l8,iu,wp=m(()=>{Si();l8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},iu=function(){function t(e){this._aggregator=e,this._activeCollectionStorage=new pt,this._cumulativeMemoStorage=new pt}return t.prototype.record=function(e,n,i,a){var s=this,o=this._activeCollectionStorage.getOrDefault(n,function(){return s._aggregator.createAccumulation(a)});o?.record(e)},t.prototype.batchCumulate=function(e,n){var i=this;Array.from(e.entries()).forEach(function(a){var s=l8(a,3),o=s[0],r=s[1],u=s[2],l=i._aggregator.createAccumulation(n);l?.record(r);var c=l;if(i._cumulativeMemoStorage.has(o,u)){var p=i._cumulativeMemoStorage.get(o,u);c=i._aggregator.diff(p,l)}if(i._activeCollectionStorage.has(o,u)){var _=i._activeCollectionStorage.get(o,u);c=i._aggregator.merge(_,c)}i._cumulativeMemoStorage.set(o,l,u),i._activeCollectionStorage.set(o,c,u)})},t.prototype.collect=function(){var e=this._activeCollectionStorage;return this._activeCollectionStorage=new pt,e},t}()});function c8(t){return Array.from(t.entries())}var Up,wx,au,Dp=m(()=>{Gs();Si();Up=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},wx=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},au=function(){function t(e,n){var i=this;this._aggregator=e,this._unreportedAccumulations=new Map,this._reportHistory=new Map,n.forEach(function(a){i._unreportedAccumulations.set(a,[])})}return t.prototype.buildMetrics=function(e,n,i,a){this._stashAccumulations(i);var s=this._getMergedUnreportedAccumulations(e),o=s,r;if(this._reportHistory.has(e)){var u=this._reportHistory.get(e),l=u.collectionTime;r=u.aggregationTemporality,r===ge.CUMULATIVE?o=t.merge(u.accumulations,s,this._aggregator):o=t.calibrateStartTime(u.accumulations,s,l)}else r=e.selectAggregationTemporality(n.type);this._reportHistory.set(e,{accumulations:o,collectionTime:a,aggregationTemporality:r});var c=c8(o);if(c.length!==0)return this._aggregator.toMetricData(n,r,c,a)},t.prototype._stashAccumulations=function(e){var n,i,a=this._unreportedAccumulations.keys();try{for(var s=Up(a),o=s.next();!o.done;o=s.next()){var r=o.value,u=this._unreportedAccumulations.get(r);u===void 0&&(u=[],this._unreportedAccumulations.set(r,u)),u.push(e)}}catch(l){n={error:l}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}},t.prototype._getMergedUnreportedAccumulations=function(e){var n,i,a=new pt,s=this._unreportedAccumulations.get(e);if(this._unreportedAccumulations.set(e,[]),s===void 0)return a;try{for(var o=Up(s),r=o.next();!r.done;r=o.next()){var u=r.value;a=t.merge(a,u,this._aggregator)}}catch(l){n={error:l}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return a},t.merge=function(e,n,i){for(var a=e,s=n.entries(),o=s.next();o.done!==!0;){var r=wx(o.value,3),u=r[0],l=r[1],c=r[2];if(e.has(u,c)){var p=e.get(u,c),_=i.merge(p,l);a.set(u,_,c)}else a.set(u,l,c);o=s.next()}return a},t.calibrateStartTime=function(e,n,i){var a,s;try{for(var o=Up(e.keys()),r=o.next();!r.done;r=o.next()){var u=wx(r.value,2),l=u[0],c=u[1],p=n.get(l,c);p?.setStartTime(i)}}catch(_){a={error:_}}finally{try{r&&!r.done&&(s=o.return)&&s.call(o)}finally{if(a)throw a.error}}return n},t}()});var f8,p8,Ux,Dx=m(()=>{Cp();wp();Dp();Si();f8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),p8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Ux=function(t){f8(e,t);function e(n,i,a,s){var o=t.call(this,n)||this;return o._attributesProcessor=a,o._deltaMetricStorage=new iu(i),o._temporalMetricStorage=new au(i,s),o}return e.prototype.record=function(n,i){var a=this,s=new pt;Array.from(n.entries()).forEach(function(o){var r=p8(o,2),u=r[0],l=r[1];s.set(a._attributesProcessor.process(u),l)}),this._deltaMetricStorage.batchCumulate(s,i)},e.prototype.collect=function(n,i){var a=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(n,this._instrumentDescriptor,a,i)},e}(ou)});function Vp(t,e){var n="";return t.unit!==e.unit&&(n+=" - Unit '"+t.unit+"' does not match '"+e.unit+`'
|
40
40
|
`),t.type!==e.type&&(n+=" - Type '"+t.type+"' does not match '"+e.type+`'
|
41
41
|
`),t.valueType!==e.valueType&&(n+=" - Value Type '"+t.valueType+"' does not match '"+e.valueType+`'
|
42
42
|
`),t.description!==e.description&&(n+=" - Description '"+t.description+"' does not match '"+e.description+`'
|
43
|
-
`),n}function
|
44
|
-
- OR - create a new view with the name `+t.name+" and description '"+t.description+"' and InstrumentSelector "+
|
45
|
-
- OR - create a new view with the name `+e.name+" and description '"+t.description+"' and InstrumentSelector "+
|
43
|
+
`),n}function d8(t,e){return" - use valueType '"+t.valueType+"' on instrument creation or use an instrument name other than '"+e.name+"'"}function E8(t,e){return" - use unit '"+t.unit+"' on instrument creation or use an instrument name other than '"+e.name+"'"}function _8(t,e){var n={name:e.name,type:e.type,unit:e.unit},i=JSON.stringify(n);return" - create a new view with a name other than '"+t.name+"' and InstrumentSelector '"+i+"'"}function S8(t,e){var n={name:e.name,type:e.type,unit:e.unit},i=JSON.stringify(n);return" - create a new view with a name other than '"+t.name+"' and InstrumentSelector '"+i+`'
|
44
|
+
- OR - create a new view with the name `+t.name+" and description '"+t.description+"' and InstrumentSelector "+i+`
|
45
|
+
- OR - create a new view with the name `+e.name+" and description '"+t.description+"' and InstrumentSelector "+i}function Bp(t,e){return t.valueType!==e.valueType?d8(t,e):t.unit!==e.unit?E8(t,e):t.type!==e.type?_8(t,e):t.description!==e.description?S8(t,e):""}var Vx=m(()=>{});var Gp,Bx,Gx=m(()=>{Gt();b();Vx();Gp=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Bx=function(){function t(){this._sharedRegistry=new Map,this._perCollectorRegistry=new Map}return t.create=function(){return new t},t.prototype.getStorages=function(e){var n,i,a,s,o=[];try{for(var r=Gp(this._sharedRegistry.values()),u=r.next();!u.done;u=r.next()){var l=u.value;o=o.concat(l)}}catch(f){n={error:f}}finally{try{u&&!u.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}var c=this._perCollectorRegistry.get(e);if(c!=null)try{for(var p=Gp(c.values()),_=p.next();!_.done;_=p.next()){var l=_.value;o=o.concat(l)}}catch(f){a={error:f}}finally{try{_&&!_.done&&(s=p.return)&&s.call(p)}finally{if(a)throw a.error}}return o},t.prototype.register=function(e){this._registerStorage(e,this._sharedRegistry)},t.prototype.registerForCollector=function(e,n){var i=this._perCollectorRegistry.get(e);i==null&&(i=new Map,this._perCollectorRegistry.set(e,i)),this._registerStorage(n,i)},t.prototype.findOrUpdateCompatibleStorage=function(e){var n=this._sharedRegistry.get(e.name);return n===void 0?null:this._findOrUpdateCompatibleStorage(e,n)},t.prototype.findOrUpdateCompatibleCollectorStorage=function(e,n){var i=this._perCollectorRegistry.get(e);if(i===void 0)return null;var a=i.get(n.name);return a===void 0?null:this._findOrUpdateCompatibleStorage(n,a)},t.prototype._registerStorage=function(e,n){var i=e.getInstrumentDescriptor(),a=n.get(i.name);if(a===void 0){n.set(i.name,[e]);return}a.push(e)},t.prototype._findOrUpdateCompatibleStorage=function(e,n){var i,a,s=null;try{for(var o=Gp(n),r=o.next();!r.done;r=o.next()){var u=r.value,l=u.getInstrumentDescriptor();jM(l,e)?(l.description!==e.description&&(e.description.length>l.description.length&&u.updateDescription(e.description),g.warn("A view or instrument with the name ",e.name,` has already been registered, but has a different description and is incompatible with another registered view.
|
46
46
|
`,`Details:
|
47
|
-
`,
|
48
|
-
To resolve the conflict:`,
|
47
|
+
`,Vp(l,e),`The longer description will be used.
|
48
|
+
To resolve the conflict:`,Bp(l,e))),s=u):g.warn("A view or instrument with the name ",e.name,` has already been registered and is incompatible with another registered view.
|
49
49
|
`,`Details:
|
50
|
-
`,
|
51
|
-
`,wp(l,e))}}catch(c){o={error:c}}finally{try{r&&!r.done&&(a=i.return)&&a.call(i)}finally{if(o)throw o.error}}return u},t}()});var Aw,bw=E(()=>{Aw=function(){function t(e){this._backingStorages=e}return t.prototype.record=function(e,n,o,a){this._backingStorages.forEach(function(u){u.record(e,n,o,a)})},t}()});var xw,Nw,Rw=E(()=>{w();io();Gu();xw=function(){function t(e,n){this._instrumentName=e,this._valueType=n,this._buffer=new ft}return t.prototype.observe=function(e,n){if(n===void 0&&(n={}),typeof e!="number"){A.warn("non-number value provided to metric "+this._instrumentName+": "+e);return}this._valueType===pt.INT&&!Number.isInteger(e)&&(A.warn("INT value type cannot accept a floating-point value for "+this._instrumentName+", ignoring the fractional digits."),e=Math.trunc(e),!Number.isInteger(e))||this._buffer.set(n,e)},t}(),Nw=function(){function t(){this._buffer=new Map}return t.prototype.observe=function(e,n,o){if(o===void 0&&(o={}),!!no(e)){var a=this._buffer.get(e);if(a==null&&(a=new ft,this._buffer.set(e,a)),typeof n!="number"){A.warn("non-number value provided to metric "+e._descriptor.name+": "+n);return}e._descriptor.valueType===pt.INT&&!Number.isInteger(n)&&(A.warn("INT value type cannot accept a floating-point value for "+e._descriptor.name+", ignoring the fractional digits."),n=Math.trunc(n),!Number.isInteger(n))||a.set(o,n)}},t}()});var Ip,Lp,Pw,ww,Mw,Iw=E(()=>{w();Gu();Rw();Ot();Ip=function(t,e,n,o){function a(u){return u instanceof n?u:new n(function(i){i(u)})}return new(n||(n=Promise))(function(u,i){function r(c){try{l(o.next(c))}catch(p){i(p)}}function s(c){try{l(o.throw(c))}catch(p){i(p)}}function l(c){c.done?u(c.value):a(c.value).then(r,s)}l((o=o.apply(t,e||[])).next())})},Lp=function(t,e){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},o,a,u,i;return i={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function r(l){return function(c){return s([l,c])}}function s(l){if(o)throw new TypeError("Generator is already executing.");for(;n;)try{if(o=1,a&&(u=l[0]&2?a.return:l[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,l[1])).done)return u;switch(a=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(u=n.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){n.label=l[1];break}if(l[0]===6&&n.label<u[1]){n.label=u[1],u=l;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(l);break}u[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{o=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},Pw=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),a,u=[],i;try{for(;(e===void 0||e-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(r){i={error:r}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u},ww=function(t,e,n){if(n||arguments.length===2)for(var o=0,a=e.length,u;o<a;o++)(u||!(o in e))&&(u||(u=Array.prototype.slice.call(e,0,o)),u[o]=e[o]);return t.concat(u||Array.prototype.slice.call(e))},Mw=function(){function t(){this._callbacks=[],this._batchCallbacks=[]}return t.prototype.addCallback=function(e,n){var o=this._findCallback(e,n);o>=0||this._callbacks.push({callback:e,instrument:n})},t.prototype.removeCallback=function(e,n){var o=this._findCallback(e,n);o<0||this._callbacks.splice(o,1)},t.prototype.addBatchCallback=function(e,n){var o=new Set(n.filter(no));if(o.size===0){A.error("BatchObservableCallback is not associated with valid instruments",n);return}var a=this._findBatchCallback(e,o);a>=0||this._batchCallbacks.push({callback:e,instruments:o})},t.prototype.removeBatchCallback=function(e,n){var o=new Set(n.filter(no)),a=this._findBatchCallback(e,o);a<0||this._batchCallbacks.splice(a,1)},t.prototype.observe=function(e,n){return Ip(this,void 0,void 0,function(){var o,a,u,i;return Lp(this,function(r){switch(r.label){case 0:return o=this._observeCallbacks(e,n),a=this._observeBatchCallbacks(e,n),[4,EP(ww(ww([],Pw(o),!1),Pw(a),!1))];case 1:return u=r.sent(),i=u.filter(TP).map(function(s){return s.reason}),[2,i]}})})},t.prototype._observeCallbacks=function(e,n){var o=this;return this._callbacks.map(function(a){var u=a.callback,i=a.instrument;return Ip(o,void 0,void 0,function(){var r,s;return Lp(this,function(l){switch(l.label){case 0:return r=new xw(i._descriptor.name,i._descriptor.valueType),s=Promise.resolve(u(r)),n!=null&&(s=pr(s,n)),[4,s];case 1:return l.sent(),i._metricStorages.forEach(function(c){c.record(r._buffer,e)}),[2]}})})})},t.prototype._observeBatchCallbacks=function(e,n){var o=this;return this._batchCallbacks.map(function(a){var u=a.callback,i=a.instruments;return Ip(o,void 0,void 0,function(){var r,s;return Lp(this,function(l){switch(l.label){case 0:return r=new Nw,s=Promise.resolve(u(r)),n!=null&&(s=pr(s,n)),[4,s];case 1:return l.sent(),i.forEach(function(c){var p=r._buffer.get(c);p!=null&&c._metricStorages.forEach(function(m){m.record(p,e)})}),[2]}})})})},t.prototype._findCallback=function(e,n){return this._callbacks.findIndex(function(o){return o.callback===e&&o.instrument===n})},t.prototype._findBatchCallback=function(e,n){return this._batchCallbacks.findIndex(function(o){return o.callback===e&&gP(o.instruments,n)})},t}()});var H8,Lw,Cw=E(()=>{bp();xp();Rp();H8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(o[u]=a[u])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function o(){this.constructor=e}e.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),Lw=function(t){H8(e,t);function e(n,o,a,u){var i=t.call(this,n)||this;return i._attributesProcessor=a,i._deltaMetricStorage=new Fu(o),i._temporalMetricStorage=new Hu(o,u),i}return e.prototype.record=function(n,o,a,u){o=this._attributesProcessor.process(o,a),this._deltaMetricStorage.record(n,o,a,u)},e.prototype.collect=function(n,o){var a=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(n,this._instrumentDescriptor,a,o)},e}(qu)});var Uw,In,j8,Dw,Y8,Cp=E(()=>{Uw=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(o[u]=a[u])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function o(){this.constructor=e}e.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),In=function(){function t(){}return t.Noop=function(){return Y8},t}(),j8=function(t){Uw(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.process=function(n,o){return n},e}(In),Dw=function(t){Uw(e,t);function e(n){var o=t.call(this)||this;return o._allowedAttributeNames=n,o}return e.prototype.process=function(n,o){var a=this,u={};return Object.keys(n).filter(function(i){return a._allowedAttributeNames.includes(i)}).forEach(function(i){return u[i]=n[i]}),u},e}(In),Y8=new j8});var $8,K8,z8,Vw,kw=E(()=>{qt();vw();Ot();Ew();Ow();bw();Iw();Cw();Cp();$8=function(t,e,n,o){function a(u){return u instanceof n?u:new n(function(i){i(u)})}return new(n||(n=Promise))(function(u,i){function r(c){try{l(o.next(c))}catch(p){i(p)}}function s(c){try{l(o.throw(c))}catch(p){i(p)}}function l(c){c.done?u(c.value):a(c.value).then(r,s)}l((o=o.apply(t,e||[])).next())})},K8=function(t,e){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},o,a,u,i;return i={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function r(l){return function(c){return s([l,c])}}function s(l){if(o)throw new TypeError("Generator is already executing.");for(;n;)try{if(o=1,a&&(u=l[0]&2?a.return:l[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,l[1])).done)return u;switch(a=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(u=n.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){n.label=l[1];break}if(l[0]===6&&n.label<u[1]){n.label=u[1],u=l;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(l);break}u[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{o=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},z8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),a,u=[],i;try{for(;(e===void 0||e-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(r){i={error:r}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u},Vw=function(){function t(e,n){this._meterProviderSharedState=e,this._instrumentationScope=n,this.metricStorageRegistry=new gw,this.observableRegistry=new Mw,this.meter=new mw(this)}return t.prototype.registerMetricStorage=function(e){var n=this._registerMetricStorage(e,Lw);return n.length===1?n[0]:new Aw(n)},t.prototype.registerAsyncMetricStorage=function(e){var n=this._registerMetricStorage(e,Sw);return n},t.prototype.collect=function(e,n,o){return $8(this,void 0,void 0,function(){var a,u,i;return K8(this,function(r){switch(r.label){case 0:return[4,this.observableRegistry.observe(n,o?.timeoutMillis)];case 1:return a=r.sent(),u=this.metricStorageRegistry.getStorages(e),u.length===0?[2,null]:(i=u.map(function(s){return s.collect(e,n)}).filter(yP),i.length===0?[2,{errors:a}]:[2,{scopeMetrics:{scope:this._instrumentationScope,metrics:i},errors:a}])}})})},t.prototype._registerMetricStorage=function(e,n){var o=this,a=this._meterProviderSharedState.viewRegistry.findViews(e,this._instrumentationScope),u=a.map(function(s){var l=NP(s,e),c=o.metricStorageRegistry.findOrUpdateCompatibleStorage(l);if(c!=null)return c;var p=s.aggregation.createAggregator(l),m=new n(l,p,s.attributesProcessor,o._meterProviderSharedState.metricCollectors);return o.metricStorageRegistry.register(m),m});if(u.length===0){var i=this._meterProviderSharedState.selectAggregations(e.type),r=i.map(function(s){var l=z8(s,2),c=l[0],p=l[1],m=o.metricStorageRegistry.findOrUpdateCompatibleCollectorStorage(c,e);if(m!=null)return m;var f=p.createAggregator(e),v=new n(e,f,In.Noop(),[c]);return o.metricStorageRegistry.registerForCollector(c,v),v});u=u.concat(r)}return u},t}()});var W8,Bw,Gw=E(()=>{Ot();uw();kw();W8=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Bw=function(){function t(e){this.resource=e,this.viewRegistry=new aw,this.metricCollectors=[],this.meterSharedStates=new Map}return t.prototype.getMeterSharedState=function(e){var n=SP(e),o=this.meterSharedStates.get(n);return o==null&&(o=new Vw(this,e),this.meterSharedStates.set(n,o)),o},t.prototype.selectAggregations=function(e){var n,o,a=[];try{for(var u=W8(this.metricCollectors),i=u.next();!i.done;i=u.next()){var r=i.value;a.push([r,r.selectAggregation(e)])}}catch(s){n={error:s}}finally{try{i&&!i.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}return a},t}()});var ju,Yu,X8,J8,qw,Fw=E(()=>{F();ju=function(t,e,n,o){function a(u){return u instanceof n?u:new n(function(i){i(u)})}return new(n||(n=Promise))(function(u,i){function r(c){try{l(o.next(c))}catch(p){i(p)}}function s(c){try{l(o.throw(c))}catch(p){i(p)}}function l(c){c.done?u(c.value):a(c.value).then(r,s)}l((o=o.apply(t,e||[])).next())})},Yu=function(t,e){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},o,a,u,i;return i={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function r(l){return function(c){return s([l,c])}}function s(l){if(o)throw new TypeError("Generator is already executing.");for(;n;)try{if(o=1,a&&(u=l[0]&2?a.return:l[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,l[1])).done)return u;switch(a=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(u=n.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){n.label=l[1];break}if(l[0]===6&&n.label<u[1]){n.label=u[1],u=l;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(l);break}u[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{o=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},X8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),a,u=[],i;try{for(;(e===void 0||e-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(r){i={error:r}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u},J8=function(t,e,n){if(n||arguments.length===2)for(var o=0,a=e.length,u;o<a;o++)(u||!(o in e))&&(u||(u=Array.prototype.slice.call(e,0,o)),u[o]=e[o]);return t.concat(u||Array.prototype.slice.call(e))},qw=function(){function t(e,n){this._sharedState=e,this._metricReader=n}return t.prototype.collect=function(e){return ju(this,void 0,void 0,function(){var n,o,a,u,i=this;return Yu(this,function(r){switch(r.label){case 0:return n=be(Date.now()),o=[],a=[],u=Array.from(this._sharedState.meterSharedStates.values()).map(function(s){return ju(i,void 0,void 0,function(){var l;return Yu(this,function(c){switch(c.label){case 0:return[4,s.collect(this,n,e)];case 1:return l=c.sent(),l?.scopeMetrics!=null&&o.push(l.scopeMetrics),l?.errors!=null&&a.push.apply(a,J8([],X8(l.errors),!1)),[2]}})})}),[4,Promise.all(u)];case 1:return r.sent(),[2,{resourceMetrics:{resource:this._sharedState.resource,scopeMetrics:o},errors:a}]}})})},t.prototype.forceFlush=function(e){return ju(this,void 0,void 0,function(){return Yu(this,function(n){switch(n.label){case 0:return[4,this._metricReader.forceFlush(e)];case 1:return n.sent(),[2]}})})},t.prototype.shutdown=function(e){return ju(this,void 0,void 0,function(){return Yu(this,function(n){switch(n.label){case 0:return[4,this._metricReader.shutdown(e)];case 1:return n.sent(),[2]}})})},t.prototype.selectAggregationTemporality=function(e){return this._metricReader.selectAggregationTemporality(e)},t.prototype.selectAggregation=function(e){return this._metricReader.selectAggregation(e)},t}()});var Hw,jw,Yw,oo,$w=E(()=>{w();bu();Gw();Fw();Hw=function(t,e,n,o){function a(u){return u instanceof n?u:new n(function(i){i(u)})}return new(n||(n=Promise))(function(u,i){function r(c){try{l(o.next(c))}catch(p){i(p)}}function s(c){try{l(o.throw(c))}catch(p){i(p)}}function l(c){c.done?u(c.value):a(c.value).then(r,s)}l((o=o.apply(t,e||[])).next())})},jw=function(t,e){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},o,a,u,i;return i={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function r(l){return function(c){return s([l,c])}}function s(l){if(o)throw new TypeError("Generator is already executing.");for(;n;)try{if(o=1,a&&(u=l[0]&2?a.return:l[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,l[1])).done)return u;switch(a=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(u=n.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){n.label=l[1];break}if(l[0]===6&&n.label<u[1]){n.label=u[1],u=l;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(l);break}u[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{o=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},Yw=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},oo=function(){function t(e){var n,o,a,u,i;this._shutdown=!1;var r=Gt.default().merge((i=e?.resource)!==null&&i!==void 0?i:Gt.empty());if(this._sharedState=new Bw(r),e?.views!=null&&e.views.length>0)try{for(var s=Yw(e.views),l=s.next();!l.done;l=s.next()){var c=l.value;this._sharedState.viewRegistry.addView(c)}}catch(v){n={error:v}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}if(e?.readers!=null&&e.readers.length>0)try{for(var p=Yw(e.readers),m=p.next();!m.done;m=p.next()){var f=m.value;this.addMetricReader(f)}}catch(v){a={error:v}}finally{try{m&&!m.done&&(u=p.return)&&u.call(p)}finally{if(a)throw a.error}}}return t.prototype.getMeter=function(e,n,o){return n===void 0&&(n=""),o===void 0&&(o={}),this._shutdown?(A.warn("A shutdown MeterProvider cannot provide a Meter"),nh()):this._sharedState.getMeterSharedState({name:e,version:n,schemaUrl:o.schemaUrl}).meter},t.prototype.addMetricReader=function(e){var n=new qw(this._sharedState,e);e.setMetricProducer(n),this._sharedState.metricCollectors.push(n)},t.prototype.shutdown=function(e){return Hw(this,void 0,void 0,function(){return jw(this,function(n){switch(n.label){case 0:return this._shutdown?(A.warn("shutdown may only be called once per MeterProvider"),[2]):(this._shutdown=!0,[4,Promise.all(this._sharedState.metricCollectors.map(function(o){return o.shutdown(e)}))]);case 1:return n.sent(),[2]}})})},t.prototype.forceFlush=function(e){return Hw(this,void 0,void 0,function(){return jw(this,function(n){switch(n.label){case 0:return this._shutdown?(A.warn("invalid attempt to force flush after MeterProvider shutdown"),[2]):[4,Promise.all(this._sharedState.metricCollectors.map(function(o){return o.forceFlush(e)}))];case 1:return n.sent(),[2]}})})},t}()});var Q8,$u,Ln,Ku=E(()=>{Q8=/[\^$\\.+?()[\]{}|]/g,$u=function(){function t(e){e==="*"?(this._matchAll=!0,this._regexp=/.*/):(this._matchAll=!1,this._regexp=new RegExp(t.escapePattern(e)))}return t.prototype.match=function(e){return this._matchAll?!0:this._regexp.test(e)},t.escapePattern=function(e){return"^"+e.replace(Q8,"\\$&").replace("*",".*")+"$"},t.hasWildcard=function(e){return e.includes("*")},t}(),Ln=function(){function t(e){this._matchAll=e===void 0,this._pattern=e}return t.prototype.match=function(e){return!!(this._matchAll||e===this._pattern)},t}()});var Kw,zw=E(()=>{Ku();Kw=function(){function t(e){var n;this._nameFilter=new $u((n=e?.name)!==null&&n!==void 0?n:"*"),this._type=e?.type,this._unitFilter=new Ln(e?.unit)}return t.prototype.getType=function(){return this._type},t.prototype.getNameFilter=function(){return this._nameFilter},t.prototype.getUnitFilter=function(){return this._unitFilter},t}()});var Ww,Xw=E(()=>{Ku();Ww=function(){function t(e){this._nameFilter=new Ln(e?.name),this._versionFilter=new Ln(e?.version),this._schemaUrlFilter=new Ln(e?.schemaUrl)}return t.prototype.getNameFilter=function(){return this._nameFilter},t.prototype.getVersionFilter=function(){return this._versionFilter},t.prototype.getSchemaUrlFilter=function(){return this._schemaUrlFilter},t}()});function Z8(t){return t.instrumentName==null&&t.instrumentType==null&&t.instrumentUnit==null&&t.meterName==null&&t.meterVersion==null&&t.meterSchemaUrl==null}var Jw,Qw=E(()=>{Ku();Cp();zw();Xw();Cu();Jw=function(){function t(e){var n;if(Z8(e))throw new Error("Cannot create view with no selector arguments supplied");if(e.name!=null&&(e?.instrumentName==null||$u.hasWildcard(e.instrumentName)))throw new Error("Views with a specified name must be declared with an instrument selector that selects at most one instrument per meter.");e.attributeKeys!=null?this.attributesProcessor=new Dw(e.attributeKeys):this.attributesProcessor=In.Noop(),this.name=e.name,this.description=e.description,this.aggregation=(n=e.aggregation)!==null&&n!==void 0?n:Ue.Default(),this.instrumentSelector=new Kw({name:e.instrumentName,type:e.instrumentType,unit:e.instrumentUnit}),this.meterSelector=new Ww({name:e.meterName,version:e.meterVersion,schemaUrl:e.meterSchemaUrl})}return t}()});var Up={};it(Up,{Aggregation:()=>Ue,AggregationTemporality:()=>Te,ConsoleMetricExporter:()=>iw,DataPointType:()=>ge,DefaultAggregation:()=>Ep,DropAggregation:()=>hp,ExplicitBucketHistogramAggregation:()=>_p,ExponentialHistogramAggregation:()=>Sp,HistogramAggregation:()=>yp,InMemoryMetricExporter:()=>tw,InstrumentType:()=>C,LastValueAggregation:()=>vp,MeterProvider:()=>oo,MetricReader:()=>Du,PeriodicExportingMetricReader:()=>Vu,SumAggregation:()=>mp,TimeoutError:()=>Ji,View:()=>Jw});var Cn=E(()=>{xu();wn();Ap();ew();rw();ow();qt();$w();Cu();Qw();Ot()});var Un,Dp=E(()=>{(function(t){t[t.DELTA=0]="DELTA",t[t.CUMULATIVE=1]="CUMULATIVE",t[t.LOWMEMORY=2]="LOWMEMORY"})(Un||(Un={}))});function rK(){var t=q(),e=t.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE.trim().toLowerCase();return e==="cumulative"?zu:e==="delta"?Vp:e==="lowmemory"?kp:(A.warn("OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE is set to '"+t.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE+"', but only 'cumulative' and 'delta' are allowed. Using default ('cumulative') instead."),zu)}function nK(t){return t!=null?t===Un.DELTA?Vp:t===Un.LOWMEMORY?kp:zu:rK()}function iK(t){return t?.aggregationPreference?t.aggregationPreference:function(e){return Ue.Default()}}var eK,tK,zu,Vp,kp,Bp,Gp=E(()=>{F();Cn();Dp();w();eK=function(t,e,n,o){function a(u){return u instanceof n?u:new n(function(i){i(u)})}return new(n||(n=Promise))(function(u,i){function r(c){try{l(o.next(c))}catch(p){i(p)}}function s(c){try{l(o.throw(c))}catch(p){i(p)}}function l(c){c.done?u(c.value):a(c.value).then(r,s)}l((o=o.apply(t,e||[])).next())})},tK=function(t,e){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},o,a,u,i;return i={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function r(l){return function(c){return s([l,c])}}function s(l){if(o)throw new TypeError("Generator is already executing.");for(;n;)try{if(o=1,a&&(u=l[0]&2?a.return:l[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,l[1])).done)return u;switch(a=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(u=n.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){n.label=l[1];break}if(l[0]===6&&n.label<u[1]){n.label=u[1],u=l;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(l);break}u[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{o=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},zu=function(){return Te.CUMULATIVE},Vp=function(t){switch(t){case C.COUNTER:case C.OBSERVABLE_COUNTER:case C.GAUGE:case C.HISTOGRAM:case C.OBSERVABLE_GAUGE:return Te.DELTA;case C.UP_DOWN_COUNTER:case C.OBSERVABLE_UP_DOWN_COUNTER:return Te.CUMULATIVE}},kp=function(t){switch(t){case C.COUNTER:case C.HISTOGRAM:return Te.DELTA;case C.GAUGE:case C.UP_DOWN_COUNTER:case C.OBSERVABLE_UP_DOWN_COUNTER:case C.OBSERVABLE_COUNTER:case C.OBSERVABLE_GAUGE:return Te.CUMULATIVE}};Bp=function(){function t(e,n){this._otlpExporter=e,this._aggregationSelector=iK(n),this._aggregationTemporalitySelector=nK(n?.temporalityPreference)}return t.prototype.export=function(e,n){this._otlpExporter.export([e],n)},t.prototype.shutdown=function(){return eK(this,void 0,void 0,function(){return tK(this,function(e){switch(e.label){case 0:return[4,this._otlpExporter.shutdown()];case 1:return e.sent(),[2]}})})},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype.selectAggregation=function(e){return this._aggregationSelector(e)},t.prototype.selectAggregationTemporality=function(e){return this._aggregationTemporalitySelector(e)},t}()});function hr(t){t===void 0&&(t={});var e={};return Object.entries(t).forEach(function(n){var o=oK(n,2),a=o[0],u=o[1];typeof u<"u"?e[a]=String(u):A.warn('Header "'+a+'" has invalid value ('+u+") and will be ignored")}),e}function Zu(t,e){return t.endsWith("/")||(t=t+"/"),t+e}function es(t){try{var e=new URL(t);return e.pathname===""&&(e.pathname=e.pathname+"/"),e.toString()}catch{return A.warn("Could not parse export URL: '"+t+"'"),t}}function ts(t){return typeof t=="number"?t<=0?rs(t,Zw):t:aK()}function aK(){var t,e=Number((t=q().OTEL_EXPORTER_OTLP_TRACES_TIMEOUT)!==null&&t!==void 0?t:q().OTEL_EXPORTER_OTLP_TIMEOUT);return e<=0?rs(e,Zw):e}function rs(t,e){return A.warn("Timeout must be greater than 0",t),e}function ns(t){var e=[429,502,503,504];return e.includes(t)}function is(t){if(t==null)return-1;var e=Number.parseInt(t,10);if(Number.isInteger(e))return e>0?e*1e3:-1;var n=new Date(t).getTime()-Date.now();return n>=0?n:0}var oK,Zw,Wu,Xu,Ju,Qu,Hr=E(()=>{w();F();oK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),a,u=[],i;try{for(;(e===void 0||e-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(r){i={error:r}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u},Zw=1e4,Wu=5,Xu=1e3,Ju=5e3,Qu=1.5});var Dn,os=E(()=>{w();F();Hr();Dn=function(){function t(e){e===void 0&&(e={}),this._sendingPromises=[],this.url=this.getDefaultUrl(e),typeof e.hostname=="string"&&(this.hostname=e.hostname),this.shutdown=this.shutdown.bind(this),this._shutdownOnce=new Br(this._shutdown,this),this._concurrencyLimit=typeof e.concurrencyLimit=="number"?e.concurrencyLimit:30,this.timeoutMillis=ts(e.timeoutMillis),this.onInit(e)}return t.prototype.export=function(e,n){if(this._shutdownOnce.isCalled){n({code:ee.FAILED,error:new Error("Exporter has been shutdown")});return}if(this._sendingPromises.length>=this._concurrencyLimit){n({code:ee.FAILED,error:new Error("Concurrent export limit reached")});return}this._export(e).then(function(){n({code:ee.SUCCESS})}).catch(function(o){n({code:ee.FAILED,error:o})})},t.prototype._export=function(e){var n=this;return new Promise(function(o,a){try{A.debug("items to be sent",e),n.send(e,o,a)}catch(u){a(u)}})},t.prototype.shutdown=function(){return this._shutdownOnce.call()},t.prototype.forceFlush=function(){return Promise.all(this._sendingPromises).then(function(){})},t.prototype._shutdown=function(){return A.debug("shutdown started"),this.onShutdown(),this.forceFlush()},t}()});var bt,qp=E(()=>{(function(t){t.NONE="none",t.GZIP="gzip"})(bt||(bt={}))});var uK,Fe,as=E(()=>{uK=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(o[u]=a[u])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function o(){this.constructor=e}e.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),Fe=function(t){uK(e,t);function e(n,o,a){var u=t.call(this,n)||this;return u.name="OTLPExporterError",u.data=a,u.code=o,u}return e}(Error)});import*as Fp from"url";import*as ss from"http";import*as ls from"https";import*as eM from"zlib";import{Readable as sK}from"stream";function ao(t,e,n,o,a){var u=t.timeoutMillis,i=new Fp.URL(t.url),r=Number(process.versions.node.split(".")[0]),s,l,c=!1,p=setTimeout(function(){if(clearTimeout(s),c=!0,l.destroyed){var S=new Fe("Request Timeout");a(S)}else r>=14?l.destroy():l.abort()},u),m={hostname:i.hostname,port:i.port,path:i.pathname,method:"POST",headers:us({"Content-Type":n},t.headers),agent:t.agent},f=i.protocol==="http:"?ss.request:ls.request,v=function(S,_){switch(S===void 0&&(S=Wu),_===void 0&&(_=Xu),l=f(m,function(g){var b="";g.on("data",function(L){return b+=L}),g.on("aborted",function(){if(c){var L=new Fe("Request Timeout");a(L)}}),g.on("end",function(){if(c===!1)if(g.statusCode&&g.statusCode<299)A.debug("statusCode: "+g.statusCode,b),o(),clearTimeout(p),clearTimeout(s);else if(g.statusCode&&ns(g.statusCode)&&S>0){var L=void 0;_=Qu*_,g.headers["retry-after"]?L=is(g.headers["retry-after"]):L=Math.round(Math.random()*(Ju-_)+_),s=setTimeout(function(){v(S-1,_)},L)}else{var B=new Fe(g.statusMessage,g.statusCode,b);a(B),clearTimeout(p),clearTimeout(s)}})}),l.on("error",function(g){if(c){var b=new Fe("Request Timeout",g.code);a(b)}else a(g);clearTimeout(p),clearTimeout(s)}),l.on("abort",function(){if(c){var g=new Fe("Request Timeout");a(g)}clearTimeout(p),clearTimeout(s)}),t.compression){case bt.GZIP:{l.setHeader("Content-Encoding","gzip");var O=lK(e);O.on("error",a).pipe(eM.createGzip()).on("error",a).pipe(l);break}default:l.end(Buffer.from(e));break}};v()}function lK(t){var e=new sK;return e.push(t),e.push(null),e}function uo(t){if(t.httpAgentOptions&&t.keepAlive===!1){A.warn("httpAgentOptions is used only when keepAlive is true");return}if(!(t.keepAlive===!1||!t.url))try{var e=new Fp.URL(t.url),n=e.protocol==="http:"?ss.Agent:ls.Agent;return new n(us({keepAlive:!0},t.httpAgentOptions))}catch(o){A.error("collector exporter failed to create http agent. err: "+o.message);return}}function so(t){if(t)return t;var e=q().OTEL_EXPORTER_OTLP_TRACES_COMPRESSION||q().OTEL_EXPORTER_OTLP_COMPRESSION;return e===bt.GZIP?bt.GZIP:bt.NONE}var us,Hp=E(()=>{w();qp();F();as();Hr();us=function(){return us=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},us.apply(this,arguments)}});var cK,lo,tM=E(()=>{os();Hr();Hp();w();F();cK=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(o[u]=a[u])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function o(){this.constructor=e}e.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),lo=function(t){cK(e,t);function e(n,o,a){n===void 0&&(n={});var u=t.call(this,n)||this;return u.DEFAULT_HEADERS={},u._contentType=a,n.metadata&&A.warn("Metadata cannot be set when using http"),u.headers=Object.assign(u.DEFAULT_HEADERS,hr(n.headers),Vt.parseKeyPairsIntoRecord(q().OTEL_EXPORTER_OTLP_HEADERS)),u.agent=uo(n),u.compression=so(n.compression),u._serializer=o,u}return e.prototype.onInit=function(n){},e.prototype.send=function(n,o,a){var u=this;if(this._shutdownOnce.isCalled){A.debug("Shutdown already started. Cannot send objects");return}var i=new Promise(function(s,l){var c;ao(u,(c=u._serializer.serializeRequest(n))!==null&&c!==void 0?c:new Uint8Array,u._contentType,s,l)}).then(o,a);this._sendingPromises.push(i);var r=function(){var s=u._sendingPromises.indexOf(i);u._sendingPromises.splice(s,1)};i.then(r,r)},e.prototype.onShutdown=function(){},e}(Dn)});var rM=E(()=>{tM();Hp();qp()});function nM(t,e,n,o,a){if(navigator.sendBeacon(e,new Blob([t],n)))A.debug("sendBeacon - can send",t),o();else{var u=new Fe("sendBeacon - cannot send "+t);a(u)}}function co(t,e,n,o,a,u){var i,r,s=!1,l=setTimeout(function(){if(clearTimeout(i),s=!0,r.readyState===XMLHttpRequest.DONE){var p=new Fe("Request Timeout");u(p)}else r.abort()},o),c=function(p,m){p===void 0&&(p=Wu),m===void 0&&(m=Xu),r=new XMLHttpRequest,r.open("POST",e);var f={Accept:"application/json","Content-Type":"application/json"};Object.entries(cs(cs({},f),n)).forEach(function(v){var S=fK(v,2),_=S[0],O=S[1];r.setRequestHeader(_,O)}),r.send(t),r.onreadystatechange=function(){if(r.readyState===XMLHttpRequest.DONE&&s===!1)if(r.status>=200&&r.status<=299)A.debug("xhr success",t),a(),clearTimeout(l),clearTimeout(i);else if(r.status&&ns(r.status)&&p>0){var v=void 0;m=Qu*m,r.getResponseHeader("Retry-After")?v=is(r.getResponseHeader("Retry-After")):v=Math.round(Math.random()*(Ju-m)+m),i=setTimeout(function(){c(p-1,m)},v)}else{var S=new Fe("Failed to export with XHR (status: "+r.status+")",r.status);u(S),clearTimeout(l),clearTimeout(i)}},r.onabort=function(){if(s){var v=new Fe("Request Timeout");u(v)}clearTimeout(l),clearTimeout(i)},r.onerror=function(){if(s){var v=new Fe("Request Timeout");u(v)}clearTimeout(l),clearTimeout(i)}};c()}var cs,fK,jp=E(()=>{w();as();Hr();cs=function(){return cs=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},cs.apply(this,arguments)},fK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),a,u=[],i;try{for(;(e===void 0||e-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(r){i={error:r}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u}});var pK,fs,Yp,iM=E(()=>{os();Hr();jp();w();F();pK=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(o[u]=a[u])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function o(){this.constructor=e}e.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),fs=function(){return fs=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},fs.apply(this,arguments)},Yp=function(t){pK(e,t);function e(n,o,a){n===void 0&&(n={});var u=t.call(this,n)||this;return u._useXHR=!1,u._serializer=o,u._contentType=a,u._useXHR=!!n.headers||typeof navigator.sendBeacon!="function",u._useXHR?u._headers=Object.assign({},hr(n.headers),Vt.parseKeyPairsIntoRecord(q().OTEL_EXPORTER_OTLP_HEADERS)):u._headers={},u}return e.prototype.onInit=function(){},e.prototype.onShutdown=function(){},e.prototype.send=function(n,o,a){var u=this,i;if(this._shutdownOnce.isCalled){A.debug("Shutdown already started. Cannot send objects");return}var r=(i=this._serializer.serializeRequest(n))!==null&&i!==void 0?i:new Uint8Array,s=new Promise(function(c,p){u._useXHR?co(r,u.url,fs(fs({},u._headers),{"Content-Type":u._contentType}),u.timeoutMillis,c,p):nM(r,u.url,{type:u._contentType},c,p)}).then(o,a);this._sendingPromises.push(s);var l=function(){var c=u._sendingPromises.indexOf(s);u._sendingPromises.splice(c,1)};s.then(l,l)},e}(Dn)});var oM=E(()=>{iM();jp()});var aM=E(()=>{rM();oM()});var ps={};it(ps,{CompressionAlgorithm:()=>bt,OTLPExporterBase:()=>Dn,OTLPExporterBrowserBase:()=>Yp,OTLPExporterError:()=>Fe,OTLPExporterNodeBase:()=>lo,appendResourcePathToUrl:()=>Zu,appendRootPathToUrlIfNeeded:()=>es,configureCompression:()=>so,configureExporterTimeout:()=>ts,createHttpAgent:()=>uo,invalidTimeout:()=>rs,parseHeaders:()=>hr,sendWithHttp:()=>ao,sendWithXhr:()=>co});var fo=E(()=>{aM();os();as();Hr()});function ds(t){var e=BigInt(1e9);return BigInt(t[0])*e+BigInt(t[1])}function $p(t){var e=Number(BigInt.asUintN(32,t)),n=Number(BigInt.asUintN(32,t>>BigInt(32)));return{low:e,high:n}}function hs(t){var e=ds(t);return $p(e)}function Kp(t){var e=ds(t);return e.toString()}function uM(t){return t}function sM(t){if(t!==void 0)return Vr(t)}function mr(t){var e,n;if(t===void 0)return hK;var o=(e=t.useLongBits)!==null&&e!==void 0?e:!0,a=(n=t.useHex)!==null&&n!==void 0?n:!1;return{encodeHrTime:o?hs:dK,encodeSpanContext:a?uM:Vr,encodeOptionalSpanContext:a?uM:sM}}var dK,hK,po=E(()=>{F();dK=typeof BigInt<"u"?Kp:qf;hK={encodeHrTime:hs,encodeSpanContext:Vr,encodeOptionalSpanContext:sM}});var ms,lM=E(()=>{(function(t){t[t.SPAN_KIND_UNSPECIFIED=0]="SPAN_KIND_UNSPECIFIED",t[t.SPAN_KIND_INTERNAL=1]="SPAN_KIND_INTERNAL",t[t.SPAN_KIND_SERVER=2]="SPAN_KIND_SERVER",t[t.SPAN_KIND_CLIENT=3]="SPAN_KIND_CLIENT",t[t.SPAN_KIND_PRODUCER=4]="SPAN_KIND_PRODUCER",t[t.SPAN_KIND_CONSUMER=5]="SPAN_KIND_CONSUMER"})(ms||(ms={}))});function Vn(t){return{name:t.name,version:t.version}}function xt(t){return Object.keys(t).map(function(e){return vs(e,t[e])})}function vs(t,e){return{key:t,value:ys(e)}}function ys(t){var e=typeof t;return e==="string"?{stringValue:t}:e==="number"?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:e==="boolean"?{boolValue:t}:t instanceof Uint8Array?{bytesValue:t}:Array.isArray(t)?{arrayValue:{values:t.map(ys)}}:e==="object"&&t!=null?{kvlistValue:{values:Object.entries(t).map(function(n){var o=mK(n,2),a=o[0],u=o[1];return vs(a,u)})}}:{}}var mK,kn=E(()=>{mK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),a,u=[],i;try{for(;(e===void 0||e-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(r){i={error:r}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u}});function cM(t,e){var n,o=t.spanContext(),a=t.status;return{traceId:e.encodeSpanContext(o.traceId),spanId:e.encodeSpanContext(o.spanId),parentSpanId:e.encodeOptionalSpanContext(t.parentSpanId),traceState:(n=o.traceState)===null||n===void 0?void 0:n.serialize(),name:t.name,kind:t.kind==null?0:t.kind+1,startTimeUnixNano:e.encodeHrTime(t.startTime),endTimeUnixNano:e.encodeHrTime(t.endTime),attributes:xt(t.attributes),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map(function(u){return yK(u,e)}),droppedEventsCount:t.droppedEventsCount,status:{code:a.code,message:a.message},links:t.links.map(function(u){return vK(u,e)}),droppedLinksCount:t.droppedLinksCount}}function vK(t,e){var n;return{attributes:t.attributes?xt(t.attributes):[],spanId:e.encodeSpanContext(t.context.spanId),traceId:e.encodeSpanContext(t.context.traceId),traceState:(n=t.context.traceState)===null||n===void 0?void 0:n.serialize(),droppedAttributesCount:t.droppedAttributesCount||0}}function yK(t,e){return{attributes:t.attributes?xt(t.attributes):[],name:t.name,timeUnixNano:e.encodeHrTime(t.time),droppedAttributesCount:t.droppedAttributesCount||0}}var fM=E(()=>{kn()});function Bn(t){return{attributes:xt(t.attributes),droppedAttributesCount:0}}var _s=E(()=>{kn()});function Gn(t,e){var n=mr(e);return{resourceSpans:TK(t,n)}}function EK(t){var e,n,o=new Map;try{for(var a=_K(t),u=a.next();!u.done;u=a.next()){var i=u.value,r=o.get(i.resource);r||(r=new Map,o.set(i.resource,r));var s=i.instrumentationLibrary.name+"@"+(i.instrumentationLibrary.version||"")+":"+(i.instrumentationLibrary.schemaUrl||""),l=r.get(s);l||(l=[],r.set(s,l)),l.push(i)}}catch(c){e={error:c}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return o}function TK(t,e){for(var n=EK(t),o=[],a=n.entries(),u=a.next();!u.done;){for(var i=SK(u.value,2),r=i[0],s=i[1],l=[],c=s.values(),p=c.next();!p.done;){var m=p.value;if(m.length>0){var f=m.map(function(S){return cM(S,e)});l.push({scope:Vn(m[0].instrumentationLibrary),spans:f,schemaUrl:m[0].instrumentationLibrary.schemaUrl})}p=c.next()}var v={resource:Bn(r),scopeSpans:l,schemaUrl:void 0};o.push(v),u=a.next()}return o}var _K,SK,Ss=E(()=>{fM();po();kn();_s();_K=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},SK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),a,u=[],i;try{for(;(e===void 0||e-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(r){i={error:r}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u}});function dM(t,e){var n=mr(e);return{resource:Bn(t.resource),schemaUrl:void 0,scopeMetrics:gK(t.scopeMetrics,n)}}function gK(t,e){return Array.from(t.map(function(n){return{scope:Vn(n.scope),metrics:n.metrics.map(function(o){return OK(o,e)}),schemaUrl:n.scope.schemaUrl}}))}function OK(t,e){var n={name:t.descriptor.name,description:t.descriptor.description,unit:t.descriptor.unit},o=NK(t.aggregationTemporality);switch(t.dataPointType){case ge.SUM:n.sum={aggregationTemporality:o,isMonotonic:t.isMonotonic,dataPoints:pM(t,e)};break;case ge.GAUGE:n.gauge={dataPoints:pM(t,e)};break;case ge.HISTOGRAM:n.histogram={aggregationTemporality:o,dataPoints:bK(t,e)};break;case ge.EXPONENTIAL_HISTOGRAM:n.exponentialHistogram={aggregationTemporality:o,dataPoints:xK(t,e)};break}return n}function AK(t,e,n){var o={attributes:xt(t.attributes),startTimeUnixNano:n.encodeHrTime(t.startTime),timeUnixNano:n.encodeHrTime(t.endTime)};switch(e){case pt.INT:o.asInt=t.value;break;case pt.DOUBLE:o.asDouble=t.value;break}return o}function pM(t,e){return t.dataPoints.map(function(n){return AK(n,t.descriptor.valueType,e)})}function bK(t,e){return t.dataPoints.map(function(n){var o=n.value;return{attributes:xt(n.attributes),bucketCounts:o.buckets.counts,explicitBounds:o.buckets.boundaries,count:o.count,sum:o.sum,min:o.min,max:o.max,startTimeUnixNano:e.encodeHrTime(n.startTime),timeUnixNano:e.encodeHrTime(n.endTime)}})}function xK(t,e){return t.dataPoints.map(function(n){var o=n.value;return{attributes:xt(n.attributes),count:o.count,min:o.min,max:o.max,sum:o.sum,positive:{offset:o.positive.offset,bucketCounts:o.positive.bucketCounts},negative:{offset:o.negative.offset,bucketCounts:o.negative.bucketCounts},scale:o.scale,zeroCount:o.zeroCount,startTimeUnixNano:e.encodeHrTime(n.startTime),timeUnixNano:e.encodeHrTime(n.endTime)}})}function NK(t){switch(t){case Te.DELTA:return 1;case Te.CUMULATIVE:return 2}}var hM=E(()=>{w();Cn();po();kn();_s()});function qn(t,e){return{resourceMetrics:t.map(function(n){return dM(n,e)})}}var Es=E(()=>{hM()});function Fn(t,e){var n=mr(e);return{resourceLogs:wK(t,n)}}function PK(t){var e,n,o=new Map;try{for(var a=RK(t),u=a.next();!u.done;u=a.next()){var i=u.value,r=i.resource,s=i.instrumentationScope,l=s.name,c=s.version,p=c===void 0?"":c,m=s.schemaUrl,f=m===void 0?"":m,v=o.get(r);v||(v=new Map,o.set(r,v));var S=l+"@"+p+":"+f,_=v.get(S);_||(_=[],v.set(S,_)),_.push(i)}}catch(O){e={error:O}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return o}function wK(t,e){var n=PK(t);return Array.from(n,function(o){var a=mM(o,2),u=a[0],i=a[1];return{resource:Bn(u),scopeLogs:Array.from(i,function(r){var s=mM(r,2),l=s[1];return{scope:Vn(l[0].instrumentationScope),logRecords:l.map(function(c){return MK(c,e)}),schemaUrl:l[0].instrumentationScope.schemaUrl}}),schemaUrl:void 0}})}function MK(t,e){var n,o,a;return{timeUnixNano:e.encodeHrTime(t.hrTime),observedTimeUnixNano:e.encodeHrTime(t.hrTimeObserved),severityNumber:t.severityNumber,severityText:t.severityText,body:ys(t.body),attributes:IK(t.attributes),droppedAttributesCount:t.droppedAttributesCount,flags:(n=t.spanContext)===null||n===void 0?void 0:n.traceFlags,traceId:e.encodeOptionalSpanContext((o=t.spanContext)===null||o===void 0?void 0:o.traceId),spanId:e.encodeOptionalSpanContext((a=t.spanContext)===null||a===void 0?void 0:a.spanId)}}function IK(t){return Object.keys(t).map(function(e){return vs(e,t[e])})}var RK,mM,Ts=E(()=>{po();kn();_s();RK=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},mM=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),a,u=[],i;try{for(;(e===void 0||e-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(r){i={error:r}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u}});var yM=y((Vae,vM)=>{"use strict";var I=Q1(),T=I.Reader,V=I.Writer,h=I.util,d=I.roots.default||(I.roots.default={});d.opentelemetry=function(){var t={};return t.proto=function(){var e={};return e.common=function(){var n={};return n.v1=function(){var o={};return o.AnyValue=function(){function a(i){if(i)for(var r=Object.keys(i),s=0;s<r.length;++s)i[r[s]]!=null&&(this[r[s]]=i[r[s]])}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:h.oneOfGetter(u=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"]),set:h.oneOfSetter(u)}),a.create=function(r){return new a(r)},a.encode=function(r,s){return s||(s=V.create()),r.stringValue!=null&&Object.hasOwnProperty.call(r,"stringValue")&&s.uint32(10).string(r.stringValue),r.boolValue!=null&&Object.hasOwnProperty.call(r,"boolValue")&&s.uint32(16).bool(r.boolValue),r.intValue!=null&&Object.hasOwnProperty.call(r,"intValue")&&s.uint32(24).int64(r.intValue),r.doubleValue!=null&&Object.hasOwnProperty.call(r,"doubleValue")&&s.uint32(33).double(r.doubleValue),r.arrayValue!=null&&Object.hasOwnProperty.call(r,"arrayValue")&&d.opentelemetry.proto.common.v1.ArrayValue.encode(r.arrayValue,s.uint32(42).fork()).ldelim(),r.kvlistValue!=null&&Object.hasOwnProperty.call(r,"kvlistValue")&&d.opentelemetry.proto.common.v1.KeyValueList.encode(r.kvlistValue,s.uint32(50).fork()).ldelim(),r.bytesValue!=null&&Object.hasOwnProperty.call(r,"bytesValue")&&s.uint32(58).bytes(r.bytesValue),s},a.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},a.decode=function(r,s){r instanceof T||(r=T.create(r));for(var l=s===void 0?r.len:r.pos+s,c=new d.opentelemetry.proto.common.v1.AnyValue;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.stringValue=r.string();break}case 2:{c.boolValue=r.bool();break}case 3:{c.intValue=r.int64();break}case 4:{c.doubleValue=r.double();break}case 5:{c.arrayValue=d.opentelemetry.proto.common.v1.ArrayValue.decode(r,r.uint32());break}case 6:{c.kvlistValue=d.opentelemetry.proto.common.v1.KeyValueList.decode(r,r.uint32());break}case 7:{c.bytesValue=r.bytes();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof T||(r=new T(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var s={};if(r.stringValue!=null&&r.hasOwnProperty("stringValue")&&(s.value=1,!h.isString(r.stringValue)))return"stringValue: string expected";if(r.boolValue!=null&&r.hasOwnProperty("boolValue")){if(s.value===1)return"value: multiple values";if(s.value=1,typeof r.boolValue!="boolean")return"boolValue: boolean expected"}if(r.intValue!=null&&r.hasOwnProperty("intValue")){if(s.value===1)return"value: multiple values";if(s.value=1,!h.isInteger(r.intValue)&&!(r.intValue&&h.isInteger(r.intValue.low)&&h.isInteger(r.intValue.high)))return"intValue: integer|Long expected"}if(r.doubleValue!=null&&r.hasOwnProperty("doubleValue")){if(s.value===1)return"value: multiple values";if(s.value=1,typeof r.doubleValue!="number")return"doubleValue: number expected"}if(r.arrayValue!=null&&r.hasOwnProperty("arrayValue")){if(s.value===1)return"value: multiple values";s.value=1;{var l=d.opentelemetry.proto.common.v1.ArrayValue.verify(r.arrayValue);if(l)return"arrayValue."+l}}if(r.kvlistValue!=null&&r.hasOwnProperty("kvlistValue")){if(s.value===1)return"value: multiple values";s.value=1;{var l=d.opentelemetry.proto.common.v1.KeyValueList.verify(r.kvlistValue);if(l)return"kvlistValue."+l}}if(r.bytesValue!=null&&r.hasOwnProperty("bytesValue")){if(s.value===1)return"value: multiple values";if(s.value=1,!(r.bytesValue&&typeof r.bytesValue.length=="number"||h.isString(r.bytesValue)))return"bytesValue: buffer expected"}return null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.common.v1.AnyValue)return r;var s=new d.opentelemetry.proto.common.v1.AnyValue;if(r.stringValue!=null&&(s.stringValue=String(r.stringValue)),r.boolValue!=null&&(s.boolValue=!!r.boolValue),r.intValue!=null&&(h.Long?(s.intValue=h.Long.fromValue(r.intValue)).unsigned=!1:typeof r.intValue=="string"?s.intValue=parseInt(r.intValue,10):typeof r.intValue=="number"?s.intValue=r.intValue:typeof r.intValue=="object"&&(s.intValue=new h.LongBits(r.intValue.low>>>0,r.intValue.high>>>0).toNumber())),r.doubleValue!=null&&(s.doubleValue=Number(r.doubleValue)),r.arrayValue!=null){if(typeof r.arrayValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.arrayValue: object expected");s.arrayValue=d.opentelemetry.proto.common.v1.ArrayValue.fromObject(r.arrayValue)}if(r.kvlistValue!=null){if(typeof r.kvlistValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.kvlistValue: object expected");s.kvlistValue=d.opentelemetry.proto.common.v1.KeyValueList.fromObject(r.kvlistValue)}return r.bytesValue!=null&&(typeof r.bytesValue=="string"?h.base64.decode(r.bytesValue,s.bytesValue=h.newBuffer(h.base64.length(r.bytesValue)),0):r.bytesValue.length>=0&&(s.bytesValue=r.bytesValue)),s},a.toObject=function(r,s){s||(s={});var l={};return r.stringValue!=null&&r.hasOwnProperty("stringValue")&&(l.stringValue=r.stringValue,s.oneofs&&(l.value="stringValue")),r.boolValue!=null&&r.hasOwnProperty("boolValue")&&(l.boolValue=r.boolValue,s.oneofs&&(l.value="boolValue")),r.intValue!=null&&r.hasOwnProperty("intValue")&&(typeof r.intValue=="number"?l.intValue=s.longs===String?String(r.intValue):r.intValue:l.intValue=s.longs===String?h.Long.prototype.toString.call(r.intValue):s.longs===Number?new h.LongBits(r.intValue.low>>>0,r.intValue.high>>>0).toNumber():r.intValue,s.oneofs&&(l.value="intValue")),r.doubleValue!=null&&r.hasOwnProperty("doubleValue")&&(l.doubleValue=s.json&&!isFinite(r.doubleValue)?String(r.doubleValue):r.doubleValue,s.oneofs&&(l.value="doubleValue")),r.arrayValue!=null&&r.hasOwnProperty("arrayValue")&&(l.arrayValue=d.opentelemetry.proto.common.v1.ArrayValue.toObject(r.arrayValue,s),s.oneofs&&(l.value="arrayValue")),r.kvlistValue!=null&&r.hasOwnProperty("kvlistValue")&&(l.kvlistValue=d.opentelemetry.proto.common.v1.KeyValueList.toObject(r.kvlistValue,s),s.oneofs&&(l.value="kvlistValue")),r.bytesValue!=null&&r.hasOwnProperty("bytesValue")&&(l.bytesValue=s.bytes===String?h.base64.encode(r.bytesValue,0,r.bytesValue.length):s.bytes===Array?Array.prototype.slice.call(r.bytesValue):r.bytesValue,s.oneofs&&(l.value="bytesValue")),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.common.v1.AnyValue"},a}(),o.ArrayValue=function(){function a(u){if(this.values=[],u)for(var i=Object.keys(u),r=0;r<i.length;++r)u[i[r]]!=null&&(this[i[r]]=u[i[r]])}return a.prototype.values=h.emptyArray,a.create=function(i){return new a(i)},a.encode=function(i,r){if(r||(r=V.create()),i.values!=null&&i.values.length)for(var s=0;s<i.values.length;++s)d.opentelemetry.proto.common.v1.AnyValue.encode(i.values[s],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(i,r){return this.encode(i,r).ldelim()},a.decode=function(i,r){i instanceof T||(i=T.create(i));for(var s=r===void 0?i.len:i.pos+r,l=new d.opentelemetry.proto.common.v1.ArrayValue;i.pos<s;){var c=i.uint32();switch(c>>>3){case 1:{l.values&&l.values.length||(l.values=[]),l.values.push(d.opentelemetry.proto.common.v1.AnyValue.decode(i,i.uint32()));break}default:i.skipType(c&7);break}}return l},a.decodeDelimited=function(i){return i instanceof T||(i=new T(i)),this.decode(i,i.uint32())},a.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.values!=null&&i.hasOwnProperty("values")){if(!Array.isArray(i.values))return"values: array expected";for(var r=0;r<i.values.length;++r){var s=d.opentelemetry.proto.common.v1.AnyValue.verify(i.values[r]);if(s)return"values."+s}}return null},a.fromObject=function(i){if(i instanceof d.opentelemetry.proto.common.v1.ArrayValue)return i;var r=new d.opentelemetry.proto.common.v1.ArrayValue;if(i.values){if(!Array.isArray(i.values))throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: array expected");r.values=[];for(var s=0;s<i.values.length;++s){if(typeof i.values[s]!="object")throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: object expected");r.values[s]=d.opentelemetry.proto.common.v1.AnyValue.fromObject(i.values[s])}}return r},a.toObject=function(i,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.values=[]),i.values&&i.values.length){s.values=[];for(var l=0;l<i.values.length;++l)s.values[l]=d.opentelemetry.proto.common.v1.AnyValue.toObject(i.values[l],r)}return s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.common.v1.ArrayValue"},a}(),o.KeyValueList=function(){function a(u){if(this.values=[],u)for(var i=Object.keys(u),r=0;r<i.length;++r)u[i[r]]!=null&&(this[i[r]]=u[i[r]])}return a.prototype.values=h.emptyArray,a.create=function(i){return new a(i)},a.encode=function(i,r){if(r||(r=V.create()),i.values!=null&&i.values.length)for(var s=0;s<i.values.length;++s)d.opentelemetry.proto.common.v1.KeyValue.encode(i.values[s],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(i,r){return this.encode(i,r).ldelim()},a.decode=function(i,r){i instanceof T||(i=T.create(i));for(var s=r===void 0?i.len:i.pos+r,l=new d.opentelemetry.proto.common.v1.KeyValueList;i.pos<s;){var c=i.uint32();switch(c>>>3){case 1:{l.values&&l.values.length||(l.values=[]),l.values.push(d.opentelemetry.proto.common.v1.KeyValue.decode(i,i.uint32()));break}default:i.skipType(c&7);break}}return l},a.decodeDelimited=function(i){return i instanceof T||(i=new T(i)),this.decode(i,i.uint32())},a.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.values!=null&&i.hasOwnProperty("values")){if(!Array.isArray(i.values))return"values: array expected";for(var r=0;r<i.values.length;++r){var s=d.opentelemetry.proto.common.v1.KeyValue.verify(i.values[r]);if(s)return"values."+s}}return null},a.fromObject=function(i){if(i instanceof d.opentelemetry.proto.common.v1.KeyValueList)return i;var r=new d.opentelemetry.proto.common.v1.KeyValueList;if(i.values){if(!Array.isArray(i.values))throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: array expected");r.values=[];for(var s=0;s<i.values.length;++s){if(typeof i.values[s]!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: object expected");r.values[s]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(i.values[s])}}return r},a.toObject=function(i,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.values=[]),i.values&&i.values.length){s.values=[];for(var l=0;l<i.values.length;++l)s.values[l]=d.opentelemetry.proto.common.v1.KeyValue.toObject(i.values[l],r)}return s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.common.v1.KeyValueList"},a}(),o.KeyValue=function(){function a(u){if(u)for(var i=Object.keys(u),r=0;r<i.length;++r)u[i[r]]!=null&&(this[i[r]]=u[i[r]])}return a.prototype.key=null,a.prototype.value=null,a.create=function(i){return new a(i)},a.encode=function(i,r){return r||(r=V.create()),i.key!=null&&Object.hasOwnProperty.call(i,"key")&&r.uint32(10).string(i.key),i.value!=null&&Object.hasOwnProperty.call(i,"value")&&d.opentelemetry.proto.common.v1.AnyValue.encode(i.value,r.uint32(18).fork()).ldelim(),r},a.encodeDelimited=function(i,r){return this.encode(i,r).ldelim()},a.decode=function(i,r){i instanceof T||(i=T.create(i));for(var s=r===void 0?i.len:i.pos+r,l=new d.opentelemetry.proto.common.v1.KeyValue;i.pos<s;){var c=i.uint32();switch(c>>>3){case 1:{l.key=i.string();break}case 2:{l.value=d.opentelemetry.proto.common.v1.AnyValue.decode(i,i.uint32());break}default:i.skipType(c&7);break}}return l},a.decodeDelimited=function(i){return i instanceof T||(i=new T(i)),this.decode(i,i.uint32())},a.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.key!=null&&i.hasOwnProperty("key")&&!h.isString(i.key))return"key: string expected";if(i.value!=null&&i.hasOwnProperty("value")){var r=d.opentelemetry.proto.common.v1.AnyValue.verify(i.value);if(r)return"value."+r}return null},a.fromObject=function(i){if(i instanceof d.opentelemetry.proto.common.v1.KeyValue)return i;var r=new d.opentelemetry.proto.common.v1.KeyValue;if(i.key!=null&&(r.key=String(i.key)),i.value!=null){if(typeof i.value!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValue.value: object expected");r.value=d.opentelemetry.proto.common.v1.AnyValue.fromObject(i.value)}return r},a.toObject=function(i,r){r||(r={});var s={};return r.defaults&&(s.key="",s.value=null),i.key!=null&&i.hasOwnProperty("key")&&(s.key=i.key),i.value!=null&&i.hasOwnProperty("value")&&(s.value=d.opentelemetry.proto.common.v1.AnyValue.toObject(i.value,r)),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.common.v1.KeyValue"},a}(),o.InstrumentationScope=function(){function a(u){if(this.attributes=[],u)for(var i=Object.keys(u),r=0;r<i.length;++r)u[i[r]]!=null&&(this[i[r]]=u[i[r]])}return a.prototype.name=null,a.prototype.version=null,a.prototype.attributes=h.emptyArray,a.prototype.droppedAttributesCount=null,a.create=function(i){return new a(i)},a.encode=function(i,r){if(r||(r=V.create()),i.name!=null&&Object.hasOwnProperty.call(i,"name")&&r.uint32(10).string(i.name),i.version!=null&&Object.hasOwnProperty.call(i,"version")&&r.uint32(18).string(i.version),i.attributes!=null&&i.attributes.length)for(var s=0;s<i.attributes.length;++s)d.opentelemetry.proto.common.v1.KeyValue.encode(i.attributes[s],r.uint32(26).fork()).ldelim();return i.droppedAttributesCount!=null&&Object.hasOwnProperty.call(i,"droppedAttributesCount")&&r.uint32(32).uint32(i.droppedAttributesCount),r},a.encodeDelimited=function(i,r){return this.encode(i,r).ldelim()},a.decode=function(i,r){i instanceof T||(i=T.create(i));for(var s=r===void 0?i.len:i.pos+r,l=new d.opentelemetry.proto.common.v1.InstrumentationScope;i.pos<s;){var c=i.uint32();switch(c>>>3){case 1:{l.name=i.string();break}case 2:{l.version=i.string();break}case 3:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(i,i.uint32()));break}case 4:{l.droppedAttributesCount=i.uint32();break}default:i.skipType(c&7);break}}return l},a.decodeDelimited=function(i){return i instanceof T||(i=new T(i)),this.decode(i,i.uint32())},a.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.name!=null&&i.hasOwnProperty("name")&&!h.isString(i.name))return"name: string expected";if(i.version!=null&&i.hasOwnProperty("version")&&!h.isString(i.version))return"version: string expected";if(i.attributes!=null&&i.hasOwnProperty("attributes")){if(!Array.isArray(i.attributes))return"attributes: array expected";for(var r=0;r<i.attributes.length;++r){var s=d.opentelemetry.proto.common.v1.KeyValue.verify(i.attributes[r]);if(s)return"attributes."+s}}return i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&!h.isInteger(i.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},a.fromObject=function(i){if(i instanceof d.opentelemetry.proto.common.v1.InstrumentationScope)return i;var r=new d.opentelemetry.proto.common.v1.InstrumentationScope;if(i.name!=null&&(r.name=String(i.name)),i.version!=null&&(r.version=String(i.version)),i.attributes){if(!Array.isArray(i.attributes))throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: array expected");r.attributes=[];for(var s=0;s<i.attributes.length;++s){if(typeof i.attributes[s]!="object")throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: object expected");r.attributes[s]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(i.attributes[s])}}return i.droppedAttributesCount!=null&&(r.droppedAttributesCount=i.droppedAttributesCount>>>0),r},a.toObject=function(i,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.attributes=[]),r.defaults&&(s.name="",s.version="",s.droppedAttributesCount=0),i.name!=null&&i.hasOwnProperty("name")&&(s.name=i.name),i.version!=null&&i.hasOwnProperty("version")&&(s.version=i.version),i.attributes&&i.attributes.length){s.attributes=[];for(var l=0;l<i.attributes.length;++l)s.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.toObject(i.attributes[l],r)}return i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&(s.droppedAttributesCount=i.droppedAttributesCount),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.common.v1.InstrumentationScope"},a}(),o}(),n}(),e.resource=function(){var n={};return n.v1=function(){var o={};return o.Resource=function(){function a(u){if(this.attributes=[],u)for(var i=Object.keys(u),r=0;r<i.length;++r)u[i[r]]!=null&&(this[i[r]]=u[i[r]])}return a.prototype.attributes=h.emptyArray,a.prototype.droppedAttributesCount=null,a.create=function(i){return new a(i)},a.encode=function(i,r){if(r||(r=V.create()),i.attributes!=null&&i.attributes.length)for(var s=0;s<i.attributes.length;++s)d.opentelemetry.proto.common.v1.KeyValue.encode(i.attributes[s],r.uint32(10).fork()).ldelim();return i.droppedAttributesCount!=null&&Object.hasOwnProperty.call(i,"droppedAttributesCount")&&r.uint32(16).uint32(i.droppedAttributesCount),r},a.encodeDelimited=function(i,r){return this.encode(i,r).ldelim()},a.decode=function(i,r){i instanceof T||(i=T.create(i));for(var s=r===void 0?i.len:i.pos+r,l=new d.opentelemetry.proto.resource.v1.Resource;i.pos<s;){var c=i.uint32();switch(c>>>3){case 1:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(i,i.uint32()));break}case 2:{l.droppedAttributesCount=i.uint32();break}default:i.skipType(c&7);break}}return l},a.decodeDelimited=function(i){return i instanceof T||(i=new T(i)),this.decode(i,i.uint32())},a.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.attributes!=null&&i.hasOwnProperty("attributes")){if(!Array.isArray(i.attributes))return"attributes: array expected";for(var r=0;r<i.attributes.length;++r){var s=d.opentelemetry.proto.common.v1.KeyValue.verify(i.attributes[r]);if(s)return"attributes."+s}}return i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&!h.isInteger(i.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},a.fromObject=function(i){if(i instanceof d.opentelemetry.proto.resource.v1.Resource)return i;var r=new d.opentelemetry.proto.resource.v1.Resource;if(i.attributes){if(!Array.isArray(i.attributes))throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: array expected");r.attributes=[];for(var s=0;s<i.attributes.length;++s){if(typeof i.attributes[s]!="object")throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: object expected");r.attributes[s]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(i.attributes[s])}}return i.droppedAttributesCount!=null&&(r.droppedAttributesCount=i.droppedAttributesCount>>>0),r},a.toObject=function(i,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.attributes=[]),r.defaults&&(s.droppedAttributesCount=0),i.attributes&&i.attributes.length){s.attributes=[];for(var l=0;l<i.attributes.length;++l)s.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.toObject(i.attributes[l],r)}return i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&(s.droppedAttributesCount=i.droppedAttributesCount),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.resource.v1.Resource"},a}(),o}(),n}(),e.trace=function(){var n={};return n.v1=function(){var o={};return o.TracesData=function(){function a(u){if(this.resourceSpans=[],u)for(var i=Object.keys(u),r=0;r<i.length;++r)u[i[r]]!=null&&(this[i[r]]=u[i[r]])}return a.prototype.resourceSpans=h.emptyArray,a.create=function(i){return new a(i)},a.encode=function(i,r){if(r||(r=V.create()),i.resourceSpans!=null&&i.resourceSpans.length)for(var s=0;s<i.resourceSpans.length;++s)d.opentelemetry.proto.trace.v1.ResourceSpans.encode(i.resourceSpans[s],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(i,r){return this.encode(i,r).ldelim()},a.decode=function(i,r){i instanceof T||(i=T.create(i));for(var s=r===void 0?i.len:i.pos+r,l=new d.opentelemetry.proto.trace.v1.TracesData;i.pos<s;){var c=i.uint32();switch(c>>>3){case 1:{l.resourceSpans&&l.resourceSpans.length||(l.resourceSpans=[]),l.resourceSpans.push(d.opentelemetry.proto.trace.v1.ResourceSpans.decode(i,i.uint32()));break}default:i.skipType(c&7);break}}return l},a.decodeDelimited=function(i){return i instanceof T||(i=new T(i)),this.decode(i,i.uint32())},a.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.resourceSpans!=null&&i.hasOwnProperty("resourceSpans")){if(!Array.isArray(i.resourceSpans))return"resourceSpans: array expected";for(var r=0;r<i.resourceSpans.length;++r){var s=d.opentelemetry.proto.trace.v1.ResourceSpans.verify(i.resourceSpans[r]);if(s)return"resourceSpans."+s}}return null},a.fromObject=function(i){if(i instanceof d.opentelemetry.proto.trace.v1.TracesData)return i;var r=new d.opentelemetry.proto.trace.v1.TracesData;if(i.resourceSpans){if(!Array.isArray(i.resourceSpans))throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: array expected");r.resourceSpans=[];for(var s=0;s<i.resourceSpans.length;++s){if(typeof i.resourceSpans[s]!="object")throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: object expected");r.resourceSpans[s]=d.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(i.resourceSpans[s])}}return r},a.toObject=function(i,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.resourceSpans=[]),i.resourceSpans&&i.resourceSpans.length){s.resourceSpans=[];for(var l=0;l<i.resourceSpans.length;++l)s.resourceSpans[l]=d.opentelemetry.proto.trace.v1.ResourceSpans.toObject(i.resourceSpans[l],r)}return s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.trace.v1.TracesData"},a}(),o.ResourceSpans=function(){function a(u){if(this.scopeSpans=[],u)for(var i=Object.keys(u),r=0;r<i.length;++r)u[i[r]]!=null&&(this[i[r]]=u[i[r]])}return a.prototype.resource=null,a.prototype.scopeSpans=h.emptyArray,a.prototype.schemaUrl=null,a.create=function(i){return new a(i)},a.encode=function(i,r){if(r||(r=V.create()),i.resource!=null&&Object.hasOwnProperty.call(i,"resource")&&d.opentelemetry.proto.resource.v1.Resource.encode(i.resource,r.uint32(10).fork()).ldelim(),i.scopeSpans!=null&&i.scopeSpans.length)for(var s=0;s<i.scopeSpans.length;++s)d.opentelemetry.proto.trace.v1.ScopeSpans.encode(i.scopeSpans[s],r.uint32(18).fork()).ldelim();return i.schemaUrl!=null&&Object.hasOwnProperty.call(i,"schemaUrl")&&r.uint32(26).string(i.schemaUrl),r},a.encodeDelimited=function(i,r){return this.encode(i,r).ldelim()},a.decode=function(i,r){i instanceof T||(i=T.create(i));for(var s=r===void 0?i.len:i.pos+r,l=new d.opentelemetry.proto.trace.v1.ResourceSpans;i.pos<s;){var c=i.uint32();switch(c>>>3){case 1:{l.resource=d.opentelemetry.proto.resource.v1.Resource.decode(i,i.uint32());break}case 2:{l.scopeSpans&&l.scopeSpans.length||(l.scopeSpans=[]),l.scopeSpans.push(d.opentelemetry.proto.trace.v1.ScopeSpans.decode(i,i.uint32()));break}case 3:{l.schemaUrl=i.string();break}default:i.skipType(c&7);break}}return l},a.decodeDelimited=function(i){return i instanceof T||(i=new T(i)),this.decode(i,i.uint32())},a.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.resource!=null&&i.hasOwnProperty("resource")){var r=d.opentelemetry.proto.resource.v1.Resource.verify(i.resource);if(r)return"resource."+r}if(i.scopeSpans!=null&&i.hasOwnProperty("scopeSpans")){if(!Array.isArray(i.scopeSpans))return"scopeSpans: array expected";for(var s=0;s<i.scopeSpans.length;++s){var r=d.opentelemetry.proto.trace.v1.ScopeSpans.verify(i.scopeSpans[s]);if(r)return"scopeSpans."+r}}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&!h.isString(i.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(i){if(i instanceof d.opentelemetry.proto.trace.v1.ResourceSpans)return i;var r=new d.opentelemetry.proto.trace.v1.ResourceSpans;if(i.resource!=null){if(typeof i.resource!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.resource: object expected");r.resource=d.opentelemetry.proto.resource.v1.Resource.fromObject(i.resource)}if(i.scopeSpans){if(!Array.isArray(i.scopeSpans))throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: array expected");r.scopeSpans=[];for(var s=0;s<i.scopeSpans.length;++s){if(typeof i.scopeSpans[s]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: object expected");r.scopeSpans[s]=d.opentelemetry.proto.trace.v1.ScopeSpans.fromObject(i.scopeSpans[s])}}return i.schemaUrl!=null&&(r.schemaUrl=String(i.schemaUrl)),r},a.toObject=function(i,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.scopeSpans=[]),r.defaults&&(s.resource=null,s.schemaUrl=""),i.resource!=null&&i.hasOwnProperty("resource")&&(s.resource=d.opentelemetry.proto.resource.v1.Resource.toObject(i.resource,r)),i.scopeSpans&&i.scopeSpans.length){s.scopeSpans=[];for(var l=0;l<i.scopeSpans.length;++l)s.scopeSpans[l]=d.opentelemetry.proto.trace.v1.ScopeSpans.toObject(i.scopeSpans[l],r)}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&(s.schemaUrl=i.schemaUrl),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.trace.v1.ResourceSpans"},a}(),o.ScopeSpans=function(){function a(u){if(this.spans=[],u)for(var i=Object.keys(u),r=0;r<i.length;++r)u[i[r]]!=null&&(this[i[r]]=u[i[r]])}return a.prototype.scope=null,a.prototype.spans=h.emptyArray,a.prototype.schemaUrl=null,a.create=function(i){return new a(i)},a.encode=function(i,r){if(r||(r=V.create()),i.scope!=null&&Object.hasOwnProperty.call(i,"scope")&&d.opentelemetry.proto.common.v1.InstrumentationScope.encode(i.scope,r.uint32(10).fork()).ldelim(),i.spans!=null&&i.spans.length)for(var s=0;s<i.spans.length;++s)d.opentelemetry.proto.trace.v1.Span.encode(i.spans[s],r.uint32(18).fork()).ldelim();return i.schemaUrl!=null&&Object.hasOwnProperty.call(i,"schemaUrl")&&r.uint32(26).string(i.schemaUrl),r},a.encodeDelimited=function(i,r){return this.encode(i,r).ldelim()},a.decode=function(i,r){i instanceof T||(i=T.create(i));for(var s=r===void 0?i.len:i.pos+r,l=new d.opentelemetry.proto.trace.v1.ScopeSpans;i.pos<s;){var c=i.uint32();switch(c>>>3){case 1:{l.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.decode(i,i.uint32());break}case 2:{l.spans&&l.spans.length||(l.spans=[]),l.spans.push(d.opentelemetry.proto.trace.v1.Span.decode(i,i.uint32()));break}case 3:{l.schemaUrl=i.string();break}default:i.skipType(c&7);break}}return l},a.decodeDelimited=function(i){return i instanceof T||(i=new T(i)),this.decode(i,i.uint32())},a.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.scope!=null&&i.hasOwnProperty("scope")){var r=d.opentelemetry.proto.common.v1.InstrumentationScope.verify(i.scope);if(r)return"scope."+r}if(i.spans!=null&&i.hasOwnProperty("spans")){if(!Array.isArray(i.spans))return"spans: array expected";for(var s=0;s<i.spans.length;++s){var r=d.opentelemetry.proto.trace.v1.Span.verify(i.spans[s]);if(r)return"spans."+r}}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&!h.isString(i.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(i){if(i instanceof d.opentelemetry.proto.trace.v1.ScopeSpans)return i;var r=new d.opentelemetry.proto.trace.v1.ScopeSpans;if(i.scope!=null){if(typeof i.scope!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.scope: object expected");r.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(i.scope)}if(i.spans){if(!Array.isArray(i.spans))throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: array expected");r.spans=[];for(var s=0;s<i.spans.length;++s){if(typeof i.spans[s]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: object expected");r.spans[s]=d.opentelemetry.proto.trace.v1.Span.fromObject(i.spans[s])}}return i.schemaUrl!=null&&(r.schemaUrl=String(i.schemaUrl)),r},a.toObject=function(i,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.spans=[]),r.defaults&&(s.scope=null,s.schemaUrl=""),i.scope!=null&&i.hasOwnProperty("scope")&&(s.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.toObject(i.scope,r)),i.spans&&i.spans.length){s.spans=[];for(var l=0;l<i.spans.length;++l)s.spans[l]=d.opentelemetry.proto.trace.v1.Span.toObject(i.spans[l],r)}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&(s.schemaUrl=i.schemaUrl),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.trace.v1.ScopeSpans"},a}(),o.Span=function(){function a(u){if(this.attributes=[],this.events=[],this.links=[],u)for(var i=Object.keys(u),r=0;r<i.length;++r)u[i[r]]!=null&&(this[i[r]]=u[i[r]])}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=h.emptyArray,a.prototype.droppedAttributesCount=null,a.prototype.events=h.emptyArray,a.prototype.droppedEventsCount=null,a.prototype.links=h.emptyArray,a.prototype.droppedLinksCount=null,a.prototype.status=null,a.create=function(i){return new a(i)},a.encode=function(i,r){if(r||(r=V.create()),i.traceId!=null&&Object.hasOwnProperty.call(i,"traceId")&&r.uint32(10).bytes(i.traceId),i.spanId!=null&&Object.hasOwnProperty.call(i,"spanId")&&r.uint32(18).bytes(i.spanId),i.traceState!=null&&Object.hasOwnProperty.call(i,"traceState")&&r.uint32(26).string(i.traceState),i.parentSpanId!=null&&Object.hasOwnProperty.call(i,"parentSpanId")&&r.uint32(34).bytes(i.parentSpanId),i.name!=null&&Object.hasOwnProperty.call(i,"name")&&r.uint32(42).string(i.name),i.kind!=null&&Object.hasOwnProperty.call(i,"kind")&&r.uint32(48).int32(i.kind),i.startTimeUnixNano!=null&&Object.hasOwnProperty.call(i,"startTimeUnixNano")&&r.uint32(57).fixed64(i.startTimeUnixNano),i.endTimeUnixNano!=null&&Object.hasOwnProperty.call(i,"endTimeUnixNano")&&r.uint32(65).fixed64(i.endTimeUnixNano),i.attributes!=null&&i.attributes.length)for(var s=0;s<i.attributes.length;++s)d.opentelemetry.proto.common.v1.KeyValue.encode(i.attributes[s],r.uint32(74).fork()).ldelim();if(i.droppedAttributesCount!=null&&Object.hasOwnProperty.call(i,"droppedAttributesCount")&&r.uint32(80).uint32(i.droppedAttributesCount),i.events!=null&&i.events.length)for(var s=0;s<i.events.length;++s)d.opentelemetry.proto.trace.v1.Span.Event.encode(i.events[s],r.uint32(90).fork()).ldelim();if(i.droppedEventsCount!=null&&Object.hasOwnProperty.call(i,"droppedEventsCount")&&r.uint32(96).uint32(i.droppedEventsCount),i.links!=null&&i.links.length)for(var s=0;s<i.links.length;++s)d.opentelemetry.proto.trace.v1.Span.Link.encode(i.links[s],r.uint32(106).fork()).ldelim();return i.droppedLinksCount!=null&&Object.hasOwnProperty.call(i,"droppedLinksCount")&&r.uint32(112).uint32(i.droppedLinksCount),i.status!=null&&Object.hasOwnProperty.call(i,"status")&&d.opentelemetry.proto.trace.v1.Status.encode(i.status,r.uint32(122).fork()).ldelim(),r},a.encodeDelimited=function(i,r){return this.encode(i,r).ldelim()},a.decode=function(i,r){i instanceof T||(i=T.create(i));for(var s=r===void 0?i.len:i.pos+r,l=new d.opentelemetry.proto.trace.v1.Span;i.pos<s;){var c=i.uint32();switch(c>>>3){case 1:{l.traceId=i.bytes();break}case 2:{l.spanId=i.bytes();break}case 3:{l.traceState=i.string();break}case 4:{l.parentSpanId=i.bytes();break}case 5:{l.name=i.string();break}case 6:{l.kind=i.int32();break}case 7:{l.startTimeUnixNano=i.fixed64();break}case 8:{l.endTimeUnixNano=i.fixed64();break}case 9:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(i,i.uint32()));break}case 10:{l.droppedAttributesCount=i.uint32();break}case 11:{l.events&&l.events.length||(l.events=[]),l.events.push(d.opentelemetry.proto.trace.v1.Span.Event.decode(i,i.uint32()));break}case 12:{l.droppedEventsCount=i.uint32();break}case 13:{l.links&&l.links.length||(l.links=[]),l.links.push(d.opentelemetry.proto.trace.v1.Span.Link.decode(i,i.uint32()));break}case 14:{l.droppedLinksCount=i.uint32();break}case 15:{l.status=d.opentelemetry.proto.trace.v1.Status.decode(i,i.uint32());break}default:i.skipType(c&7);break}}return l},a.decodeDelimited=function(i){return i instanceof T||(i=new T(i)),this.decode(i,i.uint32())},a.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.traceId!=null&&i.hasOwnProperty("traceId")&&!(i.traceId&&typeof i.traceId.length=="number"||h.isString(i.traceId)))return"traceId: buffer expected";if(i.spanId!=null&&i.hasOwnProperty("spanId")&&!(i.spanId&&typeof i.spanId.length=="number"||h.isString(i.spanId)))return"spanId: buffer expected";if(i.traceState!=null&&i.hasOwnProperty("traceState")&&!h.isString(i.traceState))return"traceState: string expected";if(i.parentSpanId!=null&&i.hasOwnProperty("parentSpanId")&&!(i.parentSpanId&&typeof i.parentSpanId.length=="number"||h.isString(i.parentSpanId)))return"parentSpanId: buffer expected";if(i.name!=null&&i.hasOwnProperty("name")&&!h.isString(i.name))return"name: string expected";if(i.kind!=null&&i.hasOwnProperty("kind"))switch(i.kind){default:return"kind: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:break}if(i.startTimeUnixNano!=null&&i.hasOwnProperty("startTimeUnixNano")&&!h.isInteger(i.startTimeUnixNano)&&!(i.startTimeUnixNano&&h.isInteger(i.startTimeUnixNano.low)&&h.isInteger(i.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(i.endTimeUnixNano!=null&&i.hasOwnProperty("endTimeUnixNano")&&!h.isInteger(i.endTimeUnixNano)&&!(i.endTimeUnixNano&&h.isInteger(i.endTimeUnixNano.low)&&h.isInteger(i.endTimeUnixNano.high)))return"endTimeUnixNano: integer|Long expected";if(i.attributes!=null&&i.hasOwnProperty("attributes")){if(!Array.isArray(i.attributes))return"attributes: array expected";for(var r=0;r<i.attributes.length;++r){var s=d.opentelemetry.proto.common.v1.KeyValue.verify(i.attributes[r]);if(s)return"attributes."+s}}if(i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&!h.isInteger(i.droppedAttributesCount))return"droppedAttributesCount: integer expected";if(i.events!=null&&i.hasOwnProperty("events")){if(!Array.isArray(i.events))return"events: array expected";for(var r=0;r<i.events.length;++r){var s=d.opentelemetry.proto.trace.v1.Span.Event.verify(i.events[r]);if(s)return"events."+s}}if(i.droppedEventsCount!=null&&i.hasOwnProperty("droppedEventsCount")&&!h.isInteger(i.droppedEventsCount))return"droppedEventsCount: integer expected";if(i.links!=null&&i.hasOwnProperty("links")){if(!Array.isArray(i.links))return"links: array expected";for(var r=0;r<i.links.length;++r){var s=d.opentelemetry.proto.trace.v1.Span.Link.verify(i.links[r]);if(s)return"links."+s}}if(i.droppedLinksCount!=null&&i.hasOwnProperty("droppedLinksCount")&&!h.isInteger(i.droppedLinksCount))return"droppedLinksCount: integer expected";if(i.status!=null&&i.hasOwnProperty("status")){var s=d.opentelemetry.proto.trace.v1.Status.verify(i.status);if(s)return"status."+s}return null},a.fromObject=function(i){if(i instanceof d.opentelemetry.proto.trace.v1.Span)return i;var r=new d.opentelemetry.proto.trace.v1.Span;switch(i.traceId!=null&&(typeof i.traceId=="string"?h.base64.decode(i.traceId,r.traceId=h.newBuffer(h.base64.length(i.traceId)),0):i.traceId.length>=0&&(r.traceId=i.traceId)),i.spanId!=null&&(typeof i.spanId=="string"?h.base64.decode(i.spanId,r.spanId=h.newBuffer(h.base64.length(i.spanId)),0):i.spanId.length>=0&&(r.spanId=i.spanId)),i.traceState!=null&&(r.traceState=String(i.traceState)),i.parentSpanId!=null&&(typeof i.parentSpanId=="string"?h.base64.decode(i.parentSpanId,r.parentSpanId=h.newBuffer(h.base64.length(i.parentSpanId)),0):i.parentSpanId.length>=0&&(r.parentSpanId=i.parentSpanId)),i.name!=null&&(r.name=String(i.name)),i.kind){default:if(typeof i.kind=="number"){r.kind=i.kind;break}break;case"SPAN_KIND_UNSPECIFIED":case 0:r.kind=0;break;case"SPAN_KIND_INTERNAL":case 1:r.kind=1;break;case"SPAN_KIND_SERVER":case 2:r.kind=2;break;case"SPAN_KIND_CLIENT":case 3:r.kind=3;break;case"SPAN_KIND_PRODUCER":case 4:r.kind=4;break;case"SPAN_KIND_CONSUMER":case 5:r.kind=5;break}if(i.startTimeUnixNano!=null&&(h.Long?(r.startTimeUnixNano=h.Long.fromValue(i.startTimeUnixNano)).unsigned=!1:typeof i.startTimeUnixNano=="string"?r.startTimeUnixNano=parseInt(i.startTimeUnixNano,10):typeof i.startTimeUnixNano=="number"?r.startTimeUnixNano=i.startTimeUnixNano:typeof i.startTimeUnixNano=="object"&&(r.startTimeUnixNano=new h.LongBits(i.startTimeUnixNano.low>>>0,i.startTimeUnixNano.high>>>0).toNumber())),i.endTimeUnixNano!=null&&(h.Long?(r.endTimeUnixNano=h.Long.fromValue(i.endTimeUnixNano)).unsigned=!1:typeof i.endTimeUnixNano=="string"?r.endTimeUnixNano=parseInt(i.endTimeUnixNano,10):typeof i.endTimeUnixNano=="number"?r.endTimeUnixNano=i.endTimeUnixNano:typeof i.endTimeUnixNano=="object"&&(r.endTimeUnixNano=new h.LongBits(i.endTimeUnixNano.low>>>0,i.endTimeUnixNano.high>>>0).toNumber())),i.attributes){if(!Array.isArray(i.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: array expected");r.attributes=[];for(var s=0;s<i.attributes.length;++s){if(typeof i.attributes[s]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: object expected");r.attributes[s]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(i.attributes[s])}}if(i.droppedAttributesCount!=null&&(r.droppedAttributesCount=i.droppedAttributesCount>>>0),i.events){if(!Array.isArray(i.events))throw TypeError(".opentelemetry.proto.trace.v1.Span.events: array expected");r.events=[];for(var s=0;s<i.events.length;++s){if(typeof i.events[s]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.events: object expected");r.events[s]=d.opentelemetry.proto.trace.v1.Span.Event.fromObject(i.events[s])}}if(i.droppedEventsCount!=null&&(r.droppedEventsCount=i.droppedEventsCount>>>0),i.links){if(!Array.isArray(i.links))throw TypeError(".opentelemetry.proto.trace.v1.Span.links: array expected");r.links=[];for(var s=0;s<i.links.length;++s){if(typeof i.links[s]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.links: object expected");r.links[s]=d.opentelemetry.proto.trace.v1.Span.Link.fromObject(i.links[s])}}if(i.droppedLinksCount!=null&&(r.droppedLinksCount=i.droppedLinksCount>>>0),i.status!=null){if(typeof i.status!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.status: object expected");r.status=d.opentelemetry.proto.trace.v1.Status.fromObject(i.status)}return r},a.toObject=function(i,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.attributes=[],s.events=[],s.links=[]),r.defaults){if(r.bytes===String?s.traceId="":(s.traceId=[],r.bytes!==Array&&(s.traceId=h.newBuffer(s.traceId))),r.bytes===String?s.spanId="":(s.spanId=[],r.bytes!==Array&&(s.spanId=h.newBuffer(s.spanId))),s.traceState="",r.bytes===String?s.parentSpanId="":(s.parentSpanId=[],r.bytes!==Array&&(s.parentSpanId=h.newBuffer(s.parentSpanId))),s.name="",s.kind=r.enums===String?"SPAN_KIND_UNSPECIFIED":0,h.Long){var l=new h.Long(0,0,!1);s.startTimeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else s.startTimeUnixNano=r.longs===String?"0":0;if(h.Long){var l=new h.Long(0,0,!1);s.endTimeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else s.endTimeUnixNano=r.longs===String?"0":0;s.droppedAttributesCount=0,s.droppedEventsCount=0,s.droppedLinksCount=0,s.status=null}if(i.traceId!=null&&i.hasOwnProperty("traceId")&&(s.traceId=r.bytes===String?h.base64.encode(i.traceId,0,i.traceId.length):r.bytes===Array?Array.prototype.slice.call(i.traceId):i.traceId),i.spanId!=null&&i.hasOwnProperty("spanId")&&(s.spanId=r.bytes===String?h.base64.encode(i.spanId,0,i.spanId.length):r.bytes===Array?Array.prototype.slice.call(i.spanId):i.spanId),i.traceState!=null&&i.hasOwnProperty("traceState")&&(s.traceState=i.traceState),i.parentSpanId!=null&&i.hasOwnProperty("parentSpanId")&&(s.parentSpanId=r.bytes===String?h.base64.encode(i.parentSpanId,0,i.parentSpanId.length):r.bytes===Array?Array.prototype.slice.call(i.parentSpanId):i.parentSpanId),i.name!=null&&i.hasOwnProperty("name")&&(s.name=i.name),i.kind!=null&&i.hasOwnProperty("kind")&&(s.kind=r.enums===String?d.opentelemetry.proto.trace.v1.Span.SpanKind[i.kind]===void 0?i.kind:d.opentelemetry.proto.trace.v1.Span.SpanKind[i.kind]:i.kind),i.startTimeUnixNano!=null&&i.hasOwnProperty("startTimeUnixNano")&&(typeof i.startTimeUnixNano=="number"?s.startTimeUnixNano=r.longs===String?String(i.startTimeUnixNano):i.startTimeUnixNano:s.startTimeUnixNano=r.longs===String?h.Long.prototype.toString.call(i.startTimeUnixNano):r.longs===Number?new h.LongBits(i.startTimeUnixNano.low>>>0,i.startTimeUnixNano.high>>>0).toNumber():i.startTimeUnixNano),i.endTimeUnixNano!=null&&i.hasOwnProperty("endTimeUnixNano")&&(typeof i.endTimeUnixNano=="number"?s.endTimeUnixNano=r.longs===String?String(i.endTimeUnixNano):i.endTimeUnixNano:s.endTimeUnixNano=r.longs===String?h.Long.prototype.toString.call(i.endTimeUnixNano):r.longs===Number?new h.LongBits(i.endTimeUnixNano.low>>>0,i.endTimeUnixNano.high>>>0).toNumber():i.endTimeUnixNano),i.attributes&&i.attributes.length){s.attributes=[];for(var c=0;c<i.attributes.length;++c)s.attributes[c]=d.opentelemetry.proto.common.v1.KeyValue.toObject(i.attributes[c],r)}if(i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&(s.droppedAttributesCount=i.droppedAttributesCount),i.events&&i.events.length){s.events=[];for(var c=0;c<i.events.length;++c)s.events[c]=d.opentelemetry.proto.trace.v1.Span.Event.toObject(i.events[c],r)}if(i.droppedEventsCount!=null&&i.hasOwnProperty("droppedEventsCount")&&(s.droppedEventsCount=i.droppedEventsCount),i.links&&i.links.length){s.links=[];for(var c=0;c<i.links.length;++c)s.links[c]=d.opentelemetry.proto.trace.v1.Span.Link.toObject(i.links[c],r)}return i.droppedLinksCount!=null&&i.hasOwnProperty("droppedLinksCount")&&(s.droppedLinksCount=i.droppedLinksCount),i.status!=null&&i.hasOwnProperty("status")&&(s.status=d.opentelemetry.proto.trace.v1.Status.toObject(i.status,r)),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.trace.v1.Span"},a.SpanKind=function(){var u={},i=Object.create(u);return i[u[0]="SPAN_KIND_UNSPECIFIED"]=0,i[u[1]="SPAN_KIND_INTERNAL"]=1,i[u[2]="SPAN_KIND_SERVER"]=2,i[u[3]="SPAN_KIND_CLIENT"]=3,i[u[4]="SPAN_KIND_PRODUCER"]=4,i[u[5]="SPAN_KIND_CONSUMER"]=5,i}(),a.Event=function(){function u(i){if(this.attributes=[],i)for(var r=Object.keys(i),s=0;s<r.length;++s)i[r[s]]!=null&&(this[r[s]]=i[r[s]])}return u.prototype.timeUnixNano=null,u.prototype.name=null,u.prototype.attributes=h.emptyArray,u.prototype.droppedAttributesCount=null,u.create=function(r){return new u(r)},u.encode=function(r,s){if(s||(s=V.create()),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&s.uint32(9).fixed64(r.timeUnixNano),r.name!=null&&Object.hasOwnProperty.call(r,"name")&&s.uint32(18).string(r.name),r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],s.uint32(26).fork()).ldelim();return r.droppedAttributesCount!=null&&Object.hasOwnProperty.call(r,"droppedAttributesCount")&&s.uint32(32).uint32(r.droppedAttributesCount),s},u.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},u.decode=function(r,s){r instanceof T||(r=T.create(r));for(var l=s===void 0?r.len:r.pos+s,c=new d.opentelemetry.proto.trace.v1.Span.Event;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.timeUnixNano=r.fixed64();break}case 2:{c.name=r.string();break}case 3:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 4:{c.droppedAttributesCount=r.uint32();break}default:r.skipType(p&7);break}}return c},u.decodeDelimited=function(r){return r instanceof T||(r=new T(r)),this.decode(r,r.uint32())},u.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!h.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&h.isInteger(r.timeUnixNano.low)&&h.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.name!=null&&r.hasOwnProperty("name")&&!h.isString(r.name))return"name: string expected";if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var s=0;s<r.attributes.length;++s){var l=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[s]);if(l)return"attributes."+l}}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&!h.isInteger(r.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},u.fromObject=function(r){if(r instanceof d.opentelemetry.proto.trace.v1.Span.Event)return r;var s=new d.opentelemetry.proto.trace.v1.Span.Event;if(r.timeUnixNano!=null&&(h.Long?(s.timeUnixNano=h.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?s.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?s.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(s.timeUnixNano=new h.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.name!=null&&(s.name=String(r.name)),r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: array expected");s.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: object expected");s.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}return r.droppedAttributesCount!=null&&(s.droppedAttributesCount=r.droppedAttributesCount>>>0),s},u.toObject=function(r,s){s||(s={});var l={};if((s.arrays||s.defaults)&&(l.attributes=[]),s.defaults){if(h.Long){var c=new h.Long(0,0,!1);l.timeUnixNano=s.longs===String?c.toString():s.longs===Number?c.toNumber():c}else l.timeUnixNano=s.longs===String?"0":0;l.name="",l.droppedAttributesCount=0}if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=s.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=s.longs===String?h.Long.prototype.toString.call(r.timeUnixNano):s.longs===Number?new h.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.name!=null&&r.hasOwnProperty("name")&&(l.name=r.name),r.attributes&&r.attributes.length){l.attributes=[];for(var p=0;p<r.attributes.length;++p)l.attributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[p],s)}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&(l.droppedAttributesCount=r.droppedAttributesCount),l},u.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},u.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.trace.v1.Span.Event"},u}(),a.Link=function(){function u(i){if(this.attributes=[],i)for(var r=Object.keys(i),s=0;s<r.length;++s)i[r[s]]!=null&&(this[r[s]]=i[r[s]])}return u.prototype.traceId=null,u.prototype.spanId=null,u.prototype.traceState=null,u.prototype.attributes=h.emptyArray,u.prototype.droppedAttributesCount=null,u.create=function(r){return new u(r)},u.encode=function(r,s){if(s||(s=V.create()),r.traceId!=null&&Object.hasOwnProperty.call(r,"traceId")&&s.uint32(10).bytes(r.traceId),r.spanId!=null&&Object.hasOwnProperty.call(r,"spanId")&&s.uint32(18).bytes(r.spanId),r.traceState!=null&&Object.hasOwnProperty.call(r,"traceState")&&s.uint32(26).string(r.traceState),r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],s.uint32(34).fork()).ldelim();return r.droppedAttributesCount!=null&&Object.hasOwnProperty.call(r,"droppedAttributesCount")&&s.uint32(40).uint32(r.droppedAttributesCount),s},u.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},u.decode=function(r,s){r instanceof T||(r=T.create(r));for(var l=s===void 0?r.len:r.pos+s,c=new d.opentelemetry.proto.trace.v1.Span.Link;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.traceId=r.bytes();break}case 2:{c.spanId=r.bytes();break}case 3:{c.traceState=r.string();break}case 4:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 5:{c.droppedAttributesCount=r.uint32();break}default:r.skipType(p&7);break}}return c},u.decodeDelimited=function(r){return r instanceof T||(r=new T(r)),this.decode(r,r.uint32())},u.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.traceId!=null&&r.hasOwnProperty("traceId")&&!(r.traceId&&typeof r.traceId.length=="number"||h.isString(r.traceId)))return"traceId: buffer expected";if(r.spanId!=null&&r.hasOwnProperty("spanId")&&!(r.spanId&&typeof r.spanId.length=="number"||h.isString(r.spanId)))return"spanId: buffer expected";if(r.traceState!=null&&r.hasOwnProperty("traceState")&&!h.isString(r.traceState))return"traceState: string expected";if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var s=0;s<r.attributes.length;++s){var l=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[s]);if(l)return"attributes."+l}}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&!h.isInteger(r.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},u.fromObject=function(r){if(r instanceof d.opentelemetry.proto.trace.v1.Span.Link)return r;var s=new d.opentelemetry.proto.trace.v1.Span.Link;if(r.traceId!=null&&(typeof r.traceId=="string"?h.base64.decode(r.traceId,s.traceId=h.newBuffer(h.base64.length(r.traceId)),0):r.traceId.length>=0&&(s.traceId=r.traceId)),r.spanId!=null&&(typeof r.spanId=="string"?h.base64.decode(r.spanId,s.spanId=h.newBuffer(h.base64.length(r.spanId)),0):r.spanId.length>=0&&(s.spanId=r.spanId)),r.traceState!=null&&(s.traceState=String(r.traceState)),r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: array expected");s.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: object expected");s.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}return r.droppedAttributesCount!=null&&(s.droppedAttributesCount=r.droppedAttributesCount>>>0),s},u.toObject=function(r,s){s||(s={});var l={};if((s.arrays||s.defaults)&&(l.attributes=[]),s.defaults&&(s.bytes===String?l.traceId="":(l.traceId=[],s.bytes!==Array&&(l.traceId=h.newBuffer(l.traceId))),s.bytes===String?l.spanId="":(l.spanId=[],s.bytes!==Array&&(l.spanId=h.newBuffer(l.spanId))),l.traceState="",l.droppedAttributesCount=0),r.traceId!=null&&r.hasOwnProperty("traceId")&&(l.traceId=s.bytes===String?h.base64.encode(r.traceId,0,r.traceId.length):s.bytes===Array?Array.prototype.slice.call(r.traceId):r.traceId),r.spanId!=null&&r.hasOwnProperty("spanId")&&(l.spanId=s.bytes===String?h.base64.encode(r.spanId,0,r.spanId.length):s.bytes===Array?Array.prototype.slice.call(r.spanId):r.spanId),r.traceState!=null&&r.hasOwnProperty("traceState")&&(l.traceState=r.traceState),r.attributes&&r.attributes.length){l.attributes=[];for(var c=0;c<r.attributes.length;++c)l.attributes[c]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[c],s)}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&(l.droppedAttributesCount=r.droppedAttributesCount),l},u.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},u.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.trace.v1.Span.Link"},u}(),a}(),o.Status=function(){function a(u){if(u)for(var i=Object.keys(u),r=0;r<i.length;++r)u[i[r]]!=null&&(this[i[r]]=u[i[r]])}return a.prototype.message=null,a.prototype.code=null,a.create=function(i){return new a(i)},a.encode=function(i,r){return r||(r=V.create()),i.message!=null&&Object.hasOwnProperty.call(i,"message")&&r.uint32(18).string(i.message),i.code!=null&&Object.hasOwnProperty.call(i,"code")&&r.uint32(24).int32(i.code),r},a.encodeDelimited=function(i,r){return this.encode(i,r).ldelim()},a.decode=function(i,r){i instanceof T||(i=T.create(i));for(var s=r===void 0?i.len:i.pos+r,l=new d.opentelemetry.proto.trace.v1.Status;i.pos<s;){var c=i.uint32();switch(c>>>3){case 2:{l.message=i.string();break}case 3:{l.code=i.int32();break}default:i.skipType(c&7);break}}return l},a.decodeDelimited=function(i){return i instanceof T||(i=new T(i)),this.decode(i,i.uint32())},a.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.message!=null&&i.hasOwnProperty("message")&&!h.isString(i.message))return"message: string expected";if(i.code!=null&&i.hasOwnProperty("code"))switch(i.code){default:return"code: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(i){if(i instanceof d.opentelemetry.proto.trace.v1.Status)return i;var r=new d.opentelemetry.proto.trace.v1.Status;switch(i.message!=null&&(r.message=String(i.message)),i.code){default:if(typeof i.code=="number"){r.code=i.code;break}break;case"STATUS_CODE_UNSET":case 0:r.code=0;break;case"STATUS_CODE_OK":case 1:r.code=1;break;case"STATUS_CODE_ERROR":case 2:r.code=2;break}return r},a.toObject=function(i,r){r||(r={});var s={};return r.defaults&&(s.message="",s.code=r.enums===String?"STATUS_CODE_UNSET":0),i.message!=null&&i.hasOwnProperty("message")&&(s.message=i.message),i.code!=null&&i.hasOwnProperty("code")&&(s.code=r.enums===String?d.opentelemetry.proto.trace.v1.Status.StatusCode[i.code]===void 0?i.code:d.opentelemetry.proto.trace.v1.Status.StatusCode[i.code]:i.code),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.trace.v1.Status"},a.StatusCode=function(){var u={},i=Object.create(u);return i[u[0]="STATUS_CODE_UNSET"]=0,i[u[1]="STATUS_CODE_OK"]=1,i[u[2]="STATUS_CODE_ERROR"]=2,i}(),a}(),o}(),n}(),e.collector=function(){var n={};return n.trace=function(){var o={};return o.v1=function(){var a={};return a.TraceService=function(){function u(i,r,s){I.rpc.Service.call(this,i,r,s)}return(u.prototype=Object.create(I.rpc.Service.prototype)).constructor=u,u.create=function(r,s,l){return new this(r,s,l)},Object.defineProperty(u.prototype.export=function i(r,s){return this.rpcCall(i,d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,r,s)},"name",{value:"Export"}),u}(),a.ExportTraceServiceRequest=function(){function u(i){if(this.resourceSpans=[],i)for(var r=Object.keys(i),s=0;s<r.length;++s)i[r[s]]!=null&&(this[r[s]]=i[r[s]])}return u.prototype.resourceSpans=h.emptyArray,u.create=function(r){return new u(r)},u.encode=function(r,s){if(s||(s=V.create()),r.resourceSpans!=null&&r.resourceSpans.length)for(var l=0;l<r.resourceSpans.length;++l)d.opentelemetry.proto.trace.v1.ResourceSpans.encode(r.resourceSpans[l],s.uint32(10).fork()).ldelim();return s},u.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},u.decode=function(r,s){r instanceof T||(r=T.create(r));for(var l=s===void 0?r.len:r.pos+s,c=new d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.resourceSpans&&c.resourceSpans.length||(c.resourceSpans=[]),c.resourceSpans.push(d.opentelemetry.proto.trace.v1.ResourceSpans.decode(r,r.uint32()));break}default:r.skipType(p&7);break}}return c},u.decodeDelimited=function(r){return r instanceof T||(r=new T(r)),this.decode(r,r.uint32())},u.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.resourceSpans!=null&&r.hasOwnProperty("resourceSpans")){if(!Array.isArray(r.resourceSpans))return"resourceSpans: array expected";for(var s=0;s<r.resourceSpans.length;++s){var l=d.opentelemetry.proto.trace.v1.ResourceSpans.verify(r.resourceSpans[s]);if(l)return"resourceSpans."+l}}return null},u.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest)return r;var s=new d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;if(r.resourceSpans){if(!Array.isArray(r.resourceSpans))throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: array expected");s.resourceSpans=[];for(var l=0;l<r.resourceSpans.length;++l){if(typeof r.resourceSpans[l]!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: object expected");s.resourceSpans[l]=d.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(r.resourceSpans[l])}}return s},u.toObject=function(r,s){s||(s={});var l={};if((s.arrays||s.defaults)&&(l.resourceSpans=[]),r.resourceSpans&&r.resourceSpans.length){l.resourceSpans=[];for(var c=0;c<r.resourceSpans.length;++c)l.resourceSpans[c]=d.opentelemetry.proto.trace.v1.ResourceSpans.toObject(r.resourceSpans[c],s)}return l},u.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},u.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest"},u}(),a.ExportTraceServiceResponse=function(){function u(i){if(i)for(var r=Object.keys(i),s=0;s<r.length;++s)i[r[s]]!=null&&(this[r[s]]=i[r[s]])}return u.prototype.partialSuccess=null,u.create=function(r){return new u(r)},u.encode=function(r,s){return s||(s=V.create()),r.partialSuccess!=null&&Object.hasOwnProperty.call(r,"partialSuccess")&&d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.encode(r.partialSuccess,s.uint32(10).fork()).ldelim(),s},u.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},u.decode=function(r,s){r instanceof T||(r=T.create(r));for(var l=s===void 0?r.len:r.pos+s,c=new d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.partialSuccess=d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.decode(r,r.uint32());break}default:r.skipType(p&7);break}}return c},u.decodeDelimited=function(r){return r instanceof T||(r=new T(r)),this.decode(r,r.uint32())},u.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")){var s=d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.verify(r.partialSuccess);if(s)return"partialSuccess."+s}return null},u.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse)return r;var s=new d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;if(r.partialSuccess!=null){if(typeof r.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse.partialSuccess: object expected");s.partialSuccess=d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.fromObject(r.partialSuccess)}return s},u.toObject=function(r,s){s||(s={});var l={};return s.defaults&&(l.partialSuccess=null),r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")&&(l.partialSuccess=d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.toObject(r.partialSuccess,s)),l},u.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},u.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse"},u}(),a.ExportTracePartialSuccess=function(){function u(i){if(i)for(var r=Object.keys(i),s=0;s<r.length;++s)i[r[s]]!=null&&(this[r[s]]=i[r[s]])}return u.prototype.rejectedSpans=null,u.prototype.errorMessage=null,u.create=function(r){return new u(r)},u.encode=function(r,s){return s||(s=V.create()),r.rejectedSpans!=null&&Object.hasOwnProperty.call(r,"rejectedSpans")&&s.uint32(8).int64(r.rejectedSpans),r.errorMessage!=null&&Object.hasOwnProperty.call(r,"errorMessage")&&s.uint32(18).string(r.errorMessage),s},u.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},u.decode=function(r,s){r instanceof T||(r=T.create(r));for(var l=s===void 0?r.len:r.pos+s,c=new d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.rejectedSpans=r.int64();break}case 2:{c.errorMessage=r.string();break}default:r.skipType(p&7);break}}return c},u.decodeDelimited=function(r){return r instanceof T||(r=new T(r)),this.decode(r,r.uint32())},u.verify=function(r){return typeof r!="object"||r===null?"object expected":r.rejectedSpans!=null&&r.hasOwnProperty("rejectedSpans")&&!h.isInteger(r.rejectedSpans)&&!(r.rejectedSpans&&h.isInteger(r.rejectedSpans.low)&&h.isInteger(r.rejectedSpans.high))?"rejectedSpans: integer|Long expected":r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&!h.isString(r.errorMessage)?"errorMessage: string expected":null},u.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess)return r;var s=new d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;return r.rejectedSpans!=null&&(h.Long?(s.rejectedSpans=h.Long.fromValue(r.rejectedSpans)).unsigned=!1:typeof r.rejectedSpans=="string"?s.rejectedSpans=parseInt(r.rejectedSpans,10):typeof r.rejectedSpans=="number"?s.rejectedSpans=r.rejectedSpans:typeof r.rejectedSpans=="object"&&(s.rejectedSpans=new h.LongBits(r.rejectedSpans.low>>>0,r.rejectedSpans.high>>>0).toNumber())),r.errorMessage!=null&&(s.errorMessage=String(r.errorMessage)),s},u.toObject=function(r,s){s||(s={});var l={};if(s.defaults){if(h.Long){var c=new h.Long(0,0,!1);l.rejectedSpans=s.longs===String?c.toString():s.longs===Number?c.toNumber():c}else l.rejectedSpans=s.longs===String?"0":0;l.errorMessage=""}return r.rejectedSpans!=null&&r.hasOwnProperty("rejectedSpans")&&(typeof r.rejectedSpans=="number"?l.rejectedSpans=s.longs===String?String(r.rejectedSpans):r.rejectedSpans:l.rejectedSpans=s.longs===String?h.Long.prototype.toString.call(r.rejectedSpans):s.longs===Number?new h.LongBits(r.rejectedSpans.low>>>0,r.rejectedSpans.high>>>0).toNumber():r.rejectedSpans),r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&(l.errorMessage=r.errorMessage),l},u.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},u.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess"},u}(),a}(),o}(),n.metrics=function(){var o={};return o.v1=function(){var a={};return a.MetricsService=function(){function u(i,r,s){I.rpc.Service.call(this,i,r,s)}return(u.prototype=Object.create(I.rpc.Service.prototype)).constructor=u,u.create=function(r,s,l){return new this(r,s,l)},Object.defineProperty(u.prototype.export=function i(r,s){return this.rpcCall(i,d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,r,s)},"name",{value:"Export"}),u}(),a.ExportMetricsServiceRequest=function(){function u(i){if(this.resourceMetrics=[],i)for(var r=Object.keys(i),s=0;s<r.length;++s)i[r[s]]!=null&&(this[r[s]]=i[r[s]])}return u.prototype.resourceMetrics=h.emptyArray,u.create=function(r){return new u(r)},u.encode=function(r,s){if(s||(s=V.create()),r.resourceMetrics!=null&&r.resourceMetrics.length)for(var l=0;l<r.resourceMetrics.length;++l)d.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(r.resourceMetrics[l],s.uint32(10).fork()).ldelim();return s},u.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},u.decode=function(r,s){r instanceof T||(r=T.create(r));for(var l=s===void 0?r.len:r.pos+s,c=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.resourceMetrics&&c.resourceMetrics.length||(c.resourceMetrics=[]),c.resourceMetrics.push(d.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(r,r.uint32()));break}default:r.skipType(p&7);break}}return c},u.decodeDelimited=function(r){return r instanceof T||(r=new T(r)),this.decode(r,r.uint32())},u.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.resourceMetrics!=null&&r.hasOwnProperty("resourceMetrics")){if(!Array.isArray(r.resourceMetrics))return"resourceMetrics: array expected";for(var s=0;s<r.resourceMetrics.length;++s){var l=d.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(r.resourceMetrics[s]);if(l)return"resourceMetrics."+l}}return null},u.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest)return r;var s=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;if(r.resourceMetrics){if(!Array.isArray(r.resourceMetrics))throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: array expected");s.resourceMetrics=[];for(var l=0;l<r.resourceMetrics.length;++l){if(typeof r.resourceMetrics[l]!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: object expected");s.resourceMetrics[l]=d.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(r.resourceMetrics[l])}}return s},u.toObject=function(r,s){s||(s={});var l={};if((s.arrays||s.defaults)&&(l.resourceMetrics=[]),r.resourceMetrics&&r.resourceMetrics.length){l.resourceMetrics=[];for(var c=0;c<r.resourceMetrics.length;++c)l.resourceMetrics[c]=d.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(r.resourceMetrics[c],s)}return l},u.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},u.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest"},u}(),a.ExportMetricsServiceResponse=function(){function u(i){if(i)for(var r=Object.keys(i),s=0;s<r.length;++s)i[r[s]]!=null&&(this[r[s]]=i[r[s]])}return u.prototype.partialSuccess=null,u.create=function(r){return new u(r)},u.encode=function(r,s){return s||(s=V.create()),r.partialSuccess!=null&&Object.hasOwnProperty.call(r,"partialSuccess")&&d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.encode(r.partialSuccess,s.uint32(10).fork()).ldelim(),s},u.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},u.decode=function(r,s){r instanceof T||(r=T.create(r));for(var l=s===void 0?r.len:r.pos+s,c=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.partialSuccess=d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.decode(r,r.uint32());break}default:r.skipType(p&7);break}}return c},u.decodeDelimited=function(r){return r instanceof T||(r=new T(r)),this.decode(r,r.uint32())},u.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")){var s=d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.verify(r.partialSuccess);if(s)return"partialSuccess."+s}return null},u.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse)return r;var s=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;if(r.partialSuccess!=null){if(typeof r.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse.partialSuccess: object expected");s.partialSuccess=d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.fromObject(r.partialSuccess)}return s},u.toObject=function(r,s){s||(s={});var l={};return s.defaults&&(l.partialSuccess=null),r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")&&(l.partialSuccess=d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.toObject(r.partialSuccess,s)),l},u.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},u.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse"},u}(),a.ExportMetricsPartialSuccess=function(){function u(i){if(i)for(var r=Object.keys(i),s=0;s<r.length;++s)i[r[s]]!=null&&(this[r[s]]=i[r[s]])}return u.prototype.rejectedDataPoints=null,u.prototype.errorMessage=null,u.create=function(r){return new u(r)},u.encode=function(r,s){return s||(s=V.create()),r.rejectedDataPoints!=null&&Object.hasOwnProperty.call(r,"rejectedDataPoints")&&s.uint32(8).int64(r.rejectedDataPoints),r.errorMessage!=null&&Object.hasOwnProperty.call(r,"errorMessage")&&s.uint32(18).string(r.errorMessage),s},u.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},u.decode=function(r,s){r instanceof T||(r=T.create(r));for(var l=s===void 0?r.len:r.pos+s,c=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.rejectedDataPoints=r.int64();break}case 2:{c.errorMessage=r.string();break}default:r.skipType(p&7);break}}return c},u.decodeDelimited=function(r){return r instanceof T||(r=new T(r)),this.decode(r,r.uint32())},u.verify=function(r){return typeof r!="object"||r===null?"object expected":r.rejectedDataPoints!=null&&r.hasOwnProperty("rejectedDataPoints")&&!h.isInteger(r.rejectedDataPoints)&&!(r.rejectedDataPoints&&h.isInteger(r.rejectedDataPoints.low)&&h.isInteger(r.rejectedDataPoints.high))?"rejectedDataPoints: integer|Long expected":r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&!h.isString(r.errorMessage)?"errorMessage: string expected":null},u.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess)return r;var s=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;return r.rejectedDataPoints!=null&&(h.Long?(s.rejectedDataPoints=h.Long.fromValue(r.rejectedDataPoints)).unsigned=!1:typeof r.rejectedDataPoints=="string"?s.rejectedDataPoints=parseInt(r.rejectedDataPoints,10):typeof r.rejectedDataPoints=="number"?s.rejectedDataPoints=r.rejectedDataPoints:typeof r.rejectedDataPoints=="object"&&(s.rejectedDataPoints=new h.LongBits(r.rejectedDataPoints.low>>>0,r.rejectedDataPoints.high>>>0).toNumber())),r.errorMessage!=null&&(s.errorMessage=String(r.errorMessage)),s},u.toObject=function(r,s){s||(s={});var l={};if(s.defaults){if(h.Long){var c=new h.Long(0,0,!1);l.rejectedDataPoints=s.longs===String?c.toString():s.longs===Number?c.toNumber():c}else l.rejectedDataPoints=s.longs===String?"0":0;l.errorMessage=""}return r.rejectedDataPoints!=null&&r.hasOwnProperty("rejectedDataPoints")&&(typeof r.rejectedDataPoints=="number"?l.rejectedDataPoints=s.longs===String?String(r.rejectedDataPoints):r.rejectedDataPoints:l.rejectedDataPoints=s.longs===String?h.Long.prototype.toString.call(r.rejectedDataPoints):s.longs===Number?new h.LongBits(r.rejectedDataPoints.low>>>0,r.rejectedDataPoints.high>>>0).toNumber():r.rejectedDataPoints),r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&(l.errorMessage=r.errorMessage),l},u.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},u.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess"},u}(),a}(),o}(),n.logs=function(){var o={};return o.v1=function(){var a={};return a.LogsService=function(){function u(i,r,s){I.rpc.Service.call(this,i,r,s)}return(u.prototype=Object.create(I.rpc.Service.prototype)).constructor=u,u.create=function(r,s,l){return new this(r,s,l)},Object.defineProperty(u.prototype.export=function i(r,s){return this.rpcCall(i,d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,r,s)},"name",{value:"Export"}),u}(),a.ExportLogsServiceRequest=function(){function u(i){if(this.resourceLogs=[],i)for(var r=Object.keys(i),s=0;s<r.length;++s)i[r[s]]!=null&&(this[r[s]]=i[r[s]])}return u.prototype.resourceLogs=h.emptyArray,u.create=function(r){return new u(r)},u.encode=function(r,s){if(s||(s=V.create()),r.resourceLogs!=null&&r.resourceLogs.length)for(var l=0;l<r.resourceLogs.length;++l)d.opentelemetry.proto.logs.v1.ResourceLogs.encode(r.resourceLogs[l],s.uint32(10).fork()).ldelim();return s},u.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},u.decode=function(r,s){r instanceof T||(r=T.create(r));for(var l=s===void 0?r.len:r.pos+s,c=new d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.resourceLogs&&c.resourceLogs.length||(c.resourceLogs=[]),c.resourceLogs.push(d.opentelemetry.proto.logs.v1.ResourceLogs.decode(r,r.uint32()));break}default:r.skipType(p&7);break}}return c},u.decodeDelimited=function(r){return r instanceof T||(r=new T(r)),this.decode(r,r.uint32())},u.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.resourceLogs!=null&&r.hasOwnProperty("resourceLogs")){if(!Array.isArray(r.resourceLogs))return"resourceLogs: array expected";for(var s=0;s<r.resourceLogs.length;++s){var l=d.opentelemetry.proto.logs.v1.ResourceLogs.verify(r.resourceLogs[s]);if(l)return"resourceLogs."+l}}return null},u.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest)return r;var s=new d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;if(r.resourceLogs){if(!Array.isArray(r.resourceLogs))throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: array expected");s.resourceLogs=[];for(var l=0;l<r.resourceLogs.length;++l){if(typeof r.resourceLogs[l]!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: object expected");s.resourceLogs[l]=d.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(r.resourceLogs[l])}}return s},u.toObject=function(r,s){s||(s={});var l={};if((s.arrays||s.defaults)&&(l.resourceLogs=[]),r.resourceLogs&&r.resourceLogs.length){l.resourceLogs=[];for(var c=0;c<r.resourceLogs.length;++c)l.resourceLogs[c]=d.opentelemetry.proto.logs.v1.ResourceLogs.toObject(r.resourceLogs[c],s)}return l},u.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},u.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest"},u}(),a.ExportLogsServiceResponse=function(){function u(i){if(i)for(var r=Object.keys(i),s=0;s<r.length;++s)i[r[s]]!=null&&(this[r[s]]=i[r[s]])}return u.prototype.partialSuccess=null,u.create=function(r){return new u(r)},u.encode=function(r,s){return s||(s=V.create()),r.partialSuccess!=null&&Object.hasOwnProperty.call(r,"partialSuccess")&&d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.encode(r.partialSuccess,s.uint32(10).fork()).ldelim(),s},u.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},u.decode=function(r,s){r instanceof T||(r=T.create(r));for(var l=s===void 0?r.len:r.pos+s,c=new d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.partialSuccess=d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.decode(r,r.uint32());break}default:r.skipType(p&7);break}}return c},u.decodeDelimited=function(r){return r instanceof T||(r=new T(r)),this.decode(r,r.uint32())},u.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")){var s=d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.verify(r.partialSuccess);if(s)return"partialSuccess."+s}return null},u.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse)return r;var s=new d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;if(r.partialSuccess!=null){if(typeof r.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse.partialSuccess: object expected");s.partialSuccess=d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.fromObject(r.partialSuccess)}return s},u.toObject=function(r,s){s||(s={});var l={};return s.defaults&&(l.partialSuccess=null),r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")&&(l.partialSuccess=d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.toObject(r.partialSuccess,s)),l},u.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},u.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse"},u}(),a.ExportLogsPartialSuccess=function(){function u(i){if(i)for(var r=Object.keys(i),s=0;s<r.length;++s)i[r[s]]!=null&&(this[r[s]]=i[r[s]])}return u.prototype.rejectedLogRecords=null,u.prototype.errorMessage=null,u.create=function(r){return new u(r)},u.encode=function(r,s){return s||(s=V.create()),r.rejectedLogRecords!=null&&Object.hasOwnProperty.call(r,"rejectedLogRecords")&&s.uint32(8).int64(r.rejectedLogRecords),r.errorMessage!=null&&Object.hasOwnProperty.call(r,"errorMessage")&&s.uint32(18).string(r.errorMessage),s},u.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},u.decode=function(r,s){r instanceof T||(r=T.create(r));for(var l=s===void 0?r.len:r.pos+s,c=new d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.rejectedLogRecords=r.int64();break}case 2:{c.errorMessage=r.string();break}default:r.skipType(p&7);break}}return c},u.decodeDelimited=function(r){return r instanceof T||(r=new T(r)),this.decode(r,r.uint32())},u.verify=function(r){return typeof r!="object"||r===null?"object expected":r.rejectedLogRecords!=null&&r.hasOwnProperty("rejectedLogRecords")&&!h.isInteger(r.rejectedLogRecords)&&!(r.rejectedLogRecords&&h.isInteger(r.rejectedLogRecords.low)&&h.isInteger(r.rejectedLogRecords.high))?"rejectedLogRecords: integer|Long expected":r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&!h.isString(r.errorMessage)?"errorMessage: string expected":null},u.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess)return r;var s=new d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;return r.rejectedLogRecords!=null&&(h.Long?(s.rejectedLogRecords=h.Long.fromValue(r.rejectedLogRecords)).unsigned=!1:typeof r.rejectedLogRecords=="string"?s.rejectedLogRecords=parseInt(r.rejectedLogRecords,10):typeof r.rejectedLogRecords=="number"?s.rejectedLogRecords=r.rejectedLogRecords:typeof r.rejectedLogRecords=="object"&&(s.rejectedLogRecords=new h.LongBits(r.rejectedLogRecords.low>>>0,r.rejectedLogRecords.high>>>0).toNumber())),r.errorMessage!=null&&(s.errorMessage=String(r.errorMessage)),s},u.toObject=function(r,s){s||(s={});var l={};if(s.defaults){if(h.Long){var c=new h.Long(0,0,!1);l.rejectedLogRecords=s.longs===String?c.toString():s.longs===Number?c.toNumber():c}else l.rejectedLogRecords=s.longs===String?"0":0;l.errorMessage=""}return r.rejectedLogRecords!=null&&r.hasOwnProperty("rejectedLogRecords")&&(typeof r.rejectedLogRecords=="number"?l.rejectedLogRecords=s.longs===String?String(r.rejectedLogRecords):r.rejectedLogRecords:l.rejectedLogRecords=s.longs===String?h.Long.prototype.toString.call(r.rejectedLogRecords):s.longs===Number?new h.LongBits(r.rejectedLogRecords.low>>>0,r.rejectedLogRecords.high>>>0).toNumber():r.rejectedLogRecords),r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&(l.errorMessage=r.errorMessage),l},u.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},u.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess"},u}(),a}(),o}(),n}(),e.metrics=function(){var n={};return n.v1=function(){var o={};return o.MetricsData=function(){function a(u){if(this.resourceMetrics=[],u)for(var i=Object.keys(u),r=0;r<i.length;++r)u[i[r]]!=null&&(this[i[r]]=u[i[r]])}return a.prototype.resourceMetrics=h.emptyArray,a.create=function(i){return new a(i)},a.encode=function(i,r){if(r||(r=V.create()),i.resourceMetrics!=null&&i.resourceMetrics.length)for(var s=0;s<i.resourceMetrics.length;++s)d.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(i.resourceMetrics[s],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(i,r){return this.encode(i,r).ldelim()},a.decode=function(i,r){i instanceof T||(i=T.create(i));for(var s=r===void 0?i.len:i.pos+r,l=new d.opentelemetry.proto.metrics.v1.MetricsData;i.pos<s;){var c=i.uint32();switch(c>>>3){case 1:{l.resourceMetrics&&l.resourceMetrics.length||(l.resourceMetrics=[]),l.resourceMetrics.push(d.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(i,i.uint32()));break}default:i.skipType(c&7);break}}return l},a.decodeDelimited=function(i){return i instanceof T||(i=new T(i)),this.decode(i,i.uint32())},a.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.resourceMetrics!=null&&i.hasOwnProperty("resourceMetrics")){if(!Array.isArray(i.resourceMetrics))return"resourceMetrics: array expected";for(var r=0;r<i.resourceMetrics.length;++r){var s=d.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(i.resourceMetrics[r]);if(s)return"resourceMetrics."+s}}return null},a.fromObject=function(i){if(i instanceof d.opentelemetry.proto.metrics.v1.MetricsData)return i;var r=new d.opentelemetry.proto.metrics.v1.MetricsData;if(i.resourceMetrics){if(!Array.isArray(i.resourceMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: array expected");r.resourceMetrics=[];for(var s=0;s<i.resourceMetrics.length;++s){if(typeof i.resourceMetrics[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: object expected");r.resourceMetrics[s]=d.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(i.resourceMetrics[s])}}return r},a.toObject=function(i,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.resourceMetrics=[]),i.resourceMetrics&&i.resourceMetrics.length){s.resourceMetrics=[];for(var l=0;l<i.resourceMetrics.length;++l)s.resourceMetrics[l]=d.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(i.resourceMetrics[l],r)}return s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.MetricsData"},a}(),o.ResourceMetrics=function(){function a(u){if(this.scopeMetrics=[],u)for(var i=Object.keys(u),r=0;r<i.length;++r)u[i[r]]!=null&&(this[i[r]]=u[i[r]])}return a.prototype.resource=null,a.prototype.scopeMetrics=h.emptyArray,a.prototype.schemaUrl=null,a.create=function(i){return new a(i)},a.encode=function(i,r){if(r||(r=V.create()),i.resource!=null&&Object.hasOwnProperty.call(i,"resource")&&d.opentelemetry.proto.resource.v1.Resource.encode(i.resource,r.uint32(10).fork()).ldelim(),i.scopeMetrics!=null&&i.scopeMetrics.length)for(var s=0;s<i.scopeMetrics.length;++s)d.opentelemetry.proto.metrics.v1.ScopeMetrics.encode(i.scopeMetrics[s],r.uint32(18).fork()).ldelim();return i.schemaUrl!=null&&Object.hasOwnProperty.call(i,"schemaUrl")&&r.uint32(26).string(i.schemaUrl),r},a.encodeDelimited=function(i,r){return this.encode(i,r).ldelim()},a.decode=function(i,r){i instanceof T||(i=T.create(i));for(var s=r===void 0?i.len:i.pos+r,l=new d.opentelemetry.proto.metrics.v1.ResourceMetrics;i.pos<s;){var c=i.uint32();switch(c>>>3){case 1:{l.resource=d.opentelemetry.proto.resource.v1.Resource.decode(i,i.uint32());break}case 2:{l.scopeMetrics&&l.scopeMetrics.length||(l.scopeMetrics=[]),l.scopeMetrics.push(d.opentelemetry.proto.metrics.v1.ScopeMetrics.decode(i,i.uint32()));break}case 3:{l.schemaUrl=i.string();break}default:i.skipType(c&7);break}}return l},a.decodeDelimited=function(i){return i instanceof T||(i=new T(i)),this.decode(i,i.uint32())},a.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.resource!=null&&i.hasOwnProperty("resource")){var r=d.opentelemetry.proto.resource.v1.Resource.verify(i.resource);if(r)return"resource."+r}if(i.scopeMetrics!=null&&i.hasOwnProperty("scopeMetrics")){if(!Array.isArray(i.scopeMetrics))return"scopeMetrics: array expected";for(var s=0;s<i.scopeMetrics.length;++s){var r=d.opentelemetry.proto.metrics.v1.ScopeMetrics.verify(i.scopeMetrics[s]);if(r)return"scopeMetrics."+r}}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&!h.isString(i.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(i){if(i instanceof d.opentelemetry.proto.metrics.v1.ResourceMetrics)return i;var r=new d.opentelemetry.proto.metrics.v1.ResourceMetrics;if(i.resource!=null){if(typeof i.resource!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.resource: object expected");r.resource=d.opentelemetry.proto.resource.v1.Resource.fromObject(i.resource)}if(i.scopeMetrics){if(!Array.isArray(i.scopeMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: array expected");r.scopeMetrics=[];for(var s=0;s<i.scopeMetrics.length;++s){if(typeof i.scopeMetrics[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: object expected");r.scopeMetrics[s]=d.opentelemetry.proto.metrics.v1.ScopeMetrics.fromObject(i.scopeMetrics[s])}}return i.schemaUrl!=null&&(r.schemaUrl=String(i.schemaUrl)),r},a.toObject=function(i,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.scopeMetrics=[]),r.defaults&&(s.resource=null,s.schemaUrl=""),i.resource!=null&&i.hasOwnProperty("resource")&&(s.resource=d.opentelemetry.proto.resource.v1.Resource.toObject(i.resource,r)),i.scopeMetrics&&i.scopeMetrics.length){s.scopeMetrics=[];for(var l=0;l<i.scopeMetrics.length;++l)s.scopeMetrics[l]=d.opentelemetry.proto.metrics.v1.ScopeMetrics.toObject(i.scopeMetrics[l],r)}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&(s.schemaUrl=i.schemaUrl),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.ResourceMetrics"},a}(),o.ScopeMetrics=function(){function a(u){if(this.metrics=[],u)for(var i=Object.keys(u),r=0;r<i.length;++r)u[i[r]]!=null&&(this[i[r]]=u[i[r]])}return a.prototype.scope=null,a.prototype.metrics=h.emptyArray,a.prototype.schemaUrl=null,a.create=function(i){return new a(i)},a.encode=function(i,r){if(r||(r=V.create()),i.scope!=null&&Object.hasOwnProperty.call(i,"scope")&&d.opentelemetry.proto.common.v1.InstrumentationScope.encode(i.scope,r.uint32(10).fork()).ldelim(),i.metrics!=null&&i.metrics.length)for(var s=0;s<i.metrics.length;++s)d.opentelemetry.proto.metrics.v1.Metric.encode(i.metrics[s],r.uint32(18).fork()).ldelim();return i.schemaUrl!=null&&Object.hasOwnProperty.call(i,"schemaUrl")&&r.uint32(26).string(i.schemaUrl),r},a.encodeDelimited=function(i,r){return this.encode(i,r).ldelim()},a.decode=function(i,r){i instanceof T||(i=T.create(i));for(var s=r===void 0?i.len:i.pos+r,l=new d.opentelemetry.proto.metrics.v1.ScopeMetrics;i.pos<s;){var c=i.uint32();switch(c>>>3){case 1:{l.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.decode(i,i.uint32());break}case 2:{l.metrics&&l.metrics.length||(l.metrics=[]),l.metrics.push(d.opentelemetry.proto.metrics.v1.Metric.decode(i,i.uint32()));break}case 3:{l.schemaUrl=i.string();break}default:i.skipType(c&7);break}}return l},a.decodeDelimited=function(i){return i instanceof T||(i=new T(i)),this.decode(i,i.uint32())},a.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.scope!=null&&i.hasOwnProperty("scope")){var r=d.opentelemetry.proto.common.v1.InstrumentationScope.verify(i.scope);if(r)return"scope."+r}if(i.metrics!=null&&i.hasOwnProperty("metrics")){if(!Array.isArray(i.metrics))return"metrics: array expected";for(var s=0;s<i.metrics.length;++s){var r=d.opentelemetry.proto.metrics.v1.Metric.verify(i.metrics[s]);if(r)return"metrics."+r}}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&!h.isString(i.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(i){if(i instanceof d.opentelemetry.proto.metrics.v1.ScopeMetrics)return i;var r=new d.opentelemetry.proto.metrics.v1.ScopeMetrics;if(i.scope!=null){if(typeof i.scope!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.scope: object expected");r.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(i.scope)}if(i.metrics){if(!Array.isArray(i.metrics))throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: array expected");r.metrics=[];for(var s=0;s<i.metrics.length;++s){if(typeof i.metrics[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: object expected");r.metrics[s]=d.opentelemetry.proto.metrics.v1.Metric.fromObject(i.metrics[s])}}return i.schemaUrl!=null&&(r.schemaUrl=String(i.schemaUrl)),r},a.toObject=function(i,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.metrics=[]),r.defaults&&(s.scope=null,s.schemaUrl=""),i.scope!=null&&i.hasOwnProperty("scope")&&(s.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.toObject(i.scope,r)),i.metrics&&i.metrics.length){s.metrics=[];for(var l=0;l<i.metrics.length;++l)s.metrics[l]=d.opentelemetry.proto.metrics.v1.Metric.toObject(i.metrics[l],r)}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&(s.schemaUrl=i.schemaUrl),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.ScopeMetrics"},a}(),o.Metric=function(){function a(i){if(i)for(var r=Object.keys(i),s=0;s<r.length;++s)i[r[s]]!=null&&(this[r[s]]=i[r[s]])}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:h.oneOfGetter(u=["gauge","sum","histogram","exponentialHistogram","summary"]),set:h.oneOfSetter(u)}),a.create=function(r){return new a(r)},a.encode=function(r,s){return s||(s=V.create()),r.name!=null&&Object.hasOwnProperty.call(r,"name")&&s.uint32(10).string(r.name),r.description!=null&&Object.hasOwnProperty.call(r,"description")&&s.uint32(18).string(r.description),r.unit!=null&&Object.hasOwnProperty.call(r,"unit")&&s.uint32(26).string(r.unit),r.gauge!=null&&Object.hasOwnProperty.call(r,"gauge")&&d.opentelemetry.proto.metrics.v1.Gauge.encode(r.gauge,s.uint32(42).fork()).ldelim(),r.sum!=null&&Object.hasOwnProperty.call(r,"sum")&&d.opentelemetry.proto.metrics.v1.Sum.encode(r.sum,s.uint32(58).fork()).ldelim(),r.histogram!=null&&Object.hasOwnProperty.call(r,"histogram")&&d.opentelemetry.proto.metrics.v1.Histogram.encode(r.histogram,s.uint32(74).fork()).ldelim(),r.exponentialHistogram!=null&&Object.hasOwnProperty.call(r,"exponentialHistogram")&&d.opentelemetry.proto.metrics.v1.ExponentialHistogram.encode(r.exponentialHistogram,s.uint32(82).fork()).ldelim(),r.summary!=null&&Object.hasOwnProperty.call(r,"summary")&&d.opentelemetry.proto.metrics.v1.Summary.encode(r.summary,s.uint32(90).fork()).ldelim(),s},a.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},a.decode=function(r,s){r instanceof T||(r=T.create(r));for(var l=s===void 0?r.len:r.pos+s,c=new d.opentelemetry.proto.metrics.v1.Metric;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.name=r.string();break}case 2:{c.description=r.string();break}case 3:{c.unit=r.string();break}case 5:{c.gauge=d.opentelemetry.proto.metrics.v1.Gauge.decode(r,r.uint32());break}case 7:{c.sum=d.opentelemetry.proto.metrics.v1.Sum.decode(r,r.uint32());break}case 9:{c.histogram=d.opentelemetry.proto.metrics.v1.Histogram.decode(r,r.uint32());break}case 10:{c.exponentialHistogram=d.opentelemetry.proto.metrics.v1.ExponentialHistogram.decode(r,r.uint32());break}case 11:{c.summary=d.opentelemetry.proto.metrics.v1.Summary.decode(r,r.uint32());break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof T||(r=new T(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var s={};if(r.name!=null&&r.hasOwnProperty("name")&&!h.isString(r.name))return"name: string expected";if(r.description!=null&&r.hasOwnProperty("description")&&!h.isString(r.description))return"description: string expected";if(r.unit!=null&&r.hasOwnProperty("unit")&&!h.isString(r.unit))return"unit: string expected";if(r.gauge!=null&&r.hasOwnProperty("gauge")){s.data=1;{var l=d.opentelemetry.proto.metrics.v1.Gauge.verify(r.gauge);if(l)return"gauge."+l}}if(r.sum!=null&&r.hasOwnProperty("sum")){if(s.data===1)return"data: multiple values";s.data=1;{var l=d.opentelemetry.proto.metrics.v1.Sum.verify(r.sum);if(l)return"sum."+l}}if(r.histogram!=null&&r.hasOwnProperty("histogram")){if(s.data===1)return"data: multiple values";s.data=1;{var l=d.opentelemetry.proto.metrics.v1.Histogram.verify(r.histogram);if(l)return"histogram."+l}}if(r.exponentialHistogram!=null&&r.hasOwnProperty("exponentialHistogram")){if(s.data===1)return"data: multiple values";s.data=1;{var l=d.opentelemetry.proto.metrics.v1.ExponentialHistogram.verify(r.exponentialHistogram);if(l)return"exponentialHistogram."+l}}if(r.summary!=null&&r.hasOwnProperty("summary")){if(s.data===1)return"data: multiple values";s.data=1;{var l=d.opentelemetry.proto.metrics.v1.Summary.verify(r.summary);if(l)return"summary."+l}}return null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.Metric)return r;var s=new d.opentelemetry.proto.metrics.v1.Metric;if(r.name!=null&&(s.name=String(r.name)),r.description!=null&&(s.description=String(r.description)),r.unit!=null&&(s.unit=String(r.unit)),r.gauge!=null){if(typeof r.gauge!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.gauge: object expected");s.gauge=d.opentelemetry.proto.metrics.v1.Gauge.fromObject(r.gauge)}if(r.sum!=null){if(typeof r.sum!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.sum: object expected");s.sum=d.opentelemetry.proto.metrics.v1.Sum.fromObject(r.sum)}if(r.histogram!=null){if(typeof r.histogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.histogram: object expected");s.histogram=d.opentelemetry.proto.metrics.v1.Histogram.fromObject(r.histogram)}if(r.exponentialHistogram!=null){if(typeof r.exponentialHistogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.exponentialHistogram: object expected");s.exponentialHistogram=d.opentelemetry.proto.metrics.v1.ExponentialHistogram.fromObject(r.exponentialHistogram)}if(r.summary!=null){if(typeof r.summary!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.summary: object expected");s.summary=d.opentelemetry.proto.metrics.v1.Summary.fromObject(r.summary)}return s},a.toObject=function(r,s){s||(s={});var l={};return s.defaults&&(l.name="",l.description="",l.unit=""),r.name!=null&&r.hasOwnProperty("name")&&(l.name=r.name),r.description!=null&&r.hasOwnProperty("description")&&(l.description=r.description),r.unit!=null&&r.hasOwnProperty("unit")&&(l.unit=r.unit),r.gauge!=null&&r.hasOwnProperty("gauge")&&(l.gauge=d.opentelemetry.proto.metrics.v1.Gauge.toObject(r.gauge,s),s.oneofs&&(l.data="gauge")),r.sum!=null&&r.hasOwnProperty("sum")&&(l.sum=d.opentelemetry.proto.metrics.v1.Sum.toObject(r.sum,s),s.oneofs&&(l.data="sum")),r.histogram!=null&&r.hasOwnProperty("histogram")&&(l.histogram=d.opentelemetry.proto.metrics.v1.Histogram.toObject(r.histogram,s),s.oneofs&&(l.data="histogram")),r.exponentialHistogram!=null&&r.hasOwnProperty("exponentialHistogram")&&(l.exponentialHistogram=d.opentelemetry.proto.metrics.v1.ExponentialHistogram.toObject(r.exponentialHistogram,s),s.oneofs&&(l.data="exponentialHistogram")),r.summary!=null&&r.hasOwnProperty("summary")&&(l.summary=d.opentelemetry.proto.metrics.v1.Summary.toObject(r.summary,s),s.oneofs&&(l.data="summary")),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.Metric"},a}(),o.Gauge=function(){function a(u){if(this.dataPoints=[],u)for(var i=Object.keys(u),r=0;r<i.length;++r)u[i[r]]!=null&&(this[i[r]]=u[i[r]])}return a.prototype.dataPoints=h.emptyArray,a.create=function(i){return new a(i)},a.encode=function(i,r){if(r||(r=V.create()),i.dataPoints!=null&&i.dataPoints.length)for(var s=0;s<i.dataPoints.length;++s)d.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(i.dataPoints[s],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(i,r){return this.encode(i,r).ldelim()},a.decode=function(i,r){i instanceof T||(i=T.create(i));for(var s=r===void 0?i.len:i.pos+r,l=new d.opentelemetry.proto.metrics.v1.Gauge;i.pos<s;){var c=i.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(i,i.uint32()));break}default:i.skipType(c&7);break}}return l},a.decodeDelimited=function(i){return i instanceof T||(i=new T(i)),this.decode(i,i.uint32())},a.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.dataPoints!=null&&i.hasOwnProperty("dataPoints")){if(!Array.isArray(i.dataPoints))return"dataPoints: array expected";for(var r=0;r<i.dataPoints.length;++r){var s=d.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(i.dataPoints[r]);if(s)return"dataPoints."+s}}return null},a.fromObject=function(i){if(i instanceof d.opentelemetry.proto.metrics.v1.Gauge)return i;var r=new d.opentelemetry.proto.metrics.v1.Gauge;if(i.dataPoints){if(!Array.isArray(i.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: array expected");r.dataPoints=[];for(var s=0;s<i.dataPoints.length;++s){if(typeof i.dataPoints[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: object expected");r.dataPoints[s]=d.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(i.dataPoints[s])}}return r},a.toObject=function(i,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.dataPoints=[]),i.dataPoints&&i.dataPoints.length){s.dataPoints=[];for(var l=0;l<i.dataPoints.length;++l)s.dataPoints[l]=d.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(i.dataPoints[l],r)}return s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.Gauge"},a}(),o.Sum=function(){function a(u){if(this.dataPoints=[],u)for(var i=Object.keys(u),r=0;r<i.length;++r)u[i[r]]!=null&&(this[i[r]]=u[i[r]])}return a.prototype.dataPoints=h.emptyArray,a.prototype.aggregationTemporality=null,a.prototype.isMonotonic=null,a.create=function(i){return new a(i)},a.encode=function(i,r){if(r||(r=V.create()),i.dataPoints!=null&&i.dataPoints.length)for(var s=0;s<i.dataPoints.length;++s)d.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(i.dataPoints[s],r.uint32(10).fork()).ldelim();return i.aggregationTemporality!=null&&Object.hasOwnProperty.call(i,"aggregationTemporality")&&r.uint32(16).int32(i.aggregationTemporality),i.isMonotonic!=null&&Object.hasOwnProperty.call(i,"isMonotonic")&&r.uint32(24).bool(i.isMonotonic),r},a.encodeDelimited=function(i,r){return this.encode(i,r).ldelim()},a.decode=function(i,r){i instanceof T||(i=T.create(i));for(var s=r===void 0?i.len:i.pos+r,l=new d.opentelemetry.proto.metrics.v1.Sum;i.pos<s;){var c=i.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(i,i.uint32()));break}case 2:{l.aggregationTemporality=i.int32();break}case 3:{l.isMonotonic=i.bool();break}default:i.skipType(c&7);break}}return l},a.decodeDelimited=function(i){return i instanceof T||(i=new T(i)),this.decode(i,i.uint32())},a.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.dataPoints!=null&&i.hasOwnProperty("dataPoints")){if(!Array.isArray(i.dataPoints))return"dataPoints: array expected";for(var r=0;r<i.dataPoints.length;++r){var s=d.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(i.dataPoints[r]);if(s)return"dataPoints."+s}}if(i.aggregationTemporality!=null&&i.hasOwnProperty("aggregationTemporality"))switch(i.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return i.isMonotonic!=null&&i.hasOwnProperty("isMonotonic")&&typeof i.isMonotonic!="boolean"?"isMonotonic: boolean expected":null},a.fromObject=function(i){if(i instanceof d.opentelemetry.proto.metrics.v1.Sum)return i;var r=new d.opentelemetry.proto.metrics.v1.Sum;if(i.dataPoints){if(!Array.isArray(i.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: array expected");r.dataPoints=[];for(var s=0;s<i.dataPoints.length;++s){if(typeof i.dataPoints[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: object expected");r.dataPoints[s]=d.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(i.dataPoints[s])}}switch(i.aggregationTemporality){default:if(typeof i.aggregationTemporality=="number"){r.aggregationTemporality=i.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:r.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:r.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:r.aggregationTemporality=2;break}return i.isMonotonic!=null&&(r.isMonotonic=!!i.isMonotonic),r},a.toObject=function(i,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.dataPoints=[]),r.defaults&&(s.aggregationTemporality=r.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0,s.isMonotonic=!1),i.dataPoints&&i.dataPoints.length){s.dataPoints=[];for(var l=0;l<i.dataPoints.length;++l)s.dataPoints[l]=d.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(i.dataPoints[l],r)}return i.aggregationTemporality!=null&&i.hasOwnProperty("aggregationTemporality")&&(s.aggregationTemporality=r.enums===String?d.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]===void 0?i.aggregationTemporality:d.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]:i.aggregationTemporality),i.isMonotonic!=null&&i.hasOwnProperty("isMonotonic")&&(s.isMonotonic=i.isMonotonic),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.Sum"},a}(),o.Histogram=function(){function a(u){if(this.dataPoints=[],u)for(var i=Object.keys(u),r=0;r<i.length;++r)u[i[r]]!=null&&(this[i[r]]=u[i[r]])}return a.prototype.dataPoints=h.emptyArray,a.prototype.aggregationTemporality=null,a.create=function(i){return new a(i)},a.encode=function(i,r){if(r||(r=V.create()),i.dataPoints!=null&&i.dataPoints.length)for(var s=0;s<i.dataPoints.length;++s)d.opentelemetry.proto.metrics.v1.HistogramDataPoint.encode(i.dataPoints[s],r.uint32(10).fork()).ldelim();return i.aggregationTemporality!=null&&Object.hasOwnProperty.call(i,"aggregationTemporality")&&r.uint32(16).int32(i.aggregationTemporality),r},a.encodeDelimited=function(i,r){return this.encode(i,r).ldelim()},a.decode=function(i,r){i instanceof T||(i=T.create(i));for(var s=r===void 0?i.len:i.pos+r,l=new d.opentelemetry.proto.metrics.v1.Histogram;i.pos<s;){var c=i.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.HistogramDataPoint.decode(i,i.uint32()));break}case 2:{l.aggregationTemporality=i.int32();break}default:i.skipType(c&7);break}}return l},a.decodeDelimited=function(i){return i instanceof T||(i=new T(i)),this.decode(i,i.uint32())},a.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.dataPoints!=null&&i.hasOwnProperty("dataPoints")){if(!Array.isArray(i.dataPoints))return"dataPoints: array expected";for(var r=0;r<i.dataPoints.length;++r){var s=d.opentelemetry.proto.metrics.v1.HistogramDataPoint.verify(i.dataPoints[r]);if(s)return"dataPoints."+s}}if(i.aggregationTemporality!=null&&i.hasOwnProperty("aggregationTemporality"))switch(i.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(i){if(i instanceof d.opentelemetry.proto.metrics.v1.Histogram)return i;var r=new d.opentelemetry.proto.metrics.v1.Histogram;if(i.dataPoints){if(!Array.isArray(i.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: array expected");r.dataPoints=[];for(var s=0;s<i.dataPoints.length;++s){if(typeof i.dataPoints[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: object expected");r.dataPoints[s]=d.opentelemetry.proto.metrics.v1.HistogramDataPoint.fromObject(i.dataPoints[s])}}switch(i.aggregationTemporality){default:if(typeof i.aggregationTemporality=="number"){r.aggregationTemporality=i.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:r.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:r.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:r.aggregationTemporality=2;break}return r},a.toObject=function(i,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.dataPoints=[]),r.defaults&&(s.aggregationTemporality=r.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),i.dataPoints&&i.dataPoints.length){s.dataPoints=[];for(var l=0;l<i.dataPoints.length;++l)s.dataPoints[l]=d.opentelemetry.proto.metrics.v1.HistogramDataPoint.toObject(i.dataPoints[l],r)}return i.aggregationTemporality!=null&&i.hasOwnProperty("aggregationTemporality")&&(s.aggregationTemporality=r.enums===String?d.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]===void 0?i.aggregationTemporality:d.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]:i.aggregationTemporality),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.Histogram"},a}(),o.ExponentialHistogram=function(){function a(u){if(this.dataPoints=[],u)for(var i=Object.keys(u),r=0;r<i.length;++r)u[i[r]]!=null&&(this[i[r]]=u[i[r]])}return a.prototype.dataPoints=h.emptyArray,a.prototype.aggregationTemporality=null,a.create=function(i){return new a(i)},a.encode=function(i,r){if(r||(r=V.create()),i.dataPoints!=null&&i.dataPoints.length)for(var s=0;s<i.dataPoints.length;++s)d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.encode(i.dataPoints[s],r.uint32(10).fork()).ldelim();return i.aggregationTemporality!=null&&Object.hasOwnProperty.call(i,"aggregationTemporality")&&r.uint32(16).int32(i.aggregationTemporality),r},a.encodeDelimited=function(i,r){return this.encode(i,r).ldelim()},a.decode=function(i,r){i instanceof T||(i=T.create(i));for(var s=r===void 0?i.len:i.pos+r,l=new d.opentelemetry.proto.metrics.v1.ExponentialHistogram;i.pos<s;){var c=i.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.decode(i,i.uint32()));break}case 2:{l.aggregationTemporality=i.int32();break}default:i.skipType(c&7);break}}return l},a.decodeDelimited=function(i){return i instanceof T||(i=new T(i)),this.decode(i,i.uint32())},a.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.dataPoints!=null&&i.hasOwnProperty("dataPoints")){if(!Array.isArray(i.dataPoints))return"dataPoints: array expected";for(var r=0;r<i.dataPoints.length;++r){var s=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.verify(i.dataPoints[r]);if(s)return"dataPoints."+s}}if(i.aggregationTemporality!=null&&i.hasOwnProperty("aggregationTemporality"))switch(i.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(i){if(i instanceof d.opentelemetry.proto.metrics.v1.ExponentialHistogram)return i;var r=new d.opentelemetry.proto.metrics.v1.ExponentialHistogram;if(i.dataPoints){if(!Array.isArray(i.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: array expected");r.dataPoints=[];for(var s=0;s<i.dataPoints.length;++s){if(typeof i.dataPoints[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: object expected");r.dataPoints[s]=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.fromObject(i.dataPoints[s])}}switch(i.aggregationTemporality){default:if(typeof i.aggregationTemporality=="number"){r.aggregationTemporality=i.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:r.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:r.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:r.aggregationTemporality=2;break}return r},a.toObject=function(i,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.dataPoints=[]),r.defaults&&(s.aggregationTemporality=r.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),i.dataPoints&&i.dataPoints.length){s.dataPoints=[];for(var l=0;l<i.dataPoints.length;++l)s.dataPoints[l]=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.toObject(i.dataPoints[l],r)}return i.aggregationTemporality!=null&&i.hasOwnProperty("aggregationTemporality")&&(s.aggregationTemporality=r.enums===String?d.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]===void 0?i.aggregationTemporality:d.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]:i.aggregationTemporality),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.ExponentialHistogram"},a}(),o.Summary=function(){function a(u){if(this.dataPoints=[],u)for(var i=Object.keys(u),r=0;r<i.length;++r)u[i[r]]!=null&&(this[i[r]]=u[i[r]])}return a.prototype.dataPoints=h.emptyArray,a.create=function(i){return new a(i)},a.encode=function(i,r){if(r||(r=V.create()),i.dataPoints!=null&&i.dataPoints.length)for(var s=0;s<i.dataPoints.length;++s)d.opentelemetry.proto.metrics.v1.SummaryDataPoint.encode(i.dataPoints[s],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(i,r){return this.encode(i,r).ldelim()},a.decode=function(i,r){i instanceof T||(i=T.create(i));for(var s=r===void 0?i.len:i.pos+r,l=new d.opentelemetry.proto.metrics.v1.Summary;i.pos<s;){var c=i.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.SummaryDataPoint.decode(i,i.uint32()));break}default:i.skipType(c&7);break}}return l},a.decodeDelimited=function(i){return i instanceof T||(i=new T(i)),this.decode(i,i.uint32())},a.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.dataPoints!=null&&i.hasOwnProperty("dataPoints")){if(!Array.isArray(i.dataPoints))return"dataPoints: array expected";for(var r=0;r<i.dataPoints.length;++r){var s=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.verify(i.dataPoints[r]);if(s)return"dataPoints."+s}}return null},a.fromObject=function(i){if(i instanceof d.opentelemetry.proto.metrics.v1.Summary)return i;var r=new d.opentelemetry.proto.metrics.v1.Summary;if(i.dataPoints){if(!Array.isArray(i.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: array expected");r.dataPoints=[];for(var s=0;s<i.dataPoints.length;++s){if(typeof i.dataPoints[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: object expected");r.dataPoints[s]=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.fromObject(i.dataPoints[s])}}return r},a.toObject=function(i,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.dataPoints=[]),i.dataPoints&&i.dataPoints.length){s.dataPoints=[];for(var l=0;l<i.dataPoints.length;++l)s.dataPoints[l]=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.toObject(i.dataPoints[l],r)}return s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.Summary"},a}(),o.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}(),o.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}(),o.NumberDataPoint=function(){function a(i){if(this.attributes=[],this.exemplars=[],i)for(var r=Object.keys(i),s=0;s<r.length;++s)i[r[s]]!=null&&(this[r[s]]=i[r[s]])}a.prototype.attributes=h.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.asDouble=null,a.prototype.asInt=null,a.prototype.exemplars=h.emptyArray,a.prototype.flags=null;var u;return Object.defineProperty(a.prototype,"value",{get:h.oneOfGetter(u=["asDouble","asInt"]),set:h.oneOfSetter(u)}),a.create=function(r){return new a(r)},a.encode=function(r,s){if(s||(s=V.create()),r.startTimeUnixNano!=null&&Object.hasOwnProperty.call(r,"startTimeUnixNano")&&s.uint32(17).fixed64(r.startTimeUnixNano),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&s.uint32(25).fixed64(r.timeUnixNano),r.asDouble!=null&&Object.hasOwnProperty.call(r,"asDouble")&&s.uint32(33).double(r.asDouble),r.exemplars!=null&&r.exemplars.length)for(var l=0;l<r.exemplars.length;++l)d.opentelemetry.proto.metrics.v1.Exemplar.encode(r.exemplars[l],s.uint32(42).fork()).ldelim();if(r.asInt!=null&&Object.hasOwnProperty.call(r,"asInt")&&s.uint32(49).sfixed64(r.asInt),r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],s.uint32(58).fork()).ldelim();return r.flags!=null&&Object.hasOwnProperty.call(r,"flags")&&s.uint32(64).uint32(r.flags),s},a.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},a.decode=function(r,s){r instanceof T||(r=T.create(r));for(var l=s===void 0?r.len:r.pos+s,c=new d.opentelemetry.proto.metrics.v1.NumberDataPoint;r.pos<l;){var p=r.uint32();switch(p>>>3){case 7:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 2:{c.startTimeUnixNano=r.fixed64();break}case 3:{c.timeUnixNano=r.fixed64();break}case 4:{c.asDouble=r.double();break}case 6:{c.asInt=r.sfixed64();break}case 5:{c.exemplars&&c.exemplars.length||(c.exemplars=[]),c.exemplars.push(d.opentelemetry.proto.metrics.v1.Exemplar.decode(r,r.uint32()));break}case 8:{c.flags=r.uint32();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof T||(r=new T(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var s={};if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var l=0;l<r.attributes.length;++l){var c=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[l]);if(c)return"attributes."+c}}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&!h.isInteger(r.startTimeUnixNano)&&!(r.startTimeUnixNano&&h.isInteger(r.startTimeUnixNano.low)&&h.isInteger(r.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!h.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&h.isInteger(r.timeUnixNano.low)&&h.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.asDouble!=null&&r.hasOwnProperty("asDouble")&&(s.value=1,typeof r.asDouble!="number"))return"asDouble: number expected";if(r.asInt!=null&&r.hasOwnProperty("asInt")){if(s.value===1)return"value: multiple values";if(s.value=1,!h.isInteger(r.asInt)&&!(r.asInt&&h.isInteger(r.asInt.low)&&h.isInteger(r.asInt.high)))return"asInt: integer|Long expected"}if(r.exemplars!=null&&r.hasOwnProperty("exemplars")){if(!Array.isArray(r.exemplars))return"exemplars: array expected";for(var l=0;l<r.exemplars.length;++l){var c=d.opentelemetry.proto.metrics.v1.Exemplar.verify(r.exemplars[l]);if(c)return"exemplars."+c}}return r.flags!=null&&r.hasOwnProperty("flags")&&!h.isInteger(r.flags)?"flags: integer expected":null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.NumberDataPoint)return r;var s=new d.opentelemetry.proto.metrics.v1.NumberDataPoint;if(r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: array expected");s.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: object expected");s.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}if(r.startTimeUnixNano!=null&&(h.Long?(s.startTimeUnixNano=h.Long.fromValue(r.startTimeUnixNano)).unsigned=!1:typeof r.startTimeUnixNano=="string"?s.startTimeUnixNano=parseInt(r.startTimeUnixNano,10):typeof r.startTimeUnixNano=="number"?s.startTimeUnixNano=r.startTimeUnixNano:typeof r.startTimeUnixNano=="object"&&(s.startTimeUnixNano=new h.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber())),r.timeUnixNano!=null&&(h.Long?(s.timeUnixNano=h.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?s.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?s.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(s.timeUnixNano=new h.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.asDouble!=null&&(s.asDouble=Number(r.asDouble)),r.asInt!=null&&(h.Long?(s.asInt=h.Long.fromValue(r.asInt)).unsigned=!1:typeof r.asInt=="string"?s.asInt=parseInt(r.asInt,10):typeof r.asInt=="number"?s.asInt=r.asInt:typeof r.asInt=="object"&&(s.asInt=new h.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber())),r.exemplars){if(!Array.isArray(r.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: array expected");s.exemplars=[];for(var l=0;l<r.exemplars.length;++l){if(typeof r.exemplars[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: object expected");s.exemplars[l]=d.opentelemetry.proto.metrics.v1.Exemplar.fromObject(r.exemplars[l])}}return r.flags!=null&&(s.flags=r.flags>>>0),s},a.toObject=function(r,s){s||(s={});var l={};if((s.arrays||s.defaults)&&(l.exemplars=[],l.attributes=[]),s.defaults){if(h.Long){var c=new h.Long(0,0,!1);l.startTimeUnixNano=s.longs===String?c.toString():s.longs===Number?c.toNumber():c}else l.startTimeUnixNano=s.longs===String?"0":0;if(h.Long){var c=new h.Long(0,0,!1);l.timeUnixNano=s.longs===String?c.toString():s.longs===Number?c.toNumber():c}else l.timeUnixNano=s.longs===String?"0":0;l.flags=0}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&(typeof r.startTimeUnixNano=="number"?l.startTimeUnixNano=s.longs===String?String(r.startTimeUnixNano):r.startTimeUnixNano:l.startTimeUnixNano=s.longs===String?h.Long.prototype.toString.call(r.startTimeUnixNano):s.longs===Number?new h.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber():r.startTimeUnixNano),r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=s.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=s.longs===String?h.Long.prototype.toString.call(r.timeUnixNano):s.longs===Number?new h.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.asDouble!=null&&r.hasOwnProperty("asDouble")&&(l.asDouble=s.json&&!isFinite(r.asDouble)?String(r.asDouble):r.asDouble,s.oneofs&&(l.value="asDouble")),r.exemplars&&r.exemplars.length){l.exemplars=[];for(var p=0;p<r.exemplars.length;++p)l.exemplars[p]=d.opentelemetry.proto.metrics.v1.Exemplar.toObject(r.exemplars[p],s)}if(r.asInt!=null&&r.hasOwnProperty("asInt")&&(typeof r.asInt=="number"?l.asInt=s.longs===String?String(r.asInt):r.asInt:l.asInt=s.longs===String?h.Long.prototype.toString.call(r.asInt):s.longs===Number?new h.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber():r.asInt,s.oneofs&&(l.value="asInt")),r.attributes&&r.attributes.length){l.attributes=[];for(var p=0;p<r.attributes.length;++p)l.attributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[p],s)}return r.flags!=null&&r.hasOwnProperty("flags")&&(l.flags=r.flags),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.NumberDataPoint"},a}(),o.HistogramDataPoint=function(){function a(i){if(this.attributes=[],this.bucketCounts=[],this.explicitBounds=[],this.exemplars=[],i)for(var r=Object.keys(i),s=0;s<r.length;++s)i[r[s]]!=null&&(this[r[s]]=i[r[s]])}a.prototype.attributes=h.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.count=null,a.prototype.sum=null,a.prototype.bucketCounts=h.emptyArray,a.prototype.explicitBounds=h.emptyArray,a.prototype.exemplars=h.emptyArray,a.prototype.flags=null,a.prototype.min=null,a.prototype.max=null;var u;return Object.defineProperty(a.prototype,"_sum",{get:h.oneOfGetter(u=["sum"]),set:h.oneOfSetter(u)}),Object.defineProperty(a.prototype,"_min",{get:h.oneOfGetter(u=["min"]),set:h.oneOfSetter(u)}),Object.defineProperty(a.prototype,"_max",{get:h.oneOfGetter(u=["max"]),set:h.oneOfSetter(u)}),a.create=function(r){return new a(r)},a.encode=function(r,s){if(s||(s=V.create()),r.startTimeUnixNano!=null&&Object.hasOwnProperty.call(r,"startTimeUnixNano")&&s.uint32(17).fixed64(r.startTimeUnixNano),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&s.uint32(25).fixed64(r.timeUnixNano),r.count!=null&&Object.hasOwnProperty.call(r,"count")&&s.uint32(33).fixed64(r.count),r.sum!=null&&Object.hasOwnProperty.call(r,"sum")&&s.uint32(41).double(r.sum),r.bucketCounts!=null&&r.bucketCounts.length){s.uint32(50).fork();for(var l=0;l<r.bucketCounts.length;++l)s.fixed64(r.bucketCounts[l]);s.ldelim()}if(r.explicitBounds!=null&&r.explicitBounds.length){s.uint32(58).fork();for(var l=0;l<r.explicitBounds.length;++l)s.double(r.explicitBounds[l]);s.ldelim()}if(r.exemplars!=null&&r.exemplars.length)for(var l=0;l<r.exemplars.length;++l)d.opentelemetry.proto.metrics.v1.Exemplar.encode(r.exemplars[l],s.uint32(66).fork()).ldelim();if(r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],s.uint32(74).fork()).ldelim();return r.flags!=null&&Object.hasOwnProperty.call(r,"flags")&&s.uint32(80).uint32(r.flags),r.min!=null&&Object.hasOwnProperty.call(r,"min")&&s.uint32(89).double(r.min),r.max!=null&&Object.hasOwnProperty.call(r,"max")&&s.uint32(97).double(r.max),s},a.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},a.decode=function(r,s){r instanceof T||(r=T.create(r));for(var l=s===void 0?r.len:r.pos+s,c=new d.opentelemetry.proto.metrics.v1.HistogramDataPoint;r.pos<l;){var p=r.uint32();switch(p>>>3){case 9:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 2:{c.startTimeUnixNano=r.fixed64();break}case 3:{c.timeUnixNano=r.fixed64();break}case 4:{c.count=r.fixed64();break}case 5:{c.sum=r.double();break}case 6:{if(c.bucketCounts&&c.bucketCounts.length||(c.bucketCounts=[]),(p&7)===2)for(var m=r.uint32()+r.pos;r.pos<m;)c.bucketCounts.push(r.fixed64());else c.bucketCounts.push(r.fixed64());break}case 7:{if(c.explicitBounds&&c.explicitBounds.length||(c.explicitBounds=[]),(p&7)===2)for(var m=r.uint32()+r.pos;r.pos<m;)c.explicitBounds.push(r.double());else c.explicitBounds.push(r.double());break}case 8:{c.exemplars&&c.exemplars.length||(c.exemplars=[]),c.exemplars.push(d.opentelemetry.proto.metrics.v1.Exemplar.decode(r,r.uint32()));break}case 10:{c.flags=r.uint32();break}case 11:{c.min=r.double();break}case 12:{c.max=r.double();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof T||(r=new T(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var s={};if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var l=0;l<r.attributes.length;++l){var c=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[l]);if(c)return"attributes."+c}}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&!h.isInteger(r.startTimeUnixNano)&&!(r.startTimeUnixNano&&h.isInteger(r.startTimeUnixNano.low)&&h.isInteger(r.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!h.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&h.isInteger(r.timeUnixNano.low)&&h.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.count!=null&&r.hasOwnProperty("count")&&!h.isInteger(r.count)&&!(r.count&&h.isInteger(r.count.low)&&h.isInteger(r.count.high)))return"count: integer|Long expected";if(r.sum!=null&&r.hasOwnProperty("sum")&&(s._sum=1,typeof r.sum!="number"))return"sum: number expected";if(r.bucketCounts!=null&&r.hasOwnProperty("bucketCounts")){if(!Array.isArray(r.bucketCounts))return"bucketCounts: array expected";for(var l=0;l<r.bucketCounts.length;++l)if(!h.isInteger(r.bucketCounts[l])&&!(r.bucketCounts[l]&&h.isInteger(r.bucketCounts[l].low)&&h.isInteger(r.bucketCounts[l].high)))return"bucketCounts: integer|Long[] expected"}if(r.explicitBounds!=null&&r.hasOwnProperty("explicitBounds")){if(!Array.isArray(r.explicitBounds))return"explicitBounds: array expected";for(var l=0;l<r.explicitBounds.length;++l)if(typeof r.explicitBounds[l]!="number")return"explicitBounds: number[] expected"}if(r.exemplars!=null&&r.hasOwnProperty("exemplars")){if(!Array.isArray(r.exemplars))return"exemplars: array expected";for(var l=0;l<r.exemplars.length;++l){var c=d.opentelemetry.proto.metrics.v1.Exemplar.verify(r.exemplars[l]);if(c)return"exemplars."+c}}return r.flags!=null&&r.hasOwnProperty("flags")&&!h.isInteger(r.flags)?"flags: integer expected":r.min!=null&&r.hasOwnProperty("min")&&(s._min=1,typeof r.min!="number")?"min: number expected":r.max!=null&&r.hasOwnProperty("max")&&(s._max=1,typeof r.max!="number")?"max: number expected":null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.HistogramDataPoint)return r;var s=new d.opentelemetry.proto.metrics.v1.HistogramDataPoint;if(r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: array expected");s.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: object expected");s.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}if(r.startTimeUnixNano!=null&&(h.Long?(s.startTimeUnixNano=h.Long.fromValue(r.startTimeUnixNano)).unsigned=!1:typeof r.startTimeUnixNano=="string"?s.startTimeUnixNano=parseInt(r.startTimeUnixNano,10):typeof r.startTimeUnixNano=="number"?s.startTimeUnixNano=r.startTimeUnixNano:typeof r.startTimeUnixNano=="object"&&(s.startTimeUnixNano=new h.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber())),r.timeUnixNano!=null&&(h.Long?(s.timeUnixNano=h.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?s.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?s.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(s.timeUnixNano=new h.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.count!=null&&(h.Long?(s.count=h.Long.fromValue(r.count)).unsigned=!1:typeof r.count=="string"?s.count=parseInt(r.count,10):typeof r.count=="number"?s.count=r.count:typeof r.count=="object"&&(s.count=new h.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber())),r.sum!=null&&(s.sum=Number(r.sum)),r.bucketCounts){if(!Array.isArray(r.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.bucketCounts: array expected");s.bucketCounts=[];for(var l=0;l<r.bucketCounts.length;++l)h.Long?(s.bucketCounts[l]=h.Long.fromValue(r.bucketCounts[l])).unsigned=!1:typeof r.bucketCounts[l]=="string"?s.bucketCounts[l]=parseInt(r.bucketCounts[l],10):typeof r.bucketCounts[l]=="number"?s.bucketCounts[l]=r.bucketCounts[l]:typeof r.bucketCounts[l]=="object"&&(s.bucketCounts[l]=new h.LongBits(r.bucketCounts[l].low>>>0,r.bucketCounts[l].high>>>0).toNumber())}if(r.explicitBounds){if(!Array.isArray(r.explicitBounds))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.explicitBounds: array expected");s.explicitBounds=[];for(var l=0;l<r.explicitBounds.length;++l)s.explicitBounds[l]=Number(r.explicitBounds[l])}if(r.exemplars){if(!Array.isArray(r.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: array expected");s.exemplars=[];for(var l=0;l<r.exemplars.length;++l){if(typeof r.exemplars[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: object expected");s.exemplars[l]=d.opentelemetry.proto.metrics.v1.Exemplar.fromObject(r.exemplars[l])}}return r.flags!=null&&(s.flags=r.flags>>>0),r.min!=null&&(s.min=Number(r.min)),r.max!=null&&(s.max=Number(r.max)),s},a.toObject=function(r,s){s||(s={});var l={};if((s.arrays||s.defaults)&&(l.bucketCounts=[],l.explicitBounds=[],l.exemplars=[],l.attributes=[]),s.defaults){if(h.Long){var c=new h.Long(0,0,!1);l.startTimeUnixNano=s.longs===String?c.toString():s.longs===Number?c.toNumber():c}else l.startTimeUnixNano=s.longs===String?"0":0;if(h.Long){var c=new h.Long(0,0,!1);l.timeUnixNano=s.longs===String?c.toString():s.longs===Number?c.toNumber():c}else l.timeUnixNano=s.longs===String?"0":0;if(h.Long){var c=new h.Long(0,0,!1);l.count=s.longs===String?c.toString():s.longs===Number?c.toNumber():c}else l.count=s.longs===String?"0":0;l.flags=0}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&(typeof r.startTimeUnixNano=="number"?l.startTimeUnixNano=s.longs===String?String(r.startTimeUnixNano):r.startTimeUnixNano:l.startTimeUnixNano=s.longs===String?h.Long.prototype.toString.call(r.startTimeUnixNano):s.longs===Number?new h.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber():r.startTimeUnixNano),r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=s.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=s.longs===String?h.Long.prototype.toString.call(r.timeUnixNano):s.longs===Number?new h.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.count!=null&&r.hasOwnProperty("count")&&(typeof r.count=="number"?l.count=s.longs===String?String(r.count):r.count:l.count=s.longs===String?h.Long.prototype.toString.call(r.count):s.longs===Number?new h.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber():r.count),r.sum!=null&&r.hasOwnProperty("sum")&&(l.sum=s.json&&!isFinite(r.sum)?String(r.sum):r.sum,s.oneofs&&(l._sum="sum")),r.bucketCounts&&r.bucketCounts.length){l.bucketCounts=[];for(var p=0;p<r.bucketCounts.length;++p)typeof r.bucketCounts[p]=="number"?l.bucketCounts[p]=s.longs===String?String(r.bucketCounts[p]):r.bucketCounts[p]:l.bucketCounts[p]=s.longs===String?h.Long.prototype.toString.call(r.bucketCounts[p]):s.longs===Number?new h.LongBits(r.bucketCounts[p].low>>>0,r.bucketCounts[p].high>>>0).toNumber():r.bucketCounts[p]}if(r.explicitBounds&&r.explicitBounds.length){l.explicitBounds=[];for(var p=0;p<r.explicitBounds.length;++p)l.explicitBounds[p]=s.json&&!isFinite(r.explicitBounds[p])?String(r.explicitBounds[p]):r.explicitBounds[p]}if(r.exemplars&&r.exemplars.length){l.exemplars=[];for(var p=0;p<r.exemplars.length;++p)l.exemplars[p]=d.opentelemetry.proto.metrics.v1.Exemplar.toObject(r.exemplars[p],s)}if(r.attributes&&r.attributes.length){l.attributes=[];for(var p=0;p<r.attributes.length;++p)l.attributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[p],s)}return r.flags!=null&&r.hasOwnProperty("flags")&&(l.flags=r.flags),r.min!=null&&r.hasOwnProperty("min")&&(l.min=s.json&&!isFinite(r.min)?String(r.min):r.min,s.oneofs&&(l._min="min")),r.max!=null&&r.hasOwnProperty("max")&&(l.max=s.json&&!isFinite(r.max)?String(r.max):r.max,s.oneofs&&(l._max="max")),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.HistogramDataPoint"},a}(),o.ExponentialHistogramDataPoint=function(){function a(i){if(this.attributes=[],this.exemplars=[],i)for(var r=Object.keys(i),s=0;s<r.length;++s)i[r[s]]!=null&&(this[r[s]]=i[r[s]])}a.prototype.attributes=h.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=h.emptyArray,a.prototype.min=null,a.prototype.max=null,a.prototype.zeroThreshold=null;var u;return Object.defineProperty(a.prototype,"_sum",{get:h.oneOfGetter(u=["sum"]),set:h.oneOfSetter(u)}),Object.defineProperty(a.prototype,"_min",{get:h.oneOfGetter(u=["min"]),set:h.oneOfSetter(u)}),Object.defineProperty(a.prototype,"_max",{get:h.oneOfGetter(u=["max"]),set:h.oneOfSetter(u)}),a.create=function(r){return new a(r)},a.encode=function(r,s){if(s||(s=V.create()),r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],s.uint32(10).fork()).ldelim();if(r.startTimeUnixNano!=null&&Object.hasOwnProperty.call(r,"startTimeUnixNano")&&s.uint32(17).fixed64(r.startTimeUnixNano),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&s.uint32(25).fixed64(r.timeUnixNano),r.count!=null&&Object.hasOwnProperty.call(r,"count")&&s.uint32(33).fixed64(r.count),r.sum!=null&&Object.hasOwnProperty.call(r,"sum")&&s.uint32(41).double(r.sum),r.scale!=null&&Object.hasOwnProperty.call(r,"scale")&&s.uint32(48).sint32(r.scale),r.zeroCount!=null&&Object.hasOwnProperty.call(r,"zeroCount")&&s.uint32(57).fixed64(r.zeroCount),r.positive!=null&&Object.hasOwnProperty.call(r,"positive")&&d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(r.positive,s.uint32(66).fork()).ldelim(),r.negative!=null&&Object.hasOwnProperty.call(r,"negative")&&d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(r.negative,s.uint32(74).fork()).ldelim(),r.flags!=null&&Object.hasOwnProperty.call(r,"flags")&&s.uint32(80).uint32(r.flags),r.exemplars!=null&&r.exemplars.length)for(var l=0;l<r.exemplars.length;++l)d.opentelemetry.proto.metrics.v1.Exemplar.encode(r.exemplars[l],s.uint32(90).fork()).ldelim();return r.min!=null&&Object.hasOwnProperty.call(r,"min")&&s.uint32(97).double(r.min),r.max!=null&&Object.hasOwnProperty.call(r,"max")&&s.uint32(105).double(r.max),r.zeroThreshold!=null&&Object.hasOwnProperty.call(r,"zeroThreshold")&&s.uint32(113).double(r.zeroThreshold),s},a.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},a.decode=function(r,s){r instanceof T||(r=T.create(r));for(var l=s===void 0?r.len:r.pos+s,c=new d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 2:{c.startTimeUnixNano=r.fixed64();break}case 3:{c.timeUnixNano=r.fixed64();break}case 4:{c.count=r.fixed64();break}case 5:{c.sum=r.double();break}case 6:{c.scale=r.sint32();break}case 7:{c.zeroCount=r.fixed64();break}case 8:{c.positive=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(r,r.uint32());break}case 9:{c.negative=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(r,r.uint32());break}case 10:{c.flags=r.uint32();break}case 11:{c.exemplars&&c.exemplars.length||(c.exemplars=[]),c.exemplars.push(d.opentelemetry.proto.metrics.v1.Exemplar.decode(r,r.uint32()));break}case 12:{c.min=r.double();break}case 13:{c.max=r.double();break}case 14:{c.zeroThreshold=r.double();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof T||(r=new T(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var s={};if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var l=0;l<r.attributes.length;++l){var c=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[l]);if(c)return"attributes."+c}}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&!h.isInteger(r.startTimeUnixNano)&&!(r.startTimeUnixNano&&h.isInteger(r.startTimeUnixNano.low)&&h.isInteger(r.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!h.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&h.isInteger(r.timeUnixNano.low)&&h.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.count!=null&&r.hasOwnProperty("count")&&!h.isInteger(r.count)&&!(r.count&&h.isInteger(r.count.low)&&h.isInteger(r.count.high)))return"count: integer|Long expected";if(r.sum!=null&&r.hasOwnProperty("sum")&&(s._sum=1,typeof r.sum!="number"))return"sum: number expected";if(r.scale!=null&&r.hasOwnProperty("scale")&&!h.isInteger(r.scale))return"scale: integer expected";if(r.zeroCount!=null&&r.hasOwnProperty("zeroCount")&&!h.isInteger(r.zeroCount)&&!(r.zeroCount&&h.isInteger(r.zeroCount.low)&&h.isInteger(r.zeroCount.high)))return"zeroCount: integer|Long expected";if(r.positive!=null&&r.hasOwnProperty("positive")){var c=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(r.positive);if(c)return"positive."+c}if(r.negative!=null&&r.hasOwnProperty("negative")){var c=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(r.negative);if(c)return"negative."+c}if(r.flags!=null&&r.hasOwnProperty("flags")&&!h.isInteger(r.flags))return"flags: integer expected";if(r.exemplars!=null&&r.hasOwnProperty("exemplars")){if(!Array.isArray(r.exemplars))return"exemplars: array expected";for(var l=0;l<r.exemplars.length;++l){var c=d.opentelemetry.proto.metrics.v1.Exemplar.verify(r.exemplars[l]);if(c)return"exemplars."+c}}return r.min!=null&&r.hasOwnProperty("min")&&(s._min=1,typeof r.min!="number")?"min: number expected":r.max!=null&&r.hasOwnProperty("max")&&(s._max=1,typeof r.max!="number")?"max: number expected":r.zeroThreshold!=null&&r.hasOwnProperty("zeroThreshold")&&typeof r.zeroThreshold!="number"?"zeroThreshold: number expected":null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint)return r;var s=new d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;if(r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: array expected");s.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: object expected");s.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}if(r.startTimeUnixNano!=null&&(h.Long?(s.startTimeUnixNano=h.Long.fromValue(r.startTimeUnixNano)).unsigned=!1:typeof r.startTimeUnixNano=="string"?s.startTimeUnixNano=parseInt(r.startTimeUnixNano,10):typeof r.startTimeUnixNano=="number"?s.startTimeUnixNano=r.startTimeUnixNano:typeof r.startTimeUnixNano=="object"&&(s.startTimeUnixNano=new h.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber())),r.timeUnixNano!=null&&(h.Long?(s.timeUnixNano=h.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?s.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?s.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(s.timeUnixNano=new h.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.count!=null&&(h.Long?(s.count=h.Long.fromValue(r.count)).unsigned=!1:typeof r.count=="string"?s.count=parseInt(r.count,10):typeof r.count=="number"?s.count=r.count:typeof r.count=="object"&&(s.count=new h.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber())),r.sum!=null&&(s.sum=Number(r.sum)),r.scale!=null&&(s.scale=r.scale|0),r.zeroCount!=null&&(h.Long?(s.zeroCount=h.Long.fromValue(r.zeroCount)).unsigned=!1:typeof r.zeroCount=="string"?s.zeroCount=parseInt(r.zeroCount,10):typeof r.zeroCount=="number"?s.zeroCount=r.zeroCount:typeof r.zeroCount=="object"&&(s.zeroCount=new h.LongBits(r.zeroCount.low>>>0,r.zeroCount.high>>>0).toNumber())),r.positive!=null){if(typeof r.positive!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.positive: object expected");s.positive=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(r.positive)}if(r.negative!=null){if(typeof r.negative!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.negative: object expected");s.negative=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(r.negative)}if(r.flags!=null&&(s.flags=r.flags>>>0),r.exemplars){if(!Array.isArray(r.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: array expected");s.exemplars=[];for(var l=0;l<r.exemplars.length;++l){if(typeof r.exemplars[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: object expected");s.exemplars[l]=d.opentelemetry.proto.metrics.v1.Exemplar.fromObject(r.exemplars[l])}}return r.min!=null&&(s.min=Number(r.min)),r.max!=null&&(s.max=Number(r.max)),r.zeroThreshold!=null&&(s.zeroThreshold=Number(r.zeroThreshold)),s},a.toObject=function(r,s){s||(s={});var l={};if((s.arrays||s.defaults)&&(l.attributes=[],l.exemplars=[]),s.defaults){if(h.Long){var c=new h.Long(0,0,!1);l.startTimeUnixNano=s.longs===String?c.toString():s.longs===Number?c.toNumber():c}else l.startTimeUnixNano=s.longs===String?"0":0;if(h.Long){var c=new h.Long(0,0,!1);l.timeUnixNano=s.longs===String?c.toString():s.longs===Number?c.toNumber():c}else l.timeUnixNano=s.longs===String?"0":0;if(h.Long){var c=new h.Long(0,0,!1);l.count=s.longs===String?c.toString():s.longs===Number?c.toNumber():c}else l.count=s.longs===String?"0":0;if(l.scale=0,h.Long){var c=new h.Long(0,0,!1);l.zeroCount=s.longs===String?c.toString():s.longs===Number?c.toNumber():c}else l.zeroCount=s.longs===String?"0":0;l.positive=null,l.negative=null,l.flags=0,l.zeroThreshold=0}if(r.attributes&&r.attributes.length){l.attributes=[];for(var p=0;p<r.attributes.length;++p)l.attributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[p],s)}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&(typeof r.startTimeUnixNano=="number"?l.startTimeUnixNano=s.longs===String?String(r.startTimeUnixNano):r.startTimeUnixNano:l.startTimeUnixNano=s.longs===String?h.Long.prototype.toString.call(r.startTimeUnixNano):s.longs===Number?new h.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber():r.startTimeUnixNano),r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=s.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=s.longs===String?h.Long.prototype.toString.call(r.timeUnixNano):s.longs===Number?new h.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.count!=null&&r.hasOwnProperty("count")&&(typeof r.count=="number"?l.count=s.longs===String?String(r.count):r.count:l.count=s.longs===String?h.Long.prototype.toString.call(r.count):s.longs===Number?new h.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber():r.count),r.sum!=null&&r.hasOwnProperty("sum")&&(l.sum=s.json&&!isFinite(r.sum)?String(r.sum):r.sum,s.oneofs&&(l._sum="sum")),r.scale!=null&&r.hasOwnProperty("scale")&&(l.scale=r.scale),r.zeroCount!=null&&r.hasOwnProperty("zeroCount")&&(typeof r.zeroCount=="number"?l.zeroCount=s.longs===String?String(r.zeroCount):r.zeroCount:l.zeroCount=s.longs===String?h.Long.prototype.toString.call(r.zeroCount):s.longs===Number?new h.LongBits(r.zeroCount.low>>>0,r.zeroCount.high>>>0).toNumber():r.zeroCount),r.positive!=null&&r.hasOwnProperty("positive")&&(l.positive=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(r.positive,s)),r.negative!=null&&r.hasOwnProperty("negative")&&(l.negative=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(r.negative,s)),r.flags!=null&&r.hasOwnProperty("flags")&&(l.flags=r.flags),r.exemplars&&r.exemplars.length){l.exemplars=[];for(var p=0;p<r.exemplars.length;++p)l.exemplars[p]=d.opentelemetry.proto.metrics.v1.Exemplar.toObject(r.exemplars[p],s)}return r.min!=null&&r.hasOwnProperty("min")&&(l.min=s.json&&!isFinite(r.min)?String(r.min):r.min,s.oneofs&&(l._min="min")),r.max!=null&&r.hasOwnProperty("max")&&(l.max=s.json&&!isFinite(r.max)?String(r.max):r.max,s.oneofs&&(l._max="max")),r.zeroThreshold!=null&&r.hasOwnProperty("zeroThreshold")&&(l.zeroThreshold=s.json&&!isFinite(r.zeroThreshold)?String(r.zeroThreshold):r.zeroThreshold),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint"},a.Buckets=function(){function i(r){if(this.bucketCounts=[],r)for(var s=Object.keys(r),l=0;l<s.length;++l)r[s[l]]!=null&&(this[s[l]]=r[s[l]])}return i.prototype.offset=null,i.prototype.bucketCounts=h.emptyArray,i.create=function(s){return new i(s)},i.encode=function(s,l){if(l||(l=V.create()),s.offset!=null&&Object.hasOwnProperty.call(s,"offset")&&l.uint32(8).sint32(s.offset),s.bucketCounts!=null&&s.bucketCounts.length){l.uint32(18).fork();for(var c=0;c<s.bucketCounts.length;++c)l.uint64(s.bucketCounts[c]);l.ldelim()}return l},i.encodeDelimited=function(s,l){return this.encode(s,l).ldelim()},i.decode=function(s,l){s instanceof T||(s=T.create(s));for(var c=l===void 0?s.len:s.pos+l,p=new d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;s.pos<c;){var m=s.uint32();switch(m>>>3){case 1:{p.offset=s.sint32();break}case 2:{if(p.bucketCounts&&p.bucketCounts.length||(p.bucketCounts=[]),(m&7)===2)for(var f=s.uint32()+s.pos;s.pos<f;)p.bucketCounts.push(s.uint64());else p.bucketCounts.push(s.uint64());break}default:s.skipType(m&7);break}}return p},i.decodeDelimited=function(s){return s instanceof T||(s=new T(s)),this.decode(s,s.uint32())},i.verify=function(s){if(typeof s!="object"||s===null)return"object expected";if(s.offset!=null&&s.hasOwnProperty("offset")&&!h.isInteger(s.offset))return"offset: integer expected";if(s.bucketCounts!=null&&s.hasOwnProperty("bucketCounts")){if(!Array.isArray(s.bucketCounts))return"bucketCounts: array expected";for(var l=0;l<s.bucketCounts.length;++l)if(!h.isInteger(s.bucketCounts[l])&&!(s.bucketCounts[l]&&h.isInteger(s.bucketCounts[l].low)&&h.isInteger(s.bucketCounts[l].high)))return"bucketCounts: integer|Long[] expected"}return null},i.fromObject=function(s){if(s instanceof d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets)return s;var l=new d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;if(s.offset!=null&&(l.offset=s.offset|0),s.bucketCounts){if(!Array.isArray(s.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.bucketCounts: array expected");l.bucketCounts=[];for(var c=0;c<s.bucketCounts.length;++c)h.Long?(l.bucketCounts[c]=h.Long.fromValue(s.bucketCounts[c])).unsigned=!0:typeof s.bucketCounts[c]=="string"?l.bucketCounts[c]=parseInt(s.bucketCounts[c],10):typeof s.bucketCounts[c]=="number"?l.bucketCounts[c]=s.bucketCounts[c]:typeof s.bucketCounts[c]=="object"&&(l.bucketCounts[c]=new h.LongBits(s.bucketCounts[c].low>>>0,s.bucketCounts[c].high>>>0).toNumber(!0))}return l},i.toObject=function(s,l){l||(l={});var c={};if((l.arrays||l.defaults)&&(c.bucketCounts=[]),l.defaults&&(c.offset=0),s.offset!=null&&s.hasOwnProperty("offset")&&(c.offset=s.offset),s.bucketCounts&&s.bucketCounts.length){c.bucketCounts=[];for(var p=0;p<s.bucketCounts.length;++p)typeof s.bucketCounts[p]=="number"?c.bucketCounts[p]=l.longs===String?String(s.bucketCounts[p]):s.bucketCounts[p]:c.bucketCounts[p]=l.longs===String?h.Long.prototype.toString.call(s.bucketCounts[p]):l.longs===Number?new h.LongBits(s.bucketCounts[p].low>>>0,s.bucketCounts[p].high>>>0).toNumber(!0):s.bucketCounts[p]}return c},i.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},i.getTypeUrl=function(s){return s===void 0&&(s="type.googleapis.com"),s+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets"},i}(),a}(),o.SummaryDataPoint=function(){function a(u){if(this.attributes=[],this.quantileValues=[],u)for(var i=Object.keys(u),r=0;r<i.length;++r)u[i[r]]!=null&&(this[i[r]]=u[i[r]])}return a.prototype.attributes=h.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.count=null,a.prototype.sum=null,a.prototype.quantileValues=h.emptyArray,a.prototype.flags=null,a.create=function(i){return new a(i)},a.encode=function(i,r){if(r||(r=V.create()),i.startTimeUnixNano!=null&&Object.hasOwnProperty.call(i,"startTimeUnixNano")&&r.uint32(17).fixed64(i.startTimeUnixNano),i.timeUnixNano!=null&&Object.hasOwnProperty.call(i,"timeUnixNano")&&r.uint32(25).fixed64(i.timeUnixNano),i.count!=null&&Object.hasOwnProperty.call(i,"count")&&r.uint32(33).fixed64(i.count),i.sum!=null&&Object.hasOwnProperty.call(i,"sum")&&r.uint32(41).double(i.sum),i.quantileValues!=null&&i.quantileValues.length)for(var s=0;s<i.quantileValues.length;++s)d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.encode(i.quantileValues[s],r.uint32(50).fork()).ldelim();if(i.attributes!=null&&i.attributes.length)for(var s=0;s<i.attributes.length;++s)d.opentelemetry.proto.common.v1.KeyValue.encode(i.attributes[s],r.uint32(58).fork()).ldelim();return i.flags!=null&&Object.hasOwnProperty.call(i,"flags")&&r.uint32(64).uint32(i.flags),r},a.encodeDelimited=function(i,r){return this.encode(i,r).ldelim()},a.decode=function(i,r){i instanceof T||(i=T.create(i));for(var s=r===void 0?i.len:i.pos+r,l=new d.opentelemetry.proto.metrics.v1.SummaryDataPoint;i.pos<s;){var c=i.uint32();switch(c>>>3){case 7:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(i,i.uint32()));break}case 2:{l.startTimeUnixNano=i.fixed64();break}case 3:{l.timeUnixNano=i.fixed64();break}case 4:{l.count=i.fixed64();break}case 5:{l.sum=i.double();break}case 6:{l.quantileValues&&l.quantileValues.length||(l.quantileValues=[]),l.quantileValues.push(d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.decode(i,i.uint32()));break}case 8:{l.flags=i.uint32();break}default:i.skipType(c&7);break}}return l},a.decodeDelimited=function(i){return i instanceof T||(i=new T(i)),this.decode(i,i.uint32())},a.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.attributes!=null&&i.hasOwnProperty("attributes")){if(!Array.isArray(i.attributes))return"attributes: array expected";for(var r=0;r<i.attributes.length;++r){var s=d.opentelemetry.proto.common.v1.KeyValue.verify(i.attributes[r]);if(s)return"attributes."+s}}if(i.startTimeUnixNano!=null&&i.hasOwnProperty("startTimeUnixNano")&&!h.isInteger(i.startTimeUnixNano)&&!(i.startTimeUnixNano&&h.isInteger(i.startTimeUnixNano.low)&&h.isInteger(i.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(i.timeUnixNano!=null&&i.hasOwnProperty("timeUnixNano")&&!h.isInteger(i.timeUnixNano)&&!(i.timeUnixNano&&h.isInteger(i.timeUnixNano.low)&&h.isInteger(i.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(i.count!=null&&i.hasOwnProperty("count")&&!h.isInteger(i.count)&&!(i.count&&h.isInteger(i.count.low)&&h.isInteger(i.count.high)))return"count: integer|Long expected";if(i.sum!=null&&i.hasOwnProperty("sum")&&typeof i.sum!="number")return"sum: number expected";if(i.quantileValues!=null&&i.hasOwnProperty("quantileValues")){if(!Array.isArray(i.quantileValues))return"quantileValues: array expected";for(var r=0;r<i.quantileValues.length;++r){var s=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.verify(i.quantileValues[r]);if(s)return"quantileValues."+s}}return i.flags!=null&&i.hasOwnProperty("flags")&&!h.isInteger(i.flags)?"flags: integer expected":null},a.fromObject=function(i){if(i instanceof d.opentelemetry.proto.metrics.v1.SummaryDataPoint)return i;var r=new d.opentelemetry.proto.metrics.v1.SummaryDataPoint;if(i.attributes){if(!Array.isArray(i.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: array expected");r.attributes=[];for(var s=0;s<i.attributes.length;++s){if(typeof i.attributes[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: object expected");r.attributes[s]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(i.attributes[s])}}if(i.startTimeUnixNano!=null&&(h.Long?(r.startTimeUnixNano=h.Long.fromValue(i.startTimeUnixNano)).unsigned=!1:typeof i.startTimeUnixNano=="string"?r.startTimeUnixNano=parseInt(i.startTimeUnixNano,10):typeof i.startTimeUnixNano=="number"?r.startTimeUnixNano=i.startTimeUnixNano:typeof i.startTimeUnixNano=="object"&&(r.startTimeUnixNano=new h.LongBits(i.startTimeUnixNano.low>>>0,i.startTimeUnixNano.high>>>0).toNumber())),i.timeUnixNano!=null&&(h.Long?(r.timeUnixNano=h.Long.fromValue(i.timeUnixNano)).unsigned=!1:typeof i.timeUnixNano=="string"?r.timeUnixNano=parseInt(i.timeUnixNano,10):typeof i.timeUnixNano=="number"?r.timeUnixNano=i.timeUnixNano:typeof i.timeUnixNano=="object"&&(r.timeUnixNano=new h.LongBits(i.timeUnixNano.low>>>0,i.timeUnixNano.high>>>0).toNumber())),i.count!=null&&(h.Long?(r.count=h.Long.fromValue(i.count)).unsigned=!1:typeof i.count=="string"?r.count=parseInt(i.count,10):typeof i.count=="number"?r.count=i.count:typeof i.count=="object"&&(r.count=new h.LongBits(i.count.low>>>0,i.count.high>>>0).toNumber())),i.sum!=null&&(r.sum=Number(i.sum)),i.quantileValues){if(!Array.isArray(i.quantileValues))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: array expected");r.quantileValues=[];for(var s=0;s<i.quantileValues.length;++s){if(typeof i.quantileValues[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: object expected");r.quantileValues[s]=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.fromObject(i.quantileValues[s])}}return i.flags!=null&&(r.flags=i.flags>>>0),r},a.toObject=function(i,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.quantileValues=[],s.attributes=[]),r.defaults){if(h.Long){var l=new h.Long(0,0,!1);s.startTimeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else s.startTimeUnixNano=r.longs===String?"0":0;if(h.Long){var l=new h.Long(0,0,!1);s.timeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else s.timeUnixNano=r.longs===String?"0":0;if(h.Long){var l=new h.Long(0,0,!1);s.count=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else s.count=r.longs===String?"0":0;s.sum=0,s.flags=0}if(i.startTimeUnixNano!=null&&i.hasOwnProperty("startTimeUnixNano")&&(typeof i.startTimeUnixNano=="number"?s.startTimeUnixNano=r.longs===String?String(i.startTimeUnixNano):i.startTimeUnixNano:s.startTimeUnixNano=r.longs===String?h.Long.prototype.toString.call(i.startTimeUnixNano):r.longs===Number?new h.LongBits(i.startTimeUnixNano.low>>>0,i.startTimeUnixNano.high>>>0).toNumber():i.startTimeUnixNano),i.timeUnixNano!=null&&i.hasOwnProperty("timeUnixNano")&&(typeof i.timeUnixNano=="number"?s.timeUnixNano=r.longs===String?String(i.timeUnixNano):i.timeUnixNano:s.timeUnixNano=r.longs===String?h.Long.prototype.toString.call(i.timeUnixNano):r.longs===Number?new h.LongBits(i.timeUnixNano.low>>>0,i.timeUnixNano.high>>>0).toNumber():i.timeUnixNano),i.count!=null&&i.hasOwnProperty("count")&&(typeof i.count=="number"?s.count=r.longs===String?String(i.count):i.count:s.count=r.longs===String?h.Long.prototype.toString.call(i.count):r.longs===Number?new h.LongBits(i.count.low>>>0,i.count.high>>>0).toNumber():i.count),i.sum!=null&&i.hasOwnProperty("sum")&&(s.sum=r.json&&!isFinite(i.sum)?String(i.sum):i.sum),i.quantileValues&&i.quantileValues.length){s.quantileValues=[];for(var c=0;c<i.quantileValues.length;++c)s.quantileValues[c]=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.toObject(i.quantileValues[c],r)}if(i.attributes&&i.attributes.length){s.attributes=[];for(var c=0;c<i.attributes.length;++c)s.attributes[c]=d.opentelemetry.proto.common.v1.KeyValue.toObject(i.attributes[c],r)}return i.flags!=null&&i.hasOwnProperty("flags")&&(s.flags=i.flags),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.SummaryDataPoint"},a.ValueAtQuantile=function(){function u(i){if(i)for(var r=Object.keys(i),s=0;s<r.length;++s)i[r[s]]!=null&&(this[r[s]]=i[r[s]])}return u.prototype.quantile=null,u.prototype.value=null,u.create=function(r){return new u(r)},u.encode=function(r,s){return s||(s=V.create()),r.quantile!=null&&Object.hasOwnProperty.call(r,"quantile")&&s.uint32(9).double(r.quantile),r.value!=null&&Object.hasOwnProperty.call(r,"value")&&s.uint32(17).double(r.value),s},u.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},u.decode=function(r,s){r instanceof T||(r=T.create(r));for(var l=s===void 0?r.len:r.pos+s,c=new d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.quantile=r.double();break}case 2:{c.value=r.double();break}default:r.skipType(p&7);break}}return c},u.decodeDelimited=function(r){return r instanceof T||(r=new T(r)),this.decode(r,r.uint32())},u.verify=function(r){return typeof r!="object"||r===null?"object expected":r.quantile!=null&&r.hasOwnProperty("quantile")&&typeof r.quantile!="number"?"quantile: number expected":r.value!=null&&r.hasOwnProperty("value")&&typeof r.value!="number"?"value: number expected":null},u.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile)return r;var s=new d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;return r.quantile!=null&&(s.quantile=Number(r.quantile)),r.value!=null&&(s.value=Number(r.value)),s},u.toObject=function(r,s){s||(s={});var l={};return s.defaults&&(l.quantile=0,l.value=0),r.quantile!=null&&r.hasOwnProperty("quantile")&&(l.quantile=s.json&&!isFinite(r.quantile)?String(r.quantile):r.quantile),r.value!=null&&r.hasOwnProperty("value")&&(l.value=s.json&&!isFinite(r.value)?String(r.value):r.value),l},u.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},u.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile"},u}(),a}(),o.Exemplar=function(){function a(i){if(this.filteredAttributes=[],i)for(var r=Object.keys(i),s=0;s<r.length;++s)i[r[s]]!=null&&(this[r[s]]=i[r[s]])}a.prototype.filteredAttributes=h.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:h.oneOfGetter(u=["asDouble","asInt"]),set:h.oneOfSetter(u)}),a.create=function(r){return new a(r)},a.encode=function(r,s){if(s||(s=V.create()),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&s.uint32(17).fixed64(r.timeUnixNano),r.asDouble!=null&&Object.hasOwnProperty.call(r,"asDouble")&&s.uint32(25).double(r.asDouble),r.spanId!=null&&Object.hasOwnProperty.call(r,"spanId")&&s.uint32(34).bytes(r.spanId),r.traceId!=null&&Object.hasOwnProperty.call(r,"traceId")&&s.uint32(42).bytes(r.traceId),r.asInt!=null&&Object.hasOwnProperty.call(r,"asInt")&&s.uint32(49).sfixed64(r.asInt),r.filteredAttributes!=null&&r.filteredAttributes.length)for(var l=0;l<r.filteredAttributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.filteredAttributes[l],s.uint32(58).fork()).ldelim();return s},a.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},a.decode=function(r,s){r instanceof T||(r=T.create(r));for(var l=s===void 0?r.len:r.pos+s,c=new d.opentelemetry.proto.metrics.v1.Exemplar;r.pos<l;){var p=r.uint32();switch(p>>>3){case 7:{c.filteredAttributes&&c.filteredAttributes.length||(c.filteredAttributes=[]),c.filteredAttributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 2:{c.timeUnixNano=r.fixed64();break}case 3:{c.asDouble=r.double();break}case 6:{c.asInt=r.sfixed64();break}case 4:{c.spanId=r.bytes();break}case 5:{c.traceId=r.bytes();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof T||(r=new T(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var s={};if(r.filteredAttributes!=null&&r.hasOwnProperty("filteredAttributes")){if(!Array.isArray(r.filteredAttributes))return"filteredAttributes: array expected";for(var l=0;l<r.filteredAttributes.length;++l){var c=d.opentelemetry.proto.common.v1.KeyValue.verify(r.filteredAttributes[l]);if(c)return"filteredAttributes."+c}}if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!h.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&h.isInteger(r.timeUnixNano.low)&&h.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.asDouble!=null&&r.hasOwnProperty("asDouble")&&(s.value=1,typeof r.asDouble!="number"))return"asDouble: number expected";if(r.asInt!=null&&r.hasOwnProperty("asInt")){if(s.value===1)return"value: multiple values";if(s.value=1,!h.isInteger(r.asInt)&&!(r.asInt&&h.isInteger(r.asInt.low)&&h.isInteger(r.asInt.high)))return"asInt: integer|Long expected"}return r.spanId!=null&&r.hasOwnProperty("spanId")&&!(r.spanId&&typeof r.spanId.length=="number"||h.isString(r.spanId))?"spanId: buffer expected":r.traceId!=null&&r.hasOwnProperty("traceId")&&!(r.traceId&&typeof r.traceId.length=="number"||h.isString(r.traceId))?"traceId: buffer expected":null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.Exemplar)return r;var s=new d.opentelemetry.proto.metrics.v1.Exemplar;if(r.filteredAttributes){if(!Array.isArray(r.filteredAttributes))throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: array expected");s.filteredAttributes=[];for(var l=0;l<r.filteredAttributes.length;++l){if(typeof r.filteredAttributes[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: object expected");s.filteredAttributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.filteredAttributes[l])}}return r.timeUnixNano!=null&&(h.Long?(s.timeUnixNano=h.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?s.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?s.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(s.timeUnixNano=new h.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.asDouble!=null&&(s.asDouble=Number(r.asDouble)),r.asInt!=null&&(h.Long?(s.asInt=h.Long.fromValue(r.asInt)).unsigned=!1:typeof r.asInt=="string"?s.asInt=parseInt(r.asInt,10):typeof r.asInt=="number"?s.asInt=r.asInt:typeof r.asInt=="object"&&(s.asInt=new h.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber())),r.spanId!=null&&(typeof r.spanId=="string"?h.base64.decode(r.spanId,s.spanId=h.newBuffer(h.base64.length(r.spanId)),0):r.spanId.length>=0&&(s.spanId=r.spanId)),r.traceId!=null&&(typeof r.traceId=="string"?h.base64.decode(r.traceId,s.traceId=h.newBuffer(h.base64.length(r.traceId)),0):r.traceId.length>=0&&(s.traceId=r.traceId)),s},a.toObject=function(r,s){s||(s={});var l={};if((s.arrays||s.defaults)&&(l.filteredAttributes=[]),s.defaults){if(h.Long){var c=new h.Long(0,0,!1);l.timeUnixNano=s.longs===String?c.toString():s.longs===Number?c.toNumber():c}else l.timeUnixNano=s.longs===String?"0":0;s.bytes===String?l.spanId="":(l.spanId=[],s.bytes!==Array&&(l.spanId=h.newBuffer(l.spanId))),s.bytes===String?l.traceId="":(l.traceId=[],s.bytes!==Array&&(l.traceId=h.newBuffer(l.traceId)))}if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=s.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=s.longs===String?h.Long.prototype.toString.call(r.timeUnixNano):s.longs===Number?new h.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.asDouble!=null&&r.hasOwnProperty("asDouble")&&(l.asDouble=s.json&&!isFinite(r.asDouble)?String(r.asDouble):r.asDouble,s.oneofs&&(l.value="asDouble")),r.spanId!=null&&r.hasOwnProperty("spanId")&&(l.spanId=s.bytes===String?h.base64.encode(r.spanId,0,r.spanId.length):s.bytes===Array?Array.prototype.slice.call(r.spanId):r.spanId),r.traceId!=null&&r.hasOwnProperty("traceId")&&(l.traceId=s.bytes===String?h.base64.encode(r.traceId,0,r.traceId.length):s.bytes===Array?Array.prototype.slice.call(r.traceId):r.traceId),r.asInt!=null&&r.hasOwnProperty("asInt")&&(typeof r.asInt=="number"?l.asInt=s.longs===String?String(r.asInt):r.asInt:l.asInt=s.longs===String?h.Long.prototype.toString.call(r.asInt):s.longs===Number?new h.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber():r.asInt,s.oneofs&&(l.value="asInt")),r.filteredAttributes&&r.filteredAttributes.length){l.filteredAttributes=[];for(var p=0;p<r.filteredAttributes.length;++p)l.filteredAttributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.filteredAttributes[p],s)}return l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.Exemplar"},a}(),o}(),n}(),e.logs=function(){var n={};return n.v1=function(){var o={};return o.LogsData=function(){function a(u){if(this.resourceLogs=[],u)for(var i=Object.keys(u),r=0;r<i.length;++r)u[i[r]]!=null&&(this[i[r]]=u[i[r]])}return a.prototype.resourceLogs=h.emptyArray,a.create=function(i){return new a(i)},a.encode=function(i,r){if(r||(r=V.create()),i.resourceLogs!=null&&i.resourceLogs.length)for(var s=0;s<i.resourceLogs.length;++s)d.opentelemetry.proto.logs.v1.ResourceLogs.encode(i.resourceLogs[s],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(i,r){return this.encode(i,r).ldelim()},a.decode=function(i,r){i instanceof T||(i=T.create(i));for(var s=r===void 0?i.len:i.pos+r,l=new d.opentelemetry.proto.logs.v1.LogsData;i.pos<s;){var c=i.uint32();switch(c>>>3){case 1:{l.resourceLogs&&l.resourceLogs.length||(l.resourceLogs=[]),l.resourceLogs.push(d.opentelemetry.proto.logs.v1.ResourceLogs.decode(i,i.uint32()));break}default:i.skipType(c&7);break}}return l},a.decodeDelimited=function(i){return i instanceof T||(i=new T(i)),this.decode(i,i.uint32())},a.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.resourceLogs!=null&&i.hasOwnProperty("resourceLogs")){if(!Array.isArray(i.resourceLogs))return"resourceLogs: array expected";for(var r=0;r<i.resourceLogs.length;++r){var s=d.opentelemetry.proto.logs.v1.ResourceLogs.verify(i.resourceLogs[r]);if(s)return"resourceLogs."+s}}return null},a.fromObject=function(i){if(i instanceof d.opentelemetry.proto.logs.v1.LogsData)return i;var r=new d.opentelemetry.proto.logs.v1.LogsData;if(i.resourceLogs){if(!Array.isArray(i.resourceLogs))throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: array expected");r.resourceLogs=[];for(var s=0;s<i.resourceLogs.length;++s){if(typeof i.resourceLogs[s]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: object expected");r.resourceLogs[s]=d.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(i.resourceLogs[s])}}return r},a.toObject=function(i,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.resourceLogs=[]),i.resourceLogs&&i.resourceLogs.length){s.resourceLogs=[];for(var l=0;l<i.resourceLogs.length;++l)s.resourceLogs[l]=d.opentelemetry.proto.logs.v1.ResourceLogs.toObject(i.resourceLogs[l],r)}return s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.logs.v1.LogsData"},a}(),o.ResourceLogs=function(){function a(u){if(this.scopeLogs=[],u)for(var i=Object.keys(u),r=0;r<i.length;++r)u[i[r]]!=null&&(this[i[r]]=u[i[r]])}return a.prototype.resource=null,a.prototype.scopeLogs=h.emptyArray,a.prototype.schemaUrl=null,a.create=function(i){return new a(i)},a.encode=function(i,r){if(r||(r=V.create()),i.resource!=null&&Object.hasOwnProperty.call(i,"resource")&&d.opentelemetry.proto.resource.v1.Resource.encode(i.resource,r.uint32(10).fork()).ldelim(),i.scopeLogs!=null&&i.scopeLogs.length)for(var s=0;s<i.scopeLogs.length;++s)d.opentelemetry.proto.logs.v1.ScopeLogs.encode(i.scopeLogs[s],r.uint32(18).fork()).ldelim();return i.schemaUrl!=null&&Object.hasOwnProperty.call(i,"schemaUrl")&&r.uint32(26).string(i.schemaUrl),r},a.encodeDelimited=function(i,r){return this.encode(i,r).ldelim()},a.decode=function(i,r){i instanceof T||(i=T.create(i));for(var s=r===void 0?i.len:i.pos+r,l=new d.opentelemetry.proto.logs.v1.ResourceLogs;i.pos<s;){var c=i.uint32();switch(c>>>3){case 1:{l.resource=d.opentelemetry.proto.resource.v1.Resource.decode(i,i.uint32());break}case 2:{l.scopeLogs&&l.scopeLogs.length||(l.scopeLogs=[]),l.scopeLogs.push(d.opentelemetry.proto.logs.v1.ScopeLogs.decode(i,i.uint32()));break}case 3:{l.schemaUrl=i.string();break}default:i.skipType(c&7);break}}return l},a.decodeDelimited=function(i){return i instanceof T||(i=new T(i)),this.decode(i,i.uint32())},a.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.resource!=null&&i.hasOwnProperty("resource")){var r=d.opentelemetry.proto.resource.v1.Resource.verify(i.resource);if(r)return"resource."+r}if(i.scopeLogs!=null&&i.hasOwnProperty("scopeLogs")){if(!Array.isArray(i.scopeLogs))return"scopeLogs: array expected";for(var s=0;s<i.scopeLogs.length;++s){var r=d.opentelemetry.proto.logs.v1.ScopeLogs.verify(i.scopeLogs[s]);if(r)return"scopeLogs."+r}}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&!h.isString(i.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(i){if(i instanceof d.opentelemetry.proto.logs.v1.ResourceLogs)return i;var r=new d.opentelemetry.proto.logs.v1.ResourceLogs;if(i.resource!=null){if(typeof i.resource!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.resource: object expected");r.resource=d.opentelemetry.proto.resource.v1.Resource.fromObject(i.resource)}if(i.scopeLogs){if(!Array.isArray(i.scopeLogs))throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: array expected");r.scopeLogs=[];for(var s=0;s<i.scopeLogs.length;++s){if(typeof i.scopeLogs[s]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: object expected");r.scopeLogs[s]=d.opentelemetry.proto.logs.v1.ScopeLogs.fromObject(i.scopeLogs[s])}}return i.schemaUrl!=null&&(r.schemaUrl=String(i.schemaUrl)),r},a.toObject=function(i,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.scopeLogs=[]),r.defaults&&(s.resource=null,s.schemaUrl=""),i.resource!=null&&i.hasOwnProperty("resource")&&(s.resource=d.opentelemetry.proto.resource.v1.Resource.toObject(i.resource,r)),i.scopeLogs&&i.scopeLogs.length){s.scopeLogs=[];for(var l=0;l<i.scopeLogs.length;++l)s.scopeLogs[l]=d.opentelemetry.proto.logs.v1.ScopeLogs.toObject(i.scopeLogs[l],r)}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&(s.schemaUrl=i.schemaUrl),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.logs.v1.ResourceLogs"},a}(),o.ScopeLogs=function(){function a(u){if(this.logRecords=[],u)for(var i=Object.keys(u),r=0;r<i.length;++r)u[i[r]]!=null&&(this[i[r]]=u[i[r]])}return a.prototype.scope=null,a.prototype.logRecords=h.emptyArray,a.prototype.schemaUrl=null,a.create=function(i){return new a(i)},a.encode=function(i,r){if(r||(r=V.create()),i.scope!=null&&Object.hasOwnProperty.call(i,"scope")&&d.opentelemetry.proto.common.v1.InstrumentationScope.encode(i.scope,r.uint32(10).fork()).ldelim(),i.logRecords!=null&&i.logRecords.length)for(var s=0;s<i.logRecords.length;++s)d.opentelemetry.proto.logs.v1.LogRecord.encode(i.logRecords[s],r.uint32(18).fork()).ldelim();return i.schemaUrl!=null&&Object.hasOwnProperty.call(i,"schemaUrl")&&r.uint32(26).string(i.schemaUrl),r},a.encodeDelimited=function(i,r){return this.encode(i,r).ldelim()},a.decode=function(i,r){i instanceof T||(i=T.create(i));for(var s=r===void 0?i.len:i.pos+r,l=new d.opentelemetry.proto.logs.v1.ScopeLogs;i.pos<s;){var c=i.uint32();switch(c>>>3){case 1:{l.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.decode(i,i.uint32());break}case 2:{l.logRecords&&l.logRecords.length||(l.logRecords=[]),l.logRecords.push(d.opentelemetry.proto.logs.v1.LogRecord.decode(i,i.uint32()));break}case 3:{l.schemaUrl=i.string();break}default:i.skipType(c&7);break}}return l},a.decodeDelimited=function(i){return i instanceof T||(i=new T(i)),this.decode(i,i.uint32())},a.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.scope!=null&&i.hasOwnProperty("scope")){var r=d.opentelemetry.proto.common.v1.InstrumentationScope.verify(i.scope);if(r)return"scope."+r}if(i.logRecords!=null&&i.hasOwnProperty("logRecords")){if(!Array.isArray(i.logRecords))return"logRecords: array expected";for(var s=0;s<i.logRecords.length;++s){var r=d.opentelemetry.proto.logs.v1.LogRecord.verify(i.logRecords[s]);if(r)return"logRecords."+r}}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&!h.isString(i.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(i){if(i instanceof d.opentelemetry.proto.logs.v1.ScopeLogs)return i;var r=new d.opentelemetry.proto.logs.v1.ScopeLogs;if(i.scope!=null){if(typeof i.scope!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.scope: object expected");r.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(i.scope)}if(i.logRecords){if(!Array.isArray(i.logRecords))throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: array expected");r.logRecords=[];for(var s=0;s<i.logRecords.length;++s){if(typeof i.logRecords[s]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: object expected");r.logRecords[s]=d.opentelemetry.proto.logs.v1.LogRecord.fromObject(i.logRecords[s])}}return i.schemaUrl!=null&&(r.schemaUrl=String(i.schemaUrl)),r},a.toObject=function(i,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.logRecords=[]),r.defaults&&(s.scope=null,s.schemaUrl=""),i.scope!=null&&i.hasOwnProperty("scope")&&(s.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.toObject(i.scope,r)),i.logRecords&&i.logRecords.length){s.logRecords=[];for(var l=0;l<i.logRecords.length;++l)s.logRecords[l]=d.opentelemetry.proto.logs.v1.LogRecord.toObject(i.logRecords[l],r)}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&(s.schemaUrl=i.schemaUrl),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.logs.v1.ScopeLogs"},a}(),o.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}(),o.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}(),o.LogRecord=function(){function a(u){if(this.attributes=[],u)for(var i=Object.keys(u),r=0;r<i.length;++r)u[i[r]]!=null&&(this[i[r]]=u[i[r]])}return a.prototype.timeUnixNano=null,a.prototype.observedTimeUnixNano=null,a.prototype.severityNumber=null,a.prototype.severityText=null,a.prototype.body=null,a.prototype.attributes=h.emptyArray,a.prototype.droppedAttributesCount=null,a.prototype.flags=null,a.prototype.traceId=null,a.prototype.spanId=null,a.create=function(i){return new a(i)},a.encode=function(i,r){if(r||(r=V.create()),i.timeUnixNano!=null&&Object.hasOwnProperty.call(i,"timeUnixNano")&&r.uint32(9).fixed64(i.timeUnixNano),i.severityNumber!=null&&Object.hasOwnProperty.call(i,"severityNumber")&&r.uint32(16).int32(i.severityNumber),i.severityText!=null&&Object.hasOwnProperty.call(i,"severityText")&&r.uint32(26).string(i.severityText),i.body!=null&&Object.hasOwnProperty.call(i,"body")&&d.opentelemetry.proto.common.v1.AnyValue.encode(i.body,r.uint32(42).fork()).ldelim(),i.attributes!=null&&i.attributes.length)for(var s=0;s<i.attributes.length;++s)d.opentelemetry.proto.common.v1.KeyValue.encode(i.attributes[s],r.uint32(50).fork()).ldelim();return i.droppedAttributesCount!=null&&Object.hasOwnProperty.call(i,"droppedAttributesCount")&&r.uint32(56).uint32(i.droppedAttributesCount),i.flags!=null&&Object.hasOwnProperty.call(i,"flags")&&r.uint32(69).fixed32(i.flags),i.traceId!=null&&Object.hasOwnProperty.call(i,"traceId")&&r.uint32(74).bytes(i.traceId),i.spanId!=null&&Object.hasOwnProperty.call(i,"spanId")&&r.uint32(82).bytes(i.spanId),i.observedTimeUnixNano!=null&&Object.hasOwnProperty.call(i,"observedTimeUnixNano")&&r.uint32(89).fixed64(i.observedTimeUnixNano),r},a.encodeDelimited=function(i,r){return this.encode(i,r).ldelim()},a.decode=function(i,r){i instanceof T||(i=T.create(i));for(var s=r===void 0?i.len:i.pos+r,l=new d.opentelemetry.proto.logs.v1.LogRecord;i.pos<s;){var c=i.uint32();switch(c>>>3){case 1:{l.timeUnixNano=i.fixed64();break}case 11:{l.observedTimeUnixNano=i.fixed64();break}case 2:{l.severityNumber=i.int32();break}case 3:{l.severityText=i.string();break}case 5:{l.body=d.opentelemetry.proto.common.v1.AnyValue.decode(i,i.uint32());break}case 6:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(i,i.uint32()));break}case 7:{l.droppedAttributesCount=i.uint32();break}case 8:{l.flags=i.fixed32();break}case 9:{l.traceId=i.bytes();break}case 10:{l.spanId=i.bytes();break}default:i.skipType(c&7);break}}return l},a.decodeDelimited=function(i){return i instanceof T||(i=new T(i)),this.decode(i,i.uint32())},a.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.timeUnixNano!=null&&i.hasOwnProperty("timeUnixNano")&&!h.isInteger(i.timeUnixNano)&&!(i.timeUnixNano&&h.isInteger(i.timeUnixNano.low)&&h.isInteger(i.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(i.observedTimeUnixNano!=null&&i.hasOwnProperty("observedTimeUnixNano")&&!h.isInteger(i.observedTimeUnixNano)&&!(i.observedTimeUnixNano&&h.isInteger(i.observedTimeUnixNano.low)&&h.isInteger(i.observedTimeUnixNano.high)))return"observedTimeUnixNano: integer|Long expected";if(i.severityNumber!=null&&i.hasOwnProperty("severityNumber"))switch(i.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(i.severityText!=null&&i.hasOwnProperty("severityText")&&!h.isString(i.severityText))return"severityText: string expected";if(i.body!=null&&i.hasOwnProperty("body")){var r=d.opentelemetry.proto.common.v1.AnyValue.verify(i.body);if(r)return"body."+r}if(i.attributes!=null&&i.hasOwnProperty("attributes")){if(!Array.isArray(i.attributes))return"attributes: array expected";for(var s=0;s<i.attributes.length;++s){var r=d.opentelemetry.proto.common.v1.KeyValue.verify(i.attributes[s]);if(r)return"attributes."+r}}return i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&!h.isInteger(i.droppedAttributesCount)?"droppedAttributesCount: integer expected":i.flags!=null&&i.hasOwnProperty("flags")&&!h.isInteger(i.flags)?"flags: integer expected":i.traceId!=null&&i.hasOwnProperty("traceId")&&!(i.traceId&&typeof i.traceId.length=="number"||h.isString(i.traceId))?"traceId: buffer expected":i.spanId!=null&&i.hasOwnProperty("spanId")&&!(i.spanId&&typeof i.spanId.length=="number"||h.isString(i.spanId))?"spanId: buffer expected":null},a.fromObject=function(i){if(i instanceof d.opentelemetry.proto.logs.v1.LogRecord)return i;var r=new d.opentelemetry.proto.logs.v1.LogRecord;switch(i.timeUnixNano!=null&&(h.Long?(r.timeUnixNano=h.Long.fromValue(i.timeUnixNano)).unsigned=!1:typeof i.timeUnixNano=="string"?r.timeUnixNano=parseInt(i.timeUnixNano,10):typeof i.timeUnixNano=="number"?r.timeUnixNano=i.timeUnixNano:typeof i.timeUnixNano=="object"&&(r.timeUnixNano=new h.LongBits(i.timeUnixNano.low>>>0,i.timeUnixNano.high>>>0).toNumber())),i.observedTimeUnixNano!=null&&(h.Long?(r.observedTimeUnixNano=h.Long.fromValue(i.observedTimeUnixNano)).unsigned=!1:typeof i.observedTimeUnixNano=="string"?r.observedTimeUnixNano=parseInt(i.observedTimeUnixNano,10):typeof i.observedTimeUnixNano=="number"?r.observedTimeUnixNano=i.observedTimeUnixNano:typeof i.observedTimeUnixNano=="object"&&(r.observedTimeUnixNano=new h.LongBits(i.observedTimeUnixNano.low>>>0,i.observedTimeUnixNano.high>>>0).toNumber())),i.severityNumber){default:if(typeof i.severityNumber=="number"){r.severityNumber=i.severityNumber;break}break;case"SEVERITY_NUMBER_UNSPECIFIED":case 0:r.severityNumber=0;break;case"SEVERITY_NUMBER_TRACE":case 1:r.severityNumber=1;break;case"SEVERITY_NUMBER_TRACE2":case 2:r.severityNumber=2;break;case"SEVERITY_NUMBER_TRACE3":case 3:r.severityNumber=3;break;case"SEVERITY_NUMBER_TRACE4":case 4:r.severityNumber=4;break;case"SEVERITY_NUMBER_DEBUG":case 5:r.severityNumber=5;break;case"SEVERITY_NUMBER_DEBUG2":case 6:r.severityNumber=6;break;case"SEVERITY_NUMBER_DEBUG3":case 7:r.severityNumber=7;break;case"SEVERITY_NUMBER_DEBUG4":case 8:r.severityNumber=8;break;case"SEVERITY_NUMBER_INFO":case 9:r.severityNumber=9;break;case"SEVERITY_NUMBER_INFO2":case 10:r.severityNumber=10;break;case"SEVERITY_NUMBER_INFO3":case 11:r.severityNumber=11;break;case"SEVERITY_NUMBER_INFO4":case 12:r.severityNumber=12;break;case"SEVERITY_NUMBER_WARN":case 13:r.severityNumber=13;break;case"SEVERITY_NUMBER_WARN2":case 14:r.severityNumber=14;break;case"SEVERITY_NUMBER_WARN3":case 15:r.severityNumber=15;break;case"SEVERITY_NUMBER_WARN4":case 16:r.severityNumber=16;break;case"SEVERITY_NUMBER_ERROR":case 17:r.severityNumber=17;break;case"SEVERITY_NUMBER_ERROR2":case 18:r.severityNumber=18;break;case"SEVERITY_NUMBER_ERROR3":case 19:r.severityNumber=19;break;case"SEVERITY_NUMBER_ERROR4":case 20:r.severityNumber=20;break;case"SEVERITY_NUMBER_FATAL":case 21:r.severityNumber=21;break;case"SEVERITY_NUMBER_FATAL2":case 22:r.severityNumber=22;break;case"SEVERITY_NUMBER_FATAL3":case 23:r.severityNumber=23;break;case"SEVERITY_NUMBER_FATAL4":case 24:r.severityNumber=24;break}if(i.severityText!=null&&(r.severityText=String(i.severityText)),i.body!=null){if(typeof i.body!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.body: object expected");r.body=d.opentelemetry.proto.common.v1.AnyValue.fromObject(i.body)}if(i.attributes){if(!Array.isArray(i.attributes))throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: array expected");r.attributes=[];for(var s=0;s<i.attributes.length;++s){if(typeof i.attributes[s]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: object expected");r.attributes[s]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(i.attributes[s])}}return i.droppedAttributesCount!=null&&(r.droppedAttributesCount=i.droppedAttributesCount>>>0),i.flags!=null&&(r.flags=i.flags>>>0),i.traceId!=null&&(typeof i.traceId=="string"?h.base64.decode(i.traceId,r.traceId=h.newBuffer(h.base64.length(i.traceId)),0):i.traceId.length>=0&&(r.traceId=i.traceId)),i.spanId!=null&&(typeof i.spanId=="string"?h.base64.decode(i.spanId,r.spanId=h.newBuffer(h.base64.length(i.spanId)),0):i.spanId.length>=0&&(r.spanId=i.spanId)),r},a.toObject=function(i,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.attributes=[]),r.defaults){if(h.Long){var l=new h.Long(0,0,!1);s.timeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else s.timeUnixNano=r.longs===String?"0":0;if(s.severityNumber=r.enums===String?"SEVERITY_NUMBER_UNSPECIFIED":0,s.severityText="",s.body=null,s.droppedAttributesCount=0,s.flags=0,r.bytes===String?s.traceId="":(s.traceId=[],r.bytes!==Array&&(s.traceId=h.newBuffer(s.traceId))),r.bytes===String?s.spanId="":(s.spanId=[],r.bytes!==Array&&(s.spanId=h.newBuffer(s.spanId))),h.Long){var l=new h.Long(0,0,!1);s.observedTimeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else s.observedTimeUnixNano=r.longs===String?"0":0}if(i.timeUnixNano!=null&&i.hasOwnProperty("timeUnixNano")&&(typeof i.timeUnixNano=="number"?s.timeUnixNano=r.longs===String?String(i.timeUnixNano):i.timeUnixNano:s.timeUnixNano=r.longs===String?h.Long.prototype.toString.call(i.timeUnixNano):r.longs===Number?new h.LongBits(i.timeUnixNano.low>>>0,i.timeUnixNano.high>>>0).toNumber():i.timeUnixNano),i.severityNumber!=null&&i.hasOwnProperty("severityNumber")&&(s.severityNumber=r.enums===String?d.opentelemetry.proto.logs.v1.SeverityNumber[i.severityNumber]===void 0?i.severityNumber:d.opentelemetry.proto.logs.v1.SeverityNumber[i.severityNumber]:i.severityNumber),i.severityText!=null&&i.hasOwnProperty("severityText")&&(s.severityText=i.severityText),i.body!=null&&i.hasOwnProperty("body")&&(s.body=d.opentelemetry.proto.common.v1.AnyValue.toObject(i.body,r)),i.attributes&&i.attributes.length){s.attributes=[];for(var c=0;c<i.attributes.length;++c)s.attributes[c]=d.opentelemetry.proto.common.v1.KeyValue.toObject(i.attributes[c],r)}return i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&(s.droppedAttributesCount=i.droppedAttributesCount),i.flags!=null&&i.hasOwnProperty("flags")&&(s.flags=i.flags),i.traceId!=null&&i.hasOwnProperty("traceId")&&(s.traceId=r.bytes===String?h.base64.encode(i.traceId,0,i.traceId.length):r.bytes===Array?Array.prototype.slice.call(i.traceId):i.traceId),i.spanId!=null&&i.hasOwnProperty("spanId")&&(s.spanId=r.bytes===String?h.base64.encode(i.spanId,0,i.spanId.length):r.bytes===Array?Array.prototype.slice.call(i.spanId):i.spanId),i.observedTimeUnixNano!=null&&i.hasOwnProperty("observedTimeUnixNano")&&(typeof i.observedTimeUnixNano=="number"?s.observedTimeUnixNano=r.longs===String?String(i.observedTimeUnixNano):i.observedTimeUnixNano:s.observedTimeUnixNano=r.longs===String?h.Long.prototype.toString.call(i.observedTimeUnixNano):r.longs===Number?new h.LongBits(i.observedTimeUnixNano.low>>>0,i.observedTimeUnixNano.high>>>0).toNumber():i.observedTimeUnixNano),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.logs.v1.LogRecord"},a}(),o}(),n}(),e}(),t}();vM.exports=d});var jr,LK,CK,UK,DK,VK,kK,_M,SM,EM,TM=E(()=>{jr=je(yM());Ss();Es();Ts();LK=jr.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,CK=jr.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,UK=jr.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,DK=jr.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,VK=jr.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,kK=jr.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,_M={serializeRequest:function(t){var e=Fn(t);return CK.encode(e).finish()},deserializeResponse:function(t){return LK.decode(t)}},SM={serializeRequest:function(t){var e=qn(t);return DK.encode(e).finish()},deserializeResponse:function(t){return UK.decode(t)}},EM={serializeRequest:function(t){var e=Gn(t);return kK.encode(e).finish()},deserializeResponse:function(t){return VK.decode(t)}}});var gM,gs,OM,AM=E(()=>{Ss();Es();Ts();gM={serializeRequest:function(t){var e=Gn(t,{useHex:!0,useLongBits:!1}),n=new TextEncoder;return n.encode(JSON.stringify(e))},deserializeResponse:function(t){var e=new TextDecoder;return JSON.parse(e.decode(t))}},gs={serializeRequest:function(t){var e=qn(t,{useLongBits:!1}),n=new TextEncoder;return n.encode(JSON.stringify(e))},deserializeResponse:function(t){var e=new TextDecoder;return JSON.parse(e.decode(t))}},OM={serializeRequest:function(t){var e=Fn(t,{useHex:!0,useLongBits:!1}),n=new TextEncoder;return n.encode(JSON.stringify(e))},deserializeResponse:function(t){var e=new TextDecoder;return JSON.parse(e.decode(t))}}});var zp={};it(zp,{ESpanKind:()=>ms,JsonLogsSerializer:()=>OM,JsonMetricsSerializer:()=>gs,JsonTraceSerializer:()=>gM,ProtobufLogsSerializer:()=>_M,ProtobufMetricsSerializer:()=>SM,ProtobufTraceSerializer:()=>EM,createExportLogsServiceRequest:()=>Fn,createExportMetricsServiceRequest:()=>qn,createExportTraceServiceRequest:()=>Gn,encodeAsLongBits:()=>hs,encodeAsString:()=>Kp,getOtlpEncoder:()=>mr,hrTimeToNanos:()=>ds,toLongBits:()=>$p});var Os=E(()=>{po();lM();Ss();Es();Ts();TM();AM()});var bM,xM=E(()=>{bM="0.52.1"});var NM,Hn,RM,BK,GK,qK,FK,PM=E(()=>{F();Gp();fo();Os();xM();NM=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(o[u]=a[u])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function o(){this.constructor=e}e.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),Hn=function(){return Hn=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},Hn.apply(this,arguments)},RM="v1/metrics",BK="http://localhost:4318/"+RM,GK={"User-Agent":"OTel-OTLP-Exporter-JavaScript/"+bM},qK=function(t){NM(e,t);function e(n){var o=t.call(this,n,gs,"application/json")||this;return o.headers=Hn(Hn(Hn(Hn({},o.headers),GK),Vt.parseKeyPairsIntoRecord(q().OTEL_EXPORTER_OTLP_METRICS_HEADERS)),hr(n?.headers)),o}return e.prototype.getDefaultUrl=function(n){return typeof n.url=="string"?n.url:q().OTEL_EXPORTER_OTLP_METRICS_ENDPOINT.length>0?es(q().OTEL_EXPORTER_OTLP_METRICS_ENDPOINT):q().OTEL_EXPORTER_OTLP_ENDPOINT.length>0?Zu(q().OTEL_EXPORTER_OTLP_ENDPOINT,RM):BK},e}(lo),FK=function(t){NM(e,t);function e(n){return t.call(this,new qK(n),n)||this}return e}(Bp)});var wM=E(()=>{PM()});var MM=E(()=>{wM()});var IM={};it(IM,{AggregationTemporalityPreference:()=>Un,CumulativeTemporalitySelector:()=>zu,DeltaTemporalitySelector:()=>Vp,LowMemoryTemporalitySelector:()=>kp,OTLPMetricExporter:()=>FK,OTLPMetricExporterBase:()=>Bp});var LM=E(()=>{MM();Dp();Gp()});var CM=y(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.createServiceClientConstructor=void 0;var HK=Jn();function jK(t,e){let n={export:{path:t,requestStream:!1,responseStream:!1,requestSerialize:o=>o,requestDeserialize:o=>o,responseSerialize:o=>o,responseDeserialize:o=>o}};return HK.makeGenericClientConstructor(n,e)}As.createServiceClientConstructor=jK});var Xp=y(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.GrpcExporterTransport=Nt.createEmptyMetadata=Nt.createSslCredentials=Nt.createInsecureCredentials=void 0;var YK=0,$K=2;function KK(t){return t==="gzip"?$K:YK}function zK(){let{credentials:t}=Jn();return t.createInsecure()}Nt.createInsecureCredentials=zK;function WK(t,e,n){let{credentials:o}=Jn();return o.createSsl(t,e,n)}Nt.createSslCredentials=WK;function XK(){let{Metadata:t}=Jn();return new t}Nt.createEmptyMetadata=XK;var Wp=class{constructor(e){this._parameters=e}shutdown(){var e;(e=this._client)===null||e===void 0||e.close()}send(e){let n=Buffer.from(e);if(this._client==null){let{createServiceClientConstructor:o}=CM();try{this._metadata=this._parameters.metadata()}catch(u){return Promise.resolve({status:"failure",error:u})}let a=o(this._parameters.grpcPath,this._parameters.grpcName);try{this._client=new a(this._parameters.address,this._parameters.credentials(),{"grpc.default_compression_algorithm":KK(this._parameters.compression)})}catch(u){return Promise.resolve({status:"failure",error:u})}}return new Promise(o=>{let a=Date.now()+this._parameters.timeoutMillis;if(this._metadata==null)return o({error:new Error("metadata was null"),status:"failure"});this._client.export(n,this._metadata,{deadline:a},(u,i)=>{o(u?{status:"failure",error:u}:{data:i,status:"success"})})})}};Nt.GrpcExporterTransport=Wp});var ed=y(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.configureCompression=Xe.getCredentialsFromEnvironment=Xe.configureCredentials=Xe.validateAndNormalizeUrl=Xe.DEFAULT_COLLECTOR_URL=void 0;var jn=(w(),Y(Ne)),Rt=(F(),Y(Gr)),Qp=M("path"),JK=M("url"),Zp=M("fs"),Jp=(fo(),Y(ps)),UM=Xp();Xe.DEFAULT_COLLECTOR_URL="http://localhost:4317";function QK(t){var e;t.match(/^([\w]{1,8}):\/\//)||(t=`https://${t}`);let o=new JK.URL(t);return o.protocol==="unix:"?t:(o.pathname&&o.pathname!=="/"&&jn.diag.warn("URL path should not be set when using grpc, the path part of the URL will be ignored."),o.protocol!==""&&!(!((e=o.protocol)===null||e===void 0)&&e.match(/^(http)s?:$/))&&jn.diag.warn("URL protocol should be http(s)://. Using http://."),o.host)}Xe.validateAndNormalizeUrl=QK;function ZK(t,e){let n;return t||(e.startsWith("https://")?n=!1:e.startsWith("http://")||e===Xe.DEFAULT_COLLECTOR_URL?n=!0:n=ez(),n?(0,UM.createInsecureCredentials)():DM())}Xe.configureCredentials=ZK;function ez(){let t=(0,Rt.getEnv)().OTEL_EXPORTER_OTLP_TRACES_INSECURE||(0,Rt.getEnv)().OTEL_EXPORTER_OTLP_INSECURE;return t?t.toLowerCase()==="true":!1}function DM(){let t=tz(),e=rz(),n=nz();return(0,UM.createSslCredentials)(t,e,n)}Xe.getCredentialsFromEnvironment=DM;function tz(){let t=(0,Rt.getEnv)().OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE||(0,Rt.getEnv)().OTEL_EXPORTER_OTLP_CERTIFICATE;if(t)try{return Zp.readFileSync(Qp.resolve(process.cwd(),t))}catch{jn.diag.warn("Failed to read root certificate file");return}else return}function rz(){let t=(0,Rt.getEnv)().OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY||(0,Rt.getEnv)().OTEL_EXPORTER_OTLP_CLIENT_KEY;if(t)try{return Zp.readFileSync(Qp.resolve(process.cwd(),t))}catch{jn.diag.warn("Failed to read client certificate private key file");return}else return}function nz(){let t=(0,Rt.getEnv)().OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE||(0,Rt.getEnv)().OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE;if(t)try{return Zp.readFileSync(Qp.resolve(process.cwd(),t))}catch{jn.diag.warn("Failed to read client certificate chain file");return}else return}function iz(t){if(t!=null)return t;let e=(0,Rt.getEnv)().OTEL_EXPORTER_OTLP_TRACES_COMPRESSION||(0,Rt.getEnv)().OTEL_EXPORTER_OTLP_COMPRESSION;return e==="gzip"?Jp.CompressionAlgorithm.GZIP:(e==="none"||jn.diag.warn('Unknown compression "'+e+'", falling back to "none"'),Jp.CompressionAlgorithm.NONE)}Xe.configureCompression=iz});var FM=y(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.OTLPGRPCExporterNodeBase=void 0;var VM=(w(),Y(Ne)),kM=(F(),Y(Gr)),BM=(fo(),Y(ps)),GM=Xp(),qM=ed(),td=class extends BM.OTLPExporterBase{constructor(e={},n,o,a,u){var i;super(e),this.grpcQueue=[],this._serializer=u,e.headers&&VM.diag.warn("Headers cannot be set when using grpc");let r=kM.baggageUtils.parseKeyPairsIntoRecord((0,kM.getEnv)().OTEL_EXPORTER_OTLP_HEADERS),s=Object.assign({},r,n),l=()=>(0,qM.configureCredentials)(void 0,this.getUrlFromConfig(e));if(e.credentials!=null){let m=e.credentials;l=()=>m}let c=(i=e.metadata)===null||i===void 0?void 0:i.clone(),p=()=>{let m=c??(0,GM.createEmptyMetadata)();for(let[f,v]of Object.entries(s))m.get(f).length<1&&m.set(f,v);return m};this.compression=(0,qM.configureCompression)(e.compression),this._transport=new GM.GrpcExporterTransport({address:this.getDefaultUrl(e),compression:this.compression,credentials:l,grpcName:o,grpcPath:a,metadata:p,timeoutMillis:this.timeoutMillis})}onInit(){}onShutdown(){this._transport.shutdown()}send(e,n,o){if(this._shutdownOnce.isCalled){VM.diag.debug("Shutdown already started. Cannot send objects");return}let a=this._serializer.serializeRequest(e);if(a==null){o(new Error("Could not serialize message"));return}let u=this._transport.send(a).then(r=>{if(r.status==="success"){n();return}r.status==="failure"&&r.error&&o(r.error),o(new BM.OTLPExporterError("Export failed with unknown error"))},o);this._sendingPromises.push(u);let i=()=>{let r=this._sendingPromises.indexOf(u);this._sendingPromises.splice(r,1)};u.then(i,i)}};bs.OTLPGRPCExporterNodeBase=td});var rd=y(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.validateAndNormalizeUrl=vr.DEFAULT_COLLECTOR_URL=vr.OTLPGRPCExporterNodeBase=void 0;var oz=FM();Object.defineProperty(vr,"OTLPGRPCExporterNodeBase",{enumerable:!0,get:function(){return oz.OTLPGRPCExporterNodeBase}});var HM=ed();Object.defineProperty(vr,"DEFAULT_COLLECTOR_URL",{enumerable:!0,get:function(){return HM.DEFAULT_COLLECTOR_URL}});Object.defineProperty(vr,"validateAndNormalizeUrl",{enumerable:!0,get:function(){return HM.validateAndNormalizeUrl}})});var jM=y(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.VERSION=void 0;xs.VERSION="0.52.1"});var YM=y(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.OTLPMetricExporter=void 0;var az=(LM(),Y(IM)),nd=rd(),Ns=(F(),Y(Gr)),uz=(Os(),Y(zp)),sz=jM(),lz=(fo(),Y(ps)),cz={"User-Agent":`OTel-OTLP-Exporter-JavaScript/${sz.VERSION}`},id=class extends nd.OTLPGRPCExporterNodeBase{constructor(e){let n=Object.assign(Object.assign(Object.assign({},cz),Ns.baggageUtils.parseKeyPairsIntoRecord((0,Ns.getEnv)().OTEL_EXPORTER_OTLP_METRICS_HEADERS)),(0,lz.parseHeaders)(e?.headers));super(e,n,"MetricsExportService","/opentelemetry.proto.collector.metrics.v1.MetricsService/Export",uz.ProtobufMetricsSerializer)}getDefaultUrl(e){return(0,nd.validateAndNormalizeUrl)(this.getUrlFromConfig(e))}getUrlFromConfig(e){return typeof e.url=="string"?e.url:(0,Ns.getEnv)().OTEL_EXPORTER_OTLP_METRICS_ENDPOINT||(0,Ns.getEnv)().OTEL_EXPORTER_OTLP_ENDPOINT||nd.DEFAULT_COLLECTOR_URL}},od=class extends az.OTLPMetricExporterBase{constructor(e){super(new id(e),e)}};Rs.OTLPMetricExporter=od});var $M=y(Yr=>{"use strict";var fz=Yr&&Yr.__createBinding||(Object.create?function(t,e,n,o){o===void 0&&(o=n),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,o){o===void 0&&(o=n),t[o]=e[n]}),pz=Yr&&Yr.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&fz(e,t,n)};Object.defineProperty(Yr,"__esModule",{value:!0});pz(YM(),Yr)});var ld=y(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.PrometheusSerializer=void 0;var dz=(w(),Y(Ne)),$r=(Cn(),Y(Up)),KM=(F(),Y(Gr));function ws(t){return t.replace(/\\/g,"\\\\").replace(/\n/g,"\\n")}function zM(t=""){return typeof t!="string"&&(t=JSON.stringify(t)),ws(t).replace(/"/g,'\\"')}var hz=/[^a-z0-9_]/gi,mz=/_{2,}/g;function ud(t){return t.replace(hz,"_").replace(mz,"_")}function ad(t,e){return!t.endsWith("_total")&&e===$r.InstrumentType.COUNTER&&(t=t+"_total"),t}function vz(t){return Number.isNaN(t)?"NaN":Number.isFinite(t)?`${t}`:t<0?"-Inf":"+Inf"}function yz(t){switch(t.dataPointType){case $r.DataPointType.SUM:return t.isMonotonic?"counter":"gauge";case $r.DataPointType.GAUGE:return"gauge";case $r.DataPointType.HISTOGRAM:return"histogram";default:return"untyped"}}function Ps(t,e,n,o,a){let u=!1,i="";for(let[r,s]of Object.entries(e)){let l=ud(r);u=!0,i+=`${i.length>0?",":""}${l}="${zM(s)}"`}if(a)for(let[r,s]of Object.entries(a)){let l=ud(r);u=!0,i+=`${i.length>0?",":""}${l}="${zM(s)}"`}return u&&(t+=`{${i}}`),`${t} ${vz(n)}${o!==void 0?" "+String(o):""}
|
52
|
-
`}var
|
53
|
-
`;return n}_serializeMetricData(e){let n=
|
54
|
-
# UNIT ${n} ${
|
55
|
-
${
|
56
|
-
${r}`.trim()}_serializeSingularDataPoint(e,n,
|
50
|
+
`,Vp(l,e),`To resolve the conflict:
|
51
|
+
`,Bp(l,e))}}catch(c){i={error:c}}finally{try{r&&!r.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}return s},t}()});var kx,Hx=m(()=>{kx=function(){function t(e){this._backingStorages=e}return t.prototype.record=function(e,n,i,a){this._backingStorages.forEach(function(s){s.record(e,n,i,a)})},t}()});var Fx,Yx,qx=m(()=>{b();Si();nu();Fx=function(){function t(e,n){this._instrumentName=e,this._valueType=n,this._buffer=new pt}return t.prototype.observe=function(e,n){if(n===void 0&&(n={}),typeof e!="number"){g.warn("non-number value provided to metric "+this._instrumentName+": "+e);return}this._valueType===Et.INT&&!Number.isInteger(e)&&(g.warn("INT value type cannot accept a floating-point value for "+this._instrumentName+", ignoring the fractional digits."),e=Math.trunc(e),!Number.isInteger(e))||this._buffer.set(n,e)},t}(),Yx=function(){function t(){this._buffer=new Map}return t.prototype.observe=function(e,n,i){if(i===void 0&&(i={}),!!_i(e)){var a=this._buffer.get(e);if(a==null&&(a=new pt,this._buffer.set(e,a)),typeof n!="number"){g.warn("non-number value provided to metric "+e._descriptor.name+": "+n);return}e._descriptor.valueType===Et.INT&&!Number.isInteger(n)&&(g.warn("INT value type cannot accept a floating-point value for "+e._descriptor.name+", ignoring the fractional digits."),n=Math.trunc(n),!Number.isInteger(n))||a.set(i,n)}},t}()});var kp,Hp,jx,$x,Kx,Wx=m(()=>{b();nu();qx();Rt();kp=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},Hp=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},jx=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},$x=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},Kx=function(){function t(){this._callbacks=[],this._batchCallbacks=[]}return t.prototype.addCallback=function(e,n){var i=this._findCallback(e,n);i>=0||this._callbacks.push({callback:e,instrument:n})},t.prototype.removeCallback=function(e,n){var i=this._findCallback(e,n);i<0||this._callbacks.splice(i,1)},t.prototype.addBatchCallback=function(e,n){var i=new Set(n.filter(_i));if(i.size===0){g.error("BatchObservableCallback is not associated with valid instruments",n);return}var a=this._findBatchCallback(e,i);a>=0||this._batchCallbacks.push({callback:e,instruments:i})},t.prototype.removeBatchCallback=function(e,n){var i=new Set(n.filter(_i)),a=this._findBatchCallback(e,i);a<0||this._batchCallbacks.splice(a,1)},t.prototype.observe=function(e,n){return kp(this,void 0,void 0,function(){var i,a,s,o;return Hp(this,function(r){switch(r.label){case 0:return i=this._observeCallbacks(e,n),a=this._observeBatchCallbacks(e,n),[4,BM($x($x([],jx(i),!1),jx(a),!1))];case 1:return s=r.sent(),o=s.filter(GM).map(function(u){return u.reason}),[2,o]}})})},t.prototype._observeCallbacks=function(e,n){var i=this;return this._callbacks.map(function(a){var s=a.callback,o=a.instrument;return kp(i,void 0,void 0,function(){var r,u;return Hp(this,function(l){switch(l.label){case 0:return r=new Fx(o._descriptor.name,o._descriptor.valueType),u=Promise.resolve(s(r)),n!=null&&(u=Er(u,n)),[4,u];case 1:return l.sent(),o._metricStorages.forEach(function(c){c.record(r._buffer,e)}),[2]}})})})},t.prototype._observeBatchCallbacks=function(e,n){var i=this;return this._batchCallbacks.map(function(a){var s=a.callback,o=a.instruments;return kp(i,void 0,void 0,function(){var r,u;return Hp(this,function(l){switch(l.label){case 0:return r=new Yx,u=Promise.resolve(s(r)),n!=null&&(u=Er(u,n)),[4,u];case 1:return l.sent(),o.forEach(function(c){var p=r._buffer.get(c);p!=null&&c._metricStorages.forEach(function(_){_.record(p,e)})}),[2]}})})})},t.prototype._findCallback=function(e,n){return this._callbacks.findIndex(function(i){return i.callback===e&&i.instrument===n})},t.prototype._findBatchCallback=function(e,n){return this._batchCallbacks.findIndex(function(i){return i.callback===e&&kM(i.instruments,n)})},t}()});var h8,zx,Xx=m(()=>{Cp();wp();Dp();h8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),zx=function(t){h8(e,t);function e(n,i,a,s){var o=t.call(this,n)||this;return o._attributesProcessor=a,o._deltaMetricStorage=new iu(i),o._temporalMetricStorage=new au(i,s),o}return e.prototype.record=function(n,i,a,s){i=this._attributesProcessor.process(i,a),this._deltaMetricStorage.record(n,i,a,s)},e.prototype.collect=function(n,i){var a=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(n,this._instrumentDescriptor,a,i)},e}(ou)});var Jx,In,T8,Qx,v8,Fp=m(()=>{Jx=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),In=function(){function t(){}return t.Noop=function(){return v8},t}(),T8=function(t){Jx(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.process=function(n,i){return n},e}(In),Qx=function(t){Jx(e,t);function e(n){var i=t.call(this)||this;return i._allowedAttributeNames=n,i}return e.prototype.process=function(n,i){var a=this,s={};return Object.keys(n).filter(function(o){return a._allowedAttributeNames.includes(o)}).forEach(function(o){return s[o]=n[o]}),s},e}(In),v8=new T8});var m8,y8,A8,Zx,eL=m(()=>{Gt();Ix();Rt();Dx();Gx();Hx();Wx();Xx();Fp();m8=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},y8=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},A8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Zx=function(){function t(e,n){this._meterProviderSharedState=e,this._instrumentationScope=n,this.metricStorageRegistry=new Bx,this.observableRegistry=new Kx,this.meter=new Lx(this)}return t.prototype.registerMetricStorage=function(e){var n=this._registerMetricStorage(e,zx);return n.length===1?n[0]:new kx(n)},t.prototype.registerAsyncMetricStorage=function(e){var n=this._registerMetricStorage(e,Ux);return n},t.prototype.collect=function(e,n,i){return m8(this,void 0,void 0,function(){var a,s,o;return y8(this,function(r){switch(r.label){case 0:return[4,this.observableRegistry.observe(n,i?.timeoutMillis)];case 1:return a=r.sent(),s=this.metricStorageRegistry.getStorages(e),s.length===0?[2,null]:(o=s.map(function(u){return u.collect(e,n)}).filter(UM),o.length===0?[2,{errors:a}]:[2,{scopeMetrics:{scope:this._instrumentationScope,metrics:o},errors:a}])}})})},t.prototype._registerMetricStorage=function(e,n){var i=this,a=this._meterProviderSharedState.viewRegistry.findViews(e,this._instrumentationScope),s=a.map(function(u){var l=qM(u,e),c=i.metricStorageRegistry.findOrUpdateCompatibleStorage(l);if(c!=null)return c;var p=u.aggregation.createAggregator(l),_=new n(l,p,u.attributesProcessor,i._meterProviderSharedState.metricCollectors);return i.metricStorageRegistry.register(_),_});if(s.length===0){var o=this._meterProviderSharedState.selectAggregations(e.type),r=o.map(function(u){var l=A8(u,2),c=l[0],p=l[1],_=i.metricStorageRegistry.findOrUpdateCompatibleCollectorStorage(c,e);if(_!=null)return _;var f=p.createAggregator(e),S=new n(e,f,In.Noop(),[c]);return i.metricStorageRegistry.registerForCollector(c,S),S});s=s.concat(r)}return s},t}()});var O8,tL,rL=m(()=>{Rt();Ox();eL();O8=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},tL=function(){function t(e){this.resource=e,this.viewRegistry=new Ax,this.metricCollectors=[],this.meterSharedStates=new Map}return t.prototype.getMeterSharedState=function(e){var n=VM(e),i=this.meterSharedStates.get(n);return i==null&&(i=new Zx(this,e),this.meterSharedStates.set(n,i)),i},t.prototype.selectAggregations=function(e){var n,i,a=[];try{for(var s=O8(this.metricCollectors),o=s.next();!o.done;o=s.next()){var r=o.value;a.push([r,r.selectAggregation(e)])}}catch(u){n={error:u}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return a},t}()});var su,uu,g8,N8,nL,oL=m(()=>{K();su=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},uu=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},g8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},N8=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},nL=function(){function t(e,n){this._sharedState=e,this._metricReader=n}return t.prototype.collect=function(e){return su(this,void 0,void 0,function(){var n,i,a,s,o=this;return uu(this,function(r){switch(r.label){case 0:return n=Oe(Date.now()),i=[],a=[],s=Array.from(this._sharedState.meterSharedStates.values()).map(function(u){return su(o,void 0,void 0,function(){var l;return uu(this,function(c){switch(c.label){case 0:return[4,u.collect(this,n,e)];case 1:return l=c.sent(),l?.scopeMetrics!=null&&i.push(l.scopeMetrics),l?.errors!=null&&a.push.apply(a,N8([],g8(l.errors),!1)),[2]}})})}),[4,Promise.all(s)];case 1:return r.sent(),[2,{resourceMetrics:{resource:this._sharedState.resource,scopeMetrics:i},errors:a}]}})})},t.prototype.forceFlush=function(e){return su(this,void 0,void 0,function(){return uu(this,function(n){switch(n.label){case 0:return[4,this._metricReader.forceFlush(e)];case 1:return n.sent(),[2]}})})},t.prototype.shutdown=function(e){return su(this,void 0,void 0,function(){return uu(this,function(n){switch(n.label){case 0:return[4,this._metricReader.shutdown(e)];case 1:return n.sent(),[2]}})})},t.prototype.selectAggregationTemporality=function(e){return this._metricReader.selectAggregationTemporality(e)},t.prototype.selectAggregation=function(e){return this._metricReader.selectAggregation(e)},t}()});var iL,aL,sL,hi,uL=m(()=>{b();Bs();rL();oL();iL=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},aL=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},sL=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},hi=function(){function t(e){var n,i,a,s,o;this._shutdown=!1;var r=Bt.default().merge((o=e?.resource)!==null&&o!==void 0?o:Bt.empty());if(this._sharedState=new tL(r),e?.views!=null&&e.views.length>0)try{for(var u=sL(e.views),l=u.next();!l.done;l=u.next()){var c=l.value;this._sharedState.viewRegistry.addView(c)}}catch(S){n={error:S}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}if(e?.readers!=null&&e.readers.length>0)try{for(var p=sL(e.readers),_=p.next();!_.done;_=p.next()){var f=_.value;this.addMetricReader(f)}}catch(S){a={error:S}}finally{try{_&&!_.done&&(s=p.return)&&s.call(p)}finally{if(a)throw a.error}}}return t.prototype.getMeter=function(e,n,i){return n===void 0&&(n=""),i===void 0&&(i={}),this._shutdown?(g.warn("A shutdown MeterProvider cannot provide a Meter"),iE()):this._sharedState.getMeterSharedState({name:e,version:n,schemaUrl:i.schemaUrl}).meter},t.prototype.addMetricReader=function(e){var n=new nL(this._sharedState,e);e.setMetricProducer(n),this._sharedState.metricCollectors.push(n)},t.prototype.shutdown=function(e){return iL(this,void 0,void 0,function(){return aL(this,function(n){switch(n.label){case 0:return this._shutdown?(g.warn("shutdown may only be called once per MeterProvider"),[2]):(this._shutdown=!0,[4,Promise.all(this._sharedState.metricCollectors.map(function(i){return i.shutdown(e)}))]);case 1:return n.sent(),[2]}})})},t.prototype.forceFlush=function(e){return iL(this,void 0,void 0,function(){return aL(this,function(n){switch(n.label){case 0:return this._shutdown?(g.warn("invalid attempt to force flush after MeterProvider shutdown"),[2]):[4,Promise.all(this._sharedState.metricCollectors.map(function(i){return i.forceFlush(e)}))];case 1:return n.sent(),[2]}})})},t}()});var R8,lu,Cn,cu=m(()=>{R8=/[\^$\\.+?()[\]{}|]/g,lu=function(){function t(e){e==="*"?(this._matchAll=!0,this._regexp=/.*/):(this._matchAll=!1,this._regexp=new RegExp(t.escapePattern(e)))}return t.prototype.match=function(e){return this._matchAll?!0:this._regexp.test(e)},t.escapePattern=function(e){return"^"+e.replace(R8,"\\$&").replace("*",".*")+"$"},t.hasWildcard=function(e){return e.includes("*")},t}(),Cn=function(){function t(e){this._matchAll=e===void 0,this._pattern=e}return t.prototype.match=function(e){return!!(this._matchAll||e===this._pattern)},t}()});var lL,cL=m(()=>{cu();lL=function(){function t(e){var n;this._nameFilter=new lu((n=e?.name)!==null&&n!==void 0?n:"*"),this._type=e?.type,this._unitFilter=new Cn(e?.unit)}return t.prototype.getType=function(){return this._type},t.prototype.getNameFilter=function(){return this._nameFilter},t.prototype.getUnitFilter=function(){return this._unitFilter},t}()});var fL,pL=m(()=>{cu();fL=function(){function t(e){this._nameFilter=new Cn(e?.name),this._versionFilter=new Cn(e?.version),this._schemaUrlFilter=new Cn(e?.schemaUrl)}return t.prototype.getNameFilter=function(){return this._nameFilter},t.prototype.getVersionFilter=function(){return this._versionFilter},t.prototype.getSchemaUrlFilter=function(){return this._schemaUrlFilter},t}()});function P8(t){return t.instrumentName==null&&t.instrumentType==null&&t.instrumentUnit==null&&t.meterName==null&&t.meterVersion==null&&t.meterSchemaUrl==null}var dL,EL=m(()=>{cu();Fp();cL();pL();Js();dL=function(){function t(e){var n;if(P8(e))throw new Error("Cannot create view with no selector arguments supplied");if(e.name!=null&&(e?.instrumentName==null||lu.hasWildcard(e.instrumentName)))throw new Error("Views with a specified name must be declared with an instrument selector that selects at most one instrument per meter.");e.attributeKeys!=null?this.attributesProcessor=new Qx(e.attributeKeys):this.attributesProcessor=In.Noop(),this.name=e.name,this.description=e.description,this.aggregation=(n=e.aggregation)!==null&&n!==void 0?n:De.Default(),this.instrumentSelector=new lL({name:e.instrumentName,type:e.instrumentType,unit:e.instrumentUnit}),this.meterSelector=new fL({name:e.meterName,version:e.meterVersion,schemaUrl:e.meterSchemaUrl})}return t}()});var Yp={};it(Yp,{Aggregation:()=>De,AggregationTemporality:()=>ge,ConsoleMetricExporter:()=>mx,DataPointType:()=>Ne,DefaultAggregation:()=>bp,DropAggregation:()=>Ap,ExplicitBucketHistogramAggregation:()=>Rp,ExponentialHistogramAggregation:()=>Pp,HistogramAggregation:()=>Np,InMemoryMetricExporter:()=>hx,InstrumentType:()=>C,LastValueAggregation:()=>gp,MeterProvider:()=>hi,MetricReader:()=>Zs,PeriodicExportingMetricReader:()=>eu,SumAggregation:()=>Op,TimeoutError:()=>ci,View:()=>dL});var wn=m(()=>{Gs();Mn();Ip();Sx();Tx();yx();Gt();uL();Js();EL();Rt()});var Un,qp=m(()=>{(function(t){t[t.DELTA=0]="DELTA",t[t.CUMULATIVE=1]="CUMULATIVE",t[t.LOWMEMORY=2]="LOWMEMORY"})(Un||(Un={}))});function x8(){var t=Ae(),e=t.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE.trim().toLowerCase();return e==="cumulative"?fu:e==="delta"?jp:e==="lowmemory"?$p:(g.warn("OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE is set to '"+t.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE+"', but only 'cumulative' and 'delta' are allowed. Using default ('cumulative') instead."),fu)}function L8(t){return t!=null?t===Un.DELTA?jp:t===Un.LOWMEMORY?$p:fu:x8()}function I8(t){return t?.aggregationPreference?t.aggregationPreference:function(e){return De.Default()}}var b8,M8,fu,jp,$p,Kp,Wp=m(()=>{K();wn();qp();b();b8=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},M8=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},fu=function(){return ge.CUMULATIVE},jp=function(t){switch(t){case C.COUNTER:case C.OBSERVABLE_COUNTER:case C.GAUGE:case C.HISTOGRAM:case C.OBSERVABLE_GAUGE:return ge.DELTA;case C.UP_DOWN_COUNTER:case C.OBSERVABLE_UP_DOWN_COUNTER:return ge.CUMULATIVE}},$p=function(t){switch(t){case C.COUNTER:case C.HISTOGRAM:return ge.DELTA;case C.GAUGE:case C.UP_DOWN_COUNTER:case C.OBSERVABLE_UP_DOWN_COUNTER:case C.OBSERVABLE_COUNTER:case C.OBSERVABLE_GAUGE:return ge.CUMULATIVE}};Kp=function(){function t(e,n){this._otlpExporter=e,this._aggregationSelector=I8(n),this._aggregationTemporalitySelector=L8(n?.temporalityPreference)}return t.prototype.export=function(e,n){this._otlpExporter.export([e],n)},t.prototype.shutdown=function(){return b8(this,void 0,void 0,function(){return M8(this,function(e){switch(e.label){case 0:return[4,this._otlpExporter.shutdown()];case 1:return e.sent(),[2]}})})},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype.selectAggregation=function(e){return this._aggregationSelector(e)},t.prototype.selectAggregationTemporality=function(e){return this._aggregationTemporalitySelector(e)},t}()});var Dn,pu=m(()=>{b();K();Dn=function(){function t(e){e===void 0&&(e={}),this._sendingPromises=[],this.shutdown=this.shutdown.bind(this),this._shutdownOnce=new pr(this._shutdown,this),this._concurrencyLimit=typeof e.concurrencyLimit=="number"?e.concurrencyLimit:30}return t.prototype.export=function(e,n){if(this._shutdownOnce.isCalled){n({code:ee.FAILED,error:new Error("Exporter has been shutdown")});return}if(this._sendingPromises.length>=this._concurrencyLimit){n({code:ee.FAILED,error:new Error("Concurrent export limit reached")});return}this._export(e).then(function(){n({code:ee.SUCCESS})}).catch(function(i){n({code:ee.FAILED,error:i})})},t.prototype._export=function(e){var n=this;return new Promise(function(i,a){try{g.debug("items to be sent",e),n.send(e,i,a)}catch(s){a(s)}})},t.prototype.shutdown=function(){return this._shutdownOnce.call()},t.prototype.forceFlush=function(){return Promise.all(this._sendingPromises).then(function(){})},t.prototype._shutdown=function(){return g.debug("shutdown started"),this.onShutdown(),this.forceFlush()},t}()});function du(t){var e=[429,502,503,504];return e.includes(t)}function Eu(t){if(t!=null){var e=Number.parseInt(t,10);if(Number.isInteger(e))return e>0?e*1e3:-1;var n=new Date(t).getTime()-Date.now();return n>=0?n:0}}var zp=m(()=>{});var C8,bt,Ti=m(()=>{C8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),bt=function(t){C8(e,t);function e(n,i,a){var s=t.call(this,n)||this;return s.name="OTLPExporterError",s.data=a,s.code=i,s}return e}(Error)});var SL={};it(SL,{createHttpAgent:()=>B8,sendWithHttp:()=>U8});import*as _u from"http";import*as Su from"https";import*as _L from"zlib";import{Readable as w8}from"stream";function U8(t,e,n,i,a){var s=new URL(t.url),o=Number(process.versions.node.split(".")[0]),r={hostname:s.hostname,port:s.port,path:s.pathname,method:"POST",headers:Xp({},t.headers),agent:e},u=s.protocol==="http:"?_u.request:Su.request,l=u(r,function(p){var _=[];p.on("data",function(f){return _.push(f)}),p.on("end",function(){if(p.statusCode&&p.statusCode<299)i({status:"success",data:Buffer.concat(_)});else if(p.statusCode&&du(p.statusCode))i({status:"retryable",retryInMillis:Eu(p.headers["retry-after"])});else{var f=new bt(p.statusMessage,p.statusCode);i({status:"failure",error:f})}})});l.setTimeout(a,function(){l.destroy(),i({status:"failure",error:new Error("Request Timeout")})}),l.on("error",function(p){i({status:"failure",error:p})});var c=o>=14?"close":"abort";l.on(c,function(){i({status:"failure",error:new Error("Request timed out")})}),D8(l,t.compression,n,function(p){i({status:"failure",error:p})})}function D8(t,e,n,i){var a=V8(n);e==="gzip"&&(t.setHeader("Content-Encoding","gzip"),a=a.on("error",i).pipe(_L.createGzip()).on("error",i)),a.pipe(t)}function V8(t){var e=new w8;return e.push(t),e.push(null),e}function B8(t,e){var n=new URL(t),i=n.protocol==="http:"?_u.Agent:Su.Agent;return new i(e)}var Xp,hL=m(()=>{zp();Ti();Xp=function(){return Xp=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},Xp.apply(this,arguments)}});function TL(t){return new H8(t)}var G8,k8,H8,vL=m(()=>{G8=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},k8=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},H8=function(){function t(e){this._parameters=e,this._send=null,this._agent=null}return t.prototype.send=function(e,n){return G8(this,void 0,void 0,function(){var i,a,s,o=this;return k8(this,function(r){return this._send==null&&(i=(hL(),Y(SL)),a=i.sendWithHttp,s=i.createHttpAgent,this._agent=s(this._parameters.url,this._parameters.agentOptions),this._send=a),[2,new Promise(function(u){var l;(l=o._send)===null||l===void 0||l.call(o,o._parameters,o._agent,e,function(c){u(c)},n)})]})})},t.prototype.shutdown=function(){},t}()});function W8(){return Math.random()*(2*mL)-mL}function hu(t){return new z8(t.transport)}var F8,Y8,q8,j8,$8,K8,mL,z8,Jp=m(()=>{F8=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},Y8=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},q8=5,j8=1e3,$8=5e3,K8=1.5,mL=.2;z8=function(){function t(e){this._transport=e}return t.prototype.retry=function(e,n,i){var a=this;return new Promise(function(s,o){setTimeout(function(){a._transport.send(e,n).then(s,o)},i)})},t.prototype.send=function(e,n){var i;return F8(this,void 0,void 0,function(){var a,s,o,r,u,l,c;return Y8(this,function(p){switch(p.label){case 0:return a=Date.now()+n,[4,this._transport.send(e,n)];case 1:s=p.sent(),o=q8,r=j8,p.label=2;case 2:return s.status==="retryable"&&o>0?(o--,u=Math.max(Math.min(r,$8)+W8(),0),r=r*K8,l=(i=s.retryInMillis)!==null&&i!==void 0?i:u,c=a-Date.now(),l>c?[2,s]:[4,this.retry(e,c,l)]):[3,4];case 3:return s=p.sent(),[3,2];case 4:return[2,s]}})})},t.prototype.shutdown=function(){return this._transport.shutdown()},t}()});function yL(t){var e;return t?.keepAlive!=null&&(t.httpAgentOptions!=null?t.httpAgentOptions.keepAlive==null&&(t.httpAgentOptions.keepAlive=t.keepAlive):t.httpAgentOptions={keepAlive:t.keepAlive}),(e=t.httpAgentOptions)!==null&&e!==void 0?e:{keepAlive:!0}}var AL=m(()=>{});function X8(t){if(!Number.isNaN(t)&&Number.isFinite(t)&&t>0)return t;throw new Error("Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '"+t+"')")}function Tu(t,e,n){var i,a,s,o,r,u;return{timeoutMillis:X8((a=(i=t.timeoutMillis)!==null&&i!==void 0?i:e.timeoutMillis)!==null&&a!==void 0?a:n.timeoutMillis),concurrencyLimit:(o=(s=t.concurrencyLimit)!==null&&s!==void 0?s:e.concurrencyLimit)!==null&&o!==void 0?o:n.concurrencyLimit,compression:(u=(r=t.compression)!==null&&r!==void 0?r:e.compression)!==null&&u!==void 0?u:n.compression}}function vu(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}var Qp=m(()=>{});function mu(t){t===void 0&&(t={});var e={};return Object.entries(t).forEach(function(n){var i=J8(n,2),a=i[0],s=i[1];typeof s<"u"?e[a]=String(s):g.warn('Header "'+a+'" has invalid value ('+s+") and will be ignored")}),e}var J8,Zp=m(()=>{b();J8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}});function Q8(t,e,n){var i=Yr({},n),a={};return e!=null&&Object.assign(a,e),t!=null&&Object.assign(a,t),Object.assign(a,i)}function Z8(t){if(t!=null)try{return new URL(t),t}catch{throw new Error("Configuration: Could not parse user-provided export URL: '"+t+"'")}}function yu(t,e,n){var i,a;return Yr(Yr({},Tu(t,e,n)),{headers:Q8(mu(t.headers),e.headers,n.headers),url:(a=(i=Z8(t.url))!==null&&i!==void 0?i:e.url)!==null&&a!==void 0?a:n.url})}function Au(t,e){return Yr(Yr({},vu()),{headers:t,url:"http://localhost:4318/"+e})}var Yr,ed=m(()=>{Qp();Zp();Yr=function(){return Yr=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},Yr.apply(this,arguments)}});function OL(t){var e,n=(e=process.env[t])===null||e===void 0?void 0:e.trim();if(n!=null&&n!==""){var i=Number(n);if(!Number.isNaN(i)&&Number.isFinite(i)&&i>0)return i;g.warn("Configuration: "+t+" is invalid, expected number greater than 0 (actual: "+n+")")}}function eW(t){var e=OL("OTEL_EXPORTER_OTLP_"+t+"_TIMEOUT"),n=OL("OTEL_EXPORTER_OTLP_TIMEOUT");return e??n}function gL(t){var e,n=(e=process.env[t])===null||e===void 0?void 0:e.trim();if(n!==""){if(n==null||n==="none"||n==="gzip")return n;g.warn("Configuration: "+t+" is invalid, expected 'none' or 'gzip' (actual: '"+n+"')")}}function tW(t){var e=gL("OTEL_EXPORTER_OTLP_"+t+"_COMPRESSION"),n=gL("OTEL_EXPORTER_OTLP_COMPRESSION");return e??n}function Ou(t){return{timeoutMillis:eW(t),compression:tW(t)}}var td=m(()=>{b()});function rW(t){var e,n,i=(e=process.env["OTEL_EXPORTER_OTLP_"+t+"_HEADERS"])===null||e===void 0?void 0:e.trim(),a=(n=process.env.OTEL_EXPORTER_OTLP_HEADERS)===null||n===void 0?void 0:n.trim(),s=bn.parseKeyPairsIntoRecord(i),o=bn.parseKeyPairsIntoRecord(a);if(!(Object.keys(s).length===0&&Object.keys(o).length===0))return Object.assign({},bn.parseKeyPairsIntoRecord(a),bn.parseKeyPairsIntoRecord(i))}function nW(t){try{var e=new URL(t);return e.toString()}catch{g.warn("Configuration: Could not parse environment-provided export URL: '"+t+"', falling back to undefined");return}}function oW(t,e){try{new URL(t)}catch{g.warn("Configuration: Could not parse environment-provided export URL: '"+t+"', falling back to undefined");return}t.endsWith("/")||(t=t+"/"),t+=e;try{new URL(t)}catch{g.warn("Configuration: Provided URL appended with '"+e+"' is not a valid URL, using 'undefined' instead of '"+t+"'");return}return t}function iW(t){var e,n=(e=process.env.OTEL_EXPORTER_OTLP_ENDPOINT)===null||e===void 0?void 0:e.trim();if(!(n==null||n===""))return oW(n,t)}function aW(t){var e,n=(e=process.env["OTEL_EXPORTER_OTLP_"+t+"_ENDPOINT"])===null||e===void 0?void 0:e.trim();if(!(n==null||n===""))return nW(n)}function NL(t,e){var n;return gu(gu({},Ou(t)),{url:(n=aW(t))!==null&&n!==void 0?n:iW(e),headers:rW(t)})}var gu,RL=m(()=>{K();b();td();gu=function(){return gu=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},gu.apply(this,arguments)}});var sW,vi,PL=m(()=>{pu();b();vL();Ti();Jp();AL();ed();RL();sW=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),vi=function(t){sW(e,t);function e(n,i,a,s,o){n===void 0&&(n={});var r=t.call(this,n)||this,u=yu({url:n.url,headers:n.headers,concurrencyLimit:n.concurrencyLimit,timeoutMillis:n.timeoutMillis,compression:n.compression},NL(s,o),Au(a,o));return r._timeoutMillis=u.timeoutMillis,r._concurrencyLimit=u.concurrencyLimit,n.metadata&&g.warn("Metadata cannot be set when using http"),r._serializer=i,r._transport=hu({transport:TL({agentOptions:yL(n),compression:u.compression,headers:u.headers,url:u.url})}),r}return e.prototype.send=function(n,i,a){var s=this;if(this._shutdownOnce.isCalled){g.debug("Shutdown already started. Cannot send objects");return}var o=this._serializer.serializeRequest(n);if(o==null){a(new Error("Could not serialize message"));return}var r=this._transport.send(o,this._timeoutMillis).then(function(l){l.status==="success"?i():l.status==="failure"&&l.error?a(l.error):l.status==="retryable"?a(new bt("Export failed with retryable status")):a(new bt("Export failed with unknown error"))},a);this._sendingPromises.push(r);var u=function(){var l=s._sendingPromises.indexOf(r);s._sendingPromises.splice(l,1)};r.then(u,u)},e.prototype.onShutdown=function(){},e}(Dn)});var mi,bL=m(()=>{(function(t){t.NONE="none",t.GZIP="gzip"})(mi||(mi={}))});var ML=m(()=>{PL();bL()});function xL(t){return new lW(t)}var uW,lW,LL=m(()=>{b();zp();uW=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},lW=function(){function t(e){this._parameters=e}return t.prototype.send=function(e,n){var i=this;return new Promise(function(a){var s=new XMLHttpRequest;s.timeout=n,s.open("POST",i._parameters.url),Object.entries(i._parameters.headers).forEach(function(o){var r=uW(o,2),u=r[0],l=r[1];s.setRequestHeader(u,l)}),s.ontimeout=function(o){a({status:"failure",error:new Error("XHR request timed out")})},s.onreadystatechange=function(){s.status>=200&&s.status<=299?(g.debug("XHR success"),a({status:"success"})):s.status&&du(s.status)?a({status:"retryable",retryInMillis:Eu(s.getResponseHeader("Retry-After"))}):s.status!==0&&a({status:"failure",error:new Error("XHR request failed with non-retryable status")})},s.onabort=function(){a({status:"failure",error:new Error("XHR request aborted")})},s.onerror=function(){a({status:"failure",error:new Error("XHR request errored")})},s.send(new Blob([e],{type:i._parameters.headers["Content-Type"]}))})},t.prototype.shutdown=function(){},t}()});function IL(t){return new cW(t)}var cW,CL=m(()=>{b();cW=function(){function t(e){this._params=e}return t.prototype.send=function(e){var n=this;return new Promise(function(i){navigator.sendBeacon(n._params.url,new Blob([e],{type:n._params.blobType}))?(g.debug("SendBeacon success"),i({status:"success"})):i({status:"failure",error:new Error("SendBeacon failed")})})},t.prototype.shutdown=function(){},t}()});var fW,rd,wL=m(()=>{pu();Ti();b();LL();CL();Jp();ed();fW=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),rd=function(t){fW(e,t);function e(n,i,a,s){n===void 0&&(n={});var o=t.call(this,n)||this;o._serializer=i;var r=!!n.headers||typeof navigator.sendBeacon!="function",u=yu({url:n.url,timeoutMillis:n.timeoutMillis,headers:n.headers,concurrencyLimit:n.concurrencyLimit},{},Au(a,s));return o._timeoutMillis=u.timeoutMillis,o._concurrencyLimit=u.concurrencyLimit,r?o._transport=hu({transport:xL({headers:u.headers,url:u.url})}):o._transport=IL({url:u.url,blobType:u.headers["Content-Type"]}),o}return e.prototype.onShutdown=function(){},e.prototype.send=function(n,i,a){var s=this;if(this._shutdownOnce.isCalled){g.debug("Shutdown already started. Cannot send objects");return}var o=this._serializer.serializeRequest(n);if(o==null){a(new Error("Could not serialize message"));return}var r=this._transport.send(o,this._timeoutMillis).then(function(l){l.status==="success"?i():l.status==="failure"&&l.error?a(l.error):l.status==="retryable"?a(new bt("Export failed with retryable status")):a(new bt("Export failed with unknown error"))},a);this._sendingPromises.push(r);var u=function(){var l=s._sendingPromises.indexOf(r);s._sendingPromises.splice(l,1)};r.then(u,u)},e}(Dn)});var UL=m(()=>{wL()});var DL=m(()=>{ML();UL()});var Nu={};it(Nu,{CompressionAlgorithm:()=>mi,OTLPExporterBase:()=>Dn,OTLPExporterBrowserBase:()=>rd,OTLPExporterError:()=>bt,OTLPExporterNodeBase:()=>vi,getSharedConfigurationDefaults:()=>vu,getSharedConfigurationFromEnvironment:()=>Ou,mergeOtlpSharedConfigurationWithDefaults:()=>Tu,validateAndNormalizeHeaders:()=>mu});var yi=m(()=>{DL();pu();Ti();Zp();Qp();td()});function Ru(t){var e=BigInt(1e9);return BigInt(t[0])*e+BigInt(t[1])}function nd(t){var e=Number(BigInt.asUintN(32,t)),n=Number(BigInt.asUintN(32,t>>BigInt(32)));return{low:e,high:n}}function Pu(t){var e=Ru(t);return nd(e)}function od(t){var e=Ru(t);return e.toString()}function VL(t){return t}function BL(t){if(t!==void 0)return lr(t)}function Sr(t){var e,n;if(t===void 0)return dW;var i=(e=t.useLongBits)!==null&&e!==void 0?e:!0,a=(n=t.useHex)!==null&&n!==void 0?n:!1;return{encodeHrTime:i?Pu:pW,encodeSpanContext:a?VL:lr,encodeOptionalSpanContext:a?VL:BL}}var pW,dW,Ai=m(()=>{K();pW=typeof BigInt<"u"?od:Ps;dW={encodeHrTime:Pu,encodeSpanContext:lr,encodeOptionalSpanContext:BL}});var bu,GL=m(()=>{(function(t){t[t.SPAN_KIND_UNSPECIFIED=0]="SPAN_KIND_UNSPECIFIED",t[t.SPAN_KIND_INTERNAL=1]="SPAN_KIND_INTERNAL",t[t.SPAN_KIND_SERVER=2]="SPAN_KIND_SERVER",t[t.SPAN_KIND_CLIENT=3]="SPAN_KIND_CLIENT",t[t.SPAN_KIND_PRODUCER=4]="SPAN_KIND_PRODUCER",t[t.SPAN_KIND_CONSUMER=5]="SPAN_KIND_CONSUMER"})(bu||(bu={}))});function Vn(t){return{name:t.name,version:t.version}}function Mt(t){return Object.keys(t).map(function(e){return Mu(e,t[e])})}function Mu(t,e){return{key:t,value:xu(e)}}function xu(t){var e=typeof t;return e==="string"?{stringValue:t}:e==="number"?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:e==="boolean"?{boolValue:t}:t instanceof Uint8Array?{bytesValue:t}:Array.isArray(t)?{arrayValue:{values:t.map(xu)}}:e==="object"&&t!=null?{kvlistValue:{values:Object.entries(t).map(function(n){var i=EW(n,2),a=i[0],s=i[1];return Mu(a,s)})}}:{}}var EW,Bn=m(()=>{EW=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}});function kL(t,e){var n,i=t.spanContext(),a=t.status;return{traceId:e.encodeSpanContext(i.traceId),spanId:e.encodeSpanContext(i.spanId),parentSpanId:e.encodeOptionalSpanContext(t.parentSpanId),traceState:(n=i.traceState)===null||n===void 0?void 0:n.serialize(),name:t.name,kind:t.kind==null?0:t.kind+1,startTimeUnixNano:e.encodeHrTime(t.startTime),endTimeUnixNano:e.encodeHrTime(t.endTime),attributes:Mt(t.attributes),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map(function(s){return SW(s,e)}),droppedEventsCount:t.droppedEventsCount,status:{code:a.code,message:a.message},links:t.links.map(function(s){return _W(s,e)}),droppedLinksCount:t.droppedLinksCount}}function _W(t,e){var n;return{attributes:t.attributes?Mt(t.attributes):[],spanId:e.encodeSpanContext(t.context.spanId),traceId:e.encodeSpanContext(t.context.traceId),traceState:(n=t.context.traceState)===null||n===void 0?void 0:n.serialize(),droppedAttributesCount:t.droppedAttributesCount||0}}function SW(t,e){return{attributes:t.attributes?Mt(t.attributes):[],name:t.name,timeUnixNano:e.encodeHrTime(t.time),droppedAttributesCount:t.droppedAttributesCount||0}}var HL=m(()=>{Bn()});function Gn(t){return{attributes:Mt(t.attributes),droppedAttributesCount:0}}var Lu=m(()=>{Bn()});function kn(t,e){var n=Sr(e);return{resourceSpans:mW(t,n)}}function vW(t){var e,n,i=new Map;try{for(var a=hW(t),s=a.next();!s.done;s=a.next()){var o=s.value,r=i.get(o.resource);r||(r=new Map,i.set(o.resource,r));var u=o.instrumentationLibrary.name+"@"+(o.instrumentationLibrary.version||"")+":"+(o.instrumentationLibrary.schemaUrl||""),l=r.get(u);l||(l=[],r.set(u,l)),l.push(o)}}catch(c){e={error:c}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return i}function mW(t,e){for(var n=vW(t),i=[],a=n.entries(),s=a.next();!s.done;){for(var o=TW(s.value,2),r=o[0],u=o[1],l=[],c=u.values(),p=c.next();!p.done;){var _=p.value;if(_.length>0){var f=_.map(function(v){return kL(v,e)});l.push({scope:Vn(_[0].instrumentationLibrary),spans:f,schemaUrl:_[0].instrumentationLibrary.schemaUrl})}p=c.next()}var S={resource:Gn(r),scopeSpans:l,schemaUrl:void 0};i.push(S),s=a.next()}return i}var hW,TW,Iu=m(()=>{HL();Ai();Bn();Lu();hW=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},TW=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}});function YL(t,e){var n=Sr(e);return{resource:Gn(t.resource),schemaUrl:void 0,scopeMetrics:yW(t.scopeMetrics,n)}}function yW(t,e){return Array.from(t.map(function(n){return{scope:Vn(n.scope),metrics:n.metrics.map(function(i){return AW(i,e)}),schemaUrl:n.scope.schemaUrl}}))}function AW(t,e){var n={name:t.descriptor.name,description:t.descriptor.description,unit:t.descriptor.unit},i=RW(t.aggregationTemporality);switch(t.dataPointType){case Ne.SUM:n.sum={aggregationTemporality:i,isMonotonic:t.isMonotonic,dataPoints:FL(t,e)};break;case Ne.GAUGE:n.gauge={dataPoints:FL(t,e)};break;case Ne.HISTOGRAM:n.histogram={aggregationTemporality:i,dataPoints:gW(t,e)};break;case Ne.EXPONENTIAL_HISTOGRAM:n.exponentialHistogram={aggregationTemporality:i,dataPoints:NW(t,e)};break}return n}function OW(t,e,n){var i={attributes:Mt(t.attributes),startTimeUnixNano:n.encodeHrTime(t.startTime),timeUnixNano:n.encodeHrTime(t.endTime)};switch(e){case Et.INT:i.asInt=t.value;break;case Et.DOUBLE:i.asDouble=t.value;break}return i}function FL(t,e){return t.dataPoints.map(function(n){return OW(n,t.descriptor.valueType,e)})}function gW(t,e){return t.dataPoints.map(function(n){var i=n.value;return{attributes:Mt(n.attributes),bucketCounts:i.buckets.counts,explicitBounds:i.buckets.boundaries,count:i.count,sum:i.sum,min:i.min,max:i.max,startTimeUnixNano:e.encodeHrTime(n.startTime),timeUnixNano:e.encodeHrTime(n.endTime)}})}function NW(t,e){return t.dataPoints.map(function(n){var i=n.value;return{attributes:Mt(n.attributes),count:i.count,min:i.min,max:i.max,sum:i.sum,positive:{offset:i.positive.offset,bucketCounts:i.positive.bucketCounts},negative:{offset:i.negative.offset,bucketCounts:i.negative.bucketCounts},scale:i.scale,zeroCount:i.zeroCount,startTimeUnixNano:e.encodeHrTime(n.startTime),timeUnixNano:e.encodeHrTime(n.endTime)}})}function RW(t){switch(t){case ge.DELTA:return 1;case ge.CUMULATIVE:return 2}}var qL=m(()=>{b();wn();Ai();Bn();Lu()});function Hn(t,e){return{resourceMetrics:t.map(function(n){return YL(n,e)})}}var Cu=m(()=>{qL()});function Fn(t,e){var n=Sr(e);return{resourceLogs:MW(t,n)}}function bW(t){var e,n,i=new Map;try{for(var a=PW(t),s=a.next();!s.done;s=a.next()){var o=s.value,r=o.resource,u=o.instrumentationScope,l=u.name,c=u.version,p=c===void 0?"":c,_=u.schemaUrl,f=_===void 0?"":_,S=i.get(r);S||(S=new Map,i.set(r,S));var v=l+"@"+p+":"+f,T=S.get(v);T||(T=[],S.set(v,T)),T.push(o)}}catch(A){e={error:A}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return i}function MW(t,e){var n=bW(t);return Array.from(n,function(i){var a=jL(i,2),s=a[0],o=a[1];return{resource:Gn(s),scopeLogs:Array.from(o,function(r){var u=jL(r,2),l=u[1];return{scope:Vn(l[0].instrumentationScope),logRecords:l.map(function(c){return xW(c,e)}),schemaUrl:l[0].instrumentationScope.schemaUrl}}),schemaUrl:void 0}})}function xW(t,e){var n,i,a;return{timeUnixNano:e.encodeHrTime(t.hrTime),observedTimeUnixNano:e.encodeHrTime(t.hrTimeObserved),severityNumber:t.severityNumber,severityText:t.severityText,body:xu(t.body),attributes:LW(t.attributes),droppedAttributesCount:t.droppedAttributesCount,flags:(n=t.spanContext)===null||n===void 0?void 0:n.traceFlags,traceId:e.encodeOptionalSpanContext((i=t.spanContext)===null||i===void 0?void 0:i.traceId),spanId:e.encodeOptionalSpanContext((a=t.spanContext)===null||a===void 0?void 0:a.spanId)}}function LW(t){return Object.keys(t).map(function(e){return Mu(e,t[e])})}var PW,jL,wu=m(()=>{Ai();Bn();Lu();PW=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},jL=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}});var KL=h((uue,$L)=>{"use strict";var I=PU(),y=I.Reader,V=I.Writer,E=I.util,d=I.roots.default||(I.roots.default={});d.opentelemetry=function(){var t={};return t.proto=function(){var e={};return e.common=function(){var n={};return n.v1=function(){var i={};return i.AnyValue=function(){function a(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}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 s;return Object.defineProperty(a.prototype,"value",{get:E.oneOfGetter(s=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"]),set:E.oneOfSetter(s)}),a.create=function(r){return new a(r)},a.encode=function(r,u){return u||(u=V.create()),r.stringValue!=null&&Object.hasOwnProperty.call(r,"stringValue")&&u.uint32(10).string(r.stringValue),r.boolValue!=null&&Object.hasOwnProperty.call(r,"boolValue")&&u.uint32(16).bool(r.boolValue),r.intValue!=null&&Object.hasOwnProperty.call(r,"intValue")&&u.uint32(24).int64(r.intValue),r.doubleValue!=null&&Object.hasOwnProperty.call(r,"doubleValue")&&u.uint32(33).double(r.doubleValue),r.arrayValue!=null&&Object.hasOwnProperty.call(r,"arrayValue")&&d.opentelemetry.proto.common.v1.ArrayValue.encode(r.arrayValue,u.uint32(42).fork()).ldelim(),r.kvlistValue!=null&&Object.hasOwnProperty.call(r,"kvlistValue")&&d.opentelemetry.proto.common.v1.KeyValueList.encode(r.kvlistValue,u.uint32(50).fork()).ldelim(),r.bytesValue!=null&&Object.hasOwnProperty.call(r,"bytesValue")&&u.uint32(58).bytes(r.bytesValue),u},a.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},a.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.common.v1.AnyValue;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.stringValue=r.string();break}case 2:{c.boolValue=r.bool();break}case 3:{c.intValue=r.int64();break}case 4:{c.doubleValue=r.double();break}case 5:{c.arrayValue=d.opentelemetry.proto.common.v1.ArrayValue.decode(r,r.uint32());break}case 6:{c.kvlistValue=d.opentelemetry.proto.common.v1.KeyValueList.decode(r,r.uint32());break}case 7:{c.bytesValue=r.bytes();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var u={};if(r.stringValue!=null&&r.hasOwnProperty("stringValue")&&(u.value=1,!E.isString(r.stringValue)))return"stringValue: string expected";if(r.boolValue!=null&&r.hasOwnProperty("boolValue")){if(u.value===1)return"value: multiple values";if(u.value=1,typeof r.boolValue!="boolean")return"boolValue: boolean expected"}if(r.intValue!=null&&r.hasOwnProperty("intValue")){if(u.value===1)return"value: multiple values";if(u.value=1,!E.isInteger(r.intValue)&&!(r.intValue&&E.isInteger(r.intValue.low)&&E.isInteger(r.intValue.high)))return"intValue: integer|Long expected"}if(r.doubleValue!=null&&r.hasOwnProperty("doubleValue")){if(u.value===1)return"value: multiple values";if(u.value=1,typeof r.doubleValue!="number")return"doubleValue: number expected"}if(r.arrayValue!=null&&r.hasOwnProperty("arrayValue")){if(u.value===1)return"value: multiple values";u.value=1;{var l=d.opentelemetry.proto.common.v1.ArrayValue.verify(r.arrayValue);if(l)return"arrayValue."+l}}if(r.kvlistValue!=null&&r.hasOwnProperty("kvlistValue")){if(u.value===1)return"value: multiple values";u.value=1;{var l=d.opentelemetry.proto.common.v1.KeyValueList.verify(r.kvlistValue);if(l)return"kvlistValue."+l}}if(r.bytesValue!=null&&r.hasOwnProperty("bytesValue")){if(u.value===1)return"value: multiple values";if(u.value=1,!(r.bytesValue&&typeof r.bytesValue.length=="number"||E.isString(r.bytesValue)))return"bytesValue: buffer expected"}return null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.common.v1.AnyValue)return r;var u=new d.opentelemetry.proto.common.v1.AnyValue;if(r.stringValue!=null&&(u.stringValue=String(r.stringValue)),r.boolValue!=null&&(u.boolValue=!!r.boolValue),r.intValue!=null&&(E.Long?(u.intValue=E.Long.fromValue(r.intValue)).unsigned=!1:typeof r.intValue=="string"?u.intValue=parseInt(r.intValue,10):typeof r.intValue=="number"?u.intValue=r.intValue:typeof r.intValue=="object"&&(u.intValue=new E.LongBits(r.intValue.low>>>0,r.intValue.high>>>0).toNumber())),r.doubleValue!=null&&(u.doubleValue=Number(r.doubleValue)),r.arrayValue!=null){if(typeof r.arrayValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.arrayValue: object expected");u.arrayValue=d.opentelemetry.proto.common.v1.ArrayValue.fromObject(r.arrayValue)}if(r.kvlistValue!=null){if(typeof r.kvlistValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.kvlistValue: object expected");u.kvlistValue=d.opentelemetry.proto.common.v1.KeyValueList.fromObject(r.kvlistValue)}return r.bytesValue!=null&&(typeof r.bytesValue=="string"?E.base64.decode(r.bytesValue,u.bytesValue=E.newBuffer(E.base64.length(r.bytesValue)),0):r.bytesValue.length>=0&&(u.bytesValue=r.bytesValue)),u},a.toObject=function(r,u){u||(u={});var l={};return r.stringValue!=null&&r.hasOwnProperty("stringValue")&&(l.stringValue=r.stringValue,u.oneofs&&(l.value="stringValue")),r.boolValue!=null&&r.hasOwnProperty("boolValue")&&(l.boolValue=r.boolValue,u.oneofs&&(l.value="boolValue")),r.intValue!=null&&r.hasOwnProperty("intValue")&&(typeof r.intValue=="number"?l.intValue=u.longs===String?String(r.intValue):r.intValue:l.intValue=u.longs===String?E.Long.prototype.toString.call(r.intValue):u.longs===Number?new E.LongBits(r.intValue.low>>>0,r.intValue.high>>>0).toNumber():r.intValue,u.oneofs&&(l.value="intValue")),r.doubleValue!=null&&r.hasOwnProperty("doubleValue")&&(l.doubleValue=u.json&&!isFinite(r.doubleValue)?String(r.doubleValue):r.doubleValue,u.oneofs&&(l.value="doubleValue")),r.arrayValue!=null&&r.hasOwnProperty("arrayValue")&&(l.arrayValue=d.opentelemetry.proto.common.v1.ArrayValue.toObject(r.arrayValue,u),u.oneofs&&(l.value="arrayValue")),r.kvlistValue!=null&&r.hasOwnProperty("kvlistValue")&&(l.kvlistValue=d.opentelemetry.proto.common.v1.KeyValueList.toObject(r.kvlistValue,u),u.oneofs&&(l.value="kvlistValue")),r.bytesValue!=null&&r.hasOwnProperty("bytesValue")&&(l.bytesValue=u.bytes===String?E.base64.encode(r.bytesValue,0,r.bytesValue.length):u.bytes===Array?Array.prototype.slice.call(r.bytesValue):r.bytesValue,u.oneofs&&(l.value="bytesValue")),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.common.v1.AnyValue"},a}(),i.ArrayValue=function(){function a(s){if(this.values=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.values=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.values!=null&&o.values.length)for(var u=0;u<o.values.length;++u)d.opentelemetry.proto.common.v1.AnyValue.encode(o.values[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.common.v1.ArrayValue;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.values&&l.values.length||(l.values=[]),l.values.push(d.opentelemetry.proto.common.v1.AnyValue.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.values!=null&&o.hasOwnProperty("values")){if(!Array.isArray(o.values))return"values: array expected";for(var r=0;r<o.values.length;++r){var u=d.opentelemetry.proto.common.v1.AnyValue.verify(o.values[r]);if(u)return"values."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.common.v1.ArrayValue)return o;var r=new d.opentelemetry.proto.common.v1.ArrayValue;if(o.values){if(!Array.isArray(o.values))throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: array expected");r.values=[];for(var u=0;u<o.values.length;++u){if(typeof o.values[u]!="object")throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: object expected");r.values[u]=d.opentelemetry.proto.common.v1.AnyValue.fromObject(o.values[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.values=[]),o.values&&o.values.length){u.values=[];for(var l=0;l<o.values.length;++l)u.values[l]=d.opentelemetry.proto.common.v1.AnyValue.toObject(o.values[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.common.v1.ArrayValue"},a}(),i.KeyValueList=function(){function a(s){if(this.values=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.values=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.values!=null&&o.values.length)for(var u=0;u<o.values.length;++u)d.opentelemetry.proto.common.v1.KeyValue.encode(o.values[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.common.v1.KeyValueList;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.values&&l.values.length||(l.values=[]),l.values.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.values!=null&&o.hasOwnProperty("values")){if(!Array.isArray(o.values))return"values: array expected";for(var r=0;r<o.values.length;++r){var u=d.opentelemetry.proto.common.v1.KeyValue.verify(o.values[r]);if(u)return"values."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.common.v1.KeyValueList)return o;var r=new d.opentelemetry.proto.common.v1.KeyValueList;if(o.values){if(!Array.isArray(o.values))throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: array expected");r.values=[];for(var u=0;u<o.values.length;++u){if(typeof o.values[u]!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: object expected");r.values[u]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.values[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.values=[]),o.values&&o.values.length){u.values=[];for(var l=0;l<o.values.length;++l)u.values[l]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.values[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.common.v1.KeyValueList"},a}(),i.KeyValue=function(){function a(s){if(s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.key=null,a.prototype.value=null,a.create=function(o){return new a(o)},a.encode=function(o,r){return r||(r=V.create()),o.key!=null&&Object.hasOwnProperty.call(o,"key")&&r.uint32(10).string(o.key),o.value!=null&&Object.hasOwnProperty.call(o,"value")&&d.opentelemetry.proto.common.v1.AnyValue.encode(o.value,r.uint32(18).fork()).ldelim(),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.common.v1.KeyValue;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.key=o.string();break}case 2:{l.value=d.opentelemetry.proto.common.v1.AnyValue.decode(o,o.uint32());break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.key!=null&&o.hasOwnProperty("key")&&!E.isString(o.key))return"key: string expected";if(o.value!=null&&o.hasOwnProperty("value")){var r=d.opentelemetry.proto.common.v1.AnyValue.verify(o.value);if(r)return"value."+r}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.common.v1.KeyValue)return o;var r=new d.opentelemetry.proto.common.v1.KeyValue;if(o.key!=null&&(r.key=String(o.key)),o.value!=null){if(typeof o.value!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValue.value: object expected");r.value=d.opentelemetry.proto.common.v1.AnyValue.fromObject(o.value)}return r},a.toObject=function(o,r){r||(r={});var u={};return r.defaults&&(u.key="",u.value=null),o.key!=null&&o.hasOwnProperty("key")&&(u.key=o.key),o.value!=null&&o.hasOwnProperty("value")&&(u.value=d.opentelemetry.proto.common.v1.AnyValue.toObject(o.value,r)),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.common.v1.KeyValue"},a}(),i.InstrumentationScope=function(){function a(s){if(this.attributes=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.name=null,a.prototype.version=null,a.prototype.attributes=E.emptyArray,a.prototype.droppedAttributesCount=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.name!=null&&Object.hasOwnProperty.call(o,"name")&&r.uint32(10).string(o.name),o.version!=null&&Object.hasOwnProperty.call(o,"version")&&r.uint32(18).string(o.version),o.attributes!=null&&o.attributes.length)for(var u=0;u<o.attributes.length;++u)d.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[u],r.uint32(26).fork()).ldelim();return o.droppedAttributesCount!=null&&Object.hasOwnProperty.call(o,"droppedAttributesCount")&&r.uint32(32).uint32(o.droppedAttributesCount),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.common.v1.InstrumentationScope;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.name=o.string();break}case 2:{l.version=o.string();break}case 3:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 4:{l.droppedAttributesCount=o.uint32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.name!=null&&o.hasOwnProperty("name")&&!E.isString(o.name))return"name: string expected";if(o.version!=null&&o.hasOwnProperty("version")&&!E.isString(o.version))return"version: string expected";if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var r=0;r<o.attributes.length;++r){var u=d.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[r]);if(u)return"attributes."+u}}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(o.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.common.v1.InstrumentationScope)return o;var r=new d.opentelemetry.proto.common.v1.InstrumentationScope;if(o.name!=null&&(r.name=String(o.name)),o.version!=null&&(r.version=String(o.version)),o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: array expected");r.attributes=[];for(var u=0;u<o.attributes.length;++u){if(typeof o.attributes[u]!="object")throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: object expected");r.attributes[u]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[u])}}return o.droppedAttributesCount!=null&&(r.droppedAttributesCount=o.droppedAttributesCount>>>0),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.attributes=[]),r.defaults&&(u.name="",u.version="",u.droppedAttributesCount=0),o.name!=null&&o.hasOwnProperty("name")&&(u.name=o.name),o.version!=null&&o.hasOwnProperty("version")&&(u.version=o.version),o.attributes&&o.attributes.length){u.attributes=[];for(var l=0;l<o.attributes.length;++l)u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[l],r)}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=o.droppedAttributesCount),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.common.v1.InstrumentationScope"},a}(),i}(),n}(),e.resource=function(){var n={};return n.v1=function(){var i={};return i.Resource=function(){function a(s){if(this.attributes=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.attributes=E.emptyArray,a.prototype.droppedAttributesCount=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.attributes!=null&&o.attributes.length)for(var u=0;u<o.attributes.length;++u)d.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[u],r.uint32(10).fork()).ldelim();return o.droppedAttributesCount!=null&&Object.hasOwnProperty.call(o,"droppedAttributesCount")&&r.uint32(16).uint32(o.droppedAttributesCount),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.resource.v1.Resource;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 2:{l.droppedAttributesCount=o.uint32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var r=0;r<o.attributes.length;++r){var u=d.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[r]);if(u)return"attributes."+u}}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(o.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.resource.v1.Resource)return o;var r=new d.opentelemetry.proto.resource.v1.Resource;if(o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: array expected");r.attributes=[];for(var u=0;u<o.attributes.length;++u){if(typeof o.attributes[u]!="object")throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: object expected");r.attributes[u]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[u])}}return o.droppedAttributesCount!=null&&(r.droppedAttributesCount=o.droppedAttributesCount>>>0),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.attributes=[]),r.defaults&&(u.droppedAttributesCount=0),o.attributes&&o.attributes.length){u.attributes=[];for(var l=0;l<o.attributes.length;++l)u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[l],r)}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=o.droppedAttributesCount),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.resource.v1.Resource"},a}(),i}(),n}(),e.trace=function(){var n={};return n.v1=function(){var i={};return i.TracesData=function(){function a(s){if(this.resourceSpans=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.resourceSpans=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resourceSpans!=null&&o.resourceSpans.length)for(var u=0;u<o.resourceSpans.length;++u)d.opentelemetry.proto.trace.v1.ResourceSpans.encode(o.resourceSpans[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.trace.v1.TracesData;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.resourceSpans&&l.resourceSpans.length||(l.resourceSpans=[]),l.resourceSpans.push(d.opentelemetry.proto.trace.v1.ResourceSpans.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resourceSpans!=null&&o.hasOwnProperty("resourceSpans")){if(!Array.isArray(o.resourceSpans))return"resourceSpans: array expected";for(var r=0;r<o.resourceSpans.length;++r){var u=d.opentelemetry.proto.trace.v1.ResourceSpans.verify(o.resourceSpans[r]);if(u)return"resourceSpans."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.trace.v1.TracesData)return o;var r=new d.opentelemetry.proto.trace.v1.TracesData;if(o.resourceSpans){if(!Array.isArray(o.resourceSpans))throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: array expected");r.resourceSpans=[];for(var u=0;u<o.resourceSpans.length;++u){if(typeof o.resourceSpans[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: object expected");r.resourceSpans[u]=d.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(o.resourceSpans[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.resourceSpans=[]),o.resourceSpans&&o.resourceSpans.length){u.resourceSpans=[];for(var l=0;l<o.resourceSpans.length;++l)u.resourceSpans[l]=d.opentelemetry.proto.trace.v1.ResourceSpans.toObject(o.resourceSpans[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.TracesData"},a}(),i.ResourceSpans=function(){function a(s){if(this.scopeSpans=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.resource=null,a.prototype.scopeSpans=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resource!=null&&Object.hasOwnProperty.call(o,"resource")&&d.opentelemetry.proto.resource.v1.Resource.encode(o.resource,r.uint32(10).fork()).ldelim(),o.scopeSpans!=null&&o.scopeSpans.length)for(var u=0;u<o.scopeSpans.length;++u)d.opentelemetry.proto.trace.v1.ScopeSpans.encode(o.scopeSpans[u],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.trace.v1.ResourceSpans;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.resource=d.opentelemetry.proto.resource.v1.Resource.decode(o,o.uint32());break}case 2:{l.scopeSpans&&l.scopeSpans.length||(l.scopeSpans=[]),l.scopeSpans.push(d.opentelemetry.proto.trace.v1.ScopeSpans.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resource!=null&&o.hasOwnProperty("resource")){var r=d.opentelemetry.proto.resource.v1.Resource.verify(o.resource);if(r)return"resource."+r}if(o.scopeSpans!=null&&o.hasOwnProperty("scopeSpans")){if(!Array.isArray(o.scopeSpans))return"scopeSpans: array expected";for(var u=0;u<o.scopeSpans.length;++u){var r=d.opentelemetry.proto.trace.v1.ScopeSpans.verify(o.scopeSpans[u]);if(r)return"scopeSpans."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.trace.v1.ResourceSpans)return o;var r=new d.opentelemetry.proto.trace.v1.ResourceSpans;if(o.resource!=null){if(typeof o.resource!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.resource: object expected");r.resource=d.opentelemetry.proto.resource.v1.Resource.fromObject(o.resource)}if(o.scopeSpans){if(!Array.isArray(o.scopeSpans))throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: array expected");r.scopeSpans=[];for(var u=0;u<o.scopeSpans.length;++u){if(typeof o.scopeSpans[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: object expected");r.scopeSpans[u]=d.opentelemetry.proto.trace.v1.ScopeSpans.fromObject(o.scopeSpans[u])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.scopeSpans=[]),r.defaults&&(u.resource=null,u.schemaUrl=""),o.resource!=null&&o.hasOwnProperty("resource")&&(u.resource=d.opentelemetry.proto.resource.v1.Resource.toObject(o.resource,r)),o.scopeSpans&&o.scopeSpans.length){u.scopeSpans=[];for(var l=0;l<o.scopeSpans.length;++l)u.scopeSpans[l]=d.opentelemetry.proto.trace.v1.ScopeSpans.toObject(o.scopeSpans[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(u.schemaUrl=o.schemaUrl),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.ResourceSpans"},a}(),i.ScopeSpans=function(){function a(s){if(this.spans=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.scope=null,a.prototype.spans=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.scope!=null&&Object.hasOwnProperty.call(o,"scope")&&d.opentelemetry.proto.common.v1.InstrumentationScope.encode(o.scope,r.uint32(10).fork()).ldelim(),o.spans!=null&&o.spans.length)for(var u=0;u<o.spans.length;++u)d.opentelemetry.proto.trace.v1.Span.encode(o.spans[u],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.trace.v1.ScopeSpans;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.decode(o,o.uint32());break}case 2:{l.spans&&l.spans.length||(l.spans=[]),l.spans.push(d.opentelemetry.proto.trace.v1.Span.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.scope!=null&&o.hasOwnProperty("scope")){var r=d.opentelemetry.proto.common.v1.InstrumentationScope.verify(o.scope);if(r)return"scope."+r}if(o.spans!=null&&o.hasOwnProperty("spans")){if(!Array.isArray(o.spans))return"spans: array expected";for(var u=0;u<o.spans.length;++u){var r=d.opentelemetry.proto.trace.v1.Span.verify(o.spans[u]);if(r)return"spans."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.trace.v1.ScopeSpans)return o;var r=new d.opentelemetry.proto.trace.v1.ScopeSpans;if(o.scope!=null){if(typeof o.scope!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.scope: object expected");r.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(o.scope)}if(o.spans){if(!Array.isArray(o.spans))throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: array expected");r.spans=[];for(var u=0;u<o.spans.length;++u){if(typeof o.spans[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: object expected");r.spans[u]=d.opentelemetry.proto.trace.v1.Span.fromObject(o.spans[u])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.spans=[]),r.defaults&&(u.scope=null,u.schemaUrl=""),o.scope!=null&&o.hasOwnProperty("scope")&&(u.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.toObject(o.scope,r)),o.spans&&o.spans.length){u.spans=[];for(var l=0;l<o.spans.length;++l)u.spans[l]=d.opentelemetry.proto.trace.v1.Span.toObject(o.spans[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(u.schemaUrl=o.schemaUrl),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.ScopeSpans"},a}(),i.Span=function(){function a(s){if(this.attributes=[],this.events=[],this.links=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}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=E.emptyArray,a.prototype.droppedAttributesCount=null,a.prototype.events=E.emptyArray,a.prototype.droppedEventsCount=null,a.prototype.links=E.emptyArray,a.prototype.droppedLinksCount=null,a.prototype.status=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.traceId!=null&&Object.hasOwnProperty.call(o,"traceId")&&r.uint32(10).bytes(o.traceId),o.spanId!=null&&Object.hasOwnProperty.call(o,"spanId")&&r.uint32(18).bytes(o.spanId),o.traceState!=null&&Object.hasOwnProperty.call(o,"traceState")&&r.uint32(26).string(o.traceState),o.parentSpanId!=null&&Object.hasOwnProperty.call(o,"parentSpanId")&&r.uint32(34).bytes(o.parentSpanId),o.name!=null&&Object.hasOwnProperty.call(o,"name")&&r.uint32(42).string(o.name),o.kind!=null&&Object.hasOwnProperty.call(o,"kind")&&r.uint32(48).int32(o.kind),o.startTimeUnixNano!=null&&Object.hasOwnProperty.call(o,"startTimeUnixNano")&&r.uint32(57).fixed64(o.startTimeUnixNano),o.endTimeUnixNano!=null&&Object.hasOwnProperty.call(o,"endTimeUnixNano")&&r.uint32(65).fixed64(o.endTimeUnixNano),o.attributes!=null&&o.attributes.length)for(var u=0;u<o.attributes.length;++u)d.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[u],r.uint32(74).fork()).ldelim();if(o.droppedAttributesCount!=null&&Object.hasOwnProperty.call(o,"droppedAttributesCount")&&r.uint32(80).uint32(o.droppedAttributesCount),o.events!=null&&o.events.length)for(var u=0;u<o.events.length;++u)d.opentelemetry.proto.trace.v1.Span.Event.encode(o.events[u],r.uint32(90).fork()).ldelim();if(o.droppedEventsCount!=null&&Object.hasOwnProperty.call(o,"droppedEventsCount")&&r.uint32(96).uint32(o.droppedEventsCount),o.links!=null&&o.links.length)for(var u=0;u<o.links.length;++u)d.opentelemetry.proto.trace.v1.Span.Link.encode(o.links[u],r.uint32(106).fork()).ldelim();return o.droppedLinksCount!=null&&Object.hasOwnProperty.call(o,"droppedLinksCount")&&r.uint32(112).uint32(o.droppedLinksCount),o.status!=null&&Object.hasOwnProperty.call(o,"status")&&d.opentelemetry.proto.trace.v1.Status.encode(o.status,r.uint32(122).fork()).ldelim(),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.trace.v1.Span;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.traceId=o.bytes();break}case 2:{l.spanId=o.bytes();break}case 3:{l.traceState=o.string();break}case 4:{l.parentSpanId=o.bytes();break}case 5:{l.name=o.string();break}case 6:{l.kind=o.int32();break}case 7:{l.startTimeUnixNano=o.fixed64();break}case 8:{l.endTimeUnixNano=o.fixed64();break}case 9:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 10:{l.droppedAttributesCount=o.uint32();break}case 11:{l.events&&l.events.length||(l.events=[]),l.events.push(d.opentelemetry.proto.trace.v1.Span.Event.decode(o,o.uint32()));break}case 12:{l.droppedEventsCount=o.uint32();break}case 13:{l.links&&l.links.length||(l.links=[]),l.links.push(d.opentelemetry.proto.trace.v1.Span.Link.decode(o,o.uint32()));break}case 14:{l.droppedLinksCount=o.uint32();break}case 15:{l.status=d.opentelemetry.proto.trace.v1.Status.decode(o,o.uint32());break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.traceId!=null&&o.hasOwnProperty("traceId")&&!(o.traceId&&typeof o.traceId.length=="number"||E.isString(o.traceId)))return"traceId: buffer expected";if(o.spanId!=null&&o.hasOwnProperty("spanId")&&!(o.spanId&&typeof o.spanId.length=="number"||E.isString(o.spanId)))return"spanId: buffer expected";if(o.traceState!=null&&o.hasOwnProperty("traceState")&&!E.isString(o.traceState))return"traceState: string expected";if(o.parentSpanId!=null&&o.hasOwnProperty("parentSpanId")&&!(o.parentSpanId&&typeof o.parentSpanId.length=="number"||E.isString(o.parentSpanId)))return"parentSpanId: buffer expected";if(o.name!=null&&o.hasOwnProperty("name")&&!E.isString(o.name))return"name: string expected";if(o.kind!=null&&o.hasOwnProperty("kind"))switch(o.kind){default:return"kind: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:break}if(o.startTimeUnixNano!=null&&o.hasOwnProperty("startTimeUnixNano")&&!E.isInteger(o.startTimeUnixNano)&&!(o.startTimeUnixNano&&E.isInteger(o.startTimeUnixNano.low)&&E.isInteger(o.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(o.endTimeUnixNano!=null&&o.hasOwnProperty("endTimeUnixNano")&&!E.isInteger(o.endTimeUnixNano)&&!(o.endTimeUnixNano&&E.isInteger(o.endTimeUnixNano.low)&&E.isInteger(o.endTimeUnixNano.high)))return"endTimeUnixNano: integer|Long expected";if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var r=0;r<o.attributes.length;++r){var u=d.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[r]);if(u)return"attributes."+u}}if(o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(o.droppedAttributesCount))return"droppedAttributesCount: integer expected";if(o.events!=null&&o.hasOwnProperty("events")){if(!Array.isArray(o.events))return"events: array expected";for(var r=0;r<o.events.length;++r){var u=d.opentelemetry.proto.trace.v1.Span.Event.verify(o.events[r]);if(u)return"events."+u}}if(o.droppedEventsCount!=null&&o.hasOwnProperty("droppedEventsCount")&&!E.isInteger(o.droppedEventsCount))return"droppedEventsCount: integer expected";if(o.links!=null&&o.hasOwnProperty("links")){if(!Array.isArray(o.links))return"links: array expected";for(var r=0;r<o.links.length;++r){var u=d.opentelemetry.proto.trace.v1.Span.Link.verify(o.links[r]);if(u)return"links."+u}}if(o.droppedLinksCount!=null&&o.hasOwnProperty("droppedLinksCount")&&!E.isInteger(o.droppedLinksCount))return"droppedLinksCount: integer expected";if(o.status!=null&&o.hasOwnProperty("status")){var u=d.opentelemetry.proto.trace.v1.Status.verify(o.status);if(u)return"status."+u}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.trace.v1.Span)return o;var r=new d.opentelemetry.proto.trace.v1.Span;switch(o.traceId!=null&&(typeof o.traceId=="string"?E.base64.decode(o.traceId,r.traceId=E.newBuffer(E.base64.length(o.traceId)),0):o.traceId.length>=0&&(r.traceId=o.traceId)),o.spanId!=null&&(typeof o.spanId=="string"?E.base64.decode(o.spanId,r.spanId=E.newBuffer(E.base64.length(o.spanId)),0):o.spanId.length>=0&&(r.spanId=o.spanId)),o.traceState!=null&&(r.traceState=String(o.traceState)),o.parentSpanId!=null&&(typeof o.parentSpanId=="string"?E.base64.decode(o.parentSpanId,r.parentSpanId=E.newBuffer(E.base64.length(o.parentSpanId)),0):o.parentSpanId.length>=0&&(r.parentSpanId=o.parentSpanId)),o.name!=null&&(r.name=String(o.name)),o.kind){default:if(typeof o.kind=="number"){r.kind=o.kind;break}break;case"SPAN_KIND_UNSPECIFIED":case 0:r.kind=0;break;case"SPAN_KIND_INTERNAL":case 1:r.kind=1;break;case"SPAN_KIND_SERVER":case 2:r.kind=2;break;case"SPAN_KIND_CLIENT":case 3:r.kind=3;break;case"SPAN_KIND_PRODUCER":case 4:r.kind=4;break;case"SPAN_KIND_CONSUMER":case 5:r.kind=5;break}if(o.startTimeUnixNano!=null&&(E.Long?(r.startTimeUnixNano=E.Long.fromValue(o.startTimeUnixNano)).unsigned=!1:typeof o.startTimeUnixNano=="string"?r.startTimeUnixNano=parseInt(o.startTimeUnixNano,10):typeof o.startTimeUnixNano=="number"?r.startTimeUnixNano=o.startTimeUnixNano:typeof o.startTimeUnixNano=="object"&&(r.startTimeUnixNano=new E.LongBits(o.startTimeUnixNano.low>>>0,o.startTimeUnixNano.high>>>0).toNumber())),o.endTimeUnixNano!=null&&(E.Long?(r.endTimeUnixNano=E.Long.fromValue(o.endTimeUnixNano)).unsigned=!1:typeof o.endTimeUnixNano=="string"?r.endTimeUnixNano=parseInt(o.endTimeUnixNano,10):typeof o.endTimeUnixNano=="number"?r.endTimeUnixNano=o.endTimeUnixNano:typeof o.endTimeUnixNano=="object"&&(r.endTimeUnixNano=new E.LongBits(o.endTimeUnixNano.low>>>0,o.endTimeUnixNano.high>>>0).toNumber())),o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: array expected");r.attributes=[];for(var u=0;u<o.attributes.length;++u){if(typeof o.attributes[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: object expected");r.attributes[u]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[u])}}if(o.droppedAttributesCount!=null&&(r.droppedAttributesCount=o.droppedAttributesCount>>>0),o.events){if(!Array.isArray(o.events))throw TypeError(".opentelemetry.proto.trace.v1.Span.events: array expected");r.events=[];for(var u=0;u<o.events.length;++u){if(typeof o.events[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.events: object expected");r.events[u]=d.opentelemetry.proto.trace.v1.Span.Event.fromObject(o.events[u])}}if(o.droppedEventsCount!=null&&(r.droppedEventsCount=o.droppedEventsCount>>>0),o.links){if(!Array.isArray(o.links))throw TypeError(".opentelemetry.proto.trace.v1.Span.links: array expected");r.links=[];for(var u=0;u<o.links.length;++u){if(typeof o.links[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.links: object expected");r.links[u]=d.opentelemetry.proto.trace.v1.Span.Link.fromObject(o.links[u])}}if(o.droppedLinksCount!=null&&(r.droppedLinksCount=o.droppedLinksCount>>>0),o.status!=null){if(typeof o.status!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.status: object expected");r.status=d.opentelemetry.proto.trace.v1.Status.fromObject(o.status)}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.attributes=[],u.events=[],u.links=[]),r.defaults){if(r.bytes===String?u.traceId="":(u.traceId=[],r.bytes!==Array&&(u.traceId=E.newBuffer(u.traceId))),r.bytes===String?u.spanId="":(u.spanId=[],r.bytes!==Array&&(u.spanId=E.newBuffer(u.spanId))),u.traceState="",r.bytes===String?u.parentSpanId="":(u.parentSpanId=[],r.bytes!==Array&&(u.parentSpanId=E.newBuffer(u.parentSpanId))),u.name="",u.kind=r.enums===String?"SPAN_KIND_UNSPECIFIED":0,E.Long){var l=new E.Long(0,0,!1);u.startTimeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.startTimeUnixNano=r.longs===String?"0":0;if(E.Long){var l=new E.Long(0,0,!1);u.endTimeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.endTimeUnixNano=r.longs===String?"0":0;u.droppedAttributesCount=0,u.droppedEventsCount=0,u.droppedLinksCount=0,u.status=null}if(o.traceId!=null&&o.hasOwnProperty("traceId")&&(u.traceId=r.bytes===String?E.base64.encode(o.traceId,0,o.traceId.length):r.bytes===Array?Array.prototype.slice.call(o.traceId):o.traceId),o.spanId!=null&&o.hasOwnProperty("spanId")&&(u.spanId=r.bytes===String?E.base64.encode(o.spanId,0,o.spanId.length):r.bytes===Array?Array.prototype.slice.call(o.spanId):o.spanId),o.traceState!=null&&o.hasOwnProperty("traceState")&&(u.traceState=o.traceState),o.parentSpanId!=null&&o.hasOwnProperty("parentSpanId")&&(u.parentSpanId=r.bytes===String?E.base64.encode(o.parentSpanId,0,o.parentSpanId.length):r.bytes===Array?Array.prototype.slice.call(o.parentSpanId):o.parentSpanId),o.name!=null&&o.hasOwnProperty("name")&&(u.name=o.name),o.kind!=null&&o.hasOwnProperty("kind")&&(u.kind=r.enums===String?d.opentelemetry.proto.trace.v1.Span.SpanKind[o.kind]===void 0?o.kind:d.opentelemetry.proto.trace.v1.Span.SpanKind[o.kind]:o.kind),o.startTimeUnixNano!=null&&o.hasOwnProperty("startTimeUnixNano")&&(typeof o.startTimeUnixNano=="number"?u.startTimeUnixNano=r.longs===String?String(o.startTimeUnixNano):o.startTimeUnixNano:u.startTimeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.startTimeUnixNano):r.longs===Number?new E.LongBits(o.startTimeUnixNano.low>>>0,o.startTimeUnixNano.high>>>0).toNumber():o.startTimeUnixNano),o.endTimeUnixNano!=null&&o.hasOwnProperty("endTimeUnixNano")&&(typeof o.endTimeUnixNano=="number"?u.endTimeUnixNano=r.longs===String?String(o.endTimeUnixNano):o.endTimeUnixNano:u.endTimeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.endTimeUnixNano):r.longs===Number?new E.LongBits(o.endTimeUnixNano.low>>>0,o.endTimeUnixNano.high>>>0).toNumber():o.endTimeUnixNano),o.attributes&&o.attributes.length){u.attributes=[];for(var c=0;c<o.attributes.length;++c)u.attributes[c]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[c],r)}if(o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=o.droppedAttributesCount),o.events&&o.events.length){u.events=[];for(var c=0;c<o.events.length;++c)u.events[c]=d.opentelemetry.proto.trace.v1.Span.Event.toObject(o.events[c],r)}if(o.droppedEventsCount!=null&&o.hasOwnProperty("droppedEventsCount")&&(u.droppedEventsCount=o.droppedEventsCount),o.links&&o.links.length){u.links=[];for(var c=0;c<o.links.length;++c)u.links[c]=d.opentelemetry.proto.trace.v1.Span.Link.toObject(o.links[c],r)}return o.droppedLinksCount!=null&&o.hasOwnProperty("droppedLinksCount")&&(u.droppedLinksCount=o.droppedLinksCount),o.status!=null&&o.hasOwnProperty("status")&&(u.status=d.opentelemetry.proto.trace.v1.Status.toObject(o.status,r)),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.Span"},a.SpanKind=function(){var s={},o=Object.create(s);return o[s[0]="SPAN_KIND_UNSPECIFIED"]=0,o[s[1]="SPAN_KIND_INTERNAL"]=1,o[s[2]="SPAN_KIND_SERVER"]=2,o[s[3]="SPAN_KIND_CLIENT"]=3,o[s[4]="SPAN_KIND_PRODUCER"]=4,o[s[5]="SPAN_KIND_CONSUMER"]=5,o}(),a.Event=function(){function s(o){if(this.attributes=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.timeUnixNano=null,s.prototype.name=null,s.prototype.attributes=E.emptyArray,s.prototype.droppedAttributesCount=null,s.create=function(r){return new s(r)},s.encode=function(r,u){if(u||(u=V.create()),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&u.uint32(9).fixed64(r.timeUnixNano),r.name!=null&&Object.hasOwnProperty.call(r,"name")&&u.uint32(18).string(r.name),r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],u.uint32(26).fork()).ldelim();return r.droppedAttributesCount!=null&&Object.hasOwnProperty.call(r,"droppedAttributesCount")&&u.uint32(32).uint32(r.droppedAttributesCount),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.trace.v1.Span.Event;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.timeUnixNano=r.fixed64();break}case 2:{c.name=r.string();break}case 3:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 4:{c.droppedAttributesCount=r.uint32();break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!E.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&E.isInteger(r.timeUnixNano.low)&&E.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.name!=null&&r.hasOwnProperty("name")&&!E.isString(r.name))return"name: string expected";if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var u=0;u<r.attributes.length;++u){var l=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[u]);if(l)return"attributes."+l}}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(r.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.trace.v1.Span.Event)return r;var u=new d.opentelemetry.proto.trace.v1.Span.Event;if(r.timeUnixNano!=null&&(E.Long?(u.timeUnixNano=E.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?u.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?u.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(u.timeUnixNano=new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.name!=null&&(u.name=String(r.name)),r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: array expected");u.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: object expected");u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}return r.droppedAttributesCount!=null&&(u.droppedAttributesCount=r.droppedAttributesCount>>>0),u},s.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.attributes=[]),u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.timeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.timeUnixNano=u.longs===String?"0":0;l.name="",l.droppedAttributesCount=0}if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=u.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.timeUnixNano):u.longs===Number?new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.name!=null&&r.hasOwnProperty("name")&&(l.name=r.name),r.attributes&&r.attributes.length){l.attributes=[];for(var p=0;p<r.attributes.length;++p)l.attributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[p],u)}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&(l.droppedAttributesCount=r.droppedAttributesCount),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.trace.v1.Span.Event"},s}(),a.Link=function(){function s(o){if(this.attributes=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.traceId=null,s.prototype.spanId=null,s.prototype.traceState=null,s.prototype.attributes=E.emptyArray,s.prototype.droppedAttributesCount=null,s.create=function(r){return new s(r)},s.encode=function(r,u){if(u||(u=V.create()),r.traceId!=null&&Object.hasOwnProperty.call(r,"traceId")&&u.uint32(10).bytes(r.traceId),r.spanId!=null&&Object.hasOwnProperty.call(r,"spanId")&&u.uint32(18).bytes(r.spanId),r.traceState!=null&&Object.hasOwnProperty.call(r,"traceState")&&u.uint32(26).string(r.traceState),r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],u.uint32(34).fork()).ldelim();return r.droppedAttributesCount!=null&&Object.hasOwnProperty.call(r,"droppedAttributesCount")&&u.uint32(40).uint32(r.droppedAttributesCount),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.trace.v1.Span.Link;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.traceId=r.bytes();break}case 2:{c.spanId=r.bytes();break}case 3:{c.traceState=r.string();break}case 4:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 5:{c.droppedAttributesCount=r.uint32();break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.traceId!=null&&r.hasOwnProperty("traceId")&&!(r.traceId&&typeof r.traceId.length=="number"||E.isString(r.traceId)))return"traceId: buffer expected";if(r.spanId!=null&&r.hasOwnProperty("spanId")&&!(r.spanId&&typeof r.spanId.length=="number"||E.isString(r.spanId)))return"spanId: buffer expected";if(r.traceState!=null&&r.hasOwnProperty("traceState")&&!E.isString(r.traceState))return"traceState: string expected";if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var u=0;u<r.attributes.length;++u){var l=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[u]);if(l)return"attributes."+l}}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(r.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.trace.v1.Span.Link)return r;var u=new d.opentelemetry.proto.trace.v1.Span.Link;if(r.traceId!=null&&(typeof r.traceId=="string"?E.base64.decode(r.traceId,u.traceId=E.newBuffer(E.base64.length(r.traceId)),0):r.traceId.length>=0&&(u.traceId=r.traceId)),r.spanId!=null&&(typeof r.spanId=="string"?E.base64.decode(r.spanId,u.spanId=E.newBuffer(E.base64.length(r.spanId)),0):r.spanId.length>=0&&(u.spanId=r.spanId)),r.traceState!=null&&(u.traceState=String(r.traceState)),r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: array expected");u.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: object expected");u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}return r.droppedAttributesCount!=null&&(u.droppedAttributesCount=r.droppedAttributesCount>>>0),u},s.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.attributes=[]),u.defaults&&(u.bytes===String?l.traceId="":(l.traceId=[],u.bytes!==Array&&(l.traceId=E.newBuffer(l.traceId))),u.bytes===String?l.spanId="":(l.spanId=[],u.bytes!==Array&&(l.spanId=E.newBuffer(l.spanId))),l.traceState="",l.droppedAttributesCount=0),r.traceId!=null&&r.hasOwnProperty("traceId")&&(l.traceId=u.bytes===String?E.base64.encode(r.traceId,0,r.traceId.length):u.bytes===Array?Array.prototype.slice.call(r.traceId):r.traceId),r.spanId!=null&&r.hasOwnProperty("spanId")&&(l.spanId=u.bytes===String?E.base64.encode(r.spanId,0,r.spanId.length):u.bytes===Array?Array.prototype.slice.call(r.spanId):r.spanId),r.traceState!=null&&r.hasOwnProperty("traceState")&&(l.traceState=r.traceState),r.attributes&&r.attributes.length){l.attributes=[];for(var c=0;c<r.attributes.length;++c)l.attributes[c]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[c],u)}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&(l.droppedAttributesCount=r.droppedAttributesCount),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.trace.v1.Span.Link"},s}(),a}(),i.Status=function(){function a(s){if(s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.message=null,a.prototype.code=null,a.create=function(o){return new a(o)},a.encode=function(o,r){return r||(r=V.create()),o.message!=null&&Object.hasOwnProperty.call(o,"message")&&r.uint32(18).string(o.message),o.code!=null&&Object.hasOwnProperty.call(o,"code")&&r.uint32(24).int32(o.code),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.trace.v1.Status;o.pos<u;){var c=o.uint32();switch(c>>>3){case 2:{l.message=o.string();break}case 3:{l.code=o.int32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.message!=null&&o.hasOwnProperty("message")&&!E.isString(o.message))return"message: string expected";if(o.code!=null&&o.hasOwnProperty("code"))switch(o.code){default:return"code: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.trace.v1.Status)return o;var r=new d.opentelemetry.proto.trace.v1.Status;switch(o.message!=null&&(r.message=String(o.message)),o.code){default:if(typeof o.code=="number"){r.code=o.code;break}break;case"STATUS_CODE_UNSET":case 0:r.code=0;break;case"STATUS_CODE_OK":case 1:r.code=1;break;case"STATUS_CODE_ERROR":case 2:r.code=2;break}return r},a.toObject=function(o,r){r||(r={});var u={};return r.defaults&&(u.message="",u.code=r.enums===String?"STATUS_CODE_UNSET":0),o.message!=null&&o.hasOwnProperty("message")&&(u.message=o.message),o.code!=null&&o.hasOwnProperty("code")&&(u.code=r.enums===String?d.opentelemetry.proto.trace.v1.Status.StatusCode[o.code]===void 0?o.code:d.opentelemetry.proto.trace.v1.Status.StatusCode[o.code]:o.code),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.Status"},a.StatusCode=function(){var s={},o=Object.create(s);return o[s[0]="STATUS_CODE_UNSET"]=0,o[s[1]="STATUS_CODE_OK"]=1,o[s[2]="STATUS_CODE_ERROR"]=2,o}(),a}(),i}(),n}(),e.collector=function(){var n={};return n.trace=function(){var i={};return i.v1=function(){var a={};return a.TraceService=function(){function s(o,r,u){I.rpc.Service.call(this,o,r,u)}return(s.prototype=Object.create(I.rpc.Service.prototype)).constructor=s,s.create=function(r,u,l){return new this(r,u,l)},Object.defineProperty(s.prototype.export=function o(r,u){return this.rpcCall(o,d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,r,u)},"name",{value:"Export"}),s}(),a.ExportTraceServiceRequest=function(){function s(o){if(this.resourceSpans=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.resourceSpans=E.emptyArray,s.create=function(r){return new s(r)},s.encode=function(r,u){if(u||(u=V.create()),r.resourceSpans!=null&&r.resourceSpans.length)for(var l=0;l<r.resourceSpans.length;++l)d.opentelemetry.proto.trace.v1.ResourceSpans.encode(r.resourceSpans[l],u.uint32(10).fork()).ldelim();return u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.resourceSpans&&c.resourceSpans.length||(c.resourceSpans=[]),c.resourceSpans.push(d.opentelemetry.proto.trace.v1.ResourceSpans.decode(r,r.uint32()));break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.resourceSpans!=null&&r.hasOwnProperty("resourceSpans")){if(!Array.isArray(r.resourceSpans))return"resourceSpans: array expected";for(var u=0;u<r.resourceSpans.length;++u){var l=d.opentelemetry.proto.trace.v1.ResourceSpans.verify(r.resourceSpans[u]);if(l)return"resourceSpans."+l}}return null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest)return r;var u=new d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;if(r.resourceSpans){if(!Array.isArray(r.resourceSpans))throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: array expected");u.resourceSpans=[];for(var l=0;l<r.resourceSpans.length;++l){if(typeof r.resourceSpans[l]!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: object expected");u.resourceSpans[l]=d.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(r.resourceSpans[l])}}return u},s.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.resourceSpans=[]),r.resourceSpans&&r.resourceSpans.length){l.resourceSpans=[];for(var c=0;c<r.resourceSpans.length;++c)l.resourceSpans[c]=d.opentelemetry.proto.trace.v1.ResourceSpans.toObject(r.resourceSpans[c],u)}return l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest"},s}(),a.ExportTraceServiceResponse=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.partialSuccess=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.partialSuccess!=null&&Object.hasOwnProperty.call(r,"partialSuccess")&&d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.encode(r.partialSuccess,u.uint32(10).fork()).ldelim(),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.partialSuccess=d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.decode(r,r.uint32());break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")){var u=d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.verify(r.partialSuccess);if(u)return"partialSuccess."+u}return null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse)return r;var u=new d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;if(r.partialSuccess!=null){if(typeof r.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse.partialSuccess: object expected");u.partialSuccess=d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.fromObject(r.partialSuccess)}return u},s.toObject=function(r,u){u||(u={});var l={};return u.defaults&&(l.partialSuccess=null),r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")&&(l.partialSuccess=d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.toObject(r.partialSuccess,u)),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse"},s}(),a.ExportTracePartialSuccess=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.rejectedSpans=null,s.prototype.errorMessage=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.rejectedSpans!=null&&Object.hasOwnProperty.call(r,"rejectedSpans")&&u.uint32(8).int64(r.rejectedSpans),r.errorMessage!=null&&Object.hasOwnProperty.call(r,"errorMessage")&&u.uint32(18).string(r.errorMessage),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.rejectedSpans=r.int64();break}case 2:{c.errorMessage=r.string();break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){return typeof r!="object"||r===null?"object expected":r.rejectedSpans!=null&&r.hasOwnProperty("rejectedSpans")&&!E.isInteger(r.rejectedSpans)&&!(r.rejectedSpans&&E.isInteger(r.rejectedSpans.low)&&E.isInteger(r.rejectedSpans.high))?"rejectedSpans: integer|Long expected":r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&!E.isString(r.errorMessage)?"errorMessage: string expected":null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess)return r;var u=new d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;return r.rejectedSpans!=null&&(E.Long?(u.rejectedSpans=E.Long.fromValue(r.rejectedSpans)).unsigned=!1:typeof r.rejectedSpans=="string"?u.rejectedSpans=parseInt(r.rejectedSpans,10):typeof r.rejectedSpans=="number"?u.rejectedSpans=r.rejectedSpans:typeof r.rejectedSpans=="object"&&(u.rejectedSpans=new E.LongBits(r.rejectedSpans.low>>>0,r.rejectedSpans.high>>>0).toNumber())),r.errorMessage!=null&&(u.errorMessage=String(r.errorMessage)),u},s.toObject=function(r,u){u||(u={});var l={};if(u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.rejectedSpans=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.rejectedSpans=u.longs===String?"0":0;l.errorMessage=""}return r.rejectedSpans!=null&&r.hasOwnProperty("rejectedSpans")&&(typeof r.rejectedSpans=="number"?l.rejectedSpans=u.longs===String?String(r.rejectedSpans):r.rejectedSpans:l.rejectedSpans=u.longs===String?E.Long.prototype.toString.call(r.rejectedSpans):u.longs===Number?new E.LongBits(r.rejectedSpans.low>>>0,r.rejectedSpans.high>>>0).toNumber():r.rejectedSpans),r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&(l.errorMessage=r.errorMessage),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess"},s}(),a}(),i}(),n.metrics=function(){var i={};return i.v1=function(){var a={};return a.MetricsService=function(){function s(o,r,u){I.rpc.Service.call(this,o,r,u)}return(s.prototype=Object.create(I.rpc.Service.prototype)).constructor=s,s.create=function(r,u,l){return new this(r,u,l)},Object.defineProperty(s.prototype.export=function o(r,u){return this.rpcCall(o,d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,r,u)},"name",{value:"Export"}),s}(),a.ExportMetricsServiceRequest=function(){function s(o){if(this.resourceMetrics=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.resourceMetrics=E.emptyArray,s.create=function(r){return new s(r)},s.encode=function(r,u){if(u||(u=V.create()),r.resourceMetrics!=null&&r.resourceMetrics.length)for(var l=0;l<r.resourceMetrics.length;++l)d.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(r.resourceMetrics[l],u.uint32(10).fork()).ldelim();return u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.resourceMetrics&&c.resourceMetrics.length||(c.resourceMetrics=[]),c.resourceMetrics.push(d.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(r,r.uint32()));break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.resourceMetrics!=null&&r.hasOwnProperty("resourceMetrics")){if(!Array.isArray(r.resourceMetrics))return"resourceMetrics: array expected";for(var u=0;u<r.resourceMetrics.length;++u){var l=d.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(r.resourceMetrics[u]);if(l)return"resourceMetrics."+l}}return null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest)return r;var u=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;if(r.resourceMetrics){if(!Array.isArray(r.resourceMetrics))throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: array expected");u.resourceMetrics=[];for(var l=0;l<r.resourceMetrics.length;++l){if(typeof r.resourceMetrics[l]!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: object expected");u.resourceMetrics[l]=d.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(r.resourceMetrics[l])}}return u},s.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.resourceMetrics=[]),r.resourceMetrics&&r.resourceMetrics.length){l.resourceMetrics=[];for(var c=0;c<r.resourceMetrics.length;++c)l.resourceMetrics[c]=d.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(r.resourceMetrics[c],u)}return l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest"},s}(),a.ExportMetricsServiceResponse=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.partialSuccess=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.partialSuccess!=null&&Object.hasOwnProperty.call(r,"partialSuccess")&&d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.encode(r.partialSuccess,u.uint32(10).fork()).ldelim(),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.partialSuccess=d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.decode(r,r.uint32());break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")){var u=d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.verify(r.partialSuccess);if(u)return"partialSuccess."+u}return null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse)return r;var u=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;if(r.partialSuccess!=null){if(typeof r.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse.partialSuccess: object expected");u.partialSuccess=d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.fromObject(r.partialSuccess)}return u},s.toObject=function(r,u){u||(u={});var l={};return u.defaults&&(l.partialSuccess=null),r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")&&(l.partialSuccess=d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.toObject(r.partialSuccess,u)),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse"},s}(),a.ExportMetricsPartialSuccess=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.rejectedDataPoints=null,s.prototype.errorMessage=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.rejectedDataPoints!=null&&Object.hasOwnProperty.call(r,"rejectedDataPoints")&&u.uint32(8).int64(r.rejectedDataPoints),r.errorMessage!=null&&Object.hasOwnProperty.call(r,"errorMessage")&&u.uint32(18).string(r.errorMessage),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.rejectedDataPoints=r.int64();break}case 2:{c.errorMessage=r.string();break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){return typeof r!="object"||r===null?"object expected":r.rejectedDataPoints!=null&&r.hasOwnProperty("rejectedDataPoints")&&!E.isInteger(r.rejectedDataPoints)&&!(r.rejectedDataPoints&&E.isInteger(r.rejectedDataPoints.low)&&E.isInteger(r.rejectedDataPoints.high))?"rejectedDataPoints: integer|Long expected":r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&!E.isString(r.errorMessage)?"errorMessage: string expected":null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess)return r;var u=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;return r.rejectedDataPoints!=null&&(E.Long?(u.rejectedDataPoints=E.Long.fromValue(r.rejectedDataPoints)).unsigned=!1:typeof r.rejectedDataPoints=="string"?u.rejectedDataPoints=parseInt(r.rejectedDataPoints,10):typeof r.rejectedDataPoints=="number"?u.rejectedDataPoints=r.rejectedDataPoints:typeof r.rejectedDataPoints=="object"&&(u.rejectedDataPoints=new E.LongBits(r.rejectedDataPoints.low>>>0,r.rejectedDataPoints.high>>>0).toNumber())),r.errorMessage!=null&&(u.errorMessage=String(r.errorMessage)),u},s.toObject=function(r,u){u||(u={});var l={};if(u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.rejectedDataPoints=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.rejectedDataPoints=u.longs===String?"0":0;l.errorMessage=""}return r.rejectedDataPoints!=null&&r.hasOwnProperty("rejectedDataPoints")&&(typeof r.rejectedDataPoints=="number"?l.rejectedDataPoints=u.longs===String?String(r.rejectedDataPoints):r.rejectedDataPoints:l.rejectedDataPoints=u.longs===String?E.Long.prototype.toString.call(r.rejectedDataPoints):u.longs===Number?new E.LongBits(r.rejectedDataPoints.low>>>0,r.rejectedDataPoints.high>>>0).toNumber():r.rejectedDataPoints),r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&(l.errorMessage=r.errorMessage),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess"},s}(),a}(),i}(),n.logs=function(){var i={};return i.v1=function(){var a={};return a.LogsService=function(){function s(o,r,u){I.rpc.Service.call(this,o,r,u)}return(s.prototype=Object.create(I.rpc.Service.prototype)).constructor=s,s.create=function(r,u,l){return new this(r,u,l)},Object.defineProperty(s.prototype.export=function o(r,u){return this.rpcCall(o,d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,r,u)},"name",{value:"Export"}),s}(),a.ExportLogsServiceRequest=function(){function s(o){if(this.resourceLogs=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.resourceLogs=E.emptyArray,s.create=function(r){return new s(r)},s.encode=function(r,u){if(u||(u=V.create()),r.resourceLogs!=null&&r.resourceLogs.length)for(var l=0;l<r.resourceLogs.length;++l)d.opentelemetry.proto.logs.v1.ResourceLogs.encode(r.resourceLogs[l],u.uint32(10).fork()).ldelim();return u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.resourceLogs&&c.resourceLogs.length||(c.resourceLogs=[]),c.resourceLogs.push(d.opentelemetry.proto.logs.v1.ResourceLogs.decode(r,r.uint32()));break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.resourceLogs!=null&&r.hasOwnProperty("resourceLogs")){if(!Array.isArray(r.resourceLogs))return"resourceLogs: array expected";for(var u=0;u<r.resourceLogs.length;++u){var l=d.opentelemetry.proto.logs.v1.ResourceLogs.verify(r.resourceLogs[u]);if(l)return"resourceLogs."+l}}return null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest)return r;var u=new d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;if(r.resourceLogs){if(!Array.isArray(r.resourceLogs))throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: array expected");u.resourceLogs=[];for(var l=0;l<r.resourceLogs.length;++l){if(typeof r.resourceLogs[l]!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: object expected");u.resourceLogs[l]=d.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(r.resourceLogs[l])}}return u},s.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.resourceLogs=[]),r.resourceLogs&&r.resourceLogs.length){l.resourceLogs=[];for(var c=0;c<r.resourceLogs.length;++c)l.resourceLogs[c]=d.opentelemetry.proto.logs.v1.ResourceLogs.toObject(r.resourceLogs[c],u)}return l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest"},s}(),a.ExportLogsServiceResponse=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.partialSuccess=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.partialSuccess!=null&&Object.hasOwnProperty.call(r,"partialSuccess")&&d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.encode(r.partialSuccess,u.uint32(10).fork()).ldelim(),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.partialSuccess=d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.decode(r,r.uint32());break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")){var u=d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.verify(r.partialSuccess);if(u)return"partialSuccess."+u}return null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse)return r;var u=new d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;if(r.partialSuccess!=null){if(typeof r.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse.partialSuccess: object expected");u.partialSuccess=d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.fromObject(r.partialSuccess)}return u},s.toObject=function(r,u){u||(u={});var l={};return u.defaults&&(l.partialSuccess=null),r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")&&(l.partialSuccess=d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.toObject(r.partialSuccess,u)),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse"},s}(),a.ExportLogsPartialSuccess=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.rejectedLogRecords=null,s.prototype.errorMessage=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.rejectedLogRecords!=null&&Object.hasOwnProperty.call(r,"rejectedLogRecords")&&u.uint32(8).int64(r.rejectedLogRecords),r.errorMessage!=null&&Object.hasOwnProperty.call(r,"errorMessage")&&u.uint32(18).string(r.errorMessage),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.rejectedLogRecords=r.int64();break}case 2:{c.errorMessage=r.string();break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){return typeof r!="object"||r===null?"object expected":r.rejectedLogRecords!=null&&r.hasOwnProperty("rejectedLogRecords")&&!E.isInteger(r.rejectedLogRecords)&&!(r.rejectedLogRecords&&E.isInteger(r.rejectedLogRecords.low)&&E.isInteger(r.rejectedLogRecords.high))?"rejectedLogRecords: integer|Long expected":r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&!E.isString(r.errorMessage)?"errorMessage: string expected":null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess)return r;var u=new d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;return r.rejectedLogRecords!=null&&(E.Long?(u.rejectedLogRecords=E.Long.fromValue(r.rejectedLogRecords)).unsigned=!1:typeof r.rejectedLogRecords=="string"?u.rejectedLogRecords=parseInt(r.rejectedLogRecords,10):typeof r.rejectedLogRecords=="number"?u.rejectedLogRecords=r.rejectedLogRecords:typeof r.rejectedLogRecords=="object"&&(u.rejectedLogRecords=new E.LongBits(r.rejectedLogRecords.low>>>0,r.rejectedLogRecords.high>>>0).toNumber())),r.errorMessage!=null&&(u.errorMessage=String(r.errorMessage)),u},s.toObject=function(r,u){u||(u={});var l={};if(u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.rejectedLogRecords=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.rejectedLogRecords=u.longs===String?"0":0;l.errorMessage=""}return r.rejectedLogRecords!=null&&r.hasOwnProperty("rejectedLogRecords")&&(typeof r.rejectedLogRecords=="number"?l.rejectedLogRecords=u.longs===String?String(r.rejectedLogRecords):r.rejectedLogRecords:l.rejectedLogRecords=u.longs===String?E.Long.prototype.toString.call(r.rejectedLogRecords):u.longs===Number?new E.LongBits(r.rejectedLogRecords.low>>>0,r.rejectedLogRecords.high>>>0).toNumber():r.rejectedLogRecords),r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&(l.errorMessage=r.errorMessage),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess"},s}(),a}(),i}(),n}(),e.metrics=function(){var n={};return n.v1=function(){var i={};return i.MetricsData=function(){function a(s){if(this.resourceMetrics=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.resourceMetrics=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resourceMetrics!=null&&o.resourceMetrics.length)for(var u=0;u<o.resourceMetrics.length;++u)d.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(o.resourceMetrics[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.MetricsData;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.resourceMetrics&&l.resourceMetrics.length||(l.resourceMetrics=[]),l.resourceMetrics.push(d.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resourceMetrics!=null&&o.hasOwnProperty("resourceMetrics")){if(!Array.isArray(o.resourceMetrics))return"resourceMetrics: array expected";for(var r=0;r<o.resourceMetrics.length;++r){var u=d.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(o.resourceMetrics[r]);if(u)return"resourceMetrics."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.MetricsData)return o;var r=new d.opentelemetry.proto.metrics.v1.MetricsData;if(o.resourceMetrics){if(!Array.isArray(o.resourceMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: array expected");r.resourceMetrics=[];for(var u=0;u<o.resourceMetrics.length;++u){if(typeof o.resourceMetrics[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: object expected");r.resourceMetrics[u]=d.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(o.resourceMetrics[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.resourceMetrics=[]),o.resourceMetrics&&o.resourceMetrics.length){u.resourceMetrics=[];for(var l=0;l<o.resourceMetrics.length;++l)u.resourceMetrics[l]=d.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(o.resourceMetrics[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.MetricsData"},a}(),i.ResourceMetrics=function(){function a(s){if(this.scopeMetrics=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.resource=null,a.prototype.scopeMetrics=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resource!=null&&Object.hasOwnProperty.call(o,"resource")&&d.opentelemetry.proto.resource.v1.Resource.encode(o.resource,r.uint32(10).fork()).ldelim(),o.scopeMetrics!=null&&o.scopeMetrics.length)for(var u=0;u<o.scopeMetrics.length;++u)d.opentelemetry.proto.metrics.v1.ScopeMetrics.encode(o.scopeMetrics[u],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.ResourceMetrics;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.resource=d.opentelemetry.proto.resource.v1.Resource.decode(o,o.uint32());break}case 2:{l.scopeMetrics&&l.scopeMetrics.length||(l.scopeMetrics=[]),l.scopeMetrics.push(d.opentelemetry.proto.metrics.v1.ScopeMetrics.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resource!=null&&o.hasOwnProperty("resource")){var r=d.opentelemetry.proto.resource.v1.Resource.verify(o.resource);if(r)return"resource."+r}if(o.scopeMetrics!=null&&o.hasOwnProperty("scopeMetrics")){if(!Array.isArray(o.scopeMetrics))return"scopeMetrics: array expected";for(var u=0;u<o.scopeMetrics.length;++u){var r=d.opentelemetry.proto.metrics.v1.ScopeMetrics.verify(o.scopeMetrics[u]);if(r)return"scopeMetrics."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.ResourceMetrics)return o;var r=new d.opentelemetry.proto.metrics.v1.ResourceMetrics;if(o.resource!=null){if(typeof o.resource!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.resource: object expected");r.resource=d.opentelemetry.proto.resource.v1.Resource.fromObject(o.resource)}if(o.scopeMetrics){if(!Array.isArray(o.scopeMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: array expected");r.scopeMetrics=[];for(var u=0;u<o.scopeMetrics.length;++u){if(typeof o.scopeMetrics[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: object expected");r.scopeMetrics[u]=d.opentelemetry.proto.metrics.v1.ScopeMetrics.fromObject(o.scopeMetrics[u])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.scopeMetrics=[]),r.defaults&&(u.resource=null,u.schemaUrl=""),o.resource!=null&&o.hasOwnProperty("resource")&&(u.resource=d.opentelemetry.proto.resource.v1.Resource.toObject(o.resource,r)),o.scopeMetrics&&o.scopeMetrics.length){u.scopeMetrics=[];for(var l=0;l<o.scopeMetrics.length;++l)u.scopeMetrics[l]=d.opentelemetry.proto.metrics.v1.ScopeMetrics.toObject(o.scopeMetrics[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(u.schemaUrl=o.schemaUrl),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.ResourceMetrics"},a}(),i.ScopeMetrics=function(){function a(s){if(this.metrics=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.scope=null,a.prototype.metrics=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.scope!=null&&Object.hasOwnProperty.call(o,"scope")&&d.opentelemetry.proto.common.v1.InstrumentationScope.encode(o.scope,r.uint32(10).fork()).ldelim(),o.metrics!=null&&o.metrics.length)for(var u=0;u<o.metrics.length;++u)d.opentelemetry.proto.metrics.v1.Metric.encode(o.metrics[u],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.ScopeMetrics;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.decode(o,o.uint32());break}case 2:{l.metrics&&l.metrics.length||(l.metrics=[]),l.metrics.push(d.opentelemetry.proto.metrics.v1.Metric.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.scope!=null&&o.hasOwnProperty("scope")){var r=d.opentelemetry.proto.common.v1.InstrumentationScope.verify(o.scope);if(r)return"scope."+r}if(o.metrics!=null&&o.hasOwnProperty("metrics")){if(!Array.isArray(o.metrics))return"metrics: array expected";for(var u=0;u<o.metrics.length;++u){var r=d.opentelemetry.proto.metrics.v1.Metric.verify(o.metrics[u]);if(r)return"metrics."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.ScopeMetrics)return o;var r=new d.opentelemetry.proto.metrics.v1.ScopeMetrics;if(o.scope!=null){if(typeof o.scope!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.scope: object expected");r.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(o.scope)}if(o.metrics){if(!Array.isArray(o.metrics))throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: array expected");r.metrics=[];for(var u=0;u<o.metrics.length;++u){if(typeof o.metrics[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: object expected");r.metrics[u]=d.opentelemetry.proto.metrics.v1.Metric.fromObject(o.metrics[u])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.metrics=[]),r.defaults&&(u.scope=null,u.schemaUrl=""),o.scope!=null&&o.hasOwnProperty("scope")&&(u.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.toObject(o.scope,r)),o.metrics&&o.metrics.length){u.metrics=[];for(var l=0;l<o.metrics.length;++l)u.metrics[l]=d.opentelemetry.proto.metrics.v1.Metric.toObject(o.metrics[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(u.schemaUrl=o.schemaUrl),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.ScopeMetrics"},a}(),i.Metric=function(){function a(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}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 s;return Object.defineProperty(a.prototype,"data",{get:E.oneOfGetter(s=["gauge","sum","histogram","exponentialHistogram","summary"]),set:E.oneOfSetter(s)}),a.create=function(r){return new a(r)},a.encode=function(r,u){return u||(u=V.create()),r.name!=null&&Object.hasOwnProperty.call(r,"name")&&u.uint32(10).string(r.name),r.description!=null&&Object.hasOwnProperty.call(r,"description")&&u.uint32(18).string(r.description),r.unit!=null&&Object.hasOwnProperty.call(r,"unit")&&u.uint32(26).string(r.unit),r.gauge!=null&&Object.hasOwnProperty.call(r,"gauge")&&d.opentelemetry.proto.metrics.v1.Gauge.encode(r.gauge,u.uint32(42).fork()).ldelim(),r.sum!=null&&Object.hasOwnProperty.call(r,"sum")&&d.opentelemetry.proto.metrics.v1.Sum.encode(r.sum,u.uint32(58).fork()).ldelim(),r.histogram!=null&&Object.hasOwnProperty.call(r,"histogram")&&d.opentelemetry.proto.metrics.v1.Histogram.encode(r.histogram,u.uint32(74).fork()).ldelim(),r.exponentialHistogram!=null&&Object.hasOwnProperty.call(r,"exponentialHistogram")&&d.opentelemetry.proto.metrics.v1.ExponentialHistogram.encode(r.exponentialHistogram,u.uint32(82).fork()).ldelim(),r.summary!=null&&Object.hasOwnProperty.call(r,"summary")&&d.opentelemetry.proto.metrics.v1.Summary.encode(r.summary,u.uint32(90).fork()).ldelim(),u},a.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},a.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.metrics.v1.Metric;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.name=r.string();break}case 2:{c.description=r.string();break}case 3:{c.unit=r.string();break}case 5:{c.gauge=d.opentelemetry.proto.metrics.v1.Gauge.decode(r,r.uint32());break}case 7:{c.sum=d.opentelemetry.proto.metrics.v1.Sum.decode(r,r.uint32());break}case 9:{c.histogram=d.opentelemetry.proto.metrics.v1.Histogram.decode(r,r.uint32());break}case 10:{c.exponentialHistogram=d.opentelemetry.proto.metrics.v1.ExponentialHistogram.decode(r,r.uint32());break}case 11:{c.summary=d.opentelemetry.proto.metrics.v1.Summary.decode(r,r.uint32());break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var u={};if(r.name!=null&&r.hasOwnProperty("name")&&!E.isString(r.name))return"name: string expected";if(r.description!=null&&r.hasOwnProperty("description")&&!E.isString(r.description))return"description: string expected";if(r.unit!=null&&r.hasOwnProperty("unit")&&!E.isString(r.unit))return"unit: string expected";if(r.gauge!=null&&r.hasOwnProperty("gauge")){u.data=1;{var l=d.opentelemetry.proto.metrics.v1.Gauge.verify(r.gauge);if(l)return"gauge."+l}}if(r.sum!=null&&r.hasOwnProperty("sum")){if(u.data===1)return"data: multiple values";u.data=1;{var l=d.opentelemetry.proto.metrics.v1.Sum.verify(r.sum);if(l)return"sum."+l}}if(r.histogram!=null&&r.hasOwnProperty("histogram")){if(u.data===1)return"data: multiple values";u.data=1;{var l=d.opentelemetry.proto.metrics.v1.Histogram.verify(r.histogram);if(l)return"histogram."+l}}if(r.exponentialHistogram!=null&&r.hasOwnProperty("exponentialHistogram")){if(u.data===1)return"data: multiple values";u.data=1;{var l=d.opentelemetry.proto.metrics.v1.ExponentialHistogram.verify(r.exponentialHistogram);if(l)return"exponentialHistogram."+l}}if(r.summary!=null&&r.hasOwnProperty("summary")){if(u.data===1)return"data: multiple values";u.data=1;{var l=d.opentelemetry.proto.metrics.v1.Summary.verify(r.summary);if(l)return"summary."+l}}return null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.Metric)return r;var u=new d.opentelemetry.proto.metrics.v1.Metric;if(r.name!=null&&(u.name=String(r.name)),r.description!=null&&(u.description=String(r.description)),r.unit!=null&&(u.unit=String(r.unit)),r.gauge!=null){if(typeof r.gauge!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.gauge: object expected");u.gauge=d.opentelemetry.proto.metrics.v1.Gauge.fromObject(r.gauge)}if(r.sum!=null){if(typeof r.sum!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.sum: object expected");u.sum=d.opentelemetry.proto.metrics.v1.Sum.fromObject(r.sum)}if(r.histogram!=null){if(typeof r.histogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.histogram: object expected");u.histogram=d.opentelemetry.proto.metrics.v1.Histogram.fromObject(r.histogram)}if(r.exponentialHistogram!=null){if(typeof r.exponentialHistogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.exponentialHistogram: object expected");u.exponentialHistogram=d.opentelemetry.proto.metrics.v1.ExponentialHistogram.fromObject(r.exponentialHistogram)}if(r.summary!=null){if(typeof r.summary!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.summary: object expected");u.summary=d.opentelemetry.proto.metrics.v1.Summary.fromObject(r.summary)}return u},a.toObject=function(r,u){u||(u={});var l={};return u.defaults&&(l.name="",l.description="",l.unit=""),r.name!=null&&r.hasOwnProperty("name")&&(l.name=r.name),r.description!=null&&r.hasOwnProperty("description")&&(l.description=r.description),r.unit!=null&&r.hasOwnProperty("unit")&&(l.unit=r.unit),r.gauge!=null&&r.hasOwnProperty("gauge")&&(l.gauge=d.opentelemetry.proto.metrics.v1.Gauge.toObject(r.gauge,u),u.oneofs&&(l.data="gauge")),r.sum!=null&&r.hasOwnProperty("sum")&&(l.sum=d.opentelemetry.proto.metrics.v1.Sum.toObject(r.sum,u),u.oneofs&&(l.data="sum")),r.histogram!=null&&r.hasOwnProperty("histogram")&&(l.histogram=d.opentelemetry.proto.metrics.v1.Histogram.toObject(r.histogram,u),u.oneofs&&(l.data="histogram")),r.exponentialHistogram!=null&&r.hasOwnProperty("exponentialHistogram")&&(l.exponentialHistogram=d.opentelemetry.proto.metrics.v1.ExponentialHistogram.toObject(r.exponentialHistogram,u),u.oneofs&&(l.data="exponentialHistogram")),r.summary!=null&&r.hasOwnProperty("summary")&&(l.summary=d.opentelemetry.proto.metrics.v1.Summary.toObject(r.summary,u),u.oneofs&&(l.data="summary")),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.Metric"},a}(),i.Gauge=function(){function a(s){if(this.dataPoints=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.dataPoints=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.dataPoints!=null&&o.dataPoints.length)for(var u=0;u<o.dataPoints.length;++u)d.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(o.dataPoints[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.Gauge;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var u=d.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(o.dataPoints[r]);if(u)return"dataPoints."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.Gauge)return o;var r=new d.opentelemetry.proto.metrics.v1.Gauge;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: array expected");r.dataPoints=[];for(var u=0;u<o.dataPoints.length;++u){if(typeof o.dataPoints[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: object expected");r.dataPoints[u]=d.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(o.dataPoints[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.dataPoints=[]),o.dataPoints&&o.dataPoints.length){u.dataPoints=[];for(var l=0;l<o.dataPoints.length;++l)u.dataPoints[l]=d.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(o.dataPoints[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.Gauge"},a}(),i.Sum=function(){function a(s){if(this.dataPoints=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.dataPoints=E.emptyArray,a.prototype.aggregationTemporality=null,a.prototype.isMonotonic=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.dataPoints!=null&&o.dataPoints.length)for(var u=0;u<o.dataPoints.length;++u)d.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(o.dataPoints[u],r.uint32(10).fork()).ldelim();return o.aggregationTemporality!=null&&Object.hasOwnProperty.call(o,"aggregationTemporality")&&r.uint32(16).int32(o.aggregationTemporality),o.isMonotonic!=null&&Object.hasOwnProperty.call(o,"isMonotonic")&&r.uint32(24).bool(o.isMonotonic),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.Sum;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(o,o.uint32()));break}case 2:{l.aggregationTemporality=o.int32();break}case 3:{l.isMonotonic=o.bool();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var u=d.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(o.dataPoints[r]);if(u)return"dataPoints."+u}}if(o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality"))switch(o.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return o.isMonotonic!=null&&o.hasOwnProperty("isMonotonic")&&typeof o.isMonotonic!="boolean"?"isMonotonic: boolean expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.Sum)return o;var r=new d.opentelemetry.proto.metrics.v1.Sum;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: array expected");r.dataPoints=[];for(var u=0;u<o.dataPoints.length;++u){if(typeof o.dataPoints[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: object expected");r.dataPoints[u]=d.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(o.dataPoints[u])}}switch(o.aggregationTemporality){default:if(typeof o.aggregationTemporality=="number"){r.aggregationTemporality=o.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:r.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:r.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:r.aggregationTemporality=2;break}return o.isMonotonic!=null&&(r.isMonotonic=!!o.isMonotonic),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.dataPoints=[]),r.defaults&&(u.aggregationTemporality=r.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0,u.isMonotonic=!1),o.dataPoints&&o.dataPoints.length){u.dataPoints=[];for(var l=0;l<o.dataPoints.length;++l)u.dataPoints[l]=d.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(o.dataPoints[l],r)}return o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality")&&(u.aggregationTemporality=r.enums===String?d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]===void 0?o.aggregationTemporality:d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]:o.aggregationTemporality),o.isMonotonic!=null&&o.hasOwnProperty("isMonotonic")&&(u.isMonotonic=o.isMonotonic),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.Sum"},a}(),i.Histogram=function(){function a(s){if(this.dataPoints=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.dataPoints=E.emptyArray,a.prototype.aggregationTemporality=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.dataPoints!=null&&o.dataPoints.length)for(var u=0;u<o.dataPoints.length;++u)d.opentelemetry.proto.metrics.v1.HistogramDataPoint.encode(o.dataPoints[u],r.uint32(10).fork()).ldelim();return o.aggregationTemporality!=null&&Object.hasOwnProperty.call(o,"aggregationTemporality")&&r.uint32(16).int32(o.aggregationTemporality),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.Histogram;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.HistogramDataPoint.decode(o,o.uint32()));break}case 2:{l.aggregationTemporality=o.int32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var u=d.opentelemetry.proto.metrics.v1.HistogramDataPoint.verify(o.dataPoints[r]);if(u)return"dataPoints."+u}}if(o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality"))switch(o.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.Histogram)return o;var r=new d.opentelemetry.proto.metrics.v1.Histogram;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: array expected");r.dataPoints=[];for(var u=0;u<o.dataPoints.length;++u){if(typeof o.dataPoints[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: object expected");r.dataPoints[u]=d.opentelemetry.proto.metrics.v1.HistogramDataPoint.fromObject(o.dataPoints[u])}}switch(o.aggregationTemporality){default:if(typeof o.aggregationTemporality=="number"){r.aggregationTemporality=o.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:r.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:r.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:r.aggregationTemporality=2;break}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.dataPoints=[]),r.defaults&&(u.aggregationTemporality=r.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),o.dataPoints&&o.dataPoints.length){u.dataPoints=[];for(var l=0;l<o.dataPoints.length;++l)u.dataPoints[l]=d.opentelemetry.proto.metrics.v1.HistogramDataPoint.toObject(o.dataPoints[l],r)}return o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality")&&(u.aggregationTemporality=r.enums===String?d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]===void 0?o.aggregationTemporality:d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]:o.aggregationTemporality),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.Histogram"},a}(),i.ExponentialHistogram=function(){function a(s){if(this.dataPoints=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.dataPoints=E.emptyArray,a.prototype.aggregationTemporality=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.dataPoints!=null&&o.dataPoints.length)for(var u=0;u<o.dataPoints.length;++u)d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.encode(o.dataPoints[u],r.uint32(10).fork()).ldelim();return o.aggregationTemporality!=null&&Object.hasOwnProperty.call(o,"aggregationTemporality")&&r.uint32(16).int32(o.aggregationTemporality),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.ExponentialHistogram;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.decode(o,o.uint32()));break}case 2:{l.aggregationTemporality=o.int32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var u=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.verify(o.dataPoints[r]);if(u)return"dataPoints."+u}}if(o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality"))switch(o.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.ExponentialHistogram)return o;var r=new d.opentelemetry.proto.metrics.v1.ExponentialHistogram;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: array expected");r.dataPoints=[];for(var u=0;u<o.dataPoints.length;++u){if(typeof o.dataPoints[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: object expected");r.dataPoints[u]=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.fromObject(o.dataPoints[u])}}switch(o.aggregationTemporality){default:if(typeof o.aggregationTemporality=="number"){r.aggregationTemporality=o.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:r.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:r.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:r.aggregationTemporality=2;break}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.dataPoints=[]),r.defaults&&(u.aggregationTemporality=r.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),o.dataPoints&&o.dataPoints.length){u.dataPoints=[];for(var l=0;l<o.dataPoints.length;++l)u.dataPoints[l]=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.toObject(o.dataPoints[l],r)}return o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality")&&(u.aggregationTemporality=r.enums===String?d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]===void 0?o.aggregationTemporality:d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]:o.aggregationTemporality),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.ExponentialHistogram"},a}(),i.Summary=function(){function a(s){if(this.dataPoints=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.dataPoints=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.dataPoints!=null&&o.dataPoints.length)for(var u=0;u<o.dataPoints.length;++u)d.opentelemetry.proto.metrics.v1.SummaryDataPoint.encode(o.dataPoints[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.Summary;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.SummaryDataPoint.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var u=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.verify(o.dataPoints[r]);if(u)return"dataPoints."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.Summary)return o;var r=new d.opentelemetry.proto.metrics.v1.Summary;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: array expected");r.dataPoints=[];for(var u=0;u<o.dataPoints.length;++u){if(typeof o.dataPoints[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: object expected");r.dataPoints[u]=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.fromObject(o.dataPoints[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.dataPoints=[]),o.dataPoints&&o.dataPoints.length){u.dataPoints=[];for(var l=0;l<o.dataPoints.length;++l)u.dataPoints[l]=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.toObject(o.dataPoints[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.Summary"},a}(),i.AggregationTemporality=function(){var a={},s=Object.create(a);return s[a[0]="AGGREGATION_TEMPORALITY_UNSPECIFIED"]=0,s[a[1]="AGGREGATION_TEMPORALITY_DELTA"]=1,s[a[2]="AGGREGATION_TEMPORALITY_CUMULATIVE"]=2,s}(),i.DataPointFlags=function(){var a={},s=Object.create(a);return s[a[0]="DATA_POINT_FLAGS_DO_NOT_USE"]=0,s[a[1]="DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK"]=1,s}(),i.NumberDataPoint=function(){function a(o){if(this.attributes=[],this.exemplars=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}a.prototype.attributes=E.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.asDouble=null,a.prototype.asInt=null,a.prototype.exemplars=E.emptyArray,a.prototype.flags=null;var s;return Object.defineProperty(a.prototype,"value",{get:E.oneOfGetter(s=["asDouble","asInt"]),set:E.oneOfSetter(s)}),a.create=function(r){return new a(r)},a.encode=function(r,u){if(u||(u=V.create()),r.startTimeUnixNano!=null&&Object.hasOwnProperty.call(r,"startTimeUnixNano")&&u.uint32(17).fixed64(r.startTimeUnixNano),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&u.uint32(25).fixed64(r.timeUnixNano),r.asDouble!=null&&Object.hasOwnProperty.call(r,"asDouble")&&u.uint32(33).double(r.asDouble),r.exemplars!=null&&r.exemplars.length)for(var l=0;l<r.exemplars.length;++l)d.opentelemetry.proto.metrics.v1.Exemplar.encode(r.exemplars[l],u.uint32(42).fork()).ldelim();if(r.asInt!=null&&Object.hasOwnProperty.call(r,"asInt")&&u.uint32(49).sfixed64(r.asInt),r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],u.uint32(58).fork()).ldelim();return r.flags!=null&&Object.hasOwnProperty.call(r,"flags")&&u.uint32(64).uint32(r.flags),u},a.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},a.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.metrics.v1.NumberDataPoint;r.pos<l;){var p=r.uint32();switch(p>>>3){case 7:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 2:{c.startTimeUnixNano=r.fixed64();break}case 3:{c.timeUnixNano=r.fixed64();break}case 4:{c.asDouble=r.double();break}case 6:{c.asInt=r.sfixed64();break}case 5:{c.exemplars&&c.exemplars.length||(c.exemplars=[]),c.exemplars.push(d.opentelemetry.proto.metrics.v1.Exemplar.decode(r,r.uint32()));break}case 8:{c.flags=r.uint32();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var u={};if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var l=0;l<r.attributes.length;++l){var c=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[l]);if(c)return"attributes."+c}}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&!E.isInteger(r.startTimeUnixNano)&&!(r.startTimeUnixNano&&E.isInteger(r.startTimeUnixNano.low)&&E.isInteger(r.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!E.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&E.isInteger(r.timeUnixNano.low)&&E.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.asDouble!=null&&r.hasOwnProperty("asDouble")&&(u.value=1,typeof r.asDouble!="number"))return"asDouble: number expected";if(r.asInt!=null&&r.hasOwnProperty("asInt")){if(u.value===1)return"value: multiple values";if(u.value=1,!E.isInteger(r.asInt)&&!(r.asInt&&E.isInteger(r.asInt.low)&&E.isInteger(r.asInt.high)))return"asInt: integer|Long expected"}if(r.exemplars!=null&&r.hasOwnProperty("exemplars")){if(!Array.isArray(r.exemplars))return"exemplars: array expected";for(var l=0;l<r.exemplars.length;++l){var c=d.opentelemetry.proto.metrics.v1.Exemplar.verify(r.exemplars[l]);if(c)return"exemplars."+c}}return r.flags!=null&&r.hasOwnProperty("flags")&&!E.isInteger(r.flags)?"flags: integer expected":null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.NumberDataPoint)return r;var u=new d.opentelemetry.proto.metrics.v1.NumberDataPoint;if(r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: array expected");u.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: object expected");u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}if(r.startTimeUnixNano!=null&&(E.Long?(u.startTimeUnixNano=E.Long.fromValue(r.startTimeUnixNano)).unsigned=!1:typeof r.startTimeUnixNano=="string"?u.startTimeUnixNano=parseInt(r.startTimeUnixNano,10):typeof r.startTimeUnixNano=="number"?u.startTimeUnixNano=r.startTimeUnixNano:typeof r.startTimeUnixNano=="object"&&(u.startTimeUnixNano=new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber())),r.timeUnixNano!=null&&(E.Long?(u.timeUnixNano=E.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?u.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?u.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(u.timeUnixNano=new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.asDouble!=null&&(u.asDouble=Number(r.asDouble)),r.asInt!=null&&(E.Long?(u.asInt=E.Long.fromValue(r.asInt)).unsigned=!1:typeof r.asInt=="string"?u.asInt=parseInt(r.asInt,10):typeof r.asInt=="number"?u.asInt=r.asInt:typeof r.asInt=="object"&&(u.asInt=new E.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber())),r.exemplars){if(!Array.isArray(r.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: array expected");u.exemplars=[];for(var l=0;l<r.exemplars.length;++l){if(typeof r.exemplars[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: object expected");u.exemplars[l]=d.opentelemetry.proto.metrics.v1.Exemplar.fromObject(r.exemplars[l])}}return r.flags!=null&&(u.flags=r.flags>>>0),u},a.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.exemplars=[],l.attributes=[]),u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.startTimeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.startTimeUnixNano=u.longs===String?"0":0;if(E.Long){var c=new E.Long(0,0,!1);l.timeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.timeUnixNano=u.longs===String?"0":0;l.flags=0}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&(typeof r.startTimeUnixNano=="number"?l.startTimeUnixNano=u.longs===String?String(r.startTimeUnixNano):r.startTimeUnixNano:l.startTimeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.startTimeUnixNano):u.longs===Number?new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber():r.startTimeUnixNano),r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=u.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.timeUnixNano):u.longs===Number?new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.asDouble!=null&&r.hasOwnProperty("asDouble")&&(l.asDouble=u.json&&!isFinite(r.asDouble)?String(r.asDouble):r.asDouble,u.oneofs&&(l.value="asDouble")),r.exemplars&&r.exemplars.length){l.exemplars=[];for(var p=0;p<r.exemplars.length;++p)l.exemplars[p]=d.opentelemetry.proto.metrics.v1.Exemplar.toObject(r.exemplars[p],u)}if(r.asInt!=null&&r.hasOwnProperty("asInt")&&(typeof r.asInt=="number"?l.asInt=u.longs===String?String(r.asInt):r.asInt:l.asInt=u.longs===String?E.Long.prototype.toString.call(r.asInt):u.longs===Number?new E.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber():r.asInt,u.oneofs&&(l.value="asInt")),r.attributes&&r.attributes.length){l.attributes=[];for(var p=0;p<r.attributes.length;++p)l.attributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[p],u)}return r.flags!=null&&r.hasOwnProperty("flags")&&(l.flags=r.flags),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.NumberDataPoint"},a}(),i.HistogramDataPoint=function(){function a(o){if(this.attributes=[],this.bucketCounts=[],this.explicitBounds=[],this.exemplars=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}a.prototype.attributes=E.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.count=null,a.prototype.sum=null,a.prototype.bucketCounts=E.emptyArray,a.prototype.explicitBounds=E.emptyArray,a.prototype.exemplars=E.emptyArray,a.prototype.flags=null,a.prototype.min=null,a.prototype.max=null;var s;return Object.defineProperty(a.prototype,"_sum",{get:E.oneOfGetter(s=["sum"]),set:E.oneOfSetter(s)}),Object.defineProperty(a.prototype,"_min",{get:E.oneOfGetter(s=["min"]),set:E.oneOfSetter(s)}),Object.defineProperty(a.prototype,"_max",{get:E.oneOfGetter(s=["max"]),set:E.oneOfSetter(s)}),a.create=function(r){return new a(r)},a.encode=function(r,u){if(u||(u=V.create()),r.startTimeUnixNano!=null&&Object.hasOwnProperty.call(r,"startTimeUnixNano")&&u.uint32(17).fixed64(r.startTimeUnixNano),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&u.uint32(25).fixed64(r.timeUnixNano),r.count!=null&&Object.hasOwnProperty.call(r,"count")&&u.uint32(33).fixed64(r.count),r.sum!=null&&Object.hasOwnProperty.call(r,"sum")&&u.uint32(41).double(r.sum),r.bucketCounts!=null&&r.bucketCounts.length){u.uint32(50).fork();for(var l=0;l<r.bucketCounts.length;++l)u.fixed64(r.bucketCounts[l]);u.ldelim()}if(r.explicitBounds!=null&&r.explicitBounds.length){u.uint32(58).fork();for(var l=0;l<r.explicitBounds.length;++l)u.double(r.explicitBounds[l]);u.ldelim()}if(r.exemplars!=null&&r.exemplars.length)for(var l=0;l<r.exemplars.length;++l)d.opentelemetry.proto.metrics.v1.Exemplar.encode(r.exemplars[l],u.uint32(66).fork()).ldelim();if(r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],u.uint32(74).fork()).ldelim();return r.flags!=null&&Object.hasOwnProperty.call(r,"flags")&&u.uint32(80).uint32(r.flags),r.min!=null&&Object.hasOwnProperty.call(r,"min")&&u.uint32(89).double(r.min),r.max!=null&&Object.hasOwnProperty.call(r,"max")&&u.uint32(97).double(r.max),u},a.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},a.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.metrics.v1.HistogramDataPoint;r.pos<l;){var p=r.uint32();switch(p>>>3){case 9:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 2:{c.startTimeUnixNano=r.fixed64();break}case 3:{c.timeUnixNano=r.fixed64();break}case 4:{c.count=r.fixed64();break}case 5:{c.sum=r.double();break}case 6:{if(c.bucketCounts&&c.bucketCounts.length||(c.bucketCounts=[]),(p&7)===2)for(var _=r.uint32()+r.pos;r.pos<_;)c.bucketCounts.push(r.fixed64());else c.bucketCounts.push(r.fixed64());break}case 7:{if(c.explicitBounds&&c.explicitBounds.length||(c.explicitBounds=[]),(p&7)===2)for(var _=r.uint32()+r.pos;r.pos<_;)c.explicitBounds.push(r.double());else c.explicitBounds.push(r.double());break}case 8:{c.exemplars&&c.exemplars.length||(c.exemplars=[]),c.exemplars.push(d.opentelemetry.proto.metrics.v1.Exemplar.decode(r,r.uint32()));break}case 10:{c.flags=r.uint32();break}case 11:{c.min=r.double();break}case 12:{c.max=r.double();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var u={};if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var l=0;l<r.attributes.length;++l){var c=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[l]);if(c)return"attributes."+c}}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&!E.isInteger(r.startTimeUnixNano)&&!(r.startTimeUnixNano&&E.isInteger(r.startTimeUnixNano.low)&&E.isInteger(r.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!E.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&E.isInteger(r.timeUnixNano.low)&&E.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.count!=null&&r.hasOwnProperty("count")&&!E.isInteger(r.count)&&!(r.count&&E.isInteger(r.count.low)&&E.isInteger(r.count.high)))return"count: integer|Long expected";if(r.sum!=null&&r.hasOwnProperty("sum")&&(u._sum=1,typeof r.sum!="number"))return"sum: number expected";if(r.bucketCounts!=null&&r.hasOwnProperty("bucketCounts")){if(!Array.isArray(r.bucketCounts))return"bucketCounts: array expected";for(var l=0;l<r.bucketCounts.length;++l)if(!E.isInteger(r.bucketCounts[l])&&!(r.bucketCounts[l]&&E.isInteger(r.bucketCounts[l].low)&&E.isInteger(r.bucketCounts[l].high)))return"bucketCounts: integer|Long[] expected"}if(r.explicitBounds!=null&&r.hasOwnProperty("explicitBounds")){if(!Array.isArray(r.explicitBounds))return"explicitBounds: array expected";for(var l=0;l<r.explicitBounds.length;++l)if(typeof r.explicitBounds[l]!="number")return"explicitBounds: number[] expected"}if(r.exemplars!=null&&r.hasOwnProperty("exemplars")){if(!Array.isArray(r.exemplars))return"exemplars: array expected";for(var l=0;l<r.exemplars.length;++l){var c=d.opentelemetry.proto.metrics.v1.Exemplar.verify(r.exemplars[l]);if(c)return"exemplars."+c}}return r.flags!=null&&r.hasOwnProperty("flags")&&!E.isInteger(r.flags)?"flags: integer expected":r.min!=null&&r.hasOwnProperty("min")&&(u._min=1,typeof r.min!="number")?"min: number expected":r.max!=null&&r.hasOwnProperty("max")&&(u._max=1,typeof r.max!="number")?"max: number expected":null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.HistogramDataPoint)return r;var u=new d.opentelemetry.proto.metrics.v1.HistogramDataPoint;if(r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: array expected");u.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: object expected");u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}if(r.startTimeUnixNano!=null&&(E.Long?(u.startTimeUnixNano=E.Long.fromValue(r.startTimeUnixNano)).unsigned=!1:typeof r.startTimeUnixNano=="string"?u.startTimeUnixNano=parseInt(r.startTimeUnixNano,10):typeof r.startTimeUnixNano=="number"?u.startTimeUnixNano=r.startTimeUnixNano:typeof r.startTimeUnixNano=="object"&&(u.startTimeUnixNano=new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber())),r.timeUnixNano!=null&&(E.Long?(u.timeUnixNano=E.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?u.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?u.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(u.timeUnixNano=new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.count!=null&&(E.Long?(u.count=E.Long.fromValue(r.count)).unsigned=!1:typeof r.count=="string"?u.count=parseInt(r.count,10):typeof r.count=="number"?u.count=r.count:typeof r.count=="object"&&(u.count=new E.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber())),r.sum!=null&&(u.sum=Number(r.sum)),r.bucketCounts){if(!Array.isArray(r.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.bucketCounts: array expected");u.bucketCounts=[];for(var l=0;l<r.bucketCounts.length;++l)E.Long?(u.bucketCounts[l]=E.Long.fromValue(r.bucketCounts[l])).unsigned=!1:typeof r.bucketCounts[l]=="string"?u.bucketCounts[l]=parseInt(r.bucketCounts[l],10):typeof r.bucketCounts[l]=="number"?u.bucketCounts[l]=r.bucketCounts[l]:typeof r.bucketCounts[l]=="object"&&(u.bucketCounts[l]=new E.LongBits(r.bucketCounts[l].low>>>0,r.bucketCounts[l].high>>>0).toNumber())}if(r.explicitBounds){if(!Array.isArray(r.explicitBounds))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.explicitBounds: array expected");u.explicitBounds=[];for(var l=0;l<r.explicitBounds.length;++l)u.explicitBounds[l]=Number(r.explicitBounds[l])}if(r.exemplars){if(!Array.isArray(r.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: array expected");u.exemplars=[];for(var l=0;l<r.exemplars.length;++l){if(typeof r.exemplars[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: object expected");u.exemplars[l]=d.opentelemetry.proto.metrics.v1.Exemplar.fromObject(r.exemplars[l])}}return r.flags!=null&&(u.flags=r.flags>>>0),r.min!=null&&(u.min=Number(r.min)),r.max!=null&&(u.max=Number(r.max)),u},a.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.bucketCounts=[],l.explicitBounds=[],l.exemplars=[],l.attributes=[]),u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.startTimeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.startTimeUnixNano=u.longs===String?"0":0;if(E.Long){var c=new E.Long(0,0,!1);l.timeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.timeUnixNano=u.longs===String?"0":0;if(E.Long){var c=new E.Long(0,0,!1);l.count=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.count=u.longs===String?"0":0;l.flags=0}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&(typeof r.startTimeUnixNano=="number"?l.startTimeUnixNano=u.longs===String?String(r.startTimeUnixNano):r.startTimeUnixNano:l.startTimeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.startTimeUnixNano):u.longs===Number?new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber():r.startTimeUnixNano),r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=u.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.timeUnixNano):u.longs===Number?new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.count!=null&&r.hasOwnProperty("count")&&(typeof r.count=="number"?l.count=u.longs===String?String(r.count):r.count:l.count=u.longs===String?E.Long.prototype.toString.call(r.count):u.longs===Number?new E.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber():r.count),r.sum!=null&&r.hasOwnProperty("sum")&&(l.sum=u.json&&!isFinite(r.sum)?String(r.sum):r.sum,u.oneofs&&(l._sum="sum")),r.bucketCounts&&r.bucketCounts.length){l.bucketCounts=[];for(var p=0;p<r.bucketCounts.length;++p)typeof r.bucketCounts[p]=="number"?l.bucketCounts[p]=u.longs===String?String(r.bucketCounts[p]):r.bucketCounts[p]:l.bucketCounts[p]=u.longs===String?E.Long.prototype.toString.call(r.bucketCounts[p]):u.longs===Number?new E.LongBits(r.bucketCounts[p].low>>>0,r.bucketCounts[p].high>>>0).toNumber():r.bucketCounts[p]}if(r.explicitBounds&&r.explicitBounds.length){l.explicitBounds=[];for(var p=0;p<r.explicitBounds.length;++p)l.explicitBounds[p]=u.json&&!isFinite(r.explicitBounds[p])?String(r.explicitBounds[p]):r.explicitBounds[p]}if(r.exemplars&&r.exemplars.length){l.exemplars=[];for(var p=0;p<r.exemplars.length;++p)l.exemplars[p]=d.opentelemetry.proto.metrics.v1.Exemplar.toObject(r.exemplars[p],u)}if(r.attributes&&r.attributes.length){l.attributes=[];for(var p=0;p<r.attributes.length;++p)l.attributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[p],u)}return r.flags!=null&&r.hasOwnProperty("flags")&&(l.flags=r.flags),r.min!=null&&r.hasOwnProperty("min")&&(l.min=u.json&&!isFinite(r.min)?String(r.min):r.min,u.oneofs&&(l._min="min")),r.max!=null&&r.hasOwnProperty("max")&&(l.max=u.json&&!isFinite(r.max)?String(r.max):r.max,u.oneofs&&(l._max="max")),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.HistogramDataPoint"},a}(),i.ExponentialHistogramDataPoint=function(){function a(o){if(this.attributes=[],this.exemplars=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}a.prototype.attributes=E.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=E.emptyArray,a.prototype.min=null,a.prototype.max=null,a.prototype.zeroThreshold=null;var s;return Object.defineProperty(a.prototype,"_sum",{get:E.oneOfGetter(s=["sum"]),set:E.oneOfSetter(s)}),Object.defineProperty(a.prototype,"_min",{get:E.oneOfGetter(s=["min"]),set:E.oneOfSetter(s)}),Object.defineProperty(a.prototype,"_max",{get:E.oneOfGetter(s=["max"]),set:E.oneOfSetter(s)}),a.create=function(r){return new a(r)},a.encode=function(r,u){if(u||(u=V.create()),r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],u.uint32(10).fork()).ldelim();if(r.startTimeUnixNano!=null&&Object.hasOwnProperty.call(r,"startTimeUnixNano")&&u.uint32(17).fixed64(r.startTimeUnixNano),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&u.uint32(25).fixed64(r.timeUnixNano),r.count!=null&&Object.hasOwnProperty.call(r,"count")&&u.uint32(33).fixed64(r.count),r.sum!=null&&Object.hasOwnProperty.call(r,"sum")&&u.uint32(41).double(r.sum),r.scale!=null&&Object.hasOwnProperty.call(r,"scale")&&u.uint32(48).sint32(r.scale),r.zeroCount!=null&&Object.hasOwnProperty.call(r,"zeroCount")&&u.uint32(57).fixed64(r.zeroCount),r.positive!=null&&Object.hasOwnProperty.call(r,"positive")&&d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(r.positive,u.uint32(66).fork()).ldelim(),r.negative!=null&&Object.hasOwnProperty.call(r,"negative")&&d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(r.negative,u.uint32(74).fork()).ldelim(),r.flags!=null&&Object.hasOwnProperty.call(r,"flags")&&u.uint32(80).uint32(r.flags),r.exemplars!=null&&r.exemplars.length)for(var l=0;l<r.exemplars.length;++l)d.opentelemetry.proto.metrics.v1.Exemplar.encode(r.exemplars[l],u.uint32(90).fork()).ldelim();return r.min!=null&&Object.hasOwnProperty.call(r,"min")&&u.uint32(97).double(r.min),r.max!=null&&Object.hasOwnProperty.call(r,"max")&&u.uint32(105).double(r.max),r.zeroThreshold!=null&&Object.hasOwnProperty.call(r,"zeroThreshold")&&u.uint32(113).double(r.zeroThreshold),u},a.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},a.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 2:{c.startTimeUnixNano=r.fixed64();break}case 3:{c.timeUnixNano=r.fixed64();break}case 4:{c.count=r.fixed64();break}case 5:{c.sum=r.double();break}case 6:{c.scale=r.sint32();break}case 7:{c.zeroCount=r.fixed64();break}case 8:{c.positive=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(r,r.uint32());break}case 9:{c.negative=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(r,r.uint32());break}case 10:{c.flags=r.uint32();break}case 11:{c.exemplars&&c.exemplars.length||(c.exemplars=[]),c.exemplars.push(d.opentelemetry.proto.metrics.v1.Exemplar.decode(r,r.uint32()));break}case 12:{c.min=r.double();break}case 13:{c.max=r.double();break}case 14:{c.zeroThreshold=r.double();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var u={};if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var l=0;l<r.attributes.length;++l){var c=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[l]);if(c)return"attributes."+c}}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&!E.isInteger(r.startTimeUnixNano)&&!(r.startTimeUnixNano&&E.isInteger(r.startTimeUnixNano.low)&&E.isInteger(r.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!E.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&E.isInteger(r.timeUnixNano.low)&&E.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.count!=null&&r.hasOwnProperty("count")&&!E.isInteger(r.count)&&!(r.count&&E.isInteger(r.count.low)&&E.isInteger(r.count.high)))return"count: integer|Long expected";if(r.sum!=null&&r.hasOwnProperty("sum")&&(u._sum=1,typeof r.sum!="number"))return"sum: number expected";if(r.scale!=null&&r.hasOwnProperty("scale")&&!E.isInteger(r.scale))return"scale: integer expected";if(r.zeroCount!=null&&r.hasOwnProperty("zeroCount")&&!E.isInteger(r.zeroCount)&&!(r.zeroCount&&E.isInteger(r.zeroCount.low)&&E.isInteger(r.zeroCount.high)))return"zeroCount: integer|Long expected";if(r.positive!=null&&r.hasOwnProperty("positive")){var c=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(r.positive);if(c)return"positive."+c}if(r.negative!=null&&r.hasOwnProperty("negative")){var c=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(r.negative);if(c)return"negative."+c}if(r.flags!=null&&r.hasOwnProperty("flags")&&!E.isInteger(r.flags))return"flags: integer expected";if(r.exemplars!=null&&r.hasOwnProperty("exemplars")){if(!Array.isArray(r.exemplars))return"exemplars: array expected";for(var l=0;l<r.exemplars.length;++l){var c=d.opentelemetry.proto.metrics.v1.Exemplar.verify(r.exemplars[l]);if(c)return"exemplars."+c}}return r.min!=null&&r.hasOwnProperty("min")&&(u._min=1,typeof r.min!="number")?"min: number expected":r.max!=null&&r.hasOwnProperty("max")&&(u._max=1,typeof r.max!="number")?"max: number expected":r.zeroThreshold!=null&&r.hasOwnProperty("zeroThreshold")&&typeof r.zeroThreshold!="number"?"zeroThreshold: number expected":null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint)return r;var u=new d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;if(r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: array expected");u.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: object expected");u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}if(r.startTimeUnixNano!=null&&(E.Long?(u.startTimeUnixNano=E.Long.fromValue(r.startTimeUnixNano)).unsigned=!1:typeof r.startTimeUnixNano=="string"?u.startTimeUnixNano=parseInt(r.startTimeUnixNano,10):typeof r.startTimeUnixNano=="number"?u.startTimeUnixNano=r.startTimeUnixNano:typeof r.startTimeUnixNano=="object"&&(u.startTimeUnixNano=new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber())),r.timeUnixNano!=null&&(E.Long?(u.timeUnixNano=E.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?u.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?u.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(u.timeUnixNano=new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.count!=null&&(E.Long?(u.count=E.Long.fromValue(r.count)).unsigned=!1:typeof r.count=="string"?u.count=parseInt(r.count,10):typeof r.count=="number"?u.count=r.count:typeof r.count=="object"&&(u.count=new E.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber())),r.sum!=null&&(u.sum=Number(r.sum)),r.scale!=null&&(u.scale=r.scale|0),r.zeroCount!=null&&(E.Long?(u.zeroCount=E.Long.fromValue(r.zeroCount)).unsigned=!1:typeof r.zeroCount=="string"?u.zeroCount=parseInt(r.zeroCount,10):typeof r.zeroCount=="number"?u.zeroCount=r.zeroCount:typeof r.zeroCount=="object"&&(u.zeroCount=new E.LongBits(r.zeroCount.low>>>0,r.zeroCount.high>>>0).toNumber())),r.positive!=null){if(typeof r.positive!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.positive: object expected");u.positive=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(r.positive)}if(r.negative!=null){if(typeof r.negative!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.negative: object expected");u.negative=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(r.negative)}if(r.flags!=null&&(u.flags=r.flags>>>0),r.exemplars){if(!Array.isArray(r.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: array expected");u.exemplars=[];for(var l=0;l<r.exemplars.length;++l){if(typeof r.exemplars[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: object expected");u.exemplars[l]=d.opentelemetry.proto.metrics.v1.Exemplar.fromObject(r.exemplars[l])}}return r.min!=null&&(u.min=Number(r.min)),r.max!=null&&(u.max=Number(r.max)),r.zeroThreshold!=null&&(u.zeroThreshold=Number(r.zeroThreshold)),u},a.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.attributes=[],l.exemplars=[]),u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.startTimeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.startTimeUnixNano=u.longs===String?"0":0;if(E.Long){var c=new E.Long(0,0,!1);l.timeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.timeUnixNano=u.longs===String?"0":0;if(E.Long){var c=new E.Long(0,0,!1);l.count=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.count=u.longs===String?"0":0;if(l.scale=0,E.Long){var c=new E.Long(0,0,!1);l.zeroCount=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.zeroCount=u.longs===String?"0":0;l.positive=null,l.negative=null,l.flags=0,l.zeroThreshold=0}if(r.attributes&&r.attributes.length){l.attributes=[];for(var p=0;p<r.attributes.length;++p)l.attributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[p],u)}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&(typeof r.startTimeUnixNano=="number"?l.startTimeUnixNano=u.longs===String?String(r.startTimeUnixNano):r.startTimeUnixNano:l.startTimeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.startTimeUnixNano):u.longs===Number?new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber():r.startTimeUnixNano),r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=u.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.timeUnixNano):u.longs===Number?new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.count!=null&&r.hasOwnProperty("count")&&(typeof r.count=="number"?l.count=u.longs===String?String(r.count):r.count:l.count=u.longs===String?E.Long.prototype.toString.call(r.count):u.longs===Number?new E.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber():r.count),r.sum!=null&&r.hasOwnProperty("sum")&&(l.sum=u.json&&!isFinite(r.sum)?String(r.sum):r.sum,u.oneofs&&(l._sum="sum")),r.scale!=null&&r.hasOwnProperty("scale")&&(l.scale=r.scale),r.zeroCount!=null&&r.hasOwnProperty("zeroCount")&&(typeof r.zeroCount=="number"?l.zeroCount=u.longs===String?String(r.zeroCount):r.zeroCount:l.zeroCount=u.longs===String?E.Long.prototype.toString.call(r.zeroCount):u.longs===Number?new E.LongBits(r.zeroCount.low>>>0,r.zeroCount.high>>>0).toNumber():r.zeroCount),r.positive!=null&&r.hasOwnProperty("positive")&&(l.positive=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(r.positive,u)),r.negative!=null&&r.hasOwnProperty("negative")&&(l.negative=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(r.negative,u)),r.flags!=null&&r.hasOwnProperty("flags")&&(l.flags=r.flags),r.exemplars&&r.exemplars.length){l.exemplars=[];for(var p=0;p<r.exemplars.length;++p)l.exemplars[p]=d.opentelemetry.proto.metrics.v1.Exemplar.toObject(r.exemplars[p],u)}return r.min!=null&&r.hasOwnProperty("min")&&(l.min=u.json&&!isFinite(r.min)?String(r.min):r.min,u.oneofs&&(l._min="min")),r.max!=null&&r.hasOwnProperty("max")&&(l.max=u.json&&!isFinite(r.max)?String(r.max):r.max,u.oneofs&&(l._max="max")),r.zeroThreshold!=null&&r.hasOwnProperty("zeroThreshold")&&(l.zeroThreshold=u.json&&!isFinite(r.zeroThreshold)?String(r.zeroThreshold):r.zeroThreshold),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint"},a.Buckets=function(){function o(r){if(this.bucketCounts=[],r)for(var u=Object.keys(r),l=0;l<u.length;++l)r[u[l]]!=null&&(this[u[l]]=r[u[l]])}return o.prototype.offset=null,o.prototype.bucketCounts=E.emptyArray,o.create=function(u){return new o(u)},o.encode=function(u,l){if(l||(l=V.create()),u.offset!=null&&Object.hasOwnProperty.call(u,"offset")&&l.uint32(8).sint32(u.offset),u.bucketCounts!=null&&u.bucketCounts.length){l.uint32(18).fork();for(var c=0;c<u.bucketCounts.length;++c)l.uint64(u.bucketCounts[c]);l.ldelim()}return l},o.encodeDelimited=function(u,l){return this.encode(u,l).ldelim()},o.decode=function(u,l){u instanceof y||(u=y.create(u));for(var c=l===void 0?u.len:u.pos+l,p=new d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;u.pos<c;){var _=u.uint32();switch(_>>>3){case 1:{p.offset=u.sint32();break}case 2:{if(p.bucketCounts&&p.bucketCounts.length||(p.bucketCounts=[]),(_&7)===2)for(var f=u.uint32()+u.pos;u.pos<f;)p.bucketCounts.push(u.uint64());else p.bucketCounts.push(u.uint64());break}default:u.skipType(_&7);break}}return p},o.decodeDelimited=function(u){return u instanceof y||(u=new y(u)),this.decode(u,u.uint32())},o.verify=function(u){if(typeof u!="object"||u===null)return"object expected";if(u.offset!=null&&u.hasOwnProperty("offset")&&!E.isInteger(u.offset))return"offset: integer expected";if(u.bucketCounts!=null&&u.hasOwnProperty("bucketCounts")){if(!Array.isArray(u.bucketCounts))return"bucketCounts: array expected";for(var l=0;l<u.bucketCounts.length;++l)if(!E.isInteger(u.bucketCounts[l])&&!(u.bucketCounts[l]&&E.isInteger(u.bucketCounts[l].low)&&E.isInteger(u.bucketCounts[l].high)))return"bucketCounts: integer|Long[] expected"}return null},o.fromObject=function(u){if(u instanceof d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets)return u;var l=new d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;if(u.offset!=null&&(l.offset=u.offset|0),u.bucketCounts){if(!Array.isArray(u.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.bucketCounts: array expected");l.bucketCounts=[];for(var c=0;c<u.bucketCounts.length;++c)E.Long?(l.bucketCounts[c]=E.Long.fromValue(u.bucketCounts[c])).unsigned=!0:typeof u.bucketCounts[c]=="string"?l.bucketCounts[c]=parseInt(u.bucketCounts[c],10):typeof u.bucketCounts[c]=="number"?l.bucketCounts[c]=u.bucketCounts[c]:typeof u.bucketCounts[c]=="object"&&(l.bucketCounts[c]=new E.LongBits(u.bucketCounts[c].low>>>0,u.bucketCounts[c].high>>>0).toNumber(!0))}return l},o.toObject=function(u,l){l||(l={});var c={};if((l.arrays||l.defaults)&&(c.bucketCounts=[]),l.defaults&&(c.offset=0),u.offset!=null&&u.hasOwnProperty("offset")&&(c.offset=u.offset),u.bucketCounts&&u.bucketCounts.length){c.bucketCounts=[];for(var p=0;p<u.bucketCounts.length;++p)typeof u.bucketCounts[p]=="number"?c.bucketCounts[p]=l.longs===String?String(u.bucketCounts[p]):u.bucketCounts[p]:c.bucketCounts[p]=l.longs===String?E.Long.prototype.toString.call(u.bucketCounts[p]):l.longs===Number?new E.LongBits(u.bucketCounts[p].low>>>0,u.bucketCounts[p].high>>>0).toNumber(!0):u.bucketCounts[p]}return c},o.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},o.getTypeUrl=function(u){return u===void 0&&(u="type.googleapis.com"),u+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets"},o}(),a}(),i.SummaryDataPoint=function(){function a(s){if(this.attributes=[],this.quantileValues=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.attributes=E.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.count=null,a.prototype.sum=null,a.prototype.quantileValues=E.emptyArray,a.prototype.flags=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.startTimeUnixNano!=null&&Object.hasOwnProperty.call(o,"startTimeUnixNano")&&r.uint32(17).fixed64(o.startTimeUnixNano),o.timeUnixNano!=null&&Object.hasOwnProperty.call(o,"timeUnixNano")&&r.uint32(25).fixed64(o.timeUnixNano),o.count!=null&&Object.hasOwnProperty.call(o,"count")&&r.uint32(33).fixed64(o.count),o.sum!=null&&Object.hasOwnProperty.call(o,"sum")&&r.uint32(41).double(o.sum),o.quantileValues!=null&&o.quantileValues.length)for(var u=0;u<o.quantileValues.length;++u)d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.encode(o.quantileValues[u],r.uint32(50).fork()).ldelim();if(o.attributes!=null&&o.attributes.length)for(var u=0;u<o.attributes.length;++u)d.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[u],r.uint32(58).fork()).ldelim();return o.flags!=null&&Object.hasOwnProperty.call(o,"flags")&&r.uint32(64).uint32(o.flags),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.SummaryDataPoint;o.pos<u;){var c=o.uint32();switch(c>>>3){case 7:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 2:{l.startTimeUnixNano=o.fixed64();break}case 3:{l.timeUnixNano=o.fixed64();break}case 4:{l.count=o.fixed64();break}case 5:{l.sum=o.double();break}case 6:{l.quantileValues&&l.quantileValues.length||(l.quantileValues=[]),l.quantileValues.push(d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.decode(o,o.uint32()));break}case 8:{l.flags=o.uint32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var r=0;r<o.attributes.length;++r){var u=d.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[r]);if(u)return"attributes."+u}}if(o.startTimeUnixNano!=null&&o.hasOwnProperty("startTimeUnixNano")&&!E.isInteger(o.startTimeUnixNano)&&!(o.startTimeUnixNano&&E.isInteger(o.startTimeUnixNano.low)&&E.isInteger(o.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(o.timeUnixNano!=null&&o.hasOwnProperty("timeUnixNano")&&!E.isInteger(o.timeUnixNano)&&!(o.timeUnixNano&&E.isInteger(o.timeUnixNano.low)&&E.isInteger(o.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(o.count!=null&&o.hasOwnProperty("count")&&!E.isInteger(o.count)&&!(o.count&&E.isInteger(o.count.low)&&E.isInteger(o.count.high)))return"count: integer|Long expected";if(o.sum!=null&&o.hasOwnProperty("sum")&&typeof o.sum!="number")return"sum: number expected";if(o.quantileValues!=null&&o.hasOwnProperty("quantileValues")){if(!Array.isArray(o.quantileValues))return"quantileValues: array expected";for(var r=0;r<o.quantileValues.length;++r){var u=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.verify(o.quantileValues[r]);if(u)return"quantileValues."+u}}return o.flags!=null&&o.hasOwnProperty("flags")&&!E.isInteger(o.flags)?"flags: integer expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.SummaryDataPoint)return o;var r=new d.opentelemetry.proto.metrics.v1.SummaryDataPoint;if(o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: array expected");r.attributes=[];for(var u=0;u<o.attributes.length;++u){if(typeof o.attributes[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: object expected");r.attributes[u]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[u])}}if(o.startTimeUnixNano!=null&&(E.Long?(r.startTimeUnixNano=E.Long.fromValue(o.startTimeUnixNano)).unsigned=!1:typeof o.startTimeUnixNano=="string"?r.startTimeUnixNano=parseInt(o.startTimeUnixNano,10):typeof o.startTimeUnixNano=="number"?r.startTimeUnixNano=o.startTimeUnixNano:typeof o.startTimeUnixNano=="object"&&(r.startTimeUnixNano=new E.LongBits(o.startTimeUnixNano.low>>>0,o.startTimeUnixNano.high>>>0).toNumber())),o.timeUnixNano!=null&&(E.Long?(r.timeUnixNano=E.Long.fromValue(o.timeUnixNano)).unsigned=!1:typeof o.timeUnixNano=="string"?r.timeUnixNano=parseInt(o.timeUnixNano,10):typeof o.timeUnixNano=="number"?r.timeUnixNano=o.timeUnixNano:typeof o.timeUnixNano=="object"&&(r.timeUnixNano=new E.LongBits(o.timeUnixNano.low>>>0,o.timeUnixNano.high>>>0).toNumber())),o.count!=null&&(E.Long?(r.count=E.Long.fromValue(o.count)).unsigned=!1:typeof o.count=="string"?r.count=parseInt(o.count,10):typeof o.count=="number"?r.count=o.count:typeof o.count=="object"&&(r.count=new E.LongBits(o.count.low>>>0,o.count.high>>>0).toNumber())),o.sum!=null&&(r.sum=Number(o.sum)),o.quantileValues){if(!Array.isArray(o.quantileValues))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: array expected");r.quantileValues=[];for(var u=0;u<o.quantileValues.length;++u){if(typeof o.quantileValues[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: object expected");r.quantileValues[u]=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.fromObject(o.quantileValues[u])}}return o.flags!=null&&(r.flags=o.flags>>>0),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.quantileValues=[],u.attributes=[]),r.defaults){if(E.Long){var l=new E.Long(0,0,!1);u.startTimeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.startTimeUnixNano=r.longs===String?"0":0;if(E.Long){var l=new E.Long(0,0,!1);u.timeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.timeUnixNano=r.longs===String?"0":0;if(E.Long){var l=new E.Long(0,0,!1);u.count=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.count=r.longs===String?"0":0;u.sum=0,u.flags=0}if(o.startTimeUnixNano!=null&&o.hasOwnProperty("startTimeUnixNano")&&(typeof o.startTimeUnixNano=="number"?u.startTimeUnixNano=r.longs===String?String(o.startTimeUnixNano):o.startTimeUnixNano:u.startTimeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.startTimeUnixNano):r.longs===Number?new E.LongBits(o.startTimeUnixNano.low>>>0,o.startTimeUnixNano.high>>>0).toNumber():o.startTimeUnixNano),o.timeUnixNano!=null&&o.hasOwnProperty("timeUnixNano")&&(typeof o.timeUnixNano=="number"?u.timeUnixNano=r.longs===String?String(o.timeUnixNano):o.timeUnixNano:u.timeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.timeUnixNano):r.longs===Number?new E.LongBits(o.timeUnixNano.low>>>0,o.timeUnixNano.high>>>0).toNumber():o.timeUnixNano),o.count!=null&&o.hasOwnProperty("count")&&(typeof o.count=="number"?u.count=r.longs===String?String(o.count):o.count:u.count=r.longs===String?E.Long.prototype.toString.call(o.count):r.longs===Number?new E.LongBits(o.count.low>>>0,o.count.high>>>0).toNumber():o.count),o.sum!=null&&o.hasOwnProperty("sum")&&(u.sum=r.json&&!isFinite(o.sum)?String(o.sum):o.sum),o.quantileValues&&o.quantileValues.length){u.quantileValues=[];for(var c=0;c<o.quantileValues.length;++c)u.quantileValues[c]=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.toObject(o.quantileValues[c],r)}if(o.attributes&&o.attributes.length){u.attributes=[];for(var c=0;c<o.attributes.length;++c)u.attributes[c]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[c],r)}return o.flags!=null&&o.hasOwnProperty("flags")&&(u.flags=o.flags),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.SummaryDataPoint"},a.ValueAtQuantile=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.quantile=null,s.prototype.value=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.quantile!=null&&Object.hasOwnProperty.call(r,"quantile")&&u.uint32(9).double(r.quantile),r.value!=null&&Object.hasOwnProperty.call(r,"value")&&u.uint32(17).double(r.value),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.quantile=r.double();break}case 2:{c.value=r.double();break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){return typeof r!="object"||r===null?"object expected":r.quantile!=null&&r.hasOwnProperty("quantile")&&typeof r.quantile!="number"?"quantile: number expected":r.value!=null&&r.hasOwnProperty("value")&&typeof r.value!="number"?"value: number expected":null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile)return r;var u=new d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;return r.quantile!=null&&(u.quantile=Number(r.quantile)),r.value!=null&&(u.value=Number(r.value)),u},s.toObject=function(r,u){u||(u={});var l={};return u.defaults&&(l.quantile=0,l.value=0),r.quantile!=null&&r.hasOwnProperty("quantile")&&(l.quantile=u.json&&!isFinite(r.quantile)?String(r.quantile):r.quantile),r.value!=null&&r.hasOwnProperty("value")&&(l.value=u.json&&!isFinite(r.value)?String(r.value):r.value),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile"},s}(),a}(),i.Exemplar=function(){function a(o){if(this.filteredAttributes=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}a.prototype.filteredAttributes=E.emptyArray,a.prototype.timeUnixNano=null,a.prototype.asDouble=null,a.prototype.asInt=null,a.prototype.spanId=null,a.prototype.traceId=null;var s;return Object.defineProperty(a.prototype,"value",{get:E.oneOfGetter(s=["asDouble","asInt"]),set:E.oneOfSetter(s)}),a.create=function(r){return new a(r)},a.encode=function(r,u){if(u||(u=V.create()),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&u.uint32(17).fixed64(r.timeUnixNano),r.asDouble!=null&&Object.hasOwnProperty.call(r,"asDouble")&&u.uint32(25).double(r.asDouble),r.spanId!=null&&Object.hasOwnProperty.call(r,"spanId")&&u.uint32(34).bytes(r.spanId),r.traceId!=null&&Object.hasOwnProperty.call(r,"traceId")&&u.uint32(42).bytes(r.traceId),r.asInt!=null&&Object.hasOwnProperty.call(r,"asInt")&&u.uint32(49).sfixed64(r.asInt),r.filteredAttributes!=null&&r.filteredAttributes.length)for(var l=0;l<r.filteredAttributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.filteredAttributes[l],u.uint32(58).fork()).ldelim();return u},a.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},a.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.metrics.v1.Exemplar;r.pos<l;){var p=r.uint32();switch(p>>>3){case 7:{c.filteredAttributes&&c.filteredAttributes.length||(c.filteredAttributes=[]),c.filteredAttributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 2:{c.timeUnixNano=r.fixed64();break}case 3:{c.asDouble=r.double();break}case 6:{c.asInt=r.sfixed64();break}case 4:{c.spanId=r.bytes();break}case 5:{c.traceId=r.bytes();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var u={};if(r.filteredAttributes!=null&&r.hasOwnProperty("filteredAttributes")){if(!Array.isArray(r.filteredAttributes))return"filteredAttributes: array expected";for(var l=0;l<r.filteredAttributes.length;++l){var c=d.opentelemetry.proto.common.v1.KeyValue.verify(r.filteredAttributes[l]);if(c)return"filteredAttributes."+c}}if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!E.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&E.isInteger(r.timeUnixNano.low)&&E.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.asDouble!=null&&r.hasOwnProperty("asDouble")&&(u.value=1,typeof r.asDouble!="number"))return"asDouble: number expected";if(r.asInt!=null&&r.hasOwnProperty("asInt")){if(u.value===1)return"value: multiple values";if(u.value=1,!E.isInteger(r.asInt)&&!(r.asInt&&E.isInteger(r.asInt.low)&&E.isInteger(r.asInt.high)))return"asInt: integer|Long expected"}return r.spanId!=null&&r.hasOwnProperty("spanId")&&!(r.spanId&&typeof r.spanId.length=="number"||E.isString(r.spanId))?"spanId: buffer expected":r.traceId!=null&&r.hasOwnProperty("traceId")&&!(r.traceId&&typeof r.traceId.length=="number"||E.isString(r.traceId))?"traceId: buffer expected":null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.Exemplar)return r;var u=new d.opentelemetry.proto.metrics.v1.Exemplar;if(r.filteredAttributes){if(!Array.isArray(r.filteredAttributes))throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: array expected");u.filteredAttributes=[];for(var l=0;l<r.filteredAttributes.length;++l){if(typeof r.filteredAttributes[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: object expected");u.filteredAttributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.filteredAttributes[l])}}return r.timeUnixNano!=null&&(E.Long?(u.timeUnixNano=E.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?u.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?u.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(u.timeUnixNano=new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.asDouble!=null&&(u.asDouble=Number(r.asDouble)),r.asInt!=null&&(E.Long?(u.asInt=E.Long.fromValue(r.asInt)).unsigned=!1:typeof r.asInt=="string"?u.asInt=parseInt(r.asInt,10):typeof r.asInt=="number"?u.asInt=r.asInt:typeof r.asInt=="object"&&(u.asInt=new E.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber())),r.spanId!=null&&(typeof r.spanId=="string"?E.base64.decode(r.spanId,u.spanId=E.newBuffer(E.base64.length(r.spanId)),0):r.spanId.length>=0&&(u.spanId=r.spanId)),r.traceId!=null&&(typeof r.traceId=="string"?E.base64.decode(r.traceId,u.traceId=E.newBuffer(E.base64.length(r.traceId)),0):r.traceId.length>=0&&(u.traceId=r.traceId)),u},a.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.filteredAttributes=[]),u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.timeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.timeUnixNano=u.longs===String?"0":0;u.bytes===String?l.spanId="":(l.spanId=[],u.bytes!==Array&&(l.spanId=E.newBuffer(l.spanId))),u.bytes===String?l.traceId="":(l.traceId=[],u.bytes!==Array&&(l.traceId=E.newBuffer(l.traceId)))}if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=u.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.timeUnixNano):u.longs===Number?new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.asDouble!=null&&r.hasOwnProperty("asDouble")&&(l.asDouble=u.json&&!isFinite(r.asDouble)?String(r.asDouble):r.asDouble,u.oneofs&&(l.value="asDouble")),r.spanId!=null&&r.hasOwnProperty("spanId")&&(l.spanId=u.bytes===String?E.base64.encode(r.spanId,0,r.spanId.length):u.bytes===Array?Array.prototype.slice.call(r.spanId):r.spanId),r.traceId!=null&&r.hasOwnProperty("traceId")&&(l.traceId=u.bytes===String?E.base64.encode(r.traceId,0,r.traceId.length):u.bytes===Array?Array.prototype.slice.call(r.traceId):r.traceId),r.asInt!=null&&r.hasOwnProperty("asInt")&&(typeof r.asInt=="number"?l.asInt=u.longs===String?String(r.asInt):r.asInt:l.asInt=u.longs===String?E.Long.prototype.toString.call(r.asInt):u.longs===Number?new E.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber():r.asInt,u.oneofs&&(l.value="asInt")),r.filteredAttributes&&r.filteredAttributes.length){l.filteredAttributes=[];for(var p=0;p<r.filteredAttributes.length;++p)l.filteredAttributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.filteredAttributes[p],u)}return l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.Exemplar"},a}(),i}(),n}(),e.logs=function(){var n={};return n.v1=function(){var i={};return i.LogsData=function(){function a(s){if(this.resourceLogs=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.resourceLogs=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resourceLogs!=null&&o.resourceLogs.length)for(var u=0;u<o.resourceLogs.length;++u)d.opentelemetry.proto.logs.v1.ResourceLogs.encode(o.resourceLogs[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.logs.v1.LogsData;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.resourceLogs&&l.resourceLogs.length||(l.resourceLogs=[]),l.resourceLogs.push(d.opentelemetry.proto.logs.v1.ResourceLogs.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resourceLogs!=null&&o.hasOwnProperty("resourceLogs")){if(!Array.isArray(o.resourceLogs))return"resourceLogs: array expected";for(var r=0;r<o.resourceLogs.length;++r){var u=d.opentelemetry.proto.logs.v1.ResourceLogs.verify(o.resourceLogs[r]);if(u)return"resourceLogs."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.logs.v1.LogsData)return o;var r=new d.opentelemetry.proto.logs.v1.LogsData;if(o.resourceLogs){if(!Array.isArray(o.resourceLogs))throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: array expected");r.resourceLogs=[];for(var u=0;u<o.resourceLogs.length;++u){if(typeof o.resourceLogs[u]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: object expected");r.resourceLogs[u]=d.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(o.resourceLogs[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.resourceLogs=[]),o.resourceLogs&&o.resourceLogs.length){u.resourceLogs=[];for(var l=0;l<o.resourceLogs.length;++l)u.resourceLogs[l]=d.opentelemetry.proto.logs.v1.ResourceLogs.toObject(o.resourceLogs[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.logs.v1.LogsData"},a}(),i.ResourceLogs=function(){function a(s){if(this.scopeLogs=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.resource=null,a.prototype.scopeLogs=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resource!=null&&Object.hasOwnProperty.call(o,"resource")&&d.opentelemetry.proto.resource.v1.Resource.encode(o.resource,r.uint32(10).fork()).ldelim(),o.scopeLogs!=null&&o.scopeLogs.length)for(var u=0;u<o.scopeLogs.length;++u)d.opentelemetry.proto.logs.v1.ScopeLogs.encode(o.scopeLogs[u],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.logs.v1.ResourceLogs;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.resource=d.opentelemetry.proto.resource.v1.Resource.decode(o,o.uint32());break}case 2:{l.scopeLogs&&l.scopeLogs.length||(l.scopeLogs=[]),l.scopeLogs.push(d.opentelemetry.proto.logs.v1.ScopeLogs.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resource!=null&&o.hasOwnProperty("resource")){var r=d.opentelemetry.proto.resource.v1.Resource.verify(o.resource);if(r)return"resource."+r}if(o.scopeLogs!=null&&o.hasOwnProperty("scopeLogs")){if(!Array.isArray(o.scopeLogs))return"scopeLogs: array expected";for(var u=0;u<o.scopeLogs.length;++u){var r=d.opentelemetry.proto.logs.v1.ScopeLogs.verify(o.scopeLogs[u]);if(r)return"scopeLogs."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.logs.v1.ResourceLogs)return o;var r=new d.opentelemetry.proto.logs.v1.ResourceLogs;if(o.resource!=null){if(typeof o.resource!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.resource: object expected");r.resource=d.opentelemetry.proto.resource.v1.Resource.fromObject(o.resource)}if(o.scopeLogs){if(!Array.isArray(o.scopeLogs))throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: array expected");r.scopeLogs=[];for(var u=0;u<o.scopeLogs.length;++u){if(typeof o.scopeLogs[u]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: object expected");r.scopeLogs[u]=d.opentelemetry.proto.logs.v1.ScopeLogs.fromObject(o.scopeLogs[u])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.scopeLogs=[]),r.defaults&&(u.resource=null,u.schemaUrl=""),o.resource!=null&&o.hasOwnProperty("resource")&&(u.resource=d.opentelemetry.proto.resource.v1.Resource.toObject(o.resource,r)),o.scopeLogs&&o.scopeLogs.length){u.scopeLogs=[];for(var l=0;l<o.scopeLogs.length;++l)u.scopeLogs[l]=d.opentelemetry.proto.logs.v1.ScopeLogs.toObject(o.scopeLogs[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(u.schemaUrl=o.schemaUrl),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.logs.v1.ResourceLogs"},a}(),i.ScopeLogs=function(){function a(s){if(this.logRecords=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.scope=null,a.prototype.logRecords=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.scope!=null&&Object.hasOwnProperty.call(o,"scope")&&d.opentelemetry.proto.common.v1.InstrumentationScope.encode(o.scope,r.uint32(10).fork()).ldelim(),o.logRecords!=null&&o.logRecords.length)for(var u=0;u<o.logRecords.length;++u)d.opentelemetry.proto.logs.v1.LogRecord.encode(o.logRecords[u],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.logs.v1.ScopeLogs;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.decode(o,o.uint32());break}case 2:{l.logRecords&&l.logRecords.length||(l.logRecords=[]),l.logRecords.push(d.opentelemetry.proto.logs.v1.LogRecord.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.scope!=null&&o.hasOwnProperty("scope")){var r=d.opentelemetry.proto.common.v1.InstrumentationScope.verify(o.scope);if(r)return"scope."+r}if(o.logRecords!=null&&o.hasOwnProperty("logRecords")){if(!Array.isArray(o.logRecords))return"logRecords: array expected";for(var u=0;u<o.logRecords.length;++u){var r=d.opentelemetry.proto.logs.v1.LogRecord.verify(o.logRecords[u]);if(r)return"logRecords."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.logs.v1.ScopeLogs)return o;var r=new d.opentelemetry.proto.logs.v1.ScopeLogs;if(o.scope!=null){if(typeof o.scope!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.scope: object expected");r.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(o.scope)}if(o.logRecords){if(!Array.isArray(o.logRecords))throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: array expected");r.logRecords=[];for(var u=0;u<o.logRecords.length;++u){if(typeof o.logRecords[u]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: object expected");r.logRecords[u]=d.opentelemetry.proto.logs.v1.LogRecord.fromObject(o.logRecords[u])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.logRecords=[]),r.defaults&&(u.scope=null,u.schemaUrl=""),o.scope!=null&&o.hasOwnProperty("scope")&&(u.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.toObject(o.scope,r)),o.logRecords&&o.logRecords.length){u.logRecords=[];for(var l=0;l<o.logRecords.length;++l)u.logRecords[l]=d.opentelemetry.proto.logs.v1.LogRecord.toObject(o.logRecords[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(u.schemaUrl=o.schemaUrl),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.logs.v1.ScopeLogs"},a}(),i.SeverityNumber=function(){var a={},s=Object.create(a);return s[a[0]="SEVERITY_NUMBER_UNSPECIFIED"]=0,s[a[1]="SEVERITY_NUMBER_TRACE"]=1,s[a[2]="SEVERITY_NUMBER_TRACE2"]=2,s[a[3]="SEVERITY_NUMBER_TRACE3"]=3,s[a[4]="SEVERITY_NUMBER_TRACE4"]=4,s[a[5]="SEVERITY_NUMBER_DEBUG"]=5,s[a[6]="SEVERITY_NUMBER_DEBUG2"]=6,s[a[7]="SEVERITY_NUMBER_DEBUG3"]=7,s[a[8]="SEVERITY_NUMBER_DEBUG4"]=8,s[a[9]="SEVERITY_NUMBER_INFO"]=9,s[a[10]="SEVERITY_NUMBER_INFO2"]=10,s[a[11]="SEVERITY_NUMBER_INFO3"]=11,s[a[12]="SEVERITY_NUMBER_INFO4"]=12,s[a[13]="SEVERITY_NUMBER_WARN"]=13,s[a[14]="SEVERITY_NUMBER_WARN2"]=14,s[a[15]="SEVERITY_NUMBER_WARN3"]=15,s[a[16]="SEVERITY_NUMBER_WARN4"]=16,s[a[17]="SEVERITY_NUMBER_ERROR"]=17,s[a[18]="SEVERITY_NUMBER_ERROR2"]=18,s[a[19]="SEVERITY_NUMBER_ERROR3"]=19,s[a[20]="SEVERITY_NUMBER_ERROR4"]=20,s[a[21]="SEVERITY_NUMBER_FATAL"]=21,s[a[22]="SEVERITY_NUMBER_FATAL2"]=22,s[a[23]="SEVERITY_NUMBER_FATAL3"]=23,s[a[24]="SEVERITY_NUMBER_FATAL4"]=24,s}(),i.LogRecordFlags=function(){var a={},s=Object.create(a);return s[a[0]="LOG_RECORD_FLAGS_DO_NOT_USE"]=0,s[a[255]="LOG_RECORD_FLAGS_TRACE_FLAGS_MASK"]=255,s}(),i.LogRecord=function(){function a(s){if(this.attributes=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.timeUnixNano=null,a.prototype.observedTimeUnixNano=null,a.prototype.severityNumber=null,a.prototype.severityText=null,a.prototype.body=null,a.prototype.attributes=E.emptyArray,a.prototype.droppedAttributesCount=null,a.prototype.flags=null,a.prototype.traceId=null,a.prototype.spanId=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.timeUnixNano!=null&&Object.hasOwnProperty.call(o,"timeUnixNano")&&r.uint32(9).fixed64(o.timeUnixNano),o.severityNumber!=null&&Object.hasOwnProperty.call(o,"severityNumber")&&r.uint32(16).int32(o.severityNumber),o.severityText!=null&&Object.hasOwnProperty.call(o,"severityText")&&r.uint32(26).string(o.severityText),o.body!=null&&Object.hasOwnProperty.call(o,"body")&&d.opentelemetry.proto.common.v1.AnyValue.encode(o.body,r.uint32(42).fork()).ldelim(),o.attributes!=null&&o.attributes.length)for(var u=0;u<o.attributes.length;++u)d.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[u],r.uint32(50).fork()).ldelim();return o.droppedAttributesCount!=null&&Object.hasOwnProperty.call(o,"droppedAttributesCount")&&r.uint32(56).uint32(o.droppedAttributesCount),o.flags!=null&&Object.hasOwnProperty.call(o,"flags")&&r.uint32(69).fixed32(o.flags),o.traceId!=null&&Object.hasOwnProperty.call(o,"traceId")&&r.uint32(74).bytes(o.traceId),o.spanId!=null&&Object.hasOwnProperty.call(o,"spanId")&&r.uint32(82).bytes(o.spanId),o.observedTimeUnixNano!=null&&Object.hasOwnProperty.call(o,"observedTimeUnixNano")&&r.uint32(89).fixed64(o.observedTimeUnixNano),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.logs.v1.LogRecord;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.timeUnixNano=o.fixed64();break}case 11:{l.observedTimeUnixNano=o.fixed64();break}case 2:{l.severityNumber=o.int32();break}case 3:{l.severityText=o.string();break}case 5:{l.body=d.opentelemetry.proto.common.v1.AnyValue.decode(o,o.uint32());break}case 6:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 7:{l.droppedAttributesCount=o.uint32();break}case 8:{l.flags=o.fixed32();break}case 9:{l.traceId=o.bytes();break}case 10:{l.spanId=o.bytes();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.timeUnixNano!=null&&o.hasOwnProperty("timeUnixNano")&&!E.isInteger(o.timeUnixNano)&&!(o.timeUnixNano&&E.isInteger(o.timeUnixNano.low)&&E.isInteger(o.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(o.observedTimeUnixNano!=null&&o.hasOwnProperty("observedTimeUnixNano")&&!E.isInteger(o.observedTimeUnixNano)&&!(o.observedTimeUnixNano&&E.isInteger(o.observedTimeUnixNano.low)&&E.isInteger(o.observedTimeUnixNano.high)))return"observedTimeUnixNano: integer|Long expected";if(o.severityNumber!=null&&o.hasOwnProperty("severityNumber"))switch(o.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(o.severityText!=null&&o.hasOwnProperty("severityText")&&!E.isString(o.severityText))return"severityText: string expected";if(o.body!=null&&o.hasOwnProperty("body")){var r=d.opentelemetry.proto.common.v1.AnyValue.verify(o.body);if(r)return"body."+r}if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var u=0;u<o.attributes.length;++u){var r=d.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[u]);if(r)return"attributes."+r}}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(o.droppedAttributesCount)?"droppedAttributesCount: integer expected":o.flags!=null&&o.hasOwnProperty("flags")&&!E.isInteger(o.flags)?"flags: integer expected":o.traceId!=null&&o.hasOwnProperty("traceId")&&!(o.traceId&&typeof o.traceId.length=="number"||E.isString(o.traceId))?"traceId: buffer expected":o.spanId!=null&&o.hasOwnProperty("spanId")&&!(o.spanId&&typeof o.spanId.length=="number"||E.isString(o.spanId))?"spanId: buffer expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.logs.v1.LogRecord)return o;var r=new d.opentelemetry.proto.logs.v1.LogRecord;switch(o.timeUnixNano!=null&&(E.Long?(r.timeUnixNano=E.Long.fromValue(o.timeUnixNano)).unsigned=!1:typeof o.timeUnixNano=="string"?r.timeUnixNano=parseInt(o.timeUnixNano,10):typeof o.timeUnixNano=="number"?r.timeUnixNano=o.timeUnixNano:typeof o.timeUnixNano=="object"&&(r.timeUnixNano=new E.LongBits(o.timeUnixNano.low>>>0,o.timeUnixNano.high>>>0).toNumber())),o.observedTimeUnixNano!=null&&(E.Long?(r.observedTimeUnixNano=E.Long.fromValue(o.observedTimeUnixNano)).unsigned=!1:typeof o.observedTimeUnixNano=="string"?r.observedTimeUnixNano=parseInt(o.observedTimeUnixNano,10):typeof o.observedTimeUnixNano=="number"?r.observedTimeUnixNano=o.observedTimeUnixNano:typeof o.observedTimeUnixNano=="object"&&(r.observedTimeUnixNano=new E.LongBits(o.observedTimeUnixNano.low>>>0,o.observedTimeUnixNano.high>>>0).toNumber())),o.severityNumber){default:if(typeof o.severityNumber=="number"){r.severityNumber=o.severityNumber;break}break;case"SEVERITY_NUMBER_UNSPECIFIED":case 0:r.severityNumber=0;break;case"SEVERITY_NUMBER_TRACE":case 1:r.severityNumber=1;break;case"SEVERITY_NUMBER_TRACE2":case 2:r.severityNumber=2;break;case"SEVERITY_NUMBER_TRACE3":case 3:r.severityNumber=3;break;case"SEVERITY_NUMBER_TRACE4":case 4:r.severityNumber=4;break;case"SEVERITY_NUMBER_DEBUG":case 5:r.severityNumber=5;break;case"SEVERITY_NUMBER_DEBUG2":case 6:r.severityNumber=6;break;case"SEVERITY_NUMBER_DEBUG3":case 7:r.severityNumber=7;break;case"SEVERITY_NUMBER_DEBUG4":case 8:r.severityNumber=8;break;case"SEVERITY_NUMBER_INFO":case 9:r.severityNumber=9;break;case"SEVERITY_NUMBER_INFO2":case 10:r.severityNumber=10;break;case"SEVERITY_NUMBER_INFO3":case 11:r.severityNumber=11;break;case"SEVERITY_NUMBER_INFO4":case 12:r.severityNumber=12;break;case"SEVERITY_NUMBER_WARN":case 13:r.severityNumber=13;break;case"SEVERITY_NUMBER_WARN2":case 14:r.severityNumber=14;break;case"SEVERITY_NUMBER_WARN3":case 15:r.severityNumber=15;break;case"SEVERITY_NUMBER_WARN4":case 16:r.severityNumber=16;break;case"SEVERITY_NUMBER_ERROR":case 17:r.severityNumber=17;break;case"SEVERITY_NUMBER_ERROR2":case 18:r.severityNumber=18;break;case"SEVERITY_NUMBER_ERROR3":case 19:r.severityNumber=19;break;case"SEVERITY_NUMBER_ERROR4":case 20:r.severityNumber=20;break;case"SEVERITY_NUMBER_FATAL":case 21:r.severityNumber=21;break;case"SEVERITY_NUMBER_FATAL2":case 22:r.severityNumber=22;break;case"SEVERITY_NUMBER_FATAL3":case 23:r.severityNumber=23;break;case"SEVERITY_NUMBER_FATAL4":case 24:r.severityNumber=24;break}if(o.severityText!=null&&(r.severityText=String(o.severityText)),o.body!=null){if(typeof o.body!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.body: object expected");r.body=d.opentelemetry.proto.common.v1.AnyValue.fromObject(o.body)}if(o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: array expected");r.attributes=[];for(var u=0;u<o.attributes.length;++u){if(typeof o.attributes[u]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: object expected");r.attributes[u]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[u])}}return o.droppedAttributesCount!=null&&(r.droppedAttributesCount=o.droppedAttributesCount>>>0),o.flags!=null&&(r.flags=o.flags>>>0),o.traceId!=null&&(typeof o.traceId=="string"?E.base64.decode(o.traceId,r.traceId=E.newBuffer(E.base64.length(o.traceId)),0):o.traceId.length>=0&&(r.traceId=o.traceId)),o.spanId!=null&&(typeof o.spanId=="string"?E.base64.decode(o.spanId,r.spanId=E.newBuffer(E.base64.length(o.spanId)),0):o.spanId.length>=0&&(r.spanId=o.spanId)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.attributes=[]),r.defaults){if(E.Long){var l=new E.Long(0,0,!1);u.timeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.timeUnixNano=r.longs===String?"0":0;if(u.severityNumber=r.enums===String?"SEVERITY_NUMBER_UNSPECIFIED":0,u.severityText="",u.body=null,u.droppedAttributesCount=0,u.flags=0,r.bytes===String?u.traceId="":(u.traceId=[],r.bytes!==Array&&(u.traceId=E.newBuffer(u.traceId))),r.bytes===String?u.spanId="":(u.spanId=[],r.bytes!==Array&&(u.spanId=E.newBuffer(u.spanId))),E.Long){var l=new E.Long(0,0,!1);u.observedTimeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.observedTimeUnixNano=r.longs===String?"0":0}if(o.timeUnixNano!=null&&o.hasOwnProperty("timeUnixNano")&&(typeof o.timeUnixNano=="number"?u.timeUnixNano=r.longs===String?String(o.timeUnixNano):o.timeUnixNano:u.timeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.timeUnixNano):r.longs===Number?new E.LongBits(o.timeUnixNano.low>>>0,o.timeUnixNano.high>>>0).toNumber():o.timeUnixNano),o.severityNumber!=null&&o.hasOwnProperty("severityNumber")&&(u.severityNumber=r.enums===String?d.opentelemetry.proto.logs.v1.SeverityNumber[o.severityNumber]===void 0?o.severityNumber:d.opentelemetry.proto.logs.v1.SeverityNumber[o.severityNumber]:o.severityNumber),o.severityText!=null&&o.hasOwnProperty("severityText")&&(u.severityText=o.severityText),o.body!=null&&o.hasOwnProperty("body")&&(u.body=d.opentelemetry.proto.common.v1.AnyValue.toObject(o.body,r)),o.attributes&&o.attributes.length){u.attributes=[];for(var c=0;c<o.attributes.length;++c)u.attributes[c]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[c],r)}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=o.droppedAttributesCount),o.flags!=null&&o.hasOwnProperty("flags")&&(u.flags=o.flags),o.traceId!=null&&o.hasOwnProperty("traceId")&&(u.traceId=r.bytes===String?E.base64.encode(o.traceId,0,o.traceId.length):r.bytes===Array?Array.prototype.slice.call(o.traceId):o.traceId),o.spanId!=null&&o.hasOwnProperty("spanId")&&(u.spanId=r.bytes===String?E.base64.encode(o.spanId,0,o.spanId.length):r.bytes===Array?Array.prototype.slice.call(o.spanId):o.spanId),o.observedTimeUnixNano!=null&&o.hasOwnProperty("observedTimeUnixNano")&&(typeof o.observedTimeUnixNano=="number"?u.observedTimeUnixNano=r.longs===String?String(o.observedTimeUnixNano):o.observedTimeUnixNano:u.observedTimeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.observedTimeUnixNano):r.longs===Number?new E.LongBits(o.observedTimeUnixNano.low>>>0,o.observedTimeUnixNano.high>>>0).toNumber():o.observedTimeUnixNano),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.logs.v1.LogRecord"},a}(),i}(),n}(),e}(),t}();$L.exports=d});var qr,IW,CW,wW,UW,DW,VW,WL,zL,XL,JL=m(()=>{qr=$e(KL());Iu();Cu();wu();IW=qr.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,CW=qr.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,wW=qr.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,UW=qr.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,DW=qr.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,VW=qr.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,WL={serializeRequest:function(t){var e=Fn(t);return CW.encode(e).finish()},deserializeResponse:function(t){return IW.decode(t)}},zL={serializeRequest:function(t){var e=Hn(t);return UW.encode(e).finish()},deserializeResponse:function(t){return wW.decode(t)}},XL={serializeRequest:function(t){var e=kn(t);return VW.encode(e).finish()},deserializeResponse:function(t){return DW.decode(t)}}});var QL,Uu,ZL,eI=m(()=>{Iu();Cu();wu();QL={serializeRequest:function(t){var e=kn(t,{useHex:!0,useLongBits:!1}),n=new TextEncoder;return n.encode(JSON.stringify(e))},deserializeResponse:function(t){var e=new TextDecoder;return JSON.parse(e.decode(t))}},Uu={serializeRequest:function(t){var e=Hn(t,{useLongBits:!1}),n=new TextEncoder;return n.encode(JSON.stringify(e))},deserializeResponse:function(t){var e=new TextDecoder;return JSON.parse(e.decode(t))}},ZL={serializeRequest:function(t){var e=Fn(t,{useHex:!0,useLongBits:!1}),n=new TextEncoder;return n.encode(JSON.stringify(e))},deserializeResponse:function(t){var e=new TextDecoder;return JSON.parse(e.decode(t))}}});var id={};it(id,{ESpanKind:()=>bu,JsonLogsSerializer:()=>ZL,JsonMetricsSerializer:()=>Uu,JsonTraceSerializer:()=>QL,ProtobufLogsSerializer:()=>WL,ProtobufMetricsSerializer:()=>zL,ProtobufTraceSerializer:()=>XL,createExportLogsServiceRequest:()=>Fn,createExportMetricsServiceRequest:()=>Hn,createExportTraceServiceRequest:()=>kn,encodeAsLongBits:()=>Pu,encodeAsString:()=>od,getOtlpEncoder:()=>Sr,hrTimeToNanos:()=>Ru,toLongBits:()=>nd});var Du=m(()=>{Ai();GL();Iu();Cu();wu();JL();eI()});var tI,rI=m(()=>{tI="0.54.0"});var nI,Vu,BW,GW,kW,oI=m(()=>{Wp();yi();Du();rI();nI=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Vu=function(){return Vu=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},Vu.apply(this,arguments)},BW={"User-Agent":"OTel-OTLP-Exporter-JavaScript/"+tI},GW=function(t){nI(e,t);function e(n){return t.call(this,n,Uu,Vu(Vu({},BW),{"Content-Type":"application/json"}),"METRICS","v1/metrics")||this}return e}(vi),kW=function(t){nI(e,t);function e(n){return t.call(this,new GW(n),n)||this}return e}(Kp)});var iI=m(()=>{oI()});var aI=m(()=>{iI()});var sI={};it(sI,{AggregationTemporalityPreference:()=>Un,CumulativeTemporalitySelector:()=>fu,DeltaTemporalitySelector:()=>jp,LowMemoryTemporalitySelector:()=>$p,OTLPMetricExporter:()=>kW,OTLPMetricExporterBase:()=>Kp});var uI=m(()=>{aI();qp();Wp()});var lI=h(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});Bu.createServiceClientConstructor=void 0;var HW=no();function FW(t,e){let n={export:{path:t,requestStream:!1,responseStream:!1,requestSerialize:i=>i,requestDeserialize:i=>i,responseSerialize:i=>i,responseDeserialize:i=>i}};return HW.makeGenericClientConstructor(n,e)}Bu.createServiceClientConstructor=FW});var Gu=h(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.GrpcExporterTransport=xt.createEmptyMetadata=xt.createSslCredentials=xt.createInsecureCredentials=void 0;var YW=0,qW=2;function jW(t){return t==="gzip"?qW:YW}function $W(){let{credentials:t}=no();return t.createInsecure()}xt.createInsecureCredentials=$W;function KW(t,e,n){let{credentials:i}=no();return i.createSsl(t,e,n)}xt.createSslCredentials=KW;function WW(){let{Metadata:t}=no();return new t}xt.createEmptyMetadata=WW;var ad=class{constructor(e){this._parameters=e}shutdown(){var e;(e=this._client)===null||e===void 0||e.close()}send(e,n){let i=Buffer.from(e);if(this._client==null){let{createServiceClientConstructor:a}=lI();try{this._metadata=this._parameters.metadata()}catch(o){return Promise.resolve({status:"failure",error:o})}let s=a(this._parameters.grpcPath,this._parameters.grpcName);try{this._client=new s(this._parameters.address,this._parameters.credentials(),{"grpc.default_compression_algorithm":jW(this._parameters.compression)})}catch(o){return Promise.resolve({status:"failure",error:o})}}return new Promise(a=>{let s=Date.now()+n;if(this._metadata==null)return a({error:new Error("metadata was null"),status:"failure"});this._client.export(i,this._metadata,{deadline:s},(o,r)=>{a(o?{status:"failure",error:o}:{data:r,status:"success"})})})}};xt.GrpcExporterTransport=ad});var cI=h(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});ku.VERSION=void 0;ku.VERSION="0.54.0"});var _I=h(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.getOtlpGrpcDefaultConfiguration=hr.mergeOtlpGrpcConfigurationWithDefaults=hr.validateAndNormalizeUrl=void 0;var dI=(yi(),Y(Nu)),Oi=Gu(),zW=cI(),XW=L("url"),fI=(b(),Y(Re));function EI(t){var e;t=t.trim(),t.match(/^([\w]{1,8}):\/\//)||(t=`https://${t}`);let i=new XW.URL(t);return i.protocol==="unix:"?t:(i.pathname&&i.pathname!=="/"&&fI.diag.warn("URL path should not be set when using grpc, the path part of the URL will be ignored."),i.protocol!==""&&!(!((e=i.protocol)===null||e===void 0)&&e.match(/^(http)s?:$/))&&fI.diag.warn("URL protocol should be http(s)://. Using http://."),i.host)}hr.validateAndNormalizeUrl=EI;function pI(t,e){for(let[n,i]of Object.entries(e.getMap()))t.get(n).length<1&&t.set(n,i)}function JW(t,e,n){var i,a,s,o,r;let u=(a=(i=t.url)!==null&&i!==void 0?i:e.url)!==null&&a!==void 0?a:n.url;return Object.assign(Object.assign({},(0,dI.mergeOtlpSharedConfigurationWithDefaults)(t,e,n)),{metadata:()=>{var l,c,p,_;let f=n.metadata();return pI(f,(c=(l=t.metadata)===null||l===void 0?void 0:l.call(t).clone())!==null&&c!==void 0?c:(0,Oi.createEmptyMetadata)()),pI(f,(_=(p=e.metadata)===null||p===void 0?void 0:p.call(e))!==null&&_!==void 0?_:(0,Oi.createEmptyMetadata)()),f},url:EI(u),credentials:(r=(s=t.credentials)!==null&&s!==void 0?s:(o=e.credentials)===null||o===void 0?void 0:o.call(e,u))!==null&&r!==void 0?r:n.credentials(u)})}hr.mergeOtlpGrpcConfigurationWithDefaults=JW;function QW(){return Object.assign(Object.assign({},(0,dI.getSharedConfigurationDefaults)()),{metadata:()=>{let t=(0,Oi.createEmptyMetadata)();return t.set("User-Agent",`OTel-OTLP-Exporter-JavaScript/${zW.VERSION}`),t},url:"http://localhost:4317",credentials:t=>t.startsWith("http://")?()=>(0,Oi.createInsecureCredentials)():()=>(0,Oi.createSslCredentials)()})}hr.getOtlpGrpcDefaultConfiguration=QW});var mI=h(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.getOtlpGrpcConfigurationFromEnv=void 0;var SI=(K(),Y(Us)),gi=Gu(),ZW=(yi(),Y(Nu)),ez=L("fs"),tz=L("path"),TI=(b(),Y(Re));function sd(t,e){if(t!=null&&t!=="")return t;if(e!=null&&e!=="")return e}function rz(t){var e,n;let i=(e=process.env[`OTEL_EXPORTER_OTLP_${t}_HEADERS`])===null||e===void 0?void 0:e.trim(),a=(n=process.env.OTEL_EXPORTER_OTLP_HEADERS)===null||n===void 0?void 0:n.trim(),s=SI.baggageUtils.parseKeyPairsIntoRecord(i),o=SI.baggageUtils.parseKeyPairsIntoRecord(a);if(Object.keys(s).length===0&&Object.keys(o).length===0)return;let r=Object.assign({},o,s),u=(0,gi.createEmptyMetadata)();for(let[l,c]of Object.entries(r))u.set(l,c);return u}function nz(t){let e=rz(t);if(e!=null)return()=>e}function oz(t){var e,n;let i=(e=process.env[`OTEL_EXPORTER_OTLP_${t}_ENDPOINT`])===null||e===void 0?void 0:e.trim(),a=(n=process.env.OTEL_EXPORTER_OTLP_ENDPOINT)===null||n===void 0?void 0:n.trim();return sd(i,a)}function iz(t){var e,n;let i=(e=process.env[`OTEL_EXPORTER_OTLP_${t}_INSECURE`])===null||e===void 0?void 0:e.toLowerCase().trim(),a=(n=process.env.OTEL_EXPORTER_OTLP_INSECURE)===null||n===void 0?void 0:n.toLowerCase().trim();return sd(i,a)==="true"}function ud(t,e,n){var i,a;let s=(i=process.env[t])===null||i===void 0?void 0:i.trim(),o=(a=process.env[e])===null||a===void 0?void 0:a.trim(),r=sd(s,o);if(r!=null)try{return ez.readFileSync(tz.resolve(process.cwd(),r))}catch{TI.diag.warn(n);return}else return}function az(t){return ud(`OTEL_EXPORTER_OTLP_${t}_CLIENT_CERTIFICATE`,"OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE","Failed to read client certificate chain file")}function sz(t){return ud(`OTEL_EXPORTER_OTLP_${t}_CLIENT_KEY`,"OTEL_EXPORTER_OTLP_CLIENT_KEY","Failed to read client certificate private key file")}function hI(t){return ud(`OTEL_EXPORTER_OTLP_${t}_CERTIFICATE`,"OTEL_EXPORTER_OTLP_CERTIFICATE","Failed to read root certificate file")}function vI(t){let e=sz(t),n=az(t),i=hI(t),a=e!=null&&n!=null;return i!=null&&!a?(TI.diag.warn("Client key and certificate must both be provided, but one was missing - attempting to create credentials from just the root certificate"),(0,gi.createSslCredentials)(hI(t))):(0,gi.createSslCredentials)(i,e,n)}function uz(t){return iz(t)?(0,gi.createInsecureCredentials)():vI(t)}function lz(t){return Object.assign(Object.assign({},(0,ZW.getSharedConfigurationFromEnvironment)(t)),{metadata:nz(t),url:oz(t),credentials:e=>e.startsWith("http://")?()=>(0,gi.createInsecureCredentials)():e.startsWith("https://")?()=>vI(t):()=>uz(t)})}Hu.getOtlpGrpcConfigurationFromEnv=lz});var gI=h(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});Fu.OTLPGRPCExporterNodeBase=void 0;var yI=(b(),Y(Re)),ld=(yi(),Y(Nu)),AI=Gu(),OI=_I(),cz=mI(),cd=class extends ld.OTLPExporterBase{constructor(e={},n,i,a,s){super(e);let o=e.credentials,r=(0,OI.mergeOtlpGrpcConfigurationWithDefaults)({url:e.url,metadata:()=>{var u;return(u=e.metadata)!==null&&u!==void 0?u:(0,AI.createEmptyMetadata)()},compression:e.compression,timeoutMillis:e.timeoutMillis,concurrencyLimit:e.concurrencyLimit,credentials:o!=null?()=>o:void 0},(0,cz.getOtlpGrpcConfigurationFromEnv)(s),(0,OI.getOtlpGrpcDefaultConfiguration)());this._serializer=n,this._timeoutMillis=r.timeoutMillis,this._concurrencyLimit=r.concurrencyLimit,e.headers&&yI.diag.warn("Headers cannot be set when using grpc"),this._transport=new AI.GrpcExporterTransport({address:r.url,compression:r.compression,credentials:r.credentials,grpcName:i,grpcPath:a,metadata:r.metadata})}onShutdown(){this._transport.shutdown()}send(e,n,i){if(this._shutdownOnce.isCalled){yI.diag.debug("Shutdown already started. Cannot send objects");return}let a=this._serializer.serializeRequest(e);if(a==null){i(new Error("Could not serialize message"));return}let s=this._transport.send(a,this._timeoutMillis).then(r=>{r.status==="success"?n():r.status==="failure"&&r.error?i(r.error):r.status==="retryable"?i(new ld.OTLPExporterError("Export failed with retryable status")):i(new ld.OTLPExporterError("Export failed with unknown error"))},i);this._sendingPromises.push(s);let o=()=>{let r=this._sendingPromises.indexOf(s);this._sendingPromises.splice(r,1)};s.then(o,o)}};Fu.OTLPGRPCExporterNodeBase=cd});var fd=h(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.OTLPGRPCExporterNodeBase=void 0;var fz=gI();Object.defineProperty(Yu,"OTLPGRPCExporterNodeBase",{enumerable:!0,get:function(){return fz.OTLPGRPCExporterNodeBase}})});var NI=h(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.OTLPMetricExporter=void 0;var pz=(uI(),Y(sI)),dz=fd(),Ez=(Du(),Y(id)),pd=class extends dz.OTLPGRPCExporterNodeBase{constructor(e){super(e,Ez.ProtobufMetricsSerializer,"MetricsExportService","/opentelemetry.proto.collector.metrics.v1.MetricsService/Export","METRICS")}},dd=class extends pz.OTLPMetricExporterBase{constructor(e){super(new pd(e),e)}};qu.OTLPMetricExporter=dd});var RI=h(jr=>{"use strict";var _z=jr&&jr.__createBinding||(Object.create?function(t,e,n,i){i===void 0&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]}),Sz=jr&&jr.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&_z(e,t,n)};Object.defineProperty(jr,"__esModule",{value:!0});Sz(NI(),jr)});var hd=h(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.PrometheusSerializer=void 0;var hz=(b(),Y(Re)),$r=(wn(),Y(Yp)),PI=(K(),Y(Us));function $u(t){return t.replace(/\\/g,"\\\\").replace(/\n/g,"\\n")}function bI(t=""){return typeof t!="string"&&(t=JSON.stringify(t)),$u(t).replace(/"/g,'\\"')}var Tz=/[^a-z0-9_]/gi,vz=/_{2,}/g;function _d(t){return t.replace(Tz,"_").replace(vz,"_")}function Ed(t,e){return!t.endsWith("_total")&&e===$r.InstrumentType.COUNTER&&(t=t+"_total"),t}function mz(t){return Number.isNaN(t)?"NaN":Number.isFinite(t)?`${t}`:t<0?"-Inf":"+Inf"}function yz(t){switch(t.dataPointType){case $r.DataPointType.SUM:return t.isMonotonic?"counter":"gauge";case $r.DataPointType.GAUGE:return"gauge";case $r.DataPointType.HISTOGRAM:return"histogram";default:return"untyped"}}function ju(t,e,n,i,a){let s=!1,o="";for(let[r,u]of Object.entries(e)){let l=_d(r);s=!0,o+=`${o.length>0?",":""}${l}="${bI(u)}"`}if(a)for(let[r,u]of Object.entries(a)){let l=_d(r);s=!0,o+=`${o.length>0?",":""}${l}="${bI(u)}"`}return s&&(t+=`{${o}}`),`${t} ${mz(n)}${i!==void 0?" "+String(i):""}
|
52
|
+
`}var Az="# no registered metrics",Sd=class{constructor(e,n=!1){e&&(this._prefix=e+"_"),this._appendTimestamp=n}serialize(e){let n="";for(let i of e.scopeMetrics)n+=this._serializeScopeMetrics(i);return n===""&&(n+=Az),this._serializeResource(e.resource)+n}_serializeScopeMetrics(e){let n="";for(let i of e.metrics)n+=this._serializeMetricData(i)+`
|
53
|
+
`;return n}_serializeMetricData(e){let n=_d($u(e.descriptor.name));this._prefix&&(n=`${this._prefix}${n}`);let i=e.dataPointType;n=Ed(n,e.descriptor.type);let a=`# HELP ${n} ${$u(e.descriptor.description||"description missing")}`,s=e.descriptor.unit?`
|
54
|
+
# UNIT ${n} ${$u(e.descriptor.unit)}`:"",o=`# TYPE ${n} ${yz(e)}`,r="";switch(i){case $r.DataPointType.SUM:case $r.DataPointType.GAUGE:{r=e.dataPoints.map(u=>this._serializeSingularDataPoint(n,e.descriptor.type,u)).join("");break}case $r.DataPointType.HISTOGRAM:{r=e.dataPoints.map(u=>this._serializeHistogramDataPoint(n,e.descriptor.type,u)).join("");break}default:hz.diag.error(`Unrecognizable DataPointType: ${i} for metric "${n}"`)}return`${a}${s}
|
55
|
+
${o}
|
56
|
+
${r}`.trim()}_serializeSingularDataPoint(e,n,i){let a="";e=Ed(e,n);let{value:s,attributes:o}=i,r=(0,PI.hrTimeToMilliseconds)(i.endTime);return a+=ju(e,o,s,this._appendTimestamp?r:void 0,void 0),a}_serializeHistogramDataPoint(e,n,i){let a="";e=Ed(e,n);let s=i.attributes,o=i.value,r=(0,PI.hrTimeToMilliseconds)(i.endTime);for(let p of["count","sum"]){let _=o[p];_!=null&&(a+=ju(e+"_"+p,s,_,this._appendTimestamp?r:void 0,void 0))}let u=0,l=o.buckets.counts.entries(),c=!1;for(let[p,_]of l){u+=_;let f=o.buckets.boundaries[p];if(f===void 0&&c)break;f===1/0&&(c=!0),a+=ju(e+"_bucket",s,u,this._appendTimestamp?r:void 0,{le:f===void 0||f===1/0?"+Inf":String(f)})}return a}_serializeResource(e){let n="target_info",i=`# HELP ${n} Target metadata`,a=`# TYPE ${n} gauge`,s=ju(n,e.attributes,1).trim();return`${i}
|
57
57
|
${a}
|
58
|
-
${
|
59
|
-
`}};Ms.PrometheusSerializer=sd});var WM=y(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.PrometheusExporter=void 0;var ho=(w(),Y(Ne)),Sz=(F(),Y(Gr)),cd=(Cn(),Y(Up)),Ez=M("http"),Tz=ld(),gz=M("url"),Pt=class extends cd.MetricReader{constructor(e={},n=()=>{}){super({aggregationSelector:o=>cd.Aggregation.Default(),aggregationTemporalitySelector:o=>cd.AggregationTemporality.CUMULATIVE,metricProducers:e.metricProducers}),this._requestHandler=(o,a)=>{o.url!=null&&new gz.URL(o.url,this._baseUrl).pathname===this._endpoint?this._exportMetrics(a):this._notFound(a)},this._exportMetrics=o=>{o.statusCode=200,o.setHeader("content-type","text/plain"),this.collect().then(a=>{let{resourceMetrics:u,errors:i}=a;i.length&&ho.diag.error("PrometheusExporter: metrics collection errors",...i),o.end(this._serializer.serialize(u))},a=>{o.end(`# failed to export metrics: ${a}`)})},this._notFound=o=>{o.statusCode=404,o.end()},this._host=e.host||process.env.OTEL_EXPORTER_PROMETHEUS_HOST||Pt.DEFAULT_OPTIONS.host,this._port=e.port||Number(process.env.OTEL_EXPORTER_PROMETHEUS_PORT)||Pt.DEFAULT_OPTIONS.port,this._prefix=e.prefix||Pt.DEFAULT_OPTIONS.prefix,this._appendTimestamp=typeof e.appendTimestamp=="boolean"?e.appendTimestamp:Pt.DEFAULT_OPTIONS.appendTimestamp,this._server=(0,Ez.createServer)(this._requestHandler).unref(),this._serializer=new Tz.PrometheusSerializer(this._prefix,this._appendTimestamp),this._baseUrl=`http://${this._host}:${this._port}/`,this._endpoint=(e.endpoint||Pt.DEFAULT_OPTIONS.endpoint).replace(/^([^/])/,"/$1"),e.preventServerStart!==!0?this.startServer().then(n,o=>{ho.diag.error(o),n(o)}):n&&queueMicrotask(n)}async onForceFlush(){}onShutdown(){return this.stopServer()}stopServer(){return this._server?new Promise(e=>{this._server.close(n=>{n?n.code!=="ERR_SERVER_NOT_RUNNING"&&(0,Sz.globalErrorHandler)(n):ho.diag.debug("Prometheus exporter was stopped"),e()})}):(ho.diag.debug("Prometheus stopServer() was called but server was never started."),Promise.resolve())}startServer(){var e;return(e=this._startServerPromise)!==null&&e!==void 0||(this._startServerPromise=new Promise((n,o)=>{this._server.once("error",o),this._server.listen({port:this._port,host:this._host},()=>{ho.diag.debug(`Prometheus exporter server started: ${this._host}:${this._port}/${this._endpoint}`),n()})})),this._startServerPromise}getMetricsRequestHandler(e,n){this._exportMetrics(n)}};Is.PrometheusExporter=Pt;Pt.DEFAULT_OPTIONS={host:void 0,port:9464,endpoint:"/metrics",prefix:"",appendTimestamp:!1}});var JM=y(XM=>{"use strict";Object.defineProperty(XM,"__esModule",{value:!0})});var QM=y(Ft=>{"use strict";var Oz=Ft&&Ft.__createBinding||(Object.create?function(t,e,n,o){o===void 0&&(o=n),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,o){o===void 0&&(o=n),t[o]=e[n]}),fd=Ft&&Ft.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Oz(e,t,n)};Object.defineProperty(Ft,"__esModule",{value:!0});fd(WM(),Ft);fd(ld(),Ft);fd(JM(),Ft)});var dd=y(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.AbstractAsyncHooksContextManager=void 0;var Az=M("events"),bz=["addListener","on","once","prependListener","prependOnceListener"],pd=class{constructor(){this._kOtListeners=Symbol("OtListeners"),this._wrapped=!1}bind(e,n){return n instanceof Az.EventEmitter?this._bindEventEmitter(e,n):typeof n=="function"?this._bindFunction(e,n):n}_bindFunction(e,n){let o=this,a=function(...u){return o.with(e,()=>n.apply(this,u))};return Object.defineProperty(a,"length",{enumerable:!1,configurable:!0,writable:!1,value:n.length}),a}_bindEventEmitter(e,n){return this._getPatchMap(n)!==void 0||(this._createPatchMap(n),bz.forEach(a=>{n[a]!==void 0&&(n[a]=this._patchAddListener(n,n[a],e))}),typeof n.removeListener=="function"&&(n.removeListener=this._patchRemoveListener(n,n.removeListener)),typeof n.off=="function"&&(n.off=this._patchRemoveListener(n,n.off)),typeof n.removeAllListeners=="function"&&(n.removeAllListeners=this._patchRemoveAllListeners(n,n.removeAllListeners))),n}_patchRemoveListener(e,n){let o=this;return function(a,u){var i;let r=(i=o._getPatchMap(e))===null||i===void 0?void 0:i[a];if(r===void 0)return n.call(this,a,u);let s=r.get(u);return n.call(this,a,s||u)}}_patchRemoveAllListeners(e,n){let o=this;return function(a){let u=o._getPatchMap(e);return u!==void 0&&(arguments.length===0?o._createPatchMap(e):u[a]!==void 0&&delete u[a]),n.apply(this,arguments)}}_patchAddListener(e,n,o){let a=this;return function(u,i){if(a._wrapped)return n.call(this,u,i);let r=a._getPatchMap(e);r===void 0&&(r=a._createPatchMap(e));let s=r[u];s===void 0&&(s=new WeakMap,r[u]=s);let l=a.bind(o,i);s.set(i,l),a._wrapped=!0;try{return n.call(this,u,l)}finally{a._wrapped=!1}}}_createPatchMap(e){let n=Object.create(null);return e[this._kOtListeners]=n,n}_getPatchMap(e){return e[this._kOtListeners]}};Ls.AbstractAsyncHooksContextManager=pd});var ZM=y(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.AsyncHooksContextManager=void 0;var xz=(w(),Y(Ne)),Nz=M("async_hooks"),Rz=dd(),hd=class extends Rz.AbstractAsyncHooksContextManager{constructor(){super(),this._contexts=new Map,this._stack=[],this._asyncHook=Nz.createHook({init:this._init.bind(this),before:this._before.bind(this),after:this._after.bind(this),destroy:this._destroy.bind(this),promiseResolve:this._destroy.bind(this)})}active(){var e;return(e=this._stack[this._stack.length-1])!==null&&e!==void 0?e:xz.ROOT_CONTEXT}with(e,n,o,...a){this._enterContext(e);try{return n.call(o,...a)}finally{this._exitContext()}}enable(){return this._asyncHook.enable(),this}disable(){return this._asyncHook.disable(),this._contexts.clear(),this._stack=[],this}_init(e,n){if(n==="TIMERWRAP")return;let o=this._stack[this._stack.length-1];o!==void 0&&this._contexts.set(e,o)}_destroy(e){this._contexts.delete(e)}_before(e){let n=this._contexts.get(e);n!==void 0&&this._enterContext(n)}_after(){this._exitContext()}_enterContext(e){this._stack.push(e)}_exitContext(){this._stack.pop()}};Cs.AsyncHooksContextManager=hd});var eI=y(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.AsyncLocalStorageContextManager=void 0;var Pz=(w(),Y(Ne)),wz=M("async_hooks"),Mz=dd(),md=class extends Mz.AbstractAsyncHooksContextManager{constructor(){super(),this._asyncLocalStorage=new wz.AsyncLocalStorage}active(){var e;return(e=this._asyncLocalStorage.getStore())!==null&&e!==void 0?e:Pz.ROOT_CONTEXT}with(e,n,o,...a){let u=o==null?n:n.bind(o);return this._asyncLocalStorage.run(e,u,...a)}enable(){return this}disable(){return this._asyncLocalStorage.disable(),this}};Us.AsyncLocalStorageContextManager=md});var tI=y(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.AsyncLocalStorageContextManager=Yn.AsyncHooksContextManager=void 0;var Iz=ZM();Object.defineProperty(Yn,"AsyncHooksContextManager",{enumerable:!0,get:function(){return Iz.AsyncHooksContextManager}});var Lz=eI();Object.defineProperty(Yn,"AsyncLocalStorageContextManager",{enumerable:!0,get:function(){return Lz.AsyncLocalStorageContextManager}})});var $n,vd=E(()=>{w();$n=Qr("OpenTelemetry Context Key B3 Debug Flag")});var Kr,mo,vo,yo,yd,_o,So=E(()=>{Kr="b3",mo="x-b3-traceid",vo="x-b3-spanid",yo="x-b3-sampled",yd="x-b3-parentspanid",_o="x-b3-flags"});function Dz(t){return t===J.SAMPLED||t===J.NONE}function Vz(t){return Array.isArray(t)?t[0]:t}function Ds(t,e,n){var o=e.get(t,n);return Vz(o)}function kz(t,e){var n=Ds(t,e,mo);return typeof n=="string"?n.padStart(32,"0"):""}function Bz(t,e){var n=Ds(t,e,vo);return typeof n=="string"?n:""}function rI(t,e){var n=Ds(t,e,_o);return n==="1"?"1":void 0}function Gz(t,e){var n=Ds(t,e,yo),o=rI(t,e);if(o==="1"||Cz.has(n))return J.SAMPLED;if(n===void 0||Uz.has(n))return J.NONE}var Cz,Uz,nI,iI=E(()=>{w();F();vd();So();Cz=new Set([!0,"true","True","1",1]),Uz=new Set([!1,"false","False","0",0]);nI=function(){function t(){}return t.prototype.inject=function(e,n,o){var a=X.getSpanContext(e);if(!(!a||!dt(a)||Ce(e))){var u=e.getValue($n);o.set(n,mo,a.traceId),o.set(n,vo,a.spanId),u==="1"?o.set(n,_o,u):a.traceFlags!==void 0&&o.set(n,yo,(J.SAMPLED&a.traceFlags)===J.SAMPLED?"1":"0")}},t.prototype.extract=function(e,n,o){var a=kz(n,o),u=Bz(n,o),i=Gz(n,o),r=rI(n,o);return Yt(a)&&Io(u)&&Dz(i)?(e=e.setValue($n,r),X.setSpanContext(e,{traceId:a,spanId:u,isRemote:!0,traceFlags:i})):e},t.prototype.fields=function(){return[mo,vo,_o,yo,yd]},t}()});function $z(t){return t.length===32?t:""+Hz+t}function Kz(t){return t&&jz.has(t)?J.SAMPLED:J.NONE}var qz,Fz,Hz,jz,Yz,oI,aI=E(()=>{w();F();vd();So();qz=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),a,u=[],i;try{for(;(e===void 0||e-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(r){i={error:r}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u},Fz=/((?:[0-9a-f]{16}){1,2})-([0-9a-f]{16})(?:-([01d](?![0-9a-f])))?(?:-([0-9a-f]{16}))?/,Hz="0".repeat(16),jz=new Set(["d","1"]),Yz="d";oI=function(){function t(){}return t.prototype.inject=function(e,n,o){var a=X.getSpanContext(e);if(!(!a||!dt(a)||Ce(e))){var u=e.getValue($n)||a.traceFlags&1,i=a.traceId+"-"+a.spanId+"-"+u;o.set(n,Kr,i)}},t.prototype.extract=function(e,n,o){var a=o.get(n,Kr),u=Array.isArray(a)?a[0]:a;if(typeof u!="string")return e;var i=u.match(Fz);if(!i)return e;var r=qz(i,4),s=r[1],l=r[2],c=r[3],p=$z(s);if(!Yt(p)||!Io(l))return e;var m=Kz(c);return c===Yz&&(e=e.setValue($n,c)),X.setSpanContext(e,{traceId:p,spanId:l,isRemote:!0,traceFlags:m})},t.prototype.fields=function(){return[Kr]},t}()});var Eo,_d=E(()=>{(function(t){t[t.SINGLE_HEADER=0]="SINGLE_HEADER",t[t.MULTI_HEADER=1]="MULTI_HEADER"})(Eo||(Eo={}))});var zz,uI=E(()=>{F();iI();aI();So();_d();zz=function(){function t(e){e===void 0&&(e={}),this._b3MultiPropagator=new nI,this._b3SinglePropagator=new oI,e.injectEncoding===Eo.MULTI_HEADER?(this._inject=this._b3MultiPropagator.inject,this._fields=this._b3MultiPropagator.fields()):(this._inject=this._b3SinglePropagator.inject,this._fields=this._b3SinglePropagator.fields())}return t.prototype.inject=function(e,n,o){Ce(e)||this._inject(e,n,o)},t.prototype.extract=function(e,n,o){var a=o.get(n,Kr),u=Array.isArray(a)?a[0]:a;return u?this._b3SinglePropagator.extract(e,n,o):this._b3MultiPropagator.extract(e,n,o)},t.prototype.fields=function(){return this._fields},t}()});var sI={};it(sI,{B3InjectEncoding:()=>Eo,B3Propagator:()=>zz,B3_CONTEXT_HEADER:()=>Kr,X_B3_FLAGS:()=>_o,X_B3_PARENT_SPAN_ID:()=>yd,X_B3_SAMPLED:()=>yo,X_B3_SPAN_ID:()=>vo,X_B3_TRACE_ID:()=>mo});var lI=E(()=>{uI();So();_d()});var cI,fI=E(()=>{cI="exception"});var Wz,pI,Xz,Sd,Ed=E(()=>{w();F();Ct();fI();Wz=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},pI=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),a,u=[],i;try{for(;(e===void 0||e-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(r){i={error:r}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u},Xz=function(t,e,n){if(n||arguments.length===2)for(var o=0,a=e.length,u;o<a;o++)(u||!(o in e))&&(u||(u=Array.prototype.slice.call(e,0,o)),u[o]=e[o]);return t.concat(u||Array.prototype.slice.call(e))},Sd=function(){function t(e,n,o,a,u,i,r,s,l,c){r===void 0&&(r=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:uh.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=o,this._spanContext=a,this.parentSpanId=i,this.kind=u,this.links=r;var p=Date.now();this._performanceStartTime=kt.now(),this._performanceOffset=p-(this._performanceStartTime+$i()),this._startTimeProvided=s!=null,this.startTime=this._getTime(s??p),this.resource=e.resource,this.instrumentationLibrary=e.instrumentationLibrary,this._spanLimits=e.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,c!=null&&this.setAttributes(c),this._spanProcessor=e.getActiveSpanProcessor(),this._spanProcessor.onStart(this,n)}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(e,n){return n==null||this._isSpanEnded()?this:e.length===0?(A.warn("Invalid attribute key: "+e),this):lu(n)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(n),this):(A.warn("Invalid attribute value set for key: "+e),this)},t.prototype.setAttributes=function(e){var n,o;try{for(var a=Wz(Object.entries(e)),u=a.next();!u.done;u=a.next()){var i=pI(u.value,2),r=i[0],s=i[1];this.setAttribute(r,s)}}catch(l){n={error:l}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return this},t.prototype.addEvent=function(e,n,o){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return A.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(this._droppedEventsCount===0&&A.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),vu(n)&&(vu(o)||(o=n),n=void 0);var a=Dr(n);return this.events.push({name:e,attributes:a,time:this._getTime(o),droppedAttributesCount:0}),this},t.prototype.addLink=function(e){return this.links.push(e),this},t.prototype.addLinks=function(e){var n;return(n=this.links).push.apply(n,Xz([],pI(e),!1)),this},t.prototype.setStatus=function(e){return this._isSpanEnded()?this:(this.status=e,this)},t.prototype.updateName=function(e){return this._isSpanEnded()?this:(this.name=e,this)},t.prototype.end=function(e){if(this._isSpanEnded()){A.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(e),this._duration=Gf(this.startTime,this.endTime),this._duration[0]<0&&(A.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&A.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this)},t.prototype._getTime=function(e){if(typeof e=="number"&&e<kt.now())return mu(e+this._performanceOffset);if(typeof e=="number")return be(e);if(e instanceof Date)return be(e.getTime());if(Ki(e))return e;if(this._startTimeProvided)return be(Date.now());var n=kt.now()-this._performanceStartTime;return yu(this.startTime,be(n))},t.prototype.isRecording=function(){return this._ended===!1},t.prototype.recordException=function(e,n){var o={};typeof e=="string"?o[li]=e:e&&(e.code?o[si]=e.code.toString():e.name&&(o[si]=e.name),e.message&&(o[li]=e.message),e.stack&&(o[Ll]=e.stack)),o[si]||o[li]?this.addEvent(cI,o,n):A.warn("Failed to record an exception "+e)},Object.defineProperty(t.prototype,"duration",{get:function(){return this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"droppedAttributesCount",{get:function(){return this._droppedAttributesCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"droppedEventsCount",{get:function(){return this._droppedEventsCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"droppedLinksCount",{get:function(){return this._droppedLinksCount},enumerable:!1,configurable:!0}),t.prototype._isSpanEnded=function(){return this._ended&&A.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},t.prototype._truncateToLimitUtil=function(e,n){return e.length<=n?e:e.substr(0,n)},t.prototype._truncateToSize=function(e){var n=this,o=this._attributeValueLengthLimit;return o<=0?(A.warn("Attribute value limit must be positive, got "+o),e):typeof e=="string"?this._truncateToLimitUtil(e,o):Array.isArray(e)?e.map(function(a){return typeof a=="string"?n._truncateToLimitUtil(a,o):a}):e},t}()});var wt,To=E(()=>{(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(wt||(wt={}))});var zr,Vs=E(()=>{To();zr=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:wt.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}()});var Ht,ks=E(()=>{To();Ht=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:wt.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}()});var go,Td=E(()=>{w();F();Vs();ks();go=function(){function t(e){var n,o,a,u;this._root=e.root,this._root||(Ae(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Ht),this._remoteParentSampled=(n=e.remoteParentSampled)!==null&&n!==void 0?n:new Ht,this._remoteParentNotSampled=(o=e.remoteParentNotSampled)!==null&&o!==void 0?o:new zr,this._localParentSampled=(a=e.localParentSampled)!==null&&a!==void 0?a:new Ht,this._localParentNotSampled=(u=e.localParentNotSampled)!==null&&u!==void 0?u:new zr}return t.prototype.shouldSample=function(e,n,o,a,u,i){var r=X.getSpanContext(e);return!r||!dt(r)?this._root.shouldSample(e,n,o,a,u,i):r.isRemote?r.traceFlags&J.SAMPLED?this._remoteParentSampled.shouldSample(e,n,o,a,u,i):this._remoteParentNotSampled.shouldSample(e,n,o,a,u,i):r.traceFlags&J.SAMPLED?this._localParentSampled.shouldSample(e,n,o,a,u,i):this._localParentNotSampled.shouldSample(e,n,o,a,u,i)},t.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},t}()});var Bs,gd=E(()=>{w();To();Bs=function(){function t(e){e===void 0&&(e=0),this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}return t.prototype.shouldSample=function(e,n){return{decision:Yt(n)&&this._accumulate(n)<this._upperBound?wt.RECORD_AND_SAMPLED:wt.NOT_RECORD}},t.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},t.prototype._normalize=function(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e},t.prototype._accumulate=function(e){for(var n=0,o=0;o<e.length/8;o++){var a=o*8,u=parseInt(e.slice(a,a+8),16);n=(n^u)>>>0}return n},t}()});function Gs(){return{sampler:Od(Jz),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:q().OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:q().OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:q().OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:q().OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:q().OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:q().OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:q().OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:q().OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}}}function Od(t){switch(t===void 0&&(t=q()),t.OTEL_TRACES_SAMPLER){case We.AlwaysOn:return new Ht;case We.AlwaysOff:return new zr;case We.ParentBasedAlwaysOn:return new go({root:new Ht});case We.ParentBasedAlwaysOff:return new go({root:new zr});case We.TraceIdRatio:return new Bs(dI(t));case We.ParentBasedTraceIdRatio:return new go({root:new Bs(dI(t))});default:return A.error('OTEL_TRACES_SAMPLER value "'+t.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+Qz+'".'),new Ht}}function dI(t){if(t.OTEL_TRACES_SAMPLER_ARG===void 0||t.OTEL_TRACES_SAMPLER_ARG==="")return A.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to "+Kn+"."),Kn;var e=Number(t.OTEL_TRACES_SAMPLER_ARG);return isNaN(e)?(A.error("OTEL_TRACES_SAMPLER_ARG="+t.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to "+Kn+"."),Kn):e<0||e>1?(A.error("OTEL_TRACES_SAMPLER_ARG="+t.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to "+Kn+"."),Kn):e}var Jz,Qz,Kn,Ad=E(()=>{w();F();Vs();ks();Td();gd();Jz=q(),Qz=We.AlwaysOn,Kn=1});function hI(t){var e={sampler:Od()},n=Gs(),o=Object.assign({},n,e,t);return o.generalLimits=Object.assign({},n.generalLimits,t.generalLimits||{}),o.spanLimits=Object.assign({},n.spanLimits,t.spanLimits||{}),o}function mI(t){var e,n,o,a,u,i,r,s,l,c,p,m,f=Object.assign({},t.spanLimits),v=pu();return f.attributeCountLimit=(i=(u=(a=(n=(e=t.spanLimits)===null||e===void 0?void 0:e.attributeCountLimit)!==null&&n!==void 0?n:(o=t.generalLimits)===null||o===void 0?void 0:o.attributeCountLimit)!==null&&a!==void 0?a:v.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)!==null&&u!==void 0?u:v.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&i!==void 0?i:Rn,f.attributeValueLengthLimit=(m=(p=(c=(s=(r=t.spanLimits)===null||r===void 0?void 0:r.attributeValueLengthLimit)!==null&&s!==void 0?s:(l=t.generalLimits)===null||l===void 0?void 0:l.attributeValueLengthLimit)!==null&&c!==void 0?c:v.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&p!==void 0?p:v.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&m!==void 0?m:Nn,Object.assign({},t,{spanLimits:f})}var bd=E(()=>{Ad();F()});var vI,yI=E(()=>{w();F();vI=function(){function t(e,n){this._exporter=e,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var o=q();this._maxExportBatchSize=typeof n?.maxExportBatchSize=="number"?n.maxExportBatchSize:o.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof n?.maxQueueSize=="number"?n.maxQueueSize:o.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof n?.scheduledDelayMillis=="number"?n.scheduledDelayMillis:o.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof n?.exportTimeoutMillis=="number"?n.exportTimeoutMillis:o.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new Br(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(A.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return t.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},t.prototype.onStart=function(e,n){},t.prototype.onEnd=function(e){this._shutdownOnce.isCalled||e.spanContext().traceFlags&J.SAMPLED&&this._addToBuffer(e)},t.prototype.shutdown=function(){return this._shutdownOnce.call()},t.prototype._shutdown=function(){var e=this;return Promise.resolve().then(function(){return e.onShutdown()}).then(function(){return e._flushAll()}).then(function(){return e._exporter.shutdown()})},t.prototype._addToBuffer=function(e){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&A.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(A.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()},t.prototype._flushAll=function(){var e=this;return new Promise(function(n,o){for(var a=[],u=Math.ceil(e._finishedSpans.length/e._maxExportBatchSize),i=0,r=u;i<r;i++)a.push(e._flushOneBatch());Promise.all(a).then(function(){n()}).catch(o)})},t.prototype._flushOneBatch=function(){var e=this;return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise(function(n,o){var a=setTimeout(function(){o(new Error("Timeout"))},e._exportTimeoutMillis);ke.with(Fi(ke.active()),function(){var u;e._finishedSpans.length<=e._maxExportBatchSize?(u=e._finishedSpans,e._finishedSpans=[]):u=e._finishedSpans.splice(0,e._maxExportBatchSize);for(var i=function(){return e._exporter.export(u,function(p){var m;clearTimeout(a),p.code===ee.SUCCESS?n():o((m=p.error)!==null&&m!==void 0?m:new Error("BatchSpanProcessor: span export failed"))})},r=null,s=0,l=u.length;s<l;s++){var c=u[s];c.resource.asyncAttributesPending&&c.resource.waitForAsyncAttributes&&(r??(r=[]),r.push(c.resource.waitForAsyncAttributes()))}r===null?i():Promise.all(r).then(i,function(p){Ae(p),o(p)})})})},t.prototype._maybeStartTimer=function(){var e=this;if(!this._isExporting){var n=function(){e._isExporting=!0,e._flushOneBatch().finally(function(){e._isExporting=!1,e._finishedSpans.length>0&&(e._clearTimer(),e._maybeStartTimer())}).catch(function(o){e._isExporting=!1,Ae(o)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return n();this._timer===void 0&&(this._timer=setTimeout(function(){return n()},this._scheduledDelayMillis),Yi(this._timer))}},t.prototype._clearTimer=function(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)},t}()});var Zz,Oo,_I=E(()=>{yI();Zz=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(o[u]=a[u])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function o(){this.constructor=e}e.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),Oo=function(t){Zz(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onShutdown=function(){},e}(vI)});function SI(t){return function(){for(var n=0;n<t/4;n++)qs.writeUInt32BE(Math.random()*Math.pow(2,32)>>>0,n*4);for(var n=0;n<t&&!(qs[n]>0);n++)n===t-1&&(qs[t-1]=1);return qs.toString("hex",0,t)}}var eW,EI,xd,qs,TI=E(()=>{eW=8,EI=16,xd=function(){function t(){this.generateTraceId=SI(EI),this.generateSpanId=SI(eW)}return t}(),qs=Buffer.allocUnsafe(EI)});var gI=E(()=>{_I();TI()});var Fs=E(()=>{gI()});var Nd,OI=E(()=>{w();F();Ed();bd();Fs();Nd=function(){function t(e,n,o){this._tracerProvider=o;var a=hI(n);this._sampler=a.sampler,this._generalLimits=a.generalLimits,this._spanLimits=a.spanLimits,this._idGenerator=n.idGenerator||new xd,this.resource=o.resource,this.instrumentationLibrary=e}return t.prototype.startSpan=function(e,n,o){var a,u,i;n===void 0&&(n={}),o===void 0&&(o=ke.active()),n.root&&(o=X.deleteSpan(o));var r=X.getSpan(o);if(Ce(o)){A.debug("Instrumentation suppressed, returning Noop Span");var s=X.wrapSpanContext(ih);return s}var l=r?.spanContext(),c=this._idGenerator.generateSpanId(),p,m,f;!l||!X.isSpanContextValid(l)?p=this._idGenerator.generateTraceId():(p=l.traceId,m=l.traceState,f=l.spanId);var v=(a=n.kind)!==null&&a!==void 0?a:ah.INTERNAL,S=((u=n.links)!==null&&u!==void 0?u:[]).map(function(j){return{context:j.context,attributes:Dr(j.attributes)}}),_=Dr(n.attributes),O=this._sampler.shouldSample(o,p,e,v,_,S);m=(i=O.traceState)!==null&&i!==void 0?i:m;var g=O.decision===ht.RECORD_AND_SAMPLED?J.SAMPLED:J.NONE,b={traceId:p,spanId:c,traceFlags:g,traceState:m};if(O.decision===ht.NOT_RECORD){A.debug("Recording is off, propagating context in a non-recording span");var s=X.wrapSpanContext(b);return s}var L=Dr(Object.assign(_,O.attributes)),B=new Sd(this,o,e,b,v,f,S,n.startTime,void 0,L);return B},t.prototype.startActiveSpan=function(e,n,o,a){var u,i,r;if(!(arguments.length<2)){arguments.length===2?r=n:arguments.length===3?(u=n,r=o):(u=n,i=o,r=a);var s=i??ke.active(),l=this.startSpan(e,u,s),c=X.setSpan(s,l);return ke.with(c,r,void 0,l)}},t.prototype.getGeneralLimits=function(){return this._generalLimits},t.prototype.getSpanLimits=function(){return this._spanLimits},t.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},t}()});var Hs,AI,bI=E(()=>{F();Hs=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},AI=function(){function t(e){this._spanProcessors=e}return t.prototype.forceFlush=function(){var e,n,o=[];try{for(var a=Hs(this._spanProcessors),u=a.next();!u.done;u=a.next()){var i=u.value;o.push(i.forceFlush())}}catch(r){e={error:r}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return new Promise(function(r){Promise.all(o).then(function(){r()}).catch(function(s){Ae(s||new Error("MultiSpanProcessor: forceFlush failed")),r()})})},t.prototype.onStart=function(e,n){var o,a;try{for(var u=Hs(this._spanProcessors),i=u.next();!i.done;i=u.next()){var r=i.value;r.onStart(e,n)}}catch(s){o={error:s}}finally{try{i&&!i.done&&(a=u.return)&&a.call(u)}finally{if(o)throw o.error}}},t.prototype.onEnd=function(e){var n,o;try{for(var a=Hs(this._spanProcessors),u=a.next();!u.done;u=a.next()){var i=u.value;i.onEnd(e)}}catch(r){n={error:r}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}},t.prototype.shutdown=function(){var e,n,o=[];try{for(var a=Hs(this._spanProcessors),u=a.next();!u.done;u=a.next()){var i=u.value;o.push(i.shutdown())}}catch(r){e={error:r}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return new Promise(function(r,s){Promise.all(o).then(function(){r()},s)})},t}()});var Rd,Pd=E(()=>{Rd=function(){function t(){}return t.prototype.onStart=function(e,n){},t.prototype.onEnd=function(e){},t.prototype.shutdown=function(){return Promise.resolve()},t.prototype.forceFlush=function(){return Promise.resolve()},t}()});var yr,tW,xI=E(()=>{w();F();bu();Ao();Ad();bI();Pd();Fs();bd();(function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"})(yr||(yr={}));tW=function(){function t(e){e===void 0&&(e={});var n;this._registeredSpanProcessors=[],this._tracers=new Map;var o=Zf({},Gs(),mI(e));this.resource=(n=o.resource)!==null&&n!==void 0?n:Gt.empty(),this.resource=Gt.default().merge(this.resource),this._config=Object.assign({},o,{resource:this.resource});var a=this._buildExporterFromEnv();if(a!==void 0){var u=new Oo(a);this.activeSpanProcessor=u}else this.activeSpanProcessor=new Rd}return t.prototype.getTracer=function(e,n,o){var a=e+"@"+(n||"")+":"+(o?.schemaUrl||"");return this._tracers.has(a)||this._tracers.set(a,new Nd({name:e,version:n,schemaUrl:o?.schemaUrl},this._config,this)),this._tracers.get(a)},t.prototype.addSpanProcessor=function(e){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(function(n){return A.error("Error while trying to shutdown current span processor",n)}),this._registeredSpanProcessors.push(e),this.activeSpanProcessor=new AI(this._registeredSpanProcessors)},t.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},t.prototype.register=function(e){e===void 0&&(e={}),X.setGlobalTracerProvider(this),e.propagator===void 0&&(e.propagator=this._buildPropagatorFromEnv()),e.contextManager&&ke.setGlobalContextManager(e.contextManager),e.propagator&&at.setGlobalPropagator(e.propagator)},t.prototype.forceFlush=function(){var e=this._config.forceFlushTimeoutMillis,n=this._registeredSpanProcessors.map(function(o){return new Promise(function(a){var u,i=setTimeout(function(){a(new Error("Span processor did not completed within timeout period of "+e+" ms")),u=yr.timeout},e);o.forceFlush().then(function(){clearTimeout(i),u!==yr.timeout&&(u=yr.resolved,a(u))}).catch(function(r){clearTimeout(i),u=yr.error,a(r)})})});return new Promise(function(o,a){Promise.all(n).then(function(u){var i=u.filter(function(r){return r!==yr.resolved});i.length>0?a(i):o()}).catch(function(u){return a([u])})})},t.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},t.prototype._getPropagator=function(e){var n;return(n=this.constructor._registeredPropagators.get(e))===null||n===void 0?void 0:n()},t.prototype._getSpanExporter=function(e){var n;return(n=this.constructor._registeredExporters.get(e))===null||n===void 0?void 0:n()},t.prototype._buildPropagatorFromEnv=function(){var e=this,n=Array.from(new Set(q().OTEL_PROPAGATORS)),o=n.map(function(u){var i=e._getPropagator(u);return i||A.warn('Propagator "'+u+'" requested through environment variable is unavailable.'),i}),a=o.reduce(function(u,i){return i&&u.push(i),u},[]);if(a.length!==0)return n.length===1?a[0]:new Ff({propagators:a})},t.prototype._buildExporterFromEnv=function(){var e=q().OTEL_TRACES_EXPORTER;if(!(e==="none"||e==="")){var n=this._getSpanExporter(e);return n||A.error('Exporter "'+e+'" requested through environment variable is unavailable.'),n}},t._registeredPropagators=new Map([["tracecontext",function(){return new $f}],["baggage",function(){return new wf}]]),t._registeredExporters=new Map,t}()});var rW,nW,NI=E(()=>{F();rW=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},nW=function(){function t(){}return t.prototype.export=function(e,n){return this._sendSpans(e,n)},t.prototype.shutdown=function(){return this._sendSpans([]),this.forceFlush()},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype._exportInfo=function(e){var n;return{resource:{attributes:e.resource.attributes},traceId:e.spanContext().traceId,parentId:e.parentSpanId,traceState:(n=e.spanContext().traceState)===null||n===void 0?void 0:n.serialize(),name:e.name,id:e.spanContext().spanId,kind:e.kind,timestamp:Bt(e.startTime),duration:Bt(e.duration),attributes:e.attributes,status:e.status,events:e.events,links:e.links}},t.prototype._sendSpans=function(e,n){var o,a;try{for(var u=rW(e),i=u.next();!i.done;i=u.next()){var r=i.value;console.dir(this._exportInfo(r),{depth:3})}}catch(s){o={error:s}}finally{try{i&&!i.done&&(a=u.return)&&a.call(u)}finally{if(o)throw o.error}}if(n)return n({code:ee.SUCCESS})},t}()});var iW,oW,aW,RI=E(()=>{F();iW=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),a,u=[],i;try{for(;(e===void 0||e-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(r){i={error:r}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u},oW=function(t,e,n){if(n||arguments.length===2)for(var o=0,a=e.length,u;o<a;o++)(u||!(o in e))&&(u||(u=Array.prototype.slice.call(e,0,o)),u[o]=e[o]);return t.concat(u||Array.prototype.slice.call(e))},aW=function(){function t(){this._finishedSpans=[],this._stopped=!1}return t.prototype.export=function(e,n){var o;if(this._stopped)return n({code:ee.FAILED,error:new Error("Exporter has been stopped")});(o=this._finishedSpans).push.apply(o,oW([],iW(e),!1)),setTimeout(function(){return n({code:ee.SUCCESS})},0)},t.prototype.shutdown=function(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype.reset=function(){this._finishedSpans=[]},t.prototype.getFinishedSpans=function(){return this._finishedSpans},t}()});var PI=E(()=>{});var uW,sW,lW,wI=E(()=>{w();F();uW=function(t,e,n,o){function a(u){return u instanceof n?u:new n(function(i){i(u)})}return new(n||(n=Promise))(function(u,i){function r(c){try{l(o.next(c))}catch(p){i(p)}}function s(c){try{l(o.throw(c))}catch(p){i(p)}}function l(c){c.done?u(c.value):a(c.value).then(r,s)}l((o=o.apply(t,e||[])).next())})},sW=function(t,e){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},o,a,u,i;return i={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function r(l){return function(c){return s([l,c])}}function s(l){if(o)throw new TypeError("Generator is already executing.");for(;n;)try{if(o=1,a&&(u=l[0]&2?a.return:l[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,l[1])).done)return u;switch(a=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(u=n.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){n.label=l[1];break}if(l[0]===6&&n.label<u[1]){n.label=u[1],u=l;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(l);break}u[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{o=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},lW=function(){function t(e){this._exporter=e,this._shutdownOnce=new Br(this._shutdown,this),this._unresolvedExports=new Set}return t.prototype.forceFlush=function(){return uW(this,void 0,void 0,function(){return sW(this,function(e){switch(e.label){case 0:return[4,Promise.all(Array.from(this._unresolvedExports))];case 1:return e.sent(),this._exporter.forceFlush?[4,this._exporter.forceFlush()]:[3,3];case 2:e.sent(),e.label=3;case 3:return[2]}})})},t.prototype.onStart=function(e,n){},t.prototype.onEnd=function(e){var n=this,o,a;if(!this._shutdownOnce.isCalled&&e.spanContext().traceFlags&J.SAMPLED){var u=function(){return Xi._export(n._exporter,[e]).then(function(r){var s;r.code!==ee.SUCCESS&&Ae((s=r.error)!==null&&s!==void 0?s:new Error("SimpleSpanProcessor: span export failed (status "+r+")"))}).catch(function(r){Ae(r)})};if(e.resource.asyncAttributesPending){var i=(a=(o=e.resource).waitForAsyncAttributes)===null||a===void 0?void 0:a.call(o).then(function(){return i!=null&&n._unresolvedExports.delete(i),u()},function(r){return Ae(r)});i!=null&&this._unresolvedExports.add(i)}else u()}},t.prototype.shutdown=function(){return this._shutdownOnce.call()},t.prototype._shutdown=function(){return this._exporter.shutdown()},t}()});var MI=E(()=>{});var II=E(()=>{});var LI=E(()=>{});var CI=E(()=>{});var UI=E(()=>{});var wd={};it(wd,{AlwaysOffSampler:()=>zr,AlwaysOnSampler:()=>Ht,BasicTracerProvider:()=>tW,BatchSpanProcessor:()=>Oo,ConsoleSpanExporter:()=>nW,ForceFlushState:()=>yr,InMemorySpanExporter:()=>aW,NoopSpanProcessor:()=>Rd,ParentBasedSampler:()=>go,RandomIdGenerator:()=>xd,SamplingDecision:()=>wt,SimpleSpanProcessor:()=>lW,Span:()=>Sd,TraceIdRatioBasedSampler:()=>Bs,Tracer:()=>Nd});var Ao=E(()=>{OI();xI();Fs();NI();RI();PI();wI();MI();Pd();Vs();ks();Td();gd();To();Ed();II();LI();CI();UI()});var bo=y((Rle,DI)=>{var cW="2.0.0",fW=Number.MAX_SAFE_INTEGER||9007199254740991,pW=16,dW=256-6,hW=["major","premajor","minor","preminor","patch","prepatch","prerelease"];DI.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:pW,MAX_SAFE_BUILD_LENGTH:dW,MAX_SAFE_INTEGER:fW,RELEASE_TYPES:hW,SEMVER_SPEC_VERSION:cW,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var xo=y((Ple,VI)=>{var mW=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};VI.exports=mW});var zn=y((jt,kI)=>{var{MAX_SAFE_COMPONENT_LENGTH:Md,MAX_SAFE_BUILD_LENGTH:vW,MAX_LENGTH:yW}=bo(),_W=xo();jt=kI.exports={};var SW=jt.re=[],EW=jt.safeRe=[],x=jt.src=[],N=jt.t={},TW=0,Id="[a-zA-Z0-9-]",gW=[["\\s",1],["\\d",yW],[Id,vW]],OW=t=>{for(let[e,n]of gW)t=t.split(`${e}*`).join(`${e}{0,${n}}`).split(`${e}+`).join(`${e}{1,${n}}`);return t},D=(t,e,n)=>{let o=OW(e),a=TW++;_W(t,a,e),N[t]=a,x[a]=e,SW[a]=new RegExp(e,n?"g":void 0),EW[a]=new RegExp(o,n?"g":void 0)};D("NUMERICIDENTIFIER","0|[1-9]\\d*");D("NUMERICIDENTIFIERLOOSE","\\d+");D("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Id}*`);D("MAINVERSION",`(${x[N.NUMERICIDENTIFIER]})\\.(${x[N.NUMERICIDENTIFIER]})\\.(${x[N.NUMERICIDENTIFIER]})`);D("MAINVERSIONLOOSE",`(${x[N.NUMERICIDENTIFIERLOOSE]})\\.(${x[N.NUMERICIDENTIFIERLOOSE]})\\.(${x[N.NUMERICIDENTIFIERLOOSE]})`);D("PRERELEASEIDENTIFIER",`(?:${x[N.NUMERICIDENTIFIER]}|${x[N.NONNUMERICIDENTIFIER]})`);D("PRERELEASEIDENTIFIERLOOSE",`(?:${x[N.NUMERICIDENTIFIERLOOSE]}|${x[N.NONNUMERICIDENTIFIER]})`);D("PRERELEASE",`(?:-(${x[N.PRERELEASEIDENTIFIER]}(?:\\.${x[N.PRERELEASEIDENTIFIER]})*))`);D("PRERELEASELOOSE",`(?:-?(${x[N.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${x[N.PRERELEASEIDENTIFIERLOOSE]})*))`);D("BUILDIDENTIFIER",`${Id}+`);D("BUILD",`(?:\\+(${x[N.BUILDIDENTIFIER]}(?:\\.${x[N.BUILDIDENTIFIER]})*))`);D("FULLPLAIN",`v?${x[N.MAINVERSION]}${x[N.PRERELEASE]}?${x[N.BUILD]}?`);D("FULL",`^${x[N.FULLPLAIN]}$`);D("LOOSEPLAIN",`[v=\\s]*${x[N.MAINVERSIONLOOSE]}${x[N.PRERELEASELOOSE]}?${x[N.BUILD]}?`);D("LOOSE",`^${x[N.LOOSEPLAIN]}$`);D("GTLT","((?:<|>)?=?)");D("XRANGEIDENTIFIERLOOSE",`${x[N.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);D("XRANGEIDENTIFIER",`${x[N.NUMERICIDENTIFIER]}|x|X|\\*`);D("XRANGEPLAIN",`[v=\\s]*(${x[N.XRANGEIDENTIFIER]})(?:\\.(${x[N.XRANGEIDENTIFIER]})(?:\\.(${x[N.XRANGEIDENTIFIER]})(?:${x[N.PRERELEASE]})?${x[N.BUILD]}?)?)?`);D("XRANGEPLAINLOOSE",`[v=\\s]*(${x[N.XRANGEIDENTIFIERLOOSE]})(?:\\.(${x[N.XRANGEIDENTIFIERLOOSE]})(?:\\.(${x[N.XRANGEIDENTIFIERLOOSE]})(?:${x[N.PRERELEASELOOSE]})?${x[N.BUILD]}?)?)?`);D("XRANGE",`^${x[N.GTLT]}\\s*${x[N.XRANGEPLAIN]}$`);D("XRANGELOOSE",`^${x[N.GTLT]}\\s*${x[N.XRANGEPLAINLOOSE]}$`);D("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Md}})(?:\\.(\\d{1,${Md}}))?(?:\\.(\\d{1,${Md}}))?`);D("COERCE",`${x[N.COERCEPLAIN]}(?:$|[^\\d])`);D("COERCEFULL",x[N.COERCEPLAIN]+`(?:${x[N.PRERELEASE]})?(?:${x[N.BUILD]})?(?:$|[^\\d])`);D("COERCERTL",x[N.COERCE],!0);D("COERCERTLFULL",x[N.COERCEFULL],!0);D("LONETILDE","(?:~>?)");D("TILDETRIM",`(\\s*)${x[N.LONETILDE]}\\s+`,!0);jt.tildeTrimReplace="$1~";D("TILDE",`^${x[N.LONETILDE]}${x[N.XRANGEPLAIN]}$`);D("TILDELOOSE",`^${x[N.LONETILDE]}${x[N.XRANGEPLAINLOOSE]}$`);D("LONECARET","(?:\\^)");D("CARETTRIM",`(\\s*)${x[N.LONECARET]}\\s+`,!0);jt.caretTrimReplace="$1^";D("CARET",`^${x[N.LONECARET]}${x[N.XRANGEPLAIN]}$`);D("CARETLOOSE",`^${x[N.LONECARET]}${x[N.XRANGEPLAINLOOSE]}$`);D("COMPARATORLOOSE",`^${x[N.GTLT]}\\s*(${x[N.LOOSEPLAIN]})$|^$`);D("COMPARATOR",`^${x[N.GTLT]}\\s*(${x[N.FULLPLAIN]})$|^$`);D("COMPARATORTRIM",`(\\s*)${x[N.GTLT]}\\s*(${x[N.LOOSEPLAIN]}|${x[N.XRANGEPLAIN]})`,!0);jt.comparatorTrimReplace="$1$2$3";D("HYPHENRANGE",`^\\s*(${x[N.XRANGEPLAIN]})\\s+-\\s+(${x[N.XRANGEPLAIN]})\\s*$`);D("HYPHENRANGELOOSE",`^\\s*(${x[N.XRANGEPLAINLOOSE]})\\s+-\\s+(${x[N.XRANGEPLAINLOOSE]})\\s*$`);D("STAR","(<|>)?=?\\s*\\*");D("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");D("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var js=y((wle,BI)=>{var AW=Object.freeze({loose:!0}),bW=Object.freeze({}),xW=t=>t?typeof t!="object"?AW:t:bW;BI.exports=xW});var Ld=y((Mle,FI)=>{var GI=/^[0-9]+$/,qI=(t,e)=>{let n=GI.test(t),o=GI.test(e);return n&&o&&(t=+t,e=+e),t===e?0:n&&!o?-1:o&&!n?1:t<e?-1:1},NW=(t,e)=>qI(e,t);FI.exports={compareIdentifiers:qI,rcompareIdentifiers:NW}});var xe=y((Ile,$I)=>{var Ys=xo(),{MAX_LENGTH:HI,MAX_SAFE_INTEGER:$s}=bo(),{safeRe:jI,t:YI}=zn(),RW=js(),{compareIdentifiers:Wn}=Ld(),Je=class{constructor(e,n){if(n=RW(n),e instanceof Je){if(e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>HI)throw new TypeError(`version is longer than ${HI} characters`);Ys("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let o=e.trim().match(n.loose?jI[YI.LOOSE]:jI[YI.FULL]);if(!o)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>$s||this.major<0)throw new TypeError("Invalid major version");if(this.minor>$s||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>$s||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map(a=>{if(/^[0-9]+$/.test(a)){let u=+a;if(u>=0&&u<$s)return u}return a}):this.prerelease=[],this.build=o[5]?o[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(Ys("SemVer.compare",this.version,this.options,e),!(e instanceof Je)){if(typeof e=="string"&&e===this.version)return 0;e=new Je(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof Je||(e=new Je(e,this.options)),Wn(this.major,e.major)||Wn(this.minor,e.minor)||Wn(this.patch,e.patch)}comparePre(e){if(e instanceof Je||(e=new Je(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let n=0;do{let o=this.prerelease[n],a=e.prerelease[n];if(Ys("prerelease compare",n,o,a),o===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(o===void 0)return-1;if(o===a)continue;return Wn(o,a)}while(++n)}compareBuild(e){e instanceof Je||(e=new Je(e,this.options));let n=0;do{let o=this.build[n],a=e.build[n];if(Ys("build compare",n,o,a),o===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(o===void 0)return-1;if(o===a)continue;return Wn(o,a)}while(++n)}inc(e,n,o){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,o);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,o);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,o),this.inc("pre",n,o);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,o),this.inc("pre",n,o);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let a=Number(o)?1:0;if(!n&&o===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[a];else{let u=this.prerelease.length;for(;--u>=0;)typeof this.prerelease[u]=="number"&&(this.prerelease[u]++,u=-2);if(u===-1){if(n===this.prerelease.join(".")&&o===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(a)}}if(n){let u=[n,a];o===!1&&(u=[n]),Wn(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=u):this.prerelease=u}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};$I.exports=Je});var Wr=y((Lle,zI)=>{var KI=xe(),PW=(t,e,n=!1)=>{if(t instanceof KI)return t;try{return new KI(t,e)}catch(o){if(!n)return null;throw o}};zI.exports=PW});var XI=y((Cle,WI)=>{var wW=Wr(),MW=(t,e)=>{let n=wW(t,e);return n?n.version:null};WI.exports=MW});var QI=y((Ule,JI)=>{var IW=Wr(),LW=(t,e)=>{let n=IW(t.trim().replace(/^[=v]+/,""),e);return n?n.version:null};JI.exports=LW});var tL=y((Dle,eL)=>{var ZI=xe(),CW=(t,e,n,o,a)=>{typeof n=="string"&&(a=o,o=n,n=void 0);try{return new ZI(t instanceof ZI?t.version:t,n).inc(e,o,a).version}catch{return null}};eL.exports=CW});var iL=y((Vle,nL)=>{var rL=Wr(),UW=(t,e)=>{let n=rL(t,null,!0),o=rL(e,null,!0),a=n.compare(o);if(a===0)return null;let u=a>0,i=u?n:o,r=u?o:n,s=!!i.prerelease.length;if(!!r.prerelease.length&&!s)return!r.patch&&!r.minor?"major":i.patch?"patch":i.minor?"minor":"major";let c=s?"pre":"";return n.major!==o.major?c+"major":n.minor!==o.minor?c+"minor":n.patch!==o.patch?c+"patch":"prerelease"};nL.exports=UW});var aL=y((kle,oL)=>{var DW=xe(),VW=(t,e)=>new DW(t,e).major;oL.exports=VW});var sL=y((Ble,uL)=>{var kW=xe(),BW=(t,e)=>new kW(t,e).minor;uL.exports=BW});var cL=y((Gle,lL)=>{var GW=xe(),qW=(t,e)=>new GW(t,e).patch;lL.exports=qW});var pL=y((qle,fL)=>{var FW=Wr(),HW=(t,e)=>{let n=FW(t,e);return n&&n.prerelease.length?n.prerelease:null};fL.exports=HW});var rt=y((Fle,hL)=>{var dL=xe(),jW=(t,e,n)=>new dL(t,n).compare(new dL(e,n));hL.exports=jW});var vL=y((Hle,mL)=>{var YW=rt(),$W=(t,e,n)=>YW(e,t,n);mL.exports=$W});var _L=y((jle,yL)=>{var KW=rt(),zW=(t,e)=>KW(t,e,!0);yL.exports=zW});var Ks=y((Yle,EL)=>{var SL=xe(),WW=(t,e,n)=>{let o=new SL(t,n),a=new SL(e,n);return o.compare(a)||o.compareBuild(a)};EL.exports=WW});var gL=y(($le,TL)=>{var XW=Ks(),JW=(t,e)=>t.sort((n,o)=>XW(n,o,e));TL.exports=JW});var AL=y((Kle,OL)=>{var QW=Ks(),ZW=(t,e)=>t.sort((n,o)=>QW(o,n,e));OL.exports=ZW});var No=y((zle,bL)=>{var eX=rt(),tX=(t,e,n)=>eX(t,e,n)>0;bL.exports=tX});var zs=y((Wle,xL)=>{var rX=rt(),nX=(t,e,n)=>rX(t,e,n)<0;xL.exports=nX});var Cd=y((Xle,NL)=>{var iX=rt(),oX=(t,e,n)=>iX(t,e,n)===0;NL.exports=oX});var Ud=y((Jle,RL)=>{var aX=rt(),uX=(t,e,n)=>aX(t,e,n)!==0;RL.exports=uX});var Ws=y((Qle,PL)=>{var sX=rt(),lX=(t,e,n)=>sX(t,e,n)>=0;PL.exports=lX});var Xs=y((Zle,wL)=>{var cX=rt(),fX=(t,e,n)=>cX(t,e,n)<=0;wL.exports=fX});var Dd=y((ece,ML)=>{var pX=Cd(),dX=Ud(),hX=No(),mX=Ws(),vX=zs(),yX=Xs(),_X=(t,e,n,o)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t===n;case"!==":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t!==n;case"":case"=":case"==":return pX(t,n,o);case"!=":return dX(t,n,o);case">":return hX(t,n,o);case">=":return mX(t,n,o);case"<":return vX(t,n,o);case"<=":return yX(t,n,o);default:throw new TypeError(`Invalid operator: ${e}`)}};ML.exports=_X});var LL=y((tce,IL)=>{var SX=xe(),EX=Wr(),{safeRe:Js,t:Qs}=zn(),TX=(t,e)=>{if(t instanceof SX)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let n=null;if(!e.rtl)n=t.match(e.includePrerelease?Js[Qs.COERCEFULL]:Js[Qs.COERCE]);else{let s=e.includePrerelease?Js[Qs.COERCERTLFULL]:Js[Qs.COERCERTL],l;for(;(l=s.exec(t))&&(!n||n.index+n[0].length!==t.length);)(!n||l.index+l[0].length!==n.index+n[0].length)&&(n=l),s.lastIndex=l.index+l[1].length+l[2].length;s.lastIndex=-1}if(n===null)return null;let o=n[2],a=n[3]||"0",u=n[4]||"0",i=e.includePrerelease&&n[5]?`-${n[5]}`:"",r=e.includePrerelease&&n[6]?`+${n[6]}`:"";return EX(`${o}.${a}.${u}${i}${r}`,e)};IL.exports=TX});var UL=y((rce,CL)=>{var Vd=class{constructor(){this.max=1e3,this.map=new Map}get(e){let n=this.map.get(e);if(n!==void 0)return this.map.delete(e),this.map.set(e,n),n}delete(e){return this.map.delete(e)}set(e,n){if(!this.delete(e)&&n!==void 0){if(this.map.size>=this.max){let a=this.map.keys().next().value;this.delete(a)}this.map.set(e,n)}return this}};CL.exports=Vd});var nt=y((nce,BL)=>{var Xr=class{constructor(e,n){if(n=OX(n),e instanceof Xr)return e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease?e:new Xr(e.raw,n);if(e instanceof kd)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(o=>this.parseRange(o.trim())).filter(o=>o.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let o=this.set[0];if(this.set=this.set.filter(a=>!VL(a[0])),this.set.length===0)this.set=[o];else if(this.set.length>1){for(let a of this.set)if(a.length===1&&wX(a[0])){this.set=[a];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){let o=((this.options.includePrerelease&&RX)|(this.options.loose&&PX))+":"+e,a=DL.get(o);if(a)return a;let u=this.options.loose,i=u?He[De.HYPHENRANGELOOSE]:He[De.HYPHENRANGE];e=e.replace(i,GX(this.options.includePrerelease)),te("hyphen replace",e),e=e.replace(He[De.COMPARATORTRIM],bX),te("comparator trim",e),e=e.replace(He[De.TILDETRIM],xX),te("tilde trim",e),e=e.replace(He[De.CARETTRIM],NX),te("caret trim",e);let r=e.split(" ").map(p=>MX(p,this.options)).join(" ").split(/\s+/).map(p=>BX(p,this.options));u&&(r=r.filter(p=>(te("loose invalid filter",p,this.options),!!p.match(He[De.COMPARATORLOOSE])))),te("range list",r);let s=new Map,l=r.map(p=>new kd(p,this.options));for(let p of l){if(VL(p))return[p];s.set(p.value,p)}s.size>1&&s.has("")&&s.delete("");let c=[...s.values()];return DL.set(o,c),c}intersects(e,n){if(!(e instanceof Xr))throw new TypeError("a Range is required");return this.set.some(o=>kL(o,n)&&e.set.some(a=>kL(a,n)&&o.every(u=>a.every(i=>u.intersects(i,n)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new AX(e,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(qX(this.set[n],e,this.options))return!0;return!1}};BL.exports=Xr;var gX=UL(),DL=new gX,OX=js(),kd=Ro(),te=xo(),AX=xe(),{safeRe:He,t:De,comparatorTrimReplace:bX,tildeTrimReplace:xX,caretTrimReplace:NX}=zn(),{FLAG_INCLUDE_PRERELEASE:RX,FLAG_LOOSE:PX}=bo(),VL=t=>t.value==="<0.0.0-0",wX=t=>t.value==="",kL=(t,e)=>{let n=!0,o=t.slice(),a=o.pop();for(;n&&o.length;)n=o.every(u=>a.intersects(u,e)),a=o.pop();return n},MX=(t,e)=>(te("comp",t,e),t=CX(t,e),te("caret",t),t=IX(t,e),te("tildes",t),t=DX(t,e),te("xrange",t),t=kX(t,e),te("stars",t),t),Ve=t=>!t||t.toLowerCase()==="x"||t==="*",IX=(t,e)=>t.trim().split(/\s+/).map(n=>LX(n,e)).join(" "),LX=(t,e)=>{let n=e.loose?He[De.TILDELOOSE]:He[De.TILDE];return t.replace(n,(o,a,u,i,r)=>{te("tilde",t,o,a,u,i,r);let s;return Ve(a)?s="":Ve(u)?s=`>=${a}.0.0 <${+a+1}.0.0-0`:Ve(i)?s=`>=${a}.${u}.0 <${a}.${+u+1}.0-0`:r?(te("replaceTilde pr",r),s=`>=${a}.${u}.${i}-${r} <${a}.${+u+1}.0-0`):s=`>=${a}.${u}.${i} <${a}.${+u+1}.0-0`,te("tilde return",s),s})},CX=(t,e)=>t.trim().split(/\s+/).map(n=>UX(n,e)).join(" "),UX=(t,e)=>{te("caret",t,e);let n=e.loose?He[De.CARETLOOSE]:He[De.CARET],o=e.includePrerelease?"-0":"";return t.replace(n,(a,u,i,r,s)=>{te("caret",t,a,u,i,r,s);let l;return Ve(u)?l="":Ve(i)?l=`>=${u}.0.0${o} <${+u+1}.0.0-0`:Ve(r)?u==="0"?l=`>=${u}.${i}.0${o} <${u}.${+i+1}.0-0`:l=`>=${u}.${i}.0${o} <${+u+1}.0.0-0`:s?(te("replaceCaret pr",s),u==="0"?i==="0"?l=`>=${u}.${i}.${r}-${s} <${u}.${i}.${+r+1}-0`:l=`>=${u}.${i}.${r}-${s} <${u}.${+i+1}.0-0`:l=`>=${u}.${i}.${r}-${s} <${+u+1}.0.0-0`):(te("no pr"),u==="0"?i==="0"?l=`>=${u}.${i}.${r}${o} <${u}.${i}.${+r+1}-0`:l=`>=${u}.${i}.${r}${o} <${u}.${+i+1}.0-0`:l=`>=${u}.${i}.${r} <${+u+1}.0.0-0`),te("caret return",l),l})},DX=(t,e)=>(te("replaceXRanges",t,e),t.split(/\s+/).map(n=>VX(n,e)).join(" ")),VX=(t,e)=>{t=t.trim();let n=e.loose?He[De.XRANGELOOSE]:He[De.XRANGE];return t.replace(n,(o,a,u,i,r,s)=>{te("xRange",t,o,a,u,i,r,s);let l=Ve(u),c=l||Ve(i),p=c||Ve(r),m=p;return a==="="&&m&&(a=""),s=e.includePrerelease?"-0":"",l?a===">"||a==="<"?o="<0.0.0-0":o="*":a&&m?(c&&(i=0),r=0,a===">"?(a=">=",c?(u=+u+1,i=0,r=0):(i=+i+1,r=0)):a==="<="&&(a="<",c?u=+u+1:i=+i+1),a==="<"&&(s="-0"),o=`${a+u}.${i}.${r}${s}`):c?o=`>=${u}.0.0${s} <${+u+1}.0.0-0`:p&&(o=`>=${u}.${i}.0${s} <${u}.${+i+1}.0-0`),te("xRange return",o),o})},kX=(t,e)=>(te("replaceStars",t,e),t.trim().replace(He[De.STAR],"")),BX=(t,e)=>(te("replaceGTE0",t,e),t.trim().replace(He[e.includePrerelease?De.GTE0PRE:De.GTE0],"")),GX=t=>(e,n,o,a,u,i,r,s,l,c,p,m)=>(Ve(o)?n="":Ve(a)?n=`>=${o}.0.0${t?"-0":""}`:Ve(u)?n=`>=${o}.${a}.0${t?"-0":""}`:i?n=`>=${n}`:n=`>=${n}${t?"-0":""}`,Ve(l)?s="":Ve(c)?s=`<${+l+1}.0.0-0`:Ve(p)?s=`<${l}.${+c+1}.0-0`:m?s=`<=${l}.${c}.${p}-${m}`:t?s=`<${l}.${c}.${+p+1}-0`:s=`<=${s}`,`${n} ${s}`.trim()),qX=(t,e,n)=>{for(let o=0;o<t.length;o++)if(!t[o].test(e))return!1;if(e.prerelease.length&&!n.includePrerelease){for(let o=0;o<t.length;o++)if(te(t[o].semver),t[o].semver!==kd.ANY&&t[o].semver.prerelease.length>0){let a=t[o].semver;if(a.major===e.major&&a.minor===e.minor&&a.patch===e.patch)return!0}return!1}return!0}});var Ro=y((ice,YL)=>{var Po=Symbol("SemVer ANY"),Xn=class{static get ANY(){return Po}constructor(e,n){if(n=GL(n),e instanceof Xn){if(e.loose===!!n.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Gd("comparator",e,n),this.options=n,this.loose=!!n.loose,this.parse(e),this.semver===Po?this.value="":this.value=this.operator+this.semver.version,Gd("comp",this)}parse(e){let n=this.options.loose?qL[FL.COMPARATORLOOSE]:qL[FL.COMPARATOR],o=e.match(n);if(!o)throw new TypeError(`Invalid comparator: ${e}`);this.operator=o[1]!==void 0?o[1]:"",this.operator==="="&&(this.operator=""),o[2]?this.semver=new HL(o[2],this.options.loose):this.semver=Po}toString(){return this.value}test(e){if(Gd("Comparator.test",e,this.options.loose),this.semver===Po||e===Po)return!0;if(typeof e=="string")try{e=new HL(e,this.options)}catch{return!1}return Bd(e,this.operator,this.semver,this.options)}intersects(e,n){if(!(e instanceof Xn))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new jL(e.value,n).test(this.value):e.operator===""?e.value===""?!0:new jL(this.value,n).test(e.semver):(n=GL(n),n.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!n.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||Bd(this.semver,"<",e.semver,n)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Bd(this.semver,">",e.semver,n)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};YL.exports=Xn;var GL=js(),{safeRe:qL,t:FL}=zn(),Bd=Dd(),Gd=xo(),HL=xe(),jL=nt()});var wo=y((oce,$L)=>{var FX=nt(),HX=(t,e,n)=>{try{e=new FX(e,n)}catch{return!1}return e.test(t)};$L.exports=HX});var zL=y((ace,KL)=>{var jX=nt(),YX=(t,e)=>new jX(t,e).set.map(n=>n.map(o=>o.value).join(" ").trim().split(" "));KL.exports=YX});var XL=y((uce,WL)=>{var $X=xe(),KX=nt(),zX=(t,e,n)=>{let o=null,a=null,u=null;try{u=new KX(e,n)}catch{return null}return t.forEach(i=>{u.test(i)&&(!o||a.compare(i)===-1)&&(o=i,a=new $X(o,n))}),o};WL.exports=zX});var QL=y((sce,JL)=>{var WX=xe(),XX=nt(),JX=(t,e,n)=>{let o=null,a=null,u=null;try{u=new XX(e,n)}catch{return null}return t.forEach(i=>{u.test(i)&&(!o||a.compare(i)===1)&&(o=i,a=new WX(o,n))}),o};JL.exports=JX});var t1=y((lce,e1)=>{var qd=xe(),QX=nt(),ZL=No(),ZX=(t,e)=>{t=new QX(t,e);let n=new qd("0.0.0");if(t.test(n)||(n=new qd("0.0.0-0"),t.test(n)))return n;n=null;for(let o=0;o<t.set.length;++o){let a=t.set[o],u=null;a.forEach(i=>{let r=new qd(i.semver.version);switch(i.operator){case">":r.prerelease.length===0?r.patch++:r.prerelease.push(0),r.raw=r.format();case"":case">=":(!u||ZL(r,u))&&(u=r);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${i.operator}`)}}),u&&(!n||ZL(n,u))&&(n=u)}return n&&t.test(n)?n:null};e1.exports=ZX});var n1=y((cce,r1)=>{var e9=nt(),t9=(t,e)=>{try{return new e9(t,e).range||"*"}catch{return null}};r1.exports=t9});var Zs=y((fce,u1)=>{var r9=xe(),a1=Ro(),{ANY:n9}=a1,i9=nt(),o9=wo(),i1=No(),o1=zs(),a9=Xs(),u9=Ws(),s9=(t,e,n,o)=>{t=new r9(t,o),e=new i9(e,o);let a,u,i,r,s;switch(n){case">":a=i1,u=a9,i=o1,r=">",s=">=";break;case"<":a=o1,u=u9,i=i1,r="<",s="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o9(t,e,o))return!1;for(let l=0;l<e.set.length;++l){let c=e.set[l],p=null,m=null;if(c.forEach(f=>{f.semver===n9&&(f=new a1(">=0.0.0")),p=p||f,m=m||f,a(f.semver,p.semver,o)?p=f:i(f.semver,m.semver,o)&&(m=f)}),p.operator===r||p.operator===s||(!m.operator||m.operator===r)&&u(t,m.semver))return!1;if(m.operator===s&&i(t,m.semver))return!1}return!0};u1.exports=s9});var l1=y((pce,s1)=>{var l9=Zs(),c9=(t,e,n)=>l9(t,e,">",n);s1.exports=c9});var f1=y((dce,c1)=>{var f9=Zs(),p9=(t,e,n)=>f9(t,e,"<",n);c1.exports=p9});var h1=y((hce,d1)=>{var p1=nt(),d9=(t,e,n)=>(t=new p1(t,n),e=new p1(e,n),t.intersects(e,n));d1.exports=d9});var v1=y((mce,m1)=>{var h9=wo(),m9=rt();m1.exports=(t,e,n)=>{let o=[],a=null,u=null,i=t.sort((c,p)=>m9(c,p,n));for(let c of i)h9(c,e,n)?(u=c,a||(a=c)):(u&&o.push([a,u]),u=null,a=null);a&&o.push([a,null]);let r=[];for(let[c,p]of o)c===p?r.push(c):!p&&c===i[0]?r.push("*"):p?c===i[0]?r.push(`<=${p}`):r.push(`${c} - ${p}`):r.push(`>=${c}`);let s=r.join(" || "),l=typeof e.raw=="string"?e.raw:String(e);return s.length<l.length?s:e}});var g1=y((vce,T1)=>{var y1=nt(),Hd=Ro(),{ANY:Fd}=Hd,Mo=wo(),jd=rt(),v9=(t,e,n={})=>{if(t===e)return!0;t=new y1(t,n),e=new y1(e,n);let o=!1;e:for(let a of t.set){for(let u of e.set){let i=_9(a,u,n);if(o=o||i!==null,i)continue e}if(o)return!1}return!0},y9=[new Hd(">=0.0.0-0")],_1=[new Hd(">=0.0.0")],_9=(t,e,n)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===Fd){if(e.length===1&&e[0].semver===Fd)return!0;n.includePrerelease?t=y9:t=_1}if(e.length===1&&e[0].semver===Fd){if(n.includePrerelease)return!0;e=_1}let o=new Set,a,u;for(let f of t)f.operator===">"||f.operator===">="?a=S1(a,f,n):f.operator==="<"||f.operator==="<="?u=E1(u,f,n):o.add(f.semver);if(o.size>1)return null;let i;if(a&&u){if(i=jd(a.semver,u.semver,n),i>0)return null;if(i===0&&(a.operator!==">="||u.operator!=="<="))return null}for(let f of o){if(a&&!Mo(f,String(a),n)||u&&!Mo(f,String(u),n))return null;for(let v of e)if(!Mo(f,String(v),n))return!1;return!0}let r,s,l,c,p=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:!1,m=a&&!n.includePrerelease&&a.semver.prerelease.length?a.semver:!1;p&&p.prerelease.length===1&&u.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let f of e){if(c=c||f.operator===">"||f.operator===">=",l=l||f.operator==="<"||f.operator==="<=",a){if(m&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===m.major&&f.semver.minor===m.minor&&f.semver.patch===m.patch&&(m=!1),f.operator===">"||f.operator===">="){if(r=S1(a,f,n),r===f&&r!==a)return!1}else if(a.operator===">="&&!Mo(a.semver,String(f),n))return!1}if(u){if(p&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===p.major&&f.semver.minor===p.minor&&f.semver.patch===p.patch&&(p=!1),f.operator==="<"||f.operator==="<="){if(s=E1(u,f,n),s===f&&s!==u)return!1}else if(u.operator==="<="&&!Mo(u.semver,String(f),n))return!1}if(!f.operator&&(u||a)&&i!==0)return!1}return!(a&&l&&!u&&i!==0||u&&c&&!a&&i!==0||m||p)},S1=(t,e,n)=>{if(!t)return e;let o=jd(t.semver,e.semver,n);return o>0?t:o<0||e.operator===">"&&t.operator===">="?e:t},E1=(t,e,n)=>{if(!t)return e;let o=jd(t.semver,e.semver,n);return o<0?t:o>0||e.operator==="<"&&t.operator==="<="?e:t};T1.exports=v9});var x1=y((yce,b1)=>{var Yd=zn(),O1=bo(),S9=xe(),A1=Ld(),E9=Wr(),T9=XI(),g9=QI(),O9=tL(),A9=iL(),b9=aL(),x9=sL(),N9=cL(),R9=pL(),P9=rt(),w9=vL(),M9=_L(),I9=Ks(),L9=gL(),C9=AL(),U9=No(),D9=zs(),V9=Cd(),k9=Ud(),B9=Ws(),G9=Xs(),q9=Dd(),F9=LL(),H9=Ro(),j9=nt(),Y9=wo(),$9=zL(),K9=XL(),z9=QL(),W9=t1(),X9=n1(),J9=Zs(),Q9=l1(),Z9=f1(),e7=h1(),t7=v1(),r7=g1();b1.exports={parse:E9,valid:T9,clean:g9,inc:O9,diff:A9,major:b9,minor:x9,patch:N9,prerelease:R9,compare:P9,rcompare:w9,compareLoose:M9,compareBuild:I9,sort:L9,rsort:C9,gt:U9,lt:D9,eq:V9,neq:k9,gte:B9,lte:G9,cmp:q9,coerce:F9,Comparator:H9,Range:j9,satisfies:Y9,toComparators:$9,maxSatisfying:K9,minSatisfying:z9,minVersion:W9,validRange:X9,outside:J9,gtr:Q9,ltr:Z9,intersects:e7,simplifyRange:t7,subset:r7,SemVer:S9,re:Yd.re,src:Yd.src,tokens:Yd.t,SEMVER_SPEC_VERSION:O1.SEMVER_SPEC_VERSION,RELEASE_TYPES:O1.RELEASE_TYPES,compareIdentifiers:A1.compareIdentifiers,rcompareIdentifiers:A1.rcompareIdentifiers}});function o7(t){var e=decodeURIComponent(t).split(":");if(e.length!==4)return null;var n=R1(e,4),o=n[0],a=n[1],u=n[3],i=o.padStart(32,"0"),r=a.padStart(16,"0"),s=i7.test(u)?parseInt(u,16)&1:1;return{traceId:i,spanId:r,isRemote:!0,traceFlags:s}}var N1,R1,P1,$d,n7,i7,w1=E(()=>{w();F();N1=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},R1=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),a,u=[],i;try{for(;(e===void 0||e-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(r){i={error:r}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u},P1="uber-trace-id",$d="uberctx",n7=function(){function t(e){typeof e=="string"?(this._jaegerTraceHeader=e,this._jaegerBaggageHeaderPrefix=$d):(this._jaegerTraceHeader=e?.customTraceHeader||P1,this._jaegerBaggageHeaderPrefix=e?.customBaggageHeaderPrefix||$d)}return t.prototype.inject=function(e,n,o){var a,u,i=X.getSpanContext(e),r=at.getBaggage(e);if(i&&Ce(e)===!1){var s="0"+(i.traceFlags||J.NONE).toString(16);o.set(n,this._jaegerTraceHeader,i.traceId+":"+i.spanId+":0:"+s)}if(r)try{for(var l=N1(r.getAllEntries()),c=l.next();!c.done;c=l.next()){var p=R1(c.value,2),m=p[0],f=p[1];o.set(n,this._jaegerBaggageHeaderPrefix+"-"+m,encodeURIComponent(f.value))}}catch(v){a={error:v}}finally{try{c&&!c.done&&(u=l.return)&&u.call(l)}finally{if(a)throw a.error}}},t.prototype.extract=function(e,n,o){var a,u,i=this,r,s=o.get(n,this._jaegerTraceHeader),l=Array.isArray(s)?s[0]:s,c=o.keys(n).filter(function(O){return O.startsWith(i._jaegerBaggageHeaderPrefix+"-")}).map(function(O){var g=o.get(n,O);return{key:O.substring(i._jaegerBaggageHeaderPrefix.length+1),value:Array.isArray(g)?g[0]:g}}),p=e;if(typeof l=="string"){var m=o7(l);m&&(p=X.setSpanContext(p,m))}if(c.length===0)return p;var f=(r=at.getBaggage(e))!==null&&r!==void 0?r:at.createBaggage();try{for(var v=N1(c),S=v.next();!S.done;S=v.next()){var _=S.value;_.value!==void 0&&(f=f.setEntry(_.key,{value:decodeURIComponent(_.value)}))}}catch(O){a={error:O}}finally{try{S&&!S.done&&(u=v.return)&&u.call(v)}finally{if(a)throw a.error}}return p=at.setBaggage(p,f),p},t.prototype.fields=function(){return[this._jaegerTraceHeader]},t}(),i7=/^[0-9a-f]{1,2}$/i});var M1={};it(M1,{JaegerPropagator:()=>n7,UBER_BAGGAGE_HEADER_PREFIX:()=>$d,UBER_TRACE_ID_HEADER:()=>P1});var I1=E(()=>{w1()});var U1=y(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});rl.NodeTracerProvider=void 0;var L1=tI(),el=(lI(),Y(sI)),C1=(Ao(),Y(wd)),a7=x1(),u7=(I1(),Y(M1)),tl=class extends C1.BasicTracerProvider{constructor(e={}){super(e)}register(e={}){if(e.contextManager===void 0){let n=a7.gte(process.version,"14.8.0")?L1.AsyncLocalStorageContextManager:L1.AsyncHooksContextManager;e.contextManager=new n,e.contextManager.enable()}super.register(e)}};rl.NodeTracerProvider=tl;tl._registeredPropagators=new Map([...C1.BasicTracerProvider._registeredPropagators,["b3",()=>new el.B3Propagator({injectEncoding:el.B3InjectEncoding.SINGLE_HEADER})],["b3multi",()=>new el.B3Propagator({injectEncoding:el.B3InjectEncoding.MULTI_HEADER})],["jaeger",()=>new u7.JaegerPropagator]])});var V1=y(_r=>{"use strict";var s7=_r&&_r.__createBinding||(Object.create?function(t,e,n,o){o===void 0&&(o=n),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,o){o===void 0&&(o=n),t[o]=e[n]}),D1=_r&&_r.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&s7(e,t,n)};Object.defineProperty(_r,"__esModule",{value:!0});D1(U1(),_r);D1((Ao(),Y(wd)),_r)});var k1=y(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});nl.VERSION=void 0;nl.VERSION="0.52.1"});var B1=y(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});ol.OTLPTraceExporter=void 0;var il=(F(),Y(Gr)),Kd=rd(),l7=(Os(),Y(zp)),c7=k1(),f7={"User-Agent":`OTel-OTLP-Exporter-JavaScript/${c7.VERSION}`},zd=class extends Kd.OTLPGRPCExporterNodeBase{constructor(e={}){let n=Object.assign(Object.assign({},f7),il.baggageUtils.parseKeyPairsIntoRecord((0,il.getEnv)().OTEL_EXPORTER_OTLP_TRACES_HEADERS));super(e,n,"TraceExportService","/opentelemetry.proto.collector.trace.v1.TraceService/Export",l7.ProtobufTraceSerializer)}getDefaultUrl(e){return(0,Kd.validateAndNormalizeUrl)(this.getUrlFromConfig(e))}getUrlFromConfig(e){return typeof e.url=="string"?e.url:(0,il.getEnv)().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT||(0,il.getEnv)().OTEL_EXPORTER_OTLP_ENDPOINT||Kd.DEFAULT_COLLECTOR_URL}};ol.OTLPTraceExporter=zd});var G1=y(Jr=>{"use strict";var p7=Jr&&Jr.__createBinding||(Object.create?function(t,e,n,o){o===void 0&&(o=n),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,o){o===void 0&&(o=n),t[o]=e[n]}),d7=Jr&&Jr.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&p7(e,t,n)};Object.defineProperty(Jr,"__esModule",{value:!0});d7(B1(),Jr)});var Y1=je(Ol(),1),$1=je(Jn(),1),K1=je(cv(),1),z1=je(eC(),1),W1=je(tC(),1),X1=je(kO(),1);import m7 from"path";import v7 from"http";import{Session as y7}from"inspector/promises";import{createRequire as hq}from"module";var Hl=je(Ol(),1);import Qo from"path";import Fl from"os";var mq=hq(import.meta.url);function BO(t){let e=mq.resolve(t),n=Qo.dirname(e);for(;!Hl.default.existsSync(Qo.join(n,"package.json"));)n=Qo.dirname(n);let o=Hl.default.readFileSync(Qo.join(n,"package.json"),"utf-8");return JSON.parse(o)}var Zo=class{constructor(e){this.instance=e;let n=BO("@sentio/sdk"),o=BO("@sentio/runtime");console.log("Runtime version:",o.version,"SDK version:",n.version);let a=n.version.split(".");this.sdkMinorVersion=parseInt(a[1])}instance;sdkMinorVersion;async getConfig(e,n){let o=await this.instance.getConfig(e,n);if(o.executionConfig=Jd.fromPartial(sl.execution),o.contractConfigs)for(let a of o.contractConfigs)a.aptosCallConfigs&&(a.moveCallConfigs=a.aptosCallConfigs),a.aptosEventConfigs&&(a.moveEventConfigs=a.aptosEventConfigs);return o}async start(e,n){return await this.instance.start(e,n)}async stop(e,n){return await this.instance.stop(e,n)}async processBindings(e,n){sl.execution.sequential&&(e.bindings=e.bindings.sort(vq));for(let o of e.bindings)this.adjustDataBinding(o);try{let o=await this.instance.processBindings(e,n);return this.adjustResult(o.result),!o.configUpdated&&o.result?.states?.configUpdated&&(o.configUpdated=o.result?.states?.configUpdated),o}catch(o){throw this.sdkMinorVersion<=16&&(o.code===Fl.constants.errno.ECONNRESET||o.code===Fl.constants.errno.ECONNREFUSED||o.code===Fl.constants.errno.ECONNABORTED)&&process.exit(1),o}}async*processBindingsStream(e,n){yield*this.instance.processBindingsStream(e,n)}async*preprocessBindingsStream(e,n){yield*this.instance.preprocessBindingsStream(e,n)}adjustResult(e){}adjustDataBinding(e){switch(e.handlerType){case 6:e.data?.aptEvent;break;case 0:e.data?.ethBlock&&e.data.raw.length===0&&(e.data.raw=new TextEncoder().encode(JSON.stringify(e.data.ethBlock.block)));break;default:break}}};function vq(t,e){let n=GO(t)||new Date(0),o=GO(e)||new Date(0),a=n.getTime()-o.getTime();return a!==0?a:qO(t)-qO(e)}function GO(t){return t.data?.ethLog?.timestamp||t.data?.ethTransaction?.timestamp||(t.data?.ethBlock?.block?.timestamp?new Date(Number(t.data.ethBlock.block.timestamp)*1e3):void 0)||t.data?.ethTrace?.timestamp||(t.data?.aptCall?.transaction?new Date(Number(t.data.aptCall.transaction.timestamp)/1e3):void 0)||(t.data?.aptEvent?.transaction?new Date(Number(t.data.aptEvent.transaction.timestamp)/1e3):void 0)||(t.data?.aptResource?.timestampMicros?new Date(Number(t.data.aptResource.timestampMicros)/1e3):void 0)||t.data?.fuelCall?.timestamp}function qO(t){return t.data?.ethLog?.log?.logIndex||t.data?.ethTransaction?.transaction?.transactionIndex||t.data?.ethBlock?.block?.number||t.data?.ethTrace?.trace?.transactionPosition}import("process").then(t=>t.stdout.write(""));var gt=je(tR(),1);function rR(t,e){let n={transform:a=>{let u=[];typeof a.message=="object"?u.push(JSON.stringify(a.message)):u.push(a.message);let i=a[Symbol.for("splat")];if(i)for(let r in i){let s=i[r];typeof s=="object"?u.push(JSON.stringify(s)):u.push(s)}return a.message=u.join(" "),a}},o=(0,gt.createLogger)({format:gt.format.combine(gt.format.timestamp({format:"YYYY-MM-DDTHH:mm:ss.SSSZ"}),n,gt.format.errors({stack:!0}),t?gt.format.json():gt.format.simple()),level:e?"debug":"info",transports:[new gt.transports.Console]});console.log=(...a)=>o.info.call(o,...a),console.info=(...a)=>o.info.call(o,...a),console.warn=(...a)=>o.warn.call(o,...a),console.error=(...a)=>o.error.call(o,...a),console.debug=(...a)=>o.debug.call(o,...a)}import("process").then(t=>t.stdout.write(""));bu();Cn();var q1=je($M(),1),F1=je(QM(),1),Wd=je(V1(),1),H1=je(G1(),1);Ao();w();async function j1(t){t&&A.setLogger(new rh,ot.DEBUG);let e=await Au.detect(),n=new oo({resource:e,readers:[new Vu({exporter:new q1.OTLPMetricExporter}),new F1.PrometheusExporter({port:4041})]}),o=new Wd.NodeTracerProvider({resource:e}),a=new H1.OTLPTraceExporter,u=new Oo(a);o.addSpanProcessor(u),o.register(),Lo.setGlobalMeterProvider(n),X.setGlobalTracerProvider(o),["SIGINT","SIGTERM"].forEach(i=>{process.on(i,()=>h7())}),Lo.getMeter("processor").createGauge("up").record(1)}async function h7(){let t=X.getTracerProvider();if(t instanceof oh){let n=t.getDelegate();n instanceof Wd.NodeTracerProvider&&n.shutdown().catch(console.error)}let e=Lo.getMeterProvider();e instanceof oo&&e.shutdown().catch(console.error)}import("process").then(t=>t.stdout.write(""));var _7=[{name:"target",type:String,defaultOption:!0},{name:"port",alias:"p",type:String,defaultValue:"4000"},{name:"concurrency",type:Number,defaultValue:4},{name:"batch-count",type:Number,defaultValue:1},{name:"chains-config",alias:"c",type:String,defaultValue:"chains-config.json"},{name:"chainquery-server",type:String,defaultValue:""},{name:"pricefeed-server",type:String,defaultValue:""},{name:"log-format",type:String,defaultValue:"console"},{name:"debug",type:Boolean,defaultValue:!1}],Qe=(0,K1.default)(_7,{partial:!0}),S7=process.env.LOG_LEVEL?.toUpperCase();rR(Qe["log-format"]==="json",S7==="debug"?!0:Qe.debug);console.debug("Starting with",Qe.target);await j1(Qe.debug);Error.stackTraceLimit=20;var E7=m7.resolve(Qe["chains-config"]),T7=Y1.default.readJsonSync(E7),g7=process.env.OVERRIDE_CONCURRENCY?parseInt(process.env.OVERRIDE_CONCURRENCY):void 0,O7=process.env.OVERRIDE_BATCH_COUNT?parseInt(process.env.OVERRIDE_BATCH_COUNT):void 0;Sr.INSTANCE.concurrency=g7??Qe.concurrency;Sr.INSTANCE.batchCount=O7??Qe["batch-count"];Sr.INSTANCE.chainQueryAPI=Qe["chainquery-server"];Sr.INSTANCE.priceFeedAPI=Qe["pricefeed-server"];for(let[t,e]of Object.entries(T7)){let n=e;if(n.ChainServer)Sr.INSTANCE.chainServer.set(t,n.ChainServer);else{let o=n.Https?.[0];o?Sr.INSTANCE.chainServer.set(t,o):console.error("not valid config for chain",t)}}console.debug("Starting Server",Qe);var al=(0,z1.createServer)({"grpc.max_send_message_length":384*1024*1024,"grpc.max_receive_message_length":384*1024*1024,"grpc.default_compression_algorithm":$1.compressionAlgorithms.gzip}).use((0,X1.openTelemetryServerMiddleware)()).use(W1.errorDetailsServerMiddleware),Xd=new sh(async()=>{let t=await import(Qe.target);return console.debug("Module loaded",t),t},al.shutdown),A7=new Zo(Xd);al.add(Qd,A7);al.listen("0.0.0.0:"+Qe.port);console.log("Processor Server Started at:",Qe.port);var J1=4040,b7=v7.createServer(async function(t,e){if(t.url){let n=new URL(t.url,`http://${t.headers.host}`),o=n.searchParams;switch(n.pathname){case"/profile":{try{let a=parseInt(o.get("t")||"1000",10)||1e3,u=new y7;u.connect(),await u.post("Profiler.enable"),await u.post("Profiler.start"),await new Promise(r=>setTimeout(r,a));let{profile:i}=await u.post("Profiler.stop");e.writeHead(200,{"Content-Type":"application/json"}),e.write(JSON.stringify(i)),u.disconnect()}catch{e.writeHead(500)}break}default:e.writeHead(404)}}else e.writeHead(404);e.end()}).listen(J1);console.log("Metric Server Started at:",J1);process.on("SIGINT",function(){x7(0)}).on("uncaughtException",t=>{console.error("Uncaught Exception, please checking if await is properly used",t),Xd.unhandled=t}).on("unhandledRejection",(t,e)=>{t?.message.startsWith('invalid ENS name (disallowed character: "*"')||(console.error("Unhandled Rejection, please checking if await is properly",t),Xd.unhandled=t)});function x7(t){al.forceShutdown(),console.log("RPC server shut down"),b7.close(function(){console.log("Http server shut down"),process.exit(t)})}import("process").then(t=>t.stdout.write(""));
|
58
|
+
${s}
|
59
|
+
`}};Ku.PrometheusSerializer=Sd});var MI=h(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.PrometheusExporter=void 0;var Ni=(b(),Y(Re)),Oz=(K(),Y(Us)),Td=(wn(),Y(Yp)),gz=L("http"),Nz=hd(),Rz=L("url"),Lt=class extends Td.MetricReader{constructor(e={},n=()=>{}){super({aggregationSelector:i=>Td.Aggregation.Default(),aggregationTemporalitySelector:i=>Td.AggregationTemporality.CUMULATIVE,metricProducers:e.metricProducers}),this._requestHandler=(i,a)=>{i.url!=null&&new Rz.URL(i.url,this._baseUrl).pathname===this._endpoint?this._exportMetrics(a):this._notFound(a)},this._exportMetrics=i=>{i.statusCode=200,i.setHeader("content-type","text/plain"),this.collect().then(a=>{let{resourceMetrics:s,errors:o}=a;o.length&&Ni.diag.error("PrometheusExporter: metrics collection errors",...o),i.end(this._serializer.serialize(s))},a=>{i.end(`# failed to export metrics: ${a}`)})},this._notFound=i=>{i.statusCode=404,i.end()},this._host=e.host||process.env.OTEL_EXPORTER_PROMETHEUS_HOST||Lt.DEFAULT_OPTIONS.host,this._port=e.port||Number(process.env.OTEL_EXPORTER_PROMETHEUS_PORT)||Lt.DEFAULT_OPTIONS.port,this._prefix=e.prefix||Lt.DEFAULT_OPTIONS.prefix,this._appendTimestamp=typeof e.appendTimestamp=="boolean"?e.appendTimestamp:Lt.DEFAULT_OPTIONS.appendTimestamp,this._server=(0,gz.createServer)(this._requestHandler).unref(),this._serializer=new Nz.PrometheusSerializer(this._prefix,this._appendTimestamp),this._baseUrl=`http://${this._host}:${this._port}/`,this._endpoint=(e.endpoint||Lt.DEFAULT_OPTIONS.endpoint).replace(/^([^/])/,"/$1"),e.preventServerStart!==!0?this.startServer().then(n,i=>{Ni.diag.error(i),n(i)}):n&&queueMicrotask(n)}async onForceFlush(){}onShutdown(){return this.stopServer()}stopServer(){return this._server?new Promise(e=>{this._server.close(n=>{n?n.code!=="ERR_SERVER_NOT_RUNNING"&&(0,Oz.globalErrorHandler)(n):Ni.diag.debug("Prometheus exporter was stopped"),e()})}):(Ni.diag.debug("Prometheus stopServer() was called but server was never started."),Promise.resolve())}startServer(){var e;return(e=this._startServerPromise)!==null&&e!==void 0||(this._startServerPromise=new Promise((n,i)=>{this._server.once("error",i),this._server.listen({port:this._port,host:this._host},()=>{Ni.diag.debug(`Prometheus exporter server started: ${this._host}:${this._port}/${this._endpoint}`),n()})})),this._startServerPromise}getMetricsRequestHandler(e,n){this._exportMetrics(n)}};Wu.PrometheusExporter=Lt;Lt.DEFAULT_OPTIONS={host:void 0,port:9464,endpoint:"/metrics",prefix:"",appendTimestamp:!1}});var xI=h(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.PrometheusSerializer=Yn.PrometheusExporter=void 0;var Pz=MI();Object.defineProperty(Yn,"PrometheusExporter",{enumerable:!0,get:function(){return Pz.PrometheusExporter}});var bz=hd();Object.defineProperty(Yn,"PrometheusSerializer",{enumerable:!0,get:function(){return bz.PrometheusSerializer}})});var md=h(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.AbstractAsyncHooksContextManager=void 0;var Mz=L("events"),xz=["addListener","on","once","prependListener","prependOnceListener"],vd=class{constructor(){this._kOtListeners=Symbol("OtListeners"),this._wrapped=!1}bind(e,n){return n instanceof Mz.EventEmitter?this._bindEventEmitter(e,n):typeof n=="function"?this._bindFunction(e,n):n}_bindFunction(e,n){let i=this,a=function(...s){return i.with(e,()=>n.apply(this,s))};return Object.defineProperty(a,"length",{enumerable:!1,configurable:!0,writable:!1,value:n.length}),a}_bindEventEmitter(e,n){return this._getPatchMap(n)!==void 0||(this._createPatchMap(n),xz.forEach(a=>{n[a]!==void 0&&(n[a]=this._patchAddListener(n,n[a],e))}),typeof n.removeListener=="function"&&(n.removeListener=this._patchRemoveListener(n,n.removeListener)),typeof n.off=="function"&&(n.off=this._patchRemoveListener(n,n.off)),typeof n.removeAllListeners=="function"&&(n.removeAllListeners=this._patchRemoveAllListeners(n,n.removeAllListeners))),n}_patchRemoveListener(e,n){let i=this;return function(a,s){var o;let r=(o=i._getPatchMap(e))===null||o===void 0?void 0:o[a];if(r===void 0)return n.call(this,a,s);let u=r.get(s);return n.call(this,a,u||s)}}_patchRemoveAllListeners(e,n){let i=this;return function(a){let s=i._getPatchMap(e);return s!==void 0&&(arguments.length===0?i._createPatchMap(e):s[a]!==void 0&&delete s[a]),n.apply(this,arguments)}}_patchAddListener(e,n,i){let a=this;return function(s,o){if(a._wrapped)return n.call(this,s,o);let r=a._getPatchMap(e);r===void 0&&(r=a._createPatchMap(e));let u=r[s];u===void 0&&(u=new WeakMap,r[s]=u);let l=a.bind(i,o);u.set(o,l),a._wrapped=!0;try{return n.call(this,s,l)}finally{a._wrapped=!1}}}_createPatchMap(e){let n=Object.create(null);return e[this._kOtListeners]=n,n}_getPatchMap(e){return e[this._kOtListeners]}};zu.AbstractAsyncHooksContextManager=vd});var LI=h(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.AsyncHooksContextManager=void 0;var Lz=(b(),Y(Re)),Iz=L("async_hooks"),Cz=md(),yd=class extends Cz.AbstractAsyncHooksContextManager{constructor(){super(),this._contexts=new Map,this._stack=[],this._asyncHook=Iz.createHook({init:this._init.bind(this),before:this._before.bind(this),after:this._after.bind(this),destroy:this._destroy.bind(this),promiseResolve:this._destroy.bind(this)})}active(){var e;return(e=this._stack[this._stack.length-1])!==null&&e!==void 0?e:Lz.ROOT_CONTEXT}with(e,n,i,...a){this._enterContext(e);try{return n.call(i,...a)}finally{this._exitContext()}}enable(){return this._asyncHook.enable(),this}disable(){return this._asyncHook.disable(),this._contexts.clear(),this._stack=[],this}_init(e,n){if(n==="TIMERWRAP")return;let i=this._stack[this._stack.length-1];i!==void 0&&this._contexts.set(e,i)}_destroy(e){this._contexts.delete(e)}_before(e){let n=this._contexts.get(e);n!==void 0&&this._enterContext(n)}_after(){this._exitContext()}_enterContext(e){this._stack.push(e)}_exitContext(){this._stack.pop()}};Xu.AsyncHooksContextManager=yd});var II=h(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.AsyncLocalStorageContextManager=void 0;var wz=(b(),Y(Re)),Uz=L("async_hooks"),Dz=md(),Ad=class extends Dz.AbstractAsyncHooksContextManager{constructor(){super(),this._asyncLocalStorage=new Uz.AsyncLocalStorage}active(){var e;return(e=this._asyncLocalStorage.getStore())!==null&&e!==void 0?e:wz.ROOT_CONTEXT}with(e,n,i,...a){let s=i==null?n:n.bind(i);return this._asyncLocalStorage.run(e,s,...a)}enable(){return this}disable(){return this._asyncLocalStorage.disable(),this}};Ju.AsyncLocalStorageContextManager=Ad});var CI=h(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.AsyncLocalStorageContextManager=qn.AsyncHooksContextManager=void 0;var Vz=LI();Object.defineProperty(qn,"AsyncHooksContextManager",{enumerable:!0,get:function(){return Vz.AsyncHooksContextManager}});var Bz=II();Object.defineProperty(qn,"AsyncLocalStorageContextManager",{enumerable:!0,get:function(){return Bz.AsyncLocalStorageContextManager}})});var jn,Od=m(()=>{b();jn=Xr("OpenTelemetry Context Key B3 Debug Flag")});var Tr,$n,Kn,Wn,Qu,zn,Ri=m(()=>{Tr="b3",$n="x-b3-traceid",Kn="x-b3-spanid",Wn="x-b3-sampled",Qu="x-b3-parentspanid",zn="x-b3-flags"});function Hz(t){return t===J.SAMPLED||t===J.NONE}function Fz(t){return Array.isArray(t)?t[0]:t}function Zu(t,e,n){var i=e.get(t,n);return Fz(i)}function Yz(t,e){var n=Zu(t,e,$n);return typeof n=="string"?n.padStart(32,"0"):""}function qz(t,e){var n=Zu(t,e,Kn);return typeof n=="string"?n:""}function wI(t,e){var n=Zu(t,e,zn);return n==="1"?"1":void 0}function jz(t,e){var n=Zu(t,e,Wn),i=wI(t,e);if(i==="1"||Gz.has(n))return J.SAMPLED;if(n===void 0||kz.has(n))return J.NONE}var Gz,kz,UI,DI=m(()=>{b();K();Od();Ri();Gz=new Set([!0,"true","True","1",1]),kz=new Set([!1,"false","False","0",0]);UI=function(){function t(){}return t.prototype.inject=function(e,n,i){var a=X.getSpanContext(e);if(!(!a||!_t(a)||be(e))){var s=e.getValue(jn);i.set(n,$n,a.traceId),i.set(n,Kn,a.spanId),s==="1"?i.set(n,zn,s):a.traceFlags!==void 0&&i.set(n,Wn,(J.SAMPLED&a.traceFlags)===J.SAMPLED?"1":"0")}},t.prototype.extract=function(e,n,i){var a=Yz(n,i),s=qz(n,i),o=jz(n,i),r=wI(n,i);return Ft(a)&&Vi(s)&&Hz(o)?(e=e.setValue(jn,r),X.setSpanContext(e,{traceId:a,spanId:s,isRemote:!0,traceFlags:o})):e},t.prototype.fields=function(){return[$n,Kn,zn,Wn,Qu]},t}()});function Jz(t){return t.length===32?t:""+Wz+t}function Qz(t){return t&&zz.has(t)?J.SAMPLED:J.NONE}var $z,Kz,Wz,zz,Xz,VI,BI=m(()=>{b();K();Od();Ri();$z=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Kz=/((?:[0-9a-f]{16}){1,2})-([0-9a-f]{16})(?:-([01d](?![0-9a-f])))?(?:-([0-9a-f]{16}))?/,Wz="0".repeat(16),zz=new Set(["d","1"]),Xz="d";VI=function(){function t(){}return t.prototype.inject=function(e,n,i){var a=X.getSpanContext(e);if(!(!a||!_t(a)||be(e))){var s=e.getValue(jn)||a.traceFlags&1,o=a.traceId+"-"+a.spanId+"-"+s;i.set(n,Tr,o)}},t.prototype.extract=function(e,n,i){var a=i.get(n,Tr),s=Array.isArray(a)?a[0]:a;if(typeof s!="string")return e;var o=s.match(Kz);if(!o)return e;var r=$z(o,4),u=r[1],l=r[2],c=r[3],p=Jz(u);if(!Ft(p)||!Vi(l))return e;var _=Qz(c);return c===Xz&&(e=e.setValue(jn,c)),X.setSpanContext(e,{traceId:p,spanId:l,isRemote:!0,traceFlags:_})},t.prototype.fields=function(){return[Tr]},t}()});var Xn,gd=m(()=>{(function(t){t[t.SINGLE_HEADER=0]="SINGLE_HEADER",t[t.MULTI_HEADER=1]="MULTI_HEADER"})(Xn||(Xn={}))});var GI,kI=m(()=>{K();DI();BI();Ri();gd();GI=function(){function t(e){e===void 0&&(e={}),this._b3MultiPropagator=new UI,this._b3SinglePropagator=new VI,e.injectEncoding===Xn.MULTI_HEADER?(this._inject=this._b3MultiPropagator.inject,this._fields=this._b3MultiPropagator.fields()):(this._inject=this._b3SinglePropagator.inject,this._fields=this._b3SinglePropagator.fields())}return t.prototype.inject=function(e,n,i){be(e)||this._inject(e,n,i)},t.prototype.extract=function(e,n,i){var a=i.get(n,Tr),s=Array.isArray(a)?a[0]:a;return s?this._b3SinglePropagator.extract(e,n,i):this._b3MultiPropagator.extract(e,n,i)},t.prototype.fields=function(){return this._fields},t}()});var HI={};it(HI,{B3InjectEncoding:()=>Xn,B3Propagator:()=>GI,B3_CONTEXT_HEADER:()=>Tr,X_B3_FLAGS:()=>zn,X_B3_PARENT_SPAN_ID:()=>Qu,X_B3_SAMPLED:()=>Wn,X_B3_SPAN_ID:()=>Kn,X_B3_TRACE_ID:()=>$n});var FI=m(()=>{kI();Ri();gd()});var YI,qI=m(()=>{YI="exception"});var Nd,Zz,jI,eX,el,Rd=m(()=>{b();K();Xo();qI();Nd=function(){return Nd=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},Nd.apply(this,arguments)},Zz=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},jI=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},eX=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},el=function(){function t(e,n,i,a,s,o,r,u,l,c){r===void 0&&(r=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:lE.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=i,this._spanContext=a,this.parentSpanId=o,this.kind=s,this.links=r;var p=Date.now();this._performanceStartTime=tt.now(),this._performanceOffset=p-(this._performanceStartTime+Nn()),this._startTimeProvided=u!=null,this.startTime=this._getTime(u??p),this.resource=e.resource,this.instrumentationLibrary=e.instrumentationLibrary,this._spanLimits=e.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,c!=null&&this.setAttributes(c),this._spanProcessor=e.getActiveSpanProcessor(),this._spanProcessor.onStart(this,n)}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(e,n){return n==null||this._isSpanEnded()?this:e.length===0?(g.warn("Invalid attribute key: "+e),this):Zo(n)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(n),this):(g.warn("Invalid attribute value set for key: "+e),this)},t.prototype.setAttributes=function(e){var n,i;try{for(var a=Zz(Object.entries(e)),s=a.next();!s.done;s=a.next()){var o=jI(s.value,2),r=o[0],u=o[1];this.setAttribute(r,u)}}catch(l){n={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return this},t.prototype.addEvent=function(e,n,i){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return g.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(this._droppedEventsCount===0&&g.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),ni(n)&&(ni(i)||(i=n),n=void 0);var a=ur(n);return this.events.push({name:e,attributes:a,time:this._getTime(i),droppedAttributesCount:0}),this},t.prototype.addLink=function(e){return this.links.push(e),this},t.prototype.addLinks=function(e){var n;return(n=this.links).push.apply(n,eX([],jI(e),!1)),this},t.prototype.setStatus=function(e){return this._isSpanEnded()?this:(this.status=Nd({},e),this.status.message!=null&&typeof e.message!="string"&&(g.warn("Dropping invalid status.message of type '"+typeof e.message+"', expected 'string'"),delete this.status.message),this)},t.prototype.updateName=function(e){return this._isSpanEnded()?this:(this.name=e,this)},t.prototype.end=function(e){if(this._isSpanEnded()){g.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(e),this._duration=Rs(this.startTime,this.endTime),this._duration[0]<0&&(g.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&&g.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this)},t.prototype._getTime=function(e){if(typeof e=="number"&&e<tt.now())return ri(e+this._performanceOffset);if(typeof e=="number")return Oe(e);if(e instanceof Date)return Oe(e.getTime());if(Rn(e))return e;if(this._startTimeProvided)return Oe(Date.now());var n=tt.now()-this._performanceStartTime;return oi(this.startTime,Oe(n))},t.prototype.isRecording=function(){return this._ended===!1},t.prototype.recordException=function(e,n){var i={};typeof e=="string"?i[ps]=e:e&&(e.code?i[fs]=e.code.toString():e.name&&(i[fs]=e.name),e.message&&(i[ps]=e.message),e.stack&&(i[i0]=e.stack)),i[fs]||i[ps]?this.addEvent(YI,i,n):g.warn("Failed to record an exception "+e)},Object.defineProperty(t.prototype,"duration",{get:function(){return this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"droppedAttributesCount",{get:function(){return this._droppedAttributesCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"droppedEventsCount",{get:function(){return this._droppedEventsCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"droppedLinksCount",{get:function(){return this._droppedLinksCount},enumerable:!1,configurable:!0}),t.prototype._isSpanEnded=function(){return this._ended&&g.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},t.prototype._truncateToLimitUtil=function(e,n){return e.length<=n?e:e.substr(0,n)},t.prototype._truncateToSize=function(e){var n=this,i=this._attributeValueLengthLimit;return i<=0?(g.warn("Attribute value limit must be positive, got "+i),e):typeof e=="string"?this._truncateToLimitUtil(e,i):Array.isArray(e)?e.map(function(a){return typeof a=="string"?n._truncateToLimitUtil(a,i):a}):e},t}()});var dt,Pi=m(()=>{(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(dt||(dt={}))});var vr,tl=m(()=>{Pi();vr=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:dt.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}()});var It,rl=m(()=>{Pi();It=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:dt.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}()});var Jn,Pd=m(()=>{b();K();tl();rl();Jn=function(){function t(e){var n,i,a,s;this._root=e.root,this._root||(he(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new It),this._remoteParentSampled=(n=e.remoteParentSampled)!==null&&n!==void 0?n:new It,this._remoteParentNotSampled=(i=e.remoteParentNotSampled)!==null&&i!==void 0?i:new vr,this._localParentSampled=(a=e.localParentSampled)!==null&&a!==void 0?a:new It,this._localParentNotSampled=(s=e.localParentNotSampled)!==null&&s!==void 0?s:new vr}return t.prototype.shouldSample=function(e,n,i,a,s,o){var r=X.getSpanContext(e);return!r||!_t(r)?this._root.shouldSample(e,n,i,a,s,o):r.isRemote?r.traceFlags&J.SAMPLED?this._remoteParentSampled.shouldSample(e,n,i,a,s,o):this._remoteParentNotSampled.shouldSample(e,n,i,a,s,o):r.traceFlags&J.SAMPLED?this._localParentSampled.shouldSample(e,n,i,a,s,o):this._localParentNotSampled.shouldSample(e,n,i,a,s,o)},t.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},t}()});var bi,bd=m(()=>{b();Pi();bi=function(){function t(e){e===void 0&&(e=0),this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}return t.prototype.shouldSample=function(e,n){return{decision:Ft(n)&&this._accumulate(n)<this._upperBound?dt.RECORD_AND_SAMPLED:dt.NOT_RECORD}},t.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},t.prototype._normalize=function(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e},t.prototype._accumulate=function(e){for(var n=0,i=0;i<e.length/8;i++){var a=i*8,s=parseInt(e.slice(a,a+8),16);n=(n^s)>>>0}return n},t}()});function nl(){var t=Ae();return{sampler:Md(tX),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:t.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:t.OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:t.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:t.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:t.OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:t.OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:t.OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:t.OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}}}function Md(t){switch(t===void 0&&(t=Ae()),t.OTEL_TRACES_SAMPLER){case qe.AlwaysOn:return new It;case qe.AlwaysOff:return new vr;case qe.ParentBasedAlwaysOn:return new Jn({root:new It});case qe.ParentBasedAlwaysOff:return new Jn({root:new vr});case qe.TraceIdRatio:return new bi($I(t));case qe.ParentBasedTraceIdRatio:return new Jn({root:new bi($I(t))});default:return g.error('OTEL_TRACES_SAMPLER value "'+t.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+rX+'".'),new It}}function $I(t){if(t.OTEL_TRACES_SAMPLER_ARG===void 0||t.OTEL_TRACES_SAMPLER_ARG==="")return g.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to "+Qn+"."),Qn;var e=Number(t.OTEL_TRACES_SAMPLER_ARG);return isNaN(e)?(g.error("OTEL_TRACES_SAMPLER_ARG="+t.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to "+Qn+"."),Qn):e<0||e>1?(g.error("OTEL_TRACES_SAMPLER_ARG="+t.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to "+Qn+"."),Qn):e}var tX,rX,Qn,xd=m(()=>{b();K();tl();rl();Pd();bd();tX=Ae(),rX=qe.AlwaysOn,Qn=1});function KI(t){var e={sampler:Md()},n=nl(),i=Object.assign({},n,e,t);return i.generalLimits=Object.assign({},n.generalLimits,t.generalLimits||{}),i.spanLimits=Object.assign({},n.spanLimits,t.spanLimits||{}),i}function WI(t){var e,n,i,a,s,o,r,u,l,c,p,_,f=Object.assign({},t.spanLimits),S=On();return f.attributeCountLimit=(o=(s=(a=(n=(e=t.spanLimits)===null||e===void 0?void 0:e.attributeCountLimit)!==null&&n!==void 0?n:(i=t.generalLimits)===null||i===void 0?void 0:i.attributeCountLimit)!==null&&a!==void 0?a:S.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)!==null&&s!==void 0?s:S.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&o!==void 0?o:Gr,f.attributeValueLengthLimit=(_=(p=(c=(u=(r=t.spanLimits)===null||r===void 0?void 0:r.attributeValueLengthLimit)!==null&&u!==void 0?u:(l=t.generalLimits)===null||l===void 0?void 0:l.attributeValueLengthLimit)!==null&&c!==void 0?c:S.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&p!==void 0?p:S.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&_!==void 0?_:Br,Object.assign({},t,{spanLimits:f})}var Ld=m(()=>{xd();K()});var zI,XI=m(()=>{b();K();zI=function(){function t(e,n){this._exporter=e,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var i=Ae();this._maxExportBatchSize=typeof n?.maxExportBatchSize=="number"?n.maxExportBatchSize:i.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof n?.maxQueueSize=="number"?n.maxQueueSize:i.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof n?.scheduledDelayMillis=="number"?n.scheduledDelayMillis:i.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof n?.exportTimeoutMillis=="number"?n.exportTimeoutMillis:i.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new pr(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(g.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return t.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},t.prototype.onStart=function(e,n){},t.prototype.onEnd=function(e){this._shutdownOnce.isCalled||e.spanContext().traceFlags&J.SAMPLED&&this._addToBuffer(e)},t.prototype.shutdown=function(){return this._shutdownOnce.call()},t.prototype._shutdown=function(){var e=this;return Promise.resolve().then(function(){return e.onShutdown()}).then(function(){return e._flushAll()}).then(function(){return e._exporter.shutdown()})},t.prototype._addToBuffer=function(e){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&g.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(g.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()},t.prototype._flushAll=function(){var e=this;return new Promise(function(n,i){for(var a=[],s=Math.ceil(e._finishedSpans.length/e._maxExportBatchSize),o=0,r=s;o<r;o++)a.push(e._flushOneBatch());Promise.all(a).then(function(){n()}).catch(i)})},t.prototype._flushOneBatch=function(){var e=this;return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise(function(n,i){var a=setTimeout(function(){i(new Error("Timeout"))},e._exportTimeoutMillis);ke.with(yn(ke.active()),function(){var s;e._finishedSpans.length<=e._maxExportBatchSize?(s=e._finishedSpans,e._finishedSpans=[]):s=e._finishedSpans.splice(0,e._maxExportBatchSize);for(var o=function(){return e._exporter.export(s,function(p){var _;clearTimeout(a),p.code===ee.SUCCESS?n():i((_=p.error)!==null&&_!==void 0?_:new Error("BatchSpanProcessor: span export failed"))})},r=null,u=0,l=s.length;u<l;u++){var c=s[u];c.resource.asyncAttributesPending&&c.resource.waitForAsyncAttributes&&(r??(r=[]),r.push(c.resource.waitForAsyncAttributes()))}r===null?o():Promise.all(r).then(o,function(p){he(p),i(p)})})})},t.prototype._maybeStartTimer=function(){var e=this;if(!this._isExporting){var n=function(){e._isExporting=!0,e._flushOneBatch().finally(function(){e._isExporting=!1,e._finishedSpans.length>0&&(e._clearTimer(),e._maybeStartTimer())}).catch(function(i){e._isExporting=!1,he(i)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return n();this._timer===void 0&&(this._timer=setTimeout(function(){return n()},this._scheduledDelayMillis),fr(this._timer))}},t.prototype._clearTimer=function(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)},t}()});var nX,mr,JI=m(()=>{XI();nX=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),mr=function(t){nX(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onShutdown=function(){},e}(zI)});function QI(t){return function(){for(var n=0;n<t/4;n++)ol.writeUInt32BE(Math.random()*Math.pow(2,32)>>>0,n*4);for(var n=0;n<t&&!(ol[n]>0);n++)n===t-1&&(ol[t-1]=1);return ol.toString("hex",0,t)}}var oX,ZI,Zn,ol,eC=m(()=>{oX=8,ZI=16,Zn=function(){function t(){this.generateTraceId=QI(ZI),this.generateSpanId=QI(oX)}return t}(),ol=Buffer.allocUnsafe(ZI)});var tC=m(()=>{JI();eC()});var il=m(()=>{tC()});var al,rC=m(()=>{b();K();Rd();Ld();il();al=function(){function t(e,n,i){this._tracerProvider=i;var a=KI(n);this._sampler=a.sampler,this._generalLimits=a.generalLimits,this._spanLimits=a.spanLimits,this._idGenerator=n.idGenerator||new Zn,this.resource=i.resource,this.instrumentationLibrary=e}return t.prototype.startSpan=function(e,n,i){var a,s,o;n===void 0&&(n={}),i===void 0&&(i=ke.active()),n.root&&(i=X.deleteSpan(i));var r=X.getSpan(i);if(be(i)){g.debug("Instrumentation suppressed, returning Noop Span");var u=X.wrapSpanContext(aE);return u}var l=r?.spanContext(),c=this._idGenerator.generateSpanId(),p,_,f;!l||!X.isSpanContextValid(l)?p=this._idGenerator.generateTraceId():(p=l.traceId,_=l.traceState,f=l.spanId);var S=(a=n.kind)!==null&&a!==void 0?a:uE.INTERNAL,v=((s=n.links)!==null&&s!==void 0?s:[]).map(function(F){return{context:F.context,attributes:ur(F.attributes)}}),T=ur(n.attributes),A=this._sampler.shouldSample(i,p,e,S,T,v);_=(o=A.traceState)!==null&&o!==void 0?o:_;var O=A.decision===St.RECORD_AND_SAMPLED?J.SAMPLED:J.NONE,N={traceId:p,spanId:c,traceFlags:O,traceState:_};if(A.decision===St.NOT_RECORD){g.debug("Recording is off, propagating context in a non-recording span");var u=X.wrapSpanContext(N);return u}var D=ur(Object.assign(T,A.attributes)),G=new el(this,i,e,N,S,f,v,n.startTime,void 0,D);return G},t.prototype.startActiveSpan=function(e,n,i,a){var s,o,r;if(!(arguments.length<2)){arguments.length===2?r=n:arguments.length===3?(s=n,r=i):(s=n,o=i,r=a);var u=o??ke.active(),l=this.startSpan(e,s,u),c=X.setSpan(u,l);return ke.with(c,r,void 0,l)}},t.prototype.getGeneralLimits=function(){return this._generalLimits},t.prototype.getSpanLimits=function(){return this._spanLimits},t.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},t}()});var sl,nC,oC=m(()=>{K();sl=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},nC=function(){function t(e){this._spanProcessors=e}return t.prototype.forceFlush=function(){var e,n,i=[];try{for(var a=sl(this._spanProcessors),s=a.next();!s.done;s=a.next()){var o=s.value;i.push(o.forceFlush())}}catch(r){e={error:r}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return new Promise(function(r){Promise.all(i).then(function(){r()}).catch(function(u){he(u||new Error("MultiSpanProcessor: forceFlush failed")),r()})})},t.prototype.onStart=function(e,n){var i,a;try{for(var s=sl(this._spanProcessors),o=s.next();!o.done;o=s.next()){var r=o.value;r.onStart(e,n)}}catch(u){i={error:u}}finally{try{o&&!o.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}},t.prototype.onEnd=function(e){var n,i;try{for(var a=sl(this._spanProcessors),s=a.next();!s.done;s=a.next()){var o=s.value;o.onEnd(e)}}catch(r){n={error:r}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}},t.prototype.shutdown=function(){var e,n,i=[];try{for(var a=sl(this._spanProcessors),s=a.next();!s.done;s=a.next()){var o=s.value;i.push(o.shutdown())}}catch(r){e={error:r}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return new Promise(function(r,u){Promise.all(i).then(function(){r()},u)})},t}()});var ul,Id=m(()=>{ul=function(){function t(){}return t.prototype.onStart=function(e,n){},t.prototype.onEnd=function(e){},t.prototype.shutdown=function(){return Promise.resolve()},t.prototype.forceFlush=function(){return Promise.resolve()},t}()});var kt,iC,aC=m(()=>{b();K();Bs();Mi();xd();oC();Id();il();Ld();(function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"})(kt||(kt={}));iC=function(){function t(e){e===void 0&&(e={});var n;this._registeredSpanProcessors=[],this._tracers=new Map;var i=ws({},nl(),WI(e));this.resource=(n=i.resource)!==null&&n!==void 0?n:Bt.empty(),this.resource=Bt.default().merge(this.resource),this._config=Object.assign({},i,{resource:this.resource});var a=this._buildExporterFromEnv();if(a!==void 0){var s=new mr(a);this.activeSpanProcessor=s}else this.activeSpanProcessor=new ul}return t.prototype.getTracer=function(e,n,i){var a=e+"@"+(n||"")+":"+(i?.schemaUrl||"");return this._tracers.has(a)||this._tracers.set(a,new al({name:e,version:n,schemaUrl:i?.schemaUrl},this._config,this)),this._tracers.get(a)},t.prototype.addSpanProcessor=function(e){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(function(n){return g.error("Error while trying to shutdown current span processor",n)}),this._registeredSpanProcessors.push(e),this.activeSpanProcessor=new nC(this._registeredSpanProcessors)},t.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},t.prototype.register=function(e){e===void 0&&(e={}),X.setGlobalTracerProvider(this),e.propagator===void 0&&(e.propagator=this._buildPropagatorFromEnv()),e.contextManager&&ke.setGlobalContextManager(e.contextManager),e.propagator&&st.setGlobalPropagator(e.propagator)},t.prototype.forceFlush=function(){var e=this._config.forceFlushTimeoutMillis,n=this._registeredSpanProcessors.map(function(i){return new Promise(function(a){var s,o=setTimeout(function(){a(new Error("Span processor did not completed within timeout period of "+e+" ms")),s=kt.timeout},e);i.forceFlush().then(function(){clearTimeout(o),s!==kt.timeout&&(s=kt.resolved,a(s))}).catch(function(r){clearTimeout(o),s=kt.error,a(r)})})});return new Promise(function(i,a){Promise.all(n).then(function(s){var o=s.filter(function(r){return r!==kt.resolved});o.length>0?a(o):i()}).catch(function(s){return a([s])})})},t.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},t.prototype._getPropagator=function(e){var n;return(n=this.constructor._registeredPropagators.get(e))===null||n===void 0?void 0:n()},t.prototype._getSpanExporter=function(e){var n;return(n=this.constructor._registeredExporters.get(e))===null||n===void 0?void 0:n()},t.prototype._buildPropagatorFromEnv=function(){var e=this,n=Array.from(new Set(Ae().OTEL_PROPAGATORS)),i=n.map(function(s){var o=e._getPropagator(s);return o||g.warn('Propagator "'+s+'" requested through environment variable is unavailable.'),o}),a=i.reduce(function(s,o){return o&&s.push(o),s},[]);if(a.length!==0)return n.length===1?a[0]:new bs({propagators:a})},t.prototype._buildExporterFromEnv=function(){var e=Ae().OTEL_TRACES_EXPORTER;if(!(e==="none"||e==="")){var n=this._getSpanExporter(e);return n||g.error('Exporter "'+e+'" requested through environment variable is unavailable.'),n}},t._registeredPropagators=new Map([["tracecontext",function(){return new xs}],["baggage",function(){return new Ts}]]),t._registeredExporters=new Map,t}()});var iX,sC,uC=m(()=>{K();iX=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},sC=function(){function t(){}return t.prototype.export=function(e,n){return this._sendSpans(e,n)},t.prototype.shutdown=function(){return this._sendSpans([]),this.forceFlush()},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype._exportInfo=function(e){var n;return{resource:{attributes:e.resource.attributes},instrumentationScope:e.instrumentationLibrary,traceId:e.spanContext().traceId,parentId:e.parentSpanId,traceState:(n=e.spanContext().traceState)===null||n===void 0?void 0:n.serialize(),name:e.name,id:e.spanContext().spanId,kind:e.kind,timestamp:Nt(e.startTime),duration:Nt(e.duration),attributes:e.attributes,status:e.status,events:e.events,links:e.links}},t.prototype._sendSpans=function(e,n){var i,a;try{for(var s=iX(e),o=s.next();!o.done;o=s.next()){var r=o.value;console.dir(this._exportInfo(r),{depth:3})}}catch(u){i={error:u}}finally{try{o&&!o.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}if(n)return n({code:ee.SUCCESS})},t}()});var aX,sX,lC,cC=m(()=>{K();aX=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},sX=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},lC=function(){function t(){this._finishedSpans=[],this._stopped=!1}return t.prototype.export=function(e,n){var i;if(this._stopped)return n({code:ee.FAILED,error:new Error("Exporter has been stopped")});(i=this._finishedSpans).push.apply(i,sX([],aX(e),!1)),setTimeout(function(){return n({code:ee.SUCCESS})},0)},t.prototype.shutdown=function(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype.reset=function(){this._finishedSpans=[]},t.prototype.getFinishedSpans=function(){return this._finishedSpans},t}()});var uX,lX,fC,pC=m(()=>{b();K();uX=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},lX=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},fC=function(){function t(e){this._exporter=e,this._shutdownOnce=new pr(this._shutdown,this),this._unresolvedExports=new Set}return t.prototype.forceFlush=function(){return uX(this,void 0,void 0,function(){return lX(this,function(e){switch(e.label){case 0:return[4,Promise.all(Array.from(this._unresolvedExports))];case 1:return e.sent(),this._exporter.forceFlush?[4,this._exporter.forceFlush()]:[3,3];case 2:e.sent(),e.label=3;case 3:return[2]}})})},t.prototype.onStart=function(e,n){},t.prototype.onEnd=function(e){var n=this,i,a;if(!this._shutdownOnce.isCalled&&e.spanContext().traceFlags&J.SAMPLED){var s=function(){return li._export(n._exporter,[e]).then(function(r){var u;r.code!==ee.SUCCESS&&he((u=r.error)!==null&&u!==void 0?u:new Error("SimpleSpanProcessor: span export failed (status "+r+")"))}).catch(function(r){he(r)})};if(e.resource.asyncAttributesPending){var o=(a=(i=e.resource).waitForAsyncAttributes)===null||a===void 0?void 0:a.call(i).then(function(){return o!=null&&n._unresolvedExports.delete(o),s()},function(r){return he(r)});o!=null&&this._unresolvedExports.add(o)}else s()}},t.prototype.shutdown=function(){return this._shutdownOnce.call()},t.prototype._shutdown=function(){return this._exporter.shutdown()},t}()});var Cd={};it(Cd,{AlwaysOffSampler:()=>vr,AlwaysOnSampler:()=>It,BasicTracerProvider:()=>iC,BatchSpanProcessor:()=>mr,ConsoleSpanExporter:()=>sC,ForceFlushState:()=>kt,InMemorySpanExporter:()=>lC,NoopSpanProcessor:()=>ul,ParentBasedSampler:()=>Jn,RandomIdGenerator:()=>Zn,SamplingDecision:()=>dt,SimpleSpanProcessor:()=>fC,Span:()=>el,TraceIdRatioBasedSampler:()=>bi,Tracer:()=>al});var Mi=m(()=>{rC();aC();il();uC();cC();pC();Id();tl();rl();Pd();bd();Pi();Rd()});var xi=h(($ce,dC)=>{var cX="2.0.0",fX=Number.MAX_SAFE_INTEGER||9007199254740991,pX=16,dX=256-6,EX=["major","premajor","minor","preminor","patch","prepatch","prerelease"];dC.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:pX,MAX_SAFE_BUILD_LENGTH:dX,MAX_SAFE_INTEGER:fX,RELEASE_TYPES:EX,SEMVER_SPEC_VERSION:cX,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Li=h((Kce,EC)=>{var _X=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};EC.exports=_X});var eo=h((Ht,_C)=>{var{MAX_SAFE_COMPONENT_LENGTH:wd,MAX_SAFE_BUILD_LENGTH:SX,MAX_LENGTH:hX}=xi(),TX=Li();Ht=_C.exports={};var vX=Ht.re=[],mX=Ht.safeRe=[],R=Ht.src=[],P=Ht.t={},yX=0,Ud="[a-zA-Z0-9-]",AX=[["\\s",1],["\\d",hX],[Ud,SX]],OX=t=>{for(let[e,n]of AX)t=t.split(`${e}*`).join(`${e}{0,${n}}`).split(`${e}+`).join(`${e}{1,${n}}`);return t},U=(t,e,n)=>{let i=OX(e),a=yX++;TX(t,a,e),P[t]=a,R[a]=e,vX[a]=new RegExp(e,n?"g":void 0),mX[a]=new RegExp(i,n?"g":void 0)};U("NUMERICIDENTIFIER","0|[1-9]\\d*");U("NUMERICIDENTIFIERLOOSE","\\d+");U("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Ud}*`);U("MAINVERSION",`(${R[P.NUMERICIDENTIFIER]})\\.(${R[P.NUMERICIDENTIFIER]})\\.(${R[P.NUMERICIDENTIFIER]})`);U("MAINVERSIONLOOSE",`(${R[P.NUMERICIDENTIFIERLOOSE]})\\.(${R[P.NUMERICIDENTIFIERLOOSE]})\\.(${R[P.NUMERICIDENTIFIERLOOSE]})`);U("PRERELEASEIDENTIFIER",`(?:${R[P.NUMERICIDENTIFIER]}|${R[P.NONNUMERICIDENTIFIER]})`);U("PRERELEASEIDENTIFIERLOOSE",`(?:${R[P.NUMERICIDENTIFIERLOOSE]}|${R[P.NONNUMERICIDENTIFIER]})`);U("PRERELEASE",`(?:-(${R[P.PRERELEASEIDENTIFIER]}(?:\\.${R[P.PRERELEASEIDENTIFIER]})*))`);U("PRERELEASELOOSE",`(?:-?(${R[P.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${R[P.PRERELEASEIDENTIFIERLOOSE]})*))`);U("BUILDIDENTIFIER",`${Ud}+`);U("BUILD",`(?:\\+(${R[P.BUILDIDENTIFIER]}(?:\\.${R[P.BUILDIDENTIFIER]})*))`);U("FULLPLAIN",`v?${R[P.MAINVERSION]}${R[P.PRERELEASE]}?${R[P.BUILD]}?`);U("FULL",`^${R[P.FULLPLAIN]}$`);U("LOOSEPLAIN",`[v=\\s]*${R[P.MAINVERSIONLOOSE]}${R[P.PRERELEASELOOSE]}?${R[P.BUILD]}?`);U("LOOSE",`^${R[P.LOOSEPLAIN]}$`);U("GTLT","((?:<|>)?=?)");U("XRANGEIDENTIFIERLOOSE",`${R[P.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);U("XRANGEIDENTIFIER",`${R[P.NUMERICIDENTIFIER]}|x|X|\\*`);U("XRANGEPLAIN",`[v=\\s]*(${R[P.XRANGEIDENTIFIER]})(?:\\.(${R[P.XRANGEIDENTIFIER]})(?:\\.(${R[P.XRANGEIDENTIFIER]})(?:${R[P.PRERELEASE]})?${R[P.BUILD]}?)?)?`);U("XRANGEPLAINLOOSE",`[v=\\s]*(${R[P.XRANGEIDENTIFIERLOOSE]})(?:\\.(${R[P.XRANGEIDENTIFIERLOOSE]})(?:\\.(${R[P.XRANGEIDENTIFIERLOOSE]})(?:${R[P.PRERELEASELOOSE]})?${R[P.BUILD]}?)?)?`);U("XRANGE",`^${R[P.GTLT]}\\s*${R[P.XRANGEPLAIN]}$`);U("XRANGELOOSE",`^${R[P.GTLT]}\\s*${R[P.XRANGEPLAINLOOSE]}$`);U("COERCEPLAIN",`(^|[^\\d])(\\d{1,${wd}})(?:\\.(\\d{1,${wd}}))?(?:\\.(\\d{1,${wd}}))?`);U("COERCE",`${R[P.COERCEPLAIN]}(?:$|[^\\d])`);U("COERCEFULL",R[P.COERCEPLAIN]+`(?:${R[P.PRERELEASE]})?(?:${R[P.BUILD]})?(?:$|[^\\d])`);U("COERCERTL",R[P.COERCE],!0);U("COERCERTLFULL",R[P.COERCEFULL],!0);U("LONETILDE","(?:~>?)");U("TILDETRIM",`(\\s*)${R[P.LONETILDE]}\\s+`,!0);Ht.tildeTrimReplace="$1~";U("TILDE",`^${R[P.LONETILDE]}${R[P.XRANGEPLAIN]}$`);U("TILDELOOSE",`^${R[P.LONETILDE]}${R[P.XRANGEPLAINLOOSE]}$`);U("LONECARET","(?:\\^)");U("CARETTRIM",`(\\s*)${R[P.LONECARET]}\\s+`,!0);Ht.caretTrimReplace="$1^";U("CARET",`^${R[P.LONECARET]}${R[P.XRANGEPLAIN]}$`);U("CARETLOOSE",`^${R[P.LONECARET]}${R[P.XRANGEPLAINLOOSE]}$`);U("COMPARATORLOOSE",`^${R[P.GTLT]}\\s*(${R[P.LOOSEPLAIN]})$|^$`);U("COMPARATOR",`^${R[P.GTLT]}\\s*(${R[P.FULLPLAIN]})$|^$`);U("COMPARATORTRIM",`(\\s*)${R[P.GTLT]}\\s*(${R[P.LOOSEPLAIN]}|${R[P.XRANGEPLAIN]})`,!0);Ht.comparatorTrimReplace="$1$2$3";U("HYPHENRANGE",`^\\s*(${R[P.XRANGEPLAIN]})\\s+-\\s+(${R[P.XRANGEPLAIN]})\\s*$`);U("HYPHENRANGELOOSE",`^\\s*(${R[P.XRANGEPLAINLOOSE]})\\s+-\\s+(${R[P.XRANGEPLAINLOOSE]})\\s*$`);U("STAR","(<|>)?=?\\s*\\*");U("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");U("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var ll=h((Wce,SC)=>{var gX=Object.freeze({loose:!0}),NX=Object.freeze({}),RX=t=>t?typeof t!="object"?gX:t:NX;SC.exports=RX});var Dd=h((zce,vC)=>{var hC=/^[0-9]+$/,TC=(t,e)=>{let n=hC.test(t),i=hC.test(e);return n&&i&&(t=+t,e=+e),t===e?0:n&&!i?-1:i&&!n?1:t<e?-1:1},PX=(t,e)=>TC(e,t);vC.exports={compareIdentifiers:TC,rcompareIdentifiers:PX}});var Me=h((Xce,OC)=>{var cl=Li(),{MAX_LENGTH:mC,MAX_SAFE_INTEGER:fl}=xi(),{safeRe:yC,t:AC}=eo(),bX=ll(),{compareIdentifiers:to}=Dd(),Je=class{constructor(e,n){if(n=bX(n),e instanceof Je){if(e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>mC)throw new TypeError(`version is longer than ${mC} characters`);cl("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let i=e.trim().match(n.loose?yC[AC.LOOSE]:yC[AC.FULL]);if(!i)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>fl||this.major<0)throw new TypeError("Invalid major version");if(this.minor>fl||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>fl||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(a=>{if(/^[0-9]+$/.test(a)){let s=+a;if(s>=0&&s<fl)return s}return a}):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(cl("SemVer.compare",this.version,this.options,e),!(e instanceof Je)){if(typeof e=="string"&&e===this.version)return 0;e=new Je(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof Je||(e=new Je(e,this.options)),to(this.major,e.major)||to(this.minor,e.minor)||to(this.patch,e.patch)}comparePre(e){if(e instanceof Je||(e=new Je(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let n=0;do{let i=this.prerelease[n],a=e.prerelease[n];if(cl("prerelease compare",n,i,a),i===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(i===void 0)return-1;if(i===a)continue;return to(i,a)}while(++n)}compareBuild(e){e instanceof Je||(e=new Je(e,this.options));let n=0;do{let i=this.build[n],a=e.build[n];if(cl("build compare",n,i,a),i===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(i===void 0)return-1;if(i===a)continue;return to(i,a)}while(++n)}inc(e,n,i){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,i),this.inc("pre",n,i);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,i),this.inc("pre",n,i);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let a=Number(i)?1:0;if(!n&&i===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[a];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(n===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(a)}}if(n){let s=[n,a];i===!1&&(s=[n]),to(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};OC.exports=Je});var Kr=h((Jce,NC)=>{var gC=Me(),MX=(t,e,n=!1)=>{if(t instanceof gC)return t;try{return new gC(t,e)}catch(i){if(!n)return null;throw i}};NC.exports=MX});var PC=h((Qce,RC)=>{var xX=Kr(),LX=(t,e)=>{let n=xX(t,e);return n?n.version:null};RC.exports=LX});var MC=h((Zce,bC)=>{var IX=Kr(),CX=(t,e)=>{let n=IX(t.trim().replace(/^[=v]+/,""),e);return n?n.version:null};bC.exports=CX});var IC=h((efe,LC)=>{var xC=Me(),wX=(t,e,n,i,a)=>{typeof n=="string"&&(a=i,i=n,n=void 0);try{return new xC(t instanceof xC?t.version:t,n).inc(e,i,a).version}catch{return null}};LC.exports=wX});var UC=h((tfe,wC)=>{var CC=Kr(),UX=(t,e)=>{let n=CC(t,null,!0),i=CC(e,null,!0),a=n.compare(i);if(a===0)return null;let s=a>0,o=s?n:i,r=s?i:n,u=!!o.prerelease.length;if(!!r.prerelease.length&&!u)return!r.patch&&!r.minor?"major":o.patch?"patch":o.minor?"minor":"major";let c=u?"pre":"";return n.major!==i.major?c+"major":n.minor!==i.minor?c+"minor":n.patch!==i.patch?c+"patch":"prerelease"};wC.exports=UX});var VC=h((rfe,DC)=>{var DX=Me(),VX=(t,e)=>new DX(t,e).major;DC.exports=VX});var GC=h((nfe,BC)=>{var BX=Me(),GX=(t,e)=>new BX(t,e).minor;BC.exports=GX});var HC=h((ofe,kC)=>{var kX=Me(),HX=(t,e)=>new kX(t,e).patch;kC.exports=HX});var YC=h((ife,FC)=>{var FX=Kr(),YX=(t,e)=>{let n=FX(t,e);return n&&n.prerelease.length?n.prerelease:null};FC.exports=YX});var nt=h((afe,jC)=>{var qC=Me(),qX=(t,e,n)=>new qC(t,n).compare(new qC(e,n));jC.exports=qX});var KC=h((sfe,$C)=>{var jX=nt(),$X=(t,e,n)=>jX(e,t,n);$C.exports=$X});var zC=h((ufe,WC)=>{var KX=nt(),WX=(t,e)=>KX(t,e,!0);WC.exports=WX});var pl=h((lfe,JC)=>{var XC=Me(),zX=(t,e,n)=>{let i=new XC(t,n),a=new XC(e,n);return i.compare(a)||i.compareBuild(a)};JC.exports=zX});var ZC=h((cfe,QC)=>{var XX=pl(),JX=(t,e)=>t.sort((n,i)=>XX(n,i,e));QC.exports=JX});var tw=h((ffe,ew)=>{var QX=pl(),ZX=(t,e)=>t.sort((n,i)=>QX(i,n,e));ew.exports=ZX});var Ii=h((pfe,rw)=>{var eJ=nt(),tJ=(t,e,n)=>eJ(t,e,n)>0;rw.exports=tJ});var dl=h((dfe,nw)=>{var rJ=nt(),nJ=(t,e,n)=>rJ(t,e,n)<0;nw.exports=nJ});var Vd=h((Efe,ow)=>{var oJ=nt(),iJ=(t,e,n)=>oJ(t,e,n)===0;ow.exports=iJ});var Bd=h((_fe,iw)=>{var aJ=nt(),sJ=(t,e,n)=>aJ(t,e,n)!==0;iw.exports=sJ});var El=h((Sfe,aw)=>{var uJ=nt(),lJ=(t,e,n)=>uJ(t,e,n)>=0;aw.exports=lJ});var _l=h((hfe,sw)=>{var cJ=nt(),fJ=(t,e,n)=>cJ(t,e,n)<=0;sw.exports=fJ});var Gd=h((Tfe,uw)=>{var pJ=Vd(),dJ=Bd(),EJ=Ii(),_J=El(),SJ=dl(),hJ=_l(),TJ=(t,e,n,i)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t===n;case"!==":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t!==n;case"":case"=":case"==":return pJ(t,n,i);case"!=":return dJ(t,n,i);case">":return EJ(t,n,i);case">=":return _J(t,n,i);case"<":return SJ(t,n,i);case"<=":return hJ(t,n,i);default:throw new TypeError(`Invalid operator: ${e}`)}};uw.exports=TJ});var cw=h((vfe,lw)=>{var vJ=Me(),mJ=Kr(),{safeRe:Sl,t:hl}=eo(),yJ=(t,e)=>{if(t instanceof vJ)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let n=null;if(!e.rtl)n=t.match(e.includePrerelease?Sl[hl.COERCEFULL]:Sl[hl.COERCE]);else{let u=e.includePrerelease?Sl[hl.COERCERTLFULL]:Sl[hl.COERCERTL],l;for(;(l=u.exec(t))&&(!n||n.index+n[0].length!==t.length);)(!n||l.index+l[0].length!==n.index+n[0].length)&&(n=l),u.lastIndex=l.index+l[1].length+l[2].length;u.lastIndex=-1}if(n===null)return null;let i=n[2],a=n[3]||"0",s=n[4]||"0",o=e.includePrerelease&&n[5]?`-${n[5]}`:"",r=e.includePrerelease&&n[6]?`+${n[6]}`:"";return mJ(`${i}.${a}.${s}${o}${r}`,e)};lw.exports=yJ});var pw=h((mfe,fw)=>{var kd=class{constructor(){this.max=1e3,this.map=new Map}get(e){let n=this.map.get(e);if(n!==void 0)return this.map.delete(e),this.map.set(e,n),n}delete(e){return this.map.delete(e)}set(e,n){if(!this.delete(e)&&n!==void 0){if(this.map.size>=this.max){let a=this.map.keys().next().value;this.delete(a)}this.map.set(e,n)}return this}};fw.exports=kd});var ot=h((yfe,Sw)=>{var Wr=class{constructor(e,n){if(n=OJ(n),e instanceof Wr)return e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease?e:new Wr(e.raw,n);if(e instanceof Hd)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(a=>!Ew(a[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let a of this.set)if(a.length===1&&xJ(a[0])){this.set=[a];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){let i=((this.options.includePrerelease&&bJ)|(this.options.loose&&MJ))+":"+e,a=dw.get(i);if(a)return a;let s=this.options.loose,o=s?je[Ve.HYPHENRANGELOOSE]:je[Ve.HYPHENRANGE];e=e.replace(o,kJ(this.options.includePrerelease)),te("hyphen replace",e),e=e.replace(je[Ve.COMPARATORTRIM],NJ),te("comparator trim",e),e=e.replace(je[Ve.TILDETRIM],RJ),te("tilde trim",e),e=e.replace(je[Ve.CARETTRIM],PJ),te("caret trim",e);let r=e.split(" ").map(p=>LJ(p,this.options)).join(" ").split(/\s+/).map(p=>GJ(p,this.options));s&&(r=r.filter(p=>(te("loose invalid filter",p,this.options),!!p.match(je[Ve.COMPARATORLOOSE])))),te("range list",r);let u=new Map,l=r.map(p=>new Hd(p,this.options));for(let p of l){if(Ew(p))return[p];u.set(p.value,p)}u.size>1&&u.has("")&&u.delete("");let c=[...u.values()];return dw.set(i,c),c}intersects(e,n){if(!(e instanceof Wr))throw new TypeError("a Range is required");return this.set.some(i=>_w(i,n)&&e.set.some(a=>_w(a,n)&&i.every(s=>a.every(o=>s.intersects(o,n)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new gJ(e,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(HJ(this.set[n],e,this.options))return!0;return!1}};Sw.exports=Wr;var AJ=pw(),dw=new AJ,OJ=ll(),Hd=Ci(),te=Li(),gJ=Me(),{safeRe:je,t:Ve,comparatorTrimReplace:NJ,tildeTrimReplace:RJ,caretTrimReplace:PJ}=eo(),{FLAG_INCLUDE_PRERELEASE:bJ,FLAG_LOOSE:MJ}=xi(),Ew=t=>t.value==="<0.0.0-0",xJ=t=>t.value==="",_w=(t,e)=>{let n=!0,i=t.slice(),a=i.pop();for(;n&&i.length;)n=i.every(s=>a.intersects(s,e)),a=i.pop();return n},LJ=(t,e)=>(te("comp",t,e),t=wJ(t,e),te("caret",t),t=IJ(t,e),te("tildes",t),t=DJ(t,e),te("xrange",t),t=BJ(t,e),te("stars",t),t),Be=t=>!t||t.toLowerCase()==="x"||t==="*",IJ=(t,e)=>t.trim().split(/\s+/).map(n=>CJ(n,e)).join(" "),CJ=(t,e)=>{let n=e.loose?je[Ve.TILDELOOSE]:je[Ve.TILDE];return t.replace(n,(i,a,s,o,r)=>{te("tilde",t,i,a,s,o,r);let u;return Be(a)?u="":Be(s)?u=`>=${a}.0.0 <${+a+1}.0.0-0`:Be(o)?u=`>=${a}.${s}.0 <${a}.${+s+1}.0-0`:r?(te("replaceTilde pr",r),u=`>=${a}.${s}.${o}-${r} <${a}.${+s+1}.0-0`):u=`>=${a}.${s}.${o} <${a}.${+s+1}.0-0`,te("tilde return",u),u})},wJ=(t,e)=>t.trim().split(/\s+/).map(n=>UJ(n,e)).join(" "),UJ=(t,e)=>{te("caret",t,e);let n=e.loose?je[Ve.CARETLOOSE]:je[Ve.CARET],i=e.includePrerelease?"-0":"";return t.replace(n,(a,s,o,r,u)=>{te("caret",t,a,s,o,r,u);let l;return Be(s)?l="":Be(o)?l=`>=${s}.0.0${i} <${+s+1}.0.0-0`:Be(r)?s==="0"?l=`>=${s}.${o}.0${i} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.0${i} <${+s+1}.0.0-0`:u?(te("replaceCaret pr",u),s==="0"?o==="0"?l=`>=${s}.${o}.${r}-${u} <${s}.${o}.${+r+1}-0`:l=`>=${s}.${o}.${r}-${u} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.${r}-${u} <${+s+1}.0.0-0`):(te("no pr"),s==="0"?o==="0"?l=`>=${s}.${o}.${r}${i} <${s}.${o}.${+r+1}-0`:l=`>=${s}.${o}.${r}${i} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.${r} <${+s+1}.0.0-0`),te("caret return",l),l})},DJ=(t,e)=>(te("replaceXRanges",t,e),t.split(/\s+/).map(n=>VJ(n,e)).join(" ")),VJ=(t,e)=>{t=t.trim();let n=e.loose?je[Ve.XRANGELOOSE]:je[Ve.XRANGE];return t.replace(n,(i,a,s,o,r,u)=>{te("xRange",t,i,a,s,o,r,u);let l=Be(s),c=l||Be(o),p=c||Be(r),_=p;return a==="="&&_&&(a=""),u=e.includePrerelease?"-0":"",l?a===">"||a==="<"?i="<0.0.0-0":i="*":a&&_?(c&&(o=0),r=0,a===">"?(a=">=",c?(s=+s+1,o=0,r=0):(o=+o+1,r=0)):a==="<="&&(a="<",c?s=+s+1:o=+o+1),a==="<"&&(u="-0"),i=`${a+s}.${o}.${r}${u}`):c?i=`>=${s}.0.0${u} <${+s+1}.0.0-0`:p&&(i=`>=${s}.${o}.0${u} <${s}.${+o+1}.0-0`),te("xRange return",i),i})},BJ=(t,e)=>(te("replaceStars",t,e),t.trim().replace(je[Ve.STAR],"")),GJ=(t,e)=>(te("replaceGTE0",t,e),t.trim().replace(je[e.includePrerelease?Ve.GTE0PRE:Ve.GTE0],"")),kJ=t=>(e,n,i,a,s,o,r,u,l,c,p,_)=>(Be(i)?n="":Be(a)?n=`>=${i}.0.0${t?"-0":""}`:Be(s)?n=`>=${i}.${a}.0${t?"-0":""}`:o?n=`>=${n}`:n=`>=${n}${t?"-0":""}`,Be(l)?u="":Be(c)?u=`<${+l+1}.0.0-0`:Be(p)?u=`<${l}.${+c+1}.0-0`:_?u=`<=${l}.${c}.${p}-${_}`:t?u=`<${l}.${c}.${+p+1}-0`:u=`<=${u}`,`${n} ${u}`.trim()),HJ=(t,e,n)=>{for(let i=0;i<t.length;i++)if(!t[i].test(e))return!1;if(e.prerelease.length&&!n.includePrerelease){for(let i=0;i<t.length;i++)if(te(t[i].semver),t[i].semver!==Hd.ANY&&t[i].semver.prerelease.length>0){let a=t[i].semver;if(a.major===e.major&&a.minor===e.minor&&a.patch===e.patch)return!0}return!1}return!0}});var Ci=h((Afe,Aw)=>{var wi=Symbol("SemVer ANY"),ro=class{static get ANY(){return wi}constructor(e,n){if(n=hw(n),e instanceof ro){if(e.loose===!!n.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Yd("comparator",e,n),this.options=n,this.loose=!!n.loose,this.parse(e),this.semver===wi?this.value="":this.value=this.operator+this.semver.version,Yd("comp",this)}parse(e){let n=this.options.loose?Tw[vw.COMPARATORLOOSE]:Tw[vw.COMPARATOR],i=e.match(n);if(!i)throw new TypeError(`Invalid comparator: ${e}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new mw(i[2],this.options.loose):this.semver=wi}toString(){return this.value}test(e){if(Yd("Comparator.test",e,this.options.loose),this.semver===wi||e===wi)return!0;if(typeof e=="string")try{e=new mw(e,this.options)}catch{return!1}return Fd(e,this.operator,this.semver,this.options)}intersects(e,n){if(!(e instanceof ro))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new yw(e.value,n).test(this.value):e.operator===""?e.value===""?!0:new yw(this.value,n).test(e.semver):(n=hw(n),n.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!n.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||Fd(this.semver,"<",e.semver,n)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Fd(this.semver,">",e.semver,n)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};Aw.exports=ro;var hw=ll(),{safeRe:Tw,t:vw}=eo(),Fd=Gd(),Yd=Li(),mw=Me(),yw=ot()});var Ui=h((Ofe,Ow)=>{var FJ=ot(),YJ=(t,e,n)=>{try{e=new FJ(e,n)}catch{return!1}return e.test(t)};Ow.exports=YJ});var Nw=h((gfe,gw)=>{var qJ=ot(),jJ=(t,e)=>new qJ(t,e).set.map(n=>n.map(i=>i.value).join(" ").trim().split(" "));gw.exports=jJ});var Pw=h((Nfe,Rw)=>{var $J=Me(),KJ=ot(),WJ=(t,e,n)=>{let i=null,a=null,s=null;try{s=new KJ(e,n)}catch{return null}return t.forEach(o=>{s.test(o)&&(!i||a.compare(o)===-1)&&(i=o,a=new $J(i,n))}),i};Rw.exports=WJ});var Mw=h((Rfe,bw)=>{var zJ=Me(),XJ=ot(),JJ=(t,e,n)=>{let i=null,a=null,s=null;try{s=new XJ(e,n)}catch{return null}return t.forEach(o=>{s.test(o)&&(!i||a.compare(o)===1)&&(i=o,a=new zJ(i,n))}),i};bw.exports=JJ});var Iw=h((Pfe,Lw)=>{var qd=Me(),QJ=ot(),xw=Ii(),ZJ=(t,e)=>{t=new QJ(t,e);let n=new qd("0.0.0");if(t.test(n)||(n=new qd("0.0.0-0"),t.test(n)))return n;n=null;for(let i=0;i<t.set.length;++i){let a=t.set[i],s=null;a.forEach(o=>{let r=new qd(o.semver.version);switch(o.operator){case">":r.prerelease.length===0?r.patch++:r.prerelease.push(0),r.raw=r.format();case"":case">=":(!s||xw(r,s))&&(s=r);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!n||xw(n,s))&&(n=s)}return n&&t.test(n)?n:null};Lw.exports=ZJ});var ww=h((bfe,Cw)=>{var e9=ot(),t9=(t,e)=>{try{return new e9(t,e).range||"*"}catch{return null}};Cw.exports=t9});var Tl=h((Mfe,Bw)=>{var r9=Me(),Vw=Ci(),{ANY:n9}=Vw,o9=ot(),i9=Ui(),Uw=Ii(),Dw=dl(),a9=_l(),s9=El(),u9=(t,e,n,i)=>{t=new r9(t,i),e=new o9(e,i);let a,s,o,r,u;switch(n){case">":a=Uw,s=a9,o=Dw,r=">",u=">=";break;case"<":a=Dw,s=s9,o=Uw,r="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(i9(t,e,i))return!1;for(let l=0;l<e.set.length;++l){let c=e.set[l],p=null,_=null;if(c.forEach(f=>{f.semver===n9&&(f=new Vw(">=0.0.0")),p=p||f,_=_||f,a(f.semver,p.semver,i)?p=f:o(f.semver,_.semver,i)&&(_=f)}),p.operator===r||p.operator===u||(!_.operator||_.operator===r)&&s(t,_.semver))return!1;if(_.operator===u&&o(t,_.semver))return!1}return!0};Bw.exports=u9});var kw=h((xfe,Gw)=>{var l9=Tl(),c9=(t,e,n)=>l9(t,e,">",n);Gw.exports=c9});var Fw=h((Lfe,Hw)=>{var f9=Tl(),p9=(t,e,n)=>f9(t,e,"<",n);Hw.exports=p9});var jw=h((Ife,qw)=>{var Yw=ot(),d9=(t,e,n)=>(t=new Yw(t,n),e=new Yw(e,n),t.intersects(e,n));qw.exports=d9});var Kw=h((Cfe,$w)=>{var E9=Ui(),_9=nt();$w.exports=(t,e,n)=>{let i=[],a=null,s=null,o=t.sort((c,p)=>_9(c,p,n));for(let c of o)E9(c,e,n)?(s=c,a||(a=c)):(s&&i.push([a,s]),s=null,a=null);a&&i.push([a,null]);let r=[];for(let[c,p]of i)c===p?r.push(c):!p&&c===o[0]?r.push("*"):p?c===o[0]?r.push(`<=${p}`):r.push(`${c} - ${p}`):r.push(`>=${c}`);let u=r.join(" || "),l=typeof e.raw=="string"?e.raw:String(e);return u.length<l.length?u:e}});var Zw=h((wfe,Qw)=>{var Ww=ot(),$d=Ci(),{ANY:jd}=$d,Di=Ui(),Kd=nt(),S9=(t,e,n={})=>{if(t===e)return!0;t=new Ww(t,n),e=new Ww(e,n);let i=!1;e:for(let a of t.set){for(let s of e.set){let o=T9(a,s,n);if(i=i||o!==null,o)continue e}if(i)return!1}return!0},h9=[new $d(">=0.0.0-0")],zw=[new $d(">=0.0.0")],T9=(t,e,n)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===jd){if(e.length===1&&e[0].semver===jd)return!0;n.includePrerelease?t=h9:t=zw}if(e.length===1&&e[0].semver===jd){if(n.includePrerelease)return!0;e=zw}let i=new Set,a,s;for(let f of t)f.operator===">"||f.operator===">="?a=Xw(a,f,n):f.operator==="<"||f.operator==="<="?s=Jw(s,f,n):i.add(f.semver);if(i.size>1)return null;let o;if(a&&s){if(o=Kd(a.semver,s.semver,n),o>0)return null;if(o===0&&(a.operator!==">="||s.operator!=="<="))return null}for(let f of i){if(a&&!Di(f,String(a),n)||s&&!Di(f,String(s),n))return null;for(let S of e)if(!Di(f,String(S),n))return!1;return!0}let r,u,l,c,p=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1,_=a&&!n.includePrerelease&&a.semver.prerelease.length?a.semver:!1;p&&p.prerelease.length===1&&s.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let f of e){if(c=c||f.operator===">"||f.operator===">=",l=l||f.operator==="<"||f.operator==="<=",a){if(_&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===_.major&&f.semver.minor===_.minor&&f.semver.patch===_.patch&&(_=!1),f.operator===">"||f.operator===">="){if(r=Xw(a,f,n),r===f&&r!==a)return!1}else if(a.operator===">="&&!Di(a.semver,String(f),n))return!1}if(s){if(p&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===p.major&&f.semver.minor===p.minor&&f.semver.patch===p.patch&&(p=!1),f.operator==="<"||f.operator==="<="){if(u=Jw(s,f,n),u===f&&u!==s)return!1}else if(s.operator==="<="&&!Di(s.semver,String(f),n))return!1}if(!f.operator&&(s||a)&&o!==0)return!1}return!(a&&l&&!s&&o!==0||s&&c&&!a&&o!==0||_||p)},Xw=(t,e,n)=>{if(!t)return e;let i=Kd(t.semver,e.semver,n);return i>0?t:i<0||e.operator===">"&&t.operator===">="?e:t},Jw=(t,e,n)=>{if(!t)return e;let i=Kd(t.semver,e.semver,n);return i<0?t:i>0||e.operator==="<"&&t.operator==="<="?e:t};Qw.exports=S9});var nU=h((Ufe,rU)=>{var Wd=eo(),eU=xi(),v9=Me(),tU=Dd(),m9=Kr(),y9=PC(),A9=MC(),O9=IC(),g9=UC(),N9=VC(),R9=GC(),P9=HC(),b9=YC(),M9=nt(),x9=KC(),L9=zC(),I9=pl(),C9=ZC(),w9=tw(),U9=Ii(),D9=dl(),V9=Vd(),B9=Bd(),G9=El(),k9=_l(),H9=Gd(),F9=cw(),Y9=Ci(),q9=ot(),j9=Ui(),$9=Nw(),K9=Pw(),W9=Mw(),z9=Iw(),X9=ww(),J9=Tl(),Q9=kw(),Z9=Fw(),e7=jw(),t7=Kw(),r7=Zw();rU.exports={parse:m9,valid:y9,clean:A9,inc:O9,diff:g9,major:N9,minor:R9,patch:P9,prerelease:b9,compare:M9,rcompare:x9,compareLoose:L9,compareBuild:I9,sort:C9,rsort:w9,gt:U9,lt:D9,eq:V9,neq:B9,gte:G9,lte:k9,cmp:H9,coerce:F9,Comparator:Y9,Range:q9,satisfies:j9,toComparators:$9,maxSatisfying:K9,minSatisfying:W9,minVersion:z9,validRange:X9,outside:J9,gtr:Q9,ltr:Z9,intersects:e7,simplifyRange:t7,subset:r7,SemVer:v9,re:Wd.re,src:Wd.src,tokens:Wd.t,SEMVER_SPEC_VERSION:eU.SEMVER_SPEC_VERSION,RELEASE_TYPES:eU.RELEASE_TYPES,compareIdentifiers:tU.compareIdentifiers,rcompareIdentifiers:tU.rcompareIdentifiers}});function o7(t){var e=decodeURIComponent(t).split(":");if(e.length!==4)return null;var n=iU(e,4),i=n[0],a=n[1],s=n[3],o=i.padStart(32,"0"),r=a.padStart(16,"0"),u=n7.test(s)?parseInt(s,16)&1:1;return{traceId:o,spanId:r,isRemote:!0,traceFlags:u}}var oU,iU,zd,vl,aU,n7,sU=m(()=>{b();K();oU=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},iU=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},zd="uber-trace-id",vl="uberctx",aU=function(){function t(e){typeof e=="string"?(this._jaegerTraceHeader=e,this._jaegerBaggageHeaderPrefix=vl):(this._jaegerTraceHeader=e?.customTraceHeader||zd,this._jaegerBaggageHeaderPrefix=e?.customBaggageHeaderPrefix||vl)}return t.prototype.inject=function(e,n,i){var a,s,o=X.getSpanContext(e),r=st.getBaggage(e);if(o&&be(e)===!1){var u="0"+(o.traceFlags||J.NONE).toString(16);i.set(n,this._jaegerTraceHeader,o.traceId+":"+o.spanId+":0:"+u)}if(r)try{for(var l=oU(r.getAllEntries()),c=l.next();!c.done;c=l.next()){var p=iU(c.value,2),_=p[0],f=p[1];i.set(n,this._jaegerBaggageHeaderPrefix+"-"+_,encodeURIComponent(f.value))}}catch(S){a={error:S}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(a)throw a.error}}},t.prototype.extract=function(e,n,i){var a,s,o=this,r,u=i.get(n,this._jaegerTraceHeader),l=Array.isArray(u)?u[0]:u,c=i.keys(n).filter(function(A){return A.startsWith(o._jaegerBaggageHeaderPrefix+"-")}).map(function(A){var O=i.get(n,A);return{key:A.substring(o._jaegerBaggageHeaderPrefix.length+1),value:Array.isArray(O)?O[0]:O}}),p=e;if(typeof l=="string"){var _=o7(l);_&&(p=X.setSpanContext(p,_))}if(c.length===0)return p;var f=(r=st.getBaggage(e))!==null&&r!==void 0?r:st.createBaggage();try{for(var S=oU(c),v=S.next();!v.done;v=S.next()){var T=v.value;T.value!==void 0&&(f=f.setEntry(T.key,{value:decodeURIComponent(T.value)}))}}catch(A){a={error:A}}finally{try{v&&!v.done&&(s=S.return)&&s.call(S)}finally{if(a)throw a.error}}return p=st.setBaggage(p,f),p},t.prototype.fields=function(){return[this._jaegerTraceHeader]},t}(),n7=/^[0-9a-f]{1,2}$/i});var uU={};it(uU,{JaegerPropagator:()=>aU,UBER_BAGGAGE_HEADER_PREFIX:()=>vl,UBER_TRACE_ID_HEADER:()=>zd});var lU=m(()=>{sU()});var pU=h(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.NodeTracerProvider=void 0;var cU=CI(),ml=(FI(),Y(HI)),fU=(Mi(),Y(Cd)),i7=nU(),a7=(lU(),Y(uU)),yl=class extends fU.BasicTracerProvider{constructor(e={}){super(e)}register(e={}){if(e.contextManager===void 0){let n=i7.gte(process.version,"14.8.0")?cU.AsyncLocalStorageContextManager:cU.AsyncHooksContextManager;e.contextManager=new n,e.contextManager.enable()}super.register(e)}};Al.NodeTracerProvider=yl;yl._registeredPropagators=new Map([...fU.BasicTracerProvider._registeredPropagators,["b3",()=>new ml.B3Propagator({injectEncoding:ml.B3InjectEncoding.SINGLE_HEADER})],["b3multi",()=>new ml.B3Propagator({injectEncoding:ml.B3InjectEncoding.MULTI_HEADER})],["jaeger",()=>new a7.JaegerPropagator]])});var dU=h(q=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});q.Tracer=q.TraceIdRatioBasedSampler=q.Span=q.SimpleSpanProcessor=q.SamplingDecision=q.RandomIdGenerator=q.ParentBasedSampler=q.NoopSpanProcessor=q.InMemorySpanExporter=q.ForceFlushState=q.ConsoleSpanExporter=q.BatchSpanProcessor=q.BasicTracerProvider=q.AlwaysOnSampler=q.AlwaysOffSampler=q.NodeTracerProvider=void 0;var s7=pU();Object.defineProperty(q,"NodeTracerProvider",{enumerable:!0,get:function(){return s7.NodeTracerProvider}});var Ge=(Mi(),Y(Cd));Object.defineProperty(q,"AlwaysOffSampler",{enumerable:!0,get:function(){return Ge.AlwaysOffSampler}});Object.defineProperty(q,"AlwaysOnSampler",{enumerable:!0,get:function(){return Ge.AlwaysOnSampler}});Object.defineProperty(q,"BasicTracerProvider",{enumerable:!0,get:function(){return Ge.BasicTracerProvider}});Object.defineProperty(q,"BatchSpanProcessor",{enumerable:!0,get:function(){return Ge.BatchSpanProcessor}});Object.defineProperty(q,"ConsoleSpanExporter",{enumerable:!0,get:function(){return Ge.ConsoleSpanExporter}});Object.defineProperty(q,"ForceFlushState",{enumerable:!0,get:function(){return Ge.ForceFlushState}});Object.defineProperty(q,"InMemorySpanExporter",{enumerable:!0,get:function(){return Ge.InMemorySpanExporter}});Object.defineProperty(q,"NoopSpanProcessor",{enumerable:!0,get:function(){return Ge.NoopSpanProcessor}});Object.defineProperty(q,"ParentBasedSampler",{enumerable:!0,get:function(){return Ge.ParentBasedSampler}});Object.defineProperty(q,"RandomIdGenerator",{enumerable:!0,get:function(){return Ge.RandomIdGenerator}});Object.defineProperty(q,"SamplingDecision",{enumerable:!0,get:function(){return Ge.SamplingDecision}});Object.defineProperty(q,"SimpleSpanProcessor",{enumerable:!0,get:function(){return Ge.SimpleSpanProcessor}});Object.defineProperty(q,"Span",{enumerable:!0,get:function(){return Ge.Span}});Object.defineProperty(q,"TraceIdRatioBasedSampler",{enumerable:!0,get:function(){return Ge.TraceIdRatioBasedSampler}});Object.defineProperty(q,"Tracer",{enumerable:!0,get:function(){return Ge.Tracer}})});var EU=h(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});Ol.OTLPTraceExporter=void 0;var u7=fd(),l7=(Du(),Y(id)),Xd=class extends u7.OTLPGRPCExporterNodeBase{constructor(e={}){super(e,l7.ProtobufTraceSerializer,"TraceExportService","/opentelemetry.proto.collector.trace.v1.TraceService/Export","TRACES")}};Ol.OTLPTraceExporter=Xd});var _U=h(zr=>{"use strict";var c7=zr&&zr.__createBinding||(Object.create?function(t,e,n,i){i===void 0&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]}),f7=zr&&zr.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&c7(e,t,n)};Object.defineProperty(zr,"__esModule",{value:!0});f7(EU(),zr)});var mU=$e(Hl(),1),yU=$e(no(),1),AU=$e(pS(),1),OU=$e(MU(),1),gU=$e(xU(),1),NU=$e(kO(),1);import d7 from"path";import E7 from"http";import{Session as _7}from"inspector/promises";import{createRequire as QF}from"module";var oc=$e(Hl(),1);import na from"path";import nc from"os";var ZF=QF(import.meta.url);function HO(t){let e=ZF.resolve(t),n=na.dirname(e);for(;!oc.default.existsSync(na.join(n,"package.json"));)n=na.dirname(n);let i=oc.default.readFileSync(na.join(n,"package.json"),"utf-8");return JSON.parse(i)}var oa=class{constructor(e){this.instance=e;let n=HO("@sentio/sdk"),i=HO("@sentio/runtime");console.log("Runtime version:",i.version,"SDK version:",n.version);let a=n.version.split(".");this.sdkMinorVersion=parseInt(a[1])}instance;sdkMinorVersion;async getConfig(e,n){let i=await this.instance.getConfig(e,n);if(i.executionConfig=Zd.fromPartial(Rl.execution),i.contractConfigs)for(let a of i.contractConfigs)a.aptosCallConfigs&&(a.moveCallConfigs=a.aptosCallConfigs),a.aptosEventConfigs&&(a.moveEventConfigs=a.aptosEventConfigs);return i}async start(e,n){return await this.instance.start(e,n)}async stop(e,n){return await this.instance.stop(e,n)}async processBindings(e,n){Rl.execution.sequential&&(e.bindings=e.bindings.sort(eY));for(let i of e.bindings)this.adjustDataBinding(i);try{let i=await this.instance.processBindings(e,n);return this.adjustResult(i.result),!i.configUpdated&&i.result?.states?.configUpdated&&(i.configUpdated=i.result?.states?.configUpdated),i}catch(i){throw this.sdkMinorVersion<=16&&(i.code===nc.constants.errno.ECONNRESET||i.code===nc.constants.errno.ECONNREFUSED||i.code===nc.constants.errno.ECONNABORTED)&&process.exit(1),i}}async*processBindingsStream(e,n){yield*this.instance.processBindingsStream(e,n)}async*preprocessBindingsStream(e,n){yield*this.instance.preprocessBindingsStream(e,n)}adjustResult(e){}adjustDataBinding(e){switch(e.handlerType){case 6:e.data?.aptEvent;break;case 0:e.data?.ethBlock&&e.data.raw.length===0&&(e.data.raw=new TextEncoder().encode(JSON.stringify(e.data.ethBlock.block)));break;default:break}}};function eY(t,e){let n=FO(t)||new Date(0),i=FO(e)||new Date(0),a=n.getTime()-i.getTime();return a!==0?a:YO(t)-YO(e)}function FO(t){return t.data?.ethLog?.timestamp||t.data?.ethTransaction?.timestamp||(t.data?.ethBlock?.block?.timestamp?new Date(Number(t.data.ethBlock.block.timestamp)*1e3):void 0)||t.data?.ethTrace?.timestamp||(t.data?.aptCall?.transaction?new Date(Number(t.data.aptCall.transaction.timestamp)/1e3):void 0)||(t.data?.aptEvent?.transaction?new Date(Number(t.data.aptEvent.transaction.timestamp)/1e3):void 0)||(t.data?.aptResource?.timestampMicros?new Date(Number(t.data.aptResource.timestampMicros)/1e3):void 0)||t.data?.fuelCall?.timestamp}function YO(t){return t.data?.ethLog?.log?.logIndex||t.data?.ethTransaction?.transaction?.transactionIndex||t.data?.ethBlock?.block?.number||t.data?.ethTrace?.trace?.transactionPosition}import("process").then(t=>t.stdout.write(""));var gt=$e(n0(),1);function o0(t,e){let n={transform:a=>{let s=[];typeof a.message=="object"?s.push(JSON.stringify(a.message)):s.push(a.message);let o=a[Symbol.for("splat")];if(o)for(let r in o){let u=o[r];typeof u=="object"?s.push(JSON.stringify(u)):s.push(u)}return a.message=s.join(" "),a}},i=(0,gt.createLogger)({format:gt.format.combine(gt.format.timestamp({format:"YYYY-MM-DDTHH:mm:ss.SSSZ"}),n,gt.format.errors({stack:!0}),t?gt.format.json():gt.format.simple()),level:e?"debug":"info",transports:[new gt.transports.Console]});console.log=(...a)=>i.info.call(i,...a),console.info=(...a)=>i.info.call(i,...a),console.warn=(...a)=>i.warn.call(i,...a),console.error=(...a)=>i.error.call(i,...a),console.debug=(...a)=>i.debug.call(i,...a)}import("process").then(t=>t.stdout.write(""));Bs();wn();var SU=$e(RI(),1),hU=$e(xI(),1),Jd=$e(dU(),1),TU=$e(_U(),1);Mi();b();async function vU(t){t&&g.setLogger(new oE,at.DEBUG);let e=await Vs.detect(),n=new hi({resource:e,readers:[new eu({exporter:new SU.OTLPMetricExporter}),new hU.PrometheusExporter({port:4041})]}),i=new Jd.NodeTracerProvider({resource:e}),a=new TU.OTLPTraceExporter,s=new mr(a);i.addSpanProcessor(s),i.register(),Bi.setGlobalMeterProvider(n),X.setGlobalTracerProvider(i),["SIGINT","SIGTERM"].forEach(o=>{process.on(o,()=>p7())}),Bi.getMeter("processor").createGauge("up").record(1)}async function p7(){let t=X.getTracerProvider();if(t instanceof sE){let n=t.getDelegate();n instanceof Jd.NodeTracerProvider&&n.shutdown().catch(console.error)}let e=Bi.getMeterProvider();e instanceof hi&&e.shutdown().catch(console.error)}import("process").then(t=>t.stdout.write(""));var S7=[{name:"target",type:String,defaultOption:!0},{name:"port",alias:"p",type:String,defaultValue:"4000"},{name:"concurrency",type:Number,defaultValue:4},{name:"batch-count",type:Number,defaultValue:1},{name:"chains-config",alias:"c",type:String,defaultValue:"chains-config.json"},{name:"chainquery-server",type:String,defaultValue:""},{name:"pricefeed-server",type:String,defaultValue:""},{name:"log-format",type:String,defaultValue:"console"},{name:"debug",type:Boolean,defaultValue:!1}],Qe=(0,AU.default)(S7,{partial:!0}),h7=process.env.LOG_LEVEL?.toUpperCase();o0(Qe["log-format"]==="json",h7==="debug"?!0:Qe.debug);console.debug("Starting with",Qe.target);await vU(Qe.debug);Error.stackTraceLimit=20;var T7=d7.resolve(Qe["chains-config"]),v7=mU.default.readJsonSync(T7),m7=process.env.OVERRIDE_CONCURRENCY?parseInt(process.env.OVERRIDE_CONCURRENCY):void 0,y7=process.env.OVERRIDE_BATCH_COUNT?parseInt(process.env.OVERRIDE_BATCH_COUNT):void 0;yr.INSTANCE.concurrency=m7??Qe.concurrency;yr.INSTANCE.batchCount=y7??Qe["batch-count"];yr.INSTANCE.chainQueryAPI=Qe["chainquery-server"];yr.INSTANCE.priceFeedAPI=Qe["pricefeed-server"];for(let[t,e]of Object.entries(v7)){let n=e;if(n.ChainServer)yr.INSTANCE.chainServer.set(t,n.ChainServer);else{let i=n.Https?.[0];i?yr.INSTANCE.chainServer.set(t,i):console.error("not valid config for chain",t)}}console.debug("Starting Server",Qe);var gl=(0,OU.createServer)({"grpc.max_send_message_length":384*1024*1024,"grpc.max_receive_message_length":384*1024*1024,"grpc.default_compression_algorithm":yU.compressionAlgorithms.gzip}).use((0,NU.openTelemetryServerMiddleware)()).use(gU.errorDetailsServerMiddleware),Qd=new cE(async()=>{let t=await import(Qe.target);return console.debug("Module loaded",t),t},gl.shutdown),A7=new oa(Qd);gl.add(eE,A7);gl.listen("0.0.0.0:"+Qe.port);console.log("Processor Server Started at:",Qe.port);var RU=4040,O7=E7.createServer(async function(t,e){if(t.url){let n=new URL(t.url,`http://${t.headers.host}`),i=n.searchParams;switch(n.pathname){case"/profile":{try{let a=parseInt(i.get("t")||"1000",10)||1e3,s=new _7;s.connect(),await s.post("Profiler.enable"),await s.post("Profiler.start"),await new Promise(r=>setTimeout(r,a));let{profile:o}=await s.post("Profiler.stop");e.writeHead(200,{"Content-Type":"application/json"}),e.write(JSON.stringify(o)),s.disconnect()}catch{e.writeHead(500)}break}default:e.writeHead(404)}}else e.writeHead(404);e.end()}).listen(RU);console.log("Metric Server Started at:",RU);process.on("SIGINT",function(){g7(0)}).on("uncaughtException",t=>{console.error("Uncaught Exception, please checking if await is properly used",t),Qd.unhandled=t}).on("unhandledRejection",(t,e)=>{t?.message.startsWith('invalid ENS name (disallowed character: "*"')||(console.error("Unhandled Rejection, please checking if await is properly",t),Qd.unhandled=t)});function g7(t){gl.forceShutdown(),console.log("RPC server shut down"),O7.close(function(){console.log("Http server shut down"),process.exit(t)})}import("process").then(t=>t.stdout.write(""));
|
60
60
|
/*! Bundled license information:
|
61
61
|
|
62
62
|
safe-buffer/index.js:
|