@sentio/runtime 2.44.3 → 2.44.4-rc.1
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-IOO4AJPJ.js → chunk-4JZFB6MP.js} +14 -14
- package/lib/{chunk-IOO4AJPJ.js.map → chunk-4JZFB6MP.js.map} +1 -1
- package/lib/index.d.ts +8 -2
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/processor-runner.js +29 -29
- package/lib/processor-runner.js.map +1 -1
- package/package.json +1 -1
- package/src/plugin.ts +13 -3
- package/src/processor-runner.ts +44 -22
package/lib/processor-runner.js
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
2
|
import { createRequire as createRequireShim } from 'module'; const require = createRequireShim(import.meta.url);
|
3
|
-
import{A as
|
4
|
-
GFS4: `),console.error(t)});ie[ve]||(TE=global[ve]||[],mE(ie,TE),ie.close=function(t){function e(n,i){return t.call(ie,n,function(a){a||vE(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,Fi,{value:t}),e}(ie.close),ie.closeSync=function(t){function e(n){t.apply(ie,arguments),vE()}return Object.defineProperty(e,Fi,{value:t}),e}(ie.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Ar(ie[ve]),L("assert").equal(ie[ve].length,0)}));var TE;global[ve]||mE(global,ie[ve]);Ll.exports=Ml(GU(ie));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ie.__patched&&(Ll.exports=Ml(ie),ie.__patched=!0);function Ml(t){VU(t),t.gracefulify=Ml,t.createReadStream=G,t.createWriteStream=F;var e=t.readFile;t.readFile=n;function n(x,B,w){return typeof B=="function"&&(w=B,B=null),W(x,B,w);function W(z,ne,oe,se){return e(z,ne,function(Z){Z&&(Z.code==="EMFILE"||Z.code==="ENFILE")?Jr([W,[z,ne,oe],Z,se||Date.now(),Date.now()]):typeof oe=="function"&&oe.apply(this,arguments)})}}var i=t.writeFile;t.writeFile=a;function a(x,B,w,W){return typeof w=="function"&&(W=w,w=null),z(x,B,w,W);function z(ne,oe,se,Z,Te){return i(ne,oe,se,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Jr([z,[ne,oe,se,Z],re,Te||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(x,B,w,W){return typeof w=="function"&&(W=w,w=null),z(x,B,w,W);function z(ne,oe,se,Z,Te){return s(ne,oe,se,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Jr([z,[ne,oe,se,Z],re,Te||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}var r=t.copyFile;r&&(t.copyFile=u);function u(x,B,w,W){return typeof w=="function"&&(W=w,w=0),z(x,B,w,W);function z(ne,oe,se,Z,Te){return r(ne,oe,se,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Jr([z,[ne,oe,se,Z],re,Te||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}var l=t.readdir;t.readdir=p;var c=/^v[0-5]\./;function p(x,B,w){typeof B=="function"&&(w=B,B=null);var W=c.test(process.version)?function(oe,se,Z,Te){return l(oe,z(oe,se,Z,Te))}:function(oe,se,Z,Te){return l(oe,se,z(oe,se,Z,Te))};return W(x,B,w);function z(ne,oe,se,Z){return function(Te,re){Te&&(Te.code==="EMFILE"||Te.code==="ENFILE")?Jr([W,[ne,oe,se],Te,Z||Date.now(),Date.now()]):(re&&re.sort&&re.sort(),typeof se=="function"&&se.call(this,Te,re))}}}if(process.version.substr(0,4)==="v0.8"){var _=BU(t);A=_.ReadStream,N=_.WriteStream}var f=t.ReadStream;f&&(A.prototype=Object.create(f.prototype),A.prototype.open=O);var S=t.WriteStream;S&&(N.prototype=Object.create(S.prototype),N.prototype.open=D),Object.defineProperty(t,"ReadStream",{get:function(){return A},set:function(x){A=x},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return N},set:function(x){N=x},enumerable:!0,configurable:!0});var v=A;Object.defineProperty(t,"FileReadStream",{get:function(){return v},set:function(x){v=x},enumerable:!0,configurable:!0});var T=N;Object.defineProperty(t,"FileWriteStream",{get:function(){return T},set:function(x){T=x},enumerable:!0,configurable:!0});function A(x,B){return this instanceof A?(f.apply(this,arguments),this):A.apply(Object.create(A.prototype),arguments)}function O(){var x=this;j(x.path,x.flags,x.mode,function(B,w){B?(x.autoClose&&x.destroy(),x.emit("error",B)):(x.fd=w,x.emit("open",w),x.read())})}function N(x,B){return this instanceof N?(S.apply(this,arguments),this):N.apply(Object.create(N.prototype),arguments)}function D(){var x=this;j(x.path,x.flags,x.mode,function(B,w){B?(x.destroy(),x.emit("error",B)):(x.fd=w,x.emit("open",w))})}function G(x,B){return new t.ReadStream(x,B)}function F(x,B){return new t.WriteStream(x,B)}var ae=t.open;t.open=j;function j(x,B,w,W){return typeof w=="function"&&(W=w,w=null),z(x,B,w,W);function z(ne,oe,se,Z,Te){return ae(ne,oe,se,function(re,N7){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Jr([z,[ne,oe,se,Z],re,Te||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}return t}function Jr(t){Ar("ENQUEUE",t[0].name,t[1]),ie[ve].push(t),xl()}var Hi;function vE(){for(var t=Date.now(),e=0;e<ie[ve].length;++e)ie[ve][e].length>2&&(ie[ve][e][3]=t,ie[ve][e][4]=t);xl()}function xl(){if(clearTimeout(Hi),Hi=void 0,ie[ve].length!==0){var t=ie[ve].shift(),e=t[0],n=t[1],i=t[2],a=t[3],s=t[4];if(a===void 0)Ar("RETRY",e.name,n),e.apply(null,n);else if(Date.now()-a>=6e4){Ar("TIMEOUT",e.name,n);var o=n.pop();typeof o=="function"&&o.call(null,i)}else{var r=Date.now()-s,u=Math.max(s-a,1),l=Math.min(u*1.2,100);r>=l?(Ar("RETRY",e.name,n),e.apply(null,n.concat([a]))):ie[ve].push(t)}Hi===void 0&&(Hi=setTimeout(xl,0))}}});var Le=h(Ct=>{"use strict";var yE=Ee().fromCallback,xe=Qr(),HU=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(t=>typeof xe[t]=="function");Object.assign(Ct,xe);HU.forEach(t=>{Ct[t]=yE(xe[t])});Ct.exists=function(t,e){return typeof e=="function"?xe.exists(t,e):new Promise(n=>xe.exists(t,n))};Ct.read=function(t,e,n,i,a,s){return typeof s=="function"?xe.read(t,e,n,i,a,s):new Promise((o,r)=>{xe.read(t,e,n,i,a,(u,l,c)=>{if(u)return r(u);o({bytesRead:l,buffer:c})})})};Ct.write=function(t,e,...n){return typeof n[n.length-1]=="function"?xe.write(t,e,...n):new Promise((i,a)=>{xe.write(t,e,...n,(s,o,r)=>{if(s)return a(s);i({bytesWritten:o,buffer:r})})})};Ct.readv=function(t,e,...n){return typeof n[n.length-1]=="function"?xe.readv(t,e,...n):new Promise((i,a)=>{xe.readv(t,e,...n,(s,o,r)=>{if(s)return a(s);i({bytesRead:o,buffers:r})})})};Ct.writev=function(t,e,...n){return typeof n[n.length-1]=="function"?xe.writev(t,e,...n):new Promise((i,a)=>{xe.writev(t,e,...n,(s,o,r)=>{if(s)return a(s);i({bytesWritten:o,buffers:r})})})};typeof xe.realpath.native=="function"?Ct.realpath.native=yE(xe.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var OE=h((I7,AE)=>{"use strict";var FU=L("path");AE.exports.checkPath=function(e){if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(FU.parse(e).root,""))){let i=new Error(`Path contains invalid characters: ${e}`);throw i.code="EINVAL",i}}});var PE=h((C7,Il)=>{"use strict";var gE=Le(),{checkPath:NE}=OE(),RE=t=>{let e={mode:511};return typeof t=="number"?t:{...e,...t}.mode};Il.exports.makeDir=async(t,e)=>(NE(t),gE.mkdir(t,{mode:RE(e),recursive:!0}));Il.exports.makeDirSync=(t,e)=>(NE(t),gE.mkdirSync(t,{mode:RE(e),recursive:!0}))});var ut=h((w7,bE)=>{"use strict";var YU=Ee().fromPromise,{makeDir:qU,makeDirSync:Cl}=PE(),wl=YU(qU);bE.exports={mkdirs:wl,mkdirsSync:Cl,mkdirp:wl,mkdirpSync:Cl,ensureDir:wl,ensureDirSync:Cl}});var qt=h((U7,xE)=>{"use strict";var jU=Ee().fromPromise,ME=Le();function $U(t){return ME.access(t).then(()=>!0).catch(()=>!1)}xE.exports={pathExists:jU($U),pathExistsSync:ME.existsSync}});var Ul=h((D7,LE)=>{"use strict";var Zr=Le(),KU=Ee().fromPromise;async function WU(t,e,n){let i=await Zr.open(t,"r+"),a=null;try{await Zr.futimes(i,e,n)}finally{try{await Zr.close(i)}catch(s){a=s}}if(a)throw a}function zU(t,e,n){let i=Zr.openSync(t,"r+");return Zr.futimesSync(i,e,n),Zr.closeSync(i)}LE.exports={utimesMillis:KU(WU),utimesMillisSync:zU}});var Or=h((V7,UE)=>{"use strict";var en=Le(),_e=L("path"),IE=Ee().fromPromise;function XU(t,e,n){let i=n.dereference?a=>en.stat(a,{bigint:!0}):a=>en.lstat(a,{bigint:!0});return Promise.all([i(t),i(e).catch(a=>{if(a.code==="ENOENT")return null;throw a})]).then(([a,s])=>({srcStat:a,destStat:s}))}function JU(t,e,n){let i,a=n.dereference?o=>en.statSync(o,{bigint:!0}):o=>en.lstatSync(o,{bigint:!0}),s=a(t);try{i=a(e)}catch(o){if(o.code==="ENOENT")return{srcStat:s,destStat:null};throw o}return{srcStat:s,destStat:i}}async function QU(t,e,n,i){let{srcStat:a,destStat:s}=await XU(t,e,i);if(s){if(oo(a,s)){let o=_e.basename(t),r=_e.basename(e);if(n==="move"&&o!==r&&o.toLowerCase()===r.toLowerCase())return{srcStat:a,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(a.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`);if(!a.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`)}if(a.isDirectory()&&Dl(t,e))throw new Error(Yi(t,e,n));return{srcStat:a,destStat:s}}function ZU(t,e,n,i){let{srcStat:a,destStat:s}=JU(t,e,i);if(s){if(oo(a,s)){let o=_e.basename(t),r=_e.basename(e);if(n==="move"&&o!==r&&o.toLowerCase()===r.toLowerCase())return{srcStat:a,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(a.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`);if(!a.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`)}if(a.isDirectory()&&Dl(t,e))throw new Error(Yi(t,e,n));return{srcStat:a,destStat:s}}async function CE(t,e,n,i){let a=_e.resolve(_e.dirname(t)),s=_e.resolve(_e.dirname(n));if(s===a||s===_e.parse(s).root)return;let o;try{o=await en.stat(s,{bigint:!0})}catch(r){if(r.code==="ENOENT")return;throw r}if(oo(e,o))throw new Error(Yi(t,n,i));return CE(t,e,s,i)}function wE(t,e,n,i){let a=_e.resolve(_e.dirname(t)),s=_e.resolve(_e.dirname(n));if(s===a||s===_e.parse(s).root)return;let o;try{o=en.statSync(s,{bigint:!0})}catch(r){if(r.code==="ENOENT")return;throw r}if(oo(e,o))throw new Error(Yi(t,n,i));return wE(t,e,s,i)}function oo(t,e){return e.ino&&e.dev&&e.ino===t.ino&&e.dev===t.dev}function Dl(t,e){let n=_e.resolve(t).split(_e.sep).filter(a=>a),i=_e.resolve(e).split(_e.sep).filter(a=>a);return n.every((a,s)=>i[s]===a)}function Yi(t,e,n){return`Cannot ${n} '${t}' to a subdirectory of itself, '${e}'.`}UE.exports={checkPaths:IE(QU),checkPathsSync:ZU,checkParentPaths:IE(CE),checkParentPathsSync:wE,isSrcSubdir:Dl,areIdentical:oo}});var kE=h((B7,GE)=>{"use strict";var Pe=Le(),io=L("path"),{mkdirs:eD}=ut(),{pathExists:tD}=qt(),{utimesMillis:rD}=Ul(),ao=Or();async function nD(t,e,n={}){typeof n=="function"&&(n={filter:n}),n.clobber="clobber"in n?!!n.clobber:!0,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
3
|
+
import{A as at,B as iE,C as Xr,D as aE,E as sE,F as Et,G as J,H as uE,I as Ft,J as Gi,K as _t,L as lE,M as St,N as cE,O as fE,P as He,Q as g,R as ki,S as st,T as X,U as Re,V as b,a as L,b as m,c as h,ca as pE,d as it,e as Ke,f as Y,h as MU,i as Zd,k as eE,l as tE,m as rE,r as yr,s as Rl,t as xU,u as oo,v as nE,w as oE,x as LU,y as IU,z as Pl}from"./chunk-4JZFB6MP.js";var Ee=h(bl=>{"use strict";bl.fromCallback=function(t){return Object.defineProperty(function(...e){if(typeof e[e.length-1]=="function")t.apply(this,e);else return new Promise((n,i)=>{e.push((a,s)=>a!=null?i(a):n(s)),t.apply(this,e)})},"name",{value:t.name})};bl.fromPromise=function(t){return Object.defineProperty(function(...e){let n=e[e.length-1];if(typeof n!="function")return t.apply(this,e);e.pop(),t.apply(this,e).then(i=>n(null,i),n)},"name",{value:t.name})}});var EE=h((b7,dE)=>{var Yt=L("constants"),CU=process.cwd,Hi=null,wU=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Hi||(Hi=CU.call(process)),Hi};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Ml=process.chdir,process.chdir=function(t){Hi=null,Ml.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Ml));var Ml;dE.exports=UU;function UU(t){Yt.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||n(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=i(t.chmod),t.fchmod=i(t.fchmod),t.lchmod=i(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=a(t.chmodSync),t.fchmodSync=a(t.fchmodSync),t.lchmodSync=a(t.lchmodSync),t.stat=r(t.stat),t.fstat=r(t.fstat),t.lstat=r(t.lstat),t.statSync=u(t.statSync),t.fstatSync=u(t.fstatSync),t.lstatSync=u(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(c,p,_){_&&process.nextTick(_)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(c,p,_,f){f&&process.nextTick(f)},t.lchownSync=function(){}),wU==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(c){function p(_,f,S){var v=Date.now(),T=0;c(_,f,function A(O){if(O&&(O.code==="EACCES"||O.code==="EPERM"||O.code==="EBUSY")&&Date.now()-v<6e4){setTimeout(function(){t.stat(f,function(N,D){N&&N.code==="ENOENT"?c(_,f,A):S(O)})},T),T<100&&(T+=10);return}S&&S(O)})}return Object.setPrototypeOf&&Object.setPrototypeOf(p,c),p}(t.rename)),t.read=typeof t.read!="function"?t.read:function(c){function p(_,f,S,v,T,A){var O;if(A&&typeof A=="function"){var N=0;O=function(D,G,F){if(D&&D.code==="EAGAIN"&&N<10)return N++,c.call(t,_,f,S,v,T,O);A.apply(this,arguments)}}return c.call(t,_,f,S,v,T,O)}return Object.setPrototypeOf&&Object.setPrototypeOf(p,c),p}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(c){return function(p,_,f,S,v){for(var T=0;;)try{return c.call(t,p,_,f,S,v)}catch(A){if(A.code==="EAGAIN"&&T<10){T++;continue}throw A}}}(t.readSync);function e(c){c.lchmod=function(p,_,f){c.open(p,Yt.O_WRONLY|Yt.O_SYMLINK,_,function(S,v){if(S){f&&f(S);return}c.fchmod(v,_,function(T){c.close(v,function(A){f&&f(T||A)})})})},c.lchmodSync=function(p,_){var f=c.openSync(p,Yt.O_WRONLY|Yt.O_SYMLINK,_),S=!0,v;try{v=c.fchmodSync(f,_),S=!1}finally{if(S)try{c.closeSync(f)}catch{}else c.closeSync(f)}return v}}function n(c){Yt.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(p,_,f,S){c.open(p,Yt.O_SYMLINK,function(v,T){if(v){S&&S(v);return}c.futimes(T,_,f,function(A){c.close(T,function(O){S&&S(A||O)})})})},c.lutimesSync=function(p,_,f){var S=c.openSync(p,Yt.O_SYMLINK),v,T=!0;try{v=c.futimesSync(S,_,f),T=!1}finally{if(T)try{c.closeSync(S)}catch{}else c.closeSync(S)}return v}):c.futimes&&(c.lutimes=function(p,_,f,S){S&&process.nextTick(S)},c.lutimesSync=function(){})}function i(c){return c&&function(p,_,f){return c.call(t,p,_,function(S){l(S)&&(S=null),f&&f.apply(this,arguments)})}}function a(c){return c&&function(p,_){try{return c.call(t,p,_)}catch(f){if(!l(f))throw f}}}function s(c){return c&&function(p,_,f,S){return c.call(t,p,_,f,function(v){l(v)&&(v=null),S&&S.apply(this,arguments)})}}function o(c){return c&&function(p,_,f){try{return c.call(t,p,_,f)}catch(S){if(!l(S))throw S}}}function r(c){return c&&function(p,_,f){typeof _=="function"&&(f=_,_=null);function S(v,T){T&&(T.uid<0&&(T.uid+=4294967296),T.gid<0&&(T.gid+=4294967296)),f&&f.apply(this,arguments)}return _?c.call(t,p,_,S):c.call(t,p,S)}}function u(c){return c&&function(p,_){var f=_?c.call(t,p,_):c.call(t,p);return f&&(f.uid<0&&(f.uid+=4294967296),f.gid<0&&(f.gid+=4294967296)),f}}function l(c){if(!c||c.code==="ENOSYS")return!0;var p=!process.getuid||process.getuid()!==0;return!!(p&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var hE=h((M7,SE)=>{var _E=L("stream").Stream;SE.exports=DU;function DU(t){return{ReadStream:e,WriteStream:n};function e(i,a){if(!(this instanceof e))return new e(i,a);_E.call(this);var s=this;this.path=i,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,a=a||{};for(var o=Object.keys(a),r=0,u=o.length;r<u;r++){var l=o[r];this[l]=a[l]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}t.open(this.path,this.flags,this.mode,function(c,p){if(c){s.emit("error",c),s.readable=!1;return}s.fd=p,s.emit("open",p),s._read()})}function n(i,a){if(!(this instanceof n))return new n(i,a);_E.call(this),this.path=i,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,a=a||{};for(var s=Object.keys(a),o=0,r=s.length;o<r;o++){var u=s[o];this[u]=a[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var vE=h((x7,TE)=>{"use strict";TE.exports=BU;var VU=Object.getPrototypeOf||function(t){return t.__proto__};function BU(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:VU(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}});var Qr=h((L7,Il)=>{var ie=L("fs"),GU=EE(),kU=hE(),HU=vE(),Fi=L("util"),ve,qi;typeof Symbol=="function"&&typeof Symbol.for=="function"?(ve=Symbol.for("graceful-fs.queue"),qi=Symbol.for("graceful-fs.previous")):(ve="___graceful-fs.queue",qi="___graceful-fs.previous");function FU(){}function AE(t,e){Object.defineProperty(t,ve,{get:function(){return e}})}var Ar=FU;Fi.debuglog?Ar=Fi.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Ar=function(){var t=Fi.format.apply(Fi,arguments);t="GFS4: "+t.split(/\n/).join(`
|
4
|
+
GFS4: `),console.error(t)});ie[ve]||(mE=global[ve]||[],AE(ie,mE),ie.close=function(t){function e(n,i){return t.call(ie,n,function(a){a||yE(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,qi,{value:t}),e}(ie.close),ie.closeSync=function(t){function e(n){t.apply(ie,arguments),yE()}return Object.defineProperty(e,qi,{value:t}),e}(ie.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Ar(ie[ve]),L("assert").equal(ie[ve].length,0)}));var mE;global[ve]||AE(global,ie[ve]);Il.exports=xl(HU(ie));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ie.__patched&&(Il.exports=xl(ie),ie.__patched=!0);function xl(t){GU(t),t.gracefulify=xl,t.createReadStream=G,t.createWriteStream=F;var e=t.readFile;t.readFile=n;function n(x,B,w){return typeof B=="function"&&(w=B,B=null),W(x,B,w);function W(z,ne,oe,se){return e(z,ne,function(Z){Z&&(Z.code==="EMFILE"||Z.code==="ENFILE")?Jr([W,[z,ne,oe],Z,se||Date.now(),Date.now()]):typeof oe=="function"&&oe.apply(this,arguments)})}}var i=t.writeFile;t.writeFile=a;function a(x,B,w,W){return typeof w=="function"&&(W=w,w=null),z(x,B,w,W);function z(ne,oe,se,Z,Te){return i(ne,oe,se,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Jr([z,[ne,oe,se,Z],re,Te||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(x,B,w,W){return typeof w=="function"&&(W=w,w=null),z(x,B,w,W);function z(ne,oe,se,Z,Te){return s(ne,oe,se,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Jr([z,[ne,oe,se,Z],re,Te||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}var r=t.copyFile;r&&(t.copyFile=u);function u(x,B,w,W){return typeof w=="function"&&(W=w,w=0),z(x,B,w,W);function z(ne,oe,se,Z,Te){return r(ne,oe,se,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Jr([z,[ne,oe,se,Z],re,Te||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}var l=t.readdir;t.readdir=p;var c=/^v[0-5]\./;function p(x,B,w){typeof B=="function"&&(w=B,B=null);var W=c.test(process.version)?function(oe,se,Z,Te){return l(oe,z(oe,se,Z,Te))}:function(oe,se,Z,Te){return l(oe,se,z(oe,se,Z,Te))};return W(x,B,w);function z(ne,oe,se,Z){return function(Te,re){Te&&(Te.code==="EMFILE"||Te.code==="ENFILE")?Jr([W,[ne,oe,se],Te,Z||Date.now(),Date.now()]):(re&&re.sort&&re.sort(),typeof se=="function"&&se.call(this,Te,re))}}}if(process.version.substr(0,4)==="v0.8"){var _=kU(t);A=_.ReadStream,N=_.WriteStream}var f=t.ReadStream;f&&(A.prototype=Object.create(f.prototype),A.prototype.open=O);var S=t.WriteStream;S&&(N.prototype=Object.create(S.prototype),N.prototype.open=D),Object.defineProperty(t,"ReadStream",{get:function(){return A},set:function(x){A=x},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return N},set:function(x){N=x},enumerable:!0,configurable:!0});var v=A;Object.defineProperty(t,"FileReadStream",{get:function(){return v},set:function(x){v=x},enumerable:!0,configurable:!0});var T=N;Object.defineProperty(t,"FileWriteStream",{get:function(){return T},set:function(x){T=x},enumerable:!0,configurable:!0});function A(x,B){return this instanceof A?(f.apply(this,arguments),this):A.apply(Object.create(A.prototype),arguments)}function O(){var x=this;j(x.path,x.flags,x.mode,function(B,w){B?(x.autoClose&&x.destroy(),x.emit("error",B)):(x.fd=w,x.emit("open",w),x.read())})}function N(x,B){return this instanceof N?(S.apply(this,arguments),this):N.apply(Object.create(N.prototype),arguments)}function D(){var x=this;j(x.path,x.flags,x.mode,function(B,w){B?(x.destroy(),x.emit("error",B)):(x.fd=w,x.emit("open",w))})}function G(x,B){return new t.ReadStream(x,B)}function F(x,B){return new t.WriteStream(x,B)}var ae=t.open;t.open=j;function j(x,B,w,W){return typeof w=="function"&&(W=w,w=null),z(x,B,w,W);function z(ne,oe,se,Z,Te){return ae(ne,oe,se,function(re,R7){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Jr([z,[ne,oe,se,Z],re,Te||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}return t}function Jr(t){Ar("ENQUEUE",t[0].name,t[1]),ie[ve].push(t),Ll()}var Yi;function yE(){for(var t=Date.now(),e=0;e<ie[ve].length;++e)ie[ve][e].length>2&&(ie[ve][e][3]=t,ie[ve][e][4]=t);Ll()}function Ll(){if(clearTimeout(Yi),Yi=void 0,ie[ve].length!==0){var t=ie[ve].shift(),e=t[0],n=t[1],i=t[2],a=t[3],s=t[4];if(a===void 0)Ar("RETRY",e.name,n),e.apply(null,n);else if(Date.now()-a>=6e4){Ar("TIMEOUT",e.name,n);var o=n.pop();typeof o=="function"&&o.call(null,i)}else{var r=Date.now()-s,u=Math.max(s-a,1),l=Math.min(u*1.2,100);r>=l?(Ar("RETRY",e.name,n),e.apply(null,n.concat([a]))):ie[ve].push(t)}Yi===void 0&&(Yi=setTimeout(Ll,0))}}});var Le=h(Ct=>{"use strict";var OE=Ee().fromCallback,xe=Qr(),YU=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(t=>typeof xe[t]=="function");Object.assign(Ct,xe);YU.forEach(t=>{Ct[t]=OE(xe[t])});Ct.exists=function(t,e){return typeof e=="function"?xe.exists(t,e):new Promise(n=>xe.exists(t,n))};Ct.read=function(t,e,n,i,a,s){return typeof s=="function"?xe.read(t,e,n,i,a,s):new Promise((o,r)=>{xe.read(t,e,n,i,a,(u,l,c)=>{if(u)return r(u);o({bytesRead:l,buffer:c})})})};Ct.write=function(t,e,...n){return typeof n[n.length-1]=="function"?xe.write(t,e,...n):new Promise((i,a)=>{xe.write(t,e,...n,(s,o,r)=>{if(s)return a(s);i({bytesWritten:o,buffer:r})})})};Ct.readv=function(t,e,...n){return typeof n[n.length-1]=="function"?xe.readv(t,e,...n):new Promise((i,a)=>{xe.readv(t,e,...n,(s,o,r)=>{if(s)return a(s);i({bytesRead:o,buffers:r})})})};Ct.writev=function(t,e,...n){return typeof n[n.length-1]=="function"?xe.writev(t,e,...n):new Promise((i,a)=>{xe.writev(t,e,...n,(s,o,r)=>{if(s)return a(s);i({bytesWritten:o,buffers:r})})})};typeof xe.realpath.native=="function"?Ct.realpath.native=OE(xe.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var NE=h((C7,gE)=>{"use strict";var qU=L("path");gE.exports.checkPath=function(e){if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(qU.parse(e).root,""))){let i=new Error(`Path contains invalid characters: ${e}`);throw i.code="EINVAL",i}}});var ME=h((w7,Cl)=>{"use strict";var RE=Le(),{checkPath:PE}=NE(),bE=t=>{let e={mode:511};return typeof t=="number"?t:{...e,...t}.mode};Cl.exports.makeDir=async(t,e)=>(PE(t),RE.mkdir(t,{mode:bE(e),recursive:!0}));Cl.exports.makeDirSync=(t,e)=>(PE(t),RE.mkdirSync(t,{mode:bE(e),recursive:!0}))});var ut=h((U7,xE)=>{"use strict";var jU=Ee().fromPromise,{makeDir:$U,makeDirSync:wl}=ME(),Ul=jU($U);xE.exports={mkdirs:Ul,mkdirsSync:wl,mkdirp:Ul,mkdirpSync:wl,ensureDir:Ul,ensureDirSync:wl}});var qt=h((D7,IE)=>{"use strict";var KU=Ee().fromPromise,LE=Le();function WU(t){return LE.access(t).then(()=>!0).catch(()=>!1)}IE.exports={pathExists:KU(WU),pathExistsSync:LE.existsSync}});var Dl=h((V7,CE)=>{"use strict";var Zr=Le(),zU=Ee().fromPromise;async function XU(t,e,n){let i=await Zr.open(t,"r+"),a=null;try{await Zr.futimes(i,e,n)}finally{try{await Zr.close(i)}catch(s){a=s}}if(a)throw a}function JU(t,e,n){let i=Zr.openSync(t,"r+");return Zr.futimesSync(i,e,n),Zr.closeSync(i)}CE.exports={utimesMillis:zU(XU),utimesMillisSync:JU}});var Or=h((B7,VE)=>{"use strict";var en=Le(),_e=L("path"),wE=Ee().fromPromise;function QU(t,e,n){let i=n.dereference?a=>en.stat(a,{bigint:!0}):a=>en.lstat(a,{bigint:!0});return Promise.all([i(t),i(e).catch(a=>{if(a.code==="ENOENT")return null;throw a})]).then(([a,s])=>({srcStat:a,destStat:s}))}function ZU(t,e,n){let i,a=n.dereference?o=>en.statSync(o,{bigint:!0}):o=>en.lstatSync(o,{bigint:!0}),s=a(t);try{i=a(e)}catch(o){if(o.code==="ENOENT")return{srcStat:s,destStat:null};throw o}return{srcStat:s,destStat:i}}async function eD(t,e,n,i){let{srcStat:a,destStat:s}=await QU(t,e,i);if(s){if(io(a,s)){let o=_e.basename(t),r=_e.basename(e);if(n==="move"&&o!==r&&o.toLowerCase()===r.toLowerCase())return{srcStat:a,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(a.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`);if(!a.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`)}if(a.isDirectory()&&Vl(t,e))throw new Error(ji(t,e,n));return{srcStat:a,destStat:s}}function tD(t,e,n,i){let{srcStat:a,destStat:s}=ZU(t,e,i);if(s){if(io(a,s)){let o=_e.basename(t),r=_e.basename(e);if(n==="move"&&o!==r&&o.toLowerCase()===r.toLowerCase())return{srcStat:a,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(a.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`);if(!a.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`)}if(a.isDirectory()&&Vl(t,e))throw new Error(ji(t,e,n));return{srcStat:a,destStat:s}}async function UE(t,e,n,i){let a=_e.resolve(_e.dirname(t)),s=_e.resolve(_e.dirname(n));if(s===a||s===_e.parse(s).root)return;let o;try{o=await en.stat(s,{bigint:!0})}catch(r){if(r.code==="ENOENT")return;throw r}if(io(e,o))throw new Error(ji(t,n,i));return UE(t,e,s,i)}function DE(t,e,n,i){let a=_e.resolve(_e.dirname(t)),s=_e.resolve(_e.dirname(n));if(s===a||s===_e.parse(s).root)return;let o;try{o=en.statSync(s,{bigint:!0})}catch(r){if(r.code==="ENOENT")return;throw r}if(io(e,o))throw new Error(ji(t,n,i));return DE(t,e,s,i)}function io(t,e){return e.ino&&e.dev&&e.ino===t.ino&&e.dev===t.dev}function Vl(t,e){let n=_e.resolve(t).split(_e.sep).filter(a=>a),i=_e.resolve(e).split(_e.sep).filter(a=>a);return n.every((a,s)=>i[s]===a)}function ji(t,e,n){return`Cannot ${n} '${t}' to a subdirectory of itself, '${e}'.`}VE.exports={checkPaths:wE(eD),checkPathsSync:tD,checkParentPaths:wE(UE),checkParentPathsSync:DE,isSrcSubdir:Vl,areIdentical:io}});var FE=h((G7,HE)=>{"use strict";var Pe=Le(),ao=L("path"),{mkdirs:rD}=ut(),{pathExists:nD}=qt(),{utimesMillis:oD}=Dl(),so=Or();async function iD(t,e,n={}){typeof n=="function"&&(n={filter:n}),n.clobber="clobber"in n?!!n.clobber:!0,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
5
5
|
|
6
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001");let{srcStat:i,destStat:a}=await
|
6
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001");let{srcStat:i,destStat:a}=await so.checkPaths(t,e,"copy",n);if(await so.checkParentPaths(t,i,e,"copy"),!await GE(t,e,n))return;let o=ao.dirname(e);await nD(o)||await rD(o),await kE(a,t,e,n)}async function GE(t,e,n){return n.filter?n.filter(t,e):!0}async function kE(t,e,n,i){let s=await(i.dereference?Pe.stat:Pe.lstat)(e);if(s.isDirectory())return lD(s,t,e,n,i);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return aD(s,t,e,n,i);if(s.isSymbolicLink())return cD(t,e,n,i);throw s.isSocket()?new Error(`Cannot copy a socket file: ${e}`):s.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}async function aD(t,e,n,i,a){if(!e)return BE(t,n,i,a);if(a.overwrite)return await Pe.unlink(i),BE(t,n,i,a);if(a.errorOnExist)throw new Error(`'${i}' already exists`)}async function BE(t,e,n,i){if(await Pe.copyFile(e,n),i.preserveTimestamps){sD(t.mode)&&await uD(n,t.mode);let a=await Pe.stat(e);await oD(n,a.atime,a.mtime)}return Pe.chmod(n,t.mode)}function sD(t){return(t&128)===0}function uD(t,e){return Pe.chmod(t,e|128)}async function lD(t,e,n,i,a){e||await Pe.mkdir(i);let s=await Pe.readdir(n);await Promise.all(s.map(async o=>{let r=ao.join(n,o),u=ao.join(i,o);if(!await GE(r,u,a))return;let{destStat:c}=await so.checkPaths(r,u,"copy",a);return kE(c,r,u,a)})),e||await Pe.chmod(i,t.mode)}async function cD(t,e,n,i){let a=await Pe.readlink(e);if(i.dereference&&(a=ao.resolve(process.cwd(),a)),!t)return Pe.symlink(a,n);let s=null;try{s=await Pe.readlink(n)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return Pe.symlink(a,n);throw o}if(i.dereference&&(s=ao.resolve(process.cwd(),s)),so.isSrcSubdir(a,s))throw new Error(`Cannot copy '${a}' to a subdirectory of itself, '${s}'.`);if(so.isSrcSubdir(s,a))throw new Error(`Cannot overwrite '${s}' with '${a}'.`);return await Pe.unlink(n),Pe.symlink(a,n)}HE.exports=iD});var KE=h((k7,$E)=>{"use strict";var Ie=Qr(),uo=L("path"),fD=ut().mkdirsSync,pD=Dl().utimesMillisSync,lo=Or();function dD(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:i,destStat:a}=
|
9
|
-
`,finalEOL:n=!0,replacer:i=null,spaces:a}={}){let s=n?e:"";return JSON.stringify(t,i,a).replace(/\n/g,e)+s}function ZD(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t.replace(/^\uFEFF/,"")}M_.exports={stringify:QD,stripBom:ZD}});var C_=h((X7,I_)=>{var tn;try{tn=Qr()}catch{tn=L("fs")}var $i=Ee(),{stringify:x_,stripBom:L_}=ji();async function e1(t,e={}){typeof e=="string"&&(e={encoding:e});let n=e.fs||tn,i="throws"in e?e.throws:!0,a=await $i.fromCallback(n.readFile)(t,e);a=L_(a);let s;try{s=JSON.parse(a,e?e.reviver:null)}catch(o){if(i)throw o.message=`${t}: ${o.message}`,o;return null}return s}var t1=$i.fromPromise(e1);function r1(t,e={}){typeof e=="string"&&(e={encoding:e});let n=e.fs||tn,i="throws"in e?e.throws:!0;try{let a=n.readFileSync(t,e);return a=L_(a),JSON.parse(a,e.reviver)}catch(a){if(i)throw a.message=`${t}: ${a.message}`,a;return null}}async function n1(t,e,n={}){let i=n.fs||tn,a=x_(e,n);await $i.fromCallback(i.writeFile)(t,a,n)}var o1=$i.fromPromise(n1);function i1(t,e,n={}){let i=n.fs||tn,a=x_(e,n);return i.writeFileSync(t,a,n)}var a1={readFile:t1,readFileSync:r1,writeFile:o1,writeFileSync:i1};I_.exports=a1});var U_=h((J7,w_)=>{"use strict";var Ki=C_();w_.exports={readJson:Ki.readFile,readJsonSync:Ki.readFileSync,writeJson:Ki.writeFile,writeJsonSync:Ki.writeFileSync}});var Wi=h((Q7,B_)=>{"use strict";var s1=Ee().fromPromise,Bl=Le(),D_=L("path"),V_=ut(),u1=qt().pathExists;async function l1(t,e,n="utf-8"){let i=D_.dirname(t);return await u1(i)||await V_.mkdirs(i),Bl.writeFile(t,e,n)}function c1(t,...e){let n=D_.dirname(t);Bl.existsSync(n)||V_.mkdirsSync(n),Bl.writeFileSync(t,...e)}B_.exports={outputFile:s1(l1),outputFileSync:c1}});var k_=h((Z7,G_)=>{"use strict";var{stringify:f1}=ji(),{outputFile:p1}=Wi();async function d1(t,e,n={}){let i=f1(e,n);await p1(t,i,n)}G_.exports=d1});var F_=h((eQ,H_)=>{"use strict";var{stringify:E1}=ji(),{outputFileSync:_1}=Wi();function S1(t,e,n){let i=E1(e,n);_1(t,i,n)}H_.exports=S1});var q_=h((tQ,Y_)=>{"use strict";var h1=Ee().fromPromise,Ce=U_();Ce.outputJson=h1(k_());Ce.outputJsonSync=F_();Ce.outputJSON=Ce.outputJson;Ce.outputJSONSync=Ce.outputJsonSync;Ce.writeJSON=Ce.writeJson;Ce.writeJSONSync=Ce.writeJsonSync;Ce.readJSON=Ce.readJson;Ce.readJSONSync=Ce.readJsonSync;Y_.exports=Ce});var z_=h((rQ,W_)=>{"use strict";var T1=Le(),j_=L("path"),{copy:v1}=qi(),{remove:K_}=lo(),{mkdirp:m1}=ut(),{pathExists:y1}=qt(),$_=Or();async function A1(t,e,n={}){let i=n.overwrite||n.clobber||!1,{srcStat:a,isChangingCase:s=!1}=await $_.checkPaths(t,e,"move",n);await $_.checkParentPaths(t,a,e,"move");let o=j_.dirname(e);return j_.parse(o).root!==o&&await m1(o),O1(t,e,i,s)}async function O1(t,e,n,i){if(!i){if(n)await K_(e);else if(await y1(e))throw new Error("dest already exists.")}try{await T1.rename(t,e)}catch(a){if(a.code!=="EXDEV")throw a;await g1(t,e,n)}}async function g1(t,e,n){return await v1(t,e,{overwrite:n,errorOnExist:!0,preserveTimestamps:!0}),K_(t)}W_.exports=A1});var eS=h((nQ,Z_)=>{"use strict";var J_=Qr(),kl=L("path"),N1=qi().copySync,Q_=lo().removeSync,R1=ut().mkdirpSync,X_=Or();function P1(t,e,n){n=n||{};let i=n.overwrite||n.clobber||!1,{srcStat:a,isChangingCase:s=!1}=X_.checkPathsSync(t,e,"move",n);return X_.checkParentPathsSync(t,a,e,"move"),b1(e)||R1(kl.dirname(e)),M1(t,e,i,s)}function b1(t){let e=kl.dirname(t);return kl.parse(e).root===e}function M1(t,e,n,i){if(i)return Gl(t,e,n);if(n)return Q_(e),Gl(t,e,n);if(J_.existsSync(e))throw new Error("dest already exists.");return Gl(t,e,n)}function Gl(t,e,n){try{J_.renameSync(t,e)}catch(i){if(i.code!=="EXDEV")throw i;return x1(t,e,n)}}function x1(t,e,n){return N1(t,e,{overwrite:n,errorOnExist:!0,preserveTimestamps:!0}),Q_(t)}Z_.exports=P1});var rS=h((oQ,tS)=>{"use strict";var L1=Ee().fromPromise;tS.exports={move:L1(z_()),moveSync:eS()}});var Hl=h((iQ,nS)=>{"use strict";nS.exports={...Le(),...qi(),...r_(),...b_(),...q_(),...ut(),...rS(),...Wi(),...qt(),...lo()}});var pS=h((aQ,fS)=>{"use strict";function I1(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var Fl=I1(bU());function C1(t){return typeof t=="object"&&t!==null}function w1(t){return C1(t)&&typeof t.length=="number"}function Eo(t){return Array.isArray(t)?t:t===void 0?[]:w1(t)||t instanceof Set?Array.from(t):[t]}function U1(t){return typeof t=="object"&&t!==null}function D1(t){return U1(t)&&typeof t.length=="number"}function oS(t){return Array.isArray(t)?t:t===void 0?[]:D1(t)?Array.prototype.slice.call(t):[t]}function uS(t,e){let n=[],i=oS(arguments);return i.splice(0,2),oS(t).forEach((a,s)=>{let o=[];i.forEach(r=>{typeof r=="function"?o=o.concat(r(a)):o.push(r)}),e(a)&&n.push({index:s,replaceWithValue:o})}),n.reverse().forEach(a=>{let s=[a.index,1].concat(a.replaceWithValue);t.splice.apply(t,s)}),t}var pe={short:/^-([^\d-])$/,long:/^--(\S+)/,combinedShort:/^-[^\d-]{2,}$/,optEquals:/^(--\S+?)=(.*)/},Yl=class extends Array{load(e){if(this.clear(),e&&e!==process.argv)e=Eo(e);else{e=process.argv.slice(0);let n=process.execArgv.some(k1)?1:2;e.splice(0,n)}e.forEach(n=>this.push(String(n)))}clear(){this.length=0}expandOptionEqualsNotation(){if(this.some(e=>pe.optEquals.test(e))){let e=[];this.forEach(n=>{let i=n.match(pe.optEquals);i?e.push(i[1],i[2]):e.push(n)}),this.clear(),this.load(e)}}expandGetoptNotation(){this.hasCombinedShortOptions()&&uS(this,pe.combinedShort,V1)}hasCombinedShortOptions(){return this.some(e=>pe.combinedShort.test(e))}static from(e){let n=new this;return n.load(e),n}};function V1(t){return t=t.slice(1),t.split("").map(e=>"-"+e)}function Kl(t){return pe.optEquals.test(t)}function Wl(t){return(pe.short.test(t)||pe.long.test(t))&&!pe.optEquals.test(t)}function B1(t){return pe.long.test(t)&&!Kl(t)}function iS(t){return pe.short.test(t)?t.match(pe.short)[1]:B1(t)?t.match(pe.long)[1]:Kl(t)?t.match(pe.optEquals)[1].replace(/^--/,""):null}function G1(t){return!(Wl(t)||pe.combinedShort.test(t)||pe.optEquals.test(t))}function k1(t){return["--eval","-e"].indexOf(t)>-1||t.startsWith("--eval=")}function H1(t){return!isNaN(parseFloat(t))&&isFinite(t)}function F1(t){return t!==null&&typeof t=="object"&&t.constructor===Object}function Y1(t){return lS(t)&&typeof t.length=="number"}function lS(t){return typeof t=="object"&&t!==null}function zl(t){return typeof t<"u"}function q1(t){return typeof t=="string"}function j1(t){return typeof t=="boolean"}function cS(t){return typeof t=="function"}function $1(t){return cS(t)?/^class /.test(Function.prototype.toString.call(t)):!1}function K1(t){if(t===null)return!0;switch(typeof t){case"string":case"number":case"symbol":case"undefined":case"boolean":return!0;default:return!1}}function W1(t){if(t){let e=zl(Promise)&&t instanceof Promise,n=t.then&&typeof t.then=="function";return!!(e||n)}else return!1}function z1(t){return t===null||!zl(t)?!1:typeof t[Symbol.iterator]=="function"||typeof t[Symbol.asyncIterator]=="function"}var Ke={isNumber:H1,isString:q1,isBoolean:j1,isPlainObject:F1,isArrayLike:Y1,isObject:lS,isDefined:zl,isFunction:cS,isClass:$1,isPrimitive:K1,isPromise:W1,isIterable:z1},fo=class{constructor(e){this.name=e.name,this.type=e.type||String,this.alias=e.alias,this.multiple=e.multiple,this.lazyMultiple=e.lazyMultiple,this.defaultOption=e.defaultOption,this.defaultValue=e.defaultValue,this.group=e.group;for(let n in e)this[n]||(this[n]=e[n])}isBoolean(){return this.type===Boolean||Ke.isFunction(this.type)&&this.type.name==="Boolean"}isMultiple(){return this.multiple||this.lazyMultiple}static create(e){return new this(e)}},po=class extends Array{validate(e){this.some(_=>!_.name)&&Ut("INVALID_DEFINITIONS","Invalid option definitions: the `name` property is required on each definition"),this.some(_=>_.type&&typeof _.type!="function")&&Ut("INVALID_DEFINITIONS","Invalid option definitions: the `type` property must be a setter fuction (default: `Boolean`)");let a;this.some(_=>(a=_,Ke.isDefined(_.alias)&&Ke.isNumber(_.alias)))&&Ut("INVALID_DEFINITIONS","Invalid option definition: to avoid ambiguity an alias cannot be numeric [--"+a.name+" alias is -"+a.alias+"]"),this.some(_=>(a=_,Ke.isDefined(_.alias)&&_.alias.length!==1))&&Ut("INVALID_DEFINITIONS","Invalid option definition: an alias must be a single character"),this.some(_=>(a=_,_.alias==="-"))&&Ut("INVALID_DEFINITIONS",'Invalid option definition: an alias cannot be "-"'),sS(this.map(_=>e?_.name.toLowerCase():_.name))&&Ut("INVALID_DEFINITIONS","Two or more option definitions have the same name"),sS(this.map(_=>e&&Ke.isDefined(_.alias)?_.alias.toLowerCase():_.alias))&&Ut("INVALID_DEFINITIONS","Two or more option definitions have the same alias"),this.filter(_=>_.defaultOption===!0).length>1&&Ut("INVALID_DEFINITIONS","Only one option definition can be the defaultOption"),this.some(_=>(a=_,_.isBoolean()&&_.defaultOption))&&Ut("INVALID_DEFINITIONS",`A boolean option ["${a.name}"] can not also be the defaultOption.`)}get(e,n){if(Wl(e))if(pe.short.test(e)){let i=iS(e);if(n){let a=i.toLowerCase();return this.find(s=>Ke.isDefined(s.alias)&&s.alias.toLowerCase()===a)}else return this.find(a=>a.alias===i)}else{let i=iS(e);if(n){let a=i.toLowerCase();return this.find(s=>s.name.toLowerCase()===a)}else return this.find(a=>a.name===i)}else return this.find(i=>i.name===e)}getDefault(){return this.find(e=>e.defaultOption===!0)}isGrouped(){return this.some(e=>e.group)}whereGrouped(){return this.filter(aS)}whereNotGrouped(){return this.filter(e=>!aS(e))}whereDefaultValueSet(){return this.filter(e=>Ke.isDefined(e.defaultValue))}static from(e,n){if(e instanceof this)return e;let i=super.from(Eo(e),a=>fo.create(a));return i.validate(n),i}};function Ut(t,e){let n=new Error(e);throw n.name=t,n}function aS(t){return Eo(t.group).some(e=>e)}function sS(t){let e={};for(let n=0;n<t.length;n++){let i=t[n];if(e[i])return!0;Ke.isDefined(i)&&(e[i]=!0)}}var ql=class{constructor(e,n){this.options=Object.assign({},n),this.definitions=po.from(e,this.options.caseInsensitive),this.argv=Yl.from(this.options.argv),this.argv.hasCombinedShortOptions()&&uS(this.argv,pe.combinedShort.test.bind(pe.combinedShort),i=>(i=i.slice(1),i.split("").map(a=>({origArg:`-${i}`,arg:"-"+a}))))}*[Symbol.iterator](){let e=this.definitions,n,i,a,s,o=!1,r=!1,u;for(let l of this.argv){if(Ke.isPlainObject(l)&&(u=l.origArg,l=l.arg),r&&this.options.stopAtFirstUnknown){yield{event:"unknown_value",arg:l,name:"_unknown",value:void 0};continue}if(Wl(l))n=e.get(l,this.options.caseInsensitive),i=void 0,n?(i=n.isBoolean()?!0:null,s="set"):s="unknown_option";else if(Kl(l)){let p=l.match(pe.optEquals);n=e.get(p[1],this.options.caseInsensitive),n?n.isBoolean()?(yield{event:"unknown_value",arg:l,name:"_unknown",value:i,def:n},s="set",i=!0):(s="set",i=p[2]):s="unknown_option"}else G1(l)&&(n?(i=l,s="set"):(n=this.definitions.getDefault(),n&&!o?(i=l,s="set"):(s="unknown_value",n=void 0)));a=n?n.name:"_unknown";let c={event:s,arg:l,name:a,value:i,def:n};u&&(c.subArg=l,c.arg=u),yield c,a==="_unknown"&&(r=!0),n&&n.defaultOption&&!n.isMultiple()&&s==="set"&&(o=!0),n&&n.isBoolean()&&(n=void 0),n&&!n.multiple&&Ke.isDefined(i)&&i!==null&&(n=void 0),i=void 0,s=void 0,a=void 0,u=void 0}}},gr=new WeakMap,rn=class{constructor(e){this.definition=new fo(e),this.state=null,this.resetToDefault()}get(){return gr.get(this)}set(e){this._set(e,"set")}_set(e,n){let i=this.definition;if(i.isMultiple()){if(e!=null){let a=this.get();this.state==="default"&&(a.length=0),a.push(i.type(e)),this.state=n}}else if(!i.isMultiple()&&this.state==="set"){let a=new Error(`Singular option already set [${this.definition.name}=${this.get()}]`);throw a.name="ALREADY_SET",a.value=e,a.optionName=i.name,a}else e==null?gr.set(this,e):(gr.set(this,i.type(e)),this.state=n)}resetToDefault(){Ke.isDefined(this.definition.defaultValue)?this.definition.isMultiple()?gr.set(this,Eo(this.definition.defaultValue).slice()):gr.set(this,this.definition.defaultValue):this.definition.isMultiple()?gr.set(this,[]):gr.set(this,null),this.state="default"}static create(e){return e=new fo(e),e.isBoolean()?jl.create(e):new this(e)}},jl=class extends rn{set(e){super.set(!0)}static create(e){return new this(e)}},zi=class extends Map{constructor(e){super(),this.definitions=po.from(e),this.set("_unknown",rn.create({name:"_unknown",multiple:!0}));for(let n of this.definitions.whereDefaultValueSet())this.set(n.name,rn.create(n))}toObject(e){e=e||{};let n={};for(let i of this){let a=e.camelCase&&i[0]!=="_unknown"?Fl(i[0]):i[0],s=i[1];a==="_unknown"&&!s.get().length||(n[a]=s.get())}return e.skipUnknown&&delete n._unknown,n}},$l=class extends zi{toObject(e){let n=super.toObject({skipUnknown:e.skipUnknown}),i=super.toObject(e),a=i._unknown;delete i._unknown;let s={_all:i};return a&&a.length&&(s._unknown=a),this.definitions.whereGrouped().forEach(o=>{let r=e.camelCase?Fl(o.name):o.name,u=n[o.name];for(let l of Eo(o.group))s[l]=s[l]||{},Ke.isDefined(u)&&(s[l][r]=u)}),this.definitions.whereNotGrouped().forEach(o=>{let r=e.camelCase?Fl(o.name):o.name,u=n[o.name];Ke.isDefined(u)&&(s._none||(s._none={}),s._none[r]=u)}),s}};function X1(t,e){e=e||{},e.stopAtFirstUnknown&&(e.partial=!0),t=po.from(t,e.caseInsensitive);let n=new ql(t,{argv:e.argv,stopAtFirstUnknown:e.stopAtFirstUnknown,caseInsensitive:e.caseInsensitive}),i=t.isGrouped()?$l:zi,a=new i(t);for(let s of n){let o=s.subArg||s.arg;if(!e.partial){if(s.event==="unknown_value"){let u=new Error(`Unknown value: ${o}`);throw u.name="UNKNOWN_VALUE",u.value=o,u}else if(s.event==="unknown_option"){let u=new Error(`Unknown option: ${o}`);throw u.name="UNKNOWN_OPTION",u.optionName=o,u}}let r;a.has(s.name)?r=a.get(s.name):(r=rn.create(s.def),a.set(s.name,r)),s.name==="_unknown"?r.set(o):r.set(s.value)}return a.toObject({skipUnknown:!e.partial,camelCase:e.camelCase})}fS.exports=X1});function ce(t){for(var e={},n=t.length,i=0;i<n;i++){var a=t[i];a&&(e[String(a).toUpperCase().replace(/[-.]/g,"_")]=a)}return e}var Xl=m(()=>{});var dS,ES,_S,SS,hS,TS,vS,mS,yS,AS,OS,gS,NS,RS,PS,bS,MS,xS,LS,IS,CS,wS,US,DS,VS,BS,GS,kS,HS,FS,YS,qS,jS,$S,KS,WS,zS,XS,JS,QS,ZS,eh,th,rh,nh,oh,ih,ah,sh,uh,lh,ch,fh,ph,dh,Eh,_h,Sh,hh,Th,vh,mh,yh,Ah,Oh,gh,Nh,Rh,Ph,bh,Mh,xh,Lh,Ih,Ch,wh,Uh,Dh,Vh,Bh,Gh,kh,Hh,Fh,Yh,qh,jh,$h,Kh,Wh,zh,Xh,Jh,Qh,Zh,eT,tT,rT,nT,oT,iT,aT,sT,uT,lT,cT,fT,pT,dT,ET,_T,ST,hT,TT,vT,mT,yT,AT,OT,gT,NT,RT,PT,bT,MT,xT,LT,IT,J1,Q1,Z1,eV,tV,rV,nV,oV,iV,aV,sV,uV,lV,cV,fV,pV,dV,EV,_V,SV,hV,TV,vV,mV,yV,AV,OV,gV,NV,RV,PV,bV,MV,xV,LV,IV,CV,wV,UV,DV,VV,BV,GV,kV,HV,FV,YV,qV,jV,$V,KV,WV,zV,XV,JV,QV,ZV,e2,t2,r2,n2,o2,i2,a2,s2,u2,l2,c2,f2,p2,d2,E2,_2,S2,h2,T2,v2,m2,y2,A2,O2,g2,N2,R2,P2,b2,M2,x2,L2,I2,C2,w2,U2,D2,V2,B2,G2,k2,H2,F2,Y2,q2,j2,$2,K2,W2,z2,X2,J2,Q2,Z2,eB,tB,rB,nB,oB,iB,aB,sB,uB,lB,cB,fB,pB,dB,EB,_B,SB,hB,CT,wT,UT,DT,VT,BT,GT,kT,HT,FT,YT,qT,jT,$T,KT,WT,zT,XT,JT,QT,ZT,ev,tv,rv,nv,ov,iv,av,sv,uv,lv,cv,fv,pv,dv,Ev,_v,Sv,hv,Tv,vv,mv,yv,Av,Ov,gv,Nv,TB,vB,mB,yB,AB,OB,gB,NB,RB,PB,bB,MB,xB,LB,IB,CB,wB,UB,DB,VB,BB,GB,kB,HB,FB,YB,qB,jB,$B,KB,WB,zB,XB,JB,QB,ZB,eG,tG,rG,nG,oG,iG,aG,sG,uG,lG,cG,fG,Rv,Pv,bv,Mv,xv,Lv,Iv,Cv,wv,Uv,Dv,pG,dG,EG,_G,SG,hG,TG,vG,mG,yG,AG,OG,Vv,Bv,Gv,kv,Hv,gG,NG,RG,PG,bG,MG,Fv,Yv,qv,xG,LG,IG,CG,jv,$v,Kv,Wv,wG,UG,DG,VG,BG,zv,Xv,Jv,Qv,Zv,em,tm,GG,kG,HG,FG,YG,qG,jG,$G,rm,nm,om,im,am,KG,WG,zG,XG,JG,QG,sm,um,lm,cm,fm,pm,dm,Em,_m,Sm,hm,Tm,vm,mm,ym,Am,Om,gm,Nm,Rm,Pm,ZG,ek,tk,rk,nk,ok,ik,ak,sk,uk,lk,ck,fk,pk,dk,Ek,_k,Sk,hk,Tk,vk,mk,bm,Mm,xm,Lm,Im,yk,Ak,Ok,gk,Nk,Rk,Cm,wm,Pk,bk,Mk,Um,Dm,xk,Lk,Ik,Vm,Bm,Gm,km,Hm,Fm,Ym,qm,jm,$m,Km,Wm,zm,Xm,Jm,Qm,Zm,Ck,wk,Uk,Dk,Vk,Bk,Gk,kk,Hk,Fk,Yk,qk,jk,$k,Kk,Wk,zk,Xk,ey,ty,Jk,Qk,Zk,ry=m(()=>{Xl();dS="aws.lambda.invoked_arn",ES="db.system",_S="db.connection_string",SS="db.user",hS="db.jdbc.driver_classname",TS="db.name",vS="db.statement",mS="db.operation",yS="db.mssql.instance_name",AS="db.cassandra.keyspace",OS="db.cassandra.page_size",gS="db.cassandra.consistency_level",NS="db.cassandra.table",RS="db.cassandra.idempotence",PS="db.cassandra.speculative_execution_count",bS="db.cassandra.coordinator.id",MS="db.cassandra.coordinator.dc",xS="db.hbase.namespace",LS="db.redis.database_index",IS="db.mongodb.collection",CS="db.sql.table",wS="exception.type",US="exception.message",DS="exception.stacktrace",VS="exception.escaped",BS="faas.trigger",GS="faas.execution",kS="faas.document.collection",HS="faas.document.operation",FS="faas.document.time",YS="faas.document.name",qS="faas.time",jS="faas.cron",$S="faas.coldstart",KS="faas.invoked_name",WS="faas.invoked_provider",zS="faas.invoked_region",XS="net.transport",JS="net.peer.ip",QS="net.peer.port",ZS="net.peer.name",eh="net.host.ip",th="net.host.port",rh="net.host.name",nh="net.host.connection.type",oh="net.host.connection.subtype",ih="net.host.carrier.name",ah="net.host.carrier.mcc",sh="net.host.carrier.mnc",uh="net.host.carrier.icc",lh="peer.service",ch="enduser.id",fh="enduser.role",ph="enduser.scope",dh="thread.id",Eh="thread.name",_h="code.function",Sh="code.namespace",hh="code.filepath",Th="code.lineno",vh="http.method",mh="http.url",yh="http.target",Ah="http.host",Oh="http.scheme",gh="http.status_code",Nh="http.flavor",Rh="http.user_agent",Ph="http.request_content_length",bh="http.request_content_length_uncompressed",Mh="http.response_content_length",xh="http.response_content_length_uncompressed",Lh="http.server_name",Ih="http.route",Ch="http.client_ip",wh="aws.dynamodb.table_names",Uh="aws.dynamodb.consumed_capacity",Dh="aws.dynamodb.item_collection_metrics",Vh="aws.dynamodb.provisioned_read_capacity",Bh="aws.dynamodb.provisioned_write_capacity",Gh="aws.dynamodb.consistent_read",kh="aws.dynamodb.projection",Hh="aws.dynamodb.limit",Fh="aws.dynamodb.attributes_to_get",Yh="aws.dynamodb.index_name",qh="aws.dynamodb.select",jh="aws.dynamodb.global_secondary_indexes",$h="aws.dynamodb.local_secondary_indexes",Kh="aws.dynamodb.exclusive_start_table",Wh="aws.dynamodb.table_count",zh="aws.dynamodb.scan_forward",Xh="aws.dynamodb.segment",Jh="aws.dynamodb.total_segments",Qh="aws.dynamodb.count",Zh="aws.dynamodb.scanned_count",eT="aws.dynamodb.attribute_definitions",tT="aws.dynamodb.global_secondary_index_updates",rT="messaging.system",nT="messaging.destination",oT="messaging.destination_kind",iT="messaging.temp_destination",aT="messaging.protocol",sT="messaging.protocol_version",uT="messaging.url",lT="messaging.message_id",cT="messaging.conversation_id",fT="messaging.message_payload_size_bytes",pT="messaging.message_payload_compressed_size_bytes",dT="messaging.operation",ET="messaging.consumer_id",_T="messaging.rabbitmq.routing_key",ST="messaging.kafka.message_key",hT="messaging.kafka.consumer_group",TT="messaging.kafka.client_id",vT="messaging.kafka.partition",mT="messaging.kafka.tombstone",yT="rpc.system",AT="rpc.service",OT="rpc.method",gT="rpc.grpc.status_code",NT="rpc.jsonrpc.version",RT="rpc.jsonrpc.request_id",PT="rpc.jsonrpc.error_code",bT="rpc.jsonrpc.error_message",MT="message.type",xT="message.id",LT="message.compressed_size",IT="message.uncompressed_size",J1=dS,Q1=ES,Z1=_S,eV=SS,tV=hS,rV=TS,nV=vS,oV=mS,iV=yS,aV=AS,sV=OS,uV=gS,lV=NS,cV=RS,fV=PS,pV=bS,dV=MS,EV=xS,_V=LS,SV=IS,hV=CS,TV=wS,vV=US,mV=DS,yV=VS,AV=BS,OV=GS,gV=kS,NV=HS,RV=FS,PV=YS,bV=qS,MV=jS,xV=$S,LV=KS,IV=WS,CV=zS,wV=XS,UV=JS,DV=QS,VV=ZS,BV=eh,GV=th,kV=rh,HV=nh,FV=oh,YV=ih,qV=ah,jV=sh,$V=uh,KV=lh,WV=ch,zV=fh,XV=ph,JV=dh,QV=Eh,ZV=_h,e2=Sh,t2=hh,r2=Th,n2=vh,o2=mh,i2=yh,a2=Ah,s2=Oh,u2=gh,l2=Nh,c2=Rh,f2=Ph,p2=bh,d2=Mh,E2=xh,_2=Lh,S2=Ih,h2=Ch,T2=wh,v2=Uh,m2=Dh,y2=Vh,A2=Bh,O2=Gh,g2=kh,N2=Hh,R2=Fh,P2=Yh,b2=qh,M2=jh,x2=$h,L2=Kh,I2=Wh,C2=zh,w2=Xh,U2=Jh,D2=Qh,V2=Zh,B2=eT,G2=tT,k2=rT,H2=nT,F2=oT,Y2=iT,q2=aT,j2=sT,$2=uT,K2=lT,W2=cT,z2=fT,X2=pT,J2=dT,Q2=ET,Z2=_T,eB=ST,tB=hT,rB=TT,nB=vT,oB=mT,iB=yT,aB=AT,sB=OT,uB=gT,lB=NT,cB=RT,fB=PT,pB=bT,dB=MT,EB=xT,_B=LT,SB=IT,hB=ce([dS,ES,_S,SS,hS,TS,vS,mS,yS,AS,OS,gS,NS,RS,PS,bS,MS,xS,LS,IS,CS,wS,US,DS,VS,BS,GS,kS,HS,FS,YS,qS,jS,$S,KS,WS,zS,XS,JS,QS,ZS,eh,th,rh,nh,oh,ih,ah,sh,uh,lh,ch,fh,ph,dh,Eh,_h,Sh,hh,Th,vh,mh,yh,Ah,Oh,gh,Nh,Rh,Ph,bh,Mh,xh,Lh,Ih,Ch,wh,Uh,Dh,Vh,Bh,Gh,kh,Hh,Fh,Yh,qh,jh,$h,Kh,Wh,zh,Xh,Jh,Qh,Zh,eT,tT,rT,nT,oT,iT,aT,sT,uT,lT,cT,fT,pT,dT,ET,_T,ST,hT,TT,vT,mT,yT,AT,OT,gT,NT,RT,PT,bT,MT,xT,LT,IT]),CT="other_sql",wT="mssql",UT="mysql",DT="oracle",VT="db2",BT="postgresql",GT="redshift",kT="hive",HT="cloudscape",FT="hsqldb",YT="progress",qT="maxdb",jT="hanadb",$T="ingres",KT="firstsql",WT="edb",zT="cache",XT="adabas",JT="firebird",QT="derby",ZT="filemaker",ev="informix",tv="instantdb",rv="interbase",nv="mariadb",ov="netezza",iv="pervasive",av="pointbase",sv="sqlite",uv="sybase",lv="teradata",cv="vertica",fv="h2",pv="coldfusion",dv="cassandra",Ev="hbase",_v="mongodb",Sv="redis",hv="couchbase",Tv="couchdb",vv="cosmosdb",mv="dynamodb",yv="neo4j",Av="geode",Ov="elasticsearch",gv="memcached",Nv="cockroachdb",TB=CT,vB=wT,mB=UT,yB=DT,AB=VT,OB=BT,gB=GT,NB=kT,RB=HT,PB=FT,bB=YT,MB=qT,xB=jT,LB=$T,IB=KT,CB=WT,wB=zT,UB=XT,DB=JT,VB=QT,BB=ZT,GB=ev,kB=tv,HB=rv,FB=nv,YB=ov,qB=iv,jB=av,$B=sv,KB=uv,WB=lv,zB=cv,XB=fv,JB=pv,QB=dv,ZB=Ev,eG=_v,tG=Sv,rG=hv,nG=Tv,oG=vv,iG=mv,aG=yv,sG=Av,uG=Ov,lG=gv,cG=Nv,fG=ce([CT,wT,UT,DT,VT,BT,GT,kT,HT,FT,YT,qT,jT,$T,KT,WT,zT,XT,JT,QT,ZT,ev,tv,rv,nv,ov,iv,av,sv,uv,lv,cv,fv,pv,dv,Ev,_v,Sv,hv,Tv,vv,mv,yv,Av,Ov,gv,Nv]),Rv="all",Pv="each_quorum",bv="quorum",Mv="local_quorum",xv="one",Lv="two",Iv="three",Cv="local_one",wv="any",Uv="serial",Dv="local_serial",pG=Rv,dG=Pv,EG=bv,_G=Mv,SG=xv,hG=Lv,TG=Iv,vG=Cv,mG=wv,yG=Uv,AG=Dv,OG=ce([Rv,Pv,bv,Mv,xv,Lv,Iv,Cv,wv,Uv,Dv]),Vv="datasource",Bv="http",Gv="pubsub",kv="timer",Hv="other",gG=Vv,NG=Bv,RG=Gv,PG=kv,bG=Hv,MG=ce([Vv,Bv,Gv,kv,Hv]),Fv="insert",Yv="edit",qv="delete",xG=Fv,LG=Yv,IG=qv,CG=ce([Fv,Yv,qv]),jv="alibaba_cloud",$v="aws",Kv="azure",Wv="gcp",wG=jv,UG=$v,DG=Kv,VG=Wv,BG=ce([jv,$v,Kv,Wv]),zv="ip_tcp",Xv="ip_udp",Jv="ip",Qv="unix",Zv="pipe",em="inproc",tm="other",GG=zv,kG=Xv,HG=Jv,FG=Qv,YG=Zv,qG=em,jG=tm,$G=ce([zv,Xv,Jv,Qv,Zv,em,tm]),rm="wifi",nm="wired",om="cell",im="unavailable",am="unknown",KG=rm,WG=nm,zG=om,XG=im,JG=am,QG=ce([rm,nm,om,im,am]),sm="gprs",um="edge",lm="umts",cm="cdma",fm="evdo_0",pm="evdo_a",dm="cdma2000_1xrtt",Em="hsdpa",_m="hsupa",Sm="hspa",hm="iden",Tm="evdo_b",vm="lte",mm="ehrpd",ym="hspap",Am="gsm",Om="td_scdma",gm="iwlan",Nm="nr",Rm="nrnsa",Pm="lte_ca",ZG=sm,ek=um,tk=lm,rk=cm,nk=fm,ok=pm,ik=dm,ak=Em,sk=_m,uk=Sm,lk=hm,ck=Tm,fk=vm,pk=mm,dk=ym,Ek=Am,_k=Om,Sk=gm,hk=Nm,Tk=Rm,vk=Pm,mk=ce([sm,um,lm,cm,fm,pm,dm,Em,_m,Sm,hm,Tm,vm,mm,ym,Am,Om,gm,Nm,Rm,Pm]),bm="1.0",Mm="1.1",xm="2.0",Lm="SPDY",Im="QUIC",yk=bm,Ak=Mm,Ok=xm,gk=Lm,Nk=Im,Rk={HTTP_1_0:bm,HTTP_1_1:Mm,HTTP_2_0:xm,SPDY:Lm,QUIC:Im},Cm="queue",wm="topic",Pk=Cm,bk=wm,Mk=ce([Cm,wm]),Um="receive",Dm="process",xk=Um,Lk=Dm,Ik=ce([Um,Dm]),Vm=0,Bm=1,Gm=2,km=3,Hm=4,Fm=5,Ym=6,qm=7,jm=8,$m=9,Km=10,Wm=11,zm=12,Xm=13,Jm=14,Qm=15,Zm=16,Ck=Vm,wk=Bm,Uk=Gm,Dk=km,Vk=Hm,Bk=Fm,Gk=Ym,kk=qm,Hk=jm,Fk=$m,Yk=Km,qk=Wm,jk=zm,$k=Xm,Kk=Jm,Wk=Qm,zk=Zm,Xk={OK:Vm,CANCELLED:Bm,UNKNOWN:Gm,INVALID_ARGUMENT:km,DEADLINE_EXCEEDED:Hm,NOT_FOUND:Fm,ALREADY_EXISTS:Ym,PERMISSION_DENIED:qm,RESOURCE_EXHAUSTED:jm,FAILED_PRECONDITION:$m,ABORTED:Km,OUT_OF_RANGE:Wm,UNIMPLEMENTED:zm,INTERNAL:Xm,UNAVAILABLE:Jm,DATA_LOSS:Qm,UNAUTHENTICATED:Zm},ey="SENT",ty="RECEIVED",Jk=ey,Qk=ty,Zk=ce([ey,ty])});var ny=m(()=>{ry()});var oy,iy,ay,sy,uy,ly,cy,fy,py,dy,Ey,_y,Sy,hy,Ty,vy,my,yy,Ay,Oy,gy,Ny,Ry,Py,by,My,xy,Ly,Iy,Cy,wy,Uy,Dy,Vy,By,Gy,ky,Hy,Fy,Yy,qy,jy,$y,Ky,Wy,zy,Xy,Jy,Qy,Zy,eA,tA,rA,nA,oA,iA,aA,sA,uA,lA,cA,fA,pA,dA,EA,_A,SA,hA,TA,vA,mA,yA,AA,OA,gA,NA,RA,PA,bA,MA,xA,eH,tH,rH,nH,oH,iH,aH,sH,uH,lH,cH,fH,pH,dH,EH,_H,SH,hH,TH,vH,mH,yH,AH,OH,gH,NH,RH,PH,bH,MH,xH,LH,IH,CH,wH,UH,DH,VH,BH,GH,kH,HH,FH,YH,qH,jH,$H,KH,WH,zH,XH,JH,QH,ZH,e3,t3,r3,n3,o3,i3,a3,s3,u3,l3,c3,f3,p3,d3,E3,_3,S3,h3,T3,v3,m3,y3,A3,O3,g3,N3,R3,P3,LA,IA,CA,wA,b3,M3,x3,L3,I3,UA,DA,VA,BA,GA,kA,HA,FA,YA,qA,jA,$A,KA,WA,zA,XA,JA,C3,w3,U3,D3,V3,B3,G3,k3,H3,F3,Y3,q3,j3,$3,K3,W3,z3,X3,QA,ZA,J3,Q3,Z3,eO,tO,rO,nO,oO,iO,aO,eF,tF,rF,nF,oF,iF,aF,sF,sO,uO,lO,cO,fO,pO,dO,EO,_O,SO,hO,uF,lF,cF,fF,pF,dF,EF,_F,SF,hF,TF,vF,TO,vO,mO,yO,AO,OO,gO,NO,RO,PO,mF,yF,AF,OF,gF,NF,RF,PF,bF,MF,xF,bO=m(()=>{Xl();oy="cloud.provider",iy="cloud.account.id",ay="cloud.region",sy="cloud.availability_zone",uy="cloud.platform",ly="aws.ecs.container.arn",cy="aws.ecs.cluster.arn",fy="aws.ecs.launchtype",py="aws.ecs.task.arn",dy="aws.ecs.task.family",Ey="aws.ecs.task.revision",_y="aws.eks.cluster.arn",Sy="aws.log.group.names",hy="aws.log.group.arns",Ty="aws.log.stream.names",vy="aws.log.stream.arns",my="container.name",yy="container.id",Ay="container.runtime",Oy="container.image.name",gy="container.image.tag",Ny="deployment.environment",Ry="device.id",Py="device.model.identifier",by="device.model.name",My="faas.name",xy="faas.id",Ly="faas.version",Iy="faas.instance",Cy="faas.max_memory",wy="host.id",Uy="host.name",Dy="host.type",Vy="host.arch",By="host.image.name",Gy="host.image.id",ky="host.image.version",Hy="k8s.cluster.name",Fy="k8s.node.name",Yy="k8s.node.uid",qy="k8s.namespace.name",jy="k8s.pod.uid",$y="k8s.pod.name",Ky="k8s.container.name",Wy="k8s.replicaset.uid",zy="k8s.replicaset.name",Xy="k8s.deployment.uid",Jy="k8s.deployment.name",Qy="k8s.statefulset.uid",Zy="k8s.statefulset.name",eA="k8s.daemonset.uid",tA="k8s.daemonset.name",rA="k8s.job.uid",nA="k8s.job.name",oA="k8s.cronjob.uid",iA="k8s.cronjob.name",aA="os.type",sA="os.description",uA="os.name",lA="os.version",cA="process.pid",fA="process.executable.name",pA="process.executable.path",dA="process.command",EA="process.command_line",_A="process.command_args",SA="process.owner",hA="process.runtime.name",TA="process.runtime.version",vA="process.runtime.description",mA="service.name",yA="service.namespace",AA="service.instance.id",OA="service.version",gA="telemetry.sdk.name",NA="telemetry.sdk.language",RA="telemetry.sdk.version",PA="telemetry.auto.version",bA="webengine.name",MA="webengine.version",xA="webengine.description",eH=oy,tH=iy,rH=ay,nH=sy,oH=uy,iH=ly,aH=cy,sH=fy,uH=py,lH=dy,cH=Ey,fH=_y,pH=Sy,dH=hy,EH=Ty,_H=vy,SH=my,hH=yy,TH=Ay,vH=Oy,mH=gy,yH=Ny,AH=Ry,OH=Py,gH=by,NH=My,RH=xy,PH=Ly,bH=Iy,MH=Cy,xH=wy,LH=Uy,IH=Dy,CH=Vy,wH=By,UH=Gy,DH=ky,VH=Hy,BH=Fy,GH=Yy,kH=qy,HH=jy,FH=$y,YH=Ky,qH=Wy,jH=zy,$H=Xy,KH=Jy,WH=Qy,zH=Zy,XH=eA,JH=tA,QH=rA,ZH=nA,e3=oA,t3=iA,r3=aA,n3=sA,o3=uA,i3=lA,a3=cA,s3=fA,u3=pA,l3=dA,c3=EA,f3=_A,p3=SA,d3=hA,E3=TA,_3=vA,S3=mA,h3=yA,T3=AA,v3=OA,m3=gA,y3=NA,A3=RA,O3=PA,g3=bA,N3=MA,R3=xA,P3=ce([oy,iy,ay,sy,uy,ly,cy,fy,py,dy,Ey,_y,Sy,hy,Ty,vy,my,yy,Ay,Oy,gy,Ny,Ry,Py,by,My,xy,Ly,Iy,Cy,wy,Uy,Dy,Vy,By,Gy,ky,Hy,Fy,Yy,qy,jy,$y,Ky,Wy,zy,Xy,Jy,Qy,Zy,eA,tA,rA,nA,oA,iA,aA,sA,uA,lA,cA,fA,pA,dA,EA,_A,SA,hA,TA,vA,mA,yA,AA,OA,gA,NA,RA,PA,bA,MA,xA]),LA="alibaba_cloud",IA="aws",CA="azure",wA="gcp",b3=LA,M3=IA,x3=CA,L3=wA,I3=ce([LA,IA,CA,wA]),UA="alibaba_cloud_ecs",DA="alibaba_cloud_fc",VA="aws_ec2",BA="aws_ecs",GA="aws_eks",kA="aws_lambda",HA="aws_elastic_beanstalk",FA="azure_vm",YA="azure_container_instances",qA="azure_aks",jA="azure_functions",$A="azure_app_service",KA="gcp_compute_engine",WA="gcp_cloud_run",zA="gcp_kubernetes_engine",XA="gcp_cloud_functions",JA="gcp_app_engine",C3=UA,w3=DA,U3=VA,D3=BA,V3=GA,B3=kA,G3=HA,k3=FA,H3=YA,F3=qA,Y3=jA,q3=$A,j3=KA,$3=WA,K3=zA,W3=XA,z3=JA,X3=ce([UA,DA,VA,BA,GA,kA,HA,FA,YA,qA,jA,$A,KA,WA,zA,XA,JA]),QA="ec2",ZA="fargate",J3=QA,Q3=ZA,Z3=ce([QA,ZA]),eO="amd64",tO="arm32",rO="arm64",nO="ia64",oO="ppc32",iO="ppc64",aO="x86",eF=eO,tF=tO,rF=rO,nF=nO,oF=oO,iF=iO,aF=aO,sF=ce([eO,tO,rO,nO,oO,iO,aO]),sO="windows",uO="linux",lO="darwin",cO="freebsd",fO="netbsd",pO="openbsd",dO="dragonflybsd",EO="hpux",_O="aix",SO="solaris",hO="z_os",uF=sO,lF=uO,cF=lO,fF=cO,pF=fO,dF=pO,EF=dO,_F=EO,SF=_O,hF=SO,TF=hO,vF=ce([sO,uO,lO,cO,fO,pO,dO,EO,_O,SO,hO]),TO="cpp",vO="dotnet",mO="erlang",yO="go",AO="java",OO="nodejs",gO="php",NO="python",RO="ruby",PO="webjs",mF=TO,yF=vO,AF=mO,OF=yO,gF=AO,NF=OO,RF=gO,PF=NO,bF=RO,MF=PO,xF=ce([TO,vO,mO,yO,AO,OO,gO,NO,RO,PO])});var MO=m(()=>{bO()});var _o={};it(_o,{AWSECSLAUNCHTYPEVALUES_EC2:()=>J3,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>Q3,AwsEcsLaunchtypeValues:()=>Z3,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>C3,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>w3,CLOUDPLATFORMVALUES_AWS_EC2:()=>U3,CLOUDPLATFORMVALUES_AWS_ECS:()=>D3,CLOUDPLATFORMVALUES_AWS_EKS:()=>V3,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>G3,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>B3,CLOUDPLATFORMVALUES_AZURE_AKS:()=>F3,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>q3,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>H3,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>Y3,CLOUDPLATFORMVALUES_AZURE_VM:()=>k3,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>z3,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>W3,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>$3,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>j3,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>K3,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>b3,CLOUDPROVIDERVALUES_AWS:()=>M3,CLOUDPROVIDERVALUES_AZURE:()=>x3,CLOUDPROVIDERVALUES_GCP:()=>L3,CloudPlatformValues:()=>X3,CloudProviderValues:()=>I3,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>pG,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>mG,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>dG,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>vG,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>_G,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>AG,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>SG,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>EG,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>yG,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>TG,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>hG,DBSYSTEMVALUES_ADABAS:()=>UB,DBSYSTEMVALUES_CACHE:()=>wB,DBSYSTEMVALUES_CASSANDRA:()=>QB,DBSYSTEMVALUES_CLOUDSCAPE:()=>RB,DBSYSTEMVALUES_COCKROACHDB:()=>cG,DBSYSTEMVALUES_COLDFUSION:()=>JB,DBSYSTEMVALUES_COSMOSDB:()=>oG,DBSYSTEMVALUES_COUCHBASE:()=>rG,DBSYSTEMVALUES_COUCHDB:()=>nG,DBSYSTEMVALUES_DB2:()=>AB,DBSYSTEMVALUES_DERBY:()=>VB,DBSYSTEMVALUES_DYNAMODB:()=>iG,DBSYSTEMVALUES_EDB:()=>CB,DBSYSTEMVALUES_ELASTICSEARCH:()=>uG,DBSYSTEMVALUES_FILEMAKER:()=>BB,DBSYSTEMVALUES_FIREBIRD:()=>DB,DBSYSTEMVALUES_FIRSTSQL:()=>IB,DBSYSTEMVALUES_GEODE:()=>sG,DBSYSTEMVALUES_H2:()=>XB,DBSYSTEMVALUES_HANADB:()=>xB,DBSYSTEMVALUES_HBASE:()=>ZB,DBSYSTEMVALUES_HIVE:()=>NB,DBSYSTEMVALUES_HSQLDB:()=>PB,DBSYSTEMVALUES_INFORMIX:()=>GB,DBSYSTEMVALUES_INGRES:()=>LB,DBSYSTEMVALUES_INSTANTDB:()=>kB,DBSYSTEMVALUES_INTERBASE:()=>HB,DBSYSTEMVALUES_MARIADB:()=>FB,DBSYSTEMVALUES_MAXDB:()=>MB,DBSYSTEMVALUES_MEMCACHED:()=>lG,DBSYSTEMVALUES_MONGODB:()=>eG,DBSYSTEMVALUES_MSSQL:()=>vB,DBSYSTEMVALUES_MYSQL:()=>mB,DBSYSTEMVALUES_NEO4J:()=>aG,DBSYSTEMVALUES_NETEZZA:()=>YB,DBSYSTEMVALUES_ORACLE:()=>yB,DBSYSTEMVALUES_OTHER_SQL:()=>TB,DBSYSTEMVALUES_PERVASIVE:()=>qB,DBSYSTEMVALUES_POINTBASE:()=>jB,DBSYSTEMVALUES_POSTGRESQL:()=>OB,DBSYSTEMVALUES_PROGRESS:()=>bB,DBSYSTEMVALUES_REDIS:()=>tG,DBSYSTEMVALUES_REDSHIFT:()=>gB,DBSYSTEMVALUES_SQLITE:()=>$B,DBSYSTEMVALUES_SYBASE:()=>KB,DBSYSTEMVALUES_TERADATA:()=>WB,DBSYSTEMVALUES_VERTICA:()=>zB,DbCassandraConsistencyLevelValues:()=>OG,DbSystemValues:()=>fG,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>IG,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>LG,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>xG,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>wG,FAASINVOKEDPROVIDERVALUES_AWS:()=>UG,FAASINVOKEDPROVIDERVALUES_AZURE:()=>DG,FAASINVOKEDPROVIDERVALUES_GCP:()=>VG,FAASTRIGGERVALUES_DATASOURCE:()=>gG,FAASTRIGGERVALUES_HTTP:()=>NG,FAASTRIGGERVALUES_OTHER:()=>bG,FAASTRIGGERVALUES_PUBSUB:()=>RG,FAASTRIGGERVALUES_TIMER:()=>PG,FaasDocumentOperationValues:()=>CG,FaasInvokedProviderValues:()=>BG,FaasTriggerValues:()=>MG,HOSTARCHVALUES_AMD64:()=>eF,HOSTARCHVALUES_ARM32:()=>tF,HOSTARCHVALUES_ARM64:()=>rF,HOSTARCHVALUES_IA64:()=>nF,HOSTARCHVALUES_PPC32:()=>oF,HOSTARCHVALUES_PPC64:()=>iF,HOSTARCHVALUES_X86:()=>aF,HTTPFLAVORVALUES_HTTP_1_0:()=>yk,HTTPFLAVORVALUES_HTTP_1_1:()=>Ak,HTTPFLAVORVALUES_HTTP_2_0:()=>Ok,HTTPFLAVORVALUES_QUIC:()=>Nk,HTTPFLAVORVALUES_SPDY:()=>gk,HostArchValues:()=>sF,HttpFlavorValues:()=>Rk,MESSAGETYPEVALUES_RECEIVED:()=>Qk,MESSAGETYPEVALUES_SENT:()=>Jk,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>Pk,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>bk,MESSAGINGOPERATIONVALUES_PROCESS:()=>Lk,MESSAGINGOPERATIONVALUES_RECEIVE:()=>xk,MessageTypeValues:()=>Zk,MessagingDestinationKindValues:()=>Mk,MessagingOperationValues:()=>Ik,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>rk,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>ik,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>ek,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>pk,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>nk,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>ok,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>ck,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>ZG,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>Ek,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>ak,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>uk,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>dk,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>sk,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>lk,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>Sk,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>fk,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>vk,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>hk,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>Tk,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>_k,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>tk,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>zG,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>XG,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>JG,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>KG,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>WG,NETTRANSPORTVALUES_INPROC:()=>qG,NETTRANSPORTVALUES_IP:()=>HG,NETTRANSPORTVALUES_IP_TCP:()=>GG,NETTRANSPORTVALUES_IP_UDP:()=>kG,NETTRANSPORTVALUES_OTHER:()=>jG,NETTRANSPORTVALUES_PIPE:()=>YG,NETTRANSPORTVALUES_UNIX:()=>FG,NetHostConnectionSubtypeValues:()=>mk,NetHostConnectionTypeValues:()=>QG,NetTransportValues:()=>$G,OSTYPEVALUES_AIX:()=>SF,OSTYPEVALUES_DARWIN:()=>cF,OSTYPEVALUES_DRAGONFLYBSD:()=>EF,OSTYPEVALUES_FREEBSD:()=>fF,OSTYPEVALUES_HPUX:()=>_F,OSTYPEVALUES_LINUX:()=>lF,OSTYPEVALUES_NETBSD:()=>pF,OSTYPEVALUES_OPENBSD:()=>dF,OSTYPEVALUES_SOLARIS:()=>hF,OSTYPEVALUES_WINDOWS:()=>uF,OSTYPEVALUES_Z_OS:()=>TF,OsTypeValues:()=>vF,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>Yk,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>Gk,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>wk,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>Wk,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>Vk,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>Fk,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>$k,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>Dk,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>Bk,RPCGRPCSTATUSCODEVALUES_OK:()=>Ck,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>qk,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>kk,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>Hk,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>zk,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>Kk,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>jk,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>Uk,RpcGrpcStatusCodeValues:()=>Xk,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>R2,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>B2,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>O2,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>v2,SEMATTRS_AWS_DYNAMODB_COUNT:()=>D2,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>L2,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>M2,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>G2,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>P2,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>m2,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>N2,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>x2,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>g2,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>y2,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>A2,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>V2,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>C2,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>w2,SEMATTRS_AWS_DYNAMODB_SELECT:()=>b2,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>I2,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>T2,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>U2,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>J1,SEMATTRS_CODE_FILEPATH:()=>t2,SEMATTRS_CODE_FUNCTION:()=>ZV,SEMATTRS_CODE_LINENO:()=>r2,SEMATTRS_CODE_NAMESPACE:()=>e2,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>uV,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>dV,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>pV,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>cV,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>aV,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>sV,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>fV,SEMATTRS_DB_CASSANDRA_TABLE:()=>lV,SEMATTRS_DB_CONNECTION_STRING:()=>Z1,SEMATTRS_DB_HBASE_NAMESPACE:()=>EV,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>tV,SEMATTRS_DB_MONGODB_COLLECTION:()=>SV,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>iV,SEMATTRS_DB_NAME:()=>rV,SEMATTRS_DB_OPERATION:()=>oV,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>_V,SEMATTRS_DB_SQL_TABLE:()=>hV,SEMATTRS_DB_STATEMENT:()=>nV,SEMATTRS_DB_SYSTEM:()=>Q1,SEMATTRS_DB_USER:()=>eV,SEMATTRS_ENDUSER_ID:()=>WV,SEMATTRS_ENDUSER_ROLE:()=>zV,SEMATTRS_ENDUSER_SCOPE:()=>XV,SEMATTRS_EXCEPTION_ESCAPED:()=>yV,SEMATTRS_EXCEPTION_MESSAGE:()=>vV,SEMATTRS_EXCEPTION_STACKTRACE:()=>mV,SEMATTRS_EXCEPTION_TYPE:()=>TV,SEMATTRS_FAAS_COLDSTART:()=>xV,SEMATTRS_FAAS_CRON:()=>MV,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>gV,SEMATTRS_FAAS_DOCUMENT_NAME:()=>PV,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>NV,SEMATTRS_FAAS_DOCUMENT_TIME:()=>RV,SEMATTRS_FAAS_EXECUTION:()=>OV,SEMATTRS_FAAS_INVOKED_NAME:()=>LV,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>IV,SEMATTRS_FAAS_INVOKED_REGION:()=>CV,SEMATTRS_FAAS_TIME:()=>bV,SEMATTRS_FAAS_TRIGGER:()=>AV,SEMATTRS_HTTP_CLIENT_IP:()=>h2,SEMATTRS_HTTP_FLAVOR:()=>l2,SEMATTRS_HTTP_HOST:()=>a2,SEMATTRS_HTTP_METHOD:()=>n2,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>f2,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>p2,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>d2,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>E2,SEMATTRS_HTTP_ROUTE:()=>S2,SEMATTRS_HTTP_SCHEME:()=>s2,SEMATTRS_HTTP_SERVER_NAME:()=>_2,SEMATTRS_HTTP_STATUS_CODE:()=>u2,SEMATTRS_HTTP_TARGET:()=>i2,SEMATTRS_HTTP_URL:()=>o2,SEMATTRS_HTTP_USER_AGENT:()=>c2,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>_B,SEMATTRS_MESSAGE_ID:()=>EB,SEMATTRS_MESSAGE_TYPE:()=>dB,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>SB,SEMATTRS_MESSAGING_CONSUMER_ID:()=>Q2,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>W2,SEMATTRS_MESSAGING_DESTINATION:()=>H2,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>F2,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>rB,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>tB,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>eB,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>nB,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>oB,SEMATTRS_MESSAGING_MESSAGE_ID:()=>K2,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>X2,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>z2,SEMATTRS_MESSAGING_OPERATION:()=>J2,SEMATTRS_MESSAGING_PROTOCOL:()=>q2,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>j2,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>Z2,SEMATTRS_MESSAGING_SYSTEM:()=>k2,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>Y2,SEMATTRS_MESSAGING_URL:()=>$2,SEMATTRS_NET_HOST_CARRIER_ICC:()=>$V,SEMATTRS_NET_HOST_CARRIER_MCC:()=>qV,SEMATTRS_NET_HOST_CARRIER_MNC:()=>jV,SEMATTRS_NET_HOST_CARRIER_NAME:()=>YV,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>FV,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>HV,SEMATTRS_NET_HOST_IP:()=>BV,SEMATTRS_NET_HOST_NAME:()=>kV,SEMATTRS_NET_HOST_PORT:()=>GV,SEMATTRS_NET_PEER_IP:()=>UV,SEMATTRS_NET_PEER_NAME:()=>VV,SEMATTRS_NET_PEER_PORT:()=>DV,SEMATTRS_NET_TRANSPORT:()=>wV,SEMATTRS_PEER_SERVICE:()=>KV,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>uB,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>fB,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>pB,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>cB,SEMATTRS_RPC_JSONRPC_VERSION:()=>lB,SEMATTRS_RPC_METHOD:()=>sB,SEMATTRS_RPC_SERVICE:()=>aB,SEMATTRS_RPC_SYSTEM:()=>iB,SEMATTRS_THREAD_ID:()=>JV,SEMATTRS_THREAD_NAME:()=>QV,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>aH,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>iH,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>sH,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>uH,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>lH,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>cH,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>fH,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>dH,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>pH,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>_H,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>EH,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>tH,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>nH,SEMRESATTRS_CLOUD_PLATFORM:()=>oH,SEMRESATTRS_CLOUD_PROVIDER:()=>eH,SEMRESATTRS_CLOUD_REGION:()=>rH,SEMRESATTRS_CONTAINER_ID:()=>hH,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>vH,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>mH,SEMRESATTRS_CONTAINER_NAME:()=>SH,SEMRESATTRS_CONTAINER_RUNTIME:()=>TH,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>yH,SEMRESATTRS_DEVICE_ID:()=>AH,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>OH,SEMRESATTRS_DEVICE_MODEL_NAME:()=>gH,SEMRESATTRS_FAAS_ID:()=>RH,SEMRESATTRS_FAAS_INSTANCE:()=>bH,SEMRESATTRS_FAAS_MAX_MEMORY:()=>MH,SEMRESATTRS_FAAS_NAME:()=>NH,SEMRESATTRS_FAAS_VERSION:()=>PH,SEMRESATTRS_HOST_ARCH:()=>CH,SEMRESATTRS_HOST_ID:()=>xH,SEMRESATTRS_HOST_IMAGE_ID:()=>UH,SEMRESATTRS_HOST_IMAGE_NAME:()=>wH,SEMRESATTRS_HOST_IMAGE_VERSION:()=>DH,SEMRESATTRS_HOST_NAME:()=>LH,SEMRESATTRS_HOST_TYPE:()=>IH,SEMRESATTRS_K8S_CLUSTER_NAME:()=>VH,SEMRESATTRS_K8S_CONTAINER_NAME:()=>YH,SEMRESATTRS_K8S_CRONJOB_NAME:()=>t3,SEMRESATTRS_K8S_CRONJOB_UID:()=>e3,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>JH,SEMRESATTRS_K8S_DAEMONSET_UID:()=>XH,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>KH,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>$H,SEMRESATTRS_K8S_JOB_NAME:()=>ZH,SEMRESATTRS_K8S_JOB_UID:()=>QH,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>kH,SEMRESATTRS_K8S_NODE_NAME:()=>BH,SEMRESATTRS_K8S_NODE_UID:()=>GH,SEMRESATTRS_K8S_POD_NAME:()=>FH,SEMRESATTRS_K8S_POD_UID:()=>HH,SEMRESATTRS_K8S_REPLICASET_NAME:()=>jH,SEMRESATTRS_K8S_REPLICASET_UID:()=>qH,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>zH,SEMRESATTRS_K8S_STATEFULSET_UID:()=>WH,SEMRESATTRS_OS_DESCRIPTION:()=>n3,SEMRESATTRS_OS_NAME:()=>o3,SEMRESATTRS_OS_TYPE:()=>r3,SEMRESATTRS_OS_VERSION:()=>i3,SEMRESATTRS_PROCESS_COMMAND:()=>l3,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>f3,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>c3,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>s3,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>u3,SEMRESATTRS_PROCESS_OWNER:()=>p3,SEMRESATTRS_PROCESS_PID:()=>a3,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>_3,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>d3,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>E3,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>T3,SEMRESATTRS_SERVICE_NAME:()=>S3,SEMRESATTRS_SERVICE_NAMESPACE:()=>h3,SEMRESATTRS_SERVICE_VERSION:()=>v3,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>O3,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>y3,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>m3,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>A3,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>R3,SEMRESATTRS_WEBENGINE_NAME:()=>g3,SEMRESATTRS_WEBENGINE_VERSION:()=>N3,SemanticAttributes:()=>hB,SemanticResourceAttributes:()=>P3,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>mF,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>yF,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>AF,TELEMETRYSDKLANGUAGEVALUES_GO:()=>OF,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>gF,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>NF,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>RF,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>PF,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>bF,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>MF,TelemetrySdkLanguageValues:()=>xF});var So=m(()=>{ny();MO()});var LO=h((xO,Xi)=>{(function(t){"use strict";let e="(0?\\d+|0x[a-f0-9]+)",n={fourOctet:new RegExp(`^${e}\\.${e}\\.${e}\\.${e}$`,"i"),threeOctet:new RegExp(`^${e}\\.${e}\\.${e}$`,"i"),twoOctet:new RegExp(`^${e}\\.${e}$`,"i"),longValue:new RegExp(`^${e}$`,"i")},i=new RegExp("^0[0-7]+$","i"),a=new RegExp("^0x[a-f0-9]+$","i"),s="%[0-9a-z]{1,}",o="(?:[0-9a-f]+::?)+",r={zoneIndex:new RegExp(s,"i"),native:new RegExp(`^(::)?(${o})?([0-9a-f]+)?(::)?(${s})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${e}\\.${e}\\.${e}\\.${e}(${s})?)$`,"i"),transitional:new RegExp(`^((?:${o})|(?:::)(?:${o})?)${e}\\.${e}\\.${e}\\.${e}(${s})?$`,"i")};function u(f,S){if(f.indexOf("::")!==f.lastIndexOf("::"))return null;let v=0,T=-1,A=(f.match(r.zoneIndex)||[])[0],O,N;for(A&&(A=A.substring(1),f=f.replace(/%.+$/,""));(T=f.indexOf(":",T+1))>=0;)v++;if(f.substr(0,2)==="::"&&v--,f.substr(-2,2)==="::"&&v--,v>S)return null;for(N=S-v,O=":";N--;)O+="0:";return f=f.replace("::",O),f[0]===":"&&(f=f.slice(1)),f[f.length-1]===":"&&(f=f.slice(0,-1)),S=function(){let D=f.split(":"),G=[];for(let F=0;F<D.length;F++)G.push(parseInt(D[F],16));return G}(),{parts:S,zoneId:A}}function l(f,S,v,T){if(f.length!==S.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let A=0,O;for(;T>0;){if(O=v-T,O<0&&(O=0),f[A]>>O!==S[A]>>O)return!1;T-=v,A+=1}return!0}function c(f){if(a.test(f))return parseInt(f,16);if(f[0]==="0"&&!isNaN(parseInt(f[1],10))){if(i.test(f))return parseInt(f,8);throw new Error(`ipaddr: cannot parse ${f} as octal`)}return parseInt(f,10)}function p(f,S){for(;f.length<S;)f=`0${f}`;return f}let _={};_.IPv4=function(){function f(S){if(S.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let v,T;for(v=0;v<S.length;v++)if(T=S[v],!(0<=T&&T<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=S}return f.prototype.SpecialRanges={unspecified:[[new f([0,0,0,0]),8]],broadcast:[[new f([255,255,255,255]),32]],multicast:[[new f([224,0,0,0]),4]],linkLocal:[[new f([169,254,0,0]),16]],loopback:[[new f([127,0,0,0]),8]],carrierGradeNat:[[new f([100,64,0,0]),10]],private:[[new f([10,0,0,0]),8],[new f([172,16,0,0]),12],[new f([192,168,0,0]),16]],reserved:[[new f([192,0,0,0]),24],[new f([192,0,2,0]),24],[new f([192,88,99,0]),24],[new f([198,18,0,0]),15],[new f([198,51,100,0]),24],[new f([203,0,113,0]),24],[new f([240,0,0,0]),4]],as112:[[new f([192,175,48,0]),24],[new f([192,31,196,0]),24]],amt:[[new f([192,52,193,0]),24]]},f.prototype.kind=function(){return"ipv4"},f.prototype.match=function(S,v){let T;if(v===void 0&&(T=S,S=T[0],v=T[1]),S.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return l(this.octets,S.octets,8,v)},f.prototype.prefixLengthFromSubnetMask=function(){let S=0,v=!1,T={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},A,O,N;for(A=3;A>=0;A-=1)if(O=this.octets[A],O in T){if(N=T[O],v&&N!==0)return null;N!==8&&(v=!0),S+=N}else return null;return 32-S},f.prototype.range=function(){return _.subnetMatch(this,this.SpecialRanges)},f.prototype.toByteArray=function(){return this.octets.slice(0)},f.prototype.toIPv4MappedAddress=function(){return _.IPv6.parse(`::ffff:${this.toString()}`)},f.prototype.toNormalizedString=function(){return this.toString()},f.prototype.toString=function(){return this.octets.join(".")},f}(),_.IPv4.broadcastAddressFromCIDR=function(f){try{let S=this.parseCIDR(f),v=S[0].toByteArray(),T=this.subnetMaskFromPrefixLength(S[1]).toByteArray(),A=[],O=0;for(;O<4;)A.push(parseInt(v[O],10)|parseInt(T[O],10)^255),O++;return new this(A)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},_.IPv4.isIPv4=function(f){return this.parser(f)!==null},_.IPv4.isValid=function(f){try{return new this(this.parser(f)),!0}catch{return!1}},_.IPv4.isValidCIDR=function(f){try{return this.parseCIDR(f),!0}catch{return!1}},_.IPv4.isValidFourPartDecimal=function(f){return!!(_.IPv4.isValid(f)&&f.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},_.IPv4.networkAddressFromCIDR=function(f){let S,v,T,A,O;try{for(S=this.parseCIDR(f),T=S[0].toByteArray(),O=this.subnetMaskFromPrefixLength(S[1]).toByteArray(),A=[],v=0;v<4;)A.push(parseInt(T[v],10)&parseInt(O[v],10)),v++;return new this(A)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},_.IPv4.parse=function(f){let S=this.parser(f);if(S===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(S)},_.IPv4.parseCIDR=function(f){let S;if(S=f.match(/^(.+)\/(\d+)$/)){let v=parseInt(S[2]);if(v>=0&&v<=32){let T=[this.parse(S[1]),v];return Object.defineProperty(T,"toString",{value:function(){return this.join("/")}}),T}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},_.IPv4.parser=function(f){let S,v,T;if(S=f.match(n.fourOctet))return function(){let A=S.slice(1,6),O=[];for(let N=0;N<A.length;N++)v=A[N],O.push(c(v));return O}();if(S=f.match(n.longValue)){if(T=c(S[1]),T>4294967295||T<0)throw new Error("ipaddr: address outside defined range");return function(){let A=[],O;for(O=0;O<=24;O+=8)A.push(T>>O&255);return A}().reverse()}else return(S=f.match(n.twoOctet))?function(){let A=S.slice(1,4),O=[];if(T=c(A[1]),T>16777215||T<0)throw new Error("ipaddr: address outside defined range");return O.push(c(A[0])),O.push(T>>16&255),O.push(T>>8&255),O.push(T&255),O}():(S=f.match(n.threeOctet))?function(){let A=S.slice(1,5),O=[];if(T=c(A[2]),T>65535||T<0)throw new Error("ipaddr: address outside defined range");return O.push(c(A[0])),O.push(c(A[1])),O.push(T>>8&255),O.push(T&255),O}():null},_.IPv4.subnetMaskFromPrefixLength=function(f){if(f=parseInt(f),f<0||f>32)throw new Error("ipaddr: invalid IPv4 prefix length");let S=[0,0,0,0],v=0,T=Math.floor(f/8);for(;v<T;)S[v]=255,v++;return T<4&&(S[T]=Math.pow(2,f%8)-1<<8-f%8),new this(S)},_.IPv6=function(){function f(S,v){let T,A;if(S.length===16)for(this.parts=[],T=0;T<=14;T+=2)this.parts.push(S[T]<<8|S[T+1]);else if(S.length===8)this.parts=S;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(T=0;T<this.parts.length;T++)if(A=this.parts[T],!(0<=A&&A<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");v&&(this.zoneId=v)}return f.prototype.SpecialRanges={unspecified:[new f([0,0,0,0,0,0,0,0]),128],linkLocal:[new f([65152,0,0,0,0,0,0,0]),10],multicast:[new f([65280,0,0,0,0,0,0,0]),8],loopback:[new f([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new f([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new f([0,0,0,0,0,65535,0,0]),96],discard:[new f([256,0,0,0,0,0,0,0]),64],rfc6145:[new f([0,0,0,0,65535,0,0,0]),96],rfc6052:[new f([100,65435,0,0,0,0,0,0]),96],"6to4":[new f([8194,0,0,0,0,0,0,0]),16],teredo:[new f([8193,0,0,0,0,0,0,0]),32],benchmarking:[new f([8193,2,0,0,0,0,0,0]),48],amt:[new f([8193,3,0,0,0,0,0,0]),32],as112v6:[[new f([8193,4,274,0,0,0,0,0]),48],[new f([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new f([8193,16,0,0,0,0,0,0]),28],orchid2:[new f([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new f([8193,48,0,0,0,0,0,0]),28],reserved:[[new f([8193,0,0,0,0,0,0,0]),23],[new f([8193,3512,0,0,0,0,0,0]),32]]},f.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},f.prototype.kind=function(){return"ipv6"},f.prototype.match=function(S,v){let T;if(v===void 0&&(T=S,S=T[0],v=T[1]),S.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return l(this.parts,S.parts,16,v)},f.prototype.prefixLengthFromSubnetMask=function(){let S=0,v=!1,T={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},A,O;for(let N=7;N>=0;N-=1)if(A=this.parts[N],A in T){if(O=T[A],v&&O!==0)return null;O!==16&&(v=!0),S+=O}else return null;return 128-S},f.prototype.range=function(){return _.subnetMatch(this,this.SpecialRanges)},f.prototype.toByteArray=function(){let S,v=[],T=this.parts;for(let A=0;A<T.length;A++)S=T[A],v.push(S>>8),v.push(S&255);return v},f.prototype.toFixedLengthString=function(){let S=function(){let T=[];for(let A=0;A<this.parts.length;A++)T.push(p(this.parts[A].toString(16),4));return T}.call(this).join(":"),v="";return this.zoneId&&(v=`%${this.zoneId}`),S+v},f.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let S=this.parts.slice(-2),v=S[0],T=S[1];return new _.IPv4([v>>8,v&255,T>>8,T&255])},f.prototype.toNormalizedString=function(){let S=function(){let T=[];for(let A=0;A<this.parts.length;A++)T.push(this.parts[A].toString(16));return T}.call(this).join(":"),v="";return this.zoneId&&(v=`%${this.zoneId}`),S+v},f.prototype.toRFC5952String=function(){let S=/((^|:)(0(:|$)){2,})/g,v=this.toNormalizedString(),T=0,A=-1,O;for(;O=S.exec(v);)O[0].length>A&&(T=O.index,A=O[0].length);return A<0?v:`${v.substring(0,T)}::${v.substring(T+A)}`},f.prototype.toString=function(){return this.toRFC5952String()},f}(),_.IPv6.broadcastAddressFromCIDR=function(f){try{let S=this.parseCIDR(f),v=S[0].toByteArray(),T=this.subnetMaskFromPrefixLength(S[1]).toByteArray(),A=[],O=0;for(;O<16;)A.push(parseInt(v[O],10)|parseInt(T[O],10)^255),O++;return new this(A)}catch(S){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${S})`)}},_.IPv6.isIPv6=function(f){return this.parser(f)!==null},_.IPv6.isValid=function(f){if(typeof f=="string"&&f.indexOf(":")===-1)return!1;try{let S=this.parser(f);return new this(S.parts,S.zoneId),!0}catch{return!1}},_.IPv6.isValidCIDR=function(f){if(typeof f=="string"&&f.indexOf(":")===-1)return!1;try{return this.parseCIDR(f),!0}catch{return!1}},_.IPv6.networkAddressFromCIDR=function(f){let S,v,T,A,O;try{for(S=this.parseCIDR(f),T=S[0].toByteArray(),O=this.subnetMaskFromPrefixLength(S[1]).toByteArray(),A=[],v=0;v<16;)A.push(parseInt(T[v],10)&parseInt(O[v],10)),v++;return new this(A)}catch(N){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${N})`)}},_.IPv6.parse=function(f){let S=this.parser(f);if(S.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(S.parts,S.zoneId)},_.IPv6.parseCIDR=function(f){let S,v,T;if((v=f.match(/^(.+)\/(\d+)$/))&&(S=parseInt(v[2]),S>=0&&S<=128))return T=[this.parse(v[1]),S],Object.defineProperty(T,"toString",{value:function(){return this.join("/")}}),T;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},_.IPv6.parser=function(f){let S,v,T,A,O,N;if(T=f.match(r.deprecatedTransitional))return this.parser(`::ffff:${T[1]}`);if(r.native.test(f))return u(f,8);if((T=f.match(r.transitional))&&(N=T[6]||"",S=T[1],T[1].endsWith("::")||(S=S.slice(0,-1)),S=u(S+N,6),S.parts)){for(O=[parseInt(T[2]),parseInt(T[3]),parseInt(T[4]),parseInt(T[5])],v=0;v<O.length;v++)if(A=O[v],!(0<=A&&A<=255))return null;return S.parts.push(O[0]<<8|O[1]),S.parts.push(O[2]<<8|O[3]),{parts:S.parts,zoneId:S.zoneId}}return null},_.IPv6.subnetMaskFromPrefixLength=function(f){if(f=parseInt(f),f<0||f>128)throw new Error("ipaddr: invalid IPv6 prefix length");let S=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],v=0,T=Math.floor(f/8);for(;v<T;)S[v]=255,v++;return T<16&&(S[T]=Math.pow(2,f%8)-1<<8-f%8),new this(S)},_.fromByteArray=function(f){let S=f.length;if(S===4)return new _.IPv4(f);if(S===16)return new _.IPv6(f);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},_.isValid=function(f){return _.IPv6.isValid(f)||_.IPv4.isValid(f)},_.isValidCIDR=function(f){return _.IPv6.isValidCIDR(f)||_.IPv4.isValidCIDR(f)},_.parse=function(f){if(_.IPv6.isValid(f))return _.IPv6.parse(f);if(_.IPv4.isValid(f))return _.IPv4.parse(f);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},_.parseCIDR=function(f){try{return _.IPv6.parseCIDR(f)}catch{try{return _.IPv4.parseCIDR(f)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},_.process=function(f){let S=this.parse(f);return S.kind()==="ipv6"&&S.isIPv4MappedAddress()?S.toIPv4Address():S},_.subnetMatch=function(f,S,v){let T,A,O,N;v==null&&(v="unicast");for(A in S)if(Object.prototype.hasOwnProperty.call(S,A)){for(O=S[A],O[0]&&!(O[0]instanceof Array)&&(O=[O]),T=0;T<O.length;T++)if(N=O[T],f.kind()===N[0].kind()&&f.match.apply(f,N))return A}return v},typeof Xi<"u"&&Xi.exports?Xi.exports=_:t.ipaddr=_})(xO)});var Jl=h(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.getPeerAttributes=Kt.getStatusAttributes=Kt.getMethodAttributes=void 0;var Tt=(So(),Y(_o)),LF=LO(),IF=Nl();function CF(t){let[,e,n]=t.split("/");return{[Tt.SEMATTRS_RPC_SYSTEM]:"grpc",[Tt.SEMATTRS_RPC_SERVICE]:e,[Tt.SEMATTRS_RPC_METHOD]:n}}Kt.getMethodAttributes=CF;function wF(t){return{[Tt.SEMATTRS_RPC_GRPC_STATUS_CODE]:t,"rpc.grpc.status_text":IF.Status[t]}}Kt.getStatusAttributes=wF;function UF(t){let e=t.lastIndexOf(":");if(e===-1)return{[Tt.SEMATTRS_NET_PEER_NAME]:t};let n=t.slice(0,e),i=+t.slice(e+1);return Number.isNaN(i)?{[Tt.SEMATTRS_NET_PEER_NAME]:t}:LF.isValid(n)?{[Tt.SEMATTRS_NET_PEER_IP]:n,[Tt.SEMATTRS_NET_PEER_PORT]:i}:{[Tt.SEMATTRS_NET_PEER_NAME]:n,[Tt.SEMATTRS_NET_PEER_PORT]:i}}Kt.getPeerAttributes=UF});var Ql=h(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.metadataGetter=nn.metadataSetter=void 0;nn.metadataSetter={set(t,e,n){t.set(e,n)}};nn.metadataGetter={get:(t,e)=>t.get(e),keys:t=>Array.from(t,([e])=>e)}});var IO=h(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.VERSION=void 0;Ji.VERSION="0.1.15"});var Zl=h(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.emitSpanEvents=Wt.getSpanName=Wt.tracer=void 0;var DF=(b(),Y(Re)),CO=(So(),Y(_o)),VF=IO();Wt.tracer=DF.trace.getTracer("nice-grpc-opentelemetry",VF.VERSION);function BF(t){return t.slice(1)}Wt.getSpanName=BF;async function*GF(t,e,n){let i=1;for await(let a of t)e.addEvent("message",{[CO.SEMATTRS_MESSAGE_TYPE]:n,[CO.SEMATTRS_MESSAGE_ID]:i++}),yield a}Wt.emitSpanEvents=GF});var tc=h(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.bindAsyncGenerator=void 0;var ec=(b(),Y(Re));function wO(t,e){return{next:ec.context.bind(t,e.next.bind(e)),return:ec.context.bind(t,e.return.bind(e)),throw:ec.context.bind(t,e.throw.bind(e)),[Symbol.asyncIterator](){return wO(t,e[Symbol.asyncIterator]())}}}Qi.bindAsyncGenerator=wO});var DO=h(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.openTelemetryServerMiddleware=void 0;var ho=(b(),Y(Re)),UO=(So(),Y(_o)),kF=(rE(),Y(tE)),on=Nl(),rc=Jl(),HF=Ql(),Zi=Zl(),FF=tc();function YF(){return(t,e)=>Zi.tracer.startActiveSpan((0,Zi.getSpanName)(t.method.path),{kind:ho.SpanKind.SERVER},ho.propagation.extract(ho.ROOT_CONTEXT,e.metadata,HF.metadataGetter),n=>(0,FF.bindAsyncGenerator)(ho.context.active(),qF(n,t,e)))}ea.openTelemetryServerMiddleware=YF;async function*qF(t,e,n){let i={...(0,rc.getMethodAttributes)(e.method.path),...(0,rc.getPeerAttributes)(n.peer)};t.setAttributes(i);let a=on.Status.OK,s;try{let o;if(e.requestStream?o=(0,Zi.emitSpanEvents)(e.request,t,UO.MESSAGETYPEVALUES_RECEIVED):o=e.request,e.responseStream){yield*(0,Zi.emitSpanEvents)(e.next(o,n),t,UO.MESSAGETYPEVALUES_SENT);return}else return yield*e.next(o,n)}catch(o){throw o instanceof on.ServerError?(a=o.code,s=o.details):(0,kF.isAbortError)(o)?(a=on.Status.CANCELLED,s="The operation was cancelled"):(a=on.Status.UNKNOWN,s="Unknown server error occurred",t.recordException(o)),o}finally{let o=(0,rc.getStatusAttributes)(a);t.setAttributes(o),a!==on.Status.OK&&t.setStatus({code:ho.SpanStatusCode.ERROR,message:`${on.Status[a]}: ${s}`}),t.end()}}});var GO=h(ra=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});ra.openTelemetryClientMiddleware=void 0;var To=(b(),Y(Re)),VO=(So(),Y(_o)),jF=(rE(),Y(tE)),zt=Nl(),BO=Jl(),$F=Ql(),ta=Zl(),KF=tc();function WF(){return(t,e)=>ta.tracer.startActiveSpan((0,ta.getSpanName)(t.method.path),{kind:To.SpanKind.CLIENT},n=>{let i=(0,zt.Metadata)(e.metadata);return To.propagation.inject(To.context.active(),i,$F.metadataSetter),(0,KF.bindAsyncGenerator)(To.context.active(),zF(n,t,{...e,metadata:i}))})}ra.openTelemetryClientMiddleware=WF;async function*zF(t,e,n){let i=(0,BO.getMethodAttributes)(e.method.path);t.setAttributes(i);let a=!1,s=zt.Status.OK,o;try{let r;if(e.requestStream?r=(0,ta.emitSpanEvents)(e.request,t,VO.MESSAGETYPEVALUES_SENT):r=e.request,e.responseStream){yield*(0,ta.emitSpanEvents)(e.next(r,n),t,VO.MESSAGETYPEVALUES_RECEIVED),a=!0;return}else{let u=yield*e.next(r,n);return a=!0,u}}catch(r){throw a=!0,r instanceof zt.ClientError?(s=r.code,o=r.details):(0,jF.isAbortError)(r)?(s=zt.Status.CANCELLED,o="The operation was cancelled"):(s=zt.Status.UNKNOWN,o="Unknown server error occurred",t.recordException(r)),r}finally{a||(s=zt.Status.CANCELLED,o="Stream iteration was aborted by client, e.g. by breaking from the for .. of loop");let r=(0,BO.getStatusAttributes)(s);t.setAttributes(r),s!==zt.Status.OK&&t.setStatus({code:To.SpanStatusCode.ERROR,message:`${zt.Status[s]}: ${o}`}),t.end()}}});var kO=h(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.openTelemetryClientMiddleware=an.openTelemetryServerMiddleware=void 0;var XF=DO();Object.defineProperty(an,"openTelemetryServerMiddleware",{enumerable:!0,get:function(){return XF.openTelemetryServerMiddleware}});var JF=GO();Object.defineProperty(an,"openTelemetryClientMiddleware",{enumerable:!0,get:function(){return JF.openTelemetryClientMiddleware}})});var He=h((HQ,qO)=>{"use strict";var vo=class extends Error{constructor(e){super(`Format functions must be synchronous taking a two arguments: (info, opts)
|
8
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:i,destStat:a}=lo.checkPathsSync(t,e,"copy",n);if(lo.checkParentPathsSync(t,i,e,"copy"),n.filter&&!n.filter(t,e))return;let s=uo.dirname(e);return Ie.existsSync(s)||fD(s),YE(a,t,e,n)}function YE(t,e,n,i){let s=(i.dereference?Ie.statSync:Ie.lstatSync)(e);if(s.isDirectory())return mD(s,t,e,n,i);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return ED(s,t,e,n,i);if(s.isSymbolicLink())return OD(t,e,n,i);throw s.isSocket()?new Error(`Cannot copy a socket file: ${e}`):s.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}function ED(t,e,n,i,a){return e?_D(t,n,i,a):qE(t,n,i,a)}function _D(t,e,n,i){if(i.overwrite)return Ie.unlinkSync(n),qE(t,e,n,i);if(i.errorOnExist)throw new Error(`'${n}' already exists`)}function qE(t,e,n,i){return Ie.copyFileSync(e,n),i.preserveTimestamps&&SD(t.mode,e,n),Bl(n,t.mode)}function SD(t,e,n){return hD(t)&&TD(n,t),vD(e,n)}function hD(t){return(t&128)===0}function TD(t,e){return Bl(t,e|128)}function Bl(t,e){return Ie.chmodSync(t,e)}function vD(t,e){let n=Ie.statSync(t);return pD(e,n.atime,n.mtime)}function mD(t,e,n,i,a){return e?jE(n,i,a):yD(t.mode,n,i,a)}function yD(t,e,n,i){return Ie.mkdirSync(n),jE(e,n,i),Bl(n,t)}function jE(t,e,n){Ie.readdirSync(t).forEach(i=>AD(i,t,e,n))}function AD(t,e,n,i){let a=uo.join(e,t),s=uo.join(n,t);if(i.filter&&!i.filter(a,s))return;let{destStat:o}=lo.checkPathsSync(a,s,"copy",i);return YE(o,a,s,i)}function OD(t,e,n,i){let a=Ie.readlinkSync(e);if(i.dereference&&(a=uo.resolve(process.cwd(),a)),t){let s;try{s=Ie.readlinkSync(n)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return Ie.symlinkSync(a,n);throw o}if(i.dereference&&(s=uo.resolve(process.cwd(),s)),lo.isSrcSubdir(a,s))throw new Error(`Cannot copy '${a}' to a subdirectory of itself, '${s}'.`);if(lo.isSrcSubdir(s,a))throw new Error(`Cannot overwrite '${s}' with '${a}'.`);return gD(a,n)}else return Ie.symlinkSync(a,n)}function gD(t,e){return Ie.unlinkSync(e),Ie.symlinkSync(t,e)}$E.exports=dD});var $i=h((H7,WE)=>{"use strict";var ND=Ee().fromPromise;WE.exports={copy:ND(FE()),copySync:KE()}});var co=h((F7,XE)=>{"use strict";var zE=Qr(),RD=Ee().fromCallback;function PD(t,e){zE.rm(t,{recursive:!0,force:!0},e)}function bD(t){zE.rmSync(t,{recursive:!0,force:!0})}XE.exports={remove:RD(PD),removeSync:bD}});var o_=h((Y7,n_)=>{"use strict";var MD=Ee().fromPromise,ZE=Le(),e_=L("path"),t_=ut(),r_=co(),JE=MD(async function(e){let n;try{n=await ZE.readdir(e)}catch{return t_.mkdirs(e)}return Promise.all(n.map(i=>r_.remove(e_.join(e,i))))});function QE(t){let e;try{e=ZE.readdirSync(t)}catch{return t_.mkdirsSync(t)}e.forEach(n=>{n=e_.join(t,n),r_.removeSync(n)})}n_.exports={emptyDirSync:QE,emptydirSync:QE,emptyDir:JE,emptydir:JE}});var u_=h((q7,s_)=>{"use strict";var xD=Ee().fromPromise,i_=L("path"),wt=Le(),a_=ut();async function LD(t){let e;try{e=await wt.stat(t)}catch{}if(e&&e.isFile())return;let n=i_.dirname(t),i=null;try{i=await wt.stat(n)}catch(a){if(a.code==="ENOENT"){await a_.mkdirs(n),await wt.writeFile(t,"");return}else throw a}i.isDirectory()?await wt.writeFile(t,""):await wt.readdir(n)}function ID(t){let e;try{e=wt.statSync(t)}catch{}if(e&&e.isFile())return;let n=i_.dirname(t);try{wt.statSync(n).isDirectory()||wt.readdirSync(n)}catch(i){if(i&&i.code==="ENOENT")a_.mkdirsSync(n);else throw i}wt.writeFileSync(t,"")}s_.exports={createFile:xD(LD),createFileSync:ID}});var d_=h((j7,p_)=>{"use strict";var CD=Ee().fromPromise,l_=L("path"),jt=Le(),c_=ut(),{pathExists:wD}=qt(),{areIdentical:f_}=Or();async function UD(t,e){let n;try{n=await jt.lstat(e)}catch{}let i;try{i=await jt.lstat(t)}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}if(n&&f_(i,n))return;let a=l_.dirname(e);await wD(a)||await c_.mkdirs(a),await jt.link(t,e)}function DD(t,e){let n;try{n=jt.lstatSync(e)}catch{}try{let s=jt.lstatSync(t);if(n&&f_(s,n))return}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let i=l_.dirname(e);return jt.existsSync(i)||c_.mkdirsSync(i),jt.linkSync(t,e)}p_.exports={createLink:CD(UD),createLinkSync:DD}});var __=h(($7,E_)=>{"use strict";var $t=L("path"),fo=Le(),{pathExists:VD}=qt(),BD=Ee().fromPromise;async function GD(t,e){if($t.isAbsolute(t)){try{await fo.lstat(t)}catch(s){throw s.message=s.message.replace("lstat","ensureSymlink"),s}return{toCwd:t,toDst:t}}let n=$t.dirname(e),i=$t.join(n,t);if(await VD(i))return{toCwd:i,toDst:t};try{await fo.lstat(t)}catch(s){throw s.message=s.message.replace("lstat","ensureSymlink"),s}return{toCwd:t,toDst:$t.relative(n,t)}}function kD(t,e){if($t.isAbsolute(t)){if(!fo.existsSync(t))throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}let n=$t.dirname(e),i=$t.join(n,t);if(fo.existsSync(i))return{toCwd:i,toDst:t};if(!fo.existsSync(t))throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:$t.relative(n,t)}}E_.exports={symlinkPaths:BD(GD),symlinkPathsSync:kD}});var T_=h((K7,h_)=>{"use strict";var S_=Le(),HD=Ee().fromPromise;async function FD(t,e){if(e)return e;let n;try{n=await S_.lstat(t)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}function YD(t,e){if(e)return e;let n;try{n=S_.lstatSync(t)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}h_.exports={symlinkType:HD(FD),symlinkTypeSync:YD}});var A_=h((W7,y_)=>{"use strict";var qD=Ee().fromPromise,v_=L("path"),ht=Le(),{mkdirs:jD,mkdirsSync:$D}=ut(),{symlinkPaths:KD,symlinkPathsSync:WD}=__(),{symlinkType:zD,symlinkTypeSync:XD}=T_(),{pathExists:JD}=qt(),{areIdentical:m_}=Or();async function QD(t,e,n){let i;try{i=await ht.lstat(e)}catch{}if(i&&i.isSymbolicLink()){let[r,u]=await Promise.all([ht.stat(t),ht.stat(e)]);if(m_(r,u))return}let a=await KD(t,e);t=a.toDst;let s=await zD(a.toCwd,n),o=v_.dirname(e);return await JD(o)||await jD(o),ht.symlink(t,e,s)}function ZD(t,e,n){let i;try{i=ht.lstatSync(e)}catch{}if(i&&i.isSymbolicLink()){let r=ht.statSync(t),u=ht.statSync(e);if(m_(r,u))return}let a=WD(t,e);t=a.toDst,n=XD(a.toCwd,n);let s=v_.dirname(e);return ht.existsSync(s)||$D(s),ht.symlinkSync(t,e,n)}y_.exports={createSymlink:qD(QD),createSymlinkSync:ZD}});var x_=h((z7,M_)=>{"use strict";var{createFile:O_,createFileSync:g_}=u_(),{createLink:N_,createLinkSync:R_}=d_(),{createSymlink:P_,createSymlinkSync:b_}=A_();M_.exports={createFile:O_,createFileSync:g_,ensureFile:O_,ensureFileSync:g_,createLink:N_,createLinkSync:R_,ensureLink:N_,ensureLinkSync:R_,createSymlink:P_,createSymlinkSync:b_,ensureSymlink:P_,ensureSymlinkSync:b_}});var Ki=h((X7,L_)=>{function e1(t,{EOL:e=`
|
9
|
+
`,finalEOL:n=!0,replacer:i=null,spaces:a}={}){let s=n?e:"";return JSON.stringify(t,i,a).replace(/\n/g,e)+s}function t1(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t.replace(/^\uFEFF/,"")}L_.exports={stringify:e1,stripBom:t1}});var U_=h((J7,w_)=>{var tn;try{tn=Qr()}catch{tn=L("fs")}var Wi=Ee(),{stringify:I_,stripBom:C_}=Ki();async function r1(t,e={}){typeof e=="string"&&(e={encoding:e});let n=e.fs||tn,i="throws"in e?e.throws:!0,a=await Wi.fromCallback(n.readFile)(t,e);a=C_(a);let s;try{s=JSON.parse(a,e?e.reviver:null)}catch(o){if(i)throw o.message=`${t}: ${o.message}`,o;return null}return s}var n1=Wi.fromPromise(r1);function o1(t,e={}){typeof e=="string"&&(e={encoding:e});let n=e.fs||tn,i="throws"in e?e.throws:!0;try{let a=n.readFileSync(t,e);return a=C_(a),JSON.parse(a,e.reviver)}catch(a){if(i)throw a.message=`${t}: ${a.message}`,a;return null}}async function i1(t,e,n={}){let i=n.fs||tn,a=I_(e,n);await Wi.fromCallback(i.writeFile)(t,a,n)}var a1=Wi.fromPromise(i1);function s1(t,e,n={}){let i=n.fs||tn,a=I_(e,n);return i.writeFileSync(t,a,n)}var u1={readFile:n1,readFileSync:o1,writeFile:a1,writeFileSync:s1};w_.exports=u1});var V_=h((Q7,D_)=>{"use strict";var zi=U_();D_.exports={readJson:zi.readFile,readJsonSync:zi.readFileSync,writeJson:zi.writeFile,writeJsonSync:zi.writeFileSync}});var Xi=h((Z7,k_)=>{"use strict";var l1=Ee().fromPromise,Gl=Le(),B_=L("path"),G_=ut(),c1=qt().pathExists;async function f1(t,e,n="utf-8"){let i=B_.dirname(t);return await c1(i)||await G_.mkdirs(i),Gl.writeFile(t,e,n)}function p1(t,...e){let n=B_.dirname(t);Gl.existsSync(n)||G_.mkdirsSync(n),Gl.writeFileSync(t,...e)}k_.exports={outputFile:l1(f1),outputFileSync:p1}});var F_=h((eQ,H_)=>{"use strict";var{stringify:d1}=Ki(),{outputFile:E1}=Xi();async function _1(t,e,n={}){let i=d1(e,n);await E1(t,i,n)}H_.exports=_1});var q_=h((tQ,Y_)=>{"use strict";var{stringify:S1}=Ki(),{outputFileSync:h1}=Xi();function T1(t,e,n){let i=S1(e,n);h1(t,i,n)}Y_.exports=T1});var $_=h((rQ,j_)=>{"use strict";var v1=Ee().fromPromise,Ce=V_();Ce.outputJson=v1(F_());Ce.outputJsonSync=q_();Ce.outputJSON=Ce.outputJson;Ce.outputJSONSync=Ce.outputJsonSync;Ce.writeJSON=Ce.writeJson;Ce.writeJSONSync=Ce.writeJsonSync;Ce.readJSON=Ce.readJson;Ce.readJSONSync=Ce.readJsonSync;j_.exports=Ce});var J_=h((nQ,X_)=>{"use strict";var m1=Le(),K_=L("path"),{copy:y1}=$i(),{remove:z_}=co(),{mkdirp:A1}=ut(),{pathExists:O1}=qt(),W_=Or();async function g1(t,e,n={}){let i=n.overwrite||n.clobber||!1,{srcStat:a,isChangingCase:s=!1}=await W_.checkPaths(t,e,"move",n);await W_.checkParentPaths(t,a,e,"move");let o=K_.dirname(e);return K_.parse(o).root!==o&&await A1(o),N1(t,e,i,s)}async function N1(t,e,n,i){if(!i){if(n)await z_(e);else if(await O1(e))throw new Error("dest already exists.")}try{await m1.rename(t,e)}catch(a){if(a.code!=="EXDEV")throw a;await R1(t,e,n)}}async function R1(t,e,n){return await y1(t,e,{overwrite:n,errorOnExist:!0,preserveTimestamps:!0}),z_(t)}X_.exports=g1});var rS=h((oQ,tS)=>{"use strict";var Z_=Qr(),Hl=L("path"),P1=$i().copySync,eS=co().removeSync,b1=ut().mkdirpSync,Q_=Or();function M1(t,e,n){n=n||{};let i=n.overwrite||n.clobber||!1,{srcStat:a,isChangingCase:s=!1}=Q_.checkPathsSync(t,e,"move",n);return Q_.checkParentPathsSync(t,a,e,"move"),x1(e)||b1(Hl.dirname(e)),L1(t,e,i,s)}function x1(t){let e=Hl.dirname(t);return Hl.parse(e).root===e}function L1(t,e,n,i){if(i)return kl(t,e,n);if(n)return eS(e),kl(t,e,n);if(Z_.existsSync(e))throw new Error("dest already exists.");return kl(t,e,n)}function kl(t,e,n){try{Z_.renameSync(t,e)}catch(i){if(i.code!=="EXDEV")throw i;return I1(t,e,n)}}function I1(t,e,n){return P1(t,e,{overwrite:n,errorOnExist:!0,preserveTimestamps:!0}),eS(t)}tS.exports=M1});var oS=h((iQ,nS)=>{"use strict";var C1=Ee().fromPromise;nS.exports={move:C1(J_()),moveSync:rS()}});var Fl=h((aQ,iS)=>{"use strict";iS.exports={...Le(),...$i(),...o_(),...x_(),...$_(),...ut(),...oS(),...Xi(),...qt(),...co()}});var ES=h((sQ,dS)=>{"use strict";function w1(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var Yl=w1(xU());function U1(t){return typeof t=="object"&&t!==null}function D1(t){return U1(t)&&typeof t.length=="number"}function _o(t){return Array.isArray(t)?t:t===void 0?[]:D1(t)||t instanceof Set?Array.from(t):[t]}function V1(t){return typeof t=="object"&&t!==null}function B1(t){return V1(t)&&typeof t.length=="number"}function aS(t){return Array.isArray(t)?t:t===void 0?[]:B1(t)?Array.prototype.slice.call(t):[t]}function cS(t,e){let n=[],i=aS(arguments);return i.splice(0,2),aS(t).forEach((a,s)=>{let o=[];i.forEach(r=>{typeof r=="function"?o=o.concat(r(a)):o.push(r)}),e(a)&&n.push({index:s,replaceWithValue:o})}),n.reverse().forEach(a=>{let s=[a.index,1].concat(a.replaceWithValue);t.splice.apply(t,s)}),t}var pe={short:/^-([^\d-])$/,long:/^--(\S+)/,combinedShort:/^-[^\d-]{2,}$/,optEquals:/^(--\S+?)=(.*)/},ql=class extends Array{load(e){if(this.clear(),e&&e!==process.argv)e=_o(e);else{e=process.argv.slice(0);let n=process.execArgv.some(F1)?1:2;e.splice(0,n)}e.forEach(n=>this.push(String(n)))}clear(){this.length=0}expandOptionEqualsNotation(){if(this.some(e=>pe.optEquals.test(e))){let e=[];this.forEach(n=>{let i=n.match(pe.optEquals);i?e.push(i[1],i[2]):e.push(n)}),this.clear(),this.load(e)}}expandGetoptNotation(){this.hasCombinedShortOptions()&&cS(this,pe.combinedShort,G1)}hasCombinedShortOptions(){return this.some(e=>pe.combinedShort.test(e))}static from(e){let n=new this;return n.load(e),n}};function G1(t){return t=t.slice(1),t.split("").map(e=>"-"+e)}function Wl(t){return pe.optEquals.test(t)}function zl(t){return(pe.short.test(t)||pe.long.test(t))&&!pe.optEquals.test(t)}function k1(t){return pe.long.test(t)&&!Wl(t)}function sS(t){return pe.short.test(t)?t.match(pe.short)[1]:k1(t)?t.match(pe.long)[1]:Wl(t)?t.match(pe.optEquals)[1].replace(/^--/,""):null}function H1(t){return!(zl(t)||pe.combinedShort.test(t)||pe.optEquals.test(t))}function F1(t){return["--eval","-e"].indexOf(t)>-1||t.startsWith("--eval=")}function Y1(t){return!isNaN(parseFloat(t))&&isFinite(t)}function q1(t){return t!==null&&typeof t=="object"&&t.constructor===Object}function j1(t){return fS(t)&&typeof t.length=="number"}function fS(t){return typeof t=="object"&&t!==null}function Xl(t){return typeof t<"u"}function $1(t){return typeof t=="string"}function K1(t){return typeof t=="boolean"}function pS(t){return typeof t=="function"}function W1(t){return pS(t)?/^class /.test(Function.prototype.toString.call(t)):!1}function z1(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 X1(t){if(t){let e=Xl(Promise)&&t instanceof Promise,n=t.then&&typeof t.then=="function";return!!(e||n)}else return!1}function J1(t){return t===null||!Xl(t)?!1:typeof t[Symbol.iterator]=="function"||typeof t[Symbol.asyncIterator]=="function"}var We={isNumber:Y1,isString:$1,isBoolean:K1,isPlainObject:q1,isArrayLike:j1,isObject:fS,isDefined:Xl,isFunction:pS,isClass:W1,isPrimitive:z1,isPromise:X1,isIterable:J1},po=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||We.isFunction(this.type)&&this.type.name==="Boolean"}isMultiple(){return this.multiple||this.lazyMultiple}static create(e){return new this(e)}},Eo=class extends Array{validate(e){this.some(_=>!_.name)&&Ut("INVALID_DEFINITIONS","Invalid option definitions: the `name` property is required on each definition"),this.some(_=>_.type&&typeof _.type!="function")&&Ut("INVALID_DEFINITIONS","Invalid option definitions: the `type` property must be a setter fuction (default: `Boolean`)");let a;this.some(_=>(a=_,We.isDefined(_.alias)&&We.isNumber(_.alias)))&&Ut("INVALID_DEFINITIONS","Invalid option definition: to avoid ambiguity an alias cannot be numeric [--"+a.name+" alias is -"+a.alias+"]"),this.some(_=>(a=_,We.isDefined(_.alias)&&_.alias.length!==1))&&Ut("INVALID_DEFINITIONS","Invalid option definition: an alias must be a single character"),this.some(_=>(a=_,_.alias==="-"))&&Ut("INVALID_DEFINITIONS",'Invalid option definition: an alias cannot be "-"'),lS(this.map(_=>e?_.name.toLowerCase():_.name))&&Ut("INVALID_DEFINITIONS","Two or more option definitions have the same name"),lS(this.map(_=>e&&We.isDefined(_.alias)?_.alias.toLowerCase():_.alias))&&Ut("INVALID_DEFINITIONS","Two or more option definitions have the same alias"),this.filter(_=>_.defaultOption===!0).length>1&&Ut("INVALID_DEFINITIONS","Only one option definition can be the defaultOption"),this.some(_=>(a=_,_.isBoolean()&&_.defaultOption))&&Ut("INVALID_DEFINITIONS",`A boolean option ["${a.name}"] can not also be the defaultOption.`)}get(e,n){if(zl(e))if(pe.short.test(e)){let i=sS(e);if(n){let a=i.toLowerCase();return this.find(s=>We.isDefined(s.alias)&&s.alias.toLowerCase()===a)}else return this.find(a=>a.alias===i)}else{let i=sS(e);if(n){let a=i.toLowerCase();return this.find(s=>s.name.toLowerCase()===a)}else return this.find(a=>a.name===i)}else return this.find(i=>i.name===e)}getDefault(){return this.find(e=>e.defaultOption===!0)}isGrouped(){return this.some(e=>e.group)}whereGrouped(){return this.filter(uS)}whereNotGrouped(){return this.filter(e=>!uS(e))}whereDefaultValueSet(){return this.filter(e=>We.isDefined(e.defaultValue))}static from(e,n){if(e instanceof this)return e;let i=super.from(_o(e),a=>po.create(a));return i.validate(n),i}};function Ut(t,e){let n=new Error(e);throw n.name=t,n}function uS(t){return _o(t.group).some(e=>e)}function lS(t){let e={};for(let n=0;n<t.length;n++){let i=t[n];if(e[i])return!0;We.isDefined(i)&&(e[i]=!0)}}var jl=class{constructor(e,n){this.options=Object.assign({},n),this.definitions=Eo.from(e,this.options.caseInsensitive),this.argv=ql.from(this.options.argv),this.argv.hasCombinedShortOptions()&&cS(this.argv,pe.combinedShort.test.bind(pe.combinedShort),i=>(i=i.slice(1),i.split("").map(a=>({origArg:`-${i}`,arg:"-"+a}))))}*[Symbol.iterator](){let e=this.definitions,n,i,a,s,o=!1,r=!1,u;for(let l of this.argv){if(We.isPlainObject(l)&&(u=l.origArg,l=l.arg),r&&this.options.stopAtFirstUnknown){yield{event:"unknown_value",arg:l,name:"_unknown",value:void 0};continue}if(zl(l))n=e.get(l,this.options.caseInsensitive),i=void 0,n?(i=n.isBoolean()?!0:null,s="set"):s="unknown_option";else if(Wl(l)){let p=l.match(pe.optEquals);n=e.get(p[1],this.options.caseInsensitive),n?n.isBoolean()?(yield{event:"unknown_value",arg:l,name:"_unknown",value:i,def:n},s="set",i=!0):(s="set",i=p[2]):s="unknown_option"}else H1(l)&&(n?(i=l,s="set"):(n=this.definitions.getDefault(),n&&!o?(i=l,s="set"):(s="unknown_value",n=void 0)));a=n?n.name:"_unknown";let c={event:s,arg:l,name:a,value:i,def:n};u&&(c.subArg=l,c.arg=u),yield c,a==="_unknown"&&(r=!0),n&&n.defaultOption&&!n.isMultiple()&&s==="set"&&(o=!0),n&&n.isBoolean()&&(n=void 0),n&&!n.multiple&&We.isDefined(i)&&i!==null&&(n=void 0),i=void 0,s=void 0,a=void 0,u=void 0}}},gr=new WeakMap,rn=class{constructor(e){this.definition=new po(e),this.state=null,this.resetToDefault()}get(){return gr.get(this)}set(e){this._set(e,"set")}_set(e,n){let i=this.definition;if(i.isMultiple()){if(e!=null){let a=this.get();this.state==="default"&&(a.length=0),a.push(i.type(e)),this.state=n}}else if(!i.isMultiple()&&this.state==="set"){let a=new Error(`Singular option already set [${this.definition.name}=${this.get()}]`);throw a.name="ALREADY_SET",a.value=e,a.optionName=i.name,a}else e==null?gr.set(this,e):(gr.set(this,i.type(e)),this.state=n)}resetToDefault(){We.isDefined(this.definition.defaultValue)?this.definition.isMultiple()?gr.set(this,_o(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 po(e),e.isBoolean()?$l.create(e):new this(e)}},$l=class extends rn{set(e){super.set(!0)}static create(e){return new this(e)}},Ji=class extends Map{constructor(e){super(),this.definitions=Eo.from(e),this.set("_unknown",rn.create({name:"_unknown",multiple:!0}));for(let n of this.definitions.whereDefaultValueSet())this.set(n.name,rn.create(n))}toObject(e){e=e||{};let n={};for(let i of this){let a=e.camelCase&&i[0]!=="_unknown"?Yl(i[0]):i[0],s=i[1];a==="_unknown"&&!s.get().length||(n[a]=s.get())}return e.skipUnknown&&delete n._unknown,n}},Kl=class extends Ji{toObject(e){let n=super.toObject({skipUnknown:e.skipUnknown}),i=super.toObject(e),a=i._unknown;delete i._unknown;let s={_all:i};return a&&a.length&&(s._unknown=a),this.definitions.whereGrouped().forEach(o=>{let r=e.camelCase?Yl(o.name):o.name,u=n[o.name];for(let l of _o(o.group))s[l]=s[l]||{},We.isDefined(u)&&(s[l][r]=u)}),this.definitions.whereNotGrouped().forEach(o=>{let r=e.camelCase?Yl(o.name):o.name,u=n[o.name];We.isDefined(u)&&(s._none||(s._none={}),s._none[r]=u)}),s}};function Q1(t,e){e=e||{},e.stopAtFirstUnknown&&(e.partial=!0),t=Eo.from(t,e.caseInsensitive);let n=new jl(t,{argv:e.argv,stopAtFirstUnknown:e.stopAtFirstUnknown,caseInsensitive:e.caseInsensitive}),i=t.isGrouped()?Kl:Ji,a=new i(t);for(let s of n){let o=s.subArg||s.arg;if(!e.partial){if(s.event==="unknown_value"){let u=new Error(`Unknown value: ${o}`);throw u.name="UNKNOWN_VALUE",u.value=o,u}else if(s.event==="unknown_option"){let u=new Error(`Unknown option: ${o}`);throw u.name="UNKNOWN_OPTION",u.optionName=o,u}}let r;a.has(s.name)?r=a.get(s.name):(r=rn.create(s.def),a.set(s.name,r)),s.name==="_unknown"?r.set(o):r.set(s.value)}return a.toObject({skipUnknown:!e.partial,camelCase:e.camelCase})}dS.exports=Q1});function ce(t){for(var e={},n=t.length,i=0;i<n;i++){var a=t[i];a&&(e[String(a).toUpperCase().replace(/[-.]/g,"_")]=a)}return e}var Jl=m(()=>{});var _S,SS,hS,TS,vS,mS,yS,AS,OS,gS,NS,RS,PS,bS,MS,xS,LS,IS,CS,wS,US,DS,VS,BS,GS,kS,HS,FS,YS,qS,jS,$S,KS,WS,zS,XS,JS,QS,ZS,eh,th,rh,nh,oh,ih,ah,sh,uh,lh,ch,fh,ph,dh,Eh,_h,Sh,hh,Th,vh,mh,yh,Ah,Oh,gh,Nh,Rh,Ph,bh,Mh,xh,Lh,Ih,Ch,wh,Uh,Dh,Vh,Bh,Gh,kh,Hh,Fh,Yh,qh,jh,$h,Kh,Wh,zh,Xh,Jh,Qh,Zh,eT,tT,rT,nT,oT,iT,aT,sT,uT,lT,cT,fT,pT,dT,ET,_T,ST,hT,TT,vT,mT,yT,AT,OT,gT,NT,RT,PT,bT,MT,xT,LT,IT,CT,wT,Z1,eV,tV,rV,nV,oV,iV,aV,sV,uV,lV,cV,fV,pV,dV,EV,_V,SV,hV,TV,vV,mV,yV,AV,OV,gV,NV,RV,PV,bV,MV,xV,LV,IV,CV,wV,UV,DV,VV,BV,GV,kV,HV,FV,YV,qV,jV,$V,KV,WV,zV,XV,JV,QV,ZV,e2,t2,r2,n2,o2,i2,a2,s2,u2,l2,c2,f2,p2,d2,E2,_2,S2,h2,T2,v2,m2,y2,A2,O2,g2,N2,R2,P2,b2,M2,x2,L2,I2,C2,w2,U2,D2,V2,B2,G2,k2,H2,F2,Y2,q2,j2,$2,K2,W2,z2,X2,J2,Q2,Z2,eB,tB,rB,nB,oB,iB,aB,sB,uB,lB,cB,fB,pB,dB,EB,_B,SB,hB,TB,vB,UT,DT,VT,BT,GT,kT,HT,FT,YT,qT,jT,$T,KT,WT,zT,XT,JT,QT,ZT,ev,tv,rv,nv,ov,iv,av,sv,uv,lv,cv,fv,pv,dv,Ev,_v,Sv,hv,Tv,vv,mv,yv,Av,Ov,gv,Nv,Rv,Pv,mB,yB,AB,OB,gB,NB,RB,PB,bB,MB,xB,LB,IB,CB,wB,UB,DB,VB,BB,GB,kB,HB,FB,YB,qB,jB,$B,KB,WB,zB,XB,JB,QB,ZB,eG,tG,rG,nG,oG,iG,aG,sG,uG,lG,cG,fG,pG,dG,bv,Mv,xv,Lv,Iv,Cv,wv,Uv,Dv,Vv,Bv,EG,_G,SG,hG,TG,vG,mG,yG,AG,OG,gG,NG,Gv,kv,Hv,Fv,Yv,RG,PG,bG,MG,xG,LG,qv,jv,$v,IG,CG,wG,UG,Kv,Wv,zv,Xv,DG,VG,BG,GG,kG,Jv,Qv,Zv,em,tm,rm,nm,HG,FG,YG,qG,jG,$G,KG,WG,om,im,am,sm,um,zG,XG,JG,QG,ZG,ek,lm,cm,fm,pm,dm,Em,_m,Sm,hm,Tm,vm,mm,ym,Am,Om,gm,Nm,Rm,Pm,bm,Mm,tk,rk,nk,ok,ik,ak,sk,uk,lk,ck,fk,pk,dk,Ek,_k,Sk,hk,Tk,vk,mk,yk,Ak,xm,Lm,Im,Cm,wm,Ok,gk,Nk,Rk,Pk,bk,Um,Dm,Mk,xk,Lk,Vm,Bm,Ik,Ck,wk,Gm,km,Hm,Fm,Ym,qm,jm,$m,Km,Wm,zm,Xm,Jm,Qm,Zm,ey,ty,Uk,Dk,Vk,Bk,Gk,kk,Hk,Fk,Yk,qk,jk,$k,Kk,Wk,zk,Xk,Jk,Qk,ry,ny,Zk,eH,tH,oy=m(()=>{Jl();_S="aws.lambda.invoked_arn",SS="db.system",hS="db.connection_string",TS="db.user",vS="db.jdbc.driver_classname",mS="db.name",yS="db.statement",AS="db.operation",OS="db.mssql.instance_name",gS="db.cassandra.keyspace",NS="db.cassandra.page_size",RS="db.cassandra.consistency_level",PS="db.cassandra.table",bS="db.cassandra.idempotence",MS="db.cassandra.speculative_execution_count",xS="db.cassandra.coordinator.id",LS="db.cassandra.coordinator.dc",IS="db.hbase.namespace",CS="db.redis.database_index",wS="db.mongodb.collection",US="db.sql.table",DS="exception.type",VS="exception.message",BS="exception.stacktrace",GS="exception.escaped",kS="faas.trigger",HS="faas.execution",FS="faas.document.collection",YS="faas.document.operation",qS="faas.document.time",jS="faas.document.name",$S="faas.time",KS="faas.cron",WS="faas.coldstart",zS="faas.invoked_name",XS="faas.invoked_provider",JS="faas.invoked_region",QS="net.transport",ZS="net.peer.ip",eh="net.peer.port",th="net.peer.name",rh="net.host.ip",nh="net.host.port",oh="net.host.name",ih="net.host.connection.type",ah="net.host.connection.subtype",sh="net.host.carrier.name",uh="net.host.carrier.mcc",lh="net.host.carrier.mnc",ch="net.host.carrier.icc",fh="peer.service",ph="enduser.id",dh="enduser.role",Eh="enduser.scope",_h="thread.id",Sh="thread.name",hh="code.function",Th="code.namespace",vh="code.filepath",mh="code.lineno",yh="http.method",Ah="http.url",Oh="http.target",gh="http.host",Nh="http.scheme",Rh="http.status_code",Ph="http.flavor",bh="http.user_agent",Mh="http.request_content_length",xh="http.request_content_length_uncompressed",Lh="http.response_content_length",Ih="http.response_content_length_uncompressed",Ch="http.server_name",wh="http.route",Uh="http.client_ip",Dh="aws.dynamodb.table_names",Vh="aws.dynamodb.consumed_capacity",Bh="aws.dynamodb.item_collection_metrics",Gh="aws.dynamodb.provisioned_read_capacity",kh="aws.dynamodb.provisioned_write_capacity",Hh="aws.dynamodb.consistent_read",Fh="aws.dynamodb.projection",Yh="aws.dynamodb.limit",qh="aws.dynamodb.attributes_to_get",jh="aws.dynamodb.index_name",$h="aws.dynamodb.select",Kh="aws.dynamodb.global_secondary_indexes",Wh="aws.dynamodb.local_secondary_indexes",zh="aws.dynamodb.exclusive_start_table",Xh="aws.dynamodb.table_count",Jh="aws.dynamodb.scan_forward",Qh="aws.dynamodb.segment",Zh="aws.dynamodb.total_segments",eT="aws.dynamodb.count",tT="aws.dynamodb.scanned_count",rT="aws.dynamodb.attribute_definitions",nT="aws.dynamodb.global_secondary_index_updates",oT="messaging.system",iT="messaging.destination",aT="messaging.destination_kind",sT="messaging.temp_destination",uT="messaging.protocol",lT="messaging.protocol_version",cT="messaging.url",fT="messaging.message_id",pT="messaging.conversation_id",dT="messaging.message_payload_size_bytes",ET="messaging.message_payload_compressed_size_bytes",_T="messaging.operation",ST="messaging.consumer_id",hT="messaging.rabbitmq.routing_key",TT="messaging.kafka.message_key",vT="messaging.kafka.consumer_group",mT="messaging.kafka.client_id",yT="messaging.kafka.partition",AT="messaging.kafka.tombstone",OT="rpc.system",gT="rpc.service",NT="rpc.method",RT="rpc.grpc.status_code",PT="rpc.jsonrpc.version",bT="rpc.jsonrpc.request_id",MT="rpc.jsonrpc.error_code",xT="rpc.jsonrpc.error_message",LT="message.type",IT="message.id",CT="message.compressed_size",wT="message.uncompressed_size",Z1=_S,eV=SS,tV=hS,rV=TS,nV=vS,oV=mS,iV=yS,aV=AS,sV=OS,uV=gS,lV=NS,cV=RS,fV=PS,pV=bS,dV=MS,EV=xS,_V=LS,SV=IS,hV=CS,TV=wS,vV=US,mV=DS,yV=VS,AV=BS,OV=GS,gV=kS,NV=HS,RV=FS,PV=YS,bV=qS,MV=jS,xV=$S,LV=KS,IV=WS,CV=zS,wV=XS,UV=JS,DV=QS,VV=ZS,BV=eh,GV=th,kV=rh,HV=nh,FV=oh,YV=ih,qV=ah,jV=sh,$V=uh,KV=lh,WV=ch,zV=fh,XV=ph,JV=dh,QV=Eh,ZV=_h,e2=Sh,t2=hh,r2=Th,n2=vh,o2=mh,i2=yh,a2=Ah,s2=Oh,u2=gh,l2=Nh,c2=Rh,f2=Ph,p2=bh,d2=Mh,E2=xh,_2=Lh,S2=Ih,h2=Ch,T2=wh,v2=Uh,m2=Dh,y2=Vh,A2=Bh,O2=Gh,g2=kh,N2=Hh,R2=Fh,P2=Yh,b2=qh,M2=jh,x2=$h,L2=Kh,I2=Wh,C2=zh,w2=Xh,U2=Jh,D2=Qh,V2=Zh,B2=eT,G2=tT,k2=rT,H2=nT,F2=oT,Y2=iT,q2=aT,j2=sT,$2=uT,K2=lT,W2=cT,z2=fT,X2=pT,J2=dT,Q2=ET,Z2=_T,eB=ST,tB=hT,rB=TT,nB=vT,oB=mT,iB=yT,aB=AT,sB=OT,uB=gT,lB=NT,cB=RT,fB=PT,pB=bT,dB=MT,EB=xT,_B=LT,SB=IT,hB=CT,TB=wT,vB=ce([_S,SS,hS,TS,vS,mS,yS,AS,OS,gS,NS,RS,PS,bS,MS,xS,LS,IS,CS,wS,US,DS,VS,BS,GS,kS,HS,FS,YS,qS,jS,$S,KS,WS,zS,XS,JS,QS,ZS,eh,th,rh,nh,oh,ih,ah,sh,uh,lh,ch,fh,ph,dh,Eh,_h,Sh,hh,Th,vh,mh,yh,Ah,Oh,gh,Nh,Rh,Ph,bh,Mh,xh,Lh,Ih,Ch,wh,Uh,Dh,Vh,Bh,Gh,kh,Hh,Fh,Yh,qh,jh,$h,Kh,Wh,zh,Xh,Jh,Qh,Zh,eT,tT,rT,nT,oT,iT,aT,sT,uT,lT,cT,fT,pT,dT,ET,_T,ST,hT,TT,vT,mT,yT,AT,OT,gT,NT,RT,PT,bT,MT,xT,LT,IT,CT,wT]),UT="other_sql",DT="mssql",VT="mysql",BT="oracle",GT="db2",kT="postgresql",HT="redshift",FT="hive",YT="cloudscape",qT="hsqldb",jT="progress",$T="maxdb",KT="hanadb",WT="ingres",zT="firstsql",XT="edb",JT="cache",QT="adabas",ZT="firebird",ev="derby",tv="filemaker",rv="informix",nv="instantdb",ov="interbase",iv="mariadb",av="netezza",sv="pervasive",uv="pointbase",lv="sqlite",cv="sybase",fv="teradata",pv="vertica",dv="h2",Ev="coldfusion",_v="cassandra",Sv="hbase",hv="mongodb",Tv="redis",vv="couchbase",mv="couchdb",yv="cosmosdb",Av="dynamodb",Ov="neo4j",gv="geode",Nv="elasticsearch",Rv="memcached",Pv="cockroachdb",mB=UT,yB=DT,AB=VT,OB=BT,gB=GT,NB=kT,RB=HT,PB=FT,bB=YT,MB=qT,xB=jT,LB=$T,IB=KT,CB=WT,wB=zT,UB=XT,DB=JT,VB=QT,BB=ZT,GB=ev,kB=tv,HB=rv,FB=nv,YB=ov,qB=iv,jB=av,$B=sv,KB=uv,WB=lv,zB=cv,XB=fv,JB=pv,QB=dv,ZB=Ev,eG=_v,tG=Sv,rG=hv,nG=Tv,oG=vv,iG=mv,aG=yv,sG=Av,uG=Ov,lG=gv,cG=Nv,fG=Rv,pG=Pv,dG=ce([UT,DT,VT,BT,GT,kT,HT,FT,YT,qT,jT,$T,KT,WT,zT,XT,JT,QT,ZT,ev,tv,rv,nv,ov,iv,av,sv,uv,lv,cv,fv,pv,dv,Ev,_v,Sv,hv,Tv,vv,mv,yv,Av,Ov,gv,Nv,Rv,Pv]),bv="all",Mv="each_quorum",xv="quorum",Lv="local_quorum",Iv="one",Cv="two",wv="three",Uv="local_one",Dv="any",Vv="serial",Bv="local_serial",EG=bv,_G=Mv,SG=xv,hG=Lv,TG=Iv,vG=Cv,mG=wv,yG=Uv,AG=Dv,OG=Vv,gG=Bv,NG=ce([bv,Mv,xv,Lv,Iv,Cv,wv,Uv,Dv,Vv,Bv]),Gv="datasource",kv="http",Hv="pubsub",Fv="timer",Yv="other",RG=Gv,PG=kv,bG=Hv,MG=Fv,xG=Yv,LG=ce([Gv,kv,Hv,Fv,Yv]),qv="insert",jv="edit",$v="delete",IG=qv,CG=jv,wG=$v,UG=ce([qv,jv,$v]),Kv="alibaba_cloud",Wv="aws",zv="azure",Xv="gcp",DG=Kv,VG=Wv,BG=zv,GG=Xv,kG=ce([Kv,Wv,zv,Xv]),Jv="ip_tcp",Qv="ip_udp",Zv="ip",em="unix",tm="pipe",rm="inproc",nm="other",HG=Jv,FG=Qv,YG=Zv,qG=em,jG=tm,$G=rm,KG=nm,WG=ce([Jv,Qv,Zv,em,tm,rm,nm]),om="wifi",im="wired",am="cell",sm="unavailable",um="unknown",zG=om,XG=im,JG=am,QG=sm,ZG=um,ek=ce([om,im,am,sm,um]),lm="gprs",cm="edge",fm="umts",pm="cdma",dm="evdo_0",Em="evdo_a",_m="cdma2000_1xrtt",Sm="hsdpa",hm="hsupa",Tm="hspa",vm="iden",mm="evdo_b",ym="lte",Am="ehrpd",Om="hspap",gm="gsm",Nm="td_scdma",Rm="iwlan",Pm="nr",bm="nrnsa",Mm="lte_ca",tk=lm,rk=cm,nk=fm,ok=pm,ik=dm,ak=Em,sk=_m,uk=Sm,lk=hm,ck=Tm,fk=vm,pk=mm,dk=ym,Ek=Am,_k=Om,Sk=gm,hk=Nm,Tk=Rm,vk=Pm,mk=bm,yk=Mm,Ak=ce([lm,cm,fm,pm,dm,Em,_m,Sm,hm,Tm,vm,mm,ym,Am,Om,gm,Nm,Rm,Pm,bm,Mm]),xm="1.0",Lm="1.1",Im="2.0",Cm="SPDY",wm="QUIC",Ok=xm,gk=Lm,Nk=Im,Rk=Cm,Pk=wm,bk={HTTP_1_0:xm,HTTP_1_1:Lm,HTTP_2_0:Im,SPDY:Cm,QUIC:wm},Um="queue",Dm="topic",Mk=Um,xk=Dm,Lk=ce([Um,Dm]),Vm="receive",Bm="process",Ik=Vm,Ck=Bm,wk=ce([Vm,Bm]),Gm=0,km=1,Hm=2,Fm=3,Ym=4,qm=5,jm=6,$m=7,Km=8,Wm=9,zm=10,Xm=11,Jm=12,Qm=13,Zm=14,ey=15,ty=16,Uk=Gm,Dk=km,Vk=Hm,Bk=Fm,Gk=Ym,kk=qm,Hk=jm,Fk=$m,Yk=Km,qk=Wm,jk=zm,$k=Xm,Kk=Jm,Wk=Qm,zk=Zm,Xk=ey,Jk=ty,Qk={OK:Gm,CANCELLED:km,UNKNOWN:Hm,INVALID_ARGUMENT:Fm,DEADLINE_EXCEEDED:Ym,NOT_FOUND:qm,ALREADY_EXISTS:jm,PERMISSION_DENIED:$m,RESOURCE_EXHAUSTED:Km,FAILED_PRECONDITION:Wm,ABORTED:zm,OUT_OF_RANGE:Xm,UNIMPLEMENTED:Jm,INTERNAL:Qm,UNAVAILABLE:Zm,DATA_LOSS:ey,UNAUTHENTICATED:ty},ry="SENT",ny="RECEIVED",Zk=ry,eH=ny,tH=ce([ry,ny])});var iy=m(()=>{oy()});var ay,sy,uy,ly,cy,fy,py,dy,Ey,_y,Sy,hy,Ty,vy,my,yy,Ay,Oy,gy,Ny,Ry,Py,by,My,xy,Ly,Iy,Cy,wy,Uy,Dy,Vy,By,Gy,ky,Hy,Fy,Yy,qy,jy,$y,Ky,Wy,zy,Xy,Jy,Qy,Zy,eA,tA,rA,nA,oA,iA,aA,sA,uA,lA,cA,fA,pA,dA,EA,_A,SA,hA,TA,vA,mA,yA,AA,OA,gA,NA,RA,PA,bA,MA,xA,LA,IA,rH,nH,oH,iH,aH,sH,uH,lH,cH,fH,pH,dH,EH,_H,SH,hH,TH,vH,mH,yH,AH,OH,gH,NH,RH,PH,bH,MH,xH,LH,IH,CH,wH,UH,DH,VH,BH,GH,kH,HH,FH,YH,qH,jH,$H,KH,WH,zH,XH,JH,QH,ZH,e3,t3,r3,n3,o3,i3,a3,s3,u3,l3,c3,f3,p3,d3,E3,_3,S3,h3,T3,v3,m3,y3,A3,O3,g3,N3,R3,P3,b3,M3,CA,wA,UA,DA,x3,L3,I3,C3,w3,VA,BA,GA,kA,HA,FA,YA,qA,jA,$A,KA,WA,zA,XA,JA,QA,ZA,U3,D3,V3,B3,G3,k3,H3,F3,Y3,q3,j3,$3,K3,W3,z3,X3,J3,Q3,eO,tO,Z3,eF,tF,rO,nO,oO,iO,aO,sO,uO,rF,nF,oF,iF,aF,sF,uF,lF,lO,cO,fO,pO,dO,EO,_O,SO,hO,TO,vO,cF,fF,pF,dF,EF,_F,SF,hF,TF,vF,mF,yF,mO,yO,AO,OO,gO,NO,RO,PO,bO,MO,AF,OF,gF,NF,RF,PF,bF,MF,xF,LF,IF,xO=m(()=>{Jl();ay="cloud.provider",sy="cloud.account.id",uy="cloud.region",ly="cloud.availability_zone",cy="cloud.platform",fy="aws.ecs.container.arn",py="aws.ecs.cluster.arn",dy="aws.ecs.launchtype",Ey="aws.ecs.task.arn",_y="aws.ecs.task.family",Sy="aws.ecs.task.revision",hy="aws.eks.cluster.arn",Ty="aws.log.group.names",vy="aws.log.group.arns",my="aws.log.stream.names",yy="aws.log.stream.arns",Ay="container.name",Oy="container.id",gy="container.runtime",Ny="container.image.name",Ry="container.image.tag",Py="deployment.environment",by="device.id",My="device.model.identifier",xy="device.model.name",Ly="faas.name",Iy="faas.id",Cy="faas.version",wy="faas.instance",Uy="faas.max_memory",Dy="host.id",Vy="host.name",By="host.type",Gy="host.arch",ky="host.image.name",Hy="host.image.id",Fy="host.image.version",Yy="k8s.cluster.name",qy="k8s.node.name",jy="k8s.node.uid",$y="k8s.namespace.name",Ky="k8s.pod.uid",Wy="k8s.pod.name",zy="k8s.container.name",Xy="k8s.replicaset.uid",Jy="k8s.replicaset.name",Qy="k8s.deployment.uid",Zy="k8s.deployment.name",eA="k8s.statefulset.uid",tA="k8s.statefulset.name",rA="k8s.daemonset.uid",nA="k8s.daemonset.name",oA="k8s.job.uid",iA="k8s.job.name",aA="k8s.cronjob.uid",sA="k8s.cronjob.name",uA="os.type",lA="os.description",cA="os.name",fA="os.version",pA="process.pid",dA="process.executable.name",EA="process.executable.path",_A="process.command",SA="process.command_line",hA="process.command_args",TA="process.owner",vA="process.runtime.name",mA="process.runtime.version",yA="process.runtime.description",AA="service.name",OA="service.namespace",gA="service.instance.id",NA="service.version",RA="telemetry.sdk.name",PA="telemetry.sdk.language",bA="telemetry.sdk.version",MA="telemetry.auto.version",xA="webengine.name",LA="webengine.version",IA="webengine.description",rH=ay,nH=sy,oH=uy,iH=ly,aH=cy,sH=fy,uH=py,lH=dy,cH=Ey,fH=_y,pH=Sy,dH=hy,EH=Ty,_H=vy,SH=my,hH=yy,TH=Ay,vH=Oy,mH=gy,yH=Ny,AH=Ry,OH=Py,gH=by,NH=My,RH=xy,PH=Ly,bH=Iy,MH=Cy,xH=wy,LH=Uy,IH=Dy,CH=Vy,wH=By,UH=Gy,DH=ky,VH=Hy,BH=Fy,GH=Yy,kH=qy,HH=jy,FH=$y,YH=Ky,qH=Wy,jH=zy,$H=Xy,KH=Jy,WH=Qy,zH=Zy,XH=eA,JH=tA,QH=rA,ZH=nA,e3=oA,t3=iA,r3=aA,n3=sA,o3=uA,i3=lA,a3=cA,s3=fA,u3=pA,l3=dA,c3=EA,f3=_A,p3=SA,d3=hA,E3=TA,_3=vA,S3=mA,h3=yA,T3=AA,v3=OA,m3=gA,y3=NA,A3=RA,O3=PA,g3=bA,N3=MA,R3=xA,P3=LA,b3=IA,M3=ce([ay,sy,uy,ly,cy,fy,py,dy,Ey,_y,Sy,hy,Ty,vy,my,yy,Ay,Oy,gy,Ny,Ry,Py,by,My,xy,Ly,Iy,Cy,wy,Uy,Dy,Vy,By,Gy,ky,Hy,Fy,Yy,qy,jy,$y,Ky,Wy,zy,Xy,Jy,Qy,Zy,eA,tA,rA,nA,oA,iA,aA,sA,uA,lA,cA,fA,pA,dA,EA,_A,SA,hA,TA,vA,mA,yA,AA,OA,gA,NA,RA,PA,bA,MA,xA,LA,IA]),CA="alibaba_cloud",wA="aws",UA="azure",DA="gcp",x3=CA,L3=wA,I3=UA,C3=DA,w3=ce([CA,wA,UA,DA]),VA="alibaba_cloud_ecs",BA="alibaba_cloud_fc",GA="aws_ec2",kA="aws_ecs",HA="aws_eks",FA="aws_lambda",YA="aws_elastic_beanstalk",qA="azure_vm",jA="azure_container_instances",$A="azure_aks",KA="azure_functions",WA="azure_app_service",zA="gcp_compute_engine",XA="gcp_cloud_run",JA="gcp_kubernetes_engine",QA="gcp_cloud_functions",ZA="gcp_app_engine",U3=VA,D3=BA,V3=GA,B3=kA,G3=HA,k3=FA,H3=YA,F3=qA,Y3=jA,q3=$A,j3=KA,$3=WA,K3=zA,W3=XA,z3=JA,X3=QA,J3=ZA,Q3=ce([VA,BA,GA,kA,HA,FA,YA,qA,jA,$A,KA,WA,zA,XA,JA,QA,ZA]),eO="ec2",tO="fargate",Z3=eO,eF=tO,tF=ce([eO,tO]),rO="amd64",nO="arm32",oO="arm64",iO="ia64",aO="ppc32",sO="ppc64",uO="x86",rF=rO,nF=nO,oF=oO,iF=iO,aF=aO,sF=sO,uF=uO,lF=ce([rO,nO,oO,iO,aO,sO,uO]),lO="windows",cO="linux",fO="darwin",pO="freebsd",dO="netbsd",EO="openbsd",_O="dragonflybsd",SO="hpux",hO="aix",TO="solaris",vO="z_os",cF=lO,fF=cO,pF=fO,dF=pO,EF=dO,_F=EO,SF=_O,hF=SO,TF=hO,vF=TO,mF=vO,yF=ce([lO,cO,fO,pO,dO,EO,_O,SO,hO,TO,vO]),mO="cpp",yO="dotnet",AO="erlang",OO="go",gO="java",NO="nodejs",RO="php",PO="python",bO="ruby",MO="webjs",AF=mO,OF=yO,gF=AO,NF=OO,RF=gO,PF=NO,bF=RO,MF=PO,xF=bO,LF=MO,IF=ce([mO,yO,AO,OO,gO,NO,RO,PO,bO,MO])});var LO=m(()=>{xO()});var So={};it(So,{AWSECSLAUNCHTYPEVALUES_EC2:()=>Z3,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>eF,AwsEcsLaunchtypeValues:()=>tF,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>U3,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>D3,CLOUDPLATFORMVALUES_AWS_EC2:()=>V3,CLOUDPLATFORMVALUES_AWS_ECS:()=>B3,CLOUDPLATFORMVALUES_AWS_EKS:()=>G3,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>H3,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>k3,CLOUDPLATFORMVALUES_AZURE_AKS:()=>q3,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>$3,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>Y3,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>j3,CLOUDPLATFORMVALUES_AZURE_VM:()=>F3,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>J3,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>X3,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>W3,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>K3,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>z3,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>x3,CLOUDPROVIDERVALUES_AWS:()=>L3,CLOUDPROVIDERVALUES_AZURE:()=>I3,CLOUDPROVIDERVALUES_GCP:()=>C3,CloudPlatformValues:()=>Q3,CloudProviderValues:()=>w3,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>EG,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>AG,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>_G,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>yG,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>hG,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>gG,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>TG,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>SG,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>OG,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>mG,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>vG,DBSYSTEMVALUES_ADABAS:()=>VB,DBSYSTEMVALUES_CACHE:()=>DB,DBSYSTEMVALUES_CASSANDRA:()=>eG,DBSYSTEMVALUES_CLOUDSCAPE:()=>bB,DBSYSTEMVALUES_COCKROACHDB:()=>pG,DBSYSTEMVALUES_COLDFUSION:()=>ZB,DBSYSTEMVALUES_COSMOSDB:()=>aG,DBSYSTEMVALUES_COUCHBASE:()=>oG,DBSYSTEMVALUES_COUCHDB:()=>iG,DBSYSTEMVALUES_DB2:()=>gB,DBSYSTEMVALUES_DERBY:()=>GB,DBSYSTEMVALUES_DYNAMODB:()=>sG,DBSYSTEMVALUES_EDB:()=>UB,DBSYSTEMVALUES_ELASTICSEARCH:()=>cG,DBSYSTEMVALUES_FILEMAKER:()=>kB,DBSYSTEMVALUES_FIREBIRD:()=>BB,DBSYSTEMVALUES_FIRSTSQL:()=>wB,DBSYSTEMVALUES_GEODE:()=>lG,DBSYSTEMVALUES_H2:()=>QB,DBSYSTEMVALUES_HANADB:()=>IB,DBSYSTEMVALUES_HBASE:()=>tG,DBSYSTEMVALUES_HIVE:()=>PB,DBSYSTEMVALUES_HSQLDB:()=>MB,DBSYSTEMVALUES_INFORMIX:()=>HB,DBSYSTEMVALUES_INGRES:()=>CB,DBSYSTEMVALUES_INSTANTDB:()=>FB,DBSYSTEMVALUES_INTERBASE:()=>YB,DBSYSTEMVALUES_MARIADB:()=>qB,DBSYSTEMVALUES_MAXDB:()=>LB,DBSYSTEMVALUES_MEMCACHED:()=>fG,DBSYSTEMVALUES_MONGODB:()=>rG,DBSYSTEMVALUES_MSSQL:()=>yB,DBSYSTEMVALUES_MYSQL:()=>AB,DBSYSTEMVALUES_NEO4J:()=>uG,DBSYSTEMVALUES_NETEZZA:()=>jB,DBSYSTEMVALUES_ORACLE:()=>OB,DBSYSTEMVALUES_OTHER_SQL:()=>mB,DBSYSTEMVALUES_PERVASIVE:()=>$B,DBSYSTEMVALUES_POINTBASE:()=>KB,DBSYSTEMVALUES_POSTGRESQL:()=>NB,DBSYSTEMVALUES_PROGRESS:()=>xB,DBSYSTEMVALUES_REDIS:()=>nG,DBSYSTEMVALUES_REDSHIFT:()=>RB,DBSYSTEMVALUES_SQLITE:()=>WB,DBSYSTEMVALUES_SYBASE:()=>zB,DBSYSTEMVALUES_TERADATA:()=>XB,DBSYSTEMVALUES_VERTICA:()=>JB,DbCassandraConsistencyLevelValues:()=>NG,DbSystemValues:()=>dG,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>wG,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>CG,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>IG,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>DG,FAASINVOKEDPROVIDERVALUES_AWS:()=>VG,FAASINVOKEDPROVIDERVALUES_AZURE:()=>BG,FAASINVOKEDPROVIDERVALUES_GCP:()=>GG,FAASTRIGGERVALUES_DATASOURCE:()=>RG,FAASTRIGGERVALUES_HTTP:()=>PG,FAASTRIGGERVALUES_OTHER:()=>xG,FAASTRIGGERVALUES_PUBSUB:()=>bG,FAASTRIGGERVALUES_TIMER:()=>MG,FaasDocumentOperationValues:()=>UG,FaasInvokedProviderValues:()=>kG,FaasTriggerValues:()=>LG,HOSTARCHVALUES_AMD64:()=>rF,HOSTARCHVALUES_ARM32:()=>nF,HOSTARCHVALUES_ARM64:()=>oF,HOSTARCHVALUES_IA64:()=>iF,HOSTARCHVALUES_PPC32:()=>aF,HOSTARCHVALUES_PPC64:()=>sF,HOSTARCHVALUES_X86:()=>uF,HTTPFLAVORVALUES_HTTP_1_0:()=>Ok,HTTPFLAVORVALUES_HTTP_1_1:()=>gk,HTTPFLAVORVALUES_HTTP_2_0:()=>Nk,HTTPFLAVORVALUES_QUIC:()=>Pk,HTTPFLAVORVALUES_SPDY:()=>Rk,HostArchValues:()=>lF,HttpFlavorValues:()=>bk,MESSAGETYPEVALUES_RECEIVED:()=>eH,MESSAGETYPEVALUES_SENT:()=>Zk,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>Mk,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>xk,MESSAGINGOPERATIONVALUES_PROCESS:()=>Ck,MESSAGINGOPERATIONVALUES_RECEIVE:()=>Ik,MessageTypeValues:()=>tH,MessagingDestinationKindValues:()=>Lk,MessagingOperationValues:()=>wk,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>ok,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>sk,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>rk,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>Ek,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>ik,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>ak,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>pk,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>tk,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>Sk,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>uk,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>ck,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>_k,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>lk,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>fk,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>Tk,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>dk,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>yk,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>vk,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>mk,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>hk,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>nk,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>JG,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>QG,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>ZG,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>zG,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>XG,NETTRANSPORTVALUES_INPROC:()=>$G,NETTRANSPORTVALUES_IP:()=>YG,NETTRANSPORTVALUES_IP_TCP:()=>HG,NETTRANSPORTVALUES_IP_UDP:()=>FG,NETTRANSPORTVALUES_OTHER:()=>KG,NETTRANSPORTVALUES_PIPE:()=>jG,NETTRANSPORTVALUES_UNIX:()=>qG,NetHostConnectionSubtypeValues:()=>Ak,NetHostConnectionTypeValues:()=>ek,NetTransportValues:()=>WG,OSTYPEVALUES_AIX:()=>TF,OSTYPEVALUES_DARWIN:()=>pF,OSTYPEVALUES_DRAGONFLYBSD:()=>SF,OSTYPEVALUES_FREEBSD:()=>dF,OSTYPEVALUES_HPUX:()=>hF,OSTYPEVALUES_LINUX:()=>fF,OSTYPEVALUES_NETBSD:()=>EF,OSTYPEVALUES_OPENBSD:()=>_F,OSTYPEVALUES_SOLARIS:()=>vF,OSTYPEVALUES_WINDOWS:()=>cF,OSTYPEVALUES_Z_OS:()=>mF,OsTypeValues:()=>yF,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>jk,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>Hk,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>Dk,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>Xk,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>Gk,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>qk,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>Wk,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>Bk,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>kk,RPCGRPCSTATUSCODEVALUES_OK:()=>Uk,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>$k,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>Fk,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>Yk,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>Jk,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>zk,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>Kk,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>Vk,RpcGrpcStatusCodeValues:()=>Qk,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>b2,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>k2,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>N2,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>y2,SEMATTRS_AWS_DYNAMODB_COUNT:()=>B2,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>C2,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>L2,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>H2,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>M2,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>A2,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>P2,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>I2,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>R2,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>O2,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>g2,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>G2,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>U2,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>D2,SEMATTRS_AWS_DYNAMODB_SELECT:()=>x2,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>w2,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>m2,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>V2,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>Z1,SEMATTRS_CODE_FILEPATH:()=>n2,SEMATTRS_CODE_FUNCTION:()=>t2,SEMATTRS_CODE_LINENO:()=>o2,SEMATTRS_CODE_NAMESPACE:()=>r2,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>cV,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>_V,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>EV,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>pV,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>uV,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>lV,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>dV,SEMATTRS_DB_CASSANDRA_TABLE:()=>fV,SEMATTRS_DB_CONNECTION_STRING:()=>tV,SEMATTRS_DB_HBASE_NAMESPACE:()=>SV,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>nV,SEMATTRS_DB_MONGODB_COLLECTION:()=>TV,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>sV,SEMATTRS_DB_NAME:()=>oV,SEMATTRS_DB_OPERATION:()=>aV,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>hV,SEMATTRS_DB_SQL_TABLE:()=>vV,SEMATTRS_DB_STATEMENT:()=>iV,SEMATTRS_DB_SYSTEM:()=>eV,SEMATTRS_DB_USER:()=>rV,SEMATTRS_ENDUSER_ID:()=>XV,SEMATTRS_ENDUSER_ROLE:()=>JV,SEMATTRS_ENDUSER_SCOPE:()=>QV,SEMATTRS_EXCEPTION_ESCAPED:()=>OV,SEMATTRS_EXCEPTION_MESSAGE:()=>yV,SEMATTRS_EXCEPTION_STACKTRACE:()=>AV,SEMATTRS_EXCEPTION_TYPE:()=>mV,SEMATTRS_FAAS_COLDSTART:()=>IV,SEMATTRS_FAAS_CRON:()=>LV,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>RV,SEMATTRS_FAAS_DOCUMENT_NAME:()=>MV,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>PV,SEMATTRS_FAAS_DOCUMENT_TIME:()=>bV,SEMATTRS_FAAS_EXECUTION:()=>NV,SEMATTRS_FAAS_INVOKED_NAME:()=>CV,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>wV,SEMATTRS_FAAS_INVOKED_REGION:()=>UV,SEMATTRS_FAAS_TIME:()=>xV,SEMATTRS_FAAS_TRIGGER:()=>gV,SEMATTRS_HTTP_CLIENT_IP:()=>v2,SEMATTRS_HTTP_FLAVOR:()=>f2,SEMATTRS_HTTP_HOST:()=>u2,SEMATTRS_HTTP_METHOD:()=>i2,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>d2,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>E2,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>_2,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>S2,SEMATTRS_HTTP_ROUTE:()=>T2,SEMATTRS_HTTP_SCHEME:()=>l2,SEMATTRS_HTTP_SERVER_NAME:()=>h2,SEMATTRS_HTTP_STATUS_CODE:()=>c2,SEMATTRS_HTTP_TARGET:()=>s2,SEMATTRS_HTTP_URL:()=>a2,SEMATTRS_HTTP_USER_AGENT:()=>p2,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>hB,SEMATTRS_MESSAGE_ID:()=>SB,SEMATTRS_MESSAGE_TYPE:()=>_B,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>TB,SEMATTRS_MESSAGING_CONSUMER_ID:()=>eB,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>X2,SEMATTRS_MESSAGING_DESTINATION:()=>Y2,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>q2,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>oB,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>nB,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>rB,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>iB,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>aB,SEMATTRS_MESSAGING_MESSAGE_ID:()=>z2,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>Q2,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>J2,SEMATTRS_MESSAGING_OPERATION:()=>Z2,SEMATTRS_MESSAGING_PROTOCOL:()=>$2,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>K2,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>tB,SEMATTRS_MESSAGING_SYSTEM:()=>F2,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>j2,SEMATTRS_MESSAGING_URL:()=>W2,SEMATTRS_NET_HOST_CARRIER_ICC:()=>WV,SEMATTRS_NET_HOST_CARRIER_MCC:()=>$V,SEMATTRS_NET_HOST_CARRIER_MNC:()=>KV,SEMATTRS_NET_HOST_CARRIER_NAME:()=>jV,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>qV,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>YV,SEMATTRS_NET_HOST_IP:()=>kV,SEMATTRS_NET_HOST_NAME:()=>FV,SEMATTRS_NET_HOST_PORT:()=>HV,SEMATTRS_NET_PEER_IP:()=>VV,SEMATTRS_NET_PEER_NAME:()=>GV,SEMATTRS_NET_PEER_PORT:()=>BV,SEMATTRS_NET_TRANSPORT:()=>DV,SEMATTRS_PEER_SERVICE:()=>zV,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>cB,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>dB,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>EB,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>pB,SEMATTRS_RPC_JSONRPC_VERSION:()=>fB,SEMATTRS_RPC_METHOD:()=>lB,SEMATTRS_RPC_SERVICE:()=>uB,SEMATTRS_RPC_SYSTEM:()=>sB,SEMATTRS_THREAD_ID:()=>ZV,SEMATTRS_THREAD_NAME:()=>e2,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>uH,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>sH,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>lH,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>cH,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>fH,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>pH,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>dH,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>_H,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>EH,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>hH,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>SH,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>nH,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>iH,SEMRESATTRS_CLOUD_PLATFORM:()=>aH,SEMRESATTRS_CLOUD_PROVIDER:()=>rH,SEMRESATTRS_CLOUD_REGION:()=>oH,SEMRESATTRS_CONTAINER_ID:()=>vH,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>yH,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>AH,SEMRESATTRS_CONTAINER_NAME:()=>TH,SEMRESATTRS_CONTAINER_RUNTIME:()=>mH,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>OH,SEMRESATTRS_DEVICE_ID:()=>gH,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>NH,SEMRESATTRS_DEVICE_MODEL_NAME:()=>RH,SEMRESATTRS_FAAS_ID:()=>bH,SEMRESATTRS_FAAS_INSTANCE:()=>xH,SEMRESATTRS_FAAS_MAX_MEMORY:()=>LH,SEMRESATTRS_FAAS_NAME:()=>PH,SEMRESATTRS_FAAS_VERSION:()=>MH,SEMRESATTRS_HOST_ARCH:()=>UH,SEMRESATTRS_HOST_ID:()=>IH,SEMRESATTRS_HOST_IMAGE_ID:()=>VH,SEMRESATTRS_HOST_IMAGE_NAME:()=>DH,SEMRESATTRS_HOST_IMAGE_VERSION:()=>BH,SEMRESATTRS_HOST_NAME:()=>CH,SEMRESATTRS_HOST_TYPE:()=>wH,SEMRESATTRS_K8S_CLUSTER_NAME:()=>GH,SEMRESATTRS_K8S_CONTAINER_NAME:()=>jH,SEMRESATTRS_K8S_CRONJOB_NAME:()=>n3,SEMRESATTRS_K8S_CRONJOB_UID:()=>r3,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>ZH,SEMRESATTRS_K8S_DAEMONSET_UID:()=>QH,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>zH,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>WH,SEMRESATTRS_K8S_JOB_NAME:()=>t3,SEMRESATTRS_K8S_JOB_UID:()=>e3,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>FH,SEMRESATTRS_K8S_NODE_NAME:()=>kH,SEMRESATTRS_K8S_NODE_UID:()=>HH,SEMRESATTRS_K8S_POD_NAME:()=>qH,SEMRESATTRS_K8S_POD_UID:()=>YH,SEMRESATTRS_K8S_REPLICASET_NAME:()=>KH,SEMRESATTRS_K8S_REPLICASET_UID:()=>$H,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>JH,SEMRESATTRS_K8S_STATEFULSET_UID:()=>XH,SEMRESATTRS_OS_DESCRIPTION:()=>i3,SEMRESATTRS_OS_NAME:()=>a3,SEMRESATTRS_OS_TYPE:()=>o3,SEMRESATTRS_OS_VERSION:()=>s3,SEMRESATTRS_PROCESS_COMMAND:()=>f3,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>d3,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>p3,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>l3,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>c3,SEMRESATTRS_PROCESS_OWNER:()=>E3,SEMRESATTRS_PROCESS_PID:()=>u3,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>h3,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>_3,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>S3,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>m3,SEMRESATTRS_SERVICE_NAME:()=>T3,SEMRESATTRS_SERVICE_NAMESPACE:()=>v3,SEMRESATTRS_SERVICE_VERSION:()=>y3,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>N3,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>O3,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>A3,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>g3,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>b3,SEMRESATTRS_WEBENGINE_NAME:()=>R3,SEMRESATTRS_WEBENGINE_VERSION:()=>P3,SemanticAttributes:()=>vB,SemanticResourceAttributes:()=>M3,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>AF,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>OF,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>gF,TELEMETRYSDKLANGUAGEVALUES_GO:()=>NF,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>RF,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>PF,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>bF,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>MF,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>xF,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>LF,TelemetrySdkLanguageValues:()=>IF});var ho=m(()=>{iy();LO()});var CO=h((IO,Qi)=>{(function(t){"use strict";let e="(0?\\d+|0x[a-f0-9]+)",n={fourOctet:new RegExp(`^${e}\\.${e}\\.${e}\\.${e}$`,"i"),threeOctet:new RegExp(`^${e}\\.${e}\\.${e}$`,"i"),twoOctet:new RegExp(`^${e}\\.${e}$`,"i"),longValue:new RegExp(`^${e}$`,"i")},i=new RegExp("^0[0-7]+$","i"),a=new RegExp("^0x[a-f0-9]+$","i"),s="%[0-9a-z]{1,}",o="(?:[0-9a-f]+::?)+",r={zoneIndex:new RegExp(s,"i"),native:new RegExp(`^(::)?(${o})?([0-9a-f]+)?(::)?(${s})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${e}\\.${e}\\.${e}\\.${e}(${s})?)$`,"i"),transitional:new RegExp(`^((?:${o})|(?:::)(?:${o})?)${e}\\.${e}\\.${e}\\.${e}(${s})?$`,"i")};function u(f,S){if(f.indexOf("::")!==f.lastIndexOf("::"))return null;let v=0,T=-1,A=(f.match(r.zoneIndex)||[])[0],O,N;for(A&&(A=A.substring(1),f=f.replace(/%.+$/,""));(T=f.indexOf(":",T+1))>=0;)v++;if(f.substr(0,2)==="::"&&v--,f.substr(-2,2)==="::"&&v--,v>S)return null;for(N=S-v,O=":";N--;)O+="0:";return f=f.replace("::",O),f[0]===":"&&(f=f.slice(1)),f[f.length-1]===":"&&(f=f.slice(0,-1)),S=function(){let D=f.split(":"),G=[];for(let F=0;F<D.length;F++)G.push(parseInt(D[F],16));return G}(),{parts:S,zoneId:A}}function l(f,S,v,T){if(f.length!==S.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let A=0,O;for(;T>0;){if(O=v-T,O<0&&(O=0),f[A]>>O!==S[A]>>O)return!1;T-=v,A+=1}return!0}function c(f){if(a.test(f))return parseInt(f,16);if(f[0]==="0"&&!isNaN(parseInt(f[1],10))){if(i.test(f))return parseInt(f,8);throw new Error(`ipaddr: cannot parse ${f} as octal`)}return parseInt(f,10)}function p(f,S){for(;f.length<S;)f=`0${f}`;return f}let _={};_.IPv4=function(){function f(S){if(S.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let v,T;for(v=0;v<S.length;v++)if(T=S[v],!(0<=T&&T<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=S}return f.prototype.SpecialRanges={unspecified:[[new f([0,0,0,0]),8]],broadcast:[[new f([255,255,255,255]),32]],multicast:[[new f([224,0,0,0]),4]],linkLocal:[[new f([169,254,0,0]),16]],loopback:[[new f([127,0,0,0]),8]],carrierGradeNat:[[new f([100,64,0,0]),10]],private:[[new f([10,0,0,0]),8],[new f([172,16,0,0]),12],[new f([192,168,0,0]),16]],reserved:[[new f([192,0,0,0]),24],[new f([192,0,2,0]),24],[new f([192,88,99,0]),24],[new f([198,18,0,0]),15],[new f([198,51,100,0]),24],[new f([203,0,113,0]),24],[new f([240,0,0,0]),4]],as112:[[new f([192,175,48,0]),24],[new f([192,31,196,0]),24]],amt:[[new f([192,52,193,0]),24]]},f.prototype.kind=function(){return"ipv4"},f.prototype.match=function(S,v){let T;if(v===void 0&&(T=S,S=T[0],v=T[1]),S.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return l(this.octets,S.octets,8,v)},f.prototype.prefixLengthFromSubnetMask=function(){let S=0,v=!1,T={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},A,O,N;for(A=3;A>=0;A-=1)if(O=this.octets[A],O in T){if(N=T[O],v&&N!==0)return null;N!==8&&(v=!0),S+=N}else return null;return 32-S},f.prototype.range=function(){return _.subnetMatch(this,this.SpecialRanges)},f.prototype.toByteArray=function(){return this.octets.slice(0)},f.prototype.toIPv4MappedAddress=function(){return _.IPv6.parse(`::ffff:${this.toString()}`)},f.prototype.toNormalizedString=function(){return this.toString()},f.prototype.toString=function(){return this.octets.join(".")},f}(),_.IPv4.broadcastAddressFromCIDR=function(f){try{let S=this.parseCIDR(f),v=S[0].toByteArray(),T=this.subnetMaskFromPrefixLength(S[1]).toByteArray(),A=[],O=0;for(;O<4;)A.push(parseInt(v[O],10)|parseInt(T[O],10)^255),O++;return new this(A)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},_.IPv4.isIPv4=function(f){return this.parser(f)!==null},_.IPv4.isValid=function(f){try{return new this(this.parser(f)),!0}catch{return!1}},_.IPv4.isValidCIDR=function(f){try{return this.parseCIDR(f),!0}catch{return!1}},_.IPv4.isValidFourPartDecimal=function(f){return!!(_.IPv4.isValid(f)&&f.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},_.IPv4.networkAddressFromCIDR=function(f){let S,v,T,A,O;try{for(S=this.parseCIDR(f),T=S[0].toByteArray(),O=this.subnetMaskFromPrefixLength(S[1]).toByteArray(),A=[],v=0;v<4;)A.push(parseInt(T[v],10)&parseInt(O[v],10)),v++;return new this(A)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},_.IPv4.parse=function(f){let S=this.parser(f);if(S===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(S)},_.IPv4.parseCIDR=function(f){let S;if(S=f.match(/^(.+)\/(\d+)$/)){let v=parseInt(S[2]);if(v>=0&&v<=32){let T=[this.parse(S[1]),v];return Object.defineProperty(T,"toString",{value:function(){return this.join("/")}}),T}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},_.IPv4.parser=function(f){let S,v,T;if(S=f.match(n.fourOctet))return function(){let A=S.slice(1,6),O=[];for(let N=0;N<A.length;N++)v=A[N],O.push(c(v));return O}();if(S=f.match(n.longValue)){if(T=c(S[1]),T>4294967295||T<0)throw new Error("ipaddr: address outside defined range");return function(){let A=[],O;for(O=0;O<=24;O+=8)A.push(T>>O&255);return A}().reverse()}else return(S=f.match(n.twoOctet))?function(){let A=S.slice(1,4),O=[];if(T=c(A[1]),T>16777215||T<0)throw new Error("ipaddr: address outside defined range");return O.push(c(A[0])),O.push(T>>16&255),O.push(T>>8&255),O.push(T&255),O}():(S=f.match(n.threeOctet))?function(){let A=S.slice(1,5),O=[];if(T=c(A[2]),T>65535||T<0)throw new Error("ipaddr: address outside defined range");return O.push(c(A[0])),O.push(c(A[1])),O.push(T>>8&255),O.push(T&255),O}():null},_.IPv4.subnetMaskFromPrefixLength=function(f){if(f=parseInt(f),f<0||f>32)throw new Error("ipaddr: invalid IPv4 prefix length");let S=[0,0,0,0],v=0,T=Math.floor(f/8);for(;v<T;)S[v]=255,v++;return T<4&&(S[T]=Math.pow(2,f%8)-1<<8-f%8),new this(S)},_.IPv6=function(){function f(S,v){let T,A;if(S.length===16)for(this.parts=[],T=0;T<=14;T+=2)this.parts.push(S[T]<<8|S[T+1]);else if(S.length===8)this.parts=S;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(T=0;T<this.parts.length;T++)if(A=this.parts[T],!(0<=A&&A<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");v&&(this.zoneId=v)}return f.prototype.SpecialRanges={unspecified:[new f([0,0,0,0,0,0,0,0]),128],linkLocal:[new f([65152,0,0,0,0,0,0,0]),10],multicast:[new f([65280,0,0,0,0,0,0,0]),8],loopback:[new f([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new f([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new f([0,0,0,0,0,65535,0,0]),96],discard:[new f([256,0,0,0,0,0,0,0]),64],rfc6145:[new f([0,0,0,0,65535,0,0,0]),96],rfc6052:[new f([100,65435,0,0,0,0,0,0]),96],"6to4":[new f([8194,0,0,0,0,0,0,0]),16],teredo:[new f([8193,0,0,0,0,0,0,0]),32],benchmarking:[new f([8193,2,0,0,0,0,0,0]),48],amt:[new f([8193,3,0,0,0,0,0,0]),32],as112v6:[[new f([8193,4,274,0,0,0,0,0]),48],[new f([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new f([8193,16,0,0,0,0,0,0]),28],orchid2:[new f([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new f([8193,48,0,0,0,0,0,0]),28],reserved:[[new f([8193,0,0,0,0,0,0,0]),23],[new f([8193,3512,0,0,0,0,0,0]),32]]},f.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},f.prototype.kind=function(){return"ipv6"},f.prototype.match=function(S,v){let T;if(v===void 0&&(T=S,S=T[0],v=T[1]),S.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return l(this.parts,S.parts,16,v)},f.prototype.prefixLengthFromSubnetMask=function(){let S=0,v=!1,T={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},A,O;for(let N=7;N>=0;N-=1)if(A=this.parts[N],A in T){if(O=T[A],v&&O!==0)return null;O!==16&&(v=!0),S+=O}else return null;return 128-S},f.prototype.range=function(){return _.subnetMatch(this,this.SpecialRanges)},f.prototype.toByteArray=function(){let S,v=[],T=this.parts;for(let A=0;A<T.length;A++)S=T[A],v.push(S>>8),v.push(S&255);return v},f.prototype.toFixedLengthString=function(){let S=function(){let T=[];for(let A=0;A<this.parts.length;A++)T.push(p(this.parts[A].toString(16),4));return T}.call(this).join(":"),v="";return this.zoneId&&(v=`%${this.zoneId}`),S+v},f.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let S=this.parts.slice(-2),v=S[0],T=S[1];return new _.IPv4([v>>8,v&255,T>>8,T&255])},f.prototype.toNormalizedString=function(){let S=function(){let T=[];for(let A=0;A<this.parts.length;A++)T.push(this.parts[A].toString(16));return T}.call(this).join(":"),v="";return this.zoneId&&(v=`%${this.zoneId}`),S+v},f.prototype.toRFC5952String=function(){let S=/((^|:)(0(:|$)){2,})/g,v=this.toNormalizedString(),T=0,A=-1,O;for(;O=S.exec(v);)O[0].length>A&&(T=O.index,A=O[0].length);return A<0?v:`${v.substring(0,T)}::${v.substring(T+A)}`},f.prototype.toString=function(){return this.toRFC5952String()},f}(),_.IPv6.broadcastAddressFromCIDR=function(f){try{let S=this.parseCIDR(f),v=S[0].toByteArray(),T=this.subnetMaskFromPrefixLength(S[1]).toByteArray(),A=[],O=0;for(;O<16;)A.push(parseInt(v[O],10)|parseInt(T[O],10)^255),O++;return new this(A)}catch(S){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${S})`)}},_.IPv6.isIPv6=function(f){return this.parser(f)!==null},_.IPv6.isValid=function(f){if(typeof f=="string"&&f.indexOf(":")===-1)return!1;try{let S=this.parser(f);return new this(S.parts,S.zoneId),!0}catch{return!1}},_.IPv6.isValidCIDR=function(f){if(typeof f=="string"&&f.indexOf(":")===-1)return!1;try{return this.parseCIDR(f),!0}catch{return!1}},_.IPv6.networkAddressFromCIDR=function(f){let S,v,T,A,O;try{for(S=this.parseCIDR(f),T=S[0].toByteArray(),O=this.subnetMaskFromPrefixLength(S[1]).toByteArray(),A=[],v=0;v<16;)A.push(parseInt(T[v],10)&parseInt(O[v],10)),v++;return new this(A)}catch(N){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${N})`)}},_.IPv6.parse=function(f){let S=this.parser(f);if(S.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(S.parts,S.zoneId)},_.IPv6.parseCIDR=function(f){let S,v,T;if((v=f.match(/^(.+)\/(\d+)$/))&&(S=parseInt(v[2]),S>=0&&S<=128))return T=[this.parse(v[1]),S],Object.defineProperty(T,"toString",{value:function(){return this.join("/")}}),T;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},_.IPv6.parser=function(f){let S,v,T,A,O,N;if(T=f.match(r.deprecatedTransitional))return this.parser(`::ffff:${T[1]}`);if(r.native.test(f))return u(f,8);if((T=f.match(r.transitional))&&(N=T[6]||"",S=T[1],T[1].endsWith("::")||(S=S.slice(0,-1)),S=u(S+N,6),S.parts)){for(O=[parseInt(T[2]),parseInt(T[3]),parseInt(T[4]),parseInt(T[5])],v=0;v<O.length;v++)if(A=O[v],!(0<=A&&A<=255))return null;return S.parts.push(O[0]<<8|O[1]),S.parts.push(O[2]<<8|O[3]),{parts:S.parts,zoneId:S.zoneId}}return null},_.IPv6.subnetMaskFromPrefixLength=function(f){if(f=parseInt(f),f<0||f>128)throw new Error("ipaddr: invalid IPv6 prefix length");let S=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],v=0,T=Math.floor(f/8);for(;v<T;)S[v]=255,v++;return T<16&&(S[T]=Math.pow(2,f%8)-1<<8-f%8),new this(S)},_.fromByteArray=function(f){let S=f.length;if(S===4)return new _.IPv4(f);if(S===16)return new _.IPv6(f);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},_.isValid=function(f){return _.IPv6.isValid(f)||_.IPv4.isValid(f)},_.isValidCIDR=function(f){return _.IPv6.isValidCIDR(f)||_.IPv4.isValidCIDR(f)},_.parse=function(f){if(_.IPv6.isValid(f))return _.IPv6.parse(f);if(_.IPv4.isValid(f))return _.IPv4.parse(f);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},_.parseCIDR=function(f){try{return _.IPv6.parseCIDR(f)}catch{try{return _.IPv4.parseCIDR(f)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},_.process=function(f){let S=this.parse(f);return S.kind()==="ipv6"&&S.isIPv4MappedAddress()?S.toIPv4Address():S},_.subnetMatch=function(f,S,v){let T,A,O,N;v==null&&(v="unicast");for(A in S)if(Object.prototype.hasOwnProperty.call(S,A)){for(O=S[A],O[0]&&!(O[0]instanceof Array)&&(O=[O]),T=0;T<O.length;T++)if(N=O[T],f.kind()===N[0].kind()&&f.match.apply(f,N))return A}return v},typeof Qi<"u"&&Qi.exports?Qi.exports=_:t.ipaddr=_})(IO)});var Ql=h(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.getPeerAttributes=Kt.getStatusAttributes=Kt.getMethodAttributes=void 0;var Tt=(ho(),Y(So)),CF=CO(),wF=Rl();function UF(t){let[,e,n]=t.split("/");return{[Tt.SEMATTRS_RPC_SYSTEM]:"grpc",[Tt.SEMATTRS_RPC_SERVICE]:e,[Tt.SEMATTRS_RPC_METHOD]:n}}Kt.getMethodAttributes=UF;function DF(t){return{[Tt.SEMATTRS_RPC_GRPC_STATUS_CODE]:t,"rpc.grpc.status_text":wF.Status[t]}}Kt.getStatusAttributes=DF;function VF(t){let e=t.lastIndexOf(":");if(e===-1)return{[Tt.SEMATTRS_NET_PEER_NAME]:t};let n=t.slice(0,e),i=+t.slice(e+1);return Number.isNaN(i)?{[Tt.SEMATTRS_NET_PEER_NAME]:t}:CF.isValid(n)?{[Tt.SEMATTRS_NET_PEER_IP]:n,[Tt.SEMATTRS_NET_PEER_PORT]:i}:{[Tt.SEMATTRS_NET_PEER_NAME]:n,[Tt.SEMATTRS_NET_PEER_PORT]:i}}Kt.getPeerAttributes=VF});var Zl=h(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.metadataGetter=nn.metadataSetter=void 0;nn.metadataSetter={set(t,e,n){t.set(e,n)}};nn.metadataGetter={get:(t,e)=>t.get(e),keys:t=>Array.from(t,([e])=>e)}});var wO=h(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.VERSION=void 0;Zi.VERSION="0.1.15"});var ec=h(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.emitSpanEvents=Wt.getSpanName=Wt.tracer=void 0;var BF=(b(),Y(Re)),UO=(ho(),Y(So)),GF=wO();Wt.tracer=BF.trace.getTracer("nice-grpc-opentelemetry",GF.VERSION);function kF(t){return t.slice(1)}Wt.getSpanName=kF;async function*HF(t,e,n){let i=1;for await(let a of t)e.addEvent("message",{[UO.SEMATTRS_MESSAGE_TYPE]:n,[UO.SEMATTRS_MESSAGE_ID]:i++}),yield a}Wt.emitSpanEvents=HF});var rc=h(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.bindAsyncGenerator=void 0;var tc=(b(),Y(Re));function DO(t,e){return{next:tc.context.bind(t,e.next.bind(e)),return:tc.context.bind(t,e.return.bind(e)),throw:tc.context.bind(t,e.throw.bind(e)),[Symbol.asyncIterator](){return DO(t,e[Symbol.asyncIterator]())}}}ea.bindAsyncGenerator=DO});var BO=h(ra=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});ra.openTelemetryServerMiddleware=void 0;var To=(b(),Y(Re)),VO=(ho(),Y(So)),FF=(oE(),Y(nE)),on=Rl(),nc=Ql(),YF=Zl(),ta=ec(),qF=rc();function jF(){return(t,e)=>ta.tracer.startActiveSpan((0,ta.getSpanName)(t.method.path),{kind:To.SpanKind.SERVER},To.propagation.extract(To.ROOT_CONTEXT,e.metadata,YF.metadataGetter),n=>(0,qF.bindAsyncGenerator)(To.context.active(),$F(n,t,e)))}ra.openTelemetryServerMiddleware=jF;async function*$F(t,e,n){let i={...(0,nc.getMethodAttributes)(e.method.path),...(0,nc.getPeerAttributes)(n.peer)};t.setAttributes(i);let a=on.Status.OK,s;try{let o;if(e.requestStream?o=(0,ta.emitSpanEvents)(e.request,t,VO.MESSAGETYPEVALUES_RECEIVED):o=e.request,e.responseStream){yield*(0,ta.emitSpanEvents)(e.next(o,n),t,VO.MESSAGETYPEVALUES_SENT);return}else return yield*e.next(o,n)}catch(o){throw o instanceof on.ServerError?(a=o.code,s=o.details):(0,FF.isAbortError)(o)?(a=on.Status.CANCELLED,s="The operation was cancelled"):(a=on.Status.UNKNOWN,s="Unknown server error occurred",t.recordException(o)),o}finally{let o=(0,nc.getStatusAttributes)(a);t.setAttributes(o),a!==on.Status.OK&&t.setStatus({code:To.SpanStatusCode.ERROR,message:`${on.Status[a]}: ${s}`}),t.end()}}});var HO=h(oa=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});oa.openTelemetryClientMiddleware=void 0;var vo=(b(),Y(Re)),GO=(ho(),Y(So)),KF=(oE(),Y(nE)),zt=Rl(),kO=Ql(),WF=Zl(),na=ec(),zF=rc();function XF(){return(t,e)=>na.tracer.startActiveSpan((0,na.getSpanName)(t.method.path),{kind:vo.SpanKind.CLIENT},n=>{let i=(0,zt.Metadata)(e.metadata);return vo.propagation.inject(vo.context.active(),i,WF.metadataSetter),(0,zF.bindAsyncGenerator)(vo.context.active(),JF(n,t,{...e,metadata:i}))})}oa.openTelemetryClientMiddleware=XF;async function*JF(t,e,n){let i=(0,kO.getMethodAttributes)(e.method.path);t.setAttributes(i);let a=!1,s=zt.Status.OK,o;try{let r;if(e.requestStream?r=(0,na.emitSpanEvents)(e.request,t,GO.MESSAGETYPEVALUES_SENT):r=e.request,e.responseStream){yield*(0,na.emitSpanEvents)(e.next(r,n),t,GO.MESSAGETYPEVALUES_RECEIVED),a=!0;return}else{let u=yield*e.next(r,n);return a=!0,u}}catch(r){throw a=!0,r instanceof zt.ClientError?(s=r.code,o=r.details):(0,KF.isAbortError)(r)?(s=zt.Status.CANCELLED,o="The operation was cancelled"):(s=zt.Status.UNKNOWN,o="Unknown server error occurred",t.recordException(r)),r}finally{a||(s=zt.Status.CANCELLED,o="Stream iteration was aborted by client, e.g. by breaking from the for .. of loop");let r=(0,kO.getStatusAttributes)(s);t.setAttributes(r),s!==zt.Status.OK&&t.setStatus({code:vo.SpanStatusCode.ERROR,message:`${zt.Status[s]}: ${o}`}),t.end()}}});var FO=h(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.openTelemetryClientMiddleware=an.openTelemetryServerMiddleware=void 0;var QF=BO();Object.defineProperty(an,"openTelemetryServerMiddleware",{enumerable:!0,get:function(){return QF.openTelemetryServerMiddleware}});var ZF=HO();Object.defineProperty(an,"openTelemetryClientMiddleware",{enumerable:!0,get:function(){return ZF.openTelemetryClientMiddleware}})});var Fe=h((FQ,$O)=>{"use strict";var mo=class extends Error{constructor(e){super(`Format functions must be synchronous taking a two arguments: (info, opts)
|
10
10
|
Found: ${e.toString().split(`
|
11
11
|
`)[0]}
|
12
|
-
`),Error.captureStackTrace(this,
|
13
|
-
`)!=-1,i=this._styles,a=i.length;a--;){var s=Nr[i[a]];e=s.open+e.replace(s.closeRe,s.open)+s.close,n&&(e=e.replace(
|
14
|
-
`));return!0}
|
12
|
+
`),Error.captureStackTrace(this,mo)}};$O.exports=t=>{if(t.length>2)throw new mo(t);function e(i={}){this.options=i}e.prototype.transform=t;function n(i){return new e(i)}return n.Format=e,n}});var XO=h((YQ,zO)=>{var WO={};zO.exports=WO;var KO={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(KO).forEach(function(t){var e=KO[t],n=WO[t]=[];n.open="\x1B["+e[0]+"m",n.close="\x1B["+e[1]+"m"})});var QO=h((qQ,JO)=>{"use strict";JO.exports=function(t,e){e=e||process.argv||[];var n=e.indexOf("--"),i=/^-{1,2}/.test(t)?"":"--",a=e.indexOf(i+t);return a!==-1&&(n===-1?!0:a<n)}});var eg=h((jQ,ZO)=>{"use strict";var nY=L("os"),lt=QO(),we=process.env,sn=void 0;lt("no-color")||lt("no-colors")||lt("color=false")?sn=!1:(lt("color")||lt("colors")||lt("color=true")||lt("color=always"))&&(sn=!0);"FORCE_COLOR"in we&&(sn=we.FORCE_COLOR.length===0||parseInt(we.FORCE_COLOR,10)!==0);function oY(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function iY(t){if(sn===!1)return 0;if(lt("color=16m")||lt("color=full")||lt("color=truecolor"))return 3;if(lt("color=256"))return 2;if(t&&!t.isTTY&&sn!==!0)return 0;var e=sn?1:0;if(process.platform==="win32"){var n=nY.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in we)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(a){return a in we})||we.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in we)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(we.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in we){var i=parseInt((we.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(we.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(we.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(we.TERM)||"COLORTERM"in we?1:(we.TERM==="dumb",e)}function ac(t){var e=iY(t);return oY(e)}ZO.exports={supportsColor:ac,stdout:ac(process.stdout),stderr:ac(process.stderr)}});var rg=h(($Q,tg)=>{tg.exports=function(e,n){var i="";e=e||"Run the trap, drop the bass",e=e.split("");var a={a:["@","\u0104","\u023A","\u0245","\u0394","\u039B","\u0414"],b:["\xDF","\u0181","\u0243","\u026E","\u03B2","\u0E3F"],c:["\xA9","\u023B","\u03FE"],d:["\xD0","\u018A","\u0500","\u0501","\u0502","\u0503"],e:["\xCB","\u0115","\u018E","\u0258","\u03A3","\u03BE","\u04BC","\u0A6C"],f:["\u04FA"],g:["\u0262"],h:["\u0126","\u0195","\u04A2","\u04BA","\u04C7","\u050A"],i:["\u0F0F"],j:["\u0134"],k:["\u0138","\u04A0","\u04C3","\u051E"],l:["\u0139"],m:["\u028D","\u04CD","\u04CE","\u0520","\u0521","\u0D69"],n:["\xD1","\u014B","\u019D","\u0376","\u03A0","\u048A"],o:["\xD8","\xF5","\xF8","\u01FE","\u0298","\u047A","\u05DD","\u06DD","\u0E4F"],p:["\u01F7","\u048E"],q:["\u09CD"],r:["\xAE","\u01A6","\u0210","\u024C","\u0280","\u042F"],s:["\xA7","\u03DE","\u03DF","\u03E8"],t:["\u0141","\u0166","\u0373"],u:["\u01B1","\u054D"],v:["\u05D8"],w:["\u0428","\u0460","\u047C","\u0D70"],x:["\u04B2","\u04FE","\u04FC","\u04FD"],y:["\xA5","\u04B0","\u04CB"],z:["\u01B5","\u0240"]};return e.forEach(function(s){s=s.toLowerCase();var o=a[s]||[" "],r=Math.floor(Math.random()*o.length);typeof a[s]<"u"?i+=a[s][r]:i+=s}),i}});var og=h((KQ,ng)=>{ng.exports=function(e,n){e=e||" he is here ";var i={up:["\u030D","\u030E","\u0304","\u0305","\u033F","\u0311","\u0306","\u0310","\u0352","\u0357","\u0351","\u0307","\u0308","\u030A","\u0342","\u0313","\u0308","\u034A","\u034B","\u034C","\u0303","\u0302","\u030C","\u0350","\u0300","\u0301","\u030B","\u030F","\u0312","\u0313","\u0314","\u033D","\u0309","\u0363","\u0364","\u0365","\u0366","\u0367","\u0368","\u0369","\u036A","\u036B","\u036C","\u036D","\u036E","\u036F","\u033E","\u035B","\u0346","\u031A"],down:["\u0316","\u0317","\u0318","\u0319","\u031C","\u031D","\u031E","\u031F","\u0320","\u0324","\u0325","\u0326","\u0329","\u032A","\u032B","\u032C","\u032D","\u032E","\u032F","\u0330","\u0331","\u0332","\u0333","\u0339","\u033A","\u033B","\u033C","\u0345","\u0347","\u0348","\u0349","\u034D","\u034E","\u0353","\u0354","\u0355","\u0356","\u0359","\u035A","\u0323"],mid:["\u0315","\u031B","\u0300","\u0301","\u0358","\u0321","\u0322","\u0327","\u0328","\u0334","\u0335","\u0336","\u035C","\u035D","\u035E","\u035F","\u0360","\u0362","\u0338","\u0337","\u0361"," \u0489"]},a=[].concat(i.up,i.down,i.mid);function s(u){var l=Math.floor(Math.random()*u);return l}function o(u){var l=!1;return a.filter(function(c){l=c===u}),l}function r(u,l){var c="",p,_;l=l||{},l.up=typeof l.up<"u"?l.up:!0,l.mid=typeof l.mid<"u"?l.mid:!0,l.down=typeof l.down<"u"?l.down:!0,l.size=typeof l.size<"u"?l.size:"maxi",u=u.split("");for(_ in u)if(!o(_)){switch(c=c+u[_],p={up:0,down:0,mid:0},l.size){case"mini":p.up=s(8),p.mid=s(2),p.down=s(8);break;case"maxi":p.up=s(16)+3,p.mid=s(4)+1,p.down=s(64)+3;break;default:p.up=s(8)+1,p.mid=s(6)/2,p.down=s(8)+1;break}var f=["up","mid","down"];for(var S in f)for(var v=f[S],T=0;T<=p[v];T++)l[v]&&(c=c+i[v][s(i[v].length)])}return c}return r(e,n)}});var ag=h((WQ,ig)=>{ig.exports=function(t){return function(e,n,i){if(e===" ")return e;switch(n%3){case 0:return t.red(e);case 1:return t.white(e);case 2:return t.blue(e)}}}});var ug=h((zQ,sg)=>{sg.exports=function(t){return function(e,n,i){return n%2===0?e:t.inverse(e)}}});var cg=h((XQ,lg)=>{lg.exports=function(t){var e=["red","yellow","green","blue","magenta"];return function(n,i,a){return n===" "?n:t[e[i++%e.length]](n)}}});var pg=h((JQ,fg)=>{fg.exports=function(t){var e=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(n,i,a){return n===" "?n:t[e[Math.round(Math.random()*(e.length-2))]](n)}}});var Tg=h((ZQ,hg)=>{var H={};hg.exports=H;H.themes={};var aY=L("util"),Nr=H.styles=XO(),Eg=Object.defineProperties,sY=new RegExp(/[\r\n]+/g);H.supportsColor=eg().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 QQ=H.stylize=function(e,n){if(!H.enabled)return e+"";var i=Nr[n];return!i&&n in H?H[n](e):i.open+e+i.close},uY=/[|\\{}()[\]^$+*?.]/g,lY=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(uY,"\\$&")};function _g(t){var e=function n(){return fY.apply(n,arguments)};return e._styles=t,e.__proto__=cY,e}var Sg=function(){var t={};return Nr.grey=Nr.gray,Object.keys(Nr).forEach(function(e){Nr[e].closeRe=new RegExp(lY(Nr[e].close),"g"),t[e]={get:function(){return _g(this._styles.concat(e))}}}),t}(),cY=Eg(function(){},Sg);function fY(){var t=Array.prototype.slice.call(arguments),e=t.map(function(o){return o!=null&&o.constructor===String?o:aY.inspect(o)}).join(" ");if(!H.enabled||!e)return e;for(var n=e.indexOf(`
|
13
|
+
`)!=-1,i=this._styles,a=i.length;a--;){var s=Nr[i[a]];e=s.open+e.replace(s.closeRe,s.open)+s.close,n&&(e=e.replace(sY,function(o){return s.close+o+s.open}))}return e}H.setTheme=function(t){if(typeof t=="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var e in t)(function(n){H[n]=function(i){if(typeof t[n]=="object"){var a=i;for(var s in t[n])a=H[t[n][s]](a);return a}return H[t[n]](i)}})(e)};function pY(){var t={};return Object.keys(Sg).forEach(function(e){t[e]={get:function(){return _g([e])}}}),t}var dY=function(e,n){var i=n.split("");return i=i.map(e),i.join("")};H.trap=rg();H.zalgo=og();H.maps={};H.maps.america=ag()(H);H.maps.zebra=ug()(H);H.maps.rainbow=cg()(H);H.maps.random=pg()(H);for(dg in H.maps)(function(t){H[t]=function(e){return dY(H.maps[t],e)}})(dg);var dg;Eg(H,pY())});var sc=h((eZ,vg)=>{var EY=Tg();vg.exports=EY});var mg=h(uc=>{"use strict";uc.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9};uc.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}});var yg=h(lc=>{"use strict";lc.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6};lc.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}});var Ag=h(cc=>{"use strict";cc.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7};cc.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}});var Og=h(sa=>{"use strict";Object.defineProperty(sa,"cli",{value:mg()});Object.defineProperty(sa,"npm",{value:yg()});Object.defineProperty(sa,"syslog",{value:Ag()})});var fe=h(yo=>{"use strict";Object.defineProperty(yo,"LEVEL",{value:Symbol.for("level")});Object.defineProperty(yo,"MESSAGE",{value:Symbol.for("message")});Object.defineProperty(yo,"SPLAT",{value:Symbol.for("splat")});Object.defineProperty(yo,"configs",{value:Og()})});var la=h((aZ,ua)=>{"use strict";var dc=sc(),{LEVEL:fc,MESSAGE:pc}=fe();dc.enabled=!0;var gg=/\s+/,ze=class{constructor(e={}){e.colors&&this.addColors(e.colors),this.options=e}static addColors(e){let n=Object.keys(e).reduce((i,a)=>(i[a]=gg.test(e[a])?e[a].split(gg):e[a],i),{});return ze.allColors=Object.assign({},ze.allColors||{},n),ze.allColors}addColors(e){return ze.addColors(e)}colorize(e,n,i){if(typeof i>"u"&&(i=n),!Array.isArray(ze.allColors[e]))return dc[ze.allColors[e]](i);for(let a=0,s=ze.allColors[e].length;a<s;a++)i=dc[ze.allColors[e][a]](i);return i}transform(e,n){return n.all&&typeof e[pc]=="string"&&(e[pc]=this.colorize(e[fc],e.level,e[pc])),(n.level||n.all||!n.message)&&(e.level=this.colorize(e[fc],e.level)),(n.all||n.message)&&(e.message=this.colorize(e[fc],e.level,e.message)),e}};ua.exports=t=>new ze(t);ua.exports.Colorizer=ua.exports.Format=ze});var Rg=h((sZ,Ng)=>{"use strict";var{Colorizer:_Y}=la();Ng.exports=t=>(_Y.addColors(t.colors||t),t)});var bg=h((uZ,Pg)=>{"use strict";var SY=Fe();Pg.exports=SY(t=>(t.message=` ${t.message}`,t))});var Lg=h((lZ,xg)=>{"use strict";var hY=Fe(),{LEVEL:Mg,MESSAGE:Ec}=fe();xg.exports=hY((t,{stack:e,cause:n})=>{if(t instanceof Error){let a=Object.assign({},t,{level:t.level,[Mg]:t[Mg]||t.level,message:t.message,[Ec]:t[Ec]||t.message});return e&&(a.stack=t.stack),n&&(a.cause=t.cause),a}if(!(t.message instanceof Error))return t;let i=t.message;return Object.assign(t,i),t.message=i.message,t[Ec]=i.message,e&&(t.stack=i.stack),n&&(t.cause=i.cause),t})});var Sc=h((cZ,ca)=>{"use strict";var{configs:TY,LEVEL:Ig,MESSAGE:_c}=fe(),Xt=class{constructor(e={levels:TY.npm.levels}){this.paddings=Xt.paddingForLevels(e.levels,e.filler),this.options=e}static getLongestLevel(e){let n=Object.keys(e).map(i=>i.length);return Math.max(...n)}static paddingForLevel(e,n,i){let a=i+1-e.length,s=Math.floor(a/n.length);return`${n}${n.repeat(s)}`.slice(0,a)}static paddingForLevels(e,n=" "){let i=Xt.getLongestLevel(e);return Object.keys(e).reduce((a,s)=>(a[s]=Xt.paddingForLevel(s,n,i),a),{})}transform(e,n){return e.message=`${this.paddings[e[Ig]]}${e.message}`,e[_c]&&(e[_c]=`${this.paddings[e[Ig]]}${e[_c]}`),e}};ca.exports=t=>new Xt(t);ca.exports.Padder=ca.exports.Format=Xt});var Cg=h((fZ,hc)=>{"use strict";var{Colorizer:vY}=la(),{Padder:mY}=Sc(),{configs:yY,MESSAGE:AY}=fe(),fa=class{constructor(e={}){e.levels||(e.levels=yY.cli.levels),this.colorizer=new vY(e),this.padder=new mY(e),this.options=e}transform(e,n){return this.colorizer.transform(this.padder.transform(e,n),n),e[AY]=`${e.level}:${e.message}`,e}};hc.exports=t=>new fa(t);hc.exports.Format=fa});var Ug=h((pZ,Tc)=>{"use strict";var OY=Fe();function wg(t){if(t.every(gY))return e=>{let n=e;for(let i=0;i<t.length;i++)if(n=t[i].transform(n,t[i].options),!n)return!1;return n}}function gY(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}Tc.exports=(...t)=>{let e=OY(wg(t)),n=e();return n.Format=e.Format,n};Tc.exports.cascade=wg});var Ao=h((Ac,Gg)=>{"use strict";var{hasOwnProperty:pa}=Object.prototype,Pr=yc();Pr.configure=yc;Pr.stringify=Pr;Pr.default=Pr;Ac.stringify=Pr;Ac.configure=yc;Gg.exports=Pr;var NY=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;function Jt(t){return t.length<5e3&&!NY.test(t)?`"${t}"`:JSON.stringify(t)}function vc(t){if(t.length>200)return t.sort();for(let e=1;e<t.length;e++){let n=t[e],i=e;for(;i!==0&&t[i-1]>n;)t[i]=t[i-1],i--;t[i]=n}return t}var RY=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function mc(t){return RY.call(t)!==void 0&&t.length!==0}function Dg(t,e,n){t.length<n&&(n=t.length);let i=e===","?"":" ",a=`"0":${i}${t[0]}`;for(let s=1;s<n;s++)a+=`${e}"${s}":${i}${t[s]}`;return a}function PY(t){if(pa.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 Vg(t,e){let n;if(pa.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 Bg(t,e){let n;if(pa.call(t,e)){if(n=t[e],typeof n!="number")throw new TypeError(`The "${e}" argument must be of type number`);if(!Number.isInteger(n))throw new TypeError(`The "${e}" argument must be an integer`);if(n<1)throw new RangeError(`The "${e}" argument must be >= 1`)}return n===void 0?1/0:n}function Rr(t){return t===1?"1 item":`${t} items`}function bY(t){let e=new Set;for(let n of t)(typeof n=="string"||typeof n=="number")&&e.add(String(n));return e}function MY(t){if(pa.call(t,"strict")){let e=t.strict;if(typeof e!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(e)return n=>{let i=`Object can not safely be stringified. Received type ${typeof n}`;throw typeof n!="function"&&(i+=` (${n.toString()})`),new Error(i)}}}function yc(t){t={...t};let e=MY(t);e&&(t.bigint===void 0&&(t.bigint=!1),"circularValue"in t||(t.circularValue=Error));let n=PY(t),i=Vg(t,"bigint"),a=Vg(t,"deterministic"),s=Bg(t,"maximumDepth"),o=Bg(t,"maximumBreadth");function r(_,f,S,v,T,A){let O=f[_];switch(typeof O=="object"&&O!==null&&typeof O.toJSON=="function"&&(O=O.toJSON(_)),O=v.call(f,_,O),typeof O){case"string":return Jt(O);case"object":{if(O===null)return"null";if(S.indexOf(O)!==-1)return n;let N="",D=",",G=A;if(Array.isArray(O)){if(O.length===0)return"[]";if(s<S.length+1)return'"[Array]"';S.push(O),T!==""&&(A+=T,N+=`
|
15
15
|
${A}`,D=`,
|
16
16
|
${A}`);let w=Math.min(O.length,o),W=0;for(;W<w-1;W++){let ne=r(String(W),O,S,v,T,A);N+=ne!==void 0?ne:"null",N+=D}let z=r(String(W),O,S,v,T,A);if(N+=z!==void 0?z:"null",O.length-1>o){let ne=O.length-o-1;N+=`${D}"... ${Rr(ne)} not stringified"`}return T!==""&&(N+=`
|
17
17
|
${G}`),S.pop(),`[${N}]`}let F=Object.keys(O),ae=F.length;if(ae===0)return"{}";if(s<S.length+1)return'"[Object]"';let j="",x="";T!==""&&(A+=T,D=`,
|
18
|
-
${A}`,j=" ");let B=Math.min(ae,o);a&&!
|
18
|
+
${A}`,j=" ");let B=Math.min(ae,o);a&&!mc(O)&&(F=vc(F)),S.push(O);for(let w=0;w<B;w++){let W=F[w],z=r(W,O,S,v,T,A);z!==void 0&&(N+=`${x}${Jt(W)}:${j}${z}`,x=D)}if(ae>o){let w=ae-o;N+=`${x}"...":${j}"${Rr(w)} not stringified"`,x=D}return T!==""&&x.length>1&&(N=`
|
19
19
|
${A}${N}
|
20
20
|
${G}`),S.pop(),`{${N}}`}case"number":return isFinite(O)?String(O):e?e(O):"null";case"boolean":return O===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(O);default:return e?e(O):void 0}}function u(_,f,S,v,T,A){switch(typeof f=="object"&&f!==null&&typeof f.toJSON=="function"&&(f=f.toJSON(_)),typeof f){case"string":return Jt(f);case"object":{if(f===null)return"null";if(S.indexOf(f)!==-1)return n;let O=A,N="",D=",";if(Array.isArray(f)){if(f.length===0)return"[]";if(s<S.length+1)return'"[Array]"';S.push(f),T!==""&&(A+=T,N+=`
|
21
21
|
${A}`,D=`,
|
@@ -27,36 +27,36 @@ ${O}`),S.pop(),`{${N}}`}case"number":return isFinite(f)?String(f):e?e(f):"null";
|
|
27
27
|
${T}`,x=`,
|
28
28
|
${T}`,B=Math.min(f.length,o),w=0;for(;w<B-1;w++){let z=l(String(w),f[w],S,v,T);j+=z!==void 0?z:"null",j+=x}let W=l(String(w),f[w],S,v,T);if(j+=W!==void 0?W:"null",f.length-1>o){let z=f.length-o-1;j+=`${x}"... ${Rr(z)} not stringified"`}return j+=`
|
29
29
|
${A}`,S.pop(),`[${j}]`}let O=Object.keys(f),N=O.length;if(N===0)return"{}";if(s<S.length+1)return'"[Object]"';T+=v;let D=`,
|
30
|
-
${T}`,G="",F="",ae=Math.min(N,o);
|
30
|
+
${T}`,G="",F="",ae=Math.min(N,o);mc(f)&&(G+=Dg(f,D,o),O=O.slice(f.length),ae-=f.length,F=D),a&&(O=vc(O)),S.push(f);for(let j=0;j<ae;j++){let x=O[j],B=l(x,f[x],S,v,T);B!==void 0&&(G+=`${F}${Jt(x)}: ${B}`,F=D)}if(N>o){let j=N-o;G+=`${F}"...": "${Rr(j)} not stringified"`,F=D}return F!==""&&(G=`
|
31
31
|
${T}${G}
|
32
|
-
${A}`),S.pop(),`{${G}}`}case"number":return isFinite(f)?String(f):e?e(f):"null";case"boolean":return f===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(f);default:return e?e(f):void 0}}function c(_,f,S){switch(typeof f){case"string":return Jt(f);case"object":{if(f===null)return"null";if(typeof f.toJSON=="function"){if(f=f.toJSON(_),typeof f!="object")return c(_,f,S);if(f===null)return"null"}if(S.indexOf(f)!==-1)return n;let v="";if(Array.isArray(f)){if(f.length===0)return"[]";if(s<S.length+1)return'"[Array]"';S.push(f);let D=Math.min(f.length,o),G=0;for(;G<D-1;G++){let ae=c(String(G),f[G],S);v+=ae!==void 0?ae:"null",v+=","}let F=c(String(G),f[G],S);if(v+=F!==void 0?F:"null",f.length-1>o){let ae=f.length-o-1;v+=`,"... ${Rr(ae)} not stringified"`}return S.pop(),`[${v}]`}let T=Object.keys(f),A=T.length;if(A===0)return"{}";if(s<S.length+1)return'"[Object]"';let O="",N=Math.min(A,o);vc(f)&&(v+=wg(f,",",o),T=T.slice(f.length),N-=f.length,O=","),a&&(T=Tc(T)),S.push(f);for(let D=0;D<N;D++){let G=T[D],F=c(G,f[G],S);F!==void 0&&(v+=`${O}${Jt(G)}:${F}`,O=",")}if(A>o){let D=A-o;v+=`${O}"...":"${Rr(D)} not stringified"`}return S.pop(),`{${v}}`}case"number":return isFinite(f)?String(f):e?e(f):"null";case"boolean":return f===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(f);default:return e?e(f):void 0}}function p(_,f,S){if(arguments.length>1){let v="";if(typeof S=="number"?v=" ".repeat(Math.min(S,10)):typeof S=="string"&&(v=S.slice(0,10)),f!=null){if(typeof f=="function")return r("",{"":_},[],f,v,"");if(Array.isArray(f))return u("",_,[],RY(f),v,"")}if(v.length!==0)return l("",_,[],v,"")}return c("",_,[])}return p}});var Ac=h((pZ,Bg)=>{"use strict";var bY=He(),{MESSAGE:MY}=fe(),xY=yo();function LY(t,e){return typeof e=="bigint"?e.toString():e}Bg.exports=bY((t,e)=>{let n=xY.configure(e);return t[MY]=n(t,e.replacer||LY,e.space),t})});var kg=h((dZ,Gg)=>{"use strict";var IY=He();Gg.exports=IY((t,e)=>e.message?(t.message=`[${e.label}] ${t.message}`,t):(t.label=e.label,t))});var Fg=h((EZ,Hg)=>{"use strict";var CY=He(),{MESSAGE:wY}=fe(),UY=yo();Hg.exports=CY(t=>{let e={};return t.message&&(e["@message"]=t.message,delete t.message),t.timestamp&&(e["@timestamp"]=t.timestamp,delete t.timestamp),e["@fields"]=t,t[wY]=UY(e),t})});var qg=h((_Z,Yg)=>{"use strict";var DY=He();function VY(t,e,n){let i=e.reduce((s,o)=>(s[o]=t[o],delete t[o],s),{}),a=Object.keys(t).reduce((s,o)=>(s[o]=t[o],delete t[o],s),{});return Object.assign(t,i,{[n]:a}),t}function BY(t,e,n){return t[n]=e.reduce((i,a)=>(i[a]=t[a],delete t[a],i),{}),t}Yg.exports=DY((t,e={})=>{let n="metadata";e.key&&(n=e.key);let i=[];return!e.fillExcept&&!e.fillWith&&(i.push("level"),i.push("message")),e.fillExcept&&(i=e.fillExcept),i.length>0?VY(t,i,n):e.fillWith?BY(t,e.fillWith,n):t})});var $g=h((SZ,jg)=>{var un=1e3,ln=un*60,cn=ln*60,br=cn*24,GY=br*7,kY=br*365.25;jg.exports=function(t,e){e=e||{};var n=typeof t;if(n==="string"&&t.length>0)return HY(t);if(n==="number"&&isFinite(t))return e.long?YY(t):FY(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function HY(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),i=(e[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return n*kY;case"weeks":case"week":case"w":return n*GY;case"days":case"day":case"d":return n*br;case"hours":case"hour":case"hrs":case"hr":case"h":return n*cn;case"minutes":case"minute":case"mins":case"min":case"m":return n*ln;case"seconds":case"second":case"secs":case"sec":case"s":return n*un;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function FY(t){var e=Math.abs(t);return e>=br?Math.round(t/br)+"d":e>=cn?Math.round(t/cn)+"h":e>=ln?Math.round(t/ln)+"m":e>=un?Math.round(t/un)+"s":t+"ms"}function YY(t){var e=Math.abs(t);return e>=br?fa(t,e,br,"day"):e>=cn?fa(t,e,cn,"hour"):e>=ln?fa(t,e,ln,"minute"):e>=un?fa(t,e,un,"second"):t+" ms"}function fa(t,e,n,i){var a=e>=n*1.5;return Math.round(t/n)+" "+i+(a?"s":"")}});var Wg=h((Ao,Kg)=>{"use strict";var qY=He(),jY=$g();Kg.exports=qY(t=>{let e=+new Date;return Ao.diff=e-(Ao.prevTime||e),Ao.prevTime=e,t.ms=`+${jY(Ao.diff)}`,t})});var Jg=h((hZ,Xg)=>{"use strict";var $Y=L("util").inspect,KY=He(),{LEVEL:WY,MESSAGE:zg,SPLAT:zY}=fe();Xg.exports=KY((t,e={})=>{let n=Object.assign({},t);return delete n[WY],delete n[zg],delete n[zY],t[zg]=$Y(n,!1,e.depth||null,e.colorize),t})});var Qg=h((TZ,da)=>{"use strict";var{MESSAGE:XY}=fe(),pa=class{constructor(e){this.template=e}transform(e){return e[XY]=this.template(e),e}};da.exports=t=>new pa(t);da.exports.Printf=da.exports.Format=pa});var tN=h((vZ,eN)=>{"use strict";var JY=He(),{MESSAGE:Zg}=fe(),QY=yo();eN.exports=JY(t=>{let e=QY(Object.assign({},t,{level:void 0,message:void 0,splat:void 0})),n=t.padding&&t.padding[t.level]||"";return e!=="{}"?t[Zg]=`${t.level}:${n} ${t.message} ${e}`:t[Zg]=`${t.level}:${n} ${t.message}`,t})});var oN=h((mZ,nN)=>{"use strict";var ZY=L("util"),{SPLAT:rN}=fe(),eq=/%[scdjifoO%]/g,tq=/%%/g,Oc=class{constructor(e){this.options=e}_splat(e,n){let i=e.message,a=e[rN]||e.splat||[],s=i.match(tq),o=s&&s.length||0,u=n.length-o-a.length,l=u<0?a.splice(u,-1*u):[],c=l.length;if(c)for(let p=0;p<c;p++)Object.assign(e,l[p]);return e.message=ZY.format(i,...a),e}transform(e){let n=e.message,i=e[rN]||e.splat;if(!i||!i.length)return e;let a=n&&n.match&&n.match(eq);if(!a&&(i||i.length)){let s=i.length>1?i.splice(0):i,o=s.length;if(o)for(let r=0;r<o;r++)Object.assign(e,s[r]);return e}return a?this._splat(e,a):e}};nN.exports=t=>new Oc(t)});var yN={};it(yN,{assign:()=>er,default:()=>lq,defaultI18n:()=>gc,format:()=>vN,parse:()=>mN,setGlobalDateI18n:()=>hN,setGlobalDateMasks:()=>TN});function EN(t,e){for(var n=[],i=0,a=t.length;i<a;i++)n.push(t[i].substr(0,e));return n}function er(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=0,a=e;i<a.length;i++){var s=a[i];for(var o in s)t[o]=s[o]}return t}function mN(t,e,n){if(n===void 0&&(n={}),typeof e!="string")throw new Error("Invalid format in fecha parse");if(e=_a[e]||e,t.length>1e3)return null;var i=new Date,a={year:i.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},s=[],o=[],r=e.replace(dN,function(D,G){return o.push(aN(G)),"@@@"}),u={},l={};r=aN(r).replace(pN,function(D){var G=sq[D],F=G[0],ae=G[1],j=G[3];if(u[F])throw new Error("Invalid format. "+F+" specified twice in format");return u[F]=!0,j&&(l[j]=!0),s.push(G),"("+ae+")"}),Object.keys(l).forEach(function(D){if(!u[D])throw new Error("Invalid format. "+D+" is required in specified format")}),r=r.replace(/@@@/g,function(){return o.shift()});var c=t.match(new RegExp(r,"i"));if(!c)return null;for(var p=er(er({},Ea),n),_=1;_<c.length;_++){var f=s[_-1],S=f[0],v=f[2],T=v?v(c[_],p):+c[_];if(T==null)return null;a[S]=T}a.isPm===1&&a.hour!=null&&+a.hour!=12?a.hour=+a.hour+12:a.isPm===0&&+a.hour==12&&(a.hour=0);var A;if(a.timezoneOffset==null){A=new Date(a.year,a.month,a.day,a.hour,a.minute,a.second,a.millisecond);for(var O=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],_=0,N=O.length;_<N;_++)if(u[O[_][0]]&&a[O[_][0]]!==A[O[_][1]]())return null}else if(A=new Date(Date.UTC(a.year,a.month,a.day,a.hour,a.minute-a.timezoneOffset,a.second,a.millisecond)),a.month>11||a.month<0||a.day>31||a.day<1||a.hour>23||a.hour<0||a.minute>59||a.minute<0||a.second>59||a.second<0)return null;return A}var pN,Zt,Qt,rq,nq,Oo,dN,iN,_N,SN,oq,iq,gc,Ea,hN,aN,Fe,aq,sN,uN,lN,cN,fN,sq,_a,TN,vN,uq,lq,AN=m(()=>{pN=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,Zt="\\d\\d?",Qt="\\d\\d",rq="\\d{3}",nq="\\d{4}",Oo="[^\\s]+",dN=/\[([^]*?)\]/gm;iN=function(t){return function(e,n){var i=n[t].map(function(s){return s.toLowerCase()}),a=i.indexOf(e.toLowerCase());return a>-1?a:null}};_N=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],SN=["January","February","March","April","May","June","July","August","September","October","November","December"],oq=EN(SN,3),iq=EN(_N,3),gc={dayNamesShort:iq,dayNames:_N,monthNamesShort:oq,monthNames:SN,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!==10?1:0)*t%10]}},Ea=er({},gc),hN=function(t){return Ea=er(Ea,t)},aN=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},Fe=function(t,e){for(e===void 0&&(e=2),t=String(t);t.length<e;)t="0"+t;return t},aq={D:function(t){return String(t.getDate())},DD:function(t){return Fe(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return String(t.getDay())},dd:function(t){return Fe(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return String(t.getMonth()+1)},MM:function(t){return Fe(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return Fe(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return Fe(t.getFullYear(),4)},h:function(t){return String(t.getHours()%12||12)},hh:function(t){return Fe(t.getHours()%12||12)},H:function(t){return String(t.getHours())},HH:function(t){return Fe(t.getHours())},m:function(t){return String(t.getMinutes())},mm:function(t){return Fe(t.getMinutes())},s:function(t){return String(t.getSeconds())},ss:function(t){return Fe(t.getSeconds())},S:function(t){return String(Math.round(t.getMilliseconds()/100))},SS:function(t){return Fe(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return Fe(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+Fe(Math.floor(Math.abs(e)/60)*100+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+Fe(Math.floor(Math.abs(e)/60),2)+":"+Fe(Math.abs(e)%60,2)}},sN=function(t){return+t-1},uN=[null,Zt],lN=[null,Oo],cN=["isPm",Oo,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],fN=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var n=+e[1]*60+parseInt(e[2],10);return e[0]==="+"?n:-n}return 0}],sq={D:["day",Zt],DD:["day",Qt],Do:["day",Zt+Oo,function(t){return parseInt(t,10)}],M:["month",Zt,sN],MM:["month",Qt,sN],YY:["year",Qt,function(t){var e=new Date,n=+(""+e.getFullYear()).substr(0,2);return+(""+(+t>68?n-1:n)+t)}],h:["hour",Zt,void 0,"isPm"],hh:["hour",Qt,void 0,"isPm"],H:["hour",Zt],HH:["hour",Qt],m:["minute",Zt],mm:["minute",Qt],s:["second",Zt],ss:["second",Qt],YYYY:["year",nq],S:["millisecond","\\d",function(t){return+t*100}],SS:["millisecond",Qt,function(t){return+t*10}],SSS:["millisecond",rq],d:uN,dd:uN,ddd:lN,dddd:lN,MMM:["month",Oo,iN("monthNamesShort")],MMMM:["month",Oo,iN("monthNames")],a:cN,A:cN,ZZ:fN,Z:fN},_a={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},TN=function(t){return er(_a,t)},vN=function(t,e,n){if(e===void 0&&(e=_a.default),n===void 0&&(n={}),typeof t=="number"&&(t=new Date(t)),Object.prototype.toString.call(t)!=="[object Date]"||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");e=_a[e]||e;var i=[];e=e.replace(dN,function(s,o){return i.push(o),"@@@"});var a=er(er({},Ea),n);return e=e.replace(pN,function(s){return aq[s](t,a)}),e.replace(/@@@/g,function(){return i.shift()})};uq={format:vN,parse:mN,defaultI18n:gc,setGlobalDateI18n:hN,setGlobalDateMasks:TN},lq=uq});var gN=h((yZ,ON)=>{"use strict";var cq=(AN(),Y(yN)),fq=He();ON.exports=fq((t,e={})=>(e.format&&(t.timestamp=typeof e.format=="function"?e.format():cq.format(new Date,e.format)),t.timestamp||(t.timestamp=new Date().toISOString()),e.alias&&(t[e.alias]=t.timestamp),t))});var RN=h((AZ,NN)=>{"use strict";var Nc=ac(),pq=He(),{MESSAGE:Rc}=fe();NN.exports=pq((t,e)=>(e.level!==!1&&(t.level=Nc.strip(t.level)),e.message!==!1&&(t.message=Nc.strip(String(t.message))),e.raw!==!1&&t[Rc]&&(t[Rc]=Nc.strip(String(t[Rc]))),t))});var bc=h(Pc=>{"use strict";var dq=Pc.format=He();Pc.levels=gg();function me(t,e){Object.defineProperty(dq,t,{get(){return e()},configurable:!0})}me("align",function(){return Rg()});me("errors",function(){return Mg()});me("cli",function(){return Lg()});me("combine",function(){return Cg()});me("colorize",function(){return sa()});me("json",function(){return Ac()});me("label",function(){return kg()});me("logstash",function(){return Fg()});me("metadata",function(){return qg()});me("ms",function(){return Wg()});me("padLevels",function(){return _c()});me("prettyPrint",function(){return Jg()});me("printf",function(){return Qg()});me("simple",function(){return tN()});me("splat",function(){return oN()});me("timestamp",function(){return gN()});me("uncolorize",function(){return RN()})});var Mc=h(Sa=>{"use strict";var{format:PN}=L("util");Sa.warn={deprecated(t){return()=>{throw new Error(PN("{ %s } was removed in winston@3.0.0.",t))}},useFormat(t){return()=>{throw new Error([PN("{ %s } was removed in winston@3.0.0.",t),"Use a custom winston.format = winston.format(function) instead."].join(`
|
33
|
-
`))}},forFunctions(t,e,n){n.forEach(i=>{t[i]=Sa.warn[e](i)})},forProperties(t,e,n){n.forEach(i=>{let a=Sa.warn[e](i);Object.defineProperty(t,i,{get:a,set:a})})}}});var bN=h((NZ,Eq)=>{Eq.exports={name:"winston",description:"A logger for just about everything.",version:"3.13.0",author:"Charlie Robbins <charlie.robbins@gmail.com>",maintainers:["David Hyde <dabh@alumni.stanford.edu>"],repository:{type:"git",url:"https://github.com/winstonjs/winston.git"},keywords:["winston","logger","logging","logs","sysadmin","bunyan","pino","loglevel","tools","json","stream"],dependencies:{"@dabh/diagnostics":"^2.0.2","@colors/colors":"^1.6.0",async:"^3.2.3","is-stream":"^2.0.0",logform:"^2.4.0","one-time":"^1.0.0","readable-stream":"^3.4.0","safe-stable-stringify":"^2.3.1","stack-trace":"0.0.x","triple-beam":"^1.3.0","winston-transport":"^4.7.0"},devDependencies:{"@babel/cli":"^7.23.9","@babel/core":"^7.24.0","@babel/preset-env":"^7.24.0","@dabh/eslint-config-populist":"^5.0.0","@types/node":"^20.11.24","abstract-winston-transport":"^0.5.1",assume:"^2.2.0","cross-spawn-async":"^2.2.5",eslint:"^8.57.0",hock:"^1.4.1",mocha:"^10.3.0",nyc:"^15.1.0",rimraf:"^5.0.5",split2:"^4.1.0","std-mocks":"^2.0.0",through2:"^4.0.2","winston-compat":"^0.1.5"},main:"./lib/winston.js",browser:"./dist/winston",types:"./index.d.ts",scripts:{lint:"eslint lib/*.js lib/winston/*.js lib/winston/**/*.js --resolve-plugins-relative-to ./node_modules/@dabh/eslint-config-populist",test:"rimraf test/fixtures/logs/* && mocha","test:coverage":"nyc npm run test:unit","test:unit":"mocha test/unit","test:integration":"mocha test/integration",build:"rimraf dist && babel lib -d dist",prepublishOnly:"npm run build"},engines:{node:">= 12.0.0"},license:"MIT"}});var xN=h((RZ,MN)=>{MN.exports=L("util").deprecate});var xc=h((PZ,LN)=>{LN.exports=L("stream")});var Ic=h((bZ,CN)=>{"use strict";function _q(t,e){var n=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(Lc,this,t)):process.nextTick(Lc,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?n._writableState?n._writableState.errorEmitted?process.nextTick(ha,n):(n._writableState.errorEmitted=!0,process.nextTick(IN,n,s)):process.nextTick(IN,n,s):e?(process.nextTick(ha,n),e(s)):process.nextTick(ha,n)}),this)}function IN(t,e){Lc(t,e),ha(t)}function ha(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function Sq(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Lc(t,e){t.emit("error",e)}function hq(t,e){var n=t._readableState,i=t._writableState;n&&n.autoDestroy||i&&i.autoDestroy?t.destroy(e):t.emit("error",e)}CN.exports={destroy:_q,undestroy:Sq,errorOrDestroy:hq}});var tr=h((MZ,DN)=>{"use strict";var UN={};function Ze(t,e,n){n||(n=Error);function i(s,o,r){return typeof e=="string"?e:e(s,o,r)}class a extends n{constructor(o,r,u){super(i(o,r,u))}}a.prototype.name=n.name,a.prototype.code=t,UN[t]=a}function wN(t,e){if(Array.isArray(t)){let n=t.length;return t=t.map(i=>String(i)),n>2?`one of ${e} ${t.slice(0,n-1).join(", ")}, or `+t[n-1]:n===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function Tq(t,e,n){return t.substr(!n||n<0?0:+n,e.length)===e}function vq(t,e,n){return(n===void 0||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}function mq(t,e,n){return typeof n!="number"&&(n=0),n+e.length>t.length?!1:t.indexOf(e,n)!==-1}Ze("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);Ze("ERR_INVALID_ARG_TYPE",function(t,e,n){let i;typeof e=="string"&&Tq(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be";let a;if(vq(t," argument"))a=`The ${t} ${i} ${wN(e,"type")}`;else{let s=mq(t,".")?"property":"argument";a=`The "${t}" ${s} ${i} ${wN(e,"type")}`}return a+=`. Received type ${typeof n}`,a},TypeError);Ze("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Ze("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});Ze("ERR_STREAM_PREMATURE_CLOSE","Premature close");Ze("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});Ze("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Ze("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Ze("ERR_STREAM_WRITE_AFTER_END","write after end");Ze("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Ze("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);Ze("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");DN.exports.codes=UN});var Cc=h((xZ,VN)=>{"use strict";var yq=tr().codes.ERR_INVALID_OPT_VALUE;function Aq(t,e,n){return t.highWaterMark!=null?t.highWaterMark:e?t[n]:null}function Oq(t,e,n,i){var a=Aq(e,i,n);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var s=i?n:"highWaterMark";throw new yq(s,a)}return Math.floor(a)}return t.objectMode?16:16*1024}VN.exports={getHighWaterMark:Oq}});var BN=h((LZ,wc)=>{typeof Object.create=="function"?wc.exports=function(e,n){n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:wc.exports=function(e,n){if(n){e.super_=n;var i=function(){};i.prototype=n.prototype,e.prototype=new i,e.prototype.constructor=e}}});var fn=h((IZ,Dc)=>{try{if(Uc=L("util"),typeof Uc.inherits!="function")throw"";Dc.exports=Uc.inherits}catch{Dc.exports=BN()}var Uc});var qN=h((CZ,YN)=>{"use strict";function GN(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,i)}return n}function kN(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?GN(Object(n),!0).forEach(function(i){gq(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):GN(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function gq(t,e,n){return e=FN(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Nq(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function HN(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,FN(i.key),i)}}function Rq(t,e,n){return e&&HN(t.prototype,e),n&&HN(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function FN(t){var e=Pq(t,"string");return typeof e=="symbol"?e:String(e)}function Pq(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var bq=L("buffer"),Ta=bq.Buffer,Mq=L("util"),Vc=Mq.inspect,xq=Vc&&Vc.custom||"inspect";function Lq(t,e,n){Ta.prototype.copy.call(t,e,n)}YN.exports=function(){function t(){Nq(this,t),this.head=null,this.tail=null,this.length=0}return Rq(t,[{key:"push",value:function(n){var i={data:n,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(n){var i={data:n,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var n=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,n}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(n){if(this.length===0)return"";for(var i=this.head,a=""+i.data;i=i.next;)a+=n+i.data;return a}},{key:"concat",value:function(n){if(this.length===0)return Ta.alloc(0);for(var i=Ta.allocUnsafe(n>>>0),a=this.head,s=0;a;)Lq(a.data,i,s),s+=a.data.length,a=a.next;return i}},{key:"consume",value:function(n,i){var a;return n<this.head.data.length?(a=this.head.data.slice(0,n),this.head.data=this.head.data.slice(n)):n===this.head.data.length?a=this.shift():a=i?this._getString(n):this._getBuffer(n),a}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(n){var i=this.head,a=1,s=i.data;for(n-=s.length;i=i.next;){var o=i.data,r=n>o.length?o.length:n;if(r===o.length?s+=o:s+=o.slice(0,n),n-=r,n===0){r===o.length?(++a,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(r));break}++a}return this.length-=a,s}},{key:"_getBuffer",value:function(n){var i=Ta.allocUnsafe(n),a=this.head,s=1;for(a.data.copy(i),n-=a.data.length;a=a.next;){var o=a.data,r=n>o.length?o.length:n;if(o.copy(i,i.length-n,0,r),n-=r,n===0){r===o.length?(++s,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=o.slice(r));break}++s}return this.length-=s,i}},{key:xq,value:function(n,i){return Vc(this,kN(kN({},i),{},{depth:0,customInspect:!1}))}}]),t}()});var KN=h((Bc,$N)=>{var va=L("buffer"),vt=va.Buffer;function jN(t,e){for(var n in t)e[n]=t[n]}vt.from&&vt.alloc&&vt.allocUnsafe&&vt.allocUnsafeSlow?$N.exports=va:(jN(va,Bc),Bc.Buffer=Mr);function Mr(t,e,n){return vt(t,e,n)}Mr.prototype=Object.create(vt.prototype);jN(vt,Mr);Mr.from=function(t,e,n){if(typeof t=="number")throw new TypeError("Argument must not be a number");return vt(t,e,n)};Mr.alloc=function(t,e,n){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=vt(t);return e!==void 0?typeof n=="string"?i.fill(e,n):i.fill(e):i.fill(0),i};Mr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return vt(t)};Mr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return va.SlowBuffer(t)}});var Hc=h(zN=>{"use strict";var kc=KN().Buffer,WN=kc.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Iq(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function Cq(t){var e=Iq(t);if(typeof e!="string"&&(kc.isEncoding===WN||!WN(t)))throw new Error("Unknown encoding: "+t);return e||t}zN.StringDecoder=go;function go(t){this.encoding=Cq(t);var e;switch(this.encoding){case"utf16le":this.text=Gq,this.end=kq,e=4;break;case"utf8":this.fillLast=Dq,e=4;break;case"base64":this.text=Hq,this.end=Fq,e=3;break;default:this.write=Yq,this.end=qq;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=kc.allocUnsafe(e)}go.prototype.write=function(t){if(t.length===0)return"";var e,n;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<t.length?e?e+this.text(t,n):this.text(t,n):e||""};go.prototype.end=Bq;go.prototype.text=Vq;go.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function Gc(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function wq(t,e,n){var i=e.length-1;if(i<n)return 0;var a=Gc(e[i]);return a>=0?(a>0&&(t.lastNeed=a-1),a):--i<n||a===-2?0:(a=Gc(e[i]),a>=0?(a>0&&(t.lastNeed=a-2),a):--i<n||a===-2?0:(a=Gc(e[i]),a>=0?(a>0&&(a===2?a=0:t.lastNeed=a-3),a):0))}function Uq(t,e,n){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function Dq(t){var e=this.lastTotal-this.lastNeed,n=Uq(this,t,e);if(n!==void 0)return n;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function Vq(t,e){var n=wq(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var i=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function Bq(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function Gq(t,e){if((t.length-e)%2===0){var n=t.toString("utf16le",e);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function kq(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function Hq(t,e){var n=(t.length-e)%3;return n===0?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function Fq(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function Yq(t){return t.toString(this.encoding)}function qq(t){return t&&t.length?this.write(t):""}});var ma=h((UZ,QN)=>{"use strict";var XN=tr().codes.ERR_STREAM_PREMATURE_CLOSE;function jq(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];t.apply(this,i)}}}function $q(){}function Kq(t){return t.setHeader&&typeof t.abort=="function"}function JN(t,e,n){if(typeof e=="function")return JN(t,null,e);e||(e={}),n=jq(n||$q);var i=e.readable||e.readable!==!1&&t.readable,a=e.writable||e.writable!==!1&&t.writable,s=function(){t.writable||r()},o=t._writableState&&t._writableState.finished,r=function(){a=!1,o=!0,i||n.call(t)},u=t._readableState&&t._readableState.endEmitted,l=function(){i=!1,u=!0,a||n.call(t)},c=function(S){n.call(t,S)},p=function(){var S;if(i&&!u)return(!t._readableState||!t._readableState.ended)&&(S=new XN),n.call(t,S);if(a&&!o)return(!t._writableState||!t._writableState.ended)&&(S=new XN),n.call(t,S)},_=function(){t.req.on("finish",r)};return Kq(t)?(t.on("complete",r),t.on("abort",p),t.req?_():t.on("request",_)):a&&!t._writableState&&(t.on("end",s),t.on("close",s)),t.on("end",l),t.on("finish",r),e.error!==!1&&t.on("error",c),t.on("close",p),function(){t.removeListener("complete",r),t.removeListener("abort",p),t.removeListener("request",_),t.req&&t.req.removeListener("finish",r),t.removeListener("end",s),t.removeListener("close",s),t.removeListener("finish",r),t.removeListener("end",l),t.removeListener("error",c),t.removeListener("close",p)}}QN.exports=JN});var eR=h((DZ,ZN)=>{"use strict";var ya;function rr(t,e,n){return e=Wq(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Wq(t){var e=zq(t,"string");return typeof e=="symbol"?e:String(e)}function zq(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Xq=ma(),nr=Symbol("lastResolve"),xr=Symbol("lastReject"),No=Symbol("error"),Aa=Symbol("ended"),Lr=Symbol("lastPromise"),Fc=Symbol("handlePromise"),Ir=Symbol("stream");function or(t,e){return{value:t,done:e}}function Jq(t){var e=t[nr];if(e!==null){var n=t[Ir].read();n!==null&&(t[Lr]=null,t[nr]=null,t[xr]=null,e(or(n,!1)))}}function Qq(t){process.nextTick(Jq,t)}function Zq(t,e){return function(n,i){t.then(function(){if(e[Aa]){n(or(void 0,!0));return}e[Fc](n,i)},i)}}var e5=Object.getPrototypeOf(function(){}),t5=Object.setPrototypeOf((ya={get stream(){return this[Ir]},next:function(){var e=this,n=this[No];if(n!==null)return Promise.reject(n);if(this[Aa])return Promise.resolve(or(void 0,!0));if(this[Ir].destroyed)return new Promise(function(o,r){process.nextTick(function(){e[No]?r(e[No]):o(or(void 0,!0))})});var i=this[Lr],a;if(i)a=new Promise(Zq(i,this));else{var s=this[Ir].read();if(s!==null)return Promise.resolve(or(s,!1));a=new Promise(this[Fc])}return this[Lr]=a,a}},rr(ya,Symbol.asyncIterator,function(){return this}),rr(ya,"return",function(){var e=this;return new Promise(function(n,i){e[Ir].destroy(null,function(a){if(a){i(a);return}n(or(void 0,!0))})})}),ya),e5),r5=function(e){var n,i=Object.create(t5,(n={},rr(n,Ir,{value:e,writable:!0}),rr(n,nr,{value:null,writable:!0}),rr(n,xr,{value:null,writable:!0}),rr(n,No,{value:null,writable:!0}),rr(n,Aa,{value:e._readableState.endEmitted,writable:!0}),rr(n,Fc,{value:function(s,o){var r=i[Ir].read();r?(i[Lr]=null,i[nr]=null,i[xr]=null,s(or(r,!1))):(i[nr]=s,i[xr]=o)},writable:!0}),n));return i[Lr]=null,Xq(e,function(a){if(a&&a.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=i[xr];s!==null&&(i[Lr]=null,i[nr]=null,i[xr]=null,s(a)),i[No]=a;return}var o=i[nr];o!==null&&(i[Lr]=null,i[nr]=null,i[xr]=null,o(or(void 0,!0))),i[Aa]=!0}),e.on("readable",Qq.bind(null,i)),i};ZN.exports=r5});var oR=h((VZ,nR)=>{"use strict";function tR(t,e,n,i,a,s,o){try{var r=t[s](o),u=r.value}catch(l){n(l);return}r.done?e(u):Promise.resolve(u).then(i,a)}function n5(t){return function(){var e=this,n=arguments;return new Promise(function(i,a){var s=t.apply(e,n);function o(u){tR(s,i,a,o,r,"next",u)}function r(u){tR(s,i,a,o,r,"throw",u)}o(void 0)})}}function rR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,i)}return n}function o5(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?rR(Object(n),!0).forEach(function(i){i5(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rR(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function i5(t,e,n){return e=a5(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a5(t){var e=s5(t,"string");return typeof e=="symbol"?e:String(e)}function s5(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var u5=tr().codes.ERR_INVALID_ARG_TYPE;function l5(t,e,n){var i;if(e&&typeof e.next=="function")i=e;else if(e&&e[Symbol.asyncIterator])i=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])i=e[Symbol.iterator]();else throw new u5("iterable",["Iterable"],e);var a=new t(o5({objectMode:!0},n)),s=!1;a._read=function(){s||(s=!0,o())};function o(){return r.apply(this,arguments)}function r(){return r=n5(function*(){try{var u=yield i.next(),l=u.value,c=u.done;c?a.push(null):a.push(yield l)?o():s=!1}catch(p){a.destroy(p)}}),r.apply(this,arguments)}return a}nR.exports=l5});var Qc=h((GZ,ER)=>{"use strict";ER.exports=$;var pn;$.ReadableState=uR;var BZ=L("events").EventEmitter,sR=function(e,n){return e.listeners(n).length},Po=xc(),Oa=L("buffer").Buffer,c5=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function f5(t){return Oa.from(t)}function p5(t){return Oa.isBuffer(t)||t instanceof c5}var Yc=L("util"),k;Yc&&Yc.debuglog?k=Yc.debuglog("stream"):k=function(){};var d5=qN(),Xc=Ic(),E5=Cc(),_5=E5.getHighWaterMark,ga=tr().codes,S5=ga.ERR_INVALID_ARG_TYPE,h5=ga.ERR_STREAM_PUSH_AFTER_EOF,T5=ga.ERR_METHOD_NOT_IMPLEMENTED,v5=ga.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,dn,qc,jc;fn()($,Po);var Ro=Xc.errorOrDestroy,$c=["error","close","destroy","pause","resume"];function m5(t,e,n){if(typeof t.prependListener=="function")return t.prependListener(e,n);!t._events||!t._events[e]?t.on(e,n):Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]}function uR(t,e,n){pn=pn||Cr(),t=t||{},typeof n!="boolean"&&(n=e instanceof pn),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=_5(this,t,"readableHighWaterMark",n),this.buffer=new d5,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(dn||(dn=Hc().StringDecoder),this.decoder=new dn(t.encoding),this.encoding=t.encoding)}function $(t){if(pn=pn||Cr(),!(this instanceof $))return new $(t);var e=this instanceof pn;this._readableState=new uR(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),Po.call(this)}Object.defineProperty($.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});$.prototype.destroy=Xc.destroy;$.prototype._undestroy=Xc.undestroy;$.prototype._destroy=function(t,e){e(t)};$.prototype.push=function(t,e){var n=this._readableState,i;return n.objectMode?i=!0:typeof t=="string"&&(e=e||n.defaultEncoding,e!==n.encoding&&(t=Oa.from(t,e),e=""),i=!0),lR(this,t,e,!1,i)};$.prototype.unshift=function(t){return lR(this,t,null,!0,!1)};function lR(t,e,n,i,a){k("readableAddChunk",e);var s=t._readableState;if(e===null)s.reading=!1,O5(t,s);else{var o;if(a||(o=y5(s,e)),o)Ro(t,o);else if(s.objectMode||e&&e.length>0)if(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==Oa.prototype&&(e=f5(e)),i)s.endEmitted?Ro(t,new v5):Kc(t,s,e,!0);else if(s.ended)Ro(t,new h5);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!n?(e=s.decoder.write(e),s.objectMode||e.length!==0?Kc(t,s,e,!1):zc(t,s)):Kc(t,s,e,!1)}else i||(s.reading=!1,zc(t,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function Kc(t,e,n,i){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",n)):(e.length+=e.objectMode?1:n.length,i?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&Na(t)),zc(t,e)}function y5(t,e){var n;return!p5(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(n=new S5("chunk",["string","Buffer","Uint8Array"],e)),n}$.prototype.isPaused=function(){return this._readableState.flowing===!1};$.prototype.setEncoding=function(t){dn||(dn=Hc().StringDecoder);var e=new dn(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";n!==null;)i+=e.write(n.data),n=n.next;return this._readableState.buffer.clear(),i!==""&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var iR=1073741824;function A5(t){return t>=iR?t=iR:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function aR(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=A5(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}$.prototype.read=function(t){k("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return k("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Wc(this):Na(this),null;if(t=aR(t,e),t===0&&e.ended)return e.length===0&&Wc(this),null;var i=e.needReadable;k("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,k("length less than watermark",i)),e.ended||e.reading?(i=!1,k("reading or ended",i)):i&&(k("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=aR(n,e)));var a;return t>0?a=pR(t,e):a=null,a===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&Wc(this)),a!==null&&this.emit("data",a),a};function O5(t,e){if(k("onEofChunk"),!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,e.sync?Na(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,cR(t)))}}function Na(t){var e=t._readableState;k("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(k("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(cR,t))}function cR(t){var e=t._readableState;k("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,Jc(t)}function zc(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(g5,t,e))}function g5(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var n=e.length;if(k("maybeReadMore read 0"),t.read(0),n===e.length)break}e.readingMore=!1}$.prototype._read=function(t){Ro(this,new T5("_read()"))};$.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,k("pipe count=%d opts=%j",i.pipesCount,e);var a=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=a?r:v;i.endEmitted?process.nextTick(s):n.once("end",s),t.on("unpipe",o);function o(T,A){k("onunpipe"),T===n&&A&&A.hasUnpiped===!1&&(A.hasUnpiped=!0,c())}function r(){k("onend"),t.end()}var u=N5(n);t.on("drain",u);var l=!1;function c(){k("cleanup"),t.removeListener("close",f),t.removeListener("finish",S),t.removeListener("drain",u),t.removeListener("error",_),t.removeListener("unpipe",o),n.removeListener("end",r),n.removeListener("end",v),n.removeListener("data",p),l=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&u()}n.on("data",p);function p(T){k("ondata");var A=t.write(T);k("dest.write",A),A===!1&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&dR(i.pipes,t)!==-1)&&!l&&(k("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function _(T){k("onerror",T),v(),t.removeListener("error",_),sR(t,"error")===0&&Ro(t,T)}m5(t,"error",_);function f(){t.removeListener("finish",S),v()}t.once("close",f);function S(){k("onfinish"),t.removeListener("close",f),v()}t.once("finish",S);function v(){k("unpipe"),n.unpipe(t)}return t.emit("pipe",n),i.flowing||(k("pipe resume"),n.resume()),t};function N5(t){return function(){var n=t._readableState;k("pipeOnDrain",n.awaitDrain),n.awaitDrain&&n.awaitDrain--,n.awaitDrain===0&&sR(t,"data")&&(n.flowing=!0,Jc(t))}}$.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n),this);if(!t){var i=e.pipes,a=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<a;s++)i[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=dR(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n),this)};$.prototype.on=function(t,e){var n=Po.prototype.on.call(this,t,e),i=this._readableState;return t==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):t==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,k("on readable",i.length,i.reading),i.length?Na(this):i.reading||process.nextTick(R5,this)),n};$.prototype.addListener=$.prototype.on;$.prototype.removeListener=function(t,e){var n=Po.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(fR,this),n};$.prototype.removeAllListeners=function(t){var e=Po.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(fR,this),e};function fR(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function R5(t){k("readable nexttick read 0"),t.read(0)}$.prototype.resume=function(){var t=this._readableState;return t.flowing||(k("resume"),t.flowing=!t.readableListening,P5(this,t)),t.paused=!1,this};function P5(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(b5,t,e))}function b5(t,e){k("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),Jc(t),e.flowing&&!e.reading&&t.read(0)}$.prototype.pause=function(){return k("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(k("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Jc(t){var e=t._readableState;for(k("flow",e.flowing);e.flowing&&t.read()!==null;);}$.prototype.wrap=function(t){var e=this,n=this._readableState,i=!1;t.on("end",function(){if(k("wrapped end"),n.decoder&&!n.ended){var o=n.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),t.on("data",function(o){if(k("wrapped data"),n.decoder&&(o=n.decoder.write(o)),!(n.objectMode&&o==null)&&!(!n.objectMode&&(!o||!o.length))){var r=e.push(o);r||(i=!0,t.pause())}});for(var a in t)this[a]===void 0&&typeof t[a]=="function"&&(this[a]=function(r){return function(){return t[r].apply(t,arguments)}}(a));for(var s=0;s<$c.length;s++)t.on($c[s],this.emit.bind(this,$c[s]));return this._read=function(o){k("wrapped _read",o),i&&(i=!1,t.resume())},this};typeof Symbol=="function"&&($.prototype[Symbol.asyncIterator]=function(){return qc===void 0&&(qc=eR()),qc(this)});Object.defineProperty($.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty($.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty($.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});$._fromList=pR;Object.defineProperty($.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function pR(t,e){if(e.length===0)return null;var n;return e.objectMode?n=e.buffer.shift():!t||t>=e.length?(e.decoder?n=e.buffer.join(""):e.buffer.length===1?n=e.buffer.first():n=e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n}function Wc(t){var e=t._readableState;k("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(M5,e,t))}function M5(t,e){if(k("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}typeof Symbol=="function"&&($.from=function(t,e){return jc===void 0&&(jc=oR()),jc($,t,e)});function dR(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1}});var Cr=h((kZ,SR)=>{"use strict";var x5=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};SR.exports=mt;var _R=Qc(),ef=ba();fn()(mt,_R);for(Zc=x5(ef.prototype),Ra=0;Ra<Zc.length;Ra++)Pa=Zc[Ra],mt.prototype[Pa]||(mt.prototype[Pa]=ef.prototype[Pa]);var Zc,Pa,Ra;function mt(t){if(!(this instanceof mt))return new mt(t);_R.call(this,t),ef.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",L5)))}Object.defineProperty(mt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(mt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(mt.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function L5(){this._writableState.ended||process.nextTick(I5,this)}function I5(t){t.end()}Object.defineProperty(mt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var ba=h((HZ,AR)=>{"use strict";AR.exports=ue;function TR(t){var e=this;this.next=null,this.entry=null,this.finish=function(){ij(e,t)}}var En;ue.WritableState=Mo;var C5={deprecate:xN()},vR=xc(),xa=L("buffer").Buffer,w5=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function U5(t){return xa.from(t)}function D5(t){return xa.isBuffer(t)||t instanceof w5}var rf=Ic(),V5=Cc(),B5=V5.getHighWaterMark,ir=tr().codes,G5=ir.ERR_INVALID_ARG_TYPE,k5=ir.ERR_METHOD_NOT_IMPLEMENTED,H5=ir.ERR_MULTIPLE_CALLBACK,F5=ir.ERR_STREAM_CANNOT_PIPE,Y5=ir.ERR_STREAM_DESTROYED,q5=ir.ERR_STREAM_NULL_VALUES,j5=ir.ERR_STREAM_WRITE_AFTER_END,$5=ir.ERR_UNKNOWN_ENCODING,_n=rf.errorOrDestroy;fn()(ue,vR);function K5(){}function Mo(t,e,n){En=En||Cr(),t=t||{},typeof n!="boolean"&&(n=e instanceof En),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=B5(this,t,"writableHighWaterMark",n),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=t.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){ej(e,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new TR(this)}Mo.prototype.getBuffer=function(){for(var e=this.bufferedRequest,n=[];e;)n.push(e),e=e.next;return n};(function(){try{Object.defineProperty(Mo.prototype,"buffer",{get:C5.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Ma;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Ma=Function.prototype[Symbol.hasInstance],Object.defineProperty(ue,Symbol.hasInstance,{value:function(e){return Ma.call(this,e)?!0:this!==ue?!1:e&&e._writableState instanceof Mo}})):Ma=function(e){return e instanceof this};function ue(t){En=En||Cr();var e=this instanceof En;if(!e&&!Ma.call(ue,this))return new ue(t);this._writableState=new Mo(t,this,e),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),vR.call(this)}ue.prototype.pipe=function(){_n(this,new F5)};function W5(t,e){var n=new j5;_n(t,n),process.nextTick(e,n)}function z5(t,e,n,i){var a;return n===null?a=new q5:typeof n!="string"&&!e.objectMode&&(a=new G5("chunk",["string","Buffer"],n)),a?(_n(t,a),process.nextTick(i,a),!1):!0}ue.prototype.write=function(t,e,n){var i=this._writableState,a=!1,s=!i.objectMode&&D5(t);return s&&!xa.isBuffer(t)&&(t=U5(t)),typeof e=="function"&&(n=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),typeof n!="function"&&(n=K5),i.ending?W5(this,n):(s||z5(this,i,t,n))&&(i.pendingcb++,a=J5(this,i,s,t,e,n)),a};ue.prototype.cork=function(){this._writableState.corked++};ue.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&mR(this,t))};ue.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new $5(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(ue.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function X5(t,e,n){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=xa.from(e,n)),e}Object.defineProperty(ue.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function J5(t,e,n,i,a,s){if(!n){var o=X5(e,i,a);i!==o&&(n=!0,a="buffer",i=o)}var r=e.objectMode?1:i.length;e.length+=r;var u=e.length<e.highWaterMark;if(u||(e.needDrain=!0),e.writing||e.corked){var l=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:a,isBuf:n,callback:s,next:null},l?l.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else tf(t,e,!1,r,i,a,s);return u}function tf(t,e,n,i,a,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new Y5("write")):n?t._writev(a,e.onwrite):t._write(a,s,e.onwrite),e.sync=!1}function Q5(t,e,n,i,a){--e.pendingcb,n?(process.nextTick(a,i),process.nextTick(bo,t,e),t._writableState.errorEmitted=!0,_n(t,i)):(a(i),t._writableState.errorEmitted=!0,_n(t,i),bo(t,e))}function Z5(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function ej(t,e){var n=t._writableState,i=n.sync,a=n.writecb;if(typeof a!="function")throw new H5;if(Z5(n),e)Q5(t,n,i,e,a);else{var s=yR(n)||t.destroyed;!s&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest&&mR(t,n),i?process.nextTick(hR,t,n,s,a):hR(t,n,s,a)}}function hR(t,e,n,i){n||tj(t,e),e.pendingcb--,i(),bo(t,e)}function tj(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function mR(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var i=e.bufferedRequestCount,a=new Array(i),s=e.corkedRequestsFree;s.entry=n;for(var o=0,r=!0;n;)a[o]=n,n.isBuf||(r=!1),n=n.next,o+=1;a.allBuffers=r,tf(t,e,!0,e.length,a,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new TR(e),e.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,l=n.encoding,c=n.callback,p=e.objectMode?1:u.length;if(tf(t,e,!1,p,u,l,c),n=n.next,e.bufferedRequestCount--,e.writing)break}n===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}ue.prototype._write=function(t,e,n){n(new k5("_write()"))};ue.prototype._writev=null;ue.prototype.end=function(t,e,n){var i=this._writableState;return typeof t=="function"?(n=t,t=null,e=null):typeof e=="function"&&(n=e,e=null),t!=null&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||oj(this,i,n),this};Object.defineProperty(ue.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function yR(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function rj(t,e){t._final(function(n){e.pendingcb--,n&&_n(t,n),e.prefinished=!0,t.emit("prefinish"),bo(t,e)})}function nj(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(rj,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function bo(t,e){var n=yR(e);if(n&&(nj(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var i=t._readableState;(!i||i.autoDestroy&&i.endEmitted)&&t.destroy()}return n}function oj(t,e,n){e.ending=!0,bo(t,e),n&&(e.finished?process.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}function ij(t,e,n){var i=t.entry;for(t.entry=null;i;){var a=i.callback;e.pendingcb--,a(n),i=i.next}e.corkedRequestsFree.next=t}Object.defineProperty(ue.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});ue.prototype.destroy=rf.destroy;ue.prototype._undestroy=rf.undestroy;ue.prototype._destroy=function(t,e){e(t)}});var nf=h((FZ,NR)=>{"use strict";var aj=L("util"),OR=ba(),{LEVEL:gR}=fe(),xo=NR.exports=function(e={}){OR.call(this,{objectMode:!0,highWaterMark:e.highWaterMark}),this.format=e.format,this.level=e.level,this.handleExceptions=e.handleExceptions,this.handleRejections=e.handleRejections,this.silent=e.silent,e.log&&(this.log=e.log),e.logv&&(this.logv=e.logv),e.close&&(this.close=e.close),this.once("pipe",n=>{this.levels=n.levels,this.parent=n}),this.once("unpipe",n=>{n===this.parent&&(this.parent=null,this.close&&this.close())})};aj.inherits(xo,OR);xo.prototype._write=function(e,n,i){if(this.silent||e.exception===!0&&!this.handleExceptions)return i(null);let a=this.level||this.parent&&this.parent.level;if(!a||this.levels[a]>=this.levels[e[gR]]){if(e&&!this.format)return this.log(e,i);let s,o;try{o=this.format.transform(Object.assign({},e),this.format.options)}catch(r){s=r}if(s||!o){if(i(),s)throw s;return}return this.log(o,i)}return this._writableState.sync=!1,i(null)};xo.prototype._writev=function(e,n){if(this.logv){let i=e.filter(this._accept,this);return i.length?this.logv(i,n):n(null)}for(let i=0;i<e.length;i++){if(!this._accept(e[i]))continue;if(e[i].chunk&&!this.format){this.log(e[i].chunk,e[i].callback);continue}let a,s;try{s=this.format.transform(Object.assign({},e[i].chunk),this.format.options)}catch(o){a=o}if(a||!s){if(e[i].callback(),a)throw n(null),a}else this.log(s,e[i].callback)}return n(null)};xo.prototype._accept=function(e){let n=e.chunk;if(this.silent)return!1;let i=this.level||this.parent&&this.parent.level;return!!((n.exception===!0||!i||this.levels[i]>=this.levels[n[gR]])&&(this.handleExceptions||n.exception!==!0))};xo.prototype._nop=function(){}});var af=h((YZ,PR)=>{"use strict";var sj=L("util"),{LEVEL:of}=fe(),RR=nf(),Lo=PR.exports=function(e={}){if(RR.call(this,e),!e.transport||typeof e.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=e.transport,this.level=this.level||e.transport.level,this.handleExceptions=this.handleExceptions||e.transport.handleExceptions,this._deprecated();function n(i){this.emit("error",i,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=n.bind(this),this.transport.on("error",this.transport.__winstonError))};sj.inherits(Lo,RR);Lo.prototype._write=function(e,n,i){if(this.silent||e.exception===!0&&!this.handleExceptions)return i(null);(!this.level||this.levels[this.level]>=this.levels[e[of]])&&this.transport.log(e[of],e.message,e,this._nop),i(null)};Lo.prototype._writev=function(e,n){for(let i=0;i<e.length;i++)this._accept(e[i])&&(this.transport.log(e[i].chunk[of],e[i].chunk.message,e[i].chunk,this._nop),e[i].callback());return n(null)};Lo.prototype._deprecated=function(){console.error([`${this.transport.name} is a legacy winston transport. Consider upgrading: `,"- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"].join(`
|
34
|
-
`))};Lo.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)}});var Sn=h((qZ,sf)=>{"use strict";sf.exports=nf();sf.exports.LegacyTransportStream=af()});var xR=h(($Z,MR)=>{"use strict";var uj=L("os"),{LEVEL:bR,MESSAGE:hn}=fe(),lj=Sn();MR.exports=class extends lj{constructor(e={}){super(e),this.name=e.name||"console",this.stderrLevels=this._stringArrayToSet(e.stderrLevels),this.consoleWarnLevels=this._stringArrayToSet(e.consoleWarnLevels),this.eol=typeof e.eol=="string"?e.eol:uj.EOL,this.setMaxListeners(30)}log(e,n){if(setImmediate(()=>this.emit("logged",e)),this.stderrLevels[e[bR]]){console._stderr?console._stderr.write(`${e[hn]}${this.eol}`):console.error(e[hn]),n&&n();return}else if(this.consoleWarnLevels[e[bR]]){console._stderr?console._stderr.write(`${e[hn]}${this.eol}`):console.warn(e[hn]),n&&n();return}console._stdout?console._stdout.write(`${e[hn]}${this.eol}`):console.log(e[hn]),n&&n()}_stringArrayToSet(e,n){if(!e)return{};if(n=n||"Cannot make set from type other than Array of string elements",!Array.isArray(e))throw new Error(n);return e.reduce((i,a)=>{if(typeof a!="string")throw new Error(n);return i[a]=!0,i},{})}}});var Ia=h((La,LR)=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.default=cj;function cj(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}LR.exports=La.default});var CR=h((Ca,IR)=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.default=function(t){return function(...e){var n=e.pop();return t.call(this,e,n)}};IR.exports=Ca.default});var DR=h(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.fallback=wR;ar.wrap=UR;var fj=ar.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,pj=ar.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,dj=ar.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function wR(t){setTimeout(t,0)}function UR(t){return(e,...n)=>t(()=>e(...n))}var Io;fj?Io=queueMicrotask:pj?Io=setImmediate:dj?Io=process.nextTick:Io=wR;ar.default=UR(Io)});var HR=h((wa,kR)=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.default=vj;var Ej=CR(),_j=GR(Ej),Sj=DR(),hj=GR(Sj),Tj=wr();function GR(t){return t&&t.__esModule?t:{default:t}}function vj(t){return(0,Tj.isAsync)(t)?function(...e){let n=e.pop(),i=t.apply(this,e);return VR(i,n)}:(0,_j.default)(function(e,n){var i;try{i=t.apply(this,e)}catch(a){return n(a)}if(i&&typeof i.then=="function")return VR(i,n);n(null,i)})}function VR(t,e){return t.then(n=>{BR(e,null,n)},n=>{BR(e,n&&(n instanceof Error||n.message)?n:new Error(n))})}function BR(t,e,n){try{t(e,n)}catch(i){(0,hj.default)(a=>{throw a},i)}}kR.exports=wa.default});var wr=h(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.isAsyncIterable=Dt.isAsyncGenerator=Dt.isAsync=void 0;var mj=HR(),yj=Aj(mj);function Aj(t){return t&&t.__esModule?t:{default:t}}function FR(t){return t[Symbol.toStringTag]==="AsyncFunction"}function Oj(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function gj(t){return typeof t[Symbol.asyncIterator]=="function"}function Nj(t){if(typeof t!="function")throw new Error("expected a function");return FR(t)?(0,yj.default)(t):t}Dt.default=Nj;Dt.isAsync=FR;Dt.isAsyncGenerator=Oj;Dt.isAsyncIterable=gj});var Tn=h((Ua,YR)=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.default=Rj;function Rj(t,e){if(e||(e=t.length),!e)throw new Error("arity is undefined");function n(...i){return typeof i[e-1]=="function"?t.apply(this,i):new Promise((a,s)=>{i[e-1]=(o,...r)=>{if(o)return s(o);a(r.length>1?r:r[0])},t.apply(this,i)})}return n}YR.exports=Ua.default});var jR=h((Da,qR)=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});var Pj=Ia(),bj=uf(Pj),Mj=wr(),xj=uf(Mj),Lj=Tn(),Ij=uf(Lj);function uf(t){return t&&t.__esModule?t:{default:t}}Da.default=(0,Ij.default)((t,e,n)=>{var i=(0,bj.default)(e)?[]:{};t(e,(a,s,o)=>{(0,xj.default)(a)((r,...u)=>{u.length<2&&([u]=u),i[s]=u,o(r)})},a=>n(a,i))},3);qR.exports=Da.default});var lf=h((Va,$R)=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.default=Cj;function Cj(t){function e(...n){if(t!==null){var i=t;t=null,i.apply(this,n)}}return Object.assign(e,t),e}$R.exports=Va.default});var WR=h((Ba,KR)=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});Ba.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()};KR.exports=Ba.default});var JR=h((Ga,XR)=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.default=Hj;var wj=Ia(),Uj=zR(wj),Dj=WR(),Vj=zR(Dj);function zR(t){return t&&t.__esModule?t:{default:t}}function Bj(t){var e=-1,n=t.length;return function(){return++e<n?{value:t[e],key:e}:null}}function Gj(t){var e=-1;return function(){var i=t.next();return i.done?null:(e++,{value:i.value,key:e})}}function kj(t){var e=t?Object.keys(t):[],n=-1,i=e.length;return function a(){var s=e[++n];return s==="__proto__"?a():n<i?{value:t[s],key:s}:null}}function Hj(t){if((0,Uj.default)(t))return Bj(t);var e=(0,Vj.default)(t);return e?Gj(e):kj(t)}XR.exports=Ga.default});var cf=h((ka,QR)=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.default=Fj;function Fj(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var n=t;t=null,n.apply(this,e)}}QR.exports=ka.default});var Fa=h((Ha,ZR)=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});var Yj={};Ha.default=Yj;ZR.exports=Ha.default});var tP=h((Ya,eP)=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.default=Kj;var qj=Fa(),jj=$j(qj);function $j(t){return t&&t.__esModule?t:{default:t}}function Kj(t,e,n,i){let a=!1,s=!1,o=!1,r=0,u=0;function l(){r>=e||o||a||(o=!0,t.next().then(({value:_,done:f})=>{if(!(s||a)){if(o=!1,f){a=!0,r<=0&&i(null);return}r++,n(_,u,c),u++,l()}}).catch(p))}function c(_,f){if(r-=1,!s){if(_)return p(_);if(_===!1){a=!0,s=!0;return}if(f===jj.default||a&&r<=0)return a=!0,i(null);l()}}function p(_){s||(o=!1,a=!0,i(_))}l()}eP.exports=Ya.default});var iP=h((qa,oP)=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});var Wj=lf(),zj=Co(Wj),Xj=JR(),Jj=Co(Xj),Qj=cf(),Zj=Co(Qj),rP=wr(),e4=tP(),nP=Co(e4),t4=Fa(),r4=Co(t4);function Co(t){return t&&t.__esModule?t:{default:t}}qa.default=t=>(e,n,i)=>{if(i=(0,zj.default)(i),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return i(null);if((0,rP.isAsyncGenerator)(e))return(0,nP.default)(e,t,n,i);if((0,rP.isAsyncIterable)(e))return(0,nP.default)(e[Symbol.asyncIterator](),t,n,i);var a=(0,Jj.default)(e),s=!1,o=!1,r=0,u=!1;function l(p,_){if(!o)if(r-=1,p)s=!0,i(p);else if(p===!1)s=!0,o=!0;else{if(_===r4.default||s&&r<=0)return s=!0,i(null);u||c()}}function c(){for(u=!0;r<t&&!s;){var p=a();if(p===null){s=!0,r<=0&&i(null);return}r+=1,n(p.value,p.key,(0,Zj.default)(l))}u=!1}c()};oP.exports=qa.default});var pf=h((ja,aP)=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});var n4=iP(),o4=ff(n4),i4=wr(),a4=ff(i4),s4=Tn(),u4=ff(s4);function ff(t){return t&&t.__esModule?t:{default:t}}function l4(t,e,n,i){return(0,o4.default)(e)(t,(0,a4.default)(n),i)}ja.default=(0,u4.default)(l4,4);aP.exports=ja.default});var lP=h(($a,uP)=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});var c4=pf(),f4=sP(c4),p4=Tn(),d4=sP(p4);function sP(t){return t&&t.__esModule?t:{default:t}}function E4(t,e,n){return(0,f4.default)(t,1,e,n)}$a.default=(0,d4.default)(E4,3);uP.exports=$a.default});var pP=h((Ka,fP)=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.default=v4;var _4=jR(),S4=cP(_4),h4=lP(),T4=cP(h4);function cP(t){return t&&t.__esModule?t:{default:t}}function v4(t,e){return(0,S4.default)(T4.default,t,e)}fP.exports=Ka.default});var df=h((zZ,EP)=>{"use strict";EP.exports=Vt;var Wa=tr().codes,m4=Wa.ERR_METHOD_NOT_IMPLEMENTED,y4=Wa.ERR_MULTIPLE_CALLBACK,A4=Wa.ERR_TRANSFORM_ALREADY_TRANSFORMING,O4=Wa.ERR_TRANSFORM_WITH_LENGTH_0,za=Cr();fn()(Vt,za);function g4(t,e){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(i===null)return this.emit("error",new y4);n.writechunk=null,n.writecb=null,e!=null&&this.push(e),i(t);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function Vt(t){if(!(this instanceof Vt))return new Vt(t);za.call(this,t),this._transformState={afterTransform:g4.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",N4)}function N4(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,n){dP(t,e,n)}):dP(this,null,null)}Vt.prototype.push=function(t,e){return this._transformState.needTransform=!1,za.prototype.push.call(this,t,e)};Vt.prototype._transform=function(t,e,n){n(new m4("_transform()"))};Vt.prototype._write=function(t,e,n){var i=this._transformState;if(i.writecb=n,i.writechunk=t,i.writeencoding=e,!i.transforming){var a=this._readableState;(i.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}};Vt.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};Vt.prototype._destroy=function(t,e){za.prototype._destroy.call(this,t,function(n){e(n)})};function dP(t,e,n){if(e)return t.emit("error",e);if(n!=null&&t.push(n),t._writableState.length)throw new O4;if(t._transformState.transforming)throw new A4;return t.push(null)}});var hP=h((XZ,SP)=>{"use strict";SP.exports=wo;var _P=df();fn()(wo,_P);function wo(t){if(!(this instanceof wo))return new wo(t);_P.call(this,t)}wo.prototype._transform=function(t,e,n){n(null,t)}});var AP=h((JZ,yP)=>{"use strict";var Ef;function R4(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var mP=tr().codes,P4=mP.ERR_MISSING_ARGS,b4=mP.ERR_STREAM_DESTROYED;function TP(t){if(t)throw t}function M4(t){return t.setHeader&&typeof t.abort=="function"}function x4(t,e,n,i){i=R4(i);var a=!1;t.on("close",function(){a=!0}),Ef===void 0&&(Ef=ma()),Ef(t,{readable:e,writable:n},function(o){if(o)return i(o);a=!0,i()});var s=!1;return function(o){if(!a&&!s){if(s=!0,M4(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();i(o||new b4("pipe"))}}}function vP(t){t()}function L4(t,e){return t.pipe(e)}function I4(t){return!t.length||typeof t[t.length-1]!="function"?TP:t.pop()}function C4(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=I4(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new P4("streams");var a,s=e.map(function(o,r){var u=r<e.length-1,l=r>0;return x4(o,u,l,function(c){a||(a=c),c&&s.forEach(vP),!u&&(s.forEach(vP),i(a))})});return e.reduce(L4)}yP.exports=C4});var Ur=h((et,Do)=>{var Uo=L("stream");process.env.READABLE_STREAM==="disable"&&Uo?(Do.exports=Uo.Readable,Object.assign(Do.exports,Uo),Do.exports.Stream=Uo):(et=Do.exports=Qc(),et.Stream=Uo||et,et.Readable=et,et.Writable=ba(),et.Duplex=Cr(),et.Transform=df(),et.PassThrough=hP(),et.finished=ma(),et.pipeline=AP())});var yf=h((QZ,gP)=>{var vn=[],Vo=[],_f=function(){};function hf(t){return~vn.indexOf(t)?!1:(vn.push(t),!0)}function Tf(t){_f=t}function w4(t){for(var e=[],n=0;n<vn.length;n++){if(vn[n].async){e.push(vn[n]);continue}if(vn[n](t))return!0}return e.length?new Promise(function(a){Promise.all(e.map(function(o){return o(t)})).then(function(o){a(o.some(Boolean))})}):!1}function vf(t){return~Vo.indexOf(t)?!1:(Vo.push(t),!0)}function Sf(){_f.apply(_f,arguments)}function OP(t){for(var e=0;e<Vo.length;e++)t=Vo[e].apply(Vo[e],arguments);return t}function mf(t,e){var n=Object.prototype.hasOwnProperty;for(var i in e)n.call(e,i)&&(t[i]=e[i]);return t}function U4(t){return t.enabled=!1,t.modify=vf,t.set=Tf,t.use=hf,mf(function(){return!1},t)}function D4(t){function e(){var n=Array.prototype.slice.call(arguments,0);return Sf.call(Sf,t,OP(n,t)),!0}return t.enabled=!0,t.modify=vf,t.set=Tf,t.use=hf,mf(e,t)}gP.exports=function(e){return e.introduce=mf,e.enabled=w4,e.process=OP,e.modify=vf,e.write=Sf,e.nope=U4,e.yep=D4,e.set=Tf,e.use=hf,e}});var RP=h((ZZ,NP)=>{var V4=yf(),B4=V4(function t(e,n){return n=n||{},n.namespace=e,n.prod=!0,n.dev=!1,n.force||t.force?t.yep(n):t.nope(n)});NP.exports=B4});var bP=h((eee,PP)=>{"use strict";PP.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var xP=h((tee,MP)=>{MP.exports=function(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")}});var CP=h((ree,IP)=>{"use strict";var G4=xP(),k4=Array.prototype.concat,H4=Array.prototype.slice,LP=IP.exports=function(e){for(var n=[],i=0,a=e.length;i<a;i++){var s=e[i];G4(s)?n=k4.call(n,H4.call(s)):n.push(s)}return n};LP.wrap=function(t){return function(){return t(LP(arguments))}}});var VP=h((nee,DP)=>{var Bo=bP(),Go=CP(),wP=Object.hasOwnProperty,UP=Object.create(null);for(Xa in Bo)wP.call(Bo,Xa)&&(UP[Bo[Xa]]=Xa);var Xa,ze=DP.exports={to:{},get:{}};ze.get=function(t){var e=t.substring(0,3).toLowerCase(),n,i;switch(e){case"hsl":n=ze.get.hsl(t),i="hsl";break;case"hwb":n=ze.get.hwb(t),i="hwb";break;default:n=ze.get.rgb(t),i="rgb";break}return n?{model:i,value:n}:null};ze.get.rgb=function(t){if(!t)return null;var e=/^#([a-f0-9]{3,4})$/i,n=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,i=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,a=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,s=/^(\w+)$/,o=[0,0,0,1],r,u,l;if(r=t.match(n)){for(l=r[2],r=r[1],u=0;u<3;u++){var c=u*2;o[u]=parseInt(r.slice(c,c+2),16)}l&&(o[3]=parseInt(l,16)/255)}else if(r=t.match(e)){for(r=r[1],l=r[3],u=0;u<3;u++)o[u]=parseInt(r[u]+r[u],16);l&&(o[3]=parseInt(l+l,16)/255)}else if(r=t.match(i)){for(u=0;u<3;u++)o[u]=parseInt(r[u+1],0);r[4]&&(r[5]?o[3]=parseFloat(r[4])*.01:o[3]=parseFloat(r[4]))}else if(r=t.match(a)){for(u=0;u<3;u++)o[u]=Math.round(parseFloat(r[u+1])*2.55);r[4]&&(r[5]?o[3]=parseFloat(r[4])*.01:o[3]=parseFloat(r[4]))}else return(r=t.match(s))?r[1]==="transparent"?[0,0,0,0]:wP.call(Bo,r[1])?(o=Bo[r[1]],o[3]=1,o):null:null;for(u=0;u<3;u++)o[u]=sr(o[u],0,255);return o[3]=sr(o[3],0,1),o};ze.get.hsl=function(t){if(!t)return null;var e=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=t.match(e);if(n){var i=parseFloat(n[4]),a=(parseFloat(n[1])%360+360)%360,s=sr(parseFloat(n[2]),0,100),o=sr(parseFloat(n[3]),0,100),r=sr(isNaN(i)?1:i,0,1);return[a,s,o,r]}return null};ze.get.hwb=function(t){if(!t)return null;var e=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=t.match(e);if(n){var i=parseFloat(n[4]),a=(parseFloat(n[1])%360+360)%360,s=sr(parseFloat(n[2]),0,100),o=sr(parseFloat(n[3]),0,100),r=sr(isNaN(i)?1:i,0,1);return[a,s,o,r]}return null};ze.to.hex=function(){var t=Go(arguments);return"#"+Ja(t[0])+Ja(t[1])+Ja(t[2])+(t[3]<1?Ja(Math.round(t[3]*255)):"")};ze.to.rgb=function(){var t=Go(arguments);return t.length<4||t[3]===1?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"};ze.to.rgb.percent=function(){var t=Go(arguments),e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),i=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+e+"%, "+n+"%, "+i+"%)":"rgba("+e+"%, "+n+"%, "+i+"%, "+t[3]+")"};ze.to.hsl=function(){var t=Go(arguments);return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};ze.to.hwb=function(){var t=Go(arguments),e="";return t.length>=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};ze.to.keyword=function(t){return UP[t.slice(0,3)]};function sr(t,e,n){return Math.min(Math.max(e,t),n)}function Ja(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}});var GP=h((oee,BP)=>{"use strict";BP.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var Af=h((iee,YP)=>{var Dr=GP(),FP={};for(Qa in Dr)Dr.hasOwnProperty(Qa)&&(FP[Dr[Qa]]=Qa);var Qa,M=YP.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(Ue in M)if(M.hasOwnProperty(Ue)){if(!("channels"in M[Ue]))throw new Error("missing channels property: "+Ue);if(!("labels"in M[Ue]))throw new Error("missing channel labels property: "+Ue);if(M[Ue].labels.length!==M[Ue].channels)throw new Error("channel and label counts mismatch: "+Ue);kP=M[Ue].channels,HP=M[Ue].labels,delete M[Ue].channels,delete M[Ue].labels,Object.defineProperty(M[Ue],"channels",{value:kP}),Object.defineProperty(M[Ue],"labels",{value:HP})}var kP,HP,Ue;M.rgb.hsl=function(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255,a=Math.min(e,n,i),s=Math.max(e,n,i),o=s-a,r,u,l;return s===a?r=0:e===s?r=(n-i)/o:n===s?r=2+(i-e)/o:i===s&&(r=4+(e-n)/o),r=Math.min(r*60,360),r<0&&(r+=360),l=(a+s)/2,s===a?u=0:l<=.5?u=o/(s+a):u=o/(2-s-a),[r,u*100,l*100]};M.rgb.hsv=function(t){var e,n,i,a,s,o=t[0]/255,r=t[1]/255,u=t[2]/255,l=Math.max(o,r,u),c=l-Math.min(o,r,u),p=function(_){return(l-_)/6/c+1/2};return c===0?a=s=0:(s=c/l,e=p(o),n=p(r),i=p(u),o===l?a=i-n:r===l?a=1/3+e-i:u===l&&(a=2/3+n-e),a<0?a+=1:a>1&&(a-=1)),[a*360,s*100,l*100]};M.rgb.hwb=function(t){var e=t[0],n=t[1],i=t[2],a=M.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(n,i));return i=1-1/255*Math.max(e,Math.max(n,i)),[a,s*100,i*100]};M.rgb.cmyk=function(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255,a,s,o,r;return r=Math.min(1-e,1-n,1-i),a=(1-e-r)/(1-r)||0,s=(1-n-r)/(1-r)||0,o=(1-i-r)/(1-r)||0,[a*100,s*100,o*100,r*100]};function F4(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}M.rgb.keyword=function(t){var e=FP[t];if(e)return e;var n=1/0,i;for(var a in Dr)if(Dr.hasOwnProperty(a)){var s=Dr[a],o=F4(t,s);o<n&&(n=o,i=a)}return i};M.keyword.rgb=function(t){return Dr[t]};M.rgb.xyz=function(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92;var a=e*.4124+n*.3576+i*.1805,s=e*.2126+n*.7152+i*.0722,o=e*.0193+n*.1192+i*.9505;return[a*100,s*100,o*100]};M.rgb.lab=function(t){var e=M.rgb.xyz(t),n=e[0],i=e[1],a=e[2],s,o,r;return n/=95.047,i/=100,a/=108.883,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,s=116*i-16,o=500*(n-i),r=200*(i-a),[s,o,r]};M.hsl.rgb=function(t){var e=t[0]/360,n=t[1]/100,i=t[2]/100,a,s,o,r,u;if(n===0)return u=i*255,[u,u,u];i<.5?s=i*(1+n):s=i+n-i*n,a=2*i-s,r=[0,0,0];for(var l=0;l<3;l++)o=e+1/3*-(l-1),o<0&&o++,o>1&&o--,6*o<1?u=a+(s-a)*6*o:2*o<1?u=s:3*o<2?u=a+(s-a)*(2/3-o)*6:u=a,r[l]=u*255;return r};M.hsl.hsv=function(t){var e=t[0],n=t[1]/100,i=t[2]/100,a=n,s=Math.max(i,.01),o,r;return i*=2,n*=i<=1?i:2-i,a*=s<=1?s:2-s,r=(i+n)/2,o=i===0?2*a/(s+a):2*n/(i+n),[e,o*100,r*100]};M.hsv.rgb=function(t){var e=t[0]/60,n=t[1]/100,i=t[2]/100,a=Math.floor(e)%6,s=e-Math.floor(e),o=255*i*(1-n),r=255*i*(1-n*s),u=255*i*(1-n*(1-s));switch(i*=255,a){case 0:return[i,u,o];case 1:return[r,i,o];case 2:return[o,i,u];case 3:return[o,r,i];case 4:return[u,o,i];case 5:return[i,o,r]}};M.hsv.hsl=function(t){var e=t[0],n=t[1]/100,i=t[2]/100,a=Math.max(i,.01),s,o,r;return r=(2-n)*i,s=(2-n)*a,o=n*a,o/=s<=1?s:2-s,o=o||0,r/=2,[e,o*100,r*100]};M.hwb.rgb=function(t){var e=t[0]/360,n=t[1]/100,i=t[2]/100,a=n+i,s,o,r,u;a>1&&(n/=a,i/=a),s=Math.floor(6*e),o=1-i,r=6*e-s,s&1&&(r=1-r),u=n+r*(o-n);var l,c,p;switch(s){default:case 6:case 0:l=o,c=u,p=n;break;case 1:l=u,c=o,p=n;break;case 2:l=n,c=o,p=u;break;case 3:l=n,c=u,p=o;break;case 4:l=u,c=n,p=o;break;case 5:l=o,c=n,p=u;break}return[l*255,c*255,p*255]};M.cmyk.rgb=function(t){var e=t[0]/100,n=t[1]/100,i=t[2]/100,a=t[3]/100,s,o,r;return s=1-Math.min(1,e*(1-a)+a),o=1-Math.min(1,n*(1-a)+a),r=1-Math.min(1,i*(1-a)+a),[s*255,o*255,r*255]};M.xyz.rgb=function(t){var e=t[0]/100,n=t[1]/100,i=t[2]/100,a,s,o;return a=e*3.2406+n*-1.5372+i*-.4986,s=e*-.9689+n*1.8758+i*.0415,o=e*.0557+n*-.204+i*1.057,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[a*255,s*255,o*255]};M.xyz.lab=function(t){var e=t[0],n=t[1],i=t[2],a,s,o;return e/=95.047,n/=100,i/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,a=116*n-16,s=500*(e-n),o=200*(n-i),[a,s,o]};M.lab.xyz=function(t){var e=t[0],n=t[1],i=t[2],a,s,o;s=(e+16)/116,a=n/500+s,o=s-i/200;var r=Math.pow(s,3),u=Math.pow(a,3),l=Math.pow(o,3);return s=r>.008856?r:(s-16/116)/7.787,a=u>.008856?u:(a-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,a*=95.047,s*=100,o*=108.883,[a,s,o]};M.lab.lch=function(t){var e=t[0],n=t[1],i=t[2],a,s,o;return a=Math.atan2(i,n),s=a*360/2/Math.PI,s<0&&(s+=360),o=Math.sqrt(n*n+i*i),[e,o,s]};M.lch.lab=function(t){var e=t[0],n=t[1],i=t[2],a,s,o;return o=i/360*2*Math.PI,a=n*Math.cos(o),s=n*Math.sin(o),[e,a,s]};M.rgb.ansi16=function(t){var e=t[0],n=t[1],i=t[2],a=1 in arguments?arguments[1]:M.rgb.hsv(t)[2];if(a=Math.round(a/50),a===0)return 30;var s=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(e/255));return a===2&&(s+=60),s};M.hsv.ansi16=function(t){return M.rgb.ansi16(M.hsv.rgb(t),t[2])};M.rgb.ansi256=function(t){var e=t[0],n=t[1],i=t[2];if(e===n&&n===i)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var a=16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5);return a};M.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var n=(~~(t>50)+1)*.5,i=(e&1)*n*255,a=(e>>1&1)*n*255,s=(e>>2&1)*n*255;return[i,a,s]};M.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var n,i=Math.floor(t/36)/5*255,a=Math.floor((n=t%36)/6)/5*255,s=n%6/5*255;return[i,a,s]};M.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),n=e.toString(16).toUpperCase();return"000000".substring(n.length)+n};M.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var n=e[0];e[0].length===3&&(n=n.split("").map(function(r){return r+r}).join(""));var i=parseInt(n,16),a=i>>16&255,s=i>>8&255,o=i&255;return[a,s,o]};M.rgb.hcg=function(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255,a=Math.max(Math.max(e,n),i),s=Math.min(Math.min(e,n),i),o=a-s,r,u;return o<1?r=s/(1-o):r=0,o<=0?u=0:a===e?u=(n-i)/o%6:a===n?u=2+(i-e)/o:u=4+(e-n)/o+4,u/=6,u%=1,[u*360,o*100,r*100]};M.hsl.hcg=function(t){var e=t[1]/100,n=t[2]/100,i=1,a=0;return n<.5?i=2*e*n:i=2*e*(1-n),i<1&&(a=(n-.5*i)/(1-i)),[t[0],i*100,a*100]};M.hsv.hcg=function(t){var e=t[1]/100,n=t[2]/100,i=e*n,a=0;return i<1&&(a=(n-i)/(1-i)),[t[0],i*100,a*100]};M.hcg.rgb=function(t){var e=t[0]/360,n=t[1]/100,i=t[2]/100;if(n===0)return[i*255,i*255,i*255];var a=[0,0,0],s=e%1*6,o=s%1,r=1-o,u=0;switch(Math.floor(s)){case 0:a[0]=1,a[1]=o,a[2]=0;break;case 1:a[0]=r,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=o;break;case 3:a[0]=0,a[1]=r,a[2]=1;break;case 4:a[0]=o,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=r}return u=(1-n)*i,[(n*a[0]+u)*255,(n*a[1]+u)*255,(n*a[2]+u)*255]};M.hcg.hsv=function(t){var e=t[1]/100,n=t[2]/100,i=e+n*(1-e),a=0;return i>0&&(a=e/i),[t[0],a*100,i*100]};M.hcg.hsl=function(t){var e=t[1]/100,n=t[2]/100,i=n*(1-e)+.5*e,a=0;return i>0&&i<.5?a=e/(2*i):i>=.5&&i<1&&(a=e/(2*(1-i))),[t[0],a*100,i*100]};M.hcg.hwb=function(t){var e=t[1]/100,n=t[2]/100,i=e+n*(1-e);return[t[0],(i-e)*100,(1-i)*100]};M.hwb.hcg=function(t){var e=t[1]/100,n=t[2]/100,i=1-n,a=i-e,s=0;return a<1&&(s=(i-a)/(1-a)),[t[0],a*100,s*100]};M.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};M.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};M.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};M.gray.hsl=M.gray.hsv=function(t){return[0,0,t[0]]};M.gray.hwb=function(t){return[0,100,t[0]]};M.gray.cmyk=function(t){return[0,0,0,t[0]]};M.gray.lab=function(t){return[t[0],0,0]};M.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,n=(e<<16)+(e<<8)+e,i=n.toString(16).toUpperCase();return"000000".substring(i.length)+i};M.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}});var jP=h((aee,qP)=>{var Za=Af();function Y4(){for(var t={},e=Object.keys(Za),n=e.length,i=0;i<n;i++)t[e[i]]={distance:-1,parent:null};return t}function q4(t){var e=Y4(),n=[t];for(e[t].distance=0;n.length;)for(var i=n.pop(),a=Object.keys(Za[i]),s=a.length,o=0;o<s;o++){var r=a[o],u=e[r];u.distance===-1&&(u.distance=e[i].distance+1,u.parent=i,n.unshift(r))}return e}function j4(t,e){return function(n){return e(t(n))}}function $4(t,e){for(var n=[e[t].parent,t],i=Za[e[t].parent][t],a=e[t].parent;e[a].parent;)n.unshift(e[a].parent),i=j4(Za[e[a].parent][a],i),a=e[a].parent;return i.conversion=n,i}qP.exports=function(t){for(var e=q4(t),n={},i=Object.keys(e),a=i.length,s=0;s<a;s++){var o=i[s],r=e[o];r.parent!==null&&(n[o]=$4(o,e))}return n}});var KP=h((see,$P)=>{var Of=Af(),K4=jP(),mn={},W4=Object.keys(Of);function z4(t){var e=function(n){return n==null?n:(arguments.length>1&&(n=Array.prototype.slice.call(arguments)),t(n))};return"conversion"in t&&(e.conversion=t.conversion),e}function X4(t){var e=function(n){if(n==null)return n;arguments.length>1&&(n=Array.prototype.slice.call(arguments));var i=t(n);if(typeof i=="object")for(var a=i.length,s=0;s<a;s++)i[s]=Math.round(i[s]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}W4.forEach(function(t){mn[t]={},Object.defineProperty(mn[t],"channels",{value:Of[t].channels}),Object.defineProperty(mn[t],"labels",{value:Of[t].labels});var e=K4(t),n=Object.keys(e);n.forEach(function(i){var a=e[i];mn[t][i]=X4(a),mn[t][i].raw=z4(a)})});$P.exports=mn});var XP=h((uee,zP)=>{"use strict";var ko=VP(),Xe=KP(),Rf=[].slice,WP=["keyword","gray","hex"],gf={};Object.keys(Xe).forEach(function(t){gf[Rf.call(Xe[t].labels).sort().join("")]=t});var es={};function ye(t,e){if(!(this instanceof ye))return new ye(t,e);if(e&&e in WP&&(e=null),e&&!(e in Xe))throw new Error("Unknown model: "+e);var n,i;if(t==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof ye)this.model=t.model,this.color=t.color.slice(),this.valpha=t.valpha;else if(typeof t=="string"){var a=ko.get(t);if(a===null)throw new Error("Unable to parse color from string: "+t);this.model=a.model,i=Xe[this.model].channels,this.color=a.value.slice(0,i),this.valpha=typeof a.value[i]=="number"?a.value[i]:1}else if(t.length){this.model=e||"rgb",i=Xe[this.model].channels;var s=Rf.call(t,0,i);this.color=Nf(s,i),this.valpha=typeof t[i]=="number"?t[i]:1}else if(typeof t=="number")t&=16777215,this.model="rgb",this.color=[t>>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;var o=Object.keys(t);"alpha"in t&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);var r=o.sort().join("");if(!(r in gf))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=gf[r];var u=Xe[this.model].labels,l=[];for(n=0;n<u.length;n++)l.push(t[u[n]]);this.color=Nf(l)}if(es[this.model])for(i=Xe[this.model].channels,n=0;n<i;n++){var c=es[this.model][n];c&&(this.color[n]=c(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}ye.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(t){var e=this.model in ko.to?this:this.rgb();e=e.round(typeof t=="number"?t:1);var n=e.valpha===1?e.color:e.color.concat(this.valpha);return ko.to[e.model](n)},percentString:function(t){var e=this.rgb().round(typeof t=="number"?t:1),n=e.valpha===1?e.color:e.color.concat(this.valpha);return ko.to.rgb.percent(n)},array:function(){return this.valpha===1?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var t={},e=Xe[this.model].channels,n=Xe[this.model].labels,i=0;i<e;i++)t[n[i]]=this.color[i];return this.valpha!==1&&(t.alpha=this.valpha),t},unitArray:function(){var t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,this.valpha!==1&&t.push(this.valpha),t},unitObject:function(){var t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,this.valpha!==1&&(t.alpha=this.valpha),t},round:function(t){return t=Math.max(t||0,0),new ye(this.color.map(Q4(t)).concat(this.valpha),this.model)},alpha:function(t){return arguments.length?new ye(this.color.concat(Math.max(0,Math.min(1,t))),this.model):this.valpha},red:le("rgb",0,de(255)),green:le("rgb",1,de(255)),blue:le("rgb",2,de(255)),hue:le(["hsl","hsv","hsl","hwb","hcg"],0,function(t){return(t%360+360)%360}),saturationl:le("hsl",1,de(100)),lightness:le("hsl",2,de(100)),saturationv:le("hsv",1,de(100)),value:le("hsv",2,de(100)),chroma:le("hcg",1,de(100)),gray:le("hcg",2,de(100)),white:le("hwb",1,de(100)),wblack:le("hwb",2,de(100)),cyan:le("cmyk",0,de(100)),magenta:le("cmyk",1,de(100)),yellow:le("cmyk",2,de(100)),black:le("cmyk",3,de(100)),x:le("xyz",0,de(100)),y:le("xyz",1,de(100)),z:le("xyz",2,de(100)),l:le("lab",0,de(100)),a:le("lab",1),b:le("lab",2),keyword:function(t){return arguments.length?new ye(t):Xe[this.model].keyword(this.color)},hex:function(t){return arguments.length?new ye(t):ko.to.hex(this.rgb().round().color)},rgbNumber:function(){var t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity:function(){for(var t=this.rgb().color,e=[],n=0;n<t.length;n++){var i=t[n]/255;e[n]=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}return .2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),n=t.luminosity();return e>n?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},isDark:function(){var t=this.rgb().color,e=(t[0]*299+t[1]*587+t[2]*114)/1e3;return e<128},isLight:function(){return!this.isDark()},negate:function(){for(var t=this.rgb(),e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten:function(t){var e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken:function(t){var e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate:function(t){var e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate:function(t){var e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten:function(t){var e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken:function(t){var e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale:function(){var t=this.rgb().color,e=t[0]*.3+t[1]*.59+t[2]*.11;return ye.rgb(e,e,e)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var e=this.hsl(),n=e.color[0];return n=(n+t)%360,n=n<0?360+n:n,e.color[0]=n,e},mix:function(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);var n=t.rgb(),i=this.rgb(),a=e===void 0?.5:e,s=2*a-1,o=n.alpha()-i.alpha(),r=((s*o===-1?s:(s+o)/(1+s*o))+1)/2,u=1-r;return ye.rgb(r*n.red()+u*i.red(),r*n.green()+u*i.green(),r*n.blue()+u*i.blue(),n.alpha()*a+i.alpha()*(1-a))}};Object.keys(Xe).forEach(function(t){if(WP.indexOf(t)===-1){var e=Xe[t].channels;ye.prototype[t]=function(){if(this.model===t)return new ye(this);if(arguments.length)return new ye(arguments,t);var n=typeof arguments[e]=="number"?e:this.valpha;return new ye(Z4(Xe[this.model][t].raw(this.color)).concat(n),t)},ye[t]=function(n){return typeof n=="number"&&(n=Nf(Rf.call(arguments),e)),new ye(n,t)}}});function J4(t,e){return Number(t.toFixed(e))}function Q4(t){return function(e){return J4(e,t)}}function le(t,e,n){return t=Array.isArray(t)?t:[t],t.forEach(function(i){(es[i]||(es[i]=[]))[e]=n}),t=t[0],function(i){var a;return arguments.length?(n&&(i=n(i)),a=this[t](),a.color[e]=i,a):(a=this[t]().color[e],n&&(a=n(a)),a)}}function de(t){return function(e){return Math.max(0,Math.min(t,e))}}function Z4(t){return Array.isArray(t)?t:[t]}function Nf(t,e){for(var n=0;n<e;n++)typeof t[n]!="number"&&(t[n]=0);return t}zP.exports=ye});var QP=h((lee,JP)=>{"use strict";JP.exports=function(e){for(var n=0,i=0;n<e.length;i=e.charCodeAt(n++)+((i<<5)-i));var a=Math.floor(Math.abs(Math.sin(i)*1e4%1*16777216)).toString(16);return"#"+Array(6-a.length+1).join("0")+a}});var rb=h((cee,tb)=>{"use strict";var ZP=XP(),eb=QP();tb.exports=function(e,n){var i=e.split(n||":"),a=eb(i[0]);if(!i.length)return a;for(var s=0,o=i.length-1;s<o;s++)a=ZP(a).mix(ZP(eb(i[s+1]))).saturate(1).hex();return a}});var ob=h((fee,nb)=>{"use strict";function ct(t,e){if(e)return new ct(t).style(e);if(!(this instanceof ct))return new ct(t);this.text=t}ct.prototype.prefix="\x1B[";ct.prototype.suffix="m";ct.prototype.hex=function(e){e=e[0]==="#"?e.substring(1):e,e.length===3&&(e=e.split(""),e[5]=e[2],e[4]=e[2],e[3]=e[1],e[2]=e[1],e[1]=e[0],e=e.join(""));var n=e.substring(0,2),i=e.substring(2,4),a=e.substring(4,6);return[parseInt(n,16),parseInt(i,16),parseInt(a,16)]};ct.prototype.rgb=function(e,n,i){var a=e/255*5,s=n/255*5,o=i/255*5;return this.ansi(a,s,o)};ct.prototype.ansi=function(e,n,i){var a=Math.round(e),s=Math.round(n),o=Math.round(i);return 16+a*36+s*6+o};ct.prototype.reset=function(){return this.prefix+"39;49"+this.suffix};ct.prototype.style=function(e){return this.prefix+"38;5;"+this.rgb.apply(this,this.hex(e))+this.suffix+this.text+this.reset()};nb.exports=ct});var ab=h((pee,ib)=>{var e6=rb(),t6=ob();ib.exports=function(e,n){var i=n.namespace,a=n.colors!==!1?t6(i+":",e6(i)):i+":";return e[0]=a+" "+e[0],e}});var ub=h((dee,sb)=>{"use strict";sb.exports=function(e,n){if(!n)return!1;for(var i=n.split(/[\s,]+/),a=0;a<i.length;a++){if(n=i[a].replace("*",".*?"),n.charAt(0)==="-"){if(new RegExp("^"+n.substr(1)+"$").test(e))return!1;continue}if(new RegExp("^"+n+"$").test(e))return!0}return!1}});var cb=h((Eee,lb)=>{var r6=ub();lb.exports=function(e){return function(i){try{return r6(i,e())}catch{}return!1}}});var pb=h((_ee,fb)=>{var n6=cb();fb.exports=n6(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var Eb=h((See,db)=>{db.exports=function(t,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var Sb=h((hee,_b)=>{var o6=yf(),i6=L("tty").isatty(1),ts=o6(function t(e,n){return n=n||{},n.colors="colors"in n?n.colors:i6,n.namespace=e,n.prod=!1,n.dev=!0,!t.enabled(e)&&!(n.force||t.force)?t.nope(n):t.yep(n)});ts.modify(ab());ts.use(pb());ts.set(Eb());_b.exports=ts});var Ho=h((Tee,Pf)=>{process.env.NODE_ENV==="production"?Pf.exports=RP():Pf.exports=Sb()});var Tb=h((vee,hb)=>{"use strict";var bf=L("fs"),{StringDecoder:a6}=L("string_decoder"),{Stream:s6}=Ur();function u6(){}hb.exports=(t,e)=>{let n=Buffer.alloc(65536),i=new a6("utf8"),a=new s6,s="",o=0,r=0;return t.start===-1&&delete t.start,a.readable=!0,a.destroy=()=>{a.destroyed=!0,a.emit("end"),a.emit("close")},bf.open(t.file,"a+","0644",(u,l)=>{if(u){e?e(u):a.emit("error",u),a.destroy();return}(function c(){if(a.destroyed){bf.close(l,u6);return}return bf.read(l,n,0,n.length,o,(p,_)=>{if(p){e?e(p):a.emit("error",p),a.destroy();return}if(!_)return s&&((t.start==null||r>t.start)&&(e?e(null,s):a.emit("line",s)),r++,s=""),setTimeout(c,1e3);let f=i.write(n.slice(0,_));e||a.emit("data",f),f=(s+f).split(/\n+/);let S=f.length-1,v=0;for(;v<S;v++)(t.start==null||r>t.start)&&(e?e(null,f[v]):a.emit("line",f[v])),r++;return s=f[S],o+=_,c()})})()}),e?a.destroy:a}});var Ab=h((yee,yb)=>{"use strict";var Ye=L("fs"),Se=L("path"),vb=pP(),l6=L("zlib"),{MESSAGE:c6}=fe(),{Stream:f6,PassThrough:mb}=Ur(),p6=Sn(),ft=Ho()("winston:file"),d6=L("os"),E6=Tb();yb.exports=class extends p6{constructor(e={}){super(e),this.name=e.name||"file";function n(i,...a){a.slice(1).forEach(s=>{if(e[s])throw new Error(`Cannot set ${s} and ${i} together`)})}if(this._stream=new mb,this._stream.setMaxListeners(30),this._onError=this._onError.bind(this),e.filename||e.dirname)n("filename or dirname","stream"),this._basename=this.filename=e.filename?Se.basename(e.filename):"winston.log",this.dirname=e.dirname||Se.dirname(e.filename),this.options=e.options||{flags:"a"};else if(e.stream)console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),n("stream","filename","maxsize"),this._dest=this._stream.pipe(this._setupStream(e.stream)),this.dirname=Se.dirname(this._dest.path);else throw new Error("Cannot log to file without filename or stream.");this.maxsize=e.maxsize||null,this.rotationFormat=e.rotationFormat||!1,this.zippedArchive=e.zippedArchive||!1,this.maxFiles=e.maxFiles||null,this.eol=typeof e.eol=="string"?e.eol:d6.EOL,this.tailable=e.tailable||!1,this.lazy=e.lazy||!1,this._size=0,this._pendingSize=0,this._created=0,this._drain=!1,this._opening=!1,this._ending=!1,this._fileExist=!1,this.dirname&&this._createLogDirIfNotExist(this.dirname),this.lazy||this.open()}finishIfEnding(){this._ending&&(this._opening?this.once("open",()=>{this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())}):(this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())))}log(e,n=()=>{}){if(this.silent)return n(),!0;if(this._drain){this._stream.once("drain",()=>{this._drain=!1,this.log(e,n)});return}if(this._rotate){this._stream.once("rotate",()=>{this._rotate=!1,this.log(e,n)});return}if(this.lazy){if(!this._fileExist){this._opening||this.open(),this.once("open",()=>{this._fileExist=!0,this.log(e,n)});return}if(this._needsNewFile(this._pendingSize)){this._dest.once("close",()=>{this._opening||this.open(),this.once("open",()=>{this.log(e,n)})});return}}let i=`${e[c6]}${this.eol}`,a=Buffer.byteLength(i);function s(){if(this._size+=a,this._pendingSize-=a,ft("logged %s %s",this._size,i),this.emit("logged",e),!this._rotate&&!this._opening&&this._needsNewFile()){if(this.lazy){this._endStream(()=>{this.emit("fileclosed")});return}this._rotate=!0,this._endStream(()=>this._rotateFile())}}this._pendingSize+=a,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);let o=this._stream.write(i,s.bind(this));return o?n():(this._drain=!0,this._stream.once("drain",()=>{this._drain=!1,n()})),ft("written",o,this._drain),this.finishIfEnding(),o}query(e,n){typeof e=="function"&&(n=e,e={}),e=p(e);let i=Se.join(this.dirname,this.filename),a="",s=[],o=0,r=Ye.createReadStream(i,{encoding:"utf8"});r.on("error",_=>{if(r.readable&&r.destroy(),!!n)return _.code!=="ENOENT"?n(_):n(null,s)}),r.on("data",_=>{_=(a+_).split(/\n+/);let f=_.length-1,S=0;for(;S<f;S++)(!e.start||o>=e.start)&&u(_[S]),o++;a=_[f]}),r.on("close",()=>{a&&u(a,!0),e.order==="desc"&&(s=s.reverse()),n&&n(null,s)});function u(_,f){try{let S=JSON.parse(_);c(S)&&l(S)}catch(S){f||r.emit("error",S)}}function l(_){if(e.rows&&s.length>=e.rows&&e.order!=="desc"){r.readable&&r.destroy();return}e.fields&&(_=e.fields.reduce((f,S)=>(f[S]=_[S],f),{})),e.order==="desc"&&s.length>=e.rows&&s.shift(),s.push(_)}function c(_){if(!_||typeof _!="object")return;let f=new Date(_.timestamp);if(!(e.from&&f<e.from||e.until&&f>e.until||e.level&&e.level!==_.level))return!0}function p(_){return _=_||{},_.rows=_.rows||_.limit||10,_.start=_.start||0,_.until=_.until||new Date,typeof _.until!="object"&&(_.until=new Date(_.until)),_.from=_.from||_.until-24*60*60*1e3,typeof _.from!="object"&&(_.from=new Date(_.from)),_.order=_.order||"desc",_}}stream(e={}){let n=Se.join(this.dirname,this.filename),i=new f6,a={file:n,start:e.start};return i.destroy=E6(a,(s,o)=>{if(s)return i.emit("error",s);try{i.emit("data",o),o=JSON.parse(o),i.emit("log",o)}catch(r){i.emit("error",r)}}),i}open(){this.filename&&(this._opening||(this._opening=!0,this.stat((e,n)=>{if(e)return this.emit("error",e);ft("stat done: %s { size: %s }",this.filename,n),this._size=n,this._dest=this._createStream(this._stream),this._opening=!1,this.once("open",()=>{this._stream.eventNames().includes("rotate")?this._stream.emit("rotate"):this._rotate=!1})})))}stat(e){let n=this._getFile(),i=Se.join(this.dirname,n);Ye.stat(i,(a,s)=>{if(a&&a.code==="ENOENT")return ft("ENOENT\xA0ok",i),this.filename=n,e(null,0);if(a)return ft(`err ${a.code} ${i}`),e(a);if(!s||this._needsNewFile(s.size))return this._incFile(()=>this.stat(e));this.filename=n,e(null,s.size)})}close(e){this._stream&&this._stream.end(()=>{e&&e(),this.emit("flush"),this.emit("closed")})}_needsNewFile(e){return e=e||this._size,this.maxsize&&e>=this.maxsize}_onError(e){this.emit("error",e)}_setupStream(e){return e.on("error",this._onError),e}_cleanupStream(e){return e.removeListener("error",this._onError),e.destroy(),e}_rotateFile(){this._incFile(()=>this.open())}_endStream(e=()=>{}){this._dest?(this._stream.unpipe(this._dest),this._dest.end(()=>{this._cleanupStream(this._dest),e()})):e()}_createStream(e){let n=Se.join(this.dirname,this.filename);ft("create stream start",n,this.options);let i=Ye.createWriteStream(n,this.options).on("error",a=>ft(a)).on("close",()=>ft("close",i.path,i.bytesWritten)).on("open",()=>{ft("file open ok",n),this.emit("open",n),e.pipe(i),this.rotatedWhileOpening&&(this._stream=new mb,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(i),e.end())});return ft("create stream ok",n),i}_incFile(e){ft("_incFile",this.filename);let n=Se.extname(this._basename),i=Se.basename(this._basename,n),a=[];this.zippedArchive&&a.push(function(s){let o=this._created>0&&!this.tailable?this._created:"";this._compressFile(Se.join(this.dirname,`${i}${o}${n}`),Se.join(this.dirname,`${i}${o}${n}.gz`),s)}.bind(this)),a.push(function(s){this.tailable?this._checkMaxFilesTailable(n,i,s):(this._created+=1,this._checkMaxFilesIncrementing(n,i,s))}.bind(this)),vb(a,e)}_getFile(){let e=Se.extname(this._basename),n=Se.basename(this._basename,e),i=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?`${n}${i}${e}`:`${n}${e}`}_checkMaxFilesIncrementing(e,n,i){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate(i);let a=this._created-this.maxFiles,s=a!==0?a:"",o=this.zippedArchive?".gz":"",r=`${n}${s}${e}${o}`,u=Se.join(this.dirname,r);Ye.unlink(u,i)}_checkMaxFilesTailable(e,n,i){let a=[];if(!this.maxFiles)return;let s=this.zippedArchive?".gz":"";for(let o=this.maxFiles-1;o>1;o--)a.push(function(r,u){let l=`${n}${r-1}${e}${s}`,c=Se.join(this.dirname,l);Ye.exists(c,p=>{if(!p)return u(null);l=`${n}${r}${e}${s}`,Ye.rename(c,Se.join(this.dirname,l),u)})}.bind(this,o));vb(a,()=>{Ye.rename(Se.join(this.dirname,`${n}${e}${s}`),Se.join(this.dirname,`${n}1${e}${s}`),i)})}_compressFile(e,n,i){Ye.access(e,Ye.F_OK,a=>{if(a)return i();var s=l6.createGzip(),o=Ye.createReadStream(e),r=Ye.createWriteStream(n);r.on("finish",()=>{Ye.unlink(e,i)}),o.pipe(s).pipe(r)})}_createLogDirIfNotExist(e){Ye.existsSync(e)||Ye.mkdirSync(e,{recursive:!0})}}});var gb=h((Oee,Ob)=>{"use strict";var _6=L("http"),S6=L("https"),{Stream:h6}=Ur(),T6=Sn(),{configure:v6}=yo();Ob.exports=class extends T6{constructor(e={}){super(e),this.options=e,this.name=e.name||"http",this.ssl=!!e.ssl,this.host=e.host||"localhost",this.port=e.port,this.auth=e.auth,this.path=e.path||"",this.maximumDepth=e.maximumDepth,this.agent=e.agent,this.headers=e.headers||{},this.headers["content-type"]="application/json",this.batch=e.batch||!1,this.batchInterval=e.batchInterval||5e3,this.batchCount=e.batchCount||10,this.batchOptions=[],this.batchTimeoutID=-1,this.batchCallback={},this.port||(this.port=this.ssl?443:80)}log(e,n){this._request(e,null,null,(i,a)=>{a&&a.statusCode!==200&&(i=new Error(`Invalid HTTP Status Code: ${a.statusCode}`)),i?this.emit("warn",i):this.emit("logged",e)}),n&&setImmediate(n)}query(e,n){typeof e=="function"&&(n=e,e={}),e={method:"query",params:this.normalizeQuery(e)};let i=e.params.auth||null;delete e.params.auth;let a=e.params.path||null;delete e.params.path,this._request(e,i,a,(s,o,r)=>{if(o&&o.statusCode!==200&&(s=new Error(`Invalid HTTP Status Code: ${o.statusCode}`)),s)return n(s);if(typeof r=="string")try{r=JSON.parse(r)}catch(u){return n(u)}n(null,r)})}stream(e={}){let n=new h6;e={method:"stream",params:e};let i=e.params.path||null;delete e.params.path;let a=e.params.auth||null;delete e.params.auth;let s="",o=this._request(e,a,i);return n.destroy=()=>o.destroy(),o.on("data",r=>{r=(s+r).split(/\n+/);let u=r.length-1,l=0;for(;l<u;l++)try{n.emit("log",JSON.parse(r[l]))}catch(c){n.emit("error",c)}s=r[u]}),o.on("error",r=>n.emit("error",r)),n}_request(e,n,i,a){e=e||{},n=n||this.auth,i=i||this.path||"",this.batch?this._doBatch(e,a,n,i):this._doRequest(e,a,n,i)}_doBatch(e,n,i,a){if(this.batchOptions.push(e),this.batchOptions.length===1){let s=this;this.batchCallback=n,this.batchTimeoutID=setTimeout(function(){s.batchTimeoutID=-1,s._doBatchRequest(s.batchCallback,i,a)},this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,i,a)}_doBatchRequest(e,n,i){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);let a=this.batchOptions.slice();this.batchOptions=[],this._doRequest(a,e,n,i)}_doRequest(e,n,i,a){let s=Object.assign({},this.headers);i&&i.bearer&&(s.Authorization=`Bearer ${i.bearer}`);let o=(this.ssl?S6:_6).request({...this.options,method:"POST",host:this.host,port:this.port,path:`/${a.replace(/^\//,"")}`,headers:s,auth:i&&i.username&&i.password?`${i.username}:${i.password}`:"",agent:this.agent});o.on("error",n),o.on("response",u=>u.on("end",()=>n(null,u)).resume());let r=v6({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});o.end(Buffer.from(r(e,this.options.replacer),"utf8"))}}});var Mf=h((gee,Nb)=>{"use strict";var yt=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";yt.writable=t=>yt(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";yt.readable=t=>yt(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";yt.duplex=t=>yt.writable(t)&&yt.readable(t);yt.transform=t=>yt.duplex(t)&&typeof t._transform=="function";Nb.exports=yt});var Pb=h((Ree,Rb)=>{"use strict";var m6=Mf(),{MESSAGE:y6}=fe(),A6=L("os"),O6=Sn();Rb.exports=class extends O6{constructor(e={}){if(super(e),!e.stream||!m6(e.stream))throw new Error("options.stream is required.");this._stream=e.stream,this._stream.setMaxListeners(1/0),this.isObjectMode=e.stream._writableState.objectMode,this.eol=typeof e.eol=="string"?e.eol:A6.EOL}log(e,n){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode){this._stream.write(e),n&&n();return}this._stream.write(`${e[y6]}${this.eol}`),n&&n()}}});var bb=h(Fo=>{"use strict";Object.defineProperty(Fo,"Console",{configurable:!0,enumerable:!0,get(){return xR()}});Object.defineProperty(Fo,"File",{configurable:!0,enumerable:!0,get(){return Ab()}});Object.defineProperty(Fo,"Http",{configurable:!0,enumerable:!0,get(){return gb()}});Object.defineProperty(Fo,"Stream",{configurable:!0,enumerable:!0,get(){return Pb()}})});var ns=h(Yo=>{"use strict";var rs=bc(),{configs:xf}=fe();Yo.cli=rs.levels(xf.cli);Yo.npm=rs.levels(xf.npm);Yo.syslog=rs.levels(xf.syslog);Yo.addColors=rs.levels});var xb=h((os,Mb)=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});var g6=Ia(),N6=Vr(g6),R6=Fa(),P6=Vr(R6),b6=pf(),M6=Vr(b6),x6=lf(),L6=Vr(x6),I6=cf(),C6=Vr(I6),w6=wr(),U6=Vr(w6),D6=Tn(),V6=Vr(D6);function Vr(t){return t&&t.__esModule?t:{default:t}}function B6(t,e,n){n=(0,L6.default)(n);var i=0,a=0,{length:s}=t,o=!1;s===0&&n(null);function r(u,l){u===!1&&(o=!0),o!==!0&&(u?n(u):(++a===s||l===P6.default)&&n(null))}for(;i<s;i++)e(t[i],i,(0,C6.default)(r))}function G6(t,e,n){return(0,M6.default)(t,1/0,e,n)}function k6(t,e,n){var i=(0,N6.default)(t)?B6:G6;return i(t,(0,U6.default)(e),n)}os.default=(0,V6.default)(k6,3);Mb.exports=os.default});var Ib=h((is,Lb)=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.default=H6;function H6(t){return(e,n,i)=>t(e,i)}Lb.exports=is.default});var us=h((ss,Cb)=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});var F6=xb(),Y6=as(F6),q6=Ib(),j6=as(q6),$6=wr(),K6=as($6),W6=Tn(),z6=as(W6);function as(t){return t&&t.__esModule?t:{default:t}}function X6(t,e,n){return(0,Y6.default)(t,(0,j6.default)((0,K6.default)(e)),n)}ss.default=(0,z6.default)(X6,3);Cb.exports=ss.default});var Ub=h((Mee,wb)=>{"use strict";var J6=Object.prototype.toString;wb.exports=function(e){if(typeof e.displayName=="string"&&e.constructor.name)return e.displayName;if(typeof e.name=="string"&&e.name)return e.name;if(typeof e=="object"&&e.constructor&&typeof e.constructor.name=="string")return e.constructor.name;var n=e.toString(),i=J6.call(e).slice(8,-1);return i==="Function"?n=n.substring(n.indexOf("(")+1,n.indexOf(")")):n=i,n||"anonymous"}});var Lf=h((xee,Db)=>{"use strict";var Q6=Ub();Db.exports=function(e){var n=0,i;function a(){return n||(n=1,i=e.apply(this,arguments),e=null),i}return a.displayName=Q6(e),a}});var If=h(jo=>{jo.get=function(t){var e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var n={},i=Error.prepareStackTrace;Error.prepareStackTrace=function(s,o){return o},Error.captureStackTrace(n,t||jo.get);var a=n.stack;return Error.prepareStackTrace=i,Error.stackTraceLimit=e,a};jo.parse=function(t){if(!t.stack)return[];var e=this,n=t.stack.split(`
|
35
|
-
`).slice(1);return n.map(function(i){if(i.match(/^\s*[-]{4,}$/))return e._createParsedCallSite({fileName:i,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var a=i.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(a){var s=null,o=null,r=null,u=null,l=null,c=a[5]==="native";if(a[1]){r=a[1];var p=r.lastIndexOf(".");if(r[p-1]=="."&&p--,p>0){s=r.substr(0,p),o=r.substr(p+1);var _=s.indexOf(".Module");_>0&&(r=r.substr(_+1),s=s.substr(0,_))}u=null}o&&(u=s,l=o),o==="<anonymous>"&&(l=null,r=null);var f={fileName:a[2]||null,lineNumber:parseInt(a[3],10)||null,functionName:r,typeName:u,methodName:l,columnNumber:parseInt(a[4],10)||null,native:c};return e._createParsedCallSite(f)}}).filter(function(i){return!!i})};function
|
36
|
-
`),stack:e&&e.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:
|
37
|
-
`),stack:e&&e.stack,rejection:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg
|
38
|
-
`));S&&this.exceptions.handle(S),v&&this.rejections.handle(v)}isLevelEnabled(e){let n=
|
39
|
-
`))}_onEvent(e,n){function i(a){e==="error"&&!this.transports.includes(n)&&this.add(n),this.emit(e,a,n)}n["__winston"+e]||(n["__winston"+e]=i.bind(this),n.on(e,n["__winston"+e]))}_addDefaultMeta(e){this.defaultMeta&&Object.assign(e,this.defaultMeta)}};function Bf(t,e){let n=t[e];return!n&&n!==0?null:n}Object.defineProperty(cs.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:t}=this._readableState;return Array.isArray(t)?t:[t].filter(Boolean)}});Qb.exports=cs});var Gf=h((Fee,Zb)=>{"use strict";var{LEVEL:T$}=fe(),v$=ns(),m$=ls(),y$=Ho()("winston:create-logger");function A$(t){return"is"+t.charAt(0).toUpperCase()+t.slice(1)+"Enabled"}Zb.exports=function(t={}){t.levels=t.levels||v$.npm.levels;class e extends m${constructor(a){super(a)}}let n=new e(t);return Object.keys(t.levels).forEach(function(i){if(y$('Define prototype method for "%s"',i),i==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}e.prototype[i]=function(...a){let s=this||n;if(a.length===1){let[o]=a,r=o&&o.message&&o||{message:o};return r.level=r[T$]=i,s._addDefaultMeta(r),s.write(r),this||n}return a.length===0?(s.log(i,""),s):s.log(i,...a)},e.prototype[A$(i)]=function(){return(this||n).isLevelEnabled(i)}}),n}});var t0=h((qee,e0)=>{"use strict";var O$=Gf();e0.exports=class{constructor(e={}){this.loggers=new Map,this.options=e}add(e,n){if(!this.loggers.has(e)){n=Object.assign({},n||this.options);let i=n.transports||this.options.transports;i?n.transports=Array.isArray(i)?i.slice():[i]:n.transports=[];let a=O$(n);a.on("close",()=>this._delete(e)),this.loggers.set(e,a)}return this.loggers.get(e)}get(e,n){return this.add(e,n)}has(e){return!!this.loggers.has(e)}close(e){if(e)return this._removeLogger(e);this.loggers.forEach((n,i)=>this._removeLogger(i))}_removeLogger(e){if(!this.loggers.has(e))return;this.loggers.get(e).close(),this._delete(e)}_delete(e){this.loggers.delete(e)}}});var n0=h(Q=>{"use strict";var r0=bc(),{warn:$o}=Mc();Q.version=bN().version;Q.transports=bb();Q.config=ns();Q.addColors=r0.levels;Q.format=r0.format;Q.createLogger=Gf();Q.Logger=ls();Q.ExceptionHandler=wf();Q.RejectionHandler=Df();Q.Container=t0();Q.Transport=Sn();Q.loggers=new Q.Container;var Ot=Q.createLogger();Object.keys(Q.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(t=>Q[t]=(...e)=>Ot[t](...e));Object.defineProperty(Q,"level",{get(){return Ot.level},set(t){Ot.level=t}});Object.defineProperty(Q,"exceptions",{get(){return Ot.exceptions}});Object.defineProperty(Q,"rejections",{get(){return Ot.rejections}});["exitOnError"].forEach(t=>{Object.defineProperty(Q,t,{get(){return Ot[t]},set(e){Ot[t]=e}})});Object.defineProperty(Q,"default",{get(){return{exceptionHandlers:Ot.exceptionHandlers,rejectionHandlers:Ot.rejectionHandlers,transports:Ot.transports}}});$o.deprecated(Q,"setLevels");$o.forFunctions(Q,"useFormat",["cli"]);$o.forProperties(Q,"useFormat",["padLevels","stripColors"]);$o.forFunctions(Q,"deprecated",["addRewriter","addFilter","clone","extend"]);$o.forProperties(Q,"deprecated",["emitErrs","levelLength"])});var g$,N$,R$,fs,ps,i0,a0=m(()=>{g$="exception.type",N$="exception.message",R$="exception.stacktrace",fs=g$,ps=N$,i0=R$});var s0=m(()=>{a0()});var P$,b$,M$,x$,L$,u0,ds,Ko,Wo,zo,I$,l0,c0=m(()=>{P$="process.runtime.name",b$="service.name",M$="telemetry.sdk.name",x$="telemetry.sdk.language",L$="telemetry.sdk.version",u0=P$,ds=b$,Ko=M$,Wo=x$,zo=L$,I$="nodejs",l0=I$});var f0=m(()=>{c0()});var p0=m(()=>{});var d0=m(()=>{});var Xo=m(()=>{s0();f0();p0();d0()});function yn(t){return t.setValue(kf,!0)}function E0(t){return t.deleteValue(kf)}function be(t){return t.getValue(kf)===!0}var kf,Jo=m(()=>{b();kf=Xr("OpenTelemetry SDK Context Key SUPPRESS_TRACING")});var _0,Es,An,_s,S0,h0,T0,Hf=m(()=>{_0="=",Es=";",An=",",_s="baggage",S0=180,h0=4096,T0=8192});function Ss(t){return t.reduce(function(e,n){var i=""+e+(e!==""?An:"")+n;return i.length>T0?e:i},"")}function hs(t){return t.getAllEntries().map(function(e){var n=C$(e,2),i=n[0],a=n[1],s=encodeURIComponent(i)+"="+encodeURIComponent(a.value);return a.metadata!==void 0&&(s+=Es+a.metadata.toString()),s})}function Qo(t){var e=t.split(Es);if(!(e.length<=0)){var n=e.shift();if(n){var i=n.indexOf(_0);if(!(i<=0)){var a=decodeURIComponent(n.substring(0,i).trim()),s=decodeURIComponent(n.substring(i+1).trim()),o;return e.length>0&&(o=nE(e.join(Es))),{key:a,value:s,metadata:o}}}}}function v0(t){return typeof t!="string"||t.length===0?{}:t.split(An).map(function(e){return Qo(e)}).filter(function(e){return e!==void 0&&e.value.length>0}).reduce(function(e,n){return e[n.key]=n.value,e},{})}var C$,Ff=m(()=>{b();Hf();C$=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}});var Ts,m0=m(()=>{b();Jo();Hf();Ff();Ts=function(){function t(){}return t.prototype.inject=function(e,n,i){var a=st.getBaggage(e);if(!(!a||be(e))){var s=hs(a).filter(function(r){return r.length<=h0}).slice(0,S0),o=Ss(s);o.length>0&&i.set(n,_s,o)}},t.prototype.extract=function(e,n,i){var a=i.get(n,_s),s=Array.isArray(a)?a.join(An):a;if(!s)return e;var o={};if(s.length===0)return e;var r=s.split(An);return r.forEach(function(u){var l=Qo(u);if(l){var c={value:l.value};l.metadata&&(c.metadata=l.metadata),o[l.key]=c}}),Object.entries(o).length===0?e:st.setBaggage(e,st.createBaggage(o))},t.prototype.fields=function(){return[_s]},t}()});var y0,A0=m(()=>{y0=function(){function t(e,n){this._monotonicClock=n,this._epochMillis=e.now(),this._performanceMillis=n.now()}return t.prototype.now=function(){var e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e},t}()});function ur(t){var e,n,i={};if(typeof t!="object"||t==null)return i;try{for(var a=O0(Object.entries(t)),s=a.next();!s.done;s=a.next()){var o=w$(s.value,2),r=o[0],u=o[1];if(!Yf(r)){g.warn("Invalid attribute key: "+r);continue}if(!Zo(u)){g.warn("Invalid attribute value set for key: "+r);continue}Array.isArray(u)?i[r]=u.slice():i[r]=u}}catch(l){e={error:l}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return i}function Yf(t){return typeof t=="string"&&t.length>0}function Zo(t){return t==null?!0:Array.isArray(t)?U$(t):g0(t)}function U$(t){var e,n,i;try{for(var a=O0(t),s=a.next();!s.done;s=a.next()){var o=s.value;if(o!=null){if(!i){if(g0(o)){i=typeof o;continue}return!1}if(typeof o!==i)return!1}}}catch(r){e={error:r}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return!0}function g0(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}var O0,w$,N0=m(()=>{b();O0=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},w$=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}});function vs(){return function(t){g.error(D$(t))}}function D$(t){return typeof t=="string"?t:JSON.stringify(V$(t))}function V$(t){for(var e={},n=t;n!==null;)Object.getOwnPropertyNames(n).forEach(function(i){if(!e[i]){var a=n[i];a&&(e[i]=String(a))}}),n=Object.getPrototypeOf(n);return e}var qf=m(()=>{b()});function P0(t){R0=t}function he(t){try{R0(t)}catch{}}var R0,jf=m(()=>{qf();R0=vs()});var qe,$f=m(()=>{(function(t){t.AlwaysOff="always_off",t.AlwaysOn="always_on",t.ParentBasedAlwaysOff="parentbased_always_off",t.ParentBasedAlwaysOn="parentbased_always_on",t.ParentBasedTraceIdRatio="parentbased_traceidratio",t.TraceIdRatio="traceidratio"})(qe||(qe={}))});function k$(t){return G$.indexOf(t)>-1}function F$(t){return H$.indexOf(t)>-1}function q$(t){return Y$.indexOf(t)>-1}function j$(t,e,n){if(!(typeof n[t]>"u")){var i=String(n[t]);e[t]=i.toLowerCase()==="true"}}function $$(t,e,n,i,a){if(i===void 0&&(i=-1/0),a===void 0&&(a=1/0),typeof n[t]<"u"){var s=Number(n[t]);isNaN(s)||(s<i?e[t]=i:s>a?e[t]=a:e[t]=s)}}function K$(t,e,n,i){i===void 0&&(i=B$);var a=n[t];typeof a=="string"&&(e[t]=a.split(i).map(function(s){return s.trim()}))}function z$(t,e,n){var i=n[t];if(typeof i=="string"){var a=W$[i.toUpperCase()];a!=null&&(e[t]=a)}}function ti(t){var e={};for(var n in ei){var i=n;switch(i){case"OTEL_LOG_LEVEL":z$(i,e,t);break;default:if(k$(i))j$(i,e,t);else if(F$(i))$$(i,e,t);else if(q$(i))K$(i,e,t);else{var a=t[i];typeof a<"u"&&a!==null&&(e[i]=String(a))}}}return e}var B$,G$,H$,Y$,Br,Gr,Kf,Wf,ei,W$,zf=m(()=>{b();$f();B$=",",G$=["OTEL_SDK_DISABLED"];H$=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];Y$=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];Br=1/0,Gr=128,Kf=128,Wf=128,ei={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:at.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:Br,OTEL_ATTRIBUTE_COUNT_LIMIT:Gr,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:Br,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:Gr,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:Br,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:Gr,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:Kf,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:Wf,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:qe.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};W$={ALL:at.ALL,VERBOSE:at.VERBOSE,DEBUG:at.DEBUG,INFO:at.INFO,WARN:at.WARN,ERROR:at.ERROR,NONE:at.NONE}});function Ae(){var t=ti(process.env);return Object.assign({},ei,t)}function On(){return ti(process.env)}var b0=m(()=>{zf()});var ms,M0=m(()=>{ms=typeof globalThis=="object"?globalThis:global});function x0(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function lr(t){for(var e=new Uint8Array(t.length/2),n=0,i=0;i<t.length;i+=2){var a=x0(t.charCodeAt(i)),s=x0(t.charCodeAt(i+1));e[n++]=a<<4|s}return e}var Xf=m(()=>{});function ys(t){return Buffer.from(lr(t)).toString("base64")}var L0=m(()=>{Xf()});function I0(t){return function(){for(var n=0;n<t/4;n++)As.writeUInt32BE(Math.random()*Math.pow(2,32)>>>0,n*4);for(var n=0;n<t&&!(As[n]>0);n++)n===t-1&&(As[t-1]=1);return As.toString("hex",0,t)}}var X$,C0,Os,As,w0=m(()=>{X$=8,C0=16,Os=function(){function t(){this.generateTraceId=I0(C0),this.generateSpanId=I0(X$)}return t}(),As=Buffer.allocUnsafe(C0)});import{performance as J$}from"perf_hooks";var tt,U0=m(()=>{tt=J$});var gs,Jf=m(()=>{gs="1.27.0"});var gn,cr,D0=m(()=>{Jf();Xo();cr=(gn={},gn[Ko]="opentelemetry",gn[u0]="node",gn[Wo]=l0,gn[zo]=gs,gn)});function fr(t){t.unref()}var V0=m(()=>{});var B0=m(()=>{b0();M0();L0();w0();U0();D0();V0()});var Qf=m(()=>{B0()});function Oe(t){var e=t/1e3,n=Math.trunc(e),i=Math.round(t%1e3*Z$);return[n,i]}function Nn(){var t=tt.timeOrigin;if(typeof t!="number"){var e=tt;t=e.timing&&e.timing.fetchStart}return t}function ri(t){var e=Oe(Nn()),n=Oe(typeof t=="number"?t:tt.now());return oi(e,n)}function k0(t){if(Rn(t))return t;if(typeof t=="number")return t<Nn()?ri(t):Oe(t);if(t instanceof Date)return Oe(t.getTime());throw TypeError("Invalid input type")}function Rs(t,e){var n=e[0]-t[0],i=e[1]-t[1];return i<0&&(n-=1,i+=Ns),[n,i]}function H0(t){var e=G0,n=""+"0".repeat(e)+t[1]+"Z",i=n.substr(n.length-e-1),a=new Date(t[0]*1e3).toISOString();return a.replace("000Z",i)}function Ps(t){return t[0]*Ns+t[1]}function F0(t){return t[0]*1e3+t[1]/1e6}function Nt(t){return t[0]*1e6+t[1]/1e3}function Rn(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}function ni(t){return Rn(t)||typeof t=="number"||t instanceof Date}function oi(t,e){var n=[t[0]+e[0],t[1]+e[1]];return n[1]>=Ns&&(n[1]-=Ns,n[0]+=1),n}var G0,Q$,Z$,Ns,Y0=m(()=>{Qf();G0=9,Q$=6,Z$=Math.pow(10,Q$),Ns=Math.pow(10,G0)});var ee,q0=m(()=>{(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(ee||(ee={}))});var eK,bs,j0=m(()=>{b();eK=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},bs=function(){function t(e){e===void 0&&(e={});var n;this._propagators=(n=e.propagators)!==null&&n!==void 0?n:[],this._fields=Array.from(new Set(this._propagators.map(function(i){return typeof i.fields=="function"?i.fields():[]}).reduce(function(i,a){return i.concat(a)},[])))}return t.prototype.inject=function(e,n,i){var a,s;try{for(var o=eK(this._propagators),r=o.next();!r.done;r=o.next()){var u=r.value;try{u.inject(e,n,i)}catch(l){g.warn("Failed to inject with "+u.constructor.name+". Err: "+l.message)}}}catch(l){a={error:l}}finally{try{r&&!r.done&&(s=o.return)&&s.call(o)}finally{if(a)throw a.error}}},t.prototype.extract=function(e,n,i){return this._propagators.reduce(function(a,s){try{return s.extract(a,n,i)}catch(o){g.warn("Failed to extract with "+s.constructor.name+". Err: "+o.message)}return a},e)},t.prototype.fields=function(){return this._fields.slice()},t}()});function $0(t){return nK.test(t)}function K0(t){return oK.test(t)&&!iK.test(t)}var Zf,tK,rK,nK,oK,iK,W0=m(()=>{Zf="[_0-9a-z-*/]",tK="[a-z]"+Zf+"{0,255}",rK="[a-z0-9]"+Zf+"{0,240}@[a-z]"+Zf+"{0,13}",nK=new RegExp("^(?:"+tK+"|"+rK+")$"),oK=/^[ -~]{0,255}[!-~]$/,iK=/,|=/});var z0,aK,X0,J0,Ms,ep=m(()=>{W0();z0=32,aK=512,X0=",",J0="=",Ms=function(){function t(e){this._internalState=new Map,e&&this._parse(e)}return t.prototype.set=function(e,n){var i=this._clone();return i._internalState.has(e)&&i._internalState.delete(e),i._internalState.set(e,n),i},t.prototype.unset=function(e){var n=this._clone();return n._internalState.delete(e),n},t.prototype.get=function(e){return this._internalState.get(e)},t.prototype.serialize=function(){var e=this;return this._keys().reduce(function(n,i){return n.push(i+J0+e.get(i)),n},[]).join(X0)},t.prototype._parse=function(e){e.length>aK||(this._internalState=e.split(X0).reverse().reduce(function(n,i){var a=i.trim(),s=a.indexOf(J0);if(s!==-1){var o=a.slice(0,s),r=a.slice(s+1,i.length);$0(o)&&K0(r)&&n.set(o,r)}return n},new Map),this._internalState.size>z0&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,z0))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t}()});function tp(t){var e=pK.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}var ii,ai,sK,uK,lK,cK,fK,pK,xs,Q0=m(()=>{b();Jo();ep();ii="traceparent",ai="tracestate",sK="00",uK="(?!ff)[\\da-f]{2}",lK="(?![0]{32})[\\da-f]{32}",cK="(?![0]{16})[\\da-f]{16}",fK="[\\da-f]{2}",pK=new RegExp("^\\s?("+uK+")-("+lK+")-("+cK+")-("+fK+")(-.*)?\\s?$");xs=function(){function t(){}return t.prototype.inject=function(e,n,i){var a=X.getSpanContext(e);if(!(!a||be(e)||!_t(a))){var s=sK+"-"+a.traceId+"-"+a.spanId+"-0"+Number(a.traceFlags||J.NONE).toString(16);i.set(n,ii,s),a.traceState&&i.set(n,ai,a.traceState.serialize())}},t.prototype.extract=function(e,n,i){var a=i.get(n,ii);if(!a)return e;var s=Array.isArray(a)?a[0]:a;if(typeof s!="string")return e;var o=tp(s);if(!o)return e;o.isRemote=!0;var r=i.get(n,ai);if(r){var u=Array.isArray(r)?r.join(","):r;o.traceState=new Ms(typeof u=="string"?u:void 0)}return X.setSpanContext(e,o)},t.prototype.fields=function(){return[ii,ai]},t}()});function Z0(t,e){return t.setValue(rp,e)}function eM(t){return t.deleteValue(rp)}function tM(t){return t.getValue(rp)}var rp,Ls,rM=m(()=>{b();rp=Xr("OpenTelemetry SDK Context Key RPC_METADATA");(function(t){t.HTTP="http"})(Ls||(Ls={}))});var si,np=m(()=>{b();si=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:St.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}()});var Pn,op=m(()=>{b();Pn=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:St.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}()});var nM,oM=m(()=>{b();jf();np();op();nM=function(){function t(e){var n,i,a,s;this._root=e.root,this._root||(he(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Pn),this._remoteParentSampled=(n=e.remoteParentSampled)!==null&&n!==void 0?n:new Pn,this._remoteParentNotSampled=(i=e.remoteParentNotSampled)!==null&&i!==void 0?i:new si,this._localParentSampled=(a=e.localParentSampled)!==null&&a!==void 0?a:new Pn,this._localParentNotSampled=(s=e.localParentNotSampled)!==null&&s!==void 0?s:new si}return t.prototype.shouldSample=function(e,n,i,a,s,o){var r=X.getSpanContext(e);return!r||!_t(r)?this._root.shouldSample(e,n,i,a,s,o):r.isRemote?r.traceFlags&J.SAMPLED?this._remoteParentSampled.shouldSample(e,n,i,a,s,o):this._remoteParentNotSampled.shouldSample(e,n,i,a,s,o):r.traceFlags&J.SAMPLED?this._localParentSampled.shouldSample(e,n,i,a,s,o):this._localParentNotSampled.shouldSample(e,n,i,a,s,o)},t.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},t}()});var iM,aM=m(()=>{b();iM=function(){function t(e){e===void 0&&(e=0),this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}return t.prototype.shouldSample=function(e,n){return{decision:Ft(n)&&this._accumulate(n)<this._upperBound?St.RECORD_AND_SAMPLED:St.NOT_RECORD}},t.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},t.prototype._normalize=function(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e},t.prototype._accumulate=function(e){for(var n=0,i=0;i<e.length/8;i++){var a=i*8,s=parseInt(e.slice(a,a+8),16);n=(n^s)>>>0}return n},t}()});function vK(t,e){return function(n){return t(e(n))}}function ip(t){if(!mK(t)||yK(t)!==dK)return!1;var e=TK(t);if(e===null)return!0;var n=lM.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&sM.call(n)===hK}function mK(t){return t!=null&&typeof t=="object"}function yK(t){return t==null?t===void 0?_K:EK:kr&&kr in Object(t)?AK(t):OK(t)}function AK(t){var e=lM.call(t,kr),n=t[kr],i=!1;try{t[kr]=void 0,i=!0}catch{}var a=cM.call(t);return i&&(e?t[kr]=n:delete t[kr]),a}function OK(t){return cM.call(t)}var dK,EK,_K,SK,sM,hK,TK,uM,lM,kr,cM,fM=m(()=>{dK="[object Object]",EK="[object Null]",_K="[object Undefined]",SK=Function.prototype,sM=SK.toString,hK=sM.call(Object),TK=vK(Object.getPrototypeOf,Object),uM=Object.prototype,lM=uM.hasOwnProperty,kr=Symbol?Symbol.toStringTag:void 0,cM=uM.toString});function ws(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t.shift(),i=new WeakMap;t.length>0;)n=dM(n,t.shift(),0,i);return n}function ap(t){return Cs(t)?t.slice():t}function dM(t,e,n,i){n===void 0&&(n=0);var a;if(!(n>gK)){if(n++,Is(t)||Is(e)||EM(e))a=ap(e);else if(Cs(t)){if(a=t.slice(),Cs(e))for(var s=0,o=e.length;s<o;s++)a.push(ap(e[s]));else if(ui(e))for(var r=Object.keys(e),s=0,o=r.length;s<o;s++){var u=r[s];a[u]=ap(e[u])}}else if(ui(t))if(ui(e)){if(!NK(t,e))return e;a=Object.assign({},t);for(var r=Object.keys(e),s=0,o=r.length;s<o;s++){var u=r[s],l=e[u];if(Is(l))typeof l>"u"?delete a[u]:a[u]=l;else{var c=a[u],p=l;if(pM(t,u,i)||pM(e,u,i))delete a[u];else{if(ui(c)&&ui(p)){var _=i.get(c)||[],f=i.get(p)||[];_.push({obj:t,key:u}),f.push({obj:e,key:u}),i.set(c,_),i.set(p,f)}a[u]=dM(a[u],l,n,i)}}}}else a=e;return a}}function pM(t,e,n){for(var i=n.get(t[e])||[],a=0,s=i.length;a<s;a++){var o=i[a];if(o.key===e&&o.obj===t)return!0}return!1}function Cs(t){return Array.isArray(t)}function EM(t){return typeof t=="function"}function ui(t){return!Is(t)&&!Cs(t)&&!EM(t)&&typeof t=="object"}function Is(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function NK(t,e){return!(!ip(t)||!ip(e))}var gK,_M=m(()=>{fM();gK=20});function SM(t,e){var n,i=new Promise(function(s,o){n=setTimeout(function(){o(new sp("Operation timed out."))},e)});return Promise.race([t,i]).then(function(a){return clearTimeout(n),a},function(a){throw clearTimeout(n),a})}var RK,sp,hM=m(()=>{RK=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),sp=function(t){RK(e,t);function e(n){var i=t.call(this,n)||this;return Object.setPrototypeOf(i,e.prototype),i}return e}(Error)});function up(t,e){return typeof e=="string"?t===e:!!t.match(e)}function TM(t,e){var n,i;if(!e)return!1;try{for(var a=PK(e),s=a.next();!s.done;s=a.next()){var o=s.value;if(up(t,o))return!0}}catch(r){n={error:r}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return!1}var PK,vM=m(()=>{PK=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}});function mM(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}var yM=m(()=>{});var AM,OM=m(()=>{AM=function(){function t(){var e=this;this._promise=new Promise(function(n,i){e._resolve=n,e._reject=i})}return Object.defineProperty(t.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),t.prototype.resolve=function(e){this._resolve(e)},t.prototype.reject=function(e){this._reject(e)},t}()});var bK,MK,pr,gM=m(()=>{OM();bK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},MK=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},pr=function(){function t(e,n){this._callback=e,this._that=n,this._isCalled=!1,this._deferred=new AM}return Object.defineProperty(t.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),t.prototype.call=function(){for(var e,n=this,i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((e=this._callback).call.apply(e,MK([this._that],bK(i),!1))).then(function(s){return n._deferred.resolve(s)},function(s){return n._deferred.reject(s)})}catch(s){this._deferred.reject(s)}}return this._deferred.promise},t}()});function NM(t,e){return new Promise(function(n){ke.with(yn(ke.active()),function(){t.export(e,function(i){n(i)})})})}var RM=m(()=>{b();Jo()});var Us={};it(Us,{AlwaysOffSampler:()=>si,AlwaysOnSampler:()=>Pn,AnchoredClock:()=>y0,BindOnceFuture:()=>pr,CompositePropagator:()=>bs,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>Gr,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>Br,DEFAULT_ENVIRONMENT:()=>ei,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:()=>Kf,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:()=>Wf,ExportResultCode:()=>ee,ParentBasedSampler:()=>nM,RPCType:()=>Ls,RandomIdGenerator:()=>Os,SDK_INFO:()=>cr,TRACE_PARENT_HEADER:()=>ii,TRACE_STATE_HEADER:()=>ai,TimeoutError:()=>sp,TraceIdRatioBasedSampler:()=>iM,TraceState:()=>Ms,TracesSamplerValues:()=>qe,VERSION:()=>gs,W3CBaggagePropagator:()=>Ts,W3CTraceContextPropagator:()=>xs,_globalThis:()=>ms,addHrTimes:()=>oi,baggageUtils:()=>bn,callWithTimeout:()=>SM,deleteRPCMetadata:()=>eM,getEnv:()=>Ae,getEnvWithoutDefaults:()=>On,getRPCMetadata:()=>tM,getTimeOrigin:()=>Nn,globalErrorHandler:()=>he,hexToBase64:()=>ys,hexToBinary:()=>lr,hrTime:()=>ri,hrTimeDuration:()=>Rs,hrTimeToMicroseconds:()=>Nt,hrTimeToMilliseconds:()=>F0,hrTimeToNanoseconds:()=>Ps,hrTimeToTimeStamp:()=>H0,internal:()=>li,isAttributeKey:()=>Yf,isAttributeValue:()=>Zo,isTimeInput:()=>ni,isTimeInputHrTime:()=>Rn,isTracingSuppressed:()=>be,isUrlIgnored:()=>TM,isWrapped:()=>mM,loggingErrorHandler:()=>vs,merge:()=>ws,millisToHrTime:()=>Oe,otperformance:()=>tt,parseEnvironment:()=>ti,parseTraceParent:()=>tp,sanitizeAttributes:()=>ur,setGlobalErrorHandler:()=>P0,setRPCMetadata:()=>Z0,suppressTracing:()=>yn,timeInputToHrTime:()=>k0,unrefTimer:()=>fr,unsuppressTracing:()=>E0,urlMatches:()=>up});var bn,li,K=m(()=>{m0();A0();N0();jf();qf();Y0();Xf();q0();Ff();Qf();j0();Q0();rM();np();op();oM();aM();Jo();ep();zf();_M();$f();hM();vM();yM();gM();Jf();RM();bn={getKeyPairs:hs,serializeKeyPairs:Ss,parseKeyPairsIntoRecord:v0,parsePairKeyValue:Qo},li={_export:NM}});function Ds(){return"unknown_service:"+process.argv0}var PM=m(()=>{});var bM=m(()=>{PM()});var MM=m(()=>{bM()});var dr,xK,LK,IK,Bt,lp=m(()=>{b();Xo();K();MM();dr=function(){return dr=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},dr.apply(this,arguments)},xK=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},LK=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},IK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Bt=function(){function t(e,n){var i=this,a;this._attributes=e,this.asyncAttributesPending=n!=null,this._syncAttributes=(a=this._attributes)!==null&&a!==void 0?a:{},this._asyncAttributesPromise=n?.then(function(s){return i._attributes=Object.assign({},i._attributes,s),i.asyncAttributesPending=!1,s},function(s){return g.debug("a resource's async attributes promise rejected: %s",s),i.asyncAttributesPending=!1,{}})}return t.empty=function(){return t.EMPTY},t.default=function(){var e;return new t((e={},e[ds]=Ds(),e[Wo]=cr[Wo],e[Ko]=cr[Ko],e[zo]=cr[zo],e))},Object.defineProperty(t.prototype,"attributes",{get:function(){var e;return this.asyncAttributesPending&&g.error("Accessing resource attributes before async attributes settled"),(e=this._attributes)!==null&&e!==void 0?e:{}},enumerable:!1,configurable:!0}),t.prototype.waitForAsyncAttributes=function(){return xK(this,void 0,void 0,function(){return LK(this,function(e){switch(e.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})},t.prototype.merge=function(e){var n=this,i;if(!e)return this;var a=dr(dr({},this._syncAttributes),(i=e._syncAttributes)!==null&&i!==void 0?i:e.attributes);if(!this._asyncAttributesPromise&&!e._asyncAttributesPromise)return new t(a);var s=Promise.all([this._asyncAttributesPromise,e._asyncAttributesPromise]).then(function(o){var r,u=IK(o,2),l=u[0],c=u[1];return dr(dr(dr(dr({},n._syncAttributes),l),(r=e._syncAttributes)!==null&&r!==void 0?r:e.attributes),c)});return new t(a,s)},t.EMPTY=new t({}),t}()});var CK,wK,UK,cp,xM=m(()=>{b();K();Xo();lp();CK=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},wK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},UK=function(){function t(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return t.prototype.detect=function(e){var n={},i=Ae(),a=i.OTEL_RESOURCE_ATTRIBUTES,s=i.OTEL_SERVICE_NAME;if(a)try{var o=this._parseResourceAttributes(a);Object.assign(n,o)}catch(r){g.debug("EnvDetector failed: "+r.message)}return s&&(n[ds]=s),new Bt(n)},t.prototype._parseResourceAttributes=function(e){var n,i;if(!e)return{};var a={},s=e.split(this._COMMA_SEPARATOR,-1);try{for(var o=CK(s),r=o.next();!r.done;r=o.next()){var u=r.value,l=u.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(l.length===2){var c=wK(l,2),p=c[0],_=c[1];if(p=p.trim(),_=_.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(p))throw new Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(_))throw new Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);a[p]=decodeURIComponent(_)}}}catch(f){n={error:f}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return a},t.prototype._isValid=function(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)},t.prototype._isBaggageOctetString=function(e){for(var n=0;n<e.length;n++){var i=e.charCodeAt(n);if(i<33||i===44||i===59||i===92||i>126)return!1}return!0},t.prototype._isValidAndNotEmpty=function(e){return e.length>0&&this._isValid(e)},t}(),cp=new UK});var DK,Vs,LM=m(()=>{xM();DK=function(){function t(){}return t.prototype.detect=function(e){return Promise.resolve(cp.detect(e))},t}(),Vs=new DK});var IM=m(()=>{LM()});var Bs=m(()=>{lp();IM()});var ge,Gs=m(()=>{(function(t){t[t.DELTA=0]="DELTA",t[t.CUMULATIVE=1]="CUMULATIVE"})(ge||(ge={}))});var Ne,Mn=m(()=>{(function(t){t[t.HISTOGRAM=0]="HISTOGRAM",t[t.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",t[t.GAUGE=2]="GAUGE",t[t.SUM=3]="SUM"})(Ne||(Ne={}))});function UM(t){return t!=null}function DM(t){var e=Object.keys(t);return e.length===0?"":(e=e.sort(),JSON.stringify(e.map(function(n){return[n,t[n]]})))}function VM(t){var e,n;return t.name+":"+((e=t.version)!==null&&e!==void 0?e:"")+":"+((n=t.schemaUrl)!==null&&n!==void 0?n:"")}function Er(t,e){var n,i=new Promise(function(s,o){n=setTimeout(function(){o(new ci("Operation timed out."))},e)});return Promise.race([t,i]).then(function(a){return clearTimeout(n),a},function(a){throw clearTimeout(n),a})}function BM(t){return CM(this,void 0,void 0,function(){var e=this;return wM(this,function(n){return[2,Promise.all(t.map(function(i){return CM(e,void 0,void 0,function(){var a,s;return wM(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,i];case 1:return a=o.sent(),[2,{status:"fulfilled",value:a}];case 2:return s=o.sent(),[2,{status:"rejected",reason:s}];case 3:return[2]}})})}))]})})}function GM(t){return t.status==="rejected"}function fp(t,e){var n=[];return t.forEach(function(i){n.push.apply(n,GK([],BK(e(i)),!1))}),n}function kM(t,e){var n,i;if(t.size!==e.size)return!1;try{for(var a=kK(t),s=a.next();!s.done;s=a.next()){var o=s.value;if(!e.has(o))return!1}}catch(r){n={error:r}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return!0}function HM(t,e){for(var n=0,i=t.length-1,a=t.length;i>=n;){var s=n+Math.trunc((i-n)/2);t[s]<e?n=s+1:(a=s,i=s-1)}return a}function FM(t,e){return t.toLowerCase()===e.toLowerCase()}var VK,CM,wM,BK,GK,kK,ci,Rt=m(()=>{VK=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),CM=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},wM=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},BK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},GK=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},kK=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};ci=function(t){VK(e,t);function e(n){var i=t.call(this,n)||this;return Object.setPrototypeOf(i,e.prototype),i}return e}(Error)});var rt,xn=m(()=>{(function(t){t[t.DROP=0]="DROP",t[t.SUM=1]="SUM",t[t.LAST_VALUE=2]="LAST_VALUE",t[t.HISTOGRAM=3]="HISTOGRAM",t[t.EXPONENTIAL_HISTOGRAM=4]="EXPONENTIAL_HISTOGRAM"})(rt||(rt={}))});var pp,YM=m(()=>{xn();pp=function(){function t(){this.kind=rt.DROP}return t.prototype.createAccumulation=function(){},t.prototype.merge=function(e,n){},t.prototype.diff=function(e,n){},t.prototype.toMetricData=function(e,n,i,a){},t}()});function Pt(t,e,n){var i,a,s,o;return FK(t)||g.warn('Invalid metric name: "'+t+'". The metric name should be a ASCII string with a length no greater than 255 characters.'),{name:t,type:e,description:(i=n?.description)!==null&&i!==void 0?i:"",unit:(a=n?.unit)!==null&&a!==void 0?a:"",valueType:(s=n?.valueType)!==null&&s!==void 0?s:Et.DOUBLE,advice:(o=n?.advice)!==null&&o!==void 0?o:{}}}function qM(t,e){var n,i;return{name:(n=t.name)!==null&&n!==void 0?n:e.name,description:(i=t.description)!==null&&i!==void 0?i:e.description,type:e.type,unit:e.unit,valueType:e.valueType,advice:e.advice}}function jM(t,e){return FM(t.name,e.name)&&t.unit===e.unit&&t.type===e.type&&t.valueType===e.valueType}function FK(t){return t.match(HK)!=null}var C,HK,Gt=m(()=>{b();Rt();(function(t){t.COUNTER="COUNTER",t.GAUGE="GAUGE",t.HISTOGRAM="HISTOGRAM",t.UP_DOWN_COUNTER="UP_DOWN_COUNTER",t.OBSERVABLE_COUNTER="OBSERVABLE_COUNTER",t.OBSERVABLE_GAUGE="OBSERVABLE_GAUGE",t.OBSERVABLE_UP_DOWN_COUNTER="OBSERVABLE_UP_DOWN_COUNTER"})(C||(C={}));HK=/^[a-z][a-z0-9_.\-/]{0,254}$/i});function qK(t){var e=t.map(function(){return 0});return e.push(0),{buckets:{boundaries:t,counts:e},sum:0,count:0,hasMinMax:!1,min:1/0,max:-1/0}}var YK,ks,Hs,$M=m(()=>{xn();Mn();Gt();Rt();YK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s};ks=function(){function t(e,n,i,a){i===void 0&&(i=!0),a===void 0&&(a=qK(n)),this.startTime=e,this._boundaries=n,this._recordMinMax=i,this._current=a}return t.prototype.record=function(e){if(!Number.isNaN(e)){this._current.count+=1,this._current.sum+=e,this._recordMinMax&&(this._current.min=Math.min(e,this._current.min),this._current.max=Math.max(e,this._current.max),this._current.hasMinMax=!0);var n=HM(this._boundaries,e);this._current.buckets.counts[n]+=1}},t.prototype.setStartTime=function(e){this.startTime=e},t.prototype.toPointValue=function(){return this._current},t}(),Hs=function(){function t(e,n){this._boundaries=e,this._recordMinMax=n,this.kind=rt.HISTOGRAM}return t.prototype.createAccumulation=function(e){return new ks(e,this._boundaries,this._recordMinMax)},t.prototype.merge=function(e,n){for(var i=e.toPointValue(),a=n.toPointValue(),s=i.buckets.counts,o=a.buckets.counts,r=new Array(s.length),u=0;u<s.length;u++)r[u]=s[u]+o[u];var l=1/0,c=-1/0;return this._recordMinMax&&(i.hasMinMax&&a.hasMinMax?(l=Math.min(i.min,a.min),c=Math.max(i.max,a.max)):i.hasMinMax?(l=i.min,c=i.max):a.hasMinMax&&(l=a.min,c=a.max)),new ks(e.startTime,i.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:i.buckets.boundaries,counts:r},count:i.count+a.count,sum:i.sum+a.sum,hasMinMax:this._recordMinMax&&(i.hasMinMax||a.hasMinMax),min:l,max:c})},t.prototype.diff=function(e,n){for(var i=e.toPointValue(),a=n.toPointValue(),s=i.buckets.counts,o=a.buckets.counts,r=new Array(s.length),u=0;u<s.length;u++)r[u]=o[u]-s[u];return new ks(n.startTime,i.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:i.buckets.boundaries,counts:r},count:a.count-i.count,sum:a.sum-i.sum,hasMinMax:!1,min:1/0,max:-1/0})},t.prototype.toMetricData=function(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:Ne.HISTOGRAM,dataPoints:i.map(function(s){var o=YK(s,2),r=o[0],u=o[1],l=u.toPointValue(),c=e.type===C.GAUGE||e.type===C.UP_DOWN_COUNTER||e.type===C.OBSERVABLE_GAUGE||e.type===C.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:r,startTime:u.startTime,endTime:a,value:{min:l.hasMinMax?l.min:void 0,max:l.hasMinMax?l.max:void 0,sum:c?void 0:l.sum,buckets:l.buckets,count:l.count}}})}},t}()});var dp,Ep,_p,jK,KM=m(()=>{dp=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Ep=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},_p=function(){function t(e,n,i,a){e===void 0&&(e=new jK),n===void 0&&(n=0),i===void 0&&(i=0),a===void 0&&(a=0),this.backing=e,this.indexBase=n,this.indexStart=i,this.indexEnd=a}return Object.defineProperty(t.prototype,"offset",{get:function(){return this.indexStart},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this.backing.length===0||this.indexEnd===this.indexStart&&this.at(0)===0?0:this.indexEnd-this.indexStart+1},enumerable:!1,configurable:!0}),t.prototype.counts=function(){var e=this;return Array.from({length:this.length},function(n,i){return e.at(i)})},t.prototype.at=function(e){var n=this.indexBase-this.indexStart;return e<n&&(e+=this.backing.length),e-=n,this.backing.countAt(e)},t.prototype.incrementBucket=function(e,n){this.backing.increment(e,n)},t.prototype.decrementBucket=function(e,n){this.backing.decrement(e,n)},t.prototype.trim=function(){for(var e=0;e<this.length;e++)if(this.at(e)!==0){this.indexStart+=e;break}else if(e===this.length-1){this.indexStart=this.indexEnd=this.indexBase=0;return}for(var e=this.length-1;e>=0;e--)if(this.at(e)!==0){this.indexEnd-=this.length-e-1;break}this._rotate()},t.prototype.downscale=function(e){this._rotate();for(var n=1+this.indexEnd-this.indexStart,i=1<<e,a=0,s=0,o=this.indexStart;o<=this.indexEnd;){var r=o%i;r<0&&(r+=i);for(var u=r;u<i&&a<n;u++)this._relocateBucket(s,a),a++,o++;s++}this.indexStart>>=e,this.indexEnd>>=e,this.indexBase=this.indexStart},t.prototype.clone=function(){return new t(this.backing.clone(),this.indexBase,this.indexStart,this.indexEnd)},t.prototype._rotate=function(){var e=this.indexBase-this.indexStart;e!==0&&(e>0?(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,e),this.backing.reverse(e,this.backing.length)):(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,this.backing.length+e)),this.indexBase=this.indexStart)},t.prototype._relocateBucket=function(e,n){e!==n&&this.incrementBucket(e,this.backing.emptyBucket(n))},t}(),jK=function(){function t(e){e===void 0&&(e=[0]),this._counts=e}return Object.defineProperty(t.prototype,"length",{get:function(){return this._counts.length},enumerable:!1,configurable:!0}),t.prototype.countAt=function(e){return this._counts[e]},t.prototype.growTo=function(e,n,i){var a=new Array(e).fill(0);a.splice.apply(a,Ep([i,this._counts.length-n],dp(this._counts.slice(n)),!1)),a.splice.apply(a,Ep([0,n],dp(this._counts.slice(0,n)),!1)),this._counts=a},t.prototype.reverse=function(e,n){for(var i=Math.floor((e+n)/2)-e,a=0;a<i;a++){var s=this._counts[e+a];this._counts[e+a]=this._counts[n-a-1],this._counts[n-a-1]=s}},t.prototype.emptyBucket=function(e){var n=this._counts[e];return this._counts[e]=0,n},t.prototype.increment=function(e,n){this._counts[e]+=n},t.prototype.decrement=function(e,n){this._counts[e]>=n?this._counts[e]-=n:this._counts[e]=0},t.prototype.clone=function(){return new t(Ep([],dp(this._counts),!1))},t}()});function qs(t){var e=new DataView(new ArrayBuffer(8));e.setFloat64(0,t);var n=e.getUint32(0),i=(n&$K)>>20;return i-Sp}function js(t){var e=new DataView(new ArrayBuffer(8));e.setFloat64(0,t);var n=e.getUint32(0),i=e.getUint32(4),a=(n&KK)*Math.pow(2,32);return a+i}var WM,$K,KK,Sp,Fs,Ys,fi,hp=m(()=>{WM=52,$K=2146435072,KK=1048575,Sp=1023,Fs=-Sp+1,Ys=Sp,fi=Math.pow(2,-1022)});function pi(t,e){return t===0||t===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY||Number.isNaN(t)?t:t*Math.pow(2,e)}function XM(t){return t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,t++,t}var $s=m(()=>{});var WK,_r,Ks=m(()=>{WK=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),_r=function(t){WK(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Error)});var QM,ZM=m(()=>{hp();$s();Ks();QM=function(){function t(e){this._shift=-e}return t.prototype.mapToIndex=function(e){if(e<fi)return this._minNormalLowerBoundaryIndex();var n=qs(e),i=this._rightShift(js(e)-1,WM);return n+i>>this._shift},t.prototype.lowerBoundary=function(e){var n=this._minNormalLowerBoundaryIndex();if(e<n)throw new _r("underflow: "+e+" is < minimum lower boundary: "+n);var i=this._maxNormalLowerBoundaryIndex();if(e>i)throw new _r("overflow: "+e+" is > maximum lower boundary: "+i);return pi(1,e<<this._shift)},Object.defineProperty(t.prototype,"scale",{get:function(){return this._shift===0?0:-this._shift},enumerable:!1,configurable:!0}),t.prototype._minNormalLowerBoundaryIndex=function(){var e=Fs>>this._shift;return this._shift<2&&e--,e},t.prototype._maxNormalLowerBoundaryIndex=function(){return Ys>>this._shift},t.prototype._rightShift=function(e,n){return Math.floor(e*Math.pow(2,-n))},t}()});var ex,tx=m(()=>{hp();$s();Ks();ex=function(){function t(e){this._scale=e,this._scaleFactor=pi(Math.LOG2E,e),this._inverseFactor=pi(Math.LN2,-e)}return t.prototype.mapToIndex=function(e){if(e<=fi)return this._minNormalLowerBoundaryIndex()-1;if(js(e)===0){var n=qs(e);return(n<<this._scale)-1}var i=Math.floor(Math.log(e)*this._scaleFactor),a=this._maxNormalLowerBoundaryIndex();return i>=a?a:i},t.prototype.lowerBoundary=function(e){var n=this._maxNormalLowerBoundaryIndex();if(e>=n){if(e===n)return 2*Math.exp((e-(1<<this._scale))/this._scaleFactor);throw new _r("overflow: "+e+" is > maximum lower boundary: "+n)}var i=this._minNormalLowerBoundaryIndex();if(e<=i){if(e===i)return fi;if(e===i-1)return Math.exp((e+(1<<this._scale))/this._scaleFactor)/2;throw new _r("overflow: "+e+" is < minimum lower boundary: "+i)}return Math.exp(e*this._inverseFactor)},Object.defineProperty(t.prototype,"scale",{get:function(){return this._scale},enumerable:!1,configurable:!0}),t.prototype._minNormalLowerBoundaryIndex=function(){return Fs<<this._scale},t.prototype._maxNormalLowerBoundaryIndex=function(){return(Ys+1<<this._scale)-1},t}()});function Tp(t){if(t>nx||t<rx)throw new _r("expected scale >= "+rx+" && <= "+nx+", got: "+t);return zK[t+10]}var rx,nx,zK,ox=m(()=>{ZM();tx();Ks();rx=-10,nx=20,zK=Array.from({length:31},function(t,e){return e>10?new ex(e-10):new QM(e-10)})});var XK,Ws,JK,QK,vp,ix,mp,ax=m(()=>{xn();Mn();b();Gt();KM();ox();$s();XK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Ws=function(){function t(e,n){this.low=e,this.high=n}return t.combine=function(e,n){return new t(Math.min(e.low,n.low),Math.max(e.high,n.high))},t}(),JK=20,QK=160,vp=2,ix=function(){function t(e,n,i,a,s,o,r,u,l,c,p){e===void 0&&(e=e),n===void 0&&(n=QK),i===void 0&&(i=!0),a===void 0&&(a=0),s===void 0&&(s=0),o===void 0&&(o=0),r===void 0&&(r=Number.POSITIVE_INFINITY),u===void 0&&(u=Number.NEGATIVE_INFINITY),l===void 0&&(l=new _p),c===void 0&&(c=new _p),p===void 0&&(p=Tp(JK)),this.startTime=e,this._maxSize=n,this._recordMinMax=i,this._sum=a,this._count=s,this._zeroCount=o,this._min=r,this._max=u,this._positive=l,this._negative=c,this._mapping=p,this._maxSize<vp&&(g.warn("Exponential Histogram Max Size set to "+this._maxSize+", changing to the minimum size of: "+vp),this._maxSize=vp)}return t.prototype.record=function(e){this.updateByIncrement(e,1)},t.prototype.setStartTime=function(e){this.startTime=e},t.prototype.toPointValue=function(){return{hasMinMax:this._recordMinMax,min:this.min,max:this.max,sum:this.sum,positive:{offset:this.positive.offset,bucketCounts:this.positive.counts()},negative:{offset:this.negative.offset,bucketCounts:this.negative.counts()},count:this.count,scale:this.scale,zeroCount:this.zeroCount}},Object.defineProperty(t.prototype,"sum",{get:function(){return this._sum},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this._min},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this._max},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this._count},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"zeroCount",{get:function(){return this._zeroCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scale",{get:function(){return this._count===this._zeroCount?0:this._mapping.scale},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"positive",{get:function(){return this._positive},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"negative",{get:function(){return this._negative},enumerable:!1,configurable:!0}),t.prototype.updateByIncrement=function(e,n){if(!Number.isNaN(e)){if(e>this._max&&(this._max=e),e<this._min&&(this._min=e),this._count+=n,e===0){this._zeroCount+=n;return}this._sum+=e*n,e>0?this._updateBuckets(this._positive,e,n):this._updateBuckets(this._negative,-e,n)}},t.prototype.merge=function(e){this._count===0?(this._min=e.min,this._max=e.max):e.count!==0&&(e.min<this.min&&(this._min=e.min),e.max>this.max&&(this._max=e.max)),this.startTime=e.startTime,this._sum+=e.sum,this._count+=e.count,this._zeroCount+=e.zeroCount;var n=this._minScale(e);this._downscale(this.scale-n),this._mergeBuckets(this.positive,e,e.positive,n),this._mergeBuckets(this.negative,e,e.negative,n)},t.prototype.diff=function(e){this._min=1/0,this._max=-1/0,this._sum-=e.sum,this._count-=e.count,this._zeroCount-=e.zeroCount;var n=this._minScale(e);this._downscale(this.scale-n),this._diffBuckets(this.positive,e,e.positive,n),this._diffBuckets(this.negative,e,e.negative,n)},t.prototype.clone=function(){return new t(this.startTime,this._maxSize,this._recordMinMax,this._sum,this._count,this._zeroCount,this._min,this._max,this.positive.clone(),this.negative.clone(),this._mapping)},t.prototype._updateBuckets=function(e,n,i){var a=this._mapping.mapToIndex(n),s=!1,o=0,r=0;if(e.length===0?(e.indexStart=a,e.indexEnd=e.indexStart,e.indexBase=e.indexStart):a<e.indexStart&&e.indexEnd-a>=this._maxSize?(s=!0,r=a,o=e.indexEnd):a>e.indexEnd&&a-e.indexStart>=this._maxSize&&(s=!0,r=e.indexStart,o=a),s){var u=this._changeScale(o,r);this._downscale(u),a=this._mapping.mapToIndex(n)}this._incrementIndexBy(e,a,i)},t.prototype._incrementIndexBy=function(e,n,i){if(i!==0){if(e.length===0&&(e.indexStart=e.indexEnd=e.indexBase=n),n<e.indexStart){var a=e.indexEnd-n;a>=e.backing.length&&this._grow(e,a+1),e.indexStart=n}else if(n>e.indexEnd){var a=n-e.indexStart;a>=e.backing.length&&this._grow(e,a+1),e.indexEnd=n}var s=n-e.indexBase;s<0&&(s+=e.backing.length),e.incrementBucket(s,i)}},t.prototype._grow=function(e,n){var i=e.backing.length,a=e.indexBase-e.indexStart,s=i-a,o=XM(n);o>this._maxSize&&(o=this._maxSize);var r=o-a;e.backing.growTo(o,s,r)},t.prototype._changeScale=function(e,n){for(var i=0;e-n>=this._maxSize;)e>>=1,n>>=1,i++;return i},t.prototype._downscale=function(e){if(e!==0){if(e<0)throw new Error("impossible change of scale: "+this.scale);var n=this._mapping.scale-e;this._positive.downscale(e),this._negative.downscale(e),this._mapping=Tp(n)}},t.prototype._minScale=function(e){var n=Math.min(this.scale,e.scale),i=Ws.combine(this._highLowAtScale(this.positive,this.scale,n),this._highLowAtScale(e.positive,e.scale,n)),a=Ws.combine(this._highLowAtScale(this.negative,this.scale,n),this._highLowAtScale(e.negative,e.scale,n));return Math.min(n-this._changeScale(i.high,i.low),n-this._changeScale(a.high,a.low))},t.prototype._highLowAtScale=function(e,n,i){if(e.length===0)return new Ws(0,-1);var a=n-i;return new Ws(e.indexStart>>a,e.indexEnd>>a)},t.prototype._mergeBuckets=function(e,n,i,a){for(var s=i.offset,o=n.scale-a,r=0;r<i.length;r++)this._incrementIndexBy(e,s+r>>o,i.at(r))},t.prototype._diffBuckets=function(e,n,i,a){for(var s=i.offset,o=n.scale-a,r=0;r<i.length;r++){var u=s+r>>o,l=u-e.indexBase;l<0&&(l+=e.backing.length),e.decrementBucket(l,i.at(r))}e.trim()},t}(),mp=function(){function t(e,n){this._maxSize=e,this._recordMinMax=n,this.kind=rt.EXPONENTIAL_HISTOGRAM}return t.prototype.createAccumulation=function(e){return new ix(e,this._maxSize,this._recordMinMax)},t.prototype.merge=function(e,n){var i=n.clone();return i.merge(e),i},t.prototype.diff=function(e,n){var i=n.clone();return i.diff(e),i},t.prototype.toMetricData=function(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:Ne.EXPONENTIAL_HISTOGRAM,dataPoints:i.map(function(s){var o=XK(s,2),r=o[0],u=o[1],l=u.toPointValue(),c=e.type===C.GAUGE||e.type===C.UP_DOWN_COUNTER||e.type===C.OBSERVABLE_GAUGE||e.type===C.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:r,startTime:u.startTime,endTime:a,value:{min:l.hasMinMax?l.min:void 0,max:l.hasMinMax?l.max:void 0,sum:c?void 0:l.sum,positive:{offset:l.positive.offset,bucketCounts:l.positive.bucketCounts},negative:{offset:l.negative.offset,bucketCounts:l.negative.bucketCounts},count:l.count,scale:l.scale,zeroCount:l.zeroCount}}})}},t}()});var ZK,zs,yp,sx=m(()=>{xn();K();Mn();ZK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},zs=function(){function t(e,n,i){n===void 0&&(n=0),i===void 0&&(i=[0,0]),this.startTime=e,this._current=n,this.sampleTime=i}return t.prototype.record=function(e){this._current=e,this.sampleTime=Oe(Date.now())},t.prototype.setStartTime=function(e){this.startTime=e},t.prototype.toPointValue=function(){return this._current},t}(),yp=function(){function t(){this.kind=rt.LAST_VALUE}return t.prototype.createAccumulation=function(e){return new zs(e)},t.prototype.merge=function(e,n){var i=Nt(n.sampleTime)>=Nt(e.sampleTime)?n:e;return new zs(e.startTime,i.toPointValue(),i.sampleTime)},t.prototype.diff=function(e,n){var i=Nt(n.sampleTime)>=Nt(e.sampleTime)?n:e;return new zs(n.startTime,i.toPointValue(),i.sampleTime)},t.prototype.toMetricData=function(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:Ne.GAUGE,dataPoints:i.map(function(s){var o=ZK(s,2),r=o[0],u=o[1];return{attributes:r,startTime:u.startTime,endTime:a,value:u.toPointValue()}})}},t}()});var e8,Ln,Xs,ux=m(()=>{xn();Mn();e8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Ln=function(){function t(e,n,i,a){i===void 0&&(i=0),a===void 0&&(a=!1),this.startTime=e,this.monotonic=n,this._current=i,this.reset=a}return t.prototype.record=function(e){this.monotonic&&e<0||(this._current+=e)},t.prototype.setStartTime=function(e){this.startTime=e},t.prototype.toPointValue=function(){return this._current},t}(),Xs=function(){function t(e){this.monotonic=e,this.kind=rt.SUM}return t.prototype.createAccumulation=function(e){return new Ln(e,this.monotonic)},t.prototype.merge=function(e,n){var i=e.toPointValue(),a=n.toPointValue();return n.reset?new Ln(n.startTime,this.monotonic,a,n.reset):new Ln(e.startTime,this.monotonic,i+a)},t.prototype.diff=function(e,n){var i=e.toPointValue(),a=n.toPointValue();return this.monotonic&&i>a?new Ln(n.startTime,this.monotonic,a,!0):new Ln(n.startTime,this.monotonic,a-i)},t.prototype.toMetricData=function(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:Ne.SUM,dataPoints:i.map(function(s){var o=e8(s,2),r=o[0],u=o[1];return{attributes:r,startTime:u.startTime,endTime:a,value:u.toPointValue()}}),isMonotonic:this.monotonic}},t}()});var lx=m(()=>{YM();$M();ax();sx();ux()});var Hr,De,Ap,Op,gp,Np,Rp,Pp,bp,cx,fx,px,dx,t8,r8,Js=m(()=>{b();lx();Gt();Hr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),De=function(){function t(){}return t.Drop=function(){return cx},t.Sum=function(){return fx},t.LastValue=function(){return px},t.Histogram=function(){return dx},t.ExponentialHistogram=function(){return t8},t.Default=function(){return r8},t}(),Ap=function(t){Hr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createAggregator=function(n){return e.DEFAULT_INSTANCE},e.DEFAULT_INSTANCE=new pp,e}(De),Op=function(t){Hr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createAggregator=function(n){switch(n.type){case C.COUNTER:case C.OBSERVABLE_COUNTER:case C.HISTOGRAM:return e.MONOTONIC_INSTANCE;default:return e.NON_MONOTONIC_INSTANCE}},e.MONOTONIC_INSTANCE=new Xs(!0),e.NON_MONOTONIC_INSTANCE=new Xs(!1),e}(De),gp=function(t){Hr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createAggregator=function(n){return e.DEFAULT_INSTANCE},e.DEFAULT_INSTANCE=new yp,e}(De),Np=function(t){Hr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createAggregator=function(n){return e.DEFAULT_INSTANCE},e.DEFAULT_INSTANCE=new Hs([0,5,10,25,50,75,100,250,500,750,1e3,2500,5e3,7500,1e4],!0),e}(De),Rp=function(t){Hr(e,t);function e(n,i){i===void 0&&(i=!0);var a=t.call(this)||this;if(a._recordMinMax=i,n==null)throw new Error("ExplicitBucketHistogramAggregation should be created with explicit boundaries, if a single bucket histogram is required, please pass an empty array");n=n.concat(),n=n.sort(function(r,u){return r-u});var s=n.lastIndexOf(-1/0),o=n.indexOf(1/0);return o===-1&&(o=void 0),a._boundaries=n.slice(s+1,o),a}return e.prototype.createAggregator=function(n){return new Hs(this._boundaries,this._recordMinMax)},e}(De),Pp=function(t){Hr(e,t);function e(n,i){n===void 0&&(n=160),i===void 0&&(i=!0);var a=t.call(this)||this;return a._maxSize=n,a._recordMinMax=i,a}return e.prototype.createAggregator=function(n){return new mp(this._maxSize,this._recordMinMax)},e}(De),bp=function(t){Hr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype._resolve=function(n){switch(n.type){case C.COUNTER:case C.UP_DOWN_COUNTER:case C.OBSERVABLE_COUNTER:case C.OBSERVABLE_UP_DOWN_COUNTER:return fx;case C.GAUGE:case C.OBSERVABLE_GAUGE:return px;case C.HISTOGRAM:return n.advice.explicitBucketBoundaries?new Rp(n.advice.explicitBucketBoundaries):dx}return g.warn("Unable to recognize instrument type: "+n.type),cx},e.prototype.createAggregator=function(n){return this._resolve(n).createAggregator(n)},e}(De),cx=new Ap,fx=new Op,px=new gp,dx=new Np,t8=new Pp,r8=new bp});var Ex,Qs,Mp=m(()=>{Js();Gs();Ex=function(t){return De.Default()},Qs=function(t){return ge.CUMULATIVE}});var xp,Lp,_x,n8,Zs,Ip=m(()=>{b();Rt();Mp();xp=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},Lp=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},_x=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},n8=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},Zs=function(){function t(e){var n,i,a;this._shutdown=!1,this._aggregationSelector=(n=e?.aggregationSelector)!==null&&n!==void 0?n:Ex,this._aggregationTemporalitySelector=(i=e?.aggregationTemporalitySelector)!==null&&i!==void 0?i:Qs,this._metricProducers=(a=e?.metricProducers)!==null&&a!==void 0?a:[]}return t.prototype.setMetricProducer=function(e){if(this._sdkMetricProducer)throw new Error("MetricReader can not be bound to a MeterProvider again.");this._sdkMetricProducer=e,this.onInitialized()},t.prototype.selectAggregation=function(e){return this._aggregationSelector(e)},t.prototype.selectAggregationTemporality=function(e){return this._aggregationTemporalitySelector(e)},t.prototype.onInitialized=function(){},t.prototype.collect=function(e){return xp(this,void 0,void 0,function(){var n,i,a,s,o,r;return Lp(this,function(u){switch(u.label){case 0:if(this._sdkMetricProducer===void 0)throw new Error("MetricReader is not bound to a MetricProducer");if(this._shutdown)throw new Error("MetricReader is shutdown");return[4,Promise.all(n8([this._sdkMetricProducer.collect({timeoutMillis:e?.timeoutMillis})],_x(this._metricProducers.map(function(l){return l.collect({timeoutMillis:e?.timeoutMillis})})),!1))];case 1:return n=_x.apply(void 0,[u.sent()]),i=n[0],a=n.slice(1),s=i.errors.concat(fp(a,function(l){return l.errors})),o=i.resourceMetrics.resource,r=i.resourceMetrics.scopeMetrics.concat(fp(a,function(l){return l.resourceMetrics.scopeMetrics})),[2,{resourceMetrics:{resource:o,scopeMetrics:r},errors:s}]}})})},t.prototype.shutdown=function(e){return xp(this,void 0,void 0,function(){return Lp(this,function(n){switch(n.label){case 0:return this._shutdown?(g.error("Cannot call shutdown twice."),[2]):e?.timeoutMillis!=null?[3,2]:[4,this.onShutdown()];case 1:return n.sent(),[3,4];case 2:return[4,Er(this.onShutdown(),e.timeoutMillis)];case 3:n.sent(),n.label=4;case 4:return this._shutdown=!0,[2]}})})},t.prototype.forceFlush=function(e){return xp(this,void 0,void 0,function(){return Lp(this,function(n){switch(n.label){case 0:return this._shutdown?(g.warn("Cannot forceFlush on already shutdown MetricReader."),[2]):e?.timeoutMillis!=null?[3,2]:[4,this.onForceFlush()];case 1:return n.sent(),[2];case 2:return[4,Er(this.onForceFlush(),e.timeoutMillis)];case 3:return n.sent(),[2]}})})},t}()});var o8,di,Ei,i8,a8,eu,Sx=m(()=>{b();K();Ip();Rt();b();o8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),di=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},Ei=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},i8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},a8=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},eu=function(t){o8(e,t);function e(n){var i,a,s,o,r=t.call(this,{aggregationSelector:(i=n.exporter.selectAggregation)===null||i===void 0?void 0:i.bind(n.exporter),aggregationTemporalitySelector:(a=n.exporter.selectAggregationTemporality)===null||a===void 0?void 0:a.bind(n.exporter),metricProducers:n.metricProducers})||this;if(n.exportIntervalMillis!==void 0&&n.exportIntervalMillis<=0)throw Error("exportIntervalMillis must be greater than 0");if(n.exportTimeoutMillis!==void 0&&n.exportTimeoutMillis<=0)throw Error("exportTimeoutMillis must be greater than 0");if(n.exportTimeoutMillis!==void 0&&n.exportIntervalMillis!==void 0&&n.exportIntervalMillis<n.exportTimeoutMillis)throw Error("exportIntervalMillis must be greater than or equal to exportTimeoutMillis");return r._exportInterval=(s=n.exportIntervalMillis)!==null&&s!==void 0?s:6e4,r._exportTimeout=(o=n.exportTimeoutMillis)!==null&&o!==void 0?o:3e4,r._exporter=n.exporter,r}return e.prototype._runOnce=function(){return di(this,void 0,void 0,function(){var n;return Ei(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,Er(this._doRun(),this._exportTimeout)];case 1:return i.sent(),[3,3];case 2:return n=i.sent(),n instanceof ci?(g.error("Export took longer than %s milliseconds and timed out.",this._exportTimeout),[2]):(he(n),[3,3]);case 3:return[2]}})})},e.prototype._doRun=function(){var n,i;return di(this,void 0,void 0,function(){var a,s,o,r,u,l=this;return Ei(this,function(c){switch(c.label){case 0:return[4,this.collect({timeoutMillis:this._exportTimeout})];case 1:return a=c.sent(),s=a.resourceMetrics,o=a.errors,o.length>0&&(u=g).error.apply(u,a8(["PeriodicExportingMetricReader: metrics collection errors"],i8(o),!1)),r=function(){return di(l,void 0,void 0,function(){var p;return Ei(this,function(_){switch(_.label){case 0:return[4,li._export(this._exporter,s)];case 1:if(p=_.sent(),p.code!==ee.SUCCESS)throw new Error("PeriodicExportingMetricReader: metrics export failed (error "+p.error+")");return[2]}})})},s.resource.asyncAttributesPending?((i=(n=s.resource).waitForAsyncAttributes)===null||i===void 0||i.call(n).then(r,function(p){return g.debug("Error while resolving async portion of resource: ",p)}).catch(he),[3,4]):[3,2];case 2:return[4,r()];case 3:c.sent(),c.label=4;case 4:return[2]}})})},e.prototype.onInitialized=function(){var n=this;this._interval=setInterval(function(){n._runOnce()},this._exportInterval),fr(this._interval)},e.prototype.onForceFlush=function(){return di(this,void 0,void 0,function(){return Ei(this,function(n){switch(n.label){case 0:return[4,this._runOnce()];case 1:return n.sent(),[4,this._exporter.forceFlush()];case 2:return n.sent(),[2]}})})},e.prototype.onShutdown=function(){return di(this,void 0,void 0,function(){return Ei(this,function(n){switch(n.label){case 0:return this._interval&&clearInterval(this._interval),[4,this._exporter.shutdown()];case 1:return n.sent(),[2]}})})},e}(Zs)});var hx,Tx=m(()=>{K();hx=function(){function t(e){this._shutdown=!1,this._metrics=[],this._aggregationTemporality=e}return t.prototype.export=function(e,n){if(this._shutdown){setTimeout(function(){return n({code:ee.FAILED})},0);return}this._metrics.push(e),setTimeout(function(){return n({code:ee.SUCCESS})},0)},t.prototype.getMetrics=function(){return this._metrics},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype.reset=function(){this._metrics=[]},t.prototype.selectAggregationTemporality=function(e){return this._aggregationTemporality},t.prototype.shutdown=function(){return this._shutdown=!0,Promise.resolve()},t}()});var vx,mx,yx=m(()=>{K();Mp();vx=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},mx=function(){function t(e){var n;this._shutdown=!1,this._temporalitySelector=(n=e?.temporalitySelector)!==null&&n!==void 0?n:Qs}return t.prototype.export=function(e,n){if(this._shutdown){setImmediate(n,{code:ee.FAILED});return}return t._sendMetrics(e,n)},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype.selectAggregationTemporality=function(e){return this._temporalitySelector(e)},t.prototype.shutdown=function(){return this._shutdown=!0,Promise.resolve()},t._sendMetrics=function(e,n){var i,a,s,o;try{for(var r=vx(e.scopeMetrics),u=r.next();!u.done;u=r.next()){var l=u.value;try{for(var c=(s=void 0,vx(l.metrics)),p=c.next();!p.done;p=c.next()){var _=p.value;console.dir({descriptor:_.descriptor,dataPointType:_.dataPointType,dataPoints:_.dataPoints},{depth:null})}}catch(f){s={error:f}}finally{try{p&&!p.done&&(o=c.return)&&o.call(c)}finally{if(s)throw s.error}}}}catch(f){i={error:f}}finally{try{u&&!u.done&&(a=r.return)&&a.call(r)}finally{if(i)throw i.error}}n({code:ee.SUCCESS})},t}()});var Ax,Ox=m(()=>{Ax=function(){function t(){this._registeredViews=[]}return t.prototype.addView=function(e){this._registeredViews.push(e)},t.prototype.findViews=function(e,n){var i=this,a=this._registeredViews.filter(function(s){return i._matchInstrument(s.instrumentSelector,e)&&i._matchMeter(s.meterSelector,n)});return a},t.prototype._matchInstrument=function(e,n){return(e.getType()===void 0||n.type===e.getType())&&e.getNameFilter().match(n.name)&&e.getUnitFilter().match(n.unit)},t.prototype._matchMeter=function(e,n){return e.getNameFilter().match(n.name)&&(n.version===void 0||e.getVersionFilter().match(n.version))&&(n.schemaUrl===void 0||e.getSchemaUrlFilter().match(n.schemaUrl))},t}()});function _i(t){return t instanceof ru}var Fr,tu,gx,Nx,Rx,Px,ru,bx,Mx,xx,nu=m(()=>{b();K();Fr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),tu=function(){function t(e,n){this._writableMetricStorage=e,this._descriptor=n}return t.prototype._record=function(e,n,i){if(n===void 0&&(n={}),i===void 0&&(i=ke.active()),typeof e!="number"){g.warn("non-number value provided to metric "+this._descriptor.name+": "+e);return}this._descriptor.valueType===Et.INT&&!Number.isInteger(e)&&(g.warn("INT value type cannot accept a floating-point value for "+this._descriptor.name+", ignoring the fractional digits."),e=Math.trunc(e),!Number.isInteger(e))||this._writableMetricStorage.record(e,n,i,Oe(Date.now()))},t}(),gx=function(t){Fr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(n,i,a){this._record(n,i,a)},e}(tu),Nx=function(t){Fr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(n,i,a){if(n<0){g.warn("negative value provided to counter "+this._descriptor.name+": "+n);return}this._record(n,i,a)},e}(tu),Rx=function(t){Fr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(n,i,a){this._record(n,i,a)},e}(tu),Px=function(t){Fr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(n,i,a){if(n<0){g.warn("negative value provided to histogram "+this._descriptor.name+": "+n);return}this._record(n,i,a)},e}(tu),ru=function(){function t(e,n,i){this._observableRegistry=i,this._descriptor=e,this._metricStorages=n}return t.prototype.addCallback=function(e){this._observableRegistry.addCallback(e,this)},t.prototype.removeCallback=function(e){this._observableRegistry.removeCallback(e,this)},t}(),bx=function(t){Fr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(ru),Mx=function(t){Fr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(ru),xx=function(t){Fr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(ru)});var Lx,Ix=m(()=>{Gt();nu();Lx=function(){function t(e){this._meterSharedState=e}return t.prototype.createGauge=function(e,n){var i=Pt(e,C.GAUGE,n),a=this._meterSharedState.registerMetricStorage(i);return new Rx(a,i)},t.prototype.createHistogram=function(e,n){var i=Pt(e,C.HISTOGRAM,n),a=this._meterSharedState.registerMetricStorage(i);return new Px(a,i)},t.prototype.createCounter=function(e,n){var i=Pt(e,C.COUNTER,n),a=this._meterSharedState.registerMetricStorage(i);return new Nx(a,i)},t.prototype.createUpDownCounter=function(e,n){var i=Pt(e,C.UP_DOWN_COUNTER,n),a=this._meterSharedState.registerMetricStorage(i);return new gx(a,i)},t.prototype.createObservableGauge=function(e,n){var i=Pt(e,C.OBSERVABLE_GAUGE,n),a=this._meterSharedState.registerAsyncMetricStorage(i);return new Mx(i,a,this._meterSharedState.observableRegistry)},t.prototype.createObservableCounter=function(e,n){var i=Pt(e,C.OBSERVABLE_COUNTER,n),a=this._meterSharedState.registerAsyncMetricStorage(i);return new bx(i,a,this._meterSharedState.observableRegistry)},t.prototype.createObservableUpDownCounter=function(e,n){var i=Pt(e,C.OBSERVABLE_UP_DOWN_COUNTER,n),a=this._meterSharedState.registerAsyncMetricStorage(i);return new xx(i,a,this._meterSharedState.observableRegistry)},t.prototype.addBatchObservableCallback=function(e,n){this._meterSharedState.observableRegistry.addBatchCallback(e,n)},t.prototype.removeBatchObservableCallback=function(e,n){this._meterSharedState.observableRegistry.removeBatchCallback(e,n)},t}()});var ou,Cp=m(()=>{Gt();ou=function(){function t(e){this._instrumentDescriptor=e}return t.prototype.getInstrumentDescriptor=function(){return this._instrumentDescriptor},t.prototype.updateDescription=function(e){this._instrumentDescriptor=Pt(this._instrumentDescriptor.name,this._instrumentDescriptor.type,{description:e,valueType:this._instrumentDescriptor.valueType,unit:this._instrumentDescriptor.unit,advice:this._instrumentDescriptor.advice})},t}()});var s8,Cx,u8,pt,Si=m(()=>{Rt();s8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Cx=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},u8=function(){function t(e){this._hash=e,this._valueMap=new Map,this._keyMap=new Map}return t.prototype.get=function(e,n){return n??(n=this._hash(e)),this._valueMap.get(n)},t.prototype.getOrDefault=function(e,n){var i=this._hash(e);if(this._valueMap.has(i))return this._valueMap.get(i);var a=n();return this._keyMap.has(i)||this._keyMap.set(i,e),this._valueMap.set(i,a),a},t.prototype.set=function(e,n,i){i??(i=this._hash(e)),this._keyMap.has(i)||this._keyMap.set(i,e),this._valueMap.set(i,n)},t.prototype.has=function(e,n){return n??(n=this._hash(e)),this._valueMap.has(n)},t.prototype.keys=function(){var e,n;return Cx(this,function(i){switch(i.label){case 0:e=this._keyMap.entries(),n=e.next(),i.label=1;case 1:return n.done===!0?[3,3]:[4,[n.value[1],n.value[0]]];case 2:return i.sent(),n=e.next(),[3,1];case 3:return[2]}})},t.prototype.entries=function(){var e,n;return Cx(this,function(i){switch(i.label){case 0:e=this._valueMap.entries(),n=e.next(),i.label=1;case 1:return n.done===!0?[3,3]:[4,[this._keyMap.get(n.value[0]),n.value[1],n.value[0]]];case 2:return i.sent(),n=e.next(),[3,1];case 3:return[2]}})},Object.defineProperty(t.prototype,"size",{get:function(){return this._valueMap.size},enumerable:!1,configurable:!0}),t}(),pt=function(t){s8(e,t);function e(){return t.call(this,DM)||this}return e}(u8)});var l8,iu,wp=m(()=>{Si();l8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},iu=function(){function t(e){this._aggregator=e,this._activeCollectionStorage=new pt,this._cumulativeMemoStorage=new pt}return t.prototype.record=function(e,n,i,a){var s=this,o=this._activeCollectionStorage.getOrDefault(n,function(){return s._aggregator.createAccumulation(a)});o?.record(e)},t.prototype.batchCumulate=function(e,n){var i=this;Array.from(e.entries()).forEach(function(a){var s=l8(a,3),o=s[0],r=s[1],u=s[2],l=i._aggregator.createAccumulation(n);l?.record(r);var c=l;if(i._cumulativeMemoStorage.has(o,u)){var p=i._cumulativeMemoStorage.get(o,u);c=i._aggregator.diff(p,l)}if(i._activeCollectionStorage.has(o,u)){var _=i._activeCollectionStorage.get(o,u);c=i._aggregator.merge(_,c)}i._cumulativeMemoStorage.set(o,l,u),i._activeCollectionStorage.set(o,c,u)})},t.prototype.collect=function(){var e=this._activeCollectionStorage;return this._activeCollectionStorage=new pt,e},t}()});function c8(t){return Array.from(t.entries())}var Up,wx,au,Dp=m(()=>{Gs();Si();Up=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},wx=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},au=function(){function t(e,n){var i=this;this._aggregator=e,this._unreportedAccumulations=new Map,this._reportHistory=new Map,n.forEach(function(a){i._unreportedAccumulations.set(a,[])})}return t.prototype.buildMetrics=function(e,n,i,a){this._stashAccumulations(i);var s=this._getMergedUnreportedAccumulations(e),o=s,r;if(this._reportHistory.has(e)){var u=this._reportHistory.get(e),l=u.collectionTime;r=u.aggregationTemporality,r===ge.CUMULATIVE?o=t.merge(u.accumulations,s,this._aggregator):o=t.calibrateStartTime(u.accumulations,s,l)}else r=e.selectAggregationTemporality(n.type);this._reportHistory.set(e,{accumulations:o,collectionTime:a,aggregationTemporality:r});var c=c8(o);if(c.length!==0)return this._aggregator.toMetricData(n,r,c,a)},t.prototype._stashAccumulations=function(e){var n,i,a=this._unreportedAccumulations.keys();try{for(var s=Up(a),o=s.next();!o.done;o=s.next()){var r=o.value,u=this._unreportedAccumulations.get(r);u===void 0&&(u=[],this._unreportedAccumulations.set(r,u)),u.push(e)}}catch(l){n={error:l}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}},t.prototype._getMergedUnreportedAccumulations=function(e){var n,i,a=new pt,s=this._unreportedAccumulations.get(e);if(this._unreportedAccumulations.set(e,[]),s===void 0)return a;try{for(var o=Up(s),r=o.next();!r.done;r=o.next()){var u=r.value;a=t.merge(a,u,this._aggregator)}}catch(l){n={error:l}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return a},t.merge=function(e,n,i){for(var a=e,s=n.entries(),o=s.next();o.done!==!0;){var r=wx(o.value,3),u=r[0],l=r[1],c=r[2];if(e.has(u,c)){var p=e.get(u,c),_=i.merge(p,l);a.set(u,_,c)}else a.set(u,l,c);o=s.next()}return a},t.calibrateStartTime=function(e,n,i){var a,s;try{for(var o=Up(e.keys()),r=o.next();!r.done;r=o.next()){var u=wx(r.value,2),l=u[0],c=u[1],p=n.get(l,c);p?.setStartTime(i)}}catch(_){a={error:_}}finally{try{r&&!r.done&&(s=o.return)&&s.call(o)}finally{if(a)throw a.error}}return n},t}()});var f8,p8,Ux,Dx=m(()=>{Cp();wp();Dp();Si();f8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),p8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Ux=function(t){f8(e,t);function e(n,i,a,s){var o=t.call(this,n)||this;return o._attributesProcessor=a,o._deltaMetricStorage=new iu(i),o._temporalMetricStorage=new au(i,s),o}return e.prototype.record=function(n,i){var a=this,s=new pt;Array.from(n.entries()).forEach(function(o){var r=p8(o,2),u=r[0],l=r[1];s.set(a._attributesProcessor.process(u),l)}),this._deltaMetricStorage.batchCumulate(s,i)},e.prototype.collect=function(n,i){var a=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(n,this._instrumentDescriptor,a,i)},e}(ou)});function Vp(t,e){var n="";return t.unit!==e.unit&&(n+=" - Unit '"+t.unit+"' does not match '"+e.unit+`'
|
32
|
+
${A}`),S.pop(),`{${G}}`}case"number":return isFinite(f)?String(f):e?e(f):"null";case"boolean":return f===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(f);default:return e?e(f):void 0}}function c(_,f,S){switch(typeof f){case"string":return Jt(f);case"object":{if(f===null)return"null";if(typeof f.toJSON=="function"){if(f=f.toJSON(_),typeof f!="object")return c(_,f,S);if(f===null)return"null"}if(S.indexOf(f)!==-1)return n;let v="";if(Array.isArray(f)){if(f.length===0)return"[]";if(s<S.length+1)return'"[Array]"';S.push(f);let D=Math.min(f.length,o),G=0;for(;G<D-1;G++){let ae=c(String(G),f[G],S);v+=ae!==void 0?ae:"null",v+=","}let F=c(String(G),f[G],S);if(v+=F!==void 0?F:"null",f.length-1>o){let ae=f.length-o-1;v+=`,"... ${Rr(ae)} not stringified"`}return S.pop(),`[${v}]`}let T=Object.keys(f),A=T.length;if(A===0)return"{}";if(s<S.length+1)return'"[Object]"';let O="",N=Math.min(A,o);mc(f)&&(v+=Dg(f,",",o),T=T.slice(f.length),N-=f.length,O=","),a&&(T=vc(T)),S.push(f);for(let D=0;D<N;D++){let G=T[D],F=c(G,f[G],S);F!==void 0&&(v+=`${O}${Jt(G)}:${F}`,O=",")}if(A>o){let D=A-o;v+=`${O}"...":"${Rr(D)} not stringified"`}return S.pop(),`{${v}}`}case"number":return isFinite(f)?String(f):e?e(f):"null";case"boolean":return f===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(f);default:return e?e(f):void 0}}function p(_,f,S){if(arguments.length>1){let v="";if(typeof S=="number"?v=" ".repeat(Math.min(S,10)):typeof S=="string"&&(v=S.slice(0,10)),f!=null){if(typeof f=="function")return r("",{"":_},[],f,v,"");if(Array.isArray(f))return u("",_,[],bY(f),v,"")}if(v.length!==0)return l("",_,[],v,"")}return c("",_,[])}return p}});var Oc=h((dZ,kg)=>{"use strict";var xY=Fe(),{MESSAGE:LY}=fe(),IY=Ao();function CY(t,e){return typeof e=="bigint"?e.toString():e}kg.exports=xY((t,e)=>{let n=IY.configure(e);return t[LY]=n(t,e.replacer||CY,e.space),t})});var Fg=h((EZ,Hg)=>{"use strict";var wY=Fe();Hg.exports=wY((t,e)=>e.message?(t.message=`[${e.label}] ${t.message}`,t):(t.label=e.label,t))});var qg=h((_Z,Yg)=>{"use strict";var UY=Fe(),{MESSAGE:DY}=fe(),VY=Ao();Yg.exports=UY(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[DY]=VY(e),t})});var $g=h((SZ,jg)=>{"use strict";var BY=Fe();function GY(t,e,n){let i=e.reduce((s,o)=>(s[o]=t[o],delete t[o],s),{}),a=Object.keys(t).reduce((s,o)=>(s[o]=t[o],delete t[o],s),{});return Object.assign(t,i,{[n]:a}),t}function kY(t,e,n){return t[n]=e.reduce((i,a)=>(i[a]=t[a],delete t[a],i),{}),t}jg.exports=BY((t,e={})=>{let n="metadata";e.key&&(n=e.key);let i=[];return!e.fillExcept&&!e.fillWith&&(i.push("level"),i.push("message")),e.fillExcept&&(i=e.fillExcept),i.length>0?GY(t,i,n):e.fillWith?kY(t,e.fillWith,n):t})});var Wg=h((hZ,Kg)=>{var un=1e3,ln=un*60,cn=ln*60,br=cn*24,HY=br*7,FY=br*365.25;Kg.exports=function(t,e){e=e||{};var n=typeof t;if(n==="string"&&t.length>0)return YY(t);if(n==="number"&&isFinite(t))return e.long?jY(t):qY(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function YY(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),i=(e[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return n*FY;case"weeks":case"week":case"w":return n*HY;case"days":case"day":case"d":return n*br;case"hours":case"hour":case"hrs":case"hr":case"h":return n*cn;case"minutes":case"minute":case"mins":case"min":case"m":return n*ln;case"seconds":case"second":case"secs":case"sec":case"s":return n*un;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function qY(t){var e=Math.abs(t);return e>=br?Math.round(t/br)+"d":e>=cn?Math.round(t/cn)+"h":e>=ln?Math.round(t/ln)+"m":e>=un?Math.round(t/un)+"s":t+"ms"}function jY(t){var e=Math.abs(t);return e>=br?da(t,e,br,"day"):e>=cn?da(t,e,cn,"hour"):e>=ln?da(t,e,ln,"minute"):e>=un?da(t,e,un,"second"):t+" ms"}function da(t,e,n,i){var a=e>=n*1.5;return Math.round(t/n)+" "+i+(a?"s":"")}});var Xg=h((Oo,zg)=>{"use strict";var $Y=Fe(),KY=Wg();zg.exports=$Y(t=>{let e=+new Date;return Oo.diff=e-(Oo.prevTime||e),Oo.prevTime=e,t.ms=`+${KY(Oo.diff)}`,t})});var Zg=h((TZ,Qg)=>{"use strict";var WY=L("util").inspect,zY=Fe(),{LEVEL:XY,MESSAGE:Jg,SPLAT:JY}=fe();Qg.exports=zY((t,e={})=>{let n=Object.assign({},t);return delete n[XY],delete n[Jg],delete n[JY],t[Jg]=WY(n,!1,e.depth||null,e.colorize),t})});var eN=h((vZ,_a)=>{"use strict";var{MESSAGE:QY}=fe(),Ea=class{constructor(e){this.template=e}transform(e){return e[QY]=this.template(e),e}};_a.exports=t=>new Ea(t);_a.exports.Printf=_a.exports.Format=Ea});var nN=h((mZ,rN)=>{"use strict";var ZY=Fe(),{MESSAGE:tN}=fe(),eq=Ao();rN.exports=ZY(t=>{let e=eq(Object.assign({},t,{level:void 0,message:void 0,splat:void 0})),n=t.padding&&t.padding[t.level]||"";return e!=="{}"?t[tN]=`${t.level}:${n} ${t.message} ${e}`:t[tN]=`${t.level}:${n} ${t.message}`,t})});var aN=h((yZ,iN)=>{"use strict";var tq=L("util"),{SPLAT:oN}=fe(),rq=/%[scdjifoO%]/g,nq=/%%/g,gc=class{constructor(e){this.options=e}_splat(e,n){let i=e.message,a=e[oN]||e.splat||[],s=i.match(nq),o=s&&s.length||0,u=n.length-o-a.length,l=u<0?a.splice(u,-1*u):[],c=l.length;if(c)for(let p=0;p<c;p++)Object.assign(e,l[p]);return e.message=tq.format(i,...a),e}transform(e){let n=e.message,i=e[oN]||e.splat;if(!i||!i.length)return e;let a=n&&n.match&&n.match(rq);if(!a&&(i||i.length)){let s=i.length>1?i.splice(0):i,o=s.length;if(o)for(let r=0;r<o;r++)Object.assign(e,s[r]);return e}return a?this._splat(e,a):e}};iN.exports=t=>new gc(t)});var ON={};it(ON,{assign:()=>er,default:()=>fq,defaultI18n:()=>Nc,format:()=>yN,parse:()=>AN,setGlobalDateI18n:()=>vN,setGlobalDateMasks:()=>mN});function SN(t,e){for(var n=[],i=0,a=t.length;i<a;i++)n.push(t[i].substr(0,e));return n}function er(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=0,a=e;i<a.length;i++){var s=a[i];for(var o in s)t[o]=s[o]}return t}function AN(t,e,n){if(n===void 0&&(n={}),typeof e!="string")throw new Error("Invalid format in fecha parse");if(e=ha[e]||e,t.length>1e3)return null;var i=new Date,a={year:i.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},s=[],o=[],r=e.replace(_N,function(D,G){return o.push(uN(G)),"@@@"}),u={},l={};r=uN(r).replace(EN,function(D){var G=lq[D],F=G[0],ae=G[1],j=G[3];if(u[F])throw new Error("Invalid format. "+F+" specified twice in format");return u[F]=!0,j&&(l[j]=!0),s.push(G),"("+ae+")"}),Object.keys(l).forEach(function(D){if(!u[D])throw new Error("Invalid format. "+D+" is required in specified format")}),r=r.replace(/@@@/g,function(){return o.shift()});var c=t.match(new RegExp(r,"i"));if(!c)return null;for(var p=er(er({},Sa),n),_=1;_<c.length;_++){var f=s[_-1],S=f[0],v=f[2],T=v?v(c[_],p):+c[_];if(T==null)return null;a[S]=T}a.isPm===1&&a.hour!=null&&+a.hour!=12?a.hour=+a.hour+12:a.isPm===0&&+a.hour==12&&(a.hour=0);var A;if(a.timezoneOffset==null){A=new Date(a.year,a.month,a.day,a.hour,a.minute,a.second,a.millisecond);for(var O=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],_=0,N=O.length;_<N;_++)if(u[O[_][0]]&&a[O[_][0]]!==A[O[_][1]]())return null}else if(A=new Date(Date.UTC(a.year,a.month,a.day,a.hour,a.minute-a.timezoneOffset,a.second,a.millisecond)),a.month>11||a.month<0||a.day>31||a.day<1||a.hour>23||a.hour<0||a.minute>59||a.minute<0||a.second>59||a.second<0)return null;return A}var EN,Zt,Qt,oq,iq,go,_N,sN,hN,TN,aq,sq,Nc,Sa,vN,uN,Ye,uq,lN,cN,fN,pN,dN,lq,ha,mN,yN,cq,fq,gN=m(()=>{EN=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,Zt="\\d\\d?",Qt="\\d\\d",oq="\\d{3}",iq="\\d{4}",go="[^\\s]+",_N=/\[([^]*?)\]/gm;sN=function(t){return function(e,n){var i=n[t].map(function(s){return s.toLowerCase()}),a=i.indexOf(e.toLowerCase());return a>-1?a:null}};hN=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],TN=["January","February","March","April","May","June","July","August","September","October","November","December"],aq=SN(TN,3),sq=SN(hN,3),Nc={dayNamesShort:sq,dayNames:hN,monthNamesShort:aq,monthNames:TN,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=er({},Nc),vN=function(t){return Sa=er(Sa,t)},uN=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},Ye=function(t,e){for(e===void 0&&(e=2),t=String(t);t.length<e;)t="0"+t;return t},uq={D:function(t){return String(t.getDate())},DD:function(t){return Ye(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return String(t.getDay())},dd:function(t){return Ye(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 Ye(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 Ye(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return Ye(t.getFullYear(),4)},h:function(t){return String(t.getHours()%12||12)},hh:function(t){return Ye(t.getHours()%12||12)},H:function(t){return String(t.getHours())},HH:function(t){return Ye(t.getHours())},m:function(t){return String(t.getMinutes())},mm:function(t){return Ye(t.getMinutes())},s:function(t){return String(t.getSeconds())},ss:function(t){return Ye(t.getSeconds())},S:function(t){return String(Math.round(t.getMilliseconds()/100))},SS:function(t){return Ye(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return Ye(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?"-":"+")+Ye(Math.floor(Math.abs(e)/60)*100+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+Ye(Math.floor(Math.abs(e)/60),2)+":"+Ye(Math.abs(e)%60,2)}},lN=function(t){return+t-1},cN=[null,Zt],fN=[null,go],pN=["isPm",go,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],dN=["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}],lq={D:["day",Zt],DD:["day",Qt],Do:["day",Zt+go,function(t){return parseInt(t,10)}],M:["month",Zt,lN],MM:["month",Qt,lN],YY:["year",Qt,function(t){var e=new Date,n=+(""+e.getFullYear()).substr(0,2);return+(""+(+t>68?n-1:n)+t)}],h:["hour",Zt,void 0,"isPm"],hh:["hour",Qt,void 0,"isPm"],H:["hour",Zt],HH:["hour",Qt],m:["minute",Zt],mm:["minute",Qt],s:["second",Zt],ss:["second",Qt],YYYY:["year",iq],S:["millisecond","\\d",function(t){return+t*100}],SS:["millisecond",Qt,function(t){return+t*10}],SSS:["millisecond",oq],d:cN,dd:cN,ddd:fN,dddd:fN,MMM:["month",go,sN("monthNamesShort")],MMMM:["month",go,sN("monthNames")],a:pN,A:pN,ZZ:dN,Z:dN},ha={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"},mN=function(t){return er(ha,t)},yN=function(t,e,n){if(e===void 0&&(e=ha.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=ha[e]||e;var i=[];e=e.replace(_N,function(s,o){return i.push(o),"@@@"});var a=er(er({},Sa),n);return e=e.replace(EN,function(s){return uq[s](t,a)}),e.replace(/@@@/g,function(){return i.shift()})};cq={format:yN,parse:AN,defaultI18n:Nc,setGlobalDateI18n:vN,setGlobalDateMasks:mN},fq=cq});var RN=h((AZ,NN)=>{"use strict";var pq=(gN(),Y(ON)),dq=Fe();NN.exports=dq((t,e={})=>(e.format&&(t.timestamp=typeof e.format=="function"?e.format():pq.format(new Date,e.format)),t.timestamp||(t.timestamp=new Date().toISOString()),e.alias&&(t[e.alias]=t.timestamp),t))});var bN=h((OZ,PN)=>{"use strict";var Rc=sc(),Eq=Fe(),{MESSAGE:Pc}=fe();PN.exports=Eq((t,e)=>(e.level!==!1&&(t.level=Rc.strip(t.level)),e.message!==!1&&(t.message=Rc.strip(String(t.message))),e.raw!==!1&&t[Pc]&&(t[Pc]=Rc.strip(String(t[Pc]))),t))});var Mc=h(bc=>{"use strict";var _q=bc.format=Fe();bc.levels=Rg();function me(t,e){Object.defineProperty(_q,t,{get(){return e()},configurable:!0})}me("align",function(){return bg()});me("errors",function(){return Lg()});me("cli",function(){return Cg()});me("combine",function(){return Ug()});me("colorize",function(){return la()});me("json",function(){return Oc()});me("label",function(){return Fg()});me("logstash",function(){return qg()});me("metadata",function(){return $g()});me("ms",function(){return Xg()});me("padLevels",function(){return Sc()});me("prettyPrint",function(){return Zg()});me("printf",function(){return eN()});me("simple",function(){return nN()});me("splat",function(){return aN()});me("timestamp",function(){return RN()});me("uncolorize",function(){return bN()})});var xc=h(Ta=>{"use strict";var{format:MN}=L("util");Ta.warn={deprecated(t){return()=>{throw new Error(MN("{ %s } was removed in winston@3.0.0.",t))}},useFormat(t){return()=>{throw new Error([MN("{ %s } was removed in winston@3.0.0.",t),"Use a custom winston.format = winston.format(function) instead."].join(`
|
33
|
+
`))}},forFunctions(t,e,n){n.forEach(i=>{t[i]=Ta.warn[e](i)})},forProperties(t,e,n){n.forEach(i=>{let a=Ta.warn[e](i);Object.defineProperty(t,i,{get:a,set:a})})}}});var xN=h((RZ,Sq)=>{Sq.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 IN=h((PZ,LN)=>{LN.exports=L("util").deprecate});var Lc=h((bZ,CN)=>{CN.exports=L("stream")});var Cc=h((MZ,UN)=>{"use strict";function hq(t,e){var n=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(Ic,this,t)):process.nextTick(Ic,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?n._writableState?n._writableState.errorEmitted?process.nextTick(va,n):(n._writableState.errorEmitted=!0,process.nextTick(wN,n,s)):process.nextTick(wN,n,s):e?(process.nextTick(va,n),e(s)):process.nextTick(va,n)}),this)}function wN(t,e){Ic(t,e),va(t)}function va(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function Tq(){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 Ic(t,e){t.emit("error",e)}function vq(t,e){var n=t._readableState,i=t._writableState;n&&n.autoDestroy||i&&i.autoDestroy?t.destroy(e):t.emit("error",e)}UN.exports={destroy:hq,undestroy:Tq,errorOrDestroy:vq}});var tr=h((xZ,BN)=>{"use strict";var VN={};function Ze(t,e,n){n||(n=Error);function i(s,o,r){return typeof e=="string"?e:e(s,o,r)}class a extends n{constructor(o,r,u){super(i(o,r,u))}}a.prototype.name=n.name,a.prototype.code=t,VN[t]=a}function DN(t,e){if(Array.isArray(t)){let n=t.length;return t=t.map(i=>String(i)),n>2?`one of ${e} ${t.slice(0,n-1).join(", ")}, or `+t[n-1]:n===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function mq(t,e,n){return t.substr(!n||n<0?0:+n,e.length)===e}function yq(t,e,n){return(n===void 0||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}function Aq(t,e,n){return typeof n!="number"&&(n=0),n+e.length>t.length?!1:t.indexOf(e,n)!==-1}Ze("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);Ze("ERR_INVALID_ARG_TYPE",function(t,e,n){let i;typeof e=="string"&&mq(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be";let a;if(yq(t," argument"))a=`The ${t} ${i} ${DN(e,"type")}`;else{let s=Aq(t,".")?"property":"argument";a=`The "${t}" ${s} ${i} ${DN(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");BN.exports.codes=VN});var wc=h((LZ,GN)=>{"use strict";var Oq=tr().codes.ERR_INVALID_OPT_VALUE;function gq(t,e,n){return t.highWaterMark!=null?t.highWaterMark:e?t[n]:null}function Nq(t,e,n,i){var a=gq(e,i,n);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var s=i?n:"highWaterMark";throw new Oq(s,a)}return Math.floor(a)}return t.objectMode?16:16*1024}GN.exports={getHighWaterMark:Nq}});var kN=h((IZ,Uc)=>{typeof Object.create=="function"?Uc.exports=function(e,n){n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Uc.exports=function(e,n){if(n){e.super_=n;var i=function(){};i.prototype=n.prototype,e.prototype=new i,e.prototype.constructor=e}}});var fn=h((CZ,Vc)=>{try{if(Dc=L("util"),typeof Dc.inherits!="function")throw"";Vc.exports=Dc.inherits}catch{Vc.exports=kN()}var Dc});var $N=h((wZ,jN)=>{"use strict";function HN(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,i)}return n}function FN(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?HN(Object(n),!0).forEach(function(i){Rq(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):HN(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Rq(t,e,n){return e=qN(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Pq(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function YN(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,qN(i.key),i)}}function bq(t,e,n){return e&&YN(t.prototype,e),n&&YN(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function qN(t){var e=Mq(t,"string");return typeof e=="symbol"?e:String(e)}function Mq(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var xq=L("buffer"),ma=xq.Buffer,Lq=L("util"),Bc=Lq.inspect,Iq=Bc&&Bc.custom||"inspect";function Cq(t,e,n){ma.prototype.copy.call(t,e,n)}jN.exports=function(){function t(){Pq(this,t),this.head=null,this.tail=null,this.length=0}return bq(t,[{key:"push",value:function(n){var i={data:n,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(n){var i={data:n,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var n=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,n}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(n){if(this.length===0)return"";for(var i=this.head,a=""+i.data;i=i.next;)a+=n+i.data;return a}},{key:"concat",value:function(n){if(this.length===0)return ma.alloc(0);for(var i=ma.allocUnsafe(n>>>0),a=this.head,s=0;a;)Cq(a.data,i,s),s+=a.data.length,a=a.next;return i}},{key:"consume",value:function(n,i){var a;return n<this.head.data.length?(a=this.head.data.slice(0,n),this.head.data=this.head.data.slice(n)):n===this.head.data.length?a=this.shift():a=i?this._getString(n):this._getBuffer(n),a}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(n){var i=this.head,a=1,s=i.data;for(n-=s.length;i=i.next;){var o=i.data,r=n>o.length?o.length:n;if(r===o.length?s+=o:s+=o.slice(0,n),n-=r,n===0){r===o.length?(++a,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(r));break}++a}return this.length-=a,s}},{key:"_getBuffer",value:function(n){var i=ma.allocUnsafe(n),a=this.head,s=1;for(a.data.copy(i),n-=a.data.length;a=a.next;){var o=a.data,r=n>o.length?o.length:n;if(o.copy(i,i.length-n,0,r),n-=r,n===0){r===o.length?(++s,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=o.slice(r));break}++s}return this.length-=s,i}},{key:Iq,value:function(n,i){return Bc(this,FN(FN({},i),{},{depth:0,customInspect:!1}))}}]),t}()});var zN=h((Gc,WN)=>{var ya=L("buffer"),vt=ya.Buffer;function KN(t,e){for(var n in t)e[n]=t[n]}vt.from&&vt.alloc&&vt.allocUnsafe&&vt.allocUnsafeSlow?WN.exports=ya:(KN(ya,Gc),Gc.Buffer=Mr);function Mr(t,e,n){return vt(t,e,n)}Mr.prototype=Object.create(vt.prototype);KN(vt,Mr);Mr.from=function(t,e,n){if(typeof t=="number")throw new TypeError("Argument must not be a number");return vt(t,e,n)};Mr.alloc=function(t,e,n){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=vt(t);return e!==void 0?typeof n=="string"?i.fill(e,n):i.fill(e):i.fill(0),i};Mr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return vt(t)};Mr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ya.SlowBuffer(t)}});var Fc=h(JN=>{"use strict";var Hc=zN().Buffer,XN=Hc.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 wq(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 Uq(t){var e=wq(t);if(typeof e!="string"&&(Hc.isEncoding===XN||!XN(t)))throw new Error("Unknown encoding: "+t);return e||t}JN.StringDecoder=No;function No(t){this.encoding=Uq(t);var e;switch(this.encoding){case"utf16le":this.text=Hq,this.end=Fq,e=4;break;case"utf8":this.fillLast=Bq,e=4;break;case"base64":this.text=Yq,this.end=qq,e=3;break;default:this.write=jq,this.end=$q;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Hc.allocUnsafe(e)}No.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||""};No.prototype.end=kq;No.prototype.text=Gq;No.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 kc(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function Dq(t,e,n){var i=e.length-1;if(i<n)return 0;var a=kc(e[i]);return a>=0?(a>0&&(t.lastNeed=a-1),a):--i<n||a===-2?0:(a=kc(e[i]),a>=0?(a>0&&(t.lastNeed=a-2),a):--i<n||a===-2?0:(a=kc(e[i]),a>=0?(a>0&&(a===2?a=0:t.lastNeed=a-3),a):0))}function Vq(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 Bq(t){var e=this.lastTotal-this.lastNeed,n=Vq(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 Gq(t,e){var n=Dq(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var i=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function kq(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function Hq(t,e){if((t.length-e)%2===0){var n=t.toString("utf16le",e);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function Fq(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 Yq(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 qq(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function jq(t){return t.toString(this.encoding)}function $q(t){return t&&t.length?this.write(t):""}});var Aa=h((DZ,eR)=>{"use strict";var QN=tr().codes.ERR_STREAM_PREMATURE_CLOSE;function Kq(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];t.apply(this,i)}}}function Wq(){}function zq(t){return t.setHeader&&typeof t.abort=="function"}function ZN(t,e,n){if(typeof e=="function")return ZN(t,null,e);e||(e={}),n=Kq(n||Wq);var i=e.readable||e.readable!==!1&&t.readable,a=e.writable||e.writable!==!1&&t.writable,s=function(){t.writable||r()},o=t._writableState&&t._writableState.finished,r=function(){a=!1,o=!0,i||n.call(t)},u=t._readableState&&t._readableState.endEmitted,l=function(){i=!1,u=!0,a||n.call(t)},c=function(S){n.call(t,S)},p=function(){var S;if(i&&!u)return(!t._readableState||!t._readableState.ended)&&(S=new QN),n.call(t,S);if(a&&!o)return(!t._writableState||!t._writableState.ended)&&(S=new QN),n.call(t,S)},_=function(){t.req.on("finish",r)};return zq(t)?(t.on("complete",r),t.on("abort",p),t.req?_():t.on("request",_)):a&&!t._writableState&&(t.on("end",s),t.on("close",s)),t.on("end",l),t.on("finish",r),e.error!==!1&&t.on("error",c),t.on("close",p),function(){t.removeListener("complete",r),t.removeListener("abort",p),t.removeListener("request",_),t.req&&t.req.removeListener("finish",r),t.removeListener("end",s),t.removeListener("close",s),t.removeListener("finish",r),t.removeListener("end",l),t.removeListener("error",c),t.removeListener("close",p)}}eR.exports=ZN});var rR=h((VZ,tR)=>{"use strict";var Oa;function rr(t,e,n){return e=Xq(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Xq(t){var e=Jq(t,"string");return typeof e=="symbol"?e:String(e)}function Jq(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Qq=Aa(),nr=Symbol("lastResolve"),xr=Symbol("lastReject"),Ro=Symbol("error"),ga=Symbol("ended"),Lr=Symbol("lastPromise"),Yc=Symbol("handlePromise"),Ir=Symbol("stream");function or(t,e){return{value:t,done:e}}function Zq(t){var e=t[nr];if(e!==null){var n=t[Ir].read();n!==null&&(t[Lr]=null,t[nr]=null,t[xr]=null,e(or(n,!1)))}}function e5(t){process.nextTick(Zq,t)}function t5(t,e){return function(n,i){t.then(function(){if(e[ga]){n(or(void 0,!0));return}e[Yc](n,i)},i)}}var r5=Object.getPrototypeOf(function(){}),n5=Object.setPrototypeOf((Oa={get stream(){return this[Ir]},next:function(){var e=this,n=this[Ro];if(n!==null)return Promise.reject(n);if(this[ga])return Promise.resolve(or(void 0,!0));if(this[Ir].destroyed)return new Promise(function(o,r){process.nextTick(function(){e[Ro]?r(e[Ro]):o(or(void 0,!0))})});var i=this[Lr],a;if(i)a=new Promise(t5(i,this));else{var s=this[Ir].read();if(s!==null)return Promise.resolve(or(s,!1));a=new Promise(this[Yc])}return this[Lr]=a,a}},rr(Oa,Symbol.asyncIterator,function(){return this}),rr(Oa,"return",function(){var e=this;return new Promise(function(n,i){e[Ir].destroy(null,function(a){if(a){i(a);return}n(or(void 0,!0))})})}),Oa),r5),o5=function(e){var n,i=Object.create(n5,(n={},rr(n,Ir,{value:e,writable:!0}),rr(n,nr,{value:null,writable:!0}),rr(n,xr,{value:null,writable:!0}),rr(n,Ro,{value:null,writable:!0}),rr(n,ga,{value:e._readableState.endEmitted,writable:!0}),rr(n,Yc,{value:function(s,o){var r=i[Ir].read();r?(i[Lr]=null,i[nr]=null,i[xr]=null,s(or(r,!1))):(i[nr]=s,i[xr]=o)},writable:!0}),n));return i[Lr]=null,Qq(e,function(a){if(a&&a.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=i[xr];s!==null&&(i[Lr]=null,i[nr]=null,i[xr]=null,s(a)),i[Ro]=a;return}var o=i[nr];o!==null&&(i[Lr]=null,i[nr]=null,i[xr]=null,o(or(void 0,!0))),i[ga]=!0}),e.on("readable",e5.bind(null,i)),i};tR.exports=o5});var aR=h((BZ,iR)=>{"use strict";function nR(t,e,n,i,a,s,o){try{var r=t[s](o),u=r.value}catch(l){n(l);return}r.done?e(u):Promise.resolve(u).then(i,a)}function i5(t){return function(){var e=this,n=arguments;return new Promise(function(i,a){var s=t.apply(e,n);function o(u){nR(s,i,a,o,r,"next",u)}function r(u){nR(s,i,a,o,r,"throw",u)}o(void 0)})}}function oR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,i)}return n}function a5(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?oR(Object(n),!0).forEach(function(i){s5(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):oR(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function s5(t,e,n){return e=u5(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u5(t){var e=l5(t,"string");return typeof e=="symbol"?e:String(e)}function l5(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var c5=tr().codes.ERR_INVALID_ARG_TYPE;function f5(t,e,n){var i;if(e&&typeof e.next=="function")i=e;else if(e&&e[Symbol.asyncIterator])i=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])i=e[Symbol.iterator]();else throw new c5("iterable",["Iterable"],e);var a=new t(a5({objectMode:!0},n)),s=!1;a._read=function(){s||(s=!0,o())};function o(){return r.apply(this,arguments)}function r(){return r=i5(function*(){try{var u=yield i.next(),l=u.value,c=u.done;c?a.push(null):a.push(yield l)?o():s=!1}catch(p){a.destroy(p)}}),r.apply(this,arguments)}return a}iR.exports=f5});var Zc=h((kZ,SR)=>{"use strict";SR.exports=$;var pn;$.ReadableState=cR;var GZ=L("events").EventEmitter,lR=function(e,n){return e.listeners(n).length},bo=Lc(),Na=L("buffer").Buffer,p5=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function d5(t){return Na.from(t)}function E5(t){return Na.isBuffer(t)||t instanceof p5}var qc=L("util"),k;qc&&qc.debuglog?k=qc.debuglog("stream"):k=function(){};var _5=$N(),Jc=Cc(),S5=wc(),h5=S5.getHighWaterMark,Ra=tr().codes,T5=Ra.ERR_INVALID_ARG_TYPE,v5=Ra.ERR_STREAM_PUSH_AFTER_EOF,m5=Ra.ERR_METHOD_NOT_IMPLEMENTED,y5=Ra.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,dn,jc,$c;fn()($,bo);var Po=Jc.errorOrDestroy,Kc=["error","close","destroy","pause","resume"];function A5(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 cR(t,e,n){pn=pn||Cr(),t=t||{},typeof n!="boolean"&&(n=e instanceof pn),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=h5(this,t,"readableHighWaterMark",n),this.buffer=new _5,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(dn||(dn=Fc().StringDecoder),this.decoder=new dn(t.encoding),this.encoding=t.encoding)}function $(t){if(pn=pn||Cr(),!(this instanceof $))return new $(t);var e=this instanceof pn;this._readableState=new cR(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),bo.call(this)}Object.defineProperty($.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});$.prototype.destroy=Jc.destroy;$.prototype._undestroy=Jc.undestroy;$.prototype._destroy=function(t,e){e(t)};$.prototype.push=function(t,e){var n=this._readableState,i;return n.objectMode?i=!0:typeof t=="string"&&(e=e||n.defaultEncoding,e!==n.encoding&&(t=Na.from(t,e),e=""),i=!0),fR(this,t,e,!1,i)};$.prototype.unshift=function(t){return fR(this,t,null,!0,!1)};function fR(t,e,n,i,a){k("readableAddChunk",e);var s=t._readableState;if(e===null)s.reading=!1,N5(t,s);else{var o;if(a||(o=O5(s,e)),o)Po(t,o);else if(s.objectMode||e&&e.length>0)if(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==Na.prototype&&(e=d5(e)),i)s.endEmitted?Po(t,new y5):Wc(t,s,e,!0);else if(s.ended)Po(t,new v5);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!n?(e=s.decoder.write(e),s.objectMode||e.length!==0?Wc(t,s,e,!1):Xc(t,s)):Wc(t,s,e,!1)}else i||(s.reading=!1,Xc(t,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function Wc(t,e,n,i){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",n)):(e.length+=e.objectMode?1:n.length,i?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&Pa(t)),Xc(t,e)}function O5(t,e){var n;return!E5(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(n=new T5("chunk",["string","Buffer","Uint8Array"],e)),n}$.prototype.isPaused=function(){return this._readableState.flowing===!1};$.prototype.setEncoding=function(t){dn||(dn=Fc().StringDecoder);var e=new dn(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";n!==null;)i+=e.write(n.data),n=n.next;return this._readableState.buffer.clear(),i!==""&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var sR=1073741824;function g5(t){return t>=sR?t=sR:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function uR(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=g5(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}$.prototype.read=function(t){k("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return k("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?zc(this):Pa(this),null;if(t=uR(t,e),t===0&&e.ended)return e.length===0&&zc(this),null;var i=e.needReadable;k("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,k("length less than watermark",i)),e.ended||e.reading?(i=!1,k("reading or ended",i)):i&&(k("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=uR(n,e)));var a;return t>0?a=ER(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&&zc(this)),a!==null&&this.emit("data",a),a};function N5(t,e){if(k("onEofChunk"),!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,e.sync?Pa(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,pR(t)))}}function Pa(t){var e=t._readableState;k("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(k("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(pR,t))}function pR(t){var e=t._readableState;k("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,Qc(t)}function Xc(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(R5,t,e))}function R5(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var n=e.length;if(k("maybeReadMore read 0"),t.read(0),n===e.length)break}e.readingMore=!1}$.prototype._read=function(t){Po(this,new m5("_read()"))};$.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,k("pipe count=%d opts=%j",i.pipesCount,e);var a=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=a?r:v;i.endEmitted?process.nextTick(s):n.once("end",s),t.on("unpipe",o);function o(T,A){k("onunpipe"),T===n&&A&&A.hasUnpiped===!1&&(A.hasUnpiped=!0,c())}function r(){k("onend"),t.end()}var u=P5(n);t.on("drain",u);var l=!1;function c(){k("cleanup"),t.removeListener("close",f),t.removeListener("finish",S),t.removeListener("drain",u),t.removeListener("error",_),t.removeListener("unpipe",o),n.removeListener("end",r),n.removeListener("end",v),n.removeListener("data",p),l=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&u()}n.on("data",p);function p(T){k("ondata");var A=t.write(T);k("dest.write",A),A===!1&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&_R(i.pipes,t)!==-1)&&!l&&(k("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function _(T){k("onerror",T),v(),t.removeListener("error",_),lR(t,"error")===0&&Po(t,T)}A5(t,"error",_);function f(){t.removeListener("finish",S),v()}t.once("close",f);function S(){k("onfinish"),t.removeListener("close",f),v()}t.once("finish",S);function v(){k("unpipe"),n.unpipe(t)}return t.emit("pipe",n),i.flowing||(k("pipe resume"),n.resume()),t};function P5(t){return function(){var n=t._readableState;k("pipeOnDrain",n.awaitDrain),n.awaitDrain&&n.awaitDrain--,n.awaitDrain===0&&lR(t,"data")&&(n.flowing=!0,Qc(t))}}$.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n),this);if(!t){var i=e.pipes,a=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<a;s++)i[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=_R(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n),this)};$.prototype.on=function(t,e){var n=bo.prototype.on.call(this,t,e),i=this._readableState;return t==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):t==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,k("on readable",i.length,i.reading),i.length?Pa(this):i.reading||process.nextTick(b5,this)),n};$.prototype.addListener=$.prototype.on;$.prototype.removeListener=function(t,e){var n=bo.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(dR,this),n};$.prototype.removeAllListeners=function(t){var e=bo.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(dR,this),e};function dR(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 b5(t){k("readable nexttick read 0"),t.read(0)}$.prototype.resume=function(){var t=this._readableState;return t.flowing||(k("resume"),t.flowing=!t.readableListening,M5(this,t)),t.paused=!1,this};function M5(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(x5,t,e))}function x5(t,e){k("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),Qc(t),e.flowing&&!e.reading&&t.read(0)}$.prototype.pause=function(){return k("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(k("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Qc(t){var e=t._readableState;for(k("flow",e.flowing);e.flowing&&t.read()!==null;);}$.prototype.wrap=function(t){var e=this,n=this._readableState,i=!1;t.on("end",function(){if(k("wrapped end"),n.decoder&&!n.ended){var o=n.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),t.on("data",function(o){if(k("wrapped data"),n.decoder&&(o=n.decoder.write(o)),!(n.objectMode&&o==null)&&!(!n.objectMode&&(!o||!o.length))){var r=e.push(o);r||(i=!0,t.pause())}});for(var a in t)this[a]===void 0&&typeof t[a]=="function"&&(this[a]=function(r){return function(){return t[r].apply(t,arguments)}}(a));for(var s=0;s<Kc.length;s++)t.on(Kc[s],this.emit.bind(this,Kc[s]));return this._read=function(o){k("wrapped _read",o),i&&(i=!1,t.resume())},this};typeof Symbol=="function"&&($.prototype[Symbol.asyncIterator]=function(){return jc===void 0&&(jc=rR()),jc(this)});Object.defineProperty($.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty($.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty($.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});$._fromList=ER;Object.defineProperty($.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function ER(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 zc(t){var e=t._readableState;k("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(L5,e,t))}function L5(t,e){if(k("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}typeof Symbol=="function"&&($.from=function(t,e){return $c===void 0&&($c=aR()),$c($,t,e)});function _R(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1}});var Cr=h((HZ,TR)=>{"use strict";var I5=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};TR.exports=mt;var hR=Zc(),tf=xa();fn()(mt,hR);for(ef=I5(tf.prototype),ba=0;ba<ef.length;ba++)Ma=ef[ba],mt.prototype[Ma]||(mt.prototype[Ma]=tf.prototype[Ma]);var ef,Ma,ba;function mt(t){if(!(this instanceof mt))return new mt(t);hR.call(this,t),tf.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",C5)))}Object.defineProperty(mt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(mt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(mt.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function C5(){this._writableState.ended||process.nextTick(w5,this)}function w5(t){t.end()}Object.defineProperty(mt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var xa=h((FZ,gR)=>{"use strict";gR.exports=ue;function mR(t){var e=this;this.next=null,this.entry=null,this.finish=function(){sj(e,t)}}var En;ue.WritableState=xo;var U5={deprecate:IN()},yR=Lc(),Ia=L("buffer").Buffer,D5=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function V5(t){return Ia.from(t)}function B5(t){return Ia.isBuffer(t)||t instanceof D5}var nf=Cc(),G5=wc(),k5=G5.getHighWaterMark,ir=tr().codes,H5=ir.ERR_INVALID_ARG_TYPE,F5=ir.ERR_METHOD_NOT_IMPLEMENTED,Y5=ir.ERR_MULTIPLE_CALLBACK,q5=ir.ERR_STREAM_CANNOT_PIPE,j5=ir.ERR_STREAM_DESTROYED,$5=ir.ERR_STREAM_NULL_VALUES,K5=ir.ERR_STREAM_WRITE_AFTER_END,W5=ir.ERR_UNKNOWN_ENCODING,_n=nf.errorOrDestroy;fn()(ue,yR);function z5(){}function xo(t,e,n){En=En||Cr(),t=t||{},typeof n!="boolean"&&(n=e instanceof En),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=k5(this,t,"writableHighWaterMark",n),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=t.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){rj(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 mR(this)}xo.prototype.getBuffer=function(){for(var e=this.bufferedRequest,n=[];e;)n.push(e),e=e.next;return n};(function(){try{Object.defineProperty(xo.prototype,"buffer",{get:U5.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var La;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(La=Function.prototype[Symbol.hasInstance],Object.defineProperty(ue,Symbol.hasInstance,{value:function(e){return La.call(this,e)?!0:this!==ue?!1:e&&e._writableState instanceof xo}})):La=function(e){return e instanceof this};function ue(t){En=En||Cr();var e=this instanceof En;if(!e&&!La.call(ue,this))return new ue(t);this._writableState=new xo(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)),yR.call(this)}ue.prototype.pipe=function(){_n(this,new q5)};function X5(t,e){var n=new K5;_n(t,n),process.nextTick(e,n)}function J5(t,e,n,i){var a;return n===null?a=new $5:typeof n!="string"&&!e.objectMode&&(a=new H5("chunk",["string","Buffer"],n)),a?(_n(t,a),process.nextTick(i,a),!1):!0}ue.prototype.write=function(t,e,n){var i=this._writableState,a=!1,s=!i.objectMode&&B5(t);return s&&!Ia.isBuffer(t)&&(t=V5(t)),typeof e=="function"&&(n=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),typeof n!="function"&&(n=z5),i.ending?X5(this,n):(s||J5(this,i,t,n))&&(i.pendingcb++,a=Z5(this,i,s,t,e,n)),a};ue.prototype.cork=function(){this._writableState.corked++};ue.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&AR(this,t))};ue.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new W5(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(ue.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Q5(t,e,n){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=Ia.from(e,n)),e}Object.defineProperty(ue.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Z5(t,e,n,i,a,s){if(!n){var o=Q5(e,i,a);i!==o&&(n=!0,a="buffer",i=o)}var r=e.objectMode?1:i.length;e.length+=r;var u=e.length<e.highWaterMark;if(u||(e.needDrain=!0),e.writing||e.corked){var l=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:a,isBuf:n,callback:s,next:null},l?l.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else rf(t,e,!1,r,i,a,s);return u}function rf(t,e,n,i,a,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new j5("write")):n?t._writev(a,e.onwrite):t._write(a,s,e.onwrite),e.sync=!1}function ej(t,e,n,i,a){--e.pendingcb,n?(process.nextTick(a,i),process.nextTick(Mo,t,e),t._writableState.errorEmitted=!0,_n(t,i)):(a(i),t._writableState.errorEmitted=!0,_n(t,i),Mo(t,e))}function tj(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function rj(t,e){var n=t._writableState,i=n.sync,a=n.writecb;if(typeof a!="function")throw new Y5;if(tj(n),e)ej(t,n,i,e,a);else{var s=OR(n)||t.destroyed;!s&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest&&AR(t,n),i?process.nextTick(vR,t,n,s,a):vR(t,n,s,a)}}function vR(t,e,n,i){n||nj(t,e),e.pendingcb--,i(),Mo(t,e)}function nj(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function AR(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var i=e.bufferedRequestCount,a=new Array(i),s=e.corkedRequestsFree;s.entry=n;for(var o=0,r=!0;n;)a[o]=n,n.isBuf||(r=!1),n=n.next,o+=1;a.allBuffers=r,rf(t,e,!0,e.length,a,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new mR(e),e.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,l=n.encoding,c=n.callback,p=e.objectMode?1:u.length;if(rf(t,e,!1,p,u,l,c),n=n.next,e.bufferedRequestCount--,e.writing)break}n===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}ue.prototype._write=function(t,e,n){n(new F5("_write()"))};ue.prototype._writev=null;ue.prototype.end=function(t,e,n){var i=this._writableState;return typeof t=="function"?(n=t,t=null,e=null):typeof e=="function"&&(n=e,e=null),t!=null&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||aj(this,i,n),this};Object.defineProperty(ue.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function OR(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function oj(t,e){t._final(function(n){e.pendingcb--,n&&_n(t,n),e.prefinished=!0,t.emit("prefinish"),Mo(t,e)})}function ij(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(oj,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Mo(t,e){var n=OR(e);if(n&&(ij(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var i=t._readableState;(!i||i.autoDestroy&&i.endEmitted)&&t.destroy()}return n}function aj(t,e,n){e.ending=!0,Mo(t,e),n&&(e.finished?process.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}function sj(t,e,n){var i=t.entry;for(t.entry=null;i;){var a=i.callback;e.pendingcb--,a(n),i=i.next}e.corkedRequestsFree.next=t}Object.defineProperty(ue.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});ue.prototype.destroy=nf.destroy;ue.prototype._undestroy=nf.undestroy;ue.prototype._destroy=function(t,e){e(t)}});var of=h((YZ,PR)=>{"use strict";var uj=L("util"),NR=xa(),{LEVEL:RR}=fe(),Lo=PR.exports=function(e={}){NR.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())})};uj.inherits(Lo,NR);Lo.prototype._write=function(e,n,i){if(this.silent||e.exception===!0&&!this.handleExceptions)return i(null);let a=this.level||this.parent&&this.parent.level;if(!a||this.levels[a]>=this.levels[e[RR]]){if(e&&!this.format)return this.log(e,i);let s,o;try{o=this.format.transform(Object.assign({},e),this.format.options)}catch(r){s=r}if(s||!o){if(i(),s)throw s;return}return this.log(o,i)}return this._writableState.sync=!1,i(null)};Lo.prototype._writev=function(e,n){if(this.logv){let i=e.filter(this._accept,this);return i.length?this.logv(i,n):n(null)}for(let i=0;i<e.length;i++){if(!this._accept(e[i]))continue;if(e[i].chunk&&!this.format){this.log(e[i].chunk,e[i].callback);continue}let a,s;try{s=this.format.transform(Object.assign({},e[i].chunk),this.format.options)}catch(o){a=o}if(a||!s){if(e[i].callback(),a)throw n(null),a}else this.log(s,e[i].callback)}return n(null)};Lo.prototype._accept=function(e){let n=e.chunk;if(this.silent)return!1;let i=this.level||this.parent&&this.parent.level;return!!((n.exception===!0||!i||this.levels[i]>=this.levels[n[RR]])&&(this.handleExceptions||n.exception!==!0))};Lo.prototype._nop=function(){}});var sf=h((qZ,MR)=>{"use strict";var lj=L("util"),{LEVEL:af}=fe(),bR=of(),Io=MR.exports=function(e={}){if(bR.call(this,e),!e.transport||typeof e.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=e.transport,this.level=this.level||e.transport.level,this.handleExceptions=this.handleExceptions||e.transport.handleExceptions,this._deprecated();function n(i){this.emit("error",i,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=n.bind(this),this.transport.on("error",this.transport.__winstonError))};lj.inherits(Io,bR);Io.prototype._write=function(e,n,i){if(this.silent||e.exception===!0&&!this.handleExceptions)return i(null);(!this.level||this.levels[this.level]>=this.levels[e[af]])&&this.transport.log(e[af],e.message,e,this._nop),i(null)};Io.prototype._writev=function(e,n){for(let i=0;i<e.length;i++)this._accept(e[i])&&(this.transport.log(e[i].chunk[af],e[i].chunk.message,e[i].chunk,this._nop),e[i].callback());return n(null)};Io.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
|
+
`))};Io.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)}});var Sn=h((jZ,uf)=>{"use strict";uf.exports=of();uf.exports.LegacyTransportStream=sf()});var IR=h((KZ,LR)=>{"use strict";var cj=L("os"),{LEVEL:xR,MESSAGE:hn}=fe(),fj=Sn();LR.exports=class extends fj{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:cj.EOL,this.setMaxListeners(30)}log(e,n){if(setImmediate(()=>this.emit("logged",e)),this.stderrLevels[e[xR]]){console._stderr?console._stderr.write(`${e[hn]}${this.eol}`):console.error(e[hn]),n&&n();return}else if(this.consoleWarnLevels[e[xR]]){console._stderr?console._stderr.write(`${e[hn]}${this.eol}`):console.warn(e[hn]),n&&n();return}console._stdout?console._stdout.write(`${e[hn]}${this.eol}`):console.log(e[hn]),n&&n()}_stringArrayToSet(e,n){if(!e)return{};if(n=n||"Cannot make set from type other than Array of string elements",!Array.isArray(e))throw new Error(n);return e.reduce((i,a)=>{if(typeof a!="string")throw new Error(n);return i[a]=!0,i},{})}}});var wa=h((Ca,CR)=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.default=pj;function pj(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}CR.exports=Ca.default});var UR=h((Ua,wR)=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.default=function(t){return function(...e){var n=e.pop();return t.call(this,e,n)}};wR.exports=Ua.default});var BR=h(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.fallback=DR;ar.wrap=VR;var dj=ar.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,Ej=ar.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,_j=ar.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function DR(t){setTimeout(t,0)}function VR(t){return(e,...n)=>t(()=>e(...n))}var Co;dj?Co=queueMicrotask:Ej?Co=setImmediate:_j?Co=process.nextTick:Co=DR;ar.default=VR(Co)});var YR=h((Da,FR)=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.default=yj;var Sj=UR(),hj=HR(Sj),Tj=BR(),vj=HR(Tj),mj=wr();function HR(t){return t&&t.__esModule?t:{default:t}}function yj(t){return(0,mj.isAsync)(t)?function(...e){let n=e.pop(),i=t.apply(this,e);return GR(i,n)}:(0,hj.default)(function(e,n){var i;try{i=t.apply(this,e)}catch(a){return n(a)}if(i&&typeof i.then=="function")return GR(i,n);n(null,i)})}function GR(t,e){return t.then(n=>{kR(e,null,n)},n=>{kR(e,n&&(n instanceof Error||n.message)?n:new Error(n))})}function kR(t,e,n){try{t(e,n)}catch(i){(0,vj.default)(a=>{throw a},i)}}FR.exports=Da.default});var wr=h(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.isAsyncIterable=Dt.isAsyncGenerator=Dt.isAsync=void 0;var Aj=YR(),Oj=gj(Aj);function gj(t){return t&&t.__esModule?t:{default:t}}function qR(t){return t[Symbol.toStringTag]==="AsyncFunction"}function Nj(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function Rj(t){return typeof t[Symbol.asyncIterator]=="function"}function Pj(t){if(typeof t!="function")throw new Error("expected a function");return qR(t)?(0,Oj.default)(t):t}Dt.default=Pj;Dt.isAsync=qR;Dt.isAsyncGenerator=Nj;Dt.isAsyncIterable=Rj});var Tn=h((Va,jR)=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.default=bj;function bj(t,e){if(e||(e=t.length),!e)throw new Error("arity is undefined");function n(...i){return typeof i[e-1]=="function"?t.apply(this,i):new Promise((a,s)=>{i[e-1]=(o,...r)=>{if(o)return s(o);a(r.length>1?r:r[0])},t.apply(this,i)})}return n}jR.exports=Va.default});var KR=h((Ba,$R)=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});var Mj=wa(),xj=lf(Mj),Lj=wr(),Ij=lf(Lj),Cj=Tn(),wj=lf(Cj);function lf(t){return t&&t.__esModule?t:{default:t}}Ba.default=(0,wj.default)((t,e,n)=>{var i=(0,xj.default)(e)?[]:{};t(e,(a,s,o)=>{(0,Ij.default)(a)((r,...u)=>{u.length<2&&([u]=u),i[s]=u,o(r)})},a=>n(a,i))},3);$R.exports=Ba.default});var cf=h((Ga,WR)=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.default=Uj;function Uj(t){function e(...n){if(t!==null){var i=t;t=null,i.apply(this,n)}}return Object.assign(e,t),e}WR.exports=Ga.default});var XR=h((ka,zR)=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()};zR.exports=ka.default});var ZR=h((Ha,QR)=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});Ha.default=Yj;var Dj=wa(),Vj=JR(Dj),Bj=XR(),Gj=JR(Bj);function JR(t){return t&&t.__esModule?t:{default:t}}function kj(t){var e=-1,n=t.length;return function(){return++e<n?{value:t[e],key:e}:null}}function Hj(t){var e=-1;return function(){var i=t.next();return i.done?null:(e++,{value:i.value,key:e})}}function Fj(t){var e=t?Object.keys(t):[],n=-1,i=e.length;return function a(){var s=e[++n];return s==="__proto__"?a():n<i?{value:t[s],key:s}:null}}function Yj(t){if((0,Vj.default)(t))return kj(t);var e=(0,Gj.default)(t);return e?Hj(e):Fj(t)}QR.exports=Ha.default});var ff=h((Fa,eP)=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.default=qj;function qj(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var n=t;t=null,n.apply(this,e)}}eP.exports=Fa.default});var qa=h((Ya,tP)=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});var jj={};Ya.default=jj;tP.exports=Ya.default});var nP=h((ja,rP)=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});ja.default=zj;var $j=qa(),Kj=Wj($j);function Wj(t){return t&&t.__esModule?t:{default:t}}function zj(t,e,n,i){let a=!1,s=!1,o=!1,r=0,u=0;function l(){r>=e||o||a||(o=!0,t.next().then(({value:_,done:f})=>{if(!(s||a)){if(o=!1,f){a=!0,r<=0&&i(null);return}r++,n(_,u,c),u++,l()}}).catch(p))}function c(_,f){if(r-=1,!s){if(_)return p(_);if(_===!1){a=!0,s=!0;return}if(f===Kj.default||a&&r<=0)return a=!0,i(null);l()}}function p(_){s||(o=!1,a=!0,i(_))}l()}rP.exports=ja.default});var sP=h(($a,aP)=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});var Xj=cf(),Jj=wo(Xj),Qj=ZR(),Zj=wo(Qj),e4=ff(),t4=wo(e4),oP=wr(),r4=nP(),iP=wo(r4),n4=qa(),o4=wo(n4);function wo(t){return t&&t.__esModule?t:{default:t}}$a.default=t=>(e,n,i)=>{if(i=(0,Jj.default)(i),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return i(null);if((0,oP.isAsyncGenerator)(e))return(0,iP.default)(e,t,n,i);if((0,oP.isAsyncIterable)(e))return(0,iP.default)(e[Symbol.asyncIterator](),t,n,i);var a=(0,Zj.default)(e),s=!1,o=!1,r=0,u=!1;function l(p,_){if(!o)if(r-=1,p)s=!0,i(p);else if(p===!1)s=!0,o=!0;else{if(_===o4.default||s&&r<=0)return s=!0,i(null);u||c()}}function c(){for(u=!0;r<t&&!s;){var p=a();if(p===null){s=!0,r<=0&&i(null);return}r+=1,n(p.value,p.key,(0,t4.default)(l))}u=!1}c()};aP.exports=$a.default});var df=h((Ka,uP)=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});var i4=sP(),a4=pf(i4),s4=wr(),u4=pf(s4),l4=Tn(),c4=pf(l4);function pf(t){return t&&t.__esModule?t:{default:t}}function f4(t,e,n,i){return(0,a4.default)(e)(t,(0,u4.default)(n),i)}Ka.default=(0,c4.default)(f4,4);uP.exports=Ka.default});var fP=h((Wa,cP)=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});var p4=df(),d4=lP(p4),E4=Tn(),_4=lP(E4);function lP(t){return t&&t.__esModule?t:{default:t}}function S4(t,e,n){return(0,d4.default)(t,1,e,n)}Wa.default=(0,_4.default)(S4,3);cP.exports=Wa.default});var EP=h((za,dP)=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.default=y4;var h4=KR(),T4=pP(h4),v4=fP(),m4=pP(v4);function pP(t){return t&&t.__esModule?t:{default:t}}function y4(t,e){return(0,T4.default)(m4.default,t,e)}dP.exports=za.default});var Ef=h((XZ,SP)=>{"use strict";SP.exports=Vt;var Xa=tr().codes,A4=Xa.ERR_METHOD_NOT_IMPLEMENTED,O4=Xa.ERR_MULTIPLE_CALLBACK,g4=Xa.ERR_TRANSFORM_ALREADY_TRANSFORMING,N4=Xa.ERR_TRANSFORM_WITH_LENGTH_0,Ja=Cr();fn()(Vt,Ja);function R4(t,e){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(i===null)return this.emit("error",new O4);n.writechunk=null,n.writecb=null,e!=null&&this.push(e),i(t);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function Vt(t){if(!(this instanceof Vt))return new Vt(t);Ja.call(this,t),this._transformState={afterTransform:R4.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",P4)}function P4(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,n){_P(t,e,n)}):_P(this,null,null)}Vt.prototype.push=function(t,e){return this._transformState.needTransform=!1,Ja.prototype.push.call(this,t,e)};Vt.prototype._transform=function(t,e,n){n(new A4("_transform()"))};Vt.prototype._write=function(t,e,n){var i=this._transformState;if(i.writecb=n,i.writechunk=t,i.writeencoding=e,!i.transforming){var a=this._readableState;(i.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}};Vt.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};Vt.prototype._destroy=function(t,e){Ja.prototype._destroy.call(this,t,function(n){e(n)})};function _P(t,e,n){if(e)return t.emit("error",e);if(n!=null&&t.push(n),t._writableState.length)throw new N4;if(t._transformState.transforming)throw new g4;return t.push(null)}});var vP=h((JZ,TP)=>{"use strict";TP.exports=Uo;var hP=Ef();fn()(Uo,hP);function Uo(t){if(!(this instanceof Uo))return new Uo(t);hP.call(this,t)}Uo.prototype._transform=function(t,e,n){n(null,t)}});var gP=h((QZ,OP)=>{"use strict";var _f;function b4(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var AP=tr().codes,M4=AP.ERR_MISSING_ARGS,x4=AP.ERR_STREAM_DESTROYED;function mP(t){if(t)throw t}function L4(t){return t.setHeader&&typeof t.abort=="function"}function I4(t,e,n,i){i=b4(i);var a=!1;t.on("close",function(){a=!0}),_f===void 0&&(_f=Aa()),_f(t,{readable:e,writable:n},function(o){if(o)return i(o);a=!0,i()});var s=!1;return function(o){if(!a&&!s){if(s=!0,L4(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();i(o||new x4("pipe"))}}}function yP(t){t()}function C4(t,e){return t.pipe(e)}function w4(t){return!t.length||typeof t[t.length-1]!="function"?mP:t.pop()}function U4(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=w4(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new M4("streams");var a,s=e.map(function(o,r){var u=r<e.length-1,l=r>0;return I4(o,u,l,function(c){a||(a=c),c&&s.forEach(yP),!u&&(s.forEach(yP),i(a))})});return e.reduce(C4)}OP.exports=U4});var Ur=h((et,Vo)=>{var Do=L("stream");process.env.READABLE_STREAM==="disable"&&Do?(Vo.exports=Do.Readable,Object.assign(Vo.exports,Do),Vo.exports.Stream=Do):(et=Vo.exports=Zc(),et.Stream=Do||et,et.Readable=et,et.Writable=xa(),et.Duplex=Cr(),et.Transform=Ef(),et.PassThrough=vP(),et.finished=Aa(),et.pipeline=gP())});var Af=h((ZZ,RP)=>{var vn=[],Bo=[],Sf=function(){};function Tf(t){return~vn.indexOf(t)?!1:(vn.push(t),!0)}function vf(t){Sf=t}function D4(t){for(var e=[],n=0;n<vn.length;n++){if(vn[n].async){e.push(vn[n]);continue}if(vn[n](t))return!0}return e.length?new Promise(function(a){Promise.all(e.map(function(o){return o(t)})).then(function(o){a(o.some(Boolean))})}):!1}function mf(t){return~Bo.indexOf(t)?!1:(Bo.push(t),!0)}function hf(){Sf.apply(Sf,arguments)}function NP(t){for(var e=0;e<Bo.length;e++)t=Bo[e].apply(Bo[e],arguments);return t}function yf(t,e){var n=Object.prototype.hasOwnProperty;for(var i in e)n.call(e,i)&&(t[i]=e[i]);return t}function V4(t){return t.enabled=!1,t.modify=mf,t.set=vf,t.use=Tf,yf(function(){return!1},t)}function B4(t){function e(){var n=Array.prototype.slice.call(arguments,0);return hf.call(hf,t,NP(n,t)),!0}return t.enabled=!0,t.modify=mf,t.set=vf,t.use=Tf,yf(e,t)}RP.exports=function(e){return e.introduce=yf,e.enabled=D4,e.process=NP,e.modify=mf,e.write=hf,e.nope=V4,e.yep=B4,e.set=vf,e.use=Tf,e}});var bP=h((eee,PP)=>{var G4=Af(),k4=G4(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)});PP.exports=k4});var xP=h((tee,MP)=>{"use strict";MP.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 IP=h((ree,LP)=>{LP.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 UP=h((nee,wP)=>{"use strict";var H4=IP(),F4=Array.prototype.concat,Y4=Array.prototype.slice,CP=wP.exports=function(e){for(var n=[],i=0,a=e.length;i<a;i++){var s=e[i];H4(s)?n=F4.call(n,Y4.call(s)):n.push(s)}return n};CP.wrap=function(t){return function(){return t(CP(arguments))}}});var GP=h((oee,BP)=>{var Go=xP(),ko=UP(),DP=Object.hasOwnProperty,VP=Object.create(null);for(Qa in Go)DP.call(Go,Qa)&&(VP[Go[Qa]]=Qa);var Qa,Xe=BP.exports={to:{},get:{}};Xe.get=function(t){var e=t.substring(0,3).toLowerCase(),n,i;switch(e){case"hsl":n=Xe.get.hsl(t),i="hsl";break;case"hwb":n=Xe.get.hwb(t),i="hwb";break;default:n=Xe.get.rgb(t),i="rgb";break}return n?{model:i,value:n}:null};Xe.get.rgb=function(t){if(!t)return null;var e=/^#([a-f0-9]{3,4})$/i,n=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,i=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,a=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,s=/^(\w+)$/,o=[0,0,0,1],r,u,l;if(r=t.match(n)){for(l=r[2],r=r[1],u=0;u<3;u++){var c=u*2;o[u]=parseInt(r.slice(c,c+2),16)}l&&(o[3]=parseInt(l,16)/255)}else if(r=t.match(e)){for(r=r[1],l=r[3],u=0;u<3;u++)o[u]=parseInt(r[u]+r[u],16);l&&(o[3]=parseInt(l+l,16)/255)}else if(r=t.match(i)){for(u=0;u<3;u++)o[u]=parseInt(r[u+1],0);r[4]&&(r[5]?o[3]=parseFloat(r[4])*.01:o[3]=parseFloat(r[4]))}else if(r=t.match(a)){for(u=0;u<3;u++)o[u]=Math.round(parseFloat(r[u+1])*2.55);r[4]&&(r[5]?o[3]=parseFloat(r[4])*.01:o[3]=parseFloat(r[4]))}else return(r=t.match(s))?r[1]==="transparent"?[0,0,0,0]:DP.call(Go,r[1])?(o=Go[r[1]],o[3]=1,o):null:null;for(u=0;u<3;u++)o[u]=sr(o[u],0,255);return o[3]=sr(o[3],0,1),o};Xe.get.hsl=function(t){if(!t)return null;var e=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=t.match(e);if(n){var i=parseFloat(n[4]),a=(parseFloat(n[1])%360+360)%360,s=sr(parseFloat(n[2]),0,100),o=sr(parseFloat(n[3]),0,100),r=sr(isNaN(i)?1:i,0,1);return[a,s,o,r]}return null};Xe.get.hwb=function(t){if(!t)return null;var e=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=t.match(e);if(n){var i=parseFloat(n[4]),a=(parseFloat(n[1])%360+360)%360,s=sr(parseFloat(n[2]),0,100),o=sr(parseFloat(n[3]),0,100),r=sr(isNaN(i)?1:i,0,1);return[a,s,o,r]}return null};Xe.to.hex=function(){var t=ko(arguments);return"#"+Za(t[0])+Za(t[1])+Za(t[2])+(t[3]<1?Za(Math.round(t[3]*255)):"")};Xe.to.rgb=function(){var t=ko(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]+")"};Xe.to.rgb.percent=function(){var t=ko(arguments),e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),i=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+e+"%, "+n+"%, "+i+"%)":"rgba("+e+"%, "+n+"%, "+i+"%, "+t[3]+")"};Xe.to.hsl=function(){var t=ko(arguments);return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};Xe.to.hwb=function(){var t=ko(arguments),e="";return t.length>=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};Xe.to.keyword=function(t){return VP[t.slice(0,3)]};function sr(t,e,n){return Math.min(Math.max(e,t),n)}function Za(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}});var HP=h((iee,kP)=>{"use strict";kP.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 Of=h((aee,jP)=>{var Dr=HP(),qP={};for(es in Dr)Dr.hasOwnProperty(es)&&(qP[Dr[es]]=es);var es,M=jP.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(Ue in M)if(M.hasOwnProperty(Ue)){if(!("channels"in M[Ue]))throw new Error("missing channels property: "+Ue);if(!("labels"in M[Ue]))throw new Error("missing channel labels property: "+Ue);if(M[Ue].labels.length!==M[Ue].channels)throw new Error("channel and label counts mismatch: "+Ue);FP=M[Ue].channels,YP=M[Ue].labels,delete M[Ue].channels,delete M[Ue].labels,Object.defineProperty(M[Ue],"channels",{value:FP}),Object.defineProperty(M[Ue],"labels",{value:YP})}var FP,YP,Ue;M.rgb.hsl=function(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255,a=Math.min(e,n,i),s=Math.max(e,n,i),o=s-a,r,u,l;return s===a?r=0:e===s?r=(n-i)/o:n===s?r=2+(i-e)/o:i===s&&(r=4+(e-n)/o),r=Math.min(r*60,360),r<0&&(r+=360),l=(a+s)/2,s===a?u=0:l<=.5?u=o/(s+a):u=o/(2-s-a),[r,u*100,l*100]};M.rgb.hsv=function(t){var e,n,i,a,s,o=t[0]/255,r=t[1]/255,u=t[2]/255,l=Math.max(o,r,u),c=l-Math.min(o,r,u),p=function(_){return(l-_)/6/c+1/2};return c===0?a=s=0:(s=c/l,e=p(o),n=p(r),i=p(u),o===l?a=i-n:r===l?a=1/3+e-i:u===l&&(a=2/3+n-e),a<0?a+=1:a>1&&(a-=1)),[a*360,s*100,l*100]};M.rgb.hwb=function(t){var e=t[0],n=t[1],i=t[2],a=M.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(n,i));return i=1-1/255*Math.max(e,Math.max(n,i)),[a,s*100,i*100]};M.rgb.cmyk=function(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255,a,s,o,r;return r=Math.min(1-e,1-n,1-i),a=(1-e-r)/(1-r)||0,s=(1-n-r)/(1-r)||0,o=(1-i-r)/(1-r)||0,[a*100,s*100,o*100,r*100]};function q4(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}M.rgb.keyword=function(t){var e=qP[t];if(e)return e;var n=1/0,i;for(var a in Dr)if(Dr.hasOwnProperty(a)){var s=Dr[a],o=q4(t,s);o<n&&(n=o,i=a)}return i};M.keyword.rgb=function(t){return Dr[t]};M.rgb.xyz=function(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92;var a=e*.4124+n*.3576+i*.1805,s=e*.2126+n*.7152+i*.0722,o=e*.0193+n*.1192+i*.9505;return[a*100,s*100,o*100]};M.rgb.lab=function(t){var e=M.rgb.xyz(t),n=e[0],i=e[1],a=e[2],s,o,r;return n/=95.047,i/=100,a/=108.883,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,s=116*i-16,o=500*(n-i),r=200*(i-a),[s,o,r]};M.hsl.rgb=function(t){var e=t[0]/360,n=t[1]/100,i=t[2]/100,a,s,o,r,u;if(n===0)return u=i*255,[u,u,u];i<.5?s=i*(1+n):s=i+n-i*n,a=2*i-s,r=[0,0,0];for(var l=0;l<3;l++)o=e+1/3*-(l-1),o<0&&o++,o>1&&o--,6*o<1?u=a+(s-a)*6*o:2*o<1?u=s:3*o<2?u=a+(s-a)*(2/3-o)*6:u=a,r[l]=u*255;return r};M.hsl.hsv=function(t){var e=t[0],n=t[1]/100,i=t[2]/100,a=n,s=Math.max(i,.01),o,r;return i*=2,n*=i<=1?i:2-i,a*=s<=1?s:2-s,r=(i+n)/2,o=i===0?2*a/(s+a):2*n/(i+n),[e,o*100,r*100]};M.hsv.rgb=function(t){var e=t[0]/60,n=t[1]/100,i=t[2]/100,a=Math.floor(e)%6,s=e-Math.floor(e),o=255*i*(1-n),r=255*i*(1-n*s),u=255*i*(1-n*(1-s));switch(i*=255,a){case 0:return[i,u,o];case 1:return[r,i,o];case 2:return[o,i,u];case 3:return[o,r,i];case 4:return[u,o,i];case 5:return[i,o,r]}};M.hsv.hsl=function(t){var e=t[0],n=t[1]/100,i=t[2]/100,a=Math.max(i,.01),s,o,r;return r=(2-n)*i,s=(2-n)*a,o=n*a,o/=s<=1?s:2-s,o=o||0,r/=2,[e,o*100,r*100]};M.hwb.rgb=function(t){var e=t[0]/360,n=t[1]/100,i=t[2]/100,a=n+i,s,o,r,u;a>1&&(n/=a,i/=a),s=Math.floor(6*e),o=1-i,r=6*e-s,s&1&&(r=1-r),u=n+r*(o-n);var l,c,p;switch(s){default:case 6:case 0:l=o,c=u,p=n;break;case 1:l=u,c=o,p=n;break;case 2:l=n,c=o,p=u;break;case 3:l=n,c=u,p=o;break;case 4:l=u,c=n,p=o;break;case 5:l=o,c=n,p=u;break}return[l*255,c*255,p*255]};M.cmyk.rgb=function(t){var e=t[0]/100,n=t[1]/100,i=t[2]/100,a=t[3]/100,s,o,r;return s=1-Math.min(1,e*(1-a)+a),o=1-Math.min(1,n*(1-a)+a),r=1-Math.min(1,i*(1-a)+a),[s*255,o*255,r*255]};M.xyz.rgb=function(t){var e=t[0]/100,n=t[1]/100,i=t[2]/100,a,s,o;return a=e*3.2406+n*-1.5372+i*-.4986,s=e*-.9689+n*1.8758+i*.0415,o=e*.0557+n*-.204+i*1.057,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[a*255,s*255,o*255]};M.xyz.lab=function(t){var e=t[0],n=t[1],i=t[2],a,s,o;return e/=95.047,n/=100,i/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,a=116*n-16,s=500*(e-n),o=200*(n-i),[a,s,o]};M.lab.xyz=function(t){var e=t[0],n=t[1],i=t[2],a,s,o;s=(e+16)/116,a=n/500+s,o=s-i/200;var r=Math.pow(s,3),u=Math.pow(a,3),l=Math.pow(o,3);return s=r>.008856?r:(s-16/116)/7.787,a=u>.008856?u:(a-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,a*=95.047,s*=100,o*=108.883,[a,s,o]};M.lab.lch=function(t){var e=t[0],n=t[1],i=t[2],a,s,o;return a=Math.atan2(i,n),s=a*360/2/Math.PI,s<0&&(s+=360),o=Math.sqrt(n*n+i*i),[e,o,s]};M.lch.lab=function(t){var e=t[0],n=t[1],i=t[2],a,s,o;return o=i/360*2*Math.PI,a=n*Math.cos(o),s=n*Math.sin(o),[e,a,s]};M.rgb.ansi16=function(t){var e=t[0],n=t[1],i=t[2],a=1 in arguments?arguments[1]:M.rgb.hsv(t)[2];if(a=Math.round(a/50),a===0)return 30;var s=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(e/255));return a===2&&(s+=60),s};M.hsv.ansi16=function(t){return M.rgb.ansi16(M.hsv.rgb(t),t[2])};M.rgb.ansi256=function(t){var e=t[0],n=t[1],i=t[2];if(e===n&&n===i)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var a=16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5);return a};M.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var n=(~~(t>50)+1)*.5,i=(e&1)*n*255,a=(e>>1&1)*n*255,s=(e>>2&1)*n*255;return[i,a,s]};M.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var n,i=Math.floor(t/36)/5*255,a=Math.floor((n=t%36)/6)/5*255,s=n%6/5*255;return[i,a,s]};M.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),n=e.toString(16).toUpperCase();return"000000".substring(n.length)+n};M.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var n=e[0];e[0].length===3&&(n=n.split("").map(function(r){return r+r}).join(""));var i=parseInt(n,16),a=i>>16&255,s=i>>8&255,o=i&255;return[a,s,o]};M.rgb.hcg=function(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255,a=Math.max(Math.max(e,n),i),s=Math.min(Math.min(e,n),i),o=a-s,r,u;return o<1?r=s/(1-o):r=0,o<=0?u=0:a===e?u=(n-i)/o%6:a===n?u=2+(i-e)/o:u=4+(e-n)/o+4,u/=6,u%=1,[u*360,o*100,r*100]};M.hsl.hcg=function(t){var e=t[1]/100,n=t[2]/100,i=1,a=0;return n<.5?i=2*e*n:i=2*e*(1-n),i<1&&(a=(n-.5*i)/(1-i)),[t[0],i*100,a*100]};M.hsv.hcg=function(t){var e=t[1]/100,n=t[2]/100,i=e*n,a=0;return i<1&&(a=(n-i)/(1-i)),[t[0],i*100,a*100]};M.hcg.rgb=function(t){var e=t[0]/360,n=t[1]/100,i=t[2]/100;if(n===0)return[i*255,i*255,i*255];var a=[0,0,0],s=e%1*6,o=s%1,r=1-o,u=0;switch(Math.floor(s)){case 0:a[0]=1,a[1]=o,a[2]=0;break;case 1:a[0]=r,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=o;break;case 3:a[0]=0,a[1]=r,a[2]=1;break;case 4:a[0]=o,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=r}return u=(1-n)*i,[(n*a[0]+u)*255,(n*a[1]+u)*255,(n*a[2]+u)*255]};M.hcg.hsv=function(t){var e=t[1]/100,n=t[2]/100,i=e+n*(1-e),a=0;return i>0&&(a=e/i),[t[0],a*100,i*100]};M.hcg.hsl=function(t){var e=t[1]/100,n=t[2]/100,i=n*(1-e)+.5*e,a=0;return i>0&&i<.5?a=e/(2*i):i>=.5&&i<1&&(a=e/(2*(1-i))),[t[0],a*100,i*100]};M.hcg.hwb=function(t){var e=t[1]/100,n=t[2]/100,i=e+n*(1-e);return[t[0],(i-e)*100,(1-i)*100]};M.hwb.hcg=function(t){var e=t[1]/100,n=t[2]/100,i=1-n,a=i-e,s=0;return a<1&&(s=(i-a)/(1-a)),[t[0],a*100,s*100]};M.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};M.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};M.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};M.gray.hsl=M.gray.hsv=function(t){return[0,0,t[0]]};M.gray.hwb=function(t){return[0,100,t[0]]};M.gray.cmyk=function(t){return[0,0,0,t[0]]};M.gray.lab=function(t){return[t[0],0,0]};M.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,n=(e<<16)+(e<<8)+e,i=n.toString(16).toUpperCase();return"000000".substring(i.length)+i};M.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}});var KP=h((see,$P)=>{var ts=Of();function j4(){for(var t={},e=Object.keys(ts),n=e.length,i=0;i<n;i++)t[e[i]]={distance:-1,parent:null};return t}function $4(t){var e=j4(),n=[t];for(e[t].distance=0;n.length;)for(var i=n.pop(),a=Object.keys(ts[i]),s=a.length,o=0;o<s;o++){var r=a[o],u=e[r];u.distance===-1&&(u.distance=e[i].distance+1,u.parent=i,n.unshift(r))}return e}function K4(t,e){return function(n){return e(t(n))}}function W4(t,e){for(var n=[e[t].parent,t],i=ts[e[t].parent][t],a=e[t].parent;e[a].parent;)n.unshift(e[a].parent),i=K4(ts[e[a].parent][a],i),a=e[a].parent;return i.conversion=n,i}$P.exports=function(t){for(var e=$4(t),n={},i=Object.keys(e),a=i.length,s=0;s<a;s++){var o=i[s],r=e[o];r.parent!==null&&(n[o]=W4(o,e))}return n}});var zP=h((uee,WP)=>{var gf=Of(),z4=KP(),mn={},X4=Object.keys(gf);function J4(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 Q4(t){var e=function(n){if(n==null)return n;arguments.length>1&&(n=Array.prototype.slice.call(arguments));var i=t(n);if(typeof i=="object")for(var a=i.length,s=0;s<a;s++)i[s]=Math.round(i[s]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}X4.forEach(function(t){mn[t]={},Object.defineProperty(mn[t],"channels",{value:gf[t].channels}),Object.defineProperty(mn[t],"labels",{value:gf[t].labels});var e=z4(t),n=Object.keys(e);n.forEach(function(i){var a=e[i];mn[t][i]=Q4(a),mn[t][i].raw=J4(a)})});WP.exports=mn});var QP=h((lee,JP)=>{"use strict";var Ho=GP(),Je=zP(),Pf=[].slice,XP=["keyword","gray","hex"],Nf={};Object.keys(Je).forEach(function(t){Nf[Pf.call(Je[t].labels).sort().join("")]=t});var rs={};function ye(t,e){if(!(this instanceof ye))return new ye(t,e);if(e&&e in XP&&(e=null),e&&!(e in Je))throw new Error("Unknown model: "+e);var n,i;if(t==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof ye)this.model=t.model,this.color=t.color.slice(),this.valpha=t.valpha;else if(typeof t=="string"){var a=Ho.get(t);if(a===null)throw new Error("Unable to parse color from string: "+t);this.model=a.model,i=Je[this.model].channels,this.color=a.value.slice(0,i),this.valpha=typeof a.value[i]=="number"?a.value[i]:1}else if(t.length){this.model=e||"rgb",i=Je[this.model].channels;var s=Pf.call(t,0,i);this.color=Rf(s,i),this.valpha=typeof t[i]=="number"?t[i]:1}else if(typeof t=="number")t&=16777215,this.model="rgb",this.color=[t>>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;var o=Object.keys(t);"alpha"in t&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);var r=o.sort().join("");if(!(r in Nf))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=Nf[r];var u=Je[this.model].labels,l=[];for(n=0;n<u.length;n++)l.push(t[u[n]]);this.color=Rf(l)}if(rs[this.model])for(i=Je[this.model].channels,n=0;n<i;n++){var c=rs[this.model][n];c&&(this.color[n]=c(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}ye.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(t){var e=this.model in Ho.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 Ho.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 Ho.to.rgb.percent(n)},array:function(){return this.valpha===1?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var t={},e=Je[this.model].channels,n=Je[this.model].labels,i=0;i<e;i++)t[n[i]]=this.color[i];return this.valpha!==1&&(t.alpha=this.valpha),t},unitArray:function(){var t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,this.valpha!==1&&t.push(this.valpha),t},unitObject:function(){var t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,this.valpha!==1&&(t.alpha=this.valpha),t},round:function(t){return t=Math.max(t||0,0),new ye(this.color.map(e6(t)).concat(this.valpha),this.model)},alpha:function(t){return arguments.length?new ye(this.color.concat(Math.max(0,Math.min(1,t))),this.model):this.valpha},red:le("rgb",0,de(255)),green:le("rgb",1,de(255)),blue:le("rgb",2,de(255)),hue:le(["hsl","hsv","hsl","hwb","hcg"],0,function(t){return(t%360+360)%360}),saturationl:le("hsl",1,de(100)),lightness:le("hsl",2,de(100)),saturationv:le("hsv",1,de(100)),value:le("hsv",2,de(100)),chroma:le("hcg",1,de(100)),gray:le("hcg",2,de(100)),white:le("hwb",1,de(100)),wblack:le("hwb",2,de(100)),cyan:le("cmyk",0,de(100)),magenta:le("cmyk",1,de(100)),yellow:le("cmyk",2,de(100)),black:le("cmyk",3,de(100)),x:le("xyz",0,de(100)),y:le("xyz",1,de(100)),z:le("xyz",2,de(100)),l:le("lab",0,de(100)),a:le("lab",1),b:le("lab",2),keyword:function(t){return arguments.length?new ye(t):Je[this.model].keyword(this.color)},hex:function(t){return arguments.length?new ye(t):Ho.to.hex(this.rgb().round().color)},rgbNumber:function(){var t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity:function(){for(var t=this.rgb().color,e=[],n=0;n<t.length;n++){var i=t[n]/255;e[n]=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}return .2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),n=t.luminosity();return e>n?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},isDark:function(){var t=this.rgb().color,e=(t[0]*299+t[1]*587+t[2]*114)/1e3;return e<128},isLight:function(){return!this.isDark()},negate:function(){for(var t=this.rgb(),e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten:function(t){var e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken:function(t){var e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate:function(t){var e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate:function(t){var e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten:function(t){var e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken:function(t){var e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale:function(){var t=this.rgb().color,e=t[0]*.3+t[1]*.59+t[2]*.11;return ye.rgb(e,e,e)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var e=this.hsl(),n=e.color[0];return n=(n+t)%360,n=n<0?360+n:n,e.color[0]=n,e},mix:function(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);var n=t.rgb(),i=this.rgb(),a=e===void 0?.5:e,s=2*a-1,o=n.alpha()-i.alpha(),r=((s*o===-1?s:(s+o)/(1+s*o))+1)/2,u=1-r;return ye.rgb(r*n.red()+u*i.red(),r*n.green()+u*i.green(),r*n.blue()+u*i.blue(),n.alpha()*a+i.alpha()*(1-a))}};Object.keys(Je).forEach(function(t){if(XP.indexOf(t)===-1){var e=Je[t].channels;ye.prototype[t]=function(){if(this.model===t)return new ye(this);if(arguments.length)return new ye(arguments,t);var n=typeof arguments[e]=="number"?e:this.valpha;return new ye(t6(Je[this.model][t].raw(this.color)).concat(n),t)},ye[t]=function(n){return typeof n=="number"&&(n=Rf(Pf.call(arguments),e)),new ye(n,t)}}});function Z4(t,e){return Number(t.toFixed(e))}function e6(t){return function(e){return Z4(e,t)}}function le(t,e,n){return t=Array.isArray(t)?t:[t],t.forEach(function(i){(rs[i]||(rs[i]=[]))[e]=n}),t=t[0],function(i){var a;return arguments.length?(n&&(i=n(i)),a=this[t](),a.color[e]=i,a):(a=this[t]().color[e],n&&(a=n(a)),a)}}function de(t){return function(e){return Math.max(0,Math.min(t,e))}}function t6(t){return Array.isArray(t)?t:[t]}function Rf(t,e){for(var n=0;n<e;n++)typeof t[n]!="number"&&(t[n]=0);return t}JP.exports=ye});var eb=h((cee,ZP)=>{"use strict";ZP.exports=function(e){for(var n=0,i=0;n<e.length;i=e.charCodeAt(n++)+((i<<5)-i));var a=Math.floor(Math.abs(Math.sin(i)*1e4%1*16777216)).toString(16);return"#"+Array(6-a.length+1).join("0")+a}});var ob=h((fee,nb)=>{"use strict";var tb=QP(),rb=eb();nb.exports=function(e,n){var i=e.split(n||":"),a=rb(i[0]);if(!i.length)return a;for(var s=0,o=i.length-1;s<o;s++)a=tb(a).mix(tb(rb(i[s+1]))).saturate(1).hex();return a}});var ab=h((pee,ib)=>{"use strict";function ct(t,e){if(e)return new ct(t).style(e);if(!(this instanceof ct))return new ct(t);this.text=t}ct.prototype.prefix="\x1B[";ct.prototype.suffix="m";ct.prototype.hex=function(e){e=e[0]==="#"?e.substring(1):e,e.length===3&&(e=e.split(""),e[5]=e[2],e[4]=e[2],e[3]=e[1],e[2]=e[1],e[1]=e[0],e=e.join(""));var n=e.substring(0,2),i=e.substring(2,4),a=e.substring(4,6);return[parseInt(n,16),parseInt(i,16),parseInt(a,16)]};ct.prototype.rgb=function(e,n,i){var a=e/255*5,s=n/255*5,o=i/255*5;return this.ansi(a,s,o)};ct.prototype.ansi=function(e,n,i){var a=Math.round(e),s=Math.round(n),o=Math.round(i);return 16+a*36+s*6+o};ct.prototype.reset=function(){return this.prefix+"39;49"+this.suffix};ct.prototype.style=function(e){return this.prefix+"38;5;"+this.rgb.apply(this,this.hex(e))+this.suffix+this.text+this.reset()};ib.exports=ct});var ub=h((dee,sb)=>{var r6=ob(),n6=ab();sb.exports=function(e,n){var i=n.namespace,a=n.colors!==!1?n6(i+":",r6(i)):i+":";return e[0]=a+" "+e[0],e}});var cb=h((Eee,lb)=>{"use strict";lb.exports=function(e,n){if(!n)return!1;for(var i=n.split(/[\s,]+/),a=0;a<i.length;a++){if(n=i[a].replace("*",".*?"),n.charAt(0)==="-"){if(new RegExp("^"+n.substr(1)+"$").test(e))return!1;continue}if(new RegExp("^"+n+"$").test(e))return!0}return!1}});var pb=h((_ee,fb)=>{var o6=cb();fb.exports=function(e){return function(i){try{return o6(i,e())}catch{}return!1}}});var Eb=h((See,db)=>{var i6=pb();db.exports=i6(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var Sb=h((hee,_b)=>{_b.exports=function(t,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var Tb=h((Tee,hb)=>{var a6=Af(),s6=L("tty").isatty(1),ns=a6(function t(e,n){return n=n||{},n.colors="colors"in n?n.colors:s6,n.namespace=e,n.prod=!1,n.dev=!0,!t.enabled(e)&&!(n.force||t.force)?t.nope(n):t.yep(n)});ns.modify(ub());ns.use(Eb());ns.set(Sb());hb.exports=ns});var Fo=h((vee,bf)=>{process.env.NODE_ENV==="production"?bf.exports=bP():bf.exports=Tb()});var mb=h((mee,vb)=>{"use strict";var Mf=L("fs"),{StringDecoder:u6}=L("string_decoder"),{Stream:l6}=Ur();function c6(){}vb.exports=(t,e)=>{let n=Buffer.alloc(65536),i=new u6("utf8"),a=new l6,s="",o=0,r=0;return t.start===-1&&delete t.start,a.readable=!0,a.destroy=()=>{a.destroyed=!0,a.emit("end"),a.emit("close")},Mf.open(t.file,"a+","0644",(u,l)=>{if(u){e?e(u):a.emit("error",u),a.destroy();return}(function c(){if(a.destroyed){Mf.close(l,c6);return}return Mf.read(l,n,0,n.length,o,(p,_)=>{if(p){e?e(p):a.emit("error",p),a.destroy();return}if(!_)return s&&((t.start==null||r>t.start)&&(e?e(null,s):a.emit("line",s)),r++,s=""),setTimeout(c,1e3);let f=i.write(n.slice(0,_));e||a.emit("data",f),f=(s+f).split(/\n+/);let S=f.length-1,v=0;for(;v<S;v++)(t.start==null||r>t.start)&&(e?e(null,f[v]):a.emit("line",f[v])),r++;return s=f[S],o+=_,c()})})()}),e?a.destroy:a}});var gb=h((Aee,Ob)=>{"use strict";var qe=L("fs"),Se=L("path"),yb=EP(),f6=L("zlib"),{MESSAGE:p6}=fe(),{Stream:d6,PassThrough:Ab}=Ur(),E6=Sn(),ft=Fo()("winston:file"),_6=L("os"),S6=mb();Ob.exports=class extends E6{constructor(e={}){super(e),this.name=e.name||"file";function n(i,...a){a.slice(1).forEach(s=>{if(e[s])throw new Error(`Cannot set ${s} and ${i} together`)})}if(this._stream=new Ab,this._stream.setMaxListeners(30),this._onError=this._onError.bind(this),e.filename||e.dirname)n("filename or dirname","stream"),this._basename=this.filename=e.filename?Se.basename(e.filename):"winston.log",this.dirname=e.dirname||Se.dirname(e.filename),this.options=e.options||{flags:"a"};else if(e.stream)console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),n("stream","filename","maxsize"),this._dest=this._stream.pipe(this._setupStream(e.stream)),this.dirname=Se.dirname(this._dest.path);else throw new Error("Cannot log to file without filename or stream.");this.maxsize=e.maxsize||null,this.rotationFormat=e.rotationFormat||!1,this.zippedArchive=e.zippedArchive||!1,this.maxFiles=e.maxFiles||null,this.eol=typeof e.eol=="string"?e.eol:_6.EOL,this.tailable=e.tailable||!1,this.lazy=e.lazy||!1,this._size=0,this._pendingSize=0,this._created=0,this._drain=!1,this._opening=!1,this._ending=!1,this._fileExist=!1,this.dirname&&this._createLogDirIfNotExist(this.dirname),this.lazy||this.open()}finishIfEnding(){this._ending&&(this._opening?this.once("open",()=>{this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())}):(this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())))}log(e,n=()=>{}){if(this.silent)return n(),!0;if(this._drain){this._stream.once("drain",()=>{this._drain=!1,this.log(e,n)});return}if(this._rotate){this._stream.once("rotate",()=>{this._rotate=!1,this.log(e,n)});return}if(this.lazy){if(!this._fileExist){this._opening||this.open(),this.once("open",()=>{this._fileExist=!0,this.log(e,n)});return}if(this._needsNewFile(this._pendingSize)){this._dest.once("close",()=>{this._opening||this.open(),this.once("open",()=>{this.log(e,n)})});return}}let i=`${e[p6]}${this.eol}`,a=Buffer.byteLength(i);function s(){if(this._size+=a,this._pendingSize-=a,ft("logged %s %s",this._size,i),this.emit("logged",e),!this._rotate&&!this._opening&&this._needsNewFile()){if(this.lazy){this._endStream(()=>{this.emit("fileclosed")});return}this._rotate=!0,this._endStream(()=>this._rotateFile())}}this._pendingSize+=a,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);let o=this._stream.write(i,s.bind(this));return o?n():(this._drain=!0,this._stream.once("drain",()=>{this._drain=!1,n()})),ft("written",o,this._drain),this.finishIfEnding(),o}query(e,n){typeof e=="function"&&(n=e,e={}),e=p(e);let i=Se.join(this.dirname,this.filename),a="",s=[],o=0,r=qe.createReadStream(i,{encoding:"utf8"});r.on("error",_=>{if(r.readable&&r.destroy(),!!n)return _.code!=="ENOENT"?n(_):n(null,s)}),r.on("data",_=>{_=(a+_).split(/\n+/);let f=_.length-1,S=0;for(;S<f;S++)(!e.start||o>=e.start)&&u(_[S]),o++;a=_[f]}),r.on("close",()=>{a&&u(a,!0),e.order==="desc"&&(s=s.reverse()),n&&n(null,s)});function u(_,f){try{let S=JSON.parse(_);c(S)&&l(S)}catch(S){f||r.emit("error",S)}}function l(_){if(e.rows&&s.length>=e.rows&&e.order!=="desc"){r.readable&&r.destroy();return}e.fields&&(_=e.fields.reduce((f,S)=>(f[S]=_[S],f),{})),e.order==="desc"&&s.length>=e.rows&&s.shift(),s.push(_)}function c(_){if(!_||typeof _!="object")return;let f=new Date(_.timestamp);if(!(e.from&&f<e.from||e.until&&f>e.until||e.level&&e.level!==_.level))return!0}function p(_){return _=_||{},_.rows=_.rows||_.limit||10,_.start=_.start||0,_.until=_.until||new Date,typeof _.until!="object"&&(_.until=new Date(_.until)),_.from=_.from||_.until-24*60*60*1e3,typeof _.from!="object"&&(_.from=new Date(_.from)),_.order=_.order||"desc",_}}stream(e={}){let n=Se.join(this.dirname,this.filename),i=new d6,a={file:n,start:e.start};return i.destroy=S6(a,(s,o)=>{if(s)return i.emit("error",s);try{i.emit("data",o),o=JSON.parse(o),i.emit("log",o)}catch(r){i.emit("error",r)}}),i}open(){this.filename&&(this._opening||(this._opening=!0,this.stat((e,n)=>{if(e)return this.emit("error",e);ft("stat done: %s { size: %s }",this.filename,n),this._size=n,this._dest=this._createStream(this._stream),this._opening=!1,this.once("open",()=>{this._stream.eventNames().includes("rotate")?this._stream.emit("rotate"):this._rotate=!1})})))}stat(e){let n=this._getFile(),i=Se.join(this.dirname,n);qe.stat(i,(a,s)=>{if(a&&a.code==="ENOENT")return ft("ENOENT\xA0ok",i),this.filename=n,e(null,0);if(a)return ft(`err ${a.code} ${i}`),e(a);if(!s||this._needsNewFile(s.size))return this._incFile(()=>this.stat(e));this.filename=n,e(null,s.size)})}close(e){this._stream&&this._stream.end(()=>{e&&e(),this.emit("flush"),this.emit("closed")})}_needsNewFile(e){return e=e||this._size,this.maxsize&&e>=this.maxsize}_onError(e){this.emit("error",e)}_setupStream(e){return e.on("error",this._onError),e}_cleanupStream(e){return e.removeListener("error",this._onError),e.destroy(),e}_rotateFile(){this._incFile(()=>this.open())}_endStream(e=()=>{}){this._dest?(this._stream.unpipe(this._dest),this._dest.end(()=>{this._cleanupStream(this._dest),e()})):e()}_createStream(e){let n=Se.join(this.dirname,this.filename);ft("create stream start",n,this.options);let i=qe.createWriteStream(n,this.options).on("error",a=>ft(a)).on("close",()=>ft("close",i.path,i.bytesWritten)).on("open",()=>{ft("file open ok",n),this.emit("open",n),e.pipe(i),this.rotatedWhileOpening&&(this._stream=new Ab,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(i),e.end())});return ft("create stream ok",n),i}_incFile(e){ft("_incFile",this.filename);let n=Se.extname(this._basename),i=Se.basename(this._basename,n),a=[];this.zippedArchive&&a.push(function(s){let o=this._created>0&&!this.tailable?this._created:"";this._compressFile(Se.join(this.dirname,`${i}${o}${n}`),Se.join(this.dirname,`${i}${o}${n}.gz`),s)}.bind(this)),a.push(function(s){this.tailable?this._checkMaxFilesTailable(n,i,s):(this._created+=1,this._checkMaxFilesIncrementing(n,i,s))}.bind(this)),yb(a,e)}_getFile(){let e=Se.extname(this._basename),n=Se.basename(this._basename,e),i=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?`${n}${i}${e}`:`${n}${e}`}_checkMaxFilesIncrementing(e,n,i){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate(i);let a=this._created-this.maxFiles,s=a!==0?a:"",o=this.zippedArchive?".gz":"",r=`${n}${s}${e}${o}`,u=Se.join(this.dirname,r);qe.unlink(u,i)}_checkMaxFilesTailable(e,n,i){let a=[];if(!this.maxFiles)return;let s=this.zippedArchive?".gz":"";for(let o=this.maxFiles-1;o>1;o--)a.push(function(r,u){let l=`${n}${r-1}${e}${s}`,c=Se.join(this.dirname,l);qe.exists(c,p=>{if(!p)return u(null);l=`${n}${r}${e}${s}`,qe.rename(c,Se.join(this.dirname,l),u)})}.bind(this,o));yb(a,()=>{qe.rename(Se.join(this.dirname,`${n}${e}${s}`),Se.join(this.dirname,`${n}1${e}${s}`),i)})}_compressFile(e,n,i){qe.access(e,qe.F_OK,a=>{if(a)return i();var s=f6.createGzip(),o=qe.createReadStream(e),r=qe.createWriteStream(n);r.on("finish",()=>{qe.unlink(e,i)}),o.pipe(s).pipe(r)})}_createLogDirIfNotExist(e){qe.existsSync(e)||qe.mkdirSync(e,{recursive:!0})}}});var Rb=h((gee,Nb)=>{"use strict";var h6=L("http"),T6=L("https"),{Stream:v6}=Ur(),m6=Sn(),{configure:y6}=Ao();Nb.exports=class extends m6{constructor(e={}){super(e),this.options=e,this.name=e.name||"http",this.ssl=!!e.ssl,this.host=e.host||"localhost",this.port=e.port,this.auth=e.auth,this.path=e.path||"",this.maximumDepth=e.maximumDepth,this.agent=e.agent,this.headers=e.headers||{},this.headers["content-type"]="application/json",this.batch=e.batch||!1,this.batchInterval=e.batchInterval||5e3,this.batchCount=e.batchCount||10,this.batchOptions=[],this.batchTimeoutID=-1,this.batchCallback={},this.port||(this.port=this.ssl?443:80)}log(e,n){this._request(e,null,null,(i,a)=>{a&&a.statusCode!==200&&(i=new Error(`Invalid HTTP Status Code: ${a.statusCode}`)),i?this.emit("warn",i):this.emit("logged",e)}),n&&setImmediate(n)}query(e,n){typeof e=="function"&&(n=e,e={}),e={method:"query",params:this.normalizeQuery(e)};let i=e.params.auth||null;delete e.params.auth;let a=e.params.path||null;delete e.params.path,this._request(e,i,a,(s,o,r)=>{if(o&&o.statusCode!==200&&(s=new Error(`Invalid HTTP Status Code: ${o.statusCode}`)),s)return n(s);if(typeof r=="string")try{r=JSON.parse(r)}catch(u){return n(u)}n(null,r)})}stream(e={}){let n=new v6;e={method:"stream",params:e};let i=e.params.path||null;delete e.params.path;let a=e.params.auth||null;delete e.params.auth;let s="",o=this._request(e,a,i);return n.destroy=()=>o.destroy(),o.on("data",r=>{r=(s+r).split(/\n+/);let u=r.length-1,l=0;for(;l<u;l++)try{n.emit("log",JSON.parse(r[l]))}catch(c){n.emit("error",c)}s=r[u]}),o.on("error",r=>n.emit("error",r)),n}_request(e,n,i,a){e=e||{},n=n||this.auth,i=i||this.path||"",this.batch?this._doBatch(e,a,n,i):this._doRequest(e,a,n,i)}_doBatch(e,n,i,a){if(this.batchOptions.push(e),this.batchOptions.length===1){let s=this;this.batchCallback=n,this.batchTimeoutID=setTimeout(function(){s.batchTimeoutID=-1,s._doBatchRequest(s.batchCallback,i,a)},this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,i,a)}_doBatchRequest(e,n,i){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);let a=this.batchOptions.slice();this.batchOptions=[],this._doRequest(a,e,n,i)}_doRequest(e,n,i,a){let s=Object.assign({},this.headers);i&&i.bearer&&(s.Authorization=`Bearer ${i.bearer}`);let o=(this.ssl?T6:h6).request({...this.options,method:"POST",host:this.host,port:this.port,path:`/${a.replace(/^\//,"")}`,headers:s,auth:i&&i.username&&i.password?`${i.username}:${i.password}`:"",agent:this.agent});o.on("error",n),o.on("response",u=>u.on("end",()=>n(null,u)).resume());let r=y6({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});o.end(Buffer.from(r(e,this.options.replacer),"utf8"))}}});var xf=h((Nee,Pb)=>{"use strict";var yt=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";yt.writable=t=>yt(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";yt.readable=t=>yt(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";yt.duplex=t=>yt.writable(t)&&yt.readable(t);yt.transform=t=>yt.duplex(t)&&typeof t._transform=="function";Pb.exports=yt});var Mb=h((Pee,bb)=>{"use strict";var A6=xf(),{MESSAGE:O6}=fe(),g6=L("os"),N6=Sn();bb.exports=class extends N6{constructor(e={}){if(super(e),!e.stream||!A6(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:g6.EOL}log(e,n){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode){this._stream.write(e),n&&n();return}this._stream.write(`${e[O6]}${this.eol}`),n&&n()}}});var xb=h(Yo=>{"use strict";Object.defineProperty(Yo,"Console",{configurable:!0,enumerable:!0,get(){return IR()}});Object.defineProperty(Yo,"File",{configurable:!0,enumerable:!0,get(){return gb()}});Object.defineProperty(Yo,"Http",{configurable:!0,enumerable:!0,get(){return Rb()}});Object.defineProperty(Yo,"Stream",{configurable:!0,enumerable:!0,get(){return Mb()}})});var is=h(qo=>{"use strict";var os=Mc(),{configs:Lf}=fe();qo.cli=os.levels(Lf.cli);qo.npm=os.levels(Lf.npm);qo.syslog=os.levels(Lf.syslog);qo.addColors=os.levels});var Ib=h((as,Lb)=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});var R6=wa(),P6=Vr(R6),b6=qa(),M6=Vr(b6),x6=df(),L6=Vr(x6),I6=cf(),C6=Vr(I6),w6=ff(),U6=Vr(w6),D6=wr(),V6=Vr(D6),B6=Tn(),G6=Vr(B6);function Vr(t){return t&&t.__esModule?t:{default:t}}function k6(t,e,n){n=(0,C6.default)(n);var i=0,a=0,{length:s}=t,o=!1;s===0&&n(null);function r(u,l){u===!1&&(o=!0),o!==!0&&(u?n(u):(++a===s||l===M6.default)&&n(null))}for(;i<s;i++)e(t[i],i,(0,U6.default)(r))}function H6(t,e,n){return(0,L6.default)(t,1/0,e,n)}function F6(t,e,n){var i=(0,P6.default)(t)?k6:H6;return i(t,(0,V6.default)(e),n)}as.default=(0,G6.default)(F6,3);Lb.exports=as.default});var wb=h((ss,Cb)=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.default=Y6;function Y6(t){return(e,n,i)=>t(e,i)}Cb.exports=ss.default});var cs=h((ls,Ub)=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});var q6=Ib(),j6=us(q6),$6=wb(),K6=us($6),W6=wr(),z6=us(W6),X6=Tn(),J6=us(X6);function us(t){return t&&t.__esModule?t:{default:t}}function Q6(t,e,n){return(0,j6.default)(t,(0,K6.default)((0,z6.default)(e)),n)}ls.default=(0,J6.default)(Q6,3);Ub.exports=ls.default});var Vb=h((xee,Db)=>{"use strict";var Z6=Object.prototype.toString;Db.exports=function(e){if(typeof e.displayName=="string"&&e.constructor.name)return e.displayName;if(typeof e.name=="string"&&e.name)return e.name;if(typeof e=="object"&&e.constructor&&typeof e.constructor.name=="string")return e.constructor.name;var n=e.toString(),i=Z6.call(e).slice(8,-1);return i==="Function"?n=n.substring(n.indexOf("(")+1,n.indexOf(")")):n=i,n||"anonymous"}});var If=h((Lee,Bb)=>{"use strict";var e$=Vb();Bb.exports=function(e){var n=0,i;function a(){return n||(n=1,i=e.apply(this,arguments),e=null),i}return a.displayName=e$(e),a}});var Cf=h($o=>{$o.get=function(t){var e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var n={},i=Error.prepareStackTrace;Error.prepareStackTrace=function(s,o){return o},Error.captureStackTrace(n,t||$o.get);var a=n.stack;return Error.prepareStackTrace=i,Error.stackTraceLimit=e,a};$o.parse=function(t){if(!t.stack)return[];var e=this,n=t.stack.split(`
|
35
|
+
`).slice(1);return n.map(function(i){if(i.match(/^\s*[-]{4,}$/))return e._createParsedCallSite({fileName:i,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var a=i.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(a){var s=null,o=null,r=null,u=null,l=null,c=a[5]==="native";if(a[1]){r=a[1];var p=r.lastIndexOf(".");if(r[p-1]=="."&&p--,p>0){s=r.substr(0,p),o=r.substr(p+1);var _=s.indexOf(".Module");_>0&&(r=r.substr(_+1),s=s.substr(0,_))}u=null}o&&(u=s,l=o),o==="<anonymous>"&&(l=null,r=null);var f={fileName:a[2]||null,lineNumber:parseInt(a[3],10)||null,functionName:r,typeName:u,methodName:l,columnNumber:parseInt(a[4],10)||null,native:c};return e._createParsedCallSite(f)}}).filter(function(i){return!!i})};function jo(t){for(var e in t)this[e]=t[e]}var t$=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],r$=["topLevel","eval","native","constructor"];t$.forEach(function(t){jo.prototype[t]=null,jo.prototype["get"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});r$.forEach(function(t){jo.prototype[t]=!1,jo.prototype["is"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});$o._createParsedCallSite=function(t){return new jo(t)}});var kb=h((wee,Gb)=>{"use strict";var{Writable:n$}=Ur();Gb.exports=class extends n${constructor(e){if(super({objectMode:!0}),!e)throw new Error("ExceptionStream requires a TransportStream instance.");this.handleExceptions=!0,this.transport=e}_write(e,n,i){return e.exception?this.transport.log(e,i):(i(),!0)}}});var Uf=h((Dee,Yb)=>{"use strict";var Hb=L("os"),o$=cs(),wf=Fo()("winston:exception"),i$=If(),Fb=Cf(),a$=kb();Yb.exports=class{constructor(e){if(!e)throw new Error("Logger is required to handle exceptions");this.logger=e,this.handlers=new Map}handle(...e){e.forEach(n=>{if(Array.isArray(n))return n.forEach(i=>this._addHandler(i));this._addHandler(n)}),this.catcher||(this.catcher=this._uncaughtException.bind(this),process.on("uncaughtException",this.catcher))}unhandle(){this.catcher&&(process.removeListener("uncaughtException",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(e=>this.logger.unpipe(e)))}getAllInfo(e){let n=null;return e&&(n=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`uncaughtException: ${n||"(no error message)"}`,e&&e.stack||" No stack trace"].join(`
|
36
|
+
`),stack:e&&e.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:Hb.loadavg(),uptime:Hb.uptime()}}getTrace(e){return(e?Fb.parse(e):Fb.get()).map(i=>({column:i.getColumnNumber(),file:i.getFileName(),function:i.getFunctionName(),line:i.getLineNumber(),method:i.getMethodName(),native:i.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleExceptions=!0;let n=new a$(e);this.handlers.set(e,n),this.logger.pipe(n)}}_uncaughtException(e){let n=this.getAllInfo(e),i=this._getExceptionHandlers(),a=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,s;!i.length&&a&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),a=!1);function o(){wf("doExit",a),wf("process._exiting",process._exiting),a&&!process._exiting&&(s&&clearTimeout(s),process.exit(1))}if(!i||i.length===0)return process.nextTick(o);o$(i,(r,u)=>{let l=i$(u),c=r.transport||r;function p(_){return()=>{wf(_),l()}}c._ending=!0,c.once("finish",p("finished")),c.once("error",p("error"))},()=>a&&o()),this.logger.log(n),a&&(s=setTimeout(o,3e3))}_getExceptionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleExceptions)}}});var jb=h((Bee,qb)=>{"use strict";var{Writable:s$}=Ur();qb.exports=class extends s${constructor(e){if(super({objectMode:!0}),!e)throw new Error("RejectionStream requires a TransportStream instance.");this.handleRejections=!0,this.transport=e}_write(e,n,i){return e.rejection?this.transport.log(e,i):(i(),!0)}}});var Vf=h((kee,Wb)=>{"use strict";var $b=L("os"),u$=cs(),Df=Fo()("winston:rejection"),l$=If(),Kb=Cf(),c$=jb();Wb.exports=class{constructor(e){if(!e)throw new Error("Logger is required to handle rejections");this.logger=e,this.handlers=new Map}handle(...e){e.forEach(n=>{if(Array.isArray(n))return n.forEach(i=>this._addHandler(i));this._addHandler(n)}),this.catcher||(this.catcher=this._unhandledRejection.bind(this),process.on("unhandledRejection",this.catcher))}unhandle(){this.catcher&&(process.removeListener("unhandledRejection",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(e=>this.logger.unpipe(e)))}getAllInfo(e){let n=null;return e&&(n=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`unhandledRejection: ${n||"(no error message)"}`,e&&e.stack||" No stack trace"].join(`
|
37
|
+
`),stack:e&&e.stack,rejection:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:$b.loadavg(),uptime:$b.uptime()}}getTrace(e){return(e?Kb.parse(e):Kb.get()).map(i=>({column:i.getColumnNumber(),file:i.getFileName(),function:i.getFunctionName(),line:i.getLineNumber(),method:i.getMethodName(),native:i.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleRejections=!0;let n=new c$(e);this.handlers.set(e,n),this.logger.pipe(n)}}_unhandledRejection(e){let n=this.getAllInfo(e),i=this._getRejectionHandlers(),a=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,s;!i.length&&a&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),a=!1);function o(){Df("doExit",a),Df("process._exiting",process._exiting),a&&!process._exiting&&(s&&clearTimeout(s),process.exit(1))}if(!i||i.length===0)return process.nextTick(o);u$(i,(r,u)=>{let l=l$(u),c=r.transport||r;function p(_){return()=>{Df(_),l()}}c._ending=!0,c.once("finish",p("finished")),c.once("error",p("error"))},()=>a&&o()),this.logger.log(n),a&&(s=setTimeout(o,3e3))}_getRejectionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleRejections)}}});var Xb=h((Hee,zb)=>{"use strict";var Bf=class{constructor(e){let n=fs();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)}};zb.exports=Bf});var fs=h((Fee,e0)=>{"use strict";var{Stream:f$,Transform:p$}=Ur(),Jb=cs(),{LEVEL:At,SPLAT:Qb}=fe(),Zb=xf(),d$=Uf(),E$=Vf(),_$=sf(),S$=Xb(),{warn:h$}=xc(),T$=is(),v$=/%[scdjifoO%]/g,ps=class extends p${constructor(e){super({objectMode:!0}),this.configure(e)}child(e){let n=this;return Object.create(n,{write:{value:function(i){let a=Object.assign({},e,i);i instanceof Error&&(a.stack=i.stack,a.message=i.message),n.write(a)}}})}configure({silent:e,format:n,defaultMeta:i,levels:a,level:s="info",exitOnError:o=!0,transports:r,colors:u,emitErrs:l,formatters:c,padLevels:p,rewriters:_,stripColors:f,exceptionHandlers:S,rejectionHandlers:v}={}){if(this.transports.length&&this.clear(),this.silent=e,this.format=n||this.format||Oc()(),this.defaultMeta=i||null,this.levels=a||this.levels||T$.npm.levels,this.level=s,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new d$(this),this.rejections=new E$(this),this.profilers={},this.exitOnError=o,r&&(r=Array.isArray(r)?r:[r],r.forEach(T=>this.add(T))),u||l||c||p||_||f)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
|
38
|
+
`));S&&this.exceptions.handle(S),v&&this.rejections.handle(v)}isLevelEnabled(e){let n=Gf(this.levels,e);if(n===null)return!1;let i=Gf(this.levels,this.level);return i===null?!1:!this.transports||this.transports.length===0?i>=n:this.transports.findIndex(s=>{let o=Gf(this.levels,s.level);return o===null&&(o=i),o>=n})!==-1}log(e,n,...i){if(arguments.length===1)return e[At]=e.level,this._addDefaultMeta(e),this.write(e),this;if(arguments.length===2)return n&&typeof n=="object"?(n[At]=n.level=e,this._addDefaultMeta(n),this.write(n),this):(n={[At]:e,level:e,message:n},this._addDefaultMeta(n),this.write(n),this);let[a]=i;if(typeof a=="object"&&a!==null&&!(n&&n.match&&n.match(v$))){let o=Object.assign({},this.defaultMeta,a,{[At]:e,[Qb]:i,level:e,message:n});return a.message&&(o.message=`${o.message} ${a.message}`),a.stack&&(o.stack=a.stack),this.write(o),this}return this.write(Object.assign({},this.defaultMeta,{[At]:e,[Qb]:i,level:e,message:n})),this}_transform(e,n,i){if(this.silent)return i();e[At]||(e[At]=e.level),!this.levels[e[At]]&&this.levels[e[At]]!==0&&console.error("[winston] Unknown logger level: %s",e[At]),this._readableState.pipes||console.error("[winston] Attempt to write logs with no transports, which can increase memory usage: %j",e);try{this.push(this.format.transform(e,this.format.options))}finally{this._writableState.sync=!1,i()}}_final(e){let n=this.transports.slice();Jb(n,(i,a)=>{if(!i||i.finished)return setImmediate(a);i.once("finish",a),i.end()},e)}add(e){let n=!Zb(e)||e.log.length>2?new _$({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(!Zb(e)||e.log.length>2)&&(n=this.transports.filter(i=>i.transport===e)[0]),n&&this.unpipe(n),this}clear(){return this.unpipe(),this}close(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}setLevels(){h$.deprecated("setLevels")}query(e,n){typeof e=="function"&&(n=e,e={}),e=e||{};let i={},a=Object.assign({},e.query||{});function s(r,u){e.query&&typeof r.formatQuery=="function"&&(e.query=r.formatQuery(a)),r.query(e,(l,c)=>{if(l)return u(l);typeof r.formatResults=="function"&&(c=r.formatResults(c,e.format)),u(null,c)})}function o(r,u){s(r,(l,c)=>{u&&(c=l||c,c&&(i[r.name]=c),u()),u=null})}Jb(this.transports.filter(r=>!!r.query),o,()=>n(null,i))}stream(e={}){let n=new f$,i=[];return n._streams=i,n.destroy=()=>{let a=i.length;for(;a--;)i[a].destroy()},this.transports.filter(a=>!!a.stream).forEach(a=>{let s=a.stream(e);s&&(i.push(s),s.on("log",o=>{o.transport=o.transport||[],o.transport.push(a.name),n.emit("log",o)}),s.on("error",o=>{o.transport=o.transport||[],o.transport.push(a.name),n.emit("error",o)}))}),n}startTimer(){return new S$(this)}profile(e,...n){let i=Date.now();if(this.profilers[e]){let a=this.profilers[e];delete this.profilers[e],typeof n[n.length-2]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),n.pop());let s=typeof n[n.length-1]=="object"?n.pop():{};return s.level=s.level||"info",s.durationMs=i-a,s.message=s.message||e,this.write(s)}return this.profilers[e]=i,this}handleExceptions(...e){console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),this.exceptions.handle(...e)}unhandleExceptions(...e){console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),this.exceptions.unhandle(...e)}cli(){throw new Error(["Logger.cli() was removed in winston@3.0.0","Use a custom winston.formats.cli() instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
|
39
|
+
`))}_onEvent(e,n){function i(a){e==="error"&&!this.transports.includes(n)&&this.add(n),this.emit(e,a,n)}n["__winston"+e]||(n["__winston"+e]=i.bind(this),n.on(e,n["__winston"+e]))}_addDefaultMeta(e){this.defaultMeta&&Object.assign(e,this.defaultMeta)}};function Gf(t,e){let n=t[e];return!n&&n!==0?null:n}Object.defineProperty(ps.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:t}=this._readableState;return Array.isArray(t)?t:[t].filter(Boolean)}});e0.exports=ps});var kf=h((Yee,t0)=>{"use strict";var{LEVEL:m$}=fe(),y$=is(),A$=fs(),O$=Fo()("winston:create-logger");function g$(t){return"is"+t.charAt(0).toUpperCase()+t.slice(1)+"Enabled"}t0.exports=function(t={}){t.levels=t.levels||y$.npm.levels;class e extends A${constructor(a){super(a)}}let n=new e(t);return Object.keys(t.levels).forEach(function(i){if(O$('Define prototype method for "%s"',i),i==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}e.prototype[i]=function(...a){let s=this||n;if(a.length===1){let[o]=a,r=o&&o.message&&o||{message:o};return r.level=r[m$]=i,s._addDefaultMeta(r),s.write(r),this||n}return a.length===0?(s.log(i,""),s):s.log(i,...a)},e.prototype[g$(i)]=function(){return(this||n).isLevelEnabled(i)}}),n}});var n0=h((jee,r0)=>{"use strict";var N$=kf();r0.exports=class{constructor(e={}){this.loggers=new Map,this.options=e}add(e,n){if(!this.loggers.has(e)){n=Object.assign({},n||this.options);let i=n.transports||this.options.transports;i?n.transports=Array.isArray(i)?i.slice():[i]:n.transports=[];let a=N$(n);a.on("close",()=>this._delete(e)),this.loggers.set(e,a)}return this.loggers.get(e)}get(e,n){return this.add(e,n)}has(e){return!!this.loggers.has(e)}close(e){if(e)return this._removeLogger(e);this.loggers.forEach((n,i)=>this._removeLogger(i))}_removeLogger(e){if(!this.loggers.has(e))return;this.loggers.get(e).close(),this._delete(e)}_delete(e){this.loggers.delete(e)}}});var i0=h(Q=>{"use strict";var o0=Mc(),{warn:Ko}=xc();Q.version=xN().version;Q.transports=xb();Q.config=is();Q.addColors=o0.levels;Q.format=o0.format;Q.createLogger=kf();Q.Logger=fs();Q.ExceptionHandler=Uf();Q.RejectionHandler=Vf();Q.Container=n0();Q.Transport=Sn();Q.loggers=new Q.Container;var Ot=Q.createLogger();Object.keys(Q.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(t=>Q[t]=(...e)=>Ot[t](...e));Object.defineProperty(Q,"level",{get(){return Ot.level},set(t){Ot.level=t}});Object.defineProperty(Q,"exceptions",{get(){return Ot.exceptions}});Object.defineProperty(Q,"rejections",{get(){return Ot.rejections}});["exitOnError"].forEach(t=>{Object.defineProperty(Q,t,{get(){return Ot[t]},set(e){Ot[t]=e}})});Object.defineProperty(Q,"default",{get(){return{exceptionHandlers:Ot.exceptionHandlers,rejectionHandlers:Ot.rejectionHandlers,transports:Ot.transports}}});Ko.deprecated(Q,"setLevels");Ko.forFunctions(Q,"useFormat",["cli"]);Ko.forProperties(Q,"useFormat",["padLevels","stripColors"]);Ko.forFunctions(Q,"deprecated",["addRewriter","addFilter","clone","extend"]);Ko.forProperties(Q,"deprecated",["emitErrs","levelLength"])});var R$,P$,b$,ds,Es,s0,u0=m(()=>{R$="exception.type",P$="exception.message",b$="exception.stacktrace",ds=R$,Es=P$,s0=b$});var l0=m(()=>{u0()});var M$,x$,L$,I$,C$,c0,_s,Wo,zo,Xo,w$,f0,p0=m(()=>{M$="process.runtime.name",x$="service.name",L$="telemetry.sdk.name",I$="telemetry.sdk.language",C$="telemetry.sdk.version",c0=M$,_s=x$,Wo=L$,zo=I$,Xo=C$,w$="nodejs",f0=w$});var d0=m(()=>{p0()});var E0=m(()=>{});var _0=m(()=>{});var Jo=m(()=>{l0();d0();E0();_0()});function yn(t){return t.setValue(Hf,!0)}function S0(t){return t.deleteValue(Hf)}function be(t){return t.getValue(Hf)===!0}var Hf,Qo=m(()=>{b();Hf=Xr("OpenTelemetry SDK Context Key SUPPRESS_TRACING")});var h0,Ss,An,hs,T0,v0,m0,Ff=m(()=>{h0="=",Ss=";",An=",",hs="baggage",T0=180,v0=4096,m0=8192});function Ts(t){return t.reduce(function(e,n){var i=""+e+(e!==""?An:"")+n;return i.length>m0?e:i},"")}function vs(t){return t.getAllEntries().map(function(e){var n=U$(e,2),i=n[0],a=n[1],s=encodeURIComponent(i)+"="+encodeURIComponent(a.value);return a.metadata!==void 0&&(s+=Ss+a.metadata.toString()),s})}function Zo(t){var e=t.split(Ss);if(!(e.length<=0)){var n=e.shift();if(n){var i=n.indexOf(h0);if(!(i<=0)){var a=decodeURIComponent(n.substring(0,i).trim()),s=decodeURIComponent(n.substring(i+1).trim()),o;return e.length>0&&(o=iE(e.join(Ss))),{key:a,value:s,metadata:o}}}}}function y0(t){return typeof t!="string"||t.length===0?{}:t.split(An).map(function(e){return Zo(e)}).filter(function(e){return e!==void 0&&e.value.length>0}).reduce(function(e,n){return e[n.key]=n.value,e},{})}var U$,Yf=m(()=>{b();Ff();U$=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}});var ms,A0=m(()=>{b();Qo();Ff();Yf();ms=function(){function t(){}return t.prototype.inject=function(e,n,i){var a=st.getBaggage(e);if(!(!a||be(e))){var s=vs(a).filter(function(r){return r.length<=v0}).slice(0,T0),o=Ts(s);o.length>0&&i.set(n,hs,o)}},t.prototype.extract=function(e,n,i){var a=i.get(n,hs),s=Array.isArray(a)?a.join(An):a;if(!s)return e;var o={};if(s.length===0)return e;var r=s.split(An);return r.forEach(function(u){var l=Zo(u);if(l){var c={value:l.value};l.metadata&&(c.metadata=l.metadata),o[l.key]=c}}),Object.entries(o).length===0?e:st.setBaggage(e,st.createBaggage(o))},t.prototype.fields=function(){return[hs]},t}()});var O0,g0=m(()=>{O0=function(){function t(e,n){this._monotonicClock=n,this._epochMillis=e.now(),this._performanceMillis=n.now()}return t.prototype.now=function(){var e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e},t}()});function ur(t){var e,n,i={};if(typeof t!="object"||t==null)return i;try{for(var a=N0(Object.entries(t)),s=a.next();!s.done;s=a.next()){var o=D$(s.value,2),r=o[0],u=o[1];if(!qf(r)){g.warn("Invalid attribute key: "+r);continue}if(!ei(u)){g.warn("Invalid attribute value set for key: "+r);continue}Array.isArray(u)?i[r]=u.slice():i[r]=u}}catch(l){e={error:l}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return i}function qf(t){return typeof t=="string"&&t.length>0}function ei(t){return t==null?!0:Array.isArray(t)?V$(t):R0(t)}function V$(t){var e,n,i;try{for(var a=N0(t),s=a.next();!s.done;s=a.next()){var o=s.value;if(o!=null){if(!i){if(R0(o)){i=typeof o;continue}return!1}if(typeof o!==i)return!1}}}catch(r){e={error:r}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return!0}function R0(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}var N0,D$,P0=m(()=>{b();N0=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},D$=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}});function ys(){return function(t){g.error(B$(t))}}function B$(t){return typeof t=="string"?t:JSON.stringify(G$(t))}function G$(t){for(var e={},n=t;n!==null;)Object.getOwnPropertyNames(n).forEach(function(i){if(!e[i]){var a=n[i];a&&(e[i]=String(a))}}),n=Object.getPrototypeOf(n);return e}var jf=m(()=>{b()});function M0(t){b0=t}function he(t){try{b0(t)}catch{}}var b0,$f=m(()=>{jf();b0=ys()});var je,Kf=m(()=>{(function(t){t.AlwaysOff="always_off",t.AlwaysOn="always_on",t.ParentBasedAlwaysOff="parentbased_always_off",t.ParentBasedAlwaysOn="parentbased_always_on",t.ParentBasedTraceIdRatio="parentbased_traceidratio",t.TraceIdRatio="traceidratio"})(je||(je={}))});function F$(t){return H$.indexOf(t)>-1}function q$(t){return Y$.indexOf(t)>-1}function $$(t){return j$.indexOf(t)>-1}function K$(t,e,n){if(!(typeof n[t]>"u")){var i=String(n[t]);e[t]=i.toLowerCase()==="true"}}function W$(t,e,n,i,a){if(i===void 0&&(i=-1/0),a===void 0&&(a=1/0),typeof n[t]<"u"){var s=Number(n[t]);isNaN(s)||(s<i?e[t]=i:s>a?e[t]=a:e[t]=s)}}function z$(t,e,n,i){i===void 0&&(i=k$);var a=n[t];typeof a=="string"&&(e[t]=a.split(i).map(function(s){return s.trim()}))}function J$(t,e,n){var i=n[t];if(typeof i=="string"){var a=X$[i.toUpperCase()];a!=null&&(e[t]=a)}}function ri(t){var e={};for(var n in ti){var i=n;switch(i){case"OTEL_LOG_LEVEL":J$(i,e,t);break;default:if(F$(i))K$(i,e,t);else if(q$(i))W$(i,e,t);else if($$(i))z$(i,e,t);else{var a=t[i];typeof a<"u"&&a!==null&&(e[i]=String(a))}}}return e}var k$,H$,Y$,j$,Br,Gr,Wf,zf,ti,X$,Xf=m(()=>{b();Kf();k$=",",H$=["OTEL_SDK_DISABLED"];Y$=["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"];j$=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];Br=1/0,Gr=128,Wf=128,zf=128,ti={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:at.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:Br,OTEL_ATTRIBUTE_COUNT_LIMIT:Gr,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:Br,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:Gr,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:Br,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:Gr,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:Wf,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:zf,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:je.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};X$={ALL:at.ALL,VERBOSE:at.VERBOSE,DEBUG:at.DEBUG,INFO:at.INFO,WARN:at.WARN,ERROR:at.ERROR,NONE:at.NONE}});function Ae(){var t=ri(process.env);return Object.assign({},ti,t)}function On(){return ri(process.env)}var x0=m(()=>{Xf()});var As,L0=m(()=>{As=typeof globalThis=="object"?globalThis:global});function I0(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function lr(t){for(var e=new Uint8Array(t.length/2),n=0,i=0;i<t.length;i+=2){var a=I0(t.charCodeAt(i)),s=I0(t.charCodeAt(i+1));e[n++]=a<<4|s}return e}var Jf=m(()=>{});function Os(t){return Buffer.from(lr(t)).toString("base64")}var C0=m(()=>{Jf()});function w0(t){return function(){for(var n=0;n<t/4;n++)gs.writeUInt32BE(Math.random()*Math.pow(2,32)>>>0,n*4);for(var n=0;n<t&&!(gs[n]>0);n++)n===t-1&&(gs[t-1]=1);return gs.toString("hex",0,t)}}var Q$,U0,Ns,gs,D0=m(()=>{Q$=8,U0=16,Ns=function(){function t(){this.generateTraceId=w0(U0),this.generateSpanId=w0(Q$)}return t}(),gs=Buffer.allocUnsafe(U0)});import{performance as Z$}from"perf_hooks";var tt,V0=m(()=>{tt=Z$});var Rs,Qf=m(()=>{Rs="1.27.0"});var gn,cr,B0=m(()=>{Qf();Jo();cr=(gn={},gn[Wo]="opentelemetry",gn[c0]="node",gn[zo]=f0,gn[Xo]=Rs,gn)});function fr(t){t.unref()}var G0=m(()=>{});var k0=m(()=>{x0();L0();C0();D0();V0();B0();G0()});var Zf=m(()=>{k0()});function Oe(t){var e=t/1e3,n=Math.trunc(e),i=Math.round(t%1e3*tK);return[n,i]}function Nn(){var t=tt.timeOrigin;if(typeof t!="number"){var e=tt;t=e.timing&&e.timing.fetchStart}return t}function ni(t){var e=Oe(Nn()),n=Oe(typeof t=="number"?t:tt.now());return ii(e,n)}function F0(t){if(Rn(t))return t;if(typeof t=="number")return t<Nn()?ni(t):Oe(t);if(t instanceof Date)return Oe(t.getTime());throw TypeError("Invalid input type")}function bs(t,e){var n=e[0]-t[0],i=e[1]-t[1];return i<0&&(n-=1,i+=Ps),[n,i]}function Y0(t){var e=H0,n=""+"0".repeat(e)+t[1]+"Z",i=n.substr(n.length-e-1),a=new Date(t[0]*1e3).toISOString();return a.replace("000Z",i)}function Ms(t){return t[0]*Ps+t[1]}function q0(t){return t[0]*1e3+t[1]/1e6}function Nt(t){return t[0]*1e6+t[1]/1e3}function Rn(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}function oi(t){return Rn(t)||typeof t=="number"||t instanceof Date}function ii(t,e){var n=[t[0]+e[0],t[1]+e[1]];return n[1]>=Ps&&(n[1]-=Ps,n[0]+=1),n}var H0,eK,tK,Ps,j0=m(()=>{Zf();H0=9,eK=6,tK=Math.pow(10,eK),Ps=Math.pow(10,H0)});var ee,$0=m(()=>{(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(ee||(ee={}))});var rK,xs,K0=m(()=>{b();rK=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},xs=function(){function t(e){e===void 0&&(e={});var n;this._propagators=(n=e.propagators)!==null&&n!==void 0?n:[],this._fields=Array.from(new Set(this._propagators.map(function(i){return typeof i.fields=="function"?i.fields():[]}).reduce(function(i,a){return i.concat(a)},[])))}return t.prototype.inject=function(e,n,i){var a,s;try{for(var o=rK(this._propagators),r=o.next();!r.done;r=o.next()){var u=r.value;try{u.inject(e,n,i)}catch(l){g.warn("Failed to inject with "+u.constructor.name+". Err: "+l.message)}}}catch(l){a={error:l}}finally{try{r&&!r.done&&(s=o.return)&&s.call(o)}finally{if(a)throw a.error}}},t.prototype.extract=function(e,n,i){return this._propagators.reduce(function(a,s){try{return s.extract(a,n,i)}catch(o){g.warn("Failed to extract with "+s.constructor.name+". Err: "+o.message)}return a},e)},t.prototype.fields=function(){return this._fields.slice()},t}()});function W0(t){return iK.test(t)}function z0(t){return aK.test(t)&&!sK.test(t)}var ep,nK,oK,iK,aK,sK,X0=m(()=>{ep="[_0-9a-z-*/]",nK="[a-z]"+ep+"{0,255}",oK="[a-z0-9]"+ep+"{0,240}@[a-z]"+ep+"{0,13}",iK=new RegExp("^(?:"+nK+"|"+oK+")$"),aK=/^[ -~]{0,255}[!-~]$/,sK=/,|=/});var J0,uK,Q0,Z0,Ls,tp=m(()=>{X0();J0=32,uK=512,Q0=",",Z0="=",Ls=function(){function t(e){this._internalState=new Map,e&&this._parse(e)}return t.prototype.set=function(e,n){var i=this._clone();return i._internalState.has(e)&&i._internalState.delete(e),i._internalState.set(e,n),i},t.prototype.unset=function(e){var n=this._clone();return n._internalState.delete(e),n},t.prototype.get=function(e){return this._internalState.get(e)},t.prototype.serialize=function(){var e=this;return this._keys().reduce(function(n,i){return n.push(i+Z0+e.get(i)),n},[]).join(Q0)},t.prototype._parse=function(e){e.length>uK||(this._internalState=e.split(Q0).reverse().reduce(function(n,i){var a=i.trim(),s=a.indexOf(Z0);if(s!==-1){var o=a.slice(0,s),r=a.slice(s+1,i.length);W0(o)&&z0(r)&&n.set(o,r)}return n},new Map),this._internalState.size>J0&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,J0))))},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 rp(t){var e=EK.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}var ai,si,lK,cK,fK,pK,dK,EK,Is,eM=m(()=>{b();Qo();tp();ai="traceparent",si="tracestate",lK="00",cK="(?!ff)[\\da-f]{2}",fK="(?![0]{32})[\\da-f]{32}",pK="(?![0]{16})[\\da-f]{16}",dK="[\\da-f]{2}",EK=new RegExp("^\\s?("+cK+")-("+fK+")-("+pK+")-("+dK+")(-.*)?\\s?$");Is=function(){function t(){}return t.prototype.inject=function(e,n,i){var a=X.getSpanContext(e);if(!(!a||be(e)||!_t(a))){var s=lK+"-"+a.traceId+"-"+a.spanId+"-0"+Number(a.traceFlags||J.NONE).toString(16);i.set(n,ai,s),a.traceState&&i.set(n,si,a.traceState.serialize())}},t.prototype.extract=function(e,n,i){var a=i.get(n,ai);if(!a)return e;var s=Array.isArray(a)?a[0]:a;if(typeof s!="string")return e;var o=rp(s);if(!o)return e;o.isRemote=!0;var r=i.get(n,si);if(r){var u=Array.isArray(r)?r.join(","):r;o.traceState=new Ls(typeof u=="string"?u:void 0)}return X.setSpanContext(e,o)},t.prototype.fields=function(){return[ai,si]},t}()});function tM(t,e){return t.setValue(np,e)}function rM(t){return t.deleteValue(np)}function nM(t){return t.getValue(np)}var np,Cs,oM=m(()=>{b();np=Xr("OpenTelemetry SDK Context Key RPC_METADATA");(function(t){t.HTTP="http"})(Cs||(Cs={}))});var ui,op=m(()=>{b();ui=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:St.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}()});var Pn,ip=m(()=>{b();Pn=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:St.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}()});var iM,aM=m(()=>{b();$f();op();ip();iM=function(){function t(e){var n,i,a,s;this._root=e.root,this._root||(he(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Pn),this._remoteParentSampled=(n=e.remoteParentSampled)!==null&&n!==void 0?n:new Pn,this._remoteParentNotSampled=(i=e.remoteParentNotSampled)!==null&&i!==void 0?i:new ui,this._localParentSampled=(a=e.localParentSampled)!==null&&a!==void 0?a:new Pn,this._localParentNotSampled=(s=e.localParentNotSampled)!==null&&s!==void 0?s:new ui}return t.prototype.shouldSample=function(e,n,i,a,s,o){var r=X.getSpanContext(e);return!r||!_t(r)?this._root.shouldSample(e,n,i,a,s,o):r.isRemote?r.traceFlags&J.SAMPLED?this._remoteParentSampled.shouldSample(e,n,i,a,s,o):this._remoteParentNotSampled.shouldSample(e,n,i,a,s,o):r.traceFlags&J.SAMPLED?this._localParentSampled.shouldSample(e,n,i,a,s,o):this._localParentNotSampled.shouldSample(e,n,i,a,s,o)},t.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},t}()});var sM,uM=m(()=>{b();sM=function(){function t(e){e===void 0&&(e=0),this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}return t.prototype.shouldSample=function(e,n){return{decision:Ft(n)&&this._accumulate(n)<this._upperBound?St.RECORD_AND_SAMPLED:St.NOT_RECORD}},t.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},t.prototype._normalize=function(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e},t.prototype._accumulate=function(e){for(var n=0,i=0;i<e.length/8;i++){var a=i*8,s=parseInt(e.slice(a,a+8),16);n=(n^s)>>>0}return n},t}()});function yK(t,e){return function(n){return t(e(n))}}function ap(t){if(!AK(t)||OK(t)!==_K)return!1;var e=mK(t);if(e===null)return!0;var n=fM.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&lM.call(n)===vK}function AK(t){return t!=null&&typeof t=="object"}function OK(t){return t==null?t===void 0?hK:SK:kr&&kr in Object(t)?gK(t):NK(t)}function gK(t){var e=fM.call(t,kr),n=t[kr],i=!1;try{t[kr]=void 0,i=!0}catch{}var a=pM.call(t);return i&&(e?t[kr]=n:delete t[kr]),a}function NK(t){return pM.call(t)}var _K,SK,hK,TK,lM,vK,mK,cM,fM,kr,pM,dM=m(()=>{_K="[object Object]",SK="[object Null]",hK="[object Undefined]",TK=Function.prototype,lM=TK.toString,vK=lM.call(Object),mK=yK(Object.getPrototypeOf,Object),cM=Object.prototype,fM=cM.hasOwnProperty,kr=Symbol?Symbol.toStringTag:void 0,pM=cM.toString});function Ds(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t.shift(),i=new WeakMap;t.length>0;)n=_M(n,t.shift(),0,i);return n}function sp(t){return Us(t)?t.slice():t}function _M(t,e,n,i){n===void 0&&(n=0);var a;if(!(n>RK)){if(n++,ws(t)||ws(e)||SM(e))a=sp(e);else if(Us(t)){if(a=t.slice(),Us(e))for(var s=0,o=e.length;s<o;s++)a.push(sp(e[s]));else if(li(e))for(var r=Object.keys(e),s=0,o=r.length;s<o;s++){var u=r[s];a[u]=sp(e[u])}}else if(li(t))if(li(e)){if(!PK(t,e))return e;a=Object.assign({},t);for(var r=Object.keys(e),s=0,o=r.length;s<o;s++){var u=r[s],l=e[u];if(ws(l))typeof l>"u"?delete a[u]:a[u]=l;else{var c=a[u],p=l;if(EM(t,u,i)||EM(e,u,i))delete a[u];else{if(li(c)&&li(p)){var _=i.get(c)||[],f=i.get(p)||[];_.push({obj:t,key:u}),f.push({obj:e,key:u}),i.set(c,_),i.set(p,f)}a[u]=_M(a[u],l,n,i)}}}}else a=e;return a}}function EM(t,e,n){for(var i=n.get(t[e])||[],a=0,s=i.length;a<s;a++){var o=i[a];if(o.key===e&&o.obj===t)return!0}return!1}function Us(t){return Array.isArray(t)}function SM(t){return typeof t=="function"}function li(t){return!ws(t)&&!Us(t)&&!SM(t)&&typeof t=="object"}function ws(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function PK(t,e){return!(!ap(t)||!ap(e))}var RK,hM=m(()=>{dM();RK=20});function TM(t,e){var n,i=new Promise(function(s,o){n=setTimeout(function(){o(new up("Operation timed out."))},e)});return Promise.race([t,i]).then(function(a){return clearTimeout(n),a},function(a){throw clearTimeout(n),a})}var bK,up,vM=m(()=>{bK=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),up=function(t){bK(e,t);function e(n){var i=t.call(this,n)||this;return Object.setPrototypeOf(i,e.prototype),i}return e}(Error)});function lp(t,e){return typeof e=="string"?t===e:!!t.match(e)}function mM(t,e){var n,i;if(!e)return!1;try{for(var a=MK(e),s=a.next();!s.done;s=a.next()){var o=s.value;if(lp(t,o))return!0}}catch(r){n={error:r}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return!1}var MK,yM=m(()=>{MK=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}});function AM(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}var OM=m(()=>{});var gM,NM=m(()=>{gM=function(){function t(){var e=this;this._promise=new Promise(function(n,i){e._resolve=n,e._reject=i})}return Object.defineProperty(t.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),t.prototype.resolve=function(e){this._resolve(e)},t.prototype.reject=function(e){this._reject(e)},t}()});var xK,LK,pr,RM=m(()=>{NM();xK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},LK=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},pr=function(){function t(e,n){this._callback=e,this._that=n,this._isCalled=!1,this._deferred=new gM}return Object.defineProperty(t.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),t.prototype.call=function(){for(var e,n=this,i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((e=this._callback).call.apply(e,LK([this._that],xK(i),!1))).then(function(s){return n._deferred.resolve(s)},function(s){return n._deferred.reject(s)})}catch(s){this._deferred.reject(s)}}return this._deferred.promise},t}()});function PM(t,e){return new Promise(function(n){He.with(yn(He.active()),function(){t.export(e,function(i){n(i)})})})}var bM=m(()=>{b();Qo()});var Vs={};it(Vs,{AlwaysOffSampler:()=>ui,AlwaysOnSampler:()=>Pn,AnchoredClock:()=>O0,BindOnceFuture:()=>pr,CompositePropagator:()=>xs,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>Gr,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>Br,DEFAULT_ENVIRONMENT:()=>ti,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:()=>Wf,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:()=>zf,ExportResultCode:()=>ee,ParentBasedSampler:()=>iM,RPCType:()=>Cs,RandomIdGenerator:()=>Ns,SDK_INFO:()=>cr,TRACE_PARENT_HEADER:()=>ai,TRACE_STATE_HEADER:()=>si,TimeoutError:()=>up,TraceIdRatioBasedSampler:()=>sM,TraceState:()=>Ls,TracesSamplerValues:()=>je,VERSION:()=>Rs,W3CBaggagePropagator:()=>ms,W3CTraceContextPropagator:()=>Is,_globalThis:()=>As,addHrTimes:()=>ii,baggageUtils:()=>bn,callWithTimeout:()=>TM,deleteRPCMetadata:()=>rM,getEnv:()=>Ae,getEnvWithoutDefaults:()=>On,getRPCMetadata:()=>nM,getTimeOrigin:()=>Nn,globalErrorHandler:()=>he,hexToBase64:()=>Os,hexToBinary:()=>lr,hrTime:()=>ni,hrTimeDuration:()=>bs,hrTimeToMicroseconds:()=>Nt,hrTimeToMilliseconds:()=>q0,hrTimeToNanoseconds:()=>Ms,hrTimeToTimeStamp:()=>Y0,internal:()=>ci,isAttributeKey:()=>qf,isAttributeValue:()=>ei,isTimeInput:()=>oi,isTimeInputHrTime:()=>Rn,isTracingSuppressed:()=>be,isUrlIgnored:()=>mM,isWrapped:()=>AM,loggingErrorHandler:()=>ys,merge:()=>Ds,millisToHrTime:()=>Oe,otperformance:()=>tt,parseEnvironment:()=>ri,parseTraceParent:()=>rp,sanitizeAttributes:()=>ur,setGlobalErrorHandler:()=>M0,setRPCMetadata:()=>tM,suppressTracing:()=>yn,timeInputToHrTime:()=>F0,unrefTimer:()=>fr,unsuppressTracing:()=>S0,urlMatches:()=>lp});var bn,ci,K=m(()=>{A0();g0();P0();$f();jf();j0();Jf();$0();Yf();Zf();K0();eM();oM();op();ip();aM();uM();Qo();tp();Xf();hM();Kf();vM();yM();OM();RM();Qf();bM();bn={getKeyPairs:vs,serializeKeyPairs:Ts,parseKeyPairsIntoRecord:y0,parsePairKeyValue:Zo},ci={_export:PM}});function Bs(){return"unknown_service:"+process.argv0}var MM=m(()=>{});var xM=m(()=>{MM()});var LM=m(()=>{xM()});var dr,IK,CK,wK,Bt,cp=m(()=>{b();Jo();K();LM();dr=function(){return dr=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},dr.apply(this,arguments)},IK=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},CK=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},wK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Bt=function(){function t(e,n){var i=this,a;this._attributes=e,this.asyncAttributesPending=n!=null,this._syncAttributes=(a=this._attributes)!==null&&a!==void 0?a:{},this._asyncAttributesPromise=n?.then(function(s){return i._attributes=Object.assign({},i._attributes,s),i.asyncAttributesPending=!1,s},function(s){return g.debug("a resource's async attributes promise rejected: %s",s),i.asyncAttributesPending=!1,{}})}return t.empty=function(){return t.EMPTY},t.default=function(){var e;return new t((e={},e[_s]=Bs(),e[zo]=cr[zo],e[Wo]=cr[Wo],e[Xo]=cr[Xo],e))},Object.defineProperty(t.prototype,"attributes",{get:function(){var e;return this.asyncAttributesPending&&g.error("Accessing resource attributes before async attributes settled"),(e=this._attributes)!==null&&e!==void 0?e:{}},enumerable:!1,configurable:!0}),t.prototype.waitForAsyncAttributes=function(){return IK(this,void 0,void 0,function(){return CK(this,function(e){switch(e.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})},t.prototype.merge=function(e){var n=this,i;if(!e)return this;var a=dr(dr({},this._syncAttributes),(i=e._syncAttributes)!==null&&i!==void 0?i:e.attributes);if(!this._asyncAttributesPromise&&!e._asyncAttributesPromise)return new t(a);var s=Promise.all([this._asyncAttributesPromise,e._asyncAttributesPromise]).then(function(o){var r,u=wK(o,2),l=u[0],c=u[1];return dr(dr(dr(dr({},n._syncAttributes),l),(r=e._syncAttributes)!==null&&r!==void 0?r:e.attributes),c)});return new t(a,s)},t.EMPTY=new t({}),t}()});var UK,DK,VK,fp,IM=m(()=>{b();K();Jo();cp();UK=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},DK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},VK=function(){function t(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return t.prototype.detect=function(e){var n={},i=Ae(),a=i.OTEL_RESOURCE_ATTRIBUTES,s=i.OTEL_SERVICE_NAME;if(a)try{var o=this._parseResourceAttributes(a);Object.assign(n,o)}catch(r){g.debug("EnvDetector failed: "+r.message)}return s&&(n[_s]=s),new Bt(n)},t.prototype._parseResourceAttributes=function(e){var n,i;if(!e)return{};var a={},s=e.split(this._COMMA_SEPARATOR,-1);try{for(var o=UK(s),r=o.next();!r.done;r=o.next()){var u=r.value,l=u.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(l.length===2){var c=DK(l,2),p=c[0],_=c[1];if(p=p.trim(),_=_.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(p))throw new Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(_))throw new Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);a[p]=decodeURIComponent(_)}}}catch(f){n={error:f}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return a},t.prototype._isValid=function(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)},t.prototype._isBaggageOctetString=function(e){for(var n=0;n<e.length;n++){var i=e.charCodeAt(n);if(i<33||i===44||i===59||i===92||i>126)return!1}return!0},t.prototype._isValidAndNotEmpty=function(e){return e.length>0&&this._isValid(e)},t}(),fp=new VK});var BK,Gs,CM=m(()=>{IM();BK=function(){function t(){}return t.prototype.detect=function(e){return Promise.resolve(fp.detect(e))},t}(),Gs=new BK});var wM=m(()=>{CM()});var ks=m(()=>{cp();wM()});var ge,Hs=m(()=>{(function(t){t[t.DELTA=0]="DELTA",t[t.CUMULATIVE=1]="CUMULATIVE"})(ge||(ge={}))});var Ne,Mn=m(()=>{(function(t){t[t.HISTOGRAM=0]="HISTOGRAM",t[t.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",t[t.GAUGE=2]="GAUGE",t[t.SUM=3]="SUM"})(Ne||(Ne={}))});function VM(t){return t!=null}function BM(t){var e=Object.keys(t);return e.length===0?"":(e=e.sort(),JSON.stringify(e.map(function(n){return[n,t[n]]})))}function GM(t){var e,n;return t.name+":"+((e=t.version)!==null&&e!==void 0?e:"")+":"+((n=t.schemaUrl)!==null&&n!==void 0?n:"")}function Er(t,e){var n,i=new Promise(function(s,o){n=setTimeout(function(){o(new fi("Operation timed out."))},e)});return Promise.race([t,i]).then(function(a){return clearTimeout(n),a},function(a){throw clearTimeout(n),a})}function kM(t){return UM(this,void 0,void 0,function(){var e=this;return DM(this,function(n){return[2,Promise.all(t.map(function(i){return UM(e,void 0,void 0,function(){var a,s;return DM(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,i];case 1:return a=o.sent(),[2,{status:"fulfilled",value:a}];case 2:return s=o.sent(),[2,{status:"rejected",reason:s}];case 3:return[2]}})})}))]})})}function HM(t){return t.status==="rejected"}function pp(t,e){var n=[];return t.forEach(function(i){n.push.apply(n,HK([],kK(e(i)),!1))}),n}function FM(t,e){var n,i;if(t.size!==e.size)return!1;try{for(var a=FK(t),s=a.next();!s.done;s=a.next()){var o=s.value;if(!e.has(o))return!1}}catch(r){n={error:r}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return!0}function YM(t,e){for(var n=0,i=t.length-1,a=t.length;i>=n;){var s=n+Math.trunc((i-n)/2);t[s]<e?n=s+1:(a=s,i=s-1)}return a}function qM(t,e){return t.toLowerCase()===e.toLowerCase()}var GK,UM,DM,kK,HK,FK,fi,Rt=m(()=>{GK=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),UM=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},DM=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},kK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},HK=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},FK=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};fi=function(t){GK(e,t);function e(n){var i=t.call(this,n)||this;return Object.setPrototypeOf(i,e.prototype),i}return e}(Error)});var rt,xn=m(()=>{(function(t){t[t.DROP=0]="DROP",t[t.SUM=1]="SUM",t[t.LAST_VALUE=2]="LAST_VALUE",t[t.HISTOGRAM=3]="HISTOGRAM",t[t.EXPONENTIAL_HISTOGRAM=4]="EXPONENTIAL_HISTOGRAM"})(rt||(rt={}))});var dp,jM=m(()=>{xn();dp=function(){function t(){this.kind=rt.DROP}return t.prototype.createAccumulation=function(){},t.prototype.merge=function(e,n){},t.prototype.diff=function(e,n){},t.prototype.toMetricData=function(e,n,i,a){},t}()});function Pt(t,e,n){var i,a,s,o;return qK(t)||g.warn('Invalid metric name: "'+t+'". The metric name should be a ASCII string with a length no greater than 255 characters.'),{name:t,type:e,description:(i=n?.description)!==null&&i!==void 0?i:"",unit:(a=n?.unit)!==null&&a!==void 0?a:"",valueType:(s=n?.valueType)!==null&&s!==void 0?s:Et.DOUBLE,advice:(o=n?.advice)!==null&&o!==void 0?o:{}}}function $M(t,e){var n,i;return{name:(n=t.name)!==null&&n!==void 0?n:e.name,description:(i=t.description)!==null&&i!==void 0?i:e.description,type:e.type,unit:e.unit,valueType:e.valueType,advice:e.advice}}function KM(t,e){return qM(t.name,e.name)&&t.unit===e.unit&&t.type===e.type&&t.valueType===e.valueType}function qK(t){return t.match(YK)!=null}var C,YK,Gt=m(()=>{b();Rt();(function(t){t.COUNTER="COUNTER",t.GAUGE="GAUGE",t.HISTOGRAM="HISTOGRAM",t.UP_DOWN_COUNTER="UP_DOWN_COUNTER",t.OBSERVABLE_COUNTER="OBSERVABLE_COUNTER",t.OBSERVABLE_GAUGE="OBSERVABLE_GAUGE",t.OBSERVABLE_UP_DOWN_COUNTER="OBSERVABLE_UP_DOWN_COUNTER"})(C||(C={}));YK=/^[a-z][a-z0-9_.\-/]{0,254}$/i});function $K(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 jK,Fs,Ys,WM=m(()=>{xn();Mn();Gt();Rt();jK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s};Fs=function(){function t(e,n,i,a){i===void 0&&(i=!0),a===void 0&&(a=$K(n)),this.startTime=e,this._boundaries=n,this._recordMinMax=i,this._current=a}return t.prototype.record=function(e){if(!Number.isNaN(e)){this._current.count+=1,this._current.sum+=e,this._recordMinMax&&(this._current.min=Math.min(e,this._current.min),this._current.max=Math.max(e,this._current.max),this._current.hasMinMax=!0);var n=YM(this._boundaries,e);this._current.buckets.counts[n]+=1}},t.prototype.setStartTime=function(e){this.startTime=e},t.prototype.toPointValue=function(){return this._current},t}(),Ys=function(){function t(e,n){this._boundaries=e,this._recordMinMax=n,this.kind=rt.HISTOGRAM}return t.prototype.createAccumulation=function(e){return new Fs(e,this._boundaries,this._recordMinMax)},t.prototype.merge=function(e,n){for(var i=e.toPointValue(),a=n.toPointValue(),s=i.buckets.counts,o=a.buckets.counts,r=new Array(s.length),u=0;u<s.length;u++)r[u]=s[u]+o[u];var l=1/0,c=-1/0;return this._recordMinMax&&(i.hasMinMax&&a.hasMinMax?(l=Math.min(i.min,a.min),c=Math.max(i.max,a.max)):i.hasMinMax?(l=i.min,c=i.max):a.hasMinMax&&(l=a.min,c=a.max)),new Fs(e.startTime,i.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:i.buckets.boundaries,counts:r},count:i.count+a.count,sum:i.sum+a.sum,hasMinMax:this._recordMinMax&&(i.hasMinMax||a.hasMinMax),min:l,max:c})},t.prototype.diff=function(e,n){for(var i=e.toPointValue(),a=n.toPointValue(),s=i.buckets.counts,o=a.buckets.counts,r=new Array(s.length),u=0;u<s.length;u++)r[u]=o[u]-s[u];return new Fs(n.startTime,i.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:i.buckets.boundaries,counts:r},count:a.count-i.count,sum:a.sum-i.sum,hasMinMax:!1,min:1/0,max:-1/0})},t.prototype.toMetricData=function(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:Ne.HISTOGRAM,dataPoints:i.map(function(s){var o=jK(s,2),r=o[0],u=o[1],l=u.toPointValue(),c=e.type===C.GAUGE||e.type===C.UP_DOWN_COUNTER||e.type===C.OBSERVABLE_GAUGE||e.type===C.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:r,startTime:u.startTime,endTime:a,value:{min:l.hasMinMax?l.min:void 0,max:l.hasMinMax?l.max:void 0,sum:c?void 0:l.sum,buckets:l.buckets,count:l.count}}})}},t}()});var Ep,_p,Sp,KK,zM=m(()=>{Ep=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},_p=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},Sp=function(){function t(e,n,i,a){e===void 0&&(e=new KK),n===void 0&&(n=0),i===void 0&&(i=0),a===void 0&&(a=0),this.backing=e,this.indexBase=n,this.indexStart=i,this.indexEnd=a}return Object.defineProperty(t.prototype,"offset",{get:function(){return this.indexStart},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this.backing.length===0||this.indexEnd===this.indexStart&&this.at(0)===0?0:this.indexEnd-this.indexStart+1},enumerable:!1,configurable:!0}),t.prototype.counts=function(){var e=this;return Array.from({length:this.length},function(n,i){return e.at(i)})},t.prototype.at=function(e){var n=this.indexBase-this.indexStart;return e<n&&(e+=this.backing.length),e-=n,this.backing.countAt(e)},t.prototype.incrementBucket=function(e,n){this.backing.increment(e,n)},t.prototype.decrementBucket=function(e,n){this.backing.decrement(e,n)},t.prototype.trim=function(){for(var e=0;e<this.length;e++)if(this.at(e)!==0){this.indexStart+=e;break}else if(e===this.length-1){this.indexStart=this.indexEnd=this.indexBase=0;return}for(var e=this.length-1;e>=0;e--)if(this.at(e)!==0){this.indexEnd-=this.length-e-1;break}this._rotate()},t.prototype.downscale=function(e){this._rotate();for(var n=1+this.indexEnd-this.indexStart,i=1<<e,a=0,s=0,o=this.indexStart;o<=this.indexEnd;){var r=o%i;r<0&&(r+=i);for(var u=r;u<i&&a<n;u++)this._relocateBucket(s,a),a++,o++;s++}this.indexStart>>=e,this.indexEnd>>=e,this.indexBase=this.indexStart},t.prototype.clone=function(){return new t(this.backing.clone(),this.indexBase,this.indexStart,this.indexEnd)},t.prototype._rotate=function(){var e=this.indexBase-this.indexStart;e!==0&&(e>0?(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,e),this.backing.reverse(e,this.backing.length)):(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,this.backing.length+e)),this.indexBase=this.indexStart)},t.prototype._relocateBucket=function(e,n){e!==n&&this.incrementBucket(e,this.backing.emptyBucket(n))},t}(),KK=function(){function t(e){e===void 0&&(e=[0]),this._counts=e}return Object.defineProperty(t.prototype,"length",{get:function(){return this._counts.length},enumerable:!1,configurable:!0}),t.prototype.countAt=function(e){return this._counts[e]},t.prototype.growTo=function(e,n,i){var a=new Array(e).fill(0);a.splice.apply(a,_p([i,this._counts.length-n],Ep(this._counts.slice(n)),!1)),a.splice.apply(a,_p([0,n],Ep(this._counts.slice(0,n)),!1)),this._counts=a},t.prototype.reverse=function(e,n){for(var i=Math.floor((e+n)/2)-e,a=0;a<i;a++){var s=this._counts[e+a];this._counts[e+a]=this._counts[n-a-1],this._counts[n-a-1]=s}},t.prototype.emptyBucket=function(e){var n=this._counts[e];return this._counts[e]=0,n},t.prototype.increment=function(e,n){this._counts[e]+=n},t.prototype.decrement=function(e,n){this._counts[e]>=n?this._counts[e]-=n:this._counts[e]=0},t.prototype.clone=function(){return new t(_p([],Ep(this._counts),!1))},t}()});function $s(t){var e=new DataView(new ArrayBuffer(8));e.setFloat64(0,t);var n=e.getUint32(0),i=(n&WK)>>20;return i-hp}function Ks(t){var e=new DataView(new ArrayBuffer(8));e.setFloat64(0,t);var n=e.getUint32(0),i=e.getUint32(4),a=(n&zK)*Math.pow(2,32);return a+i}var XM,WK,zK,hp,qs,js,pi,Tp=m(()=>{XM=52,WK=2146435072,zK=1048575,hp=1023,qs=-hp+1,js=hp,pi=Math.pow(2,-1022)});function di(t,e){return t===0||t===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY||Number.isNaN(t)?t:t*Math.pow(2,e)}function QM(t){return t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,t++,t}var Ws=m(()=>{});var XK,_r,zs=m(()=>{XK=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),_r=function(t){XK(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Error)});var ex,tx=m(()=>{Tp();Ws();zs();ex=function(){function t(e){this._shift=-e}return t.prototype.mapToIndex=function(e){if(e<pi)return this._minNormalLowerBoundaryIndex();var n=$s(e),i=this._rightShift(Ks(e)-1,XM);return n+i>>this._shift},t.prototype.lowerBoundary=function(e){var n=this._minNormalLowerBoundaryIndex();if(e<n)throw new _r("underflow: "+e+" is < minimum lower boundary: "+n);var i=this._maxNormalLowerBoundaryIndex();if(e>i)throw new _r("overflow: "+e+" is > maximum lower boundary: "+i);return di(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=qs>>this._shift;return this._shift<2&&e--,e},t.prototype._maxNormalLowerBoundaryIndex=function(){return js>>this._shift},t.prototype._rightShift=function(e,n){return Math.floor(e*Math.pow(2,-n))},t}()});var rx,nx=m(()=>{Tp();Ws();zs();rx=function(){function t(e){this._scale=e,this._scaleFactor=di(Math.LOG2E,e),this._inverseFactor=di(Math.LN2,-e)}return t.prototype.mapToIndex=function(e){if(e<=pi)return this._minNormalLowerBoundaryIndex()-1;if(Ks(e)===0){var n=$s(e);return(n<<this._scale)-1}var i=Math.floor(Math.log(e)*this._scaleFactor),a=this._maxNormalLowerBoundaryIndex();return i>=a?a:i},t.prototype.lowerBoundary=function(e){var n=this._maxNormalLowerBoundaryIndex();if(e>=n){if(e===n)return 2*Math.exp((e-(1<<this._scale))/this._scaleFactor);throw new _r("overflow: "+e+" is > maximum lower boundary: "+n)}var i=this._minNormalLowerBoundaryIndex();if(e<=i){if(e===i)return pi;if(e===i-1)return Math.exp((e+(1<<this._scale))/this._scaleFactor)/2;throw new _r("overflow: "+e+" is < minimum lower boundary: "+i)}return Math.exp(e*this._inverseFactor)},Object.defineProperty(t.prototype,"scale",{get:function(){return this._scale},enumerable:!1,configurable:!0}),t.prototype._minNormalLowerBoundaryIndex=function(){return qs<<this._scale},t.prototype._maxNormalLowerBoundaryIndex=function(){return(js+1<<this._scale)-1},t}()});function vp(t){if(t>ix||t<ox)throw new _r("expected scale >= "+ox+" && <= "+ix+", got: "+t);return JK[t+10]}var ox,ix,JK,ax=m(()=>{tx();nx();zs();ox=-10,ix=20,JK=Array.from({length:31},function(t,e){return e>10?new rx(e-10):new ex(e-10)})});var QK,Xs,ZK,e8,mp,sx,yp,ux=m(()=>{xn();Mn();b();Gt();zM();ax();Ws();QK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Xs=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}(),ZK=20,e8=160,mp=2,sx=function(){function t(e,n,i,a,s,o,r,u,l,c,p){e===void 0&&(e=e),n===void 0&&(n=e8),i===void 0&&(i=!0),a===void 0&&(a=0),s===void 0&&(s=0),o===void 0&&(o=0),r===void 0&&(r=Number.POSITIVE_INFINITY),u===void 0&&(u=Number.NEGATIVE_INFINITY),l===void 0&&(l=new Sp),c===void 0&&(c=new Sp),p===void 0&&(p=vp(ZK)),this.startTime=e,this._maxSize=n,this._recordMinMax=i,this._sum=a,this._count=s,this._zeroCount=o,this._min=r,this._max=u,this._positive=l,this._negative=c,this._mapping=p,this._maxSize<mp&&(g.warn("Exponential Histogram Max Size set to "+this._maxSize+", changing to the minimum size of: "+mp),this._maxSize=mp)}return t.prototype.record=function(e){this.updateByIncrement(e,1)},t.prototype.setStartTime=function(e){this.startTime=e},t.prototype.toPointValue=function(){return{hasMinMax:this._recordMinMax,min:this.min,max:this.max,sum:this.sum,positive:{offset:this.positive.offset,bucketCounts:this.positive.counts()},negative:{offset:this.negative.offset,bucketCounts:this.negative.counts()},count:this.count,scale:this.scale,zeroCount:this.zeroCount}},Object.defineProperty(t.prototype,"sum",{get:function(){return this._sum},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this._min},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this._max},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this._count},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"zeroCount",{get:function(){return this._zeroCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scale",{get:function(){return this._count===this._zeroCount?0:this._mapping.scale},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"positive",{get:function(){return this._positive},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"negative",{get:function(){return this._negative},enumerable:!1,configurable:!0}),t.prototype.updateByIncrement=function(e,n){if(!Number.isNaN(e)){if(e>this._max&&(this._max=e),e<this._min&&(this._min=e),this._count+=n,e===0){this._zeroCount+=n;return}this._sum+=e*n,e>0?this._updateBuckets(this._positive,e,n):this._updateBuckets(this._negative,-e,n)}},t.prototype.merge=function(e){this._count===0?(this._min=e.min,this._max=e.max):e.count!==0&&(e.min<this.min&&(this._min=e.min),e.max>this.max&&(this._max=e.max)),this.startTime=e.startTime,this._sum+=e.sum,this._count+=e.count,this._zeroCount+=e.zeroCount;var n=this._minScale(e);this._downscale(this.scale-n),this._mergeBuckets(this.positive,e,e.positive,n),this._mergeBuckets(this.negative,e,e.negative,n)},t.prototype.diff=function(e){this._min=1/0,this._max=-1/0,this._sum-=e.sum,this._count-=e.count,this._zeroCount-=e.zeroCount;var n=this._minScale(e);this._downscale(this.scale-n),this._diffBuckets(this.positive,e,e.positive,n),this._diffBuckets(this.negative,e,e.negative,n)},t.prototype.clone=function(){return new t(this.startTime,this._maxSize,this._recordMinMax,this._sum,this._count,this._zeroCount,this._min,this._max,this.positive.clone(),this.negative.clone(),this._mapping)},t.prototype._updateBuckets=function(e,n,i){var a=this._mapping.mapToIndex(n),s=!1,o=0,r=0;if(e.length===0?(e.indexStart=a,e.indexEnd=e.indexStart,e.indexBase=e.indexStart):a<e.indexStart&&e.indexEnd-a>=this._maxSize?(s=!0,r=a,o=e.indexEnd):a>e.indexEnd&&a-e.indexStart>=this._maxSize&&(s=!0,r=e.indexStart,o=a),s){var u=this._changeScale(o,r);this._downscale(u),a=this._mapping.mapToIndex(n)}this._incrementIndexBy(e,a,i)},t.prototype._incrementIndexBy=function(e,n,i){if(i!==0){if(e.length===0&&(e.indexStart=e.indexEnd=e.indexBase=n),n<e.indexStart){var a=e.indexEnd-n;a>=e.backing.length&&this._grow(e,a+1),e.indexStart=n}else if(n>e.indexEnd){var a=n-e.indexStart;a>=e.backing.length&&this._grow(e,a+1),e.indexEnd=n}var s=n-e.indexBase;s<0&&(s+=e.backing.length),e.incrementBucket(s,i)}},t.prototype._grow=function(e,n){var i=e.backing.length,a=e.indexBase-e.indexStart,s=i-a,o=QM(n);o>this._maxSize&&(o=this._maxSize);var r=o-a;e.backing.growTo(o,s,r)},t.prototype._changeScale=function(e,n){for(var i=0;e-n>=this._maxSize;)e>>=1,n>>=1,i++;return i},t.prototype._downscale=function(e){if(e!==0){if(e<0)throw new Error("impossible change of scale: "+this.scale);var n=this._mapping.scale-e;this._positive.downscale(e),this._negative.downscale(e),this._mapping=vp(n)}},t.prototype._minScale=function(e){var n=Math.min(this.scale,e.scale),i=Xs.combine(this._highLowAtScale(this.positive,this.scale,n),this._highLowAtScale(e.positive,e.scale,n)),a=Xs.combine(this._highLowAtScale(this.negative,this.scale,n),this._highLowAtScale(e.negative,e.scale,n));return Math.min(n-this._changeScale(i.high,i.low),n-this._changeScale(a.high,a.low))},t.prototype._highLowAtScale=function(e,n,i){if(e.length===0)return new Xs(0,-1);var a=n-i;return new Xs(e.indexStart>>a,e.indexEnd>>a)},t.prototype._mergeBuckets=function(e,n,i,a){for(var s=i.offset,o=n.scale-a,r=0;r<i.length;r++)this._incrementIndexBy(e,s+r>>o,i.at(r))},t.prototype._diffBuckets=function(e,n,i,a){for(var s=i.offset,o=n.scale-a,r=0;r<i.length;r++){var u=s+r>>o,l=u-e.indexBase;l<0&&(l+=e.backing.length),e.decrementBucket(l,i.at(r))}e.trim()},t}(),yp=function(){function t(e,n){this._maxSize=e,this._recordMinMax=n,this.kind=rt.EXPONENTIAL_HISTOGRAM}return t.prototype.createAccumulation=function(e){return new sx(e,this._maxSize,this._recordMinMax)},t.prototype.merge=function(e,n){var i=n.clone();return i.merge(e),i},t.prototype.diff=function(e,n){var i=n.clone();return i.diff(e),i},t.prototype.toMetricData=function(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:Ne.EXPONENTIAL_HISTOGRAM,dataPoints:i.map(function(s){var o=QK(s,2),r=o[0],u=o[1],l=u.toPointValue(),c=e.type===C.GAUGE||e.type===C.UP_DOWN_COUNTER||e.type===C.OBSERVABLE_GAUGE||e.type===C.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:r,startTime:u.startTime,endTime:a,value:{min:l.hasMinMax?l.min:void 0,max:l.hasMinMax?l.max:void 0,sum:c?void 0:l.sum,positive:{offset:l.positive.offset,bucketCounts:l.positive.bucketCounts},negative:{offset:l.negative.offset,bucketCounts:l.negative.bucketCounts},count:l.count,scale:l.scale,zeroCount:l.zeroCount}}})}},t}()});var t8,Js,Ap,lx=m(()=>{xn();K();Mn();t8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Js=function(){function t(e,n,i){n===void 0&&(n=0),i===void 0&&(i=[0,0]),this.startTime=e,this._current=n,this.sampleTime=i}return t.prototype.record=function(e){this._current=e,this.sampleTime=Oe(Date.now())},t.prototype.setStartTime=function(e){this.startTime=e},t.prototype.toPointValue=function(){return this._current},t}(),Ap=function(){function t(){this.kind=rt.LAST_VALUE}return t.prototype.createAccumulation=function(e){return new Js(e)},t.prototype.merge=function(e,n){var i=Nt(n.sampleTime)>=Nt(e.sampleTime)?n:e;return new Js(e.startTime,i.toPointValue(),i.sampleTime)},t.prototype.diff=function(e,n){var i=Nt(n.sampleTime)>=Nt(e.sampleTime)?n:e;return new Js(n.startTime,i.toPointValue(),i.sampleTime)},t.prototype.toMetricData=function(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:Ne.GAUGE,dataPoints:i.map(function(s){var o=t8(s,2),r=o[0],u=o[1];return{attributes:r,startTime:u.startTime,endTime:a,value:u.toPointValue()}})}},t}()});var r8,Ln,Qs,cx=m(()=>{xn();Mn();r8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Ln=function(){function t(e,n,i,a){i===void 0&&(i=0),a===void 0&&(a=!1),this.startTime=e,this.monotonic=n,this._current=i,this.reset=a}return t.prototype.record=function(e){this.monotonic&&e<0||(this._current+=e)},t.prototype.setStartTime=function(e){this.startTime=e},t.prototype.toPointValue=function(){return this._current},t}(),Qs=function(){function t(e){this.monotonic=e,this.kind=rt.SUM}return t.prototype.createAccumulation=function(e){return new Ln(e,this.monotonic)},t.prototype.merge=function(e,n){var i=e.toPointValue(),a=n.toPointValue();return n.reset?new Ln(n.startTime,this.monotonic,a,n.reset):new Ln(e.startTime,this.monotonic,i+a)},t.prototype.diff=function(e,n){var i=e.toPointValue(),a=n.toPointValue();return this.monotonic&&i>a?new Ln(n.startTime,this.monotonic,a,!0):new Ln(n.startTime,this.monotonic,a-i)},t.prototype.toMetricData=function(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:Ne.SUM,dataPoints:i.map(function(s){var o=r8(s,2),r=o[0],u=o[1];return{attributes:r,startTime:u.startTime,endTime:a,value:u.toPointValue()}}),isMonotonic:this.monotonic}},t}()});var fx=m(()=>{jM();WM();ux();lx();cx()});var Hr,De,Op,gp,Np,Rp,Pp,bp,Mp,px,dx,Ex,_x,n8,o8,Zs=m(()=>{b();fx();Gt();Hr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),De=function(){function t(){}return t.Drop=function(){return px},t.Sum=function(){return dx},t.LastValue=function(){return Ex},t.Histogram=function(){return _x},t.ExponentialHistogram=function(){return n8},t.Default=function(){return o8},t}(),Op=function(t){Hr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createAggregator=function(n){return e.DEFAULT_INSTANCE},e.DEFAULT_INSTANCE=new dp,e}(De),gp=function(t){Hr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createAggregator=function(n){switch(n.type){case C.COUNTER:case C.OBSERVABLE_COUNTER:case C.HISTOGRAM:return e.MONOTONIC_INSTANCE;default:return e.NON_MONOTONIC_INSTANCE}},e.MONOTONIC_INSTANCE=new Qs(!0),e.NON_MONOTONIC_INSTANCE=new Qs(!1),e}(De),Np=function(t){Hr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createAggregator=function(n){return e.DEFAULT_INSTANCE},e.DEFAULT_INSTANCE=new Ap,e}(De),Rp=function(t){Hr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createAggregator=function(n){return e.DEFAULT_INSTANCE},e.DEFAULT_INSTANCE=new Ys([0,5,10,25,50,75,100,250,500,750,1e3,2500,5e3,7500,1e4],!0),e}(De),Pp=function(t){Hr(e,t);function e(n,i){i===void 0&&(i=!0);var a=t.call(this)||this;if(a._recordMinMax=i,n==null)throw new Error("ExplicitBucketHistogramAggregation should be created with explicit boundaries, if a single bucket histogram is required, please pass an empty array");n=n.concat(),n=n.sort(function(r,u){return r-u});var s=n.lastIndexOf(-1/0),o=n.indexOf(1/0);return o===-1&&(o=void 0),a._boundaries=n.slice(s+1,o),a}return e.prototype.createAggregator=function(n){return new Ys(this._boundaries,this._recordMinMax)},e}(De),bp=function(t){Hr(e,t);function e(n,i){n===void 0&&(n=160),i===void 0&&(i=!0);var a=t.call(this)||this;return a._maxSize=n,a._recordMinMax=i,a}return e.prototype.createAggregator=function(n){return new yp(this._maxSize,this._recordMinMax)},e}(De),Mp=function(t){Hr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype._resolve=function(n){switch(n.type){case C.COUNTER:case C.UP_DOWN_COUNTER:case C.OBSERVABLE_COUNTER:case C.OBSERVABLE_UP_DOWN_COUNTER:return dx;case C.GAUGE:case C.OBSERVABLE_GAUGE:return Ex;case C.HISTOGRAM:return n.advice.explicitBucketBoundaries?new Pp(n.advice.explicitBucketBoundaries):_x}return g.warn("Unable to recognize instrument type: "+n.type),px},e.prototype.createAggregator=function(n){return this._resolve(n).createAggregator(n)},e}(De),px=new Op,dx=new gp,Ex=new Np,_x=new Rp,n8=new bp,o8=new Mp});var Sx,eu,xp=m(()=>{Zs();Hs();Sx=function(t){return De.Default()},eu=function(t){return ge.CUMULATIVE}});var Lp,Ip,hx,i8,tu,Cp=m(()=>{b();Rt();xp();Lp=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},Ip=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},hx=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},i8=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},tu=function(){function t(e){var n,i,a;this._shutdown=!1,this._aggregationSelector=(n=e?.aggregationSelector)!==null&&n!==void 0?n:Sx,this._aggregationTemporalitySelector=(i=e?.aggregationTemporalitySelector)!==null&&i!==void 0?i:eu,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 Lp(this,void 0,void 0,function(){var n,i,a,s,o,r;return Ip(this,function(u){switch(u.label){case 0:if(this._sdkMetricProducer===void 0)throw new Error("MetricReader is not bound to a MetricProducer");if(this._shutdown)throw new Error("MetricReader is shutdown");return[4,Promise.all(i8([this._sdkMetricProducer.collect({timeoutMillis:e?.timeoutMillis})],hx(this._metricProducers.map(function(l){return l.collect({timeoutMillis:e?.timeoutMillis})})),!1))];case 1:return n=hx.apply(void 0,[u.sent()]),i=n[0],a=n.slice(1),s=i.errors.concat(pp(a,function(l){return l.errors})),o=i.resourceMetrics.resource,r=i.resourceMetrics.scopeMetrics.concat(pp(a,function(l){return l.resourceMetrics.scopeMetrics})),[2,{resourceMetrics:{resource:o,scopeMetrics:r},errors:s}]}})})},t.prototype.shutdown=function(e){return Lp(this,void 0,void 0,function(){return Ip(this,function(n){switch(n.label){case 0:return this._shutdown?(g.error("Cannot call shutdown twice."),[2]):e?.timeoutMillis!=null?[3,2]:[4,this.onShutdown()];case 1:return n.sent(),[3,4];case 2:return[4,Er(this.onShutdown(),e.timeoutMillis)];case 3:n.sent(),n.label=4;case 4:return this._shutdown=!0,[2]}})})},t.prototype.forceFlush=function(e){return Lp(this,void 0,void 0,function(){return Ip(this,function(n){switch(n.label){case 0:return this._shutdown?(g.warn("Cannot forceFlush on already shutdown MetricReader."),[2]):e?.timeoutMillis!=null?[3,2]:[4,this.onForceFlush()];case 1:return n.sent(),[2];case 2:return[4,Er(this.onForceFlush(),e.timeoutMillis)];case 3:return n.sent(),[2]}})})},t}()});var a8,Ei,_i,s8,u8,ru,Tx=m(()=>{b();K();Cp();Rt();b();a8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ei=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},_i=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},s8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},u8=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},ru=function(t){a8(e,t);function e(n){var i,a,s,o,r=t.call(this,{aggregationSelector:(i=n.exporter.selectAggregation)===null||i===void 0?void 0:i.bind(n.exporter),aggregationTemporalitySelector:(a=n.exporter.selectAggregationTemporality)===null||a===void 0?void 0:a.bind(n.exporter),metricProducers:n.metricProducers})||this;if(n.exportIntervalMillis!==void 0&&n.exportIntervalMillis<=0)throw Error("exportIntervalMillis must be greater than 0");if(n.exportTimeoutMillis!==void 0&&n.exportTimeoutMillis<=0)throw Error("exportTimeoutMillis must be greater than 0");if(n.exportTimeoutMillis!==void 0&&n.exportIntervalMillis!==void 0&&n.exportIntervalMillis<n.exportTimeoutMillis)throw Error("exportIntervalMillis must be greater than or equal to exportTimeoutMillis");return r._exportInterval=(s=n.exportIntervalMillis)!==null&&s!==void 0?s:6e4,r._exportTimeout=(o=n.exportTimeoutMillis)!==null&&o!==void 0?o:3e4,r._exporter=n.exporter,r}return e.prototype._runOnce=function(){return Ei(this,void 0,void 0,function(){var n;return _i(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,Er(this._doRun(),this._exportTimeout)];case 1:return i.sent(),[3,3];case 2:return n=i.sent(),n instanceof fi?(g.error("Export took longer than %s milliseconds and timed out.",this._exportTimeout),[2]):(he(n),[3,3]);case 3:return[2]}})})},e.prototype._doRun=function(){var n,i;return Ei(this,void 0,void 0,function(){var a,s,o,r,u,l=this;return _i(this,function(c){switch(c.label){case 0:return[4,this.collect({timeoutMillis:this._exportTimeout})];case 1:return a=c.sent(),s=a.resourceMetrics,o=a.errors,o.length>0&&(u=g).error.apply(u,u8(["PeriodicExportingMetricReader: metrics collection errors"],s8(o),!1)),r=function(){return Ei(l,void 0,void 0,function(){var p;return _i(this,function(_){switch(_.label){case 0:return[4,ci._export(this._exporter,s)];case 1:if(p=_.sent(),p.code!==ee.SUCCESS)throw new Error("PeriodicExportingMetricReader: metrics export failed (error "+p.error+")");return[2]}})})},s.resource.asyncAttributesPending?((i=(n=s.resource).waitForAsyncAttributes)===null||i===void 0||i.call(n).then(r,function(p){return g.debug("Error while resolving async portion of resource: ",p)}).catch(he),[3,4]):[3,2];case 2:return[4,r()];case 3:c.sent(),c.label=4;case 4:return[2]}})})},e.prototype.onInitialized=function(){var n=this;this._interval=setInterval(function(){n._runOnce()},this._exportInterval),fr(this._interval)},e.prototype.onForceFlush=function(){return Ei(this,void 0,void 0,function(){return _i(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 Ei(this,void 0,void 0,function(){return _i(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}(tu)});var vx,mx=m(()=>{K();vx=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 yx,Ax,Ox=m(()=>{K();xp();yx=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Ax=function(){function t(e){var n;this._shutdown=!1,this._temporalitySelector=(n=e?.temporalitySelector)!==null&&n!==void 0?n:eu}return t.prototype.export=function(e,n){if(this._shutdown){setImmediate(n,{code:ee.FAILED});return}return t._sendMetrics(e,n)},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype.selectAggregationTemporality=function(e){return this._temporalitySelector(e)},t.prototype.shutdown=function(){return this._shutdown=!0,Promise.resolve()},t._sendMetrics=function(e,n){var i,a,s,o;try{for(var r=yx(e.scopeMetrics),u=r.next();!u.done;u=r.next()){var l=u.value;try{for(var c=(s=void 0,yx(l.metrics)),p=c.next();!p.done;p=c.next()){var _=p.value;console.dir({descriptor:_.descriptor,dataPointType:_.dataPointType,dataPoints:_.dataPoints},{depth:null})}}catch(f){s={error:f}}finally{try{p&&!p.done&&(o=c.return)&&o.call(c)}finally{if(s)throw s.error}}}}catch(f){i={error:f}}finally{try{u&&!u.done&&(a=r.return)&&a.call(r)}finally{if(i)throw i.error}}n({code:ee.SUCCESS})},t}()});var gx,Nx=m(()=>{gx=function(){function t(){this._registeredViews=[]}return t.prototype.addView=function(e){this._registeredViews.push(e)},t.prototype.findViews=function(e,n){var i=this,a=this._registeredViews.filter(function(s){return i._matchInstrument(s.instrumentSelector,e)&&i._matchMeter(s.meterSelector,n)});return a},t.prototype._matchInstrument=function(e,n){return(e.getType()===void 0||n.type===e.getType())&&e.getNameFilter().match(n.name)&&e.getUnitFilter().match(n.unit)},t.prototype._matchMeter=function(e,n){return e.getNameFilter().match(n.name)&&(n.version===void 0||e.getVersionFilter().match(n.version))&&(n.schemaUrl===void 0||e.getSchemaUrlFilter().match(n.schemaUrl))},t}()});function Si(t){return t instanceof ou}var Fr,nu,Rx,Px,bx,Mx,ou,xx,Lx,Ix,iu=m(()=>{b();K();Fr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),nu=function(){function t(e,n){this._writableMetricStorage=e,this._descriptor=n}return t.prototype._record=function(e,n,i){if(n===void 0&&(n={}),i===void 0&&(i=He.active()),typeof e!="number"){g.warn("non-number value provided to metric "+this._descriptor.name+": "+e);return}this._descriptor.valueType===Et.INT&&!Number.isInteger(e)&&(g.warn("INT value type cannot accept a floating-point value for "+this._descriptor.name+", ignoring the fractional digits."),e=Math.trunc(e),!Number.isInteger(e))||this._writableMetricStorage.record(e,n,i,Oe(Date.now()))},t}(),Rx=function(t){Fr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(n,i,a){this._record(n,i,a)},e}(nu),Px=function(t){Fr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(n,i,a){if(n<0){g.warn("negative value provided to counter "+this._descriptor.name+": "+n);return}this._record(n,i,a)},e}(nu),bx=function(t){Fr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(n,i,a){this._record(n,i,a)},e}(nu),Mx=function(t){Fr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(n,i,a){if(n<0){g.warn("negative value provided to histogram "+this._descriptor.name+": "+n);return}this._record(n,i,a)},e}(nu),ou=function(){function t(e,n,i){this._observableRegistry=i,this._descriptor=e,this._metricStorages=n}return t.prototype.addCallback=function(e){this._observableRegistry.addCallback(e,this)},t.prototype.removeCallback=function(e){this._observableRegistry.removeCallback(e,this)},t}(),xx=function(t){Fr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(ou),Lx=function(t){Fr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(ou),Ix=function(t){Fr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(ou)});var Cx,wx=m(()=>{Gt();iu();Cx=function(){function t(e){this._meterSharedState=e}return t.prototype.createGauge=function(e,n){var i=Pt(e,C.GAUGE,n),a=this._meterSharedState.registerMetricStorage(i);return new bx(a,i)},t.prototype.createHistogram=function(e,n){var i=Pt(e,C.HISTOGRAM,n),a=this._meterSharedState.registerMetricStorage(i);return new Mx(a,i)},t.prototype.createCounter=function(e,n){var i=Pt(e,C.COUNTER,n),a=this._meterSharedState.registerMetricStorage(i);return new Px(a,i)},t.prototype.createUpDownCounter=function(e,n){var i=Pt(e,C.UP_DOWN_COUNTER,n),a=this._meterSharedState.registerMetricStorage(i);return new Rx(a,i)},t.prototype.createObservableGauge=function(e,n){var i=Pt(e,C.OBSERVABLE_GAUGE,n),a=this._meterSharedState.registerAsyncMetricStorage(i);return new Lx(i,a,this._meterSharedState.observableRegistry)},t.prototype.createObservableCounter=function(e,n){var i=Pt(e,C.OBSERVABLE_COUNTER,n),a=this._meterSharedState.registerAsyncMetricStorage(i);return new xx(i,a,this._meterSharedState.observableRegistry)},t.prototype.createObservableUpDownCounter=function(e,n){var i=Pt(e,C.OBSERVABLE_UP_DOWN_COUNTER,n),a=this._meterSharedState.registerAsyncMetricStorage(i);return new Ix(i,a,this._meterSharedState.observableRegistry)},t.prototype.addBatchObservableCallback=function(e,n){this._meterSharedState.observableRegistry.addBatchCallback(e,n)},t.prototype.removeBatchObservableCallback=function(e,n){this._meterSharedState.observableRegistry.removeBatchCallback(e,n)},t}()});var au,wp=m(()=>{Gt();au=function(){function t(e){this._instrumentDescriptor=e}return t.prototype.getInstrumentDescriptor=function(){return this._instrumentDescriptor},t.prototype.updateDescription=function(e){this._instrumentDescriptor=Pt(this._instrumentDescriptor.name,this._instrumentDescriptor.type,{description:e,valueType:this._instrumentDescriptor.valueType,unit:this._instrumentDescriptor.unit,advice:this._instrumentDescriptor.advice})},t}()});var l8,Ux,c8,pt,hi=m(()=>{Rt();l8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ux=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},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 i=this._hash(e);if(this._valueMap.has(i))return this._valueMap.get(i);var a=n();return this._keyMap.has(i)||this._keyMap.set(i,e),this._valueMap.set(i,a),a},t.prototype.set=function(e,n,i){i??(i=this._hash(e)),this._keyMap.has(i)||this._keyMap.set(i,e),this._valueMap.set(i,n)},t.prototype.has=function(e,n){return n??(n=this._hash(e)),this._valueMap.has(n)},t.prototype.keys=function(){var e,n;return Ux(this,function(i){switch(i.label){case 0:e=this._keyMap.entries(),n=e.next(),i.label=1;case 1:return n.done===!0?[3,3]:[4,[n.value[1],n.value[0]]];case 2:return i.sent(),n=e.next(),[3,1];case 3:return[2]}})},t.prototype.entries=function(){var e,n;return Ux(this,function(i){switch(i.label){case 0:e=this._valueMap.entries(),n=e.next(),i.label=1;case 1:return n.done===!0?[3,3]:[4,[this._keyMap.get(n.value[0]),n.value[1],n.value[0]]];case 2:return i.sent(),n=e.next(),[3,1];case 3:return[2]}})},Object.defineProperty(t.prototype,"size",{get:function(){return this._valueMap.size},enumerable:!1,configurable:!0}),t}(),pt=function(t){l8(e,t);function e(){return t.call(this,BM)||this}return e}(c8)});var f8,su,Up=m(()=>{hi();f8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},su=function(){function t(e){this._aggregator=e,this._activeCollectionStorage=new pt,this._cumulativeMemoStorage=new pt}return t.prototype.record=function(e,n,i,a){var s=this,o=this._activeCollectionStorage.getOrDefault(n,function(){return s._aggregator.createAccumulation(a)});o?.record(e)},t.prototype.batchCumulate=function(e,n){var i=this;Array.from(e.entries()).forEach(function(a){var s=f8(a,3),o=s[0],r=s[1],u=s[2],l=i._aggregator.createAccumulation(n);l?.record(r);var c=l;if(i._cumulativeMemoStorage.has(o,u)){var p=i._cumulativeMemoStorage.get(o,u);c=i._aggregator.diff(p,l)}if(i._activeCollectionStorage.has(o,u)){var _=i._activeCollectionStorage.get(o,u);c=i._aggregator.merge(_,c)}i._cumulativeMemoStorage.set(o,l,u),i._activeCollectionStorage.set(o,c,u)})},t.prototype.collect=function(){var e=this._activeCollectionStorage;return this._activeCollectionStorage=new pt,e},t}()});function p8(t){return Array.from(t.entries())}var Dp,Dx,uu,Vp=m(()=>{Hs();hi();Dp=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Dx=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},uu=function(){function t(e,n){var i=this;this._aggregator=e,this._unreportedAccumulations=new Map,this._reportHistory=new Map,n.forEach(function(a){i._unreportedAccumulations.set(a,[])})}return t.prototype.buildMetrics=function(e,n,i,a){this._stashAccumulations(i);var s=this._getMergedUnreportedAccumulations(e),o=s,r;if(this._reportHistory.has(e)){var u=this._reportHistory.get(e),l=u.collectionTime;r=u.aggregationTemporality,r===ge.CUMULATIVE?o=t.merge(u.accumulations,s,this._aggregator):o=t.calibrateStartTime(u.accumulations,s,l)}else r=e.selectAggregationTemporality(n.type);this._reportHistory.set(e,{accumulations:o,collectionTime:a,aggregationTemporality:r});var c=p8(o);if(c.length!==0)return this._aggregator.toMetricData(n,r,c,a)},t.prototype._stashAccumulations=function(e){var n,i,a=this._unreportedAccumulations.keys();try{for(var s=Dp(a),o=s.next();!o.done;o=s.next()){var r=o.value,u=this._unreportedAccumulations.get(r);u===void 0&&(u=[],this._unreportedAccumulations.set(r,u)),u.push(e)}}catch(l){n={error:l}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}},t.prototype._getMergedUnreportedAccumulations=function(e){var n,i,a=new pt,s=this._unreportedAccumulations.get(e);if(this._unreportedAccumulations.set(e,[]),s===void 0)return a;try{for(var o=Dp(s),r=o.next();!r.done;r=o.next()){var u=r.value;a=t.merge(a,u,this._aggregator)}}catch(l){n={error:l}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return a},t.merge=function(e,n,i){for(var a=e,s=n.entries(),o=s.next();o.done!==!0;){var r=Dx(o.value,3),u=r[0],l=r[1],c=r[2];if(e.has(u,c)){var p=e.get(u,c),_=i.merge(p,l);a.set(u,_,c)}else a.set(u,l,c);o=s.next()}return a},t.calibrateStartTime=function(e,n,i){var a,s;try{for(var o=Dp(e.keys()),r=o.next();!r.done;r=o.next()){var u=Dx(r.value,2),l=u[0],c=u[1],p=n.get(l,c);p?.setStartTime(i)}}catch(_){a={error:_}}finally{try{r&&!r.done&&(s=o.return)&&s.call(o)}finally{if(a)throw a.error}}return n},t}()});var d8,E8,Vx,Bx=m(()=>{wp();Up();Vp();hi();d8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),E8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Vx=function(t){d8(e,t);function e(n,i,a,s){var o=t.call(this,n)||this;return o._attributesProcessor=a,o._deltaMetricStorage=new su(i),o._temporalMetricStorage=new uu(i,s),o}return e.prototype.record=function(n,i){var a=this,s=new pt;Array.from(n.entries()).forEach(function(o){var r=E8(o,2),u=r[0],l=r[1];s.set(a._attributesProcessor.process(u),l)}),this._deltaMetricStorage.batchCumulate(s,i)},e.prototype.collect=function(n,i){var a=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(n,this._instrumentDescriptor,a,i)},e}(au)});function Bp(t,e){var n="";return t.unit!==e.unit&&(n+=" - Unit '"+t.unit+"' does not match '"+e.unit+`'
|
40
40
|
`),t.type!==e.type&&(n+=" - Type '"+t.type+"' does not match '"+e.type+`'
|
41
41
|
`),t.valueType!==e.valueType&&(n+=" - Value Type '"+t.valueType+"' does not match '"+e.valueType+`'
|
42
42
|
`),t.description!==e.description&&(n+=" - Description '"+t.description+"' does not match '"+e.description+`'
|
43
|
-
`),n}function
|
43
|
+
`),n}function _8(t,e){return" - use valueType '"+t.valueType+"' on instrument creation or use an instrument name other than '"+e.name+"'"}function S8(t,e){return" - use unit '"+t.unit+"' on instrument creation or use an instrument name other than '"+e.name+"'"}function h8(t,e){var n={name:e.name,type:e.type,unit:e.unit},i=JSON.stringify(n);return" - create a new view with a name other than '"+t.name+"' and InstrumentSelector '"+i+"'"}function T8(t,e){var n={name:e.name,type:e.type,unit:e.unit},i=JSON.stringify(n);return" - create a new view with a name other than '"+t.name+"' and InstrumentSelector '"+i+`'
|
44
44
|
- OR - create a new view with the name `+t.name+" and description '"+t.description+"' and InstrumentSelector "+i+`
|
45
|
-
- OR - create a new view with the name `+e.name+" and description '"+t.description+"' and InstrumentSelector "+i}function
|
45
|
+
- OR - create a new view with the name `+e.name+" and description '"+t.description+"' and InstrumentSelector "+i}function Gp(t,e){return t.valueType!==e.valueType?_8(t,e):t.unit!==e.unit?S8(t,e):t.type!==e.type?h8(t,e):t.description!==e.description?T8(t,e):""}var Gx=m(()=>{});var kp,kx,Hx=m(()=>{Gt();b();Gx();kp=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},kx=function(){function t(){this._sharedRegistry=new Map,this._perCollectorRegistry=new Map}return t.create=function(){return new t},t.prototype.getStorages=function(e){var n,i,a,s,o=[];try{for(var r=kp(this._sharedRegistry.values()),u=r.next();!u.done;u=r.next()){var l=u.value;o=o.concat(l)}}catch(f){n={error:f}}finally{try{u&&!u.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}var c=this._perCollectorRegistry.get(e);if(c!=null)try{for(var p=kp(c.values()),_=p.next();!_.done;_=p.next()){var l=_.value;o=o.concat(l)}}catch(f){a={error:f}}finally{try{_&&!_.done&&(s=p.return)&&s.call(p)}finally{if(a)throw a.error}}return o},t.prototype.register=function(e){this._registerStorage(e,this._sharedRegistry)},t.prototype.registerForCollector=function(e,n){var i=this._perCollectorRegistry.get(e);i==null&&(i=new Map,this._perCollectorRegistry.set(e,i)),this._registerStorage(n,i)},t.prototype.findOrUpdateCompatibleStorage=function(e){var n=this._sharedRegistry.get(e.name);return n===void 0?null:this._findOrUpdateCompatibleStorage(e,n)},t.prototype.findOrUpdateCompatibleCollectorStorage=function(e,n){var i=this._perCollectorRegistry.get(e);if(i===void 0)return null;var a=i.get(n.name);return a===void 0?null:this._findOrUpdateCompatibleStorage(n,a)},t.prototype._registerStorage=function(e,n){var i=e.getInstrumentDescriptor(),a=n.get(i.name);if(a===void 0){n.set(i.name,[e]);return}a.push(e)},t.prototype._findOrUpdateCompatibleStorage=function(e,n){var i,a,s=null;try{for(var o=kp(n),r=o.next();!r.done;r=o.next()){var u=r.value,l=u.getInstrumentDescriptor();KM(l,e)?(l.description!==e.description&&(e.description.length>l.description.length&&u.updateDescription(e.description),g.warn("A view or instrument with the name ",e.name,` has already been registered, but has a different description and is incompatible with another registered view.
|
46
46
|
`,`Details:
|
47
|
-
`,
|
48
|
-
To resolve the conflict:`,
|
47
|
+
`,Bp(l,e),`The longer description will be used.
|
48
|
+
To resolve the conflict:`,Gp(l,e))),s=u):g.warn("A view or instrument with the name ",e.name,` has already been registered and is incompatible with another registered view.
|
49
49
|
`,`Details:
|
50
|
-
`,
|
51
|
-
`,Bp(l,e))}}catch(c){i={error:c}}finally{try{r&&!r.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}return s},t}()});var kx,Hx=m(()=>{kx=function(){function t(e){this._backingStorages=e}return t.prototype.record=function(e,n,i,a){this._backingStorages.forEach(function(s){s.record(e,n,i,a)})},t}()});var Fx,Yx,qx=m(()=>{b();Si();nu();Fx=function(){function t(e,n){this._instrumentName=e,this._valueType=n,this._buffer=new pt}return t.prototype.observe=function(e,n){if(n===void 0&&(n={}),typeof e!="number"){g.warn("non-number value provided to metric "+this._instrumentName+": "+e);return}this._valueType===Et.INT&&!Number.isInteger(e)&&(g.warn("INT value type cannot accept a floating-point value for "+this._instrumentName+", ignoring the fractional digits."),e=Math.trunc(e),!Number.isInteger(e))||this._buffer.set(n,e)},t}(),Yx=function(){function t(){this._buffer=new Map}return t.prototype.observe=function(e,n,i){if(i===void 0&&(i={}),!!_i(e)){var a=this._buffer.get(e);if(a==null&&(a=new pt,this._buffer.set(e,a)),typeof n!="number"){g.warn("non-number value provided to metric "+e._descriptor.name+": "+n);return}e._descriptor.valueType===Et.INT&&!Number.isInteger(n)&&(g.warn("INT value type cannot accept a floating-point value for "+e._descriptor.name+", ignoring the fractional digits."),n=Math.trunc(n),!Number.isInteger(n))||a.set(i,n)}},t}()});var kp,Hp,jx,$x,Kx,Wx=m(()=>{b();nu();qx();Rt();kp=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},Hp=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},jx=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},$x=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},Kx=function(){function t(){this._callbacks=[],this._batchCallbacks=[]}return t.prototype.addCallback=function(e,n){var i=this._findCallback(e,n);i>=0||this._callbacks.push({callback:e,instrument:n})},t.prototype.removeCallback=function(e,n){var i=this._findCallback(e,n);i<0||this._callbacks.splice(i,1)},t.prototype.addBatchCallback=function(e,n){var i=new Set(n.filter(_i));if(i.size===0){g.error("BatchObservableCallback is not associated with valid instruments",n);return}var a=this._findBatchCallback(e,i);a>=0||this._batchCallbacks.push({callback:e,instruments:i})},t.prototype.removeBatchCallback=function(e,n){var i=new Set(n.filter(_i)),a=this._findBatchCallback(e,i);a<0||this._batchCallbacks.splice(a,1)},t.prototype.observe=function(e,n){return kp(this,void 0,void 0,function(){var i,a,s,o;return Hp(this,function(r){switch(r.label){case 0:return i=this._observeCallbacks(e,n),a=this._observeBatchCallbacks(e,n),[4,BM($x($x([],jx(i),!1),jx(a),!1))];case 1:return s=r.sent(),o=s.filter(GM).map(function(u){return u.reason}),[2,o]}})})},t.prototype._observeCallbacks=function(e,n){var i=this;return this._callbacks.map(function(a){var s=a.callback,o=a.instrument;return kp(i,void 0,void 0,function(){var r,u;return Hp(this,function(l){switch(l.label){case 0:return r=new Fx(o._descriptor.name,o._descriptor.valueType),u=Promise.resolve(s(r)),n!=null&&(u=Er(u,n)),[4,u];case 1:return l.sent(),o._metricStorages.forEach(function(c){c.record(r._buffer,e)}),[2]}})})})},t.prototype._observeBatchCallbacks=function(e,n){var i=this;return this._batchCallbacks.map(function(a){var s=a.callback,o=a.instruments;return kp(i,void 0,void 0,function(){var r,u;return Hp(this,function(l){switch(l.label){case 0:return r=new Yx,u=Promise.resolve(s(r)),n!=null&&(u=Er(u,n)),[4,u];case 1:return l.sent(),o.forEach(function(c){var p=r._buffer.get(c);p!=null&&c._metricStorages.forEach(function(_){_.record(p,e)})}),[2]}})})})},t.prototype._findCallback=function(e,n){return this._callbacks.findIndex(function(i){return i.callback===e&&i.instrument===n})},t.prototype._findBatchCallback=function(e,n){return this._batchCallbacks.findIndex(function(i){return i.callback===e&&kM(i.instruments,n)})},t}()});var h8,zx,Xx=m(()=>{Cp();wp();Dp();h8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),zx=function(t){h8(e,t);function e(n,i,a,s){var o=t.call(this,n)||this;return o._attributesProcessor=a,o._deltaMetricStorage=new iu(i),o._temporalMetricStorage=new au(i,s),o}return e.prototype.record=function(n,i,a,s){i=this._attributesProcessor.process(i,a),this._deltaMetricStorage.record(n,i,a,s)},e.prototype.collect=function(n,i){var a=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(n,this._instrumentDescriptor,a,i)},e}(ou)});var Jx,In,T8,Qx,v8,Fp=m(()=>{Jx=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),In=function(){function t(){}return t.Noop=function(){return v8},t}(),T8=function(t){Jx(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.process=function(n,i){return n},e}(In),Qx=function(t){Jx(e,t);function e(n){var i=t.call(this)||this;return i._allowedAttributeNames=n,i}return e.prototype.process=function(n,i){var a=this,s={};return Object.keys(n).filter(function(o){return a._allowedAttributeNames.includes(o)}).forEach(function(o){return s[o]=n[o]}),s},e}(In),v8=new T8});var m8,y8,A8,Zx,eL=m(()=>{Gt();Ix();Rt();Dx();Gx();Hx();Wx();Xx();Fp();m8=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},y8=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},A8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Zx=function(){function t(e,n){this._meterProviderSharedState=e,this._instrumentationScope=n,this.metricStorageRegistry=new Bx,this.observableRegistry=new Kx,this.meter=new Lx(this)}return t.prototype.registerMetricStorage=function(e){var n=this._registerMetricStorage(e,zx);return n.length===1?n[0]:new kx(n)},t.prototype.registerAsyncMetricStorage=function(e){var n=this._registerMetricStorage(e,Ux);return n},t.prototype.collect=function(e,n,i){return m8(this,void 0,void 0,function(){var a,s,o;return y8(this,function(r){switch(r.label){case 0:return[4,this.observableRegistry.observe(n,i?.timeoutMillis)];case 1:return a=r.sent(),s=this.metricStorageRegistry.getStorages(e),s.length===0?[2,null]:(o=s.map(function(u){return u.collect(e,n)}).filter(UM),o.length===0?[2,{errors:a}]:[2,{scopeMetrics:{scope:this._instrumentationScope,metrics:o},errors:a}])}})})},t.prototype._registerMetricStorage=function(e,n){var i=this,a=this._meterProviderSharedState.viewRegistry.findViews(e,this._instrumentationScope),s=a.map(function(u){var l=qM(u,e),c=i.metricStorageRegistry.findOrUpdateCompatibleStorage(l);if(c!=null)return c;var p=u.aggregation.createAggregator(l),_=new n(l,p,u.attributesProcessor,i._meterProviderSharedState.metricCollectors);return i.metricStorageRegistry.register(_),_});if(s.length===0){var o=this._meterProviderSharedState.selectAggregations(e.type),r=o.map(function(u){var l=A8(u,2),c=l[0],p=l[1],_=i.metricStorageRegistry.findOrUpdateCompatibleCollectorStorage(c,e);if(_!=null)return _;var f=p.createAggregator(e),S=new n(e,f,In.Noop(),[c]);return i.metricStorageRegistry.registerForCollector(c,S),S});s=s.concat(r)}return s},t}()});var O8,tL,rL=m(()=>{Rt();Ox();eL();O8=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},tL=function(){function t(e){this.resource=e,this.viewRegistry=new Ax,this.metricCollectors=[],this.meterSharedStates=new Map}return t.prototype.getMeterSharedState=function(e){var n=VM(e),i=this.meterSharedStates.get(n);return i==null&&(i=new Zx(this,e),this.meterSharedStates.set(n,i)),i},t.prototype.selectAggregations=function(e){var n,i,a=[];try{for(var s=O8(this.metricCollectors),o=s.next();!o.done;o=s.next()){var r=o.value;a.push([r,r.selectAggregation(e)])}}catch(u){n={error:u}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return a},t}()});var su,uu,g8,N8,nL,oL=m(()=>{K();su=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},uu=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},g8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},N8=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},nL=function(){function t(e,n){this._sharedState=e,this._metricReader=n}return t.prototype.collect=function(e){return su(this,void 0,void 0,function(){var n,i,a,s,o=this;return uu(this,function(r){switch(r.label){case 0:return n=Oe(Date.now()),i=[],a=[],s=Array.from(this._sharedState.meterSharedStates.values()).map(function(u){return su(o,void 0,void 0,function(){var l;return uu(this,function(c){switch(c.label){case 0:return[4,u.collect(this,n,e)];case 1:return l=c.sent(),l?.scopeMetrics!=null&&i.push(l.scopeMetrics),l?.errors!=null&&a.push.apply(a,N8([],g8(l.errors),!1)),[2]}})})}),[4,Promise.all(s)];case 1:return r.sent(),[2,{resourceMetrics:{resource:this._sharedState.resource,scopeMetrics:i},errors:a}]}})})},t.prototype.forceFlush=function(e){return su(this,void 0,void 0,function(){return uu(this,function(n){switch(n.label){case 0:return[4,this._metricReader.forceFlush(e)];case 1:return n.sent(),[2]}})})},t.prototype.shutdown=function(e){return su(this,void 0,void 0,function(){return uu(this,function(n){switch(n.label){case 0:return[4,this._metricReader.shutdown(e)];case 1:return n.sent(),[2]}})})},t.prototype.selectAggregationTemporality=function(e){return this._metricReader.selectAggregationTemporality(e)},t.prototype.selectAggregation=function(e){return this._metricReader.selectAggregation(e)},t}()});var iL,aL,sL,hi,uL=m(()=>{b();Bs();rL();oL();iL=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},aL=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},sL=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},hi=function(){function t(e){var n,i,a,s,o;this._shutdown=!1;var r=Bt.default().merge((o=e?.resource)!==null&&o!==void 0?o:Bt.empty());if(this._sharedState=new tL(r),e?.views!=null&&e.views.length>0)try{for(var u=sL(e.views),l=u.next();!l.done;l=u.next()){var c=l.value;this._sharedState.viewRegistry.addView(c)}}catch(S){n={error:S}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}if(e?.readers!=null&&e.readers.length>0)try{for(var p=sL(e.readers),_=p.next();!_.done;_=p.next()){var f=_.value;this.addMetricReader(f)}}catch(S){a={error:S}}finally{try{_&&!_.done&&(s=p.return)&&s.call(p)}finally{if(a)throw a.error}}}return t.prototype.getMeter=function(e,n,i){return n===void 0&&(n=""),i===void 0&&(i={}),this._shutdown?(g.warn("A shutdown MeterProvider cannot provide a Meter"),iE()):this._sharedState.getMeterSharedState({name:e,version:n,schemaUrl:i.schemaUrl}).meter},t.prototype.addMetricReader=function(e){var n=new nL(this._sharedState,e);e.setMetricProducer(n),this._sharedState.metricCollectors.push(n)},t.prototype.shutdown=function(e){return iL(this,void 0,void 0,function(){return aL(this,function(n){switch(n.label){case 0:return this._shutdown?(g.warn("shutdown may only be called once per MeterProvider"),[2]):(this._shutdown=!0,[4,Promise.all(this._sharedState.metricCollectors.map(function(i){return i.shutdown(e)}))]);case 1:return n.sent(),[2]}})})},t.prototype.forceFlush=function(e){return iL(this,void 0,void 0,function(){return aL(this,function(n){switch(n.label){case 0:return this._shutdown?(g.warn("invalid attempt to force flush after MeterProvider shutdown"),[2]):[4,Promise.all(this._sharedState.metricCollectors.map(function(i){return i.forceFlush(e)}))];case 1:return n.sent(),[2]}})})},t}()});var R8,lu,Cn,cu=m(()=>{R8=/[\^$\\.+?()[\]{}|]/g,lu=function(){function t(e){e==="*"?(this._matchAll=!0,this._regexp=/.*/):(this._matchAll=!1,this._regexp=new RegExp(t.escapePattern(e)))}return t.prototype.match=function(e){return this._matchAll?!0:this._regexp.test(e)},t.escapePattern=function(e){return"^"+e.replace(R8,"\\$&").replace("*",".*")+"$"},t.hasWildcard=function(e){return e.includes("*")},t}(),Cn=function(){function t(e){this._matchAll=e===void 0,this._pattern=e}return t.prototype.match=function(e){return!!(this._matchAll||e===this._pattern)},t}()});var lL,cL=m(()=>{cu();lL=function(){function t(e){var n;this._nameFilter=new lu((n=e?.name)!==null&&n!==void 0?n:"*"),this._type=e?.type,this._unitFilter=new Cn(e?.unit)}return t.prototype.getType=function(){return this._type},t.prototype.getNameFilter=function(){return this._nameFilter},t.prototype.getUnitFilter=function(){return this._unitFilter},t}()});var fL,pL=m(()=>{cu();fL=function(){function t(e){this._nameFilter=new Cn(e?.name),this._versionFilter=new Cn(e?.version),this._schemaUrlFilter=new Cn(e?.schemaUrl)}return t.prototype.getNameFilter=function(){return this._nameFilter},t.prototype.getVersionFilter=function(){return this._versionFilter},t.prototype.getSchemaUrlFilter=function(){return this._schemaUrlFilter},t}()});function P8(t){return t.instrumentName==null&&t.instrumentType==null&&t.instrumentUnit==null&&t.meterName==null&&t.meterVersion==null&&t.meterSchemaUrl==null}var dL,EL=m(()=>{cu();Fp();cL();pL();Js();dL=function(){function t(e){var n;if(P8(e))throw new Error("Cannot create view with no selector arguments supplied");if(e.name!=null&&(e?.instrumentName==null||lu.hasWildcard(e.instrumentName)))throw new Error("Views with a specified name must be declared with an instrument selector that selects at most one instrument per meter.");e.attributeKeys!=null?this.attributesProcessor=new Qx(e.attributeKeys):this.attributesProcessor=In.Noop(),this.name=e.name,this.description=e.description,this.aggregation=(n=e.aggregation)!==null&&n!==void 0?n:De.Default(),this.instrumentSelector=new lL({name:e.instrumentName,type:e.instrumentType,unit:e.instrumentUnit}),this.meterSelector=new fL({name:e.meterName,version:e.meterVersion,schemaUrl:e.meterSchemaUrl})}return t}()});var Yp={};it(Yp,{Aggregation:()=>De,AggregationTemporality:()=>ge,ConsoleMetricExporter:()=>mx,DataPointType:()=>Ne,DefaultAggregation:()=>bp,DropAggregation:()=>Ap,ExplicitBucketHistogramAggregation:()=>Rp,ExponentialHistogramAggregation:()=>Pp,HistogramAggregation:()=>Np,InMemoryMetricExporter:()=>hx,InstrumentType:()=>C,LastValueAggregation:()=>gp,MeterProvider:()=>hi,MetricReader:()=>Zs,PeriodicExportingMetricReader:()=>eu,SumAggregation:()=>Op,TimeoutError:()=>ci,View:()=>dL});var wn=m(()=>{Gs();Mn();Ip();Sx();Tx();yx();Gt();uL();Js();EL();Rt()});var Un,qp=m(()=>{(function(t){t[t.DELTA=0]="DELTA",t[t.CUMULATIVE=1]="CUMULATIVE",t[t.LOWMEMORY=2]="LOWMEMORY"})(Un||(Un={}))});function x8(){var t=Ae(),e=t.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE.trim().toLowerCase();return e==="cumulative"?fu:e==="delta"?jp:e==="lowmemory"?$p:(g.warn("OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE is set to '"+t.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE+"', but only 'cumulative' and 'delta' are allowed. Using default ('cumulative') instead."),fu)}function L8(t){return t!=null?t===Un.DELTA?jp:t===Un.LOWMEMORY?$p:fu:x8()}function I8(t){return t?.aggregationPreference?t.aggregationPreference:function(e){return De.Default()}}var b8,M8,fu,jp,$p,Kp,Wp=m(()=>{K();wn();qp();b();b8=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},M8=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},fu=function(){return ge.CUMULATIVE},jp=function(t){switch(t){case C.COUNTER:case C.OBSERVABLE_COUNTER:case C.GAUGE:case C.HISTOGRAM:case C.OBSERVABLE_GAUGE:return ge.DELTA;case C.UP_DOWN_COUNTER:case C.OBSERVABLE_UP_DOWN_COUNTER:return ge.CUMULATIVE}},$p=function(t){switch(t){case C.COUNTER:case C.HISTOGRAM:return ge.DELTA;case C.GAUGE:case C.UP_DOWN_COUNTER:case C.OBSERVABLE_UP_DOWN_COUNTER:case C.OBSERVABLE_COUNTER:case C.OBSERVABLE_GAUGE:return ge.CUMULATIVE}};Kp=function(){function t(e,n){this._otlpExporter=e,this._aggregationSelector=I8(n),this._aggregationTemporalitySelector=L8(n?.temporalityPreference)}return t.prototype.export=function(e,n){this._otlpExporter.export([e],n)},t.prototype.shutdown=function(){return b8(this,void 0,void 0,function(){return M8(this,function(e){switch(e.label){case 0:return[4,this._otlpExporter.shutdown()];case 1:return e.sent(),[2]}})})},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype.selectAggregation=function(e){return this._aggregationSelector(e)},t.prototype.selectAggregationTemporality=function(e){return this._aggregationTemporalitySelector(e)},t}()});var Dn,pu=m(()=>{b();K();Dn=function(){function t(e){e===void 0&&(e={}),this._sendingPromises=[],this.shutdown=this.shutdown.bind(this),this._shutdownOnce=new pr(this._shutdown,this),this._concurrencyLimit=typeof e.concurrencyLimit=="number"?e.concurrencyLimit:30}return t.prototype.export=function(e,n){if(this._shutdownOnce.isCalled){n({code:ee.FAILED,error:new Error("Exporter has been shutdown")});return}if(this._sendingPromises.length>=this._concurrencyLimit){n({code:ee.FAILED,error:new Error("Concurrent export limit reached")});return}this._export(e).then(function(){n({code:ee.SUCCESS})}).catch(function(i){n({code:ee.FAILED,error:i})})},t.prototype._export=function(e){var n=this;return new Promise(function(i,a){try{g.debug("items to be sent",e),n.send(e,i,a)}catch(s){a(s)}})},t.prototype.shutdown=function(){return this._shutdownOnce.call()},t.prototype.forceFlush=function(){return Promise.all(this._sendingPromises).then(function(){})},t.prototype._shutdown=function(){return g.debug("shutdown started"),this.onShutdown(),this.forceFlush()},t}()});function du(t){var e=[429,502,503,504];return e.includes(t)}function Eu(t){if(t!=null){var e=Number.parseInt(t,10);if(Number.isInteger(e))return e>0?e*1e3:-1;var n=new Date(t).getTime()-Date.now();return n>=0?n:0}}var zp=m(()=>{});var C8,bt,Ti=m(()=>{C8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),bt=function(t){C8(e,t);function e(n,i,a){var s=t.call(this,n)||this;return s.name="OTLPExporterError",s.data=a,s.code=i,s}return e}(Error)});var SL={};it(SL,{createHttpAgent:()=>B8,sendWithHttp:()=>U8});import*as _u from"http";import*as Su from"https";import*as _L from"zlib";import{Readable as w8}from"stream";function U8(t,e,n,i,a){var s=new URL(t.url),o=Number(process.versions.node.split(".")[0]),r={hostname:s.hostname,port:s.port,path:s.pathname,method:"POST",headers:Xp({},t.headers),agent:e},u=s.protocol==="http:"?_u.request:Su.request,l=u(r,function(p){var _=[];p.on("data",function(f){return _.push(f)}),p.on("end",function(){if(p.statusCode&&p.statusCode<299)i({status:"success",data:Buffer.concat(_)});else if(p.statusCode&&du(p.statusCode))i({status:"retryable",retryInMillis:Eu(p.headers["retry-after"])});else{var f=new bt(p.statusMessage,p.statusCode);i({status:"failure",error:f})}})});l.setTimeout(a,function(){l.destroy(),i({status:"failure",error:new Error("Request Timeout")})}),l.on("error",function(p){i({status:"failure",error:p})});var c=o>=14?"close":"abort";l.on(c,function(){i({status:"failure",error:new Error("Request timed out")})}),D8(l,t.compression,n,function(p){i({status:"failure",error:p})})}function D8(t,e,n,i){var a=V8(n);e==="gzip"&&(t.setHeader("Content-Encoding","gzip"),a=a.on("error",i).pipe(_L.createGzip()).on("error",i)),a.pipe(t)}function V8(t){var e=new w8;return e.push(t),e.push(null),e}function B8(t,e){var n=new URL(t),i=n.protocol==="http:"?_u.Agent:Su.Agent;return new i(e)}var Xp,hL=m(()=>{zp();Ti();Xp=function(){return Xp=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},Xp.apply(this,arguments)}});function TL(t){return new H8(t)}var G8,k8,H8,vL=m(()=>{G8=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},k8=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},H8=function(){function t(e){this._parameters=e,this._send=null,this._agent=null}return t.prototype.send=function(e,n){return G8(this,void 0,void 0,function(){var i,a,s,o=this;return k8(this,function(r){return this._send==null&&(i=(hL(),Y(SL)),a=i.sendWithHttp,s=i.createHttpAgent,this._agent=s(this._parameters.url,this._parameters.agentOptions),this._send=a),[2,new Promise(function(u){var l;(l=o._send)===null||l===void 0||l.call(o,o._parameters,o._agent,e,function(c){u(c)},n)})]})})},t.prototype.shutdown=function(){},t}()});function W8(){return Math.random()*(2*mL)-mL}function hu(t){return new z8(t.transport)}var F8,Y8,q8,j8,$8,K8,mL,z8,Jp=m(()=>{F8=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},Y8=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},q8=5,j8=1e3,$8=5e3,K8=1.5,mL=.2;z8=function(){function t(e){this._transport=e}return t.prototype.retry=function(e,n,i){var a=this;return new Promise(function(s,o){setTimeout(function(){a._transport.send(e,n).then(s,o)},i)})},t.prototype.send=function(e,n){var i;return F8(this,void 0,void 0,function(){var a,s,o,r,u,l,c;return Y8(this,function(p){switch(p.label){case 0:return a=Date.now()+n,[4,this._transport.send(e,n)];case 1:s=p.sent(),o=q8,r=j8,p.label=2;case 2:return s.status==="retryable"&&o>0?(o--,u=Math.max(Math.min(r,$8)+W8(),0),r=r*K8,l=(i=s.retryInMillis)!==null&&i!==void 0?i:u,c=a-Date.now(),l>c?[2,s]:[4,this.retry(e,c,l)]):[3,4];case 3:return s=p.sent(),[3,2];case 4:return[2,s]}})})},t.prototype.shutdown=function(){return this._transport.shutdown()},t}()});function yL(t){var e;return t?.keepAlive!=null&&(t.httpAgentOptions!=null?t.httpAgentOptions.keepAlive==null&&(t.httpAgentOptions.keepAlive=t.keepAlive):t.httpAgentOptions={keepAlive:t.keepAlive}),(e=t.httpAgentOptions)!==null&&e!==void 0?e:{keepAlive:!0}}var AL=m(()=>{});function X8(t){if(!Number.isNaN(t)&&Number.isFinite(t)&&t>0)return t;throw new Error("Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '"+t+"')")}function Tu(t,e,n){var i,a,s,o,r,u;return{timeoutMillis:X8((a=(i=t.timeoutMillis)!==null&&i!==void 0?i:e.timeoutMillis)!==null&&a!==void 0?a:n.timeoutMillis),concurrencyLimit:(o=(s=t.concurrencyLimit)!==null&&s!==void 0?s:e.concurrencyLimit)!==null&&o!==void 0?o:n.concurrencyLimit,compression:(u=(r=t.compression)!==null&&r!==void 0?r:e.compression)!==null&&u!==void 0?u:n.compression}}function vu(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}var Qp=m(()=>{});function mu(t){t===void 0&&(t={});var e={};return Object.entries(t).forEach(function(n){var i=J8(n,2),a=i[0],s=i[1];typeof s<"u"?e[a]=String(s):g.warn('Header "'+a+'" has invalid value ('+s+") and will be ignored")}),e}var J8,Zp=m(()=>{b();J8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}});function Q8(t,e,n){var i=Yr({},n),a={};return e!=null&&Object.assign(a,e),t!=null&&Object.assign(a,t),Object.assign(a,i)}function Z8(t){if(t!=null)try{return new URL(t),t}catch{throw new Error("Configuration: Could not parse user-provided export URL: '"+t+"'")}}function yu(t,e,n){var i,a;return Yr(Yr({},Tu(t,e,n)),{headers:Q8(mu(t.headers),e.headers,n.headers),url:(a=(i=Z8(t.url))!==null&&i!==void 0?i:e.url)!==null&&a!==void 0?a:n.url})}function Au(t,e){return Yr(Yr({},vu()),{headers:t,url:"http://localhost:4318/"+e})}var Yr,ed=m(()=>{Qp();Zp();Yr=function(){return Yr=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},Yr.apply(this,arguments)}});function OL(t){var e,n=(e=process.env[t])===null||e===void 0?void 0:e.trim();if(n!=null&&n!==""){var i=Number(n);if(!Number.isNaN(i)&&Number.isFinite(i)&&i>0)return i;g.warn("Configuration: "+t+" is invalid, expected number greater than 0 (actual: "+n+")")}}function eW(t){var e=OL("OTEL_EXPORTER_OTLP_"+t+"_TIMEOUT"),n=OL("OTEL_EXPORTER_OTLP_TIMEOUT");return e??n}function gL(t){var e,n=(e=process.env[t])===null||e===void 0?void 0:e.trim();if(n!==""){if(n==null||n==="none"||n==="gzip")return n;g.warn("Configuration: "+t+" is invalid, expected 'none' or 'gzip' (actual: '"+n+"')")}}function tW(t){var e=gL("OTEL_EXPORTER_OTLP_"+t+"_COMPRESSION"),n=gL("OTEL_EXPORTER_OTLP_COMPRESSION");return e??n}function Ou(t){return{timeoutMillis:eW(t),compression:tW(t)}}var td=m(()=>{b()});function rW(t){var e,n,i=(e=process.env["OTEL_EXPORTER_OTLP_"+t+"_HEADERS"])===null||e===void 0?void 0:e.trim(),a=(n=process.env.OTEL_EXPORTER_OTLP_HEADERS)===null||n===void 0?void 0:n.trim(),s=bn.parseKeyPairsIntoRecord(i),o=bn.parseKeyPairsIntoRecord(a);if(!(Object.keys(s).length===0&&Object.keys(o).length===0))return Object.assign({},bn.parseKeyPairsIntoRecord(a),bn.parseKeyPairsIntoRecord(i))}function nW(t){try{var e=new URL(t);return e.toString()}catch{g.warn("Configuration: Could not parse environment-provided export URL: '"+t+"', falling back to undefined");return}}function oW(t,e){try{new URL(t)}catch{g.warn("Configuration: Could not parse environment-provided export URL: '"+t+"', falling back to undefined");return}t.endsWith("/")||(t=t+"/"),t+=e;try{new URL(t)}catch{g.warn("Configuration: Provided URL appended with '"+e+"' is not a valid URL, using 'undefined' instead of '"+t+"'");return}return t}function iW(t){var e,n=(e=process.env.OTEL_EXPORTER_OTLP_ENDPOINT)===null||e===void 0?void 0:e.trim();if(!(n==null||n===""))return oW(n,t)}function aW(t){var e,n=(e=process.env["OTEL_EXPORTER_OTLP_"+t+"_ENDPOINT"])===null||e===void 0?void 0:e.trim();if(!(n==null||n===""))return nW(n)}function NL(t,e){var n;return gu(gu({},Ou(t)),{url:(n=aW(t))!==null&&n!==void 0?n:iW(e),headers:rW(t)})}var gu,RL=m(()=>{K();b();td();gu=function(){return gu=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},gu.apply(this,arguments)}});var sW,vi,PL=m(()=>{pu();b();vL();Ti();Jp();AL();ed();RL();sW=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),vi=function(t){sW(e,t);function e(n,i,a,s,o){n===void 0&&(n={});var r=t.call(this,n)||this,u=yu({url:n.url,headers:n.headers,concurrencyLimit:n.concurrencyLimit,timeoutMillis:n.timeoutMillis,compression:n.compression},NL(s,o),Au(a,o));return r._timeoutMillis=u.timeoutMillis,r._concurrencyLimit=u.concurrencyLimit,n.metadata&&g.warn("Metadata cannot be set when using http"),r._serializer=i,r._transport=hu({transport:TL({agentOptions:yL(n),compression:u.compression,headers:u.headers,url:u.url})}),r}return e.prototype.send=function(n,i,a){var s=this;if(this._shutdownOnce.isCalled){g.debug("Shutdown already started. Cannot send objects");return}var o=this._serializer.serializeRequest(n);if(o==null){a(new Error("Could not serialize message"));return}var r=this._transport.send(o,this._timeoutMillis).then(function(l){l.status==="success"?i():l.status==="failure"&&l.error?a(l.error):l.status==="retryable"?a(new bt("Export failed with retryable status")):a(new bt("Export failed with unknown error"))},a);this._sendingPromises.push(r);var u=function(){var l=s._sendingPromises.indexOf(r);s._sendingPromises.splice(l,1)};r.then(u,u)},e.prototype.onShutdown=function(){},e}(Dn)});var mi,bL=m(()=>{(function(t){t.NONE="none",t.GZIP="gzip"})(mi||(mi={}))});var ML=m(()=>{PL();bL()});function xL(t){return new lW(t)}var uW,lW,LL=m(()=>{b();zp();uW=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},lW=function(){function t(e){this._parameters=e}return t.prototype.send=function(e,n){var i=this;return new Promise(function(a){var s=new XMLHttpRequest;s.timeout=n,s.open("POST",i._parameters.url),Object.entries(i._parameters.headers).forEach(function(o){var r=uW(o,2),u=r[0],l=r[1];s.setRequestHeader(u,l)}),s.ontimeout=function(o){a({status:"failure",error:new Error("XHR request timed out")})},s.onreadystatechange=function(){s.status>=200&&s.status<=299?(g.debug("XHR success"),a({status:"success"})):s.status&&du(s.status)?a({status:"retryable",retryInMillis:Eu(s.getResponseHeader("Retry-After"))}):s.status!==0&&a({status:"failure",error:new Error("XHR request failed with non-retryable status")})},s.onabort=function(){a({status:"failure",error:new Error("XHR request aborted")})},s.onerror=function(){a({status:"failure",error:new Error("XHR request errored")})},s.send(new Blob([e],{type:i._parameters.headers["Content-Type"]}))})},t.prototype.shutdown=function(){},t}()});function IL(t){return new cW(t)}var cW,CL=m(()=>{b();cW=function(){function t(e){this._params=e}return t.prototype.send=function(e){var n=this;return new Promise(function(i){navigator.sendBeacon(n._params.url,new Blob([e],{type:n._params.blobType}))?(g.debug("SendBeacon success"),i({status:"success"})):i({status:"failure",error:new Error("SendBeacon failed")})})},t.prototype.shutdown=function(){},t}()});var fW,rd,wL=m(()=>{pu();Ti();b();LL();CL();Jp();ed();fW=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),rd=function(t){fW(e,t);function e(n,i,a,s){n===void 0&&(n={});var o=t.call(this,n)||this;o._serializer=i;var r=!!n.headers||typeof navigator.sendBeacon!="function",u=yu({url:n.url,timeoutMillis:n.timeoutMillis,headers:n.headers,concurrencyLimit:n.concurrencyLimit},{},Au(a,s));return o._timeoutMillis=u.timeoutMillis,o._concurrencyLimit=u.concurrencyLimit,r?o._transport=hu({transport:xL({headers:u.headers,url:u.url})}):o._transport=IL({url:u.url,blobType:u.headers["Content-Type"]}),o}return e.prototype.onShutdown=function(){},e.prototype.send=function(n,i,a){var s=this;if(this._shutdownOnce.isCalled){g.debug("Shutdown already started. Cannot send objects");return}var o=this._serializer.serializeRequest(n);if(o==null){a(new Error("Could not serialize message"));return}var r=this._transport.send(o,this._timeoutMillis).then(function(l){l.status==="success"?i():l.status==="failure"&&l.error?a(l.error):l.status==="retryable"?a(new bt("Export failed with retryable status")):a(new bt("Export failed with unknown error"))},a);this._sendingPromises.push(r);var u=function(){var l=s._sendingPromises.indexOf(r);s._sendingPromises.splice(l,1)};r.then(u,u)},e}(Dn)});var UL=m(()=>{wL()});var DL=m(()=>{ML();UL()});var Nu={};it(Nu,{CompressionAlgorithm:()=>mi,OTLPExporterBase:()=>Dn,OTLPExporterBrowserBase:()=>rd,OTLPExporterError:()=>bt,OTLPExporterNodeBase:()=>vi,getSharedConfigurationDefaults:()=>vu,getSharedConfigurationFromEnvironment:()=>Ou,mergeOtlpSharedConfigurationWithDefaults:()=>Tu,validateAndNormalizeHeaders:()=>mu});var yi=m(()=>{DL();pu();Ti();Zp();Qp();td()});function Ru(t){var e=BigInt(1e9);return BigInt(t[0])*e+BigInt(t[1])}function nd(t){var e=Number(BigInt.asUintN(32,t)),n=Number(BigInt.asUintN(32,t>>BigInt(32)));return{low:e,high:n}}function Pu(t){var e=Ru(t);return nd(e)}function od(t){var e=Ru(t);return e.toString()}function VL(t){return t}function BL(t){if(t!==void 0)return lr(t)}function Sr(t){var e,n;if(t===void 0)return dW;var i=(e=t.useLongBits)!==null&&e!==void 0?e:!0,a=(n=t.useHex)!==null&&n!==void 0?n:!1;return{encodeHrTime:i?Pu:pW,encodeSpanContext:a?VL:lr,encodeOptionalSpanContext:a?VL:BL}}var pW,dW,Ai=m(()=>{K();pW=typeof BigInt<"u"?od:Ps;dW={encodeHrTime:Pu,encodeSpanContext:lr,encodeOptionalSpanContext:BL}});var bu,GL=m(()=>{(function(t){t[t.SPAN_KIND_UNSPECIFIED=0]="SPAN_KIND_UNSPECIFIED",t[t.SPAN_KIND_INTERNAL=1]="SPAN_KIND_INTERNAL",t[t.SPAN_KIND_SERVER=2]="SPAN_KIND_SERVER",t[t.SPAN_KIND_CLIENT=3]="SPAN_KIND_CLIENT",t[t.SPAN_KIND_PRODUCER=4]="SPAN_KIND_PRODUCER",t[t.SPAN_KIND_CONSUMER=5]="SPAN_KIND_CONSUMER"})(bu||(bu={}))});function Vn(t){return{name:t.name,version:t.version}}function Mt(t){return Object.keys(t).map(function(e){return Mu(e,t[e])})}function Mu(t,e){return{key:t,value:xu(e)}}function xu(t){var e=typeof t;return e==="string"?{stringValue:t}:e==="number"?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:e==="boolean"?{boolValue:t}:t instanceof Uint8Array?{bytesValue:t}:Array.isArray(t)?{arrayValue:{values:t.map(xu)}}:e==="object"&&t!=null?{kvlistValue:{values:Object.entries(t).map(function(n){var i=EW(n,2),a=i[0],s=i[1];return Mu(a,s)})}}:{}}var EW,Bn=m(()=>{EW=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}});function kL(t,e){var n,i=t.spanContext(),a=t.status;return{traceId:e.encodeSpanContext(i.traceId),spanId:e.encodeSpanContext(i.spanId),parentSpanId:e.encodeOptionalSpanContext(t.parentSpanId),traceState:(n=i.traceState)===null||n===void 0?void 0:n.serialize(),name:t.name,kind:t.kind==null?0:t.kind+1,startTimeUnixNano:e.encodeHrTime(t.startTime),endTimeUnixNano:e.encodeHrTime(t.endTime),attributes:Mt(t.attributes),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map(function(s){return SW(s,e)}),droppedEventsCount:t.droppedEventsCount,status:{code:a.code,message:a.message},links:t.links.map(function(s){return _W(s,e)}),droppedLinksCount:t.droppedLinksCount}}function _W(t,e){var n;return{attributes:t.attributes?Mt(t.attributes):[],spanId:e.encodeSpanContext(t.context.spanId),traceId:e.encodeSpanContext(t.context.traceId),traceState:(n=t.context.traceState)===null||n===void 0?void 0:n.serialize(),droppedAttributesCount:t.droppedAttributesCount||0}}function SW(t,e){return{attributes:t.attributes?Mt(t.attributes):[],name:t.name,timeUnixNano:e.encodeHrTime(t.time),droppedAttributesCount:t.droppedAttributesCount||0}}var HL=m(()=>{Bn()});function Gn(t){return{attributes:Mt(t.attributes),droppedAttributesCount:0}}var Lu=m(()=>{Bn()});function kn(t,e){var n=Sr(e);return{resourceSpans:mW(t,n)}}function vW(t){var e,n,i=new Map;try{for(var a=hW(t),s=a.next();!s.done;s=a.next()){var o=s.value,r=i.get(o.resource);r||(r=new Map,i.set(o.resource,r));var u=o.instrumentationLibrary.name+"@"+(o.instrumentationLibrary.version||"")+":"+(o.instrumentationLibrary.schemaUrl||""),l=r.get(u);l||(l=[],r.set(u,l)),l.push(o)}}catch(c){e={error:c}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return i}function mW(t,e){for(var n=vW(t),i=[],a=n.entries(),s=a.next();!s.done;){for(var o=TW(s.value,2),r=o[0],u=o[1],l=[],c=u.values(),p=c.next();!p.done;){var _=p.value;if(_.length>0){var f=_.map(function(v){return kL(v,e)});l.push({scope:Vn(_[0].instrumentationLibrary),spans:f,schemaUrl:_[0].instrumentationLibrary.schemaUrl})}p=c.next()}var S={resource:Gn(r),scopeSpans:l,schemaUrl:void 0};i.push(S),s=a.next()}return i}var hW,TW,Iu=m(()=>{HL();Ai();Bn();Lu();hW=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},TW=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}});function YL(t,e){var n=Sr(e);return{resource:Gn(t.resource),schemaUrl:void 0,scopeMetrics:yW(t.scopeMetrics,n)}}function yW(t,e){return Array.from(t.map(function(n){return{scope:Vn(n.scope),metrics:n.metrics.map(function(i){return AW(i,e)}),schemaUrl:n.scope.schemaUrl}}))}function AW(t,e){var n={name:t.descriptor.name,description:t.descriptor.description,unit:t.descriptor.unit},i=RW(t.aggregationTemporality);switch(t.dataPointType){case Ne.SUM:n.sum={aggregationTemporality:i,isMonotonic:t.isMonotonic,dataPoints:FL(t,e)};break;case Ne.GAUGE:n.gauge={dataPoints:FL(t,e)};break;case Ne.HISTOGRAM:n.histogram={aggregationTemporality:i,dataPoints:gW(t,e)};break;case Ne.EXPONENTIAL_HISTOGRAM:n.exponentialHistogram={aggregationTemporality:i,dataPoints:NW(t,e)};break}return n}function OW(t,e,n){var i={attributes:Mt(t.attributes),startTimeUnixNano:n.encodeHrTime(t.startTime),timeUnixNano:n.encodeHrTime(t.endTime)};switch(e){case Et.INT:i.asInt=t.value;break;case Et.DOUBLE:i.asDouble=t.value;break}return i}function FL(t,e){return t.dataPoints.map(function(n){return OW(n,t.descriptor.valueType,e)})}function gW(t,e){return t.dataPoints.map(function(n){var i=n.value;return{attributes:Mt(n.attributes),bucketCounts:i.buckets.counts,explicitBounds:i.buckets.boundaries,count:i.count,sum:i.sum,min:i.min,max:i.max,startTimeUnixNano:e.encodeHrTime(n.startTime),timeUnixNano:e.encodeHrTime(n.endTime)}})}function NW(t,e){return t.dataPoints.map(function(n){var i=n.value;return{attributes:Mt(n.attributes),count:i.count,min:i.min,max:i.max,sum:i.sum,positive:{offset:i.positive.offset,bucketCounts:i.positive.bucketCounts},negative:{offset:i.negative.offset,bucketCounts:i.negative.bucketCounts},scale:i.scale,zeroCount:i.zeroCount,startTimeUnixNano:e.encodeHrTime(n.startTime),timeUnixNano:e.encodeHrTime(n.endTime)}})}function RW(t){switch(t){case ge.DELTA:return 1;case ge.CUMULATIVE:return 2}}var qL=m(()=>{b();wn();Ai();Bn();Lu()});function Hn(t,e){return{resourceMetrics:t.map(function(n){return YL(n,e)})}}var Cu=m(()=>{qL()});function Fn(t,e){var n=Sr(e);return{resourceLogs:MW(t,n)}}function bW(t){var e,n,i=new Map;try{for(var a=PW(t),s=a.next();!s.done;s=a.next()){var o=s.value,r=o.resource,u=o.instrumentationScope,l=u.name,c=u.version,p=c===void 0?"":c,_=u.schemaUrl,f=_===void 0?"":_,S=i.get(r);S||(S=new Map,i.set(r,S));var v=l+"@"+p+":"+f,T=S.get(v);T||(T=[],S.set(v,T)),T.push(o)}}catch(A){e={error:A}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return i}function MW(t,e){var n=bW(t);return Array.from(n,function(i){var a=jL(i,2),s=a[0],o=a[1];return{resource:Gn(s),scopeLogs:Array.from(o,function(r){var u=jL(r,2),l=u[1];return{scope:Vn(l[0].instrumentationScope),logRecords:l.map(function(c){return xW(c,e)}),schemaUrl:l[0].instrumentationScope.schemaUrl}}),schemaUrl:void 0}})}function xW(t,e){var n,i,a;return{timeUnixNano:e.encodeHrTime(t.hrTime),observedTimeUnixNano:e.encodeHrTime(t.hrTimeObserved),severityNumber:t.severityNumber,severityText:t.severityText,body:xu(t.body),attributes:LW(t.attributes),droppedAttributesCount:t.droppedAttributesCount,flags:(n=t.spanContext)===null||n===void 0?void 0:n.traceFlags,traceId:e.encodeOptionalSpanContext((i=t.spanContext)===null||i===void 0?void 0:i.traceId),spanId:e.encodeOptionalSpanContext((a=t.spanContext)===null||a===void 0?void 0:a.spanId)}}function LW(t){return Object.keys(t).map(function(e){return Mu(e,t[e])})}var PW,jL,wu=m(()=>{Ai();Bn();Lu();PW=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},jL=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}});var KL=h((uue,$L)=>{"use strict";var I=PU(),y=I.Reader,V=I.Writer,E=I.util,d=I.roots.default||(I.roots.default={});d.opentelemetry=function(){var t={};return t.proto=function(){var e={};return e.common=function(){var n={};return n.v1=function(){var i={};return i.AnyValue=function(){function a(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}a.prototype.stringValue=null,a.prototype.boolValue=null,a.prototype.intValue=null,a.prototype.doubleValue=null,a.prototype.arrayValue=null,a.prototype.kvlistValue=null,a.prototype.bytesValue=null;var s;return Object.defineProperty(a.prototype,"value",{get:E.oneOfGetter(s=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"]),set:E.oneOfSetter(s)}),a.create=function(r){return new a(r)},a.encode=function(r,u){return u||(u=V.create()),r.stringValue!=null&&Object.hasOwnProperty.call(r,"stringValue")&&u.uint32(10).string(r.stringValue),r.boolValue!=null&&Object.hasOwnProperty.call(r,"boolValue")&&u.uint32(16).bool(r.boolValue),r.intValue!=null&&Object.hasOwnProperty.call(r,"intValue")&&u.uint32(24).int64(r.intValue),r.doubleValue!=null&&Object.hasOwnProperty.call(r,"doubleValue")&&u.uint32(33).double(r.doubleValue),r.arrayValue!=null&&Object.hasOwnProperty.call(r,"arrayValue")&&d.opentelemetry.proto.common.v1.ArrayValue.encode(r.arrayValue,u.uint32(42).fork()).ldelim(),r.kvlistValue!=null&&Object.hasOwnProperty.call(r,"kvlistValue")&&d.opentelemetry.proto.common.v1.KeyValueList.encode(r.kvlistValue,u.uint32(50).fork()).ldelim(),r.bytesValue!=null&&Object.hasOwnProperty.call(r,"bytesValue")&&u.uint32(58).bytes(r.bytesValue),u},a.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},a.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.common.v1.AnyValue;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.stringValue=r.string();break}case 2:{c.boolValue=r.bool();break}case 3:{c.intValue=r.int64();break}case 4:{c.doubleValue=r.double();break}case 5:{c.arrayValue=d.opentelemetry.proto.common.v1.ArrayValue.decode(r,r.uint32());break}case 6:{c.kvlistValue=d.opentelemetry.proto.common.v1.KeyValueList.decode(r,r.uint32());break}case 7:{c.bytesValue=r.bytes();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var u={};if(r.stringValue!=null&&r.hasOwnProperty("stringValue")&&(u.value=1,!E.isString(r.stringValue)))return"stringValue: string expected";if(r.boolValue!=null&&r.hasOwnProperty("boolValue")){if(u.value===1)return"value: multiple values";if(u.value=1,typeof r.boolValue!="boolean")return"boolValue: boolean expected"}if(r.intValue!=null&&r.hasOwnProperty("intValue")){if(u.value===1)return"value: multiple values";if(u.value=1,!E.isInteger(r.intValue)&&!(r.intValue&&E.isInteger(r.intValue.low)&&E.isInteger(r.intValue.high)))return"intValue: integer|Long expected"}if(r.doubleValue!=null&&r.hasOwnProperty("doubleValue")){if(u.value===1)return"value: multiple values";if(u.value=1,typeof r.doubleValue!="number")return"doubleValue: number expected"}if(r.arrayValue!=null&&r.hasOwnProperty("arrayValue")){if(u.value===1)return"value: multiple values";u.value=1;{var l=d.opentelemetry.proto.common.v1.ArrayValue.verify(r.arrayValue);if(l)return"arrayValue."+l}}if(r.kvlistValue!=null&&r.hasOwnProperty("kvlistValue")){if(u.value===1)return"value: multiple values";u.value=1;{var l=d.opentelemetry.proto.common.v1.KeyValueList.verify(r.kvlistValue);if(l)return"kvlistValue."+l}}if(r.bytesValue!=null&&r.hasOwnProperty("bytesValue")){if(u.value===1)return"value: multiple values";if(u.value=1,!(r.bytesValue&&typeof r.bytesValue.length=="number"||E.isString(r.bytesValue)))return"bytesValue: buffer expected"}return null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.common.v1.AnyValue)return r;var u=new d.opentelemetry.proto.common.v1.AnyValue;if(r.stringValue!=null&&(u.stringValue=String(r.stringValue)),r.boolValue!=null&&(u.boolValue=!!r.boolValue),r.intValue!=null&&(E.Long?(u.intValue=E.Long.fromValue(r.intValue)).unsigned=!1:typeof r.intValue=="string"?u.intValue=parseInt(r.intValue,10):typeof r.intValue=="number"?u.intValue=r.intValue:typeof r.intValue=="object"&&(u.intValue=new E.LongBits(r.intValue.low>>>0,r.intValue.high>>>0).toNumber())),r.doubleValue!=null&&(u.doubleValue=Number(r.doubleValue)),r.arrayValue!=null){if(typeof r.arrayValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.arrayValue: object expected");u.arrayValue=d.opentelemetry.proto.common.v1.ArrayValue.fromObject(r.arrayValue)}if(r.kvlistValue!=null){if(typeof r.kvlistValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.kvlistValue: object expected");u.kvlistValue=d.opentelemetry.proto.common.v1.KeyValueList.fromObject(r.kvlistValue)}return r.bytesValue!=null&&(typeof r.bytesValue=="string"?E.base64.decode(r.bytesValue,u.bytesValue=E.newBuffer(E.base64.length(r.bytesValue)),0):r.bytesValue.length>=0&&(u.bytesValue=r.bytesValue)),u},a.toObject=function(r,u){u||(u={});var l={};return r.stringValue!=null&&r.hasOwnProperty("stringValue")&&(l.stringValue=r.stringValue,u.oneofs&&(l.value="stringValue")),r.boolValue!=null&&r.hasOwnProperty("boolValue")&&(l.boolValue=r.boolValue,u.oneofs&&(l.value="boolValue")),r.intValue!=null&&r.hasOwnProperty("intValue")&&(typeof r.intValue=="number"?l.intValue=u.longs===String?String(r.intValue):r.intValue:l.intValue=u.longs===String?E.Long.prototype.toString.call(r.intValue):u.longs===Number?new E.LongBits(r.intValue.low>>>0,r.intValue.high>>>0).toNumber():r.intValue,u.oneofs&&(l.value="intValue")),r.doubleValue!=null&&r.hasOwnProperty("doubleValue")&&(l.doubleValue=u.json&&!isFinite(r.doubleValue)?String(r.doubleValue):r.doubleValue,u.oneofs&&(l.value="doubleValue")),r.arrayValue!=null&&r.hasOwnProperty("arrayValue")&&(l.arrayValue=d.opentelemetry.proto.common.v1.ArrayValue.toObject(r.arrayValue,u),u.oneofs&&(l.value="arrayValue")),r.kvlistValue!=null&&r.hasOwnProperty("kvlistValue")&&(l.kvlistValue=d.opentelemetry.proto.common.v1.KeyValueList.toObject(r.kvlistValue,u),u.oneofs&&(l.value="kvlistValue")),r.bytesValue!=null&&r.hasOwnProperty("bytesValue")&&(l.bytesValue=u.bytes===String?E.base64.encode(r.bytesValue,0,r.bytesValue.length):u.bytes===Array?Array.prototype.slice.call(r.bytesValue):r.bytesValue,u.oneofs&&(l.value="bytesValue")),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.common.v1.AnyValue"},a}(),i.ArrayValue=function(){function a(s){if(this.values=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.values=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.values!=null&&o.values.length)for(var u=0;u<o.values.length;++u)d.opentelemetry.proto.common.v1.AnyValue.encode(o.values[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.common.v1.ArrayValue;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.values&&l.values.length||(l.values=[]),l.values.push(d.opentelemetry.proto.common.v1.AnyValue.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.values!=null&&o.hasOwnProperty("values")){if(!Array.isArray(o.values))return"values: array expected";for(var r=0;r<o.values.length;++r){var u=d.opentelemetry.proto.common.v1.AnyValue.verify(o.values[r]);if(u)return"values."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.common.v1.ArrayValue)return o;var r=new d.opentelemetry.proto.common.v1.ArrayValue;if(o.values){if(!Array.isArray(o.values))throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: array expected");r.values=[];for(var u=0;u<o.values.length;++u){if(typeof o.values[u]!="object")throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: object expected");r.values[u]=d.opentelemetry.proto.common.v1.AnyValue.fromObject(o.values[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.values=[]),o.values&&o.values.length){u.values=[];for(var l=0;l<o.values.length;++l)u.values[l]=d.opentelemetry.proto.common.v1.AnyValue.toObject(o.values[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.common.v1.ArrayValue"},a}(),i.KeyValueList=function(){function a(s){if(this.values=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.values=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.values!=null&&o.values.length)for(var u=0;u<o.values.length;++u)d.opentelemetry.proto.common.v1.KeyValue.encode(o.values[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.common.v1.KeyValueList;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.values&&l.values.length||(l.values=[]),l.values.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.values!=null&&o.hasOwnProperty("values")){if(!Array.isArray(o.values))return"values: array expected";for(var r=0;r<o.values.length;++r){var u=d.opentelemetry.proto.common.v1.KeyValue.verify(o.values[r]);if(u)return"values."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.common.v1.KeyValueList)return o;var r=new d.opentelemetry.proto.common.v1.KeyValueList;if(o.values){if(!Array.isArray(o.values))throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: array expected");r.values=[];for(var u=0;u<o.values.length;++u){if(typeof o.values[u]!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: object expected");r.values[u]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.values[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.values=[]),o.values&&o.values.length){u.values=[];for(var l=0;l<o.values.length;++l)u.values[l]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.values[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.common.v1.KeyValueList"},a}(),i.KeyValue=function(){function a(s){if(s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.key=null,a.prototype.value=null,a.create=function(o){return new a(o)},a.encode=function(o,r){return r||(r=V.create()),o.key!=null&&Object.hasOwnProperty.call(o,"key")&&r.uint32(10).string(o.key),o.value!=null&&Object.hasOwnProperty.call(o,"value")&&d.opentelemetry.proto.common.v1.AnyValue.encode(o.value,r.uint32(18).fork()).ldelim(),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.common.v1.KeyValue;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.key=o.string();break}case 2:{l.value=d.opentelemetry.proto.common.v1.AnyValue.decode(o,o.uint32());break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.key!=null&&o.hasOwnProperty("key")&&!E.isString(o.key))return"key: string expected";if(o.value!=null&&o.hasOwnProperty("value")){var r=d.opentelemetry.proto.common.v1.AnyValue.verify(o.value);if(r)return"value."+r}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.common.v1.KeyValue)return o;var r=new d.opentelemetry.proto.common.v1.KeyValue;if(o.key!=null&&(r.key=String(o.key)),o.value!=null){if(typeof o.value!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValue.value: object expected");r.value=d.opentelemetry.proto.common.v1.AnyValue.fromObject(o.value)}return r},a.toObject=function(o,r){r||(r={});var u={};return r.defaults&&(u.key="",u.value=null),o.key!=null&&o.hasOwnProperty("key")&&(u.key=o.key),o.value!=null&&o.hasOwnProperty("value")&&(u.value=d.opentelemetry.proto.common.v1.AnyValue.toObject(o.value,r)),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.common.v1.KeyValue"},a}(),i.InstrumentationScope=function(){function a(s){if(this.attributes=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.name=null,a.prototype.version=null,a.prototype.attributes=E.emptyArray,a.prototype.droppedAttributesCount=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.name!=null&&Object.hasOwnProperty.call(o,"name")&&r.uint32(10).string(o.name),o.version!=null&&Object.hasOwnProperty.call(o,"version")&&r.uint32(18).string(o.version),o.attributes!=null&&o.attributes.length)for(var u=0;u<o.attributes.length;++u)d.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[u],r.uint32(26).fork()).ldelim();return o.droppedAttributesCount!=null&&Object.hasOwnProperty.call(o,"droppedAttributesCount")&&r.uint32(32).uint32(o.droppedAttributesCount),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.common.v1.InstrumentationScope;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.name=o.string();break}case 2:{l.version=o.string();break}case 3:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 4:{l.droppedAttributesCount=o.uint32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.name!=null&&o.hasOwnProperty("name")&&!E.isString(o.name))return"name: string expected";if(o.version!=null&&o.hasOwnProperty("version")&&!E.isString(o.version))return"version: string expected";if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var r=0;r<o.attributes.length;++r){var u=d.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[r]);if(u)return"attributes."+u}}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(o.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.common.v1.InstrumentationScope)return o;var r=new d.opentelemetry.proto.common.v1.InstrumentationScope;if(o.name!=null&&(r.name=String(o.name)),o.version!=null&&(r.version=String(o.version)),o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: array expected");r.attributes=[];for(var u=0;u<o.attributes.length;++u){if(typeof o.attributes[u]!="object")throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: object expected");r.attributes[u]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[u])}}return o.droppedAttributesCount!=null&&(r.droppedAttributesCount=o.droppedAttributesCount>>>0),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.attributes=[]),r.defaults&&(u.name="",u.version="",u.droppedAttributesCount=0),o.name!=null&&o.hasOwnProperty("name")&&(u.name=o.name),o.version!=null&&o.hasOwnProperty("version")&&(u.version=o.version),o.attributes&&o.attributes.length){u.attributes=[];for(var l=0;l<o.attributes.length;++l)u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[l],r)}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=o.droppedAttributesCount),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.common.v1.InstrumentationScope"},a}(),i}(),n}(),e.resource=function(){var n={};return n.v1=function(){var i={};return i.Resource=function(){function a(s){if(this.attributes=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.attributes=E.emptyArray,a.prototype.droppedAttributesCount=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.attributes!=null&&o.attributes.length)for(var u=0;u<o.attributes.length;++u)d.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[u],r.uint32(10).fork()).ldelim();return o.droppedAttributesCount!=null&&Object.hasOwnProperty.call(o,"droppedAttributesCount")&&r.uint32(16).uint32(o.droppedAttributesCount),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.resource.v1.Resource;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 2:{l.droppedAttributesCount=o.uint32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var r=0;r<o.attributes.length;++r){var u=d.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[r]);if(u)return"attributes."+u}}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(o.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.resource.v1.Resource)return o;var r=new d.opentelemetry.proto.resource.v1.Resource;if(o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: array expected");r.attributes=[];for(var u=0;u<o.attributes.length;++u){if(typeof o.attributes[u]!="object")throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: object expected");r.attributes[u]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[u])}}return o.droppedAttributesCount!=null&&(r.droppedAttributesCount=o.droppedAttributesCount>>>0),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.attributes=[]),r.defaults&&(u.droppedAttributesCount=0),o.attributes&&o.attributes.length){u.attributes=[];for(var l=0;l<o.attributes.length;++l)u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[l],r)}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=o.droppedAttributesCount),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.resource.v1.Resource"},a}(),i}(),n}(),e.trace=function(){var n={};return n.v1=function(){var i={};return i.TracesData=function(){function a(s){if(this.resourceSpans=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.resourceSpans=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resourceSpans!=null&&o.resourceSpans.length)for(var u=0;u<o.resourceSpans.length;++u)d.opentelemetry.proto.trace.v1.ResourceSpans.encode(o.resourceSpans[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.trace.v1.TracesData;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.resourceSpans&&l.resourceSpans.length||(l.resourceSpans=[]),l.resourceSpans.push(d.opentelemetry.proto.trace.v1.ResourceSpans.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resourceSpans!=null&&o.hasOwnProperty("resourceSpans")){if(!Array.isArray(o.resourceSpans))return"resourceSpans: array expected";for(var r=0;r<o.resourceSpans.length;++r){var u=d.opentelemetry.proto.trace.v1.ResourceSpans.verify(o.resourceSpans[r]);if(u)return"resourceSpans."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.trace.v1.TracesData)return o;var r=new d.opentelemetry.proto.trace.v1.TracesData;if(o.resourceSpans){if(!Array.isArray(o.resourceSpans))throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: array expected");r.resourceSpans=[];for(var u=0;u<o.resourceSpans.length;++u){if(typeof o.resourceSpans[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: object expected");r.resourceSpans[u]=d.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(o.resourceSpans[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.resourceSpans=[]),o.resourceSpans&&o.resourceSpans.length){u.resourceSpans=[];for(var l=0;l<o.resourceSpans.length;++l)u.resourceSpans[l]=d.opentelemetry.proto.trace.v1.ResourceSpans.toObject(o.resourceSpans[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.TracesData"},a}(),i.ResourceSpans=function(){function a(s){if(this.scopeSpans=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.resource=null,a.prototype.scopeSpans=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resource!=null&&Object.hasOwnProperty.call(o,"resource")&&d.opentelemetry.proto.resource.v1.Resource.encode(o.resource,r.uint32(10).fork()).ldelim(),o.scopeSpans!=null&&o.scopeSpans.length)for(var u=0;u<o.scopeSpans.length;++u)d.opentelemetry.proto.trace.v1.ScopeSpans.encode(o.scopeSpans[u],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.trace.v1.ResourceSpans;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.resource=d.opentelemetry.proto.resource.v1.Resource.decode(o,o.uint32());break}case 2:{l.scopeSpans&&l.scopeSpans.length||(l.scopeSpans=[]),l.scopeSpans.push(d.opentelemetry.proto.trace.v1.ScopeSpans.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resource!=null&&o.hasOwnProperty("resource")){var r=d.opentelemetry.proto.resource.v1.Resource.verify(o.resource);if(r)return"resource."+r}if(o.scopeSpans!=null&&o.hasOwnProperty("scopeSpans")){if(!Array.isArray(o.scopeSpans))return"scopeSpans: array expected";for(var u=0;u<o.scopeSpans.length;++u){var r=d.opentelemetry.proto.trace.v1.ScopeSpans.verify(o.scopeSpans[u]);if(r)return"scopeSpans."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.trace.v1.ResourceSpans)return o;var r=new d.opentelemetry.proto.trace.v1.ResourceSpans;if(o.resource!=null){if(typeof o.resource!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.resource: object expected");r.resource=d.opentelemetry.proto.resource.v1.Resource.fromObject(o.resource)}if(o.scopeSpans){if(!Array.isArray(o.scopeSpans))throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: array expected");r.scopeSpans=[];for(var u=0;u<o.scopeSpans.length;++u){if(typeof o.scopeSpans[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: object expected");r.scopeSpans[u]=d.opentelemetry.proto.trace.v1.ScopeSpans.fromObject(o.scopeSpans[u])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.scopeSpans=[]),r.defaults&&(u.resource=null,u.schemaUrl=""),o.resource!=null&&o.hasOwnProperty("resource")&&(u.resource=d.opentelemetry.proto.resource.v1.Resource.toObject(o.resource,r)),o.scopeSpans&&o.scopeSpans.length){u.scopeSpans=[];for(var l=0;l<o.scopeSpans.length;++l)u.scopeSpans[l]=d.opentelemetry.proto.trace.v1.ScopeSpans.toObject(o.scopeSpans[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(u.schemaUrl=o.schemaUrl),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.ResourceSpans"},a}(),i.ScopeSpans=function(){function a(s){if(this.spans=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.scope=null,a.prototype.spans=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.scope!=null&&Object.hasOwnProperty.call(o,"scope")&&d.opentelemetry.proto.common.v1.InstrumentationScope.encode(o.scope,r.uint32(10).fork()).ldelim(),o.spans!=null&&o.spans.length)for(var u=0;u<o.spans.length;++u)d.opentelemetry.proto.trace.v1.Span.encode(o.spans[u],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.trace.v1.ScopeSpans;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.decode(o,o.uint32());break}case 2:{l.spans&&l.spans.length||(l.spans=[]),l.spans.push(d.opentelemetry.proto.trace.v1.Span.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.scope!=null&&o.hasOwnProperty("scope")){var r=d.opentelemetry.proto.common.v1.InstrumentationScope.verify(o.scope);if(r)return"scope."+r}if(o.spans!=null&&o.hasOwnProperty("spans")){if(!Array.isArray(o.spans))return"spans: array expected";for(var u=0;u<o.spans.length;++u){var r=d.opentelemetry.proto.trace.v1.Span.verify(o.spans[u]);if(r)return"spans."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.trace.v1.ScopeSpans)return o;var r=new d.opentelemetry.proto.trace.v1.ScopeSpans;if(o.scope!=null){if(typeof o.scope!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.scope: object expected");r.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(o.scope)}if(o.spans){if(!Array.isArray(o.spans))throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: array expected");r.spans=[];for(var u=0;u<o.spans.length;++u){if(typeof o.spans[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: object expected");r.spans[u]=d.opentelemetry.proto.trace.v1.Span.fromObject(o.spans[u])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.spans=[]),r.defaults&&(u.scope=null,u.schemaUrl=""),o.scope!=null&&o.hasOwnProperty("scope")&&(u.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.toObject(o.scope,r)),o.spans&&o.spans.length){u.spans=[];for(var l=0;l<o.spans.length;++l)u.spans[l]=d.opentelemetry.proto.trace.v1.Span.toObject(o.spans[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(u.schemaUrl=o.schemaUrl),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.ScopeSpans"},a}(),i.Span=function(){function a(s){if(this.attributes=[],this.events=[],this.links=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.traceId=null,a.prototype.spanId=null,a.prototype.traceState=null,a.prototype.parentSpanId=null,a.prototype.name=null,a.prototype.kind=null,a.prototype.startTimeUnixNano=null,a.prototype.endTimeUnixNano=null,a.prototype.attributes=E.emptyArray,a.prototype.droppedAttributesCount=null,a.prototype.events=E.emptyArray,a.prototype.droppedEventsCount=null,a.prototype.links=E.emptyArray,a.prototype.droppedLinksCount=null,a.prototype.status=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.traceId!=null&&Object.hasOwnProperty.call(o,"traceId")&&r.uint32(10).bytes(o.traceId),o.spanId!=null&&Object.hasOwnProperty.call(o,"spanId")&&r.uint32(18).bytes(o.spanId),o.traceState!=null&&Object.hasOwnProperty.call(o,"traceState")&&r.uint32(26).string(o.traceState),o.parentSpanId!=null&&Object.hasOwnProperty.call(o,"parentSpanId")&&r.uint32(34).bytes(o.parentSpanId),o.name!=null&&Object.hasOwnProperty.call(o,"name")&&r.uint32(42).string(o.name),o.kind!=null&&Object.hasOwnProperty.call(o,"kind")&&r.uint32(48).int32(o.kind),o.startTimeUnixNano!=null&&Object.hasOwnProperty.call(o,"startTimeUnixNano")&&r.uint32(57).fixed64(o.startTimeUnixNano),o.endTimeUnixNano!=null&&Object.hasOwnProperty.call(o,"endTimeUnixNano")&&r.uint32(65).fixed64(o.endTimeUnixNano),o.attributes!=null&&o.attributes.length)for(var u=0;u<o.attributes.length;++u)d.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[u],r.uint32(74).fork()).ldelim();if(o.droppedAttributesCount!=null&&Object.hasOwnProperty.call(o,"droppedAttributesCount")&&r.uint32(80).uint32(o.droppedAttributesCount),o.events!=null&&o.events.length)for(var u=0;u<o.events.length;++u)d.opentelemetry.proto.trace.v1.Span.Event.encode(o.events[u],r.uint32(90).fork()).ldelim();if(o.droppedEventsCount!=null&&Object.hasOwnProperty.call(o,"droppedEventsCount")&&r.uint32(96).uint32(o.droppedEventsCount),o.links!=null&&o.links.length)for(var u=0;u<o.links.length;++u)d.opentelemetry.proto.trace.v1.Span.Link.encode(o.links[u],r.uint32(106).fork()).ldelim();return o.droppedLinksCount!=null&&Object.hasOwnProperty.call(o,"droppedLinksCount")&&r.uint32(112).uint32(o.droppedLinksCount),o.status!=null&&Object.hasOwnProperty.call(o,"status")&&d.opentelemetry.proto.trace.v1.Status.encode(o.status,r.uint32(122).fork()).ldelim(),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.trace.v1.Span;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.traceId=o.bytes();break}case 2:{l.spanId=o.bytes();break}case 3:{l.traceState=o.string();break}case 4:{l.parentSpanId=o.bytes();break}case 5:{l.name=o.string();break}case 6:{l.kind=o.int32();break}case 7:{l.startTimeUnixNano=o.fixed64();break}case 8:{l.endTimeUnixNano=o.fixed64();break}case 9:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 10:{l.droppedAttributesCount=o.uint32();break}case 11:{l.events&&l.events.length||(l.events=[]),l.events.push(d.opentelemetry.proto.trace.v1.Span.Event.decode(o,o.uint32()));break}case 12:{l.droppedEventsCount=o.uint32();break}case 13:{l.links&&l.links.length||(l.links=[]),l.links.push(d.opentelemetry.proto.trace.v1.Span.Link.decode(o,o.uint32()));break}case 14:{l.droppedLinksCount=o.uint32();break}case 15:{l.status=d.opentelemetry.proto.trace.v1.Status.decode(o,o.uint32());break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.traceId!=null&&o.hasOwnProperty("traceId")&&!(o.traceId&&typeof o.traceId.length=="number"||E.isString(o.traceId)))return"traceId: buffer expected";if(o.spanId!=null&&o.hasOwnProperty("spanId")&&!(o.spanId&&typeof o.spanId.length=="number"||E.isString(o.spanId)))return"spanId: buffer expected";if(o.traceState!=null&&o.hasOwnProperty("traceState")&&!E.isString(o.traceState))return"traceState: string expected";if(o.parentSpanId!=null&&o.hasOwnProperty("parentSpanId")&&!(o.parentSpanId&&typeof o.parentSpanId.length=="number"||E.isString(o.parentSpanId)))return"parentSpanId: buffer expected";if(o.name!=null&&o.hasOwnProperty("name")&&!E.isString(o.name))return"name: string expected";if(o.kind!=null&&o.hasOwnProperty("kind"))switch(o.kind){default:return"kind: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:break}if(o.startTimeUnixNano!=null&&o.hasOwnProperty("startTimeUnixNano")&&!E.isInteger(o.startTimeUnixNano)&&!(o.startTimeUnixNano&&E.isInteger(o.startTimeUnixNano.low)&&E.isInteger(o.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(o.endTimeUnixNano!=null&&o.hasOwnProperty("endTimeUnixNano")&&!E.isInteger(o.endTimeUnixNano)&&!(o.endTimeUnixNano&&E.isInteger(o.endTimeUnixNano.low)&&E.isInteger(o.endTimeUnixNano.high)))return"endTimeUnixNano: integer|Long expected";if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var r=0;r<o.attributes.length;++r){var u=d.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[r]);if(u)return"attributes."+u}}if(o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(o.droppedAttributesCount))return"droppedAttributesCount: integer expected";if(o.events!=null&&o.hasOwnProperty("events")){if(!Array.isArray(o.events))return"events: array expected";for(var r=0;r<o.events.length;++r){var u=d.opentelemetry.proto.trace.v1.Span.Event.verify(o.events[r]);if(u)return"events."+u}}if(o.droppedEventsCount!=null&&o.hasOwnProperty("droppedEventsCount")&&!E.isInteger(o.droppedEventsCount))return"droppedEventsCount: integer expected";if(o.links!=null&&o.hasOwnProperty("links")){if(!Array.isArray(o.links))return"links: array expected";for(var r=0;r<o.links.length;++r){var u=d.opentelemetry.proto.trace.v1.Span.Link.verify(o.links[r]);if(u)return"links."+u}}if(o.droppedLinksCount!=null&&o.hasOwnProperty("droppedLinksCount")&&!E.isInteger(o.droppedLinksCount))return"droppedLinksCount: integer expected";if(o.status!=null&&o.hasOwnProperty("status")){var u=d.opentelemetry.proto.trace.v1.Status.verify(o.status);if(u)return"status."+u}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.trace.v1.Span)return o;var r=new d.opentelemetry.proto.trace.v1.Span;switch(o.traceId!=null&&(typeof o.traceId=="string"?E.base64.decode(o.traceId,r.traceId=E.newBuffer(E.base64.length(o.traceId)),0):o.traceId.length>=0&&(r.traceId=o.traceId)),o.spanId!=null&&(typeof o.spanId=="string"?E.base64.decode(o.spanId,r.spanId=E.newBuffer(E.base64.length(o.spanId)),0):o.spanId.length>=0&&(r.spanId=o.spanId)),o.traceState!=null&&(r.traceState=String(o.traceState)),o.parentSpanId!=null&&(typeof o.parentSpanId=="string"?E.base64.decode(o.parentSpanId,r.parentSpanId=E.newBuffer(E.base64.length(o.parentSpanId)),0):o.parentSpanId.length>=0&&(r.parentSpanId=o.parentSpanId)),o.name!=null&&(r.name=String(o.name)),o.kind){default:if(typeof o.kind=="number"){r.kind=o.kind;break}break;case"SPAN_KIND_UNSPECIFIED":case 0:r.kind=0;break;case"SPAN_KIND_INTERNAL":case 1:r.kind=1;break;case"SPAN_KIND_SERVER":case 2:r.kind=2;break;case"SPAN_KIND_CLIENT":case 3:r.kind=3;break;case"SPAN_KIND_PRODUCER":case 4:r.kind=4;break;case"SPAN_KIND_CONSUMER":case 5:r.kind=5;break}if(o.startTimeUnixNano!=null&&(E.Long?(r.startTimeUnixNano=E.Long.fromValue(o.startTimeUnixNano)).unsigned=!1:typeof o.startTimeUnixNano=="string"?r.startTimeUnixNano=parseInt(o.startTimeUnixNano,10):typeof o.startTimeUnixNano=="number"?r.startTimeUnixNano=o.startTimeUnixNano:typeof o.startTimeUnixNano=="object"&&(r.startTimeUnixNano=new E.LongBits(o.startTimeUnixNano.low>>>0,o.startTimeUnixNano.high>>>0).toNumber())),o.endTimeUnixNano!=null&&(E.Long?(r.endTimeUnixNano=E.Long.fromValue(o.endTimeUnixNano)).unsigned=!1:typeof o.endTimeUnixNano=="string"?r.endTimeUnixNano=parseInt(o.endTimeUnixNano,10):typeof o.endTimeUnixNano=="number"?r.endTimeUnixNano=o.endTimeUnixNano:typeof o.endTimeUnixNano=="object"&&(r.endTimeUnixNano=new E.LongBits(o.endTimeUnixNano.low>>>0,o.endTimeUnixNano.high>>>0).toNumber())),o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: array expected");r.attributes=[];for(var u=0;u<o.attributes.length;++u){if(typeof o.attributes[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: object expected");r.attributes[u]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[u])}}if(o.droppedAttributesCount!=null&&(r.droppedAttributesCount=o.droppedAttributesCount>>>0),o.events){if(!Array.isArray(o.events))throw TypeError(".opentelemetry.proto.trace.v1.Span.events: array expected");r.events=[];for(var u=0;u<o.events.length;++u){if(typeof o.events[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.events: object expected");r.events[u]=d.opentelemetry.proto.trace.v1.Span.Event.fromObject(o.events[u])}}if(o.droppedEventsCount!=null&&(r.droppedEventsCount=o.droppedEventsCount>>>0),o.links){if(!Array.isArray(o.links))throw TypeError(".opentelemetry.proto.trace.v1.Span.links: array expected");r.links=[];for(var u=0;u<o.links.length;++u){if(typeof o.links[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.links: object expected");r.links[u]=d.opentelemetry.proto.trace.v1.Span.Link.fromObject(o.links[u])}}if(o.droppedLinksCount!=null&&(r.droppedLinksCount=o.droppedLinksCount>>>0),o.status!=null){if(typeof o.status!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.status: object expected");r.status=d.opentelemetry.proto.trace.v1.Status.fromObject(o.status)}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.attributes=[],u.events=[],u.links=[]),r.defaults){if(r.bytes===String?u.traceId="":(u.traceId=[],r.bytes!==Array&&(u.traceId=E.newBuffer(u.traceId))),r.bytes===String?u.spanId="":(u.spanId=[],r.bytes!==Array&&(u.spanId=E.newBuffer(u.spanId))),u.traceState="",r.bytes===String?u.parentSpanId="":(u.parentSpanId=[],r.bytes!==Array&&(u.parentSpanId=E.newBuffer(u.parentSpanId))),u.name="",u.kind=r.enums===String?"SPAN_KIND_UNSPECIFIED":0,E.Long){var l=new E.Long(0,0,!1);u.startTimeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.startTimeUnixNano=r.longs===String?"0":0;if(E.Long){var l=new E.Long(0,0,!1);u.endTimeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.endTimeUnixNano=r.longs===String?"0":0;u.droppedAttributesCount=0,u.droppedEventsCount=0,u.droppedLinksCount=0,u.status=null}if(o.traceId!=null&&o.hasOwnProperty("traceId")&&(u.traceId=r.bytes===String?E.base64.encode(o.traceId,0,o.traceId.length):r.bytes===Array?Array.prototype.slice.call(o.traceId):o.traceId),o.spanId!=null&&o.hasOwnProperty("spanId")&&(u.spanId=r.bytes===String?E.base64.encode(o.spanId,0,o.spanId.length):r.bytes===Array?Array.prototype.slice.call(o.spanId):o.spanId),o.traceState!=null&&o.hasOwnProperty("traceState")&&(u.traceState=o.traceState),o.parentSpanId!=null&&o.hasOwnProperty("parentSpanId")&&(u.parentSpanId=r.bytes===String?E.base64.encode(o.parentSpanId,0,o.parentSpanId.length):r.bytes===Array?Array.prototype.slice.call(o.parentSpanId):o.parentSpanId),o.name!=null&&o.hasOwnProperty("name")&&(u.name=o.name),o.kind!=null&&o.hasOwnProperty("kind")&&(u.kind=r.enums===String?d.opentelemetry.proto.trace.v1.Span.SpanKind[o.kind]===void 0?o.kind:d.opentelemetry.proto.trace.v1.Span.SpanKind[o.kind]:o.kind),o.startTimeUnixNano!=null&&o.hasOwnProperty("startTimeUnixNano")&&(typeof o.startTimeUnixNano=="number"?u.startTimeUnixNano=r.longs===String?String(o.startTimeUnixNano):o.startTimeUnixNano:u.startTimeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.startTimeUnixNano):r.longs===Number?new E.LongBits(o.startTimeUnixNano.low>>>0,o.startTimeUnixNano.high>>>0).toNumber():o.startTimeUnixNano),o.endTimeUnixNano!=null&&o.hasOwnProperty("endTimeUnixNano")&&(typeof o.endTimeUnixNano=="number"?u.endTimeUnixNano=r.longs===String?String(o.endTimeUnixNano):o.endTimeUnixNano:u.endTimeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.endTimeUnixNano):r.longs===Number?new E.LongBits(o.endTimeUnixNano.low>>>0,o.endTimeUnixNano.high>>>0).toNumber():o.endTimeUnixNano),o.attributes&&o.attributes.length){u.attributes=[];for(var c=0;c<o.attributes.length;++c)u.attributes[c]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[c],r)}if(o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=o.droppedAttributesCount),o.events&&o.events.length){u.events=[];for(var c=0;c<o.events.length;++c)u.events[c]=d.opentelemetry.proto.trace.v1.Span.Event.toObject(o.events[c],r)}if(o.droppedEventsCount!=null&&o.hasOwnProperty("droppedEventsCount")&&(u.droppedEventsCount=o.droppedEventsCount),o.links&&o.links.length){u.links=[];for(var c=0;c<o.links.length;++c)u.links[c]=d.opentelemetry.proto.trace.v1.Span.Link.toObject(o.links[c],r)}return o.droppedLinksCount!=null&&o.hasOwnProperty("droppedLinksCount")&&(u.droppedLinksCount=o.droppedLinksCount),o.status!=null&&o.hasOwnProperty("status")&&(u.status=d.opentelemetry.proto.trace.v1.Status.toObject(o.status,r)),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.Span"},a.SpanKind=function(){var s={},o=Object.create(s);return o[s[0]="SPAN_KIND_UNSPECIFIED"]=0,o[s[1]="SPAN_KIND_INTERNAL"]=1,o[s[2]="SPAN_KIND_SERVER"]=2,o[s[3]="SPAN_KIND_CLIENT"]=3,o[s[4]="SPAN_KIND_PRODUCER"]=4,o[s[5]="SPAN_KIND_CONSUMER"]=5,o}(),a.Event=function(){function s(o){if(this.attributes=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.timeUnixNano=null,s.prototype.name=null,s.prototype.attributes=E.emptyArray,s.prototype.droppedAttributesCount=null,s.create=function(r){return new s(r)},s.encode=function(r,u){if(u||(u=V.create()),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&u.uint32(9).fixed64(r.timeUnixNano),r.name!=null&&Object.hasOwnProperty.call(r,"name")&&u.uint32(18).string(r.name),r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],u.uint32(26).fork()).ldelim();return r.droppedAttributesCount!=null&&Object.hasOwnProperty.call(r,"droppedAttributesCount")&&u.uint32(32).uint32(r.droppedAttributesCount),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.trace.v1.Span.Event;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.timeUnixNano=r.fixed64();break}case 2:{c.name=r.string();break}case 3:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 4:{c.droppedAttributesCount=r.uint32();break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!E.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&E.isInteger(r.timeUnixNano.low)&&E.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.name!=null&&r.hasOwnProperty("name")&&!E.isString(r.name))return"name: string expected";if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var u=0;u<r.attributes.length;++u){var l=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[u]);if(l)return"attributes."+l}}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(r.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.trace.v1.Span.Event)return r;var u=new d.opentelemetry.proto.trace.v1.Span.Event;if(r.timeUnixNano!=null&&(E.Long?(u.timeUnixNano=E.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?u.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?u.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(u.timeUnixNano=new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.name!=null&&(u.name=String(r.name)),r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: array expected");u.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: object expected");u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}return r.droppedAttributesCount!=null&&(u.droppedAttributesCount=r.droppedAttributesCount>>>0),u},s.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.attributes=[]),u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.timeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.timeUnixNano=u.longs===String?"0":0;l.name="",l.droppedAttributesCount=0}if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=u.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.timeUnixNano):u.longs===Number?new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.name!=null&&r.hasOwnProperty("name")&&(l.name=r.name),r.attributes&&r.attributes.length){l.attributes=[];for(var p=0;p<r.attributes.length;++p)l.attributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[p],u)}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&(l.droppedAttributesCount=r.droppedAttributesCount),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.trace.v1.Span.Event"},s}(),a.Link=function(){function s(o){if(this.attributes=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.traceId=null,s.prototype.spanId=null,s.prototype.traceState=null,s.prototype.attributes=E.emptyArray,s.prototype.droppedAttributesCount=null,s.create=function(r){return new s(r)},s.encode=function(r,u){if(u||(u=V.create()),r.traceId!=null&&Object.hasOwnProperty.call(r,"traceId")&&u.uint32(10).bytes(r.traceId),r.spanId!=null&&Object.hasOwnProperty.call(r,"spanId")&&u.uint32(18).bytes(r.spanId),r.traceState!=null&&Object.hasOwnProperty.call(r,"traceState")&&u.uint32(26).string(r.traceState),r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],u.uint32(34).fork()).ldelim();return r.droppedAttributesCount!=null&&Object.hasOwnProperty.call(r,"droppedAttributesCount")&&u.uint32(40).uint32(r.droppedAttributesCount),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.trace.v1.Span.Link;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.traceId=r.bytes();break}case 2:{c.spanId=r.bytes();break}case 3:{c.traceState=r.string();break}case 4:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 5:{c.droppedAttributesCount=r.uint32();break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.traceId!=null&&r.hasOwnProperty("traceId")&&!(r.traceId&&typeof r.traceId.length=="number"||E.isString(r.traceId)))return"traceId: buffer expected";if(r.spanId!=null&&r.hasOwnProperty("spanId")&&!(r.spanId&&typeof r.spanId.length=="number"||E.isString(r.spanId)))return"spanId: buffer expected";if(r.traceState!=null&&r.hasOwnProperty("traceState")&&!E.isString(r.traceState))return"traceState: string expected";if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var u=0;u<r.attributes.length;++u){var l=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[u]);if(l)return"attributes."+l}}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(r.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.trace.v1.Span.Link)return r;var u=new d.opentelemetry.proto.trace.v1.Span.Link;if(r.traceId!=null&&(typeof r.traceId=="string"?E.base64.decode(r.traceId,u.traceId=E.newBuffer(E.base64.length(r.traceId)),0):r.traceId.length>=0&&(u.traceId=r.traceId)),r.spanId!=null&&(typeof r.spanId=="string"?E.base64.decode(r.spanId,u.spanId=E.newBuffer(E.base64.length(r.spanId)),0):r.spanId.length>=0&&(u.spanId=r.spanId)),r.traceState!=null&&(u.traceState=String(r.traceState)),r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: array expected");u.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: object expected");u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}return r.droppedAttributesCount!=null&&(u.droppedAttributesCount=r.droppedAttributesCount>>>0),u},s.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.attributes=[]),u.defaults&&(u.bytes===String?l.traceId="":(l.traceId=[],u.bytes!==Array&&(l.traceId=E.newBuffer(l.traceId))),u.bytes===String?l.spanId="":(l.spanId=[],u.bytes!==Array&&(l.spanId=E.newBuffer(l.spanId))),l.traceState="",l.droppedAttributesCount=0),r.traceId!=null&&r.hasOwnProperty("traceId")&&(l.traceId=u.bytes===String?E.base64.encode(r.traceId,0,r.traceId.length):u.bytes===Array?Array.prototype.slice.call(r.traceId):r.traceId),r.spanId!=null&&r.hasOwnProperty("spanId")&&(l.spanId=u.bytes===String?E.base64.encode(r.spanId,0,r.spanId.length):u.bytes===Array?Array.prototype.slice.call(r.spanId):r.spanId),r.traceState!=null&&r.hasOwnProperty("traceState")&&(l.traceState=r.traceState),r.attributes&&r.attributes.length){l.attributes=[];for(var c=0;c<r.attributes.length;++c)l.attributes[c]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[c],u)}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&(l.droppedAttributesCount=r.droppedAttributesCount),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.trace.v1.Span.Link"},s}(),a}(),i.Status=function(){function a(s){if(s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.message=null,a.prototype.code=null,a.create=function(o){return new a(o)},a.encode=function(o,r){return r||(r=V.create()),o.message!=null&&Object.hasOwnProperty.call(o,"message")&&r.uint32(18).string(o.message),o.code!=null&&Object.hasOwnProperty.call(o,"code")&&r.uint32(24).int32(o.code),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.trace.v1.Status;o.pos<u;){var c=o.uint32();switch(c>>>3){case 2:{l.message=o.string();break}case 3:{l.code=o.int32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.message!=null&&o.hasOwnProperty("message")&&!E.isString(o.message))return"message: string expected";if(o.code!=null&&o.hasOwnProperty("code"))switch(o.code){default:return"code: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.trace.v1.Status)return o;var r=new d.opentelemetry.proto.trace.v1.Status;switch(o.message!=null&&(r.message=String(o.message)),o.code){default:if(typeof o.code=="number"){r.code=o.code;break}break;case"STATUS_CODE_UNSET":case 0:r.code=0;break;case"STATUS_CODE_OK":case 1:r.code=1;break;case"STATUS_CODE_ERROR":case 2:r.code=2;break}return r},a.toObject=function(o,r){r||(r={});var u={};return r.defaults&&(u.message="",u.code=r.enums===String?"STATUS_CODE_UNSET":0),o.message!=null&&o.hasOwnProperty("message")&&(u.message=o.message),o.code!=null&&o.hasOwnProperty("code")&&(u.code=r.enums===String?d.opentelemetry.proto.trace.v1.Status.StatusCode[o.code]===void 0?o.code:d.opentelemetry.proto.trace.v1.Status.StatusCode[o.code]:o.code),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.Status"},a.StatusCode=function(){var s={},o=Object.create(s);return o[s[0]="STATUS_CODE_UNSET"]=0,o[s[1]="STATUS_CODE_OK"]=1,o[s[2]="STATUS_CODE_ERROR"]=2,o}(),a}(),i}(),n}(),e.collector=function(){var n={};return n.trace=function(){var i={};return i.v1=function(){var a={};return a.TraceService=function(){function s(o,r,u){I.rpc.Service.call(this,o,r,u)}return(s.prototype=Object.create(I.rpc.Service.prototype)).constructor=s,s.create=function(r,u,l){return new this(r,u,l)},Object.defineProperty(s.prototype.export=function o(r,u){return this.rpcCall(o,d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,r,u)},"name",{value:"Export"}),s}(),a.ExportTraceServiceRequest=function(){function s(o){if(this.resourceSpans=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.resourceSpans=E.emptyArray,s.create=function(r){return new s(r)},s.encode=function(r,u){if(u||(u=V.create()),r.resourceSpans!=null&&r.resourceSpans.length)for(var l=0;l<r.resourceSpans.length;++l)d.opentelemetry.proto.trace.v1.ResourceSpans.encode(r.resourceSpans[l],u.uint32(10).fork()).ldelim();return u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.resourceSpans&&c.resourceSpans.length||(c.resourceSpans=[]),c.resourceSpans.push(d.opentelemetry.proto.trace.v1.ResourceSpans.decode(r,r.uint32()));break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.resourceSpans!=null&&r.hasOwnProperty("resourceSpans")){if(!Array.isArray(r.resourceSpans))return"resourceSpans: array expected";for(var u=0;u<r.resourceSpans.length;++u){var l=d.opentelemetry.proto.trace.v1.ResourceSpans.verify(r.resourceSpans[u]);if(l)return"resourceSpans."+l}}return null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest)return r;var u=new d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;if(r.resourceSpans){if(!Array.isArray(r.resourceSpans))throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: array expected");u.resourceSpans=[];for(var l=0;l<r.resourceSpans.length;++l){if(typeof r.resourceSpans[l]!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: object expected");u.resourceSpans[l]=d.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(r.resourceSpans[l])}}return u},s.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.resourceSpans=[]),r.resourceSpans&&r.resourceSpans.length){l.resourceSpans=[];for(var c=0;c<r.resourceSpans.length;++c)l.resourceSpans[c]=d.opentelemetry.proto.trace.v1.ResourceSpans.toObject(r.resourceSpans[c],u)}return l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest"},s}(),a.ExportTraceServiceResponse=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.partialSuccess=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.partialSuccess!=null&&Object.hasOwnProperty.call(r,"partialSuccess")&&d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.encode(r.partialSuccess,u.uint32(10).fork()).ldelim(),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.partialSuccess=d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.decode(r,r.uint32());break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")){var u=d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.verify(r.partialSuccess);if(u)return"partialSuccess."+u}return null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse)return r;var u=new d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;if(r.partialSuccess!=null){if(typeof r.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse.partialSuccess: object expected");u.partialSuccess=d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.fromObject(r.partialSuccess)}return u},s.toObject=function(r,u){u||(u={});var l={};return u.defaults&&(l.partialSuccess=null),r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")&&(l.partialSuccess=d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.toObject(r.partialSuccess,u)),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse"},s}(),a.ExportTracePartialSuccess=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.rejectedSpans=null,s.prototype.errorMessage=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.rejectedSpans!=null&&Object.hasOwnProperty.call(r,"rejectedSpans")&&u.uint32(8).int64(r.rejectedSpans),r.errorMessage!=null&&Object.hasOwnProperty.call(r,"errorMessage")&&u.uint32(18).string(r.errorMessage),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.rejectedSpans=r.int64();break}case 2:{c.errorMessage=r.string();break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){return typeof r!="object"||r===null?"object expected":r.rejectedSpans!=null&&r.hasOwnProperty("rejectedSpans")&&!E.isInteger(r.rejectedSpans)&&!(r.rejectedSpans&&E.isInteger(r.rejectedSpans.low)&&E.isInteger(r.rejectedSpans.high))?"rejectedSpans: integer|Long expected":r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&!E.isString(r.errorMessage)?"errorMessage: string expected":null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess)return r;var u=new d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;return r.rejectedSpans!=null&&(E.Long?(u.rejectedSpans=E.Long.fromValue(r.rejectedSpans)).unsigned=!1:typeof r.rejectedSpans=="string"?u.rejectedSpans=parseInt(r.rejectedSpans,10):typeof r.rejectedSpans=="number"?u.rejectedSpans=r.rejectedSpans:typeof r.rejectedSpans=="object"&&(u.rejectedSpans=new E.LongBits(r.rejectedSpans.low>>>0,r.rejectedSpans.high>>>0).toNumber())),r.errorMessage!=null&&(u.errorMessage=String(r.errorMessage)),u},s.toObject=function(r,u){u||(u={});var l={};if(u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.rejectedSpans=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.rejectedSpans=u.longs===String?"0":0;l.errorMessage=""}return r.rejectedSpans!=null&&r.hasOwnProperty("rejectedSpans")&&(typeof r.rejectedSpans=="number"?l.rejectedSpans=u.longs===String?String(r.rejectedSpans):r.rejectedSpans:l.rejectedSpans=u.longs===String?E.Long.prototype.toString.call(r.rejectedSpans):u.longs===Number?new E.LongBits(r.rejectedSpans.low>>>0,r.rejectedSpans.high>>>0).toNumber():r.rejectedSpans),r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&(l.errorMessage=r.errorMessage),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess"},s}(),a}(),i}(),n.metrics=function(){var i={};return i.v1=function(){var a={};return a.MetricsService=function(){function s(o,r,u){I.rpc.Service.call(this,o,r,u)}return(s.prototype=Object.create(I.rpc.Service.prototype)).constructor=s,s.create=function(r,u,l){return new this(r,u,l)},Object.defineProperty(s.prototype.export=function o(r,u){return this.rpcCall(o,d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,r,u)},"name",{value:"Export"}),s}(),a.ExportMetricsServiceRequest=function(){function s(o){if(this.resourceMetrics=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.resourceMetrics=E.emptyArray,s.create=function(r){return new s(r)},s.encode=function(r,u){if(u||(u=V.create()),r.resourceMetrics!=null&&r.resourceMetrics.length)for(var l=0;l<r.resourceMetrics.length;++l)d.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(r.resourceMetrics[l],u.uint32(10).fork()).ldelim();return u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.resourceMetrics&&c.resourceMetrics.length||(c.resourceMetrics=[]),c.resourceMetrics.push(d.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(r,r.uint32()));break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.resourceMetrics!=null&&r.hasOwnProperty("resourceMetrics")){if(!Array.isArray(r.resourceMetrics))return"resourceMetrics: array expected";for(var u=0;u<r.resourceMetrics.length;++u){var l=d.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(r.resourceMetrics[u]);if(l)return"resourceMetrics."+l}}return null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest)return r;var u=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;if(r.resourceMetrics){if(!Array.isArray(r.resourceMetrics))throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: array expected");u.resourceMetrics=[];for(var l=0;l<r.resourceMetrics.length;++l){if(typeof r.resourceMetrics[l]!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: object expected");u.resourceMetrics[l]=d.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(r.resourceMetrics[l])}}return u},s.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.resourceMetrics=[]),r.resourceMetrics&&r.resourceMetrics.length){l.resourceMetrics=[];for(var c=0;c<r.resourceMetrics.length;++c)l.resourceMetrics[c]=d.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(r.resourceMetrics[c],u)}return l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest"},s}(),a.ExportMetricsServiceResponse=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.partialSuccess=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.partialSuccess!=null&&Object.hasOwnProperty.call(r,"partialSuccess")&&d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.encode(r.partialSuccess,u.uint32(10).fork()).ldelim(),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.partialSuccess=d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.decode(r,r.uint32());break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")){var u=d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.verify(r.partialSuccess);if(u)return"partialSuccess."+u}return null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse)return r;var u=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;if(r.partialSuccess!=null){if(typeof r.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse.partialSuccess: object expected");u.partialSuccess=d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.fromObject(r.partialSuccess)}return u},s.toObject=function(r,u){u||(u={});var l={};return u.defaults&&(l.partialSuccess=null),r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")&&(l.partialSuccess=d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.toObject(r.partialSuccess,u)),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse"},s}(),a.ExportMetricsPartialSuccess=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.rejectedDataPoints=null,s.prototype.errorMessage=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.rejectedDataPoints!=null&&Object.hasOwnProperty.call(r,"rejectedDataPoints")&&u.uint32(8).int64(r.rejectedDataPoints),r.errorMessage!=null&&Object.hasOwnProperty.call(r,"errorMessage")&&u.uint32(18).string(r.errorMessage),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.rejectedDataPoints=r.int64();break}case 2:{c.errorMessage=r.string();break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){return typeof r!="object"||r===null?"object expected":r.rejectedDataPoints!=null&&r.hasOwnProperty("rejectedDataPoints")&&!E.isInteger(r.rejectedDataPoints)&&!(r.rejectedDataPoints&&E.isInteger(r.rejectedDataPoints.low)&&E.isInteger(r.rejectedDataPoints.high))?"rejectedDataPoints: integer|Long expected":r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&!E.isString(r.errorMessage)?"errorMessage: string expected":null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess)return r;var u=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;return r.rejectedDataPoints!=null&&(E.Long?(u.rejectedDataPoints=E.Long.fromValue(r.rejectedDataPoints)).unsigned=!1:typeof r.rejectedDataPoints=="string"?u.rejectedDataPoints=parseInt(r.rejectedDataPoints,10):typeof r.rejectedDataPoints=="number"?u.rejectedDataPoints=r.rejectedDataPoints:typeof r.rejectedDataPoints=="object"&&(u.rejectedDataPoints=new E.LongBits(r.rejectedDataPoints.low>>>0,r.rejectedDataPoints.high>>>0).toNumber())),r.errorMessage!=null&&(u.errorMessage=String(r.errorMessage)),u},s.toObject=function(r,u){u||(u={});var l={};if(u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.rejectedDataPoints=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.rejectedDataPoints=u.longs===String?"0":0;l.errorMessage=""}return r.rejectedDataPoints!=null&&r.hasOwnProperty("rejectedDataPoints")&&(typeof r.rejectedDataPoints=="number"?l.rejectedDataPoints=u.longs===String?String(r.rejectedDataPoints):r.rejectedDataPoints:l.rejectedDataPoints=u.longs===String?E.Long.prototype.toString.call(r.rejectedDataPoints):u.longs===Number?new E.LongBits(r.rejectedDataPoints.low>>>0,r.rejectedDataPoints.high>>>0).toNumber():r.rejectedDataPoints),r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&(l.errorMessage=r.errorMessage),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess"},s}(),a}(),i}(),n.logs=function(){var i={};return i.v1=function(){var a={};return a.LogsService=function(){function s(o,r,u){I.rpc.Service.call(this,o,r,u)}return(s.prototype=Object.create(I.rpc.Service.prototype)).constructor=s,s.create=function(r,u,l){return new this(r,u,l)},Object.defineProperty(s.prototype.export=function o(r,u){return this.rpcCall(o,d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,r,u)},"name",{value:"Export"}),s}(),a.ExportLogsServiceRequest=function(){function s(o){if(this.resourceLogs=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.resourceLogs=E.emptyArray,s.create=function(r){return new s(r)},s.encode=function(r,u){if(u||(u=V.create()),r.resourceLogs!=null&&r.resourceLogs.length)for(var l=0;l<r.resourceLogs.length;++l)d.opentelemetry.proto.logs.v1.ResourceLogs.encode(r.resourceLogs[l],u.uint32(10).fork()).ldelim();return u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.resourceLogs&&c.resourceLogs.length||(c.resourceLogs=[]),c.resourceLogs.push(d.opentelemetry.proto.logs.v1.ResourceLogs.decode(r,r.uint32()));break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.resourceLogs!=null&&r.hasOwnProperty("resourceLogs")){if(!Array.isArray(r.resourceLogs))return"resourceLogs: array expected";for(var u=0;u<r.resourceLogs.length;++u){var l=d.opentelemetry.proto.logs.v1.ResourceLogs.verify(r.resourceLogs[u]);if(l)return"resourceLogs."+l}}return null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest)return r;var u=new d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;if(r.resourceLogs){if(!Array.isArray(r.resourceLogs))throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: array expected");u.resourceLogs=[];for(var l=0;l<r.resourceLogs.length;++l){if(typeof r.resourceLogs[l]!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: object expected");u.resourceLogs[l]=d.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(r.resourceLogs[l])}}return u},s.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.resourceLogs=[]),r.resourceLogs&&r.resourceLogs.length){l.resourceLogs=[];for(var c=0;c<r.resourceLogs.length;++c)l.resourceLogs[c]=d.opentelemetry.proto.logs.v1.ResourceLogs.toObject(r.resourceLogs[c],u)}return l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest"},s}(),a.ExportLogsServiceResponse=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.partialSuccess=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.partialSuccess!=null&&Object.hasOwnProperty.call(r,"partialSuccess")&&d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.encode(r.partialSuccess,u.uint32(10).fork()).ldelim(),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.partialSuccess=d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.decode(r,r.uint32());break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")){var u=d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.verify(r.partialSuccess);if(u)return"partialSuccess."+u}return null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse)return r;var u=new d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;if(r.partialSuccess!=null){if(typeof r.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse.partialSuccess: object expected");u.partialSuccess=d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.fromObject(r.partialSuccess)}return u},s.toObject=function(r,u){u||(u={});var l={};return u.defaults&&(l.partialSuccess=null),r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")&&(l.partialSuccess=d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.toObject(r.partialSuccess,u)),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse"},s}(),a.ExportLogsPartialSuccess=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.rejectedLogRecords=null,s.prototype.errorMessage=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.rejectedLogRecords!=null&&Object.hasOwnProperty.call(r,"rejectedLogRecords")&&u.uint32(8).int64(r.rejectedLogRecords),r.errorMessage!=null&&Object.hasOwnProperty.call(r,"errorMessage")&&u.uint32(18).string(r.errorMessage),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.rejectedLogRecords=r.int64();break}case 2:{c.errorMessage=r.string();break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){return typeof r!="object"||r===null?"object expected":r.rejectedLogRecords!=null&&r.hasOwnProperty("rejectedLogRecords")&&!E.isInteger(r.rejectedLogRecords)&&!(r.rejectedLogRecords&&E.isInteger(r.rejectedLogRecords.low)&&E.isInteger(r.rejectedLogRecords.high))?"rejectedLogRecords: integer|Long expected":r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&!E.isString(r.errorMessage)?"errorMessage: string expected":null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess)return r;var u=new d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;return r.rejectedLogRecords!=null&&(E.Long?(u.rejectedLogRecords=E.Long.fromValue(r.rejectedLogRecords)).unsigned=!1:typeof r.rejectedLogRecords=="string"?u.rejectedLogRecords=parseInt(r.rejectedLogRecords,10):typeof r.rejectedLogRecords=="number"?u.rejectedLogRecords=r.rejectedLogRecords:typeof r.rejectedLogRecords=="object"&&(u.rejectedLogRecords=new E.LongBits(r.rejectedLogRecords.low>>>0,r.rejectedLogRecords.high>>>0).toNumber())),r.errorMessage!=null&&(u.errorMessage=String(r.errorMessage)),u},s.toObject=function(r,u){u||(u={});var l={};if(u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.rejectedLogRecords=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.rejectedLogRecords=u.longs===String?"0":0;l.errorMessage=""}return r.rejectedLogRecords!=null&&r.hasOwnProperty("rejectedLogRecords")&&(typeof r.rejectedLogRecords=="number"?l.rejectedLogRecords=u.longs===String?String(r.rejectedLogRecords):r.rejectedLogRecords:l.rejectedLogRecords=u.longs===String?E.Long.prototype.toString.call(r.rejectedLogRecords):u.longs===Number?new E.LongBits(r.rejectedLogRecords.low>>>0,r.rejectedLogRecords.high>>>0).toNumber():r.rejectedLogRecords),r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&(l.errorMessage=r.errorMessage),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess"},s}(),a}(),i}(),n}(),e.metrics=function(){var n={};return n.v1=function(){var i={};return i.MetricsData=function(){function a(s){if(this.resourceMetrics=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.resourceMetrics=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resourceMetrics!=null&&o.resourceMetrics.length)for(var u=0;u<o.resourceMetrics.length;++u)d.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(o.resourceMetrics[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.MetricsData;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.resourceMetrics&&l.resourceMetrics.length||(l.resourceMetrics=[]),l.resourceMetrics.push(d.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resourceMetrics!=null&&o.hasOwnProperty("resourceMetrics")){if(!Array.isArray(o.resourceMetrics))return"resourceMetrics: array expected";for(var r=0;r<o.resourceMetrics.length;++r){var u=d.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(o.resourceMetrics[r]);if(u)return"resourceMetrics."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.MetricsData)return o;var r=new d.opentelemetry.proto.metrics.v1.MetricsData;if(o.resourceMetrics){if(!Array.isArray(o.resourceMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: array expected");r.resourceMetrics=[];for(var u=0;u<o.resourceMetrics.length;++u){if(typeof o.resourceMetrics[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: object expected");r.resourceMetrics[u]=d.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(o.resourceMetrics[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.resourceMetrics=[]),o.resourceMetrics&&o.resourceMetrics.length){u.resourceMetrics=[];for(var l=0;l<o.resourceMetrics.length;++l)u.resourceMetrics[l]=d.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(o.resourceMetrics[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.MetricsData"},a}(),i.ResourceMetrics=function(){function a(s){if(this.scopeMetrics=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.resource=null,a.prototype.scopeMetrics=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resource!=null&&Object.hasOwnProperty.call(o,"resource")&&d.opentelemetry.proto.resource.v1.Resource.encode(o.resource,r.uint32(10).fork()).ldelim(),o.scopeMetrics!=null&&o.scopeMetrics.length)for(var u=0;u<o.scopeMetrics.length;++u)d.opentelemetry.proto.metrics.v1.ScopeMetrics.encode(o.scopeMetrics[u],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.ResourceMetrics;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.resource=d.opentelemetry.proto.resource.v1.Resource.decode(o,o.uint32());break}case 2:{l.scopeMetrics&&l.scopeMetrics.length||(l.scopeMetrics=[]),l.scopeMetrics.push(d.opentelemetry.proto.metrics.v1.ScopeMetrics.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resource!=null&&o.hasOwnProperty("resource")){var r=d.opentelemetry.proto.resource.v1.Resource.verify(o.resource);if(r)return"resource."+r}if(o.scopeMetrics!=null&&o.hasOwnProperty("scopeMetrics")){if(!Array.isArray(o.scopeMetrics))return"scopeMetrics: array expected";for(var u=0;u<o.scopeMetrics.length;++u){var r=d.opentelemetry.proto.metrics.v1.ScopeMetrics.verify(o.scopeMetrics[u]);if(r)return"scopeMetrics."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.ResourceMetrics)return o;var r=new d.opentelemetry.proto.metrics.v1.ResourceMetrics;if(o.resource!=null){if(typeof o.resource!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.resource: object expected");r.resource=d.opentelemetry.proto.resource.v1.Resource.fromObject(o.resource)}if(o.scopeMetrics){if(!Array.isArray(o.scopeMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: array expected");r.scopeMetrics=[];for(var u=0;u<o.scopeMetrics.length;++u){if(typeof o.scopeMetrics[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: object expected");r.scopeMetrics[u]=d.opentelemetry.proto.metrics.v1.ScopeMetrics.fromObject(o.scopeMetrics[u])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.scopeMetrics=[]),r.defaults&&(u.resource=null,u.schemaUrl=""),o.resource!=null&&o.hasOwnProperty("resource")&&(u.resource=d.opentelemetry.proto.resource.v1.Resource.toObject(o.resource,r)),o.scopeMetrics&&o.scopeMetrics.length){u.scopeMetrics=[];for(var l=0;l<o.scopeMetrics.length;++l)u.scopeMetrics[l]=d.opentelemetry.proto.metrics.v1.ScopeMetrics.toObject(o.scopeMetrics[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(u.schemaUrl=o.schemaUrl),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.ResourceMetrics"},a}(),i.ScopeMetrics=function(){function a(s){if(this.metrics=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.scope=null,a.prototype.metrics=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.scope!=null&&Object.hasOwnProperty.call(o,"scope")&&d.opentelemetry.proto.common.v1.InstrumentationScope.encode(o.scope,r.uint32(10).fork()).ldelim(),o.metrics!=null&&o.metrics.length)for(var u=0;u<o.metrics.length;++u)d.opentelemetry.proto.metrics.v1.Metric.encode(o.metrics[u],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.ScopeMetrics;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.decode(o,o.uint32());break}case 2:{l.metrics&&l.metrics.length||(l.metrics=[]),l.metrics.push(d.opentelemetry.proto.metrics.v1.Metric.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.scope!=null&&o.hasOwnProperty("scope")){var r=d.opentelemetry.proto.common.v1.InstrumentationScope.verify(o.scope);if(r)return"scope."+r}if(o.metrics!=null&&o.hasOwnProperty("metrics")){if(!Array.isArray(o.metrics))return"metrics: array expected";for(var u=0;u<o.metrics.length;++u){var r=d.opentelemetry.proto.metrics.v1.Metric.verify(o.metrics[u]);if(r)return"metrics."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.ScopeMetrics)return o;var r=new d.opentelemetry.proto.metrics.v1.ScopeMetrics;if(o.scope!=null){if(typeof o.scope!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.scope: object expected");r.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(o.scope)}if(o.metrics){if(!Array.isArray(o.metrics))throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: array expected");r.metrics=[];for(var u=0;u<o.metrics.length;++u){if(typeof o.metrics[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: object expected");r.metrics[u]=d.opentelemetry.proto.metrics.v1.Metric.fromObject(o.metrics[u])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.metrics=[]),r.defaults&&(u.scope=null,u.schemaUrl=""),o.scope!=null&&o.hasOwnProperty("scope")&&(u.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.toObject(o.scope,r)),o.metrics&&o.metrics.length){u.metrics=[];for(var l=0;l<o.metrics.length;++l)u.metrics[l]=d.opentelemetry.proto.metrics.v1.Metric.toObject(o.metrics[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(u.schemaUrl=o.schemaUrl),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.ScopeMetrics"},a}(),i.Metric=function(){function a(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}a.prototype.name=null,a.prototype.description=null,a.prototype.unit=null,a.prototype.gauge=null,a.prototype.sum=null,a.prototype.histogram=null,a.prototype.exponentialHistogram=null,a.prototype.summary=null;var s;return Object.defineProperty(a.prototype,"data",{get:E.oneOfGetter(s=["gauge","sum","histogram","exponentialHistogram","summary"]),set:E.oneOfSetter(s)}),a.create=function(r){return new a(r)},a.encode=function(r,u){return u||(u=V.create()),r.name!=null&&Object.hasOwnProperty.call(r,"name")&&u.uint32(10).string(r.name),r.description!=null&&Object.hasOwnProperty.call(r,"description")&&u.uint32(18).string(r.description),r.unit!=null&&Object.hasOwnProperty.call(r,"unit")&&u.uint32(26).string(r.unit),r.gauge!=null&&Object.hasOwnProperty.call(r,"gauge")&&d.opentelemetry.proto.metrics.v1.Gauge.encode(r.gauge,u.uint32(42).fork()).ldelim(),r.sum!=null&&Object.hasOwnProperty.call(r,"sum")&&d.opentelemetry.proto.metrics.v1.Sum.encode(r.sum,u.uint32(58).fork()).ldelim(),r.histogram!=null&&Object.hasOwnProperty.call(r,"histogram")&&d.opentelemetry.proto.metrics.v1.Histogram.encode(r.histogram,u.uint32(74).fork()).ldelim(),r.exponentialHistogram!=null&&Object.hasOwnProperty.call(r,"exponentialHistogram")&&d.opentelemetry.proto.metrics.v1.ExponentialHistogram.encode(r.exponentialHistogram,u.uint32(82).fork()).ldelim(),r.summary!=null&&Object.hasOwnProperty.call(r,"summary")&&d.opentelemetry.proto.metrics.v1.Summary.encode(r.summary,u.uint32(90).fork()).ldelim(),u},a.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},a.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.metrics.v1.Metric;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.name=r.string();break}case 2:{c.description=r.string();break}case 3:{c.unit=r.string();break}case 5:{c.gauge=d.opentelemetry.proto.metrics.v1.Gauge.decode(r,r.uint32());break}case 7:{c.sum=d.opentelemetry.proto.metrics.v1.Sum.decode(r,r.uint32());break}case 9:{c.histogram=d.opentelemetry.proto.metrics.v1.Histogram.decode(r,r.uint32());break}case 10:{c.exponentialHistogram=d.opentelemetry.proto.metrics.v1.ExponentialHistogram.decode(r,r.uint32());break}case 11:{c.summary=d.opentelemetry.proto.metrics.v1.Summary.decode(r,r.uint32());break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var u={};if(r.name!=null&&r.hasOwnProperty("name")&&!E.isString(r.name))return"name: string expected";if(r.description!=null&&r.hasOwnProperty("description")&&!E.isString(r.description))return"description: string expected";if(r.unit!=null&&r.hasOwnProperty("unit")&&!E.isString(r.unit))return"unit: string expected";if(r.gauge!=null&&r.hasOwnProperty("gauge")){u.data=1;{var l=d.opentelemetry.proto.metrics.v1.Gauge.verify(r.gauge);if(l)return"gauge."+l}}if(r.sum!=null&&r.hasOwnProperty("sum")){if(u.data===1)return"data: multiple values";u.data=1;{var l=d.opentelemetry.proto.metrics.v1.Sum.verify(r.sum);if(l)return"sum."+l}}if(r.histogram!=null&&r.hasOwnProperty("histogram")){if(u.data===1)return"data: multiple values";u.data=1;{var l=d.opentelemetry.proto.metrics.v1.Histogram.verify(r.histogram);if(l)return"histogram."+l}}if(r.exponentialHistogram!=null&&r.hasOwnProperty("exponentialHistogram")){if(u.data===1)return"data: multiple values";u.data=1;{var l=d.opentelemetry.proto.metrics.v1.ExponentialHistogram.verify(r.exponentialHistogram);if(l)return"exponentialHistogram."+l}}if(r.summary!=null&&r.hasOwnProperty("summary")){if(u.data===1)return"data: multiple values";u.data=1;{var l=d.opentelemetry.proto.metrics.v1.Summary.verify(r.summary);if(l)return"summary."+l}}return null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.Metric)return r;var u=new d.opentelemetry.proto.metrics.v1.Metric;if(r.name!=null&&(u.name=String(r.name)),r.description!=null&&(u.description=String(r.description)),r.unit!=null&&(u.unit=String(r.unit)),r.gauge!=null){if(typeof r.gauge!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.gauge: object expected");u.gauge=d.opentelemetry.proto.metrics.v1.Gauge.fromObject(r.gauge)}if(r.sum!=null){if(typeof r.sum!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.sum: object expected");u.sum=d.opentelemetry.proto.metrics.v1.Sum.fromObject(r.sum)}if(r.histogram!=null){if(typeof r.histogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.histogram: object expected");u.histogram=d.opentelemetry.proto.metrics.v1.Histogram.fromObject(r.histogram)}if(r.exponentialHistogram!=null){if(typeof r.exponentialHistogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.exponentialHistogram: object expected");u.exponentialHistogram=d.opentelemetry.proto.metrics.v1.ExponentialHistogram.fromObject(r.exponentialHistogram)}if(r.summary!=null){if(typeof r.summary!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.summary: object expected");u.summary=d.opentelemetry.proto.metrics.v1.Summary.fromObject(r.summary)}return u},a.toObject=function(r,u){u||(u={});var l={};return u.defaults&&(l.name="",l.description="",l.unit=""),r.name!=null&&r.hasOwnProperty("name")&&(l.name=r.name),r.description!=null&&r.hasOwnProperty("description")&&(l.description=r.description),r.unit!=null&&r.hasOwnProperty("unit")&&(l.unit=r.unit),r.gauge!=null&&r.hasOwnProperty("gauge")&&(l.gauge=d.opentelemetry.proto.metrics.v1.Gauge.toObject(r.gauge,u),u.oneofs&&(l.data="gauge")),r.sum!=null&&r.hasOwnProperty("sum")&&(l.sum=d.opentelemetry.proto.metrics.v1.Sum.toObject(r.sum,u),u.oneofs&&(l.data="sum")),r.histogram!=null&&r.hasOwnProperty("histogram")&&(l.histogram=d.opentelemetry.proto.metrics.v1.Histogram.toObject(r.histogram,u),u.oneofs&&(l.data="histogram")),r.exponentialHistogram!=null&&r.hasOwnProperty("exponentialHistogram")&&(l.exponentialHistogram=d.opentelemetry.proto.metrics.v1.ExponentialHistogram.toObject(r.exponentialHistogram,u),u.oneofs&&(l.data="exponentialHistogram")),r.summary!=null&&r.hasOwnProperty("summary")&&(l.summary=d.opentelemetry.proto.metrics.v1.Summary.toObject(r.summary,u),u.oneofs&&(l.data="summary")),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.Metric"},a}(),i.Gauge=function(){function a(s){if(this.dataPoints=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.dataPoints=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.dataPoints!=null&&o.dataPoints.length)for(var u=0;u<o.dataPoints.length;++u)d.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(o.dataPoints[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.Gauge;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var u=d.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(o.dataPoints[r]);if(u)return"dataPoints."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.Gauge)return o;var r=new d.opentelemetry.proto.metrics.v1.Gauge;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: array expected");r.dataPoints=[];for(var u=0;u<o.dataPoints.length;++u){if(typeof o.dataPoints[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: object expected");r.dataPoints[u]=d.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(o.dataPoints[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.dataPoints=[]),o.dataPoints&&o.dataPoints.length){u.dataPoints=[];for(var l=0;l<o.dataPoints.length;++l)u.dataPoints[l]=d.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(o.dataPoints[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.Gauge"},a}(),i.Sum=function(){function a(s){if(this.dataPoints=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.dataPoints=E.emptyArray,a.prototype.aggregationTemporality=null,a.prototype.isMonotonic=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.dataPoints!=null&&o.dataPoints.length)for(var u=0;u<o.dataPoints.length;++u)d.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(o.dataPoints[u],r.uint32(10).fork()).ldelim();return o.aggregationTemporality!=null&&Object.hasOwnProperty.call(o,"aggregationTemporality")&&r.uint32(16).int32(o.aggregationTemporality),o.isMonotonic!=null&&Object.hasOwnProperty.call(o,"isMonotonic")&&r.uint32(24).bool(o.isMonotonic),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.Sum;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(o,o.uint32()));break}case 2:{l.aggregationTemporality=o.int32();break}case 3:{l.isMonotonic=o.bool();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var u=d.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(o.dataPoints[r]);if(u)return"dataPoints."+u}}if(o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality"))switch(o.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return o.isMonotonic!=null&&o.hasOwnProperty("isMonotonic")&&typeof o.isMonotonic!="boolean"?"isMonotonic: boolean expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.Sum)return o;var r=new d.opentelemetry.proto.metrics.v1.Sum;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: array expected");r.dataPoints=[];for(var u=0;u<o.dataPoints.length;++u){if(typeof o.dataPoints[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: object expected");r.dataPoints[u]=d.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(o.dataPoints[u])}}switch(o.aggregationTemporality){default:if(typeof o.aggregationTemporality=="number"){r.aggregationTemporality=o.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:r.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:r.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:r.aggregationTemporality=2;break}return o.isMonotonic!=null&&(r.isMonotonic=!!o.isMonotonic),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.dataPoints=[]),r.defaults&&(u.aggregationTemporality=r.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0,u.isMonotonic=!1),o.dataPoints&&o.dataPoints.length){u.dataPoints=[];for(var l=0;l<o.dataPoints.length;++l)u.dataPoints[l]=d.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(o.dataPoints[l],r)}return o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality")&&(u.aggregationTemporality=r.enums===String?d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]===void 0?o.aggregationTemporality:d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]:o.aggregationTemporality),o.isMonotonic!=null&&o.hasOwnProperty("isMonotonic")&&(u.isMonotonic=o.isMonotonic),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.Sum"},a}(),i.Histogram=function(){function a(s){if(this.dataPoints=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.dataPoints=E.emptyArray,a.prototype.aggregationTemporality=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.dataPoints!=null&&o.dataPoints.length)for(var u=0;u<o.dataPoints.length;++u)d.opentelemetry.proto.metrics.v1.HistogramDataPoint.encode(o.dataPoints[u],r.uint32(10).fork()).ldelim();return o.aggregationTemporality!=null&&Object.hasOwnProperty.call(o,"aggregationTemporality")&&r.uint32(16).int32(o.aggregationTemporality),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.Histogram;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.HistogramDataPoint.decode(o,o.uint32()));break}case 2:{l.aggregationTemporality=o.int32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var u=d.opentelemetry.proto.metrics.v1.HistogramDataPoint.verify(o.dataPoints[r]);if(u)return"dataPoints."+u}}if(o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality"))switch(o.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.Histogram)return o;var r=new d.opentelemetry.proto.metrics.v1.Histogram;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: array expected");r.dataPoints=[];for(var u=0;u<o.dataPoints.length;++u){if(typeof o.dataPoints[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: object expected");r.dataPoints[u]=d.opentelemetry.proto.metrics.v1.HistogramDataPoint.fromObject(o.dataPoints[u])}}switch(o.aggregationTemporality){default:if(typeof o.aggregationTemporality=="number"){r.aggregationTemporality=o.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:r.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:r.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:r.aggregationTemporality=2;break}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.dataPoints=[]),r.defaults&&(u.aggregationTemporality=r.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),o.dataPoints&&o.dataPoints.length){u.dataPoints=[];for(var l=0;l<o.dataPoints.length;++l)u.dataPoints[l]=d.opentelemetry.proto.metrics.v1.HistogramDataPoint.toObject(o.dataPoints[l],r)}return o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality")&&(u.aggregationTemporality=r.enums===String?d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]===void 0?o.aggregationTemporality:d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]:o.aggregationTemporality),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.Histogram"},a}(),i.ExponentialHistogram=function(){function a(s){if(this.dataPoints=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.dataPoints=E.emptyArray,a.prototype.aggregationTemporality=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.dataPoints!=null&&o.dataPoints.length)for(var u=0;u<o.dataPoints.length;++u)d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.encode(o.dataPoints[u],r.uint32(10).fork()).ldelim();return o.aggregationTemporality!=null&&Object.hasOwnProperty.call(o,"aggregationTemporality")&&r.uint32(16).int32(o.aggregationTemporality),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.ExponentialHistogram;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.decode(o,o.uint32()));break}case 2:{l.aggregationTemporality=o.int32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var u=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.verify(o.dataPoints[r]);if(u)return"dataPoints."+u}}if(o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality"))switch(o.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.ExponentialHistogram)return o;var r=new d.opentelemetry.proto.metrics.v1.ExponentialHistogram;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: array expected");r.dataPoints=[];for(var u=0;u<o.dataPoints.length;++u){if(typeof o.dataPoints[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: object expected");r.dataPoints[u]=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.fromObject(o.dataPoints[u])}}switch(o.aggregationTemporality){default:if(typeof o.aggregationTemporality=="number"){r.aggregationTemporality=o.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:r.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:r.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:r.aggregationTemporality=2;break}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.dataPoints=[]),r.defaults&&(u.aggregationTemporality=r.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),o.dataPoints&&o.dataPoints.length){u.dataPoints=[];for(var l=0;l<o.dataPoints.length;++l)u.dataPoints[l]=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.toObject(o.dataPoints[l],r)}return o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality")&&(u.aggregationTemporality=r.enums===String?d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]===void 0?o.aggregationTemporality:d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]:o.aggregationTemporality),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.ExponentialHistogram"},a}(),i.Summary=function(){function a(s){if(this.dataPoints=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.dataPoints=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.dataPoints!=null&&o.dataPoints.length)for(var u=0;u<o.dataPoints.length;++u)d.opentelemetry.proto.metrics.v1.SummaryDataPoint.encode(o.dataPoints[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.Summary;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.SummaryDataPoint.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var u=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.verify(o.dataPoints[r]);if(u)return"dataPoints."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.Summary)return o;var r=new d.opentelemetry.proto.metrics.v1.Summary;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: array expected");r.dataPoints=[];for(var u=0;u<o.dataPoints.length;++u){if(typeof o.dataPoints[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: object expected");r.dataPoints[u]=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.fromObject(o.dataPoints[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.dataPoints=[]),o.dataPoints&&o.dataPoints.length){u.dataPoints=[];for(var l=0;l<o.dataPoints.length;++l)u.dataPoints[l]=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.toObject(o.dataPoints[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.Summary"},a}(),i.AggregationTemporality=function(){var a={},s=Object.create(a);return s[a[0]="AGGREGATION_TEMPORALITY_UNSPECIFIED"]=0,s[a[1]="AGGREGATION_TEMPORALITY_DELTA"]=1,s[a[2]="AGGREGATION_TEMPORALITY_CUMULATIVE"]=2,s}(),i.DataPointFlags=function(){var a={},s=Object.create(a);return s[a[0]="DATA_POINT_FLAGS_DO_NOT_USE"]=0,s[a[1]="DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK"]=1,s}(),i.NumberDataPoint=function(){function a(o){if(this.attributes=[],this.exemplars=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}a.prototype.attributes=E.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.asDouble=null,a.prototype.asInt=null,a.prototype.exemplars=E.emptyArray,a.prototype.flags=null;var s;return Object.defineProperty(a.prototype,"value",{get:E.oneOfGetter(s=["asDouble","asInt"]),set:E.oneOfSetter(s)}),a.create=function(r){return new a(r)},a.encode=function(r,u){if(u||(u=V.create()),r.startTimeUnixNano!=null&&Object.hasOwnProperty.call(r,"startTimeUnixNano")&&u.uint32(17).fixed64(r.startTimeUnixNano),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&u.uint32(25).fixed64(r.timeUnixNano),r.asDouble!=null&&Object.hasOwnProperty.call(r,"asDouble")&&u.uint32(33).double(r.asDouble),r.exemplars!=null&&r.exemplars.length)for(var l=0;l<r.exemplars.length;++l)d.opentelemetry.proto.metrics.v1.Exemplar.encode(r.exemplars[l],u.uint32(42).fork()).ldelim();if(r.asInt!=null&&Object.hasOwnProperty.call(r,"asInt")&&u.uint32(49).sfixed64(r.asInt),r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],u.uint32(58).fork()).ldelim();return r.flags!=null&&Object.hasOwnProperty.call(r,"flags")&&u.uint32(64).uint32(r.flags),u},a.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},a.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.metrics.v1.NumberDataPoint;r.pos<l;){var p=r.uint32();switch(p>>>3){case 7:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 2:{c.startTimeUnixNano=r.fixed64();break}case 3:{c.timeUnixNano=r.fixed64();break}case 4:{c.asDouble=r.double();break}case 6:{c.asInt=r.sfixed64();break}case 5:{c.exemplars&&c.exemplars.length||(c.exemplars=[]),c.exemplars.push(d.opentelemetry.proto.metrics.v1.Exemplar.decode(r,r.uint32()));break}case 8:{c.flags=r.uint32();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var u={};if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var l=0;l<r.attributes.length;++l){var c=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[l]);if(c)return"attributes."+c}}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&!E.isInteger(r.startTimeUnixNano)&&!(r.startTimeUnixNano&&E.isInteger(r.startTimeUnixNano.low)&&E.isInteger(r.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!E.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&E.isInteger(r.timeUnixNano.low)&&E.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.asDouble!=null&&r.hasOwnProperty("asDouble")&&(u.value=1,typeof r.asDouble!="number"))return"asDouble: number expected";if(r.asInt!=null&&r.hasOwnProperty("asInt")){if(u.value===1)return"value: multiple values";if(u.value=1,!E.isInteger(r.asInt)&&!(r.asInt&&E.isInteger(r.asInt.low)&&E.isInteger(r.asInt.high)))return"asInt: integer|Long expected"}if(r.exemplars!=null&&r.hasOwnProperty("exemplars")){if(!Array.isArray(r.exemplars))return"exemplars: array expected";for(var l=0;l<r.exemplars.length;++l){var c=d.opentelemetry.proto.metrics.v1.Exemplar.verify(r.exemplars[l]);if(c)return"exemplars."+c}}return r.flags!=null&&r.hasOwnProperty("flags")&&!E.isInteger(r.flags)?"flags: integer expected":null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.NumberDataPoint)return r;var u=new d.opentelemetry.proto.metrics.v1.NumberDataPoint;if(r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: array expected");u.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: object expected");u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}if(r.startTimeUnixNano!=null&&(E.Long?(u.startTimeUnixNano=E.Long.fromValue(r.startTimeUnixNano)).unsigned=!1:typeof r.startTimeUnixNano=="string"?u.startTimeUnixNano=parseInt(r.startTimeUnixNano,10):typeof r.startTimeUnixNano=="number"?u.startTimeUnixNano=r.startTimeUnixNano:typeof r.startTimeUnixNano=="object"&&(u.startTimeUnixNano=new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber())),r.timeUnixNano!=null&&(E.Long?(u.timeUnixNano=E.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?u.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?u.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(u.timeUnixNano=new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.asDouble!=null&&(u.asDouble=Number(r.asDouble)),r.asInt!=null&&(E.Long?(u.asInt=E.Long.fromValue(r.asInt)).unsigned=!1:typeof r.asInt=="string"?u.asInt=parseInt(r.asInt,10):typeof r.asInt=="number"?u.asInt=r.asInt:typeof r.asInt=="object"&&(u.asInt=new E.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber())),r.exemplars){if(!Array.isArray(r.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: array expected");u.exemplars=[];for(var l=0;l<r.exemplars.length;++l){if(typeof r.exemplars[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: object expected");u.exemplars[l]=d.opentelemetry.proto.metrics.v1.Exemplar.fromObject(r.exemplars[l])}}return r.flags!=null&&(u.flags=r.flags>>>0),u},a.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.exemplars=[],l.attributes=[]),u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.startTimeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.startTimeUnixNano=u.longs===String?"0":0;if(E.Long){var c=new E.Long(0,0,!1);l.timeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.timeUnixNano=u.longs===String?"0":0;l.flags=0}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&(typeof r.startTimeUnixNano=="number"?l.startTimeUnixNano=u.longs===String?String(r.startTimeUnixNano):r.startTimeUnixNano:l.startTimeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.startTimeUnixNano):u.longs===Number?new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber():r.startTimeUnixNano),r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=u.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.timeUnixNano):u.longs===Number?new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.asDouble!=null&&r.hasOwnProperty("asDouble")&&(l.asDouble=u.json&&!isFinite(r.asDouble)?String(r.asDouble):r.asDouble,u.oneofs&&(l.value="asDouble")),r.exemplars&&r.exemplars.length){l.exemplars=[];for(var p=0;p<r.exemplars.length;++p)l.exemplars[p]=d.opentelemetry.proto.metrics.v1.Exemplar.toObject(r.exemplars[p],u)}if(r.asInt!=null&&r.hasOwnProperty("asInt")&&(typeof r.asInt=="number"?l.asInt=u.longs===String?String(r.asInt):r.asInt:l.asInt=u.longs===String?E.Long.prototype.toString.call(r.asInt):u.longs===Number?new E.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber():r.asInt,u.oneofs&&(l.value="asInt")),r.attributes&&r.attributes.length){l.attributes=[];for(var p=0;p<r.attributes.length;++p)l.attributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[p],u)}return r.flags!=null&&r.hasOwnProperty("flags")&&(l.flags=r.flags),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.NumberDataPoint"},a}(),i.HistogramDataPoint=function(){function a(o){if(this.attributes=[],this.bucketCounts=[],this.explicitBounds=[],this.exemplars=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}a.prototype.attributes=E.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.count=null,a.prototype.sum=null,a.prototype.bucketCounts=E.emptyArray,a.prototype.explicitBounds=E.emptyArray,a.prototype.exemplars=E.emptyArray,a.prototype.flags=null,a.prototype.min=null,a.prototype.max=null;var s;return Object.defineProperty(a.prototype,"_sum",{get:E.oneOfGetter(s=["sum"]),set:E.oneOfSetter(s)}),Object.defineProperty(a.prototype,"_min",{get:E.oneOfGetter(s=["min"]),set:E.oneOfSetter(s)}),Object.defineProperty(a.prototype,"_max",{get:E.oneOfGetter(s=["max"]),set:E.oneOfSetter(s)}),a.create=function(r){return new a(r)},a.encode=function(r,u){if(u||(u=V.create()),r.startTimeUnixNano!=null&&Object.hasOwnProperty.call(r,"startTimeUnixNano")&&u.uint32(17).fixed64(r.startTimeUnixNano),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&u.uint32(25).fixed64(r.timeUnixNano),r.count!=null&&Object.hasOwnProperty.call(r,"count")&&u.uint32(33).fixed64(r.count),r.sum!=null&&Object.hasOwnProperty.call(r,"sum")&&u.uint32(41).double(r.sum),r.bucketCounts!=null&&r.bucketCounts.length){u.uint32(50).fork();for(var l=0;l<r.bucketCounts.length;++l)u.fixed64(r.bucketCounts[l]);u.ldelim()}if(r.explicitBounds!=null&&r.explicitBounds.length){u.uint32(58).fork();for(var l=0;l<r.explicitBounds.length;++l)u.double(r.explicitBounds[l]);u.ldelim()}if(r.exemplars!=null&&r.exemplars.length)for(var l=0;l<r.exemplars.length;++l)d.opentelemetry.proto.metrics.v1.Exemplar.encode(r.exemplars[l],u.uint32(66).fork()).ldelim();if(r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],u.uint32(74).fork()).ldelim();return r.flags!=null&&Object.hasOwnProperty.call(r,"flags")&&u.uint32(80).uint32(r.flags),r.min!=null&&Object.hasOwnProperty.call(r,"min")&&u.uint32(89).double(r.min),r.max!=null&&Object.hasOwnProperty.call(r,"max")&&u.uint32(97).double(r.max),u},a.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},a.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.metrics.v1.HistogramDataPoint;r.pos<l;){var p=r.uint32();switch(p>>>3){case 9:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 2:{c.startTimeUnixNano=r.fixed64();break}case 3:{c.timeUnixNano=r.fixed64();break}case 4:{c.count=r.fixed64();break}case 5:{c.sum=r.double();break}case 6:{if(c.bucketCounts&&c.bucketCounts.length||(c.bucketCounts=[]),(p&7)===2)for(var _=r.uint32()+r.pos;r.pos<_;)c.bucketCounts.push(r.fixed64());else c.bucketCounts.push(r.fixed64());break}case 7:{if(c.explicitBounds&&c.explicitBounds.length||(c.explicitBounds=[]),(p&7)===2)for(var _=r.uint32()+r.pos;r.pos<_;)c.explicitBounds.push(r.double());else c.explicitBounds.push(r.double());break}case 8:{c.exemplars&&c.exemplars.length||(c.exemplars=[]),c.exemplars.push(d.opentelemetry.proto.metrics.v1.Exemplar.decode(r,r.uint32()));break}case 10:{c.flags=r.uint32();break}case 11:{c.min=r.double();break}case 12:{c.max=r.double();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var u={};if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var l=0;l<r.attributes.length;++l){var c=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[l]);if(c)return"attributes."+c}}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&!E.isInteger(r.startTimeUnixNano)&&!(r.startTimeUnixNano&&E.isInteger(r.startTimeUnixNano.low)&&E.isInteger(r.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!E.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&E.isInteger(r.timeUnixNano.low)&&E.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.count!=null&&r.hasOwnProperty("count")&&!E.isInteger(r.count)&&!(r.count&&E.isInteger(r.count.low)&&E.isInteger(r.count.high)))return"count: integer|Long expected";if(r.sum!=null&&r.hasOwnProperty("sum")&&(u._sum=1,typeof r.sum!="number"))return"sum: number expected";if(r.bucketCounts!=null&&r.hasOwnProperty("bucketCounts")){if(!Array.isArray(r.bucketCounts))return"bucketCounts: array expected";for(var l=0;l<r.bucketCounts.length;++l)if(!E.isInteger(r.bucketCounts[l])&&!(r.bucketCounts[l]&&E.isInteger(r.bucketCounts[l].low)&&E.isInteger(r.bucketCounts[l].high)))return"bucketCounts: integer|Long[] expected"}if(r.explicitBounds!=null&&r.hasOwnProperty("explicitBounds")){if(!Array.isArray(r.explicitBounds))return"explicitBounds: array expected";for(var l=0;l<r.explicitBounds.length;++l)if(typeof r.explicitBounds[l]!="number")return"explicitBounds: number[] expected"}if(r.exemplars!=null&&r.hasOwnProperty("exemplars")){if(!Array.isArray(r.exemplars))return"exemplars: array expected";for(var l=0;l<r.exemplars.length;++l){var c=d.opentelemetry.proto.metrics.v1.Exemplar.verify(r.exemplars[l]);if(c)return"exemplars."+c}}return r.flags!=null&&r.hasOwnProperty("flags")&&!E.isInteger(r.flags)?"flags: integer expected":r.min!=null&&r.hasOwnProperty("min")&&(u._min=1,typeof r.min!="number")?"min: number expected":r.max!=null&&r.hasOwnProperty("max")&&(u._max=1,typeof r.max!="number")?"max: number expected":null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.HistogramDataPoint)return r;var u=new d.opentelemetry.proto.metrics.v1.HistogramDataPoint;if(r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: array expected");u.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: object expected");u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}if(r.startTimeUnixNano!=null&&(E.Long?(u.startTimeUnixNano=E.Long.fromValue(r.startTimeUnixNano)).unsigned=!1:typeof r.startTimeUnixNano=="string"?u.startTimeUnixNano=parseInt(r.startTimeUnixNano,10):typeof r.startTimeUnixNano=="number"?u.startTimeUnixNano=r.startTimeUnixNano:typeof r.startTimeUnixNano=="object"&&(u.startTimeUnixNano=new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber())),r.timeUnixNano!=null&&(E.Long?(u.timeUnixNano=E.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?u.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?u.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(u.timeUnixNano=new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.count!=null&&(E.Long?(u.count=E.Long.fromValue(r.count)).unsigned=!1:typeof r.count=="string"?u.count=parseInt(r.count,10):typeof r.count=="number"?u.count=r.count:typeof r.count=="object"&&(u.count=new E.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber())),r.sum!=null&&(u.sum=Number(r.sum)),r.bucketCounts){if(!Array.isArray(r.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.bucketCounts: array expected");u.bucketCounts=[];for(var l=0;l<r.bucketCounts.length;++l)E.Long?(u.bucketCounts[l]=E.Long.fromValue(r.bucketCounts[l])).unsigned=!1:typeof r.bucketCounts[l]=="string"?u.bucketCounts[l]=parseInt(r.bucketCounts[l],10):typeof r.bucketCounts[l]=="number"?u.bucketCounts[l]=r.bucketCounts[l]:typeof r.bucketCounts[l]=="object"&&(u.bucketCounts[l]=new E.LongBits(r.bucketCounts[l].low>>>0,r.bucketCounts[l].high>>>0).toNumber())}if(r.explicitBounds){if(!Array.isArray(r.explicitBounds))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.explicitBounds: array expected");u.explicitBounds=[];for(var l=0;l<r.explicitBounds.length;++l)u.explicitBounds[l]=Number(r.explicitBounds[l])}if(r.exemplars){if(!Array.isArray(r.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: array expected");u.exemplars=[];for(var l=0;l<r.exemplars.length;++l){if(typeof r.exemplars[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: object expected");u.exemplars[l]=d.opentelemetry.proto.metrics.v1.Exemplar.fromObject(r.exemplars[l])}}return r.flags!=null&&(u.flags=r.flags>>>0),r.min!=null&&(u.min=Number(r.min)),r.max!=null&&(u.max=Number(r.max)),u},a.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.bucketCounts=[],l.explicitBounds=[],l.exemplars=[],l.attributes=[]),u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.startTimeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.startTimeUnixNano=u.longs===String?"0":0;if(E.Long){var c=new E.Long(0,0,!1);l.timeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.timeUnixNano=u.longs===String?"0":0;if(E.Long){var c=new E.Long(0,0,!1);l.count=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.count=u.longs===String?"0":0;l.flags=0}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&(typeof r.startTimeUnixNano=="number"?l.startTimeUnixNano=u.longs===String?String(r.startTimeUnixNano):r.startTimeUnixNano:l.startTimeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.startTimeUnixNano):u.longs===Number?new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber():r.startTimeUnixNano),r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=u.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.timeUnixNano):u.longs===Number?new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.count!=null&&r.hasOwnProperty("count")&&(typeof r.count=="number"?l.count=u.longs===String?String(r.count):r.count:l.count=u.longs===String?E.Long.prototype.toString.call(r.count):u.longs===Number?new E.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber():r.count),r.sum!=null&&r.hasOwnProperty("sum")&&(l.sum=u.json&&!isFinite(r.sum)?String(r.sum):r.sum,u.oneofs&&(l._sum="sum")),r.bucketCounts&&r.bucketCounts.length){l.bucketCounts=[];for(var p=0;p<r.bucketCounts.length;++p)typeof r.bucketCounts[p]=="number"?l.bucketCounts[p]=u.longs===String?String(r.bucketCounts[p]):r.bucketCounts[p]:l.bucketCounts[p]=u.longs===String?E.Long.prototype.toString.call(r.bucketCounts[p]):u.longs===Number?new E.LongBits(r.bucketCounts[p].low>>>0,r.bucketCounts[p].high>>>0).toNumber():r.bucketCounts[p]}if(r.explicitBounds&&r.explicitBounds.length){l.explicitBounds=[];for(var p=0;p<r.explicitBounds.length;++p)l.explicitBounds[p]=u.json&&!isFinite(r.explicitBounds[p])?String(r.explicitBounds[p]):r.explicitBounds[p]}if(r.exemplars&&r.exemplars.length){l.exemplars=[];for(var p=0;p<r.exemplars.length;++p)l.exemplars[p]=d.opentelemetry.proto.metrics.v1.Exemplar.toObject(r.exemplars[p],u)}if(r.attributes&&r.attributes.length){l.attributes=[];for(var p=0;p<r.attributes.length;++p)l.attributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[p],u)}return r.flags!=null&&r.hasOwnProperty("flags")&&(l.flags=r.flags),r.min!=null&&r.hasOwnProperty("min")&&(l.min=u.json&&!isFinite(r.min)?String(r.min):r.min,u.oneofs&&(l._min="min")),r.max!=null&&r.hasOwnProperty("max")&&(l.max=u.json&&!isFinite(r.max)?String(r.max):r.max,u.oneofs&&(l._max="max")),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.HistogramDataPoint"},a}(),i.ExponentialHistogramDataPoint=function(){function a(o){if(this.attributes=[],this.exemplars=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}a.prototype.attributes=E.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.count=null,a.prototype.sum=null,a.prototype.scale=null,a.prototype.zeroCount=null,a.prototype.positive=null,a.prototype.negative=null,a.prototype.flags=null,a.prototype.exemplars=E.emptyArray,a.prototype.min=null,a.prototype.max=null,a.prototype.zeroThreshold=null;var s;return Object.defineProperty(a.prototype,"_sum",{get:E.oneOfGetter(s=["sum"]),set:E.oneOfSetter(s)}),Object.defineProperty(a.prototype,"_min",{get:E.oneOfGetter(s=["min"]),set:E.oneOfSetter(s)}),Object.defineProperty(a.prototype,"_max",{get:E.oneOfGetter(s=["max"]),set:E.oneOfSetter(s)}),a.create=function(r){return new a(r)},a.encode=function(r,u){if(u||(u=V.create()),r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],u.uint32(10).fork()).ldelim();if(r.startTimeUnixNano!=null&&Object.hasOwnProperty.call(r,"startTimeUnixNano")&&u.uint32(17).fixed64(r.startTimeUnixNano),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&u.uint32(25).fixed64(r.timeUnixNano),r.count!=null&&Object.hasOwnProperty.call(r,"count")&&u.uint32(33).fixed64(r.count),r.sum!=null&&Object.hasOwnProperty.call(r,"sum")&&u.uint32(41).double(r.sum),r.scale!=null&&Object.hasOwnProperty.call(r,"scale")&&u.uint32(48).sint32(r.scale),r.zeroCount!=null&&Object.hasOwnProperty.call(r,"zeroCount")&&u.uint32(57).fixed64(r.zeroCount),r.positive!=null&&Object.hasOwnProperty.call(r,"positive")&&d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(r.positive,u.uint32(66).fork()).ldelim(),r.negative!=null&&Object.hasOwnProperty.call(r,"negative")&&d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(r.negative,u.uint32(74).fork()).ldelim(),r.flags!=null&&Object.hasOwnProperty.call(r,"flags")&&u.uint32(80).uint32(r.flags),r.exemplars!=null&&r.exemplars.length)for(var l=0;l<r.exemplars.length;++l)d.opentelemetry.proto.metrics.v1.Exemplar.encode(r.exemplars[l],u.uint32(90).fork()).ldelim();return r.min!=null&&Object.hasOwnProperty.call(r,"min")&&u.uint32(97).double(r.min),r.max!=null&&Object.hasOwnProperty.call(r,"max")&&u.uint32(105).double(r.max),r.zeroThreshold!=null&&Object.hasOwnProperty.call(r,"zeroThreshold")&&u.uint32(113).double(r.zeroThreshold),u},a.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},a.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 2:{c.startTimeUnixNano=r.fixed64();break}case 3:{c.timeUnixNano=r.fixed64();break}case 4:{c.count=r.fixed64();break}case 5:{c.sum=r.double();break}case 6:{c.scale=r.sint32();break}case 7:{c.zeroCount=r.fixed64();break}case 8:{c.positive=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(r,r.uint32());break}case 9:{c.negative=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(r,r.uint32());break}case 10:{c.flags=r.uint32();break}case 11:{c.exemplars&&c.exemplars.length||(c.exemplars=[]),c.exemplars.push(d.opentelemetry.proto.metrics.v1.Exemplar.decode(r,r.uint32()));break}case 12:{c.min=r.double();break}case 13:{c.max=r.double();break}case 14:{c.zeroThreshold=r.double();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var u={};if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var l=0;l<r.attributes.length;++l){var c=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[l]);if(c)return"attributes."+c}}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&!E.isInteger(r.startTimeUnixNano)&&!(r.startTimeUnixNano&&E.isInteger(r.startTimeUnixNano.low)&&E.isInteger(r.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!E.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&E.isInteger(r.timeUnixNano.low)&&E.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.count!=null&&r.hasOwnProperty("count")&&!E.isInteger(r.count)&&!(r.count&&E.isInteger(r.count.low)&&E.isInteger(r.count.high)))return"count: integer|Long expected";if(r.sum!=null&&r.hasOwnProperty("sum")&&(u._sum=1,typeof r.sum!="number"))return"sum: number expected";if(r.scale!=null&&r.hasOwnProperty("scale")&&!E.isInteger(r.scale))return"scale: integer expected";if(r.zeroCount!=null&&r.hasOwnProperty("zeroCount")&&!E.isInteger(r.zeroCount)&&!(r.zeroCount&&E.isInteger(r.zeroCount.low)&&E.isInteger(r.zeroCount.high)))return"zeroCount: integer|Long expected";if(r.positive!=null&&r.hasOwnProperty("positive")){var c=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(r.positive);if(c)return"positive."+c}if(r.negative!=null&&r.hasOwnProperty("negative")){var c=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(r.negative);if(c)return"negative."+c}if(r.flags!=null&&r.hasOwnProperty("flags")&&!E.isInteger(r.flags))return"flags: integer expected";if(r.exemplars!=null&&r.hasOwnProperty("exemplars")){if(!Array.isArray(r.exemplars))return"exemplars: array expected";for(var l=0;l<r.exemplars.length;++l){var c=d.opentelemetry.proto.metrics.v1.Exemplar.verify(r.exemplars[l]);if(c)return"exemplars."+c}}return r.min!=null&&r.hasOwnProperty("min")&&(u._min=1,typeof r.min!="number")?"min: number expected":r.max!=null&&r.hasOwnProperty("max")&&(u._max=1,typeof r.max!="number")?"max: number expected":r.zeroThreshold!=null&&r.hasOwnProperty("zeroThreshold")&&typeof r.zeroThreshold!="number"?"zeroThreshold: number expected":null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint)return r;var u=new d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;if(r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: array expected");u.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: object expected");u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}if(r.startTimeUnixNano!=null&&(E.Long?(u.startTimeUnixNano=E.Long.fromValue(r.startTimeUnixNano)).unsigned=!1:typeof r.startTimeUnixNano=="string"?u.startTimeUnixNano=parseInt(r.startTimeUnixNano,10):typeof r.startTimeUnixNano=="number"?u.startTimeUnixNano=r.startTimeUnixNano:typeof r.startTimeUnixNano=="object"&&(u.startTimeUnixNano=new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber())),r.timeUnixNano!=null&&(E.Long?(u.timeUnixNano=E.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?u.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?u.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(u.timeUnixNano=new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.count!=null&&(E.Long?(u.count=E.Long.fromValue(r.count)).unsigned=!1:typeof r.count=="string"?u.count=parseInt(r.count,10):typeof r.count=="number"?u.count=r.count:typeof r.count=="object"&&(u.count=new E.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber())),r.sum!=null&&(u.sum=Number(r.sum)),r.scale!=null&&(u.scale=r.scale|0),r.zeroCount!=null&&(E.Long?(u.zeroCount=E.Long.fromValue(r.zeroCount)).unsigned=!1:typeof r.zeroCount=="string"?u.zeroCount=parseInt(r.zeroCount,10):typeof r.zeroCount=="number"?u.zeroCount=r.zeroCount:typeof r.zeroCount=="object"&&(u.zeroCount=new E.LongBits(r.zeroCount.low>>>0,r.zeroCount.high>>>0).toNumber())),r.positive!=null){if(typeof r.positive!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.positive: object expected");u.positive=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(r.positive)}if(r.negative!=null){if(typeof r.negative!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.negative: object expected");u.negative=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(r.negative)}if(r.flags!=null&&(u.flags=r.flags>>>0),r.exemplars){if(!Array.isArray(r.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: array expected");u.exemplars=[];for(var l=0;l<r.exemplars.length;++l){if(typeof r.exemplars[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: object expected");u.exemplars[l]=d.opentelemetry.proto.metrics.v1.Exemplar.fromObject(r.exemplars[l])}}return r.min!=null&&(u.min=Number(r.min)),r.max!=null&&(u.max=Number(r.max)),r.zeroThreshold!=null&&(u.zeroThreshold=Number(r.zeroThreshold)),u},a.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.attributes=[],l.exemplars=[]),u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.startTimeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.startTimeUnixNano=u.longs===String?"0":0;if(E.Long){var c=new E.Long(0,0,!1);l.timeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.timeUnixNano=u.longs===String?"0":0;if(E.Long){var c=new E.Long(0,0,!1);l.count=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.count=u.longs===String?"0":0;if(l.scale=0,E.Long){var c=new E.Long(0,0,!1);l.zeroCount=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.zeroCount=u.longs===String?"0":0;l.positive=null,l.negative=null,l.flags=0,l.zeroThreshold=0}if(r.attributes&&r.attributes.length){l.attributes=[];for(var p=0;p<r.attributes.length;++p)l.attributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[p],u)}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&(typeof r.startTimeUnixNano=="number"?l.startTimeUnixNano=u.longs===String?String(r.startTimeUnixNano):r.startTimeUnixNano:l.startTimeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.startTimeUnixNano):u.longs===Number?new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber():r.startTimeUnixNano),r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=u.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.timeUnixNano):u.longs===Number?new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.count!=null&&r.hasOwnProperty("count")&&(typeof r.count=="number"?l.count=u.longs===String?String(r.count):r.count:l.count=u.longs===String?E.Long.prototype.toString.call(r.count):u.longs===Number?new E.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber():r.count),r.sum!=null&&r.hasOwnProperty("sum")&&(l.sum=u.json&&!isFinite(r.sum)?String(r.sum):r.sum,u.oneofs&&(l._sum="sum")),r.scale!=null&&r.hasOwnProperty("scale")&&(l.scale=r.scale),r.zeroCount!=null&&r.hasOwnProperty("zeroCount")&&(typeof r.zeroCount=="number"?l.zeroCount=u.longs===String?String(r.zeroCount):r.zeroCount:l.zeroCount=u.longs===String?E.Long.prototype.toString.call(r.zeroCount):u.longs===Number?new E.LongBits(r.zeroCount.low>>>0,r.zeroCount.high>>>0).toNumber():r.zeroCount),r.positive!=null&&r.hasOwnProperty("positive")&&(l.positive=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(r.positive,u)),r.negative!=null&&r.hasOwnProperty("negative")&&(l.negative=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(r.negative,u)),r.flags!=null&&r.hasOwnProperty("flags")&&(l.flags=r.flags),r.exemplars&&r.exemplars.length){l.exemplars=[];for(var p=0;p<r.exemplars.length;++p)l.exemplars[p]=d.opentelemetry.proto.metrics.v1.Exemplar.toObject(r.exemplars[p],u)}return r.min!=null&&r.hasOwnProperty("min")&&(l.min=u.json&&!isFinite(r.min)?String(r.min):r.min,u.oneofs&&(l._min="min")),r.max!=null&&r.hasOwnProperty("max")&&(l.max=u.json&&!isFinite(r.max)?String(r.max):r.max,u.oneofs&&(l._max="max")),r.zeroThreshold!=null&&r.hasOwnProperty("zeroThreshold")&&(l.zeroThreshold=u.json&&!isFinite(r.zeroThreshold)?String(r.zeroThreshold):r.zeroThreshold),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint"},a.Buckets=function(){function o(r){if(this.bucketCounts=[],r)for(var u=Object.keys(r),l=0;l<u.length;++l)r[u[l]]!=null&&(this[u[l]]=r[u[l]])}return o.prototype.offset=null,o.prototype.bucketCounts=E.emptyArray,o.create=function(u){return new o(u)},o.encode=function(u,l){if(l||(l=V.create()),u.offset!=null&&Object.hasOwnProperty.call(u,"offset")&&l.uint32(8).sint32(u.offset),u.bucketCounts!=null&&u.bucketCounts.length){l.uint32(18).fork();for(var c=0;c<u.bucketCounts.length;++c)l.uint64(u.bucketCounts[c]);l.ldelim()}return l},o.encodeDelimited=function(u,l){return this.encode(u,l).ldelim()},o.decode=function(u,l){u instanceof y||(u=y.create(u));for(var c=l===void 0?u.len:u.pos+l,p=new d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;u.pos<c;){var _=u.uint32();switch(_>>>3){case 1:{p.offset=u.sint32();break}case 2:{if(p.bucketCounts&&p.bucketCounts.length||(p.bucketCounts=[]),(_&7)===2)for(var f=u.uint32()+u.pos;u.pos<f;)p.bucketCounts.push(u.uint64());else p.bucketCounts.push(u.uint64());break}default:u.skipType(_&7);break}}return p},o.decodeDelimited=function(u){return u instanceof y||(u=new y(u)),this.decode(u,u.uint32())},o.verify=function(u){if(typeof u!="object"||u===null)return"object expected";if(u.offset!=null&&u.hasOwnProperty("offset")&&!E.isInteger(u.offset))return"offset: integer expected";if(u.bucketCounts!=null&&u.hasOwnProperty("bucketCounts")){if(!Array.isArray(u.bucketCounts))return"bucketCounts: array expected";for(var l=0;l<u.bucketCounts.length;++l)if(!E.isInteger(u.bucketCounts[l])&&!(u.bucketCounts[l]&&E.isInteger(u.bucketCounts[l].low)&&E.isInteger(u.bucketCounts[l].high)))return"bucketCounts: integer|Long[] expected"}return null},o.fromObject=function(u){if(u instanceof d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets)return u;var l=new d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;if(u.offset!=null&&(l.offset=u.offset|0),u.bucketCounts){if(!Array.isArray(u.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.bucketCounts: array expected");l.bucketCounts=[];for(var c=0;c<u.bucketCounts.length;++c)E.Long?(l.bucketCounts[c]=E.Long.fromValue(u.bucketCounts[c])).unsigned=!0:typeof u.bucketCounts[c]=="string"?l.bucketCounts[c]=parseInt(u.bucketCounts[c],10):typeof u.bucketCounts[c]=="number"?l.bucketCounts[c]=u.bucketCounts[c]:typeof u.bucketCounts[c]=="object"&&(l.bucketCounts[c]=new E.LongBits(u.bucketCounts[c].low>>>0,u.bucketCounts[c].high>>>0).toNumber(!0))}return l},o.toObject=function(u,l){l||(l={});var c={};if((l.arrays||l.defaults)&&(c.bucketCounts=[]),l.defaults&&(c.offset=0),u.offset!=null&&u.hasOwnProperty("offset")&&(c.offset=u.offset),u.bucketCounts&&u.bucketCounts.length){c.bucketCounts=[];for(var p=0;p<u.bucketCounts.length;++p)typeof u.bucketCounts[p]=="number"?c.bucketCounts[p]=l.longs===String?String(u.bucketCounts[p]):u.bucketCounts[p]:c.bucketCounts[p]=l.longs===String?E.Long.prototype.toString.call(u.bucketCounts[p]):l.longs===Number?new E.LongBits(u.bucketCounts[p].low>>>0,u.bucketCounts[p].high>>>0).toNumber(!0):u.bucketCounts[p]}return c},o.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},o.getTypeUrl=function(u){return u===void 0&&(u="type.googleapis.com"),u+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets"},o}(),a}(),i.SummaryDataPoint=function(){function a(s){if(this.attributes=[],this.quantileValues=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.attributes=E.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.count=null,a.prototype.sum=null,a.prototype.quantileValues=E.emptyArray,a.prototype.flags=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.startTimeUnixNano!=null&&Object.hasOwnProperty.call(o,"startTimeUnixNano")&&r.uint32(17).fixed64(o.startTimeUnixNano),o.timeUnixNano!=null&&Object.hasOwnProperty.call(o,"timeUnixNano")&&r.uint32(25).fixed64(o.timeUnixNano),o.count!=null&&Object.hasOwnProperty.call(o,"count")&&r.uint32(33).fixed64(o.count),o.sum!=null&&Object.hasOwnProperty.call(o,"sum")&&r.uint32(41).double(o.sum),o.quantileValues!=null&&o.quantileValues.length)for(var u=0;u<o.quantileValues.length;++u)d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.encode(o.quantileValues[u],r.uint32(50).fork()).ldelim();if(o.attributes!=null&&o.attributes.length)for(var u=0;u<o.attributes.length;++u)d.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[u],r.uint32(58).fork()).ldelim();return o.flags!=null&&Object.hasOwnProperty.call(o,"flags")&&r.uint32(64).uint32(o.flags),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.SummaryDataPoint;o.pos<u;){var c=o.uint32();switch(c>>>3){case 7:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 2:{l.startTimeUnixNano=o.fixed64();break}case 3:{l.timeUnixNano=o.fixed64();break}case 4:{l.count=o.fixed64();break}case 5:{l.sum=o.double();break}case 6:{l.quantileValues&&l.quantileValues.length||(l.quantileValues=[]),l.quantileValues.push(d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.decode(o,o.uint32()));break}case 8:{l.flags=o.uint32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var r=0;r<o.attributes.length;++r){var u=d.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[r]);if(u)return"attributes."+u}}if(o.startTimeUnixNano!=null&&o.hasOwnProperty("startTimeUnixNano")&&!E.isInteger(o.startTimeUnixNano)&&!(o.startTimeUnixNano&&E.isInteger(o.startTimeUnixNano.low)&&E.isInteger(o.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(o.timeUnixNano!=null&&o.hasOwnProperty("timeUnixNano")&&!E.isInteger(o.timeUnixNano)&&!(o.timeUnixNano&&E.isInteger(o.timeUnixNano.low)&&E.isInteger(o.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(o.count!=null&&o.hasOwnProperty("count")&&!E.isInteger(o.count)&&!(o.count&&E.isInteger(o.count.low)&&E.isInteger(o.count.high)))return"count: integer|Long expected";if(o.sum!=null&&o.hasOwnProperty("sum")&&typeof o.sum!="number")return"sum: number expected";if(o.quantileValues!=null&&o.hasOwnProperty("quantileValues")){if(!Array.isArray(o.quantileValues))return"quantileValues: array expected";for(var r=0;r<o.quantileValues.length;++r){var u=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.verify(o.quantileValues[r]);if(u)return"quantileValues."+u}}return o.flags!=null&&o.hasOwnProperty("flags")&&!E.isInteger(o.flags)?"flags: integer expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.SummaryDataPoint)return o;var r=new d.opentelemetry.proto.metrics.v1.SummaryDataPoint;if(o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: array expected");r.attributes=[];for(var u=0;u<o.attributes.length;++u){if(typeof o.attributes[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: object expected");r.attributes[u]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[u])}}if(o.startTimeUnixNano!=null&&(E.Long?(r.startTimeUnixNano=E.Long.fromValue(o.startTimeUnixNano)).unsigned=!1:typeof o.startTimeUnixNano=="string"?r.startTimeUnixNano=parseInt(o.startTimeUnixNano,10):typeof o.startTimeUnixNano=="number"?r.startTimeUnixNano=o.startTimeUnixNano:typeof o.startTimeUnixNano=="object"&&(r.startTimeUnixNano=new E.LongBits(o.startTimeUnixNano.low>>>0,o.startTimeUnixNano.high>>>0).toNumber())),o.timeUnixNano!=null&&(E.Long?(r.timeUnixNano=E.Long.fromValue(o.timeUnixNano)).unsigned=!1:typeof o.timeUnixNano=="string"?r.timeUnixNano=parseInt(o.timeUnixNano,10):typeof o.timeUnixNano=="number"?r.timeUnixNano=o.timeUnixNano:typeof o.timeUnixNano=="object"&&(r.timeUnixNano=new E.LongBits(o.timeUnixNano.low>>>0,o.timeUnixNano.high>>>0).toNumber())),o.count!=null&&(E.Long?(r.count=E.Long.fromValue(o.count)).unsigned=!1:typeof o.count=="string"?r.count=parseInt(o.count,10):typeof o.count=="number"?r.count=o.count:typeof o.count=="object"&&(r.count=new E.LongBits(o.count.low>>>0,o.count.high>>>0).toNumber())),o.sum!=null&&(r.sum=Number(o.sum)),o.quantileValues){if(!Array.isArray(o.quantileValues))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: array expected");r.quantileValues=[];for(var u=0;u<o.quantileValues.length;++u){if(typeof o.quantileValues[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: object expected");r.quantileValues[u]=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.fromObject(o.quantileValues[u])}}return o.flags!=null&&(r.flags=o.flags>>>0),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.quantileValues=[],u.attributes=[]),r.defaults){if(E.Long){var l=new E.Long(0,0,!1);u.startTimeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.startTimeUnixNano=r.longs===String?"0":0;if(E.Long){var l=new E.Long(0,0,!1);u.timeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.timeUnixNano=r.longs===String?"0":0;if(E.Long){var l=new E.Long(0,0,!1);u.count=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.count=r.longs===String?"0":0;u.sum=0,u.flags=0}if(o.startTimeUnixNano!=null&&o.hasOwnProperty("startTimeUnixNano")&&(typeof o.startTimeUnixNano=="number"?u.startTimeUnixNano=r.longs===String?String(o.startTimeUnixNano):o.startTimeUnixNano:u.startTimeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.startTimeUnixNano):r.longs===Number?new E.LongBits(o.startTimeUnixNano.low>>>0,o.startTimeUnixNano.high>>>0).toNumber():o.startTimeUnixNano),o.timeUnixNano!=null&&o.hasOwnProperty("timeUnixNano")&&(typeof o.timeUnixNano=="number"?u.timeUnixNano=r.longs===String?String(o.timeUnixNano):o.timeUnixNano:u.timeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.timeUnixNano):r.longs===Number?new E.LongBits(o.timeUnixNano.low>>>0,o.timeUnixNano.high>>>0).toNumber():o.timeUnixNano),o.count!=null&&o.hasOwnProperty("count")&&(typeof o.count=="number"?u.count=r.longs===String?String(o.count):o.count:u.count=r.longs===String?E.Long.prototype.toString.call(o.count):r.longs===Number?new E.LongBits(o.count.low>>>0,o.count.high>>>0).toNumber():o.count),o.sum!=null&&o.hasOwnProperty("sum")&&(u.sum=r.json&&!isFinite(o.sum)?String(o.sum):o.sum),o.quantileValues&&o.quantileValues.length){u.quantileValues=[];for(var c=0;c<o.quantileValues.length;++c)u.quantileValues[c]=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.toObject(o.quantileValues[c],r)}if(o.attributes&&o.attributes.length){u.attributes=[];for(var c=0;c<o.attributes.length;++c)u.attributes[c]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[c],r)}return o.flags!=null&&o.hasOwnProperty("flags")&&(u.flags=o.flags),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.SummaryDataPoint"},a.ValueAtQuantile=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.quantile=null,s.prototype.value=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.quantile!=null&&Object.hasOwnProperty.call(r,"quantile")&&u.uint32(9).double(r.quantile),r.value!=null&&Object.hasOwnProperty.call(r,"value")&&u.uint32(17).double(r.value),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.quantile=r.double();break}case 2:{c.value=r.double();break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){return typeof r!="object"||r===null?"object expected":r.quantile!=null&&r.hasOwnProperty("quantile")&&typeof r.quantile!="number"?"quantile: number expected":r.value!=null&&r.hasOwnProperty("value")&&typeof r.value!="number"?"value: number expected":null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile)return r;var u=new d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;return r.quantile!=null&&(u.quantile=Number(r.quantile)),r.value!=null&&(u.value=Number(r.value)),u},s.toObject=function(r,u){u||(u={});var l={};return u.defaults&&(l.quantile=0,l.value=0),r.quantile!=null&&r.hasOwnProperty("quantile")&&(l.quantile=u.json&&!isFinite(r.quantile)?String(r.quantile):r.quantile),r.value!=null&&r.hasOwnProperty("value")&&(l.value=u.json&&!isFinite(r.value)?String(r.value):r.value),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile"},s}(),a}(),i.Exemplar=function(){function a(o){if(this.filteredAttributes=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}a.prototype.filteredAttributes=E.emptyArray,a.prototype.timeUnixNano=null,a.prototype.asDouble=null,a.prototype.asInt=null,a.prototype.spanId=null,a.prototype.traceId=null;var s;return Object.defineProperty(a.prototype,"value",{get:E.oneOfGetter(s=["asDouble","asInt"]),set:E.oneOfSetter(s)}),a.create=function(r){return new a(r)},a.encode=function(r,u){if(u||(u=V.create()),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&u.uint32(17).fixed64(r.timeUnixNano),r.asDouble!=null&&Object.hasOwnProperty.call(r,"asDouble")&&u.uint32(25).double(r.asDouble),r.spanId!=null&&Object.hasOwnProperty.call(r,"spanId")&&u.uint32(34).bytes(r.spanId),r.traceId!=null&&Object.hasOwnProperty.call(r,"traceId")&&u.uint32(42).bytes(r.traceId),r.asInt!=null&&Object.hasOwnProperty.call(r,"asInt")&&u.uint32(49).sfixed64(r.asInt),r.filteredAttributes!=null&&r.filteredAttributes.length)for(var l=0;l<r.filteredAttributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.filteredAttributes[l],u.uint32(58).fork()).ldelim();return u},a.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},a.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.metrics.v1.Exemplar;r.pos<l;){var p=r.uint32();switch(p>>>3){case 7:{c.filteredAttributes&&c.filteredAttributes.length||(c.filteredAttributes=[]),c.filteredAttributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 2:{c.timeUnixNano=r.fixed64();break}case 3:{c.asDouble=r.double();break}case 6:{c.asInt=r.sfixed64();break}case 4:{c.spanId=r.bytes();break}case 5:{c.traceId=r.bytes();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var u={};if(r.filteredAttributes!=null&&r.hasOwnProperty("filteredAttributes")){if(!Array.isArray(r.filteredAttributes))return"filteredAttributes: array expected";for(var l=0;l<r.filteredAttributes.length;++l){var c=d.opentelemetry.proto.common.v1.KeyValue.verify(r.filteredAttributes[l]);if(c)return"filteredAttributes."+c}}if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!E.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&E.isInteger(r.timeUnixNano.low)&&E.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.asDouble!=null&&r.hasOwnProperty("asDouble")&&(u.value=1,typeof r.asDouble!="number"))return"asDouble: number expected";if(r.asInt!=null&&r.hasOwnProperty("asInt")){if(u.value===1)return"value: multiple values";if(u.value=1,!E.isInteger(r.asInt)&&!(r.asInt&&E.isInteger(r.asInt.low)&&E.isInteger(r.asInt.high)))return"asInt: integer|Long expected"}return r.spanId!=null&&r.hasOwnProperty("spanId")&&!(r.spanId&&typeof r.spanId.length=="number"||E.isString(r.spanId))?"spanId: buffer expected":r.traceId!=null&&r.hasOwnProperty("traceId")&&!(r.traceId&&typeof r.traceId.length=="number"||E.isString(r.traceId))?"traceId: buffer expected":null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.Exemplar)return r;var u=new d.opentelemetry.proto.metrics.v1.Exemplar;if(r.filteredAttributes){if(!Array.isArray(r.filteredAttributes))throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: array expected");u.filteredAttributes=[];for(var l=0;l<r.filteredAttributes.length;++l){if(typeof r.filteredAttributes[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: object expected");u.filteredAttributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.filteredAttributes[l])}}return r.timeUnixNano!=null&&(E.Long?(u.timeUnixNano=E.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?u.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?u.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(u.timeUnixNano=new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.asDouble!=null&&(u.asDouble=Number(r.asDouble)),r.asInt!=null&&(E.Long?(u.asInt=E.Long.fromValue(r.asInt)).unsigned=!1:typeof r.asInt=="string"?u.asInt=parseInt(r.asInt,10):typeof r.asInt=="number"?u.asInt=r.asInt:typeof r.asInt=="object"&&(u.asInt=new E.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber())),r.spanId!=null&&(typeof r.spanId=="string"?E.base64.decode(r.spanId,u.spanId=E.newBuffer(E.base64.length(r.spanId)),0):r.spanId.length>=0&&(u.spanId=r.spanId)),r.traceId!=null&&(typeof r.traceId=="string"?E.base64.decode(r.traceId,u.traceId=E.newBuffer(E.base64.length(r.traceId)),0):r.traceId.length>=0&&(u.traceId=r.traceId)),u},a.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.filteredAttributes=[]),u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.timeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.timeUnixNano=u.longs===String?"0":0;u.bytes===String?l.spanId="":(l.spanId=[],u.bytes!==Array&&(l.spanId=E.newBuffer(l.spanId))),u.bytes===String?l.traceId="":(l.traceId=[],u.bytes!==Array&&(l.traceId=E.newBuffer(l.traceId)))}if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=u.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.timeUnixNano):u.longs===Number?new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.asDouble!=null&&r.hasOwnProperty("asDouble")&&(l.asDouble=u.json&&!isFinite(r.asDouble)?String(r.asDouble):r.asDouble,u.oneofs&&(l.value="asDouble")),r.spanId!=null&&r.hasOwnProperty("spanId")&&(l.spanId=u.bytes===String?E.base64.encode(r.spanId,0,r.spanId.length):u.bytes===Array?Array.prototype.slice.call(r.spanId):r.spanId),r.traceId!=null&&r.hasOwnProperty("traceId")&&(l.traceId=u.bytes===String?E.base64.encode(r.traceId,0,r.traceId.length):u.bytes===Array?Array.prototype.slice.call(r.traceId):r.traceId),r.asInt!=null&&r.hasOwnProperty("asInt")&&(typeof r.asInt=="number"?l.asInt=u.longs===String?String(r.asInt):r.asInt:l.asInt=u.longs===String?E.Long.prototype.toString.call(r.asInt):u.longs===Number?new E.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber():r.asInt,u.oneofs&&(l.value="asInt")),r.filteredAttributes&&r.filteredAttributes.length){l.filteredAttributes=[];for(var p=0;p<r.filteredAttributes.length;++p)l.filteredAttributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.filteredAttributes[p],u)}return l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.Exemplar"},a}(),i}(),n}(),e.logs=function(){var n={};return n.v1=function(){var i={};return i.LogsData=function(){function a(s){if(this.resourceLogs=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.resourceLogs=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resourceLogs!=null&&o.resourceLogs.length)for(var u=0;u<o.resourceLogs.length;++u)d.opentelemetry.proto.logs.v1.ResourceLogs.encode(o.resourceLogs[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.logs.v1.LogsData;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.resourceLogs&&l.resourceLogs.length||(l.resourceLogs=[]),l.resourceLogs.push(d.opentelemetry.proto.logs.v1.ResourceLogs.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resourceLogs!=null&&o.hasOwnProperty("resourceLogs")){if(!Array.isArray(o.resourceLogs))return"resourceLogs: array expected";for(var r=0;r<o.resourceLogs.length;++r){var u=d.opentelemetry.proto.logs.v1.ResourceLogs.verify(o.resourceLogs[r]);if(u)return"resourceLogs."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.logs.v1.LogsData)return o;var r=new d.opentelemetry.proto.logs.v1.LogsData;if(o.resourceLogs){if(!Array.isArray(o.resourceLogs))throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: array expected");r.resourceLogs=[];for(var u=0;u<o.resourceLogs.length;++u){if(typeof o.resourceLogs[u]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: object expected");r.resourceLogs[u]=d.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(o.resourceLogs[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.resourceLogs=[]),o.resourceLogs&&o.resourceLogs.length){u.resourceLogs=[];for(var l=0;l<o.resourceLogs.length;++l)u.resourceLogs[l]=d.opentelemetry.proto.logs.v1.ResourceLogs.toObject(o.resourceLogs[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.logs.v1.LogsData"},a}(),i.ResourceLogs=function(){function a(s){if(this.scopeLogs=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.resource=null,a.prototype.scopeLogs=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resource!=null&&Object.hasOwnProperty.call(o,"resource")&&d.opentelemetry.proto.resource.v1.Resource.encode(o.resource,r.uint32(10).fork()).ldelim(),o.scopeLogs!=null&&o.scopeLogs.length)for(var u=0;u<o.scopeLogs.length;++u)d.opentelemetry.proto.logs.v1.ScopeLogs.encode(o.scopeLogs[u],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.logs.v1.ResourceLogs;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.resource=d.opentelemetry.proto.resource.v1.Resource.decode(o,o.uint32());break}case 2:{l.scopeLogs&&l.scopeLogs.length||(l.scopeLogs=[]),l.scopeLogs.push(d.opentelemetry.proto.logs.v1.ScopeLogs.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resource!=null&&o.hasOwnProperty("resource")){var r=d.opentelemetry.proto.resource.v1.Resource.verify(o.resource);if(r)return"resource."+r}if(o.scopeLogs!=null&&o.hasOwnProperty("scopeLogs")){if(!Array.isArray(o.scopeLogs))return"scopeLogs: array expected";for(var u=0;u<o.scopeLogs.length;++u){var r=d.opentelemetry.proto.logs.v1.ScopeLogs.verify(o.scopeLogs[u]);if(r)return"scopeLogs."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.logs.v1.ResourceLogs)return o;var r=new d.opentelemetry.proto.logs.v1.ResourceLogs;if(o.resource!=null){if(typeof o.resource!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.resource: object expected");r.resource=d.opentelemetry.proto.resource.v1.Resource.fromObject(o.resource)}if(o.scopeLogs){if(!Array.isArray(o.scopeLogs))throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: array expected");r.scopeLogs=[];for(var u=0;u<o.scopeLogs.length;++u){if(typeof o.scopeLogs[u]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: object expected");r.scopeLogs[u]=d.opentelemetry.proto.logs.v1.ScopeLogs.fromObject(o.scopeLogs[u])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.scopeLogs=[]),r.defaults&&(u.resource=null,u.schemaUrl=""),o.resource!=null&&o.hasOwnProperty("resource")&&(u.resource=d.opentelemetry.proto.resource.v1.Resource.toObject(o.resource,r)),o.scopeLogs&&o.scopeLogs.length){u.scopeLogs=[];for(var l=0;l<o.scopeLogs.length;++l)u.scopeLogs[l]=d.opentelemetry.proto.logs.v1.ScopeLogs.toObject(o.scopeLogs[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(u.schemaUrl=o.schemaUrl),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.logs.v1.ResourceLogs"},a}(),i.ScopeLogs=function(){function a(s){if(this.logRecords=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.scope=null,a.prototype.logRecords=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.scope!=null&&Object.hasOwnProperty.call(o,"scope")&&d.opentelemetry.proto.common.v1.InstrumentationScope.encode(o.scope,r.uint32(10).fork()).ldelim(),o.logRecords!=null&&o.logRecords.length)for(var u=0;u<o.logRecords.length;++u)d.opentelemetry.proto.logs.v1.LogRecord.encode(o.logRecords[u],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.logs.v1.ScopeLogs;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.decode(o,o.uint32());break}case 2:{l.logRecords&&l.logRecords.length||(l.logRecords=[]),l.logRecords.push(d.opentelemetry.proto.logs.v1.LogRecord.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.scope!=null&&o.hasOwnProperty("scope")){var r=d.opentelemetry.proto.common.v1.InstrumentationScope.verify(o.scope);if(r)return"scope."+r}if(o.logRecords!=null&&o.hasOwnProperty("logRecords")){if(!Array.isArray(o.logRecords))return"logRecords: array expected";for(var u=0;u<o.logRecords.length;++u){var r=d.opentelemetry.proto.logs.v1.LogRecord.verify(o.logRecords[u]);if(r)return"logRecords."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.logs.v1.ScopeLogs)return o;var r=new d.opentelemetry.proto.logs.v1.ScopeLogs;if(o.scope!=null){if(typeof o.scope!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.scope: object expected");r.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(o.scope)}if(o.logRecords){if(!Array.isArray(o.logRecords))throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: array expected");r.logRecords=[];for(var u=0;u<o.logRecords.length;++u){if(typeof o.logRecords[u]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: object expected");r.logRecords[u]=d.opentelemetry.proto.logs.v1.LogRecord.fromObject(o.logRecords[u])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.logRecords=[]),r.defaults&&(u.scope=null,u.schemaUrl=""),o.scope!=null&&o.hasOwnProperty("scope")&&(u.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.toObject(o.scope,r)),o.logRecords&&o.logRecords.length){u.logRecords=[];for(var l=0;l<o.logRecords.length;++l)u.logRecords[l]=d.opentelemetry.proto.logs.v1.LogRecord.toObject(o.logRecords[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(u.schemaUrl=o.schemaUrl),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.logs.v1.ScopeLogs"},a}(),i.SeverityNumber=function(){var a={},s=Object.create(a);return s[a[0]="SEVERITY_NUMBER_UNSPECIFIED"]=0,s[a[1]="SEVERITY_NUMBER_TRACE"]=1,s[a[2]="SEVERITY_NUMBER_TRACE2"]=2,s[a[3]="SEVERITY_NUMBER_TRACE3"]=3,s[a[4]="SEVERITY_NUMBER_TRACE4"]=4,s[a[5]="SEVERITY_NUMBER_DEBUG"]=5,s[a[6]="SEVERITY_NUMBER_DEBUG2"]=6,s[a[7]="SEVERITY_NUMBER_DEBUG3"]=7,s[a[8]="SEVERITY_NUMBER_DEBUG4"]=8,s[a[9]="SEVERITY_NUMBER_INFO"]=9,s[a[10]="SEVERITY_NUMBER_INFO2"]=10,s[a[11]="SEVERITY_NUMBER_INFO3"]=11,s[a[12]="SEVERITY_NUMBER_INFO4"]=12,s[a[13]="SEVERITY_NUMBER_WARN"]=13,s[a[14]="SEVERITY_NUMBER_WARN2"]=14,s[a[15]="SEVERITY_NUMBER_WARN3"]=15,s[a[16]="SEVERITY_NUMBER_WARN4"]=16,s[a[17]="SEVERITY_NUMBER_ERROR"]=17,s[a[18]="SEVERITY_NUMBER_ERROR2"]=18,s[a[19]="SEVERITY_NUMBER_ERROR3"]=19,s[a[20]="SEVERITY_NUMBER_ERROR4"]=20,s[a[21]="SEVERITY_NUMBER_FATAL"]=21,s[a[22]="SEVERITY_NUMBER_FATAL2"]=22,s[a[23]="SEVERITY_NUMBER_FATAL3"]=23,s[a[24]="SEVERITY_NUMBER_FATAL4"]=24,s}(),i.LogRecordFlags=function(){var a={},s=Object.create(a);return s[a[0]="LOG_RECORD_FLAGS_DO_NOT_USE"]=0,s[a[255]="LOG_RECORD_FLAGS_TRACE_FLAGS_MASK"]=255,s}(),i.LogRecord=function(){function a(s){if(this.attributes=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.timeUnixNano=null,a.prototype.observedTimeUnixNano=null,a.prototype.severityNumber=null,a.prototype.severityText=null,a.prototype.body=null,a.prototype.attributes=E.emptyArray,a.prototype.droppedAttributesCount=null,a.prototype.flags=null,a.prototype.traceId=null,a.prototype.spanId=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.timeUnixNano!=null&&Object.hasOwnProperty.call(o,"timeUnixNano")&&r.uint32(9).fixed64(o.timeUnixNano),o.severityNumber!=null&&Object.hasOwnProperty.call(o,"severityNumber")&&r.uint32(16).int32(o.severityNumber),o.severityText!=null&&Object.hasOwnProperty.call(o,"severityText")&&r.uint32(26).string(o.severityText),o.body!=null&&Object.hasOwnProperty.call(o,"body")&&d.opentelemetry.proto.common.v1.AnyValue.encode(o.body,r.uint32(42).fork()).ldelim(),o.attributes!=null&&o.attributes.length)for(var u=0;u<o.attributes.length;++u)d.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[u],r.uint32(50).fork()).ldelim();return o.droppedAttributesCount!=null&&Object.hasOwnProperty.call(o,"droppedAttributesCount")&&r.uint32(56).uint32(o.droppedAttributesCount),o.flags!=null&&Object.hasOwnProperty.call(o,"flags")&&r.uint32(69).fixed32(o.flags),o.traceId!=null&&Object.hasOwnProperty.call(o,"traceId")&&r.uint32(74).bytes(o.traceId),o.spanId!=null&&Object.hasOwnProperty.call(o,"spanId")&&r.uint32(82).bytes(o.spanId),o.observedTimeUnixNano!=null&&Object.hasOwnProperty.call(o,"observedTimeUnixNano")&&r.uint32(89).fixed64(o.observedTimeUnixNano),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.logs.v1.LogRecord;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.timeUnixNano=o.fixed64();break}case 11:{l.observedTimeUnixNano=o.fixed64();break}case 2:{l.severityNumber=o.int32();break}case 3:{l.severityText=o.string();break}case 5:{l.body=d.opentelemetry.proto.common.v1.AnyValue.decode(o,o.uint32());break}case 6:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 7:{l.droppedAttributesCount=o.uint32();break}case 8:{l.flags=o.fixed32();break}case 9:{l.traceId=o.bytes();break}case 10:{l.spanId=o.bytes();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.timeUnixNano!=null&&o.hasOwnProperty("timeUnixNano")&&!E.isInteger(o.timeUnixNano)&&!(o.timeUnixNano&&E.isInteger(o.timeUnixNano.low)&&E.isInteger(o.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(o.observedTimeUnixNano!=null&&o.hasOwnProperty("observedTimeUnixNano")&&!E.isInteger(o.observedTimeUnixNano)&&!(o.observedTimeUnixNano&&E.isInteger(o.observedTimeUnixNano.low)&&E.isInteger(o.observedTimeUnixNano.high)))return"observedTimeUnixNano: integer|Long expected";if(o.severityNumber!=null&&o.hasOwnProperty("severityNumber"))switch(o.severityNumber){default:return"severityNumber: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:break}if(o.severityText!=null&&o.hasOwnProperty("severityText")&&!E.isString(o.severityText))return"severityText: string expected";if(o.body!=null&&o.hasOwnProperty("body")){var r=d.opentelemetry.proto.common.v1.AnyValue.verify(o.body);if(r)return"body."+r}if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var u=0;u<o.attributes.length;++u){var r=d.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[u]);if(r)return"attributes."+r}}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(o.droppedAttributesCount)?"droppedAttributesCount: integer expected":o.flags!=null&&o.hasOwnProperty("flags")&&!E.isInteger(o.flags)?"flags: integer expected":o.traceId!=null&&o.hasOwnProperty("traceId")&&!(o.traceId&&typeof o.traceId.length=="number"||E.isString(o.traceId))?"traceId: buffer expected":o.spanId!=null&&o.hasOwnProperty("spanId")&&!(o.spanId&&typeof o.spanId.length=="number"||E.isString(o.spanId))?"spanId: buffer expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.logs.v1.LogRecord)return o;var r=new d.opentelemetry.proto.logs.v1.LogRecord;switch(o.timeUnixNano!=null&&(E.Long?(r.timeUnixNano=E.Long.fromValue(o.timeUnixNano)).unsigned=!1:typeof o.timeUnixNano=="string"?r.timeUnixNano=parseInt(o.timeUnixNano,10):typeof o.timeUnixNano=="number"?r.timeUnixNano=o.timeUnixNano:typeof o.timeUnixNano=="object"&&(r.timeUnixNano=new E.LongBits(o.timeUnixNano.low>>>0,o.timeUnixNano.high>>>0).toNumber())),o.observedTimeUnixNano!=null&&(E.Long?(r.observedTimeUnixNano=E.Long.fromValue(o.observedTimeUnixNano)).unsigned=!1:typeof o.observedTimeUnixNano=="string"?r.observedTimeUnixNano=parseInt(o.observedTimeUnixNano,10):typeof o.observedTimeUnixNano=="number"?r.observedTimeUnixNano=o.observedTimeUnixNano:typeof o.observedTimeUnixNano=="object"&&(r.observedTimeUnixNano=new E.LongBits(o.observedTimeUnixNano.low>>>0,o.observedTimeUnixNano.high>>>0).toNumber())),o.severityNumber){default:if(typeof o.severityNumber=="number"){r.severityNumber=o.severityNumber;break}break;case"SEVERITY_NUMBER_UNSPECIFIED":case 0:r.severityNumber=0;break;case"SEVERITY_NUMBER_TRACE":case 1:r.severityNumber=1;break;case"SEVERITY_NUMBER_TRACE2":case 2:r.severityNumber=2;break;case"SEVERITY_NUMBER_TRACE3":case 3:r.severityNumber=3;break;case"SEVERITY_NUMBER_TRACE4":case 4:r.severityNumber=4;break;case"SEVERITY_NUMBER_DEBUG":case 5:r.severityNumber=5;break;case"SEVERITY_NUMBER_DEBUG2":case 6:r.severityNumber=6;break;case"SEVERITY_NUMBER_DEBUG3":case 7:r.severityNumber=7;break;case"SEVERITY_NUMBER_DEBUG4":case 8:r.severityNumber=8;break;case"SEVERITY_NUMBER_INFO":case 9:r.severityNumber=9;break;case"SEVERITY_NUMBER_INFO2":case 10:r.severityNumber=10;break;case"SEVERITY_NUMBER_INFO3":case 11:r.severityNumber=11;break;case"SEVERITY_NUMBER_INFO4":case 12:r.severityNumber=12;break;case"SEVERITY_NUMBER_WARN":case 13:r.severityNumber=13;break;case"SEVERITY_NUMBER_WARN2":case 14:r.severityNumber=14;break;case"SEVERITY_NUMBER_WARN3":case 15:r.severityNumber=15;break;case"SEVERITY_NUMBER_WARN4":case 16:r.severityNumber=16;break;case"SEVERITY_NUMBER_ERROR":case 17:r.severityNumber=17;break;case"SEVERITY_NUMBER_ERROR2":case 18:r.severityNumber=18;break;case"SEVERITY_NUMBER_ERROR3":case 19:r.severityNumber=19;break;case"SEVERITY_NUMBER_ERROR4":case 20:r.severityNumber=20;break;case"SEVERITY_NUMBER_FATAL":case 21:r.severityNumber=21;break;case"SEVERITY_NUMBER_FATAL2":case 22:r.severityNumber=22;break;case"SEVERITY_NUMBER_FATAL3":case 23:r.severityNumber=23;break;case"SEVERITY_NUMBER_FATAL4":case 24:r.severityNumber=24;break}if(o.severityText!=null&&(r.severityText=String(o.severityText)),o.body!=null){if(typeof o.body!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.body: object expected");r.body=d.opentelemetry.proto.common.v1.AnyValue.fromObject(o.body)}if(o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: array expected");r.attributes=[];for(var u=0;u<o.attributes.length;++u){if(typeof o.attributes[u]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: object expected");r.attributes[u]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[u])}}return o.droppedAttributesCount!=null&&(r.droppedAttributesCount=o.droppedAttributesCount>>>0),o.flags!=null&&(r.flags=o.flags>>>0),o.traceId!=null&&(typeof o.traceId=="string"?E.base64.decode(o.traceId,r.traceId=E.newBuffer(E.base64.length(o.traceId)),0):o.traceId.length>=0&&(r.traceId=o.traceId)),o.spanId!=null&&(typeof o.spanId=="string"?E.base64.decode(o.spanId,r.spanId=E.newBuffer(E.base64.length(o.spanId)),0):o.spanId.length>=0&&(r.spanId=o.spanId)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.attributes=[]),r.defaults){if(E.Long){var l=new E.Long(0,0,!1);u.timeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.timeUnixNano=r.longs===String?"0":0;if(u.severityNumber=r.enums===String?"SEVERITY_NUMBER_UNSPECIFIED":0,u.severityText="",u.body=null,u.droppedAttributesCount=0,u.flags=0,r.bytes===String?u.traceId="":(u.traceId=[],r.bytes!==Array&&(u.traceId=E.newBuffer(u.traceId))),r.bytes===String?u.spanId="":(u.spanId=[],r.bytes!==Array&&(u.spanId=E.newBuffer(u.spanId))),E.Long){var l=new E.Long(0,0,!1);u.observedTimeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.observedTimeUnixNano=r.longs===String?"0":0}if(o.timeUnixNano!=null&&o.hasOwnProperty("timeUnixNano")&&(typeof o.timeUnixNano=="number"?u.timeUnixNano=r.longs===String?String(o.timeUnixNano):o.timeUnixNano:u.timeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.timeUnixNano):r.longs===Number?new E.LongBits(o.timeUnixNano.low>>>0,o.timeUnixNano.high>>>0).toNumber():o.timeUnixNano),o.severityNumber!=null&&o.hasOwnProperty("severityNumber")&&(u.severityNumber=r.enums===String?d.opentelemetry.proto.logs.v1.SeverityNumber[o.severityNumber]===void 0?o.severityNumber:d.opentelemetry.proto.logs.v1.SeverityNumber[o.severityNumber]:o.severityNumber),o.severityText!=null&&o.hasOwnProperty("severityText")&&(u.severityText=o.severityText),o.body!=null&&o.hasOwnProperty("body")&&(u.body=d.opentelemetry.proto.common.v1.AnyValue.toObject(o.body,r)),o.attributes&&o.attributes.length){u.attributes=[];for(var c=0;c<o.attributes.length;++c)u.attributes[c]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[c],r)}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=o.droppedAttributesCount),o.flags!=null&&o.hasOwnProperty("flags")&&(u.flags=o.flags),o.traceId!=null&&o.hasOwnProperty("traceId")&&(u.traceId=r.bytes===String?E.base64.encode(o.traceId,0,o.traceId.length):r.bytes===Array?Array.prototype.slice.call(o.traceId):o.traceId),o.spanId!=null&&o.hasOwnProperty("spanId")&&(u.spanId=r.bytes===String?E.base64.encode(o.spanId,0,o.spanId.length):r.bytes===Array?Array.prototype.slice.call(o.spanId):o.spanId),o.observedTimeUnixNano!=null&&o.hasOwnProperty("observedTimeUnixNano")&&(typeof o.observedTimeUnixNano=="number"?u.observedTimeUnixNano=r.longs===String?String(o.observedTimeUnixNano):o.observedTimeUnixNano:u.observedTimeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.observedTimeUnixNano):r.longs===Number?new E.LongBits(o.observedTimeUnixNano.low>>>0,o.observedTimeUnixNano.high>>>0).toNumber():o.observedTimeUnixNano),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.logs.v1.LogRecord"},a}(),i}(),n}(),e}(),t}();$L.exports=d});var qr,IW,CW,wW,UW,DW,VW,WL,zL,XL,JL=m(()=>{qr=$e(KL());Iu();Cu();wu();IW=qr.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,CW=qr.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,wW=qr.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,UW=qr.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,DW=qr.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,VW=qr.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,WL={serializeRequest:function(t){var e=Fn(t);return CW.encode(e).finish()},deserializeResponse:function(t){return IW.decode(t)}},zL={serializeRequest:function(t){var e=Hn(t);return UW.encode(e).finish()},deserializeResponse:function(t){return wW.decode(t)}},XL={serializeRequest:function(t){var e=kn(t);return VW.encode(e).finish()},deserializeResponse:function(t){return DW.decode(t)}}});var QL,Uu,ZL,eI=m(()=>{Iu();Cu();wu();QL={serializeRequest:function(t){var e=kn(t,{useHex:!0,useLongBits:!1}),n=new TextEncoder;return n.encode(JSON.stringify(e))},deserializeResponse:function(t){var e=new TextDecoder;return JSON.parse(e.decode(t))}},Uu={serializeRequest:function(t){var e=Hn(t,{useLongBits:!1}),n=new TextEncoder;return n.encode(JSON.stringify(e))},deserializeResponse:function(t){var e=new TextDecoder;return JSON.parse(e.decode(t))}},ZL={serializeRequest:function(t){var e=Fn(t,{useHex:!0,useLongBits:!1}),n=new TextEncoder;return n.encode(JSON.stringify(e))},deserializeResponse:function(t){var e=new TextDecoder;return JSON.parse(e.decode(t))}}});var id={};it(id,{ESpanKind:()=>bu,JsonLogsSerializer:()=>ZL,JsonMetricsSerializer:()=>Uu,JsonTraceSerializer:()=>QL,ProtobufLogsSerializer:()=>WL,ProtobufMetricsSerializer:()=>zL,ProtobufTraceSerializer:()=>XL,createExportLogsServiceRequest:()=>Fn,createExportMetricsServiceRequest:()=>Hn,createExportTraceServiceRequest:()=>kn,encodeAsLongBits:()=>Pu,encodeAsString:()=>od,getOtlpEncoder:()=>Sr,hrTimeToNanos:()=>Ru,toLongBits:()=>nd});var Du=m(()=>{Ai();GL();Iu();Cu();wu();JL();eI()});var tI,rI=m(()=>{tI="0.54.0"});var nI,Vu,BW,GW,kW,oI=m(()=>{Wp();yi();Du();rI();nI=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Vu=function(){return Vu=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},Vu.apply(this,arguments)},BW={"User-Agent":"OTel-OTLP-Exporter-JavaScript/"+tI},GW=function(t){nI(e,t);function e(n){return t.call(this,n,Uu,Vu(Vu({},BW),{"Content-Type":"application/json"}),"METRICS","v1/metrics")||this}return e}(vi),kW=function(t){nI(e,t);function e(n){return t.call(this,new GW(n),n)||this}return e}(Kp)});var iI=m(()=>{oI()});var aI=m(()=>{iI()});var sI={};it(sI,{AggregationTemporalityPreference:()=>Un,CumulativeTemporalitySelector:()=>fu,DeltaTemporalitySelector:()=>jp,LowMemoryTemporalitySelector:()=>$p,OTLPMetricExporter:()=>kW,OTLPMetricExporterBase:()=>Kp});var uI=m(()=>{aI();qp();Wp()});var lI=h(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});Bu.createServiceClientConstructor=void 0;var HW=no();function FW(t,e){let n={export:{path:t,requestStream:!1,responseStream:!1,requestSerialize:i=>i,requestDeserialize:i=>i,responseSerialize:i=>i,responseDeserialize:i=>i}};return HW.makeGenericClientConstructor(n,e)}Bu.createServiceClientConstructor=FW});var Gu=h(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.GrpcExporterTransport=xt.createEmptyMetadata=xt.createSslCredentials=xt.createInsecureCredentials=void 0;var YW=0,qW=2;function jW(t){return t==="gzip"?qW:YW}function $W(){let{credentials:t}=no();return t.createInsecure()}xt.createInsecureCredentials=$W;function KW(t,e,n){let{credentials:i}=no();return i.createSsl(t,e,n)}xt.createSslCredentials=KW;function WW(){let{Metadata:t}=no();return new t}xt.createEmptyMetadata=WW;var ad=class{constructor(e){this._parameters=e}shutdown(){var e;(e=this._client)===null||e===void 0||e.close()}send(e,n){let i=Buffer.from(e);if(this._client==null){let{createServiceClientConstructor:a}=lI();try{this._metadata=this._parameters.metadata()}catch(o){return Promise.resolve({status:"failure",error:o})}let s=a(this._parameters.grpcPath,this._parameters.grpcName);try{this._client=new s(this._parameters.address,this._parameters.credentials(),{"grpc.default_compression_algorithm":jW(this._parameters.compression)})}catch(o){return Promise.resolve({status:"failure",error:o})}}return new Promise(a=>{let s=Date.now()+n;if(this._metadata==null)return a({error:new Error("metadata was null"),status:"failure"});this._client.export(i,this._metadata,{deadline:s},(o,r)=>{a(o?{status:"failure",error:o}:{data:r,status:"success"})})})}};xt.GrpcExporterTransport=ad});var cI=h(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});ku.VERSION=void 0;ku.VERSION="0.54.0"});var _I=h(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.getOtlpGrpcDefaultConfiguration=hr.mergeOtlpGrpcConfigurationWithDefaults=hr.validateAndNormalizeUrl=void 0;var dI=(yi(),Y(Nu)),Oi=Gu(),zW=cI(),XW=L("url"),fI=(b(),Y(Re));function EI(t){var e;t=t.trim(),t.match(/^([\w]{1,8}):\/\//)||(t=`https://${t}`);let i=new XW.URL(t);return i.protocol==="unix:"?t:(i.pathname&&i.pathname!=="/"&&fI.diag.warn("URL path should not be set when using grpc, the path part of the URL will be ignored."),i.protocol!==""&&!(!((e=i.protocol)===null||e===void 0)&&e.match(/^(http)s?:$/))&&fI.diag.warn("URL protocol should be http(s)://. Using http://."),i.host)}hr.validateAndNormalizeUrl=EI;function pI(t,e){for(let[n,i]of Object.entries(e.getMap()))t.get(n).length<1&&t.set(n,i)}function JW(t,e,n){var i,a,s,o,r;let u=(a=(i=t.url)!==null&&i!==void 0?i:e.url)!==null&&a!==void 0?a:n.url;return Object.assign(Object.assign({},(0,dI.mergeOtlpSharedConfigurationWithDefaults)(t,e,n)),{metadata:()=>{var l,c,p,_;let f=n.metadata();return pI(f,(c=(l=t.metadata)===null||l===void 0?void 0:l.call(t).clone())!==null&&c!==void 0?c:(0,Oi.createEmptyMetadata)()),pI(f,(_=(p=e.metadata)===null||p===void 0?void 0:p.call(e))!==null&&_!==void 0?_:(0,Oi.createEmptyMetadata)()),f},url:EI(u),credentials:(r=(s=t.credentials)!==null&&s!==void 0?s:(o=e.credentials)===null||o===void 0?void 0:o.call(e,u))!==null&&r!==void 0?r:n.credentials(u)})}hr.mergeOtlpGrpcConfigurationWithDefaults=JW;function QW(){return Object.assign(Object.assign({},(0,dI.getSharedConfigurationDefaults)()),{metadata:()=>{let t=(0,Oi.createEmptyMetadata)();return t.set("User-Agent",`OTel-OTLP-Exporter-JavaScript/${zW.VERSION}`),t},url:"http://localhost:4317",credentials:t=>t.startsWith("http://")?()=>(0,Oi.createInsecureCredentials)():()=>(0,Oi.createSslCredentials)()})}hr.getOtlpGrpcDefaultConfiguration=QW});var mI=h(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.getOtlpGrpcConfigurationFromEnv=void 0;var SI=(K(),Y(Us)),gi=Gu(),ZW=(yi(),Y(Nu)),ez=L("fs"),tz=L("path"),TI=(b(),Y(Re));function sd(t,e){if(t!=null&&t!=="")return t;if(e!=null&&e!=="")return e}function rz(t){var e,n;let i=(e=process.env[`OTEL_EXPORTER_OTLP_${t}_HEADERS`])===null||e===void 0?void 0:e.trim(),a=(n=process.env.OTEL_EXPORTER_OTLP_HEADERS)===null||n===void 0?void 0:n.trim(),s=SI.baggageUtils.parseKeyPairsIntoRecord(i),o=SI.baggageUtils.parseKeyPairsIntoRecord(a);if(Object.keys(s).length===0&&Object.keys(o).length===0)return;let r=Object.assign({},o,s),u=(0,gi.createEmptyMetadata)();for(let[l,c]of Object.entries(r))u.set(l,c);return u}function nz(t){let e=rz(t);if(e!=null)return()=>e}function oz(t){var e,n;let i=(e=process.env[`OTEL_EXPORTER_OTLP_${t}_ENDPOINT`])===null||e===void 0?void 0:e.trim(),a=(n=process.env.OTEL_EXPORTER_OTLP_ENDPOINT)===null||n===void 0?void 0:n.trim();return sd(i,a)}function iz(t){var e,n;let i=(e=process.env[`OTEL_EXPORTER_OTLP_${t}_INSECURE`])===null||e===void 0?void 0:e.toLowerCase().trim(),a=(n=process.env.OTEL_EXPORTER_OTLP_INSECURE)===null||n===void 0?void 0:n.toLowerCase().trim();return sd(i,a)==="true"}function ud(t,e,n){var i,a;let s=(i=process.env[t])===null||i===void 0?void 0:i.trim(),o=(a=process.env[e])===null||a===void 0?void 0:a.trim(),r=sd(s,o);if(r!=null)try{return ez.readFileSync(tz.resolve(process.cwd(),r))}catch{TI.diag.warn(n);return}else return}function az(t){return ud(`OTEL_EXPORTER_OTLP_${t}_CLIENT_CERTIFICATE`,"OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE","Failed to read client certificate chain file")}function sz(t){return ud(`OTEL_EXPORTER_OTLP_${t}_CLIENT_KEY`,"OTEL_EXPORTER_OTLP_CLIENT_KEY","Failed to read client certificate private key file")}function hI(t){return ud(`OTEL_EXPORTER_OTLP_${t}_CERTIFICATE`,"OTEL_EXPORTER_OTLP_CERTIFICATE","Failed to read root certificate file")}function vI(t){let e=sz(t),n=az(t),i=hI(t),a=e!=null&&n!=null;return i!=null&&!a?(TI.diag.warn("Client key and certificate must both be provided, but one was missing - attempting to create credentials from just the root certificate"),(0,gi.createSslCredentials)(hI(t))):(0,gi.createSslCredentials)(i,e,n)}function uz(t){return iz(t)?(0,gi.createInsecureCredentials)():vI(t)}function lz(t){return Object.assign(Object.assign({},(0,ZW.getSharedConfigurationFromEnvironment)(t)),{metadata:nz(t),url:oz(t),credentials:e=>e.startsWith("http://")?()=>(0,gi.createInsecureCredentials)():e.startsWith("https://")?()=>vI(t):()=>uz(t)})}Hu.getOtlpGrpcConfigurationFromEnv=lz});var gI=h(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});Fu.OTLPGRPCExporterNodeBase=void 0;var yI=(b(),Y(Re)),ld=(yi(),Y(Nu)),AI=Gu(),OI=_I(),cz=mI(),cd=class extends ld.OTLPExporterBase{constructor(e={},n,i,a,s){super(e);let o=e.credentials,r=(0,OI.mergeOtlpGrpcConfigurationWithDefaults)({url:e.url,metadata:()=>{var u;return(u=e.metadata)!==null&&u!==void 0?u:(0,AI.createEmptyMetadata)()},compression:e.compression,timeoutMillis:e.timeoutMillis,concurrencyLimit:e.concurrencyLimit,credentials:o!=null?()=>o:void 0},(0,cz.getOtlpGrpcConfigurationFromEnv)(s),(0,OI.getOtlpGrpcDefaultConfiguration)());this._serializer=n,this._timeoutMillis=r.timeoutMillis,this._concurrencyLimit=r.concurrencyLimit,e.headers&&yI.diag.warn("Headers cannot be set when using grpc"),this._transport=new AI.GrpcExporterTransport({address:r.url,compression:r.compression,credentials:r.credentials,grpcName:i,grpcPath:a,metadata:r.metadata})}onShutdown(){this._transport.shutdown()}send(e,n,i){if(this._shutdownOnce.isCalled){yI.diag.debug("Shutdown already started. Cannot send objects");return}let a=this._serializer.serializeRequest(e);if(a==null){i(new Error("Could not serialize message"));return}let s=this._transport.send(a,this._timeoutMillis).then(r=>{r.status==="success"?n():r.status==="failure"&&r.error?i(r.error):r.status==="retryable"?i(new ld.OTLPExporterError("Export failed with retryable status")):i(new ld.OTLPExporterError("Export failed with unknown error"))},i);this._sendingPromises.push(s);let o=()=>{let r=this._sendingPromises.indexOf(s);this._sendingPromises.splice(r,1)};s.then(o,o)}};Fu.OTLPGRPCExporterNodeBase=cd});var fd=h(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.OTLPGRPCExporterNodeBase=void 0;var fz=gI();Object.defineProperty(Yu,"OTLPGRPCExporterNodeBase",{enumerable:!0,get:function(){return fz.OTLPGRPCExporterNodeBase}})});var NI=h(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.OTLPMetricExporter=void 0;var pz=(uI(),Y(sI)),dz=fd(),Ez=(Du(),Y(id)),pd=class extends dz.OTLPGRPCExporterNodeBase{constructor(e){super(e,Ez.ProtobufMetricsSerializer,"MetricsExportService","/opentelemetry.proto.collector.metrics.v1.MetricsService/Export","METRICS")}},dd=class extends pz.OTLPMetricExporterBase{constructor(e){super(new pd(e),e)}};qu.OTLPMetricExporter=dd});var RI=h(jr=>{"use strict";var _z=jr&&jr.__createBinding||(Object.create?function(t,e,n,i){i===void 0&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]}),Sz=jr&&jr.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&_z(e,t,n)};Object.defineProperty(jr,"__esModule",{value:!0});Sz(NI(),jr)});var hd=h(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.PrometheusSerializer=void 0;var hz=(b(),Y(Re)),$r=(wn(),Y(Yp)),PI=(K(),Y(Us));function $u(t){return t.replace(/\\/g,"\\\\").replace(/\n/g,"\\n")}function bI(t=""){return typeof t!="string"&&(t=JSON.stringify(t)),$u(t).replace(/"/g,'\\"')}var Tz=/[^a-z0-9_]/gi,vz=/_{2,}/g;function _d(t){return t.replace(Tz,"_").replace(vz,"_")}function Ed(t,e){return!t.endsWith("_total")&&e===$r.InstrumentType.COUNTER&&(t=t+"_total"),t}function mz(t){return Number.isNaN(t)?"NaN":Number.isFinite(t)?`${t}`:t<0?"-Inf":"+Inf"}function yz(t){switch(t.dataPointType){case $r.DataPointType.SUM:return t.isMonotonic?"counter":"gauge";case $r.DataPointType.GAUGE:return"gauge";case $r.DataPointType.HISTOGRAM:return"histogram";default:return"untyped"}}function ju(t,e,n,i,a){let s=!1,o="";for(let[r,u]of Object.entries(e)){let l=_d(r);s=!0,o+=`${o.length>0?",":""}${l}="${bI(u)}"`}if(a)for(let[r,u]of Object.entries(a)){let l=_d(r);s=!0,o+=`${o.length>0?",":""}${l}="${bI(u)}"`}return s&&(t+=`{${o}}`),`${t} ${mz(n)}${i!==void 0?" "+String(i):""}
|
52
|
-
`}var
|
53
|
-
`;return n}_serializeMetricData(e){let n=
|
54
|
-
# UNIT ${n} ${
|
50
|
+
`,Bp(l,e),`To resolve the conflict:
|
51
|
+
`,Gp(l,e))}}catch(c){i={error:c}}finally{try{r&&!r.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}return s},t}()});var Fx,Yx=m(()=>{Fx=function(){function t(e){this._backingStorages=e}return t.prototype.record=function(e,n,i,a){this._backingStorages.forEach(function(s){s.record(e,n,i,a)})},t}()});var qx,jx,$x=m(()=>{b();hi();iu();qx=function(){function t(e,n){this._instrumentName=e,this._valueType=n,this._buffer=new pt}return t.prototype.observe=function(e,n){if(n===void 0&&(n={}),typeof e!="number"){g.warn("non-number value provided to metric "+this._instrumentName+": "+e);return}this._valueType===Et.INT&&!Number.isInteger(e)&&(g.warn("INT value type cannot accept a floating-point value for "+this._instrumentName+", ignoring the fractional digits."),e=Math.trunc(e),!Number.isInteger(e))||this._buffer.set(n,e)},t}(),jx=function(){function t(){this._buffer=new Map}return t.prototype.observe=function(e,n,i){if(i===void 0&&(i={}),!!Si(e)){var a=this._buffer.get(e);if(a==null&&(a=new pt,this._buffer.set(e,a)),typeof n!="number"){g.warn("non-number value provided to metric "+e._descriptor.name+": "+n);return}e._descriptor.valueType===Et.INT&&!Number.isInteger(n)&&(g.warn("INT value type cannot accept a floating-point value for "+e._descriptor.name+", ignoring the fractional digits."),n=Math.trunc(n),!Number.isInteger(n))||a.set(i,n)}},t}()});var Hp,Fp,Kx,Wx,zx,Xx=m(()=>{b();iu();$x();Rt();Hp=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},Fp=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},Kx=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Wx=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},zx=function(){function t(){this._callbacks=[],this._batchCallbacks=[]}return t.prototype.addCallback=function(e,n){var i=this._findCallback(e,n);i>=0||this._callbacks.push({callback:e,instrument:n})},t.prototype.removeCallback=function(e,n){var i=this._findCallback(e,n);i<0||this._callbacks.splice(i,1)},t.prototype.addBatchCallback=function(e,n){var i=new Set(n.filter(Si));if(i.size===0){g.error("BatchObservableCallback is not associated with valid instruments",n);return}var a=this._findBatchCallback(e,i);a>=0||this._batchCallbacks.push({callback:e,instruments:i})},t.prototype.removeBatchCallback=function(e,n){var i=new Set(n.filter(Si)),a=this._findBatchCallback(e,i);a<0||this._batchCallbacks.splice(a,1)},t.prototype.observe=function(e,n){return Hp(this,void 0,void 0,function(){var i,a,s,o;return Fp(this,function(r){switch(r.label){case 0:return i=this._observeCallbacks(e,n),a=this._observeBatchCallbacks(e,n),[4,kM(Wx(Wx([],Kx(i),!1),Kx(a),!1))];case 1:return s=r.sent(),o=s.filter(HM).map(function(u){return u.reason}),[2,o]}})})},t.prototype._observeCallbacks=function(e,n){var i=this;return this._callbacks.map(function(a){var s=a.callback,o=a.instrument;return Hp(i,void 0,void 0,function(){var r,u;return Fp(this,function(l){switch(l.label){case 0:return r=new qx(o._descriptor.name,o._descriptor.valueType),u=Promise.resolve(s(r)),n!=null&&(u=Er(u,n)),[4,u];case 1:return l.sent(),o._metricStorages.forEach(function(c){c.record(r._buffer,e)}),[2]}})})})},t.prototype._observeBatchCallbacks=function(e,n){var i=this;return this._batchCallbacks.map(function(a){var s=a.callback,o=a.instruments;return Hp(i,void 0,void 0,function(){var r,u;return Fp(this,function(l){switch(l.label){case 0:return r=new jx,u=Promise.resolve(s(r)),n!=null&&(u=Er(u,n)),[4,u];case 1:return l.sent(),o.forEach(function(c){var p=r._buffer.get(c);p!=null&&c._metricStorages.forEach(function(_){_.record(p,e)})}),[2]}})})})},t.prototype._findCallback=function(e,n){return this._callbacks.findIndex(function(i){return i.callback===e&&i.instrument===n})},t.prototype._findBatchCallback=function(e,n){return this._batchCallbacks.findIndex(function(i){return i.callback===e&&FM(i.instruments,n)})},t}()});var v8,Jx,Qx=m(()=>{wp();Up();Vp();v8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Jx=function(t){v8(e,t);function e(n,i,a,s){var o=t.call(this,n)||this;return o._attributesProcessor=a,o._deltaMetricStorage=new su(i),o._temporalMetricStorage=new uu(i,s),o}return e.prototype.record=function(n,i,a,s){i=this._attributesProcessor.process(i,a),this._deltaMetricStorage.record(n,i,a,s)},e.prototype.collect=function(n,i){var a=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(n,this._instrumentDescriptor,a,i)},e}(au)});var Zx,In,m8,eL,y8,Yp=m(()=>{Zx=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),In=function(){function t(){}return t.Noop=function(){return y8},t}(),m8=function(t){Zx(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.process=function(n,i){return n},e}(In),eL=function(t){Zx(e,t);function e(n){var i=t.call(this)||this;return i._allowedAttributeNames=n,i}return e.prototype.process=function(n,i){var a=this,s={};return Object.keys(n).filter(function(o){return a._allowedAttributeNames.includes(o)}).forEach(function(o){return s[o]=n[o]}),s},e}(In),y8=new m8});var A8,O8,g8,tL,rL=m(()=>{Gt();wx();Rt();Bx();Hx();Yx();Xx();Qx();Yp();A8=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},O8=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},g8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},tL=function(){function t(e,n){this._meterProviderSharedState=e,this._instrumentationScope=n,this.metricStorageRegistry=new kx,this.observableRegistry=new zx,this.meter=new Cx(this)}return t.prototype.registerMetricStorage=function(e){var n=this._registerMetricStorage(e,Jx);return n.length===1?n[0]:new Fx(n)},t.prototype.registerAsyncMetricStorage=function(e){var n=this._registerMetricStorage(e,Vx);return n},t.prototype.collect=function(e,n,i){return A8(this,void 0,void 0,function(){var a,s,o;return O8(this,function(r){switch(r.label){case 0:return[4,this.observableRegistry.observe(n,i?.timeoutMillis)];case 1:return a=r.sent(),s=this.metricStorageRegistry.getStorages(e),s.length===0?[2,null]:(o=s.map(function(u){return u.collect(e,n)}).filter(VM),o.length===0?[2,{errors:a}]:[2,{scopeMetrics:{scope:this._instrumentationScope,metrics:o},errors:a}])}})})},t.prototype._registerMetricStorage=function(e,n){var i=this,a=this._meterProviderSharedState.viewRegistry.findViews(e,this._instrumentationScope),s=a.map(function(u){var l=$M(u,e),c=i.metricStorageRegistry.findOrUpdateCompatibleStorage(l);if(c!=null)return c;var p=u.aggregation.createAggregator(l),_=new n(l,p,u.attributesProcessor,i._meterProviderSharedState.metricCollectors);return i.metricStorageRegistry.register(_),_});if(s.length===0){var o=this._meterProviderSharedState.selectAggregations(e.type),r=o.map(function(u){var l=g8(u,2),c=l[0],p=l[1],_=i.metricStorageRegistry.findOrUpdateCompatibleCollectorStorage(c,e);if(_!=null)return _;var f=p.createAggregator(e),S=new n(e,f,In.Noop(),[c]);return i.metricStorageRegistry.registerForCollector(c,S),S});s=s.concat(r)}return s},t}()});var N8,nL,oL=m(()=>{Rt();Nx();rL();N8=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},nL=function(){function t(e){this.resource=e,this.viewRegistry=new gx,this.metricCollectors=[],this.meterSharedStates=new Map}return t.prototype.getMeterSharedState=function(e){var n=GM(e),i=this.meterSharedStates.get(n);return i==null&&(i=new tL(this,e),this.meterSharedStates.set(n,i)),i},t.prototype.selectAggregations=function(e){var n,i,a=[];try{for(var s=N8(this.metricCollectors),o=s.next();!o.done;o=s.next()){var r=o.value;a.push([r,r.selectAggregation(e)])}}catch(u){n={error:u}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return a},t}()});var lu,cu,R8,P8,iL,aL=m(()=>{K();lu=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},cu=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},R8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},P8=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},iL=function(){function t(e,n){this._sharedState=e,this._metricReader=n}return t.prototype.collect=function(e){return lu(this,void 0,void 0,function(){var n,i,a,s,o=this;return cu(this,function(r){switch(r.label){case 0:return n=Oe(Date.now()),i=[],a=[],s=Array.from(this._sharedState.meterSharedStates.values()).map(function(u){return lu(o,void 0,void 0,function(){var l;return cu(this,function(c){switch(c.label){case 0:return[4,u.collect(this,n,e)];case 1:return l=c.sent(),l?.scopeMetrics!=null&&i.push(l.scopeMetrics),l?.errors!=null&&a.push.apply(a,P8([],R8(l.errors),!1)),[2]}})})}),[4,Promise.all(s)];case 1:return r.sent(),[2,{resourceMetrics:{resource:this._sharedState.resource,scopeMetrics:i},errors:a}]}})})},t.prototype.forceFlush=function(e){return lu(this,void 0,void 0,function(){return cu(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 lu(this,void 0,void 0,function(){return cu(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 sL,uL,lL,Ti,cL=m(()=>{b();ks();oL();aL();sL=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},uL=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},lL=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Ti=function(){function t(e){var n,i,a,s,o;this._shutdown=!1;var r=Bt.default().merge((o=e?.resource)!==null&&o!==void 0?o:Bt.empty());if(this._sharedState=new nL(r),e?.views!=null&&e.views.length>0)try{for(var u=lL(e.views),l=u.next();!l.done;l=u.next()){var c=l.value;this._sharedState.viewRegistry.addView(c)}}catch(S){n={error:S}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}if(e?.readers!=null&&e.readers.length>0)try{for(var p=lL(e.readers),_=p.next();!_.done;_=p.next()){var f=_.value;this.addMetricReader(f)}}catch(S){a={error:S}}finally{try{_&&!_.done&&(s=p.return)&&s.call(p)}finally{if(a)throw a.error}}}return t.prototype.getMeter=function(e,n,i){return n===void 0&&(n=""),i===void 0&&(i={}),this._shutdown?(g.warn("A shutdown MeterProvider cannot provide a Meter"),sE()):this._sharedState.getMeterSharedState({name:e,version:n,schemaUrl:i.schemaUrl}).meter},t.prototype.addMetricReader=function(e){var n=new iL(this._sharedState,e);e.setMetricProducer(n),this._sharedState.metricCollectors.push(n)},t.prototype.shutdown=function(e){return sL(this,void 0,void 0,function(){return uL(this,function(n){switch(n.label){case 0:return this._shutdown?(g.warn("shutdown may only be called once per MeterProvider"),[2]):(this._shutdown=!0,[4,Promise.all(this._sharedState.metricCollectors.map(function(i){return i.shutdown(e)}))]);case 1:return n.sent(),[2]}})})},t.prototype.forceFlush=function(e){return sL(this,void 0,void 0,function(){return uL(this,function(n){switch(n.label){case 0:return this._shutdown?(g.warn("invalid attempt to force flush after MeterProvider shutdown"),[2]):[4,Promise.all(this._sharedState.metricCollectors.map(function(i){return i.forceFlush(e)}))];case 1:return n.sent(),[2]}})})},t}()});var b8,fu,Cn,pu=m(()=>{b8=/[\^$\\.+?()[\]{}|]/g,fu=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(b8,"\\$&").replace("*",".*")+"$"},t.hasWildcard=function(e){return e.includes("*")},t}(),Cn=function(){function t(e){this._matchAll=e===void 0,this._pattern=e}return t.prototype.match=function(e){return!!(this._matchAll||e===this._pattern)},t}()});var fL,pL=m(()=>{pu();fL=function(){function t(e){var n;this._nameFilter=new fu((n=e?.name)!==null&&n!==void 0?n:"*"),this._type=e?.type,this._unitFilter=new Cn(e?.unit)}return t.prototype.getType=function(){return this._type},t.prototype.getNameFilter=function(){return this._nameFilter},t.prototype.getUnitFilter=function(){return this._unitFilter},t}()});var dL,EL=m(()=>{pu();dL=function(){function t(e){this._nameFilter=new Cn(e?.name),this._versionFilter=new Cn(e?.version),this._schemaUrlFilter=new Cn(e?.schemaUrl)}return t.prototype.getNameFilter=function(){return this._nameFilter},t.prototype.getVersionFilter=function(){return this._versionFilter},t.prototype.getSchemaUrlFilter=function(){return this._schemaUrlFilter},t}()});function M8(t){return t.instrumentName==null&&t.instrumentType==null&&t.instrumentUnit==null&&t.meterName==null&&t.meterVersion==null&&t.meterSchemaUrl==null}var _L,SL=m(()=>{pu();Yp();pL();EL();Zs();_L=function(){function t(e){var n;if(M8(e))throw new Error("Cannot create view with no selector arguments supplied");if(e.name!=null&&(e?.instrumentName==null||fu.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 eL(e.attributeKeys):this.attributesProcessor=In.Noop(),this.name=e.name,this.description=e.description,this.aggregation=(n=e.aggregation)!==null&&n!==void 0?n:De.Default(),this.instrumentSelector=new fL({name:e.instrumentName,type:e.instrumentType,unit:e.instrumentUnit}),this.meterSelector=new dL({name:e.meterName,version:e.meterVersion,schemaUrl:e.meterSchemaUrl})}return t}()});var qp={};it(qp,{Aggregation:()=>De,AggregationTemporality:()=>ge,ConsoleMetricExporter:()=>Ax,DataPointType:()=>Ne,DefaultAggregation:()=>Mp,DropAggregation:()=>Op,ExplicitBucketHistogramAggregation:()=>Pp,ExponentialHistogramAggregation:()=>bp,HistogramAggregation:()=>Rp,InMemoryMetricExporter:()=>vx,InstrumentType:()=>C,LastValueAggregation:()=>Np,MeterProvider:()=>Ti,MetricReader:()=>tu,PeriodicExportingMetricReader:()=>ru,SumAggregation:()=>gp,TimeoutError:()=>fi,View:()=>_L});var wn=m(()=>{Hs();Mn();Cp();Tx();mx();Ox();Gt();cL();Zs();SL();Rt()});var Un,jp=m(()=>{(function(t){t[t.DELTA=0]="DELTA",t[t.CUMULATIVE=1]="CUMULATIVE",t[t.LOWMEMORY=2]="LOWMEMORY"})(Un||(Un={}))});function I8(){var t=Ae(),e=t.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE.trim().toLowerCase();return e==="cumulative"?du:e==="delta"?$p:e==="lowmemory"?Kp:(g.warn("OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE is set to '"+t.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE+"', but only 'cumulative' and 'delta' are allowed. Using default ('cumulative') instead."),du)}function C8(t){return t!=null?t===Un.DELTA?$p:t===Un.LOWMEMORY?Kp:du:I8()}function w8(t){return t?.aggregationPreference?t.aggregationPreference:function(e){return De.Default()}}var x8,L8,du,$p,Kp,Wp,zp=m(()=>{K();wn();jp();b();x8=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},L8=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},du=function(){return ge.CUMULATIVE},$p=function(t){switch(t){case C.COUNTER:case C.OBSERVABLE_COUNTER:case C.GAUGE:case C.HISTOGRAM:case C.OBSERVABLE_GAUGE:return ge.DELTA;case C.UP_DOWN_COUNTER:case C.OBSERVABLE_UP_DOWN_COUNTER:return ge.CUMULATIVE}},Kp=function(t){switch(t){case C.COUNTER:case C.HISTOGRAM:return ge.DELTA;case C.GAUGE:case C.UP_DOWN_COUNTER:case C.OBSERVABLE_UP_DOWN_COUNTER:case C.OBSERVABLE_COUNTER:case C.OBSERVABLE_GAUGE:return ge.CUMULATIVE}};Wp=function(){function t(e,n){this._otlpExporter=e,this._aggregationSelector=w8(n),this._aggregationTemporalitySelector=C8(n?.temporalityPreference)}return t.prototype.export=function(e,n){this._otlpExporter.export([e],n)},t.prototype.shutdown=function(){return x8(this,void 0,void 0,function(){return L8(this,function(e){switch(e.label){case 0:return[4,this._otlpExporter.shutdown()];case 1:return e.sent(),[2]}})})},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype.selectAggregation=function(e){return this._aggregationSelector(e)},t.prototype.selectAggregationTemporality=function(e){return this._aggregationTemporalitySelector(e)},t}()});var Dn,Eu=m(()=>{b();K();Dn=function(){function t(e){e===void 0&&(e={}),this._sendingPromises=[],this.shutdown=this.shutdown.bind(this),this._shutdownOnce=new pr(this._shutdown,this),this._concurrencyLimit=typeof e.concurrencyLimit=="number"?e.concurrencyLimit:30}return t.prototype.export=function(e,n){if(this._shutdownOnce.isCalled){n({code:ee.FAILED,error:new Error("Exporter has been shutdown")});return}if(this._sendingPromises.length>=this._concurrencyLimit){n({code:ee.FAILED,error:new Error("Concurrent export limit reached")});return}this._export(e).then(function(){n({code:ee.SUCCESS})}).catch(function(i){n({code:ee.FAILED,error:i})})},t.prototype._export=function(e){var n=this;return new Promise(function(i,a){try{g.debug("items to be sent",e),n.send(e,i,a)}catch(s){a(s)}})},t.prototype.shutdown=function(){return this._shutdownOnce.call()},t.prototype.forceFlush=function(){return Promise.all(this._sendingPromises).then(function(){})},t.prototype._shutdown=function(){return g.debug("shutdown started"),this.onShutdown(),this.forceFlush()},t}()});function _u(t){var e=[429,502,503,504];return e.includes(t)}function Su(t){if(t!=null){var e=Number.parseInt(t,10);if(Number.isInteger(e))return e>0?e*1e3:-1;var n=new Date(t).getTime()-Date.now();return n>=0?n:0}}var Xp=m(()=>{});var U8,bt,vi=m(()=>{U8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),bt=function(t){U8(e,t);function e(n,i,a){var s=t.call(this,n)||this;return s.name="OTLPExporterError",s.data=a,s.code=i,s}return e}(Error)});var TL={};it(TL,{createHttpAgent:()=>k8,sendWithHttp:()=>V8});import*as hu from"http";import*as Tu from"https";import*as hL from"zlib";import{Readable as D8}from"stream";function V8(t,e,n,i,a){var s=new URL(t.url),o=Number(process.versions.node.split(".")[0]),r={hostname:s.hostname,port:s.port,path:s.pathname,method:"POST",headers:Jp({},t.headers),agent:e},u=s.protocol==="http:"?hu.request:Tu.request,l=u(r,function(p){var _=[];p.on("data",function(f){return _.push(f)}),p.on("end",function(){if(p.statusCode&&p.statusCode<299)i({status:"success",data:Buffer.concat(_)});else if(p.statusCode&&_u(p.statusCode))i({status:"retryable",retryInMillis:Su(p.headers["retry-after"])});else{var f=new bt(p.statusMessage,p.statusCode);i({status:"failure",error:f})}})});l.setTimeout(a,function(){l.destroy(),i({status:"failure",error:new Error("Request Timeout")})}),l.on("error",function(p){i({status:"failure",error:p})});var c=o>=14?"close":"abort";l.on(c,function(){i({status:"failure",error:new Error("Request timed out")})}),B8(l,t.compression,n,function(p){i({status:"failure",error:p})})}function B8(t,e,n,i){var a=G8(n);e==="gzip"&&(t.setHeader("Content-Encoding","gzip"),a=a.on("error",i).pipe(hL.createGzip()).on("error",i)),a.pipe(t)}function G8(t){var e=new D8;return e.push(t),e.push(null),e}function k8(t,e){var n=new URL(t),i=n.protocol==="http:"?hu.Agent:Tu.Agent;return new i(e)}var Jp,vL=m(()=>{Xp();vi();Jp=function(){return Jp=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},Jp.apply(this,arguments)}});function mL(t){return new Y8(t)}var H8,F8,Y8,yL=m(()=>{H8=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},F8=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},Y8=function(){function t(e){this._parameters=e,this._send=null,this._agent=null}return t.prototype.send=function(e,n){return H8(this,void 0,void 0,function(){var i,a,s,o=this;return F8(this,function(r){return this._send==null&&(i=(vL(),Y(TL)),a=i.sendWithHttp,s=i.createHttpAgent,this._agent=s(this._parameters.url,this._parameters.agentOptions),this._send=a),[2,new Promise(function(u){var l;(l=o._send)===null||l===void 0||l.call(o,o._parameters,o._agent,e,function(c){u(c)},n)})]})})},t.prototype.shutdown=function(){},t}()});function X8(){return Math.random()*(2*AL)-AL}function vu(t){return new J8(t.transport)}var q8,j8,$8,K8,W8,z8,AL,J8,Qp=m(()=>{q8=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},j8=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},$8=5,K8=1e3,W8=5e3,z8=1.5,AL=.2;J8=function(){function t(e){this._transport=e}return t.prototype.retry=function(e,n,i){var a=this;return new Promise(function(s,o){setTimeout(function(){a._transport.send(e,n).then(s,o)},i)})},t.prototype.send=function(e,n){var i;return q8(this,void 0,void 0,function(){var a,s,o,r,u,l,c;return j8(this,function(p){switch(p.label){case 0:return a=Date.now()+n,[4,this._transport.send(e,n)];case 1:s=p.sent(),o=$8,r=K8,p.label=2;case 2:return s.status==="retryable"&&o>0?(o--,u=Math.max(Math.min(r,W8)+X8(),0),r=r*z8,l=(i=s.retryInMillis)!==null&&i!==void 0?i:u,c=a-Date.now(),l>c?[2,s]:[4,this.retry(e,c,l)]):[3,4];case 3:return s=p.sent(),[3,2];case 4:return[2,s]}})})},t.prototype.shutdown=function(){return this._transport.shutdown()},t}()});function OL(t){var e;return t?.keepAlive!=null&&(t.httpAgentOptions!=null?t.httpAgentOptions.keepAlive==null&&(t.httpAgentOptions.keepAlive=t.keepAlive):t.httpAgentOptions={keepAlive:t.keepAlive}),(e=t.httpAgentOptions)!==null&&e!==void 0?e:{keepAlive:!0}}var gL=m(()=>{});function Q8(t){if(!Number.isNaN(t)&&Number.isFinite(t)&&t>0)return t;throw new Error("Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '"+t+"')")}function mu(t,e,n){var i,a,s,o,r,u;return{timeoutMillis:Q8((a=(i=t.timeoutMillis)!==null&&i!==void 0?i:e.timeoutMillis)!==null&&a!==void 0?a:n.timeoutMillis),concurrencyLimit:(o=(s=t.concurrencyLimit)!==null&&s!==void 0?s:e.concurrencyLimit)!==null&&o!==void 0?o:n.concurrencyLimit,compression:(u=(r=t.compression)!==null&&r!==void 0?r:e.compression)!==null&&u!==void 0?u:n.compression}}function yu(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}var Zp=m(()=>{});function Au(t){t===void 0&&(t={});var e={};return Object.entries(t).forEach(function(n){var i=Z8(n,2),a=i[0],s=i[1];typeof s<"u"?e[a]=String(s):g.warn('Header "'+a+'" has invalid value ('+s+") and will be ignored")}),e}var Z8,ed=m(()=>{b();Z8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}});function eW(t,e,n){var i=Yr({},n),a={};return e!=null&&Object.assign(a,e),t!=null&&Object.assign(a,t),Object.assign(a,i)}function tW(t){if(t!=null)try{return new URL(t),t}catch{throw new Error("Configuration: Could not parse user-provided export URL: '"+t+"'")}}function Ou(t,e,n){var i,a;return Yr(Yr({},mu(t,e,n)),{headers:eW(Au(t.headers),e.headers,n.headers),url:(a=(i=tW(t.url))!==null&&i!==void 0?i:e.url)!==null&&a!==void 0?a:n.url})}function gu(t,e){return Yr(Yr({},yu()),{headers:t,url:"http://localhost:4318/"+e})}var Yr,td=m(()=>{Zp();ed();Yr=function(){return Yr=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},Yr.apply(this,arguments)}});function NL(t){var e,n=(e=process.env[t])===null||e===void 0?void 0:e.trim();if(n!=null&&n!==""){var i=Number(n);if(!Number.isNaN(i)&&Number.isFinite(i)&&i>0)return i;g.warn("Configuration: "+t+" is invalid, expected number greater than 0 (actual: "+n+")")}}function rW(t){var e=NL("OTEL_EXPORTER_OTLP_"+t+"_TIMEOUT"),n=NL("OTEL_EXPORTER_OTLP_TIMEOUT");return e??n}function RL(t){var e,n=(e=process.env[t])===null||e===void 0?void 0:e.trim();if(n!==""){if(n==null||n==="none"||n==="gzip")return n;g.warn("Configuration: "+t+" is invalid, expected 'none' or 'gzip' (actual: '"+n+"')")}}function nW(t){var e=RL("OTEL_EXPORTER_OTLP_"+t+"_COMPRESSION"),n=RL("OTEL_EXPORTER_OTLP_COMPRESSION");return e??n}function Nu(t){return{timeoutMillis:rW(t),compression:nW(t)}}var rd=m(()=>{b()});function oW(t){var e,n,i=(e=process.env["OTEL_EXPORTER_OTLP_"+t+"_HEADERS"])===null||e===void 0?void 0:e.trim(),a=(n=process.env.OTEL_EXPORTER_OTLP_HEADERS)===null||n===void 0?void 0:n.trim(),s=bn.parseKeyPairsIntoRecord(i),o=bn.parseKeyPairsIntoRecord(a);if(!(Object.keys(s).length===0&&Object.keys(o).length===0))return Object.assign({},bn.parseKeyPairsIntoRecord(a),bn.parseKeyPairsIntoRecord(i))}function iW(t){try{var e=new URL(t);return e.toString()}catch{g.warn("Configuration: Could not parse environment-provided export URL: '"+t+"', falling back to undefined");return}}function aW(t,e){try{new URL(t)}catch{g.warn("Configuration: Could not parse environment-provided export URL: '"+t+"', falling back to undefined");return}t.endsWith("/")||(t=t+"/"),t+=e;try{new URL(t)}catch{g.warn("Configuration: Provided URL appended with '"+e+"' is not a valid URL, using 'undefined' instead of '"+t+"'");return}return t}function sW(t){var e,n=(e=process.env.OTEL_EXPORTER_OTLP_ENDPOINT)===null||e===void 0?void 0:e.trim();if(!(n==null||n===""))return aW(n,t)}function uW(t){var e,n=(e=process.env["OTEL_EXPORTER_OTLP_"+t+"_ENDPOINT"])===null||e===void 0?void 0:e.trim();if(!(n==null||n===""))return iW(n)}function PL(t,e){var n;return Ru(Ru({},Nu(t)),{url:(n=uW(t))!==null&&n!==void 0?n:sW(e),headers:oW(t)})}var Ru,bL=m(()=>{K();b();rd();Ru=function(){return Ru=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},Ru.apply(this,arguments)}});var lW,mi,ML=m(()=>{Eu();b();yL();vi();Qp();gL();td();bL();lW=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),mi=function(t){lW(e,t);function e(n,i,a,s,o){n===void 0&&(n={});var r=t.call(this,n)||this,u=Ou({url:n.url,headers:n.headers,concurrencyLimit:n.concurrencyLimit,timeoutMillis:n.timeoutMillis,compression:n.compression},PL(s,o),gu(a,o));return r._timeoutMillis=u.timeoutMillis,r._concurrencyLimit=u.concurrencyLimit,n.metadata&&g.warn("Metadata cannot be set when using http"),r._serializer=i,r._transport=vu({transport:mL({agentOptions:OL(n),compression:u.compression,headers:u.headers,url:u.url})}),r}return e.prototype.send=function(n,i,a){var s=this;if(this._shutdownOnce.isCalled){g.debug("Shutdown already started. Cannot send objects");return}var o=this._serializer.serializeRequest(n);if(o==null){a(new Error("Could not serialize message"));return}var r=this._transport.send(o,this._timeoutMillis).then(function(l){l.status==="success"?i():l.status==="failure"&&l.error?a(l.error):l.status==="retryable"?a(new bt("Export failed with retryable status")):a(new bt("Export failed with unknown error"))},a);this._sendingPromises.push(r);var u=function(){var l=s._sendingPromises.indexOf(r);s._sendingPromises.splice(l,1)};r.then(u,u)},e.prototype.onShutdown=function(){},e}(Dn)});var yi,xL=m(()=>{(function(t){t.NONE="none",t.GZIP="gzip"})(yi||(yi={}))});var LL=m(()=>{ML();xL()});function IL(t){return new fW(t)}var cW,fW,CL=m(()=>{b();Xp();cW=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},fW=function(){function t(e){this._parameters=e}return t.prototype.send=function(e,n){var i=this;return new Promise(function(a){var s=new XMLHttpRequest;s.timeout=n,s.open("POST",i._parameters.url),Object.entries(i._parameters.headers).forEach(function(o){var r=cW(o,2),u=r[0],l=r[1];s.setRequestHeader(u,l)}),s.ontimeout=function(o){a({status:"failure",error:new Error("XHR request timed out")})},s.onreadystatechange=function(){s.status>=200&&s.status<=299?(g.debug("XHR success"),a({status:"success"})):s.status&&_u(s.status)?a({status:"retryable",retryInMillis:Su(s.getResponseHeader("Retry-After"))}):s.status!==0&&a({status:"failure",error:new Error("XHR request failed with non-retryable status")})},s.onabort=function(){a({status:"failure",error:new Error("XHR request aborted")})},s.onerror=function(){a({status:"failure",error:new Error("XHR request errored")})},s.send(new Blob([e],{type:i._parameters.headers["Content-Type"]}))})},t.prototype.shutdown=function(){},t}()});function wL(t){return new pW(t)}var pW,UL=m(()=>{b();pW=function(){function t(e){this._params=e}return t.prototype.send=function(e){var n=this;return new Promise(function(i){navigator.sendBeacon(n._params.url,new Blob([e],{type:n._params.blobType}))?(g.debug("SendBeacon success"),i({status:"success"})):i({status:"failure",error:new Error("SendBeacon failed")})})},t.prototype.shutdown=function(){},t}()});var dW,nd,DL=m(()=>{Eu();vi();b();CL();UL();Qp();td();dW=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),nd=function(t){dW(e,t);function e(n,i,a,s){n===void 0&&(n={});var o=t.call(this,n)||this;o._serializer=i;var r=!!n.headers||typeof navigator.sendBeacon!="function",u=Ou({url:n.url,timeoutMillis:n.timeoutMillis,headers:n.headers,concurrencyLimit:n.concurrencyLimit},{},gu(a,s));return o._timeoutMillis=u.timeoutMillis,o._concurrencyLimit=u.concurrencyLimit,r?o._transport=vu({transport:IL({headers:u.headers,url:u.url})}):o._transport=wL({url:u.url,blobType:u.headers["Content-Type"]}),o}return e.prototype.onShutdown=function(){},e.prototype.send=function(n,i,a){var s=this;if(this._shutdownOnce.isCalled){g.debug("Shutdown already started. Cannot send objects");return}var o=this._serializer.serializeRequest(n);if(o==null){a(new Error("Could not serialize message"));return}var r=this._transport.send(o,this._timeoutMillis).then(function(l){l.status==="success"?i():l.status==="failure"&&l.error?a(l.error):l.status==="retryable"?a(new bt("Export failed with retryable status")):a(new bt("Export failed with unknown error"))},a);this._sendingPromises.push(r);var u=function(){var l=s._sendingPromises.indexOf(r);s._sendingPromises.splice(l,1)};r.then(u,u)},e}(Dn)});var VL=m(()=>{DL()});var BL=m(()=>{LL();VL()});var Pu={};it(Pu,{CompressionAlgorithm:()=>yi,OTLPExporterBase:()=>Dn,OTLPExporterBrowserBase:()=>nd,OTLPExporterError:()=>bt,OTLPExporterNodeBase:()=>mi,getSharedConfigurationDefaults:()=>yu,getSharedConfigurationFromEnvironment:()=>Nu,mergeOtlpSharedConfigurationWithDefaults:()=>mu,validateAndNormalizeHeaders:()=>Au});var Ai=m(()=>{BL();Eu();vi();ed();Zp();rd()});function bu(t){var e=BigInt(1e9);return BigInt(t[0])*e+BigInt(t[1])}function od(t){var e=Number(BigInt.asUintN(32,t)),n=Number(BigInt.asUintN(32,t>>BigInt(32)));return{low:e,high:n}}function Mu(t){var e=bu(t);return od(e)}function id(t){var e=bu(t);return e.toString()}function GL(t){return t}function kL(t){if(t!==void 0)return lr(t)}function Sr(t){var e,n;if(t===void 0)return _W;var i=(e=t.useLongBits)!==null&&e!==void 0?e:!0,a=(n=t.useHex)!==null&&n!==void 0?n:!1;return{encodeHrTime:i?Mu:EW,encodeSpanContext:a?GL:lr,encodeOptionalSpanContext:a?GL:kL}}var EW,_W,Oi=m(()=>{K();EW=typeof BigInt<"u"?id:Ms;_W={encodeHrTime:Mu,encodeSpanContext:lr,encodeOptionalSpanContext:kL}});var xu,HL=m(()=>{(function(t){t[t.SPAN_KIND_UNSPECIFIED=0]="SPAN_KIND_UNSPECIFIED",t[t.SPAN_KIND_INTERNAL=1]="SPAN_KIND_INTERNAL",t[t.SPAN_KIND_SERVER=2]="SPAN_KIND_SERVER",t[t.SPAN_KIND_CLIENT=3]="SPAN_KIND_CLIENT",t[t.SPAN_KIND_PRODUCER=4]="SPAN_KIND_PRODUCER",t[t.SPAN_KIND_CONSUMER=5]="SPAN_KIND_CONSUMER"})(xu||(xu={}))});function Vn(t){return{name:t.name,version:t.version}}function Mt(t){return Object.keys(t).map(function(e){return Lu(e,t[e])})}function Lu(t,e){return{key:t,value:Iu(e)}}function Iu(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(Iu)}}:e==="object"&&t!=null?{kvlistValue:{values:Object.entries(t).map(function(n){var i=SW(n,2),a=i[0],s=i[1];return Lu(a,s)})}}:{}}var SW,Bn=m(()=>{SW=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}});function FL(t,e){var n,i=t.spanContext(),a=t.status;return{traceId:e.encodeSpanContext(i.traceId),spanId:e.encodeSpanContext(i.spanId),parentSpanId:e.encodeOptionalSpanContext(t.parentSpanId),traceState:(n=i.traceState)===null||n===void 0?void 0:n.serialize(),name:t.name,kind:t.kind==null?0:t.kind+1,startTimeUnixNano:e.encodeHrTime(t.startTime),endTimeUnixNano:e.encodeHrTime(t.endTime),attributes:Mt(t.attributes),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map(function(s){return TW(s,e)}),droppedEventsCount:t.droppedEventsCount,status:{code:a.code,message:a.message},links:t.links.map(function(s){return hW(s,e)}),droppedLinksCount:t.droppedLinksCount}}function hW(t,e){var n;return{attributes:t.attributes?Mt(t.attributes):[],spanId:e.encodeSpanContext(t.context.spanId),traceId:e.encodeSpanContext(t.context.traceId),traceState:(n=t.context.traceState)===null||n===void 0?void 0:n.serialize(),droppedAttributesCount:t.droppedAttributesCount||0}}function TW(t,e){return{attributes:t.attributes?Mt(t.attributes):[],name:t.name,timeUnixNano:e.encodeHrTime(t.time),droppedAttributesCount:t.droppedAttributesCount||0}}var YL=m(()=>{Bn()});function Gn(t){return{attributes:Mt(t.attributes),droppedAttributesCount:0}}var Cu=m(()=>{Bn()});function kn(t,e){var n=Sr(e);return{resourceSpans:AW(t,n)}}function yW(t){var e,n,i=new Map;try{for(var a=vW(t),s=a.next();!s.done;s=a.next()){var o=s.value,r=i.get(o.resource);r||(r=new Map,i.set(o.resource,r));var u=o.instrumentationLibrary.name+"@"+(o.instrumentationLibrary.version||"")+":"+(o.instrumentationLibrary.schemaUrl||""),l=r.get(u);l||(l=[],r.set(u,l)),l.push(o)}}catch(c){e={error:c}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return i}function AW(t,e){for(var n=yW(t),i=[],a=n.entries(),s=a.next();!s.done;){for(var o=mW(s.value,2),r=o[0],u=o[1],l=[],c=u.values(),p=c.next();!p.done;){var _=p.value;if(_.length>0){var f=_.map(function(v){return FL(v,e)});l.push({scope:Vn(_[0].instrumentationLibrary),spans:f,schemaUrl:_[0].instrumentationLibrary.schemaUrl})}p=c.next()}var S={resource:Gn(r),scopeSpans:l,schemaUrl:void 0};i.push(S),s=a.next()}return i}var vW,mW,wu=m(()=>{YL();Oi();Bn();Cu();vW=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},mW=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}});function jL(t,e){var n=Sr(e);return{resource:Gn(t.resource),schemaUrl:void 0,scopeMetrics:OW(t.scopeMetrics,n)}}function OW(t,e){return Array.from(t.map(function(n){return{scope:Vn(n.scope),metrics:n.metrics.map(function(i){return gW(i,e)}),schemaUrl:n.scope.schemaUrl}}))}function gW(t,e){var n={name:t.descriptor.name,description:t.descriptor.description,unit:t.descriptor.unit},i=bW(t.aggregationTemporality);switch(t.dataPointType){case Ne.SUM:n.sum={aggregationTemporality:i,isMonotonic:t.isMonotonic,dataPoints:qL(t,e)};break;case Ne.GAUGE:n.gauge={dataPoints:qL(t,e)};break;case Ne.HISTOGRAM:n.histogram={aggregationTemporality:i,dataPoints:RW(t,e)};break;case Ne.EXPONENTIAL_HISTOGRAM:n.exponentialHistogram={aggregationTemporality:i,dataPoints:PW(t,e)};break}return n}function NW(t,e,n){var i={attributes:Mt(t.attributes),startTimeUnixNano:n.encodeHrTime(t.startTime),timeUnixNano:n.encodeHrTime(t.endTime)};switch(e){case Et.INT:i.asInt=t.value;break;case Et.DOUBLE:i.asDouble=t.value;break}return i}function qL(t,e){return t.dataPoints.map(function(n){return NW(n,t.descriptor.valueType,e)})}function RW(t,e){return t.dataPoints.map(function(n){var i=n.value;return{attributes:Mt(n.attributes),bucketCounts:i.buckets.counts,explicitBounds:i.buckets.boundaries,count:i.count,sum:i.sum,min:i.min,max:i.max,startTimeUnixNano:e.encodeHrTime(n.startTime),timeUnixNano:e.encodeHrTime(n.endTime)}})}function PW(t,e){return t.dataPoints.map(function(n){var i=n.value;return{attributes:Mt(n.attributes),count:i.count,min:i.min,max:i.max,sum:i.sum,positive:{offset:i.positive.offset,bucketCounts:i.positive.bucketCounts},negative:{offset:i.negative.offset,bucketCounts:i.negative.bucketCounts},scale:i.scale,zeroCount:i.zeroCount,startTimeUnixNano:e.encodeHrTime(n.startTime),timeUnixNano:e.encodeHrTime(n.endTime)}})}function bW(t){switch(t){case ge.DELTA:return 1;case ge.CUMULATIVE:return 2}}var $L=m(()=>{b();wn();Oi();Bn();Cu()});function Hn(t,e){return{resourceMetrics:t.map(function(n){return jL(n,e)})}}var Uu=m(()=>{$L()});function Fn(t,e){var n=Sr(e);return{resourceLogs:LW(t,n)}}function xW(t){var e,n,i=new Map;try{for(var a=MW(t),s=a.next();!s.done;s=a.next()){var o=s.value,r=o.resource,u=o.instrumentationScope,l=u.name,c=u.version,p=c===void 0?"":c,_=u.schemaUrl,f=_===void 0?"":_,S=i.get(r);S||(S=new Map,i.set(r,S));var v=l+"@"+p+":"+f,T=S.get(v);T||(T=[],S.set(v,T)),T.push(o)}}catch(A){e={error:A}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return i}function LW(t,e){var n=xW(t);return Array.from(n,function(i){var a=KL(i,2),s=a[0],o=a[1];return{resource:Gn(s),scopeLogs:Array.from(o,function(r){var u=KL(r,2),l=u[1];return{scope:Vn(l[0].instrumentationScope),logRecords:l.map(function(c){return IW(c,e)}),schemaUrl:l[0].instrumentationScope.schemaUrl}}),schemaUrl:void 0}})}function IW(t,e){var n,i,a;return{timeUnixNano:e.encodeHrTime(t.hrTime),observedTimeUnixNano:e.encodeHrTime(t.hrTimeObserved),severityNumber:t.severityNumber,severityText:t.severityText,body:Iu(t.body),attributes:CW(t.attributes),droppedAttributesCount:t.droppedAttributesCount,flags:(n=t.spanContext)===null||n===void 0?void 0:n.traceFlags,traceId:e.encodeOptionalSpanContext((i=t.spanContext)===null||i===void 0?void 0:i.traceId),spanId:e.encodeOptionalSpanContext((a=t.spanContext)===null||a===void 0?void 0:a.spanId)}}function CW(t){return Object.keys(t).map(function(e){return Lu(e,t[e])})}var MW,KL,Du=m(()=>{Oi();Bn();Cu();MW=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},KL=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}});var zL=h((lue,WL)=>{"use strict";var I=MU(),y=I.Reader,V=I.Writer,E=I.util,d=I.roots.default||(I.roots.default={});d.opentelemetry=function(){var t={};return t.proto=function(){var e={};return e.common=function(){var n={};return n.v1=function(){var i={};return i.AnyValue=function(){function a(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}a.prototype.stringValue=null,a.prototype.boolValue=null,a.prototype.intValue=null,a.prototype.doubleValue=null,a.prototype.arrayValue=null,a.prototype.kvlistValue=null,a.prototype.bytesValue=null;var s;return Object.defineProperty(a.prototype,"value",{get:E.oneOfGetter(s=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"]),set:E.oneOfSetter(s)}),a.create=function(r){return new a(r)},a.encode=function(r,u){return u||(u=V.create()),r.stringValue!=null&&Object.hasOwnProperty.call(r,"stringValue")&&u.uint32(10).string(r.stringValue),r.boolValue!=null&&Object.hasOwnProperty.call(r,"boolValue")&&u.uint32(16).bool(r.boolValue),r.intValue!=null&&Object.hasOwnProperty.call(r,"intValue")&&u.uint32(24).int64(r.intValue),r.doubleValue!=null&&Object.hasOwnProperty.call(r,"doubleValue")&&u.uint32(33).double(r.doubleValue),r.arrayValue!=null&&Object.hasOwnProperty.call(r,"arrayValue")&&d.opentelemetry.proto.common.v1.ArrayValue.encode(r.arrayValue,u.uint32(42).fork()).ldelim(),r.kvlistValue!=null&&Object.hasOwnProperty.call(r,"kvlistValue")&&d.opentelemetry.proto.common.v1.KeyValueList.encode(r.kvlistValue,u.uint32(50).fork()).ldelim(),r.bytesValue!=null&&Object.hasOwnProperty.call(r,"bytesValue")&&u.uint32(58).bytes(r.bytesValue),u},a.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},a.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.common.v1.AnyValue;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.stringValue=r.string();break}case 2:{c.boolValue=r.bool();break}case 3:{c.intValue=r.int64();break}case 4:{c.doubleValue=r.double();break}case 5:{c.arrayValue=d.opentelemetry.proto.common.v1.ArrayValue.decode(r,r.uint32());break}case 6:{c.kvlistValue=d.opentelemetry.proto.common.v1.KeyValueList.decode(r,r.uint32());break}case 7:{c.bytesValue=r.bytes();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var u={};if(r.stringValue!=null&&r.hasOwnProperty("stringValue")&&(u.value=1,!E.isString(r.stringValue)))return"stringValue: string expected";if(r.boolValue!=null&&r.hasOwnProperty("boolValue")){if(u.value===1)return"value: multiple values";if(u.value=1,typeof r.boolValue!="boolean")return"boolValue: boolean expected"}if(r.intValue!=null&&r.hasOwnProperty("intValue")){if(u.value===1)return"value: multiple values";if(u.value=1,!E.isInteger(r.intValue)&&!(r.intValue&&E.isInteger(r.intValue.low)&&E.isInteger(r.intValue.high)))return"intValue: integer|Long expected"}if(r.doubleValue!=null&&r.hasOwnProperty("doubleValue")){if(u.value===1)return"value: multiple values";if(u.value=1,typeof r.doubleValue!="number")return"doubleValue: number expected"}if(r.arrayValue!=null&&r.hasOwnProperty("arrayValue")){if(u.value===1)return"value: multiple values";u.value=1;{var l=d.opentelemetry.proto.common.v1.ArrayValue.verify(r.arrayValue);if(l)return"arrayValue."+l}}if(r.kvlistValue!=null&&r.hasOwnProperty("kvlistValue")){if(u.value===1)return"value: multiple values";u.value=1;{var l=d.opentelemetry.proto.common.v1.KeyValueList.verify(r.kvlistValue);if(l)return"kvlistValue."+l}}if(r.bytesValue!=null&&r.hasOwnProperty("bytesValue")){if(u.value===1)return"value: multiple values";if(u.value=1,!(r.bytesValue&&typeof r.bytesValue.length=="number"||E.isString(r.bytesValue)))return"bytesValue: buffer expected"}return null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.common.v1.AnyValue)return r;var u=new d.opentelemetry.proto.common.v1.AnyValue;if(r.stringValue!=null&&(u.stringValue=String(r.stringValue)),r.boolValue!=null&&(u.boolValue=!!r.boolValue),r.intValue!=null&&(E.Long?(u.intValue=E.Long.fromValue(r.intValue)).unsigned=!1:typeof r.intValue=="string"?u.intValue=parseInt(r.intValue,10):typeof r.intValue=="number"?u.intValue=r.intValue:typeof r.intValue=="object"&&(u.intValue=new E.LongBits(r.intValue.low>>>0,r.intValue.high>>>0).toNumber())),r.doubleValue!=null&&(u.doubleValue=Number(r.doubleValue)),r.arrayValue!=null){if(typeof r.arrayValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.arrayValue: object expected");u.arrayValue=d.opentelemetry.proto.common.v1.ArrayValue.fromObject(r.arrayValue)}if(r.kvlistValue!=null){if(typeof r.kvlistValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.kvlistValue: object expected");u.kvlistValue=d.opentelemetry.proto.common.v1.KeyValueList.fromObject(r.kvlistValue)}return r.bytesValue!=null&&(typeof r.bytesValue=="string"?E.base64.decode(r.bytesValue,u.bytesValue=E.newBuffer(E.base64.length(r.bytesValue)),0):r.bytesValue.length>=0&&(u.bytesValue=r.bytesValue)),u},a.toObject=function(r,u){u||(u={});var l={};return r.stringValue!=null&&r.hasOwnProperty("stringValue")&&(l.stringValue=r.stringValue,u.oneofs&&(l.value="stringValue")),r.boolValue!=null&&r.hasOwnProperty("boolValue")&&(l.boolValue=r.boolValue,u.oneofs&&(l.value="boolValue")),r.intValue!=null&&r.hasOwnProperty("intValue")&&(typeof r.intValue=="number"?l.intValue=u.longs===String?String(r.intValue):r.intValue:l.intValue=u.longs===String?E.Long.prototype.toString.call(r.intValue):u.longs===Number?new E.LongBits(r.intValue.low>>>0,r.intValue.high>>>0).toNumber():r.intValue,u.oneofs&&(l.value="intValue")),r.doubleValue!=null&&r.hasOwnProperty("doubleValue")&&(l.doubleValue=u.json&&!isFinite(r.doubleValue)?String(r.doubleValue):r.doubleValue,u.oneofs&&(l.value="doubleValue")),r.arrayValue!=null&&r.hasOwnProperty("arrayValue")&&(l.arrayValue=d.opentelemetry.proto.common.v1.ArrayValue.toObject(r.arrayValue,u),u.oneofs&&(l.value="arrayValue")),r.kvlistValue!=null&&r.hasOwnProperty("kvlistValue")&&(l.kvlistValue=d.opentelemetry.proto.common.v1.KeyValueList.toObject(r.kvlistValue,u),u.oneofs&&(l.value="kvlistValue")),r.bytesValue!=null&&r.hasOwnProperty("bytesValue")&&(l.bytesValue=u.bytes===String?E.base64.encode(r.bytesValue,0,r.bytesValue.length):u.bytes===Array?Array.prototype.slice.call(r.bytesValue):r.bytesValue,u.oneofs&&(l.value="bytesValue")),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.common.v1.AnyValue"},a}(),i.ArrayValue=function(){function a(s){if(this.values=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.values=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.values!=null&&o.values.length)for(var u=0;u<o.values.length;++u)d.opentelemetry.proto.common.v1.AnyValue.encode(o.values[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.common.v1.ArrayValue;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.values&&l.values.length||(l.values=[]),l.values.push(d.opentelemetry.proto.common.v1.AnyValue.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.values!=null&&o.hasOwnProperty("values")){if(!Array.isArray(o.values))return"values: array expected";for(var r=0;r<o.values.length;++r){var u=d.opentelemetry.proto.common.v1.AnyValue.verify(o.values[r]);if(u)return"values."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.common.v1.ArrayValue)return o;var r=new d.opentelemetry.proto.common.v1.ArrayValue;if(o.values){if(!Array.isArray(o.values))throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: array expected");r.values=[];for(var u=0;u<o.values.length;++u){if(typeof o.values[u]!="object")throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: object expected");r.values[u]=d.opentelemetry.proto.common.v1.AnyValue.fromObject(o.values[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.values=[]),o.values&&o.values.length){u.values=[];for(var l=0;l<o.values.length;++l)u.values[l]=d.opentelemetry.proto.common.v1.AnyValue.toObject(o.values[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.common.v1.ArrayValue"},a}(),i.KeyValueList=function(){function a(s){if(this.values=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.values=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.values!=null&&o.values.length)for(var u=0;u<o.values.length;++u)d.opentelemetry.proto.common.v1.KeyValue.encode(o.values[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.common.v1.KeyValueList;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.values&&l.values.length||(l.values=[]),l.values.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.values!=null&&o.hasOwnProperty("values")){if(!Array.isArray(o.values))return"values: array expected";for(var r=0;r<o.values.length;++r){var u=d.opentelemetry.proto.common.v1.KeyValue.verify(o.values[r]);if(u)return"values."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.common.v1.KeyValueList)return o;var r=new d.opentelemetry.proto.common.v1.KeyValueList;if(o.values){if(!Array.isArray(o.values))throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: array expected");r.values=[];for(var u=0;u<o.values.length;++u){if(typeof o.values[u]!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: object expected");r.values[u]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.values[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.values=[]),o.values&&o.values.length){u.values=[];for(var l=0;l<o.values.length;++l)u.values[l]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.values[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.common.v1.KeyValueList"},a}(),i.KeyValue=function(){function a(s){if(s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.key=null,a.prototype.value=null,a.create=function(o){return new a(o)},a.encode=function(o,r){return r||(r=V.create()),o.key!=null&&Object.hasOwnProperty.call(o,"key")&&r.uint32(10).string(o.key),o.value!=null&&Object.hasOwnProperty.call(o,"value")&&d.opentelemetry.proto.common.v1.AnyValue.encode(o.value,r.uint32(18).fork()).ldelim(),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.common.v1.KeyValue;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.key=o.string();break}case 2:{l.value=d.opentelemetry.proto.common.v1.AnyValue.decode(o,o.uint32());break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.key!=null&&o.hasOwnProperty("key")&&!E.isString(o.key))return"key: string expected";if(o.value!=null&&o.hasOwnProperty("value")){var r=d.opentelemetry.proto.common.v1.AnyValue.verify(o.value);if(r)return"value."+r}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.common.v1.KeyValue)return o;var r=new d.opentelemetry.proto.common.v1.KeyValue;if(o.key!=null&&(r.key=String(o.key)),o.value!=null){if(typeof o.value!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValue.value: object expected");r.value=d.opentelemetry.proto.common.v1.AnyValue.fromObject(o.value)}return r},a.toObject=function(o,r){r||(r={});var u={};return r.defaults&&(u.key="",u.value=null),o.key!=null&&o.hasOwnProperty("key")&&(u.key=o.key),o.value!=null&&o.hasOwnProperty("value")&&(u.value=d.opentelemetry.proto.common.v1.AnyValue.toObject(o.value,r)),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.common.v1.KeyValue"},a}(),i.InstrumentationScope=function(){function a(s){if(this.attributes=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.name=null,a.prototype.version=null,a.prototype.attributes=E.emptyArray,a.prototype.droppedAttributesCount=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.name!=null&&Object.hasOwnProperty.call(o,"name")&&r.uint32(10).string(o.name),o.version!=null&&Object.hasOwnProperty.call(o,"version")&&r.uint32(18).string(o.version),o.attributes!=null&&o.attributes.length)for(var u=0;u<o.attributes.length;++u)d.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[u],r.uint32(26).fork()).ldelim();return o.droppedAttributesCount!=null&&Object.hasOwnProperty.call(o,"droppedAttributesCount")&&r.uint32(32).uint32(o.droppedAttributesCount),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.common.v1.InstrumentationScope;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.name=o.string();break}case 2:{l.version=o.string();break}case 3:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 4:{l.droppedAttributesCount=o.uint32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.name!=null&&o.hasOwnProperty("name")&&!E.isString(o.name))return"name: string expected";if(o.version!=null&&o.hasOwnProperty("version")&&!E.isString(o.version))return"version: string expected";if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var r=0;r<o.attributes.length;++r){var u=d.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[r]);if(u)return"attributes."+u}}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(o.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.common.v1.InstrumentationScope)return o;var r=new d.opentelemetry.proto.common.v1.InstrumentationScope;if(o.name!=null&&(r.name=String(o.name)),o.version!=null&&(r.version=String(o.version)),o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: array expected");r.attributes=[];for(var u=0;u<o.attributes.length;++u){if(typeof o.attributes[u]!="object")throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: object expected");r.attributes[u]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[u])}}return o.droppedAttributesCount!=null&&(r.droppedAttributesCount=o.droppedAttributesCount>>>0),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.attributes=[]),r.defaults&&(u.name="",u.version="",u.droppedAttributesCount=0),o.name!=null&&o.hasOwnProperty("name")&&(u.name=o.name),o.version!=null&&o.hasOwnProperty("version")&&(u.version=o.version),o.attributes&&o.attributes.length){u.attributes=[];for(var l=0;l<o.attributes.length;++l)u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[l],r)}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=o.droppedAttributesCount),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.common.v1.InstrumentationScope"},a}(),i}(),n}(),e.resource=function(){var n={};return n.v1=function(){var i={};return i.Resource=function(){function a(s){if(this.attributes=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.attributes=E.emptyArray,a.prototype.droppedAttributesCount=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.attributes!=null&&o.attributes.length)for(var u=0;u<o.attributes.length;++u)d.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[u],r.uint32(10).fork()).ldelim();return o.droppedAttributesCount!=null&&Object.hasOwnProperty.call(o,"droppedAttributesCount")&&r.uint32(16).uint32(o.droppedAttributesCount),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.resource.v1.Resource;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 2:{l.droppedAttributesCount=o.uint32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var r=0;r<o.attributes.length;++r){var u=d.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[r]);if(u)return"attributes."+u}}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(o.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.resource.v1.Resource)return o;var r=new d.opentelemetry.proto.resource.v1.Resource;if(o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: array expected");r.attributes=[];for(var u=0;u<o.attributes.length;++u){if(typeof o.attributes[u]!="object")throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: object expected");r.attributes[u]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[u])}}return o.droppedAttributesCount!=null&&(r.droppedAttributesCount=o.droppedAttributesCount>>>0),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.attributes=[]),r.defaults&&(u.droppedAttributesCount=0),o.attributes&&o.attributes.length){u.attributes=[];for(var l=0;l<o.attributes.length;++l)u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[l],r)}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=o.droppedAttributesCount),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.resource.v1.Resource"},a}(),i}(),n}(),e.trace=function(){var n={};return n.v1=function(){var i={};return i.TracesData=function(){function a(s){if(this.resourceSpans=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.resourceSpans=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resourceSpans!=null&&o.resourceSpans.length)for(var u=0;u<o.resourceSpans.length;++u)d.opentelemetry.proto.trace.v1.ResourceSpans.encode(o.resourceSpans[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.trace.v1.TracesData;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.resourceSpans&&l.resourceSpans.length||(l.resourceSpans=[]),l.resourceSpans.push(d.opentelemetry.proto.trace.v1.ResourceSpans.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resourceSpans!=null&&o.hasOwnProperty("resourceSpans")){if(!Array.isArray(o.resourceSpans))return"resourceSpans: array expected";for(var r=0;r<o.resourceSpans.length;++r){var u=d.opentelemetry.proto.trace.v1.ResourceSpans.verify(o.resourceSpans[r]);if(u)return"resourceSpans."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.trace.v1.TracesData)return o;var r=new d.opentelemetry.proto.trace.v1.TracesData;if(o.resourceSpans){if(!Array.isArray(o.resourceSpans))throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: array expected");r.resourceSpans=[];for(var u=0;u<o.resourceSpans.length;++u){if(typeof o.resourceSpans[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: object expected");r.resourceSpans[u]=d.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(o.resourceSpans[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.resourceSpans=[]),o.resourceSpans&&o.resourceSpans.length){u.resourceSpans=[];for(var l=0;l<o.resourceSpans.length;++l)u.resourceSpans[l]=d.opentelemetry.proto.trace.v1.ResourceSpans.toObject(o.resourceSpans[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.TracesData"},a}(),i.ResourceSpans=function(){function a(s){if(this.scopeSpans=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.resource=null,a.prototype.scopeSpans=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resource!=null&&Object.hasOwnProperty.call(o,"resource")&&d.opentelemetry.proto.resource.v1.Resource.encode(o.resource,r.uint32(10).fork()).ldelim(),o.scopeSpans!=null&&o.scopeSpans.length)for(var u=0;u<o.scopeSpans.length;++u)d.opentelemetry.proto.trace.v1.ScopeSpans.encode(o.scopeSpans[u],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.trace.v1.ResourceSpans;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.resource=d.opentelemetry.proto.resource.v1.Resource.decode(o,o.uint32());break}case 2:{l.scopeSpans&&l.scopeSpans.length||(l.scopeSpans=[]),l.scopeSpans.push(d.opentelemetry.proto.trace.v1.ScopeSpans.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resource!=null&&o.hasOwnProperty("resource")){var r=d.opentelemetry.proto.resource.v1.Resource.verify(o.resource);if(r)return"resource."+r}if(o.scopeSpans!=null&&o.hasOwnProperty("scopeSpans")){if(!Array.isArray(o.scopeSpans))return"scopeSpans: array expected";for(var u=0;u<o.scopeSpans.length;++u){var r=d.opentelemetry.proto.trace.v1.ScopeSpans.verify(o.scopeSpans[u]);if(r)return"scopeSpans."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.trace.v1.ResourceSpans)return o;var r=new d.opentelemetry.proto.trace.v1.ResourceSpans;if(o.resource!=null){if(typeof o.resource!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.resource: object expected");r.resource=d.opentelemetry.proto.resource.v1.Resource.fromObject(o.resource)}if(o.scopeSpans){if(!Array.isArray(o.scopeSpans))throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: array expected");r.scopeSpans=[];for(var u=0;u<o.scopeSpans.length;++u){if(typeof o.scopeSpans[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: object expected");r.scopeSpans[u]=d.opentelemetry.proto.trace.v1.ScopeSpans.fromObject(o.scopeSpans[u])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.scopeSpans=[]),r.defaults&&(u.resource=null,u.schemaUrl=""),o.resource!=null&&o.hasOwnProperty("resource")&&(u.resource=d.opentelemetry.proto.resource.v1.Resource.toObject(o.resource,r)),o.scopeSpans&&o.scopeSpans.length){u.scopeSpans=[];for(var l=0;l<o.scopeSpans.length;++l)u.scopeSpans[l]=d.opentelemetry.proto.trace.v1.ScopeSpans.toObject(o.scopeSpans[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(u.schemaUrl=o.schemaUrl),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.ResourceSpans"},a}(),i.ScopeSpans=function(){function a(s){if(this.spans=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.scope=null,a.prototype.spans=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.scope!=null&&Object.hasOwnProperty.call(o,"scope")&&d.opentelemetry.proto.common.v1.InstrumentationScope.encode(o.scope,r.uint32(10).fork()).ldelim(),o.spans!=null&&o.spans.length)for(var u=0;u<o.spans.length;++u)d.opentelemetry.proto.trace.v1.Span.encode(o.spans[u],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.trace.v1.ScopeSpans;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.decode(o,o.uint32());break}case 2:{l.spans&&l.spans.length||(l.spans=[]),l.spans.push(d.opentelemetry.proto.trace.v1.Span.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.scope!=null&&o.hasOwnProperty("scope")){var r=d.opentelemetry.proto.common.v1.InstrumentationScope.verify(o.scope);if(r)return"scope."+r}if(o.spans!=null&&o.hasOwnProperty("spans")){if(!Array.isArray(o.spans))return"spans: array expected";for(var u=0;u<o.spans.length;++u){var r=d.opentelemetry.proto.trace.v1.Span.verify(o.spans[u]);if(r)return"spans."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.trace.v1.ScopeSpans)return o;var r=new d.opentelemetry.proto.trace.v1.ScopeSpans;if(o.scope!=null){if(typeof o.scope!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.scope: object expected");r.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(o.scope)}if(o.spans){if(!Array.isArray(o.spans))throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: array expected");r.spans=[];for(var u=0;u<o.spans.length;++u){if(typeof o.spans[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: object expected");r.spans[u]=d.opentelemetry.proto.trace.v1.Span.fromObject(o.spans[u])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.spans=[]),r.defaults&&(u.scope=null,u.schemaUrl=""),o.scope!=null&&o.hasOwnProperty("scope")&&(u.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.toObject(o.scope,r)),o.spans&&o.spans.length){u.spans=[];for(var l=0;l<o.spans.length;++l)u.spans[l]=d.opentelemetry.proto.trace.v1.Span.toObject(o.spans[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(u.schemaUrl=o.schemaUrl),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.ScopeSpans"},a}(),i.Span=function(){function a(s){if(this.attributes=[],this.events=[],this.links=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.traceId=null,a.prototype.spanId=null,a.prototype.traceState=null,a.prototype.parentSpanId=null,a.prototype.name=null,a.prototype.kind=null,a.prototype.startTimeUnixNano=null,a.prototype.endTimeUnixNano=null,a.prototype.attributes=E.emptyArray,a.prototype.droppedAttributesCount=null,a.prototype.events=E.emptyArray,a.prototype.droppedEventsCount=null,a.prototype.links=E.emptyArray,a.prototype.droppedLinksCount=null,a.prototype.status=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.traceId!=null&&Object.hasOwnProperty.call(o,"traceId")&&r.uint32(10).bytes(o.traceId),o.spanId!=null&&Object.hasOwnProperty.call(o,"spanId")&&r.uint32(18).bytes(o.spanId),o.traceState!=null&&Object.hasOwnProperty.call(o,"traceState")&&r.uint32(26).string(o.traceState),o.parentSpanId!=null&&Object.hasOwnProperty.call(o,"parentSpanId")&&r.uint32(34).bytes(o.parentSpanId),o.name!=null&&Object.hasOwnProperty.call(o,"name")&&r.uint32(42).string(o.name),o.kind!=null&&Object.hasOwnProperty.call(o,"kind")&&r.uint32(48).int32(o.kind),o.startTimeUnixNano!=null&&Object.hasOwnProperty.call(o,"startTimeUnixNano")&&r.uint32(57).fixed64(o.startTimeUnixNano),o.endTimeUnixNano!=null&&Object.hasOwnProperty.call(o,"endTimeUnixNano")&&r.uint32(65).fixed64(o.endTimeUnixNano),o.attributes!=null&&o.attributes.length)for(var u=0;u<o.attributes.length;++u)d.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[u],r.uint32(74).fork()).ldelim();if(o.droppedAttributesCount!=null&&Object.hasOwnProperty.call(o,"droppedAttributesCount")&&r.uint32(80).uint32(o.droppedAttributesCount),o.events!=null&&o.events.length)for(var u=0;u<o.events.length;++u)d.opentelemetry.proto.trace.v1.Span.Event.encode(o.events[u],r.uint32(90).fork()).ldelim();if(o.droppedEventsCount!=null&&Object.hasOwnProperty.call(o,"droppedEventsCount")&&r.uint32(96).uint32(o.droppedEventsCount),o.links!=null&&o.links.length)for(var u=0;u<o.links.length;++u)d.opentelemetry.proto.trace.v1.Span.Link.encode(o.links[u],r.uint32(106).fork()).ldelim();return o.droppedLinksCount!=null&&Object.hasOwnProperty.call(o,"droppedLinksCount")&&r.uint32(112).uint32(o.droppedLinksCount),o.status!=null&&Object.hasOwnProperty.call(o,"status")&&d.opentelemetry.proto.trace.v1.Status.encode(o.status,r.uint32(122).fork()).ldelim(),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.trace.v1.Span;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.traceId=o.bytes();break}case 2:{l.spanId=o.bytes();break}case 3:{l.traceState=o.string();break}case 4:{l.parentSpanId=o.bytes();break}case 5:{l.name=o.string();break}case 6:{l.kind=o.int32();break}case 7:{l.startTimeUnixNano=o.fixed64();break}case 8:{l.endTimeUnixNano=o.fixed64();break}case 9:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 10:{l.droppedAttributesCount=o.uint32();break}case 11:{l.events&&l.events.length||(l.events=[]),l.events.push(d.opentelemetry.proto.trace.v1.Span.Event.decode(o,o.uint32()));break}case 12:{l.droppedEventsCount=o.uint32();break}case 13:{l.links&&l.links.length||(l.links=[]),l.links.push(d.opentelemetry.proto.trace.v1.Span.Link.decode(o,o.uint32()));break}case 14:{l.droppedLinksCount=o.uint32();break}case 15:{l.status=d.opentelemetry.proto.trace.v1.Status.decode(o,o.uint32());break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.traceId!=null&&o.hasOwnProperty("traceId")&&!(o.traceId&&typeof o.traceId.length=="number"||E.isString(o.traceId)))return"traceId: buffer expected";if(o.spanId!=null&&o.hasOwnProperty("spanId")&&!(o.spanId&&typeof o.spanId.length=="number"||E.isString(o.spanId)))return"spanId: buffer expected";if(o.traceState!=null&&o.hasOwnProperty("traceState")&&!E.isString(o.traceState))return"traceState: string expected";if(o.parentSpanId!=null&&o.hasOwnProperty("parentSpanId")&&!(o.parentSpanId&&typeof o.parentSpanId.length=="number"||E.isString(o.parentSpanId)))return"parentSpanId: buffer expected";if(o.name!=null&&o.hasOwnProperty("name")&&!E.isString(o.name))return"name: string expected";if(o.kind!=null&&o.hasOwnProperty("kind"))switch(o.kind){default:return"kind: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:break}if(o.startTimeUnixNano!=null&&o.hasOwnProperty("startTimeUnixNano")&&!E.isInteger(o.startTimeUnixNano)&&!(o.startTimeUnixNano&&E.isInteger(o.startTimeUnixNano.low)&&E.isInteger(o.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(o.endTimeUnixNano!=null&&o.hasOwnProperty("endTimeUnixNano")&&!E.isInteger(o.endTimeUnixNano)&&!(o.endTimeUnixNano&&E.isInteger(o.endTimeUnixNano.low)&&E.isInteger(o.endTimeUnixNano.high)))return"endTimeUnixNano: integer|Long expected";if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var r=0;r<o.attributes.length;++r){var u=d.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[r]);if(u)return"attributes."+u}}if(o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(o.droppedAttributesCount))return"droppedAttributesCount: integer expected";if(o.events!=null&&o.hasOwnProperty("events")){if(!Array.isArray(o.events))return"events: array expected";for(var r=0;r<o.events.length;++r){var u=d.opentelemetry.proto.trace.v1.Span.Event.verify(o.events[r]);if(u)return"events."+u}}if(o.droppedEventsCount!=null&&o.hasOwnProperty("droppedEventsCount")&&!E.isInteger(o.droppedEventsCount))return"droppedEventsCount: integer expected";if(o.links!=null&&o.hasOwnProperty("links")){if(!Array.isArray(o.links))return"links: array expected";for(var r=0;r<o.links.length;++r){var u=d.opentelemetry.proto.trace.v1.Span.Link.verify(o.links[r]);if(u)return"links."+u}}if(o.droppedLinksCount!=null&&o.hasOwnProperty("droppedLinksCount")&&!E.isInteger(o.droppedLinksCount))return"droppedLinksCount: integer expected";if(o.status!=null&&o.hasOwnProperty("status")){var u=d.opentelemetry.proto.trace.v1.Status.verify(o.status);if(u)return"status."+u}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.trace.v1.Span)return o;var r=new d.opentelemetry.proto.trace.v1.Span;switch(o.traceId!=null&&(typeof o.traceId=="string"?E.base64.decode(o.traceId,r.traceId=E.newBuffer(E.base64.length(o.traceId)),0):o.traceId.length>=0&&(r.traceId=o.traceId)),o.spanId!=null&&(typeof o.spanId=="string"?E.base64.decode(o.spanId,r.spanId=E.newBuffer(E.base64.length(o.spanId)),0):o.spanId.length>=0&&(r.spanId=o.spanId)),o.traceState!=null&&(r.traceState=String(o.traceState)),o.parentSpanId!=null&&(typeof o.parentSpanId=="string"?E.base64.decode(o.parentSpanId,r.parentSpanId=E.newBuffer(E.base64.length(o.parentSpanId)),0):o.parentSpanId.length>=0&&(r.parentSpanId=o.parentSpanId)),o.name!=null&&(r.name=String(o.name)),o.kind){default:if(typeof o.kind=="number"){r.kind=o.kind;break}break;case"SPAN_KIND_UNSPECIFIED":case 0:r.kind=0;break;case"SPAN_KIND_INTERNAL":case 1:r.kind=1;break;case"SPAN_KIND_SERVER":case 2:r.kind=2;break;case"SPAN_KIND_CLIENT":case 3:r.kind=3;break;case"SPAN_KIND_PRODUCER":case 4:r.kind=4;break;case"SPAN_KIND_CONSUMER":case 5:r.kind=5;break}if(o.startTimeUnixNano!=null&&(E.Long?(r.startTimeUnixNano=E.Long.fromValue(o.startTimeUnixNano)).unsigned=!1:typeof o.startTimeUnixNano=="string"?r.startTimeUnixNano=parseInt(o.startTimeUnixNano,10):typeof o.startTimeUnixNano=="number"?r.startTimeUnixNano=o.startTimeUnixNano:typeof o.startTimeUnixNano=="object"&&(r.startTimeUnixNano=new E.LongBits(o.startTimeUnixNano.low>>>0,o.startTimeUnixNano.high>>>0).toNumber())),o.endTimeUnixNano!=null&&(E.Long?(r.endTimeUnixNano=E.Long.fromValue(o.endTimeUnixNano)).unsigned=!1:typeof o.endTimeUnixNano=="string"?r.endTimeUnixNano=parseInt(o.endTimeUnixNano,10):typeof o.endTimeUnixNano=="number"?r.endTimeUnixNano=o.endTimeUnixNano:typeof o.endTimeUnixNano=="object"&&(r.endTimeUnixNano=new E.LongBits(o.endTimeUnixNano.low>>>0,o.endTimeUnixNano.high>>>0).toNumber())),o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: array expected");r.attributes=[];for(var u=0;u<o.attributes.length;++u){if(typeof o.attributes[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: object expected");r.attributes[u]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[u])}}if(o.droppedAttributesCount!=null&&(r.droppedAttributesCount=o.droppedAttributesCount>>>0),o.events){if(!Array.isArray(o.events))throw TypeError(".opentelemetry.proto.trace.v1.Span.events: array expected");r.events=[];for(var u=0;u<o.events.length;++u){if(typeof o.events[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.events: object expected");r.events[u]=d.opentelemetry.proto.trace.v1.Span.Event.fromObject(o.events[u])}}if(o.droppedEventsCount!=null&&(r.droppedEventsCount=o.droppedEventsCount>>>0),o.links){if(!Array.isArray(o.links))throw TypeError(".opentelemetry.proto.trace.v1.Span.links: array expected");r.links=[];for(var u=0;u<o.links.length;++u){if(typeof o.links[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.links: object expected");r.links[u]=d.opentelemetry.proto.trace.v1.Span.Link.fromObject(o.links[u])}}if(o.droppedLinksCount!=null&&(r.droppedLinksCount=o.droppedLinksCount>>>0),o.status!=null){if(typeof o.status!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.status: object expected");r.status=d.opentelemetry.proto.trace.v1.Status.fromObject(o.status)}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.attributes=[],u.events=[],u.links=[]),r.defaults){if(r.bytes===String?u.traceId="":(u.traceId=[],r.bytes!==Array&&(u.traceId=E.newBuffer(u.traceId))),r.bytes===String?u.spanId="":(u.spanId=[],r.bytes!==Array&&(u.spanId=E.newBuffer(u.spanId))),u.traceState="",r.bytes===String?u.parentSpanId="":(u.parentSpanId=[],r.bytes!==Array&&(u.parentSpanId=E.newBuffer(u.parentSpanId))),u.name="",u.kind=r.enums===String?"SPAN_KIND_UNSPECIFIED":0,E.Long){var l=new E.Long(0,0,!1);u.startTimeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.startTimeUnixNano=r.longs===String?"0":0;if(E.Long){var l=new E.Long(0,0,!1);u.endTimeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.endTimeUnixNano=r.longs===String?"0":0;u.droppedAttributesCount=0,u.droppedEventsCount=0,u.droppedLinksCount=0,u.status=null}if(o.traceId!=null&&o.hasOwnProperty("traceId")&&(u.traceId=r.bytes===String?E.base64.encode(o.traceId,0,o.traceId.length):r.bytes===Array?Array.prototype.slice.call(o.traceId):o.traceId),o.spanId!=null&&o.hasOwnProperty("spanId")&&(u.spanId=r.bytes===String?E.base64.encode(o.spanId,0,o.spanId.length):r.bytes===Array?Array.prototype.slice.call(o.spanId):o.spanId),o.traceState!=null&&o.hasOwnProperty("traceState")&&(u.traceState=o.traceState),o.parentSpanId!=null&&o.hasOwnProperty("parentSpanId")&&(u.parentSpanId=r.bytes===String?E.base64.encode(o.parentSpanId,0,o.parentSpanId.length):r.bytes===Array?Array.prototype.slice.call(o.parentSpanId):o.parentSpanId),o.name!=null&&o.hasOwnProperty("name")&&(u.name=o.name),o.kind!=null&&o.hasOwnProperty("kind")&&(u.kind=r.enums===String?d.opentelemetry.proto.trace.v1.Span.SpanKind[o.kind]===void 0?o.kind:d.opentelemetry.proto.trace.v1.Span.SpanKind[o.kind]:o.kind),o.startTimeUnixNano!=null&&o.hasOwnProperty("startTimeUnixNano")&&(typeof o.startTimeUnixNano=="number"?u.startTimeUnixNano=r.longs===String?String(o.startTimeUnixNano):o.startTimeUnixNano:u.startTimeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.startTimeUnixNano):r.longs===Number?new E.LongBits(o.startTimeUnixNano.low>>>0,o.startTimeUnixNano.high>>>0).toNumber():o.startTimeUnixNano),o.endTimeUnixNano!=null&&o.hasOwnProperty("endTimeUnixNano")&&(typeof o.endTimeUnixNano=="number"?u.endTimeUnixNano=r.longs===String?String(o.endTimeUnixNano):o.endTimeUnixNano:u.endTimeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.endTimeUnixNano):r.longs===Number?new E.LongBits(o.endTimeUnixNano.low>>>0,o.endTimeUnixNano.high>>>0).toNumber():o.endTimeUnixNano),o.attributes&&o.attributes.length){u.attributes=[];for(var c=0;c<o.attributes.length;++c)u.attributes[c]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[c],r)}if(o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=o.droppedAttributesCount),o.events&&o.events.length){u.events=[];for(var c=0;c<o.events.length;++c)u.events[c]=d.opentelemetry.proto.trace.v1.Span.Event.toObject(o.events[c],r)}if(o.droppedEventsCount!=null&&o.hasOwnProperty("droppedEventsCount")&&(u.droppedEventsCount=o.droppedEventsCount),o.links&&o.links.length){u.links=[];for(var c=0;c<o.links.length;++c)u.links[c]=d.opentelemetry.proto.trace.v1.Span.Link.toObject(o.links[c],r)}return o.droppedLinksCount!=null&&o.hasOwnProperty("droppedLinksCount")&&(u.droppedLinksCount=o.droppedLinksCount),o.status!=null&&o.hasOwnProperty("status")&&(u.status=d.opentelemetry.proto.trace.v1.Status.toObject(o.status,r)),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.Span"},a.SpanKind=function(){var s={},o=Object.create(s);return o[s[0]="SPAN_KIND_UNSPECIFIED"]=0,o[s[1]="SPAN_KIND_INTERNAL"]=1,o[s[2]="SPAN_KIND_SERVER"]=2,o[s[3]="SPAN_KIND_CLIENT"]=3,o[s[4]="SPAN_KIND_PRODUCER"]=4,o[s[5]="SPAN_KIND_CONSUMER"]=5,o}(),a.Event=function(){function s(o){if(this.attributes=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.timeUnixNano=null,s.prototype.name=null,s.prototype.attributes=E.emptyArray,s.prototype.droppedAttributesCount=null,s.create=function(r){return new s(r)},s.encode=function(r,u){if(u||(u=V.create()),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&u.uint32(9).fixed64(r.timeUnixNano),r.name!=null&&Object.hasOwnProperty.call(r,"name")&&u.uint32(18).string(r.name),r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],u.uint32(26).fork()).ldelim();return r.droppedAttributesCount!=null&&Object.hasOwnProperty.call(r,"droppedAttributesCount")&&u.uint32(32).uint32(r.droppedAttributesCount),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.trace.v1.Span.Event;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.timeUnixNano=r.fixed64();break}case 2:{c.name=r.string();break}case 3:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 4:{c.droppedAttributesCount=r.uint32();break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!E.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&E.isInteger(r.timeUnixNano.low)&&E.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.name!=null&&r.hasOwnProperty("name")&&!E.isString(r.name))return"name: string expected";if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var u=0;u<r.attributes.length;++u){var l=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[u]);if(l)return"attributes."+l}}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(r.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.trace.v1.Span.Event)return r;var u=new d.opentelemetry.proto.trace.v1.Span.Event;if(r.timeUnixNano!=null&&(E.Long?(u.timeUnixNano=E.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?u.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?u.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(u.timeUnixNano=new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.name!=null&&(u.name=String(r.name)),r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: array expected");u.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: object expected");u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}return r.droppedAttributesCount!=null&&(u.droppedAttributesCount=r.droppedAttributesCount>>>0),u},s.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.attributes=[]),u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.timeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.timeUnixNano=u.longs===String?"0":0;l.name="",l.droppedAttributesCount=0}if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=u.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.timeUnixNano):u.longs===Number?new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.name!=null&&r.hasOwnProperty("name")&&(l.name=r.name),r.attributes&&r.attributes.length){l.attributes=[];for(var p=0;p<r.attributes.length;++p)l.attributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[p],u)}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&(l.droppedAttributesCount=r.droppedAttributesCount),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.trace.v1.Span.Event"},s}(),a.Link=function(){function s(o){if(this.attributes=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.traceId=null,s.prototype.spanId=null,s.prototype.traceState=null,s.prototype.attributes=E.emptyArray,s.prototype.droppedAttributesCount=null,s.create=function(r){return new s(r)},s.encode=function(r,u){if(u||(u=V.create()),r.traceId!=null&&Object.hasOwnProperty.call(r,"traceId")&&u.uint32(10).bytes(r.traceId),r.spanId!=null&&Object.hasOwnProperty.call(r,"spanId")&&u.uint32(18).bytes(r.spanId),r.traceState!=null&&Object.hasOwnProperty.call(r,"traceState")&&u.uint32(26).string(r.traceState),r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],u.uint32(34).fork()).ldelim();return r.droppedAttributesCount!=null&&Object.hasOwnProperty.call(r,"droppedAttributesCount")&&u.uint32(40).uint32(r.droppedAttributesCount),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.trace.v1.Span.Link;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.traceId=r.bytes();break}case 2:{c.spanId=r.bytes();break}case 3:{c.traceState=r.string();break}case 4:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 5:{c.droppedAttributesCount=r.uint32();break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.traceId!=null&&r.hasOwnProperty("traceId")&&!(r.traceId&&typeof r.traceId.length=="number"||E.isString(r.traceId)))return"traceId: buffer expected";if(r.spanId!=null&&r.hasOwnProperty("spanId")&&!(r.spanId&&typeof r.spanId.length=="number"||E.isString(r.spanId)))return"spanId: buffer expected";if(r.traceState!=null&&r.hasOwnProperty("traceState")&&!E.isString(r.traceState))return"traceState: string expected";if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var u=0;u<r.attributes.length;++u){var l=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[u]);if(l)return"attributes."+l}}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(r.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.trace.v1.Span.Link)return r;var u=new d.opentelemetry.proto.trace.v1.Span.Link;if(r.traceId!=null&&(typeof r.traceId=="string"?E.base64.decode(r.traceId,u.traceId=E.newBuffer(E.base64.length(r.traceId)),0):r.traceId.length>=0&&(u.traceId=r.traceId)),r.spanId!=null&&(typeof r.spanId=="string"?E.base64.decode(r.spanId,u.spanId=E.newBuffer(E.base64.length(r.spanId)),0):r.spanId.length>=0&&(u.spanId=r.spanId)),r.traceState!=null&&(u.traceState=String(r.traceState)),r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: array expected");u.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: object expected");u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}return r.droppedAttributesCount!=null&&(u.droppedAttributesCount=r.droppedAttributesCount>>>0),u},s.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.attributes=[]),u.defaults&&(u.bytes===String?l.traceId="":(l.traceId=[],u.bytes!==Array&&(l.traceId=E.newBuffer(l.traceId))),u.bytes===String?l.spanId="":(l.spanId=[],u.bytes!==Array&&(l.spanId=E.newBuffer(l.spanId))),l.traceState="",l.droppedAttributesCount=0),r.traceId!=null&&r.hasOwnProperty("traceId")&&(l.traceId=u.bytes===String?E.base64.encode(r.traceId,0,r.traceId.length):u.bytes===Array?Array.prototype.slice.call(r.traceId):r.traceId),r.spanId!=null&&r.hasOwnProperty("spanId")&&(l.spanId=u.bytes===String?E.base64.encode(r.spanId,0,r.spanId.length):u.bytes===Array?Array.prototype.slice.call(r.spanId):r.spanId),r.traceState!=null&&r.hasOwnProperty("traceState")&&(l.traceState=r.traceState),r.attributes&&r.attributes.length){l.attributes=[];for(var c=0;c<r.attributes.length;++c)l.attributes[c]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[c],u)}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&(l.droppedAttributesCount=r.droppedAttributesCount),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.trace.v1.Span.Link"},s}(),a}(),i.Status=function(){function a(s){if(s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.message=null,a.prototype.code=null,a.create=function(o){return new a(o)},a.encode=function(o,r){return r||(r=V.create()),o.message!=null&&Object.hasOwnProperty.call(o,"message")&&r.uint32(18).string(o.message),o.code!=null&&Object.hasOwnProperty.call(o,"code")&&r.uint32(24).int32(o.code),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.trace.v1.Status;o.pos<u;){var c=o.uint32();switch(c>>>3){case 2:{l.message=o.string();break}case 3:{l.code=o.int32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.message!=null&&o.hasOwnProperty("message")&&!E.isString(o.message))return"message: string expected";if(o.code!=null&&o.hasOwnProperty("code"))switch(o.code){default:return"code: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.trace.v1.Status)return o;var r=new d.opentelemetry.proto.trace.v1.Status;switch(o.message!=null&&(r.message=String(o.message)),o.code){default:if(typeof o.code=="number"){r.code=o.code;break}break;case"STATUS_CODE_UNSET":case 0:r.code=0;break;case"STATUS_CODE_OK":case 1:r.code=1;break;case"STATUS_CODE_ERROR":case 2:r.code=2;break}return r},a.toObject=function(o,r){r||(r={});var u={};return r.defaults&&(u.message="",u.code=r.enums===String?"STATUS_CODE_UNSET":0),o.message!=null&&o.hasOwnProperty("message")&&(u.message=o.message),o.code!=null&&o.hasOwnProperty("code")&&(u.code=r.enums===String?d.opentelemetry.proto.trace.v1.Status.StatusCode[o.code]===void 0?o.code:d.opentelemetry.proto.trace.v1.Status.StatusCode[o.code]:o.code),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.Status"},a.StatusCode=function(){var s={},o=Object.create(s);return o[s[0]="STATUS_CODE_UNSET"]=0,o[s[1]="STATUS_CODE_OK"]=1,o[s[2]="STATUS_CODE_ERROR"]=2,o}(),a}(),i}(),n}(),e.collector=function(){var n={};return n.trace=function(){var i={};return i.v1=function(){var a={};return a.TraceService=function(){function s(o,r,u){I.rpc.Service.call(this,o,r,u)}return(s.prototype=Object.create(I.rpc.Service.prototype)).constructor=s,s.create=function(r,u,l){return new this(r,u,l)},Object.defineProperty(s.prototype.export=function o(r,u){return this.rpcCall(o,d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,r,u)},"name",{value:"Export"}),s}(),a.ExportTraceServiceRequest=function(){function s(o){if(this.resourceSpans=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.resourceSpans=E.emptyArray,s.create=function(r){return new s(r)},s.encode=function(r,u){if(u||(u=V.create()),r.resourceSpans!=null&&r.resourceSpans.length)for(var l=0;l<r.resourceSpans.length;++l)d.opentelemetry.proto.trace.v1.ResourceSpans.encode(r.resourceSpans[l],u.uint32(10).fork()).ldelim();return u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.resourceSpans&&c.resourceSpans.length||(c.resourceSpans=[]),c.resourceSpans.push(d.opentelemetry.proto.trace.v1.ResourceSpans.decode(r,r.uint32()));break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.resourceSpans!=null&&r.hasOwnProperty("resourceSpans")){if(!Array.isArray(r.resourceSpans))return"resourceSpans: array expected";for(var u=0;u<r.resourceSpans.length;++u){var l=d.opentelemetry.proto.trace.v1.ResourceSpans.verify(r.resourceSpans[u]);if(l)return"resourceSpans."+l}}return null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest)return r;var u=new d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;if(r.resourceSpans){if(!Array.isArray(r.resourceSpans))throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: array expected");u.resourceSpans=[];for(var l=0;l<r.resourceSpans.length;++l){if(typeof r.resourceSpans[l]!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: object expected");u.resourceSpans[l]=d.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(r.resourceSpans[l])}}return u},s.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.resourceSpans=[]),r.resourceSpans&&r.resourceSpans.length){l.resourceSpans=[];for(var c=0;c<r.resourceSpans.length;++c)l.resourceSpans[c]=d.opentelemetry.proto.trace.v1.ResourceSpans.toObject(r.resourceSpans[c],u)}return l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest"},s}(),a.ExportTraceServiceResponse=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.partialSuccess=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.partialSuccess!=null&&Object.hasOwnProperty.call(r,"partialSuccess")&&d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.encode(r.partialSuccess,u.uint32(10).fork()).ldelim(),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.partialSuccess=d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.decode(r,r.uint32());break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")){var u=d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.verify(r.partialSuccess);if(u)return"partialSuccess."+u}return null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse)return r;var u=new d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;if(r.partialSuccess!=null){if(typeof r.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse.partialSuccess: object expected");u.partialSuccess=d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.fromObject(r.partialSuccess)}return u},s.toObject=function(r,u){u||(u={});var l={};return u.defaults&&(l.partialSuccess=null),r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")&&(l.partialSuccess=d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.toObject(r.partialSuccess,u)),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse"},s}(),a.ExportTracePartialSuccess=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.rejectedSpans=null,s.prototype.errorMessage=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.rejectedSpans!=null&&Object.hasOwnProperty.call(r,"rejectedSpans")&&u.uint32(8).int64(r.rejectedSpans),r.errorMessage!=null&&Object.hasOwnProperty.call(r,"errorMessage")&&u.uint32(18).string(r.errorMessage),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.rejectedSpans=r.int64();break}case 2:{c.errorMessage=r.string();break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){return typeof r!="object"||r===null?"object expected":r.rejectedSpans!=null&&r.hasOwnProperty("rejectedSpans")&&!E.isInteger(r.rejectedSpans)&&!(r.rejectedSpans&&E.isInteger(r.rejectedSpans.low)&&E.isInteger(r.rejectedSpans.high))?"rejectedSpans: integer|Long expected":r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&!E.isString(r.errorMessage)?"errorMessage: string expected":null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess)return r;var u=new d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;return r.rejectedSpans!=null&&(E.Long?(u.rejectedSpans=E.Long.fromValue(r.rejectedSpans)).unsigned=!1:typeof r.rejectedSpans=="string"?u.rejectedSpans=parseInt(r.rejectedSpans,10):typeof r.rejectedSpans=="number"?u.rejectedSpans=r.rejectedSpans:typeof r.rejectedSpans=="object"&&(u.rejectedSpans=new E.LongBits(r.rejectedSpans.low>>>0,r.rejectedSpans.high>>>0).toNumber())),r.errorMessage!=null&&(u.errorMessage=String(r.errorMessage)),u},s.toObject=function(r,u){u||(u={});var l={};if(u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.rejectedSpans=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.rejectedSpans=u.longs===String?"0":0;l.errorMessage=""}return r.rejectedSpans!=null&&r.hasOwnProperty("rejectedSpans")&&(typeof r.rejectedSpans=="number"?l.rejectedSpans=u.longs===String?String(r.rejectedSpans):r.rejectedSpans:l.rejectedSpans=u.longs===String?E.Long.prototype.toString.call(r.rejectedSpans):u.longs===Number?new E.LongBits(r.rejectedSpans.low>>>0,r.rejectedSpans.high>>>0).toNumber():r.rejectedSpans),r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&(l.errorMessage=r.errorMessage),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess"},s}(),a}(),i}(),n.metrics=function(){var i={};return i.v1=function(){var a={};return a.MetricsService=function(){function s(o,r,u){I.rpc.Service.call(this,o,r,u)}return(s.prototype=Object.create(I.rpc.Service.prototype)).constructor=s,s.create=function(r,u,l){return new this(r,u,l)},Object.defineProperty(s.prototype.export=function o(r,u){return this.rpcCall(o,d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,r,u)},"name",{value:"Export"}),s}(),a.ExportMetricsServiceRequest=function(){function s(o){if(this.resourceMetrics=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.resourceMetrics=E.emptyArray,s.create=function(r){return new s(r)},s.encode=function(r,u){if(u||(u=V.create()),r.resourceMetrics!=null&&r.resourceMetrics.length)for(var l=0;l<r.resourceMetrics.length;++l)d.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(r.resourceMetrics[l],u.uint32(10).fork()).ldelim();return u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.resourceMetrics&&c.resourceMetrics.length||(c.resourceMetrics=[]),c.resourceMetrics.push(d.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(r,r.uint32()));break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.resourceMetrics!=null&&r.hasOwnProperty("resourceMetrics")){if(!Array.isArray(r.resourceMetrics))return"resourceMetrics: array expected";for(var u=0;u<r.resourceMetrics.length;++u){var l=d.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(r.resourceMetrics[u]);if(l)return"resourceMetrics."+l}}return null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest)return r;var u=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;if(r.resourceMetrics){if(!Array.isArray(r.resourceMetrics))throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: array expected");u.resourceMetrics=[];for(var l=0;l<r.resourceMetrics.length;++l){if(typeof r.resourceMetrics[l]!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: object expected");u.resourceMetrics[l]=d.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(r.resourceMetrics[l])}}return u},s.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.resourceMetrics=[]),r.resourceMetrics&&r.resourceMetrics.length){l.resourceMetrics=[];for(var c=0;c<r.resourceMetrics.length;++c)l.resourceMetrics[c]=d.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(r.resourceMetrics[c],u)}return l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest"},s}(),a.ExportMetricsServiceResponse=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.partialSuccess=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.partialSuccess!=null&&Object.hasOwnProperty.call(r,"partialSuccess")&&d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.encode(r.partialSuccess,u.uint32(10).fork()).ldelim(),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.partialSuccess=d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.decode(r,r.uint32());break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")){var u=d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.verify(r.partialSuccess);if(u)return"partialSuccess."+u}return null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse)return r;var u=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;if(r.partialSuccess!=null){if(typeof r.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse.partialSuccess: object expected");u.partialSuccess=d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.fromObject(r.partialSuccess)}return u},s.toObject=function(r,u){u||(u={});var l={};return u.defaults&&(l.partialSuccess=null),r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")&&(l.partialSuccess=d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.toObject(r.partialSuccess,u)),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse"},s}(),a.ExportMetricsPartialSuccess=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.rejectedDataPoints=null,s.prototype.errorMessage=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.rejectedDataPoints!=null&&Object.hasOwnProperty.call(r,"rejectedDataPoints")&&u.uint32(8).int64(r.rejectedDataPoints),r.errorMessage!=null&&Object.hasOwnProperty.call(r,"errorMessage")&&u.uint32(18).string(r.errorMessage),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.rejectedDataPoints=r.int64();break}case 2:{c.errorMessage=r.string();break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){return typeof r!="object"||r===null?"object expected":r.rejectedDataPoints!=null&&r.hasOwnProperty("rejectedDataPoints")&&!E.isInteger(r.rejectedDataPoints)&&!(r.rejectedDataPoints&&E.isInteger(r.rejectedDataPoints.low)&&E.isInteger(r.rejectedDataPoints.high))?"rejectedDataPoints: integer|Long expected":r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&!E.isString(r.errorMessage)?"errorMessage: string expected":null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess)return r;var u=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;return r.rejectedDataPoints!=null&&(E.Long?(u.rejectedDataPoints=E.Long.fromValue(r.rejectedDataPoints)).unsigned=!1:typeof r.rejectedDataPoints=="string"?u.rejectedDataPoints=parseInt(r.rejectedDataPoints,10):typeof r.rejectedDataPoints=="number"?u.rejectedDataPoints=r.rejectedDataPoints:typeof r.rejectedDataPoints=="object"&&(u.rejectedDataPoints=new E.LongBits(r.rejectedDataPoints.low>>>0,r.rejectedDataPoints.high>>>0).toNumber())),r.errorMessage!=null&&(u.errorMessage=String(r.errorMessage)),u},s.toObject=function(r,u){u||(u={});var l={};if(u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.rejectedDataPoints=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.rejectedDataPoints=u.longs===String?"0":0;l.errorMessage=""}return r.rejectedDataPoints!=null&&r.hasOwnProperty("rejectedDataPoints")&&(typeof r.rejectedDataPoints=="number"?l.rejectedDataPoints=u.longs===String?String(r.rejectedDataPoints):r.rejectedDataPoints:l.rejectedDataPoints=u.longs===String?E.Long.prototype.toString.call(r.rejectedDataPoints):u.longs===Number?new E.LongBits(r.rejectedDataPoints.low>>>0,r.rejectedDataPoints.high>>>0).toNumber():r.rejectedDataPoints),r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&(l.errorMessage=r.errorMessage),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess"},s}(),a}(),i}(),n.logs=function(){var i={};return i.v1=function(){var a={};return a.LogsService=function(){function s(o,r,u){I.rpc.Service.call(this,o,r,u)}return(s.prototype=Object.create(I.rpc.Service.prototype)).constructor=s,s.create=function(r,u,l){return new this(r,u,l)},Object.defineProperty(s.prototype.export=function o(r,u){return this.rpcCall(o,d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,r,u)},"name",{value:"Export"}),s}(),a.ExportLogsServiceRequest=function(){function s(o){if(this.resourceLogs=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.resourceLogs=E.emptyArray,s.create=function(r){return new s(r)},s.encode=function(r,u){if(u||(u=V.create()),r.resourceLogs!=null&&r.resourceLogs.length)for(var l=0;l<r.resourceLogs.length;++l)d.opentelemetry.proto.logs.v1.ResourceLogs.encode(r.resourceLogs[l],u.uint32(10).fork()).ldelim();return u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.resourceLogs&&c.resourceLogs.length||(c.resourceLogs=[]),c.resourceLogs.push(d.opentelemetry.proto.logs.v1.ResourceLogs.decode(r,r.uint32()));break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.resourceLogs!=null&&r.hasOwnProperty("resourceLogs")){if(!Array.isArray(r.resourceLogs))return"resourceLogs: array expected";for(var u=0;u<r.resourceLogs.length;++u){var l=d.opentelemetry.proto.logs.v1.ResourceLogs.verify(r.resourceLogs[u]);if(l)return"resourceLogs."+l}}return null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest)return r;var u=new d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;if(r.resourceLogs){if(!Array.isArray(r.resourceLogs))throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: array expected");u.resourceLogs=[];for(var l=0;l<r.resourceLogs.length;++l){if(typeof r.resourceLogs[l]!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: object expected");u.resourceLogs[l]=d.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(r.resourceLogs[l])}}return u},s.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.resourceLogs=[]),r.resourceLogs&&r.resourceLogs.length){l.resourceLogs=[];for(var c=0;c<r.resourceLogs.length;++c)l.resourceLogs[c]=d.opentelemetry.proto.logs.v1.ResourceLogs.toObject(r.resourceLogs[c],u)}return l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest"},s}(),a.ExportLogsServiceResponse=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.partialSuccess=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.partialSuccess!=null&&Object.hasOwnProperty.call(r,"partialSuccess")&&d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.encode(r.partialSuccess,u.uint32(10).fork()).ldelim(),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.partialSuccess=d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.decode(r,r.uint32());break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")){var u=d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.verify(r.partialSuccess);if(u)return"partialSuccess."+u}return null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse)return r;var u=new d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;if(r.partialSuccess!=null){if(typeof r.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse.partialSuccess: object expected");u.partialSuccess=d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.fromObject(r.partialSuccess)}return u},s.toObject=function(r,u){u||(u={});var l={};return u.defaults&&(l.partialSuccess=null),r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")&&(l.partialSuccess=d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.toObject(r.partialSuccess,u)),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse"},s}(),a.ExportLogsPartialSuccess=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.rejectedLogRecords=null,s.prototype.errorMessage=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.rejectedLogRecords!=null&&Object.hasOwnProperty.call(r,"rejectedLogRecords")&&u.uint32(8).int64(r.rejectedLogRecords),r.errorMessage!=null&&Object.hasOwnProperty.call(r,"errorMessage")&&u.uint32(18).string(r.errorMessage),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.rejectedLogRecords=r.int64();break}case 2:{c.errorMessage=r.string();break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){return typeof r!="object"||r===null?"object expected":r.rejectedLogRecords!=null&&r.hasOwnProperty("rejectedLogRecords")&&!E.isInteger(r.rejectedLogRecords)&&!(r.rejectedLogRecords&&E.isInteger(r.rejectedLogRecords.low)&&E.isInteger(r.rejectedLogRecords.high))?"rejectedLogRecords: integer|Long expected":r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&!E.isString(r.errorMessage)?"errorMessage: string expected":null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess)return r;var u=new d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;return r.rejectedLogRecords!=null&&(E.Long?(u.rejectedLogRecords=E.Long.fromValue(r.rejectedLogRecords)).unsigned=!1:typeof r.rejectedLogRecords=="string"?u.rejectedLogRecords=parseInt(r.rejectedLogRecords,10):typeof r.rejectedLogRecords=="number"?u.rejectedLogRecords=r.rejectedLogRecords:typeof r.rejectedLogRecords=="object"&&(u.rejectedLogRecords=new E.LongBits(r.rejectedLogRecords.low>>>0,r.rejectedLogRecords.high>>>0).toNumber())),r.errorMessage!=null&&(u.errorMessage=String(r.errorMessage)),u},s.toObject=function(r,u){u||(u={});var l={};if(u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.rejectedLogRecords=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.rejectedLogRecords=u.longs===String?"0":0;l.errorMessage=""}return r.rejectedLogRecords!=null&&r.hasOwnProperty("rejectedLogRecords")&&(typeof r.rejectedLogRecords=="number"?l.rejectedLogRecords=u.longs===String?String(r.rejectedLogRecords):r.rejectedLogRecords:l.rejectedLogRecords=u.longs===String?E.Long.prototype.toString.call(r.rejectedLogRecords):u.longs===Number?new E.LongBits(r.rejectedLogRecords.low>>>0,r.rejectedLogRecords.high>>>0).toNumber():r.rejectedLogRecords),r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&(l.errorMessage=r.errorMessage),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess"},s}(),a}(),i}(),n}(),e.metrics=function(){var n={};return n.v1=function(){var i={};return i.MetricsData=function(){function a(s){if(this.resourceMetrics=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.resourceMetrics=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resourceMetrics!=null&&o.resourceMetrics.length)for(var u=0;u<o.resourceMetrics.length;++u)d.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(o.resourceMetrics[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.MetricsData;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.resourceMetrics&&l.resourceMetrics.length||(l.resourceMetrics=[]),l.resourceMetrics.push(d.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resourceMetrics!=null&&o.hasOwnProperty("resourceMetrics")){if(!Array.isArray(o.resourceMetrics))return"resourceMetrics: array expected";for(var r=0;r<o.resourceMetrics.length;++r){var u=d.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(o.resourceMetrics[r]);if(u)return"resourceMetrics."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.MetricsData)return o;var r=new d.opentelemetry.proto.metrics.v1.MetricsData;if(o.resourceMetrics){if(!Array.isArray(o.resourceMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: array expected");r.resourceMetrics=[];for(var u=0;u<o.resourceMetrics.length;++u){if(typeof o.resourceMetrics[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: object expected");r.resourceMetrics[u]=d.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(o.resourceMetrics[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.resourceMetrics=[]),o.resourceMetrics&&o.resourceMetrics.length){u.resourceMetrics=[];for(var l=0;l<o.resourceMetrics.length;++l)u.resourceMetrics[l]=d.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(o.resourceMetrics[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.MetricsData"},a}(),i.ResourceMetrics=function(){function a(s){if(this.scopeMetrics=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.resource=null,a.prototype.scopeMetrics=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resource!=null&&Object.hasOwnProperty.call(o,"resource")&&d.opentelemetry.proto.resource.v1.Resource.encode(o.resource,r.uint32(10).fork()).ldelim(),o.scopeMetrics!=null&&o.scopeMetrics.length)for(var u=0;u<o.scopeMetrics.length;++u)d.opentelemetry.proto.metrics.v1.ScopeMetrics.encode(o.scopeMetrics[u],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.ResourceMetrics;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.resource=d.opentelemetry.proto.resource.v1.Resource.decode(o,o.uint32());break}case 2:{l.scopeMetrics&&l.scopeMetrics.length||(l.scopeMetrics=[]),l.scopeMetrics.push(d.opentelemetry.proto.metrics.v1.ScopeMetrics.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resource!=null&&o.hasOwnProperty("resource")){var r=d.opentelemetry.proto.resource.v1.Resource.verify(o.resource);if(r)return"resource."+r}if(o.scopeMetrics!=null&&o.hasOwnProperty("scopeMetrics")){if(!Array.isArray(o.scopeMetrics))return"scopeMetrics: array expected";for(var u=0;u<o.scopeMetrics.length;++u){var r=d.opentelemetry.proto.metrics.v1.ScopeMetrics.verify(o.scopeMetrics[u]);if(r)return"scopeMetrics."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.ResourceMetrics)return o;var r=new d.opentelemetry.proto.metrics.v1.ResourceMetrics;if(o.resource!=null){if(typeof o.resource!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.resource: object expected");r.resource=d.opentelemetry.proto.resource.v1.Resource.fromObject(o.resource)}if(o.scopeMetrics){if(!Array.isArray(o.scopeMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: array expected");r.scopeMetrics=[];for(var u=0;u<o.scopeMetrics.length;++u){if(typeof o.scopeMetrics[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: object expected");r.scopeMetrics[u]=d.opentelemetry.proto.metrics.v1.ScopeMetrics.fromObject(o.scopeMetrics[u])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.scopeMetrics=[]),r.defaults&&(u.resource=null,u.schemaUrl=""),o.resource!=null&&o.hasOwnProperty("resource")&&(u.resource=d.opentelemetry.proto.resource.v1.Resource.toObject(o.resource,r)),o.scopeMetrics&&o.scopeMetrics.length){u.scopeMetrics=[];for(var l=0;l<o.scopeMetrics.length;++l)u.scopeMetrics[l]=d.opentelemetry.proto.metrics.v1.ScopeMetrics.toObject(o.scopeMetrics[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(u.schemaUrl=o.schemaUrl),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.ResourceMetrics"},a}(),i.ScopeMetrics=function(){function a(s){if(this.metrics=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.scope=null,a.prototype.metrics=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.scope!=null&&Object.hasOwnProperty.call(o,"scope")&&d.opentelemetry.proto.common.v1.InstrumentationScope.encode(o.scope,r.uint32(10).fork()).ldelim(),o.metrics!=null&&o.metrics.length)for(var u=0;u<o.metrics.length;++u)d.opentelemetry.proto.metrics.v1.Metric.encode(o.metrics[u],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.ScopeMetrics;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.decode(o,o.uint32());break}case 2:{l.metrics&&l.metrics.length||(l.metrics=[]),l.metrics.push(d.opentelemetry.proto.metrics.v1.Metric.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.scope!=null&&o.hasOwnProperty("scope")){var r=d.opentelemetry.proto.common.v1.InstrumentationScope.verify(o.scope);if(r)return"scope."+r}if(o.metrics!=null&&o.hasOwnProperty("metrics")){if(!Array.isArray(o.metrics))return"metrics: array expected";for(var u=0;u<o.metrics.length;++u){var r=d.opentelemetry.proto.metrics.v1.Metric.verify(o.metrics[u]);if(r)return"metrics."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.ScopeMetrics)return o;var r=new d.opentelemetry.proto.metrics.v1.ScopeMetrics;if(o.scope!=null){if(typeof o.scope!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.scope: object expected");r.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(o.scope)}if(o.metrics){if(!Array.isArray(o.metrics))throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: array expected");r.metrics=[];for(var u=0;u<o.metrics.length;++u){if(typeof o.metrics[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: object expected");r.metrics[u]=d.opentelemetry.proto.metrics.v1.Metric.fromObject(o.metrics[u])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.metrics=[]),r.defaults&&(u.scope=null,u.schemaUrl=""),o.scope!=null&&o.hasOwnProperty("scope")&&(u.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.toObject(o.scope,r)),o.metrics&&o.metrics.length){u.metrics=[];for(var l=0;l<o.metrics.length;++l)u.metrics[l]=d.opentelemetry.proto.metrics.v1.Metric.toObject(o.metrics[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(u.schemaUrl=o.schemaUrl),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.ScopeMetrics"},a}(),i.Metric=function(){function a(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}a.prototype.name=null,a.prototype.description=null,a.prototype.unit=null,a.prototype.gauge=null,a.prototype.sum=null,a.prototype.histogram=null,a.prototype.exponentialHistogram=null,a.prototype.summary=null;var s;return Object.defineProperty(a.prototype,"data",{get:E.oneOfGetter(s=["gauge","sum","histogram","exponentialHistogram","summary"]),set:E.oneOfSetter(s)}),a.create=function(r){return new a(r)},a.encode=function(r,u){return u||(u=V.create()),r.name!=null&&Object.hasOwnProperty.call(r,"name")&&u.uint32(10).string(r.name),r.description!=null&&Object.hasOwnProperty.call(r,"description")&&u.uint32(18).string(r.description),r.unit!=null&&Object.hasOwnProperty.call(r,"unit")&&u.uint32(26).string(r.unit),r.gauge!=null&&Object.hasOwnProperty.call(r,"gauge")&&d.opentelemetry.proto.metrics.v1.Gauge.encode(r.gauge,u.uint32(42).fork()).ldelim(),r.sum!=null&&Object.hasOwnProperty.call(r,"sum")&&d.opentelemetry.proto.metrics.v1.Sum.encode(r.sum,u.uint32(58).fork()).ldelim(),r.histogram!=null&&Object.hasOwnProperty.call(r,"histogram")&&d.opentelemetry.proto.metrics.v1.Histogram.encode(r.histogram,u.uint32(74).fork()).ldelim(),r.exponentialHistogram!=null&&Object.hasOwnProperty.call(r,"exponentialHistogram")&&d.opentelemetry.proto.metrics.v1.ExponentialHistogram.encode(r.exponentialHistogram,u.uint32(82).fork()).ldelim(),r.summary!=null&&Object.hasOwnProperty.call(r,"summary")&&d.opentelemetry.proto.metrics.v1.Summary.encode(r.summary,u.uint32(90).fork()).ldelim(),u},a.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},a.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.metrics.v1.Metric;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.name=r.string();break}case 2:{c.description=r.string();break}case 3:{c.unit=r.string();break}case 5:{c.gauge=d.opentelemetry.proto.metrics.v1.Gauge.decode(r,r.uint32());break}case 7:{c.sum=d.opentelemetry.proto.metrics.v1.Sum.decode(r,r.uint32());break}case 9:{c.histogram=d.opentelemetry.proto.metrics.v1.Histogram.decode(r,r.uint32());break}case 10:{c.exponentialHistogram=d.opentelemetry.proto.metrics.v1.ExponentialHistogram.decode(r,r.uint32());break}case 11:{c.summary=d.opentelemetry.proto.metrics.v1.Summary.decode(r,r.uint32());break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var u={};if(r.name!=null&&r.hasOwnProperty("name")&&!E.isString(r.name))return"name: string expected";if(r.description!=null&&r.hasOwnProperty("description")&&!E.isString(r.description))return"description: string expected";if(r.unit!=null&&r.hasOwnProperty("unit")&&!E.isString(r.unit))return"unit: string expected";if(r.gauge!=null&&r.hasOwnProperty("gauge")){u.data=1;{var l=d.opentelemetry.proto.metrics.v1.Gauge.verify(r.gauge);if(l)return"gauge."+l}}if(r.sum!=null&&r.hasOwnProperty("sum")){if(u.data===1)return"data: multiple values";u.data=1;{var l=d.opentelemetry.proto.metrics.v1.Sum.verify(r.sum);if(l)return"sum."+l}}if(r.histogram!=null&&r.hasOwnProperty("histogram")){if(u.data===1)return"data: multiple values";u.data=1;{var l=d.opentelemetry.proto.metrics.v1.Histogram.verify(r.histogram);if(l)return"histogram."+l}}if(r.exponentialHistogram!=null&&r.hasOwnProperty("exponentialHistogram")){if(u.data===1)return"data: multiple values";u.data=1;{var l=d.opentelemetry.proto.metrics.v1.ExponentialHistogram.verify(r.exponentialHistogram);if(l)return"exponentialHistogram."+l}}if(r.summary!=null&&r.hasOwnProperty("summary")){if(u.data===1)return"data: multiple values";u.data=1;{var l=d.opentelemetry.proto.metrics.v1.Summary.verify(r.summary);if(l)return"summary."+l}}return null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.Metric)return r;var u=new d.opentelemetry.proto.metrics.v1.Metric;if(r.name!=null&&(u.name=String(r.name)),r.description!=null&&(u.description=String(r.description)),r.unit!=null&&(u.unit=String(r.unit)),r.gauge!=null){if(typeof r.gauge!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.gauge: object expected");u.gauge=d.opentelemetry.proto.metrics.v1.Gauge.fromObject(r.gauge)}if(r.sum!=null){if(typeof r.sum!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.sum: object expected");u.sum=d.opentelemetry.proto.metrics.v1.Sum.fromObject(r.sum)}if(r.histogram!=null){if(typeof r.histogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.histogram: object expected");u.histogram=d.opentelemetry.proto.metrics.v1.Histogram.fromObject(r.histogram)}if(r.exponentialHistogram!=null){if(typeof r.exponentialHistogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.exponentialHistogram: object expected");u.exponentialHistogram=d.opentelemetry.proto.metrics.v1.ExponentialHistogram.fromObject(r.exponentialHistogram)}if(r.summary!=null){if(typeof r.summary!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.summary: object expected");u.summary=d.opentelemetry.proto.metrics.v1.Summary.fromObject(r.summary)}return u},a.toObject=function(r,u){u||(u={});var l={};return u.defaults&&(l.name="",l.description="",l.unit=""),r.name!=null&&r.hasOwnProperty("name")&&(l.name=r.name),r.description!=null&&r.hasOwnProperty("description")&&(l.description=r.description),r.unit!=null&&r.hasOwnProperty("unit")&&(l.unit=r.unit),r.gauge!=null&&r.hasOwnProperty("gauge")&&(l.gauge=d.opentelemetry.proto.metrics.v1.Gauge.toObject(r.gauge,u),u.oneofs&&(l.data="gauge")),r.sum!=null&&r.hasOwnProperty("sum")&&(l.sum=d.opentelemetry.proto.metrics.v1.Sum.toObject(r.sum,u),u.oneofs&&(l.data="sum")),r.histogram!=null&&r.hasOwnProperty("histogram")&&(l.histogram=d.opentelemetry.proto.metrics.v1.Histogram.toObject(r.histogram,u),u.oneofs&&(l.data="histogram")),r.exponentialHistogram!=null&&r.hasOwnProperty("exponentialHistogram")&&(l.exponentialHistogram=d.opentelemetry.proto.metrics.v1.ExponentialHistogram.toObject(r.exponentialHistogram,u),u.oneofs&&(l.data="exponentialHistogram")),r.summary!=null&&r.hasOwnProperty("summary")&&(l.summary=d.opentelemetry.proto.metrics.v1.Summary.toObject(r.summary,u),u.oneofs&&(l.data="summary")),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.Metric"},a}(),i.Gauge=function(){function a(s){if(this.dataPoints=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.dataPoints=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.dataPoints!=null&&o.dataPoints.length)for(var u=0;u<o.dataPoints.length;++u)d.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(o.dataPoints[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.Gauge;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var u=d.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(o.dataPoints[r]);if(u)return"dataPoints."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.Gauge)return o;var r=new d.opentelemetry.proto.metrics.v1.Gauge;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: array expected");r.dataPoints=[];for(var u=0;u<o.dataPoints.length;++u){if(typeof o.dataPoints[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: object expected");r.dataPoints[u]=d.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(o.dataPoints[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.dataPoints=[]),o.dataPoints&&o.dataPoints.length){u.dataPoints=[];for(var l=0;l<o.dataPoints.length;++l)u.dataPoints[l]=d.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(o.dataPoints[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.Gauge"},a}(),i.Sum=function(){function a(s){if(this.dataPoints=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.dataPoints=E.emptyArray,a.prototype.aggregationTemporality=null,a.prototype.isMonotonic=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.dataPoints!=null&&o.dataPoints.length)for(var u=0;u<o.dataPoints.length;++u)d.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(o.dataPoints[u],r.uint32(10).fork()).ldelim();return o.aggregationTemporality!=null&&Object.hasOwnProperty.call(o,"aggregationTemporality")&&r.uint32(16).int32(o.aggregationTemporality),o.isMonotonic!=null&&Object.hasOwnProperty.call(o,"isMonotonic")&&r.uint32(24).bool(o.isMonotonic),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.Sum;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(o,o.uint32()));break}case 2:{l.aggregationTemporality=o.int32();break}case 3:{l.isMonotonic=o.bool();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var u=d.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(o.dataPoints[r]);if(u)return"dataPoints."+u}}if(o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality"))switch(o.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return o.isMonotonic!=null&&o.hasOwnProperty("isMonotonic")&&typeof o.isMonotonic!="boolean"?"isMonotonic: boolean expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.Sum)return o;var r=new d.opentelemetry.proto.metrics.v1.Sum;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: array expected");r.dataPoints=[];for(var u=0;u<o.dataPoints.length;++u){if(typeof o.dataPoints[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: object expected");r.dataPoints[u]=d.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(o.dataPoints[u])}}switch(o.aggregationTemporality){default:if(typeof o.aggregationTemporality=="number"){r.aggregationTemporality=o.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:r.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:r.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:r.aggregationTemporality=2;break}return o.isMonotonic!=null&&(r.isMonotonic=!!o.isMonotonic),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.dataPoints=[]),r.defaults&&(u.aggregationTemporality=r.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0,u.isMonotonic=!1),o.dataPoints&&o.dataPoints.length){u.dataPoints=[];for(var l=0;l<o.dataPoints.length;++l)u.dataPoints[l]=d.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(o.dataPoints[l],r)}return o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality")&&(u.aggregationTemporality=r.enums===String?d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]===void 0?o.aggregationTemporality:d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]:o.aggregationTemporality),o.isMonotonic!=null&&o.hasOwnProperty("isMonotonic")&&(u.isMonotonic=o.isMonotonic),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.Sum"},a}(),i.Histogram=function(){function a(s){if(this.dataPoints=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.dataPoints=E.emptyArray,a.prototype.aggregationTemporality=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.dataPoints!=null&&o.dataPoints.length)for(var u=0;u<o.dataPoints.length;++u)d.opentelemetry.proto.metrics.v1.HistogramDataPoint.encode(o.dataPoints[u],r.uint32(10).fork()).ldelim();return o.aggregationTemporality!=null&&Object.hasOwnProperty.call(o,"aggregationTemporality")&&r.uint32(16).int32(o.aggregationTemporality),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.Histogram;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.HistogramDataPoint.decode(o,o.uint32()));break}case 2:{l.aggregationTemporality=o.int32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var u=d.opentelemetry.proto.metrics.v1.HistogramDataPoint.verify(o.dataPoints[r]);if(u)return"dataPoints."+u}}if(o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality"))switch(o.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.Histogram)return o;var r=new d.opentelemetry.proto.metrics.v1.Histogram;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: array expected");r.dataPoints=[];for(var u=0;u<o.dataPoints.length;++u){if(typeof o.dataPoints[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: object expected");r.dataPoints[u]=d.opentelemetry.proto.metrics.v1.HistogramDataPoint.fromObject(o.dataPoints[u])}}switch(o.aggregationTemporality){default:if(typeof o.aggregationTemporality=="number"){r.aggregationTemporality=o.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:r.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:r.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:r.aggregationTemporality=2;break}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.dataPoints=[]),r.defaults&&(u.aggregationTemporality=r.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),o.dataPoints&&o.dataPoints.length){u.dataPoints=[];for(var l=0;l<o.dataPoints.length;++l)u.dataPoints[l]=d.opentelemetry.proto.metrics.v1.HistogramDataPoint.toObject(o.dataPoints[l],r)}return o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality")&&(u.aggregationTemporality=r.enums===String?d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]===void 0?o.aggregationTemporality:d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]:o.aggregationTemporality),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.Histogram"},a}(),i.ExponentialHistogram=function(){function a(s){if(this.dataPoints=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.dataPoints=E.emptyArray,a.prototype.aggregationTemporality=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.dataPoints!=null&&o.dataPoints.length)for(var u=0;u<o.dataPoints.length;++u)d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.encode(o.dataPoints[u],r.uint32(10).fork()).ldelim();return o.aggregationTemporality!=null&&Object.hasOwnProperty.call(o,"aggregationTemporality")&&r.uint32(16).int32(o.aggregationTemporality),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.ExponentialHistogram;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.decode(o,o.uint32()));break}case 2:{l.aggregationTemporality=o.int32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var u=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.verify(o.dataPoints[r]);if(u)return"dataPoints."+u}}if(o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality"))switch(o.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.ExponentialHistogram)return o;var r=new d.opentelemetry.proto.metrics.v1.ExponentialHistogram;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: array expected");r.dataPoints=[];for(var u=0;u<o.dataPoints.length;++u){if(typeof o.dataPoints[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: object expected");r.dataPoints[u]=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.fromObject(o.dataPoints[u])}}switch(o.aggregationTemporality){default:if(typeof o.aggregationTemporality=="number"){r.aggregationTemporality=o.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:r.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:r.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:r.aggregationTemporality=2;break}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.dataPoints=[]),r.defaults&&(u.aggregationTemporality=r.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),o.dataPoints&&o.dataPoints.length){u.dataPoints=[];for(var l=0;l<o.dataPoints.length;++l)u.dataPoints[l]=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.toObject(o.dataPoints[l],r)}return o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality")&&(u.aggregationTemporality=r.enums===String?d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]===void 0?o.aggregationTemporality:d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]:o.aggregationTemporality),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.ExponentialHistogram"},a}(),i.Summary=function(){function a(s){if(this.dataPoints=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.dataPoints=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.dataPoints!=null&&o.dataPoints.length)for(var u=0;u<o.dataPoints.length;++u)d.opentelemetry.proto.metrics.v1.SummaryDataPoint.encode(o.dataPoints[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.Summary;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.SummaryDataPoint.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var u=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.verify(o.dataPoints[r]);if(u)return"dataPoints."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.Summary)return o;var r=new d.opentelemetry.proto.metrics.v1.Summary;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: array expected");r.dataPoints=[];for(var u=0;u<o.dataPoints.length;++u){if(typeof o.dataPoints[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: object expected");r.dataPoints[u]=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.fromObject(o.dataPoints[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.dataPoints=[]),o.dataPoints&&o.dataPoints.length){u.dataPoints=[];for(var l=0;l<o.dataPoints.length;++l)u.dataPoints[l]=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.toObject(o.dataPoints[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.Summary"},a}(),i.AggregationTemporality=function(){var a={},s=Object.create(a);return s[a[0]="AGGREGATION_TEMPORALITY_UNSPECIFIED"]=0,s[a[1]="AGGREGATION_TEMPORALITY_DELTA"]=1,s[a[2]="AGGREGATION_TEMPORALITY_CUMULATIVE"]=2,s}(),i.DataPointFlags=function(){var a={},s=Object.create(a);return s[a[0]="DATA_POINT_FLAGS_DO_NOT_USE"]=0,s[a[1]="DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK"]=1,s}(),i.NumberDataPoint=function(){function a(o){if(this.attributes=[],this.exemplars=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}a.prototype.attributes=E.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.asDouble=null,a.prototype.asInt=null,a.prototype.exemplars=E.emptyArray,a.prototype.flags=null;var s;return Object.defineProperty(a.prototype,"value",{get:E.oneOfGetter(s=["asDouble","asInt"]),set:E.oneOfSetter(s)}),a.create=function(r){return new a(r)},a.encode=function(r,u){if(u||(u=V.create()),r.startTimeUnixNano!=null&&Object.hasOwnProperty.call(r,"startTimeUnixNano")&&u.uint32(17).fixed64(r.startTimeUnixNano),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&u.uint32(25).fixed64(r.timeUnixNano),r.asDouble!=null&&Object.hasOwnProperty.call(r,"asDouble")&&u.uint32(33).double(r.asDouble),r.exemplars!=null&&r.exemplars.length)for(var l=0;l<r.exemplars.length;++l)d.opentelemetry.proto.metrics.v1.Exemplar.encode(r.exemplars[l],u.uint32(42).fork()).ldelim();if(r.asInt!=null&&Object.hasOwnProperty.call(r,"asInt")&&u.uint32(49).sfixed64(r.asInt),r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],u.uint32(58).fork()).ldelim();return r.flags!=null&&Object.hasOwnProperty.call(r,"flags")&&u.uint32(64).uint32(r.flags),u},a.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},a.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.metrics.v1.NumberDataPoint;r.pos<l;){var p=r.uint32();switch(p>>>3){case 7:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 2:{c.startTimeUnixNano=r.fixed64();break}case 3:{c.timeUnixNano=r.fixed64();break}case 4:{c.asDouble=r.double();break}case 6:{c.asInt=r.sfixed64();break}case 5:{c.exemplars&&c.exemplars.length||(c.exemplars=[]),c.exemplars.push(d.opentelemetry.proto.metrics.v1.Exemplar.decode(r,r.uint32()));break}case 8:{c.flags=r.uint32();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var u={};if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var l=0;l<r.attributes.length;++l){var c=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[l]);if(c)return"attributes."+c}}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&!E.isInteger(r.startTimeUnixNano)&&!(r.startTimeUnixNano&&E.isInteger(r.startTimeUnixNano.low)&&E.isInteger(r.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!E.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&E.isInteger(r.timeUnixNano.low)&&E.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.asDouble!=null&&r.hasOwnProperty("asDouble")&&(u.value=1,typeof r.asDouble!="number"))return"asDouble: number expected";if(r.asInt!=null&&r.hasOwnProperty("asInt")){if(u.value===1)return"value: multiple values";if(u.value=1,!E.isInteger(r.asInt)&&!(r.asInt&&E.isInteger(r.asInt.low)&&E.isInteger(r.asInt.high)))return"asInt: integer|Long expected"}if(r.exemplars!=null&&r.hasOwnProperty("exemplars")){if(!Array.isArray(r.exemplars))return"exemplars: array expected";for(var l=0;l<r.exemplars.length;++l){var c=d.opentelemetry.proto.metrics.v1.Exemplar.verify(r.exemplars[l]);if(c)return"exemplars."+c}}return r.flags!=null&&r.hasOwnProperty("flags")&&!E.isInteger(r.flags)?"flags: integer expected":null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.NumberDataPoint)return r;var u=new d.opentelemetry.proto.metrics.v1.NumberDataPoint;if(r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: array expected");u.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: object expected");u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}if(r.startTimeUnixNano!=null&&(E.Long?(u.startTimeUnixNano=E.Long.fromValue(r.startTimeUnixNano)).unsigned=!1:typeof r.startTimeUnixNano=="string"?u.startTimeUnixNano=parseInt(r.startTimeUnixNano,10):typeof r.startTimeUnixNano=="number"?u.startTimeUnixNano=r.startTimeUnixNano:typeof r.startTimeUnixNano=="object"&&(u.startTimeUnixNano=new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber())),r.timeUnixNano!=null&&(E.Long?(u.timeUnixNano=E.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?u.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?u.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(u.timeUnixNano=new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.asDouble!=null&&(u.asDouble=Number(r.asDouble)),r.asInt!=null&&(E.Long?(u.asInt=E.Long.fromValue(r.asInt)).unsigned=!1:typeof r.asInt=="string"?u.asInt=parseInt(r.asInt,10):typeof r.asInt=="number"?u.asInt=r.asInt:typeof r.asInt=="object"&&(u.asInt=new E.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber())),r.exemplars){if(!Array.isArray(r.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: array expected");u.exemplars=[];for(var l=0;l<r.exemplars.length;++l){if(typeof r.exemplars[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: object expected");u.exemplars[l]=d.opentelemetry.proto.metrics.v1.Exemplar.fromObject(r.exemplars[l])}}return r.flags!=null&&(u.flags=r.flags>>>0),u},a.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.exemplars=[],l.attributes=[]),u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.startTimeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.startTimeUnixNano=u.longs===String?"0":0;if(E.Long){var c=new E.Long(0,0,!1);l.timeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.timeUnixNano=u.longs===String?"0":0;l.flags=0}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&(typeof r.startTimeUnixNano=="number"?l.startTimeUnixNano=u.longs===String?String(r.startTimeUnixNano):r.startTimeUnixNano:l.startTimeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.startTimeUnixNano):u.longs===Number?new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber():r.startTimeUnixNano),r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=u.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.timeUnixNano):u.longs===Number?new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.asDouble!=null&&r.hasOwnProperty("asDouble")&&(l.asDouble=u.json&&!isFinite(r.asDouble)?String(r.asDouble):r.asDouble,u.oneofs&&(l.value="asDouble")),r.exemplars&&r.exemplars.length){l.exemplars=[];for(var p=0;p<r.exemplars.length;++p)l.exemplars[p]=d.opentelemetry.proto.metrics.v1.Exemplar.toObject(r.exemplars[p],u)}if(r.asInt!=null&&r.hasOwnProperty("asInt")&&(typeof r.asInt=="number"?l.asInt=u.longs===String?String(r.asInt):r.asInt:l.asInt=u.longs===String?E.Long.prototype.toString.call(r.asInt):u.longs===Number?new E.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber():r.asInt,u.oneofs&&(l.value="asInt")),r.attributes&&r.attributes.length){l.attributes=[];for(var p=0;p<r.attributes.length;++p)l.attributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[p],u)}return r.flags!=null&&r.hasOwnProperty("flags")&&(l.flags=r.flags),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.NumberDataPoint"},a}(),i.HistogramDataPoint=function(){function a(o){if(this.attributes=[],this.bucketCounts=[],this.explicitBounds=[],this.exemplars=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}a.prototype.attributes=E.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.count=null,a.prototype.sum=null,a.prototype.bucketCounts=E.emptyArray,a.prototype.explicitBounds=E.emptyArray,a.prototype.exemplars=E.emptyArray,a.prototype.flags=null,a.prototype.min=null,a.prototype.max=null;var s;return Object.defineProperty(a.prototype,"_sum",{get:E.oneOfGetter(s=["sum"]),set:E.oneOfSetter(s)}),Object.defineProperty(a.prototype,"_min",{get:E.oneOfGetter(s=["min"]),set:E.oneOfSetter(s)}),Object.defineProperty(a.prototype,"_max",{get:E.oneOfGetter(s=["max"]),set:E.oneOfSetter(s)}),a.create=function(r){return new a(r)},a.encode=function(r,u){if(u||(u=V.create()),r.startTimeUnixNano!=null&&Object.hasOwnProperty.call(r,"startTimeUnixNano")&&u.uint32(17).fixed64(r.startTimeUnixNano),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&u.uint32(25).fixed64(r.timeUnixNano),r.count!=null&&Object.hasOwnProperty.call(r,"count")&&u.uint32(33).fixed64(r.count),r.sum!=null&&Object.hasOwnProperty.call(r,"sum")&&u.uint32(41).double(r.sum),r.bucketCounts!=null&&r.bucketCounts.length){u.uint32(50).fork();for(var l=0;l<r.bucketCounts.length;++l)u.fixed64(r.bucketCounts[l]);u.ldelim()}if(r.explicitBounds!=null&&r.explicitBounds.length){u.uint32(58).fork();for(var l=0;l<r.explicitBounds.length;++l)u.double(r.explicitBounds[l]);u.ldelim()}if(r.exemplars!=null&&r.exemplars.length)for(var l=0;l<r.exemplars.length;++l)d.opentelemetry.proto.metrics.v1.Exemplar.encode(r.exemplars[l],u.uint32(66).fork()).ldelim();if(r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],u.uint32(74).fork()).ldelim();return r.flags!=null&&Object.hasOwnProperty.call(r,"flags")&&u.uint32(80).uint32(r.flags),r.min!=null&&Object.hasOwnProperty.call(r,"min")&&u.uint32(89).double(r.min),r.max!=null&&Object.hasOwnProperty.call(r,"max")&&u.uint32(97).double(r.max),u},a.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},a.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.metrics.v1.HistogramDataPoint;r.pos<l;){var p=r.uint32();switch(p>>>3){case 9:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 2:{c.startTimeUnixNano=r.fixed64();break}case 3:{c.timeUnixNano=r.fixed64();break}case 4:{c.count=r.fixed64();break}case 5:{c.sum=r.double();break}case 6:{if(c.bucketCounts&&c.bucketCounts.length||(c.bucketCounts=[]),(p&7)===2)for(var _=r.uint32()+r.pos;r.pos<_;)c.bucketCounts.push(r.fixed64());else c.bucketCounts.push(r.fixed64());break}case 7:{if(c.explicitBounds&&c.explicitBounds.length||(c.explicitBounds=[]),(p&7)===2)for(var _=r.uint32()+r.pos;r.pos<_;)c.explicitBounds.push(r.double());else c.explicitBounds.push(r.double());break}case 8:{c.exemplars&&c.exemplars.length||(c.exemplars=[]),c.exemplars.push(d.opentelemetry.proto.metrics.v1.Exemplar.decode(r,r.uint32()));break}case 10:{c.flags=r.uint32();break}case 11:{c.min=r.double();break}case 12:{c.max=r.double();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var u={};if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var l=0;l<r.attributes.length;++l){var c=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[l]);if(c)return"attributes."+c}}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&!E.isInteger(r.startTimeUnixNano)&&!(r.startTimeUnixNano&&E.isInteger(r.startTimeUnixNano.low)&&E.isInteger(r.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!E.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&E.isInteger(r.timeUnixNano.low)&&E.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.count!=null&&r.hasOwnProperty("count")&&!E.isInteger(r.count)&&!(r.count&&E.isInteger(r.count.low)&&E.isInteger(r.count.high)))return"count: integer|Long expected";if(r.sum!=null&&r.hasOwnProperty("sum")&&(u._sum=1,typeof r.sum!="number"))return"sum: number expected";if(r.bucketCounts!=null&&r.hasOwnProperty("bucketCounts")){if(!Array.isArray(r.bucketCounts))return"bucketCounts: array expected";for(var l=0;l<r.bucketCounts.length;++l)if(!E.isInteger(r.bucketCounts[l])&&!(r.bucketCounts[l]&&E.isInteger(r.bucketCounts[l].low)&&E.isInteger(r.bucketCounts[l].high)))return"bucketCounts: integer|Long[] expected"}if(r.explicitBounds!=null&&r.hasOwnProperty("explicitBounds")){if(!Array.isArray(r.explicitBounds))return"explicitBounds: array expected";for(var l=0;l<r.explicitBounds.length;++l)if(typeof r.explicitBounds[l]!="number")return"explicitBounds: number[] expected"}if(r.exemplars!=null&&r.hasOwnProperty("exemplars")){if(!Array.isArray(r.exemplars))return"exemplars: array expected";for(var l=0;l<r.exemplars.length;++l){var c=d.opentelemetry.proto.metrics.v1.Exemplar.verify(r.exemplars[l]);if(c)return"exemplars."+c}}return r.flags!=null&&r.hasOwnProperty("flags")&&!E.isInteger(r.flags)?"flags: integer expected":r.min!=null&&r.hasOwnProperty("min")&&(u._min=1,typeof r.min!="number")?"min: number expected":r.max!=null&&r.hasOwnProperty("max")&&(u._max=1,typeof r.max!="number")?"max: number expected":null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.HistogramDataPoint)return r;var u=new d.opentelemetry.proto.metrics.v1.HistogramDataPoint;if(r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: array expected");u.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: object expected");u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}if(r.startTimeUnixNano!=null&&(E.Long?(u.startTimeUnixNano=E.Long.fromValue(r.startTimeUnixNano)).unsigned=!1:typeof r.startTimeUnixNano=="string"?u.startTimeUnixNano=parseInt(r.startTimeUnixNano,10):typeof r.startTimeUnixNano=="number"?u.startTimeUnixNano=r.startTimeUnixNano:typeof r.startTimeUnixNano=="object"&&(u.startTimeUnixNano=new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber())),r.timeUnixNano!=null&&(E.Long?(u.timeUnixNano=E.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?u.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?u.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(u.timeUnixNano=new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.count!=null&&(E.Long?(u.count=E.Long.fromValue(r.count)).unsigned=!1:typeof r.count=="string"?u.count=parseInt(r.count,10):typeof r.count=="number"?u.count=r.count:typeof r.count=="object"&&(u.count=new E.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber())),r.sum!=null&&(u.sum=Number(r.sum)),r.bucketCounts){if(!Array.isArray(r.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.bucketCounts: array expected");u.bucketCounts=[];for(var l=0;l<r.bucketCounts.length;++l)E.Long?(u.bucketCounts[l]=E.Long.fromValue(r.bucketCounts[l])).unsigned=!1:typeof r.bucketCounts[l]=="string"?u.bucketCounts[l]=parseInt(r.bucketCounts[l],10):typeof r.bucketCounts[l]=="number"?u.bucketCounts[l]=r.bucketCounts[l]:typeof r.bucketCounts[l]=="object"&&(u.bucketCounts[l]=new E.LongBits(r.bucketCounts[l].low>>>0,r.bucketCounts[l].high>>>0).toNumber())}if(r.explicitBounds){if(!Array.isArray(r.explicitBounds))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.explicitBounds: array expected");u.explicitBounds=[];for(var l=0;l<r.explicitBounds.length;++l)u.explicitBounds[l]=Number(r.explicitBounds[l])}if(r.exemplars){if(!Array.isArray(r.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: array expected");u.exemplars=[];for(var l=0;l<r.exemplars.length;++l){if(typeof r.exemplars[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: object expected");u.exemplars[l]=d.opentelemetry.proto.metrics.v1.Exemplar.fromObject(r.exemplars[l])}}return r.flags!=null&&(u.flags=r.flags>>>0),r.min!=null&&(u.min=Number(r.min)),r.max!=null&&(u.max=Number(r.max)),u},a.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.bucketCounts=[],l.explicitBounds=[],l.exemplars=[],l.attributes=[]),u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.startTimeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.startTimeUnixNano=u.longs===String?"0":0;if(E.Long){var c=new E.Long(0,0,!1);l.timeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.timeUnixNano=u.longs===String?"0":0;if(E.Long){var c=new E.Long(0,0,!1);l.count=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.count=u.longs===String?"0":0;l.flags=0}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&(typeof r.startTimeUnixNano=="number"?l.startTimeUnixNano=u.longs===String?String(r.startTimeUnixNano):r.startTimeUnixNano:l.startTimeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.startTimeUnixNano):u.longs===Number?new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber():r.startTimeUnixNano),r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=u.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.timeUnixNano):u.longs===Number?new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.count!=null&&r.hasOwnProperty("count")&&(typeof r.count=="number"?l.count=u.longs===String?String(r.count):r.count:l.count=u.longs===String?E.Long.prototype.toString.call(r.count):u.longs===Number?new E.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber():r.count),r.sum!=null&&r.hasOwnProperty("sum")&&(l.sum=u.json&&!isFinite(r.sum)?String(r.sum):r.sum,u.oneofs&&(l._sum="sum")),r.bucketCounts&&r.bucketCounts.length){l.bucketCounts=[];for(var p=0;p<r.bucketCounts.length;++p)typeof r.bucketCounts[p]=="number"?l.bucketCounts[p]=u.longs===String?String(r.bucketCounts[p]):r.bucketCounts[p]:l.bucketCounts[p]=u.longs===String?E.Long.prototype.toString.call(r.bucketCounts[p]):u.longs===Number?new E.LongBits(r.bucketCounts[p].low>>>0,r.bucketCounts[p].high>>>0).toNumber():r.bucketCounts[p]}if(r.explicitBounds&&r.explicitBounds.length){l.explicitBounds=[];for(var p=0;p<r.explicitBounds.length;++p)l.explicitBounds[p]=u.json&&!isFinite(r.explicitBounds[p])?String(r.explicitBounds[p]):r.explicitBounds[p]}if(r.exemplars&&r.exemplars.length){l.exemplars=[];for(var p=0;p<r.exemplars.length;++p)l.exemplars[p]=d.opentelemetry.proto.metrics.v1.Exemplar.toObject(r.exemplars[p],u)}if(r.attributes&&r.attributes.length){l.attributes=[];for(var p=0;p<r.attributes.length;++p)l.attributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[p],u)}return r.flags!=null&&r.hasOwnProperty("flags")&&(l.flags=r.flags),r.min!=null&&r.hasOwnProperty("min")&&(l.min=u.json&&!isFinite(r.min)?String(r.min):r.min,u.oneofs&&(l._min="min")),r.max!=null&&r.hasOwnProperty("max")&&(l.max=u.json&&!isFinite(r.max)?String(r.max):r.max,u.oneofs&&(l._max="max")),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.HistogramDataPoint"},a}(),i.ExponentialHistogramDataPoint=function(){function a(o){if(this.attributes=[],this.exemplars=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}a.prototype.attributes=E.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.count=null,a.prototype.sum=null,a.prototype.scale=null,a.prototype.zeroCount=null,a.prototype.positive=null,a.prototype.negative=null,a.prototype.flags=null,a.prototype.exemplars=E.emptyArray,a.prototype.min=null,a.prototype.max=null,a.prototype.zeroThreshold=null;var s;return Object.defineProperty(a.prototype,"_sum",{get:E.oneOfGetter(s=["sum"]),set:E.oneOfSetter(s)}),Object.defineProperty(a.prototype,"_min",{get:E.oneOfGetter(s=["min"]),set:E.oneOfSetter(s)}),Object.defineProperty(a.prototype,"_max",{get:E.oneOfGetter(s=["max"]),set:E.oneOfSetter(s)}),a.create=function(r){return new a(r)},a.encode=function(r,u){if(u||(u=V.create()),r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],u.uint32(10).fork()).ldelim();if(r.startTimeUnixNano!=null&&Object.hasOwnProperty.call(r,"startTimeUnixNano")&&u.uint32(17).fixed64(r.startTimeUnixNano),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&u.uint32(25).fixed64(r.timeUnixNano),r.count!=null&&Object.hasOwnProperty.call(r,"count")&&u.uint32(33).fixed64(r.count),r.sum!=null&&Object.hasOwnProperty.call(r,"sum")&&u.uint32(41).double(r.sum),r.scale!=null&&Object.hasOwnProperty.call(r,"scale")&&u.uint32(48).sint32(r.scale),r.zeroCount!=null&&Object.hasOwnProperty.call(r,"zeroCount")&&u.uint32(57).fixed64(r.zeroCount),r.positive!=null&&Object.hasOwnProperty.call(r,"positive")&&d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(r.positive,u.uint32(66).fork()).ldelim(),r.negative!=null&&Object.hasOwnProperty.call(r,"negative")&&d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(r.negative,u.uint32(74).fork()).ldelim(),r.flags!=null&&Object.hasOwnProperty.call(r,"flags")&&u.uint32(80).uint32(r.flags),r.exemplars!=null&&r.exemplars.length)for(var l=0;l<r.exemplars.length;++l)d.opentelemetry.proto.metrics.v1.Exemplar.encode(r.exemplars[l],u.uint32(90).fork()).ldelim();return r.min!=null&&Object.hasOwnProperty.call(r,"min")&&u.uint32(97).double(r.min),r.max!=null&&Object.hasOwnProperty.call(r,"max")&&u.uint32(105).double(r.max),r.zeroThreshold!=null&&Object.hasOwnProperty.call(r,"zeroThreshold")&&u.uint32(113).double(r.zeroThreshold),u},a.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},a.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 2:{c.startTimeUnixNano=r.fixed64();break}case 3:{c.timeUnixNano=r.fixed64();break}case 4:{c.count=r.fixed64();break}case 5:{c.sum=r.double();break}case 6:{c.scale=r.sint32();break}case 7:{c.zeroCount=r.fixed64();break}case 8:{c.positive=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(r,r.uint32());break}case 9:{c.negative=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(r,r.uint32());break}case 10:{c.flags=r.uint32();break}case 11:{c.exemplars&&c.exemplars.length||(c.exemplars=[]),c.exemplars.push(d.opentelemetry.proto.metrics.v1.Exemplar.decode(r,r.uint32()));break}case 12:{c.min=r.double();break}case 13:{c.max=r.double();break}case 14:{c.zeroThreshold=r.double();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var u={};if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var l=0;l<r.attributes.length;++l){var c=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[l]);if(c)return"attributes."+c}}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&!E.isInteger(r.startTimeUnixNano)&&!(r.startTimeUnixNano&&E.isInteger(r.startTimeUnixNano.low)&&E.isInteger(r.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!E.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&E.isInteger(r.timeUnixNano.low)&&E.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.count!=null&&r.hasOwnProperty("count")&&!E.isInteger(r.count)&&!(r.count&&E.isInteger(r.count.low)&&E.isInteger(r.count.high)))return"count: integer|Long expected";if(r.sum!=null&&r.hasOwnProperty("sum")&&(u._sum=1,typeof r.sum!="number"))return"sum: number expected";if(r.scale!=null&&r.hasOwnProperty("scale")&&!E.isInteger(r.scale))return"scale: integer expected";if(r.zeroCount!=null&&r.hasOwnProperty("zeroCount")&&!E.isInteger(r.zeroCount)&&!(r.zeroCount&&E.isInteger(r.zeroCount.low)&&E.isInteger(r.zeroCount.high)))return"zeroCount: integer|Long expected";if(r.positive!=null&&r.hasOwnProperty("positive")){var c=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(r.positive);if(c)return"positive."+c}if(r.negative!=null&&r.hasOwnProperty("negative")){var c=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(r.negative);if(c)return"negative."+c}if(r.flags!=null&&r.hasOwnProperty("flags")&&!E.isInteger(r.flags))return"flags: integer expected";if(r.exemplars!=null&&r.hasOwnProperty("exemplars")){if(!Array.isArray(r.exemplars))return"exemplars: array expected";for(var l=0;l<r.exemplars.length;++l){var c=d.opentelemetry.proto.metrics.v1.Exemplar.verify(r.exemplars[l]);if(c)return"exemplars."+c}}return r.min!=null&&r.hasOwnProperty("min")&&(u._min=1,typeof r.min!="number")?"min: number expected":r.max!=null&&r.hasOwnProperty("max")&&(u._max=1,typeof r.max!="number")?"max: number expected":r.zeroThreshold!=null&&r.hasOwnProperty("zeroThreshold")&&typeof r.zeroThreshold!="number"?"zeroThreshold: number expected":null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint)return r;var u=new d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;if(r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: array expected");u.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: object expected");u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}if(r.startTimeUnixNano!=null&&(E.Long?(u.startTimeUnixNano=E.Long.fromValue(r.startTimeUnixNano)).unsigned=!1:typeof r.startTimeUnixNano=="string"?u.startTimeUnixNano=parseInt(r.startTimeUnixNano,10):typeof r.startTimeUnixNano=="number"?u.startTimeUnixNano=r.startTimeUnixNano:typeof r.startTimeUnixNano=="object"&&(u.startTimeUnixNano=new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber())),r.timeUnixNano!=null&&(E.Long?(u.timeUnixNano=E.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?u.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?u.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(u.timeUnixNano=new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.count!=null&&(E.Long?(u.count=E.Long.fromValue(r.count)).unsigned=!1:typeof r.count=="string"?u.count=parseInt(r.count,10):typeof r.count=="number"?u.count=r.count:typeof r.count=="object"&&(u.count=new E.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber())),r.sum!=null&&(u.sum=Number(r.sum)),r.scale!=null&&(u.scale=r.scale|0),r.zeroCount!=null&&(E.Long?(u.zeroCount=E.Long.fromValue(r.zeroCount)).unsigned=!1:typeof r.zeroCount=="string"?u.zeroCount=parseInt(r.zeroCount,10):typeof r.zeroCount=="number"?u.zeroCount=r.zeroCount:typeof r.zeroCount=="object"&&(u.zeroCount=new E.LongBits(r.zeroCount.low>>>0,r.zeroCount.high>>>0).toNumber())),r.positive!=null){if(typeof r.positive!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.positive: object expected");u.positive=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(r.positive)}if(r.negative!=null){if(typeof r.negative!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.negative: object expected");u.negative=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(r.negative)}if(r.flags!=null&&(u.flags=r.flags>>>0),r.exemplars){if(!Array.isArray(r.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: array expected");u.exemplars=[];for(var l=0;l<r.exemplars.length;++l){if(typeof r.exemplars[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: object expected");u.exemplars[l]=d.opentelemetry.proto.metrics.v1.Exemplar.fromObject(r.exemplars[l])}}return r.min!=null&&(u.min=Number(r.min)),r.max!=null&&(u.max=Number(r.max)),r.zeroThreshold!=null&&(u.zeroThreshold=Number(r.zeroThreshold)),u},a.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.attributes=[],l.exemplars=[]),u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.startTimeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.startTimeUnixNano=u.longs===String?"0":0;if(E.Long){var c=new E.Long(0,0,!1);l.timeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.timeUnixNano=u.longs===String?"0":0;if(E.Long){var c=new E.Long(0,0,!1);l.count=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.count=u.longs===String?"0":0;if(l.scale=0,E.Long){var c=new E.Long(0,0,!1);l.zeroCount=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.zeroCount=u.longs===String?"0":0;l.positive=null,l.negative=null,l.flags=0,l.zeroThreshold=0}if(r.attributes&&r.attributes.length){l.attributes=[];for(var p=0;p<r.attributes.length;++p)l.attributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[p],u)}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&(typeof r.startTimeUnixNano=="number"?l.startTimeUnixNano=u.longs===String?String(r.startTimeUnixNano):r.startTimeUnixNano:l.startTimeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.startTimeUnixNano):u.longs===Number?new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber():r.startTimeUnixNano),r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=u.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.timeUnixNano):u.longs===Number?new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.count!=null&&r.hasOwnProperty("count")&&(typeof r.count=="number"?l.count=u.longs===String?String(r.count):r.count:l.count=u.longs===String?E.Long.prototype.toString.call(r.count):u.longs===Number?new E.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber():r.count),r.sum!=null&&r.hasOwnProperty("sum")&&(l.sum=u.json&&!isFinite(r.sum)?String(r.sum):r.sum,u.oneofs&&(l._sum="sum")),r.scale!=null&&r.hasOwnProperty("scale")&&(l.scale=r.scale),r.zeroCount!=null&&r.hasOwnProperty("zeroCount")&&(typeof r.zeroCount=="number"?l.zeroCount=u.longs===String?String(r.zeroCount):r.zeroCount:l.zeroCount=u.longs===String?E.Long.prototype.toString.call(r.zeroCount):u.longs===Number?new E.LongBits(r.zeroCount.low>>>0,r.zeroCount.high>>>0).toNumber():r.zeroCount),r.positive!=null&&r.hasOwnProperty("positive")&&(l.positive=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(r.positive,u)),r.negative!=null&&r.hasOwnProperty("negative")&&(l.negative=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(r.negative,u)),r.flags!=null&&r.hasOwnProperty("flags")&&(l.flags=r.flags),r.exemplars&&r.exemplars.length){l.exemplars=[];for(var p=0;p<r.exemplars.length;++p)l.exemplars[p]=d.opentelemetry.proto.metrics.v1.Exemplar.toObject(r.exemplars[p],u)}return r.min!=null&&r.hasOwnProperty("min")&&(l.min=u.json&&!isFinite(r.min)?String(r.min):r.min,u.oneofs&&(l._min="min")),r.max!=null&&r.hasOwnProperty("max")&&(l.max=u.json&&!isFinite(r.max)?String(r.max):r.max,u.oneofs&&(l._max="max")),r.zeroThreshold!=null&&r.hasOwnProperty("zeroThreshold")&&(l.zeroThreshold=u.json&&!isFinite(r.zeroThreshold)?String(r.zeroThreshold):r.zeroThreshold),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint"},a.Buckets=function(){function o(r){if(this.bucketCounts=[],r)for(var u=Object.keys(r),l=0;l<u.length;++l)r[u[l]]!=null&&(this[u[l]]=r[u[l]])}return o.prototype.offset=null,o.prototype.bucketCounts=E.emptyArray,o.create=function(u){return new o(u)},o.encode=function(u,l){if(l||(l=V.create()),u.offset!=null&&Object.hasOwnProperty.call(u,"offset")&&l.uint32(8).sint32(u.offset),u.bucketCounts!=null&&u.bucketCounts.length){l.uint32(18).fork();for(var c=0;c<u.bucketCounts.length;++c)l.uint64(u.bucketCounts[c]);l.ldelim()}return l},o.encodeDelimited=function(u,l){return this.encode(u,l).ldelim()},o.decode=function(u,l){u instanceof y||(u=y.create(u));for(var c=l===void 0?u.len:u.pos+l,p=new d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;u.pos<c;){var _=u.uint32();switch(_>>>3){case 1:{p.offset=u.sint32();break}case 2:{if(p.bucketCounts&&p.bucketCounts.length||(p.bucketCounts=[]),(_&7)===2)for(var f=u.uint32()+u.pos;u.pos<f;)p.bucketCounts.push(u.uint64());else p.bucketCounts.push(u.uint64());break}default:u.skipType(_&7);break}}return p},o.decodeDelimited=function(u){return u instanceof y||(u=new y(u)),this.decode(u,u.uint32())},o.verify=function(u){if(typeof u!="object"||u===null)return"object expected";if(u.offset!=null&&u.hasOwnProperty("offset")&&!E.isInteger(u.offset))return"offset: integer expected";if(u.bucketCounts!=null&&u.hasOwnProperty("bucketCounts")){if(!Array.isArray(u.bucketCounts))return"bucketCounts: array expected";for(var l=0;l<u.bucketCounts.length;++l)if(!E.isInteger(u.bucketCounts[l])&&!(u.bucketCounts[l]&&E.isInteger(u.bucketCounts[l].low)&&E.isInteger(u.bucketCounts[l].high)))return"bucketCounts: integer|Long[] expected"}return null},o.fromObject=function(u){if(u instanceof d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets)return u;var l=new d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;if(u.offset!=null&&(l.offset=u.offset|0),u.bucketCounts){if(!Array.isArray(u.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.bucketCounts: array expected");l.bucketCounts=[];for(var c=0;c<u.bucketCounts.length;++c)E.Long?(l.bucketCounts[c]=E.Long.fromValue(u.bucketCounts[c])).unsigned=!0:typeof u.bucketCounts[c]=="string"?l.bucketCounts[c]=parseInt(u.bucketCounts[c],10):typeof u.bucketCounts[c]=="number"?l.bucketCounts[c]=u.bucketCounts[c]:typeof u.bucketCounts[c]=="object"&&(l.bucketCounts[c]=new E.LongBits(u.bucketCounts[c].low>>>0,u.bucketCounts[c].high>>>0).toNumber(!0))}return l},o.toObject=function(u,l){l||(l={});var c={};if((l.arrays||l.defaults)&&(c.bucketCounts=[]),l.defaults&&(c.offset=0),u.offset!=null&&u.hasOwnProperty("offset")&&(c.offset=u.offset),u.bucketCounts&&u.bucketCounts.length){c.bucketCounts=[];for(var p=0;p<u.bucketCounts.length;++p)typeof u.bucketCounts[p]=="number"?c.bucketCounts[p]=l.longs===String?String(u.bucketCounts[p]):u.bucketCounts[p]:c.bucketCounts[p]=l.longs===String?E.Long.prototype.toString.call(u.bucketCounts[p]):l.longs===Number?new E.LongBits(u.bucketCounts[p].low>>>0,u.bucketCounts[p].high>>>0).toNumber(!0):u.bucketCounts[p]}return c},o.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},o.getTypeUrl=function(u){return u===void 0&&(u="type.googleapis.com"),u+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets"},o}(),a}(),i.SummaryDataPoint=function(){function a(s){if(this.attributes=[],this.quantileValues=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.attributes=E.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.count=null,a.prototype.sum=null,a.prototype.quantileValues=E.emptyArray,a.prototype.flags=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.startTimeUnixNano!=null&&Object.hasOwnProperty.call(o,"startTimeUnixNano")&&r.uint32(17).fixed64(o.startTimeUnixNano),o.timeUnixNano!=null&&Object.hasOwnProperty.call(o,"timeUnixNano")&&r.uint32(25).fixed64(o.timeUnixNano),o.count!=null&&Object.hasOwnProperty.call(o,"count")&&r.uint32(33).fixed64(o.count),o.sum!=null&&Object.hasOwnProperty.call(o,"sum")&&r.uint32(41).double(o.sum),o.quantileValues!=null&&o.quantileValues.length)for(var u=0;u<o.quantileValues.length;++u)d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.encode(o.quantileValues[u],r.uint32(50).fork()).ldelim();if(o.attributes!=null&&o.attributes.length)for(var u=0;u<o.attributes.length;++u)d.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[u],r.uint32(58).fork()).ldelim();return o.flags!=null&&Object.hasOwnProperty.call(o,"flags")&&r.uint32(64).uint32(o.flags),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.SummaryDataPoint;o.pos<u;){var c=o.uint32();switch(c>>>3){case 7:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 2:{l.startTimeUnixNano=o.fixed64();break}case 3:{l.timeUnixNano=o.fixed64();break}case 4:{l.count=o.fixed64();break}case 5:{l.sum=o.double();break}case 6:{l.quantileValues&&l.quantileValues.length||(l.quantileValues=[]),l.quantileValues.push(d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.decode(o,o.uint32()));break}case 8:{l.flags=o.uint32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var r=0;r<o.attributes.length;++r){var u=d.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[r]);if(u)return"attributes."+u}}if(o.startTimeUnixNano!=null&&o.hasOwnProperty("startTimeUnixNano")&&!E.isInteger(o.startTimeUnixNano)&&!(o.startTimeUnixNano&&E.isInteger(o.startTimeUnixNano.low)&&E.isInteger(o.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(o.timeUnixNano!=null&&o.hasOwnProperty("timeUnixNano")&&!E.isInteger(o.timeUnixNano)&&!(o.timeUnixNano&&E.isInteger(o.timeUnixNano.low)&&E.isInteger(o.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(o.count!=null&&o.hasOwnProperty("count")&&!E.isInteger(o.count)&&!(o.count&&E.isInteger(o.count.low)&&E.isInteger(o.count.high)))return"count: integer|Long expected";if(o.sum!=null&&o.hasOwnProperty("sum")&&typeof o.sum!="number")return"sum: number expected";if(o.quantileValues!=null&&o.hasOwnProperty("quantileValues")){if(!Array.isArray(o.quantileValues))return"quantileValues: array expected";for(var r=0;r<o.quantileValues.length;++r){var u=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.verify(o.quantileValues[r]);if(u)return"quantileValues."+u}}return o.flags!=null&&o.hasOwnProperty("flags")&&!E.isInteger(o.flags)?"flags: integer expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.SummaryDataPoint)return o;var r=new d.opentelemetry.proto.metrics.v1.SummaryDataPoint;if(o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: array expected");r.attributes=[];for(var u=0;u<o.attributes.length;++u){if(typeof o.attributes[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: object expected");r.attributes[u]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[u])}}if(o.startTimeUnixNano!=null&&(E.Long?(r.startTimeUnixNano=E.Long.fromValue(o.startTimeUnixNano)).unsigned=!1:typeof o.startTimeUnixNano=="string"?r.startTimeUnixNano=parseInt(o.startTimeUnixNano,10):typeof o.startTimeUnixNano=="number"?r.startTimeUnixNano=o.startTimeUnixNano:typeof o.startTimeUnixNano=="object"&&(r.startTimeUnixNano=new E.LongBits(o.startTimeUnixNano.low>>>0,o.startTimeUnixNano.high>>>0).toNumber())),o.timeUnixNano!=null&&(E.Long?(r.timeUnixNano=E.Long.fromValue(o.timeUnixNano)).unsigned=!1:typeof o.timeUnixNano=="string"?r.timeUnixNano=parseInt(o.timeUnixNano,10):typeof o.timeUnixNano=="number"?r.timeUnixNano=o.timeUnixNano:typeof o.timeUnixNano=="object"&&(r.timeUnixNano=new E.LongBits(o.timeUnixNano.low>>>0,o.timeUnixNano.high>>>0).toNumber())),o.count!=null&&(E.Long?(r.count=E.Long.fromValue(o.count)).unsigned=!1:typeof o.count=="string"?r.count=parseInt(o.count,10):typeof o.count=="number"?r.count=o.count:typeof o.count=="object"&&(r.count=new E.LongBits(o.count.low>>>0,o.count.high>>>0).toNumber())),o.sum!=null&&(r.sum=Number(o.sum)),o.quantileValues){if(!Array.isArray(o.quantileValues))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: array expected");r.quantileValues=[];for(var u=0;u<o.quantileValues.length;++u){if(typeof o.quantileValues[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: object expected");r.quantileValues[u]=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.fromObject(o.quantileValues[u])}}return o.flags!=null&&(r.flags=o.flags>>>0),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.quantileValues=[],u.attributes=[]),r.defaults){if(E.Long){var l=new E.Long(0,0,!1);u.startTimeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.startTimeUnixNano=r.longs===String?"0":0;if(E.Long){var l=new E.Long(0,0,!1);u.timeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.timeUnixNano=r.longs===String?"0":0;if(E.Long){var l=new E.Long(0,0,!1);u.count=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.count=r.longs===String?"0":0;u.sum=0,u.flags=0}if(o.startTimeUnixNano!=null&&o.hasOwnProperty("startTimeUnixNano")&&(typeof o.startTimeUnixNano=="number"?u.startTimeUnixNano=r.longs===String?String(o.startTimeUnixNano):o.startTimeUnixNano:u.startTimeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.startTimeUnixNano):r.longs===Number?new E.LongBits(o.startTimeUnixNano.low>>>0,o.startTimeUnixNano.high>>>0).toNumber():o.startTimeUnixNano),o.timeUnixNano!=null&&o.hasOwnProperty("timeUnixNano")&&(typeof o.timeUnixNano=="number"?u.timeUnixNano=r.longs===String?String(o.timeUnixNano):o.timeUnixNano:u.timeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.timeUnixNano):r.longs===Number?new E.LongBits(o.timeUnixNano.low>>>0,o.timeUnixNano.high>>>0).toNumber():o.timeUnixNano),o.count!=null&&o.hasOwnProperty("count")&&(typeof o.count=="number"?u.count=r.longs===String?String(o.count):o.count:u.count=r.longs===String?E.Long.prototype.toString.call(o.count):r.longs===Number?new E.LongBits(o.count.low>>>0,o.count.high>>>0).toNumber():o.count),o.sum!=null&&o.hasOwnProperty("sum")&&(u.sum=r.json&&!isFinite(o.sum)?String(o.sum):o.sum),o.quantileValues&&o.quantileValues.length){u.quantileValues=[];for(var c=0;c<o.quantileValues.length;++c)u.quantileValues[c]=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.toObject(o.quantileValues[c],r)}if(o.attributes&&o.attributes.length){u.attributes=[];for(var c=0;c<o.attributes.length;++c)u.attributes[c]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[c],r)}return o.flags!=null&&o.hasOwnProperty("flags")&&(u.flags=o.flags),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.SummaryDataPoint"},a.ValueAtQuantile=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.quantile=null,s.prototype.value=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.quantile!=null&&Object.hasOwnProperty.call(r,"quantile")&&u.uint32(9).double(r.quantile),r.value!=null&&Object.hasOwnProperty.call(r,"value")&&u.uint32(17).double(r.value),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.quantile=r.double();break}case 2:{c.value=r.double();break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){return typeof r!="object"||r===null?"object expected":r.quantile!=null&&r.hasOwnProperty("quantile")&&typeof r.quantile!="number"?"quantile: number expected":r.value!=null&&r.hasOwnProperty("value")&&typeof r.value!="number"?"value: number expected":null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile)return r;var u=new d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;return r.quantile!=null&&(u.quantile=Number(r.quantile)),r.value!=null&&(u.value=Number(r.value)),u},s.toObject=function(r,u){u||(u={});var l={};return u.defaults&&(l.quantile=0,l.value=0),r.quantile!=null&&r.hasOwnProperty("quantile")&&(l.quantile=u.json&&!isFinite(r.quantile)?String(r.quantile):r.quantile),r.value!=null&&r.hasOwnProperty("value")&&(l.value=u.json&&!isFinite(r.value)?String(r.value):r.value),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile"},s}(),a}(),i.Exemplar=function(){function a(o){if(this.filteredAttributes=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}a.prototype.filteredAttributes=E.emptyArray,a.prototype.timeUnixNano=null,a.prototype.asDouble=null,a.prototype.asInt=null,a.prototype.spanId=null,a.prototype.traceId=null;var s;return Object.defineProperty(a.prototype,"value",{get:E.oneOfGetter(s=["asDouble","asInt"]),set:E.oneOfSetter(s)}),a.create=function(r){return new a(r)},a.encode=function(r,u){if(u||(u=V.create()),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&u.uint32(17).fixed64(r.timeUnixNano),r.asDouble!=null&&Object.hasOwnProperty.call(r,"asDouble")&&u.uint32(25).double(r.asDouble),r.spanId!=null&&Object.hasOwnProperty.call(r,"spanId")&&u.uint32(34).bytes(r.spanId),r.traceId!=null&&Object.hasOwnProperty.call(r,"traceId")&&u.uint32(42).bytes(r.traceId),r.asInt!=null&&Object.hasOwnProperty.call(r,"asInt")&&u.uint32(49).sfixed64(r.asInt),r.filteredAttributes!=null&&r.filteredAttributes.length)for(var l=0;l<r.filteredAttributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.filteredAttributes[l],u.uint32(58).fork()).ldelim();return u},a.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},a.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.metrics.v1.Exemplar;r.pos<l;){var p=r.uint32();switch(p>>>3){case 7:{c.filteredAttributes&&c.filteredAttributes.length||(c.filteredAttributes=[]),c.filteredAttributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 2:{c.timeUnixNano=r.fixed64();break}case 3:{c.asDouble=r.double();break}case 6:{c.asInt=r.sfixed64();break}case 4:{c.spanId=r.bytes();break}case 5:{c.traceId=r.bytes();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var u={};if(r.filteredAttributes!=null&&r.hasOwnProperty("filteredAttributes")){if(!Array.isArray(r.filteredAttributes))return"filteredAttributes: array expected";for(var l=0;l<r.filteredAttributes.length;++l){var c=d.opentelemetry.proto.common.v1.KeyValue.verify(r.filteredAttributes[l]);if(c)return"filteredAttributes."+c}}if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!E.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&E.isInteger(r.timeUnixNano.low)&&E.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.asDouble!=null&&r.hasOwnProperty("asDouble")&&(u.value=1,typeof r.asDouble!="number"))return"asDouble: number expected";if(r.asInt!=null&&r.hasOwnProperty("asInt")){if(u.value===1)return"value: multiple values";if(u.value=1,!E.isInteger(r.asInt)&&!(r.asInt&&E.isInteger(r.asInt.low)&&E.isInteger(r.asInt.high)))return"asInt: integer|Long expected"}return r.spanId!=null&&r.hasOwnProperty("spanId")&&!(r.spanId&&typeof r.spanId.length=="number"||E.isString(r.spanId))?"spanId: buffer expected":r.traceId!=null&&r.hasOwnProperty("traceId")&&!(r.traceId&&typeof r.traceId.length=="number"||E.isString(r.traceId))?"traceId: buffer expected":null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.Exemplar)return r;var u=new d.opentelemetry.proto.metrics.v1.Exemplar;if(r.filteredAttributes){if(!Array.isArray(r.filteredAttributes))throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: array expected");u.filteredAttributes=[];for(var l=0;l<r.filteredAttributes.length;++l){if(typeof r.filteredAttributes[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: object expected");u.filteredAttributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.filteredAttributes[l])}}return r.timeUnixNano!=null&&(E.Long?(u.timeUnixNano=E.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?u.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?u.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(u.timeUnixNano=new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.asDouble!=null&&(u.asDouble=Number(r.asDouble)),r.asInt!=null&&(E.Long?(u.asInt=E.Long.fromValue(r.asInt)).unsigned=!1:typeof r.asInt=="string"?u.asInt=parseInt(r.asInt,10):typeof r.asInt=="number"?u.asInt=r.asInt:typeof r.asInt=="object"&&(u.asInt=new E.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber())),r.spanId!=null&&(typeof r.spanId=="string"?E.base64.decode(r.spanId,u.spanId=E.newBuffer(E.base64.length(r.spanId)),0):r.spanId.length>=0&&(u.spanId=r.spanId)),r.traceId!=null&&(typeof r.traceId=="string"?E.base64.decode(r.traceId,u.traceId=E.newBuffer(E.base64.length(r.traceId)),0):r.traceId.length>=0&&(u.traceId=r.traceId)),u},a.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.filteredAttributes=[]),u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.timeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.timeUnixNano=u.longs===String?"0":0;u.bytes===String?l.spanId="":(l.spanId=[],u.bytes!==Array&&(l.spanId=E.newBuffer(l.spanId))),u.bytes===String?l.traceId="":(l.traceId=[],u.bytes!==Array&&(l.traceId=E.newBuffer(l.traceId)))}if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=u.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.timeUnixNano):u.longs===Number?new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.asDouble!=null&&r.hasOwnProperty("asDouble")&&(l.asDouble=u.json&&!isFinite(r.asDouble)?String(r.asDouble):r.asDouble,u.oneofs&&(l.value="asDouble")),r.spanId!=null&&r.hasOwnProperty("spanId")&&(l.spanId=u.bytes===String?E.base64.encode(r.spanId,0,r.spanId.length):u.bytes===Array?Array.prototype.slice.call(r.spanId):r.spanId),r.traceId!=null&&r.hasOwnProperty("traceId")&&(l.traceId=u.bytes===String?E.base64.encode(r.traceId,0,r.traceId.length):u.bytes===Array?Array.prototype.slice.call(r.traceId):r.traceId),r.asInt!=null&&r.hasOwnProperty("asInt")&&(typeof r.asInt=="number"?l.asInt=u.longs===String?String(r.asInt):r.asInt:l.asInt=u.longs===String?E.Long.prototype.toString.call(r.asInt):u.longs===Number?new E.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber():r.asInt,u.oneofs&&(l.value="asInt")),r.filteredAttributes&&r.filteredAttributes.length){l.filteredAttributes=[];for(var p=0;p<r.filteredAttributes.length;++p)l.filteredAttributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.filteredAttributes[p],u)}return l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.Exemplar"},a}(),i}(),n}(),e.logs=function(){var n={};return n.v1=function(){var i={};return i.LogsData=function(){function a(s){if(this.resourceLogs=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.resourceLogs=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resourceLogs!=null&&o.resourceLogs.length)for(var u=0;u<o.resourceLogs.length;++u)d.opentelemetry.proto.logs.v1.ResourceLogs.encode(o.resourceLogs[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.logs.v1.LogsData;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.resourceLogs&&l.resourceLogs.length||(l.resourceLogs=[]),l.resourceLogs.push(d.opentelemetry.proto.logs.v1.ResourceLogs.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resourceLogs!=null&&o.hasOwnProperty("resourceLogs")){if(!Array.isArray(o.resourceLogs))return"resourceLogs: array expected";for(var r=0;r<o.resourceLogs.length;++r){var u=d.opentelemetry.proto.logs.v1.ResourceLogs.verify(o.resourceLogs[r]);if(u)return"resourceLogs."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.logs.v1.LogsData)return o;var r=new d.opentelemetry.proto.logs.v1.LogsData;if(o.resourceLogs){if(!Array.isArray(o.resourceLogs))throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: array expected");r.resourceLogs=[];for(var u=0;u<o.resourceLogs.length;++u){if(typeof o.resourceLogs[u]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: object expected");r.resourceLogs[u]=d.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(o.resourceLogs[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.resourceLogs=[]),o.resourceLogs&&o.resourceLogs.length){u.resourceLogs=[];for(var l=0;l<o.resourceLogs.length;++l)u.resourceLogs[l]=d.opentelemetry.proto.logs.v1.ResourceLogs.toObject(o.resourceLogs[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.logs.v1.LogsData"},a}(),i.ResourceLogs=function(){function a(s){if(this.scopeLogs=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.resource=null,a.prototype.scopeLogs=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resource!=null&&Object.hasOwnProperty.call(o,"resource")&&d.opentelemetry.proto.resource.v1.Resource.encode(o.resource,r.uint32(10).fork()).ldelim(),o.scopeLogs!=null&&o.scopeLogs.length)for(var u=0;u<o.scopeLogs.length;++u)d.opentelemetry.proto.logs.v1.ScopeLogs.encode(o.scopeLogs[u],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.logs.v1.ResourceLogs;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.resource=d.opentelemetry.proto.resource.v1.Resource.decode(o,o.uint32());break}case 2:{l.scopeLogs&&l.scopeLogs.length||(l.scopeLogs=[]),l.scopeLogs.push(d.opentelemetry.proto.logs.v1.ScopeLogs.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resource!=null&&o.hasOwnProperty("resource")){var r=d.opentelemetry.proto.resource.v1.Resource.verify(o.resource);if(r)return"resource."+r}if(o.scopeLogs!=null&&o.hasOwnProperty("scopeLogs")){if(!Array.isArray(o.scopeLogs))return"scopeLogs: array expected";for(var u=0;u<o.scopeLogs.length;++u){var r=d.opentelemetry.proto.logs.v1.ScopeLogs.verify(o.scopeLogs[u]);if(r)return"scopeLogs."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.logs.v1.ResourceLogs)return o;var r=new d.opentelemetry.proto.logs.v1.ResourceLogs;if(o.resource!=null){if(typeof o.resource!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.resource: object expected");r.resource=d.opentelemetry.proto.resource.v1.Resource.fromObject(o.resource)}if(o.scopeLogs){if(!Array.isArray(o.scopeLogs))throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: array expected");r.scopeLogs=[];for(var u=0;u<o.scopeLogs.length;++u){if(typeof o.scopeLogs[u]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: object expected");r.scopeLogs[u]=d.opentelemetry.proto.logs.v1.ScopeLogs.fromObject(o.scopeLogs[u])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.scopeLogs=[]),r.defaults&&(u.resource=null,u.schemaUrl=""),o.resource!=null&&o.hasOwnProperty("resource")&&(u.resource=d.opentelemetry.proto.resource.v1.Resource.toObject(o.resource,r)),o.scopeLogs&&o.scopeLogs.length){u.scopeLogs=[];for(var l=0;l<o.scopeLogs.length;++l)u.scopeLogs[l]=d.opentelemetry.proto.logs.v1.ScopeLogs.toObject(o.scopeLogs[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(u.schemaUrl=o.schemaUrl),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.logs.v1.ResourceLogs"},a}(),i.ScopeLogs=function(){function a(s){if(this.logRecords=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.scope=null,a.prototype.logRecords=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.scope!=null&&Object.hasOwnProperty.call(o,"scope")&&d.opentelemetry.proto.common.v1.InstrumentationScope.encode(o.scope,r.uint32(10).fork()).ldelim(),o.logRecords!=null&&o.logRecords.length)for(var u=0;u<o.logRecords.length;++u)d.opentelemetry.proto.logs.v1.LogRecord.encode(o.logRecords[u],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.logs.v1.ScopeLogs;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.decode(o,o.uint32());break}case 2:{l.logRecords&&l.logRecords.length||(l.logRecords=[]),l.logRecords.push(d.opentelemetry.proto.logs.v1.LogRecord.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.scope!=null&&o.hasOwnProperty("scope")){var r=d.opentelemetry.proto.common.v1.InstrumentationScope.verify(o.scope);if(r)return"scope."+r}if(o.logRecords!=null&&o.hasOwnProperty("logRecords")){if(!Array.isArray(o.logRecords))return"logRecords: array expected";for(var u=0;u<o.logRecords.length;++u){var r=d.opentelemetry.proto.logs.v1.LogRecord.verify(o.logRecords[u]);if(r)return"logRecords."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.logs.v1.ScopeLogs)return o;var r=new d.opentelemetry.proto.logs.v1.ScopeLogs;if(o.scope!=null){if(typeof o.scope!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.scope: object expected");r.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(o.scope)}if(o.logRecords){if(!Array.isArray(o.logRecords))throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: array expected");r.logRecords=[];for(var u=0;u<o.logRecords.length;++u){if(typeof o.logRecords[u]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: object expected");r.logRecords[u]=d.opentelemetry.proto.logs.v1.LogRecord.fromObject(o.logRecords[u])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.logRecords=[]),r.defaults&&(u.scope=null,u.schemaUrl=""),o.scope!=null&&o.hasOwnProperty("scope")&&(u.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.toObject(o.scope,r)),o.logRecords&&o.logRecords.length){u.logRecords=[];for(var l=0;l<o.logRecords.length;++l)u.logRecords[l]=d.opentelemetry.proto.logs.v1.LogRecord.toObject(o.logRecords[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(u.schemaUrl=o.schemaUrl),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.logs.v1.ScopeLogs"},a}(),i.SeverityNumber=function(){var a={},s=Object.create(a);return s[a[0]="SEVERITY_NUMBER_UNSPECIFIED"]=0,s[a[1]="SEVERITY_NUMBER_TRACE"]=1,s[a[2]="SEVERITY_NUMBER_TRACE2"]=2,s[a[3]="SEVERITY_NUMBER_TRACE3"]=3,s[a[4]="SEVERITY_NUMBER_TRACE4"]=4,s[a[5]="SEVERITY_NUMBER_DEBUG"]=5,s[a[6]="SEVERITY_NUMBER_DEBUG2"]=6,s[a[7]="SEVERITY_NUMBER_DEBUG3"]=7,s[a[8]="SEVERITY_NUMBER_DEBUG4"]=8,s[a[9]="SEVERITY_NUMBER_INFO"]=9,s[a[10]="SEVERITY_NUMBER_INFO2"]=10,s[a[11]="SEVERITY_NUMBER_INFO3"]=11,s[a[12]="SEVERITY_NUMBER_INFO4"]=12,s[a[13]="SEVERITY_NUMBER_WARN"]=13,s[a[14]="SEVERITY_NUMBER_WARN2"]=14,s[a[15]="SEVERITY_NUMBER_WARN3"]=15,s[a[16]="SEVERITY_NUMBER_WARN4"]=16,s[a[17]="SEVERITY_NUMBER_ERROR"]=17,s[a[18]="SEVERITY_NUMBER_ERROR2"]=18,s[a[19]="SEVERITY_NUMBER_ERROR3"]=19,s[a[20]="SEVERITY_NUMBER_ERROR4"]=20,s[a[21]="SEVERITY_NUMBER_FATAL"]=21,s[a[22]="SEVERITY_NUMBER_FATAL2"]=22,s[a[23]="SEVERITY_NUMBER_FATAL3"]=23,s[a[24]="SEVERITY_NUMBER_FATAL4"]=24,s}(),i.LogRecordFlags=function(){var a={},s=Object.create(a);return s[a[0]="LOG_RECORD_FLAGS_DO_NOT_USE"]=0,s[a[255]="LOG_RECORD_FLAGS_TRACE_FLAGS_MASK"]=255,s}(),i.LogRecord=function(){function a(s){if(this.attributes=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.timeUnixNano=null,a.prototype.observedTimeUnixNano=null,a.prototype.severityNumber=null,a.prototype.severityText=null,a.prototype.body=null,a.prototype.attributes=E.emptyArray,a.prototype.droppedAttributesCount=null,a.prototype.flags=null,a.prototype.traceId=null,a.prototype.spanId=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.timeUnixNano!=null&&Object.hasOwnProperty.call(o,"timeUnixNano")&&r.uint32(9).fixed64(o.timeUnixNano),o.severityNumber!=null&&Object.hasOwnProperty.call(o,"severityNumber")&&r.uint32(16).int32(o.severityNumber),o.severityText!=null&&Object.hasOwnProperty.call(o,"severityText")&&r.uint32(26).string(o.severityText),o.body!=null&&Object.hasOwnProperty.call(o,"body")&&d.opentelemetry.proto.common.v1.AnyValue.encode(o.body,r.uint32(42).fork()).ldelim(),o.attributes!=null&&o.attributes.length)for(var u=0;u<o.attributes.length;++u)d.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[u],r.uint32(50).fork()).ldelim();return o.droppedAttributesCount!=null&&Object.hasOwnProperty.call(o,"droppedAttributesCount")&&r.uint32(56).uint32(o.droppedAttributesCount),o.flags!=null&&Object.hasOwnProperty.call(o,"flags")&&r.uint32(69).fixed32(o.flags),o.traceId!=null&&Object.hasOwnProperty.call(o,"traceId")&&r.uint32(74).bytes(o.traceId),o.spanId!=null&&Object.hasOwnProperty.call(o,"spanId")&&r.uint32(82).bytes(o.spanId),o.observedTimeUnixNano!=null&&Object.hasOwnProperty.call(o,"observedTimeUnixNano")&&r.uint32(89).fixed64(o.observedTimeUnixNano),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.logs.v1.LogRecord;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.timeUnixNano=o.fixed64();break}case 11:{l.observedTimeUnixNano=o.fixed64();break}case 2:{l.severityNumber=o.int32();break}case 3:{l.severityText=o.string();break}case 5:{l.body=d.opentelemetry.proto.common.v1.AnyValue.decode(o,o.uint32());break}case 6:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 7:{l.droppedAttributesCount=o.uint32();break}case 8:{l.flags=o.fixed32();break}case 9:{l.traceId=o.bytes();break}case 10:{l.spanId=o.bytes();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.timeUnixNano!=null&&o.hasOwnProperty("timeUnixNano")&&!E.isInteger(o.timeUnixNano)&&!(o.timeUnixNano&&E.isInteger(o.timeUnixNano.low)&&E.isInteger(o.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(o.observedTimeUnixNano!=null&&o.hasOwnProperty("observedTimeUnixNano")&&!E.isInteger(o.observedTimeUnixNano)&&!(o.observedTimeUnixNano&&E.isInteger(o.observedTimeUnixNano.low)&&E.isInteger(o.observedTimeUnixNano.high)))return"observedTimeUnixNano: integer|Long expected";if(o.severityNumber!=null&&o.hasOwnProperty("severityNumber"))switch(o.severityNumber){default:return"severityNumber: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:break}if(o.severityText!=null&&o.hasOwnProperty("severityText")&&!E.isString(o.severityText))return"severityText: string expected";if(o.body!=null&&o.hasOwnProperty("body")){var r=d.opentelemetry.proto.common.v1.AnyValue.verify(o.body);if(r)return"body."+r}if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var u=0;u<o.attributes.length;++u){var r=d.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[u]);if(r)return"attributes."+r}}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(o.droppedAttributesCount)?"droppedAttributesCount: integer expected":o.flags!=null&&o.hasOwnProperty("flags")&&!E.isInteger(o.flags)?"flags: integer expected":o.traceId!=null&&o.hasOwnProperty("traceId")&&!(o.traceId&&typeof o.traceId.length=="number"||E.isString(o.traceId))?"traceId: buffer expected":o.spanId!=null&&o.hasOwnProperty("spanId")&&!(o.spanId&&typeof o.spanId.length=="number"||E.isString(o.spanId))?"spanId: buffer expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.logs.v1.LogRecord)return o;var r=new d.opentelemetry.proto.logs.v1.LogRecord;switch(o.timeUnixNano!=null&&(E.Long?(r.timeUnixNano=E.Long.fromValue(o.timeUnixNano)).unsigned=!1:typeof o.timeUnixNano=="string"?r.timeUnixNano=parseInt(o.timeUnixNano,10):typeof o.timeUnixNano=="number"?r.timeUnixNano=o.timeUnixNano:typeof o.timeUnixNano=="object"&&(r.timeUnixNano=new E.LongBits(o.timeUnixNano.low>>>0,o.timeUnixNano.high>>>0).toNumber())),o.observedTimeUnixNano!=null&&(E.Long?(r.observedTimeUnixNano=E.Long.fromValue(o.observedTimeUnixNano)).unsigned=!1:typeof o.observedTimeUnixNano=="string"?r.observedTimeUnixNano=parseInt(o.observedTimeUnixNano,10):typeof o.observedTimeUnixNano=="number"?r.observedTimeUnixNano=o.observedTimeUnixNano:typeof o.observedTimeUnixNano=="object"&&(r.observedTimeUnixNano=new E.LongBits(o.observedTimeUnixNano.low>>>0,o.observedTimeUnixNano.high>>>0).toNumber())),o.severityNumber){default:if(typeof o.severityNumber=="number"){r.severityNumber=o.severityNumber;break}break;case"SEVERITY_NUMBER_UNSPECIFIED":case 0:r.severityNumber=0;break;case"SEVERITY_NUMBER_TRACE":case 1:r.severityNumber=1;break;case"SEVERITY_NUMBER_TRACE2":case 2:r.severityNumber=2;break;case"SEVERITY_NUMBER_TRACE3":case 3:r.severityNumber=3;break;case"SEVERITY_NUMBER_TRACE4":case 4:r.severityNumber=4;break;case"SEVERITY_NUMBER_DEBUG":case 5:r.severityNumber=5;break;case"SEVERITY_NUMBER_DEBUG2":case 6:r.severityNumber=6;break;case"SEVERITY_NUMBER_DEBUG3":case 7:r.severityNumber=7;break;case"SEVERITY_NUMBER_DEBUG4":case 8:r.severityNumber=8;break;case"SEVERITY_NUMBER_INFO":case 9:r.severityNumber=9;break;case"SEVERITY_NUMBER_INFO2":case 10:r.severityNumber=10;break;case"SEVERITY_NUMBER_INFO3":case 11:r.severityNumber=11;break;case"SEVERITY_NUMBER_INFO4":case 12:r.severityNumber=12;break;case"SEVERITY_NUMBER_WARN":case 13:r.severityNumber=13;break;case"SEVERITY_NUMBER_WARN2":case 14:r.severityNumber=14;break;case"SEVERITY_NUMBER_WARN3":case 15:r.severityNumber=15;break;case"SEVERITY_NUMBER_WARN4":case 16:r.severityNumber=16;break;case"SEVERITY_NUMBER_ERROR":case 17:r.severityNumber=17;break;case"SEVERITY_NUMBER_ERROR2":case 18:r.severityNumber=18;break;case"SEVERITY_NUMBER_ERROR3":case 19:r.severityNumber=19;break;case"SEVERITY_NUMBER_ERROR4":case 20:r.severityNumber=20;break;case"SEVERITY_NUMBER_FATAL":case 21:r.severityNumber=21;break;case"SEVERITY_NUMBER_FATAL2":case 22:r.severityNumber=22;break;case"SEVERITY_NUMBER_FATAL3":case 23:r.severityNumber=23;break;case"SEVERITY_NUMBER_FATAL4":case 24:r.severityNumber=24;break}if(o.severityText!=null&&(r.severityText=String(o.severityText)),o.body!=null){if(typeof o.body!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.body: object expected");r.body=d.opentelemetry.proto.common.v1.AnyValue.fromObject(o.body)}if(o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: array expected");r.attributes=[];for(var u=0;u<o.attributes.length;++u){if(typeof o.attributes[u]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: object expected");r.attributes[u]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[u])}}return o.droppedAttributesCount!=null&&(r.droppedAttributesCount=o.droppedAttributesCount>>>0),o.flags!=null&&(r.flags=o.flags>>>0),o.traceId!=null&&(typeof o.traceId=="string"?E.base64.decode(o.traceId,r.traceId=E.newBuffer(E.base64.length(o.traceId)),0):o.traceId.length>=0&&(r.traceId=o.traceId)),o.spanId!=null&&(typeof o.spanId=="string"?E.base64.decode(o.spanId,r.spanId=E.newBuffer(E.base64.length(o.spanId)),0):o.spanId.length>=0&&(r.spanId=o.spanId)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.attributes=[]),r.defaults){if(E.Long){var l=new E.Long(0,0,!1);u.timeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.timeUnixNano=r.longs===String?"0":0;if(u.severityNumber=r.enums===String?"SEVERITY_NUMBER_UNSPECIFIED":0,u.severityText="",u.body=null,u.droppedAttributesCount=0,u.flags=0,r.bytes===String?u.traceId="":(u.traceId=[],r.bytes!==Array&&(u.traceId=E.newBuffer(u.traceId))),r.bytes===String?u.spanId="":(u.spanId=[],r.bytes!==Array&&(u.spanId=E.newBuffer(u.spanId))),E.Long){var l=new E.Long(0,0,!1);u.observedTimeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.observedTimeUnixNano=r.longs===String?"0":0}if(o.timeUnixNano!=null&&o.hasOwnProperty("timeUnixNano")&&(typeof o.timeUnixNano=="number"?u.timeUnixNano=r.longs===String?String(o.timeUnixNano):o.timeUnixNano:u.timeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.timeUnixNano):r.longs===Number?new E.LongBits(o.timeUnixNano.low>>>0,o.timeUnixNano.high>>>0).toNumber():o.timeUnixNano),o.severityNumber!=null&&o.hasOwnProperty("severityNumber")&&(u.severityNumber=r.enums===String?d.opentelemetry.proto.logs.v1.SeverityNumber[o.severityNumber]===void 0?o.severityNumber:d.opentelemetry.proto.logs.v1.SeverityNumber[o.severityNumber]:o.severityNumber),o.severityText!=null&&o.hasOwnProperty("severityText")&&(u.severityText=o.severityText),o.body!=null&&o.hasOwnProperty("body")&&(u.body=d.opentelemetry.proto.common.v1.AnyValue.toObject(o.body,r)),o.attributes&&o.attributes.length){u.attributes=[];for(var c=0;c<o.attributes.length;++c)u.attributes[c]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[c],r)}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=o.droppedAttributesCount),o.flags!=null&&o.hasOwnProperty("flags")&&(u.flags=o.flags),o.traceId!=null&&o.hasOwnProperty("traceId")&&(u.traceId=r.bytes===String?E.base64.encode(o.traceId,0,o.traceId.length):r.bytes===Array?Array.prototype.slice.call(o.traceId):o.traceId),o.spanId!=null&&o.hasOwnProperty("spanId")&&(u.spanId=r.bytes===String?E.base64.encode(o.spanId,0,o.spanId.length):r.bytes===Array?Array.prototype.slice.call(o.spanId):o.spanId),o.observedTimeUnixNano!=null&&o.hasOwnProperty("observedTimeUnixNano")&&(typeof o.observedTimeUnixNano=="number"?u.observedTimeUnixNano=r.longs===String?String(o.observedTimeUnixNano):o.observedTimeUnixNano:u.observedTimeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.observedTimeUnixNano):r.longs===Number?new E.LongBits(o.observedTimeUnixNano.low>>>0,o.observedTimeUnixNano.high>>>0).toNumber():o.observedTimeUnixNano),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.logs.v1.LogRecord"},a}(),i}(),n}(),e}(),t}();WL.exports=d});var qr,wW,UW,DW,VW,BW,GW,XL,JL,QL,ZL=m(()=>{qr=Ke(zL());wu();Uu();Du();wW=qr.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,UW=qr.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,DW=qr.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,VW=qr.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,BW=qr.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,GW=qr.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,XL={serializeRequest:function(t){var e=Fn(t);return UW.encode(e).finish()},deserializeResponse:function(t){return wW.decode(t)}},JL={serializeRequest:function(t){var e=Hn(t);return VW.encode(e).finish()},deserializeResponse:function(t){return DW.decode(t)}},QL={serializeRequest:function(t){var e=kn(t);return GW.encode(e).finish()},deserializeResponse:function(t){return BW.decode(t)}}});var eI,Vu,tI,rI=m(()=>{wu();Uu();Du();eI={serializeRequest:function(t){var e=kn(t,{useHex:!0,useLongBits:!1}),n=new TextEncoder;return n.encode(JSON.stringify(e))},deserializeResponse:function(t){var e=new TextDecoder;return JSON.parse(e.decode(t))}},Vu={serializeRequest:function(t){var e=Hn(t,{useLongBits:!1}),n=new TextEncoder;return n.encode(JSON.stringify(e))},deserializeResponse:function(t){var e=new TextDecoder;return JSON.parse(e.decode(t))}},tI={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 ad={};it(ad,{ESpanKind:()=>xu,JsonLogsSerializer:()=>tI,JsonMetricsSerializer:()=>Vu,JsonTraceSerializer:()=>eI,ProtobufLogsSerializer:()=>XL,ProtobufMetricsSerializer:()=>JL,ProtobufTraceSerializer:()=>QL,createExportLogsServiceRequest:()=>Fn,createExportMetricsServiceRequest:()=>Hn,createExportTraceServiceRequest:()=>kn,encodeAsLongBits:()=>Mu,encodeAsString:()=>id,getOtlpEncoder:()=>Sr,hrTimeToNanos:()=>bu,toLongBits:()=>od});var Bu=m(()=>{Oi();HL();wu();Uu();Du();ZL();rI()});var nI,oI=m(()=>{nI="0.54.0"});var iI,Gu,kW,HW,FW,aI=m(()=>{zp();Ai();Bu();oI();iI=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Gu=function(){return Gu=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},Gu.apply(this,arguments)},kW={"User-Agent":"OTel-OTLP-Exporter-JavaScript/"+nI},HW=function(t){iI(e,t);function e(n){return t.call(this,n,Vu,Gu(Gu({},kW),{"Content-Type":"application/json"}),"METRICS","v1/metrics")||this}return e}(mi),FW=function(t){iI(e,t);function e(n){return t.call(this,new HW(n),n)||this}return e}(Wp)});var sI=m(()=>{aI()});var uI=m(()=>{sI()});var lI={};it(lI,{AggregationTemporalityPreference:()=>Un,CumulativeTemporalitySelector:()=>du,DeltaTemporalitySelector:()=>$p,LowMemoryTemporalitySelector:()=>Kp,OTLPMetricExporter:()=>FW,OTLPMetricExporterBase:()=>Wp});var cI=m(()=>{uI();jp();zp()});var fI=h(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});ku.createServiceClientConstructor=void 0;var YW=oo();function qW(t,e){let n={export:{path:t,requestStream:!1,responseStream:!1,requestSerialize:i=>i,requestDeserialize:i=>i,responseSerialize:i=>i,responseDeserialize:i=>i}};return YW.makeGenericClientConstructor(n,e)}ku.createServiceClientConstructor=qW});var Hu=h(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.GrpcExporterTransport=xt.createEmptyMetadata=xt.createSslCredentials=xt.createInsecureCredentials=void 0;var jW=0,$W=2;function KW(t){return t==="gzip"?$W:jW}function WW(){let{credentials:t}=oo();return t.createInsecure()}xt.createInsecureCredentials=WW;function zW(t,e,n){let{credentials:i}=oo();return i.createSsl(t,e,n)}xt.createSslCredentials=zW;function XW(){let{Metadata:t}=oo();return new t}xt.createEmptyMetadata=XW;var sd=class{constructor(e){this._parameters=e}shutdown(){var e;(e=this._client)===null||e===void 0||e.close()}send(e,n){let i=Buffer.from(e);if(this._client==null){let{createServiceClientConstructor:a}=fI();try{this._metadata=this._parameters.metadata()}catch(o){return Promise.resolve({status:"failure",error:o})}let s=a(this._parameters.grpcPath,this._parameters.grpcName);try{this._client=new s(this._parameters.address,this._parameters.credentials(),{"grpc.default_compression_algorithm":KW(this._parameters.compression)})}catch(o){return Promise.resolve({status:"failure",error:o})}}return new Promise(a=>{let s=Date.now()+n;if(this._metadata==null)return a({error:new Error("metadata was null"),status:"failure"});this._client.export(i,this._metadata,{deadline:s},(o,r)=>{a(o?{status:"failure",error:o}:{data:r,status:"success"})})})}};xt.GrpcExporterTransport=sd});var pI=h(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});Fu.VERSION=void 0;Fu.VERSION="0.54.0"});var hI=h(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.getOtlpGrpcDefaultConfiguration=hr.mergeOtlpGrpcConfigurationWithDefaults=hr.validateAndNormalizeUrl=void 0;var _I=(Ai(),Y(Pu)),gi=Hu(),JW=pI(),QW=L("url"),dI=(b(),Y(Re));function SI(t){var e;t=t.trim(),t.match(/^([\w]{1,8}):\/\//)||(t=`https://${t}`);let i=new QW.URL(t);return i.protocol==="unix:"?t:(i.pathname&&i.pathname!=="/"&&dI.diag.warn("URL path should not be set when using grpc, the path part of the URL will be ignored."),i.protocol!==""&&!(!((e=i.protocol)===null||e===void 0)&&e.match(/^(http)s?:$/))&&dI.diag.warn("URL protocol should be http(s)://. Using http://."),i.host)}hr.validateAndNormalizeUrl=SI;function EI(t,e){for(let[n,i]of Object.entries(e.getMap()))t.get(n).length<1&&t.set(n,i)}function ZW(t,e,n){var i,a,s,o,r;let u=(a=(i=t.url)!==null&&i!==void 0?i:e.url)!==null&&a!==void 0?a:n.url;return Object.assign(Object.assign({},(0,_I.mergeOtlpSharedConfigurationWithDefaults)(t,e,n)),{metadata:()=>{var l,c,p,_;let f=n.metadata();return EI(f,(c=(l=t.metadata)===null||l===void 0?void 0:l.call(t).clone())!==null&&c!==void 0?c:(0,gi.createEmptyMetadata)()),EI(f,(_=(p=e.metadata)===null||p===void 0?void 0:p.call(e))!==null&&_!==void 0?_:(0,gi.createEmptyMetadata)()),f},url:SI(u),credentials:(r=(s=t.credentials)!==null&&s!==void 0?s:(o=e.credentials)===null||o===void 0?void 0:o.call(e,u))!==null&&r!==void 0?r:n.credentials(u)})}hr.mergeOtlpGrpcConfigurationWithDefaults=ZW;function ez(){return Object.assign(Object.assign({},(0,_I.getSharedConfigurationDefaults)()),{metadata:()=>{let t=(0,gi.createEmptyMetadata)();return t.set("User-Agent",`OTel-OTLP-Exporter-JavaScript/${JW.VERSION}`),t},url:"http://localhost:4317",credentials:t=>t.startsWith("http://")?()=>(0,gi.createInsecureCredentials)():()=>(0,gi.createSslCredentials)()})}hr.getOtlpGrpcDefaultConfiguration=ez});var AI=h(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.getOtlpGrpcConfigurationFromEnv=void 0;var TI=(K(),Y(Vs)),Ni=Hu(),tz=(Ai(),Y(Pu)),rz=L("fs"),nz=L("path"),mI=(b(),Y(Re));function ud(t,e){if(t!=null&&t!=="")return t;if(e!=null&&e!=="")return e}function oz(t){var e,n;let i=(e=process.env[`OTEL_EXPORTER_OTLP_${t}_HEADERS`])===null||e===void 0?void 0:e.trim(),a=(n=process.env.OTEL_EXPORTER_OTLP_HEADERS)===null||n===void 0?void 0:n.trim(),s=TI.baggageUtils.parseKeyPairsIntoRecord(i),o=TI.baggageUtils.parseKeyPairsIntoRecord(a);if(Object.keys(s).length===0&&Object.keys(o).length===0)return;let r=Object.assign({},o,s),u=(0,Ni.createEmptyMetadata)();for(let[l,c]of Object.entries(r))u.set(l,c);return u}function iz(t){let e=oz(t);if(e!=null)return()=>e}function az(t){var e,n;let i=(e=process.env[`OTEL_EXPORTER_OTLP_${t}_ENDPOINT`])===null||e===void 0?void 0:e.trim(),a=(n=process.env.OTEL_EXPORTER_OTLP_ENDPOINT)===null||n===void 0?void 0:n.trim();return ud(i,a)}function sz(t){var e,n;let i=(e=process.env[`OTEL_EXPORTER_OTLP_${t}_INSECURE`])===null||e===void 0?void 0:e.toLowerCase().trim(),a=(n=process.env.OTEL_EXPORTER_OTLP_INSECURE)===null||n===void 0?void 0:n.toLowerCase().trim();return ud(i,a)==="true"}function ld(t,e,n){var i,a;let s=(i=process.env[t])===null||i===void 0?void 0:i.trim(),o=(a=process.env[e])===null||a===void 0?void 0:a.trim(),r=ud(s,o);if(r!=null)try{return rz.readFileSync(nz.resolve(process.cwd(),r))}catch{mI.diag.warn(n);return}else return}function uz(t){return ld(`OTEL_EXPORTER_OTLP_${t}_CLIENT_CERTIFICATE`,"OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE","Failed to read client certificate chain file")}function lz(t){return ld(`OTEL_EXPORTER_OTLP_${t}_CLIENT_KEY`,"OTEL_EXPORTER_OTLP_CLIENT_KEY","Failed to read client certificate private key file")}function vI(t){return ld(`OTEL_EXPORTER_OTLP_${t}_CERTIFICATE`,"OTEL_EXPORTER_OTLP_CERTIFICATE","Failed to read root certificate file")}function yI(t){let e=lz(t),n=uz(t),i=vI(t),a=e!=null&&n!=null;return i!=null&&!a?(mI.diag.warn("Client key and certificate must both be provided, but one was missing - attempting to create credentials from just the root certificate"),(0,Ni.createSslCredentials)(vI(t))):(0,Ni.createSslCredentials)(i,e,n)}function cz(t){return sz(t)?(0,Ni.createInsecureCredentials)():yI(t)}function fz(t){return Object.assign(Object.assign({},(0,tz.getSharedConfigurationFromEnvironment)(t)),{metadata:iz(t),url:az(t),credentials:e=>e.startsWith("http://")?()=>(0,Ni.createInsecureCredentials)():e.startsWith("https://")?()=>yI(t):()=>cz(t)})}Yu.getOtlpGrpcConfigurationFromEnv=fz});var RI=h(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.OTLPGRPCExporterNodeBase=void 0;var OI=(b(),Y(Re)),cd=(Ai(),Y(Pu)),gI=Hu(),NI=hI(),pz=AI(),fd=class extends cd.OTLPExporterBase{constructor(e={},n,i,a,s){super(e);let o=e.credentials,r=(0,NI.mergeOtlpGrpcConfigurationWithDefaults)({url:e.url,metadata:()=>{var u;return(u=e.metadata)!==null&&u!==void 0?u:(0,gI.createEmptyMetadata)()},compression:e.compression,timeoutMillis:e.timeoutMillis,concurrencyLimit:e.concurrencyLimit,credentials:o!=null?()=>o:void 0},(0,pz.getOtlpGrpcConfigurationFromEnv)(s),(0,NI.getOtlpGrpcDefaultConfiguration)());this._serializer=n,this._timeoutMillis=r.timeoutMillis,this._concurrencyLimit=r.concurrencyLimit,e.headers&&OI.diag.warn("Headers cannot be set when using grpc"),this._transport=new gI.GrpcExporterTransport({address:r.url,compression:r.compression,credentials:r.credentials,grpcName:i,grpcPath:a,metadata:r.metadata})}onShutdown(){this._transport.shutdown()}send(e,n,i){if(this._shutdownOnce.isCalled){OI.diag.debug("Shutdown already started. Cannot send objects");return}let a=this._serializer.serializeRequest(e);if(a==null){i(new Error("Could not serialize message"));return}let s=this._transport.send(a,this._timeoutMillis).then(r=>{r.status==="success"?n():r.status==="failure"&&r.error?i(r.error):r.status==="retryable"?i(new cd.OTLPExporterError("Export failed with retryable status")):i(new cd.OTLPExporterError("Export failed with unknown error"))},i);this._sendingPromises.push(s);let o=()=>{let r=this._sendingPromises.indexOf(s);this._sendingPromises.splice(r,1)};s.then(o,o)}};qu.OTLPGRPCExporterNodeBase=fd});var pd=h(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.OTLPGRPCExporterNodeBase=void 0;var dz=RI();Object.defineProperty(ju,"OTLPGRPCExporterNodeBase",{enumerable:!0,get:function(){return dz.OTLPGRPCExporterNodeBase}})});var PI=h($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.OTLPMetricExporter=void 0;var Ez=(cI(),Y(lI)),_z=pd(),Sz=(Bu(),Y(ad)),dd=class extends _z.OTLPGRPCExporterNodeBase{constructor(e){super(e,Sz.ProtobufMetricsSerializer,"MetricsExportService","/opentelemetry.proto.collector.metrics.v1.MetricsService/Export","METRICS")}},Ed=class extends Ez.OTLPMetricExporterBase{constructor(e){super(new dd(e),e)}};$u.OTLPMetricExporter=Ed});var bI=h(jr=>{"use strict";var hz=jr&&jr.__createBinding||(Object.create?function(t,e,n,i){i===void 0&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]}),Tz=jr&&jr.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&hz(e,t,n)};Object.defineProperty(jr,"__esModule",{value:!0});Tz(PI(),jr)});var Td=h(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.PrometheusSerializer=void 0;var vz=(b(),Y(Re)),$r=(wn(),Y(qp)),MI=(K(),Y(Vs));function Wu(t){return t.replace(/\\/g,"\\\\").replace(/\n/g,"\\n")}function xI(t=""){return typeof t!="string"&&(t=JSON.stringify(t)),Wu(t).replace(/"/g,'\\"')}var mz=/[^a-z0-9_]/gi,yz=/_{2,}/g;function Sd(t){return t.replace(mz,"_").replace(yz,"_")}function _d(t,e){return!t.endsWith("_total")&&e===$r.InstrumentType.COUNTER&&(t=t+"_total"),t}function Az(t){return Number.isNaN(t)?"NaN":Number.isFinite(t)?`${t}`:t<0?"-Inf":"+Inf"}function Oz(t){switch(t.dataPointType){case $r.DataPointType.SUM:return t.isMonotonic?"counter":"gauge";case $r.DataPointType.GAUGE:return"gauge";case $r.DataPointType.HISTOGRAM:return"histogram";default:return"untyped"}}function Ku(t,e,n,i,a){let s=!1,o="";for(let[r,u]of Object.entries(e)){let l=Sd(r);s=!0,o+=`${o.length>0?",":""}${l}="${xI(u)}"`}if(a)for(let[r,u]of Object.entries(a)){let l=Sd(r);s=!0,o+=`${o.length>0?",":""}${l}="${xI(u)}"`}return s&&(t+=`{${o}}`),`${t} ${Az(n)}${i!==void 0?" "+String(i):""}
|
52
|
+
`}var gz="# no registered metrics",hd=class{constructor(e,n=!1){e&&(this._prefix=e+"_"),this._appendTimestamp=n}serialize(e){let n="";for(let i of e.scopeMetrics)n+=this._serializeScopeMetrics(i);return n===""&&(n+=gz),this._serializeResource(e.resource)+n}_serializeScopeMetrics(e){let n="";for(let i of e.metrics)n+=this._serializeMetricData(i)+`
|
53
|
+
`;return n}_serializeMetricData(e){let n=Sd(Wu(e.descriptor.name));this._prefix&&(n=`${this._prefix}${n}`);let i=e.dataPointType;n=_d(n,e.descriptor.type);let a=`# HELP ${n} ${Wu(e.descriptor.description||"description missing")}`,s=e.descriptor.unit?`
|
54
|
+
# UNIT ${n} ${Wu(e.descriptor.unit)}`:"",o=`# TYPE ${n} ${Oz(e)}`,r="";switch(i){case $r.DataPointType.SUM:case $r.DataPointType.GAUGE:{r=e.dataPoints.map(u=>this._serializeSingularDataPoint(n,e.descriptor.type,u)).join("");break}case $r.DataPointType.HISTOGRAM:{r=e.dataPoints.map(u=>this._serializeHistogramDataPoint(n,e.descriptor.type,u)).join("");break}default:vz.diag.error(`Unrecognizable DataPointType: ${i} for metric "${n}"`)}return`${a}${s}
|
55
55
|
${o}
|
56
|
-
${r}`.trim()}_serializeSingularDataPoint(e,n,i){let a="";e=
|
56
|
+
${r}`.trim()}_serializeSingularDataPoint(e,n,i){let a="";e=_d(e,n);let{value:s,attributes:o}=i,r=(0,MI.hrTimeToMilliseconds)(i.endTime);return a+=Ku(e,o,s,this._appendTimestamp?r:void 0,void 0),a}_serializeHistogramDataPoint(e,n,i){let a="";e=_d(e,n);let s=i.attributes,o=i.value,r=(0,MI.hrTimeToMilliseconds)(i.endTime);for(let p of["count","sum"]){let _=o[p];_!=null&&(a+=Ku(e+"_"+p,s,_,this._appendTimestamp?r:void 0,void 0))}let u=0,l=o.buckets.counts.entries(),c=!1;for(let[p,_]of l){u+=_;let f=o.buckets.boundaries[p];if(f===void 0&&c)break;f===1/0&&(c=!0),a+=Ku(e+"_bucket",s,u,this._appendTimestamp?r:void 0,{le:f===void 0||f===1/0?"+Inf":String(f)})}return a}_serializeResource(e){let n="target_info",i=`# HELP ${n} Target metadata`,a=`# TYPE ${n} gauge`,s=Ku(n,e.attributes,1).trim();return`${i}
|
57
57
|
${a}
|
58
58
|
${s}
|
59
|
-
`}};Ku.PrometheusSerializer=Sd});var MI=h(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.PrometheusExporter=void 0;var Ni=(b(),Y(Re)),Oz=(K(),Y(Us)),Td=(wn(),Y(Yp)),gz=L("http"),Nz=hd(),Rz=L("url"),Lt=class extends Td.MetricReader{constructor(e={},n=()=>{}){super({aggregationSelector:i=>Td.Aggregation.Default(),aggregationTemporalitySelector:i=>Td.AggregationTemporality.CUMULATIVE,metricProducers:e.metricProducers}),this._requestHandler=(i,a)=>{i.url!=null&&new Rz.URL(i.url,this._baseUrl).pathname===this._endpoint?this._exportMetrics(a):this._notFound(a)},this._exportMetrics=i=>{i.statusCode=200,i.setHeader("content-type","text/plain"),this.collect().then(a=>{let{resourceMetrics:s,errors:o}=a;o.length&&Ni.diag.error("PrometheusExporter: metrics collection errors",...o),i.end(this._serializer.serialize(s))},a=>{i.end(`# failed to export metrics: ${a}`)})},this._notFound=i=>{i.statusCode=404,i.end()},this._host=e.host||process.env.OTEL_EXPORTER_PROMETHEUS_HOST||Lt.DEFAULT_OPTIONS.host,this._port=e.port||Number(process.env.OTEL_EXPORTER_PROMETHEUS_PORT)||Lt.DEFAULT_OPTIONS.port,this._prefix=e.prefix||Lt.DEFAULT_OPTIONS.prefix,this._appendTimestamp=typeof e.appendTimestamp=="boolean"?e.appendTimestamp:Lt.DEFAULT_OPTIONS.appendTimestamp,this._server=(0,gz.createServer)(this._requestHandler).unref(),this._serializer=new Nz.PrometheusSerializer(this._prefix,this._appendTimestamp),this._baseUrl=`http://${this._host}:${this._port}/`,this._endpoint=(e.endpoint||Lt.DEFAULT_OPTIONS.endpoint).replace(/^([^/])/,"/$1"),e.preventServerStart!==!0?this.startServer().then(n,i=>{Ni.diag.error(i),n(i)}):n&&queueMicrotask(n)}async onForceFlush(){}onShutdown(){return this.stopServer()}stopServer(){return this._server?new Promise(e=>{this._server.close(n=>{n?n.code!=="ERR_SERVER_NOT_RUNNING"&&(0,Oz.globalErrorHandler)(n):Ni.diag.debug("Prometheus exporter was stopped"),e()})}):(Ni.diag.debug("Prometheus stopServer() was called but server was never started."),Promise.resolve())}startServer(){var e;return(e=this._startServerPromise)!==null&&e!==void 0||(this._startServerPromise=new Promise((n,i)=>{this._server.once("error",i),this._server.listen({port:this._port,host:this._host},()=>{Ni.diag.debug(`Prometheus exporter server started: ${this._host}:${this._port}/${this._endpoint}`),n()})})),this._startServerPromise}getMetricsRequestHandler(e,n){this._exportMetrics(n)}};Wu.PrometheusExporter=Lt;Lt.DEFAULT_OPTIONS={host:void 0,port:9464,endpoint:"/metrics",prefix:"",appendTimestamp:!1}});var xI=h(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.PrometheusSerializer=Yn.PrometheusExporter=void 0;var Pz=MI();Object.defineProperty(Yn,"PrometheusExporter",{enumerable:!0,get:function(){return Pz.PrometheusExporter}});var bz=hd();Object.defineProperty(Yn,"PrometheusSerializer",{enumerable:!0,get:function(){return bz.PrometheusSerializer}})});var md=h(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.AbstractAsyncHooksContextManager=void 0;var Mz=L("events"),xz=["addListener","on","once","prependListener","prependOnceListener"],vd=class{constructor(){this._kOtListeners=Symbol("OtListeners"),this._wrapped=!1}bind(e,n){return n instanceof Mz.EventEmitter?this._bindEventEmitter(e,n):typeof n=="function"?this._bindFunction(e,n):n}_bindFunction(e,n){let i=this,a=function(...s){return i.with(e,()=>n.apply(this,s))};return Object.defineProperty(a,"length",{enumerable:!1,configurable:!0,writable:!1,value:n.length}),a}_bindEventEmitter(e,n){return this._getPatchMap(n)!==void 0||(this._createPatchMap(n),xz.forEach(a=>{n[a]!==void 0&&(n[a]=this._patchAddListener(n,n[a],e))}),typeof n.removeListener=="function"&&(n.removeListener=this._patchRemoveListener(n,n.removeListener)),typeof n.off=="function"&&(n.off=this._patchRemoveListener(n,n.off)),typeof n.removeAllListeners=="function"&&(n.removeAllListeners=this._patchRemoveAllListeners(n,n.removeAllListeners))),n}_patchRemoveListener(e,n){let i=this;return function(a,s){var o;let r=(o=i._getPatchMap(e))===null||o===void 0?void 0:o[a];if(r===void 0)return n.call(this,a,s);let u=r.get(s);return n.call(this,a,u||s)}}_patchRemoveAllListeners(e,n){let i=this;return function(a){let s=i._getPatchMap(e);return s!==void 0&&(arguments.length===0?i._createPatchMap(e):s[a]!==void 0&&delete s[a]),n.apply(this,arguments)}}_patchAddListener(e,n,i){let a=this;return function(s,o){if(a._wrapped)return n.call(this,s,o);let r=a._getPatchMap(e);r===void 0&&(r=a._createPatchMap(e));let u=r[s];u===void 0&&(u=new WeakMap,r[s]=u);let l=a.bind(i,o);u.set(o,l),a._wrapped=!0;try{return n.call(this,s,l)}finally{a._wrapped=!1}}}_createPatchMap(e){let n=Object.create(null);return e[this._kOtListeners]=n,n}_getPatchMap(e){return e[this._kOtListeners]}};zu.AbstractAsyncHooksContextManager=vd});var LI=h(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.AsyncHooksContextManager=void 0;var Lz=(b(),Y(Re)),Iz=L("async_hooks"),Cz=md(),yd=class extends Cz.AbstractAsyncHooksContextManager{constructor(){super(),this._contexts=new Map,this._stack=[],this._asyncHook=Iz.createHook({init:this._init.bind(this),before:this._before.bind(this),after:this._after.bind(this),destroy:this._destroy.bind(this),promiseResolve:this._destroy.bind(this)})}active(){var e;return(e=this._stack[this._stack.length-1])!==null&&e!==void 0?e:Lz.ROOT_CONTEXT}with(e,n,i,...a){this._enterContext(e);try{return n.call(i,...a)}finally{this._exitContext()}}enable(){return this._asyncHook.enable(),this}disable(){return this._asyncHook.disable(),this._contexts.clear(),this._stack=[],this}_init(e,n){if(n==="TIMERWRAP")return;let i=this._stack[this._stack.length-1];i!==void 0&&this._contexts.set(e,i)}_destroy(e){this._contexts.delete(e)}_before(e){let n=this._contexts.get(e);n!==void 0&&this._enterContext(n)}_after(){this._exitContext()}_enterContext(e){this._stack.push(e)}_exitContext(){this._stack.pop()}};Xu.AsyncHooksContextManager=yd});var II=h(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.AsyncLocalStorageContextManager=void 0;var wz=(b(),Y(Re)),Uz=L("async_hooks"),Dz=md(),Ad=class extends Dz.AbstractAsyncHooksContextManager{constructor(){super(),this._asyncLocalStorage=new Uz.AsyncLocalStorage}active(){var e;return(e=this._asyncLocalStorage.getStore())!==null&&e!==void 0?e:wz.ROOT_CONTEXT}with(e,n,i,...a){let s=i==null?n:n.bind(i);return this._asyncLocalStorage.run(e,s,...a)}enable(){return this}disable(){return this._asyncLocalStorage.disable(),this}};Ju.AsyncLocalStorageContextManager=Ad});var CI=h(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.AsyncLocalStorageContextManager=qn.AsyncHooksContextManager=void 0;var Vz=LI();Object.defineProperty(qn,"AsyncHooksContextManager",{enumerable:!0,get:function(){return Vz.AsyncHooksContextManager}});var Bz=II();Object.defineProperty(qn,"AsyncLocalStorageContextManager",{enumerable:!0,get:function(){return Bz.AsyncLocalStorageContextManager}})});var jn,Od=m(()=>{b();jn=Xr("OpenTelemetry Context Key B3 Debug Flag")});var Tr,$n,Kn,Wn,Qu,zn,Ri=m(()=>{Tr="b3",$n="x-b3-traceid",Kn="x-b3-spanid",Wn="x-b3-sampled",Qu="x-b3-parentspanid",zn="x-b3-flags"});function Hz(t){return t===J.SAMPLED||t===J.NONE}function Fz(t){return Array.isArray(t)?t[0]:t}function Zu(t,e,n){var i=e.get(t,n);return Fz(i)}function Yz(t,e){var n=Zu(t,e,$n);return typeof n=="string"?n.padStart(32,"0"):""}function qz(t,e){var n=Zu(t,e,Kn);return typeof n=="string"?n:""}function wI(t,e){var n=Zu(t,e,zn);return n==="1"?"1":void 0}function jz(t,e){var n=Zu(t,e,Wn),i=wI(t,e);if(i==="1"||Gz.has(n))return J.SAMPLED;if(n===void 0||kz.has(n))return J.NONE}var Gz,kz,UI,DI=m(()=>{b();K();Od();Ri();Gz=new Set([!0,"true","True","1",1]),kz=new Set([!1,"false","False","0",0]);UI=function(){function t(){}return t.prototype.inject=function(e,n,i){var a=X.getSpanContext(e);if(!(!a||!_t(a)||be(e))){var s=e.getValue(jn);i.set(n,$n,a.traceId),i.set(n,Kn,a.spanId),s==="1"?i.set(n,zn,s):a.traceFlags!==void 0&&i.set(n,Wn,(J.SAMPLED&a.traceFlags)===J.SAMPLED?"1":"0")}},t.prototype.extract=function(e,n,i){var a=Yz(n,i),s=qz(n,i),o=jz(n,i),r=wI(n,i);return Ft(a)&&Vi(s)&&Hz(o)?(e=e.setValue(jn,r),X.setSpanContext(e,{traceId:a,spanId:s,isRemote:!0,traceFlags:o})):e},t.prototype.fields=function(){return[$n,Kn,zn,Wn,Qu]},t}()});function Jz(t){return t.length===32?t:""+Wz+t}function Qz(t){return t&&zz.has(t)?J.SAMPLED:J.NONE}var $z,Kz,Wz,zz,Xz,VI,BI=m(()=>{b();K();Od();Ri();$z=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Kz=/((?:[0-9a-f]{16}){1,2})-([0-9a-f]{16})(?:-([01d](?![0-9a-f])))?(?:-([0-9a-f]{16}))?/,Wz="0".repeat(16),zz=new Set(["d","1"]),Xz="d";VI=function(){function t(){}return t.prototype.inject=function(e,n,i){var a=X.getSpanContext(e);if(!(!a||!_t(a)||be(e))){var s=e.getValue(jn)||a.traceFlags&1,o=a.traceId+"-"+a.spanId+"-"+s;i.set(n,Tr,o)}},t.prototype.extract=function(e,n,i){var a=i.get(n,Tr),s=Array.isArray(a)?a[0]:a;if(typeof s!="string")return e;var o=s.match(Kz);if(!o)return e;var r=$z(o,4),u=r[1],l=r[2],c=r[3],p=Jz(u);if(!Ft(p)||!Vi(l))return e;var _=Qz(c);return c===Xz&&(e=e.setValue(jn,c)),X.setSpanContext(e,{traceId:p,spanId:l,isRemote:!0,traceFlags:_})},t.prototype.fields=function(){return[Tr]},t}()});var Xn,gd=m(()=>{(function(t){t[t.SINGLE_HEADER=0]="SINGLE_HEADER",t[t.MULTI_HEADER=1]="MULTI_HEADER"})(Xn||(Xn={}))});var GI,kI=m(()=>{K();DI();BI();Ri();gd();GI=function(){function t(e){e===void 0&&(e={}),this._b3MultiPropagator=new UI,this._b3SinglePropagator=new VI,e.injectEncoding===Xn.MULTI_HEADER?(this._inject=this._b3MultiPropagator.inject,this._fields=this._b3MultiPropagator.fields()):(this._inject=this._b3SinglePropagator.inject,this._fields=this._b3SinglePropagator.fields())}return t.prototype.inject=function(e,n,i){be(e)||this._inject(e,n,i)},t.prototype.extract=function(e,n,i){var a=i.get(n,Tr),s=Array.isArray(a)?a[0]:a;return s?this._b3SinglePropagator.extract(e,n,i):this._b3MultiPropagator.extract(e,n,i)},t.prototype.fields=function(){return this._fields},t}()});var HI={};it(HI,{B3InjectEncoding:()=>Xn,B3Propagator:()=>GI,B3_CONTEXT_HEADER:()=>Tr,X_B3_FLAGS:()=>zn,X_B3_PARENT_SPAN_ID:()=>Qu,X_B3_SAMPLED:()=>Wn,X_B3_SPAN_ID:()=>Kn,X_B3_TRACE_ID:()=>$n});var FI=m(()=>{kI();Ri();gd()});var YI,qI=m(()=>{YI="exception"});var Nd,Zz,jI,eX,el,Rd=m(()=>{b();K();Xo();qI();Nd=function(){return Nd=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},Nd.apply(this,arguments)},Zz=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},jI=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},eX=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},el=function(){function t(e,n,i,a,s,o,r,u,l,c){r===void 0&&(r=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:lE.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=i,this._spanContext=a,this.parentSpanId=o,this.kind=s,this.links=r;var p=Date.now();this._performanceStartTime=tt.now(),this._performanceOffset=p-(this._performanceStartTime+Nn()),this._startTimeProvided=u!=null,this.startTime=this._getTime(u??p),this.resource=e.resource,this.instrumentationLibrary=e.instrumentationLibrary,this._spanLimits=e.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,c!=null&&this.setAttributes(c),this._spanProcessor=e.getActiveSpanProcessor(),this._spanProcessor.onStart(this,n)}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(e,n){return n==null||this._isSpanEnded()?this:e.length===0?(g.warn("Invalid attribute key: "+e),this):Zo(n)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(n),this):(g.warn("Invalid attribute value set for key: "+e),this)},t.prototype.setAttributes=function(e){var n,i;try{for(var a=Zz(Object.entries(e)),s=a.next();!s.done;s=a.next()){var o=jI(s.value,2),r=o[0],u=o[1];this.setAttribute(r,u)}}catch(l){n={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return this},t.prototype.addEvent=function(e,n,i){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return g.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(this._droppedEventsCount===0&&g.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),ni(n)&&(ni(i)||(i=n),n=void 0);var a=ur(n);return this.events.push({name:e,attributes:a,time:this._getTime(i),droppedAttributesCount:0}),this},t.prototype.addLink=function(e){return this.links.push(e),this},t.prototype.addLinks=function(e){var n;return(n=this.links).push.apply(n,eX([],jI(e),!1)),this},t.prototype.setStatus=function(e){return this._isSpanEnded()?this:(this.status=Nd({},e),this.status.message!=null&&typeof e.message!="string"&&(g.warn("Dropping invalid status.message of type '"+typeof e.message+"', expected 'string'"),delete this.status.message),this)},t.prototype.updateName=function(e){return this._isSpanEnded()?this:(this.name=e,this)},t.prototype.end=function(e){if(this._isSpanEnded()){g.error(this.name+" "+this._spanContext.traceId+"-"+this._spanContext.spanId+" - You can only call end() on a span once.");return}this._ended=!0,this.endTime=this._getTime(e),this._duration=Rs(this.startTime,this.endTime),this._duration[0]<0&&(g.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&g.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this)},t.prototype._getTime=function(e){if(typeof e=="number"&&e<tt.now())return ri(e+this._performanceOffset);if(typeof e=="number")return Oe(e);if(e instanceof Date)return Oe(e.getTime());if(Rn(e))return e;if(this._startTimeProvided)return Oe(Date.now());var n=tt.now()-this._performanceStartTime;return oi(this.startTime,Oe(n))},t.prototype.isRecording=function(){return this._ended===!1},t.prototype.recordException=function(e,n){var i={};typeof e=="string"?i[ps]=e:e&&(e.code?i[fs]=e.code.toString():e.name&&(i[fs]=e.name),e.message&&(i[ps]=e.message),e.stack&&(i[i0]=e.stack)),i[fs]||i[ps]?this.addEvent(YI,i,n):g.warn("Failed to record an exception "+e)},Object.defineProperty(t.prototype,"duration",{get:function(){return this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"droppedAttributesCount",{get:function(){return this._droppedAttributesCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"droppedEventsCount",{get:function(){return this._droppedEventsCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"droppedLinksCount",{get:function(){return this._droppedLinksCount},enumerable:!1,configurable:!0}),t.prototype._isSpanEnded=function(){return this._ended&&g.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},t.prototype._truncateToLimitUtil=function(e,n){return e.length<=n?e:e.substr(0,n)},t.prototype._truncateToSize=function(e){var n=this,i=this._attributeValueLengthLimit;return i<=0?(g.warn("Attribute value limit must be positive, got "+i),e):typeof e=="string"?this._truncateToLimitUtil(e,i):Array.isArray(e)?e.map(function(a){return typeof a=="string"?n._truncateToLimitUtil(a,i):a}):e},t}()});var dt,Pi=m(()=>{(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(dt||(dt={}))});var vr,tl=m(()=>{Pi();vr=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:dt.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}()});var It,rl=m(()=>{Pi();It=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:dt.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}()});var Jn,Pd=m(()=>{b();K();tl();rl();Jn=function(){function t(e){var n,i,a,s;this._root=e.root,this._root||(he(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new It),this._remoteParentSampled=(n=e.remoteParentSampled)!==null&&n!==void 0?n:new It,this._remoteParentNotSampled=(i=e.remoteParentNotSampled)!==null&&i!==void 0?i:new vr,this._localParentSampled=(a=e.localParentSampled)!==null&&a!==void 0?a:new It,this._localParentNotSampled=(s=e.localParentNotSampled)!==null&&s!==void 0?s:new vr}return t.prototype.shouldSample=function(e,n,i,a,s,o){var r=X.getSpanContext(e);return!r||!_t(r)?this._root.shouldSample(e,n,i,a,s,o):r.isRemote?r.traceFlags&J.SAMPLED?this._remoteParentSampled.shouldSample(e,n,i,a,s,o):this._remoteParentNotSampled.shouldSample(e,n,i,a,s,o):r.traceFlags&J.SAMPLED?this._localParentSampled.shouldSample(e,n,i,a,s,o):this._localParentNotSampled.shouldSample(e,n,i,a,s,o)},t.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},t}()});var bi,bd=m(()=>{b();Pi();bi=function(){function t(e){e===void 0&&(e=0),this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}return t.prototype.shouldSample=function(e,n){return{decision:Ft(n)&&this._accumulate(n)<this._upperBound?dt.RECORD_AND_SAMPLED:dt.NOT_RECORD}},t.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},t.prototype._normalize=function(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e},t.prototype._accumulate=function(e){for(var n=0,i=0;i<e.length/8;i++){var a=i*8,s=parseInt(e.slice(a,a+8),16);n=(n^s)>>>0}return n},t}()});function nl(){var t=Ae();return{sampler:Md(tX),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:t.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:t.OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:t.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:t.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:t.OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:t.OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:t.OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:t.OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}}}function Md(t){switch(t===void 0&&(t=Ae()),t.OTEL_TRACES_SAMPLER){case qe.AlwaysOn:return new It;case qe.AlwaysOff:return new vr;case qe.ParentBasedAlwaysOn:return new Jn({root:new It});case qe.ParentBasedAlwaysOff:return new Jn({root:new vr});case qe.TraceIdRatio:return new bi($I(t));case qe.ParentBasedTraceIdRatio:return new Jn({root:new bi($I(t))});default:return g.error('OTEL_TRACES_SAMPLER value "'+t.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+rX+'".'),new It}}function $I(t){if(t.OTEL_TRACES_SAMPLER_ARG===void 0||t.OTEL_TRACES_SAMPLER_ARG==="")return g.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to "+Qn+"."),Qn;var e=Number(t.OTEL_TRACES_SAMPLER_ARG);return isNaN(e)?(g.error("OTEL_TRACES_SAMPLER_ARG="+t.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to "+Qn+"."),Qn):e<0||e>1?(g.error("OTEL_TRACES_SAMPLER_ARG="+t.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to "+Qn+"."),Qn):e}var tX,rX,Qn,xd=m(()=>{b();K();tl();rl();Pd();bd();tX=Ae(),rX=qe.AlwaysOn,Qn=1});function KI(t){var e={sampler:Md()},n=nl(),i=Object.assign({},n,e,t);return i.generalLimits=Object.assign({},n.generalLimits,t.generalLimits||{}),i.spanLimits=Object.assign({},n.spanLimits,t.spanLimits||{}),i}function WI(t){var e,n,i,a,s,o,r,u,l,c,p,_,f=Object.assign({},t.spanLimits),S=On();return f.attributeCountLimit=(o=(s=(a=(n=(e=t.spanLimits)===null||e===void 0?void 0:e.attributeCountLimit)!==null&&n!==void 0?n:(i=t.generalLimits)===null||i===void 0?void 0:i.attributeCountLimit)!==null&&a!==void 0?a:S.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)!==null&&s!==void 0?s:S.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&o!==void 0?o:Gr,f.attributeValueLengthLimit=(_=(p=(c=(u=(r=t.spanLimits)===null||r===void 0?void 0:r.attributeValueLengthLimit)!==null&&u!==void 0?u:(l=t.generalLimits)===null||l===void 0?void 0:l.attributeValueLengthLimit)!==null&&c!==void 0?c:S.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&p!==void 0?p:S.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&_!==void 0?_:Br,Object.assign({},t,{spanLimits:f})}var Ld=m(()=>{xd();K()});var zI,XI=m(()=>{b();K();zI=function(){function t(e,n){this._exporter=e,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var i=Ae();this._maxExportBatchSize=typeof n?.maxExportBatchSize=="number"?n.maxExportBatchSize:i.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof n?.maxQueueSize=="number"?n.maxQueueSize:i.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof n?.scheduledDelayMillis=="number"?n.scheduledDelayMillis:i.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof n?.exportTimeoutMillis=="number"?n.exportTimeoutMillis:i.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new pr(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(g.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return t.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},t.prototype.onStart=function(e,n){},t.prototype.onEnd=function(e){this._shutdownOnce.isCalled||e.spanContext().traceFlags&J.SAMPLED&&this._addToBuffer(e)},t.prototype.shutdown=function(){return this._shutdownOnce.call()},t.prototype._shutdown=function(){var e=this;return Promise.resolve().then(function(){return e.onShutdown()}).then(function(){return e._flushAll()}).then(function(){return e._exporter.shutdown()})},t.prototype._addToBuffer=function(e){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&g.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(g.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()},t.prototype._flushAll=function(){var e=this;return new Promise(function(n,i){for(var a=[],s=Math.ceil(e._finishedSpans.length/e._maxExportBatchSize),o=0,r=s;o<r;o++)a.push(e._flushOneBatch());Promise.all(a).then(function(){n()}).catch(i)})},t.prototype._flushOneBatch=function(){var e=this;return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise(function(n,i){var a=setTimeout(function(){i(new Error("Timeout"))},e._exportTimeoutMillis);ke.with(yn(ke.active()),function(){var s;e._finishedSpans.length<=e._maxExportBatchSize?(s=e._finishedSpans,e._finishedSpans=[]):s=e._finishedSpans.splice(0,e._maxExportBatchSize);for(var o=function(){return e._exporter.export(s,function(p){var _;clearTimeout(a),p.code===ee.SUCCESS?n():i((_=p.error)!==null&&_!==void 0?_:new Error("BatchSpanProcessor: span export failed"))})},r=null,u=0,l=s.length;u<l;u++){var c=s[u];c.resource.asyncAttributesPending&&c.resource.waitForAsyncAttributes&&(r??(r=[]),r.push(c.resource.waitForAsyncAttributes()))}r===null?o():Promise.all(r).then(o,function(p){he(p),i(p)})})})},t.prototype._maybeStartTimer=function(){var e=this;if(!this._isExporting){var n=function(){e._isExporting=!0,e._flushOneBatch().finally(function(){e._isExporting=!1,e._finishedSpans.length>0&&(e._clearTimer(),e._maybeStartTimer())}).catch(function(i){e._isExporting=!1,he(i)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return n();this._timer===void 0&&(this._timer=setTimeout(function(){return n()},this._scheduledDelayMillis),fr(this._timer))}},t.prototype._clearTimer=function(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)},t}()});var nX,mr,JI=m(()=>{XI();nX=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),mr=function(t){nX(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onShutdown=function(){},e}(zI)});function QI(t){return function(){for(var n=0;n<t/4;n++)ol.writeUInt32BE(Math.random()*Math.pow(2,32)>>>0,n*4);for(var n=0;n<t&&!(ol[n]>0);n++)n===t-1&&(ol[t-1]=1);return ol.toString("hex",0,t)}}var oX,ZI,Zn,ol,eC=m(()=>{oX=8,ZI=16,Zn=function(){function t(){this.generateTraceId=QI(ZI),this.generateSpanId=QI(oX)}return t}(),ol=Buffer.allocUnsafe(ZI)});var tC=m(()=>{JI();eC()});var il=m(()=>{tC()});var al,rC=m(()=>{b();K();Rd();Ld();il();al=function(){function t(e,n,i){this._tracerProvider=i;var a=KI(n);this._sampler=a.sampler,this._generalLimits=a.generalLimits,this._spanLimits=a.spanLimits,this._idGenerator=n.idGenerator||new Zn,this.resource=i.resource,this.instrumentationLibrary=e}return t.prototype.startSpan=function(e,n,i){var a,s,o;n===void 0&&(n={}),i===void 0&&(i=ke.active()),n.root&&(i=X.deleteSpan(i));var r=X.getSpan(i);if(be(i)){g.debug("Instrumentation suppressed, returning Noop Span");var u=X.wrapSpanContext(aE);return u}var l=r?.spanContext(),c=this._idGenerator.generateSpanId(),p,_,f;!l||!X.isSpanContextValid(l)?p=this._idGenerator.generateTraceId():(p=l.traceId,_=l.traceState,f=l.spanId);var S=(a=n.kind)!==null&&a!==void 0?a:uE.INTERNAL,v=((s=n.links)!==null&&s!==void 0?s:[]).map(function(F){return{context:F.context,attributes:ur(F.attributes)}}),T=ur(n.attributes),A=this._sampler.shouldSample(i,p,e,S,T,v);_=(o=A.traceState)!==null&&o!==void 0?o:_;var O=A.decision===St.RECORD_AND_SAMPLED?J.SAMPLED:J.NONE,N={traceId:p,spanId:c,traceFlags:O,traceState:_};if(A.decision===St.NOT_RECORD){g.debug("Recording is off, propagating context in a non-recording span");var u=X.wrapSpanContext(N);return u}var D=ur(Object.assign(T,A.attributes)),G=new el(this,i,e,N,S,f,v,n.startTime,void 0,D);return G},t.prototype.startActiveSpan=function(e,n,i,a){var s,o,r;if(!(arguments.length<2)){arguments.length===2?r=n:arguments.length===3?(s=n,r=i):(s=n,o=i,r=a);var u=o??ke.active(),l=this.startSpan(e,s,u),c=X.setSpan(u,l);return ke.with(c,r,void 0,l)}},t.prototype.getGeneralLimits=function(){return this._generalLimits},t.prototype.getSpanLimits=function(){return this._spanLimits},t.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},t}()});var sl,nC,oC=m(()=>{K();sl=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},nC=function(){function t(e){this._spanProcessors=e}return t.prototype.forceFlush=function(){var e,n,i=[];try{for(var a=sl(this._spanProcessors),s=a.next();!s.done;s=a.next()){var o=s.value;i.push(o.forceFlush())}}catch(r){e={error:r}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return new Promise(function(r){Promise.all(i).then(function(){r()}).catch(function(u){he(u||new Error("MultiSpanProcessor: forceFlush failed")),r()})})},t.prototype.onStart=function(e,n){var i,a;try{for(var s=sl(this._spanProcessors),o=s.next();!o.done;o=s.next()){var r=o.value;r.onStart(e,n)}}catch(u){i={error:u}}finally{try{o&&!o.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}},t.prototype.onEnd=function(e){var n,i;try{for(var a=sl(this._spanProcessors),s=a.next();!s.done;s=a.next()){var o=s.value;o.onEnd(e)}}catch(r){n={error:r}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}},t.prototype.shutdown=function(){var e,n,i=[];try{for(var a=sl(this._spanProcessors),s=a.next();!s.done;s=a.next()){var o=s.value;i.push(o.shutdown())}}catch(r){e={error:r}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return new Promise(function(r,u){Promise.all(i).then(function(){r()},u)})},t}()});var ul,Id=m(()=>{ul=function(){function t(){}return t.prototype.onStart=function(e,n){},t.prototype.onEnd=function(e){},t.prototype.shutdown=function(){return Promise.resolve()},t.prototype.forceFlush=function(){return Promise.resolve()},t}()});var kt,iC,aC=m(()=>{b();K();Bs();Mi();xd();oC();Id();il();Ld();(function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"})(kt||(kt={}));iC=function(){function t(e){e===void 0&&(e={});var n;this._registeredSpanProcessors=[],this._tracers=new Map;var i=ws({},nl(),WI(e));this.resource=(n=i.resource)!==null&&n!==void 0?n:Bt.empty(),this.resource=Bt.default().merge(this.resource),this._config=Object.assign({},i,{resource:this.resource});var a=this._buildExporterFromEnv();if(a!==void 0){var s=new mr(a);this.activeSpanProcessor=s}else this.activeSpanProcessor=new ul}return t.prototype.getTracer=function(e,n,i){var a=e+"@"+(n||"")+":"+(i?.schemaUrl||"");return this._tracers.has(a)||this._tracers.set(a,new al({name:e,version:n,schemaUrl:i?.schemaUrl},this._config,this)),this._tracers.get(a)},t.prototype.addSpanProcessor=function(e){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(function(n){return g.error("Error while trying to shutdown current span processor",n)}),this._registeredSpanProcessors.push(e),this.activeSpanProcessor=new nC(this._registeredSpanProcessors)},t.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},t.prototype.register=function(e){e===void 0&&(e={}),X.setGlobalTracerProvider(this),e.propagator===void 0&&(e.propagator=this._buildPropagatorFromEnv()),e.contextManager&&ke.setGlobalContextManager(e.contextManager),e.propagator&&st.setGlobalPropagator(e.propagator)},t.prototype.forceFlush=function(){var e=this._config.forceFlushTimeoutMillis,n=this._registeredSpanProcessors.map(function(i){return new Promise(function(a){var s,o=setTimeout(function(){a(new Error("Span processor did not completed within timeout period of "+e+" ms")),s=kt.timeout},e);i.forceFlush().then(function(){clearTimeout(o),s!==kt.timeout&&(s=kt.resolved,a(s))}).catch(function(r){clearTimeout(o),s=kt.error,a(r)})})});return new Promise(function(i,a){Promise.all(n).then(function(s){var o=s.filter(function(r){return r!==kt.resolved});o.length>0?a(o):i()}).catch(function(s){return a([s])})})},t.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},t.prototype._getPropagator=function(e){var n;return(n=this.constructor._registeredPropagators.get(e))===null||n===void 0?void 0:n()},t.prototype._getSpanExporter=function(e){var n;return(n=this.constructor._registeredExporters.get(e))===null||n===void 0?void 0:n()},t.prototype._buildPropagatorFromEnv=function(){var e=this,n=Array.from(new Set(Ae().OTEL_PROPAGATORS)),i=n.map(function(s){var o=e._getPropagator(s);return o||g.warn('Propagator "'+s+'" requested through environment variable is unavailable.'),o}),a=i.reduce(function(s,o){return o&&s.push(o),s},[]);if(a.length!==0)return n.length===1?a[0]:new bs({propagators:a})},t.prototype._buildExporterFromEnv=function(){var e=Ae().OTEL_TRACES_EXPORTER;if(!(e==="none"||e==="")){var n=this._getSpanExporter(e);return n||g.error('Exporter "'+e+'" requested through environment variable is unavailable.'),n}},t._registeredPropagators=new Map([["tracecontext",function(){return new xs}],["baggage",function(){return new Ts}]]),t._registeredExporters=new Map,t}()});var iX,sC,uC=m(()=>{K();iX=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},sC=function(){function t(){}return t.prototype.export=function(e,n){return this._sendSpans(e,n)},t.prototype.shutdown=function(){return this._sendSpans([]),this.forceFlush()},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype._exportInfo=function(e){var n;return{resource:{attributes:e.resource.attributes},instrumentationScope:e.instrumentationLibrary,traceId:e.spanContext().traceId,parentId:e.parentSpanId,traceState:(n=e.spanContext().traceState)===null||n===void 0?void 0:n.serialize(),name:e.name,id:e.spanContext().spanId,kind:e.kind,timestamp:Nt(e.startTime),duration:Nt(e.duration),attributes:e.attributes,status:e.status,events:e.events,links:e.links}},t.prototype._sendSpans=function(e,n){var i,a;try{for(var s=iX(e),o=s.next();!o.done;o=s.next()){var r=o.value;console.dir(this._exportInfo(r),{depth:3})}}catch(u){i={error:u}}finally{try{o&&!o.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}if(n)return n({code:ee.SUCCESS})},t}()});var aX,sX,lC,cC=m(()=>{K();aX=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},sX=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},lC=function(){function t(){this._finishedSpans=[],this._stopped=!1}return t.prototype.export=function(e,n){var i;if(this._stopped)return n({code:ee.FAILED,error:new Error("Exporter has been stopped")});(i=this._finishedSpans).push.apply(i,sX([],aX(e),!1)),setTimeout(function(){return n({code:ee.SUCCESS})},0)},t.prototype.shutdown=function(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype.reset=function(){this._finishedSpans=[]},t.prototype.getFinishedSpans=function(){return this._finishedSpans},t}()});var uX,lX,fC,pC=m(()=>{b();K();uX=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},lX=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},fC=function(){function t(e){this._exporter=e,this._shutdownOnce=new pr(this._shutdown,this),this._unresolvedExports=new Set}return t.prototype.forceFlush=function(){return uX(this,void 0,void 0,function(){return lX(this,function(e){switch(e.label){case 0:return[4,Promise.all(Array.from(this._unresolvedExports))];case 1:return e.sent(),this._exporter.forceFlush?[4,this._exporter.forceFlush()]:[3,3];case 2:e.sent(),e.label=3;case 3:return[2]}})})},t.prototype.onStart=function(e,n){},t.prototype.onEnd=function(e){var n=this,i,a;if(!this._shutdownOnce.isCalled&&e.spanContext().traceFlags&J.SAMPLED){var s=function(){return li._export(n._exporter,[e]).then(function(r){var u;r.code!==ee.SUCCESS&&he((u=r.error)!==null&&u!==void 0?u:new Error("SimpleSpanProcessor: span export failed (status "+r+")"))}).catch(function(r){he(r)})};if(e.resource.asyncAttributesPending){var o=(a=(i=e.resource).waitForAsyncAttributes)===null||a===void 0?void 0:a.call(i).then(function(){return o!=null&&n._unresolvedExports.delete(o),s()},function(r){return he(r)});o!=null&&this._unresolvedExports.add(o)}else s()}},t.prototype.shutdown=function(){return this._shutdownOnce.call()},t.prototype._shutdown=function(){return this._exporter.shutdown()},t}()});var Cd={};it(Cd,{AlwaysOffSampler:()=>vr,AlwaysOnSampler:()=>It,BasicTracerProvider:()=>iC,BatchSpanProcessor:()=>mr,ConsoleSpanExporter:()=>sC,ForceFlushState:()=>kt,InMemorySpanExporter:()=>lC,NoopSpanProcessor:()=>ul,ParentBasedSampler:()=>Jn,RandomIdGenerator:()=>Zn,SamplingDecision:()=>dt,SimpleSpanProcessor:()=>fC,Span:()=>el,TraceIdRatioBasedSampler:()=>bi,Tracer:()=>al});var Mi=m(()=>{rC();aC();il();uC();cC();pC();Id();tl();rl();Pd();bd();Pi();Rd()});var xi=h(($ce,dC)=>{var cX="2.0.0",fX=Number.MAX_SAFE_INTEGER||9007199254740991,pX=16,dX=256-6,EX=["major","premajor","minor","preminor","patch","prepatch","prerelease"];dC.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:pX,MAX_SAFE_BUILD_LENGTH:dX,MAX_SAFE_INTEGER:fX,RELEASE_TYPES:EX,SEMVER_SPEC_VERSION:cX,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Li=h((Kce,EC)=>{var _X=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};EC.exports=_X});var eo=h((Ht,_C)=>{var{MAX_SAFE_COMPONENT_LENGTH:wd,MAX_SAFE_BUILD_LENGTH:SX,MAX_LENGTH:hX}=xi(),TX=Li();Ht=_C.exports={};var vX=Ht.re=[],mX=Ht.safeRe=[],R=Ht.src=[],P=Ht.t={},yX=0,Ud="[a-zA-Z0-9-]",AX=[["\\s",1],["\\d",hX],[Ud,SX]],OX=t=>{for(let[e,n]of AX)t=t.split(`${e}*`).join(`${e}{0,${n}}`).split(`${e}+`).join(`${e}{1,${n}}`);return t},U=(t,e,n)=>{let i=OX(e),a=yX++;TX(t,a,e),P[t]=a,R[a]=e,vX[a]=new RegExp(e,n?"g":void 0),mX[a]=new RegExp(i,n?"g":void 0)};U("NUMERICIDENTIFIER","0|[1-9]\\d*");U("NUMERICIDENTIFIERLOOSE","\\d+");U("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Ud}*`);U("MAINVERSION",`(${R[P.NUMERICIDENTIFIER]})\\.(${R[P.NUMERICIDENTIFIER]})\\.(${R[P.NUMERICIDENTIFIER]})`);U("MAINVERSIONLOOSE",`(${R[P.NUMERICIDENTIFIERLOOSE]})\\.(${R[P.NUMERICIDENTIFIERLOOSE]})\\.(${R[P.NUMERICIDENTIFIERLOOSE]})`);U("PRERELEASEIDENTIFIER",`(?:${R[P.NUMERICIDENTIFIER]}|${R[P.NONNUMERICIDENTIFIER]})`);U("PRERELEASEIDENTIFIERLOOSE",`(?:${R[P.NUMERICIDENTIFIERLOOSE]}|${R[P.NONNUMERICIDENTIFIER]})`);U("PRERELEASE",`(?:-(${R[P.PRERELEASEIDENTIFIER]}(?:\\.${R[P.PRERELEASEIDENTIFIER]})*))`);U("PRERELEASELOOSE",`(?:-?(${R[P.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${R[P.PRERELEASEIDENTIFIERLOOSE]})*))`);U("BUILDIDENTIFIER",`${Ud}+`);U("BUILD",`(?:\\+(${R[P.BUILDIDENTIFIER]}(?:\\.${R[P.BUILDIDENTIFIER]})*))`);U("FULLPLAIN",`v?${R[P.MAINVERSION]}${R[P.PRERELEASE]}?${R[P.BUILD]}?`);U("FULL",`^${R[P.FULLPLAIN]}$`);U("LOOSEPLAIN",`[v=\\s]*${R[P.MAINVERSIONLOOSE]}${R[P.PRERELEASELOOSE]}?${R[P.BUILD]}?`);U("LOOSE",`^${R[P.LOOSEPLAIN]}$`);U("GTLT","((?:<|>)?=?)");U("XRANGEIDENTIFIERLOOSE",`${R[P.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);U("XRANGEIDENTIFIER",`${R[P.NUMERICIDENTIFIER]}|x|X|\\*`);U("XRANGEPLAIN",`[v=\\s]*(${R[P.XRANGEIDENTIFIER]})(?:\\.(${R[P.XRANGEIDENTIFIER]})(?:\\.(${R[P.XRANGEIDENTIFIER]})(?:${R[P.PRERELEASE]})?${R[P.BUILD]}?)?)?`);U("XRANGEPLAINLOOSE",`[v=\\s]*(${R[P.XRANGEIDENTIFIERLOOSE]})(?:\\.(${R[P.XRANGEIDENTIFIERLOOSE]})(?:\\.(${R[P.XRANGEIDENTIFIERLOOSE]})(?:${R[P.PRERELEASELOOSE]})?${R[P.BUILD]}?)?)?`);U("XRANGE",`^${R[P.GTLT]}\\s*${R[P.XRANGEPLAIN]}$`);U("XRANGELOOSE",`^${R[P.GTLT]}\\s*${R[P.XRANGEPLAINLOOSE]}$`);U("COERCEPLAIN",`(^|[^\\d])(\\d{1,${wd}})(?:\\.(\\d{1,${wd}}))?(?:\\.(\\d{1,${wd}}))?`);U("COERCE",`${R[P.COERCEPLAIN]}(?:$|[^\\d])`);U("COERCEFULL",R[P.COERCEPLAIN]+`(?:${R[P.PRERELEASE]})?(?:${R[P.BUILD]})?(?:$|[^\\d])`);U("COERCERTL",R[P.COERCE],!0);U("COERCERTLFULL",R[P.COERCEFULL],!0);U("LONETILDE","(?:~>?)");U("TILDETRIM",`(\\s*)${R[P.LONETILDE]}\\s+`,!0);Ht.tildeTrimReplace="$1~";U("TILDE",`^${R[P.LONETILDE]}${R[P.XRANGEPLAIN]}$`);U("TILDELOOSE",`^${R[P.LONETILDE]}${R[P.XRANGEPLAINLOOSE]}$`);U("LONECARET","(?:\\^)");U("CARETTRIM",`(\\s*)${R[P.LONECARET]}\\s+`,!0);Ht.caretTrimReplace="$1^";U("CARET",`^${R[P.LONECARET]}${R[P.XRANGEPLAIN]}$`);U("CARETLOOSE",`^${R[P.LONECARET]}${R[P.XRANGEPLAINLOOSE]}$`);U("COMPARATORLOOSE",`^${R[P.GTLT]}\\s*(${R[P.LOOSEPLAIN]})$|^$`);U("COMPARATOR",`^${R[P.GTLT]}\\s*(${R[P.FULLPLAIN]})$|^$`);U("COMPARATORTRIM",`(\\s*)${R[P.GTLT]}\\s*(${R[P.LOOSEPLAIN]}|${R[P.XRANGEPLAIN]})`,!0);Ht.comparatorTrimReplace="$1$2$3";U("HYPHENRANGE",`^\\s*(${R[P.XRANGEPLAIN]})\\s+-\\s+(${R[P.XRANGEPLAIN]})\\s*$`);U("HYPHENRANGELOOSE",`^\\s*(${R[P.XRANGEPLAINLOOSE]})\\s+-\\s+(${R[P.XRANGEPLAINLOOSE]})\\s*$`);U("STAR","(<|>)?=?\\s*\\*");U("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");U("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var ll=h((Wce,SC)=>{var gX=Object.freeze({loose:!0}),NX=Object.freeze({}),RX=t=>t?typeof t!="object"?gX:t:NX;SC.exports=RX});var Dd=h((zce,vC)=>{var hC=/^[0-9]+$/,TC=(t,e)=>{let n=hC.test(t),i=hC.test(e);return n&&i&&(t=+t,e=+e),t===e?0:n&&!i?-1:i&&!n?1:t<e?-1:1},PX=(t,e)=>TC(e,t);vC.exports={compareIdentifiers:TC,rcompareIdentifiers:PX}});var Me=h((Xce,OC)=>{var cl=Li(),{MAX_LENGTH:mC,MAX_SAFE_INTEGER:fl}=xi(),{safeRe:yC,t:AC}=eo(),bX=ll(),{compareIdentifiers:to}=Dd(),Je=class{constructor(e,n){if(n=bX(n),e instanceof Je){if(e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>mC)throw new TypeError(`version is longer than ${mC} characters`);cl("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let i=e.trim().match(n.loose?yC[AC.LOOSE]:yC[AC.FULL]);if(!i)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>fl||this.major<0)throw new TypeError("Invalid major version");if(this.minor>fl||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>fl||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(a=>{if(/^[0-9]+$/.test(a)){let s=+a;if(s>=0&&s<fl)return s}return a}):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(cl("SemVer.compare",this.version,this.options,e),!(e instanceof Je)){if(typeof e=="string"&&e===this.version)return 0;e=new Je(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof Je||(e=new Je(e,this.options)),to(this.major,e.major)||to(this.minor,e.minor)||to(this.patch,e.patch)}comparePre(e){if(e instanceof Je||(e=new Je(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let n=0;do{let i=this.prerelease[n],a=e.prerelease[n];if(cl("prerelease compare",n,i,a),i===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(i===void 0)return-1;if(i===a)continue;return to(i,a)}while(++n)}compareBuild(e){e instanceof Je||(e=new Je(e,this.options));let n=0;do{let i=this.build[n],a=e.build[n];if(cl("build compare",n,i,a),i===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(i===void 0)return-1;if(i===a)continue;return to(i,a)}while(++n)}inc(e,n,i){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,i),this.inc("pre",n,i);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,i),this.inc("pre",n,i);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let a=Number(i)?1:0;if(!n&&i===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[a];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(n===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(a)}}if(n){let s=[n,a];i===!1&&(s=[n]),to(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};OC.exports=Je});var Kr=h((Jce,NC)=>{var gC=Me(),MX=(t,e,n=!1)=>{if(t instanceof gC)return t;try{return new gC(t,e)}catch(i){if(!n)return null;throw i}};NC.exports=MX});var PC=h((Qce,RC)=>{var xX=Kr(),LX=(t,e)=>{let n=xX(t,e);return n?n.version:null};RC.exports=LX});var MC=h((Zce,bC)=>{var IX=Kr(),CX=(t,e)=>{let n=IX(t.trim().replace(/^[=v]+/,""),e);return n?n.version:null};bC.exports=CX});var IC=h((efe,LC)=>{var xC=Me(),wX=(t,e,n,i,a)=>{typeof n=="string"&&(a=i,i=n,n=void 0);try{return new xC(t instanceof xC?t.version:t,n).inc(e,i,a).version}catch{return null}};LC.exports=wX});var UC=h((tfe,wC)=>{var CC=Kr(),UX=(t,e)=>{let n=CC(t,null,!0),i=CC(e,null,!0),a=n.compare(i);if(a===0)return null;let s=a>0,o=s?n:i,r=s?i:n,u=!!o.prerelease.length;if(!!r.prerelease.length&&!u)return!r.patch&&!r.minor?"major":o.patch?"patch":o.minor?"minor":"major";let c=u?"pre":"";return n.major!==i.major?c+"major":n.minor!==i.minor?c+"minor":n.patch!==i.patch?c+"patch":"prerelease"};wC.exports=UX});var VC=h((rfe,DC)=>{var DX=Me(),VX=(t,e)=>new DX(t,e).major;DC.exports=VX});var GC=h((nfe,BC)=>{var BX=Me(),GX=(t,e)=>new BX(t,e).minor;BC.exports=GX});var HC=h((ofe,kC)=>{var kX=Me(),HX=(t,e)=>new kX(t,e).patch;kC.exports=HX});var YC=h((ife,FC)=>{var FX=Kr(),YX=(t,e)=>{let n=FX(t,e);return n&&n.prerelease.length?n.prerelease:null};FC.exports=YX});var nt=h((afe,jC)=>{var qC=Me(),qX=(t,e,n)=>new qC(t,n).compare(new qC(e,n));jC.exports=qX});var KC=h((sfe,$C)=>{var jX=nt(),$X=(t,e,n)=>jX(e,t,n);$C.exports=$X});var zC=h((ufe,WC)=>{var KX=nt(),WX=(t,e)=>KX(t,e,!0);WC.exports=WX});var pl=h((lfe,JC)=>{var XC=Me(),zX=(t,e,n)=>{let i=new XC(t,n),a=new XC(e,n);return i.compare(a)||i.compareBuild(a)};JC.exports=zX});var ZC=h((cfe,QC)=>{var XX=pl(),JX=(t,e)=>t.sort((n,i)=>XX(n,i,e));QC.exports=JX});var tw=h((ffe,ew)=>{var QX=pl(),ZX=(t,e)=>t.sort((n,i)=>QX(i,n,e));ew.exports=ZX});var Ii=h((pfe,rw)=>{var eJ=nt(),tJ=(t,e,n)=>eJ(t,e,n)>0;rw.exports=tJ});var dl=h((dfe,nw)=>{var rJ=nt(),nJ=(t,e,n)=>rJ(t,e,n)<0;nw.exports=nJ});var Vd=h((Efe,ow)=>{var oJ=nt(),iJ=(t,e,n)=>oJ(t,e,n)===0;ow.exports=iJ});var Bd=h((_fe,iw)=>{var aJ=nt(),sJ=(t,e,n)=>aJ(t,e,n)!==0;iw.exports=sJ});var El=h((Sfe,aw)=>{var uJ=nt(),lJ=(t,e,n)=>uJ(t,e,n)>=0;aw.exports=lJ});var _l=h((hfe,sw)=>{var cJ=nt(),fJ=(t,e,n)=>cJ(t,e,n)<=0;sw.exports=fJ});var Gd=h((Tfe,uw)=>{var pJ=Vd(),dJ=Bd(),EJ=Ii(),_J=El(),SJ=dl(),hJ=_l(),TJ=(t,e,n,i)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t===n;case"!==":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t!==n;case"":case"=":case"==":return pJ(t,n,i);case"!=":return dJ(t,n,i);case">":return EJ(t,n,i);case">=":return _J(t,n,i);case"<":return SJ(t,n,i);case"<=":return hJ(t,n,i);default:throw new TypeError(`Invalid operator: ${e}`)}};uw.exports=TJ});var cw=h((vfe,lw)=>{var vJ=Me(),mJ=Kr(),{safeRe:Sl,t:hl}=eo(),yJ=(t,e)=>{if(t instanceof vJ)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let n=null;if(!e.rtl)n=t.match(e.includePrerelease?Sl[hl.COERCEFULL]:Sl[hl.COERCE]);else{let u=e.includePrerelease?Sl[hl.COERCERTLFULL]:Sl[hl.COERCERTL],l;for(;(l=u.exec(t))&&(!n||n.index+n[0].length!==t.length);)(!n||l.index+l[0].length!==n.index+n[0].length)&&(n=l),u.lastIndex=l.index+l[1].length+l[2].length;u.lastIndex=-1}if(n===null)return null;let i=n[2],a=n[3]||"0",s=n[4]||"0",o=e.includePrerelease&&n[5]?`-${n[5]}`:"",r=e.includePrerelease&&n[6]?`+${n[6]}`:"";return mJ(`${i}.${a}.${s}${o}${r}`,e)};lw.exports=yJ});var pw=h((mfe,fw)=>{var kd=class{constructor(){this.max=1e3,this.map=new Map}get(e){let n=this.map.get(e);if(n!==void 0)return this.map.delete(e),this.map.set(e,n),n}delete(e){return this.map.delete(e)}set(e,n){if(!this.delete(e)&&n!==void 0){if(this.map.size>=this.max){let a=this.map.keys().next().value;this.delete(a)}this.map.set(e,n)}return this}};fw.exports=kd});var ot=h((yfe,Sw)=>{var Wr=class{constructor(e,n){if(n=OJ(n),e instanceof Wr)return e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease?e:new Wr(e.raw,n);if(e instanceof Hd)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(a=>!Ew(a[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let a of this.set)if(a.length===1&&xJ(a[0])){this.set=[a];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){let i=((this.options.includePrerelease&&bJ)|(this.options.loose&&MJ))+":"+e,a=dw.get(i);if(a)return a;let s=this.options.loose,o=s?je[Ve.HYPHENRANGELOOSE]:je[Ve.HYPHENRANGE];e=e.replace(o,kJ(this.options.includePrerelease)),te("hyphen replace",e),e=e.replace(je[Ve.COMPARATORTRIM],NJ),te("comparator trim",e),e=e.replace(je[Ve.TILDETRIM],RJ),te("tilde trim",e),e=e.replace(je[Ve.CARETTRIM],PJ),te("caret trim",e);let r=e.split(" ").map(p=>LJ(p,this.options)).join(" ").split(/\s+/).map(p=>GJ(p,this.options));s&&(r=r.filter(p=>(te("loose invalid filter",p,this.options),!!p.match(je[Ve.COMPARATORLOOSE])))),te("range list",r);let u=new Map,l=r.map(p=>new Hd(p,this.options));for(let p of l){if(Ew(p))return[p];u.set(p.value,p)}u.size>1&&u.has("")&&u.delete("");let c=[...u.values()];return dw.set(i,c),c}intersects(e,n){if(!(e instanceof Wr))throw new TypeError("a Range is required");return this.set.some(i=>_w(i,n)&&e.set.some(a=>_w(a,n)&&i.every(s=>a.every(o=>s.intersects(o,n)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new gJ(e,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(HJ(this.set[n],e,this.options))return!0;return!1}};Sw.exports=Wr;var AJ=pw(),dw=new AJ,OJ=ll(),Hd=Ci(),te=Li(),gJ=Me(),{safeRe:je,t:Ve,comparatorTrimReplace:NJ,tildeTrimReplace:RJ,caretTrimReplace:PJ}=eo(),{FLAG_INCLUDE_PRERELEASE:bJ,FLAG_LOOSE:MJ}=xi(),Ew=t=>t.value==="<0.0.0-0",xJ=t=>t.value==="",_w=(t,e)=>{let n=!0,i=t.slice(),a=i.pop();for(;n&&i.length;)n=i.every(s=>a.intersects(s,e)),a=i.pop();return n},LJ=(t,e)=>(te("comp",t,e),t=wJ(t,e),te("caret",t),t=IJ(t,e),te("tildes",t),t=DJ(t,e),te("xrange",t),t=BJ(t,e),te("stars",t),t),Be=t=>!t||t.toLowerCase()==="x"||t==="*",IJ=(t,e)=>t.trim().split(/\s+/).map(n=>CJ(n,e)).join(" "),CJ=(t,e)=>{let n=e.loose?je[Ve.TILDELOOSE]:je[Ve.TILDE];return t.replace(n,(i,a,s,o,r)=>{te("tilde",t,i,a,s,o,r);let u;return Be(a)?u="":Be(s)?u=`>=${a}.0.0 <${+a+1}.0.0-0`:Be(o)?u=`>=${a}.${s}.0 <${a}.${+s+1}.0-0`:r?(te("replaceTilde pr",r),u=`>=${a}.${s}.${o}-${r} <${a}.${+s+1}.0-0`):u=`>=${a}.${s}.${o} <${a}.${+s+1}.0-0`,te("tilde return",u),u})},wJ=(t,e)=>t.trim().split(/\s+/).map(n=>UJ(n,e)).join(" "),UJ=(t,e)=>{te("caret",t,e);let n=e.loose?je[Ve.CARETLOOSE]:je[Ve.CARET],i=e.includePrerelease?"-0":"";return t.replace(n,(a,s,o,r,u)=>{te("caret",t,a,s,o,r,u);let l;return Be(s)?l="":Be(o)?l=`>=${s}.0.0${i} <${+s+1}.0.0-0`:Be(r)?s==="0"?l=`>=${s}.${o}.0${i} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.0${i} <${+s+1}.0.0-0`:u?(te("replaceCaret pr",u),s==="0"?o==="0"?l=`>=${s}.${o}.${r}-${u} <${s}.${o}.${+r+1}-0`:l=`>=${s}.${o}.${r}-${u} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.${r}-${u} <${+s+1}.0.0-0`):(te("no pr"),s==="0"?o==="0"?l=`>=${s}.${o}.${r}${i} <${s}.${o}.${+r+1}-0`:l=`>=${s}.${o}.${r}${i} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.${r} <${+s+1}.0.0-0`),te("caret return",l),l})},DJ=(t,e)=>(te("replaceXRanges",t,e),t.split(/\s+/).map(n=>VJ(n,e)).join(" ")),VJ=(t,e)=>{t=t.trim();let n=e.loose?je[Ve.XRANGELOOSE]:je[Ve.XRANGE];return t.replace(n,(i,a,s,o,r,u)=>{te("xRange",t,i,a,s,o,r,u);let l=Be(s),c=l||Be(o),p=c||Be(r),_=p;return a==="="&&_&&(a=""),u=e.includePrerelease?"-0":"",l?a===">"||a==="<"?i="<0.0.0-0":i="*":a&&_?(c&&(o=0),r=0,a===">"?(a=">=",c?(s=+s+1,o=0,r=0):(o=+o+1,r=0)):a==="<="&&(a="<",c?s=+s+1:o=+o+1),a==="<"&&(u="-0"),i=`${a+s}.${o}.${r}${u}`):c?i=`>=${s}.0.0${u} <${+s+1}.0.0-0`:p&&(i=`>=${s}.${o}.0${u} <${s}.${+o+1}.0-0`),te("xRange return",i),i})},BJ=(t,e)=>(te("replaceStars",t,e),t.trim().replace(je[Ve.STAR],"")),GJ=(t,e)=>(te("replaceGTE0",t,e),t.trim().replace(je[e.includePrerelease?Ve.GTE0PRE:Ve.GTE0],"")),kJ=t=>(e,n,i,a,s,o,r,u,l,c,p,_)=>(Be(i)?n="":Be(a)?n=`>=${i}.0.0${t?"-0":""}`:Be(s)?n=`>=${i}.${a}.0${t?"-0":""}`:o?n=`>=${n}`:n=`>=${n}${t?"-0":""}`,Be(l)?u="":Be(c)?u=`<${+l+1}.0.0-0`:Be(p)?u=`<${l}.${+c+1}.0-0`:_?u=`<=${l}.${c}.${p}-${_}`:t?u=`<${l}.${c}.${+p+1}-0`:u=`<=${u}`,`${n} ${u}`.trim()),HJ=(t,e,n)=>{for(let i=0;i<t.length;i++)if(!t[i].test(e))return!1;if(e.prerelease.length&&!n.includePrerelease){for(let i=0;i<t.length;i++)if(te(t[i].semver),t[i].semver!==Hd.ANY&&t[i].semver.prerelease.length>0){let a=t[i].semver;if(a.major===e.major&&a.minor===e.minor&&a.patch===e.patch)return!0}return!1}return!0}});var Ci=h((Afe,Aw)=>{var wi=Symbol("SemVer ANY"),ro=class{static get ANY(){return wi}constructor(e,n){if(n=hw(n),e instanceof ro){if(e.loose===!!n.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Yd("comparator",e,n),this.options=n,this.loose=!!n.loose,this.parse(e),this.semver===wi?this.value="":this.value=this.operator+this.semver.version,Yd("comp",this)}parse(e){let n=this.options.loose?Tw[vw.COMPARATORLOOSE]:Tw[vw.COMPARATOR],i=e.match(n);if(!i)throw new TypeError(`Invalid comparator: ${e}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new mw(i[2],this.options.loose):this.semver=wi}toString(){return this.value}test(e){if(Yd("Comparator.test",e,this.options.loose),this.semver===wi||e===wi)return!0;if(typeof e=="string")try{e=new mw(e,this.options)}catch{return!1}return Fd(e,this.operator,this.semver,this.options)}intersects(e,n){if(!(e instanceof ro))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new yw(e.value,n).test(this.value):e.operator===""?e.value===""?!0:new yw(this.value,n).test(e.semver):(n=hw(n),n.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!n.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||Fd(this.semver,"<",e.semver,n)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Fd(this.semver,">",e.semver,n)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};Aw.exports=ro;var hw=ll(),{safeRe:Tw,t:vw}=eo(),Fd=Gd(),Yd=Li(),mw=Me(),yw=ot()});var Ui=h((Ofe,Ow)=>{var FJ=ot(),YJ=(t,e,n)=>{try{e=new FJ(e,n)}catch{return!1}return e.test(t)};Ow.exports=YJ});var Nw=h((gfe,gw)=>{var qJ=ot(),jJ=(t,e)=>new qJ(t,e).set.map(n=>n.map(i=>i.value).join(" ").trim().split(" "));gw.exports=jJ});var Pw=h((Nfe,Rw)=>{var $J=Me(),KJ=ot(),WJ=(t,e,n)=>{let i=null,a=null,s=null;try{s=new KJ(e,n)}catch{return null}return t.forEach(o=>{s.test(o)&&(!i||a.compare(o)===-1)&&(i=o,a=new $J(i,n))}),i};Rw.exports=WJ});var Mw=h((Rfe,bw)=>{var zJ=Me(),XJ=ot(),JJ=(t,e,n)=>{let i=null,a=null,s=null;try{s=new XJ(e,n)}catch{return null}return t.forEach(o=>{s.test(o)&&(!i||a.compare(o)===1)&&(i=o,a=new zJ(i,n))}),i};bw.exports=JJ});var Iw=h((Pfe,Lw)=>{var qd=Me(),QJ=ot(),xw=Ii(),ZJ=(t,e)=>{t=new QJ(t,e);let n=new qd("0.0.0");if(t.test(n)||(n=new qd("0.0.0-0"),t.test(n)))return n;n=null;for(let i=0;i<t.set.length;++i){let a=t.set[i],s=null;a.forEach(o=>{let r=new qd(o.semver.version);switch(o.operator){case">":r.prerelease.length===0?r.patch++:r.prerelease.push(0),r.raw=r.format();case"":case">=":(!s||xw(r,s))&&(s=r);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!n||xw(n,s))&&(n=s)}return n&&t.test(n)?n:null};Lw.exports=ZJ});var ww=h((bfe,Cw)=>{var e9=ot(),t9=(t,e)=>{try{return new e9(t,e).range||"*"}catch{return null}};Cw.exports=t9});var Tl=h((Mfe,Bw)=>{var r9=Me(),Vw=Ci(),{ANY:n9}=Vw,o9=ot(),i9=Ui(),Uw=Ii(),Dw=dl(),a9=_l(),s9=El(),u9=(t,e,n,i)=>{t=new r9(t,i),e=new o9(e,i);let a,s,o,r,u;switch(n){case">":a=Uw,s=a9,o=Dw,r=">",u=">=";break;case"<":a=Dw,s=s9,o=Uw,r="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(i9(t,e,i))return!1;for(let l=0;l<e.set.length;++l){let c=e.set[l],p=null,_=null;if(c.forEach(f=>{f.semver===n9&&(f=new Vw(">=0.0.0")),p=p||f,_=_||f,a(f.semver,p.semver,i)?p=f:o(f.semver,_.semver,i)&&(_=f)}),p.operator===r||p.operator===u||(!_.operator||_.operator===r)&&s(t,_.semver))return!1;if(_.operator===u&&o(t,_.semver))return!1}return!0};Bw.exports=u9});var kw=h((xfe,Gw)=>{var l9=Tl(),c9=(t,e,n)=>l9(t,e,">",n);Gw.exports=c9});var Fw=h((Lfe,Hw)=>{var f9=Tl(),p9=(t,e,n)=>f9(t,e,"<",n);Hw.exports=p9});var jw=h((Ife,qw)=>{var Yw=ot(),d9=(t,e,n)=>(t=new Yw(t,n),e=new Yw(e,n),t.intersects(e,n));qw.exports=d9});var Kw=h((Cfe,$w)=>{var E9=Ui(),_9=nt();$w.exports=(t,e,n)=>{let i=[],a=null,s=null,o=t.sort((c,p)=>_9(c,p,n));for(let c of o)E9(c,e,n)?(s=c,a||(a=c)):(s&&i.push([a,s]),s=null,a=null);a&&i.push([a,null]);let r=[];for(let[c,p]of i)c===p?r.push(c):!p&&c===o[0]?r.push("*"):p?c===o[0]?r.push(`<=${p}`):r.push(`${c} - ${p}`):r.push(`>=${c}`);let u=r.join(" || "),l=typeof e.raw=="string"?e.raw:String(e);return u.length<l.length?u:e}});var Zw=h((wfe,Qw)=>{var Ww=ot(),$d=Ci(),{ANY:jd}=$d,Di=Ui(),Kd=nt(),S9=(t,e,n={})=>{if(t===e)return!0;t=new Ww(t,n),e=new Ww(e,n);let i=!1;e:for(let a of t.set){for(let s of e.set){let o=T9(a,s,n);if(i=i||o!==null,o)continue e}if(i)return!1}return!0},h9=[new $d(">=0.0.0-0")],zw=[new $d(">=0.0.0")],T9=(t,e,n)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===jd){if(e.length===1&&e[0].semver===jd)return!0;n.includePrerelease?t=h9:t=zw}if(e.length===1&&e[0].semver===jd){if(n.includePrerelease)return!0;e=zw}let i=new Set,a,s;for(let f of t)f.operator===">"||f.operator===">="?a=Xw(a,f,n):f.operator==="<"||f.operator==="<="?s=Jw(s,f,n):i.add(f.semver);if(i.size>1)return null;let o;if(a&&s){if(o=Kd(a.semver,s.semver,n),o>0)return null;if(o===0&&(a.operator!==">="||s.operator!=="<="))return null}for(let f of i){if(a&&!Di(f,String(a),n)||s&&!Di(f,String(s),n))return null;for(let S of e)if(!Di(f,String(S),n))return!1;return!0}let r,u,l,c,p=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1,_=a&&!n.includePrerelease&&a.semver.prerelease.length?a.semver:!1;p&&p.prerelease.length===1&&s.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let f of e){if(c=c||f.operator===">"||f.operator===">=",l=l||f.operator==="<"||f.operator==="<=",a){if(_&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===_.major&&f.semver.minor===_.minor&&f.semver.patch===_.patch&&(_=!1),f.operator===">"||f.operator===">="){if(r=Xw(a,f,n),r===f&&r!==a)return!1}else if(a.operator===">="&&!Di(a.semver,String(f),n))return!1}if(s){if(p&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===p.major&&f.semver.minor===p.minor&&f.semver.patch===p.patch&&(p=!1),f.operator==="<"||f.operator==="<="){if(u=Jw(s,f,n),u===f&&u!==s)return!1}else if(s.operator==="<="&&!Di(s.semver,String(f),n))return!1}if(!f.operator&&(s||a)&&o!==0)return!1}return!(a&&l&&!s&&o!==0||s&&c&&!a&&o!==0||_||p)},Xw=(t,e,n)=>{if(!t)return e;let i=Kd(t.semver,e.semver,n);return i>0?t:i<0||e.operator===">"&&t.operator===">="?e:t},Jw=(t,e,n)=>{if(!t)return e;let i=Kd(t.semver,e.semver,n);return i<0?t:i>0||e.operator==="<"&&t.operator==="<="?e:t};Qw.exports=S9});var nU=h((Ufe,rU)=>{var Wd=eo(),eU=xi(),v9=Me(),tU=Dd(),m9=Kr(),y9=PC(),A9=MC(),O9=IC(),g9=UC(),N9=VC(),R9=GC(),P9=HC(),b9=YC(),M9=nt(),x9=KC(),L9=zC(),I9=pl(),C9=ZC(),w9=tw(),U9=Ii(),D9=dl(),V9=Vd(),B9=Bd(),G9=El(),k9=_l(),H9=Gd(),F9=cw(),Y9=Ci(),q9=ot(),j9=Ui(),$9=Nw(),K9=Pw(),W9=Mw(),z9=Iw(),X9=ww(),J9=Tl(),Q9=kw(),Z9=Fw(),e7=jw(),t7=Kw(),r7=Zw();rU.exports={parse:m9,valid:y9,clean:A9,inc:O9,diff:g9,major:N9,minor:R9,patch:P9,prerelease:b9,compare:M9,rcompare:x9,compareLoose:L9,compareBuild:I9,sort:C9,rsort:w9,gt:U9,lt:D9,eq:V9,neq:B9,gte:G9,lte:k9,cmp:H9,coerce:F9,Comparator:Y9,Range:q9,satisfies:j9,toComparators:$9,maxSatisfying:K9,minSatisfying:W9,minVersion:z9,validRange:X9,outside:J9,gtr:Q9,ltr:Z9,intersects:e7,simplifyRange:t7,subset:r7,SemVer:v9,re:Wd.re,src:Wd.src,tokens:Wd.t,SEMVER_SPEC_VERSION:eU.SEMVER_SPEC_VERSION,RELEASE_TYPES:eU.RELEASE_TYPES,compareIdentifiers:tU.compareIdentifiers,rcompareIdentifiers:tU.rcompareIdentifiers}});function o7(t){var e=decodeURIComponent(t).split(":");if(e.length!==4)return null;var n=iU(e,4),i=n[0],a=n[1],s=n[3],o=i.padStart(32,"0"),r=a.padStart(16,"0"),u=n7.test(s)?parseInt(s,16)&1:1;return{traceId:o,spanId:r,isRemote:!0,traceFlags:u}}var oU,iU,zd,vl,aU,n7,sU=m(()=>{b();K();oU=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},iU=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},zd="uber-trace-id",vl="uberctx",aU=function(){function t(e){typeof e=="string"?(this._jaegerTraceHeader=e,this._jaegerBaggageHeaderPrefix=vl):(this._jaegerTraceHeader=e?.customTraceHeader||zd,this._jaegerBaggageHeaderPrefix=e?.customBaggageHeaderPrefix||vl)}return t.prototype.inject=function(e,n,i){var a,s,o=X.getSpanContext(e),r=st.getBaggage(e);if(o&&be(e)===!1){var u="0"+(o.traceFlags||J.NONE).toString(16);i.set(n,this._jaegerTraceHeader,o.traceId+":"+o.spanId+":0:"+u)}if(r)try{for(var l=oU(r.getAllEntries()),c=l.next();!c.done;c=l.next()){var p=iU(c.value,2),_=p[0],f=p[1];i.set(n,this._jaegerBaggageHeaderPrefix+"-"+_,encodeURIComponent(f.value))}}catch(S){a={error:S}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(a)throw a.error}}},t.prototype.extract=function(e,n,i){var a,s,o=this,r,u=i.get(n,this._jaegerTraceHeader),l=Array.isArray(u)?u[0]:u,c=i.keys(n).filter(function(A){return A.startsWith(o._jaegerBaggageHeaderPrefix+"-")}).map(function(A){var O=i.get(n,A);return{key:A.substring(o._jaegerBaggageHeaderPrefix.length+1),value:Array.isArray(O)?O[0]:O}}),p=e;if(typeof l=="string"){var _=o7(l);_&&(p=X.setSpanContext(p,_))}if(c.length===0)return p;var f=(r=st.getBaggage(e))!==null&&r!==void 0?r:st.createBaggage();try{for(var S=oU(c),v=S.next();!v.done;v=S.next()){var T=v.value;T.value!==void 0&&(f=f.setEntry(T.key,{value:decodeURIComponent(T.value)}))}}catch(A){a={error:A}}finally{try{v&&!v.done&&(s=S.return)&&s.call(S)}finally{if(a)throw a.error}}return p=st.setBaggage(p,f),p},t.prototype.fields=function(){return[this._jaegerTraceHeader]},t}(),n7=/^[0-9a-f]{1,2}$/i});var uU={};it(uU,{JaegerPropagator:()=>aU,UBER_BAGGAGE_HEADER_PREFIX:()=>vl,UBER_TRACE_ID_HEADER:()=>zd});var lU=m(()=>{sU()});var pU=h(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.NodeTracerProvider=void 0;var cU=CI(),ml=(FI(),Y(HI)),fU=(Mi(),Y(Cd)),i7=nU(),a7=(lU(),Y(uU)),yl=class extends fU.BasicTracerProvider{constructor(e={}){super(e)}register(e={}){if(e.contextManager===void 0){let n=i7.gte(process.version,"14.8.0")?cU.AsyncLocalStorageContextManager:cU.AsyncHooksContextManager;e.contextManager=new n,e.contextManager.enable()}super.register(e)}};Al.NodeTracerProvider=yl;yl._registeredPropagators=new Map([...fU.BasicTracerProvider._registeredPropagators,["b3",()=>new ml.B3Propagator({injectEncoding:ml.B3InjectEncoding.SINGLE_HEADER})],["b3multi",()=>new ml.B3Propagator({injectEncoding:ml.B3InjectEncoding.MULTI_HEADER})],["jaeger",()=>new a7.JaegerPropagator]])});var dU=h(q=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});q.Tracer=q.TraceIdRatioBasedSampler=q.Span=q.SimpleSpanProcessor=q.SamplingDecision=q.RandomIdGenerator=q.ParentBasedSampler=q.NoopSpanProcessor=q.InMemorySpanExporter=q.ForceFlushState=q.ConsoleSpanExporter=q.BatchSpanProcessor=q.BasicTracerProvider=q.AlwaysOnSampler=q.AlwaysOffSampler=q.NodeTracerProvider=void 0;var s7=pU();Object.defineProperty(q,"NodeTracerProvider",{enumerable:!0,get:function(){return s7.NodeTracerProvider}});var Ge=(Mi(),Y(Cd));Object.defineProperty(q,"AlwaysOffSampler",{enumerable:!0,get:function(){return Ge.AlwaysOffSampler}});Object.defineProperty(q,"AlwaysOnSampler",{enumerable:!0,get:function(){return Ge.AlwaysOnSampler}});Object.defineProperty(q,"BasicTracerProvider",{enumerable:!0,get:function(){return Ge.BasicTracerProvider}});Object.defineProperty(q,"BatchSpanProcessor",{enumerable:!0,get:function(){return Ge.BatchSpanProcessor}});Object.defineProperty(q,"ConsoleSpanExporter",{enumerable:!0,get:function(){return Ge.ConsoleSpanExporter}});Object.defineProperty(q,"ForceFlushState",{enumerable:!0,get:function(){return Ge.ForceFlushState}});Object.defineProperty(q,"InMemorySpanExporter",{enumerable:!0,get:function(){return Ge.InMemorySpanExporter}});Object.defineProperty(q,"NoopSpanProcessor",{enumerable:!0,get:function(){return Ge.NoopSpanProcessor}});Object.defineProperty(q,"ParentBasedSampler",{enumerable:!0,get:function(){return Ge.ParentBasedSampler}});Object.defineProperty(q,"RandomIdGenerator",{enumerable:!0,get:function(){return Ge.RandomIdGenerator}});Object.defineProperty(q,"SamplingDecision",{enumerable:!0,get:function(){return Ge.SamplingDecision}});Object.defineProperty(q,"SimpleSpanProcessor",{enumerable:!0,get:function(){return Ge.SimpleSpanProcessor}});Object.defineProperty(q,"Span",{enumerable:!0,get:function(){return Ge.Span}});Object.defineProperty(q,"TraceIdRatioBasedSampler",{enumerable:!0,get:function(){return Ge.TraceIdRatioBasedSampler}});Object.defineProperty(q,"Tracer",{enumerable:!0,get:function(){return Ge.Tracer}})});var EU=h(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});Ol.OTLPTraceExporter=void 0;var u7=fd(),l7=(Du(),Y(id)),Xd=class extends u7.OTLPGRPCExporterNodeBase{constructor(e={}){super(e,l7.ProtobufTraceSerializer,"TraceExportService","/opentelemetry.proto.collector.trace.v1.TraceService/Export","TRACES")}};Ol.OTLPTraceExporter=Xd});var _U=h(zr=>{"use strict";var c7=zr&&zr.__createBinding||(Object.create?function(t,e,n,i){i===void 0&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]}),f7=zr&&zr.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&c7(e,t,n)};Object.defineProperty(zr,"__esModule",{value:!0});f7(EU(),zr)});var mU=$e(Hl(),1),yU=$e(no(),1),AU=$e(pS(),1),OU=$e(MU(),1),gU=$e(xU(),1),NU=$e(kO(),1);import d7 from"path";import E7 from"http";import{Session as _7}from"inspector/promises";import{createRequire as QF}from"module";var oc=$e(Hl(),1);import na from"path";import nc from"os";var ZF=QF(import.meta.url);function HO(t){let e=ZF.resolve(t),n=na.dirname(e);for(;!oc.default.existsSync(na.join(n,"package.json"));)n=na.dirname(n);let i=oc.default.readFileSync(na.join(n,"package.json"),"utf-8");return JSON.parse(i)}var oa=class{constructor(e){this.instance=e;let n=HO("@sentio/sdk"),i=HO("@sentio/runtime");console.log("Runtime version:",i.version,"SDK version:",n.version);let a=n.version.split(".");this.sdkMinorVersion=parseInt(a[1])}instance;sdkMinorVersion;async getConfig(e,n){let i=await this.instance.getConfig(e,n);if(i.executionConfig=Zd.fromPartial(Rl.execution),i.contractConfigs)for(let a of i.contractConfigs)a.aptosCallConfigs&&(a.moveCallConfigs=a.aptosCallConfigs),a.aptosEventConfigs&&(a.moveEventConfigs=a.aptosEventConfigs);return i}async start(e,n){return await this.instance.start(e,n)}async stop(e,n){return await this.instance.stop(e,n)}async processBindings(e,n){Rl.execution.sequential&&(e.bindings=e.bindings.sort(eY));for(let i of e.bindings)this.adjustDataBinding(i);try{let i=await this.instance.processBindings(e,n);return this.adjustResult(i.result),!i.configUpdated&&i.result?.states?.configUpdated&&(i.configUpdated=i.result?.states?.configUpdated),i}catch(i){throw this.sdkMinorVersion<=16&&(i.code===nc.constants.errno.ECONNRESET||i.code===nc.constants.errno.ECONNREFUSED||i.code===nc.constants.errno.ECONNABORTED)&&process.exit(1),i}}async*processBindingsStream(e,n){yield*this.instance.processBindingsStream(e,n)}async*preprocessBindingsStream(e,n){yield*this.instance.preprocessBindingsStream(e,n)}adjustResult(e){}adjustDataBinding(e){switch(e.handlerType){case 6:e.data?.aptEvent;break;case 0:e.data?.ethBlock&&e.data.raw.length===0&&(e.data.raw=new TextEncoder().encode(JSON.stringify(e.data.ethBlock.block)));break;default:break}}};function eY(t,e){let n=FO(t)||new Date(0),i=FO(e)||new Date(0),a=n.getTime()-i.getTime();return a!==0?a:YO(t)-YO(e)}function FO(t){return t.data?.ethLog?.timestamp||t.data?.ethTransaction?.timestamp||(t.data?.ethBlock?.block?.timestamp?new Date(Number(t.data.ethBlock.block.timestamp)*1e3):void 0)||t.data?.ethTrace?.timestamp||(t.data?.aptCall?.transaction?new Date(Number(t.data.aptCall.transaction.timestamp)/1e3):void 0)||(t.data?.aptEvent?.transaction?new Date(Number(t.data.aptEvent.transaction.timestamp)/1e3):void 0)||(t.data?.aptResource?.timestampMicros?new Date(Number(t.data.aptResource.timestampMicros)/1e3):void 0)||t.data?.fuelCall?.timestamp}function YO(t){return t.data?.ethLog?.log?.logIndex||t.data?.ethTransaction?.transaction?.transactionIndex||t.data?.ethBlock?.block?.number||t.data?.ethTrace?.trace?.transactionPosition}import("process").then(t=>t.stdout.write(""));var gt=$e(n0(),1);function o0(t,e){let n={transform:a=>{let s=[];typeof a.message=="object"?s.push(JSON.stringify(a.message)):s.push(a.message);let o=a[Symbol.for("splat")];if(o)for(let r in o){let u=o[r];typeof u=="object"?s.push(JSON.stringify(u)):s.push(u)}return a.message=s.join(" "),a}},i=(0,gt.createLogger)({format:gt.format.combine(gt.format.timestamp({format:"YYYY-MM-DDTHH:mm:ss.SSSZ"}),n,gt.format.errors({stack:!0}),t?gt.format.json():gt.format.simple()),level:e?"debug":"info",transports:[new gt.transports.Console]});console.log=(...a)=>i.info.call(i,...a),console.info=(...a)=>i.info.call(i,...a),console.warn=(...a)=>i.warn.call(i,...a),console.error=(...a)=>i.error.call(i,...a),console.debug=(...a)=>i.debug.call(i,...a)}import("process").then(t=>t.stdout.write(""));Bs();wn();var SU=$e(RI(),1),hU=$e(xI(),1),Jd=$e(dU(),1),TU=$e(_U(),1);Mi();b();async function vU(t){t&&g.setLogger(new oE,at.DEBUG);let e=await Vs.detect(),n=new hi({resource:e,readers:[new eu({exporter:new SU.OTLPMetricExporter}),new hU.PrometheusExporter({port:4041})]}),i=new Jd.NodeTracerProvider({resource:e}),a=new TU.OTLPTraceExporter,s=new mr(a);i.addSpanProcessor(s),i.register(),Bi.setGlobalMeterProvider(n),X.setGlobalTracerProvider(i),["SIGINT","SIGTERM"].forEach(o=>{process.on(o,()=>p7())}),Bi.getMeter("processor").createGauge("up").record(1)}async function p7(){let t=X.getTracerProvider();if(t instanceof sE){let n=t.getDelegate();n instanceof Jd.NodeTracerProvider&&n.shutdown().catch(console.error)}let e=Bi.getMeterProvider();e instanceof hi&&e.shutdown().catch(console.error)}import("process").then(t=>t.stdout.write(""));var S7=[{name:"target",type:String,defaultOption:!0},{name:"port",alias:"p",type:String,defaultValue:"4000"},{name:"concurrency",type:Number,defaultValue:4},{name:"batch-count",type:Number,defaultValue:1},{name:"chains-config",alias:"c",type:String,defaultValue:"chains-config.json"},{name:"chainquery-server",type:String,defaultValue:""},{name:"pricefeed-server",type:String,defaultValue:""},{name:"log-format",type:String,defaultValue:"console"},{name:"debug",type:Boolean,defaultValue:!1}],Qe=(0,AU.default)(S7,{partial:!0}),h7=process.env.LOG_LEVEL?.toUpperCase();o0(Qe["log-format"]==="json",h7==="debug"?!0:Qe.debug);console.debug("Starting with",Qe.target);await vU(Qe.debug);Error.stackTraceLimit=20;var T7=d7.resolve(Qe["chains-config"]),v7=mU.default.readJsonSync(T7),m7=process.env.OVERRIDE_CONCURRENCY?parseInt(process.env.OVERRIDE_CONCURRENCY):void 0,y7=process.env.OVERRIDE_BATCH_COUNT?parseInt(process.env.OVERRIDE_BATCH_COUNT):void 0;yr.INSTANCE.concurrency=m7??Qe.concurrency;yr.INSTANCE.batchCount=y7??Qe["batch-count"];yr.INSTANCE.chainQueryAPI=Qe["chainquery-server"];yr.INSTANCE.priceFeedAPI=Qe["pricefeed-server"];for(let[t,e]of Object.entries(v7)){let n=e;if(n.ChainServer)yr.INSTANCE.chainServer.set(t,n.ChainServer);else{let i=n.Https?.[0];i?yr.INSTANCE.chainServer.set(t,i):console.error("not valid config for chain",t)}}console.debug("Starting Server",Qe);var gl=(0,OU.createServer)({"grpc.max_send_message_length":384*1024*1024,"grpc.max_receive_message_length":384*1024*1024,"grpc.default_compression_algorithm":yU.compressionAlgorithms.gzip}).use((0,NU.openTelemetryServerMiddleware)()).use(gU.errorDetailsServerMiddleware),Qd=new cE(async()=>{let t=await import(Qe.target);return console.debug("Module loaded",t),t},gl.shutdown),A7=new oa(Qd);gl.add(eE,A7);gl.listen("0.0.0.0:"+Qe.port);console.log("Processor Server Started at:",Qe.port);var RU=4040,O7=E7.createServer(async function(t,e){if(t.url){let n=new URL(t.url,`http://${t.headers.host}`),i=n.searchParams;switch(n.pathname){case"/profile":{try{let a=parseInt(i.get("t")||"1000",10)||1e3,s=new _7;s.connect(),await s.post("Profiler.enable"),await s.post("Profiler.start"),await new Promise(r=>setTimeout(r,a));let{profile:o}=await s.post("Profiler.stop");e.writeHead(200,{"Content-Type":"application/json"}),e.write(JSON.stringify(o)),s.disconnect()}catch{e.writeHead(500)}break}default:e.writeHead(404)}}else e.writeHead(404);e.end()}).listen(RU);console.log("Metric Server Started at:",RU);process.on("SIGINT",function(){g7(0)}).on("uncaughtException",t=>{console.error("Uncaught Exception, please checking if await is properly used",t),Qd.unhandled=t}).on("unhandledRejection",(t,e)=>{t?.message.startsWith('invalid ENS name (disallowed character: "*"')||(console.error("Unhandled Rejection, please checking if await is properly",t),Qd.unhandled=t)});function g7(t){gl.forceShutdown(),console.log("RPC server shut down"),O7.close(function(){console.log("Http server shut down"),process.exit(t)})}import("process").then(t=>t.stdout.write(""));
|
59
|
+
`}};zu.PrometheusSerializer=hd});var LI=h(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.PrometheusExporter=void 0;var Ri=(b(),Y(Re)),Nz=(K(),Y(Vs)),vd=(wn(),Y(qp)),Rz=L("http"),Pz=Td(),bz=L("url"),Lt=class extends vd.MetricReader{constructor(e={},n=()=>{}){super({aggregationSelector:i=>vd.Aggregation.Default(),aggregationTemporalitySelector:i=>vd.AggregationTemporality.CUMULATIVE,metricProducers:e.metricProducers}),this._requestHandler=(i,a)=>{i.url!=null&&new bz.URL(i.url,this._baseUrl).pathname===this._endpoint?this._exportMetrics(a):this._notFound(a)},this._exportMetrics=i=>{i.statusCode=200,i.setHeader("content-type","text/plain"),this.collect().then(a=>{let{resourceMetrics:s,errors:o}=a;o.length&&Ri.diag.error("PrometheusExporter: metrics collection errors",...o),i.end(this._serializer.serialize(s))},a=>{i.end(`# failed to export metrics: ${a}`)})},this._notFound=i=>{i.statusCode=404,i.end()},this._host=e.host||process.env.OTEL_EXPORTER_PROMETHEUS_HOST||Lt.DEFAULT_OPTIONS.host,this._port=e.port||Number(process.env.OTEL_EXPORTER_PROMETHEUS_PORT)||Lt.DEFAULT_OPTIONS.port,this._prefix=e.prefix||Lt.DEFAULT_OPTIONS.prefix,this._appendTimestamp=typeof e.appendTimestamp=="boolean"?e.appendTimestamp:Lt.DEFAULT_OPTIONS.appendTimestamp,this._server=(0,Rz.createServer)(this._requestHandler).unref(),this._serializer=new Pz.PrometheusSerializer(this._prefix,this._appendTimestamp),this._baseUrl=`http://${this._host}:${this._port}/`,this._endpoint=(e.endpoint||Lt.DEFAULT_OPTIONS.endpoint).replace(/^([^/])/,"/$1"),e.preventServerStart!==!0?this.startServer().then(n,i=>{Ri.diag.error(i),n(i)}):n&&queueMicrotask(n)}async onForceFlush(){}onShutdown(){return this.stopServer()}stopServer(){return this._server?new Promise(e=>{this._server.close(n=>{n?n.code!=="ERR_SERVER_NOT_RUNNING"&&(0,Nz.globalErrorHandler)(n):Ri.diag.debug("Prometheus exporter was stopped"),e()})}):(Ri.diag.debug("Prometheus stopServer() was called but server was never started."),Promise.resolve())}startServer(){var e;return(e=this._startServerPromise)!==null&&e!==void 0||(this._startServerPromise=new Promise((n,i)=>{this._server.once("error",i),this._server.listen({port:this._port,host:this._host},()=>{Ri.diag.debug(`Prometheus exporter server started: ${this._host}:${this._port}/${this._endpoint}`),n()})})),this._startServerPromise}getMetricsRequestHandler(e,n){this._exportMetrics(n)}};Xu.PrometheusExporter=Lt;Lt.DEFAULT_OPTIONS={host:void 0,port:9464,endpoint:"/metrics",prefix:"",appendTimestamp:!1}});var II=h(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.PrometheusSerializer=Yn.PrometheusExporter=void 0;var Mz=LI();Object.defineProperty(Yn,"PrometheusExporter",{enumerable:!0,get:function(){return Mz.PrometheusExporter}});var xz=Td();Object.defineProperty(Yn,"PrometheusSerializer",{enumerable:!0,get:function(){return xz.PrometheusSerializer}})});var yd=h(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.AbstractAsyncHooksContextManager=void 0;var Lz=L("events"),Iz=["addListener","on","once","prependListener","prependOnceListener"],md=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 i=this,a=function(...s){return i.with(e,()=>n.apply(this,s))};return Object.defineProperty(a,"length",{enumerable:!1,configurable:!0,writable:!1,value:n.length}),a}_bindEventEmitter(e,n){return this._getPatchMap(n)!==void 0||(this._createPatchMap(n),Iz.forEach(a=>{n[a]!==void 0&&(n[a]=this._patchAddListener(n,n[a],e))}),typeof n.removeListener=="function"&&(n.removeListener=this._patchRemoveListener(n,n.removeListener)),typeof n.off=="function"&&(n.off=this._patchRemoveListener(n,n.off)),typeof n.removeAllListeners=="function"&&(n.removeAllListeners=this._patchRemoveAllListeners(n,n.removeAllListeners))),n}_patchRemoveListener(e,n){let i=this;return function(a,s){var o;let r=(o=i._getPatchMap(e))===null||o===void 0?void 0:o[a];if(r===void 0)return n.call(this,a,s);let u=r.get(s);return n.call(this,a,u||s)}}_patchRemoveAllListeners(e,n){let i=this;return function(a){let s=i._getPatchMap(e);return s!==void 0&&(arguments.length===0?i._createPatchMap(e):s[a]!==void 0&&delete s[a]),n.apply(this,arguments)}}_patchAddListener(e,n,i){let a=this;return function(s,o){if(a._wrapped)return n.call(this,s,o);let r=a._getPatchMap(e);r===void 0&&(r=a._createPatchMap(e));let u=r[s];u===void 0&&(u=new WeakMap,r[s]=u);let l=a.bind(i,o);u.set(o,l),a._wrapped=!0;try{return n.call(this,s,l)}finally{a._wrapped=!1}}}_createPatchMap(e){let n=Object.create(null);return e[this._kOtListeners]=n,n}_getPatchMap(e){return e[this._kOtListeners]}};Ju.AbstractAsyncHooksContextManager=md});var CI=h(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});Qu.AsyncHooksContextManager=void 0;var Cz=(b(),Y(Re)),wz=L("async_hooks"),Uz=yd(),Ad=class extends Uz.AbstractAsyncHooksContextManager{constructor(){super(),this._contexts=new Map,this._stack=[],this._asyncHook=wz.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:Cz.ROOT_CONTEXT}with(e,n,i,...a){this._enterContext(e);try{return n.call(i,...a)}finally{this._exitContext()}}enable(){return this._asyncHook.enable(),this}disable(){return this._asyncHook.disable(),this._contexts.clear(),this._stack=[],this}_init(e,n){if(n==="TIMERWRAP")return;let i=this._stack[this._stack.length-1];i!==void 0&&this._contexts.set(e,i)}_destroy(e){this._contexts.delete(e)}_before(e){let n=this._contexts.get(e);n!==void 0&&this._enterContext(n)}_after(){this._exitContext()}_enterContext(e){this._stack.push(e)}_exitContext(){this._stack.pop()}};Qu.AsyncHooksContextManager=Ad});var wI=h(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.AsyncLocalStorageContextManager=void 0;var Dz=(b(),Y(Re)),Vz=L("async_hooks"),Bz=yd(),Od=class extends Bz.AbstractAsyncHooksContextManager{constructor(){super(),this._asyncLocalStorage=new Vz.AsyncLocalStorage}active(){var e;return(e=this._asyncLocalStorage.getStore())!==null&&e!==void 0?e:Dz.ROOT_CONTEXT}with(e,n,i,...a){let s=i==null?n:n.bind(i);return this._asyncLocalStorage.run(e,s,...a)}enable(){return this}disable(){return this._asyncLocalStorage.disable(),this}};Zu.AsyncLocalStorageContextManager=Od});var UI=h(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.AsyncLocalStorageContextManager=qn.AsyncHooksContextManager=void 0;var Gz=CI();Object.defineProperty(qn,"AsyncHooksContextManager",{enumerable:!0,get:function(){return Gz.AsyncHooksContextManager}});var kz=wI();Object.defineProperty(qn,"AsyncLocalStorageContextManager",{enumerable:!0,get:function(){return kz.AsyncLocalStorageContextManager}})});var jn,gd=m(()=>{b();jn=Xr("OpenTelemetry Context Key B3 Debug Flag")});var Tr,$n,Kn,Wn,el,zn,Pi=m(()=>{Tr="b3",$n="x-b3-traceid",Kn="x-b3-spanid",Wn="x-b3-sampled",el="x-b3-parentspanid",zn="x-b3-flags"});function Yz(t){return t===J.SAMPLED||t===J.NONE}function qz(t){return Array.isArray(t)?t[0]:t}function tl(t,e,n){var i=e.get(t,n);return qz(i)}function jz(t,e){var n=tl(t,e,$n);return typeof n=="string"?n.padStart(32,"0"):""}function $z(t,e){var n=tl(t,e,Kn);return typeof n=="string"?n:""}function DI(t,e){var n=tl(t,e,zn);return n==="1"?"1":void 0}function Kz(t,e){var n=tl(t,e,Wn),i=DI(t,e);if(i==="1"||Hz.has(n))return J.SAMPLED;if(n===void 0||Fz.has(n))return J.NONE}var Hz,Fz,VI,BI=m(()=>{b();K();gd();Pi();Hz=new Set([!0,"true","True","1",1]),Fz=new Set([!1,"false","False","0",0]);VI=function(){function t(){}return t.prototype.inject=function(e,n,i){var a=X.getSpanContext(e);if(!(!a||!_t(a)||be(e))){var s=e.getValue(jn);i.set(n,$n,a.traceId),i.set(n,Kn,a.spanId),s==="1"?i.set(n,zn,s):a.traceFlags!==void 0&&i.set(n,Wn,(J.SAMPLED&a.traceFlags)===J.SAMPLED?"1":"0")}},t.prototype.extract=function(e,n,i){var a=jz(n,i),s=$z(n,i),o=Kz(n,i),r=DI(n,i);return Ft(a)&&Gi(s)&&Yz(o)?(e=e.setValue(jn,r),X.setSpanContext(e,{traceId:a,spanId:s,isRemote:!0,traceFlags:o})):e},t.prototype.fields=function(){return[$n,Kn,zn,Wn,el]},t}()});function Zz(t){return t.length===32?t:""+Xz+t}function eX(t){return t&&Jz.has(t)?J.SAMPLED:J.NONE}var Wz,zz,Xz,Jz,Qz,GI,kI=m(()=>{b();K();gd();Pi();Wz=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},zz=/((?:[0-9a-f]{16}){1,2})-([0-9a-f]{16})(?:-([01d](?![0-9a-f])))?(?:-([0-9a-f]{16}))?/,Xz="0".repeat(16),Jz=new Set(["d","1"]),Qz="d";GI=function(){function t(){}return t.prototype.inject=function(e,n,i){var a=X.getSpanContext(e);if(!(!a||!_t(a)||be(e))){var s=e.getValue(jn)||a.traceFlags&1,o=a.traceId+"-"+a.spanId+"-"+s;i.set(n,Tr,o)}},t.prototype.extract=function(e,n,i){var a=i.get(n,Tr),s=Array.isArray(a)?a[0]:a;if(typeof s!="string")return e;var o=s.match(zz);if(!o)return e;var r=Wz(o,4),u=r[1],l=r[2],c=r[3],p=Zz(u);if(!Ft(p)||!Gi(l))return e;var _=eX(c);return c===Qz&&(e=e.setValue(jn,c)),X.setSpanContext(e,{traceId:p,spanId:l,isRemote:!0,traceFlags:_})},t.prototype.fields=function(){return[Tr]},t}()});var Xn,Nd=m(()=>{(function(t){t[t.SINGLE_HEADER=0]="SINGLE_HEADER",t[t.MULTI_HEADER=1]="MULTI_HEADER"})(Xn||(Xn={}))});var HI,FI=m(()=>{K();BI();kI();Pi();Nd();HI=function(){function t(e){e===void 0&&(e={}),this._b3MultiPropagator=new VI,this._b3SinglePropagator=new GI,e.injectEncoding===Xn.MULTI_HEADER?(this._inject=this._b3MultiPropagator.inject,this._fields=this._b3MultiPropagator.fields()):(this._inject=this._b3SinglePropagator.inject,this._fields=this._b3SinglePropagator.fields())}return t.prototype.inject=function(e,n,i){be(e)||this._inject(e,n,i)},t.prototype.extract=function(e,n,i){var a=i.get(n,Tr),s=Array.isArray(a)?a[0]:a;return s?this._b3SinglePropagator.extract(e,n,i):this._b3MultiPropagator.extract(e,n,i)},t.prototype.fields=function(){return this._fields},t}()});var YI={};it(YI,{B3InjectEncoding:()=>Xn,B3Propagator:()=>HI,B3_CONTEXT_HEADER:()=>Tr,X_B3_FLAGS:()=>zn,X_B3_PARENT_SPAN_ID:()=>el,X_B3_SAMPLED:()=>Wn,X_B3_SPAN_ID:()=>Kn,X_B3_TRACE_ID:()=>$n});var qI=m(()=>{FI();Pi();Nd()});var jI,$I=m(()=>{jI="exception"});var Rd,tX,KI,rX,rl,Pd=m(()=>{b();K();Jo();$I();Rd=function(){return Rd=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},Rd.apply(this,arguments)},tX=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},KI=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},rX=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},rl=function(){function t(e,n,i,a,s,o,r,u,l,c){r===void 0&&(r=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:fE.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=i,this._spanContext=a,this.parentSpanId=o,this.kind=s,this.links=r;var p=Date.now();this._performanceStartTime=tt.now(),this._performanceOffset=p-(this._performanceStartTime+Nn()),this._startTimeProvided=u!=null,this.startTime=this._getTime(u??p),this.resource=e.resource,this.instrumentationLibrary=e.instrumentationLibrary,this._spanLimits=e.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,c!=null&&this.setAttributes(c),this._spanProcessor=e.getActiveSpanProcessor(),this._spanProcessor.onStart(this,n)}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(e,n){return n==null||this._isSpanEnded()?this:e.length===0?(g.warn("Invalid attribute key: "+e),this):ei(n)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(n),this):(g.warn("Invalid attribute value set for key: "+e),this)},t.prototype.setAttributes=function(e){var n,i;try{for(var a=tX(Object.entries(e)),s=a.next();!s.done;s=a.next()){var o=KI(s.value,2),r=o[0],u=o[1];this.setAttribute(r,u)}}catch(l){n={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return this},t.prototype.addEvent=function(e,n,i){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return g.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(this._droppedEventsCount===0&&g.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),oi(n)&&(oi(i)||(i=n),n=void 0);var a=ur(n);return this.events.push({name:e,attributes:a,time:this._getTime(i),droppedAttributesCount:0}),this},t.prototype.addLink=function(e){return this.links.push(e),this},t.prototype.addLinks=function(e){var n;return(n=this.links).push.apply(n,rX([],KI(e),!1)),this},t.prototype.setStatus=function(e){return this._isSpanEnded()?this:(this.status=Rd({},e),this.status.message!=null&&typeof e.message!="string"&&(g.warn("Dropping invalid status.message of type '"+typeof e.message+"', expected 'string'"),delete this.status.message),this)},t.prototype.updateName=function(e){return this._isSpanEnded()?this:(this.name=e,this)},t.prototype.end=function(e){if(this._isSpanEnded()){g.error(this.name+" "+this._spanContext.traceId+"-"+this._spanContext.spanId+" - You can only call end() on a span once.");return}this._ended=!0,this.endTime=this._getTime(e),this._duration=bs(this.startTime,this.endTime),this._duration[0]<0&&(g.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&g.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this)},t.prototype._getTime=function(e){if(typeof e=="number"&&e<tt.now())return ni(e+this._performanceOffset);if(typeof e=="number")return Oe(e);if(e instanceof Date)return Oe(e.getTime());if(Rn(e))return e;if(this._startTimeProvided)return Oe(Date.now());var n=tt.now()-this._performanceStartTime;return ii(this.startTime,Oe(n))},t.prototype.isRecording=function(){return this._ended===!1},t.prototype.recordException=function(e,n){var i={};typeof e=="string"?i[Es]=e:e&&(e.code?i[ds]=e.code.toString():e.name&&(i[ds]=e.name),e.message&&(i[Es]=e.message),e.stack&&(i[s0]=e.stack)),i[ds]||i[Es]?this.addEvent(jI,i,n):g.warn("Failed to record an exception "+e)},Object.defineProperty(t.prototype,"duration",{get:function(){return this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"droppedAttributesCount",{get:function(){return this._droppedAttributesCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"droppedEventsCount",{get:function(){return this._droppedEventsCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"droppedLinksCount",{get:function(){return this._droppedLinksCount},enumerable:!1,configurable:!0}),t.prototype._isSpanEnded=function(){return this._ended&&g.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},t.prototype._truncateToLimitUtil=function(e,n){return e.length<=n?e:e.substr(0,n)},t.prototype._truncateToSize=function(e){var n=this,i=this._attributeValueLengthLimit;return i<=0?(g.warn("Attribute value limit must be positive, got "+i),e):typeof e=="string"?this._truncateToLimitUtil(e,i):Array.isArray(e)?e.map(function(a){return typeof a=="string"?n._truncateToLimitUtil(a,i):a}):e},t}()});var dt,bi=m(()=>{(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(dt||(dt={}))});var vr,nl=m(()=>{bi();vr=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:dt.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}()});var It,ol=m(()=>{bi();It=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:dt.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}()});var Jn,bd=m(()=>{b();K();nl();ol();Jn=function(){function t(e){var n,i,a,s;this._root=e.root,this._root||(he(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new It),this._remoteParentSampled=(n=e.remoteParentSampled)!==null&&n!==void 0?n:new It,this._remoteParentNotSampled=(i=e.remoteParentNotSampled)!==null&&i!==void 0?i:new vr,this._localParentSampled=(a=e.localParentSampled)!==null&&a!==void 0?a:new It,this._localParentNotSampled=(s=e.localParentNotSampled)!==null&&s!==void 0?s:new vr}return t.prototype.shouldSample=function(e,n,i,a,s,o){var r=X.getSpanContext(e);return!r||!_t(r)?this._root.shouldSample(e,n,i,a,s,o):r.isRemote?r.traceFlags&J.SAMPLED?this._remoteParentSampled.shouldSample(e,n,i,a,s,o):this._remoteParentNotSampled.shouldSample(e,n,i,a,s,o):r.traceFlags&J.SAMPLED?this._localParentSampled.shouldSample(e,n,i,a,s,o):this._localParentNotSampled.shouldSample(e,n,i,a,s,o)},t.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},t}()});var Mi,Md=m(()=>{b();bi();Mi=function(){function t(e){e===void 0&&(e=0),this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}return t.prototype.shouldSample=function(e,n){return{decision:Ft(n)&&this._accumulate(n)<this._upperBound?dt.RECORD_AND_SAMPLED:dt.NOT_RECORD}},t.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},t.prototype._normalize=function(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e},t.prototype._accumulate=function(e){for(var n=0,i=0;i<e.length/8;i++){var a=i*8,s=parseInt(e.slice(a,a+8),16);n=(n^s)>>>0}return n},t}()});function il(){var t=Ae();return{sampler:xd(nX),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:t.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:t.OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:t.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:t.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:t.OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:t.OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:t.OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:t.OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}}}function xd(t){switch(t===void 0&&(t=Ae()),t.OTEL_TRACES_SAMPLER){case je.AlwaysOn:return new It;case je.AlwaysOff:return new vr;case je.ParentBasedAlwaysOn:return new Jn({root:new It});case je.ParentBasedAlwaysOff:return new Jn({root:new vr});case je.TraceIdRatio:return new Mi(WI(t));case je.ParentBasedTraceIdRatio:return new Jn({root:new Mi(WI(t))});default:return g.error('OTEL_TRACES_SAMPLER value "'+t.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+oX+'".'),new It}}function WI(t){if(t.OTEL_TRACES_SAMPLER_ARG===void 0||t.OTEL_TRACES_SAMPLER_ARG==="")return g.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to "+Qn+"."),Qn;var e=Number(t.OTEL_TRACES_SAMPLER_ARG);return isNaN(e)?(g.error("OTEL_TRACES_SAMPLER_ARG="+t.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to "+Qn+"."),Qn):e<0||e>1?(g.error("OTEL_TRACES_SAMPLER_ARG="+t.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to "+Qn+"."),Qn):e}var nX,oX,Qn,Ld=m(()=>{b();K();nl();ol();bd();Md();nX=Ae(),oX=je.AlwaysOn,Qn=1});function zI(t){var e={sampler:xd()},n=il(),i=Object.assign({},n,e,t);return i.generalLimits=Object.assign({},n.generalLimits,t.generalLimits||{}),i.spanLimits=Object.assign({},n.spanLimits,t.spanLimits||{}),i}function XI(t){var e,n,i,a,s,o,r,u,l,c,p,_,f=Object.assign({},t.spanLimits),S=On();return f.attributeCountLimit=(o=(s=(a=(n=(e=t.spanLimits)===null||e===void 0?void 0:e.attributeCountLimit)!==null&&n!==void 0?n:(i=t.generalLimits)===null||i===void 0?void 0:i.attributeCountLimit)!==null&&a!==void 0?a:S.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)!==null&&s!==void 0?s:S.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&o!==void 0?o:Gr,f.attributeValueLengthLimit=(_=(p=(c=(u=(r=t.spanLimits)===null||r===void 0?void 0:r.attributeValueLengthLimit)!==null&&u!==void 0?u:(l=t.generalLimits)===null||l===void 0?void 0:l.attributeValueLengthLimit)!==null&&c!==void 0?c:S.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&p!==void 0?p:S.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&_!==void 0?_:Br,Object.assign({},t,{spanLimits:f})}var Id=m(()=>{Ld();K()});var JI,QI=m(()=>{b();K();JI=function(){function t(e,n){this._exporter=e,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var i=Ae();this._maxExportBatchSize=typeof n?.maxExportBatchSize=="number"?n.maxExportBatchSize:i.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof n?.maxQueueSize=="number"?n.maxQueueSize:i.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof n?.scheduledDelayMillis=="number"?n.scheduledDelayMillis:i.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof n?.exportTimeoutMillis=="number"?n.exportTimeoutMillis:i.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new pr(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(g.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return t.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},t.prototype.onStart=function(e,n){},t.prototype.onEnd=function(e){this._shutdownOnce.isCalled||e.spanContext().traceFlags&J.SAMPLED&&this._addToBuffer(e)},t.prototype.shutdown=function(){return this._shutdownOnce.call()},t.prototype._shutdown=function(){var e=this;return Promise.resolve().then(function(){return e.onShutdown()}).then(function(){return e._flushAll()}).then(function(){return e._exporter.shutdown()})},t.prototype._addToBuffer=function(e){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&g.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(g.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()},t.prototype._flushAll=function(){var e=this;return new Promise(function(n,i){for(var a=[],s=Math.ceil(e._finishedSpans.length/e._maxExportBatchSize),o=0,r=s;o<r;o++)a.push(e._flushOneBatch());Promise.all(a).then(function(){n()}).catch(i)})},t.prototype._flushOneBatch=function(){var e=this;return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise(function(n,i){var a=setTimeout(function(){i(new Error("Timeout"))},e._exportTimeoutMillis);He.with(yn(He.active()),function(){var s;e._finishedSpans.length<=e._maxExportBatchSize?(s=e._finishedSpans,e._finishedSpans=[]):s=e._finishedSpans.splice(0,e._maxExportBatchSize);for(var o=function(){return e._exporter.export(s,function(p){var _;clearTimeout(a),p.code===ee.SUCCESS?n():i((_=p.error)!==null&&_!==void 0?_:new Error("BatchSpanProcessor: span export failed"))})},r=null,u=0,l=s.length;u<l;u++){var c=s[u];c.resource.asyncAttributesPending&&c.resource.waitForAsyncAttributes&&(r??(r=[]),r.push(c.resource.waitForAsyncAttributes()))}r===null?o():Promise.all(r).then(o,function(p){he(p),i(p)})})})},t.prototype._maybeStartTimer=function(){var e=this;if(!this._isExporting){var n=function(){e._isExporting=!0,e._flushOneBatch().finally(function(){e._isExporting=!1,e._finishedSpans.length>0&&(e._clearTimer(),e._maybeStartTimer())}).catch(function(i){e._isExporting=!1,he(i)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return n();this._timer===void 0&&(this._timer=setTimeout(function(){return n()},this._scheduledDelayMillis),fr(this._timer))}},t.prototype._clearTimer=function(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)},t}()});var iX,mr,ZI=m(()=>{QI();iX=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),mr=function(t){iX(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onShutdown=function(){},e}(JI)});function eC(t){return function(){for(var n=0;n<t/4;n++)al.writeUInt32BE(Math.random()*Math.pow(2,32)>>>0,n*4);for(var n=0;n<t&&!(al[n]>0);n++)n===t-1&&(al[t-1]=1);return al.toString("hex",0,t)}}var aX,tC,Zn,al,rC=m(()=>{aX=8,tC=16,Zn=function(){function t(){this.generateTraceId=eC(tC),this.generateSpanId=eC(aX)}return t}(),al=Buffer.allocUnsafe(tC)});var nC=m(()=>{ZI();rC()});var sl=m(()=>{nC()});var ul,oC=m(()=>{b();K();Pd();Id();sl();ul=function(){function t(e,n,i){this._tracerProvider=i;var a=zI(n);this._sampler=a.sampler,this._generalLimits=a.generalLimits,this._spanLimits=a.spanLimits,this._idGenerator=n.idGenerator||new Zn,this.resource=i.resource,this.instrumentationLibrary=e}return t.prototype.startSpan=function(e,n,i){var a,s,o;n===void 0&&(n={}),i===void 0&&(i=He.active()),n.root&&(i=X.deleteSpan(i));var r=X.getSpan(i);if(be(i)){g.debug("Instrumentation suppressed, returning Noop Span");var u=X.wrapSpanContext(uE);return u}var l=r?.spanContext(),c=this._idGenerator.generateSpanId(),p,_,f;!l||!X.isSpanContextValid(l)?p=this._idGenerator.generateTraceId():(p=l.traceId,_=l.traceState,f=l.spanId);var S=(a=n.kind)!==null&&a!==void 0?a:cE.INTERNAL,v=((s=n.links)!==null&&s!==void 0?s:[]).map(function(F){return{context:F.context,attributes:ur(F.attributes)}}),T=ur(n.attributes),A=this._sampler.shouldSample(i,p,e,S,T,v);_=(o=A.traceState)!==null&&o!==void 0?o:_;var O=A.decision===St.RECORD_AND_SAMPLED?J.SAMPLED:J.NONE,N={traceId:p,spanId:c,traceFlags:O,traceState:_};if(A.decision===St.NOT_RECORD){g.debug("Recording is off, propagating context in a non-recording span");var u=X.wrapSpanContext(N);return u}var D=ur(Object.assign(T,A.attributes)),G=new rl(this,i,e,N,S,f,v,n.startTime,void 0,D);return G},t.prototype.startActiveSpan=function(e,n,i,a){var s,o,r;if(!(arguments.length<2)){arguments.length===2?r=n:arguments.length===3?(s=n,r=i):(s=n,o=i,r=a);var u=o??He.active(),l=this.startSpan(e,s,u),c=X.setSpan(u,l);return He.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 ll,iC,aC=m(()=>{K();ll=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},iC=function(){function t(e){this._spanProcessors=e}return t.prototype.forceFlush=function(){var e,n,i=[];try{for(var a=ll(this._spanProcessors),s=a.next();!s.done;s=a.next()){var o=s.value;i.push(o.forceFlush())}}catch(r){e={error:r}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return new Promise(function(r){Promise.all(i).then(function(){r()}).catch(function(u){he(u||new Error("MultiSpanProcessor: forceFlush failed")),r()})})},t.prototype.onStart=function(e,n){var i,a;try{for(var s=ll(this._spanProcessors),o=s.next();!o.done;o=s.next()){var r=o.value;r.onStart(e,n)}}catch(u){i={error:u}}finally{try{o&&!o.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}},t.prototype.onEnd=function(e){var n,i;try{for(var a=ll(this._spanProcessors),s=a.next();!s.done;s=a.next()){var o=s.value;o.onEnd(e)}}catch(r){n={error:r}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}},t.prototype.shutdown=function(){var e,n,i=[];try{for(var a=ll(this._spanProcessors),s=a.next();!s.done;s=a.next()){var o=s.value;i.push(o.shutdown())}}catch(r){e={error:r}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return new Promise(function(r,u){Promise.all(i).then(function(){r()},u)})},t}()});var cl,Cd=m(()=>{cl=function(){function t(){}return t.prototype.onStart=function(e,n){},t.prototype.onEnd=function(e){},t.prototype.shutdown=function(){return Promise.resolve()},t.prototype.forceFlush=function(){return Promise.resolve()},t}()});var kt,sC,uC=m(()=>{b();K();ks();xi();Ld();aC();Cd();sl();Id();(function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"})(kt||(kt={}));sC=function(){function t(e){e===void 0&&(e={});var n;this._registeredSpanProcessors=[],this._tracers=new Map;var i=Ds({},il(),XI(e));this.resource=(n=i.resource)!==null&&n!==void 0?n:Bt.empty(),this.resource=Bt.default().merge(this.resource),this._config=Object.assign({},i,{resource:this.resource});var a=this._buildExporterFromEnv();if(a!==void 0){var s=new mr(a);this.activeSpanProcessor=s}else this.activeSpanProcessor=new cl}return t.prototype.getTracer=function(e,n,i){var a=e+"@"+(n||"")+":"+(i?.schemaUrl||"");return this._tracers.has(a)||this._tracers.set(a,new ul({name:e,version:n,schemaUrl:i?.schemaUrl},this._config,this)),this._tracers.get(a)},t.prototype.addSpanProcessor=function(e){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(function(n){return g.error("Error while trying to shutdown current span processor",n)}),this._registeredSpanProcessors.push(e),this.activeSpanProcessor=new iC(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&&He.setGlobalContextManager(e.contextManager),e.propagator&&st.setGlobalPropagator(e.propagator)},t.prototype.forceFlush=function(){var e=this._config.forceFlushTimeoutMillis,n=this._registeredSpanProcessors.map(function(i){return new Promise(function(a){var s,o=setTimeout(function(){a(new Error("Span processor did not completed within timeout period of "+e+" ms")),s=kt.timeout},e);i.forceFlush().then(function(){clearTimeout(o),s!==kt.timeout&&(s=kt.resolved,a(s))}).catch(function(r){clearTimeout(o),s=kt.error,a(r)})})});return new Promise(function(i,a){Promise.all(n).then(function(s){var o=s.filter(function(r){return r!==kt.resolved});o.length>0?a(o):i()}).catch(function(s){return a([s])})})},t.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},t.prototype._getPropagator=function(e){var n;return(n=this.constructor._registeredPropagators.get(e))===null||n===void 0?void 0:n()},t.prototype._getSpanExporter=function(e){var n;return(n=this.constructor._registeredExporters.get(e))===null||n===void 0?void 0:n()},t.prototype._buildPropagatorFromEnv=function(){var e=this,n=Array.from(new Set(Ae().OTEL_PROPAGATORS)),i=n.map(function(s){var o=e._getPropagator(s);return o||g.warn('Propagator "'+s+'" requested through environment variable is unavailable.'),o}),a=i.reduce(function(s,o){return o&&s.push(o),s},[]);if(a.length!==0)return n.length===1?a[0]:new xs({propagators:a})},t.prototype._buildExporterFromEnv=function(){var e=Ae().OTEL_TRACES_EXPORTER;if(!(e==="none"||e==="")){var n=this._getSpanExporter(e);return n||g.error('Exporter "'+e+'" requested through environment variable is unavailable.'),n}},t._registeredPropagators=new Map([["tracecontext",function(){return new Is}],["baggage",function(){return new ms}]]),t._registeredExporters=new Map,t}()});var sX,lC,cC=m(()=>{K();sX=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},lC=function(){function t(){}return t.prototype.export=function(e,n){return this._sendSpans(e,n)},t.prototype.shutdown=function(){return this._sendSpans([]),this.forceFlush()},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype._exportInfo=function(e){var n;return{resource:{attributes:e.resource.attributes},instrumentationScope:e.instrumentationLibrary,traceId:e.spanContext().traceId,parentId:e.parentSpanId,traceState:(n=e.spanContext().traceState)===null||n===void 0?void 0:n.serialize(),name:e.name,id:e.spanContext().spanId,kind:e.kind,timestamp:Nt(e.startTime),duration:Nt(e.duration),attributes:e.attributes,status:e.status,events:e.events,links:e.links}},t.prototype._sendSpans=function(e,n){var i,a;try{for(var s=sX(e),o=s.next();!o.done;o=s.next()){var r=o.value;console.dir(this._exportInfo(r),{depth:3})}}catch(u){i={error:u}}finally{try{o&&!o.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}if(n)return n({code:ee.SUCCESS})},t}()});var uX,lX,fC,pC=m(()=>{K();uX=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},lX=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},fC=function(){function t(){this._finishedSpans=[],this._stopped=!1}return t.prototype.export=function(e,n){var i;if(this._stopped)return n({code:ee.FAILED,error:new Error("Exporter has been stopped")});(i=this._finishedSpans).push.apply(i,lX([],uX(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 cX,fX,dC,EC=m(()=>{b();K();cX=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},fX=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},dC=function(){function t(e){this._exporter=e,this._shutdownOnce=new pr(this._shutdown,this),this._unresolvedExports=new Set}return t.prototype.forceFlush=function(){return cX(this,void 0,void 0,function(){return fX(this,function(e){switch(e.label){case 0:return[4,Promise.all(Array.from(this._unresolvedExports))];case 1:return e.sent(),this._exporter.forceFlush?[4,this._exporter.forceFlush()]:[3,3];case 2:e.sent(),e.label=3;case 3:return[2]}})})},t.prototype.onStart=function(e,n){},t.prototype.onEnd=function(e){var n=this,i,a;if(!this._shutdownOnce.isCalled&&e.spanContext().traceFlags&J.SAMPLED){var s=function(){return ci._export(n._exporter,[e]).then(function(r){var u;r.code!==ee.SUCCESS&&he((u=r.error)!==null&&u!==void 0?u:new Error("SimpleSpanProcessor: span export failed (status "+r+")"))}).catch(function(r){he(r)})};if(e.resource.asyncAttributesPending){var o=(a=(i=e.resource).waitForAsyncAttributes)===null||a===void 0?void 0:a.call(i).then(function(){return o!=null&&n._unresolvedExports.delete(o),s()},function(r){return he(r)});o!=null&&this._unresolvedExports.add(o)}else s()}},t.prototype.shutdown=function(){return this._shutdownOnce.call()},t.prototype._shutdown=function(){return this._exporter.shutdown()},t}()});var wd={};it(wd,{AlwaysOffSampler:()=>vr,AlwaysOnSampler:()=>It,BasicTracerProvider:()=>sC,BatchSpanProcessor:()=>mr,ConsoleSpanExporter:()=>lC,ForceFlushState:()=>kt,InMemorySpanExporter:()=>fC,NoopSpanProcessor:()=>cl,ParentBasedSampler:()=>Jn,RandomIdGenerator:()=>Zn,SamplingDecision:()=>dt,SimpleSpanProcessor:()=>dC,Span:()=>rl,TraceIdRatioBasedSampler:()=>Mi,Tracer:()=>ul});var xi=m(()=>{oC();uC();sl();cC();pC();EC();Cd();nl();ol();bd();Md();bi();Pd()});var Li=h((Kce,_C)=>{var pX="2.0.0",dX=Number.MAX_SAFE_INTEGER||9007199254740991,EX=16,_X=256-6,SX=["major","premajor","minor","preminor","patch","prepatch","prerelease"];_C.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:EX,MAX_SAFE_BUILD_LENGTH:_X,MAX_SAFE_INTEGER:dX,RELEASE_TYPES:SX,SEMVER_SPEC_VERSION:pX,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Ii=h((Wce,SC)=>{var hX=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};SC.exports=hX});var eo=h((Ht,hC)=>{var{MAX_SAFE_COMPONENT_LENGTH:Ud,MAX_SAFE_BUILD_LENGTH:TX,MAX_LENGTH:vX}=Li(),mX=Ii();Ht=hC.exports={};var yX=Ht.re=[],AX=Ht.safeRe=[],R=Ht.src=[],P=Ht.t={},OX=0,Dd="[a-zA-Z0-9-]",gX=[["\\s",1],["\\d",vX],[Dd,TX]],NX=t=>{for(let[e,n]of gX)t=t.split(`${e}*`).join(`${e}{0,${n}}`).split(`${e}+`).join(`${e}{1,${n}}`);return t},U=(t,e,n)=>{let i=NX(e),a=OX++;mX(t,a,e),P[t]=a,R[a]=e,yX[a]=new RegExp(e,n?"g":void 0),AX[a]=new RegExp(i,n?"g":void 0)};U("NUMERICIDENTIFIER","0|[1-9]\\d*");U("NUMERICIDENTIFIERLOOSE","\\d+");U("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Dd}*`);U("MAINVERSION",`(${R[P.NUMERICIDENTIFIER]})\\.(${R[P.NUMERICIDENTIFIER]})\\.(${R[P.NUMERICIDENTIFIER]})`);U("MAINVERSIONLOOSE",`(${R[P.NUMERICIDENTIFIERLOOSE]})\\.(${R[P.NUMERICIDENTIFIERLOOSE]})\\.(${R[P.NUMERICIDENTIFIERLOOSE]})`);U("PRERELEASEIDENTIFIER",`(?:${R[P.NUMERICIDENTIFIER]}|${R[P.NONNUMERICIDENTIFIER]})`);U("PRERELEASEIDENTIFIERLOOSE",`(?:${R[P.NUMERICIDENTIFIERLOOSE]}|${R[P.NONNUMERICIDENTIFIER]})`);U("PRERELEASE",`(?:-(${R[P.PRERELEASEIDENTIFIER]}(?:\\.${R[P.PRERELEASEIDENTIFIER]})*))`);U("PRERELEASELOOSE",`(?:-?(${R[P.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${R[P.PRERELEASEIDENTIFIERLOOSE]})*))`);U("BUILDIDENTIFIER",`${Dd}+`);U("BUILD",`(?:\\+(${R[P.BUILDIDENTIFIER]}(?:\\.${R[P.BUILDIDENTIFIER]})*))`);U("FULLPLAIN",`v?${R[P.MAINVERSION]}${R[P.PRERELEASE]}?${R[P.BUILD]}?`);U("FULL",`^${R[P.FULLPLAIN]}$`);U("LOOSEPLAIN",`[v=\\s]*${R[P.MAINVERSIONLOOSE]}${R[P.PRERELEASELOOSE]}?${R[P.BUILD]}?`);U("LOOSE",`^${R[P.LOOSEPLAIN]}$`);U("GTLT","((?:<|>)?=?)");U("XRANGEIDENTIFIERLOOSE",`${R[P.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);U("XRANGEIDENTIFIER",`${R[P.NUMERICIDENTIFIER]}|x|X|\\*`);U("XRANGEPLAIN",`[v=\\s]*(${R[P.XRANGEIDENTIFIER]})(?:\\.(${R[P.XRANGEIDENTIFIER]})(?:\\.(${R[P.XRANGEIDENTIFIER]})(?:${R[P.PRERELEASE]})?${R[P.BUILD]}?)?)?`);U("XRANGEPLAINLOOSE",`[v=\\s]*(${R[P.XRANGEIDENTIFIERLOOSE]})(?:\\.(${R[P.XRANGEIDENTIFIERLOOSE]})(?:\\.(${R[P.XRANGEIDENTIFIERLOOSE]})(?:${R[P.PRERELEASELOOSE]})?${R[P.BUILD]}?)?)?`);U("XRANGE",`^${R[P.GTLT]}\\s*${R[P.XRANGEPLAIN]}$`);U("XRANGELOOSE",`^${R[P.GTLT]}\\s*${R[P.XRANGEPLAINLOOSE]}$`);U("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Ud}})(?:\\.(\\d{1,${Ud}}))?(?:\\.(\\d{1,${Ud}}))?`);U("COERCE",`${R[P.COERCEPLAIN]}(?:$|[^\\d])`);U("COERCEFULL",R[P.COERCEPLAIN]+`(?:${R[P.PRERELEASE]})?(?:${R[P.BUILD]})?(?:$|[^\\d])`);U("COERCERTL",R[P.COERCE],!0);U("COERCERTLFULL",R[P.COERCEFULL],!0);U("LONETILDE","(?:~>?)");U("TILDETRIM",`(\\s*)${R[P.LONETILDE]}\\s+`,!0);Ht.tildeTrimReplace="$1~";U("TILDE",`^${R[P.LONETILDE]}${R[P.XRANGEPLAIN]}$`);U("TILDELOOSE",`^${R[P.LONETILDE]}${R[P.XRANGEPLAINLOOSE]}$`);U("LONECARET","(?:\\^)");U("CARETTRIM",`(\\s*)${R[P.LONECARET]}\\s+`,!0);Ht.caretTrimReplace="$1^";U("CARET",`^${R[P.LONECARET]}${R[P.XRANGEPLAIN]}$`);U("CARETLOOSE",`^${R[P.LONECARET]}${R[P.XRANGEPLAINLOOSE]}$`);U("COMPARATORLOOSE",`^${R[P.GTLT]}\\s*(${R[P.LOOSEPLAIN]})$|^$`);U("COMPARATOR",`^${R[P.GTLT]}\\s*(${R[P.FULLPLAIN]})$|^$`);U("COMPARATORTRIM",`(\\s*)${R[P.GTLT]}\\s*(${R[P.LOOSEPLAIN]}|${R[P.XRANGEPLAIN]})`,!0);Ht.comparatorTrimReplace="$1$2$3";U("HYPHENRANGE",`^\\s*(${R[P.XRANGEPLAIN]})\\s+-\\s+(${R[P.XRANGEPLAIN]})\\s*$`);U("HYPHENRANGELOOSE",`^\\s*(${R[P.XRANGEPLAINLOOSE]})\\s+-\\s+(${R[P.XRANGEPLAINLOOSE]})\\s*$`);U("STAR","(<|>)?=?\\s*\\*");U("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");U("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var fl=h((zce,TC)=>{var RX=Object.freeze({loose:!0}),PX=Object.freeze({}),bX=t=>t?typeof t!="object"?RX:t:PX;TC.exports=bX});var Vd=h((Xce,yC)=>{var vC=/^[0-9]+$/,mC=(t,e)=>{let n=vC.test(t),i=vC.test(e);return n&&i&&(t=+t,e=+e),t===e?0:n&&!i?-1:i&&!n?1:t<e?-1:1},MX=(t,e)=>mC(e,t);yC.exports={compareIdentifiers:mC,rcompareIdentifiers:MX}});var Me=h((Jce,NC)=>{var pl=Ii(),{MAX_LENGTH:AC,MAX_SAFE_INTEGER:dl}=Li(),{safeRe:OC,t:gC}=eo(),xX=fl(),{compareIdentifiers:to}=Vd(),Qe=class{constructor(e,n){if(n=xX(n),e instanceof Qe){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>AC)throw new TypeError(`version is longer than ${AC} characters`);pl("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let i=e.trim().match(n.loose?OC[gC.LOOSE]:OC[gC.FULL]);if(!i)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>dl||this.major<0)throw new TypeError("Invalid major version");if(this.minor>dl||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>dl||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(a=>{if(/^[0-9]+$/.test(a)){let s=+a;if(s>=0&&s<dl)return s}return a}):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(pl("SemVer.compare",this.version,this.options,e),!(e instanceof Qe)){if(typeof e=="string"&&e===this.version)return 0;e=new Qe(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof Qe||(e=new Qe(e,this.options)),to(this.major,e.major)||to(this.minor,e.minor)||to(this.patch,e.patch)}comparePre(e){if(e instanceof Qe||(e=new Qe(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let n=0;do{let i=this.prerelease[n],a=e.prerelease[n];if(pl("prerelease compare",n,i,a),i===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(i===void 0)return-1;if(i===a)continue;return to(i,a)}while(++n)}compareBuild(e){e instanceof Qe||(e=new Qe(e,this.options));let n=0;do{let i=this.build[n],a=e.build[n];if(pl("build compare",n,i,a),i===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(i===void 0)return-1;if(i===a)continue;return to(i,a)}while(++n)}inc(e,n,i){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,i),this.inc("pre",n,i);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,i),this.inc("pre",n,i);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let a=Number(i)?1:0;if(!n&&i===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[a];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(n===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(a)}}if(n){let s=[n,a];i===!1&&(s=[n]),to(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};NC.exports=Qe});var Kr=h((Qce,PC)=>{var RC=Me(),LX=(t,e,n=!1)=>{if(t instanceof RC)return t;try{return new RC(t,e)}catch(i){if(!n)return null;throw i}};PC.exports=LX});var MC=h((Zce,bC)=>{var IX=Kr(),CX=(t,e)=>{let n=IX(t,e);return n?n.version:null};bC.exports=CX});var LC=h((efe,xC)=>{var wX=Kr(),UX=(t,e)=>{let n=wX(t.trim().replace(/^[=v]+/,""),e);return n?n.version:null};xC.exports=UX});var wC=h((tfe,CC)=>{var IC=Me(),DX=(t,e,n,i,a)=>{typeof n=="string"&&(a=i,i=n,n=void 0);try{return new IC(t instanceof IC?t.version:t,n).inc(e,i,a).version}catch{return null}};CC.exports=DX});var VC=h((rfe,DC)=>{var UC=Kr(),VX=(t,e)=>{let n=UC(t,null,!0),i=UC(e,null,!0),a=n.compare(i);if(a===0)return null;let s=a>0,o=s?n:i,r=s?i:n,u=!!o.prerelease.length;if(!!r.prerelease.length&&!u)return!r.patch&&!r.minor?"major":o.patch?"patch":o.minor?"minor":"major";let c=u?"pre":"";return n.major!==i.major?c+"major":n.minor!==i.minor?c+"minor":n.patch!==i.patch?c+"patch":"prerelease"};DC.exports=VX});var GC=h((nfe,BC)=>{var BX=Me(),GX=(t,e)=>new BX(t,e).major;BC.exports=GX});var HC=h((ofe,kC)=>{var kX=Me(),HX=(t,e)=>new kX(t,e).minor;kC.exports=HX});var YC=h((ife,FC)=>{var FX=Me(),YX=(t,e)=>new FX(t,e).patch;FC.exports=YX});var jC=h((afe,qC)=>{var qX=Kr(),jX=(t,e)=>{let n=qX(t,e);return n&&n.prerelease.length?n.prerelease:null};qC.exports=jX});var nt=h((sfe,KC)=>{var $C=Me(),$X=(t,e,n)=>new $C(t,n).compare(new $C(e,n));KC.exports=$X});var zC=h((ufe,WC)=>{var KX=nt(),WX=(t,e,n)=>KX(e,t,n);WC.exports=WX});var JC=h((lfe,XC)=>{var zX=nt(),XX=(t,e)=>zX(t,e,!0);XC.exports=XX});var El=h((cfe,ZC)=>{var QC=Me(),JX=(t,e,n)=>{let i=new QC(t,n),a=new QC(e,n);return i.compare(a)||i.compareBuild(a)};ZC.exports=JX});var tw=h((ffe,ew)=>{var QX=El(),ZX=(t,e)=>t.sort((n,i)=>QX(n,i,e));ew.exports=ZX});var nw=h((pfe,rw)=>{var eJ=El(),tJ=(t,e)=>t.sort((n,i)=>eJ(i,n,e));rw.exports=tJ});var Ci=h((dfe,ow)=>{var rJ=nt(),nJ=(t,e,n)=>rJ(t,e,n)>0;ow.exports=nJ});var _l=h((Efe,iw)=>{var oJ=nt(),iJ=(t,e,n)=>oJ(t,e,n)<0;iw.exports=iJ});var Bd=h((_fe,aw)=>{var aJ=nt(),sJ=(t,e,n)=>aJ(t,e,n)===0;aw.exports=sJ});var Gd=h((Sfe,sw)=>{var uJ=nt(),lJ=(t,e,n)=>uJ(t,e,n)!==0;sw.exports=lJ});var Sl=h((hfe,uw)=>{var cJ=nt(),fJ=(t,e,n)=>cJ(t,e,n)>=0;uw.exports=fJ});var hl=h((Tfe,lw)=>{var pJ=nt(),dJ=(t,e,n)=>pJ(t,e,n)<=0;lw.exports=dJ});var kd=h((vfe,cw)=>{var EJ=Bd(),_J=Gd(),SJ=Ci(),hJ=Sl(),TJ=_l(),vJ=hl(),mJ=(t,e,n,i)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t===n;case"!==":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t!==n;case"":case"=":case"==":return EJ(t,n,i);case"!=":return _J(t,n,i);case">":return SJ(t,n,i);case">=":return hJ(t,n,i);case"<":return TJ(t,n,i);case"<=":return vJ(t,n,i);default:throw new TypeError(`Invalid operator: ${e}`)}};cw.exports=mJ});var pw=h((mfe,fw)=>{var yJ=Me(),AJ=Kr(),{safeRe:Tl,t:vl}=eo(),OJ=(t,e)=>{if(t instanceof yJ)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?Tl[vl.COERCEFULL]:Tl[vl.COERCE]);else{let u=e.includePrerelease?Tl[vl.COERCERTLFULL]:Tl[vl.COERCERTL],l;for(;(l=u.exec(t))&&(!n||n.index+n[0].length!==t.length);)(!n||l.index+l[0].length!==n.index+n[0].length)&&(n=l),u.lastIndex=l.index+l[1].length+l[2].length;u.lastIndex=-1}if(n===null)return null;let i=n[2],a=n[3]||"0",s=n[4]||"0",o=e.includePrerelease&&n[5]?`-${n[5]}`:"",r=e.includePrerelease&&n[6]?`+${n[6]}`:"";return AJ(`${i}.${a}.${s}${o}${r}`,e)};fw.exports=OJ});var Ew=h((yfe,dw)=>{var Hd=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}};dw.exports=Hd});var ot=h((Afe,Tw)=>{var Wr=class{constructor(e,n){if(n=NJ(n),e instanceof Wr)return e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease?e:new Wr(e.raw,n);if(e instanceof Fd)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(a=>!Sw(a[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let a of this.set)if(a.length===1&&IJ(a[0])){this.set=[a];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){let i=((this.options.includePrerelease&&xJ)|(this.options.loose&&LJ))+":"+e,a=_w.get(i);if(a)return a;let s=this.options.loose,o=s?$e[Ve.HYPHENRANGELOOSE]:$e[Ve.HYPHENRANGE];e=e.replace(o,FJ(this.options.includePrerelease)),te("hyphen replace",e),e=e.replace($e[Ve.COMPARATORTRIM],PJ),te("comparator trim",e),e=e.replace($e[Ve.TILDETRIM],bJ),te("tilde trim",e),e=e.replace($e[Ve.CARETTRIM],MJ),te("caret trim",e);let r=e.split(" ").map(p=>CJ(p,this.options)).join(" ").split(/\s+/).map(p=>HJ(p,this.options));s&&(r=r.filter(p=>(te("loose invalid filter",p,this.options),!!p.match($e[Ve.COMPARATORLOOSE])))),te("range list",r);let u=new Map,l=r.map(p=>new Fd(p,this.options));for(let p of l){if(Sw(p))return[p];u.set(p.value,p)}u.size>1&&u.has("")&&u.delete("");let c=[...u.values()];return _w.set(i,c),c}intersects(e,n){if(!(e instanceof Wr))throw new TypeError("a Range is required");return this.set.some(i=>hw(i,n)&&e.set.some(a=>hw(a,n)&&i.every(s=>a.every(o=>s.intersects(o,n)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new RJ(e,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(YJ(this.set[n],e,this.options))return!0;return!1}};Tw.exports=Wr;var gJ=Ew(),_w=new gJ,NJ=fl(),Fd=wi(),te=Ii(),RJ=Me(),{safeRe:$e,t:Ve,comparatorTrimReplace:PJ,tildeTrimReplace:bJ,caretTrimReplace:MJ}=eo(),{FLAG_INCLUDE_PRERELEASE:xJ,FLAG_LOOSE:LJ}=Li(),Sw=t=>t.value==="<0.0.0-0",IJ=t=>t.value==="",hw=(t,e)=>{let n=!0,i=t.slice(),a=i.pop();for(;n&&i.length;)n=i.every(s=>a.intersects(s,e)),a=i.pop();return n},CJ=(t,e)=>(te("comp",t,e),t=DJ(t,e),te("caret",t),t=wJ(t,e),te("tildes",t),t=BJ(t,e),te("xrange",t),t=kJ(t,e),te("stars",t),t),Be=t=>!t||t.toLowerCase()==="x"||t==="*",wJ=(t,e)=>t.trim().split(/\s+/).map(n=>UJ(n,e)).join(" "),UJ=(t,e)=>{let n=e.loose?$e[Ve.TILDELOOSE]:$e[Ve.TILDE];return t.replace(n,(i,a,s,o,r)=>{te("tilde",t,i,a,s,o,r);let u;return Be(a)?u="":Be(s)?u=`>=${a}.0.0 <${+a+1}.0.0-0`:Be(o)?u=`>=${a}.${s}.0 <${a}.${+s+1}.0-0`:r?(te("replaceTilde pr",r),u=`>=${a}.${s}.${o}-${r} <${a}.${+s+1}.0-0`):u=`>=${a}.${s}.${o} <${a}.${+s+1}.0-0`,te("tilde return",u),u})},DJ=(t,e)=>t.trim().split(/\s+/).map(n=>VJ(n,e)).join(" "),VJ=(t,e)=>{te("caret",t,e);let n=e.loose?$e[Ve.CARETLOOSE]:$e[Ve.CARET],i=e.includePrerelease?"-0":"";return t.replace(n,(a,s,o,r,u)=>{te("caret",t,a,s,o,r,u);let l;return Be(s)?l="":Be(o)?l=`>=${s}.0.0${i} <${+s+1}.0.0-0`:Be(r)?s==="0"?l=`>=${s}.${o}.0${i} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.0${i} <${+s+1}.0.0-0`:u?(te("replaceCaret pr",u),s==="0"?o==="0"?l=`>=${s}.${o}.${r}-${u} <${s}.${o}.${+r+1}-0`:l=`>=${s}.${o}.${r}-${u} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.${r}-${u} <${+s+1}.0.0-0`):(te("no pr"),s==="0"?o==="0"?l=`>=${s}.${o}.${r}${i} <${s}.${o}.${+r+1}-0`:l=`>=${s}.${o}.${r}${i} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.${r} <${+s+1}.0.0-0`),te("caret return",l),l})},BJ=(t,e)=>(te("replaceXRanges",t,e),t.split(/\s+/).map(n=>GJ(n,e)).join(" ")),GJ=(t,e)=>{t=t.trim();let n=e.loose?$e[Ve.XRANGELOOSE]:$e[Ve.XRANGE];return t.replace(n,(i,a,s,o,r,u)=>{te("xRange",t,i,a,s,o,r,u);let l=Be(s),c=l||Be(o),p=c||Be(r),_=p;return a==="="&&_&&(a=""),u=e.includePrerelease?"-0":"",l?a===">"||a==="<"?i="<0.0.0-0":i="*":a&&_?(c&&(o=0),r=0,a===">"?(a=">=",c?(s=+s+1,o=0,r=0):(o=+o+1,r=0)):a==="<="&&(a="<",c?s=+s+1:o=+o+1),a==="<"&&(u="-0"),i=`${a+s}.${o}.${r}${u}`):c?i=`>=${s}.0.0${u} <${+s+1}.0.0-0`:p&&(i=`>=${s}.${o}.0${u} <${s}.${+o+1}.0-0`),te("xRange return",i),i})},kJ=(t,e)=>(te("replaceStars",t,e),t.trim().replace($e[Ve.STAR],"")),HJ=(t,e)=>(te("replaceGTE0",t,e),t.trim().replace($e[e.includePrerelease?Ve.GTE0PRE:Ve.GTE0],"")),FJ=t=>(e,n,i,a,s,o,r,u,l,c,p,_)=>(Be(i)?n="":Be(a)?n=`>=${i}.0.0${t?"-0":""}`:Be(s)?n=`>=${i}.${a}.0${t?"-0":""}`:o?n=`>=${n}`:n=`>=${n}${t?"-0":""}`,Be(l)?u="":Be(c)?u=`<${+l+1}.0.0-0`:Be(p)?u=`<${l}.${+c+1}.0-0`:_?u=`<=${l}.${c}.${p}-${_}`:t?u=`<${l}.${c}.${+p+1}-0`:u=`<=${u}`,`${n} ${u}`.trim()),YJ=(t,e,n)=>{for(let i=0;i<t.length;i++)if(!t[i].test(e))return!1;if(e.prerelease.length&&!n.includePrerelease){for(let i=0;i<t.length;i++)if(te(t[i].semver),t[i].semver!==Fd.ANY&&t[i].semver.prerelease.length>0){let a=t[i].semver;if(a.major===e.major&&a.minor===e.minor&&a.patch===e.patch)return!0}return!1}return!0}});var wi=h((Ofe,gw)=>{var Ui=Symbol("SemVer ANY"),ro=class{static get ANY(){return Ui}constructor(e,n){if(n=vw(n),e instanceof ro){if(e.loose===!!n.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),qd("comparator",e,n),this.options=n,this.loose=!!n.loose,this.parse(e),this.semver===Ui?this.value="":this.value=this.operator+this.semver.version,qd("comp",this)}parse(e){let n=this.options.loose?mw[yw.COMPARATORLOOSE]:mw[yw.COMPARATOR],i=e.match(n);if(!i)throw new TypeError(`Invalid comparator: ${e}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new Aw(i[2],this.options.loose):this.semver=Ui}toString(){return this.value}test(e){if(qd("Comparator.test",e,this.options.loose),this.semver===Ui||e===Ui)return!0;if(typeof e=="string")try{e=new Aw(e,this.options)}catch{return!1}return Yd(e,this.operator,this.semver,this.options)}intersects(e,n){if(!(e instanceof ro))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Ow(e.value,n).test(this.value):e.operator===""?e.value===""?!0:new Ow(this.value,n).test(e.semver):(n=vw(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("=")||Yd(this.semver,"<",e.semver,n)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Yd(this.semver,">",e.semver,n)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};gw.exports=ro;var vw=fl(),{safeRe:mw,t:yw}=eo(),Yd=kd(),qd=Ii(),Aw=Me(),Ow=ot()});var Di=h((gfe,Nw)=>{var qJ=ot(),jJ=(t,e,n)=>{try{e=new qJ(e,n)}catch{return!1}return e.test(t)};Nw.exports=jJ});var Pw=h((Nfe,Rw)=>{var $J=ot(),KJ=(t,e)=>new $J(t,e).set.map(n=>n.map(i=>i.value).join(" ").trim().split(" "));Rw.exports=KJ});var Mw=h((Rfe,bw)=>{var WJ=Me(),zJ=ot(),XJ=(t,e,n)=>{let i=null,a=null,s=null;try{s=new zJ(e,n)}catch{return null}return t.forEach(o=>{s.test(o)&&(!i||a.compare(o)===-1)&&(i=o,a=new WJ(i,n))}),i};bw.exports=XJ});var Lw=h((Pfe,xw)=>{var JJ=Me(),QJ=ot(),ZJ=(t,e,n)=>{let i=null,a=null,s=null;try{s=new QJ(e,n)}catch{return null}return t.forEach(o=>{s.test(o)&&(!i||a.compare(o)===1)&&(i=o,a=new JJ(i,n))}),i};xw.exports=ZJ});var ww=h((bfe,Cw)=>{var jd=Me(),e9=ot(),Iw=Ci(),t9=(t,e)=>{t=new e9(t,e);let n=new jd("0.0.0");if(t.test(n)||(n=new jd("0.0.0-0"),t.test(n)))return n;n=null;for(let i=0;i<t.set.length;++i){let a=t.set[i],s=null;a.forEach(o=>{let r=new jd(o.semver.version);switch(o.operator){case">":r.prerelease.length===0?r.patch++:r.prerelease.push(0),r.raw=r.format();case"":case">=":(!s||Iw(r,s))&&(s=r);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!n||Iw(n,s))&&(n=s)}return n&&t.test(n)?n:null};Cw.exports=t9});var Dw=h((Mfe,Uw)=>{var r9=ot(),n9=(t,e)=>{try{return new r9(t,e).range||"*"}catch{return null}};Uw.exports=n9});var ml=h((xfe,kw)=>{var o9=Me(),Gw=wi(),{ANY:i9}=Gw,a9=ot(),s9=Di(),Vw=Ci(),Bw=_l(),u9=hl(),l9=Sl(),c9=(t,e,n,i)=>{t=new o9(t,i),e=new a9(e,i);let a,s,o,r,u;switch(n){case">":a=Vw,s=u9,o=Bw,r=">",u=">=";break;case"<":a=Bw,s=l9,o=Vw,r="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s9(t,e,i))return!1;for(let l=0;l<e.set.length;++l){let c=e.set[l],p=null,_=null;if(c.forEach(f=>{f.semver===i9&&(f=new Gw(">=0.0.0")),p=p||f,_=_||f,a(f.semver,p.semver,i)?p=f:o(f.semver,_.semver,i)&&(_=f)}),p.operator===r||p.operator===u||(!_.operator||_.operator===r)&&s(t,_.semver))return!1;if(_.operator===u&&o(t,_.semver))return!1}return!0};kw.exports=c9});var Fw=h((Lfe,Hw)=>{var f9=ml(),p9=(t,e,n)=>f9(t,e,">",n);Hw.exports=p9});var qw=h((Ife,Yw)=>{var d9=ml(),E9=(t,e,n)=>d9(t,e,"<",n);Yw.exports=E9});var Kw=h((Cfe,$w)=>{var jw=ot(),_9=(t,e,n)=>(t=new jw(t,n),e=new jw(e,n),t.intersects(e,n));$w.exports=_9});var zw=h((wfe,Ww)=>{var S9=Di(),h9=nt();Ww.exports=(t,e,n)=>{let i=[],a=null,s=null,o=t.sort((c,p)=>h9(c,p,n));for(let c of o)S9(c,e,n)?(s=c,a||(a=c)):(s&&i.push([a,s]),s=null,a=null);a&&i.push([a,null]);let r=[];for(let[c,p]of i)c===p?r.push(c):!p&&c===o[0]?r.push("*"):p?c===o[0]?r.push(`<=${p}`):r.push(`${c} - ${p}`):r.push(`>=${c}`);let u=r.join(" || "),l=typeof e.raw=="string"?e.raw:String(e);return u.length<l.length?u:e}});var tU=h((Ufe,eU)=>{var Xw=ot(),Kd=wi(),{ANY:$d}=Kd,Vi=Di(),Wd=nt(),T9=(t,e,n={})=>{if(t===e)return!0;t=new Xw(t,n),e=new Xw(e,n);let i=!1;e:for(let a of t.set){for(let s of e.set){let o=m9(a,s,n);if(i=i||o!==null,o)continue e}if(i)return!1}return!0},v9=[new Kd(">=0.0.0-0")],Jw=[new Kd(">=0.0.0")],m9=(t,e,n)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===$d){if(e.length===1&&e[0].semver===$d)return!0;n.includePrerelease?t=v9:t=Jw}if(e.length===1&&e[0].semver===$d){if(n.includePrerelease)return!0;e=Jw}let i=new Set,a,s;for(let f of t)f.operator===">"||f.operator===">="?a=Qw(a,f,n):f.operator==="<"||f.operator==="<="?s=Zw(s,f,n):i.add(f.semver);if(i.size>1)return null;let o;if(a&&s){if(o=Wd(a.semver,s.semver,n),o>0)return null;if(o===0&&(a.operator!==">="||s.operator!=="<="))return null}for(let f of i){if(a&&!Vi(f,String(a),n)||s&&!Vi(f,String(s),n))return null;for(let S of e)if(!Vi(f,String(S),n))return!1;return!0}let r,u,l,c,p=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1,_=a&&!n.includePrerelease&&a.semver.prerelease.length?a.semver:!1;p&&p.prerelease.length===1&&s.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let f of e){if(c=c||f.operator===">"||f.operator===">=",l=l||f.operator==="<"||f.operator==="<=",a){if(_&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===_.major&&f.semver.minor===_.minor&&f.semver.patch===_.patch&&(_=!1),f.operator===">"||f.operator===">="){if(r=Qw(a,f,n),r===f&&r!==a)return!1}else if(a.operator===">="&&!Vi(a.semver,String(f),n))return!1}if(s){if(p&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===p.major&&f.semver.minor===p.minor&&f.semver.patch===p.patch&&(p=!1),f.operator==="<"||f.operator==="<="){if(u=Zw(s,f,n),u===f&&u!==s)return!1}else if(s.operator==="<="&&!Vi(s.semver,String(f),n))return!1}if(!f.operator&&(s||a)&&o!==0)return!1}return!(a&&l&&!s&&o!==0||s&&c&&!a&&o!==0||_||p)},Qw=(t,e,n)=>{if(!t)return e;let i=Wd(t.semver,e.semver,n);return i>0?t:i<0||e.operator===">"&&t.operator===">="?e:t},Zw=(t,e,n)=>{if(!t)return e;let i=Wd(t.semver,e.semver,n);return i<0?t:i>0||e.operator==="<"&&t.operator==="<="?e:t};eU.exports=T9});var iU=h((Dfe,oU)=>{var zd=eo(),rU=Li(),y9=Me(),nU=Vd(),A9=Kr(),O9=MC(),g9=LC(),N9=wC(),R9=VC(),P9=GC(),b9=HC(),M9=YC(),x9=jC(),L9=nt(),I9=zC(),C9=JC(),w9=El(),U9=tw(),D9=nw(),V9=Ci(),B9=_l(),G9=Bd(),k9=Gd(),H9=Sl(),F9=hl(),Y9=kd(),q9=pw(),j9=wi(),$9=ot(),K9=Di(),W9=Pw(),z9=Mw(),X9=Lw(),J9=ww(),Q9=Dw(),Z9=ml(),e7=Fw(),t7=qw(),r7=Kw(),n7=zw(),o7=tU();oU.exports={parse:A9,valid:O9,clean:g9,inc:N9,diff:R9,major:P9,minor:b9,patch:M9,prerelease:x9,compare:L9,rcompare:I9,compareLoose:C9,compareBuild:w9,sort:U9,rsort:D9,gt:V9,lt:B9,eq:G9,neq:k9,gte:H9,lte:F9,cmp:Y9,coerce:q9,Comparator:j9,Range:$9,satisfies:K9,toComparators:W9,maxSatisfying:z9,minSatisfying:X9,minVersion:J9,validRange:Q9,outside:Z9,gtr:e7,ltr:t7,intersects:r7,simplifyRange:n7,subset:o7,SemVer:y9,re:zd.re,src:zd.src,tokens:zd.t,SEMVER_SPEC_VERSION:rU.SEMVER_SPEC_VERSION,RELEASE_TYPES:rU.RELEASE_TYPES,compareIdentifiers:nU.compareIdentifiers,rcompareIdentifiers:nU.rcompareIdentifiers}});function a7(t){var e=decodeURIComponent(t).split(":");if(e.length!==4)return null;var n=sU(e,4),i=n[0],a=n[1],s=n[3],o=i.padStart(32,"0"),r=a.padStart(16,"0"),u=i7.test(s)?parseInt(s,16)&1:1;return{traceId:o,spanId:r,isRemote:!0,traceFlags:u}}var aU,sU,Xd,yl,uU,i7,lU=m(()=>{b();K();aU=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},sU=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Xd="uber-trace-id",yl="uberctx",uU=function(){function t(e){typeof e=="string"?(this._jaegerTraceHeader=e,this._jaegerBaggageHeaderPrefix=yl):(this._jaegerTraceHeader=e?.customTraceHeader||Xd,this._jaegerBaggageHeaderPrefix=e?.customBaggageHeaderPrefix||yl)}return t.prototype.inject=function(e,n,i){var a,s,o=X.getSpanContext(e),r=st.getBaggage(e);if(o&&be(e)===!1){var u="0"+(o.traceFlags||J.NONE).toString(16);i.set(n,this._jaegerTraceHeader,o.traceId+":"+o.spanId+":0:"+u)}if(r)try{for(var l=aU(r.getAllEntries()),c=l.next();!c.done;c=l.next()){var p=sU(c.value,2),_=p[0],f=p[1];i.set(n,this._jaegerBaggageHeaderPrefix+"-"+_,encodeURIComponent(f.value))}}catch(S){a={error:S}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(a)throw a.error}}},t.prototype.extract=function(e,n,i){var a,s,o=this,r,u=i.get(n,this._jaegerTraceHeader),l=Array.isArray(u)?u[0]:u,c=i.keys(n).filter(function(A){return A.startsWith(o._jaegerBaggageHeaderPrefix+"-")}).map(function(A){var O=i.get(n,A);return{key:A.substring(o._jaegerBaggageHeaderPrefix.length+1),value:Array.isArray(O)?O[0]:O}}),p=e;if(typeof l=="string"){var _=a7(l);_&&(p=X.setSpanContext(p,_))}if(c.length===0)return p;var f=(r=st.getBaggage(e))!==null&&r!==void 0?r:st.createBaggage();try{for(var S=aU(c),v=S.next();!v.done;v=S.next()){var T=v.value;T.value!==void 0&&(f=f.setEntry(T.key,{value:decodeURIComponent(T.value)}))}}catch(A){a={error:A}}finally{try{v&&!v.done&&(s=S.return)&&s.call(S)}finally{if(a)throw a.error}}return p=st.setBaggage(p,f),p},t.prototype.fields=function(){return[this._jaegerTraceHeader]},t}(),i7=/^[0-9a-f]{1,2}$/i});var cU={};it(cU,{JaegerPropagator:()=>uU,UBER_BAGGAGE_HEADER_PREFIX:()=>yl,UBER_TRACE_ID_HEADER:()=>Xd});var fU=m(()=>{lU()});var EU=h(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});gl.NodeTracerProvider=void 0;var pU=UI(),Al=(qI(),Y(YI)),dU=(xi(),Y(wd)),s7=iU(),u7=(fU(),Y(cU)),Ol=class extends dU.BasicTracerProvider{constructor(e={}){super(e)}register(e={}){if(e.contextManager===void 0){let n=s7.gte(process.version,"14.8.0")?pU.AsyncLocalStorageContextManager:pU.AsyncHooksContextManager;e.contextManager=new n,e.contextManager.enable()}super.register(e)}};gl.NodeTracerProvider=Ol;Ol._registeredPropagators=new Map([...dU.BasicTracerProvider._registeredPropagators,["b3",()=>new Al.B3Propagator({injectEncoding:Al.B3InjectEncoding.SINGLE_HEADER})],["b3multi",()=>new Al.B3Propagator({injectEncoding:Al.B3InjectEncoding.MULTI_HEADER})],["jaeger",()=>new u7.JaegerPropagator]])});var _U=h(q=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});q.Tracer=q.TraceIdRatioBasedSampler=q.Span=q.SimpleSpanProcessor=q.SamplingDecision=q.RandomIdGenerator=q.ParentBasedSampler=q.NoopSpanProcessor=q.InMemorySpanExporter=q.ForceFlushState=q.ConsoleSpanExporter=q.BatchSpanProcessor=q.BasicTracerProvider=q.AlwaysOnSampler=q.AlwaysOffSampler=q.NodeTracerProvider=void 0;var l7=EU();Object.defineProperty(q,"NodeTracerProvider",{enumerable:!0,get:function(){return l7.NodeTracerProvider}});var Ge=(xi(),Y(wd));Object.defineProperty(q,"AlwaysOffSampler",{enumerable:!0,get:function(){return Ge.AlwaysOffSampler}});Object.defineProperty(q,"AlwaysOnSampler",{enumerable:!0,get:function(){return Ge.AlwaysOnSampler}});Object.defineProperty(q,"BasicTracerProvider",{enumerable:!0,get:function(){return Ge.BasicTracerProvider}});Object.defineProperty(q,"BatchSpanProcessor",{enumerable:!0,get:function(){return Ge.BatchSpanProcessor}});Object.defineProperty(q,"ConsoleSpanExporter",{enumerable:!0,get:function(){return Ge.ConsoleSpanExporter}});Object.defineProperty(q,"ForceFlushState",{enumerable:!0,get:function(){return Ge.ForceFlushState}});Object.defineProperty(q,"InMemorySpanExporter",{enumerable:!0,get:function(){return Ge.InMemorySpanExporter}});Object.defineProperty(q,"NoopSpanProcessor",{enumerable:!0,get:function(){return Ge.NoopSpanProcessor}});Object.defineProperty(q,"ParentBasedSampler",{enumerable:!0,get:function(){return Ge.ParentBasedSampler}});Object.defineProperty(q,"RandomIdGenerator",{enumerable:!0,get:function(){return Ge.RandomIdGenerator}});Object.defineProperty(q,"SamplingDecision",{enumerable:!0,get:function(){return Ge.SamplingDecision}});Object.defineProperty(q,"SimpleSpanProcessor",{enumerable:!0,get:function(){return Ge.SimpleSpanProcessor}});Object.defineProperty(q,"Span",{enumerable:!0,get:function(){return Ge.Span}});Object.defineProperty(q,"TraceIdRatioBasedSampler",{enumerable:!0,get:function(){return Ge.TraceIdRatioBasedSampler}});Object.defineProperty(q,"Tracer",{enumerable:!0,get:function(){return Ge.Tracer}})});var SU=h(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.OTLPTraceExporter=void 0;var c7=pd(),f7=(Bu(),Y(ad)),Jd=class extends c7.OTLPGRPCExporterNodeBase{constructor(e={}){super(e,f7.ProtobufTraceSerializer,"TraceExportService","/opentelemetry.proto.collector.trace.v1.TraceService/Export","TRACES")}};Nl.OTLPTraceExporter=Jd});var hU=h(zr=>{"use strict";var p7=zr&&zr.__createBinding||(Object.create?function(t,e,n,i){i===void 0&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]}),d7=zr&&zr.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&p7(e,t,n)};Object.defineProperty(zr,"__esModule",{value:!0});d7(SU(),zr)});var AU=Ke(Fl(),1),OU=Ke(oo(),1),gU=Ke(ES(),1),NU=Ke(LU(),1),RU=Ke(IU(),1),PU=Ke(FO(),1);import _7 from"path";import S7 from"http";import{Session as h7}from"inspector/promises";import{createRequire as eY}from"module";var ic=Ke(Fl(),1);import ia from"path";import oc from"os";var tY=eY(import.meta.url);function YO(t){let e=tY.resolve(t),n=ia.dirname(e);for(;!ic.default.existsSync(ia.join(n,"package.json"));)n=ia.dirname(n);let i=ic.default.readFileSync(ia.join(n,"package.json"),"utf-8");return JSON.parse(i)}var aa=class{constructor(e){this.instance=e;let n=YO("@sentio/sdk"),i=YO("@sentio/runtime");console.log("Runtime version:",i.version,"SDK version:",n.version);let a=n.version.split(".");this.sdkMinorVersion=parseInt(a[1])}instance;sdkMinorVersion;async getConfig(e,n){let i=await this.instance.getConfig(e,n);if(i.executionConfig=tE.fromPartial(Pl.execution),i.contractConfigs)for(let a of i.contractConfigs)a.aptosCallConfigs&&(a.moveCallConfigs=a.aptosCallConfigs),a.aptosEventConfigs&&(a.moveEventConfigs=a.aptosEventConfigs);return i}async start(e,n){return await this.instance.start(e,n)}async stop(e,n){return await this.instance.stop(e,n)}async processBindings(e,n){Pl.execution.sequential&&(e.bindings=e.bindings.sort(rY));for(let i of e.bindings)this.adjustDataBinding(i);try{let i=await this.instance.processBindings(e,n);return this.adjustResult(i.result),!i.configUpdated&&i.result?.states?.configUpdated&&(i.configUpdated=i.result?.states?.configUpdated),i}catch(i){throw this.sdkMinorVersion<=16&&(i.code===oc.constants.errno.ECONNRESET||i.code===oc.constants.errno.ECONNREFUSED||i.code===oc.constants.errno.ECONNABORTED)&&process.exit(1),i}}async*processBindingsStream(e,n){yield*this.instance.processBindingsStream(e,n)}async*preprocessBindingsStream(e,n){yield*this.instance.preprocessBindingsStream(e,n)}adjustResult(e){}adjustDataBinding(e){switch(e.handlerType){case 6:e.data?.aptEvent;break;case 0:e.data?.ethBlock&&e.data.raw.length===0&&(e.data.raw=new TextEncoder().encode(JSON.stringify(e.data.ethBlock.block)));break;default:break}}};function rY(t,e){let n=qO(t)||new Date(0),i=qO(e)||new Date(0),a=n.getTime()-i.getTime();return a!==0?a:jO(t)-jO(e)}function qO(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 jO(t){return t.data?.ethLog?.log?.logIndex||t.data?.ethTransaction?.transaction?.transactionIndex||t.data?.ethBlock?.block?.number||t.data?.ethTrace?.trace?.transactionPosition}import("process").then(t=>t.stdout.write(""));var gt=Ke(i0(),1);function a0(t,e){let n={transform:a=>{let s=[];typeof a.message=="object"?s.push(JSON.stringify(a.message)):s.push(a.message);let o=a[Symbol.for("splat")];if(o)for(let r in o){let u=o[r];typeof u=="object"?s.push(JSON.stringify(u)):s.push(u)}return a.message=s.join(" "),a}},i=(0,gt.createLogger)({format:gt.format.combine(gt.format.timestamp({format:"YYYY-MM-DDTHH:mm:ss.SSSZ"}),n,gt.format.errors({stack:!0}),t?gt.format.json():gt.format.simple()),level:e?"debug":"info",transports:[new gt.transports.Console]});console.log=(...a)=>i.info.call(i,...a),console.info=(...a)=>i.info.call(i,...a),console.warn=(...a)=>i.warn.call(i,...a),console.error=(...a)=>i.error.call(i,...a),console.debug=(...a)=>i.debug.call(i,...a)}import("process").then(t=>t.stdout.write(""));ks();wn();var TU=Ke(bI(),1),vU=Ke(II(),1),Qd=Ke(_U(),1),mU=Ke(hU(),1);xi();b();async function yU(t){t&&g.setLogger(new aE,at.DEBUG);let e=await Gs.detect(),n=new Ti({resource:e,readers:[new ru({exporter:new TU.OTLPMetricExporter}),new vU.PrometheusExporter({port:4041})]}),i=new Qd.NodeTracerProvider({resource:e}),a=new mU.OTLPTraceExporter,s=new mr(a);i.addSpanProcessor(s),i.register(),ki.setGlobalMeterProvider(n),X.setGlobalTracerProvider(i),["SIGINT","SIGTERM"].forEach(o=>{process.on(o,()=>E7())}),ki.getMeter("processor").createGauge("up").record(1)}async function E7(){let t=X.getTracerProvider();if(t instanceof lE){let n=t.getDelegate();n instanceof Qd.NodeTracerProvider&&n.shutdown().catch(console.error)}let e=ki.getMeterProvider();e instanceof Ti&&e.shutdown().catch(console.error)}import("process").then(t=>t.stdout.write(""));var T7=[{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},{name:"start-action-server",type:Boolean,defaultValue:!1}],ke=(0,gU.default)(T7,{partial:!0}),v7=process.env.LOG_LEVEL?.toUpperCase();a0(ke["log-format"]==="json",v7==="debug"?!0:ke.debug);console.debug("Starting with",ke.target);await yU(ke.debug);Error.stackTraceLimit=20;var m7=_7.resolve(ke["chains-config"]),y7=AU.default.readJsonSync(m7),A7=process.env.OVERRIDE_CONCURRENCY?parseInt(process.env.OVERRIDE_CONCURRENCY):void 0,O7=process.env.OVERRIDE_BATCH_COUNT?parseInt(process.env.OVERRIDE_BATCH_COUNT):void 0;yr.INSTANCE.concurrency=A7??ke.concurrency;yr.INSTANCE.batchCount=O7??ke["batch-count"];yr.INSTANCE.chainQueryAPI=ke["chainquery-server"];yr.INSTANCE.priceFeedAPI=ke["pricefeed-server"];for(let[t,e]of Object.entries(y7)){let n=e;if(n.ChainServer)yr.INSTANCE.chainServer.set(t,n.ChainServer);else{let i=n.Https?.[0];i?yr.INSTANCE.chainServer.set(t,i):console.error("not valid config for chain",t)}}console.debug("Starting Server",ke);var Bi,no;if(ke.startActionServer){let t=eE.INSTANCE;t.configure(Zd.create()).then(()=>t.startServer(ke.port)).catch(e=>{console.error("Error starting action server",e)})}else{Bi=(0,NU.createServer)({"grpc.max_send_message_length":384*1024*1024,"grpc.max_receive_message_length":384*1024*1024,"grpc.default_compression_algorithm":OU.compressionAlgorithms.gzip}).use((0,PU.openTelemetryServerMiddleware)()).use(RU.errorDetailsServerMiddleware),no=new pE(async()=>{let e=await import(ke.target);return console.debug("Module loaded",e),e},Bi.shutdown);let t=new aa(no);Bi.add(rE,t),Bi.listen("0.0.0.0:"+ke.port),console.log("Processor Server Started at:",ke.port)}var bU=4040,g7=S7.createServer(async function(t,e){if(t.url){let n=new URL(t.url,`http://${t.headers.host}`),i=n.searchParams;switch(n.pathname){case"/profile":{try{let a=parseInt(i.get("t")||"1000",10)||1e3,s=new h7;s.connect(),await s.post("Profiler.enable"),await s.post("Profiler.start"),await new Promise(r=>setTimeout(r,a));let{profile:o}=await s.post("Profiler.stop");e.writeHead(200,{"Content-Type":"application/json"}),e.write(JSON.stringify(o)),s.disconnect()}catch{e.writeHead(500)}break}default:e.writeHead(404)}}else e.writeHead(404);e.end()}).listen(bU);console.log("Metric Server Started at:",bU);process.on("SIGINT",function(){N7(0)}).on("uncaughtException",t=>{console.error("Uncaught Exception, please checking if await is properly used",t),no&&(no.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),no&&(no.unhandled=t))});function N7(t){Bi?.forceShutdown(),console.log("RPC server shut down"),g7.close(function(){console.log("Http server shut down"),process.exit(t)})}import("process").then(t=>t.stdout.write(""));
|
60
60
|
/*! Bundled license information:
|
61
61
|
|
62
62
|
safe-buffer/index.js:
|