@bigbinary/neeto-playwright-reporter 2.0.5 → 2.0.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.js CHANGED
@@ -5,6 +5,6 @@ import e from"os";import t from"domain";import n,{readFileSync as i}from"fs";imp
5
5
  * Copyright(c) 2015 Douglas Christopher Wilson
6
6
  * MIT Licensed
7
7
  */
8
- function(e){var t,n,i,o=ni.exports,r=a.extname,s=/^\s*([^;\s]*)(?:;|\s|$)/,c=/^text\//i;function u(e){if(!e||"string"!=typeof e)return!1;var t=s.exec(e),n=t&&o[t[1].toLowerCase()];return n&&n.charset?n.charset:!(!t||!c.test(t[1]))&&"UTF-8"}e.charset=u,e.charsets={lookup:u},e.contentType=function(t){if(!t||"string"!=typeof t)return!1;var n=-1===t.indexOf("/")?e.lookup(t):t;if(!n)return!1;if(-1===n.indexOf("charset")){var i=e.charset(n);i&&(n+="; charset="+i.toLowerCase())}return n},e.extension=function(t){if(!t||"string"!=typeof t)return!1;var n=s.exec(t),i=n&&e.extensions[n[1].toLowerCase()];if(!i||!i.length)return!1;return i[0]},e.extensions=Object.create(null),e.lookup=function(t){if(!t||"string"!=typeof t)return!1;var n=r("x."+t).toLowerCase().substr(1);if(!n)return!1;return e.types[n]||!1},e.types=Object.create(null),t=e.extensions,n=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){t[e]=r;for(var s=0;s<r.length;s++){var c=r[s];if(n[c]){var u=i.indexOf(o[n[c]].source),p=i.indexOf(a.source);if("application/octet-stream"!==n[c]&&(u>p||u===p&&"application/"===n[c].substr(0,12)))continue}n[c]=e}}}))}(ti);var ii=function(e){var t="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;t?t(e):setTimeout(e,0)},ai=function(e){var t=!1;return ii((function(){t=!0})),function(n,i){t?e(n,i):ii((function(){e(n,i)}))}};var oi=function(e){Object.keys(e.jobs).forEach(ri.bind(e)),e.jobs={}};function ri(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}var si=ai,ci=oi,ui=function(e,t,n,i){var a=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[a]=function(e,t,n,i){var a;a=2==e.length?e(n,si(i)):e(n,t,si(i));return a}(t,a,e[a],(function(e,t){a in n.jobs&&(delete n.jobs[a],e?ci(n):n.results[a]=t,i(e,n.results))}))};var pi=function(e,t){var n=!Array.isArray(e),i={index:0,keyedList:n||t?Object.keys(e):null,jobs:{},results:n?{}:[],size:n?Object.keys(e).length:e.length};t&&i.keyedList.sort(n?t:function(n,i){return t(e[n],e[i])});return i};var li=oi,di=ai,mi=function(e){if(!Object.keys(this.jobs).length)return;this.index=this.size,li(this),di(e)(null,this.results)};var fi=ui,hi=pi,vi=mi,xi=function(e,t,n){var i=hi(e);for(;i.index<(i.keyedList||e).length;)fi(e,t,i,(function(e,t){e?n(e,t):0!==Object.keys(i.jobs).length||n(null,i.results)})),i.index++;return vi.bind(i,n)};var bi={exports:{}},gi=ui,yi=pi,Di=mi;function wi(e,t){return e<t?-1:e>t?1:0}bi.exports=function(e,t,n,i){var a=yi(e,n);return gi(e,t,a,(function n(o,r){o?i(o,r):(a.index++,a.index<(a.keyedList||e).length?gi(e,t,a,n):i(null,a.results))})),Di.bind(a,i)},bi.exports.ascending=wi,bi.exports.descending=function(e,t){return-1*wi(e,t)};var _i=bi.exports;var Ei,Ci,Fi={parallel:xi,serial:function(e,t,n){return _i(e,t,null,n)},serialOrdered:bi.exports},Ti=Object,ki=Error,ji=EvalError,Ai=RangeError,Si=ReferenceError,Oi=SyntaxError;function Ri(){return Ci?Ei:(Ci=1,Ei=TypeError)}var Bi=URIError,Pi=Math.abs,Ni=Math.floor,Li=Math.max,Ii=Math.min,Ui=Math.pow,zi=Math.round,qi=Number.isNaN||function(e){return e!=e},Mi=Object.getOwnPropertyDescriptor;if(Mi)try{Mi([],"length")}catch(e){Mi=null}var Hi=Mi,$i=Object.defineProperty||!1;if($i)try{$i({},"a",{value:1})}catch(e){$i=!1}var Gi,Wi,Ki,Vi,Ji,Yi,Xi,Zi,Qi=$i;function ea(){return Wi?Gi:(Wi=1,Gi=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var i in e[t]=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 a=Object.getOwnPropertySymbols(e);if(1!==a.length||a[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0})}function ta(){return Yi?Ji:(Yi=1,Ji="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function na(){return Zi?Xi:(Zi=1,Xi=Ti.getPrototypeOf||null)}var ia,aa,oa,ra,sa,ca,ua,pa,la,da,ma,fa,ha,va,xa=Object.prototype.toString,ba=Math.max,ga=function(e,t){for(var n=[],i=0;i<e.length;i+=1)n[i]=e[i];for(var a=0;a<t.length;a+=1)n[a+e.length]=t[a];return n},ya=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==xa.apply(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n,i=function(e,t){for(var n=[],i=t,a=0;i<e.length;i+=1,a+=1)n[a]=e[i];return n}(arguments,1),a=ba(0,t.length-i.length),o=[],r=0;r<a;r++)o[r]="$"+r;if(n=Function("binder","return function ("+function(e,t){for(var n="",i=0;i<e.length;i+=1)n+=e[i],i+1<e.length&&(n+=t);return n}(o,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof n){var a=t.apply(this,ga(i,arguments));return Object(a)===a?a:this}return t.apply(e,ga(i,arguments))})),t.prototype){var s=function(){};s.prototype=t.prototype,n.prototype=new s,s.prototype=null}return n},Da=Function.prototype.bind||ya;function wa(){return aa?ia:(aa=1,ia=Function.prototype.call)}function _a(){return ra?oa:(ra=1,oa=Function.prototype.apply)}function Ea(){if(pa)return ua;pa=1;var e=Da,t=_a(),n=wa(),i=ca?sa:(ca=1,sa="undefined"!=typeof Reflect&&Reflect&&Reflect.apply);return ua=i||e.call(n,t)}function Ca(){if(fa)return ma;fa=1;var e,t=function(){if(da)return la;da=1;var e=Da,t=Ri(),n=wa(),i=Ea();return la=function(a){if(a.length<1||"function"!=typeof a[0])throw new t("a function is required");return i(e,n,a)}}(),n=Hi;try{e=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var i=!!e&&n&&n(Object.prototype,"__proto__"),a=Object,o=a.getPrototypeOf;return ma=i&&"function"==typeof i.get?t([i.get]):"function"==typeof o&&function(e){return o(null==e?e:a(e))}}var Fa,Ta=Function.prototype.call,ka=Object.prototype.hasOwnProperty,ja=Da.call(Ta,ka),Aa=Ti,Sa=ki,Oa=ji,Ra=Ai,Ba=Si,Pa=Oi,Na=Ri(),La=Bi,Ia=Pi,Ua=Ni,za=Li,qa=Ii,Ma=Ui,Ha=zi,$a=function(e){return qi(e)||0===e?e:e<0?-1:1},Ga=Function,Wa=function(e){try{return Ga('"use strict"; return ('+e+").constructor;")()}catch(e){}},Ka=Hi,Va=Qi,Ja=function(){throw new Na},Ya=Ka?function(){try{return Ja}catch(e){try{return Ka(arguments,"callee").get}catch(e){return Ja}}}():Ja,Xa=function(){if(Vi)return Ki;Vi=1;var e="undefined"!=typeof Symbol&&Symbol,t=ea();return Ki=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}()(),Za=function(){if(va)return ha;va=1;var e=ta(),t=na(),n=Ca();return ha=e?function(t){return e(t)}:t?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return t(e)}:n?function(e){return n(e)}:null}(),Qa=na(),eo=ta(),to=_a(),no=wa(),io={},ao="undefined"!=typeof Uint8Array&&Za?Za(Uint8Array):Fa,oo={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?Fa:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?Fa:ArrayBuffer,"%ArrayIteratorPrototype%":Xa&&Za?Za([][Symbol.iterator]()):Fa,"%AsyncFromSyncIteratorPrototype%":Fa,"%AsyncFunction%":io,"%AsyncGenerator%":io,"%AsyncGeneratorFunction%":io,"%AsyncIteratorPrototype%":io,"%Atomics%":"undefined"==typeof Atomics?Fa:Atomics,"%BigInt%":"undefined"==typeof BigInt?Fa:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?Fa:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?Fa:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?Fa:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Sa,"%eval%":eval,"%EvalError%":Oa,"%Float16Array%":"undefined"==typeof Float16Array?Fa:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?Fa:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?Fa:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?Fa:FinalizationRegistry,"%Function%":Ga,"%GeneratorFunction%":io,"%Int8Array%":"undefined"==typeof Int8Array?Fa:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?Fa:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?Fa:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Xa&&Za?Za(Za([][Symbol.iterator]())):Fa,"%JSON%":"object"==typeof JSON?JSON:Fa,"%Map%":"undefined"==typeof Map?Fa:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Xa&&Za?Za((new Map)[Symbol.iterator]()):Fa,"%Math%":Math,"%Number%":Number,"%Object%":Aa,"%Object.getOwnPropertyDescriptor%":Ka,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?Fa:Promise,"%Proxy%":"undefined"==typeof Proxy?Fa:Proxy,"%RangeError%":Ra,"%ReferenceError%":Ba,"%Reflect%":"undefined"==typeof Reflect?Fa:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?Fa:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Xa&&Za?Za((new Set)[Symbol.iterator]()):Fa,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Fa:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Xa&&Za?Za(""[Symbol.iterator]()):Fa,"%Symbol%":Xa?Symbol:Fa,"%SyntaxError%":Pa,"%ThrowTypeError%":Ya,"%TypedArray%":ao,"%TypeError%":Na,"%Uint8Array%":"undefined"==typeof Uint8Array?Fa:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Fa:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?Fa:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?Fa:Uint32Array,"%URIError%":La,"%WeakMap%":"undefined"==typeof WeakMap?Fa:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?Fa:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?Fa:WeakSet,"%Function.prototype.call%":no,"%Function.prototype.apply%":to,"%Object.defineProperty%":Va,"%Object.getPrototypeOf%":Qa,"%Math.abs%":Ia,"%Math.floor%":Ua,"%Math.max%":za,"%Math.min%":qa,"%Math.pow%":Ma,"%Math.round%":Ha,"%Math.sign%":$a,"%Reflect.getPrototypeOf%":eo};if(Za)try{null.error}catch(e){var ro=Za(Za(e));oo["%Error.prototype%"]=ro}var so,co,uo=function e(t){var n;if("%AsyncFunction%"===t)n=Wa("async function () {}");else if("%GeneratorFunction%"===t)n=Wa("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=Wa("async function* () {}");else if("%AsyncGenerator%"===t){var i=e("%AsyncGeneratorFunction%");i&&(n=i.prototype)}else if("%AsyncIteratorPrototype%"===t){var a=e("%AsyncGenerator%");a&&Za&&(n=Za(a.prototype))}return oo[t]=n,n},po={__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"]},lo=Da,mo=ja,fo=lo.call(no,Array.prototype.concat),ho=lo.call(to,Array.prototype.splice),vo=lo.call(no,String.prototype.replace),xo=lo.call(no,String.prototype.slice),bo=lo.call(no,RegExp.prototype.exec),go=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,yo=/\\(\\)?/g,Do=function(e,t){var n,i=e;if(mo(po,i)&&(i="%"+(n=po[i])[0]+"%"),mo(oo,i)){var a=oo[i];if(a===io&&(a=uo(i)),void 0===a&&!t)throw new Na("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:a}}throw new Pa("intrinsic "+e+" does not exist!")};var wo=function(e,t){if("string"!=typeof e||0===e.length)throw new Na("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new Na('"allowMissing" argument must be a boolean');if(null===bo(/^%?[^%]*%?$/,e))throw new Pa("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=xo(e,0,1),n=xo(e,-1);if("%"===t&&"%"!==n)throw new Pa("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new Pa("invalid intrinsic syntax, expected opening `%`");var i=[];return vo(e,go,(function(e,t,n,a){i[i.length]=n?vo(a,yo,"$1"):t||e})),i}(e),i=n.length>0?n[0]:"",a=Do("%"+i+"%",t),o=a.name,r=a.value,s=!1,c=a.alias;c&&(i=c[0],ho(n,fo([0,1],c)));for(var u=1,p=!0;u<n.length;u+=1){var l=n[u],d=xo(l,0,1),m=xo(l,-1);if(('"'===d||"'"===d||"`"===d||'"'===m||"'"===m||"`"===m)&&d!==m)throw new Pa("property names with quotes must have matching quotes");if("constructor"!==l&&p||(s=!0),mo(oo,o="%"+(i+="."+l)+"%"))r=oo[o];else if(null!=r){if(!(l in r)){if(!t)throw new Na("base intrinsic for "+e+" exists, but the property is not available.");return}if(Ka&&u+1>=n.length){var f=Ka(r,l);r=(p=!!f)&&"get"in f&&!("originalValue"in f.get)?f.get:r[l]}else p=mo(r,l),r=r[l];p&&!s&&(oo[o]=r)}}return r}("%Object.defineProperty%",!0),_o=function(){if(co)return so;co=1;var e=ea();return so=function(){return e()&&!!Symbol.toStringTag}}()(),Eo=ja,Co=Ri(),Fo=_o?Symbol.toStringTag:null,To=Qn,ko=r,jo=a,Ao=c,So=u,Oo=s.parse,Ro=n,Bo=l.Stream,Po=m,No=ti,Lo=Fi,Io=function(e,t){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,i=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(void 0!==n&&"boolean"!=typeof n||void 0!==i&&"boolean"!=typeof i)throw new Co("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");!Fo||!n&&Eo(e,Fo)||(wo?wo(e,Fo,{configurable:!i,enumerable:!1,value:t,writable:!1}):e[Fo]=t)},Uo=ja,zo=function(e,t){return Object.keys(t).forEach((function(n){e[n]=e[n]||t[n]})),e};function qo(e){if(!(this instanceof qo))return new qo(e);for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],To.call(this),e=e||{})this[t]=e[t]}ko.inherits(qo,To),qo.LINE_BREAK="\r\n",qo.DEFAULT_CONTENT_TYPE="application/octet-stream",qo.prototype.append=function(e,t,n){"string"==typeof(n=n||{})&&(n={filename:n});var i=To.prototype.append.bind(this);if("number"!=typeof t&&null!=t||(t=String(t)),Array.isArray(t))this._error(new Error("Arrays are not supported."));else{var a=this._multiPartHeader(e,t,n),o=this._multiPartFooter();i(a),i(t),i(o),this._trackLength(a,t,n)}},qo.prototype._trackLength=function(e,t,n){var i=0;null!=n.knownLength?i+=Number(n.knownLength):Buffer.isBuffer(t)?i=t.length:"string"==typeof t&&(i=Buffer.byteLength(t)),this._valueLength+=i,this._overheadLength+=Buffer.byteLength(e)+qo.LINE_BREAK.length,t&&(t.path||t.readable&&Uo(t,"httpVersion")||t instanceof Bo)&&(n.knownLength||this._valuesToMeasure.push(t))},qo.prototype._lengthRetriever=function(e,t){Uo(e,"fd")?null!=e.end&&e.end!=1/0&&null!=e.start?t(null,e.end+1-(e.start?e.start:0)):Ro.stat(e.path,(function(n,i){if(n)t(n);else{var a=i.size-(e.start?e.start:0);t(null,a)}})):Uo(e,"httpVersion")?t(null,Number(e.headers["content-length"])):Uo(e,"httpModule")?(e.on("response",(function(n){e.pause(),t(null,Number(n.headers["content-length"]))})),e.resume()):t("Unknown stream")},qo.prototype._multiPartHeader=function(e,t,n){if("string"==typeof n.header)return n.header;var i,a=this._getContentDisposition(t,n),o=this._getContentType(t,n),r="",s={"Content-Disposition":["form-data",'name="'+e+'"'].concat(a||[]),"Content-Type":[].concat(o||[])};for(var c in"object"==typeof n.header&&zo(s,n.header),s)if(Uo(s,c)){if(null==(i=s[c]))continue;Array.isArray(i)||(i=[i]),i.length&&(r+=c+": "+i.join("; ")+qo.LINE_BREAK)}return"--"+this.getBoundary()+qo.LINE_BREAK+r+qo.LINE_BREAK},qo.prototype._getContentDisposition=function(e,t){var n;if("string"==typeof t.filepath?n=jo.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?n=jo.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&Uo(e,"httpVersion")&&(n=jo.basename(e.client._httpMessage.path||"")),n)return'filename="'+n+'"'},qo.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e&&e.name&&(n=No.lookup(e.name)),!n&&e&&e.path&&(n=No.lookup(e.path)),!n&&e&&e.readable&&Uo(e,"httpVersion")&&(n=e.headers["content-type"]),n||!t.filepath&&!t.filename||(n=No.lookup(t.filepath||t.filename)),!n&&e&&"object"==typeof e&&(n=qo.DEFAULT_CONTENT_TYPE),n},qo.prototype._multiPartFooter=function(){return function(e){var t=qo.LINE_BREAK;0===this._streams.length&&(t+=this._lastBoundary()),e(t)}.bind(this)},qo.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+qo.LINE_BREAK},qo.prototype.getHeaders=function(e){var t,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)Uo(e,t)&&(n[t.toLowerCase()]=e[t]);return n},qo.prototype.setBoundary=function(e){if("string"!=typeof e)throw new TypeError("FormData boundary must be a string");this._boundary=e},qo.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},qo.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),n=0,i=this._streams.length;n<i;n++)"function"!=typeof this._streams[n]&&(e=Buffer.isBuffer(this._streams[n])?Buffer.concat([e,this._streams[n]]):Buffer.concat([e,Buffer.from(this._streams[n])]),"string"==typeof this._streams[n]&&this._streams[n].substring(2,t.length+2)===t||(e=Buffer.concat([e,Buffer.from(qo.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},qo.prototype._generateBoundary=function(){this._boundary="--------------------------"+Po.randomBytes(12).toString("hex")},qo.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},qo.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},qo.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;this._streams.length&&(t+=this._lastBoundary().length),this._valuesToMeasure.length?Lo.parallel(this._valuesToMeasure,this._lengthRetriever,(function(n,i){n?e(n):(i.forEach((function(e){t+=e})),e(null,t))})):process.nextTick(e.bind(this,null,t))},qo.prototype.submit=function(e,t){var n,i,a={method:"post"};return"string"==typeof e?(e=Oo(e),i=zo({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},a)):(i=zo(e,a)).port||(i.port="https:"===i.protocol?443:80),i.headers=this.getHeaders(e.headers),n="https:"===i.protocol?So.request(i):Ao.request(i),this.getLength(function(e,i){if(e&&"Unknown stream"!==e)this._error(e);else if(i&&n.setHeader("Content-Length",i),this.pipe(n),t){var a,o=function(e,i){return n.removeListener("error",o),n.removeListener("response",a),t.call(this,e,i)};a=o.bind(this,null),n.on("error",o),n.on("response",a)}}.bind(this)),n},qo.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},qo.prototype.toString=function(){return"[object FormData]"},Io(qo,"FormData");var Mo=qo;function Ho(e){return Hn.isPlainObject(e)||Hn.isArray(e)}function $o(e){return Hn.endsWith(e,"[]")?e.slice(0,-2):e}function Go(e,t,n){return e?e.concat(t).map((function(e,t){return e=$o(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Wo=Hn.toFlatObject(Hn,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Ko(e,t,n){if(!Hn.isObject(e))throw new TypeError("target must be an object");t=t||new(Mo||FormData);const i=(n=Hn.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Hn.isUndefined(t[e])}))).metaTokens,a=n.visitor||u,o=n.dots,r=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Hn.isSpecCompliantForm(t);if(!Hn.isFunction(a))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Hn.isDate(e))return e.toISOString();if(!s&&Hn.isBlob(e))throw new $n("Blob is not supported. Use a Buffer instead.");return Hn.isArrayBuffer(e)||Hn.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,a){let s=e;if(e&&!a&&"object"==typeof e)if(Hn.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=JSON.stringify(e);else if(Hn.isArray(e)&&function(e){return Hn.isArray(e)&&!e.some(Ho)}(e)||(Hn.isFileList(e)||Hn.endsWith(n,"[]"))&&(s=Hn.toArray(e)))return n=$o(n),s.forEach((function(e,i){!Hn.isUndefined(e)&&null!==e&&t.append(!0===r?Go([n],i,o):null===r?n:n+"[]",c(e))})),!1;return!!Ho(e)||(t.append(Go(a,n,o),c(e)),!1)}const p=[],l=Object.assign(Wo,{defaultVisitor:u,convertValue:c,isVisitable:Ho});if(!Hn.isObject(e))throw new TypeError("data must be an object");return function e(n,i){if(!Hn.isUndefined(n)){if(-1!==p.indexOf(n))throw Error("Circular reference detected in "+i.join("."));p.push(n),Hn.forEach(n,(function(n,o){!0===(!(Hn.isUndefined(n)||null===n)&&a.call(t,n,Hn.isString(o)?o.trim():o,i,l))&&e(n,i?i.concat(o):[o])})),p.pop()}}(e),t}function Vo(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Jo(e,t){this._pairs=[],e&&Ko(e,this,t)}const Yo=Jo.prototype;function Xo(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Zo(e,t,n){if(!t)return e;const i=n&&n.encode||Xo;Hn.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let o;if(o=a?a(t,n):Hn.isURLSearchParams(t)?t.toString():new Jo(t,n).toString(i),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}Yo.append=function(e,t){this._pairs.push([e,t])},Yo.toString=function(e){const t=e?function(t){return e.call(this,t,Vo)}:Vo;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class Qo{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Hn.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var er={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},tr=s.URLSearchParams;const nr="abcdefghijklmnopqrstuvwxyz",ir="0123456789",ar={DIGIT:ir,ALPHA:nr,ALPHA_DIGIT:nr+nr.toUpperCase()+ir};var or={isNode:!0,classes:{URLSearchParams:tr,FormData:Mo,Blob:"undefined"!=typeof Blob&&Blob||null},ALPHABET:ar,generateString:(e=16,t=ar.ALPHA_DIGIT)=>{let n="";const{length:i}=t,a=new Uint32Array(e);m.randomFillSync(a);for(let o=0;o<e;o++)n+=t[a[o]%i];return n},protocols:["http","https","file","data"]};const rr="undefined"!=typeof window&&"undefined"!=typeof document,sr="object"==typeof navigator&&navigator||void 0,cr=rr&&(!sr||["ReactNative","NativeScript","NS"].indexOf(sr.product)<0),ur="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,pr=rr&&window.location.href||"http://localhost";var lr={...Object.freeze({__proto__:null,hasBrowserEnv:rr,hasStandardBrowserEnv:cr,hasStandardBrowserWebWorkerEnv:ur,navigator:sr,origin:pr}),...or};function dr(e){function t(e,n,i,a){let o=e[a++];if("__proto__"===o)return!0;const r=Number.isFinite(+o),s=a>=e.length;if(o=!o&&Hn.isArray(i)?i.length:o,s)return Hn.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!r;i[o]&&Hn.isObject(i[o])||(i[o]=[]);return t(e,n,i[o],a)&&Hn.isArray(i[o])&&(i[o]=function(e){const t={},n=Object.keys(e);let i;const a=n.length;let o;for(i=0;i<a;i++)o=n[i],t[o]=e[o];return t}(i[o])),!r}if(Hn.isFormData(e)&&Hn.isFunction(e.entries)){const n={};return Hn.forEachEntry(e,((e,i)=>{t(function(e){return Hn.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),i,n,0)})),n}return null}const mr={transitional:er,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",i=n.indexOf("application/json")>-1,a=Hn.isObject(e);a&&Hn.isHTMLForm(e)&&(e=new FormData(e));if(Hn.isFormData(e))return i?JSON.stringify(dr(e)):e;if(Hn.isArrayBuffer(e)||Hn.isBuffer(e)||Hn.isStream(e)||Hn.isFile(e)||Hn.isBlob(e)||Hn.isReadableStream(e))return e;if(Hn.isArrayBufferView(e))return e.buffer;if(Hn.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Ko(e,new lr.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,i){return lr.isNode&&Hn.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=Hn.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Ko(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return a||i?(t.setContentType("application/json",!1),function(e,t,n){if(Hn.isString(e))try{return(t||JSON.parse)(e),Hn.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||mr.transitional,n=t&&t.forcedJSONParsing,i="json"===this.responseType;if(Hn.isResponse(e)||Hn.isReadableStream(e))return e;if(e&&Hn.isString(e)&&(n&&!this.responseType||i)){const n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw $n.from(e,$n.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:lr.classes.FormData,Blob:lr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Hn.forEach(["delete","get","head","post","put","patch"],(e=>{mr.headers[e]={}}));const fr=Hn.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 hr=Symbol("internals");function vr(e){return e&&String(e).trim().toLowerCase()}function xr(e){return!1===e||null==e?e:Hn.isArray(e)?e.map(xr):String(e)}function br(e,t,n,i,a){return Hn.isFunction(i)?i.call(this,t,n):(a&&(t=n),Hn.isString(t)?Hn.isString(i)?-1!==t.indexOf(i):Hn.isRegExp(i)?i.test(t):void 0:void 0)}let gr=class{constructor(e){e&&this.set(e)}set(e,t,n){const i=this;function a(e,t,n){const a=vr(t);if(!a)throw new Error("header name must be a non-empty string");const o=Hn.findKey(i,a);(!o||void 0===i[o]||!0===n||void 0===n&&!1!==i[o])&&(i[o||t]=xr(e))}const o=(e,t)=>Hn.forEach(e,((e,n)=>a(e,n,t)));if(Hn.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(Hn.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let n,i,a;return e&&e.split("\n").forEach((function(e){a=e.indexOf(":"),n=e.substring(0,a).trim().toLowerCase(),i=e.substring(a+1).trim(),!n||t[n]&&fr[n]||("set-cookie"===n?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)})),t})(e),t);else if(Hn.isHeaders(e))for(const[t,i]of e.entries())a(i,t,n);else null!=e&&a(t,e,n);return this}get(e,t){if(e=vr(e)){const n=Hn.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}(e);if(Hn.isFunction(t))return t.call(this,e,n);if(Hn.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=vr(e)){const n=Hn.findKey(this,e);return!(!n||void 0===this[n]||t&&!br(0,this[n],n,t))}return!1}delete(e,t){const n=this;let i=!1;function a(e){if(e=vr(e)){const a=Hn.findKey(n,e);!a||t&&!br(0,n[a],a,t)||(delete n[a],i=!0)}}return Hn.isArray(e)?e.forEach(a):a(e),i}clear(e){const t=Object.keys(this);let n=t.length,i=!1;for(;n--;){const a=t[n];e&&!br(0,this[a],a,e,!0)||(delete this[a],i=!0)}return i}normalize(e){const t=this,n={};return Hn.forEach(this,((i,a)=>{const o=Hn.findKey(n,a);if(o)return t[o]=xr(i),void delete t[a];const r=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(a):String(a).trim();r!==a&&delete t[a],t[r]=xr(i),n[r]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Hn.forEach(this,((n,i)=>{null!=n&&!1!==n&&(t[i]=e&&Hn.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[hr]=this[hr]={accessors:{}}).accessors,n=this.prototype;function i(e){const i=vr(e);t[i]||(!function(e,t){const n=Hn.toCamelCase(" "+t);["get","set","has"].forEach((i=>{Object.defineProperty(e,i+n,{value:function(e,n,a){return this[i].call(this,t,e,n,a)},configurable:!0})}))}(n,e),t[i]=!0)}return Hn.isArray(e)?e.forEach(i):i(e),this}};function yr(e,t){const n=this||mr,i=t||n,a=gr.from(i.headers);let o=i.data;return Hn.forEach(e,(function(e){o=e.call(n,o,a.normalize(),t?t.status:void 0)})),a.normalize(),o}function Dr(e){return!(!e||!e.__CANCEL__)}function wr(e,t,n){$n.call(this,null==e?"canceled":e,$n.ERR_CANCELED,t,n),this.name="CanceledError"}function _r(e,t,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new $n("Request failed with status code "+n.status,[$n.ERR_BAD_REQUEST,$n.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function Er(e,t,n){let i=!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t);return e&&(i||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}gr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Hn.reduceDescriptors(gr.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Hn.freezeMethods(gr),Hn.inherits(wr,$n,{__CANCEL__:!0});var Cr={},Fr=s.parse,Tr={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},kr=String.prototype.endsWith||function(e){return e.length<=this.length&&-1!==this.indexOf(e,this.length-e.length)};function jr(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}Cr.getProxyForUrl=function(e){var t="string"==typeof e?Fr(e):e||{},n=t.protocol,i=t.host,a=t.port;if("string"!=typeof i||!i||"string"!=typeof n)return"";if(n=n.split(":",1)[0],!function(e,t){var n=(jr("npm_config_no_proxy")||jr("no_proxy")).toLowerCase();if(!n)return!0;if("*"===n)return!1;return n.split(/[,\s]/).every((function(n){if(!n)return!0;var i=n.match(/^(.+):(\d+)$/),a=i?i[1]:n,o=i?parseInt(i[2]):0;return!(!o||o===t)||(/^[.*]/.test(a)?("*"===a.charAt(0)&&(a=a.slice(1)),!kr.call(e,a)):e!==a)}))}(i=i.replace(/:\d*$/,""),a=parseInt(a)||Tr[n]||0))return"";var o=jr("npm_config_"+n+"_proxy")||jr(n+"_proxy")||jr("npm_config_proxy")||jr("all_proxy");return o&&-1===o.indexOf("://")&&(o=n+"://"+o),o};var Ar,Sr,Or,Rr,Br,Pr={exports:{}},Nr={exports:{}},Lr={exports:{}};function Ir(){if(Sr)return Ar;Sr=1;var e=1e3,t=60*e,n=60*t,i=24*n,a=7*i,o=365.25*i;function r(e,t,n,i){var a=t>=1.5*n;return Math.round(e/n)+" "+i+(a?"s":"")}return Ar=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*a;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*t;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(a){var o=Math.abs(a);if(o>=i)return r(a,o,i,"day");if(o>=n)return r(a,o,n,"hour");if(o>=t)return r(a,o,t,"minute");if(o>=e)return r(a,o,e,"second");return a+" ms"}(s):function(a){var o=Math.abs(a);if(o>=i)return Math.round(a/i)+"d";if(o>=n)return Math.round(a/n)+"h";if(o>=t)return Math.round(a/t)+"m";if(o>=e)return Math.round(a/e)+"s";return a+"ms"}(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))},Ar}function Ur(){if(Rr)return Or;return Rr=1,Or=function(e){function t(e){let i,a,o,r=null;function s(...e){if(!s.enabled)return;const n=s,a=Number(new Date),o=a-(i||a);n.diff=o,n.prev=i,n.curr=a,i=a,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let r=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((i,a)=>{if("%%"===i)return"%";r++;const o=t.formatters[a];if("function"==typeof o){const t=e[r];i=o.call(n,t),e.splice(r,1),r--}return i})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==r?r:(a!==t.namespaces&&(a=t.namespaces,o=t.enabled(e)),o),set:e=>{r=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){const i=t(this.namespace+(void 0===n?":":n)+e);return i.log=this.log,i}function i(e,t){let n=0,i=0,a=-1,o=0;for(;n<e.length;)if(i<t.length&&(t[i]===e[n]||"*"===t[i]))"*"===t[i]?(a=i,o=n,i++):(n++,i++);else{if(-1===a)return!1;i=a+1,o++,n=o}for(;i<t.length&&"*"===t[i];)i++;return i===t.length}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names,...t.skips.map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").trim().replace(" ",",").split(",").filter(Boolean);for(const e of n)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const n of t.skips)if(i(e,n))return!1;for(const n of t.names)if(i(e,n))return!0;return!1},t.humanize=Ir(),t.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((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t},Or}var zr,qr,Mr,Hr,$r,Gr,Wr,Kr={exports:{}};function Vr(){return qr?zr:(qr=1,zr=(e,t=process.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",i=t.indexOf(n+e),a=t.indexOf("--");return-1!==i&&(-1===a||i<a)})}function Jr(){return $r||($r=1,function(t,n){const i=h,a=r;n.init=function(e){e.inspectOpts={};const t=Object.keys(n.inspectOpts);for(let i=0;i<t.length;i++)e.inspectOpts[t[i]]=n.inspectOpts[t[i]]},n.log=function(...e){return process.stderr.write(a.formatWithOptions(n.inspectOpts,...e)+"\n")},n.formatArgs=function(e){const{namespace:i,useColors:a}=this;if(a){const n=this.color,a="[3"+(n<8?n:"8;5;"+n),o=` ${a};1m${i} `;e[0]=o+e[0].split("\n").join("\n"+o),e.push(a+"m+"+t.exports.humanize(this.diff)+"")}else e[0]=function(){if(n.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+i+" "+e[0]},n.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},n.load=function(){return process.env.DEBUG},n.useColors=function(){return"colors"in n.inspectOpts?Boolean(n.inspectOpts.colors):i.isatty(process.stderr.fd)},n.destroy=a.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),n.colors=[6,2,3,4,5,1];try{const t=function(){if(Hr)return Mr;Hr=1;const t=e,n=h,i=Vr(),{env:a}=process;let o;function r(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function s(e,n){if(0===o)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(e&&!n&&void 0===o)return 0;const r=o||0;if("dumb"===a.TERM)return r;if("win32"===process.platform){const e=t.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in a)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in a))||"codeship"===a.CI_NAME?1:r;if("TEAMCITY_VERSION"in a)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0;if("truecolor"===a.COLORTERM)return 3;if("TERM_PROGRAM"in a){const e=parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||"COLORTERM"in a?1:r}return i("no-color")||i("no-colors")||i("color=false")||i("color=never")?o=0:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(o=1),"FORCE_COLOR"in a&&(o="true"===a.FORCE_COLOR?1:"false"===a.FORCE_COLOR?0:0===a.FORCE_COLOR.length?1:Math.min(parseInt(a.FORCE_COLOR,10),3)),Mr={supportsColor:function(e){return r(s(e,e&&e.isTTY))},stdout:r(s(!0,n.isatty(1))),stderr:r(s(!0,n.isatty(2)))},Mr}();t&&(t.stderr||t).level>=2&&(n.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){}n.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let i=process.env[t];return i=!!/^(yes|on|true|enabled)$/i.test(i)||!/^(no|off|false|disabled)$/i.test(i)&&("null"===i?null:Number(i)),e[n]=i,e}),{}),t.exports=Ur()(n);const{formatters:o}=t.exports;o.o=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},o.O=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts)}}(Kr,Kr.exports)),Kr.exports}function Yr(){return Gr||(Gr=1,e=Nr,"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=(Br||(Br=1,function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let i=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(i++,"%c"===e&&(a=i))})),t.splice(a,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.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+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.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`."))}})(),t.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"],t.log=console.debug||console.log||(()=>{}),e.exports=Ur()(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(Lr,Lr.exports)),Lr.exports):e.exports=Jr()),Nr.exports;var e}var Xr,Zr,Qr,es=s,ts=es.URL,ns=c,is=u,as=l.Writable,os=f,rs=function(){if(!Wr){try{Wr=Yr()("follow-redirects")}catch(e){}"function"!=typeof Wr&&(Wr=function(){})}Wr.apply(null,arguments)};Xr="undefined"!=typeof process,Zr="undefined"!=typeof window&&"undefined"!=typeof document,Qr=Ts(Error.captureStackTrace),Xr||!Zr&&Qr||console.warn("The follow-redirects package should be excluded from browser builds.");var ss=!1;try{os(new ts(""))}catch(e){ss="ERR_INVALID_URL"===e.code}var cs=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],us=["abort","aborted","connect","error","socket","timeout"],ps=Object.create(null);us.forEach((function(e){ps[e]=function(t,n,i){this._redirectable.emit(e,t,n,i)}}));var ls=Es("ERR_INVALID_URL","Invalid URL",TypeError),ds=Es("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),ms=Es("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",ds),fs=Es("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),hs=Es("ERR_STREAM_WRITE_AFTER_END","write after end"),vs=as.prototype.destroy||gs;function xs(e,t){as.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var n=this;this._onNativeResponse=function(e){try{n._processResponse(e)}catch(e){n.emit("error",e instanceof ds?e:new ds({cause:e}))}},this._performRequest()}function bs(e){var t={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(e).forEach((function(i){var a=i+":",o=n[a]=e[i],r=t[i]=Object.create(o);Object.defineProperties(r,{request:{value:function(e,i,o){var r;return r=e,ts&&r instanceof ts?e=ws(e):Fs(e)?e=ws(ys(e)):(o=i,i=Ds(e),e={protocol:a}),Ts(i)&&(o=i,i=null),(i=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,i)).nativeProtocols=n,Fs(i.host)||Fs(i.hostname)||(i.hostname="::1"),os.equal(i.protocol,a,"protocol mismatch"),rs("options",i),new xs(i,o)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,n){var i=r.request(e,t,n);return i.end(),i},configurable:!0,enumerable:!0,writable:!0}})})),t}function gs(){}function ys(e){var t;if(ss)t=new ts(e);else if(!Fs((t=Ds(es.parse(e))).protocol))throw new ls({input:e});return t}function Ds(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new ls({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new ls({input:e.href||e});return e}function ws(e,t){var n=t||{};for(var i of cs)n[i]=e[i];return n.hostname.startsWith("[")&&(n.hostname=n.hostname.slice(1,-1)),""!==n.port&&(n.port=Number(n.port)),n.path=n.search?n.pathname+n.search:n.pathname,n}function _s(e,t){var n;for(var i in t)e.test(i)&&(n=t[i],delete t[i]);return null==n?void 0:String(n).trim()}function Es(e,t,n){function i(n){Ts(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return i.prototype=new(n||Error),Object.defineProperties(i.prototype,{constructor:{value:i,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),i}function Cs(e,t){for(var n of us)e.removeListener(n,ps[n]);e.on("error",gs),e.destroy(t)}function Fs(e){return"string"==typeof e||e instanceof String}function Ts(e){return"function"==typeof e}xs.prototype=Object.create(as.prototype),xs.prototype.abort=function(){Cs(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},xs.prototype.destroy=function(e){return Cs(this._currentRequest,e),vs.call(this,e),this},xs.prototype.write=function(e,t,n){if(this._ending)throw new hs;if(!Fs(e)&&("object"!=typeof(i=e)||!("length"in i)))throw new TypeError("data should be a string, Buffer or Uint8Array");var i;Ts(t)&&(n=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,n)):(this.emit("error",new fs),this.abort()):n&&n()},xs.prototype.end=function(e,t,n){if(Ts(e)?(n=e,e=t=null):Ts(t)&&(n=t,t=null),e){var i=this,a=this._currentRequest;this.write(e,t,(function(){i._ended=!0,a.end(null,null,n)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,n)},xs.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},xs.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},xs.prototype.setTimeout=function(e,t){var n=this;function i(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function a(t){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout((function(){n.emit("timeout"),o()}),e),i(t)}function o(){n._timeout&&(clearTimeout(n._timeout),n._timeout=null),n.removeListener("abort",o),n.removeListener("error",o),n.removeListener("response",o),n.removeListener("close",o),t&&n.removeListener("timeout",t),n.socket||n._currentRequest.removeListener("socket",a)}return t&&this.on("timeout",t),this.socket?a(this.socket):this._currentRequest.once("socket",a),this.on("socket",i),this.on("abort",o),this.on("error",o),this.on("response",o),this.on("close",o),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){xs.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(xs.prototype,e,{get:function(){return this._currentRequest[e]}})})),xs.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},xs.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var n=e.slice(0,-1);this._options.agent=this._options.agents[n]}var i=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var a of(i._redirectable=this,us))i.on(a,ps[a]);if(this._currentUrl=/^\//.test(this._options.path)?es.format(this._options):this._options.path,this._isRedirect){var o=0,r=this,s=this._requestBodyBuffers;!function e(t){if(i===r._currentRequest)if(t)r.emit("error",t);else if(o<s.length){var n=s[o++];i.finished||i.write(n.data,n.encoding,e)}else r._ended&&i.end()}()}},xs.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var n,i=e.headers.location;if(!i||!1===this._options.followRedirects||t<300||t>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(Cs(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new ms;var a=this._options.beforeRedirect;a&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var o=this._options.method;((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],_s(/^content-/i,this._options.headers));var r,s,c=_s(/^host$/i,this._options.headers),u=ys(this._currentUrl),p=c||u.host,l=/^\w+:/.test(i)?this._currentUrl:es.format(Object.assign(u,{host:p})),d=(r=i,s=l,ss?new ts(r,s):ys(es.resolve(s,r)));if(rs("redirecting to",d.href),this._isRedirect=!0,ws(d,this._options),(d.protocol!==u.protocol&&"https:"!==d.protocol||d.host!==p&&!function(e,t){os(Fs(e)&&Fs(t));var n=e.length-t.length-1;return n>0&&"."===e[n]&&e.endsWith(t)}(d.host,p))&&_s(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),Ts(a)){var m={headers:e.headers,statusCode:t},f={url:l,method:o,headers:n};a(this._options,m,f),this._sanitizeOptions(this._options)}this._performRequest()},Pr.exports=bs({http:ns,https:is}),Pr.exports.wrap=bs;const ks="1.8.4";function js(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const As=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;const Ss=Symbol("internals");class Os extends l.Transform{constructor(e){e=Hn.toFlatObject(e,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,((e,t)=>!Hn.isUndefined(t[e]))),super({readableHighWaterMark:e.chunkSize});const t=this[Ss]={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&&(t.isCaptured||(t.isCaptured=!0))}))}_read(e){const t=this[Ss];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,n){const i=this[Ss],a=i.maxRate,o=this.readableHighWaterMark,r=i.timeWindow,s=a/(1e3/r),c=!1!==i.minChunkSize?Math.max(i.minChunkSize,.01*s):0,u=(e,t)=>{const n=Buffer.byteLength(e);i.bytesSeen+=n,i.bytes+=n,i.isCaptured&&this.emit("progress",i.bytesSeen),this.push(e)?process.nextTick(t):i.onReadCallback=()=>{i.onReadCallback=null,process.nextTick(t)}},p=(e,t)=>{const n=Buffer.byteLength(e);let p,l=null,d=o,m=0;if(a){const e=Date.now();(!i.ts||(m=e-i.ts)>=r)&&(i.ts=e,p=s-i.bytes,i.bytes=p<0?-p:0,m=0),p=s-i.bytes}if(a){if(p<=0)return setTimeout((()=>{t(null,e)}),r-m);p<d&&(d=p)}d&&n>d&&n-d>c&&(l=e.subarray(d),e=e.subarray(0,d)),u(e,l?()=>{process.nextTick(t,null,l)}:t)};p(e,(function e(t,i){if(t)return n(t);i?p(i,e):n(null)}))}}const{asyncIterator:Rs}=Symbol,Bs=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[Rs]?yield*e[Rs]():yield e},Ps=lr.ALPHABET.ALPHA_DIGIT+"-_",Ns="function"==typeof TextEncoder?new TextEncoder:new r.TextEncoder,Ls="\r\n",Is=Ns.encode(Ls);class Us{constructor(e,t){const{escapeName:n}=this.constructor,i=Hn.isString(t);let a=`Content-Disposition: form-data; name="${n(e)}"${!i&&t.name?`; filename="${n(t.name)}"`:""}${Ls}`;i?t=Ns.encode(String(t).replace(/\r?\n|\r\n?/g,Ls)):a+=`Content-Type: ${t.type||"application/octet-stream"}${Ls}`,this.headers=Ns.encode(a+Ls),this.contentLength=i?t.byteLength:t.size,this.size=this.headers.byteLength+this.contentLength+2,this.name=e,this.value=t}async*encode(){yield this.headers;const{value:e}=this;Hn.isTypedArray(e)?yield e:yield*Bs(e),yield Is}static escapeName(e){return String(e).replace(/[\r\n"]/g,(e=>({"\r":"%0D","\n":"%0A",'"':"%22"}[e])))}}class zs extends l.Transform{__transform(e,t,n){this.push(e),n()}_transform(e,t,n){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,t)}this.__transform(e,t,n)}}const qs=(e,t)=>Hn.isAsyncFn(e)?function(...n){const i=n.pop();e.apply(this,n).then((e=>{try{t?i(null,...t(e)):i(null,e)}catch(e){i(e)}}),i)}:e;const Ms=(e,t,n=3)=>{let i=0;const a=function(e,t){e=e||10;const n=new Array(e),i=new Array(e);let a,o=0,r=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=i[r];a||(a=c),n[o]=s,i[o]=c;let p=r,l=0;for(;p!==o;)l+=n[p++],p%=e;if(o=(o+1)%e,o===r&&(r=(r+1)%e),c-a<t)return;const d=u&&c-u;return d?Math.round(1e3*l/d):void 0}}(50,250);return function(e,t){let n,i,a=0,o=1e3/t;const r=(t,o=Date.now())=>{a=o,n=null,i&&(clearTimeout(i),i=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-a;s>=o?r(e,t):(n=e,i||(i=setTimeout((()=>{i=null,r(n)}),o-s)))},()=>n&&r(n)]}((n=>{const o=n.loaded,r=n.lengthComputable?n.total:void 0,s=o-i,c=a(s);i=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:n,lengthComputable:null!=r,[t?"download":"upload"]:!0})}),n)},Hs=(e,t)=>{const n=null!=e;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},$s=e=>(...t)=>Hn.asap((()=>e(...t))),Gs={flush:v.constants.Z_SYNC_FLUSH,finishFlush:v.constants.Z_SYNC_FLUSH},Ws={flush:v.constants.BROTLI_OPERATION_FLUSH,finishFlush:v.constants.BROTLI_OPERATION_FLUSH},Ks=Hn.isFunction(v.createBrotliDecompress),{http:Vs,https:Js}=Pr.exports,Ys=/https:?/,Xs=lr.protocols.map((e=>e+":")),Zs=(e,[t,n])=>(e.on("end",n).on("error",n),t);function Qs(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function ec(e,t,n){let i=t;if(!i&&!1!==i){const e=Cr.getProxyForUrl(n);e&&(i=new URL(e))}if(i){if(i.username&&(i.auth=(i.username||"")+":"+(i.password||"")),i.auth){(i.auth.username||i.auth.password)&&(i.auth=(i.auth.username||"")+":"+(i.auth.password||""));const t=Buffer.from(i.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+t}e.headers.host=e.hostname+(e.port?":"+e.port:"");const t=i.hostname||i.host;e.hostname=t,e.host=t,e.port=i.port,e.path=n,i.protocol&&(e.protocol=i.protocol.includes(":")?i.protocol:`${i.protocol}:`)}e.beforeRedirects.proxy=function(e){ec(e,t,e.href)}}const tc="undefined"!=typeof process&&"process"===Hn.kindOf(process),nc=(e,t)=>(({address:e,family:t})=>{if(!Hn.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}})(Hn.isObject(e)?e:{address:e,family:t});var ic=tc&&function(e){return t=async function(t,n,i){let{data:a,lookup:o,family:s}=e;const{responseType:p,responseEncoding:m}=e,f=e.method.toUpperCase();let h,x,g=!1;if(o){const e=qs(o,(e=>Hn.isArray(e)?e:[e]));o=(t,n,i)=>{e(t,n,((e,t,a)=>{if(e)return i(e);const o=Hn.isArray(t)?t.map((e=>nc(e))):[nc(t,a)];n.all?i(e,o):i(e,o[0].address,o[0].family)}))}}const y=new b,D=()=>{e.cancelToken&&e.cancelToken.unsubscribe(w),e.signal&&e.signal.removeEventListener("abort",w),y.removeAllListeners()};function w(t){y.emit("abort",!t||t.type?new wr(null,e,x):t)}i(((e,t)=>{h=!0,t&&(g=!0,D())})),y.once("abort",n),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(w),e.signal&&(e.signal.aborted?w():e.signal.addEventListener("abort",w)));const _=Er(e.baseURL,e.url,e.allowAbsoluteUrls),E=new URL(_,lr.hasBrowserEnv?lr.origin:void 0),C=E.protocol||Xs[0];if("data:"===C){let i;if("GET"!==f)return _r(t,n,{status:405,statusText:"method not allowed",headers:{},config:e});try{i=function(e,t,n){const i=n&&n.Blob||lr.classes.Blob,a=js(e);if(void 0===t&&i&&(t=!0),"data"===a){e=a.length?e.slice(a.length+1):e;const n=As.exec(e);if(!n)throw new $n("Invalid URL",$n.ERR_INVALID_URL);const o=n[1],r=n[2],s=n[3],c=Buffer.from(decodeURIComponent(s),r?"base64":"utf8");if(t){if(!i)throw new $n("Blob is not supported",$n.ERR_NOT_SUPPORT);return new i([c],{type:o})}return c}throw new $n("Unsupported protocol "+a,$n.ERR_NOT_SUPPORT)}(e.url,"blob"===p,{Blob:e.env&&e.env.Blob})}catch(t){throw $n.from(t,$n.ERR_BAD_REQUEST,e)}return"text"===p?(i=i.toString(m),m&&"utf8"!==m||(i=Hn.stripBOM(i))):"stream"===p&&(i=l.Readable.from(i)),_r(t,n,{data:i,status:200,statusText:"OK",headers:new gr,config:e})}if(-1===Xs.indexOf(C))return n(new $n("Unsupported protocol "+C,$n.ERR_BAD_REQUEST,e));const F=gr.from(e.headers).normalize();F.set("User-Agent","axios/"+ks,!1);const{onUploadProgress:T,onDownloadProgress:k}=e,j=e.maxRate;let A,S;if(Hn.isSpecCompliantForm(a)){const e=F.getContentType(/boundary=([-_\w\d]{10,70})/i);a=((e,t,n)=>{const{tag:i="form-data-boundary",size:a=25,boundary:o=i+"-"+lr.generateString(a,Ps)}=n||{};if(!Hn.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=Ns.encode("--"+o+Ls),s=Ns.encode("--"+o+"--"+Ls+Ls);let c=s.byteLength;const u=Array.from(e.entries()).map((([e,t])=>{const n=new Us(e,t);return c+=n.size,n}));c+=r.byteLength*u.length,c=Hn.toFiniteNumber(c);const p={"Content-Type":`multipart/form-data; boundary=${o}`};return Number.isFinite(c)&&(p["Content-Length"]=c),t&&t(p),d.from(async function*(){for(const e of u)yield r,yield*e.encode();yield s}())})(a,(e=>{F.set(e)}),{tag:`axios-${ks}-boundary`,boundary:e&&e[1]||void 0})}else if(Hn.isFormData(a)&&Hn.isFunction(a.getHeaders)){if(F.set(a.getHeaders()),!F.hasContentLength())try{const e=await r.promisify(a.getLength).call(a);Number.isFinite(e)&&e>=0&&F.setContentLength(e)}catch(e){}}else if(Hn.isBlob(a)||Hn.isFile(a))a.size&&F.setContentType(a.type||"application/octet-stream"),F.setContentLength(a.size||0),a=l.Readable.from(Bs(a));else if(a&&!Hn.isStream(a)){if(Buffer.isBuffer(a));else if(Hn.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else{if(!Hn.isString(a))return n(new $n("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",$n.ERR_BAD_REQUEST,e));a=Buffer.from(a,"utf-8")}if(F.setContentLength(a.length,!1),e.maxBodyLength>-1&&a.length>e.maxBodyLength)return n(new $n("Request body larger than maxBodyLength limit",$n.ERR_BAD_REQUEST,e))}const O=Hn.toFiniteNumber(F.getContentLength());let R,B;Hn.isArray(j)?(A=j[0],S=j[1]):A=S=j,a&&(T||A)&&(Hn.isStream(a)||(a=l.Readable.from(a,{objectMode:!1})),a=l.pipeline([a,new Os({maxRate:Hn.toFiniteNumber(A)})],Hn.noop),T&&a.on("progress",Zs(a,Hs(O,Ms($s(T),!1,3))))),e.auth&&(R=(e.auth.username||"")+":"+(e.auth.password||"")),!R&&E.username&&(R=E.username+":"+E.password),R&&F.delete("authorization");try{B=Zo(E.pathname+E.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){const i=new Error(t.message);return i.config=e,i.url=e.url,i.exists=!0,n(i)}F.set("Accept-Encoding","gzip, compress, deflate"+(Ks?", br":""),!1);const P={path:B,method:f,headers:F.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:R,protocol:C,family:s,beforeRedirect:Qs,beforeRedirects:{}};let N;!Hn.isUndefined(o)&&(P.lookup=o),e.socketPath?P.socketPath=e.socketPath:(P.hostname=E.hostname.startsWith("[")?E.hostname.slice(1,-1):E.hostname,P.port=E.port,ec(P,e.proxy,C+"//"+E.hostname+(E.port?":"+E.port:"")+P.path));const L=Ys.test(P.protocol);if(P.agent=L?e.httpsAgent:e.httpAgent,e.transport?N=e.transport:0===e.maxRedirects?N=L?u:c:(e.maxRedirects&&(P.maxRedirects=e.maxRedirects),e.beforeRedirect&&(P.beforeRedirects.config=e.beforeRedirect),N=L?Js:Vs),e.maxBodyLength>-1?P.maxBodyLength=e.maxBodyLength:P.maxBodyLength=1/0,e.insecureHTTPParser&&(P.insecureHTTPParser=e.insecureHTTPParser),x=N.request(P,(function(i){if(x.destroyed)return;const a=[i],o=+i.headers["content-length"];if(k||S){const e=new Os({maxRate:Hn.toFiniteNumber(S)});k&&e.on("progress",Zs(e,Hs(o,Ms($s(k),!0,3)))),a.push(e)}let r=i;const s=i.req||x;if(!1!==e.decompress&&i.headers["content-encoding"])switch("HEAD"!==f&&204!==i.statusCode||delete i.headers["content-encoding"],(i.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":a.push(v.createUnzip(Gs)),delete i.headers["content-encoding"];break;case"deflate":a.push(new zs),a.push(v.createUnzip(Gs)),delete i.headers["content-encoding"];break;case"br":Ks&&(a.push(v.createBrotliDecompress(Ws)),delete i.headers["content-encoding"])}r=a.length>1?l.pipeline(a,Hn.noop):a[0];const c=l.finished(r,(()=>{c(),D()})),u={status:i.statusCode,statusText:i.statusMessage,headers:new gr(i.headers),config:e,request:s};if("stream"===p)u.data=r,_r(t,n,u);else{const i=[];let a=0;r.on("data",(function(t){i.push(t),a+=t.length,e.maxContentLength>-1&&a>e.maxContentLength&&(g=!0,r.destroy(),n(new $n("maxContentLength size of "+e.maxContentLength+" exceeded",$n.ERR_BAD_RESPONSE,e,s)))})),r.on("aborted",(function(){if(g)return;const t=new $n("stream has been aborted",$n.ERR_BAD_RESPONSE,e,s);r.destroy(t),n(t)})),r.on("error",(function(t){x.destroyed||n($n.from(t,null,e,s))})),r.on("end",(function(){try{let e=1===i.length?i[0]:Buffer.concat(i);"arraybuffer"!==p&&(e=e.toString(m),m&&"utf8"!==m||(e=Hn.stripBOM(e))),u.data=e}catch(t){return n($n.from(t,null,e,u.request,u))}_r(t,n,u)}))}y.once("abort",(e=>{r.destroyed||(r.emit("error",e),r.destroy())}))})),y.once("abort",(e=>{n(e),x.destroy(e)})),x.on("error",(function(t){n($n.from(t,null,e,x))})),x.on("socket",(function(e){e.setKeepAlive(!0,6e4)})),e.timeout){const t=parseInt(e.timeout,10);if(Number.isNaN(t))return void n(new $n("error trying to parse `config.timeout` to int",$n.ERR_BAD_OPTION_VALUE,e,x));x.setTimeout(t,(function(){if(h)return;let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const i=e.transitional||er;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new $n(t,i.clarifyTimeoutError?$n.ETIMEDOUT:$n.ECONNABORTED,e,x)),w()}))}if(Hn.isStream(a)){let t=!1,n=!1;a.on("end",(()=>{t=!0})),a.once("error",(e=>{n=!0,x.destroy(e)})),a.on("close",(()=>{t||n||w(new wr("Request stream has been aborted",e,x))})),a.pipe(x)}else x.end(a)},new Promise(((e,n)=>{let i,a;const o=(e,t)=>{a||(a=!0,i&&i(e,t))},r=e=>{o(e,!0),n(e)};t((t=>{o(t),e(t)}),r,(e=>i=e)).catch(r)}));var t},ac=lr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,lr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(lr.origin),lr.navigator&&/(msie|trident)/i.test(lr.navigator.userAgent)):()=>!0,oc=lr.hasStandardBrowserEnv?{write(e,t,n,i,a,o){const r=[e+"="+encodeURIComponent(t)];Hn.isNumber(n)&&r.push("expires="+new Date(n).toGMTString()),Hn.isString(i)&&r.push("path="+i),Hn.isString(a)&&r.push("domain="+a),!0===o&&r.push("secure"),document.cookie=r.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};const rc=e=>e instanceof gr?{...e}:e;function sc(e,t){t=t||{};const n={};function i(e,t,n,i){return Hn.isPlainObject(e)&&Hn.isPlainObject(t)?Hn.merge.call({caseless:i},e,t):Hn.isPlainObject(t)?Hn.merge({},t):Hn.isArray(t)?t.slice():t}function a(e,t,n,a){return Hn.isUndefined(t)?Hn.isUndefined(e)?void 0:i(void 0,e,0,a):i(e,t,0,a)}function o(e,t){if(!Hn.isUndefined(t))return i(void 0,t)}function r(e,t){return Hn.isUndefined(t)?Hn.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function s(n,a,o){return o in t?i(n,a):o in e?i(void 0,n):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,t,n)=>a(rc(e),rc(t),0,!0)};return Hn.forEach(Object.keys(Object.assign({},e,t)),(function(i){const o=c[i]||a,r=o(e[i],t[i],i);Hn.isUndefined(r)&&o!==s||(n[i]=r)})),n}var cc=e=>{const t=sc({},e);let n,{data:i,withXSRFToken:a,xsrfHeaderName:o,xsrfCookieName:r,headers:s,auth:c}=t;if(t.headers=s=gr.from(s),t.url=Zo(Er(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),Hn.isFormData(i))if(lr.hasStandardBrowserEnv||lr.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(lr.hasStandardBrowserEnv&&(a&&Hn.isFunction(a)&&(a=a(t)),a||!1!==a&&ac(t.url))){const e=o&&r&&oc.read(r);e&&s.set(o,e)}return t};var uc="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const i=cc(e);let a=i.data;const o=gr.from(i.headers).normalize();let r,s,c,u,p,{responseType:l,onUploadProgress:d,onDownloadProgress:m}=i;function f(){u&&u(),p&&p(),i.cancelToken&&i.cancelToken.unsubscribe(r),i.signal&&i.signal.removeEventListener("abort",r)}let h=new XMLHttpRequest;function v(){if(!h)return;const i=gr.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());_r((function(e){t(e),f()}),(function(e){n(e),f()}),{data:l&&"text"!==l&&"json"!==l?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:i,config:e,request:h}),h=null}h.open(i.method.toUpperCase(),i.url,!0),h.timeout=i.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&&(n(new $n("Request aborted",$n.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new $n("Network Error",$n.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let t=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const a=i.transitional||er;i.timeoutErrorMessage&&(t=i.timeoutErrorMessage),n(new $n(t,a.clarifyTimeoutError?$n.ETIMEDOUT:$n.ECONNABORTED,e,h)),h=null},void 0===a&&o.setContentType(null),"setRequestHeader"in h&&Hn.forEach(o.toJSON(),(function(e,t){h.setRequestHeader(t,e)})),Hn.isUndefined(i.withCredentials)||(h.withCredentials=!!i.withCredentials),l&&"json"!==l&&(h.responseType=i.responseType),m&&([c,p]=Ms(m,!0),h.addEventListener("progress",c)),d&&h.upload&&([s,u]=Ms(d),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",u)),(i.cancelToken||i.signal)&&(r=t=>{h&&(n(!t||t.type?new wr(null,e,h):t),h.abort(),h=null)},i.cancelToken&&i.cancelToken.subscribe(r),i.signal&&(i.signal.aborted?r():i.signal.addEventListener("abort",r)));const x=js(i.url);x&&-1===lr.protocols.indexOf(x)?n(new $n("Unsupported protocol "+x+":",$n.ERR_BAD_REQUEST,e)):h.send(a||null)}))};const pc=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,i=new AbortController;const a=function(e){if(!n){n=!0,r();const t=e instanceof Error?e:this.reason;i.abort(t instanceof $n?t:new wr(t instanceof Error?t.message:t))}};let o=t&&setTimeout((()=>{o=null,a(new $n(`timeout ${t} of ms exceeded`,$n.ETIMEDOUT))}),t);const r=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(a):e.removeEventListener("abort",a)})),e=null)};e.forEach((e=>e.addEventListener("abort",a)));const{signal:s}=i;return s.unsubscribe=()=>Hn.asap(r),s}},lc=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let i,a=0;for(;a<n;)i=a+t,yield e.slice(a,i),a=i},dc=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},mc=(e,t,n,i)=>{const a=async function*(e,t){for await(const n of dc(e))yield*lc(n,t)}(e,t);let o,r=0,s=e=>{o||(o=!0,i&&i(e))};return new ReadableStream({async pull(e){try{const{done:t,value:i}=await a.next();if(t)return s(),void e.close();let o=i.byteLength;if(n){let e=r+=o;n(e)}e.enqueue(new Uint8Array(i))}catch(e){throw s(e),e}},cancel:e=>(s(e),a.return())},{highWaterMark:2})},fc="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,hc=fc&&"function"==typeof ReadableStream,vc=fc&&("function"==typeof TextEncoder?(xc=new TextEncoder,e=>xc.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var xc;const bc=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},gc=hc&&bc((()=>{let e=!1;const t=new Request(lr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),yc=hc&&bc((()=>Hn.isReadableStream(new Response("").body))),Dc={stream:yc&&(e=>e.body)};var wc;fc&&(wc=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Dc[e]&&(Dc[e]=Hn.isFunction(wc[e])?t=>t[e]():(t,n)=>{throw new $n(`Response type '${e}' is not supported`,$n.ERR_NOT_SUPPORT,n)})})));const _c=async(e,t)=>{const n=Hn.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(Hn.isBlob(e))return e.size;if(Hn.isSpecCompliantForm(e)){const t=new Request(lr.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Hn.isArrayBufferView(e)||Hn.isArrayBuffer(e)?e.byteLength:(Hn.isURLSearchParams(e)&&(e+=""),Hn.isString(e)?(await vc(e)).byteLength:void 0)})(t):n};var Ec=fc&&(async e=>{let{url:t,method:n,data:i,signal:a,cancelToken:o,timeout:r,onDownloadProgress:s,onUploadProgress:c,responseType:u,headers:p,withCredentials:l="same-origin",fetchOptions:d}=cc(e);u=u?(u+"").toLowerCase():"text";let m,f=pc([a,o&&o.toAbortSignal()],r);const h=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let v;try{if(c&&gc&&"get"!==n&&"head"!==n&&0!==(v=await _c(p,i))){let e,n=new Request(t,{method:"POST",body:i,duplex:"half"});if(Hn.isFormData(i)&&(e=n.headers.get("content-type"))&&p.setContentType(e),n.body){const[e,t]=Hs(v,Ms($s(c)));i=mc(n.body,65536,e,t)}}Hn.isString(l)||(l=l?"include":"omit");const a="credentials"in Request.prototype;m=new Request(t,{...d,signal:f,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:i,duplex:"half",credentials:a?l:void 0});let o=await fetch(m);const r=yc&&("stream"===u||"response"===u);if(yc&&(s||r&&h)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=Hn.toFiniteNumber(o.headers.get("content-length")),[n,i]=s&&Hs(t,Ms($s(s),!0))||[];o=new Response(mc(o.body,65536,n,(()=>{i&&i(),h&&h()})),e)}u=u||"text";let x=await Dc[Hn.findKey(Dc,u)||"text"](o,e);return!r&&h&&h(),await new Promise(((t,n)=>{_r(t,n,{data:x,headers:gr.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:m})}))}catch(t){if(h&&h(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new $n("Network Error",$n.ERR_NETWORK,e,m),{cause:t.cause||t});throw $n.from(t,t&&t.code,e,m)}});const Cc={http:ic,xhr:uc,fetch:Ec};Hn.forEach(Cc,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Fc=e=>`- ${e}`,Tc=e=>Hn.isFunction(e)||null===e||!1===e;var kc=e=>{e=Hn.isArray(e)?e:[e];const{length:t}=e;let n,i;const a={};for(let o=0;o<t;o++){let t;if(n=e[o],i=n,!Tc(n)&&(i=Cc[(t=String(n)).toLowerCase()],void 0===i))throw new $n(`Unknown adapter '${t}'`);if(i)break;a[t||"#"+o]=i}if(!i){const e=Object.entries(a).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new $n("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Fc).join("\n"):" "+Fc(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return i};function jc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new wr(null,e)}function Ac(e){jc(e),e.headers=gr.from(e.headers),e.data=yr.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return kc(e.adapter||mr.adapter)(e).then((function(t){return jc(e),t.data=yr.call(e,e.transformResponse,t),t.headers=gr.from(t.headers),t}),(function(t){return Dr(t)||(jc(e),t&&t.response&&(t.response.data=yr.call(e,e.transformResponse,t.response),t.response.headers=gr.from(t.response.headers))),Promise.reject(t)}))}const Sc={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Sc[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Oc={};Sc.transitional=function(e,t,n){function i(e,t){return"[Axios v1.8.4] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,a,o)=>{if(!1===e)throw new $n(i(a," has been removed"+(t?" in "+t:"")),$n.ERR_DEPRECATED);return t&&!Oc[a]&&(Oc[a]=!0,console.warn(i(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,a,o)}},Sc.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var Rc={assertOptions:function(e,t,n){if("object"!=typeof e)throw new $n("options must be an object",$n.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let a=i.length;for(;a-- >0;){const o=i[a],r=t[o];if(r){const t=e[o],n=void 0===t||r(t,o,e);if(!0!==n)throw new $n("option "+o+" must be "+n,$n.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new $n("Unknown option "+o,$n.ERR_BAD_OPTION)}},validators:Sc};const Bc=Rc.validators;let Pc=class{constructor(e){this.defaults=e,this.interceptors={request:new Qo,response:new Qo}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=sc(this.defaults,t);const{transitional:n,paramsSerializer:i,headers:a}=t;void 0!==n&&Rc.assertOptions(n,{silentJSONParsing:Bc.transitional(Bc.boolean),forcedJSONParsing:Bc.transitional(Bc.boolean),clarifyTimeoutError:Bc.transitional(Bc.boolean)},!1),null!=i&&(Hn.isFunction(i)?t.paramsSerializer={serialize:i}:Rc.assertOptions(i,{encode:Bc.function,serialize:Bc.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Rc.assertOptions(t,{baseUrl:Bc.spelling("baseURL"),withXsrfToken:Bc.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=a&&Hn.merge(a.common,a[t.method]);a&&Hn.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete a[e]})),t.headers=gr.concat(o,a);const r=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(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=[Ac.bind(this),void 0];for(e.unshift.apply(e,r),e.push.apply(e,c),p=e.length,u=Promise.resolve(t);l<p;)u=u.then(e[l++],e[l++]);return u}p=r.length;let d=t;for(l=0;l<p;){const e=r[l++],t=r[l++];try{d=e(d)}catch(e){t.call(this,e);break}}try{u=Ac.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 Zo(Er((e=sc(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};Hn.forEach(["delete","get","head","options"],(function(e){Pc.prototype[e]=function(t,n){return this.request(sc(n||{},{method:e,url:t,data:(n||{}).data}))}})),Hn.forEach(["post","put","patch"],(function(e){function t(t){return function(n,i,a){return this.request(sc(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Pc.prototype[e]=t(),Pc.prototype[e+"Form"]=t(!0)}));const Nc={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(Nc).forEach((([e,t])=>{Nc[t]=e}));const Lc=function e(t){const n=new Pc(t),i=nn(Pc.prototype.request,n);return Hn.extend(i,Pc.prototype,n,{allOwnKeys:!0}),Hn.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e(sc(t,n))},i}(mr);Lc.Axios=Pc,Lc.CanceledError=wr,Lc.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const i=new Promise((e=>{n.subscribe(e),t=e})).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e((function(e,i,a){n.reason||(n.reason=new wr(e,i,a),t(n.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 t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e((function(e){t=e})),cancel:t}}},Lc.isCancel=Dr,Lc.VERSION=ks,Lc.toFormData=Ko,Lc.AxiosError=$n,Lc.Cancel=Lc.CanceledError,Lc.all=function(e){return Promise.all(e)},Lc.spread=function(e){return function(t){return e.apply(null,t)}},Lc.isAxiosError=function(e){return Hn.isObject(e)&&!0===e.isAxiosError},Lc.mergeConfig=sc,Lc.AxiosHeaders=gr,Lc.formToJSON=e=>dr(Hn.isHTMLForm(e)?new FormData(e):e),Lc.getAdapter=kc,Lc.HttpStatusCode=Nc,Lc.default=Lc;const{Axios:Ic,AxiosError:Uc,CanceledError:zc,isCancel:qc,CancelToken:Mc,VERSION:Hc,all:$c,Cancel:Gc,isAxiosError:Wc,spread:Kc,toFormData:Vc,AxiosHeaders:Jc,HttpStatusCode:Yc,formToJSON:Xc,getAdapter:Zc,mergeConfig:Qc}=Lc,eu="/api/v1",tu=e=>{const t=(n=e,Object.entries(n).reduce(((e,t)=>(e[Gt(t[0])]=t[1],e)),{}));var n;return Lc.post(`${eu}/reporter/runs`,{run:t},{skipSnakeCaseConversion:!0})},nu=(e,t)=>Lc.put(`${eu}/reporter/runs/${e}`,{run:t}),iu=e=>Lc.get(`${eu}/reporter/runs/${e}/heartbeat`),au="=".repeat(10),ou={requestFailed:(e,t,n)=>`API request attempt ${e} failed. ${t} retries left. Error: ${n}`,allRetriesFailed:e=>`API call failed after all retries: ${e}`},ru={schedulingFailed:e=>`Heartbeat scheduling failed: ${e}`,emergencyTriggered:"Emergency heartbeat triggered - no successful heartbeat in 100+ seconds",emergencyFailed:e=>`Emergency heartbeat failed: ${e}`,failed:e=>`Heartbeat failed: ${e}`,attemptFailed:(e,t,n)=>`Heartbeat attempt ${e} failed. ${t} retries left. Error: ${n}`},su={testData:(e,t)=>{let n=`\n-------Started reporting to NeetoPlaydash 🎭-------\nCI Build ID: ${e}\n`;return t&&(n+=`Total shards: ${t.total}\nCurrent shards: ${t.current}\n`),n+=`${"-".repeat(50)}\n`,n}},cu={startingTest:({titlePath:e,historyId:t,retry:n,repeatEachIndex:i})=>`${au}Starting ${e}${au}\n Time: ${(new Date).toUTCString()}\n History ID: ${t}${n&&`\nRetry: ${n}`}${i&&`\nRepeat index: ${i}`}`},uu={reportedTest:({title:e,status:t,historyId:n,completedAt:i,error:a,isTestReported:o=!0,retry:r,repeatEachIndex:s})=>{let c=`\n\n${o?"------------Reported to NeetoPlaydash------------":"-".repeat(49)}\n Title: ${e}\n History id: ${n}\n Status: ${t}\n Completed at: ${i}${r&&`\nRetry: ${r}`}${s&&`\nRepeat index: ${s}`}\n`;return c=a?c.concat(` Error:\n\n ${a.replaceAll("\n","\n ")}`):c,c.concat(`\n${"-".repeat(49)}\n`)}},pu={runReported:"Run completed and reported to NeetoPlaydash 🎉\n\n",finalStatus:({currentShard:e,status:t,duration:n})=>{let i=`------------------Run completed-------------------\n Status: ${t}\n Duration: ${(e=>{const t={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(t).filter((([e,t])=>0!==t)).map((([e,t])=>t+" "+(1!==t?`${e}s`:e))).join(", ")})(null!=n?n:0)}\n`;return i=0!==e?i.concat(` Shard: ${e}`):i,i.concat(`\n${"-".repeat(50)}\n`)}};var lu={exports:{}},du={};function mu(e,t){"boolean"==typeof t&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var fu=mu;mu.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},mu.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},mu.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=(new Date).getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var n=this._timeouts.shift();if(void 0===n){if(!this._cachedTimeouts)return!1;this._errors.splice(0,this._errors.length-1),n=this._cachedTimeouts.slice(-1)}var i=this;return this._timer=setTimeout((function(){i._attempts++,i._operationTimeoutCb&&(i._timeout=setTimeout((function(){i._operationTimeoutCb(i._attempts)}),i._operationTimeout),i._options.unref&&i._timeout.unref()),i._fn(i._attempts)}),n),this._options.unref&&this._timer.unref(),!0},mu.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var n=this;this._operationTimeoutCb&&(this._timeout=setTimeout((function(){n._operationTimeoutCb()}),n._operationTimeout)),this._operationStart=(new Date).getTime(),this._fn(this._attempts)},mu.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)},mu.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)},mu.prototype.start=mu.prototype.try,mu.prototype.errors=function(){return this._errors},mu.prototype.attempts=function(){return this._attempts},mu.prototype.mainError=function(){if(0===this._errors.length)return null;for(var e={},t=null,n=0,i=0;i<this._errors.length;i++){var a=this._errors[i],o=a.message,r=(e[o]||0)+1;e[o]=r,r>=n&&(t=a,n=r)}return t},function(e){var t=fu;e.operation=function(n){var i=e.timeouts(n);return new t(i,{forever:n&&(n.forever||n.retries===1/0),unref:n&&n.unref,maxRetryTime:n&&n.maxRetryTime})},e.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1e3,maxTimeout:1/0,randomize:!1};for(var n in e)t[n]=e[n];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var i=[],a=0;a<t.retries;a++)i.push(this.createTimeout(a,t));return e&&e.forever&&!i.length&&i.push(this.createTimeout(a,t)),i.sort((function(e,t){return e-t})),i},e.createTimeout=function(e,t){var n=t.randomize?Math.random()+1:1,i=Math.round(n*Math.max(t.minTimeout,1)*Math.pow(t.factor,e));return i=Math.min(i,t.maxTimeout)},e.wrap=function(t,n,i){if(n instanceof Array&&(i=n,n=null),!i)for(var a in i=[],t)"function"==typeof t[a]&&i.push(a);for(var o=0;o<i.length;o++){var r=i[o],s=t[r];t[r]=function(i){var a=e.operation(n),o=Array.prototype.slice.call(arguments,1),r=o.pop();o.push((function(e){a.retry(e)||(e&&(arguments[0]=a.mainError()),r.apply(this,arguments))})),a.attempt((function(){i.apply(t,o)}))}.bind(t,s),t[r].options=n}}}(du);var hu=k(lu.exports=du);const vu=Object.prototype.toString,xu=new Set(["network error","Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Load failed","Network request failed","fetch failed","terminated"]);function bu(e){var t;return!(!e||(t=e,"[object Error]"!==vu.call(t))||"TypeError"!==e.name||"string"!=typeof e.message)&&("Load failed"===e.message?void 0===e.stack:xu.has(e.message))}class gu extends Error{constructor(e){super(),e instanceof Error?(this.originalError=e,({message:e}=e)):(this.originalError=new Error(e),this.originalError.stack=this.stack),this.name="AbortError",this.message=e}}const yu=(e,t,n)=>{const i=n.retries-(t-1);return e.attemptNumber=t,e.retriesLeft=i,e};async function Du(e,t){return new Promise(((n,i)=>{t={...t},t.onFailedAttempt??=()=>{},t.shouldRetry??=()=>!0,t.retries??=10;const a=hu.operation(t),o=()=>{a.stop(),i(t.signal?.reason)};t.signal&&!t.signal.aborted&&t.signal.addEventListener("abort",o,{once:!0});const r=()=>{t.signal?.removeEventListener("abort",o),a.stop()};a.attempt((async o=>{try{const t=await e(o);r(),n(t)}catch(e){try{if(!(e instanceof Error))throw new TypeError(`Non-error was thrown: "${e}". You should only throw errors.`);if(e instanceof gu)throw e.originalError;if(e instanceof TypeError&&!bu(e))throw e;if(yu(e,o,t),await t.shouldRetry(e)||(a.stop(),i(e)),await t.onFailedAttempt(e),!a.retry(e))throw a.mainError()}catch(e){yu(e,o,t),r(),i(e)}}}))}))}const wu={retries:3,minTimeout:1e3,maxTimeout:8e3,factor:2,isCritical:!1},_u=(e,t={})=>(async(e,t={})=>{const n={...wu,...t};return Du((async()=>{var t;try{return await e()}catch(e){const n=e;if(!(e=>{var t;if("ETIMEDOUT"===e.code||"ECONNRESET"===e.code)return!0;if(null===(t=e.response)||void 0===t?void 0:t.status){const t=e.response.status;return t>=500||404===t||408===t||429===t}return!0})(n))throw new gu(`Non-retriable error: ${(null===(t=n.response)||void 0===t?void 0:t.status)||n.code}`);throw e}}),{retries:n.retries,minTimeout:n.minTimeout,maxTimeout:n.maxTimeout,factor:n.factor,onFailedAttempt:e=>{n.isCritical?U.error(ou.requestFailed(e.attemptNumber,e.retriesLeft,e.message)):U.warning(ou.requestFailed(e.attemptNumber,e.retriesLeft,e.message))}})})(e,{...t,isCritical:!0}),Eu=(e,t)=>_u((()=>Lc.post(`${eu}/reporter/runs/${e}/test_entities`,{testEntity:t})));class Cu{constructor(e,t={interval:4e4,maxRetries:3,requestTimeout:3e3,retryDelay:1e3,emergencyThreshold:1e5}){this.ciBuildId=e,this.options=t,this.interval=null,this.emergencyTimeout=null,this.isServiceActive=!1,this.isHeartbeatInProgress=!1,this.lastSuccessfulHeartbeat=0,this.start=async()=>{this.isServiceActive||(this.isServiceActive=!0,this.lastSuccessfulHeartbeat=Date.now(),await this.sendHeartbeat(),this.scheduleNextHeartbeat(),this.scheduleEmergencyCheck())},this.stop=()=>{this.interval&&(clearInterval(this.interval),this.interval=null),this.emergencyTimeout&&(clearTimeout(this.emergencyTimeout),this.emergencyTimeout=null),this.isServiceActive=!1},this.scheduleNextHeartbeat=()=>{this.interval=setInterval((()=>{this.isHeartbeatInProgress||this.sendHeartbeat().catch((e=>{var t;U.error(ru.schedulingFailed(null!==(t=null==e?void 0:e.message)&&void 0!==t?t:String(e)))}))}),this.options.interval)},this.scheduleEmergencyCheck=()=>{this.emergencyTimeout=setTimeout((()=>{Date.now()-this.lastSuccessfulHeartbeat>this.options.emergencyThreshold&&(U.warning(ru.emergencyTriggered),this.isHeartbeatInProgress||this.sendEmergencyHeartbeat()),this.isServiceActive&&this.scheduleEmergencyCheck()}),this.options.emergencyThreshold)},this.sendHeartbeat=async()=>{if(!this.isHeartbeatInProgress){this.isHeartbeatInProgress=!0;try{await Du((async()=>{await iu(this.ciBuildId),this.lastSuccessfulHeartbeat=Date.now()}),{retries:this.options.maxRetries,minTimeout:this.options.retryDelay,maxTimeout:this.options.retryDelay,onFailedAttempt:e=>{var t;const n=e;if(null===(t=n.response)||void 0===t?void 0:t.status){const e=n.response.status;if(e>=400&&e<500&&404!==e&&408!==e)throw new gu(`Non-retriable client error: ${e}`)}U.warning(ru.attemptFailed(e.attemptNumber,e.retriesLeft,e.message))}})}catch(e){this.handleHeartbeatFailure(e)}finally{this.isHeartbeatInProgress=!1}}},this.sendEmergencyHeartbeat=async()=>{var e;this.isHeartbeatInProgress=!0;try{await iu(this.ciBuildId),this.lastSuccessfulHeartbeat=Date.now()}catch(t){U.error(ru.emergencyFailed(null!==(e=null==t?void 0:t.message)&&void 0!==e?e:String(t))),this.handleHeartbeatFailure(t)}finally{this.isHeartbeatInProgress=!1}},this.handleHeartbeatFailure=e=>{var t;const n=e instanceof gu;U.error(ru.failed(null!==(t=null==e?void 0:e.message)&&void 0!==t?t:String(e))),n&&(U.redText(P.stopped),this.stop(),process.exit(1))},this.sendImmediateHeartbeat=async()=>{this.isHeartbeatInProgress||await this.sendHeartbeat()}}get status(){return{isServiceActive:this.isServiceActive,isHeartbeatInProgress:this.isHeartbeatInProgress,lastHeartbeat:this.lastSuccessfulHeartbeat}}}const Fu=({command:e,messageOnError:t,shouldThrowError:n=!1,logLevel:i="warning"})=>{try{return g.execSync(e).toString().trim()}catch(e){if(n)throw e;U[i](t)}},Tu=(e,t)=>{var n;const{title:i,parent:o,location:{file:r}}=e,s=e.titlePath(),c=null===(n=o.project())||void 0===n?void 0:n.name,u=a.relative(t,r),p=(({titlePath:e,title:t,project:n,rootDir:i,file:o})=>e.filter(((e,r)=>0!==r&&e!==t&&e!==n&&e!==a.relative(i,o))))({titlePath:s,title:i,project:c,rootDir:t,file:r});return{title:i,describe:p,project:c,spec:u,historyId:(({projectId:e,specName:t,describeTitles:n,testTitle:i})=>{const a=`[project=${e}]${t}${[...n,i].join("")}`,o=Yt(a);return`${Yt(t)}-${o}`})({projectId:null!=c?c:"",specName:u,describeTitles:p,testTitle:i})}},ku=({rootDir:e},t)=>ze(t.allTests().map((t=>Tu(t,e)))),ju=async(e,t,n)=>{var i,a,o,r;const s=t.shard;e.config=t;const c=e.currentShard=null!==(i=null==s?void 0:s.current)&&void 0!==i?i:0;S.setContext({ciBuildId:e.ciBuildId,currentShard:null==s?void 0:s.current,rootDir:t.rootDir}),e.totalTestCount=n.allTests().length,e.rootDir=t.rootDir;const u={commitId:Fu({command:"git rev-parse HEAD",messageOnError:O.failedToGetCommitSha}),commitName:Fu({command:"git show-branch --no-name HEAD",messageOnError:O.failedToGetCommitMessage}),author:Fu({command:"git show -s --format='%an' HEAD",messageOnError:O.failedToGetBranch}),branch:Fu({command:"git branch --show-current",messageOnError:O.failedToGetBranch}),tags:"string"==typeof e.tags?e.tags.split(","):e.tags,ciBuildId:e.ciBuildId,configuration:{...t,baseDir:process.cwd()},shards:Kt({currentShard:c})};try{if(await tu(u),e.hasRunStarted=!0,0===e.totalTestCount)return void U.redText(O.noTestsToReport);e.heartbeatManager=new Cu(e.ciBuildId),await e.heartbeatManager.start();const{data:i}=await Eu(e.ciBuildId,{testEntities:ku(t,n),shard:c});e.attempts=i,U.log(su.testData(e.ciBuildId,s))}catch(i){e.shouldNotReportTest=!0;const s=i,c=null===(a=s.response)||void 0===a?void 0:a.data;U.error(null!==(o=null==c?void 0:c.error)&&void 0!==o?o:s.message),U.error(O.failedToInitializeRun),await en({context:{...u,testEntities:ku(t,n)},error:i,title:"onBegin"}),((e,t)=>{var n,i;const{error:a}=e&&(e instanceof Uc&&(null===(n=null==e?void 0:e.response)||void 0===n?void 0:n.data)||{error:void 0}),o=e&&(e instanceof Uc?null===(i=null==e?void 0:e.response)||void 0===i?void 0:i.status:void 0);t.shouldNotReportTest=!0,"Project does not exist."===a&&404===o?(U.redText(O.invalidProjectKey),process.exit(1)):"Could not authenticate, invalid API Key"===a&&401===o||"api-key"===t.apiKey?(U.redText(O.invalidApiKey),process.exit(1)):[C,F].includes(a||"")&&422===o?(U.redText(O.duplicateCiBuildId),process.exit(1)):(422===o&&(process.kill(process.pid,"SIGKILL"),process.exit(1)),Qt(o)&&U.yellowText(null!=a?a:null==e?void 0:e.message),U.yellowText(O.testsWillNotBeReported))})(s,e),null===(r=e.heartbeatManager)||void 0===r||r.stop()}},Au=(e,t,n)=>_u((()=>Lc.post(`${eu}/reporter/runs/${e}/test_entities/${t}/attempts`,n))),Su=({ciBuildId:e,historyId:t,id:n,payload:i})=>_u((()=>Lc.put(`${eu}/reporter/runs/${e}/test_entities/${t}/attempts/${n}`,i))),Ou=["screenshot","video","trace","lighthouse"],Ru=({location:e,snippet:t})=>{if(!e)return null;const{file:n,line:i,column:a}=e;return`# ${n} (${i}:${a}) \n\n\n ${t}`},Bu={KB:1024,MB:Math.pow(1024,2)},Pu=(e,t)=>parseFloat((e/Bu[t]).toFixed(2));var Nu=class{constructor(e,t,n){this.etaBufferLength=e||100,this.valueBuffer=[n],this.timeBuffer=[t],this.eta="0"}update(e,t,n){this.valueBuffer.push(t),this.timeBuffer.push(e),this.calculate(n-t)}getTime(){return this.eta}calculate(e){const t=this.valueBuffer.length,n=Math.min(this.etaBufferLength,t),i=(this.valueBuffer[t-1]-this.valueBuffer[t-n])/(this.timeBuffer[t-1]-this.timeBuffer[t-n]);this.valueBuffer=this.valueBuffer.slice(-this.etaBufferLength),this.timeBuffer=this.timeBuffer.slice(-this.etaBufferLength);const a=Math.ceil(e/i/1e3);isNaN(a)?this.eta="NULL":isFinite(a)?this.eta=a>1e7?"INF":a<0?0:a:this.eta="INF"}};const Lu=y;var Iu=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,t=null){this.stream.isTTY&&Lu.cursorTo(this.stream,e,t)}cursorRelative(e=null,t=null){this.stream.isTTY&&(this.dy=this.dy+t,Lu.moveCursor(this.stream,e,t))}cursorRelativeReset(){this.stream.isTTY&&(Lu.moveCursor(this.stream,0,-this.dy),Lu.cursorTo(this.stream,0,null),this.dy=0)}clearRight(){this.stream.isTTY&&Lu.clearLine(this.stream,1)}clearLine(){this.stream.isTTY&&Lu.clearLine(this.stream,0)}clearBottom(){this.stream.isTTY&&Lu.clearScreenDown(this.stream)}newline(){this.stream.write("\n"),this.dy++}write(e,t=!1){!0===this.linewrap&&!1===t?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)}},Uu={exports:{}};const zu=({onlyFirst:e=!1}={})=>{const t=["[\\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(t,e?void 0:"g")};var qu={exports:{}};const Mu=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));qu.exports=Mu,qu.exports.default=Mu;const Hu=e=>"string"==typeof e?e.replace(zu(),""):e,$u=qu.exports,Gu=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},Wu=e=>{if("string"!=typeof e||0===e.length)return 0;if(0===(e=Hu(e)).length)return 0;e=e.replace(Gu()," ");let t=0;for(let n=0;n<e.length;n++){const i=e.codePointAt(n);i<=31||i>=127&&i<=159||(i>=768&&i<=879||(i>65535&&n++,t+=$u(i)?2:1))}return t};Uu.exports=Wu,Uu.exports.default=Wu;var Ku=function(e,t,n){if(!0!==t.autopadding)return e;return"percentage"===n?(i=e,(t.autopaddingChar+i).slice(-3)):e;var i},Vu=function(e,t){const n=Math.round(e*t.barsize),i=t.barsize-n;return t.barCompleteString.substr(0,n)+t.barGlue+t.barIncompleteString.substr(0,i)},Ju=function(e,t,n){function i(e){return n?n*Math.round(e/n):e}function a(e){return(t.autopaddingChar+e).slice(-2)}return e>3600?a(Math.floor(e/3600))+"h"+a(i(e%3600/60))+"m":e>60?a(Math.floor(e/60))+"m"+a(i(e%60))+"s":e>10?a(i(e))+"s":a(e)+"s"};const Yu=Uu.exports,Xu=Ku,Zu=Vu,Qu=Ju;var ep=function(e,t,n){let i=e.format;const a=e.formatTime||Qu,o=e.formatValue||Xu,r=e.formatBar||Zu,s=Math.floor(100*t.progress)+"",c=t.stopTime||Date.now(),u=Math.round((c-t.startTime)/1e3),p=Object.assign({},n,{bar:r(t.progress,e),percentage:o(s,e,"percentage"),total:o(t.total,e,"total"),value:o(t.value,e,"value"),eta:o(t.eta,e,"eta"),eta_formatted:a(t.eta,e,5),duration:o(u,e,"duration"),duration_formatted:a(u,e,1)});i=i.replace(/\{(\w+)\}/g,(function(e,t){return void 0!==p[t]?p[t]:e}));const l=Math.max(0,t.maxWidth-Yu(i)-2),d=Math.floor(l/2);switch(e.align){case"right":i=l>0?" ".repeat(l)+i:i;break;case"center":i=d>0?" ".repeat(d)+i:i}return i};function tp(e,t){return null==e?t:e}var np={parse:function(e,t){const n={},i=Object.assign({},t,e);return n.throttleTime=1e3/tp(i.fps,10),n.stream=tp(i.stream,process.stderr),n.terminal=tp(i.terminal,null),n.clearOnComplete=tp(i.clearOnComplete,!1),n.stopOnComplete=tp(i.stopOnComplete,!1),n.barsize=tp(i.barsize,40),n.align=tp(i.align,"left"),n.hideCursor=tp(i.hideCursor,!1),n.linewrap=tp(i.linewrap,!1),n.barGlue=tp(i.barGlue,""),n.barCompleteChar=tp(i.barCompleteChar,"="),n.barIncompleteChar=tp(i.barIncompleteChar,"-"),n.format=tp(i.format,"progress [{bar}] {percentage}% | ETA: {eta}s | {value}/{total}"),n.formatTime=tp(i.formatTime,null),n.formatValue=tp(i.formatValue,null),n.formatBar=tp(i.formatBar,null),n.etaBufferLength=tp(i.etaBuffer,10),n.etaAsynchronousUpdate=tp(i.etaAsynchronousUpdate,!1),n.progressCalculationRelative=tp(i.progressCalculationRelative,!1),n.synchronousUpdate=tp(i.synchronousUpdate,!0),n.noTTYOutput=tp(i.noTTYOutput,!1),n.notTTYSchedule=tp(i.notTTYSchedule,2e3),n.emptyOnZero=tp(i.emptyOnZero,!1),n.forceRedraw=tp(i.forceRedraw,!1),n.autopadding=tp(i.autopadding,!1),n.gracefulExit=tp(i.gracefulExit,!1),n},assignDerivedOptions:function(e){return e.barCompleteString=e.barCompleteChar.repeat(e.barsize+1),e.barIncompleteString=e.barIncompleteChar.repeat(e.barsize+1),e.autopaddingChar=e.autopadding?tp(e.autopaddingChar," "):"",e}};const ip=Nu,ap=Iu,op=ep,rp=np,sp=x;var cp=class extends sp{constructor(e){super(),this.options=rp.assignDerivedOptions(e),this.terminal=this.options.terminal?this.options.terminal:new ap(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 ip(this.options.etaBufferLength,0,0),this.payload={},this.isActive=!1,this.formatter="function"==typeof this.options.format?this.options.format:op}render(e=!1){const t={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 n=this.formatter(this.options,t,this.payload);(e||this.options.forceRedraw||this.options.noTTYOutput&&!this.terminal.isTTY()||this.lastDrawnString!=n)&&(this.emit("redraw-pre"),this.terminal.cursorTo(0,null),this.terminal.write(n),this.terminal.clearRight(),this.lastDrawnString=n,this.lastRedraw=Date.now(),this.emit("redraw-post"))}start(e,t,n){this.value=t||0,this.total=void 0!==e&&e>=0?e:100,this.startValue=t||0,this.payload=n||{},this.startTime=Date.now(),this.stopTime=null,this.lastDrawnString="",this.eta=new ip(this.options.etaBufferLength,this.startTime,this.value),this.isActive=!0,this.emit("start",e,t)}stop(){this.isActive=!1,this.stopTime=Date.now(),this.emit("stop",this.total,this.value)}update(e,t={}){"number"==typeof e&&(this.value=e,this.eta.update(Date.now(),e,this.total));const n=("object"==typeof e?e:t)||{};this.emit("update",this.total,this.value);for(const e in n)this.payload[e]=n[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,t={}){"object"==typeof e?this.update(this.value+1,e):this.update(this.value+e,t)}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 up=cp,pp=np;const lp=Iu,dp=cp,mp=np,fp=x;var hp={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:" {bar} {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"█",barIncompleteChar:"░"},rect:{format:" {bar}■ {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"■",barIncompleteChar:" "}};const vp=class extends up{constructor(e,t){super(pp.parse(e,t)),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,t){this.timer&&(super.update(e,t),this.options.synchronousUpdate&&this.lastRedraw+2*this.options.throttleTime<Date.now()&&this.render())}start(e,t,n){!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,t,n),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())}},xp=class extends fp{constructor(e,t){super(),this.bars=[],this.options=mp.parse(e,t),this.options.synchronousUpdate=!1,this.terminal=this.options.terminal?this.options.terminal:new lp(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,t,n,i={}){const a=new dp(Object.assign({},this.options,{terminal:this.terminal},i));return this.bars.push(a),!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,a.start(e,t,n),this.emit("start")),a}remove(e){const t=this.bars.indexOf(e);return!(t<0)&&(this.bars.splice(t,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 bp={Bar:vp,SingleBar:vp,MultiBar:xp,Presets:hp,Format:{Formatter:ep,BarFormat:Vu,ValueFormat:Ku,TimeFormat:Ju}};const gp=(e,t)=>"flaky"===e?e:t,yp=async(e,{url:t,headers:n},i)=>{const a=e.byteLength/1024>1024?"MB":"KB";const o=new bp.Bar({format:`Uploading ${i} [{bar}] | {value}/{total} ${a} - ETA: {eta_formatted}`,clearOnComplete:!0},bp.Presets.rect);return o.start(Pu(e.byteLength,a),0),await((e,{url:t,headers:n},i)=>Lc.put(t,e,{...i,headers:n}))(e,{url:t,headers:n},{onUploadProgress:e=>{e.total&&e.lengthComputable&&o.update(Pu(e.loaded,a))}}),o};var Dp,wp,_p={exports:{}};
9
- /*! https://mths.be/wtf8 v1.0.1 by @mathias */Dp=_p,wp=_p.exports,function(e){var t=wp,n=Dp&&Dp.exports==t&&Dp,i="object"==typeof T&&T;i.global!==i&&i.window!==i||(e=i);var a,o,r,s=String.fromCharCode;function c(e){for(var t,n,i=[],a=0,o=e.length;a<o;)(t=e.charCodeAt(a++))>=55296&&t<=56319&&a<o?56320==(64512&(n=e.charCodeAt(a++)))?i.push(((1023&t)<<10)+(1023&n)+65536):(i.push(t),a--):i.push(t);return i}function u(e,t){return s(e>>t&63|128)}function p(e){if(!(4294967168&e))return s(e);var t="";return 4294965248&e?4294901760&e?4292870144&e||(t=s(e>>18&7|240),t+=u(e,12),t+=u(e,6)):(t=s(e>>12&15|224),t+=u(e,6)):t=s(e>>6&31|192),t+=s(63&e|128)}function l(){if(r>=o)throw Error("Invalid byte index");var e=255&a[r];if(r++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function d(){var e,t;if(r>o)throw Error("Invalid byte index");if(r==o)return!1;if(e=255&a[r],r++,!(128&e))return e;if(192==(224&e)){if((t=(31&e)<<6|l())>=128)return t;throw Error("Invalid continuation byte")}if(224==(240&e)){if((t=(15&e)<<12|l()<<6|l())>=2048)return t;throw Error("Invalid continuation byte")}if(240==(248&e)&&(t=(15&e)<<18|l()<<12|l()<<6|l())>=65536&&t<=1114111)return t;throw Error("Invalid WTF-8 detected")}var m={version:"1.0.1",encode:function(e){for(var t=c(e),n=t.length,i=-1,a="";++i<n;)a+=p(t[i]);return a},decode:function(e){a=c(e),o=a.length,r=0;for(var t,n=[];!1!==(t=d());)n.push(t);return function(e){for(var t,n=e.length,i=-1,a="";++i<n;)(t=e[i])>65535&&(a+=s((t-=65536)>>>10&1023|55296),t=56320|1023&t),a+=s(t);return a}(n)}};if(t&&!t.nodeType)if(n)n.exports=m;else{var f={}.hasOwnProperty;for(var h in m)f.call(m,h)&&(t[h]=m[h])}else e.wtf8=m}(T);var Ep=_p.exports;const Cp=async(e,t,{status:n,duration:a,errors:o,error:r,retry:s,attachments:c})=>{var u;const l=new Date,{currentShard:d,rootDir:m,ciBuildId:f}=e,{title:h,repeatEachIndex:v}=t,{historyId:x}=Tu(t,m),b=t.outcome(),g=Xt(s,v),y={shard:d,isExpected:"expected"===b,repeatEachIndex:v,status:gp(b,n)};try{e.pendingTestEnds.add(Xt(x,g));const t={outcome:y,status:n,duration:a,log:Ep.encode(o.map((e=>{var t;return(null!==(t=e.message)&&void 0!==t?t:"").replace(/[\uD800-\uDFFF]/g,"?")})).join("\n")),screenshots:[],videos:[],traces:[],lighthouses:[],completedAt:l.toString(),errorSnippet:r&&Ru(r)};if(e.shouldNotReportTest)return;await Jt((()=>e.startedAttempts.has(Xt(x,g)))),U.underline(h);const s=c.map((({name:e,path:t,body:n,contentType:a})=>{if(Ou.includes(e))try{const o=t?i(t):n,r=((e,t,n)=>(null!=e?e:`${t}.${n.split("/")[1]}`).replaceAll("/","-"))(t,e,a),{file:s,...c}=((e,t,n)=>{const i=e.byteLength;return{file:e,filename:n,checksum:p.createHash("md5").update(e).digest("base64"),byteSize:i,contentType:t}})(o,a,r);return{file:s,metadata:c,name:e}}catch(n){const i=n instanceof Error?n.message:String(n);return void U.yellowText(`Skipping missing file: ${t||e} - ${i}`)}})).filter($t(void 0)),u={metadata:ye("metadata",s)},{data:d}=await(({ciBuildId:e,historyId:t},n)=>Lc.post(`/api/v2/reporter/runs/${e}/test_entities/${t}/direct_uploads`,{blob:n}))({ciBuildId:e.ciBuildId,historyId:x},u),m=await Promise.all(d.map((async({signedId:e,directUpload:n},i)=>{var a,o;return t[`${null===(a=s[i])||void 0===a?void 0:a.name}s`].push(e),yp(s[i].file,n,`${h} - ${null===(o=s[i])||void 0===o?void 0:o.name}`)})));e.progressBars.push(...m);const v=Su({ciBuildId:f,historyId:x,id:e.attempts[x][g],payload:t});e.testResultCalls.push(v),await v}catch(r){await en({context:{historyId:x,attemptIndex:g,title:h,status:n,outcome:y,duration:a,completedAt:l},error:r,title:"onTestEnd"}),U.error(r.message),U.error(R.failedToReportTest(h,x)),await(null===(u=e.heartbeatManager)||void 0===u?void 0:u.sendImmediateHeartbeat())}finally{U.log(uu.reportedTest({title:h,status:n,historyId:x,completedAt:l,error:r&&Ru(r),isTestReported:!e.shouldNotReportTest,retry:s,repeatEachIndex:v})),e.pendingTestEnds.delete(Xt(x,g)),e.startedAttempts.delete(Xt(x,g))}},Fp=D.extend({generateLighthouseMetaData:async({},e,t)=>{let n=0;const{title:i,outputDir:a}=t;await e((()=>{const e=i.replace(/[:]/g,"_");return{formats:{html:!0},name:n?e:`${e}-${n++}`,directory:a,get pathToLightHouseHTMLReport(){return`${a}/${this.name}.html`}}}))},attachLighthouseReport:async({},e,t)=>{await e((async e=>{e.endsWith(".html")?await t.attach("lighthouse",{path:e,contentType:"text/html"}):U.redText(L.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 kp="axios-retry";function jp(e){return!e.response&&(!!e.code&&(!["ERR_CANCELED","ECONNABORTED"].includes(e.code)&&(e=>!Tp.has(e&&e.code))(e)))}const Ap=["get","head","options"],Sp=Ap.concat(["put","delete"]);function Op(e){return"ECONNABORTED"!==e.code&&(!e.response||429===e.response.status||e.response.status>=500&&e.response.status<=599)}function Rp(e){return!!e.config?.method&&(Op(e)&&-1!==Sp.indexOf(e.config.method))}function Bp(e){return jp(e)||Rp(e)}function Pp(e=void 0){const t=e?.response?.headers["retry-after"];if(!t)return 0;let n=1e3*(Number(t)||0);return 0===n&&(n=(new Date(t).valueOf()||0)-Date.now()),Math.max(0,n)}const Np={retries:3,retryCondition:Bp,retryDelay:function(e=0,t=void 0){return Math.max(0,Pp(t))},shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function Lp(e,t,n=!1){const i=function(e,t){return{...Np,...t,...e[kp]}}(e,t||{});return i.retryCount=i.retryCount||0,i.lastRequestTime&&!n||(i.lastRequestTime=Date.now()),e[kp]=i,i}const Ip=(e,t)=>{const n=e.interceptors.request.use((e=>(Lp(e,t,!0),e[kp]?.validateResponse&&(e.validateStatus=()=>!1),e))),i=e.interceptors.response.use(null,(async n=>{const{config:i}=n;if(!i)return Promise.reject(n);const a=Lp(i,t);return n.response&&a.validateResponse?.(n.response)?n.response:await async function(e,t){const{retries:n,retryCondition:i}=e,a=(e.retryCount||0)<n&&i(t);if("object"==typeof a)try{return!1!==await a}catch(e){return!1}return a}(a,n)?async function(e,t,n,i){t.retryCount+=1;const{retryDelay:a,shouldResetTimeout:o,onRetry:r}=t,s=a(t.retryCount,n);if(function(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent}(e,i),!o&&i.timeout&&t.lastRequestTime){const e=Date.now()-t.lastRequestTime,a=i.timeout-e-s;if(a<=0)return Promise.reject(n);i.timeout=a}return i.transformRequest=[e=>e],await r(t.retryCount,n,i),i.signal?.aborted?Promise.resolve(e(i)):new Promise((t=>{const n=()=>{clearTimeout(a),t(e(i))},a=setTimeout((()=>{t(e(i)),i.signal?.removeEventListener&&i.signal.removeEventListener("abort",n)}),s);i.signal?.addEventListener&&i.signal.addEventListener("abort",n,{once:!0})}))}(e,a,n,i):(await async function(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}(a,n),Promise.reject(n))}));return{requestInterceptorId:n,responseInterceptorId:i}};Ip.isNetworkError=jp,Ip.isSafeRequestError=function(e){return!!e.config?.method&&(Op(e)&&-1!==Ap.indexOf(e.config.method))},Ip.isIdempotentRequestError=Rp,Ip.isNetworkOrIdempotentRequestError=Bp,Ip.exponentialDelay=function(e=0,t=void 0,n=100){const i=2**e*n,a=Math.max(i,Pp(t));return a+.2*a*Math.random()},Ip.linearDelay=function(e=100){return(t=0,n=void 0)=>{const i=t*e;return Math.max(i,Pp(n))}},Ip.isRetryableError=Op;const Up="Content-Type",zp="Accept",qp="X-Api-Key",Mp="Project-Key",Hp="Reporter-Version",$p=e=>e===Object(e)&&!(e instanceof Buffer);function Gp({projectKey:e,baseURL:t,apiKey:n}){const i=new u.Agent({keepAlive:!0,maxSockets:15,keepAliveMsecs:6e4});Lc.defaults.baseURL=null!=t?t:"https://connect.neetoplaydash.com",Lc.defaults.skipSnakeCaseConversion=!1,Lc.defaults.headers.common.Connection="keep-alive",Lc.defaults.httpsAgent=i,(({projectKey:e,apiKey:t})=>{Lc.defaults.headers={...Lc.defaults.headers,[Mp]:e,[Hp]:tn(),[qp]:null!=t?t:"",[zp]:"application/json",[Up]:"application/json"}})({projectKey:e,apiKey:n}),Lc.interceptors.request.use((e=>{const t=e.data;return $p(t)&&!e.skipSnakeCaseConversion&&(e.data=Wt(t,(function(e,t){return[Gt(e),t]}))),e})),Lc.interceptors.response.use((e=>{const t=e.data;return $p(t)&&(e.data=Wt(t,(function(e,t){return[(n=e,n.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))),t];var n}))),e})),Ip(Lc,{retryDelay:Ip.exponentialDelay,retryCondition:e=>{var t;const n=null===(t=e.status)||void 0===t?void 0:t.toString();return!!Ip.isNetworkOrIdempotentRequestError(e)||(!!("ETIMEDOUT"===e.code||"ECONNRESET"===e.code||"ECONNABORTED"===e.code||e.message&&e.message.includes("timeout"))||!!n&&(n.startsWith("5")||"404"===n||"408"===n))},retries:3})}const Wp=(e,t)=>{w.setDefaultResultOrder("ipv4first"),Gp(t),process.on("unhandledRejection",(async t=>{var n,i,a;try{const o=null===(n=t.response)||void 0===n?void 0:n.data;await en({context:{},error:t,title:"unhandledRejection"}),await(async e=>{try{await iu(e)}catch(e){U.error(e.message),U.error(JSON.stringify(e,null,4)),U.redText(P.stopped),process.exit(1)}})(e.ciBuildId),U.error(null!==(a=null!==(i=null==o?void 0:o.error)&&void 0!==i?i:t.message)&&void 0!==a?a:JSON.stringify(t))}catch(t){U.error("Honeybadger failed :(")}}))};class Kp{constructor(e){var t;this.reportLifecycleError=async(e,t,n={})=>{var i,a,o;let r=null;t instanceof Uc&&(r=null!==(o=null===(a=null===(i=null==t?void 0:t.response)||void 0===i?void 0:i.data)||void 0===a?void 0:a.error)&&void 0!==o?o:null==t?void 0:t.message),U.error(`${e} failed: ${null!=r?r:String(t)}`),await en({context:{lifecycle:e,ciBuildId:this.ciBuildId,...n},error:t,title:`${e} - Fire and Forget Handler`})},this.onBegin=(e,t)=>{ju(this,e,t).catch((t=>this.reportLifecycleError("onBegin",t,{configDetails:JSON.stringify(e,null,2)})))},this.onTestBegin=(e,t)=>{(async(e,t,{retry:n})=>{var i,a,o;const{title:r,repeatEachIndex:s}=t,{rootDir:c,currentShard:u,ciBuildId:p}=e,{historyId:l}=Tu(t,c),d=(new Date).toString(),m=Xt(n,s);if(e.shouldNotReportTest)U.invertBackground(cu.startingTest({titlePath:r,historyId:l,retry:n,repeatEachIndex:s}));else try{if(e.pendingTestBegins.add(Xt(l,m)),await Jt((()=>{var t,n;return Ht(e.attempts)&&Me(null===(n=null===(t=e.attempts)||void 0===t?void 0:t[l])||void 0===n?void 0:n["0-0"])})),U.invertBackground(cu.startingTest({titlePath:r,historyId:l,retry:n,repeatEachIndex:s})),e.shouldNotReportTest)return;const t={status:"running",startedAt:d,shard:u,repeatEachIndex:s};if(0===n&&0===s)await Su({ciBuildId:p,historyId:l,id:null===(a=null===(i=e.attempts)||void 0===i?void 0:i[l])||void 0===a?void 0:a["0-0"],payload:t});else{const{data:{attemptId:n}}=await Au(p,l,t);e.attempts=Ge(e.attempts,{[l]:{[m]:n}})}}catch(t){await en({context:{historyId:l,attemptIndex:m,title:r},error:t,title:"onTestBegin"}),U.error(t.message),U.error(R.failedToReportTest(r,l)),await(null===(o=e.heartbeatManager)||void 0===o?void 0:o.sendImmediateHeartbeat())}finally{e.pendingTestBegins.delete(Xt(l,m)),e.startedAttempts.add(Xt(l,m))}})(this,e,t).catch((t=>this.reportLifecycleError("onTestBegin",t,{testTitle:e.title,testLocation:e.location})))},this.onTestEnd=(e,t)=>{Cp(this,e,t).catch((n=>this.reportLifecycleError("onTestEnd",n,{testTitle:e.title,testLocation:e.location,testStatus:t.status,testDuration:t.duration})))},this.onEnd=async e=>(async(e,{status:t,duration:n})=>{var i,a,o;const{currentShard:r}=e;try{if(await Jt((()=>(e.hasRunStarted||e.shouldNotReportTest)&&0===e.pendingTestBegins.size&&0===e.pendingTestEnds.size&&0===e.startedAttempts.size)),U.bold(pu.finalStatus({currentShard:r,status:t,duration:n})),e.shouldNotReportTest)return;if(0===e.totalTestCount)return void await nu(e.ciBuildId,{shards:Kt({currentShard:r,status:"passed",duration:n})});await Promise.allSettled(e.testResultCalls),await nu(e.ciBuildId,{shards:Kt({currentShard:r,status:t,duration:n})})}catch(e){const o=null===(i=e.response)||void 0===i?void 0:i.data;await en({context:{runStatus:t,runDuration:n},error:e,title:"onEnd"}),U.error(null!==(a=o.error)&&void 0!==a?a:e.message),U.error(B.failedToReportRunStatus)}finally{e.shouldNotReportTest||0===e.totalTestCount||U.invertBackground(pu.runReported),null===(o=e.heartbeatManager)||void 0===o||o.stop()}})(this,e),this.attempts={},this.tags=e.tags,this.ciBuildId=e.ciBuildId,this.testResultCalls=[],this.totalTestCount=0,this.hasRunStarted=!1,this.heartbeatManager=null,this.rootDir="",this.currentShard=0,this.progressBars=[],this.startedAttempts=new Set,this.shouldNotReportTest=!1,this.pendingTestBegins=new Set,this.pendingTestEnds=new Set,this.apiKey=e.apiKey,S.configure({apiKey:Zt("9d5d98e72929dae3c8b3701f50032da1a02b80f9dc29a8e448a601871e5c82fd0ac2fa33c46443709cdb3eabc54a06ab"),environment:(null===(t=null==e?void 0:e.baseURL)||void 0===t?void 0:t.includes(".net"))?"staging":"production"}),S.setContext({...e,reporterVersion:tn()}),Wp(this,e)}onStdOut(e,t){t&&U.bold(`Log from test "${t.title}"`),U.log(e.toString())}}export{Kp as default,Fp as test};
8
+ function(e){var t,n,i,o=ni.exports,r=a.extname,s=/^\s*([^;\s]*)(?:;|\s|$)/,c=/^text\//i;function u(e){if(!e||"string"!=typeof e)return!1;var t=s.exec(e),n=t&&o[t[1].toLowerCase()];return n&&n.charset?n.charset:!(!t||!c.test(t[1]))&&"UTF-8"}e.charset=u,e.charsets={lookup:u},e.contentType=function(t){if(!t||"string"!=typeof t)return!1;var n=-1===t.indexOf("/")?e.lookup(t):t;if(!n)return!1;if(-1===n.indexOf("charset")){var i=e.charset(n);i&&(n+="; charset="+i.toLowerCase())}return n},e.extension=function(t){if(!t||"string"!=typeof t)return!1;var n=s.exec(t),i=n&&e.extensions[n[1].toLowerCase()];if(!i||!i.length)return!1;return i[0]},e.extensions=Object.create(null),e.lookup=function(t){if(!t||"string"!=typeof t)return!1;var n=r("x."+t).toLowerCase().substr(1);if(!n)return!1;return e.types[n]||!1},e.types=Object.create(null),t=e.extensions,n=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){t[e]=r;for(var s=0;s<r.length;s++){var c=r[s];if(n[c]){var u=i.indexOf(o[n[c]].source),p=i.indexOf(a.source);if("application/octet-stream"!==n[c]&&(u>p||u===p&&"application/"===n[c].substr(0,12)))continue}n[c]=e}}}))}(ti);var ii=function(e){var t="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;t?t(e):setTimeout(e,0)},ai=function(e){var t=!1;return ii((function(){t=!0})),function(n,i){t?e(n,i):ii((function(){e(n,i)}))}};var oi=function(e){Object.keys(e.jobs).forEach(ri.bind(e)),e.jobs={}};function ri(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}var si=ai,ci=oi,ui=function(e,t,n,i){var a=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[a]=function(e,t,n,i){var a;a=2==e.length?e(n,si(i)):e(n,t,si(i));return a}(t,a,e[a],(function(e,t){a in n.jobs&&(delete n.jobs[a],e?ci(n):n.results[a]=t,i(e,n.results))}))};var pi=function(e,t){var n=!Array.isArray(e),i={index:0,keyedList:n||t?Object.keys(e):null,jobs:{},results:n?{}:[],size:n?Object.keys(e).length:e.length};t&&i.keyedList.sort(n?t:function(n,i){return t(e[n],e[i])});return i};var li=oi,di=ai,mi=function(e){if(!Object.keys(this.jobs).length)return;this.index=this.size,li(this),di(e)(null,this.results)};var fi=ui,hi=pi,vi=mi,xi=function(e,t,n){var i=hi(e);for(;i.index<(i.keyedList||e).length;)fi(e,t,i,(function(e,t){e?n(e,t):0!==Object.keys(i.jobs).length||n(null,i.results)})),i.index++;return vi.bind(i,n)};var bi={exports:{}},gi=ui,yi=pi,Di=mi;function wi(e,t){return e<t?-1:e>t?1:0}bi.exports=function(e,t,n,i){var a=yi(e,n);return gi(e,t,a,(function n(o,r){o?i(o,r):(a.index++,a.index<(a.keyedList||e).length?gi(e,t,a,n):i(null,a.results))})),Di.bind(a,i)},bi.exports.ascending=wi,bi.exports.descending=function(e,t){return-1*wi(e,t)};var _i=bi.exports;var Ei,Ci,Fi={parallel:xi,serial:function(e,t,n){return _i(e,t,null,n)},serialOrdered:bi.exports},Ti=Object,ki=Error,ji=EvalError,Ai=RangeError,Si=ReferenceError,Oi=SyntaxError;function Ri(){return Ci?Ei:(Ci=1,Ei=TypeError)}var Bi=URIError,Pi=Math.abs,Ni=Math.floor,Li=Math.max,Ii=Math.min,Ui=Math.pow,zi=Math.round,qi=Number.isNaN||function(e){return e!=e},Mi=Object.getOwnPropertyDescriptor;if(Mi)try{Mi([],"length")}catch(e){Mi=null}var Hi=Mi,$i=Object.defineProperty||!1;if($i)try{$i({},"a",{value:1})}catch(e){$i=!1}var Gi,Wi,Ki,Vi,Ji,Yi,Xi,Zi,Qi=$i;function ea(){return Wi?Gi:(Wi=1,Gi=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var i in e[t]=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 a=Object.getOwnPropertySymbols(e);if(1!==a.length||a[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0})}function ta(){return Yi?Ji:(Yi=1,Ji="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function na(){return Zi?Xi:(Zi=1,Xi=Ti.getPrototypeOf||null)}var ia,aa,oa,ra,sa,ca,ua,pa,la,da,ma,fa,ha,va,xa=Object.prototype.toString,ba=Math.max,ga=function(e,t){for(var n=[],i=0;i<e.length;i+=1)n[i]=e[i];for(var a=0;a<t.length;a+=1)n[a+e.length]=t[a];return n},ya=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==xa.apply(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n,i=function(e,t){for(var n=[],i=t,a=0;i<e.length;i+=1,a+=1)n[a]=e[i];return n}(arguments,1),a=ba(0,t.length-i.length),o=[],r=0;r<a;r++)o[r]="$"+r;if(n=Function("binder","return function ("+function(e,t){for(var n="",i=0;i<e.length;i+=1)n+=e[i],i+1<e.length&&(n+=t);return n}(o,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof n){var a=t.apply(this,ga(i,arguments));return Object(a)===a?a:this}return t.apply(e,ga(i,arguments))})),t.prototype){var s=function(){};s.prototype=t.prototype,n.prototype=new s,s.prototype=null}return n},Da=Function.prototype.bind||ya;function wa(){return aa?ia:(aa=1,ia=Function.prototype.call)}function _a(){return ra?oa:(ra=1,oa=Function.prototype.apply)}function Ea(){if(pa)return ua;pa=1;var e=Da,t=_a(),n=wa(),i=ca?sa:(ca=1,sa="undefined"!=typeof Reflect&&Reflect&&Reflect.apply);return ua=i||e.call(n,t)}function Ca(){if(fa)return ma;fa=1;var e,t=function(){if(da)return la;da=1;var e=Da,t=Ri(),n=wa(),i=Ea();return la=function(a){if(a.length<1||"function"!=typeof a[0])throw new t("a function is required");return i(e,n,a)}}(),n=Hi;try{e=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var i=!!e&&n&&n(Object.prototype,"__proto__"),a=Object,o=a.getPrototypeOf;return ma=i&&"function"==typeof i.get?t([i.get]):"function"==typeof o&&function(e){return o(null==e?e:a(e))}}var Fa,Ta=Function.prototype.call,ka=Object.prototype.hasOwnProperty,ja=Da.call(Ta,ka),Aa=Ti,Sa=ki,Oa=ji,Ra=Ai,Ba=Si,Pa=Oi,Na=Ri(),La=Bi,Ia=Pi,Ua=Ni,za=Li,qa=Ii,Ma=Ui,Ha=zi,$a=function(e){return qi(e)||0===e?e:e<0?-1:1},Ga=Function,Wa=function(e){try{return Ga('"use strict"; return ('+e+").constructor;")()}catch(e){}},Ka=Hi,Va=Qi,Ja=function(){throw new Na},Ya=Ka?function(){try{return Ja}catch(e){try{return Ka(arguments,"callee").get}catch(e){return Ja}}}():Ja,Xa=function(){if(Vi)return Ki;Vi=1;var e="undefined"!=typeof Symbol&&Symbol,t=ea();return Ki=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}()(),Za=function(){if(va)return ha;va=1;var e=ta(),t=na(),n=Ca();return ha=e?function(t){return e(t)}:t?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return t(e)}:n?function(e){return n(e)}:null}(),Qa=na(),eo=ta(),to=_a(),no=wa(),io={},ao="undefined"!=typeof Uint8Array&&Za?Za(Uint8Array):Fa,oo={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?Fa:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?Fa:ArrayBuffer,"%ArrayIteratorPrototype%":Xa&&Za?Za([][Symbol.iterator]()):Fa,"%AsyncFromSyncIteratorPrototype%":Fa,"%AsyncFunction%":io,"%AsyncGenerator%":io,"%AsyncGeneratorFunction%":io,"%AsyncIteratorPrototype%":io,"%Atomics%":"undefined"==typeof Atomics?Fa:Atomics,"%BigInt%":"undefined"==typeof BigInt?Fa:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?Fa:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?Fa:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?Fa:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Sa,"%eval%":eval,"%EvalError%":Oa,"%Float16Array%":"undefined"==typeof Float16Array?Fa:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?Fa:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?Fa:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?Fa:FinalizationRegistry,"%Function%":Ga,"%GeneratorFunction%":io,"%Int8Array%":"undefined"==typeof Int8Array?Fa:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?Fa:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?Fa:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Xa&&Za?Za(Za([][Symbol.iterator]())):Fa,"%JSON%":"object"==typeof JSON?JSON:Fa,"%Map%":"undefined"==typeof Map?Fa:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Xa&&Za?Za((new Map)[Symbol.iterator]()):Fa,"%Math%":Math,"%Number%":Number,"%Object%":Aa,"%Object.getOwnPropertyDescriptor%":Ka,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?Fa:Promise,"%Proxy%":"undefined"==typeof Proxy?Fa:Proxy,"%RangeError%":Ra,"%ReferenceError%":Ba,"%Reflect%":"undefined"==typeof Reflect?Fa:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?Fa:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Xa&&Za?Za((new Set)[Symbol.iterator]()):Fa,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Fa:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Xa&&Za?Za(""[Symbol.iterator]()):Fa,"%Symbol%":Xa?Symbol:Fa,"%SyntaxError%":Pa,"%ThrowTypeError%":Ya,"%TypedArray%":ao,"%TypeError%":Na,"%Uint8Array%":"undefined"==typeof Uint8Array?Fa:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Fa:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?Fa:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?Fa:Uint32Array,"%URIError%":La,"%WeakMap%":"undefined"==typeof WeakMap?Fa:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?Fa:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?Fa:WeakSet,"%Function.prototype.call%":no,"%Function.prototype.apply%":to,"%Object.defineProperty%":Va,"%Object.getPrototypeOf%":Qa,"%Math.abs%":Ia,"%Math.floor%":Ua,"%Math.max%":za,"%Math.min%":qa,"%Math.pow%":Ma,"%Math.round%":Ha,"%Math.sign%":$a,"%Reflect.getPrototypeOf%":eo};if(Za)try{null.error}catch(e){var ro=Za(Za(e));oo["%Error.prototype%"]=ro}var so,co,uo=function e(t){var n;if("%AsyncFunction%"===t)n=Wa("async function () {}");else if("%GeneratorFunction%"===t)n=Wa("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=Wa("async function* () {}");else if("%AsyncGenerator%"===t){var i=e("%AsyncGeneratorFunction%");i&&(n=i.prototype)}else if("%AsyncIteratorPrototype%"===t){var a=e("%AsyncGenerator%");a&&Za&&(n=Za(a.prototype))}return oo[t]=n,n},po={__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"]},lo=Da,mo=ja,fo=lo.call(no,Array.prototype.concat),ho=lo.call(to,Array.prototype.splice),vo=lo.call(no,String.prototype.replace),xo=lo.call(no,String.prototype.slice),bo=lo.call(no,RegExp.prototype.exec),go=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,yo=/\\(\\)?/g,Do=function(e,t){var n,i=e;if(mo(po,i)&&(i="%"+(n=po[i])[0]+"%"),mo(oo,i)){var a=oo[i];if(a===io&&(a=uo(i)),void 0===a&&!t)throw new Na("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:a}}throw new Pa("intrinsic "+e+" does not exist!")};var wo=function(e,t){if("string"!=typeof e||0===e.length)throw new Na("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new Na('"allowMissing" argument must be a boolean');if(null===bo(/^%?[^%]*%?$/,e))throw new Pa("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=xo(e,0,1),n=xo(e,-1);if("%"===t&&"%"!==n)throw new Pa("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new Pa("invalid intrinsic syntax, expected opening `%`");var i=[];return vo(e,go,(function(e,t,n,a){i[i.length]=n?vo(a,yo,"$1"):t||e})),i}(e),i=n.length>0?n[0]:"",a=Do("%"+i+"%",t),o=a.name,r=a.value,s=!1,c=a.alias;c&&(i=c[0],ho(n,fo([0,1],c)));for(var u=1,p=!0;u<n.length;u+=1){var l=n[u],d=xo(l,0,1),m=xo(l,-1);if(('"'===d||"'"===d||"`"===d||'"'===m||"'"===m||"`"===m)&&d!==m)throw new Pa("property names with quotes must have matching quotes");if("constructor"!==l&&p||(s=!0),mo(oo,o="%"+(i+="."+l)+"%"))r=oo[o];else if(null!=r){if(!(l in r)){if(!t)throw new Na("base intrinsic for "+e+" exists, but the property is not available.");return}if(Ka&&u+1>=n.length){var f=Ka(r,l);r=(p=!!f)&&"get"in f&&!("originalValue"in f.get)?f.get:r[l]}else p=mo(r,l),r=r[l];p&&!s&&(oo[o]=r)}}return r}("%Object.defineProperty%",!0),_o=function(){if(co)return so;co=1;var e=ea();return so=function(){return e()&&!!Symbol.toStringTag}}()(),Eo=ja,Co=Ri(),Fo=_o?Symbol.toStringTag:null,To=Qn,ko=r,jo=a,Ao=c,So=u,Oo=s.parse,Ro=n,Bo=l.Stream,Po=m,No=ti,Lo=Fi,Io=function(e,t){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,i=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(void 0!==n&&"boolean"!=typeof n||void 0!==i&&"boolean"!=typeof i)throw new Co("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");!Fo||!n&&Eo(e,Fo)||(wo?wo(e,Fo,{configurable:!i,enumerable:!1,value:t,writable:!1}):e[Fo]=t)},Uo=ja,zo=function(e,t){return Object.keys(t).forEach((function(n){e[n]=e[n]||t[n]})),e};function qo(e){if(!(this instanceof qo))return new qo(e);for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],To.call(this),e=e||{})this[t]=e[t]}ko.inherits(qo,To),qo.LINE_BREAK="\r\n",qo.DEFAULT_CONTENT_TYPE="application/octet-stream",qo.prototype.append=function(e,t,n){"string"==typeof(n=n||{})&&(n={filename:n});var i=To.prototype.append.bind(this);if("number"!=typeof t&&null!=t||(t=String(t)),Array.isArray(t))this._error(new Error("Arrays are not supported."));else{var a=this._multiPartHeader(e,t,n),o=this._multiPartFooter();i(a),i(t),i(o),this._trackLength(a,t,n)}},qo.prototype._trackLength=function(e,t,n){var i=0;null!=n.knownLength?i+=Number(n.knownLength):Buffer.isBuffer(t)?i=t.length:"string"==typeof t&&(i=Buffer.byteLength(t)),this._valueLength+=i,this._overheadLength+=Buffer.byteLength(e)+qo.LINE_BREAK.length,t&&(t.path||t.readable&&Uo(t,"httpVersion")||t instanceof Bo)&&(n.knownLength||this._valuesToMeasure.push(t))},qo.prototype._lengthRetriever=function(e,t){Uo(e,"fd")?null!=e.end&&e.end!=1/0&&null!=e.start?t(null,e.end+1-(e.start?e.start:0)):Ro.stat(e.path,(function(n,i){if(n)t(n);else{var a=i.size-(e.start?e.start:0);t(null,a)}})):Uo(e,"httpVersion")?t(null,Number(e.headers["content-length"])):Uo(e,"httpModule")?(e.on("response",(function(n){e.pause(),t(null,Number(n.headers["content-length"]))})),e.resume()):t("Unknown stream")},qo.prototype._multiPartHeader=function(e,t,n){if("string"==typeof n.header)return n.header;var i,a=this._getContentDisposition(t,n),o=this._getContentType(t,n),r="",s={"Content-Disposition":["form-data",'name="'+e+'"'].concat(a||[]),"Content-Type":[].concat(o||[])};for(var c in"object"==typeof n.header&&zo(s,n.header),s)if(Uo(s,c)){if(null==(i=s[c]))continue;Array.isArray(i)||(i=[i]),i.length&&(r+=c+": "+i.join("; ")+qo.LINE_BREAK)}return"--"+this.getBoundary()+qo.LINE_BREAK+r+qo.LINE_BREAK},qo.prototype._getContentDisposition=function(e,t){var n;if("string"==typeof t.filepath?n=jo.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?n=jo.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&Uo(e,"httpVersion")&&(n=jo.basename(e.client._httpMessage.path||"")),n)return'filename="'+n+'"'},qo.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e&&e.name&&(n=No.lookup(e.name)),!n&&e&&e.path&&(n=No.lookup(e.path)),!n&&e&&e.readable&&Uo(e,"httpVersion")&&(n=e.headers["content-type"]),n||!t.filepath&&!t.filename||(n=No.lookup(t.filepath||t.filename)),!n&&e&&"object"==typeof e&&(n=qo.DEFAULT_CONTENT_TYPE),n},qo.prototype._multiPartFooter=function(){return function(e){var t=qo.LINE_BREAK;0===this._streams.length&&(t+=this._lastBoundary()),e(t)}.bind(this)},qo.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+qo.LINE_BREAK},qo.prototype.getHeaders=function(e){var t,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)Uo(e,t)&&(n[t.toLowerCase()]=e[t]);return n},qo.prototype.setBoundary=function(e){if("string"!=typeof e)throw new TypeError("FormData boundary must be a string");this._boundary=e},qo.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},qo.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),n=0,i=this._streams.length;n<i;n++)"function"!=typeof this._streams[n]&&(e=Buffer.isBuffer(this._streams[n])?Buffer.concat([e,this._streams[n]]):Buffer.concat([e,Buffer.from(this._streams[n])]),"string"==typeof this._streams[n]&&this._streams[n].substring(2,t.length+2)===t||(e=Buffer.concat([e,Buffer.from(qo.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},qo.prototype._generateBoundary=function(){this._boundary="--------------------------"+Po.randomBytes(12).toString("hex")},qo.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},qo.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},qo.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;this._streams.length&&(t+=this._lastBoundary().length),this._valuesToMeasure.length?Lo.parallel(this._valuesToMeasure,this._lengthRetriever,(function(n,i){n?e(n):(i.forEach((function(e){t+=e})),e(null,t))})):process.nextTick(e.bind(this,null,t))},qo.prototype.submit=function(e,t){var n,i,a={method:"post"};return"string"==typeof e?(e=Oo(e),i=zo({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},a)):(i=zo(e,a)).port||(i.port="https:"===i.protocol?443:80),i.headers=this.getHeaders(e.headers),n="https:"===i.protocol?So.request(i):Ao.request(i),this.getLength(function(e,i){if(e&&"Unknown stream"!==e)this._error(e);else if(i&&n.setHeader("Content-Length",i),this.pipe(n),t){var a,o=function(e,i){return n.removeListener("error",o),n.removeListener("response",a),t.call(this,e,i)};a=o.bind(this,null),n.on("error",o),n.on("response",a)}}.bind(this)),n},qo.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},qo.prototype.toString=function(){return"[object FormData]"},Io(qo,"FormData");var Mo=qo;function Ho(e){return Hn.isPlainObject(e)||Hn.isArray(e)}function $o(e){return Hn.endsWith(e,"[]")?e.slice(0,-2):e}function Go(e,t,n){return e?e.concat(t).map((function(e,t){return e=$o(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Wo=Hn.toFlatObject(Hn,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Ko(e,t,n){if(!Hn.isObject(e))throw new TypeError("target must be an object");t=t||new(Mo||FormData);const i=(n=Hn.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Hn.isUndefined(t[e])}))).metaTokens,a=n.visitor||u,o=n.dots,r=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Hn.isSpecCompliantForm(t);if(!Hn.isFunction(a))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Hn.isDate(e))return e.toISOString();if(!s&&Hn.isBlob(e))throw new $n("Blob is not supported. Use a Buffer instead.");return Hn.isArrayBuffer(e)||Hn.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,a){let s=e;if(e&&!a&&"object"==typeof e)if(Hn.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=JSON.stringify(e);else if(Hn.isArray(e)&&function(e){return Hn.isArray(e)&&!e.some(Ho)}(e)||(Hn.isFileList(e)||Hn.endsWith(n,"[]"))&&(s=Hn.toArray(e)))return n=$o(n),s.forEach((function(e,i){!Hn.isUndefined(e)&&null!==e&&t.append(!0===r?Go([n],i,o):null===r?n:n+"[]",c(e))})),!1;return!!Ho(e)||(t.append(Go(a,n,o),c(e)),!1)}const p=[],l=Object.assign(Wo,{defaultVisitor:u,convertValue:c,isVisitable:Ho});if(!Hn.isObject(e))throw new TypeError("data must be an object");return function e(n,i){if(!Hn.isUndefined(n)){if(-1!==p.indexOf(n))throw Error("Circular reference detected in "+i.join("."));p.push(n),Hn.forEach(n,(function(n,o){!0===(!(Hn.isUndefined(n)||null===n)&&a.call(t,n,Hn.isString(o)?o.trim():o,i,l))&&e(n,i?i.concat(o):[o])})),p.pop()}}(e),t}function Vo(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Jo(e,t){this._pairs=[],e&&Ko(e,this,t)}const Yo=Jo.prototype;function Xo(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Zo(e,t,n){if(!t)return e;const i=n&&n.encode||Xo;Hn.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let o;if(o=a?a(t,n):Hn.isURLSearchParams(t)?t.toString():new Jo(t,n).toString(i),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}Yo.append=function(e,t){this._pairs.push([e,t])},Yo.toString=function(e){const t=e?function(t){return e.call(this,t,Vo)}:Vo;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class Qo{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Hn.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var er={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},tr=s.URLSearchParams;const nr="abcdefghijklmnopqrstuvwxyz",ir="0123456789",ar={DIGIT:ir,ALPHA:nr,ALPHA_DIGIT:nr+nr.toUpperCase()+ir};var or={isNode:!0,classes:{URLSearchParams:tr,FormData:Mo,Blob:"undefined"!=typeof Blob&&Blob||null},ALPHABET:ar,generateString:(e=16,t=ar.ALPHA_DIGIT)=>{let n="";const{length:i}=t,a=new Uint32Array(e);m.randomFillSync(a);for(let o=0;o<e;o++)n+=t[a[o]%i];return n},protocols:["http","https","file","data"]};const rr="undefined"!=typeof window&&"undefined"!=typeof document,sr="object"==typeof navigator&&navigator||void 0,cr=rr&&(!sr||["ReactNative","NativeScript","NS"].indexOf(sr.product)<0),ur="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,pr=rr&&window.location.href||"http://localhost";var lr={...Object.freeze({__proto__:null,hasBrowserEnv:rr,hasStandardBrowserEnv:cr,hasStandardBrowserWebWorkerEnv:ur,navigator:sr,origin:pr}),...or};function dr(e){function t(e,n,i,a){let o=e[a++];if("__proto__"===o)return!0;const r=Number.isFinite(+o),s=a>=e.length;if(o=!o&&Hn.isArray(i)?i.length:o,s)return Hn.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!r;i[o]&&Hn.isObject(i[o])||(i[o]=[]);return t(e,n,i[o],a)&&Hn.isArray(i[o])&&(i[o]=function(e){const t={},n=Object.keys(e);let i;const a=n.length;let o;for(i=0;i<a;i++)o=n[i],t[o]=e[o];return t}(i[o])),!r}if(Hn.isFormData(e)&&Hn.isFunction(e.entries)){const n={};return Hn.forEachEntry(e,((e,i)=>{t(function(e){return Hn.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),i,n,0)})),n}return null}const mr={transitional:er,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",i=n.indexOf("application/json")>-1,a=Hn.isObject(e);a&&Hn.isHTMLForm(e)&&(e=new FormData(e));if(Hn.isFormData(e))return i?JSON.stringify(dr(e)):e;if(Hn.isArrayBuffer(e)||Hn.isBuffer(e)||Hn.isStream(e)||Hn.isFile(e)||Hn.isBlob(e)||Hn.isReadableStream(e))return e;if(Hn.isArrayBufferView(e))return e.buffer;if(Hn.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Ko(e,new lr.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,i){return lr.isNode&&Hn.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=Hn.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Ko(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return a||i?(t.setContentType("application/json",!1),function(e,t,n){if(Hn.isString(e))try{return(t||JSON.parse)(e),Hn.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||mr.transitional,n=t&&t.forcedJSONParsing,i="json"===this.responseType;if(Hn.isResponse(e)||Hn.isReadableStream(e))return e;if(e&&Hn.isString(e)&&(n&&!this.responseType||i)){const n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw $n.from(e,$n.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:lr.classes.FormData,Blob:lr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Hn.forEach(["delete","get","head","post","put","patch"],(e=>{mr.headers[e]={}}));const fr=Hn.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 hr=Symbol("internals");function vr(e){return e&&String(e).trim().toLowerCase()}function xr(e){return!1===e||null==e?e:Hn.isArray(e)?e.map(xr):String(e)}function br(e,t,n,i,a){return Hn.isFunction(i)?i.call(this,t,n):(a&&(t=n),Hn.isString(t)?Hn.isString(i)?-1!==t.indexOf(i):Hn.isRegExp(i)?i.test(t):void 0:void 0)}let gr=class{constructor(e){e&&this.set(e)}set(e,t,n){const i=this;function a(e,t,n){const a=vr(t);if(!a)throw new Error("header name must be a non-empty string");const o=Hn.findKey(i,a);(!o||void 0===i[o]||!0===n||void 0===n&&!1!==i[o])&&(i[o||t]=xr(e))}const o=(e,t)=>Hn.forEach(e,((e,n)=>a(e,n,t)));if(Hn.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(Hn.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let n,i,a;return e&&e.split("\n").forEach((function(e){a=e.indexOf(":"),n=e.substring(0,a).trim().toLowerCase(),i=e.substring(a+1).trim(),!n||t[n]&&fr[n]||("set-cookie"===n?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)})),t})(e),t);else if(Hn.isHeaders(e))for(const[t,i]of e.entries())a(i,t,n);else null!=e&&a(t,e,n);return this}get(e,t){if(e=vr(e)){const n=Hn.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}(e);if(Hn.isFunction(t))return t.call(this,e,n);if(Hn.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=vr(e)){const n=Hn.findKey(this,e);return!(!n||void 0===this[n]||t&&!br(0,this[n],n,t))}return!1}delete(e,t){const n=this;let i=!1;function a(e){if(e=vr(e)){const a=Hn.findKey(n,e);!a||t&&!br(0,n[a],a,t)||(delete n[a],i=!0)}}return Hn.isArray(e)?e.forEach(a):a(e),i}clear(e){const t=Object.keys(this);let n=t.length,i=!1;for(;n--;){const a=t[n];e&&!br(0,this[a],a,e,!0)||(delete this[a],i=!0)}return i}normalize(e){const t=this,n={};return Hn.forEach(this,((i,a)=>{const o=Hn.findKey(n,a);if(o)return t[o]=xr(i),void delete t[a];const r=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(a):String(a).trim();r!==a&&delete t[a],t[r]=xr(i),n[r]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Hn.forEach(this,((n,i)=>{null!=n&&!1!==n&&(t[i]=e&&Hn.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[hr]=this[hr]={accessors:{}}).accessors,n=this.prototype;function i(e){const i=vr(e);t[i]||(!function(e,t){const n=Hn.toCamelCase(" "+t);["get","set","has"].forEach((i=>{Object.defineProperty(e,i+n,{value:function(e,n,a){return this[i].call(this,t,e,n,a)},configurable:!0})}))}(n,e),t[i]=!0)}return Hn.isArray(e)?e.forEach(i):i(e),this}};function yr(e,t){const n=this||mr,i=t||n,a=gr.from(i.headers);let o=i.data;return Hn.forEach(e,(function(e){o=e.call(n,o,a.normalize(),t?t.status:void 0)})),a.normalize(),o}function Dr(e){return!(!e||!e.__CANCEL__)}function wr(e,t,n){$n.call(this,null==e?"canceled":e,$n.ERR_CANCELED,t,n),this.name="CanceledError"}function _r(e,t,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new $n("Request failed with status code "+n.status,[$n.ERR_BAD_REQUEST,$n.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function Er(e,t,n){let i=!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t);return e&&(i||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}gr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Hn.reduceDescriptors(gr.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Hn.freezeMethods(gr),Hn.inherits(wr,$n,{__CANCEL__:!0});var Cr={},Fr=s.parse,Tr={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},kr=String.prototype.endsWith||function(e){return e.length<=this.length&&-1!==this.indexOf(e,this.length-e.length)};function jr(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}Cr.getProxyForUrl=function(e){var t="string"==typeof e?Fr(e):e||{},n=t.protocol,i=t.host,a=t.port;if("string"!=typeof i||!i||"string"!=typeof n)return"";if(n=n.split(":",1)[0],!function(e,t){var n=(jr("npm_config_no_proxy")||jr("no_proxy")).toLowerCase();if(!n)return!0;if("*"===n)return!1;return n.split(/[,\s]/).every((function(n){if(!n)return!0;var i=n.match(/^(.+):(\d+)$/),a=i?i[1]:n,o=i?parseInt(i[2]):0;return!(!o||o===t)||(/^[.*]/.test(a)?("*"===a.charAt(0)&&(a=a.slice(1)),!kr.call(e,a)):e!==a)}))}(i=i.replace(/:\d*$/,""),a=parseInt(a)||Tr[n]||0))return"";var o=jr("npm_config_"+n+"_proxy")||jr(n+"_proxy")||jr("npm_config_proxy")||jr("all_proxy");return o&&-1===o.indexOf("://")&&(o=n+"://"+o),o};var Ar,Sr,Or,Rr,Br,Pr={exports:{}},Nr={exports:{}},Lr={exports:{}};function Ir(){if(Sr)return Ar;Sr=1;var e=1e3,t=60*e,n=60*t,i=24*n,a=7*i,o=365.25*i;function r(e,t,n,i){var a=t>=1.5*n;return Math.round(e/n)+" "+i+(a?"s":"")}return Ar=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*a;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*t;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(a){var o=Math.abs(a);if(o>=i)return r(a,o,i,"day");if(o>=n)return r(a,o,n,"hour");if(o>=t)return r(a,o,t,"minute");if(o>=e)return r(a,o,e,"second");return a+" ms"}(s):function(a){var o=Math.abs(a);if(o>=i)return Math.round(a/i)+"d";if(o>=n)return Math.round(a/n)+"h";if(o>=t)return Math.round(a/t)+"m";if(o>=e)return Math.round(a/e)+"s";return a+"ms"}(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))},Ar}function Ur(){if(Rr)return Or;return Rr=1,Or=function(e){function t(e){let i,a,o,r=null;function s(...e){if(!s.enabled)return;const n=s,a=Number(new Date),o=a-(i||a);n.diff=o,n.prev=i,n.curr=a,i=a,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let r=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((i,a)=>{if("%%"===i)return"%";r++;const o=t.formatters[a];if("function"==typeof o){const t=e[r];i=o.call(n,t),e.splice(r,1),r--}return i})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==r?r:(a!==t.namespaces&&(a=t.namespaces,o=t.enabled(e)),o),set:e=>{r=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){const i=t(this.namespace+(void 0===n?":":n)+e);return i.log=this.log,i}function i(e,t){let n=0,i=0,a=-1,o=0;for(;n<e.length;)if(i<t.length&&(t[i]===e[n]||"*"===t[i]))"*"===t[i]?(a=i,o=n,i++):(n++,i++);else{if(-1===a)return!1;i=a+1,o++,n=o}for(;i<t.length&&"*"===t[i];)i++;return i===t.length}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names,...t.skips.map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").trim().replace(" ",",").split(",").filter(Boolean);for(const e of n)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const n of t.skips)if(i(e,n))return!1;for(const n of t.names)if(i(e,n))return!0;return!1},t.humanize=Ir(),t.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((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t},Or}var zr,qr,Mr,Hr,$r,Gr,Wr,Kr={exports:{}};function Vr(){return qr?zr:(qr=1,zr=(e,t=process.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",i=t.indexOf(n+e),a=t.indexOf("--");return-1!==i&&(-1===a||i<a)})}function Jr(){return $r||($r=1,function(t,n){const i=h,a=r;n.init=function(e){e.inspectOpts={};const t=Object.keys(n.inspectOpts);for(let i=0;i<t.length;i++)e.inspectOpts[t[i]]=n.inspectOpts[t[i]]},n.log=function(...e){return process.stderr.write(a.formatWithOptions(n.inspectOpts,...e)+"\n")},n.formatArgs=function(e){const{namespace:i,useColors:a}=this;if(a){const n=this.color,a="[3"+(n<8?n:"8;5;"+n),o=` ${a};1m${i} `;e[0]=o+e[0].split("\n").join("\n"+o),e.push(a+"m+"+t.exports.humanize(this.diff)+"")}else e[0]=function(){if(n.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+i+" "+e[0]},n.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},n.load=function(){return process.env.DEBUG},n.useColors=function(){return"colors"in n.inspectOpts?Boolean(n.inspectOpts.colors):i.isatty(process.stderr.fd)},n.destroy=a.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),n.colors=[6,2,3,4,5,1];try{const t=function(){if(Hr)return Mr;Hr=1;const t=e,n=h,i=Vr(),{env:a}=process;let o;function r(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function s(e,n){if(0===o)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(e&&!n&&void 0===o)return 0;const r=o||0;if("dumb"===a.TERM)return r;if("win32"===process.platform){const e=t.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in a)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in a))||"codeship"===a.CI_NAME?1:r;if("TEAMCITY_VERSION"in a)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0;if("truecolor"===a.COLORTERM)return 3;if("TERM_PROGRAM"in a){const e=parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||"COLORTERM"in a?1:r}return i("no-color")||i("no-colors")||i("color=false")||i("color=never")?o=0:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(o=1),"FORCE_COLOR"in a&&(o="true"===a.FORCE_COLOR?1:"false"===a.FORCE_COLOR?0:0===a.FORCE_COLOR.length?1:Math.min(parseInt(a.FORCE_COLOR,10),3)),Mr={supportsColor:function(e){return r(s(e,e&&e.isTTY))},stdout:r(s(!0,n.isatty(1))),stderr:r(s(!0,n.isatty(2)))},Mr}();t&&(t.stderr||t).level>=2&&(n.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){}n.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let i=process.env[t];return i=!!/^(yes|on|true|enabled)$/i.test(i)||!/^(no|off|false|disabled)$/i.test(i)&&("null"===i?null:Number(i)),e[n]=i,e}),{}),t.exports=Ur()(n);const{formatters:o}=t.exports;o.o=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},o.O=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts)}}(Kr,Kr.exports)),Kr.exports}function Yr(){return Gr||(Gr=1,e=Nr,"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=(Br||(Br=1,function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let i=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(i++,"%c"===e&&(a=i))})),t.splice(a,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.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+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.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`."))}})(),t.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"],t.log=console.debug||console.log||(()=>{}),e.exports=Ur()(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(Lr,Lr.exports)),Lr.exports):e.exports=Jr()),Nr.exports;var e}var Xr,Zr,Qr,es=s,ts=es.URL,ns=c,is=u,as=l.Writable,os=f,rs=function(){if(!Wr){try{Wr=Yr()("follow-redirects")}catch(e){}"function"!=typeof Wr&&(Wr=function(){})}Wr.apply(null,arguments)};Xr="undefined"!=typeof process,Zr="undefined"!=typeof window&&"undefined"!=typeof document,Qr=Ts(Error.captureStackTrace),Xr||!Zr&&Qr||console.warn("The follow-redirects package should be excluded from browser builds.");var ss=!1;try{os(new ts(""))}catch(e){ss="ERR_INVALID_URL"===e.code}var cs=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],us=["abort","aborted","connect","error","socket","timeout"],ps=Object.create(null);us.forEach((function(e){ps[e]=function(t,n,i){this._redirectable.emit(e,t,n,i)}}));var ls=Es("ERR_INVALID_URL","Invalid URL",TypeError),ds=Es("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),ms=Es("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",ds),fs=Es("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),hs=Es("ERR_STREAM_WRITE_AFTER_END","write after end"),vs=as.prototype.destroy||gs;function xs(e,t){as.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var n=this;this._onNativeResponse=function(e){try{n._processResponse(e)}catch(e){n.emit("error",e instanceof ds?e:new ds({cause:e}))}},this._performRequest()}function bs(e){var t={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(e).forEach((function(i){var a=i+":",o=n[a]=e[i],r=t[i]=Object.create(o);Object.defineProperties(r,{request:{value:function(e,i,o){var r;return r=e,ts&&r instanceof ts?e=ws(e):Fs(e)?e=ws(ys(e)):(o=i,i=Ds(e),e={protocol:a}),Ts(i)&&(o=i,i=null),(i=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,i)).nativeProtocols=n,Fs(i.host)||Fs(i.hostname)||(i.hostname="::1"),os.equal(i.protocol,a,"protocol mismatch"),rs("options",i),new xs(i,o)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,n){var i=r.request(e,t,n);return i.end(),i},configurable:!0,enumerable:!0,writable:!0}})})),t}function gs(){}function ys(e){var t;if(ss)t=new ts(e);else if(!Fs((t=Ds(es.parse(e))).protocol))throw new ls({input:e});return t}function Ds(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new ls({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new ls({input:e.href||e});return e}function ws(e,t){var n=t||{};for(var i of cs)n[i]=e[i];return n.hostname.startsWith("[")&&(n.hostname=n.hostname.slice(1,-1)),""!==n.port&&(n.port=Number(n.port)),n.path=n.search?n.pathname+n.search:n.pathname,n}function _s(e,t){var n;for(var i in t)e.test(i)&&(n=t[i],delete t[i]);return null==n?void 0:String(n).trim()}function Es(e,t,n){function i(n){Ts(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return i.prototype=new(n||Error),Object.defineProperties(i.prototype,{constructor:{value:i,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),i}function Cs(e,t){for(var n of us)e.removeListener(n,ps[n]);e.on("error",gs),e.destroy(t)}function Fs(e){return"string"==typeof e||e instanceof String}function Ts(e){return"function"==typeof e}xs.prototype=Object.create(as.prototype),xs.prototype.abort=function(){Cs(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},xs.prototype.destroy=function(e){return Cs(this._currentRequest,e),vs.call(this,e),this},xs.prototype.write=function(e,t,n){if(this._ending)throw new hs;if(!Fs(e)&&("object"!=typeof(i=e)||!("length"in i)))throw new TypeError("data should be a string, Buffer or Uint8Array");var i;Ts(t)&&(n=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,n)):(this.emit("error",new fs),this.abort()):n&&n()},xs.prototype.end=function(e,t,n){if(Ts(e)?(n=e,e=t=null):Ts(t)&&(n=t,t=null),e){var i=this,a=this._currentRequest;this.write(e,t,(function(){i._ended=!0,a.end(null,null,n)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,n)},xs.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},xs.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},xs.prototype.setTimeout=function(e,t){var n=this;function i(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function a(t){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout((function(){n.emit("timeout"),o()}),e),i(t)}function o(){n._timeout&&(clearTimeout(n._timeout),n._timeout=null),n.removeListener("abort",o),n.removeListener("error",o),n.removeListener("response",o),n.removeListener("close",o),t&&n.removeListener("timeout",t),n.socket||n._currentRequest.removeListener("socket",a)}return t&&this.on("timeout",t),this.socket?a(this.socket):this._currentRequest.once("socket",a),this.on("socket",i),this.on("abort",o),this.on("error",o),this.on("response",o),this.on("close",o),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){xs.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(xs.prototype,e,{get:function(){return this._currentRequest[e]}})})),xs.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},xs.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var n=e.slice(0,-1);this._options.agent=this._options.agents[n]}var i=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var a of(i._redirectable=this,us))i.on(a,ps[a]);if(this._currentUrl=/^\//.test(this._options.path)?es.format(this._options):this._options.path,this._isRedirect){var o=0,r=this,s=this._requestBodyBuffers;!function e(t){if(i===r._currentRequest)if(t)r.emit("error",t);else if(o<s.length){var n=s[o++];i.finished||i.write(n.data,n.encoding,e)}else r._ended&&i.end()}()}},xs.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var n,i=e.headers.location;if(!i||!1===this._options.followRedirects||t<300||t>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(Cs(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new ms;var a=this._options.beforeRedirect;a&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var o=this._options.method;((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],_s(/^content-/i,this._options.headers));var r,s,c=_s(/^host$/i,this._options.headers),u=ys(this._currentUrl),p=c||u.host,l=/^\w+:/.test(i)?this._currentUrl:es.format(Object.assign(u,{host:p})),d=(r=i,s=l,ss?new ts(r,s):ys(es.resolve(s,r)));if(rs("redirecting to",d.href),this._isRedirect=!0,ws(d,this._options),(d.protocol!==u.protocol&&"https:"!==d.protocol||d.host!==p&&!function(e,t){os(Fs(e)&&Fs(t));var n=e.length-t.length-1;return n>0&&"."===e[n]&&e.endsWith(t)}(d.host,p))&&_s(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),Ts(a)){var m={headers:e.headers,statusCode:t},f={url:l,method:o,headers:n};a(this._options,m,f),this._sanitizeOptions(this._options)}this._performRequest()},Pr.exports=bs({http:ns,https:is}),Pr.exports.wrap=bs;const ks="1.8.4";function js(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const As=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;const Ss=Symbol("internals");class Os extends l.Transform{constructor(e){e=Hn.toFlatObject(e,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,((e,t)=>!Hn.isUndefined(t[e]))),super({readableHighWaterMark:e.chunkSize});const t=this[Ss]={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&&(t.isCaptured||(t.isCaptured=!0))}))}_read(e){const t=this[Ss];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,n){const i=this[Ss],a=i.maxRate,o=this.readableHighWaterMark,r=i.timeWindow,s=a/(1e3/r),c=!1!==i.minChunkSize?Math.max(i.minChunkSize,.01*s):0,u=(e,t)=>{const n=Buffer.byteLength(e);i.bytesSeen+=n,i.bytes+=n,i.isCaptured&&this.emit("progress",i.bytesSeen),this.push(e)?process.nextTick(t):i.onReadCallback=()=>{i.onReadCallback=null,process.nextTick(t)}},p=(e,t)=>{const n=Buffer.byteLength(e);let p,l=null,d=o,m=0;if(a){const e=Date.now();(!i.ts||(m=e-i.ts)>=r)&&(i.ts=e,p=s-i.bytes,i.bytes=p<0?-p:0,m=0),p=s-i.bytes}if(a){if(p<=0)return setTimeout((()=>{t(null,e)}),r-m);p<d&&(d=p)}d&&n>d&&n-d>c&&(l=e.subarray(d),e=e.subarray(0,d)),u(e,l?()=>{process.nextTick(t,null,l)}:t)};p(e,(function e(t,i){if(t)return n(t);i?p(i,e):n(null)}))}}const{asyncIterator:Rs}=Symbol,Bs=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[Rs]?yield*e[Rs]():yield e},Ps=lr.ALPHABET.ALPHA_DIGIT+"-_",Ns="function"==typeof TextEncoder?new TextEncoder:new r.TextEncoder,Ls="\r\n",Is=Ns.encode(Ls);class Us{constructor(e,t){const{escapeName:n}=this.constructor,i=Hn.isString(t);let a=`Content-Disposition: form-data; name="${n(e)}"${!i&&t.name?`; filename="${n(t.name)}"`:""}${Ls}`;i?t=Ns.encode(String(t).replace(/\r?\n|\r\n?/g,Ls)):a+=`Content-Type: ${t.type||"application/octet-stream"}${Ls}`,this.headers=Ns.encode(a+Ls),this.contentLength=i?t.byteLength:t.size,this.size=this.headers.byteLength+this.contentLength+2,this.name=e,this.value=t}async*encode(){yield this.headers;const{value:e}=this;Hn.isTypedArray(e)?yield e:yield*Bs(e),yield Is}static escapeName(e){return String(e).replace(/[\r\n"]/g,(e=>({"\r":"%0D","\n":"%0A",'"':"%22"}[e])))}}class zs extends l.Transform{__transform(e,t,n){this.push(e),n()}_transform(e,t,n){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,t)}this.__transform(e,t,n)}}const qs=(e,t)=>Hn.isAsyncFn(e)?function(...n){const i=n.pop();e.apply(this,n).then((e=>{try{t?i(null,...t(e)):i(null,e)}catch(e){i(e)}}),i)}:e;const Ms=(e,t,n=3)=>{let i=0;const a=function(e,t){e=e||10;const n=new Array(e),i=new Array(e);let a,o=0,r=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=i[r];a||(a=c),n[o]=s,i[o]=c;let p=r,l=0;for(;p!==o;)l+=n[p++],p%=e;if(o=(o+1)%e,o===r&&(r=(r+1)%e),c-a<t)return;const d=u&&c-u;return d?Math.round(1e3*l/d):void 0}}(50,250);return function(e,t){let n,i,a=0,o=1e3/t;const r=(t,o=Date.now())=>{a=o,n=null,i&&(clearTimeout(i),i=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-a;s>=o?r(e,t):(n=e,i||(i=setTimeout((()=>{i=null,r(n)}),o-s)))},()=>n&&r(n)]}((n=>{const o=n.loaded,r=n.lengthComputable?n.total:void 0,s=o-i,c=a(s);i=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:n,lengthComputable:null!=r,[t?"download":"upload"]:!0})}),n)},Hs=(e,t)=>{const n=null!=e;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},$s=e=>(...t)=>Hn.asap((()=>e(...t))),Gs={flush:v.constants.Z_SYNC_FLUSH,finishFlush:v.constants.Z_SYNC_FLUSH},Ws={flush:v.constants.BROTLI_OPERATION_FLUSH,finishFlush:v.constants.BROTLI_OPERATION_FLUSH},Ks=Hn.isFunction(v.createBrotliDecompress),{http:Vs,https:Js}=Pr.exports,Ys=/https:?/,Xs=lr.protocols.map((e=>e+":")),Zs=(e,[t,n])=>(e.on("end",n).on("error",n),t);function Qs(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function ec(e,t,n){let i=t;if(!i&&!1!==i){const e=Cr.getProxyForUrl(n);e&&(i=new URL(e))}if(i){if(i.username&&(i.auth=(i.username||"")+":"+(i.password||"")),i.auth){(i.auth.username||i.auth.password)&&(i.auth=(i.auth.username||"")+":"+(i.auth.password||""));const t=Buffer.from(i.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+t}e.headers.host=e.hostname+(e.port?":"+e.port:"");const t=i.hostname||i.host;e.hostname=t,e.host=t,e.port=i.port,e.path=n,i.protocol&&(e.protocol=i.protocol.includes(":")?i.protocol:`${i.protocol}:`)}e.beforeRedirects.proxy=function(e){ec(e,t,e.href)}}const tc="undefined"!=typeof process&&"process"===Hn.kindOf(process),nc=(e,t)=>(({address:e,family:t})=>{if(!Hn.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}})(Hn.isObject(e)?e:{address:e,family:t});var ic=tc&&function(e){return t=async function(t,n,i){let{data:a,lookup:o,family:s}=e;const{responseType:p,responseEncoding:m}=e,f=e.method.toUpperCase();let h,x,g=!1;if(o){const e=qs(o,(e=>Hn.isArray(e)?e:[e]));o=(t,n,i)=>{e(t,n,((e,t,a)=>{if(e)return i(e);const o=Hn.isArray(t)?t.map((e=>nc(e))):[nc(t,a)];n.all?i(e,o):i(e,o[0].address,o[0].family)}))}}const y=new b,D=()=>{e.cancelToken&&e.cancelToken.unsubscribe(w),e.signal&&e.signal.removeEventListener("abort",w),y.removeAllListeners()};function w(t){y.emit("abort",!t||t.type?new wr(null,e,x):t)}i(((e,t)=>{h=!0,t&&(g=!0,D())})),y.once("abort",n),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(w),e.signal&&(e.signal.aborted?w():e.signal.addEventListener("abort",w)));const _=Er(e.baseURL,e.url,e.allowAbsoluteUrls),E=new URL(_,lr.hasBrowserEnv?lr.origin:void 0),C=E.protocol||Xs[0];if("data:"===C){let i;if("GET"!==f)return _r(t,n,{status:405,statusText:"method not allowed",headers:{},config:e});try{i=function(e,t,n){const i=n&&n.Blob||lr.classes.Blob,a=js(e);if(void 0===t&&i&&(t=!0),"data"===a){e=a.length?e.slice(a.length+1):e;const n=As.exec(e);if(!n)throw new $n("Invalid URL",$n.ERR_INVALID_URL);const o=n[1],r=n[2],s=n[3],c=Buffer.from(decodeURIComponent(s),r?"base64":"utf8");if(t){if(!i)throw new $n("Blob is not supported",$n.ERR_NOT_SUPPORT);return new i([c],{type:o})}return c}throw new $n("Unsupported protocol "+a,$n.ERR_NOT_SUPPORT)}(e.url,"blob"===p,{Blob:e.env&&e.env.Blob})}catch(t){throw $n.from(t,$n.ERR_BAD_REQUEST,e)}return"text"===p?(i=i.toString(m),m&&"utf8"!==m||(i=Hn.stripBOM(i))):"stream"===p&&(i=l.Readable.from(i)),_r(t,n,{data:i,status:200,statusText:"OK",headers:new gr,config:e})}if(-1===Xs.indexOf(C))return n(new $n("Unsupported protocol "+C,$n.ERR_BAD_REQUEST,e));const F=gr.from(e.headers).normalize();F.set("User-Agent","axios/"+ks,!1);const{onUploadProgress:T,onDownloadProgress:k}=e,j=e.maxRate;let A,S;if(Hn.isSpecCompliantForm(a)){const e=F.getContentType(/boundary=([-_\w\d]{10,70})/i);a=((e,t,n)=>{const{tag:i="form-data-boundary",size:a=25,boundary:o=i+"-"+lr.generateString(a,Ps)}=n||{};if(!Hn.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=Ns.encode("--"+o+Ls),s=Ns.encode("--"+o+"--"+Ls+Ls);let c=s.byteLength;const u=Array.from(e.entries()).map((([e,t])=>{const n=new Us(e,t);return c+=n.size,n}));c+=r.byteLength*u.length,c=Hn.toFiniteNumber(c);const p={"Content-Type":`multipart/form-data; boundary=${o}`};return Number.isFinite(c)&&(p["Content-Length"]=c),t&&t(p),d.from(async function*(){for(const e of u)yield r,yield*e.encode();yield s}())})(a,(e=>{F.set(e)}),{tag:`axios-${ks}-boundary`,boundary:e&&e[1]||void 0})}else if(Hn.isFormData(a)&&Hn.isFunction(a.getHeaders)){if(F.set(a.getHeaders()),!F.hasContentLength())try{const e=await r.promisify(a.getLength).call(a);Number.isFinite(e)&&e>=0&&F.setContentLength(e)}catch(e){}}else if(Hn.isBlob(a)||Hn.isFile(a))a.size&&F.setContentType(a.type||"application/octet-stream"),F.setContentLength(a.size||0),a=l.Readable.from(Bs(a));else if(a&&!Hn.isStream(a)){if(Buffer.isBuffer(a));else if(Hn.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else{if(!Hn.isString(a))return n(new $n("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",$n.ERR_BAD_REQUEST,e));a=Buffer.from(a,"utf-8")}if(F.setContentLength(a.length,!1),e.maxBodyLength>-1&&a.length>e.maxBodyLength)return n(new $n("Request body larger than maxBodyLength limit",$n.ERR_BAD_REQUEST,e))}const O=Hn.toFiniteNumber(F.getContentLength());let R,B;Hn.isArray(j)?(A=j[0],S=j[1]):A=S=j,a&&(T||A)&&(Hn.isStream(a)||(a=l.Readable.from(a,{objectMode:!1})),a=l.pipeline([a,new Os({maxRate:Hn.toFiniteNumber(A)})],Hn.noop),T&&a.on("progress",Zs(a,Hs(O,Ms($s(T),!1,3))))),e.auth&&(R=(e.auth.username||"")+":"+(e.auth.password||"")),!R&&E.username&&(R=E.username+":"+E.password),R&&F.delete("authorization");try{B=Zo(E.pathname+E.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){const i=new Error(t.message);return i.config=e,i.url=e.url,i.exists=!0,n(i)}F.set("Accept-Encoding","gzip, compress, deflate"+(Ks?", br":""),!1);const P={path:B,method:f,headers:F.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:R,protocol:C,family:s,beforeRedirect:Qs,beforeRedirects:{}};let N;!Hn.isUndefined(o)&&(P.lookup=o),e.socketPath?P.socketPath=e.socketPath:(P.hostname=E.hostname.startsWith("[")?E.hostname.slice(1,-1):E.hostname,P.port=E.port,ec(P,e.proxy,C+"//"+E.hostname+(E.port?":"+E.port:"")+P.path));const L=Ys.test(P.protocol);if(P.agent=L?e.httpsAgent:e.httpAgent,e.transport?N=e.transport:0===e.maxRedirects?N=L?u:c:(e.maxRedirects&&(P.maxRedirects=e.maxRedirects),e.beforeRedirect&&(P.beforeRedirects.config=e.beforeRedirect),N=L?Js:Vs),e.maxBodyLength>-1?P.maxBodyLength=e.maxBodyLength:P.maxBodyLength=1/0,e.insecureHTTPParser&&(P.insecureHTTPParser=e.insecureHTTPParser),x=N.request(P,(function(i){if(x.destroyed)return;const a=[i],o=+i.headers["content-length"];if(k||S){const e=new Os({maxRate:Hn.toFiniteNumber(S)});k&&e.on("progress",Zs(e,Hs(o,Ms($s(k),!0,3)))),a.push(e)}let r=i;const s=i.req||x;if(!1!==e.decompress&&i.headers["content-encoding"])switch("HEAD"!==f&&204!==i.statusCode||delete i.headers["content-encoding"],(i.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":a.push(v.createUnzip(Gs)),delete i.headers["content-encoding"];break;case"deflate":a.push(new zs),a.push(v.createUnzip(Gs)),delete i.headers["content-encoding"];break;case"br":Ks&&(a.push(v.createBrotliDecompress(Ws)),delete i.headers["content-encoding"])}r=a.length>1?l.pipeline(a,Hn.noop):a[0];const c=l.finished(r,(()=>{c(),D()})),u={status:i.statusCode,statusText:i.statusMessage,headers:new gr(i.headers),config:e,request:s};if("stream"===p)u.data=r,_r(t,n,u);else{const i=[];let a=0;r.on("data",(function(t){i.push(t),a+=t.length,e.maxContentLength>-1&&a>e.maxContentLength&&(g=!0,r.destroy(),n(new $n("maxContentLength size of "+e.maxContentLength+" exceeded",$n.ERR_BAD_RESPONSE,e,s)))})),r.on("aborted",(function(){if(g)return;const t=new $n("stream has been aborted",$n.ERR_BAD_RESPONSE,e,s);r.destroy(t),n(t)})),r.on("error",(function(t){x.destroyed||n($n.from(t,null,e,s))})),r.on("end",(function(){try{let e=1===i.length?i[0]:Buffer.concat(i);"arraybuffer"!==p&&(e=e.toString(m),m&&"utf8"!==m||(e=Hn.stripBOM(e))),u.data=e}catch(t){return n($n.from(t,null,e,u.request,u))}_r(t,n,u)}))}y.once("abort",(e=>{r.destroyed||(r.emit("error",e),r.destroy())}))})),y.once("abort",(e=>{n(e),x.destroy(e)})),x.on("error",(function(t){n($n.from(t,null,e,x))})),x.on("socket",(function(e){e.setKeepAlive(!0,6e4)})),e.timeout){const t=parseInt(e.timeout,10);if(Number.isNaN(t))return void n(new $n("error trying to parse `config.timeout` to int",$n.ERR_BAD_OPTION_VALUE,e,x));x.setTimeout(t,(function(){if(h)return;let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const i=e.transitional||er;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new $n(t,i.clarifyTimeoutError?$n.ETIMEDOUT:$n.ECONNABORTED,e,x)),w()}))}if(Hn.isStream(a)){let t=!1,n=!1;a.on("end",(()=>{t=!0})),a.once("error",(e=>{n=!0,x.destroy(e)})),a.on("close",(()=>{t||n||w(new wr("Request stream has been aborted",e,x))})),a.pipe(x)}else x.end(a)},new Promise(((e,n)=>{let i,a;const o=(e,t)=>{a||(a=!0,i&&i(e,t))},r=e=>{o(e,!0),n(e)};t((t=>{o(t),e(t)}),r,(e=>i=e)).catch(r)}));var t},ac=lr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,lr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(lr.origin),lr.navigator&&/(msie|trident)/i.test(lr.navigator.userAgent)):()=>!0,oc=lr.hasStandardBrowserEnv?{write(e,t,n,i,a,o){const r=[e+"="+encodeURIComponent(t)];Hn.isNumber(n)&&r.push("expires="+new Date(n).toGMTString()),Hn.isString(i)&&r.push("path="+i),Hn.isString(a)&&r.push("domain="+a),!0===o&&r.push("secure"),document.cookie=r.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};const rc=e=>e instanceof gr?{...e}:e;function sc(e,t){t=t||{};const n={};function i(e,t,n,i){return Hn.isPlainObject(e)&&Hn.isPlainObject(t)?Hn.merge.call({caseless:i},e,t):Hn.isPlainObject(t)?Hn.merge({},t):Hn.isArray(t)?t.slice():t}function a(e,t,n,a){return Hn.isUndefined(t)?Hn.isUndefined(e)?void 0:i(void 0,e,0,a):i(e,t,0,a)}function o(e,t){if(!Hn.isUndefined(t))return i(void 0,t)}function r(e,t){return Hn.isUndefined(t)?Hn.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function s(n,a,o){return o in t?i(n,a):o in e?i(void 0,n):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,t,n)=>a(rc(e),rc(t),0,!0)};return Hn.forEach(Object.keys(Object.assign({},e,t)),(function(i){const o=c[i]||a,r=o(e[i],t[i],i);Hn.isUndefined(r)&&o!==s||(n[i]=r)})),n}var cc=e=>{const t=sc({},e);let n,{data:i,withXSRFToken:a,xsrfHeaderName:o,xsrfCookieName:r,headers:s,auth:c}=t;if(t.headers=s=gr.from(s),t.url=Zo(Er(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),Hn.isFormData(i))if(lr.hasStandardBrowserEnv||lr.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(lr.hasStandardBrowserEnv&&(a&&Hn.isFunction(a)&&(a=a(t)),a||!1!==a&&ac(t.url))){const e=o&&r&&oc.read(r);e&&s.set(o,e)}return t};var uc="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const i=cc(e);let a=i.data;const o=gr.from(i.headers).normalize();let r,s,c,u,p,{responseType:l,onUploadProgress:d,onDownloadProgress:m}=i;function f(){u&&u(),p&&p(),i.cancelToken&&i.cancelToken.unsubscribe(r),i.signal&&i.signal.removeEventListener("abort",r)}let h=new XMLHttpRequest;function v(){if(!h)return;const i=gr.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());_r((function(e){t(e),f()}),(function(e){n(e),f()}),{data:l&&"text"!==l&&"json"!==l?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:i,config:e,request:h}),h=null}h.open(i.method.toUpperCase(),i.url,!0),h.timeout=i.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&&(n(new $n("Request aborted",$n.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new $n("Network Error",$n.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let t=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const a=i.transitional||er;i.timeoutErrorMessage&&(t=i.timeoutErrorMessage),n(new $n(t,a.clarifyTimeoutError?$n.ETIMEDOUT:$n.ECONNABORTED,e,h)),h=null},void 0===a&&o.setContentType(null),"setRequestHeader"in h&&Hn.forEach(o.toJSON(),(function(e,t){h.setRequestHeader(t,e)})),Hn.isUndefined(i.withCredentials)||(h.withCredentials=!!i.withCredentials),l&&"json"!==l&&(h.responseType=i.responseType),m&&([c,p]=Ms(m,!0),h.addEventListener("progress",c)),d&&h.upload&&([s,u]=Ms(d),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",u)),(i.cancelToken||i.signal)&&(r=t=>{h&&(n(!t||t.type?new wr(null,e,h):t),h.abort(),h=null)},i.cancelToken&&i.cancelToken.subscribe(r),i.signal&&(i.signal.aborted?r():i.signal.addEventListener("abort",r)));const x=js(i.url);x&&-1===lr.protocols.indexOf(x)?n(new $n("Unsupported protocol "+x+":",$n.ERR_BAD_REQUEST,e)):h.send(a||null)}))};const pc=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,i=new AbortController;const a=function(e){if(!n){n=!0,r();const t=e instanceof Error?e:this.reason;i.abort(t instanceof $n?t:new wr(t instanceof Error?t.message:t))}};let o=t&&setTimeout((()=>{o=null,a(new $n(`timeout ${t} of ms exceeded`,$n.ETIMEDOUT))}),t);const r=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(a):e.removeEventListener("abort",a)})),e=null)};e.forEach((e=>e.addEventListener("abort",a)));const{signal:s}=i;return s.unsubscribe=()=>Hn.asap(r),s}},lc=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let i,a=0;for(;a<n;)i=a+t,yield e.slice(a,i),a=i},dc=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},mc=(e,t,n,i)=>{const a=async function*(e,t){for await(const n of dc(e))yield*lc(n,t)}(e,t);let o,r=0,s=e=>{o||(o=!0,i&&i(e))};return new ReadableStream({async pull(e){try{const{done:t,value:i}=await a.next();if(t)return s(),void e.close();let o=i.byteLength;if(n){let e=r+=o;n(e)}e.enqueue(new Uint8Array(i))}catch(e){throw s(e),e}},cancel:e=>(s(e),a.return())},{highWaterMark:2})},fc="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,hc=fc&&"function"==typeof ReadableStream,vc=fc&&("function"==typeof TextEncoder?(xc=new TextEncoder,e=>xc.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var xc;const bc=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},gc=hc&&bc((()=>{let e=!1;const t=new Request(lr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),yc=hc&&bc((()=>Hn.isReadableStream(new Response("").body))),Dc={stream:yc&&(e=>e.body)};var wc;fc&&(wc=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Dc[e]&&(Dc[e]=Hn.isFunction(wc[e])?t=>t[e]():(t,n)=>{throw new $n(`Response type '${e}' is not supported`,$n.ERR_NOT_SUPPORT,n)})})));const _c=async(e,t)=>{const n=Hn.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(Hn.isBlob(e))return e.size;if(Hn.isSpecCompliantForm(e)){const t=new Request(lr.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Hn.isArrayBufferView(e)||Hn.isArrayBuffer(e)?e.byteLength:(Hn.isURLSearchParams(e)&&(e+=""),Hn.isString(e)?(await vc(e)).byteLength:void 0)})(t):n};var Ec=fc&&(async e=>{let{url:t,method:n,data:i,signal:a,cancelToken:o,timeout:r,onDownloadProgress:s,onUploadProgress:c,responseType:u,headers:p,withCredentials:l="same-origin",fetchOptions:d}=cc(e);u=u?(u+"").toLowerCase():"text";let m,f=pc([a,o&&o.toAbortSignal()],r);const h=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let v;try{if(c&&gc&&"get"!==n&&"head"!==n&&0!==(v=await _c(p,i))){let e,n=new Request(t,{method:"POST",body:i,duplex:"half"});if(Hn.isFormData(i)&&(e=n.headers.get("content-type"))&&p.setContentType(e),n.body){const[e,t]=Hs(v,Ms($s(c)));i=mc(n.body,65536,e,t)}}Hn.isString(l)||(l=l?"include":"omit");const a="credentials"in Request.prototype;m=new Request(t,{...d,signal:f,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:i,duplex:"half",credentials:a?l:void 0});let o=await fetch(m);const r=yc&&("stream"===u||"response"===u);if(yc&&(s||r&&h)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=Hn.toFiniteNumber(o.headers.get("content-length")),[n,i]=s&&Hs(t,Ms($s(s),!0))||[];o=new Response(mc(o.body,65536,n,(()=>{i&&i(),h&&h()})),e)}u=u||"text";let x=await Dc[Hn.findKey(Dc,u)||"text"](o,e);return!r&&h&&h(),await new Promise(((t,n)=>{_r(t,n,{data:x,headers:gr.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:m})}))}catch(t){if(h&&h(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new $n("Network Error",$n.ERR_NETWORK,e,m),{cause:t.cause||t});throw $n.from(t,t&&t.code,e,m)}});const Cc={http:ic,xhr:uc,fetch:Ec};Hn.forEach(Cc,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Fc=e=>`- ${e}`,Tc=e=>Hn.isFunction(e)||null===e||!1===e;var kc=e=>{e=Hn.isArray(e)?e:[e];const{length:t}=e;let n,i;const a={};for(let o=0;o<t;o++){let t;if(n=e[o],i=n,!Tc(n)&&(i=Cc[(t=String(n)).toLowerCase()],void 0===i))throw new $n(`Unknown adapter '${t}'`);if(i)break;a[t||"#"+o]=i}if(!i){const e=Object.entries(a).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new $n("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Fc).join("\n"):" "+Fc(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return i};function jc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new wr(null,e)}function Ac(e){jc(e),e.headers=gr.from(e.headers),e.data=yr.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return kc(e.adapter||mr.adapter)(e).then((function(t){return jc(e),t.data=yr.call(e,e.transformResponse,t),t.headers=gr.from(t.headers),t}),(function(t){return Dr(t)||(jc(e),t&&t.response&&(t.response.data=yr.call(e,e.transformResponse,t.response),t.response.headers=gr.from(t.response.headers))),Promise.reject(t)}))}const Sc={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Sc[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Oc={};Sc.transitional=function(e,t,n){function i(e,t){return"[Axios v1.8.4] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,a,o)=>{if(!1===e)throw new $n(i(a," has been removed"+(t?" in "+t:"")),$n.ERR_DEPRECATED);return t&&!Oc[a]&&(Oc[a]=!0,console.warn(i(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,a,o)}},Sc.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var Rc={assertOptions:function(e,t,n){if("object"!=typeof e)throw new $n("options must be an object",$n.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let a=i.length;for(;a-- >0;){const o=i[a],r=t[o];if(r){const t=e[o],n=void 0===t||r(t,o,e);if(!0!==n)throw new $n("option "+o+" must be "+n,$n.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new $n("Unknown option "+o,$n.ERR_BAD_OPTION)}},validators:Sc};const Bc=Rc.validators;let Pc=class{constructor(e){this.defaults=e,this.interceptors={request:new Qo,response:new Qo}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=sc(this.defaults,t);const{transitional:n,paramsSerializer:i,headers:a}=t;void 0!==n&&Rc.assertOptions(n,{silentJSONParsing:Bc.transitional(Bc.boolean),forcedJSONParsing:Bc.transitional(Bc.boolean),clarifyTimeoutError:Bc.transitional(Bc.boolean)},!1),null!=i&&(Hn.isFunction(i)?t.paramsSerializer={serialize:i}:Rc.assertOptions(i,{encode:Bc.function,serialize:Bc.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Rc.assertOptions(t,{baseUrl:Bc.spelling("baseURL"),withXsrfToken:Bc.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=a&&Hn.merge(a.common,a[t.method]);a&&Hn.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete a[e]})),t.headers=gr.concat(o,a);const r=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(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=[Ac.bind(this),void 0];for(e.unshift.apply(e,r),e.push.apply(e,c),p=e.length,u=Promise.resolve(t);l<p;)u=u.then(e[l++],e[l++]);return u}p=r.length;let d=t;for(l=0;l<p;){const e=r[l++],t=r[l++];try{d=e(d)}catch(e){t.call(this,e);break}}try{u=Ac.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 Zo(Er((e=sc(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};Hn.forEach(["delete","get","head","options"],(function(e){Pc.prototype[e]=function(t,n){return this.request(sc(n||{},{method:e,url:t,data:(n||{}).data}))}})),Hn.forEach(["post","put","patch"],(function(e){function t(t){return function(n,i,a){return this.request(sc(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Pc.prototype[e]=t(),Pc.prototype[e+"Form"]=t(!0)}));const Nc={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(Nc).forEach((([e,t])=>{Nc[t]=e}));const Lc=function e(t){const n=new Pc(t),i=nn(Pc.prototype.request,n);return Hn.extend(i,Pc.prototype,n,{allOwnKeys:!0}),Hn.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e(sc(t,n))},i}(mr);Lc.Axios=Pc,Lc.CanceledError=wr,Lc.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const i=new Promise((e=>{n.subscribe(e),t=e})).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e((function(e,i,a){n.reason||(n.reason=new wr(e,i,a),t(n.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 t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e((function(e){t=e})),cancel:t}}},Lc.isCancel=Dr,Lc.VERSION=ks,Lc.toFormData=Ko,Lc.AxiosError=$n,Lc.Cancel=Lc.CanceledError,Lc.all=function(e){return Promise.all(e)},Lc.spread=function(e){return function(t){return e.apply(null,t)}},Lc.isAxiosError=function(e){return Hn.isObject(e)&&!0===e.isAxiosError},Lc.mergeConfig=sc,Lc.AxiosHeaders=gr,Lc.formToJSON=e=>dr(Hn.isHTMLForm(e)?new FormData(e):e),Lc.getAdapter=kc,Lc.HttpStatusCode=Nc,Lc.default=Lc;const{Axios:Ic,AxiosError:Uc,CanceledError:zc,isCancel:qc,CancelToken:Mc,VERSION:Hc,all:$c,Cancel:Gc,isAxiosError:Wc,spread:Kc,toFormData:Vc,AxiosHeaders:Jc,HttpStatusCode:Yc,formToJSON:Xc,getAdapter:Zc,mergeConfig:Qc}=Lc,eu="/api/v1",tu=e=>{const t=(n=e,Object.entries(n).reduce(((e,t)=>(e[Gt(t[0])]=t[1],e)),{}));var n;return Lc.post(`${eu}/reporter/runs`,{run:t},{skipSnakeCaseConversion:!0})},nu=(e,t)=>Lc.put(`${eu}/reporter/runs/${e}`,{run:t}),iu=e=>Lc.get(`${eu}/reporter/runs/${e}/heartbeat`),au="=".repeat(10),ou={requestFailed:(e,t,n)=>`API request attempt ${e} failed. ${t} retries left. Error: ${n}`,allRetriesFailed:e=>`API call failed after all retries: ${e}`},ru={schedulingFailed:e=>`Heartbeat scheduling failed: ${e}`,emergencyTriggered:"Emergency heartbeat triggered - no successful heartbeat in 100+ seconds",emergencyFailed:e=>`Emergency heartbeat failed: ${e}`,failed:e=>`Heartbeat failed: ${e}`,attemptFailed:(e,t,n)=>`Heartbeat attempt ${e} failed. ${t} retries left. Error: ${n}`},su={testData:(e,t)=>{let n=`\n-------Started reporting to NeetoPlaydash 🎭-------\nCI Build ID: ${e}\n`;return t&&(n+=`Total shards: ${t.total}\nCurrent shards: ${t.current}\n`),n+=`${"-".repeat(50)}\n`,n}},cu={startingTest:({titlePath:e,historyId:t,retry:n,repeatEachIndex:i})=>`${au}Starting ${e}${au}\n Time: ${(new Date).toUTCString()}\n History ID: ${t}${n&&`\nRetry: ${n}`}${i&&`\nRepeat index: ${i}`}`},uu={reportedTest:({title:e,status:t,historyId:n,completedAt:i,error:a,isTestReported:o=!0,retry:r,repeatEachIndex:s})=>{let c=`\n\n${o?"------------Reported to NeetoPlaydash------------":"-".repeat(49)}\n Title: ${e}\n History id: ${n}\n Status: ${t}\n Completed at: ${i}${r&&`\nRetry: ${r}`}${s&&`\nRepeat index: ${s}`}\n`;return c=a?c.concat(` Error:\n\n ${a.replaceAll("\n","\n ")}`):c,c.concat(`\n${"-".repeat(49)}\n`)}},pu={runReported:"Run completed and reported to NeetoPlaydash 🎉\n\n",finalStatus:({currentShard:e,status:t,duration:n})=>{let i=`------------------Run completed-------------------\n Status: ${t}\n Duration: ${(e=>{const t={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(t).filter((([e,t])=>0!==t)).map((([e,t])=>t+" "+(1!==t?`${e}s`:e))).join(", ")})(null!=n?n:0)}\n`;return i=0!==e?i.concat(` Shard: ${e}`):i,i.concat(`\n${"-".repeat(50)}\n`)}};var lu={exports:{}},du={};function mu(e,t){"boolean"==typeof t&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var fu=mu;mu.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},mu.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},mu.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=(new Date).getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var n=this._timeouts.shift();if(void 0===n){if(!this._cachedTimeouts)return!1;this._errors.splice(0,this._errors.length-1),n=this._cachedTimeouts.slice(-1)}var i=this;return this._timer=setTimeout((function(){i._attempts++,i._operationTimeoutCb&&(i._timeout=setTimeout((function(){i._operationTimeoutCb(i._attempts)}),i._operationTimeout),i._options.unref&&i._timeout.unref()),i._fn(i._attempts)}),n),this._options.unref&&this._timer.unref(),!0},mu.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var n=this;this._operationTimeoutCb&&(this._timeout=setTimeout((function(){n._operationTimeoutCb()}),n._operationTimeout)),this._operationStart=(new Date).getTime(),this._fn(this._attempts)},mu.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)},mu.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)},mu.prototype.start=mu.prototype.try,mu.prototype.errors=function(){return this._errors},mu.prototype.attempts=function(){return this._attempts},mu.prototype.mainError=function(){if(0===this._errors.length)return null;for(var e={},t=null,n=0,i=0;i<this._errors.length;i++){var a=this._errors[i],o=a.message,r=(e[o]||0)+1;e[o]=r,r>=n&&(t=a,n=r)}return t},function(e){var t=fu;e.operation=function(n){var i=e.timeouts(n);return new t(i,{forever:n&&(n.forever||n.retries===1/0),unref:n&&n.unref,maxRetryTime:n&&n.maxRetryTime})},e.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1e3,maxTimeout:1/0,randomize:!1};for(var n in e)t[n]=e[n];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var i=[],a=0;a<t.retries;a++)i.push(this.createTimeout(a,t));return e&&e.forever&&!i.length&&i.push(this.createTimeout(a,t)),i.sort((function(e,t){return e-t})),i},e.createTimeout=function(e,t){var n=t.randomize?Math.random()+1:1,i=Math.round(n*Math.max(t.minTimeout,1)*Math.pow(t.factor,e));return i=Math.min(i,t.maxTimeout)},e.wrap=function(t,n,i){if(n instanceof Array&&(i=n,n=null),!i)for(var a in i=[],t)"function"==typeof t[a]&&i.push(a);for(var o=0;o<i.length;o++){var r=i[o],s=t[r];t[r]=function(i){var a=e.operation(n),o=Array.prototype.slice.call(arguments,1),r=o.pop();o.push((function(e){a.retry(e)||(e&&(arguments[0]=a.mainError()),r.apply(this,arguments))})),a.attempt((function(){i.apply(t,o)}))}.bind(t,s),t[r].options=n}}}(du);var hu=k(lu.exports=du);const vu=Object.prototype.toString,xu=new Set(["network error","Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Load failed","Network request failed","fetch failed","terminated"]);function bu(e){var t;return!(!e||(t=e,"[object Error]"!==vu.call(t))||"TypeError"!==e.name||"string"!=typeof e.message)&&("Load failed"===e.message?void 0===e.stack:xu.has(e.message))}class gu extends Error{constructor(e){super(),e instanceof Error?(this.originalError=e,({message:e}=e)):(this.originalError=new Error(e),this.originalError.stack=this.stack),this.name="AbortError",this.message=e}}const yu=(e,t,n)=>{const i=n.retries-(t-1);return e.attemptNumber=t,e.retriesLeft=i,e};async function Du(e,t){return new Promise(((n,i)=>{t={...t},t.onFailedAttempt??=()=>{},t.shouldRetry??=()=>!0,t.retries??=10;const a=hu.operation(t),o=()=>{a.stop(),i(t.signal?.reason)};t.signal&&!t.signal.aborted&&t.signal.addEventListener("abort",o,{once:!0});const r=()=>{t.signal?.removeEventListener("abort",o),a.stop()};a.attempt((async o=>{try{const t=await e(o);r(),n(t)}catch(e){try{if(!(e instanceof Error))throw new TypeError(`Non-error was thrown: "${e}". You should only throw errors.`);if(e instanceof gu)throw e.originalError;if(e instanceof TypeError&&!bu(e))throw e;if(yu(e,o,t),await t.shouldRetry(e)||(a.stop(),i(e)),await t.onFailedAttempt(e),!a.retry(e))throw a.mainError()}catch(e){yu(e,o,t),r(),i(e)}}}))}))}const wu={retries:3,minTimeout:1e3,maxTimeout:8e3,factor:2,isCritical:!1},_u=(e,t={})=>(async(e,t={})=>{const n={...wu,...t};return Du((async()=>{var t;try{return await e()}catch(e){const n=e;if(!(e=>{var t;if("ETIMEDOUT"===e.code||"ECONNRESET"===e.code)return!0;if(null===(t=e.response)||void 0===t?void 0:t.status){const t=e.response.status;return t>=500||404===t||408===t||429===t}return!0})(n))throw new gu(`Non-retriable error: ${(null===(t=n.response)||void 0===t?void 0:t.status)||n.code}`);throw e}}),{retries:n.retries,minTimeout:n.minTimeout,maxTimeout:n.maxTimeout,factor:n.factor,onFailedAttempt:e=>{n.isCritical?U.error(ou.requestFailed(e.attemptNumber,e.retriesLeft,e.message)):U.warning(ou.requestFailed(e.attemptNumber,e.retriesLeft,e.message))}})})(e,{...t,isCritical:!0}),Eu=(e,t)=>_u((()=>Lc.post(`${eu}/reporter/runs/${e}/test_entities`,{testEntity:t})));class Cu{constructor(e,t={interval:4e4,maxRetries:3,requestTimeout:3e3,retryDelay:1e3,emergencyThreshold:1e5}){this.ciBuildId=e,this.options=t,this.interval=null,this.emergencyTimeout=null,this.isServiceActive=!1,this.isHeartbeatInProgress=!1,this.lastSuccessfulHeartbeat=0,this.start=async()=>{this.isServiceActive||(this.isServiceActive=!0,this.lastSuccessfulHeartbeat=Date.now(),await this.sendHeartbeat(),this.scheduleNextHeartbeat(),this.scheduleEmergencyCheck())},this.stop=()=>{this.interval&&(clearInterval(this.interval),this.interval=null),this.emergencyTimeout&&(clearTimeout(this.emergencyTimeout),this.emergencyTimeout=null),this.isServiceActive=!1},this.scheduleNextHeartbeat=()=>{this.interval=setInterval((()=>{this.isHeartbeatInProgress||this.sendHeartbeat().catch((e=>{var t;U.error(ru.schedulingFailed(null!==(t=null==e?void 0:e.message)&&void 0!==t?t:String(e)))}))}),this.options.interval)},this.scheduleEmergencyCheck=()=>{this.emergencyTimeout=setTimeout((()=>{Date.now()-this.lastSuccessfulHeartbeat>this.options.emergencyThreshold&&(U.warning(ru.emergencyTriggered),this.isHeartbeatInProgress||this.sendEmergencyHeartbeat()),this.isServiceActive&&this.scheduleEmergencyCheck()}),this.options.emergencyThreshold)},this.sendHeartbeat=async()=>{if(!this.isHeartbeatInProgress){this.isHeartbeatInProgress=!0;try{await Du((async()=>{await iu(this.ciBuildId),this.lastSuccessfulHeartbeat=Date.now()}),{retries:this.options.maxRetries,minTimeout:this.options.retryDelay,maxTimeout:this.options.retryDelay,onFailedAttempt:e=>{var t;const n=e;if(null===(t=n.response)||void 0===t?void 0:t.status){const e=n.response.status;if(e>=400&&e<500&&404!==e&&408!==e)throw new gu(`Non-retriable client error: ${e}`)}U.warning(ru.attemptFailed(e.attemptNumber,e.retriesLeft,e.message))}})}catch(e){this.handleHeartbeatFailure(e)}finally{this.isHeartbeatInProgress=!1}}},this.sendEmergencyHeartbeat=async()=>{var e;this.isHeartbeatInProgress=!0;try{await iu(this.ciBuildId),this.lastSuccessfulHeartbeat=Date.now()}catch(t){U.error(ru.emergencyFailed(null!==(e=null==t?void 0:t.message)&&void 0!==e?e:String(t))),this.handleHeartbeatFailure(t)}finally{this.isHeartbeatInProgress=!1}},this.handleHeartbeatFailure=e=>{var t;const n=e instanceof gu;U.error(ru.failed(null!==(t=null==e?void 0:e.message)&&void 0!==t?t:String(e))),n&&(U.redText(P.stopped),this.stop(),process.exit(1))},this.sendImmediateHeartbeat=async()=>{this.isHeartbeatInProgress||await this.sendHeartbeat()}}get status(){return{isServiceActive:this.isServiceActive,isHeartbeatInProgress:this.isHeartbeatInProgress,lastHeartbeat:this.lastSuccessfulHeartbeat}}}const Fu=({command:e,messageOnError:t,shouldThrowError:n=!1,logLevel:i="warning"})=>{try{return g.execSync(e).toString().trim()}catch(e){if(n)throw e;U[i](t)}},Tu=(e,t)=>{var n;const{title:i,parent:o,location:{file:r}}=e,s=e.titlePath(),c=null===(n=o.project())||void 0===n?void 0:n.name,u=a.relative(t,r),p=(({titlePath:e,title:t,project:n,rootDir:i,file:o})=>e.filter(((e,r)=>0!==r&&e!==t&&e!==n&&e!==a.relative(i,o))))({titlePath:s,title:i,project:c,rootDir:t,file:r});return{title:i,describe:p,project:c,spec:u,historyId:(({projectId:e,specName:t,describeTitles:n,testTitle:i})=>{const a=`[project=${e}]${t}${[...n,i].join("")}`,o=Yt(a);return`${Yt(t)}-${o}`})({projectId:null!=c?c:"",specName:u,describeTitles:p,testTitle:i})}},ku=({rootDir:e},t)=>ze(t.allTests().map((t=>Tu(t,e)))),ju=async(e,t,n)=>{var i,a,o,r,s;const c=t.shard;e.config=t;const u=e.currentShard=null!==(i=null==c?void 0:c.current)&&void 0!==i?i:0;S.setContext({ciBuildId:e.ciBuildId,currentShard:null==c?void 0:c.current,rootDir:t.rootDir}),e.totalTestCount=n.allTests().length,e.rootDir=t.rootDir;const p={commitId:Fu({command:"git rev-parse HEAD",messageOnError:O.failedToGetCommitSha}),commitName:null!==(a=e.title)&&void 0!==a?a:Fu({command:"git show-branch --no-name HEAD",messageOnError:O.failedToGetCommitMessage}),author:Fu({command:"git show -s --format='%an' HEAD",messageOnError:O.failedToGetBranch}),branch:Fu({command:"git branch --show-current",messageOnError:O.failedToGetBranch}),tags:"string"==typeof e.tags?e.tags.split(","):e.tags,ciBuildId:e.ciBuildId,configuration:{...t,baseDir:process.cwd()},shards:Kt({currentShard:u})};try{if(await tu(p),e.hasRunStarted=!0,0===e.totalTestCount)return void U.redText(O.noTestsToReport);e.heartbeatManager=new Cu(e.ciBuildId),await e.heartbeatManager.start();const{data:i}=await Eu(e.ciBuildId,{testEntities:ku(t,n),shard:u});e.attempts=i,U.log(su.testData(e.ciBuildId,c))}catch(i){e.shouldNotReportTest=!0;const a=i,c=null===(o=a.response)||void 0===o?void 0:o.data;U.error(null!==(r=null==c?void 0:c.error)&&void 0!==r?r:a.message),U.error(O.failedToInitializeRun),await en({context:{...p,testEntities:ku(t,n)},error:i,title:"onBegin"}),((e,t)=>{var n,i;const{error:a}=e&&(e instanceof Uc&&(null===(n=null==e?void 0:e.response)||void 0===n?void 0:n.data)||{error:void 0}),o=e&&(e instanceof Uc?null===(i=null==e?void 0:e.response)||void 0===i?void 0:i.status:void 0);t.shouldNotReportTest=!0,"Project does not exist."===a&&404===o?(U.redText(O.invalidProjectKey),process.exit(1)):"Could not authenticate, invalid API Key"===a&&401===o||"api-key"===t.apiKey?(U.redText(O.invalidApiKey),process.exit(1)):[C,F].includes(a||"")&&422===o?(U.redText(O.duplicateCiBuildId),process.exit(1)):(422===o&&(process.kill(process.pid,"SIGKILL"),process.exit(1)),Qt(o)&&U.yellowText(null!=a?a:null==e?void 0:e.message),U.yellowText(O.testsWillNotBeReported))})(a,e),null===(s=e.heartbeatManager)||void 0===s||s.stop()}},Au=(e,t,n)=>_u((()=>Lc.post(`${eu}/reporter/runs/${e}/test_entities/${t}/attempts`,n))),Su=({ciBuildId:e,historyId:t,id:n,payload:i})=>_u((()=>Lc.put(`${eu}/reporter/runs/${e}/test_entities/${t}/attempts/${n}`,i))),Ou=["screenshot","video","trace","lighthouse"],Ru=({location:e,snippet:t})=>{if(!e)return null;const{file:n,line:i,column:a}=e;return`# ${n} (${i}:${a}) \n\n\n ${t}`},Bu={KB:1024,MB:Math.pow(1024,2)},Pu=(e,t)=>parseFloat((e/Bu[t]).toFixed(2));var Nu=class{constructor(e,t,n){this.etaBufferLength=e||100,this.valueBuffer=[n],this.timeBuffer=[t],this.eta="0"}update(e,t,n){this.valueBuffer.push(t),this.timeBuffer.push(e),this.calculate(n-t)}getTime(){return this.eta}calculate(e){const t=this.valueBuffer.length,n=Math.min(this.etaBufferLength,t),i=(this.valueBuffer[t-1]-this.valueBuffer[t-n])/(this.timeBuffer[t-1]-this.timeBuffer[t-n]);this.valueBuffer=this.valueBuffer.slice(-this.etaBufferLength),this.timeBuffer=this.timeBuffer.slice(-this.etaBufferLength);const a=Math.ceil(e/i/1e3);isNaN(a)?this.eta="NULL":isFinite(a)?this.eta=a>1e7?"INF":a<0?0:a:this.eta="INF"}};const Lu=y;var Iu=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,t=null){this.stream.isTTY&&Lu.cursorTo(this.stream,e,t)}cursorRelative(e=null,t=null){this.stream.isTTY&&(this.dy=this.dy+t,Lu.moveCursor(this.stream,e,t))}cursorRelativeReset(){this.stream.isTTY&&(Lu.moveCursor(this.stream,0,-this.dy),Lu.cursorTo(this.stream,0,null),this.dy=0)}clearRight(){this.stream.isTTY&&Lu.clearLine(this.stream,1)}clearLine(){this.stream.isTTY&&Lu.clearLine(this.stream,0)}clearBottom(){this.stream.isTTY&&Lu.clearScreenDown(this.stream)}newline(){this.stream.write("\n"),this.dy++}write(e,t=!1){!0===this.linewrap&&!1===t?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)}},Uu={exports:{}};const zu=({onlyFirst:e=!1}={})=>{const t=["[\\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(t,e?void 0:"g")};var qu={exports:{}};const Mu=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));qu.exports=Mu,qu.exports.default=Mu;const Hu=e=>"string"==typeof e?e.replace(zu(),""):e,$u=qu.exports,Gu=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},Wu=e=>{if("string"!=typeof e||0===e.length)return 0;if(0===(e=Hu(e)).length)return 0;e=e.replace(Gu()," ");let t=0;for(let n=0;n<e.length;n++){const i=e.codePointAt(n);i<=31||i>=127&&i<=159||(i>=768&&i<=879||(i>65535&&n++,t+=$u(i)?2:1))}return t};Uu.exports=Wu,Uu.exports.default=Wu;var Ku=function(e,t,n){if(!0!==t.autopadding)return e;return"percentage"===n?(i=e,(t.autopaddingChar+i).slice(-3)):e;var i},Vu=function(e,t){const n=Math.round(e*t.barsize),i=t.barsize-n;return t.barCompleteString.substr(0,n)+t.barGlue+t.barIncompleteString.substr(0,i)},Ju=function(e,t,n){function i(e){return n?n*Math.round(e/n):e}function a(e){return(t.autopaddingChar+e).slice(-2)}return e>3600?a(Math.floor(e/3600))+"h"+a(i(e%3600/60))+"m":e>60?a(Math.floor(e/60))+"m"+a(i(e%60))+"s":e>10?a(i(e))+"s":a(e)+"s"};const Yu=Uu.exports,Xu=Ku,Zu=Vu,Qu=Ju;var ep=function(e,t,n){let i=e.format;const a=e.formatTime||Qu,o=e.formatValue||Xu,r=e.formatBar||Zu,s=Math.floor(100*t.progress)+"",c=t.stopTime||Date.now(),u=Math.round((c-t.startTime)/1e3),p=Object.assign({},n,{bar:r(t.progress,e),percentage:o(s,e,"percentage"),total:o(t.total,e,"total"),value:o(t.value,e,"value"),eta:o(t.eta,e,"eta"),eta_formatted:a(t.eta,e,5),duration:o(u,e,"duration"),duration_formatted:a(u,e,1)});i=i.replace(/\{(\w+)\}/g,(function(e,t){return void 0!==p[t]?p[t]:e}));const l=Math.max(0,t.maxWidth-Yu(i)-2),d=Math.floor(l/2);switch(e.align){case"right":i=l>0?" ".repeat(l)+i:i;break;case"center":i=d>0?" ".repeat(d)+i:i}return i};function tp(e,t){return null==e?t:e}var np={parse:function(e,t){const n={},i=Object.assign({},t,e);return n.throttleTime=1e3/tp(i.fps,10),n.stream=tp(i.stream,process.stderr),n.terminal=tp(i.terminal,null),n.clearOnComplete=tp(i.clearOnComplete,!1),n.stopOnComplete=tp(i.stopOnComplete,!1),n.barsize=tp(i.barsize,40),n.align=tp(i.align,"left"),n.hideCursor=tp(i.hideCursor,!1),n.linewrap=tp(i.linewrap,!1),n.barGlue=tp(i.barGlue,""),n.barCompleteChar=tp(i.barCompleteChar,"="),n.barIncompleteChar=tp(i.barIncompleteChar,"-"),n.format=tp(i.format,"progress [{bar}] {percentage}% | ETA: {eta}s | {value}/{total}"),n.formatTime=tp(i.formatTime,null),n.formatValue=tp(i.formatValue,null),n.formatBar=tp(i.formatBar,null),n.etaBufferLength=tp(i.etaBuffer,10),n.etaAsynchronousUpdate=tp(i.etaAsynchronousUpdate,!1),n.progressCalculationRelative=tp(i.progressCalculationRelative,!1),n.synchronousUpdate=tp(i.synchronousUpdate,!0),n.noTTYOutput=tp(i.noTTYOutput,!1),n.notTTYSchedule=tp(i.notTTYSchedule,2e3),n.emptyOnZero=tp(i.emptyOnZero,!1),n.forceRedraw=tp(i.forceRedraw,!1),n.autopadding=tp(i.autopadding,!1),n.gracefulExit=tp(i.gracefulExit,!1),n},assignDerivedOptions:function(e){return e.barCompleteString=e.barCompleteChar.repeat(e.barsize+1),e.barIncompleteString=e.barIncompleteChar.repeat(e.barsize+1),e.autopaddingChar=e.autopadding?tp(e.autopaddingChar," "):"",e}};const ip=Nu,ap=Iu,op=ep,rp=np,sp=x;var cp=class extends sp{constructor(e){super(),this.options=rp.assignDerivedOptions(e),this.terminal=this.options.terminal?this.options.terminal:new ap(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 ip(this.options.etaBufferLength,0,0),this.payload={},this.isActive=!1,this.formatter="function"==typeof this.options.format?this.options.format:op}render(e=!1){const t={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 n=this.formatter(this.options,t,this.payload);(e||this.options.forceRedraw||this.options.noTTYOutput&&!this.terminal.isTTY()||this.lastDrawnString!=n)&&(this.emit("redraw-pre"),this.terminal.cursorTo(0,null),this.terminal.write(n),this.terminal.clearRight(),this.lastDrawnString=n,this.lastRedraw=Date.now(),this.emit("redraw-post"))}start(e,t,n){this.value=t||0,this.total=void 0!==e&&e>=0?e:100,this.startValue=t||0,this.payload=n||{},this.startTime=Date.now(),this.stopTime=null,this.lastDrawnString="",this.eta=new ip(this.options.etaBufferLength,this.startTime,this.value),this.isActive=!0,this.emit("start",e,t)}stop(){this.isActive=!1,this.stopTime=Date.now(),this.emit("stop",this.total,this.value)}update(e,t={}){"number"==typeof e&&(this.value=e,this.eta.update(Date.now(),e,this.total));const n=("object"==typeof e?e:t)||{};this.emit("update",this.total,this.value);for(const e in n)this.payload[e]=n[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,t={}){"object"==typeof e?this.update(this.value+1,e):this.update(this.value+e,t)}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 up=cp,pp=np;const lp=Iu,dp=cp,mp=np,fp=x;var hp={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:" {bar} {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"█",barIncompleteChar:"░"},rect:{format:" {bar}■ {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"■",barIncompleteChar:" "}};const vp=class extends up{constructor(e,t){super(pp.parse(e,t)),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,t){this.timer&&(super.update(e,t),this.options.synchronousUpdate&&this.lastRedraw+2*this.options.throttleTime<Date.now()&&this.render())}start(e,t,n){!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,t,n),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())}},xp=class extends fp{constructor(e,t){super(),this.bars=[],this.options=mp.parse(e,t),this.options.synchronousUpdate=!1,this.terminal=this.options.terminal?this.options.terminal:new lp(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,t,n,i={}){const a=new dp(Object.assign({},this.options,{terminal:this.terminal},i));return this.bars.push(a),!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,a.start(e,t,n),this.emit("start")),a}remove(e){const t=this.bars.indexOf(e);return!(t<0)&&(this.bars.splice(t,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 bp={Bar:vp,SingleBar:vp,MultiBar:xp,Presets:hp,Format:{Formatter:ep,BarFormat:Vu,ValueFormat:Ku,TimeFormat:Ju}};const gp=(e,t)=>"flaky"===e?e:t,yp=async(e,{url:t,headers:n},i)=>{const a=e.byteLength/1024>1024?"MB":"KB";const o=new bp.Bar({format:`Uploading ${i} [{bar}] | {value}/{total} ${a} - ETA: {eta_formatted}`,clearOnComplete:!0},bp.Presets.rect);return o.start(Pu(e.byteLength,a),0),await((e,{url:t,headers:n},i)=>Lc.put(t,e,{...i,headers:n}))(e,{url:t,headers:n},{onUploadProgress:e=>{e.total&&e.lengthComputable&&o.update(Pu(e.loaded,a))}}),o};var Dp,wp,_p={exports:{}};
9
+ /*! https://mths.be/wtf8 v1.0.1 by @mathias */Dp=_p,wp=_p.exports,function(e){var t=wp,n=Dp&&Dp.exports==t&&Dp,i="object"==typeof T&&T;i.global!==i&&i.window!==i||(e=i);var a,o,r,s=String.fromCharCode;function c(e){for(var t,n,i=[],a=0,o=e.length;a<o;)(t=e.charCodeAt(a++))>=55296&&t<=56319&&a<o?56320==(64512&(n=e.charCodeAt(a++)))?i.push(((1023&t)<<10)+(1023&n)+65536):(i.push(t),a--):i.push(t);return i}function u(e,t){return s(e>>t&63|128)}function p(e){if(!(4294967168&e))return s(e);var t="";return 4294965248&e?4294901760&e?4292870144&e||(t=s(e>>18&7|240),t+=u(e,12),t+=u(e,6)):(t=s(e>>12&15|224),t+=u(e,6)):t=s(e>>6&31|192),t+=s(63&e|128)}function l(){if(r>=o)throw Error("Invalid byte index");var e=255&a[r];if(r++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function d(){var e,t;if(r>o)throw Error("Invalid byte index");if(r==o)return!1;if(e=255&a[r],r++,!(128&e))return e;if(192==(224&e)){if((t=(31&e)<<6|l())>=128)return t;throw Error("Invalid continuation byte")}if(224==(240&e)){if((t=(15&e)<<12|l()<<6|l())>=2048)return t;throw Error("Invalid continuation byte")}if(240==(248&e)&&(t=(15&e)<<18|l()<<12|l()<<6|l())>=65536&&t<=1114111)return t;throw Error("Invalid WTF-8 detected")}var m={version:"1.0.1",encode:function(e){for(var t=c(e),n=t.length,i=-1,a="";++i<n;)a+=p(t[i]);return a},decode:function(e){a=c(e),o=a.length,r=0;for(var t,n=[];!1!==(t=d());)n.push(t);return function(e){for(var t,n=e.length,i=-1,a="";++i<n;)(t=e[i])>65535&&(a+=s((t-=65536)>>>10&1023|55296),t=56320|1023&t),a+=s(t);return a}(n)}};if(t&&!t.nodeType)if(n)n.exports=m;else{var f={}.hasOwnProperty;for(var h in m)f.call(m,h)&&(t[h]=m[h])}else e.wtf8=m}(T);var Ep=_p.exports;const Cp=async(e,t,{status:n,duration:a,errors:o,error:r,retry:s,attachments:c})=>{var u;const l=new Date,{currentShard:d,rootDir:m,ciBuildId:f}=e,{title:h,repeatEachIndex:v}=t,{historyId:x}=Tu(t,m),b=t.outcome(),g=Xt(s,v),y={shard:d,isExpected:"expected"===b,repeatEachIndex:v,status:gp(b,n)};try{e.pendingTestEnds.add(Xt(x,g));const t={outcome:y,status:n,duration:a,log:Ep.encode(o.map((e=>{var t;return(null!==(t=e.message)&&void 0!==t?t:"").replace(/[\uD800-\uDFFF]/g,"?")})).join("\n")),screenshots:[],videos:[],traces:[],lighthouses:[],completedAt:l.toString(),errorSnippet:r&&Ru(r)};if(e.shouldNotReportTest)return;await Jt((()=>e.startedAttempts.has(Xt(x,g)))),U.underline(h);const s=c.map((({name:e,path:t,body:n,contentType:a})=>{if(Ou.includes(e))try{const o=t?i(t):n,r=((e,t,n)=>(null!=e?e:`${t}.${n.split("/")[1]}`).replaceAll("/","-"))(t,e,a),{file:s,...c}=((e,t,n)=>{const i=e.byteLength;return{file:e,filename:n,checksum:p.createHash("md5").update(e).digest("base64"),byteSize:i,contentType:t}})(o,a,r);return{file:s,metadata:c,name:e}}catch(n){const i=n instanceof Error?n.message:String(n);return void U.yellowText(`Skipping missing file: ${t||e} - ${i}`)}})).filter($t(void 0)),u={metadata:ye("metadata",s)},{data:d}=await(({ciBuildId:e,historyId:t},n)=>Lc.post(`/api/v2/reporter/runs/${e}/test_entities/${t}/direct_uploads`,{blob:n}))({ciBuildId:e.ciBuildId,historyId:x},u),m=await Promise.all(d.map((async({signedId:e,directUpload:n},i)=>{var a,o;return t[`${null===(a=s[i])||void 0===a?void 0:a.name}s`].push(e),yp(s[i].file,n,`${h} - ${null===(o=s[i])||void 0===o?void 0:o.name}`)})));e.progressBars.push(...m);const v=Su({ciBuildId:f,historyId:x,id:e.attempts[x][g],payload:t});e.testResultCalls.push(v),await v}catch(r){await en({context:{historyId:x,attemptIndex:g,title:h,status:n,outcome:y,duration:a,completedAt:l},error:r,title:"onTestEnd"}),U.error(r.message),U.error(R.failedToReportTest(h,x)),await(null===(u=e.heartbeatManager)||void 0===u?void 0:u.sendImmediateHeartbeat())}finally{U.log(uu.reportedTest({title:h,status:n,historyId:x,completedAt:l,error:r&&Ru(r),isTestReported:!e.shouldNotReportTest,retry:s,repeatEachIndex:v})),e.pendingTestEnds.delete(Xt(x,g)),e.startedAttempts.delete(Xt(x,g))}},Fp=D.extend({generateLighthouseMetaData:async({},e,t)=>{let n=0;const{title:i,outputDir:a}=t;await e((()=>{const e=i.replace(/[:]/g,"_");return{formats:{html:!0},name:n?e:`${e}-${n++}`,directory:a,get pathToLightHouseHTMLReport(){return`${a}/${this.name}.html`}}}))},attachLighthouseReport:async({},e,t)=>{await e((async e=>{e.endsWith(".html")?await t.attach("lighthouse",{path:e,contentType:"text/html"}):U.redText(L.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 kp="axios-retry";function jp(e){return!e.response&&(!!e.code&&(!["ERR_CANCELED","ECONNABORTED"].includes(e.code)&&(e=>!Tp.has(e&&e.code))(e)))}const Ap=["get","head","options"],Sp=Ap.concat(["put","delete"]);function Op(e){return"ECONNABORTED"!==e.code&&(!e.response||429===e.response.status||e.response.status>=500&&e.response.status<=599)}function Rp(e){return!!e.config?.method&&(Op(e)&&-1!==Sp.indexOf(e.config.method))}function Bp(e){return jp(e)||Rp(e)}function Pp(e=void 0){const t=e?.response?.headers["retry-after"];if(!t)return 0;let n=1e3*(Number(t)||0);return 0===n&&(n=(new Date(t).valueOf()||0)-Date.now()),Math.max(0,n)}const Np={retries:3,retryCondition:Bp,retryDelay:function(e=0,t=void 0){return Math.max(0,Pp(t))},shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function Lp(e,t,n=!1){const i=function(e,t){return{...Np,...t,...e[kp]}}(e,t||{});return i.retryCount=i.retryCount||0,i.lastRequestTime&&!n||(i.lastRequestTime=Date.now()),e[kp]=i,i}const Ip=(e,t)=>{const n=e.interceptors.request.use((e=>(Lp(e,t,!0),e[kp]?.validateResponse&&(e.validateStatus=()=>!1),e))),i=e.interceptors.response.use(null,(async n=>{const{config:i}=n;if(!i)return Promise.reject(n);const a=Lp(i,t);return n.response&&a.validateResponse?.(n.response)?n.response:await async function(e,t){const{retries:n,retryCondition:i}=e,a=(e.retryCount||0)<n&&i(t);if("object"==typeof a)try{return!1!==await a}catch(e){return!1}return a}(a,n)?async function(e,t,n,i){t.retryCount+=1;const{retryDelay:a,shouldResetTimeout:o,onRetry:r}=t,s=a(t.retryCount,n);if(function(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent}(e,i),!o&&i.timeout&&t.lastRequestTime){const e=Date.now()-t.lastRequestTime,a=i.timeout-e-s;if(a<=0)return Promise.reject(n);i.timeout=a}return i.transformRequest=[e=>e],await r(t.retryCount,n,i),i.signal?.aborted?Promise.resolve(e(i)):new Promise((t=>{const n=()=>{clearTimeout(a),t(e(i))},a=setTimeout((()=>{t(e(i)),i.signal?.removeEventListener&&i.signal.removeEventListener("abort",n)}),s);i.signal?.addEventListener&&i.signal.addEventListener("abort",n,{once:!0})}))}(e,a,n,i):(await async function(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}(a,n),Promise.reject(n))}));return{requestInterceptorId:n,responseInterceptorId:i}};Ip.isNetworkError=jp,Ip.isSafeRequestError=function(e){return!!e.config?.method&&(Op(e)&&-1!==Ap.indexOf(e.config.method))},Ip.isIdempotentRequestError=Rp,Ip.isNetworkOrIdempotentRequestError=Bp,Ip.exponentialDelay=function(e=0,t=void 0,n=100){const i=2**e*n,a=Math.max(i,Pp(t));return a+.2*a*Math.random()},Ip.linearDelay=function(e=100){return(t=0,n=void 0)=>{const i=t*e;return Math.max(i,Pp(n))}},Ip.isRetryableError=Op;const Up="Content-Type",zp="Accept",qp="X-Api-Key",Mp="Project-Key",Hp="Reporter-Version",$p=e=>e===Object(e)&&!(e instanceof Buffer);function Gp({projectKey:e,baseURL:t,apiKey:n}){const i=new u.Agent({keepAlive:!0,maxSockets:15,keepAliveMsecs:6e4});Lc.defaults.baseURL=null!=t?t:"https://connect.neetoplaydash.com",Lc.defaults.skipSnakeCaseConversion=!1,Lc.defaults.headers.common.Connection="keep-alive",Lc.defaults.httpsAgent=i,(({projectKey:e,apiKey:t})=>{Lc.defaults.headers={...Lc.defaults.headers,[Mp]:e,[Hp]:tn(),[qp]:null!=t?t:"",[zp]:"application/json",[Up]:"application/json"}})({projectKey:e,apiKey:n}),Lc.interceptors.request.use((e=>{const t=e.data;return $p(t)&&!e.skipSnakeCaseConversion&&(e.data=Wt(t,(function(e,t){return[Gt(e),t]}))),e})),Lc.interceptors.response.use((e=>{const t=e.data;return $p(t)&&(e.data=Wt(t,(function(e,t){return[(n=e,n.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))),t];var n}))),e})),Ip(Lc,{retryDelay:Ip.exponentialDelay,retryCondition:e=>{var t;const n=null===(t=e.status)||void 0===t?void 0:t.toString();return!!Ip.isNetworkOrIdempotentRequestError(e)||(!!("ETIMEDOUT"===e.code||"ECONNRESET"===e.code||"ECONNABORTED"===e.code||e.message&&e.message.includes("timeout"))||!!n&&(n.startsWith("5")||"404"===n||"408"===n))},retries:3})}const Wp=(e,t)=>{w.setDefaultResultOrder("ipv4first"),Gp(t),process.on("unhandledRejection",(async t=>{var n,i,a;try{const o=null===(n=t.response)||void 0===n?void 0:n.data;await en({context:{},error:t,title:"unhandledRejection"}),await(async e=>{try{await iu(e)}catch(e){U.error(e.message),U.error(JSON.stringify(e,null,4)),U.redText(P.stopped),process.exit(1)}})(e.ciBuildId),U.error(null!==(a=null!==(i=null==o?void 0:o.error)&&void 0!==i?i:t.message)&&void 0!==a?a:JSON.stringify(t))}catch(t){U.error("Honeybadger failed :(")}}))};class Kp{constructor(e){var t;this.reportLifecycleError=async(e,t,n={})=>{var i,a,o;let r=null;t instanceof Uc&&(r=null!==(o=null===(a=null===(i=null==t?void 0:t.response)||void 0===i?void 0:i.data)||void 0===a?void 0:a.error)&&void 0!==o?o:null==t?void 0:t.message),U.error(`${e} failed: ${null!=r?r:String(t)}`),await en({context:{lifecycle:e,ciBuildId:this.ciBuildId,...n},error:t,title:`${e} - Fire and Forget Handler`})},this.onBegin=(e,t)=>{ju(this,e,t).catch((t=>this.reportLifecycleError("onBegin",t,{configDetails:JSON.stringify(e,null,2)})))},this.onTestBegin=(e,t)=>{(async(e,t,{retry:n})=>{var i,a,o;const{title:r,repeatEachIndex:s}=t,{rootDir:c,currentShard:u,ciBuildId:p}=e,{historyId:l}=Tu(t,c),d=(new Date).toString(),m=Xt(n,s);if(e.shouldNotReportTest)U.invertBackground(cu.startingTest({titlePath:r,historyId:l,retry:n,repeatEachIndex:s}));else try{if(e.pendingTestBegins.add(Xt(l,m)),await Jt((()=>{var t,n;return Ht(e.attempts)&&Me(null===(n=null===(t=e.attempts)||void 0===t?void 0:t[l])||void 0===n?void 0:n["0-0"])})),U.invertBackground(cu.startingTest({titlePath:r,historyId:l,retry:n,repeatEachIndex:s})),e.shouldNotReportTest)return;const t={status:"running",startedAt:d,shard:u,repeatEachIndex:s};if(0===n&&0===s)await Su({ciBuildId:p,historyId:l,id:null===(a=null===(i=e.attempts)||void 0===i?void 0:i[l])||void 0===a?void 0:a["0-0"],payload:t});else{const{data:{attemptId:n}}=await Au(p,l,t);e.attempts=Ge(e.attempts,{[l]:{[m]:n}})}}catch(t){await en({context:{historyId:l,attemptIndex:m,title:r},error:t,title:"onTestBegin"}),U.error(t.message),U.error(R.failedToReportTest(r,l)),await(null===(o=e.heartbeatManager)||void 0===o?void 0:o.sendImmediateHeartbeat())}finally{e.pendingTestBegins.delete(Xt(l,m)),e.startedAttempts.add(Xt(l,m))}})(this,e,t).catch((t=>this.reportLifecycleError("onTestBegin",t,{testTitle:e.title,testLocation:e.location})))},this.onTestEnd=(e,t)=>{Cp(this,e,t).catch((n=>this.reportLifecycleError("onTestEnd",n,{testTitle:e.title,testLocation:e.location,testStatus:t.status,testDuration:t.duration})))},this.onEnd=async e=>(async(e,{status:t,duration:n})=>{var i,a,o;const{currentShard:r}=e;try{if(await Jt((()=>(e.hasRunStarted||e.shouldNotReportTest)&&0===e.pendingTestBegins.size&&0===e.pendingTestEnds.size&&0===e.startedAttempts.size)),U.bold(pu.finalStatus({currentShard:r,status:t,duration:n})),e.shouldNotReportTest)return;if(0===e.totalTestCount)return void await nu(e.ciBuildId,{shards:Kt({currentShard:r,status:"passed",duration:n})});await Promise.allSettled(e.testResultCalls),await nu(e.ciBuildId,{shards:Kt({currentShard:r,status:t,duration:n})})}catch(e){const o=null===(i=e.response)||void 0===i?void 0:i.data;await en({context:{runStatus:t,runDuration:n},error:e,title:"onEnd"}),U.error(null!==(a=o.error)&&void 0!==a?a:e.message),U.error(B.failedToReportRunStatus)}finally{e.shouldNotReportTest||0===e.totalTestCount||U.invertBackground(pu.runReported),null===(o=e.heartbeatManager)||void 0===o||o.stop()}})(this,e),this.attempts={},this.tags=e.tags,this.ciBuildId=e.ciBuildId,this.title=e.title,this.testResultCalls=[],this.totalTestCount=0,this.hasRunStarted=!1,this.heartbeatManager=null,this.rootDir="",this.currentShard=0,this.progressBars=[],this.startedAttempts=new Set,this.shouldNotReportTest=!1,this.pendingTestBegins=new Set,this.pendingTestEnds=new Set,this.apiKey=e.apiKey,S.configure({apiKey:Zt("9d5d98e72929dae3c8b3701f50032da1a02b80f9dc29a8e448a601871e5c82fd0ac2fa33c46443709cdb3eabc54a06ab"),environment:(null===(t=null==e?void 0:e.baseURL)||void 0===t?void 0:t.includes(".net"))?"staging":"production"}),S.setContext({...e,reporterVersion:tn()}),Wp(this,e)}onStdOut(e,t){t&&U.bold(`Log from test "${t.title}"`),U.log(e.toString())}}export{Kp as default,Fp as test};
10
10
  //# sourceMappingURL=index.js.map