harsta
Version:
Harsta is a contract development tool based on Hardhat, designed to streamline the development, testing, and referencing of contracts, addresses, ABIs, and contract instances.
3 lines • 243 kB
JavaScript
import{a as We,c as Cf}from"../chunk-7IVOUTVB.mjs";import{a as ye,c as kr,d as ze,e as Xt,f as _t,g as L,h as Bf,i as Nf}from"../chunk-IMTEX4XZ.mjs";import{a as qe,b as E,c as zt,d as si}from"../chunk-M6LJ4BNZ.mjs";var ba=E((l3,pa)=>{"use strict";var hi=process||{},Of=hi.argv||[],ui=hi.env||{},M0=!(ui.NO_COLOR||Of.includes("--no-color"))&&(!!ui.FORCE_COLOR||Of.includes("--color")||hi.platform==="win32"||(hi.stdout||{}).isTTY&&ui.TERM!=="dumb"||!!ui.CI),A0=(e,t,r=e)=>n=>{let i=""+n,o=i.indexOf(t,e.length);return~o?e+E0(i,t,r,o)+t:e+i+t},E0=(e,t,r,n)=>{let i="",o=0;do i+=e.substring(o,n)+r,o=n+t.length,n=e.indexOf(t,o);while(~n);return i+e.substring(o)},Ff=(e=M0)=>{let t=e?A0:()=>String;return{isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m"),blackBright:t("\x1B[90m","\x1B[39m"),redBright:t("\x1B[91m","\x1B[39m"),greenBright:t("\x1B[92m","\x1B[39m"),yellowBright:t("\x1B[93m","\x1B[39m"),blueBright:t("\x1B[94m","\x1B[39m"),magentaBright:t("\x1B[95m","\x1B[39m"),cyanBright:t("\x1B[96m","\x1B[39m"),whiteBright:t("\x1B[97m","\x1B[39m"),bgBlackBright:t("\x1B[100m","\x1B[49m"),bgRedBright:t("\x1B[101m","\x1B[49m"),bgGreenBright:t("\x1B[102m","\x1B[49m"),bgYellowBright:t("\x1B[103m","\x1B[49m"),bgBlueBright:t("\x1B[104m","\x1B[49m"),bgMagentaBright:t("\x1B[105m","\x1B[49m"),bgCyanBright:t("\x1B[106m","\x1B[49m"),bgWhiteBright:t("\x1B[107m","\x1B[49m")}};pa.exports=Ff();pa.exports.createColors=Ff});var zf=E((g3,Df)=>{"use strict";Df.exports=qe("crypto").randomBytes});var Hf=E(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});var $f=zf();function B0(e){return new Promise(function(t,r){$f(e,function(n,i){if(n){r(n);return}t(i)})})}li.getRandomBytes=B0;function N0(e){return $f(e)}li.getRandomBytesSync=N0});var Jf=E(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});function W0(e){return function(t){var r=e();return r.update(t),Buffer.from(r.digest())}}xa.createHashFunction=W0});var us=E((fv,ds)=>{"use strict";var Qf=qe("fs"),Ht=qe("path"),es=qe("os"),ts=typeof __webpack_require__=="function"?__non_webpack_require__:qe,V0=process.config&&process.config.variables||{},G0=!!process.env.PREBUILDS_ONLY,Yf=process.versions.modules,wa=Z0()?"electron":Y0()?"node-webkit":"node",_a=process.env.npm_config_arch||es.arch(),Sa=process.env.npm_config_platform||es.platform(),rs=process.env.LIBC||(X0(Sa)?"musl":"glibc"),Ma=process.env.ARM_VERSION||(_a==="arm64"?"8":V0.arm_version)||"",ns=(process.versions.uv||"").split(".")[0];ds.exports=Mt;function Mt(e){return ts(Mt.resolve(e))}Mt.resolve=Mt.path=function(e){e=Ht.resolve(e||".");try{var t=ts(Ht.join(e,"package.json")).name.toUpperCase().replace(/-/g,"_");process.env[t+"_PREBUILD"]&&(e=process.env[t+"_PREBUILD"])}catch{}if(!G0){var r=Zf(Ht.join(e,"build/Release"),Xf);if(r)return r;var n=Zf(Ht.join(e,"build/Debug"),Xf);if(n)return n}var i=d(e);if(i)return i;var o=d(Ht.dirname(process.execPath));if(o)return o;var c=["platform="+Sa,"arch="+_a,"runtime="+wa,"abi="+Yf,"uv="+ns,Ma?"armv="+Ma:"","libc="+rs,"node="+process.versions.node,process.versions.electron?"electron="+process.versions.electron:"",typeof __webpack_require__=="function"?"webpack=true":""].filter(Boolean).join(" ");throw new Error("No native build was found for "+c+`
loaded from: `+e+`
`);function d(v){var m=Aa(Ht.join(v,"prebuilds")).map(is),y=m.filter(as(Sa,_a)).sort(os)[0];if(y){var w=Ht.join(v,"prebuilds",y.name),S=Aa(w).map(fs),M=S.filter(ss(wa,Yf)),A=M.sort(cs(wa))[0];if(A)return Ht.join(w,A.file)}}};function Aa(e){try{return Qf.readdirSync(e)}catch{return[]}}function Zf(e,t){var r=Aa(e).filter(t);return r[0]&&Ht.join(e,r[0])}function Xf(e){return/\.node$/.test(e)}function is(e){var t=e.split("-");if(t.length===2){var r=t[0],n=t[1].split("+");if(r&&n.length&&n.every(Boolean))return{name:e,platform:r,architectures:n}}}function as(e,t){return function(r){return r==null||r.platform!==e?!1:r.architectures.includes(t)}}function os(e,t){return e.architectures.length-t.architectures.length}function fs(e){var t=e.split("."),r=t.pop(),n={file:e,specificity:0};if(r==="node"){for(var i=0;i<t.length;i++){var o=t[i];if(o==="node"||o==="electron"||o==="node-webkit")n.runtime=o;else if(o==="napi")n.napi=!0;else if(o.slice(0,3)==="abi")n.abi=o.slice(3);else if(o.slice(0,2)==="uv")n.uv=o.slice(2);else if(o.slice(0,4)==="armv")n.armv=o.slice(4);else if(o==="glibc"||o==="musl")n.libc=o;else continue;n.specificity++}return n}}function ss(e,t){return function(r){return!(r==null||r.runtime&&r.runtime!==e&&!J0(r)||r.abi&&r.abi!==t&&!r.napi||r.uv&&r.uv!==ns||r.armv&&r.armv!==Ma||r.libc&&r.libc!==rs)}}function J0(e){return e.runtime==="node"&&e.napi}function cs(e){return function(t,r){return t.runtime!==r.runtime?t.runtime===e?-1:1:t.abi!==r.abi?t.abi?-1:1:t.specificity!==r.specificity?t.specificity>r.specificity?-1:1:0}}function Y0(){return!!(process.versions&&process.versions.nw)}function Z0(){return process.versions&&process.versions.electron||process.env.ELECTRON_RUN_AS_NODE?!0:typeof window<"u"&&window.process&&window.process.type==="renderer"}function X0(e){return e==="linux"&&Qf.existsSync("/etc/alpine-release")}Mt.parseTags=fs;Mt.matchTags=ss;Mt.compareTags=cs;Mt.parseTuple=is;Mt.matchTuple=as;Mt.compareTuples=os});var Ia=E((cv,Ra)=>{"use strict";var Ea=typeof __webpack_require__=="function"?__non_webpack_require__:qe;typeof Ea.addon=="function"?Ra.exports=Ea.addon.bind(Ea):Ra.exports=us()});var Ta=E((uv,hs)=>{"use strict";hs.exports=qe("stream")});var gs=E((hv,ms)=>{"use strict";function ls(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ps(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ls(Object(r),!0).forEach(function(n){Q0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ls(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Q0(e,t,r){return t=vs(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bs(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vs(n.key),n)}}function th(e,t,r){return t&&bs(e.prototype,t),r&&bs(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function vs(e){var t=rh(e,"string");return typeof t=="symbol"?t:String(t)}function rh(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nh=qe("buffer"),gi=nh.Buffer,ih=qe("util"),Pa=ih.inspect,ah=Pa&&Pa.custom||"inspect";function oh(e,t,r){gi.prototype.copy.call(e,t,r)}ms.exports=function(){function e(){eh(this,e),this.head=null,this.tail=null,this.length=0}return th(e,[{key:"push",value:function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return gi.alloc(0);for(var n=gi.allocUnsafe(r>>>0),i=this.head,o=0;i;)oh(i.data,n,o),o+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?i=this.shift():i=n?this._getString(r):this._getBuffer(r),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var n=this.head,i=1,o=n.data;for(r-=o.length;n=n.next;){var c=n.data,d=r>c.length?c.length:r;if(d===c.length?o+=c:o+=c.slice(0,r),r-=d,r===0){d===c.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=c.slice(d));break}++i}return this.length-=i,o}},{key:"_getBuffer",value:function(r){var n=gi.allocUnsafe(r),i=this.head,o=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var c=i.data,d=r>c.length?c.length:r;if(c.copy(n,n.length-r,0,d),r-=d,r===0){d===c.length?(++o,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=c.slice(d));break}++o}return this.length-=o,n}},{key:ah,value:function(r,n){return Pa(this,ps(ps({},n),{},{depth:0,customInspect:!1}))}}]),e}()});var Na=E((lv,xs)=>{"use strict";function fh(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(Ba,this,e)):process.nextTick(Ba,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(o){!t&&o?r._writableState?r._writableState.errorEmitted?process.nextTick(yi,r):(r._writableState.errorEmitted=!0,process.nextTick(ys,r,o)):process.nextTick(ys,r,o):t?(process.nextTick(yi,r),t(o)):process.nextTick(yi,r)}),this)}function ys(e,t){Ba(e,t),yi(e)}function yi(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function sh(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Ba(e,t){e.emit("error",t)}function ch(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}xs.exports={destroy:fh,undestroy:sh,errorOrDestroy:ch}});var Qt=E((pv,Ss)=>{"use strict";var _s={};function it(e,t,r){r||(r=Error);function n(o,c,d){return typeof t=="string"?t:t(o,c,d)}class i extends r{constructor(c,d,v){super(n(c,d,v))}}i.prototype.name=r.name,i.prototype.code=e,_s[e]=i}function ws(e,t){if(Array.isArray(e)){let r=e.length;return e=e.map(n=>String(n)),r>2?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:r===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function dh(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function uh(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function hh(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}it("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);it("ERR_INVALID_ARG_TYPE",function(e,t,r){let n;typeof t=="string"&&dh(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";let i;if(uh(e," argument"))i=`The ${e} ${n} ${ws(t,"type")}`;else{let o=hh(e,".")?"property":"argument";i=`The "${e}" ${o} ${n} ${ws(t,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);it("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");it("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});it("ERR_STREAM_PREMATURE_CLOSE","Premature close");it("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});it("ERR_MULTIPLE_CALLBACK","Callback called multiple times");it("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");it("ERR_STREAM_WRITE_AFTER_END","write after end");it("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);it("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);it("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Ss.exports.codes=_s});var Ca=E((bv,Ms)=>{"use strict";var lh=Qt().codes.ERR_INVALID_OPT_VALUE;function ph(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function bh(e,t,r,n){var i=ph(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var o=n?r:"highWaterMark";throw new lh(o,i)}return Math.floor(i)}return e.objectMode?16:16*1024}Ms.exports={getHighWaterMark:bh}});var As=E((vv,qa)=>{"use strict";typeof Object.create=="function"?qa.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:qa.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var At=E((mv,La)=>{"use strict";try{if(ka=qe("util"),typeof ka.inherits!="function")throw"";La.exports=ka.inherits}catch{La.exports=As()}var ka});var Rs=E((gv,Es)=>{"use strict";Es.exports=qe("util").deprecate});var Ua=E((yv,Cs)=>{"use strict";Cs.exports=ke;function Ts(e){var t=this;this.next=null,this.entry=null,this.finish=function(){$h(t,e)}}var dn;ke.WritableState=Kn;var vh={deprecate:Rs()},Ps=Ta(),wi=qe("buffer").Buffer,mh=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function gh(e){return wi.from(e)}function yh(e){return wi.isBuffer(e)||e instanceof mh}var Fa=Na(),xh=Ca(),wh=xh.getHighWaterMark,er=Qt().codes,_h=er.ERR_INVALID_ARG_TYPE,Sh=er.ERR_METHOD_NOT_IMPLEMENTED,Mh=er.ERR_MULTIPLE_CALLBACK,Ah=er.ERR_STREAM_CANNOT_PIPE,Eh=er.ERR_STREAM_DESTROYED,Rh=er.ERR_STREAM_NULL_VALUES,Ih=er.ERR_STREAM_WRITE_AFTER_END,Th=er.ERR_UNKNOWN_ENCODING,un=Fa.errorOrDestroy;At()(ke,Ps);function Ph(){}function Kn(e,t,r){dn=dn||Or(),e=e||{},typeof r!="boolean"&&(r=t instanceof dn),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=wh(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=e.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){Oh(t,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Ts(this)}Kn.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(Kn.prototype,"buffer",{get:vh.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var xi;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(xi=Function.prototype[Symbol.hasInstance],Object.defineProperty(ke,Symbol.hasInstance,{value:function(t){return xi.call(this,t)?!0:this!==ke?!1:t&&t._writableState instanceof Kn}})):xi=function(t){return t instanceof this};function ke(e){dn=dn||Or();var t=this instanceof dn;if(!t&&!xi.call(ke,this))return new ke(e);this._writableState=new Kn(e,this,t),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)),Ps.call(this)}ke.prototype.pipe=function(){un(this,new Ah)};function Bh(e,t){var r=new Ih;un(e,r),process.nextTick(t,r)}function Nh(e,t,r,n){var i;return r===null?i=new Rh:typeof r!="string"&&!t.objectMode&&(i=new _h("chunk",["string","Buffer"],r)),i?(un(e,i),process.nextTick(n,i),!1):!0}ke.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=!n.objectMode&&yh(e);return o&&!wi.isBuffer(e)&&(e=gh(e)),typeof t=="function"&&(r=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=Ph),n.ending?Bh(this,r):(o||Nh(this,n,e,r))&&(n.pendingcb++,i=qh(this,n,o,e,t,r)),i};ke.prototype.cork=function(){this._writableState.corked++};ke.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&Bs(this,e))};ke.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new Th(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(ke.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Ch(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=wi.from(t,r)),t}Object.defineProperty(ke.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function qh(e,t,r,n,i,o){if(!r){var c=Ch(t,n,i);n!==c&&(r=!0,i="buffer",n=c)}var d=t.objectMode?1:n.length;t.length+=d;var v=t.length<t.highWaterMark;if(v||(t.needDrain=!0),t.writing||t.corked){var m=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},m?m.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Oa(e,t,!1,d,n,i,o);return v}function Oa(e,t,r,n,i,o,c){t.writelen=n,t.writecb=c,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new Eh("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function kh(e,t,r,n,i){--t.pendingcb,r?(process.nextTick(i,n),process.nextTick(Hn,e,t),e._writableState.errorEmitted=!0,un(e,n)):(i(n),e._writableState.errorEmitted=!0,un(e,n),Hn(e,t))}function Lh(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function Oh(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new Mh;if(Lh(r),t)kh(e,r,n,t,i);else{var o=Ns(r)||e.destroyed;!o&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Bs(e,r),n?process.nextTick(Is,e,r,o,i):Is(e,r,o,i)}}function Is(e,t,r,n){r||Fh(e,t),t.pendingcb--,n(),Hn(e,t)}function Fh(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function Bs(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var c=0,d=!0;r;)i[c]=r,r.isBuf||(d=!1),r=r.next,c+=1;i.allBuffers=d,Oa(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new Ts(t),t.bufferedRequestCount=0}else{for(;r;){var v=r.chunk,m=r.encoding,y=r.callback,w=t.objectMode?1:v.length;if(Oa(e,t,!1,w,v,m,y),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}ke.prototype._write=function(e,t,r){r(new Sh("_write()"))};ke.prototype._writev=null;ke.prototype.end=function(e,t,r){var n=this._writableState;return typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||zh(this,n,r),this};Object.defineProperty(ke.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Ns(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function Uh(e,t){e._final(function(r){t.pendingcb--,r&&un(e,r),t.prefinished=!0,e.emit("prefinish"),Hn(e,t)})}function Dh(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,process.nextTick(Uh,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function Hn(e,t){var r=Ns(t);if(r&&(Dh(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function zh(e,t,r){t.ending=!0,Hn(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function $h(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}Object.defineProperty(ke.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});ke.prototype.destroy=Fa.destroy;ke.prototype._undestroy=Fa.undestroy;ke.prototype._destroy=function(e,t){t(e)}});var Or=E((xv,ks)=>{"use strict";var Hh=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};ks.exports=Et;var qs=$a(),za=Ua();At()(Et,qs);for(Da=Hh(za.prototype),_i=0;_i<Da.length;_i++)Si=Da[_i],Et.prototype[Si]||(Et.prototype[Si]=za.prototype[Si]);var Da,Si,_i;function Et(e){if(!(this instanceof Et))return new Et(e);qs.call(this,e),za.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",Kh)))}Object.defineProperty(Et.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Et.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Et.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Kh(){this._writableState.ended||process.nextTick(jh,this)}function jh(e){e.end()}Object.defineProperty(Et.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}})});var Fs=E((Ha,Os)=>{"use strict";var Mi=qe("buffer"),Rt=Mi.Buffer;function Ls(e,t){for(var r in e)t[r]=e[r]}Rt.from&&Rt.alloc&&Rt.allocUnsafe&&Rt.allocUnsafeSlow?Os.exports=Mi:(Ls(Mi,Ha),Ha.Buffer=Fr);function Fr(e,t,r){return Rt(e,t,r)}Fr.prototype=Object.create(Rt.prototype);Ls(Rt,Fr);Fr.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Rt(e,t,r)};Fr.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=Rt(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};Fr.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Rt(e)};Fr.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Mi.SlowBuffer(e)}});var Wa=E(Ds=>{"use strict";var ja=Fs().Buffer,Us=ja.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 Wh(e){if(!e)return"utf8";for(var t;;)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(t)return;e=(""+e).toLowerCase(),t=!0}}function Vh(e){var t=Wh(e);if(typeof t!="string"&&(ja.isEncoding===Us||!Us(e)))throw new Error("Unknown encoding: "+e);return t||e}Ds.StringDecoder=jn;function jn(e){this.encoding=Vh(e);var t;switch(this.encoding){case"utf16le":this.text=Qh,this.end=el,t=4;break;case"utf8":this.fillLast=Yh,t=4;break;case"base64":this.text=tl,this.end=rl,t=3;break;default:this.write=nl,this.end=il;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ja.allocUnsafe(t)}jn.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};jn.prototype.end=Xh;jn.prototype.text=Zh;jn.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 Ka(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function Gh(e,t,r){var n=t.length-1;if(n<r)return 0;var i=Ka(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||i===-2?0:(i=Ka(t[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||i===-2?0:(i=Ka(t[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function Jh(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function Yh(e){var t=this.lastTotal-this.lastNeed,r=Jh(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function Zh(e,t){var r=Gh(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function Xh(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function Qh(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.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],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function el(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function tl(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===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",t,e.length-r))}function rl(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function nl(e){return e.toString(this.encoding)}function il(e){return e&&e.length?this.write(e):""}});var Ai=E((_v,Hs)=>{"use strict";var zs=Qt().codes.ERR_STREAM_PREMATURE_CLOSE;function al(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function ol(){}function fl(e){return e.setHeader&&typeof e.abort=="function"}function $s(e,t,r){if(typeof t=="function")return $s(e,null,t);t||(t={}),r=al(r||ol);var n=t.readable||t.readable!==!1&&e.readable,i=t.writable||t.writable!==!1&&e.writable,o=function(){e.writable||d()},c=e._writableState&&e._writableState.finished,d=function(){i=!1,c=!0,n||r.call(e)},v=e._readableState&&e._readableState.endEmitted,m=function(){n=!1,v=!0,i||r.call(e)},y=function(A){r.call(e,A)},w=function(){var A;if(n&&!v)return(!e._readableState||!e._readableState.ended)&&(A=new zs),r.call(e,A);if(i&&!c)return(!e._writableState||!e._writableState.ended)&&(A=new zs),r.call(e,A)},S=function(){e.req.on("finish",d)};return fl(e)?(e.on("complete",d),e.on("abort",w),e.req?S():e.on("request",S)):i&&!e._writableState&&(e.on("end",o),e.on("close",o)),e.on("end",m),e.on("finish",d),t.error!==!1&&e.on("error",y),e.on("close",w),function(){e.removeListener("complete",d),e.removeListener("abort",w),e.removeListener("request",S),e.req&&e.req.removeListener("finish",d),e.removeListener("end",o),e.removeListener("close",o),e.removeListener("finish",d),e.removeListener("end",m),e.removeListener("error",y),e.removeListener("close",w)}}Hs.exports=$s});var js=E((Sv,Ks)=>{"use strict";var Ei;function tr(e,t,r){return t=sl(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sl(e){var t=cl(e,"string");return typeof t=="symbol"?t:String(t)}function cl(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var dl=Ai(),rr=Symbol("lastResolve"),Ur=Symbol("lastReject"),Wn=Symbol("error"),Ri=Symbol("ended"),Dr=Symbol("lastPromise"),Va=Symbol("handlePromise"),zr=Symbol("stream");function nr(e,t){return{value:e,done:t}}function ul(e){var t=e[rr];if(t!==null){var r=e[zr].read();r!==null&&(e[Dr]=null,e[rr]=null,e[Ur]=null,t(nr(r,!1)))}}function hl(e){process.nextTick(ul,e)}function ll(e,t){return function(r,n){e.then(function(){if(t[Ri]){r(nr(void 0,!0));return}t[Va](r,n)},n)}}var pl=Object.getPrototypeOf(function(){}),bl=Object.setPrototypeOf((Ei={get stream(){return this[zr]},next:function(){var t=this,r=this[Wn];if(r!==null)return Promise.reject(r);if(this[Ri])return Promise.resolve(nr(void 0,!0));if(this[zr].destroyed)return new Promise(function(c,d){process.nextTick(function(){t[Wn]?d(t[Wn]):c(nr(void 0,!0))})});var n=this[Dr],i;if(n)i=new Promise(ll(n,this));else{var o=this[zr].read();if(o!==null)return Promise.resolve(nr(o,!1));i=new Promise(this[Va])}return this[Dr]=i,i}},tr(Ei,Symbol.asyncIterator,function(){return this}),tr(Ei,"return",function(){var t=this;return new Promise(function(r,n){t[zr].destroy(null,function(i){if(i){n(i);return}r(nr(void 0,!0))})})}),Ei),pl),vl=function(t){var r,n=Object.create(bl,(r={},tr(r,zr,{value:t,writable:!0}),tr(r,rr,{value:null,writable:!0}),tr(r,Ur,{value:null,writable:!0}),tr(r,Wn,{value:null,writable:!0}),tr(r,Ri,{value:t._readableState.endEmitted,writable:!0}),tr(r,Va,{value:function(o,c){var d=n[zr].read();d?(n[Dr]=null,n[rr]=null,n[Ur]=null,o(nr(d,!1))):(n[rr]=o,n[Ur]=c)},writable:!0}),r));return n[Dr]=null,dl(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var o=n[Ur];o!==null&&(n[Dr]=null,n[rr]=null,n[Ur]=null,o(i)),n[Wn]=i;return}var c=n[rr];c!==null&&(n[Dr]=null,n[rr]=null,n[Ur]=null,c(nr(void 0,!0))),n[Ri]=!0}),t.on("readable",hl.bind(null,n)),n};Ks.exports=vl});var Js=E((Mv,Gs)=>{"use strict";function Ws(e,t,r,n,i,o,c){try{var d=e[o](c),v=d.value}catch(m){r(m);return}d.done?t(v):Promise.resolve(v).then(n,i)}function ml(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function c(v){Ws(o,n,i,c,d,"next",v)}function d(v){Ws(o,n,i,c,d,"throw",v)}c(void 0)})}}function Vs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vs(Object(r),!0).forEach(function(n){yl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vs(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yl(e,t,r){return t=xl(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xl(e){var t=wl(e,"string");return typeof t=="symbol"?t:String(t)}function wl(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _l=Qt().codes.ERR_INVALID_ARG_TYPE;function Sl(e,t,r){var n;if(t&&typeof t.next=="function")n=t;else if(t&&t[Symbol.asyncIterator])n=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])n=t[Symbol.iterator]();else throw new _l("iterable",["Iterable"],t);var i=new e(gl({objectMode:!0},r)),o=!1;i._read=function(){o||(o=!0,c())};function c(){return d.apply(this,arguments)}function d(){return d=ml(function*(){try{var v=yield n.next(),m=v.value,y=v.done;y?i.push(null):i.push(yield m)?c():o=!1}catch(w){i.destroy(w)}}),d.apply(this,arguments)}return i}Gs.exports=Sl});var $a=E((Ev,ac)=>{"use strict";ac.exports=z;var hn;z.ReadableState=Qs;var Av=qe("events").EventEmitter,Xs=function(t,r){return t.listeners(r).length},Gn=Ta(),Ii=qe("buffer").Buffer,Ml=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Al(e){return Ii.from(e)}function El(e){return Ii.isBuffer(e)||e instanceof Ml}var Ga=qe("util"),q;Ga&&Ga.debuglog?q=Ga.debuglog("stream"):q=function(){};var Rl=gs(),to=Na(),Il=Ca(),Tl=Il.getHighWaterMark,Ti=Qt().codes,Pl=Ti.ERR_INVALID_ARG_TYPE,Bl=Ti.ERR_STREAM_PUSH_AFTER_EOF,Nl=Ti.ERR_METHOD_NOT_IMPLEMENTED,Cl=Ti.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,ln,Ja,Ya;At()(z,Gn);var Vn=to.errorOrDestroy,Za=["error","close","destroy","pause","resume"];function ql(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function Qs(e,t,r){hn=hn||Or(),e=e||{},typeof r!="boolean"&&(r=t instanceof hn),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=Tl(this,e,"readableHighWaterMark",r),this.buffer=new Rl,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(ln||(ln=Wa().StringDecoder),this.decoder=new ln(e.encoding),this.encoding=e.encoding)}function z(e){if(hn=hn||Or(),!(this instanceof z))return new z(e);var t=this instanceof hn;this._readableState=new Qs(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Gn.call(this)}Object.defineProperty(z.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});z.prototype.destroy=to.destroy;z.prototype._undestroy=to.undestroy;z.prototype._destroy=function(e,t){t(e)};z.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=Ii.from(e,t),t=""),n=!0),ec(this,e,t,!1,n)};z.prototype.unshift=function(e){return ec(this,e,null,!0,!1)};function ec(e,t,r,n,i){q("readableAddChunk",t);var o=e._readableState;if(t===null)o.reading=!1,Ol(e,o);else{var c;if(i||(c=kl(o,t)),c)Vn(e,c);else if(o.objectMode||t&&t.length>0)if(typeof t!="string"&&!o.objectMode&&Object.getPrototypeOf(t)!==Ii.prototype&&(t=Al(t)),n)o.endEmitted?Vn(e,new Cl):Xa(e,o,t,!0);else if(o.ended)Vn(e,new Bl);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||t.length!==0?Xa(e,o,t,!1):eo(e,o)):Xa(e,o,t,!1)}else n||(o.reading=!1,eo(e,o))}return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function Xa(e,t,r,n){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&Pi(e)),eo(e,t)}function kl(e,t){var r;return!El(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new Pl("chunk",["string","Buffer","Uint8Array"],t)),r}z.prototype.isPaused=function(){return this._readableState.flowing===!1};z.prototype.setEncoding=function(e){ln||(ln=Wa().StringDecoder);var t=new ln(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";r!==null;)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var Ys=1073741824;function Ll(e){return e>=Ys?e=Ys:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function Zs(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=Ll(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}z.prototype.read=function(e){q("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return q("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Qa(this):Pi(this),null;if(e=Zs(e,t),e===0&&t.ended)return t.length===0&&Qa(this),null;var n=t.needReadable;q("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,q("length less than watermark",n)),t.ended||t.reading?(n=!1,q("reading or ended",n)):n&&(q("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=Zs(r,t)));var i;return e>0?i=nc(e,t):i=null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&Qa(this)),i!==null&&this.emit("data",i),i};function Ol(e,t){if(q("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?Pi(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,tc(e)))}}function Pi(e){var t=e._readableState;q("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(q("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(tc,e))}function tc(e){var t=e._readableState;q("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,ro(e)}function eo(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(Fl,e,t))}function Fl(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var r=t.length;if(q("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}z.prototype._read=function(e){Vn(this,new Nl("_read()"))};z.prototype.pipe=function(e,t){var r=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,t);var i=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,o=i?d:I;n.endEmitted?process.nextTick(o):r.once("end",o),e.on("unpipe",c);function c(C,B){q("onunpipe"),C===r&&B&&B.hasUnpiped===!1&&(B.hasUnpiped=!0,y())}function d(){q("onend"),e.end()}var v=Ul(r);e.on("drain",v);var m=!1;function y(){q("cleanup"),e.removeListener("close",M),e.removeListener("finish",A),e.removeListener("drain",v),e.removeListener("error",S),e.removeListener("unpipe",c),r.removeListener("end",d),r.removeListener("end",I),r.removeListener("data",w),m=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&v()}r.on("data",w);function w(C){q("ondata");var B=e.write(C);q("dest.write",B),B===!1&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&ic(n.pipes,e)!==-1)&&!m&&(q("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function S(C){q("onerror",C),I(),e.removeListener("error",S),Xs(e,"error")===0&&Vn(e,C)}ql(e,"error",S);function M(){e.removeListener("finish",A),I()}e.once("close",M);function A(){q("onfinish"),e.removeListener("close",M),I()}e.once("finish",A);function I(){q("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(q("pipe resume"),r.resume()),e};function Ul(e){return function(){var r=e._readableState;q("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Xs(e,"data")&&(r.flowing=!0,ro(e))}}z.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var c=ic(t.pipes,e);return c===-1?this:(t.pipes.splice(c,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};z.prototype.on=function(e,t){var r=Gn.prototype.on.call(this,e,t),n=this._readableState;return e==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,q("on readable",n.length,n.reading),n.length?Pi(this):n.reading||process.nextTick(Dl,this)),r};z.prototype.addListener=z.prototype.on;z.prototype.removeListener=function(e,t){var r=Gn.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(rc,this),r};z.prototype.removeAllListeners=function(e){var t=Gn.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(rc,this),t};function rc(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function Dl(e){q("readable nexttick read 0"),e.read(0)}z.prototype.resume=function(){var e=this._readableState;return e.flowing||(q("resume"),e.flowing=!e.readableListening,zl(this,e)),e.paused=!1,this};function zl(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick($l,e,t))}function $l(e,t){q("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),ro(e),t.flowing&&!t.reading&&e.read(0)}z.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._readableState.paused=!0,this};function ro(e){var t=e._readableState;for(q("flow",t.flowing);t.flowing&&e.read()!==null;);}z.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(q("wrapped end"),r.decoder&&!r.ended){var c=r.decoder.end();c&&c.length&&t.push(c)}t.push(null)}),e.on("data",function(c){if(q("wrapped data"),r.decoder&&(c=r.decoder.write(c)),!(r.objectMode&&c==null)&&!(!r.objectMode&&(!c||!c.length))){var d=t.push(c);d||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=function(d){return function(){return e[d].apply(e,arguments)}}(i));for(var o=0;o<Za.length;o++)e.on(Za[o],this.emit.bind(this,Za[o]));return this._read=function(c){q("wrapped _read",c),n&&(n=!1,e.resume())},this};typeof Symbol=="function"&&(z.prototype[Symbol.asyncIterator]=function(){return Ja===void 0&&(Ja=js()),Ja(this)});Object.defineProperty(z.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(z.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(z.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});z._fromList=nc;Object.defineProperty(z.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function nc(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function Qa(e){var t=e._readableState;q("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(Hl,t,e))}function Hl(e,t){if(q("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(z.from=function(e,t){return Ya===void 0&&(Ya=Js()),Ya(z,e,t)});function ic(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}});var no=E((Rv,fc)=>{"use strict";fc.exports=Kt;var Bi=Qt().codes,Kl=Bi.ERR_METHOD_NOT_IMPLEMENTED,jl=Bi.ERR_MULTIPLE_CALLBACK,Wl=Bi.ERR_TRANSFORM_ALREADY_TRANSFORMING,Vl=Bi.ERR_TRANSFORM_WITH_LENGTH_0,Ni=Or();At()(Kt,Ni);function Gl(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new jl);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function Kt(e){if(!(this instanceof Kt))return new Kt(e);Ni.call(this,e),this._transformState={afterTransform:Gl.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",Jl)}function Jl(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){oc(e,t,r)}):oc(this,null,null)}Kt.prototype.push=function(e,t){return this._transformState.needTransform=!1,Ni.prototype.push.call(this,e,t)};Kt.prototype._transform=function(e,t,r){r(new Kl("_transform()"))};Kt.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};Kt.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};Kt.prototype._destroy=function(e,t){Ni.prototype._destroy.call(this,e,function(r){t(r)})};function oc(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new Vl;if(e._transformState.transforming)throw new Wl;return e.push(null)}});var dc=E((Iv,cc)=>{"use strict";cc.exports=Jn;var sc=no();At()(Jn,sc);function Jn(e){if(!(this instanceof Jn))return new Jn(e);sc.call(this,e)}Jn.prototype._transform=function(e,t,r){r(null,e)}});var bc=E((Tv,pc)=>{"use strict";var io;function Yl(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var lc=Qt().codes,Zl=lc.ERR_MISSING_ARGS,Xl=lc.ERR_STREAM_DESTROYED;function uc(e){if(e)throw e}function Ql(e){return e.setHeader&&typeof e.abort=="function"}function e1(e,t,r,n){n=Yl(n);var i=!1;e.on("close",function(){i=!0}),io===void 0&&(io=Ai()),io(e,{readable:t,writable:r},function(c){if(c)return n(c);i=!0,n()});var o=!1;return function(c){if(!i&&!o){if(o=!0,Ql(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(c||new Xl("pipe"))}}}function hc(e){e()}function t1(e,t){return e.pipe(t)}function r1(e){return!e.length||typeof e[e.length-1]!="function"?uc:e.pop()}function n1(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=r1(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Zl("streams");var i,o=t.map(function(c,d){var v=d<t.length-1,m=d>0;return e1(c,v,m,function(y){i||(i=y),y&&o.forEach(hc),!v&&(o.forEach(hc),n(i))})});return t.reduce(t1)}pc.exports=n1});var ao=E((at,Zn)=>{"use strict";var Yn=qe("stream");process.env.READABLE_STREAM==="disable"&&Yn?(Zn.exports=Yn.Readable,Object.assign(Zn.exports,Yn),Zn.exports.Stream=Yn):(at=Zn.exports=$a(),at.Stream=Yn||at,at.Readable=at,at.Writable=Ua(),at.Duplex=Or(),at.Transform=no(),at.PassThrough=dc(),at.finished=Ai(),at.pipeline=bc())});var gc=E((Pv,mc)=>{"use strict";var{Transform:i1}=ao();mc.exports=e=>class vc extends i1{constructor(r,n,i,o,c){super(c),this._rate=r,this._capacity=n,this._delimitedSuffix=i,this._hashBitLength=o,this._options=c,this._state=new e,this._state.initialize(r,n),this._finalized=!1}_transform(r,n,i){let o=null;try{this.update(r,n)}catch(c){o=c}i(o)}_flush(r){let n=null;try{this.push(this.digest())}catch(i){n=i}r(n)}update(r,n){if(!Buffer.isBuffer(r)&&typeof r!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return Buffer.isBuffer(r)||(r=Buffer.from(r,n)),this._state.absorb(r),this}digest(r){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let n=this._state.squeeze(this._hashBitLength/8);return r!==void 0&&(n=n.toString(r)),this._resetState(),n}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let r=new vc(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return