@sentio/runtime 2.40.0-rc.40 → 2.40.0-rc.42
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/{chunk-P6GAI4NE.js → chunk-QYVWD4BX.js} +13 -13
- package/lib/{chunk-P6GAI4NE.js.map → chunk-QYVWD4BX.js.map} +1 -1
- package/lib/index.js +1 -1
- package/lib/processor-runner.js +18 -18
- package/lib/processor-runner.js.map +1 -1
- package/package.json +1 -1
- package/src/processor-runner.ts +2 -0
- package/src/service.ts +2 -0
package/lib/processor-runner.js
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
2
|
import { createRequire as createRequireShim } from 'module'; const require = createRequireShim(import.meta.url);
|
3
|
-
import{A as rh,B as Qr,C as nh,D as ih,E as pt,F as J,G as oh,H as Yt,I as Io,J as dt,K as ht,L as ah,M as uh,N as ke,O as A,P 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,Do,{value:t}),e}(oe.close),oe.closeSync=function(t){function e(n){t.apply(oe,arguments),yh()}return Object.defineProperty(e,Do,{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,w7){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 Uo;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(Uo),Uo=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)}Uo===void 0&&(Uo=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((V7,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((k7,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((B7,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((G7,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((q7,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((F7,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(Vo(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(Vo(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(Vo(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(Vo(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 Vo(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((H7,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 rh,B as Qr,C as nh,D as ih,E as pt,F as J,G as oh,H as Yt,I as Io,J as dt,K as ht,L as ah,M as uh,N as ke,O as A,P as Lo,Q as at,R as X,S as Ne,T as w,Y as sh,a as M,b as E,c as y,d as it,e as je,f as Y,h as Q1,k as Qd,l as Zd,q as Sr,r as ul,s as Z1,t as Jn,u as eh,v as th,w as eC,x as tC,y as sl,z as ot}from"./chunk-QYVWD4BX.js";var he=y(ll=>{"use strict";ll.fromCallback=function(t){return Object.defineProperty(function(...e){if(typeof e[e.length-1]=="function")t.apply(this,e);else return new Promise((n,o)=>{e.push((a,u)=>a!=null?o(a):n(u)),t.apply(this,e)})},"name",{value:t.name})};ll.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(o=>n(null,o),n)},"name",{value:t.name})}});var ch=y((I7,lh)=>{var $t=M("constants"),rC=process.cwd,Co=null,nC=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Co||(Co=rC.call(process)),Co};try{process.cwd()}catch{}typeof process.chdir=="function"&&(cl=process.chdir,process.chdir=function(t){Co=null,cl.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,cl));var cl;lh.exports=iC;function iC(t){$t.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||n(t),t.chown=u(t.chown),t.fchown=u(t.fchown),t.lchown=u(t.lchown),t.chmod=o(t.chmod),t.fchmod=o(t.fchmod),t.lchmod=o(t.lchmod),t.chownSync=i(t.chownSync),t.fchownSync=i(t.fchownSync),t.lchownSync=i(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=s(t.statSync),t.fstatSync=s(t.fstatSync),t.lstatSync=s(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(c,p,m){m&&process.nextTick(m)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(c,p,m,f){f&&process.nextTick(f)},t.lchownSync=function(){}),nC==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(c){function p(m,f,v){var S=Date.now(),_=0;c(m,f,function O(g){if(g&&(g.code==="EACCES"||g.code==="EPERM"||g.code==="EBUSY")&&Date.now()-S<6e4){setTimeout(function(){t.stat(f,function(b,L){b&&b.code==="ENOENT"?c(m,f,O):v(g)})},_),_<100&&(_+=10);return}v&&v(g)})}return Object.setPrototypeOf&&Object.setPrototypeOf(p,c),p}(t.rename)),t.read=typeof t.read!="function"?t.read:function(c){function p(m,f,v,S,_,O){var g;if(O&&typeof O=="function"){var b=0;g=function(L,B,j){if(L&&L.code==="EAGAIN"&&b<10)return b++,c.call(t,m,f,v,S,_,g);O.apply(this,arguments)}}return c.call(t,m,f,v,S,_,g)}return Object.setPrototypeOf&&Object.setPrototypeOf(p,c),p}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(c){return function(p,m,f,v,S){for(var _=0;;)try{return c.call(t,p,m,f,v,S)}catch(O){if(O.code==="EAGAIN"&&_<10){_++;continue}throw O}}}(t.readSync);function e(c){c.lchmod=function(p,m,f){c.open(p,$t.O_WRONLY|$t.O_SYMLINK,m,function(v,S){if(v){f&&f(v);return}c.fchmod(S,m,function(_){c.close(S,function(O){f&&f(_||O)})})})},c.lchmodSync=function(p,m){var f=c.openSync(p,$t.O_WRONLY|$t.O_SYMLINK,m),v=!0,S;try{S=c.fchmodSync(f,m),v=!1}finally{if(v)try{c.closeSync(f)}catch{}else c.closeSync(f)}return S}}function n(c){$t.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(p,m,f,v){c.open(p,$t.O_SYMLINK,function(S,_){if(S){v&&v(S);return}c.futimes(_,m,f,function(O){c.close(_,function(g){v&&v(O||g)})})})},c.lutimesSync=function(p,m,f){var v=c.openSync(p,$t.O_SYMLINK),S,_=!0;try{S=c.futimesSync(v,m,f),_=!1}finally{if(_)try{c.closeSync(v)}catch{}else c.closeSync(v)}return S}):c.futimes&&(c.lutimes=function(p,m,f,v){v&&process.nextTick(v)},c.lutimesSync=function(){})}function o(c){return c&&function(p,m,f){return c.call(t,p,m,function(v){l(v)&&(v=null),f&&f.apply(this,arguments)})}}function a(c){return c&&function(p,m){try{return c.call(t,p,m)}catch(f){if(!l(f))throw f}}}function u(c){return c&&function(p,m,f,v){return c.call(t,p,m,f,function(S){l(S)&&(S=null),v&&v.apply(this,arguments)})}}function i(c){return c&&function(p,m,f){try{return c.call(t,p,m,f)}catch(v){if(!l(v))throw v}}}function r(c){return c&&function(p,m,f){typeof m=="function"&&(f=m,m=null);function v(S,_){_&&(_.uid<0&&(_.uid+=4294967296),_.gid<0&&(_.gid+=4294967296)),f&&f.apply(this,arguments)}return m?c.call(t,p,m,v):c.call(t,p,v)}}function s(c){return c&&function(p,m){var f=m?c.call(t,p,m):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 dh=y((L7,ph)=>{var fh=M("stream").Stream;ph.exports=oC;function oC(t){return{ReadStream:e,WriteStream:n};function e(o,a){if(!(this instanceof e))return new e(o,a);fh.call(this);var u=this;this.path=o,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,a=a||{};for(var i=Object.keys(a),r=0,s=i.length;r<s;r++){var l=i[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(){u._read()});return}t.open(this.path,this.flags,this.mode,function(c,p){if(c){u.emit("error",c),u.readable=!1;return}u.fd=p,u.emit("open",p),u._read()})}function n(o,a){if(!(this instanceof n))return new n(o,a);fh.call(this),this.path=o,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,a=a||{};for(var u=Object.keys(a),i=0,r=u.length;i<r;i++){var s=u[i];this[s]=a[s]}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 mh=y((C7,hh)=>{"use strict";hh.exports=uC;var aC=Object.getPrototypeOf||function(t){return t.__proto__};function uC(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:aC(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}});var en=y((U7,dl)=>{var oe=M("fs"),sC=ch(),lC=dh(),cC=mh(),Uo=M("util"),_e,Vo;typeof Symbol=="function"&&typeof Symbol.for=="function"?(_e=Symbol.for("graceful-fs.queue"),Vo=Symbol.for("graceful-fs.previous")):(_e="___graceful-fs.queue",Vo="___graceful-fs.previous");function fC(){}function _h(t,e){Object.defineProperty(t,_e,{get:function(){return e}})}var Er=fC;Uo.debuglog?Er=Uo.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Er=function(){var t=Uo.format.apply(Uo,arguments);t="GFS4: "+t.split(/\n/).join(`
|
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,w7){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((V7,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((k7,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((B7,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((G7,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((q7,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((F7,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((H7,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;
|
5
5
|
|
6
6
|
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001");let{srcStat:o,destStat:a}=await ei.checkPaths(t,e,"copy",n);if(await ei.checkParentPaths(t,o,e,"copy"),!await Uh(t,e,n))return;let i=Zn.dirname(e);await xC(i)||await bC(i),await Dh(a,t,e,n)}async function Uh(t,e,n){return n.filter?n.filter(t,e):!0}async function Dh(t,e,n,o){let u=await(o.dereference?Oe.stat:Oe.lstat)(e);if(u.isDirectory())return IC(u,t,e,n,o);if(u.isFile()||u.isCharacterDevice()||u.isBlockDevice())return PC(u,t,e,n,o);if(u.isSymbolicLink())return LC(t,e,n,o);throw u.isSocket()?new Error(`Cannot copy a socket file: ${e}`):u.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}async function PC(t,e,n,o,a){if(!e)return Ch(t,n,o,a);if(a.overwrite)return await Oe.unlink(o),Ch(t,n,o,a);if(a.errorOnExist)throw new Error(`'${o}' already exists`)}async function Ch(t,e,n,o){if(await Oe.copyFile(e,n),o.preserveTimestamps){wC(t.mode)&&await MC(n,t.mode);let a=await Oe.stat(e);await NC(n,a.atime,a.mtime)}return Oe.chmod(n,t.mode)}function wC(t){return(t&128)===0}function MC(t,e){return Oe.chmod(t,e|128)}async function IC(t,e,n,o,a){e||await Oe.mkdir(o);let u=await Oe.readdir(n);await Promise.all(u.map(async i=>{let r=Zn.join(n,i),s=Zn.join(o,i);if(!await Uh(r,s,a))return;let{destStat:c}=await ei.checkPaths(r,s,"copy",a);return Dh(c,r,s,a)})),e||await Oe.chmod(o,t.mode)}async function LC(t,e,n,o){let a=await Oe.readlink(e);if(o.dereference&&(a=Zn.resolve(process.cwd(),a)),!t)return Oe.symlink(a,n);let u=null;try{u=await Oe.readlink(n)}catch(i){if(i.code==="EINVAL"||i.code==="UNKNOWN")return Oe.symlink(a,n);throw i}if(o.dereference&&(u=Zn.resolve(process.cwd(),u)),ei.isSrcSubdir(a,u))throw new Error(`Cannot copy '${a}' to a subdirectory of itself, '${u}'.`);if(ei.isSrcSubdir(u,a))throw new Error(`Cannot overwrite '${u}' with '${a}'.`);return await Oe.unlink(n),Oe.symlink(a,n)}Vh.exports=RC});var Hh=y((j7,Fh)=>{"use strict";var we=en(),ti=M("path"),CC=ut().mkdirsSync,UC=yl().utimesMillisSync,ri=Tr();function DC(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:o,destStat:a}=ri.checkPathsSync(t,e,"copy",n);if(ri.checkParentPathsSync(t,o,e,"copy"),n.filter&&!n.filter(t,e))return;let u=ti.dirname(e);return we.existsSync(u)||CC(u),Bh(a,t,e,n)}function Bh(t,e,n,o){let u=(o.dereference?we.statSync:we.lstatSync)(e);if(u.isDirectory())return HC(u,t,e,n,o);if(u.isFile()||u.isCharacterDevice()||u.isBlockDevice())return VC(u,t,e,n,o);if(u.isSymbolicLink())return $C(t,e,n,o);throw u.isSocket()?new Error(`Cannot copy a socket file: ${e}`):u.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}function VC(t,e,n,o,a){return e?kC(t,n,o,a):Gh(t,n,o,a)}function kC(t,e,n,o){if(o.overwrite)return we.unlinkSync(n),Gh(t,e,n,o);if(o.errorOnExist)throw new Error(`'${n}' already exists`)}function Gh(t,e,n,o){return we.copyFileSync(e,n),o.preserveTimestamps&&BC(t.mode,e,n),Sl(n,t.mode)}function BC(t,e,n){return GC(t)&&qC(n,t),FC(e,n)}function GC(t){return(t&128)===0}function qC(t,e){return Sl(t,e|128)}function Sl(t,e){return we.chmodSync(t,e)}function FC(t,e){let n=we.statSync(t);return UC(e,n.atime,n.mtime)}function HC(t,e,n,o,a){return e?qh(n,o,a):jC(t.mode,n,o,a)}function jC(t,e,n,o){return we.mkdirSync(n),qh(e,n,o),Sl(n,t)}function qh(t,e,n){we.readdirSync(t).forEach(o=>YC(o,t,e,n))}function YC(t,e,n,o){let a=ti.join(e,t),u=ti.join(n,t);if(o.filter&&!o.filter(a,u))return;let{destStat:i}=ri.checkPathsSync(a,u,"copy",o);return Bh(i,a,u,o)}function $C(t,e,n,o){let a=we.readlinkSync(e);if(o.dereference&&(a=ti.resolve(process.cwd(),a)),t){let u;try{u=we.readlinkSync(n)}catch(i){if(i.code==="EINVAL"||i.code==="UNKNOWN")return we.symlinkSync(a,n);throw i}if(o.dereference&&(u=ti.resolve(process.cwd(),u)),ri.isSrcSubdir(a,u))throw new Error(`Cannot copy '${a}' to a subdirectory of itself, '${u}'.`);if(ri.isSrcSubdir(u,a))throw new Error(`Cannot overwrite '${u}' with '${a}'.`);return KC(a,n)}else return we.symlinkSync(a,n)}function KC(t,e){return we.unlinkSync(e),we.symlinkSync(t,e)}Fh.exports=DC});var
|
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((tJ,wm)=>{var nn;try{nn=en()}catch{nn=M("fs")}var Go=he(),{stringify:Rm,stripBom:Pm}=Bo();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 Go.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=Go.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 Go.fromCallback(o.writeFile)(t,a,n)}var PU=Go.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((rJ,Im)=>{"use strict";var qo=Mm();Im.exports={readJson:qo.readFile,readJsonSync:qo.readFileSync,writeJson:qo.writeFile,writeJsonSync:qo.writeFileSync}});var Fo=y((nJ,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((iJ,Vm)=>{"use strict";var{stringify:DU}=Bo(),{outputFile:VU}=Fo();async function kU(t,e,n={}){let o=DU(e,n);await VU(t,o,n)}Vm.exports=kU});var Gm=y((oJ,Bm)=>{"use strict";var{stringify:BU}=Bo(),{outputFileSync:GU}=Fo();function qU(t,e,n){let o=BU(e,n);GU(t,o,n)}Bm.exports=qU});var Fm=y((aJ,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((uJ,$m)=>{"use strict";var HU=Pe(),Hm=M("path"),{copy:jU}=ko(),{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((sJ,Jm)=>{"use strict";var Wm=en(),gl=M("path"),XU=ko().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((lJ,Zm)=>{"use strict";var rD=he().fromPromise;Zm.exports={move:rD(Km()),moveSync:Qm()}});var Ol=y((cJ,tv)=>{"use strict";tv.exports={...Pe(),...ko(),...em(),...xm(),...Fm(),...ut(),...ev(),...Fo(),...Kt(),...ni()}});var cv=y((fJ,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)}},Ho=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 Ho{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:Ho,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,jo)=>{(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 jo<"u"&&jo.exports?jo.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=al();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(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.VERSION=void 0;Yo.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($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.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]())}}}$o.bindAsyncGenerator=IO});var CO=y(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.openTelemetryServerMiddleware=void 0;var pi=(w(),Y(Ne)),LO=(Ct(),Y(fi)),rq=(th(),Y(eh)),cn=al(),ql=Dl(),nq=Vl(),Ko=kl(),iq=Gl();function oq(){return(t,e)=>Ko.tracer.startActiveSpan((0,Ko.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)))}zo.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,Ko.emitSpanEvents)(e.request,t,LO.MESSAGETYPEVALUES_RECEIVED):i=e.request,e.responseStream){yield*(0,Ko.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(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.openTelemetryClientMiddleware=void 0;var di=(w(),Y(Ne)),UO=(Ct(),Y(fi)),uq=(th(),Y(eh)),Qt=al(),DO=Dl(),sq=Vl(),Wo=kl(),lq=Gl();function cq(){return(t,e)=>Wo.tracer.startActiveSpan((0,Wo.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}))})}Xo.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,Wo.emitSpanEvents)(e.request,t,UO.MESSAGETYPEVALUES_SENT):r=e.request,e.responseStream){yield*(0,Wo.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(($J,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:o,destStat:a}=ri.checkPathsSync(t,e,"copy",n);if(ri.checkParentPathsSync(t,o,e,"copy"),n.filter&&!n.filter(t,e))return;let u=ti.dirname(e);return we.existsSync(u)||CC(u),Bh(a,t,e,n)}function Bh(t,e,n,o){let u=(o.dereference?we.statSync:we.lstatSync)(e);if(u.isDirectory())return HC(u,t,e,n,o);if(u.isFile()||u.isCharacterDevice()||u.isBlockDevice())return VC(u,t,e,n,o);if(u.isSymbolicLink())return $C(t,e,n,o);throw u.isSocket()?new Error(`Cannot copy a socket file: ${e}`):u.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}function VC(t,e,n,o,a){return e?kC(t,n,o,a):Gh(t,n,o,a)}function kC(t,e,n,o){if(o.overwrite)return we.unlinkSync(n),Gh(t,e,n,o);if(o.errorOnExist)throw new Error(`'${n}' already exists`)}function Gh(t,e,n,o){return we.copyFileSync(e,n),o.preserveTimestamps&&BC(t.mode,e,n),Sl(n,t.mode)}function BC(t,e,n){return GC(t)&&qC(n,t),FC(e,n)}function GC(t){return(t&128)===0}function qC(t,e){return Sl(t,e|128)}function Sl(t,e){return we.chmodSync(t,e)}function FC(t,e){let n=we.statSync(t);return UC(e,n.atime,n.mtime)}function HC(t,e,n,o,a){return e?qh(n,o,a):jC(t.mode,n,o,a)}function jC(t,e,n,o){return we.mkdirSync(n),qh(e,n,o),Sl(n,t)}function qh(t,e,n){we.readdirSync(t).forEach(o=>YC(o,t,e,n))}function YC(t,e,n,o){let a=ti.join(e,t),u=ti.join(n,t);if(o.filter&&!o.filter(a,u))return;let{destStat:i}=ri.checkPathsSync(a,u,"copy",o);return Bh(i,a,u,o)}function $C(t,e,n,o){let a=we.readlinkSync(e);if(o.dereference&&(a=ti.resolve(process.cwd(),a)),t){let u;try{u=we.readlinkSync(n)}catch(i){if(i.code==="EINVAL"||i.code==="UNKNOWN")return we.symlinkSync(a,n);throw i}if(o.dereference&&(u=ti.resolve(process.cwd(),u)),ri.isSrcSubdir(a,u))throw new Error(`Cannot copy '${a}' to a subdirectory of itself, '${u}'.`);if(ri.isSrcSubdir(u,a))throw new Error(`Cannot overwrite '${u}' with '${a}'.`);return KC(a,n)}else return we.symlinkSync(a,n)}function KC(t,e){return we.unlinkSync(e),we.symlinkSync(t,e)}Fh.exports=DC});var Bo=y((Y7,jh)=>{"use strict";var zC=he().fromPromise;jh.exports={copy:zC(kh()),copySync:Hh()}});var ni=y(($7,$h)=>{"use strict";var Yh=en(),WC=he().fromCallback;function XC(t,e){Yh.rm(t,{recursive:!0,force:!0},e)}function JC(t){Yh.rmSync(t,{recursive:!0,force:!0})}$h.exports={remove:WC(XC),removeSync:JC}});var em=y((K7,Zh)=>{"use strict";var QC=he().fromPromise,Wh=Pe(),Xh=M("path"),Jh=ut(),Qh=ni(),Kh=QC(async function(e){let n;try{n=await Wh.readdir(e)}catch{return Jh.mkdirs(e)}return Promise.all(n.map(o=>Qh.remove(Xh.join(e,o))))});function zh(t){let e;try{e=Wh.readdirSync(t)}catch{return Jh.mkdirsSync(t)}e.forEach(n=>{n=Xh.join(t,n),Qh.removeSync(n)})}Zh.exports={emptyDirSync:zh,emptydirSync:zh,emptyDir:Kh,emptydir:Kh}});var im=y((z7,nm)=>{"use strict";var ZC=he().fromPromise,tm=M("path"),It=Pe(),rm=ut();async function eU(t){let e;try{e=await It.stat(t)}catch{}if(e&&e.isFile())return;let n=tm.dirname(t),o=null;try{o=await It.stat(n)}catch(a){if(a.code==="ENOENT"){await rm.mkdirs(n),await It.writeFile(t,"");return}else throw a}o.isDirectory()?await It.writeFile(t,""):await It.readdir(n)}function tU(t){let e;try{e=It.statSync(t)}catch{}if(e&&e.isFile())return;let n=tm.dirname(t);try{It.statSync(n).isDirectory()||It.readdirSync(n)}catch(o){if(o&&o.code==="ENOENT")rm.mkdirsSync(n);else throw o}It.writeFileSync(t,"")}nm.exports={createFile:ZC(eU),createFileSync:tU}});var lm=y((W7,sm)=>{"use strict";var rU=he().fromPromise,om=M("path"),zt=Pe(),am=ut(),{pathExists:nU}=Kt(),{areIdentical:um}=Tr();async function iU(t,e){let n;try{n=await zt.lstat(e)}catch{}let o;try{o=await zt.lstat(t)}catch(i){throw i.message=i.message.replace("lstat","ensureLink"),i}if(n&&um(o,n))return;let a=om.dirname(e);await nU(a)||await am.mkdirs(a),await zt.link(t,e)}function oU(t,e){let n;try{n=zt.lstatSync(e)}catch{}try{let u=zt.lstatSync(t);if(n&&um(u,n))return}catch(u){throw u.message=u.message.replace("lstat","ensureLink"),u}let o=om.dirname(e);return zt.existsSync(o)||am.mkdirsSync(o),zt.linkSync(t,e)}sm.exports={createLink:rU(iU),createLinkSync:oU}});var fm=y((X7,cm)=>{"use strict";var Wt=M("path"),ii=Pe(),{pathExists:aU}=Kt(),uU=he().fromPromise;async function sU(t,e){if(Wt.isAbsolute(t)){try{await ii.lstat(t)}catch(u){throw u.message=u.message.replace("lstat","ensureSymlink"),u}return{toCwd:t,toDst:t}}let n=Wt.dirname(e),o=Wt.join(n,t);if(await aU(o))return{toCwd:o,toDst:t};try{await ii.lstat(t)}catch(u){throw u.message=u.message.replace("lstat","ensureSymlink"),u}return{toCwd:t,toDst:Wt.relative(n,t)}}function lU(t,e){if(Wt.isAbsolute(t)){if(!ii.existsSync(t))throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}let n=Wt.dirname(e),o=Wt.join(n,t);if(ii.existsSync(o))return{toCwd:o,toDst:t};if(!ii.existsSync(t))throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:Wt.relative(n,t)}}cm.exports={symlinkPaths:uU(sU),symlinkPathsSync:lU}});var hm=y((J7,dm)=>{"use strict";var pm=Pe(),cU=he().fromPromise;async function fU(t,e){if(e)return e;let n;try{n=await pm.lstat(t)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}function pU(t,e){if(e)return e;let n;try{n=pm.lstatSync(t)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}dm.exports={symlinkType:cU(fU),symlinkTypeSync:pU}});var _m=y((Q7,ym)=>{"use strict";var dU=he().fromPromise,mm=M("path"),mt=Pe(),{mkdirs:hU,mkdirsSync:mU}=ut(),{symlinkPaths:vU,symlinkPathsSync:yU}=fm(),{symlinkType:_U,symlinkTypeSync:SU}=hm(),{pathExists:EU}=Kt(),{areIdentical:vm}=Tr();async function TU(t,e,n){let o;try{o=await mt.lstat(e)}catch{}if(o&&o.isSymbolicLink()){let[r,s]=await Promise.all([mt.stat(t),mt.stat(e)]);if(vm(r,s))return}let a=await vU(t,e);t=a.toDst;let u=await _U(a.toCwd,n),i=mm.dirname(e);return await EU(i)||await hU(i),mt.symlink(t,e,u)}function gU(t,e,n){let o;try{o=mt.lstatSync(e)}catch{}if(o&&o.isSymbolicLink()){let r=mt.statSync(t),s=mt.statSync(e);if(vm(r,s))return}let a=yU(t,e);t=a.toDst,n=SU(a.toCwd,n);let u=mm.dirname(e);return mt.existsSync(u)||mU(u),mt.symlinkSync(t,e,n)}ym.exports={createSymlink:dU(TU),createSymlinkSync:gU}});var xm=y((Z7,bm)=>{"use strict";var{createFile:Sm,createFileSync:Em}=im(),{createLink:Tm,createLinkSync:gm}=lm(),{createSymlink:Om,createSymlinkSync:Am}=_m();bm.exports={createFile:Sm,createFileSync:Em,ensureFile:Sm,ensureFileSync:Em,createLink:Tm,createLinkSync:gm,ensureLink:Tm,ensureLinkSync:gm,createSymlink:Om,createSymlinkSync:Am,ensureSymlink:Om,ensureSymlinkSync:Am}});var Go=y((eJ,Nm)=>{function OU(t,{EOL:e=`
|
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((tJ,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((rJ,Im)=>{"use strict";var Fo=Mm();Im.exports={readJson:Fo.readFile,readJsonSync:Fo.readFileSync,writeJson:Fo.writeFile,writeJsonSync:Fo.writeFileSync}});var Ho=y((nJ,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((iJ,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((oJ,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((aJ,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((uJ,$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((sJ,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((lJ,Zm)=>{"use strict";var rD=he().fromPromise;Zm.exports={move:rD(Km()),moveSync:Qm()}});var Ol=y((cJ,tv)=>{"use strict";tv.exports={...Pe(),...Bo(),...em(),...xm(),...Fm(),...ut(),...ev(),...Ho(),...Kt(),...ni()}});var cv=y((fJ,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=(th(),Y(eh)),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=(th(),Y(eh)),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(($J,FO)=>{"use strict";var hi=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
12
|
`),Error.captureStackTrace(this,hi)}};FO.exports=t=>{if(t.length>2)throw new hi(t);function e(o={}){this.options=o}e.prototype.transform=t;function n(o){return new e(o)}return n.Format=e,n}});var $O=y((KJ,YO)=>{var jO={};YO.exports=jO;var HO={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(HO).forEach(function(t){var e=HO[t],n=jO[t]=[];n.open="\x1B["+e[0]+"m",n.close="\x1B["+e[1]+"m"})});var zO=y((zJ,KO)=>{"use strict";KO.exports=function(t,e){e=e||process.argv||[];var n=e.indexOf("--"),o=/^-{1,2}/.test(t)?"":"--",a=e.indexOf(o+t);return a!==-1&&(n===-1?!0:a<n)}});var XO=y((WJ,WO)=>{"use strict";var yq=M("os"),st=zO(),Ie=process.env,pn=void 0;st("no-color")||st("no-colors")||st("color=false")?pn=!1:(st("color")||st("colors")||st("color=true")||st("color=always"))&&(pn=!0);"FORCE_COLOR"in Ie&&(pn=Ie.FORCE_COLOR.length===0||parseInt(Ie.FORCE_COLOR,10)!==0);function _q(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Sq(t){if(pn===!1)return 0;if(st("color=16m")||st("color=full")||st("color=truecolor"))return 3;if(st("color=256"))return 2;if(t&&!t.isTTY&&pn!==!0)return 0;var e=pn?1:0;if(process.platform==="win32"){var n=yq.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 Ie)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(a){return a in Ie})||Ie.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in Ie)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ie.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in Ie){var o=parseInt((Ie.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ie.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ie.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(Ie.TERM)||"COLORTERM"in Ie?1:(Ie.TERM==="dumb",e)}function jl(t){var e=Sq(t);return _q(e)}WO.exports={supportsColor:jl,stdout:jl(process.stdout),stderr:jl(process.stderr)}});var QO=y((XJ,JO)=>{JO.exports=function(e,n){var o="";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(u){u=u.toLowerCase();var i=a[u]||[" "],r=Math.floor(Math.random()*i.length);typeof a[u]<"u"?o+=a[u][r]:o+=u}),o}});var e0=y((JJ,ZO)=>{ZO.exports=function(e,n){e=e||" he is here ";var o={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(o.up,o.down,o.mid);function u(s){var l=Math.floor(Math.random()*s);return l}function i(s){var l=!1;return a.filter(function(c){l=c===s}),l}function r(s,l){var c="",p,m;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",s=s.split("");for(m in s)if(!i(m)){switch(c=c+s[m],p={up:0,down:0,mid:0},l.size){case"mini":p.up=u(8),p.mid=u(2),p.down=u(8);break;case"maxi":p.up=u(16)+3,p.mid=u(4)+1,p.down=u(64)+3;break;default:p.up=u(8)+1,p.mid=u(6)/2,p.down=u(8)+1;break}var f=["up","mid","down"];for(var v in f)for(var S=f[v],_=0;_<=p[S];_++)l[S]&&(c=c+o[S][u(o[S].length)])}return c}return r(e,n)}});var r0=y((QJ,t0)=>{t0.exports=function(t){return function(e,n,o){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 i0=y((ZJ,n0)=>{n0.exports=function(t){return function(e,n,o){return n%2===0?e:t.inverse(e)}}});var a0=y((eQ,o0)=>{o0.exports=function(t){var e=["red","yellow","green","blue","magenta"];return function(n,o,a){return n===" "?n:t[e[o++%e.length]](n)}}});var s0=y((tQ,u0)=>{u0.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,o,a){return n===" "?n:t[e[Math.round(Math.random()*(e.length-2))]](n)}}});var h0=y((nQ,d0)=>{var H={};d0.exports=H;H.themes={};var Eq=M("util"),Or=H.styles=$O(),c0=Object.defineProperties,Tq=new RegExp(/[\r\n]+/g);H.supportsColor=XO().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 rQ=H.stylize=function(e,n){if(!H.enabled)return e+"";var o=Or[n];return!o&&n in H?H[n](e):o.open+e+o.close},gq=/[|\\{}()[\]^$+*?.]/g,Oq=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(gq,"\\$&")};function f0(t){var e=function n(){return bq.apply(n,arguments)};return e._styles=t,e.__proto__=Aq,e}var p0=function(){var t={};return Or.grey=Or.gray,Object.keys(Or).forEach(function(e){Or[e].closeRe=new RegExp(Oq(Or[e].close),"g"),t[e]={get:function(){return f0(this._styles.concat(e))}}}),t}(),Aq=c0(function(){},p0);function bq(){var t=Array.prototype.slice.call(arguments),e=t.map(function(i){return i!=null&&i.constructor===String?i:Eq.inspect(i)}).join(" ");if(!H.enabled||!e)return e;for(var n=e.indexOf(`
|
13
|
-
`)!=-1,o=this._styles,a=o.length;a--;){var u=Or[o[a]];e=u.open+e.replace(u.closeRe,u.open)+u.close,n&&(e=e.replace(Tq,function(i){return u.close+i+u.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(o){if(typeof t[n]=="object"){var a=o;for(var u in t[n])a=H[t[n][u]](a);return a}return H[t[n]](o)}})(e)};function xq(){var t={};return Object.keys(p0).forEach(function(e){t[e]={get:function(){return f0([e])}}}),t}var Nq=function(e,n){var o=n.split("");return o=o.map(e),o.join("")};H.trap=QO();H.zalgo=e0();H.maps={};H.maps.america=r0()(H);H.maps.zebra=i0()(H);H.maps.rainbow=a0()(H);H.maps.random=s0()(H);for(l0 in H.maps)(function(t){H[t]=function(e){return Nq(H.maps[t],e)}})(l0);var l0;c0(H,xq())});var Yl=y((iQ,m0)=>{var Rq=h0();m0.exports=Rq});var v0=y($l=>{"use strict";$l.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9};$l.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}});var y0=y(Kl=>{"use strict";Kl.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6};Kl.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}});var _0=y(zl=>{"use strict";zl.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7};zl.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}});var S0=y(
|
14
|
-
`));return!0}rc.exports=(...t)=>{let e=Vq(w0(t)),n=e();return n.Format=e.Format,n};rc.exports.cascade=w0});var vi=y((ac,U0)=>{"use strict";var{hasOwnProperty:
|
13
|
+
`)!=-1,o=this._styles,a=o.length;a--;){var u=Or[o[a]];e=u.open+e.replace(u.closeRe,u.open)+u.close,n&&(e=e.replace(Tq,function(i){return u.close+i+u.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(o){if(typeof t[n]=="object"){var a=o;for(var u in t[n])a=H[t[n][u]](a);return a}return H[t[n]](o)}})(e)};function xq(){var t={};return Object.keys(p0).forEach(function(e){t[e]={get:function(){return f0([e])}}}),t}var Nq=function(e,n){var o=n.split("");return o=o.map(e),o.join("")};H.trap=QO();H.zalgo=e0();H.maps={};H.maps.america=r0()(H);H.maps.zebra=i0()(H);H.maps.rainbow=a0()(H);H.maps.random=s0()(H);for(l0 in H.maps)(function(t){H[t]=function(e){return Nq(H.maps[t],e)}})(l0);var l0;c0(H,xq())});var Yl=y((iQ,m0)=>{var Rq=h0();m0.exports=Rq});var v0=y($l=>{"use strict";$l.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9};$l.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}});var y0=y(Kl=>{"use strict";Kl.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6};Kl.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}});var _0=y(zl=>{"use strict";zl.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7};zl.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}});var S0=y(ea=>{"use strict";Object.defineProperty(ea,"cli",{value:v0()});Object.defineProperty(ea,"npm",{value:y0()});Object.defineProperty(ea,"syslog",{value:_0()})});var fe=y(mi=>{"use strict";Object.defineProperty(mi,"LEVEL",{value:Symbol.for("level")});Object.defineProperty(mi,"MESSAGE",{value:Symbol.for("message")});Object.defineProperty(mi,"SPLAT",{value:Symbol.for("splat")});Object.defineProperty(mi,"configs",{value:S0()})});var ra=y((cQ,ta)=>{"use strict";var Jl=Yl(),{LEVEL:Wl,MESSAGE:Xl}=fe();Jl.enabled=!0;var E0=/\s+/,$e=class{constructor(e={}){e.colors&&this.addColors(e.colors),this.options=e}static addColors(e){let n=Object.keys(e).reduce((o,a)=>(o[a]=E0.test(e[a])?e[a].split(E0):e[a],o),{});return $e.allColors=Object.assign({},$e.allColors||{},n),$e.allColors}addColors(e){return $e.addColors(e)}colorize(e,n,o){if(typeof o>"u"&&(o=n),!Array.isArray($e.allColors[e]))return Jl[$e.allColors[e]](o);for(let a=0,u=$e.allColors[e].length;a<u;a++)o=Jl[$e.allColors[e][a]](o);return o}transform(e,n){return n.all&&typeof e[Xl]=="string"&&(e[Xl]=this.colorize(e[Wl],e.level,e[Xl])),(n.level||n.all||!n.message)&&(e.level=this.colorize(e[Wl],e.level)),(n.all||n.message)&&(e.message=this.colorize(e[Wl],e.level,e.message)),e}};ta.exports=t=>new $e(t);ta.exports.Colorizer=ta.exports.Format=$e});var g0=y((fQ,T0)=>{"use strict";var{Colorizer:Pq}=ra();T0.exports=t=>(Pq.addColors(t.colors||t),t)});var A0=y((pQ,O0)=>{"use strict";var wq=Be();O0.exports=wq(t=>(t.message=` ${t.message}`,t))});var N0=y((dQ,x0)=>{"use strict";var Mq=Be(),{LEVEL:b0,MESSAGE:Ql}=fe();x0.exports=Mq((t,{stack:e,cause:n})=>{if(t instanceof Error){let a=Object.assign({},t,{level:t.level,[b0]:t[b0]||t.level,message:t.message,[Ql]:t[Ql]||t.message});return e&&(a.stack=t.stack),n&&(a.cause=t.cause),a}if(!(t.message instanceof Error))return t;let o=t.message;return Object.assign(t,o),t.message=o.message,t[Ql]=o.message,e&&(t.stack=o.stack),n&&(t.cause=o.cause),t})});var ec=y((hQ,na)=>{"use strict";var{configs:Iq,LEVEL:R0,MESSAGE:Zl}=fe(),Zt=class{constructor(e={levels:Iq.npm.levels}){this.paddings=Zt.paddingForLevels(e.levels,e.filler),this.options=e}static getLongestLevel(e){let n=Object.keys(e).map(o=>o.length);return Math.max(...n)}static paddingForLevel(e,n,o){let a=o+1-e.length,u=Math.floor(a/n.length);return`${n}${n.repeat(u)}`.slice(0,a)}static paddingForLevels(e,n=" "){let o=Zt.getLongestLevel(e);return Object.keys(e).reduce((a,u)=>(a[u]=Zt.paddingForLevel(u,n,o),a),{})}transform(e,n){return e.message=`${this.paddings[e[R0]]}${e.message}`,e[Zl]&&(e[Zl]=`${this.paddings[e[R0]]}${e[Zl]}`),e}};na.exports=t=>new Zt(t);na.exports.Padder=na.exports.Format=Zt});var P0=y((mQ,tc)=>{"use strict";var{Colorizer:Lq}=ra(),{Padder:Cq}=ec(),{configs:Uq,MESSAGE:Dq}=fe(),ia=class{constructor(e={}){e.levels||(e.levels=Uq.cli.levels),this.colorizer=new Lq(e),this.padder=new Cq(e),this.options=e}transform(e,n){return this.colorizer.transform(this.padder.transform(e,n),n),e[Dq]=`${e.level}:${e.message}`,e}};tc.exports=t=>new ia(t);tc.exports.Format=ia});var M0=y((vQ,rc)=>{"use strict";var Vq=Be();function w0(t){if(t.every(kq))return e=>{let n=e;for(let o=0;o<t.length;o++)if(n=t[o].transform(n,t[o].options),!n)return!1;return n}}function kq(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}rc.exports=(...t)=>{let e=Vq(w0(t)),n=e();return n.Format=e.Format,n};rc.exports.cascade=w0});var vi=y((ac,U0)=>{"use strict";var{hasOwnProperty:oa}=Object.prototype,br=oc();br.configure=oc;br.stringify=br;br.default=br;ac.stringify=br;ac.configure=oc;U0.exports=br;var Bq=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;function er(t){return t.length<5e3&&!Bq.test(t)?`"${t}"`:JSON.stringify(t)}function nc(t){if(t.length>200)return t.sort();for(let e=1;e<t.length;e++){let n=t[e],o=e;for(;o!==0&&t[o-1]>n;)t[o]=t[o-1],o--;t[o]=n}return t}var Gq=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function ic(t){return Gq.call(t)!==void 0&&t.length!==0}function I0(t,e,n){t.length<n&&(n=t.length);let o=e===","?"":" ",a=`"0":${o}${t[0]}`;for(let u=1;u<n;u++)a+=`${e}"${u}":${o}${t[u]}`;return a}function qq(t){if(oa.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 L0(t,e){let n;if(oa.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 C0(t,e){let n;if(oa.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 Ar(t){return t===1?"1 item":`${t} items`}function Fq(t){let e=new Set;for(let n of t)(typeof n=="string"||typeof n=="number")&&e.add(String(n));return e}function Hq(t){if(oa.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 o=`Object can not safely be stringified. Received type ${typeof n}`;throw typeof n!="function"&&(o+=` (${n.toString()})`),new Error(o)}}}function oc(t){t={...t};let e=Hq(t);e&&(t.bigint===void 0&&(t.bigint=!1),"circularValue"in t||(t.circularValue=Error));let n=qq(t),o=L0(t,"bigint"),a=L0(t,"deterministic"),u=C0(t,"maximumDepth"),i=C0(t,"maximumBreadth");function r(m,f,v,S,_,O){let g=f[m];switch(typeof g=="object"&&g!==null&&typeof g.toJSON=="function"&&(g=g.toJSON(m)),g=S.call(f,m,g),typeof g){case"string":return er(g);case"object":{if(g===null)return"null";if(v.indexOf(g)!==-1)return n;let b="",L=",",B=O;if(Array.isArray(g)){if(g.length===0)return"[]";if(u<v.length+1)return'"[Array]"';v.push(g),_!==""&&(O+=_,b+=`
|
15
15
|
${O}`,L=`,
|
16
16
|
${O}`);let U=Math.min(g.length,i),z=0;for(;z<U-1;z++){let ne=r(String(z),g,v,S,_,O);b+=ne!==void 0?ne:"null",b+=L}let W=r(String(z),g,v,S,_,O);if(b+=W!==void 0?W:"null",g.length-1>i){let ne=g.length-i-1;b+=`${L}"... ${Ar(ne)} not stringified"`}return _!==""&&(b+=`
|
17
17
|
${B}`),v.pop(),`[${b}]`}let j=Object.keys(g),ae=j.length;if(ae===0)return"{}";if(u<v.length+1)return'"[Object]"';let $="",P="";_!==""&&(O+=_,L=`,
|
@@ -29,14 +29,14 @@ ${_}`,k=Math.min(f.length,i),U=0;for(;U<k-1;U++){let W=l(String(U),f[U],v,S,_);$
|
|
29
29
|
${O}`,v.pop(),`[${$}]`}let g=Object.keys(f),b=g.length;if(b===0)return"{}";if(u<v.length+1)return'"[Object]"';_+=S;let L=`,
|
30
30
|
${_}`,B="",j="",ae=Math.min(b,i);ic(f)&&(B+=I0(f,L,i),g=g.slice(f.length),ae-=f.length,j=L),a&&(g=nc(g)),v.push(f);for(let $=0;$<ae;$++){let P=g[$],k=l(P,f[P],v,S,_);k!==void 0&&(B+=`${j}${er(P)}: ${k}`,j=L)}if(b>i){let $=b-i;B+=`${j}"...": "${Ar($)} not stringified"`,j=L}return j!==""&&(B=`
|
31
31
|
${_}${B}
|
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((yQ,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((_Q,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((SQ,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((EQ,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((TQ,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?oa(t,e,xr,"day"):e>=mn?oa(t,e,mn,"hour"):e>=hn?oa(t,e,hn,"minute"):e>=dn?oa(t,e,dn,"second"):t+" ms"}function oa(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((gQ,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((OQ,ua)=>{"use strict";var{MESSAGE:pF}=fe(),aa=class{constructor(e){this.template=e}transform(e){return e[pF]=this.template(e),e}};ua.exports=t=>new aa(t);ua.exports.Printf=ua.exports.Format=aa});var Z0=y((AQ,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((bQ,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=la[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({},sa),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,sa,mA,iA,Ge,gF,oA,aA,uA,sA,lA,OF,la,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]}},sa=nr({},lc),mA=function(t){return sa=nr(sa,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},la={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(la,t)},yA=function(t,e,n){if(e===void 0&&(e=la.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=la[e]||e;var o=[];e=e.replace(fA,function(u,i){return o.push(i),"@@@"});var a=nr(nr({},sa),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((xQ,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((NQ,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 ta()});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(ca=>{"use strict";var{format:bA}=M("util");ca.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]=ca.warn[e](o)})},forProperties(t,e,n){n.forEach(o=>{let a=ca.warn[e](o);Object.defineProperty(t,o,{get:a,set:a})})}}});var xA=y((wQ,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((MQ,NA)=>{NA.exports=M("util").deprecate});var mc=y((IQ,PA)=>{PA.exports=M("stream")});var yc=y((LQ,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(fa,n):(n._writableState.errorEmitted=!0,process.nextTick(wA,n,u)):process.nextTick(wA,n,u):e?(process.nextTick(fa,n),e(u)):process.nextTick(fa,n)}),this)}function wA(t,e){vc(t,e),fa(t)}function fa(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((CQ,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((UQ,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((DQ,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((VQ,Tc)=>{try{if(Ec=M("util"),typeof Ec.inherits!="function")throw"";Tc.exports=Ec.inherits}catch{Tc.exports=DA()}var Ec});var FA=y((kQ,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"),pa=jF.Buffer,YF=M("util"),gc=YF.inspect,$F=gc&&gc.custom||"inspect";function KF(t,e,n){pa.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 pa.alloc(0);for(var o=pa.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=pa.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 da=M("buffer"),yt=da.Buffer;function HA(t,e){for(var n in t)e[n]=t[n]}yt.from&&yt.alloc&&yt.allocUnsafe&&yt.allocUnsafeSlow?jA.exports=da:(HA(da,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 da.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 ha=y((GQ,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((qQ,JA)=>{"use strict";var ma;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=ha(),ar=Symbol("lastResolve"),Rr=Symbol("lastReject"),Ei=Symbol("error"),va=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[va]){n(ur(void 0,!0));return}e[Nc](n,o)},o)}}var v4=Object.getPrototypeOf(function(){}),y4=Object.setPrototypeOf((ma={get stream(){return this[wr]},next:function(){var e=this,n=this[Ei];if(n!==null)return Promise.reject(n);if(this[va])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(ma,Symbol.asyncIterator,function(){return this}),or(ma,"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))})})}),ma),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,va,{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[va]=!0}),e.on("readable",h4.bind(null,o)),o};JA.exports=_4});var rb=y((FQ,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((jQ,pb)=>{"use strict";pb.exports=K;var yn;K.ReadableState=ab;var HQ=M("events").EventEmitter,ob=function(e,n){return e.listeners(n).length},gi=mc(),ya=M("buffer").Buffer,x4=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function N4(t){return ya.from(t)}function R4(t){return ya.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,_a=ir().codes,I4=_a.ERR_INVALID_ARG_TYPE,L4=_a.ERR_STREAM_PUSH_AFTER_EOF,C4=_a.ERR_METHOD_NOT_IMPLEMENTED,U4=_a.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=ya.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)!==ya.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&&Sa(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):Sa(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?Sa(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,sb(t)))}}function Sa(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?Sa(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((YQ,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=ga();vn()(_t,db);for(kc=$4(Bc.prototype),Ea=0;Ea<kc.length;Ea++)Ta=kc[Ea],_t.prototype[Ta]||(_t.prototype[Ta]=Bc.prototype[Ta]);var kc,Ta,Ea;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 ga=y(($Q,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(),Aa=M("buffer").Buffer,X4=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function J4(t){return Aa.from(t)}function Q4(t){return Aa.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 Oa;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Oa=Function.prototype[Symbol.hasInstance],Object.defineProperty(se,Symbol.hasInstance,{value:function(e){return Oa.call(this,e)?!0:this!==se?!1:e&&e._writableState instanceof Ai}})):Oa=function(e){return e instanceof this};function se(t){Sn=Sn||Mr();var e=this instanceof Sn;if(!e&&!Oa.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&&!Aa.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=Aa.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((KQ,Ob)=>{"use strict";var gH=M("util"),Tb=ga(),{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((zQ,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((WQ,Yc)=>{"use strict";Yc.exports=Fc();Yc.exports.LegacyTransportStream=jc()});var Rb=y((JQ,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 xa=y((ba,Pb)=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});ba.default=xH;function xH(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}Pb.exports=ba.default});var Mb=y((Na,wb)=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.default=function(t){return function(...e){var n=e.pop();return t.call(this,e,n)}};wb.exports=Na.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((Ra,kb)=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.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=Ra.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((Pa,qb)=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.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=Pa.default});var Hb=y((wa,Fb)=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});var HH=xa(),jH=$c(HH),YH=Ir(),$H=$c(YH),KH=On(),zH=$c(KH);function $c(t){return t&&t.__esModule?t:{default:t}}wa.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=wa.default});var Kc=y((Ma,jb)=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});Ma.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=Ma.default});var $b=y((Ia,Yb)=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});Ia.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()};Yb.exports=Ia.default});var Wb=y((La,zb)=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.default=nj;var XH=xa(),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=La.default});var zc=y((Ca,Xb)=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.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=Ca.default});var Da=y((Ua,Jb)=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});var oj={};Ua.default=oj;Jb.exports=Ua.default});var Zb=y((Va,Qb)=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.default=lj;var aj=Da(),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=Va.default});var nx=y((ka,rx)=>{"use strict";Object.defineProperty(ka,"__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=Da(),_j=Ri(yj);function Ri(t){return t&&t.__esModule?t:{default:t}}ka.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=ka.default});var Xc=y((Ba,ix)=>{"use strict";Object.defineProperty(Ba,"__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)}Ba.default=(0,Aj.default)(bj,4);ix.exports=Ba.default});var ux=y((Ga,ax)=>{"use strict";Object.defineProperty(Ga,"__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)}Ga.default=(0,Pj.default)(wj,3);ax.exports=Ga.default});var cx=y((qa,lx)=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});qa.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=qa.default});var Jc=y((eZ,px)=>{"use strict";px.exports=Dt;var Fa=ir().codes,Dj=Fa.ERR_METHOD_NOT_IMPLEMENTED,Vj=Fa.ERR_MULTIPLE_CALLBACK,kj=Fa.ERR_TRANSFORM_ALREADY_TRANSFORMING,Bj=Fa.ERR_TRANSFORM_WITH_LENGTH_0,Ha=Mr();vn()(Dt,Ha);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);Ha.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,Ha.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){Ha.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((tZ,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((rZ,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=ha()),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=ga(),et.Duplex=Mr(),et.Transform=Jc(),et.PassThrough=mx(),et.finished=ha(),et.pipeline=Ex())});var af=y((nZ,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((iZ,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((oZ,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((aZ,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((uZ,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((sZ,Cx)=>{var Li=xx(),Ci=Mx(),Ix=Object.hasOwnProperty,Lx=Object.create(null);for(ja in Li)Ix.call(Li,ja)&&(Lx[Li[ja]]=ja);var ja,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"#"+Ya(t[0])+Ya(t[1])+Ya(t[2])+(t[3]<1?Ya(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 Ya(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}});var Vx=y((lZ,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((cZ,qx)=>{var Cr=Vx(),Gx={};for($a in Cr)Cr.hasOwnProperty($a)&&(Gx[Cr[$a]]=$a);var $a,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((fZ,Fx)=>{var Ka=uf();function o6(){for(var t={},e=Object.keys(Ka),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(Ka[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=Ka[e[t].parent][t],a=e[t].parent;e[a].parent;)n.unshift(e[a].parent),o=u6(Ka[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((pZ,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((dZ,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 za={};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(za[this.model])for(o=ze[this.model].channels,n=0;n<o;n++){var c=za[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){(za[o]||(za[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((hZ,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((mZ,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((vZ,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((yZ,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((_Z,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((SZ,uN)=>{var _6=aN();uN.exports=function(e){return function(o){try{return _6(o,e())}catch{}return!1}}});var cN=y((EZ,lN)=>{var S6=sN();lN.exports=S6(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var pN=y((TZ,fN)=>{fN.exports=function(t,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var hN=y((gZ,dN)=>{var E6=af(),T6=M("tty").isatty(1),Wa=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)});Wa.modify(iN());Wa.use(cN());Wa.set(pN());dN.exports=Wa});var Di=y((OZ,pf)=>{process.env.NODE_ENV==="production"?pf.exports=Ax():pf.exports=hN()});var vN=y((AZ,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((xZ,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((RZ,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((PZ,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((MZ,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 Ja=y(ki=>{"use strict";var Xa=dc(),{configs:mf}=fe();ki.cli=Xa.levels(mf.cli);ki.npm=Xa.levels(mf.npm);ki.syslog=Xa.levels(mf.syslog);ki.addColors=Xa.levels});var RN=y((Qa,NN)=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});var G6=xa(),q6=Ur(G6),F6=Da(),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)}Qa.default=(0,Z6.default)(rY,3);NN.exports=Qa.default});var wN=y((Za,PN)=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});Za.default=nY;function nY(t){return(e,n,o)=>t(e,o)}PN.exports=Za.default});var ru=y((tu,MN)=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});var iY=RN(),oY=eu(iY),aY=wN(),uY=eu(aY),sY=Ir(),lY=eu(sY),cY=On(),fY=eu(cY);function eu(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)}tu.default=(0,fY.default)(pY,3);MN.exports=tu.default});var LN=y((CZ,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((UZ,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(o){if(o.match(/^\s*[-]{4,}$/))return e._createParsedCallSite({fileName:o,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var a=o.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(a){var u=null,i=null,r=null,s=null,l=null,c=a[5]==="native";if(a[1]){r=a[1];var p=r.lastIndexOf(".");if(r[p-1]=="."&&p--,p>0){u=r.substr(0,p),i=r.substr(p+1);var m=u.indexOf(".Module");m>0&&(r=r.substr(m+1),u=u.substr(0,m))}s=null}i&&(s=u,l=i),i==="<anonymous>"&&(l=null,r=null);var f={fileName:a[2]||null,lineNumber:parseInt(a[3],10)||null,functionName:r,typeName:s,methodName:l,columnNumber:parseInt(a[4],10)||null,native:c};return e._createParsedCallSite(f)}}).filter(function(o){return!!o})};function Bi(t){for(var e in t)this[e]=t[e]}var mY=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],vY=["topLevel","eval","native","constructor"];mY.forEach(function(t){Bi.prototype[t]=null,Bi.prototype["get"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});vY.forEach(function(t){Bi.prototype[t]=!1,Bi.prototype["is"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});Gi._createParsedCallSite=function(t){return new Bi(t)}});var DN=y((kZ,UN)=>{"use strict";var{Writable:yY}=Lr();UN.exports=class extends yY{constructor(e){if(super({objectMode:!0}),!e)throw new Error("ExceptionStream requires a TransportStream instance.");this.handleExceptions=!0,this.transport=e}_write(e,n,o){return e.exception?this.transport.log(e,o):(o(),!0)}}});var Sf=y((GZ,BN)=>{"use strict";var VN=M("os"),_Y=
|
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:VN.loadavg(),uptime:VN.uptime()}}getTrace(e){return(e?kN.parse(e):kN.get()).map(o=>({column:o.getColumnNumber(),file:o.getFileName(),function:o.getFunctionName(),line:o.getLineNumber(),method:o.getMethodName(),native:o.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleExceptions=!0;let n=new EY(e);this.handlers.set(e,n),this.logger.pipe(n)}}_uncaughtException(e){let n=this.getAllInfo(e),o=this._getExceptionHandlers(),a=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,u;!o.length&&a&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),a=!1);function i(){_f("doExit",a),_f("process._exiting",process._exiting),a&&!process._exiting&&(u&&clearTimeout(u),process.exit(1))}if(!o||o.length===0)return process.nextTick(i);_Y(o,(r,s)=>{let l=SY(s),c=r.transport||r;function p(m){return()=>{_f(m),l()}}c._ending=!0,c.once("finish",p("finished")),c.once("error",p("error"))},()=>a&&i()),this.logger.log(n),a&&(u=setTimeout(i,3e3))}_getExceptionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleExceptions)}}});var qN=y((FZ,GN)=>{"use strict";var{Writable:TY}=Lr();GN.exports=class extends TY{constructor(e){if(super({objectMode:!0}),!e)throw new Error("RejectionStream requires a TransportStream instance.");this.handleRejections=!0,this.transport=e}_write(e,n,o){return e.rejection?this.transport.log(e,o):(o(),!0)}}});var Tf=y((jZ,jN)=>{"use strict";var FN=M("os"),gY=
|
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:FN.loadavg(),uptime:FN.uptime()}}getTrace(e){return(e?HN.parse(e):HN.get()).map(o=>({column:o.getColumnNumber(),file:o.getFileName(),function:o.getFunctionName(),line:o.getLineNumber(),method:o.getMethodName(),native:o.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleRejections=!0;let n=new AY(e);this.handlers.set(e,n),this.logger.pipe(n)}}_unhandledRejection(e){let n=this.getAllInfo(e),o=this._getRejectionHandlers(),a=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,u;!o.length&&a&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),a=!1);function i(){Ef("doExit",a),Ef("process._exiting",process._exiting),a&&!process._exiting&&(u&&clearTimeout(u),process.exit(1))}if(!o||o.length===0)return process.nextTick(i);gY(o,(r,s)=>{let l=OY(s),c=r.transport||r;function p(m){return()=>{Ef(m),l()}}c._ending=!0,c.once("finish",p("finished")),c.once("error",p("error"))},()=>a&&i()),this.logger.log(n),a&&(u=setTimeout(i,3e3))}_getRejectionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleRejections)}}});var $N=y((YZ,YN)=>{"use strict";var gf=class{constructor(e){let n=
|
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((yQ,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((_Q,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((SQ,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((EQ,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((TQ,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((gQ,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((OQ,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((AQ,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((bQ,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((xQ,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((NQ,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((wQ,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((MQ,NA)=>{NA.exports=M("util").deprecate});var mc=y((IQ,PA)=>{PA.exports=M("stream")});var yc=y((LQ,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((CQ,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((UQ,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((DQ,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((VQ,Tc)=>{try{if(Ec=M("util"),typeof Ec.inherits!="function")throw"";Tc.exports=Ec.inherits}catch{Tc.exports=DA()}var Ec});var FA=y((kQ,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((GQ,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((qQ,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((FQ,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((jQ,pb)=>{"use strict";pb.exports=K;var yn;K.ReadableState=ab;var HQ=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((YQ,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(($Q,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((KQ,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((zQ,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((WQ,Yc)=>{"use strict";Yc.exports=Fc();Yc.exports.LegacyTransportStream=jc()});var Rb=y((JQ,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((eZ,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((tZ,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((rZ,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((nZ,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((iZ,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((oZ,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((aZ,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((uZ,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((sZ,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((lZ,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((cZ,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((fZ,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((pZ,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((dZ,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((hZ,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((mZ,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((vZ,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((yZ,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((_Z,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((SZ,uN)=>{var _6=aN();uN.exports=function(e){return function(o){try{return _6(o,e())}catch{}return!1}}});var cN=y((EZ,lN)=>{var S6=sN();lN.exports=S6(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var pN=y((TZ,fN)=>{fN.exports=function(t,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var hN=y((gZ,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((OZ,pf)=>{process.env.NODE_ENV==="production"?pf.exports=Ax():pf.exports=hN()});var vN=y((AZ,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((xZ,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((RZ,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((PZ,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((MZ,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((CZ,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((UZ,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(o){if(o.match(/^\s*[-]{4,}$/))return e._createParsedCallSite({fileName:o,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var a=o.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(a){var u=null,i=null,r=null,s=null,l=null,c=a[5]==="native";if(a[1]){r=a[1];var p=r.lastIndexOf(".");if(r[p-1]=="."&&p--,p>0){u=r.substr(0,p),i=r.substr(p+1);var m=u.indexOf(".Module");m>0&&(r=r.substr(m+1),u=u.substr(0,m))}s=null}i&&(s=u,l=i),i==="<anonymous>"&&(l=null,r=null);var f={fileName:a[2]||null,lineNumber:parseInt(a[3],10)||null,functionName:r,typeName:s,methodName:l,columnNumber:parseInt(a[4],10)||null,native:c};return e._createParsedCallSite(f)}}).filter(function(o){return!!o})};function Bi(t){for(var e in t)this[e]=t[e]}var mY=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],vY=["topLevel","eval","native","constructor"];mY.forEach(function(t){Bi.prototype[t]=null,Bi.prototype["get"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});vY.forEach(function(t){Bi.prototype[t]=!1,Bi.prototype["is"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});Gi._createParsedCallSite=function(t){return new Bi(t)}});var DN=y((kZ,UN)=>{"use strict";var{Writable:yY}=Lr();UN.exports=class extends yY{constructor(e){if(super({objectMode:!0}),!e)throw new Error("ExceptionStream requires a TransportStream instance.");this.handleExceptions=!0,this.transport=e}_write(e,n,o){return e.exception?this.transport.log(e,o):(o(),!0)}}});var Sf=y((GZ,BN)=>{"use strict";var VN=M("os"),_Y=nu(),_f=Di()("winston:exception"),SY=vf(),kN=yf(),EY=DN();BN.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(o=>this._addHandler(o));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:VN.loadavg(),uptime:VN.uptime()}}getTrace(e){return(e?kN.parse(e):kN.get()).map(o=>({column:o.getColumnNumber(),file:o.getFileName(),function:o.getFunctionName(),line:o.getLineNumber(),method:o.getMethodName(),native:o.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleExceptions=!0;let n=new EY(e);this.handlers.set(e,n),this.logger.pipe(n)}}_uncaughtException(e){let n=this.getAllInfo(e),o=this._getExceptionHandlers(),a=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,u;!o.length&&a&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),a=!1);function i(){_f("doExit",a),_f("process._exiting",process._exiting),a&&!process._exiting&&(u&&clearTimeout(u),process.exit(1))}if(!o||o.length===0)return process.nextTick(i);_Y(o,(r,s)=>{let l=SY(s),c=r.transport||r;function p(m){return()=>{_f(m),l()}}c._ending=!0,c.once("finish",p("finished")),c.once("error",p("error"))},()=>a&&i()),this.logger.log(n),a&&(u=setTimeout(i,3e3))}_getExceptionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleExceptions)}}});var qN=y((FZ,GN)=>{"use strict";var{Writable:TY}=Lr();GN.exports=class extends TY{constructor(e){if(super({objectMode:!0}),!e)throw new Error("RejectionStream requires a TransportStream instance.");this.handleRejections=!0,this.transport=e}_write(e,n,o){return e.rejection?this.transport.log(e,o):(o(),!0)}}});var Tf=y((jZ,jN)=>{"use strict";var FN=M("os"),gY=nu(),Ef=Di()("winston:rejection"),OY=vf(),HN=yf(),AY=qN();jN.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(o=>this._addHandler(o));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:FN.loadavg(),uptime:FN.uptime()}}getTrace(e){return(e?HN.parse(e):HN.get()).map(o=>({column:o.getColumnNumber(),file:o.getFileName(),function:o.getFunctionName(),line:o.getLineNumber(),method:o.getMethodName(),native:o.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleRejections=!0;let n=new AY(e);this.handlers.set(e,n),this.logger.pipe(n)}}_unhandledRejection(e){let n=this.getAllInfo(e),o=this._getRejectionHandlers(),a=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,u;!o.length&&a&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),a=!1);function i(){Ef("doExit",a),Ef("process._exiting",process._exiting),a&&!process._exiting&&(u&&clearTimeout(u),process.exit(1))}if(!o||o.length===0)return process.nextTick(i);gY(o,(r,s)=>{let l=OY(s),c=r.transport||r;function p(m){return()=>{Ef(m),l()}}c._ending=!0,c.once("finish",p("finished")),c.once("error",p("error"))},()=>a&&i()),this.logger.log(n),a&&(u=setTimeout(i,3e3))}_getRejectionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleRejections)}}});var $N=y((YZ,YN)=>{"use strict";var gf=class{constructor(e){let n=iu();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)}};YN.exports=gf});var iu=y(($Z,XN)=>{"use strict";var{Stream:bY,Transform:xY}=Lr(),KN=nu(),{LEVEL:Et,SPLAT:zN}=fe(),WN=hf(),NY=Sf(),RY=Tf(),PY=jc(),wY=$N(),{warn:MY}=hc(),IY=Qa(),LY=/%[scdjifoO%]/g,ou=class extends xY{constructor(e){super({objectMode:!0}),this.configure(e)}child(e){let n=this;return Object.create(n,{write:{value:function(o){let a=Object.assign({},e,o);o instanceof Error&&(a.stack=o.stack,a.message=o.message),n.write(a)}}})}configure({silent:e,format:n,defaultMeta:o,levels:a,level:u="info",exitOnError:i=!0,transports:r,colors:s,emitErrs:l,formatters:c,padLevels:p,rewriters:m,stripColors:f,exceptionHandlers:v,rejectionHandlers:S}={}){if(this.transports.length&&this.clear(),this.silent=e,this.format=n||this.format||uc()(),this.defaultMeta=o||null,this.levels=a||this.levels||IY.npm.levels,this.level=u,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new NY(this),this.rejections=new RY(this),this.profilers={},this.exitOnError=i,r&&(r=Array.isArray(r)?r:[r],r.forEach(_=>this.add(_))),s||l||c||p||m||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
38
|
`));v&&this.exceptions.handle(v),S&&this.rejections.handle(S)}isLevelEnabled(e){let n=Of(this.levels,e);if(n===null)return!1;let o=Of(this.levels,this.level);return o===null?!1:!this.transports||this.transports.length===0?o>=n:this.transports.findIndex(u=>{let i=Of(this.levels,u.level);return i===null&&(i=o),i>=n})!==-1}log(e,n,...o){if(arguments.length===1)return e[Et]=e.level,this._addDefaultMeta(e),this.write(e),this;if(arguments.length===2)return n&&typeof n=="object"?(n[Et]=n.level=e,this._addDefaultMeta(n),this.write(n),this):(n={[Et]:e,level:e,message:n},this._addDefaultMeta(n),this.write(n),this);let[a]=o;if(typeof a=="object"&&a!==null&&!(n&&n.match&&n.match(LY))){let i=Object.assign({},this.defaultMeta,a,{[Et]:e,[zN]:o,level:e,message:n});return a.message&&(i.message=`${i.message} ${a.message}`),a.stack&&(i.stack=a.stack),this.write(i),this}return this.write(Object.assign({},this.defaultMeta,{[Et]:e,[zN]:o,level:e,message:n})),this}_transform(e,n,o){if(this.silent)return o();e[Et]||(e[Et]=e.level),!this.levels[e[Et]]&&this.levels[e[Et]]!==0&&console.error("[winston] Unknown logger level: %s",e[Et]),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,o()}}_final(e){let n=this.transports.slice();KN(n,(o,a)=>{if(!o||o.finished)return setImmediate(a);o.once("finish",a),o.end()},e)}add(e){let n=!WN(e)||e.log.length>2?new PY({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(!WN(e)||e.log.length>2)&&(n=this.transports.filter(o=>o.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(){MY.deprecated("setLevels")}query(e,n){typeof e=="function"&&(n=e,e={}),e=e||{};let o={},a=Object.assign({},e.query||{});function u(r,s){e.query&&typeof r.formatQuery=="function"&&(e.query=r.formatQuery(a)),r.query(e,(l,c)=>{if(l)return s(l);typeof r.formatResults=="function"&&(c=r.formatResults(c,e.format)),s(null,c)})}function i(r,s){u(r,(l,c)=>{s&&(c=l||c,c&&(o[r.name]=c),s()),s=null})}KN(this.transports.filter(r=>!!r.query),i,()=>n(null,o))}stream(e={}){let n=new bY,o=[];return n._streams=o,n.destroy=()=>{let a=o.length;for(;a--;)o[a].destroy()},this.transports.filter(a=>!!a.stream).forEach(a=>{let u=a.stream(e);u&&(o.push(u),u.on("log",i=>{i.transport=i.transport||[],i.transport.push(a.name),n.emit("log",i)}),u.on("error",i=>{i.transport=i.transport||[],i.transport.push(a.name),n.emit("error",i)}))}),n}startTimer(){return new wY(this)}profile(e,...n){let o=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 u=typeof n[n.length-1]=="object"?n.pop():{};return u.level=u.level||"info",u.durationMs=o-a,u.message=u.message||e,this.write(u)}return this.profilers[e]=o,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 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(iu.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:t}=this._readableState;return Array.isArray(t)?t:[t].filter(Boolean)}});XN.exports=iu});var Af=y((KZ,JN)=>{"use strict";var{LEVEL:CY}=fe(),UY=Ja(),DY=nu(),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((WZ,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=Ja();Q.addColors=eR.levels;Q.format=eR.format;Q.createLogger=Af();Q.Logger=nu();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,ou,xn,au,iR,oR,aR,xf=E(()=>{nR="=",ou=";",xn=",",au="baggage",iR=180,oR=4096,aR=8192});var Vt={};it(Vt,{getKeyPairs:()=>Rf,parseKeyPairsIntoRecord:()=>FY,parsePairKeyValue:()=>uu,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+=ou+a.metadata.toString()),u})}function uu(t){var e=t.split(ou);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=rh(e.join(ou))),{key:a,value:u,metadata:i}}}}}function FY(t){return typeof t!="string"||t.length===0?{}:t.split(xn).map(function(e){return uu(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,au,i)}},t.prototype.extract=function(e,n,o){var a=o.get(n,au),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=uu(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[au]},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(!su(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 su(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 cu(t){var e={};for(var n in lu){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,lu,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,lu={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=cu(process.env);return Object.assign({},lu,t)}function fu(){return cu(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++)pu.writeUInt32BE(Math.random()*Math.pow(2,32)>>>0,n*4);for(var n=0;n<t&&!(pu[n]>0);n++)n===t-1&&(pu[t-1]=1);return pu.toString("hex",0,t)}}var l$,TR,c$,pu,gR=E(()=>{l$=8,TR=16,c$=function(){function t(){this.generateTraceId=ER(TR),this.generateSpanId=ER(l$)}return t}(),pu=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 hu(t){var e=be($i()),n=be(typeof t=="number"?t:kt.now());return vu(e,n)}function h$(t){if(Ki(t))return t;if(typeof t=="number")return t<$i()?hu(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+=du),[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]*du+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 mu(t){return Ki(t)||typeof t=="number"||t instanceof Date}function vu(t,e){var n=[t[0]+e[0],t[1]+e[1]];return n[1]>=du&&(n[1]-=du,n[0]+=1),n}var NR,p$,d$,du,RR=E(()=>{Bf();NR=9,p$=6,d$=Math.pow(10,p$),du=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 yu,_u,A$,b$,x$,N$,R$,P$,$f,BR=E(()=>{w();Hi();Yf();yu="traceparent",_u="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,yu,u),a.traceState&&o.set(n,_u,a.traceState.serialize())}},t.prototype.extract=function(e,n,o){var a=o.get(n,yu);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,_u);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[yu,_u]},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 Su,Wf=E(()=>{w();Su=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 Su,this._localParentSampled=(a=e.localParentSampled)!==null&&a!==void 0?a:new zi,this._localParentNotSampled=(u=e.localParentNotSampled)!==null&&u!==void 0?u:new Su}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 Tu(t)?t.slice():t}function XR(t,e,n,o){n===void 0&&(n=0);var a;if(!(n>$$)){if(n++,Eu(t)||Eu(e)||JR(e))a=Qf(e);else if(Tu(t)){if(a=t.slice(),Tu(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(Eu(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 Tu(t){return Array.isArray(t)}function JR(t){return typeof t=="function"}function Wi(t){return!Eu(t)&&!Tu(t)&&!JR(t)&&typeof t=="object"}function Eu(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:()=>Su,AlwaysOnSampler:()=>zi,AnchoredClock:()=>HY,BindOnceFuture:()=>Br,CompositePropagator:()=>Ff,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>Rn,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>Nn,DEFAULT_ENVIRONMENT:()=>lu,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:()=>yu,TRACE_STATE_HEADER:()=>_u,TimeoutError:()=>ZR,TraceIdRatioBasedSampler:()=>C$,TraceState:()=>jf,TracesSamplerValues:()=>We,VERSION:()=>Vf,W3CBaggagePropagator:()=>wf,W3CTraceContextPropagator:()=>$f,_globalThis:()=>u$,addHrTimes:()=>vu,baggageUtils:()=>Vt,callWithTimeout:()=>W$,deleteRPCMetadata:()=>M$,getEnv:()=>q,getEnvWithoutDefaults:()=>fu,getRPCMetadata:()=>I$,getTimeOrigin:()=>$i,globalErrorHandler:()=>Ae,hexToBase64:()=>s$,hexToBinary:()=>Vr,hrTime:()=>hu,hrTimeDuration:()=>Gf,hrTimeToMicroseconds:()=>Bt,hrTimeToMilliseconds:()=>v$,hrTimeToNanoseconds:()=>qf,hrTimeToTimeStamp:()=>m$,internal:()=>Xi,isAttributeKey:()=>cR,isAttributeValue:()=>su,isTimeInput:()=>mu,isTimeInputHrTime:()=>Ki,isTracingSuppressed:()=>Ce,isUrlIgnored:()=>J$,isWrapped:()=>Q$,loggingErrorHandler:()=>Mf,merge:()=>Zf,millisToHrTime:()=>be,otperformance:()=>kt,parseEnvironment:()=>cu,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 gu(){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]=gu(),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,Ou,dP=E(()=>{pP();u8=function(){function t(){}return t.prototype.detect=function(e){return Promise.resolve(tp.detect(e))},t}(),Ou=new u8});var hP=E(()=>{dP()});var Au=E(()=>{ep();hP()});var Te,bu=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 Ru(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 Pu(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,xu,Nu,Qi,lp=E(()=>{MP=52,y8=2146435072,_8=1048575,sp=1023,xu=-sp+1,Nu=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 wu=E(()=>{});var S8,dr,Mu=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();wu();Mu();UP=function(){function t(e){this._shift=-e}return t.prototype.mapToIndex=function(e){if(e<Qi)return this._minNormalLowerBoundaryIndex();var n=Ru(e),o=this._rightShift(Pu(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=xu>>this._shift;return this._shift<2&&e--,e},t.prototype._maxNormalLowerBoundaryIndex=function(){return Nu>>this._shift},t.prototype._rightShift=function(e,n){return Math.floor(e*Math.pow(2,-n))},t}()});var VP,kP=E(()=>{lp();wu();Mu();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(Pu(e)===0){var n=Ru(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 xu<<this._scale},t.prototype._maxNormalLowerBoundaryIndex=function(){return(Nu+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();Mu();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,Iu,g8,O8,fp,A8,FP,HP=E(()=>{Mn();wn();w();qt();wP();qP();wu();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},Iu=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=Iu.combine(this._highLowAtScale(this.positive,this.scale,n),this._highLowAtScale(e.positive,e.scale,n)),a=Iu.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 Iu(0,-1);var a=n-o;return new Iu(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,Lu=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,Cu,Tp=E(()=>{Lu();bu();QP=function(t){return Ue.Default()},Cu=function(t){return Te.CUMULATIVE}});var gp,Op,ZP,P8,Uu,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))},Uu=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:Cu,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,Du,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))},Du=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}(Uu)});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:Cu}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 ku}var Fr,Vu,sw,lw,cw,fw,ku,pw,dw,hw,Bu=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)}}(),Vu=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}(Vu),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}(Vu),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}(Vu),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}(Vu),ku=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}(ku),dw=function(t){Fr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(ku),hw=function(t){Fr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(ku)});var mw,vw=E(()=>{qt();Bu();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 Gu,bp=E(()=>{qt();Gu=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,qu,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},qu=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,Fu,Rp=E(()=>{bu();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},Fu=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 qu(o),i._temporalMetricStorage=new Fu(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}(Gu)});function Pp(t,e){var n="";return t.unit!==e.unit&&(n+=" - Unit '"+t.unit+"' does not match '"+e.unit+`'
|
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((KZ,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((WZ,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=rh(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+`'
|
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+`'
|
@@ -48,15 +48,15 @@ ${O}`),v.pop(),`{${B}}`}case"number":return isFinite(f)?String(f):e?e(f):"null";
|
|
48
48
|
To resolve the conflict:`,wp(l,e))),u=s):A.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
50
|
`,Pp(l,e),`To resolve the conflict:
|
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();Bu();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();Bu();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 qu(o),i._temporalMetricStorage=new Fu(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}(Gu)});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 Hu,ju,X8,J8,qw,Fw=E(()=>{F();Hu=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())})},ju=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 Hu(this,void 0,void 0,function(){var n,o,a,u,i=this;return ju(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 Hu(i,void 0,void 0,function(){var l;return ju(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 Hu(this,void 0,void 0,function(){return ju(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 Hu(this,void 0,void 0,function(){return ju(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();Au();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"),ih()):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,Yu,Ln,$u=E(()=>{Q8=/[\^$\\.+?()[\]{}|]/g,Yu=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(()=>{$u();Kw=function(){function t(e){var n;this._nameFilter=new Yu((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(()=>{$u();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(()=>{$u();Cp();zw();Xw();Lu();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||Yu.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:()=>Uu,PeriodicExportingMetricReader:()=>Du,SumAggregation:()=>mp,TimeoutError:()=>Ji,View:()=>Jw});var Cn=E(()=>{bu();wn();Ap();ew();rw();ow();qt();$w();Lu();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"?Ku: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."),Ku)}function nK(t){return t!=null?t===Un.DELTA?Vp:t===Un.LOWMEMORY?kp:Ku:rK()}function iK(t){return t?.aggregationPreference?t.aggregationPreference:function(e){return Ue.Default()}}var eK,tK,Ku,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}}},Ku=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 Qu(t,e){return t.endsWith("/")||(t=t+"/"),t+e}function Zu(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 es(t){return typeof t=="number"?t<=0?ts(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?ts(e,Zw):e}function ts(t,e){return A.warn("Timeout must be greater than 0",t),e}function rs(t){var e=[429,502,503,504];return e.includes(t)}function ns(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,zu,Wu,Xu,Ju,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,zu=5,Wu=1e3,Xu=5e3,Ju=1.5});var Dn,is=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=es(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,os=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 us from"http";import*as ss 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:as({"Content-Type":n},t.headers),agent:t.agent},f=i.protocol==="http:"?us.request:ss.request,v=function(S,_){switch(S===void 0&&(S=zu),_===void 0&&(_=Wu),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&&rs(g.statusCode)&&S>0){var L=void 0;_=Ju*_,g.headers["retry-after"]?L=ns(g.headers["retry-after"]):L=Math.round(Math.random()*(Xu-_)+_),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:"?us.Agent:ss.Agent;return new n(as({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 as,Hp=E(()=>{w();qp();F();os();Hr();as=function(){return as=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},as.apply(this,arguments)}});var cK,lo,tM=E(()=>{is();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=zu),m===void 0&&(m=Wu),r=new XMLHttpRequest,r.open("POST",e);var f={Accept:"application/json","Content-Type":"application/json"};Object.entries(ls(ls({},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&&rs(r.status)&&p>0){var v=void 0;m=Ju*m,r.getResponseHeader("Retry-After")?v=ns(r.getResponseHeader("Retry-After")):v=Math.round(Math.random()*(Xu-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 ls,fK,jp=E(()=>{w();os();Hr();ls=function(){return ls=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},ls.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,cs,Yp,iM=E(()=>{is();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)}}(),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)},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,cs(cs({},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 fs={};it(fs,{CompressionAlgorithm:()=>bt,OTLPExporterBase:()=>Dn,OTLPExporterBrowserBase:()=>Yp,OTLPExporterError:()=>Fe,OTLPExporterNodeBase:()=>lo,appendResourcePathToUrl:()=>Qu,appendRootPathToUrlIfNeeded:()=>Zu,configureCompression:()=>so,configureExporterTimeout:()=>es,createHttpAgent:()=>uo,invalidTimeout:()=>ts,parseHeaders:()=>hr,sendWithHttp:()=>ao,sendWithXhr:()=>co});var fo=E(()=>{aM();is();os();Hr()});function ps(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 ds(t){var e=ps(t);return $p(e)}function Kp(t){var e=ps(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?ds:dK,encodeSpanContext:a?uM:Vr,encodeOptionalSpanContext:a?uM:sM}}var dK,hK,po=E(()=>{F();dK=typeof BigInt<"u"?Kp:qf;hK={encodeHrTime:ds,encodeSpanContext:Vr,encodeOptionalSpanContext:sM}});var hs,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"})(hs||(hs={}))});function Vn(t){return{name:t.name,version:t.version}}function xt(t){return Object.keys(t).map(function(e){return ms(e,t[e])})}function ms(t,e){return{key:t,value:vs(e)}}function vs(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(vs)}}:e==="object"&&t!=null?{kvlistValue:{values:Object.entries(t).map(function(n){var o=mK(n,2),a=o[0],u=o[1];return ms(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 ys=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,_s=E(()=>{fM();po();kn();ys();_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();ys()});function qn(t,e){return{resourceMetrics:t.map(function(n){return dM(n,e)})}}var Ss=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:vs(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 ms(e,t[e])})}var RK,mM,Es=E(()=>{po();kn();ys();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((Gae,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());_s();Ss();Es();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,Ts,OM,AM=E(()=>{_s();Ss();Es();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))}},Ts={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:()=>hs,JsonLogsSerializer:()=>OM,JsonMetricsSerializer:()=>Ts,JsonTraceSerializer:()=>gM,ProtobufLogsSerializer:()=>_M,ProtobufMetricsSerializer:()=>SM,ProtobufTraceSerializer:()=>EM,createExportLogsServiceRequest:()=>Fn,createExportMetricsServiceRequest:()=>qn,createExportTraceServiceRequest:()=>Gn,encodeAsLongBits:()=>ds,encodeAsString:()=>Kp,getOtlpEncoder:()=>mr,hrTimeToNanos:()=>ps,toLongBits:()=>$p});var gs=E(()=>{po();lM();_s();Ss();Es();TM();AM()});var bM,xM=E(()=>{bM="0.52.1"});var NM,Hn,RM,BK,GK,qK,FK,PM=E(()=>{F();Gp();fo();gs();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,Ts,"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?Zu(q().OTEL_EXPORTER_OTLP_METRICS_ENDPOINT):q().OTEL_EXPORTER_OTLP_ENDPOINT.length>0?Qu(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:()=>Ku,DeltaTemporalitySelector:()=>Vp,LowMemoryTemporalitySelector:()=>kp,OTLPMetricExporter:()=>FK,OTLPMetricExporterBase:()=>Bp});var LM=E(()=>{MM();Dp();Gp()});var CM=y(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.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)}Os.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(fs)),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(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.OTLPGRPCExporterNodeBase=void 0;var VM=(w(),Y(Ne)),kM=(F(),Y(Gr)),BM=(fo(),Y(fs)),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)}};As.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(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.VERSION=void 0;bs.VERSION="0.52.1"});var YM=y(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.OTLPMetricExporter=void 0;var az=(LM(),Y(IM)),nd=rd(),xs=(F(),Y(Gr)),uz=(gs(),Y(zp)),sz=jM(),lz=(fo(),Y(fs)),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),xs.baggageUtils.parseKeyPairsIntoRecord((0,xs.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,xs.getEnv)().OTEL_EXPORTER_OTLP_METRICS_ENDPOINT||(0,xs.getEnv)().OTEL_EXPORTER_OTLP_ENDPOINT||nd.DEFAULT_COLLECTOR_URL}},od=class extends az.OTLPMetricExporterBase{constructor(e){super(new id(e),e)}};Ns.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 KM=y(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.VERSION=void 0;Rs.VERSION="0.52.1"});var zM=y(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.OTLPTraceExporter=void 0;var Ps=(F(),Y(Gr)),ad=rd(),dz=(gs(),Y(zp)),hz=KM(),mz={"User-Agent":`OTel-OTLP-Exporter-JavaScript/${hz.VERSION}`},ud=class extends ad.OTLPGRPCExporterNodeBase{constructor(e={}){let n=Object.assign(Object.assign({},mz),Ps.baggageUtils.parseKeyPairsIntoRecord((0,Ps.getEnv)().OTEL_EXPORTER_OTLP_TRACES_HEADERS));super(e,n,"TraceExportService","/opentelemetry.proto.collector.trace.v1.TraceService/Export",dz.ProtobufTraceSerializer)}getDefaultUrl(e){return(0,ad.validateAndNormalizeUrl)(this.getUrlFromConfig(e))}getUrlFromConfig(e){return typeof e.url=="string"?e.url:(0,Ps.getEnv)().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT||(0,Ps.getEnv)().OTEL_EXPORTER_OTLP_ENDPOINT||ad.DEFAULT_COLLECTOR_URL}};ws.OTLPTraceExporter=ud});var WM=y($r=>{"use strict";var vz=$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]}),yz=$r&&$r.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&vz(e,t,n)};Object.defineProperty($r,"__esModule",{value:!0});yz(zM(),$r)});var XM,JM=E(()=>{XM="exception"});var _z,QM,Sz,sd,ld=E(()=>{w();F();Ct();JM();_z=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.")},QM=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},Sz=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):su(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=_z(Object.entries(e)),u=a.next();!u.done;u=a.next()){var i=QM(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++),mu(n)&&(mu(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,Sz([],QM(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 hu(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 vu(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(XM,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 Pt,ho=E(()=>{(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Pt||(Pt={}))});var Kr,Ms=E(()=>{ho();Kr=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:Pt.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}()});var Ft,Is=E(()=>{ho();Ft=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:Pt.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}()});var mo,cd=E(()=>{w();F();Ms();Is();mo=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 Ft),this._remoteParentSampled=(n=e.remoteParentSampled)!==null&&n!==void 0?n:new Ft,this._remoteParentNotSampled=(o=e.remoteParentNotSampled)!==null&&o!==void 0?o:new Kr,this._localParentSampled=(a=e.localParentSampled)!==null&&a!==void 0?a:new Ft,this._localParentNotSampled=(u=e.localParentNotSampled)!==null&&u!==void 0?u:new Kr}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 Ls,fd=E(()=>{w();ho();Ls=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?Pt.RECORD_AND_SAMPLED:Pt.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 Cs(){return{sampler:pd(Ez),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 pd(t){switch(t===void 0&&(t=q()),t.OTEL_TRACES_SAMPLER){case We.AlwaysOn:return new Ft;case We.AlwaysOff:return new Kr;case We.ParentBasedAlwaysOn:return new mo({root:new Ft});case We.ParentBasedAlwaysOff:return new mo({root:new Kr});case We.TraceIdRatio:return new Ls(ZM(t));case We.ParentBasedTraceIdRatio:return new mo({root:new Ls(ZM(t))});default:return A.error('OTEL_TRACES_SAMPLER value "'+t.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+Tz+'".'),new Ft}}function ZM(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 "+Yn+"."),Yn;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 "+Yn+"."),Yn):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 "+Yn+"."),Yn):e}var Ez,Tz,Yn,dd=E(()=>{w();F();Ms();Is();cd();fd();Ez=q(),Tz=We.AlwaysOn,Yn=1});function eI(t){var e={sampler:pd()},n=Cs(),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 tI(t){var e,n,o,a,u,i,r,s,l,c,p,m,f=Object.assign({},t.spanLimits),v=fu();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 hd=E(()=>{dd();F()});var rI,nI=E(()=>{w();F();rI=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 gz,vo,iI=E(()=>{nI();gz=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)}}(),vo=function(t){gz(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onShutdown=function(){},e}(rI)});function oI(t){return function(){for(var n=0;n<t/4;n++)Us.writeUInt32BE(Math.random()*Math.pow(2,32)>>>0,n*4);for(var n=0;n<t&&!(Us[n]>0);n++)n===t-1&&(Us[t-1]=1);return Us.toString("hex",0,t)}}var Oz,aI,md,Us,uI=E(()=>{Oz=8,aI=16,md=function(){function t(){this.generateTraceId=oI(aI),this.generateSpanId=oI(Oz)}return t}(),Us=Buffer.allocUnsafe(aI)});var sI=E(()=>{iI();uI()});var Ds=E(()=>{sI()});var vd,lI=E(()=>{w();F();ld();hd();Ds();vd=function(){function t(e,n,o){this._tracerProvider=o;var a=eI(n);this._sampler=a.sampler,this._generalLimits=a.generalLimits,this._spanLimits=a.spanLimits,this._idGenerator=n.idGenerator||new md,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(oh);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 Vs,cI,fI=E(()=>{F();Vs=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.")},cI=function(){function t(e){this._spanProcessors=e}return t.prototype.forceFlush=function(){var e,n,o=[];try{for(var a=Vs(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=Vs(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=Vs(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=Vs(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 yd,_d=E(()=>{yd=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,Az,pI=E(()=>{w();F();Au();yo();dd();fI();_d();Ds();hd();(function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"})(yr||(yr={}));Az=function(){function t(e){e===void 0&&(e={});var n;this._registeredSpanProcessors=[],this._tracers=new Map;var o=Zf({},Cs(),tI(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 vo(a);this.activeSpanProcessor=u}else this.activeSpanProcessor=new yd}return t.prototype.getTracer=function(e,n,o){var a=e+"@"+(n||"")+":"+(o?.schemaUrl||"");return this._tracers.has(a)||this._tracers.set(a,new vd({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 cI(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 bz,xz,dI=E(()=>{F();bz=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.")},xz=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=bz(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 Nz,Rz,Pz,hI=E(()=>{F();Nz=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},Rz=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))},Pz=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,Rz([],Nz(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 mI=E(()=>{});var wz,Mz,Iz,vI=E(()=>{w();F();wz=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())})},Mz=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}}},Iz=function(){function t(e){this._exporter=e,this._shutdownOnce=new Br(this._shutdown,this),this._unresolvedExports=new Set}return t.prototype.forceFlush=function(){return wz(this,void 0,void 0,function(){return Mz(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 yI=E(()=>{});var _I=E(()=>{});var SI=E(()=>{});var EI=E(()=>{});var TI=E(()=>{});var Sd={};it(Sd,{AlwaysOffSampler:()=>Kr,AlwaysOnSampler:()=>Ft,BasicTracerProvider:()=>Az,BatchSpanProcessor:()=>vo,ConsoleSpanExporter:()=>xz,ForceFlushState:()=>yr,InMemorySpanExporter:()=>Pz,NoopSpanProcessor:()=>yd,ParentBasedSampler:()=>mo,RandomIdGenerator:()=>md,SamplingDecision:()=>Pt,SimpleSpanProcessor:()=>Iz,Span:()=>sd,TraceIdRatioBasedSampler:()=>Ls,Tracer:()=>vd});var yo=E(()=>{lI();pI();Ds();dI();hI();mI();vI();yI();_d();Ms();Is();cd();fd();ho();ld();_I();SI();EI();TI()});var Td=y(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.AbstractAsyncHooksContextManager=void 0;var Lz=M("events"),Cz=["addListener","on","once","prependListener","prependOnceListener"],Ed=class{constructor(){this._kOtListeners=Symbol("OtListeners"),this._wrapped=!1}bind(e,n){return n instanceof Lz.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),Cz.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]}};ks.AbstractAsyncHooksContextManager=Ed});var gI=y(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.AsyncHooksContextManager=void 0;var Uz=(w(),Y(Ne)),Dz=M("async_hooks"),Vz=Td(),gd=class extends Vz.AbstractAsyncHooksContextManager{constructor(){super(),this._contexts=new Map,this._stack=[],this._asyncHook=Dz.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:Uz.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()}};Bs.AsyncHooksContextManager=gd});var OI=y(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.AsyncLocalStorageContextManager=void 0;var kz=(w(),Y(Ne)),Bz=M("async_hooks"),Gz=Td(),Od=class extends Gz.AbstractAsyncHooksContextManager{constructor(){super(),this._asyncLocalStorage=new Bz.AsyncLocalStorage}active(){var e;return(e=this._asyncLocalStorage.getStore())!==null&&e!==void 0?e:kz.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}};Gs.AsyncLocalStorageContextManager=Od});var AI=y($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.AsyncLocalStorageContextManager=$n.AsyncHooksContextManager=void 0;var qz=gI();Object.defineProperty($n,"AsyncHooksContextManager",{enumerable:!0,get:function(){return qz.AsyncHooksContextManager}});var Fz=OI();Object.defineProperty($n,"AsyncLocalStorageContextManager",{enumerable:!0,get:function(){return Fz.AsyncLocalStorageContextManager}})});var Kn,Ad=E(()=>{w();Kn=Qr("OpenTelemetry Context Key B3 Debug Flag")});var zr,_o,So,Eo,bd,To,go=E(()=>{zr="b3",_o="x-b3-traceid",So="x-b3-spanid",Eo="x-b3-sampled",bd="x-b3-parentspanid",To="x-b3-flags"});function Yz(t){return t===J.SAMPLED||t===J.NONE}function $z(t){return Array.isArray(t)?t[0]:t}function qs(t,e,n){var o=e.get(t,n);return $z(o)}function Kz(t,e){var n=qs(t,e,_o);return typeof n=="string"?n.padStart(32,"0"):""}function zz(t,e){var n=qs(t,e,So);return typeof n=="string"?n:""}function bI(t,e){var n=qs(t,e,To);return n==="1"?"1":void 0}function Wz(t,e){var n=qs(t,e,Eo),o=bI(t,e);if(o==="1"||Hz.has(n))return J.SAMPLED;if(n===void 0||jz.has(n))return J.NONE}var Hz,jz,xI,NI=E(()=>{w();F();Ad();go();Hz=new Set([!0,"true","True","1",1]),jz=new Set([!1,"false","False","0",0]);xI=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(Kn);o.set(n,_o,a.traceId),o.set(n,So,a.spanId),u==="1"?o.set(n,To,u):a.traceFlags!==void 0&&o.set(n,Eo,(J.SAMPLED&a.traceFlags)===J.SAMPLED?"1":"0")}},t.prototype.extract=function(e,n,o){var a=Kz(n,o),u=zz(n,o),i=Wz(n,o),r=bI(n,o);return Yt(a)&&Io(u)&&Yz(i)?(e=e.setValue(Kn,r),X.setSpanContext(e,{traceId:a,spanId:u,isRemote:!0,traceFlags:i})):e},t.prototype.fields=function(){return[_o,So,To,Eo,bd]},t}()});function tW(t){return t.length===32?t:""+Qz+t}function rW(t){return t&&Zz.has(t)?J.SAMPLED:J.NONE}var Xz,Jz,Qz,Zz,eW,RI,PI=E(()=>{w();F();Ad();go();Xz=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},Jz=/((?:[0-9a-f]{16}){1,2})-([0-9a-f]{16})(?:-([01d](?![0-9a-f])))?(?:-([0-9a-f]{16}))?/,Qz="0".repeat(16),Zz=new Set(["d","1"]),eW="d";RI=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(Kn)||a.traceFlags&1,i=a.traceId+"-"+a.spanId+"-"+u;o.set(n,zr,i)}},t.prototype.extract=function(e,n,o){var a=o.get(n,zr),u=Array.isArray(a)?a[0]:a;if(typeof u!="string")return e;var i=u.match(Jz);if(!i)return e;var r=Xz(i,4),s=r[1],l=r[2],c=r[3],p=tW(s);if(!Yt(p)||!Io(l))return e;var m=rW(c);return c===eW&&(e=e.setValue(Kn,c)),X.setSpanContext(e,{traceId:p,spanId:l,isRemote:!0,traceFlags:m})},t.prototype.fields=function(){return[zr]},t}()});var Oo,xd=E(()=>{(function(t){t[t.SINGLE_HEADER=0]="SINGLE_HEADER",t[t.MULTI_HEADER=1]="MULTI_HEADER"})(Oo||(Oo={}))});var nW,wI=E(()=>{F();NI();PI();go();xd();nW=function(){function t(e){e===void 0&&(e={}),this._b3MultiPropagator=new xI,this._b3SinglePropagator=new RI,e.injectEncoding===Oo.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,zr),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 MI={};it(MI,{B3InjectEncoding:()=>Oo,B3Propagator:()=>nW,B3_CONTEXT_HEADER:()=>zr,X_B3_FLAGS:()=>To,X_B3_PARENT_SPAN_ID:()=>bd,X_B3_SAMPLED:()=>Eo,X_B3_SPAN_ID:()=>So,X_B3_TRACE_ID:()=>_o});var II=E(()=>{wI();go();xd()});var Ao=y((wle,LI)=>{var iW="2.0.0",oW=Number.MAX_SAFE_INTEGER||9007199254740991,aW=16,uW=256-6,sW=["major","premajor","minor","preminor","patch","prepatch","prerelease"];LI.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:aW,MAX_SAFE_BUILD_LENGTH:uW,MAX_SAFE_INTEGER:oW,RELEASE_TYPES:sW,SEMVER_SPEC_VERSION:iW,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var bo=y((Mle,CI)=>{var lW=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};CI.exports=lW});var zn=y((Ht,UI)=>{var{MAX_SAFE_COMPONENT_LENGTH:Nd,MAX_SAFE_BUILD_LENGTH:cW,MAX_LENGTH:fW}=Ao(),pW=bo();Ht=UI.exports={};var dW=Ht.re=[],hW=Ht.safeRe=[],x=Ht.src=[],N=Ht.t={},mW=0,Rd="[a-zA-Z0-9-]",vW=[["\\s",1],["\\d",fW],[Rd,cW]],yW=t=>{for(let[e,n]of vW)t=t.split(`${e}*`).join(`${e}{0,${n}}`).split(`${e}+`).join(`${e}{1,${n}}`);return t},D=(t,e,n)=>{let o=yW(e),a=mW++;pW(t,a,e),N[t]=a,x[a]=e,dW[a]=new RegExp(e,n?"g":void 0),hW[a]=new RegExp(o,n?"g":void 0)};D("NUMERICIDENTIFIER","0|[1-9]\\d*");D("NUMERICIDENTIFIERLOOSE","\\d+");D("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Rd}*`);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",`${Rd}+`);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,${Nd}})(?:\\.(\\d{1,${Nd}}))?(?:\\.(\\d{1,${Nd}}))?`);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);Ht.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);Ht.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);Ht.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 Fs=y((Ile,DI)=>{var _W=Object.freeze({loose:!0}),SW=Object.freeze({}),EW=t=>t?typeof t!="object"?_W:t:SW;DI.exports=EW});var Pd=y((Lle,BI)=>{var VI=/^[0-9]+$/,kI=(t,e)=>{let n=VI.test(t),o=VI.test(e);return n&&o&&(t=+t,e=+e),t===e?0:n&&!o?-1:o&&!n?1:t<e?-1:1},TW=(t,e)=>kI(e,t);BI.exports={compareIdentifiers:kI,rcompareIdentifiers:TW}});var xe=y((Cle,HI)=>{var Hs=bo(),{MAX_LENGTH:GI,MAX_SAFE_INTEGER:js}=Ao(),{safeRe:qI,t:FI}=zn(),gW=Fs(),{compareIdentifiers:Wn}=Pd(),Je=class{constructor(e,n){if(n=gW(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>GI)throw new TypeError(`version is longer than ${GI} characters`);Hs("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let o=e.trim().match(n.loose?qI[FI.LOOSE]:qI[FI.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>js||this.major<0)throw new TypeError("Invalid major version");if(this.minor>js||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>js||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<js)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(Hs("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(Hs("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(Hs("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}};HI.exports=Je});var Wr=y((Ule,YI)=>{var jI=xe(),OW=(t,e,n=!1)=>{if(t instanceof jI)return t;try{return new jI(t,e)}catch(o){if(!n)return null;throw o}};YI.exports=OW});var KI=y((Dle,$I)=>{var AW=Wr(),bW=(t,e)=>{let n=AW(t,e);return n?n.version:null};$I.exports=bW});var WI=y((Vle,zI)=>{var xW=Wr(),NW=(t,e)=>{let n=xW(t.trim().replace(/^[=v]+/,""),e);return n?n.version:null};zI.exports=NW});var QI=y((kle,JI)=>{var XI=xe(),RW=(t,e,n,o,a)=>{typeof n=="string"&&(a=o,o=n,n=void 0);try{return new XI(t instanceof XI?t.version:t,n).inc(e,o,a).version}catch{return null}};JI.exports=RW});var tL=y((Ble,eL)=>{var ZI=Wr(),PW=(t,e)=>{let n=ZI(t,null,!0),o=ZI(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"};eL.exports=PW});var nL=y((Gle,rL)=>{var wW=xe(),MW=(t,e)=>new wW(t,e).major;rL.exports=MW});var oL=y((qle,iL)=>{var IW=xe(),LW=(t,e)=>new IW(t,e).minor;iL.exports=LW});var uL=y((Fle,aL)=>{var CW=xe(),UW=(t,e)=>new CW(t,e).patch;aL.exports=UW});var lL=y((Hle,sL)=>{var DW=Wr(),VW=(t,e)=>{let n=DW(t,e);return n&&n.prerelease.length?n.prerelease:null};sL.exports=VW});var rt=y((jle,fL)=>{var cL=xe(),kW=(t,e,n)=>new cL(t,n).compare(new cL(e,n));fL.exports=kW});var dL=y((Yle,pL)=>{var BW=rt(),GW=(t,e,n)=>BW(e,t,n);pL.exports=GW});var mL=y(($le,hL)=>{var qW=rt(),FW=(t,e)=>qW(t,e,!0);hL.exports=FW});var Ys=y((Kle,yL)=>{var vL=xe(),HW=(t,e,n)=>{let o=new vL(t,n),a=new vL(e,n);return o.compare(a)||o.compareBuild(a)};yL.exports=HW});var SL=y((zle,_L)=>{var jW=Ys(),YW=(t,e)=>t.sort((n,o)=>jW(n,o,e));_L.exports=YW});var TL=y((Wle,EL)=>{var $W=Ys(),KW=(t,e)=>t.sort((n,o)=>$W(o,n,e));EL.exports=KW});var xo=y((Xle,gL)=>{var zW=rt(),WW=(t,e,n)=>zW(t,e,n)>0;gL.exports=WW});var $s=y((Jle,OL)=>{var XW=rt(),JW=(t,e,n)=>XW(t,e,n)<0;OL.exports=JW});var wd=y((Qle,AL)=>{var QW=rt(),ZW=(t,e,n)=>QW(t,e,n)===0;AL.exports=ZW});var Md=y((Zle,bL)=>{var eX=rt(),tX=(t,e,n)=>eX(t,e,n)!==0;bL.exports=tX});var Ks=y((ece,xL)=>{var rX=rt(),nX=(t,e,n)=>rX(t,e,n)>=0;xL.exports=nX});var zs=y((tce,NL)=>{var iX=rt(),oX=(t,e,n)=>iX(t,e,n)<=0;NL.exports=oX});var Id=y((rce,RL)=>{var aX=wd(),uX=Md(),sX=xo(),lX=Ks(),cX=$s(),fX=zs(),pX=(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 aX(t,n,o);case"!=":return uX(t,n,o);case">":return sX(t,n,o);case">=":return lX(t,n,o);case"<":return cX(t,n,o);case"<=":return fX(t,n,o);default:throw new TypeError(`Invalid operator: ${e}`)}};RL.exports=pX});var wL=y((nce,PL)=>{var dX=xe(),hX=Wr(),{safeRe:Ws,t:Xs}=zn(),mX=(t,e)=>{if(t instanceof dX)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?Ws[Xs.COERCEFULL]:Ws[Xs.COERCE]);else{let s=e.includePrerelease?Ws[Xs.COERCERTLFULL]:Ws[Xs.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 hX(`${o}.${a}.${u}${i}${r}`,e)};PL.exports=mX});var IL=y((ice,ML)=>{var Ld=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}};ML.exports=Ld});var nt=y((oce,DL)=>{var Xr=class{constructor(e,n){if(n=yX(n),e instanceof Xr)return e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease?e:new Xr(e.raw,n);if(e instanceof Cd)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=>!CL(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&&AX(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&&gX)|(this.options.loose&&OX))+":"+e,a=LL.get(o);if(a)return a;let u=this.options.loose,i=u?He[De.HYPHENRANGELOOSE]:He[De.HYPHENRANGE];e=e.replace(i,CX(this.options.includePrerelease)),te("hyphen replace",e),e=e.replace(He[De.COMPARATORTRIM],SX),te("comparator trim",e),e=e.replace(He[De.TILDETRIM],EX),te("tilde trim",e),e=e.replace(He[De.CARETTRIM],TX),te("caret trim",e);let r=e.split(" ").map(p=>bX(p,this.options)).join(" ").split(/\s+/).map(p=>LX(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 Cd(p,this.options));for(let p of l){if(CL(p))return[p];s.set(p.value,p)}s.size>1&&s.has("")&&s.delete("");let c=[...s.values()];return LL.set(o,c),c}intersects(e,n){if(!(e instanceof Xr))throw new TypeError("a Range is required");return this.set.some(o=>UL(o,n)&&e.set.some(a=>UL(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 _X(e,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(UX(this.set[n],e,this.options))return!0;return!1}};DL.exports=Xr;var vX=IL(),LL=new vX,yX=Fs(),Cd=No(),te=bo(),_X=xe(),{safeRe:He,t:De,comparatorTrimReplace:SX,tildeTrimReplace:EX,caretTrimReplace:TX}=zn(),{FLAG_INCLUDE_PRERELEASE:gX,FLAG_LOOSE:OX}=Ao(),CL=t=>t.value==="<0.0.0-0",AX=t=>t.value==="",UL=(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},bX=(t,e)=>(te("comp",t,e),t=RX(t,e),te("caret",t),t=xX(t,e),te("tildes",t),t=wX(t,e),te("xrange",t),t=IX(t,e),te("stars",t),t),Ve=t=>!t||t.toLowerCase()==="x"||t==="*",xX=(t,e)=>t.trim().split(/\s+/).map(n=>NX(n,e)).join(" "),NX=(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})},RX=(t,e)=>t.trim().split(/\s+/).map(n=>PX(n,e)).join(" "),PX=(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})},wX=(t,e)=>(te("replaceXRanges",t,e),t.split(/\s+/).map(n=>MX(n,e)).join(" ")),MX=(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})},IX=(t,e)=>(te("replaceStars",t,e),t.trim().replace(He[De.STAR],"")),LX=(t,e)=>(te("replaceGTE0",t,e),t.trim().replace(He[e.includePrerelease?De.GTE0PRE:De.GTE0],"")),CX=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()),UX=(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!==Cd.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 No=y((ace,FL)=>{var Ro=Symbol("SemVer ANY"),Xn=class{static get ANY(){return Ro}constructor(e,n){if(n=VL(n),e instanceof Xn){if(e.loose===!!n.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Dd("comparator",e,n),this.options=n,this.loose=!!n.loose,this.parse(e),this.semver===Ro?this.value="":this.value=this.operator+this.semver.version,Dd("comp",this)}parse(e){let n=this.options.loose?kL[BL.COMPARATORLOOSE]:kL[BL.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 GL(o[2],this.options.loose):this.semver=Ro}toString(){return this.value}test(e){if(Dd("Comparator.test",e,this.options.loose),this.semver===Ro||e===Ro)return!0;if(typeof e=="string")try{e=new GL(e,this.options)}catch{return!1}return Ud(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 qL(e.value,n).test(this.value):e.operator===""?e.value===""?!0:new qL(this.value,n).test(e.semver):(n=VL(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("=")||Ud(this.semver,"<",e.semver,n)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Ud(this.semver,">",e.semver,n)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};FL.exports=Xn;var VL=Fs(),{safeRe:kL,t:BL}=zn(),Ud=Id(),Dd=bo(),GL=xe(),qL=nt()});var Po=y((uce,HL)=>{var DX=nt(),VX=(t,e,n)=>{try{e=new DX(e,n)}catch{return!1}return e.test(t)};HL.exports=VX});var YL=y((sce,jL)=>{var kX=nt(),BX=(t,e)=>new kX(t,e).set.map(n=>n.map(o=>o.value).join(" ").trim().split(" "));jL.exports=BX});var KL=y((lce,$L)=>{var GX=xe(),qX=nt(),FX=(t,e,n)=>{let o=null,a=null,u=null;try{u=new qX(e,n)}catch{return null}return t.forEach(i=>{u.test(i)&&(!o||a.compare(i)===-1)&&(o=i,a=new GX(o,n))}),o};$L.exports=FX});var WL=y((cce,zL)=>{var HX=xe(),jX=nt(),YX=(t,e,n)=>{let o=null,a=null,u=null;try{u=new jX(e,n)}catch{return null}return t.forEach(i=>{u.test(i)&&(!o||a.compare(i)===1)&&(o=i,a=new HX(o,n))}),o};zL.exports=YX});var QL=y((fce,JL)=>{var Vd=xe(),$X=nt(),XL=xo(),KX=(t,e)=>{t=new $X(t,e);let n=new Vd("0.0.0");if(t.test(n)||(n=new Vd("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 Vd(i.semver.version);switch(i.operator){case">":r.prerelease.length===0?r.patch++:r.prerelease.push(0),r.raw=r.format();case"":case">=":(!u||XL(r,u))&&(u=r);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${i.operator}`)}}),u&&(!n||XL(n,u))&&(n=u)}return n&&t.test(n)?n:null};JL.exports=KX});var e1=y((pce,ZL)=>{var zX=nt(),WX=(t,e)=>{try{return new zX(t,e).range||"*"}catch{return null}};ZL.exports=WX});var Js=y((dce,i1)=>{var XX=xe(),n1=No(),{ANY:JX}=n1,QX=nt(),ZX=Po(),t1=xo(),r1=$s(),e9=zs(),t9=Ks(),r9=(t,e,n,o)=>{t=new XX(t,o),e=new QX(e,o);let a,u,i,r,s;switch(n){case">":a=t1,u=e9,i=r1,r=">",s=">=";break;case"<":a=r1,u=t9,i=t1,r="<",s="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ZX(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===JX&&(f=new n1(">=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};i1.exports=r9});var a1=y((hce,o1)=>{var n9=Js(),i9=(t,e,n)=>n9(t,e,">",n);o1.exports=i9});var s1=y((mce,u1)=>{var o9=Js(),a9=(t,e,n)=>o9(t,e,"<",n);u1.exports=a9});var f1=y((vce,c1)=>{var l1=nt(),u9=(t,e,n)=>(t=new l1(t,n),e=new l1(e,n),t.intersects(e,n));c1.exports=u9});var d1=y((yce,p1)=>{var s9=Po(),l9=rt();p1.exports=(t,e,n)=>{let o=[],a=null,u=null,i=t.sort((c,p)=>l9(c,p,n));for(let c of i)s9(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 S1=y((_ce,_1)=>{var h1=nt(),Bd=No(),{ANY:kd}=Bd,wo=Po(),Gd=rt(),c9=(t,e,n={})=>{if(t===e)return!0;t=new h1(t,n),e=new h1(e,n);let o=!1;e:for(let a of t.set){for(let u of e.set){let i=p9(a,u,n);if(o=o||i!==null,i)continue e}if(o)return!1}return!0},f9=[new Bd(">=0.0.0-0")],m1=[new Bd(">=0.0.0")],p9=(t,e,n)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===kd){if(e.length===1&&e[0].semver===kd)return!0;n.includePrerelease?t=f9:t=m1}if(e.length===1&&e[0].semver===kd){if(n.includePrerelease)return!0;e=m1}let o=new Set,a,u;for(let f of t)f.operator===">"||f.operator===">="?a=v1(a,f,n):f.operator==="<"||f.operator==="<="?u=y1(u,f,n):o.add(f.semver);if(o.size>1)return null;let i;if(a&&u){if(i=Gd(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&&!wo(f,String(a),n)||u&&!wo(f,String(u),n))return null;for(let v of e)if(!wo(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=v1(a,f,n),r===f&&r!==a)return!1}else if(a.operator===">="&&!wo(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=y1(u,f,n),s===f&&s!==u)return!1}else if(u.operator==="<="&&!wo(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)},v1=(t,e,n)=>{if(!t)return e;let o=Gd(t.semver,e.semver,n);return o>0?t:o<0||e.operator===">"&&t.operator===">="?e:t},y1=(t,e,n)=>{if(!t)return e;let o=Gd(t.semver,e.semver,n);return o<0?t:o>0||e.operator==="<"&&t.operator==="<="?e:t};_1.exports=c9});var O1=y((Sce,g1)=>{var qd=zn(),E1=Ao(),d9=xe(),T1=Pd(),h9=Wr(),m9=KI(),v9=WI(),y9=QI(),_9=tL(),S9=nL(),E9=oL(),T9=uL(),g9=lL(),O9=rt(),A9=dL(),b9=mL(),x9=Ys(),N9=SL(),R9=TL(),P9=xo(),w9=$s(),M9=wd(),I9=Md(),L9=Ks(),C9=zs(),U9=Id(),D9=wL(),V9=No(),k9=nt(),B9=Po(),G9=YL(),q9=KL(),F9=WL(),H9=QL(),j9=e1(),Y9=Js(),$9=a1(),K9=s1(),z9=f1(),W9=d1(),X9=S1();g1.exports={parse:h9,valid:m9,clean:v9,inc:y9,diff:_9,major:S9,minor:E9,patch:T9,prerelease:g9,compare:O9,rcompare:A9,compareLoose:b9,compareBuild:x9,sort:N9,rsort:R9,gt:P9,lt:w9,eq:M9,neq:I9,gte:L9,lte:C9,cmp:U9,coerce:D9,Comparator:V9,Range:k9,satisfies:B9,toComparators:G9,maxSatisfying:q9,minSatisfying:F9,minVersion:H9,validRange:j9,outside:Y9,gtr:$9,ltr:K9,intersects:z9,simplifyRange:W9,subset:X9,SemVer:d9,re:qd.re,src:qd.src,tokens:qd.t,SEMVER_SPEC_VERSION:E1.SEMVER_SPEC_VERSION,RELEASE_TYPES:E1.RELEASE_TYPES,compareIdentifiers:T1.compareIdentifiers,rcompareIdentifiers:T1.rcompareIdentifiers}});function Z9(t){var e=decodeURIComponent(t).split(":");if(e.length!==4)return null;var n=b1(e,4),o=n[0],a=n[1],u=n[3],i=o.padStart(32,"0"),r=a.padStart(16,"0"),s=Q9.test(u)?parseInt(u,16)&1:1;return{traceId:i,spanId:r,isRemote:!0,traceFlags:s}}var A1,b1,x1,Fd,J9,Q9,N1=E(()=>{w();F();A1=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.")},b1=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},x1="uber-trace-id",Fd="uberctx",J9=function(){function t(e){typeof e=="string"?(this._jaegerTraceHeader=e,this._jaegerBaggageHeaderPrefix=Fd):(this._jaegerTraceHeader=e?.customTraceHeader||x1,this._jaegerBaggageHeaderPrefix=e?.customBaggageHeaderPrefix||Fd)}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=A1(r.getAllEntries()),c=l.next();!c.done;c=l.next()){var p=b1(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=Z9(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=A1(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}(),Q9=/^[0-9a-f]{1,2}$/i});var R1={};it(R1,{JaegerPropagator:()=>J9,UBER_BAGGAGE_HEADER_PREFIX:()=>Fd,UBER_TRACE_ID_HEADER:()=>x1});var P1=E(()=>{N1()});var I1=y(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});el.NodeTracerProvider=void 0;var w1=AI(),Qs=(II(),Y(MI)),M1=(yo(),Y(Sd)),e7=O1(),t7=(P1(),Y(R1)),Zs=class extends M1.BasicTracerProvider{constructor(e={}){super(e)}register(e={}){if(e.contextManager===void 0){let n=e7.gte(process.version,"14.8.0")?w1.AsyncLocalStorageContextManager:w1.AsyncHooksContextManager;e.contextManager=new n,e.contextManager.enable()}super.register(e)}};el.NodeTracerProvider=Zs;Zs._registeredPropagators=new Map([...M1.BasicTracerProvider._registeredPropagators,["b3",()=>new Qs.B3Propagator({injectEncoding:Qs.B3InjectEncoding.SINGLE_HEADER})],["b3multi",()=>new Qs.B3Propagator({injectEncoding:Qs.B3InjectEncoding.MULTI_HEADER})],["jaeger",()=>new t7.JaegerPropagator]])});var C1=y(_r=>{"use strict";var r7=_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]}),L1=_r&&_r.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&r7(e,t,n)};Object.defineProperty(_r,"__esModule",{value:!0});L1(I1(),_r);L1((yo(),Y(Sd)),_r)});var $d=y(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});nl.PrometheusSerializer=void 0;var n7=(w(),Y(Ne)),Jr=(Cn(),Y(Up)),U1=(F(),Y(Gr));function rl(t){return t.replace(/\\/g,"\\\\").replace(/\n/g,"\\n")}function D1(t=""){return typeof t!="string"&&(t=JSON.stringify(t)),rl(t).replace(/"/g,'\\"')}var i7=/[^a-z0-9_]/gi,o7=/_{2,}/g;function jd(t){return t.replace(i7,"_").replace(o7,"_")}function Hd(t,e){return!t.endsWith("_total")&&e===Jr.InstrumentType.COUNTER&&(t=t+"_total"),t}function a7(t){return Number.isNaN(t)?"NaN":Number.isFinite(t)?`${t}`:t<0?"-Inf":"+Inf"}function u7(t){switch(t.dataPointType){case Jr.DataPointType.SUM:return t.isMonotonic?"counter":"gauge";case Jr.DataPointType.GAUGE:return"gauge";case Jr.DataPointType.HISTOGRAM:return"histogram";default:return"untyped"}}function tl(t,e,n,o,a){let u=!1,i="";for(let[r,s]of Object.entries(e)){let l=jd(r);u=!0,i+=`${i.length>0?",":""}${l}="${D1(s)}"`}if(a)for(let[r,s]of Object.entries(a)){let l=jd(r);u=!0,i+=`${i.length>0?",":""}${l}="${D1(s)}"`}return u&&(t+=`{${i}}`),`${t} ${a7(n)}${o!==void 0?" "+String(o):""}
|
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"),ih()):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((Gae,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 KM=y(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.VERSION=void 0;Ps.VERSION="0.52.1"});var zM=y(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.OTLPTraceExporter=void 0;var ws=(F(),Y(Gr)),ad=rd(),dz=(Os(),Y(zp)),hz=KM(),mz={"User-Agent":`OTel-OTLP-Exporter-JavaScript/${hz.VERSION}`},ud=class extends ad.OTLPGRPCExporterNodeBase{constructor(e={}){let n=Object.assign(Object.assign({},mz),ws.baggageUtils.parseKeyPairsIntoRecord((0,ws.getEnv)().OTEL_EXPORTER_OTLP_TRACES_HEADERS));super(e,n,"TraceExportService","/opentelemetry.proto.collector.trace.v1.TraceService/Export",dz.ProtobufTraceSerializer)}getDefaultUrl(e){return(0,ad.validateAndNormalizeUrl)(this.getUrlFromConfig(e))}getUrlFromConfig(e){return typeof e.url=="string"?e.url:(0,ws.getEnv)().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT||(0,ws.getEnv)().OTEL_EXPORTER_OTLP_ENDPOINT||ad.DEFAULT_COLLECTOR_URL}};Ms.OTLPTraceExporter=ud});var WM=y($r=>{"use strict";var vz=$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]}),yz=$r&&$r.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&vz(e,t,n)};Object.defineProperty($r,"__esModule",{value:!0});yz(zM(),$r)});var XM,JM=E(()=>{XM="exception"});var _z,QM,Sz,sd,ld=E(()=>{w();F();Ct();JM();_z=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.")},QM=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},Sz=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=_z(Object.entries(e)),u=a.next();!u.done;u=a.next()){var i=QM(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,Sz([],QM(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(XM,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 Pt,ho=E(()=>{(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Pt||(Pt={}))});var Kr,Is=E(()=>{ho();Kr=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:Pt.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}()});var Ft,Ls=E(()=>{ho();Ft=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:Pt.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}()});var mo,cd=E(()=>{w();F();Is();Ls();mo=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 Ft),this._remoteParentSampled=(n=e.remoteParentSampled)!==null&&n!==void 0?n:new Ft,this._remoteParentNotSampled=(o=e.remoteParentNotSampled)!==null&&o!==void 0?o:new Kr,this._localParentSampled=(a=e.localParentSampled)!==null&&a!==void 0?a:new Ft,this._localParentNotSampled=(u=e.localParentNotSampled)!==null&&u!==void 0?u:new Kr}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 Cs,fd=E(()=>{w();ho();Cs=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?Pt.RECORD_AND_SAMPLED:Pt.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 Us(){return{sampler:pd(Ez),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 pd(t){switch(t===void 0&&(t=q()),t.OTEL_TRACES_SAMPLER){case We.AlwaysOn:return new Ft;case We.AlwaysOff:return new Kr;case We.ParentBasedAlwaysOn:return new mo({root:new Ft});case We.ParentBasedAlwaysOff:return new mo({root:new Kr});case We.TraceIdRatio:return new Cs(ZM(t));case We.ParentBasedTraceIdRatio:return new mo({root:new Cs(ZM(t))});default:return A.error('OTEL_TRACES_SAMPLER value "'+t.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+Tz+'".'),new Ft}}function ZM(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 "+Yn+"."),Yn;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 "+Yn+"."),Yn):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 "+Yn+"."),Yn):e}var Ez,Tz,Yn,dd=E(()=>{w();F();Is();Ls();cd();fd();Ez=q(),Tz=We.AlwaysOn,Yn=1});function eI(t){var e={sampler:pd()},n=Us(),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 tI(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 hd=E(()=>{dd();F()});var rI,nI=E(()=>{w();F();rI=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 gz,vo,iI=E(()=>{nI();gz=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)}}(),vo=function(t){gz(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onShutdown=function(){},e}(rI)});function oI(t){return function(){for(var n=0;n<t/4;n++)Ds.writeUInt32BE(Math.random()*Math.pow(2,32)>>>0,n*4);for(var n=0;n<t&&!(Ds[n]>0);n++)n===t-1&&(Ds[t-1]=1);return Ds.toString("hex",0,t)}}var Oz,aI,md,Ds,uI=E(()=>{Oz=8,aI=16,md=function(){function t(){this.generateTraceId=oI(aI),this.generateSpanId=oI(Oz)}return t}(),Ds=Buffer.allocUnsafe(aI)});var sI=E(()=>{iI();uI()});var Vs=E(()=>{sI()});var vd,lI=E(()=>{w();F();ld();hd();Vs();vd=function(){function t(e,n,o){this._tracerProvider=o;var a=eI(n);this._sampler=a.sampler,this._generalLimits=a.generalLimits,this._spanLimits=a.spanLimits,this._idGenerator=n.idGenerator||new md,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(oh);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 ks,cI,fI=E(()=>{F();ks=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.")},cI=function(){function t(e){this._spanProcessors=e}return t.prototype.forceFlush=function(){var e,n,o=[];try{for(var a=ks(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=ks(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=ks(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=ks(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 yd,_d=E(()=>{yd=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,Az,pI=E(()=>{w();F();bu();yo();dd();fI();_d();Vs();hd();(function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"})(yr||(yr={}));Az=function(){function t(e){e===void 0&&(e={});var n;this._registeredSpanProcessors=[],this._tracers=new Map;var o=Zf({},Us(),tI(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 vo(a);this.activeSpanProcessor=u}else this.activeSpanProcessor=new yd}return t.prototype.getTracer=function(e,n,o){var a=e+"@"+(n||"")+":"+(o?.schemaUrl||"");return this._tracers.has(a)||this._tracers.set(a,new vd({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 cI(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 bz,xz,dI=E(()=>{F();bz=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.")},xz=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=bz(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 Nz,Rz,Pz,hI=E(()=>{F();Nz=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},Rz=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))},Pz=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,Rz([],Nz(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 mI=E(()=>{});var wz,Mz,Iz,vI=E(()=>{w();F();wz=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())})},Mz=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}}},Iz=function(){function t(e){this._exporter=e,this._shutdownOnce=new Br(this._shutdown,this),this._unresolvedExports=new Set}return t.prototype.forceFlush=function(){return wz(this,void 0,void 0,function(){return Mz(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 yI=E(()=>{});var _I=E(()=>{});var SI=E(()=>{});var EI=E(()=>{});var TI=E(()=>{});var Sd={};it(Sd,{AlwaysOffSampler:()=>Kr,AlwaysOnSampler:()=>Ft,BasicTracerProvider:()=>Az,BatchSpanProcessor:()=>vo,ConsoleSpanExporter:()=>xz,ForceFlushState:()=>yr,InMemorySpanExporter:()=>Pz,NoopSpanProcessor:()=>yd,ParentBasedSampler:()=>mo,RandomIdGenerator:()=>md,SamplingDecision:()=>Pt,SimpleSpanProcessor:()=>Iz,Span:()=>sd,TraceIdRatioBasedSampler:()=>Cs,Tracer:()=>vd});var yo=E(()=>{lI();pI();Vs();dI();hI();mI();vI();yI();_d();Is();Ls();cd();fd();ho();ld();_I();SI();EI();TI()});var Td=y(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.AbstractAsyncHooksContextManager=void 0;var Lz=M("events"),Cz=["addListener","on","once","prependListener","prependOnceListener"],Ed=class{constructor(){this._kOtListeners=Symbol("OtListeners"),this._wrapped=!1}bind(e,n){return n instanceof Lz.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),Cz.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]}};Bs.AbstractAsyncHooksContextManager=Ed});var gI=y(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.AsyncHooksContextManager=void 0;var Uz=(w(),Y(Ne)),Dz=M("async_hooks"),Vz=Td(),gd=class extends Vz.AbstractAsyncHooksContextManager{constructor(){super(),this._contexts=new Map,this._stack=[],this._asyncHook=Dz.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:Uz.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()}};Gs.AsyncHooksContextManager=gd});var OI=y(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.AsyncLocalStorageContextManager=void 0;var kz=(w(),Y(Ne)),Bz=M("async_hooks"),Gz=Td(),Od=class extends Gz.AbstractAsyncHooksContextManager{constructor(){super(),this._asyncLocalStorage=new Bz.AsyncLocalStorage}active(){var e;return(e=this._asyncLocalStorage.getStore())!==null&&e!==void 0?e:kz.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}};qs.AsyncLocalStorageContextManager=Od});var AI=y($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.AsyncLocalStorageContextManager=$n.AsyncHooksContextManager=void 0;var qz=gI();Object.defineProperty($n,"AsyncHooksContextManager",{enumerable:!0,get:function(){return qz.AsyncHooksContextManager}});var Fz=OI();Object.defineProperty($n,"AsyncLocalStorageContextManager",{enumerable:!0,get:function(){return Fz.AsyncLocalStorageContextManager}})});var Kn,Ad=E(()=>{w();Kn=Qr("OpenTelemetry Context Key B3 Debug Flag")});var zr,_o,So,Eo,bd,To,go=E(()=>{zr="b3",_o="x-b3-traceid",So="x-b3-spanid",Eo="x-b3-sampled",bd="x-b3-parentspanid",To="x-b3-flags"});function Yz(t){return t===J.SAMPLED||t===J.NONE}function $z(t){return Array.isArray(t)?t[0]:t}function Fs(t,e,n){var o=e.get(t,n);return $z(o)}function Kz(t,e){var n=Fs(t,e,_o);return typeof n=="string"?n.padStart(32,"0"):""}function zz(t,e){var n=Fs(t,e,So);return typeof n=="string"?n:""}function bI(t,e){var n=Fs(t,e,To);return n==="1"?"1":void 0}function Wz(t,e){var n=Fs(t,e,Eo),o=bI(t,e);if(o==="1"||Hz.has(n))return J.SAMPLED;if(n===void 0||jz.has(n))return J.NONE}var Hz,jz,xI,NI=E(()=>{w();F();Ad();go();Hz=new Set([!0,"true","True","1",1]),jz=new Set([!1,"false","False","0",0]);xI=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(Kn);o.set(n,_o,a.traceId),o.set(n,So,a.spanId),u==="1"?o.set(n,To,u):a.traceFlags!==void 0&&o.set(n,Eo,(J.SAMPLED&a.traceFlags)===J.SAMPLED?"1":"0")}},t.prototype.extract=function(e,n,o){var a=Kz(n,o),u=zz(n,o),i=Wz(n,o),r=bI(n,o);return Yt(a)&&Io(u)&&Yz(i)?(e=e.setValue(Kn,r),X.setSpanContext(e,{traceId:a,spanId:u,isRemote:!0,traceFlags:i})):e},t.prototype.fields=function(){return[_o,So,To,Eo,bd]},t}()});function tW(t){return t.length===32?t:""+Qz+t}function rW(t){return t&&Zz.has(t)?J.SAMPLED:J.NONE}var Xz,Jz,Qz,Zz,eW,RI,PI=E(()=>{w();F();Ad();go();Xz=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},Jz=/((?:[0-9a-f]{16}){1,2})-([0-9a-f]{16})(?:-([01d](?![0-9a-f])))?(?:-([0-9a-f]{16}))?/,Qz="0".repeat(16),Zz=new Set(["d","1"]),eW="d";RI=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(Kn)||a.traceFlags&1,i=a.traceId+"-"+a.spanId+"-"+u;o.set(n,zr,i)}},t.prototype.extract=function(e,n,o){var a=o.get(n,zr),u=Array.isArray(a)?a[0]:a;if(typeof u!="string")return e;var i=u.match(Jz);if(!i)return e;var r=Xz(i,4),s=r[1],l=r[2],c=r[3],p=tW(s);if(!Yt(p)||!Io(l))return e;var m=rW(c);return c===eW&&(e=e.setValue(Kn,c)),X.setSpanContext(e,{traceId:p,spanId:l,isRemote:!0,traceFlags:m})},t.prototype.fields=function(){return[zr]},t}()});var Oo,xd=E(()=>{(function(t){t[t.SINGLE_HEADER=0]="SINGLE_HEADER",t[t.MULTI_HEADER=1]="MULTI_HEADER"})(Oo||(Oo={}))});var nW,wI=E(()=>{F();NI();PI();go();xd();nW=function(){function t(e){e===void 0&&(e={}),this._b3MultiPropagator=new xI,this._b3SinglePropagator=new RI,e.injectEncoding===Oo.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,zr),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 MI={};it(MI,{B3InjectEncoding:()=>Oo,B3Propagator:()=>nW,B3_CONTEXT_HEADER:()=>zr,X_B3_FLAGS:()=>To,X_B3_PARENT_SPAN_ID:()=>bd,X_B3_SAMPLED:()=>Eo,X_B3_SPAN_ID:()=>So,X_B3_TRACE_ID:()=>_o});var II=E(()=>{wI();go();xd()});var Ao=y((wle,LI)=>{var iW="2.0.0",oW=Number.MAX_SAFE_INTEGER||9007199254740991,aW=16,uW=256-6,sW=["major","premajor","minor","preminor","patch","prepatch","prerelease"];LI.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:aW,MAX_SAFE_BUILD_LENGTH:uW,MAX_SAFE_INTEGER:oW,RELEASE_TYPES:sW,SEMVER_SPEC_VERSION:iW,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var bo=y((Mle,CI)=>{var lW=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};CI.exports=lW});var zn=y((Ht,UI)=>{var{MAX_SAFE_COMPONENT_LENGTH:Nd,MAX_SAFE_BUILD_LENGTH:cW,MAX_LENGTH:fW}=Ao(),pW=bo();Ht=UI.exports={};var dW=Ht.re=[],hW=Ht.safeRe=[],x=Ht.src=[],N=Ht.t={},mW=0,Rd="[a-zA-Z0-9-]",vW=[["\\s",1],["\\d",fW],[Rd,cW]],yW=t=>{for(let[e,n]of vW)t=t.split(`${e}*`).join(`${e}{0,${n}}`).split(`${e}+`).join(`${e}{1,${n}}`);return t},D=(t,e,n)=>{let o=yW(e),a=mW++;pW(t,a,e),N[t]=a,x[a]=e,dW[a]=new RegExp(e,n?"g":void 0),hW[a]=new RegExp(o,n?"g":void 0)};D("NUMERICIDENTIFIER","0|[1-9]\\d*");D("NUMERICIDENTIFIERLOOSE","\\d+");D("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Rd}*`);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",`${Rd}+`);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,${Nd}})(?:\\.(\\d{1,${Nd}}))?(?:\\.(\\d{1,${Nd}}))?`);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);Ht.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);Ht.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);Ht.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 Hs=y((Ile,DI)=>{var _W=Object.freeze({loose:!0}),SW=Object.freeze({}),EW=t=>t?typeof t!="object"?_W:t:SW;DI.exports=EW});var Pd=y((Lle,BI)=>{var VI=/^[0-9]+$/,kI=(t,e)=>{let n=VI.test(t),o=VI.test(e);return n&&o&&(t=+t,e=+e),t===e?0:n&&!o?-1:o&&!n?1:t<e?-1:1},TW=(t,e)=>kI(e,t);BI.exports={compareIdentifiers:kI,rcompareIdentifiers:TW}});var xe=y((Cle,HI)=>{var js=bo(),{MAX_LENGTH:GI,MAX_SAFE_INTEGER:Ys}=Ao(),{safeRe:qI,t:FI}=zn(),gW=Hs(),{compareIdentifiers:Wn}=Pd(),Je=class{constructor(e,n){if(n=gW(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>GI)throw new TypeError(`version is longer than ${GI} characters`);js("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let o=e.trim().match(n.loose?qI[FI.LOOSE]:qI[FI.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>Ys||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Ys||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Ys||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<Ys)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(js("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(js("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(js("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}};HI.exports=Je});var Wr=y((Ule,YI)=>{var jI=xe(),OW=(t,e,n=!1)=>{if(t instanceof jI)return t;try{return new jI(t,e)}catch(o){if(!n)return null;throw o}};YI.exports=OW});var KI=y((Dle,$I)=>{var AW=Wr(),bW=(t,e)=>{let n=AW(t,e);return n?n.version:null};$I.exports=bW});var WI=y((Vle,zI)=>{var xW=Wr(),NW=(t,e)=>{let n=xW(t.trim().replace(/^[=v]+/,""),e);return n?n.version:null};zI.exports=NW});var QI=y((kle,JI)=>{var XI=xe(),RW=(t,e,n,o,a)=>{typeof n=="string"&&(a=o,o=n,n=void 0);try{return new XI(t instanceof XI?t.version:t,n).inc(e,o,a).version}catch{return null}};JI.exports=RW});var tL=y((Ble,eL)=>{var ZI=Wr(),PW=(t,e)=>{let n=ZI(t,null,!0),o=ZI(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"};eL.exports=PW});var nL=y((Gle,rL)=>{var wW=xe(),MW=(t,e)=>new wW(t,e).major;rL.exports=MW});var oL=y((qle,iL)=>{var IW=xe(),LW=(t,e)=>new IW(t,e).minor;iL.exports=LW});var uL=y((Fle,aL)=>{var CW=xe(),UW=(t,e)=>new CW(t,e).patch;aL.exports=UW});var lL=y((Hle,sL)=>{var DW=Wr(),VW=(t,e)=>{let n=DW(t,e);return n&&n.prerelease.length?n.prerelease:null};sL.exports=VW});var rt=y((jle,fL)=>{var cL=xe(),kW=(t,e,n)=>new cL(t,n).compare(new cL(e,n));fL.exports=kW});var dL=y((Yle,pL)=>{var BW=rt(),GW=(t,e,n)=>BW(e,t,n);pL.exports=GW});var mL=y(($le,hL)=>{var qW=rt(),FW=(t,e)=>qW(t,e,!0);hL.exports=FW});var $s=y((Kle,yL)=>{var vL=xe(),HW=(t,e,n)=>{let o=new vL(t,n),a=new vL(e,n);return o.compare(a)||o.compareBuild(a)};yL.exports=HW});var SL=y((zle,_L)=>{var jW=$s(),YW=(t,e)=>t.sort((n,o)=>jW(n,o,e));_L.exports=YW});var TL=y((Wle,EL)=>{var $W=$s(),KW=(t,e)=>t.sort((n,o)=>$W(o,n,e));EL.exports=KW});var xo=y((Xle,gL)=>{var zW=rt(),WW=(t,e,n)=>zW(t,e,n)>0;gL.exports=WW});var Ks=y((Jle,OL)=>{var XW=rt(),JW=(t,e,n)=>XW(t,e,n)<0;OL.exports=JW});var wd=y((Qle,AL)=>{var QW=rt(),ZW=(t,e,n)=>QW(t,e,n)===0;AL.exports=ZW});var Md=y((Zle,bL)=>{var eX=rt(),tX=(t,e,n)=>eX(t,e,n)!==0;bL.exports=tX});var zs=y((ece,xL)=>{var rX=rt(),nX=(t,e,n)=>rX(t,e,n)>=0;xL.exports=nX});var Ws=y((tce,NL)=>{var iX=rt(),oX=(t,e,n)=>iX(t,e,n)<=0;NL.exports=oX});var Id=y((rce,RL)=>{var aX=wd(),uX=Md(),sX=xo(),lX=zs(),cX=Ks(),fX=Ws(),pX=(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 aX(t,n,o);case"!=":return uX(t,n,o);case">":return sX(t,n,o);case">=":return lX(t,n,o);case"<":return cX(t,n,o);case"<=":return fX(t,n,o);default:throw new TypeError(`Invalid operator: ${e}`)}};RL.exports=pX});var wL=y((nce,PL)=>{var dX=xe(),hX=Wr(),{safeRe:Xs,t:Js}=zn(),mX=(t,e)=>{if(t instanceof dX)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?Xs[Js.COERCEFULL]:Xs[Js.COERCE]);else{let s=e.includePrerelease?Xs[Js.COERCERTLFULL]:Xs[Js.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 hX(`${o}.${a}.${u}${i}${r}`,e)};PL.exports=mX});var IL=y((ice,ML)=>{var Ld=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}};ML.exports=Ld});var nt=y((oce,DL)=>{var Xr=class{constructor(e,n){if(n=yX(n),e instanceof Xr)return e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease?e:new Xr(e.raw,n);if(e instanceof Cd)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=>!CL(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&&AX(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&&gX)|(this.options.loose&&OX))+":"+e,a=LL.get(o);if(a)return a;let u=this.options.loose,i=u?He[De.HYPHENRANGELOOSE]:He[De.HYPHENRANGE];e=e.replace(i,CX(this.options.includePrerelease)),te("hyphen replace",e),e=e.replace(He[De.COMPARATORTRIM],SX),te("comparator trim",e),e=e.replace(He[De.TILDETRIM],EX),te("tilde trim",e),e=e.replace(He[De.CARETTRIM],TX),te("caret trim",e);let r=e.split(" ").map(p=>bX(p,this.options)).join(" ").split(/\s+/).map(p=>LX(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 Cd(p,this.options));for(let p of l){if(CL(p))return[p];s.set(p.value,p)}s.size>1&&s.has("")&&s.delete("");let c=[...s.values()];return LL.set(o,c),c}intersects(e,n){if(!(e instanceof Xr))throw new TypeError("a Range is required");return this.set.some(o=>UL(o,n)&&e.set.some(a=>UL(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 _X(e,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(UX(this.set[n],e,this.options))return!0;return!1}};DL.exports=Xr;var vX=IL(),LL=new vX,yX=Hs(),Cd=No(),te=bo(),_X=xe(),{safeRe:He,t:De,comparatorTrimReplace:SX,tildeTrimReplace:EX,caretTrimReplace:TX}=zn(),{FLAG_INCLUDE_PRERELEASE:gX,FLAG_LOOSE:OX}=Ao(),CL=t=>t.value==="<0.0.0-0",AX=t=>t.value==="",UL=(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},bX=(t,e)=>(te("comp",t,e),t=RX(t,e),te("caret",t),t=xX(t,e),te("tildes",t),t=wX(t,e),te("xrange",t),t=IX(t,e),te("stars",t),t),Ve=t=>!t||t.toLowerCase()==="x"||t==="*",xX=(t,e)=>t.trim().split(/\s+/).map(n=>NX(n,e)).join(" "),NX=(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})},RX=(t,e)=>t.trim().split(/\s+/).map(n=>PX(n,e)).join(" "),PX=(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})},wX=(t,e)=>(te("replaceXRanges",t,e),t.split(/\s+/).map(n=>MX(n,e)).join(" ")),MX=(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})},IX=(t,e)=>(te("replaceStars",t,e),t.trim().replace(He[De.STAR],"")),LX=(t,e)=>(te("replaceGTE0",t,e),t.trim().replace(He[e.includePrerelease?De.GTE0PRE:De.GTE0],"")),CX=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()),UX=(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!==Cd.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 No=y((ace,FL)=>{var Ro=Symbol("SemVer ANY"),Xn=class{static get ANY(){return Ro}constructor(e,n){if(n=VL(n),e instanceof Xn){if(e.loose===!!n.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Dd("comparator",e,n),this.options=n,this.loose=!!n.loose,this.parse(e),this.semver===Ro?this.value="":this.value=this.operator+this.semver.version,Dd("comp",this)}parse(e){let n=this.options.loose?kL[BL.COMPARATORLOOSE]:kL[BL.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 GL(o[2],this.options.loose):this.semver=Ro}toString(){return this.value}test(e){if(Dd("Comparator.test",e,this.options.loose),this.semver===Ro||e===Ro)return!0;if(typeof e=="string")try{e=new GL(e,this.options)}catch{return!1}return Ud(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 qL(e.value,n).test(this.value):e.operator===""?e.value===""?!0:new qL(this.value,n).test(e.semver):(n=VL(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("=")||Ud(this.semver,"<",e.semver,n)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Ud(this.semver,">",e.semver,n)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};FL.exports=Xn;var VL=Hs(),{safeRe:kL,t:BL}=zn(),Ud=Id(),Dd=bo(),GL=xe(),qL=nt()});var Po=y((uce,HL)=>{var DX=nt(),VX=(t,e,n)=>{try{e=new DX(e,n)}catch{return!1}return e.test(t)};HL.exports=VX});var YL=y((sce,jL)=>{var kX=nt(),BX=(t,e)=>new kX(t,e).set.map(n=>n.map(o=>o.value).join(" ").trim().split(" "));jL.exports=BX});var KL=y((lce,$L)=>{var GX=xe(),qX=nt(),FX=(t,e,n)=>{let o=null,a=null,u=null;try{u=new qX(e,n)}catch{return null}return t.forEach(i=>{u.test(i)&&(!o||a.compare(i)===-1)&&(o=i,a=new GX(o,n))}),o};$L.exports=FX});var WL=y((cce,zL)=>{var HX=xe(),jX=nt(),YX=(t,e,n)=>{let o=null,a=null,u=null;try{u=new jX(e,n)}catch{return null}return t.forEach(i=>{u.test(i)&&(!o||a.compare(i)===1)&&(o=i,a=new HX(o,n))}),o};zL.exports=YX});var QL=y((fce,JL)=>{var Vd=xe(),$X=nt(),XL=xo(),KX=(t,e)=>{t=new $X(t,e);let n=new Vd("0.0.0");if(t.test(n)||(n=new Vd("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 Vd(i.semver.version);switch(i.operator){case">":r.prerelease.length===0?r.patch++:r.prerelease.push(0),r.raw=r.format();case"":case">=":(!u||XL(r,u))&&(u=r);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${i.operator}`)}}),u&&(!n||XL(n,u))&&(n=u)}return n&&t.test(n)?n:null};JL.exports=KX});var e1=y((pce,ZL)=>{var zX=nt(),WX=(t,e)=>{try{return new zX(t,e).range||"*"}catch{return null}};ZL.exports=WX});var Qs=y((dce,i1)=>{var XX=xe(),n1=No(),{ANY:JX}=n1,QX=nt(),ZX=Po(),t1=xo(),r1=Ks(),e9=Ws(),t9=zs(),r9=(t,e,n,o)=>{t=new XX(t,o),e=new QX(e,o);let a,u,i,r,s;switch(n){case">":a=t1,u=e9,i=r1,r=">",s=">=";break;case"<":a=r1,u=t9,i=t1,r="<",s="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ZX(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===JX&&(f=new n1(">=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};i1.exports=r9});var a1=y((hce,o1)=>{var n9=Qs(),i9=(t,e,n)=>n9(t,e,">",n);o1.exports=i9});var s1=y((mce,u1)=>{var o9=Qs(),a9=(t,e,n)=>o9(t,e,"<",n);u1.exports=a9});var f1=y((vce,c1)=>{var l1=nt(),u9=(t,e,n)=>(t=new l1(t,n),e=new l1(e,n),t.intersects(e,n));c1.exports=u9});var d1=y((yce,p1)=>{var s9=Po(),l9=rt();p1.exports=(t,e,n)=>{let o=[],a=null,u=null,i=t.sort((c,p)=>l9(c,p,n));for(let c of i)s9(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 S1=y((_ce,_1)=>{var h1=nt(),Bd=No(),{ANY:kd}=Bd,wo=Po(),Gd=rt(),c9=(t,e,n={})=>{if(t===e)return!0;t=new h1(t,n),e=new h1(e,n);let o=!1;e:for(let a of t.set){for(let u of e.set){let i=p9(a,u,n);if(o=o||i!==null,i)continue e}if(o)return!1}return!0},f9=[new Bd(">=0.0.0-0")],m1=[new Bd(">=0.0.0")],p9=(t,e,n)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===kd){if(e.length===1&&e[0].semver===kd)return!0;n.includePrerelease?t=f9:t=m1}if(e.length===1&&e[0].semver===kd){if(n.includePrerelease)return!0;e=m1}let o=new Set,a,u;for(let f of t)f.operator===">"||f.operator===">="?a=v1(a,f,n):f.operator==="<"||f.operator==="<="?u=y1(u,f,n):o.add(f.semver);if(o.size>1)return null;let i;if(a&&u){if(i=Gd(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&&!wo(f,String(a),n)||u&&!wo(f,String(u),n))return null;for(let v of e)if(!wo(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=v1(a,f,n),r===f&&r!==a)return!1}else if(a.operator===">="&&!wo(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=y1(u,f,n),s===f&&s!==u)return!1}else if(u.operator==="<="&&!wo(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)},v1=(t,e,n)=>{if(!t)return e;let o=Gd(t.semver,e.semver,n);return o>0?t:o<0||e.operator===">"&&t.operator===">="?e:t},y1=(t,e,n)=>{if(!t)return e;let o=Gd(t.semver,e.semver,n);return o<0?t:o>0||e.operator==="<"&&t.operator==="<="?e:t};_1.exports=c9});var O1=y((Sce,g1)=>{var qd=zn(),E1=Ao(),d9=xe(),T1=Pd(),h9=Wr(),m9=KI(),v9=WI(),y9=QI(),_9=tL(),S9=nL(),E9=oL(),T9=uL(),g9=lL(),O9=rt(),A9=dL(),b9=mL(),x9=$s(),N9=SL(),R9=TL(),P9=xo(),w9=Ks(),M9=wd(),I9=Md(),L9=zs(),C9=Ws(),U9=Id(),D9=wL(),V9=No(),k9=nt(),B9=Po(),G9=YL(),q9=KL(),F9=WL(),H9=QL(),j9=e1(),Y9=Qs(),$9=a1(),K9=s1(),z9=f1(),W9=d1(),X9=S1();g1.exports={parse:h9,valid:m9,clean:v9,inc:y9,diff:_9,major:S9,minor:E9,patch:T9,prerelease:g9,compare:O9,rcompare:A9,compareLoose:b9,compareBuild:x9,sort:N9,rsort:R9,gt:P9,lt:w9,eq:M9,neq:I9,gte:L9,lte:C9,cmp:U9,coerce:D9,Comparator:V9,Range:k9,satisfies:B9,toComparators:G9,maxSatisfying:q9,minSatisfying:F9,minVersion:H9,validRange:j9,outside:Y9,gtr:$9,ltr:K9,intersects:z9,simplifyRange:W9,subset:X9,SemVer:d9,re:qd.re,src:qd.src,tokens:qd.t,SEMVER_SPEC_VERSION:E1.SEMVER_SPEC_VERSION,RELEASE_TYPES:E1.RELEASE_TYPES,compareIdentifiers:T1.compareIdentifiers,rcompareIdentifiers:T1.rcompareIdentifiers}});function Z9(t){var e=decodeURIComponent(t).split(":");if(e.length!==4)return null;var n=b1(e,4),o=n[0],a=n[1],u=n[3],i=o.padStart(32,"0"),r=a.padStart(16,"0"),s=Q9.test(u)?parseInt(u,16)&1:1;return{traceId:i,spanId:r,isRemote:!0,traceFlags:s}}var A1,b1,x1,Fd,J9,Q9,N1=E(()=>{w();F();A1=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.")},b1=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},x1="uber-trace-id",Fd="uberctx",J9=function(){function t(e){typeof e=="string"?(this._jaegerTraceHeader=e,this._jaegerBaggageHeaderPrefix=Fd):(this._jaegerTraceHeader=e?.customTraceHeader||x1,this._jaegerBaggageHeaderPrefix=e?.customBaggageHeaderPrefix||Fd)}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=A1(r.getAllEntries()),c=l.next();!c.done;c=l.next()){var p=b1(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=Z9(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=A1(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}(),Q9=/^[0-9a-f]{1,2}$/i});var R1={};it(R1,{JaegerPropagator:()=>J9,UBER_BAGGAGE_HEADER_PREFIX:()=>Fd,UBER_TRACE_ID_HEADER:()=>x1});var P1=E(()=>{N1()});var I1=y(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});tl.NodeTracerProvider=void 0;var w1=AI(),Zs=(II(),Y(MI)),M1=(yo(),Y(Sd)),e7=O1(),t7=(P1(),Y(R1)),el=class extends M1.BasicTracerProvider{constructor(e={}){super(e)}register(e={}){if(e.contextManager===void 0){let n=e7.gte(process.version,"14.8.0")?w1.AsyncLocalStorageContextManager:w1.AsyncHooksContextManager;e.contextManager=new n,e.contextManager.enable()}super.register(e)}};tl.NodeTracerProvider=el;el._registeredPropagators=new Map([...M1.BasicTracerProvider._registeredPropagators,["b3",()=>new Zs.B3Propagator({injectEncoding:Zs.B3InjectEncoding.SINGLE_HEADER})],["b3multi",()=>new Zs.B3Propagator({injectEncoding:Zs.B3InjectEncoding.MULTI_HEADER})],["jaeger",()=>new t7.JaegerPropagator]])});var C1=y(_r=>{"use strict";var r7=_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]}),L1=_r&&_r.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&r7(e,t,n)};Object.defineProperty(_r,"__esModule",{value:!0});L1(I1(),_r);L1((yo(),Y(Sd)),_r)});var $d=y(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});il.PrometheusSerializer=void 0;var n7=(w(),Y(Ne)),Jr=(Cn(),Y(Up)),U1=(F(),Y(Gr));function nl(t){return t.replace(/\\/g,"\\\\").replace(/\n/g,"\\n")}function D1(t=""){return typeof t!="string"&&(t=JSON.stringify(t)),nl(t).replace(/"/g,'\\"')}var i7=/[^a-z0-9_]/gi,o7=/_{2,}/g;function jd(t){return t.replace(i7,"_").replace(o7,"_")}function Hd(t,e){return!t.endsWith("_total")&&e===Jr.InstrumentType.COUNTER&&(t=t+"_total"),t}function a7(t){return Number.isNaN(t)?"NaN":Number.isFinite(t)?`${t}`:t<0?"-Inf":"+Inf"}function u7(t){switch(t.dataPointType){case Jr.DataPointType.SUM:return t.isMonotonic?"counter":"gauge";case Jr.DataPointType.GAUGE:return"gauge";case Jr.DataPointType.HISTOGRAM:return"histogram";default:return"untyped"}}function rl(t,e,n,o,a){let u=!1,i="";for(let[r,s]of Object.entries(e)){let l=jd(r);u=!0,i+=`${i.length>0?",":""}${l}="${D1(s)}"`}if(a)for(let[r,s]of Object.entries(a)){let l=jd(r);u=!0,i+=`${i.length>0?",":""}${l}="${D1(s)}"`}return u&&(t+=`{${i}}`),`${t} ${a7(n)}${o!==void 0?" "+String(o):""}
|
52
52
|
`}var s7="# no registered metrics",Yd=class{constructor(e,n=!1){e&&(this._prefix=e+"_"),this._appendTimestamp=n}serialize(e){let n="";for(let o of e.scopeMetrics)n+=this._serializeScopeMetrics(o);return n===""&&(n+=s7),this._serializeResource(e.resource)+n}_serializeScopeMetrics(e){let n="";for(let o of e.metrics)n+=this._serializeMetricData(o)+`
|
53
|
-
`;return n}_serializeMetricData(e){let n=jd(
|
54
|
-
# UNIT ${n} ${
|
53
|
+
`;return n}_serializeMetricData(e){let n=jd(nl(e.descriptor.name));this._prefix&&(n=`${this._prefix}${n}`);let o=e.dataPointType;n=Hd(n,e.descriptor.type);let a=`# HELP ${n} ${nl(e.descriptor.description||"description missing")}`,u=e.descriptor.unit?`
|
54
|
+
# UNIT ${n} ${nl(e.descriptor.unit)}`:"",i=`# TYPE ${n} ${u7(e)}`,r="";switch(o){case Jr.DataPointType.SUM:case Jr.DataPointType.GAUGE:{r=e.dataPoints.map(s=>this._serializeSingularDataPoint(n,e.descriptor.type,s)).join("");break}case Jr.DataPointType.HISTOGRAM:{r=e.dataPoints.map(s=>this._serializeHistogramDataPoint(n,e.descriptor.type,s)).join("");break}default:n7.diag.error(`Unrecognizable DataPointType: ${o} for metric "${n}"`)}return`${a}${u}
|
55
55
|
${i}
|
56
|
-
${r}`.trim()}_serializeSingularDataPoint(e,n,o){let a="";e=Hd(e,n);let{value:u,attributes:i}=o,r=(0,U1.hrTimeToMilliseconds)(o.endTime);return a+=
|
56
|
+
${r}`.trim()}_serializeSingularDataPoint(e,n,o){let a="";e=Hd(e,n);let{value:u,attributes:i}=o,r=(0,U1.hrTimeToMilliseconds)(o.endTime);return a+=rl(e,i,u,this._appendTimestamp?r:void 0,void 0),a}_serializeHistogramDataPoint(e,n,o){let a="";e=Hd(e,n);let u=o.attributes,i=o.value,r=(0,U1.hrTimeToMilliseconds)(o.endTime);for(let p of["count","sum"]){let m=i[p];m!=null&&(a+=rl(e+"_"+p,u,m,this._appendTimestamp?r:void 0,void 0))}let s=0,l=i.buckets.counts.entries(),c=!1;for(let[p,m]of l){s+=m;let f=i.buckets.boundaries[p];if(f===void 0&&c)break;f===1/0&&(c=!0),a+=rl(e+"_bucket",u,s,this._appendTimestamp?r:void 0,{le:f===void 0||f===1/0?"+Inf":String(f)})}return a}_serializeResource(e){let n="target_info",o=`# HELP ${n} Target metadata`,a=`# TYPE ${n} gauge`,u=rl(n,e.attributes,1).trim();return`${o}
|
57
57
|
${a}
|
58
58
|
${u}
|
59
|
-
`}};nl.PrometheusSerializer=Yd});var V1=y(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});il.PrometheusExporter=void 0;var Mo=(w(),Y(Ne)),l7=(F(),Y(Gr)),Kd=(Cn(),Y(Up)),c7=M("http"),f7=$d(),p7=M("url"),wt=class extends Kd.MetricReader{constructor(e={},n=()=>{}){super({aggregationSelector:o=>Kd.Aggregation.Default(),aggregationTemporalitySelector:o=>Kd.AggregationTemporality.CUMULATIVE,metricProducers:e.metricProducers}),this._requestHandler=(o,a)=>{o.url!=null&&new p7.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&&Mo.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||wt.DEFAULT_OPTIONS.host,this._port=e.port||Number(process.env.OTEL_EXPORTER_PROMETHEUS_PORT)||wt.DEFAULT_OPTIONS.port,this._prefix=e.prefix||wt.DEFAULT_OPTIONS.prefix,this._appendTimestamp=typeof e.appendTimestamp=="boolean"?e.appendTimestamp:wt.DEFAULT_OPTIONS.appendTimestamp,this._server=(0,c7.createServer)(this._requestHandler).unref(),this._serializer=new f7.PrometheusSerializer(this._prefix,this._appendTimestamp),this._baseUrl=`http://${this._host}:${this._port}/`,this._endpoint=(e.endpoint||wt.DEFAULT_OPTIONS.endpoint).replace(/^([^/])/,"/$1"),e.preventServerStart!==!0?this.startServer().then(n,o=>{Mo.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,l7.globalErrorHandler)(n):Mo.diag.debug("Prometheus exporter was stopped"),e()})}):(Mo.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},()=>{Mo.diag.debug(`Prometheus exporter server started: ${this._host}:${this._port}/${this._endpoint}`),n()})})),this._startServerPromise}getMetricsRequestHandler(e,n){this._exportMetrics(n)}};il.PrometheusExporter=wt;wt.DEFAULT_OPTIONS={host:void 0,port:9464,endpoint:"/metrics",prefix:"",appendTimestamp:!1}});var B1=y(k1=>{"use strict";Object.defineProperty(k1,"__esModule",{value:!0})});var G1=y(jt=>{"use strict";var d7=jt&&jt.__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]}),zd=jt&&jt.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&d7(e,t,n)};Object.defineProperty(jt,"__esModule",{value:!0});zd(V1(),jt);zd($d(),jt);zd(B1(),jt)});var q1=je(Ol(),1),F1=je(Jn(),1),H1=je(cv(),1),j1=je(eC(),1),Y1=je(tC(),1),$1=je(kO(),1);import h7 from"path";import m7 from"http";import{Session as v7}from"inspector/promises";import{createRequire as hq}from"module";var Hl=je(Ol(),1);import Jo from"path";import Fl from"os";var mq=hq(import.meta.url);function BO(t){let e=mq.resolve(t),n=Jo.dirname(e);for(;!Hl.default.existsSync(Jo.join(n,"package.json"));)n=Jo.dirname(n);let o=Hl.default.readFileSync(Jo.join(n,"package.json"),"utf-8");return JSON.parse(o)}var Qo=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=Qd.fromPartial(ul.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){ul.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}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)}Au();var K1=je($M(),1),z1=je(WM(),1);Cn();yo();var Xd=je(C1(),1);w();var W1=je(G1(),1),y7=[{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,H1.default)(y7,{partial:!0}),_7=process.env.LOG_LEVEL?.toUpperCase();rR(Qe["log-format"]==="json",_7==="debug"?!0:Qe.debug);console.debug("Starting with",Qe.target);Qe.debug&&A.setLogger(new nh,ot.DEBUG);var X1=await Ou.detect(),S7=new oo({resource:X1,readers:[new Du({exporter:new K1.OTLPMetricExporter}),new W1.PrometheusExporter({port:4041})]}),Jd=new Xd.NodeTracerProvider({resource:X1}),E7=new z1.OTLPTraceExporter,T7=new vo(E7);Jd.addSpanProcessor(T7);Jd.register();sl.setGlobalMeterProvider(S7);X.setGlobalTracerProvider(Jd);["SIGINT","SIGTERM"].forEach(t=>{process.on(t,()=>g7())});async function g7(){let t=X.getTracerProvider();t instanceof Xd.NodeTracerProvider&&t.shutdown().catch(console.error);let e=sl.getMeterProvider();e instanceof oo&&e.shutdown().catch(console.error)}Error.stackTraceLimit=20;var O7=h7.resolve(Qe["chains-config"]),A7=q1.default.readJsonSync(O7),b7=process.env.OVERRIDE_CONCURRENCY?parseInt(process.env.OVERRIDE_CONCURRENCY):void 0,x7=process.env.OVERRIDE_BATCH_COUNT?parseInt(process.env.OVERRIDE_BATCH_COUNT):void 0;Sr.INSTANCE.concurrency=b7??Qe.concurrency;Sr.INSTANCE.batchCount=x7??Qe["batch-count"];Sr.INSTANCE.chainQueryAPI=Qe["chainquery-server"];Sr.INSTANCE.priceFeedAPI=Qe["pricefeed-server"];for(let[t,e]of Object.entries(A7)){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 ol=(0,j1.createServer)({"grpc.max_send_message_length":384*1024*1024,"grpc.max_receive_message_length":384*1024*1024,"grpc.default_compression_algorithm":F1.compressionAlgorithms.gzip}).use((0,$1.openTelemetryServerMiddleware)()).use(Y1.errorDetailsServerMiddleware),Wd=new sh(async()=>{let t=await import(Qe.target);return console.debug("Module loaded",t),t},ol.shutdown),N7=new Qo(Wd);ol.add(Zd,N7);ol.listen("0.0.0.0:"+Qe.port);console.log("Processor Server Started at:",Qe.port);var J1=4040,R7=m7.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 v7;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(){P7(0)}).on("uncaughtException",t=>{console.error("Uncaught Exception, please checking if await is properly used",t),Wd.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),Wd.unhandled=t)});function P7(t){ol.forceShutdown(),console.log("RPC server shut down"),R7.close(function(){console.log("Http server shut down"),process.exit(t)})}export{g7 as shutdownProvider};
|
59
|
+
`}};il.PrometheusSerializer=Yd});var V1=y(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});ol.PrometheusExporter=void 0;var Mo=(w(),Y(Ne)),l7=(F(),Y(Gr)),Kd=(Cn(),Y(Up)),c7=M("http"),f7=$d(),p7=M("url"),wt=class extends Kd.MetricReader{constructor(e={},n=()=>{}){super({aggregationSelector:o=>Kd.Aggregation.Default(),aggregationTemporalitySelector:o=>Kd.AggregationTemporality.CUMULATIVE,metricProducers:e.metricProducers}),this._requestHandler=(o,a)=>{o.url!=null&&new p7.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&&Mo.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||wt.DEFAULT_OPTIONS.host,this._port=e.port||Number(process.env.OTEL_EXPORTER_PROMETHEUS_PORT)||wt.DEFAULT_OPTIONS.port,this._prefix=e.prefix||wt.DEFAULT_OPTIONS.prefix,this._appendTimestamp=typeof e.appendTimestamp=="boolean"?e.appendTimestamp:wt.DEFAULT_OPTIONS.appendTimestamp,this._server=(0,c7.createServer)(this._requestHandler).unref(),this._serializer=new f7.PrometheusSerializer(this._prefix,this._appendTimestamp),this._baseUrl=`http://${this._host}:${this._port}/`,this._endpoint=(e.endpoint||wt.DEFAULT_OPTIONS.endpoint).replace(/^([^/])/,"/$1"),e.preventServerStart!==!0?this.startServer().then(n,o=>{Mo.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,l7.globalErrorHandler)(n):Mo.diag.debug("Prometheus exporter was stopped"),e()})}):(Mo.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},()=>{Mo.diag.debug(`Prometheus exporter server started: ${this._host}:${this._port}/${this._endpoint}`),n()})})),this._startServerPromise}getMetricsRequestHandler(e,n){this._exportMetrics(n)}};ol.PrometheusExporter=wt;wt.DEFAULT_OPTIONS={host:void 0,port:9464,endpoint:"/metrics",prefix:"",appendTimestamp:!1}});var B1=y(k1=>{"use strict";Object.defineProperty(k1,"__esModule",{value:!0})});var G1=y(jt=>{"use strict";var d7=jt&&jt.__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]}),zd=jt&&jt.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&d7(e,t,n)};Object.defineProperty(jt,"__esModule",{value:!0});zd(V1(),jt);zd($d(),jt);zd(B1(),jt)});var q1=je(Ol(),1),F1=je(Jn(),1),H1=je(cv(),1),j1=je(eC(),1),Y1=je(tC(),1),$1=je(kO(),1);import h7 from"path";import m7 from"http";import{Session as v7}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=Qd.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}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)}bu();var K1=je($M(),1),z1=je(WM(),1);Cn();yo();var Xd=je(C1(),1);w();var W1=je(G1(),1),y7=[{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,H1.default)(y7,{partial:!0}),_7=process.env.LOG_LEVEL?.toUpperCase();rR(Qe["log-format"]==="json",_7==="debug"?!0:Qe.debug);console.debug("Starting with",Qe.target);Qe.debug&&A.setLogger(new nh,ot.DEBUG);var X1=await Au.detect(),S7=new oo({resource:X1,readers:[new Vu({exporter:new K1.OTLPMetricExporter}),new W1.PrometheusExporter({port:4041})]}),Jd=new Xd.NodeTracerProvider({resource:X1}),E7=new z1.OTLPTraceExporter,T7=new vo(E7);Jd.addSpanProcessor(T7);Jd.register();Lo.setGlobalMeterProvider(S7);X.setGlobalTracerProvider(Jd);["SIGINT","SIGTERM"].forEach(t=>{process.on(t,()=>g7())});async function g7(){let t=X.getTracerProvider();t instanceof Xd.NodeTracerProvider&&t.shutdown().catch(console.error);let e=Lo.getMeterProvider();e instanceof oo&&e.shutdown().catch(console.error)}Lo.getMeter("processor").createGauge("up").record(1);Error.stackTraceLimit=20;var O7=h7.resolve(Qe["chains-config"]),A7=q1.default.readJsonSync(O7),b7=process.env.OVERRIDE_CONCURRENCY?parseInt(process.env.OVERRIDE_CONCURRENCY):void 0,x7=process.env.OVERRIDE_BATCH_COUNT?parseInt(process.env.OVERRIDE_BATCH_COUNT):void 0;Sr.INSTANCE.concurrency=b7??Qe.concurrency;Sr.INSTANCE.batchCount=x7??Qe["batch-count"];Sr.INSTANCE.chainQueryAPI=Qe["chainquery-server"];Sr.INSTANCE.priceFeedAPI=Qe["pricefeed-server"];for(let[t,e]of Object.entries(A7)){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,j1.createServer)({"grpc.max_send_message_length":384*1024*1024,"grpc.max_receive_message_length":384*1024*1024,"grpc.default_compression_algorithm":F1.compressionAlgorithms.gzip}).use((0,$1.openTelemetryServerMiddleware)()).use(Y1.errorDetailsServerMiddleware),Wd=new sh(async()=>{let t=await import(Qe.target);return console.debug("Module loaded",t),t},al.shutdown),N7=new Zo(Wd);al.add(Zd,N7);al.listen("0.0.0.0:"+Qe.port);console.log("Processor Server Started at:",Qe.port);var J1=4040,R7=m7.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 v7;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(){P7(0)}).on("uncaughtException",t=>{console.error("Uncaught Exception, please checking if await is properly used",t),Wd.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),Wd.unhandled=t)});function P7(t){al.forceShutdown(),console.log("RPC server shut down"),R7.close(function(){console.log("Http server shut down"),process.exit(t)})}export{g7 as shutdownProvider};
|
60
60
|
/*! Bundled license information:
|
61
61
|
|
62
62
|
safe-buffer/index.js:
|