@modern-js/entry-generator 3.1.35 → 3.1.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/LICENSE +1 -1
  2. package/dist/index.js +560 -620
  3. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -1,27 +1,9 @@
1
1
  var __create = Object.create;
2
2
  var __defProp = Object.defineProperty;
3
- var __defProps = Object.defineProperties;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
5
  var __getProtoOf = Object.getPrototypeOf;
9
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
10
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
11
- var __pow = Math.pow;
12
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
- var __spreadValues = (a, b) => {
14
- for (var prop in b || (b = {}))
15
- if (__hasOwnProp.call(b, prop))
16
- __defNormalProp(a, prop, b[prop]);
17
- if (__getOwnPropSymbols)
18
- for (var prop of __getOwnPropSymbols(b)) {
19
- if (__propIsEnum.call(b, prop))
20
- __defNormalProp(a, prop, b[prop]);
21
- }
22
- return a;
23
- };
24
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
7
  var __commonJS = (cb, mod) => function __require() {
26
8
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
27
9
  };
@@ -46,26 +28,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
46
28
  mod
47
29
  ));
48
30
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
49
- var __async = (__this, __arguments, generator) => {
50
- return new Promise((resolve, reject) => {
51
- var fulfilled = (value) => {
52
- try {
53
- step(generator.next(value));
54
- } catch (e) {
55
- reject(e);
56
- }
57
- };
58
- var rejected = (value) => {
59
- try {
60
- step(generator.throw(value));
61
- } catch (e) {
62
- reject(e);
63
- }
64
- };
65
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
66
- step((generator = generator.apply(__this, __arguments)).next());
67
- });
68
- };
69
31
 
70
32
  // ../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/lodash.js
71
33
  var require_lodash = __commonJS({
@@ -6084,22 +6046,20 @@ var require_fs_extra = __commonJS({
6084
6046
  const o = r2(17);
6085
6047
  const c = r2(971);
6086
6048
  const s = r2(95);
6087
- const a = n(function emptyDir(e3) {
6088
- return __async(this, null, function* () {
6089
- let t3;
6090
- try {
6091
- t3 = yield i.readdir(e3);
6092
- } catch (e4) {
6093
- return c.mkdirs(e3);
6094
- }
6095
- return Promise.all(t3.map((t4) => s.remove(o.join(e3, t4))));
6096
- });
6049
+ const a = n(async function emptyDir(e3) {
6050
+ let t3;
6051
+ try {
6052
+ t3 = await i.readdir(e3);
6053
+ } catch {
6054
+ return c.mkdirs(e3);
6055
+ }
6056
+ return Promise.all(t3.map((t4) => s.remove(o.join(e3, t4))));
6097
6057
  });
6098
6058
  function emptyDirSync(e3) {
6099
6059
  let t3;
6100
6060
  try {
6101
6061
  t3 = i.readdirSync(e3);
6102
- } catch (e4) {
6062
+ } catch {
6103
6063
  return c.mkdirsSync(e3);
6104
6064
  }
6105
6065
  t3.forEach((t4) => {
@@ -6152,7 +6112,7 @@ var require_fs_extra = __commonJS({
6152
6112
  let t3;
6153
6113
  try {
6154
6114
  t3 = o.statSync(e3);
6155
- } catch (e4) {
6115
+ } catch {
6156
6116
  }
6157
6117
  if (t3 && t3.isFile())
6158
6118
  return;
@@ -6219,7 +6179,7 @@ var require_fs_extra = __commonJS({
6219
6179
  let r3;
6220
6180
  try {
6221
6181
  r3 = o.lstatSync(t3);
6222
- } catch (e4) {
6182
+ } catch {
6223
6183
  }
6224
6184
  try {
6225
6185
  const t4 = o.lstatSync(e3);
@@ -6314,7 +6274,7 @@ var require_fs_extra = __commonJS({
6314
6274
  return t3;
6315
6275
  try {
6316
6276
  r3 = n.lstatSync(e3);
6317
- } catch (e4) {
6277
+ } catch {
6318
6278
  return "file";
6319
6279
  }
6320
6280
  return r3 && r3.isDirectory() ? "dir" : "file";
@@ -6377,7 +6337,7 @@ var require_fs_extra = __commonJS({
6377
6337
  let n2;
6378
6338
  try {
6379
6339
  n2 = o.lstatSync(t3);
6380
- } catch (e4) {
6340
+ } catch {
6381
6341
  }
6382
6342
  if (n2 && n2.isSymbolicLink()) {
6383
6343
  const r4 = o.statSync(e3);
@@ -6452,7 +6412,7 @@ var require_fs_extra = __commonJS({
6452
6412
  }
6453
6413
  }, 81: (e2, t2, r2) => {
6454
6414
  "use strict";
6455
- e2.exports = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, r2(812)), r2(2)), r2(708)), r2(726)), r2(779)), r2(971)), r2(511)), r2(701)), r2(725)), r2(95));
6415
+ e2.exports = { ...r2(812), ...r2(2), ...r2(708), ...r2(726), ...r2(779), ...r2(971), ...r2(511), ...r2(701), ...r2(725), ...r2(95) };
6456
6416
  }, 779: (e2, t2, r2) => {
6457
6417
  "use strict";
6458
6418
  const n = r2(5).fromPromise;
@@ -6483,11 +6443,9 @@ var require_fs_extra = __commonJS({
6483
6443
  "use strict";
6484
6444
  const { stringify: n } = r2(208);
6485
6445
  const { outputFile: i } = r2(701);
6486
- function outputJson(_0, _1) {
6487
- return __async(this, arguments, function* (e3, t3, r3 = {}) {
6488
- const o = n(t3, r3);
6489
- yield i(e3, o, r3);
6490
- });
6446
+ async function outputJson(e3, t3, r3 = {}) {
6447
+ const o = n(t3, r3);
6448
+ await i(e3, o, r3);
6491
6449
  }
6492
6450
  e2.exports = outputJson;
6493
6451
  }, 971: (e2, t2, r2) => {
@@ -6504,12 +6462,12 @@ var require_fs_extra = __commonJS({
6504
6462
  const t3 = { mode: 511 };
6505
6463
  if (typeof e3 === "number")
6506
6464
  return e3;
6507
- return __spreadValues(__spreadValues({}, t3), e3).mode;
6465
+ return { ...t3, ...e3 }.mode;
6508
6466
  };
6509
- e2.exports.makeDir = (e3, t3) => __async(exports, null, function* () {
6467
+ e2.exports.makeDir = async (e3, t3) => {
6510
6468
  i(e3);
6511
6469
  return n.mkdir(e3, { mode: getMode(t3), recursive: true });
6512
- });
6470
+ };
6513
6471
  e2.exports.makeDirSync = (e3, t3) => {
6514
6472
  i(e3);
6515
6473
  return n.mkdirSync(e3, { mode: getMode(t3), recursive: true });
@@ -6927,7 +6885,7 @@ var require_fs_extra = __commonJS({
6927
6885
  try {
6928
6886
  const r4 = t3.rmdirSync(e3, t3);
6929
6887
  return r4;
6930
- } catch (e4) {
6888
+ } catch {
6931
6889
  }
6932
6890
  } while (Date.now() - r3 < 500);
6933
6891
  } else {
@@ -7826,28 +7784,26 @@ var require_fs_extra = __commonJS({
7826
7784
  }
7827
7785
  const i = r2(5);
7828
7786
  const { stringify: o, stripBom: c } = r2(208);
7829
- function _readFile(_0) {
7830
- return __async(this, arguments, function* (e3, t3 = {}) {
7831
- if (typeof t3 === "string") {
7832
- t3 = { encoding: t3 };
7833
- }
7834
- const r3 = t3.fs || n;
7835
- const o2 = "throws" in t3 ? t3.throws : true;
7836
- let s2 = yield i.fromCallback(r3.readFile)(e3, t3);
7837
- s2 = c(s2);
7838
- let a2;
7839
- try {
7840
- a2 = JSON.parse(s2, t3 ? t3.reviver : null);
7841
- } catch (t4) {
7842
- if (o2) {
7843
- t4.message = `${e3}: ${t4.message}`;
7844
- throw t4;
7845
- } else {
7846
- return null;
7847
- }
7787
+ async function _readFile(e3, t3 = {}) {
7788
+ if (typeof t3 === "string") {
7789
+ t3 = { encoding: t3 };
7790
+ }
7791
+ const r3 = t3.fs || n;
7792
+ const o2 = "throws" in t3 ? t3.throws : true;
7793
+ let s2 = await i.fromCallback(r3.readFile)(e3, t3);
7794
+ s2 = c(s2);
7795
+ let a2;
7796
+ try {
7797
+ a2 = JSON.parse(s2, t3 ? t3.reviver : null);
7798
+ } catch (t4) {
7799
+ if (o2) {
7800
+ t4.message = `${e3}: ${t4.message}`;
7801
+ throw t4;
7802
+ } else {
7803
+ return null;
7848
7804
  }
7849
- return a2;
7850
- });
7805
+ }
7806
+ return a2;
7851
7807
  }
7852
7808
  const s = i.fromPromise(_readFile);
7853
7809
  function readFileSync(e3, t3 = {}) {
@@ -7869,12 +7825,10 @@ var require_fs_extra = __commonJS({
7869
7825
  }
7870
7826
  }
7871
7827
  }
7872
- function _writeFile(_0, _1) {
7873
- return __async(this, arguments, function* (e3, t3, r3 = {}) {
7874
- const c2 = r3.fs || n;
7875
- const s2 = o(t3, r3);
7876
- yield i.fromCallback(c2.writeFile)(e3, s2, r3);
7877
- });
7828
+ async function _writeFile(e3, t3, r3 = {}) {
7829
+ const c2 = r3.fs || n;
7830
+ const s2 = o(t3, r3);
7831
+ await i.fromCallback(c2.writeFile)(e3, s2, r3);
7878
7832
  }
7879
7833
  const a = i.fromPromise(_writeFile);
7880
7834
  function writeFileSync(e3, t3, r3 = {}) {
@@ -8102,11 +8056,11 @@ var require_chalk = __commonJS({
8102
8056
  } };
8103
8057
  }
8104
8058
  const f = Object.defineProperties(() => {
8105
- }, __spreadProps(__spreadValues({}, u), { level: { enumerable: true, get() {
8059
+ }, { ...u, level: { enumerable: true, get() {
8106
8060
  return this._generator.level;
8107
8061
  }, set(e3) {
8108
8062
  this._generator.level = e3;
8109
- } } }));
8063
+ } } });
8110
8064
  const createStyler = (e3, t3, n3) => {
8111
8065
  let r2;
8112
8066
  let s2;
@@ -8417,7 +8371,7 @@ var require_chalk = __commonJS({
8417
8371
  return [o2 * 100, l * 100, c * 100, s2 * 100];
8418
8372
  };
8419
8373
  function comparativeDistance(e3, t3) {
8420
- return __pow(e3[0] - t3[0], 2) + __pow(e3[1] - t3[1], 2) + __pow(e3[2] - t3[2], 2);
8374
+ return (e3[0] - t3[0]) ** 2 + (e3[1] - t3[1]) ** 2 + (e3[2] - t3[2]) ** 2;
8421
8375
  }
8422
8376
  o.rgb.keyword = function(e3) {
8423
8377
  const t3 = s[e3];
@@ -8443,9 +8397,9 @@ var require_chalk = __commonJS({
8443
8397
  let t3 = e3[0] / 255;
8444
8398
  let n3 = e3[1] / 255;
8445
8399
  let r2 = e3[2] / 255;
8446
- t3 = t3 > 0.04045 ? __pow((t3 + 0.055) / 1.055, 2.4) : t3 / 12.92;
8447
- n3 = n3 > 0.04045 ? __pow((n3 + 0.055) / 1.055, 2.4) : n3 / 12.92;
8448
- r2 = r2 > 0.04045 ? __pow((r2 + 0.055) / 1.055, 2.4) : r2 / 12.92;
8400
+ t3 = t3 > 0.04045 ? ((t3 + 0.055) / 1.055) ** 2.4 : t3 / 12.92;
8401
+ n3 = n3 > 0.04045 ? ((n3 + 0.055) / 1.055) ** 2.4 : n3 / 12.92;
8402
+ r2 = r2 > 0.04045 ? ((r2 + 0.055) / 1.055) ** 2.4 : r2 / 12.92;
8449
8403
  const s2 = t3 * 0.4124 + n3 * 0.3576 + r2 * 0.1805;
8450
8404
  const o2 = t3 * 0.2126 + n3 * 0.7152 + r2 * 0.0722;
8451
8405
  const l = t3 * 0.0193 + n3 * 0.1192 + r2 * 0.9505;
@@ -8459,9 +8413,9 @@ var require_chalk = __commonJS({
8459
8413
  n3 /= 95.047;
8460
8414
  r2 /= 100;
8461
8415
  s2 /= 108.883;
8462
- n3 = n3 > 8856e-6 ? __pow(n3, 1 / 3) : 7.787 * n3 + 16 / 116;
8463
- r2 = r2 > 8856e-6 ? __pow(r2, 1 / 3) : 7.787 * r2 + 16 / 116;
8464
- s2 = s2 > 8856e-6 ? __pow(s2, 1 / 3) : 7.787 * s2 + 16 / 116;
8416
+ n3 = n3 > 8856e-6 ? n3 ** (1 / 3) : 7.787 * n3 + 16 / 116;
8417
+ r2 = r2 > 8856e-6 ? r2 ** (1 / 3) : 7.787 * r2 + 16 / 116;
8418
+ s2 = s2 > 8856e-6 ? s2 ** (1 / 3) : 7.787 * s2 + 16 / 116;
8465
8419
  const l = 116 * r2 - 16;
8466
8420
  const c = 500 * (n3 - r2);
8467
8421
  const i = 200 * (r2 - s2);
@@ -8635,9 +8589,9 @@ var require_chalk = __commonJS({
8635
8589
  s2 = t3 * 3.2406 + n3 * -1.5372 + r2 * -0.4986;
8636
8590
  o2 = t3 * -0.9689 + n3 * 1.8758 + r2 * 0.0415;
8637
8591
  l = t3 * 0.0557 + n3 * -0.204 + r2 * 1.057;
8638
- s2 = s2 > 31308e-7 ? 1.055 * __pow(s2, 1 / 2.4) - 0.055 : s2 * 12.92;
8639
- o2 = o2 > 31308e-7 ? 1.055 * __pow(o2, 1 / 2.4) - 0.055 : o2 * 12.92;
8640
- l = l > 31308e-7 ? 1.055 * __pow(l, 1 / 2.4) - 0.055 : l * 12.92;
8592
+ s2 = s2 > 31308e-7 ? 1.055 * s2 ** (1 / 2.4) - 0.055 : s2 * 12.92;
8593
+ o2 = o2 > 31308e-7 ? 1.055 * o2 ** (1 / 2.4) - 0.055 : o2 * 12.92;
8594
+ l = l > 31308e-7 ? 1.055 * l ** (1 / 2.4) - 0.055 : l * 12.92;
8641
8595
  s2 = Math.min(Math.max(0, s2), 1);
8642
8596
  o2 = Math.min(Math.max(0, o2), 1);
8643
8597
  l = Math.min(Math.max(0, l), 1);
@@ -8650,9 +8604,9 @@ var require_chalk = __commonJS({
8650
8604
  t3 /= 95.047;
8651
8605
  n3 /= 100;
8652
8606
  r2 /= 108.883;
8653
- t3 = t3 > 8856e-6 ? __pow(t3, 1 / 3) : 7.787 * t3 + 16 / 116;
8654
- n3 = n3 > 8856e-6 ? __pow(n3, 1 / 3) : 7.787 * n3 + 16 / 116;
8655
- r2 = r2 > 8856e-6 ? __pow(r2, 1 / 3) : 7.787 * r2 + 16 / 116;
8607
+ t3 = t3 > 8856e-6 ? t3 ** (1 / 3) : 7.787 * t3 + 16 / 116;
8608
+ n3 = n3 > 8856e-6 ? n3 ** (1 / 3) : 7.787 * n3 + 16 / 116;
8609
+ r2 = r2 > 8856e-6 ? r2 ** (1 / 3) : 7.787 * r2 + 16 / 116;
8656
8610
  const s2 = 116 * n3 - 16;
8657
8611
  const o2 = 500 * (t3 - n3);
8658
8612
  const l = 200 * (n3 - r2);
@@ -8668,9 +8622,9 @@ var require_chalk = __commonJS({
8668
8622
  o2 = (t3 + 16) / 116;
8669
8623
  s2 = n3 / 500 + o2;
8670
8624
  l = o2 - r2 / 200;
8671
- const c = __pow(o2, 3);
8672
- const i = __pow(s2, 3);
8673
- const a = __pow(l, 3);
8625
+ const c = o2 ** 3;
8626
+ const i = s2 ** 3;
8627
+ const a = l ** 3;
8674
8628
  o2 = c > 8856e-6 ? c : (o2 - 16 / 116) / 7.787;
8675
8629
  s2 = i > 8856e-6 ? i : (s2 - 16 / 116) / 7.787;
8676
8630
  l = a > 8856e-6 ? a : (l - 16 / 116) / 7.787;
@@ -9926,7 +9880,7 @@ var require_ora = __commonJS({
9926
9880
  if (typeof e3 === "string") {
9927
9881
  e3 = { text: e3 };
9928
9882
  }
9929
- this.options = __spreadValues({ text: "", color: "cyan", stream: process.stderr, discardStdin: true }, e3);
9883
+ this.options = { text: "", color: "cyan", stream: process.stderr, discardStdin: true, ...e3 };
9930
9884
  this.spinner = this.options.spinner;
9931
9885
  this.color = this.options.color;
9932
9886
  this.hideCursor = this.options.hideCursor !== false;
@@ -10143,14 +10097,14 @@ var require_ora = __commonJS({
10143
10097
  }
10144
10098
  const r3 = new Ora(t3);
10145
10099
  r3.start();
10146
- (() => __async(exports, null, function* () {
10100
+ (async () => {
10147
10101
  try {
10148
- yield e3;
10102
+ await e3;
10149
10103
  r3.succeed();
10150
- } catch (e4) {
10104
+ } catch {
10151
10105
  r3.fail();
10152
10106
  }
10153
- }))();
10107
+ })();
10154
10108
  return r3;
10155
10109
  };
10156
10110
  }, 959: (e2) => {
@@ -18570,7 +18524,7 @@ var require_execa = __commonJS({
18570
18524
  const { joinCommand: w, parseCommand: E, getEscapedCommand: I } = n2(192);
18571
18525
  const T = 1e3 * 1e3 * 100;
18572
18526
  const getEnv = ({ env: e3, extendEnv: t3, preferLocal: n3, localDir: r2, execPath: o2 }) => {
18573
- const s2 = t3 ? __spreadValues(__spreadValues({}, process.env), e3) : e3;
18527
+ const s2 = t3 ? { ...process.env, ...e3 } : e3;
18574
18528
  if (n3) {
18575
18529
  return a.env({ env: s2, cwd: r2, execPath: o2 });
18576
18530
  }
@@ -18581,7 +18535,7 @@ var require_execa = __commonJS({
18581
18535
  e3 = o2.command;
18582
18536
  t3 = o2.args;
18583
18537
  n3 = o2.options;
18584
- n3 = __spreadValues({ maxBuffer: T, buffer: true, stripFinalNewline: true, extendEnv: true, preferLocal: false, localDir: n3.cwd || process.cwd(), execPath: process.execPath, encoding: "utf8", reject: true, cleanup: true, all: false, windowsHide: true }, n3);
18538
+ n3 = { maxBuffer: T, buffer: true, stripFinalNewline: true, extendEnv: true, preferLocal: false, localDir: n3.cwd || process.cwd(), execPath: process.execPath, encoding: "utf8", reject: true, cleanup: true, all: false, windowsHide: true, ...n3 };
18585
18539
  n3.env = getEnv(n3);
18586
18540
  n3.stdio = u(n3);
18587
18541
  if (process.platform === "win32" && r.basename(e3, ".exe") === "cmd") {
@@ -18617,8 +18571,8 @@ var require_execa = __commonJS({
18617
18571
  const T2 = { isCanceled: false };
18618
18572
  a2.kill = l.bind(null, a2.kill.bind(a2));
18619
18573
  a2.cancel = f.bind(null, a2, T2);
18620
- const handlePromise = () => __async(exports, null, function* () {
18621
- const [{ error: e4, exitCode: t4, signal: n4, timedOut: o2 }, c2, u3, l2] = yield h(a2, r2.options, E2);
18574
+ const handlePromise = async () => {
18575
+ const [{ error: e4, exitCode: t4, signal: n4, timedOut: o2 }, c2, u3, l2] = await h(a2, r2.options, E2);
18622
18576
  const f2 = handleOutput(r2.options, c2);
18623
18577
  const p2 = handleOutput(r2.options, u3);
18624
18578
  const m2 = handleOutput(r2.options, l2);
@@ -18630,7 +18584,7 @@ var require_execa = __commonJS({
18630
18584
  throw c3;
18631
18585
  }
18632
18586
  return { command: s2, escapedCommand: i2, exitCode: 0, stdout: f2, stderr: p2, all: m2, failed: false, timedOut: false, isCanceled: false, killed: false };
18633
- });
18587
+ };
18634
18588
  const C = c(handlePromise);
18635
18589
  x(a2, r2.options.input);
18636
18590
  a2.all = y(a2, r2.options);
@@ -18675,7 +18629,7 @@ var require_execa = __commonJS({
18675
18629
  const r2 = u.node(n3);
18676
18630
  const o2 = process.execArgv.filter((e4) => !e4.startsWith("--inspect"));
18677
18631
  const { nodePath: s2 = process.execPath, nodeOptions: i2 = o2 } = n3;
18678
- return execa3(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []], __spreadProps(__spreadValues({}, n3), { stdin: void 0, stdout: void 0, stderr: void 0, stdio: r2, shell: false }));
18632
+ return execa3(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []], { ...n3, stdin: void 0, stdout: void 0, stderr: void 0, stdio: r2, shell: false });
18679
18633
  };
18680
18634
  }, 192: (e2) => {
18681
18635
  "use strict";
@@ -18831,7 +18785,7 @@ ${o.message}` : x;
18831
18785
  throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e3}\` (${typeof e3})`);
18832
18786
  }
18833
18787
  };
18834
- const setExitHandler = (_0, _1, _2) => __async(exports, [_0, _1, _2], function* (e3, { cleanup: t3, detached: n3 }, r2) {
18788
+ const setExitHandler = async (e3, { cleanup: t3, detached: n3 }, r2) => {
18835
18789
  if (!t3 || n3) {
18836
18790
  return r2;
18837
18791
  }
@@ -18841,17 +18795,17 @@ ${o.message}` : x;
18841
18795
  return r2.finally(() => {
18842
18796
  s2();
18843
18797
  });
18844
- });
18798
+ };
18845
18799
  e2.exports = { spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler };
18846
18800
  }, 210: (e2) => {
18847
18801
  "use strict";
18848
- const t2 = (() => __async(exports, null, function* () {
18849
- }))().constructor.prototype;
18802
+ const t2 = (async () => {
18803
+ })().constructor.prototype;
18850
18804
  const n2 = ["then", "catch", "finally"].map((e3) => [e3, Reflect.getOwnPropertyDescriptor(t2, e3)]);
18851
18805
  const mergePromise = (e3, t3) => {
18852
18806
  for (const [r, o] of n2) {
18853
18807
  const n3 = typeof t3 === "function" ? (...e4) => Reflect.apply(o.value, t3(), e4) : o.value.bind(t3);
18854
- Reflect.defineProperty(e3, r, __spreadProps(__spreadValues({}, o), { value: n3 }));
18808
+ Reflect.defineProperty(e3, r, { ...o, value: n3 });
18855
18809
  }
18856
18810
  return e3;
18857
18811
  };
@@ -18935,17 +18889,17 @@ ${o.message}` : x;
18935
18889
  }
18936
18890
  return n3;
18937
18891
  };
18938
- const getBufferedData = (e3, t3) => __async(exports, null, function* () {
18892
+ const getBufferedData = async (e3, t3) => {
18939
18893
  if (!e3) {
18940
18894
  return;
18941
18895
  }
18942
18896
  e3.destroy();
18943
18897
  try {
18944
- return yield t3;
18898
+ return await t3;
18945
18899
  } catch (e4) {
18946
18900
  return e4.bufferedData;
18947
18901
  }
18948
- });
18902
+ };
18949
18903
  const getStreamPromise = (e3, { encoding: t3, buffer: n3, maxBuffer: r2 }) => {
18950
18904
  if (!e3 || !n3) {
18951
18905
  return;
@@ -18955,16 +18909,16 @@ ${o.message}` : x;
18955
18909
  }
18956
18910
  return o.buffer(e3, { maxBuffer: r2 });
18957
18911
  };
18958
- const getSpawnedResult = (_0, _1, _2) => __async(exports, [_0, _1, _2], function* ({ stdout: e3, stderr: t3, all: n3 }, { encoding: r2, buffer: o2, maxBuffer: s2 }, i) {
18912
+ const getSpawnedResult = async ({ stdout: e3, stderr: t3, all: n3 }, { encoding: r2, buffer: o2, maxBuffer: s2 }, i) => {
18959
18913
  const a = getStreamPromise(e3, { encoding: r2, buffer: o2, maxBuffer: s2 });
18960
18914
  const c = getStreamPromise(t3, { encoding: r2, buffer: o2, maxBuffer: s2 });
18961
18915
  const d = getStreamPromise(n3, { encoding: r2, buffer: o2, maxBuffer: s2 * 2 });
18962
18916
  try {
18963
- return yield Promise.all([i, a, c, d]);
18917
+ return await Promise.all([i, a, c, d]);
18964
18918
  } catch (r3) {
18965
18919
  return Promise.all([{ error: r3, signal: r3.signal, timedOut: r3.timedOut }, getBufferedData(e3, a), getBufferedData(t3, c), getBufferedData(n3, d)]);
18966
18920
  }
18967
- });
18921
+ };
18968
18922
  const validateInputSync = ({ input: e3 }) => {
18969
18923
  if (r(e3)) {
18970
18924
  throw new TypeError("The `input` option cannot be a stream in sync mode");
@@ -18975,7 +18929,7 @@ ${o.message}` : x;
18975
18929
  "use strict";
18976
18930
  const { PassThrough: r } = n2(781);
18977
18931
  e2.exports = (e3) => {
18978
- e3 = __spreadValues({}, e3);
18932
+ e3 = { ...e3 };
18979
18933
  const { array: t3 } = e3;
18980
18934
  let { encoding: n3 } = e3;
18981
18935
  const o = n3 === "buffer";
@@ -19024,41 +18978,39 @@ ${o.message}` : x;
19024
18978
  this.name = "MaxBufferError";
19025
18979
  }
19026
18980
  }
19027
- function getStream(e3, t3) {
19028
- return __async(this, null, function* () {
19029
- if (!e3) {
19030
- throw new Error("Expected a stream");
19031
- }
19032
- t3 = __spreadValues({ maxBuffer: Infinity }, t3);
19033
- const { maxBuffer: n3 } = t3;
19034
- const o2 = i(t3);
19035
- yield new Promise((t4, s2) => {
19036
- const rejectPromise = (e4) => {
19037
- if (e4 && o2.getBufferedLength() <= r.MAX_LENGTH) {
19038
- e4.bufferedData = o2.getBufferedValue();
19039
- }
19040
- s2(e4);
19041
- };
19042
- (() => __async(this, null, function* () {
19043
- try {
19044
- yield a(e3, o2);
19045
- t4();
19046
- } catch (e4) {
19047
- rejectPromise(e4);
19048
- }
19049
- }))();
19050
- o2.on("data", () => {
19051
- if (o2.getBufferedLength() > n3) {
19052
- rejectPromise(new MaxBufferError());
19053
- }
19054
- });
18981
+ async function getStream(e3, t3) {
18982
+ if (!e3) {
18983
+ throw new Error("Expected a stream");
18984
+ }
18985
+ t3 = { maxBuffer: Infinity, ...t3 };
18986
+ const { maxBuffer: n3 } = t3;
18987
+ const o2 = i(t3);
18988
+ await new Promise((t4, s2) => {
18989
+ const rejectPromise = (e4) => {
18990
+ if (e4 && o2.getBufferedLength() <= r.MAX_LENGTH) {
18991
+ e4.bufferedData = o2.getBufferedValue();
18992
+ }
18993
+ s2(e4);
18994
+ };
18995
+ (async () => {
18996
+ try {
18997
+ await a(e3, o2);
18998
+ t4();
18999
+ } catch (e4) {
19000
+ rejectPromise(e4);
19001
+ }
19002
+ })();
19003
+ o2.on("data", () => {
19004
+ if (o2.getBufferedLength() > n3) {
19005
+ rejectPromise(new MaxBufferError());
19006
+ }
19055
19007
  });
19056
- return o2.getBufferedValue();
19057
19008
  });
19009
+ return o2.getBufferedValue();
19058
19010
  }
19059
19011
  e2.exports = getStream;
19060
- e2.exports.buffer = (e3, t3) => getStream(e3, __spreadProps(__spreadValues({}, t3), { encoding: "buffer" }));
19061
- e2.exports.array = (e3, t3) => getStream(e3, __spreadProps(__spreadValues({}, t3), { array: true }));
19012
+ e2.exports.buffer = (e3, t3) => getStream(e3, { ...t3, encoding: "buffer" });
19013
+ e2.exports.array = (e3, t3) => getStream(e3, { ...t3, array: true });
19062
19014
  e2.exports.MaxBufferError = MaxBufferError;
19063
19015
  }, 221: (e2, t2) => {
19064
19016
  "use strict";
@@ -19078,7 +19030,7 @@ ${o.message}` : x;
19078
19030
  return e3.reduce(getSignalByName, {});
19079
19031
  };
19080
19032
  const getSignalByName = function(e3, { name: t3, number: n3, description: r2, supported: o2, action: s2, forced: i2, standard: a2 }) {
19081
- return __spreadProps(__spreadValues({}, e3), { [t3]: { name: t3, number: n3, description: r2, supported: o2, action: s2, forced: i2, standard: a2 } });
19033
+ return { ...e3, [t3]: { name: t3, number: n3, description: r2, supported: o2, action: s2, forced: i2, standard: a2 } };
19082
19034
  };
19083
19035
  const i = getSignalsByName();
19084
19036
  t2.signalsByName = i;
@@ -19310,7 +19262,7 @@ ${o.message}` : x;
19310
19262
  const r = n2(17);
19311
19263
  const o = n2(460);
19312
19264
  const npmRunPath = (e3) => {
19313
- e3 = __spreadValues({ cwd: process.cwd(), path: process.env[o()], execPath: process.execPath }, e3);
19265
+ e3 = { cwd: process.cwd(), path: process.env[o()], execPath: process.execPath, ...e3 };
19314
19266
  let t3;
19315
19267
  let n3 = r.resolve(e3.cwd);
19316
19268
  const s = [];
@@ -19326,8 +19278,8 @@ ${o.message}` : x;
19326
19278
  e2.exports = npmRunPath;
19327
19279
  e2.exports["default"] = npmRunPath;
19328
19280
  e2.exports.env = (t3) => {
19329
- t3 = __spreadValues({ env: process.env }, t3);
19330
- const n3 = __spreadValues({}, t3.env);
19281
+ t3 = { env: process.env, ...t3 };
19282
+ const n3 = { ...t3.env };
19331
19283
  const r2 = o({ env: n3 });
19332
19284
  t3.path = n3[r2];
19333
19285
  n3[r2] = e2.exports(t3);
@@ -20736,7 +20688,7 @@ var require_upath = __commonJS({
20736
20688
  _.VERSION = typeof n !== "undefined" && n !== null ? n : "NO-VERSION";
20737
20689
  p = function(e3) {
20738
20690
  e3 = e3.replace(/\\/g, "/");
20739
- e3 = e3.replace(new RegExp("(?<!^)\\/+", "g"), "/");
20691
+ e3 = e3.replace(/(?<!^)\/+/g, "/");
20740
20692
  return e3;
20741
20693
  };
20742
20694
  for (c in o) {
@@ -21032,9 +20984,7 @@ var require_pkg_up = __commonJS({
21032
20984
  };
21033
20985
  }, 800: (e2, r2, n2) => {
21034
20986
  const t = n2(485);
21035
- e2.exports = (..._0) => __async(exports, [..._0], function* ({ cwd: e3 } = {}) {
21036
- return t("package.json", { cwd: e3 });
21037
- });
20987
+ e2.exports = async ({ cwd: e3 } = {}) => t("package.json", { cwd: e3 });
21038
20988
  e2.exports.sync = ({ cwd: e3 } = {}) => t.sync("package.json", { cwd: e3 });
21039
20989
  }, 147: (e2) => {
21040
20990
  e2.exports = require("fs");
@@ -24085,7 +24035,7 @@ var require_fast_glob = __commonJS({
24085
24035
  }
24086
24036
  if (t4.nodes && t4.ranges > 0) {
24087
24037
  let r4 = s.reduce(t4.nodes);
24088
- let i2 = n(...r4, __spreadProps(__spreadValues({}, e3), { wrap: false, toRegex: true }));
24038
+ let i2 = n(...r4, { ...e3, wrap: false, toRegex: true });
24089
24039
  if (i2.length !== 0) {
24090
24040
  return r4.length > 1 && i2.length > 1 ? `(${i2})` : i2;
24091
24041
  }
@@ -24511,13 +24461,11 @@ var require_fast_glob = __commonJS({
24511
24461
  const a = r2(1066);
24512
24462
  const u = r2(7190);
24513
24463
  const c = r2(3828);
24514
- function FastGlob(t3, e3) {
24515
- return __async(this, null, function* () {
24516
- assertPatternsInput(t3);
24517
- const r3 = getWorks(t3, i.default, e3);
24518
- const n2 = yield Promise.all(r3);
24519
- return c.array.flatten(n2);
24520
- });
24464
+ async function FastGlob(t3, e3) {
24465
+ assertPatternsInput(t3);
24466
+ const r3 = getWorks(t3, i.default, e3);
24467
+ const n2 = await Promise.all(r3);
24468
+ return c.array.flatten(n2);
24521
24469
  }
24522
24470
  (function(t3) {
24523
24471
  function sync(t4, e3) {
@@ -25688,7 +25636,7 @@ var require_fast_glob = __commonJS({
25688
25636
  };
25689
25637
  const toRange = (t3, e3, r3, n2) => {
25690
25638
  if (r3) {
25691
- return s(t3, e3, __spreadValues({ wrap: false }, n2));
25639
+ return s(t3, e3, { wrap: false, ...n2 });
25692
25640
  }
25693
25641
  let i = String.fromCharCode(t3);
25694
25642
  if (t3 === e3)
@@ -25754,7 +25702,7 @@ var require_fast_glob = __commonJS({
25754
25702
  g++;
25755
25703
  }
25756
25704
  if (n2.toRegex === true) {
25757
- return r3 > 1 ? toSequence(d, n2) : toRegex(_, null, __spreadValues({ wrap: false }, n2));
25705
+ return r3 > 1 ? toSequence(d, n2) : toRegex(_, null, { wrap: false, ...n2 });
25758
25706
  }
25759
25707
  return _;
25760
25708
  };
@@ -25796,7 +25744,7 @@ var require_fast_glob = __commonJS({
25796
25744
  if (isObject4(r3)) {
25797
25745
  return fill(t3, e3, 0, r3);
25798
25746
  }
25799
- let s2 = __spreadValues({}, n2);
25747
+ let s2 = { ...n2 };
25800
25748
  if (s2.capture === true)
25801
25749
  s2.wrap = true;
25802
25750
  r3 = r3 || s2.step || 1;
@@ -26120,7 +26068,7 @@ var require_fast_glob = __commonJS({
26120
26068
  }
26121
26069
  };
26122
26070
  for (let o3 = 0; o3 < e3.length; o3++) {
26123
- let u2 = i(String(e3[o3]), __spreadProps(__spreadValues({}, r3), { onResult }), true);
26071
+ let u2 = i(String(e3[o3]), { ...r3, onResult }, true);
26124
26072
  let c2 = u2.state.negated || u2.state.negatedExtglob;
26125
26073
  if (c2)
26126
26074
  a++;
@@ -26162,7 +26110,7 @@ var require_fast_glob = __commonJS({
26162
26110
  r3.onResult(t4);
26163
26111
  s2.push(t4.output);
26164
26112
  };
26165
- let i2 = new Set(micromatch(t3, e3, __spreadProps(__spreadValues({}, r3), { onResult })));
26113
+ let i2 = new Set(micromatch(t3, e3, { ...r3, onResult }));
26166
26114
  for (let t4 of s2) {
26167
26115
  if (!i2.has(t4)) {
26168
26116
  n2.add(t4);
@@ -26185,7 +26133,7 @@ var require_fast_glob = __commonJS({
26185
26133
  return true;
26186
26134
  }
26187
26135
  }
26188
- return micromatch.isMatch(t3, e3, __spreadProps(__spreadValues({}, r3), { contains: true }));
26136
+ return micromatch.isMatch(t3, e3, { ...r3, contains: true });
26189
26137
  };
26190
26138
  micromatch.matchKeys = (t3, e3, r3) => {
26191
26139
  if (!o.isObject(t3)) {
@@ -26225,7 +26173,7 @@ var require_fast_glob = __commonJS({
26225
26173
  };
26226
26174
  micromatch.capture = (t3, e3, r3) => {
26227
26175
  let n2 = o.isWindows(r3);
26228
- let s2 = i.makeRe(String(t3), __spreadProps(__spreadValues({}, r3), { capture: true }));
26176
+ let s2 = i.makeRe(String(t3), { ...r3, capture: true });
26229
26177
  let a = s2.exec(n2 ? o.toPosixSlashes(e3) : e3);
26230
26178
  if (a) {
26231
26179
  return a.slice(1).map((t4) => t4 === void 0 ? "" : t4);
@@ -26253,7 +26201,7 @@ var require_fast_glob = __commonJS({
26253
26201
  micromatch.braceExpand = (t3, e3) => {
26254
26202
  if (typeof t3 !== "string")
26255
26203
  throw new TypeError("Expected a string");
26256
- return micromatch.braces(t3, __spreadProps(__spreadValues({}, e3), { expand: true }));
26204
+ return micromatch.braces(t3, { ...e3, expand: true });
26257
26205
  };
26258
26206
  t2.exports = micromatch;
26259
26207
  }, 376: (t2, e2, r2) => {
@@ -26280,7 +26228,7 @@ var require_fast_glob = __commonJS({
26280
26228
  const m = `[^.${c}]`;
26281
26229
  const v = `${f}*?`;
26282
26230
  const E = { DOT_LITERAL: o, PLUS_LITERAL: a, QMARK_LITERAL: u, SLASH_LITERAL: c, ONE_CHAR: l, QMARK: f, END_ANCHOR: p, DOTS_SLASH: d, NO_DOT: _, NO_DOTS: g, NO_DOT_SLASH: y, NO_DOTS_SLASH: S, QMARK_NO_DOT: m, STAR: v, START_ANCHOR: h };
26283
- const A = __spreadProps(__spreadValues({}, E), { SLASH_LITERAL: `[${s}]`, QMARK: i, STAR: `${i}*?`, DOTS_SLASH: `${o}{1,2}(?:[${s}]|$)`, NO_DOT: `(?!${o})`, NO_DOTS: `(?!(?:^|[${s}])${o}{1,2}(?:[${s}]|$))`, NO_DOT_SLASH: `(?!${o}{0,1}(?:[${s}]|$))`, NO_DOTS_SLASH: `(?!${o}{1,2}(?:[${s}]|$))`, QMARK_NO_DOT: `[^.${s}]`, START_ANCHOR: `(?:^|[${s}])`, END_ANCHOR: `(?:[${s}]|$)` });
26231
+ const A = { ...E, SLASH_LITERAL: `[${s}]`, QMARK: i, STAR: `${i}*?`, DOTS_SLASH: `${o}{1,2}(?:[${s}]|$)`, NO_DOT: `(?!${o})`, NO_DOTS: `(?!(?:^|[${s}])${o}{1,2}(?:[${s}]|$))`, NO_DOT_SLASH: `(?!${o}{0,1}(?:[${s}]|$))`, NO_DOTS_SLASH: `(?!${o}{1,2}(?:[${s}]|$))`, QMARK_NO_DOT: `[^.${s}]`, START_ANCHOR: `(?:^|[${s}])`, END_ANCHOR: `(?:[${s}]|$)` };
26284
26232
  const b = { alnum: "a-zA-Z0-9", alpha: "a-zA-Z", ascii: "\\x00-\\x7F", blank: " \\t", cntrl: "\\x00-\\x1F\\x7F", digit: "0-9", graph: "\\x21-\\x7E", lower: "a-z", print: "\\x20-\\x7E ", punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~", space: " \\t\\r\\n\\v\\f", upper: "A-Z", word: "A-Za-z0-9_", xdigit: "A-Fa-f0-9" };
26285
26233
  t2.exports = { MAX_LENGTH: 1024 * 64, POSIX_REGEX_SOURCE: b, REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g, REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/, REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/, REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g, REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g, REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g, REPLACEMENTS: { "***": "*", "**/**": "**", "**/**/**": "**" }, CHAR_0: 48, CHAR_9: 57, CHAR_UPPERCASE_A: 65, CHAR_LOWERCASE_A: 97, CHAR_UPPERCASE_Z: 90, CHAR_LOWERCASE_Z: 122, CHAR_LEFT_PARENTHESES: 40, CHAR_RIGHT_PARENTHESES: 41, CHAR_ASTERISK: 42, CHAR_AMPERSAND: 38, CHAR_AT: 64, CHAR_BACKWARD_SLASH: 92, CHAR_CARRIAGE_RETURN: 13, CHAR_CIRCUMFLEX_ACCENT: 94, CHAR_COLON: 58, CHAR_COMMA: 44, CHAR_DOT: 46, CHAR_DOUBLE_QUOTE: 34, CHAR_EQUAL: 61, CHAR_EXCLAMATION_MARK: 33, CHAR_FORM_FEED: 12, CHAR_FORWARD_SLASH: 47, CHAR_GRAVE_ACCENT: 96, CHAR_HASH: 35, CHAR_HYPHEN_MINUS: 45, CHAR_LEFT_ANGLE_BRACKET: 60, CHAR_LEFT_CURLY_BRACE: 123, CHAR_LEFT_SQUARE_BRACKET: 91, CHAR_LINE_FEED: 10, CHAR_NO_BREAK_SPACE: 160, CHAR_PERCENT: 37, CHAR_PLUS: 43, CHAR_QUESTION_MARK: 63, CHAR_RIGHT_ANGLE_BRACKET: 62, CHAR_RIGHT_CURLY_BRACE: 125, CHAR_RIGHT_SQUARE_BRACKET: 93, CHAR_SEMICOLON: 59, CHAR_SINGLE_QUOTE: 39, CHAR_SPACE: 32, CHAR_TAB: 9, CHAR_UNDERSCORE: 95, CHAR_VERTICAL_LINE: 124, CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279, SEP: n.sep, extglobChars(t3) {
26286
26234
  return { "!": { type: "negate", open: "(?:(?!(?:", close: `))${t3.STAR})` }, "?": { type: "qmark", open: "(?:", close: ")?" }, "+": { type: "plus", open: "(?:", close: ")+" }, "*": { type: "star", open: "(?:", close: ")*" }, "@": { type: "at", open: "(?:", close: ")" } };
@@ -26311,7 +26259,7 @@ var require_fast_glob = __commonJS({
26311
26259
  throw new TypeError("Expected a string");
26312
26260
  }
26313
26261
  t3 = c[t3] || t3;
26314
- const r3 = __spreadValues({}, e3);
26262
+ const r3 = { ...e3 };
26315
26263
  const l = typeof r3.maxLength === "number" ? Math.min(i, r3.maxLength) : i;
26316
26264
  let f = t3.length;
26317
26265
  if (f > l) {
@@ -26403,7 +26351,7 @@ var require_fast_glob = __commonJS({
26403
26351
  M = t4;
26404
26352
  };
26405
26353
  const extglobOpen = (t4, e4) => {
26406
- const n2 = __spreadProps(__spreadValues({}, y[e4]), { conditions: 1, inner: "" });
26354
+ const n2 = { ...y[e4], conditions: 1, inner: "" };
26407
26355
  n2.prev = M;
26408
26356
  n2.parens = H.parens;
26409
26357
  n2.output = H.output;
@@ -26425,7 +26373,7 @@ var require_fast_glob = __commonJS({
26425
26373
  n2 = t4.close = `)$))${i2}`;
26426
26374
  }
26427
26375
  if (t4.inner.includes("*") && (s2 = remaining()) && /^\.[^\\/.]+$/.test(s2)) {
26428
- const r4 = parse3(s2, __spreadProps(__spreadValues({}, e3), { fastpaths: false })).output;
26376
+ const r4 = parse3(s2, { ...e3, fastpaths: false }).output;
26429
26377
  n2 = t4.close = `)${r4})${i2})`;
26430
26378
  }
26431
26379
  if (t4.prev.type === "bos") {
@@ -26947,7 +26895,7 @@ var require_fast_glob = __commonJS({
26947
26895
  return H;
26948
26896
  };
26949
26897
  parse3.fastpaths = (t3, e3) => {
26950
- const r3 = __spreadValues({}, e3);
26898
+ const r3 = { ...e3 };
26951
26899
  const o2 = typeof r3.maxLength === "number" ? Math.min(i, r3.maxLength) : i;
26952
26900
  const a2 = t3.length;
26953
26901
  if (a2 > o2) {
@@ -27038,7 +26986,7 @@ var require_fast_glob = __commonJS({
27038
26986
  delete a2.state;
27039
26987
  let isIgnored = () => false;
27040
26988
  if (s2.ignore) {
27041
- const t4 = __spreadProps(__spreadValues({}, e3), { ignore: null, onMatch: null, onResult: null });
26989
+ const t4 = { ...e3, ignore: null, onMatch: null, onResult: null };
27042
26990
  isIgnored = picomatch(s2.ignore, t4, r3);
27043
26991
  }
27044
26992
  const matcher = (r4, n3 = false) => {
@@ -27100,7 +27048,7 @@ var require_fast_glob = __commonJS({
27100
27048
  picomatch.parse = (t3, e3) => {
27101
27049
  if (Array.isArray(t3))
27102
27050
  return t3.map((t4) => picomatch.parse(t4, e3));
27103
- return i(t3, __spreadProps(__spreadValues({}, e3), { fastpaths: false }));
27051
+ return i(t3, { ...e3, fastpaths: false });
27104
27052
  };
27105
27053
  picomatch.scan = (t3, e3) => s(t3, e3);
27106
27054
  picomatch.compileRe = (t3, e3, r3 = false, n2 = false) => {
@@ -27565,7 +27513,7 @@ var require_fast_glob = __commonJS({
27565
27513
  if (n(e3) === false) {
27566
27514
  throw new TypeError("toRegexRange: expected the second argument to be a number.");
27567
27515
  }
27568
- let s = __spreadValues({ relaxZeros: true }, r3);
27516
+ let s = { relaxZeros: true, ...r3 };
27569
27517
  if (typeof s.strictZeros === "boolean") {
27570
27518
  s.relaxZeros = s.strictZeros === false;
27571
27519
  }
@@ -27843,19 +27791,19 @@ var require_globby = __commonJS({
27843
27791
  }
27844
27792
  return [n.posix.join(t3, "**")];
27845
27793
  };
27846
- t2.exports = (t3, e3) => __async(exports, null, function* () {
27847
- e3 = __spreadValues({ cwd: process.cwd() }, e3);
27794
+ t2.exports = async (t3, e3) => {
27795
+ e3 = { cwd: process.cwd(), ...e3 };
27848
27796
  if (typeof e3.cwd !== "string") {
27849
27797
  throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e3.cwd}\``);
27850
27798
  }
27851
- const r3 = yield Promise.all([].concat(t3).map((t4) => __async(exports, null, function* () {
27852
- const r4 = yield s.isDirectory(getPath(t4, e3.cwd));
27799
+ const r3 = await Promise.all([].concat(t3).map(async (t4) => {
27800
+ const r4 = await s.isDirectory(getPath(t4, e3.cwd));
27853
27801
  return r4 ? getGlob(t4, e3) : t4;
27854
- })));
27802
+ }));
27855
27803
  return [].concat.apply([], r3);
27856
- });
27804
+ };
27857
27805
  t2.exports.sync = (t3, e3) => {
27858
- e3 = __spreadValues({ cwd: process.cwd() }, e3);
27806
+ e3 = { cwd: process.cwd(), ...e3 };
27859
27807
  if (typeof e3.cwd !== "string") {
27860
27808
  throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e3.cwd}\``);
27861
27809
  }
@@ -27900,24 +27848,24 @@ var require_globby = __commonJS({
27900
27848
  return o.join(t3, e3);
27901
27849
  };
27902
27850
  const getIsIgnoredPredecate = (t3, e3) => (r3) => t3.ignores(a(o.relative(e3, ensureAbsolutePathForCwd(e3, r3.path || r3))));
27903
- const getFile = (t3, e3) => __async(exports, null, function* () {
27851
+ const getFile = async (t3, e3) => {
27904
27852
  const r3 = o.join(e3, t3);
27905
- const n2 = yield u(r3, "utf8");
27853
+ const n2 = await u(r3, "utf8");
27906
27854
  return { cwd: e3, filePath: r3, content: n2 };
27907
- });
27855
+ };
27908
27856
  const getFileSync = (t3, e3) => {
27909
27857
  const r3 = o.join(e3, t3);
27910
27858
  const n2 = s.readFileSync(r3, "utf8");
27911
27859
  return { cwd: e3, filePath: r3, content: n2 };
27912
27860
  };
27913
27861
  const normalizeOptions = ({ ignore: t3 = [], cwd: e3 = a(process.cwd()) } = {}) => ({ ignore: t3, cwd: e3 });
27914
- t2.exports = (t3) => __async(exports, null, function* () {
27862
+ t2.exports = async (t3) => {
27915
27863
  t3 = normalizeOptions(t3);
27916
- const e3 = yield i("**/.gitignore", { ignore: p.concat(t3.ignore), cwd: t3.cwd });
27917
- const r3 = yield Promise.all(e3.map((e4) => getFile(e4, t3.cwd)));
27864
+ const e3 = await i("**/.gitignore", { ignore: p.concat(t3.ignore), cwd: t3.cwd });
27865
+ const r3 = await Promise.all(e3.map((e4) => getFile(e4, t3.cwd)));
27918
27866
  const n2 = reduceIgnore(r3);
27919
27867
  return getIsIgnoredPredecate(n2, t3.cwd);
27920
- });
27868
+ };
27921
27869
  t2.exports.sync = (t3) => {
27922
27870
  t3 = normalizeOptions(t3);
27923
27871
  const e3 = i.sync("**/.gitignore", { ignore: p.concat(t3.ignore), cwd: t3.cwd });
@@ -27948,7 +27896,7 @@ var require_globby = __commonJS({
27948
27896
  let e3;
27949
27897
  try {
27950
27898
  e3 = n.statSync(t3.cwd);
27951
- } catch (e4) {
27899
+ } catch {
27952
27900
  return;
27953
27901
  }
27954
27902
  if (!e3.isDirectory()) {
@@ -27961,13 +27909,13 @@ var require_globby = __commonJS({
27961
27909
  assertPatternsInput(t3);
27962
27910
  checkCwdOption(e3);
27963
27911
  const r3 = [];
27964
- e3 = __spreadValues({ ignore: [], expandDirectories: true }, e3);
27912
+ e3 = { ignore: [], expandDirectories: true, ...e3 };
27965
27913
  for (const [n2, s2] of t3.entries()) {
27966
27914
  if (isNegative(s2)) {
27967
27915
  continue;
27968
27916
  }
27969
27917
  const o2 = t3.slice(n2).filter((t4) => isNegative(t4)).map((t4) => t4.slice(1));
27970
- const i2 = __spreadProps(__spreadValues({}, e3), { ignore: e3.ignore.concat(o2) });
27918
+ const i2 = { ...e3, ignore: e3.ignore.concat(o2) };
27971
27919
  r3.push({ pattern: s2, options: i2 });
27972
27920
  }
27973
27921
  return r3;
@@ -27978,9 +27926,9 @@ var require_globby = __commonJS({
27978
27926
  r3.cwd = t3.options.cwd;
27979
27927
  }
27980
27928
  if (Array.isArray(t3.options.expandDirectories)) {
27981
- r3 = __spreadProps(__spreadValues({}, r3), { files: t3.options.expandDirectories });
27929
+ r3 = { ...r3, files: t3.options.expandDirectories };
27982
27930
  } else if (typeof t3.options.expandDirectories === "object") {
27983
- r3 = __spreadValues(__spreadValues({}, r3), t3.options.expandDirectories);
27931
+ r3 = { ...r3, ...t3.options.expandDirectories };
27984
27932
  }
27985
27933
  return e3(t3.pattern, r3);
27986
27934
  };
@@ -27993,22 +27941,20 @@ var require_globby = __commonJS({
27993
27941
  }
27994
27942
  return { pattern: e3, options: r3 };
27995
27943
  };
27996
- t2.exports = (t3, e3) => __async(exports, null, function* () {
27944
+ t2.exports = async (t3, e3) => {
27997
27945
  const r3 = generateGlobTasks(t3, e3);
27998
- const getFilter = () => __async(exports, null, function* () {
27999
- return e3 && e3.gitignore ? a({ cwd: e3.cwd, ignore: e3.ignore }) : DEFAULT_FILTER;
28000
- });
28001
- const getTasks = () => __async(exports, null, function* () {
28002
- const t4 = yield Promise.all(r3.map((t5) => __async(exports, null, function* () {
28003
- const e4 = yield getPattern(t5, c);
27946
+ const getFilter = async () => e3 && e3.gitignore ? a({ cwd: e3.cwd, ignore: e3.ignore }) : DEFAULT_FILTER;
27947
+ const getTasks = async () => {
27948
+ const t4 = await Promise.all(r3.map(async (t5) => {
27949
+ const e4 = await getPattern(t5, c);
28004
27950
  return Promise.all(e4.map(globToTask(t5)));
28005
- })));
27951
+ }));
28006
27952
  return s(...t4);
28007
- });
28008
- const [n2, o2] = yield Promise.all([getFilter(), getTasks()]);
28009
- const p2 = yield Promise.all(o2.map((t4) => i(t4.pattern, t4.options)));
27953
+ };
27954
+ const [n2, o2] = await Promise.all([getFilter(), getTasks()]);
27955
+ const p2 = await Promise.all(o2.map((t4) => i(t4.pattern, t4.options)));
28010
27956
  return s(...p2).filter((t4) => !n2(getPathString(t4)));
28011
- });
27957
+ };
28012
27958
  t2.exports.sync = (t3, e3) => {
28013
27959
  const r3 = generateGlobTasks(t3, e3);
28014
27960
  const n2 = [];
@@ -28362,21 +28308,19 @@ var require_globby = __commonJS({
28362
28308
  "use strict";
28363
28309
  const { promisify: n } = r2(837);
28364
28310
  const s = r2(147);
28365
- function isType4(t3, e3, r3) {
28366
- return __async(this, null, function* () {
28367
- if (typeof r3 !== "string") {
28368
- throw new TypeError(`Expected a string, got ${typeof r3}`);
28369
- }
28370
- try {
28371
- const o = yield n(s[t3])(r3);
28372
- return o[e3]();
28373
- } catch (t4) {
28374
- if (t4.code === "ENOENT") {
28375
- return false;
28376
- }
28377
- throw t4;
28311
+ async function isType4(t3, e3, r3) {
28312
+ if (typeof r3 !== "string") {
28313
+ throw new TypeError(`Expected a string, got ${typeof r3}`);
28314
+ }
28315
+ try {
28316
+ const o = await n(s[t3])(r3);
28317
+ return o[e3]();
28318
+ } catch (t4) {
28319
+ if (t4.code === "ENOENT") {
28320
+ return false;
28378
28321
  }
28379
- });
28322
+ throw t4;
28323
+ }
28380
28324
  }
28381
28325
  function isTypeSync(t3, e3, r3) {
28382
28326
  if (typeof r3 !== "string") {
@@ -30751,15 +30695,15 @@ var require_gzip_size = __commonJS({
30751
30695
  const i = t2(796);
30752
30696
  const { promisify: a } = t2(837);
30753
30697
  const s = t2(325);
30754
- const getOptions = (e3) => __spreadValues({ level: 9 }, e3);
30698
+ const getOptions = (e3) => ({ level: 9, ...e3 });
30755
30699
  const p = a(i.gzip);
30756
- e2.exports = (e3, r3) => __async(exports, null, function* () {
30700
+ e2.exports = async (e3, r3) => {
30757
30701
  if (!e3) {
30758
30702
  return 0;
30759
30703
  }
30760
- const t3 = yield p(e3, getOptions(r3));
30704
+ const t3 = await p(e3, getOptions(r3));
30761
30705
  return t3.length;
30762
- });
30706
+ };
30763
30707
  e2.exports.sync = (e3, r3) => i.gzipSync(e3, getOptions(r3)).length;
30764
30708
  e2.exports.stream = (e3) => {
30765
30709
  const r3 = new o.PassThrough();
@@ -33721,12 +33665,10 @@ Expecting one of '${i3.join("', '")}'`);
33721
33665
  this._parseCommand([], i3);
33722
33666
  return this;
33723
33667
  }
33724
- parseAsync(t3, e3) {
33725
- return __async(this, null, function* () {
33726
- const i3 = this._prepareUserArgs(t3, e3);
33727
- yield this._parseCommand([], i3);
33728
- return this;
33729
- });
33668
+ async parseAsync(t3, e3) {
33669
+ const i3 = this._prepareUserArgs(t3, e3);
33670
+ await this._parseCommand([], i3);
33671
+ return this;
33730
33672
  }
33731
33673
  _executeSubCommand(t3, e3) {
33732
33674
  e3 = e3.slice();
@@ -35533,11 +35475,11 @@ var require_fs = __commonJS({
35533
35475
  }
35534
35476
  return false;
35535
35477
  };
35536
- var emptyDir = (dir) => __async(exports, null, function* () {
35537
- if (yield _compiled.fs.pathExists(dir)) {
35538
- yield _compiled.fs.emptyDir(dir);
35478
+ var emptyDir = async (dir) => {
35479
+ if (await _compiled.fs.pathExists(dir)) {
35480
+ await _compiled.fs.emptyDir(dir);
35539
35481
  }
35540
- });
35482
+ };
35541
35483
  }
35542
35484
  });
35543
35485
 
@@ -35949,19 +35891,19 @@ var require_project = __commonJS({
35949
35891
  return false;
35950
35892
  }
35951
35893
  };
35952
- var isApiOnly = (appDirectory, entryDir, apiDir) => __async(exports, null, function* () {
35953
- const existApi = yield _compiled.fs.pathExists(apiDir !== null && apiDir !== void 0 ? apiDir : _path.default.join(appDirectory, "api"));
35954
- const existSrc = yield _compiled.fs.pathExists(_path.default.join(appDirectory, entryDir !== null && entryDir !== void 0 ? entryDir : "src"));
35894
+ var isApiOnly = async (appDirectory, entryDir, apiDir) => {
35895
+ const existApi = await _compiled.fs.pathExists(apiDir !== null && apiDir !== void 0 ? apiDir : _path.default.join(appDirectory, "api"));
35896
+ const existSrc = await _compiled.fs.pathExists(_path.default.join(appDirectory, entryDir !== null && entryDir !== void 0 ? entryDir : "src"));
35955
35897
  const options = (0, _compiled.minimist)((0, _commands.getArgv)());
35956
35898
  if (options["api-only"]) {
35957
35899
  return true;
35958
35900
  }
35959
35901
  return existApi && !existSrc;
35960
- });
35961
- var isWebOnly = () => __async(exports, null, function* () {
35902
+ };
35903
+ var isWebOnly = async () => {
35962
35904
  const options = (0, _compiled.minimist)((0, _commands.getArgv)());
35963
35905
  return Boolean(options["web-only"]);
35964
- });
35906
+ };
35965
35907
  var isBeyondReact17 = (cwd) => {
35966
35908
  const pkgPath = _pkgup.default.sync({
35967
35909
  cwd
@@ -35970,7 +35912,10 @@ var require_project = __commonJS({
35970
35912
  return false;
35971
35913
  }
35972
35914
  const pkgInfo = JSON.parse(_compiled.fs.readFileSync(pkgPath, "utf8"));
35973
- const deps = __spreadValues(__spreadValues({}, pkgInfo.devDependencies), pkgInfo.dependencies);
35915
+ const deps = {
35916
+ ...pkgInfo.devDependencies,
35917
+ ...pkgInfo.dependencies
35918
+ };
35974
35919
  if (typeof deps.react !== "string") {
35975
35920
  return false;
35976
35921
  }
@@ -35982,7 +35927,10 @@ var require_project = __commonJS({
35982
35927
  return false;
35983
35928
  }
35984
35929
  const pkgInfo = JSON.parse(_compiled.fs.readFileSync(pkgPath, "utf8"));
35985
- const deps = __spreadValues(__spreadValues({}, pkgInfo.devDependencies), pkgInfo.dependencies);
35930
+ const deps = {
35931
+ ...pkgInfo.devDependencies,
35932
+ ...pkgInfo.dependencies
35933
+ };
35986
35934
  if (typeof deps.react !== "string") {
35987
35935
  return false;
35988
35936
  }
@@ -36037,55 +35985,47 @@ var require_package2 = __commonJS({
36037
35985
  }
36038
35986
  });
36039
35987
  var _compiled = require_compiled();
36040
- function getPnpmVersion() {
36041
- return __async(this, null, function* () {
36042
- const { stdout } = yield (0, _compiled.execa)("pnpm", [
36043
- "--version"
36044
- ]);
36045
- return stdout;
36046
- });
35988
+ async function getPnpmVersion() {
35989
+ const { stdout } = await (0, _compiled.execa)("pnpm", [
35990
+ "--version"
35991
+ ]);
35992
+ return stdout;
36047
35993
  }
36048
- function canUseNpm4() {
36049
- return __async(this, null, function* () {
36050
- try {
36051
- yield (0, _compiled.execa)("npm", [
36052
- "--version"
36053
- ], {
36054
- env: process.env
36055
- });
36056
- return true;
36057
- } catch (e) {
36058
- return false;
36059
- }
36060
- });
35994
+ async function canUseNpm4() {
35995
+ try {
35996
+ await (0, _compiled.execa)("npm", [
35997
+ "--version"
35998
+ ], {
35999
+ env: process.env
36000
+ });
36001
+ return true;
36002
+ } catch (e) {
36003
+ return false;
36004
+ }
36061
36005
  }
36062
- function canUseYarn3() {
36063
- return __async(this, null, function* () {
36064
- try {
36065
- yield (0, _compiled.execa)("yarn", [
36066
- "--version"
36067
- ], {
36068
- env: process.env
36069
- });
36070
- return true;
36071
- } catch (e) {
36072
- return false;
36073
- }
36074
- });
36006
+ async function canUseYarn3() {
36007
+ try {
36008
+ await (0, _compiled.execa)("yarn", [
36009
+ "--version"
36010
+ ], {
36011
+ env: process.env
36012
+ });
36013
+ return true;
36014
+ } catch (e) {
36015
+ return false;
36016
+ }
36075
36017
  }
36076
- function canUsePnpm4() {
36077
- return __async(this, null, function* () {
36078
- try {
36079
- yield (0, _compiled.execa)("pnpm", [
36080
- "--version"
36081
- ], {
36082
- env: process.env
36083
- });
36084
- return true;
36085
- } catch (e) {
36086
- return false;
36087
- }
36088
- });
36018
+ async function canUsePnpm4() {
36019
+ try {
36020
+ await (0, _compiled.execa)("pnpm", [
36021
+ "--version"
36022
+ ], {
36023
+ env: process.env
36024
+ });
36025
+ return true;
36026
+ } catch (e) {
36027
+ return false;
36028
+ }
36089
36029
  }
36090
36030
  }
36091
36031
  });
@@ -36138,31 +36078,29 @@ var require_data = __commonJS({
36138
36078
  var _is = require_is();
36139
36079
  var _package = require_package2();
36140
36080
  var MAX_TIMES = 5;
36141
- function getPackageManager2() {
36142
- return __async(this, arguments, function* (cwd = process.cwd()) {
36143
- let appDirectory = cwd;
36144
- let times = 0;
36145
- while (_os.default.homedir() !== appDirectory && times < MAX_TIMES) {
36146
- times++;
36147
- if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "pnpm-lock.yaml"))) {
36148
- return "pnpm";
36149
- }
36150
- if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "yarn.lock"))) {
36151
- return "yarn";
36152
- }
36153
- if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "package-lock.json"))) {
36154
- return "npm";
36155
- }
36156
- appDirectory = _path.default.join(appDirectory, "..");
36157
- }
36158
- if (yield (0, _package.canUsePnpm)()) {
36081
+ async function getPackageManager2(cwd = process.cwd()) {
36082
+ let appDirectory = cwd;
36083
+ let times = 0;
36084
+ while (_os.default.homedir() !== appDirectory && times < MAX_TIMES) {
36085
+ times++;
36086
+ if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "pnpm-lock.yaml"))) {
36159
36087
  return "pnpm";
36160
36088
  }
36161
- if (yield (0, _package.canUseYarn)()) {
36089
+ if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "yarn.lock"))) {
36162
36090
  return "yarn";
36163
36091
  }
36164
- return "npm";
36165
- });
36092
+ if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "package-lock.json"))) {
36093
+ return "npm";
36094
+ }
36095
+ appDirectory = _path.default.join(appDirectory, "..");
36096
+ }
36097
+ if (await (0, _package.canUsePnpm)()) {
36098
+ return "pnpm";
36099
+ }
36100
+ if (await (0, _package.canUseYarn)()) {
36101
+ return "yarn";
36102
+ }
36103
+ return "npm";
36166
36104
  }
36167
36105
  var getCoreJsVersion = (corejsPkgPath) => {
36168
36106
  try {
@@ -36242,7 +36180,10 @@ var require_config2 = __commonJS({
36242
36180
  if (optionsByEntry === void 0 && isMainEntry && packageName) {
36243
36181
  optionsByEntry = getOptionsByEntryName(packageName, optionsByEntries);
36244
36182
  }
36245
- return optionsByEntry !== void 0 ? (0, _is.isPlainObject)(optionsByEntry) && (0, _is.isPlainObject)(baseOptions) ? __spreadValues(__spreadValues({}, baseOptions), optionsByEntry) : optionsByEntry : baseOptions;
36183
+ return optionsByEntry !== void 0 ? (0, _is.isPlainObject)(optionsByEntry) && (0, _is.isPlainObject)(baseOptions) ? {
36184
+ ...baseOptions,
36185
+ ...optionsByEntry
36186
+ } : optionsByEntry : baseOptions;
36246
36187
  } else {
36247
36188
  return baseOptions;
36248
36189
  }
@@ -36280,10 +36221,10 @@ var require_get = __commonJS({
36280
36221
  var _fs = require_fs();
36281
36222
  _export_star._(require_data(), exports);
36282
36223
  _export_star._(require_config2(), exports);
36283
- var getServerConfig = (appDirectory, configFile) => __async(exports, null, function* () {
36224
+ var getServerConfig = async (appDirectory, configFile) => {
36284
36225
  const configFilePath = (0, _fs.findExists)(_constants.CONFIG_FILE_EXTENSIONS.map((extension) => _path.default.resolve(appDirectory, `${configFile}${extension}`)));
36285
36226
  return configFilePath;
36286
- });
36227
+ };
36287
36228
  var getTargetDir = (from, baseDir, targetBaseDir) => {
36288
36229
  const relativePath = _path.default.relative(baseDir, from);
36289
36230
  return _path.default.resolve(targetBaseDir, relativePath);
@@ -36408,8 +36349,14 @@ ${_chalk.default.grey(rest.join("\n"))}`;
36408
36349
  }
36409
36350
  constructor(options = {}) {
36410
36351
  this.level = options.level || LOG_TYPES.log.level;
36411
- this.config = __spreadValues(__spreadValues({}, DEFAULT_CONFIG), options.config || {});
36412
- this.types = __spreadValues(__spreadValues({}, LOG_TYPES), options.types || {});
36352
+ this.config = {
36353
+ ...DEFAULT_CONFIG,
36354
+ ...options.config || {}
36355
+ };
36356
+ this.types = {
36357
+ ...LOG_TYPES,
36358
+ ...options.types || {}
36359
+ };
36413
36360
  this.longestLabel = this.getLongestLabel();
36414
36361
  Object.keys(this.types).forEach((type) => {
36415
36362
  this[type] = this._log.bind(this, type);
@@ -36527,7 +36474,10 @@ var require_alias = __commonJS({
36527
36474
  const baseUrl = (_tsconfig = tsconfig) === null || _tsconfig === void 0 ? void 0 : (_tsconfig_compilerOptions = _tsconfig.compilerOptions) === null || _tsconfig_compilerOptions === void 0 ? void 0 : _tsconfig_compilerOptions.baseUrl;
36528
36475
  return {
36529
36476
  absoluteBaseUrl: baseUrl ? _path.default.join(option.appDirectory, baseUrl) : option.appDirectory,
36530
- paths: __spreadValues(__spreadValues({}, alias), (_tsconfig1 = tsconfig) === null || _tsconfig1 === void 0 ? void 0 : (_tsconfig_compilerOptions1 = _tsconfig1.compilerOptions) === null || _tsconfig_compilerOptions1 === void 0 ? void 0 : _tsconfig_compilerOptions1.paths),
36477
+ paths: {
36478
+ ...alias,
36479
+ ...(_tsconfig1 = tsconfig) === null || _tsconfig1 === void 0 ? void 0 : (_tsconfig_compilerOptions1 = _tsconfig1.compilerOptions) === null || _tsconfig_compilerOptions1 === void 0 ? void 0 : _tsconfig_compilerOptions1.paths
36480
+ },
36531
36481
  isTsPath: true,
36532
36482
  isTsProject: isTsProject2
36533
36483
  };
@@ -36613,7 +36563,7 @@ var require_path = __commonJS({
36613
36563
  try {
36614
36564
  ret = _os.default.tmpdir();
36615
36565
  ret = _fs.default.realpathSync(ret);
36616
- } catch (e) {
36566
+ } catch {
36617
36567
  }
36618
36568
  return ret;
36619
36569
  }
@@ -36714,7 +36664,10 @@ var require_babel = __commonJS({
36714
36664
  presets.forEach((preset, index) => {
36715
36665
  if (Array.isArray(preset)) {
36716
36666
  if (typeof preset[0] === "string" && (0, _path1.normalizeToPosixPath)(preset[0]).includes(presetName)) {
36717
- preset[1] = __spreadValues(__spreadValues({}, preset[1] || {}), options);
36667
+ preset[1] = {
36668
+ ...preset[1] || {},
36669
+ ...options
36670
+ };
36718
36671
  }
36719
36672
  } else if (typeof preset === "string" && (0, _path1.normalizeToPosixPath)(preset).includes(presetName)) {
36720
36673
  presets[index] = [
@@ -36743,7 +36696,10 @@ var require_babel = __commonJS({
36743
36696
  };
36744
36697
  var applyUserBabelConfig = (defaultOptions, userBabelConfig, extraBabelUtils) => {
36745
36698
  if (userBabelConfig) {
36746
- const babelUtils = __spreadValues(__spreadValues({}, getBabelUtils(defaultOptions)), extraBabelUtils);
36699
+ const babelUtils = {
36700
+ ...getBabelUtils(defaultOptions),
36701
+ ...extraBabelUtils
36702
+ };
36747
36703
  return (0, _applyOptionsChain.applyOptionsChain)(defaultOptions, userBabelConfig || {}, babelUtils);
36748
36704
  }
36749
36705
  return defaultOptions;
@@ -36816,7 +36772,10 @@ var require_monorepo = __commonJS({
36816
36772
  return false;
36817
36773
  }
36818
36774
  const json = JSON.parse(_fs.default.readFileSync(pkgJsonPath, "utf8"));
36819
- const deps = __spreadValues(__spreadValues({}, json.dependencies || {}), json.devDependencies || {});
36775
+ const deps = {
36776
+ ...json.dependencies || {},
36777
+ ...json.devDependencies || {}
36778
+ };
36820
36779
  return Boolean(deps["@modern-js/monorepo-tools"]);
36821
36780
  };
36822
36781
  var findMonorepoRoot = (appDirectory, maxDepth = PACKAGE_MAX_DEPTH) => {
@@ -36876,7 +36835,7 @@ var require_port = __commonJS({
36876
36835
  var _net = /* @__PURE__ */ _interop_require_default._(require("net"));
36877
36836
  var _compiled = require_compiled();
36878
36837
  var _logger = require_logger();
36879
- var getPort = (_0, ..._1) => __async(exports, [_0, ..._1], function* (port, { tryLimits = 20, strictPort = false } = {}) {
36838
+ var getPort = async (port, { tryLimits = 20, strictPort = false } = {}) => {
36880
36839
  if (typeof port === "string") {
36881
36840
  port = parseInt(port, 10);
36882
36841
  }
@@ -36888,7 +36847,7 @@ var require_port = __commonJS({
36888
36847
  let attempts = 0;
36889
36848
  while (!found && attempts <= tryLimits) {
36890
36849
  try {
36891
- yield new Promise((resolve, reject) => {
36850
+ await new Promise((resolve, reject) => {
36892
36851
  const server = _net.default.createServer();
36893
36852
  server.unref();
36894
36853
  server.on("error", reject);
@@ -36916,7 +36875,7 @@ var require_port = __commonJS({
36916
36875
  }
36917
36876
  }
36918
36877
  return port;
36919
- });
36878
+ };
36920
36879
  }
36921
36880
  });
36922
36881
 
@@ -37067,13 +37026,14 @@ var require_require = __commonJS({
37067
37026
  };
37068
37027
  var dynamicImport = new Function("modulePath", "return import(modulePath)");
37069
37028
  var requireExistModule = (filename, opt) => {
37070
- const final = __spreadValues({
37029
+ const final = {
37071
37030
  extensions: [
37072
37031
  ".ts",
37073
37032
  ".js"
37074
37033
  ],
37075
- interop: true
37076
- }, opt);
37034
+ interop: true,
37035
+ ...opt
37036
+ };
37077
37037
  const exist = (0, _fs.findExists)(final.extensions.map((ext) => `${filename}${ext}`));
37078
37038
  if (!exist) {
37079
37039
  return null;
@@ -37153,7 +37113,7 @@ var require_runtimeExports = __commonJS({
37153
37113
  _compiled.fs.appendFileSync(entryExportFile, `${statement}
37154
37114
  `);
37155
37115
  }
37156
- } catch (e) {
37116
+ } catch {
37157
37117
  }
37158
37118
  };
37159
37119
  const getPath = () => entryExportFile;
@@ -37201,29 +37161,29 @@ var require_watch = __commonJS({
37201
37161
  ignored
37202
37162
  });
37203
37163
  watcher.on("ready", () => ready = true);
37204
- watcher.on("change", (filePath) => __async(exports, null, function* () {
37164
+ watcher.on("change", async (filePath) => {
37205
37165
  const changedFilePath = _path.default.resolve(filePath);
37206
- yield runTask({
37166
+ await runTask({
37207
37167
  changedFilePath,
37208
37168
  changeType: WatchChangeType.CHANGE
37209
37169
  });
37210
- }));
37211
- watcher.on("add", (filePath) => __async(exports, null, function* () {
37170
+ });
37171
+ watcher.on("add", async (filePath) => {
37212
37172
  const changedFilePath = _path.default.resolve(filePath);
37213
37173
  if (ready) {
37214
- yield runTask({
37174
+ await runTask({
37215
37175
  changedFilePath,
37216
37176
  changeType: WatchChangeType.ADD
37217
37177
  });
37218
37178
  }
37219
- }));
37220
- watcher.on("unlink", (filePath) => __async(exports, null, function* () {
37179
+ });
37180
+ watcher.on("unlink", async (filePath) => {
37221
37181
  const changedFilePath = _path.default.resolve(filePath);
37222
- yield runTask({
37182
+ await runTask({
37223
37183
  changedFilePath,
37224
37184
  changeType: WatchChangeType.UNLINK
37225
37185
  });
37226
- }));
37186
+ });
37227
37187
  watcher.on("error", (err) => {
37228
37188
  throw err;
37229
37189
  });
@@ -37701,22 +37661,20 @@ var require_fs_extra2 = __commonJS({
37701
37661
  const o = r2(17);
37702
37662
  const c = r2(971);
37703
37663
  const s = r2(95);
37704
- const a = n(function emptyDir(e3) {
37705
- return __async(this, null, function* () {
37706
- let t3;
37707
- try {
37708
- t3 = yield i.readdir(e3);
37709
- } catch (e4) {
37710
- return c.mkdirs(e3);
37711
- }
37712
- return Promise.all(t3.map((t4) => s.remove(o.join(e3, t4))));
37713
- });
37664
+ const a = n(async function emptyDir(e3) {
37665
+ let t3;
37666
+ try {
37667
+ t3 = await i.readdir(e3);
37668
+ } catch {
37669
+ return c.mkdirs(e3);
37670
+ }
37671
+ return Promise.all(t3.map((t4) => s.remove(o.join(e3, t4))));
37714
37672
  });
37715
37673
  function emptyDirSync(e3) {
37716
37674
  let t3;
37717
37675
  try {
37718
37676
  t3 = i.readdirSync(e3);
37719
- } catch (e4) {
37677
+ } catch {
37720
37678
  return c.mkdirsSync(e3);
37721
37679
  }
37722
37680
  t3.forEach((t4) => {
@@ -37769,7 +37727,7 @@ var require_fs_extra2 = __commonJS({
37769
37727
  let t3;
37770
37728
  try {
37771
37729
  t3 = o.statSync(e3);
37772
- } catch (e4) {
37730
+ } catch {
37773
37731
  }
37774
37732
  if (t3 && t3.isFile())
37775
37733
  return;
@@ -37836,7 +37794,7 @@ var require_fs_extra2 = __commonJS({
37836
37794
  let r3;
37837
37795
  try {
37838
37796
  r3 = o.lstatSync(t3);
37839
- } catch (e4) {
37797
+ } catch {
37840
37798
  }
37841
37799
  try {
37842
37800
  const t4 = o.lstatSync(e3);
@@ -37931,7 +37889,7 @@ var require_fs_extra2 = __commonJS({
37931
37889
  return t3;
37932
37890
  try {
37933
37891
  r3 = n.lstatSync(e3);
37934
- } catch (e4) {
37892
+ } catch {
37935
37893
  return "file";
37936
37894
  }
37937
37895
  return r3 && r3.isDirectory() ? "dir" : "file";
@@ -37994,7 +37952,7 @@ var require_fs_extra2 = __commonJS({
37994
37952
  let n2;
37995
37953
  try {
37996
37954
  n2 = o.lstatSync(t3);
37997
- } catch (e4) {
37955
+ } catch {
37998
37956
  }
37999
37957
  if (n2 && n2.isSymbolicLink()) {
38000
37958
  const r4 = o.statSync(e3);
@@ -38069,7 +38027,7 @@ var require_fs_extra2 = __commonJS({
38069
38027
  }
38070
38028
  }, 81: (e2, t2, r2) => {
38071
38029
  "use strict";
38072
- e2.exports = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, r2(812)), r2(2)), r2(708)), r2(726)), r2(779)), r2(971)), r2(511)), r2(701)), r2(725)), r2(95));
38030
+ e2.exports = { ...r2(812), ...r2(2), ...r2(708), ...r2(726), ...r2(779), ...r2(971), ...r2(511), ...r2(701), ...r2(725), ...r2(95) };
38073
38031
  }, 779: (e2, t2, r2) => {
38074
38032
  "use strict";
38075
38033
  const n = r2(5).fromPromise;
@@ -38100,11 +38058,9 @@ var require_fs_extra2 = __commonJS({
38100
38058
  "use strict";
38101
38059
  const { stringify: n } = r2(208);
38102
38060
  const { outputFile: i } = r2(701);
38103
- function outputJson(_0, _1) {
38104
- return __async(this, arguments, function* (e3, t3, r3 = {}) {
38105
- const o = n(t3, r3);
38106
- yield i(e3, o, r3);
38107
- });
38061
+ async function outputJson(e3, t3, r3 = {}) {
38062
+ const o = n(t3, r3);
38063
+ await i(e3, o, r3);
38108
38064
  }
38109
38065
  e2.exports = outputJson;
38110
38066
  }, 971: (e2, t2, r2) => {
@@ -38121,12 +38077,12 @@ var require_fs_extra2 = __commonJS({
38121
38077
  const t3 = { mode: 511 };
38122
38078
  if (typeof e3 === "number")
38123
38079
  return e3;
38124
- return __spreadValues(__spreadValues({}, t3), e3).mode;
38080
+ return { ...t3, ...e3 }.mode;
38125
38081
  };
38126
- e2.exports.makeDir = (e3, t3) => __async(exports, null, function* () {
38082
+ e2.exports.makeDir = async (e3, t3) => {
38127
38083
  i(e3);
38128
38084
  return n.mkdir(e3, { mode: getMode(t3), recursive: true });
38129
- });
38085
+ };
38130
38086
  e2.exports.makeDirSync = (e3, t3) => {
38131
38087
  i(e3);
38132
38088
  return n.mkdirSync(e3, { mode: getMode(t3), recursive: true });
@@ -38544,7 +38500,7 @@ var require_fs_extra2 = __commonJS({
38544
38500
  try {
38545
38501
  const r4 = t3.rmdirSync(e3, t3);
38546
38502
  return r4;
38547
- } catch (e4) {
38503
+ } catch {
38548
38504
  }
38549
38505
  } while (Date.now() - r3 < 500);
38550
38506
  } else {
@@ -39443,28 +39399,26 @@ var require_fs_extra2 = __commonJS({
39443
39399
  }
39444
39400
  const i = r2(5);
39445
39401
  const { stringify: o, stripBom: c } = r2(208);
39446
- function _readFile(_0) {
39447
- return __async(this, arguments, function* (e3, t3 = {}) {
39448
- if (typeof t3 === "string") {
39449
- t3 = { encoding: t3 };
39450
- }
39451
- const r3 = t3.fs || n;
39452
- const o2 = "throws" in t3 ? t3.throws : true;
39453
- let s2 = yield i.fromCallback(r3.readFile)(e3, t3);
39454
- s2 = c(s2);
39455
- let a2;
39456
- try {
39457
- a2 = JSON.parse(s2, t3 ? t3.reviver : null);
39458
- } catch (t4) {
39459
- if (o2) {
39460
- t4.message = `${e3}: ${t4.message}`;
39461
- throw t4;
39462
- } else {
39463
- return null;
39464
- }
39402
+ async function _readFile(e3, t3 = {}) {
39403
+ if (typeof t3 === "string") {
39404
+ t3 = { encoding: t3 };
39405
+ }
39406
+ const r3 = t3.fs || n;
39407
+ const o2 = "throws" in t3 ? t3.throws : true;
39408
+ let s2 = await i.fromCallback(r3.readFile)(e3, t3);
39409
+ s2 = c(s2);
39410
+ let a2;
39411
+ try {
39412
+ a2 = JSON.parse(s2, t3 ? t3.reviver : null);
39413
+ } catch (t4) {
39414
+ if (o2) {
39415
+ t4.message = `${e3}: ${t4.message}`;
39416
+ throw t4;
39417
+ } else {
39418
+ return null;
39465
39419
  }
39466
- return a2;
39467
- });
39420
+ }
39421
+ return a2;
39468
39422
  }
39469
39423
  const s = i.fromPromise(_readFile);
39470
39424
  function readFileSync(e3, t3 = {}) {
@@ -39486,12 +39440,10 @@ var require_fs_extra2 = __commonJS({
39486
39440
  }
39487
39441
  }
39488
39442
  }
39489
- function _writeFile(_0, _1) {
39490
- return __async(this, arguments, function* (e3, t3, r3 = {}) {
39491
- const c2 = r3.fs || n;
39492
- const s2 = o(t3, r3);
39493
- yield i.fromCallback(c2.writeFile)(e3, s2, r3);
39494
- });
39443
+ async function _writeFile(e3, t3, r3 = {}) {
39444
+ const c2 = r3.fs || n;
39445
+ const s2 = o(t3, r3);
39446
+ await i.fromCallback(c2.writeFile)(e3, s2, r3);
39495
39447
  }
39496
39448
  const a = i.fromPromise(_writeFile);
39497
39449
  function writeFileSync(e3, t3, r3 = {}) {
@@ -39719,11 +39671,11 @@ var require_chalk2 = __commonJS({
39719
39671
  } };
39720
39672
  }
39721
39673
  const f = Object.defineProperties(() => {
39722
- }, __spreadProps(__spreadValues({}, u), { level: { enumerable: true, get() {
39674
+ }, { ...u, level: { enumerable: true, get() {
39723
39675
  return this._generator.level;
39724
39676
  }, set(e3) {
39725
39677
  this._generator.level = e3;
39726
- } } }));
39678
+ } } });
39727
39679
  const createStyler = (e3, t3, n3) => {
39728
39680
  let r2;
39729
39681
  let s2;
@@ -40034,7 +39986,7 @@ var require_chalk2 = __commonJS({
40034
39986
  return [o2 * 100, l * 100, c * 100, s2 * 100];
40035
39987
  };
40036
39988
  function comparativeDistance(e3, t3) {
40037
- return __pow(e3[0] - t3[0], 2) + __pow(e3[1] - t3[1], 2) + __pow(e3[2] - t3[2], 2);
39989
+ return (e3[0] - t3[0]) ** 2 + (e3[1] - t3[1]) ** 2 + (e3[2] - t3[2]) ** 2;
40038
39990
  }
40039
39991
  o.rgb.keyword = function(e3) {
40040
39992
  const t3 = s[e3];
@@ -40060,9 +40012,9 @@ var require_chalk2 = __commonJS({
40060
40012
  let t3 = e3[0] / 255;
40061
40013
  let n3 = e3[1] / 255;
40062
40014
  let r2 = e3[2] / 255;
40063
- t3 = t3 > 0.04045 ? __pow((t3 + 0.055) / 1.055, 2.4) : t3 / 12.92;
40064
- n3 = n3 > 0.04045 ? __pow((n3 + 0.055) / 1.055, 2.4) : n3 / 12.92;
40065
- r2 = r2 > 0.04045 ? __pow((r2 + 0.055) / 1.055, 2.4) : r2 / 12.92;
40015
+ t3 = t3 > 0.04045 ? ((t3 + 0.055) / 1.055) ** 2.4 : t3 / 12.92;
40016
+ n3 = n3 > 0.04045 ? ((n3 + 0.055) / 1.055) ** 2.4 : n3 / 12.92;
40017
+ r2 = r2 > 0.04045 ? ((r2 + 0.055) / 1.055) ** 2.4 : r2 / 12.92;
40066
40018
  const s2 = t3 * 0.4124 + n3 * 0.3576 + r2 * 0.1805;
40067
40019
  const o2 = t3 * 0.2126 + n3 * 0.7152 + r2 * 0.0722;
40068
40020
  const l = t3 * 0.0193 + n3 * 0.1192 + r2 * 0.9505;
@@ -40076,9 +40028,9 @@ var require_chalk2 = __commonJS({
40076
40028
  n3 /= 95.047;
40077
40029
  r2 /= 100;
40078
40030
  s2 /= 108.883;
40079
- n3 = n3 > 8856e-6 ? __pow(n3, 1 / 3) : 7.787 * n3 + 16 / 116;
40080
- r2 = r2 > 8856e-6 ? __pow(r2, 1 / 3) : 7.787 * r2 + 16 / 116;
40081
- s2 = s2 > 8856e-6 ? __pow(s2, 1 / 3) : 7.787 * s2 + 16 / 116;
40031
+ n3 = n3 > 8856e-6 ? n3 ** (1 / 3) : 7.787 * n3 + 16 / 116;
40032
+ r2 = r2 > 8856e-6 ? r2 ** (1 / 3) : 7.787 * r2 + 16 / 116;
40033
+ s2 = s2 > 8856e-6 ? s2 ** (1 / 3) : 7.787 * s2 + 16 / 116;
40082
40034
  const l = 116 * r2 - 16;
40083
40035
  const c = 500 * (n3 - r2);
40084
40036
  const i = 200 * (r2 - s2);
@@ -40252,9 +40204,9 @@ var require_chalk2 = __commonJS({
40252
40204
  s2 = t3 * 3.2406 + n3 * -1.5372 + r2 * -0.4986;
40253
40205
  o2 = t3 * -0.9689 + n3 * 1.8758 + r2 * 0.0415;
40254
40206
  l = t3 * 0.0557 + n3 * -0.204 + r2 * 1.057;
40255
- s2 = s2 > 31308e-7 ? 1.055 * __pow(s2, 1 / 2.4) - 0.055 : s2 * 12.92;
40256
- o2 = o2 > 31308e-7 ? 1.055 * __pow(o2, 1 / 2.4) - 0.055 : o2 * 12.92;
40257
- l = l > 31308e-7 ? 1.055 * __pow(l, 1 / 2.4) - 0.055 : l * 12.92;
40207
+ s2 = s2 > 31308e-7 ? 1.055 * s2 ** (1 / 2.4) - 0.055 : s2 * 12.92;
40208
+ o2 = o2 > 31308e-7 ? 1.055 * o2 ** (1 / 2.4) - 0.055 : o2 * 12.92;
40209
+ l = l > 31308e-7 ? 1.055 * l ** (1 / 2.4) - 0.055 : l * 12.92;
40258
40210
  s2 = Math.min(Math.max(0, s2), 1);
40259
40211
  o2 = Math.min(Math.max(0, o2), 1);
40260
40212
  l = Math.min(Math.max(0, l), 1);
@@ -40267,9 +40219,9 @@ var require_chalk2 = __commonJS({
40267
40219
  t3 /= 95.047;
40268
40220
  n3 /= 100;
40269
40221
  r2 /= 108.883;
40270
- t3 = t3 > 8856e-6 ? __pow(t3, 1 / 3) : 7.787 * t3 + 16 / 116;
40271
- n3 = n3 > 8856e-6 ? __pow(n3, 1 / 3) : 7.787 * n3 + 16 / 116;
40272
- r2 = r2 > 8856e-6 ? __pow(r2, 1 / 3) : 7.787 * r2 + 16 / 116;
40222
+ t3 = t3 > 8856e-6 ? t3 ** (1 / 3) : 7.787 * t3 + 16 / 116;
40223
+ n3 = n3 > 8856e-6 ? n3 ** (1 / 3) : 7.787 * n3 + 16 / 116;
40224
+ r2 = r2 > 8856e-6 ? r2 ** (1 / 3) : 7.787 * r2 + 16 / 116;
40273
40225
  const s2 = 116 * n3 - 16;
40274
40226
  const o2 = 500 * (t3 - n3);
40275
40227
  const l = 200 * (n3 - r2);
@@ -40285,9 +40237,9 @@ var require_chalk2 = __commonJS({
40285
40237
  o2 = (t3 + 16) / 116;
40286
40238
  s2 = n3 / 500 + o2;
40287
40239
  l = o2 - r2 / 200;
40288
- const c = __pow(o2, 3);
40289
- const i = __pow(s2, 3);
40290
- const a = __pow(l, 3);
40240
+ const c = o2 ** 3;
40241
+ const i = s2 ** 3;
40242
+ const a = l ** 3;
40291
40243
  o2 = c > 8856e-6 ? c : (o2 - 16 / 116) / 7.787;
40292
40244
  s2 = i > 8856e-6 ? i : (s2 - 16 / 116) / 7.787;
40293
40245
  l = a > 8856e-6 ? a : (l - 16 / 116) / 7.787;
@@ -41543,7 +41495,7 @@ var require_ora2 = __commonJS({
41543
41495
  if (typeof e3 === "string") {
41544
41496
  e3 = { text: e3 };
41545
41497
  }
41546
- this.options = __spreadValues({ text: "", color: "cyan", stream: process.stderr, discardStdin: true }, e3);
41498
+ this.options = { text: "", color: "cyan", stream: process.stderr, discardStdin: true, ...e3 };
41547
41499
  this.spinner = this.options.spinner;
41548
41500
  this.color = this.options.color;
41549
41501
  this.hideCursor = this.options.hideCursor !== false;
@@ -41760,14 +41712,14 @@ var require_ora2 = __commonJS({
41760
41712
  }
41761
41713
  const r3 = new Ora(t3);
41762
41714
  r3.start();
41763
- (() => __async(exports, null, function* () {
41715
+ (async () => {
41764
41716
  try {
41765
- yield e3;
41717
+ await e3;
41766
41718
  r3.succeed();
41767
- } catch (e4) {
41719
+ } catch {
41768
41720
  r3.fail();
41769
41721
  }
41770
- }))();
41722
+ })();
41771
41723
  return r3;
41772
41724
  };
41773
41725
  }, 959: (e2) => {
@@ -50187,7 +50139,7 @@ var require_execa2 = __commonJS({
50187
50139
  const { joinCommand: w, parseCommand: E, getEscapedCommand: I } = n2(192);
50188
50140
  const T = 1e3 * 1e3 * 100;
50189
50141
  const getEnv = ({ env: e3, extendEnv: t3, preferLocal: n3, localDir: r2, execPath: o2 }) => {
50190
- const s2 = t3 ? __spreadValues(__spreadValues({}, process.env), e3) : e3;
50142
+ const s2 = t3 ? { ...process.env, ...e3 } : e3;
50191
50143
  if (n3) {
50192
50144
  return a.env({ env: s2, cwd: r2, execPath: o2 });
50193
50145
  }
@@ -50198,7 +50150,7 @@ var require_execa2 = __commonJS({
50198
50150
  e3 = o2.command;
50199
50151
  t3 = o2.args;
50200
50152
  n3 = o2.options;
50201
- n3 = __spreadValues({ maxBuffer: T, buffer: true, stripFinalNewline: true, extendEnv: true, preferLocal: false, localDir: n3.cwd || process.cwd(), execPath: process.execPath, encoding: "utf8", reject: true, cleanup: true, all: false, windowsHide: true }, n3);
50153
+ n3 = { maxBuffer: T, buffer: true, stripFinalNewline: true, extendEnv: true, preferLocal: false, localDir: n3.cwd || process.cwd(), execPath: process.execPath, encoding: "utf8", reject: true, cleanup: true, all: false, windowsHide: true, ...n3 };
50202
50154
  n3.env = getEnv(n3);
50203
50155
  n3.stdio = u(n3);
50204
50156
  if (process.platform === "win32" && r.basename(e3, ".exe") === "cmd") {
@@ -50234,8 +50186,8 @@ var require_execa2 = __commonJS({
50234
50186
  const T2 = { isCanceled: false };
50235
50187
  a2.kill = l.bind(null, a2.kill.bind(a2));
50236
50188
  a2.cancel = f.bind(null, a2, T2);
50237
- const handlePromise = () => __async(exports, null, function* () {
50238
- const [{ error: e4, exitCode: t4, signal: n4, timedOut: o2 }, c2, u3, l2] = yield h(a2, r2.options, E2);
50189
+ const handlePromise = async () => {
50190
+ const [{ error: e4, exitCode: t4, signal: n4, timedOut: o2 }, c2, u3, l2] = await h(a2, r2.options, E2);
50239
50191
  const f2 = handleOutput(r2.options, c2);
50240
50192
  const p2 = handleOutput(r2.options, u3);
50241
50193
  const m2 = handleOutput(r2.options, l2);
@@ -50247,7 +50199,7 @@ var require_execa2 = __commonJS({
50247
50199
  throw c3;
50248
50200
  }
50249
50201
  return { command: s2, escapedCommand: i2, exitCode: 0, stdout: f2, stderr: p2, all: m2, failed: false, timedOut: false, isCanceled: false, killed: false };
50250
- });
50202
+ };
50251
50203
  const C = c(handlePromise);
50252
50204
  x(a2, r2.options.input);
50253
50205
  a2.all = y(a2, r2.options);
@@ -50292,7 +50244,7 @@ var require_execa2 = __commonJS({
50292
50244
  const r2 = u.node(n3);
50293
50245
  const o2 = process.execArgv.filter((e4) => !e4.startsWith("--inspect"));
50294
50246
  const { nodePath: s2 = process.execPath, nodeOptions: i2 = o2 } = n3;
50295
- return execa3(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []], __spreadProps(__spreadValues({}, n3), { stdin: void 0, stdout: void 0, stderr: void 0, stdio: r2, shell: false }));
50247
+ return execa3(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []], { ...n3, stdin: void 0, stdout: void 0, stderr: void 0, stdio: r2, shell: false });
50296
50248
  };
50297
50249
  }, 192: (e2) => {
50298
50250
  "use strict";
@@ -50448,7 +50400,7 @@ ${o.message}` : x;
50448
50400
  throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e3}\` (${typeof e3})`);
50449
50401
  }
50450
50402
  };
50451
- const setExitHandler = (_0, _1, _2) => __async(exports, [_0, _1, _2], function* (e3, { cleanup: t3, detached: n3 }, r2) {
50403
+ const setExitHandler = async (e3, { cleanup: t3, detached: n3 }, r2) => {
50452
50404
  if (!t3 || n3) {
50453
50405
  return r2;
50454
50406
  }
@@ -50458,17 +50410,17 @@ ${o.message}` : x;
50458
50410
  return r2.finally(() => {
50459
50411
  s2();
50460
50412
  });
50461
- });
50413
+ };
50462
50414
  e2.exports = { spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler };
50463
50415
  }, 210: (e2) => {
50464
50416
  "use strict";
50465
- const t2 = (() => __async(exports, null, function* () {
50466
- }))().constructor.prototype;
50417
+ const t2 = (async () => {
50418
+ })().constructor.prototype;
50467
50419
  const n2 = ["then", "catch", "finally"].map((e3) => [e3, Reflect.getOwnPropertyDescriptor(t2, e3)]);
50468
50420
  const mergePromise = (e3, t3) => {
50469
50421
  for (const [r, o] of n2) {
50470
50422
  const n3 = typeof t3 === "function" ? (...e4) => Reflect.apply(o.value, t3(), e4) : o.value.bind(t3);
50471
- Reflect.defineProperty(e3, r, __spreadProps(__spreadValues({}, o), { value: n3 }));
50423
+ Reflect.defineProperty(e3, r, { ...o, value: n3 });
50472
50424
  }
50473
50425
  return e3;
50474
50426
  };
@@ -50552,17 +50504,17 @@ ${o.message}` : x;
50552
50504
  }
50553
50505
  return n3;
50554
50506
  };
50555
- const getBufferedData = (e3, t3) => __async(exports, null, function* () {
50507
+ const getBufferedData = async (e3, t3) => {
50556
50508
  if (!e3) {
50557
50509
  return;
50558
50510
  }
50559
50511
  e3.destroy();
50560
50512
  try {
50561
- return yield t3;
50513
+ return await t3;
50562
50514
  } catch (e4) {
50563
50515
  return e4.bufferedData;
50564
50516
  }
50565
- });
50517
+ };
50566
50518
  const getStreamPromise = (e3, { encoding: t3, buffer: n3, maxBuffer: r2 }) => {
50567
50519
  if (!e3 || !n3) {
50568
50520
  return;
@@ -50572,16 +50524,16 @@ ${o.message}` : x;
50572
50524
  }
50573
50525
  return o.buffer(e3, { maxBuffer: r2 });
50574
50526
  };
50575
- const getSpawnedResult = (_0, _1, _2) => __async(exports, [_0, _1, _2], function* ({ stdout: e3, stderr: t3, all: n3 }, { encoding: r2, buffer: o2, maxBuffer: s2 }, i) {
50527
+ const getSpawnedResult = async ({ stdout: e3, stderr: t3, all: n3 }, { encoding: r2, buffer: o2, maxBuffer: s2 }, i) => {
50576
50528
  const a = getStreamPromise(e3, { encoding: r2, buffer: o2, maxBuffer: s2 });
50577
50529
  const c = getStreamPromise(t3, { encoding: r2, buffer: o2, maxBuffer: s2 });
50578
50530
  const d = getStreamPromise(n3, { encoding: r2, buffer: o2, maxBuffer: s2 * 2 });
50579
50531
  try {
50580
- return yield Promise.all([i, a, c, d]);
50532
+ return await Promise.all([i, a, c, d]);
50581
50533
  } catch (r3) {
50582
50534
  return Promise.all([{ error: r3, signal: r3.signal, timedOut: r3.timedOut }, getBufferedData(e3, a), getBufferedData(t3, c), getBufferedData(n3, d)]);
50583
50535
  }
50584
- });
50536
+ };
50585
50537
  const validateInputSync = ({ input: e3 }) => {
50586
50538
  if (r(e3)) {
50587
50539
  throw new TypeError("The `input` option cannot be a stream in sync mode");
@@ -50592,7 +50544,7 @@ ${o.message}` : x;
50592
50544
  "use strict";
50593
50545
  const { PassThrough: r } = n2(781);
50594
50546
  e2.exports = (e3) => {
50595
- e3 = __spreadValues({}, e3);
50547
+ e3 = { ...e3 };
50596
50548
  const { array: t3 } = e3;
50597
50549
  let { encoding: n3 } = e3;
50598
50550
  const o = n3 === "buffer";
@@ -50641,41 +50593,39 @@ ${o.message}` : x;
50641
50593
  this.name = "MaxBufferError";
50642
50594
  }
50643
50595
  }
50644
- function getStream(e3, t3) {
50645
- return __async(this, null, function* () {
50646
- if (!e3) {
50647
- throw new Error("Expected a stream");
50648
- }
50649
- t3 = __spreadValues({ maxBuffer: Infinity }, t3);
50650
- const { maxBuffer: n3 } = t3;
50651
- const o2 = i(t3);
50652
- yield new Promise((t4, s2) => {
50653
- const rejectPromise = (e4) => {
50654
- if (e4 && o2.getBufferedLength() <= r.MAX_LENGTH) {
50655
- e4.bufferedData = o2.getBufferedValue();
50656
- }
50657
- s2(e4);
50658
- };
50659
- (() => __async(this, null, function* () {
50660
- try {
50661
- yield a(e3, o2);
50662
- t4();
50663
- } catch (e4) {
50664
- rejectPromise(e4);
50665
- }
50666
- }))();
50667
- o2.on("data", () => {
50668
- if (o2.getBufferedLength() > n3) {
50669
- rejectPromise(new MaxBufferError());
50670
- }
50671
- });
50596
+ async function getStream(e3, t3) {
50597
+ if (!e3) {
50598
+ throw new Error("Expected a stream");
50599
+ }
50600
+ t3 = { maxBuffer: Infinity, ...t3 };
50601
+ const { maxBuffer: n3 } = t3;
50602
+ const o2 = i(t3);
50603
+ await new Promise((t4, s2) => {
50604
+ const rejectPromise = (e4) => {
50605
+ if (e4 && o2.getBufferedLength() <= r.MAX_LENGTH) {
50606
+ e4.bufferedData = o2.getBufferedValue();
50607
+ }
50608
+ s2(e4);
50609
+ };
50610
+ (async () => {
50611
+ try {
50612
+ await a(e3, o2);
50613
+ t4();
50614
+ } catch (e4) {
50615
+ rejectPromise(e4);
50616
+ }
50617
+ })();
50618
+ o2.on("data", () => {
50619
+ if (o2.getBufferedLength() > n3) {
50620
+ rejectPromise(new MaxBufferError());
50621
+ }
50672
50622
  });
50673
- return o2.getBufferedValue();
50674
50623
  });
50624
+ return o2.getBufferedValue();
50675
50625
  }
50676
50626
  e2.exports = getStream;
50677
- e2.exports.buffer = (e3, t3) => getStream(e3, __spreadProps(__spreadValues({}, t3), { encoding: "buffer" }));
50678
- e2.exports.array = (e3, t3) => getStream(e3, __spreadProps(__spreadValues({}, t3), { array: true }));
50627
+ e2.exports.buffer = (e3, t3) => getStream(e3, { ...t3, encoding: "buffer" });
50628
+ e2.exports.array = (e3, t3) => getStream(e3, { ...t3, array: true });
50679
50629
  e2.exports.MaxBufferError = MaxBufferError;
50680
50630
  }, 221: (e2, t2) => {
50681
50631
  "use strict";
@@ -50695,7 +50645,7 @@ ${o.message}` : x;
50695
50645
  return e3.reduce(getSignalByName, {});
50696
50646
  };
50697
50647
  const getSignalByName = function(e3, { name: t3, number: n3, description: r2, supported: o2, action: s2, forced: i2, standard: a2 }) {
50698
- return __spreadProps(__spreadValues({}, e3), { [t3]: { name: t3, number: n3, description: r2, supported: o2, action: s2, forced: i2, standard: a2 } });
50648
+ return { ...e3, [t3]: { name: t3, number: n3, description: r2, supported: o2, action: s2, forced: i2, standard: a2 } };
50699
50649
  };
50700
50650
  const i = getSignalsByName();
50701
50651
  t2.signalsByName = i;
@@ -50927,7 +50877,7 @@ ${o.message}` : x;
50927
50877
  const r = n2(17);
50928
50878
  const o = n2(460);
50929
50879
  const npmRunPath = (e3) => {
50930
- e3 = __spreadValues({ cwd: process.cwd(), path: process.env[o()], execPath: process.execPath }, e3);
50880
+ e3 = { cwd: process.cwd(), path: process.env[o()], execPath: process.execPath, ...e3 };
50931
50881
  let t3;
50932
50882
  let n3 = r.resolve(e3.cwd);
50933
50883
  const s = [];
@@ -50943,8 +50893,8 @@ ${o.message}` : x;
50943
50893
  e2.exports = npmRunPath;
50944
50894
  e2.exports["default"] = npmRunPath;
50945
50895
  e2.exports.env = (t3) => {
50946
- t3 = __spreadValues({ env: process.env }, t3);
50947
- const n3 = __spreadValues({}, t3.env);
50896
+ t3 = { env: process.env, ...t3 };
50897
+ const n3 = { ...t3.env };
50948
50898
  const r2 = o({ env: n3 });
50949
50899
  t3.path = n3[r2];
50950
50900
  n3[r2] = e2.exports(t3);
@@ -52353,7 +52303,7 @@ var require_upath2 = __commonJS({
52353
52303
  _.VERSION = typeof n !== "undefined" && n !== null ? n : "NO-VERSION";
52354
52304
  p = function(e3) {
52355
52305
  e3 = e3.replace(/\\/g, "/");
52356
- e3 = e3.replace(new RegExp("(?<!^)\\/+", "g"), "/");
52306
+ e3 = e3.replace(/(?<!^)\/+/g, "/");
52357
52307
  return e3;
52358
52308
  };
52359
52309
  for (c in o) {
@@ -52649,9 +52599,7 @@ var require_pkg_up2 = __commonJS({
52649
52599
  };
52650
52600
  }, 800: (e2, r2, n2) => {
52651
52601
  const t = n2(485);
52652
- e2.exports = (..._0) => __async(exports, [..._0], function* ({ cwd: e3 } = {}) {
52653
- return t("package.json", { cwd: e3 });
52654
- });
52602
+ e2.exports = async ({ cwd: e3 } = {}) => t("package.json", { cwd: e3 });
52655
52603
  e2.exports.sync = ({ cwd: e3 } = {}) => t.sync("package.json", { cwd: e3 });
52656
52604
  }, 147: (e2) => {
52657
52605
  e2.exports = require("fs");
@@ -55702,7 +55650,7 @@ var require_fast_glob2 = __commonJS({
55702
55650
  }
55703
55651
  if (t4.nodes && t4.ranges > 0) {
55704
55652
  let r4 = s.reduce(t4.nodes);
55705
- let i2 = n(...r4, __spreadProps(__spreadValues({}, e3), { wrap: false, toRegex: true }));
55653
+ let i2 = n(...r4, { ...e3, wrap: false, toRegex: true });
55706
55654
  if (i2.length !== 0) {
55707
55655
  return r4.length > 1 && i2.length > 1 ? `(${i2})` : i2;
55708
55656
  }
@@ -56128,13 +56076,11 @@ var require_fast_glob2 = __commonJS({
56128
56076
  const a = r2(1066);
56129
56077
  const u = r2(7190);
56130
56078
  const c = r2(3828);
56131
- function FastGlob(t3, e3) {
56132
- return __async(this, null, function* () {
56133
- assertPatternsInput(t3);
56134
- const r3 = getWorks(t3, i.default, e3);
56135
- const n2 = yield Promise.all(r3);
56136
- return c.array.flatten(n2);
56137
- });
56079
+ async function FastGlob(t3, e3) {
56080
+ assertPatternsInput(t3);
56081
+ const r3 = getWorks(t3, i.default, e3);
56082
+ const n2 = await Promise.all(r3);
56083
+ return c.array.flatten(n2);
56138
56084
  }
56139
56085
  (function(t3) {
56140
56086
  function sync(t4, e3) {
@@ -57305,7 +57251,7 @@ var require_fast_glob2 = __commonJS({
57305
57251
  };
57306
57252
  const toRange = (t3, e3, r3, n2) => {
57307
57253
  if (r3) {
57308
- return s(t3, e3, __spreadValues({ wrap: false }, n2));
57254
+ return s(t3, e3, { wrap: false, ...n2 });
57309
57255
  }
57310
57256
  let i = String.fromCharCode(t3);
57311
57257
  if (t3 === e3)
@@ -57371,7 +57317,7 @@ var require_fast_glob2 = __commonJS({
57371
57317
  g++;
57372
57318
  }
57373
57319
  if (n2.toRegex === true) {
57374
- return r3 > 1 ? toSequence(d, n2) : toRegex(_, null, __spreadValues({ wrap: false }, n2));
57320
+ return r3 > 1 ? toSequence(d, n2) : toRegex(_, null, { wrap: false, ...n2 });
57375
57321
  }
57376
57322
  return _;
57377
57323
  };
@@ -57413,7 +57359,7 @@ var require_fast_glob2 = __commonJS({
57413
57359
  if (isObject4(r3)) {
57414
57360
  return fill(t3, e3, 0, r3);
57415
57361
  }
57416
- let s2 = __spreadValues({}, n2);
57362
+ let s2 = { ...n2 };
57417
57363
  if (s2.capture === true)
57418
57364
  s2.wrap = true;
57419
57365
  r3 = r3 || s2.step || 1;
@@ -57737,7 +57683,7 @@ var require_fast_glob2 = __commonJS({
57737
57683
  }
57738
57684
  };
57739
57685
  for (let o3 = 0; o3 < e3.length; o3++) {
57740
- let u2 = i(String(e3[o3]), __spreadProps(__spreadValues({}, r3), { onResult }), true);
57686
+ let u2 = i(String(e3[o3]), { ...r3, onResult }, true);
57741
57687
  let c2 = u2.state.negated || u2.state.negatedExtglob;
57742
57688
  if (c2)
57743
57689
  a++;
@@ -57779,7 +57725,7 @@ var require_fast_glob2 = __commonJS({
57779
57725
  r3.onResult(t4);
57780
57726
  s2.push(t4.output);
57781
57727
  };
57782
- let i2 = new Set(micromatch(t3, e3, __spreadProps(__spreadValues({}, r3), { onResult })));
57728
+ let i2 = new Set(micromatch(t3, e3, { ...r3, onResult }));
57783
57729
  for (let t4 of s2) {
57784
57730
  if (!i2.has(t4)) {
57785
57731
  n2.add(t4);
@@ -57802,7 +57748,7 @@ var require_fast_glob2 = __commonJS({
57802
57748
  return true;
57803
57749
  }
57804
57750
  }
57805
- return micromatch.isMatch(t3, e3, __spreadProps(__spreadValues({}, r3), { contains: true }));
57751
+ return micromatch.isMatch(t3, e3, { ...r3, contains: true });
57806
57752
  };
57807
57753
  micromatch.matchKeys = (t3, e3, r3) => {
57808
57754
  if (!o.isObject(t3)) {
@@ -57842,7 +57788,7 @@ var require_fast_glob2 = __commonJS({
57842
57788
  };
57843
57789
  micromatch.capture = (t3, e3, r3) => {
57844
57790
  let n2 = o.isWindows(r3);
57845
- let s2 = i.makeRe(String(t3), __spreadProps(__spreadValues({}, r3), { capture: true }));
57791
+ let s2 = i.makeRe(String(t3), { ...r3, capture: true });
57846
57792
  let a = s2.exec(n2 ? o.toPosixSlashes(e3) : e3);
57847
57793
  if (a) {
57848
57794
  return a.slice(1).map((t4) => t4 === void 0 ? "" : t4);
@@ -57870,7 +57816,7 @@ var require_fast_glob2 = __commonJS({
57870
57816
  micromatch.braceExpand = (t3, e3) => {
57871
57817
  if (typeof t3 !== "string")
57872
57818
  throw new TypeError("Expected a string");
57873
- return micromatch.braces(t3, __spreadProps(__spreadValues({}, e3), { expand: true }));
57819
+ return micromatch.braces(t3, { ...e3, expand: true });
57874
57820
  };
57875
57821
  t2.exports = micromatch;
57876
57822
  }, 376: (t2, e2, r2) => {
@@ -57897,7 +57843,7 @@ var require_fast_glob2 = __commonJS({
57897
57843
  const m = `[^.${c}]`;
57898
57844
  const v = `${f}*?`;
57899
57845
  const E = { DOT_LITERAL: o, PLUS_LITERAL: a, QMARK_LITERAL: u, SLASH_LITERAL: c, ONE_CHAR: l, QMARK: f, END_ANCHOR: p, DOTS_SLASH: d, NO_DOT: _, NO_DOTS: g, NO_DOT_SLASH: y, NO_DOTS_SLASH: S, QMARK_NO_DOT: m, STAR: v, START_ANCHOR: h };
57900
- const A = __spreadProps(__spreadValues({}, E), { SLASH_LITERAL: `[${s}]`, QMARK: i, STAR: `${i}*?`, DOTS_SLASH: `${o}{1,2}(?:[${s}]|$)`, NO_DOT: `(?!${o})`, NO_DOTS: `(?!(?:^|[${s}])${o}{1,2}(?:[${s}]|$))`, NO_DOT_SLASH: `(?!${o}{0,1}(?:[${s}]|$))`, NO_DOTS_SLASH: `(?!${o}{1,2}(?:[${s}]|$))`, QMARK_NO_DOT: `[^.${s}]`, START_ANCHOR: `(?:^|[${s}])`, END_ANCHOR: `(?:[${s}]|$)` });
57846
+ const A = { ...E, SLASH_LITERAL: `[${s}]`, QMARK: i, STAR: `${i}*?`, DOTS_SLASH: `${o}{1,2}(?:[${s}]|$)`, NO_DOT: `(?!${o})`, NO_DOTS: `(?!(?:^|[${s}])${o}{1,2}(?:[${s}]|$))`, NO_DOT_SLASH: `(?!${o}{0,1}(?:[${s}]|$))`, NO_DOTS_SLASH: `(?!${o}{1,2}(?:[${s}]|$))`, QMARK_NO_DOT: `[^.${s}]`, START_ANCHOR: `(?:^|[${s}])`, END_ANCHOR: `(?:[${s}]|$)` };
57901
57847
  const b = { alnum: "a-zA-Z0-9", alpha: "a-zA-Z", ascii: "\\x00-\\x7F", blank: " \\t", cntrl: "\\x00-\\x1F\\x7F", digit: "0-9", graph: "\\x21-\\x7E", lower: "a-z", print: "\\x20-\\x7E ", punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~", space: " \\t\\r\\n\\v\\f", upper: "A-Z", word: "A-Za-z0-9_", xdigit: "A-Fa-f0-9" };
57902
57848
  t2.exports = { MAX_LENGTH: 1024 * 64, POSIX_REGEX_SOURCE: b, REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g, REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/, REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/, REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g, REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g, REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g, REPLACEMENTS: { "***": "*", "**/**": "**", "**/**/**": "**" }, CHAR_0: 48, CHAR_9: 57, CHAR_UPPERCASE_A: 65, CHAR_LOWERCASE_A: 97, CHAR_UPPERCASE_Z: 90, CHAR_LOWERCASE_Z: 122, CHAR_LEFT_PARENTHESES: 40, CHAR_RIGHT_PARENTHESES: 41, CHAR_ASTERISK: 42, CHAR_AMPERSAND: 38, CHAR_AT: 64, CHAR_BACKWARD_SLASH: 92, CHAR_CARRIAGE_RETURN: 13, CHAR_CIRCUMFLEX_ACCENT: 94, CHAR_COLON: 58, CHAR_COMMA: 44, CHAR_DOT: 46, CHAR_DOUBLE_QUOTE: 34, CHAR_EQUAL: 61, CHAR_EXCLAMATION_MARK: 33, CHAR_FORM_FEED: 12, CHAR_FORWARD_SLASH: 47, CHAR_GRAVE_ACCENT: 96, CHAR_HASH: 35, CHAR_HYPHEN_MINUS: 45, CHAR_LEFT_ANGLE_BRACKET: 60, CHAR_LEFT_CURLY_BRACE: 123, CHAR_LEFT_SQUARE_BRACKET: 91, CHAR_LINE_FEED: 10, CHAR_NO_BREAK_SPACE: 160, CHAR_PERCENT: 37, CHAR_PLUS: 43, CHAR_QUESTION_MARK: 63, CHAR_RIGHT_ANGLE_BRACKET: 62, CHAR_RIGHT_CURLY_BRACE: 125, CHAR_RIGHT_SQUARE_BRACKET: 93, CHAR_SEMICOLON: 59, CHAR_SINGLE_QUOTE: 39, CHAR_SPACE: 32, CHAR_TAB: 9, CHAR_UNDERSCORE: 95, CHAR_VERTICAL_LINE: 124, CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279, SEP: n.sep, extglobChars(t3) {
57903
57849
  return { "!": { type: "negate", open: "(?:(?!(?:", close: `))${t3.STAR})` }, "?": { type: "qmark", open: "(?:", close: ")?" }, "+": { type: "plus", open: "(?:", close: ")+" }, "*": { type: "star", open: "(?:", close: ")*" }, "@": { type: "at", open: "(?:", close: ")" } };
@@ -57928,7 +57874,7 @@ var require_fast_glob2 = __commonJS({
57928
57874
  throw new TypeError("Expected a string");
57929
57875
  }
57930
57876
  t3 = c[t3] || t3;
57931
- const r3 = __spreadValues({}, e3);
57877
+ const r3 = { ...e3 };
57932
57878
  const l = typeof r3.maxLength === "number" ? Math.min(i, r3.maxLength) : i;
57933
57879
  let f = t3.length;
57934
57880
  if (f > l) {
@@ -58020,7 +57966,7 @@ var require_fast_glob2 = __commonJS({
58020
57966
  M = t4;
58021
57967
  };
58022
57968
  const extglobOpen = (t4, e4) => {
58023
- const n2 = __spreadProps(__spreadValues({}, y[e4]), { conditions: 1, inner: "" });
57969
+ const n2 = { ...y[e4], conditions: 1, inner: "" };
58024
57970
  n2.prev = M;
58025
57971
  n2.parens = H.parens;
58026
57972
  n2.output = H.output;
@@ -58042,7 +57988,7 @@ var require_fast_glob2 = __commonJS({
58042
57988
  n2 = t4.close = `)$))${i2}`;
58043
57989
  }
58044
57990
  if (t4.inner.includes("*") && (s2 = remaining()) && /^\.[^\\/.]+$/.test(s2)) {
58045
- const r4 = parse3(s2, __spreadProps(__spreadValues({}, e3), { fastpaths: false })).output;
57991
+ const r4 = parse3(s2, { ...e3, fastpaths: false }).output;
58046
57992
  n2 = t4.close = `)${r4})${i2})`;
58047
57993
  }
58048
57994
  if (t4.prev.type === "bos") {
@@ -58564,7 +58510,7 @@ var require_fast_glob2 = __commonJS({
58564
58510
  return H;
58565
58511
  };
58566
58512
  parse3.fastpaths = (t3, e3) => {
58567
- const r3 = __spreadValues({}, e3);
58513
+ const r3 = { ...e3 };
58568
58514
  const o2 = typeof r3.maxLength === "number" ? Math.min(i, r3.maxLength) : i;
58569
58515
  const a2 = t3.length;
58570
58516
  if (a2 > o2) {
@@ -58655,7 +58601,7 @@ var require_fast_glob2 = __commonJS({
58655
58601
  delete a2.state;
58656
58602
  let isIgnored = () => false;
58657
58603
  if (s2.ignore) {
58658
- const t4 = __spreadProps(__spreadValues({}, e3), { ignore: null, onMatch: null, onResult: null });
58604
+ const t4 = { ...e3, ignore: null, onMatch: null, onResult: null };
58659
58605
  isIgnored = picomatch(s2.ignore, t4, r3);
58660
58606
  }
58661
58607
  const matcher = (r4, n3 = false) => {
@@ -58717,7 +58663,7 @@ var require_fast_glob2 = __commonJS({
58717
58663
  picomatch.parse = (t3, e3) => {
58718
58664
  if (Array.isArray(t3))
58719
58665
  return t3.map((t4) => picomatch.parse(t4, e3));
58720
- return i(t3, __spreadProps(__spreadValues({}, e3), { fastpaths: false }));
58666
+ return i(t3, { ...e3, fastpaths: false });
58721
58667
  };
58722
58668
  picomatch.scan = (t3, e3) => s(t3, e3);
58723
58669
  picomatch.compileRe = (t3, e3, r3 = false, n2 = false) => {
@@ -59182,7 +59128,7 @@ var require_fast_glob2 = __commonJS({
59182
59128
  if (n(e3) === false) {
59183
59129
  throw new TypeError("toRegexRange: expected the second argument to be a number.");
59184
59130
  }
59185
- let s = __spreadValues({ relaxZeros: true }, r3);
59131
+ let s = { relaxZeros: true, ...r3 };
59186
59132
  if (typeof s.strictZeros === "boolean") {
59187
59133
  s.relaxZeros = s.strictZeros === false;
59188
59134
  }
@@ -59460,19 +59406,19 @@ var require_globby2 = __commonJS({
59460
59406
  }
59461
59407
  return [n.posix.join(t3, "**")];
59462
59408
  };
59463
- t2.exports = (t3, e3) => __async(exports, null, function* () {
59464
- e3 = __spreadValues({ cwd: process.cwd() }, e3);
59409
+ t2.exports = async (t3, e3) => {
59410
+ e3 = { cwd: process.cwd(), ...e3 };
59465
59411
  if (typeof e3.cwd !== "string") {
59466
59412
  throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e3.cwd}\``);
59467
59413
  }
59468
- const r3 = yield Promise.all([].concat(t3).map((t4) => __async(exports, null, function* () {
59469
- const r4 = yield s.isDirectory(getPath(t4, e3.cwd));
59414
+ const r3 = await Promise.all([].concat(t3).map(async (t4) => {
59415
+ const r4 = await s.isDirectory(getPath(t4, e3.cwd));
59470
59416
  return r4 ? getGlob(t4, e3) : t4;
59471
- })));
59417
+ }));
59472
59418
  return [].concat.apply([], r3);
59473
- });
59419
+ };
59474
59420
  t2.exports.sync = (t3, e3) => {
59475
- e3 = __spreadValues({ cwd: process.cwd() }, e3);
59421
+ e3 = { cwd: process.cwd(), ...e3 };
59476
59422
  if (typeof e3.cwd !== "string") {
59477
59423
  throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e3.cwd}\``);
59478
59424
  }
@@ -59517,24 +59463,24 @@ var require_globby2 = __commonJS({
59517
59463
  return o.join(t3, e3);
59518
59464
  };
59519
59465
  const getIsIgnoredPredecate = (t3, e3) => (r3) => t3.ignores(a(o.relative(e3, ensureAbsolutePathForCwd(e3, r3.path || r3))));
59520
- const getFile = (t3, e3) => __async(exports, null, function* () {
59466
+ const getFile = async (t3, e3) => {
59521
59467
  const r3 = o.join(e3, t3);
59522
- const n2 = yield u(r3, "utf8");
59468
+ const n2 = await u(r3, "utf8");
59523
59469
  return { cwd: e3, filePath: r3, content: n2 };
59524
- });
59470
+ };
59525
59471
  const getFileSync = (t3, e3) => {
59526
59472
  const r3 = o.join(e3, t3);
59527
59473
  const n2 = s.readFileSync(r3, "utf8");
59528
59474
  return { cwd: e3, filePath: r3, content: n2 };
59529
59475
  };
59530
59476
  const normalizeOptions = ({ ignore: t3 = [], cwd: e3 = a(process.cwd()) } = {}) => ({ ignore: t3, cwd: e3 });
59531
- t2.exports = (t3) => __async(exports, null, function* () {
59477
+ t2.exports = async (t3) => {
59532
59478
  t3 = normalizeOptions(t3);
59533
- const e3 = yield i("**/.gitignore", { ignore: p.concat(t3.ignore), cwd: t3.cwd });
59534
- const r3 = yield Promise.all(e3.map((e4) => getFile(e4, t3.cwd)));
59479
+ const e3 = await i("**/.gitignore", { ignore: p.concat(t3.ignore), cwd: t3.cwd });
59480
+ const r3 = await Promise.all(e3.map((e4) => getFile(e4, t3.cwd)));
59535
59481
  const n2 = reduceIgnore(r3);
59536
59482
  return getIsIgnoredPredecate(n2, t3.cwd);
59537
- });
59483
+ };
59538
59484
  t2.exports.sync = (t3) => {
59539
59485
  t3 = normalizeOptions(t3);
59540
59486
  const e3 = i.sync("**/.gitignore", { ignore: p.concat(t3.ignore), cwd: t3.cwd });
@@ -59565,7 +59511,7 @@ var require_globby2 = __commonJS({
59565
59511
  let e3;
59566
59512
  try {
59567
59513
  e3 = n.statSync(t3.cwd);
59568
- } catch (e4) {
59514
+ } catch {
59569
59515
  return;
59570
59516
  }
59571
59517
  if (!e3.isDirectory()) {
@@ -59578,13 +59524,13 @@ var require_globby2 = __commonJS({
59578
59524
  assertPatternsInput(t3);
59579
59525
  checkCwdOption(e3);
59580
59526
  const r3 = [];
59581
- e3 = __spreadValues({ ignore: [], expandDirectories: true }, e3);
59527
+ e3 = { ignore: [], expandDirectories: true, ...e3 };
59582
59528
  for (const [n2, s2] of t3.entries()) {
59583
59529
  if (isNegative(s2)) {
59584
59530
  continue;
59585
59531
  }
59586
59532
  const o2 = t3.slice(n2).filter((t4) => isNegative(t4)).map((t4) => t4.slice(1));
59587
- const i2 = __spreadProps(__spreadValues({}, e3), { ignore: e3.ignore.concat(o2) });
59533
+ const i2 = { ...e3, ignore: e3.ignore.concat(o2) };
59588
59534
  r3.push({ pattern: s2, options: i2 });
59589
59535
  }
59590
59536
  return r3;
@@ -59595,9 +59541,9 @@ var require_globby2 = __commonJS({
59595
59541
  r3.cwd = t3.options.cwd;
59596
59542
  }
59597
59543
  if (Array.isArray(t3.options.expandDirectories)) {
59598
- r3 = __spreadProps(__spreadValues({}, r3), { files: t3.options.expandDirectories });
59544
+ r3 = { ...r3, files: t3.options.expandDirectories };
59599
59545
  } else if (typeof t3.options.expandDirectories === "object") {
59600
- r3 = __spreadValues(__spreadValues({}, r3), t3.options.expandDirectories);
59546
+ r3 = { ...r3, ...t3.options.expandDirectories };
59601
59547
  }
59602
59548
  return e3(t3.pattern, r3);
59603
59549
  };
@@ -59610,22 +59556,20 @@ var require_globby2 = __commonJS({
59610
59556
  }
59611
59557
  return { pattern: e3, options: r3 };
59612
59558
  };
59613
- t2.exports = (t3, e3) => __async(exports, null, function* () {
59559
+ t2.exports = async (t3, e3) => {
59614
59560
  const r3 = generateGlobTasks(t3, e3);
59615
- const getFilter = () => __async(exports, null, function* () {
59616
- return e3 && e3.gitignore ? a({ cwd: e3.cwd, ignore: e3.ignore }) : DEFAULT_FILTER;
59617
- });
59618
- const getTasks = () => __async(exports, null, function* () {
59619
- const t4 = yield Promise.all(r3.map((t5) => __async(exports, null, function* () {
59620
- const e4 = yield getPattern(t5, c);
59561
+ const getFilter = async () => e3 && e3.gitignore ? a({ cwd: e3.cwd, ignore: e3.ignore }) : DEFAULT_FILTER;
59562
+ const getTasks = async () => {
59563
+ const t4 = await Promise.all(r3.map(async (t5) => {
59564
+ const e4 = await getPattern(t5, c);
59621
59565
  return Promise.all(e4.map(globToTask(t5)));
59622
- })));
59566
+ }));
59623
59567
  return s(...t4);
59624
- });
59625
- const [n2, o2] = yield Promise.all([getFilter(), getTasks()]);
59626
- const p2 = yield Promise.all(o2.map((t4) => i(t4.pattern, t4.options)));
59568
+ };
59569
+ const [n2, o2] = await Promise.all([getFilter(), getTasks()]);
59570
+ const p2 = await Promise.all(o2.map((t4) => i(t4.pattern, t4.options)));
59627
59571
  return s(...p2).filter((t4) => !n2(getPathString(t4)));
59628
- });
59572
+ };
59629
59573
  t2.exports.sync = (t3, e3) => {
59630
59574
  const r3 = generateGlobTasks(t3, e3);
59631
59575
  const n2 = [];
@@ -59979,21 +59923,19 @@ var require_globby2 = __commonJS({
59979
59923
  "use strict";
59980
59924
  const { promisify: n } = r2(837);
59981
59925
  const s = r2(147);
59982
- function isType4(t3, e3, r3) {
59983
- return __async(this, null, function* () {
59984
- if (typeof r3 !== "string") {
59985
- throw new TypeError(`Expected a string, got ${typeof r3}`);
59986
- }
59987
- try {
59988
- const o = yield n(s[t3])(r3);
59989
- return o[e3]();
59990
- } catch (t4) {
59991
- if (t4.code === "ENOENT") {
59992
- return false;
59993
- }
59994
- throw t4;
59926
+ async function isType4(t3, e3, r3) {
59927
+ if (typeof r3 !== "string") {
59928
+ throw new TypeError(`Expected a string, got ${typeof r3}`);
59929
+ }
59930
+ try {
59931
+ const o = await n(s[t3])(r3);
59932
+ return o[e3]();
59933
+ } catch (t4) {
59934
+ if (t4.code === "ENOENT") {
59935
+ return false;
59995
59936
  }
59996
- });
59937
+ throw t4;
59938
+ }
59997
59939
  }
59998
59940
  function isTypeSync(t3, e3, r3) {
59999
59941
  if (typeof r3 !== "string") {
@@ -62368,15 +62310,15 @@ var require_gzip_size2 = __commonJS({
62368
62310
  const i = t2(796);
62369
62311
  const { promisify: a } = t2(837);
62370
62312
  const s = t2(325);
62371
- const getOptions = (e3) => __spreadValues({ level: 9 }, e3);
62313
+ const getOptions = (e3) => ({ level: 9, ...e3 });
62372
62314
  const p = a(i.gzip);
62373
- e2.exports = (e3, r3) => __async(exports, null, function* () {
62315
+ e2.exports = async (e3, r3) => {
62374
62316
  if (!e3) {
62375
62317
  return 0;
62376
62318
  }
62377
- const t3 = yield p(e3, getOptions(r3));
62319
+ const t3 = await p(e3, getOptions(r3));
62378
62320
  return t3.length;
62379
- });
62321
+ };
62380
62322
  e2.exports.sync = (e3, r3) => i.gzipSync(e3, getOptions(r3)).length;
62381
62323
  e2.exports.stream = (e3) => {
62382
62324
  const r3 = new o.PassThrough();
@@ -65146,12 +65088,10 @@ Expecting one of '${i3.join("', '")}'`);
65146
65088
  this._parseCommand([], i3);
65147
65089
  return this;
65148
65090
  }
65149
- parseAsync(t3, e3) {
65150
- return __async(this, null, function* () {
65151
- const i3 = this._prepareUserArgs(t3, e3);
65152
- yield this._parseCommand([], i3);
65153
- return this;
65154
- });
65091
+ async parseAsync(t3, e3) {
65092
+ const i3 = this._prepareUserArgs(t3, e3);
65093
+ await this._parseCommand([], i3);
65094
+ return this;
65155
65095
  }
65156
65096
  _executeSubCommand(t3, e3) {
65157
65097
  e3 = e3.slice();
@@ -73822,9 +73762,10 @@ var require_parse = __commonJS({
73822
73762
  var parse_comments = (prefix) => {
73823
73763
  const comments = [];
73824
73764
  while (current && (is("LineComment") || is("BlockComment"))) {
73825
- const comment = __spreadProps(__spreadValues({}, current), {
73765
+ const comment = {
73766
+ ...current,
73826
73767
  inline
73827
- });
73768
+ };
73828
73769
  comments.push(comment);
73829
73770
  next();
73830
73771
  }
@@ -81291,12 +81232,12 @@ var require_baseUI = __commonJS({
81291
81232
  const ms = new MuteStream();
81292
81233
  ms.pipe(opt.output || process.stdout);
81293
81234
  const output2 = ms;
81294
- return __spreadProps(__spreadValues({
81295
- terminal: true
81296
- }, opt), {
81235
+ return {
81236
+ terminal: true,
81237
+ ...opt,
81297
81238
  input,
81298
81239
  output: output2
81299
- });
81240
+ };
81300
81241
  }
81301
81242
  module2.exports = UI;
81302
81243
  }
@@ -92754,14 +92695,14 @@ var require_prompt = __commonJS({
92754
92695
  }
92755
92696
  run(questions, answers) {
92756
92697
  if (_.isPlainObject(answers)) {
92757
- this.answers = __spreadValues({}, answers);
92698
+ this.answers = { ...answers };
92758
92699
  } else {
92759
92700
  this.answers = {};
92760
92701
  }
92761
92702
  if (_.isPlainObject(questions)) {
92762
92703
  questions = Object.values(questions).every(
92763
92704
  (v) => _.isPlainObject(v) && v.name === void 0
92764
- ) ? Object.entries(questions).map(([name, question]) => __spreadValues({ name }, question)) : [questions];
92705
+ ) ? Object.entries(questions).map(([name, question]) => ({ name, ...question })) : [questions];
92765
92706
  }
92766
92707
  const obs = Array.isArray(questions) ? from(questions) : questions;
92767
92708
  this.process = obs.pipe(
@@ -92789,7 +92730,7 @@ var require_prompt = __commonJS({
92789
92730
  return Promise.reject(error);
92790
92731
  }
92791
92732
  processQuestion(question) {
92792
- question = __spreadValues({}, question);
92733
+ question = { ...question };
92793
92734
  return defer(() => {
92794
92735
  const obs = of(question);
92795
92736
  return obs.pipe(
@@ -95747,7 +95688,7 @@ var require_conversions = __commonJS({
95747
95688
  return [c * 100, m * 100, y * 100, k * 100];
95748
95689
  };
95749
95690
  function comparativeDistance(x, y) {
95750
- return __pow(x[0] - y[0], 2) + __pow(x[1] - y[1], 2) + __pow(x[2] - y[2], 2);
95691
+ return (x[0] - y[0]) ** 2 + (x[1] - y[1]) ** 2 + (x[2] - y[2]) ** 2;
95751
95692
  }
95752
95693
  convert.rgb.keyword = function(rgb) {
95753
95694
  const reversed = reverseKeywords[rgb];
@@ -95773,9 +95714,9 @@ var require_conversions = __commonJS({
95773
95714
  let r = rgb[0] / 255;
95774
95715
  let g = rgb[1] / 255;
95775
95716
  let b = rgb[2] / 255;
95776
- r = r > 0.04045 ? __pow((r + 0.055) / 1.055, 2.4) : r / 12.92;
95777
- g = g > 0.04045 ? __pow((g + 0.055) / 1.055, 2.4) : g / 12.92;
95778
- b = b > 0.04045 ? __pow((b + 0.055) / 1.055, 2.4) : b / 12.92;
95717
+ r = r > 0.04045 ? ((r + 0.055) / 1.055) ** 2.4 : r / 12.92;
95718
+ g = g > 0.04045 ? ((g + 0.055) / 1.055) ** 2.4 : g / 12.92;
95719
+ b = b > 0.04045 ? ((b + 0.055) / 1.055) ** 2.4 : b / 12.92;
95779
95720
  const x = r * 0.4124 + g * 0.3576 + b * 0.1805;
95780
95721
  const y = r * 0.2126 + g * 0.7152 + b * 0.0722;
95781
95722
  const z = r * 0.0193 + g * 0.1192 + b * 0.9505;
@@ -95789,9 +95730,9 @@ var require_conversions = __commonJS({
95789
95730
  x /= 95.047;
95790
95731
  y /= 100;
95791
95732
  z /= 108.883;
95792
- x = x > 8856e-6 ? __pow(x, 1 / 3) : 7.787 * x + 16 / 116;
95793
- y = y > 8856e-6 ? __pow(y, 1 / 3) : 7.787 * y + 16 / 116;
95794
- z = z > 8856e-6 ? __pow(z, 1 / 3) : 7.787 * z + 16 / 116;
95733
+ x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
95734
+ y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
95735
+ z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
95795
95736
  const l = 116 * y - 16;
95796
95737
  const a = 500 * (x - y);
95797
95738
  const b = 200 * (y - z);
@@ -95965,9 +95906,9 @@ var require_conversions = __commonJS({
95965
95906
  r = x * 3.2406 + y * -1.5372 + z * -0.4986;
95966
95907
  g = x * -0.9689 + y * 1.8758 + z * 0.0415;
95967
95908
  b = x * 0.0557 + y * -0.204 + z * 1.057;
95968
- r = r > 31308e-7 ? 1.055 * __pow(r, 1 / 2.4) - 0.055 : r * 12.92;
95969
- g = g > 31308e-7 ? 1.055 * __pow(g, 1 / 2.4) - 0.055 : g * 12.92;
95970
- b = b > 31308e-7 ? 1.055 * __pow(b, 1 / 2.4) - 0.055 : b * 12.92;
95909
+ r = r > 31308e-7 ? 1.055 * r ** (1 / 2.4) - 0.055 : r * 12.92;
95910
+ g = g > 31308e-7 ? 1.055 * g ** (1 / 2.4) - 0.055 : g * 12.92;
95911
+ b = b > 31308e-7 ? 1.055 * b ** (1 / 2.4) - 0.055 : b * 12.92;
95971
95912
  r = Math.min(Math.max(0, r), 1);
95972
95913
  g = Math.min(Math.max(0, g), 1);
95973
95914
  b = Math.min(Math.max(0, b), 1);
@@ -95980,9 +95921,9 @@ var require_conversions = __commonJS({
95980
95921
  x /= 95.047;
95981
95922
  y /= 100;
95982
95923
  z /= 108.883;
95983
- x = x > 8856e-6 ? __pow(x, 1 / 3) : 7.787 * x + 16 / 116;
95984
- y = y > 8856e-6 ? __pow(y, 1 / 3) : 7.787 * y + 16 / 116;
95985
- z = z > 8856e-6 ? __pow(z, 1 / 3) : 7.787 * z + 16 / 116;
95924
+ x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
95925
+ y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
95926
+ z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
95986
95927
  const l = 116 * y - 16;
95987
95928
  const a = 500 * (x - y);
95988
95929
  const b = 200 * (y - z);
@@ -95998,9 +95939,9 @@ var require_conversions = __commonJS({
95998
95939
  y = (l + 16) / 116;
95999
95940
  x = a / 500 + y;
96000
95941
  z = y - b / 200;
96001
- const y2 = __pow(y, 3);
96002
- const x2 = __pow(x, 3);
96003
- const z2 = __pow(z, 3);
95942
+ const y2 = y ** 3;
95943
+ const x2 = x ** 3;
95944
+ const z2 = z ** 3;
96004
95945
  y = y2 > 8856e-6 ? y2 : (y - 16 / 116) / 7.787;
96005
95946
  x = x2 > 8856e-6 ? x2 : (x - 16 / 116) / 7.787;
96006
95947
  z = z2 > 8856e-6 ? z2 : (z - 16 / 116) / 7.787;
@@ -101904,12 +101845,13 @@ var require_ora3 = __commonJS({
101904
101845
  text: options
101905
101846
  };
101906
101847
  }
101907
- this.options = __spreadValues({
101848
+ this.options = {
101908
101849
  text: "",
101909
101850
  color: "cyan",
101910
101851
  stream: process.stderr,
101911
- discardStdin: true
101912
- }, options);
101852
+ discardStdin: true,
101853
+ ...options
101854
+ };
101913
101855
  this.spinner = this.options.spinner;
101914
101856
  this.color = this.options.color;
101915
101857
  this.hideCursor = this.options.hideCursor !== false;
@@ -102126,14 +102068,14 @@ var require_ora3 = __commonJS({
102126
102068
  }
102127
102069
  const spinner = new Ora(options);
102128
102070
  spinner.start();
102129
- (() => __async(exports, null, function* () {
102071
+ (async () => {
102130
102072
  try {
102131
- yield action2;
102073
+ await action2;
102132
102074
  spinner.succeed();
102133
- } catch (e) {
102075
+ } catch {
102134
102076
  spinner.fail();
102135
102077
  }
102136
- }))();
102078
+ })();
102137
102079
  return spinner;
102138
102080
  };
102139
102081
  }
@@ -113713,7 +113655,7 @@ var require_prompt2 = __commonJS({
113713
113655
  if (_.isPlainObject(questions)) {
113714
113656
  questions = Object.values(questions).every(
113715
113657
  (v) => _.isPlainObject(v) && v.name === void 0
113716
- ) ? Object.entries(questions).map(([name, question]) => __spreadValues({ name }, question)) : [questions];
113658
+ ) ? Object.entries(questions).map(([name, question]) => ({ name, ...question })) : [questions];
113717
113659
  }
113718
113660
  const obs = _.isArray(questions) ? from(questions) : questions;
113719
113661
  this.process = obs.pipe(
@@ -116238,11 +116180,9 @@ var import_utils3 = __toESM(require_cjs());
116238
116180
  function isTsProject(appDir) {
116239
116181
  return import_utils2.fs.existsSync(import_path.default.join(appDir, "tsconfig.json"));
116240
116182
  }
116241
- function getPackageObj(context) {
116242
- return __async(this, null, function* () {
116243
- const pkgStr = (yield context.materials.default.get(`package.json`).value()).content;
116244
- return JSON.parse(pkgStr);
116245
- });
116183
+ async function getPackageObj(context) {
116184
+ const pkgStr = (await context.materials.default.get(`package.json`).value()).content;
116185
+ return JSON.parse(pkgStr);
116246
116186
  }
116247
116187
 
116248
116188
  // ../../../../node_modules/.pnpm/@modern-js+utils@2.18.0_react-dom@18.2.0_react@18.2.0/node_modules/@modern-js/utils/dist/esm/import.js
@@ -131106,22 +131046,22 @@ var i18n3 = new I18n();
131106
131046
  var localeKeys3 = i18n3.init("en", { zh: ZH_LOCALE3, en: EN_LOCALE3 });
131107
131047
 
131108
131048
  // src/index.ts
131109
- var handleInput = (context, generator, appApi) => __async(void 0, null, function* () {
131049
+ var handleInput = async (context, generator, appApi) => {
131110
131050
  const appDir = context.materials.default.basePath;
131111
131051
  const { entriesDir } = context.config;
131112
- yield import_utils3.fs.ensureDir(import_path7.default.join(appDir, entriesDir));
131052
+ await import_utils3.fs.ensureDir(import_path7.default.join(appDir, entriesDir));
131113
131053
  const analysisInfo = {
131114
131054
  isEmptySrc: isEmptySource(appDir, entriesDir),
131115
131055
  isSingleEntry: isSingleEntry(appDir, entriesDir),
131116
131056
  isTsProject: isTsProject(appDir)
131117
131057
  };
131118
131058
  generator.logger.debug("analysisInfo:", analysisInfo);
131119
- const config = __spreadValues(__spreadValues({}, context.config), analysisInfo);
131120
- const ans = yield appApi.getInputBySchemaFunc(getEntrySchema, config);
131059
+ const config = { ...context.config, ...analysisInfo };
131060
+ const ans = await appApi.getInputBySchemaFunc(getEntrySchema, config);
131121
131061
  return ans;
131122
- });
131123
- var refactorSingleEntry = (context, generator) => __async(void 0, null, function* () {
131124
- const pkgObj = yield getPackageObj(context);
131062
+ };
131063
+ var refactorSingleEntry = async (context, generator) => {
131064
+ const pkgObj = await getPackageObj(context);
131125
131065
  const pkgName = pkgObj.name;
131126
131066
  const { entriesDir } = context.config;
131127
131067
  const oldFilePath = import_path7.default.join(context.materials.default.basePath, entriesDir);
@@ -131149,45 +131089,45 @@ var refactorSingleEntry = (context, generator) => __async(void 0, null, function
131149
131089
  file.replace(entriesDir, import_path7.default.join(entriesDir, pkgName))
131150
131090
  );
131151
131091
  });
131152
- });
131153
- var handleTemplateFile = (context, generator, appApi) => __async(void 0, null, function* () {
131154
- const ans = yield handleInput(context, generator, appApi);
131092
+ };
131093
+ var handleTemplateFile = async (context, generator, appApi) => {
131094
+ const ans = await handleInput(context, generator, appApi);
131155
131095
  if (ans.isSingleEntry) {
131156
131096
  generator.logger.debug(
131157
131097
  "current is single entry, refactoring to multi entry"
131158
131098
  );
131159
- yield refactorSingleEntry(context, generator);
131099
+ await refactorSingleEntry(context, generator);
131160
131100
  }
131161
131101
  const entryName = ans.name || "";
131162
131102
  const fileExtra = ans.isTsProject ? "tsx" : "jsx";
131163
131103
  const targetPath = import_path7.default.join(context.config.entriesDir, entryName);
131164
- yield appApi.forgeTemplate(
131104
+ await appApi.forgeTemplate(
131165
131105
  `templates/**/*`,
131166
131106
  void 0,
131167
131107
  (resourceKey) => resourceKey.replace("templates", targetPath).replace(".handlebars", `.${fileExtra}`)
131168
131108
  );
131169
- });
131170
- var src_default = (context, generator) => __async(void 0, null, function* () {
131109
+ };
131110
+ var src_default = async (context, generator) => {
131171
131111
  const appApi = new AppAPI(context, generator);
131172
131112
  const { locale } = context.config;
131173
131113
  i18n.changeLanguage({ locale });
131174
131114
  appApi.i18n.changeLanguage({ locale });
131175
131115
  i18n3.changeLanguage({ locale });
131176
- if (!(yield appApi.checkEnvironment())) {
131116
+ if (!await appApi.checkEnvironment()) {
131177
131117
  process.exit(1);
131178
131118
  }
131179
131119
  generator.logger.debug(`start run @modern-js/entry-generator`);
131180
131120
  generator.logger.debug(`context=${JSON.stringify(context)}`);
131181
131121
  generator.logger.debug(`context.data=${JSON.stringify(context.data)}`);
131182
131122
  (0, import_lodash9.merge)(context.config, { entriesDir: context.config.entriesDir || "src" });
131183
- yield handleTemplateFile(context, generator, appApi);
131123
+ await handleTemplateFile(context, generator, appApi);
131184
131124
  if (!context.config.isEmptySrc) {
131185
131125
  appApi.showSuccessInfo(
131186
131126
  i18n3.t(localeKeys3.success, { name: context.config.name })
131187
131127
  );
131188
131128
  }
131189
131129
  generator.logger.debug(`forge @modern-js/entry-generator succeed `);
131190
- });
131130
+ };
131191
131131
  // Annotate the CommonJS export names for ESM import in node:
131192
131132
  0 && (module.exports = {
131193
131133
  handleTemplateFile