@bigbinary/neeto-playwright-reporter 1.5.11 → 1.5.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +2 -2
- package/index.cjs.js.map +1 -1
- package/index.js +2 -2
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
6
6
|
* MIT Licensed
|
|
7
7
|
*/
|
|
8
|
-
function(e){var n,t,i,o=Ot.exports,s=a.extname,r=/^\s*([^;\s]*)(?:;|\s|$)/,c=/^text\//i;function u(e){if(!e||"string"!=typeof e)return!1;var n=r.exec(e),t=n&&o[n[1].toLowerCase()];return t&&t.charset?t.charset:!(!n||!c.test(n[1]))&&"UTF-8"}e.charset=u,e.charsets={lookup:u},e.contentType=function(n){if(!n||"string"!=typeof n)return!1;var t=-1===n.indexOf("/")?e.lookup(n):n;if(!t)return!1;if(-1===t.indexOf("charset")){var a=e.charset(t);a&&(t+="; charset="+a.toLowerCase())}return t},e.extension=function(n){if(!n||"string"!=typeof n)return!1;var t=r.exec(n),a=t&&e.extensions[t[1].toLowerCase()];if(!a||!a.length)return!1;return a[0]},e.extensions=Object.create(null),e.lookup=function(n){if(!n||"string"!=typeof n)return!1;var t=s("x."+n).toLowerCase().substr(1);if(!t)return!1;return e.types[t]||!1},e.types=Object.create(null),n=e.extensions,t=e.types,i=["nginx","apache",void 0,"iana"],Object.keys(o).forEach((function(e){var a=o[e],s=a.extensions;if(s&&s.length){n[e]=s;for(var r=0;r<s.length;r++){var c=s[r];if(t[c]){var u=i.indexOf(o[t[c]].source),p=i.indexOf(a.source);if("application/octet-stream"!==t[c]&&(u>p||u===p&&"application/"===t[c].substr(0,12)))continue}t[c]=e}}}))}(Tt);var St=function(e){var n="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;n?n(e):setTimeout(e,0)},At=function(e){var n=!1;return St((function(){n=!0})),function(t,a){n?e(t,a):St((function(){e(t,a)}))}};var Rt=function(e){Object.keys(e.jobs).forEach(Bt.bind(e)),e.jobs={}};function Bt(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}var Lt=At,Pt=Rt,Nt=function(e,n,t,a){var i=t.keyedList?t.keyedList[t.index]:t.index;t.jobs[i]=function(e,n,t,a){var i;i=2==e.length?e(t,Lt(a)):e(t,n,Lt(a));return i}(n,i,e[i],(function(e,n){i in t.jobs&&(delete t.jobs[i],e?Pt(t):t.results[i]=n,a(e,t.results))}))};var zt=function(e,n){var t=!Array.isArray(e),a={index:0,keyedList:t||n?Object.keys(e):null,jobs:{},results:t?{}:[],size:t?Object.keys(e).length:e.length};n&&a.keyedList.sort(t?n:function(t,a){return n(e[t],e[a])});return a};var It=Rt,Ut=At,qt=function(e){if(!Object.keys(this.jobs).length)return;this.index=this.size,It(this),Ut(e)(null,this.results)};var Mt=Nt,Ht=zt,$t=qt,Gt=function(e,n,t){var a=Ht(e);for(;a.index<(a.keyedList||e).length;)Mt(e,n,a,(function(e,n){e?t(e,n):0!==Object.keys(a.jobs).length||t(null,a.results)})),a.index++;return $t.bind(a,t)};var Wt={exports:{}},Kt=Nt,Vt=zt,Yt=qt;function Jt(e,n){return e<n?-1:e>n?1:0}Wt.exports=function(e,n,t,a){var i=Vt(e,t);return Kt(e,n,i,(function t(o,s){o?a(o,s):(i.index++,i.index<(i.keyedList||e).length?Kt(e,n,i,t):a(null,i.results))})),Yt.bind(i,a)},Wt.exports.ascending=Jt,Wt.exports.descending=function(e,n){return-1*Jt(e,n)};var Xt=Wt.exports;var Zt={parallel:Gt,serial:function(e,n,t){return Xt(e,n,null,t)},serialOrdered:Wt.exports},Qt=kt,ea=i,na=a,ta=s,aa=r,ia=o.parse,oa=t,sa=u.Stream,ra=Tt,ca=Zt,ua=function(e,n){return Object.keys(n).forEach((function(t){e[t]=e[t]||n[t]})),e},pa=la;function la(e){if(!(this instanceof la))return new la(e);for(var n in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Qt.call(this),e=e||{})this[n]=e[n]}function da(e){return xt.isPlainObject(e)||xt.isArray(e)}function ma(e){return xt.endsWith(e,"[]")?e.slice(0,-2):e}function fa(e,n,t){return e?e.concat(n).map((function(e,n){return e=ma(e),!t&&n?"["+e+"]":e})).join(t?".":""):n}ea.inherits(la,Qt),la.LINE_BREAK="\r\n",la.DEFAULT_CONTENT_TYPE="application/octet-stream",la.prototype.append=function(e,n,t){"string"==typeof(t=t||{})&&(t={filename:t});var a=Qt.prototype.append.bind(this);if("number"==typeof n&&(n=""+n),ea.isArray(n))this._error(new Error("Arrays are not supported."));else{var i=this._multiPartHeader(e,n,t),o=this._multiPartFooter();a(i),a(n),a(o),this._trackLength(i,n,t)}},la.prototype._trackLength=function(e,n,t){var a=0;null!=t.knownLength?a+=+t.knownLength:Buffer.isBuffer(n)?a=n.length:"string"==typeof n&&(a=Buffer.byteLength(n)),this._valueLength+=a,this._overheadLength+=Buffer.byteLength(e)+la.LINE_BREAK.length,n&&(n.path||n.readable&&n.hasOwnProperty("httpVersion")||n instanceof sa)&&(t.knownLength||this._valuesToMeasure.push(n))},la.prototype._lengthRetriever=function(e,n){e.hasOwnProperty("fd")?null!=e.end&&e.end!=1/0&&null!=e.start?n(null,e.end+1-(e.start?e.start:0)):oa.stat(e.path,(function(t,a){var i;t?n(t):(i=a.size-(e.start?e.start:0),n(null,i))})):e.hasOwnProperty("httpVersion")?n(null,+e.headers["content-length"]):e.hasOwnProperty("httpModule")?(e.on("response",(function(t){e.pause(),n(null,+t.headers["content-length"])})),e.resume()):n("Unknown stream")},la.prototype._multiPartHeader=function(e,n,t){if("string"==typeof t.header)return t.header;var a,i=this._getContentDisposition(n,t),o=this._getContentType(n,t),s="",r={"Content-Disposition":["form-data",'name="'+e+'"'].concat(i||[]),"Content-Type":[].concat(o||[])};for(var c in"object"==typeof t.header&&ua(r,t.header),r)r.hasOwnProperty(c)&&null!=(a=r[c])&&(Array.isArray(a)||(a=[a]),a.length&&(s+=c+": "+a.join("; ")+la.LINE_BREAK));return"--"+this.getBoundary()+la.LINE_BREAK+s+la.LINE_BREAK},la.prototype._getContentDisposition=function(e,n){var t,a;return"string"==typeof n.filepath?t=na.normalize(n.filepath).replace(/\\/g,"/"):n.filename||e.name||e.path?t=na.basename(n.filename||e.name||e.path):e.readable&&e.hasOwnProperty("httpVersion")&&(t=na.basename(e.client._httpMessage.path||"")),t&&(a='filename="'+t+'"'),a},la.prototype._getContentType=function(e,n){var t=n.contentType;return!t&&e.name&&(t=ra.lookup(e.name)),!t&&e.path&&(t=ra.lookup(e.path)),!t&&e.readable&&e.hasOwnProperty("httpVersion")&&(t=e.headers["content-type"]),t||!n.filepath&&!n.filename||(t=ra.lookup(n.filepath||n.filename)),t||"object"!=typeof e||(t=la.DEFAULT_CONTENT_TYPE),t},la.prototype._multiPartFooter=function(){return function(e){var n=la.LINE_BREAK;0===this._streams.length&&(n+=this._lastBoundary()),e(n)}.bind(this)},la.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+la.LINE_BREAK},la.prototype.getHeaders=function(e){var n,t={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(n in e)e.hasOwnProperty(n)&&(t[n.toLowerCase()]=e[n]);return t},la.prototype.setBoundary=function(e){this._boundary=e},la.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},la.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),n=this.getBoundary(),t=0,a=this._streams.length;t<a;t++)"function"!=typeof this._streams[t]&&(e=Buffer.isBuffer(this._streams[t])?Buffer.concat([e,this._streams[t]]):Buffer.concat([e,Buffer.from(this._streams[t])]),"string"==typeof this._streams[t]&&this._streams[t].substring(2,n.length+2)===n||(e=Buffer.concat([e,Buffer.from(la.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},la.prototype._generateBoundary=function(){for(var e="--------------------------",n=0;n<24;n++)e+=Math.floor(10*Math.random()).toString(16);this._boundary=e},la.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},la.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},la.prototype.getLength=function(e){var n=this._overheadLength+this._valueLength;this._streams.length&&(n+=this._lastBoundary().length),this._valuesToMeasure.length?ca.parallel(this._valuesToMeasure,this._lengthRetriever,(function(t,a){t?e(t):(a.forEach((function(e){n+=e})),e(null,n))})):process.nextTick(e.bind(this,null,n))},la.prototype.submit=function(e,n){var t,a,i={method:"post"};return"string"==typeof e?(e=ia(e),a=ua({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},i)):(a=ua(e,i)).port||(a.port="https:"==a.protocol?443:80),a.headers=this.getHeaders(e.headers),t="https:"==a.protocol?aa.request(a):ta.request(a),this.getLength(function(e,a){if(e&&"Unknown stream"!==e)this._error(e);else if(a&&t.setHeader("Content-Length",a),this.pipe(t),n){var i,o=function(e,a){return t.removeListener("error",o),t.removeListener("response",i),n.call(this,e,a)};i=o.bind(this,null),t.on("error",o),t.on("response",i)}}.bind(this)),t},la.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},la.prototype.toString=function(){return"[object FormData]"};const ha=xt.toFlatObject(xt,{},null,(function(e){return/^is[A-Z]/.test(e)}));function va(e,n,t){if(!xt.isObject(e))throw new TypeError("target must be an object");n=n||new(pa||FormData);const a=(t=xt.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,n){return!xt.isUndefined(n[e])}))).metaTokens,i=t.visitor||u,o=t.dots,s=t.indexes,r=(t.Blob||"undefined"!=typeof Blob&&Blob)&&xt.isSpecCompliantForm(n);if(!xt.isFunction(i))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(xt.isDate(e))return e.toISOString();if(!r&&xt.isBlob(e))throw new bt("Blob is not supported. Use a Buffer instead.");return xt.isArrayBuffer(e)||xt.isTypedArray(e)?r&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,t,i){let r=e;if(e&&!i&&"object"==typeof e)if(xt.endsWith(t,"{}"))t=a?t:t.slice(0,-2),e=JSON.stringify(e);else if(xt.isArray(e)&&function(e){return xt.isArray(e)&&!e.some(da)}(e)||(xt.isFileList(e)||xt.endsWith(t,"[]"))&&(r=xt.toArray(e)))return t=ma(t),r.forEach((function(e,a){!xt.isUndefined(e)&&null!==e&&n.append(!0===s?fa([t],a,o):null===s?t:t+"[]",c(e))})),!1;return!!da(e)||(n.append(fa(i,t,o),c(e)),!1)}const p=[],l=Object.assign(ha,{defaultVisitor:u,convertValue:c,isVisitable:da});if(!xt.isObject(e))throw new TypeError("data must be an object");return function e(t,a){if(!xt.isUndefined(t)){if(-1!==p.indexOf(t))throw Error("Circular reference detected in "+a.join("."));p.push(t),xt.forEach(t,(function(t,o){!0===(!(xt.isUndefined(t)||null===t)&&i.call(n,t,xt.isString(o)?o.trim():o,a,l))&&e(t,a?a.concat(o):[o])})),p.pop()}}(e),n}function xa(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return n[e]}))}function ba(e,n){this._pairs=[],e&&va(e,this,n)}const ga=ba.prototype;function Da(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ya(e,n,t){if(!n)return e;const a=t&&t.encode||Da,i=t&&t.serialize;let o;if(o=i?i(n,t):xt.isURLSearchParams(n)?n.toString():new ba(n,t).toString(a),o){const n=e.indexOf("#");-1!==n&&(e=e.slice(0,n)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}ga.append=function(e,n){this._pairs.push([e,n])},ga.toString=function(e){const n=e?function(n){return e.call(this,n,xa)}:xa;return this._pairs.map((function(e){return n(e[0])+"="+n(e[1])}),"").join("&")};class wa{constructor(){this.handlers=[]}use(e,n,t){return this.handlers.push({fulfilled:e,rejected:n,synchronous:!!t&&t.synchronous,runWhen:t?t.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){xt.forEach(this.handlers,(function(n){null!==n&&e(n)}))}}var _a={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ca={isNode:!0,classes:{URLSearchParams:o.URLSearchParams,FormData:pa,Blob:"undefined"!=typeof Blob&&Blob||null},protocols:["http","https","file","data"]};const Ea="undefined"!=typeof window&&"undefined"!=typeof document,Fa="object"==typeof navigator&&navigator||void 0,ka=Ea&&(!Fa||["ReactNative","NativeScript","NS"].indexOf(Fa.product)<0),ja="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ta=Ea&&window.location.href||"http://localhost";var Oa={...Object.freeze({__proto__:null,hasBrowserEnv:Ea,hasStandardBrowserEnv:ka,hasStandardBrowserWebWorkerEnv:ja,navigator:Fa,origin:Ta}),...Ca};function Sa(e){function n(e,t,a,i){let o=e[i++];if("__proto__"===o)return!0;const s=Number.isFinite(+o),r=i>=e.length;if(o=!o&&xt.isArray(a)?a.length:o,r)return xt.hasOwnProp(a,o)?a[o]=[a[o],t]:a[o]=t,!s;a[o]&&xt.isObject(a[o])||(a[o]=[]);return n(e,t,a[o],i)&&xt.isArray(a[o])&&(a[o]=function(e){const n={},t=Object.keys(e);let a;const i=t.length;let o;for(a=0;a<i;a++)o=t[a],n[o]=e[o];return n}(a[o])),!s}if(xt.isFormData(e)&&xt.isFunction(e.entries)){const t={};return xt.forEachEntry(e,((e,a)=>{n(function(e){return xt.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),a,t,0)})),t}return null}const Aa={transitional:_a,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const t=n.getContentType()||"",a=t.indexOf("application/json")>-1,i=xt.isObject(e);i&&xt.isHTMLForm(e)&&(e=new FormData(e));if(xt.isFormData(e))return a?JSON.stringify(Sa(e)):e;if(xt.isArrayBuffer(e)||xt.isBuffer(e)||xt.isStream(e)||xt.isFile(e)||xt.isBlob(e)||xt.isReadableStream(e))return e;if(xt.isArrayBufferView(e))return e.buffer;if(xt.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(t.indexOf("application/x-www-form-urlencoded")>-1)return function(e,n){return va(e,new Oa.classes.URLSearchParams,Object.assign({visitor:function(e,n,t,a){return Oa.isNode&&xt.isBuffer(e)?(this.append(n,e.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},n))}(e,this.formSerializer).toString();if((o=xt.isFileList(e))||t.indexOf("multipart/form-data")>-1){const n=this.env&&this.env.FormData;return va(o?{"files[]":e}:e,n&&new n,this.formSerializer)}}return i||a?(n.setContentType("application/json",!1),function(e,n,t){if(xt.isString(e))try{return(n||JSON.parse)(e),xt.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(t||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const n=this.transitional||Aa.transitional,t=n&&n.forcedJSONParsing,a="json"===this.responseType;if(xt.isResponse(e)||xt.isReadableStream(e))return e;if(e&&xt.isString(e)&&(t&&!this.responseType||a)){const t=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(e){if(t){if("SyntaxError"===e.name)throw bt.from(e,bt.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:Oa.classes.FormData,Blob:Oa.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};xt.forEach(["delete","get","head","post","put","patch"],(e=>{Aa.headers[e]={}}));const Ra=xt.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 Ba=Symbol("internals");function La(e){return e&&String(e).trim().toLowerCase()}function Pa(e){return!1===e||null==e?e:xt.isArray(e)?e.map(Pa):String(e)}function Na(e,n,t,a,i){return xt.isFunction(a)?a.call(this,n,t):(i&&(n=t),xt.isString(n)?xt.isString(a)?-1!==n.indexOf(a):xt.isRegExp(a)?a.test(n):void 0:void 0)}class za{constructor(e){e&&this.set(e)}set(e,n,t){const a=this;function i(e,n,t){const i=La(n);if(!i)throw new Error("header name must be a non-empty string");const o=xt.findKey(a,i);(!o||void 0===a[o]||!0===t||void 0===t&&!1!==a[o])&&(a[o||n]=Pa(e))}const o=(e,n)=>xt.forEach(e,((e,t)=>i(e,t,n)));if(xt.isPlainObject(e)||e instanceof this.constructor)o(e,n);else if(xt.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const n={};let t,a,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),t=e.substring(0,i).trim().toLowerCase(),a=e.substring(i+1).trim(),!t||n[t]&&Ra[t]||("set-cookie"===t?n[t]?n[t].push(a):n[t]=[a]:n[t]=n[t]?n[t]+", "+a:a)})),n})(e),n);else if(xt.isHeaders(e))for(const[n,a]of e.entries())i(a,n,t);else null!=e&&i(n,e,t);return this}get(e,n){if(e=La(e)){const t=xt.findKey(this,e);if(t){const e=this[t];if(!n)return e;if(!0===n)return function(e){const n=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=t.exec(e);)n[a[1]]=a[2];return n}(e);if(xt.isFunction(n))return n.call(this,e,t);if(xt.isRegExp(n))return n.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=La(e)){const t=xt.findKey(this,e);return!(!t||void 0===this[t]||n&&!Na(0,this[t],t,n))}return!1}delete(e,n){const t=this;let a=!1;function i(e){if(e=La(e)){const i=xt.findKey(t,e);!i||n&&!Na(0,t[i],i,n)||(delete t[i],a=!0)}}return xt.isArray(e)?e.forEach(i):i(e),a}clear(e){const n=Object.keys(this);let t=n.length,a=!1;for(;t--;){const i=n[t];e&&!Na(0,this[i],i,e,!0)||(delete this[i],a=!0)}return a}normalize(e){const n=this,t={};return xt.forEach(this,((a,i)=>{const o=xt.findKey(t,i);if(o)return n[o]=Pa(a),void delete n[i];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,n,t)=>n.toUpperCase()+t))}(i):String(i).trim();s!==i&&delete n[i],n[s]=Pa(a),t[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return xt.forEach(this,((t,a)=>{null!=t&&!1!==t&&(n[a]=e&&xt.isArray(t)?t.join(", "):t)})),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,n])=>e+": "+n)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const t=new this(e);return n.forEach((e=>t.set(e))),t}static accessor(e){const n=(this[Ba]=this[Ba]={accessors:{}}).accessors,t=this.prototype;function a(e){const a=La(e);n[a]||(!function(e,n){const t=xt.toCamelCase(" "+n);["get","set","has"].forEach((a=>{Object.defineProperty(e,a+t,{value:function(e,t,i){return this[a].call(this,n,e,t,i)},configurable:!0})}))}(t,e),n[a]=!0)}return xt.isArray(e)?e.forEach(a):a(e),this}}function Ia(e,n){const t=this||Aa,a=n||t,i=za.from(a.headers);let o=a.data;return xt.forEach(e,(function(e){o=e.call(t,o,i.normalize(),n?n.status:void 0)})),i.normalize(),o}function Ua(e){return!(!e||!e.__CANCEL__)}function qa(e,n,t){bt.call(this,null==e?"canceled":e,bt.ERR_CANCELED,n,t),this.name="CanceledError"}function Ma(e,n,t){const a=t.config.validateStatus;t.status&&a&&!a(t.status)?n(new bt("Request failed with status code "+t.status,[bt.ERR_BAD_REQUEST,bt.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t)):e(t)}function Ha(e,n){return e&&!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(n)?function(e,n){return n?e.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):e}(e,n):n}za.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),xt.reduceDescriptors(za.prototype,(({value:e},n)=>{let t=n[0].toUpperCase()+n.slice(1);return{get:()=>e,set(e){this[t]=e}}})),xt.freezeMethods(za),xt.inherits(qa,bt,{__CANCEL__:!0});var $a=o.parse,Ga={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},Wa=String.prototype.endsWith||function(e){return e.length<=this.length&&-1!==this.indexOf(e,this.length-e.length)};function Ka(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}var Va,Ya,Ja,Xa,Za,Qa=function(e){var n="string"==typeof e?$a(e):e||{},t=n.protocol,a=n.host,i=n.port;if("string"!=typeof a||!a||"string"!=typeof t)return"";if(t=t.split(":",1)[0],!function(e,n){var t=(Ka("npm_config_no_proxy")||Ka("no_proxy")).toLowerCase();if(!t)return!0;if("*"===t)return!1;return t.split(/[,\s]/).every((function(t){if(!t)return!0;var a=t.match(/^(.+):(\d+)$/),i=a?a[1]:t,o=a?parseInt(a[2]):0;return!(!o||o===n)||(/^[.*]/.test(i)?("*"===i.charAt(0)&&(i=i.slice(1)),!Wa.call(e,i)):e!==i)}))}(a=a.replace(/:\d*$/,""),i=parseInt(i)||Ga[t]||0))return"";var o=Ka("npm_config_"+t+"_proxy")||Ka(t+"_proxy")||Ka("npm_config_proxy")||Ka("all_proxy");return o&&-1===o.indexOf("://")&&(o=t+"://"+o),o},ei={exports:{}},ni={exports:{}},ti={exports:{}};function ai(){if(Ya)return Va;Ya=1;var e=1e3,n=60*e,t=60*n,a=24*t,i=7*a,o=365.25*a;function s(e,n,t,a){var i=n>=1.5*t;return Math.round(e/t)+" "+a+(i?"s":"")}return Va=function(r,c){c=c||{};var u=typeof r;if("string"===u&&r.length>0)return function(s){if((s=String(s)).length>100)return;var r=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(s);if(!r)return;var c=parseFloat(r[1]);switch((r[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*o;case"weeks":case"week":case"w":return c*i;case"days":case"day":case"d":return c*a;case"hours":case"hour":case"hrs":case"hr":case"h":return c*t;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(r);if("number"===u&&isFinite(r))return c.long?function(i){var o=Math.abs(i);if(o>=a)return s(i,o,a,"day");if(o>=t)return s(i,o,t,"hour");if(o>=n)return s(i,o,n,"minute");if(o>=e)return s(i,o,e,"second");return i+" ms"}(r):function(i){var o=Math.abs(i);if(o>=a)return Math.round(i/a)+"d";if(o>=t)return Math.round(i/t)+"h";if(o>=n)return Math.round(i/n)+"m";if(o>=e)return Math.round(i/e)+"s";return i+"ms"}(r);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(r))},Va}function ii(){if(Xa)return Ja;return Xa=1,Ja=function(e){function n(e){let a,i,o,s=null;function r(...e){if(!r.enabled)return;const t=r,i=Number(new Date),o=i-(a||i);t.diff=o,t.prev=a,t.curr=i,a=i,e[0]=n.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((a,i)=>{if("%%"===a)return"%";s++;const o=n.formatters[i];if("function"==typeof o){const n=e[s];a=o.call(t,n),e.splice(s,1),s--}return a})),n.formatArgs.call(t,e);(t.log||n.log).apply(t,e)}return r.namespace=e,r.useColors=n.useColors(),r.color=n.selectColor(e),r.extend=t,r.destroy=n.destroy,Object.defineProperty(r,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(i!==n.namespaces&&(i=n.namespaces,o=n.enabled(e)),o),set:e=>{s=e}}),"function"==typeof n.init&&n.init(r),r}function t(e,t){const a=n(this.namespace+(void 0===t?":":t)+e);return a.log=this.log,a}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return n.debug=n,n.default=n,n.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},n.disable=function(){const e=[...n.names.map(a),...n.skips.map(a).map((e=>"-"+e))].join(",");return n.enable(""),e},n.enable=function(e){let t;n.save(e),n.namespaces=e,n.names=[],n.skips=[];const a=("string"==typeof e?e:"").split(/[\s,]+/),i=a.length;for(t=0;t<i;t++)a[t]&&("-"===(e=a[t].replace(/\*/g,".*?"))[0]?n.skips.push(new RegExp("^"+e.slice(1)+"$")):n.names.push(new RegExp("^"+e+"$")))},n.enabled=function(e){if("*"===e[e.length-1])return!0;let t,a;for(t=0,a=n.skips.length;t<a;t++)if(n.skips[t].test(e))return!1;for(t=0,a=n.names.length;t<a;t++)if(n.names[t].test(e))return!0;return!1},n.humanize=ai(),n.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((t=>{n[t]=e[t]})),n.names=[],n.skips=[],n.formatters={},n.selectColor=function(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]},n.enable(n.load()),n},Ja}var oi,si,ri,ci,ui,pi,li,di={exports:{}};function mi(){return si?oi:(si=1,oi=(e,n=process.argv)=>{const t=e.startsWith("-")?"":1===e.length?"-":"--",a=n.indexOf(t+e),i=n.indexOf("--");return-1!==a&&(-1===i||a<i)})}function fi(){return ui||(ui=1,function(n,t){const a=l,o=i;t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let a=0;a<n.length;a++)e.inspectOpts[n[a]]=t.inspectOpts[n[a]]},t.log=function(...e){return process.stderr.write(o.formatWithOptions(t.inspectOpts,...e)+"\n")},t.formatArgs=function(e){const{namespace:a,useColors:i}=this;if(i){const t=this.color,i="[3"+(t<8?t:"8;5;"+t),o=` ${i};1m${a} [0m`;e[0]=o+e[0].split("\n").join("\n"+o),e.push(i+"m+"+n.exports.humanize(this.diff)+"[0m")}else e[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+a+" "+e[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):a.isatty(process.stderr.fd)},t.destroy=o.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const n=function(){if(ci)return ri;ci=1;const n=e,t=l,a=mi(),{env:i}=process;let o;function s(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function r(e,t){if(0===o)return 0;if(a("color=16m")||a("color=full")||a("color=truecolor"))return 3;if(a("color=256"))return 2;if(e&&!t&&void 0===o)return 0;const s=o||0;if("dumb"===i.TERM)return s;if("win32"===process.platform){const e=n.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in i))||"codeship"===i.CI_NAME?1:s;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if("truecolor"===i.COLORTERM)return 3;if("TERM_PROGRAM"in i){const e=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:s}return a("no-color")||a("no-colors")||a("color=false")||a("color=never")?o=0:(a("color")||a("colors")||a("color=true")||a("color=always"))&&(o=1),"FORCE_COLOR"in i&&(o="true"===i.FORCE_COLOR?1:"false"===i.FORCE_COLOR?0:0===i.FORCE_COLOR.length?1:Math.min(parseInt(i.FORCE_COLOR,10),3)),ri={supportsColor:function(e){return s(r(e,e&&e.isTTY))},stdout:s(r(!0,t.isatty(1))),stderr:s(r(!0,t.isatty(2)))},ri}();n&&(n.stderr||n).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,n)=>{const t=n.substring(6).toLowerCase().replace(/_([a-z])/g,((e,n)=>n.toUpperCase()));let a=process.env[n];return a=!!/^(yes|on|true|enabled)$/i.test(a)||!/^(no|off|false|disabled)$/i.test(a)&&("null"===a?null:Number(a)),e[t]=a,e}),{}),n.exports=ii()(t);const{formatters:s}=n.exports;s.o=function(e){return this.inspectOpts.colors=this.useColors,o.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},s.O=function(e){return this.inspectOpts.colors=this.useColors,o.inspect(e,this.inspectOpts)}}(di,di.exports)),di.exports}function hi(){return pi||(pi=1,function(e){"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=(Za||(Za=1,function(e,n){n.formatArgs=function(n){if(n[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+n[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const t="color: "+this.color;n.splice(1,0,t,"color: inherit");let a=0,i=0;n[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(a++,"%c"===e&&(i=a))})),n.splice(i,0,t)},n.save=function(e){try{e?n.storage.setItem("debug",e):n.storage.removeItem("debug")}catch(e){}},n.load=function(){let e;try{e=n.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},n.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},n.storage=function(){try{return localStorage}catch(e){}}(),n.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],n.log=console.debug||console.log||(()=>{}),e.exports=ii()(n);const{formatters:t}=e.exports;t.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(ti,ti.exports)),ti.exports):e.exports=fi()}(ni)),ni.exports}var vi,xi,bi,gi=o,Di=gi.URL,yi=s,wi=r,_i=u.Writable,Ci=p,Ei=function(){if(!li){try{li=hi()("follow-redirects")}catch(e){}"function"!=typeof li&&(li=function(){})}li.apply(null,arguments)};vi="undefined"!=typeof process,xi="undefined"!=typeof window&&"undefined"!=typeof document,bi=Wi(Error.captureStackTrace),vi||!xi&&bi||console.warn("The follow-redirects package should be excluded from browser builds.");var Fi=!1;try{Ci(new Di(""))}catch(e){Fi="ERR_INVALID_URL"===e.code}var ki=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],ji=["abort","aborted","connect","error","socket","timeout"],Ti=Object.create(null);ji.forEach((function(e){Ti[e]=function(n,t,a){this._redirectable.emit(e,n,t,a)}}));var Oi=Hi("ERR_INVALID_URL","Invalid URL",TypeError),Si=Hi("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Ai=Hi("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",Si),Ri=Hi("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Bi=Hi("ERR_STREAM_WRITE_AFTER_END","write after end"),Li=_i.prototype.destroy||zi;function Pi(e,n){_i.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],n&&this.on("response",n);var t=this;this._onNativeResponse=function(e){try{t._processResponse(e)}catch(e){t.emit("error",e instanceof Si?e:new Si({cause:e}))}},this._performRequest()}function Ni(e){var n={maxRedirects:21,maxBodyLength:10485760},t={};return Object.keys(e).forEach((function(a){var i=a+":",o=t[i]=e[a],s=n[a]=Object.create(o);Object.defineProperties(s,{request:{value:function(e,a,o){var s;return s=e,Di&&s instanceof Di?e=qi(e):Gi(e)?e=qi(Ii(e)):(o=a,a=Ui(e),e={protocol:i}),Wi(a)&&(o=a,a=null),(a=Object.assign({maxRedirects:n.maxRedirects,maxBodyLength:n.maxBodyLength},e,a)).nativeProtocols=t,Gi(a.host)||Gi(a.hostname)||(a.hostname="::1"),Ci.equal(a.protocol,i,"protocol mismatch"),Ei("options",a),new Pi(a,o)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,n,t){var a=s.request(e,n,t);return a.end(),a},configurable:!0,enumerable:!0,writable:!0}})})),n}function zi(){}function Ii(e){var n;if(Fi)n=new Di(e);else if(!Gi((n=Ui(gi.parse(e))).protocol))throw new Oi({input:e});return n}function Ui(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new Oi({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new Oi({input:e.href||e});return e}function qi(e,n){var t=n||{};for(var a of ki)t[a]=e[a];return t.hostname.startsWith("[")&&(t.hostname=t.hostname.slice(1,-1)),""!==t.port&&(t.port=Number(t.port)),t.path=t.search?t.pathname+t.search:t.pathname,t}function Mi(e,n){var t;for(var a in n)e.test(a)&&(t=n[a],delete n[a]);return null==t?void 0:String(t).trim()}function Hi(e,n,t){function a(t){Wi(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,t||{}),this.code=e,this.message=this.cause?n+": "+this.cause.message:n}return a.prototype=new(t||Error),Object.defineProperties(a.prototype,{constructor:{value:a,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),a}function $i(e,n){for(var t of ji)e.removeListener(t,Ti[t]);e.on("error",zi),e.destroy(n)}function Gi(e){return"string"==typeof e||e instanceof String}function Wi(e){return"function"==typeof e}Pi.prototype=Object.create(_i.prototype),Pi.prototype.abort=function(){$i(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},Pi.prototype.destroy=function(e){return $i(this._currentRequest,e),Li.call(this,e),this},Pi.prototype.write=function(e,n,t){if(this._ending)throw new Bi;if(!Gi(e)&&("object"!=typeof(a=e)||!("length"in a)))throw new TypeError("data should be a string, Buffer or Uint8Array");var a;Wi(n)&&(t=n,n=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:n}),this._currentRequest.write(e,n,t)):(this.emit("error",new Ri),this.abort()):t&&t()},Pi.prototype.end=function(e,n,t){if(Wi(e)?(t=e,e=n=null):Wi(n)&&(t=n,n=null),e){var a=this,i=this._currentRequest;this.write(e,n,(function(){a._ended=!0,i.end(null,null,t)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,t)},Pi.prototype.setHeader=function(e,n){this._options.headers[e]=n,this._currentRequest.setHeader(e,n)},Pi.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},Pi.prototype.setTimeout=function(e,n){var t=this;function a(n){n.setTimeout(e),n.removeListener("timeout",n.destroy),n.addListener("timeout",n.destroy)}function i(n){t._timeout&&clearTimeout(t._timeout),t._timeout=setTimeout((function(){t.emit("timeout"),o()}),e),a(n)}function o(){t._timeout&&(clearTimeout(t._timeout),t._timeout=null),t.removeListener("abort",o),t.removeListener("error",o),t.removeListener("response",o),t.removeListener("close",o),n&&t.removeListener("timeout",n),t.socket||t._currentRequest.removeListener("socket",i)}return n&&this.on("timeout",n),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",a),this.on("abort",o),this.on("error",o),this.on("response",o),this.on("close",o),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){Pi.prototype[e]=function(n,t){return this._currentRequest[e](n,t)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(Pi.prototype,e,{get:function(){return this._currentRequest[e]}})})),Pi.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var n=e.path.indexOf("?");n<0?e.pathname=e.path:(e.pathname=e.path.substring(0,n),e.search=e.path.substring(n))}},Pi.prototype._performRequest=function(){var e=this._options.protocol,n=this._options.nativeProtocols[e];if(!n)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var t=e.slice(0,-1);this._options.agent=this._options.agents[t]}var a=this._currentRequest=n.request(this._options,this._onNativeResponse);for(var i of(a._redirectable=this,ji))a.on(i,Ti[i]);if(this._currentUrl=/^\//.test(this._options.path)?gi.format(this._options):this._options.path,this._isRedirect){var o=0,s=this,r=this._requestBodyBuffers;!function e(n){if(a===s._currentRequest)if(n)s.emit("error",n);else if(o<r.length){var t=r[o++];a.finished||a.write(t.data,t.encoding,e)}else s._ended&&a.end()}()}},Pi.prototype._processResponse=function(e){var n=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:n});var t,a=e.headers.location;if(!a||!1===this._options.followRedirects||n<300||n>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if($i(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new Ai;var i=this._options.beforeRedirect;i&&(t=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var o=this._options.method;((301===n||302===n)&&"POST"===this._options.method||303===n&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],Mi(/^content-/i,this._options.headers));var s,r,c=Mi(/^host$/i,this._options.headers),u=Ii(this._currentUrl),p=c||u.host,l=/^\w+:/.test(a)?this._currentUrl:gi.format(Object.assign(u,{host:p})),d=(s=a,r=l,Fi?new Di(s,r):Ii(gi.resolve(r,s)));if(Ei("redirecting to",d.href),this._isRedirect=!0,qi(d,this._options),(d.protocol!==u.protocol&&"https:"!==d.protocol||d.host!==p&&!function(e,n){Ci(Gi(e)&&Gi(n));var t=e.length-n.length-1;return t>0&&"."===e[t]&&e.endsWith(n)}(d.host,p))&&Mi(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),Wi(i)){var m={headers:e.headers,statusCode:n},f={url:l,method:o,headers:t};i(this._options,m,f),this._sanitizeOptions(this._options)}this._performRequest()},ei.exports=Ni({http:yi,https:wi}),ei.exports.wrap=Ni;const Ki="1.7.7";function Vi(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}const Yi=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;const Ji=Symbol("internals");class Xi extends u.Transform{constructor(e){e=xt.toFlatObject(e,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,((e,n)=>!xt.isUndefined(n[e]))),super({readableHighWaterMark:e.chunkSize});const n=this[Ji]={timeWindow:e.timeWindow,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",(e=>{"progress"===e&&(n.isCaptured||(n.isCaptured=!0))}))}_read(e){const n=this[Ji];return n.onReadCallback&&n.onReadCallback(),super._read(e)}_transform(e,n,t){const a=this[Ji],i=a.maxRate,o=this.readableHighWaterMark,s=a.timeWindow,r=i/(1e3/s),c=!1!==a.minChunkSize?Math.max(a.minChunkSize,.01*r):0,u=(e,n)=>{const t=Buffer.byteLength(e);a.bytesSeen+=t,a.bytes+=t,a.isCaptured&&this.emit("progress",a.bytesSeen),this.push(e)?process.nextTick(n):a.onReadCallback=()=>{a.onReadCallback=null,process.nextTick(n)}},p=(e,n)=>{const t=Buffer.byteLength(e);let p,l=null,d=o,m=0;if(i){const e=Date.now();(!a.ts||(m=e-a.ts)>=s)&&(a.ts=e,p=r-a.bytes,a.bytes=p<0?-p:0,m=0),p=r-a.bytes}if(i){if(p<=0)return setTimeout((()=>{n(null,e)}),s-m);p<d&&(d=p)}d&&t>d&&t-d>c&&(l=e.subarray(d),e=e.subarray(0,d)),u(e,l?()=>{process.nextTick(n,null,l)}:n)};p(e,(function e(n,a){if(n)return t(n);a?p(a,e):t(null)}))}}const{asyncIterator:Zi}=Symbol,Qi=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[Zi]?yield*e[Zi]():yield e},eo=xt.ALPHABET.ALPHA_DIGIT+"-_",no=new i.TextEncoder,to="\r\n",ao=no.encode(to);class io{constructor(e,n){const{escapeName:t}=this.constructor,a=xt.isString(n);let i=`Content-Disposition: form-data; name="${t(e)}"${!a&&n.name?`; filename="${t(n.name)}"`:""}${to}`;a?n=no.encode(String(n).replace(/\r?\n|\r\n?/g,to)):i+=`Content-Type: ${n.type||"application/octet-stream"}${to}`,this.headers=no.encode(i+to),this.contentLength=a?n.byteLength:n.size,this.size=this.headers.byteLength+this.contentLength+2,this.name=e,this.value=n}async*encode(){yield this.headers;const{value:e}=this;xt.isTypedArray(e)?yield e:yield*Qi(e),yield ao}static escapeName(e){return String(e).replace(/[\r\n"]/g,(e=>({"\r":"%0D","\n":"%0A",'"':"%22"}[e])))}}class oo extends u.Transform{__transform(e,n,t){this.push(e),t()}_transform(e,n,t){if(0!==e.length&&(this._transform=this.__transform,120!==e[0])){const e=Buffer.alloc(2);e[0]=120,e[1]=156,this.push(e,n)}this.__transform(e,n,t)}}const so=(e,n)=>xt.isAsyncFn(e)?function(...t){const a=t.pop();e.apply(this,t).then((e=>{try{n?a(null,...n(e)):a(null,e)}catch(e){a(e)}}),a)}:e;const ro=(e,n,t=3)=>{let a=0;const i=function(e,n){e=e||10;const t=new Array(e),a=new Array(e);let i,o=0,s=0;return n=void 0!==n?n:1e3,function(r){const c=Date.now(),u=a[s];i||(i=c),t[o]=r,a[o]=c;let p=s,l=0;for(;p!==o;)l+=t[p++],p%=e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),c-i<n)return;const d=u&&c-u;return d?Math.round(1e3*l/d):void 0}}(50,250);return function(e,n){let t,a,i=0,o=1e3/n;const s=(n,o=Date.now())=>{i=o,t=null,a&&(clearTimeout(a),a=null),e.apply(null,n)};return[(...e)=>{const n=Date.now(),r=n-i;r>=o?s(e,n):(t=e,a||(a=setTimeout((()=>{a=null,s(t)}),o-r)))},()=>t&&s(t)]}((t=>{const o=t.loaded,s=t.lengthComputable?t.total:void 0,r=o-a,c=i(r);a=o;e({loaded:o,total:s,progress:s?o/s:void 0,bytes:r,rate:c||void 0,estimated:c&&s&&o<=s?(s-o)/c:void 0,event:t,lengthComputable:null!=s,[n?"download":"upload"]:!0})}),t)},co=(e,n)=>{const t=null!=e;return[a=>n[0]({lengthComputable:t,total:e,loaded:a}),n[1]]},uo=e=>(...n)=>xt.asap((()=>e(...n))),po={flush:d.constants.Z_SYNC_FLUSH,finishFlush:d.constants.Z_SYNC_FLUSH},lo={flush:d.constants.BROTLI_OPERATION_FLUSH,finishFlush:d.constants.BROTLI_OPERATION_FLUSH},mo=xt.isFunction(d.createBrotliDecompress),{http:fo,https:ho}=ei.exports,vo=/https:?/,xo=Oa.protocols.map((e=>e+":")),bo=(e,[n,t])=>(e.on("end",t).on("error",t),n);function go(e,n){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,n)}function Do(e,n,t){let a=n;if(!a&&!1!==a){const e=Qa(t);e&&(a=new URL(e))}if(a){if(a.username&&(a.auth=(a.username||"")+":"+(a.password||"")),a.auth){(a.auth.username||a.auth.password)&&(a.auth=(a.auth.username||"")+":"+(a.auth.password||""));const n=Buffer.from(a.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+n}e.headers.host=e.hostname+(e.port?":"+e.port:"");const n=a.hostname||a.host;e.hostname=n,e.host=n,e.port=a.port,e.path=t,a.protocol&&(e.protocol=a.protocol.includes(":")?a.protocol:`${a.protocol}:`)}e.beforeRedirects.proxy=function(e){Do(e,n,e.href)}}const yo="undefined"!=typeof process&&"process"===xt.kindOf(process),wo=(e,n)=>(({address:e,family:n})=>{if(!xt.isString(e))throw TypeError("address must be a string");return{address:e,family:n||(e.indexOf(".")<0?6:4)}})(xt.isObject(e)?e:{address:e,family:n});var _o=yo&&function(e){return n=async function(n,t,a){let{data:o,lookup:c,family:p}=e;const{responseType:l,responseEncoding:f}=e,h=e.method.toUpperCase();let v,x,b=!1;if(c){const e=so(c,(e=>xt.isArray(e)?e:[e]));c=(n,t,a)=>{e(n,t,((e,n,i)=>{if(e)return a(e);const o=xt.isArray(n)?n.map((e=>wo(e))):[wo(n,i)];t.all?a(e,o):a(e,o[0].address,o[0].family)}))}}const g=new m.EventEmitter,D=()=>{e.cancelToken&&e.cancelToken.unsubscribe(y),e.signal&&e.signal.removeEventListener("abort",y),g.removeAllListeners()};function y(n){g.emit("abort",!n||n.type?new qa(null,e,x):n)}a(((e,n)=>{v=!0,n&&(b=!0,D())})),g.once("abort",t),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(y),e.signal&&(e.signal.aborted?y():e.signal.addEventListener("abort",y)));const w=Ha(e.baseURL,e.url),_=new URL(w,Oa.hasBrowserEnv?Oa.origin:void 0),C=_.protocol||xo[0];if("data:"===C){let a;if("GET"!==h)return Ma(n,t,{status:405,statusText:"method not allowed",headers:{},config:e});try{a=function(e,n,t){const a=t&&t.Blob||Oa.classes.Blob,i=Vi(e);if(void 0===n&&a&&(n=!0),"data"===i){e=i.length?e.slice(i.length+1):e;const t=Yi.exec(e);if(!t)throw new bt("Invalid URL",bt.ERR_INVALID_URL);const o=t[1],s=t[2],r=t[3],c=Buffer.from(decodeURIComponent(r),s?"base64":"utf8");if(n){if(!a)throw new bt("Blob is not supported",bt.ERR_NOT_SUPPORT);return new a([c],{type:o})}return c}throw new bt("Unsupported protocol "+i,bt.ERR_NOT_SUPPORT)}(e.url,"blob"===l,{Blob:e.env&&e.env.Blob})}catch(n){throw bt.from(n,bt.ERR_BAD_REQUEST,e)}return"text"===l?(a=a.toString(f),f&&"utf8"!==f||(a=xt.stripBOM(a))):"stream"===l&&(a=u.Readable.from(a)),Ma(n,t,{data:a,status:200,statusText:"OK",headers:new za,config:e})}if(-1===xo.indexOf(C))return t(new bt("Unsupported protocol "+C,bt.ERR_BAD_REQUEST,e));const E=za.from(e.headers).normalize();E.set("User-Agent","axios/"+Ki,!1);const{onUploadProgress:F,onDownloadProgress:k}=e,j=e.maxRate;let T,O;if(xt.isSpecCompliantForm(o)){const e=E.getContentType(/boundary=([-_\w\d]{10,70})/i);o=((e,n,t)=>{const{tag:a="form-data-boundary",size:i=25,boundary:o=a+"-"+xt.generateString(i,eo)}=t||{};if(!xt.isFormData(e))throw TypeError("FormData instance required");if(o.length<1||o.length>70)throw Error("boundary must be 10-70 characters long");const s=no.encode("--"+o+to),r=no.encode("--"+o+"--"+to+to);let c=r.byteLength;const p=Array.from(e.entries()).map((([e,n])=>{const t=new io(e,n);return c+=t.size,t}));c+=s.byteLength*p.length,c=xt.toFiniteNumber(c);const l={"Content-Type":`multipart/form-data; boundary=${o}`};return Number.isFinite(c)&&(l["Content-Length"]=c),n&&n(l),u.Readable.from(async function*(){for(const e of p)yield s,yield*e.encode();yield r}())})(o,(e=>{E.set(e)}),{tag:`axios-${Ki}-boundary`,boundary:e&&e[1]||void 0})}else if(xt.isFormData(o)&&xt.isFunction(o.getHeaders)){if(E.set(o.getHeaders()),!E.hasContentLength())try{const e=await i.promisify(o.getLength).call(o);Number.isFinite(e)&&e>=0&&E.setContentLength(e)}catch(e){}}else if(xt.isBlob(o))o.size&&E.setContentType(o.type||"application/octet-stream"),E.setContentLength(o.size||0),o=u.Readable.from(Qi(o));else if(o&&!xt.isStream(o)){if(Buffer.isBuffer(o));else if(xt.isArrayBuffer(o))o=Buffer.from(new Uint8Array(o));else{if(!xt.isString(o))return t(new bt("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",bt.ERR_BAD_REQUEST,e));o=Buffer.from(o,"utf-8")}if(E.setContentLength(o.length,!1),e.maxBodyLength>-1&&o.length>e.maxBodyLength)return t(new bt("Request body larger than maxBodyLength limit",bt.ERR_BAD_REQUEST,e))}const S=xt.toFiniteNumber(E.getContentLength());let A,R;xt.isArray(j)?(T=j[0],O=j[1]):T=O=j,o&&(F||T)&&(xt.isStream(o)||(o=u.Readable.from(o,{objectMode:!1})),o=u.pipeline([o,new Xi({maxRate:xt.toFiniteNumber(T)})],xt.noop),F&&o.on("progress",bo(o,co(S,ro(uo(F),!1,3))))),e.auth&&(A=(e.auth.username||"")+":"+(e.auth.password||"")),!A&&_.username&&(A=_.username+":"+_.password),A&&E.delete("authorization");try{R=ya(_.pathname+_.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(n){const a=new Error(n.message);return a.config=e,a.url=e.url,a.exists=!0,t(a)}E.set("Accept-Encoding","gzip, compress, deflate"+(mo?", br":""),!1);const B={path:R,method:h,headers:E.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:A,protocol:C,family:p,beforeRedirect:go,beforeRedirects:{}};let L;!xt.isUndefined(c)&&(B.lookup=c),e.socketPath?B.socketPath=e.socketPath:(B.hostname=_.hostname.startsWith("[")?_.hostname.slice(1,-1):_.hostname,B.port=_.port,Do(B,e.proxy,C+"//"+_.hostname+(_.port?":"+_.port:"")+B.path));const P=vo.test(B.protocol);if(B.agent=P?e.httpsAgent:e.httpAgent,e.transport?L=e.transport:0===e.maxRedirects?L=P?r:s:(e.maxRedirects&&(B.maxRedirects=e.maxRedirects),e.beforeRedirect&&(B.beforeRedirects.config=e.beforeRedirect),L=P?ho:fo),e.maxBodyLength>-1?B.maxBodyLength=e.maxBodyLength:B.maxBodyLength=1/0,e.insecureHTTPParser&&(B.insecureHTTPParser=e.insecureHTTPParser),x=L.request(B,(function(a){if(x.destroyed)return;const i=[a],o=+a.headers["content-length"];if(k||O){const e=new Xi({maxRate:xt.toFiniteNumber(O)});k&&e.on("progress",bo(e,co(o,ro(uo(k),!0,3)))),i.push(e)}let s=a;const r=a.req||x;if(!1!==e.decompress&&a.headers["content-encoding"])switch("HEAD"!==h&&204!==a.statusCode||delete a.headers["content-encoding"],(a.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":i.push(d.createUnzip(po)),delete a.headers["content-encoding"];break;case"deflate":i.push(new oo),i.push(d.createUnzip(po)),delete a.headers["content-encoding"];break;case"br":mo&&(i.push(d.createBrotliDecompress(lo)),delete a.headers["content-encoding"])}s=i.length>1?u.pipeline(i,xt.noop):i[0];const c=u.finished(s,(()=>{c(),D()})),p={status:a.statusCode,statusText:a.statusMessage,headers:new za(a.headers),config:e,request:r};if("stream"===l)p.data=s,Ma(n,t,p);else{const a=[];let i=0;s.on("data",(function(n){a.push(n),i+=n.length,e.maxContentLength>-1&&i>e.maxContentLength&&(b=!0,s.destroy(),t(new bt("maxContentLength size of "+e.maxContentLength+" exceeded",bt.ERR_BAD_RESPONSE,e,r)))})),s.on("aborted",(function(){if(b)return;const n=new bt("maxContentLength size of "+e.maxContentLength+" exceeded",bt.ERR_BAD_RESPONSE,e,r);s.destroy(n),t(n)})),s.on("error",(function(n){x.destroyed||t(bt.from(n,null,e,r))})),s.on("end",(function(){try{let e=1===a.length?a[0]:Buffer.concat(a);"arraybuffer"!==l&&(e=e.toString(f),f&&"utf8"!==f||(e=xt.stripBOM(e))),p.data=e}catch(n){return t(bt.from(n,null,e,p.request,p))}Ma(n,t,p)}))}g.once("abort",(e=>{s.destroyed||(s.emit("error",e),s.destroy())}))})),g.once("abort",(e=>{t(e),x.destroy(e)})),x.on("error",(function(n){t(bt.from(n,null,e,x))})),x.on("socket",(function(e){e.setKeepAlive(!0,6e4)})),e.timeout){const n=parseInt(e.timeout,10);if(Number.isNaN(n))return void t(new bt("error trying to parse `config.timeout` to int",bt.ERR_BAD_OPTION_VALUE,e,x));x.setTimeout(n,(function(){if(v)return;let n=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const a=e.transitional||_a;e.timeoutErrorMessage&&(n=e.timeoutErrorMessage),t(new bt(n,a.clarifyTimeoutError?bt.ETIMEDOUT:bt.ECONNABORTED,e,x)),y()}))}if(xt.isStream(o)){let n=!1,t=!1;o.on("end",(()=>{n=!0})),o.once("error",(e=>{t=!0,x.destroy(e)})),o.on("close",(()=>{n||t||y(new qa("Request stream has been aborted",e,x))})),o.pipe(x)}else x.end(o)},new Promise(((e,t)=>{let a,i;const o=(e,n)=>{i||(i=!0,a&&a(e,n))},s=e=>{o(e,!0),t(e)};n((n=>{o(n),e(n)}),s,(e=>a=e)).catch(s)}));var n},Co=Oa.hasStandardBrowserEnv?function(){const e=Oa.navigator&&/(msie|trident)/i.test(Oa.navigator.userAgent),n=document.createElement("a");let t;function a(t){let a=t;return e&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=a(window.location.href),function(e){const n=xt.isString(e)?a(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0},Eo=Oa.hasStandardBrowserEnv?{write(e,n,t,a,i,o){const s=[e+"="+encodeURIComponent(n)];xt.isNumber(t)&&s.push("expires="+new Date(t).toGMTString()),xt.isString(a)&&s.push("path="+a),xt.isString(i)&&s.push("domain="+i),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read(e){const n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};const Fo=e=>e instanceof za?{...e}:e;function ko(e,n){n=n||{};const t={};function a(e,n,t){return xt.isPlainObject(e)&&xt.isPlainObject(n)?xt.merge.call({caseless:t},e,n):xt.isPlainObject(n)?xt.merge({},n):xt.isArray(n)?n.slice():n}function i(e,n,t){return xt.isUndefined(n)?xt.isUndefined(e)?void 0:a(void 0,e,t):a(e,n,t)}function o(e,n){if(!xt.isUndefined(n))return a(void 0,n)}function s(e,n){return xt.isUndefined(n)?xt.isUndefined(e)?void 0:a(void 0,e):a(void 0,n)}function r(t,i,o){return o in n?a(t,i):o in e?a(void 0,t):void 0}const c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:r,headers:(e,n)=>i(Fo(e),Fo(n),!0)};return xt.forEach(Object.keys(Object.assign({},e,n)),(function(a){const o=c[a]||i,s=o(e[a],n[a],a);xt.isUndefined(s)&&o!==r||(t[a]=s)})),t}var jo=e=>{const n=ko({},e);let t,{data:a,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:s,headers:r,auth:c}=n;if(n.headers=r=za.from(r),n.url=ya(Ha(n.baseURL,n.url),e.params,e.paramsSerializer),c&&r.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),xt.isFormData(a))if(Oa.hasStandardBrowserEnv||Oa.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if(!1!==(t=r.getContentType())){const[e,...n]=t?t.split(";").map((e=>e.trim())).filter(Boolean):[];r.setContentType([e||"multipart/form-data",...n].join("; "))}if(Oa.hasStandardBrowserEnv&&(i&&xt.isFunction(i)&&(i=i(n)),i||!1!==i&&Co(n.url))){const e=o&&s&&Eo.read(s);e&&r.set(o,e)}return n};var To="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(n,t){const a=jo(e);let i=a.data;const o=za.from(a.headers).normalize();let s,r,c,u,p,{responseType:l,onUploadProgress:d,onDownloadProgress:m}=a;function f(){u&&u(),p&&p(),a.cancelToken&&a.cancelToken.unsubscribe(s),a.signal&&a.signal.removeEventListener("abort",s)}let h=new XMLHttpRequest;function v(){if(!h)return;const a=za.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());Ma((function(e){n(e),f()}),(function(e){t(e),f()}),{data:l&&"text"!==l&&"json"!==l?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:a,config:e,request:h}),h=null}h.open(a.method.toUpperCase(),a.url,!0),h.timeout=a.timeout,"onloadend"in h?h.onloadend=v:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(v)},h.onabort=function(){h&&(t(new bt("Request aborted",bt.ECONNABORTED,e,h)),h=null)},h.onerror=function(){t(new bt("Network Error",bt.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let n=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const i=a.transitional||_a;a.timeoutErrorMessage&&(n=a.timeoutErrorMessage),t(new bt(n,i.clarifyTimeoutError?bt.ETIMEDOUT:bt.ECONNABORTED,e,h)),h=null},void 0===i&&o.setContentType(null),"setRequestHeader"in h&&xt.forEach(o.toJSON(),(function(e,n){h.setRequestHeader(n,e)})),xt.isUndefined(a.withCredentials)||(h.withCredentials=!!a.withCredentials),l&&"json"!==l&&(h.responseType=a.responseType),m&&([c,p]=ro(m,!0),h.addEventListener("progress",c)),d&&h.upload&&([r,u]=ro(d),h.upload.addEventListener("progress",r),h.upload.addEventListener("loadend",u)),(a.cancelToken||a.signal)&&(s=n=>{h&&(t(!n||n.type?new qa(null,e,h):n),h.abort(),h=null)},a.cancelToken&&a.cancelToken.subscribe(s),a.signal&&(a.signal.aborted?s():a.signal.addEventListener("abort",s)));const x=Vi(a.url);x&&-1===Oa.protocols.indexOf(x)?t(new bt("Unsupported protocol "+x+":",bt.ERR_BAD_REQUEST,e)):h.send(i||null)}))};const Oo=(e,n)=>{const{length:t}=e=e?e.filter(Boolean):[];if(n||t){let t,a=new AbortController;const i=function(e){if(!t){t=!0,s();const n=e instanceof Error?e:this.reason;a.abort(n instanceof bt?n:new qa(n instanceof Error?n.message:n))}};let o=n&&setTimeout((()=>{o=null,i(new bt(`timeout ${n} of ms exceeded`,bt.ETIMEDOUT))}),n);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)})),e=null)};e.forEach((e=>e.addEventListener("abort",i)));const{signal:r}=a;return r.unsubscribe=()=>xt.asap(s),r}},So=function*(e,n){let t=e.byteLength;if(t<n)return void(yield e);let a,i=0;for(;i<t;)a=i+n,yield e.slice(i,a),i=a},Ao=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const n=e.getReader();try{for(;;){const{done:e,value:t}=await n.read();if(e)break;yield t}}finally{await n.cancel()}},Ro=(e,n,t,a)=>{const i=async function*(e,n){for await(const t of Ao(e))yield*So(t,n)}(e,n);let o,s=0,r=e=>{o||(o=!0,a&&a(e))};return new ReadableStream({async pull(e){try{const{done:n,value:a}=await i.next();if(n)return r(),void e.close();let o=a.byteLength;if(t){let e=s+=o;t(e)}e.enqueue(new Uint8Array(a))}catch(e){throw r(e),e}},cancel:e=>(r(e),i.return())},{highWaterMark:2})},Bo="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Lo=Bo&&"function"==typeof ReadableStream,Po=Bo&&("function"==typeof TextEncoder?(No=new TextEncoder,e=>No.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var No;const zo=(e,...n)=>{try{return!!e(...n)}catch(e){return!1}},Io=Lo&&zo((()=>{let e=!1;const n=new Request(Oa.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!n})),Uo=Lo&&zo((()=>xt.isReadableStream(new Response("").body))),qo={stream:Uo&&(e=>e.body)};var Mo;Bo&&(Mo=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!qo[e]&&(qo[e]=xt.isFunction(Mo[e])?n=>n[e]():(n,t)=>{throw new bt(`Response type '${e}' is not supported`,bt.ERR_NOT_SUPPORT,t)})})));const Ho=async(e,n)=>{const t=xt.toFiniteNumber(e.getContentLength());return null==t?(async e=>{if(null==e)return 0;if(xt.isBlob(e))return e.size;if(xt.isSpecCompliantForm(e)){const n=new Request(Oa.origin,{method:"POST",body:e});return(await n.arrayBuffer()).byteLength}return xt.isArrayBufferView(e)||xt.isArrayBuffer(e)?e.byteLength:(xt.isURLSearchParams(e)&&(e+=""),xt.isString(e)?(await Po(e)).byteLength:void 0)})(n):t};var $o=Bo&&(async e=>{let{url:n,method:t,data:a,signal:i,cancelToken:o,timeout:s,onDownloadProgress:r,onUploadProgress:c,responseType:u,headers:p,withCredentials:l="same-origin",fetchOptions:d}=jo(e);u=u?(u+"").toLowerCase():"text";let m,f=Oo([i,o&&o.toAbortSignal()],s);const h=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let v;try{if(c&&Io&&"get"!==t&&"head"!==t&&0!==(v=await Ho(p,a))){let e,t=new Request(n,{method:"POST",body:a,duplex:"half"});if(xt.isFormData(a)&&(e=t.headers.get("content-type"))&&p.setContentType(e),t.body){const[e,n]=co(v,ro(uo(c)));a=Ro(t.body,65536,e,n)}}xt.isString(l)||(l=l?"include":"omit");const i="credentials"in Request.prototype;m=new Request(n,{...d,signal:f,method:t.toUpperCase(),headers:p.normalize().toJSON(),body:a,duplex:"half",credentials:i?l:void 0});let o=await fetch(m);const s=Uo&&("stream"===u||"response"===u);if(Uo&&(r||s&&h)){const e={};["status","statusText","headers"].forEach((n=>{e[n]=o[n]}));const n=xt.toFiniteNumber(o.headers.get("content-length")),[t,a]=r&&co(n,ro(uo(r),!0))||[];o=new Response(Ro(o.body,65536,t,(()=>{a&&a(),h&&h()})),e)}u=u||"text";let x=await qo[xt.findKey(qo,u)||"text"](o,e);return!s&&h&&h(),await new Promise(((n,t)=>{Ma(n,t,{data:x,headers:za.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:m})}))}catch(n){if(h&&h(),n&&"TypeError"===n.name&&/fetch/i.test(n.message))throw Object.assign(new bt("Network Error",bt.ERR_NETWORK,e,m),{cause:n.cause||n});throw bt.from(n,n&&n.code,e,m)}});const Go={http:_o,xhr:To,fetch:$o};xt.forEach(Go,((e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch(e){}Object.defineProperty(e,"adapterName",{value:n})}}));const Wo=e=>`- ${e}`,Ko=e=>xt.isFunction(e)||null===e||!1===e;var Vo=e=>{e=xt.isArray(e)?e:[e];const{length:n}=e;let t,a;const i={};for(let o=0;o<n;o++){let n;if(t=e[o],a=t,!Ko(t)&&(a=Go[(n=String(t)).toLowerCase()],void 0===a))throw new bt(`Unknown adapter '${n}'`);if(a)break;i[n||"#"+o]=a}if(!a){const e=Object.entries(i).map((([e,n])=>`adapter ${e} `+(!1===n?"is not supported by the environment":"is not available in the build")));throw new bt("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(Wo).join("\n"):" "+Wo(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return a};function Yo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new qa(null,e)}function Jo(e){Yo(e),e.headers=za.from(e.headers),e.data=Ia.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Vo(e.adapter||Aa.adapter)(e).then((function(n){return Yo(e),n.data=Ia.call(e,e.transformResponse,n),n.headers=za.from(n.headers),n}),(function(n){return Ua(n)||(Yo(e),n&&n.response&&(n.response.data=Ia.call(e,e.transformResponse,n.response),n.response.headers=za.from(n.response.headers))),Promise.reject(n)}))}const Xo={};["object","boolean","number","function","string","symbol"].forEach(((e,n)=>{Xo[e]=function(t){return typeof t===e||"a"+(n<1?"n ":" ")+e}}));const Zo={};Xo.transitional=function(e,n,t){function a(e,n){return"[Axios v1.7.7] Transitional option '"+e+"'"+n+(t?". "+t:"")}return(t,i,o)=>{if(!1===e)throw new bt(a(i," has been removed"+(n?" in "+n:"")),bt.ERR_DEPRECATED);return n&&!Zo[i]&&(Zo[i]=!0,console.warn(a(i," has been deprecated since v"+n+" and will be removed in the near future"))),!e||e(t,i,o)}};var Qo={assertOptions:function(e,n,t){if("object"!=typeof e)throw new bt("options must be an object",bt.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let i=a.length;for(;i-- >0;){const o=a[i],s=n[o];if(s){const n=e[o],t=void 0===n||s(n,o,e);if(!0!==t)throw new bt("option "+o+" must be "+t,bt.ERR_BAD_OPTION_VALUE)}else if(!0!==t)throw new bt("Unknown option "+o,bt.ERR_BAD_OPTION)}},validators:Xo};const es=Qo.validators;class ns{constructor(e){this.defaults=e,this.interceptors={request:new wa,response:new wa}}async request(e,n){try{return await this._request(e,n)}catch(e){if(e instanceof Error){let n;Error.captureStackTrace?Error.captureStackTrace(n={}):n=new Error;const t=n.stack?n.stack.replace(/^.+\n/,""):"";try{e.stack?t&&!String(e.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+t):e.stack=t}catch(e){}}throw e}}_request(e,n){"string"==typeof e?(n=n||{}).url=e:n=e||{},n=ko(this.defaults,n);const{transitional:t,paramsSerializer:a,headers:i}=n;void 0!==t&&Qo.assertOptions(t,{silentJSONParsing:es.transitional(es.boolean),forcedJSONParsing:es.transitional(es.boolean),clarifyTimeoutError:es.transitional(es.boolean)},!1),null!=a&&(xt.isFunction(a)?n.paramsSerializer={serialize:a}:Qo.assertOptions(a,{encode:es.function,serialize:es.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&xt.merge(i.common,i[n.method]);i&&xt.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),n.headers=za.concat(o,i);const s=[];let r=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(n)||(r=r&&e.synchronous,s.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(!r){const e=[Jo.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,c),p=e.length,u=Promise.resolve(n);l<p;)u=u.then(e[l++],e[l++]);return u}p=s.length;let d=n;for(l=0;l<p;){const e=s[l++],n=s[l++];try{d=e(d)}catch(e){n.call(this,e);break}}try{u=Jo.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 ya(Ha((e=ko(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}xt.forEach(["delete","get","head","options"],(function(e){ns.prototype[e]=function(n,t){return this.request(ko(t||{},{method:e,url:n,data:(t||{}).data}))}})),xt.forEach(["post","put","patch"],(function(e){function n(n){return function(t,a,i){return this.request(ko(i||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:t,data:a}))}}ns.prototype[e]=n(),ns.prototype[e+"Form"]=n(!0)}));class ts{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let n;this.promise=new Promise((function(e){n=e}));const t=this;this.promise.then((e=>{if(!t._listeners)return;let n=t._listeners.length;for(;n-- >0;)t._listeners[n](e);t._listeners=null})),this.promise.then=e=>{let n;const a=new Promise((e=>{t.subscribe(e),n=e})).then(e);return a.cancel=function(){t.unsubscribe(n)},a},e((function(e,a,i){t.reason||(t.reason=new qa(e,a,i),n(t.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);-1!==n&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=n=>{e.abort(n)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new ts((function(n){e=n})),cancel:e}}}const as={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(as).forEach((([e,n])=>{as[n]=e}));const is=function e(n){const t=new ns(n),a=kn(ns.prototype.request,t);return xt.extend(a,ns.prototype,t,{allOwnKeys:!0}),xt.extend(a,t,null,{allOwnKeys:!0}),a.create=function(t){return e(ko(n,t))},a}(Aa);is.Axios=ns,is.CanceledError=qa,is.CancelToken=ts,is.isCancel=Ua,is.VERSION=Ki,is.toFormData=va,is.AxiosError=bt,is.Cancel=is.CanceledError,is.all=function(e){return Promise.all(e)},is.spread=function(e){return function(n){return e.apply(null,n)}},is.isAxiosError=function(e){return xt.isObject(e)&&!0===e.isAxiosError},is.mergeConfig=ko,is.AxiosHeaders=za,is.formToJSON=e=>Sa(xt.isHTMLForm(e)?new FormData(e):e),is.getAdapter=Vo,is.HttpStatusCode=as,is.default=is;const os="/api/v1",ss=e=>{const n=(t=e,Object.entries(t).reduce(((e,n)=>(e[ln(n[0])]=n[1],e)),{}));var t;return is.post(`${os}/reporter/runs`,{run:n},{skipSnakeCaseConversion:!0})},rs=(e,n)=>is.put(`${os}/reporter/runs/${e}`,{run:n}),cs=e=>is.get(`${os}/reporter/runs/${e}/heartbeat`),us=(e,n)=>is.post(`${os}/reporter/runs/${e}/test_entities`,{testEntity:n}),ps="=".repeat(10),ls={testData:(e,n)=>{let t=`\n-------------------Started reporting to NeetoPlaydash 🎭-------------------\nCI Build ID: ${e}\n`;return n&&(t+=`Total shards: ${n.total}\nCurrent shards: ${n.current}\n`),t+="---------------------------------------------------------------------------\n",t}},ds={startingTest:(e,n)=>`${ps}Starting ${e}${ps}\n Time: ${(new Date).toUTCString()}\n History ID: ${n}`},ms={reportedTest:({title:e,status:n,historyId:t,completedAt:a})=>`\n\n------------Reported to Playdash------------\n Title: ${e}\n History id: ${t}\n Status: ${n}\n Completed at: ${a}\n--------------------------------------------\n \n`},fs={runReported:"Run completed and reported to NeetoPlaydash 🎉\n\n"},hs=({command:e,messageOnError:n,shouldThrowError:t=!1,logLevel:a="warning"})=>{try{return f.execSync(e).toString().trim()}catch(e){if(t)throw e;gn[a](n)}},vs=(e,n)=>{var t;const{title:i,parent:o,location:{file:s}}=e,r=e.titlePath(),c=null===(t=o.project())||void 0===t?void 0:t.name,u=a.relative(n,s),p=(({titlePath:e,title:n,project:t,rootDir:i,file:o})=>e.filter(((e,s)=>0!==s&&e!==n&&e!==t&&e!==a.relative(i,o))))({titlePath:r,title:i,project:c,rootDir:n,file:s});return{title:i,describe:p,project:c,spec:u,historyId:((e,n,t,a)=>{const i=`[project=${e}]${n}${[...t,a].join("")}`,o=_n(i);return`${_n(n)}-${o}`})(null!=c?c:"",u,p,i)}},xs=({rootDir:e},n)=>ue(n.allTests().map((n=>vs(n,e)))),bs=async e=>{try{await cs(e)}catch(e){gn.error(e.message),gn.redText(vn.stopped),process.exit(1)}},gs=(e,n,t)=>is.post(`${os}/reporter/runs/${e}/test_entities/${n}/attempts`,t),Ds=(e,n,t,a)=>is.put(`${os}/reporter/runs/${e}/test_entities/${n}/attempts/${t}`,a),ys=["screenshot","video","trace"],ws=({location:e,snippet:n})=>{if(!e)return null;const{file:t,line:a,column:i}=e;return`# ${t} (${a}:${i}) \n\n\n ${n}`},_s={KB:1024,MB:Math.pow(1024,2)},Cs=(e,n)=>parseFloat((e/_s[n]).toFixed(2));var Es=class{constructor(e,n,t){this.etaBufferLength=e||100,this.valueBuffer=[t],this.timeBuffer=[n],this.eta="0"}update(e,n,t){this.valueBuffer.push(n),this.timeBuffer.push(e),this.calculate(t-n)}getTime(){return this.eta}calculate(e){const n=this.valueBuffer.length,t=Math.min(this.etaBufferLength,n),a=(this.valueBuffer[n-1]-this.valueBuffer[n-t])/(this.timeBuffer[n-1]-this.timeBuffer[n-t]);this.valueBuffer=this.valueBuffer.slice(-this.etaBufferLength),this.timeBuffer=this.timeBuffer.slice(-this.etaBufferLength);const i=Math.ceil(e/a/1e3);isNaN(i)?this.eta="NULL":isFinite(i)?this.eta=i>1e7?"INF":i<0?0:i:this.eta="INF"}};const Fs=h;var ks=class{constructor(e){this.stream=e,this.linewrap=!0,this.dy=0}cursorSave(){this.stream.isTTY&&this.stream.write("7")}cursorRestore(){this.stream.isTTY&&this.stream.write("8")}cursor(e){this.stream.isTTY&&(e?this.stream.write("[?25h"):this.stream.write("[?25l"))}cursorTo(e=null,n=null){this.stream.isTTY&&Fs.cursorTo(this.stream,e,n)}cursorRelative(e=null,n=null){this.stream.isTTY&&(this.dy=this.dy+n,Fs.moveCursor(this.stream,e,n))}cursorRelativeReset(){this.stream.isTTY&&(Fs.moveCursor(this.stream,0,-this.dy),Fs.cursorTo(this.stream,0,null),this.dy=0)}clearRight(){this.stream.isTTY&&Fs.clearLine(this.stream,1)}clearLine(){this.stream.isTTY&&Fs.clearLine(this.stream,0)}clearBottom(){this.stream.isTTY&&Fs.clearScreenDown(this.stream)}newline(){this.stream.write("\n"),this.dy++}write(e,n=!1){!0===this.linewrap&&!1===n?this.stream.write(e.substr(0,this.getWidth())):this.stream.write(e)}lineWrapping(e){this.stream.isTTY&&(this.linewrap=e,e?this.stream.write("[?7h"):this.stream.write("[?7l"))}isTTY(){return!0===this.stream.isTTY}getWidth(){return this.stream.columns||(this.stream.isTTY?80:200)}},js={exports:{}};const Ts=({onlyFirst:e=!1}={})=>{const n=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(n,e?void 0:"g")};var Os={exports:{}};const Ss=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));Os.exports=Ss,Os.exports.default=Ss;const As=e=>"string"==typeof e?e.replace(Ts(),""):e,Rs=Os.exports,Bs=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},Ls=e=>{if("string"!=typeof e||0===e.length)return 0;if(0===(e=As(e)).length)return 0;e=e.replace(Bs()," ");let n=0;for(let t=0;t<e.length;t++){const a=e.codePointAt(t);a<=31||a>=127&&a<=159||(a>=768&&a<=879||(a>65535&&t++,n+=Rs(a)?2:1))}return n};js.exports=Ls,js.exports.default=Ls;var Ps=function(e,n,t){if(!0!==n.autopadding)return e;return"percentage"===t?(a=e,i=3,(n.autopaddingChar+a).slice(-i)):e;var a,i},Ns=function(e,n){const t=Math.round(e*n.barsize),a=n.barsize-t;return n.barCompleteString.substr(0,t)+n.barGlue+n.barIncompleteString.substr(0,a)},zs=function(e,n,t){function a(e){return t?t*Math.round(e/t):e}function i(e){return(n.autopaddingChar+e).slice(-2)}return e>3600?i(Math.floor(e/3600))+"h"+i(a(e%3600/60))+"m":e>60?i(Math.floor(e/60))+"m"+i(a(e%60))+"s":e>10?i(a(e))+"s":i(e)+"s"};const Is=js.exports,Us=Ps,qs=Ns,Ms=zs;var Hs=function(e,n,t){let a=e.format;const i=e.formatTime||Ms,o=e.formatValue||Us,s=e.formatBar||qs,r=Math.floor(100*n.progress)+"",c=n.stopTime||Date.now(),u=Math.round((c-n.startTime)/1e3),p=Object.assign({},t,{bar:s(n.progress,e),percentage:o(r,e,"percentage"),total:o(n.total,e,"total"),value:o(n.value,e,"value"),eta:o(n.eta,e,"eta"),eta_formatted:i(n.eta,e,5),duration:o(u,e,"duration"),duration_formatted:i(u,e,1)});a=a.replace(/\{(\w+)\}/g,(function(e,n){return void 0!==p[n]?p[n]:e}));const l=Math.max(0,n.maxWidth-Is(a)-2),d=Math.floor(l/2);switch(e.align){case"right":a=l>0?" ".repeat(l)+a:a;break;case"center":a=d>0?" ".repeat(d)+a:a}return a};function $s(e,n){return null==e?n:e}var Gs={parse:function(e,n){const t={},a=Object.assign({},n,e);return t.throttleTime=1e3/$s(a.fps,10),t.stream=$s(a.stream,process.stderr),t.terminal=$s(a.terminal,null),t.clearOnComplete=$s(a.clearOnComplete,!1),t.stopOnComplete=$s(a.stopOnComplete,!1),t.barsize=$s(a.barsize,40),t.align=$s(a.align,"left"),t.hideCursor=$s(a.hideCursor,!1),t.linewrap=$s(a.linewrap,!1),t.barGlue=$s(a.barGlue,""),t.barCompleteChar=$s(a.barCompleteChar,"="),t.barIncompleteChar=$s(a.barIncompleteChar,"-"),t.format=$s(a.format,"progress [{bar}] {percentage}% | ETA: {eta}s | {value}/{total}"),t.formatTime=$s(a.formatTime,null),t.formatValue=$s(a.formatValue,null),t.formatBar=$s(a.formatBar,null),t.etaBufferLength=$s(a.etaBuffer,10),t.etaAsynchronousUpdate=$s(a.etaAsynchronousUpdate,!1),t.progressCalculationRelative=$s(a.progressCalculationRelative,!1),t.synchronousUpdate=$s(a.synchronousUpdate,!0),t.noTTYOutput=$s(a.noTTYOutput,!1),t.notTTYSchedule=$s(a.notTTYSchedule,2e3),t.emptyOnZero=$s(a.emptyOnZero,!1),t.forceRedraw=$s(a.forceRedraw,!1),t.autopadding=$s(a.autopadding,!1),t.gracefulExit=$s(a.gracefulExit,!1),t},assignDerivedOptions:function(e){return e.barCompleteString=e.barCompleteChar.repeat(e.barsize+1),e.barIncompleteString=e.barIncompleteChar.repeat(e.barsize+1),e.autopaddingChar=e.autopadding?$s(e.autopaddingChar," "):"",e}};const Ws=Es,Ks=ks,Vs=Hs,Ys=Gs,Js=m;var Xs=class extends Js{constructor(e){super(),this.options=Ys.assignDerivedOptions(e),this.terminal=this.options.terminal?this.options.terminal:new Ks(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 Ws(this.options.etaBufferLength,0,0),this.payload={},this.isActive=!1,this.formatter="function"==typeof this.options.format?this.options.format:Vs}render(e=!1){const n={progress:this.getProgress(),eta:this.eta.getTime(),startTime:this.startTime,stopTime:this.stopTime,total:this.total,value:this.value,maxWidth:this.terminal.getWidth()};this.options.etaAsynchronousUpdate&&this.updateETA();const t=this.formatter(this.options,n,this.payload);(e||this.options.forceRedraw||this.options.noTTYOutput&&!this.terminal.isTTY()||this.lastDrawnString!=t)&&(this.emit("redraw-pre"),this.terminal.cursorTo(0,null),this.terminal.write(t),this.terminal.clearRight(),this.lastDrawnString=t,this.lastRedraw=Date.now(),this.emit("redraw-post"))}start(e,n,t){this.value=n||0,this.total=void 0!==e&&e>=0?e:100,this.startValue=n||0,this.payload=t||{},this.startTime=Date.now(),this.stopTime=null,this.lastDrawnString="",this.eta=new Ws(this.options.etaBufferLength,this.startTime,this.value),this.isActive=!0,this.emit("start",e,n)}stop(){this.isActive=!1,this.stopTime=Date.now(),this.emit("stop",this.total,this.value)}update(e,n={}){"number"==typeof e&&(this.value=e,this.eta.update(Date.now(),e,this.total));const t=("object"==typeof e?e:n)||{};this.emit("update",this.total,this.value);for(const e in t)this.payload[e]=t[e];this.value>=this.getTotal()&&this.options.stopOnComplete&&this.stop()}getProgress(){let e=this.value/this.total;return this.options.progressCalculationRelative&&(e=(this.value-this.startValue)/(this.total-this.startValue)),isNaN(e)&&(e=this.options&&this.options.emptyOnZero?0:1),e=Math.min(Math.max(e,0),1),e}increment(e=1,n={}){"object"==typeof e?this.update(this.value+1,e):this.update(this.value+e,n)}getTotal(){return this.total}setTotal(e){void 0!==e&&e>=0&&(this.total=e)}updateETA(){this.eta.update(Date.now(),this.value,this.total)}};const Zs=Xs,Qs=Gs;const er=ks,nr=Xs,tr=Gs,ar=m;var ir={legacy:{format:"progress [{bar}] {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"=",barIncompleteChar:"-"},shades_classic:{format:" {bar} {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"█",barIncompleteChar:"░"},shades_grey:{format:" [90m{bar}[0m {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"█",barIncompleteChar:"░"},rect:{format:" {bar}■ {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"■",barIncompleteChar:" "}};const or=class extends Zs{constructor(e,n){super(Qs.parse(e,n)),this.timer=null,this.options.noTTYOutput&&!1===this.terminal.isTTY()&&(this.options.synchronousUpdate=!1),this.schedulingRate=this.terminal.isTTY()?this.options.throttleTime:this.options.notTTYSchedule,this.sigintCallback=null}render(){this.timer&&(clearTimeout(this.timer),this.timer=null),super.render(),this.options.noTTYOutput&&!1===this.terminal.isTTY()&&this.terminal.newline(),this.timer=setTimeout(this.render.bind(this),this.schedulingRate)}update(e,n){this.timer&&(super.update(e,n),this.options.synchronousUpdate&&this.lastRedraw+2*this.options.throttleTime<Date.now()&&this.render())}start(e,n,t){!1===this.options.noTTYOutput&&!1===this.terminal.isTTY()||(null===this.sigintCallback&&this.options.gracefulExit&&(this.sigintCallback=this.stop.bind(this),process.once("SIGINT",this.sigintCallback),process.once("SIGTERM",this.sigintCallback)),this.terminal.cursorSave(),!0===this.options.hideCursor&&this.terminal.cursor(!1),!1===this.options.linewrap&&this.terminal.lineWrapping(!1),super.start(e,n,t),this.render())}stop(){this.timer&&(this.sigintCallback&&(process.removeListener("SIGINT",this.sigintCallback),process.removeListener("SIGTERM",this.sigintCallback),this.sigintCallback=null),this.render(),super.stop(),clearTimeout(this.timer),this.timer=null,!0===this.options.hideCursor&&this.terminal.cursor(!0),!1===this.options.linewrap&&this.terminal.lineWrapping(!0),this.terminal.cursorRestore(),this.options.clearOnComplete?(this.terminal.cursorTo(0,null),this.terminal.clearLine()):this.terminal.newline())}},sr=class extends ar{constructor(e,n){super(),this.bars=[],this.options=tr.parse(e,n),this.options.synchronousUpdate=!1,this.terminal=this.options.terminal?this.options.terminal:new er(this.options.stream),this.timer=null,this.isActive=!1,this.schedulingRate=this.terminal.isTTY()?this.options.throttleTime:this.options.notTTYSchedule,this.loggingBuffer=[],this.sigintCallback=null}create(e,n,t,a={}){const i=new nr(Object.assign({},this.options,{terminal:this.terminal},a));return this.bars.push(i),!1===this.options.noTTYOutput&&!1===this.terminal.isTTY()||(null===this.sigintCallback&&this.options.gracefulExit&&(this.sigintCallback=this.stop.bind(this),process.once("SIGINT",this.sigintCallback),process.once("SIGTERM",this.sigintCallback)),this.isActive||(!0===this.options.hideCursor&&this.terminal.cursor(!1),!1===this.options.linewrap&&this.terminal.lineWrapping(!1),this.timer=setTimeout(this.update.bind(this),this.schedulingRate)),this.isActive=!0,i.start(e,n,t),this.emit("start")),i}remove(e){const n=this.bars.indexOf(e);return!(n<0)&&(this.bars.splice(n,1),this.update(),this.terminal.newline(),this.terminal.clearBottom(),!0)}update(){if(this.timer&&(clearTimeout(this.timer),this.timer=null),this.emit("update-pre"),this.terminal.cursorRelativeReset(),this.emit("redraw-pre"),this.loggingBuffer.length>0)for(this.terminal.clearLine();this.loggingBuffer.length>0;)this.terminal.write(this.loggingBuffer.shift(),!0);for(let e=0;e<this.bars.length;e++)e>0&&this.terminal.newline(),this.bars[e].render();this.emit("redraw-post"),this.options.noTTYOutput&&!1===this.terminal.isTTY()&&(this.terminal.newline(),this.terminal.newline()),this.timer=setTimeout(this.update.bind(this),this.schedulingRate),this.emit("update-post"),this.options.stopOnComplete&&!this.bars.find((e=>e.isActive))&&this.stop()}stop(){if(clearTimeout(this.timer),this.timer=null,this.sigintCallback&&(process.removeListener("SIGINT",this.sigintCallback),process.removeListener("SIGTERM",this.sigintCallback),this.sigintCallback=null),this.isActive=!1,!0===this.options.hideCursor&&this.terminal.cursor(!0),!1===this.options.linewrap&&this.terminal.lineWrapping(!0),this.terminal.cursorRelativeReset(),this.emit("stop-pre-clear"),this.options.clearOnComplete)this.terminal.clearBottom();else{for(let e=0;e<this.bars.length;e++)e>0&&this.terminal.newline(),this.bars[e].render(),this.bars[e].stop();this.terminal.newline()}this.emit("stop")}log(e){this.loggingBuffer.push(e)}};var rr={Bar:or,SingleBar:or,MultiBar:sr,Presets:ir,Format:{Formatter:Hs,BarFormat:Ns,ValueFormat:Ps,TimeFormat:zs}};const cr=(e,n)=>"flaky"===e?e:n,ur=async(e,{url:n,headers:t},a)=>{const i=e.byteLength/1024>1024?"MB":"KB";const o=new rr.Bar({format:`Uploading ${a} [{bar}] | {value}/{total} ${i} - ETA: {eta_formatted}`,clearOnComplete:!0},rr.Presets.rect);return o.start(Cs(e.byteLength,i),0),await((e,{url:n,headers:t},a)=>is.put(n,e,{...a,headers:t}))(e,{url:n,headers:t},{onUploadProgress:e=>{e.total&&e.lengthComputable&&o.update(Cs(e.loaded,i))}}),o};var pr={exports:{}};
|
|
9
|
-
/*! https://mths.be/wtf8 v1.0.1 by @mathias */!function(e,n){!function(t){var a=n,i=e&&e.exports==a&&e,o="object"==typeof v&&v;o.global!==o&&o.window!==o||(t=o);var s,r,c,u=String.fromCharCode;function p(e){for(var n,t,a=[],i=0,o=e.length;i<o;)(n=e.charCodeAt(i++))>=55296&&n<=56319&&i<o?56320==(64512&(t=e.charCodeAt(i++)))?a.push(((1023&n)<<10)+(1023&t)+65536):(a.push(n),i--):a.push(n);return a}function l(e,n){return u(e>>n&63|128)}function d(e){if(!(4294967168&e))return u(e);var n="";return 4294965248&e?4294901760&e?4292870144&e||(n=u(e>>18&7|240),n+=l(e,12),n+=l(e,6)):(n=u(e>>12&15|224),n+=l(e,6)):n=u(e>>6&31|192),n+=u(63&e|128)}function m(){if(c>=r)throw Error("Invalid byte index");var e=255&s[c];if(c++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function f(){var e,n;if(c>r)throw Error("Invalid byte index");if(c==r)return!1;if(e=255&s[c],c++,!(128&e))return e;if(192==(224&e)){if((n=(31&e)<<6|m())>=128)return n;throw Error("Invalid continuation byte")}if(224==(240&e)){if((n=(15&e)<<12|m()<<6|m())>=2048)return n;throw Error("Invalid continuation byte")}if(240==(248&e)&&(n=(15&e)<<18|m()<<12|m()<<6|m())>=65536&&n<=1114111)return n;throw Error("Invalid WTF-8 detected")}var h={version:"1.0.1",encode:function(e){for(var n=p(e),t=n.length,a=-1,i="";++a<t;)i+=d(n[a]);return i},decode:function(e){s=p(e),r=s.length,c=0;for(var n,t=[];!1!==(n=f());)t.push(n);return function(e){for(var n,t=e.length,a=-1,i="";++a<t;)(n=e[a])>65535&&(i+=u((n-=65536)>>>10&1023|55296),n=56320|1023&n),i+=u(n);return i}(t)}};if(a&&!a.nodeType)if(i)i.exports=h;else{var x={}.hasOwnProperty;for(var b in h)x.call(h,b)&&(a[b]=h[b])}else t.wtf8=h}(v)}(pr,pr.exports);var lr=pr.exports;const dr=async(e,n,{status:a,duration:i,errors:o,error:s,retry:r,attachments:u})=>{const p=new Date,{currentShard:l,rootDir:d,ciBuildId:m}=e,{title:f,repeatEachIndex:h}=n,{historyId:v}=vs(n,d),x=n.outcome(),b=Cn(r,h),g={shard:l,isExpected:"expected"===x,repeatEachIndex:h,status:cr(x,a)};try{const n={outcome:g,status:a,duration:i,log:lr.encode(o.map((e=>{var n;return null!==(n=e.message)&&void 0!==n?n:""})).join("\n")),screenshots:[],videos:[],traces:[],completedAt:p.toString(),errorSnippet:s&&ws(s)};await wn((()=>e.startedAttempts.has(Cn(v,b)))),gn.underline(f);const r=u.map((({name:e,path:n,body:a,contentType:i})=>{if(ys.includes(e)){const o=n?t.readFileSync(n):a,s=((e,n,t)=>null!=e?e:`${n}.${t.split("/")[1]}`)(n,e,i),{file:r,...u}=((e,n,t)=>{const a=e.byteLength;return{file:e,filename:t,checksum:c.createHash("md5").update(e).digest("base64"),byteSize:a,contentType:n}})(o,i,s);return{file:r,metadata:u,name:e}}})).filter((e=>void 0!==e)),l={metadata:ee("metadata",r)},{data:d}=await(e=>is.post(`${os}/reporter/direct_uploads`,{blob:e}))(l),h=await Promise.all(d.map((async({signedId:e,directUpload:t},a)=>{var i,o;return n[`${null===(i=r[a])||void 0===i?void 0:i.name}s`].push(e),ur(r[a].file,t,`${f} - ${null===(o=r[a])||void 0===o?void 0:o.name}`)})));e.progressBars.push(...h);const x=Ds(m,v,e.attempts[v][b],n);e.testResultCalls.push(x),await x,gn.log(ms.reportedTest({title:f,status:a,historyId:v,completedAt:p}))}catch(s){await Fn({context:{historyId:v,attemptIndex:b,title:f,status:a,outcome:g,duration:i,completedAt:p},error:s,title:"onTestEnd"}),gn.error(s.message),gn.error(fn.failedToReportTest(f,v)),await bs(m)}finally{e.unreportedAttemptCount--,e.startedAttempts.delete(Cn(v,b))}},mr=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 fr="axios-retry";function hr(e){return!e.response&&(!!e.code&&(!["ERR_CANCELED","ECONNABORTED"].includes(e.code)&&(e=>!mr.has(e&&e.code))(e)))}const vr=["get","head","options"],xr=vr.concat(["put","delete"]);function br(e){return"ECONNABORTED"!==e.code&&(!e.response||429===e.response.status||e.response.status>=500&&e.response.status<=599)}function gr(e){return!!e.config?.method&&(br(e)&&-1!==xr.indexOf(e.config.method))}function Dr(e){return hr(e)||gr(e)}function yr(e=void 0){const n=e?.response?.headers["retry-after"];if(!n)return 0;let t=1e3*(Number(n)||0);return 0===t&&(t=(new Date(n).valueOf()||0)-Date.now()),Math.max(0,t)}const wr={retries:3,retryCondition:Dr,retryDelay:function(e=0,n=void 0){return Math.max(0,yr(n))},shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function _r(e,n,t=!1){const a=function(e,n){return{...wr,...n,...e[fr]}}(e,n||{});return a.retryCount=a.retryCount||0,a.lastRequestTime&&!t||(a.lastRequestTime=Date.now()),e[fr]=a,a}const Cr=(e,n)=>{const t=e.interceptors.request.use((e=>(_r(e,n,!0),e[fr]?.validateResponse&&(e.validateStatus=()=>!1),e))),a=e.interceptors.response.use(null,(async t=>{const{config:a}=t;if(!a)return Promise.reject(t);const i=_r(a,n);return t.response&&i.validateResponse?.(t.response)?t.response:await async function(e,n){const{retries:t,retryCondition:a}=e,i=(e.retryCount||0)<t&&a(n);if("object"==typeof i)try{return!1!==await i}catch(e){return!1}return i}(i,t)?async function(e,n,t,a){n.retryCount+=1;const{retryDelay:i,shouldResetTimeout:o,onRetry:s}=n,r=i(n.retryCount,t);if(function(e,n){e.defaults.agent===n.agent&&delete n.agent,e.defaults.httpAgent===n.httpAgent&&delete n.httpAgent,e.defaults.httpsAgent===n.httpsAgent&&delete n.httpsAgent}(e,a),!o&&a.timeout&&n.lastRequestTime){const e=Date.now()-n.lastRequestTime,i=a.timeout-e-r;if(i<=0)return Promise.reject(t);a.timeout=i}return a.transformRequest=[e=>e],await s(n.retryCount,t,a),a.signal?.aborted?Promise.resolve(e(a)):new Promise((n=>{const t=()=>{clearTimeout(i),n(e(a))},i=setTimeout((()=>{n(e(a)),a.signal?.removeEventListener&&a.signal.removeEventListener("abort",t)}),r);a.signal?.addEventListener&&a.signal.addEventListener("abort",t,{once:!0})}))}(e,i,t,a):(await async function(e,n){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(n,e.retryCount)}(i,t),Promise.reject(t))}));return{requestInterceptorId:t,responseInterceptorId:a}};Cr.isNetworkError=hr,Cr.isSafeRequestError=function(e){return!!e.config?.method&&(br(e)&&-1!==vr.indexOf(e.config.method))},Cr.isIdempotentRequestError=gr,Cr.isNetworkOrIdempotentRequestError=Dr,Cr.exponentialDelay=function(e=0,n=void 0,t=100){const a=2**e*t,i=Math.max(a,yr(n));return i+.2*i*Math.random()},Cr.linearDelay=function(e=100){return(n=0,t=void 0)=>{const a=n*e;return Math.max(a,yr(t))}},Cr.isRetryableError=br;const Er="Content-Type",Fr="Accept",kr="X-Api-Key",jr="Project-Key",Tr=e=>e===Object(e)&&!(e instanceof Buffer);function Or({projectKey:e,baseURL:n,apiKey:t}){is.defaults.baseURL=null!=n?n:"https://connect.neetoplaydash.com",is.defaults.skipSnakeCaseConversion=!1,(({projectKey:e,apiKey:n})=>{is.defaults.headers={...is.defaults.headers,[jr]:e,[kr]:null!=n?n:"",[Fr]:"application/json",[Er]:"application/json"}})({projectKey:e,apiKey:t}),is.interceptors.request.use((e=>{const n=e.data;return Tr(n)&&!e.skipSnakeCaseConversion&&(e.data=dn(n,(function(e,n){return[ln(e),n]}))),e})),is.interceptors.response.use((e=>{const n=e.data;return Tr(n)&&(e.data=dn(n,(function(e,n){return[(t=e,t.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))),n];var t}))),e})),Cr(is,{retryDelay:Cr.exponentialDelay,retryCondition:e=>{var n;const t=null===(n=e.status)||void 0===n?void 0:n.toString();return!!t&&t.startsWith("5")},retries:2})}module.exports=class{constructor(e){var n;this.onBegin=(e,n)=>(async(e,n,t)=>{var a,i,o,s;const r=n.shard;e.config=n;const c=e.currentShard=null!==(a=null==r?void 0:r.current)&&void 0!==a?a:0;let u={};if(D.setContext({ciBuildId:e.ciBuildId,currentShard:null==r?void 0:r.current,rootDir:n.rootDir}),e.totalTestCount=t.allTests().length,e.rootDir=n.rootDir,0===e.totalTestCount)return gn.error(mn.noTestsToReport),void(e.hasRunStarted=!0);const p={commitId:hs({command:"git rev-parse HEAD",messageOnError:mn.failedToGetCommitSha}),commitName:hs({command:"git show-branch --no-name HEAD",messageOnError:mn.failedToGetCommitMessage}),author:hs({command:"git show -s --format='%an' HEAD",messageOnError:mn.failedToGetBranch}),branch:hs({command:"git branch --show-current",messageOnError:mn.failedToGetBranch}),tags:"string"==typeof e.tags?e.tags.split(","):e.tags,ciBuildId:e.ciBuildId,configuration:{...n,baseDir:process.cwd()},shards:Dn({currentShard:c})};try{await ss(p),e.hasRunStarted=!0,({data:u}=await us(e.ciBuildId,{testEntities:xs(n,t),shard:c}))}catch(e){const a=e,r=null===(i=a.response)||void 0===i?void 0:i.data;gn.error(null!==(o=null==r?void 0:r.error)&&void 0!==o?o:a.message),gn.error(mn.failedToInitializeRun),await Fn({context:{...p,testEntities:xs(n,t)},error:e,title:"onBegin"}),422===(null===(s=a.response)||void 0===s?void 0:s.status)&&(process.kill(process.pid,"SIGKILL"),process.exit(1))}gn.log(ls.testData(e.ciBuildId,r)),await bs(e.ciBuildId),e.heartbeatInterval=setInterval((async()=>await bs(e.ciBuildId)),45e3),e.attempts=u})(this,e,n),this.onTestBegin=(e,n)=>(async(e,n,{retry:t})=>{const{title:a,repeatEachIndex:i}=n,{rootDir:o,currentShard:s,ciBuildId:r}=e,{historyId:c}=vs(n,o),u=(new Date).toString(),p=Cn(t,i);e.unreportedAttemptCount++;try{await wn((()=>{var n,t;return null===(t=null===(n=e.attempts)||void 0===n?void 0:n[c])||void 0===t?void 0:t["0-0"]})),gn.invertBackground(ds.startingTest(a,c));const n={status:"running",startedAt:u,shard:s,repeatEachIndex:i};if(0===t&&0===i)await Ds(r,c,e.attempts[c]["0-0"],n);else{const{data:{attemptId:t}}=await gs(r,c,n);e.attempts=de(e.attempts,{[c]:{[p]:t}})}e.startedAttempts.add(Cn(c,p))}catch(e){await Fn({context:{historyId:c,attemptIndex:p,title:a},error:e,title:"onTestBegin"}),gn.error(e.message),gn.error(fn.failedToReportTest(a,c)),await bs(r)}})(this,e,n),this.onTestEnd=async(e,n)=>dr(this,e,n),this.onEnd=async e=>(async(e,{status:n,duration:t})=>{var a,i;const{currentShard:o}=e;try{if(0===e.totalTestCount)return;await wn((()=>e.hasRunStarted&&0===e.unreportedAttemptCount)),await Promise.allSettled(e.testResultCalls),await rs(e.ciBuildId,{shards:Dn({currentShard:o,status:n,duration:t})})}catch(e){const o=null===(a=e.response)||void 0===a?void 0:a.data;await Fn({context:{runStatus:n,runDuration:t},error:e,title:"onEnd"}),gn.error(null!==(i=o.error)&&void 0!==i?i:e.message),gn.error(hn.failedToReportRunStatus)}finally{gn.invertBackground(fs.runReported),clearInterval(e.heartbeatInterval)}})(this,e),this.attempts={},this.tags=e.tags,this.ciBuildId=e.ciBuildId,this.testResultCalls=[],this.totalTestCount=0,this.unreportedAttemptCount=0,this.hasRunStarted=!1,this.heartbeatInterval=null,this.rootDir="",this.currentShard=0,this.progressBars=[],this.startedAttempts=new Set,D.configure({apiKey:En("9d5d98e72929dae3c8b3701f50032da1a02b80f9dc29a8e448a601871e5c82fd0ac2fa33c46443709cdb3eabc54a06ab"),environment:(null===(n=null==e?void 0:e.baseURL)||void 0===n?void 0:n.includes(".net"))?"staging":"production"}),D.setContext(e),((e,n)=>{Or(n),process.on("unhandledRejection",(async n=>{var t,a,i;const o=null===(t=n.response)||void 0===t?void 0:t.data;await Fn({context:{},error:n,title:"unhandledRejection"}),await bs(e.ciBuildId),gn.error(null!==(i=null!==(a=null==o?void 0:o.error)&&void 0!==a?a:n.message)&&void 0!==i?i:JSON.stringify(n))}))})(this,e)}};
|
|
8
|
+
function(e){var n,t,i,o=Ot.exports,s=a.extname,r=/^\s*([^;\s]*)(?:;|\s|$)/,c=/^text\//i;function u(e){if(!e||"string"!=typeof e)return!1;var n=r.exec(e),t=n&&o[n[1].toLowerCase()];return t&&t.charset?t.charset:!(!n||!c.test(n[1]))&&"UTF-8"}e.charset=u,e.charsets={lookup:u},e.contentType=function(n){if(!n||"string"!=typeof n)return!1;var t=-1===n.indexOf("/")?e.lookup(n):n;if(!t)return!1;if(-1===t.indexOf("charset")){var a=e.charset(t);a&&(t+="; charset="+a.toLowerCase())}return t},e.extension=function(n){if(!n||"string"!=typeof n)return!1;var t=r.exec(n),a=t&&e.extensions[t[1].toLowerCase()];if(!a||!a.length)return!1;return a[0]},e.extensions=Object.create(null),e.lookup=function(n){if(!n||"string"!=typeof n)return!1;var t=s("x."+n).toLowerCase().substr(1);if(!t)return!1;return e.types[t]||!1},e.types=Object.create(null),n=e.extensions,t=e.types,i=["nginx","apache",void 0,"iana"],Object.keys(o).forEach((function(e){var a=o[e],s=a.extensions;if(s&&s.length){n[e]=s;for(var r=0;r<s.length;r++){var c=s[r];if(t[c]){var u=i.indexOf(o[t[c]].source),p=i.indexOf(a.source);if("application/octet-stream"!==t[c]&&(u>p||u===p&&"application/"===t[c].substr(0,12)))continue}t[c]=e}}}))}(Tt);var St=function(e){var n="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;n?n(e):setTimeout(e,0)},At=function(e){var n=!1;return St((function(){n=!0})),function(t,a){n?e(t,a):St((function(){e(t,a)}))}};var Rt=function(e){Object.keys(e.jobs).forEach(Bt.bind(e)),e.jobs={}};function Bt(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}var Lt=At,Pt=Rt,Nt=function(e,n,t,a){var i=t.keyedList?t.keyedList[t.index]:t.index;t.jobs[i]=function(e,n,t,a){var i;i=2==e.length?e(t,Lt(a)):e(t,n,Lt(a));return i}(n,i,e[i],(function(e,n){i in t.jobs&&(delete t.jobs[i],e?Pt(t):t.results[i]=n,a(e,t.results))}))};var zt=function(e,n){var t=!Array.isArray(e),a={index:0,keyedList:t||n?Object.keys(e):null,jobs:{},results:t?{}:[],size:t?Object.keys(e).length:e.length};n&&a.keyedList.sort(t?n:function(t,a){return n(e[t],e[a])});return a};var It=Rt,Ut=At,qt=function(e){if(!Object.keys(this.jobs).length)return;this.index=this.size,It(this),Ut(e)(null,this.results)};var Mt=Nt,Ht=zt,$t=qt,Gt=function(e,n,t){var a=Ht(e);for(;a.index<(a.keyedList||e).length;)Mt(e,n,a,(function(e,n){e?t(e,n):0!==Object.keys(a.jobs).length||t(null,a.results)})),a.index++;return $t.bind(a,t)};var Wt={exports:{}},Kt=Nt,Vt=zt,Yt=qt;function Jt(e,n){return e<n?-1:e>n?1:0}Wt.exports=function(e,n,t,a){var i=Vt(e,t);return Kt(e,n,i,(function t(o,s){o?a(o,s):(i.index++,i.index<(i.keyedList||e).length?Kt(e,n,i,t):a(null,i.results))})),Yt.bind(i,a)},Wt.exports.ascending=Jt,Wt.exports.descending=function(e,n){return-1*Jt(e,n)};var Xt=Wt.exports;var Zt={parallel:Gt,serial:function(e,n,t){return Xt(e,n,null,t)},serialOrdered:Wt.exports},Qt=kt,ea=i,na=a,ta=s,aa=r,ia=o.parse,oa=t,sa=u.Stream,ra=Tt,ca=Zt,ua=function(e,n){return Object.keys(n).forEach((function(t){e[t]=e[t]||n[t]})),e},pa=la;function la(e){if(!(this instanceof la))return new la(e);for(var n in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Qt.call(this),e=e||{})this[n]=e[n]}function da(e){return xt.isPlainObject(e)||xt.isArray(e)}function ma(e){return xt.endsWith(e,"[]")?e.slice(0,-2):e}function fa(e,n,t){return e?e.concat(n).map((function(e,n){return e=ma(e),!t&&n?"["+e+"]":e})).join(t?".":""):n}ea.inherits(la,Qt),la.LINE_BREAK="\r\n",la.DEFAULT_CONTENT_TYPE="application/octet-stream",la.prototype.append=function(e,n,t){"string"==typeof(t=t||{})&&(t={filename:t});var a=Qt.prototype.append.bind(this);if("number"==typeof n&&(n=""+n),ea.isArray(n))this._error(new Error("Arrays are not supported."));else{var i=this._multiPartHeader(e,n,t),o=this._multiPartFooter();a(i),a(n),a(o),this._trackLength(i,n,t)}},la.prototype._trackLength=function(e,n,t){var a=0;null!=t.knownLength?a+=+t.knownLength:Buffer.isBuffer(n)?a=n.length:"string"==typeof n&&(a=Buffer.byteLength(n)),this._valueLength+=a,this._overheadLength+=Buffer.byteLength(e)+la.LINE_BREAK.length,n&&(n.path||n.readable&&n.hasOwnProperty("httpVersion")||n instanceof sa)&&(t.knownLength||this._valuesToMeasure.push(n))},la.prototype._lengthRetriever=function(e,n){e.hasOwnProperty("fd")?null!=e.end&&e.end!=1/0&&null!=e.start?n(null,e.end+1-(e.start?e.start:0)):oa.stat(e.path,(function(t,a){var i;t?n(t):(i=a.size-(e.start?e.start:0),n(null,i))})):e.hasOwnProperty("httpVersion")?n(null,+e.headers["content-length"]):e.hasOwnProperty("httpModule")?(e.on("response",(function(t){e.pause(),n(null,+t.headers["content-length"])})),e.resume()):n("Unknown stream")},la.prototype._multiPartHeader=function(e,n,t){if("string"==typeof t.header)return t.header;var a,i=this._getContentDisposition(n,t),o=this._getContentType(n,t),s="",r={"Content-Disposition":["form-data",'name="'+e+'"'].concat(i||[]),"Content-Type":[].concat(o||[])};for(var c in"object"==typeof t.header&&ua(r,t.header),r)r.hasOwnProperty(c)&&null!=(a=r[c])&&(Array.isArray(a)||(a=[a]),a.length&&(s+=c+": "+a.join("; ")+la.LINE_BREAK));return"--"+this.getBoundary()+la.LINE_BREAK+s+la.LINE_BREAK},la.prototype._getContentDisposition=function(e,n){var t,a;return"string"==typeof n.filepath?t=na.normalize(n.filepath).replace(/\\/g,"/"):n.filename||e.name||e.path?t=na.basename(n.filename||e.name||e.path):e.readable&&e.hasOwnProperty("httpVersion")&&(t=na.basename(e.client._httpMessage.path||"")),t&&(a='filename="'+t+'"'),a},la.prototype._getContentType=function(e,n){var t=n.contentType;return!t&&e.name&&(t=ra.lookup(e.name)),!t&&e.path&&(t=ra.lookup(e.path)),!t&&e.readable&&e.hasOwnProperty("httpVersion")&&(t=e.headers["content-type"]),t||!n.filepath&&!n.filename||(t=ra.lookup(n.filepath||n.filename)),t||"object"!=typeof e||(t=la.DEFAULT_CONTENT_TYPE),t},la.prototype._multiPartFooter=function(){return function(e){var n=la.LINE_BREAK;0===this._streams.length&&(n+=this._lastBoundary()),e(n)}.bind(this)},la.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+la.LINE_BREAK},la.prototype.getHeaders=function(e){var n,t={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(n in e)e.hasOwnProperty(n)&&(t[n.toLowerCase()]=e[n]);return t},la.prototype.setBoundary=function(e){this._boundary=e},la.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},la.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),n=this.getBoundary(),t=0,a=this._streams.length;t<a;t++)"function"!=typeof this._streams[t]&&(e=Buffer.isBuffer(this._streams[t])?Buffer.concat([e,this._streams[t]]):Buffer.concat([e,Buffer.from(this._streams[t])]),"string"==typeof this._streams[t]&&this._streams[t].substring(2,n.length+2)===n||(e=Buffer.concat([e,Buffer.from(la.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},la.prototype._generateBoundary=function(){for(var e="--------------------------",n=0;n<24;n++)e+=Math.floor(10*Math.random()).toString(16);this._boundary=e},la.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},la.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},la.prototype.getLength=function(e){var n=this._overheadLength+this._valueLength;this._streams.length&&(n+=this._lastBoundary().length),this._valuesToMeasure.length?ca.parallel(this._valuesToMeasure,this._lengthRetriever,(function(t,a){t?e(t):(a.forEach((function(e){n+=e})),e(null,n))})):process.nextTick(e.bind(this,null,n))},la.prototype.submit=function(e,n){var t,a,i={method:"post"};return"string"==typeof e?(e=ia(e),a=ua({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},i)):(a=ua(e,i)).port||(a.port="https:"==a.protocol?443:80),a.headers=this.getHeaders(e.headers),t="https:"==a.protocol?aa.request(a):ta.request(a),this.getLength(function(e,a){if(e&&"Unknown stream"!==e)this._error(e);else if(a&&t.setHeader("Content-Length",a),this.pipe(t),n){var i,o=function(e,a){return t.removeListener("error",o),t.removeListener("response",i),n.call(this,e,a)};i=o.bind(this,null),t.on("error",o),t.on("response",i)}}.bind(this)),t},la.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},la.prototype.toString=function(){return"[object FormData]"};const ha=xt.toFlatObject(xt,{},null,(function(e){return/^is[A-Z]/.test(e)}));function va(e,n,t){if(!xt.isObject(e))throw new TypeError("target must be an object");n=n||new(pa||FormData);const a=(t=xt.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,n){return!xt.isUndefined(n[e])}))).metaTokens,i=t.visitor||u,o=t.dots,s=t.indexes,r=(t.Blob||"undefined"!=typeof Blob&&Blob)&&xt.isSpecCompliantForm(n);if(!xt.isFunction(i))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(xt.isDate(e))return e.toISOString();if(!r&&xt.isBlob(e))throw new bt("Blob is not supported. Use a Buffer instead.");return xt.isArrayBuffer(e)||xt.isTypedArray(e)?r&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,t,i){let r=e;if(e&&!i&&"object"==typeof e)if(xt.endsWith(t,"{}"))t=a?t:t.slice(0,-2),e=JSON.stringify(e);else if(xt.isArray(e)&&function(e){return xt.isArray(e)&&!e.some(da)}(e)||(xt.isFileList(e)||xt.endsWith(t,"[]"))&&(r=xt.toArray(e)))return t=ma(t),r.forEach((function(e,a){!xt.isUndefined(e)&&null!==e&&n.append(!0===s?fa([t],a,o):null===s?t:t+"[]",c(e))})),!1;return!!da(e)||(n.append(fa(i,t,o),c(e)),!1)}const p=[],l=Object.assign(ha,{defaultVisitor:u,convertValue:c,isVisitable:da});if(!xt.isObject(e))throw new TypeError("data must be an object");return function e(t,a){if(!xt.isUndefined(t)){if(-1!==p.indexOf(t))throw Error("Circular reference detected in "+a.join("."));p.push(t),xt.forEach(t,(function(t,o){!0===(!(xt.isUndefined(t)||null===t)&&i.call(n,t,xt.isString(o)?o.trim():o,a,l))&&e(t,a?a.concat(o):[o])})),p.pop()}}(e),n}function xa(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return n[e]}))}function ba(e,n){this._pairs=[],e&&va(e,this,n)}const ga=ba.prototype;function Da(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ya(e,n,t){if(!n)return e;const a=t&&t.encode||Da,i=t&&t.serialize;let o;if(o=i?i(n,t):xt.isURLSearchParams(n)?n.toString():new ba(n,t).toString(a),o){const n=e.indexOf("#");-1!==n&&(e=e.slice(0,n)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}ga.append=function(e,n){this._pairs.push([e,n])},ga.toString=function(e){const n=e?function(n){return e.call(this,n,xa)}:xa;return this._pairs.map((function(e){return n(e[0])+"="+n(e[1])}),"").join("&")};class wa{constructor(){this.handlers=[]}use(e,n,t){return this.handlers.push({fulfilled:e,rejected:n,synchronous:!!t&&t.synchronous,runWhen:t?t.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){xt.forEach(this.handlers,(function(n){null!==n&&e(n)}))}}var _a={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ca={isNode:!0,classes:{URLSearchParams:o.URLSearchParams,FormData:pa,Blob:"undefined"!=typeof Blob&&Blob||null},protocols:["http","https","file","data"]};const Ea="undefined"!=typeof window&&"undefined"!=typeof document,Fa="object"==typeof navigator&&navigator||void 0,ka=Ea&&(!Fa||["ReactNative","NativeScript","NS"].indexOf(Fa.product)<0),ja="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ta=Ea&&window.location.href||"http://localhost";var Oa={...Object.freeze({__proto__:null,hasBrowserEnv:Ea,hasStandardBrowserEnv:ka,hasStandardBrowserWebWorkerEnv:ja,navigator:Fa,origin:Ta}),...Ca};function Sa(e){function n(e,t,a,i){let o=e[i++];if("__proto__"===o)return!0;const s=Number.isFinite(+o),r=i>=e.length;if(o=!o&&xt.isArray(a)?a.length:o,r)return xt.hasOwnProp(a,o)?a[o]=[a[o],t]:a[o]=t,!s;a[o]&&xt.isObject(a[o])||(a[o]=[]);return n(e,t,a[o],i)&&xt.isArray(a[o])&&(a[o]=function(e){const n={},t=Object.keys(e);let a;const i=t.length;let o;for(a=0;a<i;a++)o=t[a],n[o]=e[o];return n}(a[o])),!s}if(xt.isFormData(e)&&xt.isFunction(e.entries)){const t={};return xt.forEachEntry(e,((e,a)=>{n(function(e){return xt.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),a,t,0)})),t}return null}const Aa={transitional:_a,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const t=n.getContentType()||"",a=t.indexOf("application/json")>-1,i=xt.isObject(e);i&&xt.isHTMLForm(e)&&(e=new FormData(e));if(xt.isFormData(e))return a?JSON.stringify(Sa(e)):e;if(xt.isArrayBuffer(e)||xt.isBuffer(e)||xt.isStream(e)||xt.isFile(e)||xt.isBlob(e)||xt.isReadableStream(e))return e;if(xt.isArrayBufferView(e))return e.buffer;if(xt.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(t.indexOf("application/x-www-form-urlencoded")>-1)return function(e,n){return va(e,new Oa.classes.URLSearchParams,Object.assign({visitor:function(e,n,t,a){return Oa.isNode&&xt.isBuffer(e)?(this.append(n,e.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},n))}(e,this.formSerializer).toString();if((o=xt.isFileList(e))||t.indexOf("multipart/form-data")>-1){const n=this.env&&this.env.FormData;return va(o?{"files[]":e}:e,n&&new n,this.formSerializer)}}return i||a?(n.setContentType("application/json",!1),function(e,n,t){if(xt.isString(e))try{return(n||JSON.parse)(e),xt.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(t||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const n=this.transitional||Aa.transitional,t=n&&n.forcedJSONParsing,a="json"===this.responseType;if(xt.isResponse(e)||xt.isReadableStream(e))return e;if(e&&xt.isString(e)&&(t&&!this.responseType||a)){const t=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(e){if(t){if("SyntaxError"===e.name)throw bt.from(e,bt.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:Oa.classes.FormData,Blob:Oa.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};xt.forEach(["delete","get","head","post","put","patch"],(e=>{Aa.headers[e]={}}));const Ra=xt.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 Ba=Symbol("internals");function La(e){return e&&String(e).trim().toLowerCase()}function Pa(e){return!1===e||null==e?e:xt.isArray(e)?e.map(Pa):String(e)}function Na(e,n,t,a,i){return xt.isFunction(a)?a.call(this,n,t):(i&&(n=t),xt.isString(n)?xt.isString(a)?-1!==n.indexOf(a):xt.isRegExp(a)?a.test(n):void 0:void 0)}class za{constructor(e){e&&this.set(e)}set(e,n,t){const a=this;function i(e,n,t){const i=La(n);if(!i)throw new Error("header name must be a non-empty string");const o=xt.findKey(a,i);(!o||void 0===a[o]||!0===t||void 0===t&&!1!==a[o])&&(a[o||n]=Pa(e))}const o=(e,n)=>xt.forEach(e,((e,t)=>i(e,t,n)));if(xt.isPlainObject(e)||e instanceof this.constructor)o(e,n);else if(xt.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const n={};let t,a,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),t=e.substring(0,i).trim().toLowerCase(),a=e.substring(i+1).trim(),!t||n[t]&&Ra[t]||("set-cookie"===t?n[t]?n[t].push(a):n[t]=[a]:n[t]=n[t]?n[t]+", "+a:a)})),n})(e),n);else if(xt.isHeaders(e))for(const[n,a]of e.entries())i(a,n,t);else null!=e&&i(n,e,t);return this}get(e,n){if(e=La(e)){const t=xt.findKey(this,e);if(t){const e=this[t];if(!n)return e;if(!0===n)return function(e){const n=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=t.exec(e);)n[a[1]]=a[2];return n}(e);if(xt.isFunction(n))return n.call(this,e,t);if(xt.isRegExp(n))return n.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=La(e)){const t=xt.findKey(this,e);return!(!t||void 0===this[t]||n&&!Na(0,this[t],t,n))}return!1}delete(e,n){const t=this;let a=!1;function i(e){if(e=La(e)){const i=xt.findKey(t,e);!i||n&&!Na(0,t[i],i,n)||(delete t[i],a=!0)}}return xt.isArray(e)?e.forEach(i):i(e),a}clear(e){const n=Object.keys(this);let t=n.length,a=!1;for(;t--;){const i=n[t];e&&!Na(0,this[i],i,e,!0)||(delete this[i],a=!0)}return a}normalize(e){const n=this,t={};return xt.forEach(this,((a,i)=>{const o=xt.findKey(t,i);if(o)return n[o]=Pa(a),void delete n[i];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,n,t)=>n.toUpperCase()+t))}(i):String(i).trim();s!==i&&delete n[i],n[s]=Pa(a),t[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return xt.forEach(this,((t,a)=>{null!=t&&!1!==t&&(n[a]=e&&xt.isArray(t)?t.join(", "):t)})),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,n])=>e+": "+n)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const t=new this(e);return n.forEach((e=>t.set(e))),t}static accessor(e){const n=(this[Ba]=this[Ba]={accessors:{}}).accessors,t=this.prototype;function a(e){const a=La(e);n[a]||(!function(e,n){const t=xt.toCamelCase(" "+n);["get","set","has"].forEach((a=>{Object.defineProperty(e,a+t,{value:function(e,t,i){return this[a].call(this,n,e,t,i)},configurable:!0})}))}(t,e),n[a]=!0)}return xt.isArray(e)?e.forEach(a):a(e),this}}function Ia(e,n){const t=this||Aa,a=n||t,i=za.from(a.headers);let o=a.data;return xt.forEach(e,(function(e){o=e.call(t,o,i.normalize(),n?n.status:void 0)})),i.normalize(),o}function Ua(e){return!(!e||!e.__CANCEL__)}function qa(e,n,t){bt.call(this,null==e?"canceled":e,bt.ERR_CANCELED,n,t),this.name="CanceledError"}function Ma(e,n,t){const a=t.config.validateStatus;t.status&&a&&!a(t.status)?n(new bt("Request failed with status code "+t.status,[bt.ERR_BAD_REQUEST,bt.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t)):e(t)}function Ha(e,n){return e&&!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(n)?function(e,n){return n?e.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):e}(e,n):n}za.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),xt.reduceDescriptors(za.prototype,(({value:e},n)=>{let t=n[0].toUpperCase()+n.slice(1);return{get:()=>e,set(e){this[t]=e}}})),xt.freezeMethods(za),xt.inherits(qa,bt,{__CANCEL__:!0});var $a=o.parse,Ga={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},Wa=String.prototype.endsWith||function(e){return e.length<=this.length&&-1!==this.indexOf(e,this.length-e.length)};function Ka(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}var Va,Ya,Ja,Xa,Za,Qa=function(e){var n="string"==typeof e?$a(e):e||{},t=n.protocol,a=n.host,i=n.port;if("string"!=typeof a||!a||"string"!=typeof t)return"";if(t=t.split(":",1)[0],!function(e,n){var t=(Ka("npm_config_no_proxy")||Ka("no_proxy")).toLowerCase();if(!t)return!0;if("*"===t)return!1;return t.split(/[,\s]/).every((function(t){if(!t)return!0;var a=t.match(/^(.+):(\d+)$/),i=a?a[1]:t,o=a?parseInt(a[2]):0;return!(!o||o===n)||(/^[.*]/.test(i)?("*"===i.charAt(0)&&(i=i.slice(1)),!Wa.call(e,i)):e!==i)}))}(a=a.replace(/:\d*$/,""),i=parseInt(i)||Ga[t]||0))return"";var o=Ka("npm_config_"+t+"_proxy")||Ka(t+"_proxy")||Ka("npm_config_proxy")||Ka("all_proxy");return o&&-1===o.indexOf("://")&&(o=t+"://"+o),o},ei={exports:{}},ni={exports:{}},ti={exports:{}};function ai(){if(Ya)return Va;Ya=1;var e=1e3,n=60*e,t=60*n,a=24*t,i=7*a,o=365.25*a;function s(e,n,t,a){var i=n>=1.5*t;return Math.round(e/t)+" "+a+(i?"s":"")}return Va=function(r,c){c=c||{};var u=typeof r;if("string"===u&&r.length>0)return function(s){if((s=String(s)).length>100)return;var r=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(s);if(!r)return;var c=parseFloat(r[1]);switch((r[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*o;case"weeks":case"week":case"w":return c*i;case"days":case"day":case"d":return c*a;case"hours":case"hour":case"hrs":case"hr":case"h":return c*t;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(r);if("number"===u&&isFinite(r))return c.long?function(i){var o=Math.abs(i);if(o>=a)return s(i,o,a,"day");if(o>=t)return s(i,o,t,"hour");if(o>=n)return s(i,o,n,"minute");if(o>=e)return s(i,o,e,"second");return i+" ms"}(r):function(i){var o=Math.abs(i);if(o>=a)return Math.round(i/a)+"d";if(o>=t)return Math.round(i/t)+"h";if(o>=n)return Math.round(i/n)+"m";if(o>=e)return Math.round(i/e)+"s";return i+"ms"}(r);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(r))},Va}function ii(){if(Xa)return Ja;return Xa=1,Ja=function(e){function n(e){let a,i,o,s=null;function r(...e){if(!r.enabled)return;const t=r,i=Number(new Date),o=i-(a||i);t.diff=o,t.prev=a,t.curr=i,a=i,e[0]=n.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((a,i)=>{if("%%"===a)return"%";s++;const o=n.formatters[i];if("function"==typeof o){const n=e[s];a=o.call(t,n),e.splice(s,1),s--}return a})),n.formatArgs.call(t,e);(t.log||n.log).apply(t,e)}return r.namespace=e,r.useColors=n.useColors(),r.color=n.selectColor(e),r.extend=t,r.destroy=n.destroy,Object.defineProperty(r,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(i!==n.namespaces&&(i=n.namespaces,o=n.enabled(e)),o),set:e=>{s=e}}),"function"==typeof n.init&&n.init(r),r}function t(e,t){const a=n(this.namespace+(void 0===t?":":t)+e);return a.log=this.log,a}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return n.debug=n,n.default=n,n.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},n.disable=function(){const e=[...n.names.map(a),...n.skips.map(a).map((e=>"-"+e))].join(",");return n.enable(""),e},n.enable=function(e){let t;n.save(e),n.namespaces=e,n.names=[],n.skips=[];const a=("string"==typeof e?e:"").split(/[\s,]+/),i=a.length;for(t=0;t<i;t++)a[t]&&("-"===(e=a[t].replace(/\*/g,".*?"))[0]?n.skips.push(new RegExp("^"+e.slice(1)+"$")):n.names.push(new RegExp("^"+e+"$")))},n.enabled=function(e){if("*"===e[e.length-1])return!0;let t,a;for(t=0,a=n.skips.length;t<a;t++)if(n.skips[t].test(e))return!1;for(t=0,a=n.names.length;t<a;t++)if(n.names[t].test(e))return!0;return!1},n.humanize=ai(),n.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((t=>{n[t]=e[t]})),n.names=[],n.skips=[],n.formatters={},n.selectColor=function(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]},n.enable(n.load()),n},Ja}var oi,si,ri,ci,ui,pi,li,di={exports:{}};function mi(){return si?oi:(si=1,oi=(e,n=process.argv)=>{const t=e.startsWith("-")?"":1===e.length?"-":"--",a=n.indexOf(t+e),i=n.indexOf("--");return-1!==a&&(-1===i||a<i)})}function fi(){return ui||(ui=1,function(n,t){const a=l,o=i;t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let a=0;a<n.length;a++)e.inspectOpts[n[a]]=t.inspectOpts[n[a]]},t.log=function(...e){return process.stderr.write(o.formatWithOptions(t.inspectOpts,...e)+"\n")},t.formatArgs=function(e){const{namespace:a,useColors:i}=this;if(i){const t=this.color,i="[3"+(t<8?t:"8;5;"+t),o=` ${i};1m${a} [0m`;e[0]=o+e[0].split("\n").join("\n"+o),e.push(i+"m+"+n.exports.humanize(this.diff)+"[0m")}else e[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+a+" "+e[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):a.isatty(process.stderr.fd)},t.destroy=o.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const n=function(){if(ci)return ri;ci=1;const n=e,t=l,a=mi(),{env:i}=process;let o;function s(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function r(e,t){if(0===o)return 0;if(a("color=16m")||a("color=full")||a("color=truecolor"))return 3;if(a("color=256"))return 2;if(e&&!t&&void 0===o)return 0;const s=o||0;if("dumb"===i.TERM)return s;if("win32"===process.platform){const e=n.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in i))||"codeship"===i.CI_NAME?1:s;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if("truecolor"===i.COLORTERM)return 3;if("TERM_PROGRAM"in i){const e=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:s}return a("no-color")||a("no-colors")||a("color=false")||a("color=never")?o=0:(a("color")||a("colors")||a("color=true")||a("color=always"))&&(o=1),"FORCE_COLOR"in i&&(o="true"===i.FORCE_COLOR?1:"false"===i.FORCE_COLOR?0:0===i.FORCE_COLOR.length?1:Math.min(parseInt(i.FORCE_COLOR,10),3)),ri={supportsColor:function(e){return s(r(e,e&&e.isTTY))},stdout:s(r(!0,t.isatty(1))),stderr:s(r(!0,t.isatty(2)))},ri}();n&&(n.stderr||n).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,n)=>{const t=n.substring(6).toLowerCase().replace(/_([a-z])/g,((e,n)=>n.toUpperCase()));let a=process.env[n];return a=!!/^(yes|on|true|enabled)$/i.test(a)||!/^(no|off|false|disabled)$/i.test(a)&&("null"===a?null:Number(a)),e[t]=a,e}),{}),n.exports=ii()(t);const{formatters:s}=n.exports;s.o=function(e){return this.inspectOpts.colors=this.useColors,o.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},s.O=function(e){return this.inspectOpts.colors=this.useColors,o.inspect(e,this.inspectOpts)}}(di,di.exports)),di.exports}function hi(){return pi||(pi=1,function(e){"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=(Za||(Za=1,function(e,n){n.formatArgs=function(n){if(n[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+n[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const t="color: "+this.color;n.splice(1,0,t,"color: inherit");let a=0,i=0;n[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(a++,"%c"===e&&(i=a))})),n.splice(i,0,t)},n.save=function(e){try{e?n.storage.setItem("debug",e):n.storage.removeItem("debug")}catch(e){}},n.load=function(){let e;try{e=n.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},n.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},n.storage=function(){try{return localStorage}catch(e){}}(),n.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],n.log=console.debug||console.log||(()=>{}),e.exports=ii()(n);const{formatters:t}=e.exports;t.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(ti,ti.exports)),ti.exports):e.exports=fi()}(ni)),ni.exports}var vi,xi,bi,gi=o,Di=gi.URL,yi=s,wi=r,_i=u.Writable,Ci=p,Ei=function(){if(!li){try{li=hi()("follow-redirects")}catch(e){}"function"!=typeof li&&(li=function(){})}li.apply(null,arguments)};vi="undefined"!=typeof process,xi="undefined"!=typeof window&&"undefined"!=typeof document,bi=Wi(Error.captureStackTrace),vi||!xi&&bi||console.warn("The follow-redirects package should be excluded from browser builds.");var Fi=!1;try{Ci(new Di(""))}catch(e){Fi="ERR_INVALID_URL"===e.code}var ki=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],ji=["abort","aborted","connect","error","socket","timeout"],Ti=Object.create(null);ji.forEach((function(e){Ti[e]=function(n,t,a){this._redirectable.emit(e,n,t,a)}}));var Oi=Hi("ERR_INVALID_URL","Invalid URL",TypeError),Si=Hi("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Ai=Hi("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",Si),Ri=Hi("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Bi=Hi("ERR_STREAM_WRITE_AFTER_END","write after end"),Li=_i.prototype.destroy||zi;function Pi(e,n){_i.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],n&&this.on("response",n);var t=this;this._onNativeResponse=function(e){try{t._processResponse(e)}catch(e){t.emit("error",e instanceof Si?e:new Si({cause:e}))}},this._performRequest()}function Ni(e){var n={maxRedirects:21,maxBodyLength:10485760},t={};return Object.keys(e).forEach((function(a){var i=a+":",o=t[i]=e[a],s=n[a]=Object.create(o);Object.defineProperties(s,{request:{value:function(e,a,o){var s;return s=e,Di&&s instanceof Di?e=qi(e):Gi(e)?e=qi(Ii(e)):(o=a,a=Ui(e),e={protocol:i}),Wi(a)&&(o=a,a=null),(a=Object.assign({maxRedirects:n.maxRedirects,maxBodyLength:n.maxBodyLength},e,a)).nativeProtocols=t,Gi(a.host)||Gi(a.hostname)||(a.hostname="::1"),Ci.equal(a.protocol,i,"protocol mismatch"),Ei("options",a),new Pi(a,o)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,n,t){var a=s.request(e,n,t);return a.end(),a},configurable:!0,enumerable:!0,writable:!0}})})),n}function zi(){}function Ii(e){var n;if(Fi)n=new Di(e);else if(!Gi((n=Ui(gi.parse(e))).protocol))throw new Oi({input:e});return n}function Ui(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new Oi({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new Oi({input:e.href||e});return e}function qi(e,n){var t=n||{};for(var a of ki)t[a]=e[a];return t.hostname.startsWith("[")&&(t.hostname=t.hostname.slice(1,-1)),""!==t.port&&(t.port=Number(t.port)),t.path=t.search?t.pathname+t.search:t.pathname,t}function Mi(e,n){var t;for(var a in n)e.test(a)&&(t=n[a],delete n[a]);return null==t?void 0:String(t).trim()}function Hi(e,n,t){function a(t){Wi(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,t||{}),this.code=e,this.message=this.cause?n+": "+this.cause.message:n}return a.prototype=new(t||Error),Object.defineProperties(a.prototype,{constructor:{value:a,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),a}function $i(e,n){for(var t of ji)e.removeListener(t,Ti[t]);e.on("error",zi),e.destroy(n)}function Gi(e){return"string"==typeof e||e instanceof String}function Wi(e){return"function"==typeof e}Pi.prototype=Object.create(_i.prototype),Pi.prototype.abort=function(){$i(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},Pi.prototype.destroy=function(e){return $i(this._currentRequest,e),Li.call(this,e),this},Pi.prototype.write=function(e,n,t){if(this._ending)throw new Bi;if(!Gi(e)&&("object"!=typeof(a=e)||!("length"in a)))throw new TypeError("data should be a string, Buffer or Uint8Array");var a;Wi(n)&&(t=n,n=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:n}),this._currentRequest.write(e,n,t)):(this.emit("error",new Ri),this.abort()):t&&t()},Pi.prototype.end=function(e,n,t){if(Wi(e)?(t=e,e=n=null):Wi(n)&&(t=n,n=null),e){var a=this,i=this._currentRequest;this.write(e,n,(function(){a._ended=!0,i.end(null,null,t)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,t)},Pi.prototype.setHeader=function(e,n){this._options.headers[e]=n,this._currentRequest.setHeader(e,n)},Pi.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},Pi.prototype.setTimeout=function(e,n){var t=this;function a(n){n.setTimeout(e),n.removeListener("timeout",n.destroy),n.addListener("timeout",n.destroy)}function i(n){t._timeout&&clearTimeout(t._timeout),t._timeout=setTimeout((function(){t.emit("timeout"),o()}),e),a(n)}function o(){t._timeout&&(clearTimeout(t._timeout),t._timeout=null),t.removeListener("abort",o),t.removeListener("error",o),t.removeListener("response",o),t.removeListener("close",o),n&&t.removeListener("timeout",n),t.socket||t._currentRequest.removeListener("socket",i)}return n&&this.on("timeout",n),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",a),this.on("abort",o),this.on("error",o),this.on("response",o),this.on("close",o),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){Pi.prototype[e]=function(n,t){return this._currentRequest[e](n,t)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(Pi.prototype,e,{get:function(){return this._currentRequest[e]}})})),Pi.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var n=e.path.indexOf("?");n<0?e.pathname=e.path:(e.pathname=e.path.substring(0,n),e.search=e.path.substring(n))}},Pi.prototype._performRequest=function(){var e=this._options.protocol,n=this._options.nativeProtocols[e];if(!n)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var t=e.slice(0,-1);this._options.agent=this._options.agents[t]}var a=this._currentRequest=n.request(this._options,this._onNativeResponse);for(var i of(a._redirectable=this,ji))a.on(i,Ti[i]);if(this._currentUrl=/^\//.test(this._options.path)?gi.format(this._options):this._options.path,this._isRedirect){var o=0,s=this,r=this._requestBodyBuffers;!function e(n){if(a===s._currentRequest)if(n)s.emit("error",n);else if(o<r.length){var t=r[o++];a.finished||a.write(t.data,t.encoding,e)}else s._ended&&a.end()}()}},Pi.prototype._processResponse=function(e){var n=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:n});var t,a=e.headers.location;if(!a||!1===this._options.followRedirects||n<300||n>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if($i(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new Ai;var i=this._options.beforeRedirect;i&&(t=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var o=this._options.method;((301===n||302===n)&&"POST"===this._options.method||303===n&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],Mi(/^content-/i,this._options.headers));var s,r,c=Mi(/^host$/i,this._options.headers),u=Ii(this._currentUrl),p=c||u.host,l=/^\w+:/.test(a)?this._currentUrl:gi.format(Object.assign(u,{host:p})),d=(s=a,r=l,Fi?new Di(s,r):Ii(gi.resolve(r,s)));if(Ei("redirecting to",d.href),this._isRedirect=!0,qi(d,this._options),(d.protocol!==u.protocol&&"https:"!==d.protocol||d.host!==p&&!function(e,n){Ci(Gi(e)&&Gi(n));var t=e.length-n.length-1;return t>0&&"."===e[t]&&e.endsWith(n)}(d.host,p))&&Mi(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),Wi(i)){var m={headers:e.headers,statusCode:n},f={url:l,method:o,headers:t};i(this._options,m,f),this._sanitizeOptions(this._options)}this._performRequest()},ei.exports=Ni({http:yi,https:wi}),ei.exports.wrap=Ni;const Ki="1.7.7";function Vi(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}const Yi=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;const Ji=Symbol("internals");class Xi extends u.Transform{constructor(e){e=xt.toFlatObject(e,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,((e,n)=>!xt.isUndefined(n[e]))),super({readableHighWaterMark:e.chunkSize});const n=this[Ji]={timeWindow:e.timeWindow,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",(e=>{"progress"===e&&(n.isCaptured||(n.isCaptured=!0))}))}_read(e){const n=this[Ji];return n.onReadCallback&&n.onReadCallback(),super._read(e)}_transform(e,n,t){const a=this[Ji],i=a.maxRate,o=this.readableHighWaterMark,s=a.timeWindow,r=i/(1e3/s),c=!1!==a.minChunkSize?Math.max(a.minChunkSize,.01*r):0,u=(e,n)=>{const t=Buffer.byteLength(e);a.bytesSeen+=t,a.bytes+=t,a.isCaptured&&this.emit("progress",a.bytesSeen),this.push(e)?process.nextTick(n):a.onReadCallback=()=>{a.onReadCallback=null,process.nextTick(n)}},p=(e,n)=>{const t=Buffer.byteLength(e);let p,l=null,d=o,m=0;if(i){const e=Date.now();(!a.ts||(m=e-a.ts)>=s)&&(a.ts=e,p=r-a.bytes,a.bytes=p<0?-p:0,m=0),p=r-a.bytes}if(i){if(p<=0)return setTimeout((()=>{n(null,e)}),s-m);p<d&&(d=p)}d&&t>d&&t-d>c&&(l=e.subarray(d),e=e.subarray(0,d)),u(e,l?()=>{process.nextTick(n,null,l)}:n)};p(e,(function e(n,a){if(n)return t(n);a?p(a,e):t(null)}))}}const{asyncIterator:Zi}=Symbol,Qi=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[Zi]?yield*e[Zi]():yield e},eo=xt.ALPHABET.ALPHA_DIGIT+"-_",no=new i.TextEncoder,to="\r\n",ao=no.encode(to);class io{constructor(e,n){const{escapeName:t}=this.constructor,a=xt.isString(n);let i=`Content-Disposition: form-data; name="${t(e)}"${!a&&n.name?`; filename="${t(n.name)}"`:""}${to}`;a?n=no.encode(String(n).replace(/\r?\n|\r\n?/g,to)):i+=`Content-Type: ${n.type||"application/octet-stream"}${to}`,this.headers=no.encode(i+to),this.contentLength=a?n.byteLength:n.size,this.size=this.headers.byteLength+this.contentLength+2,this.name=e,this.value=n}async*encode(){yield this.headers;const{value:e}=this;xt.isTypedArray(e)?yield e:yield*Qi(e),yield ao}static escapeName(e){return String(e).replace(/[\r\n"]/g,(e=>({"\r":"%0D","\n":"%0A",'"':"%22"}[e])))}}class oo extends u.Transform{__transform(e,n,t){this.push(e),t()}_transform(e,n,t){if(0!==e.length&&(this._transform=this.__transform,120!==e[0])){const e=Buffer.alloc(2);e[0]=120,e[1]=156,this.push(e,n)}this.__transform(e,n,t)}}const so=(e,n)=>xt.isAsyncFn(e)?function(...t){const a=t.pop();e.apply(this,t).then((e=>{try{n?a(null,...n(e)):a(null,e)}catch(e){a(e)}}),a)}:e;const ro=(e,n,t=3)=>{let a=0;const i=function(e,n){e=e||10;const t=new Array(e),a=new Array(e);let i,o=0,s=0;return n=void 0!==n?n:1e3,function(r){const c=Date.now(),u=a[s];i||(i=c),t[o]=r,a[o]=c;let p=s,l=0;for(;p!==o;)l+=t[p++],p%=e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),c-i<n)return;const d=u&&c-u;return d?Math.round(1e3*l/d):void 0}}(50,250);return function(e,n){let t,a,i=0,o=1e3/n;const s=(n,o=Date.now())=>{i=o,t=null,a&&(clearTimeout(a),a=null),e.apply(null,n)};return[(...e)=>{const n=Date.now(),r=n-i;r>=o?s(e,n):(t=e,a||(a=setTimeout((()=>{a=null,s(t)}),o-r)))},()=>t&&s(t)]}((t=>{const o=t.loaded,s=t.lengthComputable?t.total:void 0,r=o-a,c=i(r);a=o;e({loaded:o,total:s,progress:s?o/s:void 0,bytes:r,rate:c||void 0,estimated:c&&s&&o<=s?(s-o)/c:void 0,event:t,lengthComputable:null!=s,[n?"download":"upload"]:!0})}),t)},co=(e,n)=>{const t=null!=e;return[a=>n[0]({lengthComputable:t,total:e,loaded:a}),n[1]]},uo=e=>(...n)=>xt.asap((()=>e(...n))),po={flush:d.constants.Z_SYNC_FLUSH,finishFlush:d.constants.Z_SYNC_FLUSH},lo={flush:d.constants.BROTLI_OPERATION_FLUSH,finishFlush:d.constants.BROTLI_OPERATION_FLUSH},mo=xt.isFunction(d.createBrotliDecompress),{http:fo,https:ho}=ei.exports,vo=/https:?/,xo=Oa.protocols.map((e=>e+":")),bo=(e,[n,t])=>(e.on("end",t).on("error",t),n);function go(e,n){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,n)}function Do(e,n,t){let a=n;if(!a&&!1!==a){const e=Qa(t);e&&(a=new URL(e))}if(a){if(a.username&&(a.auth=(a.username||"")+":"+(a.password||"")),a.auth){(a.auth.username||a.auth.password)&&(a.auth=(a.auth.username||"")+":"+(a.auth.password||""));const n=Buffer.from(a.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+n}e.headers.host=e.hostname+(e.port?":"+e.port:"");const n=a.hostname||a.host;e.hostname=n,e.host=n,e.port=a.port,e.path=t,a.protocol&&(e.protocol=a.protocol.includes(":")?a.protocol:`${a.protocol}:`)}e.beforeRedirects.proxy=function(e){Do(e,n,e.href)}}const yo="undefined"!=typeof process&&"process"===xt.kindOf(process),wo=(e,n)=>(({address:e,family:n})=>{if(!xt.isString(e))throw TypeError("address must be a string");return{address:e,family:n||(e.indexOf(".")<0?6:4)}})(xt.isObject(e)?e:{address:e,family:n});var _o=yo&&function(e){return n=async function(n,t,a){let{data:o,lookup:c,family:p}=e;const{responseType:l,responseEncoding:f}=e,h=e.method.toUpperCase();let v,x,b=!1;if(c){const e=so(c,(e=>xt.isArray(e)?e:[e]));c=(n,t,a)=>{e(n,t,((e,n,i)=>{if(e)return a(e);const o=xt.isArray(n)?n.map((e=>wo(e))):[wo(n,i)];t.all?a(e,o):a(e,o[0].address,o[0].family)}))}}const g=new m.EventEmitter,D=()=>{e.cancelToken&&e.cancelToken.unsubscribe(y),e.signal&&e.signal.removeEventListener("abort",y),g.removeAllListeners()};function y(n){g.emit("abort",!n||n.type?new qa(null,e,x):n)}a(((e,n)=>{v=!0,n&&(b=!0,D())})),g.once("abort",t),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(y),e.signal&&(e.signal.aborted?y():e.signal.addEventListener("abort",y)));const w=Ha(e.baseURL,e.url),_=new URL(w,Oa.hasBrowserEnv?Oa.origin:void 0),C=_.protocol||xo[0];if("data:"===C){let a;if("GET"!==h)return Ma(n,t,{status:405,statusText:"method not allowed",headers:{},config:e});try{a=function(e,n,t){const a=t&&t.Blob||Oa.classes.Blob,i=Vi(e);if(void 0===n&&a&&(n=!0),"data"===i){e=i.length?e.slice(i.length+1):e;const t=Yi.exec(e);if(!t)throw new bt("Invalid URL",bt.ERR_INVALID_URL);const o=t[1],s=t[2],r=t[3],c=Buffer.from(decodeURIComponent(r),s?"base64":"utf8");if(n){if(!a)throw new bt("Blob is not supported",bt.ERR_NOT_SUPPORT);return new a([c],{type:o})}return c}throw new bt("Unsupported protocol "+i,bt.ERR_NOT_SUPPORT)}(e.url,"blob"===l,{Blob:e.env&&e.env.Blob})}catch(n){throw bt.from(n,bt.ERR_BAD_REQUEST,e)}return"text"===l?(a=a.toString(f),f&&"utf8"!==f||(a=xt.stripBOM(a))):"stream"===l&&(a=u.Readable.from(a)),Ma(n,t,{data:a,status:200,statusText:"OK",headers:new za,config:e})}if(-1===xo.indexOf(C))return t(new bt("Unsupported protocol "+C,bt.ERR_BAD_REQUEST,e));const E=za.from(e.headers).normalize();E.set("User-Agent","axios/"+Ki,!1);const{onUploadProgress:F,onDownloadProgress:k}=e,j=e.maxRate;let T,O;if(xt.isSpecCompliantForm(o)){const e=E.getContentType(/boundary=([-_\w\d]{10,70})/i);o=((e,n,t)=>{const{tag:a="form-data-boundary",size:i=25,boundary:o=a+"-"+xt.generateString(i,eo)}=t||{};if(!xt.isFormData(e))throw TypeError("FormData instance required");if(o.length<1||o.length>70)throw Error("boundary must be 10-70 characters long");const s=no.encode("--"+o+to),r=no.encode("--"+o+"--"+to+to);let c=r.byteLength;const p=Array.from(e.entries()).map((([e,n])=>{const t=new io(e,n);return c+=t.size,t}));c+=s.byteLength*p.length,c=xt.toFiniteNumber(c);const l={"Content-Type":`multipart/form-data; boundary=${o}`};return Number.isFinite(c)&&(l["Content-Length"]=c),n&&n(l),u.Readable.from(async function*(){for(const e of p)yield s,yield*e.encode();yield r}())})(o,(e=>{E.set(e)}),{tag:`axios-${Ki}-boundary`,boundary:e&&e[1]||void 0})}else if(xt.isFormData(o)&&xt.isFunction(o.getHeaders)){if(E.set(o.getHeaders()),!E.hasContentLength())try{const e=await i.promisify(o.getLength).call(o);Number.isFinite(e)&&e>=0&&E.setContentLength(e)}catch(e){}}else if(xt.isBlob(o))o.size&&E.setContentType(o.type||"application/octet-stream"),E.setContentLength(o.size||0),o=u.Readable.from(Qi(o));else if(o&&!xt.isStream(o)){if(Buffer.isBuffer(o));else if(xt.isArrayBuffer(o))o=Buffer.from(new Uint8Array(o));else{if(!xt.isString(o))return t(new bt("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",bt.ERR_BAD_REQUEST,e));o=Buffer.from(o,"utf-8")}if(E.setContentLength(o.length,!1),e.maxBodyLength>-1&&o.length>e.maxBodyLength)return t(new bt("Request body larger than maxBodyLength limit",bt.ERR_BAD_REQUEST,e))}const S=xt.toFiniteNumber(E.getContentLength());let A,R;xt.isArray(j)?(T=j[0],O=j[1]):T=O=j,o&&(F||T)&&(xt.isStream(o)||(o=u.Readable.from(o,{objectMode:!1})),o=u.pipeline([o,new Xi({maxRate:xt.toFiniteNumber(T)})],xt.noop),F&&o.on("progress",bo(o,co(S,ro(uo(F),!1,3))))),e.auth&&(A=(e.auth.username||"")+":"+(e.auth.password||"")),!A&&_.username&&(A=_.username+":"+_.password),A&&E.delete("authorization");try{R=ya(_.pathname+_.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(n){const a=new Error(n.message);return a.config=e,a.url=e.url,a.exists=!0,t(a)}E.set("Accept-Encoding","gzip, compress, deflate"+(mo?", br":""),!1);const B={path:R,method:h,headers:E.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:A,protocol:C,family:p,beforeRedirect:go,beforeRedirects:{}};let L;!xt.isUndefined(c)&&(B.lookup=c),e.socketPath?B.socketPath=e.socketPath:(B.hostname=_.hostname.startsWith("[")?_.hostname.slice(1,-1):_.hostname,B.port=_.port,Do(B,e.proxy,C+"//"+_.hostname+(_.port?":"+_.port:"")+B.path));const P=vo.test(B.protocol);if(B.agent=P?e.httpsAgent:e.httpAgent,e.transport?L=e.transport:0===e.maxRedirects?L=P?r:s:(e.maxRedirects&&(B.maxRedirects=e.maxRedirects),e.beforeRedirect&&(B.beforeRedirects.config=e.beforeRedirect),L=P?ho:fo),e.maxBodyLength>-1?B.maxBodyLength=e.maxBodyLength:B.maxBodyLength=1/0,e.insecureHTTPParser&&(B.insecureHTTPParser=e.insecureHTTPParser),x=L.request(B,(function(a){if(x.destroyed)return;const i=[a],o=+a.headers["content-length"];if(k||O){const e=new Xi({maxRate:xt.toFiniteNumber(O)});k&&e.on("progress",bo(e,co(o,ro(uo(k),!0,3)))),i.push(e)}let s=a;const r=a.req||x;if(!1!==e.decompress&&a.headers["content-encoding"])switch("HEAD"!==h&&204!==a.statusCode||delete a.headers["content-encoding"],(a.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":i.push(d.createUnzip(po)),delete a.headers["content-encoding"];break;case"deflate":i.push(new oo),i.push(d.createUnzip(po)),delete a.headers["content-encoding"];break;case"br":mo&&(i.push(d.createBrotliDecompress(lo)),delete a.headers["content-encoding"])}s=i.length>1?u.pipeline(i,xt.noop):i[0];const c=u.finished(s,(()=>{c(),D()})),p={status:a.statusCode,statusText:a.statusMessage,headers:new za(a.headers),config:e,request:r};if("stream"===l)p.data=s,Ma(n,t,p);else{const a=[];let i=0;s.on("data",(function(n){a.push(n),i+=n.length,e.maxContentLength>-1&&i>e.maxContentLength&&(b=!0,s.destroy(),t(new bt("maxContentLength size of "+e.maxContentLength+" exceeded",bt.ERR_BAD_RESPONSE,e,r)))})),s.on("aborted",(function(){if(b)return;const n=new bt("maxContentLength size of "+e.maxContentLength+" exceeded",bt.ERR_BAD_RESPONSE,e,r);s.destroy(n),t(n)})),s.on("error",(function(n){x.destroyed||t(bt.from(n,null,e,r))})),s.on("end",(function(){try{let e=1===a.length?a[0]:Buffer.concat(a);"arraybuffer"!==l&&(e=e.toString(f),f&&"utf8"!==f||(e=xt.stripBOM(e))),p.data=e}catch(n){return t(bt.from(n,null,e,p.request,p))}Ma(n,t,p)}))}g.once("abort",(e=>{s.destroyed||(s.emit("error",e),s.destroy())}))})),g.once("abort",(e=>{t(e),x.destroy(e)})),x.on("error",(function(n){t(bt.from(n,null,e,x))})),x.on("socket",(function(e){e.setKeepAlive(!0,6e4)})),e.timeout){const n=parseInt(e.timeout,10);if(Number.isNaN(n))return void t(new bt("error trying to parse `config.timeout` to int",bt.ERR_BAD_OPTION_VALUE,e,x));x.setTimeout(n,(function(){if(v)return;let n=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const a=e.transitional||_a;e.timeoutErrorMessage&&(n=e.timeoutErrorMessage),t(new bt(n,a.clarifyTimeoutError?bt.ETIMEDOUT:bt.ECONNABORTED,e,x)),y()}))}if(xt.isStream(o)){let n=!1,t=!1;o.on("end",(()=>{n=!0})),o.once("error",(e=>{t=!0,x.destroy(e)})),o.on("close",(()=>{n||t||y(new qa("Request stream has been aborted",e,x))})),o.pipe(x)}else x.end(o)},new Promise(((e,t)=>{let a,i;const o=(e,n)=>{i||(i=!0,a&&a(e,n))},s=e=>{o(e,!0),t(e)};n((n=>{o(n),e(n)}),s,(e=>a=e)).catch(s)}));var n},Co=Oa.hasStandardBrowserEnv?function(){const e=Oa.navigator&&/(msie|trident)/i.test(Oa.navigator.userAgent),n=document.createElement("a");let t;function a(t){let a=t;return e&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=a(window.location.href),function(e){const n=xt.isString(e)?a(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0},Eo=Oa.hasStandardBrowserEnv?{write(e,n,t,a,i,o){const s=[e+"="+encodeURIComponent(n)];xt.isNumber(t)&&s.push("expires="+new Date(t).toGMTString()),xt.isString(a)&&s.push("path="+a),xt.isString(i)&&s.push("domain="+i),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read(e){const n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};const Fo=e=>e instanceof za?{...e}:e;function ko(e,n){n=n||{};const t={};function a(e,n,t){return xt.isPlainObject(e)&&xt.isPlainObject(n)?xt.merge.call({caseless:t},e,n):xt.isPlainObject(n)?xt.merge({},n):xt.isArray(n)?n.slice():n}function i(e,n,t){return xt.isUndefined(n)?xt.isUndefined(e)?void 0:a(void 0,e,t):a(e,n,t)}function o(e,n){if(!xt.isUndefined(n))return a(void 0,n)}function s(e,n){return xt.isUndefined(n)?xt.isUndefined(e)?void 0:a(void 0,e):a(void 0,n)}function r(t,i,o){return o in n?a(t,i):o in e?a(void 0,t):void 0}const c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:r,headers:(e,n)=>i(Fo(e),Fo(n),!0)};return xt.forEach(Object.keys(Object.assign({},e,n)),(function(a){const o=c[a]||i,s=o(e[a],n[a],a);xt.isUndefined(s)&&o!==r||(t[a]=s)})),t}var jo=e=>{const n=ko({},e);let t,{data:a,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:s,headers:r,auth:c}=n;if(n.headers=r=za.from(r),n.url=ya(Ha(n.baseURL,n.url),e.params,e.paramsSerializer),c&&r.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),xt.isFormData(a))if(Oa.hasStandardBrowserEnv||Oa.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if(!1!==(t=r.getContentType())){const[e,...n]=t?t.split(";").map((e=>e.trim())).filter(Boolean):[];r.setContentType([e||"multipart/form-data",...n].join("; "))}if(Oa.hasStandardBrowserEnv&&(i&&xt.isFunction(i)&&(i=i(n)),i||!1!==i&&Co(n.url))){const e=o&&s&&Eo.read(s);e&&r.set(o,e)}return n};var To="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(n,t){const a=jo(e);let i=a.data;const o=za.from(a.headers).normalize();let s,r,c,u,p,{responseType:l,onUploadProgress:d,onDownloadProgress:m}=a;function f(){u&&u(),p&&p(),a.cancelToken&&a.cancelToken.unsubscribe(s),a.signal&&a.signal.removeEventListener("abort",s)}let h=new XMLHttpRequest;function v(){if(!h)return;const a=za.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());Ma((function(e){n(e),f()}),(function(e){t(e),f()}),{data:l&&"text"!==l&&"json"!==l?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:a,config:e,request:h}),h=null}h.open(a.method.toUpperCase(),a.url,!0),h.timeout=a.timeout,"onloadend"in h?h.onloadend=v:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(v)},h.onabort=function(){h&&(t(new bt("Request aborted",bt.ECONNABORTED,e,h)),h=null)},h.onerror=function(){t(new bt("Network Error",bt.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let n=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const i=a.transitional||_a;a.timeoutErrorMessage&&(n=a.timeoutErrorMessage),t(new bt(n,i.clarifyTimeoutError?bt.ETIMEDOUT:bt.ECONNABORTED,e,h)),h=null},void 0===i&&o.setContentType(null),"setRequestHeader"in h&&xt.forEach(o.toJSON(),(function(e,n){h.setRequestHeader(n,e)})),xt.isUndefined(a.withCredentials)||(h.withCredentials=!!a.withCredentials),l&&"json"!==l&&(h.responseType=a.responseType),m&&([c,p]=ro(m,!0),h.addEventListener("progress",c)),d&&h.upload&&([r,u]=ro(d),h.upload.addEventListener("progress",r),h.upload.addEventListener("loadend",u)),(a.cancelToken||a.signal)&&(s=n=>{h&&(t(!n||n.type?new qa(null,e,h):n),h.abort(),h=null)},a.cancelToken&&a.cancelToken.subscribe(s),a.signal&&(a.signal.aborted?s():a.signal.addEventListener("abort",s)));const x=Vi(a.url);x&&-1===Oa.protocols.indexOf(x)?t(new bt("Unsupported protocol "+x+":",bt.ERR_BAD_REQUEST,e)):h.send(i||null)}))};const Oo=(e,n)=>{const{length:t}=e=e?e.filter(Boolean):[];if(n||t){let t,a=new AbortController;const i=function(e){if(!t){t=!0,s();const n=e instanceof Error?e:this.reason;a.abort(n instanceof bt?n:new qa(n instanceof Error?n.message:n))}};let o=n&&setTimeout((()=>{o=null,i(new bt(`timeout ${n} of ms exceeded`,bt.ETIMEDOUT))}),n);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)})),e=null)};e.forEach((e=>e.addEventListener("abort",i)));const{signal:r}=a;return r.unsubscribe=()=>xt.asap(s),r}},So=function*(e,n){let t=e.byteLength;if(t<n)return void(yield e);let a,i=0;for(;i<t;)a=i+n,yield e.slice(i,a),i=a},Ao=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const n=e.getReader();try{for(;;){const{done:e,value:t}=await n.read();if(e)break;yield t}}finally{await n.cancel()}},Ro=(e,n,t,a)=>{const i=async function*(e,n){for await(const t of Ao(e))yield*So(t,n)}(e,n);let o,s=0,r=e=>{o||(o=!0,a&&a(e))};return new ReadableStream({async pull(e){try{const{done:n,value:a}=await i.next();if(n)return r(),void e.close();let o=a.byteLength;if(t){let e=s+=o;t(e)}e.enqueue(new Uint8Array(a))}catch(e){throw r(e),e}},cancel:e=>(r(e),i.return())},{highWaterMark:2})},Bo="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Lo=Bo&&"function"==typeof ReadableStream,Po=Bo&&("function"==typeof TextEncoder?(No=new TextEncoder,e=>No.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var No;const zo=(e,...n)=>{try{return!!e(...n)}catch(e){return!1}},Io=Lo&&zo((()=>{let e=!1;const n=new Request(Oa.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!n})),Uo=Lo&&zo((()=>xt.isReadableStream(new Response("").body))),qo={stream:Uo&&(e=>e.body)};var Mo;Bo&&(Mo=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!qo[e]&&(qo[e]=xt.isFunction(Mo[e])?n=>n[e]():(n,t)=>{throw new bt(`Response type '${e}' is not supported`,bt.ERR_NOT_SUPPORT,t)})})));const Ho=async(e,n)=>{const t=xt.toFiniteNumber(e.getContentLength());return null==t?(async e=>{if(null==e)return 0;if(xt.isBlob(e))return e.size;if(xt.isSpecCompliantForm(e)){const n=new Request(Oa.origin,{method:"POST",body:e});return(await n.arrayBuffer()).byteLength}return xt.isArrayBufferView(e)||xt.isArrayBuffer(e)?e.byteLength:(xt.isURLSearchParams(e)&&(e+=""),xt.isString(e)?(await Po(e)).byteLength:void 0)})(n):t};var $o=Bo&&(async e=>{let{url:n,method:t,data:a,signal:i,cancelToken:o,timeout:s,onDownloadProgress:r,onUploadProgress:c,responseType:u,headers:p,withCredentials:l="same-origin",fetchOptions:d}=jo(e);u=u?(u+"").toLowerCase():"text";let m,f=Oo([i,o&&o.toAbortSignal()],s);const h=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let v;try{if(c&&Io&&"get"!==t&&"head"!==t&&0!==(v=await Ho(p,a))){let e,t=new Request(n,{method:"POST",body:a,duplex:"half"});if(xt.isFormData(a)&&(e=t.headers.get("content-type"))&&p.setContentType(e),t.body){const[e,n]=co(v,ro(uo(c)));a=Ro(t.body,65536,e,n)}}xt.isString(l)||(l=l?"include":"omit");const i="credentials"in Request.prototype;m=new Request(n,{...d,signal:f,method:t.toUpperCase(),headers:p.normalize().toJSON(),body:a,duplex:"half",credentials:i?l:void 0});let o=await fetch(m);const s=Uo&&("stream"===u||"response"===u);if(Uo&&(r||s&&h)){const e={};["status","statusText","headers"].forEach((n=>{e[n]=o[n]}));const n=xt.toFiniteNumber(o.headers.get("content-length")),[t,a]=r&&co(n,ro(uo(r),!0))||[];o=new Response(Ro(o.body,65536,t,(()=>{a&&a(),h&&h()})),e)}u=u||"text";let x=await qo[xt.findKey(qo,u)||"text"](o,e);return!s&&h&&h(),await new Promise(((n,t)=>{Ma(n,t,{data:x,headers:za.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:m})}))}catch(n){if(h&&h(),n&&"TypeError"===n.name&&/fetch/i.test(n.message))throw Object.assign(new bt("Network Error",bt.ERR_NETWORK,e,m),{cause:n.cause||n});throw bt.from(n,n&&n.code,e,m)}});const Go={http:_o,xhr:To,fetch:$o};xt.forEach(Go,((e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch(e){}Object.defineProperty(e,"adapterName",{value:n})}}));const Wo=e=>`- ${e}`,Ko=e=>xt.isFunction(e)||null===e||!1===e;var Vo=e=>{e=xt.isArray(e)?e:[e];const{length:n}=e;let t,a;const i={};for(let o=0;o<n;o++){let n;if(t=e[o],a=t,!Ko(t)&&(a=Go[(n=String(t)).toLowerCase()],void 0===a))throw new bt(`Unknown adapter '${n}'`);if(a)break;i[n||"#"+o]=a}if(!a){const e=Object.entries(i).map((([e,n])=>`adapter ${e} `+(!1===n?"is not supported by the environment":"is not available in the build")));throw new bt("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(Wo).join("\n"):" "+Wo(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return a};function Yo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new qa(null,e)}function Jo(e){Yo(e),e.headers=za.from(e.headers),e.data=Ia.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Vo(e.adapter||Aa.adapter)(e).then((function(n){return Yo(e),n.data=Ia.call(e,e.transformResponse,n),n.headers=za.from(n.headers),n}),(function(n){return Ua(n)||(Yo(e),n&&n.response&&(n.response.data=Ia.call(e,e.transformResponse,n.response),n.response.headers=za.from(n.response.headers))),Promise.reject(n)}))}const Xo={};["object","boolean","number","function","string","symbol"].forEach(((e,n)=>{Xo[e]=function(t){return typeof t===e||"a"+(n<1?"n ":" ")+e}}));const Zo={};Xo.transitional=function(e,n,t){function a(e,n){return"[Axios v1.7.7] Transitional option '"+e+"'"+n+(t?". "+t:"")}return(t,i,o)=>{if(!1===e)throw new bt(a(i," has been removed"+(n?" in "+n:"")),bt.ERR_DEPRECATED);return n&&!Zo[i]&&(Zo[i]=!0,console.warn(a(i," has been deprecated since v"+n+" and will be removed in the near future"))),!e||e(t,i,o)}};var Qo={assertOptions:function(e,n,t){if("object"!=typeof e)throw new bt("options must be an object",bt.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let i=a.length;for(;i-- >0;){const o=a[i],s=n[o];if(s){const n=e[o],t=void 0===n||s(n,o,e);if(!0!==t)throw new bt("option "+o+" must be "+t,bt.ERR_BAD_OPTION_VALUE)}else if(!0!==t)throw new bt("Unknown option "+o,bt.ERR_BAD_OPTION)}},validators:Xo};const es=Qo.validators;class ns{constructor(e){this.defaults=e,this.interceptors={request:new wa,response:new wa}}async request(e,n){try{return await this._request(e,n)}catch(e){if(e instanceof Error){let n;Error.captureStackTrace?Error.captureStackTrace(n={}):n=new Error;const t=n.stack?n.stack.replace(/^.+\n/,""):"";try{e.stack?t&&!String(e.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+t):e.stack=t}catch(e){}}throw e}}_request(e,n){"string"==typeof e?(n=n||{}).url=e:n=e||{},n=ko(this.defaults,n);const{transitional:t,paramsSerializer:a,headers:i}=n;void 0!==t&&Qo.assertOptions(t,{silentJSONParsing:es.transitional(es.boolean),forcedJSONParsing:es.transitional(es.boolean),clarifyTimeoutError:es.transitional(es.boolean)},!1),null!=a&&(xt.isFunction(a)?n.paramsSerializer={serialize:a}:Qo.assertOptions(a,{encode:es.function,serialize:es.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&xt.merge(i.common,i[n.method]);i&&xt.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),n.headers=za.concat(o,i);const s=[];let r=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(n)||(r=r&&e.synchronous,s.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(!r){const e=[Jo.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,c),p=e.length,u=Promise.resolve(n);l<p;)u=u.then(e[l++],e[l++]);return u}p=s.length;let d=n;for(l=0;l<p;){const e=s[l++],n=s[l++];try{d=e(d)}catch(e){n.call(this,e);break}}try{u=Jo.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 ya(Ha((e=ko(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}xt.forEach(["delete","get","head","options"],(function(e){ns.prototype[e]=function(n,t){return this.request(ko(t||{},{method:e,url:n,data:(t||{}).data}))}})),xt.forEach(["post","put","patch"],(function(e){function n(n){return function(t,a,i){return this.request(ko(i||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:t,data:a}))}}ns.prototype[e]=n(),ns.prototype[e+"Form"]=n(!0)}));class ts{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let n;this.promise=new Promise((function(e){n=e}));const t=this;this.promise.then((e=>{if(!t._listeners)return;let n=t._listeners.length;for(;n-- >0;)t._listeners[n](e);t._listeners=null})),this.promise.then=e=>{let n;const a=new Promise((e=>{t.subscribe(e),n=e})).then(e);return a.cancel=function(){t.unsubscribe(n)},a},e((function(e,a,i){t.reason||(t.reason=new qa(e,a,i),n(t.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);-1!==n&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=n=>{e.abort(n)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new ts((function(n){e=n})),cancel:e}}}const as={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(as).forEach((([e,n])=>{as[n]=e}));const is=function e(n){const t=new ns(n),a=kn(ns.prototype.request,t);return xt.extend(a,ns.prototype,t,{allOwnKeys:!0}),xt.extend(a,t,null,{allOwnKeys:!0}),a.create=function(t){return e(ko(n,t))},a}(Aa);is.Axios=ns,is.CanceledError=qa,is.CancelToken=ts,is.isCancel=Ua,is.VERSION=Ki,is.toFormData=va,is.AxiosError=bt,is.Cancel=is.CanceledError,is.all=function(e){return Promise.all(e)},is.spread=function(e){return function(n){return e.apply(null,n)}},is.isAxiosError=function(e){return xt.isObject(e)&&!0===e.isAxiosError},is.mergeConfig=ko,is.AxiosHeaders=za,is.formToJSON=e=>Sa(xt.isHTMLForm(e)?new FormData(e):e),is.getAdapter=Vo,is.HttpStatusCode=as,is.default=is;const os="/api/v1",ss=e=>{const n=(t=e,Object.entries(t).reduce(((e,n)=>(e[ln(n[0])]=n[1],e)),{}));var t;return is.post(`${os}/reporter/runs`,{run:n},{skipSnakeCaseConversion:!0})},rs=(e,n)=>is.put(`${os}/reporter/runs/${e}`,{run:n}),cs=e=>is.get(`${os}/reporter/runs/${e}/heartbeat`),us=(e,n)=>is.post(`${os}/reporter/runs/${e}/test_entities`,{testEntity:n}),ps="=".repeat(10),ls={testData:(e,n)=>{let t=`\n-------------------Started reporting to NeetoPlaydash 🎭-------------------\nCI Build ID: ${e}\n`;return n&&(t+=`Total shards: ${n.total}\nCurrent shards: ${n.current}\n`),t+="---------------------------------------------------------------------------\n",t}},ds={startingTest:(e,n)=>`${ps}Starting ${e}${ps}\n Time: ${(new Date).toUTCString()}\n History ID: ${n}`},ms={reportedTest:({title:e,status:n,historyId:t,completedAt:a})=>`\n\n------------Reported to NeetoPlaydash------------\n Title: ${e}\n History id: ${t}\n Status: ${n}\n Completed at: ${a}\n--------------------------------------------\n \n`},fs={runReported:"Run completed and reported to NeetoPlaydash 🎉\n\n"},hs=({command:e,messageOnError:n,shouldThrowError:t=!1,logLevel:a="warning"})=>{try{return f.execSync(e).toString().trim()}catch(e){if(t)throw e;gn[a](n)}},vs=(e,n)=>{var t;const{title:i,parent:o,location:{file:s}}=e,r=e.titlePath(),c=null===(t=o.project())||void 0===t?void 0:t.name,u=a.relative(n,s),p=(({titlePath:e,title:n,project:t,rootDir:i,file:o})=>e.filter(((e,s)=>0!==s&&e!==n&&e!==t&&e!==a.relative(i,o))))({titlePath:r,title:i,project:c,rootDir:n,file:s});return{title:i,describe:p,project:c,spec:u,historyId:((e,n,t,a)=>{const i=`[project=${e}]${n}${[...t,a].join("")}`,o=_n(i);return`${_n(n)}-${o}`})(null!=c?c:"",u,p,i)}},xs=({rootDir:e},n)=>ue(n.allTests().map((n=>vs(n,e)))),bs=async e=>{try{await cs(e)}catch(e){gn.error(e.message),gn.redText(vn.stopped),process.exit(1)}},gs=(e,n,t)=>is.post(`${os}/reporter/runs/${e}/test_entities/${n}/attempts`,t),Ds=(e,n,t,a)=>is.put(`${os}/reporter/runs/${e}/test_entities/${n}/attempts/${t}`,a),ys=["screenshot","video","trace"],ws=({location:e,snippet:n})=>{if(!e)return null;const{file:t,line:a,column:i}=e;return`# ${t} (${a}:${i}) \n\n\n ${n}`},_s={KB:1024,MB:Math.pow(1024,2)},Cs=(e,n)=>parseFloat((e/_s[n]).toFixed(2));var Es=class{constructor(e,n,t){this.etaBufferLength=e||100,this.valueBuffer=[t],this.timeBuffer=[n],this.eta="0"}update(e,n,t){this.valueBuffer.push(n),this.timeBuffer.push(e),this.calculate(t-n)}getTime(){return this.eta}calculate(e){const n=this.valueBuffer.length,t=Math.min(this.etaBufferLength,n),a=(this.valueBuffer[n-1]-this.valueBuffer[n-t])/(this.timeBuffer[n-1]-this.timeBuffer[n-t]);this.valueBuffer=this.valueBuffer.slice(-this.etaBufferLength),this.timeBuffer=this.timeBuffer.slice(-this.etaBufferLength);const i=Math.ceil(e/a/1e3);isNaN(i)?this.eta="NULL":isFinite(i)?this.eta=i>1e7?"INF":i<0?0:i:this.eta="INF"}};const Fs=h;var ks=class{constructor(e){this.stream=e,this.linewrap=!0,this.dy=0}cursorSave(){this.stream.isTTY&&this.stream.write("7")}cursorRestore(){this.stream.isTTY&&this.stream.write("8")}cursor(e){this.stream.isTTY&&(e?this.stream.write("[?25h"):this.stream.write("[?25l"))}cursorTo(e=null,n=null){this.stream.isTTY&&Fs.cursorTo(this.stream,e,n)}cursorRelative(e=null,n=null){this.stream.isTTY&&(this.dy=this.dy+n,Fs.moveCursor(this.stream,e,n))}cursorRelativeReset(){this.stream.isTTY&&(Fs.moveCursor(this.stream,0,-this.dy),Fs.cursorTo(this.stream,0,null),this.dy=0)}clearRight(){this.stream.isTTY&&Fs.clearLine(this.stream,1)}clearLine(){this.stream.isTTY&&Fs.clearLine(this.stream,0)}clearBottom(){this.stream.isTTY&&Fs.clearScreenDown(this.stream)}newline(){this.stream.write("\n"),this.dy++}write(e,n=!1){!0===this.linewrap&&!1===n?this.stream.write(e.substr(0,this.getWidth())):this.stream.write(e)}lineWrapping(e){this.stream.isTTY&&(this.linewrap=e,e?this.stream.write("[?7h"):this.stream.write("[?7l"))}isTTY(){return!0===this.stream.isTTY}getWidth(){return this.stream.columns||(this.stream.isTTY?80:200)}},js={exports:{}};const Ts=({onlyFirst:e=!1}={})=>{const n=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(n,e?void 0:"g")};var Os={exports:{}};const Ss=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));Os.exports=Ss,Os.exports.default=Ss;const As=e=>"string"==typeof e?e.replace(Ts(),""):e,Rs=Os.exports,Bs=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},Ls=e=>{if("string"!=typeof e||0===e.length)return 0;if(0===(e=As(e)).length)return 0;e=e.replace(Bs()," ");let n=0;for(let t=0;t<e.length;t++){const a=e.codePointAt(t);a<=31||a>=127&&a<=159||(a>=768&&a<=879||(a>65535&&t++,n+=Rs(a)?2:1))}return n};js.exports=Ls,js.exports.default=Ls;var Ps=function(e,n,t){if(!0!==n.autopadding)return e;return"percentage"===t?(a=e,i=3,(n.autopaddingChar+a).slice(-i)):e;var a,i},Ns=function(e,n){const t=Math.round(e*n.barsize),a=n.barsize-t;return n.barCompleteString.substr(0,t)+n.barGlue+n.barIncompleteString.substr(0,a)},zs=function(e,n,t){function a(e){return t?t*Math.round(e/t):e}function i(e){return(n.autopaddingChar+e).slice(-2)}return e>3600?i(Math.floor(e/3600))+"h"+i(a(e%3600/60))+"m":e>60?i(Math.floor(e/60))+"m"+i(a(e%60))+"s":e>10?i(a(e))+"s":i(e)+"s"};const Is=js.exports,Us=Ps,qs=Ns,Ms=zs;var Hs=function(e,n,t){let a=e.format;const i=e.formatTime||Ms,o=e.formatValue||Us,s=e.formatBar||qs,r=Math.floor(100*n.progress)+"",c=n.stopTime||Date.now(),u=Math.round((c-n.startTime)/1e3),p=Object.assign({},t,{bar:s(n.progress,e),percentage:o(r,e,"percentage"),total:o(n.total,e,"total"),value:o(n.value,e,"value"),eta:o(n.eta,e,"eta"),eta_formatted:i(n.eta,e,5),duration:o(u,e,"duration"),duration_formatted:i(u,e,1)});a=a.replace(/\{(\w+)\}/g,(function(e,n){return void 0!==p[n]?p[n]:e}));const l=Math.max(0,n.maxWidth-Is(a)-2),d=Math.floor(l/2);switch(e.align){case"right":a=l>0?" ".repeat(l)+a:a;break;case"center":a=d>0?" ".repeat(d)+a:a}return a};function $s(e,n){return null==e?n:e}var Gs={parse:function(e,n){const t={},a=Object.assign({},n,e);return t.throttleTime=1e3/$s(a.fps,10),t.stream=$s(a.stream,process.stderr),t.terminal=$s(a.terminal,null),t.clearOnComplete=$s(a.clearOnComplete,!1),t.stopOnComplete=$s(a.stopOnComplete,!1),t.barsize=$s(a.barsize,40),t.align=$s(a.align,"left"),t.hideCursor=$s(a.hideCursor,!1),t.linewrap=$s(a.linewrap,!1),t.barGlue=$s(a.barGlue,""),t.barCompleteChar=$s(a.barCompleteChar,"="),t.barIncompleteChar=$s(a.barIncompleteChar,"-"),t.format=$s(a.format,"progress [{bar}] {percentage}% | ETA: {eta}s | {value}/{total}"),t.formatTime=$s(a.formatTime,null),t.formatValue=$s(a.formatValue,null),t.formatBar=$s(a.formatBar,null),t.etaBufferLength=$s(a.etaBuffer,10),t.etaAsynchronousUpdate=$s(a.etaAsynchronousUpdate,!1),t.progressCalculationRelative=$s(a.progressCalculationRelative,!1),t.synchronousUpdate=$s(a.synchronousUpdate,!0),t.noTTYOutput=$s(a.noTTYOutput,!1),t.notTTYSchedule=$s(a.notTTYSchedule,2e3),t.emptyOnZero=$s(a.emptyOnZero,!1),t.forceRedraw=$s(a.forceRedraw,!1),t.autopadding=$s(a.autopadding,!1),t.gracefulExit=$s(a.gracefulExit,!1),t},assignDerivedOptions:function(e){return e.barCompleteString=e.barCompleteChar.repeat(e.barsize+1),e.barIncompleteString=e.barIncompleteChar.repeat(e.barsize+1),e.autopaddingChar=e.autopadding?$s(e.autopaddingChar," "):"",e}};const Ws=Es,Ks=ks,Vs=Hs,Ys=Gs,Js=m;var Xs=class extends Js{constructor(e){super(),this.options=Ys.assignDerivedOptions(e),this.terminal=this.options.terminal?this.options.terminal:new Ks(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 Ws(this.options.etaBufferLength,0,0),this.payload={},this.isActive=!1,this.formatter="function"==typeof this.options.format?this.options.format:Vs}render(e=!1){const n={progress:this.getProgress(),eta:this.eta.getTime(),startTime:this.startTime,stopTime:this.stopTime,total:this.total,value:this.value,maxWidth:this.terminal.getWidth()};this.options.etaAsynchronousUpdate&&this.updateETA();const t=this.formatter(this.options,n,this.payload);(e||this.options.forceRedraw||this.options.noTTYOutput&&!this.terminal.isTTY()||this.lastDrawnString!=t)&&(this.emit("redraw-pre"),this.terminal.cursorTo(0,null),this.terminal.write(t),this.terminal.clearRight(),this.lastDrawnString=t,this.lastRedraw=Date.now(),this.emit("redraw-post"))}start(e,n,t){this.value=n||0,this.total=void 0!==e&&e>=0?e:100,this.startValue=n||0,this.payload=t||{},this.startTime=Date.now(),this.stopTime=null,this.lastDrawnString="",this.eta=new Ws(this.options.etaBufferLength,this.startTime,this.value),this.isActive=!0,this.emit("start",e,n)}stop(){this.isActive=!1,this.stopTime=Date.now(),this.emit("stop",this.total,this.value)}update(e,n={}){"number"==typeof e&&(this.value=e,this.eta.update(Date.now(),e,this.total));const t=("object"==typeof e?e:n)||{};this.emit("update",this.total,this.value);for(const e in t)this.payload[e]=t[e];this.value>=this.getTotal()&&this.options.stopOnComplete&&this.stop()}getProgress(){let e=this.value/this.total;return this.options.progressCalculationRelative&&(e=(this.value-this.startValue)/(this.total-this.startValue)),isNaN(e)&&(e=this.options&&this.options.emptyOnZero?0:1),e=Math.min(Math.max(e,0),1),e}increment(e=1,n={}){"object"==typeof e?this.update(this.value+1,e):this.update(this.value+e,n)}getTotal(){return this.total}setTotal(e){void 0!==e&&e>=0&&(this.total=e)}updateETA(){this.eta.update(Date.now(),this.value,this.total)}};const Zs=Xs,Qs=Gs;const er=ks,nr=Xs,tr=Gs,ar=m;var ir={legacy:{format:"progress [{bar}] {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"=",barIncompleteChar:"-"},shades_classic:{format:" {bar} {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"█",barIncompleteChar:"░"},shades_grey:{format:" [90m{bar}[0m {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"█",barIncompleteChar:"░"},rect:{format:" {bar}■ {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"■",barIncompleteChar:" "}};const or=class extends Zs{constructor(e,n){super(Qs.parse(e,n)),this.timer=null,this.options.noTTYOutput&&!1===this.terminal.isTTY()&&(this.options.synchronousUpdate=!1),this.schedulingRate=this.terminal.isTTY()?this.options.throttleTime:this.options.notTTYSchedule,this.sigintCallback=null}render(){this.timer&&(clearTimeout(this.timer),this.timer=null),super.render(),this.options.noTTYOutput&&!1===this.terminal.isTTY()&&this.terminal.newline(),this.timer=setTimeout(this.render.bind(this),this.schedulingRate)}update(e,n){this.timer&&(super.update(e,n),this.options.synchronousUpdate&&this.lastRedraw+2*this.options.throttleTime<Date.now()&&this.render())}start(e,n,t){!1===this.options.noTTYOutput&&!1===this.terminal.isTTY()||(null===this.sigintCallback&&this.options.gracefulExit&&(this.sigintCallback=this.stop.bind(this),process.once("SIGINT",this.sigintCallback),process.once("SIGTERM",this.sigintCallback)),this.terminal.cursorSave(),!0===this.options.hideCursor&&this.terminal.cursor(!1),!1===this.options.linewrap&&this.terminal.lineWrapping(!1),super.start(e,n,t),this.render())}stop(){this.timer&&(this.sigintCallback&&(process.removeListener("SIGINT",this.sigintCallback),process.removeListener("SIGTERM",this.sigintCallback),this.sigintCallback=null),this.render(),super.stop(),clearTimeout(this.timer),this.timer=null,!0===this.options.hideCursor&&this.terminal.cursor(!0),!1===this.options.linewrap&&this.terminal.lineWrapping(!0),this.terminal.cursorRestore(),this.options.clearOnComplete?(this.terminal.cursorTo(0,null),this.terminal.clearLine()):this.terminal.newline())}},sr=class extends ar{constructor(e,n){super(),this.bars=[],this.options=tr.parse(e,n),this.options.synchronousUpdate=!1,this.terminal=this.options.terminal?this.options.terminal:new er(this.options.stream),this.timer=null,this.isActive=!1,this.schedulingRate=this.terminal.isTTY()?this.options.throttleTime:this.options.notTTYSchedule,this.loggingBuffer=[],this.sigintCallback=null}create(e,n,t,a={}){const i=new nr(Object.assign({},this.options,{terminal:this.terminal},a));return this.bars.push(i),!1===this.options.noTTYOutput&&!1===this.terminal.isTTY()||(null===this.sigintCallback&&this.options.gracefulExit&&(this.sigintCallback=this.stop.bind(this),process.once("SIGINT",this.sigintCallback),process.once("SIGTERM",this.sigintCallback)),this.isActive||(!0===this.options.hideCursor&&this.terminal.cursor(!1),!1===this.options.linewrap&&this.terminal.lineWrapping(!1),this.timer=setTimeout(this.update.bind(this),this.schedulingRate)),this.isActive=!0,i.start(e,n,t),this.emit("start")),i}remove(e){const n=this.bars.indexOf(e);return!(n<0)&&(this.bars.splice(n,1),this.update(),this.terminal.newline(),this.terminal.clearBottom(),!0)}update(){if(this.timer&&(clearTimeout(this.timer),this.timer=null),this.emit("update-pre"),this.terminal.cursorRelativeReset(),this.emit("redraw-pre"),this.loggingBuffer.length>0)for(this.terminal.clearLine();this.loggingBuffer.length>0;)this.terminal.write(this.loggingBuffer.shift(),!0);for(let e=0;e<this.bars.length;e++)e>0&&this.terminal.newline(),this.bars[e].render();this.emit("redraw-post"),this.options.noTTYOutput&&!1===this.terminal.isTTY()&&(this.terminal.newline(),this.terminal.newline()),this.timer=setTimeout(this.update.bind(this),this.schedulingRate),this.emit("update-post"),this.options.stopOnComplete&&!this.bars.find((e=>e.isActive))&&this.stop()}stop(){if(clearTimeout(this.timer),this.timer=null,this.sigintCallback&&(process.removeListener("SIGINT",this.sigintCallback),process.removeListener("SIGTERM",this.sigintCallback),this.sigintCallback=null),this.isActive=!1,!0===this.options.hideCursor&&this.terminal.cursor(!0),!1===this.options.linewrap&&this.terminal.lineWrapping(!0),this.terminal.cursorRelativeReset(),this.emit("stop-pre-clear"),this.options.clearOnComplete)this.terminal.clearBottom();else{for(let e=0;e<this.bars.length;e++)e>0&&this.terminal.newline(),this.bars[e].render(),this.bars[e].stop();this.terminal.newline()}this.emit("stop")}log(e){this.loggingBuffer.push(e)}};var rr={Bar:or,SingleBar:or,MultiBar:sr,Presets:ir,Format:{Formatter:Hs,BarFormat:Ns,ValueFormat:Ps,TimeFormat:zs}};const cr=(e,n)=>"flaky"===e?e:n,ur=async(e,{url:n,headers:t},a)=>{const i=e.byteLength/1024>1024?"MB":"KB";const o=new rr.Bar({format:`Uploading ${a} [{bar}] | {value}/{total} ${i} - ETA: {eta_formatted}`,clearOnComplete:!0},rr.Presets.rect);return o.start(Cs(e.byteLength,i),0),await((e,{url:n,headers:t},a)=>is.put(n,e,{...a,headers:t}))(e,{url:n,headers:t},{onUploadProgress:e=>{e.total&&e.lengthComputable&&o.update(Cs(e.loaded,i))}}),o};var pr={exports:{}};
|
|
9
|
+
/*! https://mths.be/wtf8 v1.0.1 by @mathias */!function(e,n){!function(t){var a=n,i=e&&e.exports==a&&e,o="object"==typeof v&&v;o.global!==o&&o.window!==o||(t=o);var s,r,c,u=String.fromCharCode;function p(e){for(var n,t,a=[],i=0,o=e.length;i<o;)(n=e.charCodeAt(i++))>=55296&&n<=56319&&i<o?56320==(64512&(t=e.charCodeAt(i++)))?a.push(((1023&n)<<10)+(1023&t)+65536):(a.push(n),i--):a.push(n);return a}function l(e,n){return u(e>>n&63|128)}function d(e){if(!(4294967168&e))return u(e);var n="";return 4294965248&e?4294901760&e?4292870144&e||(n=u(e>>18&7|240),n+=l(e,12),n+=l(e,6)):(n=u(e>>12&15|224),n+=l(e,6)):n=u(e>>6&31|192),n+=u(63&e|128)}function m(){if(c>=r)throw Error("Invalid byte index");var e=255&s[c];if(c++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function f(){var e,n;if(c>r)throw Error("Invalid byte index");if(c==r)return!1;if(e=255&s[c],c++,!(128&e))return e;if(192==(224&e)){if((n=(31&e)<<6|m())>=128)return n;throw Error("Invalid continuation byte")}if(224==(240&e)){if((n=(15&e)<<12|m()<<6|m())>=2048)return n;throw Error("Invalid continuation byte")}if(240==(248&e)&&(n=(15&e)<<18|m()<<12|m()<<6|m())>=65536&&n<=1114111)return n;throw Error("Invalid WTF-8 detected")}var h={version:"1.0.1",encode:function(e){for(var n=p(e),t=n.length,a=-1,i="";++a<t;)i+=d(n[a]);return i},decode:function(e){s=p(e),r=s.length,c=0;for(var n,t=[];!1!==(n=f());)t.push(n);return function(e){for(var n,t=e.length,a=-1,i="";++a<t;)(n=e[a])>65535&&(i+=u((n-=65536)>>>10&1023|55296),n=56320|1023&n),i+=u(n);return i}(t)}};if(a&&!a.nodeType)if(i)i.exports=h;else{var x={}.hasOwnProperty;for(var b in h)x.call(h,b)&&(a[b]=h[b])}else t.wtf8=h}(v)}(pr,pr.exports);var lr=pr.exports;const dr=async(e,n,{status:a,duration:i,errors:o,error:s,retry:r,attachments:u})=>{const p=new Date,{currentShard:l,rootDir:d,ciBuildId:m}=e,{title:f,repeatEachIndex:h}=n,{historyId:v}=vs(n,d),x=n.outcome(),b=Cn(r,h),g={shard:l,isExpected:"expected"===x,repeatEachIndex:h,status:cr(x,a)};try{const n={outcome:g,status:a,duration:i,log:lr.encode(o.map((e=>{var n;return null!==(n=e.message)&&void 0!==n?n:""})).join("\n")),screenshots:[],videos:[],traces:[],completedAt:p.toString(),errorSnippet:s&&ws(s)};await wn((()=>e.startedAttempts.has(Cn(v,b)))),gn.underline(f);const r=u.map((({name:e,path:n,body:a,contentType:i})=>{if(ys.includes(e)){const o=n?t.readFileSync(n):a,s=((e,n,t)=>null!=e?e:`${n}.${t.split("/")[1]}`)(n,e,i),{file:r,...u}=((e,n,t)=>{const a=e.byteLength;return{file:e,filename:t,checksum:c.createHash("md5").update(e).digest("base64"),byteSize:a,contentType:n}})(o,i,s);return{file:r,metadata:u,name:e}}})).filter((e=>void 0!==e)),l={metadata:ee("metadata",r)},{data:d}=await(e=>is.post(`${os}/reporter/direct_uploads`,{blob:e}))(l),h=await Promise.all(d.map((async({signedId:e,directUpload:t},a)=>{var i,o;return n[`${null===(i=r[a])||void 0===i?void 0:i.name}s`].push(e),ur(r[a].file,t,`${f} - ${null===(o=r[a])||void 0===o?void 0:o.name}`)})));e.progressBars.push(...h);const x=Ds(m,v,e.attempts[v][b],n);e.testResultCalls.push(x),await x,gn.log(ms.reportedTest({title:f,status:a,historyId:v,completedAt:p}))}catch(s){await Fn({context:{historyId:v,attemptIndex:b,title:f,status:a,outcome:g,duration:i,completedAt:p},error:s,title:"onTestEnd"}),gn.error(s.message),gn.error(fn.failedToReportTest(f,v)),await bs(m)}finally{e.unreportedAttemptCount--,e.startedAttempts.delete(Cn(v,b))}},mr=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 fr="axios-retry";function hr(e){return!e.response&&(!!e.code&&(!["ERR_CANCELED","ECONNABORTED"].includes(e.code)&&(e=>!mr.has(e&&e.code))(e)))}const vr=["get","head","options"],xr=vr.concat(["put","delete"]);function br(e){return"ECONNABORTED"!==e.code&&(!e.response||429===e.response.status||e.response.status>=500&&e.response.status<=599)}function gr(e){return!!e.config?.method&&(br(e)&&-1!==xr.indexOf(e.config.method))}function Dr(e){return hr(e)||gr(e)}function yr(e=void 0){const n=e?.response?.headers["retry-after"];if(!n)return 0;let t=1e3*(Number(n)||0);return 0===t&&(t=(new Date(n).valueOf()||0)-Date.now()),Math.max(0,t)}const wr={retries:3,retryCondition:Dr,retryDelay:function(e=0,n=void 0){return Math.max(0,yr(n))},shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function _r(e,n,t=!1){const a=function(e,n){return{...wr,...n,...e[fr]}}(e,n||{});return a.retryCount=a.retryCount||0,a.lastRequestTime&&!t||(a.lastRequestTime=Date.now()),e[fr]=a,a}const Cr=(e,n)=>{const t=e.interceptors.request.use((e=>(_r(e,n,!0),e[fr]?.validateResponse&&(e.validateStatus=()=>!1),e))),a=e.interceptors.response.use(null,(async t=>{const{config:a}=t;if(!a)return Promise.reject(t);const i=_r(a,n);return t.response&&i.validateResponse?.(t.response)?t.response:await async function(e,n){const{retries:t,retryCondition:a}=e,i=(e.retryCount||0)<t&&a(n);if("object"==typeof i)try{return!1!==await i}catch(e){return!1}return i}(i,t)?async function(e,n,t,a){n.retryCount+=1;const{retryDelay:i,shouldResetTimeout:o,onRetry:s}=n,r=i(n.retryCount,t);if(function(e,n){e.defaults.agent===n.agent&&delete n.agent,e.defaults.httpAgent===n.httpAgent&&delete n.httpAgent,e.defaults.httpsAgent===n.httpsAgent&&delete n.httpsAgent}(e,a),!o&&a.timeout&&n.lastRequestTime){const e=Date.now()-n.lastRequestTime,i=a.timeout-e-r;if(i<=0)return Promise.reject(t);a.timeout=i}return a.transformRequest=[e=>e],await s(n.retryCount,t,a),a.signal?.aborted?Promise.resolve(e(a)):new Promise((n=>{const t=()=>{clearTimeout(i),n(e(a))},i=setTimeout((()=>{n(e(a)),a.signal?.removeEventListener&&a.signal.removeEventListener("abort",t)}),r);a.signal?.addEventListener&&a.signal.addEventListener("abort",t,{once:!0})}))}(e,i,t,a):(await async function(e,n){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(n,e.retryCount)}(i,t),Promise.reject(t))}));return{requestInterceptorId:t,responseInterceptorId:a}};Cr.isNetworkError=hr,Cr.isSafeRequestError=function(e){return!!e.config?.method&&(br(e)&&-1!==vr.indexOf(e.config.method))},Cr.isIdempotentRequestError=gr,Cr.isNetworkOrIdempotentRequestError=Dr,Cr.exponentialDelay=function(e=0,n=void 0,t=100){const a=2**e*t,i=Math.max(a,yr(n));return i+.2*i*Math.random()},Cr.linearDelay=function(e=100){return(n=0,t=void 0)=>{const a=n*e;return Math.max(a,yr(t))}},Cr.isRetryableError=br;const Er="Content-Type",Fr="Accept",kr="X-Api-Key",jr="Project-Key",Tr=e=>e===Object(e)&&!(e instanceof Buffer);function Or({projectKey:e,baseURL:n,apiKey:t}){is.defaults.baseURL=null!=n?n:"https://connect.neetoplaydash.com",is.defaults.skipSnakeCaseConversion=!1,(({projectKey:e,apiKey:n})=>{is.defaults.headers={...is.defaults.headers,[jr]:e,[kr]:null!=n?n:"",[Fr]:"application/json",[Er]:"application/json"}})({projectKey:e,apiKey:t}),is.interceptors.request.use((e=>{const n=e.data;return Tr(n)&&!e.skipSnakeCaseConversion&&(e.data=dn(n,(function(e,n){return[ln(e),n]}))),e})),is.interceptors.response.use((e=>{const n=e.data;return Tr(n)&&(e.data=dn(n,(function(e,n){return[(t=e,t.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))),n];var t}))),e})),Cr(is,{retryDelay:Cr.exponentialDelay,retryCondition:e=>{var n;const t=null===(n=e.status)||void 0===n?void 0:n.toString();return!!t&&t.startsWith("5")},retries:2})}module.exports=class{constructor(e){var n;this.onBegin=(e,n)=>(async(e,n,t)=>{var a,i,o,s;const r=n.shard;e.config=n;const c=e.currentShard=null!==(a=null==r?void 0:r.current)&&void 0!==a?a:0;let u={};D.setContext({ciBuildId:e.ciBuildId,currentShard:null==r?void 0:r.current,rootDir:n.rootDir}),e.totalTestCount=t.allTests().length,e.rootDir=n.rootDir;const p={commitId:hs({command:"git rev-parse HEAD",messageOnError:mn.failedToGetCommitSha}),commitName:hs({command:"git show-branch --no-name HEAD",messageOnError:mn.failedToGetCommitMessage}),author:hs({command:"git show -s --format='%an' HEAD",messageOnError:mn.failedToGetBranch}),branch:hs({command:"git branch --show-current",messageOnError:mn.failedToGetBranch}),tags:"string"==typeof e.tags?e.tags.split(","):e.tags,ciBuildId:e.ciBuildId,configuration:{...n,baseDir:process.cwd()},shards:Dn({currentShard:c})};try{if(0===e.totalTestCount)return gn.redText(mn.noTestsToReport),e.hasRunStarted=!0,void await ss(p);await ss(p),e.hasRunStarted=!0,({data:u}=await us(e.ciBuildId,{testEntities:xs(n,t),shard:c}))}catch(e){const a=e,r=null===(i=a.response)||void 0===i?void 0:i.data;gn.error(null!==(o=null==r?void 0:r.error)&&void 0!==o?o:a.message),gn.error(mn.failedToInitializeRun),await Fn({context:{...p,testEntities:xs(n,t)},error:e,title:"onBegin"}),422===(null===(s=a.response)||void 0===s?void 0:s.status)&&(process.kill(process.pid,"SIGKILL"),process.exit(1))}gn.log(ls.testData(e.ciBuildId,r)),await bs(e.ciBuildId),e.heartbeatInterval=setInterval((async()=>await bs(e.ciBuildId)),45e3),e.attempts=u})(this,e,n),this.onTestBegin=(e,n)=>(async(e,n,{retry:t})=>{const{title:a,repeatEachIndex:i}=n,{rootDir:o,currentShard:s,ciBuildId:r}=e,{historyId:c}=vs(n,o),u=(new Date).toString(),p=Cn(t,i);e.unreportedAttemptCount++;try{await wn((()=>{var n,t;return null===(t=null===(n=e.attempts)||void 0===n?void 0:n[c])||void 0===t?void 0:t["0-0"]})),gn.invertBackground(ds.startingTest(a,c));const n={status:"running",startedAt:u,shard:s,repeatEachIndex:i};if(0===t&&0===i)await Ds(r,c,e.attempts[c]["0-0"],n);else{const{data:{attemptId:t}}=await gs(r,c,n);e.attempts=de(e.attempts,{[c]:{[p]:t}})}e.startedAttempts.add(Cn(c,p))}catch(e){await Fn({context:{historyId:c,attemptIndex:p,title:a},error:e,title:"onTestBegin"}),gn.error(e.message),gn.error(fn.failedToReportTest(a,c)),await bs(r)}})(this,e,n),this.onTestEnd=async(e,n)=>dr(this,e,n),this.onEnd=async e=>(async(e,{status:n,duration:t})=>{var a,i;const{currentShard:o}=e;if(0!==e.totalTestCount)try{await wn((()=>e.hasRunStarted&&0===e.unreportedAttemptCount)),await Promise.allSettled(e.testResultCalls),await rs(e.ciBuildId,{shards:Dn({currentShard:o,status:n,duration:t})})}catch(e){const o=null===(a=e.response)||void 0===a?void 0:a.data;await Fn({context:{runStatus:n,runDuration:t},error:e,title:"onEnd"}),gn.error(null!==(i=o.error)&&void 0!==i?i:e.message),gn.error(hn.failedToReportRunStatus)}finally{gn.invertBackground(fs.runReported),clearInterval(e.heartbeatInterval)}else await rs(e.ciBuildId,{shards:Dn({currentShard:o,status:n,duration:t})})})(this,e),this.attempts={},this.tags=e.tags,this.ciBuildId=e.ciBuildId,this.testResultCalls=[],this.totalTestCount=0,this.unreportedAttemptCount=0,this.hasRunStarted=!1,this.heartbeatInterval=null,this.rootDir="",this.currentShard=0,this.progressBars=[],this.startedAttempts=new Set,D.configure({apiKey:En("9d5d98e72929dae3c8b3701f50032da1a02b80f9dc29a8e448a601871e5c82fd0ac2fa33c46443709cdb3eabc54a06ab"),environment:(null===(n=null==e?void 0:e.baseURL)||void 0===n?void 0:n.includes(".net"))?"staging":"production"}),D.setContext(e),((e,n)=>{Or(n),process.on("unhandledRejection",(async n=>{var t,a,i;const o=null===(t=n.response)||void 0===t?void 0:t.data;await Fn({context:{},error:n,title:"unhandledRejection"}),await bs(e.ciBuildId),gn.error(null!==(i=null!==(a=null==o?void 0:o.error)&&void 0!==a?a:n.message)&&void 0!==i?i:JSON.stringify(n))}))})(this,e)}};
|
|
10
10
|
//# sourceMappingURL=index.cjs.js.map
|