@bigbinary/neeto-playwright-reporter 1.8.4 → 1.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +1 -1
- package/index.cjs.js.map +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
6
6
|
* MIT Licensed
|
|
7
7
|
*/
|
|
8
|
-
function(e){var n,t,i,o=Jt.exports,r=a.extname,s=/^\s*([^;\s]*)(?:;|\s|$)/,c=/^text\//i;function u(e){if(!e||"string"!=typeof e)return!1;var n=s.exec(e),t=n&&o[n[1].toLowerCase()];return t&&t.charset?t.charset:!(!n||!c.test(n[1]))&&"UTF-8"}e.charset=u,e.charsets={lookup:u},e.contentType=function(n){if(!n||"string"!=typeof n)return!1;var t=-1===n.indexOf("/")?e.lookup(n):n;if(!t)return!1;if(-1===t.indexOf("charset")){var a=e.charset(t);a&&(t+="; charset="+a.toLowerCase())}return t},e.extension=function(n){if(!n||"string"!=typeof n)return!1;var t=s.exec(n),a=t&&e.extensions[t[1].toLowerCase()];if(!a||!a.length)return!1;return a[0]},e.extensions=Object.create(null),e.lookup=function(n){if(!n||"string"!=typeof n)return!1;var t=r("x."+n).toLowerCase().substr(1);if(!t)return!1;return e.types[t]||!1},e.types=Object.create(null),n=e.extensions,t=e.types,i=["nginx","apache",void 0,"iana"],Object.keys(o).forEach((function(e){var a=o[e],r=a.extensions;if(r&&r.length){n[e]=r;for(var s=0;s<r.length;s++){var c=r[s];if(t[c]){var u=i.indexOf(o[t[c]].source),p=i.indexOf(a.source);if("application/octet-stream"!==t[c]&&(u>p||u===p&&"application/"===t[c].substr(0,12)))continue}t[c]=e}}}))}(Vt);var Yt=function(e){var n="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;n?n(e):setTimeout(e,0)},Xt=function(e){var n=!1;return Yt((function(){n=!0})),function(t,a){n?e(t,a):Yt((function(){e(t,a)}))}};var Zt=function(e){Object.keys(e.jobs).forEach(Qt.bind(e)),e.jobs={}};function Qt(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}var ea=Xt,na=Zt,ta=function(e,n,t,a){var i=t.keyedList?t.keyedList[t.index]:t.index;t.jobs[i]=function(e,n,t,a){var i;i=2==e.length?e(t,ea(a)):e(t,n,ea(a));return i}(n,i,e[i],(function(e,n){i in t.jobs&&(delete t.jobs[i],e?na(t):t.results[i]=n,a(e,t.results))}))};var aa=function(e,n){var t=!Array.isArray(e),a={index:0,keyedList:t||n?Object.keys(e):null,jobs:{},results:t?{}:[],size:t?Object.keys(e).length:e.length};n&&a.keyedList.sort(t?n:function(t,a){return n(e[t],e[a])});return a};var ia=Zt,oa=Xt,ra=function(e){if(!Object.keys(this.jobs).length)return;this.index=this.size,ia(this),oa(e)(null,this.results)};var sa=ta,ca=aa,ua=ra,pa=function(e,n,t){var a=ca(e);for(;a.index<(a.keyedList||e).length;)sa(e,n,a,(function(e,n){e?t(e,n):0!==Object.keys(a.jobs).length||t(null,a.results)})),a.index++;return ua.bind(a,t)};var la={exports:{}},da=ta,ma=aa,fa=ra;function ha(e,n){return e<n?-1:e>n?1:0}la.exports=function(e,n,t,a){var i=ma(e,t);return da(e,n,i,(function t(o,r){o?a(o,r):(i.index++,i.index<(i.keyedList||e).length?da(e,n,i,t):a(null,i.results))})),fa.bind(i,a)},la.exports.ascending=ha,la.exports.descending=function(e,n){return-1*ha(e,n)};var va=la.exports;var xa,ba,ga={parallel:pa,serial:function(e,n,t){return va(e,n,null,t)},serialOrdered:la.exports},ya=Object,Da=Error,wa=EvalError,_a=RangeError,Ea=ReferenceError,Ca=SyntaxError;function Fa(){return ba?xa:(ba=1,xa=TypeError)}var ja=URIError,ka=Math.abs,Aa=Math.floor,Ta=Math.max,Sa=Math.min,Oa=Math.pow,Ra=Math.round,Ba=Number.isNaN||function(e){return e!=e},Pa=Object.getOwnPropertyDescriptor;if(Pa)try{Pa([],"length")}catch(e){Pa=null}var La=Pa,Ia=Object.defineProperty||!1;if(Ia)try{Ia({},"a",{value:1})}catch(e){Ia=!1}var Na,Ua,za,qa,Ma,Ha,$a,Ga,Wa,Ka,Va,Ja,Ya,Xa,Za,Qa,ei,ni,ti,ai,ii,oi,ri,si,ci,ui,pi,li,di,mi=Ia;function fi(){return Ua?Na:(Ua=1,Na=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},n=Symbol("test"),t=Object(n);if("string"==typeof n)return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;for(var a in e[n]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==n)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,n);if(42!==o.value||!0!==o.enumerable)return!1}return!0})}function hi(){return Ha?Ma:(Ha=1,Ma="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function vi(){return Ga?$a:(Ga=1,$a=ya.getPrototypeOf||null)}function xi(){if(Ka)return Wa;Ka=1;var e=Object.prototype.toString,n=Math.max,t=function(e,n){for(var t=[],a=0;a<e.length;a+=1)t[a]=e[a];for(var i=0;i<n.length;i+=1)t[i+e.length]=n[i];return t};return Wa=function(a){var i=this;if("function"!=typeof i||"[object Function]"!==e.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,r=function(e,n){for(var t=[],a=n,i=0;a<e.length;a+=1,i+=1)t[i]=e[a];return t}(arguments,1),s=n(0,i.length-r.length),c=[],u=0;u<s;u++)c[u]="$"+u;if(o=Function("binder","return function ("+function(e,n){for(var t="",a=0;a<e.length;a+=1)t+=e[a],a+1<e.length&&(t+=n);return t}(c,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var e=i.apply(this,t(r,arguments));return Object(e)===e?e:this}return i.apply(a,t(r,arguments))})),i.prototype){var p=function(){};p.prototype=i.prototype,o.prototype=new p,p.prototype=null}return o},Wa}function bi(){if(Ja)return Va;Ja=1;var e=xi();return Va=Function.prototype.bind||e}function gi(){return Xa?Ya:(Xa=1,Ya=Function.prototype.call)}function yi(){return Qa?Za:(Qa=1,Za=Function.prototype.apply)}function Di(){if(ai)return ti;ai=1;var e=bi(),n=yi(),t=gi(),a=ni?ei:(ni=1,ei="undefined"!=typeof Reflect&&Reflect&&Reflect.apply);return ti=a||e.call(t,n)}function wi(){if(si)return ri;si=1;var e,n=function(){if(oi)return ii;oi=1;var e=bi(),n=Fa(),t=gi(),a=Di();return ii=function(i){if(i.length<1||"function"!=typeof i[0])throw new n("a function is required");return a(e,t,i)}}(),t=La;try{e=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!e&&t&&t(Object.prototype,"__proto__"),i=Object,o=i.getPrototypeOf;return ri=a&&"function"==typeof a.get?n([a.get]):"function"==typeof o&&function(e){return o(null==e?e:i(e))}}function _i(){if(li)return pi;li=1;var e=Function.prototype.call,n=Object.prototype.hasOwnProperty,t=bi();return pi=t.call(e,n)}var Ei=ya,Ci=Da,Fi=wa,ji=_a,ki=Ea,Ai=Ca,Ti=Fa(),Si=ja,Oi=ka,Ri=Aa,Bi=Ta,Pi=Sa,Li=Oa,Ii=Ra,Ni=function(e){return Ba(e)||0===e?e:e<0?-1:1},Ui=Function,zi=function(e){try{return Ui('"use strict"; return ('+e+").constructor;")()}catch(e){}},qi=La,Mi=mi,Hi=function(){throw new Ti},$i=qi?function(){try{return Hi}catch(e){try{return qi(arguments,"callee").get}catch(e){return Hi}}}():Hi,Gi=function(){if(qa)return za;qa=1;var e="undefined"!=typeof Symbol&&Symbol,n=fi();return za=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&n())))}}()(),Wi=function(){if(ui)return ci;ui=1;var e=hi(),n=vi(),t=wi();return ci=e?function(n){return e(n)}:n?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return n(e)}:t?function(e){return t(e)}:null}(),Ki=vi(),Vi=hi(),Ji=yi(),Yi=gi(),Xi={},Zi="undefined"!=typeof Uint8Array&&Wi?Wi(Uint8Array):di,Qi={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?di:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?di:ArrayBuffer,"%ArrayIteratorPrototype%":Gi&&Wi?Wi([][Symbol.iterator]()):di,"%AsyncFromSyncIteratorPrototype%":di,"%AsyncFunction%":Xi,"%AsyncGenerator%":Xi,"%AsyncGeneratorFunction%":Xi,"%AsyncIteratorPrototype%":Xi,"%Atomics%":"undefined"==typeof Atomics?di:Atomics,"%BigInt%":"undefined"==typeof BigInt?di:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?di:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?di:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?di:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Ci,"%eval%":eval,"%EvalError%":Fi,"%Float16Array%":"undefined"==typeof Float16Array?di:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?di:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?di:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?di:FinalizationRegistry,"%Function%":Ui,"%GeneratorFunction%":Xi,"%Int8Array%":"undefined"==typeof Int8Array?di:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?di:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?di:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Gi&&Wi?Wi(Wi([][Symbol.iterator]())):di,"%JSON%":"object"==typeof JSON?JSON:di,"%Map%":"undefined"==typeof Map?di:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Gi&&Wi?Wi((new Map)[Symbol.iterator]()):di,"%Math%":Math,"%Number%":Number,"%Object%":Ei,"%Object.getOwnPropertyDescriptor%":qi,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?di:Promise,"%Proxy%":"undefined"==typeof Proxy?di:Proxy,"%RangeError%":ji,"%ReferenceError%":ki,"%Reflect%":"undefined"==typeof Reflect?di:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?di:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Gi&&Wi?Wi((new Set)[Symbol.iterator]()):di,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?di:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Gi&&Wi?Wi(""[Symbol.iterator]()):di,"%Symbol%":Gi?Symbol:di,"%SyntaxError%":Ai,"%ThrowTypeError%":$i,"%TypedArray%":Zi,"%TypeError%":Ti,"%Uint8Array%":"undefined"==typeof Uint8Array?di:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?di:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?di:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?di:Uint32Array,"%URIError%":Si,"%WeakMap%":"undefined"==typeof WeakMap?di:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?di:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?di:WeakSet,"%Function.prototype.call%":Yi,"%Function.prototype.apply%":Ji,"%Object.defineProperty%":Mi,"%Object.getPrototypeOf%":Ki,"%Math.abs%":Oi,"%Math.floor%":Ri,"%Math.max%":Bi,"%Math.min%":Pi,"%Math.pow%":Li,"%Math.round%":Ii,"%Math.sign%":Ni,"%Reflect.getPrototypeOf%":Vi};if(Wi)try{null.error}catch(e){var eo=Wi(Wi(e));Qi["%Error.prototype%"]=eo}var no,to,ao=function e(n){var t;if("%AsyncFunction%"===n)t=zi("async function () {}");else if("%GeneratorFunction%"===n)t=zi("function* () {}");else if("%AsyncGeneratorFunction%"===n)t=zi("async function* () {}");else if("%AsyncGenerator%"===n){var a=e("%AsyncGeneratorFunction%");a&&(t=a.prototype)}else if("%AsyncIteratorPrototype%"===n){var i=e("%AsyncGenerator%");i&&Wi&&(t=Wi(i.prototype))}return Qi[n]=t,t},io={__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"]},oo=bi(),ro=_i(),so=oo.call(Yi,Array.prototype.concat),co=oo.call(Ji,Array.prototype.splice),uo=oo.call(Yi,String.prototype.replace),po=oo.call(Yi,String.prototype.slice),lo=oo.call(Yi,RegExp.prototype.exec),mo=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,fo=/\\(\\)?/g,ho=function(e,n){var t,a=e;if(ro(io,a)&&(a="%"+(t=io[a])[0]+"%"),ro(Qi,a)){var i=Qi[a];if(i===Xi&&(i=ao(a)),void 0===i&&!n)throw new Ti("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:t,name:a,value:i}}throw new Ai("intrinsic "+e+" does not exist!")};var vo=function(e,n){if("string"!=typeof e||0===e.length)throw new Ti("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof n)throw new Ti('"allowMissing" argument must be a boolean');if(null===lo(/^%?[^%]*%?$/,e))throw new Ai("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var t=function(e){var n=po(e,0,1),t=po(e,-1);if("%"===n&&"%"!==t)throw new Ai("invalid intrinsic syntax, expected closing `%`");if("%"===t&&"%"!==n)throw new Ai("invalid intrinsic syntax, expected opening `%`");var a=[];return uo(e,mo,(function(e,n,t,i){a[a.length]=t?uo(i,fo,"$1"):n||e})),a}(e),a=t.length>0?t[0]:"",i=ho("%"+a+"%",n),o=i.name,r=i.value,s=!1,c=i.alias;c&&(a=c[0],co(t,so([0,1],c)));for(var u=1,p=!0;u<t.length;u+=1){var l=t[u],d=po(l,0,1),m=po(l,-1);if(('"'===d||"'"===d||"`"===d||'"'===m||"'"===m||"`"===m)&&d!==m)throw new Ai("property names with quotes must have matching quotes");if("constructor"!==l&&p||(s=!0),ro(Qi,o="%"+(a+="."+l)+"%"))r=Qi[o];else if(null!=r){if(!(l in r)){if(!n)throw new Ti("base intrinsic for "+e+" exists, but the property is not available.");return}if(qi&&u+1>=t.length){var f=qi(r,l);r=(p=!!f)&&"get"in f&&!("originalValue"in f.get)?f.get:r[l]}else p=ro(r,l),r=r[l];p&&!s&&(Qi[o]=r)}}return r}("%Object.defineProperty%",!0),xo=function(){if(to)return no;to=1;var e=fi();return no=function(){return e()&&!!Symbol.toStringTag}}()(),bo=_i(),go=Fa(),yo=xo?Symbol.toStringTag:null,Do=Wt,wo=i,_o=a,Eo=r,Co=s,Fo=o.parse,jo=t,ko=u.Stream,Ao=Vt,To=ga,So=function(e,n){var t=arguments.length>2&&!!arguments[2]&&arguments[2].force,a=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(void 0!==t&&"boolean"!=typeof t||void 0!==a&&"boolean"!=typeof a)throw new go("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");!yo||!t&&bo(e,yo)||(vo?vo(e,yo,{configurable:!a,enumerable:!1,value:n,writable:!1}):e[yo]=n)},Oo=function(e,n){return Object.keys(n).forEach((function(t){e[t]=e[t]||n[t]})),e},Ro=Bo;function Bo(e){if(!(this instanceof Bo))return new Bo(e);for(var n in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Do.call(this),e=e||{})this[n]=e[n]}function Po(e){return Lt.isPlainObject(e)||Lt.isArray(e)}function Lo(e){return Lt.endsWith(e,"[]")?e.slice(0,-2):e}function Io(e,n,t){return e?e.concat(n).map((function(e,n){return e=Lo(e),!t&&n?"["+e+"]":e})).join(t?".":""):n}wo.inherits(Bo,Do),Bo.LINE_BREAK="\r\n",Bo.DEFAULT_CONTENT_TYPE="application/octet-stream",Bo.prototype.append=function(e,n,t){"string"==typeof(t=t||{})&&(t={filename:t});var a=Do.prototype.append.bind(this);if("number"==typeof n&&(n=""+n),Array.isArray(n))this._error(new Error("Arrays are not supported."));else{var i=this._multiPartHeader(e,n,t),o=this._multiPartFooter();a(i),a(n),a(o),this._trackLength(i,n,t)}},Bo.prototype._trackLength=function(e,n,t){var a=0;null!=t.knownLength?a+=+t.knownLength:Buffer.isBuffer(n)?a=n.length:"string"==typeof n&&(a=Buffer.byteLength(n)),this._valueLength+=a,this._overheadLength+=Buffer.byteLength(e)+Bo.LINE_BREAK.length,n&&(n.path||n.readable&&Object.prototype.hasOwnProperty.call(n,"httpVersion")||n instanceof ko)&&(t.knownLength||this._valuesToMeasure.push(n))},Bo.prototype._lengthRetriever=function(e,n){Object.prototype.hasOwnProperty.call(e,"fd")?null!=e.end&&e.end!=1/0&&null!=e.start?n(null,e.end+1-(e.start?e.start:0)):jo.stat(e.path,(function(t,a){var i;t?n(t):(i=a.size-(e.start?e.start:0),n(null,i))})):Object.prototype.hasOwnProperty.call(e,"httpVersion")?n(null,+e.headers["content-length"]):Object.prototype.hasOwnProperty.call(e,"httpModule")?(e.on("response",(function(t){e.pause(),n(null,+t.headers["content-length"])})),e.resume()):n("Unknown stream")},Bo.prototype._multiPartHeader=function(e,n,t){if("string"==typeof t.header)return t.header;var a,i=this._getContentDisposition(n,t),o=this._getContentType(n,t),r="",s={"Content-Disposition":["form-data",'name="'+e+'"'].concat(i||[]),"Content-Type":[].concat(o||[])};for(var c in"object"==typeof t.header&&Oo(s,t.header),s)if(Object.prototype.hasOwnProperty.call(s,c)){if(null==(a=s[c]))continue;Array.isArray(a)||(a=[a]),a.length&&(r+=c+": "+a.join("; ")+Bo.LINE_BREAK)}return"--"+this.getBoundary()+Bo.LINE_BREAK+r+Bo.LINE_BREAK},Bo.prototype._getContentDisposition=function(e,n){var t,a;return"string"==typeof n.filepath?t=_o.normalize(n.filepath).replace(/\\/g,"/"):n.filename||e.name||e.path?t=_o.basename(n.filename||e.name||e.path):e.readable&&Object.prototype.hasOwnProperty.call(e,"httpVersion")&&(t=_o.basename(e.client._httpMessage.path||"")),t&&(a='filename="'+t+'"'),a},Bo.prototype._getContentType=function(e,n){var t=n.contentType;return!t&&e.name&&(t=Ao.lookup(e.name)),!t&&e.path&&(t=Ao.lookup(e.path)),!t&&e.readable&&Object.prototype.hasOwnProperty.call(e,"httpVersion")&&(t=e.headers["content-type"]),t||!n.filepath&&!n.filename||(t=Ao.lookup(n.filepath||n.filename)),t||"object"!=typeof e||(t=Bo.DEFAULT_CONTENT_TYPE),t},Bo.prototype._multiPartFooter=function(){return function(e){var n=Bo.LINE_BREAK;0===this._streams.length&&(n+=this._lastBoundary()),e(n)}.bind(this)},Bo.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+Bo.LINE_BREAK},Bo.prototype.getHeaders=function(e){var n,t={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n.toLowerCase()]=e[n]);return t},Bo.prototype.setBoundary=function(e){this._boundary=e},Bo.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},Bo.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),n=this.getBoundary(),t=0,a=this._streams.length;t<a;t++)"function"!=typeof this._streams[t]&&(e=Buffer.isBuffer(this._streams[t])?Buffer.concat([e,this._streams[t]]):Buffer.concat([e,Buffer.from(this._streams[t])]),"string"==typeof this._streams[t]&&this._streams[t].substring(2,n.length+2)===n||(e=Buffer.concat([e,Buffer.from(Bo.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},Bo.prototype._generateBoundary=function(){for(var e="--------------------------",n=0;n<24;n++)e+=Math.floor(10*Math.random()).toString(16);this._boundary=e},Bo.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},Bo.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},Bo.prototype.getLength=function(e){var n=this._overheadLength+this._valueLength;this._streams.length&&(n+=this._lastBoundary().length),this._valuesToMeasure.length?To.parallel(this._valuesToMeasure,this._lengthRetriever,(function(t,a){t?e(t):(a.forEach((function(e){n+=e})),e(null,n))})):process.nextTick(e.bind(this,null,n))},Bo.prototype.submit=function(e,n){var t,a,i={method:"post"};return"string"==typeof e?(e=Fo(e),a=Oo({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},i)):(a=Oo(e,i)).port||(a.port="https:"==a.protocol?443:80),a.headers=this.getHeaders(e.headers),t="https:"==a.protocol?Co.request(a):Eo.request(a),this.getLength(function(e,a){if(e&&"Unknown stream"!==e)this._error(e);else if(a&&t.setHeader("Content-Length",a),this.pipe(t),n){var i,o=function(e,a){return t.removeListener("error",o),t.removeListener("response",i),n.call(this,e,a)};i=o.bind(this,null),t.on("error",o),t.on("response",i)}}.bind(this)),t},Bo.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},Bo.prototype.toString=function(){return"[object FormData]"},So(Bo,"FormData");const No=Lt.toFlatObject(Lt,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Uo(e,n,t){if(!Lt.isObject(e))throw new TypeError("target must be an object");n=n||new(Ro||FormData);const a=(t=Lt.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,n){return!Lt.isUndefined(n[e])}))).metaTokens,i=t.visitor||u,o=t.dots,r=t.indexes,s=(t.Blob||"undefined"!=typeof Blob&&Blob)&&Lt.isSpecCompliantForm(n);if(!Lt.isFunction(i))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Lt.isDate(e))return e.toISOString();if(!s&&Lt.isBlob(e))throw new It("Blob is not supported. Use a Buffer instead.");return Lt.isArrayBuffer(e)||Lt.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,t,i){let s=e;if(e&&!i&&"object"==typeof e)if(Lt.endsWith(t,"{}"))t=a?t:t.slice(0,-2),e=JSON.stringify(e);else if(Lt.isArray(e)&&function(e){return Lt.isArray(e)&&!e.some(Po)}(e)||(Lt.isFileList(e)||Lt.endsWith(t,"[]"))&&(s=Lt.toArray(e)))return t=Lo(t),s.forEach((function(e,a){!Lt.isUndefined(e)&&null!==e&&n.append(!0===r?Io([t],a,o):null===r?t:t+"[]",c(e))})),!1;return!!Po(e)||(n.append(Io(i,t,o),c(e)),!1)}const p=[],l=Object.assign(No,{defaultVisitor:u,convertValue:c,isVisitable:Po});if(!Lt.isObject(e))throw new TypeError("data must be an object");return function e(t,a){if(!Lt.isUndefined(t)){if(-1!==p.indexOf(t))throw Error("Circular reference detected in "+a.join("."));p.push(t),Lt.forEach(t,(function(t,o){!0===(!(Lt.isUndefined(t)||null===t)&&i.call(n,t,Lt.isString(o)?o.trim():o,a,l))&&e(t,a?a.concat(o):[o])})),p.pop()}}(e),n}function zo(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return n[e]}))}function qo(e,n){this._pairs=[],e&&Uo(e,this,n)}const Mo=qo.prototype;function Ho(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function $o(e,n,t){if(!n)return e;const a=t&&t.encode||Ho;Lt.isFunction(t)&&(t={serialize:t});const i=t&&t.serialize;let o;if(o=i?i(n,t):Lt.isURLSearchParams(n)?n.toString():new qo(n,t).toString(a),o){const n=e.indexOf("#");-1!==n&&(e=e.slice(0,n)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}Mo.append=function(e,n){this._pairs.push([e,n])},Mo.toString=function(e){const n=e?function(n){return e.call(this,n,zo)}:zo;return this._pairs.map((function(e){return n(e[0])+"="+n(e[1])}),"").join("&")};class Go{constructor(){this.handlers=[]}use(e,n,t){return this.handlers.push({fulfilled:e,rejected:n,synchronous:!!t&&t.synchronous,runWhen:t?t.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Lt.forEach(this.handlers,(function(n){null!==n&&e(n)}))}}var Wo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ko=o.URLSearchParams;const Vo="abcdefghijklmnopqrstuvwxyz",Jo="0123456789",Yo={DIGIT:Jo,ALPHA:Vo,ALPHA_DIGIT:Vo+Vo.toUpperCase()+Jo};var Xo={isNode:!0,classes:{URLSearchParams:Ko,FormData:Ro,Blob:"undefined"!=typeof Blob&&Blob||null},ALPHABET:Yo,generateString:(e=16,n=Yo.ALPHA_DIGIT)=>{let t="";const{length:a}=n,i=new Uint32Array(e);c.randomFillSync(i);for(let o=0;o<e;o++)t+=n[i[o]%a];return t},protocols:["http","https","file","data"]};const Zo="undefined"!=typeof window&&"undefined"!=typeof document,Qo="object"==typeof navigator&&navigator||void 0,er=Zo&&(!Qo||["ReactNative","NativeScript","NS"].indexOf(Qo.product)<0),nr="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,tr=Zo&&window.location.href||"http://localhost";var ar={...Object.freeze({__proto__:null,hasBrowserEnv:Zo,hasStandardBrowserEnv:er,hasStandardBrowserWebWorkerEnv:nr,navigator:Qo,origin:tr}),...Xo};function ir(e){function n(e,t,a,i){let o=e[i++];if("__proto__"===o)return!0;const r=Number.isFinite(+o),s=i>=e.length;if(o=!o&&Lt.isArray(a)?a.length:o,s)return Lt.hasOwnProp(a,o)?a[o]=[a[o],t]:a[o]=t,!r;a[o]&&Lt.isObject(a[o])||(a[o]=[]);return n(e,t,a[o],i)&&Lt.isArray(a[o])&&(a[o]=function(e){const n={},t=Object.keys(e);let a;const i=t.length;let o;for(a=0;a<i;a++)o=t[a],n[o]=e[o];return n}(a[o])),!r}if(Lt.isFormData(e)&&Lt.isFunction(e.entries)){const t={};return Lt.forEachEntry(e,((e,a)=>{n(function(e){return Lt.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),a,t,0)})),t}return null}const or={transitional:Wo,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const t=n.getContentType()||"",a=t.indexOf("application/json")>-1,i=Lt.isObject(e);i&&Lt.isHTMLForm(e)&&(e=new FormData(e));if(Lt.isFormData(e))return a?JSON.stringify(ir(e)):e;if(Lt.isArrayBuffer(e)||Lt.isBuffer(e)||Lt.isStream(e)||Lt.isFile(e)||Lt.isBlob(e)||Lt.isReadableStream(e))return e;if(Lt.isArrayBufferView(e))return e.buffer;if(Lt.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(t.indexOf("application/x-www-form-urlencoded")>-1)return function(e,n){return Uo(e,new ar.classes.URLSearchParams,Object.assign({visitor:function(e,n,t,a){return ar.isNode&&Lt.isBuffer(e)?(this.append(n,e.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},n))}(e,this.formSerializer).toString();if((o=Lt.isFileList(e))||t.indexOf("multipart/form-data")>-1){const n=this.env&&this.env.FormData;return Uo(o?{"files[]":e}:e,n&&new n,this.formSerializer)}}return i||a?(n.setContentType("application/json",!1),function(e,n,t){if(Lt.isString(e))try{return(n||JSON.parse)(e),Lt.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(t||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const n=this.transitional||or.transitional,t=n&&n.forcedJSONParsing,a="json"===this.responseType;if(Lt.isResponse(e)||Lt.isReadableStream(e))return e;if(e&&Lt.isString(e)&&(t&&!this.responseType||a)){const t=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(e){if(t){if("SyntaxError"===e.name)throw It.from(e,It.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ar.classes.FormData,Blob:ar.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Lt.forEach(["delete","get","head","post","put","patch"],(e=>{or.headers[e]={}}));const rr=Lt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const sr=Symbol("internals");function cr(e){return e&&String(e).trim().toLowerCase()}function ur(e){return!1===e||null==e?e:Lt.isArray(e)?e.map(ur):String(e)}function pr(e,n,t,a,i){return Lt.isFunction(a)?a.call(this,n,t):(i&&(n=t),Lt.isString(n)?Lt.isString(a)?-1!==n.indexOf(a):Lt.isRegExp(a)?a.test(n):void 0:void 0)}let lr=class{constructor(e){e&&this.set(e)}set(e,n,t){const a=this;function i(e,n,t){const i=cr(n);if(!i)throw new Error("header name must be a non-empty string");const o=Lt.findKey(a,i);(!o||void 0===a[o]||!0===t||void 0===t&&!1!==a[o])&&(a[o||n]=ur(e))}const o=(e,n)=>Lt.forEach(e,((e,t)=>i(e,t,n)));if(Lt.isPlainObject(e)||e instanceof this.constructor)o(e,n);else if(Lt.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const n={};let t,a,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),t=e.substring(0,i).trim().toLowerCase(),a=e.substring(i+1).trim(),!t||n[t]&&rr[t]||("set-cookie"===t?n[t]?n[t].push(a):n[t]=[a]:n[t]=n[t]?n[t]+", "+a:a)})),n})(e),n);else if(Lt.isHeaders(e))for(const[n,a]of e.entries())i(a,n,t);else null!=e&&i(n,e,t);return this}get(e,n){if(e=cr(e)){const t=Lt.findKey(this,e);if(t){const e=this[t];if(!n)return e;if(!0===n)return function(e){const n=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=t.exec(e);)n[a[1]]=a[2];return n}(e);if(Lt.isFunction(n))return n.call(this,e,t);if(Lt.isRegExp(n))return n.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=cr(e)){const t=Lt.findKey(this,e);return!(!t||void 0===this[t]||n&&!pr(0,this[t],t,n))}return!1}delete(e,n){const t=this;let a=!1;function i(e){if(e=cr(e)){const i=Lt.findKey(t,e);!i||n&&!pr(0,t[i],i,n)||(delete t[i],a=!0)}}return Lt.isArray(e)?e.forEach(i):i(e),a}clear(e){const n=Object.keys(this);let t=n.length,a=!1;for(;t--;){const i=n[t];e&&!pr(0,this[i],i,e,!0)||(delete this[i],a=!0)}return a}normalize(e){const n=this,t={};return Lt.forEach(this,((a,i)=>{const o=Lt.findKey(t,i);if(o)return n[o]=ur(a),void delete n[i];const r=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,n,t)=>n.toUpperCase()+t))}(i):String(i).trim();r!==i&&delete n[i],n[r]=ur(a),t[r]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return Lt.forEach(this,((t,a)=>{null!=t&&!1!==t&&(n[a]=e&&Lt.isArray(t)?t.join(", "):t)})),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,n])=>e+": "+n)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const t=new this(e);return n.forEach((e=>t.set(e))),t}static accessor(e){const n=(this[sr]=this[sr]={accessors:{}}).accessors,t=this.prototype;function a(e){const a=cr(e);n[a]||(!function(e,n){const t=Lt.toCamelCase(" "+n);["get","set","has"].forEach((a=>{Object.defineProperty(e,a+t,{value:function(e,t,i){return this[a].call(this,n,e,t,i)},configurable:!0})}))}(t,e),n[a]=!0)}return Lt.isArray(e)?e.forEach(a):a(e),this}};function dr(e,n){const t=this||or,a=n||t,i=lr.from(a.headers);let o=a.data;return Lt.forEach(e,(function(e){o=e.call(t,o,i.normalize(),n?n.status:void 0)})),i.normalize(),o}function mr(e){return!(!e||!e.__CANCEL__)}function fr(e,n,t){It.call(this,null==e?"canceled":e,It.ERR_CANCELED,n,t),this.name="CanceledError"}function hr(e,n,t){const a=t.config.validateStatus;t.status&&a&&!a(t.status)?n(new It("Request failed with status code "+t.status,[It.ERR_BAD_REQUEST,It.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t)):e(t)}function vr(e,n,t){let a=!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(n);return e&&(a||0==t)?function(e,n){return n?e.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):e}(e,n):n}lr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Lt.reduceDescriptors(lr.prototype,(({value:e},n)=>{let t=n[0].toUpperCase()+n.slice(1);return{get:()=>e,set(e){this[t]=e}}})),Lt.freezeMethods(lr),Lt.inherits(fr,It,{__CANCEL__:!0});var xr={},br=o.parse,gr={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},yr=String.prototype.endsWith||function(e){return e.length<=this.length&&-1!==this.indexOf(e,this.length-e.length)};function Dr(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}xr.getProxyForUrl=function(e){var n="string"==typeof e?br(e):e||{},t=n.protocol,a=n.host,i=n.port;if("string"!=typeof a||!a||"string"!=typeof t)return"";if(t=t.split(":",1)[0],!function(e,n){var t=(Dr("npm_config_no_proxy")||Dr("no_proxy")).toLowerCase();if(!t)return!0;if("*"===t)return!1;return t.split(/[,\s]/).every((function(t){if(!t)return!0;var a=t.match(/^(.+):(\d+)$/),i=a?a[1]:t,o=a?parseInt(a[2]):0;return!(!o||o===n)||(/^[.*]/.test(i)?("*"===i.charAt(0)&&(i=i.slice(1)),!yr.call(e,i)):e!==i)}))}(a=a.replace(/:\d*$/,""),i=parseInt(i)||gr[t]||0))return"";var o=Dr("npm_config_"+t+"_proxy")||Dr(t+"_proxy")||Dr("npm_config_proxy")||Dr("all_proxy");return o&&-1===o.indexOf("://")&&(o=t+"://"+o),o};var wr,_r,Er,Cr,Fr,jr={exports:{}},kr={exports:{}},Ar={exports:{}};function Tr(){if(_r)return wr;_r=1;var e=1e3,n=60*e,t=60*n,a=24*t,i=7*a,o=365.25*a;function r(e,n,t,a){var i=n>=1.5*t;return Math.round(e/t)+" "+a+(i?"s":"")}return wr=function(s,c){c=c||{};var u=typeof s;if("string"===u&&s.length>0)return function(r){if((r=String(r)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(r);if(!s)return;var c=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*o;case"weeks":case"week":case"w":return c*i;case"days":case"day":case"d":return c*a;case"hours":case"hour":case"hrs":case"hr":case"h":return c*t;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(s);if("number"===u&&isFinite(s))return c.long?function(i){var o=Math.abs(i);if(o>=a)return r(i,o,a,"day");if(o>=t)return r(i,o,t,"hour");if(o>=n)return r(i,o,n,"minute");if(o>=e)return r(i,o,e,"second");return i+" ms"}(s):function(i){var o=Math.abs(i);if(o>=a)return Math.round(i/a)+"d";if(o>=t)return Math.round(i/t)+"h";if(o>=n)return Math.round(i/n)+"m";if(o>=e)return Math.round(i/e)+"s";return i+"ms"}(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))},wr}function Sr(){if(Cr)return Er;return Cr=1,Er=function(e){function n(e){let a,i,o,r=null;function s(...e){if(!s.enabled)return;const t=s,i=Number(new Date),o=i-(a||i);t.diff=o,t.prev=a,t.curr=i,a=i,e[0]=n.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let r=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((a,i)=>{if("%%"===a)return"%";r++;const o=n.formatters[i];if("function"==typeof o){const n=e[r];a=o.call(t,n),e.splice(r,1),r--}return a})),n.formatArgs.call(t,e);(t.log||n.log).apply(t,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=t,s.destroy=n.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==r?r:(i!==n.namespaces&&(i=n.namespaces,o=n.enabled(e)),o),set:e=>{r=e}}),"function"==typeof n.init&&n.init(s),s}function t(e,t){const a=n(this.namespace+(void 0===t?":":t)+e);return a.log=this.log,a}function a(e,n){let t=0,a=0,i=-1,o=0;for(;t<e.length;)if(a<n.length&&(n[a]===e[t]||"*"===n[a]))"*"===n[a]?(i=a,o=t,a++):(t++,a++);else{if(-1===i)return!1;a=i+1,o++,t=o}for(;a<n.length&&"*"===n[a];)a++;return a===n.length}return n.debug=n,n.default=n,n.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},n.disable=function(){const e=[...n.names,...n.skips.map((e=>"-"+e))].join(",");return n.enable(""),e},n.enable=function(e){n.save(e),n.namespaces=e,n.names=[],n.skips=[];const t=("string"==typeof e?e:"").trim().replace(" ",",").split(",").filter(Boolean);for(const e of t)"-"===e[0]?n.skips.push(e.slice(1)):n.names.push(e)},n.enabled=function(e){for(const t of n.skips)if(a(e,t))return!1;for(const t of n.names)if(a(e,t))return!0;return!1},n.humanize=Tr(),n.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((t=>{n[t]=e[t]})),n.names=[],n.skips=[],n.formatters={},n.selectColor=function(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]},n.enable(n.load()),n},Er}var Or,Rr,Br,Pr,Lr,Ir,Nr,Ur={exports:{}};function zr(){return Rr?Or:(Rr=1,Or=(e,n=process.argv)=>{const t=e.startsWith("-")?"":1===e.length?"-":"--",a=n.indexOf(t+e),i=n.indexOf("--");return-1!==a&&(-1===i||a<i)})}function qr(){return Lr||(Lr=1,function(n,t){const a=l,o=i;t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let a=0;a<n.length;a++)e.inspectOpts[n[a]]=t.inspectOpts[n[a]]},t.log=function(...e){return process.stderr.write(o.formatWithOptions(t.inspectOpts,...e)+"\n")},t.formatArgs=function(e){const{namespace:a,useColors:i}=this;if(i){const t=this.color,i="[3"+(t<8?t:"8;5;"+t),o=` ${i};1m${a} [0m`;e[0]=o+e[0].split("\n").join("\n"+o),e.push(i+"m+"+n.exports.humanize(this.diff)+"[0m")}else e[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+a+" "+e[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):a.isatty(process.stderr.fd)},t.destroy=o.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const n=function(){if(Pr)return Br;Pr=1;const n=e,t=l,a=zr(),{env:i}=process;let o;function r(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function s(e,t){if(0===o)return 0;if(a("color=16m")||a("color=full")||a("color=truecolor"))return 3;if(a("color=256"))return 2;if(e&&!t&&void 0===o)return 0;const r=o||0;if("dumb"===i.TERM)return r;if("win32"===process.platform){const e=n.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in i))||"codeship"===i.CI_NAME?1:r;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if("truecolor"===i.COLORTERM)return 3;if("TERM_PROGRAM"in i){const e=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:r}return a("no-color")||a("no-colors")||a("color=false")||a("color=never")?o=0:(a("color")||a("colors")||a("color=true")||a("color=always"))&&(o=1),"FORCE_COLOR"in i&&(o="true"===i.FORCE_COLOR?1:"false"===i.FORCE_COLOR?0:0===i.FORCE_COLOR.length?1:Math.min(parseInt(i.FORCE_COLOR,10),3)),Br={supportsColor:function(e){return r(s(e,e&&e.isTTY))},stdout:r(s(!0,t.isatty(1))),stderr:r(s(!0,t.isatty(2)))},Br}();n&&(n.stderr||n).level>=2&&(t.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(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,n)=>{const t=n.substring(6).toLowerCase().replace(/_([a-z])/g,((e,n)=>n.toUpperCase()));let a=process.env[n];return a=!!/^(yes|on|true|enabled)$/i.test(a)||!/^(no|off|false|disabled)$/i.test(a)&&("null"===a?null:Number(a)),e[t]=a,e}),{}),n.exports=Sr()(t);const{formatters:r}=n.exports;r.o=function(e){return this.inspectOpts.colors=this.useColors,o.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},r.O=function(e){return this.inspectOpts.colors=this.useColors,o.inspect(e,this.inspectOpts)}}(Ur,Ur.exports)),Ur.exports}function Mr(){return Ir||(Ir=1,e=kr,"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=(Fr||(Fr=1,function(e,n){n.formatArgs=function(n){if(n[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+n[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const t="color: "+this.color;n.splice(1,0,t,"color: inherit");let a=0,i=0;n[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(a++,"%c"===e&&(i=a))})),n.splice(i,0,t)},n.save=function(e){try{e?n.storage.setItem("debug",e):n.storage.removeItem("debug")}catch(e){}},n.load=function(){let e;try{e=n.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},n.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},n.storage=function(){try{return localStorage}catch(e){}}(),n.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`."))}})(),n.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"],n.log=console.debug||console.log||(()=>{}),e.exports=Sr()(n);const{formatters:t}=e.exports;t.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(Ar,Ar.exports)),Ar.exports):e.exports=qr()),kr.exports;var e}var Hr,$r,Gr,Wr=o,Kr=Wr.URL,Vr=r,Jr=s,Yr=u.Writable,Xr=p,Zr=function(){if(!Nr){try{Nr=Mr()("follow-redirects")}catch(e){}"function"!=typeof Nr&&(Nr=function(){})}Nr.apply(null,arguments)};Hr="undefined"!=typeof process,$r="undefined"!=typeof window&&"undefined"!=typeof document,Gr=gs(Error.captureStackTrace),Hr||!$r&&Gr||console.warn("The follow-redirects package should be excluded from browser builds.");var Qr=!1;try{Xr(new Kr(""))}catch(e){Qr="ERR_INVALID_URL"===e.code}var es=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],ns=["abort","aborted","connect","error","socket","timeout"],ts=Object.create(null);ns.forEach((function(e){ts[e]=function(n,t,a){this._redirectable.emit(e,n,t,a)}}));var as=vs("ERR_INVALID_URL","Invalid URL",TypeError),is=vs("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),os=vs("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",is),rs=vs("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),ss=vs("ERR_STREAM_WRITE_AFTER_END","write after end"),cs=Yr.prototype.destroy||ls;function us(e,n){Yr.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],n&&this.on("response",n);var t=this;this._onNativeResponse=function(e){try{t._processResponse(e)}catch(e){t.emit("error",e instanceof is?e:new is({cause:e}))}},this._performRequest()}function ps(e){var n={maxRedirects:21,maxBodyLength:10485760},t={};return Object.keys(e).forEach((function(a){var i=a+":",o=t[i]=e[a],r=n[a]=Object.create(o);Object.defineProperties(r,{request:{value:function(e,a,o){var r;return r=e,Kr&&r instanceof Kr?e=fs(e):bs(e)?e=fs(ds(e)):(o=a,a=ms(e),e={protocol:i}),gs(a)&&(o=a,a=null),(a=Object.assign({maxRedirects:n.maxRedirects,maxBodyLength:n.maxBodyLength},e,a)).nativeProtocols=t,bs(a.host)||bs(a.hostname)||(a.hostname="::1"),Xr.equal(a.protocol,i,"protocol mismatch"),Zr("options",a),new us(a,o)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,n,t){var a=r.request(e,n,t);return a.end(),a},configurable:!0,enumerable:!0,writable:!0}})})),n}function ls(){}function ds(e){var n;if(Qr)n=new Kr(e);else if(!bs((n=ms(Wr.parse(e))).protocol))throw new as({input:e});return n}function ms(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new as({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new as({input:e.href||e});return e}function fs(e,n){var t=n||{};for(var a of es)t[a]=e[a];return t.hostname.startsWith("[")&&(t.hostname=t.hostname.slice(1,-1)),""!==t.port&&(t.port=Number(t.port)),t.path=t.search?t.pathname+t.search:t.pathname,t}function hs(e,n){var t;for(var a in n)e.test(a)&&(t=n[a],delete n[a]);return null==t?void 0:String(t).trim()}function vs(e,n,t){function a(t){gs(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,t||{}),this.code=e,this.message=this.cause?n+": "+this.cause.message:n}return a.prototype=new(t||Error),Object.defineProperties(a.prototype,{constructor:{value:a,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),a}function xs(e,n){for(var t of ns)e.removeListener(t,ts[t]);e.on("error",ls),e.destroy(n)}function bs(e){return"string"==typeof e||e instanceof String}function gs(e){return"function"==typeof e}us.prototype=Object.create(Yr.prototype),us.prototype.abort=function(){xs(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},us.prototype.destroy=function(e){return xs(this._currentRequest,e),cs.call(this,e),this},us.prototype.write=function(e,n,t){if(this._ending)throw new ss;if(!bs(e)&&("object"!=typeof(a=e)||!("length"in a)))throw new TypeError("data should be a string, Buffer or Uint8Array");var a;gs(n)&&(t=n,n=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:n}),this._currentRequest.write(e,n,t)):(this.emit("error",new rs),this.abort()):t&&t()},us.prototype.end=function(e,n,t){if(gs(e)?(t=e,e=n=null):gs(n)&&(t=n,n=null),e){var a=this,i=this._currentRequest;this.write(e,n,(function(){a._ended=!0,i.end(null,null,t)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,t)},us.prototype.setHeader=function(e,n){this._options.headers[e]=n,this._currentRequest.setHeader(e,n)},us.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},us.prototype.setTimeout=function(e,n){var t=this;function a(n){n.setTimeout(e),n.removeListener("timeout",n.destroy),n.addListener("timeout",n.destroy)}function i(n){t._timeout&&clearTimeout(t._timeout),t._timeout=setTimeout((function(){t.emit("timeout"),o()}),e),a(n)}function o(){t._timeout&&(clearTimeout(t._timeout),t._timeout=null),t.removeListener("abort",o),t.removeListener("error",o),t.removeListener("response",o),t.removeListener("close",o),n&&t.removeListener("timeout",n),t.socket||t._currentRequest.removeListener("socket",i)}return n&&this.on("timeout",n),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",a),this.on("abort",o),this.on("error",o),this.on("response",o),this.on("close",o),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){us.prototype[e]=function(n,t){return this._currentRequest[e](n,t)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(us.prototype,e,{get:function(){return this._currentRequest[e]}})})),us.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 n=e.path.indexOf("?");n<0?e.pathname=e.path:(e.pathname=e.path.substring(0,n),e.search=e.path.substring(n))}},us.prototype._performRequest=function(){var e=this._options.protocol,n=this._options.nativeProtocols[e];if(!n)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var t=e.slice(0,-1);this._options.agent=this._options.agents[t]}var a=this._currentRequest=n.request(this._options,this._onNativeResponse);for(var i of(a._redirectable=this,ns))a.on(i,ts[i]);if(this._currentUrl=/^\//.test(this._options.path)?Wr.format(this._options):this._options.path,this._isRedirect){var o=0,r=this,s=this._requestBodyBuffers;!function e(n){if(a===r._currentRequest)if(n)r.emit("error",n);else if(o<s.length){var t=s[o++];a.finished||a.write(t.data,t.encoding,e)}else r._ended&&a.end()}()}},us.prototype._processResponse=function(e){var n=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:n});var t,a=e.headers.location;if(!a||!1===this._options.followRedirects||n<300||n>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(xs(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new os;var i=this._options.beforeRedirect;i&&(t=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var o=this._options.method;((301===n||302===n)&&"POST"===this._options.method||303===n&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],hs(/^content-/i,this._options.headers));var r,s,c=hs(/^host$/i,this._options.headers),u=ds(this._currentUrl),p=c||u.host,l=/^\w+:/.test(a)?this._currentUrl:Wr.format(Object.assign(u,{host:p})),d=(r=a,s=l,Qr?new Kr(r,s):ds(Wr.resolve(s,r)));if(Zr("redirecting to",d.href),this._isRedirect=!0,fs(d,this._options),(d.protocol!==u.protocol&&"https:"!==d.protocol||d.host!==p&&!function(e,n){Xr(bs(e)&&bs(n));var t=e.length-n.length-1;return t>0&&"."===e[t]&&e.endsWith(n)}(d.host,p))&&hs(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),gs(i)){var m={headers:e.headers,statusCode:n},f={url:l,method:o,headers:t};i(this._options,m,f),this._sanitizeOptions(this._options)}this._performRequest()},jr.exports=ps({http:Vr,https:Jr}),jr.exports.wrap=ps;const ys="1.8.4";function Ds(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}const ws=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;const _s=Symbol("internals");class Es extends u.Transform{constructor(e){e=Lt.toFlatObject(e,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,((e,n)=>!Lt.isUndefined(n[e]))),super({readableHighWaterMark:e.chunkSize});const n=this[_s]={timeWindow:e.timeWindow,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",(e=>{"progress"===e&&(n.isCaptured||(n.isCaptured=!0))}))}_read(e){const n=this[_s];return n.onReadCallback&&n.onReadCallback(),super._read(e)}_transform(e,n,t){const a=this[_s],i=a.maxRate,o=this.readableHighWaterMark,r=a.timeWindow,s=i/(1e3/r),c=!1!==a.minChunkSize?Math.max(a.minChunkSize,.01*s):0,u=(e,n)=>{const t=Buffer.byteLength(e);a.bytesSeen+=t,a.bytes+=t,a.isCaptured&&this.emit("progress",a.bytesSeen),this.push(e)?process.nextTick(n):a.onReadCallback=()=>{a.onReadCallback=null,process.nextTick(n)}},p=(e,n)=>{const t=Buffer.byteLength(e);let p,l=null,d=o,m=0;if(i){const e=Date.now();(!a.ts||(m=e-a.ts)>=r)&&(a.ts=e,p=s-a.bytes,a.bytes=p<0?-p:0,m=0),p=s-a.bytes}if(i){if(p<=0)return setTimeout((()=>{n(null,e)}),r-m);p<d&&(d=p)}d&&t>d&&t-d>c&&(l=e.subarray(d),e=e.subarray(0,d)),u(e,l?()=>{process.nextTick(n,null,l)}:n)};p(e,(function e(n,a){if(n)return t(n);a?p(a,e):t(null)}))}}const{asyncIterator:Cs}=Symbol,Fs=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[Cs]?yield*e[Cs]():yield e},js=ar.ALPHABET.ALPHA_DIGIT+"-_",ks="function"==typeof TextEncoder?new TextEncoder:new i.TextEncoder,As="\r\n",Ts=ks.encode(As);class Ss{constructor(e,n){const{escapeName:t}=this.constructor,a=Lt.isString(n);let i=`Content-Disposition: form-data; name="${t(e)}"${!a&&n.name?`; filename="${t(n.name)}"`:""}${As}`;a?n=ks.encode(String(n).replace(/\r?\n|\r\n?/g,As)):i+=`Content-Type: ${n.type||"application/octet-stream"}${As}`,this.headers=ks.encode(i+As),this.contentLength=a?n.byteLength:n.size,this.size=this.headers.byteLength+this.contentLength+2,this.name=e,this.value=n}async*encode(){yield this.headers;const{value:e}=this;Lt.isTypedArray(e)?yield e:yield*Fs(e),yield Ts}static escapeName(e){return String(e).replace(/[\r\n"]/g,(e=>({"\r":"%0D","\n":"%0A",'"':"%22"}[e])))}}class Os extends u.Transform{__transform(e,n,t){this.push(e),t()}_transform(e,n,t){if(0!==e.length&&(this._transform=this.__transform,120!==e[0])){const e=Buffer.alloc(2);e[0]=120,e[1]=156,this.push(e,n)}this.__transform(e,n,t)}}const Rs=(e,n)=>Lt.isAsyncFn(e)?function(...t){const a=t.pop();e.apply(this,t).then((e=>{try{n?a(null,...n(e)):a(null,e)}catch(e){a(e)}}),a)}:e;const Bs=(e,n,t=3)=>{let a=0;const i=function(e,n){e=e||10;const t=new Array(e),a=new Array(e);let i,o=0,r=0;return n=void 0!==n?n:1e3,function(s){const c=Date.now(),u=a[r];i||(i=c),t[o]=s,a[o]=c;let p=r,l=0;for(;p!==o;)l+=t[p++],p%=e;if(o=(o+1)%e,o===r&&(r=(r+1)%e),c-i<n)return;const d=u&&c-u;return d?Math.round(1e3*l/d):void 0}}(50,250);return function(e,n){let t,a,i=0,o=1e3/n;const r=(n,o=Date.now())=>{i=o,t=null,a&&(clearTimeout(a),a=null),e.apply(null,n)};return[(...e)=>{const n=Date.now(),s=n-i;s>=o?r(e,n):(t=e,a||(a=setTimeout((()=>{a=null,r(t)}),o-s)))},()=>t&&r(t)]}((t=>{const o=t.loaded,r=t.lengthComputable?t.total:void 0,s=o-a,c=i(s);a=o;e({loaded:o,total:r,progress:r?o/r:void 0,bytes:s,rate:c||void 0,estimated:c&&r&&o<=r?(r-o)/c:void 0,event:t,lengthComputable:null!=r,[n?"download":"upload"]:!0})}),t)},Ps=(e,n)=>{const t=null!=e;return[a=>n[0]({lengthComputable:t,total:e,loaded:a}),n[1]]},Ls=e=>(...n)=>Lt.asap((()=>e(...n))),Is={flush:d.constants.Z_SYNC_FLUSH,finishFlush:d.constants.Z_SYNC_FLUSH},Ns={flush:d.constants.BROTLI_OPERATION_FLUSH,finishFlush:d.constants.BROTLI_OPERATION_FLUSH},Us=Lt.isFunction(d.createBrotliDecompress),{http:zs,https:qs}=jr.exports,Ms=/https:?/,Hs=ar.protocols.map((e=>e+":")),$s=(e,[n,t])=>(e.on("end",t).on("error",t),n);function Gs(e,n){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,n)}function Ws(e,n,t){let a=n;if(!a&&!1!==a){const e=xr.getProxyForUrl(t);e&&(a=new URL(e))}if(a){if(a.username&&(a.auth=(a.username||"")+":"+(a.password||"")),a.auth){(a.auth.username||a.auth.password)&&(a.auth=(a.auth.username||"")+":"+(a.auth.password||""));const n=Buffer.from(a.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+n}e.headers.host=e.hostname+(e.port?":"+e.port:"");const n=a.hostname||a.host;e.hostname=n,e.host=n,e.port=a.port,e.path=t,a.protocol&&(e.protocol=a.protocol.includes(":")?a.protocol:`${a.protocol}:`)}e.beforeRedirects.proxy=function(e){Ws(e,n,e.href)}}const Ks="undefined"!=typeof process&&"process"===Lt.kindOf(process),Vs=(e,n)=>(({address:e,family:n})=>{if(!Lt.isString(e))throw TypeError("address must be a string");return{address:e,family:n||(e.indexOf(".")<0?6:4)}})(Lt.isObject(e)?e:{address:e,family:n});var Js=Ks&&function(e){return n=async function(n,t,a){let{data:o,lookup:c,family:p}=e;const{responseType:l,responseEncoding:f}=e,h=e.method.toUpperCase();let v,x,b=!1;if(c){const e=Rs(c,(e=>Lt.isArray(e)?e:[e]));c=(n,t,a)=>{e(n,t,((e,n,i)=>{if(e)return a(e);const o=Lt.isArray(n)?n.map((e=>Vs(e))):[Vs(n,i)];t.all?a(e,o):a(e,o[0].address,o[0].family)}))}}const g=new m.EventEmitter,y=()=>{e.cancelToken&&e.cancelToken.unsubscribe(D),e.signal&&e.signal.removeEventListener("abort",D),g.removeAllListeners()};function D(n){g.emit("abort",!n||n.type?new fr(null,e,x):n)}a(((e,n)=>{v=!0,n&&(b=!0,y())})),g.once("abort",t),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(D),e.signal&&(e.signal.aborted?D():e.signal.addEventListener("abort",D)));const w=vr(e.baseURL,e.url,e.allowAbsoluteUrls),_=new URL(w,ar.hasBrowserEnv?ar.origin:void 0),E=_.protocol||Hs[0];if("data:"===E){let a;if("GET"!==h)return hr(n,t,{status:405,statusText:"method not allowed",headers:{},config:e});try{a=function(e,n,t){const a=t&&t.Blob||ar.classes.Blob,i=Ds(e);if(void 0===n&&a&&(n=!0),"data"===i){e=i.length?e.slice(i.length+1):e;const t=ws.exec(e);if(!t)throw new It("Invalid URL",It.ERR_INVALID_URL);const o=t[1],r=t[2],s=t[3],c=Buffer.from(decodeURIComponent(s),r?"base64":"utf8");if(n){if(!a)throw new It("Blob is not supported",It.ERR_NOT_SUPPORT);return new a([c],{type:o})}return c}throw new It("Unsupported protocol "+i,It.ERR_NOT_SUPPORT)}(e.url,"blob"===l,{Blob:e.env&&e.env.Blob})}catch(n){throw It.from(n,It.ERR_BAD_REQUEST,e)}return"text"===l?(a=a.toString(f),f&&"utf8"!==f||(a=Lt.stripBOM(a))):"stream"===l&&(a=u.Readable.from(a)),hr(n,t,{data:a,status:200,statusText:"OK",headers:new lr,config:e})}if(-1===Hs.indexOf(E))return t(new It("Unsupported protocol "+E,It.ERR_BAD_REQUEST,e));const C=lr.from(e.headers).normalize();C.set("User-Agent","axios/"+ys,!1);const{onUploadProgress:F,onDownloadProgress:j}=e,k=e.maxRate;let A,T;if(Lt.isSpecCompliantForm(o)){const e=C.getContentType(/boundary=([-_\w\d]{10,70})/i);o=((e,n,t)=>{const{tag:a="form-data-boundary",size:i=25,boundary:o=a+"-"+ar.generateString(i,js)}=t||{};if(!Lt.isFormData(e))throw TypeError("FormData instance required");if(o.length<1||o.length>70)throw Error("boundary must be 10-70 characters long");const r=ks.encode("--"+o+As),s=ks.encode("--"+o+"--"+As+As);let c=s.byteLength;const p=Array.from(e.entries()).map((([e,n])=>{const t=new Ss(e,n);return c+=t.size,t}));c+=r.byteLength*p.length,c=Lt.toFiniteNumber(c);const l={"Content-Type":`multipart/form-data; boundary=${o}`};return Number.isFinite(c)&&(l["Content-Length"]=c),n&&n(l),u.Readable.from(async function*(){for(const e of p)yield r,yield*e.encode();yield s}())})(o,(e=>{C.set(e)}),{tag:`axios-${ys}-boundary`,boundary:e&&e[1]||void 0})}else if(Lt.isFormData(o)&&Lt.isFunction(o.getHeaders)){if(C.set(o.getHeaders()),!C.hasContentLength())try{const e=await i.promisify(o.getLength).call(o);Number.isFinite(e)&&e>=0&&C.setContentLength(e)}catch(e){}}else if(Lt.isBlob(o)||Lt.isFile(o))o.size&&C.setContentType(o.type||"application/octet-stream"),C.setContentLength(o.size||0),o=u.Readable.from(Fs(o));else if(o&&!Lt.isStream(o)){if(Buffer.isBuffer(o));else if(Lt.isArrayBuffer(o))o=Buffer.from(new Uint8Array(o));else{if(!Lt.isString(o))return t(new It("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",It.ERR_BAD_REQUEST,e));o=Buffer.from(o,"utf-8")}if(C.setContentLength(o.length,!1),e.maxBodyLength>-1&&o.length>e.maxBodyLength)return t(new It("Request body larger than maxBodyLength limit",It.ERR_BAD_REQUEST,e))}const S=Lt.toFiniteNumber(C.getContentLength());let O,R;Lt.isArray(k)?(A=k[0],T=k[1]):A=T=k,o&&(F||A)&&(Lt.isStream(o)||(o=u.Readable.from(o,{objectMode:!1})),o=u.pipeline([o,new Es({maxRate:Lt.toFiniteNumber(A)})],Lt.noop),F&&o.on("progress",$s(o,Ps(S,Bs(Ls(F),!1,3))))),e.auth&&(O=(e.auth.username||"")+":"+(e.auth.password||"")),!O&&_.username&&(O=_.username+":"+_.password),O&&C.delete("authorization");try{R=$o(_.pathname+_.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(n){const a=new Error(n.message);return a.config=e,a.url=e.url,a.exists=!0,t(a)}C.set("Accept-Encoding","gzip, compress, deflate"+(Us?", br":""),!1);const B={path:R,method:h,headers:C.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:O,protocol:E,family:p,beforeRedirect:Gs,beforeRedirects:{}};let P;!Lt.isUndefined(c)&&(B.lookup=c),e.socketPath?B.socketPath=e.socketPath:(B.hostname=_.hostname.startsWith("[")?_.hostname.slice(1,-1):_.hostname,B.port=_.port,Ws(B,e.proxy,E+"//"+_.hostname+(_.port?":"+_.port:"")+B.path));const L=Ms.test(B.protocol);if(B.agent=L?e.httpsAgent:e.httpAgent,e.transport?P=e.transport:0===e.maxRedirects?P=L?s:r:(e.maxRedirects&&(B.maxRedirects=e.maxRedirects),e.beforeRedirect&&(B.beforeRedirects.config=e.beforeRedirect),P=L?qs:zs),e.maxBodyLength>-1?B.maxBodyLength=e.maxBodyLength:B.maxBodyLength=1/0,e.insecureHTTPParser&&(B.insecureHTTPParser=e.insecureHTTPParser),x=P.request(B,(function(a){if(x.destroyed)return;const i=[a],o=+a.headers["content-length"];if(j||T){const e=new Es({maxRate:Lt.toFiniteNumber(T)});j&&e.on("progress",$s(e,Ps(o,Bs(Ls(j),!0,3)))),i.push(e)}let r=a;const s=a.req||x;if(!1!==e.decompress&&a.headers["content-encoding"])switch("HEAD"!==h&&204!==a.statusCode||delete a.headers["content-encoding"],(a.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":i.push(d.createUnzip(Is)),delete a.headers["content-encoding"];break;case"deflate":i.push(new Os),i.push(d.createUnzip(Is)),delete a.headers["content-encoding"];break;case"br":Us&&(i.push(d.createBrotliDecompress(Ns)),delete a.headers["content-encoding"])}r=i.length>1?u.pipeline(i,Lt.noop):i[0];const c=u.finished(r,(()=>{c(),y()})),p={status:a.statusCode,statusText:a.statusMessage,headers:new lr(a.headers),config:e,request:s};if("stream"===l)p.data=r,hr(n,t,p);else{const a=[];let i=0;r.on("data",(function(n){a.push(n),i+=n.length,e.maxContentLength>-1&&i>e.maxContentLength&&(b=!0,r.destroy(),t(new It("maxContentLength size of "+e.maxContentLength+" exceeded",It.ERR_BAD_RESPONSE,e,s)))})),r.on("aborted",(function(){if(b)return;const n=new It("stream has been aborted",It.ERR_BAD_RESPONSE,e,s);r.destroy(n),t(n)})),r.on("error",(function(n){x.destroyed||t(It.from(n,null,e,s))})),r.on("end",(function(){try{let e=1===a.length?a[0]:Buffer.concat(a);"arraybuffer"!==l&&(e=e.toString(f),f&&"utf8"!==f||(e=Lt.stripBOM(e))),p.data=e}catch(n){return t(It.from(n,null,e,p.request,p))}hr(n,t,p)}))}g.once("abort",(e=>{r.destroyed||(r.emit("error",e),r.destroy())}))})),g.once("abort",(e=>{t(e),x.destroy(e)})),x.on("error",(function(n){t(It.from(n,null,e,x))})),x.on("socket",(function(e){e.setKeepAlive(!0,6e4)})),e.timeout){const n=parseInt(e.timeout,10);if(Number.isNaN(n))return void t(new It("error trying to parse `config.timeout` to int",It.ERR_BAD_OPTION_VALUE,e,x));x.setTimeout(n,(function(){if(v)return;let n=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const a=e.transitional||Wo;e.timeoutErrorMessage&&(n=e.timeoutErrorMessage),t(new It(n,a.clarifyTimeoutError?It.ETIMEDOUT:It.ECONNABORTED,e,x)),D()}))}if(Lt.isStream(o)){let n=!1,t=!1;o.on("end",(()=>{n=!0})),o.once("error",(e=>{t=!0,x.destroy(e)})),o.on("close",(()=>{n||t||D(new fr("Request stream has been aborted",e,x))})),o.pipe(x)}else x.end(o)},new Promise(((e,t)=>{let a,i;const o=(e,n)=>{i||(i=!0,a&&a(e,n))},r=e=>{o(e,!0),t(e)};n((n=>{o(n),e(n)}),r,(e=>a=e)).catch(r)}));var n},Ys=ar.hasStandardBrowserEnv?((e,n)=>t=>(t=new URL(t,ar.origin),e.protocol===t.protocol&&e.host===t.host&&(n||e.port===t.port)))(new URL(ar.origin),ar.navigator&&/(msie|trident)/i.test(ar.navigator.userAgent)):()=>!0,Xs=ar.hasStandardBrowserEnv?{write(e,n,t,a,i,o){const r=[e+"="+encodeURIComponent(n)];Lt.isNumber(t)&&r.push("expires="+new Date(t).toGMTString()),Lt.isString(a)&&r.push("path="+a),Lt.isString(i)&&r.push("domain="+i),!0===o&&r.push("secure"),document.cookie=r.join("; ")},read(e){const n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};const Zs=e=>e instanceof lr?{...e}:e;function Qs(e,n){n=n||{};const t={};function a(e,n,t,a){return Lt.isPlainObject(e)&&Lt.isPlainObject(n)?Lt.merge.call({caseless:a},e,n):Lt.isPlainObject(n)?Lt.merge({},n):Lt.isArray(n)?n.slice():n}function i(e,n,t,i){return Lt.isUndefined(n)?Lt.isUndefined(e)?void 0:a(void 0,e,0,i):a(e,n,0,i)}function o(e,n){if(!Lt.isUndefined(n))return a(void 0,n)}function r(e,n){return Lt.isUndefined(n)?Lt.isUndefined(e)?void 0:a(void 0,e):a(void 0,n)}function s(t,i,o){return o in n?a(t,i):o in e?a(void 0,t):void 0}const c={url:o,method:o,data:o,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:s,headers:(e,n,t)=>i(Zs(e),Zs(n),0,!0)};return Lt.forEach(Object.keys(Object.assign({},e,n)),(function(a){const o=c[a]||i,r=o(e[a],n[a],a);Lt.isUndefined(r)&&o!==s||(t[a]=r)})),t}var ec=e=>{const n=Qs({},e);let t,{data:a,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:r,headers:s,auth:c}=n;if(n.headers=s=lr.from(s),n.url=$o(vr(n.baseURL,n.url,n.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),Lt.isFormData(a))if(ar.hasStandardBrowserEnv||ar.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(t=s.getContentType())){const[e,...n]=t?t.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...n].join("; "))}if(ar.hasStandardBrowserEnv&&(i&&Lt.isFunction(i)&&(i=i(n)),i||!1!==i&&Ys(n.url))){const e=o&&r&&Xs.read(r);e&&s.set(o,e)}return n};var nc="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(n,t){const a=ec(e);let i=a.data;const o=lr.from(a.headers).normalize();let r,s,c,u,p,{responseType:l,onUploadProgress:d,onDownloadProgress:m}=a;function f(){u&&u(),p&&p(),a.cancelToken&&a.cancelToken.unsubscribe(r),a.signal&&a.signal.removeEventListener("abort",r)}let h=new XMLHttpRequest;function v(){if(!h)return;const a=lr.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());hr((function(e){n(e),f()}),(function(e){t(e),f()}),{data:l&&"text"!==l&&"json"!==l?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:a,config:e,request:h}),h=null}h.open(a.method.toUpperCase(),a.url,!0),h.timeout=a.timeout,"onloadend"in h?h.onloadend=v:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(v)},h.onabort=function(){h&&(t(new It("Request aborted",It.ECONNABORTED,e,h)),h=null)},h.onerror=function(){t(new It("Network Error",It.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let n=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const i=a.transitional||Wo;a.timeoutErrorMessage&&(n=a.timeoutErrorMessage),t(new It(n,i.clarifyTimeoutError?It.ETIMEDOUT:It.ECONNABORTED,e,h)),h=null},void 0===i&&o.setContentType(null),"setRequestHeader"in h&&Lt.forEach(o.toJSON(),(function(e,n){h.setRequestHeader(n,e)})),Lt.isUndefined(a.withCredentials)||(h.withCredentials=!!a.withCredentials),l&&"json"!==l&&(h.responseType=a.responseType),m&&([c,p]=Bs(m,!0),h.addEventListener("progress",c)),d&&h.upload&&([s,u]=Bs(d),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",u)),(a.cancelToken||a.signal)&&(r=n=>{h&&(t(!n||n.type?new fr(null,e,h):n),h.abort(),h=null)},a.cancelToken&&a.cancelToken.subscribe(r),a.signal&&(a.signal.aborted?r():a.signal.addEventListener("abort",r)));const x=Ds(a.url);x&&-1===ar.protocols.indexOf(x)?t(new It("Unsupported protocol "+x+":",It.ERR_BAD_REQUEST,e)):h.send(i||null)}))};const tc=(e,n)=>{const{length:t}=e=e?e.filter(Boolean):[];if(n||t){let t,a=new AbortController;const i=function(e){if(!t){t=!0,r();const n=e instanceof Error?e:this.reason;a.abort(n instanceof It?n:new fr(n instanceof Error?n.message:n))}};let o=n&&setTimeout((()=>{o=null,i(new It(`timeout ${n} of ms exceeded`,It.ETIMEDOUT))}),n);const r=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)})),e=null)};e.forEach((e=>e.addEventListener("abort",i)));const{signal:s}=a;return s.unsubscribe=()=>Lt.asap(r),s}},ac=function*(e,n){let t=e.byteLength;if(t<n)return void(yield e);let a,i=0;for(;i<t;)a=i+n,yield e.slice(i,a),i=a},ic=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const n=e.getReader();try{for(;;){const{done:e,value:t}=await n.read();if(e)break;yield t}}finally{await n.cancel()}},oc=(e,n,t,a)=>{const i=async function*(e,n){for await(const t of ic(e))yield*ac(t,n)}(e,n);let o,r=0,s=e=>{o||(o=!0,a&&a(e))};return new ReadableStream({async pull(e){try{const{done:n,value:a}=await i.next();if(n)return s(),void e.close();let o=a.byteLength;if(t){let e=r+=o;t(e)}e.enqueue(new Uint8Array(a))}catch(e){throw s(e),e}},cancel:e=>(s(e),i.return())},{highWaterMark:2})},rc="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,sc=rc&&"function"==typeof ReadableStream,cc=rc&&("function"==typeof TextEncoder?(uc=new TextEncoder,e=>uc.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var uc;const pc=(e,...n)=>{try{return!!e(...n)}catch(e){return!1}},lc=sc&&pc((()=>{let e=!1;const n=new Request(ar.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!n})),dc=sc&&pc((()=>Lt.isReadableStream(new Response("").body))),mc={stream:dc&&(e=>e.body)};var fc;rc&&(fc=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!mc[e]&&(mc[e]=Lt.isFunction(fc[e])?n=>n[e]():(n,t)=>{throw new It(`Response type '${e}' is not supported`,It.ERR_NOT_SUPPORT,t)})})));const hc=async(e,n)=>{const t=Lt.toFiniteNumber(e.getContentLength());return null==t?(async e=>{if(null==e)return 0;if(Lt.isBlob(e))return e.size;if(Lt.isSpecCompliantForm(e)){const n=new Request(ar.origin,{method:"POST",body:e});return(await n.arrayBuffer()).byteLength}return Lt.isArrayBufferView(e)||Lt.isArrayBuffer(e)?e.byteLength:(Lt.isURLSearchParams(e)&&(e+=""),Lt.isString(e)?(await cc(e)).byteLength:void 0)})(n):t};var vc=rc&&(async e=>{let{url:n,method:t,data:a,signal:i,cancelToken:o,timeout:r,onDownloadProgress:s,onUploadProgress:c,responseType:u,headers:p,withCredentials:l="same-origin",fetchOptions:d}=ec(e);u=u?(u+"").toLowerCase():"text";let m,f=tc([i,o&&o.toAbortSignal()],r);const h=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let v;try{if(c&&lc&&"get"!==t&&"head"!==t&&0!==(v=await hc(p,a))){let e,t=new Request(n,{method:"POST",body:a,duplex:"half"});if(Lt.isFormData(a)&&(e=t.headers.get("content-type"))&&p.setContentType(e),t.body){const[e,n]=Ps(v,Bs(Ls(c)));a=oc(t.body,65536,e,n)}}Lt.isString(l)||(l=l?"include":"omit");const i="credentials"in Request.prototype;m=new Request(n,{...d,signal:f,method:t.toUpperCase(),headers:p.normalize().toJSON(),body:a,duplex:"half",credentials:i?l:void 0});let o=await fetch(m);const r=dc&&("stream"===u||"response"===u);if(dc&&(s||r&&h)){const e={};["status","statusText","headers"].forEach((n=>{e[n]=o[n]}));const n=Lt.toFiniteNumber(o.headers.get("content-length")),[t,a]=s&&Ps(n,Bs(Ls(s),!0))||[];o=new Response(oc(o.body,65536,t,(()=>{a&&a(),h&&h()})),e)}u=u||"text";let x=await mc[Lt.findKey(mc,u)||"text"](o,e);return!r&&h&&h(),await new Promise(((n,t)=>{hr(n,t,{data:x,headers:lr.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:m})}))}catch(n){if(h&&h(),n&&"TypeError"===n.name&&/fetch/i.test(n.message))throw Object.assign(new It("Network Error",It.ERR_NETWORK,e,m),{cause:n.cause||n});throw It.from(n,n&&n.code,e,m)}});const xc={http:Js,xhr:nc,fetch:vc};Lt.forEach(xc,((e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch(e){}Object.defineProperty(e,"adapterName",{value:n})}}));const bc=e=>`- ${e}`,gc=e=>Lt.isFunction(e)||null===e||!1===e;var yc=e=>{e=Lt.isArray(e)?e:[e];const{length:n}=e;let t,a;const i={};for(let o=0;o<n;o++){let n;if(t=e[o],a=t,!gc(t)&&(a=xc[(n=String(t)).toLowerCase()],void 0===a))throw new It(`Unknown adapter '${n}'`);if(a)break;i[n||"#"+o]=a}if(!a){const e=Object.entries(i).map((([e,n])=>`adapter ${e} `+(!1===n?"is not supported by the environment":"is not available in the build")));throw new It("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(bc).join("\n"):" "+bc(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return a};function Dc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new fr(null,e)}function wc(e){Dc(e),e.headers=lr.from(e.headers),e.data=dr.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return yc(e.adapter||or.adapter)(e).then((function(n){return Dc(e),n.data=dr.call(e,e.transformResponse,n),n.headers=lr.from(n.headers),n}),(function(n){return mr(n)||(Dc(e),n&&n.response&&(n.response.data=dr.call(e,e.transformResponse,n.response),n.response.headers=lr.from(n.response.headers))),Promise.reject(n)}))}const _c={};["object","boolean","number","function","string","symbol"].forEach(((e,n)=>{_c[e]=function(t){return typeof t===e||"a"+(n<1?"n ":" ")+e}}));const Ec={};_c.transitional=function(e,n,t){function a(e,n){return"[Axios v1.8.4] Transitional option '"+e+"'"+n+(t?". "+t:"")}return(t,i,o)=>{if(!1===e)throw new It(a(i," has been removed"+(n?" in "+n:"")),It.ERR_DEPRECATED);return n&&!Ec[i]&&(Ec[i]=!0,console.warn(a(i," has been deprecated since v"+n+" and will be removed in the near future"))),!e||e(t,i,o)}},_c.spelling=function(e){return(n,t)=>(console.warn(`${t} is likely a misspelling of ${e}`),!0)};var Cc={assertOptions:function(e,n,t){if("object"!=typeof e)throw new It("options must be an object",It.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let i=a.length;for(;i-- >0;){const o=a[i],r=n[o];if(r){const n=e[o],t=void 0===n||r(n,o,e);if(!0!==t)throw new It("option "+o+" must be "+t,It.ERR_BAD_OPTION_VALUE)}else if(!0!==t)throw new It("Unknown option "+o,It.ERR_BAD_OPTION)}},validators:_c};const Fc=Cc.validators;let jc=class{constructor(e){this.defaults=e,this.interceptors={request:new Go,response:new Go}}async request(e,n){try{return await this._request(e,n)}catch(e){if(e instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const t=n.stack?n.stack.replace(/^.+\n/,""):"";try{e.stack?t&&!String(e.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+t):e.stack=t}catch(e){}}throw e}}_request(e,n){"string"==typeof e?(n=n||{}).url=e:n=e||{},n=Qs(this.defaults,n);const{transitional:t,paramsSerializer:a,headers:i}=n;void 0!==t&&Cc.assertOptions(t,{silentJSONParsing:Fc.transitional(Fc.boolean),forcedJSONParsing:Fc.transitional(Fc.boolean),clarifyTimeoutError:Fc.transitional(Fc.boolean)},!1),null!=a&&(Lt.isFunction(a)?n.paramsSerializer={serialize:a}:Cc.assertOptions(a,{encode:Fc.function,serialize:Fc.function},!0)),void 0!==n.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Cc.assertOptions(n,{baseUrl:Fc.spelling("baseURL"),withXsrfToken:Fc.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&Lt.merge(i.common,i[n.method]);i&&Lt.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),n.headers=lr.concat(o,i);const r=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(n)||(s=s&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let p,l=0;if(!s){const e=[wc.bind(this),void 0];for(e.unshift.apply(e,r),e.push.apply(e,c),p=e.length,u=Promise.resolve(n);l<p;)u=u.then(e[l++],e[l++]);return u}p=r.length;let d=n;for(l=0;l<p;){const e=r[l++],n=r[l++];try{d=e(d)}catch(e){n.call(this,e);break}}try{u=wc.call(this,d)}catch(e){return Promise.reject(e)}for(l=0,p=c.length;l<p;)u=u.then(c[l++],c[l++]);return u}getUri(e){return $o(vr((e=Qs(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};Lt.forEach(["delete","get","head","options"],(function(e){jc.prototype[e]=function(n,t){return this.request(Qs(t||{},{method:e,url:n,data:(t||{}).data}))}})),Lt.forEach(["post","put","patch"],(function(e){function n(n){return function(t,a,i){return this.request(Qs(i||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:t,data:a}))}}jc.prototype[e]=n(),jc.prototype[e+"Form"]=n(!0)}));const kc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(kc).forEach((([e,n])=>{kc[n]=e}));const Ac=function e(n){const t=new jc(n),a=Yn(jc.prototype.request,t);return Lt.extend(a,jc.prototype,t,{allOwnKeys:!0}),Lt.extend(a,t,null,{allOwnKeys:!0}),a.create=function(t){return e(Qs(n,t))},a}(or);Ac.Axios=jc,Ac.CanceledError=fr,Ac.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let n;this.promise=new Promise((function(e){n=e}));const t=this;this.promise.then((e=>{if(!t._listeners)return;let n=t._listeners.length;for(;n-- >0;)t._listeners[n](e);t._listeners=null})),this.promise.then=e=>{let n;const a=new Promise((e=>{t.subscribe(e),n=e})).then(e);return a.cancel=function(){t.unsubscribe(n)},a},e((function(e,a,i){t.reason||(t.reason=new fr(e,a,i),n(t.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);-1!==n&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=n=>{e.abort(n)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let n;return{token:new e((function(e){n=e})),cancel:n}}},Ac.isCancel=mr,Ac.VERSION=ys,Ac.toFormData=Uo,Ac.AxiosError=It,Ac.Cancel=Ac.CanceledError,Ac.all=function(e){return Promise.all(e)},Ac.spread=function(e){return function(n){return e.apply(null,n)}},Ac.isAxiosError=function(e){return Lt.isObject(e)&&!0===e.isAxiosError},Ac.mergeConfig=Qs,Ac.AxiosHeaders=lr,Ac.formToJSON=e=>ir(Lt.isHTMLForm(e)?new FormData(e):e),Ac.getAdapter=yc,Ac.HttpStatusCode=kc,Ac.default=Ac;const{Axios:Tc,AxiosError:Sc,CanceledError:Oc,isCancel:Rc,CancelToken:Bc,VERSION:Pc,all:Lc,Cancel:Ic,isAxiosError:Nc,spread:Uc,toFormData:zc,AxiosHeaders:qc,HttpStatusCode:Mc,formToJSON:Hc,getAdapter:$c,mergeConfig:Gc}=Ac,Wc="/api/v1",Kc=e=>{const n=(t=e,Object.entries(t).reduce(((e,n)=>(e[zn(n[0])]=n[1],e)),{}));var t;return Ac.post(`${Wc}/reporter/runs`,{run:n},{skipSnakeCaseConversion:!0})},Vc=(e,n)=>Ac.put(`${Wc}/reporter/runs/${e}`,{run:n}),Jc=e=>Ac.get(`${Wc}/reporter/runs/${e}/heartbeat`),Yc=(e,n)=>Ac.post(`${Wc}/reporter/runs/${e}/test_entities`,{testEntity:n}),Xc="=".repeat(10),Zc={testData:(e,n)=>{let t=`\n-------Started reporting to NeetoPlaydash 🎭-------\nCI Build ID: ${e}\n`;return n&&(t+=`Total shards: ${n.total}\nCurrent shards: ${n.current}\n`),t+=`${"-".repeat(50)}\n`,t}},Qc={startingTest:({titlePath:e,historyId:n,retry:t,repeatEachIndex:a})=>`${Xc}Starting ${e}${Xc}\n Time: ${(new Date).toUTCString()}\n History ID: ${n}${t&&`\nRetry: ${t}`}${a&&`\nRepeat index: ${a}`}`},eu={reportedTest:({title:e,status:n,historyId:t,completedAt:a,error:i,isTestReported:o=!0,retry:r,repeatEachIndex:s})=>{let c=`\n\n${o?"------------Reported to NeetoPlaydash------------":"-".repeat(49)}\n Title: ${e}\n History id: ${t}\n Status: ${n}\n Completed at: ${a}${r&&`\nRetry: ${r}`}${s&&`\nRepeat index: ${s}`}\n`;return c=i?c.concat(` Error:\n\n ${i.replaceAll("\n","\n ")}`):c,c.concat(`\n${"-".repeat(49)}\n`)}},nu={runReported:"Run completed and reported to NeetoPlaydash 🎉\n\n",finalStatus:({currentShard:e,status:n,duration:t})=>{let a=`------------------Run completed-------------------\n Status: ${n}\n Duration: ${(e=>{const n={hour:Math.floor(e/36e5),minute:Math.floor(e/6e4)%60,second:Math.floor(e/1e3)%60,millisecond:Math.floor(e)%1e3};return Object.entries(n).filter((([e,n])=>0!==n)).map((([e,n])=>n+" "+(1!==n?`${e}s`:e))).join(", ")})(null!=t?t:0)}\n`;return a=0!==e?a.concat(` Shard: ${e}`):a,a.concat(`\n${"-".repeat(50)}\n`)}},tu=({command:e,messageOnError:n,shouldThrowError:t=!1,logLevel:a="warning"})=>{try{return f.execSync(e).toString().trim()}catch(e){if(t)throw e;R[a](n)}},au=(e,n)=>{var t;const{title:i,parent:o,location:{file:r}}=e,s=e.titlePath(),c=null===(t=o.project())||void 0===t?void 0:t.name,u=a.relative(n,r),p=(({titlePath:e,title:n,project:t,rootDir:i,file:o})=>e.filter(((e,r)=>0!==r&&e!==n&&e!==t&&e!==a.relative(i,o))))({titlePath:s,title:i,project:c,rootDir:n,file:r});return{title:i,describe:p,project:c,spec:u,historyId:(({projectId:e,specName:n,describeTitles:t,testTitle:a})=>{const i=`[project=${e}]${n}${[...t,a].join("")}`,o=Gn(i);return`${Gn(n)}-${o}`})({projectId:null!=c?c:"",specName:u,describeTitles:p,testTitle:i})}},iu=({rootDir:e},n)=>Be(n.allTests().map((n=>au(n,e)))),ou=async e=>{try{await Jc(e)}catch(e){R.error(e.message),R.error(JSON.stringify(e,null,4)),R.redText(A.stopped),process.exit(1)}},ru=async(e,n,t)=>{var a,i,o;const r=n.shard;e.config=n;const s=e.currentShard=null!==(a=null==r?void 0:r.current)&&void 0!==a?a:0;C.setContext({ciBuildId:e.ciBuildId,currentShard:null==r?void 0:r.current,rootDir:n.rootDir}),e.totalTestCount=t.allTests().length,e.rootDir=n.rootDir;const c={commitId:tu({command:"git rev-parse HEAD",messageOnError:F.failedToGetCommitSha}),commitName:tu({command:"git show-branch --no-name HEAD",messageOnError:F.failedToGetCommitMessage}),author:tu({command:"git show -s --format='%an' HEAD",messageOnError:F.failedToGetBranch}),branch:tu({command:"git branch --show-current",messageOnError:F.failedToGetBranch}),tags:"string"==typeof e.tags?e.tags.split(","):e.tags,ciBuildId:e.ciBuildId,configuration:{...n,baseDir:process.cwd()},shards:Mn({currentShard:s})};try{if(await Kc(c),e.hasRunStarted=!0,0===e.totalTestCount)return void R.redText(F.noTestsToReport);await ou(e.ciBuildId),e.heartbeatInterval=setInterval((async()=>await ou(e.ciBuildId)),45e3);const{data:a}=await Yc(e.ciBuildId,{testEntities:iu(n,t),shard:s});e.attempts=a,R.log(Zc.testData(e.ciBuildId,r))}catch(a){e.shouldNotReportTest=!0;const r=a,s=null===(i=r.response)||void 0===i?void 0:i.data;R.error(null!==(o=null==s?void 0:s.error)&&void 0!==o?o:r.message),R.error(F.failedToInitializeRun),await Jn({context:{...c,testEntities:iu(n,t)},error:a,title:"onBegin"}),((e,n)=>{var t,a;const{error:i}=e instanceof Sc&&(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||{error:void 0},o=e instanceof Sc?null===(a=null==e?void 0:e.response)||void 0===a?void 0:a.status:void 0;n.shouldNotReportTest=!0,"Project does not exist."===i&&404===o?(R.redText(F.invalidProjectKey),process.exit(1)):"Could not authenticate, invalid API Key"===i&&401===o||"api-key"===n.apiKey?(R.redText(F.invalidApiKey),process.exit(1)):[g,y].includes(i||"")&&422===o?(R.redText(F.duplicateCiBuildId),process.exit(1)):(422===o&&(process.kill(process.pid,"SIGKILL"),process.exit(1)),Vn(o)&&R.yellowText(null!=i?i:null==e?void 0:e.message),R.yellowText(F.testsWillNotBeReported))})(r,e),clearInterval(e.heartbeatInterval)}},su=(e,n,t)=>Ac.post(`${Wc}/reporter/runs/${e}/test_entities/${n}/attempts`,t),cu=({ciBuildId:e,historyId:n,id:t,payload:a})=>Ac.put(`${Wc}/reporter/runs/${e}/test_entities/${n}/attempts/${t}`,a),uu=["screenshot","video","trace","lighthouse"],pu=({location:e,snippet:n})=>{if(!e)return null;const{file:t,line:a,column:i}=e;return`# ${t} (${a}:${i}) \n\n\n ${n}`},lu={KB:1024,MB:Math.pow(1024,2)},du=(e,n)=>parseFloat((e/lu[n]).toFixed(2));var mu=class{constructor(e,n,t){this.etaBufferLength=e||100,this.valueBuffer=[t],this.timeBuffer=[n],this.eta="0"}update(e,n,t){this.valueBuffer.push(n),this.timeBuffer.push(e),this.calculate(t-n)}getTime(){return this.eta}calculate(e){const n=this.valueBuffer.length,t=Math.min(this.etaBufferLength,n),a=(this.valueBuffer[n-1]-this.valueBuffer[n-t])/(this.timeBuffer[n-1]-this.timeBuffer[n-t]);this.valueBuffer=this.valueBuffer.slice(-this.etaBufferLength),this.timeBuffer=this.timeBuffer.slice(-this.etaBufferLength);const i=Math.ceil(e/a/1e3);isNaN(i)?this.eta="NULL":isFinite(i)?this.eta=i>1e7?"INF":i<0?0:i:this.eta="INF"}};const fu=h;var hu=class{constructor(e){this.stream=e,this.linewrap=!0,this.dy=0}cursorSave(){this.stream.isTTY&&this.stream.write("7")}cursorRestore(){this.stream.isTTY&&this.stream.write("8")}cursor(e){this.stream.isTTY&&(e?this.stream.write("[?25h"):this.stream.write("[?25l"))}cursorTo(e=null,n=null){this.stream.isTTY&&fu.cursorTo(this.stream,e,n)}cursorRelative(e=null,n=null){this.stream.isTTY&&(this.dy=this.dy+n,fu.moveCursor(this.stream,e,n))}cursorRelativeReset(){this.stream.isTTY&&(fu.moveCursor(this.stream,0,-this.dy),fu.cursorTo(this.stream,0,null),this.dy=0)}clearRight(){this.stream.isTTY&&fu.clearLine(this.stream,1)}clearLine(){this.stream.isTTY&&fu.clearLine(this.stream,0)}clearBottom(){this.stream.isTTY&&fu.clearScreenDown(this.stream)}newline(){this.stream.write("\n"),this.dy++}write(e,n=!1){!0===this.linewrap&&!1===n?this.stream.write(e.substr(0,this.getWidth())):this.stream.write(e)}lineWrapping(e){this.stream.isTTY&&(this.linewrap=e,e?this.stream.write("[?7h"):this.stream.write("[?7l"))}isTTY(){return!0===this.stream.isTTY}getWidth(){return this.stream.columns||(this.stream.isTTY?80:200)}},vu={exports:{}};const xu=({onlyFirst:e=!1}={})=>{const n=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(n,e?void 0:"g")};var bu={exports:{}};const gu=e=>!Number.isNaN(e)&&(e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141));bu.exports=gu,bu.exports.default=gu;const yu=e=>"string"==typeof e?e.replace(xu(),""):e,Du=bu.exports,wu=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g},_u=e=>{if("string"!=typeof e||0===e.length)return 0;if(0===(e=yu(e)).length)return 0;e=e.replace(wu()," ");let n=0;for(let t=0;t<e.length;t++){const a=e.codePointAt(t);a<=31||a>=127&&a<=159||(a>=768&&a<=879||(a>65535&&t++,n+=Du(a)?2:1))}return n};vu.exports=_u,vu.exports.default=_u;var Eu=function(e,n,t){if(!0!==n.autopadding)return e;return"percentage"===t?(a=e,(n.autopaddingChar+a).slice(-3)):e;var a},Cu=function(e,n){const t=Math.round(e*n.barsize),a=n.barsize-t;return n.barCompleteString.substr(0,t)+n.barGlue+n.barIncompleteString.substr(0,a)},Fu=function(e,n,t){function a(e){return t?t*Math.round(e/t):e}function i(e){return(n.autopaddingChar+e).slice(-2)}return e>3600?i(Math.floor(e/3600))+"h"+i(a(e%3600/60))+"m":e>60?i(Math.floor(e/60))+"m"+i(a(e%60))+"s":e>10?i(a(e))+"s":i(e)+"s"};const ju=vu.exports,ku=Eu,Au=Cu,Tu=Fu;var Su=function(e,n,t){let a=e.format;const i=e.formatTime||Tu,o=e.formatValue||ku,r=e.formatBar||Au,s=Math.floor(100*n.progress)+"",c=n.stopTime||Date.now(),u=Math.round((c-n.startTime)/1e3),p=Object.assign({},t,{bar:r(n.progress,e),percentage:o(s,e,"percentage"),total:o(n.total,e,"total"),value:o(n.value,e,"value"),eta:o(n.eta,e,"eta"),eta_formatted:i(n.eta,e,5),duration:o(u,e,"duration"),duration_formatted:i(u,e,1)});a=a.replace(/\{(\w+)\}/g,(function(e,n){return void 0!==p[n]?p[n]:e}));const l=Math.max(0,n.maxWidth-ju(a)-2),d=Math.floor(l/2);switch(e.align){case"right":a=l>0?" ".repeat(l)+a:a;break;case"center":a=d>0?" ".repeat(d)+a:a}return a};function Ou(e,n){return null==e?n:e}var Ru={parse:function(e,n){const t={},a=Object.assign({},n,e);return t.throttleTime=1e3/Ou(a.fps,10),t.stream=Ou(a.stream,process.stderr),t.terminal=Ou(a.terminal,null),t.clearOnComplete=Ou(a.clearOnComplete,!1),t.stopOnComplete=Ou(a.stopOnComplete,!1),t.barsize=Ou(a.barsize,40),t.align=Ou(a.align,"left"),t.hideCursor=Ou(a.hideCursor,!1),t.linewrap=Ou(a.linewrap,!1),t.barGlue=Ou(a.barGlue,""),t.barCompleteChar=Ou(a.barCompleteChar,"="),t.barIncompleteChar=Ou(a.barIncompleteChar,"-"),t.format=Ou(a.format,"progress [{bar}] {percentage}% | ETA: {eta}s | {value}/{total}"),t.formatTime=Ou(a.formatTime,null),t.formatValue=Ou(a.formatValue,null),t.formatBar=Ou(a.formatBar,null),t.etaBufferLength=Ou(a.etaBuffer,10),t.etaAsynchronousUpdate=Ou(a.etaAsynchronousUpdate,!1),t.progressCalculationRelative=Ou(a.progressCalculationRelative,!1),t.synchronousUpdate=Ou(a.synchronousUpdate,!0),t.noTTYOutput=Ou(a.noTTYOutput,!1),t.notTTYSchedule=Ou(a.notTTYSchedule,2e3),t.emptyOnZero=Ou(a.emptyOnZero,!1),t.forceRedraw=Ou(a.forceRedraw,!1),t.autopadding=Ou(a.autopadding,!1),t.gracefulExit=Ou(a.gracefulExit,!1),t},assignDerivedOptions:function(e){return e.barCompleteString=e.barCompleteChar.repeat(e.barsize+1),e.barIncompleteString=e.barIncompleteChar.repeat(e.barsize+1),e.autopaddingChar=e.autopadding?Ou(e.autopaddingChar," "):"",e}};const Bu=mu,Pu=hu,Lu=Su,Iu=Ru,Nu=m;var Uu=class extends Nu{constructor(e){super(),this.options=Iu.assignDerivedOptions(e),this.terminal=this.options.terminal?this.options.terminal:new Pu(this.options.stream),this.value=0,this.startValue=0,this.total=100,this.lastDrawnString=null,this.startTime=null,this.stopTime=null,this.lastRedraw=Date.now(),this.eta=new Bu(this.options.etaBufferLength,0,0),this.payload={},this.isActive=!1,this.formatter="function"==typeof this.options.format?this.options.format:Lu}render(e=!1){const n={progress:this.getProgress(),eta:this.eta.getTime(),startTime:this.startTime,stopTime:this.stopTime,total:this.total,value:this.value,maxWidth:this.terminal.getWidth()};this.options.etaAsynchronousUpdate&&this.updateETA();const t=this.formatter(this.options,n,this.payload);(e||this.options.forceRedraw||this.options.noTTYOutput&&!this.terminal.isTTY()||this.lastDrawnString!=t)&&(this.emit("redraw-pre"),this.terminal.cursorTo(0,null),this.terminal.write(t),this.terminal.clearRight(),this.lastDrawnString=t,this.lastRedraw=Date.now(),this.emit("redraw-post"))}start(e,n,t){this.value=n||0,this.total=void 0!==e&&e>=0?e:100,this.startValue=n||0,this.payload=t||{},this.startTime=Date.now(),this.stopTime=null,this.lastDrawnString="",this.eta=new Bu(this.options.etaBufferLength,this.startTime,this.value),this.isActive=!0,this.emit("start",e,n)}stop(){this.isActive=!1,this.stopTime=Date.now(),this.emit("stop",this.total,this.value)}update(e,n={}){"number"==typeof e&&(this.value=e,this.eta.update(Date.now(),e,this.total));const t=("object"==typeof e?e:n)||{};this.emit("update",this.total,this.value);for(const e in t)this.payload[e]=t[e];this.value>=this.getTotal()&&this.options.stopOnComplete&&this.stop()}getProgress(){let e=this.value/this.total;return this.options.progressCalculationRelative&&(e=(this.value-this.startValue)/(this.total-this.startValue)),isNaN(e)&&(e=this.options&&this.options.emptyOnZero?0:1),e=Math.min(Math.max(e,0),1),e}increment(e=1,n={}){"object"==typeof e?this.update(this.value+1,e):this.update(this.value+e,n)}getTotal(){return this.total}setTotal(e){void 0!==e&&e>=0&&(this.total=e)}updateETA(){this.eta.update(Date.now(),this.value,this.total)}};const zu=Uu,qu=Ru;const Mu=hu,Hu=Uu,$u=Ru,Gu=m;var Wu={legacy:{format:"progress [{bar}] {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"=",barIncompleteChar:"-"},shades_classic:{format:" {bar} {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"█",barIncompleteChar:"░"},shades_grey:{format:" [90m{bar}[0m {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"█",barIncompleteChar:"░"},rect:{format:" {bar}■ {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"■",barIncompleteChar:" "}};const Ku=class extends zu{constructor(e,n){super(qu.parse(e,n)),this.timer=null,this.options.noTTYOutput&&!1===this.terminal.isTTY()&&(this.options.synchronousUpdate=!1),this.schedulingRate=this.terminal.isTTY()?this.options.throttleTime:this.options.notTTYSchedule,this.sigintCallback=null}render(){this.timer&&(clearTimeout(this.timer),this.timer=null),super.render(),this.options.noTTYOutput&&!1===this.terminal.isTTY()&&this.terminal.newline(),this.timer=setTimeout(this.render.bind(this),this.schedulingRate)}update(e,n){this.timer&&(super.update(e,n),this.options.synchronousUpdate&&this.lastRedraw+2*this.options.throttleTime<Date.now()&&this.render())}start(e,n,t){!1===this.options.noTTYOutput&&!1===this.terminal.isTTY()||(null===this.sigintCallback&&this.options.gracefulExit&&(this.sigintCallback=this.stop.bind(this),process.once("SIGINT",this.sigintCallback),process.once("SIGTERM",this.sigintCallback)),this.terminal.cursorSave(),!0===this.options.hideCursor&&this.terminal.cursor(!1),!1===this.options.linewrap&&this.terminal.lineWrapping(!1),super.start(e,n,t),this.render())}stop(){this.timer&&(this.sigintCallback&&(process.removeListener("SIGINT",this.sigintCallback),process.removeListener("SIGTERM",this.sigintCallback),this.sigintCallback=null),this.render(),super.stop(),clearTimeout(this.timer),this.timer=null,!0===this.options.hideCursor&&this.terminal.cursor(!0),!1===this.options.linewrap&&this.terminal.lineWrapping(!0),this.terminal.cursorRestore(),this.options.clearOnComplete?(this.terminal.cursorTo(0,null),this.terminal.clearLine()):this.terminal.newline())}},Vu=class extends Gu{constructor(e,n){super(),this.bars=[],this.options=$u.parse(e,n),this.options.synchronousUpdate=!1,this.terminal=this.options.terminal?this.options.terminal:new Mu(this.options.stream),this.timer=null,this.isActive=!1,this.schedulingRate=this.terminal.isTTY()?this.options.throttleTime:this.options.notTTYSchedule,this.loggingBuffer=[],this.sigintCallback=null}create(e,n,t,a={}){const i=new Hu(Object.assign({},this.options,{terminal:this.terminal},a));return this.bars.push(i),!1===this.options.noTTYOutput&&!1===this.terminal.isTTY()||(null===this.sigintCallback&&this.options.gracefulExit&&(this.sigintCallback=this.stop.bind(this),process.once("SIGINT",this.sigintCallback),process.once("SIGTERM",this.sigintCallback)),this.isActive||(!0===this.options.hideCursor&&this.terminal.cursor(!1),!1===this.options.linewrap&&this.terminal.lineWrapping(!1),this.timer=setTimeout(this.update.bind(this),this.schedulingRate)),this.isActive=!0,i.start(e,n,t),this.emit("start")),i}remove(e){const n=this.bars.indexOf(e);return!(n<0)&&(this.bars.splice(n,1),this.update(),this.terminal.newline(),this.terminal.clearBottom(),!0)}update(){if(this.timer&&(clearTimeout(this.timer),this.timer=null),this.emit("update-pre"),this.terminal.cursorRelativeReset(),this.emit("redraw-pre"),this.loggingBuffer.length>0)for(this.terminal.clearLine();this.loggingBuffer.length>0;)this.terminal.write(this.loggingBuffer.shift(),!0);for(let e=0;e<this.bars.length;e++)e>0&&this.terminal.newline(),this.bars[e].render();this.emit("redraw-post"),this.options.noTTYOutput&&!1===this.terminal.isTTY()&&(this.terminal.newline(),this.terminal.newline()),this.timer=setTimeout(this.update.bind(this),this.schedulingRate),this.emit("update-post"),this.options.stopOnComplete&&!this.bars.find((e=>e.isActive))&&this.stop()}stop(){if(clearTimeout(this.timer),this.timer=null,this.sigintCallback&&(process.removeListener("SIGINT",this.sigintCallback),process.removeListener("SIGTERM",this.sigintCallback),this.sigintCallback=null),this.isActive=!1,!0===this.options.hideCursor&&this.terminal.cursor(!0),!1===this.options.linewrap&&this.terminal.lineWrapping(!0),this.terminal.cursorRelativeReset(),this.emit("stop-pre-clear"),this.options.clearOnComplete)this.terminal.clearBottom();else{for(let e=0;e<this.bars.length;e++)e>0&&this.terminal.newline(),this.bars[e].render(),this.bars[e].stop();this.terminal.newline()}this.emit("stop")}log(e){this.loggingBuffer.push(e)}};var Ju={Bar:Ku,SingleBar:Ku,MultiBar:Vu,Presets:Wu,Format:{Formatter:Su,BarFormat:Cu,ValueFormat:Eu,TimeFormat:Fu}};const Yu=(e,n)=>"flaky"===e?e:n,Xu=async(e,{url:n,headers:t},a)=>{const i=e.byteLength/1024>1024?"MB":"KB";const o=new Ju.Bar({format:`Uploading ${a} [{bar}] | {value}/{total} ${i} - ETA: {eta_formatted}`,clearOnComplete:!0},Ju.Presets.rect);return o.start(du(e.byteLength,i),0),await((e,{url:n,headers:t},a)=>Ac.put(n,e,{...a,headers:t}))(e,{url:n,headers:t},{onUploadProgress:e=>{e.total&&e.lengthComputable&&o.update(du(e.loaded,i))}}),o};var Zu={exports:{}};
|
|
8
|
+
function(e){var n,t,i,o=Jt.exports,r=a.extname,s=/^\s*([^;\s]*)(?:;|\s|$)/,c=/^text\//i;function u(e){if(!e||"string"!=typeof e)return!1;var n=s.exec(e),t=n&&o[n[1].toLowerCase()];return t&&t.charset?t.charset:!(!n||!c.test(n[1]))&&"UTF-8"}e.charset=u,e.charsets={lookup:u},e.contentType=function(n){if(!n||"string"!=typeof n)return!1;var t=-1===n.indexOf("/")?e.lookup(n):n;if(!t)return!1;if(-1===t.indexOf("charset")){var a=e.charset(t);a&&(t+="; charset="+a.toLowerCase())}return t},e.extension=function(n){if(!n||"string"!=typeof n)return!1;var t=s.exec(n),a=t&&e.extensions[t[1].toLowerCase()];if(!a||!a.length)return!1;return a[0]},e.extensions=Object.create(null),e.lookup=function(n){if(!n||"string"!=typeof n)return!1;var t=r("x."+n).toLowerCase().substr(1);if(!t)return!1;return e.types[t]||!1},e.types=Object.create(null),n=e.extensions,t=e.types,i=["nginx","apache",void 0,"iana"],Object.keys(o).forEach((function(e){var a=o[e],r=a.extensions;if(r&&r.length){n[e]=r;for(var s=0;s<r.length;s++){var c=r[s];if(t[c]){var u=i.indexOf(o[t[c]].source),p=i.indexOf(a.source);if("application/octet-stream"!==t[c]&&(u>p||u===p&&"application/"===t[c].substr(0,12)))continue}t[c]=e}}}))}(Vt);var Yt=function(e){var n="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;n?n(e):setTimeout(e,0)},Xt=function(e){var n=!1;return Yt((function(){n=!0})),function(t,a){n?e(t,a):Yt((function(){e(t,a)}))}};var Zt=function(e){Object.keys(e.jobs).forEach(Qt.bind(e)),e.jobs={}};function Qt(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}var ea=Xt,na=Zt,ta=function(e,n,t,a){var i=t.keyedList?t.keyedList[t.index]:t.index;t.jobs[i]=function(e,n,t,a){var i;i=2==e.length?e(t,ea(a)):e(t,n,ea(a));return i}(n,i,e[i],(function(e,n){i in t.jobs&&(delete t.jobs[i],e?na(t):t.results[i]=n,a(e,t.results))}))};var aa=function(e,n){var t=!Array.isArray(e),a={index:0,keyedList:t||n?Object.keys(e):null,jobs:{},results:t?{}:[],size:t?Object.keys(e).length:e.length};n&&a.keyedList.sort(t?n:function(t,a){return n(e[t],e[a])});return a};var ia=Zt,oa=Xt,ra=function(e){if(!Object.keys(this.jobs).length)return;this.index=this.size,ia(this),oa(e)(null,this.results)};var sa=ta,ca=aa,ua=ra,pa=function(e,n,t){var a=ca(e);for(;a.index<(a.keyedList||e).length;)sa(e,n,a,(function(e,n){e?t(e,n):0!==Object.keys(a.jobs).length||t(null,a.results)})),a.index++;return ua.bind(a,t)};var la={exports:{}},da=ta,ma=aa,fa=ra;function ha(e,n){return e<n?-1:e>n?1:0}la.exports=function(e,n,t,a){var i=ma(e,t);return da(e,n,i,(function t(o,r){o?a(o,r):(i.index++,i.index<(i.keyedList||e).length?da(e,n,i,t):a(null,i.results))})),fa.bind(i,a)},la.exports.ascending=ha,la.exports.descending=function(e,n){return-1*ha(e,n)};var va=la.exports;var xa,ba,ga={parallel:pa,serial:function(e,n,t){return va(e,n,null,t)},serialOrdered:la.exports},ya=Object,Da=Error,wa=EvalError,_a=RangeError,Ea=ReferenceError,Ca=SyntaxError;function Fa(){return ba?xa:(ba=1,xa=TypeError)}var ja=URIError,ka=Math.abs,Aa=Math.floor,Ta=Math.max,Sa=Math.min,Oa=Math.pow,Ra=Math.round,Ba=Number.isNaN||function(e){return e!=e},Pa=Object.getOwnPropertyDescriptor;if(Pa)try{Pa([],"length")}catch(e){Pa=null}var La=Pa,Ia=Object.defineProperty||!1;if(Ia)try{Ia({},"a",{value:1})}catch(e){Ia=!1}var Na,Ua,za,qa,Ma,Ha,$a,Ga,Wa,Ka,Va,Ja,Ya,Xa,Za,Qa,ei,ni,ti,ai,ii,oi,ri,si,ci,ui,pi,li,di,mi=Ia;function fi(){return Ua?Na:(Ua=1,Na=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},n=Symbol("test"),t=Object(n);if("string"==typeof n)return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;for(var a in e[n]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==n)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,n);if(42!==o.value||!0!==o.enumerable)return!1}return!0})}function hi(){return Ha?Ma:(Ha=1,Ma="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function vi(){return Ga?$a:(Ga=1,$a=ya.getPrototypeOf||null)}function xi(){if(Ka)return Wa;Ka=1;var e=Object.prototype.toString,n=Math.max,t=function(e,n){for(var t=[],a=0;a<e.length;a+=1)t[a]=e[a];for(var i=0;i<n.length;i+=1)t[i+e.length]=n[i];return t};return Wa=function(a){var i=this;if("function"!=typeof i||"[object Function]"!==e.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,r=function(e,n){for(var t=[],a=n,i=0;a<e.length;a+=1,i+=1)t[i]=e[a];return t}(arguments,1),s=n(0,i.length-r.length),c=[],u=0;u<s;u++)c[u]="$"+u;if(o=Function("binder","return function ("+function(e,n){for(var t="",a=0;a<e.length;a+=1)t+=e[a],a+1<e.length&&(t+=n);return t}(c,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var e=i.apply(this,t(r,arguments));return Object(e)===e?e:this}return i.apply(a,t(r,arguments))})),i.prototype){var p=function(){};p.prototype=i.prototype,o.prototype=new p,p.prototype=null}return o},Wa}function bi(){if(Ja)return Va;Ja=1;var e=xi();return Va=Function.prototype.bind||e}function gi(){return Xa?Ya:(Xa=1,Ya=Function.prototype.call)}function yi(){return Qa?Za:(Qa=1,Za=Function.prototype.apply)}function Di(){if(ai)return ti;ai=1;var e=bi(),n=yi(),t=gi(),a=ni?ei:(ni=1,ei="undefined"!=typeof Reflect&&Reflect&&Reflect.apply);return ti=a||e.call(t,n)}function wi(){if(si)return ri;si=1;var e,n=function(){if(oi)return ii;oi=1;var e=bi(),n=Fa(),t=gi(),a=Di();return ii=function(i){if(i.length<1||"function"!=typeof i[0])throw new n("a function is required");return a(e,t,i)}}(),t=La;try{e=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!e&&t&&t(Object.prototype,"__proto__"),i=Object,o=i.getPrototypeOf;return ri=a&&"function"==typeof a.get?n([a.get]):"function"==typeof o&&function(e){return o(null==e?e:i(e))}}function _i(){if(li)return pi;li=1;var e=Function.prototype.call,n=Object.prototype.hasOwnProperty,t=bi();return pi=t.call(e,n)}var Ei=ya,Ci=Da,Fi=wa,ji=_a,ki=Ea,Ai=Ca,Ti=Fa(),Si=ja,Oi=ka,Ri=Aa,Bi=Ta,Pi=Sa,Li=Oa,Ii=Ra,Ni=function(e){return Ba(e)||0===e?e:e<0?-1:1},Ui=Function,zi=function(e){try{return Ui('"use strict"; return ('+e+").constructor;")()}catch(e){}},qi=La,Mi=mi,Hi=function(){throw new Ti},$i=qi?function(){try{return Hi}catch(e){try{return qi(arguments,"callee").get}catch(e){return Hi}}}():Hi,Gi=function(){if(qa)return za;qa=1;var e="undefined"!=typeof Symbol&&Symbol,n=fi();return za=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&n())))}}()(),Wi=function(){if(ui)return ci;ui=1;var e=hi(),n=vi(),t=wi();return ci=e?function(n){return e(n)}:n?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return n(e)}:t?function(e){return t(e)}:null}(),Ki=vi(),Vi=hi(),Ji=yi(),Yi=gi(),Xi={},Zi="undefined"!=typeof Uint8Array&&Wi?Wi(Uint8Array):di,Qi={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?di:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?di:ArrayBuffer,"%ArrayIteratorPrototype%":Gi&&Wi?Wi([][Symbol.iterator]()):di,"%AsyncFromSyncIteratorPrototype%":di,"%AsyncFunction%":Xi,"%AsyncGenerator%":Xi,"%AsyncGeneratorFunction%":Xi,"%AsyncIteratorPrototype%":Xi,"%Atomics%":"undefined"==typeof Atomics?di:Atomics,"%BigInt%":"undefined"==typeof BigInt?di:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?di:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?di:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?di:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Ci,"%eval%":eval,"%EvalError%":Fi,"%Float16Array%":"undefined"==typeof Float16Array?di:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?di:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?di:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?di:FinalizationRegistry,"%Function%":Ui,"%GeneratorFunction%":Xi,"%Int8Array%":"undefined"==typeof Int8Array?di:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?di:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?di:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Gi&&Wi?Wi(Wi([][Symbol.iterator]())):di,"%JSON%":"object"==typeof JSON?JSON:di,"%Map%":"undefined"==typeof Map?di:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Gi&&Wi?Wi((new Map)[Symbol.iterator]()):di,"%Math%":Math,"%Number%":Number,"%Object%":Ei,"%Object.getOwnPropertyDescriptor%":qi,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?di:Promise,"%Proxy%":"undefined"==typeof Proxy?di:Proxy,"%RangeError%":ji,"%ReferenceError%":ki,"%Reflect%":"undefined"==typeof Reflect?di:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?di:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Gi&&Wi?Wi((new Set)[Symbol.iterator]()):di,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?di:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Gi&&Wi?Wi(""[Symbol.iterator]()):di,"%Symbol%":Gi?Symbol:di,"%SyntaxError%":Ai,"%ThrowTypeError%":$i,"%TypedArray%":Zi,"%TypeError%":Ti,"%Uint8Array%":"undefined"==typeof Uint8Array?di:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?di:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?di:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?di:Uint32Array,"%URIError%":Si,"%WeakMap%":"undefined"==typeof WeakMap?di:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?di:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?di:WeakSet,"%Function.prototype.call%":Yi,"%Function.prototype.apply%":Ji,"%Object.defineProperty%":Mi,"%Object.getPrototypeOf%":Ki,"%Math.abs%":Oi,"%Math.floor%":Ri,"%Math.max%":Bi,"%Math.min%":Pi,"%Math.pow%":Li,"%Math.round%":Ii,"%Math.sign%":Ni,"%Reflect.getPrototypeOf%":Vi};if(Wi)try{null.error}catch(e){var eo=Wi(Wi(e));Qi["%Error.prototype%"]=eo}var no,to,ao=function e(n){var t;if("%AsyncFunction%"===n)t=zi("async function () {}");else if("%GeneratorFunction%"===n)t=zi("function* () {}");else if("%AsyncGeneratorFunction%"===n)t=zi("async function* () {}");else if("%AsyncGenerator%"===n){var a=e("%AsyncGeneratorFunction%");a&&(t=a.prototype)}else if("%AsyncIteratorPrototype%"===n){var i=e("%AsyncGenerator%");i&&Wi&&(t=Wi(i.prototype))}return Qi[n]=t,t},io={__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"]},oo=bi(),ro=_i(),so=oo.call(Yi,Array.prototype.concat),co=oo.call(Ji,Array.prototype.splice),uo=oo.call(Yi,String.prototype.replace),po=oo.call(Yi,String.prototype.slice),lo=oo.call(Yi,RegExp.prototype.exec),mo=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,fo=/\\(\\)?/g,ho=function(e,n){var t,a=e;if(ro(io,a)&&(a="%"+(t=io[a])[0]+"%"),ro(Qi,a)){var i=Qi[a];if(i===Xi&&(i=ao(a)),void 0===i&&!n)throw new Ti("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:t,name:a,value:i}}throw new Ai("intrinsic "+e+" does not exist!")};var vo=function(e,n){if("string"!=typeof e||0===e.length)throw new Ti("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof n)throw new Ti('"allowMissing" argument must be a boolean');if(null===lo(/^%?[^%]*%?$/,e))throw new Ai("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var t=function(e){var n=po(e,0,1),t=po(e,-1);if("%"===n&&"%"!==t)throw new Ai("invalid intrinsic syntax, expected closing `%`");if("%"===t&&"%"!==n)throw new Ai("invalid intrinsic syntax, expected opening `%`");var a=[];return uo(e,mo,(function(e,n,t,i){a[a.length]=t?uo(i,fo,"$1"):n||e})),a}(e),a=t.length>0?t[0]:"",i=ho("%"+a+"%",n),o=i.name,r=i.value,s=!1,c=i.alias;c&&(a=c[0],co(t,so([0,1],c)));for(var u=1,p=!0;u<t.length;u+=1){var l=t[u],d=po(l,0,1),m=po(l,-1);if(('"'===d||"'"===d||"`"===d||'"'===m||"'"===m||"`"===m)&&d!==m)throw new Ai("property names with quotes must have matching quotes");if("constructor"!==l&&p||(s=!0),ro(Qi,o="%"+(a+="."+l)+"%"))r=Qi[o];else if(null!=r){if(!(l in r)){if(!n)throw new Ti("base intrinsic for "+e+" exists, but the property is not available.");return}if(qi&&u+1>=t.length){var f=qi(r,l);r=(p=!!f)&&"get"in f&&!("originalValue"in f.get)?f.get:r[l]}else p=ro(r,l),r=r[l];p&&!s&&(Qi[o]=r)}}return r}("%Object.defineProperty%",!0),xo=function(){if(to)return no;to=1;var e=fi();return no=function(){return e()&&!!Symbol.toStringTag}}()(),bo=_i(),go=Fa(),yo=xo?Symbol.toStringTag:null,Do=Wt,wo=i,_o=a,Eo=r,Co=s,Fo=o.parse,jo=t,ko=u.Stream,Ao=Vt,To=ga,So=function(e,n){var t=arguments.length>2&&!!arguments[2]&&arguments[2].force,a=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(void 0!==t&&"boolean"!=typeof t||void 0!==a&&"boolean"!=typeof a)throw new go("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");!yo||!t&&bo(e,yo)||(vo?vo(e,yo,{configurable:!a,enumerable:!1,value:n,writable:!1}):e[yo]=n)},Oo=function(e,n){return Object.keys(n).forEach((function(t){e[t]=e[t]||n[t]})),e},Ro=Bo;function Bo(e){if(!(this instanceof Bo))return new Bo(e);for(var n in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Do.call(this),e=e||{})this[n]=e[n]}function Po(e){return Lt.isPlainObject(e)||Lt.isArray(e)}function Lo(e){return Lt.endsWith(e,"[]")?e.slice(0,-2):e}function Io(e,n,t){return e?e.concat(n).map((function(e,n){return e=Lo(e),!t&&n?"["+e+"]":e})).join(t?".":""):n}wo.inherits(Bo,Do),Bo.LINE_BREAK="\r\n",Bo.DEFAULT_CONTENT_TYPE="application/octet-stream",Bo.prototype.append=function(e,n,t){"string"==typeof(t=t||{})&&(t={filename:t});var a=Do.prototype.append.bind(this);if("number"==typeof n&&(n=""+n),Array.isArray(n))this._error(new Error("Arrays are not supported."));else{var i=this._multiPartHeader(e,n,t),o=this._multiPartFooter();a(i),a(n),a(o),this._trackLength(i,n,t)}},Bo.prototype._trackLength=function(e,n,t){var a=0;null!=t.knownLength?a+=+t.knownLength:Buffer.isBuffer(n)?a=n.length:"string"==typeof n&&(a=Buffer.byteLength(n)),this._valueLength+=a,this._overheadLength+=Buffer.byteLength(e)+Bo.LINE_BREAK.length,n&&(n.path||n.readable&&Object.prototype.hasOwnProperty.call(n,"httpVersion")||n instanceof ko)&&(t.knownLength||this._valuesToMeasure.push(n))},Bo.prototype._lengthRetriever=function(e,n){Object.prototype.hasOwnProperty.call(e,"fd")?null!=e.end&&e.end!=1/0&&null!=e.start?n(null,e.end+1-(e.start?e.start:0)):jo.stat(e.path,(function(t,a){var i;t?n(t):(i=a.size-(e.start?e.start:0),n(null,i))})):Object.prototype.hasOwnProperty.call(e,"httpVersion")?n(null,+e.headers["content-length"]):Object.prototype.hasOwnProperty.call(e,"httpModule")?(e.on("response",(function(t){e.pause(),n(null,+t.headers["content-length"])})),e.resume()):n("Unknown stream")},Bo.prototype._multiPartHeader=function(e,n,t){if("string"==typeof t.header)return t.header;var a,i=this._getContentDisposition(n,t),o=this._getContentType(n,t),r="",s={"Content-Disposition":["form-data",'name="'+e+'"'].concat(i||[]),"Content-Type":[].concat(o||[])};for(var c in"object"==typeof t.header&&Oo(s,t.header),s)if(Object.prototype.hasOwnProperty.call(s,c)){if(null==(a=s[c]))continue;Array.isArray(a)||(a=[a]),a.length&&(r+=c+": "+a.join("; ")+Bo.LINE_BREAK)}return"--"+this.getBoundary()+Bo.LINE_BREAK+r+Bo.LINE_BREAK},Bo.prototype._getContentDisposition=function(e,n){var t,a;return"string"==typeof n.filepath?t=_o.normalize(n.filepath).replace(/\\/g,"/"):n.filename||e.name||e.path?t=_o.basename(n.filename||e.name||e.path):e.readable&&Object.prototype.hasOwnProperty.call(e,"httpVersion")&&(t=_o.basename(e.client._httpMessage.path||"")),t&&(a='filename="'+t+'"'),a},Bo.prototype._getContentType=function(e,n){var t=n.contentType;return!t&&e.name&&(t=Ao.lookup(e.name)),!t&&e.path&&(t=Ao.lookup(e.path)),!t&&e.readable&&Object.prototype.hasOwnProperty.call(e,"httpVersion")&&(t=e.headers["content-type"]),t||!n.filepath&&!n.filename||(t=Ao.lookup(n.filepath||n.filename)),t||"object"!=typeof e||(t=Bo.DEFAULT_CONTENT_TYPE),t},Bo.prototype._multiPartFooter=function(){return function(e){var n=Bo.LINE_BREAK;0===this._streams.length&&(n+=this._lastBoundary()),e(n)}.bind(this)},Bo.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+Bo.LINE_BREAK},Bo.prototype.getHeaders=function(e){var n,t={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n.toLowerCase()]=e[n]);return t},Bo.prototype.setBoundary=function(e){this._boundary=e},Bo.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},Bo.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),n=this.getBoundary(),t=0,a=this._streams.length;t<a;t++)"function"!=typeof this._streams[t]&&(e=Buffer.isBuffer(this._streams[t])?Buffer.concat([e,this._streams[t]]):Buffer.concat([e,Buffer.from(this._streams[t])]),"string"==typeof this._streams[t]&&this._streams[t].substring(2,n.length+2)===n||(e=Buffer.concat([e,Buffer.from(Bo.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},Bo.prototype._generateBoundary=function(){for(var e="--------------------------",n=0;n<24;n++)e+=Math.floor(10*Math.random()).toString(16);this._boundary=e},Bo.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},Bo.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},Bo.prototype.getLength=function(e){var n=this._overheadLength+this._valueLength;this._streams.length&&(n+=this._lastBoundary().length),this._valuesToMeasure.length?To.parallel(this._valuesToMeasure,this._lengthRetriever,(function(t,a){t?e(t):(a.forEach((function(e){n+=e})),e(null,n))})):process.nextTick(e.bind(this,null,n))},Bo.prototype.submit=function(e,n){var t,a,i={method:"post"};return"string"==typeof e?(e=Fo(e),a=Oo({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},i)):(a=Oo(e,i)).port||(a.port="https:"==a.protocol?443:80),a.headers=this.getHeaders(e.headers),t="https:"==a.protocol?Co.request(a):Eo.request(a),this.getLength(function(e,a){if(e&&"Unknown stream"!==e)this._error(e);else if(a&&t.setHeader("Content-Length",a),this.pipe(t),n){var i,o=function(e,a){return t.removeListener("error",o),t.removeListener("response",i),n.call(this,e,a)};i=o.bind(this,null),t.on("error",o),t.on("response",i)}}.bind(this)),t},Bo.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},Bo.prototype.toString=function(){return"[object FormData]"},So(Bo,"FormData");const No=Lt.toFlatObject(Lt,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Uo(e,n,t){if(!Lt.isObject(e))throw new TypeError("target must be an object");n=n||new(Ro||FormData);const a=(t=Lt.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,n){return!Lt.isUndefined(n[e])}))).metaTokens,i=t.visitor||u,o=t.dots,r=t.indexes,s=(t.Blob||"undefined"!=typeof Blob&&Blob)&&Lt.isSpecCompliantForm(n);if(!Lt.isFunction(i))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Lt.isDate(e))return e.toISOString();if(!s&&Lt.isBlob(e))throw new It("Blob is not supported. Use a Buffer instead.");return Lt.isArrayBuffer(e)||Lt.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,t,i){let s=e;if(e&&!i&&"object"==typeof e)if(Lt.endsWith(t,"{}"))t=a?t:t.slice(0,-2),e=JSON.stringify(e);else if(Lt.isArray(e)&&function(e){return Lt.isArray(e)&&!e.some(Po)}(e)||(Lt.isFileList(e)||Lt.endsWith(t,"[]"))&&(s=Lt.toArray(e)))return t=Lo(t),s.forEach((function(e,a){!Lt.isUndefined(e)&&null!==e&&n.append(!0===r?Io([t],a,o):null===r?t:t+"[]",c(e))})),!1;return!!Po(e)||(n.append(Io(i,t,o),c(e)),!1)}const p=[],l=Object.assign(No,{defaultVisitor:u,convertValue:c,isVisitable:Po});if(!Lt.isObject(e))throw new TypeError("data must be an object");return function e(t,a){if(!Lt.isUndefined(t)){if(-1!==p.indexOf(t))throw Error("Circular reference detected in "+a.join("."));p.push(t),Lt.forEach(t,(function(t,o){!0===(!(Lt.isUndefined(t)||null===t)&&i.call(n,t,Lt.isString(o)?o.trim():o,a,l))&&e(t,a?a.concat(o):[o])})),p.pop()}}(e),n}function zo(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return n[e]}))}function qo(e,n){this._pairs=[],e&&Uo(e,this,n)}const Mo=qo.prototype;function Ho(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function $o(e,n,t){if(!n)return e;const a=t&&t.encode||Ho;Lt.isFunction(t)&&(t={serialize:t});const i=t&&t.serialize;let o;if(o=i?i(n,t):Lt.isURLSearchParams(n)?n.toString():new qo(n,t).toString(a),o){const n=e.indexOf("#");-1!==n&&(e=e.slice(0,n)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}Mo.append=function(e,n){this._pairs.push([e,n])},Mo.toString=function(e){const n=e?function(n){return e.call(this,n,zo)}:zo;return this._pairs.map((function(e){return n(e[0])+"="+n(e[1])}),"").join("&")};class Go{constructor(){this.handlers=[]}use(e,n,t){return this.handlers.push({fulfilled:e,rejected:n,synchronous:!!t&&t.synchronous,runWhen:t?t.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Lt.forEach(this.handlers,(function(n){null!==n&&e(n)}))}}var Wo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ko=o.URLSearchParams;const Vo="abcdefghijklmnopqrstuvwxyz",Jo="0123456789",Yo={DIGIT:Jo,ALPHA:Vo,ALPHA_DIGIT:Vo+Vo.toUpperCase()+Jo};var Xo={isNode:!0,classes:{URLSearchParams:Ko,FormData:Ro,Blob:"undefined"!=typeof Blob&&Blob||null},ALPHABET:Yo,generateString:(e=16,n=Yo.ALPHA_DIGIT)=>{let t="";const{length:a}=n,i=new Uint32Array(e);c.randomFillSync(i);for(let o=0;o<e;o++)t+=n[i[o]%a];return t},protocols:["http","https","file","data"]};const Zo="undefined"!=typeof window&&"undefined"!=typeof document,Qo="object"==typeof navigator&&navigator||void 0,er=Zo&&(!Qo||["ReactNative","NativeScript","NS"].indexOf(Qo.product)<0),nr="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,tr=Zo&&window.location.href||"http://localhost";var ar={...Object.freeze({__proto__:null,hasBrowserEnv:Zo,hasStandardBrowserEnv:er,hasStandardBrowserWebWorkerEnv:nr,navigator:Qo,origin:tr}),...Xo};function ir(e){function n(e,t,a,i){let o=e[i++];if("__proto__"===o)return!0;const r=Number.isFinite(+o),s=i>=e.length;if(o=!o&&Lt.isArray(a)?a.length:o,s)return Lt.hasOwnProp(a,o)?a[o]=[a[o],t]:a[o]=t,!r;a[o]&&Lt.isObject(a[o])||(a[o]=[]);return n(e,t,a[o],i)&&Lt.isArray(a[o])&&(a[o]=function(e){const n={},t=Object.keys(e);let a;const i=t.length;let o;for(a=0;a<i;a++)o=t[a],n[o]=e[o];return n}(a[o])),!r}if(Lt.isFormData(e)&&Lt.isFunction(e.entries)){const t={};return Lt.forEachEntry(e,((e,a)=>{n(function(e){return Lt.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),a,t,0)})),t}return null}const or={transitional:Wo,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const t=n.getContentType()||"",a=t.indexOf("application/json")>-1,i=Lt.isObject(e);i&&Lt.isHTMLForm(e)&&(e=new FormData(e));if(Lt.isFormData(e))return a?JSON.stringify(ir(e)):e;if(Lt.isArrayBuffer(e)||Lt.isBuffer(e)||Lt.isStream(e)||Lt.isFile(e)||Lt.isBlob(e)||Lt.isReadableStream(e))return e;if(Lt.isArrayBufferView(e))return e.buffer;if(Lt.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(t.indexOf("application/x-www-form-urlencoded")>-1)return function(e,n){return Uo(e,new ar.classes.URLSearchParams,Object.assign({visitor:function(e,n,t,a){return ar.isNode&&Lt.isBuffer(e)?(this.append(n,e.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},n))}(e,this.formSerializer).toString();if((o=Lt.isFileList(e))||t.indexOf("multipart/form-data")>-1){const n=this.env&&this.env.FormData;return Uo(o?{"files[]":e}:e,n&&new n,this.formSerializer)}}return i||a?(n.setContentType("application/json",!1),function(e,n,t){if(Lt.isString(e))try{return(n||JSON.parse)(e),Lt.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(t||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const n=this.transitional||or.transitional,t=n&&n.forcedJSONParsing,a="json"===this.responseType;if(Lt.isResponse(e)||Lt.isReadableStream(e))return e;if(e&&Lt.isString(e)&&(t&&!this.responseType||a)){const t=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(e){if(t){if("SyntaxError"===e.name)throw It.from(e,It.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ar.classes.FormData,Blob:ar.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Lt.forEach(["delete","get","head","post","put","patch"],(e=>{or.headers[e]={}}));const rr=Lt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const sr=Symbol("internals");function cr(e){return e&&String(e).trim().toLowerCase()}function ur(e){return!1===e||null==e?e:Lt.isArray(e)?e.map(ur):String(e)}function pr(e,n,t,a,i){return Lt.isFunction(a)?a.call(this,n,t):(i&&(n=t),Lt.isString(n)?Lt.isString(a)?-1!==n.indexOf(a):Lt.isRegExp(a)?a.test(n):void 0:void 0)}let lr=class{constructor(e){e&&this.set(e)}set(e,n,t){const a=this;function i(e,n,t){const i=cr(n);if(!i)throw new Error("header name must be a non-empty string");const o=Lt.findKey(a,i);(!o||void 0===a[o]||!0===t||void 0===t&&!1!==a[o])&&(a[o||n]=ur(e))}const o=(e,n)=>Lt.forEach(e,((e,t)=>i(e,t,n)));if(Lt.isPlainObject(e)||e instanceof this.constructor)o(e,n);else if(Lt.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const n={};let t,a,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),t=e.substring(0,i).trim().toLowerCase(),a=e.substring(i+1).trim(),!t||n[t]&&rr[t]||("set-cookie"===t?n[t]?n[t].push(a):n[t]=[a]:n[t]=n[t]?n[t]+", "+a:a)})),n})(e),n);else if(Lt.isHeaders(e))for(const[n,a]of e.entries())i(a,n,t);else null!=e&&i(n,e,t);return this}get(e,n){if(e=cr(e)){const t=Lt.findKey(this,e);if(t){const e=this[t];if(!n)return e;if(!0===n)return function(e){const n=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=t.exec(e);)n[a[1]]=a[2];return n}(e);if(Lt.isFunction(n))return n.call(this,e,t);if(Lt.isRegExp(n))return n.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=cr(e)){const t=Lt.findKey(this,e);return!(!t||void 0===this[t]||n&&!pr(0,this[t],t,n))}return!1}delete(e,n){const t=this;let a=!1;function i(e){if(e=cr(e)){const i=Lt.findKey(t,e);!i||n&&!pr(0,t[i],i,n)||(delete t[i],a=!0)}}return Lt.isArray(e)?e.forEach(i):i(e),a}clear(e){const n=Object.keys(this);let t=n.length,a=!1;for(;t--;){const i=n[t];e&&!pr(0,this[i],i,e,!0)||(delete this[i],a=!0)}return a}normalize(e){const n=this,t={};return Lt.forEach(this,((a,i)=>{const o=Lt.findKey(t,i);if(o)return n[o]=ur(a),void delete n[i];const r=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,n,t)=>n.toUpperCase()+t))}(i):String(i).trim();r!==i&&delete n[i],n[r]=ur(a),t[r]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return Lt.forEach(this,((t,a)=>{null!=t&&!1!==t&&(n[a]=e&&Lt.isArray(t)?t.join(", "):t)})),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,n])=>e+": "+n)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const t=new this(e);return n.forEach((e=>t.set(e))),t}static accessor(e){const n=(this[sr]=this[sr]={accessors:{}}).accessors,t=this.prototype;function a(e){const a=cr(e);n[a]||(!function(e,n){const t=Lt.toCamelCase(" "+n);["get","set","has"].forEach((a=>{Object.defineProperty(e,a+t,{value:function(e,t,i){return this[a].call(this,n,e,t,i)},configurable:!0})}))}(t,e),n[a]=!0)}return Lt.isArray(e)?e.forEach(a):a(e),this}};function dr(e,n){const t=this||or,a=n||t,i=lr.from(a.headers);let o=a.data;return Lt.forEach(e,(function(e){o=e.call(t,o,i.normalize(),n?n.status:void 0)})),i.normalize(),o}function mr(e){return!(!e||!e.__CANCEL__)}function fr(e,n,t){It.call(this,null==e?"canceled":e,It.ERR_CANCELED,n,t),this.name="CanceledError"}function hr(e,n,t){const a=t.config.validateStatus;t.status&&a&&!a(t.status)?n(new It("Request failed with status code "+t.status,[It.ERR_BAD_REQUEST,It.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t)):e(t)}function vr(e,n,t){let a=!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(n);return e&&(a||0==t)?function(e,n){return n?e.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):e}(e,n):n}lr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Lt.reduceDescriptors(lr.prototype,(({value:e},n)=>{let t=n[0].toUpperCase()+n.slice(1);return{get:()=>e,set(e){this[t]=e}}})),Lt.freezeMethods(lr),Lt.inherits(fr,It,{__CANCEL__:!0});var xr={},br=o.parse,gr={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},yr=String.prototype.endsWith||function(e){return e.length<=this.length&&-1!==this.indexOf(e,this.length-e.length)};function Dr(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}xr.getProxyForUrl=function(e){var n="string"==typeof e?br(e):e||{},t=n.protocol,a=n.host,i=n.port;if("string"!=typeof a||!a||"string"!=typeof t)return"";if(t=t.split(":",1)[0],!function(e,n){var t=(Dr("npm_config_no_proxy")||Dr("no_proxy")).toLowerCase();if(!t)return!0;if("*"===t)return!1;return t.split(/[,\s]/).every((function(t){if(!t)return!0;var a=t.match(/^(.+):(\d+)$/),i=a?a[1]:t,o=a?parseInt(a[2]):0;return!(!o||o===n)||(/^[.*]/.test(i)?("*"===i.charAt(0)&&(i=i.slice(1)),!yr.call(e,i)):e!==i)}))}(a=a.replace(/:\d*$/,""),i=parseInt(i)||gr[t]||0))return"";var o=Dr("npm_config_"+t+"_proxy")||Dr(t+"_proxy")||Dr("npm_config_proxy")||Dr("all_proxy");return o&&-1===o.indexOf("://")&&(o=t+"://"+o),o};var wr,_r,Er,Cr,Fr,jr={exports:{}},kr={exports:{}},Ar={exports:{}};function Tr(){if(_r)return wr;_r=1;var e=1e3,n=60*e,t=60*n,a=24*t,i=7*a,o=365.25*a;function r(e,n,t,a){var i=n>=1.5*t;return Math.round(e/t)+" "+a+(i?"s":"")}return wr=function(s,c){c=c||{};var u=typeof s;if("string"===u&&s.length>0)return function(r){if((r=String(r)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(r);if(!s)return;var c=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*o;case"weeks":case"week":case"w":return c*i;case"days":case"day":case"d":return c*a;case"hours":case"hour":case"hrs":case"hr":case"h":return c*t;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(s);if("number"===u&&isFinite(s))return c.long?function(i){var o=Math.abs(i);if(o>=a)return r(i,o,a,"day");if(o>=t)return r(i,o,t,"hour");if(o>=n)return r(i,o,n,"minute");if(o>=e)return r(i,o,e,"second");return i+" ms"}(s):function(i){var o=Math.abs(i);if(o>=a)return Math.round(i/a)+"d";if(o>=t)return Math.round(i/t)+"h";if(o>=n)return Math.round(i/n)+"m";if(o>=e)return Math.round(i/e)+"s";return i+"ms"}(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))},wr}function Sr(){if(Cr)return Er;return Cr=1,Er=function(e){function n(e){let a,i,o,r=null;function s(...e){if(!s.enabled)return;const t=s,i=Number(new Date),o=i-(a||i);t.diff=o,t.prev=a,t.curr=i,a=i,e[0]=n.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let r=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((a,i)=>{if("%%"===a)return"%";r++;const o=n.formatters[i];if("function"==typeof o){const n=e[r];a=o.call(t,n),e.splice(r,1),r--}return a})),n.formatArgs.call(t,e);(t.log||n.log).apply(t,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=t,s.destroy=n.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==r?r:(i!==n.namespaces&&(i=n.namespaces,o=n.enabled(e)),o),set:e=>{r=e}}),"function"==typeof n.init&&n.init(s),s}function t(e,t){const a=n(this.namespace+(void 0===t?":":t)+e);return a.log=this.log,a}function a(e,n){let t=0,a=0,i=-1,o=0;for(;t<e.length;)if(a<n.length&&(n[a]===e[t]||"*"===n[a]))"*"===n[a]?(i=a,o=t,a++):(t++,a++);else{if(-1===i)return!1;a=i+1,o++,t=o}for(;a<n.length&&"*"===n[a];)a++;return a===n.length}return n.debug=n,n.default=n,n.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},n.disable=function(){const e=[...n.names,...n.skips.map((e=>"-"+e))].join(",");return n.enable(""),e},n.enable=function(e){n.save(e),n.namespaces=e,n.names=[],n.skips=[];const t=("string"==typeof e?e:"").trim().replace(" ",",").split(",").filter(Boolean);for(const e of t)"-"===e[0]?n.skips.push(e.slice(1)):n.names.push(e)},n.enabled=function(e){for(const t of n.skips)if(a(e,t))return!1;for(const t of n.names)if(a(e,t))return!0;return!1},n.humanize=Tr(),n.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((t=>{n[t]=e[t]})),n.names=[],n.skips=[],n.formatters={},n.selectColor=function(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]},n.enable(n.load()),n},Er}var Or,Rr,Br,Pr,Lr,Ir,Nr,Ur={exports:{}};function zr(){return Rr?Or:(Rr=1,Or=(e,n=process.argv)=>{const t=e.startsWith("-")?"":1===e.length?"-":"--",a=n.indexOf(t+e),i=n.indexOf("--");return-1!==a&&(-1===i||a<i)})}function qr(){return Lr||(Lr=1,function(n,t){const a=l,o=i;t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let a=0;a<n.length;a++)e.inspectOpts[n[a]]=t.inspectOpts[n[a]]},t.log=function(...e){return process.stderr.write(o.formatWithOptions(t.inspectOpts,...e)+"\n")},t.formatArgs=function(e){const{namespace:a,useColors:i}=this;if(i){const t=this.color,i="[3"+(t<8?t:"8;5;"+t),o=` ${i};1m${a} [0m`;e[0]=o+e[0].split("\n").join("\n"+o),e.push(i+"m+"+n.exports.humanize(this.diff)+"[0m")}else e[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+a+" "+e[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):a.isatty(process.stderr.fd)},t.destroy=o.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const n=function(){if(Pr)return Br;Pr=1;const n=e,t=l,a=zr(),{env:i}=process;let o;function r(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function s(e,t){if(0===o)return 0;if(a("color=16m")||a("color=full")||a("color=truecolor"))return 3;if(a("color=256"))return 2;if(e&&!t&&void 0===o)return 0;const r=o||0;if("dumb"===i.TERM)return r;if("win32"===process.platform){const e=n.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in i))||"codeship"===i.CI_NAME?1:r;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if("truecolor"===i.COLORTERM)return 3;if("TERM_PROGRAM"in i){const e=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:r}return a("no-color")||a("no-colors")||a("color=false")||a("color=never")?o=0:(a("color")||a("colors")||a("color=true")||a("color=always"))&&(o=1),"FORCE_COLOR"in i&&(o="true"===i.FORCE_COLOR?1:"false"===i.FORCE_COLOR?0:0===i.FORCE_COLOR.length?1:Math.min(parseInt(i.FORCE_COLOR,10),3)),Br={supportsColor:function(e){return r(s(e,e&&e.isTTY))},stdout:r(s(!0,t.isatty(1))),stderr:r(s(!0,t.isatty(2)))},Br}();n&&(n.stderr||n).level>=2&&(t.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(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,n)=>{const t=n.substring(6).toLowerCase().replace(/_([a-z])/g,((e,n)=>n.toUpperCase()));let a=process.env[n];return a=!!/^(yes|on|true|enabled)$/i.test(a)||!/^(no|off|false|disabled)$/i.test(a)&&("null"===a?null:Number(a)),e[t]=a,e}),{}),n.exports=Sr()(t);const{formatters:r}=n.exports;r.o=function(e){return this.inspectOpts.colors=this.useColors,o.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},r.O=function(e){return this.inspectOpts.colors=this.useColors,o.inspect(e,this.inspectOpts)}}(Ur,Ur.exports)),Ur.exports}function Mr(){return Ir||(Ir=1,e=kr,"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=(Fr||(Fr=1,function(e,n){n.formatArgs=function(n){if(n[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+n[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const t="color: "+this.color;n.splice(1,0,t,"color: inherit");let a=0,i=0;n[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(a++,"%c"===e&&(i=a))})),n.splice(i,0,t)},n.save=function(e){try{e?n.storage.setItem("debug",e):n.storage.removeItem("debug")}catch(e){}},n.load=function(){let e;try{e=n.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},n.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},n.storage=function(){try{return localStorage}catch(e){}}(),n.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`."))}})(),n.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"],n.log=console.debug||console.log||(()=>{}),e.exports=Sr()(n);const{formatters:t}=e.exports;t.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(Ar,Ar.exports)),Ar.exports):e.exports=qr()),kr.exports;var e}var Hr,$r,Gr,Wr=o,Kr=Wr.URL,Vr=r,Jr=s,Yr=u.Writable,Xr=p,Zr=function(){if(!Nr){try{Nr=Mr()("follow-redirects")}catch(e){}"function"!=typeof Nr&&(Nr=function(){})}Nr.apply(null,arguments)};Hr="undefined"!=typeof process,$r="undefined"!=typeof window&&"undefined"!=typeof document,Gr=gs(Error.captureStackTrace),Hr||!$r&&Gr||console.warn("The follow-redirects package should be excluded from browser builds.");var Qr=!1;try{Xr(new Kr(""))}catch(e){Qr="ERR_INVALID_URL"===e.code}var es=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],ns=["abort","aborted","connect","error","socket","timeout"],ts=Object.create(null);ns.forEach((function(e){ts[e]=function(n,t,a){this._redirectable.emit(e,n,t,a)}}));var as=vs("ERR_INVALID_URL","Invalid URL",TypeError),is=vs("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),os=vs("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",is),rs=vs("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),ss=vs("ERR_STREAM_WRITE_AFTER_END","write after end"),cs=Yr.prototype.destroy||ls;function us(e,n){Yr.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],n&&this.on("response",n);var t=this;this._onNativeResponse=function(e){try{t._processResponse(e)}catch(e){t.emit("error",e instanceof is?e:new is({cause:e}))}},this._performRequest()}function ps(e){var n={maxRedirects:21,maxBodyLength:10485760},t={};return Object.keys(e).forEach((function(a){var i=a+":",o=t[i]=e[a],r=n[a]=Object.create(o);Object.defineProperties(r,{request:{value:function(e,a,o){var r;return r=e,Kr&&r instanceof Kr?e=fs(e):bs(e)?e=fs(ds(e)):(o=a,a=ms(e),e={protocol:i}),gs(a)&&(o=a,a=null),(a=Object.assign({maxRedirects:n.maxRedirects,maxBodyLength:n.maxBodyLength},e,a)).nativeProtocols=t,bs(a.host)||bs(a.hostname)||(a.hostname="::1"),Xr.equal(a.protocol,i,"protocol mismatch"),Zr("options",a),new us(a,o)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,n,t){var a=r.request(e,n,t);return a.end(),a},configurable:!0,enumerable:!0,writable:!0}})})),n}function ls(){}function ds(e){var n;if(Qr)n=new Kr(e);else if(!bs((n=ms(Wr.parse(e))).protocol))throw new as({input:e});return n}function ms(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new as({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new as({input:e.href||e});return e}function fs(e,n){var t=n||{};for(var a of es)t[a]=e[a];return t.hostname.startsWith("[")&&(t.hostname=t.hostname.slice(1,-1)),""!==t.port&&(t.port=Number(t.port)),t.path=t.search?t.pathname+t.search:t.pathname,t}function hs(e,n){var t;for(var a in n)e.test(a)&&(t=n[a],delete n[a]);return null==t?void 0:String(t).trim()}function vs(e,n,t){function a(t){gs(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,t||{}),this.code=e,this.message=this.cause?n+": "+this.cause.message:n}return a.prototype=new(t||Error),Object.defineProperties(a.prototype,{constructor:{value:a,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),a}function xs(e,n){for(var t of ns)e.removeListener(t,ts[t]);e.on("error",ls),e.destroy(n)}function bs(e){return"string"==typeof e||e instanceof String}function gs(e){return"function"==typeof e}us.prototype=Object.create(Yr.prototype),us.prototype.abort=function(){xs(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},us.prototype.destroy=function(e){return xs(this._currentRequest,e),cs.call(this,e),this},us.prototype.write=function(e,n,t){if(this._ending)throw new ss;if(!bs(e)&&("object"!=typeof(a=e)||!("length"in a)))throw new TypeError("data should be a string, Buffer or Uint8Array");var a;gs(n)&&(t=n,n=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:n}),this._currentRequest.write(e,n,t)):(this.emit("error",new rs),this.abort()):t&&t()},us.prototype.end=function(e,n,t){if(gs(e)?(t=e,e=n=null):gs(n)&&(t=n,n=null),e){var a=this,i=this._currentRequest;this.write(e,n,(function(){a._ended=!0,i.end(null,null,t)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,t)},us.prototype.setHeader=function(e,n){this._options.headers[e]=n,this._currentRequest.setHeader(e,n)},us.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},us.prototype.setTimeout=function(e,n){var t=this;function a(n){n.setTimeout(e),n.removeListener("timeout",n.destroy),n.addListener("timeout",n.destroy)}function i(n){t._timeout&&clearTimeout(t._timeout),t._timeout=setTimeout((function(){t.emit("timeout"),o()}),e),a(n)}function o(){t._timeout&&(clearTimeout(t._timeout),t._timeout=null),t.removeListener("abort",o),t.removeListener("error",o),t.removeListener("response",o),t.removeListener("close",o),n&&t.removeListener("timeout",n),t.socket||t._currentRequest.removeListener("socket",i)}return n&&this.on("timeout",n),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",a),this.on("abort",o),this.on("error",o),this.on("response",o),this.on("close",o),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){us.prototype[e]=function(n,t){return this._currentRequest[e](n,t)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(us.prototype,e,{get:function(){return this._currentRequest[e]}})})),us.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 n=e.path.indexOf("?");n<0?e.pathname=e.path:(e.pathname=e.path.substring(0,n),e.search=e.path.substring(n))}},us.prototype._performRequest=function(){var e=this._options.protocol,n=this._options.nativeProtocols[e];if(!n)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var t=e.slice(0,-1);this._options.agent=this._options.agents[t]}var a=this._currentRequest=n.request(this._options,this._onNativeResponse);for(var i of(a._redirectable=this,ns))a.on(i,ts[i]);if(this._currentUrl=/^\//.test(this._options.path)?Wr.format(this._options):this._options.path,this._isRedirect){var o=0,r=this,s=this._requestBodyBuffers;!function e(n){if(a===r._currentRequest)if(n)r.emit("error",n);else if(o<s.length){var t=s[o++];a.finished||a.write(t.data,t.encoding,e)}else r._ended&&a.end()}()}},us.prototype._processResponse=function(e){var n=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:n});var t,a=e.headers.location;if(!a||!1===this._options.followRedirects||n<300||n>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(xs(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new os;var i=this._options.beforeRedirect;i&&(t=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var o=this._options.method;((301===n||302===n)&&"POST"===this._options.method||303===n&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],hs(/^content-/i,this._options.headers));var r,s,c=hs(/^host$/i,this._options.headers),u=ds(this._currentUrl),p=c||u.host,l=/^\w+:/.test(a)?this._currentUrl:Wr.format(Object.assign(u,{host:p})),d=(r=a,s=l,Qr?new Kr(r,s):ds(Wr.resolve(s,r)));if(Zr("redirecting to",d.href),this._isRedirect=!0,fs(d,this._options),(d.protocol!==u.protocol&&"https:"!==d.protocol||d.host!==p&&!function(e,n){Xr(bs(e)&&bs(n));var t=e.length-n.length-1;return t>0&&"."===e[t]&&e.endsWith(n)}(d.host,p))&&hs(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),gs(i)){var m={headers:e.headers,statusCode:n},f={url:l,method:o,headers:t};i(this._options,m,f),this._sanitizeOptions(this._options)}this._performRequest()},jr.exports=ps({http:Vr,https:Jr}),jr.exports.wrap=ps;const ys="1.8.4";function Ds(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}const ws=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;const _s=Symbol("internals");class Es extends u.Transform{constructor(e){e=Lt.toFlatObject(e,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,((e,n)=>!Lt.isUndefined(n[e]))),super({readableHighWaterMark:e.chunkSize});const n=this[_s]={timeWindow:e.timeWindow,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",(e=>{"progress"===e&&(n.isCaptured||(n.isCaptured=!0))}))}_read(e){const n=this[_s];return n.onReadCallback&&n.onReadCallback(),super._read(e)}_transform(e,n,t){const a=this[_s],i=a.maxRate,o=this.readableHighWaterMark,r=a.timeWindow,s=i/(1e3/r),c=!1!==a.minChunkSize?Math.max(a.minChunkSize,.01*s):0,u=(e,n)=>{const t=Buffer.byteLength(e);a.bytesSeen+=t,a.bytes+=t,a.isCaptured&&this.emit("progress",a.bytesSeen),this.push(e)?process.nextTick(n):a.onReadCallback=()=>{a.onReadCallback=null,process.nextTick(n)}},p=(e,n)=>{const t=Buffer.byteLength(e);let p,l=null,d=o,m=0;if(i){const e=Date.now();(!a.ts||(m=e-a.ts)>=r)&&(a.ts=e,p=s-a.bytes,a.bytes=p<0?-p:0,m=0),p=s-a.bytes}if(i){if(p<=0)return setTimeout((()=>{n(null,e)}),r-m);p<d&&(d=p)}d&&t>d&&t-d>c&&(l=e.subarray(d),e=e.subarray(0,d)),u(e,l?()=>{process.nextTick(n,null,l)}:n)};p(e,(function e(n,a){if(n)return t(n);a?p(a,e):t(null)}))}}const{asyncIterator:Cs}=Symbol,Fs=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[Cs]?yield*e[Cs]():yield e},js=ar.ALPHABET.ALPHA_DIGIT+"-_",ks="function"==typeof TextEncoder?new TextEncoder:new i.TextEncoder,As="\r\n",Ts=ks.encode(As);class Ss{constructor(e,n){const{escapeName:t}=this.constructor,a=Lt.isString(n);let i=`Content-Disposition: form-data; name="${t(e)}"${!a&&n.name?`; filename="${t(n.name)}"`:""}${As}`;a?n=ks.encode(String(n).replace(/\r?\n|\r\n?/g,As)):i+=`Content-Type: ${n.type||"application/octet-stream"}${As}`,this.headers=ks.encode(i+As),this.contentLength=a?n.byteLength:n.size,this.size=this.headers.byteLength+this.contentLength+2,this.name=e,this.value=n}async*encode(){yield this.headers;const{value:e}=this;Lt.isTypedArray(e)?yield e:yield*Fs(e),yield Ts}static escapeName(e){return String(e).replace(/[\r\n"]/g,(e=>({"\r":"%0D","\n":"%0A",'"':"%22"}[e])))}}class Os extends u.Transform{__transform(e,n,t){this.push(e),t()}_transform(e,n,t){if(0!==e.length&&(this._transform=this.__transform,120!==e[0])){const e=Buffer.alloc(2);e[0]=120,e[1]=156,this.push(e,n)}this.__transform(e,n,t)}}const Rs=(e,n)=>Lt.isAsyncFn(e)?function(...t){const a=t.pop();e.apply(this,t).then((e=>{try{n?a(null,...n(e)):a(null,e)}catch(e){a(e)}}),a)}:e;const Bs=(e,n,t=3)=>{let a=0;const i=function(e,n){e=e||10;const t=new Array(e),a=new Array(e);let i,o=0,r=0;return n=void 0!==n?n:1e3,function(s){const c=Date.now(),u=a[r];i||(i=c),t[o]=s,a[o]=c;let p=r,l=0;for(;p!==o;)l+=t[p++],p%=e;if(o=(o+1)%e,o===r&&(r=(r+1)%e),c-i<n)return;const d=u&&c-u;return d?Math.round(1e3*l/d):void 0}}(50,250);return function(e,n){let t,a,i=0,o=1e3/n;const r=(n,o=Date.now())=>{i=o,t=null,a&&(clearTimeout(a),a=null),e.apply(null,n)};return[(...e)=>{const n=Date.now(),s=n-i;s>=o?r(e,n):(t=e,a||(a=setTimeout((()=>{a=null,r(t)}),o-s)))},()=>t&&r(t)]}((t=>{const o=t.loaded,r=t.lengthComputable?t.total:void 0,s=o-a,c=i(s);a=o;e({loaded:o,total:r,progress:r?o/r:void 0,bytes:s,rate:c||void 0,estimated:c&&r&&o<=r?(r-o)/c:void 0,event:t,lengthComputable:null!=r,[n?"download":"upload"]:!0})}),t)},Ps=(e,n)=>{const t=null!=e;return[a=>n[0]({lengthComputable:t,total:e,loaded:a}),n[1]]},Ls=e=>(...n)=>Lt.asap((()=>e(...n))),Is={flush:d.constants.Z_SYNC_FLUSH,finishFlush:d.constants.Z_SYNC_FLUSH},Ns={flush:d.constants.BROTLI_OPERATION_FLUSH,finishFlush:d.constants.BROTLI_OPERATION_FLUSH},Us=Lt.isFunction(d.createBrotliDecompress),{http:zs,https:qs}=jr.exports,Ms=/https:?/,Hs=ar.protocols.map((e=>e+":")),$s=(e,[n,t])=>(e.on("end",t).on("error",t),n);function Gs(e,n){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,n)}function Ws(e,n,t){let a=n;if(!a&&!1!==a){const e=xr.getProxyForUrl(t);e&&(a=new URL(e))}if(a){if(a.username&&(a.auth=(a.username||"")+":"+(a.password||"")),a.auth){(a.auth.username||a.auth.password)&&(a.auth=(a.auth.username||"")+":"+(a.auth.password||""));const n=Buffer.from(a.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+n}e.headers.host=e.hostname+(e.port?":"+e.port:"");const n=a.hostname||a.host;e.hostname=n,e.host=n,e.port=a.port,e.path=t,a.protocol&&(e.protocol=a.protocol.includes(":")?a.protocol:`${a.protocol}:`)}e.beforeRedirects.proxy=function(e){Ws(e,n,e.href)}}const Ks="undefined"!=typeof process&&"process"===Lt.kindOf(process),Vs=(e,n)=>(({address:e,family:n})=>{if(!Lt.isString(e))throw TypeError("address must be a string");return{address:e,family:n||(e.indexOf(".")<0?6:4)}})(Lt.isObject(e)?e:{address:e,family:n});var Js=Ks&&function(e){return n=async function(n,t,a){let{data:o,lookup:c,family:p}=e;const{responseType:l,responseEncoding:f}=e,h=e.method.toUpperCase();let v,x,b=!1;if(c){const e=Rs(c,(e=>Lt.isArray(e)?e:[e]));c=(n,t,a)=>{e(n,t,((e,n,i)=>{if(e)return a(e);const o=Lt.isArray(n)?n.map((e=>Vs(e))):[Vs(n,i)];t.all?a(e,o):a(e,o[0].address,o[0].family)}))}}const g=new m.EventEmitter,y=()=>{e.cancelToken&&e.cancelToken.unsubscribe(D),e.signal&&e.signal.removeEventListener("abort",D),g.removeAllListeners()};function D(n){g.emit("abort",!n||n.type?new fr(null,e,x):n)}a(((e,n)=>{v=!0,n&&(b=!0,y())})),g.once("abort",t),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(D),e.signal&&(e.signal.aborted?D():e.signal.addEventListener("abort",D)));const w=vr(e.baseURL,e.url,e.allowAbsoluteUrls),_=new URL(w,ar.hasBrowserEnv?ar.origin:void 0),E=_.protocol||Hs[0];if("data:"===E){let a;if("GET"!==h)return hr(n,t,{status:405,statusText:"method not allowed",headers:{},config:e});try{a=function(e,n,t){const a=t&&t.Blob||ar.classes.Blob,i=Ds(e);if(void 0===n&&a&&(n=!0),"data"===i){e=i.length?e.slice(i.length+1):e;const t=ws.exec(e);if(!t)throw new It("Invalid URL",It.ERR_INVALID_URL);const o=t[1],r=t[2],s=t[3],c=Buffer.from(decodeURIComponent(s),r?"base64":"utf8");if(n){if(!a)throw new It("Blob is not supported",It.ERR_NOT_SUPPORT);return new a([c],{type:o})}return c}throw new It("Unsupported protocol "+i,It.ERR_NOT_SUPPORT)}(e.url,"blob"===l,{Blob:e.env&&e.env.Blob})}catch(n){throw It.from(n,It.ERR_BAD_REQUEST,e)}return"text"===l?(a=a.toString(f),f&&"utf8"!==f||(a=Lt.stripBOM(a))):"stream"===l&&(a=u.Readable.from(a)),hr(n,t,{data:a,status:200,statusText:"OK",headers:new lr,config:e})}if(-1===Hs.indexOf(E))return t(new It("Unsupported protocol "+E,It.ERR_BAD_REQUEST,e));const C=lr.from(e.headers).normalize();C.set("User-Agent","axios/"+ys,!1);const{onUploadProgress:F,onDownloadProgress:j}=e,k=e.maxRate;let A,T;if(Lt.isSpecCompliantForm(o)){const e=C.getContentType(/boundary=([-_\w\d]{10,70})/i);o=((e,n,t)=>{const{tag:a="form-data-boundary",size:i=25,boundary:o=a+"-"+ar.generateString(i,js)}=t||{};if(!Lt.isFormData(e))throw TypeError("FormData instance required");if(o.length<1||o.length>70)throw Error("boundary must be 10-70 characters long");const r=ks.encode("--"+o+As),s=ks.encode("--"+o+"--"+As+As);let c=s.byteLength;const p=Array.from(e.entries()).map((([e,n])=>{const t=new Ss(e,n);return c+=t.size,t}));c+=r.byteLength*p.length,c=Lt.toFiniteNumber(c);const l={"Content-Type":`multipart/form-data; boundary=${o}`};return Number.isFinite(c)&&(l["Content-Length"]=c),n&&n(l),u.Readable.from(async function*(){for(const e of p)yield r,yield*e.encode();yield s}())})(o,(e=>{C.set(e)}),{tag:`axios-${ys}-boundary`,boundary:e&&e[1]||void 0})}else if(Lt.isFormData(o)&&Lt.isFunction(o.getHeaders)){if(C.set(o.getHeaders()),!C.hasContentLength())try{const e=await i.promisify(o.getLength).call(o);Number.isFinite(e)&&e>=0&&C.setContentLength(e)}catch(e){}}else if(Lt.isBlob(o)||Lt.isFile(o))o.size&&C.setContentType(o.type||"application/octet-stream"),C.setContentLength(o.size||0),o=u.Readable.from(Fs(o));else if(o&&!Lt.isStream(o)){if(Buffer.isBuffer(o));else if(Lt.isArrayBuffer(o))o=Buffer.from(new Uint8Array(o));else{if(!Lt.isString(o))return t(new It("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",It.ERR_BAD_REQUEST,e));o=Buffer.from(o,"utf-8")}if(C.setContentLength(o.length,!1),e.maxBodyLength>-1&&o.length>e.maxBodyLength)return t(new It("Request body larger than maxBodyLength limit",It.ERR_BAD_REQUEST,e))}const S=Lt.toFiniteNumber(C.getContentLength());let O,R;Lt.isArray(k)?(A=k[0],T=k[1]):A=T=k,o&&(F||A)&&(Lt.isStream(o)||(o=u.Readable.from(o,{objectMode:!1})),o=u.pipeline([o,new Es({maxRate:Lt.toFiniteNumber(A)})],Lt.noop),F&&o.on("progress",$s(o,Ps(S,Bs(Ls(F),!1,3))))),e.auth&&(O=(e.auth.username||"")+":"+(e.auth.password||"")),!O&&_.username&&(O=_.username+":"+_.password),O&&C.delete("authorization");try{R=$o(_.pathname+_.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(n){const a=new Error(n.message);return a.config=e,a.url=e.url,a.exists=!0,t(a)}C.set("Accept-Encoding","gzip, compress, deflate"+(Us?", br":""),!1);const B={path:R,method:h,headers:C.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:O,protocol:E,family:p,beforeRedirect:Gs,beforeRedirects:{}};let P;!Lt.isUndefined(c)&&(B.lookup=c),e.socketPath?B.socketPath=e.socketPath:(B.hostname=_.hostname.startsWith("[")?_.hostname.slice(1,-1):_.hostname,B.port=_.port,Ws(B,e.proxy,E+"//"+_.hostname+(_.port?":"+_.port:"")+B.path));const L=Ms.test(B.protocol);if(B.agent=L?e.httpsAgent:e.httpAgent,e.transport?P=e.transport:0===e.maxRedirects?P=L?s:r:(e.maxRedirects&&(B.maxRedirects=e.maxRedirects),e.beforeRedirect&&(B.beforeRedirects.config=e.beforeRedirect),P=L?qs:zs),e.maxBodyLength>-1?B.maxBodyLength=e.maxBodyLength:B.maxBodyLength=1/0,e.insecureHTTPParser&&(B.insecureHTTPParser=e.insecureHTTPParser),x=P.request(B,(function(a){if(x.destroyed)return;const i=[a],o=+a.headers["content-length"];if(j||T){const e=new Es({maxRate:Lt.toFiniteNumber(T)});j&&e.on("progress",$s(e,Ps(o,Bs(Ls(j),!0,3)))),i.push(e)}let r=a;const s=a.req||x;if(!1!==e.decompress&&a.headers["content-encoding"])switch("HEAD"!==h&&204!==a.statusCode||delete a.headers["content-encoding"],(a.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":i.push(d.createUnzip(Is)),delete a.headers["content-encoding"];break;case"deflate":i.push(new Os),i.push(d.createUnzip(Is)),delete a.headers["content-encoding"];break;case"br":Us&&(i.push(d.createBrotliDecompress(Ns)),delete a.headers["content-encoding"])}r=i.length>1?u.pipeline(i,Lt.noop):i[0];const c=u.finished(r,(()=>{c(),y()})),p={status:a.statusCode,statusText:a.statusMessage,headers:new lr(a.headers),config:e,request:s};if("stream"===l)p.data=r,hr(n,t,p);else{const a=[];let i=0;r.on("data",(function(n){a.push(n),i+=n.length,e.maxContentLength>-1&&i>e.maxContentLength&&(b=!0,r.destroy(),t(new It("maxContentLength size of "+e.maxContentLength+" exceeded",It.ERR_BAD_RESPONSE,e,s)))})),r.on("aborted",(function(){if(b)return;const n=new It("stream has been aborted",It.ERR_BAD_RESPONSE,e,s);r.destroy(n),t(n)})),r.on("error",(function(n){x.destroyed||t(It.from(n,null,e,s))})),r.on("end",(function(){try{let e=1===a.length?a[0]:Buffer.concat(a);"arraybuffer"!==l&&(e=e.toString(f),f&&"utf8"!==f||(e=Lt.stripBOM(e))),p.data=e}catch(n){return t(It.from(n,null,e,p.request,p))}hr(n,t,p)}))}g.once("abort",(e=>{r.destroyed||(r.emit("error",e),r.destroy())}))})),g.once("abort",(e=>{t(e),x.destroy(e)})),x.on("error",(function(n){t(It.from(n,null,e,x))})),x.on("socket",(function(e){e.setKeepAlive(!0,6e4)})),e.timeout){const n=parseInt(e.timeout,10);if(Number.isNaN(n))return void t(new It("error trying to parse `config.timeout` to int",It.ERR_BAD_OPTION_VALUE,e,x));x.setTimeout(n,(function(){if(v)return;let n=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const a=e.transitional||Wo;e.timeoutErrorMessage&&(n=e.timeoutErrorMessage),t(new It(n,a.clarifyTimeoutError?It.ETIMEDOUT:It.ECONNABORTED,e,x)),D()}))}if(Lt.isStream(o)){let n=!1,t=!1;o.on("end",(()=>{n=!0})),o.once("error",(e=>{t=!0,x.destroy(e)})),o.on("close",(()=>{n||t||D(new fr("Request stream has been aborted",e,x))})),o.pipe(x)}else x.end(o)},new Promise(((e,t)=>{let a,i;const o=(e,n)=>{i||(i=!0,a&&a(e,n))},r=e=>{o(e,!0),t(e)};n((n=>{o(n),e(n)}),r,(e=>a=e)).catch(r)}));var n},Ys=ar.hasStandardBrowserEnv?((e,n)=>t=>(t=new URL(t,ar.origin),e.protocol===t.protocol&&e.host===t.host&&(n||e.port===t.port)))(new URL(ar.origin),ar.navigator&&/(msie|trident)/i.test(ar.navigator.userAgent)):()=>!0,Xs=ar.hasStandardBrowserEnv?{write(e,n,t,a,i,o){const r=[e+"="+encodeURIComponent(n)];Lt.isNumber(t)&&r.push("expires="+new Date(t).toGMTString()),Lt.isString(a)&&r.push("path="+a),Lt.isString(i)&&r.push("domain="+i),!0===o&&r.push("secure"),document.cookie=r.join("; ")},read(e){const n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};const Zs=e=>e instanceof lr?{...e}:e;function Qs(e,n){n=n||{};const t={};function a(e,n,t,a){return Lt.isPlainObject(e)&&Lt.isPlainObject(n)?Lt.merge.call({caseless:a},e,n):Lt.isPlainObject(n)?Lt.merge({},n):Lt.isArray(n)?n.slice():n}function i(e,n,t,i){return Lt.isUndefined(n)?Lt.isUndefined(e)?void 0:a(void 0,e,0,i):a(e,n,0,i)}function o(e,n){if(!Lt.isUndefined(n))return a(void 0,n)}function r(e,n){return Lt.isUndefined(n)?Lt.isUndefined(e)?void 0:a(void 0,e):a(void 0,n)}function s(t,i,o){return o in n?a(t,i):o in e?a(void 0,t):void 0}const c={url:o,method:o,data:o,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:s,headers:(e,n,t)=>i(Zs(e),Zs(n),0,!0)};return Lt.forEach(Object.keys(Object.assign({},e,n)),(function(a){const o=c[a]||i,r=o(e[a],n[a],a);Lt.isUndefined(r)&&o!==s||(t[a]=r)})),t}var ec=e=>{const n=Qs({},e);let t,{data:a,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:r,headers:s,auth:c}=n;if(n.headers=s=lr.from(s),n.url=$o(vr(n.baseURL,n.url,n.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),Lt.isFormData(a))if(ar.hasStandardBrowserEnv||ar.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(t=s.getContentType())){const[e,...n]=t?t.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...n].join("; "))}if(ar.hasStandardBrowserEnv&&(i&&Lt.isFunction(i)&&(i=i(n)),i||!1!==i&&Ys(n.url))){const e=o&&r&&Xs.read(r);e&&s.set(o,e)}return n};var nc="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(n,t){const a=ec(e);let i=a.data;const o=lr.from(a.headers).normalize();let r,s,c,u,p,{responseType:l,onUploadProgress:d,onDownloadProgress:m}=a;function f(){u&&u(),p&&p(),a.cancelToken&&a.cancelToken.unsubscribe(r),a.signal&&a.signal.removeEventListener("abort",r)}let h=new XMLHttpRequest;function v(){if(!h)return;const a=lr.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());hr((function(e){n(e),f()}),(function(e){t(e),f()}),{data:l&&"text"!==l&&"json"!==l?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:a,config:e,request:h}),h=null}h.open(a.method.toUpperCase(),a.url,!0),h.timeout=a.timeout,"onloadend"in h?h.onloadend=v:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(v)},h.onabort=function(){h&&(t(new It("Request aborted",It.ECONNABORTED,e,h)),h=null)},h.onerror=function(){t(new It("Network Error",It.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let n=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const i=a.transitional||Wo;a.timeoutErrorMessage&&(n=a.timeoutErrorMessage),t(new It(n,i.clarifyTimeoutError?It.ETIMEDOUT:It.ECONNABORTED,e,h)),h=null},void 0===i&&o.setContentType(null),"setRequestHeader"in h&&Lt.forEach(o.toJSON(),(function(e,n){h.setRequestHeader(n,e)})),Lt.isUndefined(a.withCredentials)||(h.withCredentials=!!a.withCredentials),l&&"json"!==l&&(h.responseType=a.responseType),m&&([c,p]=Bs(m,!0),h.addEventListener("progress",c)),d&&h.upload&&([s,u]=Bs(d),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",u)),(a.cancelToken||a.signal)&&(r=n=>{h&&(t(!n||n.type?new fr(null,e,h):n),h.abort(),h=null)},a.cancelToken&&a.cancelToken.subscribe(r),a.signal&&(a.signal.aborted?r():a.signal.addEventListener("abort",r)));const x=Ds(a.url);x&&-1===ar.protocols.indexOf(x)?t(new It("Unsupported protocol "+x+":",It.ERR_BAD_REQUEST,e)):h.send(i||null)}))};const tc=(e,n)=>{const{length:t}=e=e?e.filter(Boolean):[];if(n||t){let t,a=new AbortController;const i=function(e){if(!t){t=!0,r();const n=e instanceof Error?e:this.reason;a.abort(n instanceof It?n:new fr(n instanceof Error?n.message:n))}};let o=n&&setTimeout((()=>{o=null,i(new It(`timeout ${n} of ms exceeded`,It.ETIMEDOUT))}),n);const r=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)})),e=null)};e.forEach((e=>e.addEventListener("abort",i)));const{signal:s}=a;return s.unsubscribe=()=>Lt.asap(r),s}},ac=function*(e,n){let t=e.byteLength;if(t<n)return void(yield e);let a,i=0;for(;i<t;)a=i+n,yield e.slice(i,a),i=a},ic=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const n=e.getReader();try{for(;;){const{done:e,value:t}=await n.read();if(e)break;yield t}}finally{await n.cancel()}},oc=(e,n,t,a)=>{const i=async function*(e,n){for await(const t of ic(e))yield*ac(t,n)}(e,n);let o,r=0,s=e=>{o||(o=!0,a&&a(e))};return new ReadableStream({async pull(e){try{const{done:n,value:a}=await i.next();if(n)return s(),void e.close();let o=a.byteLength;if(t){let e=r+=o;t(e)}e.enqueue(new Uint8Array(a))}catch(e){throw s(e),e}},cancel:e=>(s(e),i.return())},{highWaterMark:2})},rc="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,sc=rc&&"function"==typeof ReadableStream,cc=rc&&("function"==typeof TextEncoder?(uc=new TextEncoder,e=>uc.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var uc;const pc=(e,...n)=>{try{return!!e(...n)}catch(e){return!1}},lc=sc&&pc((()=>{let e=!1;const n=new Request(ar.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!n})),dc=sc&&pc((()=>Lt.isReadableStream(new Response("").body))),mc={stream:dc&&(e=>e.body)};var fc;rc&&(fc=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!mc[e]&&(mc[e]=Lt.isFunction(fc[e])?n=>n[e]():(n,t)=>{throw new It(`Response type '${e}' is not supported`,It.ERR_NOT_SUPPORT,t)})})));const hc=async(e,n)=>{const t=Lt.toFiniteNumber(e.getContentLength());return null==t?(async e=>{if(null==e)return 0;if(Lt.isBlob(e))return e.size;if(Lt.isSpecCompliantForm(e)){const n=new Request(ar.origin,{method:"POST",body:e});return(await n.arrayBuffer()).byteLength}return Lt.isArrayBufferView(e)||Lt.isArrayBuffer(e)?e.byteLength:(Lt.isURLSearchParams(e)&&(e+=""),Lt.isString(e)?(await cc(e)).byteLength:void 0)})(n):t};var vc=rc&&(async e=>{let{url:n,method:t,data:a,signal:i,cancelToken:o,timeout:r,onDownloadProgress:s,onUploadProgress:c,responseType:u,headers:p,withCredentials:l="same-origin",fetchOptions:d}=ec(e);u=u?(u+"").toLowerCase():"text";let m,f=tc([i,o&&o.toAbortSignal()],r);const h=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let v;try{if(c&&lc&&"get"!==t&&"head"!==t&&0!==(v=await hc(p,a))){let e,t=new Request(n,{method:"POST",body:a,duplex:"half"});if(Lt.isFormData(a)&&(e=t.headers.get("content-type"))&&p.setContentType(e),t.body){const[e,n]=Ps(v,Bs(Ls(c)));a=oc(t.body,65536,e,n)}}Lt.isString(l)||(l=l?"include":"omit");const i="credentials"in Request.prototype;m=new Request(n,{...d,signal:f,method:t.toUpperCase(),headers:p.normalize().toJSON(),body:a,duplex:"half",credentials:i?l:void 0});let o=await fetch(m);const r=dc&&("stream"===u||"response"===u);if(dc&&(s||r&&h)){const e={};["status","statusText","headers"].forEach((n=>{e[n]=o[n]}));const n=Lt.toFiniteNumber(o.headers.get("content-length")),[t,a]=s&&Ps(n,Bs(Ls(s),!0))||[];o=new Response(oc(o.body,65536,t,(()=>{a&&a(),h&&h()})),e)}u=u||"text";let x=await mc[Lt.findKey(mc,u)||"text"](o,e);return!r&&h&&h(),await new Promise(((n,t)=>{hr(n,t,{data:x,headers:lr.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:m})}))}catch(n){if(h&&h(),n&&"TypeError"===n.name&&/fetch/i.test(n.message))throw Object.assign(new It("Network Error",It.ERR_NETWORK,e,m),{cause:n.cause||n});throw It.from(n,n&&n.code,e,m)}});const xc={http:Js,xhr:nc,fetch:vc};Lt.forEach(xc,((e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch(e){}Object.defineProperty(e,"adapterName",{value:n})}}));const bc=e=>`- ${e}`,gc=e=>Lt.isFunction(e)||null===e||!1===e;var yc=e=>{e=Lt.isArray(e)?e:[e];const{length:n}=e;let t,a;const i={};for(let o=0;o<n;o++){let n;if(t=e[o],a=t,!gc(t)&&(a=xc[(n=String(t)).toLowerCase()],void 0===a))throw new It(`Unknown adapter '${n}'`);if(a)break;i[n||"#"+o]=a}if(!a){const e=Object.entries(i).map((([e,n])=>`adapter ${e} `+(!1===n?"is not supported by the environment":"is not available in the build")));throw new It("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(bc).join("\n"):" "+bc(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return a};function Dc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new fr(null,e)}function wc(e){Dc(e),e.headers=lr.from(e.headers),e.data=dr.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return yc(e.adapter||or.adapter)(e).then((function(n){return Dc(e),n.data=dr.call(e,e.transformResponse,n),n.headers=lr.from(n.headers),n}),(function(n){return mr(n)||(Dc(e),n&&n.response&&(n.response.data=dr.call(e,e.transformResponse,n.response),n.response.headers=lr.from(n.response.headers))),Promise.reject(n)}))}const _c={};["object","boolean","number","function","string","symbol"].forEach(((e,n)=>{_c[e]=function(t){return typeof t===e||"a"+(n<1?"n ":" ")+e}}));const Ec={};_c.transitional=function(e,n,t){function a(e,n){return"[Axios v1.8.4] Transitional option '"+e+"'"+n+(t?". "+t:"")}return(t,i,o)=>{if(!1===e)throw new It(a(i," has been removed"+(n?" in "+n:"")),It.ERR_DEPRECATED);return n&&!Ec[i]&&(Ec[i]=!0,console.warn(a(i," has been deprecated since v"+n+" and will be removed in the near future"))),!e||e(t,i,o)}},_c.spelling=function(e){return(n,t)=>(console.warn(`${t} is likely a misspelling of ${e}`),!0)};var Cc={assertOptions:function(e,n,t){if("object"!=typeof e)throw new It("options must be an object",It.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let i=a.length;for(;i-- >0;){const o=a[i],r=n[o];if(r){const n=e[o],t=void 0===n||r(n,o,e);if(!0!==t)throw new It("option "+o+" must be "+t,It.ERR_BAD_OPTION_VALUE)}else if(!0!==t)throw new It("Unknown option "+o,It.ERR_BAD_OPTION)}},validators:_c};const Fc=Cc.validators;let jc=class{constructor(e){this.defaults=e,this.interceptors={request:new Go,response:new Go}}async request(e,n){try{return await this._request(e,n)}catch(e){if(e instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const t=n.stack?n.stack.replace(/^.+\n/,""):"";try{e.stack?t&&!String(e.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+t):e.stack=t}catch(e){}}throw e}}_request(e,n){"string"==typeof e?(n=n||{}).url=e:n=e||{},n=Qs(this.defaults,n);const{transitional:t,paramsSerializer:a,headers:i}=n;void 0!==t&&Cc.assertOptions(t,{silentJSONParsing:Fc.transitional(Fc.boolean),forcedJSONParsing:Fc.transitional(Fc.boolean),clarifyTimeoutError:Fc.transitional(Fc.boolean)},!1),null!=a&&(Lt.isFunction(a)?n.paramsSerializer={serialize:a}:Cc.assertOptions(a,{encode:Fc.function,serialize:Fc.function},!0)),void 0!==n.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Cc.assertOptions(n,{baseUrl:Fc.spelling("baseURL"),withXsrfToken:Fc.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&Lt.merge(i.common,i[n.method]);i&&Lt.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),n.headers=lr.concat(o,i);const r=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(n)||(s=s&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let p,l=0;if(!s){const e=[wc.bind(this),void 0];for(e.unshift.apply(e,r),e.push.apply(e,c),p=e.length,u=Promise.resolve(n);l<p;)u=u.then(e[l++],e[l++]);return u}p=r.length;let d=n;for(l=0;l<p;){const e=r[l++],n=r[l++];try{d=e(d)}catch(e){n.call(this,e);break}}try{u=wc.call(this,d)}catch(e){return Promise.reject(e)}for(l=0,p=c.length;l<p;)u=u.then(c[l++],c[l++]);return u}getUri(e){return $o(vr((e=Qs(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};Lt.forEach(["delete","get","head","options"],(function(e){jc.prototype[e]=function(n,t){return this.request(Qs(t||{},{method:e,url:n,data:(t||{}).data}))}})),Lt.forEach(["post","put","patch"],(function(e){function n(n){return function(t,a,i){return this.request(Qs(i||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:t,data:a}))}}jc.prototype[e]=n(),jc.prototype[e+"Form"]=n(!0)}));const kc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(kc).forEach((([e,n])=>{kc[n]=e}));const Ac=function e(n){const t=new jc(n),a=Yn(jc.prototype.request,t);return Lt.extend(a,jc.prototype,t,{allOwnKeys:!0}),Lt.extend(a,t,null,{allOwnKeys:!0}),a.create=function(t){return e(Qs(n,t))},a}(or);Ac.Axios=jc,Ac.CanceledError=fr,Ac.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let n;this.promise=new Promise((function(e){n=e}));const t=this;this.promise.then((e=>{if(!t._listeners)return;let n=t._listeners.length;for(;n-- >0;)t._listeners[n](e);t._listeners=null})),this.promise.then=e=>{let n;const a=new Promise((e=>{t.subscribe(e),n=e})).then(e);return a.cancel=function(){t.unsubscribe(n)},a},e((function(e,a,i){t.reason||(t.reason=new fr(e,a,i),n(t.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);-1!==n&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=n=>{e.abort(n)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let n;return{token:new e((function(e){n=e})),cancel:n}}},Ac.isCancel=mr,Ac.VERSION=ys,Ac.toFormData=Uo,Ac.AxiosError=It,Ac.Cancel=Ac.CanceledError,Ac.all=function(e){return Promise.all(e)},Ac.spread=function(e){return function(n){return e.apply(null,n)}},Ac.isAxiosError=function(e){return Lt.isObject(e)&&!0===e.isAxiosError},Ac.mergeConfig=Qs,Ac.AxiosHeaders=lr,Ac.formToJSON=e=>ir(Lt.isHTMLForm(e)?new FormData(e):e),Ac.getAdapter=yc,Ac.HttpStatusCode=kc,Ac.default=Ac;const{Axios:Tc,AxiosError:Sc,CanceledError:Oc,isCancel:Rc,CancelToken:Bc,VERSION:Pc,all:Lc,Cancel:Ic,isAxiosError:Nc,spread:Uc,toFormData:zc,AxiosHeaders:qc,HttpStatusCode:Mc,formToJSON:Hc,getAdapter:$c,mergeConfig:Gc}=Ac,Wc="/api/v1",Kc=e=>{const n=(t=e,Object.entries(t).reduce(((e,n)=>(e[zn(n[0])]=n[1],e)),{}));var t;return Ac.post(`${Wc}/reporter/runs`,{run:n},{skipSnakeCaseConversion:!0})},Vc=(e,n)=>Ac.put(`${Wc}/reporter/runs/${e}`,{run:n}),Jc=e=>Ac.get(`${Wc}/reporter/runs/${e}/heartbeat`),Yc=(e,n)=>Ac.post(`${Wc}/reporter/runs/${e}/test_entities`,{testEntity:n}),Xc="=".repeat(10),Zc={testData:(e,n)=>{let t=`\n-------Started reporting to NeetoPlaydash 🎭-------\nCI Build ID: ${e}\n`;return n&&(t+=`Total shards: ${n.total}\nCurrent shards: ${n.current}\n`),t+=`${"-".repeat(50)}\n`,t}},Qc={startingTest:({titlePath:e,historyId:n,retry:t,repeatEachIndex:a})=>`${Xc}Starting ${e}${Xc}\n Time: ${(new Date).toUTCString()}\n History ID: ${n}${t&&`\nRetry: ${t}`}${a&&`\nRepeat index: ${a}`}`},eu={reportedTest:({title:e,status:n,historyId:t,completedAt:a,error:i,isTestReported:o=!0,retry:r,repeatEachIndex:s})=>{let c=`\n\n${o?"------------Reported to NeetoPlaydash------------":"-".repeat(49)}\n Title: ${e}\n History id: ${t}\n Status: ${n}\n Completed at: ${a}${r&&`\nRetry: ${r}`}${s&&`\nRepeat index: ${s}`}\n`;return c=i?c.concat(` Error:\n\n ${i.replaceAll("\n","\n ")}`):c,c.concat(`\n${"-".repeat(49)}\n`)}},nu={runReported:"Run completed and reported to NeetoPlaydash 🎉\n\n",finalStatus:({currentShard:e,status:n,duration:t})=>{let a=`------------------Run completed-------------------\n Status: ${n}\n Duration: ${(e=>{const n={hour:Math.floor(e/36e5),minute:Math.floor(e/6e4)%60,second:Math.floor(e/1e3)%60,millisecond:Math.floor(e)%1e3};return Object.entries(n).filter((([e,n])=>0!==n)).map((([e,n])=>n+" "+(1!==n?`${e}s`:e))).join(", ")})(null!=t?t:0)}\n`;return a=0!==e?a.concat(` Shard: ${e}`):a,a.concat(`\n${"-".repeat(50)}\n`)}},tu=({command:e,messageOnError:n,shouldThrowError:t=!1,logLevel:a="warning"})=>{try{return f.execSync(e).toString().trim()}catch(e){if(t)throw e;R[a](n)}},au=(e,n)=>{var t;const{title:i,parent:o,location:{file:r}}=e,s=e.titlePath(),c=null===(t=o.project())||void 0===t?void 0:t.name,u=a.relative(n,r),p=(({titlePath:e,title:n,project:t,rootDir:i,file:o})=>e.filter(((e,r)=>0!==r&&e!==n&&e!==t&&e!==a.relative(i,o))))({titlePath:s,title:i,project:c,rootDir:n,file:r});return{title:i,describe:p,project:c,spec:u,historyId:(({projectId:e,specName:n,describeTitles:t,testTitle:a})=>{const i=`[project=${e}]${n}${[...t,a].join("")}`,o=Gn(i);return`${Gn(n)}-${o}`})({projectId:null!=c?c:"",specName:u,describeTitles:p,testTitle:i})}},iu=({rootDir:e},n)=>Be(n.allTests().map((n=>au(n,e)))),ou=async e=>{try{await Jc(e)}catch(e){R.error(e.message),R.error(JSON.stringify(e,null,4)),R.redText(A.stopped),process.exit(1)}},ru=async(e,n,t)=>{var a,i,o;const r=n.shard;e.config=n;const s=e.currentShard=null!==(a=null==r?void 0:r.current)&&void 0!==a?a:0;C.setContext({ciBuildId:e.ciBuildId,currentShard:null==r?void 0:r.current,rootDir:n.rootDir}),e.totalTestCount=t.allTests().length,e.rootDir=n.rootDir;const c={commitId:tu({command:"git rev-parse HEAD",messageOnError:F.failedToGetCommitSha}),commitName:tu({command:"git show-branch --no-name HEAD",messageOnError:F.failedToGetCommitMessage}),author:tu({command:"git show -s --format='%an' HEAD",messageOnError:F.failedToGetBranch}),branch:tu({command:"git branch --show-current",messageOnError:F.failedToGetBranch}),tags:"string"==typeof e.tags?e.tags.split(","):e.tags,ciBuildId:e.ciBuildId,configuration:{...n,baseDir:process.cwd()},shards:Mn({currentShard:s})};try{if(await Kc(c),e.hasRunStarted=!0,0===e.totalTestCount)return void R.redText(F.noTestsToReport);await ou(e.ciBuildId),e.heartbeatInterval=setInterval((async()=>await ou(e.ciBuildId)),45e3);const{data:a}=await Yc(e.ciBuildId,{testEntities:iu(n,t),shard:s});e.attempts=a,R.log(Zc.testData(e.ciBuildId,r))}catch(a){e.shouldNotReportTest=!0;const r=a,s=null===(i=r.response)||void 0===i?void 0:i.data;R.error(null!==(o=null==s?void 0:s.error)&&void 0!==o?o:r.message),R.error(F.failedToInitializeRun),await Jn({context:{...c,testEntities:iu(n,t)},error:a,title:"onBegin"}),((e,n)=>{var t,a;const{error:i}=e&&(e instanceof Sc&&(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||{error:void 0}),o=e&&(e instanceof Sc?null===(a=null==e?void 0:e.response)||void 0===a?void 0:a.status:void 0);n.shouldNotReportTest=!0,"Project does not exist."===i&&404===o?(R.redText(F.invalidProjectKey),process.exit(1)):"Could not authenticate, invalid API Key"===i&&401===o||"api-key"===n.apiKey?(R.redText(F.invalidApiKey),process.exit(1)):[g,y].includes(i||"")&&422===o?(R.redText(F.duplicateCiBuildId),process.exit(1)):(422===o&&(process.kill(process.pid,"SIGKILL"),process.exit(1)),Vn(o)&&R.yellowText(null!=i?i:null==e?void 0:e.message),R.yellowText(F.testsWillNotBeReported))})(r,e),clearInterval(e.heartbeatInterval)}},su=(e,n,t)=>Ac.post(`${Wc}/reporter/runs/${e}/test_entities/${n}/attempts`,t),cu=({ciBuildId:e,historyId:n,id:t,payload:a})=>Ac.put(`${Wc}/reporter/runs/${e}/test_entities/${n}/attempts/${t}`,a),uu=["screenshot","video","trace","lighthouse"],pu=({location:e,snippet:n})=>{if(!e)return null;const{file:t,line:a,column:i}=e;return`# ${t} (${a}:${i}) \n\n\n ${n}`},lu={KB:1024,MB:Math.pow(1024,2)},du=(e,n)=>parseFloat((e/lu[n]).toFixed(2));var mu=class{constructor(e,n,t){this.etaBufferLength=e||100,this.valueBuffer=[t],this.timeBuffer=[n],this.eta="0"}update(e,n,t){this.valueBuffer.push(n),this.timeBuffer.push(e),this.calculate(t-n)}getTime(){return this.eta}calculate(e){const n=this.valueBuffer.length,t=Math.min(this.etaBufferLength,n),a=(this.valueBuffer[n-1]-this.valueBuffer[n-t])/(this.timeBuffer[n-1]-this.timeBuffer[n-t]);this.valueBuffer=this.valueBuffer.slice(-this.etaBufferLength),this.timeBuffer=this.timeBuffer.slice(-this.etaBufferLength);const i=Math.ceil(e/a/1e3);isNaN(i)?this.eta="NULL":isFinite(i)?this.eta=i>1e7?"INF":i<0?0:i:this.eta="INF"}};const fu=h;var hu=class{constructor(e){this.stream=e,this.linewrap=!0,this.dy=0}cursorSave(){this.stream.isTTY&&this.stream.write("7")}cursorRestore(){this.stream.isTTY&&this.stream.write("8")}cursor(e){this.stream.isTTY&&(e?this.stream.write("[?25h"):this.stream.write("[?25l"))}cursorTo(e=null,n=null){this.stream.isTTY&&fu.cursorTo(this.stream,e,n)}cursorRelative(e=null,n=null){this.stream.isTTY&&(this.dy=this.dy+n,fu.moveCursor(this.stream,e,n))}cursorRelativeReset(){this.stream.isTTY&&(fu.moveCursor(this.stream,0,-this.dy),fu.cursorTo(this.stream,0,null),this.dy=0)}clearRight(){this.stream.isTTY&&fu.clearLine(this.stream,1)}clearLine(){this.stream.isTTY&&fu.clearLine(this.stream,0)}clearBottom(){this.stream.isTTY&&fu.clearScreenDown(this.stream)}newline(){this.stream.write("\n"),this.dy++}write(e,n=!1){!0===this.linewrap&&!1===n?this.stream.write(e.substr(0,this.getWidth())):this.stream.write(e)}lineWrapping(e){this.stream.isTTY&&(this.linewrap=e,e?this.stream.write("[?7h"):this.stream.write("[?7l"))}isTTY(){return!0===this.stream.isTTY}getWidth(){return this.stream.columns||(this.stream.isTTY?80:200)}},vu={exports:{}};const xu=({onlyFirst:e=!1}={})=>{const n=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(n,e?void 0:"g")};var bu={exports:{}};const gu=e=>!Number.isNaN(e)&&(e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141));bu.exports=gu,bu.exports.default=gu;const yu=e=>"string"==typeof e?e.replace(xu(),""):e,Du=bu.exports,wu=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g},_u=e=>{if("string"!=typeof e||0===e.length)return 0;if(0===(e=yu(e)).length)return 0;e=e.replace(wu()," ");let n=0;for(let t=0;t<e.length;t++){const a=e.codePointAt(t);a<=31||a>=127&&a<=159||(a>=768&&a<=879||(a>65535&&t++,n+=Du(a)?2:1))}return n};vu.exports=_u,vu.exports.default=_u;var Eu=function(e,n,t){if(!0!==n.autopadding)return e;return"percentage"===t?(a=e,(n.autopaddingChar+a).slice(-3)):e;var a},Cu=function(e,n){const t=Math.round(e*n.barsize),a=n.barsize-t;return n.barCompleteString.substr(0,t)+n.barGlue+n.barIncompleteString.substr(0,a)},Fu=function(e,n,t){function a(e){return t?t*Math.round(e/t):e}function i(e){return(n.autopaddingChar+e).slice(-2)}return e>3600?i(Math.floor(e/3600))+"h"+i(a(e%3600/60))+"m":e>60?i(Math.floor(e/60))+"m"+i(a(e%60))+"s":e>10?i(a(e))+"s":i(e)+"s"};const ju=vu.exports,ku=Eu,Au=Cu,Tu=Fu;var Su=function(e,n,t){let a=e.format;const i=e.formatTime||Tu,o=e.formatValue||ku,r=e.formatBar||Au,s=Math.floor(100*n.progress)+"",c=n.stopTime||Date.now(),u=Math.round((c-n.startTime)/1e3),p=Object.assign({},t,{bar:r(n.progress,e),percentage:o(s,e,"percentage"),total:o(n.total,e,"total"),value:o(n.value,e,"value"),eta:o(n.eta,e,"eta"),eta_formatted:i(n.eta,e,5),duration:o(u,e,"duration"),duration_formatted:i(u,e,1)});a=a.replace(/\{(\w+)\}/g,(function(e,n){return void 0!==p[n]?p[n]:e}));const l=Math.max(0,n.maxWidth-ju(a)-2),d=Math.floor(l/2);switch(e.align){case"right":a=l>0?" ".repeat(l)+a:a;break;case"center":a=d>0?" ".repeat(d)+a:a}return a};function Ou(e,n){return null==e?n:e}var Ru={parse:function(e,n){const t={},a=Object.assign({},n,e);return t.throttleTime=1e3/Ou(a.fps,10),t.stream=Ou(a.stream,process.stderr),t.terminal=Ou(a.terminal,null),t.clearOnComplete=Ou(a.clearOnComplete,!1),t.stopOnComplete=Ou(a.stopOnComplete,!1),t.barsize=Ou(a.barsize,40),t.align=Ou(a.align,"left"),t.hideCursor=Ou(a.hideCursor,!1),t.linewrap=Ou(a.linewrap,!1),t.barGlue=Ou(a.barGlue,""),t.barCompleteChar=Ou(a.barCompleteChar,"="),t.barIncompleteChar=Ou(a.barIncompleteChar,"-"),t.format=Ou(a.format,"progress [{bar}] {percentage}% | ETA: {eta}s | {value}/{total}"),t.formatTime=Ou(a.formatTime,null),t.formatValue=Ou(a.formatValue,null),t.formatBar=Ou(a.formatBar,null),t.etaBufferLength=Ou(a.etaBuffer,10),t.etaAsynchronousUpdate=Ou(a.etaAsynchronousUpdate,!1),t.progressCalculationRelative=Ou(a.progressCalculationRelative,!1),t.synchronousUpdate=Ou(a.synchronousUpdate,!0),t.noTTYOutput=Ou(a.noTTYOutput,!1),t.notTTYSchedule=Ou(a.notTTYSchedule,2e3),t.emptyOnZero=Ou(a.emptyOnZero,!1),t.forceRedraw=Ou(a.forceRedraw,!1),t.autopadding=Ou(a.autopadding,!1),t.gracefulExit=Ou(a.gracefulExit,!1),t},assignDerivedOptions:function(e){return e.barCompleteString=e.barCompleteChar.repeat(e.barsize+1),e.barIncompleteString=e.barIncompleteChar.repeat(e.barsize+1),e.autopaddingChar=e.autopadding?Ou(e.autopaddingChar," "):"",e}};const Bu=mu,Pu=hu,Lu=Su,Iu=Ru,Nu=m;var Uu=class extends Nu{constructor(e){super(),this.options=Iu.assignDerivedOptions(e),this.terminal=this.options.terminal?this.options.terminal:new Pu(this.options.stream),this.value=0,this.startValue=0,this.total=100,this.lastDrawnString=null,this.startTime=null,this.stopTime=null,this.lastRedraw=Date.now(),this.eta=new Bu(this.options.etaBufferLength,0,0),this.payload={},this.isActive=!1,this.formatter="function"==typeof this.options.format?this.options.format:Lu}render(e=!1){const n={progress:this.getProgress(),eta:this.eta.getTime(),startTime:this.startTime,stopTime:this.stopTime,total:this.total,value:this.value,maxWidth:this.terminal.getWidth()};this.options.etaAsynchronousUpdate&&this.updateETA();const t=this.formatter(this.options,n,this.payload);(e||this.options.forceRedraw||this.options.noTTYOutput&&!this.terminal.isTTY()||this.lastDrawnString!=t)&&(this.emit("redraw-pre"),this.terminal.cursorTo(0,null),this.terminal.write(t),this.terminal.clearRight(),this.lastDrawnString=t,this.lastRedraw=Date.now(),this.emit("redraw-post"))}start(e,n,t){this.value=n||0,this.total=void 0!==e&&e>=0?e:100,this.startValue=n||0,this.payload=t||{},this.startTime=Date.now(),this.stopTime=null,this.lastDrawnString="",this.eta=new Bu(this.options.etaBufferLength,this.startTime,this.value),this.isActive=!0,this.emit("start",e,n)}stop(){this.isActive=!1,this.stopTime=Date.now(),this.emit("stop",this.total,this.value)}update(e,n={}){"number"==typeof e&&(this.value=e,this.eta.update(Date.now(),e,this.total));const t=("object"==typeof e?e:n)||{};this.emit("update",this.total,this.value);for(const e in t)this.payload[e]=t[e];this.value>=this.getTotal()&&this.options.stopOnComplete&&this.stop()}getProgress(){let e=this.value/this.total;return this.options.progressCalculationRelative&&(e=(this.value-this.startValue)/(this.total-this.startValue)),isNaN(e)&&(e=this.options&&this.options.emptyOnZero?0:1),e=Math.min(Math.max(e,0),1),e}increment(e=1,n={}){"object"==typeof e?this.update(this.value+1,e):this.update(this.value+e,n)}getTotal(){return this.total}setTotal(e){void 0!==e&&e>=0&&(this.total=e)}updateETA(){this.eta.update(Date.now(),this.value,this.total)}};const zu=Uu,qu=Ru;const Mu=hu,Hu=Uu,$u=Ru,Gu=m;var Wu={legacy:{format:"progress [{bar}] {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"=",barIncompleteChar:"-"},shades_classic:{format:" {bar} {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"█",barIncompleteChar:"░"},shades_grey:{format:" [90m{bar}[0m {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"█",barIncompleteChar:"░"},rect:{format:" {bar}■ {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"■",barIncompleteChar:" "}};const Ku=class extends zu{constructor(e,n){super(qu.parse(e,n)),this.timer=null,this.options.noTTYOutput&&!1===this.terminal.isTTY()&&(this.options.synchronousUpdate=!1),this.schedulingRate=this.terminal.isTTY()?this.options.throttleTime:this.options.notTTYSchedule,this.sigintCallback=null}render(){this.timer&&(clearTimeout(this.timer),this.timer=null),super.render(),this.options.noTTYOutput&&!1===this.terminal.isTTY()&&this.terminal.newline(),this.timer=setTimeout(this.render.bind(this),this.schedulingRate)}update(e,n){this.timer&&(super.update(e,n),this.options.synchronousUpdate&&this.lastRedraw+2*this.options.throttleTime<Date.now()&&this.render())}start(e,n,t){!1===this.options.noTTYOutput&&!1===this.terminal.isTTY()||(null===this.sigintCallback&&this.options.gracefulExit&&(this.sigintCallback=this.stop.bind(this),process.once("SIGINT",this.sigintCallback),process.once("SIGTERM",this.sigintCallback)),this.terminal.cursorSave(),!0===this.options.hideCursor&&this.terminal.cursor(!1),!1===this.options.linewrap&&this.terminal.lineWrapping(!1),super.start(e,n,t),this.render())}stop(){this.timer&&(this.sigintCallback&&(process.removeListener("SIGINT",this.sigintCallback),process.removeListener("SIGTERM",this.sigintCallback),this.sigintCallback=null),this.render(),super.stop(),clearTimeout(this.timer),this.timer=null,!0===this.options.hideCursor&&this.terminal.cursor(!0),!1===this.options.linewrap&&this.terminal.lineWrapping(!0),this.terminal.cursorRestore(),this.options.clearOnComplete?(this.terminal.cursorTo(0,null),this.terminal.clearLine()):this.terminal.newline())}},Vu=class extends Gu{constructor(e,n){super(),this.bars=[],this.options=$u.parse(e,n),this.options.synchronousUpdate=!1,this.terminal=this.options.terminal?this.options.terminal:new Mu(this.options.stream),this.timer=null,this.isActive=!1,this.schedulingRate=this.terminal.isTTY()?this.options.throttleTime:this.options.notTTYSchedule,this.loggingBuffer=[],this.sigintCallback=null}create(e,n,t,a={}){const i=new Hu(Object.assign({},this.options,{terminal:this.terminal},a));return this.bars.push(i),!1===this.options.noTTYOutput&&!1===this.terminal.isTTY()||(null===this.sigintCallback&&this.options.gracefulExit&&(this.sigintCallback=this.stop.bind(this),process.once("SIGINT",this.sigintCallback),process.once("SIGTERM",this.sigintCallback)),this.isActive||(!0===this.options.hideCursor&&this.terminal.cursor(!1),!1===this.options.linewrap&&this.terminal.lineWrapping(!1),this.timer=setTimeout(this.update.bind(this),this.schedulingRate)),this.isActive=!0,i.start(e,n,t),this.emit("start")),i}remove(e){const n=this.bars.indexOf(e);return!(n<0)&&(this.bars.splice(n,1),this.update(),this.terminal.newline(),this.terminal.clearBottom(),!0)}update(){if(this.timer&&(clearTimeout(this.timer),this.timer=null),this.emit("update-pre"),this.terminal.cursorRelativeReset(),this.emit("redraw-pre"),this.loggingBuffer.length>0)for(this.terminal.clearLine();this.loggingBuffer.length>0;)this.terminal.write(this.loggingBuffer.shift(),!0);for(let e=0;e<this.bars.length;e++)e>0&&this.terminal.newline(),this.bars[e].render();this.emit("redraw-post"),this.options.noTTYOutput&&!1===this.terminal.isTTY()&&(this.terminal.newline(),this.terminal.newline()),this.timer=setTimeout(this.update.bind(this),this.schedulingRate),this.emit("update-post"),this.options.stopOnComplete&&!this.bars.find((e=>e.isActive))&&this.stop()}stop(){if(clearTimeout(this.timer),this.timer=null,this.sigintCallback&&(process.removeListener("SIGINT",this.sigintCallback),process.removeListener("SIGTERM",this.sigintCallback),this.sigintCallback=null),this.isActive=!1,!0===this.options.hideCursor&&this.terminal.cursor(!0),!1===this.options.linewrap&&this.terminal.lineWrapping(!0),this.terminal.cursorRelativeReset(),this.emit("stop-pre-clear"),this.options.clearOnComplete)this.terminal.clearBottom();else{for(let e=0;e<this.bars.length;e++)e>0&&this.terminal.newline(),this.bars[e].render(),this.bars[e].stop();this.terminal.newline()}this.emit("stop")}log(e){this.loggingBuffer.push(e)}};var Ju={Bar:Ku,SingleBar:Ku,MultiBar:Vu,Presets:Wu,Format:{Formatter:Su,BarFormat:Cu,ValueFormat:Eu,TimeFormat:Fu}};const Yu=(e,n)=>"flaky"===e?e:n,Xu=async(e,{url:n,headers:t},a)=>{const i=e.byteLength/1024>1024?"MB":"KB";const o=new Ju.Bar({format:`Uploading ${a} [{bar}] | {value}/{total} ${i} - ETA: {eta_formatted}`,clearOnComplete:!0},Ju.Presets.rect);return o.start(du(e.byteLength,i),0),await((e,{url:n,headers:t},a)=>Ac.put(n,e,{...a,headers:t}))(e,{url:n,headers:t},{onUploadProgress:e=>{e.total&&e.lengthComputable&&o.update(du(e.loaded,i))}}),o};var Zu={exports:{}};
|
|
9
9
|
/*! https://mths.be/wtf8 v1.0.1 by @mathias */!function(e,n){!function(t){var a=n,i=e&&e.exports==a&&e,o="object"==typeof D&&D;o.global!==o&&o.window!==o||(t=o);var r,s,c,u=String.fromCharCode;function p(e){for(var n,t,a=[],i=0,o=e.length;i<o;)(n=e.charCodeAt(i++))>=55296&&n<=56319&&i<o?56320==(64512&(t=e.charCodeAt(i++)))?a.push(((1023&n)<<10)+(1023&t)+65536):(a.push(n),i--):a.push(n);return a}function l(e,n){return u(e>>n&63|128)}function d(e){if(!(4294967168&e))return u(e);var n="";return 4294965248&e?4294901760&e?4292870144&e||(n=u(e>>18&7|240),n+=l(e,12),n+=l(e,6)):(n=u(e>>12&15|224),n+=l(e,6)):n=u(e>>6&31|192),n+=u(63&e|128)}function m(){if(c>=s)throw Error("Invalid byte index");var e=255&r[c];if(c++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function f(){var e,n;if(c>s)throw Error("Invalid byte index");if(c==s)return!1;if(e=255&r[c],c++,!(128&e))return e;if(192==(224&e)){if((n=(31&e)<<6|m())>=128)return n;throw Error("Invalid continuation byte")}if(224==(240&e)){if((n=(15&e)<<12|m()<<6|m())>=2048)return n;throw Error("Invalid continuation byte")}if(240==(248&e)&&(n=(15&e)<<18|m()<<12|m()<<6|m())>=65536&&n<=1114111)return n;throw Error("Invalid WTF-8 detected")}var h={version:"1.0.1",encode:function(e){for(var n=p(e),t=n.length,a=-1,i="";++a<t;)i+=d(n[a]);return i},decode:function(e){r=p(e),s=r.length,c=0;for(var n,t=[];!1!==(n=f());)t.push(n);return function(e){for(var n,t=e.length,a=-1,i="";++a<t;)(n=e[a])>65535&&(i+=u((n-=65536)>>>10&1023|55296),n=56320|1023&n),i+=u(n);return i}(t)}};if(a&&!a.nodeType)if(i)i.exports=h;else{var v={}.hasOwnProperty;for(var x in h)v.call(h,x)&&(a[x]=h[x])}else t.wtf8=h}(D)}(Zu,Zu.exports);var Qu=Zu.exports;const ep=async(e,n,{status:a,duration:i,errors:o,error:r,retry:s,attachments:u})=>{const p=new Date,{currentShard:l,rootDir:d,ciBuildId:m}=e,{title:f,repeatEachIndex:h}=n,{historyId:v}=au(n,d),x=n.outcome(),b=Wn(s,h),g={shard:l,isExpected:"expected"===x,repeatEachIndex:h,status:Yu(x,a)};try{const n={outcome:g,status:a,duration:i,log:Qu.encode(o.map((e=>{var n;return null!==(n=e.message)&&void 0!==n?n:""})).join("\n")),screenshots:[],videos:[],traces:[],lighthouses:[],completedAt:p.toString(),errorSnippet:r&&pu(r)};if(e.shouldNotReportTest)return;await $n((()=>e.startedAttempts.has(Wn(v,b)))),R.underline(f);const s=u.map((({name:e,path:n,body:a,contentType:i})=>{if(!uu.includes(e))return;const o=n?t.readFileSync(n):a,r=((e,n,t)=>(null!=e?e:`${n}.${t.split("/")[1]}`).replaceAll("/","-"))(n,e,i),{file:s,...u}=((e,n,t)=>{const a=e.byteLength;return{file:e,filename:t,checksum:c.createHash("md5").update(e).digest("base64"),byteSize:a,contentType:n}})(o,i,r);return{file:s,metadata:u,name:e}})).filter(Un(void 0)),l={metadata:fe("metadata",s)},{data:d}=await(({ciBuildId:e,historyId:n},t)=>Ac.post(`/api/v2/reporter/runs/${e}/test_entities/${n}/direct_uploads`,{blob:t}))({ciBuildId:e.ciBuildId,historyId:v},l),h=await Promise.all(d.map((async({signedId:e,directUpload:t},a)=>{var i,o;return n[`${null===(i=s[a])||void 0===i?void 0:i.name}s`].push(e),Xu(s[a].file,t,`${f} - ${null===(o=s[a])||void 0===o?void 0:o.name}`)})));e.progressBars.push(...h);const x=cu({ciBuildId:m,historyId:v,id:e.attempts[v][b],payload:n});e.testResultCalls.push(x),await x}catch(r){await Jn({context:{historyId:v,attemptIndex:b,title:f,status:a,outcome:g,duration:i,completedAt:p},error:r,title:"onTestEnd"}),R.error(r.message),R.error(j.failedToReportTest(f,v)),await ou(m)}finally{R.log(eu.reportedTest({title:f,status:a,historyId:v,completedAt:p,error:r&&pu(r),isTestReported:!e.shouldNotReportTest,retry:s,repeatEachIndex:h})),e.unreportedAttemptCount--,e.startedAttempts.delete(Wn(v,b))}},np=v.extend({generateLighthouseMetaData:async({},e,n)=>{let t=0;const{title:a,outputDir:i}=n;await e((()=>{const e=a.replace(/[:]/g,"_");return{formats:{html:!0},name:t?e:`${e}-${t++}`,directory:i,get pathToLightHouseHTMLReport(){return`${i}/${this.name}.html`}}}))},attachLighthouseReport:async({},e,n)=>{await e((async e=>{e.endsWith(".html")?await n.attach("lighthouse",{path:e,contentType:"text/html"}):R.redText(S.attachLightHouseReport.unsupportedFileType(e))}))}}),tp=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);const ap="axios-retry";function ip(e){return!e.response&&(!!e.code&&(!["ERR_CANCELED","ECONNABORTED"].includes(e.code)&&(e=>!tp.has(e&&e.code))(e)))}const op=["get","head","options"],rp=op.concat(["put","delete"]);function sp(e){return"ECONNABORTED"!==e.code&&(!e.response||429===e.response.status||e.response.status>=500&&e.response.status<=599)}function cp(e){return!!e.config?.method&&(sp(e)&&-1!==rp.indexOf(e.config.method))}function up(e){return ip(e)||cp(e)}function pp(e=void 0){const n=e?.response?.headers["retry-after"];if(!n)return 0;let t=1e3*(Number(n)||0);return 0===t&&(t=(new Date(n).valueOf()||0)-Date.now()),Math.max(0,t)}const lp={retries:3,retryCondition:up,retryDelay:function(e=0,n=void 0){return Math.max(0,pp(n))},shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function dp(e,n,t=!1){const a=function(e,n){return{...lp,...n,...e[ap]}}(e,n||{});return a.retryCount=a.retryCount||0,a.lastRequestTime&&!t||(a.lastRequestTime=Date.now()),e[ap]=a,a}const mp=(e,n)=>{const t=e.interceptors.request.use((e=>(dp(e,n,!0),e[ap]?.validateResponse&&(e.validateStatus=()=>!1),e))),a=e.interceptors.response.use(null,(async t=>{const{config:a}=t;if(!a)return Promise.reject(t);const i=dp(a,n);return t.response&&i.validateResponse?.(t.response)?t.response:await async function(e,n){const{retries:t,retryCondition:a}=e,i=(e.retryCount||0)<t&&a(n);if("object"==typeof i)try{return!1!==await i}catch(e){return!1}return i}(i,t)?async function(e,n,t,a){n.retryCount+=1;const{retryDelay:i,shouldResetTimeout:o,onRetry:r}=n,s=i(n.retryCount,t);if(function(e,n){e.defaults.agent===n.agent&&delete n.agent,e.defaults.httpAgent===n.httpAgent&&delete n.httpAgent,e.defaults.httpsAgent===n.httpsAgent&&delete n.httpsAgent}(e,a),!o&&a.timeout&&n.lastRequestTime){const e=Date.now()-n.lastRequestTime,i=a.timeout-e-s;if(i<=0)return Promise.reject(t);a.timeout=i}return a.transformRequest=[e=>e],await r(n.retryCount,t,a),a.signal?.aborted?Promise.resolve(e(a)):new Promise((n=>{const t=()=>{clearTimeout(i),n(e(a))},i=setTimeout((()=>{n(e(a)),a.signal?.removeEventListener&&a.signal.removeEventListener("abort",t)}),s);a.signal?.addEventListener&&a.signal.addEventListener("abort",t,{once:!0})}))}(e,i,t,a):(await async function(e,n){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(n,e.retryCount)}(i,t),Promise.reject(t))}));return{requestInterceptorId:t,responseInterceptorId:a}};mp.isNetworkError=ip,mp.isSafeRequestError=function(e){return!!e.config?.method&&(sp(e)&&-1!==op.indexOf(e.config.method))},mp.isIdempotentRequestError=cp,mp.isNetworkOrIdempotentRequestError=up,mp.exponentialDelay=function(e=0,n=void 0,t=100){const a=2**e*t,i=Math.max(a,pp(n));return i+.2*i*Math.random()},mp.linearDelay=function(e=100){return(n=0,t=void 0)=>{const a=n*e;return Math.max(a,pp(t))}},mp.isRetryableError=sp;const fp="Content-Type",hp="Accept",vp="X-Api-Key",xp="Project-Key",bp="Reporter-Version",gp=e=>e===Object(e)&&!(e instanceof Buffer);function yp({projectKey:e,baseURL:n,apiKey:i}){Ac.defaults.baseURL=null!=n?n:"https://connect.neetoplaydash.com",Ac.defaults.skipSnakeCaseConversion=!1,(({projectKey:e,apiKey:n})=>{Ac.defaults.headers={...Ac.defaults.headers,[xp]:e,[bp]:JSON.parse(t.readFileSync(a.join(__dirname,"./package.json"),"utf8")).version,[vp]:null!=n?n:"",[hp]:"application/json",[fp]:"application/json"}})({projectKey:e,apiKey:i}),Ac.interceptors.request.use((e=>{const n=e.data;return gp(n)&&!e.skipSnakeCaseConversion&&(e.data=qn(n,(function(e,n){return[zn(e),n]}))),e})),Ac.interceptors.response.use((e=>{const n=e.data;return gp(n)&&(e.data=qn(n,(function(e,n){return[(t=e,t.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))),n];var t}))),e})),mp(Ac,{retryDelay:mp.exponentialDelay,retryCondition:e=>{var n;const t=null===(n=e.status)||void 0===n?void 0:n.toString();return!!t&&(t.startsWith("5")||"404"===t)},retries:5})}exports.default=class{constructor(e){var n;this.onBegin=(e,n)=>ru(this,e,n),this.onTestBegin=(e,n)=>(async(e,n,{retry:t})=>{var a,i;const{title:o,repeatEachIndex:r}=n,{rootDir:s,currentShard:c,ciBuildId:u}=e,{historyId:p}=au(n,s),l=(new Date).toString(),d=Wn(t,r);if(e.unreportedAttemptCount++,e.shouldNotReportTest)R.invertBackground(Qc.startingTest({titlePath:o,historyId:p,retry:t,repeatEachIndex:r}));else try{if(await $n((()=>{var n,t;return Nn(e.attempts)&&Le(null===(t=null===(n=e.attempts)||void 0===n?void 0:n[p])||void 0===t?void 0:t["0-0"])})),R.invertBackground(Qc.startingTest({titlePath:o,historyId:p,retry:t,repeatEachIndex:r})),e.shouldNotReportTest)return;const n={status:"running",startedAt:l,shard:c,repeatEachIndex:r};if(0===t&&0===r)await cu({ciBuildId:u,historyId:p,id:null===(i=null===(a=e.attempts)||void 0===a?void 0:a[p])||void 0===i?void 0:i["0-0"],payload:n});else{const{data:{attemptId:t}}=await su(u,p,n);e.attempts=Ue(e.attempts,{[p]:{[d]:t}})}}catch(e){await Jn({context:{historyId:p,attemptIndex:d,title:o},error:e,title:"onTestBegin"}),R.error(e.message),R.error(j.failedToReportTest(o,p)),await ou(u)}finally{e.startedAttempts.add(Wn(p,d))}})(this,e,n),this.onTestEnd=async(e,n)=>ep(this,e,n),this.onEnd=async e=>(async(e,{status:n,duration:t})=>{var a,i;const{currentShard:o}=e;try{if(await $n((()=>(e.hasRunStarted||e.shouldNotReportTest)&&0===e.unreportedAttemptCount)),R.bold(nu.finalStatus({currentShard:o,status:n,duration:t})),e.shouldNotReportTest)return;if(0===e.totalTestCount)return void await Vc(e.ciBuildId,{shards:Mn({currentShard:o,status:"passed",duration:t})});await Promise.allSettled(e.testResultCalls),await Vc(e.ciBuildId,{shards:Mn({currentShard:o,status:n,duration:t})})}catch(e){const o=null===(a=e.response)||void 0===a?void 0:a.data;await Jn({context:{runStatus:n,runDuration:t},error:e,title:"onEnd"}),R.error(null!==(i=o.error)&&void 0!==i?i:e.message),R.error(k.failedToReportRunStatus)}finally{e.shouldNotReportTest||0===e.totalTestCount||R.invertBackground(nu.runReported),clearInterval(e.heartbeatInterval)}})(this,e),this.attempts={},this.tags=e.tags,this.ciBuildId=e.ciBuildId,this.testResultCalls=[],this.totalTestCount=0,this.unreportedAttemptCount=0,this.hasRunStarted=!1,this.heartbeatInterval=null,this.rootDir="",this.currentShard=0,this.progressBars=[],this.startedAttempts=new Set,this.shouldNotReportTest=!1,this.apiKey=e.apiKey,C.configure({apiKey:Kn("9d5d98e72929dae3c8b3701f50032da1a02b80f9dc29a8e448a601871e5c82fd0ac2fa33c46443709cdb3eabc54a06ab"),environment:(null===(n=null==e?void 0:e.baseURL)||void 0===n?void 0:n.includes(".net"))?"staging":"production"}),C.setContext(e),((e,n)=>{x.setDefaultResultOrder("ipv4first"),yp(n),process.on("unhandledRejection",(async n=>{var t,a,i;const o=null===(t=n.response)||void 0===t?void 0:t.data;await Jn({context:{},error:n,title:"unhandledRejection"}),await ou(e.ciBuildId),R.error(null!==(i=null!==(a=null==o?void 0:o.error)&&void 0!==a?a:n.message)&&void 0!==i?i:JSON.stringify(n))}))})(this,e)}onStdOut(e,n){n&&R.bold(`Log from test "${n.title}"`),R.log(e.toString())}},exports.test=np;
|
|
10
10
|
//# sourceMappingURL=index.cjs.js.map
|