@umijs/utils 4.0.0-beta.9 → 4.0.0-rc.3
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/compiled/axios/index.d.ts +29 -14
- package/compiled/axios/index.js +1 -1
- package/compiled/chalk/LICENSE +1 -1
- package/compiled/chalk/index.js +1 -1
- package/compiled/chalk/package.json +1 -1
- package/compiled/chalk/source/index.d.ts +318 -0
- package/compiled/chalk/source/vendor/supports-color/index.d.ts +55 -0
- package/compiled/color/color-convert/conversions.d.ts +87 -87
- package/compiled/color/color-convert/index.d.ts +75 -60
- package/compiled/color/color-convert/route.d.ts +271 -271
- package/compiled/color/index.d.ts +118 -121
- package/compiled/color/index.js +1 -1
- package/compiled/color/package.json +1 -4
- package/compiled/debug/LICENSE +10 -9
- package/compiled/debug/index.js +1 -1
- package/compiled/debug/package.json +1 -1
- package/compiled/execa/index.d.ts +467 -445
- package/compiled/execa/index.js +1 -1
- package/compiled/globby/@nodelib/fs.scandir/out/adapters/fs.d.ts +20 -0
- package/compiled/globby/@nodelib/fs.scandir/out/index.d.ts +12 -0
- package/compiled/globby/@nodelib/fs.scandir/out/providers/async.d.ts +7 -0
- package/compiled/globby/@nodelib/fs.scandir/out/settings.d.ts +20 -0
- package/compiled/globby/@nodelib/fs.scandir/out/types/index.d.ts +20 -0
- package/compiled/globby/@nodelib/fs.stat/out/adapters/fs.d.ts +13 -0
- package/compiled/globby/@nodelib/fs.stat/out/index.d.ts +12 -0
- package/compiled/globby/@nodelib/fs.stat/out/providers/async.d.ts +4 -0
- package/compiled/globby/@nodelib/fs.stat/out/settings.d.ts +16 -0
- package/compiled/globby/@nodelib/fs.stat/out/types/index.d.ts +4 -0
- package/compiled/globby/@nodelib/fs.walk/out/index.d.ts +14 -0
- package/compiled/globby/@nodelib/fs.walk/out/providers/async.d.ts +12 -0
- package/compiled/globby/@nodelib/fs.walk/out/readers/async.d.ts +30 -0
- package/compiled/globby/@nodelib/fs.walk/out/readers/reader.d.ts +6 -0
- package/compiled/globby/@nodelib/fs.walk/out/settings.d.ts +30 -0
- package/compiled/globby/@nodelib/fs.walk/out/types/index.d.ts +8 -0
- package/compiled/globby/LICENSE +9 -0
- package/compiled/globby/fast-glob/out/index.d.ts +27 -0
- package/compiled/globby/fast-glob/out/managers/tasks.d.ts +22 -0
- package/compiled/globby/fast-glob/out/settings.d.ts +164 -0
- package/compiled/globby/fast-glob/out/types/index.d.ts +31 -0
- package/compiled/globby/index.d.ts +206 -0
- package/compiled/globby/index.js +37 -0
- package/compiled/globby/package.json +1 -0
- package/compiled/pirates/LICENSE +21 -0
- package/compiled/pirates/index.d.ts +82 -0
- package/compiled/pirates/index.js +1 -0
- package/compiled/pirates/package.json +1 -0
- package/compiled/pkg-up/LICENSE +1 -1
- package/compiled/pkg-up/index.d.ts +55 -44
- package/compiled/pkg-up/index.js +1 -1
- package/compiled/pkg-up/package.json +1 -1
- package/compiled/resolve/index.js +1 -1
- package/compiled/strip-ansi/LICENSE +1 -1
- package/compiled/strip-ansi/index.d.ts +2 -4
- package/compiled/strip-ansi/index.js +1 -1
- package/compiled/strip-ansi/package.json +1 -1
- package/compiled/yargs-parser/index.js +1 -1
- package/dist/getCorejsVersion.d.ts +1 -0
- package/dist/getCorejsVersion.js +11 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.js +6 -5
- package/dist/installDeps.js +20 -4
- package/dist/isStyleFile.d.ts +5 -0
- package/dist/isStyleFile.js +16 -0
- package/dist/logger.d.ts +8 -6
- package/dist/logger.js +8 -1
- package/dist/register.js +21 -22
- package/dist/tryPaths.d.ts +1 -0
- package/dist/tryPaths.js +11 -0
- package/package.json +19 -18
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// TypeScript Version: 3.0
|
|
2
2
|
|
|
3
|
-
export type AxiosRequestHeaders = Record<string, string>;
|
|
3
|
+
export type AxiosRequestHeaders = Record<string, string | number | boolean>;
|
|
4
4
|
|
|
5
5
|
export type AxiosResponseHeaders = Record<string, string> & {
|
|
6
6
|
"set-cookie"?: string[]
|
|
@@ -15,7 +15,7 @@ export interface AxiosResponseTransformer {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
export interface AxiosAdapter {
|
|
18
|
-
(config: AxiosRequestConfig): AxiosPromise
|
|
18
|
+
(config: AxiosRequestConfig): AxiosPromise;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
export interface AxiosBasicCredentials {
|
|
@@ -53,6 +53,20 @@ export type ResponseType =
|
|
|
53
53
|
| 'text'
|
|
54
54
|
| 'stream';
|
|
55
55
|
|
|
56
|
+
export type responseEncoding =
|
|
57
|
+
| 'ascii' | 'ASCII'
|
|
58
|
+
| 'ansi' | 'ANSI'
|
|
59
|
+
| 'binary' | 'BINARY'
|
|
60
|
+
| 'base64' | 'BASE64'
|
|
61
|
+
| 'base64url' | 'BASE64URL'
|
|
62
|
+
| 'hex' | 'HEX'
|
|
63
|
+
| 'latin1' | 'LATIN1'
|
|
64
|
+
| 'ucs-2' | 'UCS-2'
|
|
65
|
+
| 'ucs2' | 'UCS2'
|
|
66
|
+
| 'utf-8' | 'UTF-8'
|
|
67
|
+
| 'utf8' | 'UTF8'
|
|
68
|
+
| 'utf16le' | 'UTF16LE';
|
|
69
|
+
|
|
56
70
|
export interface TransitionalOptions {
|
|
57
71
|
silentJSONParsing?: boolean;
|
|
58
72
|
forcedJSONParsing?: boolean;
|
|
@@ -75,6 +89,7 @@ export interface AxiosRequestConfig<D = any> {
|
|
|
75
89
|
adapter?: AxiosAdapter;
|
|
76
90
|
auth?: AxiosBasicCredentials;
|
|
77
91
|
responseType?: ResponseType;
|
|
92
|
+
responseEncoding?: responseEncoding | string;
|
|
78
93
|
xsrfCookieName?: string;
|
|
79
94
|
xsrfHeaderName?: string;
|
|
80
95
|
onUploadProgress?: (progressEvent: any) => void;
|
|
@@ -112,7 +127,7 @@ export interface AxiosDefaults<D = any> extends Omit<AxiosRequestConfig<D>, 'hea
|
|
|
112
127
|
headers: HeadersDefaults;
|
|
113
128
|
}
|
|
114
129
|
|
|
115
|
-
export interface AxiosResponse<T =
|
|
130
|
+
export interface AxiosResponse<T = any, D = any> {
|
|
116
131
|
data: T;
|
|
117
132
|
status: number;
|
|
118
133
|
statusText: string;
|
|
@@ -121,7 +136,7 @@ export interface AxiosResponse<T = unknown, D = any> {
|
|
|
121
136
|
request?: any;
|
|
122
137
|
}
|
|
123
138
|
|
|
124
|
-
export interface AxiosError<T =
|
|
139
|
+
export interface AxiosError<T = any, D = any> extends Error {
|
|
125
140
|
config: AxiosRequestConfig<D>;
|
|
126
141
|
code?: string;
|
|
127
142
|
request?: any;
|
|
@@ -130,7 +145,7 @@ export interface AxiosError<T = unknown, D = any> extends Error {
|
|
|
130
145
|
toJSON: () => object;
|
|
131
146
|
}
|
|
132
147
|
|
|
133
|
-
export interface AxiosPromise<T =
|
|
148
|
+
export interface AxiosPromise<T = any> extends Promise<AxiosResponse<T>> {
|
|
134
149
|
}
|
|
135
150
|
|
|
136
151
|
export interface CancelStatic {
|
|
@@ -138,7 +153,7 @@ export interface CancelStatic {
|
|
|
138
153
|
}
|
|
139
154
|
|
|
140
155
|
export interface Cancel {
|
|
141
|
-
message: string;
|
|
156
|
+
message: string | undefined;
|
|
142
157
|
}
|
|
143
158
|
|
|
144
159
|
export interface Canceler {
|
|
@@ -174,14 +189,14 @@ export class Axios {
|
|
|
174
189
|
response: AxiosInterceptorManager<AxiosResponse>;
|
|
175
190
|
};
|
|
176
191
|
getUri(config?: AxiosRequestConfig): string;
|
|
177
|
-
request<T =
|
|
178
|
-
get<T =
|
|
179
|
-
delete<T =
|
|
180
|
-
head<T =
|
|
181
|
-
options<T =
|
|
182
|
-
post<T =
|
|
183
|
-
put<T =
|
|
184
|
-
patch<T =
|
|
192
|
+
request<T = any, R = AxiosResponse<T>, D = any>(config: AxiosRequestConfig<D>): Promise<R>;
|
|
193
|
+
get<T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;
|
|
194
|
+
delete<T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;
|
|
195
|
+
head<T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;
|
|
196
|
+
options<T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;
|
|
197
|
+
post<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>;
|
|
198
|
+
put<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>;
|
|
199
|
+
patch<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>;
|
|
185
200
|
}
|
|
186
201
|
|
|
187
202
|
export interface AxiosInstance extends Axios {
|
package/compiled/axios/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(){var e={120:function(e,t,r){e.exports=r(103)},562:function(e,t,r){"use strict";var n=r(590);var o=r(415);var i=r(138);var s=r(323);var a=r(605);var u=r(211);var f=r(886).http;var c=r(886).https;var l=r(835);var d=r(761);var p=r(278).version;var h=r(451);var m=r(398);var v=r(661);var g=r(85);var y=/https:?/;function setProxy(e,t,r){e.hostname=t.host;e.host=t.host;e.port=t.port;e.path=r;if(t.auth){var n=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+n}e.beforeRedirect=function beforeRedirect(e){e.headers.host=e.host;setProxy(e,t,e.href)}}e.exports=function httpAdapter(e){return new Promise((function dispatchHttpRequest(t,r){var b;function done(){if(e.cancelToken){e.cancelToken.unsubscribe(b)}if(e.signal){e.signal.removeEventListener("abort",b)}}var R=function resolve(e){done();t(e)};var _=function reject(e){done();r(e)};var E=e.data;var x=e.headers;var w={};Object.keys(x).forEach((function storeLowerName(e){w[e.toLowerCase()]=e}));if("user-agent"in w){if(!x[w["user-agent"]]){delete x[w["user-agent"]]}}else{x["User-Agent"]="axios/"+p}if(E&&!n.isStream(E)){if(Buffer.isBuffer(E)){}else if(n.isArrayBuffer(E)){E=Buffer.from(new Uint8Array(E))}else if(n.isString(E)){E=Buffer.from(E,"utf-8")}else{return _(h("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e))}if(!w["content-length"]){x["Content-Length"]=E.length}}var T=undefined;if(e.auth){var C=e.auth.username||"";var q=e.auth.password||"";T=C+":"+q}var O=i(e.baseURL,e.url);var S=l.parse(O);var A=S.protocol||"http:";if(!T&&S.auth){var B=S.auth.split(":");var j=B[0]||"";var U=B[1]||"";T=j+":"+U}if(T&&w.authorization){delete x[w.authorization]}var L=y.test(A);var N=L?e.httpsAgent:e.httpAgent;var P={path:s(S.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:x,agent:N,agents:{http:e.httpAgent,https:e.httpsAgent},auth:T};if(e.socketPath){P.socketPath=e.socketPath}else{P.hostname=S.hostname;P.port=S.port}var k=e.proxy;if(!k&&k!==false){var D=A.slice(0,-1)+"_proxy";var M=process.env[D]||process.env[D.toUpperCase()];if(M){var I=l.parse(M);var H=process.env.no_proxy||process.env.NO_PROXY;var F=true;if(H){var z=H.split(",").map((function trim(e){return e.trim()}));F=!z.some((function proxyMatch(e){if(!e){return false}if(e==="*"){return true}if(e[0]==="."&&S.hostname.substr(S.hostname.length-e.length)===e){return true}return S.hostname===e}))}if(F){k={host:I.hostname,port:I.port,protocol:I.protocol};if(I.auth){var V=I.auth.split(":");k.auth={username:V[0],password:V[1]}}}}}if(k){P.headers.host=S.hostname+(S.port?":"+S.port:"");setProxy(P,k,A+"//"+S.hostname+(S.port?":"+S.port:"")+P.path)}var J;var W=L&&(k?y.test(k.protocol):true);if(e.transport){J=e.transport}else if(e.maxRedirects===0){J=W?u:a}else{if(e.maxRedirects){P.maxRedirects=e.maxRedirects}J=W?c:f}if(e.maxBodyLength>-1){P.maxBodyLength=e.maxBodyLength}if(e.insecureHTTPParser){P.insecureHTTPParser=e.insecureHTTPParser}var X=J.request(P,(function handleResponse(t){if(X.aborted)return;var r=t;var i=t.req||X;if(t.statusCode!==204&&i.method!=="HEAD"&&e.decompress!==false){switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":r=r.pipe(d.createUnzip());delete t.headers["content-encoding"];break}}var s={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:i};if(e.responseType==="stream"){s.data=r;o(R,_,s)}else{var a=[];var u=0;r.on("data",(function handleStreamData(t){a.push(t);u+=t.length;if(e.maxContentLength>-1&&u>e.maxContentLength){r.destroy();_(h("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,i))}}));r.on("error",(function handleStreamError(t){if(X.aborted)return;_(m(t,e,null,i))}));r.on("end",(function handleStreamEnd(){var t=Buffer.concat(a);if(e.responseType!=="arraybuffer"){t=t.toString(e.responseEncoding);if(!e.responseEncoding||e.responseEncoding==="utf8"){t=n.stripBOM(t)}}s.data=t;o(R,_,s)}))}}));X.on("error",(function handleRequestError(t){if(X.aborted&&t.code!=="ERR_FR_TOO_MANY_REDIRECTS")return;_(m(t,e,null,X))}));if(e.timeout){var $=parseInt(e.timeout,10);if(isNaN($)){_(h("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",X));return}X.setTimeout($,(function handleRequestTimeout(){X.abort();var t=e.transitional||v.transitional;_(h("timeout of "+$+"ms exceeded",e,t.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",X))}))}if(e.cancelToken||e.signal){b=function(e){if(X.aborted)return;X.abort();_(!e||e&&e.type?new g("canceled"):e)};e.cancelToken&&e.cancelToken.subscribe(b);if(e.signal){e.signal.aborted?b():e.signal.addEventListener("abort",b)}}if(n.isStream(E)){E.on("error",(function handleStreamError(t){_(m(t,e,null,X))})).pipe(X)}else{X.end(E)}}))}},974:function(e,t,r){"use strict";var n=r(590);var o=r(415);var i=r(51);var s=r(323);var a=r(138);var u=r(124);var f=r(450);var c=r(451);var l=r(661);var d=r(85);e.exports=function xhrAdapter(e){return new Promise((function dispatchXhrRequest(t,r){var p=e.data;var h=e.headers;var m=e.responseType;var v;function done(){if(e.cancelToken){e.cancelToken.unsubscribe(v)}if(e.signal){e.signal.removeEventListener("abort",v)}}if(n.isFormData(p)){delete h["Content-Type"]}var g=new XMLHttpRequest;if(e.auth){var y=e.auth.username||"";var b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";h.Authorization="Basic "+btoa(y+":"+b)}var R=a(e.baseURL,e.url);g.open(e.method.toUpperCase(),s(R,e.params,e.paramsSerializer),true);g.timeout=e.timeout;function onloadend(){if(!g){return}var n="getAllResponseHeaders"in g?u(g.getAllResponseHeaders()):null;var i=!m||m==="text"||m==="json"?g.responseText:g.response;var s={data:i,status:g.status,statusText:g.statusText,headers:n,config:e,request:g};o((function _resolve(e){t(e);done()}),(function _reject(e){r(e);done()}),s);g=null}if("onloadend"in g){g.onloadend=onloadend}else{g.onreadystatechange=function handleLoad(){if(!g||g.readyState!==4){return}if(g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)){return}setTimeout(onloadend)}}g.onabort=function handleAbort(){if(!g){return}r(c("Request aborted",e,"ECONNABORTED",g));g=null};g.onerror=function handleError(){r(c("Network Error",e,null,g));g=null};g.ontimeout=function handleTimeout(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";var n=e.transitional||l.transitional;if(e.timeoutErrorMessage){t=e.timeoutErrorMessage}r(c(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",g));g=null};if(n.isStandardBrowserEnv()){var _=(e.withCredentials||f(R))&&e.xsrfCookieName?i.read(e.xsrfCookieName):undefined;if(_){h[e.xsrfHeaderName]=_}}if("setRequestHeader"in g){n.forEach(h,(function setRequestHeader(e,t){if(typeof p==="undefined"&&t.toLowerCase()==="content-type"){delete h[t]}else{g.setRequestHeader(t,e)}}))}if(!n.isUndefined(e.withCredentials)){g.withCredentials=!!e.withCredentials}if(m&&m!=="json"){g.responseType=e.responseType}if(typeof e.onDownloadProgress==="function"){g.addEventListener("progress",e.onDownloadProgress)}if(typeof e.onUploadProgress==="function"&&g.upload){g.upload.addEventListener("progress",e.onUploadProgress)}if(e.cancelToken||e.signal){v=function(e){if(!g){return}r(!e||e&&e.type?new d("canceled"):e);g.abort();g=null};e.cancelToken&&e.cancelToken.subscribe(v);if(e.signal){e.signal.aborted?v():e.signal.addEventListener("abort",v)}}if(!p){p=null}g.send(p)}))}},103:function(e,t,r){"use strict";var n=r(590);var o=r(733);var i=r(100);var s=r(135);var a=r(661);function createInstance(e){var t=new i(e);var r=o(i.prototype.request,t);n.extend(r,i.prototype,t);n.extend(r,t);r.create=function create(t){return createInstance(s(e,t))};return r}var u=createInstance(a);u.Axios=i;u.Cancel=r(85);u.CancelToken=r(471);u.isCancel=r(928);u.VERSION=r(278).version;u.all=function all(e){return Promise.all(e)};u.spread=r(50);u.isAxiosError=r(223);e.exports=u;e.exports.default=u},85:function(e){"use strict";function Cancel(e){this.message=e}Cancel.prototype.toString=function toString(){return"Cancel"+(this.message?": "+this.message:"")};Cancel.prototype.__CANCEL__=true;e.exports=Cancel},471:function(e,t,r){"use strict";var n=r(85);function CancelToken(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}var t;this.promise=new Promise((function promiseExecutor(e){t=e}));var r=this;this.promise.then((function(e){if(!r._listeners)return;var t;var n=r._listeners.length;for(t=0;t<n;t++){r._listeners[t](e)}r._listeners=null}));this.promise.then=function(e){var t;var n=new Promise((function(e){r.subscribe(e);t=e})).then(e);n.cancel=function reject(){r.unsubscribe(t)};return n};e((function cancel(e){if(r.reason){return}r.reason=new n(e);t(r.reason)}))}CancelToken.prototype.throwIfRequested=function throwIfRequested(){if(this.reason){throw this.reason}};CancelToken.prototype.subscribe=function subscribe(e){if(this.reason){e(this.reason);return}if(this._listeners){this._listeners.push(e)}else{this._listeners=[e]}};CancelToken.prototype.unsubscribe=function unsubscribe(e){if(!this._listeners){return}var t=this._listeners.indexOf(e);if(t!==-1){this._listeners.splice(t,1)}};CancelToken.source=function source(){var e;var t=new CancelToken((function executor(t){e=t}));return{token:t,cancel:e}};e.exports=CancelToken},928:function(e){"use strict";e.exports=function isCancel(e){return!!(e&&e.__CANCEL__)}},100:function(e,t,r){"use strict";var n=r(590);var o=r(323);var i=r(376);var s=r(548);var a=r(135);var u=r(434);var f=u.validators;function Axios(e){this.defaults=e;this.interceptors={request:new i,response:new i}}Axios.prototype.request=function request(e){if(typeof e==="string"){e=arguments[1]||{};e.url=arguments[0]}else{e=e||{}}e=a(this.defaults,e);if(e.method){e.method=e.method.toLowerCase()}else if(this.defaults.method){e.method=this.defaults.method.toLowerCase()}else{e.method="get"}var t=e.transitional;if(t!==undefined){u.assertOptions(t,{silentJSONParsing:f.transitional(f.boolean),forcedJSONParsing:f.transitional(f.boolean),clarifyTimeoutError:f.transitional(f.boolean)},false)}var r=[];var n=true;this.interceptors.request.forEach((function unshiftRequestInterceptors(t){if(typeof t.runWhen==="function"&&t.runWhen(e)===false){return}n=n&&t.synchronous;r.unshift(t.fulfilled,t.rejected)}));var o=[];this.interceptors.response.forEach((function pushResponseInterceptors(e){o.push(e.fulfilled,e.rejected)}));var i;if(!n){var c=[s,undefined];Array.prototype.unshift.apply(c,r);c=c.concat(o);i=Promise.resolve(e);while(c.length){i=i.then(c.shift(),c.shift())}return i}var l=e;while(r.length){var d=r.shift();var p=r.shift();try{l=d(l)}catch(e){p(e);break}}try{i=s(l)}catch(e){return Promise.reject(e)}while(o.length){i=i.then(o.shift(),o.shift())}return i};Axios.prototype.getUri=function getUri(e){e=a(this.defaults,e);return o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};n.forEach(["delete","get","head","options"],(function forEachMethodNoData(e){Axios.prototype[e]=function(t,r){return this.request(a(r||{},{method:e,url:t,data:(r||{}).data}))}}));n.forEach(["post","put","patch"],(function forEachMethodWithData(e){Axios.prototype[e]=function(t,r,n){return this.request(a(n||{},{method:e,url:t,data:r}))}}));e.exports=Axios},376:function(e,t,r){"use strict";var n=r(590);function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function use(e,t,r){this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:false,runWhen:r?r.runWhen:null});return this.handlers.length-1};InterceptorManager.prototype.eject=function eject(e){if(this.handlers[e]){this.handlers[e]=null}};InterceptorManager.prototype.forEach=function forEach(e){n.forEach(this.handlers,(function forEachHandler(t){if(t!==null){e(t)}}))};e.exports=InterceptorManager},138:function(e,t,r){"use strict";var n=r(147);var o=r(792);e.exports=function buildFullPath(e,t){if(e&&!n(t)){return o(e,t)}return t}},451:function(e,t,r){"use strict";var n=r(398);e.exports=function createError(e,t,r,o,i){var s=new Error(e);return n(s,t,r,o,i)}},548:function(e,t,r){"use strict";var n=r(590);var o=r(694);var i=r(928);var s=r(661);var a=r(85);function throwIfCancellationRequested(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}if(e.signal&&e.signal.aborted){throw new a("canceled")}}e.exports=function dispatchRequest(e){throwIfCancellationRequested(e);e.headers=e.headers||{};e.data=o.call(e,e.data,e.headers,e.transformRequest);e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers);n.forEach(["delete","get","head","post","put","patch","common"],(function cleanHeaderConfig(t){delete e.headers[t]}));var t=e.adapter||s.adapter;return t(e).then((function onAdapterResolution(t){throwIfCancellationRequested(e);t.data=o.call(e,t.data,t.headers,e.transformResponse);return t}),(function onAdapterRejection(t){if(!i(t)){throwIfCancellationRequested(e);if(t&&t.response){t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse)}}return Promise.reject(t)}))}},398:function(e){"use strict";e.exports=function enhanceError(e,t,r,n,o){e.config=t;if(r){e.code=r}e.request=n;e.response=o;e.isAxiosError=true;e.toJSON=function toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}};return e}},135:function(e,t,r){"use strict";var n=r(590);e.exports=function mergeConfig(e,t){t=t||{};var r={};function getMergedValue(e,t){if(n.isPlainObject(e)&&n.isPlainObject(t)){return n.merge(e,t)}else if(n.isPlainObject(t)){return n.merge({},t)}else if(n.isArray(t)){return t.slice()}return t}function mergeDeepProperties(r){if(!n.isUndefined(t[r])){return getMergedValue(e[r],t[r])}else if(!n.isUndefined(e[r])){return getMergedValue(undefined,e[r])}}function valueFromConfig2(e){if(!n.isUndefined(t[e])){return getMergedValue(undefined,t[e])}}function defaultToConfig2(r){if(!n.isUndefined(t[r])){return getMergedValue(undefined,t[r])}else if(!n.isUndefined(e[r])){return getMergedValue(undefined,e[r])}}function mergeDirectKeys(r){if(r in t){return getMergedValue(e[r],t[r])}else if(r in e){return getMergedValue(undefined,e[r])}}var o={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys};n.forEach(Object.keys(e).concat(Object.keys(t)),(function computeConfigValue(e){var t=o[e]||mergeDeepProperties;var i=t(e);n.isUndefined(i)&&t!==mergeDirectKeys||(r[e]=i)}));return r}},415:function(e,t,r){"use strict";var n=r(451);e.exports=function settle(e,t,r){var o=r.config.validateStatus;if(!r.status||!o||o(r.status)){e(r)}else{t(n("Request failed with status code "+r.status,r.config,null,r.request,r))}}},694:function(e,t,r){"use strict";var n=r(590);var o=r(661);e.exports=function transformData(e,t,r){var i=this||o;n.forEach(r,(function transform(r){e=r.call(i,e,t)}));return e}},661:function(e,t,r){"use strict";var n=r(590);var o=r(408);var i=r(398);var s={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,t){if(!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])){e["Content-Type"]=t}}function getDefaultAdapter(){var e;if(typeof XMLHttpRequest!=="undefined"){e=r(974)}else if(typeof process!=="undefined"&&Object.prototype.toString.call(process)==="[object process]"){e=r(562)}return e}function stringifySafely(e,t,r){if(n.isString(e)){try{(t||JSON.parse)(e);return n.trim(e)}catch(e){if(e.name!=="SyntaxError"){throw e}}}return(r||JSON.stringify)(e)}var a={transitional:{silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false},adapter:getDefaultAdapter(),transformRequest:[function transformRequest(e,t){o(t,"Accept");o(t,"Content-Type");if(n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)){return e}if(n.isArrayBufferView(e)){return e.buffer}if(n.isURLSearchParams(e)){setContentTypeIfUnset(t,"application/x-www-form-urlencoded;charset=utf-8");return e.toString()}if(n.isObject(e)||t&&t["Content-Type"]==="application/json"){setContentTypeIfUnset(t,"application/json");return stringifySafely(e)}return e}],transformResponse:[function transformResponse(e){var t=this.transitional||a.transitional;var r=t&&t.silentJSONParsing;var o=t&&t.forcedJSONParsing;var s=!r&&this.responseType==="json";if(s||o&&n.isString(e)&&e.length){try{return JSON.parse(e)}catch(e){if(s){if(e.name==="SyntaxError"){throw i(e,this,"E_JSON_PARSE")}throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function validateStatus(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function forEachMethodNoData(e){a.headers[e]={}}));n.forEach(["post","put","patch"],(function forEachMethodWithData(e){a.headers[e]=n.merge(s)}));e.exports=a},278:function(e){e.exports={version:"0.23.0"}},733:function(e){"use strict";e.exports=function bind(e,t){return function wrap(){var r=new Array(arguments.length);for(var n=0;n<r.length;n++){r[n]=arguments[n]}return e.apply(t,r)}}},323:function(e,t,r){"use strict";var n=r(590);function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function buildURL(e,t,r){if(!t){return e}var o;if(r){o=r(t)}else if(n.isURLSearchParams(t)){o=t.toString()}else{var i=[];n.forEach(t,(function serialize(e,t){if(e===null||typeof e==="undefined"){return}if(n.isArray(e)){t=t+"[]"}else{e=[e]}n.forEach(e,(function parseValue(e){if(n.isDate(e)){e=e.toISOString()}else if(n.isObject(e)){e=JSON.stringify(e)}i.push(encode(t)+"="+encode(e))}))}));o=i.join("&")}if(o){var s=e.indexOf("#");if(s!==-1){e=e.slice(0,s)}e+=(e.indexOf("?")===-1?"?":"&")+o}return e}},792:function(e){"use strict";e.exports=function combineURLs(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},51:function(e,t,r){"use strict";var n=r(590);e.exports=n.isStandardBrowserEnv()?function standardBrowserEnv(){return{write:function write(e,t,r,o,i,s){var a=[];a.push(e+"="+encodeURIComponent(t));if(n.isNumber(r)){a.push("expires="+new Date(r).toGMTString())}if(n.isString(o)){a.push("path="+o)}if(n.isString(i)){a.push("domain="+i)}if(s===true){a.push("secure")}document.cookie=a.join("; ")},read:function read(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function remove(e){this.write(e,"",Date.now()-864e5)}}}():function nonStandardBrowserEnv(){return{write:function write(){},read:function read(){return null},remove:function remove(){}}}()},147:function(e){"use strict";e.exports=function isAbsoluteURL(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},223:function(e){"use strict";e.exports=function isAxiosError(e){return typeof e==="object"&&e.isAxiosError===true}},450:function(e,t,r){"use strict";var n=r(590);e.exports=n.isStandardBrowserEnv()?function standardBrowserEnv(){var e=/(msie|trident)/i.test(navigator.userAgent);var t=document.createElement("a");var r;function resolveURL(r){var n=r;if(e){t.setAttribute("href",n);n=t.href}t.setAttribute("href",n);return{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}r=resolveURL(window.location.href);return function isURLSameOrigin(e){var t=n.isString(e)?resolveURL(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function nonStandardBrowserEnv(){return function isURLSameOrigin(){return true}}()},408:function(e,t,r){"use strict";var n=r(590);e.exports=function normalizeHeaderName(e,t){n.forEach(e,(function processHeader(r,n){if(n!==t&&n.toUpperCase()===t.toUpperCase()){e[t]=r;delete e[n]}}))}},124:function(e,t,r){"use strict";var n=r(590);var o=["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"];e.exports=function parseHeaders(e){var t={};var r;var i;var s;if(!e){return t}n.forEach(e.split("\n"),(function parser(e){s=e.indexOf(":");r=n.trim(e.substr(0,s)).toLowerCase();i=n.trim(e.substr(s+1));if(r){if(t[r]&&o.indexOf(r)>=0){return}if(r==="set-cookie"){t[r]=(t[r]?t[r]:[]).concat([i])}else{t[r]=t[r]?t[r]+", "+i:i}}}));return t}},50:function(e){"use strict";e.exports=function spread(e){return function wrap(t){return e.apply(null,t)}}},434:function(e,t,r){"use strict";var n=r(278).version;var o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function validator(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var i={};o.transitional=function transitional(e,t,r){function formatMessage(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,o){if(e===false){throw new Error(formatMessage(n," has been removed"+(t?" in "+t:"")))}if(t&&!i[n]){i[n]=true;console.warn(formatMessage(n," has been deprecated since v"+t+" and will be removed in the near future"))}return e?e(r,n,o):true}};function assertOptions(e,t,r){if(typeof e!=="object"){throw new TypeError("options must be an object")}var n=Object.keys(e);var o=n.length;while(o-- >0){var i=n[o];var s=t[i];if(s){var a=e[i];var u=a===undefined||s(a,i,e);if(u!==true){throw new TypeError("option "+i+" must be "+u)}continue}if(r!==true){throw Error("Unknown option "+i)}}}e.exports={assertOptions:assertOptions,validators:o}},590:function(e,t,r){"use strict";var n=r(733);var o=Object.prototype.toString;function isArray(e){return o.call(e)==="[object Array]"}function isUndefined(e){return typeof e==="undefined"}function isBuffer(e){return e!==null&&!isUndefined(e)&&e.constructor!==null&&!isUndefined(e.constructor)&&typeof e.constructor.isBuffer==="function"&&e.constructor.isBuffer(e)}function isArrayBuffer(e){return o.call(e)==="[object ArrayBuffer]"}function isFormData(e){return typeof FormData!=="undefined"&&e instanceof FormData}function isArrayBufferView(e){var t;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){t=ArrayBuffer.isView(e)}else{t=e&&e.buffer&&e.buffer instanceof ArrayBuffer}return t}function isString(e){return typeof e==="string"}function isNumber(e){return typeof e==="number"}function isObject(e){return e!==null&&typeof e==="object"}function isPlainObject(e){if(o.call(e)!=="[object Object]"){return false}var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function isDate(e){return o.call(e)==="[object Date]"}function isFile(e){return o.call(e)==="[object File]"}function isBlob(e){return o.call(e)==="[object Blob]"}function isFunction(e){return o.call(e)==="[object Function]"}function isStream(e){return isObject(e)&&isFunction(e.pipe)}function isURLSearchParams(e){return typeof URLSearchParams!=="undefined"&&e instanceof URLSearchParams}function trim(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function isStandardBrowserEnv(){if(typeof navigator!=="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")){return false}return typeof window!=="undefined"&&typeof document!=="undefined"}function forEach(e,t){if(e===null||typeof e==="undefined"){return}if(typeof e!=="object"){e=[e]}if(isArray(e)){for(var r=0,n=e.length;r<n;r++){t.call(null,e[r],r,e)}}else{for(var o in e){if(Object.prototype.hasOwnProperty.call(e,o)){t.call(null,e[o],o,e)}}}}function merge(){var e={};function assignValue(t,r){if(isPlainObject(e[r])&&isPlainObject(t)){e[r]=merge(e[r],t)}else if(isPlainObject(t)){e[r]=merge({},t)}else if(isArray(t)){e[r]=t.slice()}else{e[r]=t}}for(var t=0,r=arguments.length;t<r;t++){forEach(arguments[t],assignValue)}return e}function extend(e,t,r){forEach(t,(function assignValue(t,o){if(r&&typeof t==="function"){e[o]=n(t,r)}else{e[o]=t}}));return e}function stripBOM(e){if(e.charCodeAt(0)===65279){e=e.slice(1)}return e}e.exports={isArray:isArray,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString,isNumber:isNumber,isObject:isObject,isPlainObject:isPlainObject,isUndefined:isUndefined,isDate:isDate,isFile:isFile,isBlob:isBlob,isFunction:isFunction,isStream:isStream,isURLSearchParams:isURLSearchParams,isStandardBrowserEnv:isStandardBrowserEnv,forEach:forEach,merge:merge,extend:extend,trim:trim,stripBOM:stripBOM}},779:function(e,t,r){var n;e.exports=function(){if(!n){try{n=r(627)("follow-redirects")}catch(e){}if(typeof n!=="function"){n=function(){}}}n.apply(null,arguments)}},886:function(e,t,r){var n=r(835);var o=n.URL;var i=r(605);var s=r(211);var a=r(413).Writable;var u=r(357);var f=r(779);var c=["abort","aborted","connect","error","socket","timeout"];var l=Object.create(null);c.forEach((function(e){l[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}}));var d=createErrorType("ERR_FR_REDIRECTION_FAILURE","");var p=createErrorType("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded");var h=createErrorType("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit");var m=createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");function RedirectableRequest(e,t){a.call(this);this._sanitizeOptions(e);this._options=e;this._ended=false;this._ending=false;this._redirectCount=0;this._redirects=[];this._requestBodyLength=0;this._requestBodyBuffers=[];if(t){this.on("response",t)}var r=this;this._onNativeResponse=function(e){r._processResponse(e)};this._performRequest()}RedirectableRequest.prototype=Object.create(a.prototype);RedirectableRequest.prototype.abort=function(){abortRequest(this._currentRequest);this.emit("abort")};RedirectableRequest.prototype.write=function(e,t,r){if(this._ending){throw new m}if(!(typeof e==="string"||typeof e==="object"&&"length"in e)){throw new TypeError("data should be a string, Buffer or Uint8Array")}if(typeof t==="function"){r=t;t=null}if(e.length===0){if(r){r()}return}if(this._requestBodyLength+e.length<=this._options.maxBodyLength){this._requestBodyLength+=e.length;this._requestBodyBuffers.push({data:e,encoding:t});this._currentRequest.write(e,t,r)}else{this.emit("error",new h);this.abort()}};RedirectableRequest.prototype.end=function(e,t,r){if(typeof e==="function"){r=e;e=t=null}else if(typeof t==="function"){r=t;t=null}if(!e){this._ended=this._ending=true;this._currentRequest.end(null,null,r)}else{var n=this;var o=this._currentRequest;this.write(e,t,(function(){n._ended=true;o.end(null,null,r)}));this._ending=true}};RedirectableRequest.prototype.setHeader=function(e,t){this._options.headers[e]=t;this._currentRequest.setHeader(e,t)};RedirectableRequest.prototype.removeHeader=function(e){delete this._options.headers[e];this._currentRequest.removeHeader(e)};RedirectableRequest.prototype.setTimeout=function(e,t){var r=this;function destroyOnTimeout(t){t.setTimeout(e);t.removeListener("timeout",t.destroy);t.addListener("timeout",t.destroy)}function startTimer(t){if(r._timeout){clearTimeout(r._timeout)}r._timeout=setTimeout((function(){r.emit("timeout");clearTimer()}),e);destroyOnTimeout(t)}function clearTimer(){if(r._timeout){clearTimeout(r._timeout);r._timeout=null}if(t){r.removeListener("timeout",t)}if(!r.socket){r._currentRequest.removeListener("socket",startTimer)}}if(t){this.on("timeout",t)}if(this.socket){startTimer(this.socket)}else{this._currentRequest.once("socket",startTimer)}this.on("socket",destroyOnTimeout);this.once("response",clearTimer);this.once("error",clearTimer);return this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){RedirectableRequest.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}}));["aborted","connection","socket"].forEach((function(e){Object.defineProperty(RedirectableRequest.prototype,e,{get:function(){return this._currentRequest[e]}})}));RedirectableRequest.prototype._sanitizeOptions=function(e){if(!e.headers){e.headers={}}if(e.host){if(!e.hostname){e.hostname=e.host}delete e.host}if(!e.pathname&&e.path){var t=e.path.indexOf("?");if(t<0){e.pathname=e.path}else{e.pathname=e.path.substring(0,t);e.search=e.path.substring(t)}}};RedirectableRequest.prototype._performRequest=function(){var e=this._options.protocol;var t=this._options.nativeProtocols[e];if(!t){this.emit("error",new TypeError("Unsupported protocol "+e));return}if(this._options.agents){var r=e.substr(0,e.length-1);this._options.agent=this._options.agents[r]}var o=this._currentRequest=t.request(this._options,this._onNativeResponse);this._currentUrl=n.format(this._options);o._redirectable=this;for(var i=0;i<c.length;i++){o.on(c[i],l[c[i]])}if(this._isRedirect){var s=0;var a=this;var u=this._requestBodyBuffers;(function writeNext(e){if(o===a._currentRequest){if(e){a.emit("error",e)}else if(s<u.length){var t=u[s++];if(!o.finished){o.write(t.data,t.encoding,writeNext)}}else if(a._ended){o.end()}}})()}};RedirectableRequest.prototype._processResponse=function(e){var t=e.statusCode;if(this._options.trackRedirects){this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t})}var r=e.headers.location;if(r&&this._options.followRedirects!==false&&t>=300&&t<400){abortRequest(this._currentRequest);e.destroy();if(++this._redirectCount>this._options.maxRedirects){this.emit("error",new p);return}if((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method)){this._options.method="GET";this._requestBodyBuffers=[];removeMatchingHeaders(/^content-/i,this._options.headers)}var o=removeMatchingHeaders(/^host$/i,this._options.headers)||n.parse(this._currentUrl).hostname;var i=n.resolve(this._currentUrl,r);f("redirecting to",i);this._isRedirect=true;var s=n.parse(i);Object.assign(this._options,s);if(s.hostname!==o){removeMatchingHeaders(/^authorization$/i,this._options.headers)}if(typeof this._options.beforeRedirect==="function"){var a={headers:e.headers};try{this._options.beforeRedirect.call(null,this._options,a)}catch(e){this.emit("error",e);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){var u=new d("Redirected request failed: "+e.message);u.cause=e;this.emit("error",u)}}else{e.responseUrl=this._currentUrl;e.redirects=this._redirects;this.emit("response",e);this._requestBodyBuffers=[]}};function wrap(e){var t={maxRedirects:21,maxBodyLength:10*1024*1024};var r={};Object.keys(e).forEach((function(i){var s=i+":";var a=r[s]=e[i];var c=t[i]=Object.create(a);function request(e,i,a){if(typeof e==="string"){var c=e;try{e=urlToOptions(new o(c))}catch(t){e=n.parse(c)}}else if(o&&e instanceof o){e=urlToOptions(e)}else{a=i;i=e;e={protocol:s}}if(typeof i==="function"){a=i;i=null}i=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,i);i.nativeProtocols=r;u.equal(i.protocol,s,"protocol mismatch");f("options",i);return new RedirectableRequest(i,a)}function get(e,t,r){var n=c.request(e,t,r);n.end();return n}Object.defineProperties(c,{request:{value:request,configurable:true,enumerable:true,writable:true},get:{value:get,configurable:true,enumerable:true,writable:true}})}));return t}function noop(){}function urlToOptions(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};if(e.port!==""){t.port=Number(e.port)}return t}function removeMatchingHeaders(e,t){var r;for(var n in t){if(e.test(n)){r=t[n];delete t[n]}}return r}function createErrorType(e,t){function CustomError(e){Error.captureStackTrace(this,this.constructor);this.message=e||t}CustomError.prototype=new Error;CustomError.prototype.constructor=CustomError;CustomError.prototype.name="Error ["+e+"]";CustomError.prototype.code=e;return CustomError}function abortRequest(e){for(var t=0;t<c.length;t++){e.removeListener(c[t],l[c[t]])}e.on("error",noop);e.abort()}e.exports=wrap({http:i,https:s});e.exports.wrap=wrap},627:function(e){"use strict";e.exports=require("@umijs/utils/compiled/debug")},357:function(e){"use strict";e.exports=require("assert")},605:function(e){"use strict";e.exports=require("http")},211:function(e){"use strict";e.exports=require("https")},413:function(e){"use strict";e.exports=require("stream")},835:function(e){"use strict";e.exports=require("url")},761:function(e){"use strict";e.exports=require("zlib")}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var o=t[r]={exports:{}};var i=true;try{e[r](o,o.exports,__nccwpck_require__);i=false}finally{if(i)delete t[r]}return o.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(120);module.exports=r})();
|
|
1
|
+
(function(){var e={241:function(e,t,r){e.exports=r(206)},100:function(e,t,r){"use strict";var n=r(999);var o=r(437);var i=r(256);var s=r(754);var a=r(685);var u=r(687);var c=r(311).http;var f=r(311).https;var l=r(310);var d=r(796);var h=r(419).version;var p=r(393);var m=r(134);var v=r(520);var g=r(82);var y=/https:?/;function setProxy(e,t,r){e.hostname=t.host;e.host=t.host;e.port=t.port;e.path=r;if(t.auth){var n=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+n}e.beforeRedirect=function beforeRedirect(e){e.headers.host=e.host;setProxy(e,t,e.href)}}e.exports=function httpAdapter(e){return new Promise((function dispatchHttpRequest(t,r){var b;function done(){if(e.cancelToken){e.cancelToken.unsubscribe(b)}if(e.signal){e.signal.removeEventListener("abort",b)}}var R=function resolve(e){done();t(e)};var _=false;var E=function reject(e){done();_=true;r(e)};var x=e.data;var T=e.headers;var w={};Object.keys(T).forEach((function storeLowerName(e){w[e.toLowerCase()]=e}));if("user-agent"in w){if(!T[w["user-agent"]]){delete T[w["user-agent"]]}}else{T["User-Agent"]="axios/"+h}if(x&&!n.isStream(x)){if(Buffer.isBuffer(x)){}else if(n.isArrayBuffer(x)){x=Buffer.from(new Uint8Array(x))}else if(n.isString(x)){x=Buffer.from(x,"utf-8")}else{return E(p("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e))}if(e.maxBodyLength>-1&&x.length>e.maxBodyLength){return E(p("Request body larger than maxBodyLength limit",e))}if(!w["content-length"]){T["Content-Length"]=x.length}}var C=undefined;if(e.auth){var q=e.auth.username||"";var O=e.auth.password||"";C=q+":"+O}var S=i(e.baseURL,e.url);var A=l.parse(S);var B=A.protocol||"http:";if(!C&&A.auth){var j=A.auth.split(":");var L=j[0]||"";var U=j[1]||"";C=L+":"+U}if(C&&w.authorization){delete T[w.authorization]}var k=y.test(B);var N=k?e.httpsAgent:e.httpAgent;try{s(A.path,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){var P=new Error(t.message);P.config=e;P.url=e.url;P.exists=true;E(P)}var D={path:s(A.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:T,agent:N,agents:{http:e.httpAgent,https:e.httpsAgent},auth:C};if(e.socketPath){D.socketPath=e.socketPath}else{D.hostname=A.hostname;D.port=A.port}var M=e.proxy;if(!M&&M!==false){var I=B.slice(0,-1)+"_proxy";var H=process.env[I]||process.env[I.toUpperCase()];if(H){var F=l.parse(H);var z=process.env.no_proxy||process.env.NO_PROXY;var V=true;if(z){var J=z.split(",").map((function trim(e){return e.trim()}));V=!J.some((function proxyMatch(e){if(!e){return false}if(e==="*"){return true}if(e[0]==="."&&A.hostname.substr(A.hostname.length-e.length)===e){return true}return A.hostname===e}))}if(V){M={host:F.hostname,port:F.port,protocol:F.protocol};if(F.auth){var W=F.auth.split(":");M.auth={username:W[0],password:W[1]}}}}}if(M){D.headers.host=A.hostname+(A.port?":"+A.port:"");setProxy(D,M,B+"//"+A.hostname+(A.port?":"+A.port:"")+D.path)}var X;var K=k&&(M?y.test(M.protocol):true);if(e.transport){X=e.transport}else if(e.maxRedirects===0){X=K?u:a}else{if(e.maxRedirects){D.maxRedirects=e.maxRedirects}X=K?f:c}if(e.maxBodyLength>-1){D.maxBodyLength=e.maxBodyLength}if(e.insecureHTTPParser){D.insecureHTTPParser=e.insecureHTTPParser}var $=X.request(D,(function handleResponse(t){if($.aborted)return;var r=t;var i=t.req||$;if(t.statusCode!==204&&i.method!=="HEAD"&&e.decompress!==false){switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":r=r.pipe(d.createUnzip());delete t.headers["content-encoding"];break}}var s={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:i};if(e.responseType==="stream"){s.data=r;o(R,E,s)}else{var a=[];var u=0;r.on("data",(function handleStreamData(t){a.push(t);u+=t.length;if(e.maxContentLength>-1&&u>e.maxContentLength){_=true;r.destroy();E(p("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,i))}}));r.on("aborted",(function handlerStreamAborted(){if(_){return}r.destroy();E(p("error request aborted",e,"ERR_REQUEST_ABORTED",i))}));r.on("error",(function handleStreamError(t){if($.aborted)return;E(m(t,e,null,i))}));r.on("end",(function handleStreamEnd(){try{var t=a.length===1?a[0]:Buffer.concat(a);if(e.responseType!=="arraybuffer"){t=t.toString(e.responseEncoding);if(!e.responseEncoding||e.responseEncoding==="utf8"){t=n.stripBOM(t)}}s.data=t}catch(t){E(m(t,e,t.code,s.request,s))}o(R,E,s)}))}}));$.on("error",(function handleRequestError(t){if($.aborted&&t.code!=="ERR_FR_TOO_MANY_REDIRECTS")return;E(m(t,e,null,$))}));$.on("socket",(function handleRequestSocket(e){e.setKeepAlive(true,1e3*60)}));if(e.timeout){var G=parseInt(e.timeout,10);if(isNaN(G)){E(p("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",$));return}$.setTimeout(G,(function handleRequestTimeout(){$.abort();var t="";if(e.timeoutErrorMessage){t=e.timeoutErrorMessage}else{t="timeout of "+e.timeout+"ms exceeded"}var r=e.transitional||v.transitional;E(p(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",$))}))}if(e.cancelToken||e.signal){b=function(e){if($.aborted)return;$.abort();E(!e||e&&e.type?new g("canceled"):e)};e.cancelToken&&e.cancelToken.subscribe(b);if(e.signal){e.signal.aborted?b():e.signal.addEventListener("abort",b)}}if(n.isStream(x)){x.on("error",(function handleStreamError(t){E(m(t,e,null,$))})).pipe($)}else{$.end(x)}}))}},820:function(e,t,r){"use strict";var n=r(999);var o=r(437);var i=r(188);var s=r(754);var a=r(256);var u=r(646);var c=r(342);var f=r(393);var l=r(520);var d=r(82);e.exports=function xhrAdapter(e){return new Promise((function dispatchXhrRequest(t,r){var h=e.data;var p=e.headers;var m=e.responseType;var v;function done(){if(e.cancelToken){e.cancelToken.unsubscribe(v)}if(e.signal){e.signal.removeEventListener("abort",v)}}if(n.isFormData(h)){delete p["Content-Type"]}var g=new XMLHttpRequest;if(e.auth){var y=e.auth.username||"";var b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";p.Authorization="Basic "+btoa(y+":"+b)}var R=a(e.baseURL,e.url);g.open(e.method.toUpperCase(),s(R,e.params,e.paramsSerializer),true);g.timeout=e.timeout;function onloadend(){if(!g){return}var n="getAllResponseHeaders"in g?u(g.getAllResponseHeaders()):null;var i=!m||m==="text"||m==="json"?g.responseText:g.response;var s={data:i,status:g.status,statusText:g.statusText,headers:n,config:e,request:g};o((function _resolve(e){t(e);done()}),(function _reject(e){r(e);done()}),s);g=null}if("onloadend"in g){g.onloadend=onloadend}else{g.onreadystatechange=function handleLoad(){if(!g||g.readyState!==4){return}if(g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)){return}setTimeout(onloadend)}}g.onabort=function handleAbort(){if(!g){return}r(f("Request aborted",e,"ECONNABORTED",g));g=null};g.onerror=function handleError(){r(f("Network Error",e,null,g));g=null};g.ontimeout=function handleTimeout(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";var n=e.transitional||l.transitional;if(e.timeoutErrorMessage){t=e.timeoutErrorMessage}r(f(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",g));g=null};if(n.isStandardBrowserEnv()){var _=(e.withCredentials||c(R))&&e.xsrfCookieName?i.read(e.xsrfCookieName):undefined;if(_){p[e.xsrfHeaderName]=_}}if("setRequestHeader"in g){n.forEach(p,(function setRequestHeader(e,t){if(typeof h==="undefined"&&t.toLowerCase()==="content-type"){delete p[t]}else{g.setRequestHeader(t,e)}}))}if(!n.isUndefined(e.withCredentials)){g.withCredentials=!!e.withCredentials}if(m&&m!=="json"){g.responseType=e.responseType}if(typeof e.onDownloadProgress==="function"){g.addEventListener("progress",e.onDownloadProgress)}if(typeof e.onUploadProgress==="function"&&g.upload){g.upload.addEventListener("progress",e.onUploadProgress)}if(e.cancelToken||e.signal){v=function(e){if(!g){return}r(!e||e&&e.type?new d("canceled"):e);g.abort();g=null};e.cancelToken&&e.cancelToken.subscribe(v);if(e.signal){e.signal.aborted?v():e.signal.addEventListener("abort",v)}}if(!h){h=null}g.send(h)}))}},206:function(e,t,r){"use strict";var n=r(999);var o=r(451);var i=r(346);var s=r(174);var a=r(520);function createInstance(e){var t=new i(e);var r=o(i.prototype.request,t);n.extend(r,i.prototype,t);n.extend(r,t);r.create=function create(t){return createInstance(s(e,t))};return r}var u=createInstance(a);u.Axios=i;u.Cancel=r(82);u.CancelToken=r(494);u.isCancel=r(697);u.VERSION=r(419).version;u.all=function all(e){return Promise.all(e)};u.spread=r(609);u.isAxiosError=r(516);e.exports=u;e.exports["default"]=u},82:function(e){"use strict";function Cancel(e){this.message=e}Cancel.prototype.toString=function toString(){return"Cancel"+(this.message?": "+this.message:"")};Cancel.prototype.__CANCEL__=true;e.exports=Cancel},494:function(e,t,r){"use strict";var n=r(82);function CancelToken(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}var t;this.promise=new Promise((function promiseExecutor(e){t=e}));var r=this;this.promise.then((function(e){if(!r._listeners)return;var t;var n=r._listeners.length;for(t=0;t<n;t++){r._listeners[t](e)}r._listeners=null}));this.promise.then=function(e){var t;var n=new Promise((function(e){r.subscribe(e);t=e})).then(e);n.cancel=function reject(){r.unsubscribe(t)};return n};e((function cancel(e){if(r.reason){return}r.reason=new n(e);t(r.reason)}))}CancelToken.prototype.throwIfRequested=function throwIfRequested(){if(this.reason){throw this.reason}};CancelToken.prototype.subscribe=function subscribe(e){if(this.reason){e(this.reason);return}if(this._listeners){this._listeners.push(e)}else{this._listeners=[e]}};CancelToken.prototype.unsubscribe=function unsubscribe(e){if(!this._listeners){return}var t=this._listeners.indexOf(e);if(t!==-1){this._listeners.splice(t,1)}};CancelToken.source=function source(){var e;var t=new CancelToken((function executor(t){e=t}));return{token:t,cancel:e}};e.exports=CancelToken},697:function(e){"use strict";e.exports=function isCancel(e){return!!(e&&e.__CANCEL__)}},346:function(e,t,r){"use strict";var n=r(999);var o=r(754);var i=r(508);var s=r(663);var a=r(174);var u=r(458);var c=u.validators;function Axios(e){this.defaults=e;this.interceptors={request:new i,response:new i}}Axios.prototype.request=function request(e,t){if(typeof e==="string"){t=t||{};t.url=e}else{t=e||{}}t=a(this.defaults,t);if(t.method){t.method=t.method.toLowerCase()}else if(this.defaults.method){t.method=this.defaults.method.toLowerCase()}else{t.method="get"}var r=t.transitional;if(r!==undefined){u.assertOptions(r,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},false)}var n=[];var o=true;this.interceptors.request.forEach((function unshiftRequestInterceptors(e){if(typeof e.runWhen==="function"&&e.runWhen(t)===false){return}o=o&&e.synchronous;n.unshift(e.fulfilled,e.rejected)}));var i=[];this.interceptors.response.forEach((function pushResponseInterceptors(e){i.push(e.fulfilled,e.rejected)}));var f;if(!o){var l=[s,undefined];Array.prototype.unshift.apply(l,n);l=l.concat(i);f=Promise.resolve(t);while(l.length){f=f.then(l.shift(),l.shift())}return f}var d=t;while(n.length){var h=n.shift();var p=n.shift();try{d=h(d)}catch(e){p(e);break}}try{f=s(d)}catch(e){return Promise.reject(e)}while(i.length){f=f.then(i.shift(),i.shift())}return f};Axios.prototype.getUri=function getUri(e){e=a(this.defaults,e);return o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};n.forEach(["delete","get","head","options"],(function forEachMethodNoData(e){Axios.prototype[e]=function(t,r){return this.request(a(r||{},{method:e,url:t,data:(r||{}).data}))}}));n.forEach(["post","put","patch"],(function forEachMethodWithData(e){Axios.prototype[e]=function(t,r,n){return this.request(a(n||{},{method:e,url:t,data:r}))}}));e.exports=Axios},508:function(e,t,r){"use strict";var n=r(999);function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function use(e,t,r){this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:false,runWhen:r?r.runWhen:null});return this.handlers.length-1};InterceptorManager.prototype.eject=function eject(e){if(this.handlers[e]){this.handlers[e]=null}};InterceptorManager.prototype.forEach=function forEach(e){n.forEach(this.handlers,(function forEachHandler(t){if(t!==null){e(t)}}))};e.exports=InterceptorManager},256:function(e,t,r){"use strict";var n=r(80);var o=r(369);e.exports=function buildFullPath(e,t){if(e&&!n(t)){return o(e,t)}return t}},393:function(e,t,r){"use strict";var n=r(134);e.exports=function createError(e,t,r,o,i){var s=new Error(e);return n(s,t,r,o,i)}},663:function(e,t,r){"use strict";var n=r(999);var o=r(360);var i=r(697);var s=r(520);var a=r(82);function throwIfCancellationRequested(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}if(e.signal&&e.signal.aborted){throw new a("canceled")}}e.exports=function dispatchRequest(e){throwIfCancellationRequested(e);e.headers=e.headers||{};e.data=o.call(e,e.data,e.headers,e.transformRequest);e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers);n.forEach(["delete","get","head","post","put","patch","common"],(function cleanHeaderConfig(t){delete e.headers[t]}));var t=e.adapter||s.adapter;return t(e).then((function onAdapterResolution(t){throwIfCancellationRequested(e);t.data=o.call(e,t.data,t.headers,e.transformResponse);return t}),(function onAdapterRejection(t){if(!i(t)){throwIfCancellationRequested(e);if(t&&t.response){t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse)}}return Promise.reject(t)}))}},134:function(e){"use strict";e.exports=function enhanceError(e,t,r,n,o){e.config=t;if(r){e.code=r}e.request=n;e.response=o;e.isAxiosError=true;e.toJSON=function toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}};return e}},174:function(e,t,r){"use strict";var n=r(999);e.exports=function mergeConfig(e,t){t=t||{};var r={};function getMergedValue(e,t){if(n.isPlainObject(e)&&n.isPlainObject(t)){return n.merge(e,t)}else if(n.isPlainObject(t)){return n.merge({},t)}else if(n.isArray(t)){return t.slice()}return t}function mergeDeepProperties(r){if(!n.isUndefined(t[r])){return getMergedValue(e[r],t[r])}else if(!n.isUndefined(e[r])){return getMergedValue(undefined,e[r])}}function valueFromConfig2(e){if(!n.isUndefined(t[e])){return getMergedValue(undefined,t[e])}}function defaultToConfig2(r){if(!n.isUndefined(t[r])){return getMergedValue(undefined,t[r])}else if(!n.isUndefined(e[r])){return getMergedValue(undefined,e[r])}}function mergeDirectKeys(r){if(r in t){return getMergedValue(e[r],t[r])}else if(r in e){return getMergedValue(undefined,e[r])}}var o={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys};n.forEach(Object.keys(e).concat(Object.keys(t)),(function computeConfigValue(e){var t=o[e]||mergeDeepProperties;var i=t(e);n.isUndefined(i)&&t!==mergeDirectKeys||(r[e]=i)}));return r}},437:function(e,t,r){"use strict";var n=r(393);e.exports=function settle(e,t,r){var o=r.config.validateStatus;if(!r.status||!o||o(r.status)){e(r)}else{t(n("Request failed with status code "+r.status,r.config,null,r.request,r))}}},360:function(e,t,r){"use strict";var n=r(999);var o=r(520);e.exports=function transformData(e,t,r){var i=this||o;n.forEach(r,(function transform(r){e=r.call(i,e,t)}));return e}},520:function(e,t,r){"use strict";var n=r(999);var o=r(421);var i=r(134);var s={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,t){if(!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])){e["Content-Type"]=t}}function getDefaultAdapter(){var e;if(typeof XMLHttpRequest!=="undefined"){e=r(820)}else if(typeof process!=="undefined"&&Object.prototype.toString.call(process)==="[object process]"){e=r(100)}return e}function stringifySafely(e,t,r){if(n.isString(e)){try{(t||JSON.parse)(e);return n.trim(e)}catch(e){if(e.name!=="SyntaxError"){throw e}}}return(r||JSON.stringify)(e)}var a={transitional:{silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false},adapter:getDefaultAdapter(),transformRequest:[function transformRequest(e,t){o(t,"Accept");o(t,"Content-Type");if(n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)){return e}if(n.isArrayBufferView(e)){return e.buffer}if(n.isURLSearchParams(e)){setContentTypeIfUnset(t,"application/x-www-form-urlencoded;charset=utf-8");return e.toString()}if(n.isObject(e)||t&&t["Content-Type"]==="application/json"){setContentTypeIfUnset(t,"application/json");return stringifySafely(e)}return e}],transformResponse:[function transformResponse(e){var t=this.transitional||a.transitional;var r=t&&t.silentJSONParsing;var o=t&&t.forcedJSONParsing;var s=!r&&this.responseType==="json";if(s||o&&n.isString(e)&&e.length){try{return JSON.parse(e)}catch(e){if(s){if(e.name==="SyntaxError"){throw i(e,this,"E_JSON_PARSE")}throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function validateStatus(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function forEachMethodNoData(e){a.headers[e]={}}));n.forEach(["post","put","patch"],(function forEachMethodWithData(e){a.headers[e]=n.merge(s)}));e.exports=a},419:function(e){e.exports={version:"0.26.0"}},451:function(e){"use strict";e.exports=function bind(e,t){return function wrap(){var r=new Array(arguments.length);for(var n=0;n<r.length;n++){r[n]=arguments[n]}return e.apply(t,r)}}},754:function(e,t,r){"use strict";var n=r(999);function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function buildURL(e,t,r){if(!t){return e}var o;if(r){o=r(t)}else if(n.isURLSearchParams(t)){o=t.toString()}else{var i=[];n.forEach(t,(function serialize(e,t){if(e===null||typeof e==="undefined"){return}if(n.isArray(e)){t=t+"[]"}else{e=[e]}n.forEach(e,(function parseValue(e){if(n.isDate(e)){e=e.toISOString()}else if(n.isObject(e)){e=JSON.stringify(e)}i.push(encode(t)+"="+encode(e))}))}));o=i.join("&")}if(o){var s=e.indexOf("#");if(s!==-1){e=e.slice(0,s)}e+=(e.indexOf("?")===-1?"?":"&")+o}return e}},369:function(e){"use strict";e.exports=function combineURLs(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},188:function(e,t,r){"use strict";var n=r(999);e.exports=n.isStandardBrowserEnv()?function standardBrowserEnv(){return{write:function write(e,t,r,o,i,s){var a=[];a.push(e+"="+encodeURIComponent(t));if(n.isNumber(r)){a.push("expires="+new Date(r).toGMTString())}if(n.isString(o)){a.push("path="+o)}if(n.isString(i)){a.push("domain="+i)}if(s===true){a.push("secure")}document.cookie=a.join("; ")},read:function read(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function remove(e){this.write(e,"",Date.now()-864e5)}}}():function nonStandardBrowserEnv(){return{write:function write(){},read:function read(){return null},remove:function remove(){}}}()},80:function(e){"use strict";e.exports=function isAbsoluteURL(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},516:function(e,t,r){"use strict";var n=r(999);e.exports=function isAxiosError(e){return n.isObject(e)&&e.isAxiosError===true}},342:function(e,t,r){"use strict";var n=r(999);e.exports=n.isStandardBrowserEnv()?function standardBrowserEnv(){var e=/(msie|trident)/i.test(navigator.userAgent);var t=document.createElement("a");var r;function resolveURL(r){var n=r;if(e){t.setAttribute("href",n);n=t.href}t.setAttribute("href",n);return{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}r=resolveURL(window.location.href);return function isURLSameOrigin(e){var t=n.isString(e)?resolveURL(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function nonStandardBrowserEnv(){return function isURLSameOrigin(){return true}}()},421:function(e,t,r){"use strict";var n=r(999);e.exports=function normalizeHeaderName(e,t){n.forEach(e,(function processHeader(r,n){if(n!==t&&n.toUpperCase()===t.toUpperCase()){e[t]=r;delete e[n]}}))}},646:function(e,t,r){"use strict";var n=r(999);var o=["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"];e.exports=function parseHeaders(e){var t={};var r;var i;var s;if(!e){return t}n.forEach(e.split("\n"),(function parser(e){s=e.indexOf(":");r=n.trim(e.substr(0,s)).toLowerCase();i=n.trim(e.substr(s+1));if(r){if(t[r]&&o.indexOf(r)>=0){return}if(r==="set-cookie"){t[r]=(t[r]?t[r]:[]).concat([i])}else{t[r]=t[r]?t[r]+", "+i:i}}}));return t}},609:function(e){"use strict";e.exports=function spread(e){return function wrap(t){return e.apply(null,t)}}},458:function(e,t,r){"use strict";var n=r(419).version;var o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function validator(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var i={};o.transitional=function transitional(e,t,r){function formatMessage(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,o){if(e===false){throw new Error(formatMessage(n," has been removed"+(t?" in "+t:"")))}if(t&&!i[n]){i[n]=true;console.warn(formatMessage(n," has been deprecated since v"+t+" and will be removed in the near future"))}return e?e(r,n,o):true}};function assertOptions(e,t,r){if(typeof e!=="object"){throw new TypeError("options must be an object")}var n=Object.keys(e);var o=n.length;while(o-- >0){var i=n[o];var s=t[i];if(s){var a=e[i];var u=a===undefined||s(a,i,e);if(u!==true){throw new TypeError("option "+i+" must be "+u)}continue}if(r!==true){throw Error("Unknown option "+i)}}}e.exports={assertOptions:assertOptions,validators:o}},999:function(e,t,r){"use strict";var n=r(451);var o=Object.prototype.toString;function isArray(e){return Array.isArray(e)}function isUndefined(e){return typeof e==="undefined"}function isBuffer(e){return e!==null&&!isUndefined(e)&&e.constructor!==null&&!isUndefined(e.constructor)&&typeof e.constructor.isBuffer==="function"&&e.constructor.isBuffer(e)}function isArrayBuffer(e){return o.call(e)==="[object ArrayBuffer]"}function isFormData(e){return o.call(e)==="[object FormData]"}function isArrayBufferView(e){var t;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){t=ArrayBuffer.isView(e)}else{t=e&&e.buffer&&isArrayBuffer(e.buffer)}return t}function isString(e){return typeof e==="string"}function isNumber(e){return typeof e==="number"}function isObject(e){return e!==null&&typeof e==="object"}function isPlainObject(e){if(o.call(e)!=="[object Object]"){return false}var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function isDate(e){return o.call(e)==="[object Date]"}function isFile(e){return o.call(e)==="[object File]"}function isBlob(e){return o.call(e)==="[object Blob]"}function isFunction(e){return o.call(e)==="[object Function]"}function isStream(e){return isObject(e)&&isFunction(e.pipe)}function isURLSearchParams(e){return o.call(e)==="[object URLSearchParams]"}function trim(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function isStandardBrowserEnv(){if(typeof navigator!=="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")){return false}return typeof window!=="undefined"&&typeof document!=="undefined"}function forEach(e,t){if(e===null||typeof e==="undefined"){return}if(typeof e!=="object"){e=[e]}if(isArray(e)){for(var r=0,n=e.length;r<n;r++){t.call(null,e[r],r,e)}}else{for(var o in e){if(Object.prototype.hasOwnProperty.call(e,o)){t.call(null,e[o],o,e)}}}}function merge(){var e={};function assignValue(t,r){if(isPlainObject(e[r])&&isPlainObject(t)){e[r]=merge(e[r],t)}else if(isPlainObject(t)){e[r]=merge({},t)}else if(isArray(t)){e[r]=t.slice()}else{e[r]=t}}for(var t=0,r=arguments.length;t<r;t++){forEach(arguments[t],assignValue)}return e}function extend(e,t,r){forEach(t,(function assignValue(t,o){if(r&&typeof t==="function"){e[o]=n(t,r)}else{e[o]=t}}));return e}function stripBOM(e){if(e.charCodeAt(0)===65279){e=e.slice(1)}return e}e.exports={isArray:isArray,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString,isNumber:isNumber,isObject:isObject,isPlainObject:isPlainObject,isUndefined:isUndefined,isDate:isDate,isFile:isFile,isBlob:isBlob,isFunction:isFunction,isStream:isStream,isURLSearchParams:isURLSearchParams,isStandardBrowserEnv:isStandardBrowserEnv,forEach:forEach,merge:merge,extend:extend,trim:trim,stripBOM:stripBOM}},739:function(e,t,r){var n;e.exports=function(){if(!n){try{n=r(755)("follow-redirects")}catch(e){}if(typeof n!=="function"){n=function(){}}}n.apply(null,arguments)}},311:function(e,t,r){var n=r(310);var o=n.URL;var i=r(685);var s=r(687);var a=r(781).Writable;var u=r(491);var c=r(739);var f=["abort","aborted","connect","error","socket","timeout"];var l=Object.create(null);f.forEach((function(e){l[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}}));var d=createErrorType("ERR_FR_REDIRECTION_FAILURE","Redirected request failed");var h=createErrorType("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded");var p=createErrorType("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit");var m=createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");function RedirectableRequest(e,t){a.call(this);this._sanitizeOptions(e);this._options=e;this._ended=false;this._ending=false;this._redirectCount=0;this._redirects=[];this._requestBodyLength=0;this._requestBodyBuffers=[];if(t){this.on("response",t)}var r=this;this._onNativeResponse=function(e){r._processResponse(e)};this._performRequest()}RedirectableRequest.prototype=Object.create(a.prototype);RedirectableRequest.prototype.abort=function(){abortRequest(this._currentRequest);this.emit("abort")};RedirectableRequest.prototype.write=function(e,t,r){if(this._ending){throw new m}if(!(typeof e==="string"||typeof e==="object"&&"length"in e)){throw new TypeError("data should be a string, Buffer or Uint8Array")}if(typeof t==="function"){r=t;t=null}if(e.length===0){if(r){r()}return}if(this._requestBodyLength+e.length<=this._options.maxBodyLength){this._requestBodyLength+=e.length;this._requestBodyBuffers.push({data:e,encoding:t});this._currentRequest.write(e,t,r)}else{this.emit("error",new p);this.abort()}};RedirectableRequest.prototype.end=function(e,t,r){if(typeof e==="function"){r=e;e=t=null}else if(typeof t==="function"){r=t;t=null}if(!e){this._ended=this._ending=true;this._currentRequest.end(null,null,r)}else{var n=this;var o=this._currentRequest;this.write(e,t,(function(){n._ended=true;o.end(null,null,r)}));this._ending=true}};RedirectableRequest.prototype.setHeader=function(e,t){this._options.headers[e]=t;this._currentRequest.setHeader(e,t)};RedirectableRequest.prototype.removeHeader=function(e){delete this._options.headers[e];this._currentRequest.removeHeader(e)};RedirectableRequest.prototype.setTimeout=function(e,t){var r=this;function destroyOnTimeout(t){t.setTimeout(e);t.removeListener("timeout",t.destroy);t.addListener("timeout",t.destroy)}function startTimer(t){if(r._timeout){clearTimeout(r._timeout)}r._timeout=setTimeout((function(){r.emit("timeout");clearTimer()}),e);destroyOnTimeout(t)}function clearTimer(){if(r._timeout){clearTimeout(r._timeout);r._timeout=null}r.removeListener("abort",clearTimer);r.removeListener("error",clearTimer);r.removeListener("response",clearTimer);if(t){r.removeListener("timeout",t)}if(!r.socket){r._currentRequest.removeListener("socket",startTimer)}}if(t){this.on("timeout",t)}if(this.socket){startTimer(this.socket)}else{this._currentRequest.once("socket",startTimer)}this.on("socket",destroyOnTimeout);this.on("abort",clearTimer);this.on("error",clearTimer);this.on("response",clearTimer);return this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){RedirectableRequest.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}}));["aborted","connection","socket"].forEach((function(e){Object.defineProperty(RedirectableRequest.prototype,e,{get:function(){return this._currentRequest[e]}})}));RedirectableRequest.prototype._sanitizeOptions=function(e){if(!e.headers){e.headers={}}if(e.host){if(!e.hostname){e.hostname=e.host}delete e.host}if(!e.pathname&&e.path){var t=e.path.indexOf("?");if(t<0){e.pathname=e.path}else{e.pathname=e.path.substring(0,t);e.search=e.path.substring(t)}}};RedirectableRequest.prototype._performRequest=function(){var e=this._options.protocol;var t=this._options.nativeProtocols[e];if(!t){this.emit("error",new TypeError("Unsupported protocol "+e));return}if(this._options.agents){var r=e.substr(0,e.length-1);this._options.agent=this._options.agents[r]}var o=this._currentRequest=t.request(this._options,this._onNativeResponse);this._currentUrl=n.format(this._options);o._redirectable=this;for(var i=0;i<f.length;i++){o.on(f[i],l[f[i]])}if(this._isRedirect){var s=0;var a=this;var u=this._requestBodyBuffers;(function writeNext(e){if(o===a._currentRequest){if(e){a.emit("error",e)}else if(s<u.length){var t=u[s++];if(!o.finished){o.write(t.data,t.encoding,writeNext)}}else if(a._ended){o.end()}}})()}};RedirectableRequest.prototype._processResponse=function(e){var t=e.statusCode;if(this._options.trackRedirects){this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t})}var r=e.headers.location;if(r&&this._options.followRedirects!==false&&t>=300&&t<400){abortRequest(this._currentRequest);e.destroy();if(++this._redirectCount>this._options.maxRedirects){this.emit("error",new h);return}if((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method)){this._options.method="GET";this._requestBodyBuffers=[];removeMatchingHeaders(/^content-/i,this._options.headers)}var o=removeMatchingHeaders(/^host$/i,this._options.headers);var i=n.parse(this._currentUrl);var s=o||i.host;var a=/^\w+:/.test(r)?this._currentUrl:n.format(Object.assign(i,{host:s}));var u;try{u=n.resolve(a,r)}catch(e){this.emit("error",new d(e));return}c("redirecting to",u);this._isRedirect=true;var f=n.parse(u);Object.assign(this._options,f);if(f.protocol!==i.protocol||!isSameOrSubdomain(f.host,s)){removeMatchingHeaders(/^(?:authorization|cookie)$/i,this._options.headers)}if(typeof this._options.beforeRedirect==="function"){var l={headers:e.headers};try{this._options.beforeRedirect.call(null,this._options,l)}catch(e){this.emit("error",e);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){this.emit("error",new d(e))}}else{e.responseUrl=this._currentUrl;e.redirects=this._redirects;this.emit("response",e);this._requestBodyBuffers=[]}};function wrap(e){var t={maxRedirects:21,maxBodyLength:10*1024*1024};var r={};Object.keys(e).forEach((function(i){var s=i+":";var a=r[s]=e[i];var f=t[i]=Object.create(a);function request(e,i,a){if(typeof e==="string"){var f=e;try{e=urlToOptions(new o(f))}catch(t){e=n.parse(f)}}else if(o&&e instanceof o){e=urlToOptions(e)}else{a=i;i=e;e={protocol:s}}if(typeof i==="function"){a=i;i=null}i=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,i);i.nativeProtocols=r;u.equal(i.protocol,s,"protocol mismatch");c("options",i);return new RedirectableRequest(i,a)}function get(e,t,r){var n=f.request(e,t,r);n.end();return n}Object.defineProperties(f,{request:{value:request,configurable:true,enumerable:true,writable:true},get:{value:get,configurable:true,enumerable:true,writable:true}})}));return t}function noop(){}function urlToOptions(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};if(e.port!==""){t.port=Number(e.port)}return t}function removeMatchingHeaders(e,t){var r;for(var n in t){if(e.test(n)){r=t[n];delete t[n]}}return r===null||typeof r==="undefined"?undefined:String(r).trim()}function createErrorType(e,t){function CustomError(e){Error.captureStackTrace(this,this.constructor);if(!e){this.message=t}else{this.message=t+": "+e.message;this.cause=e}}CustomError.prototype=new Error;CustomError.prototype.constructor=CustomError;CustomError.prototype.name="Error ["+e+"]";CustomError.prototype.code=e;return CustomError}function abortRequest(e){for(var t=0;t<f.length;t++){e.removeListener(f[t],l[f[t]])}e.on("error",noop);e.abort()}function isSameOrSubdomain(e,t){if(e===t){return true}const r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}e.exports=wrap({http:i,https:s});e.exports.wrap=wrap},755:function(e){"use strict";e.exports=require("@umijs/utils/compiled/debug")},491:function(e){"use strict";e.exports=require("assert")},685:function(e){"use strict";e.exports=require("http")},687:function(e){"use strict";e.exports=require("https")},781:function(e){"use strict";e.exports=require("stream")},310:function(e){"use strict";e.exports=require("url")},796:function(e){"use strict";e.exports=require("zlib")}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var o=t[r]={exports:{}};var i=true;try{e[r](o,o.exports,__nccwpck_require__);i=false}finally{if(i)delete t[r]}return o.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(241);module.exports=r})();
|
package/compiled/chalk/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
3
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
6
|
|
package/compiled/chalk/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(){var e={980:function(e,t,n){"use strict";e=n.nmd(e);const wrapAnsi16=(e,t)=>(...n)=>{const r=e(...n);return`[${r+t}m`};const wrapAnsi256=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};5;${r}m`};const wrapAnsi16m=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`};const ansi2ansi=e=>e;const rgb2rgb=(e,t,n)=>[e,t,n];const setLazyProperty=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{const r=n();Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true});return r},enumerable:true,configurable:true})};let r;const makeDynamicStyles=(e,t,o,s)=>{if(r===undefined){r=n(808)}const l=s?10:0;const c={};for(const[n,s]of Object.entries(r)){const r=n==="ansi16"?"ansi":n;if(n===t){c[r]=e(o,l)}else if(typeof s==="object"){c[r]=e(s[t],l)}}return c};function assembleStyles(){const e=new Map;const t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright;t.bgColor.bgGray=t.bgColor.bgBlackBright;t.color.grey=t.color.blackBright;t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[n,r]of Object.entries(t)){for(const[n,o]of Object.entries(r)){t[n]={open:`[${o[0]}m`,close:`[${o[1]}m`};r[n]=t[n];e.set(o[0],o[1])}Object.defineProperty(t,n,{value:r,enumerable:false})}Object.defineProperty(t,"codes",{value:e,enumerable:false});t.color.close="[39m";t.bgColor.close="[49m";setLazyProperty(t.color,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,false)));setLazyProperty(t.color,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,false)));setLazyProperty(t.color,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,false)));setLazyProperty(t.bgColor,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,true)));setLazyProperty(t.bgColor,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,true)));setLazyProperty(t.bgColor,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,true)));return t}Object.defineProperty(e,"exports",{enumerable:true,get:assembleStyles})},244:function(e,t,n){"use strict";const r=n(980);const{stdout:o,stderr:s}=n(821);const{stringReplaceAll:l,stringEncaseCRLFWithFirstIndex:c}=n(991);const{isArray:i}=Array;const a=["ansi","ansi","ansi256","ansi16m"];const u=Object.create(null);const applyOptions=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3)){throw new Error("The `level` option should be an integer from 0 to 3")}const n=o?o.level:0;e.level=t.level===undefined?n:t.level};class ChalkClass{constructor(e){return chalkFactory(e)}}const chalkFactory=e=>{const t={};applyOptions(t,e);t.template=(...e)=>chalkTag(t.template,...e);Object.setPrototypeOf(t,Chalk.prototype);Object.setPrototypeOf(t.template,t);t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")};t.template.Instance=ChalkClass;return t.template};function Chalk(e){return chalkFactory(e)}for(const[e,t]of Object.entries(r)){u[e]={get(){const n=createBuilder(this,createStyler(t.open,t.close,this._styler),this._isEmpty);Object.defineProperty(this,e,{value:n});return n}}}u.visible={get(){const e=createBuilder(this,this._styler,true);Object.defineProperty(this,"visible",{value:e});return e}};const f=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of f){u[e]={get(){const{level:t}=this;return function(...n){const o=createStyler(r.color[a[t]][e](...n),r.color.close,this._styler);return createBuilder(this,o,this._isEmpty)}}}}for(const e of f){const t="bg"+e[0].toUpperCase()+e.slice(1);u[t]={get(){const{level:t}=this;return function(...n){const o=createStyler(r.bgColor[a[t]][e](...n),r.bgColor.close,this._styler);return createBuilder(this,o,this._isEmpty)}}}}const h=Object.defineProperties((()=>{}),{...u,level:{enumerable:true,get(){return this._generator.level},set(e){this._generator.level=e}}});const createStyler=(e,t,n)=>{let r;let o;if(n===undefined){r=e;o=t}else{r=n.openAll+e;o=t+n.closeAll}return{open:e,close:t,openAll:r,closeAll:o,parent:n}};const createBuilder=(e,t,n)=>{const builder=(...e)=>{if(i(e[0])&&i(e[0].raw)){return applyStyle(builder,chalkTag(builder,...e))}return applyStyle(builder,e.length===1?""+e[0]:e.join(" "))};Object.setPrototypeOf(builder,h);builder._generator=e;builder._styler=t;builder._isEmpty=n;return builder};const applyStyle=(e,t)=>{if(e.level<=0||!t){return e._isEmpty?"":t}let n=e._styler;if(n===undefined){return t}const{openAll:r,closeAll:o}=n;if(t.indexOf("")!==-1){while(n!==undefined){t=l(t,n.close,n.open);n=n.parent}}const s=t.indexOf("\n");if(s!==-1){t=c(t,o,r,s)}return r+t+o};let g;const chalkTag=(e,...t)=>{const[r]=t;if(!i(r)||!i(r.raw)){return t.join(" ")}const o=t.slice(1);const s=[r.raw[0]];for(let e=1;e<r.length;e++){s.push(String(o[e-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[e]))}if(g===undefined){g=n(148)}return g(e,s.join(""))};Object.defineProperties(Chalk.prototype,u);const b=Chalk();b.supportsColor=o;b.stderr=Chalk({level:s?s.level:0});b.stderr.supportsColor=s;e.exports=b},148:function(e){"use strict";const t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const r=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const o=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;const s=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(e){const t=e[0]==="u";const n=e[1]==="{";if(t&&!n&&e.length===5||e[0]==="x"&&e.length===3){return String.fromCharCode(parseInt(e.slice(1),16))}if(t&&n){return String.fromCodePoint(parseInt(e.slice(2,-1),16))}return s.get(e)||e}function parseArguments(e,t){const n=[];const s=t.trim().split(/\s*,\s*/g);let l;for(const t of s){const s=Number(t);if(!Number.isNaN(s)){n.push(s)}else if(l=t.match(r)){n.push(l[2].replace(o,((e,t,n)=>t?unescape(t):n)))}else{throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}}return n}function parseStyle(e){n.lastIndex=0;const t=[];let r;while((r=n.exec(e))!==null){const e=r[1];if(r[2]){const n=parseArguments(e,r[2]);t.push([e].concat(n))}else{t.push([e])}}return t}function buildStyle(e,t){const n={};for(const e of t){for(const t of e.styles){n[t[0]]=e.inverse?null:t.slice(1)}}let r=e;for(const[e,t]of Object.entries(n)){if(!Array.isArray(t)){continue}if(!(e in r)){throw new Error(`Unknown Chalk style: ${e}`)}r=t.length>0?r[e](...t):r[e]}return r}e.exports=(e,n)=>{const r=[];const o=[];let s=[];n.replace(t,((t,n,l,c,i,a)=>{if(n){s.push(unescape(n))}else if(c){const t=s.join("");s=[];o.push(r.length===0?t:buildStyle(e,r)(t));r.push({inverse:l,styles:parseStyle(c)})}else if(i){if(r.length===0){throw new Error("Found extraneous } in Chalk template literal")}o.push(buildStyle(e,r)(s.join("")));s=[];r.pop()}else{s.push(a)}}));o.push(s.join(""));if(r.length>0){const e=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(e)}return o.join("")}},991:function(e){"use strict";const stringReplaceAll=(e,t,n)=>{let r=e.indexOf(t);if(r===-1){return e}const o=t.length;let s=0;let l="";do{l+=e.substr(s,r-s)+t+n;s=r+o;r=e.indexOf(t,s)}while(r!==-1);l+=e.substr(s);return l};const stringEncaseCRLFWithFirstIndex=(e,t,n,r)=>{let o=0;let s="";do{const l=e[r-1]==="\r";s+=e.substr(o,(l?r-1:r)-o)+t+(l?"\r\n":"\n")+n;o=r+1;r=e.indexOf("\n",o)}while(r!==-1);s+=e.substr(o);return s};e.exports={stringReplaceAll:stringReplaceAll,stringEncaseCRLFWithFirstIndex:stringEncaseCRLFWithFirstIndex}},348:function(e,t,n){const r=n(702);const o={};for(const e of Object.keys(r)){o[r[e]]=e}const s={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=s;for(const e of Object.keys(s)){if(!("channels"in s[e])){throw new Error("missing channels property: "+e)}if(!("labels"in s[e])){throw new Error("missing channel labels property: "+e)}if(s[e].labels.length!==s[e].channels){throw new Error("channel and label counts mismatch: "+e)}const{channels:t,labels:n}=s[e];delete s[e].channels;delete s[e].labels;Object.defineProperty(s[e],"channels",{value:t});Object.defineProperty(s[e],"labels",{value:n})}s.rgb.hsl=function(e){const t=e[0]/255;const n=e[1]/255;const r=e[2]/255;const o=Math.min(t,n,r);const s=Math.max(t,n,r);const l=s-o;let c;let i;if(s===o){c=0}else if(t===s){c=(n-r)/l}else if(n===s){c=2+(r-t)/l}else if(r===s){c=4+(t-n)/l}c=Math.min(c*60,360);if(c<0){c+=360}const a=(o+s)/2;if(s===o){i=0}else if(a<=.5){i=l/(s+o)}else{i=l/(2-s-o)}return[c,i*100,a*100]};s.rgb.hsv=function(e){let t;let n;let r;let o;let s;const l=e[0]/255;const c=e[1]/255;const i=e[2]/255;const a=Math.max(l,c,i);const u=a-Math.min(l,c,i);const diffc=function(e){return(a-e)/6/u+1/2};if(u===0){o=0;s=0}else{s=u/a;t=diffc(l);n=diffc(c);r=diffc(i);if(l===a){o=r-n}else if(c===a){o=1/3+t-r}else if(i===a){o=2/3+n-t}if(o<0){o+=1}else if(o>1){o-=1}}return[o*360,s*100,a*100]};s.rgb.hwb=function(e){const t=e[0];const n=e[1];let r=e[2];const o=s.rgb.hsl(e)[0];const l=1/255*Math.min(t,Math.min(n,r));r=1-1/255*Math.max(t,Math.max(n,r));return[o,l*100,r*100]};s.rgb.cmyk=function(e){const t=e[0]/255;const n=e[1]/255;const r=e[2]/255;const o=Math.min(1-t,1-n,1-r);const s=(1-t-o)/(1-o)||0;const l=(1-n-o)/(1-o)||0;const c=(1-r-o)/(1-o)||0;return[s*100,l*100,c*100,o*100]};function comparativeDistance(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}s.rgb.keyword=function(e){const t=o[e];if(t){return t}let n=Infinity;let s;for(const t of Object.keys(r)){const o=r[t];const l=comparativeDistance(e,o);if(l<n){n=l;s=t}}return s};s.keyword.rgb=function(e){return r[e]};s.rgb.xyz=function(e){let t=e[0]/255;let n=e[1]/255;let r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92;n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805;const s=t*.2126+n*.7152+r*.0722;const l=t*.0193+n*.1192+r*.9505;return[o*100,s*100,l*100]};s.rgb.lab=function(e){const t=s.rgb.xyz(e);let n=t[0];let r=t[1];let o=t[2];n/=95.047;r/=100;o/=108.883;n=n>.008856?n**(1/3):7.787*n+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;o=o>.008856?o**(1/3):7.787*o+16/116;const l=116*r-16;const c=500*(n-r);const i=200*(r-o);return[l,c,i]};s.hsl.rgb=function(e){const t=e[0]/360;const n=e[1]/100;const r=e[2]/100;let o;let s;let l;if(n===0){l=r*255;return[l,l,l]}if(r<.5){o=r*(1+n)}else{o=r+n-r*n}const c=2*r-o;const i=[0,0,0];for(let e=0;e<3;e++){s=t+1/3*-(e-1);if(s<0){s++}if(s>1){s--}if(6*s<1){l=c+(o-c)*6*s}else if(2*s<1){l=o}else if(3*s<2){l=c+(o-c)*(2/3-s)*6}else{l=c}i[e]=l*255}return i};s.hsl.hsv=function(e){const t=e[0];let n=e[1]/100;let r=e[2]/100;let o=n;const s=Math.max(r,.01);r*=2;n*=r<=1?r:2-r;o*=s<=1?s:2-s;const l=(r+n)/2;const c=r===0?2*o/(s+o):2*n/(r+n);return[t,c*100,l*100]};s.hsv.rgb=function(e){const t=e[0]/60;const n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6;const s=t-Math.floor(t);const l=255*r*(1-n);const c=255*r*(1-n*s);const i=255*r*(1-n*(1-s));r*=255;switch(o){case 0:return[r,i,l];case 1:return[c,r,l];case 2:return[l,r,i];case 3:return[l,c,r];case 4:return[i,l,r];case 5:return[r,l,c]}};s.hsv.hsl=function(e){const t=e[0];const n=e[1]/100;const r=e[2]/100;const o=Math.max(r,.01);let s;let l;l=(2-n)*r;const c=(2-n)*o;s=n*o;s/=c<=1?c:2-c;s=s||0;l/=2;return[t,s*100,l*100]};s.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100;let r=e[2]/100;const o=n+r;let s;if(o>1){n/=o;r/=o}const l=Math.floor(6*t);const c=1-r;s=6*t-l;if((l&1)!==0){s=1-s}const i=n+s*(c-n);let a;let u;let f;switch(l){default:case 6:case 0:a=c;u=i;f=n;break;case 1:a=i;u=c;f=n;break;case 2:a=n;u=c;f=i;break;case 3:a=n;u=i;f=c;break;case 4:a=i;u=n;f=c;break;case 5:a=c;u=n;f=i;break}return[a*255,u*255,f*255]};s.cmyk.rgb=function(e){const t=e[0]/100;const n=e[1]/100;const r=e[2]/100;const o=e[3]/100;const s=1-Math.min(1,t*(1-o)+o);const l=1-Math.min(1,n*(1-o)+o);const c=1-Math.min(1,r*(1-o)+o);return[s*255,l*255,c*255]};s.xyz.rgb=function(e){const t=e[0]/100;const n=e[1]/100;const r=e[2]/100;let o;let s;let l;o=t*3.2406+n*-1.5372+r*-.4986;s=t*-.9689+n*1.8758+r*.0415;l=t*.0557+n*-.204+r*1.057;o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92;s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92;l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92;o=Math.min(Math.max(0,o),1);s=Math.min(Math.max(0,s),1);l=Math.min(Math.max(0,l),1);return[o*255,s*255,l*255]};s.xyz.lab=function(e){let t=e[0];let n=e[1];let r=e[2];t/=95.047;n/=100;r/=108.883;t=t>.008856?t**(1/3):7.787*t+16/116;n=n>.008856?n**(1/3):7.787*n+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16;const s=500*(t-n);const l=200*(n-r);return[o,s,l]};s.lab.xyz=function(e){const t=e[0];const n=e[1];const r=e[2];let o;let s;let l;s=(t+16)/116;o=n/500+s;l=s-r/200;const c=s**3;const i=o**3;const a=l**3;s=c>.008856?c:(s-16/116)/7.787;o=i>.008856?i:(o-16/116)/7.787;l=a>.008856?a:(l-16/116)/7.787;o*=95.047;s*=100;l*=108.883;return[o,s,l]};s.lab.lch=function(e){const t=e[0];const n=e[1];const r=e[2];let o;const s=Math.atan2(r,n);o=s*360/2/Math.PI;if(o<0){o+=360}const l=Math.sqrt(n*n+r*r);return[t,l,o]};s.lch.lab=function(e){const t=e[0];const n=e[1];const r=e[2];const o=r/360*2*Math.PI;const s=n*Math.cos(o);const l=n*Math.sin(o);return[t,s,l]};s.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let l=t===null?s.rgb.hsv(e)[2]:t;l=Math.round(l/50);if(l===0){return 30}let c=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));if(l===2){c+=60}return c};s.hsv.ansi16=function(e){return s.rgb.ansi16(s.hsv.rgb(e),e[2])};s.rgb.ansi256=function(e){const t=e[0];const n=e[1];const r=e[2];if(t===n&&n===r){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}const o=16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5);return o};s.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7){if(e>50){t+=3.5}t=t/10.5*255;return[t,t,t]}const n=(~~(e>50)+1)*.5;const r=(t&1)*n*255;const o=(t>>1&1)*n*255;const s=(t>>2&1)*n*255;return[r,o,s]};s.ansi256.rgb=function(e){if(e>=232){const t=(e-232)*10+8;return[t,t,t]}e-=16;let t;const n=Math.floor(e/36)/5*255;const r=Math.floor((t=e%36)/6)/5*255;const o=t%6/5*255;return[n,r,o]};s.rgb.hex=function(e){const t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);const n=t.toString(16).toUpperCase();return"000000".substring(n.length)+n};s.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t){return[0,0,0]}let n=t[0];if(t[0].length===3){n=n.split("").map((e=>e+e)).join("")}const r=parseInt(n,16);const o=r>>16&255;const s=r>>8&255;const l=r&255;return[o,s,l]};s.rgb.hcg=function(e){const t=e[0]/255;const n=e[1]/255;const r=e[2]/255;const o=Math.max(Math.max(t,n),r);const s=Math.min(Math.min(t,n),r);const l=o-s;let c;let i;if(l<1){c=s/(1-l)}else{c=0}if(l<=0){i=0}else if(o===t){i=(n-r)/l%6}else if(o===n){i=2+(r-t)/l}else{i=4+(t-n)/l}i/=6;i%=1;return[i*360,l*100,c*100]};s.hsl.hcg=function(e){const t=e[1]/100;const n=e[2]/100;const r=n<.5?2*t*n:2*t*(1-n);let o=0;if(r<1){o=(n-.5*r)/(1-r)}return[e[0],r*100,o*100]};s.hsv.hcg=function(e){const t=e[1]/100;const n=e[2]/100;const r=t*n;let o=0;if(r<1){o=(n-r)/(1-r)}return[e[0],r*100,o*100]};s.hcg.rgb=function(e){const t=e[0]/360;const n=e[1]/100;const r=e[2]/100;if(n===0){return[r*255,r*255,r*255]}const o=[0,0,0];const s=t%1*6;const l=s%1;const c=1-l;let i=0;switch(Math.floor(s)){case 0:o[0]=1;o[1]=l;o[2]=0;break;case 1:o[0]=c;o[1]=1;o[2]=0;break;case 2:o[0]=0;o[1]=1;o[2]=l;break;case 3:o[0]=0;o[1]=c;o[2]=1;break;case 4:o[0]=l;o[1]=0;o[2]=1;break;default:o[0]=1;o[1]=0;o[2]=c}i=(1-n)*r;return[(n*o[0]+i)*255,(n*o[1]+i)*255,(n*o[2]+i)*255]};s.hcg.hsv=function(e){const t=e[1]/100;const n=e[2]/100;const r=t+n*(1-t);let o=0;if(r>0){o=t/r}return[e[0],o*100,r*100]};s.hcg.hsl=function(e){const t=e[1]/100;const n=e[2]/100;const r=n*(1-t)+.5*t;let o=0;if(r>0&&r<.5){o=t/(2*r)}else if(r>=.5&&r<1){o=t/(2*(1-r))}return[e[0],o*100,r*100]};s.hcg.hwb=function(e){const t=e[1]/100;const n=e[2]/100;const r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};s.hwb.hcg=function(e){const t=e[1]/100;const n=e[2]/100;const r=1-n;const o=r-t;let s=0;if(o<1){s=(r-o)/(1-o)}return[e[0],o*100,s*100]};s.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};s.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};s.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};s.gray.hsl=function(e){return[0,0,e[0]]};s.gray.hsv=s.gray.hsl;s.gray.hwb=function(e){return[0,100,e[0]]};s.gray.cmyk=function(e){return[0,0,0,e[0]]};s.gray.lab=function(e){return[e[0],0,0]};s.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255;const n=(t<<16)+(t<<8)+t;const r=n.toString(16).toUpperCase();return"000000".substring(r.length)+r};s.rgb.gray=function(e){const t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},808:function(e,t,n){const r=n(348);const o=n(682);const s={};const l=Object.keys(r);function wrapRaw(e){const wrappedFn=function(...t){const n=t[0];if(n===undefined||n===null){return n}if(n.length>1){t=n}return e(t)};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}function wrapRounded(e){const wrappedFn=function(...t){const n=t[0];if(n===undefined||n===null){return n}if(n.length>1){t=n}const r=e(t);if(typeof r==="object"){for(let e=r.length,t=0;t<e;t++){r[t]=Math.round(r[t])}}return r};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}l.forEach((e=>{s[e]={};Object.defineProperty(s[e],"channels",{value:r[e].channels});Object.defineProperty(s[e],"labels",{value:r[e].labels});const t=o(e);const n=Object.keys(t);n.forEach((n=>{const r=t[n];s[e][n]=wrapRounded(r);s[e][n].raw=wrapRaw(r)}))}));e.exports=s},682:function(e,t,n){const r=n(348);function buildGraph(){const e={};const t=Object.keys(r);for(let n=t.length,r=0;r<n;r++){e[t[r]]={distance:-1,parent:null}}return e}function deriveBFS(e){const t=buildGraph();const n=[e];t[e].distance=0;while(n.length){const e=n.pop();const o=Object.keys(r[e]);for(let r=o.length,s=0;s<r;s++){const r=o[s];const l=t[r];if(l.distance===-1){l.distance=t[e].distance+1;l.parent=e;n.unshift(r)}}}return t}function link(e,t){return function(n){return t(e(n))}}function wrapConversion(e,t){const n=[t[e].parent,e];let o=r[t[e].parent][e];let s=t[e].parent;while(t[s].parent){n.unshift(t[s].parent);o=link(r[t[s].parent][s],o);s=t[s].parent}o.conversion=n;return o}e.exports=function(e){const t=deriveBFS(e);const n={};const r=Object.keys(t);for(let e=r.length,o=0;o<e;o++){const e=r[o];const s=t[e];if(s.parent===null){continue}n[e]=wrapConversion(e,t)}return n}},702:function(e){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},419:function(e){"use strict";e.exports=(e,t=process.argv)=>{const n=e.startsWith("-")?"":e.length===1?"-":"--";const r=t.indexOf(n+e);const o=t.indexOf("--");return r!==-1&&(o===-1||r<o)}},821:function(e,t,n){"use strict";const r=n(87);const o=n(867);const s=n(419);const{env:l}=process;let c;if(s("no-color")||s("no-colors")||s("color=false")||s("color=never")){c=0}else if(s("color")||s("colors")||s("color=true")||s("color=always")){c=1}if("FORCE_COLOR"in l){if(l.FORCE_COLOR==="true"){c=1}else if(l.FORCE_COLOR==="false"){c=0}else{c=l.FORCE_COLOR.length===0?1:Math.min(parseInt(l.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(c===0){return 0}if(s("color=16m")||s("color=full")||s("color=truecolor")){return 3}if(s("color=256")){return 2}if(e&&!t&&c===undefined){return 0}const n=c||0;if(l.TERM==="dumb"){return n}if(process.platform==="win32"){const e=r.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in l){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in l))||l.CI_NAME==="codeship"){return 1}return n}if("TEAMCITY_VERSION"in l){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(l.TEAMCITY_VERSION)?1:0}if(l.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in l){const e=parseInt((l.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(l.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(l.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(l.TERM)){return 1}if("COLORTERM"in l){return 1}return n}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,o.isatty(1))),stderr:translateLevel(supportsColor(true,o.isatty(2)))}},87:function(e){"use strict";e.exports=require("os")},867:function(e){"use strict";e.exports=require("tty")}};var t={};function __nccwpck_require__(n){var r=t[n];if(r!==undefined){return r.exports}var o=t[n]={id:n,loaded:false,exports:{}};var s=true;try{e[n](o,o.exports,__nccwpck_require__);s=false}finally{if(s)delete t[n]}o.loaded=true;return o.exports}!function(){__nccwpck_require__.nmd=function(e){e.paths=[];if(!e.children)e.children=[];return e}}();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var n=__nccwpck_require__(244);module.exports=n})();
|
|
1
|
+
(function(){"use strict";var e={};!function(){e.d=function(r,t){for(var n in t){if(e.o(t,n)&&!e.o(r,n)){Object.defineProperty(r,n,{enumerable:true,get:t[n]})}}}}();!function(){e.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)}}();!function(){e.r=function(e){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}}();if(typeof e!=="undefined")e.ab=__dirname+"/";var r={};e.r(r);e.d(r,{Chalk:function(){return Chalk},chalkStderr:function(){return R},default:function(){return y},supportsColor:function(){return g},supportsColorStderr:function(){return h}});const t=10;const wrapAnsi16=(e=0)=>r=>`[${r+e}m`;const wrapAnsi256=(e=0)=>r=>`[${38+e};5;${r}m`;const wrapAnsi16m=(e=0)=>(r,t,n)=>`[${38+e};2;${r};${t};${n}m`;function assembleStyles(){const e=new Map;const r={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};r.color.gray=r.color.blackBright;r.bgColor.bgGray=r.bgColor.bgBlackBright;r.color.grey=r.color.blackBright;r.bgColor.bgGrey=r.bgColor.bgBlackBright;for(const[t,n]of Object.entries(r)){for(const[t,o]of Object.entries(n)){r[t]={open:`[${o[0]}m`,close:`[${o[1]}m`};n[t]=r[t];e.set(o[0],o[1])}Object.defineProperty(r,t,{value:n,enumerable:false})}Object.defineProperty(r,"codes",{value:e,enumerable:false});r.color.close="[39m";r.bgColor.close="[49m";r.color.ansi=wrapAnsi16();r.color.ansi256=wrapAnsi256();r.color.ansi16m=wrapAnsi16m();r.bgColor.ansi=wrapAnsi16(t);r.bgColor.ansi256=wrapAnsi256(t);r.bgColor.ansi16m=wrapAnsi16m(t);Object.defineProperties(r,{rgbToAnsi256:{value:(e,r,t)=>{if(e===r&&r===t){if(e<8){return 16}if(e>248){return 231}return Math.round((e-8)/247*24)+232}return 16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(t/255*5)},enumerable:false},hexToRgb:{value:e=>{const r=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(e.toString(16));if(!r){return[0,0,0]}let{colorString:t}=r.groups;if(t.length===3){t=[...t].map((e=>e+e)).join("")}const n=Number.parseInt(t,16);return[n>>16&255,n>>8&255,n&255]},enumerable:false},hexToAnsi256:{value:e=>r.rgbToAnsi256(...r.hexToRgb(e)),enumerable:false},ansi256ToAnsi:{value:e=>{if(e<8){return 30+e}if(e<16){return 90+(e-8)}let r;let t;let n;if(e>=232){r=((e-232)*10+8)/255;t=r;n=r}else{e-=16;const o=e%36;r=Math.floor(e/36)/5;t=Math.floor(o/6)/5;n=o%6/5}const o=Math.max(r,t,n)*2;if(o===0){return 30}let l=30+(Math.round(n)<<2|Math.round(t)<<1|Math.round(r));if(o===2){l+=60}return l},enumerable:false},rgbToAnsi:{value:(e,t,n)=>r.ansi256ToAnsi(r.rgbToAnsi256(e,t,n)),enumerable:false},hexToAnsi:{value:e=>r.ansi256ToAnsi(r.hexToAnsi256(e)),enumerable:false}});return r}const n=assembleStyles();var o=n;var l=require("process");var i=require("os");var s=require("tty");function hasFlag(e,r=l.argv){const t=e.startsWith("-")?"":e.length===1?"-":"--";const n=r.indexOf(t+e);const o=r.indexOf("--");return n!==-1&&(o===-1||n<o)}const{env:a}=l;let c;if(hasFlag("no-color")||hasFlag("no-colors")||hasFlag("color=false")||hasFlag("color=never")){c=0}else if(hasFlag("color")||hasFlag("colors")||hasFlag("color=true")||hasFlag("color=always")){c=1}function envForceColor(){if("FORCE_COLOR"in a){if(a.FORCE_COLOR==="true"){return 1}if(a.FORCE_COLOR==="false"){return 0}return a.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(a.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function _supportsColor(e,{streamIsTTY:r,sniffFlags:t=true}={}){const n=envForceColor();if(n!==undefined){c=n}const o=t?c:n;if(o===0){return 0}if(t){if(hasFlag("color=16m")||hasFlag("color=full")||hasFlag("color=truecolor")){return 3}if(hasFlag("color=256")){return 2}}if(e&&!r&&o===undefined){return 0}const s=o||0;if(a.TERM==="dumb"){return s}if(l.platform==="win32"){const e=i.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in a){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some((e=>e in a))||a.CI_NAME==="codeship"){return 1}return s}if("TEAMCITY_VERSION"in a){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0}if("TF_BUILD"in a&&"AGENT_NAME"in a){return 1}if(a.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in a){const e=Number.parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(a.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)){return 1}if("COLORTERM"in a){return 1}return s}function createSupportsColor(e,r={}){const t=_supportsColor(e,{streamIsTTY:e&&e.isTTY,...r});return translateLevel(t)}const u={stdout:createSupportsColor({isTTY:s.isatty(1)}),stderr:createSupportsColor({isTTY:s.isatty(2)})};var f=u;function stringReplaceAll(e,r,t){let n=e.indexOf(r);if(n===-1){return e}const o=r.length;let l=0;let i="";do{i+=e.substr(l,n-l)+r+t;l=n+o;n=e.indexOf(r,l)}while(n!==-1);i+=e.slice(l);return i}function stringEncaseCRLFWithFirstIndex(e,r,t,n){let o=0;let l="";do{const i=e[n-1]==="\r";l+=e.substr(o,(i?n-1:n)-o)+r+(i?"\r\n":"\n")+t;o=n+1;n=e.indexOf("\n",o)}while(n!==-1);l+=e.slice(o);return l}const{stdout:g,stderr:h}=f;const b=Symbol("GENERATOR");const d=Symbol("STYLER");const p=Symbol("IS_EMPTY");const m=["ansi","ansi","ansi256","ansi16m"];const O=Object.create(null);const applyOptions=(e,r={})=>{if(r.level&&!(Number.isInteger(r.level)&&r.level>=0&&r.level<=3)){throw new Error("The `level` option should be an integer from 0 to 3")}const t=g?g.level:0;e.level=r.level===undefined?t:r.level};class Chalk{constructor(e){return chalkFactory(e)}}const chalkFactory=e=>{const chalk=(...e)=>e.join(" ");applyOptions(chalk,e);Object.setPrototypeOf(chalk,createChalk.prototype);return chalk};function createChalk(e){return chalkFactory(e)}Object.setPrototypeOf(createChalk.prototype,Function.prototype);for(const[e,r]of Object.entries(o)){O[e]={get(){const t=createBuilder(this,createStyler(r.open,r.close,this[d]),this[p]);Object.defineProperty(this,e,{value:t});return t}}}O.visible={get(){const e=createBuilder(this,this[d],true);Object.defineProperty(this,"visible",{value:e});return e}};const getModelAnsi=(e,r,t,...n)=>{if(e==="rgb"){if(r==="ansi16m"){return o[t].ansi16m(...n)}if(r==="ansi256"){return o[t].ansi256(o.rgbToAnsi256(...n))}return o[t].ansi(o.rgbToAnsi(...n))}if(e==="hex"){return getModelAnsi("rgb",r,t,...o.hexToRgb(...n))}return o[t][e](...n)};const C=["rgb","hex","ansi256"];for(const e of C){O[e]={get(){const{level:r}=this;return function(...t){const n=createStyler(getModelAnsi(e,m[r],"color",...t),o.color.close,this[d]);return createBuilder(this,n,this[p])}}};const r="bg"+e[0].toUpperCase()+e.slice(1);O[r]={get(){const{level:r}=this;return function(...t){const n=createStyler(getModelAnsi(e,m[r],"bgColor",...t),o.bgColor.close,this[d]);return createBuilder(this,n,this[p])}}}}const v=Object.defineProperties((()=>{}),{...O,level:{enumerable:true,get(){return this[b].level},set(e){this[b].level=e}}});const createStyler=(e,r,t)=>{let n;let o;if(t===undefined){n=e;o=r}else{n=t.openAll+e;o=r+t.closeAll}return{open:e,close:r,openAll:n,closeAll:o,parent:t}};const createBuilder=(e,r,t)=>{const builder=(...e)=>applyStyle(builder,e.length===1?""+e[0]:e.join(" "));Object.setPrototypeOf(builder,v);builder[b]=e;builder[d]=r;builder[p]=t;return builder};const applyStyle=(e,r)=>{if(e.level<=0||!r){return e[p]?"":r}let t=e[d];if(t===undefined){return r}const{openAll:n,closeAll:o}=t;if(r.includes("")){while(t!==undefined){r=stringReplaceAll(r,t.close,t.open);t=t.parent}}const l=r.indexOf("\n");if(l!==-1){r=stringEncaseCRLFWithFirstIndex(r,o,n,l)}return n+r+o};Object.defineProperties(createChalk.prototype,O);const T=createChalk();const R=createChalk({level:h?h.level:0});var y=T;module.exports=r})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"chalk","license":"MIT"}
|
|
1
|
+
{"name":"chalk","license":"MIT","types":"./source/index.d.ts"}
|