UNPKG

botframework-connector

Version:

Bot Connector is autorest generated connector client.

35 lines (31 loc) 1.3 MB
'use strict'; var u$e = require('botframework-schema'); var botbuilderStdlib = require('botbuilder-stdlib'); function _interopNamespace(e) { if (e && e.__esModule) return e; var n = Object.create(null); if (e) { Object.keys(e).forEach(function (k) { if (k !== 'default') { var d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: function () { return e[k]; } }); } }); } n.default = e; return Object.freeze(n); } var u$e__namespace = /*#__PURE__*/_interopNamespace(u$e); var Nz=Object.create;var uh=Object.defineProperty,kz=Object.defineProperties,Pz=Object.getOwnPropertyDescriptor,Bz=Object.getOwnPropertyDescriptors,Uz=Object.getOwnPropertyNames,F0=Object.getOwnPropertySymbols,Dz=Object.getPrototypeOf,Iw=Object.prototype.hasOwnProperty,Cx=Object.prototype.propertyIsEnumerable;var Zl=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),Lz=t=>{throw TypeError(t)},$e=Math.pow,Sx=(t,e,r)=>e in t?uh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,oe=(t,e)=>{for(var r in e||(e={}))Iw.call(e,r)&&Sx(t,r,e[r]);if(F0)for(var r of F0(e))Cx.call(e,r)&&Sx(t,r,e[r]);return t},Me=(t,e)=>kz(t,Bz(e));var Ns=(t,e)=>{var r={};for(var n in t)Iw.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&F0)for(var n of F0(t))e.indexOf(n)<0&&Cx.call(t,n)&&(r[n]=t[n]);return r};var Ur=(t,e)=>()=>(t&&(e=t(t=0)),e);var ne=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Cr=(t,e)=>{for(var r in e)uh(t,r,{get:e[r],enumerable:!0});},z0=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Uz(e))!Iw.call(t,i)&&i!==r&&uh(t,i,{get:()=>e[i],enumerable:!(n=Pz(e,i))||n.enumerable});return t},Jl=(t,e,r)=>(z0(t,e,"default"),r),on=(t,e,r)=>(r=t!=null?Nz(Dz(t)):{},z0(e||!t||!t.__esModule?uh(r,"default",{value:t,enumerable:!0}):r,t)),Dr=t=>z0(uh({},"__esModule",{value:!0}),t);var re=(t,e,r)=>new Promise((n,i)=>{var o=c=>{try{s(r.next(c));}catch(u){i(u);}},a=c=>{try{s(r.throw(c));}catch(u){i(u);}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,a);s((r=r.apply(t,e)).next());}),$c=function(t,e){this[0]=t,this[1]=e;},Mw=(t,e,r)=>{var n=(a,s,c,u)=>{try{var l=r[a](s),w=(s=l.value)instanceof $c,T=l.done;Promise.resolve(w?s[0]:s).then(x=>w?n(a==="return"?a:"next",s[1]?{done:x.done,value:x.value}:x,c,u):c({value:x,done:T})).catch(x=>n("throw",x,c,u));}catch(x){u(x);}},i=a=>o[a]=s=>new Promise((c,u)=>n(a,s,c,u)),o={};return r=r.apply(t,e),o[Zl("asyncIterator")]=()=>o,i("next"),i("throw"),i("return"),o},Ow=t=>{var e=t[Zl("asyncIterator")],r=!1,n,i={};return e==null?(e=t[Zl("iterator")](),n=o=>i[o]=a=>e[o](a)):(e=e.call(t),n=o=>i[o]=a=>{if(r){if(r=!1,o==="throw")throw a;return a}return r=!0,{done:!1,value:new $c(new Promise(s=>{var c=e[o](a);c instanceof Object||Lz("Object expected"),s(c);}),1)}}),i[Zl("iterator")]=()=>i,n("next"),"throw"in e?n("throw"):i.throw=o=>{throw o},"return"in e&&n("return"),i},H0=(t,e,r)=>(e=t[Zl("asyncIterator")])?e.call(t):(t=t[Zl("iterator")](),e={},r=(n,i)=>(i=t[n])&&(e[n]=o=>new Promise((a,s,c)=>(o=i.call(t,o),c=o.done,Promise.resolve(o.value).then(u=>a({value:u,done:c}),s)))),r("next"),r("return"),e);var m=Ur(()=>{});var y=Ur(()=>{on(kn(),1);});var Ix=ne((P0e,xx)=>{v();m();y();g();var Lr=xx.exports={},Yo,Zo;function Nw(){throw new Error("setTimeout has not been defined")}function kw(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Yo=setTimeout:Yo=Nw;}catch(t){Yo=Nw;}try{typeof clearTimeout=="function"?Zo=clearTimeout:Zo=kw;}catch(t){Zo=kw;}})();function Ax(t){if(Yo===setTimeout)return setTimeout(t,0);if((Yo===Nw||!Yo)&&setTimeout)return Yo=setTimeout,setTimeout(t,0);try{return Yo(t,0)}catch(e){try{return Yo.call(null,t,0)}catch(r){return Yo.call(this,t,0)}}}function Fz(t){if(Zo===clearTimeout)return clearTimeout(t);if((Zo===kw||!Zo)&&clearTimeout)return Zo=clearTimeout,clearTimeout(t);try{return Zo(t)}catch(e){try{return Zo.call(null,t)}catch(r){return Zo.call(this,t)}}}var Ua=[],Xl=!1,Vc,j0=-1;function zz(){!Xl||!Vc||(Xl=!1,Vc.length?Ua=Vc.concat(Ua):j0=-1,Ua.length&&Tx());}function Tx(){if(!Xl){var t=Ax(zz);Xl=!0;for(var e=Ua.length;e;){for(Vc=Ua,Ua=[];++j0<e;)Vc&&Vc[j0].run();j0=-1,e=Ua.length;}Vc=null,Xl=!1,Fz(t);}}Lr.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];Ua.push(new Rx(t,e)),Ua.length===1&&!Xl&&Ax(Tx);};function Rx(t,e){this.fun=t,this.array=e;}Rx.prototype.run=function(){this.fun.apply(null,this.array);};Lr.title="browser";Lr.browser=!0;Lr.env={};Lr.argv=[];Lr.version="";Lr.versions={};function Da(){}Lr.on=Da;Lr.addListener=Da;Lr.once=Da;Lr.off=Da;Lr.removeListener=Da;Lr.removeAllListeners=Da;Lr.emit=Da;Lr.prependListener=Da;Lr.prependOnceListener=Da;Lr.listeners=function(t){return []};Lr.binding=function(t){throw new Error("process.binding is not supported")};Lr.cwd=function(){return "/"};Lr.chdir=function(t){throw new Error("process.chdir is not supported")};Lr.umask=function(){return 0};});var N,g=Ur(()=>{N=on(Ix(),1);});var Nx=ne($0=>{v();m();y();g();$0.byteLength=jz;$0.toByteArray=Vz;$0.fromByteArray=Wz;var Jo=[],Mi=[],Hz=typeof Uint8Array!="undefined"?Uint8Array:Array,Pw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Gc=0,Mx=Pw.length;Gc<Mx;++Gc)Jo[Gc]=Pw[Gc],Mi[Pw.charCodeAt(Gc)]=Gc;var Gc,Mx;Mi[45]=62;Mi[95]=63;function Ox(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return [r,n]}function jz(t){var e=Ox(t),r=e[0],n=e[1];return (r+n)*3/4-n}function $z(t,e,r){return (e+r)*3/4-r}function Vz(t){var e,r=Ox(t),n=r[0],i=r[1],o=new Hz($z(t,n,i)),a=0,s=i>0?n-4:n,c;for(c=0;c<s;c+=4)e=Mi[t.charCodeAt(c)]<<18|Mi[t.charCodeAt(c+1)]<<12|Mi[t.charCodeAt(c+2)]<<6|Mi[t.charCodeAt(c+3)],o[a++]=e>>16&255,o[a++]=e>>8&255,o[a++]=e&255;return i===2&&(e=Mi[t.charCodeAt(c)]<<2|Mi[t.charCodeAt(c+1)]>>4,o[a++]=e&255),i===1&&(e=Mi[t.charCodeAt(c)]<<10|Mi[t.charCodeAt(c+1)]<<4|Mi[t.charCodeAt(c+2)]>>2,o[a++]=e>>8&255,o[a++]=e&255),o}function Gz(t){return Jo[t>>18&63]+Jo[t>>12&63]+Jo[t>>6&63]+Jo[t&63]}function Kz(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push(Gz(n));return i.join("")}function Wz(t){for(var e,r=t.length,n=r%3,i=[],o=16383,a=0,s=r-n;a<s;a+=o)i.push(Kz(t,a,a+o>s?s:a+o));return n===1?(e=t[r-1],i.push(Jo[e>>2]+Jo[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(Jo[e>>10]+Jo[e>>4&63]+Jo[e<<2&63]+"=")),i.join("")}});var kx=ne(Bw=>{v();m();y();g();Bw.read=function(t,e,r,n,i){var o,a,s=i*8-n-1,c=(1<<s)-1,u=c>>1,l=-7,w=r?i-1:0,T=r?-1:1,x=t[e+w];for(w+=T,o=x&(1<<-l)-1,x>>=-l,l+=s;l>0;o=o*256+t[e+w],w+=T,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=a*256+t[e+w],w+=T,l-=8);if(o===0)o=1-u;else {if(o===c)return a?NaN:(x?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-u;}return (x?-1:1)*a*Math.pow(2,o-n)};Bw.write=function(t,e,r,n,i,o){var a,s,c,u=o*8-i-1,l=(1<<u)-1,w=l>>1,T=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=n?0:o-1,I=n?1:-1,k=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),a+w>=1?e+=T/c:e+=T*Math.pow(2,1-w),e*c>=2&&(a++,c/=2),a+w>=l?(s=0,a=l):a+w>=1?(s=(e*c-1)*Math.pow(2,i),a=a+w):(s=e*Math.pow(2,w-1)*Math.pow(2,i),a=0));i>=8;t[r+x]=s&255,x+=I,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;t[r+x]=a&255,x+=I,a/=256,u-=8);t[r+x-I]|=k*128;};});var kn=ne(rf=>{v();m();y();g();var Uw=Nx(),ef=kx(),Px=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;rf.Buffer=Ee;rf.SlowBuffer=eH;rf.INSPECT_MAX_BYTES=50;var V0=2147483647;rf.kMaxLength=V0;Ee.TYPED_ARRAY_SUPPORT=Yz();!Ee.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Yz(){try{let t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(t){return !1}}Object.defineProperty(Ee.prototype,"parent",{enumerable:!0,get:function(){if(Ee.isBuffer(this))return this.buffer}});Object.defineProperty(Ee.prototype,"offset",{enumerable:!0,get:function(){if(Ee.isBuffer(this))return this.byteOffset}});function La(t){if(t>V0)throw new RangeError('The value "'+t+'" is invalid for option "size"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,Ee.prototype),e}function Ee(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Fw(t)}return Lx(t,e,r)}Ee.poolSize=8192;function Lx(t,e,r){if(typeof t=="string")return Jz(t,e);if(ArrayBuffer.isView(t))return Xz(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Xo(t,ArrayBuffer)||t&&Xo(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Xo(t,SharedArrayBuffer)||t&&Xo(t.buffer,SharedArrayBuffer)))return Lw(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return Ee.from(n,e,r);let i=Qz(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return Ee.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}Ee.from=function(t,e,r){return Lx(t,e,r)};Object.setPrototypeOf(Ee.prototype,Uint8Array.prototype);Object.setPrototypeOf(Ee,Uint8Array);function qx(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function Zz(t,e,r){return qx(t),t<=0?La(t):e!==void 0?typeof r=="string"?La(t).fill(e,r):La(t).fill(e):La(t)}Ee.alloc=function(t,e,r){return Zz(t,e,r)};function Fw(t){return qx(t),La(t<0?0:zw(t)|0)}Ee.allocUnsafe=function(t){return Fw(t)};Ee.allocUnsafeSlow=function(t){return Fw(t)};function Jz(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!Ee.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let r=Fx(t,e)|0,n=La(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function Dw(t){let e=t.length<0?0:zw(t.length)|0,r=La(e);for(let n=0;n<e;n+=1)r[n]=t[n]&255;return r}function Xz(t){if(Xo(t,Uint8Array)){let e=new Uint8Array(t);return Lw(e.buffer,e.byteOffset,e.byteLength)}return Dw(t)}function Lw(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,Ee.prototype),n}function Qz(t){if(Ee.isBuffer(t)){let e=zw(t.length)|0,r=La(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||jw(t.length)?La(0):Dw(t);if(t.type==="Buffer"&&Array.isArray(t.data))return Dw(t.data)}function zw(t){if(t>=V0)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+V0.toString(16)+" bytes");return t|0}function eH(t){return +t!=t&&(t=0),Ee.alloc(+t)}Ee.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==Ee.prototype};Ee.compare=function(e,r){if(Xo(e,Uint8Array)&&(e=Ee.from(e,e.offset,e.byteLength)),Xo(r,Uint8Array)&&(r=Ee.from(r,r.offset,r.byteLength)),!Ee.isBuffer(e)||!Ee.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;let n=e.length,i=r.length;for(let o=0,a=Math.min(n,i);o<a;++o)if(e[o]!==r[o]){n=e[o],i=r[o];break}return n<i?-1:i<n?1:0};Ee.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return !0;default:return !1}};Ee.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return Ee.alloc(0);let n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;let i=Ee.allocUnsafe(r),o=0;for(n=0;n<e.length;++n){let a=e[n];if(Xo(a,Uint8Array))o+a.length>i.length?(Ee.isBuffer(a)||(a=Ee.from(a)),a.copy(i,o)):Uint8Array.prototype.set.call(i,a,o);else if(Ee.isBuffer(a))a.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=a.length;}return i};function Fx(t,e){if(Ee.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Xo(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return qw(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Yx(t).length;default:if(i)return n?-1:qw(t).length;e=(""+e).toLowerCase(),i=!0;}}Ee.byteLength=Fx;function tH(t,e,r){let n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return "";for(t||(t="utf8");;)switch(t){case"hex":return fH(this,e,r);case"utf8":case"utf-8":return Hx(this,e,r);case"ascii":return uH(this,e,r);case"latin1":case"binary":return lH(this,e,r);case"base64":return sH(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return dH(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0;}}Ee.prototype._isBuffer=!0;function Kc(t,e,r){let n=t[e];t[e]=t[r],t[r]=n;}Ee.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<e;r+=2)Kc(this,r,r+1);return this};Ee.prototype.swap32=function(){let e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<e;r+=4)Kc(this,r,r+3),Kc(this,r+1,r+2);return this};Ee.prototype.swap64=function(){let e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<e;r+=8)Kc(this,r,r+7),Kc(this,r+1,r+6),Kc(this,r+2,r+5),Kc(this,r+3,r+4);return this};Ee.prototype.toString=function(){let e=this.length;return e===0?"":arguments.length===0?Hx(this,0,e):tH.apply(this,arguments)};Ee.prototype.toLocaleString=Ee.prototype.toString;Ee.prototype.equals=function(e){if(!Ee.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:Ee.compare(this,e)===0};Ee.prototype.inspect=function(){let e="",r=rf.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};Px&&(Ee.prototype[Px]=Ee.prototype.inspect);Ee.prototype.compare=function(e,r,n,i,o){if(Xo(e,Uint8Array)&&(e=Ee.from(e,e.offset,e.byteLength)),!Ee.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return -1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;let a=o-i,s=n-r,c=Math.min(a,s),u=this.slice(i,o),l=e.slice(r,n);for(let w=0;w<c;++w)if(u[w]!==l[w]){a=u[w],s=l[w];break}return a<s?-1:s<a?1:0};function zx(t,e,r,n,i){if(t.length===0)return -1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,jw(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return -1;r=t.length-1;}else if(r<0)if(i)r=0;else return -1;if(typeof e=="string"&&(e=Ee.from(e,n)),Ee.isBuffer(e))return e.length===0?-1:Bx(t,e,r,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):Bx(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Bx(t,e,r,n,i){let o=1,a=t.length,s=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return -1;o=2,a/=2,s/=2,r/=2;}function c(l,w){return o===1?l[w]:l.readUInt16BE(w*o)}let u;if(i){let l=-1;for(u=r;u<a;u++)if(c(t,u)===c(e,l===-1?0:u-l)){if(l===-1&&(l=u),u-l+1===s)return l*o}else l!==-1&&(u-=u-l),l=-1;}else for(r+s>a&&(r=a-s),u=r;u>=0;u--){let l=!0;for(let w=0;w<s;w++)if(c(t,u+w)!==c(e,w)){l=!1;break}if(l)return u}return -1}Ee.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};Ee.prototype.indexOf=function(e,r,n){return zx(this,e,r,n,!0)};Ee.prototype.lastIndexOf=function(e,r,n){return zx(this,e,r,n,!1)};function rH(t,e,r,n){r=Number(r)||0;let i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;let o=e.length;n>o/2&&(n=o/2);let a;for(a=0;a<n;++a){let s=parseInt(e.substr(a*2,2),16);if(jw(s))return a;t[r+a]=s;}return a}function nH(t,e,r,n){return G0(qw(e,t.length-r),t,r,n)}function iH(t,e,r,n){return G0(yH(e),t,r,n)}function oH(t,e,r,n){return G0(Yx(e),t,r,n)}function aH(t,e,r,n){return G0(gH(e,t.length-r),t,r,n)}Ee.prototype.write=function(e,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let o=this.length-r;if((n===void 0||n>o)&&(n=o),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let a=!1;for(;;)switch(i){case"hex":return rH(this,e,r,n);case"utf8":case"utf-8":return nH(this,e,r,n);case"ascii":case"latin1":case"binary":return iH(this,e,r,n);case"base64":return oH(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return aH(this,e,r,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0;}};Ee.prototype.toJSON=function(){return {type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function sH(t,e,r){return e===0&&r===t.length?Uw.fromByteArray(t):Uw.fromByteArray(t.slice(e,r))}function Hx(t,e,r){r=Math.min(t.length,r);let n=[],i=e;for(;i<r;){let o=t[i],a=null,s=o>239?4:o>223?3:o>191?2:1;if(i+s<=r){let c,u,l,w;switch(s){case 1:o<128&&(a=o);break;case 2:c=t[i+1],(c&192)===128&&(w=(o&31)<<6|c&63,w>127&&(a=w));break;case 3:c=t[i+1],u=t[i+2],(c&192)===128&&(u&192)===128&&(w=(o&15)<<12|(c&63)<<6|u&63,w>2047&&(w<55296||w>57343)&&(a=w));break;case 4:c=t[i+1],u=t[i+2],l=t[i+3],(c&192)===128&&(u&192)===128&&(l&192)===128&&(w=(o&15)<<18|(c&63)<<12|(u&63)<<6|l&63,w>65535&&w<1114112&&(a=w));}}a===null?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=s;}return cH(n)}var Ux=4096;function cH(t){let e=t.length;if(e<=Ux)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Ux));return r}function uH(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function lH(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function fH(t,e,r){let n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);let i="";for(let o=e;o<r;++o)i+=vH[t[o]];return i}function dH(t,e,r){let n=t.slice(e,r),i="";for(let o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}Ee.prototype.slice=function(e,r){let n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);let i=this.subarray(e,r);return Object.setPrototypeOf(i,Ee.prototype),i};function an(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}Ee.prototype.readUintLE=Ee.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||an(e,r,this.length);let i=this[e],o=1,a=0;for(;++a<r&&(o*=256);)i+=this[e+a]*o;return i};Ee.prototype.readUintBE=Ee.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||an(e,r,this.length);let i=this[e+--r],o=1;for(;r>0&&(o*=256);)i+=this[e+--r]*o;return i};Ee.prototype.readUint8=Ee.prototype.readUInt8=function(e,r){return e=e>>>0,r||an(e,1,this.length),this[e]};Ee.prototype.readUint16LE=Ee.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||an(e,2,this.length),this[e]|this[e+1]<<8};Ee.prototype.readUint16BE=Ee.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||an(e,2,this.length),this[e]<<8|this[e+1]};Ee.prototype.readUint32LE=Ee.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||an(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};Ee.prototype.readUint32BE=Ee.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||an(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};Ee.prototype.readBigUInt64LE=ks(function(e){e=e>>>0,tf(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&lh(e,this.length-8);let i=r+this[++e]*$e(2,8)+this[++e]*$e(2,16)+this[++e]*$e(2,24),o=this[++e]+this[++e]*$e(2,8)+this[++e]*$e(2,16)+n*$e(2,24);return BigInt(i)+(BigInt(o)<<BigInt(32))});Ee.prototype.readBigUInt64BE=ks(function(e){e=e>>>0,tf(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&lh(e,this.length-8);let i=r*$e(2,24)+this[++e]*$e(2,16)+this[++e]*$e(2,8)+this[++e],o=this[++e]*$e(2,24)+this[++e]*$e(2,16)+this[++e]*$e(2,8)+n;return (BigInt(i)<<BigInt(32))+BigInt(o)});Ee.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||an(e,r,this.length);let i=this[e],o=1,a=0;for(;++a<r&&(o*=256);)i+=this[e+a]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i};Ee.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||an(e,r,this.length);let i=r,o=1,a=this[e+--i];for(;i>0&&(o*=256);)a+=this[e+--i]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*r)),a};Ee.prototype.readInt8=function(e,r){return e=e>>>0,r||an(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};Ee.prototype.readInt16LE=function(e,r){e=e>>>0,r||an(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};Ee.prototype.readInt16BE=function(e,r){e=e>>>0,r||an(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};Ee.prototype.readInt32LE=function(e,r){return e=e>>>0,r||an(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};Ee.prototype.readInt32BE=function(e,r){return e=e>>>0,r||an(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};Ee.prototype.readBigInt64LE=ks(function(e){e=e>>>0,tf(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&lh(e,this.length-8);let i=this[e+4]+this[e+5]*$e(2,8)+this[e+6]*$e(2,16)+(n<<24);return (BigInt(i)<<BigInt(32))+BigInt(r+this[++e]*$e(2,8)+this[++e]*$e(2,16)+this[++e]*$e(2,24))});Ee.prototype.readBigInt64BE=ks(function(e){e=e>>>0,tf(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&lh(e,this.length-8);let i=(r<<24)+this[++e]*$e(2,16)+this[++e]*$e(2,8)+this[++e];return (BigInt(i)<<BigInt(32))+BigInt(this[++e]*$e(2,24)+this[++e]*$e(2,16)+this[++e]*$e(2,8)+n)});Ee.prototype.readFloatLE=function(e,r){return e=e>>>0,r||an(e,4,this.length),ef.read(this,e,!0,23,4)};Ee.prototype.readFloatBE=function(e,r){return e=e>>>0,r||an(e,4,this.length),ef.read(this,e,!1,23,4)};Ee.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||an(e,8,this.length),ef.read(this,e,!0,52,8)};Ee.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||an(e,8,this.length),ef.read(this,e,!1,52,8)};function Yn(t,e,r,n,i,o){if(!Ee.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}Ee.prototype.writeUintLE=Ee.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){let s=Math.pow(2,8*n)-1;Yn(this,e,r,n,s,0);}let o=1,a=0;for(this[r]=e&255;++a<n&&(o*=256);)this[r+a]=e/o&255;return r+n};Ee.prototype.writeUintBE=Ee.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){let s=Math.pow(2,8*n)-1;Yn(this,e,r,n,s,0);}let o=n-1,a=1;for(this[r+o]=e&255;--o>=0&&(a*=256);)this[r+o]=e/a&255;return r+n};Ee.prototype.writeUint8=Ee.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||Yn(this,e,r,1,255,0),this[r]=e&255,r+1};Ee.prototype.writeUint16LE=Ee.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||Yn(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};Ee.prototype.writeUint16BE=Ee.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||Yn(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};Ee.prototype.writeUint32LE=Ee.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||Yn(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};Ee.prototype.writeUint32BE=Ee.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||Yn(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function jx(t,e,r,n,i){Wx(e,n,i,t,r,7);let o=Number(e&BigInt(4294967295));t[r++]=o,o=o>>8,t[r++]=o,o=o>>8,t[r++]=o,o=o>>8,t[r++]=o;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=a,a=a>>8,t[r++]=a,a=a>>8,t[r++]=a,a=a>>8,t[r++]=a,r}function $x(t,e,r,n,i){Wx(e,n,i,t,r,7);let o=Number(e&BigInt(4294967295));t[r+7]=o,o=o>>8,t[r+6]=o,o=o>>8,t[r+5]=o,o=o>>8,t[r+4]=o;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=a,a=a>>8,t[r+2]=a,a=a>>8,t[r+1]=a,a=a>>8,t[r]=a,r+8}Ee.prototype.writeBigUInt64LE=ks(function(e,r=0){return jx(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});Ee.prototype.writeBigUInt64BE=ks(function(e,r=0){return $x(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});Ee.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){let c=Math.pow(2,8*n-1);Yn(this,e,r,n,c-1,-c);}let o=0,a=1,s=0;for(this[r]=e&255;++o<n&&(a*=256);)e<0&&s===0&&this[r+o-1]!==0&&(s=1),this[r+o]=(e/a>>0)-s&255;return r+n};Ee.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){let c=Math.pow(2,8*n-1);Yn(this,e,r,n,c-1,-c);}let o=n-1,a=1,s=0;for(this[r+o]=e&255;--o>=0&&(a*=256);)e<0&&s===0&&this[r+o+1]!==0&&(s=1),this[r+o]=(e/a>>0)-s&255;return r+n};Ee.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||Yn(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};Ee.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||Yn(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};Ee.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||Yn(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};Ee.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||Yn(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};Ee.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||Yn(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};Ee.prototype.writeBigInt64LE=ks(function(e,r=0){return jx(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});Ee.prototype.writeBigInt64BE=ks(function(e,r=0){return $x(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Vx(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Gx(t,e,r,n,i){return e=+e,r=r>>>0,i||Vx(t,e,r,4),ef.write(t,e,r,n,23,4),r+4}Ee.prototype.writeFloatLE=function(e,r,n){return Gx(this,e,r,!0,n)};Ee.prototype.writeFloatBE=function(e,r,n){return Gx(this,e,r,!1,n)};function Kx(t,e,r,n,i){return e=+e,r=r>>>0,i||Vx(t,e,r,8),ef.write(t,e,r,n,52,8),r+8}Ee.prototype.writeDoubleLE=function(e,r,n){return Kx(this,e,r,!0,n)};Ee.prototype.writeDoubleBE=function(e,r,n){return Kx(this,e,r,!1,n)};Ee.prototype.copy=function(e,r,n,i){if(!Ee.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);let o=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),o};Ee.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!Ee.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){let a=e.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(e=a);}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);let o;if(typeof e=="number")for(o=r;o<n;++o)this[o]=e;else {let a=Ee.isBuffer(e)?e:Ee.from(e,i),s=a.length;if(s===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-r;++o)this[o+r]=a[o%s];}return this};var Ql={};function Hw(t,e,r){Ql[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name;}get code(){return t}set code(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0});}toString(){return `${this.name} [${t}]: ${this.message}`}};}Hw("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);Hw("ERR_INVALID_ARG_TYPE",function(t,e){return `The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError);Hw("ERR_OUT_OF_RANGE",function(t,e,r){let n=`The value of "${t}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>$e(2,32)?i=Dx(String(r)):typeof r=="bigint"&&(i=String(r),(r>$e(BigInt(2),BigInt(32))||r<-$e(BigInt(2),BigInt(32)))&&(i=Dx(i)),i+="n"),n+=` It must be ${e}. Received ${i}`,n},RangeError);function Dx(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return `${t.slice(0,r)}${e}`}function hH(t,e,r){tf(e,"offset"),(t[e]===void 0||t[e+r]===void 0)&&lh(e,t.length-(r+1));}function Wx(t,e,r,n,i,o){if(t>r||t<e){let a=typeof e=="bigint"?"n":"",s;throw e===0||e===BigInt(0)?s=`>= 0${a} and < 2${a} ** ${(o+1)*8}${a}`:s=`>= -(2${a} ** ${(o+1)*8-1}${a}) and < 2 ** ${(o+1)*8-1}${a}`,new Ql.ERR_OUT_OF_RANGE("value",s,t)}hH(n,i,o);}function tf(t,e){if(typeof t!="number")throw new Ql.ERR_INVALID_ARG_TYPE(e,"number",t)}function lh(t,e,r){throw Math.floor(t)!==t?(tf(t,r),new Ql.ERR_OUT_OF_RANGE("offset","an integer",t)):e<0?new Ql.ERR_BUFFER_OUT_OF_BOUNDS:new Ql.ERR_OUT_OF_RANGE("offset",`>= ${0} and <= ${e}`,t)}var pH=/[^+/0-9A-Za-z-_]/g;function mH(t){if(t=t.split("=")[0],t=t.trim().replace(pH,""),t.length<2)return "";for(;t.length%4!==0;)t=t+"=";return t}function qw(t,e){e=e||1/0;let r,n=t.length,i=null,o=[];for(let a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}else if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536;}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r);}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,r&63|128);}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128);}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128);}else throw new Error("Invalid code point")}return o}function yH(t){let e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function gH(t,e){let r,n,i,o=[];for(let a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function Yx(t){return Uw.toByteArray(mH(t))}function G0(t,e,r,n){let i;for(i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function Xo(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function jw(t){return t!==t}var vH=function(){let t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)e[n+i]=t[r]+t[i];}return e}();function ks(t){return typeof BigInt=="undefined"?bH:t}function bH(){throw new Error("BigInt not supported")}});var D,v=Ur(()=>{D=on(kn());});var Et=ne(($w,Jx)=>{v();m();y();g();var W0=kn(),Qo=W0.Buffer;function Zx(t,e){for(var r in t)e[r]=t[r];}Qo.from&&Qo.alloc&&Qo.allocUnsafe&&Qo.allocUnsafeSlow?Jx.exports=W0:(Zx(W0,$w),$w.Buffer=Wc);function Wc(t,e,r){return Qo(t,e,r)}Wc.prototype=Object.create(Qo.prototype);Zx(Qo,Wc);Wc.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Qo(t,e,r)};Wc.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=Qo(t);return e!==void 0?typeof r=="string"?n.fill(e,r):n.fill(e):n.fill(0),n};Wc.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Qo(t)};Wc.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return W0.SlowBuffer(t)};});function sr(){sr.init.call(this);}function Y0(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function sI(t){return t._maxListeners===void 0?sr.defaultMaxListeners:t._maxListeners}function tI(t,e,r,n){var i,o,a,s;if(Y0(r),(o=t._events)===void 0?(o=t._events=Object.create(null),t._eventsCount=0):(o.newListener!==void 0&&(t.emit("newListener",e,r.listener?r.listener:r),o=t._events),a=o[e]),a===void 0)a=o[e]=r,++t._eventsCount;else if(typeof a=="function"?a=o[e]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=sI(t))>0&&a.length>i&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=t,c.type=e,c.count=a.length,s=c,console&&console.warn&&console.warn(s);}return t}function wH(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function rI(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=wH.bind(n);return i.listener=r,n.wrapFn=i,i}function nI(t,e,r){var n=t._events;if(n===void 0)return [];var i=n[e];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?function(o){for(var a=new Array(o.length),s=0;s<a.length;++s)a[s]=o[s].listener||o[s];return a}(i):cI(i,i.length)}function iI(t){var e=this._events;if(e!==void 0){var r=e[t];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}function cI(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}var oI,aI,nf,Xx,Qx,eI,xr,Yc=Ur(()=>{v();m();y();g();nf=typeof Reflect=="object"?Reflect:null,Xx=nf&&typeof nf.apply=="function"?nf.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};aI=nf&&typeof nf.ownKeys=="function"?nf.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};Qx=Number.isNaN||function(t){return t!=t};oI=sr,sr.EventEmitter=sr,sr.prototype._events=void 0,sr.prototype._eventsCount=0,sr.prototype._maxListeners=void 0;eI=10;Object.defineProperty(sr,"defaultMaxListeners",{enumerable:!0,get:function(){return eI},set:function(t){if(typeof t!="number"||t<0||Qx(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");eI=t;}}),sr.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0;},sr.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||Qx(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},sr.prototype.getMaxListeners=function(){return sI(this)},sr.prototype.emit=function(t){for(var e=[],r=1;r<arguments.length;r++)e.push(arguments[r]);var n=t==="error",i=this._events;if(i!==void 0)n=n&&i.error===void 0;else if(!n)return !1;if(n){var o;if(e.length>0&&(o=e[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var s=i[t];if(s===void 0)return !1;if(typeof s=="function")Xx(s,this,e);else {var c=s.length,u=cI(s,c);for(r=0;r<c;++r)Xx(u[r],this,e);}return !0},sr.prototype.addListener=function(t,e){return tI(this,t,e,!1)},sr.prototype.on=sr.prototype.addListener,sr.prototype.prependListener=function(t,e){return tI(this,t,e,!0)},sr.prototype.once=function(t,e){return Y0(e),this.on(t,rI(this,t,e)),this},sr.prototype.prependOnceListener=function(t,e){return Y0(e),this.prependListener(t,rI(this,t,e)),this},sr.prototype.removeListener=function(t,e){var r,n,i,o,a;if(Y0(e),(n=this._events)===void 0)return this;if((r=n[t])===void 0)return this;if(r===e||r.listener===e)--this._eventsCount==0?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if(typeof r!="function"){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===e||r[o].listener===e){a=r[o].listener,i=o;break}if(i<0)return this;i===0?r.shift():function(s,c){for(;c+1<s.length;c++)s[c]=s[c+1];s.pop();}(r,i),r.length===1&&(n[t]=r[0]),n.removeListener!==void 0&&this.emit("removeListener",t,a||e);}return this},sr.prototype.off=sr.prototype.removeListener,sr.prototype.removeAllListeners=function(t){var e,r,n;if((r=this._events)===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[t]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete r[t]),this;if(arguments.length===0){var i,o=Object.keys(r);for(n=0;n<o.length;++n)(i=o[n])!=="removeListener"&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(e=r[t])=="function")this.removeListener(t,e);else if(e!==void 0)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},sr.prototype.listeners=function(t){return nI(this,t,!0)},sr.prototype.rawListeners=function(t){return nI(this,t,!1)},sr.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):iI.call(t,e)},sr.prototype.listenerCount=iI,sr.prototype.eventNames=function(){return this._eventsCount>0?aI(this._events):[]};xr=oI;xr.EventEmitter;xr.defaultMaxListeners;xr.init;xr.listenerCount;xr.EventEmitter;xr.defaultMaxListeners;xr.init;xr.listenerCount;});var of={};Cr(of,{EventEmitter:()=>EH,default:()=>xr,defaultMaxListeners:()=>_H,init:()=>SH,listenerCount:()=>CH,on:()=>AH,once:()=>TH});var EH,_H,SH,CH,AH,TH,qa=Ur(()=>{v();m();y();g();Yc();Yc();xr.once=function(t,e){return new Promise((r,n)=>{function i(...a){o!==void 0&&t.removeListener("error",o),r(a);}let o;e!=="error"&&(o=a=>{t.removeListener(name,i),n(a);},t.once("error",o)),t.once(e,i);})};xr.on=function(t,e){let r=[],n=[],i=null,o=!1,a={next(){return re(this,null,function*(){let l=r.shift();if(l)return createIterResult(l,!1);if(i){let w=Promise.reject(i);return i=null,w}return o?createIterResult(void 0,!0):new Promise((w,T)=>n.push({resolve:w,reject:T}))})},return(){return re(this,null,function*(){t.removeListener(e,s),t.removeListener("error",c),o=!0;for(let l of n)l.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)})},throw(l){i=l,t.removeListener(e,s),t.removeListener("error",c);},[Symbol.asyncIterator](){return this}};return t.on(e,s),t.on("error",c),a;function s(...l){let w=n.shift();w?w.resolve(createIterResult(l,!1)):r.push(l);}function c(l){o=!0;let w=n.shift();w?w.reject(l):i=l,a.return();}};({EventEmitter:EH,defaultMaxListeners:_H,init:SH,listenerCount:CH,on:AH,once:TH}=xr);});var yt=ne((Dye,Vw)=>{v();m();y();g();typeof Object.create=="function"?Vw.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}));}:Vw.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e;}};});var Gw=ne((Hye,uI)=>{v();m();y();g();uI.exports=(qa(),Dr(of)).EventEmitter;});function Kw(){throw new Error("setTimeout has not been defined")}function Ww(){throw new Error("clearTimeout has not been defined")}function dI(t){if(za===setTimeout)return setTimeout(t,0);if((za===Kw||!za)&&setTimeout)return za=setTimeout,setTimeout(t,0);try{return za(t,0)}catch(e){try{return za.call(null,t,0)}catch(r){return za.call(this||sf,t,0)}}}function RH(){af&&Zc&&(af=!1,Zc.length?ja=Zc.concat(ja):Z0=-1,ja.length&&hI());}function hI(){if(!af){var t=dI(RH);af=!0;for(var e=ja.length;e;){for(Zc=ja,ja=[];++Z0<e;)Zc&&Zc[Z0].run();Z0=-1,e=ja.length;}Zc=null,af=!1,function(r){if(Ha===clearTimeout)return clearTimeout(r);if((Ha===Ww||!Ha)&&clearTimeout)return Ha=clearTimeout,clearTimeout(r);try{Ha(r);}catch(n){try{return Ha.call(null,r)}catch(i){return Ha.call(this||sf,r)}}}(t);}}function lI(t,e){(this||sf).fun=t,(this||sf).array=e;}function Fa(){}var fI,za,Ha,sf,qr,Zc,ja,af,Z0,cr,Ps=Ur(()=>{v();m();y();g();sf=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:globalThis,qr=fI={};(function(){try{za=typeof setTimeout=="function"?setTimeout:Kw;}catch(t){za=Kw;}try{Ha=typeof clearTimeout=="function"?clearTimeout:Ww;}catch(t){Ha=Ww;}})();ja=[],af=!1,Z0=-1;qr.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];ja.push(new lI(t,e)),ja.length!==1||af||dI(hI);},lI.prototype.run=function(){(this||sf).fun.apply(null,(this||sf).array);},qr.title="browser",qr.browser=!0,qr.env={},qr.argv=[],qr.version="",qr.versions={},qr.on=Fa,qr.addListener=Fa,qr.once=Fa,qr.off=Fa,qr.removeListener=Fa,qr.removeAllListeners=Fa,qr.emit=Fa,qr.prependListener=Fa,qr.prependOnceListener=Fa,qr.listeners=function(t){return []},qr.binding=function(t){throw new Error("process.binding is not supported")},qr.cwd=function(){return "/"},qr.chdir=function(t){throw new Error("process.chdir is not supported")},qr.umask=function(){return 0};cr=fI;cr.addListener;cr.argv;cr.binding;cr.browser;cr.chdir;cr.cwd;cr.emit;cr.env;cr.listeners;cr.nextTick;cr.off;cr.on;cr.once;cr.prependListener;cr.prependOnceListener;cr.removeAllListeners;cr.removeListener;cr.title;cr.umask;cr.version;cr.versions;});function Qc(t){return t.call.bind(t)}function ph(t,e){if(typeof t!="object")return !1;try{return e(t),!0}catch(r){return !1}}function mI(t){return Zn&&hi?Oi(t)!==void 0:MI(t)||OI(t)||NI(t)||kI(t)||PI(t)||BI(t)||UI(t)||DI(t)||LI(t)||qI(t)||FI(t)}function MI(t){return Zn&&hi?Oi(t)==="Uint8Array":Ar(t)==="[object Uint8Array]"||DH(t)&&t.buffer!==void 0}function OI(t){return Zn&&hi?Oi(t)==="Uint8ClampedArray":Ar(t)==="[object Uint8ClampedArray]"}function NI(t){return Zn&&hi?Oi(t)==="Uint16Array":Ar(t)==="[object Uint16Array]"}function kI(t){return Zn&&hi?Oi(t)==="Uint32Array":Ar(t)==="[object Uint32Array]"}function PI(t){return Zn&&hi?Oi(t)==="Int8Array":Ar(t)==="[object Int8Array]"}function BI(t){return Zn&&hi?Oi(t)==="Int16Array":Ar(t)==="[object Int16Array]"}function UI(t){return Zn&&hi?Oi(t)==="Int32Array":Ar(t)==="[object Int32Array]"}function DI(t){return Zn&&hi?Oi(t)==="Float32Array":Ar(t)==="[object Float32Array]"}function LI(t){return Zn&&hi?Oi(t)==="Float64Array":Ar(t)==="[object Float64Array]"}function qI(t){return Zn&&hi?Oi(t)==="BigInt64Array":Ar(t)==="[object BigInt64Array]"}function FI(t){return Zn&&hi?Oi(t)==="BigUint64Array":Ar(t)==="[object BigUint64Array]"}function J0(t){return Ar(t)==="[object Map]"}function X0(t){return Ar(t)==="[object Set]"}function Q0(t){return Ar(t)==="[object WeakMap]"}function Yw(t){return Ar(t)==="[object WeakSet]"}function ny(t){return Ar(t)==="[object ArrayBuffer]"}function yI(t){return typeof ArrayBuffer!="undefined"&&(ny.working?ny(t):t instanceof ArrayBuffer)}function iy(t){return Ar(t)==="[object DataView]"}function gI(t){return typeof DataView!="undefined"&&(iy.working?iy(t):t instanceof DataView)}function oy(t){return Ar(t)==="[object SharedArrayBuffer]"}function vI(t){return typeof SharedArrayBuffer!="undefined"&&(oy.working?oy(t):t instanceof SharedArrayBuffer)}function bI(t){return ph(t,HH)}function wI(t){return ph(t,jH)}function EI(t){return ph(t,$H)}function _I(t){return II&&ph(t,VH)}function SI(t){return eE&&ph(t,GH)}function Bs(t,e){var r={seen:[],stylize:YH};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),tE(e)?r.showHidden=e:e&&we._extend(r,e),Xc(r.showHidden)&&(r.showHidden=!1),Xc(r.depth)&&(r.depth=2),Xc(r.colors)&&(r.colors=!1),Xc(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=WH),ay(r,t,r.depth)}function WH(t,e){var r=Bs.styles[e];return r?"\x1B["+Bs.colors[r][0]+"m"+t+"\x1B["+Bs.colors[r][1]+"m":t}function YH(t,e){return t}function ay(t,e,r){if(t.customInspect&&e&&ry(e.inspect)&&e.inspect!==we.inspect&&(!e.constructor||e.constructor.prototype!==e)){var n=e.inspect(r,t);return sy(n)||(n=ay(t,n,r)),n}var i=function(T,x){if(Xc(x))return T.stylize("undefined","undefined");if(sy(x)){var I="'"+JSON.stringify(x).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return T.stylize(I,"string")}if(jI(x))return T.stylize(""+x,"number");if(tE(x))return T.stylize(""+x,"boolean");if(ly(x))return T.stylize("null","null")}(t,e);if(i)return i;var o=Object.keys(e),a=function(T){var x={};return T.forEach(function(I,k){x[I]=!0;}),x}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(e)),hh(e)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return Zw(e);if(o.length===0){if(ry(e)){var s=e.name?": "+e.name:"";return t.stylize("[Function"+s+"]","special")}if(dh(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(cy(e))return t.stylize(Date.prototype.toString.call(e),"date");if(hh(e))return Zw(e)}var c,u="",l=!1,w=["{","}"];return HI(e)&&(l=!0,w=["[","]"]),ry(e)&&(u=" [Function"+(e.name?": "+e.name:"")+"]"),dh(e)&&(u=" "+RegExp.prototype.toString.call(e)),cy(e)&&(u=" "+Date.prototype.toUTCString.call(e)),hh(e)&&(u=" "+Zw(e)),o.length!==0||l&&e.length!=0?r<0?dh(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special"):(t.seen.push(e),c=l?function(T,x,I,k,q){for(var j=[],K=0,Z=x.length;K<Z;++K)$I(x,String(K))?j.push(Jw(T,x,I,k,String(K),!0)):j.push("");return q.forEach(function(se){se.match(/^\d+$/)||j.push(Jw(T,x,I,k,se,!0));}),j}(t,e,r,a,o):o.map(function(T){return Jw(t,e,r,a,T,l)}),t.seen.pop(),function(T,x,I){var k=0;return T.reduce(function(q,j){return k++,j.indexOf(` `)>=0&&k++,q+j.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?I[0]+(x===""?"":x+` `)+" "+T.join(`, `)+" "+I[1]:I[0]+x+" "+T.join(", ")+" "+I[1]}(c,u,w)):w[0]+u+w[1]}function Zw(t){return "["+Error.prototype.toString.call(t)+"]"}function Jw(t,e,r,n,i,o){var a,s,c;if((c=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=c.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):c.set&&(s=t.stylize("[Setter]","special")),$I(n,i)||(a="["+i+"]"),s||(t.seen.indexOf(c.value)<0?(s=ly(r)?ay(t,c.value,null):ay(t,c.value,r-1)).indexOf(` `)>-1&&(s=o?s.split(` `).map(function(u){return " "+u}).join(` `).substr(2):` `+s.split(` `).map(function(u){return " "+u}).join(` `)):s=t.stylize("[Circular]","special")),Xc(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"));}return a+": "+s}function HI(t){return Array.isArray(t)}function tE(t){return typeof t=="boolean"}function ly(t){return t===null}function jI(t){return typeof t=="number"}function sy(t){return typeof t=="string"}function Xc(t){return t===void 0}function dh(t){return cf(t)&&rE(t)==="[object RegExp]"}function cf(t){return typeof t=="object"&&t!==null}function cy(t){return cf(t)&&rE(t)==="[object Date]"}function hh(t){return cf(t)&&(rE(t)==="[object Error]"||t instanceof Error)}function ry(t){return typeof t=="function"}function rE(t){return Object.prototype.toString.call(t)}function Xw(t){return t<10?"0"+t.toString(10):t.toString(10)}function JH(){var t=new Date,e=[Xw(t.getHours()),Xw(t.getMinutes()),Xw(t.getSeconds())].join(":");return [t.getDate(),ZH[t.getMonth()],e].join(" ")}function $I(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function XH(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r;}return e(t)}var xH,Qw,uy,AI,IH,MH,OH,NH,kH,TI,RI,pI,PH,BH,UH,xI,Bt,DH,LH,qH,II,eE,hi,Zn,FH,Ar,HH,jH,$H,fh,we,ea,CI,KH,ey,zI,ty,ZH,Jc,Us=Ur(()=>{v();m();y();g();Ps();xH=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Qw=Object.prototype.toString,uy=function(t){return !(xH&&t&&typeof t=="object"&&Symbol.toStringTag in t)&&Qw.call(t)==="[object Arguments]"},AI=function(t){return !!uy(t)||t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Qw.call(t)!=="[object Array]"&&Qw.call(t.callee)==="[object Function]"},IH=function(){