UNPKG

@testiny/automation

Version:

A collection of utilities for importing automation reports into Testiny

6 lines 990 kB
"use strict";var xz=Object.create;var ss=Object.defineProperty;var RE=Object.getOwnPropertyDescriptor;var Tz=Object.getOwnPropertyNames;var Ez=Object.getPrototypeOf,kz=Object.prototype.hasOwnProperty;var a=(e,t)=>ss(e,"name",{value:t,configurable:!0});var d=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Pz=(e,t)=>{for(var r in t)ss(e,r,{get:t[r],enumerable:!0})},qE=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Tz(t))!kz.call(e,i)&&i!==r&&ss(e,i,{get:()=>t[i],enumerable:!(n=RE(t,i))||n.enumerable});return e};var te=(e,t,r)=>(r=e!=null?xz(Ez(e)):{},qE(t||!e||!e.__esModule?ss(r,"default",{value:e,enumerable:!0}):r,e)),Cz=e=>qE(ss({},"__esModule",{value:!0}),e),I=(e,t,r,n)=>{for(var i=n>1?void 0:n?RE(t,r):t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=(n?s(t,r,i):s(i))||i);return n&&i&&ss(t,r,i),i};var LE=d(($Le,jE)=>{var FE=require("stream").Stream,Mz=require("util");jE.exports=ur;function ur(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}a(ur,"DelayedStream");Mz.inherits(ur,FE);ur.create=function(e,t){var r=new this;t=t||{};for(var n in t)r[n]=t[n];r.source=e;var i=e.emit;return e.emit=function(){return r._handleEmit(arguments),i.apply(e,arguments)},e.on("error",function(){}),r.pauseStream&&e.pause(),r};Object.defineProperty(ur.prototype,"readable",{configurable:!0,enumerable:!0,get:a(function(){return this.source.readable},"get")});ur.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};ur.prototype.resume=function(){this._released||this.release(),this.source.resume()};ur.prototype.pause=function(){this.source.pause()};ur.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]};ur.prototype.pipe=function(){var e=FE.prototype.pipe.apply(this,arguments);return this.resume(),e};ur.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}e[0]==="data"&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e)};ur.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}}});var $E=d((zLe,UE)=>{var Dz=require("util"),VE=require("stream").Stream,BE=LE();UE.exports=Ae;function Ae(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}a(Ae,"CombinedStream");Dz.inherits(Ae,VE);Ae.create=function(e){var t=new this;e=e||{};for(var r in e)t[r]=e[r];return t};Ae.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)};Ae.prototype.append=function(e){var t=Ae.isStreamLike(e);if(t){if(!(e instanceof BE)){var r=BE.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=r}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this};Ae.prototype.pipe=function(e,t){return VE.prototype.pipe.call(this,e,t),this.resume(),e};Ae.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};Ae.prototype._realGetNext=function(){var e=this._streams.shift();if(typeof e>"u"){this.end();return}if(typeof e!="function"){this._pipeNext(e);return}var t=e;t(function(r){var n=Ae.isStreamLike(r);n&&(r.on("data",this._checkDataSize.bind(this)),this._handleErrors(r)),this._pipeNext(r)}.bind(this))};Ae.prototype._pipeNext=function(e){this._currentStream=e;var t=Ae.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this)),e.pipe(this,{end:!1});return}var r=e;this.write(r),this._getNext()};Ae.prototype._handleErrors=function(e){var t=this;e.on("error",function(r){t._emitError(r)})};Ae.prototype.write=function(e){this.emit("data",e)};Ae.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};Ae.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")};Ae.prototype.end=function(){this._reset(),this.emit("end")};Ae.prototype.destroy=function(){this._reset(),this.emit("close")};Ae.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};Ae.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}};Ae.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(t){t.dataSize&&(e.dataSize+=t.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};Ae.prototype._emitError=function(e){this._reset(),this.emit("error",e)}});var zE=d((GLe,WE)=>{WE.exports={}});var ZE=d(mt=>{"use strict";var Gd=zE(),Nz=require("path").extname,HE=/^\s*([^;\s]*)(?:;|\s|$)/,Rz=/^text\//i;mt.charset=GE;mt.charsets={lookup:GE};mt.contentType=qz;mt.extension=Fz;mt.extensions=Object.create(null);mt.lookup=jz;mt.types=Object.create(null);Lz(mt.extensions,mt.types);function GE(e){if(!e||typeof e!="string")return!1;var t=HE.exec(e),r=t&&Gd[t[1].toLowerCase()];return r&&r.charset?r.charset:t&&Rz.test(t[1])?"UTF-8":!1}a(GE,"charset");function qz(e){if(!e||typeof e!="string")return!1;var t=e.indexOf("/")===-1?mt.lookup(e):e;if(!t)return!1;if(t.indexOf("charset")===-1){var r=mt.charset(t);r&&(t+="; charset="+r.toLowerCase())}return t}a(qz,"contentType");function Fz(e){if(!e||typeof e!="string")return!1;var t=HE.exec(e),r=t&&mt.extensions[t[1].toLowerCase()];return!r||!r.length?!1:r[0]}a(Fz,"extension");function jz(e){if(!e||typeof e!="string")return!1;var t=Nz("x."+e).toLowerCase().substr(1);return t&&mt.types[t]||!1}a(jz,"lookup");function Lz(e,t){var r=["nginx","apache",void 0,"iana"];Object.keys(Gd).forEach(a(function(i){var o=Gd[i],s=o.extensions;if(!(!s||!s.length)){e[i]=s;for(var u=0;u<s.length;u++){var l=s[u];if(t[l]){var c=r.indexOf(Gd[t[l]].source),f=r.indexOf(o.source);if(t[l]!=="application/octet-stream"&&(c>f||c===f&&t[l].substr(0,12)==="application/"))continue}t[l]=i}}},"forEachMimeType"))}a(Lz,"populateMaps")});var YE=d((YLe,KE)=>{KE.exports=Bz;function Bz(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;t?t(e):setTimeout(e,0)}a(Bz,"defer")});var Mv=d((XLe,XE)=>{var JE=YE();XE.exports=Vz;function Vz(e){var t=!1;return JE(function(){t=!0}),a(function(n,i){t?e(n,i):JE(a(function(){e(n,i)},"nextTick_callback"))},"async_callback")}a(Vz,"async")});var Dv=d((eBe,QE)=>{QE.exports=Uz;function Uz(e){Object.keys(e.jobs).forEach($z.bind(e)),e.jobs={}}a(Uz,"abort");function $z(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}a($z,"clean")});var Nv=d((rBe,tk)=>{var ek=Mv(),Wz=Dv();tk.exports=zz;function zz(e,t,r,n){var i=r.keyedList?r.keyedList[r.index]:r.index;r.jobs[i]=Hz(t,i,e[i],function(o,s){i in r.jobs&&(delete r.jobs[i],o?Wz(r):r.results[i]=s,n(o,r.results))})}a(zz,"iterate");function Hz(e,t,r,n){var i;return e.length==2?i=e(r,ek(n)):i=e(r,t,ek(n)),i}a(Hz,"runJob")});var Rv=d((iBe,rk)=>{rk.exports=Gz;function Gz(e,t){var r=!Array.isArray(e),n={index:0,keyedList:r||t?Object.keys(e):null,jobs:{},results:r?{}:[],size:r?Object.keys(e).length:e.length};return t&&n.keyedList.sort(r?t:function(i,o){return t(e[i],e[o])}),n}a(Gz,"state")});var qv=d((oBe,nk)=>{var Zz=Dv(),Kz=Mv();nk.exports=Yz;function Yz(e){Object.keys(this.jobs).length&&(this.index=this.size,Zz(this),Kz(e)(null,this.results))}a(Yz,"terminator")});var ak=d((uBe,ik)=>{var Jz=Nv(),Xz=Rv(),Qz=qv();ik.exports=e5;function e5(e,t,r){for(var n=Xz(e);n.index<(n.keyedList||e).length;)Jz(e,t,n,function(i,o){if(i){r(i,o);return}if(Object.keys(n.jobs).length===0){r(null,n.results);return}}),n.index++;return Qz.bind(n,r)}a(e5,"parallel")});var Fv=d((cBe,Zd)=>{var ok=Nv(),t5=Rv(),r5=qv();Zd.exports=n5;Zd.exports.ascending=sk;Zd.exports.descending=i5;function n5(e,t,r,n){var i=t5(e,r);return ok(e,t,i,a(function o(s,u){if(s){n(s,u);return}if(i.index++,i.index<(i.keyedList||e).length){ok(e,t,i,o);return}n(null,i.results)},"iteratorHandler")),r5.bind(i,n)}a(n5,"serialOrdered");function sk(e,t){return e<t?-1:e>t?1:0}a(sk,"ascending");function i5(e,t){return-1*sk(e,t)}a(i5,"descending")});var lk=d((dBe,uk)=>{var a5=Fv();uk.exports=o5;function o5(e,t,r){return a5(e,t,null,r)}a(o5,"serial")});var fk=d((mBe,ck)=>{ck.exports={parallel:ak(),serial:lk(),serialOrdered:Fv()}});var jv=d((hBe,dk)=>{"use strict";dk.exports=Object});var mk=d((yBe,pk)=>{"use strict";pk.exports=Error});var yk=d((gBe,hk)=>{"use strict";hk.exports=EvalError});var bk=d((bBe,gk)=>{"use strict";gk.exports=RangeError});var _k=d((vBe,vk)=>{"use strict";vk.exports=ReferenceError});var Ak=d((_Be,Sk)=>{"use strict";Sk.exports=SyntaxError});var Kd=d((SBe,wk)=>{"use strict";wk.exports=TypeError});var Ok=d((ABe,Ik)=>{"use strict";Ik.exports=URIError});var Tk=d((wBe,xk)=>{"use strict";xk.exports=Math.abs});var kk=d((IBe,Ek)=>{"use strict";Ek.exports=Math.floor});var Ck=d((OBe,Pk)=>{"use strict";Pk.exports=Math.max});var Dk=d((xBe,Mk)=>{"use strict";Mk.exports=Math.min});var Rk=d((TBe,Nk)=>{"use strict";Nk.exports=Math.pow});var Fk=d((EBe,qk)=>{"use strict";qk.exports=Math.round});var Lk=d((kBe,jk)=>{"use strict";jk.exports=Number.isNaN||a(function(t){return t!==t},"isNaN")});var Vk=d((CBe,Bk)=>{"use strict";var s5=Lk();Bk.exports=a(function(t){return s5(t)||t===0?t:t<0?-1:1},"sign")});var $k=d((DBe,Uk)=>{"use strict";Uk.exports=Object.getOwnPropertyDescriptor});var Lv=d((NBe,Wk)=>{"use strict";var Yd=$k();if(Yd)try{Yd([],"length")}catch{Yd=null}Wk.exports=Yd});var Hk=d((RBe,zk)=>{"use strict";var Jd=Object.defineProperty||!1;if(Jd)try{Jd({},"a",{value:1})}catch{Jd=!1}zk.exports=Jd});var Bv=d((qBe,Gk)=>{"use strict";Gk.exports=a(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var o in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var s=Object.getOwnPropertySymbols(t);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(t,r);if(u.value!==i||u.enumerable!==!0)return!1}return!0},"hasSymbols")});var Yk=d((jBe,Kk)=>{"use strict";var Zk=typeof Symbol<"u"&&Symbol,u5=Bv();Kk.exports=a(function(){return typeof Zk!="function"||typeof Symbol!="function"||typeof Zk("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:u5()},"hasNativeSymbols")});var Vv=d((BBe,Jk)=>{"use strict";Jk.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Uv=d((VBe,Xk)=>{"use strict";var l5=jv();Xk.exports=l5.getPrototypeOf||null});var tP=d((UBe,eP)=>{"use strict";var c5="Function.prototype.bind called on incompatible ",f5=Object.prototype.toString,d5=Math.max,p5="[object Function]",Qk=a(function(t,r){for(var n=[],i=0;i<t.length;i+=1)n[i]=t[i];for(var o=0;o<r.length;o+=1)n[o+t.length]=r[o];return n},"concatty"),m5=a(function(t,r){for(var n=[],i=r||0,o=0;i<t.length;i+=1,o+=1)n[o]=t[i];return n},"slicy"),h5=a(function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r},"joiny");eP.exports=a(function(t){var r=this;if(typeof r!="function"||f5.apply(r)!==p5)throw new TypeError(c5+r);for(var n=m5(arguments,1),i,o=a(function(){if(this instanceof i){var f=r.apply(this,Qk(n,arguments));return Object(f)===f?f:this}return r.apply(t,Qk(n,arguments))},"binder"),s=d5(0,r.length-n.length),u=[],l=0;l<s;l++)u[l]="$"+l;if(i=Function("binder","return function ("+h5(u,",")+"){ return binder.apply(this,arguments); }")(o),r.prototype){var c=a(function(){},"Empty");c.prototype=r.prototype,i.prototype=new c,c.prototype=null}return i},"bind")});var vl=d((WBe,rP)=>{"use strict";var y5=tP();rP.exports=Function.prototype.bind||y5});var Xd=d((zBe,nP)=>{"use strict";nP.exports=Function.prototype.call});var $v=d((HBe,iP)=>{"use strict";iP.exports=Function.prototype.apply});var oP=d((GBe,aP)=>{"use strict";aP.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var uP=d((ZBe,sP)=>{"use strict";var g5=vl(),b5=$v(),v5=Xd(),_5=oP();sP.exports=_5||g5.call(v5,b5)});var cP=d((KBe,lP)=>{"use strict";var S5=vl(),A5=Kd(),w5=Xd(),I5=uP();lP.exports=a(function(t){if(t.length<1||typeof t[0]!="function")throw new A5("a function is required");return I5(S5,w5,t)},"callBindBasic")});var yP=d((JBe,hP)=>{"use strict";var O5=cP(),fP=Lv(),pP;try{pP=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var Wv=!!pP&&fP&&fP(Object.prototype,"__proto__"),mP=Object,dP=mP.getPrototypeOf;hP.exports=Wv&&typeof Wv.get=="function"?O5([Wv.get]):typeof dP=="function"?a(function(t){return dP(t==null?t:mP(t))},"getDunder"):!1});var SP=d((QBe,_P)=>{"use strict";var gP=Vv(),bP=Uv(),vP=yP();_P.exports=gP?a(function(t){return gP(t)},"getProto"):bP?a(function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return bP(t)},"getProto"):vP?a(function(t){return vP(t)},"getProto"):null});var Qd=d((t3e,AP)=>{"use strict";var x5=Function.prototype.call,T5=Object.prototype.hasOwnProperty,E5=vl();AP.exports=E5.call(x5,T5)});var kP=d((r3e,EP)=>{"use strict";var X,k5=jv(),P5=mk(),C5=yk(),M5=bk(),D5=_k(),fs=Ak(),cs=Kd(),N5=Ok(),R5=Tk(),q5=kk(),F5=Ck(),j5=Dk(),L5=Rk(),B5=Fk(),V5=Vk(),xP=Function,zv=a(function(e){try{return xP('"use strict"; return ('+e+").constructor;")()}catch{}},"getEvalledConstructor"),_l=Lv(),U5=Hk(),Hv=a(function(){throw new cs},"throwTypeError"),$5=_l?function(){try{return arguments.callee,Hv}catch{try{return _l(arguments,"callee").get}catch{return Hv}}}():Hv,us=Yk()(),Ue=SP(),W5=Uv(),z5=Vv(),TP=$v(),Sl=Xd(),ls={},H5=typeof Uint8Array>"u"||!Ue?X:Ue(Uint8Array),co={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?X:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?X:ArrayBuffer,"%ArrayIteratorPrototype%":us&&Ue?Ue([][Symbol.iterator]()):X,"%AsyncFromSyncIteratorPrototype%":X,"%AsyncFunction%":ls,"%AsyncGenerator%":ls,"%AsyncGeneratorFunction%":ls,"%AsyncIteratorPrototype%":ls,"%Atomics%":typeof Atomics>"u"?X:Atomics,"%BigInt%":typeof BigInt>"u"?X:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?X:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?X:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?X:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":P5,"%eval%":eval,"%EvalError%":C5,"%Float16Array%":typeof Float16Array>"u"?X:Float16Array,"%Float32Array%":typeof Float32Array>"u"?X:Float32Array,"%Float64Array%":typeof Float64Array>"u"?X:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?X:FinalizationRegistry,"%Function%":xP,"%GeneratorFunction%":ls,"%Int8Array%":typeof Int8Array>"u"?X:Int8Array,"%Int16Array%":typeof Int16Array>"u"?X:Int16Array,"%Int32Array%":typeof Int32Array>"u"?X:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":us&&Ue?Ue(Ue([][Symbol.iterator]())):X,"%JSON%":typeof JSON=="object"?JSON:X,"%Map%":typeof Map>"u"?X:Map,"%MapIteratorPrototype%":typeof Map>"u"||!us||!Ue?X:Ue(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":k5,"%Object.getOwnPropertyDescriptor%":_l,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?X:Promise,"%Proxy%":typeof Proxy>"u"?X:Proxy,"%RangeError%":M5,"%ReferenceError%":D5,"%Reflect%":typeof Reflect>"u"?X:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?X:Set,"%SetIteratorPrototype%":typeof Set>"u"||!us||!Ue?X:Ue(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?X:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":us&&Ue?Ue(""[Symbol.iterator]()):X,"%Symbol%":us?Symbol:X,"%SyntaxError%":fs,"%ThrowTypeError%":$5,"%TypedArray%":H5,"%TypeError%":cs,"%Uint8Array%":typeof Uint8Array>"u"?X:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?X:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?X:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?X:Uint32Array,"%URIError%":N5,"%WeakMap%":typeof WeakMap>"u"?X:WeakMap,"%WeakRef%":typeof WeakRef>"u"?X:WeakRef,"%WeakSet%":typeof WeakSet>"u"?X:WeakSet,"%Function.prototype.call%":Sl,"%Function.prototype.apply%":TP,"%Object.defineProperty%":U5,"%Object.getPrototypeOf%":W5,"%Math.abs%":R5,"%Math.floor%":q5,"%Math.max%":F5,"%Math.min%":j5,"%Math.pow%":L5,"%Math.round%":B5,"%Math.sign%":V5,"%Reflect.getPrototypeOf%":z5};if(Ue)try{null.error}catch(e){wP=Ue(Ue(e)),co["%Error.prototype%"]=wP}var wP,G5=a(function e(t){var r;if(t==="%AsyncFunction%")r=zv("async function () {}");else if(t==="%GeneratorFunction%")r=zv("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=zv("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&Ue&&(r=Ue(i.prototype))}return co[t]=r,r},"doEval"),IP={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Al=vl(),ep=Qd(),Z5=Al.call(Sl,Array.prototype.concat),K5=Al.call(TP,Array.prototype.splice),OP=Al.call(Sl,String.prototype.replace),tp=Al.call(Sl,String.prototype.slice),Y5=Al.call(Sl,RegExp.prototype.exec),J5=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,X5=/\\(\\)?/g,Q5=a(function(t){var r=tp(t,0,1),n=tp(t,-1);if(r==="%"&&n!=="%")throw new fs("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new fs("invalid intrinsic syntax, expected opening `%`");var i=[];return OP(t,J5,function(o,s,u,l){i[i.length]=u?OP(l,X5,"$1"):s||o}),i},"stringToPath"),e8=a(function(t,r){var n=t,i;if(ep(IP,n)&&(i=IP[n],n="%"+i[0]+"%"),ep(co,n)){var o=co[n];if(o===ls&&(o=G5(n)),typeof o>"u"&&!r)throw new cs("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new fs("intrinsic "+t+" does not exist!")},"getBaseIntrinsic");EP.exports=a(function(t,r){if(typeof t!="string"||t.length===0)throw new cs("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new cs('"allowMissing" argument must be a boolean');if(Y5(/^%?[^%]*%?$/,t)===null)throw new fs("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Q5(t),i=n.length>0?n[0]:"",o=e8("%"+i+"%",r),s=o.name,u=o.value,l=!1,c=o.alias;c&&(i=c[0],K5(n,Z5([0,1],c)));for(var f=1,p=!0;f<n.length;f+=1){var h=n[f],y=tp(h,0,1),g=tp(h,-1);if((y==='"'||y==="'"||y==="`"||g==='"'||g==="'"||g==="`")&&y!==g)throw new fs("property names with quotes must have matching quotes");if((h==="constructor"||!p)&&(l=!0),i+="."+h,s="%"+i+"%",ep(co,s))u=co[s];else if(u!=null){if(!(h in u)){if(!r)throw new cs("base intrinsic for "+t+" exists, but the property is not available.");return}if(_l&&f+1>=n.length){var v=_l(u,h);p=!!v,p&&"get"in v&&!("originalValue"in v.get)?u=v.get:u=u[h]}else p=ep(u,h),u=u[h];p&&!l&&(co[s]=u)}}return u},"GetIntrinsic")});var CP=d((i3e,PP)=>{"use strict";var t8=Bv();PP.exports=a(function(){return t8()&&!!Symbol.toStringTag},"hasToStringTagShams")});var NP=d((o3e,DP)=>{"use strict";var r8=kP(),MP=r8("%Object.defineProperty%",!0),n8=CP()(),i8=Qd(),a8=Kd(),rp=n8?Symbol.toStringTag:null;DP.exports=a(function(t,r){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,i=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof n<"u"&&typeof n!="boolean"||typeof i<"u"&&typeof i!="boolean")throw new a8("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");rp&&(n||!i8(t,rp))&&(MP?MP(t,rp,{configurable:!i,enumerable:!1,value:r,writable:!1}):t[rp]=r)},"setToStringTag")});var qP=d((u3e,RP)=>{"use strict";RP.exports=function(e,t){return Object.keys(t).forEach(function(r){e[r]=e[r]||t[r]}),e}});var jP=d((l3e,FP)=>{"use strict";var Yv=$E(),o8=require("util"),Gv=require("path"),s8=require("http"),u8=require("https"),l8=require("url").parse,c8=require("fs"),f8=require("stream").Stream,Zv=ZE(),d8=fk(),p8=NP(),ya=Qd(),Kv=qP();function ee(e){if(!(this instanceof ee))return new ee(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Yv.call(this),e=e||{};for(var t in e)this[t]=e[t]}a(ee,"FormData");o8.inherits(ee,Yv);ee.LINE_BREAK=`\r `;ee.DEFAULT_CONTENT_TYPE="application/octet-stream";ee.prototype.append=function(e,t,r){r=r||{},typeof r=="string"&&(r={filename:r});var n=Yv.prototype.append.bind(this);if((typeof t=="number"||t==null)&&(t=String(t)),Array.isArray(t)){this._error(new Error("Arrays are not supported."));return}var i=this._multiPartHeader(e,t,r),o=this._multiPartFooter();n(i),n(t),n(o),this._trackLength(i,t,r)};ee.prototype._trackLength=function(e,t,r){var n=0;r.knownLength!=null?n+=Number(r.knownLength):Buffer.isBuffer(t)?n=t.length:typeof t=="string"&&(n=Buffer.byteLength(t)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(e)+ee.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&ya(t,"httpVersion"))&&!(t instanceof f8))&&(r.knownLength||this._valuesToMeasure.push(t))};ee.prototype._lengthRetriever=function(e,t){ya(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):c8.stat(e.path,function(r,n){if(r){t(r);return}var i=n.size-(e.start?e.start:0);t(null,i)}):ya(e,"httpVersion")?t(null,Number(e.headers["content-length"])):ya(e,"httpModule")?(e.on("response",function(r){e.pause(),t(null,Number(r.headers["content-length"]))}),e.resume()):t("Unknown stream")};ee.prototype._multiPartHeader=function(e,t,r){if(typeof r.header=="string")return r.header;var n=this._getContentDisposition(t,r),i=this._getContentType(t,r),o="",s={"Content-Disposition":["form-data",'name="'+e+'"'].concat(n||[]),"Content-Type":[].concat(i||[])};typeof r.header=="object"&&Kv(s,r.header);var u;for(var l in s)if(ya(s,l)){if(u=s[l],u==null)continue;Array.isArray(u)||(u=[u]),u.length&&(o+=l+": "+u.join("; ")+ee.LINE_BREAK)}return"--"+this.getBoundary()+ee.LINE_BREAK+o+ee.LINE_BREAK};ee.prototype._getContentDisposition=function(e,t){var r;if(typeof t.filepath=="string"?r=Gv.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?r=Gv.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&ya(e,"httpVersion")&&(r=Gv.basename(e.client._httpMessage.path||"")),r)return'filename="'+r+'"'};ee.prototype._getContentType=function(e,t){var r=t.contentType;return!r&&e&&e.name&&(r=Zv.lookup(e.name)),!r&&e&&e.path&&(r=Zv.lookup(e.path)),!r&&e&&e.readable&&ya(e,"httpVersion")&&(r=e.headers["content-type"]),!r&&(t.filepath||t.filename)&&(r=Zv.lookup(t.filepath||t.filename)),!r&&e&&typeof e=="object"&&(r=ee.DEFAULT_CONTENT_TYPE),r};ee.prototype._multiPartFooter=function(){return function(e){var t=ee.LINE_BREAK,r=this._streams.length===0;r&&(t+=this._lastBoundary()),e(t)}.bind(this)};ee.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+ee.LINE_BREAK};ee.prototype.getHeaders=function(e){var t,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)ya(e,t)&&(r[t.toLowerCase()]=e[t]);return r};ee.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e};ee.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};ee.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),r=0,n=this._streams.length;r<n;r++)typeof this._streams[r]!="function"&&(Buffer.isBuffer(this._streams[r])?e=Buffer.concat([e,this._streams[r]]):e=Buffer.concat([e,Buffer.from(this._streams[r])]),(typeof this._streams[r]!="string"||this._streams[r].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(ee.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])};ee.prototype._generateBoundary=function(){for(var e="--------------------------",t=0;t<24;t++)e+=Math.floor(Math.random()*10).toString(16);this._boundary=e};ee.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e};ee.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e};ee.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length&&(t+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}d8.parallel(this._valuesToMeasure,this._lengthRetriever,function(r,n){if(r){e(r);return}n.forEach(function(i){t+=i}),e(null,t)})};ee.prototype.submit=function(e,t){var r,n,i={method:"post"};return typeof e=="string"?(e=l8(e),n=Kv({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},i)):(n=Kv(e,i),n.port||(n.port=n.protocol==="https:"?443:80)),n.headers=this.getHeaders(e.headers),n.protocol==="https:"?r=u8.request(n):r=s8.request(n),this.getLength(function(o,s){if(o&&o!=="Unknown stream"){this._error(o);return}if(s&&r.setHeader("Content-Length",s),this.pipe(r),t){var u,l=a(function(c,f){return r.removeListener("error",l),r.removeListener("response",u),t.call(this,c,f)},"callback");u=l.bind(this,null),r.on("error",l),r.on("response",u)}}.bind(this)),r};ee.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))};ee.prototype.toString=function(){return"[object FormData]"};p8(ee,"FormData");FP.exports=ee});var BP=d(LP=>{"use strict";var m8=require("url").parse,h8={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},y8=String.prototype.endsWith||function(e){return e.length<=this.length&&this.indexOf(e,this.length-e.length)!==-1};function g8(e){var t=typeof e=="string"?m8(e):e||{},r=t.protocol,n=t.host,i=t.port;if(typeof n!="string"||!n||typeof r!="string"||(r=r.split(":",1)[0],n=n.replace(/:\d*$/,""),i=parseInt(i)||h8[r]||0,!b8(n,i)))return"";var o=ds("npm_config_"+r+"_proxy")||ds(r+"_proxy")||ds("npm_config_proxy")||ds("all_proxy");return o&&o.indexOf("://")===-1&&(o=r+"://"+o),o}a(g8,"getProxyForUrl");function b8(e,t){var r=(ds("npm_config_no_proxy")||ds("no_proxy")).toLowerCase();return r?r==="*"?!1:r.split(/[,\s]/).every(function(n){if(!n)return!0;var i=n.match(/^(.+):(\d+)$/),o=i?i[1]:n,s=i?parseInt(i[2]):0;return s&&s!==t?!0:/^[.*]/.test(o)?(o.charAt(0)==="*"&&(o=o.slice(1)),!y8.call(e,o)):e!==o}):!0}a(b8,"shouldProxy");function ds(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}a(ds,"getEnv");LP.getProxyForUrl=g8});var UP=d((p3e,VP)=>{var ps=1e3,ms=ps*60,hs=ms*60,fo=hs*24,v8=fo*7,_8=fo*365.25;VP.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return S8(e);if(r==="number"&&isFinite(e))return t.long?w8(e):A8(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function S8(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*_8;case"weeks":case"week":case"w":return r*v8;case"days":case"day":case"d":return r*fo;case"hours":case"hour":case"hrs":case"hr":case"h":return r*hs;case"minutes":case"minute":case"mins":case"min":case"m":return r*ms;case"seconds":case"second":case"secs":case"sec":case"s":return r*ps;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}a(S8,"parse");function A8(e){var t=Math.abs(e);return t>=fo?Math.round(e/fo)+"d":t>=hs?Math.round(e/hs)+"h":t>=ms?Math.round(e/ms)+"m":t>=ps?Math.round(e/ps)+"s":e+"ms"}a(A8,"fmtShort");function w8(e){var t=Math.abs(e);return t>=fo?np(e,t,fo,"day"):t>=hs?np(e,t,hs,"hour"):t>=ms?np(e,t,ms,"minute"):t>=ps?np(e,t,ps,"second"):e+" ms"}a(w8,"fmtLong");function np(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}a(np,"plural")});var Jv=d((h3e,$P)=>{function I8(e){r.debug=r,r.default=r,r.coerce=l,r.disable=s,r.enable=i,r.enabled=u,r.humanize=UP(),r.destroy=c,Object.keys(e).forEach(f=>{r[f]=e[f]}),r.names=[],r.skips=[],r.formatters={};function t(f){let p=0;for(let h=0;h<f.length;h++)p=(p<<5)-p+f.charCodeAt(h),p|=0;return r.colors[Math.abs(p)%r.colors.length]}a(t,"selectColor"),r.selectColor=t;function r(f){let p,h=null,y,g;function v(...b){if(!v.enabled)return;let S=v,O=Number(new Date),M=O-(p||O);S.diff=M,S.prev=p,S.curr=O,p=O,b[0]=r.coerce(b[0]),typeof b[0]!="string"&&b.unshift("%O");let F=0;b[0]=b[0].replace(/%([a-zA-Z%])/g,(J,K)=>{if(J==="%%")return"%";F++;let ie=r.formatters[K];if(typeof ie=="function"){let ae=b[F];J=ie.call(S,ae),b.splice(F,1),F--}return J}),r.formatArgs.call(S,b),(S.log||r.log).apply(S,b)}return a(v,"debug"),v.namespace=f,v.useColors=r.useColors(),v.color=r.selectColor(f),v.extend=n,v.destroy=r.destroy,Object.defineProperty(v,"enabled",{enumerable:!0,configurable:!1,get:a(()=>h!==null?h:(y!==r.namespaces&&(y=r.namespaces,g=r.enabled(f)),g),"get"),set:a(b=>{h=b},"set")}),typeof r.init=="function"&&r.init(v),v}a(r,"createDebug");function n(f,p){let h=r(this.namespace+(typeof p>"u"?":":p)+f);return h.log=this.log,h}a(n,"extend");function i(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let p=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let h of p)h[0]==="-"?r.skips.push(h.slice(1)):r.names.push(h)}a(i,"enable");function o(f,p){let h=0,y=0,g=-1,v=0;for(;h<f.length;)if(y<p.length&&(p[y]===f[h]||p[y]==="*"))p[y]==="*"?(g=y,v=h,y++):(h++,y++);else if(g!==-1)y=g+1,v++,h=v;else return!1;for(;y<p.length&&p[y]==="*";)y++;return y===p.length}a(o,"matchesTemplate");function s(){let f=[...r.names,...r.skips.map(p=>"-"+p)].join(",");return r.enable(""),f}a(s,"disable");function u(f){for(let p of r.skips)if(o(f,p))return!1;for(let p of r.names)if(o(f,p))return!0;return!1}a(u,"enabled");function l(f){return f instanceof Error?f.stack||f.message:f}a(l,"coerce");function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return a(c,"destroy"),r.enable(r.load()),r}a(I8,"setup");$P.exports=I8});var WP=d((ht,ip)=>{ht.formatArgs=x8;ht.save=T8;ht.load=E8;ht.useColors=O8;ht.storage=k8();ht.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();ht.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function O8(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}a(O8,"useColors");function x8(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+ip.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),e.splice(n,0,t)}a(x8,"formatArgs");ht.log=console.debug||console.log||(()=>{});function T8(e){try{e?ht.storage.setItem("debug",e):ht.storage.removeItem("debug")}catch{}}a(T8,"save");function E8(){let e;try{e=ht.storage.getItem("debug")||ht.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}a(E8,"load");function k8(){try{return localStorage}catch{}}a(k8,"localstorage");ip.exports=Jv()(ht);var{formatters:P8}=ip.exports;P8.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var HP=d((b3e,zP)=>{"use strict";zP.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}});var KP=d((v3e,ZP)=>{"use strict";var C8=require("os"),GP=require("tty"),zt=HP(),{env:$e}=process,ap;zt("no-color")||zt("no-colors")||zt("color=false")||zt("color=never")?ap=0:(zt("color")||zt("colors")||zt("color=true")||zt("color=always"))&&(ap=1);function M8(){if("FORCE_COLOR"in $e)return $e.FORCE_COLOR==="true"?1:$e.FORCE_COLOR==="false"?0:$e.FORCE_COLOR.length===0?1:Math.min(Number.parseInt($e.FORCE_COLOR,10),3)}a(M8,"envForceColor");function D8(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}a(D8,"translateLevel");function N8(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=M8();n!==void 0&&(ap=n);let i=r?ap:n;if(i===0)return 0;if(r){if(zt("color=16m")||zt("color=full")||zt("color=truecolor"))return 3;if(zt("color=256"))return 2}if(e&&!t&&i===void 0)return 0;let o=i||0;if($e.TERM==="dumb")return o;if(process.platform==="win32"){let s=C8.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in $e)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(s=>s in $e)||$e.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in $e)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test($e.TEAMCITY_VERSION)?1:0;if($e.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in $e){let s=Number.parseInt(($e.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch($e.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test($e.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test($e.TERM)||"COLORTERM"in $e?1:o}a(N8,"supportsColor");function Xv(e,t={}){let r=N8(e,{streamIsTTY:e&&e.isTTY,...t});return D8(r)}a(Xv,"getSupportLevel");ZP.exports={supportsColor:Xv,stdout:Xv({isTTY:GP.isatty(1)}),stderr:Xv({isTTY:GP.isatty(2)})}});var JP=d((We,sp)=>{var R8=require("tty"),op=require("util");We.init=U8;We.log=L8;We.formatArgs=F8;We.save=B8;We.load=V8;We.useColors=q8;We.destroy=op.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");We.colors=[6,2,3,4,5,1];try{let e=KP();e&&(e.stderr||e).level>=2&&(We.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}We.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(i,o)=>o.toUpperCase()),n=process.env[t];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),e[r]=n,e},{});function q8(){return"colors"in We.inspectOpts?!!We.inspectOpts.colors:R8.isatty(process.stderr.fd)}a(q8,"useColors");function F8(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),o=` ${i};1m${t} \x1B[0m`;e[0]=o+e[0].split(` `).join(` `+o),e.push(i+"m+"+sp.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=j8()+t+" "+e[0]}a(F8,"formatArgs");function j8(){return We.inspectOpts.hideDate?"":new Date().toISOString()+" "}a(j8,"getDate");function L8(...e){return process.stderr.write(op.formatWithOptions(We.inspectOpts,...e)+` `)}a(L8,"log");function B8(e){e?process.env.DEBUG=e:delete process.env.DEBUG}a(B8,"save");function V8(){return process.env.DEBUG}a(V8,"load");function U8(e){e.inspectOpts={};let t=Object.keys(We.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=We.inspectOpts[t[r]]}a(U8,"init");sp.exports=Jv()(We);var{formatters:YP}=sp.exports;YP.o=function(e){return this.inspectOpts.colors=this.useColors,op.inspect(e,this.inspectOpts).split(` `).map(t=>t.trim()).join(" ")};YP.O=function(e){return this.inspectOpts.colors=this.useColors,op.inspect(e,this.inspectOpts)}});var XP=d((A3e,Qv)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Qv.exports=WP():Qv.exports=JP()});var eC=d((w3e,QP)=>{var wl;QP.exports=function(){if(!wl){try{wl=XP()("follow-redirects")}catch{}typeof wl!="function"&&(wl=a(function(){},"debug"))}wl.apply(null,arguments)}});var aC=d((O3e,f_)=>{var Ol=require("url"),Il=Ol.URL,$8=require("http"),W8=require("https"),i_=require("stream").Writable,a_=require("assert"),tC=eC();a(function(){var t=typeof process<"u",r=typeof window<"u"&&typeof document<"u",n=mo(Error.captureStackTrace);!t&&(r||!n)&&console.warn("The follow-redirects package should be excluded from browser builds.")},"detectUnsupportedEnvironment")();var o_=!1;try{a_(new Il(""))}catch(e){o_=e.code==="ERR_INVALID_URL"}var z8=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],s_=["abort","aborted","connect","error","socket","timeout"],u_=Object.create(null);s_.forEach(function(e){u_[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var t_=xl("ERR_INVALID_URL","Invalid URL",TypeError),r_=xl("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),H8=xl("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",r_),G8=xl("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Z8=xl("ERR_STREAM_WRITE_AFTER_END","write after end"),K8=i_.prototype.destroy||nC;function yt(e,t){i_.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(n){try{r._processResponse(n)}catch(i){r.emit("error",i instanceof r_?i:new r_({cause:i}))}},this._performRequest()}a(yt,"RedirectableRequest");yt.prototype=Object.create(i_.prototype);yt.prototype.abort=function(){c_(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};yt.prototype.destroy=function(e){return c_(this._currentRequest,e),K8.call(this,e),this};yt.prototype.write=function(e,t,r){if(this._ending)throw new Z8;if(!po(e)&&!X8(e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(mo(t)&&(r=t,t=null),e.length===0){r&&r();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new G8),this.abort())};yt.prototype.end=function(e,t,r){if(mo(e)?(r=e,e=t=null):mo(t)&&(r=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,i=this._currentRequest;this.write(e,t,function(){n._ended=!0,i.end(null,null,r)}),this._ending=!0}};yt.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)};yt.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)};yt.prototype.setTimeout=function(e,t){var r=this;function n(s){s.setTimeout(e),s.removeListener("timeout",s.destroy),s.addListener("timeout",s.destroy)}a(n,"destroyOnTimeout");function i(s){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),o()},e),n(s)}a(i,"startTimer");function o(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",o),r.removeListener("error",o),r.removeListener("response",o),r.removeListener("close",o),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",i)}return a(o,"clearTimer"),t&&this.on("timeout",t),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",o),this.on("error",o),this.on("response",o),this.on("close",o),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){yt.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(yt.prototype,e,{get:a(function(){return this._currentRequest[e]},"get")})});yt.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}};yt.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);n._redirectable=this;for(var i of s_)n.on(i,u_[i]);if(this._currentUrl=/^\//.test(this._options.path)?Ol.format(this._options):this._options.path,this._isRedirect){var o=0,s=this,u=this._requestBodyBuffers;a(function l(c){if(n===s._currentRequest)if(c)s.emit("error",c);else if(o<u.length){var f=u[o++];n.finished||n.write(f.data,f.encoding,l)}else s._ended&&n.end()},"writeNext")()}};yt.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(!r||this._options.followRedirects===!1||t<300||t>=400){e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[];return}if(c_(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new H8;var n,i=this._options.beforeRedirect;i&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var o=this._options.method;((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],e_(/^content-/i,this._options.headers));var s=e_(/^host$/i,this._options.headers),u=l_(this._currentUrl),l=s||u.host,c=/^\w+:/.test(r)?this._currentUrl:Ol.format(Object.assign(u,{host:l})),f=Y8(r,c);if(tC("redirecting to",f.href),this._isRedirect=!0,n_(f,this._options),(f.protocol!==u.protocol&&f.protocol!=="https:"||f.host!==l&&!J8(f.host,l))&&e_(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),mo(i)){var p={headers:e.headers,statusCode:t},h={url:c,method:o,headers:n};i(this._options,p,h),this._sanitizeOptions(this._options)}this._performRequest()};function rC(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(n){var i=n+":",o=r[i]=e[n],s=t[n]=Object.create(o);function u(c,f,p){return Q8(c)?c=n_(c):po(c)?c=n_(l_(c)):(p=f,f=iC(c),c={protocol:i}),mo(f)&&(p=f,f=null),f=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},c,f),f.nativeProtocols=r,!po(f.host)&&!po(f.hostname)&&(f.hostname="::1"),a_.equal(f.protocol,i,"protocol mismatch"),tC("options",f),new yt(f,p)}a(u,"request");function l(c,f,p){var h=s.request(c,f,p);return h.end(),h}a(l,"get"),Object.defineProperties(s,{request:{value:u,configurable:!0,enumerable:!0,writable:!0},get:{value:l,configurable:!0,enumerable:!0,writable:!0}})}),t}a(rC,"wrap");function nC(){}a(nC,"noop");function l_(e){var t;if(o_)t=new Il(e);else if(t=iC(Ol.parse(e)),!po(t.protocol))throw new t_({input:e});return t}a(l_,"parseUrl");function Y8(e,t){return o_?new Il(e,t):l_(Ol.resolve(t,e))}a(Y8,"resolveUrl");function iC(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new t_({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new t_({input:e.href||e});return e}a(iC,"validateUrl");function n_(e,t){var r=t||{};for(var n of z8)r[n]=e[n];return r.hostname.startsWith("[")&&(r.hostname=r.hostname.slice(1,-1)),r.port!==""&&(r.port=Number(r.port)),r.path=r.search?r.pathname+r.search:r.pathname,r}a(n_,"spreadUrlObject");function e_(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return r===null||typeof r>"u"?void 0:String(r).trim()}a(e_,"removeMatchingHeaders");function xl(e,t,r){function n(i){mo(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,i||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return a(n,"CustomError"),n.prototype=new(r||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),n}a(xl,"createErrorType");function c_(e,t){for(var r of s_)e.removeListener(r,u_[r]);e.on("error",nC),e.destroy(t)}a(c_,"destroyRequest");function J8(e,t){a_(po(e)&&po(t));var r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}a(J8,"isSubdomain");function po(e){return typeof e=="string"||e instanceof String}a(po,"isString");function mo(e){return typeof e=="function"}a(mo,"isFunction");function X8(e){return typeof e=="object"&&"length"in e}a(X8,"isBuffer");function Q8(e){return Il&&e instanceof Il}a(Q8,"isURL");f_.exports=rC({http:$8,https:W8});f_.exports.wrap=rC});var QC=d((T3e,XC)=>{"use strict";var e7=jP(),t7=require("crypto"),r7=require("url"),n7=BP(),i7=require("http"),a7=require("https"),o7=require("util"),s7=aC(),u7=require("zlib"),OC=require("stream"),l7=require("events");function $n(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}a($n,"_interopDefaultLegacy");var xC=$n(e7),c7=$n(t7),f7=$n(r7),d7=$n(n7),p7=$n(i7),m7=$n(a7),TC=$n(o7),h7=$n(s7),ba=$n(u7),ga=$n(OC);function EC(e,t){return a(function(){return e.apply(t,arguments)},"wrap")}a(EC,"bind");var{toString:y7}=Object.prototype,{getPrototype