@modern-js/mwa-generator 2.2.1 → 2.3.3

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.
package/dist/index.js CHANGED
@@ -35669,20 +35669,28 @@ var require_compiled = __commonJSMin((exports) => {
35669
35669
  var require_format = __commonJSMin((exports) => {
35670
35670
  "use strict";
35671
35671
  Object.defineProperty(exports, "__esModule", { value: true });
35672
- exports.formatProxyOptions = exports.formatWebpackMessages = void 0;
35673
- var friendlySyntaxErrorLabel = "Syntax error:";
35672
+ exports.formatWebpackMessages = void 0;
35673
+ var friendlySyntaxErrorLabel = "SyntaxError:";
35674
35674
  function isLikelyASyntaxError(message) {
35675
35675
  return message.includes(friendlySyntaxErrorLabel);
35676
35676
  }
35677
- function formatMessage(message) {
35678
- var _a;
35677
+ function formatMessage(stats) {
35679
35678
  let lines = [];
35680
- if (typeof message === "object") {
35681
- message = `${message.moduleName && `${message.moduleName}
35682
- `}${message.details || message.stack || message.message}`;
35679
+ let message;
35680
+ if (typeof stats === "object") {
35681
+ const fileName = stats.moduleName ? `File: ${stats.moduleName}
35682
+ ` : "";
35683
+ const mainMessage = stats.message;
35684
+ const details = stats.details ? `
35685
+ Details: ${stats.details}
35686
+ ` : "";
35687
+ const stack = stats.stack ? `
35688
+ ${stats.stack}` : "";
35689
+ message = `${fileName}${mainMessage}${details}${stack}`;
35690
+ } else {
35691
+ message = stats;
35683
35692
  }
35684
35693
  lines = message.split("\n");
35685
- lines = lines.filter((line3) => !/Module [A-z ]+\(from/.test(line3));
35686
35694
  lines = lines.map((line3) => {
35687
35695
  const parsingError = /Line (\d+):(?:(\d+):)?\s*Parsing error: (.+)$/.exec(line3);
35688
35696
  if (!parsingError) {
@@ -35699,11 +35707,8 @@ var require_format = __commonJSMin((exports) => {
35699
35707
  lines.splice(1, 1);
35700
35708
  }
35701
35709
  lines[0] = lines[0].replace(/^(.*) \d+:\d+-\d+$/, "$1");
35702
- if ((_a = lines[1]) === null || _a === void 0 ? void 0 : _a.startsWith("Module not found: ")) {
35703
- lines = [
35704
- lines[0],
35705
- lines[1].replace("Error: ", "").replace("Module not found: Cannot find file:", "Cannot find file:").replace("[CaseSensitivePathsPlugin] ", "").replace("Cannot resolve 'file' or 'directory' ", "")
35706
- ];
35710
+ if (lines[1] && lines[1].indexOf("Module not found:") !== -1) {
35711
+ lines[1] = lines[1].replace("Error: ", "");
35707
35712
  }
35708
35713
  message = lines.join("\n");
35709
35714
  message = message.replace(/^\s*at\s((?!webpack:).)*:\d+:\d+[\s)]*(\n|$)/gm, "");
@@ -35730,29 +35735,6 @@ var require_format = __commonJSMin((exports) => {
35730
35735
  return result;
35731
35736
  }
35732
35737
  exports.formatWebpackMessages = formatWebpackMessages;
35733
- function formatProxyOptions(proxyOptions) {
35734
- const formattedProxy = [];
35735
- if (!Array.isArray(proxyOptions)) {
35736
- if ("target" in proxyOptions) {
35737
- formattedProxy.push(proxyOptions);
35738
- } else {
35739
- Array.prototype.push.apply(formattedProxy, Object.keys(proxyOptions).reduce((total, source) => {
35740
- const option = proxyOptions[source];
35741
- total.push({
35742
- context: source,
35743
- changeOrigin: true,
35744
- logLevel: "warn",
35745
- ...typeof option === "string" ? { target: option } : option
35746
- });
35747
- return total;
35748
- }, []));
35749
- }
35750
- } else {
35751
- formattedProxy.push(...proxyOptions);
35752
- }
35753
- return formattedProxy;
35754
- }
35755
- exports.formatProxyOptions = formatProxyOptions;
35756
35738
  });
35757
35739
  var require_logger = __commonJSMin((exports) => {
35758
35740
  "use strict";
@@ -35830,17 +35812,17 @@ var require_logger = __commonJSMin((exports) => {
35830
35812
  if (LOG_LEVEL[type] > LOG_LEVEL[this.level]) {
35831
35813
  return;
35832
35814
  }
35833
- let label14 = "";
35815
+ let label21 = "";
35834
35816
  let text = "";
35835
35817
  const logType = this.types[type];
35836
35818
  if (this.config.displayLabel && logType.label) {
35837
- label14 = this.config.uppercaseLabel ? logType.label.toUpperCase() : logType.label;
35819
+ label21 = this.config.uppercaseLabel ? logType.label.toUpperCase() : logType.label;
35838
35820
  if (this.config.underlineLabel) {
35839
- label14 = underline(label14).padEnd(this.longestUnderlinedLabel.length + 1);
35821
+ label21 = underline(label21).padEnd(this.longestUnderlinedLabel.length + 1);
35840
35822
  } else {
35841
- label14 = label14.padEnd(this.longestLabel.length + 1);
35823
+ label21 = label21.padEnd(this.longestLabel.length + 1);
35842
35824
  }
35843
- label14 = logType.color ? chalk_1.default[logType.color](label14) : label14;
35825
+ label21 = logType.color ? chalk_1.default[logType.color](label21) : label21;
35844
35826
  }
35845
35827
  if (message instanceof Error) {
35846
35828
  if (message.stack) {
@@ -35856,15 +35838,15 @@ ${grey(rest.join("\n"))}`;
35856
35838
  if (logType.level === "warn" || logType.level === "error") {
35857
35839
  this.retainLog(type, text);
35858
35840
  }
35859
- const log = label14.length > 0 ? `${label14} ${text}` : text;
35841
+ const log = label21.length > 0 ? `${label21} ${text}` : text;
35860
35842
  console.log(log, ...args);
35861
35843
  }
35862
35844
  getLongestLabel() {
35863
35845
  let longestLabel = "";
35864
35846
  Object.keys(this.types).forEach((type) => {
35865
- const { label: label14 = "" } = this.types[type];
35866
- if (label14.length > longestLabel.length) {
35867
- longestLabel = label14;
35847
+ const { label: label21 = "" } = this.types[type];
35848
+ if (label21.length > longestLabel.length) {
35849
+ longestLabel = label21;
35868
35850
  }
35869
35851
  });
35870
35852
  return longestLabel;
@@ -36252,7 +36234,6 @@ var require_constants = __commonJSMin((exports) => {
36252
36234
  "@modern-js/plugin-electron": { cli: "@modern-js/plugin-electron/cli" },
36253
36235
  "@modern-js/plugin-testing": { cli: "@modern-js/plugin-testing/cli" },
36254
36236
  "@modern-js/plugin-storybook": { cli: "@modern-js/plugin-storybook/cli" },
36255
- "@modern-js/plugin-docsite": { cli: "@modern-js/plugin-docsite/cli" },
36256
36237
  "@modern-js/plugin-express": {
36257
36238
  cli: "@modern-js/plugin-express/cli",
36258
36239
  server: "@modern-js/plugin-express"
@@ -36270,7 +36251,6 @@ var require_constants = __commonJSMin((exports) => {
36270
36251
  server: "@modern-js/plugin-nest/server"
36271
36252
  },
36272
36253
  "@modern-js/plugin-unbundle": { cli: "@modern-js/plugin-unbundle" },
36273
- "@modern-js/plugin-server-build": { cli: "@modern-js/plugin-server-build" },
36274
36254
  "@modern-js/plugin-server": {
36275
36255
  cli: "@modern-js/plugin-server/cli",
36276
36256
  server: "@modern-js/plugin-server/server"
@@ -36278,26 +36258,12 @@ var require_constants = __commonJSMin((exports) => {
36278
36258
  "@modern-js/plugin-garfish": {
36279
36259
  cli: "@modern-js/plugin-garfish/cli"
36280
36260
  },
36281
- "@modern-js/plugin-jarvis": { cli: "@modern-js/plugin-jarvis/cli" },
36282
36261
  "@modern-js/plugin-tailwindcss": { cli: "@modern-js/plugin-tailwindcss/cli" },
36283
- "@modern-js/plugin-lambda-fc": { cli: "@modern-js/plugin-lambda-fc/cli" },
36284
- "@modern-js/plugin-lambda-scf": { cli: "@modern-js/plugin-lambda-scf/cli" },
36285
- "@modern-js/plugin-cdn-oss": { cli: "@modern-js/plugin-cdn-oss/cli" },
36286
- "@modern-js/plugin-cdn-cos": { cli: "@modern-js/plugin-cdn-cos/cli" },
36287
- "@modern-js/plugin-static-hosting": {
36288
- cli: "@modern-js/plugin-static-hosting/cli"
36289
- },
36290
36262
  "@modern-js/plugin-polyfill": {
36291
36263
  cli: "@modern-js/plugin-polyfill/cli",
36292
36264
  server: "@modern-js/plugin-polyfill"
36293
36265
  },
36294
- "@modern-js/plugin-multiprocess": {
36295
- cli: "@modern-js/plugin-multiprocess/cli"
36296
- },
36297
- "@modern-js/plugin-nocode": { cli: "@modern-js/plugin-nocode/cli" },
36298
- "@modern-js/plugin-design-token": {
36299
- cli: "@modern-js/plugin-design-token/cli"
36300
- }
36266
+ "@modern-js/plugin-nocode": { cli: "@modern-js/plugin-nocode/cli" }
36301
36267
  };
36302
36268
  exports.PLUGIN_SCHEMAS = {
36303
36269
  "@modern-js/runtime": [
@@ -37285,8 +37251,8 @@ var require_analyzeProject = __commonJSMin((exports) => {
37285
37251
  exports.isApiOnly = void 0;
37286
37252
  var path2 = __importStar(__require("path"));
37287
37253
  var compiled_1 = require_compiled();
37288
- var isApiOnly = async (appDirectory) => {
37289
- const srcDir = path2.join(appDirectory, "src");
37254
+ var isApiOnly = async (appDirectory, entryDir) => {
37255
+ const srcDir = path2.join(appDirectory, entryDir !== null && entryDir !== void 0 ? entryDir : "src");
37290
37256
  const existSrc = await compiled_1.fs.pathExists(srcDir);
37291
37257
  const options3 = (0, compiled_1.minimist)(process.argv.slice(2));
37292
37258
  return !existSrc || Boolean(options3["api-only"]);
@@ -37300,7 +37266,18 @@ var require_chainId = __commonJSMin((exports) => {
37300
37266
  exports.CHAIN_ID = {
37301
37267
  RULE: {
37302
37268
  MJS: "mjs",
37303
- LOADERS: "loaders"
37269
+ LOADERS: "loaders",
37270
+ FONT: "font",
37271
+ IMAGE: "image",
37272
+ MEDIA: "media",
37273
+ JS: "js",
37274
+ TS: "ts",
37275
+ CSS: "css",
37276
+ LESS: "less",
37277
+ SASS: "sass",
37278
+ SVG: "svg",
37279
+ SVG_INLINE: "svg-inline",
37280
+ SVG_URL: "svg-url"
37304
37281
  },
37305
37282
  ONE_OF: {
37306
37283
  JS: "js",
@@ -37326,6 +37303,8 @@ var require_chainId = __commonJSMin((exports) => {
37326
37303
  USE: {
37327
37304
  TS: "ts",
37328
37305
  CSS: "css",
37306
+ SASS: "sass",
37307
+ LESS: "less",
37329
37308
  URL: "url",
37330
37309
  FILE: "file",
37331
37310
  SVGR: "svgr",
@@ -37354,6 +37333,7 @@ var require_chainId = __commonJSMin((exports) => {
37354
37333
  INLINE_HTML: "inline-html",
37355
37334
  BUNDLE_ANALYZER: "bundle-analyze",
37356
37335
  BOTTOM_TEMPLATE: "bottom-template",
37336
+ HTML_CROSS_ORIGIN: "html-cross-origin",
37357
37337
  MINI_CSS_EXTRACT: "mini-css-extract",
37358
37338
  REACT_FAST_REFRESH: "react-fast-refresh",
37359
37339
  NODE_POLYFILL_PROVIDE: "node-polyfill-provide"
@@ -37369,6 +37349,32 @@ var require_chainId = __commonJSMin((exports) => {
37369
37349
  }
37370
37350
  };
37371
37351
  });
37352
+ var require_reactVersion = __commonJSMin((exports) => {
37353
+ "use strict";
37354
+ var __importDefault = exports && exports.__importDefault || function(mod) {
37355
+ return mod && mod.__esModule ? mod : { "default": mod };
37356
+ };
37357
+ Object.defineProperty(exports, "__esModule", { value: true });
37358
+ exports.isReact18 = void 0;
37359
+ var path_1 = __importDefault(__require("path"));
37360
+ var compiled_1 = require_compiled();
37361
+ var isReact18 = (cwd) => {
37362
+ const pkgPath = path_1.default.join(cwd, "package.json");
37363
+ if (!compiled_1.fs.existsSync(pkgPath)) {
37364
+ return false;
37365
+ }
37366
+ const pkgInfo = JSON.parse(compiled_1.fs.readFileSync(pkgPath, "utf8"));
37367
+ const deps = {
37368
+ ...pkgInfo.devDependencies,
37369
+ ...pkgInfo.dependencies
37370
+ };
37371
+ if (typeof deps.react !== "string") {
37372
+ return false;
37373
+ }
37374
+ return compiled_1.semver.satisfies(compiled_1.semver.minVersion(deps.react), ">=18.0.0");
37375
+ };
37376
+ exports.isReact18 = isReact18;
37377
+ });
37372
37378
  var require_dist = __commonJSMin((exports) => {
37373
37379
  "use strict";
37374
37380
  var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
@@ -37428,6 +37434,7 @@ var require_dist = __commonJSMin((exports) => {
37428
37434
  __exportStar(require_tryResolve(), exports);
37429
37435
  __exportStar(require_analyzeProject(), exports);
37430
37436
  __exportStar(require_chainId(), exports);
37437
+ __exportStar(require_reactVersion(), exports);
37431
37438
  });
37432
37439
  var require_esprima = __commonJSMin((exports, module2) => {
37433
37440
  (function webpackUniversalModuleDefinition(root, factory) {
@@ -38549,9 +38556,9 @@ var require_esprima = __commonJSMin((exports, module2) => {
38549
38556
  }();
38550
38557
  exports2.BlockStatement = BlockStatement;
38551
38558
  var BreakStatement = function() {
38552
- function BreakStatement2(label14) {
38559
+ function BreakStatement2(label21) {
38553
38560
  this.type = syntax_1.Syntax.BreakStatement;
38554
- this.label = label14;
38561
+ this.label = label21;
38555
38562
  }
38556
38563
  return BreakStatement2;
38557
38564
  }();
@@ -38623,9 +38630,9 @@ var require_esprima = __commonJSMin((exports, module2) => {
38623
38630
  }();
38624
38631
  exports2.ConditionalExpression = ConditionalExpression;
38625
38632
  var ContinueStatement = function() {
38626
- function ContinueStatement2(label14) {
38633
+ function ContinueStatement2(label21) {
38627
38634
  this.type = syntax_1.Syntax.ContinueStatement;
38628
- this.label = label14;
38635
+ this.label = label21;
38629
38636
  }
38630
38637
  return ContinueStatement2;
38631
38638
  }();
@@ -38816,9 +38823,9 @@ var require_esprima = __commonJSMin((exports, module2) => {
38816
38823
  }();
38817
38824
  exports2.ImportSpecifier = ImportSpecifier;
38818
38825
  var LabeledStatement = function() {
38819
- function LabeledStatement2(label14, body) {
38826
+ function LabeledStatement2(label21, body) {
38820
38827
  this.type = syntax_1.Syntax.LabeledStatement;
38821
- this.label = label14;
38828
+ this.label = label21;
38822
38829
  this.body = body;
38823
38830
  }
38824
38831
  return LabeledStatement2;
@@ -40965,38 +40972,38 @@ var require_esprima = __commonJSMin((exports, module2) => {
40965
40972
  Parser2.prototype.parseContinueStatement = function() {
40966
40973
  var node = this.createNode();
40967
40974
  this.expectKeyword("continue");
40968
- var label14 = null;
40975
+ var label21 = null;
40969
40976
  if (this.lookahead.type === 3 && !this.hasLineTerminator) {
40970
40977
  var id = this.parseVariableIdentifier();
40971
- label14 = id;
40978
+ label21 = id;
40972
40979
  var key = "$" + id.name;
40973
40980
  if (!Object.prototype.hasOwnProperty.call(this.context.labelSet, key)) {
40974
40981
  this.throwError(messages_1.Messages.UnknownLabel, id.name);
40975
40982
  }
40976
40983
  }
40977
40984
  this.consumeSemicolon();
40978
- if (label14 === null && !this.context.inIteration) {
40985
+ if (label21 === null && !this.context.inIteration) {
40979
40986
  this.throwError(messages_1.Messages.IllegalContinue);
40980
40987
  }
40981
- return this.finalize(node, new Node.ContinueStatement(label14));
40988
+ return this.finalize(node, new Node.ContinueStatement(label21));
40982
40989
  };
40983
40990
  Parser2.prototype.parseBreakStatement = function() {
40984
40991
  var node = this.createNode();
40985
40992
  this.expectKeyword("break");
40986
- var label14 = null;
40993
+ var label21 = null;
40987
40994
  if (this.lookahead.type === 3 && !this.hasLineTerminator) {
40988
40995
  var id = this.parseVariableIdentifier();
40989
40996
  var key = "$" + id.name;
40990
40997
  if (!Object.prototype.hasOwnProperty.call(this.context.labelSet, key)) {
40991
40998
  this.throwError(messages_1.Messages.UnknownLabel, id.name);
40992
40999
  }
40993
- label14 = id;
41000
+ label21 = id;
40994
41001
  }
40995
41002
  this.consumeSemicolon();
40996
- if (label14 === null && !this.context.inIteration && !this.context.inSwitch) {
41003
+ if (label21 === null && !this.context.inIteration && !this.context.inSwitch) {
40997
41004
  this.throwError(messages_1.Messages.IllegalBreak);
40998
41005
  }
40999
- return this.finalize(node, new Node.BreakStatement(label14));
41006
+ return this.finalize(node, new Node.BreakStatement(label21));
41000
41007
  };
41001
41008
  Parser2.prototype.parseReturnStatement = function() {
41002
41009
  if (!this.context.inFunctionBody) {
@@ -44475,7 +44482,7 @@ var require_array = __commonJSMin((exports, module2) => {
44475
44482
  splice(...args) {
44476
44483
  const { length } = this;
44477
44484
  const ret = super.splice(...args);
44478
- let [begin, deleteCount, ...items] = args;
44485
+ let [begin, deleteCount, ...items5] = args;
44479
44486
  if (begin < 0) {
44480
44487
  begin += length;
44481
44488
  }
@@ -44486,7 +44493,7 @@ var require_array = __commonJSMin((exports, module2) => {
44486
44493
  }
44487
44494
  const {
44488
44495
  length: item_length
44489
- } = items;
44496
+ } = items5;
44490
44497
  const offset = item_length - deleteCount;
44491
44498
  const start = begin + deleteCount;
44492
44499
  const count = length - start;
@@ -44513,12 +44520,12 @@ var require_array = __commonJSMin((exports, module2) => {
44513
44520
  move_comments(array, this, begin, before - begin, -begin);
44514
44521
  return array;
44515
44522
  }
44516
- unshift(...items) {
44523
+ unshift(...items5) {
44517
44524
  const { length } = this;
44518
- const ret = super.unshift(...items);
44525
+ const ret = super.unshift(...items5);
44519
44526
  const {
44520
44527
  length: items_length
44521
- } = items;
44528
+ } = items5;
44522
44529
  if (items_length > 0) {
44523
44530
  move_comments(this, this, 0, length, items_length, true);
44524
44531
  }
@@ -44541,14 +44548,14 @@ var require_array = __commonJSMin((exports, module2) => {
44541
44548
  remove_comments(this, this.length);
44542
44549
  return ret;
44543
44550
  }
44544
- concat(...items) {
44551
+ concat(...items5) {
44545
44552
  let { length } = this;
44546
- const ret = super.concat(...items);
44547
- if (!items.length) {
44553
+ const ret = super.concat(...items5);
44554
+ if (!items5.length) {
44548
44555
  return ret;
44549
44556
  }
44550
44557
  move_comments(ret, this, 0, this.length, 0);
44551
- items.forEach((item) => {
44558
+ items5.forEach((item) => {
44552
44559
  const prev = length;
44553
44560
  length += isArray(item) ? item.length : 1;
44554
44561
  if (!(item instanceof CommentArray)) {
@@ -45797,6 +45804,7 @@ var require_generator = __commonJSMin((exports) => {
45797
45804
  this.materialsManager = materialsManager;
45798
45805
  this.outputPath = outputPath;
45799
45806
  this.event = new _events.EventEmitter();
45807
+ this.event.setMaxListeners(15);
45800
45808
  this._context = _objectSpread({
45801
45809
  materials: {},
45802
45810
  config: {},
@@ -58784,11 +58792,11 @@ var require_javascript_compiler = __commonJSMin((exports, module2) => {
58784
58792
  var functionCall = this.source.functionCall(functionLookupCode, "call", helper.callParams);
58785
58793
  this.push(functionCall);
58786
58794
  },
58787
- itemsSeparatedBy: function itemsSeparatedBy(items, separator) {
58795
+ itemsSeparatedBy: function itemsSeparatedBy(items5, separator) {
58788
58796
  var result = [];
58789
- result.push(items[0]);
58790
- for (var i = 1; i < items.length; i++) {
58791
- result.push(separator, items[i]);
58797
+ result.push(items5[0]);
58798
+ for (var i = 1; i < items5.length; i++) {
58799
+ result.push(separator, items5[i]);
58792
58800
  }
58793
58801
  return result;
58794
58802
  },
@@ -78562,13 +78570,13 @@ var require_base3 = __commonJSMin((exports, module2) => {
78562
78570
  }
78563
78571
  handleSubmitEvents(submit) {
78564
78572
  const self2 = this;
78565
- const validate3 = runAsync(this.opt.validate);
78573
+ const validate4 = runAsync(this.opt.validate);
78566
78574
  const asyncFilter = runAsync(this.opt.filter);
78567
78575
  const validation = submit.pipe(flatMap((value) => {
78568
78576
  this.startSpinner(value, this.opt.filteringText);
78569
78577
  return asyncFilter(value, self2.answers).then((filteredValue) => {
78570
78578
  this.startSpinner(filteredValue, this.opt.validatingText);
78571
- return validate3(filteredValue, self2.answers).then((isValid) => ({ isValid, value: filteredValue }), (err) => ({ isValid: err, value: filteredValue }));
78579
+ return validate4(filteredValue, self2.answers).then((isValid) => ({ isValid, value: filteredValue }), (err) => ({ isValid: err, value: filteredValue }));
78572
78580
  }, (err) => ({ isValid: err }));
78573
78581
  }), share());
78574
78582
  const success = validation.pipe(filter3((state) => state.isValid === true), take(1));
@@ -96888,8 +96896,8 @@ var init_checkSchema = __esmMin(() => {
96888
96896
  };
96889
96897
  checkRepeatItems = function checkRepeatItems2(schema, extra) {
96890
96898
  if (schema.items && schema.items.length > 0) {
96891
- var items = getItems(schema, {}, extra);
96892
- var keys = items.map(function(x) {
96899
+ var items5 = getItems(schema, {}, extra);
96900
+ var keys = items5.map(function(x) {
96893
96901
  return x.key;
96894
96902
  });
96895
96903
  var tmp = [];
@@ -97071,9 +97079,9 @@ var init_baseReader = __esmMin(() => {
97071
97079
  initValues[_schema.key] = _this.getSchemaDefaultValue(_schema, brothers, isRoot);
97072
97080
  }
97073
97081
  if (_schema.items) {
97074
- var items = getItems(_schema, _this.data, _this.extra);
97075
- items.forEach(function(each) {
97076
- return readDefaultValue2(each, items.map(function(x) {
97082
+ var items5 = getItems(_schema, _this.data, _this.extra);
97083
+ items5.forEach(function(each) {
97084
+ return readDefaultValue2(each, items5.map(function(x) {
97077
97085
  return x.key;
97078
97086
  }), false);
97079
97087
  });
@@ -98087,7 +98095,7 @@ var require_utils8 = __commonJSMin((exports) => {
98087
98095
  }, choices);
98088
98096
  };
98089
98097
  exports.getQuestion = getQuestion;
98090
- var when5 = (schema, answers, extra) => {
98098
+ var when8 = (schema, answers, extra) => {
98091
98099
  if (schema.when && typeof schema.when === "function") {
98092
98100
  return schema.when(answers, extra);
98093
98101
  }
@@ -98113,7 +98121,7 @@ var require_utils8 = __commonJSMin((exports) => {
98113
98121
  });
98114
98122
  return (answers) => {
98115
98123
  try {
98116
- if (!when5(schema, answers, nodeInfo.extra)) {
98124
+ if (!when8(schema, answers, nodeInfo.extra)) {
98117
98125
  return Promise.resolve(true);
98118
98126
  }
98119
98127
  const question = getQuestion({
@@ -98771,18 +98779,18 @@ var require_transformSchema = __commonJSMin((exports) => {
98771
98779
  schemaItem.label = schemaItem.state.cliLabel;
98772
98780
  }
98773
98781
  const {
98774
- when: when5,
98775
- validate: validate3
98782
+ when: when8,
98783
+ validate: validate4
98776
98784
  } = schemaItem;
98777
98785
  schemaItem.when = (values, extra) => {
98778
98786
  if (!(0, _isUndefined2.default)(configValue[schemaItem.key])) {
98779
98787
  return false;
98780
98788
  }
98781
- return when5 ? when5(values, extra) : true;
98789
+ return when8 ? when8(values, extra) : true;
98782
98790
  };
98783
98791
  schemaItem.validate = async (value, data, extra) => {
98784
- if (validate3) {
98785
- const result = await validate3(value, data, extra);
98792
+ if (validate4) {
98793
+ const result = await validate4(value, data, extra);
98786
98794
  if (!result.success) {
98787
98795
  return result;
98788
98796
  }
@@ -100627,6 +100635,1176 @@ var init_treeshaking3 = __esmMin(() => {
100627
100635
  return I18n3;
100628
100636
  }();
100629
100637
  });
100638
+ var ZH_LOCALE;
100639
+ var init_zh = __esmMin(() => {
100640
+ ZH_LOCALE = {
100641
+ solution: {
100642
+ self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u521B\u5EFA\u7684\u5DE5\u7A0B\u7C7B\u578B",
100643
+ mwa: "\u5E94\u7528",
100644
+ module: "\u6A21\u5757",
100645
+ monorepo: "Monorepo",
100646
+ custom: "\u81EA\u5B9A\u4E49",
100647
+ "default": "\u9ED8\u8BA4"
100648
+ },
100649
+ scenes: {
100650
+ self: "\u8BF7\u9009\u62E9\u9879\u76EE\u573A\u666F"
100651
+ },
100652
+ sub_solution: {
100653
+ self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u521B\u5EFA\u7684\u5DE5\u7A0B\u7C7B\u578B",
100654
+ mwa: "\u5E94\u7528",
100655
+ mwa_test: "\u5E94\u7528\uFF08\u6D4B\u8BD5\uFF09",
100656
+ module: "\u6A21\u5757",
100657
+ inner_module: "\u6A21\u5757\uFF08\u5185\u90E8\uFF09"
100658
+ },
100659
+ action: {
100660
+ self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u8981\u7684\u64CD\u4F5C",
100661
+ "function": {
100662
+ self: "\u542F\u7528\u53EF\u9009\u529F\u80FD",
100663
+ tailwindcss: "\u542F\u7528 Tailwind CSS \u652F\u6301",
100664
+ less: "\u542F\u7528 Less \u652F\u6301",
100665
+ sass: "\u542F\u7528 Sass \u652F\u6301",
100666
+ bff: "\u542F\u7528\u300CBFF\u300D\u529F\u80FD",
100667
+ micro_frontend: "\u542F\u7528\u300C\u5FAE\u524D\u7AEF\u300D\u6A21\u5F0F",
100668
+ electron: "\u542F\u7528\u300CElectron\u300D\u6A21\u5F0F",
100669
+ i18n: "\u542F\u7528\u300C\u56FD\u9645\u5316\uFF08i18n\uFF09\u300D\u529F\u80FD",
100670
+ test: "\u542F\u7528\u300C\u5355\u5143\u6D4B\u8BD5 / \u96C6\u6210\u6D4B\u8BD5\u300D\u529F\u80FD",
100671
+ e2e_test: "\u542F\u7528\u300CE2E \u6D4B\u8BD5\u300D\u529F\u80FD",
100672
+ doc: "\u542F\u7528\u300C\u6587\u6863\u7AD9\u300D\u529F\u80FD",
100673
+ storybook: "\u542F\u7528\u300CStorybook\u300D",
100674
+ runtime_api: "\u542F\u7528\u300CRuntime API\u300D",
100675
+ mwa_storybook: "\u542F\u7528\u300CVisual Testing (Storybook)\u300D\u6A21\u5F0F",
100676
+ ssg: "\u542F\u7528\u300CSSG\u300D\u529F\u80FD",
100677
+ polyfill: "\u542F\u7528\u300C\u57FA\u4E8E UA \u7684 Polyfill\u300D\u529F\u80FD",
100678
+ proxy: "\u542F\u7528\u300C\u5168\u5C40\u4EE3\u7406\u300D"
100679
+ },
100680
+ element: {
100681
+ self: "\u521B\u5EFA\u5DE5\u7A0B\u5143\u7D20",
100682
+ entry: "\u65B0\u5EFA\u300C\u5E94\u7528\u5165\u53E3\u300D",
100683
+ server: "\u65B0\u5EFA\u300CServer \u81EA\u5B9A\u4E49\u300D\u6E90\u7801\u76EE\u5F55"
100684
+ },
100685
+ refactor: {
100686
+ self: "\u81EA\u52A8\u91CD\u6784",
100687
+ bff_to_app: "BFF \u5207\u6362\u6846\u67B6\u6A21\u5F0F"
100688
+ }
100689
+ },
100690
+ "boolean": {
100691
+ yes: "\u662F",
100692
+ no: "\u5426"
100693
+ },
100694
+ language: {
100695
+ self: "\u8BF7\u9009\u62E9\u5F00\u53D1\u8BED\u8A00"
100696
+ },
100697
+ packageManager: {
100698
+ self: "\u8BF7\u9009\u62E9\u5305\u7BA1\u7406\u5DE5\u5177"
100699
+ },
100700
+ runWay: {
100701
+ self: "\u662F\u5426\u9700\u8981\u652F\u6301\u4EE5\u4E0B\u7C7B\u578B\u5E94\u7528",
100702
+ no: "\u4E0D\u9700\u8981",
100703
+ electron: "Electron"
100704
+ },
100705
+ entry: {
100706
+ name: "\u8BF7\u586B\u5199\u5165\u53E3\u540D\u79F0",
100707
+ no_empty: "\u5165\u53E3\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01",
100708
+ no_pages: '\u5165\u53E3\u540D\u79F0\u4E0D\u652F\u6301 "pages"\uFF01',
100709
+ needModifyConfig: "\u662F\u5426\u9700\u8981\u8C03\u6574\u9ED8\u8BA4\u914D\u7F6E?",
100710
+ clientRoute: {
100711
+ self: "\u8BF7\u9009\u62E9\u5BA2\u6237\u7AEF\u8DEF\u7531\u65B9\u5F0F",
100712
+ selfControlRoute: "\u81EA\u63A7\u8DEF\u7531",
100713
+ conventionalRoute: "\u7EA6\u5B9A\u5F0F\u8DEF\u7531"
100714
+ }
100715
+ },
100716
+ packageName: {
100717
+ self: "\u8BF7\u586B\u5199\u9879\u76EE\u540D\u79F0",
100718
+ sub_name: "\u8BF7\u586B\u5199\u5B50\u9879\u76EE\u540D\u79F0",
100719
+ no_empty: "\u9879\u76EE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01"
100720
+ },
100721
+ packagePath: {
100722
+ self: "\u8BF7\u586B\u5199\u5B50\u9879\u76EE\u76EE\u5F55\u540D\u79F0",
100723
+ no_empty: "\u76EE\u5F55\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01",
100724
+ format: "\u76EE\u5F55\u540D\u79F0\u53EA\u80FD\u4F7F\u7528\u5C0F\u5199\u5B57\u6BCD\u3001\u6570\u5B57\u548C\u5206\u9694\u7EBF\uFF08-\uFF09\u3001\u4E0B\u5212\u7EBF\uFF08_\uFF09\u548C\u76EE\u5F55\u5206\u9694\u7B26\uFF08/\uFF09"
100725
+ },
100726
+ framework: {
100727
+ self: "\u8BF7\u9009\u62E9\u8FD0\u884C\u65F6\u6846\u67B6",
100728
+ egg: "Egg",
100729
+ express: "Express",
100730
+ koa: "Koa",
100731
+ nest: "Nest"
100732
+ },
100733
+ bff: {
100734
+ bffType: {
100735
+ self: "\u8BF7\u9009\u62E9 BFF \u7C7B\u578B",
100736
+ func: "\u51FD\u6570\u6A21\u5F0F",
100737
+ framework: "\u6846\u67B6\u6A21\u5F0F"
100738
+ }
100739
+ }
100740
+ };
100741
+ });
100742
+ var EN_LOCALE;
100743
+ var init_en = __esmMin(() => {
100744
+ EN_LOCALE = {
100745
+ solution: {
100746
+ self: "Please select the solution you want to create",
100747
+ mwa: "MWA Solution",
100748
+ module: "Module Solution",
100749
+ monorepo: "Monorepo Solution",
100750
+ custom: "Custom Solution",
100751
+ "default": "Default"
100752
+ },
100753
+ scenes: {
100754
+ self: "Please select the scene you want to create"
100755
+ },
100756
+ sub_solution: {
100757
+ self: "Please select the solution you want to create",
100758
+ mwa: "MWA Solution",
100759
+ mwa_test: "MWA Solution(Test)",
100760
+ module: "Module Solution",
100761
+ inner_module: "Module Solution(Inner)",
100762
+ monorepo: "Monorepo Solution"
100763
+ },
100764
+ action: {
100765
+ self: "Action",
100766
+ "function": {
100767
+ self: "Enable features",
100768
+ tailwindcss: "Enable Tailwind CSS",
100769
+ less: "Enable Less",
100770
+ sass: "Enable Sass",
100771
+ bff: "Enable BFF",
100772
+ micro_frontend: "Enable Micro Frontend",
100773
+ electron: "Enable Electron",
100774
+ i18n: "Enable Internationalization (i18n)",
100775
+ test: "Enable Unit Test / Integration Test",
100776
+ e2e_test: "Enable E2E Test",
100777
+ doc: "Enable Document Station",
100778
+ storybook: "Enable Storybook",
100779
+ runtime_api: "Enable Runtime API",
100780
+ mwa_storybook: "Enable Visual Testing (Storybook)",
100781
+ ssg: "Enable SSG",
100782
+ polyfill: "Enable UA-based Polyfill Feature",
100783
+ proxy: "Enable Global Proxy"
100784
+ },
100785
+ element: {
100786
+ self: "Create project element",
100787
+ entry: 'New "entry"',
100788
+ server: 'New "Server Custom" source code directory'
100789
+ },
100790
+ refactor: {
100791
+ self: "Automatic refactor",
100792
+ bff_to_app: "Transform BFF to frame mode"
100793
+ }
100794
+ },
100795
+ "boolean": {
100796
+ yes: "Yes",
100797
+ no: "No"
100798
+ },
100799
+ language: {
100800
+ self: "Development Language"
100801
+ },
100802
+ packageManager: {
100803
+ self: "Package Management Tool"
100804
+ },
100805
+ packageName: {
100806
+ self: "Package Name",
100807
+ sub_name: "Package Name",
100808
+ no_empty: "The package name cannot be empty!"
100809
+ },
100810
+ packagePath: {
100811
+ self: "Package Path",
100812
+ no_empty: "The package path cannot be empty!",
100813
+ format: "Only lowercase letters, numbers and delimiters (-), and underscore (_), and directory delimiters (/) can be used in package path."
100814
+ },
100815
+ runWay: {
100816
+ self: "Do you need to support the following types of applications",
100817
+ no: "Not Enabled",
100818
+ electron: "Electron"
100819
+ },
100820
+ entry: {
100821
+ name: "Entry name",
100822
+ no_empty: "The entry name cannot be empty!",
100823
+ no_pages: 'The entry name cannot be "pages"!',
100824
+ needModifyConfig: "Modify the Default Configuration?",
100825
+ clientRoute: {
100826
+ self: "Client Routing",
100827
+ selfControlRoute: "Self Control Route",
100828
+ conventionalRoute: "Conventional Route"
100829
+ }
100830
+ },
100831
+ framework: {
100832
+ self: "Please select the framework you want to use",
100833
+ egg: "Egg",
100834
+ express: "Express",
100835
+ koa: "Koa",
100836
+ nest: "Nest"
100837
+ },
100838
+ bff: {
100839
+ bffType: {
100840
+ self: "BFF Type",
100841
+ func: "Function",
100842
+ framework: "Framework"
100843
+ }
100844
+ }
100845
+ };
100846
+ });
100847
+ var i18n, localeKeys;
100848
+ var init_locale = __esmMin(() => {
100849
+ init_treeshaking3();
100850
+ init_zh();
100851
+ init_en();
100852
+ i18n = new I18n2();
100853
+ localeKeys = i18n.init("zh", {
100854
+ zh: ZH_LOCALE,
100855
+ en: EN_LOCALE
100856
+ });
100857
+ });
100858
+ var _BooleanConfigName, BooleanConfig, BooleanConfigName, BooleanSchemas;
100859
+ var init_boolean = __esmMin(() => {
100860
+ init_defineProperty();
100861
+ init_locale();
100862
+ (function(BooleanConfig2) {
100863
+ BooleanConfig2["NO"] = "no";
100864
+ BooleanConfig2["YES"] = "yes";
100865
+ })(BooleanConfig || (BooleanConfig = {}));
100866
+ BooleanConfigName = (_BooleanConfigName = {}, _defineProperty(_BooleanConfigName, BooleanConfig.NO, function() {
100867
+ return i18n.t(localeKeys["boolean"].no);
100868
+ }), _defineProperty(_BooleanConfigName, BooleanConfig.YES, function() {
100869
+ return i18n.t(localeKeys["boolean"].yes);
100870
+ }), _BooleanConfigName);
100871
+ BooleanSchemas = [{
100872
+ key: BooleanConfig.NO,
100873
+ label: BooleanConfigName[BooleanConfig.NO]
100874
+ }, {
100875
+ key: BooleanConfig.YES,
100876
+ label: BooleanConfigName[BooleanConfig.YES]
100877
+ }];
100878
+ });
100879
+ function getSolutionNameFromSubSolution(solution) {
100880
+ if (solution === SubSolution.MWATest) {
100881
+ return Solution.MWA;
100882
+ }
100883
+ if (solution === SubSolution.InnerModule) {
100884
+ return Solution.Module;
100885
+ }
100886
+ return solution;
100887
+ }
100888
+ var _SolutionText, _SubSolutionText, _SolutionToolsMap, _SolutionGenerator, _SubSolutionGenerator, Solution, SubSolution, SolutionText, SubSolutionText, SolutionToolsMap, SolutionSchema, SubSolutionSchema, BaseGenerator, SolutionGenerator, SubSolutionGenerator, ChangesetGenerator, DependenceGenerator, EntryGenerator, ElectronGenerator, EslintGenerator;
100889
+ var init_solution = __esmMin(() => {
100890
+ init_toConsumableArray();
100891
+ init_defineProperty();
100892
+ init_locale();
100893
+ (function(Solution2) {
100894
+ Solution2["MWA"] = "mwa";
100895
+ Solution2["Module"] = "module";
100896
+ Solution2["Monorepo"] = "monorepo";
100897
+ })(Solution || (Solution = {}));
100898
+ (function(SubSolution2) {
100899
+ SubSolution2["MWA"] = "mwa";
100900
+ SubSolution2["MWATest"] = "mwa_test";
100901
+ SubSolution2["Module"] = "module";
100902
+ SubSolution2["InnerModule"] = "inner_module";
100903
+ })(SubSolution || (SubSolution = {}));
100904
+ SolutionText = (_SolutionText = {}, _defineProperty(_SolutionText, Solution.MWA, function() {
100905
+ return i18n.t(localeKeys.solution.mwa);
100906
+ }), _defineProperty(_SolutionText, Solution.Module, function() {
100907
+ return i18n.t(localeKeys.solution.module);
100908
+ }), _defineProperty(_SolutionText, Solution.Monorepo, function() {
100909
+ return i18n.t(localeKeys.solution.monorepo);
100910
+ }), _SolutionText);
100911
+ SubSolutionText = (_SubSolutionText = {}, _defineProperty(_SubSolutionText, SubSolution.MWA, function() {
100912
+ return i18n.t(localeKeys.sub_solution.mwa);
100913
+ }), _defineProperty(_SubSolutionText, SubSolution.MWATest, function() {
100914
+ return i18n.t(localeKeys.sub_solution.mwa_test);
100915
+ }), _defineProperty(_SubSolutionText, SubSolution.Module, function() {
100916
+ return i18n.t(localeKeys.sub_solution.module);
100917
+ }), _defineProperty(_SubSolutionText, SubSolution.InnerModule, function() {
100918
+ return i18n.t(localeKeys.sub_solution.inner_module);
100919
+ }), _SubSolutionText);
100920
+ SolutionToolsMap = (_SolutionToolsMap = {}, _defineProperty(_SolutionToolsMap, Solution.MWA, "@modern-js/app-tools"), _defineProperty(_SolutionToolsMap, Solution.Module, "@modern-js/module-tools"), _defineProperty(_SolutionToolsMap, Solution.Monorepo, "@modern-js/monorepo-tools"), _SolutionToolsMap);
100921
+ SolutionSchema = {
100922
+ key: "solution_schema",
100923
+ isObject: true,
100924
+ items: [{
100925
+ key: "solution",
100926
+ label: function label() {
100927
+ return i18n.t(localeKeys.solution.self);
100928
+ },
100929
+ type: ["string"],
100930
+ mutualExclusion: true,
100931
+ items: function items(_data, extra) {
100932
+ var _extra$customPlugin, _extra$customPlugin$c;
100933
+ var items5 = Object.values(Solution).filter(function(solution) {
100934
+ return !(extra !== null && extra !== void 0 && extra.isSubProject && solution === Solution.Monorepo);
100935
+ }).map(function(solution) {
100936
+ return {
100937
+ key: solution,
100938
+ label: SolutionText[solution]
100939
+ };
100940
+ });
100941
+ if (extra !== null && extra !== void 0 && (_extra$customPlugin = extra.customPlugin) !== null && _extra$customPlugin !== void 0 && (_extra$customPlugin$c = _extra$customPlugin.custom) !== null && _extra$customPlugin$c !== void 0 && _extra$customPlugin$c.length) {
100942
+ return [].concat(_toConsumableArray(items5), [{
100943
+ key: "custom",
100944
+ label: i18n.t(localeKeys.solution.custom)
100945
+ }]);
100946
+ }
100947
+ return items5;
100948
+ }
100949
+ }, {
100950
+ key: "scenes",
100951
+ label: function label2() {
100952
+ return i18n.t(localeKeys.scenes.self);
100953
+ },
100954
+ type: ["string"],
100955
+ mutualExclusion: true,
100956
+ when: function when(data, extra) {
100957
+ return (extra === null || extra === void 0 ? void 0 : extra.customPlugin) && extra.customPlugin[data.solution] && extra.customPlugin[data.solution].length > 0;
100958
+ },
100959
+ items: function items2(data, extra) {
100960
+ var items5 = (extra !== null && extra !== void 0 && extra.customPlugin ? (extra === null || extra === void 0 ? void 0 : extra.customPlugin[data.solution]) || [] : []).map(function(plugin) {
100961
+ return {
100962
+ key: plugin.key,
100963
+ label: plugin.name
100964
+ };
100965
+ });
100966
+ if (data.solution && data.solution !== "custom") {
100967
+ items5.unshift({
100968
+ key: data.solution,
100969
+ label: "".concat(SolutionText[data.solution](), "(").concat(i18n.t(localeKeys.solution["default"]), ")")
100970
+ });
100971
+ }
100972
+ return items5;
100973
+ }
100974
+ }]
100975
+ };
100976
+ SubSolutionSchema = {
100977
+ key: "sub_solution_schema",
100978
+ isObject: true,
100979
+ items: [{
100980
+ key: "solution",
100981
+ label: function label3() {
100982
+ return i18n.t(localeKeys.sub_solution.self);
100983
+ },
100984
+ type: ["string"],
100985
+ mutualExclusion: true,
100986
+ items: function items3(_data, extra) {
100987
+ var _extra$customPlugin2, _extra$customPlugin2$;
100988
+ var items5 = Object.values(SubSolution).map(function(solution) {
100989
+ return {
100990
+ key: solution,
100991
+ label: SubSolutionText[solution]
100992
+ };
100993
+ });
100994
+ if (extra !== null && extra !== void 0 && (_extra$customPlugin2 = extra.customPlugin) !== null && _extra$customPlugin2 !== void 0 && (_extra$customPlugin2$ = _extra$customPlugin2.custom) !== null && _extra$customPlugin2$ !== void 0 && _extra$customPlugin2$.length) {
100995
+ return [].concat(_toConsumableArray(items5), [{
100996
+ key: "custom",
100997
+ label: i18n.t(localeKeys.solution.custom)
100998
+ }]);
100999
+ }
101000
+ return items5;
101001
+ }
101002
+ }, {
101003
+ key: "scenes",
101004
+ label: function label4() {
101005
+ return i18n.t(localeKeys.scenes.self);
101006
+ },
101007
+ type: ["string"],
101008
+ mutualExclusion: true,
101009
+ when: function when2(data, extra) {
101010
+ return (extra === null || extra === void 0 ? void 0 : extra.customPlugin) && extra.customPlugin[getSolutionNameFromSubSolution(data.solution)] && extra.customPlugin[getSolutionNameFromSubSolution(data.solution)].length > 0;
101011
+ },
101012
+ items: function items4(data, extra) {
101013
+ var solution = getSolutionNameFromSubSolution(data.solution);
101014
+ var items5 = (extra !== null && extra !== void 0 && extra.customPlugin ? (extra === null || extra === void 0 ? void 0 : extra.customPlugin[solution]) || [] : []).map(function(plugin) {
101015
+ return {
101016
+ key: plugin.key,
101017
+ label: plugin.name
101018
+ };
101019
+ });
101020
+ if (data.solution && data.solution !== "custom") {
101021
+ items5.unshift({
101022
+ key: data.solution,
101023
+ label: "".concat(SubSolutionText[data.solution](), "(").concat(i18n.t(localeKeys.solution["default"]), ")")
101024
+ });
101025
+ }
101026
+ return items5;
101027
+ }
101028
+ }]
101029
+ };
101030
+ BaseGenerator = "@modern-js/base-generator";
101031
+ SolutionGenerator = (_SolutionGenerator = {}, _defineProperty(_SolutionGenerator, Solution.MWA, "@modern-js/mwa-generator"), _defineProperty(_SolutionGenerator, Solution.Module, "@modern-js/module-generator"), _defineProperty(_SolutionGenerator, Solution.Monorepo, "@modern-js/monorepo-generator"), _SolutionGenerator);
101032
+ SubSolutionGenerator = (_SubSolutionGenerator = {}, _defineProperty(_SubSolutionGenerator, SubSolution.MWA, "@modern-js/mwa-generator"), _defineProperty(_SubSolutionGenerator, SubSolution.MWATest, "@modern-js/mwa-generator"), _defineProperty(_SubSolutionGenerator, SubSolution.Module, "@modern-js/module-generator"), _defineProperty(_SubSolutionGenerator, SubSolution.InnerModule, "@modern-js/module-generator"), _SubSolutionGenerator);
101033
+ ChangesetGenerator = "@modern-js/changeset-generator";
101034
+ DependenceGenerator = "@modern-js/dependence-generator";
101035
+ EntryGenerator = "@modern-js/entry-generator";
101036
+ ElectronGenerator = "@modern-js/electron-generator";
101037
+ EslintGenerator = "@modern-js/eslint-generator";
101038
+ });
101039
+ var _LanguageName, Language, LanguageName, LanguageSchema;
101040
+ var init_language = __esmMin(() => {
101041
+ init_defineProperty();
101042
+ init_locale();
101043
+ (function(Language2) {
101044
+ Language2["TS"] = "ts";
101045
+ Language2["JS"] = "js";
101046
+ })(Language || (Language = {}));
101047
+ LanguageName = (_LanguageName = {}, _defineProperty(_LanguageName, Language.TS, function() {
101048
+ return "TS";
101049
+ }), _defineProperty(_LanguageName, Language.JS, function() {
101050
+ return "ES6+";
101051
+ }), _LanguageName);
101052
+ LanguageSchema = {
101053
+ key: "language",
101054
+ type: ["string"],
101055
+ label: function label5() {
101056
+ return i18n.t(localeKeys.language.self);
101057
+ },
101058
+ mutualExclusion: true,
101059
+ items: Object.values(Language).map(function(language) {
101060
+ return {
101061
+ key: language,
101062
+ label: LanguageName[language]
101063
+ };
101064
+ })
101065
+ };
101066
+ });
101067
+ var _PackageManagerName, PackageManager, PackageManagerName, PackageManagerSchema;
101068
+ var init_package_manager = __esmMin(() => {
101069
+ init_defineProperty();
101070
+ init_locale();
101071
+ (function(PackageManager2) {
101072
+ PackageManager2["Pnpm"] = "pnpm";
101073
+ PackageManager2["Yarn"] = "yarn";
101074
+ PackageManager2["Npm"] = "npm";
101075
+ })(PackageManager || (PackageManager = {}));
101076
+ PackageManagerName = (_PackageManagerName = {}, _defineProperty(_PackageManagerName, PackageManager.Pnpm, function() {
101077
+ return "pnpm";
101078
+ }), _defineProperty(_PackageManagerName, PackageManager.Yarn, function() {
101079
+ return "Yarn";
101080
+ }), _defineProperty(_PackageManagerName, PackageManager.Npm, function() {
101081
+ return "npm";
101082
+ }), _PackageManagerName);
101083
+ PackageManagerSchema = {
101084
+ key: "packageManager",
101085
+ type: ["string"],
101086
+ label: function label6() {
101087
+ return i18n.t(localeKeys.packageManager.self);
101088
+ },
101089
+ mutualExclusion: true,
101090
+ when: function when3(_values, extra) {
101091
+ return !(extra !== null && extra !== void 0 && extra.isMonorepoSubProject) && !(extra !== null && extra !== void 0 && extra.isSubProject);
101092
+ },
101093
+ items: Object.values(PackageManager).map(function(packageManager) {
101094
+ return {
101095
+ key: packageManager,
101096
+ label: PackageManagerName[packageManager]
101097
+ };
101098
+ })
101099
+ };
101100
+ });
101101
+ var PackageNameSchema;
101102
+ var init_package_name = __esmMin(() => {
101103
+ init_locale();
101104
+ PackageNameSchema = {
101105
+ key: "packageName",
101106
+ label: function label7(_, extra) {
101107
+ return extra !== null && extra !== void 0 && extra.isMonorepoSubProject ? i18n.t(localeKeys.packageName.sub_name) : i18n.t(localeKeys.packageName.self);
101108
+ },
101109
+ type: ["string"],
101110
+ when: function when4(_, extra) {
101111
+ return Boolean(extra === null || extra === void 0 ? void 0 : extra.isMonorepoSubProject) || !(extra !== null && extra !== void 0 && extra.isMwa);
101112
+ },
101113
+ validate: function validate(value) {
101114
+ if (!value) {
101115
+ return {
101116
+ success: false,
101117
+ error: i18n.t(localeKeys.packageName.no_empty)
101118
+ };
101119
+ }
101120
+ return {
101121
+ success: true
101122
+ };
101123
+ }
101124
+ };
101125
+ });
101126
+ var PackagePathRegex, PackagePathSchema;
101127
+ var init_package_path = __esmMin(() => {
101128
+ init_locale();
101129
+ PackagePathRegex = new RegExp("^[a-z0-9]*[-_/]?([a-z0-9]*[-_]?[a-z0-9]*)*[-_/]?[a-z0-9-_]+$");
101130
+ PackagePathSchema = {
101131
+ key: "packagePath",
101132
+ label: function label8() {
101133
+ return i18n.t(localeKeys.packagePath.self);
101134
+ },
101135
+ type: ["string"],
101136
+ when: function when5(_, extra) {
101137
+ return Boolean(extra === null || extra === void 0 ? void 0 : extra.isMonorepoSubProject);
101138
+ },
101139
+ state: {
101140
+ value: {
101141
+ effectedByFields: ["packageName"],
101142
+ action: function action(data) {
101143
+ return "".concat(data.packageName || "");
101144
+ }
101145
+ }
101146
+ },
101147
+ validate: function validate2(value) {
101148
+ if (!value) {
101149
+ return {
101150
+ success: false,
101151
+ error: i18n.t(localeKeys.packagePath.no_empty)
101152
+ };
101153
+ }
101154
+ if (!PackagePathRegex.test(value)) {
101155
+ return {
101156
+ success: false,
101157
+ error: i18n.t(localeKeys.packagePath.format)
101158
+ };
101159
+ }
101160
+ return {
101161
+ success: true
101162
+ };
101163
+ }
101164
+ };
101165
+ });
101166
+ var init_common = __esmMin(() => {
101167
+ init_boolean();
101168
+ init_solution();
101169
+ init_language();
101170
+ init_package_manager();
101171
+ init_package_name();
101172
+ init_package_path();
101173
+ });
101174
+ var BaseSchemas, BaseSchema, BaseDefaultConfig;
101175
+ var init_project = __esmMin(() => {
101176
+ init_common();
101177
+ BaseSchemas = [PackageManagerSchema];
101178
+ BaseSchema = {
101179
+ key: "base",
101180
+ isObject: true,
101181
+ items: BaseSchemas
101182
+ };
101183
+ BaseDefaultConfig = {
101184
+ packageManager: PackageManager.Pnpm
101185
+ };
101186
+ });
101187
+ var init_base = __esmMin(() => {
101188
+ init_project();
101189
+ });
101190
+ var ModuleSchemas, ModuleSchema, ModuleDefaultConfig;
101191
+ var init_project2 = __esmMin(() => {
101192
+ init_common();
101193
+ ModuleSchemas = [PackageNameSchema, PackagePathSchema, LanguageSchema, PackageManagerSchema];
101194
+ ModuleSchema = {
101195
+ key: "module",
101196
+ isObject: true,
101197
+ items: ModuleSchemas
101198
+ };
101199
+ ModuleDefaultConfig = {
101200
+ language: Language.TS,
101201
+ packageManager: PackageManager.Pnpm
101202
+ };
101203
+ });
101204
+ var init_module = __esmMin(() => {
101205
+ init_project2();
101206
+ });
101207
+ var MonorepoPackageManagerSchema, MonorepoSchemas, MonorepoSchema, MonorepoDefaultConfig;
101208
+ var init_project3 = __esmMin(() => {
101209
+ init_objectSpread2();
101210
+ init_common();
101211
+ MonorepoPackageManagerSchema = _objectSpread2(_objectSpread2({}, PackageManagerSchema), {}, {
101212
+ items: PackageManagerSchema.items.filter(function(item) {
101213
+ return item.key !== PackageManager.Npm;
101214
+ })
101215
+ });
101216
+ MonorepoSchemas = [MonorepoPackageManagerSchema];
101217
+ MonorepoSchema = {
101218
+ key: "monorepo",
101219
+ isObject: true,
101220
+ items: MonorepoSchemas
101221
+ };
101222
+ MonorepoDefaultConfig = {
101223
+ packageManager: PackageManager.Pnpm
101224
+ };
101225
+ });
101226
+ var init_monorepo = __esmMin(() => {
101227
+ init_project3();
101228
+ });
101229
+ var _FrameworkAppendTypeC, mwaConfigWhenFunc, RunWay, RunWaySchema, ClientRoute, ClientRouteSchema, NeedModifyMWAConfigSchema, Framework, FrameworkSchema, FrameworkAppendTypeContent;
101230
+ var init_common2 = __esmMin(() => {
101231
+ init_defineProperty();
101232
+ init_locale();
101233
+ init_boolean();
101234
+ mwaConfigWhenFunc = function mwaConfigWhenFunc2(values) {
101235
+ return values.needModifyMWAConfig === BooleanConfig.YES;
101236
+ };
101237
+ (function(RunWay2) {
101238
+ RunWay2["No"] = "no";
101239
+ RunWay2["Electron"] = "electron";
101240
+ })(RunWay || (RunWay = {}));
101241
+ RunWaySchema = {
101242
+ key: "runWay",
101243
+ type: ["string"],
101244
+ label: function label9() {
101245
+ return i18n.t(localeKeys.runWay.self);
101246
+ },
101247
+ mutualExclusion: true,
101248
+ when: function when6(_, extra) {
101249
+ return (extra === null || extra === void 0 ? void 0 : extra.isEmptySrc) === void 0 ? true : Boolean(extra === null || extra === void 0 ? void 0 : extra.isEmptySrc);
101250
+ },
101251
+ state: {
101252
+ value: RunWay.No
101253
+ },
101254
+ items: Object.values(RunWay).map(function(runWay) {
101255
+ return {
101256
+ key: runWay,
101257
+ label: function label21() {
101258
+ return i18n.t(localeKeys.runWay[runWay]);
101259
+ }
101260
+ };
101261
+ })
101262
+ };
101263
+ (function(ClientRoute2) {
101264
+ ClientRoute2["SelfControlRoute"] = "selfControlRoute";
101265
+ ClientRoute2["ConventionalRoute"] = "conventionalRoute";
101266
+ })(ClientRoute || (ClientRoute = {}));
101267
+ ClientRouteSchema = {
101268
+ key: "clientRoute",
101269
+ type: ["string"],
101270
+ label: function label10() {
101271
+ return i18n.t(localeKeys.entry.clientRoute.self);
101272
+ },
101273
+ mutualExclusion: true,
101274
+ when: mwaConfigWhenFunc,
101275
+ state: {
101276
+ value: ClientRoute.SelfControlRoute
101277
+ },
101278
+ items: Object.values(ClientRoute).map(function(clientRoute) {
101279
+ return {
101280
+ key: clientRoute,
101281
+ label: function label21() {
101282
+ return i18n.t(localeKeys.entry.clientRoute[clientRoute]);
101283
+ }
101284
+ };
101285
+ })
101286
+ };
101287
+ NeedModifyMWAConfigSchema = {
101288
+ key: "needModifyMWAConfig",
101289
+ label: function label11() {
101290
+ return i18n.t(localeKeys.entry.needModifyConfig);
101291
+ },
101292
+ type: ["string"],
101293
+ mutualExclusion: true,
101294
+ state: {
101295
+ value: BooleanConfig.NO
101296
+ },
101297
+ items: BooleanSchemas
101298
+ };
101299
+ (function(Framework2) {
101300
+ Framework2["Express"] = "express";
101301
+ Framework2["Koa"] = "koa";
101302
+ Framework2["Egg"] = "egg";
101303
+ Framework2["Nest"] = "nest";
101304
+ })(Framework || (Framework = {}));
101305
+ FrameworkSchema = {
101306
+ key: "framework",
101307
+ type: ["string"],
101308
+ label: function label12() {
101309
+ return i18n.t(localeKeys.framework.self);
101310
+ },
101311
+ mutualExclusion: true,
101312
+ items: Object.values(Framework).map(function(framework) {
101313
+ return {
101314
+ key: framework,
101315
+ label: function label21() {
101316
+ return i18n.t(localeKeys.framework[framework]);
101317
+ }
101318
+ };
101319
+ })
101320
+ };
101321
+ FrameworkAppendTypeContent = (_FrameworkAppendTypeC = {}, _defineProperty(_FrameworkAppendTypeC, Framework.Express, "/// <reference types='@modern-js/plugin-express/types' />"), _defineProperty(_FrameworkAppendTypeC, Framework.Koa, "/// <reference types='@modern-js/plugin-koa/types' />"), _defineProperty(_FrameworkAppendTypeC, Framework.Egg, "/// <reference types='@modern-js/plugin-egg/types' />"), _defineProperty(_FrameworkAppendTypeC, Framework.Nest, "/// <reference types='@modern-js/plugin-nest/types' />"), _FrameworkAppendTypeC);
101322
+ });
101323
+ var EntryNameSchema, EntrySchemas, EntrySchema, MWADefaultEntryConfig;
101324
+ var init_entry = __esmMin(() => {
101325
+ init_locale();
101326
+ init_common();
101327
+ init_common2();
101328
+ EntryNameSchema = {
101329
+ key: "name",
101330
+ type: ["string"],
101331
+ label: function label13() {
101332
+ return i18n.t(localeKeys.entry.name);
101333
+ },
101334
+ state: {
101335
+ value: "entry"
101336
+ },
101337
+ validate: function validate3(value) {
101338
+ if (!value) {
101339
+ return {
101340
+ success: false,
101341
+ error: i18n.t(localeKeys.entry.no_empty)
101342
+ };
101343
+ }
101344
+ if (value === "pages") {
101345
+ return {
101346
+ success: false,
101347
+ error: i18n.t(localeKeys.entry.no_pages)
101348
+ };
101349
+ }
101350
+ return {
101351
+ success: true
101352
+ };
101353
+ },
101354
+ when: function when7(_values, extra) {
101355
+ if (extra !== null && extra !== void 0 && extra.isEmptySrc) {
101356
+ return false;
101357
+ }
101358
+ return true;
101359
+ }
101360
+ };
101361
+ EntrySchemas = [EntryNameSchema, NeedModifyMWAConfigSchema, ClientRouteSchema];
101362
+ EntrySchema = {
101363
+ key: "entry",
101364
+ label: function label14() {
101365
+ return i18n.t(localeKeys.action.element.entry);
101366
+ },
101367
+ isObject: true,
101368
+ items: EntrySchemas
101369
+ };
101370
+ MWADefaultEntryConfig = {
101371
+ needModifyMWAConfig: BooleanConfig.NO,
101372
+ clientRoute: ClientRoute.SelfControlRoute
101373
+ };
101374
+ });
101375
+ var BFFType, BFFTypeSchema, BFFSchemas, BFFSchema, MWADefaultBffConfig;
101376
+ var init_bff = __esmMin(() => {
101377
+ init_locale();
101378
+ init_common2();
101379
+ (function(BFFType2) {
101380
+ BFFType2["Func"] = "func";
101381
+ BFFType2["Framework"] = "framework";
101382
+ })(BFFType || (BFFType = {}));
101383
+ BFFTypeSchema = {
101384
+ key: "bffType",
101385
+ type: ["string"],
101386
+ label: function label15() {
101387
+ return i18n.t(localeKeys.bff.bffType.self);
101388
+ },
101389
+ mutualExclusion: true,
101390
+ items: Object.values(BFFType).map(function(bffType) {
101391
+ return {
101392
+ key: bffType,
101393
+ label: function label21() {
101394
+ return i18n.t(localeKeys.bff.bffType[bffType]);
101395
+ }
101396
+ };
101397
+ })
101398
+ };
101399
+ BFFSchemas = [BFFTypeSchema, FrameworkSchema];
101400
+ BFFSchema = {
101401
+ key: "bff",
101402
+ label: function label16() {
101403
+ return i18n.t(localeKeys.action["function"].bff);
101404
+ },
101405
+ isObject: true,
101406
+ items: BFFSchemas
101407
+ };
101408
+ MWADefaultBffConfig = {
101409
+ bffType: BFFType.Func,
101410
+ frameWork: Framework.Express
101411
+ };
101412
+ });
101413
+ var MWASchemas, MWASchema, MWADefaultConfig;
101414
+ var init_project4 = __esmMin(() => {
101415
+ init_common();
101416
+ init_common2();
101417
+ MWASchemas = [PackageNameSchema, PackagePathSchema, LanguageSchema, PackageManagerSchema, RunWaySchema, NeedModifyMWAConfigSchema, ClientRouteSchema];
101418
+ MWASchema = {
101419
+ key: "mwa",
101420
+ isObject: true,
101421
+ items: MWASchemas
101422
+ };
101423
+ MWADefaultConfig = {
101424
+ language: Language.TS,
101425
+ packageManager: PackageManager.Pnpm,
101426
+ runWay: RunWay.No,
101427
+ needModifyMWAConfig: BooleanConfig.NO,
101428
+ clientRoute: ClientRoute.SelfControlRoute
101429
+ };
101430
+ });
101431
+ var ServerSchemas, ServerSchema, MWADefaultServerConfig;
101432
+ var init_server = __esmMin(() => {
101433
+ init_locale();
101434
+ init_common2();
101435
+ ServerSchemas = [FrameworkSchema];
101436
+ ServerSchema = {
101437
+ key: "server",
101438
+ label: function label17() {
101439
+ return i18n.t(localeKeys.action.element.server);
101440
+ },
101441
+ isObject: true,
101442
+ items: ServerSchemas
101443
+ };
101444
+ MWADefaultServerConfig = {
101445
+ framework: Framework.Express
101446
+ };
101447
+ });
101448
+ var init_mwa = __esmMin(() => {
101449
+ init_common2();
101450
+ init_entry();
101451
+ init_bff();
101452
+ init_project4();
101453
+ init_server();
101454
+ });
101455
+ var _ActionTypeText, _ActionElementText, _ActionFunctionText, _ActionTypeTextMap, ActionType, ActionElement, ActionFunction, ActionRefactor, ActionTypeText, ActionElementText, ActionFunctionText, ActionRefactorText, ActionTypeTextMap;
101456
+ var init_common3 = __esmMin(() => {
101457
+ init_defineProperty();
101458
+ init_locale();
101459
+ (function(ActionType2) {
101460
+ ActionType2["Function"] = "function";
101461
+ ActionType2["Element"] = "element";
101462
+ ActionType2["Refactor"] = "refactor";
101463
+ })(ActionType || (ActionType = {}));
101464
+ (function(ActionElement2) {
101465
+ ActionElement2["Entry"] = "entry";
101466
+ ActionElement2["Server"] = "server";
101467
+ })(ActionElement || (ActionElement = {}));
101468
+ (function(ActionFunction2) {
101469
+ ActionFunction2["TailwindCSS"] = "tailwindcss";
101470
+ ActionFunction2["Less"] = "less";
101471
+ ActionFunction2["Sass"] = "sass";
101472
+ ActionFunction2["BFF"] = "bff";
101473
+ ActionFunction2["MicroFrontend"] = "micro_frontend";
101474
+ ActionFunction2["Electron"] = "electron";
101475
+ ActionFunction2["I18n"] = "i18n";
101476
+ ActionFunction2["Test"] = "test";
101477
+ ActionFunction2["E2ETest"] = "e2e_test";
101478
+ ActionFunction2["Doc"] = "doc";
101479
+ ActionFunction2["Storybook"] = "storybook";
101480
+ ActionFunction2["RuntimeApi"] = "runtimeApi";
101481
+ ActionFunction2["SSG"] = "ssg";
101482
+ ActionFunction2["Polyfill"] = "polyfill";
101483
+ ActionFunction2["Proxy"] = "proxy";
101484
+ })(ActionFunction || (ActionFunction = {}));
101485
+ (function(ActionRefactor2) {
101486
+ ActionRefactor2["BFFToApp"] = "bff_to_app";
101487
+ })(ActionRefactor || (ActionRefactor = {}));
101488
+ ActionTypeText = (_ActionTypeText = {}, _defineProperty(_ActionTypeText, ActionType.Function, function() {
101489
+ return i18n.t(localeKeys.action["function"].self);
101490
+ }), _defineProperty(_ActionTypeText, ActionType.Element, function() {
101491
+ return i18n.t(localeKeys.action.element.self);
101492
+ }), _defineProperty(_ActionTypeText, ActionType.Refactor, function() {
101493
+ return i18n.t(localeKeys.action.refactor.self);
101494
+ }), _ActionTypeText);
101495
+ ActionElementText = (_ActionElementText = {}, _defineProperty(_ActionElementText, ActionElement.Entry, function() {
101496
+ return i18n.t(localeKeys.action.element.entry);
101497
+ }), _defineProperty(_ActionElementText, ActionElement.Server, function() {
101498
+ return i18n.t(localeKeys.action.element.server);
101499
+ }), _ActionElementText);
101500
+ ActionFunctionText = (_ActionFunctionText = {}, _defineProperty(_ActionFunctionText, ActionFunction.TailwindCSS, function() {
101501
+ return i18n.t(localeKeys.action["function"].tailwindcss);
101502
+ }), _defineProperty(_ActionFunctionText, ActionFunction.Less, function() {
101503
+ return i18n.t(localeKeys.action["function"].less);
101504
+ }), _defineProperty(_ActionFunctionText, ActionFunction.Sass, function() {
101505
+ return i18n.t(localeKeys.action["function"].sass);
101506
+ }), _defineProperty(_ActionFunctionText, ActionFunction.BFF, function() {
101507
+ return i18n.t(localeKeys.action["function"].bff);
101508
+ }), _defineProperty(_ActionFunctionText, ActionFunction.MicroFrontend, function() {
101509
+ return i18n.t(localeKeys.action["function"].micro_frontend);
101510
+ }), _defineProperty(_ActionFunctionText, ActionFunction.Electron, function() {
101511
+ return i18n.t(localeKeys.action["function"].electron);
101512
+ }), _defineProperty(_ActionFunctionText, ActionFunction.I18n, function() {
101513
+ return i18n.t(localeKeys.action["function"].i18n);
101514
+ }), _defineProperty(_ActionFunctionText, ActionFunction.Test, function() {
101515
+ return i18n.t(localeKeys.action["function"].test);
101516
+ }), _defineProperty(_ActionFunctionText, ActionFunction.E2ETest, function() {
101517
+ return i18n.t(localeKeys.action["function"].e2e_test);
101518
+ }), _defineProperty(_ActionFunctionText, ActionFunction.Doc, function() {
101519
+ return i18n.t(localeKeys.action["function"].doc);
101520
+ }), _defineProperty(_ActionFunctionText, ActionFunction.Storybook, function() {
101521
+ return i18n.t(localeKeys.action["function"].storybook);
101522
+ }), _defineProperty(_ActionFunctionText, ActionFunction.RuntimeApi, function() {
101523
+ return i18n.t(localeKeys.action["function"].runtime_api);
101524
+ }), _defineProperty(_ActionFunctionText, ActionFunction.SSG, function() {
101525
+ return i18n.t(localeKeys.action["function"].ssg);
101526
+ }), _defineProperty(_ActionFunctionText, ActionFunction.Polyfill, function() {
101527
+ return i18n.t(localeKeys.action["function"].polyfill);
101528
+ }), _defineProperty(_ActionFunctionText, ActionFunction.Proxy, function() {
101529
+ return i18n.t(localeKeys.action["function"].proxy);
101530
+ }), _ActionFunctionText);
101531
+ ActionRefactorText = _defineProperty({}, ActionRefactor.BFFToApp, function() {
101532
+ return i18n.t(localeKeys.action.refactor.bff_to_app);
101533
+ });
101534
+ ActionTypeTextMap = (_ActionTypeTextMap = {}, _defineProperty(_ActionTypeTextMap, ActionType.Element, ActionElementText), _defineProperty(_ActionTypeTextMap, ActionType.Function, ActionFunctionText), _defineProperty(_ActionTypeTextMap, ActionType.Refactor, ActionRefactorText), _ActionTypeTextMap);
101535
+ });
101536
+ var _MWAActionTypesMap, _MWAActionFunctionsDe, _MWAActionFunctionsDe2, _ActionType$Element, _ActionType$Function, _MWANewActionGenerato, MWAActionTypes, MWAActionFunctions, MWAActionElements, MWAActionReactors, MWAActionTypesMap, MWASpecialSchemaMap, MWANewActionSchema, MWAActionFunctionsDevDependencies, MWAActionFunctionsDependencies, MWAActionFunctionsAppendTypeContent, MWANewActionGenerators;
101537
+ var init_mwa2 = __esmMin(() => {
101538
+ init_defineProperty();
101539
+ init_common3();
101540
+ init_locale();
101541
+ MWAActionTypes = [
101542
+ ActionType.Element,
101543
+ ActionType.Function
101544
+ ];
101545
+ MWAActionFunctions = [
101546
+ ActionFunction.TailwindCSS,
101547
+ ActionFunction.Less,
101548
+ ActionFunction.Sass,
101549
+ ActionFunction.BFF,
101550
+ ActionFunction.SSG,
101551
+ ActionFunction.MicroFrontend,
101552
+ ActionFunction.Electron,
101553
+ ActionFunction.Test,
101554
+ ActionFunction.Storybook,
101555
+ ActionFunction.Polyfill,
101556
+ ActionFunction.Proxy
101557
+ ];
101558
+ MWAActionElements = [ActionElement.Entry, ActionElement.Server];
101559
+ MWAActionReactors = [ActionRefactor.BFFToApp];
101560
+ MWAActionTypesMap = (_MWAActionTypesMap = {}, _defineProperty(_MWAActionTypesMap, ActionType.Element, MWAActionElements), _defineProperty(_MWAActionTypesMap, ActionType.Function, MWAActionFunctions), _defineProperty(_MWAActionTypesMap, ActionType.Refactor, MWAActionReactors), _MWAActionTypesMap);
101561
+ MWASpecialSchemaMap = _defineProperty({}, ActionFunction.Storybook, {
101562
+ key: ActionFunction.Storybook,
101563
+ label: function label18() {
101564
+ return i18n.t(localeKeys.action["function"].mwa_storybook);
101565
+ }
101566
+ });
101567
+ MWANewActionSchema = {
101568
+ key: "mwa_new_action",
101569
+ isObject: true,
101570
+ items: [{
101571
+ key: "actionType",
101572
+ label: function label19() {
101573
+ return i18n.t(localeKeys.action.self);
101574
+ },
101575
+ type: ["string"],
101576
+ mutualExclusion: true,
101577
+ items: MWAActionTypes.map(function(type) {
101578
+ return {
101579
+ key: type,
101580
+ label: ActionTypeText[type],
101581
+ type: ["string"],
101582
+ mutualExclusion: true,
101583
+ items: MWAActionTypesMap[type].map(function(item) {
101584
+ return MWASpecialSchemaMap[item] || {
101585
+ key: item,
101586
+ label: ActionTypeTextMap[type][item]
101587
+ };
101588
+ })
101589
+ };
101590
+ })
101591
+ }]
101592
+ };
101593
+ MWAActionFunctionsDevDependencies = (_MWAActionFunctionsDe = {}, _defineProperty(_MWAActionFunctionsDe, ActionFunction.Less, "@modern-js/plugin-less"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Sass, "@modern-js/plugin-sass"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.SSG, "@modern-js/plugin-ssg"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Test, "@modern-js/plugin-testing"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.E2ETest, "@modern-js/plugin-e2e"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Electron, "@modern-js/plugin-electron"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Storybook, "@modern-js/plugin-storybook"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Proxy, "@modern-js/plugin-proxy"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.TailwindCSS, "tailwindcss"), _MWAActionFunctionsDe);
101594
+ MWAActionFunctionsDependencies = (_MWAActionFunctionsDe2 = {}, _defineProperty(_MWAActionFunctionsDe2, ActionFunction.BFF, "@modern-js/plugin-bff"), _defineProperty(_MWAActionFunctionsDe2, ActionFunction.MicroFrontend, "@modern-js/plugin-garfish"), _defineProperty(_MWAActionFunctionsDe2, ActionFunction.I18n, "@modern-js/plugin-i18n"), _defineProperty(_MWAActionFunctionsDe2, ActionFunction.TailwindCSS, "@modern-js/plugin-tailwindcss"), _defineProperty(_MWAActionFunctionsDe2, ActionFunction.Polyfill, "@modern-js/plugin-polyfill"), _MWAActionFunctionsDe2);
101595
+ MWAActionFunctionsAppendTypeContent = _defineProperty({}, ActionFunction.MicroFrontend, "/// <reference types='@modern-js/plugin-garfish/types' />");
101596
+ MWANewActionGenerators = (_MWANewActionGenerato = {}, _defineProperty(_MWANewActionGenerato, ActionType.Element, (_ActionType$Element = {}, _defineProperty(_ActionType$Element, ActionElement.Entry, "@modern-js/entry-generator"), _defineProperty(_ActionType$Element, ActionElement.Server, "@modern-js/server-generator"), _ActionType$Element)), _defineProperty(_MWANewActionGenerato, ActionType.Function, (_ActionType$Function = {}, _defineProperty(_ActionType$Function, ActionFunction.TailwindCSS, "@modern-js/tailwindcss-generator"), _defineProperty(_ActionType$Function, ActionFunction.Less, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Sass, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.BFF, "@modern-js/bff-generator"), _defineProperty(_ActionType$Function, ActionFunction.MicroFrontend, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Electron, "@modern-js/electron-generator"), _defineProperty(_ActionType$Function, ActionFunction.I18n, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Test, "@modern-js/test-generator"), _defineProperty(_ActionType$Function, ActionFunction.E2ETest, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Doc, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Storybook, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.SSG, "@modern-js/ssg-generator"), _defineProperty(_ActionType$Function, ActionFunction.Polyfill, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Proxy, "@modern-js/dependence-generator"), _ActionType$Function)), _defineProperty(_MWANewActionGenerato, ActionType.Refactor, _defineProperty({}, ActionRefactor.BFFToApp, "@modern-js/bff-refactor-generator")), _MWANewActionGenerato);
101597
+ });
101598
+ var _ModuleActionFunction, _ModuleActionFunction2, _ModuleActionFunction3, _ActionType$Function2, ModuleActionTypes, ModuleActionFunctions, ModuleActionTypesMap, ModuleSpecialSchemaMap, ModuleNewActionSchema, ModuleActionFunctionsDevDependencies, ModuleActionFunctionsPeerDependencies, ModuleActionFunctionsDependencies, ModuleNewActionGenerators;
101599
+ var init_module2 = __esmMin(() => {
101600
+ init_defineProperty();
101601
+ init_common3();
101602
+ init_locale();
101603
+ ModuleActionTypes = [ActionType.Function];
101604
+ ModuleActionFunctions = [
101605
+ ActionFunction.TailwindCSS,
101606
+ ActionFunction.Less,
101607
+ ActionFunction.Sass,
101608
+ ActionFunction.Storybook,
101609
+ ActionFunction.RuntimeApi
101610
+ ];
101611
+ ModuleActionTypesMap = _defineProperty({}, ActionType.Function, ModuleActionFunctions);
101612
+ ModuleSpecialSchemaMap = {};
101613
+ ModuleNewActionSchema = {
101614
+ key: "Module_new_action",
101615
+ isObject: true,
101616
+ items: [{
101617
+ key: "actionType",
101618
+ label: function label20() {
101619
+ return i18n.t(localeKeys.action.self);
101620
+ },
101621
+ type: ["string"],
101622
+ mutualExclusion: true,
101623
+ items: ModuleActionTypes.map(function(type) {
101624
+ return {
101625
+ key: type,
101626
+ label: ActionTypeText[type],
101627
+ type: ["string"],
101628
+ mutualExclusion: true,
101629
+ items: ModuleActionFunctions.map(function(func) {
101630
+ return ModuleSpecialSchemaMap[func] || {
101631
+ key: func,
101632
+ label: ActionFunctionText[func]
101633
+ };
101634
+ })
101635
+ };
101636
+ })
101637
+ }]
101638
+ };
101639
+ ModuleActionFunctionsDevDependencies = (_ModuleActionFunction = {}, _defineProperty(_ModuleActionFunction, ActionFunction.Less, "@modern-js/plugin-less"), _defineProperty(_ModuleActionFunction, ActionFunction.Sass, "@modern-js/plugin-sass"), _defineProperty(_ModuleActionFunction, ActionFunction.Storybook, "@modern-js/plugin-storybook"), _defineProperty(_ModuleActionFunction, ActionFunction.RuntimeApi, "@modern-js/runtime"), _defineProperty(_ModuleActionFunction, ActionFunction.TailwindCSS, "tailwindcss"), _ModuleActionFunction);
101640
+ ModuleActionFunctionsPeerDependencies = (_ModuleActionFunction2 = {}, _defineProperty(_ModuleActionFunction2, ActionFunction.RuntimeApi, "@modern-js/runtime"), _defineProperty(_ModuleActionFunction2, ActionFunction.TailwindCSS, "tailwindcss"), _ModuleActionFunction2);
101641
+ ModuleActionFunctionsDependencies = (_ModuleActionFunction3 = {}, _defineProperty(_ModuleActionFunction3, ActionFunction.I18n, "@modern-js/plugin-i18n"), _defineProperty(_ModuleActionFunction3, ActionFunction.TailwindCSS, "@modern-js/plugin-tailwindcss"), _ModuleActionFunction3);
101642
+ ModuleNewActionGenerators = _defineProperty({}, ActionType.Function, (_ActionType$Function2 = {}, _defineProperty(_ActionType$Function2, ActionFunction.TailwindCSS, "@modern-js/tailwindcss-generator"), _defineProperty(_ActionType$Function2, ActionFunction.Less, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function2, ActionFunction.Sass, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function2, ActionFunction.I18n, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function2, ActionFunction.Test, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function2, ActionFunction.Doc, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function2, ActionFunction.Storybook, "@modern-js/storybook-generator"), _defineProperty(_ActionType$Function2, ActionFunction.RuntimeApi, "@modern-js/dependence-generator"), _ActionType$Function2));
101643
+ });
101644
+ var _MonorepoNewActionCon, MonorepoNewActionSchema, MonorepoNewActionConfig;
101645
+ var init_monorepo2 = __esmMin(() => {
101646
+ init_defineProperty();
101647
+ init_common();
101648
+ MonorepoNewActionSchema = {
101649
+ key: "monorepo_new_action",
101650
+ isObject: true,
101651
+ items: [SubSolutionSchema]
101652
+ };
101653
+ MonorepoNewActionConfig = (_MonorepoNewActionCon = {}, _defineProperty(_MonorepoNewActionCon, SubSolution.MWA, {
101654
+ isMonorepoSubProject: true,
101655
+ isTest: false
101656
+ }), _defineProperty(_MonorepoNewActionCon, SubSolution.MWATest, {
101657
+ isMonorepoSubProject: true,
101658
+ isTest: true
101659
+ }), _defineProperty(_MonorepoNewActionCon, SubSolution.Module, {
101660
+ isMonorepoSubProject: true,
101661
+ isPublic: true
101662
+ }), _defineProperty(_MonorepoNewActionCon, SubSolution.InnerModule, {
101663
+ isMonorepoSubProject: true,
101664
+ isPublic: false
101665
+ }), _MonorepoNewActionCon);
101666
+ });
101667
+ var init_newAction = __esmMin(() => {
101668
+ init_common3();
101669
+ init_mwa2();
101670
+ init_module2();
101671
+ init_monorepo2();
101672
+ });
101673
+ var GeneratorSchemas, GeneratorSchema, GeneratorDefaultConfig;
101674
+ var init_generator = __esmMin(() => {
101675
+ init_common();
101676
+ GeneratorSchemas = [PackageNameSchema, PackagePathSchema, PackageManagerSchema, LanguageSchema];
101677
+ GeneratorSchema = {
101678
+ key: "generator-generator",
101679
+ isObject: true,
101680
+ items: Object.values(GeneratorSchemas)
101681
+ };
101682
+ GeneratorDefaultConfig = {
101683
+ packageManager: PackageManager.Pnpm,
101684
+ language: Language.TS
101685
+ };
101686
+ });
101687
+ var init_expand = __esmMin(() => {
101688
+ init_generator();
101689
+ });
101690
+ var treeshaking_exports4 = {};
101691
+ __export2(treeshaking_exports4, {
101692
+ ActionElement: () => ActionElement,
101693
+ ActionElementText: () => ActionElementText,
101694
+ ActionFunction: () => ActionFunction,
101695
+ ActionFunctionText: () => ActionFunctionText,
101696
+ ActionRefactor: () => ActionRefactor,
101697
+ ActionRefactorText: () => ActionRefactorText,
101698
+ ActionType: () => ActionType,
101699
+ ActionTypeText: () => ActionTypeText,
101700
+ ActionTypeTextMap: () => ActionTypeTextMap,
101701
+ BFFSchema: () => BFFSchema,
101702
+ BFFSchemas: () => BFFSchemas,
101703
+ BFFType: () => BFFType,
101704
+ BFFTypeSchema: () => BFFTypeSchema,
101705
+ BaseDefaultConfig: () => BaseDefaultConfig,
101706
+ BaseGenerator: () => BaseGenerator,
101707
+ BaseSchema: () => BaseSchema,
101708
+ BaseSchemas: () => BaseSchemas,
101709
+ BooleanConfig: () => BooleanConfig,
101710
+ BooleanConfigName: () => BooleanConfigName,
101711
+ BooleanSchemas: () => BooleanSchemas,
101712
+ ChangesetGenerator: () => ChangesetGenerator,
101713
+ ClientRoute: () => ClientRoute,
101714
+ ClientRouteSchema: () => ClientRouteSchema,
101715
+ DependenceGenerator: () => DependenceGenerator,
101716
+ ElectronGenerator: () => ElectronGenerator,
101717
+ EntryGenerator: () => EntryGenerator,
101718
+ EntrySchema: () => EntrySchema,
101719
+ EntrySchemas: () => EntrySchemas,
101720
+ EslintGenerator: () => EslintGenerator,
101721
+ Framework: () => Framework,
101722
+ FrameworkAppendTypeContent: () => FrameworkAppendTypeContent,
101723
+ FrameworkSchema: () => FrameworkSchema,
101724
+ GeneratorDefaultConfig: () => GeneratorDefaultConfig,
101725
+ GeneratorSchema: () => GeneratorSchema,
101726
+ Language: () => Language,
101727
+ LanguageName: () => LanguageName,
101728
+ LanguageSchema: () => LanguageSchema,
101729
+ MWAActionElements: () => MWAActionElements,
101730
+ MWAActionFunctions: () => MWAActionFunctions,
101731
+ MWAActionFunctionsAppendTypeContent: () => MWAActionFunctionsAppendTypeContent,
101732
+ MWAActionFunctionsDependencies: () => MWAActionFunctionsDependencies,
101733
+ MWAActionFunctionsDevDependencies: () => MWAActionFunctionsDevDependencies,
101734
+ MWAActionReactors: () => MWAActionReactors,
101735
+ MWAActionTypes: () => MWAActionTypes,
101736
+ MWAActionTypesMap: () => MWAActionTypesMap,
101737
+ MWADefaultBffConfig: () => MWADefaultBffConfig,
101738
+ MWADefaultConfig: () => MWADefaultConfig,
101739
+ MWADefaultEntryConfig: () => MWADefaultEntryConfig,
101740
+ MWADefaultServerConfig: () => MWADefaultServerConfig,
101741
+ MWANewActionGenerators: () => MWANewActionGenerators,
101742
+ MWANewActionSchema: () => MWANewActionSchema,
101743
+ MWASchema: () => MWASchema,
101744
+ MWASchemas: () => MWASchemas,
101745
+ MWASpecialSchemaMap: () => MWASpecialSchemaMap,
101746
+ ModuleActionFunctions: () => ModuleActionFunctions,
101747
+ ModuleActionFunctionsDependencies: () => ModuleActionFunctionsDependencies,
101748
+ ModuleActionFunctionsDevDependencies: () => ModuleActionFunctionsDevDependencies,
101749
+ ModuleActionFunctionsPeerDependencies: () => ModuleActionFunctionsPeerDependencies,
101750
+ ModuleActionTypes: () => ModuleActionTypes,
101751
+ ModuleActionTypesMap: () => ModuleActionTypesMap,
101752
+ ModuleDefaultConfig: () => ModuleDefaultConfig,
101753
+ ModuleNewActionGenerators: () => ModuleNewActionGenerators,
101754
+ ModuleNewActionSchema: () => ModuleNewActionSchema,
101755
+ ModuleSchema: () => ModuleSchema,
101756
+ ModuleSchemas: () => ModuleSchemas,
101757
+ ModuleSpecialSchemaMap: () => ModuleSpecialSchemaMap,
101758
+ MonorepoDefaultConfig: () => MonorepoDefaultConfig,
101759
+ MonorepoNewActionConfig: () => MonorepoNewActionConfig,
101760
+ MonorepoNewActionSchema: () => MonorepoNewActionSchema,
101761
+ MonorepoSchema: () => MonorepoSchema,
101762
+ MonorepoSchemas: () => MonorepoSchemas,
101763
+ NeedModifyMWAConfigSchema: () => NeedModifyMWAConfigSchema,
101764
+ PackageManager: () => PackageManager,
101765
+ PackageManagerName: () => PackageManagerName,
101766
+ PackageManagerSchema: () => PackageManagerSchema,
101767
+ PackageNameSchema: () => PackageNameSchema,
101768
+ PackagePathSchema: () => PackagePathSchema,
101769
+ RunWay: () => RunWay,
101770
+ RunWaySchema: () => RunWaySchema,
101771
+ ServerSchema: () => ServerSchema,
101772
+ ServerSchemas: () => ServerSchemas,
101773
+ Solution: () => Solution,
101774
+ SolutionDefaultConfig: () => SolutionDefaultConfig,
101775
+ SolutionGenerator: () => SolutionGenerator,
101776
+ SolutionSchema: () => SolutionSchema,
101777
+ SolutionSchemas: () => SolutionSchemas,
101778
+ SolutionText: () => SolutionText,
101779
+ SolutionToolsMap: () => SolutionToolsMap,
101780
+ SubSolution: () => SubSolution,
101781
+ SubSolutionGenerator: () => SubSolutionGenerator,
101782
+ SubSolutionSchema: () => SubSolutionSchema,
101783
+ SubSolutionText: () => SubSolutionText,
101784
+ getSolutionNameFromSubSolution: () => getSolutionNameFromSubSolution,
101785
+ i18n: () => i18n,
101786
+ localeKeys: () => localeKeys,
101787
+ mwaConfigWhenFunc: () => mwaConfigWhenFunc
101788
+ });
101789
+ var _SolutionDefaultConfi, _SolutionSchemas, SolutionDefaultConfig, SolutionSchemas;
101790
+ var init_treeshaking4 = __esmMin(() => {
101791
+ init_defineProperty();
101792
+ init_base();
101793
+ init_common();
101794
+ init_module();
101795
+ init_monorepo();
101796
+ init_mwa();
101797
+ init_locale();
101798
+ init_common();
101799
+ init_newAction();
101800
+ init_mwa();
101801
+ init_module();
101802
+ init_monorepo();
101803
+ init_expand();
101804
+ init_base();
101805
+ SolutionDefaultConfig = (_SolutionDefaultConfi = {}, _defineProperty(_SolutionDefaultConfi, Solution.MWA, MWADefaultConfig), _defineProperty(_SolutionDefaultConfi, Solution.Module, ModuleDefaultConfig), _defineProperty(_SolutionDefaultConfi, Solution.Monorepo, MonorepoDefaultConfig), _SolutionDefaultConfi);
101806
+ SolutionSchemas = (_SolutionSchemas = {}, _defineProperty(_SolutionSchemas, Solution.MWA, MWASchemas), _defineProperty(_SolutionSchemas, Solution.Module, ModuleSchemas), _defineProperty(_SolutionSchemas, Solution.Monorepo, MonorepoSchemas), _defineProperty(_SolutionSchemas, "custom", BaseSchemas), _SolutionSchemas);
101807
+ });
100630
101808
  var require_import_lazy2 = __commonJSMin((exports, module2) => {
100631
101809
  (() => {
100632
101810
  "use strict";
@@ -105954,7 +107132,7 @@ var require_ora3 = __commonJSMin((exports, module2) => {
105954
107132
  if (typeof Symbol === "function") {
105955
107133
  Readable.prototype[Symbol.asyncIterator] = function() {
105956
107134
  if (S === void 0) {
105957
- S = r2(243);
107135
+ S = r2(87);
105958
107136
  }
105959
107137
  return S(this);
105960
107138
  };
@@ -106579,7 +107757,7 @@ var require_ora3 = __commonJSMin((exports, module2) => {
106579
107757
  Writable.prototype._destroy = function(e3, t3) {
106580
107758
  t3(e3);
106581
107759
  };
106582
- }, 243: (e2, t2, r2) => {
107760
+ }, 87: (e2, t2, r2) => {
106583
107761
  "use strict";
106584
107762
  var i;
106585
107763
  function _defineProperty2(e3, t3, r3) {
@@ -107335,7 +108513,7 @@ var require_ora3 = __commonJSMin((exports, module2) => {
107335
108513
  }, 598: (e2, t2, r2) => {
107336
108514
  "use strict";
107337
108515
  const i = r2(591);
107338
- const n = r2(160);
108516
+ const n = r2(580);
107339
108517
  e2.exports = i(() => {
107340
108518
  n(() => {
107341
108519
  process.stderr.write("\x1B[?25h");
@@ -107394,17 +108572,19 @@ var require_ora3 = __commonJSMin((exports, module2) => {
107394
108572
  }
107395
108573
  return i.SlowBuffer(e3);
107396
108574
  };
107397
- }, 160: (e2, t2, r2) => {
108575
+ }, 580: (e2, t2, r2) => {
107398
108576
  var i = global.process;
107399
108577
  const processOk = function(e3) {
107400
108578
  return e3 && typeof e3 === "object" && typeof e3.removeListener === "function" && typeof e3.emit === "function" && typeof e3.reallyExit === "function" && typeof e3.listeners === "function" && typeof e3.kill === "function" && typeof e3.pid === "number" && typeof e3.on === "function";
107401
108579
  };
107402
108580
  if (!processOk(i)) {
107403
108581
  e2.exports = function() {
108582
+ return function() {
108583
+ };
107404
108584
  };
107405
108585
  } else {
107406
108586
  var n = r2(491);
107407
- var s = r2(87);
108587
+ var s = r2(357);
107408
108588
  var a = /^win/i.test(i.platform);
107409
108589
  var o = r2(361);
107410
108590
  if (typeof o !== "function") {
@@ -107424,7 +108604,8 @@ var require_ora3 = __commonJSMin((exports, module2) => {
107424
108604
  }
107425
108605
  e2.exports = function(e3, t3) {
107426
108606
  if (!processOk(global.process)) {
107427
- return;
108607
+ return function() {
108608
+ };
107428
108609
  }
107429
108610
  n.equal(typeof e3, "function", "a callback must be provided for exit handler");
107430
108611
  if (d === false) {
@@ -107531,7 +108712,7 @@ var require_ora3 = __commonJSMin((exports, module2) => {
107531
108712
  }
107532
108713
  };
107533
108714
  }
107534
- }, 87: (e2) => {
108715
+ }, 357: (e2) => {
107535
108716
  e2.exports = ["SIGABRT", "SIGALRM", "SIGHUP", "SIGINT", "SIGTERM"];
107536
108717
  if (process.platform !== "win32") {
107537
108718
  e2.exports.push("SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
@@ -108069,13 +109250,13 @@ var require_glob2 = __commonJSMin((exports, module2) => {
108069
109250
  } else {
108070
109251
  E = String(S);
108071
109252
  if (k) {
108072
- var O = g - E.length;
108073
- if (O > 0) {
108074
- var x = new Array(O + 1).join("0");
109253
+ var x = g - E.length;
109254
+ if (x > 0) {
109255
+ var O = new Array(x + 1).join("0");
108075
109256
  if (S < 0)
108076
- E = "-" + x + E.slice(1);
109257
+ E = "-" + O + E.slice(1);
108077
109258
  else
108078
- E = x + E;
109259
+ E = O + E;
108079
109260
  }
108080
109261
  }
108081
109262
  }
@@ -108382,7 +109563,7 @@ var require_glob2 = __commonJSMin((exports, module2) => {
108382
109563
  }
108383
109564
  var i = r2(147);
108384
109565
  var a = r2(17);
108385
- var n = r2(435);
109566
+ var n = r2(235);
108386
109567
  var s = r2(249);
108387
109568
  var o = n.Minimatch;
108388
109569
  function alphasort(t3, e3) {
@@ -108557,7 +109738,7 @@ var require_glob2 = __commonJSMin((exports, module2) => {
108557
109738
  }, 978: (t2, e2, r2) => {
108558
109739
  t2.exports = glob;
108559
109740
  var i = r2(737);
108560
- var a = r2(435);
109741
+ var a = r2(235);
108561
109742
  var n = a.Minimatch;
108562
109743
  var s = r2(315);
108563
109744
  var o = r2(361).EventEmitter;
@@ -109106,7 +110287,7 @@ var require_glob2 = __commonJSMin((exports, module2) => {
109106
110287
  t2.exports = globSync;
109107
110288
  globSync.GlobSync = GlobSync;
109108
110289
  var i = r2(737);
109109
- var a = r2(435);
110290
+ var a = r2(235);
109110
110291
  var n = a.Minimatch;
109111
110292
  var s = r2(978).Glob;
109112
110293
  var o = r2(837);
@@ -109518,14 +110699,16 @@ var require_glob2 = __commonJSMin((exports, module2) => {
109518
110699
  }
109519
110700
  };
109520
110701
  }
109521
- }, 435: (t2, e2, r2) => {
110702
+ }, 235: (t2, e2, r2) => {
109522
110703
  t2.exports = minimatch;
109523
110704
  minimatch.Minimatch = Minimatch;
109524
- var i = { sep: "/" };
109525
- try {
109526
- i = r2(17);
109527
- } catch (t3) {
109528
- }
110705
+ var i = function() {
110706
+ try {
110707
+ return r2(17);
110708
+ } catch (t3) {
110709
+ }
110710
+ }() || { sep: "/" };
110711
+ minimatch.sep = i.sep;
109529
110712
  var a = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {};
109530
110713
  var n = r2(847);
109531
110714
  var s = { "!": { open: "(?:(?!(?:", close: "))[^/]*?)" }, "?": { open: "(?:", close: ")?" }, "+": { open: "(?:", close: ")+" }, "*": { open: "(?:", close: ")*" }, "@": { open: "(?:", close: ")" } };
@@ -109549,58 +110732,68 @@ var require_glob2 = __commonJSMin((exports, module2) => {
109549
110732
  };
109550
110733
  }
109551
110734
  function ext(t3, e3) {
109552
- t3 = t3 || {};
109553
110735
  e3 = e3 || {};
109554
110736
  var r3 = {};
109555
- Object.keys(e3).forEach(function(t4) {
109556
- r3[t4] = e3[t4];
109557
- });
109558
110737
  Object.keys(t3).forEach(function(e4) {
109559
110738
  r3[e4] = t3[e4];
109560
110739
  });
110740
+ Object.keys(e3).forEach(function(t4) {
110741
+ r3[t4] = e3[t4];
110742
+ });
109561
110743
  return r3;
109562
110744
  }
109563
110745
  minimatch.defaults = function(t3) {
109564
- if (!t3 || !Object.keys(t3).length)
110746
+ if (!t3 || typeof t3 !== "object" || !Object.keys(t3).length) {
109565
110747
  return minimatch;
110748
+ }
109566
110749
  var e3 = minimatch;
109567
110750
  var r3 = function minimatch2(r4, i2, a2) {
109568
- return e3.minimatch(r4, i2, ext(t3, a2));
110751
+ return e3(r4, i2, ext(t3, a2));
109569
110752
  };
109570
110753
  r3.Minimatch = function Minimatch2(r4, i2) {
109571
110754
  return new e3.Minimatch(r4, ext(t3, i2));
109572
110755
  };
110756
+ r3.Minimatch.defaults = function defaults(r4) {
110757
+ return e3.defaults(ext(t3, r4)).Minimatch;
110758
+ };
110759
+ r3.filter = function filter4(r4, i2) {
110760
+ return e3.filter(r4, ext(t3, i2));
110761
+ };
110762
+ r3.defaults = function defaults(r4) {
110763
+ return e3.defaults(ext(t3, r4));
110764
+ };
110765
+ r3.makeRe = function makeRe2(r4, i2) {
110766
+ return e3.makeRe(r4, ext(t3, i2));
110767
+ };
110768
+ r3.braceExpand = function braceExpand2(r4, i2) {
110769
+ return e3.braceExpand(r4, ext(t3, i2));
110770
+ };
110771
+ r3.match = function(r4, i2, a2) {
110772
+ return e3.match(r4, i2, ext(t3, a2));
110773
+ };
109573
110774
  return r3;
109574
110775
  };
109575
110776
  Minimatch.defaults = function(t3) {
109576
- if (!t3 || !Object.keys(t3).length)
109577
- return Minimatch;
109578
110777
  return minimatch.defaults(t3).Minimatch;
109579
110778
  };
109580
110779
  function minimatch(t3, e3, r3) {
109581
- if (typeof e3 !== "string") {
109582
- throw new TypeError("glob pattern string required");
109583
- }
110780
+ assertValidPattern(e3);
109584
110781
  if (!r3)
109585
110782
  r3 = {};
109586
110783
  if (!r3.nocomment && e3.charAt(0) === "#") {
109587
110784
  return false;
109588
110785
  }
109589
- if (e3.trim() === "")
109590
- return t3 === "";
109591
110786
  return new Minimatch(e3, r3).match(t3);
109592
110787
  }
109593
110788
  function Minimatch(t3, e3) {
109594
110789
  if (!(this instanceof Minimatch)) {
109595
110790
  return new Minimatch(t3, e3);
109596
110791
  }
109597
- if (typeof t3 !== "string") {
109598
- throw new TypeError("glob pattern string required");
109599
- }
110792
+ assertValidPattern(t3);
109600
110793
  if (!e3)
109601
110794
  e3 = {};
109602
110795
  t3 = t3.trim();
109603
- if (i.sep !== "/") {
110796
+ if (!e3.allowWindowsEscape && i.sep !== "/") {
109604
110797
  t3 = t3.split(i.sep).join("/");
109605
110798
  }
109606
110799
  this.options = e3;
@@ -109610,14 +110803,13 @@ var require_glob2 = __commonJSMin((exports, module2) => {
109610
110803
  this.negate = false;
109611
110804
  this.comment = false;
109612
110805
  this.empty = false;
110806
+ this.partial = !!e3.partial;
109613
110807
  this.make();
109614
110808
  }
109615
110809
  Minimatch.prototype.debug = function() {
109616
110810
  };
109617
110811
  Minimatch.prototype.make = make;
109618
110812
  function make() {
109619
- if (this._made)
109620
- return;
109621
110813
  var t3 = this.pattern;
109622
110814
  var e3 = this.options;
109623
110815
  if (!e3.nocomment && t3.charAt(0) === "#") {
@@ -109631,7 +110823,9 @@ var require_glob2 = __commonJSMin((exports, module2) => {
109631
110823
  this.parseNegate();
109632
110824
  var r3 = this.globSet = this.braceExpand();
109633
110825
  if (e3.debug)
109634
- this.debug = console.error;
110826
+ this.debug = function debug() {
110827
+ console.error.apply(console, arguments);
110828
+ };
109635
110829
  this.debug(this.pattern, r3);
109636
110830
  r3 = this.globParts = r3.map(function(t4) {
109637
110831
  return t4.split(p);
@@ -109676,23 +110870,32 @@ var require_glob2 = __commonJSMin((exports, module2) => {
109676
110870
  }
109677
110871
  }
109678
110872
  t3 = typeof t3 === "undefined" ? this.pattern : t3;
109679
- if (typeof t3 === "undefined") {
109680
- throw new TypeError("undefined pattern");
109681
- }
109682
- if (e3.nobrace || !t3.match(/\{.*\}/)) {
110873
+ assertValidPattern(t3);
110874
+ if (e3.nobrace || !/\{(?:(?!\{).)*\}/.test(t3)) {
109683
110875
  return [t3];
109684
110876
  }
109685
110877
  return n(t3);
109686
110878
  }
109687
- Minimatch.prototype.parse = parse;
109688
- var v = {};
109689
- function parse(t3, e3) {
109690
- if (t3.length > 1024 * 64) {
110879
+ var v = 1024 * 64;
110880
+ var assertValidPattern = function(t3) {
110881
+ if (typeof t3 !== "string") {
110882
+ throw new TypeError("invalid pattern");
110883
+ }
110884
+ if (t3.length > v) {
109691
110885
  throw new TypeError("pattern is too long");
109692
110886
  }
110887
+ };
110888
+ Minimatch.prototype.parse = parse;
110889
+ var d = {};
110890
+ function parse(t3, e3) {
110891
+ assertValidPattern(t3);
109693
110892
  var r3 = this.options;
109694
- if (!r3.noglobstar && t3 === "**")
109695
- return a;
110893
+ if (t3 === "**") {
110894
+ if (!r3.noglobstar)
110895
+ return a;
110896
+ else
110897
+ t3 = "*";
110898
+ }
109696
110899
  if (t3 === "")
109697
110900
  return "";
109698
110901
  var i2 = "";
@@ -109700,15 +110903,15 @@ var require_glob2 = __commonJSMin((exports, module2) => {
109700
110903
  var h2 = false;
109701
110904
  var l2 = [];
109702
110905
  var p2 = [];
109703
- var d;
110906
+ var v2;
109704
110907
  var m = false;
109705
110908
  var b = -1;
109706
110909
  var g = -1;
109707
110910
  var y = t3.charAt(0) === "." ? "" : r3.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
109708
110911
  var _ = this;
109709
110912
  function clearStateChar() {
109710
- if (d) {
109711
- switch (d) {
110913
+ if (v2) {
110914
+ switch (v2) {
109712
110915
  case "*":
109713
110916
  i2 += c;
109714
110917
  n2 = true;
@@ -109718,11 +110921,11 @@ var require_glob2 = __commonJSMin((exports, module2) => {
109718
110921
  n2 = true;
109719
110922
  break;
109720
110923
  default:
109721
- i2 += "\\" + d;
110924
+ i2 += "\\" + v2;
109722
110925
  break;
109723
110926
  }
109724
- _.debug("clearStateChar %j %j", d, i2);
109725
- d = false;
110927
+ _.debug("clearStateChar %j %j", v2, i2);
110928
+ v2 = false;
109726
110929
  }
109727
110930
  }
109728
110931
  for (var w = 0, k = t3.length, S; w < k && (S = t3.charAt(w)); w++) {
@@ -109733,8 +110936,9 @@ var require_glob2 = __commonJSMin((exports, module2) => {
109733
110936
  continue;
109734
110937
  }
109735
110938
  switch (S) {
109736
- case "/":
110939
+ case "/": {
109737
110940
  return false;
110941
+ }
109738
110942
  case "\\":
109739
110943
  clearStateChar();
109740
110944
  h2 = true;
@@ -109752,9 +110956,9 @@ var require_glob2 = __commonJSMin((exports, module2) => {
109752
110956
  i2 += S;
109753
110957
  continue;
109754
110958
  }
109755
- _.debug("call clearStateChar %j", d);
110959
+ _.debug("call clearStateChar %j", v2);
109756
110960
  clearStateChar();
109757
- d = S;
110961
+ v2 = S;
109758
110962
  if (r3.noext)
109759
110963
  clearStateChar();
109760
110964
  continue;
@@ -109763,14 +110967,14 @@ var require_glob2 = __commonJSMin((exports, module2) => {
109763
110967
  i2 += "(";
109764
110968
  continue;
109765
110969
  }
109766
- if (!d) {
110970
+ if (!v2) {
109767
110971
  i2 += "\\(";
109768
110972
  continue;
109769
110973
  }
109770
- l2.push({ type: d, start: w - 1, reStart: i2.length, open: s[d].open, close: s[d].close });
109771
- i2 += d === "!" ? "(?:(?!(?:" : "(?:";
109772
- this.debug("plType %j %j", d, i2);
109773
- d = false;
110974
+ l2.push({ type: v2, start: w - 1, reStart: i2.length, open: s[v2].open, close: s[v2].close });
110975
+ i2 += v2 === "!" ? "(?:(?!(?:" : "(?:";
110976
+ this.debug("plType %j %j", v2, i2);
110977
+ v2 = false;
109774
110978
  continue;
109775
110979
  case ")":
109776
110980
  if (m || !l2.length) {
@@ -109812,17 +111016,15 @@ var require_glob2 = __commonJSMin((exports, module2) => {
109812
111016
  h2 = false;
109813
111017
  continue;
109814
111018
  }
109815
- if (m) {
109816
- var O = t3.substring(g + 1, w);
109817
- try {
109818
- RegExp("[" + O + "]");
109819
- } catch (t4) {
109820
- var x = this.parse(O, v);
109821
- i2 = i2.substr(0, b) + "\\[" + x[0] + "\\]";
109822
- n2 = n2 || x[1];
109823
- m = false;
109824
- continue;
109825
- }
111019
+ var x = t3.substring(g + 1, w);
111020
+ try {
111021
+ RegExp("[" + x + "]");
111022
+ } catch (t4) {
111023
+ var O = this.parse(x, d);
111024
+ i2 = i2.substr(0, b) + "\\[" + O[0] + "\\]";
111025
+ n2 = n2 || O[1];
111026
+ m = false;
111027
+ continue;
109826
111028
  }
109827
111029
  n2 = true;
109828
111030
  m = false;
@@ -109839,10 +111041,10 @@ var require_glob2 = __commonJSMin((exports, module2) => {
109839
111041
  }
109840
111042
  }
109841
111043
  if (m) {
109842
- O = t3.substr(g + 1);
109843
- x = this.parse(O, v);
109844
- i2 = i2.substr(0, b) + "\\[" + x[0];
109845
- n2 = n2 || x[1];
111044
+ x = t3.substr(g + 1);
111045
+ O = this.parse(x, d);
111046
+ i2 = i2.substr(0, b) + "\\[" + O[0];
111047
+ n2 = n2 || O[1];
109846
111048
  }
109847
111049
  for (E = l2.pop(); E; E = l2.pop()) {
109848
111050
  var A = i2.slice(E.reStart + E.open.length);
@@ -109864,29 +111066,29 @@ var require_glob2 = __commonJSMin((exports, module2) => {
109864
111066
  }
109865
111067
  var j = false;
109866
111068
  switch (i2.charAt(0)) {
109867
- case ".":
109868
111069
  case "[":
111070
+ case ".":
109869
111071
  case "(":
109870
111072
  j = true;
109871
111073
  }
109872
- for (var I = p2.length - 1; I > -1; I--) {
109873
- var M = p2[I];
109874
- var C = i2.slice(0, M.reStart);
109875
- var L = i2.slice(M.reStart, M.reEnd - 8);
109876
- var R = i2.slice(M.reEnd - 8, M.reEnd);
109877
- var T = i2.slice(M.reEnd);
109878
- R += T;
109879
- var N = C.split("(").length - 1;
109880
- var P = T;
109881
- for (w = 0; w < N; w++) {
111074
+ for (var M = p2.length - 1; M > -1; M--) {
111075
+ var I = p2[M];
111076
+ var R = i2.slice(0, I.reStart);
111077
+ var C = i2.slice(I.reStart, I.reEnd - 8);
111078
+ var L = i2.slice(I.reEnd - 8, I.reEnd);
111079
+ var N = i2.slice(I.reEnd);
111080
+ L += N;
111081
+ var T = R.split("(").length - 1;
111082
+ var P = N;
111083
+ for (w = 0; w < T; w++) {
109882
111084
  P = P.replace(/\)[+*?]?/, "");
109883
111085
  }
109884
- T = P;
111086
+ N = P;
109885
111087
  var D = "";
109886
- if (T === "" && e3 !== v) {
111088
+ if (N === "" && e3 !== d) {
109887
111089
  D = "$";
109888
111090
  }
109889
- var $ = C + L + T + D + R;
111091
+ var $ = R + C + N + D + L;
109890
111092
  i2 = $;
109891
111093
  }
109892
111094
  if (i2 !== "" && n2) {
@@ -109895,7 +111097,7 @@ var require_glob2 = __commonJSMin((exports, module2) => {
109895
111097
  if (j) {
109896
111098
  i2 = y + i2;
109897
111099
  }
109898
- if (e3 === v) {
111100
+ if (e3 === d) {
109899
111101
  return [i2, n2];
109900
111102
  }
109901
111103
  if (!n2) {
@@ -109903,13 +111105,13 @@ var require_glob2 = __commonJSMin((exports, module2) => {
109903
111105
  }
109904
111106
  var F = r3.nocase ? "i" : "";
109905
111107
  try {
109906
- var q = new RegExp("^" + i2 + "$", F);
111108
+ var B = new RegExp("^" + i2 + "$", F);
109907
111109
  } catch (t4) {
109908
111110
  return new RegExp("$.");
109909
111111
  }
109910
- q._glob = t3;
109911
- q._src = i2;
109912
- return q;
111112
+ B._glob = t3;
111113
+ B._src = i2;
111114
+ return B;
109913
111115
  }
109914
111116
  minimatch.makeRe = function(t3, e3) {
109915
111117
  return new Minimatch(t3, e3 || {}).makeRe();
@@ -109952,8 +111154,9 @@ var require_glob2 = __commonJSMin((exports, module2) => {
109952
111154
  }
109953
111155
  return t3;
109954
111156
  };
109955
- Minimatch.prototype.match = match;
109956
- function match(t3, e3) {
111157
+ Minimatch.prototype.match = function match(t3, e3) {
111158
+ if (typeof e3 === "undefined")
111159
+ e3 = this.partial;
109957
111160
  this.debug("match", t3, this.pattern);
109958
111161
  if (this.comment)
109959
111162
  return false;
@@ -109992,7 +111195,7 @@ var require_glob2 = __commonJSMin((exports, module2) => {
109992
111195
  if (r3.flipNegate)
109993
111196
  return false;
109994
111197
  return this.negate;
109995
- }
111198
+ };
109996
111199
  Minimatch.prototype.matchOne = function(t3, e3, r3) {
109997
111200
  var i2 = this.options;
109998
111201
  this.debug("matchOne", { this: this, file: t3, pattern: e3 });
@@ -110038,19 +111241,15 @@ var require_glob2 = __commonJSMin((exports, module2) => {
110038
111241
  }
110039
111242
  return false;
110040
111243
  }
110041
- var d;
111244
+ var d2;
110042
111245
  if (typeof h2 === "string") {
110043
- if (i2.nocase) {
110044
- d = l2.toLowerCase() === h2.toLowerCase();
110045
- } else {
110046
- d = l2 === h2;
110047
- }
110048
- this.debug("string match", h2, l2, d);
111246
+ d2 = l2 === h2;
111247
+ this.debug("string match", h2, l2, d2);
110049
111248
  } else {
110050
- d = l2.match(h2);
110051
- this.debug("pattern match", h2, l2, d);
111249
+ d2 = l2.match(h2);
111250
+ this.debug("pattern match", h2, l2, d2);
110052
111251
  }
110053
- if (!d)
111252
+ if (!d2)
110054
111253
  return false;
110055
111254
  }
110056
111255
  if (n2 === o2 && s2 === c2) {
@@ -110058,8 +111257,7 @@ var require_glob2 = __commonJSMin((exports, module2) => {
110058
111257
  } else if (n2 === o2) {
110059
111258
  return r3;
110060
111259
  } else if (s2 === c2) {
110061
- var m = n2 === o2 - 1 && t3[n2] === "";
110062
- return m;
111260
+ return n2 === o2 - 1 && t3[n2] === "";
110063
111261
  }
110064
111262
  throw new Error("wtf?");
110065
111263
  };
@@ -113684,7 +114882,7 @@ ${o.message}` : x;
113684
114882
  }, 878: (e2, t2, n2) => {
113685
114883
  "use strict";
113686
114884
  const r = n2(37);
113687
- const o = n2(160);
114885
+ const o = n2(580);
113688
114886
  const s = 1e3 * 5;
113689
114887
  const spawnedKill = (e3, t3 = "SIGTERM", n3 = {}) => {
113690
114888
  const r2 = e3(t3);
@@ -114307,17 +115505,19 @@ ${o.message}` : x;
114307
115505
  }, 609: (e2) => {
114308
115506
  "use strict";
114309
115507
  e2.exports = /^#!(.*)/;
114310
- }, 160: (e2, t2, n2) => {
115508
+ }, 580: (e2, t2, n2) => {
114311
115509
  var r = global.process;
114312
115510
  const processOk = function(e3) {
114313
115511
  return e3 && typeof e3 === "object" && typeof e3.removeListener === "function" && typeof e3.emit === "function" && typeof e3.reallyExit === "function" && typeof e3.listeners === "function" && typeof e3.kill === "function" && typeof e3.pid === "number" && typeof e3.on === "function";
114314
115512
  };
114315
115513
  if (!processOk(r)) {
114316
115514
  e2.exports = function() {
115515
+ return function() {
115516
+ };
114317
115517
  };
114318
115518
  } else {
114319
115519
  var o = n2(491);
114320
- var s = n2(87);
115520
+ var s = n2(357);
114321
115521
  var i = /^win/i.test(r.platform);
114322
115522
  var a = n2(361);
114323
115523
  if (typeof a !== "function") {
@@ -114337,7 +115537,8 @@ ${o.message}` : x;
114337
115537
  }
114338
115538
  e2.exports = function(e3, t3) {
114339
115539
  if (!processOk(global.process)) {
114340
- return;
115540
+ return function() {
115541
+ };
114341
115542
  }
114342
115543
  o.equal(typeof e3, "function", "a callback must be provided for exit handler");
114343
115544
  if (f === false) {
@@ -114444,7 +115645,7 @@ ${o.message}` : x;
114444
115645
  }
114445
115646
  };
114446
115647
  }
114447
- }, 87: (e2) => {
115648
+ }, 357: (e2) => {
114448
115649
  e2.exports = ["SIGABRT", "SIGALRM", "SIGHUP", "SIGINT", "SIGTERM"];
114449
115650
  if (process.platform !== "win32") {
114450
115651
  e2.exports.push("SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
@@ -120101,7 +121302,7 @@ var require_fast_glob2 = __commonJSMin((exports, module2) => {
120101
121302
  e2.matchAny = e2.convertPatternsToRe = e2.makeRe = e2.getPatternParts = e2.expandBraceExpansion = e2.expandPatternsWithBraceExpansion = e2.isAffectDepthOfReadingPattern = e2.endsWithSlashGlobStar = e2.hasGlobStar = e2.getBaseDirectory = e2.isPatternRelatedToParentDirectory = e2.getPatternsOutsideCurrentDirectory = e2.getPatternsInsideCurrentDirectory = e2.getPositivePatterns = e2.getNegativePatterns = e2.isPositivePattern = e2.isNegativePattern = e2.convertToNegativePattern = e2.convertToPositivePattern = e2.isDynamicPattern = e2.isStaticPattern = void 0;
120102
121303
  const n = r2(1017);
120103
121304
  const s = r2(5976);
120104
- const i = r2(1224);
121305
+ const i = r2(8627);
120105
121306
  const o = "**";
120106
121307
  const a = "\\";
120107
121308
  const u = /[*?]|^!/;
@@ -120956,7 +122157,7 @@ var require_fast_glob2 = __commonJSMin((exports, module2) => {
120956
122157
  }
120957
122158
  return t3;
120958
122159
  }
120959
- }, 1224: (t2, e2, r2) => {
122160
+ }, 8627: (t2, e2, r2) => {
120960
122161
  "use strict";
120961
122162
  const n = r2(3837);
120962
122163
  const s = r2(1570);
@@ -121019,9 +122220,9 @@ var require_fast_glob2 = __commonJSMin((exports, module2) => {
121019
122220
  r3.onResult(t4);
121020
122221
  s2.push(t4.output);
121021
122222
  };
121022
- let i2 = micromatch(t3, e3, { ...r3, onResult });
122223
+ let i2 = new Set(micromatch(t3, e3, { ...r3, onResult }));
121023
122224
  for (let t4 of s2) {
121024
- if (!i2.includes(t4)) {
122225
+ if (!i2.has(t4)) {
121025
122226
  n2.add(t4);
121026
122227
  }
121027
122228
  }
@@ -125894,11 +127095,11 @@ var require_browserslist2 = __commonJSMin((exports, module2) => {
125894
127095
  BrowserslistError.prototype = Error.prototype;
125895
127096
  e2.exports = BrowserslistError;
125896
127097
  }, 751: (e2, s2, r2) => {
125897
- var n = r2(936);
127098
+ var n = r2(330);
125898
127099
  var t = r2(768).agents;
125899
- var a = r2(178);
127100
+ var a = r2(97);
125900
127101
  var i = r2(17);
125901
- var o = r2(158);
127102
+ var o = r2(333);
125902
127103
  var l = r2(923);
125903
127104
  var f = r2(347);
125904
127105
  var u = 365.259641 * 24 * 60 * 60 * 1e3;
@@ -127047,8 +128248,8 @@ var require_browserslist2 = __commonJSMin((exports, module2) => {
127047
128248
  }, currentNode: function currentNode() {
127048
128249
  return "node " + process.versions.node;
127049
128250
  } };
127050
- }, 158: (e2) => {
127051
- e2.exports = { "0.20": "39", 0.21: "41", 0.22: "41", 0.23: "41", 0.24: "41", 0.25: "42", 0.26: "42", 0.27: "43", 0.28: "43", 0.29: "43", "0.30": "44", 0.31: "45", 0.32: "45", 0.33: "45", 0.34: "45", 0.35: "45", 0.36: "47", 0.37: "49", "1.0": "49", 1.1: "50", 1.2: "51", 1.3: "52", 1.4: "53", 1.5: "54", 1.6: "56", 1.7: "58", 1.8: "59", "2.0": "61", 2.1: "61", "3.0": "66", 3.1: "66", "4.0": "69", 4.1: "69", 4.2: "69", "5.0": "73", "6.0": "76", 6.1: "76", "7.0": "78", 7.1: "78", 7.2: "78", 7.3: "78", "8.0": "80", 8.1: "80", 8.2: "80", 8.3: "80", 8.4: "80", 8.5: "80", "9.0": "83", 9.1: "83", 9.2: "83", 9.3: "83", 9.4: "83", "10.0": "85", 10.1: "85", 10.2: "85", 10.3: "85", 10.4: "85", "11.0": "87", 11.1: "87", 11.2: "87", 11.3: "87", 11.4: "87", 11.5: "87", "12.0": "89", 12.1: "89", 12.2: "89", "13.0": "91", 13.1: "91", 13.2: "91", 13.3: "91", 13.4: "91", 13.5: "91", 13.6: "91", "14.0": "93", 14.1: "93", 14.2: "93", "15.0": "94", 15.1: "94", 15.2: "94", 15.3: "94", 15.4: "94", "16.0": "96", 16.1: "96", "17.0": "98", 17.1: "98", "18.0": "100" };
128251
+ }, 333: (e2) => {
128252
+ e2.exports = { "0.20": "39", 0.21: "41", 0.22: "41", 0.23: "41", 0.24: "41", 0.25: "42", 0.26: "42", 0.27: "43", 0.28: "43", 0.29: "43", "0.30": "44", 0.31: "45", 0.32: "45", 0.33: "45", 0.34: "45", 0.35: "45", 0.36: "47", 0.37: "49", "1.0": "49", 1.1: "50", 1.2: "51", 1.3: "52", 1.4: "53", 1.5: "54", 1.6: "56", 1.7: "58", 1.8: "59", "2.0": "61", 2.1: "61", "3.0": "66", 3.1: "66", "4.0": "69", 4.1: "69", 4.2: "69", "5.0": "73", "6.0": "76", 6.1: "76", "7.0": "78", 7.1: "78", 7.2: "78", 7.3: "78", "8.0": "80", 8.1: "80", 8.2: "80", 8.3: "80", 8.4: "80", 8.5: "80", "9.0": "83", 9.1: "83", 9.2: "83", 9.3: "83", 9.4: "83", "10.0": "85", 10.1: "85", 10.2: "85", 10.3: "85", 10.4: "85", "11.0": "87", 11.1: "87", 11.2: "87", 11.3: "87", 11.4: "87", 11.5: "87", "12.0": "89", 12.1: "89", 12.2: "89", "13.0": "91", 13.1: "91", 13.2: "91", 13.3: "91", 13.4: "91", 13.5: "91", 13.6: "91", "14.0": "93", 14.1: "93", 14.2: "93", "15.0": "94", 15.1: "94", 15.2: "94", 15.3: "94", 15.4: "94", 15.5: "94", "16.0": "96", 16.1: "96", 16.2: "96", "17.0": "98", 17.1: "98", 17.2: "98", 17.3: "98", 17.4: "98", "18.0": "100", 18.1: "100", 18.2: "100", 18.3: "100", "19.0": "102", "20.0": "104" };
127052
128253
  }, 174: (e2) => {
127053
128254
  function webpackEmptyContext(e3) {
127054
128255
  var s2 = new Error("Cannot find module '" + e3 + "'");
@@ -127074,12 +128275,12 @@ var require_browserslist2 = __commonJSMin((exports, module2) => {
127074
128275
  }, 17: (e2) => {
127075
128276
  "use strict";
127076
128277
  e2.exports = __require("path");
127077
- }, 936: (e2) => {
128278
+ }, 330: (e2) => {
127078
128279
  "use strict";
127079
- e2.exports = JSON.parse('[{"name":"nodejs","version":"0.2.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.3.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.4.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.5.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.6.0","date":"2011-11-04","lts":false,"security":false},{"name":"nodejs","version":"0.7.0","date":"2012-01-17","lts":false,"security":false},{"name":"nodejs","version":"0.8.0","date":"2012-06-22","lts":false,"security":false},{"name":"nodejs","version":"0.9.0","date":"2012-07-20","lts":false,"security":false},{"name":"nodejs","version":"0.10.0","date":"2013-03-11","lts":false,"security":false},{"name":"nodejs","version":"0.11.0","date":"2013-03-28","lts":false,"security":false},{"name":"nodejs","version":"0.12.0","date":"2015-02-06","lts":false,"security":false},{"name":"nodejs","version":"4.0.0","date":"2015-09-08","lts":false,"security":false},{"name":"nodejs","version":"4.1.0","date":"2015-09-17","lts":false,"security":false},{"name":"nodejs","version":"4.2.0","date":"2015-10-12","lts":"Argon","security":false},{"name":"nodejs","version":"4.3.0","date":"2016-02-09","lts":"Argon","security":false},{"name":"nodejs","version":"4.4.0","date":"2016-03-08","lts":"Argon","security":false},{"name":"nodejs","version":"4.5.0","date":"2016-08-16","lts":"Argon","security":false},{"name":"nodejs","version":"4.6.0","date":"2016-09-27","lts":"Argon","security":true},{"name":"nodejs","version":"4.7.0","date":"2016-12-06","lts":"Argon","security":false},{"name":"nodejs","version":"4.8.0","date":"2017-02-21","lts":"Argon","security":false},{"name":"nodejs","version":"4.9.0","date":"2018-03-28","lts":"Argon","security":true},{"name":"nodejs","version":"5.0.0","date":"2015-10-29","lts":false,"security":false},{"name":"nodejs","version":"5.1.0","date":"2015-11-17","lts":false,"security":false},{"name":"nodejs","version":"5.2.0","date":"2015-12-09","lts":false,"security":false},{"name":"nodejs","version":"5.3.0","date":"2015-12-15","lts":false,"security":false},{"name":"nodejs","version":"5.4.0","date":"2016-01-06","lts":false,"security":false},{"name":"nodejs","version":"5.5.0","date":"2016-01-21","lts":false,"security":false},{"name":"nodejs","version":"5.6.0","date":"2016-02-09","lts":false,"security":false},{"name":"nodejs","version":"5.7.0","date":"2016-02-23","lts":false,"security":false},{"name":"nodejs","version":"5.8.0","date":"2016-03-09","lts":false,"security":false},{"name":"nodejs","version":"5.9.0","date":"2016-03-16","lts":false,"security":false},{"name":"nodejs","version":"5.10.0","date":"2016-04-01","lts":false,"security":false},{"name":"nodejs","version":"5.11.0","date":"2016-04-21","lts":false,"security":false},{"name":"nodejs","version":"5.12.0","date":"2016-06-23","lts":false,"security":false},{"name":"nodejs","version":"6.0.0","date":"2016-04-26","lts":false,"security":false},{"name":"nodejs","version":"6.1.0","date":"2016-05-05","lts":false,"security":false},{"name":"nodejs","version":"6.2.0","date":"2016-05-17","lts":false,"security":false},{"name":"nodejs","version":"6.3.0","date":"2016-07-06","lts":false,"security":false},{"name":"nodejs","version":"6.4.0","date":"2016-08-12","lts":false,"security":false},{"name":"nodejs","version":"6.5.0","date":"2016-08-26","lts":false,"security":false},{"name":"nodejs","version":"6.6.0","date":"2016-09-14","lts":false,"security":false},{"name":"nodejs","version":"6.7.0","date":"2016-09-27","lts":false,"security":true},{"name":"nodejs","version":"6.8.0","date":"2016-10-12","lts":false,"security":false},{"name":"nodejs","version":"6.9.0","date":"2016-10-18","lts":"Boron","security":false},{"name":"nodejs","version":"6.10.0","date":"2017-02-21","lts":"Boron","security":false},{"name":"nodejs","version":"6.11.0","date":"2017-06-06","lts":"Boron","security":false},{"name":"nodejs","version":"6.12.0","date":"2017-11-06","lts":"Boron","security":false},{"name":"nodejs","version":"6.13.0","date":"2018-02-10","lts":"Boron","security":false},{"name":"nodejs","version":"6.14.0","date":"2018-03-28","lts":"Boron","security":true},{"name":"nodejs","version":"6.15.0","date":"2018-11-27","lts":"Boron","security":true},{"name":"nodejs","version":"6.16.0","date":"2018-12-26","lts":"Boron","security":false},{"name":"nodejs","version":"6.17.0","date":"2019-02-28","lts":"Boron","security":true},{"name":"nodejs","version":"7.0.0","date":"2016-10-25","lts":false,"security":false},{"name":"nodejs","version":"7.1.0","date":"2016-11-08","lts":false,"security":false},{"name":"nodejs","version":"7.2.0","date":"2016-11-22","lts":false,"security":false},{"name":"nodejs","version":"7.3.0","date":"2016-12-20","lts":false,"security":false},{"name":"nodejs","version":"7.4.0","date":"2017-01-04","lts":false,"security":false},{"name":"nodejs","version":"7.5.0","date":"2017-01-31","lts":false,"security":false},{"name":"nodejs","version":"7.6.0","date":"2017-02-21","lts":false,"security":false},{"name":"nodejs","version":"7.7.0","date":"2017-02-28","lts":false,"security":false},{"name":"nodejs","version":"7.8.0","date":"2017-03-29","lts":false,"security":false},{"name":"nodejs","version":"7.9.0","date":"2017-04-11","lts":false,"security":false},{"name":"nodejs","version":"7.10.0","date":"2017-05-02","lts":false,"security":false},{"name":"nodejs","version":"8.0.0","date":"2017-05-30","lts":false,"security":false},{"name":"nodejs","version":"8.1.0","date":"2017-06-08","lts":false,"security":false},{"name":"nodejs","version":"8.2.0","date":"2017-07-19","lts":false,"security":false},{"name":"nodejs","version":"8.3.0","date":"2017-08-08","lts":false,"security":false},{"name":"nodejs","version":"8.4.0","date":"2017-08-15","lts":false,"security":false},{"name":"nodejs","version":"8.5.0","date":"2017-09-12","lts":false,"security":false},{"name":"nodejs","version":"8.6.0","date":"2017-09-26","lts":false,"security":false},{"name":"nodejs","version":"8.7.0","date":"2017-10-11","lts":false,"security":false},{"name":"nodejs","version":"8.8.0","date":"2017-10-24","lts":false,"security":false},{"name":"nodejs","version":"8.9.0","date":"2017-10-31","lts":"Carbon","security":false},{"name":"nodejs","version":"8.10.0","date":"2018-03-06","lts":"Carbon","security":false},{"name":"nodejs","version":"8.11.0","date":"2018-03-28","lts":"Carbon","security":true},{"name":"nodejs","version":"8.12.0","date":"2018-09-10","lts":"Carbon","security":false},{"name":"nodejs","version":"8.13.0","date":"2018-11-20","lts":"Carbon","security":false},{"name":"nodejs","version":"8.14.0","date":"2018-11-27","lts":"Carbon","security":true},{"name":"nodejs","version":"8.15.0","date":"2018-12-26","lts":"Carbon","security":false},{"name":"nodejs","version":"8.16.0","date":"2019-04-16","lts":"Carbon","security":false},{"name":"nodejs","version":"8.17.0","date":"2019-12-17","lts":"Carbon","security":true},{"name":"nodejs","version":"9.0.0","date":"2017-10-31","lts":false,"security":false},{"name":"nodejs","version":"9.1.0","date":"2017-11-07","lts":false,"security":false},{"name":"nodejs","version":"9.2.0","date":"2017-11-14","lts":false,"security":false},{"name":"nodejs","version":"9.3.0","date":"2017-12-12","lts":false,"security":false},{"name":"nodejs","version":"9.4.0","date":"2018-01-10","lts":false,"security":false},{"name":"nodejs","version":"9.5.0","date":"2018-01-31","lts":false,"security":false},{"name":"nodejs","version":"9.6.0","date":"2018-02-21","lts":false,"security":false},{"name":"nodejs","version":"9.7.0","date":"2018-03-01","lts":false,"security":false},{"name":"nodejs","version":"9.8.0","date":"2018-03-07","lts":false,"security":false},{"name":"nodejs","version":"9.9.0","date":"2018-03-21","lts":false,"security":false},{"name":"nodejs","version":"9.10.0","date":"2018-03-28","lts":false,"security":true},{"name":"nodejs","version":"9.11.0","date":"2018-04-04","lts":false,"security":false},{"name":"nodejs","version":"10.0.0","date":"2018-04-24","lts":false,"security":false},{"name":"nodejs","version":"10.1.0","date":"2018-05-08","lts":false,"security":false},{"name":"nodejs","version":"10.2.0","date":"2018-05-23","lts":false,"security":false},{"name":"nodejs","version":"10.3.0","date":"2018-05-29","lts":false,"security":false},{"name":"nodejs","version":"10.4.0","date":"2018-06-06","lts":false,"security":false},{"name":"nodejs","version":"10.5.0","date":"2018-06-20","lts":false,"security":false},{"name":"nodejs","version":"10.6.0","date":"2018-07-04","lts":false,"security":false},{"name":"nodejs","version":"10.7.0","date":"2018-07-18","lts":false,"security":false},{"name":"nodejs","version":"10.8.0","date":"2018-08-01","lts":false,"security":false},{"name":"nodejs","version":"10.9.0","date":"2018-08-15","lts":false,"security":false},{"name":"nodejs","version":"10.10.0","date":"2018-09-06","lts":false,"security":false},{"name":"nodejs","version":"10.11.0","date":"2018-09-19","lts":false,"security":false},{"name":"nodejs","version":"10.12.0","date":"2018-10-10","lts":false,"security":false},{"name":"nodejs","version":"10.13.0","date":"2018-10-30","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.14.0","date":"2018-11-27","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.15.0","date":"2018-12-26","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.16.0","date":"2019-05-28","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.17.0","date":"2019-10-22","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.18.0","date":"2019-12-17","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.19.0","date":"2020-02-05","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.20.0","date":"2020-03-26","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.21.0","date":"2020-06-02","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.22.0","date":"2020-07-21","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.23.0","date":"2020-10-27","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.24.0","date":"2021-02-23","lts":"Dubnium","security":true},{"name":"nodejs","version":"11.0.0","date":"2018-10-23","lts":false,"security":false},{"name":"nodejs","version":"11.1.0","date":"2018-10-30","lts":false,"security":false},{"name":"nodejs","version":"11.2.0","date":"2018-11-15","lts":false,"security":false},{"name":"nodejs","version":"11.3.0","date":"2018-11-27","lts":false,"security":true},{"name":"nodejs","version":"11.4.0","date":"2018-12-07","lts":false,"security":false},{"name":"nodejs","version":"11.5.0","date":"2018-12-18","lts":false,"security":false},{"name":"nodejs","version":"11.6.0","date":"2018-12-26","lts":false,"security":false},{"name":"nodejs","version":"11.7.0","date":"2019-01-17","lts":false,"security":false},{"name":"nodejs","version":"11.8.0","date":"2019-01-24","lts":false,"security":false},{"name":"nodejs","version":"11.9.0","date":"2019-01-30","lts":false,"security":false},{"name":"nodejs","version":"11.10.0","date":"2019-02-14","lts":false,"security":false},{"name":"nodejs","version":"11.11.0","date":"2019-03-05","lts":false,"security":false},{"name":"nodejs","version":"11.12.0","date":"2019-03-14","lts":false,"security":false},{"name":"nodejs","version":"11.13.0","date":"2019-03-28","lts":false,"security":false},{"name":"nodejs","version":"11.14.0","date":"2019-04-10","lts":false,"security":false},{"name":"nodejs","version":"11.15.0","date":"2019-04-30","lts":false,"security":false},{"name":"nodejs","version":"12.0.0","date":"2019-04-23","lts":false,"security":false},{"name":"nodejs","version":"12.1.0","date":"2019-04-29","lts":false,"security":false},{"name":"nodejs","version":"12.2.0","date":"2019-05-07","lts":false,"security":false},{"name":"nodejs","version":"12.3.0","date":"2019-05-21","lts":false,"security":false},{"name":"nodejs","version":"12.4.0","date":"2019-06-04","lts":false,"security":false},{"name":"nodejs","version":"12.5.0","date":"2019-06-26","lts":false,"security":false},{"name":"nodejs","version":"12.6.0","date":"2019-07-03","lts":false,"security":false},{"name":"nodejs","version":"12.7.0","date":"2019-07-23","lts":false,"security":false},{"name":"nodejs","version":"12.8.0","date":"2019-08-06","lts":false,"security":false},{"name":"nodejs","version":"12.9.0","date":"2019-08-20","lts":false,"security":false},{"name":"nodejs","version":"12.10.0","date":"2019-09-04","lts":false,"security":false},{"name":"nodejs","version":"12.11.0","date":"2019-09-25","lts":false,"security":false},{"name":"nodejs","version":"12.12.0","date":"2019-10-11","lts":false,"security":false},{"name":"nodejs","version":"12.13.0","date":"2019-10-21","lts":"Erbium","security":false},{"name":"nodejs","version":"12.14.0","date":"2019-12-17","lts":"Erbium","security":true},{"name":"nodejs","version":"12.15.0","date":"2020-02-05","lts":"Erbium","security":true},{"name":"nodejs","version":"12.16.0","date":"2020-02-11","lts":"Erbium","security":false},{"name":"nodejs","version":"12.17.0","date":"2020-05-26","lts":"Erbium","security":false},{"name":"nodejs","version":"12.18.0","date":"2020-06-02","lts":"Erbium","security":true},{"name":"nodejs","version":"12.19.0","date":"2020-10-06","lts":"Erbium","security":false},{"name":"nodejs","version":"12.20.0","date":"2020-11-24","lts":"Erbium","security":false},{"name":"nodejs","version":"12.21.0","date":"2021-02-23","lts":"Erbium","security":true},{"name":"nodejs","version":"12.22.0","date":"2021-03-30","lts":"Erbium","security":false},{"name":"nodejs","version":"13.0.0","date":"2019-10-22","lts":false,"security":false},{"name":"nodejs","version":"13.1.0","date":"2019-11-05","lts":false,"security":false},{"name":"nodejs","version":"13.2.0","date":"2019-11-21","lts":false,"security":false},{"name":"nodejs","version":"13.3.0","date":"2019-12-03","lts":false,"security":false},{"name":"nodejs","version":"13.4.0","date":"2019-12-17","lts":false,"security":true},{"name":"nodejs","version":"13.5.0","date":"2019-12-18","lts":false,"security":false},{"name":"nodejs","version":"13.6.0","date":"2020-01-07","lts":false,"security":false},{"name":"nodejs","version":"13.7.0","date":"2020-01-21","lts":false,"security":false},{"name":"nodejs","version":"13.8.0","date":"2020-02-05","lts":false,"security":true},{"name":"nodejs","version":"13.9.0","date":"2020-02-18","lts":false,"security":false},{"name":"nodejs","version":"13.10.0","date":"2020-03-04","lts":false,"security":false},{"name":"nodejs","version":"13.11.0","date":"2020-03-12","lts":false,"security":false},{"name":"nodejs","version":"13.12.0","date":"2020-03-26","lts":false,"security":false},{"name":"nodejs","version":"13.13.0","date":"2020-04-14","lts":false,"security":false},{"name":"nodejs","version":"13.14.0","date":"2020-04-29","lts":false,"security":false},{"name":"nodejs","version":"14.0.0","date":"2020-04-21","lts":false,"security":false},{"name":"nodejs","version":"14.1.0","date":"2020-04-29","lts":false,"security":false},{"name":"nodejs","version":"14.2.0","date":"2020-05-05","lts":false,"security":false},{"name":"nodejs","version":"14.3.0","date":"2020-05-19","lts":false,"security":false},{"name":"nodejs","version":"14.4.0","date":"2020-06-02","lts":false,"security":true},{"name":"nodejs","version":"14.5.0","date":"2020-06-30","lts":false,"security":false},{"name":"nodejs","version":"14.6.0","date":"2020-07-20","lts":false,"security":false},{"name":"nodejs","version":"14.7.0","date":"2020-07-29","lts":false,"security":false},{"name":"nodejs","version":"14.8.0","date":"2020-08-11","lts":false,"security":false},{"name":"nodejs","version":"14.9.0","date":"2020-08-27","lts":false,"security":false},{"name":"nodejs","version":"14.10.0","date":"2020-09-08","lts":false,"security":false},{"name":"nodejs","version":"14.11.0","date":"2020-09-15","lts":false,"security":true},{"name":"nodejs","version":"14.12.0","date":"2020-09-22","lts":false,"security":false},{"name":"nodejs","version":"14.13.0","date":"2020-09-29","lts":false,"security":false},{"name":"nodejs","version":"14.14.0","date":"2020-10-15","lts":false,"security":false},{"name":"nodejs","version":"14.15.0","date":"2020-10-27","lts":"Fermium","security":false},{"name":"nodejs","version":"14.16.0","date":"2021-02-23","lts":"Fermium","security":true},{"name":"nodejs","version":"14.17.0","date":"2021-05-11","lts":"Fermium","security":false},{"name":"nodejs","version":"14.18.0","date":"2021-09-28","lts":"Fermium","security":false},{"name":"nodejs","version":"14.19.0","date":"2022-02-01","lts":"Fermium","security":false},{"name":"nodejs","version":"15.0.0","date":"2020-10-20","lts":false,"security":false},{"name":"nodejs","version":"15.1.0","date":"2020-11-04","lts":false,"security":false},{"name":"nodejs","version":"15.2.0","date":"2020-11-10","lts":false,"security":false},{"name":"nodejs","version":"15.3.0","date":"2020-11-24","lts":false,"security":false},{"name":"nodejs","version":"15.4.0","date":"2020-12-09","lts":false,"security":false},{"name":"nodejs","version":"15.5.0","date":"2020-12-22","lts":false,"security":false},{"name":"nodejs","version":"15.6.0","date":"2021-01-14","lts":false,"security":false},{"name":"nodejs","version":"15.7.0","date":"2021-01-25","lts":false,"security":false},{"name":"nodejs","version":"15.8.0","date":"2021-02-02","lts":false,"security":false},{"name":"nodejs","version":"15.9.0","date":"2021-02-18","lts":false,"security":false},{"name":"nodejs","version":"15.10.0","date":"2021-02-23","lts":false,"security":true},{"name":"nodejs","version":"15.11.0","date":"2021-03-03","lts":false,"security":false},{"name":"nodejs","version":"15.12.0","date":"2021-03-17","lts":false,"security":false},{"name":"nodejs","version":"15.13.0","date":"2021-03-31","lts":false,"security":false},{"name":"nodejs","version":"15.14.0","date":"2021-04-06","lts":false,"security":false},{"name":"nodejs","version":"16.0.0","date":"2021-04-20","lts":false,"security":false},{"name":"nodejs","version":"16.1.0","date":"2021-05-04","lts":false,"security":false},{"name":"nodejs","version":"16.2.0","date":"2021-05-19","lts":false,"security":false},{"name":"nodejs","version":"16.3.0","date":"2021-06-03","lts":false,"security":false},{"name":"nodejs","version":"16.4.0","date":"2021-06-23","lts":false,"security":false},{"name":"nodejs","version":"16.5.0","date":"2021-07-14","lts":false,"security":false},{"name":"nodejs","version":"16.6.0","date":"2021-07-29","lts":false,"security":true},{"name":"nodejs","version":"16.7.0","date":"2021-08-18","lts":false,"security":false},{"name":"nodejs","version":"16.8.0","date":"2021-08-25","lts":false,"security":false},{"name":"nodejs","version":"16.9.0","date":"2021-09-07","lts":false,"security":false},{"name":"nodejs","version":"16.10.0","date":"2021-09-22","lts":false,"security":false},{"name":"nodejs","version":"16.11.0","date":"2021-10-08","lts":false,"security":false},{"name":"nodejs","version":"16.12.0","date":"2021-10-20","lts":false,"security":false},{"name":"nodejs","version":"16.13.0","date":"2021-10-26","lts":"Gallium","security":false},{"name":"nodejs","version":"17.0.0","date":"2021-10-19","lts":false,"security":false},{"name":"nodejs","version":"17.1.0","date":"2021-11-09","lts":false,"security":false},{"name":"nodejs","version":"17.2.0","date":"2021-11-30","lts":false,"security":false},{"name":"nodejs","version":"17.3.0","date":"2021-12-17","lts":false,"security":false},{"name":"nodejs","version":"17.4.0","date":"2022-01-18","lts":false,"security":false}]');
127080
- }, 178: (e2) => {
128280
+ e2.exports = JSON.parse('[{"name":"nodejs","version":"0.2.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.3.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.4.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.5.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.6.0","date":"2011-11-04","lts":false,"security":false},{"name":"nodejs","version":"0.7.0","date":"2012-01-17","lts":false,"security":false},{"name":"nodejs","version":"0.8.0","date":"2012-06-22","lts":false,"security":false},{"name":"nodejs","version":"0.9.0","date":"2012-07-20","lts":false,"security":false},{"name":"nodejs","version":"0.10.0","date":"2013-03-11","lts":false,"security":false},{"name":"nodejs","version":"0.11.0","date":"2013-03-28","lts":false,"security":false},{"name":"nodejs","version":"0.12.0","date":"2015-02-06","lts":false,"security":false},{"name":"nodejs","version":"4.0.0","date":"2015-09-08","lts":false,"security":false},{"name":"nodejs","version":"4.1.0","date":"2015-09-17","lts":false,"security":false},{"name":"nodejs","version":"4.2.0","date":"2015-10-12","lts":"Argon","security":false},{"name":"nodejs","version":"4.3.0","date":"2016-02-09","lts":"Argon","security":false},{"name":"nodejs","version":"4.4.0","date":"2016-03-08","lts":"Argon","security":false},{"name":"nodejs","version":"4.5.0","date":"2016-08-16","lts":"Argon","security":false},{"name":"nodejs","version":"4.6.0","date":"2016-09-27","lts":"Argon","security":true},{"name":"nodejs","version":"4.7.0","date":"2016-12-06","lts":"Argon","security":false},{"name":"nodejs","version":"4.8.0","date":"2017-02-21","lts":"Argon","security":false},{"name":"nodejs","version":"4.9.0","date":"2018-03-28","lts":"Argon","security":true},{"name":"nodejs","version":"5.0.0","date":"2015-10-29","lts":false,"security":false},{"name":"nodejs","version":"5.1.0","date":"2015-11-17","lts":false,"security":false},{"name":"nodejs","version":"5.2.0","date":"2015-12-09","lts":false,"security":false},{"name":"nodejs","version":"5.3.0","date":"2015-12-15","lts":false,"security":false},{"name":"nodejs","version":"5.4.0","date":"2016-01-06","lts":false,"security":false},{"name":"nodejs","version":"5.5.0","date":"2016-01-21","lts":false,"security":false},{"name":"nodejs","version":"5.6.0","date":"2016-02-09","lts":false,"security":false},{"name":"nodejs","version":"5.7.0","date":"2016-02-23","lts":false,"security":false},{"name":"nodejs","version":"5.8.0","date":"2016-03-09","lts":false,"security":false},{"name":"nodejs","version":"5.9.0","date":"2016-03-16","lts":false,"security":false},{"name":"nodejs","version":"5.10.0","date":"2016-04-01","lts":false,"security":false},{"name":"nodejs","version":"5.11.0","date":"2016-04-21","lts":false,"security":false},{"name":"nodejs","version":"5.12.0","date":"2016-06-23","lts":false,"security":false},{"name":"nodejs","version":"6.0.0","date":"2016-04-26","lts":false,"security":false},{"name":"nodejs","version":"6.1.0","date":"2016-05-05","lts":false,"security":false},{"name":"nodejs","version":"6.2.0","date":"2016-05-17","lts":false,"security":false},{"name":"nodejs","version":"6.3.0","date":"2016-07-06","lts":false,"security":false},{"name":"nodejs","version":"6.4.0","date":"2016-08-12","lts":false,"security":false},{"name":"nodejs","version":"6.5.0","date":"2016-08-26","lts":false,"security":false},{"name":"nodejs","version":"6.6.0","date":"2016-09-14","lts":false,"security":false},{"name":"nodejs","version":"6.7.0","date":"2016-09-27","lts":false,"security":true},{"name":"nodejs","version":"6.8.0","date":"2016-10-12","lts":false,"security":false},{"name":"nodejs","version":"6.9.0","date":"2016-10-18","lts":"Boron","security":false},{"name":"nodejs","version":"6.10.0","date":"2017-02-21","lts":"Boron","security":false},{"name":"nodejs","version":"6.11.0","date":"2017-06-06","lts":"Boron","security":false},{"name":"nodejs","version":"6.12.0","date":"2017-11-06","lts":"Boron","security":false},{"name":"nodejs","version":"6.13.0","date":"2018-02-10","lts":"Boron","security":false},{"name":"nodejs","version":"6.14.0","date":"2018-03-28","lts":"Boron","security":true},{"name":"nodejs","version":"6.15.0","date":"2018-11-27","lts":"Boron","security":true},{"name":"nodejs","version":"6.16.0","date":"2018-12-26","lts":"Boron","security":false},{"name":"nodejs","version":"6.17.0","date":"2019-02-28","lts":"Boron","security":true},{"name":"nodejs","version":"7.0.0","date":"2016-10-25","lts":false,"security":false},{"name":"nodejs","version":"7.1.0","date":"2016-11-08","lts":false,"security":false},{"name":"nodejs","version":"7.2.0","date":"2016-11-22","lts":false,"security":false},{"name":"nodejs","version":"7.3.0","date":"2016-12-20","lts":false,"security":false},{"name":"nodejs","version":"7.4.0","date":"2017-01-04","lts":false,"security":false},{"name":"nodejs","version":"7.5.0","date":"2017-01-31","lts":false,"security":false},{"name":"nodejs","version":"7.6.0","date":"2017-02-21","lts":false,"security":false},{"name":"nodejs","version":"7.7.0","date":"2017-02-28","lts":false,"security":false},{"name":"nodejs","version":"7.8.0","date":"2017-03-29","lts":false,"security":false},{"name":"nodejs","version":"7.9.0","date":"2017-04-11","lts":false,"security":false},{"name":"nodejs","version":"7.10.0","date":"2017-05-02","lts":false,"security":false},{"name":"nodejs","version":"8.0.0","date":"2017-05-30","lts":false,"security":false},{"name":"nodejs","version":"8.1.0","date":"2017-06-08","lts":false,"security":false},{"name":"nodejs","version":"8.2.0","date":"2017-07-19","lts":false,"security":false},{"name":"nodejs","version":"8.3.0","date":"2017-08-08","lts":false,"security":false},{"name":"nodejs","version":"8.4.0","date":"2017-08-15","lts":false,"security":false},{"name":"nodejs","version":"8.5.0","date":"2017-09-12","lts":false,"security":false},{"name":"nodejs","version":"8.6.0","date":"2017-09-26","lts":false,"security":false},{"name":"nodejs","version":"8.7.0","date":"2017-10-11","lts":false,"security":false},{"name":"nodejs","version":"8.8.0","date":"2017-10-24","lts":false,"security":false},{"name":"nodejs","version":"8.9.0","date":"2017-10-31","lts":"Carbon","security":false},{"name":"nodejs","version":"8.10.0","date":"2018-03-06","lts":"Carbon","security":false},{"name":"nodejs","version":"8.11.0","date":"2018-03-28","lts":"Carbon","security":true},{"name":"nodejs","version":"8.12.0","date":"2018-09-10","lts":"Carbon","security":false},{"name":"nodejs","version":"8.13.0","date":"2018-11-20","lts":"Carbon","security":false},{"name":"nodejs","version":"8.14.0","date":"2018-11-27","lts":"Carbon","security":true},{"name":"nodejs","version":"8.15.0","date":"2018-12-26","lts":"Carbon","security":false},{"name":"nodejs","version":"8.16.0","date":"2019-04-16","lts":"Carbon","security":false},{"name":"nodejs","version":"8.17.0","date":"2019-12-17","lts":"Carbon","security":true},{"name":"nodejs","version":"9.0.0","date":"2017-10-31","lts":false,"security":false},{"name":"nodejs","version":"9.1.0","date":"2017-11-07","lts":false,"security":false},{"name":"nodejs","version":"9.2.0","date":"2017-11-14","lts":false,"security":false},{"name":"nodejs","version":"9.3.0","date":"2017-12-12","lts":false,"security":false},{"name":"nodejs","version":"9.4.0","date":"2018-01-10","lts":false,"security":false},{"name":"nodejs","version":"9.5.0","date":"2018-01-31","lts":false,"security":false},{"name":"nodejs","version":"9.6.0","date":"2018-02-21","lts":false,"security":false},{"name":"nodejs","version":"9.7.0","date":"2018-03-01","lts":false,"security":false},{"name":"nodejs","version":"9.8.0","date":"2018-03-07","lts":false,"security":false},{"name":"nodejs","version":"9.9.0","date":"2018-03-21","lts":false,"security":false},{"name":"nodejs","version":"9.10.0","date":"2018-03-28","lts":false,"security":true},{"name":"nodejs","version":"9.11.0","date":"2018-04-04","lts":false,"security":false},{"name":"nodejs","version":"10.0.0","date":"2018-04-24","lts":false,"security":false},{"name":"nodejs","version":"10.1.0","date":"2018-05-08","lts":false,"security":false},{"name":"nodejs","version":"10.2.0","date":"2018-05-23","lts":false,"security":false},{"name":"nodejs","version":"10.3.0","date":"2018-05-29","lts":false,"security":false},{"name":"nodejs","version":"10.4.0","date":"2018-06-06","lts":false,"security":false},{"name":"nodejs","version":"10.5.0","date":"2018-06-20","lts":false,"security":false},{"name":"nodejs","version":"10.6.0","date":"2018-07-04","lts":false,"security":false},{"name":"nodejs","version":"10.7.0","date":"2018-07-18","lts":false,"security":false},{"name":"nodejs","version":"10.8.0","date":"2018-08-01","lts":false,"security":false},{"name":"nodejs","version":"10.9.0","date":"2018-08-15","lts":false,"security":false},{"name":"nodejs","version":"10.10.0","date":"2018-09-06","lts":false,"security":false},{"name":"nodejs","version":"10.11.0","date":"2018-09-19","lts":false,"security":false},{"name":"nodejs","version":"10.12.0","date":"2018-10-10","lts":false,"security":false},{"name":"nodejs","version":"10.13.0","date":"2018-10-30","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.14.0","date":"2018-11-27","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.15.0","date":"2018-12-26","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.16.0","date":"2019-05-28","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.17.0","date":"2019-10-22","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.18.0","date":"2019-12-17","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.19.0","date":"2020-02-05","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.20.0","date":"2020-03-26","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.21.0","date":"2020-06-02","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.22.0","date":"2020-07-21","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.23.0","date":"2020-10-27","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.24.0","date":"2021-02-23","lts":"Dubnium","security":true},{"name":"nodejs","version":"11.0.0","date":"2018-10-23","lts":false,"security":false},{"name":"nodejs","version":"11.1.0","date":"2018-10-30","lts":false,"security":false},{"name":"nodejs","version":"11.2.0","date":"2018-11-15","lts":false,"security":false},{"name":"nodejs","version":"11.3.0","date":"2018-11-27","lts":false,"security":true},{"name":"nodejs","version":"11.4.0","date":"2018-12-07","lts":false,"security":false},{"name":"nodejs","version":"11.5.0","date":"2018-12-18","lts":false,"security":false},{"name":"nodejs","version":"11.6.0","date":"2018-12-26","lts":false,"security":false},{"name":"nodejs","version":"11.7.0","date":"2019-01-17","lts":false,"security":false},{"name":"nodejs","version":"11.8.0","date":"2019-01-24","lts":false,"security":false},{"name":"nodejs","version":"11.9.0","date":"2019-01-30","lts":false,"security":false},{"name":"nodejs","version":"11.10.0","date":"2019-02-14","lts":false,"security":false},{"name":"nodejs","version":"11.11.0","date":"2019-03-05","lts":false,"security":false},{"name":"nodejs","version":"11.12.0","date":"2019-03-14","lts":false,"security":false},{"name":"nodejs","version":"11.13.0","date":"2019-03-28","lts":false,"security":false},{"name":"nodejs","version":"11.14.0","date":"2019-04-10","lts":false,"security":false},{"name":"nodejs","version":"11.15.0","date":"2019-04-30","lts":false,"security":false},{"name":"nodejs","version":"12.0.0","date":"2019-04-23","lts":false,"security":false},{"name":"nodejs","version":"12.1.0","date":"2019-04-29","lts":false,"security":false},{"name":"nodejs","version":"12.2.0","date":"2019-05-07","lts":false,"security":false},{"name":"nodejs","version":"12.3.0","date":"2019-05-21","lts":false,"security":false},{"name":"nodejs","version":"12.4.0","date":"2019-06-04","lts":false,"security":false},{"name":"nodejs","version":"12.5.0","date":"2019-06-26","lts":false,"security":false},{"name":"nodejs","version":"12.6.0","date":"2019-07-03","lts":false,"security":false},{"name":"nodejs","version":"12.7.0","date":"2019-07-23","lts":false,"security":false},{"name":"nodejs","version":"12.8.0","date":"2019-08-06","lts":false,"security":false},{"name":"nodejs","version":"12.9.0","date":"2019-08-20","lts":false,"security":false},{"name":"nodejs","version":"12.10.0","date":"2019-09-04","lts":false,"security":false},{"name":"nodejs","version":"12.11.0","date":"2019-09-25","lts":false,"security":false},{"name":"nodejs","version":"12.12.0","date":"2019-10-11","lts":false,"security":false},{"name":"nodejs","version":"12.13.0","date":"2019-10-21","lts":"Erbium","security":false},{"name":"nodejs","version":"12.14.0","date":"2019-12-17","lts":"Erbium","security":true},{"name":"nodejs","version":"12.15.0","date":"2020-02-05","lts":"Erbium","security":true},{"name":"nodejs","version":"12.16.0","date":"2020-02-11","lts":"Erbium","security":false},{"name":"nodejs","version":"12.17.0","date":"2020-05-26","lts":"Erbium","security":false},{"name":"nodejs","version":"12.18.0","date":"2020-06-02","lts":"Erbium","security":true},{"name":"nodejs","version":"12.19.0","date":"2020-10-06","lts":"Erbium","security":false},{"name":"nodejs","version":"12.20.0","date":"2020-11-24","lts":"Erbium","security":false},{"name":"nodejs","version":"12.21.0","date":"2021-02-23","lts":"Erbium","security":true},{"name":"nodejs","version":"12.22.0","date":"2021-03-30","lts":"Erbium","security":false},{"name":"nodejs","version":"13.0.0","date":"2019-10-22","lts":false,"security":false},{"name":"nodejs","version":"13.1.0","date":"2019-11-05","lts":false,"security":false},{"name":"nodejs","version":"13.2.0","date":"2019-11-21","lts":false,"security":false},{"name":"nodejs","version":"13.3.0","date":"2019-12-03","lts":false,"security":false},{"name":"nodejs","version":"13.4.0","date":"2019-12-17","lts":false,"security":true},{"name":"nodejs","version":"13.5.0","date":"2019-12-18","lts":false,"security":false},{"name":"nodejs","version":"13.6.0","date":"2020-01-07","lts":false,"security":false},{"name":"nodejs","version":"13.7.0","date":"2020-01-21","lts":false,"security":false},{"name":"nodejs","version":"13.8.0","date":"2020-02-05","lts":false,"security":true},{"name":"nodejs","version":"13.9.0","date":"2020-02-18","lts":false,"security":false},{"name":"nodejs","version":"13.10.0","date":"2020-03-04","lts":false,"security":false},{"name":"nodejs","version":"13.11.0","date":"2020-03-12","lts":false,"security":false},{"name":"nodejs","version":"13.12.0","date":"2020-03-26","lts":false,"security":false},{"name":"nodejs","version":"13.13.0","date":"2020-04-14","lts":false,"security":false},{"name":"nodejs","version":"13.14.0","date":"2020-04-29","lts":false,"security":false},{"name":"nodejs","version":"14.0.0","date":"2020-04-21","lts":false,"security":false},{"name":"nodejs","version":"14.1.0","date":"2020-04-29","lts":false,"security":false},{"name":"nodejs","version":"14.2.0","date":"2020-05-05","lts":false,"security":false},{"name":"nodejs","version":"14.3.0","date":"2020-05-19","lts":false,"security":false},{"name":"nodejs","version":"14.4.0","date":"2020-06-02","lts":false,"security":true},{"name":"nodejs","version":"14.5.0","date":"2020-06-30","lts":false,"security":false},{"name":"nodejs","version":"14.6.0","date":"2020-07-20","lts":false,"security":false},{"name":"nodejs","version":"14.7.0","date":"2020-07-29","lts":false,"security":false},{"name":"nodejs","version":"14.8.0","date":"2020-08-11","lts":false,"security":false},{"name":"nodejs","version":"14.9.0","date":"2020-08-27","lts":false,"security":false},{"name":"nodejs","version":"14.10.0","date":"2020-09-08","lts":false,"security":false},{"name":"nodejs","version":"14.11.0","date":"2020-09-15","lts":false,"security":true},{"name":"nodejs","version":"14.12.0","date":"2020-09-22","lts":false,"security":false},{"name":"nodejs","version":"14.13.0","date":"2020-09-29","lts":false,"security":false},{"name":"nodejs","version":"14.14.0","date":"2020-10-15","lts":false,"security":false},{"name":"nodejs","version":"14.15.0","date":"2020-10-27","lts":"Fermium","security":false},{"name":"nodejs","version":"14.16.0","date":"2021-02-23","lts":"Fermium","security":true},{"name":"nodejs","version":"14.17.0","date":"2021-05-11","lts":"Fermium","security":false},{"name":"nodejs","version":"14.18.0","date":"2021-09-28","lts":"Fermium","security":false},{"name":"nodejs","version":"14.19.0","date":"2022-02-01","lts":"Fermium","security":false},{"name":"nodejs","version":"15.0.0","date":"2020-10-20","lts":false,"security":false},{"name":"nodejs","version":"15.1.0","date":"2020-11-04","lts":false,"security":false},{"name":"nodejs","version":"15.2.0","date":"2020-11-10","lts":false,"security":false},{"name":"nodejs","version":"15.3.0","date":"2020-11-24","lts":false,"security":false},{"name":"nodejs","version":"15.4.0","date":"2020-12-09","lts":false,"security":false},{"name":"nodejs","version":"15.5.0","date":"2020-12-22","lts":false,"security":false},{"name":"nodejs","version":"15.6.0","date":"2021-01-14","lts":false,"security":false},{"name":"nodejs","version":"15.7.0","date":"2021-01-25","lts":false,"security":false},{"name":"nodejs","version":"15.8.0","date":"2021-02-02","lts":false,"security":false},{"name":"nodejs","version":"15.9.0","date":"2021-02-18","lts":false,"security":false},{"name":"nodejs","version":"15.10.0","date":"2021-02-23","lts":false,"security":true},{"name":"nodejs","version":"15.11.0","date":"2021-03-03","lts":false,"security":false},{"name":"nodejs","version":"15.12.0","date":"2021-03-17","lts":false,"security":false},{"name":"nodejs","version":"15.13.0","date":"2021-03-31","lts":false,"security":false},{"name":"nodejs","version":"15.14.0","date":"2021-04-06","lts":false,"security":false},{"name":"nodejs","version":"16.0.0","date":"2021-04-20","lts":false,"security":false},{"name":"nodejs","version":"16.1.0","date":"2021-05-04","lts":false,"security":false},{"name":"nodejs","version":"16.2.0","date":"2021-05-19","lts":false,"security":false},{"name":"nodejs","version":"16.3.0","date":"2021-06-03","lts":false,"security":false},{"name":"nodejs","version":"16.4.0","date":"2021-06-23","lts":false,"security":false},{"name":"nodejs","version":"16.5.0","date":"2021-07-14","lts":false,"security":false},{"name":"nodejs","version":"16.6.0","date":"2021-07-29","lts":false,"security":true},{"name":"nodejs","version":"16.7.0","date":"2021-08-18","lts":false,"security":false},{"name":"nodejs","version":"16.8.0","date":"2021-08-25","lts":false,"security":false},{"name":"nodejs","version":"16.9.0","date":"2021-09-07","lts":false,"security":false},{"name":"nodejs","version":"16.10.0","date":"2021-09-22","lts":false,"security":false},{"name":"nodejs","version":"16.11.0","date":"2021-10-08","lts":false,"security":false},{"name":"nodejs","version":"16.12.0","date":"2021-10-20","lts":false,"security":false},{"name":"nodejs","version":"16.13.0","date":"2021-10-26","lts":"Gallium","security":false},{"name":"nodejs","version":"16.14.0","date":"2022-02-08","lts":"Gallium","security":false},{"name":"nodejs","version":"16.15.0","date":"2022-04-26","lts":"Gallium","security":false},{"name":"nodejs","version":"17.0.0","date":"2021-10-19","lts":false,"security":false},{"name":"nodejs","version":"17.1.0","date":"2021-11-09","lts":false,"security":false},{"name":"nodejs","version":"17.2.0","date":"2021-11-30","lts":false,"security":false},{"name":"nodejs","version":"17.3.0","date":"2021-12-17","lts":false,"security":false},{"name":"nodejs","version":"17.4.0","date":"2022-01-18","lts":false,"security":false},{"name":"nodejs","version":"17.5.0","date":"2022-02-10","lts":false,"security":false},{"name":"nodejs","version":"17.6.0","date":"2022-02-22","lts":false,"security":false},{"name":"nodejs","version":"17.7.0","date":"2022-03-09","lts":false,"security":false},{"name":"nodejs","version":"17.8.0","date":"2022-03-22","lts":false,"security":false},{"name":"nodejs","version":"17.9.0","date":"2022-04-07","lts":false,"security":false},{"name":"nodejs","version":"18.0.0","date":"2022-04-18","lts":false,"security":false},{"name":"nodejs","version":"18.1.0","date":"2022-05-03","lts":false,"security":false},{"name":"nodejs","version":"18.2.0","date":"2022-05-17","lts":false,"security":false}]');
128281
+ }, 97: (e2) => {
127081
128282
  "use strict";
127082
- e2.exports = JSON.parse('{"v0.8":{"start":"2012-06-25","end":"2014-07-31"},"v0.10":{"start":"2013-03-11","end":"2016-10-31"},"v0.12":{"start":"2015-02-06","end":"2016-12-31"},"v4":{"start":"2015-09-08","lts":"2015-10-12","maintenance":"2017-04-01","end":"2018-04-30","codename":"Argon"},"v5":{"start":"2015-10-29","maintenance":"2016-04-30","end":"2016-06-30"},"v6":{"start":"2016-04-26","lts":"2016-10-18","maintenance":"2018-04-30","end":"2019-04-30","codename":"Boron"},"v7":{"start":"2016-10-25","maintenance":"2017-04-30","end":"2017-06-30"},"v8":{"start":"2017-05-30","lts":"2017-10-31","maintenance":"2019-01-01","end":"2019-12-31","codename":"Carbon"},"v9":{"start":"2017-10-01","maintenance":"2018-04-01","end":"2018-06-30"},"v10":{"start":"2018-04-24","lts":"2018-10-30","maintenance":"2020-05-19","end":"2021-04-30","codename":"Dubnium"},"v11":{"start":"2018-10-23","maintenance":"2019-04-22","end":"2019-06-01"},"v12":{"start":"2019-04-23","lts":"2019-10-21","maintenance":"2020-11-30","end":"2022-04-30","codename":"Erbium"},"v13":{"start":"2019-10-22","maintenance":"2020-04-01","end":"2020-06-01"},"v14":{"start":"2020-04-21","lts":"2020-10-27","maintenance":"2021-10-19","end":"2023-04-30","codename":"Fermium"},"v15":{"start":"2020-10-20","maintenance":"2021-04-01","end":"2021-06-01"},"v16":{"start":"2021-04-20","lts":"2021-10-26","maintenance":"2022-10-18","end":"2024-04-30","codename":"Gallium"},"v17":{"start":"2021-10-19","maintenance":"2022-04-01","end":"2022-06-01"},"v18":{"start":"2022-04-19","lts":"2022-10-25","maintenance":"2023-10-18","end":"2025-04-30","codename":""}}');
128283
+ e2.exports = JSON.parse('{"v0.8":{"start":"2012-06-25","end":"2014-07-31"},"v0.10":{"start":"2013-03-11","end":"2016-10-31"},"v0.12":{"start":"2015-02-06","end":"2016-12-31"},"v4":{"start":"2015-09-08","lts":"2015-10-12","maintenance":"2017-04-01","end":"2018-04-30","codename":"Argon"},"v5":{"start":"2015-10-29","maintenance":"2016-04-30","end":"2016-06-30"},"v6":{"start":"2016-04-26","lts":"2016-10-18","maintenance":"2018-04-30","end":"2019-04-30","codename":"Boron"},"v7":{"start":"2016-10-25","maintenance":"2017-04-30","end":"2017-06-30"},"v8":{"start":"2017-05-30","lts":"2017-10-31","maintenance":"2019-01-01","end":"2019-12-31","codename":"Carbon"},"v9":{"start":"2017-10-01","maintenance":"2018-04-01","end":"2018-06-30"},"v10":{"start":"2018-04-24","lts":"2018-10-30","maintenance":"2020-05-19","end":"2021-04-30","codename":"Dubnium"},"v11":{"start":"2018-10-23","maintenance":"2019-04-22","end":"2019-06-01"},"v12":{"start":"2019-04-23","lts":"2019-10-21","maintenance":"2020-11-30","end":"2022-04-30","codename":"Erbium"},"v13":{"start":"2019-10-22","maintenance":"2020-04-01","end":"2020-06-01"},"v14":{"start":"2020-04-21","lts":"2020-10-27","maintenance":"2021-10-19","end":"2023-04-30","codename":"Fermium"},"v15":{"start":"2020-10-20","maintenance":"2021-04-01","end":"2021-06-01"},"v16":{"start":"2021-04-20","lts":"2021-10-26","maintenance":"2022-10-18","end":"2024-04-30","codename":"Gallium"},"v17":{"start":"2021-10-19","maintenance":"2022-04-01","end":"2022-06-01"},"v18":{"start":"2022-04-19","lts":"2022-10-25","maintenance":"2023-10-18","end":"2025-04-30","codename":""},"v19":{"start":"2022-10-18","maintenance":"2023-04-01","end":"2023-06-01"},"v20":{"start":"2023-04-18","lts":"2023-10-24","maintenance":"2024-10-22","end":"2026-04-30","codename":""}}');
127083
128284
  } };
127084
128285
  var s = {};
127085
128286
  function __nccwpck_require__(r2) {
@@ -129647,7 +130848,7 @@ var require_compiled2 = __commonJSMin((exports) => {
129647
130848
  var require_format2 = __commonJSMin((exports) => {
129648
130849
  "use strict";
129649
130850
  Object.defineProperty(exports, "__esModule", { value: true });
129650
- exports.formatProxyOptions = exports.formatWebpackMessages = void 0;
130851
+ exports.formatWebpackMessages = void 0;
129651
130852
  var friendlySyntaxErrorLabel = "SyntaxError:";
129652
130853
  function isLikelyASyntaxError(message) {
129653
130854
  return message.includes(friendlySyntaxErrorLabel);
@@ -129713,29 +130914,6 @@ ${stats.stack}` : "";
129713
130914
  return result;
129714
130915
  }
129715
130916
  exports.formatWebpackMessages = formatWebpackMessages;
129716
- function formatProxyOptions(proxyOptions) {
129717
- const formattedProxy = [];
129718
- if (!Array.isArray(proxyOptions)) {
129719
- if ("target" in proxyOptions) {
129720
- formattedProxy.push(proxyOptions);
129721
- } else {
129722
- Array.prototype.push.apply(formattedProxy, Object.keys(proxyOptions).reduce((total, source) => {
129723
- const option = proxyOptions[source];
129724
- total.push({
129725
- context: source,
129726
- changeOrigin: true,
129727
- logLevel: "warn",
129728
- ...typeof option === "string" ? { target: option } : option
129729
- });
129730
- return total;
129731
- }, []));
129732
- }
129733
- } else {
129734
- formattedProxy.push(...proxyOptions);
129735
- }
129736
- return formattedProxy;
129737
- }
129738
- exports.formatProxyOptions = formatProxyOptions;
129739
130917
  });
129740
130918
  var require_logger4 = __commonJSMin((exports) => {
129741
130919
  "use strict";
@@ -129813,17 +130991,17 @@ var require_logger4 = __commonJSMin((exports) => {
129813
130991
  if (LOG_LEVEL[type] > LOG_LEVEL[this.level]) {
129814
130992
  return;
129815
130993
  }
129816
- let label14 = "";
130994
+ let label21 = "";
129817
130995
  let text = "";
129818
130996
  const logType = this.types[type];
129819
130997
  if (this.config.displayLabel && logType.label) {
129820
- label14 = this.config.uppercaseLabel ? logType.label.toUpperCase() : logType.label;
130998
+ label21 = this.config.uppercaseLabel ? logType.label.toUpperCase() : logType.label;
129821
130999
  if (this.config.underlineLabel) {
129822
- label14 = underline(label14).padEnd(this.longestUnderlinedLabel.length + 1);
131000
+ label21 = underline(label21).padEnd(this.longestUnderlinedLabel.length + 1);
129823
131001
  } else {
129824
- label14 = label14.padEnd(this.longestLabel.length + 1);
131002
+ label21 = label21.padEnd(this.longestLabel.length + 1);
129825
131003
  }
129826
- label14 = logType.color ? chalk_1.default[logType.color](label14) : label14;
131004
+ label21 = logType.color ? chalk_1.default[logType.color](label21) : label21;
129827
131005
  }
129828
131006
  if (message instanceof Error) {
129829
131007
  if (message.stack) {
@@ -129839,15 +131017,15 @@ ${grey(rest.join("\n"))}`;
129839
131017
  if (logType.level === "warn" || logType.level === "error") {
129840
131018
  this.retainLog(type, text);
129841
131019
  }
129842
- const log = label14.length > 0 ? `${label14} ${text}` : text;
131020
+ const log = label21.length > 0 ? `${label21} ${text}` : text;
129843
131021
  console.log(log, ...args);
129844
131022
  }
129845
131023
  getLongestLabel() {
129846
131024
  let longestLabel = "";
129847
131025
  Object.keys(this.types).forEach((type) => {
129848
- const { label: label14 = "" } = this.types[type];
129849
- if (label14.length > longestLabel.length) {
129850
- longestLabel = label14;
131026
+ const { label: label21 = "" } = this.types[type];
131027
+ if (label21.length > longestLabel.length) {
131028
+ longestLabel = label21;
129851
131029
  }
129852
131030
  });
129853
131031
  return longestLabel;
@@ -130203,7 +131381,7 @@ var require_constants6 = __commonJSMin((exports) => {
130203
131381
  "use strict";
130204
131382
  Object.defineProperty(exports, "__esModule", { value: true });
130205
131383
  exports.PLUGIN_SCHEMAS = exports.INTERNAL_PLUGINS = exports.DEFAULT_SERVER_CONFIG = exports.OUTPUT_CONFIG_FILE = exports.CONFIG_FILE_EXTENSIONS = exports.CONFIG_CACHE_DIR = exports.SHARED_DIR = exports.SERVER_DIR = exports.API_DIR = exports.LOADABLE_STATS_FILE = exports.SERVER_RENDER_FUNCTION_NAME = exports.ENTRY_NAME_PATTERN = exports.SERVER_BUNDLE_DIRECTORY = exports.LAUNCH_EDITOR_ENDPOINT = exports.MAIN_ENTRY_NAME = exports.ROUTE_SPEC_FILE = exports.HMR_SOCK_PATH = void 0;
130206
- exports.HMR_SOCK_PATH = "/_modern_js_hmr_ws";
131384
+ exports.HMR_SOCK_PATH = "/webpack-hmr";
130207
131385
  exports.ROUTE_SPEC_FILE = "route.json";
130208
131386
  exports.MAIN_ENTRY_NAME = "main";
130209
131387
  exports.LAUNCH_EDITOR_ENDPOINT = "/__open-stack-frame-in-editor";
@@ -130260,20 +131438,10 @@ var require_constants6 = __commonJSMin((exports) => {
130260
131438
  cli: "@modern-js/plugin-garfish/cli"
130261
131439
  },
130262
131440
  "@modern-js/plugin-tailwindcss": { cli: "@modern-js/plugin-tailwindcss/cli" },
130263
- "@modern-js/plugin-lambda-fc": { cli: "@modern-js/plugin-lambda-fc/cli" },
130264
- "@modern-js/plugin-lambda-scf": { cli: "@modern-js/plugin-lambda-scf/cli" },
130265
- "@modern-js/plugin-cdn-oss": { cli: "@modern-js/plugin-cdn-oss/cli" },
130266
- "@modern-js/plugin-cdn-cos": { cli: "@modern-js/plugin-cdn-cos/cli" },
130267
- "@modern-js/plugin-static-hosting": {
130268
- cli: "@modern-js/plugin-static-hosting/cli"
130269
- },
130270
131441
  "@modern-js/plugin-polyfill": {
130271
131442
  cli: "@modern-js/plugin-polyfill/cli",
130272
131443
  server: "@modern-js/plugin-polyfill"
130273
131444
  },
130274
- "@modern-js/plugin-multiprocess": {
130275
- cli: "@modern-js/plugin-multiprocess/cli"
130276
- },
130277
131445
  "@modern-js/plugin-nocode": { cli: "@modern-js/plugin-nocode/cli" }
130278
131446
  };
130279
131447
  exports.PLUGIN_SCHEMAS = {
@@ -130729,14 +131897,16 @@ var require_path2 = __commonJSMin((exports) => {
130729
131897
  return mod && mod.__esModule ? mod : { "default": mod };
130730
131898
  };
130731
131899
  Object.defineProperty(exports, "__esModule", { value: true });
130732
- exports.normalizeToPosixPath = exports.normalizeOutputPath = exports.isRelativePath = void 0;
131900
+ exports.normalizeToPosixPath = exports.normalizeOutputPath = exports.isRelativePath = exports.isPathString = void 0;
130733
131901
  var path_1 = __importDefault(__require("path"));
130734
131902
  var compiled_1 = require_compiled2();
131903
+ var isPathString = (test) => path_1.default.posix.basename(test) !== test || path_1.default.win32.basename(test) !== test;
131904
+ exports.isPathString = isPathString;
130735
131905
  var isRelativePath = (test) => /^\.\.?($|[\\/])/.test(test);
130736
131906
  exports.isRelativePath = isRelativePath;
130737
131907
  var normalizeOutputPath = (s) => s.replace(/\\/g, "\\\\");
130738
131908
  exports.normalizeOutputPath = normalizeOutputPath;
130739
- var normalizeToPosixPath = (p) => compiled_1.upath.normalizeSafe(path_1.default.normalize(p || ""));
131909
+ var normalizeToPosixPath = (p) => compiled_1.upath.normalizeSafe(path_1.default.normalize(p || "")).replace(/^([a-zA-Z]+):/, (_, m) => `/${m.toLowerCase()}`);
130740
131910
  exports.normalizeToPosixPath = normalizeToPosixPath;
130741
131911
  });
130742
131912
  var require_runtimeExports2 = __commonJSMin((exports) => {
@@ -130762,18 +131932,14 @@ var require_runtimeExports2 = __commonJSMin((exports) => {
130762
131932
  return res;
130763
131933
  };
130764
131934
  };
130765
- exports.createRuntimeExportsUtils = memo((pwd = "", namespace, ts = false) => {
130766
- const entryExportFile = path_1.default.join(pwd, `.runtime-exports/${namespace ? `${namespace}.js` : "index.js"}`);
130767
- const entryExportTsFile = path_1.default.join(pwd, `.runtime-exports/${namespace ? `${namespace}.d.ts` : "index.d.ts"}`);
131935
+ exports.createRuntimeExportsUtils = memo((pwd = "", namespace = "index") => {
131936
+ const entryExportFile = path_1.default.join(pwd, `.runtime-exports/${namespace}.js`);
130768
131937
  const addExport = (statement) => {
130769
131938
  statement = (0, path_2.normalizeOutputPath)(statement);
130770
131939
  try {
130771
131940
  compiled_1.fs.ensureFileSync(entryExportFile);
130772
- compiled_1.fs.ensureFileSync(entryExportTsFile);
130773
131941
  if (!compiled_1.fs.readFileSync(entryExportFile, "utf8").includes(statement)) {
130774
131942
  compiled_1.fs.appendFileSync(entryExportFile, `${statement}
130775
- `);
130776
- ts && compiled_1.fs.appendFileSync(entryExportTsFile, `${statement.replace(".js", ".d")}
130777
131943
  `);
130778
131944
  }
130779
131945
  } catch {
@@ -130849,7 +132015,7 @@ var require_prettyInstructions2 = __commonJSMin((exports) => {
130849
132015
  return mod && mod.__esModule ? mod : { "default": mod };
130850
132016
  };
130851
132017
  Object.defineProperty(exports, "__esModule", { value: true });
130852
- exports.prettyInstructions = exports.getIpv4Interfaces = exports.isSingleEntry = void 0;
132018
+ exports.prettyInstructions = exports.getAddressUrls = exports.getIpv4Interfaces = exports.isSingleEntry = void 0;
130853
132019
  var os_1 = __importDefault(__require("os"));
130854
132020
  var compiled_1 = require_compiled2();
130855
132021
  var is_1 = require_is2();
@@ -130883,9 +132049,10 @@ var require_prettyInstructions2 = __commonJSMin((exports) => {
130883
132049
  return memo;
130884
132050
  }, []);
130885
132051
  };
132052
+ exports.getAddressUrls = getAddressUrls;
130886
132053
  var prettyInstructions = (appContext, config) => {
130887
132054
  const { entrypoints, serverRoutes, port, apiOnly, checkedEntries } = appContext;
130888
- const urls = getAddressUrls(config.dev.https && (0, is_1.isDev)() ? "https" : "http", port);
132055
+ const urls = (0, exports.getAddressUrls)(config.dev.https && (0, is_1.isDev)() ? "https" : "http", port);
130889
132056
  const routes = !apiOnly ? serverRoutes.filter((route) => route.entryName) : serverRoutes;
130890
132057
  let message = "App running at:\n\n";
130891
132058
  if ((0, exports.isSingleEntry)(entrypoints) || apiOnly) {
@@ -131262,8 +132429,8 @@ var require_analyzeProject2 = __commonJSMin((exports) => {
131262
132429
  exports.isApiOnly = void 0;
131263
132430
  var path2 = __importStar(__require("path"));
131264
132431
  var compiled_1 = require_compiled2();
131265
- var isApiOnly = async (appDirectory) => {
131266
- const srcDir = path2.join(appDirectory, "src");
132432
+ var isApiOnly = async (appDirectory, entryDir) => {
132433
+ const srcDir = path2.join(appDirectory, entryDir !== null && entryDir !== void 0 ? entryDir : "src");
131267
132434
  const existSrc = await compiled_1.fs.pathExists(srcDir);
131268
132435
  const options3 = (0, compiled_1.minimist)(process.argv.slice(2));
131269
132436
  return !existSrc || Boolean(options3["api-only"]);
@@ -131280,11 +132447,16 @@ var require_chainId2 = __commonJSMin((exports) => {
131280
132447
  LOADERS: "loaders",
131281
132448
  FONT: "font",
131282
132449
  IMAGE: "image",
132450
+ MEDIA: "media",
131283
132451
  JS: "js",
131284
132452
  TS: "ts",
131285
132453
  CSS: "css",
131286
132454
  LESS: "less",
131287
- SASS: "sass"
132455
+ SASS: "sass",
132456
+ SVG: "svg",
132457
+ PUG: "pug",
132458
+ TOML: "toml",
132459
+ YAML: "yaml"
131288
132460
  },
131289
132461
  ONE_OF: {
131290
132462
  JS: "js",
@@ -131302,6 +132474,7 @@ var require_chainId2 = __commonJSMin((exports) => {
131302
132474
  SASS_MODULES: "sass-modules",
131303
132475
  SVG: "svg",
131304
132476
  SVG_URL: "svg-url",
132477
+ SVG_ASSET: "svg-asset",
131305
132478
  SVG_INLINE: "svg-inline",
131306
132479
  ASSETS: "assets",
131307
132480
  ASSETS_URL: "assets-url",
@@ -131313,12 +132486,14 @@ var require_chainId2 = __commonJSMin((exports) => {
131313
132486
  SASS: "sass",
131314
132487
  LESS: "less",
131315
132488
  URL: "url",
132489
+ PUG: "pug",
131316
132490
  FILE: "file",
131317
132491
  SVGR: "svgr",
131318
132492
  YAML: "yaml",
131319
132493
  TOML: "toml",
131320
132494
  HTML: "html",
131321
132495
  BABEL: "babel",
132496
+ ESBUILD: "esbuild",
131322
132497
  STYLE: "style-loader",
131323
132498
  POSTCSS: "postcss",
131324
132499
  MARKDOWN: "markdown",
@@ -131333,6 +132508,7 @@ var require_chainId2 = __commonJSMin((exports) => {
131333
132508
  IGNORE: "ignore",
131334
132509
  BANNER: "banner",
131335
132510
  PROGRESS: "progress",
132511
+ INSPECTOR: "inspector",
131336
132512
  APP_ICON: "app-icon",
131337
132513
  LOADABLE: "loadable",
131338
132514
  MANIFEST: "webpack-manifest",
@@ -131340,9 +132516,12 @@ var require_chainId2 = __commonJSMin((exports) => {
131340
132516
  INLINE_HTML: "inline-html",
131341
132517
  BUNDLE_ANALYZER: "bundle-analyze",
131342
132518
  BOTTOM_TEMPLATE: "bottom-template",
132519
+ HTML_CROSS_ORIGIN: "html-cross-origin",
131343
132520
  MINI_CSS_EXTRACT: "mini-css-extract",
131344
132521
  REACT_FAST_REFRESH: "react-fast-refresh",
131345
- NODE_POLYFILL_PROVIDE: "node-polyfill-provide"
132522
+ NODE_POLYFILL_PROVIDE: "node-polyfill-provide",
132523
+ MODULE_DEPENDENCY_ERROR: "module-dependency-error",
132524
+ SUBRESOURCE_INTEGRITY: "subresource-integrity"
131346
132525
  },
131347
132526
  MINIMIZER: {
131348
132527
  JS: "js",
@@ -131355,6 +132534,32 @@ var require_chainId2 = __commonJSMin((exports) => {
131355
132534
  }
131356
132535
  };
131357
132536
  });
132537
+ var require_reactVersion2 = __commonJSMin((exports) => {
132538
+ "use strict";
132539
+ var __importDefault = exports && exports.__importDefault || function(mod) {
132540
+ return mod && mod.__esModule ? mod : { "default": mod };
132541
+ };
132542
+ Object.defineProperty(exports, "__esModule", { value: true });
132543
+ exports.isReact18 = void 0;
132544
+ var path_1 = __importDefault(__require("path"));
132545
+ var compiled_1 = require_compiled2();
132546
+ var isReact18 = (cwd) => {
132547
+ const pkgPath = path_1.default.join(cwd, "package.json");
132548
+ if (!compiled_1.fs.existsSync(pkgPath)) {
132549
+ return false;
132550
+ }
132551
+ const pkgInfo = JSON.parse(compiled_1.fs.readFileSync(pkgPath, "utf8"));
132552
+ const deps = {
132553
+ ...pkgInfo.devDependencies,
132554
+ ...pkgInfo.dependencies
132555
+ };
132556
+ if (typeof deps.react !== "string") {
132557
+ return false;
132558
+ }
132559
+ return compiled_1.semver.satisfies(compiled_1.semver.minVersion(deps.react), ">=18.0.0");
132560
+ };
132561
+ exports.isReact18 = isReact18;
132562
+ });
131358
132563
  var require_dist3 = __commonJSMin((exports) => {
131359
132564
  "use strict";
131360
132565
  var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
@@ -131414,6 +132619,7 @@ var require_dist3 = __commonJSMin((exports) => {
131414
132619
  __exportStar(require_tryResolve2(), exports);
131415
132620
  __exportStar(require_analyzeProject2(), exports);
131416
132621
  __exportStar(require_chainId2(), exports);
132622
+ __exportStar(require_reactVersion2(), exports);
131417
132623
  });
131418
132624
  var require_strip_ansi4 = __commonJSMin((exports) => {
131419
132625
  "use strict";
@@ -131483,6 +132689,78 @@ var require_locale2 = __commonJSMin((exports) => {
131483
132689
  });
131484
132690
  exports.localeKeys = localeKeys3;
131485
132691
  });
132692
+ var require_package = __commonJSMin((exports) => {
132693
+ "use strict";
132694
+ Object.defineProperty(exports, "__esModule", {
132695
+ value: true
132696
+ });
132697
+ exports.getAvailableVersion = getAvailableVersion;
132698
+ exports.isPackageDeprecated = isPackageDeprecated;
132699
+ exports.isPackageExist = isPackageExist;
132700
+ exports.semverDecrease = semverDecrease;
132701
+ var _utils = require_dist3();
132702
+ async function isPackageExist(packageName, registry) {
132703
+ if (await (0, _utils.canUseNpm)()) {
132704
+ const args = ["view", packageName, "version"];
132705
+ if (registry) {
132706
+ args.push(`--registry=${registry}`);
132707
+ }
132708
+ const result = await (0, _utils.execa)("npm", args);
132709
+ return (0, _utils.stripAnsi)(result.stdout);
132710
+ }
132711
+ throw new Error("not found npm, please install npm before");
132712
+ }
132713
+ async function isPackageDeprecated(packageName, registry) {
132714
+ if (await (0, _utils.canUseNpm)()) {
132715
+ const args = ["view", packageName, "deprecated"];
132716
+ if (registry) {
132717
+ args.push(`--registry=${registry}`);
132718
+ }
132719
+ const result = await (0, _utils.execa)("npm", args);
132720
+ return (0, _utils.stripAnsi)(result.stdout);
132721
+ }
132722
+ throw new Error("not found npm, please install npm before");
132723
+ }
132724
+ function semverDecrease(version4) {
132725
+ const versionObj = _utils.semver.parse(version4, {
132726
+ loose: true
132727
+ });
132728
+ if (!versionObj) {
132729
+ throw new Error(`Version ${version4} is not valid semver`);
132730
+ }
132731
+ versionObj.build = [];
132732
+ versionObj.prerelease = [];
132733
+ versionObj.patch--;
132734
+ const result = versionObj.format();
132735
+ if (!_utils.semver.valid(result)) {
132736
+ _utils.logger.debug(`Version ${result} is not valid semver`);
132737
+ return version4;
132738
+ }
132739
+ return result;
132740
+ }
132741
+ async function getAvailableVersion(packageName, currentVersion, registry) {
132742
+ let times = 5;
132743
+ let version4 = currentVersion;
132744
+ while (times) {
132745
+ if (!await isPackageExist(`${packageName}@${version4}`, registry) || await isPackageDeprecated(`${packageName}@${version4}`, registry)) {
132746
+ version4 = _utils.semver.inc(version4, "patch");
132747
+ times--;
132748
+ continue;
132749
+ }
132750
+ return version4;
132751
+ }
132752
+ times = 5;
132753
+ while (times) {
132754
+ version4 = semverDecrease(version4);
132755
+ if (!await isPackageExist(`${packageName}@${version4}`, registry) || await isPackageDeprecated(`${packageName}@${version4}`, registry)) {
132756
+ times--;
132757
+ continue;
132758
+ }
132759
+ return version4;
132760
+ }
132761
+ return currentVersion;
132762
+ }
132763
+ });
131486
132764
  var require_utils11 = __commonJSMin((exports) => {
131487
132765
  "use strict";
131488
132766
  Object.defineProperty(exports, "__esModule", {
@@ -131501,6 +132779,19 @@ var require_utils11 = __commonJSMin((exports) => {
131501
132779
  }
131502
132780
  });
131503
132781
  });
132782
+ var _package = require_package();
132783
+ Object.keys(_package).forEach(function(key) {
132784
+ if (key === "default" || key === "__esModule")
132785
+ return;
132786
+ if (key in exports && exports[key] === _package[key])
132787
+ return;
132788
+ Object.defineProperty(exports, key, {
132789
+ enumerable: true,
132790
+ get: function() {
132791
+ return _package[key];
132792
+ }
132793
+ });
132794
+ });
131504
132795
  });
131505
132796
  var require_node9 = __commonJSMin((exports) => {
131506
132797
  "use strict";
@@ -131509,6 +132800,8 @@ var require_node9 = __commonJSMin((exports) => {
131509
132800
  });
131510
132801
  var _exportNames = {
131511
132802
  getPackageVersion: true,
132803
+ getModernVersion: true,
132804
+ getModernPluginVersion: true,
131512
132805
  getPackageManagerText: true,
131513
132806
  isTsProject: true,
131514
132807
  getPackageObj: true,
@@ -131517,13 +132810,16 @@ var require_node9 = __commonJSMin((exports) => {
131517
132810
  validatePackagePath: true,
131518
132811
  getModuleProjectPath: true,
131519
132812
  getMWAProjectPath: true,
132813
+ ora: true,
131520
132814
  fs: true,
132815
+ semver: true,
131521
132816
  execa: true,
131522
132817
  readTsConfigByFile: true,
131523
132818
  getPackageManager: true,
131524
132819
  canUseNpm: true,
131525
132820
  canUsePnpm: true,
131526
132821
  canUseYarn: true,
132822
+ isReact18: true,
131527
132823
  i18n: true
131528
132824
  };
131529
132825
  Object.defineProperty(exports, "canUseNpm", {
@@ -131558,6 +132854,8 @@ var require_node9 = __commonJSMin((exports) => {
131558
132854
  });
131559
132855
  exports.getAllPackages = getAllPackages2;
131560
132856
  exports.getMWAProjectPath = getMWAProjectPath2;
132857
+ exports.getModernPluginVersion = getModernPluginVersion;
132858
+ exports.getModernVersion = getModernVersion2;
131561
132859
  exports.getModuleProjectPath = getModuleProjectPath;
131562
132860
  Object.defineProperty(exports, "getPackageManager", {
131563
132861
  enumerable: true,
@@ -131567,26 +132865,46 @@ var require_node9 = __commonJSMin((exports) => {
131567
132865
  });
131568
132866
  exports.getPackageManagerText = getPackageManagerText2;
131569
132867
  exports.getPackageObj = getPackageObj;
131570
- exports.getPackageVersion = getPackageVersion2;
132868
+ exports.getPackageVersion = getPackageVersion;
131571
132869
  Object.defineProperty(exports, "i18n", {
131572
132870
  enumerable: true,
131573
132871
  get: function() {
131574
132872
  return _locale.i18n;
131575
132873
  }
131576
132874
  });
132875
+ Object.defineProperty(exports, "isReact18", {
132876
+ enumerable: true,
132877
+ get: function() {
132878
+ return _utils.isReact18;
132879
+ }
132880
+ });
131577
132881
  exports.isTsProject = isTsProject;
132882
+ Object.defineProperty(exports, "ora", {
132883
+ enumerable: true,
132884
+ get: function() {
132885
+ return _utils.ora;
132886
+ }
132887
+ });
131578
132888
  Object.defineProperty(exports, "readTsConfigByFile", {
131579
132889
  enumerable: true,
131580
132890
  get: function() {
131581
132891
  return _utils.readTsConfigByFile;
131582
132892
  }
131583
132893
  });
132894
+ Object.defineProperty(exports, "semver", {
132895
+ enumerable: true,
132896
+ get: function() {
132897
+ return _utils.semver;
132898
+ }
132899
+ });
131584
132900
  exports.validatePackageName = validatePackageName2;
131585
132901
  exports.validatePackagePath = validatePackagePath2;
131586
132902
  var _path = _interopRequireDefault(__require("path"));
131587
132903
  var _utils = require_dist3();
132904
+ var _generatorCommon = (init_treeshaking4(), __toCommonJS2(treeshaking_exports4));
131588
132905
  var _stripAnsi = require_strip_ansi4();
131589
132906
  var _locale = require_locale2();
132907
+ var _package = require_package();
131590
132908
  var _utils2 = require_utils11();
131591
132909
  Object.keys(_utils2).forEach(function(key) {
131592
132910
  if (key === "default" || key === "__esModule")
@@ -131605,7 +132923,7 @@ var require_node9 = __commonJSMin((exports) => {
131605
132923
  function _interopRequireDefault(obj) {
131606
132924
  return obj && obj.__esModule ? obj : { default: obj };
131607
132925
  }
131608
- async function getPackageVersion2(packageName, registry) {
132926
+ async function getPackageVersion(packageName, registry) {
131609
132927
  const spinner = (0, _utils.ora)("Loading...").start();
131610
132928
  spinner.color = "yellow";
131611
132929
  if (await (0, _utils.canUsePnpm)()) {
@@ -131638,6 +132956,39 @@ var require_node9 = __commonJSMin((exports) => {
131638
132956
  spinner.stop();
131639
132957
  throw new Error("not found npm, please install npm before");
131640
132958
  }
132959
+ async function getModernVersion2(solution, registry) {
132960
+ const dep = _generatorCommon.SolutionToolsMap[solution];
132961
+ const modernVersion = await getPackageVersion(dep, registry);
132962
+ return modernVersion;
132963
+ }
132964
+ async function getModernPluginVersion(solution, packageName, options3 = {}) {
132965
+ const {
132966
+ cwd = process.cwd(),
132967
+ registry
132968
+ } = options3;
132969
+ const getLatetPluginVersion = async () => {
132970
+ const version4 = await getPackageVersion(packageName, registry);
132971
+ return version4;
132972
+ };
132973
+ if (!packageName.startsWith("@modern-js")) {
132974
+ return getLatetPluginVersion();
132975
+ }
132976
+ const pkgPath = _path.default.join(__require.resolve(_generatorCommon.SolutionToolsMap[solution], {
132977
+ paths: [cwd]
132978
+ }), "../../../../", "package.json");
132979
+ if (_utils.fs.existsSync(pkgPath)) {
132980
+ const pkgInfo = _utils.fs.readJSONSync(pkgPath);
132981
+ const modernVersion = pkgInfo.version;
132982
+ if (typeof modernVersion !== "string") {
132983
+ return getLatetPluginVersion();
132984
+ }
132985
+ if (_utils.semver.lt(modernVersion, "1.15.0")) {
132986
+ return getLatetPluginVersion();
132987
+ }
132988
+ return (0, _package.getAvailableVersion)(packageName, modernVersion, registry);
132989
+ }
132990
+ return getLatetPluginVersion();
132991
+ }
131641
132992
  function getPackageManagerText2(packageManager) {
131642
132993
  return packageManager === "yarn" ? "yarn" : `${packageManager} run`;
131643
132994
  }
@@ -131711,745 +133062,7 @@ var require_node9 = __commonJSMin((exports) => {
131711
133062
  });
131712
133063
  var import_codesmith_api_app = __toESM2(require_node7());
131713
133064
  var import_codesmith_api_json = __toESM2(require_node8());
131714
- init_defineProperty();
131715
- init_treeshaking3();
131716
- var ZH_LOCALE = {
131717
- solution: {
131718
- self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u521B\u5EFA\u7684\u5DE5\u7A0B\u7C7B\u578B",
131719
- mwa: "\u5E94\u7528",
131720
- module: "\u6A21\u5757",
131721
- monorepo: "Monorepo",
131722
- custom: "\u81EA\u5B9A\u4E49",
131723
- "default": "\u9ED8\u8BA4"
131724
- },
131725
- scenes: {
131726
- self: "\u8BF7\u9009\u62E9\u9879\u76EE\u573A\u666F"
131727
- },
131728
- sub_solution: {
131729
- self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u521B\u5EFA\u7684\u5DE5\u7A0B\u7C7B\u578B",
131730
- mwa: "\u5E94\u7528",
131731
- mwa_test: "\u5E94\u7528\uFF08\u6D4B\u8BD5\uFF09",
131732
- module: "\u6A21\u5757",
131733
- inner_module: "\u6A21\u5757\uFF08\u5185\u90E8\uFF09"
131734
- },
131735
- action: {
131736
- self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u8981\u7684\u64CD\u4F5C",
131737
- "function": {
131738
- self: "\u542F\u7528\u53EF\u9009\u529F\u80FD",
131739
- tailwindcss: "\u542F\u7528 Tailwind CSS \u652F\u6301",
131740
- less: "\u542F\u7528 Less \u652F\u6301",
131741
- sass: "\u542F\u7528 Sass \u652F\u6301",
131742
- bff: "\u542F\u7528\u300CBFF\u300D\u529F\u80FD",
131743
- micro_frontend: "\u542F\u7528\u300C\u5FAE\u524D\u7AEF\u300D\u6A21\u5F0F",
131744
- electron: "\u542F\u7528\u300CElectron\u300D\u6A21\u5F0F",
131745
- i18n: "\u542F\u7528\u300C\u56FD\u9645\u5316\uFF08i18n\uFF09\u300D\u529F\u80FD",
131746
- test: "\u542F\u7528\u300C\u5355\u5143\u6D4B\u8BD5 / \u96C6\u6210\u6D4B\u8BD5\u300D\u529F\u80FD",
131747
- e2e_test: "\u542F\u7528\u300CE2E \u6D4B\u8BD5\u300D\u529F\u80FD",
131748
- doc: "\u542F\u7528\u300C\u6587\u6863\u7AD9\u300D\u529F\u80FD",
131749
- storybook: "\u542F\u7528\u300CStorybook\u300D",
131750
- runtime_api: "\u542F\u7528\u300CRuntime API\u300D",
131751
- mwa_storybook: "\u542F\u7528\u300CVisual Testing (Storybook)\u300D\u6A21\u5F0F",
131752
- ssg: "\u542F\u7528\u300CSSG\u300D\u529F\u80FD",
131753
- polyfill: "\u542F\u7528\u300C\u57FA\u4E8E UA \u7684 Polyfill\u300D\u529F\u80FD",
131754
- deploy: "\u542F\u7528\u300C\u90E8\u7F72\u300D\u529F\u80FD",
131755
- proxy: "\u542F\u7528\u300C\u5168\u5C40\u4EE3\u7406\u300D"
131756
- },
131757
- element: {
131758
- self: "\u521B\u5EFA\u5DE5\u7A0B\u5143\u7D20",
131759
- entry: "\u65B0\u5EFA\u300C\u5E94\u7528\u5165\u53E3\u300D",
131760
- server: "\u65B0\u5EFA\u300CServer \u81EA\u5B9A\u4E49\u300D\u6E90\u7801\u76EE\u5F55"
131761
- },
131762
- refactor: {
131763
- self: "\u81EA\u52A8\u91CD\u6784",
131764
- bff_to_app: "BFF \u5207\u6362\u6846\u67B6\u6A21\u5F0F"
131765
- }
131766
- },
131767
- "boolean": {
131768
- yes: "\u662F",
131769
- no: "\u5426"
131770
- },
131771
- language: {
131772
- self: "\u8BF7\u9009\u62E9\u5F00\u53D1\u8BED\u8A00"
131773
- },
131774
- packageManager: {
131775
- self: "\u8BF7\u9009\u62E9\u5305\u7BA1\u7406\u5DE5\u5177"
131776
- },
131777
- runWay: {
131778
- self: "\u662F\u5426\u9700\u8981\u652F\u6301\u4EE5\u4E0B\u7C7B\u578B\u5E94\u7528",
131779
- no: "\u4E0D\u9700\u8981",
131780
- electron: "Electron"
131781
- },
131782
- needModifyConfig: {
131783
- self: "\u662F\u5426\u9700\u8981\u8C03\u6574\u9ED8\u8BA4\u914D\u7F6E?",
131784
- enableLess: "\u662F\u5426\u542F\u7528 Less \u652F\u6301?",
131785
- enableSass: "\u662F\u5426\u542F\u7528 Sass \u652F\u6301?"
131786
- },
131787
- entry: {
131788
- name: "\u8BF7\u586B\u5199\u5165\u53E3\u540D\u79F0",
131789
- no_empty: "\u5165\u53E3\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01",
131790
- no_pages: '\u5165\u53E3\u540D\u79F0\u4E0D\u652F\u6301 "pages"\uFF01',
131791
- needModifyConfig: "\u662F\u5426\u9700\u8981\u8C03\u6574\u9ED8\u8BA4\u914D\u7F6E?",
131792
- disableStateManagement: "\u662F\u5426\u5173\u95ED\u300C\u5E94\u7528\u72B6\u6001\u7BA1\u7406\u300D\u529F\u80FD?",
131793
- clientRoute: {
131794
- self: "\u8BF7\u9009\u62E9\u5BA2\u6237\u7AEF\u8DEF\u7531\u65B9\u5F0F",
131795
- selfControlRoute: "\u542F\u7528\u81EA\u63A7\u8DEF\u7531",
131796
- conventionalRoute: "\u542F\u7528\u7EA6\u5B9A\u5F0F\u8DEF\u7531",
131797
- no: "\u4E0D\u542F\u7528"
131798
- }
131799
- },
131800
- packageName: {
131801
- self: "\u8BF7\u586B\u5199\u9879\u76EE\u540D\u79F0",
131802
- sub_name: "\u8BF7\u586B\u5199\u5B50\u9879\u76EE\u540D\u79F0",
131803
- no_empty: "\u9879\u76EE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01"
131804
- },
131805
- packagePath: {
131806
- self: "\u8BF7\u586B\u5199\u5B50\u9879\u76EE\u76EE\u5F55\u540D\u79F0",
131807
- no_empty: "\u76EE\u5F55\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01",
131808
- format: "\u76EE\u5F55\u540D\u79F0\u53EA\u80FD\u4F7F\u7528\u5C0F\u5199\u5B57\u6BCD\u3001\u6570\u5B57\u548C\u5206\u9694\u7EBF\uFF08-\uFF09\u3001\u4E0B\u5212\u7EBF\uFF08_\uFF09\u548C\u76EE\u5F55\u5206\u9694\u7B26\uFF08/\uFF09"
131809
- },
131810
- framework: {
131811
- self: "\u8BF7\u9009\u62E9\u8FD0\u884C\u65F6\u6846\u67B6",
131812
- egg: "Egg",
131813
- express: "Express",
131814
- koa: "Koa",
131815
- nest: "Nest"
131816
- },
131817
- bff: {
131818
- bffType: {
131819
- self: "\u8BF7\u9009\u62E9 BFF \u7C7B\u578B",
131820
- func: "\u51FD\u6570\u6A21\u5F0F",
131821
- framework: "\u6846\u67B6\u6A21\u5F0F"
131822
- }
131823
- },
131824
- deploy: {
131825
- cloud: {
131826
- self: "\u9ED8\u8BA4\u4F7F\u7528\u6846\u67B6\u5185\u7F6E\u7684\u4EA7\u54C1\u7EA7 Web \u670D\u52A1\u5668\uFF0C\u662F\u5426\u8C03\u6574\uFF1F"
131827
- },
131828
- cdn: {
131829
- self: "\u8BF7\u9009\u62E9 CDN \u5E73\u53F0",
131830
- oss: "\u963F\u91CC\u4E91 OSS",
131831
- cos: "\u817E\u8BAF\u4E91 COS",
131832
- no: "\u4E0D\u4F7F\u7528 CDN"
131833
- },
131834
- lambda: {
131835
- self: "\u8BF7\u9009\u62E9\u4E91\u51FD\u6570\u5E73\u53F0",
131836
- fc: "\u963F\u91CC\u4E91 FC",
131837
- scf: "\u817E\u8BAF\u4E91 SCF",
131838
- no: "\u4E0D\u4F7F\u7528\u4E91\u51FD\u6570\u90E8\u7F72"
131839
- }
131840
- }
131841
- };
131842
- var EN_LOCALE = {
131843
- solution: {
131844
- self: "Please select the solution you want to create",
131845
- mwa: "MWA Solution",
131846
- module: "Module Solution",
131847
- monorepo: "Monorepo Solution",
131848
- custom: "Custom Solution",
131849
- "default": "Default"
131850
- },
131851
- scenes: {
131852
- self: "Please select the scene you want to create"
131853
- },
131854
- sub_solution: {
131855
- self: "Please select the solution you want to create",
131856
- mwa: "MWA Solution",
131857
- mwa_test: "MWA Solution(Test)",
131858
- module: "Module Solution",
131859
- inner_module: "Module Solution(Inner)",
131860
- monorepo: "Monorepo Solution"
131861
- },
131862
- action: {
131863
- self: "Action",
131864
- "function": {
131865
- self: "Enable features",
131866
- tailwindcss: "Enable Tailwind CSS",
131867
- less: "Enable Less",
131868
- sass: "Enable Sass",
131869
- bff: "Enable BFF",
131870
- micro_frontend: "Enable Micro Frontend",
131871
- electron: "Enable Electron",
131872
- i18n: "Enable Internationalization (i18n)",
131873
- test: "Enable Unit Test / Integration Test",
131874
- e2e_test: "Enable E2E Test",
131875
- doc: "Enable Document Station",
131876
- storybook: "Enable Storybook",
131877
- runtime_api: "Enable Runtime API",
131878
- mwa_storybook: "Enable Visual Testing (Storybook)",
131879
- ssg: "Enable SSG",
131880
- polyfill: "Enable UA-based Polyfill Feature",
131881
- deploy: "Enable Deploy",
131882
- proxy: "Enable Global Proxy"
131883
- },
131884
- element: {
131885
- self: "Create project element",
131886
- entry: 'New "entry"',
131887
- server: 'New "Server Custom" source code directory'
131888
- },
131889
- refactor: {
131890
- self: "Automatic refactor",
131891
- bff_to_app: "Transform BFF to frame mode"
131892
- }
131893
- },
131894
- "boolean": {
131895
- yes: "Yes",
131896
- no: "No"
131897
- },
131898
- language: {
131899
- self: "Development Language"
131900
- },
131901
- packageManager: {
131902
- self: "Package Management Tool"
131903
- },
131904
- packageName: {
131905
- self: "Package Name",
131906
- sub_name: "Package Name",
131907
- no_empty: "The package name cannot be empty!"
131908
- },
131909
- packagePath: {
131910
- self: "Package Path",
131911
- no_empty: "The package path cannot be empty!",
131912
- format: "Only lowercase letters, numbers and delimiters (-), and underscore (_), and directory delimiters (/) can be used in package path."
131913
- },
131914
- runWay: {
131915
- self: "Do you need to support the following types of applications",
131916
- no: "Not Enabled",
131917
- electron: "Electron"
131918
- },
131919
- needModifyConfig: {
131920
- self: "Modify the Default Configuration?",
131921
- enableLess: "Enable Less?",
131922
- enableSass: "Enable Sass?"
131923
- },
131924
- entry: {
131925
- name: "Entry name",
131926
- no_empty: "The entry name cannot be empty!",
131927
- no_pages: 'The entry name cannot be "pages"!',
131928
- disableStateManagement: "Disable App State Management?",
131929
- clientRoute: {
131930
- self: "Client Routing",
131931
- selfControlRoute: "Enable Self Control Route",
131932
- conventionalRoute: "Enable Conventional Route",
131933
- no: "Not Enabled"
131934
- }
131935
- },
131936
- framework: {
131937
- self: "Please select the framework you want to use",
131938
- egg: "Egg",
131939
- express: "Express",
131940
- koa: "Koa",
131941
- nest: "Nest"
131942
- },
131943
- bff: {
131944
- bffType: {
131945
- self: "BFF Type",
131946
- func: "Function",
131947
- framework: "Framework"
131948
- }
131949
- },
131950
- deploy: {
131951
- cloud: {
131952
- self: "Modify the default Web Server?"
131953
- },
131954
- cdn: {
131955
- self: "Please select the cdn platform you want to use",
131956
- oss: "Aliyun OSS",
131957
- cos: "Tencent COS",
131958
- no: "Not Enabled"
131959
- },
131960
- lambda: {
131961
- self: "Please select the lambda you want to use",
131962
- fc: "Aliyun FC",
131963
- scf: "Tencent SCF",
131964
- no: "Not Enabled"
131965
- }
131966
- }
131967
- };
131968
- var i18n = new I18n2();
131969
- var localeKeys = i18n.init("zh", {
131970
- zh: ZH_LOCALE,
131971
- en: EN_LOCALE
131972
- });
131973
- var _BooleanConfigName;
131974
- var BooleanConfig;
131975
- (function(BooleanConfig2) {
131976
- BooleanConfig2["NO"] = "no";
131977
- BooleanConfig2["YES"] = "yes";
131978
- })(BooleanConfig || (BooleanConfig = {}));
131979
- var BooleanConfigName = (_BooleanConfigName = {}, _defineProperty(_BooleanConfigName, BooleanConfig.NO, function() {
131980
- return i18n.t(localeKeys["boolean"].no);
131981
- }), _defineProperty(_BooleanConfigName, BooleanConfig.YES, function() {
131982
- return i18n.t(localeKeys["boolean"].yes);
131983
- }), _BooleanConfigName);
131984
- var BooleanSchemas = [{
131985
- key: BooleanConfig.NO,
131986
- label: BooleanConfigName[BooleanConfig.NO]
131987
- }, {
131988
- key: BooleanConfig.YES,
131989
- label: BooleanConfigName[BooleanConfig.YES]
131990
- }];
131991
- init_toConsumableArray();
131992
- init_defineProperty();
131993
- var _SolutionText;
131994
- var _SubSolutionText;
131995
- var _SolutionGenerator;
131996
- var _SubSolutionGenerator;
131997
- var Solution;
131998
- (function(Solution2) {
131999
- Solution2["MWA"] = "mwa";
132000
- Solution2["Module"] = "module";
132001
- Solution2["Monorepo"] = "monorepo";
132002
- })(Solution || (Solution = {}));
132003
- var SubSolution;
132004
- (function(SubSolution2) {
132005
- SubSolution2["MWA"] = "mwa";
132006
- SubSolution2["MWATest"] = "mwa_test";
132007
- SubSolution2["Module"] = "module";
132008
- SubSolution2["InnerModule"] = "inner_module";
132009
- })(SubSolution || (SubSolution = {}));
132010
- var SolutionText = (_SolutionText = {}, _defineProperty(_SolutionText, Solution.MWA, function() {
132011
- return i18n.t(localeKeys.solution.mwa);
132012
- }), _defineProperty(_SolutionText, Solution.Module, function() {
132013
- return i18n.t(localeKeys.solution.module);
132014
- }), _defineProperty(_SolutionText, Solution.Monorepo, function() {
132015
- return i18n.t(localeKeys.solution.monorepo);
132016
- }), _SolutionText);
132017
- var SubSolutionText = (_SubSolutionText = {}, _defineProperty(_SubSolutionText, SubSolution.MWA, function() {
132018
- return i18n.t(localeKeys.sub_solution.mwa);
132019
- }), _defineProperty(_SubSolutionText, SubSolution.MWATest, function() {
132020
- return i18n.t(localeKeys.sub_solution.mwa_test);
132021
- }), _defineProperty(_SubSolutionText, SubSolution.Module, function() {
132022
- return i18n.t(localeKeys.sub_solution.module);
132023
- }), _defineProperty(_SubSolutionText, SubSolution.InnerModule, function() {
132024
- return i18n.t(localeKeys.sub_solution.inner_module);
132025
- }), _SubSolutionText);
132026
- var BaseGenerator = "@modern-js/base-generator";
132027
- var SolutionGenerator = (_SolutionGenerator = {}, _defineProperty(_SolutionGenerator, Solution.MWA, "@modern-js/mwa-generator"), _defineProperty(_SolutionGenerator, Solution.Module, "@modern-js/module-generator"), _defineProperty(_SolutionGenerator, Solution.Monorepo, "@modern-js/monorepo-generator"), _SolutionGenerator);
132028
- var SubSolutionGenerator = (_SubSolutionGenerator = {}, _defineProperty(_SubSolutionGenerator, SubSolution.MWA, "@modern-js/mwa-generator"), _defineProperty(_SubSolutionGenerator, SubSolution.MWATest, "@modern-js/mwa-generator"), _defineProperty(_SubSolutionGenerator, SubSolution.Module, "@modern-js/module-generator"), _defineProperty(_SubSolutionGenerator, SubSolution.InnerModule, "@modern-js/module-generator"), _SubSolutionGenerator);
132029
- var DependenceGenerator = "@modern-js/dependence-generator";
132030
- var EntryGenerator = "@modern-js/entry-generator";
132031
- var ElectronGenerator = "@modern-js/electron-generator";
132032
- init_defineProperty();
132033
- var _LanguageName;
132034
- var Language;
132035
- (function(Language2) {
132036
- Language2["TS"] = "ts";
132037
- Language2["JS"] = "js";
132038
- })(Language || (Language = {}));
132039
- var LanguageName = (_LanguageName = {}, _defineProperty(_LanguageName, Language.TS, function() {
132040
- return "TS";
132041
- }), _defineProperty(_LanguageName, Language.JS, function() {
132042
- return "ES6+";
132043
- }), _LanguageName);
132044
- var LanguageSchema = {
132045
- key: "language",
132046
- type: ["string"],
132047
- label: function label() {
132048
- return i18n.t(localeKeys.language.self);
132049
- },
132050
- mutualExclusion: true,
132051
- items: Object.values(Language).map(function(language) {
132052
- return {
132053
- key: language,
132054
- label: LanguageName[language]
132055
- };
132056
- })
132057
- };
132058
- init_defineProperty();
132059
- var _PackageManagerName;
132060
- var PackageManager;
132061
- (function(PackageManager2) {
132062
- PackageManager2["Pnpm"] = "pnpm";
132063
- PackageManager2["Yarn"] = "yarn";
132064
- PackageManager2["Npm"] = "npm";
132065
- })(PackageManager || (PackageManager = {}));
132066
- var PackageManagerName = (_PackageManagerName = {}, _defineProperty(_PackageManagerName, PackageManager.Pnpm, function() {
132067
- return "pnpm";
132068
- }), _defineProperty(_PackageManagerName, PackageManager.Yarn, function() {
132069
- return "Yarn";
132070
- }), _defineProperty(_PackageManagerName, PackageManager.Npm, function() {
132071
- return "npm";
132072
- }), _PackageManagerName);
132073
- var PackageManagerSchema = {
132074
- key: "packageManager",
132075
- type: ["string"],
132076
- label: function label2() {
132077
- return i18n.t(localeKeys.packageManager.self);
132078
- },
132079
- mutualExclusion: true,
132080
- when: function when(_values, extra) {
132081
- return !(extra !== null && extra !== void 0 && extra.isMonorepoSubProject) && !(extra !== null && extra !== void 0 && extra.isSubProject);
132082
- },
132083
- items: Object.values(PackageManager).map(function(packageManager) {
132084
- return {
132085
- key: packageManager,
132086
- label: PackageManagerName[packageManager]
132087
- };
132088
- })
132089
- };
132090
- var PackageNameSchema = {
132091
- key: "packageName",
132092
- label: function label3(_, extra) {
132093
- return extra !== null && extra !== void 0 && extra.isMonorepoSubProject ? i18n.t(localeKeys.packageName.sub_name) : i18n.t(localeKeys.packageName.self);
132094
- },
132095
- type: ["string"],
132096
- when: function when2(_, extra) {
132097
- return Boolean(extra === null || extra === void 0 ? void 0 : extra.isMonorepoSubProject) || !(extra !== null && extra !== void 0 && extra.isMwa);
132098
- },
132099
- validate: function validate(value) {
132100
- if (!value) {
132101
- return {
132102
- success: false,
132103
- message: i18n.t(localeKeys.packageName.no_empty)
132104
- };
132105
- }
132106
- return {
132107
- success: true
132108
- };
132109
- }
132110
- };
132111
- var PackagePathRegex = new RegExp("^[a-z0-9]*[-_/]?([a-z0-9]*[-_]?[a-z0-9]*)*[-_/]?[a-z0-9-_]+$");
132112
- var PackagePathSchema = {
132113
- key: "packagePath",
132114
- label: function label4() {
132115
- return i18n.t(localeKeys.packagePath.self);
132116
- },
132117
- type: ["string"],
132118
- when: function when3(_, extra) {
132119
- return Boolean(extra === null || extra === void 0 ? void 0 : extra.isMonorepoSubProject);
132120
- },
132121
- state: {
132122
- value: {
132123
- effectedByFields: ["packageName"],
132124
- action: function action(data) {
132125
- return "".concat(data.packageName || "");
132126
- }
132127
- }
132128
- },
132129
- validate: function validate2(value) {
132130
- if (!value) {
132131
- return {
132132
- success: false,
132133
- message: i18n.t(localeKeys.packagePath.no_empty)
132134
- };
132135
- }
132136
- if (!PackagePathRegex.test(value)) {
132137
- return {
132138
- success: false,
132139
- message: i18n.t(localeKeys.packagePath.format)
132140
- };
132141
- }
132142
- return {
132143
- success: true
132144
- };
132145
- }
132146
- };
132147
- var EnableLessSchema = {
132148
- key: "enableLess",
132149
- type: ["string"],
132150
- label: function label5() {
132151
- return i18n.t(localeKeys.needModifyConfig.enableLess);
132152
- },
132153
- mutualExclusion: true,
132154
- state: {
132155
- value: BooleanConfig.NO
132156
- },
132157
- items: BooleanSchemas
132158
- };
132159
- var EnableSassSchema = {
132160
- key: "enableSass",
132161
- type: ["string"],
132162
- label: function label6() {
132163
- return i18n.t(localeKeys.needModifyConfig.enableSass);
132164
- },
132165
- mutualExclusion: true,
132166
- state: {
132167
- value: BooleanConfig.NO
132168
- },
132169
- items: BooleanSchemas
132170
- };
132171
- init_defineProperty();
132172
- init_objectSpread2();
132173
- var _FrameworkAppendTypeC;
132174
- var mwaConfigWhenFunc = function mwaConfigWhenFunc2(values) {
132175
- return values.needModifyMWAConfig === BooleanConfig.YES;
132176
- };
132177
- var RunWay;
132178
- (function(RunWay2) {
132179
- RunWay2["No"] = "no";
132180
- RunWay2["Electron"] = "electron";
132181
- })(RunWay || (RunWay = {}));
132182
- var RunWaySchema = {
132183
- key: "runWay",
132184
- type: ["string"],
132185
- label: function label7() {
132186
- return i18n.t(localeKeys.runWay.self);
132187
- },
132188
- mutualExclusion: true,
132189
- when: function when4(_, extra) {
132190
- return (extra === null || extra === void 0 ? void 0 : extra.isEmptySrc) === void 0 ? true : Boolean(extra === null || extra === void 0 ? void 0 : extra.isEmptySrc);
132191
- },
132192
- state: {
132193
- value: RunWay.No
132194
- },
132195
- items: Object.values(RunWay).map(function(runWay) {
132196
- return {
132197
- key: runWay,
132198
- label: function label14() {
132199
- return i18n.t(localeKeys.runWay[runWay]);
132200
- }
132201
- };
132202
- })
132203
- };
132204
- var ClientRoute;
132205
- (function(ClientRoute2) {
132206
- ClientRoute2["SelfControlRoute"] = "selfControlRoute";
132207
- ClientRoute2["ConventionalRoute"] = "conventionalRoute";
132208
- ClientRoute2["No"] = "no";
132209
- })(ClientRoute || (ClientRoute = {}));
132210
- var ClientRouteSchema = {
132211
- key: "clientRoute",
132212
- type: ["string"],
132213
- label: function label8() {
132214
- return i18n.t(localeKeys.entry.clientRoute.self);
132215
- },
132216
- mutualExclusion: true,
132217
- when: mwaConfigWhenFunc,
132218
- state: {
132219
- value: ClientRoute.SelfControlRoute
132220
- },
132221
- items: Object.values(ClientRoute).map(function(clientRoute) {
132222
- return {
132223
- key: clientRoute,
132224
- label: function label14() {
132225
- return i18n.t(localeKeys.entry.clientRoute[clientRoute]);
132226
- }
132227
- };
132228
- })
132229
- };
132230
- var DisableStateManagementSchema = {
132231
- key: "disableStateManagement",
132232
- type: ["string"],
132233
- label: function label9() {
132234
- return i18n.t(localeKeys.entry.disableStateManagement);
132235
- },
132236
- mutualExclusion: true,
132237
- when: mwaConfigWhenFunc,
132238
- state: {
132239
- value: BooleanConfig.NO
132240
- },
132241
- items: BooleanSchemas
132242
- };
132243
- var EnableMWALessSchema = _objectSpread2(_objectSpread2({}, EnableLessSchema), {}, {
132244
- when: mwaConfigWhenFunc
132245
- });
132246
- var EnableMWASassSchema = _objectSpread2(_objectSpread2({}, EnableSassSchema), {}, {
132247
- when: mwaConfigWhenFunc
132248
- });
132249
- var NeedModifyMWAConfigSchema = {
132250
- key: "needModifyMWAConfig",
132251
- label: function label10() {
132252
- return i18n.t(localeKeys.needModifyConfig.self);
132253
- },
132254
- type: ["string"],
132255
- mutualExclusion: true,
132256
- state: {
132257
- value: BooleanConfig.NO
132258
- },
132259
- items: BooleanSchemas
132260
- };
132261
- var Framework;
132262
- (function(Framework2) {
132263
- Framework2["Express"] = "express";
132264
- Framework2["Koa"] = "koa";
132265
- Framework2["Egg"] = "egg";
132266
- Framework2["Nest"] = "nest";
132267
- })(Framework || (Framework = {}));
132268
- var FrameworkSchema = {
132269
- key: "framework",
132270
- type: ["string"],
132271
- label: function label11() {
132272
- return i18n.t(localeKeys.framework.self);
132273
- },
132274
- mutualExclusion: true,
132275
- items: Object.values(Framework).map(function(framework) {
132276
- return {
132277
- key: framework,
132278
- label: function label14() {
132279
- return i18n.t(localeKeys.framework[framework]);
132280
- }
132281
- };
132282
- })
132283
- };
132284
- var FrameworkAppendTypeContent = (_FrameworkAppendTypeC = {}, _defineProperty(_FrameworkAppendTypeC, Framework.Express, "/// <reference types='@modern-js/plugin-express/types' />"), _defineProperty(_FrameworkAppendTypeC, Framework.Koa, "/// <reference types='@modern-js/plugin-koa/types' />"), _defineProperty(_FrameworkAppendTypeC, Framework.Egg, "/// <reference types='@modern-js/plugin-egg/types' />"), _defineProperty(_FrameworkAppendTypeC, Framework.Nest, "/// <reference types='@modern-js/plugin-nest/types' />"), _FrameworkAppendTypeC);
132285
- var MWASchemas = [PackageNameSchema, PackagePathSchema, LanguageSchema, PackageManagerSchema, RunWaySchema, NeedModifyMWAConfigSchema, ClientRouteSchema, DisableStateManagementSchema, EnableMWALessSchema, EnableMWASassSchema];
132286
- var MWASchema = {
132287
- key: "mwa",
132288
- isObject: true,
132289
- items: MWASchemas
132290
- };
132291
- var MWADefaultConfig = {
132292
- language: Language.TS,
132293
- packageManager: PackageManager.Pnpm,
132294
- runWay: RunWay.No,
132295
- needModifyMWAConfig: BooleanConfig.NO,
132296
- clientRoute: ClientRoute.SelfControlRoute,
132297
- disableStateManagement: BooleanConfig.NO,
132298
- enableLess: BooleanConfig.NO,
132299
- enableSass: BooleanConfig.NO
132300
- };
132301
- init_defineProperty();
132302
- var _ActionTypeText;
132303
- var _ActionElementText;
132304
- var _ActionFunctionText;
132305
- var _ActionTypeTextMap;
132306
- var ActionType;
132307
- (function(ActionType2) {
132308
- ActionType2["Function"] = "function";
132309
- ActionType2["Element"] = "element";
132310
- ActionType2["Refactor"] = "refactor";
132311
- })(ActionType || (ActionType = {}));
132312
- var ActionElement;
132313
- (function(ActionElement2) {
132314
- ActionElement2["Entry"] = "entry";
132315
- ActionElement2["Server"] = "server";
132316
- })(ActionElement || (ActionElement = {}));
132317
- var ActionFunction;
132318
- (function(ActionFunction2) {
132319
- ActionFunction2["TailwindCSS"] = "tailwindcss";
132320
- ActionFunction2["Less"] = "less";
132321
- ActionFunction2["Sass"] = "sass";
132322
- ActionFunction2["BFF"] = "bff";
132323
- ActionFunction2["MicroFrontend"] = "micro_frontend";
132324
- ActionFunction2["Electron"] = "electron";
132325
- ActionFunction2["I18n"] = "i18n";
132326
- ActionFunction2["Test"] = "test";
132327
- ActionFunction2["E2ETest"] = "e2e_test";
132328
- ActionFunction2["Doc"] = "doc";
132329
- ActionFunction2["Storybook"] = "storybook";
132330
- ActionFunction2["RuntimeApi"] = "runtimeApi";
132331
- ActionFunction2["SSG"] = "ssg";
132332
- ActionFunction2["Polyfill"] = "polyfill";
132333
- ActionFunction2["Deploy"] = "deploy";
132334
- ActionFunction2["Proxy"] = "proxy";
132335
- })(ActionFunction || (ActionFunction = {}));
132336
- var ActionRefactor;
132337
- (function(ActionRefactor2) {
132338
- ActionRefactor2["BFFToApp"] = "bff_to_app";
132339
- })(ActionRefactor || (ActionRefactor = {}));
132340
- var ActionTypeText = (_ActionTypeText = {}, _defineProperty(_ActionTypeText, ActionType.Function, function() {
132341
- return i18n.t(localeKeys.action["function"].self);
132342
- }), _defineProperty(_ActionTypeText, ActionType.Element, function() {
132343
- return i18n.t(localeKeys.action.element.self);
132344
- }), _defineProperty(_ActionTypeText, ActionType.Refactor, function() {
132345
- return i18n.t(localeKeys.action.refactor.self);
132346
- }), _ActionTypeText);
132347
- var ActionElementText = (_ActionElementText = {}, _defineProperty(_ActionElementText, ActionElement.Entry, function() {
132348
- return i18n.t(localeKeys.action.element.entry);
132349
- }), _defineProperty(_ActionElementText, ActionElement.Server, function() {
132350
- return i18n.t(localeKeys.action.element.server);
132351
- }), _ActionElementText);
132352
- var ActionFunctionText = (_ActionFunctionText = {}, _defineProperty(_ActionFunctionText, ActionFunction.TailwindCSS, function() {
132353
- return i18n.t(localeKeys.action["function"].tailwindcss);
132354
- }), _defineProperty(_ActionFunctionText, ActionFunction.Less, function() {
132355
- return i18n.t(localeKeys.action["function"].less);
132356
- }), _defineProperty(_ActionFunctionText, ActionFunction.Sass, function() {
132357
- return i18n.t(localeKeys.action["function"].sass);
132358
- }), _defineProperty(_ActionFunctionText, ActionFunction.BFF, function() {
132359
- return i18n.t(localeKeys.action["function"].bff);
132360
- }), _defineProperty(_ActionFunctionText, ActionFunction.MicroFrontend, function() {
132361
- return i18n.t(localeKeys.action["function"].micro_frontend);
132362
- }), _defineProperty(_ActionFunctionText, ActionFunction.Electron, function() {
132363
- return i18n.t(localeKeys.action["function"].electron);
132364
- }), _defineProperty(_ActionFunctionText, ActionFunction.I18n, function() {
132365
- return i18n.t(localeKeys.action["function"].i18n);
132366
- }), _defineProperty(_ActionFunctionText, ActionFunction.Test, function() {
132367
- return i18n.t(localeKeys.action["function"].test);
132368
- }), _defineProperty(_ActionFunctionText, ActionFunction.E2ETest, function() {
132369
- return i18n.t(localeKeys.action["function"].e2e_test);
132370
- }), _defineProperty(_ActionFunctionText, ActionFunction.Doc, function() {
132371
- return i18n.t(localeKeys.action["function"].doc);
132372
- }), _defineProperty(_ActionFunctionText, ActionFunction.Storybook, function() {
132373
- return i18n.t(localeKeys.action["function"].storybook);
132374
- }), _defineProperty(_ActionFunctionText, ActionFunction.RuntimeApi, function() {
132375
- return i18n.t(localeKeys.action["function"].runtime_api);
132376
- }), _defineProperty(_ActionFunctionText, ActionFunction.SSG, function() {
132377
- return i18n.t(localeKeys.action["function"].ssg);
132378
- }), _defineProperty(_ActionFunctionText, ActionFunction.Polyfill, function() {
132379
- return i18n.t(localeKeys.action["function"].polyfill);
132380
- }), _defineProperty(_ActionFunctionText, ActionFunction.Deploy, function() {
132381
- return i18n.t(localeKeys.action["function"].deploy);
132382
- }), _defineProperty(_ActionFunctionText, ActionFunction.Proxy, function() {
132383
- return i18n.t(localeKeys.action["function"].proxy);
132384
- }), _ActionFunctionText);
132385
- var ActionRefactorText = _defineProperty({}, ActionRefactor.BFFToApp, function() {
132386
- return i18n.t(localeKeys.action.refactor.bff_to_app);
132387
- });
132388
- var ActionTypeTextMap = (_ActionTypeTextMap = {}, _defineProperty(_ActionTypeTextMap, ActionType.Element, ActionElementText), _defineProperty(_ActionTypeTextMap, ActionType.Function, ActionFunctionText), _defineProperty(_ActionTypeTextMap, ActionType.Refactor, ActionRefactorText), _ActionTypeTextMap);
132389
- init_defineProperty();
132390
- var _MWAActionTypesMap;
132391
- var _MWAActionFunctionsDe;
132392
- var _MWAActionFunctionsDe2;
132393
- var _ActionType$Element;
132394
- var _ActionType$Function;
132395
- var _MWANewActionGenerato;
132396
- var MWAActionTypes = [
132397
- ActionType.Element,
132398
- ActionType.Function
132399
- ];
132400
- var MWAActionFunctions = [
132401
- ActionFunction.TailwindCSS,
132402
- ActionFunction.Less,
132403
- ActionFunction.Sass,
132404
- ActionFunction.BFF,
132405
- ActionFunction.SSG,
132406
- ActionFunction.MicroFrontend,
132407
- ActionFunction.Electron,
132408
- ActionFunction.Test,
132409
- ActionFunction.Storybook,
132410
- ActionFunction.Polyfill,
132411
- ActionFunction.Deploy,
132412
- ActionFunction.Proxy
132413
- ];
132414
- var MWAActionElements = [ActionElement.Entry, ActionElement.Server];
132415
- var MWAActionReactors = [ActionRefactor.BFFToApp];
132416
- var MWAActionTypesMap = (_MWAActionTypesMap = {}, _defineProperty(_MWAActionTypesMap, ActionType.Element, MWAActionElements), _defineProperty(_MWAActionTypesMap, ActionType.Function, MWAActionFunctions), _defineProperty(_MWAActionTypesMap, ActionType.Refactor, MWAActionReactors), _MWAActionTypesMap);
132417
- var MWASpecialSchemaMap = _defineProperty({}, ActionFunction.Storybook, {
132418
- key: ActionFunction.Storybook,
132419
- label: function label12() {
132420
- return i18n.t(localeKeys.action["function"].mwa_storybook);
132421
- }
132422
- });
132423
- var MWANewActionSchema = {
132424
- key: "mwa_new_action",
132425
- isObject: true,
132426
- items: [{
132427
- key: "actionType",
132428
- label: function label13() {
132429
- return i18n.t(localeKeys.action.self);
132430
- },
132431
- type: ["string"],
132432
- mutualExclusion: true,
132433
- items: MWAActionTypes.map(function(type) {
132434
- return {
132435
- key: type,
132436
- label: ActionTypeText[type],
132437
- type: ["string"],
132438
- mutualExclusion: true,
132439
- items: MWAActionTypesMap[type].map(function(item) {
132440
- return MWASpecialSchemaMap[item] || {
132441
- key: item,
132442
- label: ActionTypeTextMap[type][item]
132443
- };
132444
- })
132445
- };
132446
- })
132447
- }]
132448
- };
132449
- var MWAActionFunctionsDevDependencies = (_MWAActionFunctionsDe = {}, _defineProperty(_MWAActionFunctionsDe, ActionFunction.Less, "@modern-js/plugin-less"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Sass, "@modern-js/plugin-sass"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.SSG, "@modern-js/plugin-ssg"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Test, "@modern-js/plugin-testing"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.E2ETest, "@modern-js/plugin-e2e"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Electron, "@modern-js/plugin-electron"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Storybook, "@modern-js/plugin-storybook"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Proxy, "@modern-js/plugin-proxy"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.TailwindCSS, "tailwindcss"), _MWAActionFunctionsDe);
132450
- var MWAActionFunctionsDependencies = (_MWAActionFunctionsDe2 = {}, _defineProperty(_MWAActionFunctionsDe2, ActionFunction.BFF, "@modern-js/plugin-bff"), _defineProperty(_MWAActionFunctionsDe2, ActionFunction.MicroFrontend, "@modern-js/plugin-garfish"), _defineProperty(_MWAActionFunctionsDe2, ActionFunction.I18n, "@modern-js/plugin-i18n"), _defineProperty(_MWAActionFunctionsDe2, ActionFunction.TailwindCSS, "@modern-js/plugin-tailwindcss"), _defineProperty(_MWAActionFunctionsDe2, ActionFunction.Polyfill, "@modern-js/plugin-polyfill"), _MWAActionFunctionsDe2);
132451
- var MWAActionFunctionsAppendTypeContent = _defineProperty({}, ActionFunction.MicroFrontend, "/// <reference types='@modern-js/plugin-garfish/types' />");
132452
- var MWANewActionGenerators = (_MWANewActionGenerato = {}, _defineProperty(_MWANewActionGenerato, ActionType.Element, (_ActionType$Element = {}, _defineProperty(_ActionType$Element, ActionElement.Entry, "@modern-js/entry-generator"), _defineProperty(_ActionType$Element, ActionElement.Server, "@modern-js/server-generator"), _ActionType$Element)), _defineProperty(_MWANewActionGenerato, ActionType.Function, (_ActionType$Function = {}, _defineProperty(_ActionType$Function, ActionFunction.TailwindCSS, "@modern-js/tailwindcss-generator"), _defineProperty(_ActionType$Function, ActionFunction.Less, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Sass, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.BFF, "@modern-js/bff-generator"), _defineProperty(_ActionType$Function, ActionFunction.MicroFrontend, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Electron, "@modern-js/electron-generator"), _defineProperty(_ActionType$Function, ActionFunction.I18n, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Test, "@modern-js/test-generator"), _defineProperty(_ActionType$Function, ActionFunction.E2ETest, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Doc, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Storybook, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.SSG, "@modern-js/ssg-generator"), _defineProperty(_ActionType$Function, ActionFunction.Polyfill, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Deploy, "@modern-js/cloud-deploy-generator"), _defineProperty(_ActionType$Function, ActionFunction.Proxy, "@modern-js/dependence-generator"), _ActionType$Function)), _defineProperty(_MWANewActionGenerato, ActionType.Refactor, _defineProperty({}, ActionRefactor.BFFToApp, "@modern-js/bff-refactor-generator")), _MWANewActionGenerato);
133065
+ init_treeshaking4();
132453
133066
  var import_generator_utils = __toESM2(require_node9());
132454
133067
  init_treeshaking3();
132455
133068
  var ZH_LOCALE2 = {
@@ -132522,6 +133135,7 @@ var handleTemplateFile = async (context, generator, appApi) => {
132522
133135
  }),
132523
133136
  packagePath: (input) => (0, import_generator_utils.validatePackagePath)(input, import_path.default.join(process.cwd(), projectDir), { isTest, isMwa: true })
132524
133137
  });
133138
+ const modernVersion = await (0, import_generator_utils.getModernVersion)(Solution.MWA, context.config.registry);
132525
133139
  generator.logger.debug(`inputData=${JSON.stringify(ans)}`, ans);
132526
133140
  const {
132527
133141
  packageName,
@@ -132530,10 +133144,7 @@ var handleTemplateFile = async (context, generator, appApi) => {
132530
133144
  runWay,
132531
133145
  packageManager,
132532
133146
  needModifyMWAConfig,
132533
- disableStateManagement,
132534
- clientRoute,
132535
- enableLess,
132536
- enableSass
133147
+ clientRoute
132537
133148
  } = ans;
132538
133149
  const projectPath = (0, import_generator_utils.getMWAProjectPath)(packagePath, isMonorepoSubProject, isTest);
132539
133150
  const dirname = import_path.default.basename(generator.outputPath);
@@ -132541,7 +133152,8 @@ var handleTemplateFile = async (context, generator, appApi) => {
132541
133152
  await appApi.forgeTemplate("templates/base-template/**/*", void 0, (resourceKey) => resourceKey.replace("templates/base-template/", projectPath).replace(".handlebars", ""), {
132542
133153
  name: packageName || dirname,
132543
133154
  packageManager: (0, import_generator_utils.getPackageManagerText)(packageManager),
132544
- isMonorepoSubProject
133155
+ isMonorepoSubProject,
133156
+ modernVersion
132545
133157
  });
132546
133158
  if (language === Language.TS) {
132547
133159
  await jsonAPI.update(context.materials.default.get(import_path.default.join(projectPath, "package.json")), {
@@ -132561,7 +133173,6 @@ var handleTemplateFile = async (context, generator, appApi) => {
132561
133173
  }
132562
133174
  await appApi.runSubGenerator(getGeneratorPath(EntryGenerator, context.config.distTag), `./${projectPath}`, {
132563
133175
  ...context.config,
132564
- disableStateManagement: needModifyMWAConfig === BooleanConfig.NO ? BooleanConfig.NO : disableStateManagement,
132565
133176
  clientRoute: needModifyMWAConfig === BooleanConfig.NO ? ClientRoute.SelfControlRoute : clientRoute,
132566
133177
  isSubGenerator: true
132567
133178
  });
@@ -132572,27 +133183,6 @@ var handleTemplateFile = async (context, generator, appApi) => {
132572
133183
  isSubGenerator: true
132573
133184
  });
132574
133185
  }
132575
- if (enableLess === BooleanConfig.YES) {
132576
- const lessDependence = MWAActionFunctionsDependencies[ActionFunction.Less];
132577
- await appApi.runSubGenerator(getGeneratorPath(DependenceGenerator, context.config.distTag), void 0, {
132578
- dependencies: {
132579
- [lessDependence]: `^${await (0, import_generator_utils.getPackageVersion)(lessDependence)}`
132580
- },
132581
- projectPath,
132582
- isSubGenerator: true
132583
- });
132584
- }
132585
- if (enableSass === BooleanConfig.YES) {
132586
- const sassDependence = MWAActionFunctionsDependencies[ActionFunction.Sass];
132587
- [ActionFunction.Sass];
132588
- await appApi.runSubGenerator(getGeneratorPath(DependenceGenerator, context.config.distTag), void 0, {
132589
- dependencies: {
132590
- [sassDependence]: `${await (0, import_generator_utils.getPackageVersion)(sassDependence)}`
132591
- },
132592
- projectPath,
132593
- isSubGenerator: true
132594
- });
132595
- }
132596
133186
  if (isMonorepoSubProject) {
132597
133187
  await appApi.updateWorkspace({
132598
133188
  name: packagePath,