@modern-js/repo-generator 0.0.0-next-20240220105216 → 0.0.0-next-20240220122504

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +481 -365
  2. package/package.json +11 -11
package/dist/index.js CHANGED
@@ -5,6 +5,9 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __esm = (fn, res) => function __init() {
9
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
10
+ };
8
11
  var __commonJS = (cb, mod) => function __require() {
9
12
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
13
  };
@@ -17557,11 +17560,11 @@ var require_ms = __commonJS({
17557
17560
  }
17558
17561
  });
17559
17562
 
17560
- // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/common.js
17563
+ // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/common.js
17561
17564
  var require_common2 = __commonJS({
17562
- "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/common.js"(exports, module2) {
17565
+ "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/common.js"(exports, module2) {
17563
17566
  "use strict";
17564
- function setup(env) {
17567
+ function setup(env2) {
17565
17568
  createDebug.debug = createDebug;
17566
17569
  createDebug.default = createDebug;
17567
17570
  createDebug.coerce = coerce;
@@ -17570,8 +17573,8 @@ var require_common2 = __commonJS({
17570
17573
  createDebug.enabled = enabled;
17571
17574
  createDebug.humanize = require_ms();
17572
17575
  createDebug.destroy = destroy2;
17573
- Object.keys(env).forEach((key) => {
17574
- createDebug[key] = env[key];
17576
+ Object.keys(env2).forEach((key) => {
17577
+ createDebug[key] = env2[key];
17575
17578
  });
17576
17579
  createDebug.names = [];
17577
17580
  createDebug.skips = [];
@@ -17721,9 +17724,9 @@ var require_common2 = __commonJS({
17721
17724
  }
17722
17725
  });
17723
17726
 
17724
- // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/browser.js
17727
+ // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/browser.js
17725
17728
  var require_browser = __commonJS({
17726
- "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/browser.js"(exports, module2) {
17729
+ "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/browser.js"(exports, module2) {
17727
17730
  "use strict";
17728
17731
  exports.formatArgs = formatArgs;
17729
17732
  exports.save = save;
@@ -17891,120 +17894,147 @@ var require_browser = __commonJS({
17891
17894
  }
17892
17895
  });
17893
17896
 
17894
- // ../../../../node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js
17895
- var require_has_flag = __commonJS({
17896
- "../../../../node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js"(exports, module2) {
17897
- "use strict";
17898
- module2.exports = (flag, argv) => {
17899
- argv = argv || process.argv;
17900
- const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
17901
- const pos = argv.indexOf(prefix + flag);
17902
- const terminatorPos = argv.indexOf("--");
17903
- return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
17904
- };
17905
- }
17897
+ // ../../../../node_modules/.pnpm/supports-color@9.3.1/node_modules/supports-color/index.js
17898
+ var supports_color_exports = {};
17899
+ __export(supports_color_exports, {
17900
+ createSupportsColor: () => createSupportsColor,
17901
+ default: () => supports_color_default
17906
17902
  });
17907
-
17908
- // ../../../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js
17909
- var require_supports_color = __commonJS({
17910
- "../../../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js"(exports, module2) {
17911
- "use strict";
17912
- var os2 = require("os");
17913
- var hasFlag = require_has_flag();
17914
- var env = process.env;
17915
- var forceColor;
17916
- if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) {
17917
- forceColor = false;
17918
- } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
17919
- forceColor = true;
17903
+ function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv) {
17904
+ const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
17905
+ const position = argv.indexOf(prefix + flag);
17906
+ const terminatorPosition = argv.indexOf("--");
17907
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
17908
+ }
17909
+ function envForceColor() {
17910
+ if ("FORCE_COLOR" in env) {
17911
+ if (env.FORCE_COLOR === "true") {
17912
+ return 1;
17920
17913
  }
17921
- if ("FORCE_COLOR" in env) {
17922
- forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;
17914
+ if (env.FORCE_COLOR === "false") {
17915
+ return 0;
17923
17916
  }
17924
- function translateLevel(level) {
17925
- if (level === 0) {
17926
- return false;
17927
- }
17928
- return {
17929
- level,
17930
- hasBasic: true,
17931
- has256: level >= 2,
17932
- has16m: level >= 3
17933
- };
17917
+ return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
17918
+ }
17919
+ }
17920
+ function translateLevel(level) {
17921
+ if (level === 0) {
17922
+ return false;
17923
+ }
17924
+ return {
17925
+ level,
17926
+ hasBasic: true,
17927
+ has256: level >= 2,
17928
+ has16m: level >= 3
17929
+ };
17930
+ }
17931
+ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
17932
+ const noFlagForceColor = envForceColor();
17933
+ if (noFlagForceColor !== void 0) {
17934
+ flagForceColor = noFlagForceColor;
17935
+ }
17936
+ const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
17937
+ if (forceColor === 0) {
17938
+ return 0;
17939
+ }
17940
+ if (sniffFlags) {
17941
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
17942
+ return 3;
17934
17943
  }
17935
- function supportsColor(stream4) {
17936
- if (forceColor === false) {
17937
- return 0;
17938
- }
17939
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
17940
- return 3;
17941
- }
17942
- if (hasFlag("color=256")) {
17943
- return 2;
17944
- }
17945
- if (stream4 && !stream4.isTTY && forceColor !== true) {
17946
- return 0;
17947
- }
17948
- const min = forceColor ? 1 : 0;
17949
- if (process.platform === "win32") {
17950
- const osRelease = os2.release().split(".");
17951
- if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
17952
- return Number(osRelease[2]) >= 14931 ? 3 : 2;
17953
- }
17954
- return 1;
17955
- }
17956
- if ("CI" in env) {
17957
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
17958
- return 1;
17959
- }
17960
- return min;
17961
- }
17962
- if ("TEAMCITY_VERSION" in env) {
17963
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
17964
- }
17965
- if (env.COLORTERM === "truecolor") {
17966
- return 3;
17967
- }
17968
- if ("TERM_PROGRAM" in env) {
17969
- const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
17970
- switch (env.TERM_PROGRAM) {
17971
- case "iTerm.app":
17972
- return version >= 3 ? 3 : 2;
17973
- case "Apple_Terminal":
17974
- return 2;
17975
- }
17944
+ if (hasFlag("color=256")) {
17945
+ return 2;
17946
+ }
17947
+ }
17948
+ if ("TF_BUILD" in env && "AGENT_NAME" in env) {
17949
+ return 1;
17950
+ }
17951
+ if (haveStream && !streamIsTTY && forceColor === void 0) {
17952
+ return 0;
17953
+ }
17954
+ const min = forceColor || 0;
17955
+ if (env.TERM === "dumb") {
17956
+ return min;
17957
+ }
17958
+ if (import_node_process.default.platform === "win32") {
17959
+ const osRelease = import_node_os.default.release().split(".");
17960
+ if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
17961
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
17962
+ }
17963
+ return 1;
17964
+ }
17965
+ if ("CI" in env) {
17966
+ if ("GITHUB_ACTIONS" in env) {
17967
+ return 3;
17968
+ }
17969
+ if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
17970
+ return 1;
17971
+ }
17972
+ return min;
17973
+ }
17974
+ if ("TEAMCITY_VERSION" in env) {
17975
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
17976
+ }
17977
+ if (env.COLORTERM === "truecolor") {
17978
+ return 3;
17979
+ }
17980
+ if (env.TERM === "xterm-kitty") {
17981
+ return 3;
17982
+ }
17983
+ if ("TERM_PROGRAM" in env) {
17984
+ const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
17985
+ switch (env.TERM_PROGRAM) {
17986
+ case "iTerm.app": {
17987
+ return version >= 3 ? 3 : 2;
17976
17988
  }
17977
- if (/-256(color)?$/i.test(env.TERM)) {
17989
+ case "Apple_Terminal": {
17978
17990
  return 2;
17979
17991
  }
17980
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
17981
- return 1;
17982
- }
17983
- if ("COLORTERM" in env) {
17984
- return 1;
17985
- }
17986
- if (env.TERM === "dumb") {
17987
- return min;
17988
- }
17989
- return min;
17990
17992
  }
17991
- function getSupportLevel(stream4) {
17992
- const level = supportsColor(stream4);
17993
- return translateLevel(level);
17993
+ }
17994
+ if (/-256(color)?$/i.test(env.TERM)) {
17995
+ return 2;
17996
+ }
17997
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
17998
+ return 1;
17999
+ }
18000
+ if ("COLORTERM" in env) {
18001
+ return 1;
18002
+ }
18003
+ return min;
18004
+ }
18005
+ function createSupportsColor(stream4, options = {}) {
18006
+ const level = _supportsColor(stream4, {
18007
+ streamIsTTY: stream4 && stream4.isTTY,
18008
+ ...options
18009
+ });
18010
+ return translateLevel(level);
18011
+ }
18012
+ var import_node_process, import_node_os, import_node_tty, env, flagForceColor, supportsColor, supports_color_default;
18013
+ var init_supports_color = __esm({
18014
+ "../../../../node_modules/.pnpm/supports-color@9.3.1/node_modules/supports-color/index.js"() {
18015
+ "use strict";
18016
+ import_node_process = __toESM(require("process"));
18017
+ import_node_os = __toESM(require("os"));
18018
+ import_node_tty = __toESM(require("tty"));
18019
+ ({ env } = import_node_process.default);
18020
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
18021
+ flagForceColor = 0;
18022
+ } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
18023
+ flagForceColor = 1;
17994
18024
  }
17995
- module2.exports = {
17996
- supportsColor: getSupportLevel,
17997
- stdout: getSupportLevel(process.stdout),
17998
- stderr: getSupportLevel(process.stderr)
18025
+ supportsColor = {
18026
+ stdout: createSupportsColor({ isTTY: import_node_tty.default.isatty(1) }),
18027
+ stderr: createSupportsColor({ isTTY: import_node_tty.default.isatty(2) })
17999
18028
  };
18029
+ supports_color_default = supportsColor;
18000
18030
  }
18001
18031
  });
18002
18032
 
18003
- // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/node.js
18033
+ // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/node.js
18004
18034
  var require_node = __commonJS({
18005
- "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/node.js"(exports, module2) {
18035
+ "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/node.js"(exports, module2) {
18006
18036
  "use strict";
18007
- var tty = require("tty");
18037
+ var tty2 = require("tty");
18008
18038
  var util2 = require("util");
18009
18039
  exports.init = init;
18010
18040
  exports.log = log;
@@ -18019,8 +18049,8 @@ var require_node = __commonJS({
18019
18049
  );
18020
18050
  exports.colors = [6, 2, 3, 4, 5, 1];
18021
18051
  try {
18022
- const supportsColor = require_supports_color();
18023
- if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
18052
+ const supportsColor2 = (init_supports_color(), __toCommonJS(supports_color_exports));
18053
+ if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
18024
18054
  exports.colors = [
18025
18055
  20,
18026
18056
  21,
@@ -18122,7 +18152,7 @@ var require_node = __commonJS({
18122
18152
  return obj;
18123
18153
  }, {});
18124
18154
  function useColors() {
18125
- return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
18155
+ return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty2.isatty(process.stderr.fd);
18126
18156
  }
18127
18157
  function formatArgs(args) {
18128
18158
  const { namespace: name, useColors: useColors2 } = this;
@@ -18175,9 +18205,9 @@ var require_node = __commonJS({
18175
18205
  }
18176
18206
  });
18177
18207
 
18178
- // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/index.js
18208
+ // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/index.js
18179
18209
  var require_src3 = __commonJS({
18180
- "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/index.js"(exports, module2) {
18210
+ "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/index.js"(exports, module2) {
18181
18211
  "use strict";
18182
18212
  if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
18183
18213
  module2.exports = require_browser();
@@ -18187,9 +18217,9 @@ var require_src3 = __commonJS({
18187
18217
  }
18188
18218
  });
18189
18219
 
18190
- // ../../../../node_modules/.pnpm/follow-redirects@1.15.1/node_modules/follow-redirects/debug.js
18220
+ // ../../../../node_modules/.pnpm/follow-redirects@1.15.5/node_modules/follow-redirects/debug.js
18191
18221
  var require_debug = __commonJS({
18192
- "../../../../node_modules/.pnpm/follow-redirects@1.15.1/node_modules/follow-redirects/debug.js"(exports, module2) {
18222
+ "../../../../node_modules/.pnpm/follow-redirects@1.15.5/node_modules/follow-redirects/debug.js"(exports, module2) {
18193
18223
  "use strict";
18194
18224
  var debug;
18195
18225
  module2.exports = function() {
@@ -18208,9 +18238,9 @@ var require_debug = __commonJS({
18208
18238
  }
18209
18239
  });
18210
18240
 
18211
- // ../../../../node_modules/.pnpm/follow-redirects@1.15.1/node_modules/follow-redirects/index.js
18241
+ // ../../../../node_modules/.pnpm/follow-redirects@1.15.5/node_modules/follow-redirects/index.js
18212
18242
  var require_follow_redirects = __commonJS({
18213
- "../../../../node_modules/.pnpm/follow-redirects@1.15.1/node_modules/follow-redirects/index.js"(exports, module2) {
18243
+ "../../../../node_modules/.pnpm/follow-redirects@1.15.5/node_modules/follow-redirects/index.js"(exports, module2) {
18214
18244
  "use strict";
18215
18245
  var url2 = require("url");
18216
18246
  var URL2 = url2.URL;
@@ -18219,6 +18249,25 @@ var require_follow_redirects = __commonJS({
18219
18249
  var Writable = require("stream").Writable;
18220
18250
  var assert = require("assert");
18221
18251
  var debug = require_debug();
18252
+ var useNativeURL = false;
18253
+ try {
18254
+ assert(new URL2());
18255
+ } catch (error) {
18256
+ useNativeURL = error.code === "ERR_INVALID_URL";
18257
+ }
18258
+ var preservedUrlFields = [
18259
+ "auth",
18260
+ "host",
18261
+ "hostname",
18262
+ "href",
18263
+ "path",
18264
+ "pathname",
18265
+ "port",
18266
+ "protocol",
18267
+ "query",
18268
+ "search",
18269
+ "hash"
18270
+ ];
18222
18271
  var events = ["abort", "aborted", "connect", "error", "socket", "timeout"];
18223
18272
  var eventHandlers = /* @__PURE__ */ Object.create(null);
18224
18273
  events.forEach(function(event) {
@@ -18226,13 +18275,19 @@ var require_follow_redirects = __commonJS({
18226
18275
  this._redirectable.emit(event, arg1, arg2, arg3);
18227
18276
  };
18228
18277
  });
18278
+ var InvalidUrlError = createErrorType(
18279
+ "ERR_INVALID_URL",
18280
+ "Invalid URL",
18281
+ TypeError
18282
+ );
18229
18283
  var RedirectionError = createErrorType(
18230
18284
  "ERR_FR_REDIRECTION_FAILURE",
18231
18285
  "Redirected request failed"
18232
18286
  );
18233
18287
  var TooManyRedirectsError = createErrorType(
18234
18288
  "ERR_FR_TOO_MANY_REDIRECTS",
18235
- "Maximum number of redirects exceeded"
18289
+ "Maximum number of redirects exceeded",
18290
+ RedirectionError
18236
18291
  );
18237
18292
  var MaxBodyLengthExceededError = createErrorType(
18238
18293
  "ERR_FR_MAX_BODY_LENGTH_EXCEEDED",
@@ -18242,6 +18297,7 @@ var require_follow_redirects = __commonJS({
18242
18297
  "ERR_STREAM_WRITE_AFTER_END",
18243
18298
  "write after end"
18244
18299
  );
18300
+ var destroy2 = Writable.prototype.destroy || noop2;
18245
18301
  function RedirectableRequest(options, responseCallback) {
18246
18302
  Writable.call(this);
18247
18303
  this._sanitizeOptions(options);
@@ -18257,23 +18313,33 @@ var require_follow_redirects = __commonJS({
18257
18313
  }
18258
18314
  var self3 = this;
18259
18315
  this._onNativeResponse = function(response) {
18260
- self3._processResponse(response);
18316
+ try {
18317
+ self3._processResponse(response);
18318
+ } catch (cause) {
18319
+ self3.emit("error", cause instanceof RedirectionError ? cause : new RedirectionError({ cause }));
18320
+ }
18261
18321
  };
18262
18322
  this._performRequest();
18263
18323
  }
18264
18324
  RedirectableRequest.prototype = Object.create(Writable.prototype);
18265
18325
  RedirectableRequest.prototype.abort = function() {
18266
- abortRequest(this._currentRequest);
18326
+ destroyRequest(this._currentRequest);
18327
+ this._currentRequest.abort();
18267
18328
  this.emit("abort");
18268
18329
  };
18330
+ RedirectableRequest.prototype.destroy = function(error) {
18331
+ destroyRequest(this._currentRequest, error);
18332
+ destroy2.call(this, error);
18333
+ return this;
18334
+ };
18269
18335
  RedirectableRequest.prototype.write = function(data, encoding, callback) {
18270
18336
  if (this._ending) {
18271
18337
  throw new WriteAfterEndError();
18272
18338
  }
18273
- if (!(typeof data === "string" || typeof data === "object" && "length" in data)) {
18339
+ if (!isString5(data) && !isBuffer2(data)) {
18274
18340
  throw new TypeError("data should be a string, Buffer or Uint8Array");
18275
18341
  }
18276
- if (typeof encoding === "function") {
18342
+ if (isFunction5(encoding)) {
18277
18343
  callback = encoding;
18278
18344
  encoding = null;
18279
18345
  }
@@ -18293,10 +18359,10 @@ var require_follow_redirects = __commonJS({
18293
18359
  }
18294
18360
  };
18295
18361
  RedirectableRequest.prototype.end = function(data, encoding, callback) {
18296
- if (typeof data === "function") {
18362
+ if (isFunction5(data)) {
18297
18363
  callback = data;
18298
18364
  data = encoding = null;
18299
- } else if (typeof encoding === "function") {
18365
+ } else if (isFunction5(encoding)) {
18300
18366
  callback = encoding;
18301
18367
  encoding = null;
18302
18368
  }
@@ -18346,6 +18412,7 @@ var require_follow_redirects = __commonJS({
18346
18412
  self3.removeListener("abort", clearTimer);
18347
18413
  self3.removeListener("error", clearTimer);
18348
18414
  self3.removeListener("response", clearTimer);
18415
+ self3.removeListener("close", clearTimer);
18349
18416
  if (callback) {
18350
18417
  self3.removeListener("timeout", callback);
18351
18418
  }
@@ -18365,6 +18432,7 @@ var require_follow_redirects = __commonJS({
18365
18432
  this.on("abort", clearTimer);
18366
18433
  this.on("error", clearTimer);
18367
18434
  this.on("response", clearTimer);
18435
+ this.on("close", clearTimer);
18368
18436
  return this;
18369
18437
  };
18370
18438
  [
@@ -18408,8 +18476,7 @@ var require_follow_redirects = __commonJS({
18408
18476
  var protocol = this._options.protocol;
18409
18477
  var nativeProtocol = this._options.nativeProtocols[protocol];
18410
18478
  if (!nativeProtocol) {
18411
- this.emit("error", new TypeError("Unsupported protocol " + protocol));
18412
- return;
18479
+ throw new TypeError("Unsupported protocol " + protocol);
18413
18480
  }
18414
18481
  if (this._options.agents) {
18415
18482
  var scheme = protocol.slice(0, -1);
@@ -18423,7 +18490,7 @@ var require_follow_redirects = __commonJS({
18423
18490
  this._currentUrl = /^\//.test(this._options.path) ? url2.format(this._options) : (
18424
18491
  // When making a request to a proxy, […]
18425
18492
  // a client MUST send the target URI in absolute-form […].
18426
- this._currentUrl = this._options.path
18493
+ this._options.path
18427
18494
  );
18428
18495
  if (this._isRedirect) {
18429
18496
  var i = 0;
@@ -18462,11 +18529,10 @@ var require_follow_redirects = __commonJS({
18462
18529
  this._requestBodyBuffers = [];
18463
18530
  return;
18464
18531
  }
18465
- abortRequest(this._currentRequest);
18532
+ destroyRequest(this._currentRequest);
18466
18533
  response.destroy();
18467
18534
  if (++this._redirectCount > this._options.maxRedirects) {
18468
- this.emit("error", new TooManyRedirectsError());
18469
- return;
18535
+ throw new TooManyRedirectsError();
18470
18536
  }
18471
18537
  var requestHeaders;
18472
18538
  var beforeRedirect = this._options.beforeRedirect;
@@ -18487,24 +18553,17 @@ var require_follow_redirects = __commonJS({
18487
18553
  removeMatchingHeaders(/^content-/i, this._options.headers);
18488
18554
  }
18489
18555
  var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);
18490
- var currentUrlParts = url2.parse(this._currentUrl);
18556
+ var currentUrlParts = parseUrl(this._currentUrl);
18491
18557
  var currentHost = currentHostHeader || currentUrlParts.host;
18492
18558
  var currentUrl = /^\w+:/.test(location) ? this._currentUrl : url2.format(Object.assign(currentUrlParts, { host: currentHost }));
18493
- var redirectUrl;
18494
- try {
18495
- redirectUrl = url2.resolve(currentUrl, location);
18496
- } catch (cause) {
18497
- this.emit("error", new RedirectionError(cause));
18498
- return;
18499
- }
18500
- debug("redirecting to", redirectUrl);
18559
+ var redirectUrl = resolveUrl(location, currentUrl);
18560
+ debug("redirecting to", redirectUrl.href);
18501
18561
  this._isRedirect = true;
18502
- var redirectUrlParts = url2.parse(redirectUrl);
18503
- Object.assign(this._options, redirectUrlParts);
18504
- if (redirectUrlParts.protocol !== currentUrlParts.protocol && redirectUrlParts.protocol !== "https:" || redirectUrlParts.host !== currentHost && !isSubdomain(redirectUrlParts.host, currentHost)) {
18562
+ spreadUrlObject(redirectUrl, this._options);
18563
+ if (redirectUrl.protocol !== currentUrlParts.protocol && redirectUrl.protocol !== "https:" || redirectUrl.host !== currentHost && !isSubdomain(redirectUrl.host, currentHost)) {
18505
18564
  removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);
18506
18565
  }
18507
- if (typeof beforeRedirect === "function") {
18566
+ if (isFunction5(beforeRedirect)) {
18508
18567
  var responseDetails = {
18509
18568
  headers: response.headers,
18510
18569
  statusCode
@@ -18514,19 +18573,10 @@ var require_follow_redirects = __commonJS({
18514
18573
  method,
18515
18574
  headers: requestHeaders
18516
18575
  };
18517
- try {
18518
- beforeRedirect(this._options, responseDetails, requestDetails);
18519
- } catch (err) {
18520
- this.emit("error", err);
18521
- return;
18522
- }
18576
+ beforeRedirect(this._options, responseDetails, requestDetails);
18523
18577
  this._sanitizeOptions(this._options);
18524
18578
  }
18525
- try {
18526
- this._performRequest();
18527
- } catch (cause) {
18528
- this.emit("error", new RedirectionError(cause));
18529
- }
18579
+ this._performRequest();
18530
18580
  };
18531
18581
  function wrap(protocols) {
18532
18582
  var exports2 = {
@@ -18539,21 +18589,16 @@ var require_follow_redirects = __commonJS({
18539
18589
  var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];
18540
18590
  var wrappedProtocol = exports2[scheme] = Object.create(nativeProtocol);
18541
18591
  function request(input, options, callback) {
18542
- if (typeof input === "string") {
18543
- var urlStr = input;
18544
- try {
18545
- input = urlToOptions(new URL2(urlStr));
18546
- } catch (err) {
18547
- input = url2.parse(urlStr);
18548
- }
18549
- } else if (URL2 && input instanceof URL2) {
18550
- input = urlToOptions(input);
18592
+ if (isURL(input)) {
18593
+ input = spreadUrlObject(input);
18594
+ } else if (isString5(input)) {
18595
+ input = spreadUrlObject(parseUrl(input));
18551
18596
  } else {
18552
18597
  callback = options;
18553
- options = input;
18598
+ options = validateUrl(input);
18554
18599
  input = { protocol };
18555
18600
  }
18556
- if (typeof options === "function") {
18601
+ if (isFunction5(options)) {
18557
18602
  callback = options;
18558
18603
  options = null;
18559
18604
  }
@@ -18562,6 +18607,9 @@ var require_follow_redirects = __commonJS({
18562
18607
  maxBodyLength: exports2.maxBodyLength
18563
18608
  }, input, options);
18564
18609
  options.nativeProtocols = nativeProtocols;
18610
+ if (!isString5(options.host) && !isString5(options.hostname)) {
18611
+ options.hostname = "::1";
18612
+ }
18565
18613
  assert.equal(options.protocol, protocol, "protocol mismatch");
18566
18614
  debug("options", options);
18567
18615
  return new RedirectableRequest(options, callback);
@@ -18580,23 +18628,43 @@ var require_follow_redirects = __commonJS({
18580
18628
  }
18581
18629
  function noop2() {
18582
18630
  }
18583
- function urlToOptions(urlObject) {
18584
- var options = {
18585
- protocol: urlObject.protocol,
18586
- hostname: urlObject.hostname.startsWith("[") ? (
18587
- /* istanbul ignore next */
18588
- urlObject.hostname.slice(1, -1)
18589
- ) : urlObject.hostname,
18590
- hash: urlObject.hash,
18591
- search: urlObject.search,
18592
- pathname: urlObject.pathname,
18593
- path: urlObject.pathname + urlObject.search,
18594
- href: urlObject.href
18595
- };
18596
- if (urlObject.port !== "") {
18597
- options.port = Number(urlObject.port);
18631
+ function parseUrl(input) {
18632
+ var parsed;
18633
+ if (useNativeURL) {
18634
+ parsed = new URL2(input);
18635
+ } else {
18636
+ parsed = validateUrl(url2.parse(input));
18637
+ if (!isString5(parsed.protocol)) {
18638
+ throw new InvalidUrlError({ input });
18639
+ }
18598
18640
  }
18599
- return options;
18641
+ return parsed;
18642
+ }
18643
+ function resolveUrl(relative, base) {
18644
+ return useNativeURL ? new URL2(relative, base) : parseUrl(url2.resolve(base, relative));
18645
+ }
18646
+ function validateUrl(input) {
18647
+ if (/^\[/.test(input.hostname) && !/^\[[:0-9a-f]+\]$/i.test(input.hostname)) {
18648
+ throw new InvalidUrlError({ input: input.href || input });
18649
+ }
18650
+ if (/^\[/.test(input.host) && !/^\[[:0-9a-f]+\](:\d+)?$/i.test(input.host)) {
18651
+ throw new InvalidUrlError({ input: input.href || input });
18652
+ }
18653
+ return input;
18654
+ }
18655
+ function spreadUrlObject(urlObject, target) {
18656
+ var spread3 = target || {};
18657
+ for (var key of preservedUrlFields) {
18658
+ spread3[key] = urlObject[key];
18659
+ }
18660
+ if (spread3.hostname.startsWith("[")) {
18661
+ spread3.hostname = spread3.hostname.slice(1, -1);
18662
+ }
18663
+ if (spread3.port !== "") {
18664
+ spread3.port = Number(spread3.port);
18665
+ }
18666
+ spread3.path = spread3.search ? spread3.pathname + spread3.search : spread3.pathname;
18667
+ return spread3;
18600
18668
  }
18601
18669
  function removeMatchingHeaders(regex2, headers) {
18602
18670
  var lastValue;
@@ -18608,33 +18676,50 @@ var require_follow_redirects = __commonJS({
18608
18676
  }
18609
18677
  return lastValue === null || typeof lastValue === "undefined" ? void 0 : String(lastValue).trim();
18610
18678
  }
18611
- function createErrorType(code, defaultMessage) {
18612
- function CustomError(cause) {
18679
+ function createErrorType(code, message, baseClass) {
18680
+ function CustomError(properties) {
18613
18681
  Error.captureStackTrace(this, this.constructor);
18614
- if (!cause) {
18615
- this.message = defaultMessage;
18616
- } else {
18617
- this.message = defaultMessage + ": " + cause.message;
18618
- this.cause = cause;
18619
- }
18682
+ Object.assign(this, properties || {});
18683
+ this.code = code;
18684
+ this.message = this.cause ? message + ": " + this.cause.message : message;
18620
18685
  }
18621
- CustomError.prototype = new Error();
18622
- CustomError.prototype.constructor = CustomError;
18623
- CustomError.prototype.name = "Error [" + code + "]";
18624
- CustomError.prototype.code = code;
18686
+ CustomError.prototype = new (baseClass || Error)();
18687
+ Object.defineProperties(CustomError.prototype, {
18688
+ constructor: {
18689
+ value: CustomError,
18690
+ enumerable: false
18691
+ },
18692
+ name: {
18693
+ value: "Error [" + code + "]",
18694
+ enumerable: false
18695
+ }
18696
+ });
18625
18697
  return CustomError;
18626
18698
  }
18627
- function abortRequest(request) {
18699
+ function destroyRequest(request, error) {
18628
18700
  for (var event of events) {
18629
18701
  request.removeListener(event, eventHandlers[event]);
18630
18702
  }
18631
18703
  request.on("error", noop2);
18632
- request.abort();
18704
+ request.destroy(error);
18633
18705
  }
18634
18706
  function isSubdomain(subdomain, domain) {
18635
- const dot = subdomain.length - domain.length - 1;
18707
+ assert(isString5(subdomain) && isString5(domain));
18708
+ var dot = subdomain.length - domain.length - 1;
18636
18709
  return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
18637
18710
  }
18711
+ function isString5(value) {
18712
+ return typeof value === "string" || value instanceof String;
18713
+ }
18714
+ function isFunction5(value) {
18715
+ return typeof value === "function";
18716
+ }
18717
+ function isBuffer2(value) {
18718
+ return typeof value === "object" && "length" in value;
18719
+ }
18720
+ function isURL(value) {
18721
+ return URL2 && value instanceof URL2;
18722
+ }
18638
18723
  module2.exports = wrap({ http: http2, https: https2 });
18639
18724
  module2.exports.wrap = wrap;
18640
18725
  }
@@ -25634,15 +25719,15 @@ var require_runtime = __commonJS({
25634
25719
  throw new _exception2["default"]("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version (" + compilerInfo[1] + ").");
25635
25720
  }
25636
25721
  }
25637
- function template(templateSpec, env) {
25638
- if (!env) {
25722
+ function template(templateSpec, env2) {
25723
+ if (!env2) {
25639
25724
  throw new _exception2["default"]("No environment passed to template");
25640
25725
  }
25641
25726
  if (!templateSpec || !templateSpec.main) {
25642
25727
  throw new _exception2["default"]("Unknown template object: " + typeof templateSpec);
25643
25728
  }
25644
25729
  templateSpec.main.decorator = templateSpec.main_d;
25645
- env.VM.checkRevision(templateSpec.compiler);
25730
+ env2.VM.checkRevision(templateSpec.compiler);
25646
25731
  var templateWasPrecompiledWithCompilerV7 = templateSpec.compiler && templateSpec.compiler[0] === 7;
25647
25732
  function invokePartialWrapper(partial, context, options) {
25648
25733
  if (options.hash) {
@@ -25651,14 +25736,14 @@ var require_runtime = __commonJS({
25651
25736
  options.ids[0] = true;
25652
25737
  }
25653
25738
  }
25654
- partial = env.VM.resolvePartial.call(this, partial, context, options);
25739
+ partial = env2.VM.resolvePartial.call(this, partial, context, options);
25655
25740
  var extendedOptions = Utils.extend({}, options, {
25656
25741
  hooks: this.hooks,
25657
25742
  protoAccessControl: this.protoAccessControl
25658
25743
  });
25659
- var result = env.VM.invokePartial.call(this, partial, context, extendedOptions);
25660
- if (result == null && env.compile) {
25661
- options.partials[options.name] = env.compile(partial, templateSpec.compilerOptions, env);
25744
+ var result = env2.VM.invokePartial.call(this, partial, context, extendedOptions);
25745
+ if (result == null && env2.compile) {
25746
+ options.partials[options.name] = env2.compile(partial, templateSpec.compilerOptions, env2);
25662
25747
  result = options.partials[options.name](context, extendedOptions);
25663
25748
  }
25664
25749
  if (result != null) {
@@ -25743,7 +25828,7 @@ var require_runtime = __commonJS({
25743
25828
  },
25744
25829
  // An empty object to use as replacement for null-contexts
25745
25830
  nullContext: Object.seal({}),
25746
- noop: env.VM.noop,
25831
+ noop: env2.VM.noop,
25747
25832
  compilerInfo: templateSpec.compiler
25748
25833
  };
25749
25834
  function ret(context) {
@@ -25770,14 +25855,14 @@ var require_runtime = __commonJS({
25770
25855
  ret.isTop = true;
25771
25856
  ret._setup = function(options) {
25772
25857
  if (!options.partial) {
25773
- var mergedHelpers = Utils.extend({}, env.helpers, options.helpers);
25858
+ var mergedHelpers = Utils.extend({}, env2.helpers, options.helpers);
25774
25859
  wrapHelpersToPassLookupProperty(mergedHelpers, container);
25775
25860
  container.helpers = mergedHelpers;
25776
25861
  if (templateSpec.usePartial) {
25777
- container.partials = container.mergeIfNeeded(options.partials, env.partials);
25862
+ container.partials = container.mergeIfNeeded(options.partials, env2.partials);
25778
25863
  }
25779
25864
  if (templateSpec.usePartial || templateSpec.useDecorators) {
25780
- container.decorators = Utils.extend({}, env.decorators, options.decorators);
25865
+ container.decorators = Utils.extend({}, env2.decorators, options.decorators);
25781
25866
  }
25782
25867
  container.hooks = {};
25783
25868
  container.protoAccessControl = _internalProtoAccess.createProtoAccessControl(options);
@@ -27579,7 +27664,7 @@ var require_compiler = __commonJS({
27579
27664
  }
27580
27665
  }
27581
27666
  };
27582
- function precompile(input, options, env) {
27667
+ function precompile(input, options, env2) {
27583
27668
  if (input == null || typeof input !== "string" && input.type !== "Program") {
27584
27669
  throw new _exception2["default"]("You must pass a string or Handlebars AST to Handlebars.precompile. You passed " + input);
27585
27670
  }
@@ -27590,10 +27675,10 @@ var require_compiler = __commonJS({
27590
27675
  if (options.compat) {
27591
27676
  options.useDepths = true;
27592
27677
  }
27593
- var ast = env.parse(input, options), environment = new env.Compiler().compile(ast, options);
27594
- return new env.JavaScriptCompiler().compile(environment, options);
27678
+ var ast = env2.parse(input, options), environment = new env2.Compiler().compile(ast, options);
27679
+ return new env2.JavaScriptCompiler().compile(environment, options);
27595
27680
  }
27596
- function compile3(input, options, env) {
27681
+ function compile3(input, options, env2) {
27597
27682
  if (options === void 0)
27598
27683
  options = {};
27599
27684
  if (input == null || typeof input !== "string" && input.type !== "Program") {
@@ -27608,8 +27693,8 @@ var require_compiler = __commonJS({
27608
27693
  }
27609
27694
  var compiled = void 0;
27610
27695
  function compileInput() {
27611
- var ast = env.parse(input, options), environment = new env.Compiler().compile(ast, options), templateSpec = new env.JavaScriptCompiler().compile(environment, options, void 0, true);
27612
- return env.template(templateSpec);
27696
+ var ast = env2.parse(input, options), environment = new env2.Compiler().compile(ast, options), templateSpec = new env2.JavaScriptCompiler().compile(environment, options, void 0, true);
27697
+ return env2.template(templateSpec);
27613
27698
  }
27614
27699
  function ret(context, execOptions) {
27615
27700
  if (!compiled) {
@@ -32535,13 +32620,13 @@ var require_chalk = __commonJS({
32535
32620
  c = l.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(l.FORCE_COLOR, 10), 3);
32536
32621
  }
32537
32622
  }
32538
- function translateLevel(e3) {
32623
+ function translateLevel2(e3) {
32539
32624
  if (e3 === 0) {
32540
32625
  return false;
32541
32626
  }
32542
32627
  return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
32543
32628
  }
32544
- function supportsColor(e3, t3) {
32629
+ function supportsColor2(e3, t3) {
32545
32630
  if (c === 0) {
32546
32631
  return 0;
32547
32632
  }
@@ -32598,10 +32683,10 @@ var require_chalk = __commonJS({
32598
32683
  return n3;
32599
32684
  }
32600
32685
  function getSupportLevel(e3) {
32601
- const t3 = supportsColor(e3, e3 && e3.isTTY);
32602
- return translateLevel(t3);
32686
+ const t3 = supportsColor2(e3, e3 && e3.isTTY);
32687
+ return translateLevel2(t3);
32603
32688
  }
32604
- e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel(supportsColor(true, s.isatty(1))), stderr: translateLevel(supportsColor(true, s.isatty(2))) };
32689
+ e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, s.isatty(1))), stderr: translateLevel2(supportsColor2(true, s.isatty(2))) };
32605
32690
  }, 37: (e2) => {
32606
32691
  "use strict";
32607
32692
  e2.exports = require("os");
@@ -37527,7 +37612,7 @@ var require_innerFrom = __commonJS({
37527
37612
  exports.fromIterable = fromIterable;
37528
37613
  function fromAsyncIterable(asyncIterable) {
37529
37614
  return new Observable_1.Observable(function(subscriber) {
37530
- process2(asyncIterable, subscriber).catch(function(err) {
37615
+ process3(asyncIterable, subscriber).catch(function(err) {
37531
37616
  return subscriber.error(err);
37532
37617
  });
37533
37618
  });
@@ -37537,7 +37622,7 @@ var require_innerFrom = __commonJS({
37537
37622
  return fromAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(readableStream));
37538
37623
  }
37539
37624
  exports.fromReadableStreamLike = fromReadableStreamLike;
37540
- function process2(asyncIterable, subscriber) {
37625
+ function process3(asyncIterable, subscriber) {
37541
37626
  var asyncIterable_1, asyncIterable_1_1;
37542
37627
  var e_2, _a2;
37543
37628
  return __awaiter6(this, void 0, void 0, function() {
@@ -44818,11 +44903,11 @@ var require_signals = __commonJS({
44818
44903
  var require_signal_exit = __commonJS({
44819
44904
  "../../../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports, module2) {
44820
44905
  "use strict";
44821
- var process2 = global.process;
44822
- var processOk = function(process3) {
44823
- return process3 && typeof process3 === "object" && typeof process3.removeListener === "function" && typeof process3.emit === "function" && typeof process3.reallyExit === "function" && typeof process3.listeners === "function" && typeof process3.kill === "function" && typeof process3.pid === "number" && typeof process3.on === "function";
44906
+ var process3 = global.process;
44907
+ var processOk = function(process4) {
44908
+ return process4 && typeof process4 === "object" && typeof process4.removeListener === "function" && typeof process4.emit === "function" && typeof process4.reallyExit === "function" && typeof process4.listeners === "function" && typeof process4.kill === "function" && typeof process4.pid === "number" && typeof process4.on === "function";
44824
44909
  };
44825
- if (!processOk(process2)) {
44910
+ if (!processOk(process3)) {
44826
44911
  module2.exports = function() {
44827
44912
  return function() {
44828
44913
  };
@@ -44830,15 +44915,15 @@ var require_signal_exit = __commonJS({
44830
44915
  } else {
44831
44916
  assert = require("assert");
44832
44917
  signals = require_signals();
44833
- isWin = /^win/i.test(process2.platform);
44918
+ isWin = /^win/i.test(process3.platform);
44834
44919
  EE = require("events");
44835
44920
  if (typeof EE !== "function") {
44836
44921
  EE = EE.EventEmitter;
44837
44922
  }
44838
- if (process2.__signal_exit_emitter__) {
44839
- emitter = process2.__signal_exit_emitter__;
44923
+ if (process3.__signal_exit_emitter__) {
44924
+ emitter = process3.__signal_exit_emitter__;
44840
44925
  } else {
44841
- emitter = process2.__signal_exit_emitter__ = new EE();
44926
+ emitter = process3.__signal_exit_emitter__ = new EE();
44842
44927
  emitter.count = 0;
44843
44928
  emitter.emitted = {};
44844
44929
  }
@@ -44875,12 +44960,12 @@ var require_signal_exit = __commonJS({
44875
44960
  loaded = false;
44876
44961
  signals.forEach(function(sig) {
44877
44962
  try {
44878
- process2.removeListener(sig, sigListeners[sig]);
44963
+ process3.removeListener(sig, sigListeners[sig]);
44879
44964
  } catch (er) {
44880
44965
  }
44881
44966
  });
44882
- process2.emit = originalProcessEmit;
44883
- process2.reallyExit = originalProcessReallyExit;
44967
+ process3.emit = originalProcessEmit;
44968
+ process3.reallyExit = originalProcessReallyExit;
44884
44969
  emitter.count -= 1;
44885
44970
  };
44886
44971
  module2.exports.unload = unload;
@@ -44897,7 +44982,7 @@ var require_signal_exit = __commonJS({
44897
44982
  if (!processOk(global.process)) {
44898
44983
  return;
44899
44984
  }
44900
- var listeners = process2.listeners(sig);
44985
+ var listeners = process3.listeners(sig);
44901
44986
  if (listeners.length === emitter.count) {
44902
44987
  unload();
44903
44988
  emit("exit", null, sig);
@@ -44905,7 +44990,7 @@ var require_signal_exit = __commonJS({
44905
44990
  if (isWin && sig === "SIGHUP") {
44906
44991
  sig = "SIGINT";
44907
44992
  }
44908
- process2.kill(process2.pid, sig);
44993
+ process3.kill(process3.pid, sig);
44909
44994
  }
44910
44995
  };
44911
44996
  });
@@ -44921,36 +45006,36 @@ var require_signal_exit = __commonJS({
44921
45006
  emitter.count += 1;
44922
45007
  signals = signals.filter(function(sig) {
44923
45008
  try {
44924
- process2.on(sig, sigListeners[sig]);
45009
+ process3.on(sig, sigListeners[sig]);
44925
45010
  return true;
44926
45011
  } catch (er) {
44927
45012
  return false;
44928
45013
  }
44929
45014
  });
44930
- process2.emit = processEmit;
44931
- process2.reallyExit = processReallyExit;
45015
+ process3.emit = processEmit;
45016
+ process3.reallyExit = processReallyExit;
44932
45017
  };
44933
45018
  module2.exports.load = load;
44934
- originalProcessReallyExit = process2.reallyExit;
45019
+ originalProcessReallyExit = process3.reallyExit;
44935
45020
  processReallyExit = function processReallyExit2(code) {
44936
45021
  if (!processOk(global.process)) {
44937
45022
  return;
44938
45023
  }
44939
- process2.exitCode = code || /* istanbul ignore next */
45024
+ process3.exitCode = code || /* istanbul ignore next */
44940
45025
  0;
44941
- emit("exit", process2.exitCode, null);
44942
- emit("afterexit", process2.exitCode, null);
44943
- originalProcessReallyExit.call(process2, process2.exitCode);
45026
+ emit("exit", process3.exitCode, null);
45027
+ emit("afterexit", process3.exitCode, null);
45028
+ originalProcessReallyExit.call(process3, process3.exitCode);
44944
45029
  };
44945
- originalProcessEmit = process2.emit;
45030
+ originalProcessEmit = process3.emit;
44946
45031
  processEmit = function processEmit2(ev, arg) {
44947
45032
  if (ev === "exit" && processOk(global.process)) {
44948
45033
  if (arg !== void 0) {
44949
- process2.exitCode = arg;
45034
+ process3.exitCode = arg;
44950
45035
  }
44951
45036
  var ret = originalProcessEmit.apply(this, arguments);
44952
- emit("exit", process2.exitCode, null);
44953
- emit("afterexit", process2.exitCode, null);
45037
+ emit("exit", process3.exitCode, null);
45038
+ emit("afterexit", process3.exitCode, null);
44954
45039
  return ret;
44955
45040
  } else {
44956
45041
  return originalProcessEmit.apply(this, arguments);
@@ -69640,14 +69725,14 @@ async function timeoutPromise(promise, ms, reason = "Operation") {
69640
69725
  var import_os = __toESM(require("os"));
69641
69726
  var import_utils38 = require("@modern-js/utils");
69642
69727
 
69643
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/bind.js
69728
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/bind.js
69644
69729
  function bind(fn, thisArg) {
69645
69730
  return function wrap() {
69646
69731
  return fn.apply(thisArg, arguments);
69647
69732
  };
69648
69733
  }
69649
69734
 
69650
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/utils.js
69735
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/utils.js
69651
69736
  var { toString } = Object.prototype;
69652
69737
  var { getPrototypeOf } = Object;
69653
69738
  var kindOf = ((cache) => (thing) => {
@@ -70006,7 +70091,7 @@ var utils_default = {
70006
70091
  isThenable
70007
70092
  };
70008
70093
 
70009
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/core/AxiosError.js
70094
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/AxiosError.js
70010
70095
  function AxiosError(message, code, config, request, response) {
70011
70096
  Error.call(this);
70012
70097
  if (Error.captureStackTrace) {
@@ -70078,11 +70163,11 @@ AxiosError.from = (error, code, config, request, response, customProps) => {
70078
70163
  };
70079
70164
  var AxiosError_default = AxiosError;
70080
70165
 
70081
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/platform/node/classes/FormData.js
70166
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/platform/node/classes/FormData.js
70082
70167
  var import_form_data = __toESM(require_form_data());
70083
70168
  var FormData_default = import_form_data.default;
70084
70169
 
70085
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/toFormData.js
70170
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/toFormData.js
70086
70171
  function isVisitable(thing) {
70087
70172
  return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
70088
70173
  }
@@ -70197,7 +70282,7 @@ function toFormData(obj, formData, options) {
70197
70282
  }
70198
70283
  var toFormData_default = toFormData;
70199
70284
 
70200
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
70285
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
70201
70286
  function encode(str) {
70202
70287
  const charMap = {
70203
70288
  "!": "%21",
@@ -70230,7 +70315,7 @@ prototype2.toString = function toString2(encoder) {
70230
70315
  };
70231
70316
  var AxiosURLSearchParams_default = AxiosURLSearchParams;
70232
70317
 
70233
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/buildURL.js
70318
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/buildURL.js
70234
70319
  function encode2(val) {
70235
70320
  return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
70236
70321
  }
@@ -70256,7 +70341,7 @@ function buildURL(url2, params, options) {
70256
70341
  return url2;
70257
70342
  }
70258
70343
 
70259
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/core/InterceptorManager.js
70344
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/InterceptorManager.js
70260
70345
  var InterceptorManager = class {
70261
70346
  constructor() {
70262
70347
  this.handlers = [];
@@ -70320,18 +70405,18 @@ var InterceptorManager = class {
70320
70405
  };
70321
70406
  var InterceptorManager_default = InterceptorManager;
70322
70407
 
70323
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/defaults/transitional.js
70408
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/defaults/transitional.js
70324
70409
  var transitional_default = {
70325
70410
  silentJSONParsing: true,
70326
70411
  forcedJSONParsing: true,
70327
70412
  clarifyTimeoutError: false
70328
70413
  };
70329
70414
 
70330
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
70415
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
70331
70416
  var import_url = __toESM(require("url"));
70332
70417
  var URLSearchParams_default = import_url.default.URLSearchParams;
70333
70418
 
70334
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/platform/node/index.js
70419
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/platform/node/index.js
70335
70420
  var node_default = {
70336
70421
  isNode: true,
70337
70422
  classes: {
@@ -70342,11 +70427,33 @@ var node_default = {
70342
70427
  protocols: ["http", "https", "file", "data"]
70343
70428
  };
70344
70429
 
70345
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/toURLEncodedForm.js
70430
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/platform/common/utils.js
70431
+ var utils_exports = {};
70432
+ __export(utils_exports, {
70433
+ hasBrowserEnv: () => hasBrowserEnv,
70434
+ hasStandardBrowserEnv: () => hasStandardBrowserEnv,
70435
+ hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv
70436
+ });
70437
+ var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
70438
+ var hasStandardBrowserEnv = ((product) => {
70439
+ return hasBrowserEnv && ["ReactNative", "NativeScript", "NS"].indexOf(product) < 0;
70440
+ })(typeof navigator !== "undefined" && navigator.product);
70441
+ var hasStandardBrowserWebWorkerEnv = (() => {
70442
+ return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
70443
+ self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
70444
+ })();
70445
+
70446
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/platform/index.js
70447
+ var platform_default = {
70448
+ ...utils_exports,
70449
+ ...node_default
70450
+ };
70451
+
70452
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/toURLEncodedForm.js
70346
70453
  function toURLEncodedForm(data, options) {
70347
- return toFormData_default(data, new node_default.classes.URLSearchParams(), Object.assign({
70454
+ return toFormData_default(data, new platform_default.classes.URLSearchParams(), Object.assign({
70348
70455
  visitor: function(value, key, path18, helpers) {
70349
- if (node_default.isNode && utils_default.isBuffer(value)) {
70456
+ if (platform_default.isNode && utils_default.isBuffer(value)) {
70350
70457
  this.append(key, value.toString("base64"));
70351
70458
  return false;
70352
70459
  }
@@ -70355,7 +70462,7 @@ function toURLEncodedForm(data, options) {
70355
70462
  }, options));
70356
70463
  }
70357
70464
 
70358
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/formDataToJSON.js
70465
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/formDataToJSON.js
70359
70466
  function parsePropPath(name) {
70360
70467
  return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
70361
70468
  return match[0] === "[]" ? "" : match[1] || match[0];
@@ -70376,6 +70483,8 @@ function arrayToObject(arr) {
70376
70483
  function formDataToJSON(formData) {
70377
70484
  function buildPath(path18, value, target, index) {
70378
70485
  let name = path18[index++];
70486
+ if (name === "__proto__")
70487
+ return true;
70379
70488
  const isNumericKey = Number.isFinite(+name);
70380
70489
  const isLast = index >= path18.length;
70381
70490
  name = !name && utils_default.isArray(target) ? target.length : name;
@@ -70407,7 +70516,7 @@ function formDataToJSON(formData) {
70407
70516
  }
70408
70517
  var formDataToJSON_default = formDataToJSON;
70409
70518
 
70410
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/defaults/index.js
70519
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/defaults/index.js
70411
70520
  function stringifySafely(rawValue, parser, encoder) {
70412
70521
  if (utils_default.isString(rawValue)) {
70413
70522
  try {
@@ -70433,9 +70542,6 @@ var defaults = {
70433
70542
  }
70434
70543
  const isFormData2 = utils_default.isFormData(data);
70435
70544
  if (isFormData2) {
70436
- if (!hasJSONContentType) {
70437
- return data;
70438
- }
70439
70545
  return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
70440
70546
  }
70441
70547
  if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data)) {
@@ -70498,8 +70604,8 @@ var defaults = {
70498
70604
  maxContentLength: -1,
70499
70605
  maxBodyLength: -1,
70500
70606
  env: {
70501
- FormData: node_default.classes.FormData,
70502
- Blob: node_default.classes.Blob
70607
+ FormData: platform_default.classes.FormData,
70608
+ Blob: platform_default.classes.Blob
70503
70609
  },
70504
70610
  validateStatus: function validateStatus(status) {
70505
70611
  return status >= 200 && status < 300;
@@ -70516,7 +70622,7 @@ utils_default.forEach(["delete", "get", "head", "post", "put", "patch"], (method
70516
70622
  });
70517
70623
  var defaults_default = defaults;
70518
70624
 
70519
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/parseHeaders.js
70625
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/parseHeaders.js
70520
70626
  var ignoreDuplicateOf = utils_default.toObjectSet([
70521
70627
  "age",
70522
70628
  "authorization",
@@ -70561,7 +70667,7 @@ var parseHeaders_default = (rawHeaders) => {
70561
70667
  return parsed;
70562
70668
  };
70563
70669
 
70564
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/core/AxiosHeaders.js
70670
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/AxiosHeaders.js
70565
70671
  var $internals = Symbol("internals");
70566
70672
  function normalizeHeader(header) {
70567
70673
  return header && String(header).trim().toLowerCase();
@@ -70779,7 +70885,7 @@ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
70779
70885
  utils_default.freezeMethods(AxiosHeaders);
70780
70886
  var AxiosHeaders_default = AxiosHeaders;
70781
70887
 
70782
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/core/transformData.js
70888
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/transformData.js
70783
70889
  function transformData(fns, response) {
70784
70890
  const config = this || defaults_default;
70785
70891
  const context = response || config;
@@ -70792,12 +70898,12 @@ function transformData(fns, response) {
70792
70898
  return data;
70793
70899
  }
70794
70900
 
70795
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/cancel/isCancel.js
70901
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/cancel/isCancel.js
70796
70902
  function isCancel(value) {
70797
70903
  return !!(value && value.__CANCEL__);
70798
70904
  }
70799
70905
 
70800
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/cancel/CanceledError.js
70906
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/cancel/CanceledError.js
70801
70907
  function CanceledError(message, config, request) {
70802
70908
  AxiosError_default.call(this, message == null ? "canceled" : message, AxiosError_default.ERR_CANCELED, config, request);
70803
70909
  this.name = "CanceledError";
@@ -70807,7 +70913,7 @@ utils_default.inherits(CanceledError, AxiosError_default, {
70807
70913
  });
70808
70914
  var CanceledError_default = CanceledError;
70809
70915
 
70810
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/core/settle.js
70916
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/settle.js
70811
70917
  function settle(resolve, reject, response) {
70812
70918
  const validateStatus2 = response.config.validateStatus;
70813
70919
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
@@ -70823,17 +70929,17 @@ function settle(resolve, reject, response) {
70823
70929
  }
70824
70930
  }
70825
70931
 
70826
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/isAbsoluteURL.js
70932
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/isAbsoluteURL.js
70827
70933
  function isAbsoluteURL(url2) {
70828
70934
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
70829
70935
  }
70830
70936
 
70831
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/combineURLs.js
70937
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/combineURLs.js
70832
70938
  function combineURLs(baseURL, relativeURL) {
70833
- return relativeURL ? baseURL.replace(/\/+$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
70939
+ return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
70834
70940
  }
70835
70941
 
70836
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/core/buildFullPath.js
70942
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/buildFullPath.js
70837
70943
  function buildFullPath(baseURL, requestedURL) {
70838
70944
  if (baseURL && !isAbsoluteURL(requestedURL)) {
70839
70945
  return combineURLs(baseURL, requestedURL);
@@ -70841,7 +70947,7 @@ function buildFullPath(baseURL, requestedURL) {
70841
70947
  return requestedURL;
70842
70948
  }
70843
70949
 
70844
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/adapters/http.js
70950
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/adapters/http.js
70845
70951
  var import_proxy_from_env = __toESM(require_proxy_from_env());
70846
70952
  var import_http = __toESM(require("http"));
70847
70953
  var import_https = __toESM(require("https"));
@@ -70849,19 +70955,19 @@ var import_util2 = __toESM(require("util"));
70849
70955
  var import_follow_redirects = __toESM(require_follow_redirects());
70850
70956
  var import_zlib = __toESM(require("zlib"));
70851
70957
 
70852
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/env/data.js
70853
- var VERSION = "1.6.0";
70958
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/env/data.js
70959
+ var VERSION = "1.6.7";
70854
70960
 
70855
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/parseProtocol.js
70961
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/parseProtocol.js
70856
70962
  function parseProtocol(url2) {
70857
70963
  const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
70858
70964
  return match && match[1] || "";
70859
70965
  }
70860
70966
 
70861
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/fromDataURI.js
70967
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/fromDataURI.js
70862
70968
  var DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;
70863
70969
  function fromDataURI(uri, asBlob, options) {
70864
- const _Blob = options && options.Blob || node_default.classes.Blob;
70970
+ const _Blob = options && options.Blob || platform_default.classes.Blob;
70865
70971
  const protocol = parseProtocol(uri);
70866
70972
  if (asBlob === void 0 && _Blob) {
70867
70973
  asBlob = true;
@@ -70887,13 +70993,13 @@ function fromDataURI(uri, asBlob, options) {
70887
70993
  throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
70888
70994
  }
70889
70995
 
70890
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/adapters/http.js
70996
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/adapters/http.js
70891
70997
  var import_stream4 = __toESM(require("stream"));
70892
70998
 
70893
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/AxiosTransformStream.js
70999
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/AxiosTransformStream.js
70894
71000
  var import_stream = __toESM(require("stream"));
70895
71001
 
70896
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/throttle.js
71002
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/throttle.js
70897
71003
  function throttle(fn, freq) {
70898
71004
  let timestamp = 0;
70899
71005
  const threshold = 1e3 / freq;
@@ -70919,7 +71025,7 @@ function throttle(fn, freq) {
70919
71025
  }
70920
71026
  var throttle_default = throttle;
70921
71027
 
70922
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/speedometer.js
71028
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/speedometer.js
70923
71029
  function speedometer(samplesCount, min) {
70924
71030
  samplesCount = samplesCount || 10;
70925
71031
  const bytes = new Array(samplesCount);
@@ -70955,7 +71061,7 @@ function speedometer(samplesCount, min) {
70955
71061
  }
70956
71062
  var speedometer_default = speedometer;
70957
71063
 
70958
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/AxiosTransformStream.js
71064
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/AxiosTransformStream.js
70959
71065
  var kInternals = Symbol("internals");
70960
71066
  var AxiosTransformStream = class extends import_stream.default.Transform {
70961
71067
  constructor(options) {
@@ -71105,14 +71211,14 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
71105
71211
  };
71106
71212
  var AxiosTransformStream_default = AxiosTransformStream;
71107
71213
 
71108
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/adapters/http.js
71214
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/adapters/http.js
71109
71215
  var import_events2 = __toESM(require("events"));
71110
71216
 
71111
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/formDataToStream.js
71217
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/formDataToStream.js
71112
71218
  var import_util = require("util");
71113
71219
  var import_stream2 = require("stream");
71114
71220
 
71115
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/readBlob.js
71221
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/readBlob.js
71116
71222
  var { asyncIterator } = Symbol;
71117
71223
  var readBlob = async function* (blob) {
71118
71224
  if (blob.stream) {
@@ -71127,7 +71233,7 @@ var readBlob = async function* (blob) {
71127
71233
  };
71128
71234
  var readBlob_default = readBlob;
71129
71235
 
71130
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/formDataToStream.js
71236
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/formDataToStream.js
71131
71237
  var BOUNDARY_ALPHABET = utils_default.ALPHABET.ALPHA_DIGIT + "-_";
71132
71238
  var textEncoder = new import_util.TextEncoder();
71133
71239
  var CRLF = "\r\n";
@@ -71206,7 +71312,7 @@ var formDataToStream = (form, headersHandler, options) => {
71206
71312
  };
71207
71313
  var formDataToStream_default = formDataToStream;
71208
71314
 
71209
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
71315
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
71210
71316
  var import_stream3 = __toESM(require("stream"));
71211
71317
  var ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
71212
71318
  __transform(chunk, encoding, callback) {
@@ -71228,7 +71334,7 @@ var ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
71228
71334
  };
71229
71335
  var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
71230
71336
 
71231
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/callbackify.js
71337
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/callbackify.js
71232
71338
  var callbackify = (fn, reducer) => {
71233
71339
  return utils_default.isAsyncFn(fn) ? function(...args) {
71234
71340
  const cb = args.pop();
@@ -71243,7 +71349,7 @@ var callbackify = (fn, reducer) => {
71243
71349
  };
71244
71350
  var callbackify_default = callbackify;
71245
71351
 
71246
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/adapters/http.js
71352
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/adapters/http.js
71247
71353
  var zlibOptions = {
71248
71354
  flush: import_zlib.default.constants.Z_SYNC_FLUSH,
71249
71355
  finishFlush: import_zlib.default.constants.Z_SYNC_FLUSH
@@ -71255,15 +71361,15 @@ var brotliOptions = {
71255
71361
  var isBrotliSupported = utils_default.isFunction(import_zlib.default.createBrotliDecompress);
71256
71362
  var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;
71257
71363
  var isHttps = /https:?/;
71258
- var supportedProtocols = node_default.protocols.map((protocol) => {
71364
+ var supportedProtocols = platform_default.protocols.map((protocol) => {
71259
71365
  return protocol + ":";
71260
71366
  });
71261
- function dispatchBeforeRedirect(options) {
71367
+ function dispatchBeforeRedirect(options, responseDetails) {
71262
71368
  if (options.beforeRedirects.proxy) {
71263
71369
  options.beforeRedirects.proxy(options);
71264
71370
  }
71265
71371
  if (options.beforeRedirects.config) {
71266
- options.beforeRedirects.config(options);
71372
+ options.beforeRedirects.config(options, responseDetails);
71267
71373
  }
71268
71374
  }
71269
71375
  function setProxy(options, configProxy, location) {
@@ -71343,6 +71449,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
71343
71449
  const _lookup = callbackify_default(lookup, (value) => utils_default.isArray(value) ? value : [value]);
71344
71450
  lookup = (hostname, opt, cb) => {
71345
71451
  _lookup(hostname, opt, (err, arg0, arg1) => {
71452
+ if (err) {
71453
+ return cb(err);
71454
+ }
71346
71455
  const addresses = utils_default.isArray(arg0) ? arg0.map((addr) => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
71347
71456
  opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
71348
71457
  });
@@ -71739,57 +71848,44 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
71739
71848
  });
71740
71849
  };
71741
71850
 
71742
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/cookies.js
71743
- var cookies_default = node_default.isStandardBrowserEnv ? (
71851
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/cookies.js
71852
+ var cookies_default = platform_default.hasStandardBrowserEnv ? (
71744
71853
  // Standard browser envs support document.cookie
71745
- function standardBrowserEnv() {
71746
- return {
71747
- write: function write(name, value, expires, path18, domain, secure) {
71748
- const cookie = [];
71749
- cookie.push(name + "=" + encodeURIComponent(value));
71750
- if (utils_default.isNumber(expires)) {
71751
- cookie.push("expires=" + new Date(expires).toGMTString());
71752
- }
71753
- if (utils_default.isString(path18)) {
71754
- cookie.push("path=" + path18);
71755
- }
71756
- if (utils_default.isString(domain)) {
71757
- cookie.push("domain=" + domain);
71758
- }
71759
- if (secure === true) {
71760
- cookie.push("secure");
71761
- }
71762
- document.cookie = cookie.join("; ");
71763
- },
71764
- read: function read(name) {
71765
- const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
71766
- return match ? decodeURIComponent(match[3]) : null;
71767
- },
71768
- remove: function remove(name) {
71769
- this.write(name, "", Date.now() - 864e5);
71770
- }
71771
- };
71772
- }()
71854
+ {
71855
+ write(name, value, expires, path18, domain, secure) {
71856
+ const cookie = [name + "=" + encodeURIComponent(value)];
71857
+ utils_default.isNumber(expires) && cookie.push("expires=" + new Date(expires).toGMTString());
71858
+ utils_default.isString(path18) && cookie.push("path=" + path18);
71859
+ utils_default.isString(domain) && cookie.push("domain=" + domain);
71860
+ secure === true && cookie.push("secure");
71861
+ document.cookie = cookie.join("; ");
71862
+ },
71863
+ read(name) {
71864
+ const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
71865
+ return match ? decodeURIComponent(match[3]) : null;
71866
+ },
71867
+ remove(name) {
71868
+ this.write(name, "", Date.now() - 864e5);
71869
+ }
71870
+ }
71773
71871
  ) : (
71774
- // Non standard browser env (web workers, react-native) lack needed support.
71775
- function nonStandardBrowserEnv() {
71776
- return {
71777
- write: function write() {
71778
- },
71779
- read: function read() {
71780
- return null;
71781
- },
71782
- remove: function remove() {
71783
- }
71784
- };
71785
- }()
71872
+ // Non-standard browser env (web workers, react-native) lack needed support.
71873
+ {
71874
+ write() {
71875
+ },
71876
+ read() {
71877
+ return null;
71878
+ },
71879
+ remove() {
71880
+ }
71881
+ }
71786
71882
  );
71787
71883
 
71788
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/isURLSameOrigin.js
71789
- var isURLSameOrigin_default = node_default.isStandardBrowserEnv ? (
71884
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/isURLSameOrigin.js
71885
+ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? (
71790
71886
  // Standard browser envs have full support of the APIs needed to test
71791
71887
  // whether the request URL is of the same origin as current location.
71792
- function standardBrowserEnv2() {
71888
+ function standardBrowserEnv() {
71793
71889
  const msie = /(msie|trident)/i.test(navigator.userAgent);
71794
71890
  const urlParsingNode = document.createElement("a");
71795
71891
  let originURL;
@@ -71819,14 +71915,14 @@ var isURLSameOrigin_default = node_default.isStandardBrowserEnv ? (
71819
71915
  }()
71820
71916
  ) : (
71821
71917
  // Non standard browser envs (web workers, react-native) lack needed support.
71822
- function nonStandardBrowserEnv2() {
71918
+ function nonStandardBrowserEnv() {
71823
71919
  return function isURLSameOrigin() {
71824
71920
  return true;
71825
71921
  };
71826
71922
  }()
71827
71923
  );
71828
71924
 
71829
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/adapters/xhr.js
71925
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/adapters/xhr.js
71830
71926
  function progressEventReducer(listener, isDownloadStream) {
71831
71927
  let bytesNotified = 0;
71832
71928
  const _speedometer = speedometer_default(50, 250);
@@ -71855,7 +71951,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
71855
71951
  return new Promise(function dispatchXhrRequest(resolve, reject) {
71856
71952
  let requestData = config.data;
71857
71953
  const requestHeaders = AxiosHeaders_default.from(config.headers).normalize();
71858
- const responseType = config.responseType;
71954
+ let { responseType, withXSRFToken } = config;
71859
71955
  let onCanceled;
71860
71956
  function done() {
71861
71957
  if (config.cancelToken) {
@@ -71867,12 +71963,11 @@ var xhr_default = isXHRAdapterSupported && function(config) {
71867
71963
  }
71868
71964
  let contentType;
71869
71965
  if (utils_default.isFormData(requestData)) {
71870
- if (node_default.isStandardBrowserEnv || node_default.isStandardBrowserWebWorkerEnv) {
71966
+ if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
71871
71967
  requestHeaders.setContentType(false);
71872
- } else if (!requestHeaders.getContentType(/^\s*multipart\/form-data/)) {
71873
- requestHeaders.setContentType("multipart/form-data");
71874
- } else if (utils_default.isString(contentType = requestHeaders.getContentType())) {
71875
- requestHeaders.setContentType(contentType.replace(/^\s*(multipart\/form-data);+/, "$1"));
71968
+ } else if ((contentType = requestHeaders.getContentType()) !== false) {
71969
+ const [type, ...tokens] = contentType ? contentType.split(";").map((token) => token.trim()).filter(Boolean) : [];
71970
+ requestHeaders.setContentType([type || "multipart/form-data", ...tokens].join("; "));
71876
71971
  }
71877
71972
  }
71878
71973
  let request = new XMLHttpRequest();
@@ -71947,10 +72042,13 @@ var xhr_default = isXHRAdapterSupported && function(config) {
71947
72042
  ));
71948
72043
  request = null;
71949
72044
  };
71950
- if (node_default.isStandardBrowserEnv) {
71951
- const xsrfValue = isURLSameOrigin_default(fullPath) && config.xsrfCookieName && cookies_default.read(config.xsrfCookieName);
71952
- if (xsrfValue) {
71953
- requestHeaders.set(config.xsrfHeaderName, xsrfValue);
72045
+ if (platform_default.hasStandardBrowserEnv) {
72046
+ withXSRFToken && utils_default.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config));
72047
+ if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin_default(fullPath)) {
72048
+ const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && cookies_default.read(config.xsrfCookieName);
72049
+ if (xsrfValue) {
72050
+ requestHeaders.set(config.xsrfHeaderName, xsrfValue);
72051
+ }
71954
72052
  }
71955
72053
  }
71956
72054
  requestData === void 0 && requestHeaders.setContentType(null);
@@ -71986,7 +72084,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
71986
72084
  }
71987
72085
  }
71988
72086
  const protocol = parseProtocol(fullPath);
71989
- if (protocol && node_default.protocols.indexOf(protocol) === -1) {
72087
+ if (protocol && platform_default.protocols.indexOf(protocol) === -1) {
71990
72088
  reject(new AxiosError_default("Unsupported protocol " + protocol + ":", AxiosError_default.ERR_BAD_REQUEST, config));
71991
72089
  return;
71992
72090
  }
@@ -71994,7 +72092,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
71994
72092
  });
71995
72093
  };
71996
72094
 
71997
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/adapters/adapters.js
72095
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/adapters/adapters.js
71998
72096
  var knownAdapters = {
71999
72097
  http: http_default,
72000
72098
  xhr: xhr_default
@@ -72047,7 +72145,7 @@ var adapters_default = {
72047
72145
  adapters: knownAdapters
72048
72146
  };
72049
72147
 
72050
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/core/dispatchRequest.js
72148
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/dispatchRequest.js
72051
72149
  function throwIfCancellationRequested(config) {
72052
72150
  if (config.cancelToken) {
72053
72151
  config.cancelToken.throwIfRequested();
@@ -72092,7 +72190,7 @@ function dispatchRequest(config) {
72092
72190
  });
72093
72191
  }
72094
72192
 
72095
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/core/mergeConfig.js
72193
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/mergeConfig.js
72096
72194
  var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? thing.toJSON() : thing;
72097
72195
  function mergeConfig(config1, config2) {
72098
72196
  config2 = config2 || {};
@@ -72144,6 +72242,7 @@ function mergeConfig(config1, config2) {
72144
72242
  timeout: defaultToConfig2,
72145
72243
  timeoutMessage: defaultToConfig2,
72146
72244
  withCredentials: defaultToConfig2,
72245
+ withXSRFToken: defaultToConfig2,
72147
72246
  adapter: defaultToConfig2,
72148
72247
  responseType: defaultToConfig2,
72149
72248
  xsrfCookieName: defaultToConfig2,
@@ -72171,7 +72270,7 @@ function mergeConfig(config1, config2) {
72171
72270
  return config;
72172
72271
  }
72173
72272
 
72174
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/validator.js
72273
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/validator.js
72175
72274
  var validators = {};
72176
72275
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
72177
72276
  validators[type] = function validator(thing) {
@@ -72229,7 +72328,7 @@ var validator_default = {
72229
72328
  validators
72230
72329
  };
72231
72330
 
72232
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/core/Axios.js
72331
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/Axios.js
72233
72332
  var validators2 = validator_default.validators;
72234
72333
  var Axios = class {
72235
72334
  constructor(instanceConfig) {
@@ -72247,7 +72346,24 @@ var Axios = class {
72247
72346
  *
72248
72347
  * @returns {Promise} The Promise to be fulfilled
72249
72348
  */
72250
- request(configOrUrl, config) {
72349
+ async request(configOrUrl, config) {
72350
+ try {
72351
+ return await this._request(configOrUrl, config);
72352
+ } catch (err) {
72353
+ if (err instanceof Error) {
72354
+ let dummy;
72355
+ Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : dummy = new Error();
72356
+ const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, "") : "";
72357
+ if (!err.stack) {
72358
+ err.stack = stack;
72359
+ } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ""))) {
72360
+ err.stack += "\n" + stack;
72361
+ }
72362
+ }
72363
+ throw err;
72364
+ }
72365
+ }
72366
+ _request(configOrUrl, config) {
72251
72367
  if (typeof configOrUrl === "string") {
72252
72368
  config = config || {};
72253
72369
  config.url = configOrUrl;
@@ -72372,7 +72488,7 @@ utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(m
72372
72488
  });
72373
72489
  var Axios_default = Axios;
72374
72490
 
72375
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/cancel/CancelToken.js
72491
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/cancel/CancelToken.js
72376
72492
  var CancelToken = class _CancelToken {
72377
72493
  constructor(executor) {
72378
72494
  if (typeof executor !== "function") {
@@ -72462,19 +72578,19 @@ var CancelToken = class _CancelToken {
72462
72578
  };
72463
72579
  var CancelToken_default = CancelToken;
72464
72580
 
72465
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/spread.js
72581
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/spread.js
72466
72582
  function spread(callback) {
72467
72583
  return function wrap(arr) {
72468
72584
  return callback.apply(null, arr);
72469
72585
  };
72470
72586
  }
72471
72587
 
72472
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/isAxiosError.js
72588
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/isAxiosError.js
72473
72589
  function isAxiosError(payload) {
72474
72590
  return utils_default.isObject(payload) && payload.isAxiosError === true;
72475
72591
  }
72476
72592
 
72477
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/HttpStatusCode.js
72593
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/HttpStatusCode.js
72478
72594
  var HttpStatusCode = {
72479
72595
  Continue: 100,
72480
72596
  SwitchingProtocols: 101,
@@ -72545,7 +72661,7 @@ Object.entries(HttpStatusCode).forEach(([key, value]) => {
72545
72661
  });
72546
72662
  var HttpStatusCode_default = HttpStatusCode;
72547
72663
 
72548
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/axios.js
72664
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/axios.js
72549
72665
  function createInstance(defaultConfig) {
72550
72666
  const context = new Axios_default(defaultConfig);
72551
72667
  const instance = bind(Axios_default.prototype.request, context);
@@ -72578,7 +72694,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
72578
72694
  axios.default = axios;
72579
72695
  var axios_default = axios;
72580
72696
 
72581
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/index.js
72697
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/index.js
72582
72698
  var {
72583
72699
  Axios: Axios2,
72584
72700
  AxiosError: AxiosError2,