12 lines
196 KiB
JavaScript
12 lines
196 KiB
JavaScript
"use strict";(()=>{var cu=Object.create;var Dr=Object.defineProperty;var du=Object.getOwnPropertyDescriptor;var pu=Object.getOwnPropertyNames;var gu=Object.getPrototypeOf,yu=Object.prototype.hasOwnProperty;var wu=(e,r,t)=>r in e?Dr(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t;var qr=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(r,t)=>(typeof require<"u"?require:r)[t]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var Ze=(e,r)=>()=>(e&&(r=e(e=0)),r);var q=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),vn=(e,r)=>{for(var t in r)Dr(e,t,{get:r[t],enumerable:!0})},no=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of pu(r))!yu.call(e,i)&&i!==t&&Dr(e,i,{get:()=>r[i],enumerable:!(n=du(r,i))||n.enumerable});return e};var Qe=(e,r,t)=>(t=e!=null?cu(gu(e)):{},no(r||!e||!e.__esModule?Dr(t,"default",{value:e,enumerable:!0}):t,e)),bn=e=>no(Dr({},"__esModule",{value:!0}),e);var _n=(e,r,t)=>(wu(e,typeof r!="symbol"?r+"":r,t),t);function oo(){throw new Error("setTimeout has not been defined")}function ao(){throw new Error("clearTimeout has not been defined")}function so(e){if(Ve===setTimeout)return setTimeout(e,0);if((Ve===oo||!Ve)&&setTimeout)return Ve=setTimeout,setTimeout(e,0);try{return Ve(e,0)}catch{try{return Ve.call(null,e,0)}catch{return Ve.call(this,e,0)}}}function mu(e){if(ze===clearTimeout)return clearTimeout(e);if((ze===ao||!ze)&&clearTimeout)return ze=clearTimeout,clearTimeout(e);try{return ze(e)}catch{try{return ze.call(null,e)}catch{return ze.call(this,e)}}}function vu(){!br||!er||(br=!1,er.length?Le=er.concat(Le):Et=-1,Le.length&&fo())}function fo(){if(!br){var e=so(vu);br=!0;for(var r=Le.length;r;){for(er=Le,Le=[];++Et<r;)er&&er[Et].run();Et=-1,r=Le.length}er=null,br=!1,mu(e)}}function bu(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];Le.push(new uo(e,r)),Le.length===1&&!br&&so(fo)}function uo(e,r){this.fun=e,this.array=r}function rr(){}function Uu(e){throw new Error("process.binding is not supported")}function Du(){return"/"}function qu(e){throw new Error("process.chdir is not supported")}function Fu(){return 0}function Wu(e){var r=ju.call(vr)*.001,t=Math.floor(r),n=Math.floor(r%1*1e9);return e&&(t=t-e[0],n=n-e[1],n<0&&(t--,n+=1e9)),[t,n]}function Yu(){var e=new Date,r=e-Hu;return r/1e3}var Ve,ze,Le,br,er,Et,_u,Eu,Au,xu,Su,Tu,Ru,Cu,Bu,Mu,Nu,Iu,Ou,Lu,Pu,ku,vr,ju,Hu,B,io,x=Ze(()=>{Ve=oo,ze=ao;typeof globalThis.setTimeout=="function"&&(Ve=setTimeout);typeof globalThis.clearTimeout=="function"&&(ze=clearTimeout);Le=[],br=!1,Et=-1;uo.prototype.run=function(){this.fun.apply(null,this.array)};_u="browser",Eu="browser",Au=!0,xu={},Su=[],Tu="",Ru={},Cu={},Bu={};Mu=rr,Nu=rr,Iu=rr,Ou=rr,Lu=rr,Pu=rr,ku=rr;vr=globalThis.performance||{},ju=vr.now||vr.mozNow||vr.msNow||vr.oNow||vr.webkitNow||function(){return new Date().getTime()};Hu=new Date;B={nextTick:bu,title:_u,browser:Au,env:xu,argv:Su,version:Tu,versions:Ru,on:Mu,addListener:Nu,once:Iu,off:Ou,removeListener:Lu,removeAllListeners:Pu,emit:ku,binding:Uu,cwd:Du,chdir:qu,umask:Fu,hrtime:Wu,platform:Eu,release:Cu,config:Bu,uptime:Yu},io={version:"3.65.22","env.PROJECT":"okxwallet-extension","env.NODE_ENV":"production","env.SOURCEMAP":"true","env.DEV_TARGET":"","env.APP_VERSION":"3.65.22","env.COMMIT_HASH":"1c1b","env.PLATFORM_WEB":void 0,"env.REDUX_DEVTOOLS":"","env.MONITOR_PLATFORM":"extension","env.ASSETS_BUILD_TYPE":"publish"};Object.keys(io).forEach(e=>{let r=e.split("."),t=B;for(let n=0;n<r.length;n++){let i=r[n];n===r.length-1?t[i]=io[e]:t=t[i]||(t[i]={})}})});var ho=q((lo,En)=>{x();S();(function(e){typeof lo=="object"&&typeof En<"u"?En.exports=e():typeof define=="function"&&define.amd?define([],e):(typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:this).buffer=e()})(function(){return function(){return function e(r,t,n){function i(g,d){if(!t[g]){if(!r[g]){var p=typeof qr=="function"&&qr;if(!d&&p)return p(g,!0);if(a)return a(g,!0);var M=new Error("Cannot find module '"+g+"'");throw M.code="MODULE_NOT_FOUND",M}var b=t[g]={exports:{}};r[g][0].call(b.exports,function(T){return i(r[g][1][T]||T)},b,b.exports,e,r,t,n)}return t[g].exports}for(var a=typeof qr=="function"&&qr,u=0;u<n.length;u++)i(n[u]);return i}}()({1:[function(e,r,t){"use strict";t.byteLength=function(b){var T=p(b),A=T[0],N=T[1];return 3*(A+N)/4-N},t.toByteArray=function(b){var T,A,N=p(b),L=N[0],I=N[1],O=new a(function(k,U,H){return 3*(U+H)/4-H}(0,L,I)),W=0,Ee=I>0?L-4:L;for(A=0;A<Ee;A+=4)T=i[b.charCodeAt(A)]<<18|i[b.charCodeAt(A+1)]<<12|i[b.charCodeAt(A+2)]<<6|i[b.charCodeAt(A+3)],O[W++]=T>>16&255,O[W++]=T>>8&255,O[W++]=255&T;return I===2&&(T=i[b.charCodeAt(A)]<<2|i[b.charCodeAt(A+1)]>>4,O[W++]=255&T),I===1&&(T=i[b.charCodeAt(A)]<<10|i[b.charCodeAt(A+1)]<<4|i[b.charCodeAt(A+2)]>>2,O[W++]=T>>8&255,O[W++]=255&T),O},t.fromByteArray=function(b){for(var T,A=b.length,N=A%3,L=[],I=0,O=A-N;I<O;I+=16383)L.push(M(b,I,I+16383>O?O:I+16383));return N===1?(T=b[A-1],L.push(n[T>>2]+n[T<<4&63]+"==")):N===2&&(T=(b[A-2]<<8)+b[A-1],L.push(n[T>>10]+n[T>>4&63]+n[T<<2&63]+"=")),L.join("")};for(var n=[],i=[],a=typeof Uint8Array<"u"?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g=0,d=u.length;g<d;++g)n[g]=u[g],i[u.charCodeAt(g)]=g;function p(b){var T=b.length;if(T%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var A=b.indexOf("=");return A===-1&&(A=T),[A,A===T?0:4-A%4]}function M(b,T,A){for(var N,L,I=[],O=T;O<A;O+=3)N=(b[O]<<16&16711680)+(b[O+1]<<8&65280)+(255&b[O+2]),I.push(n[(L=N)>>18&63]+n[L>>12&63]+n[L>>6&63]+n[63&L]);return I.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],2:[function(e,r,t){(function(d){"use strict";var i=e("base64-js"),a=e("ieee754");t.Buffer=d,t.SlowBuffer=function(s){return+s!=s&&(s=0),d.alloc(+s)},t.INSPECT_MAX_BYTES=50;var u=2147483647;function g(s){if(s>u)throw new RangeError('The value "'+s+'" is invalid for option "size"');var l=new Uint8Array(s);return l.__proto__=d.prototype,l}function d(s,l,c){if(typeof s=="number"){if(typeof l=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return b(s)}return p(s,l,c)}function p(s,l,c){if(typeof s=="string")return function(_,P){if(typeof P=="string"&&P!==""||(P="utf8"),!d.isEncoding(P))throw new TypeError("Unknown encoding: "+P);var j=0|N(_,P),z=g(j),K=z.write(_,P);return K!==j&&(z=z.slice(0,K)),z}(s,l);if(ArrayBuffer.isView(s))return T(s);if(s==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof s);if(Se(s,ArrayBuffer)||s&&Se(s.buffer,ArrayBuffer))return function(_,P,j){if(P<0||_.byteLength<P)throw new RangeError('"offset" is outside of buffer bounds');if(_.byteLength<P+(j||0))throw new RangeError('"length" is outside of buffer bounds');var z;return z=P===void 0&&j===void 0?new Uint8Array(_):j===void 0?new Uint8Array(_,P):new Uint8Array(_,P,j),z.__proto__=d.prototype,z}(s,l,c);if(typeof s=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var w=s.valueOf&&s.valueOf();if(w!=null&&w!==s)return d.from(w,l,c);var E=function(_){if(d.isBuffer(_)){var P=0|A(_.length),j=g(P);return j.length===0||_.copy(j,0,0,P),j}if(_.length!==void 0)return typeof _.length!="number"||mr(_.length)?g(0):T(_);if(_.type==="Buffer"&&Array.isArray(_.data))return T(_.data)}(s);if(E)return E;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof s[Symbol.toPrimitive]=="function")return d.from(s[Symbol.toPrimitive]("string"),l,c);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof s)}function M(s){if(typeof s!="number")throw new TypeError('"size" argument must be of type number');if(s<0)throw new RangeError('The value "'+s+'" is invalid for option "size"')}function b(s){return M(s),g(s<0?0:0|A(s))}function T(s){for(var l=s.length<0?0:0|A(s.length),c=g(l),w=0;w<l;w+=1)c[w]=255&s[w];return c}function A(s){if(s>=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return 0|s}function N(s,l){if(d.isBuffer(s))return s.length;if(ArrayBuffer.isView(s)||Se(s,ArrayBuffer))return s.byteLength;if(typeof s!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof s);var c=s.length,w=arguments.length>2&&arguments[2]===!0;if(!w&&c===0)return 0;for(var E=!1;;)switch(l){case"ascii":case"latin1":case"binary":return c;case"utf8":case"utf-8":return wr(s).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*c;case"hex":return c>>>1;case"base64":return Oe(s).length;default:if(E)return w?-1:wr(s).length;l=(""+l).toLowerCase(),E=!0}}function L(s,l,c){var w=s[l];s[l]=s[c],s[c]=w}function I(s,l,c,w,E){if(s.length===0)return-1;if(typeof c=="string"?(w=c,c=0):c>2147483647?c=2147483647:c<-2147483648&&(c=-2147483648),mr(c=+c)&&(c=E?0:s.length-1),c<0&&(c=s.length+c),c>=s.length){if(E)return-1;c=s.length-1}else if(c<0){if(!E)return-1;c=0}if(typeof l=="string"&&(l=d.from(l,w)),d.isBuffer(l))return l.length===0?-1:O(s,l,c,w,E);if(typeof l=="number")return l&=255,typeof Uint8Array.prototype.indexOf=="function"?E?Uint8Array.prototype.indexOf.call(s,l,c):Uint8Array.prototype.lastIndexOf.call(s,l,c):O(s,[l],c,w,E);throw new TypeError("val must be string, number or Buffer")}function O(s,l,c,w,E){var _,P=1,j=s.length,z=l.length;if(w!==void 0&&((w=String(w).toLowerCase())==="ucs2"||w==="ucs-2"||w==="utf16le"||w==="utf-16le")){if(s.length<2||l.length<2)return-1;P=2,j/=2,z/=2,c/=2}function K(h,y){return P===1?h[y]:h.readUInt16BE(y*P)}if(E){var G=-1;for(_=c;_<j;_++)if(K(s,_)===K(l,G===-1?0:_-G)){if(G===-1&&(G=_),_-G+1===z)return G*P}else G!==-1&&(_-=_-G),G=-1}else for(c+z>j&&(c=j-z),_=c;_>=0;_--){for(var o=!0,f=0;f<z;f++)if(K(s,_+f)!==K(l,f)){o=!1;break}if(o)return _}return-1}function W(s,l,c,w){c=Number(c)||0;var E=s.length-c;w?(w=Number(w))>E&&(w=E):w=E;var _=l.length;w>_/2&&(w=_/2);for(var P=0;P<w;++P){var j=parseInt(l.substr(2*P,2),16);if(mr(j))return P;s[c+P]=j}return P}function Ee(s,l,c,w){return Ge(wr(l,s.length-c),s,c,w)}function k(s,l,c,w){return Ge(function(E){for(var _=[],P=0;P<E.length;++P)_.push(255&E.charCodeAt(P));return _}(l),s,c,w)}function U(s,l,c,w){return k(s,l,c,w)}function H(s,l,c,w){return Ge(Oe(l),s,c,w)}function V(s,l,c,w){return Ge(function(E,_){for(var P,j,z,K=[],G=0;G<E.length&&!((_-=2)<0);++G)P=E.charCodeAt(G),j=P>>8,z=P%256,K.push(z),K.push(j);return K}(l,s.length-c),s,c,w)}function se(s,l,c){return l===0&&c===s.length?i.fromByteArray(s):i.fromByteArray(s.slice(l,c))}function ce(s,l,c){c=Math.min(s.length,c);for(var w=[],E=l;E<c;){var _,P,j,z,K=s[E],G=null,o=K>239?4:K>223?3:K>191?2:1;if(E+o<=c)switch(o){case 1:K<128&&(G=K);break;case 2:(192&(_=s[E+1]))==128&&(z=(31&K)<<6|63&_)>127&&(G=z);break;case 3:_=s[E+1],P=s[E+2],(192&_)==128&&(192&P)==128&&(z=(15&K)<<12|(63&_)<<6|63&P)>2047&&(z<55296||z>57343)&&(G=z);break;case 4:_=s[E+1],P=s[E+2],j=s[E+3],(192&_)==128&&(192&P)==128&&(192&j)==128&&(z=(15&K)<<18|(63&_)<<12|(63&P)<<6|63&j)>65535&&z<1114112&&(G=z)}G===null?(G=65533,o=1):G>65535&&(G-=65536,w.push(G>>>10&1023|55296),G=56320|1023&G),w.push(G),E+=o}return function(f){var h=f.length;if(h<=de)return String.fromCharCode.apply(String,f);for(var y="",m=0;m<h;)y+=String.fromCharCode.apply(String,f.slice(m,m+=de));return y}(w)}t.kMaxLength=u,d.TYPED_ARRAY_SUPPORT=function(){try{var s=new Uint8Array(1);return s.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},s.foo()===42}catch{return!1}}(),d.TYPED_ARRAY_SUPPORT||typeof console>"u"||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."),Object.defineProperty(d.prototype,"parent",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.buffer}}),Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.byteOffset}}),typeof Symbol<"u"&&Symbol.species!=null&&d[Symbol.species]===d&&Object.defineProperty(d,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),d.poolSize=8192,d.from=function(s,l,c){return p(s,l,c)},d.prototype.__proto__=Uint8Array.prototype,d.__proto__=Uint8Array,d.alloc=function(s,l,c){return function(w,E,_){return M(w),w<=0?g(w):E!==void 0?typeof _=="string"?g(w).fill(E,_):g(w).fill(E):g(w)}(s,l,c)},d.allocUnsafe=function(s){return b(s)},d.allocUnsafeSlow=function(s){return b(s)},d.isBuffer=function(s){return s!=null&&s._isBuffer===!0&&s!==d.prototype},d.compare=function(s,l){if(Se(s,Uint8Array)&&(s=d.from(s,s.offset,s.byteLength)),Se(l,Uint8Array)&&(l=d.from(l,l.offset,l.byteLength)),!d.isBuffer(s)||!d.isBuffer(l))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(s===l)return 0;for(var c=s.length,w=l.length,E=0,_=Math.min(c,w);E<_;++E)if(s[E]!==l[E]){c=s[E],w=l[E];break}return c<w?-1:w<c?1:0},d.isEncoding=function(s){switch(String(s).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}},d.concat=function(s,l){if(!Array.isArray(s))throw new TypeError('"list" argument must be an Array of Buffers');if(s.length===0)return d.alloc(0);var c;if(l===void 0)for(l=0,c=0;c<s.length;++c)l+=s[c].length;var w=d.allocUnsafe(l),E=0;for(c=0;c<s.length;++c){var _=s[c];if(Se(_,Uint8Array)&&(_=d.from(_)),!d.isBuffer(_))throw new TypeError('"list" argument must be an Array of Buffers');_.copy(w,E),E+=_.length}return w},d.byteLength=N,d.prototype._isBuffer=!0,d.prototype.swap16=function(){var s=this.length;if(s%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var l=0;l<s;l+=2)L(this,l,l+1);return this},d.prototype.swap32=function(){var s=this.length;if(s%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var l=0;l<s;l+=4)L(this,l,l+3),L(this,l+1,l+2);return this},d.prototype.swap64=function(){var s=this.length;if(s%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var l=0;l<s;l+=8)L(this,l,l+7),L(this,l+1,l+6),L(this,l+2,l+5),L(this,l+3,l+4);return this},d.prototype.toString=function(){var s=this.length;return s===0?"":arguments.length===0?ce(this,0,s):function(l,c,w){var E=!1;if((c===void 0||c<0)&&(c=0),c>this.length||((w===void 0||w>this.length)&&(w=this.length),w<=0)||(w>>>=0)<=(c>>>=0))return"";for(l||(l="utf8");;)switch(l){case"hex":return ae(this,c,w);case"utf8":case"utf-8":return ce(this,c,w);case"ascii":return $(this,c,w);case"latin1":case"binary":return we(this,c,w);case"base64":return se(this,c,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xe(this,c,w);default:if(E)throw new TypeError("Unknown encoding: "+l);l=(l+"").toLowerCase(),E=!0}}.apply(this,arguments)},d.prototype.toLocaleString=d.prototype.toString,d.prototype.equals=function(s){if(!d.isBuffer(s))throw new TypeError("Argument must be a Buffer");return this===s||d.compare(this,s)===0},d.prototype.inspect=function(){var s="",l=t.INSPECT_MAX_BYTES;return s=this.toString("hex",0,l).replace(/(.{2})/g,"$1 ").trim(),this.length>l&&(s+=" ... "),"<Buffer "+s+">"},d.prototype.compare=function(s,l,c,w,E){if(Se(s,Uint8Array)&&(s=d.from(s,s.offset,s.byteLength)),!d.isBuffer(s))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof s);if(l===void 0&&(l=0),c===void 0&&(c=s?s.length:0),w===void 0&&(w=0),E===void 0&&(E=this.length),l<0||c>s.length||w<0||E>this.length)throw new RangeError("out of range index");if(w>=E&&l>=c)return 0;if(w>=E)return-1;if(l>=c)return 1;if(this===s)return 0;for(var _=(E>>>=0)-(w>>>=0),P=(c>>>=0)-(l>>>=0),j=Math.min(_,P),z=this.slice(w,E),K=s.slice(l,c),G=0;G<j;++G)if(z[G]!==K[G]){_=z[G],P=K[G];break}return _<P?-1:P<_?1:0},d.prototype.includes=function(s,l,c){return this.indexOf(s,l,c)!==-1},d.prototype.indexOf=function(s,l,c){return I(this,s,l,c,!0)},d.prototype.lastIndexOf=function(s,l,c){return I(this,s,l,c,!1)},d.prototype.write=function(s,l,c,w){if(l===void 0)w="utf8",c=this.length,l=0;else if(c===void 0&&typeof l=="string")w=l,c=this.length,l=0;else{if(!isFinite(l))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");l>>>=0,isFinite(c)?(c>>>=0,w===void 0&&(w="utf8")):(w=c,c=void 0)}var E=this.length-l;if((c===void 0||c>E)&&(c=E),s.length>0&&(c<0||l<0)||l>this.length)throw new RangeError("Attempt to write outside buffer bounds");w||(w="utf8");for(var _=!1;;)switch(w){case"hex":return W(this,s,l,c);case"utf8":case"utf-8":return Ee(this,s,l,c);case"ascii":return k(this,s,l,c);case"latin1":case"binary":return U(this,s,l,c);case"base64":return H(this,s,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,s,l,c);default:if(_)throw new TypeError("Unknown encoding: "+w);w=(""+w).toLowerCase(),_=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var de=4096;function $(s,l,c){var w="";c=Math.min(s.length,c);for(var E=l;E<c;++E)w+=String.fromCharCode(127&s[E]);return w}function we(s,l,c){var w="";c=Math.min(s.length,c);for(var E=l;E<c;++E)w+=String.fromCharCode(s[E]);return w}function ae(s,l,c){var w=s.length;(!l||l<0)&&(l=0),(!c||c<0||c>w)&&(c=w);for(var E="",_=l;_<c;++_)E+=_t(s[_]);return E}function xe(s,l,c){for(var w=s.slice(l,c),E="",_=0;_<w.length;_+=2)E+=String.fromCharCode(w[_]+256*w[_+1]);return E}function te(s,l,c){if(s%1!=0||s<0)throw new RangeError("offset is not uint");if(s+l>c)throw new RangeError("Trying to access beyond buffer length")}function F(s,l,c,w,E,_){if(!d.isBuffer(s))throw new TypeError('"buffer" argument must be a Buffer instance');if(l>E||l<_)throw new RangeError('"value" argument is out of bounds');if(c+w>s.length)throw new RangeError("Index out of range")}function fe(s,l,c,w,E,_){if(c+w>s.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("Index out of range")}function kr(s,l,c,w,E){return l=+l,c>>>=0,E||fe(s,0,c,4),a.write(s,l,c,w,23,4),c+4}function Ur(s,l,c,w,E){return l=+l,c>>>=0,E||fe(s,0,c,8),a.write(s,l,c,w,52,8),c+8}d.prototype.slice=function(s,l){var c=this.length;(s=~~s)<0?(s+=c)<0&&(s=0):s>c&&(s=c),(l=l===void 0?c:~~l)<0?(l+=c)<0&&(l=0):l>c&&(l=c),l<s&&(l=s);var w=this.subarray(s,l);return w.__proto__=d.prototype,w},d.prototype.readUIntLE=function(s,l,c){s>>>=0,l>>>=0,c||te(s,l,this.length);for(var w=this[s],E=1,_=0;++_<l&&(E*=256);)w+=this[s+_]*E;return w},d.prototype.readUIntBE=function(s,l,c){s>>>=0,l>>>=0,c||te(s,l,this.length);for(var w=this[s+--l],E=1;l>0&&(E*=256);)w+=this[s+--l]*E;return w},d.prototype.readUInt8=function(s,l){return s>>>=0,l||te(s,1,this.length),this[s]},d.prototype.readUInt16LE=function(s,l){return s>>>=0,l||te(s,2,this.length),this[s]|this[s+1]<<8},d.prototype.readUInt16BE=function(s,l){return s>>>=0,l||te(s,2,this.length),this[s]<<8|this[s+1]},d.prototype.readUInt32LE=function(s,l){return s>>>=0,l||te(s,4,this.length),(this[s]|this[s+1]<<8|this[s+2]<<16)+16777216*this[s+3]},d.prototype.readUInt32BE=function(s,l){return s>>>=0,l||te(s,4,this.length),16777216*this[s]+(this[s+1]<<16|this[s+2]<<8|this[s+3])},d.prototype.readIntLE=function(s,l,c){s>>>=0,l>>>=0,c||te(s,l,this.length);for(var w=this[s],E=1,_=0;++_<l&&(E*=256);)w+=this[s+_]*E;return w>=(E*=128)&&(w-=Math.pow(2,8*l)),w},d.prototype.readIntBE=function(s,l,c){s>>>=0,l>>>=0,c||te(s,l,this.length);for(var w=l,E=1,_=this[s+--w];w>0&&(E*=256);)_+=this[s+--w]*E;return _>=(E*=128)&&(_-=Math.pow(2,8*l)),_},d.prototype.readInt8=function(s,l){return s>>>=0,l||te(s,1,this.length),128&this[s]?-1*(255-this[s]+1):this[s]},d.prototype.readInt16LE=function(s,l){s>>>=0,l||te(s,2,this.length);var c=this[s]|this[s+1]<<8;return 32768&c?4294901760|c:c},d.prototype.readInt16BE=function(s,l){s>>>=0,l||te(s,2,this.length);var c=this[s+1]|this[s]<<8;return 32768&c?4294901760|c:c},d.prototype.readInt32LE=function(s,l){return s>>>=0,l||te(s,4,this.length),this[s]|this[s+1]<<8|this[s+2]<<16|this[s+3]<<24},d.prototype.readInt32BE=function(s,l){return s>>>=0,l||te(s,4,this.length),this[s]<<24|this[s+1]<<16|this[s+2]<<8|this[s+3]},d.prototype.readFloatLE=function(s,l){return s>>>=0,l||te(s,4,this.length),a.read(this,s,!0,23,4)},d.prototype.readFloatBE=function(s,l){return s>>>=0,l||te(s,4,this.length),a.read(this,s,!1,23,4)},d.prototype.readDoubleLE=function(s,l){return s>>>=0,l||te(s,8,this.length),a.read(this,s,!0,52,8)},d.prototype.readDoubleBE=function(s,l){return s>>>=0,l||te(s,8,this.length),a.read(this,s,!1,52,8)},d.prototype.writeUIntLE=function(s,l,c,w){s=+s,l>>>=0,c>>>=0,w||F(this,s,l,c,Math.pow(2,8*c)-1,0);var E=1,_=0;for(this[l]=255&s;++_<c&&(E*=256);)this[l+_]=s/E&255;return l+c},d.prototype.writeUIntBE=function(s,l,c,w){s=+s,l>>>=0,c>>>=0,w||F(this,s,l,c,Math.pow(2,8*c)-1,0);var E=c-1,_=1;for(this[l+E]=255&s;--E>=0&&(_*=256);)this[l+E]=s/_&255;return l+c},d.prototype.writeUInt8=function(s,l,c){return s=+s,l>>>=0,c||F(this,s,l,1,255,0),this[l]=255&s,l+1},d.prototype.writeUInt16LE=function(s,l,c){return s=+s,l>>>=0,c||F(this,s,l,2,65535,0),this[l]=255&s,this[l+1]=s>>>8,l+2},d.prototype.writeUInt16BE=function(s,l,c){return s=+s,l>>>=0,c||F(this,s,l,2,65535,0),this[l]=s>>>8,this[l+1]=255&s,l+2},d.prototype.writeUInt32LE=function(s,l,c){return s=+s,l>>>=0,c||F(this,s,l,4,4294967295,0),this[l+3]=s>>>24,this[l+2]=s>>>16,this[l+1]=s>>>8,this[l]=255&s,l+4},d.prototype.writeUInt32BE=function(s,l,c){return s=+s,l>>>=0,c||F(this,s,l,4,4294967295,0),this[l]=s>>>24,this[l+1]=s>>>16,this[l+2]=s>>>8,this[l+3]=255&s,l+4},d.prototype.writeIntLE=function(s,l,c,w){if(s=+s,l>>>=0,!w){var E=Math.pow(2,8*c-1);F(this,s,l,c,E-1,-E)}var _=0,P=1,j=0;for(this[l]=255&s;++_<c&&(P*=256);)s<0&&j===0&&this[l+_-1]!==0&&(j=1),this[l+_]=(s/P>>0)-j&255;return l+c},d.prototype.writeIntBE=function(s,l,c,w){if(s=+s,l>>>=0,!w){var E=Math.pow(2,8*c-1);F(this,s,l,c,E-1,-E)}var _=c-1,P=1,j=0;for(this[l+_]=255&s;--_>=0&&(P*=256);)s<0&&j===0&&this[l+_+1]!==0&&(j=1),this[l+_]=(s/P>>0)-j&255;return l+c},d.prototype.writeInt8=function(s,l,c){return s=+s,l>>>=0,c||F(this,s,l,1,127,-128),s<0&&(s=255+s+1),this[l]=255&s,l+1},d.prototype.writeInt16LE=function(s,l,c){return s=+s,l>>>=0,c||F(this,s,l,2,32767,-32768),this[l]=255&s,this[l+1]=s>>>8,l+2},d.prototype.writeInt16BE=function(s,l,c){return s=+s,l>>>=0,c||F(this,s,l,2,32767,-32768),this[l]=s>>>8,this[l+1]=255&s,l+2},d.prototype.writeInt32LE=function(s,l,c){return s=+s,l>>>=0,c||F(this,s,l,4,2147483647,-2147483648),this[l]=255&s,this[l+1]=s>>>8,this[l+2]=s>>>16,this[l+3]=s>>>24,l+4},d.prototype.writeInt32BE=function(s,l,c){return s=+s,l>>>=0,c||F(this,s,l,4,2147483647,-2147483648),s<0&&(s=4294967295+s+1),this[l]=s>>>24,this[l+1]=s>>>16,this[l+2]=s>>>8,this[l+3]=255&s,l+4},d.prototype.writeFloatLE=function(s,l,c){return kr(this,s,l,!0,c)},d.prototype.writeFloatBE=function(s,l,c){return kr(this,s,l,!1,c)},d.prototype.writeDoubleLE=function(s,l,c){return Ur(this,s,l,!0,c)},d.prototype.writeDoubleBE=function(s,l,c){return Ur(this,s,l,!1,c)},d.prototype.copy=function(s,l,c,w){if(!d.isBuffer(s))throw new TypeError("argument should be a Buffer");if(c||(c=0),w||w===0||(w=this.length),l>=s.length&&(l=s.length),l||(l=0),w>0&&w<c&&(w=c),w===c||s.length===0||this.length===0)return 0;if(l<0)throw new RangeError("targetStart out of bounds");if(c<0||c>=this.length)throw new RangeError("Index out of range");if(w<0)throw new RangeError("sourceEnd out of bounds");w>this.length&&(w=this.length),s.length-l<w-c&&(w=s.length-l+c);var E=w-c;if(this===s&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(l,c,w);else if(this===s&&c<l&&l<w)for(var _=E-1;_>=0;--_)s[_+l]=this[_+c];else Uint8Array.prototype.set.call(s,this.subarray(c,w),l);return E},d.prototype.fill=function(s,l,c,w){if(typeof s=="string"){if(typeof l=="string"?(w=l,l=0,c=this.length):typeof c=="string"&&(w=c,c=this.length),w!==void 0&&typeof w!="string")throw new TypeError("encoding must be a string");if(typeof w=="string"&&!d.isEncoding(w))throw new TypeError("Unknown encoding: "+w);if(s.length===1){var E=s.charCodeAt(0);(w==="utf8"&&E<128||w==="latin1")&&(s=E)}}else typeof s=="number"&&(s&=255);if(l<0||this.length<l||this.length<c)throw new RangeError("Out of range index");if(c<=l)return this;var _;if(l>>>=0,c=c===void 0?this.length:c>>>0,s||(s=0),typeof s=="number")for(_=l;_<c;++_)this[_]=s;else{var P=d.isBuffer(s)?s:d.from(s,w),j=P.length;if(j===0)throw new TypeError('The value "'+s+'" is invalid for argument "value"');for(_=0;_<c-l;++_)this[_+l]=P[_%j]}return this};var bt=/[^+\/0-9A-Za-z-_]/g;function _t(s){return s<16?"0"+s.toString(16):s.toString(16)}function wr(s,l){var c;l=l||1/0;for(var w=s.length,E=null,_=[],P=0;P<w;++P){if((c=s.charCodeAt(P))>55295&&c<57344){if(!E){if(c>56319){(l-=3)>-1&&_.push(239,191,189);continue}if(P+1===w){(l-=3)>-1&&_.push(239,191,189);continue}E=c;continue}if(c<56320){(l-=3)>-1&&_.push(239,191,189),E=c;continue}c=65536+(E-55296<<10|c-56320)}else E&&(l-=3)>-1&&_.push(239,191,189);if(E=null,c<128){if((l-=1)<0)break;_.push(c)}else if(c<2048){if((l-=2)<0)break;_.push(c>>6|192,63&c|128)}else if(c<65536){if((l-=3)<0)break;_.push(c>>12|224,c>>6&63|128,63&c|128)}else{if(!(c<1114112))throw new Error("Invalid code point");if((l-=4)<0)break;_.push(c>>18|240,c>>12&63|128,c>>6&63|128,63&c|128)}}return _}function Oe(s){return i.toByteArray(function(l){if((l=(l=l.split("=")[0]).trim().replace(bt,"")).length<2)return"";for(;l.length%4!=0;)l+="=";return l}(s))}function Ge(s,l,c,w){for(var E=0;E<w&&!(E+c>=l.length||E>=s.length);++E)l[E+c]=s[E];return E}function Se(s,l){return s instanceof l||s!=null&&s.constructor!=null&&s.constructor.name!=null&&s.constructor.name===l.name}function mr(s){return s!=s}}).call(this,e("buffer").Buffer)},{"base64-js":1,buffer:2,ieee754:3}],3:[function(e,r,t){t.read=function(n,i,a,u,g){var d,p,M=8*g-u-1,b=(1<<M)-1,T=b>>1,A=-7,N=a?g-1:0,L=a?-1:1,I=n[i+N];for(N+=L,d=I&(1<<-A)-1,I>>=-A,A+=M;A>0;d=256*d+n[i+N],N+=L,A-=8);for(p=d&(1<<-A)-1,d>>=-A,A+=u;A>0;p=256*p+n[i+N],N+=L,A-=8);if(d===0)d=1-T;else{if(d===b)return p?NaN:1/0*(I?-1:1);p+=Math.pow(2,u),d-=T}return(I?-1:1)*p*Math.pow(2,d-u)},t.write=function(n,i,a,u,g,d){var p,M,b,T=8*d-g-1,A=(1<<T)-1,N=A>>1,L=g===23?Math.pow(2,-24)-Math.pow(2,-77):0,I=u?0:d-1,O=u?1:-1,W=i<0||i===0&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(M=isNaN(i)?1:0,p=A):(p=Math.floor(Math.log(i)/Math.LN2),i*(b=Math.pow(2,-p))<1&&(p--,b*=2),(i+=p+N>=1?L/b:L*Math.pow(2,1-N))*b>=2&&(p++,b/=2),p+N>=A?(M=0,p=A):p+N>=1?(M=(i*b-1)*Math.pow(2,g),p+=N):(M=i*Math.pow(2,N-1)*Math.pow(2,g),p=0));g>=8;n[a+I]=255&M,I+=O,M/=256,g-=8);for(p=p<<g|M,T+=g;T>0;n[a+I]=255&p,I+=O,p/=256,T-=8);n[a+I-O]|=128*W}},{}],4:[function(e,r,t){(function(p){"use strict";let i=e("base64-js"),a=e("ieee754"),u=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=p,t.SlowBuffer=function(o){return+o!=o&&(o=0),p.alloc(+o)},t.INSPECT_MAX_BYTES=50;let g=2147483647;function d(o){if(o>g)throw new RangeError('The value "'+o+'" is invalid for option "size"');let f=new Uint8Array(o);return Object.setPrototypeOf(f,p.prototype),f}function p(o,f,h){if(typeof o=="number"){if(typeof f=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return T(o)}return M(o,f,h)}function M(o,f,h){if(typeof o=="string")return function(v,C){if(typeof C=="string"&&C!==""||(C="utf8"),!p.isEncoding(C))throw new TypeError("Unknown encoding: "+C);let Y=0|I(v,C),X=d(Y),ue=X.write(v,C);return ue!==Y&&(X=X.slice(0,ue)),X}(o,f);if(ArrayBuffer.isView(o))return function(v){if(P(v,Uint8Array)){let C=new Uint8Array(v);return N(C.buffer,C.byteOffset,C.byteLength)}return A(v)}(o);if(o==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof o);if(P(o,ArrayBuffer)||o&&P(o.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(P(o,SharedArrayBuffer)||o&&P(o.buffer,SharedArrayBuffer)))return N(o,f,h);if(typeof o=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let y=o.valueOf&&o.valueOf();if(y!=null&&y!==o)return p.from(y,f,h);let m=function(v){if(p.isBuffer(v)){let C=0|L(v.length),Y=d(C);return Y.length===0||v.copy(Y,0,0,C),Y}if(v.length!==void 0)return typeof v.length!="number"||j(v.length)?d(0):A(v);if(v.type==="Buffer"&&Array.isArray(v.data))return A(v.data)}(o);if(m)return m;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof o[Symbol.toPrimitive]=="function")return p.from(o[Symbol.toPrimitive]("string"),f,h);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof o)}function b(o){if(typeof o!="number")throw new TypeError('"size" argument must be of type number');if(o<0)throw new RangeError('The value "'+o+'" is invalid for option "size"')}function T(o){return b(o),d(o<0?0:0|L(o))}function A(o){let f=o.length<0?0:0|L(o.length),h=d(f);for(let y=0;y<f;y+=1)h[y]=255&o[y];return h}function N(o,f,h){if(f<0||o.byteLength<f)throw new RangeError('"offset" is outside of buffer bounds');if(o.byteLength<f+(h||0))throw new RangeError('"length" is outside of buffer bounds');let y;return y=f===void 0&&h===void 0?new Uint8Array(o):h===void 0?new Uint8Array(o,f):new Uint8Array(o,f,h),Object.setPrototypeOf(y,p.prototype),y}function L(o){if(o>=g)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+g.toString(16)+" bytes");return 0|o}function I(o,f){if(p.isBuffer(o))return o.length;if(ArrayBuffer.isView(o)||P(o,ArrayBuffer))return o.byteLength;if(typeof o!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof o);let h=o.length,y=arguments.length>2&&arguments[2]===!0;if(!y&&h===0)return 0;let m=!1;for(;;)switch(f){case"ascii":case"latin1":case"binary":return h;case"utf8":case"utf-8":return w(o).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*h;case"hex":return h>>>1;case"base64":return E(o).length;default:if(m)return y?-1:w(o).length;f=(""+f).toLowerCase(),m=!0}}function O(o,f,h){let y=o[f];o[f]=o[h],o[h]=y}function W(o,f,h,y,m){if(o.length===0)return-1;if(typeof h=="string"?(y=h,h=0):h>2147483647?h=2147483647:h<-2147483648&&(h=-2147483648),j(h=+h)&&(h=m?0:o.length-1),h<0&&(h=o.length+h),h>=o.length){if(m)return-1;h=o.length-1}else if(h<0){if(!m)return-1;h=0}if(typeof f=="string"&&(f=p.from(f,y)),p.isBuffer(f))return f.length===0?-1:Ee(o,f,h,y,m);if(typeof f=="number")return f&=255,typeof Uint8Array.prototype.indexOf=="function"?m?Uint8Array.prototype.indexOf.call(o,f,h):Uint8Array.prototype.lastIndexOf.call(o,f,h):Ee(o,[f],h,y,m);throw new TypeError("val must be string, number or Buffer")}function Ee(o,f,h,y,m){let v,C=1,Y=o.length,X=f.length;if(y!==void 0&&((y=String(y).toLowerCase())==="ucs2"||y==="ucs-2"||y==="utf16le"||y==="utf-16le")){if(o.length<2||f.length<2)return-1;C=2,Y/=2,X/=2,h/=2}function ue(ee,ye){return C===1?ee[ye]:ee.readUInt16BE(ye*C)}if(m){let ee=-1;for(v=h;v<Y;v++)if(ue(o,v)===ue(f,ee===-1?0:v-ee)){if(ee===-1&&(ee=v),v-ee+1===X)return ee*C}else ee!==-1&&(v-=v-ee),ee=-1}else for(h+X>Y&&(h=Y-X),v=h;v>=0;v--){let ee=!0;for(let ye=0;ye<X;ye++)if(ue(o,v+ye)!==ue(f,ye)){ee=!1;break}if(ee)return v}return-1}function k(o,f,h,y){h=Number(h)||0;let m=o.length-h;y?(y=Number(y))>m&&(y=m):y=m;let v=f.length,C;for(y>v/2&&(y=v/2),C=0;C<y;++C){let Y=parseInt(f.substr(2*C,2),16);if(j(Y))return C;o[h+C]=Y}return C}function U(o,f,h,y){return _(w(f,o.length-h),o,h,y)}function H(o,f,h,y){return _(function(m){let v=[];for(let C=0;C<m.length;++C)v.push(255&m.charCodeAt(C));return v}(f),o,h,y)}function V(o,f,h,y){return _(E(f),o,h,y)}function se(o,f,h,y){return _(function(m,v){let C,Y,X,ue=[];for(let ee=0;ee<m.length&&!((v-=2)<0);++ee)C=m.charCodeAt(ee),Y=C>>8,X=C%256,ue.push(X),ue.push(Y);return ue}(f,o.length-h),o,h,y)}function ce(o,f,h){return f===0&&h===o.length?i.fromByteArray(o):i.fromByteArray(o.slice(f,h))}function de(o,f,h){h=Math.min(o.length,h);let y=[],m=f;for(;m<h;){let v=o[m],C=null,Y=v>239?4:v>223?3:v>191?2:1;if(m+Y<=h){let X,ue,ee,ye;switch(Y){case 1:v<128&&(C=v);break;case 2:(192&(X=o[m+1]))==128&&(ye=(31&v)<<6|63&X)>127&&(C=ye);break;case 3:X=o[m+1],ue=o[m+2],(192&X)==128&&(192&ue)==128&&(ye=(15&v)<<12|(63&X)<<6|63&ue)>2047&&(ye<55296||ye>57343)&&(C=ye);break;case 4:X=o[m+1],ue=o[m+2],ee=o[m+3],(192&X)==128&&(192&ue)==128&&(192&ee)==128&&(ye=(15&v)<<18|(63&X)<<12|(63&ue)<<6|63&ee)>65535&&ye<1114112&&(C=ye)}}C===null?(C=65533,Y=1):C>65535&&(C-=65536,y.push(C>>>10&1023|55296),C=56320|1023&C),y.push(C),m+=Y}return function(v){let C=v.length;if(C<=$)return String.fromCharCode.apply(String,v);let Y="",X=0;for(;X<C;)Y+=String.fromCharCode.apply(String,v.slice(X,X+=$));return Y}(y)}t.kMaxLength=g,p.TYPED_ARRAY_SUPPORT=function(){try{let o=new Uint8Array(1),f={foo:function(){return 42}};return Object.setPrototypeOf(f,Uint8Array.prototype),Object.setPrototypeOf(o,f),o.foo()===42}catch{return!1}}(),p.TYPED_ARRAY_SUPPORT||typeof console>"u"||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."),Object.defineProperty(p.prototype,"parent",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.buffer}}),Object.defineProperty(p.prototype,"offset",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.byteOffset}}),p.poolSize=8192,p.from=function(o,f,h){return M(o,f,h)},Object.setPrototypeOf(p.prototype,Uint8Array.prototype),Object.setPrototypeOf(p,Uint8Array),p.alloc=function(o,f,h){return function(y,m,v){return b(y),y<=0?d(y):m!==void 0?typeof v=="string"?d(y).fill(m,v):d(y).fill(m):d(y)}(o,f,h)},p.allocUnsafe=function(o){return T(o)},p.allocUnsafeSlow=function(o){return T(o)},p.isBuffer=function(o){return o!=null&&o._isBuffer===!0&&o!==p.prototype},p.compare=function(o,f){if(P(o,Uint8Array)&&(o=p.from(o,o.offset,o.byteLength)),P(f,Uint8Array)&&(f=p.from(f,f.offset,f.byteLength)),!p.isBuffer(o)||!p.isBuffer(f))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(o===f)return 0;let h=o.length,y=f.length;for(let m=0,v=Math.min(h,y);m<v;++m)if(o[m]!==f[m]){h=o[m],y=f[m];break}return h<y?-1:y<h?1:0},p.isEncoding=function(o){switch(String(o).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}},p.concat=function(o,f){if(!Array.isArray(o))throw new TypeError('"list" argument must be an Array of Buffers');if(o.length===0)return p.alloc(0);let h;if(f===void 0)for(f=0,h=0;h<o.length;++h)f+=o[h].length;let y=p.allocUnsafe(f),m=0;for(h=0;h<o.length;++h){let v=o[h];if(P(v,Uint8Array))m+v.length>y.length?(p.isBuffer(v)||(v=p.from(v)),v.copy(y,m)):Uint8Array.prototype.set.call(y,v,m);else{if(!p.isBuffer(v))throw new TypeError('"list" argument must be an Array of Buffers');v.copy(y,m)}m+=v.length}return y},p.byteLength=I,p.prototype._isBuffer=!0,p.prototype.swap16=function(){let o=this.length;if(o%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let f=0;f<o;f+=2)O(this,f,f+1);return this},p.prototype.swap32=function(){let o=this.length;if(o%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let f=0;f<o;f+=4)O(this,f,f+3),O(this,f+1,f+2);return this},p.prototype.swap64=function(){let o=this.length;if(o%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let f=0;f<o;f+=8)O(this,f,f+7),O(this,f+1,f+6),O(this,f+2,f+5),O(this,f+3,f+4);return this},p.prototype.toString=function(){let o=this.length;return o===0?"":arguments.length===0?de(this,0,o):function(f,h,y){let m=!1;if((h===void 0||h<0)&&(h=0),h>this.length||((y===void 0||y>this.length)&&(y=this.length),y<=0)||(y>>>=0)<=(h>>>=0))return"";for(f||(f="utf8");;)switch(f){case"hex":return xe(this,h,y);case"utf8":case"utf-8":return de(this,h,y);case"ascii":return we(this,h,y);case"latin1":case"binary":return ae(this,h,y);case"base64":return ce(this,h,y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return te(this,h,y);default:if(m)throw new TypeError("Unknown encoding: "+f);f=(f+"").toLowerCase(),m=!0}}.apply(this,arguments)},p.prototype.toLocaleString=p.prototype.toString,p.prototype.equals=function(o){if(!p.isBuffer(o))throw new TypeError("Argument must be a Buffer");return this===o||p.compare(this,o)===0},p.prototype.inspect=function(){let o="",f=t.INSPECT_MAX_BYTES;return o=this.toString("hex",0,f).replace(/(.{2})/g,"$1 ").trim(),this.length>f&&(o+=" ... "),"<Buffer "+o+">"},u&&(p.prototype[u]=p.prototype.inspect),p.prototype.compare=function(o,f,h,y,m){if(P(o,Uint8Array)&&(o=p.from(o,o.offset,o.byteLength)),!p.isBuffer(o))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof o);if(f===void 0&&(f=0),h===void 0&&(h=o?o.length:0),y===void 0&&(y=0),m===void 0&&(m=this.length),f<0||h>o.length||y<0||m>this.length)throw new RangeError("out of range index");if(y>=m&&f>=h)return 0;if(y>=m)return-1;if(f>=h)return 1;if(this===o)return 0;let v=(m>>>=0)-(y>>>=0),C=(h>>>=0)-(f>>>=0),Y=Math.min(v,C),X=this.slice(y,m),ue=o.slice(f,h);for(let ee=0;ee<Y;++ee)if(X[ee]!==ue[ee]){v=X[ee],C=ue[ee];break}return v<C?-1:C<v?1:0},p.prototype.includes=function(o,f,h){return this.indexOf(o,f,h)!==-1},p.prototype.indexOf=function(o,f,h){return W(this,o,f,h,!0)},p.prototype.lastIndexOf=function(o,f,h){return W(this,o,f,h,!1)},p.prototype.write=function(o,f,h,y){if(f===void 0)y="utf8",h=this.length,f=0;else if(h===void 0&&typeof f=="string")y=f,h=this.length,f=0;else{if(!isFinite(f))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");f>>>=0,isFinite(h)?(h>>>=0,y===void 0&&(y="utf8")):(y=h,h=void 0)}let m=this.length-f;if((h===void 0||h>m)&&(h=m),o.length>0&&(h<0||f<0)||f>this.length)throw new RangeError("Attempt to write outside buffer bounds");y||(y="utf8");let v=!1;for(;;)switch(y){case"hex":return k(this,o,f,h);case"utf8":case"utf-8":return U(this,o,f,h);case"ascii":case"latin1":case"binary":return H(this,o,f,h);case"base64":return V(this,o,f,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return se(this,o,f,h);default:if(v)throw new TypeError("Unknown encoding: "+y);y=(""+y).toLowerCase(),v=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};let $=4096;function we(o,f,h){let y="";h=Math.min(o.length,h);for(let m=f;m<h;++m)y+=String.fromCharCode(127&o[m]);return y}function ae(o,f,h){let y="";h=Math.min(o.length,h);for(let m=f;m<h;++m)y+=String.fromCharCode(o[m]);return y}function xe(o,f,h){let y=o.length;(!f||f<0)&&(f=0),(!h||h<0||h>y)&&(h=y);let m="";for(let v=f;v<h;++v)m+=z[o[v]];return m}function te(o,f,h){let y=o.slice(f,h),m="";for(let v=0;v<y.length-1;v+=2)m+=String.fromCharCode(y[v]+256*y[v+1]);return m}function F(o,f,h){if(o%1!=0||o<0)throw new RangeError("offset is not uint");if(o+f>h)throw new RangeError("Trying to access beyond buffer length")}function fe(o,f,h,y,m,v){if(!p.isBuffer(o))throw new TypeError('"buffer" argument must be a Buffer instance');if(f>m||f<v)throw new RangeError('"value" argument is out of bounds');if(h+y>o.length)throw new RangeError("Index out of range")}function kr(o,f,h,y,m){mr(f,y,m,o,h,7);let v=Number(f&BigInt(4294967295));o[h++]=v,v>>=8,o[h++]=v,v>>=8,o[h++]=v,v>>=8,o[h++]=v;let C=Number(f>>BigInt(32)&BigInt(4294967295));return o[h++]=C,C>>=8,o[h++]=C,C>>=8,o[h++]=C,C>>=8,o[h++]=C,h}function Ur(o,f,h,y,m){mr(f,y,m,o,h,7);let v=Number(f&BigInt(4294967295));o[h+7]=v,v>>=8,o[h+6]=v,v>>=8,o[h+5]=v,v>>=8,o[h+4]=v;let C=Number(f>>BigInt(32)&BigInt(4294967295));return o[h+3]=C,C>>=8,o[h+2]=C,C>>=8,o[h+1]=C,C>>=8,o[h]=C,h+8}function bt(o,f,h,y,m,v){if(h+y>o.length)throw new RangeError("Index out of range");if(h<0)throw new RangeError("Index out of range")}function _t(o,f,h,y,m){return f=+f,h>>>=0,m||bt(o,0,h,4),a.write(o,f,h,y,23,4),h+4}function wr(o,f,h,y,m){return f=+f,h>>>=0,m||bt(o,0,h,8),a.write(o,f,h,y,52,8),h+8}p.prototype.slice=function(o,f){let h=this.length;(o=~~o)<0?(o+=h)<0&&(o=0):o>h&&(o=h),(f=f===void 0?h:~~f)<0?(f+=h)<0&&(f=0):f>h&&(f=h),f<o&&(f=o);let y=this.subarray(o,f);return Object.setPrototypeOf(y,p.prototype),y},p.prototype.readUintLE=p.prototype.readUIntLE=function(o,f,h){o>>>=0,f>>>=0,h||F(o,f,this.length);let y=this[o],m=1,v=0;for(;++v<f&&(m*=256);)y+=this[o+v]*m;return y},p.prototype.readUintBE=p.prototype.readUIntBE=function(o,f,h){o>>>=0,f>>>=0,h||F(o,f,this.length);let y=this[o+--f],m=1;for(;f>0&&(m*=256);)y+=this[o+--f]*m;return y},p.prototype.readUint8=p.prototype.readUInt8=function(o,f){return o>>>=0,f||F(o,1,this.length),this[o]},p.prototype.readUint16LE=p.prototype.readUInt16LE=function(o,f){return o>>>=0,f||F(o,2,this.length),this[o]|this[o+1]<<8},p.prototype.readUint16BE=p.prototype.readUInt16BE=function(o,f){return o>>>=0,f||F(o,2,this.length),this[o]<<8|this[o+1]},p.prototype.readUint32LE=p.prototype.readUInt32LE=function(o,f){return o>>>=0,f||F(o,4,this.length),(this[o]|this[o+1]<<8|this[o+2]<<16)+16777216*this[o+3]},p.prototype.readUint32BE=p.prototype.readUInt32BE=function(o,f){return o>>>=0,f||F(o,4,this.length),16777216*this[o]+(this[o+1]<<16|this[o+2]<<8|this[o+3])},p.prototype.readBigUInt64LE=K(function(o){s(o>>>=0,"offset");let f=this[o],h=this[o+7];f!==void 0&&h!==void 0||l(o,this.length-8);let y=f+256*this[++o]+65536*this[++o]+this[++o]*2**24,m=this[++o]+256*this[++o]+65536*this[++o]+h*2**24;return BigInt(y)+(BigInt(m)<<BigInt(32))}),p.prototype.readBigUInt64BE=K(function(o){s(o>>>=0,"offset");let f=this[o],h=this[o+7];f!==void 0&&h!==void 0||l(o,this.length-8);let y=f*2**24+65536*this[++o]+256*this[++o]+this[++o],m=this[++o]*2**24+65536*this[++o]+256*this[++o]+h;return(BigInt(y)<<BigInt(32))+BigInt(m)}),p.prototype.readIntLE=function(o,f,h){o>>>=0,f>>>=0,h||F(o,f,this.length);let y=this[o],m=1,v=0;for(;++v<f&&(m*=256);)y+=this[o+v]*m;return y>=(m*=128)&&(y-=Math.pow(2,8*f)),y},p.prototype.readIntBE=function(o,f,h){o>>>=0,f>>>=0,h||F(o,f,this.length);let y=f,m=1,v=this[o+--y];for(;y>0&&(m*=256);)v+=this[o+--y]*m;return v>=(m*=128)&&(v-=Math.pow(2,8*f)),v},p.prototype.readInt8=function(o,f){return o>>>=0,f||F(o,1,this.length),128&this[o]?-1*(255-this[o]+1):this[o]},p.prototype.readInt16LE=function(o,f){o>>>=0,f||F(o,2,this.length);let h=this[o]|this[o+1]<<8;return 32768&h?4294901760|h:h},p.prototype.readInt16BE=function(o,f){o>>>=0,f||F(o,2,this.length);let h=this[o+1]|this[o]<<8;return 32768&h?4294901760|h:h},p.prototype.readInt32LE=function(o,f){return o>>>=0,f||F(o,4,this.length),this[o]|this[o+1]<<8|this[o+2]<<16|this[o+3]<<24},p.prototype.readInt32BE=function(o,f){return o>>>=0,f||F(o,4,this.length),this[o]<<24|this[o+1]<<16|this[o+2]<<8|this[o+3]},p.prototype.readBigInt64LE=K(function(o){s(o>>>=0,"offset");let f=this[o],h=this[o+7];f!==void 0&&h!==void 0||l(o,this.length-8);let y=this[o+4]+256*this[o+5]+65536*this[o+6]+(h<<24);return(BigInt(y)<<BigInt(32))+BigInt(f+256*this[++o]+65536*this[++o]+this[++o]*2**24)}),p.prototype.readBigInt64BE=K(function(o){s(o>>>=0,"offset");let f=this[o],h=this[o+7];f!==void 0&&h!==void 0||l(o,this.length-8);let y=(f<<24)+65536*this[++o]+256*this[++o]+this[++o];return(BigInt(y)<<BigInt(32))+BigInt(this[++o]*2**24+65536*this[++o]+256*this[++o]+h)}),p.prototype.readFloatLE=function(o,f){return o>>>=0,f||F(o,4,this.length),a.read(this,o,!0,23,4)},p.prototype.readFloatBE=function(o,f){return o>>>=0,f||F(o,4,this.length),a.read(this,o,!1,23,4)},p.prototype.readDoubleLE=function(o,f){return o>>>=0,f||F(o,8,this.length),a.read(this,o,!0,52,8)},p.prototype.readDoubleBE=function(o,f){return o>>>=0,f||F(o,8,this.length),a.read(this,o,!1,52,8)},p.prototype.writeUintLE=p.prototype.writeUIntLE=function(o,f,h,y){o=+o,f>>>=0,h>>>=0,!y&&fe(this,o,f,h,Math.pow(2,8*h)-1,0);let m=1,v=0;for(this[f]=255&o;++v<h&&(m*=256);)this[f+v]=o/m&255;return f+h},p.prototype.writeUintBE=p.prototype.writeUIntBE=function(o,f,h,y){o=+o,f>>>=0,h>>>=0,!y&&fe(this,o,f,h,Math.pow(2,8*h)-1,0);let m=h-1,v=1;for(this[f+m]=255&o;--m>=0&&(v*=256);)this[f+m]=o/v&255;return f+h},p.prototype.writeUint8=p.prototype.writeUInt8=function(o,f,h){return o=+o,f>>>=0,h||fe(this,o,f,1,255,0),this[f]=255&o,f+1},p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(o,f,h){return o=+o,f>>>=0,h||fe(this,o,f,2,65535,0),this[f]=255&o,this[f+1]=o>>>8,f+2},p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(o,f,h){return o=+o,f>>>=0,h||fe(this,o,f,2,65535,0),this[f]=o>>>8,this[f+1]=255&o,f+2},p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(o,f,h){return o=+o,f>>>=0,h||fe(this,o,f,4,4294967295,0),this[f+3]=o>>>24,this[f+2]=o>>>16,this[f+1]=o>>>8,this[f]=255&o,f+4},p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(o,f,h){return o=+o,f>>>=0,h||fe(this,o,f,4,4294967295,0),this[f]=o>>>24,this[f+1]=o>>>16,this[f+2]=o>>>8,this[f+3]=255&o,f+4},p.prototype.writeBigUInt64LE=K(function(o,f=0){return kr(this,o,f,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeBigUInt64BE=K(function(o,f=0){return Ur(this,o,f,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeIntLE=function(o,f,h,y){if(o=+o,f>>>=0,!y){let Y=Math.pow(2,8*h-1);fe(this,o,f,h,Y-1,-Y)}let m=0,v=1,C=0;for(this[f]=255&o;++m<h&&(v*=256);)o<0&&C===0&&this[f+m-1]!==0&&(C=1),this[f+m]=(o/v>>0)-C&255;return f+h},p.prototype.writeIntBE=function(o,f,h,y){if(o=+o,f>>>=0,!y){let Y=Math.pow(2,8*h-1);fe(this,o,f,h,Y-1,-Y)}let m=h-1,v=1,C=0;for(this[f+m]=255&o;--m>=0&&(v*=256);)o<0&&C===0&&this[f+m+1]!==0&&(C=1),this[f+m]=(o/v>>0)-C&255;return f+h},p.prototype.writeInt8=function(o,f,h){return o=+o,f>>>=0,h||fe(this,o,f,1,127,-128),o<0&&(o=255+o+1),this[f]=255&o,f+1},p.prototype.writeInt16LE=function(o,f,h){return o=+o,f>>>=0,h||fe(this,o,f,2,32767,-32768),this[f]=255&o,this[f+1]=o>>>8,f+2},p.prototype.writeInt16BE=function(o,f,h){return o=+o,f>>>=0,h||fe(this,o,f,2,32767,-32768),this[f]=o>>>8,this[f+1]=255&o,f+2},p.prototype.writeInt32LE=function(o,f,h){return o=+o,f>>>=0,h||fe(this,o,f,4,2147483647,-2147483648),this[f]=255&o,this[f+1]=o>>>8,this[f+2]=o>>>16,this[f+3]=o>>>24,f+4},p.prototype.writeInt32BE=function(o,f,h){return o=+o,f>>>=0,h||fe(this,o,f,4,2147483647,-2147483648),o<0&&(o=4294967295+o+1),this[f]=o>>>24,this[f+1]=o>>>16,this[f+2]=o>>>8,this[f+3]=255&o,f+4},p.prototype.writeBigInt64LE=K(function(o,f=0){return kr(this,o,f,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),p.prototype.writeBigInt64BE=K(function(o,f=0){return Ur(this,o,f,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),p.prototype.writeFloatLE=function(o,f,h){return _t(this,o,f,!0,h)},p.prototype.writeFloatBE=function(o,f,h){return _t(this,o,f,!1,h)},p.prototype.writeDoubleLE=function(o,f,h){return wr(this,o,f,!0,h)},p.prototype.writeDoubleBE=function(o,f,h){return wr(this,o,f,!1,h)},p.prototype.copy=function(o,f,h,y){if(!p.isBuffer(o))throw new TypeError("argument should be a Buffer");if(h||(h=0),y||y===0||(y=this.length),f>=o.length&&(f=o.length),f||(f=0),y>0&&y<h&&(y=h),y===h||o.length===0||this.length===0)return 0;if(f<0)throw new RangeError("targetStart out of bounds");if(h<0||h>=this.length)throw new RangeError("Index out of range");if(y<0)throw new RangeError("sourceEnd out of bounds");y>this.length&&(y=this.length),o.length-f<y-h&&(y=o.length-f+h);let m=y-h;return this===o&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(f,h,y):Uint8Array.prototype.set.call(o,this.subarray(h,y),f),m},p.prototype.fill=function(o,f,h,y){if(typeof o=="string"){if(typeof f=="string"?(y=f,f=0,h=this.length):typeof h=="string"&&(y=h,h=this.length),y!==void 0&&typeof y!="string")throw new TypeError("encoding must be a string");if(typeof y=="string"&&!p.isEncoding(y))throw new TypeError("Unknown encoding: "+y);if(o.length===1){let v=o.charCodeAt(0);(y==="utf8"&&v<128||y==="latin1")&&(o=v)}}else typeof o=="number"?o&=255:typeof o=="boolean"&&(o=Number(o));if(f<0||this.length<f||this.length<h)throw new RangeError("Out of range index");if(h<=f)return this;let m;if(f>>>=0,h=h===void 0?this.length:h>>>0,o||(o=0),typeof o=="number")for(m=f;m<h;++m)this[m]=o;else{let v=p.isBuffer(o)?o:p.from(o,y),C=v.length;if(C===0)throw new TypeError('The value "'+o+'" is invalid for argument "value"');for(m=0;m<h-f;++m)this[m+f]=v[m%C]}return this};let Oe={};function Ge(o,f,h){Oe[o]=class extends h{constructor(){super(),Object.defineProperty(this,"message",{value:f.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${o}]`,this.stack,delete this.name}get code(){return o}set code(y){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:y,writable:!0})}toString(){return`${this.name} [${o}]: ${this.message}`}}}function Se(o){let f="",h=o.length,y=o[0]==="-"?1:0;for(;h>=y+4;h-=3)f=`_${o.slice(h-3,h)}${f}`;return`${o.slice(0,h)}${f}`}function mr(o,f,h,y,m,v){if(o>h||o<f){let C=typeof f=="bigint"?"n":"",Y;throw Y=v>3?f===0||f===BigInt(0)?`>= 0${C} and < 2${C} ** ${8*(v+1)}${C}`:`>= -(2${C} ** ${8*(v+1)-1}${C}) and < 2 ** ${8*(v+1)-1}${C}`:`>= ${f}${C} and <= ${h}${C}`,new Oe.ERR_OUT_OF_RANGE("value",Y,o)}(function(C,Y,X){s(Y,"offset"),C[Y]!==void 0&&C[Y+X]!==void 0||l(Y,C.length-(X+1))})(y,m,v)}function s(o,f){if(typeof o!="number")throw new Oe.ERR_INVALID_ARG_TYPE(f,"number",o)}function l(o,f,h){throw Math.floor(o)!==o?(s(o,h),new Oe.ERR_OUT_OF_RANGE(h||"offset","an integer",o)):f<0?new Oe.ERR_BUFFER_OUT_OF_BOUNDS:new Oe.ERR_OUT_OF_RANGE(h||"offset",`>= ${h?1:0} and <= ${f}`,o)}Ge("ERR_BUFFER_OUT_OF_BOUNDS",function(o){return o?`${o} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Ge("ERR_INVALID_ARG_TYPE",function(o,f){return`The "${o}" argument must be of type number. Received type ${typeof f}`},TypeError),Ge("ERR_OUT_OF_RANGE",function(o,f,h){let y=`The value of "${o}" is out of range.`,m=h;return Number.isInteger(h)&&Math.abs(h)>2**32?m=Se(String(h)):typeof h=="bigint"&&(m=String(h),(h>BigInt(2)**BigInt(32)||h<-(BigInt(2)**BigInt(32)))&&(m=Se(m)),m+="n"),y+=` It must be ${f}. Received ${m}`},RangeError);let c=/[^+\/0-9A-Za-z-_]/g;function w(o,f){let h;f=f||1/0;let y=o.length,m=null,v=[];for(let C=0;C<y;++C){if((h=o.charCodeAt(C))>55295&&h<57344){if(!m){if(h>56319){(f-=3)>-1&&v.push(239,191,189);continue}if(C+1===y){(f-=3)>-1&&v.push(239,191,189);continue}m=h;continue}if(h<56320){(f-=3)>-1&&v.push(239,191,189),m=h;continue}h=65536+(m-55296<<10|h-56320)}else m&&(f-=3)>-1&&v.push(239,191,189);if(m=null,h<128){if((f-=1)<0)break;v.push(h)}else if(h<2048){if((f-=2)<0)break;v.push(h>>6|192,63&h|128)}else if(h<65536){if((f-=3)<0)break;v.push(h>>12|224,h>>6&63|128,63&h|128)}else{if(!(h<1114112))throw new Error("Invalid code point");if((f-=4)<0)break;v.push(h>>18|240,h>>12&63|128,h>>6&63|128,63&h|128)}}return v}function E(o){return i.toByteArray(function(f){if((f=(f=f.split("=")[0]).trim().replace(c,"")).length<2)return"";for(;f.length%4!=0;)f+="=";return f}(o))}function _(o,f,h,y){let m;for(m=0;m<y&&!(m+h>=f.length||m>=o.length);++m)f[m+h]=o[m];return m}function P(o,f){return o instanceof f||o!=null&&o.constructor!=null&&o.constructor.name!=null&&o.constructor.name===f.name}function j(o){return o!=o}let z=function(){let o=new Array(256);for(let f=0;f<16;++f){let h=16*f;for(let y=0;y<16;++y)o[h+y]="0123456789abcdef"[f]+"0123456789abcdef"[y]}return o}();function K(o){return typeof BigInt>"u"?G:o}function G(){throw new Error("BigInt not supported")}}).call(this,e("buffer").Buffer)},{"base64-js":5,buffer:2,ieee754:6}],5:[function(e,r,t){"use strict";t.byteLength=function(b){var T=p(b),A=T[0],N=T[1];return 3*(A+N)/4-N},t.toByteArray=function(b){var T,A,N=p(b),L=N[0],I=N[1],O=new a(function(k,U,H){return 3*(U+H)/4-H}(0,L,I)),W=0,Ee=I>0?L-4:L;for(A=0;A<Ee;A+=4)T=i[b.charCodeAt(A)]<<18|i[b.charCodeAt(A+1)]<<12|i[b.charCodeAt(A+2)]<<6|i[b.charCodeAt(A+3)],O[W++]=T>>16&255,O[W++]=T>>8&255,O[W++]=255&T;return I===2&&(T=i[b.charCodeAt(A)]<<2|i[b.charCodeAt(A+1)]>>4,O[W++]=255&T),I===1&&(T=i[b.charCodeAt(A)]<<10|i[b.charCodeAt(A+1)]<<4|i[b.charCodeAt(A+2)]>>2,O[W++]=T>>8&255,O[W++]=255&T),O},t.fromByteArray=function(b){for(var T,A=b.length,N=A%3,L=[],I=0,O=A-N;I<O;I+=16383)L.push(M(b,I,I+16383>O?O:I+16383));return N===1?(T=b[A-1],L.push(n[T>>2]+n[T<<4&63]+"==")):N===2&&(T=(b[A-2]<<8)+b[A-1],L.push(n[T>>10]+n[T>>4&63]+n[T<<2&63]+"=")),L.join("")};for(var n=[],i=[],a=typeof Uint8Array<"u"?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g=0,d=u.length;g<d;++g)n[g]=u[g],i[u.charCodeAt(g)]=g;function p(b){var T=b.length;if(T%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var A=b.indexOf("=");return A===-1&&(A=T),[A,A===T?0:4-A%4]}function M(b,T,A){for(var N,L,I=[],O=T;O<A;O+=3)N=(b[O]<<16&16711680)+(b[O+1]<<8&65280)+(255&b[O+2]),I.push(n[(L=N)>>18&63]+n[L>>12&63]+n[L>>6&63]+n[63&L]);return I.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],6:[function(e,r,t){t.read=function(n,i,a,u,g){var d,p,M=8*g-u-1,b=(1<<M)-1,T=b>>1,A=-7,N=a?g-1:0,L=a?-1:1,I=n[i+N];for(N+=L,d=I&(1<<-A)-1,I>>=-A,A+=M;A>0;d=256*d+n[i+N],N+=L,A-=8);for(p=d&(1<<-A)-1,d>>=-A,A+=u;A>0;p=256*p+n[i+N],N+=L,A-=8);if(d===0)d=1-T;else{if(d===b)return p?NaN:1/0*(I?-1:1);p+=Math.pow(2,u),d-=T}return(I?-1:1)*p*Math.pow(2,d-u)},t.write=function(n,i,a,u,g,d){var p,M,b,T=8*d-g-1,A=(1<<T)-1,N=A>>1,L=g===23?Math.pow(2,-24)-Math.pow(2,-77):0,I=u?0:d-1,O=u?1:-1,W=i<0||i===0&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(M=isNaN(i)?1:0,p=A):(p=Math.floor(Math.log(i)/Math.LN2),i*(b=Math.pow(2,-p))<1&&(p--,b*=2),(i+=p+N>=1?L/b:L*Math.pow(2,1-N))*b>=2&&(p++,b/=2),p+N>=A?(M=0,p=A):p+N>=1?(M=(i*b-1)*Math.pow(2,g),p+=N):(M=i*Math.pow(2,N-1)*Math.pow(2,g),p=0));g>=8;n[a+I]=255&M,I+=O,M/=256,g-=8);for(p=p<<g|M,T+=g;T>0;n[a+I]=255&p,I+=O,p/=256,T-=8);n[a+I-O]|=128*W}},{}]},{},[4])(4)})});var D,S=Ze(()=>{D=Qe(ho())});var xn=q((An,co)=>{x();S();(function(e,r){if(typeof define=="function"&&define.amd)define("webextension-polyfill",["module"],r);else if(typeof An<"u")r(co);else{var t={exports:{}};r(t),e.browser=t.exports}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:An,function(e){"use strict";if(!globalThis.chrome?.runtime?.id)throw new Error("This script should only be loaded in a browser extension.");if(typeof globalThis.browser>"u"||Object.getPrototypeOf(globalThis.browser)!==Object.prototype){let r="The message port closed before a response was received.",t=n=>{let i={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(Object.keys(i).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class a extends WeakMap{constructor(U,H=void 0){super(H),this.createItem=U}get(U){return this.has(U)||this.set(U,this.createItem(U)),super.get(U)}}let u=k=>k&&typeof k=="object"&&typeof k.then=="function",g=(k,U)=>(...H)=>{n.runtime.lastError?k.reject(new Error(n.runtime.lastError.message)):U.singleCallbackArg||H.length<=1&&U.singleCallbackArg!==!1?k.resolve(H[0]):k.resolve(H)},d=k=>k==1?"argument":"arguments",p=(k,U)=>function(V,...se){if(se.length<U.minArgs)throw new Error(`Expected at least ${U.minArgs} ${d(U.minArgs)} for ${k}(), got ${se.length}`);if(se.length>U.maxArgs)throw new Error(`Expected at most ${U.maxArgs} ${d(U.maxArgs)} for ${k}(), got ${se.length}`);return new Promise((ce,de)=>{if(U.fallbackToNoCallback)try{V[k](...se,g({resolve:ce,reject:de},U))}catch($){console.warn(`${k} API method doesn't seem to support the callback parameter, falling back to call it without a callback: `,$),V[k](...se),U.fallbackToNoCallback=!1,U.noCallback=!0,ce()}else U.noCallback?(V[k](...se),ce()):V[k](...se,g({resolve:ce,reject:de},U))})},M=(k,U,H)=>new Proxy(U,{apply(V,se,ce){return H.call(se,k,...ce)}}),b=Function.call.bind(Object.prototype.hasOwnProperty),T=(k,U={},H={})=>{let V=Object.create(null),se={has(de,$){return $ in k||$ in V},get(de,$,we){if($ in V)return V[$];if(!($ in k))return;let ae=k[$];if(typeof ae=="function")if(typeof U[$]=="function")ae=M(k,k[$],U[$]);else if(b(H,$)){let xe=p($,H[$]);ae=M(k,k[$],xe)}else ae=ae.bind(k);else if(typeof ae=="object"&&ae!==null&&(b(U,$)||b(H,$)))ae=T(ae,U[$],H[$]);else if(b(H,"*"))ae=T(ae,U[$],H["*"]);else return Object.defineProperty(V,$,{configurable:!0,enumerable:!0,get(){return k[$]},set(xe){k[$]=xe}}),ae;return V[$]=ae,ae},set(de,$,we,ae){return $ in V?V[$]=we:k[$]=we,!0},defineProperty(de,$,we){return Reflect.defineProperty(V,$,we)},deleteProperty(de,$){return Reflect.deleteProperty(V,$)}},ce=Object.create(k);return new Proxy(ce,se)},A=k=>({addListener(U,H,...V){U.addListener(k.get(H),...V)},hasListener(U,H){return U.hasListener(k.get(H))},removeListener(U,H){U.removeListener(k.get(H))}}),N=new a(k=>typeof k!="function"?k:function(H){let V=T(H,{},{getContent:{minArgs:0,maxArgs:0}});k(V)}),L=new a(k=>typeof k!="function"?k:function(H,V,se){let ce=!1,de,$=new Promise(te=>{de=function(F){ce=!0,te(F)}}),we;try{we=k(H,V,de)}catch(te){we=Promise.reject(te)}let ae=we!==!0&&u(we);if(we!==!0&&!ae&&!ce)return!1;let xe=te=>{te.then(F=>{se(F)},F=>{let fe;F&&(F instanceof Error||typeof F.message=="string")?fe=F.message:fe="An unexpected error occurred",se({__mozWebExtensionPolyfillReject__:!0,message:fe})}).catch(F=>{console.error("Failed to send onMessage rejected reply",F)})};return xe(ae?we:$),!0}),I=({reject:k,resolve:U},H)=>{n.runtime.lastError?n.runtime.lastError.message===r?U():k(new Error(n.runtime.lastError.message)):H&&H.__mozWebExtensionPolyfillReject__?k(new Error(H.message)):U(H)},O=(k,U,H,...V)=>{if(V.length<U.minArgs)throw new Error(`Expected at least ${U.minArgs} ${d(U.minArgs)} for ${k}(), got ${V.length}`);if(V.length>U.maxArgs)throw new Error(`Expected at most ${U.maxArgs} ${d(U.maxArgs)} for ${k}(), got ${V.length}`);return new Promise((se,ce)=>{let de=I.bind(null,{resolve:se,reject:ce});V.push(de),H.sendMessage(...V)})},W={devtools:{network:{onRequestFinished:A(N)}},runtime:{onMessage:A(L),onMessageExternal:A(L),sendMessage:O.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:O.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},Ee={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return i.privacy={network:{"*":Ee},services:{"*":Ee},websites:{"*":Ee}},T(n,W,i)};e.exports=t(chrome)}else e.exports=globalThis.browser})});var Pe=q((z0,Cn)=>{"use strict";x();S();typeof B>"u"||!B.version||B.version.indexOf("v0.")===0||B.version.indexOf("v1.")===0&&B.version.indexOf("v1.8.")!==0?Cn.exports={nextTick:Ku}:Cn.exports=B;function Ku(e,r,t,n){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var i=arguments.length,a,u;switch(i){case 0:case 1:return B.nextTick(e);case 2:return B.nextTick(function(){e.call(null,r)});case 3:return B.nextTick(function(){e.call(null,r,t)});case 4:return B.nextTick(function(){e.call(null,r,t,n)});default:for(a=new Array(i-1),u=0;u<a.length;)a[u++]=arguments[u];return B.nextTick(function(){e.apply(null,a)})}}});var wo=q((J0,yo)=>{x();S();var Xu={}.toString;yo.exports=Array.isArray||function(e){return Xu.call(e)=="[object Array]"}});var tr=q((ey,Bn)=>{"use strict";x();S();var _r=typeof Reflect=="object"?Reflect:null,mo=_r&&typeof _r.apply=="function"?_r.apply:function(r,t,n){return Function.prototype.apply.call(r,t,n)},St;_r&&typeof _r.ownKeys=="function"?St=_r.ownKeys:Object.getOwnPropertySymbols?St=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:St=function(r){return Object.getOwnPropertyNames(r)};function Ju(e){console&&console.warn&&console.warn(e)}var bo=Number.isNaN||function(r){return r!==r};function re(){re.init.call(this)}Bn.exports=re;Bn.exports.once=rl;re.EventEmitter=re;re.prototype._events=void 0;re.prototype._eventsCount=0;re.prototype._maxListeners=void 0;var vo=10;function Tt(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(re,"defaultMaxListeners",{enumerable:!0,get:function(){return vo},set:function(e){if(typeof e!="number"||e<0||bo(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");vo=e}});re.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};re.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||bo(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function _o(e){return e._maxListeners===void 0?re.defaultMaxListeners:e._maxListeners}re.prototype.getMaxListeners=function(){return _o(this)};re.prototype.emit=function(r){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i=r==="error",a=this._events;if(a!==void 0)i=i&&a.error===void 0;else if(!i)return!1;if(i){var u;if(t.length>0&&(u=t[0]),u instanceof Error)throw u;var g=new Error("Unhandled error."+(u?" ("+u.message+")":""));throw g.context=u,g}var d=a[r];if(d===void 0)return!1;if(typeof d=="function")mo(d,this,t);else for(var p=d.length,M=To(d,p),n=0;n<p;++n)mo(M[n],this,t);return!0};function Eo(e,r,t,n){var i,a,u;if(Tt(t),a=e._events,a===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit("newListener",r,t.listener?t.listener:t),a=e._events),u=a[r]),u===void 0)u=a[r]=t,++e._eventsCount;else if(typeof u=="function"?u=a[r]=n?[t,u]:[u,t]:n?u.unshift(t):u.push(t),i=_o(e),i>0&&u.length>i&&!u.warned){u.warned=!0;var g=new Error("Possible EventEmitter memory leak detected. "+u.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");g.name="MaxListenersExceededWarning",g.emitter=e,g.type=r,g.count=u.length,Ju(g)}return e}re.prototype.addListener=function(r,t){return Eo(this,r,t,!1)};re.prototype.on=re.prototype.addListener;re.prototype.prependListener=function(r,t){return Eo(this,r,t,!0)};function Zu(){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 Ao(e,r,t){var n={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},i=Zu.bind(n);return i.listener=t,n.wrapFn=i,i}re.prototype.once=function(r,t){return Tt(t),this.on(r,Ao(this,r,t)),this};re.prototype.prependOnceListener=function(r,t){return Tt(t),this.prependListener(r,Ao(this,r,t)),this};re.prototype.removeListener=function(r,t){var n,i,a,u,g;if(Tt(t),i=this._events,i===void 0)return this;if(n=i[r],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete i[r],i.removeListener&&this.emit("removeListener",r,n.listener||t));else if(typeof n!="function"){for(a=-1,u=n.length-1;u>=0;u--)if(n[u]===t||n[u].listener===t){g=n[u].listener,a=u;break}if(a<0)return this;a===0?n.shift():Qu(n,a),n.length===1&&(i[r]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",r,g||t)}return this};re.prototype.off=re.prototype.removeListener;re.prototype.removeAllListeners=function(r){var t,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[r]),this;if(arguments.length===0){var a=Object.keys(n),u;for(i=0;i<a.length;++i)u=a[i],u!=="removeListener"&&this.removeAllListeners(u);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(t=n[r],typeof t=="function")this.removeListener(r,t);else if(t!==void 0)for(i=t.length-1;i>=0;i--)this.removeListener(r,t[i]);return this};function xo(e,r,t){var n=e._events;if(n===void 0)return[];var i=n[r];return i===void 0?[]:typeof i=="function"?t?[i.listener||i]:[i]:t?el(i):To(i,i.length)}re.prototype.listeners=function(r){return xo(this,r,!0)};re.prototype.rawListeners=function(r){return xo(this,r,!1)};re.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):So.call(e,r)};re.prototype.listenerCount=So;function So(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}re.prototype.eventNames=function(){return this._eventsCount>0?St(this._events):[]};function To(e,r){for(var t=new Array(r),n=0;n<r;++n)t[n]=e[n];return t}function Qu(e,r){for(;r+1<e.length;r++)e[r]=e[r+1];e.pop()}function el(e){for(var r=new Array(e.length),t=0;t<r.length;++t)r[t]=e[t].listener||e[t];return r}function rl(e,r){return new Promise(function(t,n){function i(u){e.removeListener(r,a),n(u)}function a(){typeof e.removeListener=="function"&&e.removeListener("error",i),t([].slice.call(arguments))}Ro(e,r,a,{once:!0}),r!=="error"&&tl(e,i,{once:!0})})}function tl(e,r,t){typeof e.on=="function"&&Ro(e,"error",r,t)}function Ro(e,r,t,n){if(typeof e.on=="function")n.once?e.once(r,t):e.on(r,t);else if(typeof e.addEventListener=="function")e.addEventListener(r,function i(a){n.once&&e.removeEventListener(r,i),t(a)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}});var Mn=q((ny,Co)=>{x();S();Co.exports=tr().EventEmitter});var zo={};vn(zo,{Buffer:()=>R,INSPECT_MAX_BYTES:()=>Po,SlowBuffer:()=>dl,isBuffer:()=>Go,kMaxLength:()=>fl});function Io(){In=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,t=e.length;r<t;++r)Te[r]=e[r],Ae[e.charCodeAt(r)]=r;Ae["-".charCodeAt(0)]=62,Ae["_".charCodeAt(0)]=63}function il(e){In||Io();var r,t,n,i,a,u,g=e.length;if(g%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a=e[g-2]==="="?2:e[g-1]==="="?1:0,u=new nl(g*3/4-a),n=a>0?g-4:g;var d=0;for(r=0,t=0;r<n;r+=4,t+=3)i=Ae[e.charCodeAt(r)]<<18|Ae[e.charCodeAt(r+1)]<<12|Ae[e.charCodeAt(r+2)]<<6|Ae[e.charCodeAt(r+3)],u[d++]=i>>16&255,u[d++]=i>>8&255,u[d++]=i&255;return a===2?(i=Ae[e.charCodeAt(r)]<<2|Ae[e.charCodeAt(r+1)]>>4,u[d++]=i&255):a===1&&(i=Ae[e.charCodeAt(r)]<<10|Ae[e.charCodeAt(r+1)]<<4|Ae[e.charCodeAt(r+2)]>>2,u[d++]=i>>8&255,u[d++]=i&255),u}function ol(e){return Te[e>>18&63]+Te[e>>12&63]+Te[e>>6&63]+Te[e&63]}function al(e,r,t){for(var n,i=[],a=r;a<t;a+=3)n=(e[a]<<16)+(e[a+1]<<8)+e[a+2],i.push(ol(n));return i.join("")}function Bo(e){In||Io();for(var r,t=e.length,n=t%3,i="",a=[],u=16383,g=0,d=t-n;g<d;g+=u)a.push(al(e,g,g+u>d?d:g+u));return n===1?(r=e[t-1],i+=Te[r>>2],i+=Te[r<<4&63],i+="=="):n===2&&(r=(e[t-2]<<8)+e[t-1],i+=Te[r>>10],i+=Te[r>>4&63],i+=Te[r<<2&63],i+="="),a.push(i),a.join("")}function Bt(e,r,t,n,i){var a,u,g=i*8-n-1,d=(1<<g)-1,p=d>>1,M=-7,b=t?i-1:0,T=t?-1:1,A=e[r+b];for(b+=T,a=A&(1<<-M)-1,A>>=-M,M+=g;M>0;a=a*256+e[r+b],b+=T,M-=8);for(u=a&(1<<-M)-1,a>>=-M,M+=n;M>0;u=u*256+e[r+b],b+=T,M-=8);if(a===0)a=1-p;else{if(a===d)return u?NaN:(A?-1:1)*(1/0);u=u+Math.pow(2,n),a=a-p}return(A?-1:1)*u*Math.pow(2,a-n)}function Oo(e,r,t,n,i,a){var u,g,d,p=a*8-i-1,M=(1<<p)-1,b=M>>1,T=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=n?0:a-1,N=n?1:-1,L=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(g=isNaN(r)?1:0,u=M):(u=Math.floor(Math.log(r)/Math.LN2),r*(d=Math.pow(2,-u))<1&&(u--,d*=2),u+b>=1?r+=T/d:r+=T*Math.pow(2,1-b),r*d>=2&&(u++,d/=2),u+b>=M?(g=0,u=M):u+b>=1?(g=(r*d-1)*Math.pow(2,i),u=u+b):(g=r*Math.pow(2,b-1)*Math.pow(2,i),u=0));i>=8;e[t+A]=g&255,A+=N,g/=256,i-=8);for(u=u<<i|g,p+=i;p>0;e[t+A]=u&255,A+=N,u/=256,p-=8);e[t+A-N]|=L*128}function Rt(){return R.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function ke(e,r){if(Rt()<r)throw new RangeError("Invalid typed array length");return R.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(r),e.__proto__=R.prototype):(e===null&&(e=new R(r)),e.length=r),e}function R(e,r,t){if(!R.TYPED_ARRAY_SUPPORT&&!(this instanceof R))return new R(e,r,t);if(typeof e=="number"){if(typeof r=="string")throw new Error("If encoding is specified then the first argument must be a string");return On(this,e)}return ko(this,e,r,t)}function ko(e,r,t,n){if(typeof r=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer?hl(e,r,t,n):typeof r=="string"?ll(e,r,t):cl(e,r)}function Uo(e){if(typeof e!="number")throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function ul(e,r,t,n){return Uo(r),r<=0?ke(e,r):t!==void 0?typeof n=="string"?ke(e,r).fill(t,n):ke(e,r).fill(t):ke(e,r)}function On(e,r){if(Uo(r),e=ke(e,r<0?0:Ln(r)|0),!R.TYPED_ARRAY_SUPPORT)for(var t=0;t<r;++t)e[t]=0;return e}function ll(e,r,t){if((typeof t!="string"||t==="")&&(t="utf8"),!R.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');var n=Do(r,t)|0;e=ke(e,n);var i=e.write(r,t);return i!==n&&(e=e.slice(0,i)),e}function Nn(e,r){var t=r.length<0?0:Ln(r.length)|0;e=ke(e,t);for(var n=0;n<t;n+=1)e[n]=r[n]&255;return e}function hl(e,r,t,n){if(r.byteLength,t<0||r.byteLength<t)throw new RangeError("'offset' is out of bounds");if(r.byteLength<t+(n||0))throw new RangeError("'length' is out of bounds");return t===void 0&&n===void 0?r=new Uint8Array(r):n===void 0?r=new Uint8Array(r,t):r=new Uint8Array(r,t,n),R.TYPED_ARRAY_SUPPORT?(e=r,e.__proto__=R.prototype):e=Nn(e,r),e}function cl(e,r){if(Re(r)){var t=Ln(r.length)|0;return e=ke(e,t),e.length===0||r.copy(e,0,0,t),e}if(r){if(typeof ArrayBuffer<"u"&&r.buffer instanceof ArrayBuffer||"length"in r)return typeof r.length!="number"||Il(r.length)?ke(e,0):Nn(e,r);if(r.type==="Buffer"&&Lo(r.data))return Nn(e,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function Ln(e){if(e>=Rt())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Rt().toString(16)+" bytes");return e|0}function dl(e){return+e!=e&&(e=0),R.alloc(+e)}function Re(e){return!!(e!=null&&e._isBuffer)}function Do(e,r){if(Re(e))return e.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var t=e.length;if(t===0)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":case void 0:return Ct(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return $o(e).length;default:if(n)return Ct(e).length;r=(""+r).toLowerCase(),n=!0}}function pl(e,r,t){var n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return xl(this,r,t);case"utf8":case"utf-8":return jo(this,r,t);case"ascii":return El(this,r,t);case"latin1":case"binary":return Al(this,r,t);case"base64":return bl(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Sl(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function nr(e,r,t){var n=e[r];e[r]=e[t],e[t]=n}function qo(e,r,t,n,i){if(e.length===0)return-1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,isNaN(t)&&(t=i?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(i)return-1;t=e.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof r=="string"&&(r=R.from(r,n)),Re(r))return r.length===0?-1:Mo(e,r,t,n,i);if(typeof r=="number")return r=r&255,R.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):Mo(e,[r],t,n,i);throw new TypeError("val must be string, number or Buffer")}function Mo(e,r,t,n,i){var a=1,u=e.length,g=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||r.length<2)return-1;a=2,u/=2,g/=2,t/=2}function d(A,N){return a===1?A[N]:A.readUInt16BE(N*a)}var p;if(i){var M=-1;for(p=t;p<u;p++)if(d(e,p)===d(r,M===-1?0:p-M)){if(M===-1&&(M=p),p-M+1===g)return M*a}else M!==-1&&(p-=p-M),M=-1}else for(t+g>u&&(t=u-g),p=t;p>=0;p--){for(var b=!0,T=0;T<g;T++)if(d(e,p+T)!==d(r,T)){b=!1;break}if(b)return p}return-1}function gl(e,r,t,n){t=Number(t)||0;var i=e.length-t;n?(n=Number(n),n>i&&(n=i)):n=i;var a=r.length;if(a%2!==0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var u=0;u<n;++u){var g=parseInt(r.substr(u*2,2),16);if(isNaN(g))return u;e[t+u]=g}return u}function yl(e,r,t,n){return It(Ct(r,e.length-t),e,t,n)}function Fo(e,r,t,n){return It(Ml(r),e,t,n)}function wl(e,r,t,n){return Fo(e,r,t,n)}function ml(e,r,t,n){return It($o(r),e,t,n)}function vl(e,r,t,n){return It(Nl(r,e.length-t),e,t,n)}function bl(e,r,t){return r===0&&t===e.length?Bo(e):Bo(e.slice(r,t))}function jo(e,r,t){t=Math.min(e.length,t);for(var n=[],i=r;i<t;){var a=e[i],u=null,g=a>239?4:a>223?3:a>191?2:1;if(i+g<=t){var d,p,M,b;switch(g){case 1:a<128&&(u=a);break;case 2:d=e[i+1],(d&192)===128&&(b=(a&31)<<6|d&63,b>127&&(u=b));break;case 3:d=e[i+1],p=e[i+2],(d&192)===128&&(p&192)===128&&(b=(a&15)<<12|(d&63)<<6|p&63,b>2047&&(b<55296||b>57343)&&(u=b));break;case 4:d=e[i+1],p=e[i+2],M=e[i+3],(d&192)===128&&(p&192)===128&&(M&192)===128&&(b=(a&15)<<18|(d&63)<<12|(p&63)<<6|M&63,b>65535&&b<1114112&&(u=b))}}u===null?(u=65533,g=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|u&1023),n.push(u),i+=g}return _l(n)}function _l(e){var r=e.length;if(r<=No)return String.fromCharCode.apply(String,e);for(var t="",n=0;n<r;)t+=String.fromCharCode.apply(String,e.slice(n,n+=No));return t}function El(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]&127);return n}function Al(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]);return n}function xl(e,r,t){var n=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>n)&&(t=n);for(var i="",a=r;a<t;++a)i+=Bl(e[a]);return i}function Sl(e,r,t){for(var n=e.slice(r,t),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}function pe(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}function _e(e,r,t,n,i,a){if(!Re(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<a)throw new RangeError('"value" argument is out of bounds');if(t+n>e.length)throw new RangeError("Index out of range")}function Mt(e,r,t,n){r<0&&(r=65535+r+1);for(var i=0,a=Math.min(e.length-t,2);i<a;++i)e[t+i]=(r&255<<8*(n?i:1-i))>>>(n?i:1-i)*8}function Nt(e,r,t,n){r<0&&(r=4294967295+r+1);for(var i=0,a=Math.min(e.length-t,4);i<a;++i)e[t+i]=r>>>(n?i:3-i)*8&255}function Wo(e,r,t,n,i,a){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Ho(e,r,t,n,i){return i||Wo(e,r,t,4),Oo(e,r,t,n,23,4),t+4}function Yo(e,r,t,n,i){return i||Wo(e,r,t,8),Oo(e,r,t,n,52,8),t+8}function Rl(e){if(e=Cl(e).replace(Tl,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Cl(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Bl(e){return e<16?"0"+e.toString(16):e.toString(16)}function Ct(e,r){r=r||1/0;for(var t,n=e.length,i=null,a=[],u=0;u<n;++u){if(t=e.charCodeAt(u),t>55295&&t<57344){if(!i){if(t>56319){(r-=3)>-1&&a.push(239,191,189);continue}else if(u+1===n){(r-=3)>-1&&a.push(239,191,189);continue}i=t;continue}if(t<56320){(r-=3)>-1&&a.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(r-=3)>-1&&a.push(239,191,189);if(i=null,t<128){if((r-=1)<0)break;a.push(t)}else if(t<2048){if((r-=2)<0)break;a.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;a.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;a.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return a}function Ml(e){for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function Nl(e,r){for(var t,n,i,a=[],u=0;u<e.length&&!((r-=2)<0);++u)t=e.charCodeAt(u),n=t>>8,i=t%256,a.push(i),a.push(n);return a}function $o(e){return il(Rl(e))}function It(e,r,t,n){for(var i=0;i<n&&!(i+t>=r.length||i>=e.length);++i)r[i+t]=e[i];return i}function Il(e){return e!==e}function Go(e){return e!=null&&(!!e._isBuffer||Vo(e)||Ol(e))}function Vo(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Ol(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&Vo(e.slice(0,0))}var Te,Ae,nl,In,sl,Lo,Po,fl,No,Tl,Ko=Ze(()=>{x();S();Te=[],Ae=[],nl=typeof Uint8Array<"u"?Uint8Array:Array,In=!1;sl={}.toString,Lo=Array.isArray||function(e){return sl.call(e)=="[object Array]"};Po=50;R.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:!0;fl=Rt();R.poolSize=8192;R._augment=function(e){return e.__proto__=R.prototype,e};R.from=function(e,r,t){return ko(null,e,r,t)};R.TYPED_ARRAY_SUPPORT&&(R.prototype.__proto__=Uint8Array.prototype,R.__proto__=Uint8Array);R.alloc=function(e,r,t){return ul(null,e,r,t)};R.allocUnsafe=function(e){return On(null,e)};R.allocUnsafeSlow=function(e){return On(null,e)};R.isBuffer=Go;R.compare=function(r,t){if(!Re(r)||!Re(t))throw new TypeError("Arguments must be Buffers");if(r===t)return 0;for(var n=r.length,i=t.length,a=0,u=Math.min(n,i);a<u;++a)if(r[a]!==t[a]){n=r[a],i=t[a];break}return n<i?-1:i<n?1:0};R.isEncoding=function(r){switch(String(r).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}};R.concat=function(r,t){if(!Lo(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return R.alloc(0);var n;if(t===void 0)for(t=0,n=0;n<r.length;++n)t+=r[n].length;var i=R.allocUnsafe(t),a=0;for(n=0;n<r.length;++n){var u=r[n];if(!Re(u))throw new TypeError('"list" argument must be an Array of Buffers');u.copy(i,a),a+=u.length}return i};R.byteLength=Do;R.prototype._isBuffer=!0;R.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<r;t+=2)nr(this,t,t+1);return this};R.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<r;t+=4)nr(this,t,t+3),nr(this,t+1,t+2);return this};R.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<r;t+=8)nr(this,t,t+7),nr(this,t+1,t+6),nr(this,t+2,t+5),nr(this,t+3,t+4);return this};R.prototype.toString=function(){var r=this.length|0;return r===0?"":arguments.length===0?jo(this,0,r):pl.apply(this,arguments)};R.prototype.equals=function(r){if(!Re(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:R.compare(this,r)===0};R.prototype.inspect=function(){var r="",t=Po;return this.length>0&&(r=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(r+=" ... ")),"<Buffer "+r+">"};R.prototype.compare=function(r,t,n,i,a){if(!Re(r))throw new TypeError("Argument must be a Buffer");if(t===void 0&&(t=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),t<0||n>r.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&t>=n)return 0;if(i>=a)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,a>>>=0,this===r)return 0;for(var u=a-i,g=n-t,d=Math.min(u,g),p=this.slice(i,a),M=r.slice(t,n),b=0;b<d;++b)if(p[b]!==M[b]){u=p[b],g=M[b];break}return u<g?-1:g<u?1:0};R.prototype.includes=function(r,t,n){return this.indexOf(r,t,n)!==-1};R.prototype.indexOf=function(r,t,n){return qo(this,r,t,n,!0)};R.prototype.lastIndexOf=function(r,t,n){return qo(this,r,t,n,!1)};R.prototype.write=function(r,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t|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");var a=this.length-t;if((n===void 0||n>a)&&(n=a),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var u=!1;;)switch(i){case"hex":return gl(this,r,t,n);case"utf8":case"utf-8":return yl(this,r,t,n);case"ascii":return Fo(this,r,t,n);case"latin1":case"binary":return wl(this,r,t,n);case"base64":return ml(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return vl(this,r,t,n);default:if(u)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),u=!0}};R.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};No=4096;R.prototype.slice=function(r,t){var n=this.length;r=~~r,t=t===void 0?n:~~t,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<r&&(t=r);var i;if(R.TYPED_ARRAY_SUPPORT)i=this.subarray(r,t),i.__proto__=R.prototype;else{var a=t-r;i=new R(a,void 0);for(var u=0;u<a;++u)i[u]=this[u+r]}return i};R.prototype.readUIntLE=function(r,t,n){r=r|0,t=t|0,n||pe(r,t,this.length);for(var i=this[r],a=1,u=0;++u<t&&(a*=256);)i+=this[r+u]*a;return i};R.prototype.readUIntBE=function(r,t,n){r=r|0,t=t|0,n||pe(r,t,this.length);for(var i=this[r+--t],a=1;t>0&&(a*=256);)i+=this[r+--t]*a;return i};R.prototype.readUInt8=function(r,t){return t||pe(r,1,this.length),this[r]};R.prototype.readUInt16LE=function(r,t){return t||pe(r,2,this.length),this[r]|this[r+1]<<8};R.prototype.readUInt16BE=function(r,t){return t||pe(r,2,this.length),this[r]<<8|this[r+1]};R.prototype.readUInt32LE=function(r,t){return t||pe(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};R.prototype.readUInt32BE=function(r,t){return t||pe(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};R.prototype.readIntLE=function(r,t,n){r=r|0,t=t|0,n||pe(r,t,this.length);for(var i=this[r],a=1,u=0;++u<t&&(a*=256);)i+=this[r+u]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*t)),i};R.prototype.readIntBE=function(r,t,n){r=r|0,t=t|0,n||pe(r,t,this.length);for(var i=t,a=1,u=this[r+--i];i>0&&(a*=256);)u+=this[r+--i]*a;return a*=128,u>=a&&(u-=Math.pow(2,8*t)),u};R.prototype.readInt8=function(r,t){return t||pe(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};R.prototype.readInt16LE=function(r,t){t||pe(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};R.prototype.readInt16BE=function(r,t){t||pe(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};R.prototype.readInt32LE=function(r,t){return t||pe(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};R.prototype.readInt32BE=function(r,t){return t||pe(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};R.prototype.readFloatLE=function(r,t){return t||pe(r,4,this.length),Bt(this,r,!0,23,4)};R.prototype.readFloatBE=function(r,t){return t||pe(r,4,this.length),Bt(this,r,!1,23,4)};R.prototype.readDoubleLE=function(r,t){return t||pe(r,8,this.length),Bt(this,r,!0,52,8)};R.prototype.readDoubleBE=function(r,t){return t||pe(r,8,this.length),Bt(this,r,!1,52,8)};R.prototype.writeUIntLE=function(r,t,n,i){if(r=+r,t=t|0,n=n|0,!i){var a=Math.pow(2,8*n)-1;_e(this,r,t,n,a,0)}var u=1,g=0;for(this[t]=r&255;++g<n&&(u*=256);)this[t+g]=r/u&255;return t+n};R.prototype.writeUIntBE=function(r,t,n,i){if(r=+r,t=t|0,n=n|0,!i){var a=Math.pow(2,8*n)-1;_e(this,r,t,n,a,0)}var u=n-1,g=1;for(this[t+u]=r&255;--u>=0&&(g*=256);)this[t+u]=r/g&255;return t+n};R.prototype.writeUInt8=function(r,t,n){return r=+r,t=t|0,n||_e(this,r,t,1,255,0),R.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),this[t]=r&255,t+1};R.prototype.writeUInt16LE=function(r,t,n){return r=+r,t=t|0,n||_e(this,r,t,2,65535,0),R.TYPED_ARRAY_SUPPORT?(this[t]=r&255,this[t+1]=r>>>8):Mt(this,r,t,!0),t+2};R.prototype.writeUInt16BE=function(r,t,n){return r=+r,t=t|0,n||_e(this,r,t,2,65535,0),R.TYPED_ARRAY_SUPPORT?(this[t]=r>>>8,this[t+1]=r&255):Mt(this,r,t,!1),t+2};R.prototype.writeUInt32LE=function(r,t,n){return r=+r,t=t|0,n||_e(this,r,t,4,4294967295,0),R.TYPED_ARRAY_SUPPORT?(this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255):Nt(this,r,t,!0),t+4};R.prototype.writeUInt32BE=function(r,t,n){return r=+r,t=t|0,n||_e(this,r,t,4,4294967295,0),R.TYPED_ARRAY_SUPPORT?(this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255):Nt(this,r,t,!1),t+4};R.prototype.writeIntLE=function(r,t,n,i){if(r=+r,t=t|0,!i){var a=Math.pow(2,8*n-1);_e(this,r,t,n,a-1,-a)}var u=0,g=1,d=0;for(this[t]=r&255;++u<n&&(g*=256);)r<0&&d===0&&this[t+u-1]!==0&&(d=1),this[t+u]=(r/g>>0)-d&255;return t+n};R.prototype.writeIntBE=function(r,t,n,i){if(r=+r,t=t|0,!i){var a=Math.pow(2,8*n-1);_e(this,r,t,n,a-1,-a)}var u=n-1,g=1,d=0;for(this[t+u]=r&255;--u>=0&&(g*=256);)r<0&&d===0&&this[t+u+1]!==0&&(d=1),this[t+u]=(r/g>>0)-d&255;return t+n};R.prototype.writeInt8=function(r,t,n){return r=+r,t=t|0,n||_e(this,r,t,1,127,-128),R.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),r<0&&(r=255+r+1),this[t]=r&255,t+1};R.prototype.writeInt16LE=function(r,t,n){return r=+r,t=t|0,n||_e(this,r,t,2,32767,-32768),R.TYPED_ARRAY_SUPPORT?(this[t]=r&255,this[t+1]=r>>>8):Mt(this,r,t,!0),t+2};R.prototype.writeInt16BE=function(r,t,n){return r=+r,t=t|0,n||_e(this,r,t,2,32767,-32768),R.TYPED_ARRAY_SUPPORT?(this[t]=r>>>8,this[t+1]=r&255):Mt(this,r,t,!1),t+2};R.prototype.writeInt32LE=function(r,t,n){return r=+r,t=t|0,n||_e(this,r,t,4,2147483647,-2147483648),R.TYPED_ARRAY_SUPPORT?(this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24):Nt(this,r,t,!0),t+4};R.prototype.writeInt32BE=function(r,t,n){return r=+r,t=t|0,n||_e(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),R.TYPED_ARRAY_SUPPORT?(this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255):Nt(this,r,t,!1),t+4};R.prototype.writeFloatLE=function(r,t,n){return Ho(this,r,t,!0,n)};R.prototype.writeFloatBE=function(r,t,n){return Ho(this,r,t,!1,n)};R.prototype.writeDoubleLE=function(r,t,n){return Yo(this,r,t,!0,n)};R.prototype.writeDoubleBE=function(r,t,n){return Yo(this,r,t,!1,n)};R.prototype.copy=function(r,t,n,i){if(n||(n=0),!i&&i!==0&&(i=this.length),t>=r.length&&(t=r.length),t||(t=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-t<i-n&&(i=r.length-t+n);var a=i-n,u;if(this===r&&n<t&&t<i)for(u=a-1;u>=0;--u)r[u+t]=this[u+n];else if(a<1e3||!R.TYPED_ARRAY_SUPPORT)for(u=0;u<a;++u)r[u+t]=this[u+n];else Uint8Array.prototype.set.call(r,this.subarray(n,n+a),t);return a};R.prototype.fill=function(r,t,n,i){if(typeof r=="string"){if(typeof t=="string"?(i=t,t=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),r.length===1){var a=r.charCodeAt(0);a<256&&(r=a)}if(i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!R.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else typeof r=="number"&&(r=r&255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var u;if(typeof r=="number")for(u=t;u<n;++u)this[u]=r;else{var g=Re(r)?r:Ct(new R(r,i).toString()),d=g.length;for(u=0;u<n-t;++u)this[u+t]=g[u%d]}return this};Tl=/[^+\/0-9A-Za-z-_]/g});var Lt=q((fy,Ot)=>{x();S();var ir=(Ko(),bn(zo));if(ir&&ir.default){Ot.exports=ir.default;for(let e in ir)Ot.exports[e]=ir[e]}else ir&&(Ot.exports=ir)});var Fr=q((Pn,Jo)=>{x();S();var Pt=Lt(),Ue=Pt.Buffer;function Xo(e,r){for(var t in e)r[t]=e[t]}Ue.from&&Ue.alloc&&Ue.allocUnsafe&&Ue.allocUnsafeSlow?Jo.exports=Pt:(Xo(Pt,Pn),Pn.Buffer=Er);function Er(e,r,t){return Ue(e,r,t)}Xo(Ue,Er);Er.from=function(e,r,t){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Ue(e,r,t)};Er.alloc=function(e,r,t){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=Ue(e);return r!==void 0?typeof t=="string"?n.fill(r,t):n.fill(r):n.fill(0),n};Er.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Ue(e)};Er.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Pt.SlowBuffer(e)}});var ve=q(me=>{x();S();function Ll(e){return Array.isArray?Array.isArray(e):kt(e)==="[object Array]"}me.isArray=Ll;function Pl(e){return typeof e=="boolean"}me.isBoolean=Pl;function kl(e){return e===null}me.isNull=kl;function Ul(e){return e==null}me.isNullOrUndefined=Ul;function Dl(e){return typeof e=="number"}me.isNumber=Dl;function ql(e){return typeof e=="string"}me.isString=ql;function Fl(e){return typeof e=="symbol"}me.isSymbol=Fl;function jl(e){return e===void 0}me.isUndefined=jl;function Wl(e){return kt(e)==="[object RegExp]"}me.isRegExp=Wl;function Hl(e){return typeof e=="object"&&e!==null}me.isObject=Hl;function Yl(e){return kt(e)==="[object Date]"}me.isDate=Yl;function $l(e){return kt(e)==="[object Error]"||e instanceof Error}me.isError=$l;function Gl(e){return typeof e=="function"}me.isFunction=Gl;function Vl(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}me.isPrimitive=Vl;me.isBuffer=D.Buffer.isBuffer;function kt(e){return Object.prototype.toString.call(e)}});var be=q((yy,kn)=>{x();S();typeof Object.create=="function"?kn.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:kn.exports=function(r,t){if(t){r.super_=t;var n=function(){};n.prototype=t.prototype,r.prototype=new n,r.prototype.constructor=r}}});function Zo(){throw new Error("setTimeout has not been defined")}function Qo(){throw new Error("clearTimeout has not been defined")}function ea(e){if(Ke===setTimeout)return setTimeout(e,0);if((Ke===Zo||!Ke)&&setTimeout)return Ke=setTimeout,setTimeout(e,0);try{return Ke(e,0)}catch{try{return Ke.call(null,e,0)}catch{return Ke.call(this,e,0)}}}function zl(e){if(Xe===clearTimeout)return clearTimeout(e);if((Xe===Qo||!Xe)&&clearTimeout)return Xe=clearTimeout,clearTimeout(e);try{return Xe(e)}catch{try{return Xe.call(null,e)}catch{return Xe.call(this,e)}}}function Kl(){!xr||!or||(xr=!1,or.length?De=or.concat(De):Ut=-1,De.length&&ra())}function ra(){if(!xr){var e=ea(Kl);xr=!0;for(var r=De.length;r;){for(or=De,De=[];++Ut<r;)or&&or[Ut].run();Ut=-1,r=De.length}or=null,xr=!1,zl(e)}}function Xl(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];De.push(new ta(e,r)),De.length===1&&!xr&&ea(ra)}function ta(e,r){this.fun=e,this.array=r}function ar(){}function dh(e){throw new Error("process.binding is not supported")}function ph(){return"/"}function gh(e){throw new Error("process.chdir is not supported")}function yh(){return 0}function mh(e){var r=wh.call(Ar)*.001,t=Math.floor(r),n=Math.floor(r%1*1e9);return e&&(t=t-e[0],n=n-e[1],n<0&&(t--,n+=1e9)),[t,n]}function bh(){var e=new Date,r=e-vh;return r/1e3}var Ke,Xe,De,xr,or,Ut,Jl,Zl,Ql,eh,rh,th,nh,ih,oh,ah,sh,fh,uh,lh,hh,ch,Ar,wh,vh,_h,jr,na=Ze(()=>{x();S();Ke=Zo,Xe=Qo;typeof globalThis.setTimeout=="function"&&(Ke=setTimeout);typeof globalThis.clearTimeout=="function"&&(Xe=clearTimeout);De=[],xr=!1,Ut=-1;ta.prototype.run=function(){this.fun.apply(null,this.array)};Jl="browser",Zl="browser",Ql=!0,eh={},rh=[],th="",nh={},ih={},oh={};ah=ar,sh=ar,fh=ar,uh=ar,lh=ar,hh=ar,ch=ar;Ar=globalThis.performance||{},wh=Ar.now||Ar.mozNow||Ar.msNow||Ar.oNow||Ar.webkitNow||function(){return new Date().getTime()};vh=new Date;_h={nextTick:Xl,title:Jl,browser:Ql,env:eh,argv:rh,version:th,versions:nh,on:ah,addListener:sh,once:fh,off:uh,removeListener:lh,removeAllListeners:hh,emit:ch,binding:dh,cwd:ph,chdir:gh,umask:yh,hrtime:mh,platform:Zl,release:ih,config:oh,uptime:bh},jr=_h});var Un,Dn,ia=Ze(()=>{x();S();typeof Object.create=="function"?Un=function(r,t){r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}})}:Un=function(r,t){r.super_=t;var n=function(){};n.prototype=t.prototype,r.prototype=new n,r.prototype.constructor=r};Dn=Un});var ca={};vn(ca,{_extend:()=>Vn,debuglog:()=>oa,default:()=>Nh,deprecate:()=>Hn,format:()=>jt,inherits:()=>Dn,inspect:()=>Be,isArray:()=>Yn,isBoolean:()=>Wt,isBuffer:()=>ua,isDate:()=>Ft,isError:()=>Hr,isFunction:()=>Yr,isNull:()=>$r,isNullOrUndefined:()=>aa,isNumber:()=>$n,isObject:()=>sr,isPrimitive:()=>fa,isRegExp:()=>Wr,isString:()=>Gr,isSymbol:()=>sa,isUndefined:()=>Ce,log:()=>la});function jt(e){if(!Gr(e)){for(var r=[],t=0;t<arguments.length;t++)r.push(Be(arguments[t]));return r.join(" ")}for(var t=1,n=arguments,i=n.length,a=String(e).replace(Eh,function(g){if(g==="%%")return"%";if(t>=i)return g;switch(g){case"%s":return String(n[t++]);case"%d":return Number(n[t++]);case"%j":try{return JSON.stringify(n[t++])}catch{return"[Circular]"}default:return g}}),u=n[t];t<i;u=n[++t])$r(u)||!sr(u)?a+=" "+u:a+=" "+Be(u);return a}function Hn(e,r){if(Ce(globalThis.process))return function(){return Hn(e,r).apply(this,arguments)};if(jr.noDeprecation===!0)return e;var t=!1;function n(){if(!t){if(jr.throwDeprecation)throw new Error(r);jr.traceDeprecation?console.trace(r):console.error(r),t=!0}return e.apply(this,arguments)}return n}function oa(e){if(Ce(qn)&&(qn=jr.env.NODE_DEBUG||""),e=e.toUpperCase(),!Dt[e])if(new RegExp("\\b"+e+"\\b","i").test(qn)){var r=0;Dt[e]=function(){var t=jt.apply(null,arguments);console.error("%s %d: %s",e,r,t)}}else Dt[e]=function(){};return Dt[e]}function Be(e,r){var t={seen:[],stylize:xh};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),Wt(r)?t.showHidden=r:r&&Vn(t,r),Ce(t.showHidden)&&(t.showHidden=!1),Ce(t.depth)&&(t.depth=2),Ce(t.colors)&&(t.colors=!1),Ce(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=Ah),qt(t,e,t.depth)}function Ah(e,r){var t=Be.styles[r];return t?"\x1B["+Be.colors[t][0]+"m"+e+"\x1B["+Be.colors[t][1]+"m":e}function xh(e,r){return e}function Sh(e){var r={};return e.forEach(function(t,n){r[t]=!0}),r}function qt(e,r,t){if(e.customInspect&&r&&Yr(r.inspect)&&r.inspect!==Be&&!(r.constructor&&r.constructor.prototype===r)){var n=r.inspect(t,e);return Gr(n)||(n=qt(e,n,t)),n}var i=Th(e,r);if(i)return i;var a=Object.keys(r),u=Sh(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),Hr(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return Fn(r);if(a.length===0){if(Yr(r)){var g=r.name?": "+r.name:"";return e.stylize("[Function"+g+"]","special")}if(Wr(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(Ft(r))return e.stylize(Date.prototype.toString.call(r),"date");if(Hr(r))return Fn(r)}var d="",p=!1,M=["{","}"];if(Yn(r)&&(p=!0,M=["[","]"]),Yr(r)){var b=r.name?": "+r.name:"";d=" [Function"+b+"]"}if(Wr(r)&&(d=" "+RegExp.prototype.toString.call(r)),Ft(r)&&(d=" "+Date.prototype.toUTCString.call(r)),Hr(r)&&(d=" "+Fn(r)),a.length===0&&(!p||r.length==0))return M[0]+d+M[1];if(t<0)return Wr(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var T;return p?T=Rh(e,r,t,u,a):T=a.map(function(A){return Wn(e,r,t,u,A,p)}),e.seen.pop(),Ch(T,d,M)}function Th(e,r){if(Ce(r))return e.stylize("undefined","undefined");if(Gr(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if($n(r))return e.stylize(""+r,"number");if(Wt(r))return e.stylize(""+r,"boolean");if($r(r))return e.stylize("null","null")}function Fn(e){return"["+Error.prototype.toString.call(e)+"]"}function Rh(e,r,t,n,i){for(var a=[],u=0,g=r.length;u<g;++u)ha(r,String(u))?a.push(Wn(e,r,t,n,String(u),!0)):a.push("");return i.forEach(function(d){d.match(/^\d+$/)||a.push(Wn(e,r,t,n,d,!0))}),a}function Wn(e,r,t,n,i,a){var u,g,d;if(d=Object.getOwnPropertyDescriptor(r,i)||{value:r[i]},d.get?d.set?g=e.stylize("[Getter/Setter]","special"):g=e.stylize("[Getter]","special"):d.set&&(g=e.stylize("[Setter]","special")),ha(n,i)||(u="["+i+"]"),g||(e.seen.indexOf(d.value)<0?($r(t)?g=qt(e,d.value,null):g=qt(e,d.value,t-1),g.indexOf(`
|
|
`)>-1&&(a?g=g.split(`
|
|
`).map(function(p){return" "+p}).join(`
|
|
`).substr(2):g=`
|
|
`+g.split(`
|
|
`).map(function(p){return" "+p}).join(`
|
|
`))):g=e.stylize("[Circular]","special")),Ce(u)){if(a&&i.match(/^\d+$/))return g;u=JSON.stringify(""+i),u.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u=u.substr(1,u.length-2),u=e.stylize(u,"name")):(u=u.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),u=e.stylize(u,"string"))}return u+": "+g}function Ch(e,r,t){var n=0,i=e.reduce(function(a,u){return n++,u.indexOf(`
|
|
`)>=0&&n++,a+u.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?t[0]+(r===""?"":r+`
|
|
`)+" "+e.join(`,
|
|
`)+" "+t[1]:t[0]+r+" "+e.join(", ")+" "+t[1]}function Yn(e){return Array.isArray(e)}function Wt(e){return typeof e=="boolean"}function $r(e){return e===null}function aa(e){return e==null}function $n(e){return typeof e=="number"}function Gr(e){return typeof e=="string"}function sa(e){return typeof e=="symbol"}function Ce(e){return e===void 0}function Wr(e){return sr(e)&&Gn(e)==="[object RegExp]"}function sr(e){return typeof e=="object"&&e!==null}function Ft(e){return sr(e)&&Gn(e)==="[object Date]"}function Hr(e){return sr(e)&&(Gn(e)==="[object Error]"||e instanceof Error)}function Yr(e){return typeof e=="function"}function fa(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}function ua(e){return D.Buffer.isBuffer(e)}function Gn(e){return Object.prototype.toString.call(e)}function jn(e){return e<10?"0"+e.toString(10):e.toString(10)}function Mh(){var e=new Date,r=[jn(e.getHours()),jn(e.getMinutes()),jn(e.getSeconds())].join(":");return[e.getDate(),Bh[e.getMonth()],r].join(" ")}function la(){console.log("%s - %s",Mh(),jt.apply(null,arguments))}function Vn(e,r){if(!r||!sr(r))return e;for(var t=Object.keys(r),n=t.length;n--;)e[t[n]]=r[t[n]];return e}function ha(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var Eh,Dt,qn,Bh,Nh,da=Ze(()=>{x();S();na();ia();Eh=/%[sdj%]/g;Dt={};Be.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};Be.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};Bh=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];Nh={inherits:Dn,_extend:Vn,log:la,isBuffer:ua,isPrimitive:fa,isFunction:Yr,isError:Hr,isDate:Ft,isObject:sr,isRegExp:Wr,isUndefined:Ce,isSymbol:sa,isString:Gr,isNumber:$n,isNullOrUndefined:aa,isNull:$r,isBoolean:Wt,isArray:Yn,inspect:Be,deprecate:Hn,format:jt,debuglog:oa}});var ur=q((By,Ht)=>{x();S();var fr=(da(),bn(ca));if(fr&&fr.default){Ht.exports=fr.default;for(let e in fr)Ht.exports[e]=fr[e]}else fr&&(Ht.exports=fr)});var ga=q((Iy,zn)=>{"use strict";x();S();function Ih(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}var pa=Fr().Buffer,Vr=ur();function Oh(e,r,t){e.copy(r,t)}zn.exports=function(){function e(){Ih(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(t){var n={data:t,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length},e.prototype.unshift=function(t){var n={data:t,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length},e.prototype.shift=function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(t){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=t+n.data;return i},e.prototype.concat=function(t){if(this.length===0)return pa.alloc(0);if(this.length===1)return this.head.data;for(var n=pa.allocUnsafe(t>>>0),i=this.head,a=0;i;)Oh(i.data,n,a),a+=i.data.length,i=i.next;return n},e}();Vr&&Vr.inspect&&Vr.inspect.custom&&(zn.exports.prototype[Vr.inspect.custom]=function(){var e=Vr.inspect({length:this.length});return this.constructor.name+" "+e})});var Kn=q((Py,ma)=>{"use strict";x();S();var ya=Pe();function Lh(e,r){var t=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(r?r(e):e&&(!this._writableState||!this._writableState.errorEmitted)&&ya.nextTick(wa,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!r&&a?(ya.nextTick(wa,t,a),t._writableState&&(t._writableState.errorEmitted=!0)):r&&r(a)}),this)}function Ph(){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.finished=!1,this._writableState.errorEmitted=!1)}function wa(e,r){e.emit("error",r)}ma.exports={destroy:Lh,undestroy:Ph}});var Yt=q((Dy,va)=>{x();S();va.exports=kh;function kh(e,r){if(Xn("noDeprecation"))return e;var t=!1;function n(){if(!t){if(Xn("throwDeprecation"))throw new Error(r);Xn("traceDeprecation")?console.trace(r):console.warn(r),t=!0}return e.apply(this,arguments)}return n}function Xn(e){try{if(!globalThis.localStorage)return!1}catch{return!1}var r=globalThis.localStorage[e];return r==null?!1:String(r).toLowerCase()==="true"}});var Zn=q((jy,Ra)=>{"use strict";x();S();var lr=Pe();Ra.exports=le;function _a(e){var r=this;this.next=null,this.entry=null,this.finish=function(){ec(r,e)}}var Uh=!B.browser&&["v0.10","v0.9."].indexOf(B.version.slice(0,5))>-1?setImmediate:lr.nextTick,Sr;le.WritableState=Kr;var Ea=Object.create(ve());Ea.inherits=be();var Dh={deprecate:Yt()},Aa=Mn(),Gt=Fr().Buffer,qh=globalThis.Uint8Array||function(){};function Fh(e){return Gt.from(e)}function jh(e){return Gt.isBuffer(e)||e instanceof qh}var xa=Kn();Ea.inherits(le,Aa);function Wh(){}function Kr(e,r){Sr=Sr||hr(),e=e||{};var t=r instanceof Sr;this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,i=e.writableHighWaterMark,a=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:t&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var u=e.decodeStrings===!1;this.decodeStrings=!u,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(g){Kh(r,g)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new _a(this)}Kr.prototype.getBuffer=function(){for(var r=this.bufferedRequest,t=[];r;)t.push(r),r=r.next;return t};(function(){try{Object.defineProperty(Kr.prototype,"buffer",{get:Dh.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var $t;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?($t=Function.prototype[Symbol.hasInstance],Object.defineProperty(le,Symbol.hasInstance,{value:function(e){return $t.call(this,e)?!0:this!==le?!1:e&&e._writableState instanceof Kr}})):$t=function(e){return e instanceof this};function le(e){if(Sr=Sr||hr(),!$t.call(le,this)&&!(this instanceof Sr))return new le(e);this._writableState=new Kr(e,this),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),Aa.call(this)}le.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Hh(e,r){var t=new Error("write after end");e.emit("error",t),lr.nextTick(r,t)}function Yh(e,r,t,n){var i=!0,a=!1;return t===null?a=new TypeError("May not write null values to stream"):typeof t!="string"&&t!==void 0&&!r.objectMode&&(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),lr.nextTick(n,a),i=!1),i}le.prototype.write=function(e,r,t){var n=this._writableState,i=!1,a=!n.objectMode&&jh(e);return a&&!Gt.isBuffer(e)&&(e=Fh(e)),typeof r=="function"&&(t=r,r=null),a?r="buffer":r||(r=n.defaultEncoding),typeof t!="function"&&(t=Wh),n.ended?Hh(this,t):(a||Yh(this,n,e,t))&&(n.pendingcb++,i=Gh(this,n,a,e,r,t)),i};le.prototype.cork=function(){var e=this._writableState;e.corked++};le.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.finished&&!e.bufferProcessing&&e.bufferedRequest&&Sa(this,e))};le.prototype.setDefaultEncoding=function(r){if(typeof r=="string"&&(r=r.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((r+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+r);return this._writableState.defaultEncoding=r,this};function $h(e,r,t){return!e.objectMode&&e.decodeStrings!==!1&&typeof r=="string"&&(r=Gt.from(r,t)),r}Object.defineProperty(le.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Gh(e,r,t,n,i,a){if(!t){var u=$h(r,n,i);n!==u&&(t=!0,i="buffer",n=u)}var g=r.objectMode?1:n.length;r.length+=g;var d=r.length<r.highWaterMark;if(d||(r.needDrain=!0),r.writing||r.corked){var p=r.lastBufferedRequest;r.lastBufferedRequest={chunk:n,encoding:i,isBuf:t,callback:a,next:null},p?p.next=r.lastBufferedRequest:r.bufferedRequest=r.lastBufferedRequest,r.bufferedRequestCount+=1}else Jn(e,r,!1,g,n,i,a);return d}function Jn(e,r,t,n,i,a,u){r.writelen=n,r.writecb=u,r.writing=!0,r.sync=!0,t?e._writev(i,r.onwrite):e._write(i,a,r.onwrite),r.sync=!1}function Vh(e,r,t,n,i){--r.pendingcb,t?(lr.nextTick(i,n),lr.nextTick(zr,e,r),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),zr(e,r))}function zh(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function Kh(e,r){var t=e._writableState,n=t.sync,i=t.writecb;if(zh(t),r)Vh(e,t,n,r,i);else{var a=Ta(t);!a&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Sa(e,t),n?Uh(ba,e,t,a,i):ba(e,t,a,i)}}function ba(e,r,t,n){t||Xh(e,r),r.pendingcb--,n(),zr(e,r)}function Xh(e,r){r.length===0&&r.needDrain&&(r.needDrain=!1,e.emit("drain"))}function Sa(e,r){r.bufferProcessing=!0;var t=r.bufferedRequest;if(e._writev&&t&&t.next){var n=r.bufferedRequestCount,i=new Array(n),a=r.corkedRequestsFree;a.entry=t;for(var u=0,g=!0;t;)i[u]=t,t.isBuf||(g=!1),t=t.next,u+=1;i.allBuffers=g,Jn(e,r,!0,r.length,i,"",a.finish),r.pendingcb++,r.lastBufferedRequest=null,a.next?(r.corkedRequestsFree=a.next,a.next=null):r.corkedRequestsFree=new _a(r),r.bufferedRequestCount=0}else{for(;t;){var d=t.chunk,p=t.encoding,M=t.callback,b=r.objectMode?1:d.length;if(Jn(e,r,!1,b,d,p,M),t=t.next,r.bufferedRequestCount--,r.writing)break}t===null&&(r.lastBufferedRequest=null)}r.bufferedRequest=t,r.bufferProcessing=!1}le.prototype._write=function(e,r,t){t(new Error("_write() is not implemented"))};le.prototype._writev=null;le.prototype.end=function(e,r,t){var n=this._writableState;typeof e=="function"?(t=e,e=null,r=null):typeof r=="function"&&(t=r,r=null),e!=null&&this.write(e,r),n.corked&&(n.corked=1,this.uncork()),!n.ending&&!n.finished&&Qh(this,n,t)};function Ta(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function Jh(e,r){e._final(function(t){r.pendingcb--,t&&e.emit("error",t),r.prefinished=!0,e.emit("prefinish"),zr(e,r)})}function Zh(e,r){!r.prefinished&&!r.finalCalled&&(typeof e._final=="function"?(r.pendingcb++,r.finalCalled=!0,lr.nextTick(Jh,e,r)):(r.prefinished=!0,e.emit("prefinish")))}function zr(e,r){var t=Ta(r);return t&&(Zh(e,r),r.pendingcb===0&&(r.finished=!0,e.emit("finish"))),t}function Qh(e,r,t){r.ending=!0,zr(e,r),t&&(r.finished?lr.nextTick(t):e.once("finish",t)),r.ended=!0,e.writable=!1}function ec(e,r,t){var n=e.entry;for(e.entry=null;n;){var i=n.callback;r.pendingcb--,i(t),n=n.next}r.corkedRequestsFree?r.corkedRequestsFree.next=e:r.corkedRequestsFree=e}Object.defineProperty(le.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){!this._writableState||(this._writableState.destroyed=e)}});le.prototype.destroy=xa.destroy;le.prototype._undestroy=xa.undestroy;le.prototype._destroy=function(e,r){this.end(),r(e)}});var hr=q((Yy,Na)=>{"use strict";x();S();var Ca=Pe(),rc=Object.keys||function(e){var r=[];for(var t in e)r.push(t);return r};Na.exports=qe;var Ba=Object.create(ve());Ba.inherits=be();var Ma=ri(),ei=Zn();Ba.inherits(qe,Ma);for(Qn=rc(ei.prototype),Vt=0;Vt<Qn.length;Vt++)zt=Qn[Vt],qe.prototype[zt]||(qe.prototype[zt]=ei.prototype[zt]);var Qn,zt,Vt;function qe(e){if(!(this instanceof qe))return new qe(e);Ma.call(this,e),ei.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",tc)}Object.defineProperty(qe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function tc(){this.allowHalfOpen||this._writableState.ended||Ca.nextTick(nc,this)}function nc(e){e.end()}Object.defineProperty(qe.prototype,"destroyed",{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)}});qe.prototype._destroy=function(e,r){this.push(null),this.end(),Ca.nextTick(r,e)}});var ii=q(Oa=>{"use strict";x();S();var ni=Fr().Buffer,Ia=ni.isEncoding||function(e){switch(e=""+e,e&&e.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 ic(e){if(!e)return"utf8";for(var r;;)switch(e){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 e;default:if(r)return;e=(""+e).toLowerCase(),r=!0}}function oc(e){var r=ic(e);if(typeof r!="string"&&(ni.isEncoding===Ia||!Ia(e)))throw new Error("Unknown encoding: "+e);return r||e}Oa.StringDecoder=Xr;function Xr(e){this.encoding=oc(e);var r;switch(this.encoding){case"utf16le":this.text=hc,this.end=cc,r=4;break;case"utf8":this.fillLast=fc,r=4;break;case"base64":this.text=dc,this.end=pc,r=3;break;default:this.write=gc,this.end=yc;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ni.allocUnsafe(r)}Xr.prototype.write=function(e){if(e.length===0)return"";var r,t;if(this.lastNeed){if(r=this.fillLast(e),r===void 0)return"";t=this.lastNeed,this.lastNeed=0}else t=0;return t<e.length?r?r+this.text(e,t):this.text(e,t):r||""};Xr.prototype.end=lc;Xr.prototype.text=uc;Xr.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function ti(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function ac(e,r,t){var n=r.length-1;if(n<t)return 0;var i=ti(r[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<t||i===-2?0:(i=ti(r[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<t||i===-2?0:(i=ti(r[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function sc(e,r,t){if((r[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&r.length>1){if((r[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&r.length>2&&(r[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function fc(e){var r=this.lastTotal-this.lastNeed,t=sc(this,e,r);if(t!==void 0)return t;if(this.lastNeed<=e.length)return e.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,r,0,e.length),this.lastNeed-=e.length}function uc(e,r){var t=ac(this,e,r);if(!this.lastNeed)return e.toString("utf8",r);this.lastTotal=t;var n=e.length-(t-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",r,n)}function lc(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+"\uFFFD":r}function hc(e,r){if((e.length-r)%2===0){var t=e.toString("utf16le",r);if(t){var n=t.charCodeAt(t.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",r,e.length-1)}function cc(e){var r=e&&e.length?this.write(e):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return r+this.lastChar.toString("utf16le",0,t)}return r}function dc(e,r){var t=(e.length-r)%3;return t===0?e.toString("base64",r):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",r,e.length-t))}function pc(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+this.lastChar.toString("base64",0,3-this.lastNeed):r}function gc(e){return e.toString(this.encoding)}function yc(e){return e&&e.length?this.write(e):""}});var ri=q((Jy,$a)=>{"use strict";x();S();var Rr=Pe();$a.exports=ne;var wc=wo(),Jr;ne.ReadableState=Fa;var Xy=tr().EventEmitter,Ua=function(e,r){return e.listeners(r).length},ui=Mn(),Zr=Fr().Buffer,mc=globalThis.Uint8Array||function(){};function vc(e){return Zr.from(e)}function bc(e){return Zr.isBuffer(e)||e instanceof mc}var Da=Object.create(ve());Da.inherits=be();var oi=ur(),J=void 0;oi&&oi.debuglog?J=oi.debuglog("stream"):J=function(){};var _c=ga(),qa=Kn(),Tr;Da.inherits(ne,ui);var ai=["error","close","destroy","pause","resume"];function Ec(e,r,t){if(typeof e.prependListener=="function")return e.prependListener(r,t);!e._events||!e._events[r]?e.on(r,t):wc(e._events[r])?e._events[r].unshift(t):e._events[r]=[t,e._events[r]]}function Fa(e,r){Jr=Jr||hr(),e=e||{};var t=r instanceof Jr;this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,i=e.readableHighWaterMark,a=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:t&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new _c,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.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(Tr||(Tr=ii().StringDecoder),this.decoder=new Tr(e.encoding),this.encoding=e.encoding)}function ne(e){if(Jr=Jr||hr(),!(this instanceof ne))return new ne(e);this._readableState=new Fa(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),ui.call(this)}Object.defineProperty(ne.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){!this._readableState||(this._readableState.destroyed=e)}});ne.prototype.destroy=qa.destroy;ne.prototype._undestroy=qa.undestroy;ne.prototype._destroy=function(e,r){this.push(null),r(e)};ne.prototype.push=function(e,r){var t=this._readableState,n;return t.objectMode?n=!0:typeof e=="string"&&(r=r||t.defaultEncoding,r!==t.encoding&&(e=Zr.from(e,r),r=""),n=!0),ja(this,e,r,!1,n)};ne.prototype.unshift=function(e){return ja(this,e,null,!0,!1)};function ja(e,r,t,n,i){var a=e._readableState;if(r===null)a.reading=!1,Tc(e,a);else{var u;i||(u=Ac(a,r)),u?e.emit("error",u):a.objectMode||r&&r.length>0?(typeof r!="string"&&!a.objectMode&&Object.getPrototypeOf(r)!==Zr.prototype&&(r=vc(r)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):si(e,a,r,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!t?(r=a.decoder.write(r),a.objectMode||r.length!==0?si(e,a,r,!1):Wa(e,a)):si(e,a,r,!1))):n||(a.reading=!1)}return xc(a)}function si(e,r,t,n){r.flowing&&r.length===0&&!r.sync?(e.emit("data",t),e.read(0)):(r.length+=r.objectMode?1:t.length,n?r.buffer.unshift(t):r.buffer.push(t),r.needReadable&&Kt(e)),Wa(e,r)}function Ac(e,r){var t;return!bc(r)&&typeof r!="string"&&r!==void 0&&!e.objectMode&&(t=new TypeError("Invalid non-string/buffer chunk")),t}function xc(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}ne.prototype.isPaused=function(){return this._readableState.flowing===!1};ne.prototype.setEncoding=function(e){return Tr||(Tr=ii().StringDecoder),this._readableState.decoder=new Tr(e),this._readableState.encoding=e,this};var La=8388608;function Sc(e){return e>=La?e=La:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function Pa(e,r){return e<=0||r.length===0&&r.ended?0:r.objectMode?1:e!==e?r.flowing&&r.length?r.buffer.head.data.length:r.length:(e>r.highWaterMark&&(r.highWaterMark=Sc(e)),e<=r.length?e:r.ended?r.length:(r.needReadable=!0,0))}ne.prototype.read=function(e){J("read",e),e=parseInt(e,10);var r=this._readableState,t=e;if(e!==0&&(r.emittedReadable=!1),e===0&&r.needReadable&&(r.length>=r.highWaterMark||r.ended))return J("read: emitReadable",r.length,r.ended),r.length===0&&r.ended?fi(this):Kt(this),null;if(e=Pa(e,r),e===0&&r.ended)return r.length===0&&fi(this),null;var n=r.needReadable;J("need readable",n),(r.length===0||r.length-e<r.highWaterMark)&&(n=!0,J("length less than watermark",n)),r.ended||r.reading?(n=!1,J("reading or ended",n)):n&&(J("do read"),r.reading=!0,r.sync=!0,r.length===0&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=Pa(t,r)));var i;return e>0?i=Ha(e,r):i=null,i===null?(r.needReadable=!0,e=0):r.length-=e,r.length===0&&(r.ended||(r.needReadable=!0),t!==e&&r.ended&&fi(this)),i!==null&&this.emit("data",i),i};function Tc(e,r){if(!r.ended){if(r.decoder){var t=r.decoder.end();t&&t.length&&(r.buffer.push(t),r.length+=r.objectMode?1:t.length)}r.ended=!0,Kt(e)}}function Kt(e){var r=e._readableState;r.needReadable=!1,r.emittedReadable||(J("emitReadable",r.flowing),r.emittedReadable=!0,r.sync?Rr.nextTick(ka,e):ka(e))}function ka(e){J("emit readable"),e.emit("readable"),li(e)}function Wa(e,r){r.readingMore||(r.readingMore=!0,Rr.nextTick(Rc,e,r))}function Rc(e,r){for(var t=r.length;!r.reading&&!r.flowing&&!r.ended&&r.length<r.highWaterMark&&(J("maybeReadMore read 0"),e.read(0),t!==r.length);)t=r.length;r.readingMore=!1}ne.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};ne.prototype.pipe=function(e,r){var t=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,J("pipe count=%d opts=%j",n.pipesCount,r);var i=(!r||r.end!==!1)&&e!==B.stdout&&e!==B.stderr,a=i?g:I;n.endEmitted?Rr.nextTick(a):t.once("end",a),e.on("unpipe",u);function u(O,W){J("onunpipe"),O===t&&W&&W.hasUnpiped===!1&&(W.hasUnpiped=!0,M())}function g(){J("onend"),e.end()}var d=Cc(t);e.on("drain",d);var p=!1;function M(){J("cleanup"),e.removeListener("close",N),e.removeListener("finish",L),e.removeListener("drain",d),e.removeListener("error",A),e.removeListener("unpipe",u),t.removeListener("end",g),t.removeListener("end",I),t.removeListener("data",T),p=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&d()}var b=!1;t.on("data",T);function T(O){J("ondata"),b=!1;var W=e.write(O);W===!1&&!b&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&Ya(n.pipes,e)!==-1)&&!p&&(J("false write response, pause",t._readableState.awaitDrain),t._readableState.awaitDrain++,b=!0),t.pause())}function A(O){J("onerror",O),I(),e.removeListener("error",A),Ua(e,"error")===0&&e.emit("error",O)}Ec(e,"error",A);function N(){e.removeListener("finish",L),I()}e.once("close",N);function L(){J("onfinish"),e.removeListener("close",N),I()}e.once("finish",L);function I(){J("unpipe"),t.unpipe(e)}return e.emit("pipe",t),n.flowing||(J("pipe resume"),t.resume()),e};function Cc(e){return function(){var r=e._readableState;J("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Ua(e,"data")&&(r.flowing=!0,li(e))}}ne.prototype.unpipe=function(e){var r=this._readableState,t={hasUnpiped:!1};if(r.pipesCount===0)return this;if(r.pipesCount===1)return e&&e!==r.pipes?this:(e||(e=r.pipes),r.pipes=null,r.pipesCount=0,r.flowing=!1,e&&e.emit("unpipe",this,t),this);if(!e){var n=r.pipes,i=r.pipesCount;r.pipes=null,r.pipesCount=0,r.flowing=!1;for(var a=0;a<i;a++)n[a].emit("unpipe",this,t);return this}var u=Ya(r.pipes,e);return u===-1?this:(r.pipes.splice(u,1),r.pipesCount-=1,r.pipesCount===1&&(r.pipes=r.pipes[0]),e.emit("unpipe",this,t),this)};ne.prototype.on=function(e,r){var t=ui.prototype.on.call(this,e,r);if(e==="data")this._readableState.flowing!==!1&&this.resume();else if(e==="readable"){var n=this._readableState;!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&Kt(this):Rr.nextTick(Bc,this))}return t};ne.prototype.addListener=ne.prototype.on;function Bc(e){J("readable nexttick read 0"),e.read(0)}ne.prototype.resume=function(){var e=this._readableState;return e.flowing||(J("resume"),e.flowing=!0,Mc(this,e)),this};function Mc(e,r){r.resumeScheduled||(r.resumeScheduled=!0,Rr.nextTick(Nc,e,r))}function Nc(e,r){r.reading||(J("resume read 0"),e.read(0)),r.resumeScheduled=!1,r.awaitDrain=0,e.emit("resume"),li(e),r.flowing&&!r.reading&&e.read(0)}ne.prototype.pause=function(){return J("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(J("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function li(e){var r=e._readableState;for(J("flow",r.flowing);r.flowing&&e.read()!==null;);}ne.prototype.wrap=function(e){var r=this,t=this._readableState,n=!1;e.on("end",function(){if(J("wrapped end"),t.decoder&&!t.ended){var u=t.decoder.end();u&&u.length&&r.push(u)}r.push(null)}),e.on("data",function(u){if(J("wrapped data"),t.decoder&&(u=t.decoder.write(u)),!(t.objectMode&&u==null)&&!(!t.objectMode&&(!u||!u.length))){var g=r.push(u);g||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=function(u){return function(){return e[u].apply(e,arguments)}}(i));for(var a=0;a<ai.length;a++)e.on(ai[a],this.emit.bind(this,ai[a]));return this._read=function(u){J("wrapped _read",u),n&&(n=!1,e.resume())},this};Object.defineProperty(ne.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});ne._fromList=Ha;function Ha(e,r){if(r.length===0)return null;var t;return r.objectMode?t=r.buffer.shift():!e||e>=r.length?(r.decoder?t=r.buffer.join(""):r.buffer.length===1?t=r.buffer.head.data:t=r.buffer.concat(r.length),r.buffer.clear()):t=Ic(e,r.buffer,r.decoder),t}function Ic(e,r,t){var n;return e<r.head.data.length?(n=r.head.data.slice(0,e),r.head.data=r.head.data.slice(e)):e===r.head.data.length?n=r.shift():n=t?Oc(e,r):Lc(e,r),n}function Oc(e,r){var t=r.head,n=1,i=t.data;for(e-=i.length;t=t.next;){var a=t.data,u=e>a.length?a.length:e;if(u===a.length?i+=a:i+=a.slice(0,e),e-=u,e===0){u===a.length?(++n,t.next?r.head=t.next:r.head=r.tail=null):(r.head=t,t.data=a.slice(u));break}++n}return r.length-=n,i}function Lc(e,r){var t=Zr.allocUnsafe(e),n=r.head,i=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var a=n.data,u=e>a.length?a.length:e;if(a.copy(t,t.length-e,0,u),e-=u,e===0){u===a.length?(++i,n.next?r.head=n.next:r.head=r.tail=null):(r.head=n,n.data=a.slice(u));break}++i}return r.length-=i,t}function fi(e){var r=e._readableState;if(r.length>0)throw new Error('"endReadable()" called on non-empty stream');r.endEmitted||(r.ended=!0,Rr.nextTick(Pc,r,e))}function Pc(e,r){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,r.readable=!1,r.emit("end"))}function Ya(e,r){for(var t=0,n=e.length;t<n;t++)if(e[t]===r)return t;return-1}});var hi=q((ew,za)=>{"use strict";x();S();za.exports=Fe;var Xt=hr(),Va=Object.create(ve());Va.inherits=be();Va.inherits(Fe,Xt);function kc(e,r){var t=this._transformState;t.transforming=!1;var n=t.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));t.writechunk=null,t.writecb=null,r!=null&&this.push(r),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function Fe(e){if(!(this instanceof Fe))return new Fe(e);Xt.call(this,e),this._transformState={afterTransform:kc.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",Uc)}function Uc(){var e=this;typeof this._flush=="function"?this._flush(function(r,t){Ga(e,r,t)}):Ga(this,null,null)}Fe.prototype.push=function(e,r){return this._transformState.needTransform=!1,Xt.prototype.push.call(this,e,r)};Fe.prototype._transform=function(e,r,t){throw new Error("_transform() is not implemented")};Fe.prototype._write=function(e,r,t){var n=this._transformState;if(n.writecb=t,n.writechunk=e,n.writeencoding=r,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};Fe.prototype._read=function(e){var r=this._transformState;r.writechunk!==null&&r.writecb&&!r.transforming?(r.transforming=!0,this._transform(r.writechunk,r.writeencoding,r.afterTransform)):r.needTransform=!0};Fe.prototype._destroy=function(e,r){var t=this;Xt.prototype._destroy.call(this,e,function(n){r(n),t.emit("close")})};function Ga(e,r,t){if(r)return e.emit("error",r);if(t!=null&&e.push(t),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}});var Za=q((nw,Ja)=>{"use strict";x();S();Ja.exports=Qr;var Ka=hi(),Xa=Object.create(ve());Xa.inherits=be();Xa.inherits(Qr,Ka);function Qr(e){if(!(this instanceof Qr))return new Qr(e);Ka.call(this,e)}Qr.prototype._transform=function(e,r,t){t(null,e)}});var es=q((Me,Qa)=>{x();S();Me=Qa.exports=ri();Me.Stream=Me;Me.Readable=Me;Me.Writable=Zn();Me.Duplex=hr();Me.Transform=hi();Me.PassThrough=Za()});var ns=q((fw,ts)=>{x();S();ts.exports=rs;function rs(e,r){if(e&&r)return rs(e)(r);if(typeof e!="function")throw new TypeError("need wrapper function");return Object.keys(e).forEach(function(n){t[n]=e[n]}),t;function t(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var a=e.apply(this,n),u=n[n.length-1];return typeof a=="function"&&a!==u&&Object.keys(u).forEach(function(g){a[g]=u[g]}),a}}});var Zt=q((hw,ci)=>{x();S();var is=ns();ci.exports=is(Jt);ci.exports.strict=is(os);Jt.proto=Jt(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Jt(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return os(this)},configurable:!0})});function Jt(e){var r=function(){return r.called?r.value:(r.called=!0,r.value=e.apply(this,arguments))};return r.called=!1,r}function os(e){var r=function(){if(r.called)throw new Error(r.onceError);return r.called=!0,r.value=e.apply(this,arguments)},t=e.name||"Function wrapped with `once`";return r.onceError=t+" shouldn't be called more than once",r.called=!1,r}});var di=q((pw,ss)=>{x();S();var Dc=Zt(),qc=function(){},Fc=function(e){return e.setHeader&&typeof e.abort=="function"},jc=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3},as=function(e,r,t){if(typeof r=="function")return as(e,null,r);r||(r={}),t=Dc(t||qc);var n=e._writableState,i=e._readableState,a=r.readable||r.readable!==!1&&e.readable,u=r.writable||r.writable!==!1&&e.writable,g=!1,d=function(){e.writable||p()},p=function(){u=!1,a||t.call(e)},M=function(){a=!1,u||t.call(e)},b=function(I){t.call(e,I?new Error("exited with error code: "+I):null)},T=function(I){t.call(e,I)},A=function(){B.nextTick(N)},N=function(){if(!g){if(a&&!(i&&i.ended&&!i.destroyed))return t.call(e,new Error("premature close"));if(u&&!(n&&n.ended&&!n.destroyed))return t.call(e,new Error("premature close"))}},L=function(){e.req.on("finish",p)};return Fc(e)?(e.on("complete",p),e.on("abort",A),e.req?L():e.on("request",L)):u&&!n&&(e.on("end",d),e.on("close",d)),jc(e)&&e.on("exit",b),e.on("end",M),e.on("finish",p),r.error!==!1&&e.on("error",T),e.on("close",A),function(){g=!0,e.removeListener("complete",p),e.removeListener("abort",A),e.removeListener("request",L),e.req&&e.req.removeListener("finish",p),e.removeListener("end",d),e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("exit",b),e.removeListener("end",M),e.removeListener("error",T),e.removeListener("close",A)}};ss.exports=as});var cs=q((ww,hs)=>{x();S();var{Duplex:ls}=es(),fs=di(),Wc=Zt(),us={},pi=class extends ls{constructor(r={}){let t=Object.assign({},r,{objectMode:!0});super(t),this._substreams={}}createStream(r){if(!r)throw new Error("ObjectMultiplex - name must not be empty");if(this._substreams[r])throw new Error('ObjectMultiplex - Substream for name "${name}" already exists');let t=new gi({parent:this,name:r});return this._substreams[r]=t,Hc(this,n=>{t.destroy(n)}),t}ignoreStream(r){if(!r)throw new Error("ObjectMultiplex - name must not be empty");if(this._substreams[r])throw new Error('ObjectMultiplex - Substream for name "${name}" already exists');this._substreams[r]=us}_read(){}_write(r,t,n){let i=r.name,a=r.data;if(!i)return console.warn(`ObjectMultiplex - malformed chunk without name "${r}"`),n();let u=this._substreams[i];if(!u)return console.warn(`ObjectMultiplex - orphaned data for stream "${i}"`),n();u!==us&&u.push(a),n()}},gi=class extends ls{constructor({parent:r,name:t}){super({objectMode:!0}),this._parent=r,this._name=t}_read(){}_write(r,t,n){this._parent.push({name:this._name,data:r}),n()}};hs.exports=pi;function Hc(e,r){let t=Wc(r);fs(e,{readable:!1},t),fs(e,{writable:!1},t)}});var ps=q((bw,ds)=>{x();S();var Yc={}.toString;ds.exports=Array.isArray||function(e){return Yc.call(e)=="[object Array]"}});var yi=q((Aw,gs)=>{x();S();gs.exports=tr().EventEmitter});var et=q((wi,ws)=>{x();S();var Qt=Lt(),je=Qt.Buffer;function ys(e,r){for(var t in e)r[t]=e[t]}je.from&&je.alloc&&je.allocUnsafe&&je.allocUnsafeSlow?ws.exports=Qt:(ys(Qt,wi),wi.Buffer=Cr);function Cr(e,r,t){return je(e,r,t)}ys(je,Cr);Cr.from=function(e,r,t){if(typeof e=="number")throw new TypeError("Argument must not be a number");return je(e,r,t)};Cr.alloc=function(e,r,t){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=je(e);return r!==void 0?typeof t=="string"?n.fill(r,t):n.fill(r):n.fill(0),n};Cr.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return je(e)};Cr.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Qt.SlowBuffer(e)}});var vs=q((Cw,mi)=>{"use strict";x();S();function $c(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}var ms=et().Buffer,rt=ur();function Gc(e,r,t){e.copy(r,t)}mi.exports=function(){function e(){$c(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(t){var n={data:t,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length},e.prototype.unshift=function(t){var n={data:t,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length},e.prototype.shift=function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(t){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=t+n.data;return i},e.prototype.concat=function(t){if(this.length===0)return ms.alloc(0);if(this.length===1)return this.head.data;for(var n=ms.allocUnsafe(t>>>0),i=this.head,a=0;i;)Gc(i.data,n,a),a+=i.data.length,i=i.next;return n},e}();rt&&rt.inspect&&rt.inspect.custom&&(mi.exports.prototype[rt.inspect.custom]=function(){var e=rt.inspect({length:this.length});return this.constructor.name+" "+e})});var vi=q((Nw,Es)=>{"use strict";x();S();var bs=Pe();function Vc(e,r){var t=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(r?r(e):e&&(!this._writableState||!this._writableState.errorEmitted)&&bs.nextTick(_s,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!r&&a?(bs.nextTick(_s,t,a),t._writableState&&(t._writableState.errorEmitted=!0)):r&&r(a)}),this)}function zc(){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.finished=!1,this._writableState.errorEmitted=!1)}function _s(e,r){e.emit("error",r)}Es.exports={destroy:Vc,undestroy:zc}});var _i=q((Lw,Ms)=>{"use strict";x();S();var cr=Pe();Ms.exports=he;function xs(e){var r=this;this.next=null,this.entry=null,this.finish=function(){cd(r,e)}}var Kc=!B.browser&&["v0.10","v0.9."].indexOf(B.version.slice(0,5))>-1?setImmediate:cr.nextTick,Br;he.WritableState=nt;var Ss=Object.create(ve());Ss.inherits=be();var Xc={deprecate:Yt()},Ts=yi(),rn=et().Buffer,Jc=globalThis.Uint8Array||function(){};function Zc(e){return rn.from(e)}function Qc(e){return rn.isBuffer(e)||e instanceof Jc}var Rs=vi();Ss.inherits(he,Ts);function ed(){}function nt(e,r){Br=Br||dr(),e=e||{};var t=r instanceof Br;this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,i=e.writableHighWaterMark,a=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:t&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var u=e.decodeStrings===!1;this.decodeStrings=!u,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(g){sd(r,g)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new xs(this)}nt.prototype.getBuffer=function(){for(var r=this.bufferedRequest,t=[];r;)t.push(r),r=r.next;return t};(function(){try{Object.defineProperty(nt.prototype,"buffer",{get:Xc.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var en;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(en=Function.prototype[Symbol.hasInstance],Object.defineProperty(he,Symbol.hasInstance,{value:function(e){return en.call(this,e)?!0:this!==he?!1:e&&e._writableState instanceof nt}})):en=function(e){return e instanceof this};function he(e){if(Br=Br||dr(),!en.call(he,this)&&!(this instanceof Br))return new he(e);this._writableState=new nt(e,this),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),Ts.call(this)}he.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function rd(e,r){var t=new Error("write after end");e.emit("error",t),cr.nextTick(r,t)}function td(e,r,t,n){var i=!0,a=!1;return t===null?a=new TypeError("May not write null values to stream"):typeof t!="string"&&t!==void 0&&!r.objectMode&&(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),cr.nextTick(n,a),i=!1),i}he.prototype.write=function(e,r,t){var n=this._writableState,i=!1,a=!n.objectMode&&Qc(e);return a&&!rn.isBuffer(e)&&(e=Zc(e)),typeof r=="function"&&(t=r,r=null),a?r="buffer":r||(r=n.defaultEncoding),typeof t!="function"&&(t=ed),n.ended?rd(this,t):(a||td(this,n,e,t))&&(n.pendingcb++,i=id(this,n,a,e,r,t)),i};he.prototype.cork=function(){var e=this._writableState;e.corked++};he.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.finished&&!e.bufferProcessing&&e.bufferedRequest&&Cs(this,e))};he.prototype.setDefaultEncoding=function(r){if(typeof r=="string"&&(r=r.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((r+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+r);return this._writableState.defaultEncoding=r,this};function nd(e,r,t){return!e.objectMode&&e.decodeStrings!==!1&&typeof r=="string"&&(r=rn.from(r,t)),r}Object.defineProperty(he.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function id(e,r,t,n,i,a){if(!t){var u=nd(r,n,i);n!==u&&(t=!0,i="buffer",n=u)}var g=r.objectMode?1:n.length;r.length+=g;var d=r.length<r.highWaterMark;if(d||(r.needDrain=!0),r.writing||r.corked){var p=r.lastBufferedRequest;r.lastBufferedRequest={chunk:n,encoding:i,isBuf:t,callback:a,next:null},p?p.next=r.lastBufferedRequest:r.bufferedRequest=r.lastBufferedRequest,r.bufferedRequestCount+=1}else bi(e,r,!1,g,n,i,a);return d}function bi(e,r,t,n,i,a,u){r.writelen=n,r.writecb=u,r.writing=!0,r.sync=!0,t?e._writev(i,r.onwrite):e._write(i,a,r.onwrite),r.sync=!1}function od(e,r,t,n,i){--r.pendingcb,t?(cr.nextTick(i,n),cr.nextTick(tt,e,r),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),tt(e,r))}function ad(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function sd(e,r){var t=e._writableState,n=t.sync,i=t.writecb;if(ad(t),r)od(e,t,n,r,i);else{var a=Bs(t);!a&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Cs(e,t),n?Kc(As,e,t,a,i):As(e,t,a,i)}}function As(e,r,t,n){t||fd(e,r),r.pendingcb--,n(),tt(e,r)}function fd(e,r){r.length===0&&r.needDrain&&(r.needDrain=!1,e.emit("drain"))}function Cs(e,r){r.bufferProcessing=!0;var t=r.bufferedRequest;if(e._writev&&t&&t.next){var n=r.bufferedRequestCount,i=new Array(n),a=r.corkedRequestsFree;a.entry=t;for(var u=0,g=!0;t;)i[u]=t,t.isBuf||(g=!1),t=t.next,u+=1;i.allBuffers=g,bi(e,r,!0,r.length,i,"",a.finish),r.pendingcb++,r.lastBufferedRequest=null,a.next?(r.corkedRequestsFree=a.next,a.next=null):r.corkedRequestsFree=new xs(r),r.bufferedRequestCount=0}else{for(;t;){var d=t.chunk,p=t.encoding,M=t.callback,b=r.objectMode?1:d.length;if(bi(e,r,!1,b,d,p,M),t=t.next,r.bufferedRequestCount--,r.writing)break}t===null&&(r.lastBufferedRequest=null)}r.bufferedRequest=t,r.bufferProcessing=!1}he.prototype._write=function(e,r,t){t(new Error("_write() is not implemented"))};he.prototype._writev=null;he.prototype.end=function(e,r,t){var n=this._writableState;typeof e=="function"?(t=e,e=null,r=null):typeof r=="function"&&(t=r,r=null),e!=null&&this.write(e,r),n.corked&&(n.corked=1,this.uncork()),!n.ending&&!n.finished&&hd(this,n,t)};function Bs(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function ud(e,r){e._final(function(t){r.pendingcb--,t&&e.emit("error",t),r.prefinished=!0,e.emit("prefinish"),tt(e,r)})}function ld(e,r){!r.prefinished&&!r.finalCalled&&(typeof e._final=="function"?(r.pendingcb++,r.finalCalled=!0,cr.nextTick(ud,e,r)):(r.prefinished=!0,e.emit("prefinish")))}function tt(e,r){var t=Bs(r);return t&&(ld(e,r),r.pendingcb===0&&(r.finished=!0,e.emit("finish"))),t}function hd(e,r,t){r.ending=!0,tt(e,r),t&&(r.finished?cr.nextTick(t):e.once("finish",t)),r.ended=!0,e.writable=!1}function cd(e,r,t){var n=e.entry;for(e.entry=null;n;){var i=n.callback;r.pendingcb--,i(t),n=n.next}r.corkedRequestsFree?r.corkedRequestsFree.next=e:r.corkedRequestsFree=e}Object.defineProperty(he.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){!this._writableState||(this._writableState.destroyed=e)}});he.prototype.destroy=Rs.destroy;he.prototype._undestroy=Rs.undestroy;he.prototype._destroy=function(e,r){this.end(),r(e)}});var dr=q((Uw,Ls)=>{"use strict";x();S();var Ns=Pe(),dd=Object.keys||function(e){var r=[];for(var t in e)r.push(t);return r};Ls.exports=We;var Is=Object.create(ve());Is.inherits=be();var Os=xi(),Ai=_i();Is.inherits(We,Os);for(Ei=dd(Ai.prototype),tn=0;tn<Ei.length;tn++)nn=Ei[tn],We.prototype[nn]||(We.prototype[nn]=Ai.prototype[nn]);var Ei,nn,tn;function We(e){if(!(this instanceof We))return new We(e);Os.call(this,e),Ai.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",pd)}Object.defineProperty(We.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function pd(){this.allowHalfOpen||this._writableState.ended||Ns.nextTick(gd,this)}function gd(e){e.end()}Object.defineProperty(We.prototype,"destroyed",{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)}});We.prototype._destroy=function(e,r){this.push(null),this.end(),Ns.nextTick(r,e)}});var Ri=q(ks=>{"use strict";x();S();var Ti=et().Buffer,Ps=Ti.isEncoding||function(e){switch(e=""+e,e&&e.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 yd(e){if(!e)return"utf8";for(var r;;)switch(e){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 e;default:if(r)return;e=(""+e).toLowerCase(),r=!0}}function wd(e){var r=yd(e);if(typeof r!="string"&&(Ti.isEncoding===Ps||!Ps(e)))throw new Error("Unknown encoding: "+e);return r||e}ks.StringDecoder=it;function it(e){this.encoding=wd(e);var r;switch(this.encoding){case"utf16le":this.text=Ad,this.end=xd,r=4;break;case"utf8":this.fillLast=bd,r=4;break;case"base64":this.text=Sd,this.end=Td,r=3;break;default:this.write=Rd,this.end=Cd;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Ti.allocUnsafe(r)}it.prototype.write=function(e){if(e.length===0)return"";var r,t;if(this.lastNeed){if(r=this.fillLast(e),r===void 0)return"";t=this.lastNeed,this.lastNeed=0}else t=0;return t<e.length?r?r+this.text(e,t):this.text(e,t):r||""};it.prototype.end=Ed;it.prototype.text=_d;it.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function Si(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function md(e,r,t){var n=r.length-1;if(n<t)return 0;var i=Si(r[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<t||i===-2?0:(i=Si(r[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<t||i===-2?0:(i=Si(r[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function vd(e,r,t){if((r[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&r.length>1){if((r[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&r.length>2&&(r[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function bd(e){var r=this.lastTotal-this.lastNeed,t=vd(this,e,r);if(t!==void 0)return t;if(this.lastNeed<=e.length)return e.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,r,0,e.length),this.lastNeed-=e.length}function _d(e,r){var t=md(this,e,r);if(!this.lastNeed)return e.toString("utf8",r);this.lastTotal=t;var n=e.length-(t-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",r,n)}function Ed(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+"\uFFFD":r}function Ad(e,r){if((e.length-r)%2===0){var t=e.toString("utf16le",r);if(t){var n=t.charCodeAt(t.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",r,e.length-1)}function xd(e){var r=e&&e.length?this.write(e):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return r+this.lastChar.toString("utf16le",0,t)}return r}function Sd(e,r){var t=(e.length-r)%3;return t===0?e.toString("base64",r):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",r,e.length-t))}function Td(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+this.lastChar.toString("base64",0,3-this.lastNeed):r}function Rd(e){return e.toString(this.encoding)}function Cd(e){return e&&e.length?this.write(e):""}});var xi=q((Yw,zs)=>{"use strict";x();S();var Nr=Pe();zs.exports=ie;var Bd=ps(),ot;ie.ReadableState=Hs;var Hw=tr().EventEmitter,Fs=function(e,r){return e.listeners(r).length},Ii=yi(),at=et().Buffer,Md=globalThis.Uint8Array||function(){};function Nd(e){return at.from(e)}function Id(e){return at.isBuffer(e)||e instanceof Md}var js=Object.create(ve());js.inherits=be();var Ci=ur(),Z=void 0;Ci&&Ci.debuglog?Z=Ci.debuglog("stream"):Z=function(){};var Od=vs(),Ws=vi(),Mr;js.inherits(ie,Ii);var Bi=["error","close","destroy","pause","resume"];function Ld(e,r,t){if(typeof e.prependListener=="function")return e.prependListener(r,t);!e._events||!e._events[r]?e.on(r,t):Bd(e._events[r])?e._events[r].unshift(t):e._events[r]=[t,e._events[r]]}function Hs(e,r){ot=ot||dr(),e=e||{};var t=r instanceof ot;this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,i=e.readableHighWaterMark,a=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:t&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new Od,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.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(Mr||(Mr=Ri().StringDecoder),this.decoder=new Mr(e.encoding),this.encoding=e.encoding)}function ie(e){if(ot=ot||dr(),!(this instanceof ie))return new ie(e);this._readableState=new Hs(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Ii.call(this)}Object.defineProperty(ie.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){!this._readableState||(this._readableState.destroyed=e)}});ie.prototype.destroy=Ws.destroy;ie.prototype._undestroy=Ws.undestroy;ie.prototype._destroy=function(e,r){this.push(null),r(e)};ie.prototype.push=function(e,r){var t=this._readableState,n;return t.objectMode?n=!0:typeof e=="string"&&(r=r||t.defaultEncoding,r!==t.encoding&&(e=at.from(e,r),r=""),n=!0),Ys(this,e,r,!1,n)};ie.prototype.unshift=function(e){return Ys(this,e,null,!0,!1)};function Ys(e,r,t,n,i){var a=e._readableState;if(r===null)a.reading=!1,Dd(e,a);else{var u;i||(u=Pd(a,r)),u?e.emit("error",u):a.objectMode||r&&r.length>0?(typeof r!="string"&&!a.objectMode&&Object.getPrototypeOf(r)!==at.prototype&&(r=Nd(r)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):Mi(e,a,r,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!t?(r=a.decoder.write(r),a.objectMode||r.length!==0?Mi(e,a,r,!1):$s(e,a)):Mi(e,a,r,!1))):n||(a.reading=!1)}return kd(a)}function Mi(e,r,t,n){r.flowing&&r.length===0&&!r.sync?(e.emit("data",t),e.read(0)):(r.length+=r.objectMode?1:t.length,n?r.buffer.unshift(t):r.buffer.push(t),r.needReadable&&on(e)),$s(e,r)}function Pd(e,r){var t;return!Id(r)&&typeof r!="string"&&r!==void 0&&!e.objectMode&&(t=new TypeError("Invalid non-string/buffer chunk")),t}function kd(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}ie.prototype.isPaused=function(){return this._readableState.flowing===!1};ie.prototype.setEncoding=function(e){return Mr||(Mr=Ri().StringDecoder),this._readableState.decoder=new Mr(e),this._readableState.encoding=e,this};var Us=8388608;function Ud(e){return e>=Us?e=Us:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function Ds(e,r){return e<=0||r.length===0&&r.ended?0:r.objectMode?1:e!==e?r.flowing&&r.length?r.buffer.head.data.length:r.length:(e>r.highWaterMark&&(r.highWaterMark=Ud(e)),e<=r.length?e:r.ended?r.length:(r.needReadable=!0,0))}ie.prototype.read=function(e){Z("read",e),e=parseInt(e,10);var r=this._readableState,t=e;if(e!==0&&(r.emittedReadable=!1),e===0&&r.needReadable&&(r.length>=r.highWaterMark||r.ended))return Z("read: emitReadable",r.length,r.ended),r.length===0&&r.ended?Ni(this):on(this),null;if(e=Ds(e,r),e===0&&r.ended)return r.length===0&&Ni(this),null;var n=r.needReadable;Z("need readable",n),(r.length===0||r.length-e<r.highWaterMark)&&(n=!0,Z("length less than watermark",n)),r.ended||r.reading?(n=!1,Z("reading or ended",n)):n&&(Z("do read"),r.reading=!0,r.sync=!0,r.length===0&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=Ds(t,r)));var i;return e>0?i=Gs(e,r):i=null,i===null?(r.needReadable=!0,e=0):r.length-=e,r.length===0&&(r.ended||(r.needReadable=!0),t!==e&&r.ended&&Ni(this)),i!==null&&this.emit("data",i),i};function Dd(e,r){if(!r.ended){if(r.decoder){var t=r.decoder.end();t&&t.length&&(r.buffer.push(t),r.length+=r.objectMode?1:t.length)}r.ended=!0,on(e)}}function on(e){var r=e._readableState;r.needReadable=!1,r.emittedReadable||(Z("emitReadable",r.flowing),r.emittedReadable=!0,r.sync?Nr.nextTick(qs,e):qs(e))}function qs(e){Z("emit readable"),e.emit("readable"),Oi(e)}function $s(e,r){r.readingMore||(r.readingMore=!0,Nr.nextTick(qd,e,r))}function qd(e,r){for(var t=r.length;!r.reading&&!r.flowing&&!r.ended&&r.length<r.highWaterMark&&(Z("maybeReadMore read 0"),e.read(0),t!==r.length);)t=r.length;r.readingMore=!1}ie.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};ie.prototype.pipe=function(e,r){var t=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,Z("pipe count=%d opts=%j",n.pipesCount,r);var i=(!r||r.end!==!1)&&e!==B.stdout&&e!==B.stderr,a=i?g:I;n.endEmitted?Nr.nextTick(a):t.once("end",a),e.on("unpipe",u);function u(O,W){Z("onunpipe"),O===t&&W&&W.hasUnpiped===!1&&(W.hasUnpiped=!0,M())}function g(){Z("onend"),e.end()}var d=Fd(t);e.on("drain",d);var p=!1;function M(){Z("cleanup"),e.removeListener("close",N),e.removeListener("finish",L),e.removeListener("drain",d),e.removeListener("error",A),e.removeListener("unpipe",u),t.removeListener("end",g),t.removeListener("end",I),t.removeListener("data",T),p=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&d()}var b=!1;t.on("data",T);function T(O){Z("ondata"),b=!1;var W=e.write(O);W===!1&&!b&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&Vs(n.pipes,e)!==-1)&&!p&&(Z("false write response, pause",t._readableState.awaitDrain),t._readableState.awaitDrain++,b=!0),t.pause())}function A(O){Z("onerror",O),I(),e.removeListener("error",A),Fs(e,"error")===0&&e.emit("error",O)}Ld(e,"error",A);function N(){e.removeListener("finish",L),I()}e.once("close",N);function L(){Z("onfinish"),e.removeListener("close",N),I()}e.once("finish",L);function I(){Z("unpipe"),t.unpipe(e)}return e.emit("pipe",t),n.flowing||(Z("pipe resume"),t.resume()),e};function Fd(e){return function(){var r=e._readableState;Z("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Fs(e,"data")&&(r.flowing=!0,Oi(e))}}ie.prototype.unpipe=function(e){var r=this._readableState,t={hasUnpiped:!1};if(r.pipesCount===0)return this;if(r.pipesCount===1)return e&&e!==r.pipes?this:(e||(e=r.pipes),r.pipes=null,r.pipesCount=0,r.flowing=!1,e&&e.emit("unpipe",this,t),this);if(!e){var n=r.pipes,i=r.pipesCount;r.pipes=null,r.pipesCount=0,r.flowing=!1;for(var a=0;a<i;a++)n[a].emit("unpipe",this,t);return this}var u=Vs(r.pipes,e);return u===-1?this:(r.pipes.splice(u,1),r.pipesCount-=1,r.pipesCount===1&&(r.pipes=r.pipes[0]),e.emit("unpipe",this,t),this)};ie.prototype.on=function(e,r){var t=Ii.prototype.on.call(this,e,r);if(e==="data")this._readableState.flowing!==!1&&this.resume();else if(e==="readable"){var n=this._readableState;!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&on(this):Nr.nextTick(jd,this))}return t};ie.prototype.addListener=ie.prototype.on;function jd(e){Z("readable nexttick read 0"),e.read(0)}ie.prototype.resume=function(){var e=this._readableState;return e.flowing||(Z("resume"),e.flowing=!0,Wd(this,e)),this};function Wd(e,r){r.resumeScheduled||(r.resumeScheduled=!0,Nr.nextTick(Hd,e,r))}function Hd(e,r){r.reading||(Z("resume read 0"),e.read(0)),r.resumeScheduled=!1,r.awaitDrain=0,e.emit("resume"),Oi(e),r.flowing&&!r.reading&&e.read(0)}ie.prototype.pause=function(){return Z("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Z("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Oi(e){var r=e._readableState;for(Z("flow",r.flowing);r.flowing&&e.read()!==null;);}ie.prototype.wrap=function(e){var r=this,t=this._readableState,n=!1;e.on("end",function(){if(Z("wrapped end"),t.decoder&&!t.ended){var u=t.decoder.end();u&&u.length&&r.push(u)}r.push(null)}),e.on("data",function(u){if(Z("wrapped data"),t.decoder&&(u=t.decoder.write(u)),!(t.objectMode&&u==null)&&!(!t.objectMode&&(!u||!u.length))){var g=r.push(u);g||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=function(u){return function(){return e[u].apply(e,arguments)}}(i));for(var a=0;a<Bi.length;a++)e.on(Bi[a],this.emit.bind(this,Bi[a]));return this._read=function(u){Z("wrapped _read",u),n&&(n=!1,e.resume())},this};Object.defineProperty(ie.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});ie._fromList=Gs;function Gs(e,r){if(r.length===0)return null;var t;return r.objectMode?t=r.buffer.shift():!e||e>=r.length?(r.decoder?t=r.buffer.join(""):r.buffer.length===1?t=r.buffer.head.data:t=r.buffer.concat(r.length),r.buffer.clear()):t=Yd(e,r.buffer,r.decoder),t}function Yd(e,r,t){var n;return e<r.head.data.length?(n=r.head.data.slice(0,e),r.head.data=r.head.data.slice(e)):e===r.head.data.length?n=r.shift():n=t?$d(e,r):Gd(e,r),n}function $d(e,r){var t=r.head,n=1,i=t.data;for(e-=i.length;t=t.next;){var a=t.data,u=e>a.length?a.length:e;if(u===a.length?i+=a:i+=a.slice(0,e),e-=u,e===0){u===a.length?(++n,t.next?r.head=t.next:r.head=r.tail=null):(r.head=t,t.data=a.slice(u));break}++n}return r.length-=n,i}function Gd(e,r){var t=at.allocUnsafe(e),n=r.head,i=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var a=n.data,u=e>a.length?a.length:e;if(a.copy(t,t.length-e,0,u),e-=u,e===0){u===a.length?(++i,n.next?r.head=n.next:r.head=r.tail=null):(r.head=n,n.data=a.slice(u));break}++i}return r.length-=i,t}function Ni(e){var r=e._readableState;if(r.length>0)throw new Error('"endReadable()" called on non-empty stream');r.endEmitted||(r.ended=!0,Nr.nextTick(Vd,r,e))}function Vd(e,r){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,r.readable=!1,r.emit("end"))}function Vs(e,r){for(var t=0,n=e.length;t<n;t++)if(e[t]===r)return t;return-1}});var Li=q((Vw,Js)=>{"use strict";x();S();Js.exports=He;var an=dr(),Xs=Object.create(ve());Xs.inherits=be();Xs.inherits(He,an);function zd(e,r){var t=this._transformState;t.transforming=!1;var n=t.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));t.writechunk=null,t.writecb=null,r!=null&&this.push(r),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function He(e){if(!(this instanceof He))return new He(e);an.call(this,e),this._transformState={afterTransform:zd.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",Kd)}function Kd(){var e=this;typeof this._flush=="function"?this._flush(function(r,t){Ks(e,r,t)}):Ks(this,null,null)}He.prototype.push=function(e,r){return this._transformState.needTransform=!1,an.prototype.push.call(this,e,r)};He.prototype._transform=function(e,r,t){throw new Error("_transform() is not implemented")};He.prototype._write=function(e,r,t){var n=this._transformState;if(n.writecb=t,n.writechunk=e,n.writeencoding=r,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};He.prototype._read=function(e){var r=this._transformState;r.writechunk!==null&&r.writecb&&!r.transforming?(r.transforming=!0,this._transform(r.writechunk,r.writeencoding,r.afterTransform)):r.needTransform=!0};He.prototype._destroy=function(e,r){var t=this;an.prototype._destroy.call(this,e,function(n){r(n),t.emit("close")})};function Ks(e,r,t){if(r)return e.emit("error",r);if(t!=null&&e.push(t),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}});var rf=q((Xw,ef)=>{"use strict";x();S();ef.exports=st;var Zs=Li(),Qs=Object.create(ve());Qs.inherits=be();Qs.inherits(st,Zs);function st(e){if(!(this instanceof st))return new st(e);Zs.call(this,e)}st.prototype._transform=function(e,r,t){t(null,e)}});var nf=q((Ne,tf)=>{x();S();Ne=tf.exports=xi();Ne.Stream=Ne;Ne.Readable=Ne;Ne.Writable=_i();Ne.Duplex=dr();Ne.Transform=Li();Ne.PassThrough=rf()});var sf=q((rm,af)=>{x();S();var of=nf().Duplex,Xd=ur().inherits;af.exports=ft;Xd(ft,of);function ft(e){of.call(this,{objectMode:!0}),this._name=e.name,this._target=e.target,this._targetWindow=e.targetWindow||window,this._origin=e.targetWindow?"*":location.origin,this._init=!1,this._haveSyn=!1,window.addEventListener("message",this._onMessage.bind(this),!1),this._write("SYN",null,sn),this.cork()}ft.prototype._onMessage=function(e){var r=e.data;if(!(this._origin!=="*"&&e.origin!==this._origin)&&e.source===this._targetWindow&&typeof r=="object"&&r.target===this._name&&!!r.data)if(!this._init)r.data==="SYN"?(this._haveSyn=!0,this._write("ACK",null,sn)):r.data==="ACK"&&(this._init=!0,this._haveSyn||this._write("ACK",null,sn),this.uncork());else try{this.push(r.data)}catch(t){this.emit("error",t)}};ft.prototype._read=sn;ft.prototype._write=function(e,r,t){var n={target:this._target,data:e};this._targetWindow.postMessage(n,this._origin),t()};function sn(){}});var ff={};vn(ff,{default:()=>Jd});var Jd,uf=Ze(()=>{x();S();Jd={}});var lf=q((am,fn)=>{x();S();var pr=(uf(),bn(ff));if(pr&&pr.default){fn.exports=pr.default;for(let e in pr)fn.exports[e]=pr[e]}else pr&&(fn.exports=pr)});var df=q((um,cf)=>{x();S();var Zd=Zt(),Qd=di(),Pi=lf(),ut=function(){},ep=/^v?\.0/.test(B.version),un=function(e){return typeof e=="function"},rp=function(e){return!ep||!Pi?!1:(e instanceof(Pi.ReadStream||ut)||e instanceof(Pi.WriteStream||ut))&&un(e.close)},tp=function(e){return e.setHeader&&un(e.abort)},np=function(e,r,t,n){n=Zd(n);var i=!1;e.on("close",function(){i=!0}),Qd(e,{readable:r,writable:t},function(u){if(u)return n(u);i=!0,n()});var a=!1;return function(u){if(!i&&!a){if(a=!0,rp(e))return e.close(ut);if(tp(e))return e.abort();if(un(e.destroy))return e.destroy();n(u||new Error("stream was destroyed"))}}},hf=function(e){e()},ip=function(e,r){return e.pipe(r)},op=function(){var e=Array.prototype.slice.call(arguments),r=un(e[e.length-1]||ut)&&e.pop()||ut;if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Error("pump requires two streams per minimum");var t,n=e.map(function(i,a){var u=a<e.length-1,g=a>0;return np(i,u,g,function(d){t||(t=d),d&&n.forEach(hf),!u&&(n.forEach(hf),r(t))})});return e.reduce(ip)};cf.exports=op});var lt=q((cm,ki)=>{"use strict";x();S();!B.version||B.version.indexOf("v0.")===0||B.version.indexOf("v1.")===0&&B.version.indexOf("v1.8.")!==0?ki.exports=ap:ki.exports=B.nextTick;function ap(e,r,t,n){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var i=arguments.length,a,u;switch(i){case 0:case 1:return B.nextTick(e);case 2:return B.nextTick(function(){e.call(null,r)});case 3:return B.nextTick(function(){e.call(null,r,t)});case 4:return B.nextTick(function(){e.call(null,r,t,n)});default:for(a=new Array(i-1),u=0;u<a.length;)a[u++]=arguments[u];return B.nextTick(function(){e.apply(null,a)})}}});var gf=q((gm,pf)=>{x();S();var sp={}.toString;pf.exports=Array.isArray||function(e){return sp.call(e)=="[object Array]"}});var Ui=q((mm,yf)=>{x();S();yf.exports=tr().EventEmitter});var ht=q((Di,mf)=>{x();S();var ln=Lt(),Ye=ln.Buffer;function wf(e,r){for(var t in e)r[t]=e[t]}Ye.from&&Ye.alloc&&Ye.allocUnsafe&&Ye.allocUnsafeSlow?mf.exports=ln:(wf(ln,Di),Di.Buffer=Ir);function Ir(e,r,t){return Ye(e,r,t)}wf(Ye,Ir);Ir.from=function(e,r,t){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Ye(e,r,t)};Ir.alloc=function(e,r,t){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=Ye(e);return r!==void 0?typeof t=="string"?n.fill(r,t):n.fill(r):n.fill(0),n};Ir.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Ye(e)};Ir.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return ln.SlowBuffer(e)}});var _f=q((Am,bf)=>{"use strict";x();S();function fp(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}var vf=ht().Buffer;function up(e,r,t){e.copy(r,t)}bf.exports=function(){function e(){fp(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(t){var n={data:t,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length},e.prototype.unshift=function(t){var n={data:t,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length},e.prototype.shift=function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(t){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=t+n.data;return i},e.prototype.concat=function(t){if(this.length===0)return vf.alloc(0);if(this.length===1)return this.head.data;for(var n=vf.allocUnsafe(t>>>0),i=this.head,a=0;i;)up(i.data,n,a),a+=i.data.length,i=i.next;return n},e}()});var qi=q((Tm,xf)=>{"use strict";x();S();var Ef=lt();function lp(e,r){var t=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;if(n||i){r?r(e):e&&(!this._writableState||!this._writableState.errorEmitted)&&Ef(Af,this,e);return}this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!r&&a?(Ef(Af,t,a),t._writableState&&(t._writableState.errorEmitted=!0)):r&&r(a)})}function hp(){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.finished=!1,this._writableState.errorEmitted=!1)}function Af(e,r){e.emit("error",r)}xf.exports={destroy:lp,undestroy:hp}});var ji=q((Bm,If)=>{"use strict";x();S();var gr=lt();If.exports=ge;function Tf(e){var r=this;this.next=null,this.entry=null,this.finish=function(){Bp(r,e)}}var cp=!B.browser&&["v0.10","v0.9."].indexOf(B.version.slice(0,5))>-1?setImmediate:gr,Or;ge.WritableState=dt;var Rf=ve();Rf.inherits=be();var dp={deprecate:Yt()},Cf=Ui(),cn=ht().Buffer,pp=globalThis.Uint8Array||function(){};function gp(e){return cn.from(e)}function yp(e){return cn.isBuffer(e)||e instanceof pp}var Bf=qi();Rf.inherits(ge,Cf);function wp(){}function dt(e,r){Or=Or||yr(),e=e||{},this.objectMode=!!e.objectMode,r instanceof Or&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var t=e.highWaterMark,n=this.objectMode?16:16*1024;this.highWaterMark=t||t===0?t:n,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=e.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){xp(r,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Tf(this)}dt.prototype.getBuffer=function(){for(var r=this.bufferedRequest,t=[];r;)t.push(r),r=r.next;return t};(function(){try{Object.defineProperty(dt.prototype,"buffer",{get:dp.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var hn;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(hn=Function.prototype[Symbol.hasInstance],Object.defineProperty(ge,Symbol.hasInstance,{value:function(e){return hn.call(this,e)?!0:e&&e._writableState instanceof dt}})):hn=function(e){return e instanceof this};function ge(e){if(Or=Or||yr(),!hn.call(ge,this)&&!(this instanceof Or))return new ge(e);this._writableState=new dt(e,this),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),Cf.call(this)}ge.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function mp(e,r){var t=new Error("write after end");e.emit("error",t),gr(r,t)}function vp(e,r,t,n){var i=!0,a=!1;return t===null?a=new TypeError("May not write null values to stream"):typeof t!="string"&&t!==void 0&&!r.objectMode&&(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),gr(n,a),i=!1),i}ge.prototype.write=function(e,r,t){var n=this._writableState,i=!1,a=yp(e)&&!n.objectMode;return a&&!cn.isBuffer(e)&&(e=gp(e)),typeof r=="function"&&(t=r,r=null),a?r="buffer":r||(r=n.defaultEncoding),typeof t!="function"&&(t=wp),n.ended?mp(this,t):(a||vp(this,n,e,t))&&(n.pendingcb++,i=_p(this,n,a,e,r,t)),i};ge.prototype.cork=function(){var e=this._writableState;e.corked++};ge.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.finished&&!e.bufferProcessing&&e.bufferedRequest&&Mf(this,e))};ge.prototype.setDefaultEncoding=function(r){if(typeof r=="string"&&(r=r.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((r+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+r);return this._writableState.defaultEncoding=r,this};function bp(e,r,t){return!e.objectMode&&e.decodeStrings!==!1&&typeof r=="string"&&(r=cn.from(r,t)),r}function _p(e,r,t,n,i,a){if(!t){var u=bp(r,n,i);n!==u&&(t=!0,i="buffer",n=u)}var g=r.objectMode?1:n.length;r.length+=g;var d=r.length<r.highWaterMark;if(d||(r.needDrain=!0),r.writing||r.corked){var p=r.lastBufferedRequest;r.lastBufferedRequest={chunk:n,encoding:i,isBuf:t,callback:a,next:null},p?p.next=r.lastBufferedRequest:r.bufferedRequest=r.lastBufferedRequest,r.bufferedRequestCount+=1}else Fi(e,r,!1,g,n,i,a);return d}function Fi(e,r,t,n,i,a,u){r.writelen=n,r.writecb=u,r.writing=!0,r.sync=!0,t?e._writev(i,r.onwrite):e._write(i,a,r.onwrite),r.sync=!1}function Ep(e,r,t,n,i){--r.pendingcb,t?(gr(i,n),gr(ct,e,r),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),ct(e,r))}function Ap(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function xp(e,r){var t=e._writableState,n=t.sync,i=t.writecb;if(Ap(t),r)Ep(e,t,n,r,i);else{var a=Nf(t);!a&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Mf(e,t),n?cp(Sf,e,t,a,i):Sf(e,t,a,i)}}function Sf(e,r,t,n){t||Sp(e,r),r.pendingcb--,n(),ct(e,r)}function Sp(e,r){r.length===0&&r.needDrain&&(r.needDrain=!1,e.emit("drain"))}function Mf(e,r){r.bufferProcessing=!0;var t=r.bufferedRequest;if(e._writev&&t&&t.next){var n=r.bufferedRequestCount,i=new Array(n),a=r.corkedRequestsFree;a.entry=t;for(var u=0,g=!0;t;)i[u]=t,t.isBuf||(g=!1),t=t.next,u+=1;i.allBuffers=g,Fi(e,r,!0,r.length,i,"",a.finish),r.pendingcb++,r.lastBufferedRequest=null,a.next?(r.corkedRequestsFree=a.next,a.next=null):r.corkedRequestsFree=new Tf(r)}else{for(;t;){var d=t.chunk,p=t.encoding,M=t.callback,b=r.objectMode?1:d.length;if(Fi(e,r,!1,b,d,p,M),t=t.next,r.writing)break}t===null&&(r.lastBufferedRequest=null)}r.bufferedRequestCount=0,r.bufferedRequest=t,r.bufferProcessing=!1}ge.prototype._write=function(e,r,t){t(new Error("_write() is not implemented"))};ge.prototype._writev=null;ge.prototype.end=function(e,r,t){var n=this._writableState;typeof e=="function"?(t=e,e=null,r=null):typeof r=="function"&&(t=r,r=null),e!=null&&this.write(e,r),n.corked&&(n.corked=1,this.uncork()),!n.ending&&!n.finished&&Cp(this,n,t)};function Nf(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function Tp(e,r){e._final(function(t){r.pendingcb--,t&&e.emit("error",t),r.prefinished=!0,e.emit("prefinish"),ct(e,r)})}function Rp(e,r){!r.prefinished&&!r.finalCalled&&(typeof e._final=="function"?(r.pendingcb++,r.finalCalled=!0,gr(Tp,e,r)):(r.prefinished=!0,e.emit("prefinish")))}function ct(e,r){var t=Nf(r);return t&&(Rp(e,r),r.pendingcb===0&&(r.finished=!0,e.emit("finish"))),t}function Cp(e,r,t){r.ending=!0,ct(e,r),t&&(r.finished?gr(t):e.once("finish",t)),r.ended=!0,e.writable=!1}function Bp(e,r,t){var n=e.entry;for(e.entry=null;n;){var i=n.callback;r.pendingcb--,i(t),n=n.next}r.corkedRequestsFree?r.corkedRequestsFree.next=e:r.corkedRequestsFree=e}Object.defineProperty(ge.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){!this._writableState||(this._writableState.destroyed=e)}});ge.prototype.destroy=Bf.destroy;ge.prototype._undestroy=Bf.undestroy;ge.prototype._destroy=function(e,r){this.end(),r(e)}});var yr=q((Im,Uf)=>{"use strict";x();S();var Lf=lt(),Mp=Object.keys||function(e){var r=[];for(var t in e)r.push(t);return r};Uf.exports=Je;var Pf=ve();Pf.inherits=be();var kf=Hi(),Wi=ji();Pf.inherits(Je,kf);var Of=Mp(Wi.prototype);for(dn=0;dn<Of.length;dn++)pn=Of[dn],Je.prototype[pn]||(Je.prototype[pn]=Wi.prototype[pn]);var pn,dn;function Je(e){if(!(this instanceof Je))return new Je(e);kf.call(this,e),Wi.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",Np)}function Np(){this.allowHalfOpen||this._writableState.ended||Lf(Ip,this)}function Ip(e){e.end()}Object.defineProperty(Je.prototype,"destroyed",{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)}});Je.prototype._destroy=function(e,r){this.push(null),this.end(),Lf(r,e)}});var Gi=q(qf=>{"use strict";x();S();var $i=ht().Buffer,Df=$i.isEncoding||function(e){switch(e=""+e,e&&e.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 Op(e){if(!e)return"utf8";for(var r;;)switch(e){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 e;default:if(r)return;e=(""+e).toLowerCase(),r=!0}}function Lp(e){var r=Op(e);if(typeof r!="string"&&($i.isEncoding===Df||!Df(e)))throw new Error("Unknown encoding: "+e);return r||e}qf.StringDecoder=pt;function pt(e){this.encoding=Lp(e);var r;switch(this.encoding){case"utf16le":this.text=Fp,this.end=jp,r=4;break;case"utf8":this.fillLast=Up,r=4;break;case"base64":this.text=Wp,this.end=Hp,r=3;break;default:this.write=Yp,this.end=$p;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=$i.allocUnsafe(r)}pt.prototype.write=function(e){if(e.length===0)return"";var r,t;if(this.lastNeed){if(r=this.fillLast(e),r===void 0)return"";t=this.lastNeed,this.lastNeed=0}else t=0;return t<e.length?r?r+this.text(e,t):this.text(e,t):r||""};pt.prototype.end=qp;pt.prototype.text=Dp;pt.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function Yi(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:-1}function Pp(e,r,t){var n=r.length-1;if(n<t)return 0;var i=Yi(r[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<t?0:(i=Yi(r[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<t?0:(i=Yi(r[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function kp(e,r,t){if((r[0]&192)!==128)return e.lastNeed=0,"\uFFFD".repeat(t);if(e.lastNeed>1&&r.length>1){if((r[1]&192)!==128)return e.lastNeed=1,"\uFFFD".repeat(t+1);if(e.lastNeed>2&&r.length>2&&(r[2]&192)!==128)return e.lastNeed=2,"\uFFFD".repeat(t+2)}}function Up(e){var r=this.lastTotal-this.lastNeed,t=kp(this,e,r);if(t!==void 0)return t;if(this.lastNeed<=e.length)return e.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,r,0,e.length),this.lastNeed-=e.length}function Dp(e,r){var t=Pp(this,e,r);if(!this.lastNeed)return e.toString("utf8",r);this.lastTotal=t;var n=e.length-(t-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",r,n)}function qp(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+"\uFFFD".repeat(this.lastTotal-this.lastNeed):r}function Fp(e,r){if((e.length-r)%2===0){var t=e.toString("utf16le",r);if(t){var n=t.charCodeAt(t.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",r,e.length-1)}function jp(e){var r=e&&e.length?this.write(e):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return r+this.lastChar.toString("utf16le",0,t)}return r}function Wp(e,r){var t=(e.length-r)%3;return t===0?e.toString("base64",r):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",r,e.length-t))}function Hp(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+this.lastChar.toString("base64",0,3-this.lastNeed):r}function Yp(e){return e.toString(this.encoding)}function $p(e){return e&&e.length?this.write(e):""}});var Hi=q((qm,Jf)=>{"use strict";x();S();var Pr=lt();Jf.exports=oe;var Gp=gf(),gt;oe.ReadableState=Gf;var Dm=tr().EventEmitter,Hf=function(e,r){return e.listeners(r).length},Ji=Ui(),yt=ht().Buffer,Vp=globalThis.Uint8Array||function(){};function zp(e){return yt.from(e)}function Kp(e){return yt.isBuffer(e)||e instanceof Vp}var Yf=ve();Yf.inherits=be();var Vi=ur(),Q=void 0;Vi&&Vi.debuglog?Q=Vi.debuglog("stream"):Q=function(){};var Xp=_f(),$f=qi(),Lr;Yf.inherits(oe,Ji);var zi=["error","close","destroy","pause","resume"];function Jp(e,r,t){if(typeof e.prependListener=="function")return e.prependListener(r,t);!e._events||!e._events[r]?e.on(r,t):Gp(e._events[r])?e._events[r].unshift(t):e._events[r]=[t,e._events[r]]}function Gf(e,r){gt=gt||yr(),e=e||{},this.objectMode=!!e.objectMode,r instanceof gt&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var t=e.highWaterMark,n=this.objectMode?16:16*1024;this.highWaterMark=t||t===0?t:n,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new Xp,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.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(Lr||(Lr=Gi().StringDecoder),this.decoder=new Lr(e.encoding),this.encoding=e.encoding)}function oe(e){if(gt=gt||yr(),!(this instanceof oe))return new oe(e);this._readableState=new Gf(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Ji.call(this)}Object.defineProperty(oe.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){!this._readableState||(this._readableState.destroyed=e)}});oe.prototype.destroy=$f.destroy;oe.prototype._undestroy=$f.undestroy;oe.prototype._destroy=function(e,r){this.push(null),r(e)};oe.prototype.push=function(e,r){var t=this._readableState,n;return t.objectMode?n=!0:typeof e=="string"&&(r=r||t.defaultEncoding,r!==t.encoding&&(e=yt.from(e,r),r=""),n=!0),Vf(this,e,r,!1,n)};oe.prototype.unshift=function(e){return Vf(this,e,null,!0,!1)};function Vf(e,r,t,n,i){var a=e._readableState;if(r===null)a.reading=!1,rg(e,a);else{var u;i||(u=Zp(a,r)),u?e.emit("error",u):a.objectMode||r&&r.length>0?(typeof r!="string"&&!a.objectMode&&Object.getPrototypeOf(r)!==yt.prototype&&(r=zp(r)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):Ki(e,a,r,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!t?(r=a.decoder.write(r),a.objectMode||r.length!==0?Ki(e,a,r,!1):zf(e,a)):Ki(e,a,r,!1))):n||(a.reading=!1)}return Qp(a)}function Ki(e,r,t,n){r.flowing&&r.length===0&&!r.sync?(e.emit("data",t),e.read(0)):(r.length+=r.objectMode?1:t.length,n?r.buffer.unshift(t):r.buffer.push(t),r.needReadable&&gn(e)),zf(e,r)}function Zp(e,r){var t;return!Kp(r)&&typeof r!="string"&&r!==void 0&&!e.objectMode&&(t=new TypeError("Invalid non-string/buffer chunk")),t}function Qp(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}oe.prototype.isPaused=function(){return this._readableState.flowing===!1};oe.prototype.setEncoding=function(e){return Lr||(Lr=Gi().StringDecoder),this._readableState.decoder=new Lr(e),this._readableState.encoding=e,this};var Ff=8388608;function eg(e){return e>=Ff?e=Ff:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function jf(e,r){return e<=0||r.length===0&&r.ended?0:r.objectMode?1:e!==e?r.flowing&&r.length?r.buffer.head.data.length:r.length:(e>r.highWaterMark&&(r.highWaterMark=eg(e)),e<=r.length?e:r.ended?r.length:(r.needReadable=!0,0))}oe.prototype.read=function(e){Q("read",e),e=parseInt(e,10);var r=this._readableState,t=e;if(e!==0&&(r.emittedReadable=!1),e===0&&r.needReadable&&(r.length>=r.highWaterMark||r.ended))return Q("read: emitReadable",r.length,r.ended),r.length===0&&r.ended?Xi(this):gn(this),null;if(e=jf(e,r),e===0&&r.ended)return r.length===0&&Xi(this),null;var n=r.needReadable;Q("need readable",n),(r.length===0||r.length-e<r.highWaterMark)&&(n=!0,Q("length less than watermark",n)),r.ended||r.reading?(n=!1,Q("reading or ended",n)):n&&(Q("do read"),r.reading=!0,r.sync=!0,r.length===0&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=jf(t,r)));var i;return e>0?i=Kf(e,r):i=null,i===null?(r.needReadable=!0,e=0):r.length-=e,r.length===0&&(r.ended||(r.needReadable=!0),t!==e&&r.ended&&Xi(this)),i!==null&&this.emit("data",i),i};function rg(e,r){if(!r.ended){if(r.decoder){var t=r.decoder.end();t&&t.length&&(r.buffer.push(t),r.length+=r.objectMode?1:t.length)}r.ended=!0,gn(e)}}function gn(e){var r=e._readableState;r.needReadable=!1,r.emittedReadable||(Q("emitReadable",r.flowing),r.emittedReadable=!0,r.sync?Pr(Wf,e):Wf(e))}function Wf(e){Q("emit readable"),e.emit("readable"),Zi(e)}function zf(e,r){r.readingMore||(r.readingMore=!0,Pr(tg,e,r))}function tg(e,r){for(var t=r.length;!r.reading&&!r.flowing&&!r.ended&&r.length<r.highWaterMark&&(Q("maybeReadMore read 0"),e.read(0),t!==r.length);)t=r.length;r.readingMore=!1}oe.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};oe.prototype.pipe=function(e,r){var t=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,Q("pipe count=%d opts=%j",n.pipesCount,r);var i=(!r||r.end!==!1)&&e!==B.stdout&&e!==B.stderr,a=i?g:I;n.endEmitted?Pr(a):t.once("end",a),e.on("unpipe",u);function u(O,W){Q("onunpipe"),O===t&&W&&W.hasUnpiped===!1&&(W.hasUnpiped=!0,M())}function g(){Q("onend"),e.end()}var d=ng(t);e.on("drain",d);var p=!1;function M(){Q("cleanup"),e.removeListener("close",N),e.removeListener("finish",L),e.removeListener("drain",d),e.removeListener("error",A),e.removeListener("unpipe",u),t.removeListener("end",g),t.removeListener("end",I),t.removeListener("data",T),p=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&d()}var b=!1;t.on("data",T);function T(O){Q("ondata"),b=!1;var W=e.write(O);W===!1&&!b&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&Xf(n.pipes,e)!==-1)&&!p&&(Q("false write response, pause",t._readableState.awaitDrain),t._readableState.awaitDrain++,b=!0),t.pause())}function A(O){Q("onerror",O),I(),e.removeListener("error",A),Hf(e,"error")===0&&e.emit("error",O)}Jp(e,"error",A);function N(){e.removeListener("finish",L),I()}e.once("close",N);function L(){Q("onfinish"),e.removeListener("close",N),I()}e.once("finish",L);function I(){Q("unpipe"),t.unpipe(e)}return e.emit("pipe",t),n.flowing||(Q("pipe resume"),t.resume()),e};function ng(e){return function(){var r=e._readableState;Q("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Hf(e,"data")&&(r.flowing=!0,Zi(e))}}oe.prototype.unpipe=function(e){var r=this._readableState,t={hasUnpiped:!1};if(r.pipesCount===0)return this;if(r.pipesCount===1)return e&&e!==r.pipes?this:(e||(e=r.pipes),r.pipes=null,r.pipesCount=0,r.flowing=!1,e&&e.emit("unpipe",this,t),this);if(!e){var n=r.pipes,i=r.pipesCount;r.pipes=null,r.pipesCount=0,r.flowing=!1;for(var a=0;a<i;a++)n[a].emit("unpipe",this,t);return this}var u=Xf(r.pipes,e);return u===-1?this:(r.pipes.splice(u,1),r.pipesCount-=1,r.pipesCount===1&&(r.pipes=r.pipes[0]),e.emit("unpipe",this,t),this)};oe.prototype.on=function(e,r){var t=Ji.prototype.on.call(this,e,r);if(e==="data")this._readableState.flowing!==!1&&this.resume();else if(e==="readable"){var n=this._readableState;!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&gn(this):Pr(ig,this))}return t};oe.prototype.addListener=oe.prototype.on;function ig(e){Q("readable nexttick read 0"),e.read(0)}oe.prototype.resume=function(){var e=this._readableState;return e.flowing||(Q("resume"),e.flowing=!0,og(this,e)),this};function og(e,r){r.resumeScheduled||(r.resumeScheduled=!0,Pr(ag,e,r))}function ag(e,r){r.reading||(Q("resume read 0"),e.read(0)),r.resumeScheduled=!1,r.awaitDrain=0,e.emit("resume"),Zi(e),r.flowing&&!r.reading&&e.read(0)}oe.prototype.pause=function(){return Q("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Q("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Zi(e){var r=e._readableState;for(Q("flow",r.flowing);r.flowing&&e.read()!==null;);}oe.prototype.wrap=function(e){var r=this._readableState,t=!1,n=this;e.on("end",function(){if(Q("wrapped end"),r.decoder&&!r.ended){var u=r.decoder.end();u&&u.length&&n.push(u)}n.push(null)}),e.on("data",function(u){if(Q("wrapped data"),r.decoder&&(u=r.decoder.write(u)),!(r.objectMode&&u==null)&&!(!r.objectMode&&(!u||!u.length))){var g=n.push(u);g||(t=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=function(u){return function(){return e[u].apply(e,arguments)}}(i));for(var a=0;a<zi.length;a++)e.on(zi[a],n.emit.bind(n,zi[a]));return n._read=function(u){Q("wrapped _read",u),t&&(t=!1,e.resume())},n};oe._fromList=Kf;function Kf(e,r){if(r.length===0)return null;var t;return r.objectMode?t=r.buffer.shift():!e||e>=r.length?(r.decoder?t=r.buffer.join(""):r.buffer.length===1?t=r.buffer.head.data:t=r.buffer.concat(r.length),r.buffer.clear()):t=sg(e,r.buffer,r.decoder),t}function sg(e,r,t){var n;return e<r.head.data.length?(n=r.head.data.slice(0,e),r.head.data=r.head.data.slice(e)):e===r.head.data.length?n=r.shift():n=t?fg(e,r):ug(e,r),n}function fg(e,r){var t=r.head,n=1,i=t.data;for(e-=i.length;t=t.next;){var a=t.data,u=e>a.length?a.length:e;if(u===a.length?i+=a:i+=a.slice(0,e),e-=u,e===0){u===a.length?(++n,t.next?r.head=t.next:r.head=r.tail=null):(r.head=t,t.data=a.slice(u));break}++n}return r.length-=n,i}function ug(e,r){var t=yt.allocUnsafe(e),n=r.head,i=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var a=n.data,u=e>a.length?a.length:e;if(a.copy(t,t.length-e,0,u),e-=u,e===0){u===a.length?(++i,n.next?r.head=n.next:r.head=r.tail=null):(r.head=n,n.data=a.slice(u));break}++i}return r.length-=i,t}function Xi(e){var r=e._readableState;if(r.length>0)throw new Error('"endReadable()" called on non-empty stream');r.endEmitted||(r.ended=!0,Pr(lg,r,e))}function lg(e,r){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,r.readable=!1,r.emit("end"))}function Xf(e,r){for(var t=0,n=e.length;t<n;t++)if(e[t]===r)return t;return-1}});var Qi=q((Wm,eu)=>{"use strict";x();S();eu.exports=$e;var yn=yr(),Qf=ve();Qf.inherits=be();Qf.inherits($e,yn);function hg(e){this.afterTransform=function(r,t){return cg(e,r,t)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function cg(e,r,t){var n=e._transformState;n.transforming=!1;var i=n.writecb;if(!i)return e.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,t!=null&&e.push(t),i(r);var a=e._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&e._read(a.highWaterMark)}function $e(e){if(!(this instanceof $e))return new $e(e);yn.call(this,e),this._transformState=new hg(this);var r=this;this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.once("prefinish",function(){typeof this._flush=="function"?this._flush(function(t,n){Zf(r,t,n)}):Zf(r)})}$e.prototype.push=function(e,r){return this._transformState.needTransform=!1,yn.prototype.push.call(this,e,r)};$e.prototype._transform=function(e,r,t){throw new Error("_transform() is not implemented")};$e.prototype._write=function(e,r,t){var n=this._transformState;if(n.writecb=t,n.writechunk=e,n.writeencoding=r,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};$e.prototype._read=function(e){var r=this._transformState;r.writechunk!==null&&r.writecb&&!r.transforming?(r.transforming=!0,this._transform(r.writechunk,r.writeencoding,r.afterTransform)):r.needTransform=!0};$e.prototype._destroy=function(e,r){var t=this;yn.prototype._destroy.call(this,e,function(n){r(n),t.emit("close")})};function Zf(e,r,t){if(r)return e.emit("error",r);t!=null&&e.push(t);var n=e._writableState,i=e._transformState;if(n.length)throw new Error("Calling transform done when ws.length != 0");if(i.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}});var iu=q(($m,nu)=>{"use strict";x();S();nu.exports=wt;var ru=Qi(),tu=ve();tu.inherits=be();tu.inherits(wt,ru);function wt(e){if(!(this instanceof wt))return new wt(e);ru.call(this,e)}wt.prototype._transform=function(e,r,t){t(null,e)}});var au=q((Ie,ou)=>{x();S();Ie=ou.exports=Hi();Ie.Stream=Ie;Ie.Readable=Ie;Ie.Writable=ji();Ie.Duplex=yr();Ie.Transform=Qi();Ie.PassThrough=iu()});x();S();x();S();var lu=Qe(xn());x();S();x();S();var po={ETH_DECRYPT:"eth_decrypt",ETH_GET_ENCRYPTION_PUBLIC_KEY:"eth_getEncryptionPublicKey",ETH_SIGN:"eth_sign",ETH_SEND_TRANSACTION:"eth_sendTransaction",ETH_SIGN_TYPED_DATA:"eth_signTypedData",ETH_SIGN_TYPED_DATA_V3:"eth_signTypedData_v3",ETH_SIGN_TYPED_DATA_V4:"eth_signTypedData_v4",PERSONAL_SIGN:"personal_sign",GET_PROVIDER_STATE:"wallet_getProviderState",WATCH_ASSET:"wallet_watchAsset",WATCH_ASSET_LEGACY:"metamask_watchAsset",ADD_ETHEREUM_CHAIN:"wallet_addEthereumChain",SWITCH_ETHEREUM_CHAIN:"wallet_switchEthereumChain"},Sg=[po.ADD_ETHEREUM_CHAIN,po.SWITCH_ETHEREUM_CHAIN],At="okexwallet";var xt=`${At}-contentscript`,Sn=`${At}-inpage`,Tn=`${At}-provider`,{streams:[Mg,Ng,Ig,Og,Lg,Pg,kg,Ug,Dg,qg,Fg,jg,Wg,Hg,Yg,$g,Gg,Vg,zg,Kg,Xg,Jg,Zg,Qg,e0,r0,t0,n0,i0,o0,a0,s0,f0,u0,l0,h0,c0,d0,p0,g0,y0,w0,m0,v0,b0,_0,E0,A0,x0,S0,T0,R0,C0,B0,M0,N0,I0,O0,L0,P0,k0,U0,D0,q0,F0,j0],streamMap:go}=["solana","svm","aptos","tron","cosmos","solana-standard","sui-standard","aptos-standard","bitcoin","stacks","starknet","cardano","bitcointestnet","bitcoinsignet","fractalbitcoin","btc","nostrassets","kaspa","near","wax","ton"].reduce((e,r)=>{let t={contentScript:`${xt}-${r}`,inpage:`${Sn}-${r}`,provider:`${Tn}-${r}`};return e.streams=e.streams.concat([t.contentScript,t.inpage,t.provider]),e.streamMap[t.contentScript]=t,e},{streams:[xt,Sn,Tn],streamMap:{[xt]:{contentScript:xt,inpage:Sn,provider:Tn}}});x();S();function $u(){let{doctype:e}=window.document;return e?e.name==="html":!0}function Gu(){let e=[/\.xml$/u,/\.pdf$/u],r=window.location.pathname;for(let t of e)if(t.test(r))return!1;return!0}function Vu(){let e=document.documentElement.nodeName;return e?e.toLowerCase()==="html":!0}function zu(){let e=["uscourts.gov","dropbox.com","webbyawards.com","cdn.shopify.com/s/javascripts/tricorder/xtld-read-only-frame.html","adyen.com","gravityforms.com","harbourair.com","ani.gamer.com.tw","blueskybooking.com","sharefile.com"],r=window.location.href,t;for(let n of e)if(t=new RegExp(`(?:https?:\\/\\/)(?:(?!${n.replace(".","\\.")}).)*$`,"u"),!t.test(r))return!0;return!1}function Rn(){return $u()&&Gu()&&Vu()&&!zu()}x();S();var mn=Qe(cs()),to=Qe(sf()),vt=Qe(df());x();S();var su=Qe(au()),ro=Qe(xn());var eo=new Map,mt=class extends su.Duplex{constructor(t,n){super({objectMode:!0});_n(this,"onMessage",({data:t,target:n})=>{if(n===this.name)if(D.Buffer.isBuffer(t)){let i=D.Buffer.from(t);this.push(i)}else this.push(t)});_n(this,"onDisconnect",()=>{let{lastError:t}=ro.default.runtime;t&&typeof this.opts.port=="string"?(eo.delete(this.opts.port),this.init()):this.destroy()});this.opts={port:n},this.name=t,this.init()}init(){if(this.removePortListener(),typeof this.opts.port=="string"){let t=eo.get(this.opts.port);t||(t=ro.default.runtime.connect({name:this.opts.port}),eo.set(this.opts.port,t)),this.port=t}else this.port=this.opts.port;this.port.onMessage.addListener(this.onMessage),this.port.onDisconnect.addListener(this.onDisconnect)}removePortListener(){this.port&&(this.port.onMessage.removeListener(this.onMessage),this.port.onDisconnect.removeListener(this.onDisconnect))}_read(){}_write(t,n,i){try{if(D.Buffer.isBuffer(t)){let a=t.toJSON();a._isBuffer=!0,this.port.postMessage({data:a,target:this.name})}else this.port.postMessage({data:t,target:this.name})}catch{return i(new Error("PortDuplexStream - disconnected"))}return i()}};x();S();var wn=e=>`${e}_contentScript`;var dg={},fu=(e,r,t)=>{let n=r.createStream(e),i=t.createStream(e);(0,vt.default)(n,i,n,a=>console.debug(`OKX Wallet: Muxed traffic for channel "${e}" failed.`,a))},pg=(e,r)=>{window.postMessage({target:e,data:{name:r,data:{jsonrpc:"2.0",method:"wallet_streamFail"}}},window.location.origin)},uu=({contentScript:e,inpage:r,provider:t})=>{let n=new to.default({name:e,target:r}),i=new to.default({name:wn(e),target:wn(r)}),a=new mt(t,"contentScript"),u=new mn.default;u.setMaxListeners(25);let g=new mn.default;g.setMaxListeners(25),dg[t]=g;let d=new mn.default;d.setMaxListeners(25),(0,vt.default)(u,n,u,p=>console.debug(`OKX Wallet: Content script lost connection to "'OKX Wallet Inpage Multiplex".`,p)),(0,vt.default)(g,i,g,p=>console.debug(`OKX Wallet: Content script lost connection to "'OKX Wallet Inpage Multiplex".`,p)),(0,vt.default)(d,a,d,p=>{console.debug(`OKX Wallet: Content script lost connection to "'OKX Wallet Background Multiplex".`,p),pg(r,t)}),fu(t,u,d),fu(wn(t),g,d)};var hu=async()=>{Rn()&&(Object.values(go).forEach(({contentScript:e,inpage:r,provider:t})=>{uu({contentScript:e,inpage:r,provider:t})}),setInterval(()=>{lu.default.runtime.sendMessage({msg:"keep-alive",type:"request"})},3e3))};var gg=async()=>{hu()};gg();})();
|
|
//# sourceMappingURL=all.js.map
|