@alpic-ai/sdk 0.0.0-dev.gf5cd963 → 0.0.0-dev.gf615872

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 (56) hide show
  1. package/dist/api/auth-scope.js +1 -0
  2. package/dist/api/auth-scope.js.map +1 -1
  3. package/dist/auth/api-key.d.ts +1 -0
  4. package/dist/auth/api-key.js +23 -0
  5. package/dist/auth/api-key.js.map +1 -0
  6. package/dist/auth/index.d.ts +4 -0
  7. package/dist/auth/index.js +13 -1
  8. package/dist/auth/index.js.map +1 -1
  9. package/dist/auth/oauth-client.js +3 -2
  10. package/dist/auth/oauth-client.js.map +1 -1
  11. package/dist/auth/server/assets/authorize.html +1 -1
  12. package/dist/auth/store.js +1 -0
  13. package/dist/auth/store.js.map +1 -1
  14. package/dist/client.d.ts +6 -0
  15. package/dist/client.js +10 -0
  16. package/dist/client.js.map +1 -1
  17. package/dist/deploy/archive.d.ts +8 -0
  18. package/dist/deploy/archive.js +61 -0
  19. package/dist/deploy/archive.js.map +1 -0
  20. package/dist/deploy/deployments.d.ts +45 -0
  21. package/dist/deploy/deployments.js +90 -0
  22. package/dist/deploy/deployments.js.map +1 -0
  23. package/dist/deploy/poll.d.ts +2 -0
  24. package/dist/deploy/poll.js +10 -0
  25. package/dist/deploy/poll.js.map +1 -0
  26. package/dist/deploy/upload.d.ts +1 -0
  27. package/dist/deploy/upload.js +13 -0
  28. package/dist/deploy/upload.js.map +1 -0
  29. package/dist/index.d.ts +7 -1
  30. package/dist/index.js +2 -0
  31. package/dist/index.js.map +1 -1
  32. package/dist/lib/emitter.js +5 -6
  33. package/dist/lib/emitter.js.map +1 -1
  34. package/dist/lib/errors.d.ts +3 -0
  35. package/dist/lib/errors.js +7 -0
  36. package/dist/lib/errors.js.map +1 -0
  37. package/dist/project/config.d.ts +10 -0
  38. package/dist/project/config.js +31 -0
  39. package/dist/project/config.js.map +1 -0
  40. package/dist/project/detect-runtime.d.ts +2 -0
  41. package/dist/project/detect-runtime.js +43 -0
  42. package/dist/project/detect-runtime.js.map +1 -0
  43. package/dist/project/projects.d.ts +21 -0
  44. package/dist/project/projects.js +52 -0
  45. package/dist/project/projects.js.map +1 -0
  46. package/dist/project/python-runtime.d.ts +1 -0
  47. package/dist/project/python-runtime.js +71 -0
  48. package/dist/project/python-runtime.js.map +1 -0
  49. package/dist/tunnel/tunnel.js +9 -19
  50. package/dist/tunnel/tunnel.js.map +1 -1
  51. package/dist/vendor/pipenet.js +1670 -555
  52. package/dist/vendor/pipenet.js.map +4 -4
  53. package/dist/whoami.d.ts +15 -0
  54. package/dist/whoami.js +13 -0
  55. package/dist/whoami.js.map +1 -0
  56. package/package.json +15 -14
@@ -45,7 +45,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
45
45
  var require_delayed_stream = __commonJS({
46
46
  "../../node_modules/.pnpm/delayed-stream@1.0.0/node_modules/delayed-stream/lib/delayed_stream.js"(exports, module) {
47
47
  var Stream = __require("stream").Stream;
48
- var util3 = __require("util");
48
+ var util4 = __require("util");
49
49
  module.exports = DelayedStream;
50
50
  function DelayedStream() {
51
51
  this.source = null;
@@ -56,7 +56,7 @@ var require_delayed_stream = __commonJS({
56
56
  this._released = false;
57
57
  this._bufferedEvents = [];
58
58
  }
59
- util3.inherits(DelayedStream, Stream);
59
+ util4.inherits(DelayedStream, Stream);
60
60
  DelayedStream.create = function(source, options) {
61
61
  var delayedStream = new this();
62
62
  options = options || {};
@@ -135,7 +135,7 @@ var require_delayed_stream = __commonJS({
135
135
  // ../../node_modules/.pnpm/combined-stream@1.0.8/node_modules/combined-stream/lib/combined_stream.js
136
136
  var require_combined_stream = __commonJS({
137
137
  "../../node_modules/.pnpm/combined-stream@1.0.8/node_modules/combined-stream/lib/combined_stream.js"(exports, module) {
138
- var util3 = __require("util");
138
+ var util4 = __require("util");
139
139
  var Stream = __require("stream").Stream;
140
140
  var DelayedStream = require_delayed_stream();
141
141
  module.exports = CombinedStream;
@@ -151,7 +151,7 @@ var require_combined_stream = __commonJS({
151
151
  this._insideLoop = false;
152
152
  this._pendingNext = false;
153
153
  }
154
- util3.inherits(CombinedStream, Stream);
154
+ util4.inherits(CombinedStream, Stream);
155
155
  CombinedStream.create = function(options) {
156
156
  var combinedStream = new this();
157
157
  options = options || {};
@@ -9593,9 +9593,9 @@ var require_get_proto = __commonJS({
9593
9593
  }
9594
9594
  });
9595
9595
 
9596
- // ../../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js
9596
+ // ../../node_modules/.pnpm/hasown@2.0.4/node_modules/hasown/index.js
9597
9597
  var require_hasown = __commonJS({
9598
- "../../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(exports, module) {
9598
+ "../../node_modules/.pnpm/hasown@2.0.4/node_modules/hasown/index.js"(exports, module) {
9599
9599
  "use strict";
9600
9600
  var call = Function.prototype.call;
9601
9601
  var $hasOwn = Object.prototype.hasOwnProperty;
@@ -9978,9 +9978,9 @@ var require_es_set_tostringtag = __commonJS({
9978
9978
  }
9979
9979
  });
9980
9980
 
9981
- // ../../node_modules/.pnpm/form-data@4.0.5/node_modules/form-data/lib/populate.js
9981
+ // ../../node_modules/.pnpm/form-data@4.0.6/node_modules/form-data/lib/populate.js
9982
9982
  var require_populate = __commonJS({
9983
- "../../node_modules/.pnpm/form-data@4.0.5/node_modules/form-data/lib/populate.js"(exports, module) {
9983
+ "../../node_modules/.pnpm/form-data@4.0.6/node_modules/form-data/lib/populate.js"(exports, module) {
9984
9984
  "use strict";
9985
9985
  module.exports = function(dst, src) {
9986
9986
  Object.keys(src).forEach(function(prop) {
@@ -9991,12 +9991,12 @@ var require_populate = __commonJS({
9991
9991
  }
9992
9992
  });
9993
9993
 
9994
- // ../../node_modules/.pnpm/form-data@4.0.5/node_modules/form-data/lib/form_data.js
9994
+ // ../../node_modules/.pnpm/form-data@4.0.6/node_modules/form-data/lib/form_data.js
9995
9995
  var require_form_data = __commonJS({
9996
- "../../node_modules/.pnpm/form-data@4.0.5/node_modules/form-data/lib/form_data.js"(exports, module) {
9996
+ "../../node_modules/.pnpm/form-data@4.0.6/node_modules/form-data/lib/form_data.js"(exports, module) {
9997
9997
  "use strict";
9998
9998
  var CombinedStream = require_combined_stream();
9999
- var util3 = __require("util");
9999
+ var util4 = __require("util");
10000
10000
  var path = __require("path");
10001
10001
  var http3 = __require("http");
10002
10002
  var https2 = __require("https");
@@ -10009,6 +10009,9 @@ var require_form_data = __commonJS({
10009
10009
  var setToStringTag = require_es_set_tostringtag();
10010
10010
  var hasOwn = require_hasown();
10011
10011
  var populate = require_populate();
10012
+ function escapeHeaderParam(str) {
10013
+ return String(str).replace(/\r/g, "%0D").replace(/\n/g, "%0A").replace(/"/g, "%22");
10014
+ }
10012
10015
  function FormData3(options) {
10013
10016
  if (!(this instanceof FormData3)) {
10014
10017
  return new FormData3(options);
@@ -10022,7 +10025,7 @@ var require_form_data = __commonJS({
10022
10025
  this[option] = options[option];
10023
10026
  }
10024
10027
  }
10025
- util3.inherits(FormData3, CombinedStream);
10028
+ util4.inherits(FormData3, CombinedStream);
10026
10029
  FormData3.LINE_BREAK = "\r\n";
10027
10030
  FormData3.DEFAULT_CONTENT_TYPE = "application/octet-stream";
10028
10031
  FormData3.prototype.append = function(field, value, options) {
@@ -10098,7 +10101,7 @@ var require_form_data = __commonJS({
10098
10101
  var contents = "";
10099
10102
  var headers = {
10100
10103
  // add custom disposition as third element or keep it two elements if not
10101
- "Content-Disposition": ["form-data", 'name="' + field + '"'].concat(contentDisposition || []),
10104
+ "Content-Disposition": ["form-data", 'name="' + escapeHeaderParam(field) + '"'].concat(contentDisposition || []),
10102
10105
  // if no content type. allow it to be empty array
10103
10106
  "Content-Type": [].concat(contentType || [])
10104
10107
  };
@@ -10132,7 +10135,7 @@ var require_form_data = __commonJS({
10132
10135
  filename = path.basename(value.client._httpMessage.path || "");
10133
10136
  }
10134
10137
  if (filename) {
10135
- return 'filename="' + filename + '"';
10138
+ return 'filename="' + escapeHeaderParam(filename) + '"';
10136
10139
  }
10137
10140
  };
10138
10141
  FormData3.prototype._getContentType = function(value, options) {
@@ -10426,9 +10429,9 @@ var require_ms = __commonJS({
10426
10429
  }
10427
10430
  });
10428
10431
 
10429
- // ../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js
10432
+ // ../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/common.js
10430
10433
  var require_common = __commonJS({
10431
- "../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js"(exports, module) {
10434
+ "../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/common.js"(exports, module) {
10432
10435
  function setup(env) {
10433
10436
  createDebug.debug = createDebug;
10434
10437
  createDebug.default = createDebug;
@@ -10603,9 +10606,9 @@ var require_common = __commonJS({
10603
10606
  }
10604
10607
  });
10605
10608
 
10606
- // ../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/browser.js
10609
+ // ../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/browser.js
10607
10610
  var require_browser = __commonJS({
10608
- "../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/browser.js"(exports, module) {
10611
+ "../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/browser.js"(exports, module) {
10609
10612
  exports.formatArgs = formatArgs;
10610
10613
  exports.save = save;
10611
10614
  exports.load = load;
@@ -10900,18 +10903,18 @@ var require_supports_color = __commonJS({
10900
10903
  }
10901
10904
  });
10902
10905
 
10903
- // ../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/node.js
10906
+ // ../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/node.js
10904
10907
  var require_node = __commonJS({
10905
- "../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/node.js"(exports, module) {
10908
+ "../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/node.js"(exports, module) {
10906
10909
  var tty = __require("tty");
10907
- var util3 = __require("util");
10910
+ var util4 = __require("util");
10908
10911
  exports.init = init;
10909
10912
  exports.log = log3;
10910
10913
  exports.formatArgs = formatArgs;
10911
10914
  exports.save = save;
10912
10915
  exports.load = load;
10913
10916
  exports.useColors = useColors;
10914
- exports.destroy = util3.deprecate(
10917
+ exports.destroy = util4.deprecate(
10915
10918
  () => {
10916
10919
  },
10917
10920
  "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
@@ -11042,7 +11045,7 @@ var require_node = __commonJS({
11042
11045
  return (/* @__PURE__ */ new Date()).toISOString() + " ";
11043
11046
  }
11044
11047
  function log3(...args) {
11045
- return process.stderr.write(util3.formatWithOptions(exports.inspectOpts, ...args) + "\n");
11048
+ return process.stderr.write(util4.formatWithOptions(exports.inspectOpts, ...args) + "\n");
11046
11049
  }
11047
11050
  function save(namespaces) {
11048
11051
  if (namespaces) {
@@ -11065,18 +11068,18 @@ var require_node = __commonJS({
11065
11068
  var { formatters } = module.exports;
11066
11069
  formatters.o = function(v) {
11067
11070
  this.inspectOpts.colors = this.useColors;
11068
- return util3.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
11071
+ return util4.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
11069
11072
  };
11070
11073
  formatters.O = function(v) {
11071
11074
  this.inspectOpts.colors = this.useColors;
11072
- return util3.inspect(v, this.inspectOpts);
11075
+ return util4.inspect(v, this.inspectOpts);
11073
11076
  };
11074
11077
  }
11075
11078
  });
11076
11079
 
11077
- // ../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.js
11080
+ // ../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/index.js
11078
11081
  var require_src = __commonJS({
11079
- "../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.js"(exports, module) {
11082
+ "../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/index.js"(exports, module) {
11080
11083
  if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
11081
11084
  module.exports = require_browser();
11082
11085
  } else {
@@ -11085,9 +11088,9 @@ var require_src = __commonJS({
11085
11088
  }
11086
11089
  });
11087
11090
 
11088
- // ../../node_modules/.pnpm/agent-base@6.0.2/node_modules/agent-base/dist/src/promisify.js
11091
+ // ../../node_modules/.pnpm/agent-base@6.0.2_supports-color@8.1.1/node_modules/agent-base/dist/src/promisify.js
11089
11092
  var require_promisify = __commonJS({
11090
- "../../node_modules/.pnpm/agent-base@6.0.2/node_modules/agent-base/dist/src/promisify.js"(exports) {
11093
+ "../../node_modules/.pnpm/agent-base@6.0.2_supports-color@8.1.1/node_modules/agent-base/dist/src/promisify.js"(exports) {
11091
11094
  "use strict";
11092
11095
  Object.defineProperty(exports, "__esModule", { value: true });
11093
11096
  function promisify(fn) {
@@ -11107,9 +11110,9 @@ var require_promisify = __commonJS({
11107
11110
  }
11108
11111
  });
11109
11112
 
11110
- // ../../node_modules/.pnpm/agent-base@6.0.2/node_modules/agent-base/dist/src/index.js
11113
+ // ../../node_modules/.pnpm/agent-base@6.0.2_supports-color@8.1.1/node_modules/agent-base/dist/src/index.js
11111
11114
  var require_src2 = __commonJS({
11112
- "../../node_modules/.pnpm/agent-base@6.0.2/node_modules/agent-base/dist/src/index.js"(exports, module) {
11115
+ "../../node_modules/.pnpm/agent-base@6.0.2_supports-color@8.1.1/node_modules/agent-base/dist/src/index.js"(exports, module) {
11113
11116
  "use strict";
11114
11117
  var __importDefault = exports && exports.__importDefault || function(mod) {
11115
11118
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -11290,9 +11293,9 @@ var require_src2 = __commonJS({
11290
11293
  }
11291
11294
  });
11292
11295
 
11293
- // ../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/parse-proxy-response.js
11296
+ // ../../node_modules/.pnpm/https-proxy-agent@5.0.1_supports-color@8.1.1/node_modules/https-proxy-agent/dist/parse-proxy-response.js
11294
11297
  var require_parse_proxy_response = __commonJS({
11295
- "../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/parse-proxy-response.js"(exports) {
11298
+ "../../node_modules/.pnpm/https-proxy-agent@5.0.1_supports-color@8.1.1/node_modules/https-proxy-agent/dist/parse-proxy-response.js"(exports) {
11296
11299
  "use strict";
11297
11300
  var __importDefault = exports && exports.__importDefault || function(mod) {
11298
11301
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -11356,9 +11359,9 @@ var require_parse_proxy_response = __commonJS({
11356
11359
  }
11357
11360
  });
11358
11361
 
11359
- // ../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/agent.js
11362
+ // ../../node_modules/.pnpm/https-proxy-agent@5.0.1_supports-color@8.1.1/node_modules/https-proxy-agent/dist/agent.js
11360
11363
  var require_agent = __commonJS({
11361
- "../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/agent.js"(exports) {
11364
+ "../../node_modules/.pnpm/https-proxy-agent@5.0.1_supports-color@8.1.1/node_modules/https-proxy-agent/dist/agent.js"(exports) {
11362
11365
  "use strict";
11363
11366
  var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
11364
11367
  function adopt(value) {
@@ -11516,9 +11519,9 @@ var require_agent = __commonJS({
11516
11519
  }
11517
11520
  });
11518
11521
 
11519
- // ../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/index.js
11522
+ // ../../node_modules/.pnpm/https-proxy-agent@5.0.1_supports-color@8.1.1/node_modules/https-proxy-agent/dist/index.js
11520
11523
  var require_dist = __commonJS({
11521
- "../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/index.js"(exports, module) {
11524
+ "../../node_modules/.pnpm/https-proxy-agent@5.0.1_supports-color@8.1.1/node_modules/https-proxy-agent/dist/index.js"(exports, module) {
11522
11525
  "use strict";
11523
11526
  var __importDefault = exports && exports.__importDefault || function(mod) {
11524
11527
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -11535,9 +11538,9 @@ var require_dist = __commonJS({
11535
11538
  }
11536
11539
  });
11537
11540
 
11538
- // ../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3/node_modules/follow-redirects/debug.js
11541
+ // ../../node_modules/.pnpm/follow-redirects@1.16.2_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/debug.js
11539
11542
  var require_debug = __commonJS({
11540
- "../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3/node_modules/follow-redirects/debug.js"(exports, module) {
11543
+ "../../node_modules/.pnpm/follow-redirects@1.16.2_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/debug.js"(exports, module) {
11541
11544
  var debug3;
11542
11545
  module.exports = function() {
11543
11546
  if (!debug3) {
@@ -11555,9 +11558,9 @@ var require_debug = __commonJS({
11555
11558
  }
11556
11559
  });
11557
11560
 
11558
- // ../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3/node_modules/follow-redirects/index.js
11561
+ // ../../node_modules/.pnpm/follow-redirects@1.16.2_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/index.js
11559
11562
  var require_follow_redirects = __commonJS({
11560
- "../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3/node_modules/follow-redirects/index.js"(exports, module) {
11563
+ "../../node_modules/.pnpm/follow-redirects@1.16.2_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/index.js"(exports, module) {
11561
11564
  var url2 = __require("url");
11562
11565
  var URL2 = url2.URL;
11563
11566
  var http3 = __require("http");
@@ -11785,8 +11788,14 @@ var require_follow_redirects = __commonJS({
11785
11788
  RedirectableRequest.prototype._sanitizeOptions = function(options) {
11786
11789
  if (!options.headers) {
11787
11790
  options.headers = {};
11791
+ } else if (Array.isArray(options.headers)) {
11792
+ var headerList = options.headers;
11793
+ options.headers = {};
11794
+ for (var i = 0; i < headerList.length; i += 2) {
11795
+ options.headers[headerList[i]] = headerList[i + 1];
11796
+ }
11788
11797
  }
11789
- if (!isArray2(options.sensitiveHeaders)) {
11798
+ if (!Array.isArray(options.sensitiveHeaders)) {
11790
11799
  options.sensitiveHeaders = [];
11791
11800
  }
11792
11801
  if (options.host) {
@@ -12043,9 +12052,6 @@ var require_follow_redirects = __commonJS({
12043
12052
  var dot = subdomain.length - domain.length - 1;
12044
12053
  return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
12045
12054
  }
12046
- function isArray2(value) {
12047
- return value instanceof Array;
12048
- }
12049
12055
  function isString2(value) {
12050
12056
  return typeof value === "string" || value instanceof String;
12051
12057
  }
@@ -12059,24 +12065,101 @@ var require_follow_redirects = __commonJS({
12059
12065
  return URL2 && value instanceof URL2;
12060
12066
  }
12061
12067
  function escapeRegex(regex) {
12062
- return regex.replace(/[\]\\/()*+?.$]/g, "\\$&");
12068
+ return regex.replace(/[[\]\\/()*+?.^$|]/g, "\\$&");
12063
12069
  }
12064
12070
  module.exports = wrap({ http: http3, https: https2 });
12065
12071
  module.exports.wrap = wrap;
12066
12072
  }
12067
12073
  });
12068
12074
 
12069
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/bind.js
12075
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/bind.js
12070
12076
  function bind(fn, thisArg) {
12071
12077
  return function wrap() {
12072
12078
  return fn.apply(thisArg, arguments);
12073
12079
  };
12074
12080
  }
12075
12081
 
12076
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/utils.js
12082
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js
12077
12083
  var { toString } = Object.prototype;
12078
12084
  var { getPrototypeOf } = Object;
12079
12085
  var { iterator, toStringTag } = Symbol;
12086
+ var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
12087
+ var isUnsafeObjectKey = (prop) => typeof prop === "string" && (prop === "__proto__" || prop === "constructor" || prop === "prototype");
12088
+ var isPrototypeBoundary = (obj, prototype2, source) => obj === Object.prototype || !source && prototype2 === null;
12089
+ var isSafeAndFullyMutable = (obj) => {
12090
+ if (!Object.isExtensible(obj)) {
12091
+ return false;
12092
+ }
12093
+ const props = Object.getOwnPropertyNames(obj);
12094
+ if (Object.getOwnPropertySymbols) {
12095
+ props.push(...Object.getOwnPropertySymbols(obj));
12096
+ }
12097
+ return props.every((prop) => {
12098
+ if (isUnsafeObjectKey(prop)) {
12099
+ return false;
12100
+ }
12101
+ const descriptor = Object.getOwnPropertyDescriptor(obj, prop);
12102
+ return !!descriptor && descriptor.configurable && descriptor.writable === true;
12103
+ });
12104
+ };
12105
+ var hasOwnInPrototypeChain = (thing, prop) => {
12106
+ let obj = thing;
12107
+ const seen = [];
12108
+ while (obj != null) {
12109
+ if (seen.indexOf(obj) !== -1) {
12110
+ return false;
12111
+ }
12112
+ seen.push(obj);
12113
+ const prototype2 = getPrototypeOf(obj);
12114
+ if (isPrototypeBoundary(obj, prototype2, obj === thing)) {
12115
+ return false;
12116
+ }
12117
+ if (hasOwnProperty(obj, prop)) {
12118
+ return true;
12119
+ }
12120
+ obj = prototype2;
12121
+ }
12122
+ return false;
12123
+ };
12124
+ var getSafeProp = (obj, prop) => obj != null && hasOwnInPrototypeChain(obj, prop) ? obj[prop] : void 0;
12125
+ var toSafeFlatObject = (thing) => {
12126
+ if (thing == null || typeof thing !== "object" && typeof thing !== "function") {
12127
+ return thing;
12128
+ }
12129
+ const sourcePrototype = getPrototypeOf(thing);
12130
+ if (sourcePrototype === null && isSafeAndFullyMutable(thing)) {
12131
+ return thing;
12132
+ }
12133
+ const result = /* @__PURE__ */ Object.create(null);
12134
+ const merged = /* @__PURE__ */ Object.create(null);
12135
+ const seen = [];
12136
+ let current = thing;
12137
+ while (current != null) {
12138
+ if (seen.indexOf(current) !== -1) {
12139
+ break;
12140
+ }
12141
+ seen.push(current);
12142
+ const prototype2 = current === thing ? sourcePrototype : getPrototypeOf(current);
12143
+ if (isPrototypeBoundary(current, prototype2, current === thing)) {
12144
+ break;
12145
+ }
12146
+ const props = Object.getOwnPropertyNames(current);
12147
+ if (Object.getOwnPropertySymbols) {
12148
+ props.push(...Object.getOwnPropertySymbols(current));
12149
+ }
12150
+ for (const prop of props) {
12151
+ if (isUnsafeObjectKey(prop)) {
12152
+ continue;
12153
+ }
12154
+ if (!hasOwnProperty(merged, prop)) {
12155
+ result[prop] = thing[prop];
12156
+ merged[prop] = true;
12157
+ }
12158
+ }
12159
+ current = prototype2;
12160
+ }
12161
+ return result;
12162
+ };
12080
12163
  var kindOf = /* @__PURE__ */ ((cache) => (thing) => {
12081
12164
  const str = toString.call(thing);
12082
12165
  return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
@@ -12107,11 +12190,14 @@ var isNumber = typeOfTest("number");
12107
12190
  var isObject = (thing) => thing !== null && typeof thing === "object";
12108
12191
  var isBoolean = (thing) => thing === true || thing === false;
12109
12192
  var isPlainObject = (val) => {
12110
- if (kindOf(val) !== "object") {
12193
+ if (!isObject(val)) {
12111
12194
  return false;
12112
12195
  }
12113
12196
  const prototype2 = getPrototypeOf(val);
12114
- return (prototype2 === null || prototype2 === Object.prototype || Object.getPrototypeOf(prototype2) === null) && !(toStringTag in val) && !(iterator in val);
12197
+ return (prototype2 === null || prototype2 === Object.prototype || getPrototypeOf(prototype2) === null) && // Treat safe own/inherited Symbol.toStringTag or Symbol.iterator members as
12198
+ // evidence the value is tagged/iterable, while ignoring members reachable
12199
+ // only through shared or terminal prototype boundaries.
12200
+ !hasOwnInPrototypeChain(val, toStringTag) && !hasOwnInPrototypeChain(val, iterator);
12115
12201
  };
12116
12202
  var isEmptyObject = (val) => {
12117
12203
  if (!isObject(val) || isBuffer(val)) {
@@ -12131,6 +12217,7 @@ var isReactNativeBlob = (value) => {
12131
12217
  var isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
12132
12218
  var isBlob = kindOfTest("Blob");
12133
12219
  var isFileList = kindOfTest("FileList");
12220
+ var isSet = kindOfTest("Set");
12134
12221
  var isStream = (val) => isObject(val) && isFunction(val.pipe);
12135
12222
  function getGlobal() {
12136
12223
  if (typeof globalThis !== "undefined") return globalThis;
@@ -12215,7 +12302,7 @@ function merge(...objs) {
12215
12302
  if (key === "__proto__" || key === "constructor" || key === "prototype") {
12216
12303
  return;
12217
12304
  }
12218
- const targetKey = caseless && findKey(result, key) || key;
12305
+ const targetKey = caseless && typeof key === "string" && findKey(result, key) || key;
12219
12306
  const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
12220
12307
  if (isPlainObject(existing) && isPlainObject(val)) {
12221
12308
  result[targetKey] = merge(existing, val);
@@ -12228,7 +12315,21 @@ function merge(...objs) {
12228
12315
  }
12229
12316
  };
12230
12317
  for (let i = 0, l = objs.length; i < l; i++) {
12231
- objs[i] && forEach(objs[i], assignValue);
12318
+ const source = objs[i];
12319
+ if (!source || isBuffer(source)) {
12320
+ continue;
12321
+ }
12322
+ forEach(source, assignValue);
12323
+ if (typeof source !== "object" || isArray(source)) {
12324
+ continue;
12325
+ }
12326
+ const symbols = Object.getOwnPropertySymbols(source);
12327
+ for (let j = 0; j < symbols.length; j++) {
12328
+ const symbol = symbols[j];
12329
+ if (propertyIsEnumerable.call(source, symbol)) {
12330
+ assignValue(source[symbol], symbol);
12331
+ }
12332
+ }
12232
12333
  }
12233
12334
  return result;
12234
12335
  }
@@ -12350,7 +12451,7 @@ var toCamelCase = (str) => {
12350
12451
  return p1.toUpperCase() + p2;
12351
12452
  });
12352
12453
  };
12353
- var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
12454
+ var { propertyIsEnumerable } = Object.prototype;
12354
12455
  var isRegExp = kindOfTest("RegExp");
12355
12456
  var reduceDescriptors = (obj, reducer) => {
12356
12457
  const descriptors = Object.getOwnPropertyDescriptors(obj);
@@ -12412,11 +12513,20 @@ var toJSONObject = (obj) => {
12412
12513
  }
12413
12514
  if (!("toJSON" in source)) {
12414
12515
  visited.add(source);
12415
- const target = isArray(source) ? [] : {};
12416
- forEach(source, (value, key) => {
12417
- const reducedValue = visit(value);
12418
- !isUndefined(reducedValue) && (target[key] = reducedValue);
12419
- });
12516
+ let target;
12517
+ if (isSet(source)) {
12518
+ target = [];
12519
+ for (const value of source) {
12520
+ const reducedValue = visit(value);
12521
+ !isUndefined(reducedValue) && target.push(reducedValue);
12522
+ }
12523
+ } else {
12524
+ target = isArray(source) ? [] : {};
12525
+ forEach(source, (value, key) => {
12526
+ const reducedValue = visit(value);
12527
+ !isUndefined(reducedValue) && (target[key] = reducedValue);
12528
+ });
12529
+ }
12420
12530
  visited.delete(source);
12421
12531
  return target;
12422
12532
  }
@@ -12449,6 +12559,7 @@ var _setImmediate = ((setImmediateSupported, postMessageSupported) => {
12449
12559
  })(typeof setImmediate === "function", isFunction(_global.postMessage));
12450
12560
  var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
12451
12561
  var isIterable = (thing) => thing != null && isFunction(thing[iterator]);
12562
+ var isSafeIterable = (thing) => thing != null && hasOwnInPrototypeChain(thing, iterator) && isIterable(thing);
12452
12563
  var utils_default = {
12453
12564
  isArray,
12454
12565
  isArrayBuffer,
@@ -12494,6 +12605,9 @@ var utils_default = {
12494
12605
  hasOwnProperty,
12495
12606
  hasOwnProp: hasOwnProperty,
12496
12607
  // an alias to avoid ESLint no-prototype-builtins detection
12608
+ hasOwnInPrototypeChain,
12609
+ getSafeProp,
12610
+ toSafeFlatObject,
12497
12611
  reduceDescriptors,
12498
12612
  freezeMethods,
12499
12613
  toObjectSet,
@@ -12509,10 +12623,11 @@ var utils_default = {
12509
12623
  isThenable,
12510
12624
  setImmediate: _setImmediate,
12511
12625
  asap,
12512
- isIterable
12626
+ isIterable,
12627
+ isSafeIterable
12513
12628
  };
12514
12629
 
12515
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/parseHeaders.js
12630
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseHeaders.js
12516
12631
  var ignoreDuplicateOf = utils_default.toObjectSet([
12517
12632
  "age",
12518
12633
  "authorization",
@@ -12541,23 +12656,24 @@ var parseHeaders_default = (rawHeaders) => {
12541
12656
  i = line.indexOf(":");
12542
12657
  key = line.substring(0, i).trim().toLowerCase();
12543
12658
  val = line.substring(i + 1).trim();
12544
- if (!key || parsed[key] && ignoreDuplicateOf[key]) {
12659
+ const hasKey = utils_default.hasOwnProp(parsed, key);
12660
+ if (!key || hasKey && utils_default.hasOwnProp(ignoreDuplicateOf, key)) {
12545
12661
  return;
12546
12662
  }
12547
12663
  if (key === "set-cookie") {
12548
- if (parsed[key]) {
12664
+ if (hasKey) {
12549
12665
  parsed[key].push(val);
12550
12666
  } else {
12551
12667
  parsed[key] = [val];
12552
12668
  }
12553
12669
  } else {
12554
- parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
12670
+ parsed[key] = hasKey ? parsed[key] + ", " + val : val;
12555
12671
  }
12556
12672
  });
12557
12673
  return parsed;
12558
12674
  };
12559
12675
 
12560
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
12676
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
12561
12677
  function trimSPorHTAB(str) {
12562
12678
  let start = 0;
12563
12679
  let end = str.length;
@@ -12595,7 +12711,7 @@ function toByteStringHeaderObject(headers) {
12595
12711
  return byteStringHeaders;
12596
12712
  }
12597
12713
 
12598
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/AxiosHeaders.js
12714
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosHeaders.js
12599
12715
  var $internals = /* @__PURE__ */ Symbol("internals");
12600
12716
  function normalizeHeader(header) {
12601
12717
  return header && String(header).trim().toLowerCase();
@@ -12615,6 +12731,90 @@ function parseTokens(str) {
12615
12731
  }
12616
12732
  return tokens;
12617
12733
  }
12734
+ var parameterNameRE = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
12735
+ function trimOWS(value) {
12736
+ let start = 0;
12737
+ let end = value.length;
12738
+ while (start < end) {
12739
+ const code = value.charCodeAt(start);
12740
+ if (code !== 9 && code !== 32) {
12741
+ break;
12742
+ }
12743
+ start += 1;
12744
+ }
12745
+ while (end > start) {
12746
+ const code = value.charCodeAt(end - 1);
12747
+ if (code !== 9 && code !== 32) {
12748
+ break;
12749
+ }
12750
+ end -= 1;
12751
+ }
12752
+ return start === 0 && end === value.length ? value : value.slice(start, end);
12753
+ }
12754
+ function decodeQuotedString(value) {
12755
+ const last = value.length - 1;
12756
+ if (last < 1 || value.charCodeAt(0) !== 34 || value.charCodeAt(last) !== 34) {
12757
+ return value;
12758
+ }
12759
+ let decoded = "";
12760
+ for (let i = 1; i < last; i++) {
12761
+ const code = value.charCodeAt(i);
12762
+ if (code === 34) {
12763
+ return value;
12764
+ }
12765
+ if (code === 92) {
12766
+ i += 1;
12767
+ if (i >= last) {
12768
+ return value;
12769
+ }
12770
+ }
12771
+ decoded += value[i];
12772
+ }
12773
+ return decoded;
12774
+ }
12775
+ function parseParameters(value) {
12776
+ const parameters = /* @__PURE__ */ Object.create(null);
12777
+ const str = String(value);
12778
+ let start = 0;
12779
+ let quoted = false;
12780
+ let escaped = false;
12781
+ function parseParameter(end) {
12782
+ const part = trimOWS(str.slice(start, end));
12783
+ const equals = part.indexOf("=");
12784
+ if (equals < 1) {
12785
+ return;
12786
+ }
12787
+ const name = trimOWS(part.slice(0, equals));
12788
+ if (!parameterNameRE.test(name)) {
12789
+ return;
12790
+ }
12791
+ const normalizedName = name.toLowerCase();
12792
+ if (normalizedName === "__proto__" || normalizedName === "constructor" || normalizedName === "prototype") {
12793
+ return;
12794
+ }
12795
+ const parameterValue = trimOWS(part.slice(equals + 1));
12796
+ parameters[normalizedName] = decodeQuotedString(parameterValue);
12797
+ }
12798
+ for (let i = 0; i < str.length; i++) {
12799
+ const code = str.charCodeAt(i);
12800
+ if (quoted) {
12801
+ if (escaped) {
12802
+ escaped = false;
12803
+ } else if (code === 92) {
12804
+ escaped = true;
12805
+ } else if (code === 34) {
12806
+ quoted = false;
12807
+ }
12808
+ } else if (code === 34) {
12809
+ quoted = true;
12810
+ } else if (code === 44 || code === 59) {
12811
+ parseParameter(i);
12812
+ start = i + 1;
12813
+ }
12814
+ }
12815
+ parseParameter(str.length);
12816
+ return parameters;
12817
+ }
12618
12818
  var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
12619
12819
  function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
12620
12820
  if (utils_default.isFunction(filter2)) {
@@ -12659,7 +12859,7 @@ var AxiosHeaders = class {
12659
12859
  function setHeader(_value, _header, _rewrite) {
12660
12860
  const lHeader = normalizeHeader(_header);
12661
12861
  if (!lHeader) {
12662
- throw new Error("header name must be a non-empty string");
12862
+ return;
12663
12863
  }
12664
12864
  const key = utils_default.findKey(self2, lHeader);
12665
12865
  if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
@@ -12671,13 +12871,19 @@ var AxiosHeaders = class {
12671
12871
  setHeaders(header, valueOrRewrite);
12672
12872
  } else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
12673
12873
  setHeaders(parseHeaders_default(header), valueOrRewrite);
12674
- } else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
12675
- let obj = {}, dest, key;
12874
+ } else if (utils_default.isObject(header) && utils_default.isSafeIterable(header)) {
12875
+ let obj = /* @__PURE__ */ Object.create(null), dest, key;
12676
12876
  for (const entry of header) {
12677
12877
  if (!utils_default.isArray(entry)) {
12678
- throw TypeError("Object iterator must return a key-value pair");
12878
+ throw new TypeError("Object iterator must return a key-value pair");
12879
+ }
12880
+ key = entry[0];
12881
+ if (utils_default.hasOwnProp(obj, key)) {
12882
+ dest = obj[key];
12883
+ obj[key] = utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]];
12884
+ } else {
12885
+ obj[key] = entry[1];
12679
12886
  }
12680
- obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
12681
12887
  }
12682
12888
  setHeaders(obj, valueOrRewrite);
12683
12889
  } else {
@@ -12784,7 +12990,8 @@ var AxiosHeaders = class {
12784
12990
  return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
12785
12991
  }
12786
12992
  getSetCookie() {
12787
- return this.get("set-cookie") || [];
12993
+ const value = this.get("set-cookie");
12994
+ return utils_default.isArray(value) ? value : value == null || value === false ? [] : [value];
12788
12995
  }
12789
12996
  get [Symbol.toStringTag]() {
12790
12997
  return "AxiosHeaders";
@@ -12792,6 +12999,9 @@ var AxiosHeaders = class {
12792
12999
  static from(thing) {
12793
13000
  return thing instanceof this ? thing : new this(thing);
12794
13001
  }
13002
+ static parseParameters(value) {
13003
+ return parseParameters(value);
13004
+ }
12795
13005
  static concat(first, ...targets) {
12796
13006
  const computed = new this(first);
12797
13007
  targets.forEach((target) => computed.set(target));
@@ -12834,7 +13044,7 @@ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
12834
13044
  utils_default.freezeMethods(AxiosHeaders);
12835
13045
  var AxiosHeaders_default = AxiosHeaders;
12836
13046
 
12837
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/AxiosError.js
13047
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosError.js
12838
13048
  var REDACTED = "[REDACTED ****]";
12839
13049
  function hasOwnOrPrototypeToJSON(source) {
12840
13050
  if (utils_default.hasOwnProp(source, "toJSON")) {
@@ -12887,10 +13097,37 @@ function redactConfig(config, redactKeys) {
12887
13097
  };
12888
13098
  return visit(config);
12889
13099
  }
13100
+ function stringifySafely(value) {
13101
+ try {
13102
+ return String(value);
13103
+ } catch (err) {
13104
+ return "";
13105
+ }
13106
+ }
13107
+ function aggregateErrorMessage(error) {
13108
+ const message = error.errors.map((entry) => {
13109
+ try {
13110
+ return entry && entry.message ? stringifySafely(entry.message) : stringifySafely(entry);
13111
+ } catch (err) {
13112
+ return "";
13113
+ }
13114
+ }).filter(Boolean).join("; ");
13115
+ return message || error.name || "AggregateError";
13116
+ }
12890
13117
  var AxiosError = class _AxiosError extends Error {
12891
13118
  static from(error, code, config, request, response, customProps) {
12892
- const axiosError = new _AxiosError(error.message, code || error.code, config, request, response);
12893
- axiosError.cause = error;
13119
+ let message = error.message;
13120
+ if (!message && utils_default.isArray(error.errors) && error.errors.length) {
13121
+ message = aggregateErrorMessage(error);
13122
+ }
13123
+ const axiosError = new _AxiosError(message, code || error.code, config, request, response);
13124
+ Object.defineProperty(axiosError, "cause", {
13125
+ __proto__: null,
13126
+ value: error,
13127
+ writable: true,
13128
+ enumerable: false,
13129
+ configurable: true
13130
+ });
12894
13131
  axiosError.name = error.name;
12895
13132
  if (error.status != null && axiosError.status == null) {
12896
13133
  axiosError.status = error.status;
@@ -12969,11 +13206,22 @@ AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
12969
13206
  AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
12970
13207
  var AxiosError_default = AxiosError;
12971
13208
 
12972
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/node/classes/FormData.js
13209
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/FormData.js
12973
13210
  var import_form_data = __toESM(require_form_data(), 1);
12974
13211
  var FormData_default = import_form_data.default;
12975
13212
 
12976
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/toFormData.js
13213
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/Buffer.js
13214
+ var Buffer_default = {
13215
+ isBufferAvailable() {
13216
+ return typeof Buffer !== "undefined";
13217
+ },
13218
+ from(value) {
13219
+ return Buffer.from(value);
13220
+ }
13221
+ };
13222
+
13223
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toFormData.js
13224
+ var DEFAULT_FORM_DATA_MAX_DEPTH = 100;
12977
13225
  function isVisitable(thing) {
12978
13226
  return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
12979
13227
  }
@@ -12998,25 +13246,18 @@ function toFormData(obj, formData, options) {
12998
13246
  throw new TypeError("target must be an object");
12999
13247
  }
13000
13248
  formData = formData || new (FormData_default || FormData)();
13001
- options = utils_default.toFlatObject(
13002
- options,
13003
- {
13004
- metaTokens: true,
13005
- dots: false,
13006
- indexes: false
13007
- },
13008
- false,
13009
- function defined(option, source) {
13010
- return !utils_default.isUndefined(source[option]);
13011
- }
13012
- );
13013
- const metaTokens = options.metaTokens;
13014
- const visitor = options.visitor || defaultVisitor;
13015
- const dots = options.dots;
13016
- const indexes = options.indexes;
13017
- const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
13018
- const maxDepth = options.maxDepth === void 0 ? 100 : options.maxDepth;
13249
+ const option = (name, fallback) => {
13250
+ const value = utils_default.getSafeProp(options, name);
13251
+ return utils_default.isUndefined(value) ? fallback : value;
13252
+ };
13253
+ const metaTokens = option("metaTokens", true);
13254
+ const visitor = option("visitor") || defaultVisitor;
13255
+ const dots = option("dots", false);
13256
+ const indexes = option("indexes", false);
13257
+ const _Blob = option("Blob") || typeof Blob !== "undefined" && Blob;
13258
+ const maxDepth = option("maxDepth", DEFAULT_FORM_DATA_MAX_DEPTH);
13019
13259
  const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
13260
+ const stack = [];
13020
13261
  if (!utils_default.isFunction(visitor)) {
13021
13262
  throw new TypeError("visitor must be a function");
13022
13263
  }
@@ -13032,10 +13273,44 @@ function toFormData(obj, formData, options) {
13032
13273
  throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");
13033
13274
  }
13034
13275
  if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) {
13035
- return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
13276
+ if (useBlob && typeof _Blob === "function") {
13277
+ return new _Blob([value]);
13278
+ }
13279
+ if (Buffer_default && Buffer_default.isBufferAvailable()) {
13280
+ return Buffer_default.from(value);
13281
+ }
13282
+ throw new AxiosError_default(
13283
+ "Blob is not supported. Use a Buffer instead.",
13284
+ AxiosError_default.ERR_NOT_SUPPORT
13285
+ );
13036
13286
  }
13037
13287
  return value;
13038
13288
  }
13289
+ function throwIfMaxDepthExceeded(depth) {
13290
+ if (depth > maxDepth) {
13291
+ throw new AxiosError_default(
13292
+ "Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth,
13293
+ AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
13294
+ );
13295
+ }
13296
+ }
13297
+ function stringifyWithDepthLimit(value, depth) {
13298
+ if (maxDepth === Infinity) {
13299
+ return JSON.stringify(value);
13300
+ }
13301
+ const ancestors = [];
13302
+ return JSON.stringify(value, function limitDepth(_key, currentValue) {
13303
+ if (!utils_default.isObject(currentValue)) {
13304
+ return currentValue;
13305
+ }
13306
+ while (ancestors.length && ancestors[ancestors.length - 1] !== this) {
13307
+ ancestors.pop();
13308
+ }
13309
+ ancestors.push(currentValue);
13310
+ throwIfMaxDepthExceeded(depth + ancestors.length - 1);
13311
+ return currentValue;
13312
+ });
13313
+ }
13039
13314
  function defaultVisitor(value, key, path) {
13040
13315
  let arr = value;
13041
13316
  if (utils_default.isReactNative(formData) && utils_default.isReactNativeBlob(value)) {
@@ -13045,7 +13320,7 @@ function toFormData(obj, formData, options) {
13045
13320
  if (value && !path && typeof value === "object") {
13046
13321
  if (utils_default.endsWith(key, "{}")) {
13047
13322
  key = metaTokens ? key : key.slice(0, -2);
13048
- value = JSON.stringify(value);
13323
+ value = stringifyWithDepthLimit(value, 1);
13049
13324
  } else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
13050
13325
  key = removeBrackets(key);
13051
13326
  arr.forEach(function each(el, index) {
@@ -13064,7 +13339,6 @@ function toFormData(obj, formData, options) {
13064
13339
  formData.append(renderKey(path, key, dots), convertValue(value));
13065
13340
  return false;
13066
13341
  }
13067
- const stack = [];
13068
13342
  const exposedHelpers = Object.assign(predicates, {
13069
13343
  defaultVisitor,
13070
13344
  convertValue,
@@ -13072,14 +13346,9 @@ function toFormData(obj, formData, options) {
13072
13346
  });
13073
13347
  function build(value, path, depth = 0) {
13074
13348
  if (utils_default.isUndefined(value)) return;
13075
- if (depth > maxDepth) {
13076
- throw new AxiosError_default(
13077
- "Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth,
13078
- AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
13079
- );
13080
- }
13349
+ throwIfMaxDepthExceeded(depth);
13081
13350
  if (stack.indexOf(value) !== -1) {
13082
- throw Error("Circular reference detected in " + path.join("."));
13351
+ throw new Error("Circular reference detected in " + path.join("."));
13083
13352
  }
13084
13353
  stack.push(value);
13085
13354
  utils_default.forEach(value, function each(el, key) {
@@ -13098,7 +13367,7 @@ function toFormData(obj, formData, options) {
13098
13367
  }
13099
13368
  var toFormData_default = toFormData;
13100
13369
 
13101
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
13370
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
13102
13371
  function encode(str) {
13103
13372
  const charMap = {
13104
13373
  "!": "%21",
@@ -13121,16 +13390,14 @@ prototype.append = function append(name, value) {
13121
13390
  this._pairs.push([name, value]);
13122
13391
  };
13123
13392
  prototype.toString = function toString2(encoder) {
13124
- const _encode = encoder ? function(value) {
13125
- return encoder.call(this, value, encode);
13126
- } : encode;
13393
+ const _encode = encoder ? (value) => encoder.call(this, value, encode) : encode;
13127
13394
  return this._pairs.map(function each(pair) {
13128
13395
  return _encode(pair[0]) + "=" + _encode(pair[1]);
13129
13396
  }, "").join("&");
13130
13397
  };
13131
13398
  var AxiosURLSearchParams_default = AxiosURLSearchParams;
13132
13399
 
13133
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/buildURL.js
13400
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/buildURL.js
13134
13401
  function encode2(val) {
13135
13402
  return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
13136
13403
  }
@@ -13138,11 +13405,12 @@ function buildURL(url2, params, options) {
13138
13405
  if (!params) {
13139
13406
  return url2;
13140
13407
  }
13141
- const _encode = options && options.encode || encode2;
13408
+ url2 = url2 || "";
13142
13409
  const _options = utils_default.isFunction(options) ? {
13143
13410
  serialize: options
13144
13411
  } : options;
13145
- const serializeFn = _options && _options.serialize;
13412
+ const _encode = utils_default.getSafeProp(_options, "encode") || encode2;
13413
+ const serializeFn = utils_default.getSafeProp(_options, "serialize");
13146
13414
  let serializedParams;
13147
13415
  if (serializeFn) {
13148
13416
  serializedParams = serializeFn(params, _options);
@@ -13159,10 +13427,48 @@ function buildURL(url2, params, options) {
13159
13427
  return url2;
13160
13428
  }
13161
13429
 
13162
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/InterceptorManager.js
13430
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/InterceptorManager.js
13431
+ var $internals2 = /* @__PURE__ */ Symbol("internals");
13432
+ function countHandlers(handlers) {
13433
+ return handlers ? handlers.length : 0;
13434
+ }
13435
+ function trimHandlers(handlers) {
13436
+ if (!handlers) {
13437
+ return;
13438
+ }
13439
+ while (handlers.length && handlers[handlers.length - 1] === null) {
13440
+ handlers.pop();
13441
+ }
13442
+ }
13443
+ function syncHandlerEntries(manager, internals) {
13444
+ const handlers = manager.handlers;
13445
+ const length = countHandlers(handlers);
13446
+ if (handlers !== internals.handlersRef) {
13447
+ internals.handlersRef = handlers;
13448
+ internals.handlerEntries.clear();
13449
+ } else if (length !== internals.handlersLength) {
13450
+ if (!length) {
13451
+ internals.handlerEntries.clear();
13452
+ } else {
13453
+ internals.handlerEntries.forEach(function removeStaleEntry(entry, id) {
13454
+ if (handlers[entry.index] !== entry.handler) {
13455
+ internals.handlerEntries.delete(id);
13456
+ }
13457
+ });
13458
+ }
13459
+ }
13460
+ internals.handlersLength = length;
13461
+ }
13163
13462
  var InterceptorManager = class {
13164
13463
  constructor() {
13165
13464
  this.handlers = [];
13465
+ this[$internals2] = {
13466
+ handlersRef: this.handlers,
13467
+ handlersLength: this.handlers.length,
13468
+ handlerEntries: /* @__PURE__ */ new Map(),
13469
+ iterationDepth: 0,
13470
+ nextId: 0
13471
+ };
13166
13472
  }
13167
13473
  /**
13168
13474
  * Add a new interceptor to the stack
@@ -13174,13 +13480,25 @@ var InterceptorManager = class {
13174
13480
  * @return {Number} An ID used to remove interceptor later
13175
13481
  */
13176
13482
  use(fulfilled, rejected, options) {
13177
- this.handlers.push({
13483
+ const handler = {
13178
13484
  fulfilled,
13179
13485
  rejected,
13180
13486
  synchronous: options ? options.synchronous : false,
13181
13487
  runWhen: options ? options.runWhen : null
13488
+ };
13489
+ const internals = this[$internals2];
13490
+ if (this.handlers == null) {
13491
+ this.handlers = [];
13492
+ }
13493
+ syncHandlerEntries(this, internals);
13494
+ const id = internals.nextId++;
13495
+ this.handlers.push(handler);
13496
+ internals.handlerEntries.set(id, {
13497
+ handler,
13498
+ index: this.handlers.length - 1
13182
13499
  });
13183
- return this.handlers.length - 1;
13500
+ internals.handlersLength = this.handlers.length;
13501
+ return id;
13184
13502
  }
13185
13503
  /**
13186
13504
  * Remove an interceptor from the stack
@@ -13190,8 +13508,19 @@ var InterceptorManager = class {
13190
13508
  * @returns {void}
13191
13509
  */
13192
13510
  eject(id) {
13193
- if (this.handlers[id]) {
13194
- this.handlers[id] = null;
13511
+ const internals = this[$internals2];
13512
+ syncHandlerEntries(this, internals);
13513
+ const entry = internals.handlerEntries.get(id);
13514
+ if (entry) {
13515
+ internals.handlerEntries.delete(id);
13516
+ if (this.handlers[entry.index] !== entry.handler) {
13517
+ return;
13518
+ }
13519
+ this.handlers[entry.index] = null;
13520
+ if (!internals.iterationDepth) {
13521
+ trimHandlers(this.handlers);
13522
+ internals.handlersLength = this.handlers.length;
13523
+ }
13195
13524
  }
13196
13525
  }
13197
13526
  /**
@@ -13202,6 +13531,7 @@ var InterceptorManager = class {
13202
13531
  clear() {
13203
13532
  if (this.handlers) {
13204
13533
  this.handlers = [];
13534
+ syncHandlerEntries(this, this[$internals2]);
13205
13535
  }
13206
13536
  }
13207
13537
  /**
@@ -13215,31 +13545,44 @@ var InterceptorManager = class {
13215
13545
  * @returns {void}
13216
13546
  */
13217
13547
  forEach(fn) {
13218
- utils_default.forEach(this.handlers, function forEachHandler(h) {
13219
- if (h !== null) {
13220
- fn(h);
13548
+ const internals = this[$internals2];
13549
+ syncHandlerEntries(this, internals);
13550
+ internals.iterationDepth++;
13551
+ try {
13552
+ utils_default.forEach(this.handlers, function forEachHandler(h) {
13553
+ if (h !== null) {
13554
+ fn(h);
13555
+ }
13556
+ });
13557
+ } finally {
13558
+ if (!--internals.iterationDepth) {
13559
+ syncHandlerEntries(this, internals);
13560
+ trimHandlers(this.handlers);
13561
+ internals.handlersLength = countHandlers(this.handlers);
13221
13562
  }
13222
- });
13563
+ }
13223
13564
  }
13224
13565
  };
13225
13566
  var InterceptorManager_default = InterceptorManager;
13226
13567
 
13227
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/defaults/transitional.js
13568
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/transitional.js
13228
13569
  var transitional_default = {
13229
13570
  silentJSONParsing: true,
13230
13571
  forcedJSONParsing: true,
13231
13572
  clarifyTimeoutError: false,
13232
- legacyInterceptorReqResOrdering: true
13573
+ legacyInterceptorReqResOrdering: true,
13574
+ advertiseZstdAcceptEncoding: false,
13575
+ validateStatusUndefinedResolves: true
13233
13576
  };
13234
13577
 
13235
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/node/index.js
13578
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/index.js
13236
13579
  import crypto from "crypto";
13237
13580
 
13238
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
13581
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
13239
13582
  import url from "url";
13240
13583
  var URLSearchParams_default = url.URLSearchParams;
13241
13584
 
13242
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/node/index.js
13585
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/index.js
13243
13586
  var ALPHA = "abcdefghijklmnopqrstuvwxyz";
13244
13587
  var DIGIT = "0123456789";
13245
13588
  var ALPHABET = {
@@ -13269,7 +13612,7 @@ var node_default = {
13269
13612
  protocols: ["http", "https", "file", "data"]
13270
13613
  };
13271
13614
 
13272
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/common/utils.js
13615
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/common/utils.js
13273
13616
  var utils_exports = {};
13274
13617
  __export(utils_exports, {
13275
13618
  hasBrowserEnv: () => hasBrowserEnv,
@@ -13287,13 +13630,13 @@ var hasStandardBrowserWebWorkerEnv = (() => {
13287
13630
  })();
13288
13631
  var origin = hasBrowserEnv && window.location.href || "http://localhost";
13289
13632
 
13290
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/index.js
13633
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/index.js
13291
13634
  var platform_default = {
13292
13635
  ...utils_exports,
13293
13636
  ...node_default
13294
13637
  };
13295
13638
 
13296
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/toURLEncodedForm.js
13639
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toURLEncodedForm.js
13297
13640
  function toURLEncodedForm(data, options) {
13298
13641
  return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
13299
13642
  visitor: function(value, key, path, helpers) {
@@ -13307,11 +13650,25 @@ function toURLEncodedForm(data, options) {
13307
13650
  });
13308
13651
  }
13309
13652
 
13310
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/formDataToJSON.js
13653
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToJSON.js
13654
+ var MAX_DEPTH = DEFAULT_FORM_DATA_MAX_DEPTH;
13655
+ function throwIfDepthExceeded(index) {
13656
+ if (index > MAX_DEPTH) {
13657
+ throw new AxiosError_default(
13658
+ "FormData field is too deeply nested (" + index + " levels). Max depth: " + MAX_DEPTH,
13659
+ AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
13660
+ );
13661
+ }
13662
+ }
13311
13663
  function parsePropPath(name) {
13312
- return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
13313
- return match[0] === "[]" ? "" : match[1] || match[0];
13314
- });
13664
+ const path = [];
13665
+ const pattern = /[^.[\]]+|\[([^.[\]]*)]/g;
13666
+ let match;
13667
+ while ((match = pattern.exec(name)) !== null) {
13668
+ throwIfDepthExceeded(path.length);
13669
+ path.push(match[0] === "[]" ? "" : match[1] || match[0]);
13670
+ }
13671
+ return path;
13315
13672
  }
13316
13673
  function arrayToObject(arr) {
13317
13674
  const obj = {};
@@ -13327,6 +13684,7 @@ function arrayToObject(arr) {
13327
13684
  }
13328
13685
  function formDataToJSON(formData) {
13329
13686
  function buildPath(path, value, target, index) {
13687
+ throwIfDepthExceeded(index);
13330
13688
  let name = path[index++];
13331
13689
  if (name === "__proto__") return true;
13332
13690
  const isNumericKey = Number.isFinite(+name);
@@ -13360,9 +13718,25 @@ function formDataToJSON(formData) {
13360
13718
  }
13361
13719
  var formDataToJSON_default = formDataToJSON;
13362
13720
 
13363
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/defaults/index.js
13721
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/methodList.js
13722
+ var methodList = Object.freeze([
13723
+ "get",
13724
+ "delete",
13725
+ "head",
13726
+ "options",
13727
+ "post",
13728
+ "put",
13729
+ "patch",
13730
+ "purge",
13731
+ "link",
13732
+ "unlink",
13733
+ "query"
13734
+ ]);
13735
+ var methodList_default = methodList;
13736
+
13737
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/index.js
13364
13738
  var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
13365
- function stringifySafely(rawValue, parser, encoder) {
13739
+ function stringifySafely2(rawValue, parser, encoder) {
13366
13740
  if (utils_default.isString(rawValue)) {
13367
13741
  try {
13368
13742
  (parser || JSON.parse)(rawValue);
@@ -13418,7 +13792,7 @@ var defaults = {
13418
13792
  }
13419
13793
  if (isObjectPayload || hasJSONContentType) {
13420
13794
  headers.setContentType("application/json", false);
13421
- return stringifySafely(data);
13795
+ return stringifySafely2(data);
13422
13796
  }
13423
13797
  return data;
13424
13798
  }
@@ -13472,12 +13846,12 @@ var defaults = {
13472
13846
  }
13473
13847
  }
13474
13848
  };
13475
- utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query"], (method) => {
13849
+ utils_default.forEach(methodList_default, (method) => {
13476
13850
  defaults.headers[method] = {};
13477
13851
  });
13478
13852
  var defaults_default = defaults;
13479
13853
 
13480
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/transformData.js
13854
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/transformData.js
13481
13855
  function transformData(fns, response) {
13482
13856
  const config = this || defaults_default;
13483
13857
  const context = response || config;
@@ -13490,12 +13864,12 @@ function transformData(fns, response) {
13490
13864
  return data;
13491
13865
  }
13492
13866
 
13493
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/cancel/isCancel.js
13867
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/isCancel.js
13494
13868
  function isCancel(value) {
13495
13869
  return !!(value && value.__CANCEL__);
13496
13870
  }
13497
13871
 
13498
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/cancel/CanceledError.js
13872
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CanceledError.js
13499
13873
  var CanceledError = class extends AxiosError_default {
13500
13874
  /**
13501
13875
  * A `CanceledError` is an object that is thrown when an operation is canceled.
@@ -13514,7 +13888,7 @@ var CanceledError = class extends AxiosError_default {
13514
13888
  };
13515
13889
  var CanceledError_default = CanceledError;
13516
13890
 
13517
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/settle.js
13891
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/settle.js
13518
13892
  function settle(resolve, reject, response) {
13519
13893
  const validateStatus2 = response.config.validateStatus;
13520
13894
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
@@ -13530,7 +13904,7 @@ function settle(resolve, reject, response) {
13530
13904
  }
13531
13905
  }
13532
13906
 
13533
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/isAbsoluteURL.js
13907
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAbsoluteURL.js
13534
13908
  function isAbsoluteURL(url2) {
13535
13909
  if (typeof url2 !== "string") {
13536
13910
  return false;
@@ -13538,15 +13912,71 @@ function isAbsoluteURL(url2) {
13538
13912
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
13539
13913
  }
13540
13914
 
13541
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/combineURLs.js
13915
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/combineURLs.js
13542
13916
  function combineURLs(baseURL, relativeURL) {
13543
- return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
13917
+ if (!relativeURL) {
13918
+ return baseURL;
13919
+ }
13920
+ let end = baseURL.length;
13921
+ while (end > 0 && baseURL.charCodeAt(end - 1) === 47) {
13922
+ end--;
13923
+ }
13924
+ return baseURL.slice(0, end) + "/" + relativeURL.replace(/^\/+/, "");
13925
+ }
13926
+
13927
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js
13928
+ var urlParserControlCharacters = /[\t\n\r]/g;
13929
+ function normalizeURLForProtocolCheck(url2) {
13930
+ if (typeof url2 !== "string") {
13931
+ return url2;
13932
+ }
13933
+ let start = 0;
13934
+ while (start < url2.length && url2.charCodeAt(start) <= 32) {
13935
+ start++;
13936
+ }
13937
+ return url2.slice(start).replace(urlParserControlCharacters, "");
13544
13938
  }
13545
13939
 
13546
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/buildFullPath.js
13547
- function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
13940
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/buildFullPath.js
13941
+ var malformedHttpProtocol = /^https?:(?!\/\/)/i;
13942
+ function redactFragment(fragment) {
13943
+ if (!fragment) {
13944
+ return fragment;
13945
+ }
13946
+ return fragment.replace(/(^|&)([^=&]*=)?[^&]+/g, (match, separator, parameterName = "") => {
13947
+ return `${separator}${parameterName}${REDACTED}`;
13948
+ });
13949
+ }
13950
+ function redactSensitiveURLParts(url2) {
13951
+ const redactedURL = url2.replace(/^(https?:\/{0,2})[^/?#]*@/i, `$1${REDACTED}@`);
13952
+ const fragmentIndex = redactedURL.indexOf("#");
13953
+ const urlWithoutFragment = fragmentIndex === -1 ? redactedURL : redactedURL.slice(0, fragmentIndex);
13954
+ const redactedURLWithoutFragment = urlWithoutFragment.replace(
13955
+ /([?&][^=&#]*=)[^&#]*/g,
13956
+ `$1${REDACTED}`
13957
+ );
13958
+ if (fragmentIndex === -1) {
13959
+ return redactedURLWithoutFragment;
13960
+ }
13961
+ return `${redactedURLWithoutFragment}#${redactFragment(redactedURL.slice(fragmentIndex + 1))}`;
13962
+ }
13963
+ function assertValidHttpProtocolURL(url2, config) {
13964
+ if (typeof url2 === "string") {
13965
+ const normalizedURL = normalizeURLForProtocolCheck(url2);
13966
+ if (malformedHttpProtocol.test(normalizedURL)) {
13967
+ throw new AxiosError_default(
13968
+ `Invalid URL ${JSON.stringify(redactSensitiveURLParts(normalizedURL))}: missing "//" after protocol`,
13969
+ AxiosError_default.ERR_INVALID_URL,
13970
+ config
13971
+ );
13972
+ }
13973
+ }
13974
+ }
13975
+ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls, config) {
13976
+ assertValidHttpProtocolURL(requestedURL, config);
13548
13977
  let isRelativeUrl = !isAbsoluteURL(requestedURL);
13549
13978
  if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
13979
+ assertValidHttpProtocolURL(baseURL, config);
13550
13980
  return combineURLs(baseURL, requestedURL);
13551
13981
  }
13552
13982
  return requestedURL;
@@ -13619,27 +14049,27 @@ function getEnv(key) {
13619
14049
  return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
13620
14050
  }
13621
14051
 
13622
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/http.js
14052
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
13623
14053
  var import_https_proxy_agent = __toESM(require_dist(), 1);
13624
14054
  var import_follow_redirects = __toESM(require_follow_redirects(), 1);
13625
14055
  import http from "http";
13626
14056
  import https from "https";
13627
- import http2 from "http2";
13628
- import util2 from "util";
14057
+ import http22 from "http2";
14058
+ import util3 from "util";
13629
14059
  import { resolve as resolvePath } from "path";
13630
14060
  import zlib from "zlib";
13631
14061
 
13632
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/env/data.js
13633
- var VERSION = "1.16.1";
14062
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/env/data.js
14063
+ var VERSION = "1.20.0";
13634
14064
 
13635
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/parseProtocol.js
14065
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseProtocol.js
13636
14066
  function parseProtocol(url2) {
13637
14067
  const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
13638
14068
  return match && match[1] || "";
13639
14069
  }
13640
14070
 
13641
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/fromDataURI.js
13642
- var DATA_URL_PATTERN = /^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;
14071
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/fromDataURI.js
14072
+ var DATA_URL_PATTERN = /^([^,;/]+\/[^,;/]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;
13643
14073
  function fromDataURI(uri, asBlob, options) {
13644
14074
  const _Blob = options && options.Blob || platform_default.classes.Blob;
13645
14075
  const protocol = parseProtocol(uri);
@@ -13656,13 +14086,13 @@ function fromDataURI(uri, asBlob, options) {
13656
14086
  const params = match[2];
13657
14087
  const encoding = match[3] ? "base64" : "utf8";
13658
14088
  const body = match[4];
13659
- let mime;
14089
+ let mime = "";
13660
14090
  if (type) {
13661
14091
  mime = params ? type + params : type;
13662
14092
  } else if (params) {
13663
14093
  mime = "text/plain" + params;
13664
14094
  }
13665
- const buffer = Buffer.from(decodeURIComponent(body), encoding);
14095
+ const buffer = encoding === "base64" ? Buffer.from(body, "base64") : Buffer.from(decodeURIComponent(body), encoding);
13666
14096
  if (asBlob) {
13667
14097
  if (!_Blob) {
13668
14098
  throw new AxiosError_default("Blob is not supported", AxiosError_default.ERR_NOT_SUPPORT);
@@ -13674,10 +14104,24 @@ function fromDataURI(uri, asBlob, options) {
13674
14104
  throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
13675
14105
  }
13676
14106
 
13677
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/http.js
14107
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
13678
14108
  import stream3 from "stream";
13679
14109
 
13680
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/AxiosTransformStream.js
14110
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/setFormDataHeaders.js
14111
+ var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
14112
+ function setFormDataHeaders(headers, formHeaders, policy) {
14113
+ if (policy !== "content-only") {
14114
+ headers.set(formHeaders);
14115
+ return;
14116
+ }
14117
+ Object.entries(formHeaders || {}).forEach(([key, val]) => {
14118
+ if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
14119
+ headers.set(key, val);
14120
+ }
14121
+ });
14122
+ }
14123
+
14124
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosTransformStream.js
13681
14125
  import stream from "stream";
13682
14126
  var kInternals = /* @__PURE__ */ Symbol("internals");
13683
14127
  var AxiosTransformStream = class extends stream.Transform {
@@ -13800,14 +14244,14 @@ var AxiosTransformStream = class extends stream.Transform {
13800
14244
  };
13801
14245
  var AxiosTransformStream_default = AxiosTransformStream;
13802
14246
 
13803
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/http.js
14247
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
13804
14248
  import { EventEmitter } from "events";
13805
14249
 
13806
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/formDataToStream.js
14250
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToStream.js
13807
14251
  import util from "util";
13808
14252
  import { Readable } from "stream";
13809
14253
 
13810
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/readBlob.js
14254
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/readBlob.js
13811
14255
  var { asyncIterator } = Symbol;
13812
14256
  var readBlob = async function* (blob) {
13813
14257
  if (blob.stream) {
@@ -13822,7 +14266,7 @@ var readBlob = async function* (blob) {
13822
14266
  };
13823
14267
  var readBlob_default = readBlob;
13824
14268
 
13825
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/formDataToStream.js
14269
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToStream.js
13826
14270
  var BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
13827
14271
  var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new util.TextEncoder();
13828
14272
  var CRLF = "\r\n";
@@ -13873,10 +14317,10 @@ var formDataToStream = (form, headersHandler, options) => {
13873
14317
  boundary = tag + "-" + platform_default.generateString(size, BOUNDARY_ALPHABET)
13874
14318
  } = options || {};
13875
14319
  if (!utils_default.isFormData(form)) {
13876
- throw TypeError("FormData instance required");
14320
+ throw new TypeError("FormData instance required");
13877
14321
  }
13878
14322
  if (boundary.length < 1 || boundary.length > 70) {
13879
- throw Error("boundary must be 1-70 characters long");
14323
+ throw new Error("boundary must be 1-70 characters long");
13880
14324
  }
13881
14325
  const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
13882
14326
  const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF);
@@ -13907,7 +14351,7 @@ var formDataToStream = (form, headersHandler, options) => {
13907
14351
  };
13908
14352
  var formDataToStream_default = formDataToStream;
13909
14353
 
13910
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
14354
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
13911
14355
  import stream2 from "stream";
13912
14356
  var ZlibHeaderTransformStream = class extends stream2.Transform {
13913
14357
  __transform(chunk, encoding, callback) {
@@ -13929,51 +14373,212 @@ var ZlibHeaderTransformStream = class extends stream2.Transform {
13929
14373
  };
13930
14374
  var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
13931
14375
 
13932
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/callbackify.js
13933
- var callbackify = (fn, reducer) => {
13934
- return utils_default.isAsyncFn(fn) ? function(...args) {
13935
- const cb = args.pop();
13936
- fn.apply(this, args).then((value) => {
13937
- try {
13938
- reducer ? cb(null, ...reducer(value)) : cb(null, value);
13939
- } catch (err) {
13940
- cb(err);
13941
- }
13942
- }, cb);
13943
- } : fn;
13944
- };
13945
- var callbackify_default = callbackify;
13946
-
13947
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/shouldBypassProxy.js
13948
- var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost"]);
13949
- var isIPv4Loopback = (host) => {
13950
- const parts = host.split(".");
13951
- if (parts.length !== 4) return false;
13952
- if (parts[0] !== "127") return false;
13953
- return parts.every((p) => /^\d+$/.test(p) && Number(p) >= 0 && Number(p) <= 255);
13954
- };
13955
- var isIPv6Loopback = (host) => {
13956
- if (host === "::1") return true;
13957
- const v4MappedDotted = host.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);
13958
- if (v4MappedDotted) return isIPv4Loopback(v4MappedDotted[1]);
13959
- const v4MappedHex = host.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);
13960
- if (v4MappedHex) {
13961
- const high = parseInt(v4MappedHex[1], 16);
13962
- return high >= 32512 && high <= 32767;
14376
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/Http2Sessions.js
14377
+ import http2 from "http2";
14378
+ import util2 from "util";
14379
+ var Http2Sessions = class {
14380
+ constructor() {
14381
+ this.sessions = /* @__PURE__ */ Object.create(null);
13963
14382
  }
13964
- const groups = host.split(":");
13965
- if (groups.length === 8) {
13966
- for (let i = 0; i < 7; i++) {
13967
- if (!/^0+$/.test(groups[i])) return false;
14383
+ getSession(authority, options) {
14384
+ options = Object.assign(
14385
+ /* @__PURE__ */ Object.create(null),
14386
+ {
14387
+ sessionTimeout: 1e3
14388
+ },
14389
+ options
14390
+ );
14391
+ let authoritySessions = this.sessions[authority];
14392
+ if (authoritySessions) {
14393
+ let len = authoritySessions.length;
14394
+ for (let i = 0; i < len; i++) {
14395
+ const [sessionHandle, sessionOptions] = authoritySessions[i];
14396
+ if (!sessionHandle.destroyed && !sessionHandle.closed && util2.isDeepStrictEqual(sessionOptions, options)) {
14397
+ return sessionHandle;
14398
+ }
14399
+ }
13968
14400
  }
13969
- return /^0*1$/.test(groups[7]);
13970
- }
13971
- return false;
13972
- };
14401
+ const session = http2.connect(authority, options);
14402
+ let removed;
14403
+ let timer;
14404
+ const removeSession = () => {
14405
+ if (removed) {
14406
+ return;
14407
+ }
14408
+ removed = true;
14409
+ if (timer) {
14410
+ clearTimeout(timer);
14411
+ timer = null;
14412
+ }
14413
+ let entries = authoritySessions, len = entries.length, i = len;
14414
+ while (i--) {
14415
+ if (entries[i][0] === session) {
14416
+ if (len === 1) {
14417
+ delete this.sessions[authority];
14418
+ } else {
14419
+ entries.splice(i, 1);
14420
+ }
14421
+ if (!session.closed) {
14422
+ session.close();
14423
+ }
14424
+ return;
14425
+ }
14426
+ }
14427
+ };
14428
+ const originalRequestFn = session.request;
14429
+ const { sessionTimeout } = options;
14430
+ if (sessionTimeout != null) {
14431
+ let streamsCount = 0;
14432
+ session.request = function() {
14433
+ const stream4 = originalRequestFn.apply(this, arguments);
14434
+ streamsCount++;
14435
+ if (timer) {
14436
+ clearTimeout(timer);
14437
+ timer = null;
14438
+ }
14439
+ stream4.once("close", () => {
14440
+ if (!--streamsCount) {
14441
+ timer = setTimeout(() => {
14442
+ timer = null;
14443
+ removeSession();
14444
+ }, sessionTimeout);
14445
+ }
14446
+ });
14447
+ return stream4;
14448
+ };
14449
+ }
14450
+ session.once("close", removeSession);
14451
+ session.once("error", removeSession);
14452
+ let entry = [session, options];
14453
+ authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
14454
+ return session;
14455
+ }
14456
+ };
14457
+ var Http2Sessions_default = Http2Sessions;
14458
+
14459
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/callbackify.js
14460
+ var callbackify = (fn, reducer) => {
14461
+ return utils_default.isAsyncFn(fn) ? function(...args) {
14462
+ const cb = args.pop();
14463
+ fn.apply(this, args).then((value) => {
14464
+ try {
14465
+ reducer ? cb(null, ...reducer(value)) : cb(null, value);
14466
+ } catch (err) {
14467
+ cb(err);
14468
+ }
14469
+ }, cb);
14470
+ } : fn;
14471
+ };
14472
+ var callbackify_default = callbackify;
14473
+
14474
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/shouldBypassProxy.js
14475
+ var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost", "0.0.0.0"]);
14476
+ var trimTrailingDots = (value) => {
14477
+ let end = value.length;
14478
+ while (end && value.charCodeAt(end - 1) === 46) {
14479
+ end--;
14480
+ }
14481
+ return end === value.length ? value : value.slice(0, end);
14482
+ };
14483
+ var isIPv4Loopback = (host) => {
14484
+ const parts = host.split(".");
14485
+ if (parts.length !== 4) return false;
14486
+ if (parts[0] !== "127") return false;
14487
+ return parts.every((p) => /^\d+$/.test(p) && Number(p) >= 0 && Number(p) <= 255);
14488
+ };
14489
+ var parseIPv4Octet = (text) => {
14490
+ if (/^0[xX][0-9a-fA-F]+$/.test(text)) {
14491
+ const n = parseInt(text.slice(2), 16);
14492
+ return Number.isFinite(n) ? n : null;
14493
+ }
14494
+ if (text.length > 1 && /^0[0-7]+$/.test(text)) {
14495
+ const n = parseInt(text, 8);
14496
+ return Number.isFinite(n) ? n : null;
14497
+ }
14498
+ if (text.length > 1 && /^0[0-9]+$/.test(text)) {
14499
+ return null;
14500
+ }
14501
+ if (/^[0-9]+$/.test(text)) {
14502
+ const n = parseInt(text, 10);
14503
+ return Number.isFinite(n) ? n : null;
14504
+ }
14505
+ return null;
14506
+ };
14507
+ var normalizeIPAddress = (host) => {
14508
+ if (typeof host !== "string" || !host || host.indexOf(":") !== -1) {
14509
+ return host;
14510
+ }
14511
+ let h = host;
14512
+ if (h.charAt(0) === "[" && h.charAt(h.length - 1) === "]") {
14513
+ h = h.slice(1, -1);
14514
+ }
14515
+ h = trimTrailingDots(h);
14516
+ if (!/^[0-9.xXa-fA-F]+$/.test(h)) return host;
14517
+ const parts = h.split(".");
14518
+ if (parts.some((p) => p === "")) return host;
14519
+ if (parts.length === 4) {
14520
+ const octets = parts.map(parseIPv4Octet);
14521
+ if (octets.some((n) => n === null || n < 0 || n > 255)) return host;
14522
+ return octets.join(".");
14523
+ }
14524
+ if (parts.length > 4) {
14525
+ return host;
14526
+ }
14527
+ if (parts.length === 1) return host;
14528
+ const literalOctets = parts.slice(0, -1);
14529
+ const tail = parts[parts.length - 1];
14530
+ const tailSlots = 4 - literalOctets.length;
14531
+ const tailValue = parseIPv4Octet(tail);
14532
+ if (tailValue === null) return host;
14533
+ const maxTail = (1 << 8 * tailSlots) - 1;
14534
+ if (tailValue < 0 || tailValue > maxTail) return host;
14535
+ const tailOctets = new Array(tailSlots).fill(0);
14536
+ for (let i = tailSlots - 1, v = tailValue; i >= 0; i--, v >>= 8) {
14537
+ tailOctets[i] = v & 255;
14538
+ }
14539
+ const literal = literalOctets.map(parseIPv4Octet);
14540
+ if (literal.some((n) => n === null || n < 0 || n > 255)) return host;
14541
+ return [...literal, ...tailOctets].join(".");
14542
+ };
14543
+ var isIPv6ZeroGroup = (group) => /^0{1,4}$/.test(group);
14544
+ var isIPv6Unspecified = (host) => {
14545
+ if (host === "::") return true;
14546
+ const compressionIndex = host.indexOf("::");
14547
+ if (compressionIndex !== -1) {
14548
+ if (compressionIndex !== host.lastIndexOf("::")) return false;
14549
+ const left = host.slice(0, compressionIndex);
14550
+ const right = host.slice(compressionIndex + 2);
14551
+ const leftGroups = left ? left.split(":") : [];
14552
+ const rightGroups = right ? right.split(":") : [];
14553
+ const explicitGroups = leftGroups.length + rightGroups.length;
14554
+ return explicitGroups < 8 && leftGroups.every(isIPv6ZeroGroup) && rightGroups.every(isIPv6ZeroGroup);
14555
+ }
14556
+ const groups = host.split(":");
14557
+ return groups.length === 8 && groups.every(isIPv6ZeroGroup);
14558
+ };
14559
+ var isIPv6Loopback = (host) => {
14560
+ if (host === "::1") return true;
14561
+ const v4MappedDotted = host.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);
14562
+ if (v4MappedDotted) return isIPv4Loopback(v4MappedDotted[1]);
14563
+ const v4MappedHex = host.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);
14564
+ if (v4MappedHex) {
14565
+ const high = parseInt(v4MappedHex[1], 16);
14566
+ return high >= 32512 && high <= 32767;
14567
+ }
14568
+ const groups = host.split(":");
14569
+ if (groups.length === 8) {
14570
+ for (let i = 0; i < 7; i++) {
14571
+ if (!/^0+$/.test(groups[i])) return false;
14572
+ }
14573
+ return /^0*1$/.test(groups[7]);
14574
+ }
14575
+ return false;
14576
+ };
13973
14577
  var isLoopback = (host) => {
13974
14578
  if (!host) return false;
13975
14579
  if (LOOPBACK_HOSTNAMES.has(host)) return true;
13976
14580
  if (isIPv4Loopback(host)) return true;
14581
+ if (isIPv6Unspecified(host)) return true;
13977
14582
  return isIPv6Loopback(host);
13978
14583
  };
13979
14584
  var DEFAULT_PORTS2 = {
@@ -14019,6 +14624,40 @@ var unmapIPv4MappedIPv6 = (host) => {
14019
14624
  }
14020
14625
  return host;
14021
14626
  };
14627
+ var IPV4_OCTET_RE = /^(?:0|[1-9]\d{0,2})$/;
14628
+ var ipv4ToBytes = (host) => {
14629
+ const parts = host.split(".");
14630
+ return parts.length === 4 && parts.every((part) => IPV4_OCTET_RE.test(part) && Number(part) <= 255) ? parts.map(Number) : null;
14631
+ };
14632
+ var IPV6_GROUP_RE = /^[0-9a-f]{1,4}$/i;
14633
+ var ipv6ToBytes = (host) => {
14634
+ const halves = host.split("::");
14635
+ if (halves.length > 2) {
14636
+ return null;
14637
+ }
14638
+ const groups = halves[0] ? halves[0].split(":") : [];
14639
+ if (halves.length === 2) {
14640
+ const rear = halves[1] ? halves[1].split(":") : [];
14641
+ const missing = 8 - groups.length - rear.length;
14642
+ if (missing < 1) {
14643
+ return null;
14644
+ }
14645
+ groups.push(...new Array(missing).fill("0"), ...rear);
14646
+ }
14647
+ if (groups.length !== 8 || groups.some((group) => !IPV6_GROUP_RE.test(group))) {
14648
+ return null;
14649
+ }
14650
+ return groups.flatMap((group) => {
14651
+ const value = Number.parseInt(group, 16);
14652
+ return [value >> 8 & 255, value & 255];
14653
+ });
14654
+ };
14655
+ var ipToBytes = (host) => {
14656
+ if (typeof host !== "string" || !host) {
14657
+ return null;
14658
+ }
14659
+ return host.indexOf(":") !== -1 ? ipv6ToBytes(host) : ipv4ToBytes(host);
14660
+ };
14022
14661
  var normalizeNoProxyHost = (hostname) => {
14023
14662
  if (!hostname) {
14024
14663
  return hostname;
@@ -14026,7 +14665,89 @@ var normalizeNoProxyHost = (hostname) => {
14026
14665
  if (hostname.charAt(0) === "[" && hostname.charAt(hostname.length - 1) === "]") {
14027
14666
  hostname = hostname.slice(1, -1);
14028
14667
  }
14029
- return unmapIPv4MappedIPv6(hostname.replace(/\.+$/, ""));
14668
+ const trimmed = trimTrailingDots(hostname);
14669
+ const ipv4 = normalizeIPAddress(trimmed);
14670
+ if (ipv4 !== trimmed) {
14671
+ return ipv4;
14672
+ }
14673
+ return unmapIPv4MappedIPv6(trimmed);
14674
+ };
14675
+ var normalizeCidrBase = (input) => {
14676
+ let base = input;
14677
+ const startsBracket = base.charAt(0) === "[";
14678
+ const endsBracket = base.charAt(base.length - 1) === "]";
14679
+ const hasBracket = base.includes("[") || base.includes("]");
14680
+ if (startsBracket || endsBracket) {
14681
+ if (!startsBracket || !endsBracket) {
14682
+ return null;
14683
+ }
14684
+ base = base.slice(1, -1);
14685
+ if (base.indexOf(":") === -1 || base.includes("[") || base.includes("]")) {
14686
+ return null;
14687
+ }
14688
+ } else if (hasBracket) {
14689
+ return null;
14690
+ }
14691
+ if (!base || base.charAt(base.length - 1) === ".") {
14692
+ return null;
14693
+ }
14694
+ const wasIPv6 = base.indexOf(":") !== -1;
14695
+ if (wasIPv6) {
14696
+ try {
14697
+ base = new URL(`http://[${base}]/`).hostname.slice(1, -1);
14698
+ } catch (_err) {
14699
+ return null;
14700
+ }
14701
+ } else {
14702
+ base = normalizeIPAddress(base);
14703
+ if (!ipv4ToBytes(base)) {
14704
+ return null;
14705
+ }
14706
+ }
14707
+ return { normalized: unmapIPv4MappedIPv6(base), wasIPv6 };
14708
+ };
14709
+ var CIDR_ENTRY_RE = /^(.+)\/(0|[1-9]\d{0,2})$/;
14710
+ var parseCidrEntry = (entry) => {
14711
+ if (entry.indexOf("/") === -1) {
14712
+ return void 0;
14713
+ }
14714
+ const match = CIDR_ENTRY_RE.exec(entry);
14715
+ if (!match) {
14716
+ return null;
14717
+ }
14718
+ let prefix = Number(match[2]);
14719
+ const parsedBase = normalizeCidrBase(match[1]);
14720
+ if (!parsedBase) {
14721
+ return null;
14722
+ }
14723
+ const { normalized, wasIPv6 } = parsedBase;
14724
+ if (wasIPv6 && normalized.indexOf(":") === -1) {
14725
+ if (prefix < 96) {
14726
+ return null;
14727
+ }
14728
+ prefix -= 96;
14729
+ }
14730
+ const bytes = ipToBytes(normalized);
14731
+ if (!bytes || prefix > bytes.length * 8) {
14732
+ return null;
14733
+ }
14734
+ return { bytes, prefix };
14735
+ };
14736
+ var isInSubnet = (addressBytes, networkBytes, prefix) => {
14737
+ const fullBytes = prefix >> 3;
14738
+ for (let i = 0; i < fullBytes; i++) {
14739
+ if (addressBytes[i] !== networkBytes[i]) {
14740
+ return false;
14741
+ }
14742
+ }
14743
+ const remainingBits = prefix & 7;
14744
+ if (remainingBits) {
14745
+ const mask = 255 << 8 - remainingBits & 255;
14746
+ if ((addressBytes[fullBytes] & mask) !== (networkBytes[fullBytes] & mask)) {
14747
+ return false;
14748
+ }
14749
+ }
14750
+ return true;
14030
14751
  };
14031
14752
  function shouldBypassProxy(location) {
14032
14753
  let parsed;
@@ -14044,10 +14765,18 @@ function shouldBypassProxy(location) {
14044
14765
  }
14045
14766
  const port = Number.parseInt(parsed.port, 10) || DEFAULT_PORTS2[parsed.protocol.split(":", 1)[0]] || 0;
14046
14767
  const hostname = normalizeNoProxyHost(parsed.hostname.toLowerCase());
14768
+ const hostnameBytes = ipToBytes(hostname);
14047
14769
  return noProxy.split(/[\s,]+/).some((entry) => {
14048
14770
  if (!entry) {
14049
14771
  return false;
14050
14772
  }
14773
+ if (entry === "*") {
14774
+ return true;
14775
+ }
14776
+ const cidr = parseCidrEntry(entry);
14777
+ if (cidr !== void 0) {
14778
+ return cidr !== null && !!hostnameBytes && hostnameBytes.length === cidr.bytes.length && isInSubnet(hostnameBytes, cidr.bytes, cidr.prefix);
14779
+ }
14051
14780
  let [entryHost, entryPort] = parseNoProxyEntry(entry);
14052
14781
  entryHost = normalizeNoProxyHost(entryHost);
14053
14782
  if (!entryHost) {
@@ -14066,7 +14795,7 @@ function shouldBypassProxy(location) {
14066
14795
  });
14067
14796
  }
14068
14797
 
14069
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/speedometer.js
14798
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/speedometer.js
14070
14799
  function speedometer(samplesCount, min) {
14071
14800
  samplesCount = samplesCount || 10;
14072
14801
  const bytes = new Array(samplesCount);
@@ -14102,7 +14831,7 @@ function speedometer(samplesCount, min) {
14102
14831
  }
14103
14832
  var speedometer_default = speedometer;
14104
14833
 
14105
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/throttle.js
14834
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/throttle.js
14106
14835
  function throttle(fn, freq) {
14107
14836
  let timestamp = 0;
14108
14837
  let threshold = 1e3 / freq;
@@ -14133,21 +14862,22 @@ function throttle(fn, freq) {
14133
14862
  }
14134
14863
  };
14135
14864
  const flush = () => lastArgs && invoke(lastArgs);
14136
- return [throttled, flush];
14865
+ const flushWith = (...args) => invoke(args);
14866
+ return [throttled, flush, flushWith];
14137
14867
  }
14138
14868
  var throttle_default = throttle;
14139
14869
 
14140
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/progressEventReducer.js
14870
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/progressEventReducer.js
14141
14871
  var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
14142
14872
  let bytesNotified = 0;
14143
14873
  const _speedometer = speedometer_default(50, 250);
14144
14874
  return throttle_default((e) => {
14145
- if (!e || typeof e.loaded !== "number") {
14875
+ if (!e || !utils_default.isNumber(e.loaded)) {
14146
14876
  return;
14147
14877
  }
14148
14878
  const rawLoaded = e.loaded;
14149
14879
  const total = e.lengthComputable ? e.total : void 0;
14150
- const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
14880
+ const loaded = Math.max(0, total != null ? Math.min(rawLoaded, total) : rawLoaded);
14151
14881
  const progressBytes = Math.max(0, loaded - bytesNotified);
14152
14882
  const rate = _speedometer(progressBytes);
14153
14883
  bytesNotified = Math.max(bytesNotified, loaded);
@@ -14176,10 +14906,66 @@ var progressEventDecorator = (total, throttled) => {
14176
14906
  throttled[1]
14177
14907
  ];
14178
14908
  };
14179
- var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
14909
+ var asyncDecorator = (fn, scheduler = utils_default.asap) => (...args) => scheduler(() => fn(...args));
14180
14910
 
14181
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
14182
- function estimateDataURLDecodedBytes(url2) {
14911
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
14912
+ var isHexDigit = (charCode) => charCode >= 48 && charCode <= 57 || charCode >= 65 && charCode <= 70 || charCode >= 97 && charCode <= 102;
14913
+ var isPercentEncodedByte = (str, i, len) => i + 2 < len && isHexDigit(str.charCodeAt(i + 1)) && isHexDigit(str.charCodeAt(i + 2));
14914
+ var hexValue = (charCode) => charCode <= 57 ? charCode - 48 : (charCode & 223) - 55;
14915
+ var isBase64Char = (charCode) => charCode >= 65 && charCode <= 90 || // A-Z
14916
+ charCode >= 97 && charCode <= 122 || // a-z
14917
+ charCode >= 48 && charCode <= 57 || // 0-9
14918
+ charCode === 43 || // +
14919
+ charCode === 47 || // /
14920
+ charCode === 45 || // - (base64url)
14921
+ charCode === 95;
14922
+ var isBase64Whitespace = (charCode) => charCode === 9 || charCode === 10 || charCode === 12 || charCode === 13 || charCode === 32;
14923
+ var base64Bytes = (significant) => {
14924
+ const groups = Math.floor(significant / 4);
14925
+ const remainder = significant % 4;
14926
+ return groups * 3 + (remainder === 2 ? 1 : remainder === 3 ? 2 : 0);
14927
+ };
14928
+ var estimateBase64BufferAllocation = (body) => {
14929
+ const len = body.length;
14930
+ let padding = 0;
14931
+ if (len > 0 && body.charCodeAt(len - 1) === 61) {
14932
+ padding++;
14933
+ if (len > 1 && body.charCodeAt(len - 2) === 61) {
14934
+ padding++;
14935
+ }
14936
+ }
14937
+ return Math.floor((len - padding) * 3 / 4);
14938
+ };
14939
+ var estimatePercentDecodedBase64Bytes = (body) => {
14940
+ const len = body.length;
14941
+ let significant = 0;
14942
+ let padding = 0;
14943
+ let invalid = false;
14944
+ for (let i = 0; i < len; i++) {
14945
+ let code = body.charCodeAt(i);
14946
+ if (code === 37 && isPercentEncodedByte(body, i, len)) {
14947
+ code = hexValue(body.charCodeAt(i + 1)) * 16 + hexValue(body.charCodeAt(i + 2));
14948
+ i += 2;
14949
+ }
14950
+ if (isBase64Whitespace(code)) {
14951
+ continue;
14952
+ }
14953
+ if (code === 61) {
14954
+ padding++;
14955
+ continue;
14956
+ }
14957
+ if (!isBase64Char(code) || padding > 0) {
14958
+ invalid = true;
14959
+ continue;
14960
+ }
14961
+ significant++;
14962
+ }
14963
+ if (invalid || padding > 2 || padding > 0 && (significant + padding) % 4 !== 0 || significant % 4 === 1) {
14964
+ return estimateBase64BufferAllocation(body);
14965
+ }
14966
+ return base64Bytes(significant);
14967
+ };
14968
+ var estimateDataURLBytes = (url2, estimateBase64) => {
14183
14969
  if (!url2 || typeof url2 !== "string") return 0;
14184
14970
  if (!url2.startsWith("data:")) return 0;
14185
14971
  const comma = url2.indexOf(",");
@@ -14188,51 +14974,15 @@ function estimateDataURLDecodedBytes(url2) {
14188
14974
  const body = url2.slice(comma + 1);
14189
14975
  const isBase64 = /;base64/i.test(meta);
14190
14976
  if (isBase64) {
14191
- let effectiveLen = body.length;
14192
- const len = body.length;
14193
- for (let i = 0; i < len; i++) {
14194
- if (body.charCodeAt(i) === 37 && i + 2 < len) {
14195
- const a = body.charCodeAt(i + 1);
14196
- const b = body.charCodeAt(i + 2);
14197
- const isHex = (a >= 48 && a <= 57 || a >= 65 && a <= 70 || a >= 97 && a <= 102) && (b >= 48 && b <= 57 || b >= 65 && b <= 70 || b >= 97 && b <= 102);
14198
- if (isHex) {
14199
- effectiveLen -= 2;
14200
- i += 2;
14201
- }
14202
- }
14203
- }
14204
- let pad = 0;
14205
- let idx = len - 1;
14206
- const tailIsPct3D = (j) => j >= 2 && body.charCodeAt(j - 2) === 37 && // '%'
14207
- body.charCodeAt(j - 1) === 51 && // '3'
14208
- (body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100);
14209
- if (idx >= 0) {
14210
- if (body.charCodeAt(idx) === 61) {
14211
- pad++;
14212
- idx--;
14213
- } else if (tailIsPct3D(idx)) {
14214
- pad++;
14215
- idx -= 3;
14216
- }
14217
- }
14218
- if (pad === 1 && idx >= 0) {
14219
- if (body.charCodeAt(idx) === 61) {
14220
- pad++;
14221
- } else if (tailIsPct3D(idx)) {
14222
- pad++;
14223
- }
14224
- }
14225
- const groups = Math.floor(effectiveLen / 4);
14226
- const bytes2 = groups * 3 - (pad || 0);
14227
- return bytes2 > 0 ? bytes2 : 0;
14228
- }
14229
- if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") {
14230
- return Buffer.byteLength(body, "utf8");
14977
+ return estimateBase64(body);
14231
14978
  }
14232
14979
  let bytes = 0;
14233
14980
  for (let i = 0, len = body.length; i < len; i++) {
14234
14981
  const c = body.charCodeAt(i);
14235
- if (c < 128) {
14982
+ if (c === 37 && isPercentEncodedByte(body, i, len)) {
14983
+ bytes += 1;
14984
+ i += 2;
14985
+ } else if (c < 128) {
14236
14986
  bytes += 1;
14237
14987
  } else if (c < 2048) {
14238
14988
  bytes += 2;
@@ -14249,9 +14999,19 @@ function estimateDataURLDecodedBytes(url2) {
14249
14999
  }
14250
15000
  }
14251
15001
  return bytes;
15002
+ };
15003
+ function estimateDataURLDecodedBytes(url2) {
15004
+ const fragmentIndex = typeof url2 === "string" ? url2.indexOf("#") : -1;
15005
+ return estimateDataURLBytes(
15006
+ fragmentIndex === -1 ? url2 : url2.slice(0, fragmentIndex),
15007
+ estimatePercentDecodedBase64Bytes
15008
+ );
15009
+ }
15010
+ function estimateDataURLBufferAllocation(url2) {
15011
+ return estimateDataURLBytes(url2, estimateBase64BufferAllocation);
14252
15012
  }
14253
15013
 
14254
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/http.js
15014
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
14255
15015
  var zlibOptions = {
14256
15016
  flush: zlib.constants.Z_SYNC_FLUSH,
14257
15017
  finishFlush: zlib.constants.Z_SYNC_FLUSH
@@ -14260,26 +15020,57 @@ var brotliOptions = {
14260
15020
  flush: zlib.constants.BROTLI_OPERATION_FLUSH,
14261
15021
  finishFlush: zlib.constants.BROTLI_OPERATION_FLUSH
14262
15022
  };
15023
+ var zstdOptions = {
15024
+ flush: zlib.constants.ZSTD_e_flush,
15025
+ finishFlush: zlib.constants.ZSTD_e_flush
15026
+ };
14263
15027
  var isBrotliSupported = utils_default.isFunction(zlib.createBrotliDecompress);
15028
+ var isZstdSupported = utils_default.isFunction(zlib.createZstdDecompress);
15029
+ var ACCEPT_ENCODING = "gzip, compress, deflate" + (isBrotliSupported ? ", br" : "");
15030
+ var ACCEPT_ENCODING_WITH_ZSTD = ACCEPT_ENCODING + (isZstdSupported ? ", zstd" : "");
15031
+ var scheduleProgress = typeof process !== "undefined" && process.nextTick ? process.nextTick.bind(process) : utils_default.asap;
14264
15032
  var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;
14265
15033
  var isHttps = /https:?/;
14266
- var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
14267
- function setFormDataHeaders(headers, formHeaders, policy) {
14268
- if (policy !== "content-only") {
14269
- headers.set(formHeaders);
14270
- return;
14271
- }
14272
- Object.entries(formHeaders).forEach(([key, val]) => {
14273
- if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
14274
- headers.set(key, val);
14275
- }
14276
- });
14277
- }
14278
15034
  var kAxiosSocketListener = /* @__PURE__ */ Symbol("axios.http.socketListener");
14279
15035
  var kAxiosCurrentReq = /* @__PURE__ */ Symbol("axios.http.currentReq");
15036
+ function handleSocketError(err) {
15037
+ const current = this[kAxiosCurrentReq];
15038
+ if (current && !current.destroyed) {
15039
+ current.destroy(err);
15040
+ }
15041
+ }
14280
15042
  var kAxiosInstalledTunnel = /* @__PURE__ */ Symbol("axios.http.installedTunnel");
14281
15043
  var tunnelingAgentCache = /* @__PURE__ */ new Map();
14282
15044
  var tunnelingAgentCacheUser = /* @__PURE__ */ new WeakMap();
15045
+ var NODE_NATIVE_ENV_PROXY_SUPPORT = {
15046
+ 22: 21,
15047
+ 24: 5
15048
+ };
15049
+ function isNodeNativeEnvProxySupported(nodeVersion = process.versions && process.versions.node) {
15050
+ if (!nodeVersion) {
15051
+ return false;
15052
+ }
15053
+ const [major, minor] = nodeVersion.split(".").map((part) => Number(part));
15054
+ if (!Number.isInteger(major) || !Number.isInteger(minor)) {
15055
+ return false;
15056
+ }
15057
+ if (major > 24) {
15058
+ return true;
15059
+ }
15060
+ return NODE_NATIVE_ENV_PROXY_SUPPORT[major] != null && minor >= NODE_NATIVE_ENV_PROXY_SUPPORT[major];
15061
+ }
15062
+ function isNodeEnvProxyEnabled(agent, nodeVersion = process.versions && process.versions.node) {
15063
+ if (!isNodeNativeEnvProxySupported(nodeVersion)) {
15064
+ return false;
15065
+ }
15066
+ const agentOptions = agent && agent.options;
15067
+ return Boolean(
15068
+ agentOptions && utils_default.hasOwnProp(agentOptions, "proxyEnv") && agentOptions.proxyEnv != null
15069
+ );
15070
+ }
15071
+ function getProxyEnvAgent(options, configHttpAgent, configHttpsAgent) {
15072
+ return isHttps.test(options.protocol) ? configHttpsAgent || https.globalAgent : configHttpAgent || http.globalAgent;
15073
+ }
14283
15074
  function getTunnelingAgent(agentOptions, userHttpsAgent) {
14284
15075
  const key = agentOptions.protocol + "//" + agentOptions.hostname + ":" + (agentOptions.port || "") + "#" + (agentOptions.auth || "");
14285
15076
  const cache = userHttpsAgent ? tunnelingAgentCacheUser.get(userHttpsAgent) || tunnelingAgentCacheUser.set(userHttpsAgent, /* @__PURE__ */ new Map()).get(userHttpsAgent) : tunnelingAgentCache;
@@ -14287,6 +15078,13 @@ function getTunnelingAgent(agentOptions, userHttpsAgent) {
14287
15078
  if (agent) return agent;
14288
15079
  const merged = userHttpsAgent && userHttpsAgent.options ? { ...userHttpsAgent.options, ...agentOptions } : agentOptions;
14289
15080
  agent = new import_https_proxy_agent.default(merged);
15081
+ if (userHttpsAgent && userHttpsAgent.options) {
15082
+ const originTLSOptions = { ...userHttpsAgent.options };
15083
+ const callback = agent.callback;
15084
+ agent.callback = function axiosTunnelingAgentCallback(req, opts) {
15085
+ return callback.call(this, req, { ...originTLSOptions, ...opts });
15086
+ };
15087
+ }
14290
15088
  agent[kAxiosInstalledTunnel] = true;
14291
15089
  cache.set(key, agent);
14292
15090
  return agent;
@@ -14308,90 +15106,45 @@ var flushOnFinish = (stream4, [throttled, flush]) => {
14308
15106
  stream4.on("end", flush).on("error", flush);
14309
15107
  return throttled;
14310
15108
  };
14311
- var Http2Sessions = class {
14312
- constructor() {
14313
- this.sessions = /* @__PURE__ */ Object.create(null);
14314
- }
14315
- getSession(authority, options) {
14316
- options = Object.assign(
14317
- {
14318
- sessionTimeout: 1e3
14319
- },
14320
- options
14321
- );
14322
- let authoritySessions = this.sessions[authority];
14323
- if (authoritySessions) {
14324
- let len = authoritySessions.length;
14325
- for (let i = 0; i < len; i++) {
14326
- const [sessionHandle, sessionOptions] = authoritySessions[i];
14327
- if (!sessionHandle.destroyed && !sessionHandle.closed && util2.isDeepStrictEqual(sessionOptions, options)) {
14328
- return sessionHandle;
14329
- }
14330
- }
14331
- }
14332
- const session = http2.connect(authority, options);
14333
- let removed;
14334
- const removeSession = () => {
14335
- if (removed) {
14336
- return;
14337
- }
14338
- removed = true;
14339
- let entries = authoritySessions, len = entries.length, i = len;
14340
- while (i--) {
14341
- if (entries[i][0] === session) {
14342
- if (len === 1) {
14343
- delete this.sessions[authority];
14344
- } else {
14345
- entries.splice(i, 1);
14346
- }
14347
- if (!session.closed) {
14348
- session.close();
14349
- }
14350
- return;
14351
- }
14352
- }
14353
- };
14354
- const originalRequestFn = session.request;
14355
- const { sessionTimeout } = options;
14356
- if (sessionTimeout != null) {
14357
- let timer;
14358
- let streamsCount = 0;
14359
- session.request = function() {
14360
- const stream4 = originalRequestFn.apply(this, arguments);
14361
- streamsCount++;
14362
- if (timer) {
14363
- clearTimeout(timer);
14364
- timer = null;
14365
- }
14366
- stream4.once("close", () => {
14367
- if (!--streamsCount) {
14368
- timer = setTimeout(() => {
14369
- timer = null;
14370
- removeSession();
14371
- }, sessionTimeout);
14372
- }
14373
- });
14374
- return stream4;
14375
- };
14376
- }
14377
- session.once("close", removeSession);
14378
- let entry = [session, options];
14379
- authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
14380
- return session;
14381
- }
14382
- };
14383
- var http2Sessions = new Http2Sessions();
15109
+ var http2Sessions = new Http2Sessions_default();
14384
15110
  function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
14385
15111
  if (options.beforeRedirects.proxy) {
14386
15112
  options.beforeRedirects.proxy(options);
14387
15113
  }
15114
+ if (options.beforeRedirects.auth) {
15115
+ options.beforeRedirects.auth(options);
15116
+ }
15117
+ if (options.beforeRedirects.sensitiveHeaders) {
15118
+ options.beforeRedirects.sensitiveHeaders(options, requestDetails);
15119
+ }
14388
15120
  if (options.beforeRedirects.config) {
14389
15121
  options.beforeRedirects.config(options, responseDetails, requestDetails);
14390
15122
  }
14391
15123
  }
14392
- function setProxy(options, configProxy, location, isRedirect, configHttpsAgent) {
15124
+ function stripMatchingHeaders(headers, sensitiveSet) {
15125
+ if (!headers) {
15126
+ return;
15127
+ }
15128
+ Object.keys(headers).forEach((header) => {
15129
+ if (sensitiveSet.has(header.toLowerCase())) {
15130
+ delete headers[header];
15131
+ }
15132
+ });
15133
+ }
15134
+ function isSameOriginRedirect(redirectOptions, requestDetails) {
15135
+ if (!requestDetails) {
15136
+ return false;
15137
+ }
15138
+ try {
15139
+ return new URL(requestDetails.url).origin === new URL(redirectOptions.href).origin;
15140
+ } catch (e) {
15141
+ return false;
15142
+ }
15143
+ }
15144
+ function setProxy(options, configProxy, location, isRedirect, configHttpsAgent, configHttpAgent, allowEnvProxy = true) {
14393
15145
  let proxy = configProxy;
14394
- if (!proxy && proxy !== false) {
15146
+ const proxyEnvAgent = getProxyEnvAgent(options, configHttpAgent, configHttpsAgent);
15147
+ if (!proxy && proxy !== false && allowEnvProxy && !isNodeEnvProxyEnabled(proxyEnvAgent)) {
14395
15148
  const proxyUrl = getProxyForUrl(location);
14396
15149
  if (proxyUrl) {
14397
15150
  if (!shouldBypassProxy(location)) {
@@ -14482,8 +15235,19 @@ function setProxy(options, configProxy, location, isRedirect, configHttpsAgent)
14482
15235
  }
14483
15236
  }
14484
15237
  options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
14485
- setProxy(redirectOptions, configProxy, redirectOptions.href, true, configHttpsAgent);
15238
+ setProxy(
15239
+ redirectOptions,
15240
+ configProxy,
15241
+ redirectOptions.href,
15242
+ true,
15243
+ configHttpsAgent,
15244
+ configHttpAgent,
15245
+ allowEnvProxy
15246
+ );
14486
15247
  };
15248
+ return Boolean(
15249
+ proxy || configProxy !== false && allowEnvProxy && isNodeEnvProxyEnabled(proxyEnvAgent)
15250
+ );
14487
15251
  }
14488
15252
  var isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
14489
15253
  var wrapAsync = (asyncExecutor) => {
@@ -14508,7 +15272,7 @@ var wrapAsync = (asyncExecutor) => {
14508
15272
  };
14509
15273
  var resolveFamily = ({ address, family }) => {
14510
15274
  if (!utils_default.isString(address)) {
14511
- throw TypeError("address must be a string");
15275
+ throw new AxiosError_default("address must be a string", AxiosError_default.ERR_BAD_OPTION_VALUE);
14512
15276
  }
14513
15277
  return {
14514
15278
  address,
@@ -14516,12 +15280,36 @@ var resolveFamily = ({ address, family }) => {
14516
15280
  };
14517
15281
  };
14518
15282
  var buildAddressEntry = (address, family) => resolveFamily(utils_default.isObject(address) ? address : { address, family });
15283
+ var normalizedLookupCache = /* @__PURE__ */ new WeakMap();
15284
+ var normalizeLookup = (lookup) => {
15285
+ let normalized = normalizedLookupCache.get(lookup);
15286
+ if (normalized) {
15287
+ return normalized;
15288
+ }
15289
+ const callbackLookup = callbackify_default(lookup, (value) => utils_default.isArray(value) ? value : [value]);
15290
+ normalized = (hostname, opt, cb) => {
15291
+ callbackLookup(hostname, opt, (err, arg0, arg1) => {
15292
+ if (err) {
15293
+ return cb(err);
15294
+ }
15295
+ let addresses;
15296
+ try {
15297
+ addresses = utils_default.isArray(arg0) ? arg0.map((addr) => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
15298
+ } catch (error) {
15299
+ return cb(error);
15300
+ }
15301
+ opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
15302
+ });
15303
+ };
15304
+ normalizedLookupCache.set(lookup, normalized);
15305
+ return normalized;
15306
+ };
14519
15307
  var http2Transport = {
14520
15308
  request(options, cb) {
14521
15309
  const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
14522
15310
  const { http2Options, headers } = options;
14523
15311
  const session = http2Sessions.getSession(authority, http2Options);
14524
- const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = http2.constants;
15312
+ const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = http22.constants;
14525
15313
  const http2Headers = {
14526
15314
  [HTTP2_HEADER_SCHEME]: options.protocol.replace(":", ""),
14527
15315
  [HTTP2_HEADER_METHOD]: options.method,
@@ -14545,39 +15333,56 @@ var http2Transport = {
14545
15333
  };
14546
15334
  var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14547
15335
  return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
14548
- const own2 = (key) => utils_default.hasOwnProp(config, key) ? config[key] : void 0;
15336
+ const own2 = (key) => utils_default.getSafeProp(config, key);
15337
+ const transitional2 = own2("transitional") || transitional_default;
14549
15338
  let data = own2("data");
14550
15339
  let lookup = own2("lookup");
14551
15340
  let family = own2("family");
14552
15341
  let httpVersion = own2("httpVersion");
14553
15342
  if (httpVersion === void 0) httpVersion = 1;
15343
+ const rawHttpVersion = httpVersion;
14554
15344
  let http2Options = own2("http2Options");
15345
+ const httpAgent = own2("httpAgent");
15346
+ const httpsAgent = own2("httpsAgent");
15347
+ const configProxy = own2("proxy");
14555
15348
  const responseType = own2("responseType");
14556
15349
  const responseEncoding = own2("responseEncoding");
14557
- const method = config.method.toUpperCase();
15350
+ const socketPath = own2("socketPath");
15351
+ const method = own2("method").toUpperCase();
15352
+ const maxRedirects = own2("maxRedirects");
15353
+ const maxBodyLength = own2("maxBodyLength");
15354
+ const maxContentLength = own2("maxContentLength");
15355
+ const decompress = own2("decompress");
14558
15356
  let isDone;
14559
15357
  let rejected = false;
14560
15358
  let req;
14561
15359
  let connectPhaseTimer;
14562
- httpVersion = +httpVersion;
15360
+ try {
15361
+ httpVersion = +httpVersion;
15362
+ } catch (err) {
15363
+ throw new AxiosError_default(
15364
+ "Invalid protocol version: value is not a number",
15365
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
15366
+ config
15367
+ );
15368
+ }
14563
15369
  if (Number.isNaN(httpVersion)) {
14564
- throw TypeError(`Invalid protocol version: '${config.httpVersion}' is not a number`);
15370
+ throw new AxiosError_default(
15371
+ `Invalid protocol version: '${rawHttpVersion}' is not a number`,
15372
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
15373
+ config
15374
+ );
14565
15375
  }
14566
15376
  if (httpVersion !== 1 && httpVersion !== 2) {
14567
- throw TypeError(`Unsupported protocol version '${httpVersion}'`);
15377
+ throw new AxiosError_default(
15378
+ `Unsupported protocol version '${httpVersion}'`,
15379
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
15380
+ config
15381
+ );
14568
15382
  }
14569
15383
  const isHttp2 = httpVersion === 2;
14570
15384
  if (lookup) {
14571
- const _lookup = callbackify_default(lookup, (value) => utils_default.isArray(value) ? value : [value]);
14572
- lookup = (hostname, opt, cb) => {
14573
- _lookup(hostname, opt, (err, arg0, arg1) => {
14574
- if (err) {
14575
- return cb(err);
14576
- }
14577
- const addresses = utils_default.isArray(arg0) ? arg0.map((addr) => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
14578
- opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
14579
- });
14580
- };
15385
+ lookup = normalizeLookup(lookup);
14581
15386
  }
14582
15387
  const abortEmitter = new EventEmitter();
14583
15388
  function abort(reason) {
@@ -14587,7 +15392,6 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14587
15392
  !reason || reason.type ? new CanceledError_default(null, config, req) : reason
14588
15393
  );
14589
15394
  } catch (err) {
14590
- console.warn("emit error", err);
14591
15395
  }
14592
15396
  }
14593
15397
  function clearConnectPhaseTimer() {
@@ -14597,10 +15401,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14597
15401
  }
14598
15402
  }
14599
15403
  function createTimeoutError() {
14600
- let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
14601
- const transitional2 = config.transitional || transitional_default;
14602
- if (config.timeoutErrorMessage) {
14603
- timeoutErrorMessage = config.timeoutErrorMessage;
15404
+ const configTimeout = own2("timeout");
15405
+ let timeoutErrorMessage = configTimeout ? "timeout of " + configTimeout + "ms exceeded" : "timeout exceeded";
15406
+ const configTimeoutErrorMessage = own2("timeoutErrorMessage");
15407
+ if (configTimeoutErrorMessage) {
15408
+ timeoutErrorMessage = configTimeoutErrorMessage;
14604
15409
  }
14605
15410
  return new AxiosError_default(
14606
15411
  timeoutErrorMessage,
@@ -14644,17 +15449,18 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14644
15449
  onFinished();
14645
15450
  }
14646
15451
  });
14647
- const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
14648
- const parsed = new URL(fullPath, platform_default.hasBrowserEnv ? platform_default.origin : void 0);
15452
+ const fullPath = buildFullPath(own2("baseURL"), own2("url"), own2("allowAbsoluteUrls"), config);
15453
+ const urlBase = socketPath ? "http://localhost" : platform_default.hasBrowserEnv ? platform_default.origin : void 0;
15454
+ const parsed = new URL(fullPath, urlBase);
14649
15455
  const protocol = parsed.protocol || supportedProtocols[0];
14650
15456
  if (protocol === "data:") {
14651
- if (config.maxContentLength > -1) {
14652
- const dataUrl = String(config.url || fullPath || "");
14653
- const estimated = estimateDataURLDecodedBytes(dataUrl);
14654
- if (estimated > config.maxContentLength) {
15457
+ if (maxContentLength > -1) {
15458
+ const dataUrl = String(own2("url") || fullPath || "");
15459
+ const estimated = estimateDataURLBufferAllocation(dataUrl);
15460
+ if (estimated > maxContentLength) {
14655
15461
  return reject(
14656
15462
  new AxiosError_default(
14657
- "maxContentLength size of " + config.maxContentLength + " exceeded",
15463
+ "maxContentLength size of " + maxContentLength + " exceeded",
14658
15464
  AxiosError_default.ERR_BAD_RESPONSE,
14659
15465
  config
14660
15466
  )
@@ -14671,7 +15477,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14671
15477
  });
14672
15478
  }
14673
15479
  try {
14674
- convertedData = fromDataURI(config.url, responseType === "blob", {
15480
+ convertedData = fromDataURI(own2("url"), responseType === "blob", {
14675
15481
  Blob: config.env && config.env.Blob
14676
15482
  });
14677
15483
  } catch (err) {
@@ -14720,7 +15526,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14720
15526
  setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
14721
15527
  if (!headers.hasContentLength()) {
14722
15528
  try {
14723
- const knownLength = await util2.promisify(data.getLength).call(data);
15529
+ const knownLength = await util3.promisify(data.getLength).call(data);
14724
15530
  Number.isFinite(knownLength) && knownLength >= 0 && headers.setContentLength(knownLength);
14725
15531
  } catch (e) {
14726
15532
  }
@@ -14745,7 +15551,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14745
15551
  );
14746
15552
  }
14747
15553
  headers.setContentLength(data.length, false);
14748
- if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
15554
+ if (maxBodyLength > -1 && data.length > maxBodyLength) {
14749
15555
  return reject(
14750
15556
  new AxiosError_default(
14751
15557
  "Request body larger than maxBodyLength limit",
@@ -14781,7 +15587,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14781
15587
  data,
14782
15588
  progressEventDecorator(
14783
15589
  contentLength,
14784
- progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
15590
+ progressEventReducer(asyncDecorator(onUploadProgress, scheduleProgress), false, 3)
14785
15591
  )
14786
15592
  )
14787
15593
  );
@@ -14789,11 +15595,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14789
15595
  let auth = void 0;
14790
15596
  const configAuth = own2("auth");
14791
15597
  if (configAuth) {
14792
- const username = configAuth.username || "";
14793
- const password = configAuth.password || "";
15598
+ const username = utils_default.getSafeProp(configAuth, "username") || "";
15599
+ const password = utils_default.getSafeProp(configAuth, "password") || "";
14794
15600
  auth = username + ":" + password;
14795
15601
  }
14796
- if (!auth && parsed.username) {
15602
+ if (!auth && (parsed.username || parsed.password)) {
14797
15603
  const urlUsername = decodeURIComponentSafe(parsed.username);
14798
15604
  const urlPassword = decodeURIComponentSafe(parsed.password);
14799
15605
  auth = urlUsername + ":" + urlPassword;
@@ -14803,96 +15609,165 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14803
15609
  try {
14804
15610
  path = buildURL(
14805
15611
  parsed.pathname + parsed.search,
14806
- config.params,
14807
- config.paramsSerializer
15612
+ own2("params"),
15613
+ own2("paramsSerializer")
14808
15614
  ).replace(/^\?/, "");
14809
15615
  } catch (err) {
14810
- const customErr = new Error(err.message);
14811
- customErr.config = config;
14812
- customErr.url = config.url;
14813
- customErr.exists = true;
14814
- return reject(customErr);
15616
+ return reject(
15617
+ AxiosError_default.from(err, AxiosError_default.ERR_BAD_REQUEST, config, null, null, {
15618
+ url: own2("url"),
15619
+ exists: true
15620
+ })
15621
+ );
14815
15622
  }
14816
15623
  headers.set(
14817
15624
  "Accept-Encoding",
14818
- "gzip, compress, deflate" + (isBrotliSupported ? ", br" : ""),
15625
+ utils_default.hasOwnProp(transitional2, "advertiseZstdAcceptEncoding") && transitional2.advertiseZstdAcceptEncoding === true ? ACCEPT_ENCODING_WITH_ZSTD : ACCEPT_ENCODING,
14819
15626
  false
14820
15627
  );
15628
+ if (isHttp2 && lookup) {
15629
+ http2Options = Object.assign(/* @__PURE__ */ Object.create(null), http2Options, { lookup });
15630
+ }
14821
15631
  const options = Object.assign(/* @__PURE__ */ Object.create(null), {
14822
15632
  path,
14823
15633
  method,
14824
15634
  headers: toByteStringHeaderObject(headers),
14825
- agents: { http: config.httpAgent, https: config.httpsAgent },
15635
+ agents: { http: httpAgent, https: httpsAgent },
14826
15636
  auth,
14827
15637
  protocol,
14828
15638
  family,
14829
15639
  beforeRedirect: dispatchBeforeRedirect,
14830
15640
  beforeRedirects: /* @__PURE__ */ Object.create(null),
14831
- http2Options
15641
+ http2Options,
15642
+ createConnection: void 0
14832
15643
  });
14833
15644
  !utils_default.isUndefined(lookup) && (options.lookup = lookup);
14834
- if (config.socketPath) {
14835
- if (typeof config.socketPath !== "string") {
15645
+ let proxyApplied = false;
15646
+ if (socketPath) {
15647
+ if (typeof socketPath !== "string") {
14836
15648
  return reject(
14837
15649
  new AxiosError_default("socketPath must be a string", AxiosError_default.ERR_BAD_OPTION_VALUE, config)
14838
15650
  );
14839
15651
  }
14840
- if (config.allowedSocketPaths != null) {
14841
- const allowed = Array.isArray(config.allowedSocketPaths) ? config.allowedSocketPaths : [config.allowedSocketPaths];
14842
- const resolvedSocket = resolvePath(config.socketPath);
15652
+ const allowedSocketPaths = own2("allowedSocketPaths");
15653
+ if (allowedSocketPaths != null) {
15654
+ const allowed = Array.isArray(allowedSocketPaths) ? allowedSocketPaths : [allowedSocketPaths];
15655
+ const resolvedSocket = resolvePath(socketPath);
14843
15656
  const isAllowed = allowed.some(
14844
15657
  (entry) => typeof entry === "string" && resolvePath(entry) === resolvedSocket
14845
15658
  );
14846
15659
  if (!isAllowed) {
14847
15660
  return reject(
14848
15661
  new AxiosError_default(
14849
- `socketPath "${config.socketPath}" is not permitted by allowedSocketPaths`,
15662
+ `socketPath "${socketPath}" is not permitted by allowedSocketPaths`,
14850
15663
  AxiosError_default.ERR_BAD_OPTION_VALUE,
14851
15664
  config
14852
15665
  )
14853
15666
  );
14854
15667
  }
14855
15668
  }
14856
- options.socketPath = config.socketPath;
15669
+ options.socketPath = socketPath;
14857
15670
  } else {
14858
15671
  options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
14859
15672
  options.port = parsed.port;
14860
- setProxy(
15673
+ proxyApplied = setProxy(
14861
15674
  options,
14862
- config.proxy,
15675
+ configProxy,
14863
15676
  protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path,
14864
15677
  false,
14865
- config.httpsAgent
15678
+ httpsAgent,
15679
+ httpAgent,
15680
+ // The HTTP/2 transport connects independently of HTTP/1 agents, so it
15681
+ // cannot apply either axios-resolved or agent-local environment proxies.
15682
+ // Explicit proxy config is still processed and rejected below.
15683
+ !isHttp2
14866
15684
  );
14867
15685
  }
14868
15686
  let transport;
14869
15687
  let isNativeTransport = false;
15688
+ let transportEnforcesMaxBodyLength = false;
14870
15689
  const isHttpsRequest = isHttps.test(options.protocol);
14871
15690
  if (options.agent == null) {
14872
- options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
15691
+ options.agent = isHttpsRequest ? httpsAgent : httpAgent;
14873
15692
  }
14874
15693
  if (isHttp2) {
15694
+ if (proxyApplied) {
15695
+ return reject(
15696
+ new AxiosError_default(
15697
+ "HTTP/2 requests with a proxy are not supported",
15698
+ AxiosError_default.ERR_NOT_SUPPORT,
15699
+ config
15700
+ )
15701
+ );
15702
+ }
14875
15703
  transport = http2Transport;
14876
15704
  } else {
14877
15705
  const configTransport = own2("transport");
14878
15706
  if (configTransport) {
14879
15707
  transport = configTransport;
14880
- } else if (config.maxRedirects === 0) {
15708
+ } else if (maxRedirects === 0) {
14881
15709
  transport = isHttpsRequest ? https : http;
14882
15710
  isNativeTransport = true;
14883
15711
  } else {
14884
- if (config.maxRedirects) {
14885
- options.maxRedirects = config.maxRedirects;
15712
+ transportEnforcesMaxBodyLength = true;
15713
+ options.sensitiveHeaders = [];
15714
+ if (maxRedirects) {
15715
+ options.maxRedirects = maxRedirects;
14886
15716
  }
14887
15717
  const configBeforeRedirect = own2("beforeRedirect");
14888
15718
  if (configBeforeRedirect) {
14889
15719
  options.beforeRedirects.config = configBeforeRedirect;
14890
15720
  }
15721
+ if (auth) {
15722
+ const requestOrigin = parsed.origin;
15723
+ const authToRestore = auth;
15724
+ options.beforeRedirects.auth = function beforeRedirectAuth(redirectOptions) {
15725
+ try {
15726
+ if (new URL(redirectOptions.href).origin === requestOrigin) {
15727
+ redirectOptions.auth = authToRestore;
15728
+ }
15729
+ } catch (e) {
15730
+ }
15731
+ };
15732
+ }
15733
+ const sensitiveHeaders = own2("sensitiveHeaders");
15734
+ if (sensitiveHeaders != null) {
15735
+ if (!utils_default.isArray(sensitiveHeaders)) {
15736
+ return reject(
15737
+ new AxiosError_default(
15738
+ "sensitiveHeaders must be an array of strings",
15739
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
15740
+ config
15741
+ )
15742
+ );
15743
+ }
15744
+ const sensitiveSet = /* @__PURE__ */ new Set();
15745
+ for (const header of sensitiveHeaders) {
15746
+ if (!utils_default.isString(header)) {
15747
+ return reject(
15748
+ new AxiosError_default(
15749
+ "sensitiveHeaders must be an array of strings",
15750
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
15751
+ config
15752
+ )
15753
+ );
15754
+ }
15755
+ sensitiveSet.add(header.toLowerCase());
15756
+ }
15757
+ if (sensitiveSet.size) {
15758
+ options.sensitiveHeaders = Array.from(sensitiveSet);
15759
+ options.beforeRedirects.sensitiveHeaders = function beforeRedirectSensitiveHeaders(redirectOptions, requestDetails) {
15760
+ if (!isSameOriginRedirect(redirectOptions, requestDetails)) {
15761
+ stripMatchingHeaders(redirectOptions.headers, sensitiveSet);
15762
+ }
15763
+ };
15764
+ }
15765
+ }
14891
15766
  transport = isHttpsRequest ? httpsFollow : httpFollow;
14892
15767
  }
14893
15768
  }
14894
- if (config.maxBodyLength > -1) {
14895
- options.maxBodyLength = config.maxBodyLength;
15769
+ if (maxBodyLength > -1) {
15770
+ options.maxBodyLength = maxBodyLength;
14896
15771
  } else {
14897
15772
  options.maxBodyLength = Infinity;
14898
15773
  }
@@ -14912,7 +15787,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14912
15787
  transformStream,
14913
15788
  progressEventDecorator(
14914
15789
  responseLength,
14915
- progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)
15790
+ progressEventReducer(
15791
+ asyncDecorator(onDownloadProgress, scheduleProgress),
15792
+ true,
15793
+ 3
15794
+ )
14916
15795
  )
14917
15796
  )
14918
15797
  );
@@ -14920,7 +15799,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14920
15799
  }
14921
15800
  let responseStream = res;
14922
15801
  const lastRequest = res.req || req;
14923
- if (config.decompress !== false && res.headers["content-encoding"]) {
15802
+ if (decompress !== false && res.headers["content-encoding"]) {
14924
15803
  if (method === "HEAD" || res.statusCode === 204) {
14925
15804
  delete res.headers["content-encoding"];
14926
15805
  }
@@ -14943,6 +15822,13 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14943
15822
  streams.push(zlib.createBrotliDecompress(brotliOptions));
14944
15823
  delete res.headers["content-encoding"];
14945
15824
  }
15825
+ break;
15826
+ case "zstd":
15827
+ if (isZstdSupported) {
15828
+ streams.push(zlib.createZstdDecompress(zstdOptions));
15829
+ delete res.headers["content-encoding"];
15830
+ }
15831
+ break;
14946
15832
  }
14947
15833
  }
14948
15834
  responseStream = streams.length > 1 ? stream3.pipeline(streams, utils_default.noop) : streams[0];
@@ -14954,8 +15840,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14954
15840
  request: lastRequest
14955
15841
  };
14956
15842
  if (responseType === "stream") {
14957
- if (config.maxContentLength > -1) {
14958
- const limit = config.maxContentLength;
15843
+ if (maxContentLength > -1) {
15844
+ const limit = maxContentLength;
14959
15845
  const source = responseStream;
14960
15846
  async function* enforceMaxContentLength() {
14961
15847
  let totalResponseBytes = 0;
@@ -14984,12 +15870,12 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14984
15870
  responseStream.on("data", function handleStreamData(chunk) {
14985
15871
  responseBuffer.push(chunk);
14986
15872
  totalResponseBytes += chunk.length;
14987
- if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
15873
+ if (maxContentLength > -1 && totalResponseBytes > maxContentLength) {
14988
15874
  rejected = true;
14989
15875
  responseStream.destroy();
14990
15876
  abort(
14991
15877
  new AxiosError_default(
14992
- "maxContentLength size of " + config.maxContentLength + " exceeded",
15878
+ "maxContentLength size of " + maxContentLength + " exceeded",
14993
15879
  AxiosError_default.ERR_BAD_RESPONSE,
14994
15880
  config,
14995
15881
  lastRequest
@@ -15050,14 +15936,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15050
15936
  });
15051
15937
  const boundSockets = /* @__PURE__ */ new Set();
15052
15938
  req.on("socket", function handleRequestSocket(socket) {
15053
- socket.setKeepAlive(true, 1e3 * 60);
15939
+ if (typeof socket.setKeepAlive === "function") {
15940
+ socket.setKeepAlive(true, 1e3 * 60);
15941
+ }
15054
15942
  if (!socket[kAxiosSocketListener]) {
15055
- socket.on("error", function handleSocketError(err) {
15056
- const current = socket[kAxiosCurrentReq];
15057
- if (current && !current.destroyed) {
15058
- current.destroy(err);
15059
- }
15060
- });
15943
+ socket.on("error", handleSocketError);
15061
15944
  socket[kAxiosSocketListener] = true;
15062
15945
  }
15063
15946
  socket[kAxiosCurrentReq] = req;
@@ -15072,8 +15955,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15072
15955
  }
15073
15956
  boundSockets.clear();
15074
15957
  });
15075
- if (config.timeout) {
15076
- const timeout = parseInt(config.timeout, 10);
15958
+ if (own2("timeout")) {
15959
+ const timeout = parseInt(own2("timeout"), 10);
15077
15960
  if (Number.isNaN(timeout)) {
15078
15961
  abort(
15079
15962
  new AxiosError_default(
@@ -15112,8 +15995,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15112
15995
  }
15113
15996
  });
15114
15997
  let uploadStream = data;
15115
- if (config.maxBodyLength > -1 && config.maxRedirects === 0) {
15116
- const limit = config.maxBodyLength;
15998
+ if (maxBodyLength > -1 && !transportEnforcesMaxBodyLength) {
15999
+ const limit = maxBodyLength;
15117
16000
  let bytesSent = 0;
15118
16001
  uploadStream = stream3.pipeline(
15119
16002
  [
@@ -15149,7 +16032,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15149
16032
  });
15150
16033
  };
15151
16034
 
15152
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/isURLSameOrigin.js
16035
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isURLSameOrigin.js
15153
16036
  var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url2) => {
15154
16037
  url2 = new URL(url2, platform_default.origin);
15155
16038
  return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
@@ -15158,7 +16041,7 @@ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PUR
15158
16041
  platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
15159
16042
  ) : () => true;
15160
16043
 
15161
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/cookies.js
16044
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/cookies.js
15162
16045
  var cookies_default = platform_default.hasStandardBrowserEnv ? (
15163
16046
  // Standard browser envs support document.cookie
15164
16047
  {
@@ -15189,7 +16072,11 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
15189
16072
  const cookie = cookies[i].replace(/^\s+/, "");
15190
16073
  const eq = cookie.indexOf("=");
15191
16074
  if (eq !== -1 && cookie.slice(0, eq) === name) {
15192
- return decodeURIComponent(cookie.slice(eq + 1));
16075
+ try {
16076
+ return decodeURIComponent(cookie.slice(eq + 1));
16077
+ } catch (e) {
16078
+ return cookie.slice(eq + 1);
16079
+ }
15193
16080
  }
15194
16081
  }
15195
16082
  return null;
@@ -15211,9 +16098,20 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
15211
16098
  }
15212
16099
  );
15213
16100
 
15214
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/mergeConfig.js
16101
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/mergeConfig.js
15215
16102
  var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
16103
+ var ownEnumerableKeys = (thing) => {
16104
+ if (Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor) {
16105
+ return Object.keys(thing).concat(
16106
+ Object.getOwnPropertySymbols(thing).filter(
16107
+ (symbol) => Object.getOwnPropertyDescriptor(thing, symbol).enumerable
16108
+ )
16109
+ );
16110
+ }
16111
+ return Object.keys(thing);
16112
+ };
15216
16113
  function mergeConfig(config1, config2) {
16114
+ config1 = config1 || {};
15217
16115
  config2 = config2 || {};
15218
16116
  const config = /* @__PURE__ */ Object.create(null);
15219
16117
  Object.defineProperty(config, "hasOwnProperty", {
@@ -15254,6 +16152,23 @@ function mergeConfig(config1, config2) {
15254
16152
  return getMergedValue(void 0, a);
15255
16153
  }
15256
16154
  }
16155
+ function getMergedTransitionalOption(prop) {
16156
+ const transitional2 = utils_default.hasOwnProp(config2, "transitional") ? config2.transitional : void 0;
16157
+ if (!utils_default.isUndefined(transitional2)) {
16158
+ if (utils_default.isPlainObject(transitional2)) {
16159
+ if (utils_default.hasOwnProp(transitional2, prop)) {
16160
+ return transitional2[prop];
16161
+ }
16162
+ } else {
16163
+ return void 0;
16164
+ }
16165
+ }
16166
+ const transitional1 = utils_default.hasOwnProp(config1, "transitional") ? config1.transitional : void 0;
16167
+ if (utils_default.isPlainObject(transitional1) && utils_default.hasOwnProp(transitional1, prop)) {
16168
+ return transitional1[prop];
16169
+ }
16170
+ return void 0;
16171
+ }
15257
16172
  function mergeDirectKeys(a, b, prop) {
15258
16173
  if (utils_default.hasOwnProp(config2, prop)) {
15259
16174
  return getMergedValue(a, b);
@@ -15270,7 +16185,7 @@ function mergeConfig(config1, config2) {
15270
16185
  transformResponse: defaultToConfig2,
15271
16186
  paramsSerializer: defaultToConfig2,
15272
16187
  timeout: defaultToConfig2,
15273
- timeoutMessage: defaultToConfig2,
16188
+ timeoutErrorMessage: defaultToConfig2,
15274
16189
  withCredentials: defaultToConfig2,
15275
16190
  withXSRFToken: defaultToConfig2,
15276
16191
  adapter: defaultToConfig2,
@@ -15293,7 +16208,7 @@ function mergeConfig(config1, config2) {
15293
16208
  validateStatus: mergeDirectKeys,
15294
16209
  headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
15295
16210
  };
15296
- utils_default.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
16211
+ utils_default.forEach(ownEnumerableKeys({ ...config1, ...config2 }), function computeConfigValue(prop) {
15297
16212
  if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
15298
16213
  const merge2 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
15299
16214
  const a = utils_default.hasOwnProp(config1, prop) ? config1[prop] : void 0;
@@ -15301,27 +16216,22 @@ function mergeConfig(config1, config2) {
15301
16216
  const configValue = merge2(a, b, prop);
15302
16217
  utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
15303
16218
  });
16219
+ if (utils_default.hasOwnProp(config2, "validateStatus") && utils_default.isUndefined(config2.validateStatus) && getMergedTransitionalOption("validateStatusUndefinedResolves") === false) {
16220
+ if (utils_default.hasOwnProp(config1, "validateStatus")) {
16221
+ config.validateStatus = getMergedValue(void 0, config1.validateStatus);
16222
+ } else {
16223
+ delete config.validateStatus;
16224
+ }
16225
+ }
15304
16226
  return config;
15305
16227
  }
15306
16228
 
15307
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/resolveConfig.js
15308
- var FORM_DATA_CONTENT_HEADERS2 = ["content-type", "content-length"];
15309
- function setFormDataHeaders2(headers, formHeaders, policy) {
15310
- if (policy !== "content-only") {
15311
- headers.set(formHeaders);
15312
- return;
15313
- }
15314
- Object.entries(formHeaders).forEach(([key, val]) => {
15315
- if (FORM_DATA_CONTENT_HEADERS2.includes(key.toLowerCase())) {
15316
- headers.set(key, val);
15317
- }
15318
- });
15319
- }
16229
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/resolveConfig.js
15320
16230
  var encodeUTF8 = (str) => encodeURIComponent(str).replace(
15321
16231
  /%([0-9A-F]{2})/gi,
15322
16232
  (_, hex) => String.fromCharCode(parseInt(hex, 16))
15323
16233
  );
15324
- var resolveConfig_default = (config) => {
16234
+ function resolveConfig(config) {
15325
16235
  const newConfig = mergeConfig({}, config);
15326
16236
  const own2 = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
15327
16237
  const data = own2("data");
@@ -15335,21 +16245,28 @@ var resolveConfig_default = (config) => {
15335
16245
  const url2 = own2("url");
15336
16246
  newConfig.headers = headers = AxiosHeaders_default.from(headers);
15337
16247
  newConfig.url = buildURL(
15338
- buildFullPath(baseURL, url2, allowAbsoluteUrls),
15339
- config.params,
15340
- config.paramsSerializer
16248
+ buildFullPath(baseURL, url2, allowAbsoluteUrls, newConfig),
16249
+ own2("params"),
16250
+ own2("paramsSerializer")
15341
16251
  );
15342
16252
  if (auth) {
15343
- headers.set(
15344
- "Authorization",
15345
- "Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8(auth.password) : ""))
15346
- );
16253
+ const username = utils_default.getSafeProp(auth, "username") || "";
16254
+ const password = utils_default.getSafeProp(auth, "password") || "";
16255
+ try {
16256
+ headers.set(
16257
+ "Authorization",
16258
+ "Basic " + btoa(username + ":" + (password ? encodeUTF8(password) : ""))
16259
+ );
16260
+ } catch (e) {
16261
+ throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_OPTION_VALUE, config);
16262
+ }
15347
16263
  }
15348
16264
  if (utils_default.isFormData(data)) {
15349
- if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
16265
+ const getHeaders = utils_default.getSafeProp(data, "getHeaders");
16266
+ if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv || utils_default.isReactNative(data)) {
15350
16267
  headers.setContentType(void 0);
15351
- } else if (utils_default.isFunction(data.getHeaders)) {
15352
- setFormDataHeaders2(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
16268
+ } else if (utils_default.isFunction(getHeaders)) {
16269
+ setFormDataHeaders(headers, getHeaders.call(data), own2("formDataHeaderPolicy"));
15353
16270
  }
15354
16271
  }
15355
16272
  if (platform_default.hasStandardBrowserEnv) {
@@ -15365,9 +16282,10 @@ var resolveConfig_default = (config) => {
15365
16282
  }
15366
16283
  }
15367
16284
  return newConfig;
15368
- };
16285
+ }
16286
+ var resolveConfig_default = resolveConfig;
15369
16287
 
15370
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/xhr.js
16288
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/xhr.js
15371
16289
  var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
15372
16290
  var xhr_default = isXHRAdapterSupported && function(config) {
15373
16291
  return new Promise(function dispatchXhrRequest(resolve, reject) {
@@ -15377,7 +16295,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
15377
16295
  let { responseType, onUploadProgress, onDownloadProgress } = _config;
15378
16296
  let onCanceled;
15379
16297
  let uploadThrottled, downloadThrottled;
15380
- let flushUpload, flushDownload;
16298
+ let flushUpload, flushDownload, flushDownloadWithEvent;
15381
16299
  function done() {
15382
16300
  flushUpload && flushUpload();
15383
16301
  flushDownload && flushDownload();
@@ -15387,7 +16305,27 @@ var xhr_default = isXHRAdapterSupported && function(config) {
15387
16305
  let request = new XMLHttpRequest();
15388
16306
  request.open(_config.method.toUpperCase(), _config.url, true);
15389
16307
  request.timeout = _config.timeout;
15390
- function onloadend() {
16308
+ function onloadend(event) {
16309
+ if (!request) {
16310
+ return;
16311
+ }
16312
+ if (request.status === 0 && (parseProtocol(normalizeURLForProtocolCheck(_config.url)) || parseProtocol(platform_default.origin)) !== "file" && !(request.responseURL && request.responseURL.startsWith("file:"))) {
16313
+ reject(new AxiosError_default("Request aborted", AxiosError_default.ECONNABORTED, config, request));
16314
+ done();
16315
+ request = null;
16316
+ return;
16317
+ }
16318
+ try {
16319
+ if (event) {
16320
+ flushDownloadWithEvent && flushDownloadWithEvent(event);
16321
+ } else {
16322
+ flushDownload && flushDownload();
16323
+ }
16324
+ } catch (err) {
16325
+ setTimeout(() => {
16326
+ throw err;
16327
+ });
16328
+ }
15391
16329
  if (!request) {
15392
16330
  return;
15393
16331
  }
@@ -15475,7 +16413,10 @@ var xhr_default = isXHRAdapterSupported && function(config) {
15475
16413
  request.responseType = _config.responseType;
15476
16414
  }
15477
16415
  if (onDownloadProgress) {
15478
- [downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
16416
+ [downloadThrottled, flushDownload, flushDownloadWithEvent] = progressEventReducer(
16417
+ onDownloadProgress,
16418
+ true
16419
+ );
15479
16420
  request.addEventListener("progress", downloadThrottled);
15480
16421
  }
15481
16422
  if (onUploadProgress && request.upload) {
@@ -15507,13 +16448,14 @@ var xhr_default = isXHRAdapterSupported && function(config) {
15507
16448
  config
15508
16449
  )
15509
16450
  );
16451
+ done();
15510
16452
  return;
15511
16453
  }
15512
16454
  request.send(requestData || null);
15513
16455
  });
15514
16456
  };
15515
16457
 
15516
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/composeSignals.js
16458
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/composeSignals.js
15517
16459
  var composeSignals = (signals, timeout) => {
15518
16460
  signals = signals ? signals.filter(Boolean) : [];
15519
16461
  if (!timeout && !signals.length) {
@@ -15546,14 +16488,23 @@ var composeSignals = (signals, timeout) => {
15546
16488
  });
15547
16489
  signals = null;
15548
16490
  };
15549
- signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
16491
+ signals.forEach((signal2) => {
16492
+ if (aborted) {
16493
+ return;
16494
+ }
16495
+ if (signal2.aborted) {
16496
+ onabort.call(signal2);
16497
+ return;
16498
+ }
16499
+ signal2.addEventListener("abort", onabort, { once: true });
16500
+ });
15550
16501
  const { signal } = controller;
15551
16502
  signal.unsubscribe = () => utils_default.asap(unsubscribe);
15552
16503
  return signal;
15553
16504
  };
15554
16505
  var composeSignals_default = composeSignals;
15555
16506
 
15556
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/trackStream.js
16507
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/trackStream.js
15557
16508
  var streamChunk = function* (chunk, chunkSize) {
15558
16509
  let len = chunk.byteLength;
15559
16510
  if (!chunkSize || len < chunkSize) {
@@ -15633,9 +16584,34 @@ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
15633
16584
  );
15634
16585
  };
15635
16586
 
15636
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/fetch.js
16587
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/fetch.js
15637
16588
  var DEFAULT_CHUNK_SIZE = 64 * 1024;
16589
+ var DEFAULT_REQUEST_OPTIONS = {
16590
+ cache: "default",
16591
+ redirect: "follow",
16592
+ referrer: "about:client",
16593
+ referrerPolicy: "",
16594
+ mode: "cors",
16595
+ integrity: "",
16596
+ keepalive: false,
16597
+ priority: "auto",
16598
+ window: null
16599
+ };
15638
16600
  var { isFunction: isFunction2 } = utils_default;
16601
+ var encodeUTF82 = (str) => encodeURIComponent(str).replace(
16602
+ /%([0-9A-F]{2})/gi,
16603
+ (_, hex) => String.fromCharCode(parseInt(hex, 16))
16604
+ );
16605
+ var decodeURIComponentSafe2 = (value) => {
16606
+ if (!utils_default.isString(value)) {
16607
+ return value;
16608
+ }
16609
+ try {
16610
+ return decodeURIComponent(value);
16611
+ } catch (error) {
16612
+ return value;
16613
+ }
16614
+ };
15639
16615
  var test = (fn, ...args) => {
15640
16616
  try {
15641
16617
  return !!fn(...args);
@@ -15643,6 +16619,14 @@ var test = (fn, ...args) => {
15643
16619
  return false;
15644
16620
  }
15645
16621
  };
16622
+ var maybeWithAuthCredentials = (url2) => {
16623
+ const protocolIndex = url2.indexOf("://");
16624
+ let urlToCheck = url2;
16625
+ if (protocolIndex !== -1) {
16626
+ urlToCheck = urlToCheck.slice(protocolIndex + 3);
16627
+ }
16628
+ return urlToCheck.includes("@") || urlToCheck.includes(":");
16629
+ };
15646
16630
  var factory = (env) => {
15647
16631
  const globalObject = utils_default.global !== void 0 && utils_default.global !== null ? utils_default.global : globalThis;
15648
16632
  const { ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = globalObject;
@@ -15743,10 +16727,12 @@ var factory = (env) => {
15743
16727
  withCredentials = "same-origin",
15744
16728
  fetchOptions,
15745
16729
  maxContentLength,
15746
- maxBodyLength
16730
+ maxBodyLength,
16731
+ maxRedirects
15747
16732
  } = resolveConfig_default(config);
15748
16733
  const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
15749
16734
  const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
16735
+ const own2 = (key) => utils_default.hasOwnProp(config, key) ? config[key] : void 0;
15750
16736
  let _fetch = envFetch || fetch;
15751
16737
  responseType = responseType ? (responseType + "").toLowerCase() : "text";
15752
16738
  let composedSignal = composeSignals_default(
@@ -15758,7 +16744,47 @@ var factory = (env) => {
15758
16744
  composedSignal.unsubscribe();
15759
16745
  });
15760
16746
  let requestContentLength;
16747
+ let pendingBodyError = null;
16748
+ const maxBodyLengthError = () => new AxiosError_default(
16749
+ "Request body larger than maxBodyLength limit",
16750
+ AxiosError_default.ERR_BAD_REQUEST,
16751
+ config,
16752
+ request
16753
+ );
15761
16754
  try {
16755
+ let auth = void 0;
16756
+ const configAuth = own2("auth");
16757
+ if (configAuth) {
16758
+ const username = utils_default.getSafeProp(configAuth, "username") || "";
16759
+ const password = utils_default.getSafeProp(configAuth, "password") || "";
16760
+ auth = {
16761
+ username,
16762
+ password
16763
+ };
16764
+ }
16765
+ if (maybeWithAuthCredentials(url2)) {
16766
+ const parsedURL = new URL(url2, platform_default.origin);
16767
+ if (!auth && (parsedURL.username || parsedURL.password)) {
16768
+ const urlUsername = decodeURIComponentSafe2(parsedURL.username);
16769
+ const urlPassword = decodeURIComponentSafe2(parsedURL.password);
16770
+ auth = {
16771
+ username: urlUsername,
16772
+ password: urlPassword
16773
+ };
16774
+ }
16775
+ if (parsedURL.username || parsedURL.password) {
16776
+ parsedURL.username = "";
16777
+ parsedURL.password = "";
16778
+ url2 = parsedURL.href;
16779
+ }
16780
+ }
16781
+ if (auth) {
16782
+ headers.delete("authorization");
16783
+ headers.set(
16784
+ "Authorization",
16785
+ "Basic " + btoa(encodeUTF82((auth.username || "") + ":" + (auth.password || "")))
16786
+ );
16787
+ }
15762
16788
  if (hasMaxContentLength && typeof url2 === "string" && url2.startsWith("data:")) {
15763
16789
  const estimated = estimateDataURLDecodedBytes(url2);
15764
16790
  if (estimated > maxContentLength) {
@@ -15771,33 +16797,55 @@ var factory = (env) => {
15771
16797
  }
15772
16798
  }
15773
16799
  if (hasMaxBodyLength && method !== "get" && method !== "head") {
15774
- const outboundLength = await resolveBodyLength(headers, data);
15775
- if (typeof outboundLength === "number" && isFinite(outboundLength) && outboundLength > maxBodyLength) {
15776
- throw new AxiosError_default(
15777
- "Request body larger than maxBodyLength limit",
15778
- AxiosError_default.ERR_BAD_REQUEST,
15779
- config,
15780
- request
15781
- );
16800
+ const outboundLength = await getBodyLength(data);
16801
+ if (typeof outboundLength === "number" && isFinite(outboundLength)) {
16802
+ requestContentLength = outboundLength;
16803
+ if (outboundLength > maxBodyLength) {
16804
+ throw maxBodyLengthError();
16805
+ }
15782
16806
  }
15783
16807
  }
15784
- if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
15785
- let _request = new Request(url2, {
15786
- method: "POST",
15787
- body: data,
15788
- duplex: "half"
15789
- });
15790
- let contentTypeHeader;
15791
- if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
15792
- headers.setContentType(contentTypeHeader);
15793
- }
15794
- if (_request.body) {
15795
- const [onProgress, flush] = progressEventDecorator(
15796
- requestContentLength,
15797
- progressEventReducer(asyncDecorator(onUploadProgress))
15798
- );
15799
- data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
16808
+ const mustEnforceStreamBody = hasMaxBodyLength && (utils_default.isReadableStream(data) || utils_default.isStream(data));
16809
+ const trackRequestStream = (stream4, onProgress, flush) => trackStream(
16810
+ stream4,
16811
+ DEFAULT_CHUNK_SIZE,
16812
+ (loadedBytes) => {
16813
+ if (hasMaxBodyLength && loadedBytes > maxBodyLength) {
16814
+ throw pendingBodyError = maxBodyLengthError();
16815
+ }
16816
+ onProgress && onProgress(loadedBytes);
16817
+ },
16818
+ flush
16819
+ );
16820
+ if (supportsRequestStream && method !== "get" && method !== "head" && (onUploadProgress || mustEnforceStreamBody)) {
16821
+ requestContentLength = requestContentLength == null ? await resolveBodyLength(headers, data) : requestContentLength;
16822
+ if (requestContentLength !== 0 || mustEnforceStreamBody) {
16823
+ let _request = new Request(url2, {
16824
+ method: "POST",
16825
+ body: data,
16826
+ duplex: "half"
16827
+ });
16828
+ let contentTypeHeader;
16829
+ if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
16830
+ headers.setContentType(contentTypeHeader);
16831
+ }
16832
+ if (_request.body) {
16833
+ const [onProgress, flush] = onUploadProgress && progressEventDecorator(
16834
+ requestContentLength,
16835
+ progressEventReducer(asyncDecorator(onUploadProgress))
16836
+ ) || [];
16837
+ data = trackRequestStream(_request.body, onProgress, flush);
16838
+ }
15800
16839
  }
16840
+ } else if (mustEnforceStreamBody && !isRequestSupported && isReadableStreamSupported && method !== "get" && method !== "head") {
16841
+ data = trackRequestStream(data);
16842
+ } else if (mustEnforceStreamBody && isRequestSupported && !supportsRequestStream && method !== "get" && method !== "head") {
16843
+ throw new AxiosError_default(
16844
+ "Stream request bodies are not supported by the current fetch implementation",
16845
+ AxiosError_default.ERR_NOT_SUPPORT,
16846
+ config,
16847
+ request
16848
+ );
15801
16849
  }
15802
16850
  if (!utils_default.isString(withCredentials)) {
15803
16851
  withCredentials = withCredentials ? "include" : "omit";
@@ -15810,19 +16858,47 @@ var factory = (env) => {
15810
16858
  }
15811
16859
  }
15812
16860
  headers.set("User-Agent", "axios/" + VERSION, false);
15813
- const resolvedOptions = {
15814
- ...fetchOptions,
16861
+ const safeFetchOptions = fetchOptions == null ? fetchOptions : Object.assign(/* @__PURE__ */ Object.create(null), fetchOptions);
16862
+ if (safeFetchOptions) {
16863
+ delete safeFetchOptions.body;
16864
+ delete safeFetchOptions.headers;
16865
+ delete safeFetchOptions.method;
16866
+ delete safeFetchOptions.signal;
16867
+ delete safeFetchOptions.duplex;
16868
+ delete safeFetchOptions.credentials;
16869
+ }
16870
+ const resolvedOptions = Object.assign(/* @__PURE__ */ Object.create(null), safeFetchOptions, {
15815
16871
  signal: composedSignal,
15816
16872
  method: method.toUpperCase(),
15817
16873
  headers: toByteStringHeaderObject(headers.normalize()),
15818
16874
  body: data,
15819
16875
  duplex: "half",
15820
16876
  credentials: isCredentialsSupported ? withCredentials : void 0
15821
- };
16877
+ });
16878
+ if (isRequestSupported) {
16879
+ utils_default.forEach(DEFAULT_REQUEST_OPTIONS, (value, key) => {
16880
+ if (resolvedOptions[key] === void 0) {
16881
+ resolvedOptions[key] = value;
16882
+ }
16883
+ });
16884
+ if (resolvedOptions.signal === void 0) {
16885
+ resolvedOptions.signal = null;
16886
+ }
16887
+ if (resolvedOptions.body === void 0) {
16888
+ resolvedOptions.body = null;
16889
+ }
16890
+ }
16891
+ if (maxRedirects === 0) {
16892
+ resolvedOptions.redirect = "manual";
16893
+ if (safeFetchOptions) {
16894
+ safeFetchOptions.redirect = "manual";
16895
+ }
16896
+ }
15822
16897
  request = isRequestSupported && new Request(url2, resolvedOptions);
15823
- let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url2, resolvedOptions));
16898
+ let response = await (isRequestSupported ? _fetch(request, safeFetchOptions) : _fetch(url2, resolvedOptions));
16899
+ const responseHeaders = AxiosHeaders_default.from(response.headers);
15824
16900
  if (hasMaxContentLength) {
15825
- const declaredLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
16901
+ const declaredLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
15826
16902
  if (declaredLength != null && declaredLength > maxContentLength) {
15827
16903
  throw new AxiosError_default(
15828
16904
  "maxContentLength size of " + maxContentLength + " exceeded",
@@ -15838,7 +16914,7 @@ var factory = (env) => {
15838
16914
  ["status", "statusText", "headers"].forEach((prop) => {
15839
16915
  options[prop] = response[prop];
15840
16916
  });
15841
- const responseContentLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
16917
+ const responseContentLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
15842
16918
  const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
15843
16919
  responseContentLength,
15844
16920
  progressEventReducer(asyncDecorator(onDownloadProgress), true)
@@ -15908,22 +16984,41 @@ var factory = (env) => {
15908
16984
  const canceledError = composedSignal.reason;
15909
16985
  canceledError.config = config;
15910
16986
  request && (canceledError.request = request);
15911
- err !== canceledError && (canceledError.cause = err);
16987
+ if (err !== canceledError) {
16988
+ Object.defineProperty(canceledError, "cause", {
16989
+ __proto__: null,
16990
+ value: err,
16991
+ writable: true,
16992
+ enumerable: false,
16993
+ configurable: true
16994
+ });
16995
+ }
15912
16996
  throw canceledError;
15913
16997
  }
16998
+ if (pendingBodyError) {
16999
+ request && !pendingBodyError.request && (pendingBodyError.request = request);
17000
+ throw pendingBodyError;
17001
+ }
17002
+ if (err instanceof AxiosError_default) {
17003
+ request && !err.request && (err.request = request);
17004
+ throw err;
17005
+ }
15914
17006
  if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
15915
- throw Object.assign(
15916
- new AxiosError_default(
15917
- "Network Error",
15918
- AxiosError_default.ERR_NETWORK,
15919
- config,
15920
- request,
15921
- err && err.response
15922
- ),
15923
- {
15924
- cause: err.cause || err
15925
- }
17007
+ const networkError = new AxiosError_default(
17008
+ "Network Error",
17009
+ AxiosError_default.ERR_NETWORK,
17010
+ config,
17011
+ request,
17012
+ err && err.response
15926
17013
  );
17014
+ Object.defineProperty(networkError, "cause", {
17015
+ __proto__: null,
17016
+ value: err.cause || err,
17017
+ writable: true,
17018
+ enumerable: false,
17019
+ configurable: true
17020
+ });
17021
+ throw networkError;
15927
17022
  }
15928
17023
  throw AxiosError_default.from(err, err && err.code, config, request, err && err.response);
15929
17024
  }
@@ -15945,7 +17040,7 @@ var getFetch = (config) => {
15945
17040
  };
15946
17041
  var adapter = getFetch();
15947
17042
 
15948
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/adapters.js
17043
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/adapters.js
15949
17044
  var knownAdapters = {
15950
17045
  http: http_default,
15951
17046
  xhr: xhr_default,
@@ -15992,7 +17087,7 @@ function getAdapter(adapters, config) {
15992
17087
  let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
15993
17088
  throw new AxiosError_default(
15994
17089
  `There is no suitable adapter to dispatch the request ` + s,
15995
- "ERR_NOT_SUPPORT"
17090
+ AxiosError_default.ERR_NOT_SUPPORT
15996
17091
  );
15997
17092
  }
15998
17093
  return adapter2;
@@ -16010,7 +17105,7 @@ var adapters_default = {
16010
17105
  adapters: knownAdapters
16011
17106
  };
16012
17107
 
16013
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/dispatchRequest.js
17108
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/dispatchRequest.js
16014
17109
  function throwIfCancellationRequested(config) {
16015
17110
  if (config.cancelToken) {
16016
17111
  config.cancelToken.throwIfRequested();
@@ -16019,9 +17114,10 @@ function throwIfCancellationRequested(config) {
16019
17114
  throw new CanceledError_default(null, config);
16020
17115
  }
16021
17116
  }
16022
- function dispatchRequest(config) {
17117
+ function dispatchRequest(_config) {
17118
+ const config = utils_default.toSafeFlatObject(_config);
16023
17119
  throwIfCancellationRequested(config);
16024
- config.headers = AxiosHeaders_default.from(config.headers);
17120
+ config.headers = AxiosHeaders_default.from(utils_default.getSafeProp(config, "headers"));
16025
17121
  config.data = transformData.call(config, config.transformRequest);
16026
17122
  if (["post", "put", "patch"].indexOf(config.method) !== -1) {
16027
17123
  config.headers.setContentType("application/x-www-form-urlencoded", false);
@@ -16061,7 +17157,7 @@ function dispatchRequest(config) {
16061
17157
  );
16062
17158
  }
16063
17159
 
16064
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/validator.js
17160
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/validator.js
16065
17161
  var validators = {};
16066
17162
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
16067
17163
  validators[type] = function validator(thing) {
@@ -16099,7 +17195,7 @@ validators.spelling = function spelling(correctSpelling) {
16099
17195
  };
16100
17196
  };
16101
17197
  function assertOptions(options, schema, allowUnknown) {
16102
- if (typeof options !== "object") {
17198
+ if (typeof options !== "object" || options === null) {
16103
17199
  throw new AxiosError_default("options must be an object", AxiosError_default.ERR_BAD_OPTION_VALUE);
16104
17200
  }
16105
17201
  const keys = Object.keys(options);
@@ -16128,7 +17224,7 @@ var validator_default = {
16128
17224
  validators
16129
17225
  };
16130
17226
 
16131
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/Axios.js
17227
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/Axios.js
16132
17228
  var validators2 = validator_default.validators;
16133
17229
  var Axios = class {
16134
17230
  constructor(instanceConfig) {
@@ -16151,16 +17247,15 @@ var Axios = class {
16151
17247
  return await this._request(configOrUrl, config);
16152
17248
  } catch (err) {
16153
17249
  if (err instanceof Error) {
16154
- let dummy = {};
16155
- Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
16156
- const stack = (() => {
16157
- if (!dummy.stack) {
16158
- return "";
16159
- }
16160
- const firstNewlineIndex = dummy.stack.indexOf("\n");
16161
- return firstNewlineIndex === -1 ? "" : dummy.stack.slice(firstNewlineIndex + 1);
16162
- })();
16163
17250
  try {
17251
+ let dummy = {};
17252
+ Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
17253
+ const dummyStack = dummy.stack;
17254
+ let stack = "";
17255
+ if (typeof dummyStack === "string") {
17256
+ const firstNewlineIndex = dummyStack.indexOf("\n");
17257
+ stack = firstNewlineIndex === -1 ? "" : dummyStack.slice(firstNewlineIndex + 1);
17258
+ }
16164
17259
  if (!err.stack) {
16165
17260
  err.stack = stack;
16166
17261
  } else if (stack) {
@@ -16193,7 +17288,9 @@ var Axios = class {
16193
17288
  silentJSONParsing: validators2.transitional(validators2.boolean),
16194
17289
  forcedJSONParsing: validators2.transitional(validators2.boolean),
16195
17290
  clarifyTimeoutError: validators2.transitional(validators2.boolean),
16196
- legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean)
17291
+ legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean),
17292
+ advertiseZstdAcceptEncoding: validators2.transitional(validators2.boolean),
17293
+ validateStatusUndefinedResolves: validators2.transitional(validators2.boolean)
16197
17294
  },
16198
17295
  false
16199
17296
  );
@@ -16228,9 +17325,9 @@ var Axios = class {
16228
17325
  },
16229
17326
  true
16230
17327
  );
16231
- config.method = (config.method || this.defaults.method || "get").toLowerCase();
17328
+ config.method = (utils_default.getSafeProp(config, "method") || utils_default.getSafeProp(this.defaults, "method") || "get").toLowerCase();
16232
17329
  let contextHeaders = headers && utils_default.merge(headers.common, headers[config.method]);
16233
- headers && utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query", "common"], (method) => {
17330
+ headers && utils_default.forEach(methodList_default.concat("common"), (method) => {
16234
17331
  delete headers[method];
16235
17332
  });
16236
17333
  config.headers = AxiosHeaders_default.concat(contextHeaders, headers);
@@ -16273,16 +17370,31 @@ var Axios = class {
16273
17370
  const onFulfilled = requestInterceptorChain[i++];
16274
17371
  const onRejected = requestInterceptorChain[i++];
16275
17372
  try {
16276
- newConfig = onFulfilled(newConfig);
17373
+ newConfig = onFulfilled ? onFulfilled(newConfig) : newConfig;
16277
17374
  } catch (error) {
16278
- onRejected.call(this, error);
17375
+ if (!onRejected) {
17376
+ promise = Promise.reject(error);
17377
+ break;
17378
+ }
17379
+ try {
17380
+ const rejectedResult = onRejected.call(this, error);
17381
+ if (utils_default.isThenable(rejectedResult)) {
17382
+ promise = Promise.resolve(rejectedResult).then(
17383
+ () => dispatchRequest.call(this, newConfig)
17384
+ );
17385
+ }
17386
+ } catch (rejectedError) {
17387
+ promise = Promise.reject(rejectedError);
17388
+ }
16279
17389
  break;
16280
17390
  }
16281
17391
  }
16282
- try {
16283
- promise = dispatchRequest.call(this, newConfig);
16284
- } catch (error) {
16285
- return Promise.reject(error);
17392
+ if (!promise) {
17393
+ try {
17394
+ promise = dispatchRequest.call(this, newConfig);
17395
+ } catch (error) {
17396
+ promise = Promise.reject(error);
17397
+ }
16286
17398
  }
16287
17399
  i = 0;
16288
17400
  len = responseInterceptorChain.length;
@@ -16293,7 +17405,7 @@ var Axios = class {
16293
17405
  }
16294
17406
  getUri(config) {
16295
17407
  config = mergeConfig(this.defaults, config);
16296
- const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
17408
+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls, config);
16297
17409
  return buildURL(fullPath, config.params, config.paramsSerializer);
16298
17410
  }
16299
17411
  };
@@ -16303,7 +17415,7 @@ utils_default.forEach(["delete", "get", "head", "options"], function forEachMeth
16303
17415
  mergeConfig(config || {}, {
16304
17416
  method,
16305
17417
  url: url2,
16306
- data: (config || {}).data
17418
+ data: config && utils_default.hasOwnProp(config, "data") ? config.data : void 0
16307
17419
  })
16308
17420
  );
16309
17421
  };
@@ -16330,7 +17442,7 @@ utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodW
16330
17442
  });
16331
17443
  var Axios_default = Axios;
16332
17444
 
16333
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/cancel/CancelToken.js
17445
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CancelToken.js
16334
17446
  var CancelToken = class _CancelToken {
16335
17447
  constructor(executor) {
16336
17448
  if (typeof executor !== "function") {
@@ -16428,19 +17540,19 @@ var CancelToken = class _CancelToken {
16428
17540
  };
16429
17541
  var CancelToken_default = CancelToken;
16430
17542
 
16431
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/spread.js
17543
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/spread.js
16432
17544
  function spread(callback) {
16433
17545
  return function wrap(arr) {
16434
17546
  return callback.apply(null, arr);
16435
17547
  };
16436
17548
  }
16437
17549
 
16438
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/isAxiosError.js
17550
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAxiosError.js
16439
17551
  function isAxiosError(payload) {
16440
17552
  return utils_default.isObject(payload) && payload.isAxiosError === true;
16441
17553
  }
16442
17554
 
16443
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/HttpStatusCode.js
17555
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/HttpStatusCode.js
16444
17556
  var HttpStatusCode = {
16445
17557
  Continue: 100,
16446
17558
  SwitchingProtocols: 101,
@@ -16478,14 +17590,22 @@ var HttpStatusCode = {
16478
17590
  Gone: 410,
16479
17591
  LengthRequired: 411,
16480
17592
  PreconditionFailed: 412,
17593
+ /**
17594
+ * @deprecated Use `ContentTooLarge` instead.
17595
+ */
16481
17596
  PayloadTooLarge: 413,
17597
+ ContentTooLarge: 413,
16482
17598
  UriTooLong: 414,
16483
17599
  UnsupportedMediaType: 415,
16484
17600
  RangeNotSatisfiable: 416,
16485
17601
  ExpectationFailed: 417,
16486
17602
  ImATeapot: 418,
16487
17603
  MisdirectedRequest: 421,
17604
+ /**
17605
+ * @deprecated Use `UnprocessableContent` instead.
17606
+ */
16488
17607
  UnprocessableEntity: 422,
17608
+ UnprocessableContent: 422,
16489
17609
  Locked: 423,
16490
17610
  FailedDependency: 424,
16491
17611
  TooEarly: 425,
@@ -16505,6 +17625,7 @@ var HttpStatusCode = {
16505
17625
  LoopDetected: 508,
16506
17626
  NotExtended: 510,
16507
17627
  NetworkAuthenticationRequired: 511,
17628
+ WebServerReturnsAnUnknownError: 520,
16508
17629
  WebServerIsDown: 521,
16509
17630
  ConnectionTimedOut: 522,
16510
17631
  OriginIsUnreachable: 523,
@@ -16513,11 +17634,13 @@ var HttpStatusCode = {
16513
17634
  InvalidSslCertificate: 526
16514
17635
  };
16515
17636
  Object.entries(HttpStatusCode).forEach(([key, value]) => {
16516
- HttpStatusCode[value] = key;
17637
+ if (HttpStatusCode[value] === void 0) {
17638
+ HttpStatusCode[value] = key;
17639
+ }
16517
17640
  });
16518
17641
  var HttpStatusCode_default = HttpStatusCode;
16519
17642
 
16520
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/axios.js
17643
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/axios.js
16521
17644
  function createInstance(defaultConfig) {
16522
17645
  const context = new Axios_default(defaultConfig);
16523
17646
  const instance = bind(Axios_default.prototype.request, context);
@@ -16550,7 +17673,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
16550
17673
  axios.default = axios;
16551
17674
  var axios_default = axios;
16552
17675
 
16553
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/index.js
17676
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/index.js
16554
17677
  var {
16555
17678
  Axios: Axios2,
16556
17679
  AxiosError: AxiosError2,
@@ -16571,18 +17694,18 @@ var {
16571
17694
  create
16572
17695
  } = axios_default;
16573
17696
 
16574
- // ../../node_modules/.pnpm/pipenet@1.4.0_patch_hash=24bd89f8b5bea6a63243b7a7d4ad888dcf7049e36eac19b10006403b29758c35/node_modules/pipenet/dist/Tunnel.js
17697
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/Tunnel.js
16575
17698
  var import_debug2 = __toESM(require_src(), 1);
16576
17699
  import { EventEmitter as EventEmitter3 } from "events";
16577
17700
 
16578
- // ../../node_modules/.pnpm/pipenet@1.4.0_patch_hash=24bd89f8b5bea6a63243b7a7d4ad888dcf7049e36eac19b10006403b29758c35/node_modules/pipenet/dist/TunnelCluster.js
17701
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/TunnelCluster.js
16579
17702
  var import_debug = __toESM(require_src(), 1);
16580
17703
  import { EventEmitter as EventEmitter2 } from "events";
16581
17704
  import fs from "fs";
16582
17705
  import net from "net";
16583
17706
  import tls from "tls";
16584
17707
 
16585
- // ../../node_modules/.pnpm/pipenet@1.4.0_patch_hash=24bd89f8b5bea6a63243b7a7d4ad888dcf7049e36eac19b10006403b29758c35/node_modules/pipenet/dist/HeaderHostTransformer.js
17708
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/HeaderHostTransformer.js
16586
17709
  import { Transform } from "stream";
16587
17710
  var HeaderHostTransformer = class extends Transform {
16588
17711
  host;
@@ -16600,7 +17723,7 @@ var HeaderHostTransformer = class extends Transform {
16600
17723
  }
16601
17724
  };
16602
17725
 
16603
- // ../../node_modules/.pnpm/pipenet@1.4.0_patch_hash=24bd89f8b5bea6a63243b7a7d4ad888dcf7049e36eac19b10006403b29758c35/node_modules/pipenet/dist/TunnelCluster.js
17726
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/TunnelCluster.js
16604
17727
  var log = (0, import_debug.default)("pipenet:client");
16605
17728
  var TunnelCluster = class extends EventEmitter2 {
16606
17729
  opts;
@@ -16633,18 +17756,10 @@ var TunnelCluster = class extends EventEmitter2 {
16633
17756
  }
16634
17757
  remote.end();
16635
17758
  });
16636
- let deadEmitted = false;
16637
- const emitDead = () => {
16638
- if (deadEmitted) {
16639
- return;
16640
- }
16641
- deadEmitted = true;
16642
- this.emit("dead", remote);
16643
- };
16644
17759
  const connLocal = () => {
16645
17760
  if (remote.destroyed) {
16646
17761
  log("remote destroyed");
16647
- emitDead();
17762
+ this.emit("dead", remote);
16648
17763
  return;
16649
17764
  }
16650
17765
  log("connecting locally to %s://%s:%d", localProtocol, localHost, localPort);
@@ -16660,7 +17775,7 @@ var TunnelCluster = class extends EventEmitter2 {
16660
17775
  const local = opt.localHttps ? tls.connect({ host: localHost, port: localPort, ...getLocalCertOpts() }) : net.connect({ host: localHost, port: localPort });
16661
17776
  const remoteClose = () => {
16662
17777
  log("remote close");
16663
- emitDead();
17778
+ this.emit("dead", remote);
16664
17779
  local.end();
16665
17780
  };
16666
17781
  remote.once("close", remoteClose);
@@ -16708,7 +17823,7 @@ var TunnelCluster = class extends EventEmitter2 {
16708
17823
  }
16709
17824
  };
16710
17825
 
16711
- // ../../node_modules/.pnpm/pipenet@1.4.0_patch_hash=24bd89f8b5bea6a63243b7a7d4ad888dcf7049e36eac19b10006403b29758c35/node_modules/pipenet/dist/Tunnel.js
17826
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/Tunnel.js
16712
17827
  var log2 = (0, import_debug2.default)("pipenet:client");
16713
17828
  var Tunnel = class extends EventEmitter3 {
16714
17829
  cachedUrl;
@@ -16856,7 +17971,7 @@ var Tunnel = class extends EventEmitter3 {
16856
17971
  }
16857
17972
  };
16858
17973
 
16859
- // ../../node_modules/.pnpm/pipenet@1.4.0_patch_hash=24bd89f8b5bea6a63243b7a7d4ad888dcf7049e36eac19b10006403b29758c35/node_modules/pipenet/dist/pipenet.js
17974
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/pipenet.js
16860
17975
  function pipenet(arg1, arg2, arg3) {
16861
17976
  const options = typeof arg1 === "object" ? arg1 : { ...arg2, port: arg1 };
16862
17977
  const callback = typeof arg1 === "object" ? arg2 : arg3;