@modern-js/repo-generator 3.3.8 → 3.3.10

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 +506 -458
  2. package/package.json +13 -13
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.1/node_modules/follow-redirects/debug.js
18190
+ // ../../../../node_modules/.pnpm/follow-redirects@1.15.5/node_modules/follow-redirects/debug.js
18221
18191
  var require_debug = __commonJS({
18222
- "../../../../node_modules/.pnpm/follow-redirects@1.15.1/node_modules/follow-redirects/debug.js"(exports, module2) {
18192
+ "../../../../node_modules/.pnpm/follow-redirects@1.15.5/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.1/node_modules/follow-redirects/index.js
18211
+ // ../../../../node_modules/.pnpm/follow-redirects@1.15.5/node_modules/follow-redirects/index.js
18242
18212
  var require_follow_redirects = __commonJS({
18243
- "../../../../node_modules/.pnpm/follow-redirects@1.15.1/node_modules/follow-redirects/index.js"(exports, module2) {
18213
+ "../../../../node_modules/.pnpm/follow-redirects@1.15.5/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,6 +18219,25 @@ var require_follow_redirects = __commonJS({
18249
18219
  var Writable = require("stream").Writable;
18250
18220
  var assert = require("assert");
18251
18221
  var debug = require_debug();
18222
+ var useNativeURL = false;
18223
+ try {
18224
+ assert(new URL2());
18225
+ } catch (error) {
18226
+ useNativeURL = error.code === "ERR_INVALID_URL";
18227
+ }
18228
+ var preservedUrlFields = [
18229
+ "auth",
18230
+ "host",
18231
+ "hostname",
18232
+ "href",
18233
+ "path",
18234
+ "pathname",
18235
+ "port",
18236
+ "protocol",
18237
+ "query",
18238
+ "search",
18239
+ "hash"
18240
+ ];
18252
18241
  var events = ["abort", "aborted", "connect", "error", "socket", "timeout"];
18253
18242
  var eventHandlers = /* @__PURE__ */ Object.create(null);
18254
18243
  events.forEach(function(event) {
@@ -18256,13 +18245,19 @@ var require_follow_redirects = __commonJS({
18256
18245
  this._redirectable.emit(event, arg1, arg2, arg3);
18257
18246
  };
18258
18247
  });
18248
+ var InvalidUrlError = createErrorType(
18249
+ "ERR_INVALID_URL",
18250
+ "Invalid URL",
18251
+ TypeError
18252
+ );
18259
18253
  var RedirectionError = createErrorType(
18260
18254
  "ERR_FR_REDIRECTION_FAILURE",
18261
18255
  "Redirected request failed"
18262
18256
  );
18263
18257
  var TooManyRedirectsError = createErrorType(
18264
18258
  "ERR_FR_TOO_MANY_REDIRECTS",
18265
- "Maximum number of redirects exceeded"
18259
+ "Maximum number of redirects exceeded",
18260
+ RedirectionError
18266
18261
  );
18267
18262
  var MaxBodyLengthExceededError = createErrorType(
18268
18263
  "ERR_FR_MAX_BODY_LENGTH_EXCEEDED",
@@ -18272,6 +18267,7 @@ var require_follow_redirects = __commonJS({
18272
18267
  "ERR_STREAM_WRITE_AFTER_END",
18273
18268
  "write after end"
18274
18269
  );
18270
+ var destroy2 = Writable.prototype.destroy || noop2;
18275
18271
  function RedirectableRequest(options, responseCallback) {
18276
18272
  Writable.call(this);
18277
18273
  this._sanitizeOptions(options);
@@ -18287,23 +18283,33 @@ var require_follow_redirects = __commonJS({
18287
18283
  }
18288
18284
  var self3 = this;
18289
18285
  this._onNativeResponse = function(response) {
18290
- self3._processResponse(response);
18286
+ try {
18287
+ self3._processResponse(response);
18288
+ } catch (cause) {
18289
+ self3.emit("error", cause instanceof RedirectionError ? cause : new RedirectionError({ cause }));
18290
+ }
18291
18291
  };
18292
18292
  this._performRequest();
18293
18293
  }
18294
18294
  RedirectableRequest.prototype = Object.create(Writable.prototype);
18295
18295
  RedirectableRequest.prototype.abort = function() {
18296
- abortRequest(this._currentRequest);
18296
+ destroyRequest(this._currentRequest);
18297
+ this._currentRequest.abort();
18297
18298
  this.emit("abort");
18298
18299
  };
18300
+ RedirectableRequest.prototype.destroy = function(error) {
18301
+ destroyRequest(this._currentRequest, error);
18302
+ destroy2.call(this, error);
18303
+ return this;
18304
+ };
18299
18305
  RedirectableRequest.prototype.write = function(data, encoding, callback) {
18300
18306
  if (this._ending) {
18301
18307
  throw new WriteAfterEndError();
18302
18308
  }
18303
- if (!(typeof data === "string" || typeof data === "object" && "length" in data)) {
18309
+ if (!isString5(data) && !isBuffer2(data)) {
18304
18310
  throw new TypeError("data should be a string, Buffer or Uint8Array");
18305
18311
  }
18306
- if (typeof encoding === "function") {
18312
+ if (isFunction5(encoding)) {
18307
18313
  callback = encoding;
18308
18314
  encoding = null;
18309
18315
  }
@@ -18323,10 +18329,10 @@ var require_follow_redirects = __commonJS({
18323
18329
  }
18324
18330
  };
18325
18331
  RedirectableRequest.prototype.end = function(data, encoding, callback) {
18326
- if (typeof data === "function") {
18332
+ if (isFunction5(data)) {
18327
18333
  callback = data;
18328
18334
  data = encoding = null;
18329
- } else if (typeof encoding === "function") {
18335
+ } else if (isFunction5(encoding)) {
18330
18336
  callback = encoding;
18331
18337
  encoding = null;
18332
18338
  }
@@ -18376,6 +18382,7 @@ var require_follow_redirects = __commonJS({
18376
18382
  self3.removeListener("abort", clearTimer);
18377
18383
  self3.removeListener("error", clearTimer);
18378
18384
  self3.removeListener("response", clearTimer);
18385
+ self3.removeListener("close", clearTimer);
18379
18386
  if (callback) {
18380
18387
  self3.removeListener("timeout", callback);
18381
18388
  }
@@ -18395,6 +18402,7 @@ var require_follow_redirects = __commonJS({
18395
18402
  this.on("abort", clearTimer);
18396
18403
  this.on("error", clearTimer);
18397
18404
  this.on("response", clearTimer);
18405
+ this.on("close", clearTimer);
18398
18406
  return this;
18399
18407
  };
18400
18408
  [
@@ -18438,8 +18446,7 @@ var require_follow_redirects = __commonJS({
18438
18446
  var protocol = this._options.protocol;
18439
18447
  var nativeProtocol = this._options.nativeProtocols[protocol];
18440
18448
  if (!nativeProtocol) {
18441
- this.emit("error", new TypeError("Unsupported protocol " + protocol));
18442
- return;
18449
+ throw new TypeError("Unsupported protocol " + protocol);
18443
18450
  }
18444
18451
  if (this._options.agents) {
18445
18452
  var scheme = protocol.slice(0, -1);
@@ -18453,7 +18460,7 @@ var require_follow_redirects = __commonJS({
18453
18460
  this._currentUrl = /^\//.test(this._options.path) ? url2.format(this._options) : (
18454
18461
  // When making a request to a proxy, […]
18455
18462
  // a client MUST send the target URI in absolute-form […].
18456
- this._currentUrl = this._options.path
18463
+ this._options.path
18457
18464
  );
18458
18465
  if (this._isRedirect) {
18459
18466
  var i = 0;
@@ -18492,11 +18499,10 @@ var require_follow_redirects = __commonJS({
18492
18499
  this._requestBodyBuffers = [];
18493
18500
  return;
18494
18501
  }
18495
- abortRequest(this._currentRequest);
18502
+ destroyRequest(this._currentRequest);
18496
18503
  response.destroy();
18497
18504
  if (++this._redirectCount > this._options.maxRedirects) {
18498
- this.emit("error", new TooManyRedirectsError());
18499
- return;
18505
+ throw new TooManyRedirectsError();
18500
18506
  }
18501
18507
  var requestHeaders;
18502
18508
  var beforeRedirect = this._options.beforeRedirect;
@@ -18517,24 +18523,17 @@ var require_follow_redirects = __commonJS({
18517
18523
  removeMatchingHeaders(/^content-/i, this._options.headers);
18518
18524
  }
18519
18525
  var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);
18520
- var currentUrlParts = url2.parse(this._currentUrl);
18526
+ var currentUrlParts = parseUrl(this._currentUrl);
18521
18527
  var currentHost = currentHostHeader || currentUrlParts.host;
18522
18528
  var currentUrl = /^\w+:/.test(location) ? this._currentUrl : url2.format(Object.assign(currentUrlParts, { host: currentHost }));
18523
- var redirectUrl;
18524
- try {
18525
- redirectUrl = url2.resolve(currentUrl, location);
18526
- } catch (cause) {
18527
- this.emit("error", new RedirectionError(cause));
18528
- return;
18529
- }
18530
- debug("redirecting to", redirectUrl);
18529
+ var redirectUrl = resolveUrl(location, currentUrl);
18530
+ debug("redirecting to", redirectUrl.href);
18531
18531
  this._isRedirect = true;
18532
- var redirectUrlParts = url2.parse(redirectUrl);
18533
- Object.assign(this._options, redirectUrlParts);
18534
- if (redirectUrlParts.protocol !== currentUrlParts.protocol && redirectUrlParts.protocol !== "https:" || redirectUrlParts.host !== currentHost && !isSubdomain(redirectUrlParts.host, currentHost)) {
18532
+ spreadUrlObject(redirectUrl, this._options);
18533
+ if (redirectUrl.protocol !== currentUrlParts.protocol && redirectUrl.protocol !== "https:" || redirectUrl.host !== currentHost && !isSubdomain(redirectUrl.host, currentHost)) {
18535
18534
  removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);
18536
18535
  }
18537
- if (typeof beforeRedirect === "function") {
18536
+ if (isFunction5(beforeRedirect)) {
18538
18537
  var responseDetails = {
18539
18538
  headers: response.headers,
18540
18539
  statusCode
@@ -18544,19 +18543,10 @@ var require_follow_redirects = __commonJS({
18544
18543
  method,
18545
18544
  headers: requestHeaders
18546
18545
  };
18547
- try {
18548
- beforeRedirect(this._options, responseDetails, requestDetails);
18549
- } catch (err) {
18550
- this.emit("error", err);
18551
- return;
18552
- }
18546
+ beforeRedirect(this._options, responseDetails, requestDetails);
18553
18547
  this._sanitizeOptions(this._options);
18554
18548
  }
18555
- try {
18556
- this._performRequest();
18557
- } catch (cause) {
18558
- this.emit("error", new RedirectionError(cause));
18559
- }
18549
+ this._performRequest();
18560
18550
  };
18561
18551
  function wrap(protocols) {
18562
18552
  var exports2 = {
@@ -18569,21 +18559,16 @@ var require_follow_redirects = __commonJS({
18569
18559
  var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];
18570
18560
  var wrappedProtocol = exports2[scheme] = Object.create(nativeProtocol);
18571
18561
  function request(input, options, callback) {
18572
- if (typeof input === "string") {
18573
- var urlStr = input;
18574
- try {
18575
- input = urlToOptions(new URL2(urlStr));
18576
- } catch (err) {
18577
- input = url2.parse(urlStr);
18578
- }
18579
- } else if (URL2 && input instanceof URL2) {
18580
- input = urlToOptions(input);
18562
+ if (isURL(input)) {
18563
+ input = spreadUrlObject(input);
18564
+ } else if (isString5(input)) {
18565
+ input = spreadUrlObject(parseUrl(input));
18581
18566
  } else {
18582
18567
  callback = options;
18583
- options = input;
18568
+ options = validateUrl(input);
18584
18569
  input = { protocol };
18585
18570
  }
18586
- if (typeof options === "function") {
18571
+ if (isFunction5(options)) {
18587
18572
  callback = options;
18588
18573
  options = null;
18589
18574
  }
@@ -18592,6 +18577,9 @@ var require_follow_redirects = __commonJS({
18592
18577
  maxBodyLength: exports2.maxBodyLength
18593
18578
  }, input, options);
18594
18579
  options.nativeProtocols = nativeProtocols;
18580
+ if (!isString5(options.host) && !isString5(options.hostname)) {
18581
+ options.hostname = "::1";
18582
+ }
18595
18583
  assert.equal(options.protocol, protocol, "protocol mismatch");
18596
18584
  debug("options", options);
18597
18585
  return new RedirectableRequest(options, callback);
@@ -18610,23 +18598,43 @@ var require_follow_redirects = __commonJS({
18610
18598
  }
18611
18599
  function noop2() {
18612
18600
  }
18613
- function urlToOptions(urlObject) {
18614
- var options = {
18615
- protocol: urlObject.protocol,
18616
- hostname: urlObject.hostname.startsWith("[") ? (
18617
- /* istanbul ignore next */
18618
- urlObject.hostname.slice(1, -1)
18619
- ) : urlObject.hostname,
18620
- hash: urlObject.hash,
18621
- search: urlObject.search,
18622
- pathname: urlObject.pathname,
18623
- path: urlObject.pathname + urlObject.search,
18624
- href: urlObject.href
18625
- };
18626
- if (urlObject.port !== "") {
18627
- options.port = Number(urlObject.port);
18601
+ function parseUrl(input) {
18602
+ var parsed;
18603
+ if (useNativeURL) {
18604
+ parsed = new URL2(input);
18605
+ } else {
18606
+ parsed = validateUrl(url2.parse(input));
18607
+ if (!isString5(parsed.protocol)) {
18608
+ throw new InvalidUrlError({ input });
18609
+ }
18628
18610
  }
18629
- return options;
18611
+ return parsed;
18612
+ }
18613
+ function resolveUrl(relative, base) {
18614
+ return useNativeURL ? new URL2(relative, base) : parseUrl(url2.resolve(base, relative));
18615
+ }
18616
+ function validateUrl(input) {
18617
+ if (/^\[/.test(input.hostname) && !/^\[[:0-9a-f]+\]$/i.test(input.hostname)) {
18618
+ throw new InvalidUrlError({ input: input.href || input });
18619
+ }
18620
+ if (/^\[/.test(input.host) && !/^\[[:0-9a-f]+\](:\d+)?$/i.test(input.host)) {
18621
+ throw new InvalidUrlError({ input: input.href || input });
18622
+ }
18623
+ return input;
18624
+ }
18625
+ function spreadUrlObject(urlObject, target) {
18626
+ var spread3 = target || {};
18627
+ for (var key of preservedUrlFields) {
18628
+ spread3[key] = urlObject[key];
18629
+ }
18630
+ if (spread3.hostname.startsWith("[")) {
18631
+ spread3.hostname = spread3.hostname.slice(1, -1);
18632
+ }
18633
+ if (spread3.port !== "") {
18634
+ spread3.port = Number(spread3.port);
18635
+ }
18636
+ spread3.path = spread3.search ? spread3.pathname + spread3.search : spread3.pathname;
18637
+ return spread3;
18630
18638
  }
18631
18639
  function removeMatchingHeaders(regex2, headers) {
18632
18640
  var lastValue;
@@ -18638,33 +18646,50 @@ var require_follow_redirects = __commonJS({
18638
18646
  }
18639
18647
  return lastValue === null || typeof lastValue === "undefined" ? void 0 : String(lastValue).trim();
18640
18648
  }
18641
- function createErrorType(code, defaultMessage) {
18642
- function CustomError(cause) {
18649
+ function createErrorType(code, message, baseClass) {
18650
+ function CustomError(properties) {
18643
18651
  Error.captureStackTrace(this, this.constructor);
18644
- if (!cause) {
18645
- this.message = defaultMessage;
18646
- } else {
18647
- this.message = defaultMessage + ": " + cause.message;
18648
- this.cause = cause;
18649
- }
18652
+ Object.assign(this, properties || {});
18653
+ this.code = code;
18654
+ this.message = this.cause ? message + ": " + this.cause.message : message;
18650
18655
  }
18651
- CustomError.prototype = new Error();
18652
- CustomError.prototype.constructor = CustomError;
18653
- CustomError.prototype.name = "Error [" + code + "]";
18654
- CustomError.prototype.code = code;
18656
+ CustomError.prototype = new (baseClass || Error)();
18657
+ Object.defineProperties(CustomError.prototype, {
18658
+ constructor: {
18659
+ value: CustomError,
18660
+ enumerable: false
18661
+ },
18662
+ name: {
18663
+ value: "Error [" + code + "]",
18664
+ enumerable: false
18665
+ }
18666
+ });
18655
18667
  return CustomError;
18656
18668
  }
18657
- function abortRequest(request) {
18669
+ function destroyRequest(request, error) {
18658
18670
  for (var event of events) {
18659
18671
  request.removeListener(event, eventHandlers[event]);
18660
18672
  }
18661
18673
  request.on("error", noop2);
18662
- request.abort();
18674
+ request.destroy(error);
18663
18675
  }
18664
18676
  function isSubdomain(subdomain, domain) {
18665
- const dot = subdomain.length - domain.length - 1;
18677
+ assert(isString5(subdomain) && isString5(domain));
18678
+ var dot = subdomain.length - domain.length - 1;
18666
18679
  return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
18667
18680
  }
18681
+ function isString5(value) {
18682
+ return typeof value === "string" || value instanceof String;
18683
+ }
18684
+ function isFunction5(value) {
18685
+ return typeof value === "function";
18686
+ }
18687
+ function isBuffer2(value) {
18688
+ return typeof value === "object" && "length" in value;
18689
+ }
18690
+ function isURL(value) {
18691
+ return URL2 && value instanceof URL2;
18692
+ }
18668
18693
  module2.exports = wrap({ http: http2, https: https2 });
18669
18694
  module2.exports.wrap = wrap;
18670
18695
  }
@@ -25664,15 +25689,15 @@ var require_runtime = __commonJS({
25664
25689
  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] + ").");
25665
25690
  }
25666
25691
  }
25667
- function template(templateSpec, env2) {
25668
- if (!env2) {
25692
+ function template(templateSpec, env) {
25693
+ if (!env) {
25669
25694
  throw new _exception2["default"]("No environment passed to template");
25670
25695
  }
25671
25696
  if (!templateSpec || !templateSpec.main) {
25672
25697
  throw new _exception2["default"]("Unknown template object: " + typeof templateSpec);
25673
25698
  }
25674
25699
  templateSpec.main.decorator = templateSpec.main_d;
25675
- env2.VM.checkRevision(templateSpec.compiler);
25700
+ env.VM.checkRevision(templateSpec.compiler);
25676
25701
  var templateWasPrecompiledWithCompilerV7 = templateSpec.compiler && templateSpec.compiler[0] === 7;
25677
25702
  function invokePartialWrapper(partial, context, options) {
25678
25703
  if (options.hash) {
@@ -25681,14 +25706,14 @@ var require_runtime = __commonJS({
25681
25706
  options.ids[0] = true;
25682
25707
  }
25683
25708
  }
25684
- partial = env2.VM.resolvePartial.call(this, partial, context, options);
25709
+ partial = env.VM.resolvePartial.call(this, partial, context, options);
25685
25710
  var extendedOptions = Utils.extend({}, options, {
25686
25711
  hooks: this.hooks,
25687
25712
  protoAccessControl: this.protoAccessControl
25688
25713
  });
25689
- var result = env2.VM.invokePartial.call(this, partial, context, extendedOptions);
25690
- if (result == null && env2.compile) {
25691
- options.partials[options.name] = env2.compile(partial, templateSpec.compilerOptions, env2);
25714
+ var result = env.VM.invokePartial.call(this, partial, context, extendedOptions);
25715
+ if (result == null && env.compile) {
25716
+ options.partials[options.name] = env.compile(partial, templateSpec.compilerOptions, env);
25692
25717
  result = options.partials[options.name](context, extendedOptions);
25693
25718
  }
25694
25719
  if (result != null) {
@@ -25773,7 +25798,7 @@ var require_runtime = __commonJS({
25773
25798
  },
25774
25799
  // An empty object to use as replacement for null-contexts
25775
25800
  nullContext: Object.seal({}),
25776
- noop: env2.VM.noop,
25801
+ noop: env.VM.noop,
25777
25802
  compilerInfo: templateSpec.compiler
25778
25803
  };
25779
25804
  function ret(context) {
@@ -25800,14 +25825,14 @@ var require_runtime = __commonJS({
25800
25825
  ret.isTop = true;
25801
25826
  ret._setup = function(options) {
25802
25827
  if (!options.partial) {
25803
- var mergedHelpers = Utils.extend({}, env2.helpers, options.helpers);
25828
+ var mergedHelpers = Utils.extend({}, env.helpers, options.helpers);
25804
25829
  wrapHelpersToPassLookupProperty(mergedHelpers, container);
25805
25830
  container.helpers = mergedHelpers;
25806
25831
  if (templateSpec.usePartial) {
25807
- container.partials = container.mergeIfNeeded(options.partials, env2.partials);
25832
+ container.partials = container.mergeIfNeeded(options.partials, env.partials);
25808
25833
  }
25809
25834
  if (templateSpec.usePartial || templateSpec.useDecorators) {
25810
- container.decorators = Utils.extend({}, env2.decorators, options.decorators);
25835
+ container.decorators = Utils.extend({}, env.decorators, options.decorators);
25811
25836
  }
25812
25837
  container.hooks = {};
25813
25838
  container.protoAccessControl = _internalProtoAccess.createProtoAccessControl(options);
@@ -27609,7 +27634,7 @@ var require_compiler = __commonJS({
27609
27634
  }
27610
27635
  }
27611
27636
  };
27612
- function precompile(input, options, env2) {
27637
+ function precompile(input, options, env) {
27613
27638
  if (input == null || typeof input !== "string" && input.type !== "Program") {
27614
27639
  throw new _exception2["default"]("You must pass a string or Handlebars AST to Handlebars.precompile. You passed " + input);
27615
27640
  }
@@ -27620,10 +27645,10 @@ var require_compiler = __commonJS({
27620
27645
  if (options.compat) {
27621
27646
  options.useDepths = true;
27622
27647
  }
27623
- var ast = env2.parse(input, options), environment = new env2.Compiler().compile(ast, options);
27624
- return new env2.JavaScriptCompiler().compile(environment, options);
27648
+ var ast = env.parse(input, options), environment = new env.Compiler().compile(ast, options);
27649
+ return new env.JavaScriptCompiler().compile(environment, options);
27625
27650
  }
27626
- function compile3(input, options, env2) {
27651
+ function compile3(input, options, env) {
27627
27652
  if (options === void 0)
27628
27653
  options = {};
27629
27654
  if (input == null || typeof input !== "string" && input.type !== "Program") {
@@ -27638,8 +27663,8 @@ var require_compiler = __commonJS({
27638
27663
  }
27639
27664
  var compiled = void 0;
27640
27665
  function compileInput() {
27641
- var ast = env2.parse(input, options), environment = new env2.Compiler().compile(ast, options), templateSpec = new env2.JavaScriptCompiler().compile(environment, options, void 0, true);
27642
- return env2.template(templateSpec);
27666
+ var ast = env.parse(input, options), environment = new env.Compiler().compile(ast, options), templateSpec = new env.JavaScriptCompiler().compile(environment, options, void 0, true);
27667
+ return env.template(templateSpec);
27643
27668
  }
27644
27669
  function ret(context, execOptions) {
27645
27670
  if (!compiled) {
@@ -32565,13 +32590,13 @@ var require_chalk = __commonJS({
32565
32590
  c = l.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(l.FORCE_COLOR, 10), 3);
32566
32591
  }
32567
32592
  }
32568
- function translateLevel2(e3) {
32593
+ function translateLevel(e3) {
32569
32594
  if (e3 === 0) {
32570
32595
  return false;
32571
32596
  }
32572
32597
  return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
32573
32598
  }
32574
- function supportsColor2(e3, t3) {
32599
+ function supportsColor(e3, t3) {
32575
32600
  if (c === 0) {
32576
32601
  return 0;
32577
32602
  }
@@ -32628,10 +32653,10 @@ var require_chalk = __commonJS({
32628
32653
  return n3;
32629
32654
  }
32630
32655
  function getSupportLevel(e3) {
32631
- const t3 = supportsColor2(e3, e3 && e3.isTTY);
32632
- return translateLevel2(t3);
32656
+ const t3 = supportsColor(e3, e3 && e3.isTTY);
32657
+ return translateLevel(t3);
32633
32658
  }
32634
- e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, s.isatty(1))), stderr: translateLevel2(supportsColor2(true, s.isatty(2))) };
32659
+ e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel(supportsColor(true, s.isatty(1))), stderr: translateLevel(supportsColor(true, s.isatty(2))) };
32635
32660
  }, 37: (e2) => {
32636
32661
  "use strict";
32637
32662
  e2.exports = require("os");
@@ -37557,7 +37582,7 @@ var require_innerFrom = __commonJS({
37557
37582
  exports.fromIterable = fromIterable;
37558
37583
  function fromAsyncIterable(asyncIterable) {
37559
37584
  return new Observable_1.Observable(function(subscriber) {
37560
- process3(asyncIterable, subscriber).catch(function(err) {
37585
+ process2(asyncIterable, subscriber).catch(function(err) {
37561
37586
  return subscriber.error(err);
37562
37587
  });
37563
37588
  });
@@ -37567,7 +37592,7 @@ var require_innerFrom = __commonJS({
37567
37592
  return fromAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(readableStream));
37568
37593
  }
37569
37594
  exports.fromReadableStreamLike = fromReadableStreamLike;
37570
- function process3(asyncIterable, subscriber) {
37595
+ function process2(asyncIterable, subscriber) {
37571
37596
  var asyncIterable_1, asyncIterable_1_1;
37572
37597
  var e_2, _a2;
37573
37598
  return __awaiter6(this, void 0, void 0, function() {
@@ -44848,11 +44873,11 @@ var require_signals = __commonJS({
44848
44873
  var require_signal_exit = __commonJS({
44849
44874
  "../../../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports, module2) {
44850
44875
  "use strict";
44851
- var process3 = global.process;
44852
- var processOk = function(process4) {
44853
- 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";
44876
+ var process2 = global.process;
44877
+ var processOk = function(process3) {
44878
+ 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";
44854
44879
  };
44855
- if (!processOk(process3)) {
44880
+ if (!processOk(process2)) {
44856
44881
  module2.exports = function() {
44857
44882
  return function() {
44858
44883
  };
@@ -44860,15 +44885,15 @@ var require_signal_exit = __commonJS({
44860
44885
  } else {
44861
44886
  assert = require("assert");
44862
44887
  signals = require_signals();
44863
- isWin = /^win/i.test(process3.platform);
44888
+ isWin = /^win/i.test(process2.platform);
44864
44889
  EE = require("events");
44865
44890
  if (typeof EE !== "function") {
44866
44891
  EE = EE.EventEmitter;
44867
44892
  }
44868
- if (process3.__signal_exit_emitter__) {
44869
- emitter = process3.__signal_exit_emitter__;
44893
+ if (process2.__signal_exit_emitter__) {
44894
+ emitter = process2.__signal_exit_emitter__;
44870
44895
  } else {
44871
- emitter = process3.__signal_exit_emitter__ = new EE();
44896
+ emitter = process2.__signal_exit_emitter__ = new EE();
44872
44897
  emitter.count = 0;
44873
44898
  emitter.emitted = {};
44874
44899
  }
@@ -44905,12 +44930,12 @@ var require_signal_exit = __commonJS({
44905
44930
  loaded = false;
44906
44931
  signals.forEach(function(sig) {
44907
44932
  try {
44908
- process3.removeListener(sig, sigListeners[sig]);
44933
+ process2.removeListener(sig, sigListeners[sig]);
44909
44934
  } catch (er) {
44910
44935
  }
44911
44936
  });
44912
- process3.emit = originalProcessEmit;
44913
- process3.reallyExit = originalProcessReallyExit;
44937
+ process2.emit = originalProcessEmit;
44938
+ process2.reallyExit = originalProcessReallyExit;
44914
44939
  emitter.count -= 1;
44915
44940
  };
44916
44941
  module2.exports.unload = unload;
@@ -44927,7 +44952,7 @@ var require_signal_exit = __commonJS({
44927
44952
  if (!processOk(global.process)) {
44928
44953
  return;
44929
44954
  }
44930
- var listeners = process3.listeners(sig);
44955
+ var listeners = process2.listeners(sig);
44931
44956
  if (listeners.length === emitter.count) {
44932
44957
  unload();
44933
44958
  emit("exit", null, sig);
@@ -44935,7 +44960,7 @@ var require_signal_exit = __commonJS({
44935
44960
  if (isWin && sig === "SIGHUP") {
44936
44961
  sig = "SIGINT";
44937
44962
  }
44938
- process3.kill(process3.pid, sig);
44963
+ process2.kill(process2.pid, sig);
44939
44964
  }
44940
44965
  };
44941
44966
  });
@@ -44951,36 +44976,36 @@ var require_signal_exit = __commonJS({
44951
44976
  emitter.count += 1;
44952
44977
  signals = signals.filter(function(sig) {
44953
44978
  try {
44954
- process3.on(sig, sigListeners[sig]);
44979
+ process2.on(sig, sigListeners[sig]);
44955
44980
  return true;
44956
44981
  } catch (er) {
44957
44982
  return false;
44958
44983
  }
44959
44984
  });
44960
- process3.emit = processEmit;
44961
- process3.reallyExit = processReallyExit;
44985
+ process2.emit = processEmit;
44986
+ process2.reallyExit = processReallyExit;
44962
44987
  };
44963
44988
  module2.exports.load = load;
44964
- originalProcessReallyExit = process3.reallyExit;
44989
+ originalProcessReallyExit = process2.reallyExit;
44965
44990
  processReallyExit = function processReallyExit2(code) {
44966
44991
  if (!processOk(global.process)) {
44967
44992
  return;
44968
44993
  }
44969
- process3.exitCode = code || /* istanbul ignore next */
44994
+ process2.exitCode = code || /* istanbul ignore next */
44970
44995
  0;
44971
- emit("exit", process3.exitCode, null);
44972
- emit("afterexit", process3.exitCode, null);
44973
- originalProcessReallyExit.call(process3, process3.exitCode);
44996
+ emit("exit", process2.exitCode, null);
44997
+ emit("afterexit", process2.exitCode, null);
44998
+ originalProcessReallyExit.call(process2, process2.exitCode);
44974
44999
  };
44975
- originalProcessEmit = process3.emit;
45000
+ originalProcessEmit = process2.emit;
44976
45001
  processEmit = function processEmit2(ev, arg) {
44977
45002
  if (ev === "exit" && processOk(global.process)) {
44978
45003
  if (arg !== void 0) {
44979
- process3.exitCode = arg;
45004
+ process2.exitCode = arg;
44980
45005
  }
44981
45006
  var ret = originalProcessEmit.apply(this, arguments);
44982
- emit("exit", process3.exitCode, null);
44983
- emit("afterexit", process3.exitCode, null);
45007
+ emit("exit", process2.exitCode, null);
45008
+ emit("afterexit", process2.exitCode, null);
44984
45009
  return ret;
44985
45010
  } else {
44986
45011
  return originalProcessEmit.apply(this, arguments);
@@ -68831,12 +68856,12 @@ function _define_property(obj, key, value) {
68831
68856
  return obj;
68832
68857
  }
68833
68858
 
68834
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
68859
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
68835
68860
  var import_utils46 = require("@modern-js/utils");
68836
68861
  var import_lodash6 = require("@modern-js/utils/lodash");
68837
68862
  var import_comment_json = __toESM(require_src2());
68838
68863
 
68839
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.3/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/env.js
68864
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.5/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/env.js
68840
68865
  var import_utils = require("@modern-js/utils");
68841
68866
  async function canUseNvm() {
68842
68867
  try {
@@ -68886,7 +68911,7 @@ async function canUsePnpm() {
68886
68911
  }
68887
68912
  }
68888
68913
 
68889
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.3/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/install.js
68914
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.5/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/install.js
68890
68915
  var import_utils2 = require("@modern-js/utils");
68891
68916
  function execaWithStreamLog(command, args, options) {
68892
68917
  const promise = (0, import_utils2.execa)(command, args, {
@@ -68982,7 +69007,7 @@ async function pnpmInstall({ cwd, registryUrl, ignoreScripts, useNvm }) {
68982
69007
  throw new Error("please install pnpm first");
68983
69008
  }
68984
69009
 
68985
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.3/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
69010
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.5/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
68986
69011
  var NpmAPI = class {
68987
69012
  npmInstall({ cwd, registryUrl, ignoreScripts }) {
68988
69013
  return npmInstall({
@@ -69011,7 +69036,7 @@ var NpmAPI = class {
69011
69036
  }
69012
69037
  };
69013
69038
 
69014
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.3_@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith-api-git/dist/esm-node/utils/index.js
69039
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-git/dist/esm-node/utils/index.js
69015
69040
  var import_utils4 = require("@modern-js/utils");
69016
69041
  async function canUseGit() {
69017
69042
  try {
@@ -69086,7 +69111,7 @@ async function gitCommit(cwd, commitMessage) {
69086
69111
  });
69087
69112
  }
69088
69113
 
69089
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.3_@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith-api-git/dist/esm-node/index.js
69114
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-git/dist/esm-node/index.js
69090
69115
  var GitAPI = class {
69091
69116
  async isInGitRepo(cwd = this.generatorCore.outputPath) {
69092
69117
  const canUse = await canUseGit();
@@ -69138,7 +69163,7 @@ var GitAPI = class {
69138
69163
  }
69139
69164
  };
69140
69165
 
69141
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/logger/constants.js
69166
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/logger/constants.js
69142
69167
  var LoggerLevel;
69143
69168
  (function(LoggerLevel2) {
69144
69169
  LoggerLevel2["Error"] = "error";
@@ -69159,7 +69184,7 @@ var LevelPriority = [
69159
69184
  LoggerLevel.Stream
69160
69185
  ];
69161
69186
 
69162
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/logger/index.js
69187
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/logger/index.js
69163
69188
  var import_utils6 = require("@modern-js/utils");
69164
69189
  var Logger = class {
69165
69190
  get currentLevelIndex() {
@@ -69220,23 +69245,23 @@ var Logger = class {
69220
69245
  }
69221
69246
  };
69222
69247
 
69223
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js
69248
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js
69224
69249
  var import_path7 = __toESM(require("path"));
69225
69250
 
69226
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js
69251
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js
69227
69252
  var import_path4 = __toESM(require("path"));
69228
69253
  var import_events = require("events");
69229
69254
  var import_utils11 = require("@modern-js/utils");
69230
69255
 
69231
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsMaterial.js
69256
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsMaterial.js
69232
69257
  var import_path2 = __toESM(require("path"));
69233
69258
  var import_utils8 = require("@modern-js/utils");
69234
69259
 
69235
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
69260
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
69236
69261
  var import_path = __toESM(require("path"));
69237
69262
  var import_utils7 = require("@modern-js/utils");
69238
69263
 
69239
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/materials/constants.js
69264
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/materials/constants.js
69240
69265
  var IMAGE_EXT_LIST = [
69241
69266
  ".jpg",
69242
69267
  ".jpeg",
@@ -69250,7 +69275,7 @@ var IMAGE_EXT_LIST = [
69250
69275
  ".wmf"
69251
69276
  ];
69252
69277
 
69253
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
69278
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
69254
69279
  var FS_RESOURCE = "_codesmith_core_fs_resource";
69255
69280
  var FsResource = class {
69256
69281
  async value() {
@@ -69276,7 +69301,7 @@ var FsResource = class {
69276
69301
  }
69277
69302
  };
69278
69303
 
69279
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsMaterial.js
69304
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsMaterial.js
69280
69305
  var promisifyGlob = function(pattern, options) {
69281
69306
  return new Promise((resolve, reject) => {
69282
69307
  (0, import_utils8.glob)(pattern, options, (err, files) => err === null ? resolve(files) : reject(err));
@@ -69304,7 +69329,7 @@ var FsMaterial = class {
69304
69329
  }
69305
69330
  };
69306
69331
 
69307
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/utils/nodeRequire.js
69332
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/nodeRequire.js
69308
69333
  var nodeRequire = (path18) => {
69309
69334
  try {
69310
69335
  const module2 = __non_webpack_require__(path18);
@@ -69321,11 +69346,11 @@ var nodeRequire = (path18) => {
69321
69346
  }
69322
69347
  };
69323
69348
 
69324
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/utils/getGeneratorDir.js
69349
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/getGeneratorDir.js
69325
69350
  var import_path3 = __toESM(require("path"));
69326
69351
  var import_utils10 = require("@modern-js/utils");
69327
69352
 
69328
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
69353
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
69329
69354
  var import_utils9 = require("@modern-js/utils");
69330
69355
  async function fsExists(path18) {
69331
69356
  try {
@@ -69336,7 +69361,7 @@ async function fsExists(path18) {
69336
69361
  }
69337
69362
  }
69338
69363
 
69339
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/utils/getGeneratorDir.js
69364
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/getGeneratorDir.js
69340
69365
  var MaxTimes = 5;
69341
69366
  async function getGeneratorDir(generator) {
69342
69367
  let result = generator;
@@ -69355,7 +69380,7 @@ async function getGeneratorDir(generator) {
69355
69380
  return result;
69356
69381
  }
69357
69382
 
69358
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js
69383
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js
69359
69384
  var GeneratorCore = class {
69360
69385
  get lifeCycleMethod() {
69361
69386
  return {
@@ -69560,10 +69585,10 @@ check path: ${import_utils11.chalk.blue.underline(generator)} exist a package.js
69560
69585
  }
69561
69586
  };
69562
69587
 
69563
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js
69588
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js
69564
69589
  var import_path6 = __toESM(require("path"));
69565
69590
 
69566
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/utils/packageManager.js
69591
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/packageManager.js
69567
69592
  var import_path5 = __toESM(require("path"));
69568
69593
  var import_utils12 = require("@modern-js/utils");
69569
69594
  async function canUseYarn2() {
@@ -69611,7 +69636,6 @@ async function runInstall(targetDir, registryUrl) {
69611
69636
  "install",
69612
69637
  "--prod",
69613
69638
  "--reporter=silent",
69614
- "--prefer-offline",
69615
69639
  "--ignore-scripts"
69616
69640
  ];
69617
69641
  if (registryUrl) {
@@ -69634,7 +69658,6 @@ async function runInstall(targetDir, registryUrl) {
69634
69658
  "install",
69635
69659
  "--production",
69636
69660
  "--loglevel=error",
69637
- "--prefer-offline",
69638
69661
  "--ignore-scripts"
69639
69662
  ];
69640
69663
  if (registryUrl) {
@@ -69644,7 +69667,7 @@ async function runInstall(targetDir, registryUrl) {
69644
69667
  }
69645
69668
  }
69646
69669
 
69647
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/utils/timeoutPromise.js
69670
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/timeoutPromise.js
69648
69671
  async function timeoutPromise(promise, ms, reason = "Operation") {
69649
69672
  let timeoutId = null;
69650
69673
  const delayPromise = (ms2) => new Promise((resolve) => {
@@ -69666,18 +69689,18 @@ async function timeoutPromise(promise, ms, reason = "Operation") {
69666
69689
  }
69667
69690
  }
69668
69691
 
69669
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
69692
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
69670
69693
  var import_os = __toESM(require("os"));
69671
69694
  var import_utils38 = require("@modern-js/utils");
69672
69695
 
69673
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/bind.js
69696
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/bind.js
69674
69697
  function bind(fn, thisArg) {
69675
69698
  return function wrap() {
69676
69699
  return fn.apply(thisArg, arguments);
69677
69700
  };
69678
69701
  }
69679
69702
 
69680
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/utils.js
69703
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/utils.js
69681
69704
  var { toString } = Object.prototype;
69682
69705
  var { getPrototypeOf } = Object;
69683
69706
  var kindOf = ((cache) => (thing) => {
@@ -70036,7 +70059,7 @@ var utils_default = {
70036
70059
  isThenable
70037
70060
  };
70038
70061
 
70039
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/core/AxiosError.js
70062
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/AxiosError.js
70040
70063
  function AxiosError(message, code, config, request, response) {
70041
70064
  Error.call(this);
70042
70065
  if (Error.captureStackTrace) {
@@ -70108,11 +70131,11 @@ AxiosError.from = (error, code, config, request, response, customProps) => {
70108
70131
  };
70109
70132
  var AxiosError_default = AxiosError;
70110
70133
 
70111
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/platform/node/classes/FormData.js
70134
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/platform/node/classes/FormData.js
70112
70135
  var import_form_data = __toESM(require_form_data());
70113
70136
  var FormData_default = import_form_data.default;
70114
70137
 
70115
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/toFormData.js
70138
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/toFormData.js
70116
70139
  function isVisitable(thing) {
70117
70140
  return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
70118
70141
  }
@@ -70227,7 +70250,7 @@ function toFormData(obj, formData, options) {
70227
70250
  }
70228
70251
  var toFormData_default = toFormData;
70229
70252
 
70230
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
70253
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
70231
70254
  function encode(str) {
70232
70255
  const charMap = {
70233
70256
  "!": "%21",
@@ -70260,7 +70283,7 @@ prototype2.toString = function toString2(encoder) {
70260
70283
  };
70261
70284
  var AxiosURLSearchParams_default = AxiosURLSearchParams;
70262
70285
 
70263
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/buildURL.js
70286
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/buildURL.js
70264
70287
  function encode2(val) {
70265
70288
  return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
70266
70289
  }
@@ -70286,7 +70309,7 @@ function buildURL(url2, params, options) {
70286
70309
  return url2;
70287
70310
  }
70288
70311
 
70289
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/core/InterceptorManager.js
70312
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/InterceptorManager.js
70290
70313
  var InterceptorManager = class {
70291
70314
  constructor() {
70292
70315
  this.handlers = [];
@@ -70350,18 +70373,18 @@ var InterceptorManager = class {
70350
70373
  };
70351
70374
  var InterceptorManager_default = InterceptorManager;
70352
70375
 
70353
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/defaults/transitional.js
70376
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/defaults/transitional.js
70354
70377
  var transitional_default = {
70355
70378
  silentJSONParsing: true,
70356
70379
  forcedJSONParsing: true,
70357
70380
  clarifyTimeoutError: false
70358
70381
  };
70359
70382
 
70360
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
70383
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
70361
70384
  var import_url = __toESM(require("url"));
70362
70385
  var URLSearchParams_default = import_url.default.URLSearchParams;
70363
70386
 
70364
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/platform/node/index.js
70387
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/platform/node/index.js
70365
70388
  var node_default = {
70366
70389
  isNode: true,
70367
70390
  classes: {
@@ -70372,11 +70395,33 @@ var node_default = {
70372
70395
  protocols: ["http", "https", "file", "data"]
70373
70396
  };
70374
70397
 
70375
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/toURLEncodedForm.js
70398
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/platform/common/utils.js
70399
+ var utils_exports = {};
70400
+ __export(utils_exports, {
70401
+ hasBrowserEnv: () => hasBrowserEnv,
70402
+ hasStandardBrowserEnv: () => hasStandardBrowserEnv,
70403
+ hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv
70404
+ });
70405
+ var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
70406
+ var hasStandardBrowserEnv = ((product) => {
70407
+ return hasBrowserEnv && ["ReactNative", "NativeScript", "NS"].indexOf(product) < 0;
70408
+ })(typeof navigator !== "undefined" && navigator.product);
70409
+ var hasStandardBrowserWebWorkerEnv = (() => {
70410
+ return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
70411
+ self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
70412
+ })();
70413
+
70414
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/platform/index.js
70415
+ var platform_default = {
70416
+ ...utils_exports,
70417
+ ...node_default
70418
+ };
70419
+
70420
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/toURLEncodedForm.js
70376
70421
  function toURLEncodedForm(data, options) {
70377
- return toFormData_default(data, new node_default.classes.URLSearchParams(), Object.assign({
70422
+ return toFormData_default(data, new platform_default.classes.URLSearchParams(), Object.assign({
70378
70423
  visitor: function(value, key, path18, helpers) {
70379
- if (node_default.isNode && utils_default.isBuffer(value)) {
70424
+ if (platform_default.isNode && utils_default.isBuffer(value)) {
70380
70425
  this.append(key, value.toString("base64"));
70381
70426
  return false;
70382
70427
  }
@@ -70385,7 +70430,7 @@ function toURLEncodedForm(data, options) {
70385
70430
  }, options));
70386
70431
  }
70387
70432
 
70388
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/formDataToJSON.js
70433
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/formDataToJSON.js
70389
70434
  function parsePropPath(name) {
70390
70435
  return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
70391
70436
  return match[0] === "[]" ? "" : match[1] || match[0];
@@ -70406,6 +70451,8 @@ function arrayToObject(arr) {
70406
70451
  function formDataToJSON(formData) {
70407
70452
  function buildPath(path18, value, target, index) {
70408
70453
  let name = path18[index++];
70454
+ if (name === "__proto__")
70455
+ return true;
70409
70456
  const isNumericKey = Number.isFinite(+name);
70410
70457
  const isLast = index >= path18.length;
70411
70458
  name = !name && utils_default.isArray(target) ? target.length : name;
@@ -70437,7 +70484,7 @@ function formDataToJSON(formData) {
70437
70484
  }
70438
70485
  var formDataToJSON_default = formDataToJSON;
70439
70486
 
70440
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/defaults/index.js
70487
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/defaults/index.js
70441
70488
  function stringifySafely(rawValue, parser, encoder) {
70442
70489
  if (utils_default.isString(rawValue)) {
70443
70490
  try {
@@ -70463,9 +70510,6 @@ var defaults = {
70463
70510
  }
70464
70511
  const isFormData2 = utils_default.isFormData(data);
70465
70512
  if (isFormData2) {
70466
- if (!hasJSONContentType) {
70467
- return data;
70468
- }
70469
70513
  return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
70470
70514
  }
70471
70515
  if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data)) {
@@ -70528,8 +70572,8 @@ var defaults = {
70528
70572
  maxContentLength: -1,
70529
70573
  maxBodyLength: -1,
70530
70574
  env: {
70531
- FormData: node_default.classes.FormData,
70532
- Blob: node_default.classes.Blob
70575
+ FormData: platform_default.classes.FormData,
70576
+ Blob: platform_default.classes.Blob
70533
70577
  },
70534
70578
  validateStatus: function validateStatus(status) {
70535
70579
  return status >= 200 && status < 300;
@@ -70546,7 +70590,7 @@ utils_default.forEach(["delete", "get", "head", "post", "put", "patch"], (method
70546
70590
  });
70547
70591
  var defaults_default = defaults;
70548
70592
 
70549
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/parseHeaders.js
70593
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/parseHeaders.js
70550
70594
  var ignoreDuplicateOf = utils_default.toObjectSet([
70551
70595
  "age",
70552
70596
  "authorization",
@@ -70591,7 +70635,7 @@ var parseHeaders_default = (rawHeaders) => {
70591
70635
  return parsed;
70592
70636
  };
70593
70637
 
70594
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/core/AxiosHeaders.js
70638
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/AxiosHeaders.js
70595
70639
  var $internals = Symbol("internals");
70596
70640
  function normalizeHeader(header) {
70597
70641
  return header && String(header).trim().toLowerCase();
@@ -70809,7 +70853,7 @@ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
70809
70853
  utils_default.freezeMethods(AxiosHeaders);
70810
70854
  var AxiosHeaders_default = AxiosHeaders;
70811
70855
 
70812
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/core/transformData.js
70856
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/transformData.js
70813
70857
  function transformData(fns, response) {
70814
70858
  const config = this || defaults_default;
70815
70859
  const context = response || config;
@@ -70822,12 +70866,12 @@ function transformData(fns, response) {
70822
70866
  return data;
70823
70867
  }
70824
70868
 
70825
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/cancel/isCancel.js
70869
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/cancel/isCancel.js
70826
70870
  function isCancel(value) {
70827
70871
  return !!(value && value.__CANCEL__);
70828
70872
  }
70829
70873
 
70830
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/cancel/CanceledError.js
70874
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/cancel/CanceledError.js
70831
70875
  function CanceledError(message, config, request) {
70832
70876
  AxiosError_default.call(this, message == null ? "canceled" : message, AxiosError_default.ERR_CANCELED, config, request);
70833
70877
  this.name = "CanceledError";
@@ -70837,7 +70881,7 @@ utils_default.inherits(CanceledError, AxiosError_default, {
70837
70881
  });
70838
70882
  var CanceledError_default = CanceledError;
70839
70883
 
70840
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/core/settle.js
70884
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/settle.js
70841
70885
  function settle(resolve, reject, response) {
70842
70886
  const validateStatus2 = response.config.validateStatus;
70843
70887
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
@@ -70853,17 +70897,17 @@ function settle(resolve, reject, response) {
70853
70897
  }
70854
70898
  }
70855
70899
 
70856
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/isAbsoluteURL.js
70900
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/isAbsoluteURL.js
70857
70901
  function isAbsoluteURL(url2) {
70858
70902
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
70859
70903
  }
70860
70904
 
70861
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/combineURLs.js
70905
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/combineURLs.js
70862
70906
  function combineURLs(baseURL, relativeURL) {
70863
- return relativeURL ? baseURL.replace(/\/+$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
70907
+ return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
70864
70908
  }
70865
70909
 
70866
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/core/buildFullPath.js
70910
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/buildFullPath.js
70867
70911
  function buildFullPath(baseURL, requestedURL) {
70868
70912
  if (baseURL && !isAbsoluteURL(requestedURL)) {
70869
70913
  return combineURLs(baseURL, requestedURL);
@@ -70871,7 +70915,7 @@ function buildFullPath(baseURL, requestedURL) {
70871
70915
  return requestedURL;
70872
70916
  }
70873
70917
 
70874
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/adapters/http.js
70918
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/adapters/http.js
70875
70919
  var import_proxy_from_env = __toESM(require_proxy_from_env());
70876
70920
  var import_http = __toESM(require("http"));
70877
70921
  var import_https = __toESM(require("https"));
@@ -70879,19 +70923,19 @@ var import_util2 = __toESM(require("util"));
70879
70923
  var import_follow_redirects = __toESM(require_follow_redirects());
70880
70924
  var import_zlib = __toESM(require("zlib"));
70881
70925
 
70882
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/env/data.js
70883
- var VERSION = "1.6.0";
70926
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/env/data.js
70927
+ var VERSION = "1.6.7";
70884
70928
 
70885
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/parseProtocol.js
70929
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/parseProtocol.js
70886
70930
  function parseProtocol(url2) {
70887
70931
  const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
70888
70932
  return match && match[1] || "";
70889
70933
  }
70890
70934
 
70891
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/fromDataURI.js
70935
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/fromDataURI.js
70892
70936
  var DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;
70893
70937
  function fromDataURI(uri, asBlob, options) {
70894
- const _Blob = options && options.Blob || node_default.classes.Blob;
70938
+ const _Blob = options && options.Blob || platform_default.classes.Blob;
70895
70939
  const protocol = parseProtocol(uri);
70896
70940
  if (asBlob === void 0 && _Blob) {
70897
70941
  asBlob = true;
@@ -70917,13 +70961,13 @@ function fromDataURI(uri, asBlob, options) {
70917
70961
  throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
70918
70962
  }
70919
70963
 
70920
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/adapters/http.js
70964
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/adapters/http.js
70921
70965
  var import_stream4 = __toESM(require("stream"));
70922
70966
 
70923
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/AxiosTransformStream.js
70967
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/AxiosTransformStream.js
70924
70968
  var import_stream = __toESM(require("stream"));
70925
70969
 
70926
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/throttle.js
70970
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/throttle.js
70927
70971
  function throttle(fn, freq) {
70928
70972
  let timestamp = 0;
70929
70973
  const threshold = 1e3 / freq;
@@ -70949,7 +70993,7 @@ function throttle(fn, freq) {
70949
70993
  }
70950
70994
  var throttle_default = throttle;
70951
70995
 
70952
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/speedometer.js
70996
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/speedometer.js
70953
70997
  function speedometer(samplesCount, min) {
70954
70998
  samplesCount = samplesCount || 10;
70955
70999
  const bytes = new Array(samplesCount);
@@ -70985,7 +71029,7 @@ function speedometer(samplesCount, min) {
70985
71029
  }
70986
71030
  var speedometer_default = speedometer;
70987
71031
 
70988
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/AxiosTransformStream.js
71032
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/AxiosTransformStream.js
70989
71033
  var kInternals = Symbol("internals");
70990
71034
  var AxiosTransformStream = class extends import_stream.default.Transform {
70991
71035
  constructor(options) {
@@ -71135,14 +71179,14 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
71135
71179
  };
71136
71180
  var AxiosTransformStream_default = AxiosTransformStream;
71137
71181
 
71138
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/adapters/http.js
71182
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/adapters/http.js
71139
71183
  var import_events2 = __toESM(require("events"));
71140
71184
 
71141
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/formDataToStream.js
71185
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/formDataToStream.js
71142
71186
  var import_util = require("util");
71143
71187
  var import_stream2 = require("stream");
71144
71188
 
71145
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/readBlob.js
71189
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/readBlob.js
71146
71190
  var { asyncIterator } = Symbol;
71147
71191
  var readBlob = async function* (blob) {
71148
71192
  if (blob.stream) {
@@ -71157,7 +71201,7 @@ var readBlob = async function* (blob) {
71157
71201
  };
71158
71202
  var readBlob_default = readBlob;
71159
71203
 
71160
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/formDataToStream.js
71204
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/formDataToStream.js
71161
71205
  var BOUNDARY_ALPHABET = utils_default.ALPHABET.ALPHA_DIGIT + "-_";
71162
71206
  var textEncoder = new import_util.TextEncoder();
71163
71207
  var CRLF = "\r\n";
@@ -71236,7 +71280,7 @@ var formDataToStream = (form, headersHandler, options) => {
71236
71280
  };
71237
71281
  var formDataToStream_default = formDataToStream;
71238
71282
 
71239
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
71283
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
71240
71284
  var import_stream3 = __toESM(require("stream"));
71241
71285
  var ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
71242
71286
  __transform(chunk, encoding, callback) {
@@ -71258,7 +71302,7 @@ var ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
71258
71302
  };
71259
71303
  var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
71260
71304
 
71261
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/callbackify.js
71305
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/callbackify.js
71262
71306
  var callbackify = (fn, reducer) => {
71263
71307
  return utils_default.isAsyncFn(fn) ? function(...args) {
71264
71308
  const cb = args.pop();
@@ -71273,7 +71317,7 @@ var callbackify = (fn, reducer) => {
71273
71317
  };
71274
71318
  var callbackify_default = callbackify;
71275
71319
 
71276
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/adapters/http.js
71320
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/adapters/http.js
71277
71321
  var zlibOptions = {
71278
71322
  flush: import_zlib.default.constants.Z_SYNC_FLUSH,
71279
71323
  finishFlush: import_zlib.default.constants.Z_SYNC_FLUSH
@@ -71285,15 +71329,15 @@ var brotliOptions = {
71285
71329
  var isBrotliSupported = utils_default.isFunction(import_zlib.default.createBrotliDecompress);
71286
71330
  var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;
71287
71331
  var isHttps = /https:?/;
71288
- var supportedProtocols = node_default.protocols.map((protocol) => {
71332
+ var supportedProtocols = platform_default.protocols.map((protocol) => {
71289
71333
  return protocol + ":";
71290
71334
  });
71291
- function dispatchBeforeRedirect(options) {
71335
+ function dispatchBeforeRedirect(options, responseDetails) {
71292
71336
  if (options.beforeRedirects.proxy) {
71293
71337
  options.beforeRedirects.proxy(options);
71294
71338
  }
71295
71339
  if (options.beforeRedirects.config) {
71296
- options.beforeRedirects.config(options);
71340
+ options.beforeRedirects.config(options, responseDetails);
71297
71341
  }
71298
71342
  }
71299
71343
  function setProxy(options, configProxy, location) {
@@ -71373,6 +71417,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
71373
71417
  const _lookup = callbackify_default(lookup, (value) => utils_default.isArray(value) ? value : [value]);
71374
71418
  lookup = (hostname, opt, cb) => {
71375
71419
  _lookup(hostname, opt, (err, arg0, arg1) => {
71420
+ if (err) {
71421
+ return cb(err);
71422
+ }
71376
71423
  const addresses = utils_default.isArray(arg0) ? arg0.map((addr) => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
71377
71424
  opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
71378
71425
  });
@@ -71769,57 +71816,44 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
71769
71816
  });
71770
71817
  };
71771
71818
 
71772
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/cookies.js
71773
- var cookies_default = node_default.isStandardBrowserEnv ? (
71819
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/cookies.js
71820
+ var cookies_default = platform_default.hasStandardBrowserEnv ? (
71774
71821
  // Standard browser envs support document.cookie
71775
- function standardBrowserEnv() {
71776
- return {
71777
- write: function write(name, value, expires, path18, domain, secure) {
71778
- const cookie = [];
71779
- cookie.push(name + "=" + encodeURIComponent(value));
71780
- if (utils_default.isNumber(expires)) {
71781
- cookie.push("expires=" + new Date(expires).toGMTString());
71782
- }
71783
- if (utils_default.isString(path18)) {
71784
- cookie.push("path=" + path18);
71785
- }
71786
- if (utils_default.isString(domain)) {
71787
- cookie.push("domain=" + domain);
71788
- }
71789
- if (secure === true) {
71790
- cookie.push("secure");
71791
- }
71792
- document.cookie = cookie.join("; ");
71793
- },
71794
- read: function read(name) {
71795
- const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
71796
- return match ? decodeURIComponent(match[3]) : null;
71797
- },
71798
- remove: function remove(name) {
71799
- this.write(name, "", Date.now() - 864e5);
71800
- }
71801
- };
71802
- }()
71822
+ {
71823
+ write(name, value, expires, path18, domain, secure) {
71824
+ const cookie = [name + "=" + encodeURIComponent(value)];
71825
+ utils_default.isNumber(expires) && cookie.push("expires=" + new Date(expires).toGMTString());
71826
+ utils_default.isString(path18) && cookie.push("path=" + path18);
71827
+ utils_default.isString(domain) && cookie.push("domain=" + domain);
71828
+ secure === true && cookie.push("secure");
71829
+ document.cookie = cookie.join("; ");
71830
+ },
71831
+ read(name) {
71832
+ const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
71833
+ return match ? decodeURIComponent(match[3]) : null;
71834
+ },
71835
+ remove(name) {
71836
+ this.write(name, "", Date.now() - 864e5);
71837
+ }
71838
+ }
71803
71839
  ) : (
71804
- // Non standard browser env (web workers, react-native) lack needed support.
71805
- function nonStandardBrowserEnv() {
71806
- return {
71807
- write: function write() {
71808
- },
71809
- read: function read() {
71810
- return null;
71811
- },
71812
- remove: function remove() {
71813
- }
71814
- };
71815
- }()
71840
+ // Non-standard browser env (web workers, react-native) lack needed support.
71841
+ {
71842
+ write() {
71843
+ },
71844
+ read() {
71845
+ return null;
71846
+ },
71847
+ remove() {
71848
+ }
71849
+ }
71816
71850
  );
71817
71851
 
71818
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/isURLSameOrigin.js
71819
- var isURLSameOrigin_default = node_default.isStandardBrowserEnv ? (
71852
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/isURLSameOrigin.js
71853
+ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? (
71820
71854
  // Standard browser envs have full support of the APIs needed to test
71821
71855
  // whether the request URL is of the same origin as current location.
71822
- function standardBrowserEnv2() {
71856
+ function standardBrowserEnv() {
71823
71857
  const msie = /(msie|trident)/i.test(navigator.userAgent);
71824
71858
  const urlParsingNode = document.createElement("a");
71825
71859
  let originURL;
@@ -71849,14 +71883,14 @@ var isURLSameOrigin_default = node_default.isStandardBrowserEnv ? (
71849
71883
  }()
71850
71884
  ) : (
71851
71885
  // Non standard browser envs (web workers, react-native) lack needed support.
71852
- function nonStandardBrowserEnv2() {
71886
+ function nonStandardBrowserEnv() {
71853
71887
  return function isURLSameOrigin() {
71854
71888
  return true;
71855
71889
  };
71856
71890
  }()
71857
71891
  );
71858
71892
 
71859
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/adapters/xhr.js
71893
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/adapters/xhr.js
71860
71894
  function progressEventReducer(listener, isDownloadStream) {
71861
71895
  let bytesNotified = 0;
71862
71896
  const _speedometer = speedometer_default(50, 250);
@@ -71885,7 +71919,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
71885
71919
  return new Promise(function dispatchXhrRequest(resolve, reject) {
71886
71920
  let requestData = config.data;
71887
71921
  const requestHeaders = AxiosHeaders_default.from(config.headers).normalize();
71888
- const responseType = config.responseType;
71922
+ let { responseType, withXSRFToken } = config;
71889
71923
  let onCanceled;
71890
71924
  function done() {
71891
71925
  if (config.cancelToken) {
@@ -71897,12 +71931,11 @@ var xhr_default = isXHRAdapterSupported && function(config) {
71897
71931
  }
71898
71932
  let contentType;
71899
71933
  if (utils_default.isFormData(requestData)) {
71900
- if (node_default.isStandardBrowserEnv || node_default.isStandardBrowserWebWorkerEnv) {
71934
+ if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
71901
71935
  requestHeaders.setContentType(false);
71902
- } else if (!requestHeaders.getContentType(/^\s*multipart\/form-data/)) {
71903
- requestHeaders.setContentType("multipart/form-data");
71904
- } else if (utils_default.isString(contentType = requestHeaders.getContentType())) {
71905
- requestHeaders.setContentType(contentType.replace(/^\s*(multipart\/form-data);+/, "$1"));
71936
+ } else if ((contentType = requestHeaders.getContentType()) !== false) {
71937
+ const [type, ...tokens] = contentType ? contentType.split(";").map((token) => token.trim()).filter(Boolean) : [];
71938
+ requestHeaders.setContentType([type || "multipart/form-data", ...tokens].join("; "));
71906
71939
  }
71907
71940
  }
71908
71941
  let request = new XMLHttpRequest();
@@ -71977,10 +72010,13 @@ var xhr_default = isXHRAdapterSupported && function(config) {
71977
72010
  ));
71978
72011
  request = null;
71979
72012
  };
71980
- if (node_default.isStandardBrowserEnv) {
71981
- const xsrfValue = isURLSameOrigin_default(fullPath) && config.xsrfCookieName && cookies_default.read(config.xsrfCookieName);
71982
- if (xsrfValue) {
71983
- requestHeaders.set(config.xsrfHeaderName, xsrfValue);
72013
+ if (platform_default.hasStandardBrowserEnv) {
72014
+ withXSRFToken && utils_default.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config));
72015
+ if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin_default(fullPath)) {
72016
+ const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && cookies_default.read(config.xsrfCookieName);
72017
+ if (xsrfValue) {
72018
+ requestHeaders.set(config.xsrfHeaderName, xsrfValue);
72019
+ }
71984
72020
  }
71985
72021
  }
71986
72022
  requestData === void 0 && requestHeaders.setContentType(null);
@@ -72016,7 +72052,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
72016
72052
  }
72017
72053
  }
72018
72054
  const protocol = parseProtocol(fullPath);
72019
- if (protocol && node_default.protocols.indexOf(protocol) === -1) {
72055
+ if (protocol && platform_default.protocols.indexOf(protocol) === -1) {
72020
72056
  reject(new AxiosError_default("Unsupported protocol " + protocol + ":", AxiosError_default.ERR_BAD_REQUEST, config));
72021
72057
  return;
72022
72058
  }
@@ -72024,7 +72060,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
72024
72060
  });
72025
72061
  };
72026
72062
 
72027
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/adapters/adapters.js
72063
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/adapters/adapters.js
72028
72064
  var knownAdapters = {
72029
72065
  http: http_default,
72030
72066
  xhr: xhr_default
@@ -72077,7 +72113,7 @@ var adapters_default = {
72077
72113
  adapters: knownAdapters
72078
72114
  };
72079
72115
 
72080
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/core/dispatchRequest.js
72116
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/dispatchRequest.js
72081
72117
  function throwIfCancellationRequested(config) {
72082
72118
  if (config.cancelToken) {
72083
72119
  config.cancelToken.throwIfRequested();
@@ -72122,7 +72158,7 @@ function dispatchRequest(config) {
72122
72158
  });
72123
72159
  }
72124
72160
 
72125
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/core/mergeConfig.js
72161
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/mergeConfig.js
72126
72162
  var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? thing.toJSON() : thing;
72127
72163
  function mergeConfig(config1, config2) {
72128
72164
  config2 = config2 || {};
@@ -72174,6 +72210,7 @@ function mergeConfig(config1, config2) {
72174
72210
  timeout: defaultToConfig2,
72175
72211
  timeoutMessage: defaultToConfig2,
72176
72212
  withCredentials: defaultToConfig2,
72213
+ withXSRFToken: defaultToConfig2,
72177
72214
  adapter: defaultToConfig2,
72178
72215
  responseType: defaultToConfig2,
72179
72216
  xsrfCookieName: defaultToConfig2,
@@ -72201,7 +72238,7 @@ function mergeConfig(config1, config2) {
72201
72238
  return config;
72202
72239
  }
72203
72240
 
72204
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/validator.js
72241
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/validator.js
72205
72242
  var validators = {};
72206
72243
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
72207
72244
  validators[type] = function validator(thing) {
@@ -72259,7 +72296,7 @@ var validator_default = {
72259
72296
  validators
72260
72297
  };
72261
72298
 
72262
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/core/Axios.js
72299
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/Axios.js
72263
72300
  var validators2 = validator_default.validators;
72264
72301
  var Axios = class {
72265
72302
  constructor(instanceConfig) {
@@ -72277,7 +72314,24 @@ var Axios = class {
72277
72314
  *
72278
72315
  * @returns {Promise} The Promise to be fulfilled
72279
72316
  */
72280
- request(configOrUrl, config) {
72317
+ async request(configOrUrl, config) {
72318
+ try {
72319
+ return await this._request(configOrUrl, config);
72320
+ } catch (err) {
72321
+ if (err instanceof Error) {
72322
+ let dummy;
72323
+ Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : dummy = new Error();
72324
+ const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, "") : "";
72325
+ if (!err.stack) {
72326
+ err.stack = stack;
72327
+ } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ""))) {
72328
+ err.stack += "\n" + stack;
72329
+ }
72330
+ }
72331
+ throw err;
72332
+ }
72333
+ }
72334
+ _request(configOrUrl, config) {
72281
72335
  if (typeof configOrUrl === "string") {
72282
72336
  config = config || {};
72283
72337
  config.url = configOrUrl;
@@ -72402,7 +72456,7 @@ utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(m
72402
72456
  });
72403
72457
  var Axios_default = Axios;
72404
72458
 
72405
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/cancel/CancelToken.js
72459
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/cancel/CancelToken.js
72406
72460
  var CancelToken = class _CancelToken {
72407
72461
  constructor(executor) {
72408
72462
  if (typeof executor !== "function") {
@@ -72492,19 +72546,19 @@ var CancelToken = class _CancelToken {
72492
72546
  };
72493
72547
  var CancelToken_default = CancelToken;
72494
72548
 
72495
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/spread.js
72549
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/spread.js
72496
72550
  function spread(callback) {
72497
72551
  return function wrap(arr) {
72498
72552
  return callback.apply(null, arr);
72499
72553
  };
72500
72554
  }
72501
72555
 
72502
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/isAxiosError.js
72556
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/isAxiosError.js
72503
72557
  function isAxiosError(payload) {
72504
72558
  return utils_default.isObject(payload) && payload.isAxiosError === true;
72505
72559
  }
72506
72560
 
72507
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/HttpStatusCode.js
72561
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/HttpStatusCode.js
72508
72562
  var HttpStatusCode = {
72509
72563
  Continue: 100,
72510
72564
  SwitchingProtocols: 101,
@@ -72575,7 +72629,7 @@ Object.entries(HttpStatusCode).forEach(([key, value]) => {
72575
72629
  });
72576
72630
  var HttpStatusCode_default = HttpStatusCode;
72577
72631
 
72578
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/axios.js
72632
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/axios.js
72579
72633
  function createInstance(defaultConfig) {
72580
72634
  const context = new Axios_default(defaultConfig);
72581
72635
  const instance = bind(Axios_default.prototype.request, context);
@@ -72608,7 +72662,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
72608
72662
  axios.default = axios;
72609
72663
  var axios_default = axios;
72610
72664
 
72611
- // ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/index.js
72665
+ // ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/index.js
72612
72666
  var {
72613
72667
  Axios: Axios2,
72614
72668
  AxiosError: AxiosError2,
@@ -72628,17 +72682,17 @@ var {
72628
72682
  mergeConfig: mergeConfig2
72629
72683
  } = axios_default;
72630
72684
 
72631
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
72685
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
72632
72686
  var import_tar = __toESM(require_tar());
72633
72687
 
72634
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmTarballUrl.js
72688
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmTarballUrl.js
72635
72689
  var import_utils36 = require("@modern-js/utils");
72636
72690
 
72637
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/constants.js
72691
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/constants.js
72638
72692
  var NPM_API_TIMEOUT = 3e4;
72639
72693
  var CATCHE_VALIDITY_PREIOD = 12 * 3600 * 1e3;
72640
72694
 
72641
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmTarballUrl.js
72695
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmTarballUrl.js
72642
72696
  async function getNpmTarballUrl(pkgName, pkgVersion, options) {
72643
72697
  const { registryUrl } = options || {};
72644
72698
  const params = [
@@ -72661,7 +72715,7 @@ async function getNpmTarballUrl(pkgName, pkgVersion, options) {
72661
72715
  }
72662
72716
  }
72663
72717
 
72664
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmVersion.js
72718
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmVersion.js
72665
72719
  var import_utils37 = require("@modern-js/utils");
72666
72720
  async function getNpmVersion(packageName, options) {
72667
72721
  const { version, registryUrl } = options || {};
@@ -72683,7 +72737,7 @@ async function getNpmVersion(packageName, options) {
72683
72737
  return stdout;
72684
72738
  }
72685
72739
 
72686
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
72740
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
72687
72741
  async function isValidCache(cacheDir) {
72688
72742
  if (await fsExists(`${cacheDir}/.codesmith.completed`)) {
72689
72743
  const preCacheTimeStr = await import_utils38.fs.readFile(`${cacheDir}/.codesmith.completed`, {
@@ -72763,7 +72817,7 @@ async function downloadPackage(pkgName, pkgVersion = "latest", options = {}) {
72763
72817
  return targetDir;
72764
72818
  }
72765
72819
 
72766
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/utils/getPackageInfo.js
72820
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/getPackageInfo.js
72767
72821
  var import_utils39 = require("@modern-js/utils");
72768
72822
  function getPackageInfo(packageName) {
72769
72823
  if (!packageName) {
@@ -72788,7 +72842,7 @@ function getPackageInfo(packageName) {
72788
72842
  };
72789
72843
  }
72790
72844
 
72791
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js
72845
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js
72792
72846
  var MaterialsManager = class {
72793
72847
  loadLocalGenerator(generator) {
72794
72848
  if (!import_path6.default.isAbsolute(generator)) {
@@ -72819,7 +72873,7 @@ var MaterialsManager = class {
72819
72873
  }
72820
72874
  };
72821
72875
 
72822
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js
72876
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js
72823
72877
  var CodeSmith = class {
72824
72878
  async forge({ tasks, pwd }) {
72825
72879
  var _this_logger_timing, _this_logger;
@@ -72863,7 +72917,7 @@ var CodeSmith = class {
72863
72917
  }
72864
72918
  };
72865
72919
 
72866
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.3_@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/utils/renderString.js
72920
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/utils/renderString.js
72867
72921
  var import_handlebars = __toESM(require_lib());
72868
72922
  function renderString(template, fullData, registers) {
72869
72923
  const helpers = {
@@ -72877,7 +72931,7 @@ function renderString(template, fullData, registers) {
72877
72931
  return import_handlebars.default.compile(template)(fullData) || "";
72878
72932
  }
72879
72933
 
72880
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.3_@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/index.js
72934
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/index.js
72881
72935
  var HandlebarsAPI = class {
72882
72936
  async registerHelp(helpers) {
72883
72937
  this.registers.helpers = {
@@ -72927,13 +72981,13 @@ var HandlebarsAPI = class {
72927
72981
  }
72928
72982
  };
72929
72983
 
72930
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.3_@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/utils/renderString.js
72984
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/utils/renderString.js
72931
72985
  var import_ejs = __toESM(require_ejs());
72932
72986
  function renderString2(template, fullData) {
72933
72987
  return import_ejs.default.render(template, fullData) || "";
72934
72988
  }
72935
72989
 
72936
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.3_@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/index.js
72990
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/index.js
72937
72991
  var EjsAPI = class {
72938
72992
  async renderTemplate(templateResource, target, parameters = {}) {
72939
72993
  if (templateResource._type !== FS_RESOURCE) {
@@ -72966,7 +73020,7 @@ var EjsAPI = class {
72966
73020
  }
72967
73021
  };
72968
73022
 
72969
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.3.3_@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith-api-fs/dist/esm-node/index.js
73023
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-fs/dist/esm-node/index.js
72970
73024
  var import_path8 = __toESM(require("path"));
72971
73025
  var import_utils43 = require("@modern-js/utils");
72972
73026
  var FsAPI = class {
@@ -72994,7 +73048,7 @@ var FsAPI = class {
72994
73048
  }
72995
73049
  };
72996
73050
 
72997
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/index.js
73051
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/index.js
72998
73052
  var import_lodash2 = require("@modern-js/utils/lodash");
72999
73053
 
73000
73054
  // ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/checkers.js
@@ -82629,10 +82683,10 @@ var Schema = (
82629
82683
  }()
82630
82684
  );
82631
82685
 
82632
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
82686
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
82633
82687
  var import_inquirer = __toESM(require_inquirer());
82634
82688
 
82635
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/transform.js
82689
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/transform.js
82636
82690
  var import_lodash = require("@modern-js/utils/lodash");
82637
82691
  function validateSchema(schema) {
82638
82692
  const { type, properties } = schema;
@@ -82724,7 +82778,7 @@ function transformForm(schema, configValue = {}, validateMap, initValue) {
82724
82778
  return getQuestionFromSchema(schema, configValue, validateMap, initValue);
82725
82779
  }
82726
82780
 
82727
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
82781
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
82728
82782
  var compileRule = (rule, scope) => {
82729
82783
  const state = Schema.compile(rule, {
82730
82784
  $self: {},
@@ -82828,7 +82882,7 @@ async function prompt(schema, configValue = {}, validateMap, initValue) {
82828
82882
  return answers;
82829
82883
  }
82830
82884
 
82831
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/inquirer.js
82885
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/inquirer.js
82832
82886
  var CLIReader = class {
82833
82887
  getAnswers() {
82834
82888
  return this.answers;
@@ -82859,7 +82913,7 @@ var CLIReader = class {
82859
82913
  }
82860
82914
  };
82861
82915
 
82862
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/index.js
82916
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/index.js
82863
82917
  var FormilyAPI = class {
82864
82918
  mergeAnswers(answers, configValue) {
82865
82919
  const inputData = (0, import_lodash2.merge)(answers, configValue);
@@ -82882,7 +82936,7 @@ var FormilyAPI = class {
82882
82936
  }
82883
82937
  };
82884
82938
 
82885
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
82939
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
82886
82940
  var import_inquirer3 = __toESM(require_inquirer2());
82887
82941
 
82888
82942
  // ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.37.2/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
@@ -82948,7 +83002,7 @@ var I18n = class {
82948
83002
  }
82949
83003
  };
82950
83004
 
82951
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/zh.js
83005
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/zh.js
82952
83006
  var ZH_LOCALE = {
82953
83007
  environment: {
82954
83008
  node_version: "请升级 Node 版本至 LIS",
@@ -82975,7 +83029,7 @@ var ZH_LOCALE = {
82975
83029
  }
82976
83030
  };
82977
83031
 
82978
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/en.js
83032
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/en.js
82979
83033
  var EN_LOCALE = {
82980
83034
  environment: {
82981
83035
  node_version: "please upgrade node to lts version",
@@ -83002,14 +83056,14 @@ var EN_LOCALE = {
83002
83056
  }
83003
83057
  };
83004
83058
 
83005
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/index.js
83059
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/index.js
83006
83060
  var i18n = new I18n();
83007
83061
  var localeKeys = i18n.init("zh", {
83008
83062
  zh: ZH_LOCALE,
83009
83063
  en: EN_LOCALE
83010
83064
  });
83011
83065
 
83012
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/transform.js
83066
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/transform.js
83013
83067
  var import_lodash5 = require("@modern-js/utils/lodash");
83014
83068
  function transformInquirerSchema(questions, configValue = {}, validateMap = {}, initValue = {}) {
83015
83069
  for (const question of questions) {
@@ -83037,7 +83091,7 @@ function transformInquirerSchema(questions, configValue = {}, validateMap = {},
83037
83091
  return questions;
83038
83092
  }
83039
83093
 
83040
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
83094
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
83041
83095
  var import_path10 = __toESM(require("path"));
83042
83096
  var import_utils45 = require("@modern-js/utils");
83043
83097
  var NODE_MAJOR_VERSION_MAP = {
@@ -83085,7 +83139,7 @@ async function checkUseNvm(cwd, logger2) {
83085
83139
  }
83086
83140
  }
83087
83141
 
83088
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
83142
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
83089
83143
  var AppAPI = class {
83090
83144
  async checkEnvironment(nodeVersion) {
83091
83145
  if (import_utils46.semver.lt(process.versions.node, nodeVersion || "12.22.12")) {
@@ -83434,7 +83488,6 @@ var ZH_LOCALE2 = {
83434
83488
  polyfill: "启用「基于 UA 的 Polyfill」功能",
83435
83489
  proxy: "启用「全局代理」",
83436
83490
  swc: "启用「SWC 编译」",
83437
- rspack: "启用「Rspack 构建」(实验性)",
83438
83491
  module_doc: "启动「模块文档」功能"
83439
83492
  },
83440
83493
  element: {
@@ -83533,7 +83586,6 @@ var EN_LOCALE2 = {
83533
83586
  polyfill: "Enable UA-based Polyfill Feature",
83534
83587
  proxy: "Enable Global Proxy",
83535
83588
  swc: "Enable SWC Compile",
83536
- rspack: "Enable Rspack Build (experimental)",
83537
83589
  module_doc: "Enable Module Doc"
83538
83590
  },
83539
83591
  element: {
@@ -83926,7 +83978,6 @@ var ActionFunction;
83926
83978
  ActionFunction2["Polyfill"] = "polyfill";
83927
83979
  ActionFunction2["Proxy"] = "proxy";
83928
83980
  ActionFunction2["SWC"] = "swc";
83929
- ActionFunction2["Rspack"] = "rspack";
83930
83981
  ActionFunction2["ModuleDoc"] = "module_doc";
83931
83982
  })(ActionFunction || (ActionFunction = {}));
83932
83983
  var ActionRefactor;
@@ -83961,7 +84012,6 @@ var ActionFunctionText = {
83961
84012
  ["polyfill"]: () => i18n2.t(localeKeys2.action.function.polyfill),
83962
84013
  ["proxy"]: () => i18n2.t(localeKeys2.action.function.proxy),
83963
84014
  ["swc"]: () => i18n2.t(localeKeys2.action.function.swc),
83964
- ["rspack"]: () => i18n2.t(localeKeys2.action.function.rspack),
83965
84015
  ["module_doc"]: () => i18n2.t(localeKeys2.action.function.module_doc)
83966
84016
  };
83967
84017
  var ActionRefactorText = {
@@ -83975,7 +84025,6 @@ var MWAActionTypes = [
83975
84025
  ActionType.Refactor
83976
84026
  ];
83977
84027
  var MWAActionFunctions = [
83978
- ActionFunction.Rspack,
83979
84028
  ActionFunction.TailwindCSS,
83980
84029
  ActionFunction.BFF,
83981
84030
  ActionFunction.SSG,
@@ -84120,8 +84169,7 @@ var MWANewActionGenerators = {
84120
84169
  [ActionFunction.SSG]: "@modern-js/ssg-generator",
84121
84170
  [ActionFunction.Polyfill]: "@modern-js/dependence-generator",
84122
84171
  [ActionFunction.Proxy]: "@modern-js/dependence-generator",
84123
- [ActionFunction.SWC]: "@modern-js/dependence-generator",
84124
- [ActionFunction.Rspack]: "@modern-js/rspack-generator"
84172
+ [ActionFunction.SWC]: "@modern-js/dependence-generator"
84125
84173
  },
84126
84174
  [ActionType.Refactor]: {
84127
84175
  [ActionRefactor.ReactRouter5]: "@modern-js/router-v5-generator"
@@ -84684,11 +84732,11 @@ var import_lodash14 = require("@modern-js/utils/lodash");
84684
84732
  // ../../generator-plugin/dist/esm/context/file.js
84685
84733
  var import_path13 = __toESM(require("path"));
84686
84734
 
84687
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.3/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
84735
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.5/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
84688
84736
  var import_comment_json2 = __toESM(require_src2());
84689
84737
  var declarationUpdate = __toESM(require_dist());
84690
84738
 
84691
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.3/node_modules/@modern-js/codesmith-api-json/dist/esm-node/utils/index.js
84739
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.5/node_modules/@modern-js/codesmith-api-json/dist/esm-node/utils/index.js
84692
84740
  async function editJson(generatorCore, resource, getNewJsonValue) {
84693
84741
  const originJsonValue = await resource.value();
84694
84742
  const newJsonString = await getNewJsonValue(originJsonValue.content);
@@ -84701,7 +84749,7 @@ async function editJson(generatorCore, resource, getNewJsonValue) {
84701
84749
  return newJsonString;
84702
84750
  }
84703
84751
 
84704
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.3/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
84752
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.5/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
84705
84753
  var JsonAPI = class {
84706
84754
  async get(resource) {
84707
84755
  const originJsonValue = await resource.value();