@formatjs/cli 6.16.12 → 6.16.14

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/bin/formatjs +138 -100
  2. package/bin/formatjs.map +1 -1
  3. package/package.json +10 -10
package/bin/formatjs CHANGED
@@ -1618,10 +1618,12 @@ Expecting one of '${allowedValues.join("', '")}'`);
1618
1618
  this.setOptionValueWithSource(name, val, valueSource);
1619
1619
  };
1620
1620
  this.on("option:" + oname, (val) => {
1621
- handleOptionValue(val, `error: option '${option.flags}' argument '${val}' is invalid.`, "cli");
1621
+ const invalidValueMessage = `error: option '${option.flags}' argument '${val}' is invalid.`;
1622
+ handleOptionValue(val, invalidValueMessage, "cli");
1622
1623
  });
1623
1624
  if (option.envVar) this.on("optionEnv:" + oname, (val) => {
1624
- handleOptionValue(val, `error: option '${option.flags}' value '${val}' from env '${option.envVar}' is invalid.`, "env");
1625
+ const invalidValueMessage = `error: option '${option.flags}' value '${val}' from env '${option.envVar}' is invalid.`;
1626
+ handleOptionValue(val, invalidValueMessage, "env");
1625
1627
  });
1626
1628
  return this;
1627
1629
  }
@@ -5243,7 +5245,8 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5243
5245
  };
5244
5246
  const extglobClose = (token) => {
5245
5247
  const literal = input.slice(token.startIndex, state.index + 1);
5246
- const analysis = analyzeRepeatedExtglob(input.slice(token.startIndex + 2, state.index), opts);
5248
+ const body = input.slice(token.startIndex + 2, state.index);
5249
+ const analysis = analyzeRepeatedExtglob(body, opts);
5247
5250
  if ((token.type === "plus" || token.type === "star") && analysis.risky) {
5248
5251
  const safeOutput = analysis.safeOutput ? (token.output ? "" : ONE_CHAR) + (opts.capture ? `(${analysis.safeOutput})` : analysis.safeOutput) : void 0;
5249
5252
  const open = tokens[token.tokensIndex];
@@ -5369,7 +5372,8 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5369
5372
  if (inner.includes(":")) {
5370
5373
  const idx = prev.value.lastIndexOf("[");
5371
5374
  const pre = prev.value.slice(0, idx);
5372
- const posix = POSIX_REGEX_SOURCE[prev.value.slice(idx + 2)];
5375
+ const rest = prev.value.slice(idx + 2);
5376
+ const posix = POSIX_REGEX_SOURCE[rest];
5373
5377
  if (posix) {
5374
5378
  prev.value = pre + posix;
5375
5379
  state.backtrack = true;
@@ -7319,7 +7323,8 @@ var require_async$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
7319
7323
  callSuccessCallback(callback, entries);
7320
7324
  return;
7321
7325
  }
7322
- rpl(entries.map((entry) => makeRplTaskEntry(entry, settings)), (rplError, rplEntries) => {
7326
+ const tasks = entries.map((entry) => makeRplTaskEntry(entry, settings));
7327
+ rpl(tasks, (rplError, rplEntries) => {
7323
7328
  if (rplError !== null) {
7324
7329
  callFailureCallback(callback, rplError);
7325
7330
  return;
@@ -7355,7 +7360,7 @@ var require_async$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
7355
7360
  callFailureCallback(callback, readdirError);
7356
7361
  return;
7357
7362
  }
7358
- rpl(names.map((name) => {
7363
+ const tasks = names.map((name) => {
7359
7364
  const path = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
7360
7365
  return (done) => {
7361
7366
  fsStat.stat(path, settings.fsStatSettings, (error, stats) => {
@@ -7372,7 +7377,8 @@ var require_async$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
7372
7377
  done(null, entry);
7373
7378
  });
7374
7379
  };
7375
- }), (rplError, entries) => {
7380
+ });
7381
+ rpl(tasks, (rplError, entries) => {
7376
7382
  if (rplError !== null) {
7377
7383
  callFailureCallback(callback, rplError);
7378
7384
  return;
@@ -9751,7 +9757,7 @@ var require_graceful_fs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9751
9757
  }
9752
9758
  }));
9753
9759
  //#endregion
9754
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.5/node_modules/fs-extra/lib/fs/index.js
9760
+ //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/fs/index.js
9755
9761
  var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
9756
9762
  const u = require_universalify().fromCallback;
9757
9763
  const fs = require_graceful_fs();
@@ -9859,7 +9865,7 @@ var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
9859
9865
  else process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?", "Warning", "fs-extra-WARN0003");
9860
9866
  }));
9861
9867
  //#endregion
9862
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.5/node_modules/fs-extra/lib/mkdirs/utils.js
9868
+ //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/mkdirs/utils.js
9863
9869
  var require_utils$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9864
9870
  const path$12 = __require("path");
9865
9871
  module.exports.checkPath = function checkPath(pth) {
@@ -9873,7 +9879,7 @@ var require_utils$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9873
9879
  };
9874
9880
  }));
9875
9881
  //#endregion
9876
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.5/node_modules/fs-extra/lib/mkdirs/make-dir.js
9882
+ //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/mkdirs/make-dir.js
9877
9883
  var require_make_dir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9878
9884
  const fs = require_fs();
9879
9885
  const { checkPath } = require_utils$1();
@@ -9901,7 +9907,7 @@ var require_make_dir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9901
9907
  };
9902
9908
  }));
9903
9909
  //#endregion
9904
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.5/node_modules/fs-extra/lib/mkdirs/index.js
9910
+ //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/mkdirs/index.js
9905
9911
  var require_mkdirs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9906
9912
  const u = require_universalify().fromPromise;
9907
9913
  const { makeDir: _makeDir, makeDirSync } = require_make_dir();
@@ -9916,7 +9922,7 @@ var require_mkdirs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9916
9922
  };
9917
9923
  }));
9918
9924
  //#endregion
9919
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.5/node_modules/fs-extra/lib/path-exists/index.js
9925
+ //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/path-exists/index.js
9920
9926
  var require_path_exists = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9921
9927
  const u = require_universalify().fromPromise;
9922
9928
  const fs = require_fs();
@@ -9929,7 +9935,7 @@ var require_path_exists = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9929
9935
  };
9930
9936
  }));
9931
9937
  //#endregion
9932
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.5/node_modules/fs-extra/lib/util/utimes.js
9938
+ //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/util/utimes.js
9933
9939
  var require_utimes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9934
9940
  const fs = require_fs();
9935
9941
  const u = require_universalify().fromPromise;
@@ -9971,7 +9977,7 @@ var require_utimes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9971
9977
  };
9972
9978
  }));
9973
9979
  //#endregion
9974
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.5/node_modules/fs-extra/lib/util/stat.js
9980
+ //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/util/stat.js
9975
9981
  var require_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9976
9982
  const fs = require_fs();
9977
9983
  const path$11 = __require("path");
@@ -10056,7 +10062,7 @@ var require_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10056
10062
  try {
10057
10063
  destStat = await fs.stat(destParent, { bigint: true });
10058
10064
  } catch (err) {
10059
- if (err.code === "ENOENT") return;
10065
+ if (err.code === "ENOENT") return checkParentPaths(src, srcStat, destParent, funcName);
10060
10066
  throw err;
10061
10067
  }
10062
10068
  if (areIdentical(srcStat, destStat)) throw new Error(errMsg(src, dest, funcName));
@@ -10070,7 +10076,7 @@ var require_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10070
10076
  try {
10071
10077
  destStat = fs.statSync(destParent, { bigint: true });
10072
10078
  } catch (err) {
10073
- if (err.code === "ENOENT") return;
10079
+ if (err.code === "ENOENT") return checkParentPathsSync(src, srcStat, destParent, funcName);
10074
10080
  throw err;
10075
10081
  }
10076
10082
  if (areIdentical(srcStat, destStat)) throw new Error(errMsg(src, dest, funcName));
@@ -10097,7 +10103,7 @@ var require_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10097
10103
  };
10098
10104
  }));
10099
10105
  //#endregion
10100
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.5/node_modules/fs-extra/lib/util/async.js
10106
+ //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/util/async.js
10101
10107
  var require_async = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10102
10108
  async function asyncIteratorConcurrentProcess(iterator, fn) {
10103
10109
  const promises = [];
@@ -10109,7 +10115,7 @@ var require_async = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10109
10115
  module.exports = { asyncIteratorConcurrentProcess };
10110
10116
  }));
10111
10117
  //#endregion
10112
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.5/node_modules/fs-extra/lib/copy/copy.js
10118
+ //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/copy/copy.js
10113
10119
  var require_copy$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10114
10120
  const fs = require_fs();
10115
10121
  const path$10 = __require("path");
@@ -10200,7 +10206,7 @@ var require_copy$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10200
10206
  module.exports = copy;
10201
10207
  }));
10202
10208
  //#endregion
10203
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.5/node_modules/fs-extra/lib/copy/copy-sync.js
10209
+ //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/copy/copy-sync.js
10204
10210
  var require_copy_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10205
10211
  const fs = require_graceful_fs();
10206
10212
  const path$9 = __require("path");
@@ -10313,7 +10319,7 @@ var require_copy_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10313
10319
  module.exports = copySync;
10314
10320
  }));
10315
10321
  //#endregion
10316
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.5/node_modules/fs-extra/lib/copy/index.js
10322
+ //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/copy/index.js
10317
10323
  var require_copy = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10318
10324
  const u = require_universalify().fromPromise;
10319
10325
  module.exports = {
@@ -10322,7 +10328,7 @@ var require_copy = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10322
10328
  };
10323
10329
  }));
10324
10330
  //#endregion
10325
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.5/node_modules/fs-extra/lib/remove/index.js
10331
+ //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/remove/index.js
10326
10332
  var require_remove = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10327
10333
  const fs = require_graceful_fs();
10328
10334
  const u = require_universalify().fromCallback;
@@ -10344,7 +10350,7 @@ var require_remove = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10344
10350
  };
10345
10351
  }));
10346
10352
  //#endregion
10347
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.5/node_modules/fs-extra/lib/empty/index.js
10353
+ //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/empty/index.js
10348
10354
  var require_empty = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10349
10355
  const u = require_universalify().fromPromise;
10350
10356
  const fs = require_fs();
@@ -10380,7 +10386,7 @@ var require_empty = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10380
10386
  };
10381
10387
  }));
10382
10388
  //#endregion
10383
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.5/node_modules/fs-extra/lib/ensure/file.js
10389
+ //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/ensure/file.js
10384
10390
  var require_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10385
10391
  const u = require_universalify().fromPromise;
10386
10392
  const path$7 = __require("path");
@@ -10427,7 +10433,7 @@ var require_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10427
10433
  };
10428
10434
  }));
10429
10435
  //#endregion
10430
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.5/node_modules/fs-extra/lib/ensure/link.js
10436
+ //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/ensure/link.js
10431
10437
  var require_link = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10432
10438
  const u = require_universalify().fromPromise;
10433
10439
  const path$6 = __require("path");
@@ -10475,7 +10481,7 @@ var require_link = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10475
10481
  };
10476
10482
  }));
10477
10483
  //#endregion
10478
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.5/node_modules/fs-extra/lib/ensure/symlink-paths.js
10484
+ //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/ensure/symlink-paths.js
10479
10485
  var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10480
10486
  const path$5 = __require("path");
10481
10487
  const fs = require_fs();
@@ -10558,7 +10564,7 @@ var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) =>
10558
10564
  };
10559
10565
  }));
10560
10566
  //#endregion
10561
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.5/node_modules/fs-extra/lib/ensure/symlink-type.js
10567
+ //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/ensure/symlink-type.js
10562
10568
  var require_symlink_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10563
10569
  const fs = require_fs();
10564
10570
  const u = require_universalify().fromPromise;
@@ -10588,7 +10594,7 @@ var require_symlink_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10588
10594
  };
10589
10595
  }));
10590
10596
  //#endregion
10591
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.5/node_modules/fs-extra/lib/ensure/symlink.js
10597
+ //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/ensure/symlink.js
10592
10598
  var require_symlink = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10593
10599
  const u = require_universalify().fromPromise;
10594
10600
  const path$4 = __require("path");
@@ -10659,7 +10665,7 @@ var require_symlink = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10659
10665
  };
10660
10666
  }));
10661
10667
  //#endregion
10662
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.5/node_modules/fs-extra/lib/ensure/index.js
10668
+ //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/ensure/index.js
10663
10669
  var require_ensure = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10664
10670
  const { createFile, createFileSync } = require_file();
10665
10671
  const { createLink, createLinkSync } = require_link();
@@ -10760,7 +10766,7 @@ var require_jsonfile$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10760
10766
  };
10761
10767
  }));
10762
10768
  //#endregion
10763
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.5/node_modules/fs-extra/lib/json/jsonfile.js
10769
+ //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/json/jsonfile.js
10764
10770
  var require_jsonfile = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10765
10771
  const jsonFile = require_jsonfile$1();
10766
10772
  module.exports = {
@@ -10771,7 +10777,7 @@ var require_jsonfile = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10771
10777
  };
10772
10778
  }));
10773
10779
  //#endregion
10774
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.5/node_modules/fs-extra/lib/output-file/index.js
10780
+ //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/output-file/index.js
10775
10781
  var require_output_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10776
10782
  const u = require_universalify().fromPromise;
10777
10783
  const fs = require_fs();
@@ -10794,27 +10800,29 @@ var require_output_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10794
10800
  };
10795
10801
  }));
10796
10802
  //#endregion
10797
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.5/node_modules/fs-extra/lib/json/output-json.js
10803
+ //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/json/output-json.js
10798
10804
  var require_output_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10799
10805
  const { stringify } = require_utils();
10800
10806
  const { outputFile } = require_output_file();
10801
10807
  async function outputJson(file, data, options = {}) {
10802
- await outputFile(file, stringify(data, options), options);
10808
+ const str = stringify(data, options);
10809
+ await outputFile(file, str, options);
10803
10810
  }
10804
10811
  module.exports = outputJson;
10805
10812
  }));
10806
10813
  //#endregion
10807
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.5/node_modules/fs-extra/lib/json/output-json-sync.js
10814
+ //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/json/output-json-sync.js
10808
10815
  var require_output_json_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10809
10816
  const { stringify } = require_utils();
10810
10817
  const { outputFileSync } = require_output_file();
10811
10818
  function outputJsonSync(file, data, options) {
10812
- outputFileSync(file, stringify(data, options), options);
10819
+ const str = stringify(data, options);
10820
+ outputFileSync(file, str, options);
10813
10821
  }
10814
10822
  module.exports = outputJsonSync;
10815
10823
  }));
10816
10824
  //#endregion
10817
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.5/node_modules/fs-extra/lib/json/index.js
10825
+ //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/json/index.js
10818
10826
  var require_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10819
10827
  const u = require_universalify().fromPromise;
10820
10828
  const jsonFile = require_jsonfile();
@@ -10829,7 +10837,7 @@ var require_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10829
10837
  module.exports = jsonFile;
10830
10838
  }));
10831
10839
  //#endregion
10832
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.5/node_modules/fs-extra/lib/move/move.js
10840
+ //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/move/move.js
10833
10841
  var require_move$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10834
10842
  const fs = require_fs();
10835
10843
  const path$2 = __require("path");
@@ -10869,7 +10877,7 @@ var require_move$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10869
10877
  module.exports = move;
10870
10878
  }));
10871
10879
  //#endregion
10872
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.5/node_modules/fs-extra/lib/move/move-sync.js
10880
+ //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/move/move-sync.js
10873
10881
  var require_move_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10874
10882
  const fs = require_graceful_fs();
10875
10883
  const path$1 = __require("path");
@@ -10917,7 +10925,7 @@ var require_move_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10917
10925
  module.exports = moveSync;
10918
10926
  }));
10919
10927
  //#endregion
10920
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.5/node_modules/fs-extra/lib/move/index.js
10928
+ //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/move/index.js
10921
10929
  var require_move = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10922
10930
  const u = require_universalify().fromPromise;
10923
10931
  module.exports = {
@@ -10926,7 +10934,7 @@ var require_move = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10926
10934
  };
10927
10935
  }));
10928
10936
  //#endregion
10929
- //#region node_modules/.aspect_rules_js/fs-extra@11.3.5/node_modules/fs-extra/lib/esm.mjs
10937
+ //#region node_modules/.aspect_rules_js/fs-extra@11.3.6/node_modules/fs-extra/lib/esm.mjs
10930
10938
  var import_out = /* @__PURE__ */ __toESM(require_out());
10931
10939
  var import_loud_rejection = /* @__PURE__ */ __toESM(require_loud_rejection());
10932
10940
  var import_copy = /* @__PURE__ */ __toESM(require_copy(), 1);
@@ -11405,7 +11413,7 @@ var require_object_keys = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11405
11413
  module.exports = keysShim;
11406
11414
  }));
11407
11415
  //#endregion
11408
- //#region node_modules/.aspect_rules_js/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js
11416
+ //#region node_modules/.aspect_rules_js/es-object-atoms@1.1.2/node_modules/es-object-atoms/index.js
11409
11417
  var require_es_object_atoms = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11410
11418
  /** @type {import('.')} */
11411
11419
  module.exports = Object;
@@ -11725,7 +11733,7 @@ var require_get_proto = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11725
11733
  } : null;
11726
11734
  }));
11727
11735
  //#endregion
11728
- //#region node_modules/.aspect_rules_js/hasown@2.0.2/node_modules/hasown/index.js
11736
+ //#region node_modules/.aspect_rules_js/hasown@2.0.4/node_modules/hasown/index.js
11729
11737
  var require_hasown = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11730
11738
  var call = Function.prototype.call;
11731
11739
  var $hasOwn = Object.prototype.hasOwnProperty;
@@ -12143,7 +12151,7 @@ var require_applyBind = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12143
12151
  };
12144
12152
  }));
12145
12153
  //#endregion
12146
- //#region node_modules/.aspect_rules_js/call-bind@1.0.8/node_modules/call-bind/index.js
12154
+ //#region node_modules/.aspect_rules_js/call-bind@1.0.9/node_modules/call-bind/index.js
12147
12155
  var require_call_bind = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12148
12156
  var setFunctionLength = require_set_function_length();
12149
12157
  var $defineProperty = require_es_define_property();
@@ -12151,8 +12159,8 @@ var require_call_bind = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12151
12159
  var applyBind = require_applyBind();
12152
12160
  module.exports = function callBind(originalFunction) {
12153
12161
  var func = callBindBasic(arguments);
12154
- var adjustedLength = originalFunction.length - (arguments.length - 1);
12155
- return setFunctionLength(func, 1 + (adjustedLength > 0 ? adjustedLength : 0), true);
12162
+ var adjustedLength = 1 + originalFunction.length - (arguments.length - 1);
12163
+ return setFunctionLength(func, adjustedLength > 0 ? adjustedLength : 0, true);
12156
12164
  };
12157
12165
  if ($defineProperty) $defineProperty(module.exports, "apply", { value: applyBind });
12158
12166
  else module.exports.apply = applyBind;
@@ -12337,7 +12345,8 @@ function getInstalledNativePackageCandidates(candidates, canResolve = (candidate
12337
12345
  return candidates.filter(canResolve);
12338
12346
  }
12339
12347
  function getNativePackageCandidates(platform = process.platform, arch = process.arch) {
12340
- return NATIVE_PACKAGES[`${platform}-${arch}`] || [];
12348
+ const platformArch = `${platform}-${arch}`;
12349
+ return NATIVE_PACKAGES[platformArch] || [];
12341
12350
  }
12342
12351
  function loadNative() {
12343
12352
  if (nativeBinding !== void 0) {
@@ -12552,7 +12561,7 @@ function parseDateTimeSkeleton(skeleton) {
12552
12561
  "long",
12553
12562
  "narrow",
12554
12563
  "short"
12555
- ][len - 4];
12564
+ ][len - 3];
12556
12565
  break;
12557
12566
  case "c":
12558
12567
  if (len < 4) throw new RangeError("`c..ccc` (weekday) patterns are not supported");
@@ -12561,7 +12570,7 @@ function parseDateTimeSkeleton(skeleton) {
12561
12570
  "long",
12562
12571
  "narrow",
12563
12572
  "short"
12564
- ][len - 4];
12573
+ ][len - 3];
12565
12574
  break;
12566
12575
  case "a":
12567
12576
  result.hour12 = true;
@@ -15309,23 +15318,23 @@ function printPluralElement(el) {
15309
15318
  [el.offset ? `offset:${el.offset}` : "", ...keys.map((id) => `${id}{${doPrintAST(el.options[id].value, true)}}`)].filter(Boolean).join(" ")
15310
15319
  ].join(",")}}`;
15311
15320
  }
15312
- /*! *****************************************************************************
15313
- Copyright (c) Microsoft Corporation. All rights reserved.
15314
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
15315
- this file except in compliance with the License. You may obtain a copy of the
15316
- License at http://www.apache.org/licenses/LICENSE-2.0
15317
-
15318
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15319
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
15320
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
15321
- MERCHANTABILITY OR NON-INFRINGEMENT.
15322
-
15323
- See the Apache Version 2.0 License for specific language governing permissions
15324
- and limitations under the License.
15325
- ***************************************************************************** */
15326
15321
  //#endregion
15327
- //#region node_modules/.aspect_rules_js/@formatjs+ts-transformer@0.0.0/node_modules/@formatjs/ts-transformer/index.js
15328
- var import_typescript = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
15322
+ //#region node_modules/.aspect_rules_js/typescript@6.0.3/node_modules/typescript/lib/typescript.js
15323
+ var require_typescript$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15324
+ /*! *****************************************************************************
15325
+ Copyright (c) Microsoft Corporation. All rights reserved.
15326
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
15327
+ this file except in compliance with the License. You may obtain a copy of the
15328
+ License at http://www.apache.org/licenses/LICENSE-2.0
15329
+
15330
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15331
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
15332
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
15333
+ MERCHANTABILITY OR NON-INFRINGEMENT.
15334
+
15335
+ See the Apache Version 2.0 License for specific language governing permissions
15336
+ and limitations under the License.
15337
+ ***************************************************************************** */
15329
15338
  var ts = {};
15330
15339
  ((module$1) => {
15331
15340
  "use strict";
@@ -56775,7 +56784,8 @@ ${lanes.join("\n")}
56775
56784
  directoryToModuleNameMap.update(options2);
56776
56785
  }
56777
56786
  function getOrCreateCacheForDirectory(directoryName, redirectedReference) {
56778
- return getOrCreateCache(directoryToModuleNameMap, redirectedReference, toPath(directoryName, currentDirectory, getCanonicalFileName), () => createModeAwareCache());
56787
+ const path = toPath(directoryName, currentDirectory, getCanonicalFileName);
56788
+ return getOrCreateCache(directoryToModuleNameMap, redirectedReference, path, () => createModeAwareCache());
56779
56789
  }
56780
56790
  function getFromDirectoryCache(name, mode, directoryName, redirectedReference) {
56781
56791
  var _a, _b;
@@ -65366,10 +65376,11 @@ ${lanes.join("\n")}
65366
65376
  if (!specifier) {
65367
65377
  const isBundle2 = !!compilerOptions.outFile;
65368
65378
  const { moduleResolverHost } = context.tracker;
65369
- specifier = first(getModuleSpecifiers(symbol, checker, isBundle2 ? {
65379
+ const specifierCompilerOptions = isBundle2 ? {
65370
65380
  ...compilerOptions,
65371
65381
  baseUrl: moduleResolverHost.getCommonSourceDirectory()
65372
- } : compilerOptions, contextFile, moduleResolverHost, {
65382
+ } : compilerOptions;
65383
+ specifier = first(getModuleSpecifiers(symbol, checker, specifierCompilerOptions, contextFile, moduleResolverHost, {
65373
65384
  importModuleSpecifierPreference: isBundle2 ? "non-relative" : "project-relative",
65374
65385
  importModuleSpecifierEnding: isBundle2 ? "minimal" : resolutionMode === 99 ? "js" : void 0
65375
65386
  }, { overrideImportMode }));
@@ -66052,7 +66063,8 @@ ${lanes.join("\n")}
66052
66063
  if (some(symbol.declarations, isPartOfParameterDeclaration)) return;
66053
66064
  Debug.assertIsDefined(deferredPrivatesStack[deferredPrivatesStack.length - 1]);
66054
66065
  getUnusedName(unescapeLeadingUnderscores(symbol.escapedName), symbol);
66055
- deferredPrivatesStack[!!(symbol.flags & 2097152) && !some(symbol.declarations, (d) => !!findAncestor(d, isExportDeclaration) || isNamespaceExport(d) || isImportEqualsDeclaration(d) && !isExternalModuleReference(d.moduleReference)) ? 0 : deferredPrivatesStack.length - 1].set(getSymbolId(symbol), symbol);
66066
+ const isExternalImportAlias = !!(symbol.flags & 2097152) && !some(symbol.declarations, (d) => !!findAncestor(d, isExportDeclaration) || isNamespaceExport(d) || isImportEqualsDeclaration(d) && !isExternalModuleReference(d.moduleReference));
66067
+ deferredPrivatesStack[isExternalImportAlias ? 0 : deferredPrivatesStack.length - 1].set(getSymbolId(symbol), symbol);
66056
66068
  }
66057
66069
  function isExportingScope(enclosingDeclaration2) {
66058
66070
  return isSourceFile(enclosingDeclaration2) && (isExternalOrCommonJsModule(enclosingDeclaration2) || isJsonSourceFile(enclosingDeclaration2)) || isAmbientModule(enclosingDeclaration2) && !isGlobalScopeAugmentation(enclosingDeclaration2);
@@ -81901,7 +81913,8 @@ ${lanes.join("\n")}
81901
81913
  const exprType = getRegularTypeOfObjectLiteral(getBaseTypeOfLiteralType(links.assertionExpressionType));
81902
81914
  const targetType = getTypeFromTypeNode(type);
81903
81915
  if (!isErrorType(targetType)) addLazyDiagnostic(() => {
81904
- if (!isTypeComparableTo(targetType, getWidenedType(exprType))) checkTypeComparableTo(exprType, targetType, errNode, Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first);
81916
+ const widenedType = getWidenedType(exprType);
81917
+ if (!isTypeComparableTo(targetType, widenedType)) checkTypeComparableTo(exprType, targetType, errNode, Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first);
81905
81918
  });
81906
81919
  }
81907
81920
  function checkNonNullChain(node) {
@@ -93649,7 +93662,8 @@ ${lanes.join("\n")}
93649
93662
  setOriginalNode(getter, node);
93650
93663
  setCommentRange(getter, commentRange);
93651
93664
  setSourceMapRange(getter, sourceMapRange);
93652
- const setter = createAccessorPropertySetRedirector(factory2, node, factory2.createModifiersFromModifierFlags(modifiersToFlags(modifiers)), setterName, receiver);
93665
+ const setterModifiers = factory2.createModifiersFromModifierFlags(modifiersToFlags(modifiers));
93666
+ const setter = createAccessorPropertySetRedirector(factory2, node, setterModifiers, setterName, receiver);
93653
93667
  setOriginalNode(setter, node);
93654
93668
  setEmitFlags(setter, 3072);
93655
93669
  setSourceMapRange(setter, sourceMapRange);
@@ -98092,7 +98106,8 @@ ${lanes.join("\n")}
98092
98106
  const tagName = getTagName(node);
98093
98107
  const attrs = node.attributes.properties;
98094
98108
  const objectProperties = length(attrs) ? transformJsxAttributesToObjectProps(attrs) : factory2.createNull();
98095
- const element = createExpressionForJsxElement(factory2, currentFileState.importSpecifier === void 0 ? createJsxFactoryExpression(factory2, context.getEmitResolver().getJsxFactoryEntity(currentSourceFile), compilerOptions.reactNamespace, node) : getImplicitImportForName("createElement"), tagName, objectProperties, mapDefined(children, transformJsxChildToExpression), location);
98109
+ const callee = currentFileState.importSpecifier === void 0 ? createJsxFactoryExpression(factory2, context.getEmitResolver().getJsxFactoryEntity(currentSourceFile), compilerOptions.reactNamespace, node) : getImplicitImportForName("createElement");
98110
+ const element = createExpressionForJsxElement(factory2, callee, tagName, objectProperties, mapDefined(children, transformJsxChildToExpression), location);
98096
98111
  if (isChild) startOnNewLine(element);
98097
98112
  return element;
98098
98113
  }
@@ -114688,7 +114703,8 @@ ${lanes.join("\n")}
114688
114703
  }
114689
114704
  function scheduleInvalidateResolutionsOfFailedLookupLocations() {
114690
114705
  if (!host.setTimeout || !host.clearTimeout) return resolutionCache.invalidateResolutionsOfFailedLookupLocations();
114691
- writeLog(`Scheduling invalidateFailedLookup${clearInvalidateResolutionsOfFailedLookupLocations() ? ", Cancelled earlier one" : ""}`);
114706
+ const pending = clearInvalidateResolutionsOfFailedLookupLocations();
114707
+ writeLog(`Scheduling invalidateFailedLookup${pending ? ", Cancelled earlier one" : ""}`);
114692
114708
  timerToInvalidateFailedLookupResolutions = host.setTimeout(invalidateResolutionsOfFailedLookup, 250, "timerToInvalidateFailedLookupResolutions");
114693
114709
  }
114694
114710
  function invalidateResolutionsOfFailedLookup() {
@@ -130379,7 +130395,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
130379
130395
  const { sourceFile } = context;
130380
130396
  const fixedDeclarations = /* @__PURE__ */ new Set();
130381
130397
  return codeFixAll(context, errorCodes2, (t, diagnostic) => {
130382
- const decl = getFixableErrorSpanDeclaration(sourceFile, diagnostic.relatedInformation && find(diagnostic.relatedInformation, (r) => r.code === Diagnostics.Did_you_mean_to_mark_this_function_as_async.code));
130398
+ const span = diagnostic.relatedInformation && find(diagnostic.relatedInformation, (r) => r.code === Diagnostics.Did_you_mean_to_mark_this_function_as_async.code);
130399
+ const decl = getFixableErrorSpanDeclaration(sourceFile, span);
130383
130400
  if (!decl) return;
130384
130401
  const trackChanges = (cb) => (cb(t), []);
130385
130402
  return getFix(context, decl, trackChanges, fixedDeclarations);
@@ -132964,7 +132981,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
132964
132981
  return createModuleSpecifierResolutionHost(isFromPackageJson ? host.getPackageJsonAutoImportProvider() : program, host);
132965
132982
  });
132966
132983
  function addSymbol(moduleSymbol, toFile, exportedSymbol, exportKind, program2, isFromPackageJson) {
132967
- if (isImportable(program2, fromFile, toFile, moduleSymbol, preferences, packageJsonFilter, getModuleSpecifierResolutionHost(isFromPackageJson), moduleSpecifierCache)) {
132984
+ const moduleSpecifierResolutionHost = getModuleSpecifierResolutionHost(isFromPackageJson);
132985
+ if (isImportable(program2, fromFile, toFile, moduleSymbol, preferences, packageJsonFilter, moduleSpecifierResolutionHost, moduleSpecifierCache)) {
132968
132986
  const checker = program2.getTypeChecker();
132969
132987
  originalSymbolToExportInfos.add(getUniqueSymbolId(exportedSymbol, checker).toString(), {
132970
132988
  symbol: exportedSymbol,
@@ -133941,7 +133959,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
133941
133959
  eachDiagnostic(context, errorCodes28, (diag2) => {
133942
133960
  const info = getInfo10(diag2.file, diag2.start, diag2.code, checker, context.program);
133943
133961
  if (info === void 0) return;
133944
- if (!addToSeen(seen, getNodeId(info.parentDeclaration) + "#" + (info.kind === 3 ? info.identifier || getNodeId(info.token) : info.token.text))) return;
133962
+ const nodeId = getNodeId(info.parentDeclaration) + "#" + (info.kind === 3 ? info.identifier || getNodeId(info.token) : info.token.text);
133963
+ if (!addToSeen(seen, nodeId)) return;
133945
133964
  if (fixId56 === fixMissingFunctionDeclaration && (info.kind === 2 || info.kind === 5)) addFunctionDeclaration(changes, context, info);
133946
133965
  else if (fixId56 === fixMissingProperties && info.kind === 3) addObjectLiteralProperties(changes, context, info);
133947
133966
  else if (fixId56 === fixMissingAttributes && info.kind === 4) addJsxAttributes(changes, context, info);
@@ -135324,7 +135343,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
135324
135343
  const info = getInfo15(err.file, err.start, checker);
135325
135344
  if (!info) return;
135326
135345
  const { typeNode, type } = info;
135327
- doChange29(changes, sourceFile, typeNode, typeNode.kind === 315 && fixId56 === fixIdNullable ? checker.getNullableType(type, 4) : type, checker);
135346
+ const fixedType = typeNode.kind === 315 && fixId56 === fixIdNullable ? checker.getNullableType(type, 4) : type;
135347
+ doChange29(changes, sourceFile, typeNode, fixedType, checker);
135328
135348
  });
135329
135349
  }
135330
135350
  });
@@ -139724,15 +139744,18 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
139724
139744
  symbol: firstAccessibleSymbol,
139725
139745
  targetFlags: skipAlias(firstAccessibleSymbol, typeChecker).flags
139726
139746
  }], position, isValidTypeOnlyAliasUseSite(location)) || {};
139727
- if (moduleSpecifier) symbolToOriginInfoMap[index] = {
139728
- kind: getNullableSymbolOriginInfoKind(34),
139729
- moduleSymbol,
139730
- isDefaultExport: false,
139731
- symbolName: firstAccessibleSymbol.name,
139732
- exportName: firstAccessibleSymbol.name,
139733
- fileName,
139734
- moduleSpecifier
139735
- };
139747
+ if (moduleSpecifier) {
139748
+ const origin = {
139749
+ kind: getNullableSymbolOriginInfoKind(34),
139750
+ moduleSymbol,
139751
+ isDefaultExport: false,
139752
+ symbolName: firstAccessibleSymbol.name,
139753
+ exportName: firstAccessibleSymbol.name,
139754
+ fileName,
139755
+ moduleSpecifier
139756
+ };
139757
+ symbolToOriginInfoMap[index] = origin;
139758
+ }
139736
139759
  }
139737
139760
  } else if (preferences.includeCompletionsWithInsertText) {
139738
139761
  if (firstAccessibleSymbolId && seenPropertySymbols.has(firstAccessibleSymbolId)) return;
@@ -140253,10 +140276,13 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
140253
140276
  symbols = concatenate(symbols, filterClassMembersList(baseSymbols, decl.members, classElementModifierFlags));
140254
140277
  forEach(symbols, (symbol, index) => {
140255
140278
  const declaration = symbol == null ? void 0 : symbol.valueDeclaration;
140256
- if (declaration && isClassElement(declaration) && declaration.name && isComputedPropertyName(declaration.name)) symbolToOriginInfoMap[index] = {
140257
- kind: 512,
140258
- symbolName: typeChecker.symbolToString(symbol)
140259
- };
140279
+ if (declaration && isClassElement(declaration) && declaration.name && isComputedPropertyName(declaration.name)) {
140280
+ const origin = {
140281
+ kind: 512,
140282
+ symbolName: typeChecker.symbolToString(symbol)
140283
+ };
140284
+ symbolToOriginInfoMap[index] = origin;
140285
+ }
140260
140286
  });
140261
140287
  }
140262
140288
  return 1;
@@ -147165,7 +147191,7 @@ ${content}
147165
147191
  if (symbolWasExpanded) return true;
147166
147192
  if (canExpandSymbol(symbol2, typeWriterOut)) {
147167
147193
  const symbolMeaning = semanticToSymbolMeaning(meaning);
147168
- addRange(displayParts, mapToDisplayParts((writer) => {
147194
+ const expandedDisplayParts = mapToDisplayParts((writer) => {
147169
147195
  const nodes = typeChecker.getEmitResolver().symbolToDeclarations(symbol2, symbolMeaning, 17408, maximumLength, verbosityLevel !== void 0 ? verbosityLevel - 1 : void 0, typeWriterOut);
147170
147196
  const printer = getPrinter();
147171
147197
  const sourceFile2 = symbol2.valueDeclaration && getSourceFileOfNode(symbol2.valueDeclaration);
@@ -147173,7 +147199,8 @@ ${content}
147173
147199
  if (i > 0) writer.writeLine();
147174
147200
  printer.writeNode(4, node, sourceFile2, writer);
147175
147201
  });
147176
- }, maximumLength));
147202
+ }, maximumLength);
147203
+ addRange(displayParts, expandedDisplayParts);
147177
147204
  symbolWasExpanded = true;
147178
147205
  return true;
147179
147206
  }
@@ -147247,10 +147274,11 @@ ${content}
147247
147274
  }
147248
147275
  }
147249
147276
  function writeTypeParametersOfSymbol(symbol2, enclosingDeclaration2) {
147250
- addRange(displayParts, mapToDisplayParts((writer) => {
147277
+ const typeParameterParts = mapToDisplayParts((writer) => {
147251
147278
  const params = typeChecker.symbolToTypeParameterDeclarations(symbol2, enclosingDeclaration2, symbolDisplayNodeBuilderFlags);
147252
147279
  getPrinter().writeList(53776, params, getSourceFileOfNode(getParseTreeNode(enclosingDeclaration2)), writer);
147253
- }));
147280
+ });
147281
+ addRange(displayParts, typeParameterParts);
147254
147282
  }
147255
147283
  }
147256
147284
  function getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, symbol, sourceFile, enclosingDeclaration, location, semanticMeaning = getMeaningFromLocation(location), alias, maximumLength, verbosityLevel) {
@@ -153282,12 +153310,13 @@ ${options.prefix}` : "\n" : options.prefix
153282
153310
  if (this.installTypingHost.fileExists(combinePaths(directory, "package.json"))) return directory;
153283
153311
  }) || projectRootPath;
153284
153312
  if (cwd) this.installWorker(-1, [packageName], cwd, (success) => {
153313
+ const message = success ? `Package ${packageName} installed.` : `There was an error installing ${packageName}.`;
153285
153314
  const response = {
153286
153315
  kind: ActionPackageInstalled,
153287
153316
  projectName,
153288
153317
  id,
153289
153318
  success,
153290
- message: success ? `Package ${packageName} installed.` : `There was an error installing ${packageName}.`
153319
+ message
153291
153320
  };
153292
153321
  this.sendResponse(response);
153293
153322
  });
@@ -162921,7 +162950,8 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
162921
162950
  if (typeof module !== "undefined" && module.exports) module.exports = v;
162922
162951
  }
162923
162952
  });
162924
- })))(), 1);
162953
+ }));
162954
+ require_typescript$1();
162925
162955
  const LEVEL_COLORS = {
162926
162956
  debug: "green",
162927
162957
  warn: "yellow",
@@ -163513,7 +163543,15 @@ async function resolveBuiltinFormatter(format) {
163513
163543
  }
163514
163544
  }
163515
163545
  //#endregion
163546
+ //#region node_modules/.aspect_rules_js/@typescript+typescript6@6.0.2/node_modules/@typescript/typescript6/lib/typescript.js
163547
+ var require_typescript = /* @__PURE__ */ __commonJSMin(((exports, module) => {
163548
+ module.exports = require_typescript$1();
163549
+ }));
163550
+ //#endregion
163516
163551
  //#region packages/cli-lib/parse_script.ts
163552
+ var import_compat = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
163553
+ module.exports = require_typescript();
163554
+ })))());
163517
163555
  /**
163518
163556
  * Invoid TypeScript module transpilation with our TS transformer
163519
163557
  * @param opts Formatjs TS Transformer opt
@@ -163524,16 +163562,16 @@ function parseScript(opts, fn) {
163524
163562
  let output;
163525
163563
  try {
163526
163564
  debug$1("Using TS compiler to process file", fn);
163527
- output = import_typescript.transpileModule(source, {
163565
+ output = import_compat.transpileModule(source, {
163528
163566
  compilerOptions: {
163529
163567
  allowJs: true,
163530
- target: import_typescript.ScriptTarget.ESNext,
163568
+ target: import_compat.ScriptTarget.ESNext,
163531
163569
  noEmit: true,
163532
163570
  experimentalDecorators: true
163533
163571
  },
163534
163572
  reportDiagnostics: true,
163535
163573
  fileName: fn,
163536
- transformers: { before: [transformWithTs(import_typescript, opts)] }
163574
+ transformers: { before: [transformWithTs(import_compat, opts)] }
163537
163575
  });
163538
163576
  } catch (e) {
163539
163577
  if (e instanceof Error) e.message = `Error processing file ${fn}
@@ -163541,11 +163579,11 @@ ${e.message || ""}`;
163541
163579
  throw e;
163542
163580
  }
163543
163581
  if (output.diagnostics) {
163544
- const errs = output.diagnostics.filter((d) => d.category === import_typescript.DiagnosticCategory.Error);
163545
- if (errs.length) throw new Error(import_typescript.formatDiagnosticsWithColorAndContext(errs, {
163582
+ const errs = output.diagnostics.filter((d) => d.category === import_compat.DiagnosticCategory.Error);
163583
+ if (errs.length) throw new Error(import_compat.formatDiagnosticsWithColorAndContext(errs, {
163546
163584
  getCanonicalFileName: (fileName) => fileName,
163547
163585
  getCurrentDirectory: () => process.cwd(),
163548
- getNewLine: () => import_typescript.sys.newLine
163586
+ getNewLine: () => import_compat.sys.newLine
163549
163587
  }));
163550
163588
  }
163551
163589
  };