piral-cli 1.11.0-beta.d67041b → 1.11.0-beta.fef8836

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.
Files changed (2) hide show
  1. package/lib/external/index.js +877 -588
  2. package/package.json +2 -2
@@ -48507,12 +48507,12 @@ var require_lib5 = __commonJS({
48507
48507
  );
48508
48508
  }
48509
48509
  );
48510
- function create(options) {
48510
+ function create2(options) {
48511
48511
  const resolver = getResolverFactory().createResolver({
48512
48512
  fileSystem: getNodeFileSystem(),
48513
48513
  ...options
48514
48514
  });
48515
- return function create2(context, path3, request, resolveContext, callback) {
48515
+ return function create3(context, path3, request, resolveContext, callback) {
48516
48516
  if (typeof context === "string") {
48517
48517
  callback = /** @type {ResolveCallback} */
48518
48518
  resolveContext;
@@ -48569,7 +48569,7 @@ var require_lib5 = __commonJS({
48569
48569
  get sync() {
48570
48570
  return resolveSync;
48571
48571
  },
48572
- create: mergeExports(create, {
48572
+ create: mergeExports(create2, {
48573
48573
  get sync() {
48574
48574
  return createSync;
48575
48575
  }
@@ -53538,7 +53538,7 @@ var _global = (() => {
53538
53538
  return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
53539
53539
  })();
53540
53540
  var isContextDefined = (context) => !isUndefined(context) && context !== _global;
53541
- function merge() {
53541
+ function merge(...objs) {
53542
53542
  const { caseless, skipUndefined } = isContextDefined(this) && this || {};
53543
53543
  const result = {};
53544
53544
  const assignValue = (val, key) => {
@@ -53546,8 +53546,9 @@ function merge() {
53546
53546
  return;
53547
53547
  }
53548
53548
  const targetKey = caseless && findKey(result, key) || key;
53549
- if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
53550
- result[targetKey] = merge(result[targetKey], val);
53549
+ const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
53550
+ if (isPlainObject(existing) && isPlainObject(val)) {
53551
+ result[targetKey] = merge(existing, val);
53551
53552
  } else if (isPlainObject(val)) {
53552
53553
  result[targetKey] = merge({}, val);
53553
53554
  } else if (isArray(val)) {
@@ -53556,8 +53557,8 @@ function merge() {
53556
53557
  result[targetKey] = val;
53557
53558
  }
53558
53559
  };
53559
- for (let i = 0, l = arguments.length; i < l; i++) {
53560
- arguments[i] && forEach(arguments[i], assignValue);
53560
+ for (let i = 0, l = objs.length; i < l; i++) {
53561
+ objs[i] && forEach(objs[i], assignValue);
53561
53562
  }
53562
53563
  return result;
53563
53564
  }
@@ -53567,6 +53568,9 @@ var extend = (a, b2, thisArg, { allOwnKeys } = {}) => {
53567
53568
  (val, key) => {
53568
53569
  if (thisArg && isFunction(val)) {
53569
53570
  Object.defineProperty(a, key, {
53571
+ // Null-proto descriptor so a polluted Object.prototype.get cannot
53572
+ // hijack defineProperty's accessor-vs-data resolution.
53573
+ __proto__: null,
53570
53574
  value: bind(val, thisArg),
53571
53575
  writable: true,
53572
53576
  enumerable: true,
@@ -53574,6 +53578,7 @@ var extend = (a, b2, thisArg, { allOwnKeys } = {}) => {
53574
53578
  });
53575
53579
  } else {
53576
53580
  Object.defineProperty(a, key, {
53581
+ __proto__: null,
53577
53582
  value: val,
53578
53583
  writable: true,
53579
53584
  enumerable: true,
@@ -53594,12 +53599,14 @@ var stripBOM = (content) => {
53594
53599
  var inherits = (constructor, superConstructor, props, descriptors) => {
53595
53600
  constructor.prototype = Object.create(superConstructor.prototype, descriptors);
53596
53601
  Object.defineProperty(constructor.prototype, "constructor", {
53602
+ __proto__: null,
53597
53603
  value: constructor,
53598
53604
  writable: true,
53599
53605
  enumerable: false,
53600
53606
  configurable: true
53601
53607
  });
53602
53608
  Object.defineProperty(constructor, "super", {
53609
+ __proto__: null,
53603
53610
  value: superConstructor.prototype
53604
53611
  });
53605
53612
  props && Object.assign(constructor.prototype, props);
@@ -53688,7 +53695,7 @@ var reduceDescriptors = (obj, reducer) => {
53688
53695
  };
53689
53696
  var freezeMethods = (obj) => {
53690
53697
  reduceDescriptors(obj, (descriptor, name) => {
53691
- if (isFunction(obj) && ["arguments", "caller", "callee"].indexOf(name) !== -1) {
53698
+ if (isFunction(obj) && ["arguments", "caller", "callee"].includes(name)) {
53692
53699
  return false;
53693
53700
  }
53694
53701
  const value = obj[name];
@@ -53835,7 +53842,366 @@ var utils_default = {
53835
53842
  isIterable
53836
53843
  };
53837
53844
 
53845
+ // ../../../node_modules/axios/lib/helpers/parseHeaders.js
53846
+ var ignoreDuplicateOf = utils_default.toObjectSet([
53847
+ "age",
53848
+ "authorization",
53849
+ "content-length",
53850
+ "content-type",
53851
+ "etag",
53852
+ "expires",
53853
+ "from",
53854
+ "host",
53855
+ "if-modified-since",
53856
+ "if-unmodified-since",
53857
+ "last-modified",
53858
+ "location",
53859
+ "max-forwards",
53860
+ "proxy-authorization",
53861
+ "referer",
53862
+ "retry-after",
53863
+ "user-agent"
53864
+ ]);
53865
+ var parseHeaders_default = (rawHeaders) => {
53866
+ const parsed = {};
53867
+ let key;
53868
+ let val;
53869
+ let i;
53870
+ rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
53871
+ i = line.indexOf(":");
53872
+ key = line.substring(0, i).trim().toLowerCase();
53873
+ val = line.substring(i + 1).trim();
53874
+ if (!key || parsed[key] && ignoreDuplicateOf[key]) {
53875
+ return;
53876
+ }
53877
+ if (key === "set-cookie") {
53878
+ if (parsed[key]) {
53879
+ parsed[key].push(val);
53880
+ } else {
53881
+ parsed[key] = [val];
53882
+ }
53883
+ } else {
53884
+ parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
53885
+ }
53886
+ });
53887
+ return parsed;
53888
+ };
53889
+
53890
+ // ../../../node_modules/axios/lib/core/AxiosHeaders.js
53891
+ var $internals = /* @__PURE__ */ Symbol("internals");
53892
+ var INVALID_HEADER_VALUE_CHARS_RE = /[^\x09\x20-\x7E\x80-\xFF]/g;
53893
+ function trimSPorHTAB(str) {
53894
+ let start = 0;
53895
+ let end = str.length;
53896
+ while (start < end) {
53897
+ const code = str.charCodeAt(start);
53898
+ if (code !== 9 && code !== 32) {
53899
+ break;
53900
+ }
53901
+ start += 1;
53902
+ }
53903
+ while (end > start) {
53904
+ const code = str.charCodeAt(end - 1);
53905
+ if (code !== 9 && code !== 32) {
53906
+ break;
53907
+ }
53908
+ end -= 1;
53909
+ }
53910
+ return start === 0 && end === str.length ? str : str.slice(start, end);
53911
+ }
53912
+ function normalizeHeader(header) {
53913
+ return header && String(header).trim().toLowerCase();
53914
+ }
53915
+ function sanitizeHeaderValue(str) {
53916
+ return trimSPorHTAB(str.replace(INVALID_HEADER_VALUE_CHARS_RE, ""));
53917
+ }
53918
+ function normalizeValue(value) {
53919
+ if (value === false || value == null) {
53920
+ return value;
53921
+ }
53922
+ return utils_default.isArray(value) ? value.map(normalizeValue) : sanitizeHeaderValue(String(value));
53923
+ }
53924
+ function parseTokens(str) {
53925
+ const tokens = /* @__PURE__ */ Object.create(null);
53926
+ const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
53927
+ let match2;
53928
+ while (match2 = tokensRE.exec(str)) {
53929
+ tokens[match2[1]] = match2[2];
53930
+ }
53931
+ return tokens;
53932
+ }
53933
+ var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
53934
+ function matchHeaderValue(context, value, header, filter4, isHeaderNameFilter) {
53935
+ if (utils_default.isFunction(filter4)) {
53936
+ return filter4.call(this, value, header);
53937
+ }
53938
+ if (isHeaderNameFilter) {
53939
+ value = header;
53940
+ }
53941
+ if (!utils_default.isString(value)) return;
53942
+ if (utils_default.isString(filter4)) {
53943
+ return value.indexOf(filter4) !== -1;
53944
+ }
53945
+ if (utils_default.isRegExp(filter4)) {
53946
+ return filter4.test(value);
53947
+ }
53948
+ }
53949
+ function formatHeader(header) {
53950
+ return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w2, char, str) => {
53951
+ return char.toUpperCase() + str;
53952
+ });
53953
+ }
53954
+ function buildAccessors(obj, header) {
53955
+ const accessorName = utils_default.toCamelCase(" " + header);
53956
+ ["get", "set", "has"].forEach((methodName) => {
53957
+ Object.defineProperty(obj, methodName + accessorName, {
53958
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
53959
+ // this data descriptor into an accessor descriptor on the way in.
53960
+ __proto__: null,
53961
+ value: function(arg1, arg2, arg3) {
53962
+ return this[methodName].call(this, header, arg1, arg2, arg3);
53963
+ },
53964
+ configurable: true
53965
+ });
53966
+ });
53967
+ }
53968
+ var AxiosHeaders = class {
53969
+ constructor(headers) {
53970
+ headers && this.set(headers);
53971
+ }
53972
+ set(header, valueOrRewrite, rewrite) {
53973
+ const self2 = this;
53974
+ function setHeader(_value, _header, _rewrite) {
53975
+ const lHeader = normalizeHeader(_header);
53976
+ if (!lHeader) {
53977
+ throw new Error("header name must be a non-empty string");
53978
+ }
53979
+ const key = utils_default.findKey(self2, lHeader);
53980
+ if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
53981
+ self2[key || _header] = normalizeValue(_value);
53982
+ }
53983
+ }
53984
+ const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
53985
+ if (utils_default.isPlainObject(header) || header instanceof this.constructor) {
53986
+ setHeaders(header, valueOrRewrite);
53987
+ } else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
53988
+ setHeaders(parseHeaders_default(header), valueOrRewrite);
53989
+ } else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
53990
+ let obj = {}, dest, key;
53991
+ for (const entry of header) {
53992
+ if (!utils_default.isArray(entry)) {
53993
+ throw TypeError("Object iterator must return a key-value pair");
53994
+ }
53995
+ obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
53996
+ }
53997
+ setHeaders(obj, valueOrRewrite);
53998
+ } else {
53999
+ header != null && setHeader(valueOrRewrite, header, rewrite);
54000
+ }
54001
+ return this;
54002
+ }
54003
+ get(header, parser) {
54004
+ header = normalizeHeader(header);
54005
+ if (header) {
54006
+ const key = utils_default.findKey(this, header);
54007
+ if (key) {
54008
+ const value = this[key];
54009
+ if (!parser) {
54010
+ return value;
54011
+ }
54012
+ if (parser === true) {
54013
+ return parseTokens(value);
54014
+ }
54015
+ if (utils_default.isFunction(parser)) {
54016
+ return parser.call(this, value, key);
54017
+ }
54018
+ if (utils_default.isRegExp(parser)) {
54019
+ return parser.exec(value);
54020
+ }
54021
+ throw new TypeError("parser must be boolean|regexp|function");
54022
+ }
54023
+ }
54024
+ }
54025
+ has(header, matcher) {
54026
+ header = normalizeHeader(header);
54027
+ if (header) {
54028
+ const key = utils_default.findKey(this, header);
54029
+ return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
54030
+ }
54031
+ return false;
54032
+ }
54033
+ delete(header, matcher) {
54034
+ const self2 = this;
54035
+ let deleted = false;
54036
+ function deleteHeader(_header) {
54037
+ _header = normalizeHeader(_header);
54038
+ if (_header) {
54039
+ const key = utils_default.findKey(self2, _header);
54040
+ if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
54041
+ delete self2[key];
54042
+ deleted = true;
54043
+ }
54044
+ }
54045
+ }
54046
+ if (utils_default.isArray(header)) {
54047
+ header.forEach(deleteHeader);
54048
+ } else {
54049
+ deleteHeader(header);
54050
+ }
54051
+ return deleted;
54052
+ }
54053
+ clear(matcher) {
54054
+ const keys = Object.keys(this);
54055
+ let i = keys.length;
54056
+ let deleted = false;
54057
+ while (i--) {
54058
+ const key = keys[i];
54059
+ if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
54060
+ delete this[key];
54061
+ deleted = true;
54062
+ }
54063
+ }
54064
+ return deleted;
54065
+ }
54066
+ normalize(format) {
54067
+ const self2 = this;
54068
+ const headers = {};
54069
+ utils_default.forEach(this, (value, header) => {
54070
+ const key = utils_default.findKey(headers, header);
54071
+ if (key) {
54072
+ self2[key] = normalizeValue(value);
54073
+ delete self2[header];
54074
+ return;
54075
+ }
54076
+ const normalized = format ? formatHeader(header) : String(header).trim();
54077
+ if (normalized !== header) {
54078
+ delete self2[header];
54079
+ }
54080
+ self2[normalized] = normalizeValue(value);
54081
+ headers[normalized] = true;
54082
+ });
54083
+ return this;
54084
+ }
54085
+ concat(...targets) {
54086
+ return this.constructor.concat(this, ...targets);
54087
+ }
54088
+ toJSON(asStrings) {
54089
+ const obj = /* @__PURE__ */ Object.create(null);
54090
+ utils_default.forEach(this, (value, header) => {
54091
+ value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);
54092
+ });
54093
+ return obj;
54094
+ }
54095
+ [Symbol.iterator]() {
54096
+ return Object.entries(this.toJSON())[Symbol.iterator]();
54097
+ }
54098
+ toString() {
54099
+ return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
54100
+ }
54101
+ getSetCookie() {
54102
+ return this.get("set-cookie") || [];
54103
+ }
54104
+ get [Symbol.toStringTag]() {
54105
+ return "AxiosHeaders";
54106
+ }
54107
+ static from(thing) {
54108
+ return thing instanceof this ? thing : new this(thing);
54109
+ }
54110
+ static concat(first, ...targets) {
54111
+ const computed = new this(first);
54112
+ targets.forEach((target) => computed.set(target));
54113
+ return computed;
54114
+ }
54115
+ static accessor(header) {
54116
+ const internals = this[$internals] = this[$internals] = {
54117
+ accessors: {}
54118
+ };
54119
+ const accessors = internals.accessors;
54120
+ const prototype2 = this.prototype;
54121
+ function defineAccessor(_header) {
54122
+ const lHeader = normalizeHeader(_header);
54123
+ if (!accessors[lHeader]) {
54124
+ buildAccessors(prototype2, _header);
54125
+ accessors[lHeader] = true;
54126
+ }
54127
+ }
54128
+ utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
54129
+ return this;
54130
+ }
54131
+ };
54132
+ AxiosHeaders.accessor([
54133
+ "Content-Type",
54134
+ "Content-Length",
54135
+ "Accept",
54136
+ "Accept-Encoding",
54137
+ "User-Agent",
54138
+ "Authorization"
54139
+ ]);
54140
+ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
54141
+ let mapped = key[0].toUpperCase() + key.slice(1);
54142
+ return {
54143
+ get: () => value,
54144
+ set(headerValue) {
54145
+ this[mapped] = headerValue;
54146
+ }
54147
+ };
54148
+ });
54149
+ utils_default.freezeMethods(AxiosHeaders);
54150
+ var AxiosHeaders_default = AxiosHeaders;
54151
+
53838
54152
  // ../../../node_modules/axios/lib/core/AxiosError.js
54153
+ var REDACTED = "[REDACTED ****]";
54154
+ function hasOwnOrPrototypeToJSON(source) {
54155
+ if (utils_default.hasOwnProp(source, "toJSON")) {
54156
+ return true;
54157
+ }
54158
+ let prototype2 = Object.getPrototypeOf(source);
54159
+ while (prototype2 && prototype2 !== Object.prototype) {
54160
+ if (utils_default.hasOwnProp(prototype2, "toJSON")) {
54161
+ return true;
54162
+ }
54163
+ prototype2 = Object.getPrototypeOf(prototype2);
54164
+ }
54165
+ return false;
54166
+ }
54167
+ function redactConfig(config, redactKeys) {
54168
+ const lowerKeys = new Set(redactKeys.map((k2) => String(k2).toLowerCase()));
54169
+ const seen = [];
54170
+ const visit = (source) => {
54171
+ if (source === null || typeof source !== "object") return source;
54172
+ if (utils_default.isBuffer(source)) return source;
54173
+ if (seen.indexOf(source) !== -1) return void 0;
54174
+ if (source instanceof AxiosHeaders_default) {
54175
+ source = source.toJSON();
54176
+ }
54177
+ seen.push(source);
54178
+ let result;
54179
+ if (utils_default.isArray(source)) {
54180
+ result = [];
54181
+ source.forEach((v2, i) => {
54182
+ const reducedValue = visit(v2);
54183
+ if (!utils_default.isUndefined(reducedValue)) {
54184
+ result[i] = reducedValue;
54185
+ }
54186
+ });
54187
+ } else {
54188
+ if (!utils_default.isPlainObject(source) && hasOwnOrPrototypeToJSON(source)) {
54189
+ seen.pop();
54190
+ return source;
54191
+ }
54192
+ result = /* @__PURE__ */ Object.create(null);
54193
+ for (const [key, value] of Object.entries(source)) {
54194
+ const reducedValue = lowerKeys.has(key.toLowerCase()) ? REDACTED : visit(value);
54195
+ if (!utils_default.isUndefined(reducedValue)) {
54196
+ result[key] = reducedValue;
54197
+ }
54198
+ }
54199
+ }
54200
+ seen.pop();
54201
+ return result;
54202
+ };
54203
+ return visit(config);
54204
+ }
53839
54205
  var AxiosError = class _AxiosError extends Error {
53840
54206
  static from(error, code, config, request, response, customProps) {
53841
54207
  const axiosError = new _AxiosError(error.message, code || error.code, config, request, response);
@@ -53861,6 +54227,9 @@ var AxiosError = class _AxiosError extends Error {
53861
54227
  constructor(message, code, config, request, response) {
53862
54228
  super(message);
53863
54229
  Object.defineProperty(this, "message", {
54230
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
54231
+ // this data descriptor into an accessor descriptor on the way in.
54232
+ __proto__: null,
53864
54233
  value: message,
53865
54234
  enumerable: true,
53866
54235
  writable: true,
@@ -53877,6 +54246,9 @@ var AxiosError = class _AxiosError extends Error {
53877
54246
  }
53878
54247
  }
53879
54248
  toJSON() {
54249
+ const config = this.config;
54250
+ const redactKeys = config && utils_default.hasOwnProp(config, "redact") ? config.redact : void 0;
54251
+ const serializedConfig = utils_default.isArray(redactKeys) && redactKeys.length > 0 ? redactConfig(config, redactKeys) : utils_default.toJSONObject(config);
53880
54252
  return {
53881
54253
  // Standard
53882
54254
  message: this.message,
@@ -53890,7 +54262,7 @@ var AxiosError = class _AxiosError extends Error {
53890
54262
  columnNumber: this.columnNumber,
53891
54263
  stack: this.stack,
53892
54264
  // Axios
53893
- config: utils_default.toJSONObject(this.config),
54265
+ config: serializedConfig,
53894
54266
  code: this.code,
53895
54267
  status: this.status
53896
54268
  };
@@ -53900,6 +54272,7 @@ AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
53900
54272
  AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
53901
54273
  AxiosError.ECONNABORTED = "ECONNABORTED";
53902
54274
  AxiosError.ETIMEDOUT = "ETIMEDOUT";
54275
+ AxiosError.ECONNREFUSED = "ECONNREFUSED";
53903
54276
  AxiosError.ERR_NETWORK = "ERR_NETWORK";
53904
54277
  AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
53905
54278
  AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
@@ -54229,499 +54602,195 @@ var hasStandardBrowserWebWorkerEnv = (() => {
54229
54602
  })();
54230
54603
  var origin = hasBrowserEnv && window.location.href || "http://localhost";
54231
54604
 
54232
- // ../../../node_modules/axios/lib/platform/index.js
54233
- var platform_default = {
54234
- ...utils_exports,
54235
- ...node_default
54236
- };
54237
-
54238
- // ../../../node_modules/axios/lib/helpers/toURLEncodedForm.js
54239
- function toURLEncodedForm(data, options) {
54240
- return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
54241
- visitor: function(value, key, path3, helpers) {
54242
- if (platform_default.isNode && utils_default.isBuffer(value)) {
54243
- this.append(key, value.toString("base64"));
54244
- return false;
54245
- }
54246
- return helpers.defaultVisitor.apply(this, arguments);
54247
- },
54248
- ...options
54249
- });
54250
- }
54251
-
54252
- // ../../../node_modules/axios/lib/helpers/formDataToJSON.js
54253
- function parsePropPath(name) {
54254
- return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match2) => {
54255
- return match2[0] === "[]" ? "" : match2[1] || match2[0];
54256
- });
54257
- }
54258
- function arrayToObject(arr) {
54259
- const obj = {};
54260
- const keys = Object.keys(arr);
54261
- let i;
54262
- const len = keys.length;
54263
- let key;
54264
- for (i = 0; i < len; i++) {
54265
- key = keys[i];
54266
- obj[key] = arr[key];
54267
- }
54268
- return obj;
54269
- }
54270
- function formDataToJSON(formData) {
54271
- function buildPath(path3, value, target, index) {
54272
- let name = path3[index++];
54273
- if (name === "__proto__") return true;
54274
- const isNumericKey = Number.isFinite(+name);
54275
- const isLast = index >= path3.length;
54276
- name = !name && utils_default.isArray(target) ? target.length : name;
54277
- if (isLast) {
54278
- if (utils_default.hasOwnProp(target, name)) {
54279
- target[name] = utils_default.isArray(target[name]) ? target[name].concat(value) : [target[name], value];
54280
- } else {
54281
- target[name] = value;
54282
- }
54283
- return !isNumericKey;
54284
- }
54285
- if (!target[name] || !utils_default.isObject(target[name])) {
54286
- target[name] = [];
54287
- }
54288
- const result = buildPath(path3, value, target[name], index);
54289
- if (result && utils_default.isArray(target[name])) {
54290
- target[name] = arrayToObject(target[name]);
54291
- }
54292
- return !isNumericKey;
54293
- }
54294
- if (utils_default.isFormData(formData) && utils_default.isFunction(formData.entries)) {
54295
- const obj = {};
54296
- utils_default.forEachEntry(formData, (name, value) => {
54297
- buildPath(parsePropPath(name), value, obj, 0);
54298
- });
54299
- return obj;
54300
- }
54301
- return null;
54302
- }
54303
- var formDataToJSON_default = formDataToJSON;
54304
-
54305
- // ../../../node_modules/axios/lib/defaults/index.js
54306
- var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
54307
- function stringifySafely(rawValue, parser, encoder) {
54308
- if (utils_default.isString(rawValue)) {
54309
- try {
54310
- (parser || JSON.parse)(rawValue);
54311
- return utils_default.trim(rawValue);
54312
- } catch (e) {
54313
- if (e.name !== "SyntaxError") {
54314
- throw e;
54315
- }
54316
- }
54317
- }
54318
- return (encoder || JSON.stringify)(rawValue);
54319
- }
54320
- var defaults = {
54321
- transitional: transitional_default,
54322
- adapter: ["xhr", "http", "fetch"],
54323
- transformRequest: [
54324
- function transformRequest(data, headers) {
54325
- const contentType = headers.getContentType() || "";
54326
- const hasJSONContentType = contentType.indexOf("application/json") > -1;
54327
- const isObjectPayload = utils_default.isObject(data);
54328
- if (isObjectPayload && utils_default.isHTMLForm(data)) {
54329
- data = new FormData(data);
54330
- }
54331
- const isFormData2 = utils_default.isFormData(data);
54332
- if (isFormData2) {
54333
- return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
54334
- }
54335
- if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data) || utils_default.isReadableStream(data)) {
54336
- return data;
54337
- }
54338
- if (utils_default.isArrayBufferView(data)) {
54339
- return data.buffer;
54340
- }
54341
- if (utils_default.isURLSearchParams(data)) {
54342
- headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
54343
- return data.toString();
54344
- }
54345
- let isFileList2;
54346
- if (isObjectPayload) {
54347
- const formSerializer = own(this, "formSerializer");
54348
- if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
54349
- return toURLEncodedForm(data, formSerializer).toString();
54350
- }
54351
- if ((isFileList2 = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
54352
- const env4 = own(this, "env");
54353
- const _FormData = env4 && env4.FormData;
54354
- return toFormData_default(
54355
- isFileList2 ? { "files[]": data } : data,
54356
- _FormData && new _FormData(),
54357
- formSerializer
54358
- );
54359
- }
54360
- }
54361
- if (isObjectPayload || hasJSONContentType) {
54362
- headers.setContentType("application/json", false);
54363
- return stringifySafely(data);
54364
- }
54365
- return data;
54366
- }
54367
- ],
54368
- transformResponse: [
54369
- function transformResponse(data) {
54370
- const transitional2 = own(this, "transitional") || defaults.transitional;
54371
- const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
54372
- const responseType = own(this, "responseType");
54373
- const JSONRequested = responseType === "json";
54374
- if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
54375
- return data;
54376
- }
54377
- if (data && utils_default.isString(data) && (forcedJSONParsing && !responseType || JSONRequested)) {
54378
- const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
54379
- const strictJSONParsing = !silentJSONParsing && JSONRequested;
54380
- try {
54381
- return JSON.parse(data, own(this, "parseReviver"));
54382
- } catch (e) {
54383
- if (strictJSONParsing) {
54384
- if (e.name === "SyntaxError") {
54385
- throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, own(this, "response"));
54386
- }
54387
- throw e;
54388
- }
54389
- }
54390
- }
54391
- return data;
54392
- }
54393
- ],
54394
- /**
54395
- * A timeout in milliseconds to abort a request. If set to 0 (default) a
54396
- * timeout is not created.
54397
- */
54398
- timeout: 0,
54399
- xsrfCookieName: "XSRF-TOKEN",
54400
- xsrfHeaderName: "X-XSRF-TOKEN",
54401
- maxContentLength: -1,
54402
- maxBodyLength: -1,
54403
- env: {
54404
- FormData: platform_default.classes.FormData,
54405
- Blob: platform_default.classes.Blob
54406
- },
54407
- validateStatus: function validateStatus(status) {
54408
- return status >= 200 && status < 300;
54409
- },
54410
- headers: {
54411
- common: {
54412
- Accept: "application/json, text/plain, */*",
54413
- "Content-Type": void 0
54414
- }
54415
- }
54416
- };
54417
- utils_default.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
54418
- defaults.headers[method] = {};
54419
- });
54420
- var defaults_default = defaults;
54421
-
54422
- // ../../../node_modules/axios/lib/helpers/parseHeaders.js
54423
- var ignoreDuplicateOf = utils_default.toObjectSet([
54424
- "age",
54425
- "authorization",
54426
- "content-length",
54427
- "content-type",
54428
- "etag",
54429
- "expires",
54430
- "from",
54431
- "host",
54432
- "if-modified-since",
54433
- "if-unmodified-since",
54434
- "last-modified",
54435
- "location",
54436
- "max-forwards",
54437
- "proxy-authorization",
54438
- "referer",
54439
- "retry-after",
54440
- "user-agent"
54441
- ]);
54442
- var parseHeaders_default = (rawHeaders) => {
54443
- const parsed = {};
54444
- let key;
54445
- let val;
54446
- let i;
54447
- rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
54448
- i = line.indexOf(":");
54449
- key = line.substring(0, i).trim().toLowerCase();
54450
- val = line.substring(i + 1).trim();
54451
- if (!key || parsed[key] && ignoreDuplicateOf[key]) {
54452
- return;
54453
- }
54454
- if (key === "set-cookie") {
54455
- if (parsed[key]) {
54456
- parsed[key].push(val);
54457
- } else {
54458
- parsed[key] = [val];
54459
- }
54460
- } else {
54461
- parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
54462
- }
54463
- });
54464
- return parsed;
54605
+ // ../../../node_modules/axios/lib/platform/index.js
54606
+ var platform_default = {
54607
+ ...utils_exports,
54608
+ ...node_default
54465
54609
  };
54466
54610
 
54467
- // ../../../node_modules/axios/lib/core/AxiosHeaders.js
54468
- var $internals = /* @__PURE__ */ Symbol("internals");
54469
- var INVALID_HEADER_VALUE_CHARS_RE = /[^\x09\x20-\x7E\x80-\xFF]/g;
54470
- function trimSPorHTAB(str) {
54471
- let start = 0;
54472
- let end = str.length;
54473
- while (start < end) {
54474
- const code = str.charCodeAt(start);
54475
- if (code !== 9 && code !== 32) {
54476
- break;
54477
- }
54478
- start += 1;
54479
- }
54480
- while (end > start) {
54481
- const code = str.charCodeAt(end - 1);
54482
- if (code !== 9 && code !== 32) {
54483
- break;
54484
- }
54485
- end -= 1;
54486
- }
54487
- return start === 0 && end === str.length ? str : str.slice(start, end);
54488
- }
54489
- function normalizeHeader(header) {
54490
- return header && String(header).trim().toLowerCase();
54491
- }
54492
- function sanitizeHeaderValue(str) {
54493
- return trimSPorHTAB(str.replace(INVALID_HEADER_VALUE_CHARS_RE, ""));
54494
- }
54495
- function normalizeValue(value) {
54496
- if (value === false || value == null) {
54497
- return value;
54498
- }
54499
- return utils_default.isArray(value) ? value.map(normalizeValue) : sanitizeHeaderValue(String(value));
54500
- }
54501
- function parseTokens(str) {
54502
- const tokens = /* @__PURE__ */ Object.create(null);
54503
- const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
54504
- let match2;
54505
- while (match2 = tokensRE.exec(str)) {
54506
- tokens[match2[1]] = match2[2];
54507
- }
54508
- return tokens;
54509
- }
54510
- var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
54511
- function matchHeaderValue(context, value, header, filter4, isHeaderNameFilter) {
54512
- if (utils_default.isFunction(filter4)) {
54513
- return filter4.call(this, value, header);
54514
- }
54515
- if (isHeaderNameFilter) {
54516
- value = header;
54517
- }
54518
- if (!utils_default.isString(value)) return;
54519
- if (utils_default.isString(filter4)) {
54520
- return value.indexOf(filter4) !== -1;
54521
- }
54522
- if (utils_default.isRegExp(filter4)) {
54523
- return filter4.test(value);
54524
- }
54525
- }
54526
- function formatHeader(header) {
54527
- return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w2, char, str) => {
54528
- return char.toUpperCase() + str;
54611
+ // ../../../node_modules/axios/lib/helpers/toURLEncodedForm.js
54612
+ function toURLEncodedForm(data, options) {
54613
+ return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
54614
+ visitor: function(value, key, path3, helpers) {
54615
+ if (platform_default.isNode && utils_default.isBuffer(value)) {
54616
+ this.append(key, value.toString("base64"));
54617
+ return false;
54618
+ }
54619
+ return helpers.defaultVisitor.apply(this, arguments);
54620
+ },
54621
+ ...options
54529
54622
  });
54530
54623
  }
54531
- function buildAccessors(obj, header) {
54532
- const accessorName = utils_default.toCamelCase(" " + header);
54533
- ["get", "set", "has"].forEach((methodName) => {
54534
- Object.defineProperty(obj, methodName + accessorName, {
54535
- value: function(arg1, arg2, arg3) {
54536
- return this[methodName].call(this, header, arg1, arg2, arg3);
54537
- },
54538
- configurable: true
54539
- });
54624
+
54625
+ // ../../../node_modules/axios/lib/helpers/formDataToJSON.js
54626
+ function parsePropPath(name) {
54627
+ return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match2) => {
54628
+ return match2[0] === "[]" ? "" : match2[1] || match2[0];
54540
54629
  });
54541
54630
  }
54542
- var AxiosHeaders = class {
54543
- constructor(headers) {
54544
- headers && this.set(headers);
54631
+ function arrayToObject(arr) {
54632
+ const obj = {};
54633
+ const keys = Object.keys(arr);
54634
+ let i;
54635
+ const len = keys.length;
54636
+ let key;
54637
+ for (i = 0; i < len; i++) {
54638
+ key = keys[i];
54639
+ obj[key] = arr[key];
54545
54640
  }
54546
- set(header, valueOrRewrite, rewrite) {
54547
- const self2 = this;
54548
- function setHeader(_value, _header, _rewrite) {
54549
- const lHeader = normalizeHeader(_header);
54550
- if (!lHeader) {
54551
- throw new Error("header name must be a non-empty string");
54552
- }
54553
- const key = utils_default.findKey(self2, lHeader);
54554
- if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
54555
- self2[key || _header] = normalizeValue(_value);
54641
+ return obj;
54642
+ }
54643
+ function formDataToJSON(formData) {
54644
+ function buildPath(path3, value, target, index) {
54645
+ let name = path3[index++];
54646
+ if (name === "__proto__") return true;
54647
+ const isNumericKey = Number.isFinite(+name);
54648
+ const isLast = index >= path3.length;
54649
+ name = !name && utils_default.isArray(target) ? target.length : name;
54650
+ if (isLast) {
54651
+ if (utils_default.hasOwnProp(target, name)) {
54652
+ target[name] = utils_default.isArray(target[name]) ? target[name].concat(value) : [target[name], value];
54653
+ } else {
54654
+ target[name] = value;
54556
54655
  }
54656
+ return !isNumericKey;
54557
54657
  }
54558
- const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
54559
- if (utils_default.isPlainObject(header) || header instanceof this.constructor) {
54560
- setHeaders(header, valueOrRewrite);
54561
- } else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
54562
- setHeaders(parseHeaders_default(header), valueOrRewrite);
54563
- } else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
54564
- let obj = {}, dest, key;
54565
- for (const entry of header) {
54566
- if (!utils_default.isArray(entry)) {
54567
- throw TypeError("Object iterator must return a key-value pair");
54568
- }
54569
- obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
54570
- }
54571
- setHeaders(obj, valueOrRewrite);
54572
- } else {
54573
- header != null && setHeader(valueOrRewrite, header, rewrite);
54658
+ if (!target[name] || !utils_default.isObject(target[name])) {
54659
+ target[name] = [];
54574
54660
  }
54575
- return this;
54576
- }
54577
- get(header, parser) {
54578
- header = normalizeHeader(header);
54579
- if (header) {
54580
- const key = utils_default.findKey(this, header);
54581
- if (key) {
54582
- const value = this[key];
54583
- if (!parser) {
54584
- return value;
54585
- }
54586
- if (parser === true) {
54587
- return parseTokens(value);
54588
- }
54589
- if (utils_default.isFunction(parser)) {
54590
- return parser.call(this, value, key);
54591
- }
54592
- if (utils_default.isRegExp(parser)) {
54593
- return parser.exec(value);
54594
- }
54595
- throw new TypeError("parser must be boolean|regexp|function");
54596
- }
54661
+ const result = buildPath(path3, value, target[name], index);
54662
+ if (result && utils_default.isArray(target[name])) {
54663
+ target[name] = arrayToObject(target[name]);
54597
54664
  }
54665
+ return !isNumericKey;
54598
54666
  }
54599
- has(header, matcher) {
54600
- header = normalizeHeader(header);
54601
- if (header) {
54602
- const key = utils_default.findKey(this, header);
54603
- return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
54604
- }
54605
- return false;
54667
+ if (utils_default.isFormData(formData) && utils_default.isFunction(formData.entries)) {
54668
+ const obj = {};
54669
+ utils_default.forEachEntry(formData, (name, value) => {
54670
+ buildPath(parsePropPath(name), value, obj, 0);
54671
+ });
54672
+ return obj;
54606
54673
  }
54607
- delete(header, matcher) {
54608
- const self2 = this;
54609
- let deleted = false;
54610
- function deleteHeader(_header) {
54611
- _header = normalizeHeader(_header);
54612
- if (_header) {
54613
- const key = utils_default.findKey(self2, _header);
54614
- if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
54615
- delete self2[key];
54616
- deleted = true;
54617
- }
54674
+ return null;
54675
+ }
54676
+ var formDataToJSON_default = formDataToJSON;
54677
+
54678
+ // ../../../node_modules/axios/lib/defaults/index.js
54679
+ var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
54680
+ function stringifySafely(rawValue, parser, encoder) {
54681
+ if (utils_default.isString(rawValue)) {
54682
+ try {
54683
+ (parser || JSON.parse)(rawValue);
54684
+ return utils_default.trim(rawValue);
54685
+ } catch (e) {
54686
+ if (e.name !== "SyntaxError") {
54687
+ throw e;
54618
54688
  }
54619
54689
  }
54620
- if (utils_default.isArray(header)) {
54621
- header.forEach(deleteHeader);
54622
- } else {
54623
- deleteHeader(header);
54624
- }
54625
- return deleted;
54626
54690
  }
54627
- clear(matcher) {
54628
- const keys = Object.keys(this);
54629
- let i = keys.length;
54630
- let deleted = false;
54631
- while (i--) {
54632
- const key = keys[i];
54633
- if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
54634
- delete this[key];
54635
- deleted = true;
54691
+ return (encoder || JSON.stringify)(rawValue);
54692
+ }
54693
+ var defaults = {
54694
+ transitional: transitional_default,
54695
+ adapter: ["xhr", "http", "fetch"],
54696
+ transformRequest: [
54697
+ function transformRequest(data, headers) {
54698
+ const contentType = headers.getContentType() || "";
54699
+ const hasJSONContentType = contentType.indexOf("application/json") > -1;
54700
+ const isObjectPayload = utils_default.isObject(data);
54701
+ if (isObjectPayload && utils_default.isHTMLForm(data)) {
54702
+ data = new FormData(data);
54703
+ }
54704
+ const isFormData2 = utils_default.isFormData(data);
54705
+ if (isFormData2) {
54706
+ return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
54707
+ }
54708
+ if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data) || utils_default.isReadableStream(data)) {
54709
+ return data;
54710
+ }
54711
+ if (utils_default.isArrayBufferView(data)) {
54712
+ return data.buffer;
54713
+ }
54714
+ if (utils_default.isURLSearchParams(data)) {
54715
+ headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
54716
+ return data.toString();
54717
+ }
54718
+ let isFileList2;
54719
+ if (isObjectPayload) {
54720
+ const formSerializer = own(this, "formSerializer");
54721
+ if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
54722
+ return toURLEncodedForm(data, formSerializer).toString();
54723
+ }
54724
+ if ((isFileList2 = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
54725
+ const env4 = own(this, "env");
54726
+ const _FormData = env4 && env4.FormData;
54727
+ return toFormData_default(
54728
+ isFileList2 ? { "files[]": data } : data,
54729
+ _FormData && new _FormData(),
54730
+ formSerializer
54731
+ );
54732
+ }
54636
54733
  }
54637
- }
54638
- return deleted;
54639
- }
54640
- normalize(format) {
54641
- const self2 = this;
54642
- const headers = {};
54643
- utils_default.forEach(this, (value, header) => {
54644
- const key = utils_default.findKey(headers, header);
54645
- if (key) {
54646
- self2[key] = normalizeValue(value);
54647
- delete self2[header];
54648
- return;
54734
+ if (isObjectPayload || hasJSONContentType) {
54735
+ headers.setContentType("application/json", false);
54736
+ return stringifySafely(data);
54649
54737
  }
54650
- const normalized = format ? formatHeader(header) : String(header).trim();
54651
- if (normalized !== header) {
54652
- delete self2[header];
54738
+ return data;
54739
+ }
54740
+ ],
54741
+ transformResponse: [
54742
+ function transformResponse(data) {
54743
+ const transitional2 = own(this, "transitional") || defaults.transitional;
54744
+ const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
54745
+ const responseType = own(this, "responseType");
54746
+ const JSONRequested = responseType === "json";
54747
+ if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
54748
+ return data;
54653
54749
  }
54654
- self2[normalized] = normalizeValue(value);
54655
- headers[normalized] = true;
54656
- });
54657
- return this;
54658
- }
54659
- concat(...targets) {
54660
- return this.constructor.concat(this, ...targets);
54661
- }
54662
- toJSON(asStrings) {
54663
- const obj = /* @__PURE__ */ Object.create(null);
54664
- utils_default.forEach(this, (value, header) => {
54665
- value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);
54666
- });
54667
- return obj;
54668
- }
54669
- [Symbol.iterator]() {
54670
- return Object.entries(this.toJSON())[Symbol.iterator]();
54671
- }
54672
- toString() {
54673
- return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
54674
- }
54675
- getSetCookie() {
54676
- return this.get("set-cookie") || [];
54677
- }
54678
- get [Symbol.toStringTag]() {
54679
- return "AxiosHeaders";
54680
- }
54681
- static from(thing) {
54682
- return thing instanceof this ? thing : new this(thing);
54683
- }
54684
- static concat(first, ...targets) {
54685
- const computed = new this(first);
54686
- targets.forEach((target) => computed.set(target));
54687
- return computed;
54688
- }
54689
- static accessor(header) {
54690
- const internals = this[$internals] = this[$internals] = {
54691
- accessors: {}
54692
- };
54693
- const accessors = internals.accessors;
54694
- const prototype2 = this.prototype;
54695
- function defineAccessor(_header) {
54696
- const lHeader = normalizeHeader(_header);
54697
- if (!accessors[lHeader]) {
54698
- buildAccessors(prototype2, _header);
54699
- accessors[lHeader] = true;
54750
+ if (data && utils_default.isString(data) && (forcedJSONParsing && !responseType || JSONRequested)) {
54751
+ const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
54752
+ const strictJSONParsing = !silentJSONParsing && JSONRequested;
54753
+ try {
54754
+ return JSON.parse(data, own(this, "parseReviver"));
54755
+ } catch (e) {
54756
+ if (strictJSONParsing) {
54757
+ if (e.name === "SyntaxError") {
54758
+ throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, own(this, "response"));
54759
+ }
54760
+ throw e;
54761
+ }
54762
+ }
54700
54763
  }
54764
+ return data;
54765
+ }
54766
+ ],
54767
+ /**
54768
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
54769
+ * timeout is not created.
54770
+ */
54771
+ timeout: 0,
54772
+ xsrfCookieName: "XSRF-TOKEN",
54773
+ xsrfHeaderName: "X-XSRF-TOKEN",
54774
+ maxContentLength: -1,
54775
+ maxBodyLength: -1,
54776
+ env: {
54777
+ FormData: platform_default.classes.FormData,
54778
+ Blob: platform_default.classes.Blob
54779
+ },
54780
+ validateStatus: function validateStatus(status) {
54781
+ return status >= 200 && status < 300;
54782
+ },
54783
+ headers: {
54784
+ common: {
54785
+ Accept: "application/json, text/plain, */*",
54786
+ "Content-Type": void 0
54701
54787
  }
54702
- utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
54703
- return this;
54704
54788
  }
54705
54789
  };
54706
- AxiosHeaders.accessor([
54707
- "Content-Type",
54708
- "Content-Length",
54709
- "Accept",
54710
- "Accept-Encoding",
54711
- "User-Agent",
54712
- "Authorization"
54713
- ]);
54714
- utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
54715
- let mapped = key[0].toUpperCase() + key.slice(1);
54716
- return {
54717
- get: () => value,
54718
- set(headerValue) {
54719
- this[mapped] = headerValue;
54720
- }
54721
- };
54790
+ utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query"], (method) => {
54791
+ defaults.headers[method] = {};
54722
54792
  });
54723
- utils_default.freezeMethods(AxiosHeaders);
54724
- var AxiosHeaders_default = AxiosHeaders;
54793
+ var defaults_default = defaults;
54725
54794
 
54726
54795
  // ../../../node_modules/axios/lib/core/transformData.js
54727
54796
  function transformData(fns, response) {
@@ -54766,15 +54835,13 @@ function settle(resolve6, reject, response) {
54766
54835
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
54767
54836
  resolve6(response);
54768
54837
  } else {
54769
- reject(
54770
- new AxiosError_default(
54771
- "Request failed with status code " + response.status,
54772
- [AxiosError_default.ERR_BAD_REQUEST, AxiosError_default.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
54773
- response.config,
54774
- response.request,
54775
- response
54776
- )
54777
- );
54838
+ reject(new AxiosError_default(
54839
+ "Request failed with status code " + response.status,
54840
+ response.status >= 400 && response.status < 500 ? AxiosError_default.ERR_BAD_REQUEST : AxiosError_default.ERR_BAD_RESPONSE,
54841
+ response.config,
54842
+ response.request,
54843
+ response
54844
+ ));
54778
54845
  }
54779
54846
  }
54780
54847
 
@@ -54877,11 +54944,11 @@ var import_follow_redirects = __toESM(require_follow_redirects(), 1);
54877
54944
  var import_zlib2 = __toESM(require("zlib"), 1);
54878
54945
 
54879
54946
  // ../../../node_modules/axios/lib/env/data.js
54880
- var VERSION = "1.15.2";
54947
+ var VERSION = "1.16.0";
54881
54948
 
54882
54949
  // ../../../node_modules/axios/lib/helpers/parseProtocol.js
54883
54950
  function parseProtocol(url2) {
54884
- const match2 = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
54951
+ const match2 = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
54885
54952
  return match2 && match2[1] || "";
54886
54953
  }
54887
54954
 
@@ -55116,7 +55183,7 @@ var formDataToStream = (form, headersHandler, options) => {
55116
55183
  throw TypeError("FormData instance required");
55117
55184
  }
55118
55185
  if (boundary.length < 1 || boundary.length > 70) {
55119
- throw Error("boundary must be 10-70 characters long");
55186
+ throw Error("boundary must be 1-70 characters long");
55120
55187
  }
55121
55188
  const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
55122
55189
  const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF);
@@ -55245,6 +55312,20 @@ var parseNoProxyEntry = (entry) => {
55245
55312
  }
55246
55313
  return [entryHost, entryPort];
55247
55314
  };
55315
+ var IPV4_MAPPED_DOTTED_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i;
55316
+ var IPV4_MAPPED_HEX_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i;
55317
+ var unmapIPv4MappedIPv6 = (host) => {
55318
+ if (typeof host !== "string" || host.indexOf(":") === -1) return host;
55319
+ const dotted = host.match(IPV4_MAPPED_DOTTED_RE);
55320
+ if (dotted) return dotted[1];
55321
+ const hex = host.match(IPV4_MAPPED_HEX_RE);
55322
+ if (hex) {
55323
+ const high = parseInt(hex[1], 16);
55324
+ const low = parseInt(hex[2], 16);
55325
+ return `${high >> 8}.${high & 255}.${low >> 8}.${low & 255}`;
55326
+ }
55327
+ return host;
55328
+ };
55248
55329
  var normalizeNoProxyHost = (hostname) => {
55249
55330
  if (!hostname) {
55250
55331
  return hostname;
@@ -55252,7 +55333,7 @@ var normalizeNoProxyHost = (hostname) => {
55252
55333
  if (hostname.charAt(0) === "[" && hostname.charAt(hostname.length - 1) === "]") {
55253
55334
  hostname = hostname.slice(1, -1);
55254
55335
  }
55255
- return hostname.replace(/\.+$/, "");
55336
+ return unmapIPv4MappedIPv6(hostname.replace(/\.+$/, ""));
55256
55337
  };
55257
55338
  function shouldBypassProxy(location) {
55258
55339
  let parsed;
@@ -55446,10 +55527,32 @@ function estimateDataURLDecodedBytes(url2) {
55446
55527
  }
55447
55528
  }
55448
55529
  const groups = Math.floor(effectiveLen / 4);
55449
- const bytes = groups * 3 - (pad || 0);
55450
- return bytes > 0 ? bytes : 0;
55530
+ const bytes2 = groups * 3 - (pad || 0);
55531
+ return bytes2 > 0 ? bytes2 : 0;
55532
+ }
55533
+ if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") {
55534
+ return Buffer.byteLength(body, "utf8");
55535
+ }
55536
+ let bytes = 0;
55537
+ for (let i = 0, len = body.length; i < len; i++) {
55538
+ const c = body.charCodeAt(i);
55539
+ if (c < 128) {
55540
+ bytes += 1;
55541
+ } else if (c < 2048) {
55542
+ bytes += 2;
55543
+ } else if (c >= 55296 && c <= 56319 && i + 1 < len) {
55544
+ const next = body.charCodeAt(i + 1);
55545
+ if (next >= 56320 && next <= 57343) {
55546
+ bytes += 4;
55547
+ i++;
55548
+ } else {
55549
+ bytes += 3;
55550
+ }
55551
+ } else {
55552
+ bytes += 3;
55553
+ }
55451
55554
  }
55452
- return Buffer.byteLength(body, "utf8");
55555
+ return bytes;
55453
55556
  }
55454
55557
 
55455
55558
  // ../../../node_modules/axios/lib/adapters/http.js
@@ -55464,11 +55567,33 @@ var brotliOptions = {
55464
55567
  var isBrotliSupported = utils_default.isFunction(import_zlib2.default.createBrotliDecompress);
55465
55568
  var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;
55466
55569
  var isHttps = /https:?/;
55570
+ var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
55571
+ function setFormDataHeaders(headers, formHeaders, policy) {
55572
+ if (policy !== "content-only") {
55573
+ headers.set(formHeaders);
55574
+ return;
55575
+ }
55576
+ Object.entries(formHeaders).forEach(([key, val]) => {
55577
+ if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
55578
+ headers.set(key, val);
55579
+ }
55580
+ });
55581
+ }
55467
55582
  var kAxiosSocketListener = /* @__PURE__ */ Symbol("axios.http.socketListener");
55468
55583
  var kAxiosCurrentReq = /* @__PURE__ */ Symbol("axios.http.currentReq");
55469
55584
  var supportedProtocols = platform_default.protocols.map((protocol) => {
55470
55585
  return protocol + ":";
55471
55586
  });
55587
+ var decodeURIComponentSafe = (value) => {
55588
+ if (!utils_default.isString(value)) {
55589
+ return value;
55590
+ }
55591
+ try {
55592
+ return decodeURIComponent(value);
55593
+ } catch (error) {
55594
+ return value;
55595
+ }
55596
+ };
55472
55597
  var flushOnFinish = (stream5, [throttled, flush]) => {
55473
55598
  stream5.on("end", flush).on("error", flush);
55474
55599
  return throttled;
@@ -55546,15 +55671,15 @@ var Http2Sessions = class {
55546
55671
  }
55547
55672
  };
55548
55673
  var http2Sessions = new Http2Sessions();
55549
- function dispatchBeforeRedirect(options, responseDetails) {
55674
+ function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
55550
55675
  if (options.beforeRedirects.proxy) {
55551
55676
  options.beforeRedirects.proxy(options);
55552
55677
  }
55553
55678
  if (options.beforeRedirects.config) {
55554
- options.beforeRedirects.config(options, responseDetails);
55679
+ options.beforeRedirects.config(options, responseDetails, requestDetails);
55555
55680
  }
55556
55681
  }
55557
- function setProxy(options, configProxy, location) {
55682
+ function setProxy(options, configProxy, location, isRedirect) {
55558
55683
  let proxy = configProxy;
55559
55684
  if (!proxy && proxy !== false) {
55560
55685
  const proxyUrl = getProxyForUrl(location);
@@ -55564,32 +55689,57 @@ function setProxy(options, configProxy, location) {
55564
55689
  }
55565
55690
  }
55566
55691
  }
55567
- if (proxy) {
55568
- if (proxy.username) {
55569
- proxy.auth = (proxy.username || "") + ":" + (proxy.password || "");
55692
+ if (isRedirect && options.headers) {
55693
+ for (const name of Object.keys(options.headers)) {
55694
+ if (name.toLowerCase() === "proxy-authorization") {
55695
+ delete options.headers[name];
55696
+ }
55570
55697
  }
55571
- if (proxy.auth) {
55572
- const validProxyAuth = Boolean(proxy.auth.username || proxy.auth.password);
55698
+ }
55699
+ if (proxy) {
55700
+ const isProxyURL = proxy instanceof URL;
55701
+ const readProxyField = (key) => isProxyURL || utils_default.hasOwnProp(proxy, key) ? proxy[key] : void 0;
55702
+ const proxyUsername = readProxyField("username");
55703
+ const proxyPassword = readProxyField("password");
55704
+ let proxyAuth = utils_default.hasOwnProp(proxy, "auth") ? proxy.auth : void 0;
55705
+ if (proxyUsername) {
55706
+ proxyAuth = (proxyUsername || "") + ":" + (proxyPassword || "");
55707
+ }
55708
+ if (proxyAuth) {
55709
+ const authIsObject = typeof proxyAuth === "object";
55710
+ const authUsername = authIsObject && utils_default.hasOwnProp(proxyAuth, "username") ? proxyAuth.username : void 0;
55711
+ const authPassword = authIsObject && utils_default.hasOwnProp(proxyAuth, "password") ? proxyAuth.password : void 0;
55712
+ const validProxyAuth = Boolean(authUsername || authPassword);
55573
55713
  if (validProxyAuth) {
55574
- proxy.auth = (proxy.auth.username || "") + ":" + (proxy.auth.password || "");
55575
- } else if (typeof proxy.auth === "object") {
55714
+ proxyAuth = (authUsername || "") + ":" + (authPassword || "");
55715
+ } else if (authIsObject) {
55576
55716
  throw new AxiosError_default("Invalid proxy authorization", AxiosError_default.ERR_BAD_OPTION, { proxy });
55577
55717
  }
55578
- const base64 = Buffer.from(proxy.auth, "utf8").toString("base64");
55718
+ const base64 = Buffer.from(proxyAuth, "utf8").toString("base64");
55579
55719
  options.headers["Proxy-Authorization"] = "Basic " + base64;
55580
55720
  }
55581
- options.headers.host = options.hostname + (options.port ? ":" + options.port : "");
55582
- const proxyHost = proxy.hostname || proxy.host;
55721
+ let hasUserHostHeader = false;
55722
+ for (const name of Object.keys(options.headers)) {
55723
+ if (name.toLowerCase() === "host") {
55724
+ hasUserHostHeader = true;
55725
+ break;
55726
+ }
55727
+ }
55728
+ if (!hasUserHostHeader) {
55729
+ options.headers.host = options.hostname + (options.port ? ":" + options.port : "");
55730
+ }
55731
+ const proxyHost = readProxyField("hostname") || readProxyField("host");
55583
55732
  options.hostname = proxyHost;
55584
55733
  options.host = proxyHost;
55585
- options.port = proxy.port;
55734
+ options.port = readProxyField("port");
55586
55735
  options.path = location;
55587
- if (proxy.protocol) {
55588
- options.protocol = proxy.protocol.includes(":") ? proxy.protocol : `${proxy.protocol}:`;
55736
+ const proxyProtocol = readProxyField("protocol");
55737
+ if (proxyProtocol) {
55738
+ options.protocol = proxyProtocol.includes(":") ? proxyProtocol : `${proxyProtocol}:`;
55589
55739
  }
55590
55740
  }
55591
55741
  options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
55592
- setProxy(redirectOptions, configProxy, redirectOptions.href);
55742
+ setProxy(redirectOptions, configProxy, redirectOptions.href, true);
55593
55743
  };
55594
55744
  }
55595
55745
  var isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
@@ -55665,6 +55815,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
55665
55815
  let isDone;
55666
55816
  let rejected = false;
55667
55817
  let req;
55818
+ let connectPhaseTimer;
55668
55819
  httpVersion = +httpVersion;
55669
55820
  if (Number.isNaN(httpVersion)) {
55670
55821
  throw TypeError(`Invalid protocol version: '${config.httpVersion}' is not a number`);
@@ -55696,8 +55847,28 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
55696
55847
  console.warn("emit error", err);
55697
55848
  }
55698
55849
  }
55850
+ function clearConnectPhaseTimer() {
55851
+ if (connectPhaseTimer) {
55852
+ clearTimeout(connectPhaseTimer);
55853
+ connectPhaseTimer = null;
55854
+ }
55855
+ }
55856
+ function createTimeoutError() {
55857
+ let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
55858
+ const transitional2 = config.transitional || transitional_default;
55859
+ if (config.timeoutErrorMessage) {
55860
+ timeoutErrorMessage = config.timeoutErrorMessage;
55861
+ }
55862
+ return new AxiosError_default(
55863
+ timeoutErrorMessage,
55864
+ transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
55865
+ config,
55866
+ req
55867
+ );
55868
+ }
55699
55869
  abortEmitter.once("abort", reject);
55700
55870
  const onFinished = () => {
55871
+ clearConnectPhaseTimer();
55701
55872
  if (config.cancelToken) {
55702
55873
  config.cancelToken.unsubscribe(abort);
55703
55874
  }
@@ -55714,6 +55885,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
55714
55885
  }
55715
55886
  onDone((response, isRejected) => {
55716
55887
  isDone = true;
55888
+ clearConnectPhaseTimer();
55717
55889
  if (isRejected) {
55718
55890
  rejected = true;
55719
55891
  onFinished();
@@ -55802,7 +55974,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
55802
55974
  }
55803
55975
  );
55804
55976
  } else if (utils_default.isFormData(data) && utils_default.isFunction(data.getHeaders) && data.getHeaders !== Object.prototype.getHeaders) {
55805
- headers.set(data.getHeaders());
55977
+ setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
55806
55978
  if (!headers.hasContentLength()) {
55807
55979
  try {
55808
55980
  const knownLength = await import_util2.default.promisify(data.getLength).call(data);
@@ -55879,8 +56051,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
55879
56051
  auth = username + ":" + password;
55880
56052
  }
55881
56053
  if (!auth && parsed.username) {
55882
- const urlUsername = parsed.username;
55883
- const urlPassword = parsed.password;
56054
+ const urlUsername = decodeURIComponentSafe(parsed.username);
56055
+ const urlPassword = decodeURIComponentSafe(parsed.password);
55884
56056
  auth = urlUsername + ":" + urlPassword;
55885
56057
  }
55886
56058
  auth && headers.delete("authorization");
@@ -55918,11 +56090,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
55918
56090
  !utils_default.isUndefined(lookup) && (options.lookup = lookup);
55919
56091
  if (config.socketPath) {
55920
56092
  if (typeof config.socketPath !== "string") {
55921
- return reject(new AxiosError_default(
55922
- "socketPath must be a string",
55923
- AxiosError_default.ERR_BAD_OPTION_VALUE,
55924
- config
55925
- ));
56093
+ return reject(
56094
+ new AxiosError_default("socketPath must be a string", AxiosError_default.ERR_BAD_OPTION_VALUE, config)
56095
+ );
55926
56096
  }
55927
56097
  if (config.allowedSocketPaths != null) {
55928
56098
  const allowed = Array.isArray(config.allowedSocketPaths) ? config.allowedSocketPaths : [config.allowedSocketPaths];
@@ -55931,11 +56101,13 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
55931
56101
  (entry) => typeof entry === "string" && (0, import_path4.resolve)(entry) === resolvedSocket
55932
56102
  );
55933
56103
  if (!isAllowed) {
55934
- return reject(new AxiosError_default(
55935
- `socketPath "${config.socketPath}" is not permitted by allowedSocketPaths`,
55936
- AxiosError_default.ERR_BAD_OPTION_VALUE,
55937
- config
55938
- ));
56104
+ return reject(
56105
+ new AxiosError_default(
56106
+ `socketPath "${config.socketPath}" is not permitted by allowedSocketPaths`,
56107
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
56108
+ config
56109
+ )
56110
+ );
55939
56111
  }
55940
56112
  }
55941
56113
  options.socketPath = config.socketPath;
@@ -55949,6 +56121,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
55949
56121
  );
55950
56122
  }
55951
56123
  let transport;
56124
+ let isNativeTransport = false;
55952
56125
  const isHttpsRequest = isHttps.test(options.protocol);
55953
56126
  options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
55954
56127
  if (isHttp2) {
@@ -55959,6 +56132,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
55959
56132
  transport = configTransport;
55960
56133
  } else if (config.maxRedirects === 0) {
55961
56134
  transport = isHttpsRequest ? import_https.default : import_http.default;
56135
+ isNativeTransport = true;
55962
56136
  } else {
55963
56137
  if (config.maxRedirects) {
55964
56138
  options.maxRedirects = config.maxRedirects;
@@ -55977,6 +56151,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
55977
56151
  }
55978
56152
  options.insecureHTTPParser = Boolean(own2("insecureHTTPParser"));
55979
56153
  req = transport.request(options, function handleResponse(res) {
56154
+ clearConnectPhaseTimer();
55980
56155
  if (req.destroyed) return;
55981
56156
  const streams = [res];
55982
56157
  const responseLength = utils_default.toFiniteNumber(res.headers["content-length"]);
@@ -56083,14 +56258,15 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
56083
56258
  "stream has been aborted",
56084
56259
  AxiosError_default.ERR_BAD_RESPONSE,
56085
56260
  config,
56086
- lastRequest
56261
+ lastRequest,
56262
+ response
56087
56263
  );
56088
56264
  responseStream.destroy(err);
56089
56265
  reject(err);
56090
56266
  });
56091
56267
  responseStream.on("error", function handleStreamError(err) {
56092
- if (req.destroyed) return;
56093
- reject(AxiosError_default.from(err, null, config, lastRequest));
56268
+ if (rejected) return;
56269
+ reject(AxiosError_default.from(err, null, config, lastRequest, response));
56094
56270
  });
56095
56271
  responseStream.on("end", function handleStreamEnd() {
56096
56272
  try {
@@ -56125,6 +56301,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
56125
56301
  req.on("error", function handleRequestError(err) {
56126
56302
  reject(AxiosError_default.from(err, null, config, req));
56127
56303
  });
56304
+ const boundSockets = /* @__PURE__ */ new Set();
56128
56305
  req.on("socket", function handleRequestSocket(socket) {
56129
56306
  socket.setKeepAlive(true, 1e3 * 60);
56130
56307
  if (!socket[kAxiosSocketListener]) {
@@ -56137,11 +56314,16 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
56137
56314
  socket[kAxiosSocketListener] = true;
56138
56315
  }
56139
56316
  socket[kAxiosCurrentReq] = req;
56140
- req.once("close", function clearCurrentReq() {
56317
+ boundSockets.add(socket);
56318
+ });
56319
+ req.once("close", function clearCurrentReq() {
56320
+ clearConnectPhaseTimer();
56321
+ for (const socket of boundSockets) {
56141
56322
  if (socket[kAxiosCurrentReq] === req) {
56142
56323
  socket[kAxiosCurrentReq] = null;
56143
56324
  }
56144
- });
56325
+ }
56326
+ boundSockets.clear();
56145
56327
  });
56146
56328
  if (config.timeout) {
56147
56329
  const timeout2 = parseInt(config.timeout, 10);
@@ -56156,22 +56338,14 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
56156
56338
  );
56157
56339
  return;
56158
56340
  }
56159
- req.setTimeout(timeout2, function handleRequestTimeout() {
56341
+ const handleTimeout = function handleTimeout2() {
56160
56342
  if (isDone) return;
56161
- let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
56162
- const transitional2 = config.transitional || transitional_default;
56163
- if (config.timeoutErrorMessage) {
56164
- timeoutErrorMessage = config.timeoutErrorMessage;
56165
- }
56166
- abort(
56167
- new AxiosError_default(
56168
- timeoutErrorMessage,
56169
- transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
56170
- config,
56171
- req
56172
- )
56173
- );
56174
- });
56343
+ abort(createTimeoutError());
56344
+ };
56345
+ if (isNativeTransport && timeout2 > 0) {
56346
+ connectPhaseTimer = setTimeout(handleTimeout, timeout2);
56347
+ }
56348
+ req.setTimeout(timeout2, handleTimeout);
56175
56349
  } else {
56176
56350
  req.setTimeout(0);
56177
56351
  }
@@ -56263,8 +56437,15 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
56263
56437
  },
56264
56438
  read(name) {
56265
56439
  if (typeof document === "undefined") return null;
56266
- const match2 = document.cookie.match(new RegExp("(?:^|; )" + name + "=([^;]*)"));
56267
- return match2 ? decodeURIComponent(match2[1]) : null;
56440
+ const cookies = document.cookie.split(";");
56441
+ for (let i = 0; i < cookies.length; i++) {
56442
+ const cookie = cookies[i].replace(/^\s+/, "");
56443
+ const eq = cookie.indexOf("=");
56444
+ if (eq !== -1 && cookie.slice(0, eq) === name) {
56445
+ return decodeURIComponent(cookie.slice(eq + 1));
56446
+ }
56447
+ }
56448
+ return null;
56268
56449
  },
56269
56450
  remove(name) {
56270
56451
  this.write(name, "", Date.now() - 864e5, "/");
@@ -56289,6 +56470,9 @@ function mergeConfig(config1, config2) {
56289
56470
  config2 = config2 || {};
56290
56471
  const config = /* @__PURE__ */ Object.create(null);
56291
56472
  Object.defineProperty(config, "hasOwnProperty", {
56473
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
56474
+ // this data descriptor into an accessor descriptor on the way in.
56475
+ __proto__: null,
56292
56476
  value: Object.prototype.hasOwnProperty,
56293
56477
  enumerable: false,
56294
56478
  writable: true,
@@ -56374,6 +56558,22 @@ function mergeConfig(config1, config2) {
56374
56558
  }
56375
56559
 
56376
56560
  // ../../../node_modules/axios/lib/helpers/resolveConfig.js
56561
+ var FORM_DATA_CONTENT_HEADERS2 = ["content-type", "content-length"];
56562
+ function setFormDataHeaders2(headers, formHeaders, policy) {
56563
+ if (policy !== "content-only") {
56564
+ headers.set(formHeaders);
56565
+ return;
56566
+ }
56567
+ Object.entries(formHeaders).forEach(([key, val]) => {
56568
+ if (FORM_DATA_CONTENT_HEADERS2.includes(key.toLowerCase())) {
56569
+ headers.set(key, val);
56570
+ }
56571
+ });
56572
+ }
56573
+ var encodeUTF8 = (str) => encodeURIComponent(str).replace(
56574
+ /%([0-9A-F]{2})/gi,
56575
+ (_3, hex) => String.fromCharCode(parseInt(hex, 16))
56576
+ );
56377
56577
  var resolveConfig_default = (config) => {
56378
56578
  const newConfig = mergeConfig({}, config);
56379
56579
  const own2 = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
@@ -56395,22 +56595,14 @@ var resolveConfig_default = (config) => {
56395
56595
  if (auth) {
56396
56596
  headers.set(
56397
56597
  "Authorization",
56398
- "Basic " + btoa(
56399
- (auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : "")
56400
- )
56598
+ "Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8(auth.password) : ""))
56401
56599
  );
56402
56600
  }
56403
56601
  if (utils_default.isFormData(data)) {
56404
56602
  if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
56405
56603
  headers.setContentType(void 0);
56406
56604
  } else if (utils_default.isFunction(data.getHeaders)) {
56407
- const formHeaders = data.getHeaders();
56408
- const allowedHeaders = ["content-type", "content-length"];
56409
- Object.entries(formHeaders).forEach(([key, val]) => {
56410
- if (allowedHeaders.includes(key.toLowerCase())) {
56411
- headers.set(key, val);
56412
- }
56413
- });
56605
+ setFormDataHeaders2(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
56414
56606
  }
56415
56607
  }
56416
56608
  if (platform_default.hasStandardBrowserEnv) {
@@ -56484,7 +56676,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
56484
56676
  if (!request || request.readyState !== 4) {
56485
56677
  return;
56486
56678
  }
56487
- if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf("file:") === 0)) {
56679
+ if (request.status === 0 && !(request.responseURL && request.responseURL.startsWith("file:"))) {
56488
56680
  return;
56489
56681
  }
56490
56682
  setTimeout(onloadend);
@@ -56495,6 +56687,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
56495
56687
  return;
56496
56688
  }
56497
56689
  reject(new AxiosError_default("Request aborted", AxiosError_default.ECONNABORTED, config, request));
56690
+ done();
56498
56691
  request = null;
56499
56692
  };
56500
56693
  request.onerror = function handleError(event) {
@@ -56502,6 +56695,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
56502
56695
  const err = new AxiosError_default(msg, AxiosError_default.ERR_NETWORK, config, request);
56503
56696
  err.event = event || null;
56504
56697
  reject(err);
56698
+ done();
56505
56699
  request = null;
56506
56700
  };
56507
56701
  request.ontimeout = function handleTimeout() {
@@ -56518,6 +56712,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
56518
56712
  request
56519
56713
  )
56520
56714
  );
56715
+ done();
56521
56716
  request = null;
56522
56717
  };
56523
56718
  requestData === void 0 && requestHeaders.setContentType(null);
@@ -56548,6 +56743,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
56548
56743
  }
56549
56744
  reject(!cancel || cancel.type ? new CanceledError_default(null, config, request) : cancel);
56550
56745
  request.abort();
56746
+ done();
56551
56747
  request = null;
56552
56748
  };
56553
56749
  _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
@@ -56556,7 +56752,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
56556
56752
  }
56557
56753
  }
56558
56754
  const protocol = parseProtocol(_config.url);
56559
- if (protocol && platform_default.protocols.indexOf(protocol) === -1) {
56755
+ if (protocol && !platform_default.protocols.includes(protocol)) {
56560
56756
  reject(
56561
56757
  new AxiosError_default(
56562
56758
  "Unsupported protocol " + protocol + ":",
@@ -56691,11 +56887,6 @@ var trackStream = (stream5, chunkSize, onProgress, onFinish) => {
56691
56887
  // ../../../node_modules/axios/lib/adapters/fetch.js
56692
56888
  var DEFAULT_CHUNK_SIZE = 64 * 1024;
56693
56889
  var { isFunction: isFunction2 } = utils_default;
56694
- var globalFetchAPI = (({ Request, Response }) => ({
56695
- Request,
56696
- Response
56697
- }))(utils_default.global);
56698
- var { ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = utils_default.global;
56699
56890
  var test = (fn2, ...args) => {
56700
56891
  try {
56701
56892
  return !!fn2(...args);
@@ -56704,11 +56895,16 @@ var test = (fn2, ...args) => {
56704
56895
  }
56705
56896
  };
56706
56897
  var factory = (env4) => {
56898
+ const globalObject = utils_default.global ?? globalThis;
56899
+ const { ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = globalObject;
56707
56900
  env4 = utils_default.merge.call(
56708
56901
  {
56709
56902
  skipUndefined: true
56710
56903
  },
56711
- globalFetchAPI,
56904
+ {
56905
+ Request: globalObject.Request,
56906
+ Response: globalObject.Response
56907
+ },
56712
56908
  env4
56713
56909
  );
56714
56910
  const { fetch: envFetch, Request, Response } = env4;
@@ -56796,8 +56992,12 @@ var factory = (env4) => {
56796
56992
  responseType,
56797
56993
  headers,
56798
56994
  withCredentials = "same-origin",
56799
- fetchOptions
56995
+ fetchOptions,
56996
+ maxContentLength,
56997
+ maxBodyLength
56800
56998
  } = resolveConfig_default(config);
56999
+ const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
57000
+ const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
56801
57001
  let _fetch = envFetch || fetch;
56802
57002
  responseType = responseType ? (responseType + "").toLowerCase() : "text";
56803
57003
  let composedSignal = composeSignals_default(
@@ -56810,6 +57010,28 @@ var factory = (env4) => {
56810
57010
  });
56811
57011
  let requestContentLength;
56812
57012
  try {
57013
+ if (hasMaxContentLength && typeof url2 === "string" && url2.startsWith("data:")) {
57014
+ const estimated = estimateDataURLDecodedBytes(url2);
57015
+ if (estimated > maxContentLength) {
57016
+ throw new AxiosError_default(
57017
+ "maxContentLength size of " + maxContentLength + " exceeded",
57018
+ AxiosError_default.ERR_BAD_RESPONSE,
57019
+ config,
57020
+ request
57021
+ );
57022
+ }
57023
+ }
57024
+ if (hasMaxBodyLength && method !== "get" && method !== "head") {
57025
+ const outboundLength = await resolveBodyLength(headers, data);
57026
+ if (typeof outboundLength === "number" && isFinite(outboundLength) && outboundLength > maxBodyLength) {
57027
+ throw new AxiosError_default(
57028
+ "Request body larger than maxBodyLength limit",
57029
+ AxiosError_default.ERR_BAD_REQUEST,
57030
+ config,
57031
+ request
57032
+ );
57033
+ }
57034
+ }
56813
57035
  if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
56814
57036
  let _request = new Request(url2, {
56815
57037
  method: "POST",
@@ -56838,6 +57060,7 @@ var factory = (env4) => {
56838
57060
  headers.delete("content-type");
56839
57061
  }
56840
57062
  }
57063
+ headers.set("User-Agent", "axios/" + VERSION, false);
56841
57064
  const resolvedOptions = {
56842
57065
  ...fetchOptions,
56843
57066
  signal: composedSignal,
@@ -56849,8 +57072,19 @@ var factory = (env4) => {
56849
57072
  };
56850
57073
  request = isRequestSupported && new Request(url2, resolvedOptions);
56851
57074
  let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url2, resolvedOptions));
57075
+ if (hasMaxContentLength) {
57076
+ const declaredLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
57077
+ if (declaredLength != null && declaredLength > maxContentLength) {
57078
+ throw new AxiosError_default(
57079
+ "maxContentLength size of " + maxContentLength + " exceeded",
57080
+ AxiosError_default.ERR_BAD_RESPONSE,
57081
+ config,
57082
+ request
57083
+ );
57084
+ }
57085
+ }
56852
57086
  const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
56853
- if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
57087
+ if (supportsResponseStream && response.body && (onDownloadProgress || hasMaxContentLength || isStreamResponse && unsubscribe)) {
56854
57088
  const options = {};
56855
57089
  ["status", "statusText", "headers"].forEach((prop) => {
56856
57090
  options[prop] = response[prop];
@@ -56860,8 +57094,23 @@ var factory = (env4) => {
56860
57094
  responseContentLength,
56861
57095
  progressEventReducer(asyncDecorator(onDownloadProgress), true)
56862
57096
  ) || [];
57097
+ let bytesRead = 0;
57098
+ const onChunkProgress = (loadedBytes) => {
57099
+ if (hasMaxContentLength) {
57100
+ bytesRead = loadedBytes;
57101
+ if (bytesRead > maxContentLength) {
57102
+ throw new AxiosError_default(
57103
+ "maxContentLength size of " + maxContentLength + " exceeded",
57104
+ AxiosError_default.ERR_BAD_RESPONSE,
57105
+ config,
57106
+ request
57107
+ );
57108
+ }
57109
+ }
57110
+ onProgress && onProgress(loadedBytes);
57111
+ };
56863
57112
  response = new Response(
56864
- trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
57113
+ trackStream(response.body, DEFAULT_CHUNK_SIZE, onChunkProgress, () => {
56865
57114
  flush && flush();
56866
57115
  unsubscribe && unsubscribe();
56867
57116
  }),
@@ -56873,6 +57122,26 @@ var factory = (env4) => {
56873
57122
  response,
56874
57123
  config
56875
57124
  );
57125
+ if (hasMaxContentLength && !supportsResponseStream && !isStreamResponse) {
57126
+ let materializedSize;
57127
+ if (responseData != null) {
57128
+ if (typeof responseData.byteLength === "number") {
57129
+ materializedSize = responseData.byteLength;
57130
+ } else if (typeof responseData.size === "number") {
57131
+ materializedSize = responseData.size;
57132
+ } else if (typeof responseData === "string") {
57133
+ materializedSize = typeof TextEncoder2 === "function" ? new TextEncoder2().encode(responseData).byteLength : responseData.length;
57134
+ }
57135
+ }
57136
+ if (typeof materializedSize === "number" && materializedSize > maxContentLength) {
57137
+ throw new AxiosError_default(
57138
+ "maxContentLength size of " + maxContentLength + " exceeded",
57139
+ AxiosError_default.ERR_BAD_RESPONSE,
57140
+ config,
57141
+ request
57142
+ );
57143
+ }
57144
+ }
56876
57145
  !isStreamResponse && unsubscribe && unsubscribe();
56877
57146
  return await new Promise((resolve6, reject) => {
56878
57147
  settle(resolve6, reject, {
@@ -56886,6 +57155,13 @@ var factory = (env4) => {
56886
57155
  });
56887
57156
  } catch (err) {
56888
57157
  unsubscribe && unsubscribe();
57158
+ if (composedSignal && composedSignal.aborted && composedSignal.reason instanceof AxiosError_default) {
57159
+ const canceledError = composedSignal.reason;
57160
+ canceledError.config = config;
57161
+ request && (canceledError.request = request);
57162
+ err !== canceledError && (canceledError.cause = err);
57163
+ throw canceledError;
57164
+ }
56889
57165
  if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
56890
57166
  throw Object.assign(
56891
57167
  new AxiosError_default(
@@ -56931,10 +57207,10 @@ var knownAdapters = {
56931
57207
  utils_default.forEach(knownAdapters, (fn2, value) => {
56932
57208
  if (fn2) {
56933
57209
  try {
56934
- Object.defineProperty(fn2, "name", { value });
57210
+ Object.defineProperty(fn2, "name", { __proto__: null, value });
56935
57211
  } catch (e) {
56936
57212
  }
56937
- Object.defineProperty(fn2, "adapterName", { value });
57213
+ Object.defineProperty(fn2, "adapterName", { __proto__: null, value });
56938
57214
  }
56939
57215
  });
56940
57216
  var renderReason = (reason) => `- ${reason}`;
@@ -57005,7 +57281,12 @@ function dispatchRequest(config) {
57005
57281
  return adapter2(config).then(
57006
57282
  function onAdapterResolution(response) {
57007
57283
  throwIfCancellationRequested(config);
57008
- response.data = transformData.call(config, config.transformResponse, response);
57284
+ config.response = response;
57285
+ try {
57286
+ response.data = transformData.call(config, config.transformResponse, response);
57287
+ } finally {
57288
+ delete config.response;
57289
+ }
57009
57290
  response.headers = AxiosHeaders_default.from(response.headers);
57010
57291
  return response;
57011
57292
  },
@@ -57013,11 +57294,16 @@ function dispatchRequest(config) {
57013
57294
  if (!isCancel(reason)) {
57014
57295
  throwIfCancellationRequested(config);
57015
57296
  if (reason && reason.response) {
57016
- reason.response.data = transformData.call(
57017
- config,
57018
- config.transformResponse,
57019
- reason.response
57020
- );
57297
+ config.response = reason.response;
57298
+ try {
57299
+ reason.response.data = transformData.call(
57300
+ config,
57301
+ config.transformResponse,
57302
+ reason.response
57303
+ );
57304
+ } finally {
57305
+ delete config.response;
57306
+ }
57021
57307
  reason.response.headers = AxiosHeaders_default.from(reason.response.headers);
57022
57308
  }
57023
57309
  }
@@ -57195,7 +57481,7 @@ var Axios = class {
57195
57481
  );
57196
57482
  config.method = (config.method || this.defaults.method || "get").toLowerCase();
57197
57483
  let contextHeaders = headers && utils_default.merge(headers.common, headers[config.method]);
57198
- headers && utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (method) => {
57484
+ headers && utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query", "common"], (method) => {
57199
57485
  delete headers[method];
57200
57486
  });
57201
57487
  config.headers = AxiosHeaders_default.concat(contextHeaders, headers);
@@ -57273,7 +57559,7 @@ utils_default.forEach(["delete", "get", "head", "options"], function forEachMeth
57273
57559
  );
57274
57560
  };
57275
57561
  });
57276
- utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
57562
+ utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodWithData(method) {
57277
57563
  function generateHTTPMethod(isForm) {
57278
57564
  return function httpMethod(url2, data, config) {
57279
57565
  return this.request(
@@ -57289,7 +57575,9 @@ utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(m
57289
57575
  };
57290
57576
  }
57291
57577
  Axios.prototype[method] = generateHTTPMethod();
57292
- Axios.prototype[method + "Form"] = generateHTTPMethod(true);
57578
+ if (method !== "query") {
57579
+ Axios.prototype[method + "Form"] = generateHTTPMethod(true);
57580
+ }
57293
57581
  });
57294
57582
  var Axios_default = Axios;
57295
57583
 
@@ -57486,7 +57774,7 @@ function createInstance(defaultConfig) {
57486
57774
  const instance = bind(Axios_default.prototype.request, context);
57487
57775
  utils_default.extend(instance, Axios_default.prototype, context, { allOwnKeys: true });
57488
57776
  utils_default.extend(instance, context, null, { allOwnKeys: true });
57489
- instance.create = function create(instanceConfig) {
57777
+ instance.create = function create2(instanceConfig) {
57490
57778
  return createInstance(mergeConfig(defaultConfig, instanceConfig));
57491
57779
  };
57492
57780
  return instance;
@@ -57530,7 +57818,8 @@ var {
57530
57818
  HttpStatusCode: HttpStatusCode2,
57531
57819
  formToJSON,
57532
57820
  getAdapter: getAdapter2,
57533
- mergeConfig: mergeConfig2
57821
+ mergeConfig: mergeConfig2,
57822
+ create
57534
57823
  } = axios_default;
57535
57824
 
57536
57825
  // ../../../node_modules/@inquirer/core/dist/esm/lib/key.js
@@ -62984,7 +63273,7 @@ var parseClass = (glob3, position) => {
62984
63273
  };
62985
63274
 
62986
63275
  // ../../../node_modules/rimraf/node_modules/minimatch/dist/esm/unescape.js
62987
- var unescape2 = (s3, { windowsPathsNoEscape = false, magicalBraces = true } = {}) => {
63276
+ var unescape = (s3, { windowsPathsNoEscape = false, magicalBraces = true } = {}) => {
62988
63277
  if (magicalBraces) {
62989
63278
  return windowsPathsNoEscape ? s3.replace(/\[([^\/\\])\]/g, "$1") : s3.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
62990
63279
  }
@@ -63373,7 +63662,7 @@ var AST = class _AST {
63373
63662
  const final2 = start2 + src + end;
63374
63663
  return [
63375
63664
  final2,
63376
- unescape2(src),
63665
+ unescape(src),
63377
63666
  this.#hasMagic = !!this.#hasMagic,
63378
63667
  this.#uflag
63379
63668
  ];
@@ -63386,7 +63675,7 @@ var AST = class _AST {
63386
63675
  this.#parts = [s3];
63387
63676
  this.type = null;
63388
63677
  this.#hasMagic = void 0;
63389
- return [s3, unescape2(this.toString()), false, false];
63678
+ return [s3, unescape(this.toString()), false, false];
63390
63679
  }
63391
63680
  let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot ? "" : this.#partsToRegExp(true);
63392
63681
  if (bodyDotAllowed === body) {
@@ -63407,7 +63696,7 @@ var AST = class _AST {
63407
63696
  }
63408
63697
  return [
63409
63698
  final,
63410
- unescape2(body),
63699
+ unescape(body),
63411
63700
  this.#hasMagic = !!this.#hasMagic,
63412
63701
  this.#uflag
63413
63702
  ];
@@ -63463,7 +63752,7 @@ var AST = class _AST {
63463
63752
  }
63464
63753
  re2 += regExpEscape(c);
63465
63754
  }
63466
- return [re2, unescape2(glob3), !!hasMagic2, uflag];
63755
+ return [re2, unescape(glob3), !!hasMagic2, uflag];
63467
63756
  }
63468
63757
  };
63469
63758
 
@@ -64202,7 +64491,7 @@ var Minimatch = class {
64202
64491
  minimatch.AST = AST;
64203
64492
  minimatch.Minimatch = Minimatch;
64204
64493
  minimatch.escape = escape;
64205
- minimatch.unescape = unescape2;
64494
+ minimatch.unescape = unescape;
64206
64495
 
64207
64496
  // ../../../node_modules/rimraf/node_modules/glob/dist/esm/glob.js
64208
64497
  var import_node_url2 = require("node:url");
@@ -69276,7 +69565,7 @@ var glob = Object.assign(glob_, {
69276
69565
  Glob,
69277
69566
  hasMagic,
69278
69567
  escape,
69279
- unescape: unescape2
69568
+ unescape
69280
69569
  });
69281
69570
  glob.glob = glob;
69282
69571