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

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