@storm-software/workspace-tools 1.56.4 → 1.56.9

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.
@@ -33,7 +33,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
33
33
  var require_resolve_from = __commonJS({
34
34
  "node_modules/.pnpm/resolve-from@4.0.0/node_modules/resolve-from/index.js"(exports2, module2) {
35
35
  "use strict";
36
- var path3 = require("path");
36
+ var path = require("path");
37
37
  var Module = require("module");
38
38
  var fs = require("fs");
39
39
  var resolveFrom = (fromDir, moduleId, silent) => {
@@ -47,14 +47,14 @@ var require_resolve_from = __commonJS({
47
47
  fromDir = fs.realpathSync(fromDir);
48
48
  } catch (err) {
49
49
  if (err.code === "ENOENT") {
50
- fromDir = path3.resolve(fromDir);
50
+ fromDir = path.resolve(fromDir);
51
51
  } else if (silent) {
52
52
  return null;
53
53
  } else {
54
54
  throw err;
55
55
  }
56
56
  }
57
- const fromFile = path3.join(fromDir, "noop.js");
57
+ const fromFile = path.join(fromDir, "noop.js");
58
58
  const resolveFileName = () => Module._resolveFilename(moduleId, {
59
59
  id: fromFile,
60
60
  filename: fromFile,
@@ -126,7 +126,7 @@ var require_parent_module = __commonJS({
126
126
  var require_import_fresh = __commonJS({
127
127
  "node_modules/.pnpm/import-fresh@3.3.0/node_modules/import-fresh/index.js"(exports2, module2) {
128
128
  "use strict";
129
- var path3 = require("path");
129
+ var path = require("path");
130
130
  var resolveFrom = require_resolve_from();
131
131
  var parentModule = require_parent_module();
132
132
  module2.exports = (moduleId) => {
@@ -134,7 +134,7 @@ var require_import_fresh = __commonJS({
134
134
  throw new TypeError("Expected a string");
135
135
  }
136
136
  const parentPath = parentModule(__filename);
137
- const cwd = parentPath ? path3.dirname(parentPath) : __dirname;
137
+ const cwd = parentPath ? path.dirname(parentPath) : __dirname;
138
138
  const filePath = resolveFrom(cwd, moduleId);
139
139
  const oldModule = require.cache[filePath];
140
140
  if (oldModule && oldModule.parent) {
@@ -1576,15 +1576,15 @@ var require_route = __commonJS({
1576
1576
  };
1577
1577
  }
1578
1578
  function wrapConversion(toModel, graph) {
1579
- var path3 = [graph[toModel].parent, toModel];
1579
+ var path = [graph[toModel].parent, toModel];
1580
1580
  var fn = conversions[graph[toModel].parent][toModel];
1581
1581
  var cur = graph[toModel].parent;
1582
1582
  while (graph[cur].parent) {
1583
- path3.unshift(graph[cur].parent);
1583
+ path.unshift(graph[cur].parent);
1584
1584
  fn = link(conversions[graph[cur].parent][cur], fn);
1585
1585
  cur = graph[cur].parent;
1586
1586
  }
1587
- fn.conversion = path3;
1587
+ fn.conversion = path;
1588
1588
  return fn;
1589
1589
  }
1590
1590
  module2.exports = function(fromModel) {
@@ -1824,7 +1824,7 @@ var require_has_flag = __commonJS({
1824
1824
  var require_supports_color = __commonJS({
1825
1825
  "node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js"(exports2, module2) {
1826
1826
  "use strict";
1827
- var os2 = require("os");
1827
+ var os = require("os");
1828
1828
  var hasFlag = require_has_flag();
1829
1829
  var env = process.env;
1830
1830
  var forceColor;
@@ -1862,7 +1862,7 @@ var require_supports_color = __commonJS({
1862
1862
  }
1863
1863
  const min = forceColor ? 1 : 0;
1864
1864
  if (process.platform === "win32") {
1865
- const osRelease = os2.release().split(".");
1865
+ const osRelease = os.release().split(".");
1866
1866
  if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
1867
1867
  return Number(osRelease[2]) >= 14931 ? 3 : 2;
1868
1868
  }
@@ -4726,7 +4726,7 @@ var require_loader = __commonJS({
4726
4726
  iterator(documents[index]);
4727
4727
  }
4728
4728
  }
4729
- function load2(input, options) {
4729
+ function load(input, options) {
4730
4730
  var documents = loadDocuments(input, options);
4731
4731
  if (documents.length === 0) {
4732
4732
  return void 0;
@@ -4736,7 +4736,7 @@ var require_loader = __commonJS({
4736
4736
  throw new YAMLException("expected a single document in the stream, but found more");
4737
4737
  }
4738
4738
  module2.exports.loadAll = loadAll;
4739
- module2.exports.load = load2;
4739
+ module2.exports.load = load;
4740
4740
  }
4741
4741
  });
4742
4742
 
@@ -5552,7 +5552,7 @@ ${error.message}`;
5552
5552
  return typescript.sys.fileExists(fileName);
5553
5553
  });
5554
5554
  if (filePath !== void 0) {
5555
- const { config, error } = typescript.readConfigFile(filePath, (path3) => typescript.sys.readFile(path3));
5555
+ const { config, error } = typescript.readConfigFile(filePath, (path) => typescript.sys.readFile(path));
5556
5556
  if (error) {
5557
5557
  throw new Error(`Error in ${filePath}: ${error.messageText.toString()}`);
5558
5558
  }
@@ -5675,42 +5675,42 @@ var require_defaults = __commonJS({
5675
5675
  var require_env_paths = __commonJS({
5676
5676
  "node_modules/.pnpm/env-paths@2.2.1/node_modules/env-paths/index.js"(exports2, module2) {
5677
5677
  "use strict";
5678
- var path3 = require("path");
5679
- var os2 = require("os");
5680
- var homedir = os2.homedir();
5681
- var tmpdir = os2.tmpdir();
5678
+ var path = require("path");
5679
+ var os = require("os");
5680
+ var homedir = os.homedir();
5681
+ var tmpdir = os.tmpdir();
5682
5682
  var { env } = process;
5683
5683
  var macos = (name) => {
5684
- const library = path3.join(homedir, "Library");
5684
+ const library = path.join(homedir, "Library");
5685
5685
  return {
5686
- data: path3.join(library, "Application Support", name),
5687
- config: path3.join(library, "Preferences", name),
5688
- cache: path3.join(library, "Caches", name),
5689
- log: path3.join(library, "Logs", name),
5690
- temp: path3.join(tmpdir, name)
5686
+ data: path.join(library, "Application Support", name),
5687
+ config: path.join(library, "Preferences", name),
5688
+ cache: path.join(library, "Caches", name),
5689
+ log: path.join(library, "Logs", name),
5690
+ temp: path.join(tmpdir, name)
5691
5691
  };
5692
5692
  };
5693
5693
  var windows = (name) => {
5694
- const appData = env.APPDATA || path3.join(homedir, "AppData", "Roaming");
5695
- const localAppData = env.LOCALAPPDATA || path3.join(homedir, "AppData", "Local");
5694
+ const appData = env.APPDATA || path.join(homedir, "AppData", "Roaming");
5695
+ const localAppData = env.LOCALAPPDATA || path.join(homedir, "AppData", "Local");
5696
5696
  return {
5697
5697
  // Data/config/cache/log are invented by me as Windows isn't opinionated about this
5698
- data: path3.join(localAppData, name, "Data"),
5699
- config: path3.join(appData, name, "Config"),
5700
- cache: path3.join(localAppData, name, "Cache"),
5701
- log: path3.join(localAppData, name, "Log"),
5702
- temp: path3.join(tmpdir, name)
5698
+ data: path.join(localAppData, name, "Data"),
5699
+ config: path.join(appData, name, "Config"),
5700
+ cache: path.join(localAppData, name, "Cache"),
5701
+ log: path.join(localAppData, name, "Log"),
5702
+ temp: path.join(tmpdir, name)
5703
5703
  };
5704
5704
  };
5705
5705
  var linux = (name) => {
5706
- const username = path3.basename(homedir);
5706
+ const username = path.basename(homedir);
5707
5707
  return {
5708
- data: path3.join(env.XDG_DATA_HOME || path3.join(homedir, ".local", "share"), name),
5709
- config: path3.join(env.XDG_CONFIG_HOME || path3.join(homedir, ".config"), name),
5710
- cache: path3.join(env.XDG_CACHE_HOME || path3.join(homedir, ".cache"), name),
5708
+ data: path.join(env.XDG_DATA_HOME || path.join(homedir, ".local", "share"), name),
5709
+ config: path.join(env.XDG_CONFIG_HOME || path.join(homedir, ".config"), name),
5710
+ cache: path.join(env.XDG_CACHE_HOME || path.join(homedir, ".cache"), name),
5711
5711
  // https://wiki.debian.org/XDGBaseDirectorySpecification#state
5712
- log: path3.join(env.XDG_STATE_HOME || path3.join(homedir, ".local", "state"), name),
5713
- temp: path3.join(tmpdir, username, name)
5712
+ log: path.join(env.XDG_STATE_HOME || path.join(homedir, ".local", "state"), name),
5713
+ temp: path.join(tmpdir, username, name)
5714
5714
  };
5715
5715
  };
5716
5716
  var envPaths = (name, options) => {
@@ -5783,11 +5783,11 @@ var require_util = __commonJS({
5783
5783
  return result;
5784
5784
  }
5785
5785
  exports2.emplace = emplace;
5786
- function getPropertyByPath(source, path3) {
5787
- if (typeof path3 === "string" && Object.prototype.hasOwnProperty.call(source, path3)) {
5788
- return source[path3];
5786
+ function getPropertyByPath(source, path) {
5787
+ if (typeof path === "string" && Object.prototype.hasOwnProperty.call(source, path)) {
5788
+ return source[path];
5789
5789
  }
5790
- const parsedPath = typeof path3 === "string" ? path3.split(".") : path3;
5790
+ const parsedPath = typeof path === "string" ? path.split(".") : path;
5791
5791
  return parsedPath.reduce((previous, key) => {
5792
5792
  if (previous === void 0) {
5793
5793
  return previous;
@@ -5800,9 +5800,9 @@ var require_util = __commonJS({
5800
5800
  return Object.fromEntries(Object.entries(options).filter(([, value]) => value !== void 0));
5801
5801
  }
5802
5802
  exports2.removeUndefinedValuesFromObject = removeUndefinedValuesFromObject;
5803
- async function isDirectory(path3) {
5803
+ async function isDirectory(path) {
5804
5804
  try {
5805
- const stat = await fs_1.promises.stat(path3);
5805
+ const stat = await fs_1.promises.stat(path);
5806
5806
  return stat.isDirectory();
5807
5807
  } catch (e) {
5808
5808
  if (e.code === "ENOENT") {
@@ -5812,9 +5812,9 @@ var require_util = __commonJS({
5812
5812
  }
5813
5813
  }
5814
5814
  exports2.isDirectory = isDirectory;
5815
- function isDirectorySync(path3) {
5815
+ function isDirectorySync(path) {
5816
5816
  try {
5817
- const stat = fs_1.default.statSync(path3);
5817
+ const stat = fs_1.default.statSync(path);
5818
5818
  return stat.isDirectory();
5819
5819
  } catch (e) {
5820
5820
  if (e.code === "ENOENT") {
@@ -5912,7 +5912,7 @@ var require_ExplorerBase = __commonJS({
5912
5912
  const idx = importStack.indexOf(fullPath);
5913
5913
  if (idx !== -1) {
5914
5914
  throw new Error(`Circular import detected:
5915
- ${[...importStack, fullPath].map((path3, i) => `${i + 1}. ${path3}`).join("\n")} (same as ${idx + 1}.)`);
5915
+ ${[...importStack, fullPath].map((path, i) => `${i + 1}. ${path}`).join("\n")} (same as ${idx + 1}.)`);
5916
5916
  }
5917
5917
  }
5918
5918
  }
@@ -5999,13 +5999,13 @@ var require_Explorer = __commonJS({
5999
5999
  var Explorer = class extends ExplorerBase_js_1.ExplorerBase {
6000
6000
  async load(filepath) {
6001
6001
  filepath = path_1.default.resolve(filepath);
6002
- const load2 = async () => {
6002
+ const load = async () => {
6003
6003
  return await this.config.transform(await this.#readConfiguration(filepath));
6004
6004
  };
6005
6005
  if (this.loadCache) {
6006
- return await (0, util_js_1.emplace)(this.loadCache, filepath, load2);
6006
+ return await (0, util_js_1.emplace)(this.loadCache, filepath, load);
6007
6007
  }
6008
- return await load2();
6008
+ return await load();
6009
6009
  }
6010
6010
  async search(from = "") {
6011
6011
  if (this.config.metaConfigFilePath) {
@@ -6097,9 +6097,9 @@ var require_Explorer = __commonJS({
6097
6097
  throw error;
6098
6098
  }
6099
6099
  }
6100
- async #fileExists(path3) {
6100
+ async #fileExists(path) {
6101
6101
  try {
6102
- await promises_1.default.stat(path3);
6102
+ await promises_1.default.stat(path);
6103
6103
  return true;
6104
6104
  } catch (e) {
6105
6105
  return false;
@@ -6157,13 +6157,13 @@ var require_ExplorerSync = __commonJS({
6157
6157
  var ExplorerSync = class extends ExplorerBase_js_1.ExplorerBase {
6158
6158
  load(filepath) {
6159
6159
  filepath = path_1.default.resolve(filepath);
6160
- const load2 = () => {
6160
+ const load = () => {
6161
6161
  return this.config.transform(this.#readConfiguration(filepath));
6162
6162
  };
6163
6163
  if (this.loadCache) {
6164
- return (0, util_js_1.emplace)(this.loadCache, filepath, load2);
6164
+ return (0, util_js_1.emplace)(this.loadCache, filepath, load);
6165
6165
  }
6166
- return load2();
6166
+ return load();
6167
6167
  }
6168
6168
  search(from = "") {
6169
6169
  if (this.config.metaConfigFilePath) {
@@ -6255,9 +6255,9 @@ var require_ExplorerSync = __commonJS({
6255
6255
  throw error;
6256
6256
  }
6257
6257
  }
6258
- #fileExists(path3) {
6258
+ #fileExists(path) {
6259
6259
  try {
6260
- fs_1.default.statSync(path3);
6260
+ fs_1.default.statSync(path);
6261
6261
  return true;
6262
6262
  } catch (e) {
6263
6263
  return false;
@@ -6339,7 +6339,7 @@ var require_dist = __commonJS({
6339
6339
  var Explorer_js_1 = require_Explorer();
6340
6340
  var ExplorerSync_js_1 = require_ExplorerSync();
6341
6341
  var util_1 = require_util();
6342
- var identity2 = function identity3(x) {
6342
+ var identity = function identity2(x) {
6343
6343
  return x;
6344
6344
  };
6345
6345
  function getUserDefinedOptionsFromMetaConfig() {
@@ -6350,7 +6350,7 @@ var require_dist = __commonJS({
6350
6350
  ignoreEmptySearchPlaces: false,
6351
6351
  applyPackagePropertyPathToConfiguration: true,
6352
6352
  loaders: defaults_1.defaultLoaders,
6353
- transform: identity2,
6353
+ transform: identity,
6354
6354
  cache: true,
6355
6355
  metaConfigFilePath: null,
6356
6356
  mergeImportArrays: true,
@@ -6377,7 +6377,7 @@ var require_dist = __commonJS({
6377
6377
  };
6378
6378
  }
6379
6379
  function getResolvedSearchPlaces(moduleName, toolDefinedSearchPlaces, userConfiguredOptions) {
6380
- const userConfiguredSearchPlaces = userConfiguredOptions.searchPlaces?.map((path3) => path3.replace("{name}", moduleName));
6380
+ const userConfiguredSearchPlaces = userConfiguredOptions.searchPlaces?.map((path) => path.replace("{name}", moduleName));
6381
6381
  if (userConfiguredOptions.mergeSearchPlaces) {
6382
6382
  return [...userConfiguredSearchPlaces ?? [], ...toolDefinedSearchPlaces];
6383
6383
  }
@@ -6422,7 +6422,7 @@ var require_dist = __commonJS({
6422
6422
  searchPlaces: (0, defaults_1.getDefaultSearchPlaces)(moduleName),
6423
6423
  ignoreEmptySearchPlaces: true,
6424
6424
  cache: true,
6425
- transform: identity2,
6425
+ transform: identity,
6426
6426
  loaders: defaults_1.defaultLoaders,
6427
6427
  metaConfigFilePath: null,
6428
6428
  mergeImportArrays: true,
@@ -6438,7 +6438,7 @@ var require_dist = __commonJS({
6438
6438
  searchPlaces: (0, defaults_1.getDefaultSearchPlacesSync)(moduleName),
6439
6439
  ignoreEmptySearchPlaces: true,
6440
6440
  cache: true,
6441
- transform: identity2,
6441
+ transform: identity,
6442
6442
  loaders: defaults_1.defaultLoadersSync,
6443
6443
  metaConfigFilePath: null,
6444
6444
  mergeImportArrays: true,
@@ -7344,15 +7344,15 @@ var require_route2 = __commonJS({
7344
7344
  };
7345
7345
  }
7346
7346
  function wrapConversion(toModel, graph) {
7347
- const path3 = [graph[toModel].parent, toModel];
7347
+ const path = [graph[toModel].parent, toModel];
7348
7348
  let fn = conversions[graph[toModel].parent][toModel];
7349
7349
  let cur = graph[toModel].parent;
7350
7350
  while (graph[cur].parent) {
7351
- path3.unshift(graph[cur].parent);
7351
+ path.unshift(graph[cur].parent);
7352
7352
  fn = link(conversions[graph[cur].parent][cur], fn);
7353
7353
  cur = graph[cur].parent;
7354
7354
  }
7355
- fn.conversion = path3;
7355
+ fn.conversion = path;
7356
7356
  return fn;
7357
7357
  }
7358
7358
  module2.exports = function(fromModel) {
@@ -7467,7 +7467,7 @@ var require_ansi_styles2 = __commonJS({
7467
7467
  });
7468
7468
  };
7469
7469
  var colorConvert;
7470
- var makeDynamicStyles = (wrap, targetSpace, identity2, isBackground) => {
7470
+ var makeDynamicStyles = (wrap, targetSpace, identity, isBackground) => {
7471
7471
  if (colorConvert === void 0) {
7472
7472
  colorConvert = require_color_convert2();
7473
7473
  }
@@ -7476,7 +7476,7 @@ var require_ansi_styles2 = __commonJS({
7476
7476
  for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
7477
7477
  const name = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
7478
7478
  if (sourceSpace === targetSpace) {
7479
- styles[name] = wrap(identity2, offset);
7479
+ styles[name] = wrap(identity, offset);
7480
7480
  } else if (typeof suite === "object") {
7481
7481
  styles[name] = wrap(suite[targetSpace], offset);
7482
7482
  }
@@ -7592,7 +7592,7 @@ var require_has_flag2 = __commonJS({
7592
7592
  var require_supports_color2 = __commonJS({
7593
7593
  "node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js"(exports2, module2) {
7594
7594
  "use strict";
7595
- var os2 = require("os");
7595
+ var os = require("os");
7596
7596
  var tty = require("tty");
7597
7597
  var hasFlag = require_has_flag2();
7598
7598
  var { env } = process;
@@ -7640,7 +7640,7 @@ var require_supports_color2 = __commonJS({
7640
7640
  return min;
7641
7641
  }
7642
7642
  if (process.platform === "win32") {
7643
- const osRelease = os2.release().split(".");
7643
+ const osRelease = os.release().split(".");
7644
7644
  if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
7645
7645
  return Number(osRelease[2]) >= 14931 ? 3 : 2;
7646
7646
  }
@@ -8021,543 +8021,6 @@ var require_source = __commonJS({
8021
8021
  }
8022
8022
  });
8023
8023
 
8024
- // node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js
8025
- var require_windows = __commonJS({
8026
- "node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports2, module2) {
8027
- module2.exports = isexe;
8028
- isexe.sync = sync;
8029
- var fs = require("fs");
8030
- function checkPathExt(path3, options) {
8031
- var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
8032
- if (!pathext) {
8033
- return true;
8034
- }
8035
- pathext = pathext.split(";");
8036
- if (pathext.indexOf("") !== -1) {
8037
- return true;
8038
- }
8039
- for (var i = 0; i < pathext.length; i++) {
8040
- var p = pathext[i].toLowerCase();
8041
- if (p && path3.substr(-p.length).toLowerCase() === p) {
8042
- return true;
8043
- }
8044
- }
8045
- return false;
8046
- }
8047
- function checkStat(stat, path3, options) {
8048
- if (!stat.isSymbolicLink() && !stat.isFile()) {
8049
- return false;
8050
- }
8051
- return checkPathExt(path3, options);
8052
- }
8053
- function isexe(path3, options, cb) {
8054
- fs.stat(path3, function(er, stat) {
8055
- cb(er, er ? false : checkStat(stat, path3, options));
8056
- });
8057
- }
8058
- function sync(path3, options) {
8059
- return checkStat(fs.statSync(path3), path3, options);
8060
- }
8061
- }
8062
- });
8063
-
8064
- // node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js
8065
- var require_mode = __commonJS({
8066
- "node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports2, module2) {
8067
- module2.exports = isexe;
8068
- isexe.sync = sync;
8069
- var fs = require("fs");
8070
- function isexe(path3, options, cb) {
8071
- fs.stat(path3, function(er, stat) {
8072
- cb(er, er ? false : checkStat(stat, options));
8073
- });
8074
- }
8075
- function sync(path3, options) {
8076
- return checkStat(fs.statSync(path3), options);
8077
- }
8078
- function checkStat(stat, options) {
8079
- return stat.isFile() && checkMode(stat, options);
8080
- }
8081
- function checkMode(stat, options) {
8082
- var mod = stat.mode;
8083
- var uid = stat.uid;
8084
- var gid = stat.gid;
8085
- var myUid = options.uid !== void 0 ? options.uid : process.getuid && process.getuid();
8086
- var myGid = options.gid !== void 0 ? options.gid : process.getgid && process.getgid();
8087
- var u = parseInt("100", 8);
8088
- var g = parseInt("010", 8);
8089
- var o = parseInt("001", 8);
8090
- var ug = u | g;
8091
- var ret = mod & o || mod & g && gid === myGid || mod & u && uid === myUid || mod & ug && myUid === 0;
8092
- return ret;
8093
- }
8094
- }
8095
- });
8096
-
8097
- // node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js
8098
- var require_isexe = __commonJS({
8099
- "node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports2, module2) {
8100
- var fs = require("fs");
8101
- var core;
8102
- if (process.platform === "win32" || global.TESTING_WINDOWS) {
8103
- core = require_windows();
8104
- } else {
8105
- core = require_mode();
8106
- }
8107
- module2.exports = isexe;
8108
- isexe.sync = sync;
8109
- function isexe(path3, options, cb) {
8110
- if (typeof options === "function") {
8111
- cb = options;
8112
- options = {};
8113
- }
8114
- if (!cb) {
8115
- if (typeof Promise !== "function") {
8116
- throw new TypeError("callback not provided");
8117
- }
8118
- return new Promise(function(resolve, reject) {
8119
- isexe(path3, options || {}, function(er, is) {
8120
- if (er) {
8121
- reject(er);
8122
- } else {
8123
- resolve(is);
8124
- }
8125
- });
8126
- });
8127
- }
8128
- core(path3, options || {}, function(er, is) {
8129
- if (er) {
8130
- if (er.code === "EACCES" || options && options.ignoreErrors) {
8131
- er = null;
8132
- is = false;
8133
- }
8134
- }
8135
- cb(er, is);
8136
- });
8137
- }
8138
- function sync(path3, options) {
8139
- try {
8140
- return core.sync(path3, options || {});
8141
- } catch (er) {
8142
- if (options && options.ignoreErrors || er.code === "EACCES") {
8143
- return false;
8144
- } else {
8145
- throw er;
8146
- }
8147
- }
8148
- }
8149
- }
8150
- });
8151
-
8152
- // node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
8153
- var require_which = __commonJS({
8154
- "node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports2, module2) {
8155
- var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
8156
- var path3 = require("path");
8157
- var COLON = isWindows ? ";" : ":";
8158
- var isexe = require_isexe();
8159
- var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
8160
- var getPathInfo = (cmd, opt) => {
8161
- const colon = opt.colon || COLON;
8162
- const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [
8163
- // windows always checks the cwd first
8164
- ...isWindows ? [process.cwd()] : [],
8165
- ...(opt.path || process.env.PATH || /* istanbul ignore next: very unusual */
8166
- "").split(colon)
8167
- ];
8168
- const pathExtExe = isWindows ? opt.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
8169
- const pathExt = isWindows ? pathExtExe.split(colon) : [""];
8170
- if (isWindows) {
8171
- if (cmd.indexOf(".") !== -1 && pathExt[0] !== "")
8172
- pathExt.unshift("");
8173
- }
8174
- return {
8175
- pathEnv,
8176
- pathExt,
8177
- pathExtExe
8178
- };
8179
- };
8180
- var which = (cmd, opt, cb) => {
8181
- if (typeof opt === "function") {
8182
- cb = opt;
8183
- opt = {};
8184
- }
8185
- if (!opt)
8186
- opt = {};
8187
- const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
8188
- const found = [];
8189
- const step = (i) => new Promise((resolve, reject) => {
8190
- if (i === pathEnv.length)
8191
- return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
8192
- const ppRaw = pathEnv[i];
8193
- const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
8194
- const pCmd = path3.join(pathPart, cmd);
8195
- const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
8196
- resolve(subStep(p, i, 0));
8197
- });
8198
- const subStep = (p, i, ii) => new Promise((resolve, reject) => {
8199
- if (ii === pathExt.length)
8200
- return resolve(step(i + 1));
8201
- const ext = pathExt[ii];
8202
- isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
8203
- if (!er && is) {
8204
- if (opt.all)
8205
- found.push(p + ext);
8206
- else
8207
- return resolve(p + ext);
8208
- }
8209
- return resolve(subStep(p, i, ii + 1));
8210
- });
8211
- });
8212
- return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
8213
- };
8214
- var whichSync = (cmd, opt) => {
8215
- opt = opt || {};
8216
- const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
8217
- const found = [];
8218
- for (let i = 0; i < pathEnv.length; i++) {
8219
- const ppRaw = pathEnv[i];
8220
- const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
8221
- const pCmd = path3.join(pathPart, cmd);
8222
- const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
8223
- for (let j = 0; j < pathExt.length; j++) {
8224
- const cur = p + pathExt[j];
8225
- try {
8226
- const is = isexe.sync(cur, { pathExt: pathExtExe });
8227
- if (is) {
8228
- if (opt.all)
8229
- found.push(cur);
8230
- else
8231
- return cur;
8232
- }
8233
- } catch (ex) {
8234
- }
8235
- }
8236
- }
8237
- if (opt.all && found.length)
8238
- return found;
8239
- if (opt.nothrow)
8240
- return null;
8241
- throw getNotFoundError(cmd);
8242
- };
8243
- module2.exports = which;
8244
- which.sync = whichSync;
8245
- }
8246
- });
8247
-
8248
- // node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js
8249
- var require_path_key = __commonJS({
8250
- "node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(exports2, module2) {
8251
- "use strict";
8252
- var pathKey2 = (options = {}) => {
8253
- const environment = options.env || process.env;
8254
- const platform = options.platform || process.platform;
8255
- if (platform !== "win32") {
8256
- return "PATH";
8257
- }
8258
- return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
8259
- };
8260
- module2.exports = pathKey2;
8261
- module2.exports.default = pathKey2;
8262
- }
8263
- });
8264
-
8265
- // node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js
8266
- var require_resolveCommand = __commonJS({
8267
- "node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports2, module2) {
8268
- "use strict";
8269
- var path3 = require("path");
8270
- var which = require_which();
8271
- var getPathKey = require_path_key();
8272
- function resolveCommandAttempt(parsed, withoutPathExt) {
8273
- const env = parsed.options.env || process.env;
8274
- const cwd = process.cwd();
8275
- const hasCustomCwd = parsed.options.cwd != null;
8276
- const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
8277
- if (shouldSwitchCwd) {
8278
- try {
8279
- process.chdir(parsed.options.cwd);
8280
- } catch (err) {
8281
- }
8282
- }
8283
- let resolved;
8284
- try {
8285
- resolved = which.sync(parsed.command, {
8286
- path: env[getPathKey({ env })],
8287
- pathExt: withoutPathExt ? path3.delimiter : void 0
8288
- });
8289
- } catch (e) {
8290
- } finally {
8291
- if (shouldSwitchCwd) {
8292
- process.chdir(cwd);
8293
- }
8294
- }
8295
- if (resolved) {
8296
- resolved = path3.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
8297
- }
8298
- return resolved;
8299
- }
8300
- function resolveCommand(parsed) {
8301
- return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
8302
- }
8303
- module2.exports = resolveCommand;
8304
- }
8305
- });
8306
-
8307
- // node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js
8308
- var require_escape = __commonJS({
8309
- "node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js"(exports2, module2) {
8310
- "use strict";
8311
- var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
8312
- function escapeCommand(arg) {
8313
- arg = arg.replace(metaCharsRegExp, "^$1");
8314
- return arg;
8315
- }
8316
- function escapeArgument(arg, doubleEscapeMetaChars) {
8317
- arg = `${arg}`;
8318
- arg = arg.replace(/(\\*)"/g, '$1$1\\"');
8319
- arg = arg.replace(/(\\*)$/, "$1$1");
8320
- arg = `"${arg}"`;
8321
- arg = arg.replace(metaCharsRegExp, "^$1");
8322
- if (doubleEscapeMetaChars) {
8323
- arg = arg.replace(metaCharsRegExp, "^$1");
8324
- }
8325
- return arg;
8326
- }
8327
- module2.exports.command = escapeCommand;
8328
- module2.exports.argument = escapeArgument;
8329
- }
8330
- });
8331
-
8332
- // node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js
8333
- var require_shebang_regex = __commonJS({
8334
- "node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(exports2, module2) {
8335
- "use strict";
8336
- module2.exports = /^#!(.*)/;
8337
- }
8338
- });
8339
-
8340
- // node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js
8341
- var require_shebang_command = __commonJS({
8342
- "node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(exports2, module2) {
8343
- "use strict";
8344
- var shebangRegex = require_shebang_regex();
8345
- module2.exports = (string = "") => {
8346
- const match = string.match(shebangRegex);
8347
- if (!match) {
8348
- return null;
8349
- }
8350
- const [path3, argument] = match[0].replace(/#! ?/, "").split(" ");
8351
- const binary = path3.split("/").pop();
8352
- if (binary === "env") {
8353
- return argument;
8354
- }
8355
- return argument ? `${binary} ${argument}` : binary;
8356
- };
8357
- }
8358
- });
8359
-
8360
- // node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js
8361
- var require_readShebang = __commonJS({
8362
- "node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js"(exports2, module2) {
8363
- "use strict";
8364
- var fs = require("fs");
8365
- var shebangCommand = require_shebang_command();
8366
- function readShebang(command) {
8367
- const size = 150;
8368
- const buffer = Buffer.alloc(size);
8369
- let fd;
8370
- try {
8371
- fd = fs.openSync(command, "r");
8372
- fs.readSync(fd, buffer, 0, size, 0);
8373
- fs.closeSync(fd);
8374
- } catch (e) {
8375
- }
8376
- return shebangCommand(buffer.toString());
8377
- }
8378
- module2.exports = readShebang;
8379
- }
8380
- });
8381
-
8382
- // node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js
8383
- var require_parse = __commonJS({
8384
- "node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js"(exports2, module2) {
8385
- "use strict";
8386
- var path3 = require("path");
8387
- var resolveCommand = require_resolveCommand();
8388
- var escape = require_escape();
8389
- var readShebang = require_readShebang();
8390
- var isWin = process.platform === "win32";
8391
- var isExecutableRegExp = /\.(?:com|exe)$/i;
8392
- var isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
8393
- function detectShebang(parsed) {
8394
- parsed.file = resolveCommand(parsed);
8395
- const shebang = parsed.file && readShebang(parsed.file);
8396
- if (shebang) {
8397
- parsed.args.unshift(parsed.file);
8398
- parsed.command = shebang;
8399
- return resolveCommand(parsed);
8400
- }
8401
- return parsed.file;
8402
- }
8403
- function parseNonShell(parsed) {
8404
- if (!isWin) {
8405
- return parsed;
8406
- }
8407
- const commandFile = detectShebang(parsed);
8408
- const needsShell = !isExecutableRegExp.test(commandFile);
8409
- if (parsed.options.forceShell || needsShell) {
8410
- const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
8411
- parsed.command = path3.normalize(parsed.command);
8412
- parsed.command = escape.command(parsed.command);
8413
- parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
8414
- const shellCommand = [parsed.command].concat(parsed.args).join(" ");
8415
- parsed.args = ["/d", "/s", "/c", `"${shellCommand}"`];
8416
- parsed.command = process.env.comspec || "cmd.exe";
8417
- parsed.options.windowsVerbatimArguments = true;
8418
- }
8419
- return parsed;
8420
- }
8421
- function parse(command, args, options) {
8422
- if (args && !Array.isArray(args)) {
8423
- options = args;
8424
- args = null;
8425
- }
8426
- args = args ? args.slice(0) : [];
8427
- options = Object.assign({}, options);
8428
- const parsed = {
8429
- command,
8430
- args,
8431
- options,
8432
- file: void 0,
8433
- original: {
8434
- command,
8435
- args
8436
- }
8437
- };
8438
- return options.shell ? parsed : parseNonShell(parsed);
8439
- }
8440
- module2.exports = parse;
8441
- }
8442
- });
8443
-
8444
- // node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js
8445
- var require_enoent = __commonJS({
8446
- "node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js"(exports2, module2) {
8447
- "use strict";
8448
- var isWin = process.platform === "win32";
8449
- function notFoundError(original, syscall) {
8450
- return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
8451
- code: "ENOENT",
8452
- errno: "ENOENT",
8453
- syscall: `${syscall} ${original.command}`,
8454
- path: original.command,
8455
- spawnargs: original.args
8456
- });
8457
- }
8458
- function hookChildProcess(cp, parsed) {
8459
- if (!isWin) {
8460
- return;
8461
- }
8462
- const originalEmit = cp.emit;
8463
- cp.emit = function(name, arg1) {
8464
- if (name === "exit") {
8465
- const err = verifyENOENT(arg1, parsed, "spawn");
8466
- if (err) {
8467
- return originalEmit.call(cp, "error", err);
8468
- }
8469
- }
8470
- return originalEmit.apply(cp, arguments);
8471
- };
8472
- }
8473
- function verifyENOENT(status, parsed) {
8474
- if (isWin && status === 1 && !parsed.file) {
8475
- return notFoundError(parsed.original, "spawn");
8476
- }
8477
- return null;
8478
- }
8479
- function verifyENOENTSync(status, parsed) {
8480
- if (isWin && status === 1 && !parsed.file) {
8481
- return notFoundError(parsed.original, "spawnSync");
8482
- }
8483
- return null;
8484
- }
8485
- module2.exports = {
8486
- hookChildProcess,
8487
- verifyENOENT,
8488
- verifyENOENTSync,
8489
- notFoundError
8490
- };
8491
- }
8492
- });
8493
-
8494
- // node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js
8495
- var require_cross_spawn = __commonJS({
8496
- "node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js"(exports2, module2) {
8497
- "use strict";
8498
- var cp = require("child_process");
8499
- var parse = require_parse();
8500
- var enoent = require_enoent();
8501
- function spawn(command, args, options) {
8502
- const parsed = parse(command, args, options);
8503
- const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
8504
- enoent.hookChildProcess(spawned, parsed);
8505
- return spawned;
8506
- }
8507
- function spawnSync(command, args, options) {
8508
- const parsed = parse(command, args, options);
8509
- const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
8510
- result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
8511
- return result;
8512
- }
8513
- module2.exports = spawn;
8514
- module2.exports.spawn = spawn;
8515
- module2.exports.sync = spawnSync;
8516
- module2.exports._parse = parse;
8517
- module2.exports._enoent = enoent;
8518
- }
8519
- });
8520
-
8521
- // node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js
8522
- var require_merge_stream = __commonJS({
8523
- "node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js"(exports2, module2) {
8524
- "use strict";
8525
- var { PassThrough } = require("stream");
8526
- module2.exports = function() {
8527
- var sources = [];
8528
- var output = new PassThrough({ objectMode: true });
8529
- output.setMaxListeners(0);
8530
- output.add = add;
8531
- output.isEmpty = isEmpty;
8532
- output.on("unpipe", remove);
8533
- Array.prototype.slice.call(arguments).forEach(add);
8534
- return output;
8535
- function add(source) {
8536
- if (Array.isArray(source)) {
8537
- source.forEach(add);
8538
- return this;
8539
- }
8540
- sources.push(source);
8541
- source.once("end", remove.bind(null, source));
8542
- source.once("error", output.emit.bind(output, "error"));
8543
- source.pipe(output, { end: false });
8544
- return this;
8545
- }
8546
- function isEmpty() {
8547
- return sources.length == 0;
8548
- }
8549
- function remove(source) {
8550
- sources = sources.filter(function(it) {
8551
- return it !== source;
8552
- });
8553
- if (!sources.length && output.readable) {
8554
- output.end();
8555
- }
8556
- }
8557
- };
8558
- }
8559
- });
8560
-
8561
8024
  // node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js
8562
8025
  var require_universalify = __commonJS({
8563
8026
  "node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js"(exports2) {
@@ -8591,7 +8054,7 @@ var require_universalify = __commonJS({
8591
8054
  // node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js
8592
8055
  var require_polyfills = __commonJS({
8593
8056
  "node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js"(exports2, module2) {
8594
- var constants3 = require("constants");
8057
+ var constants = require("constants");
8595
8058
  var origCwd = process.cwd;
8596
8059
  var cwd = null;
8597
8060
  var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
@@ -8616,7 +8079,7 @@ var require_polyfills = __commonJS({
8616
8079
  var chdir;
8617
8080
  module2.exports = patch;
8618
8081
  function patch(fs) {
8619
- if (constants3.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
8082
+ if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
8620
8083
  patchLchmod(fs);
8621
8084
  }
8622
8085
  if (!fs.lutimes) {
@@ -8641,7 +8104,7 @@ var require_polyfills = __commonJS({
8641
8104
  fs.fstatSync = statFixSync(fs.fstatSync);
8642
8105
  fs.lstatSync = statFixSync(fs.lstatSync);
8643
8106
  if (fs.chmod && !fs.lchmod) {
8644
- fs.lchmod = function(path3, mode, cb) {
8107
+ fs.lchmod = function(path, mode, cb) {
8645
8108
  if (cb)
8646
8109
  process.nextTick(cb);
8647
8110
  };
@@ -8649,7 +8112,7 @@ var require_polyfills = __commonJS({
8649
8112
  };
8650
8113
  }
8651
8114
  if (fs.chown && !fs.lchown) {
8652
- fs.lchown = function(path3, uid, gid, cb) {
8115
+ fs.lchown = function(path, uid, gid, cb) {
8653
8116
  if (cb)
8654
8117
  process.nextTick(cb);
8655
8118
  };
@@ -8720,10 +8183,10 @@ var require_polyfills = __commonJS({
8720
8183
  };
8721
8184
  }(fs.readSync);
8722
8185
  function patchLchmod(fs2) {
8723
- fs2.lchmod = function(path3, mode, callback) {
8186
+ fs2.lchmod = function(path, mode, callback) {
8724
8187
  fs2.open(
8725
- path3,
8726
- constants3.O_WRONLY | constants3.O_SYMLINK,
8188
+ path,
8189
+ constants.O_WRONLY | constants.O_SYMLINK,
8727
8190
  mode,
8728
8191
  function(err, fd) {
8729
8192
  if (err) {
@@ -8740,8 +8203,8 @@ var require_polyfills = __commonJS({
8740
8203
  }
8741
8204
  );
8742
8205
  };
8743
- fs2.lchmodSync = function(path3, mode) {
8744
- var fd = fs2.openSync(path3, constants3.O_WRONLY | constants3.O_SYMLINK, mode);
8206
+ fs2.lchmodSync = function(path, mode) {
8207
+ var fd = fs2.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode);
8745
8208
  var threw = true;
8746
8209
  var ret;
8747
8210
  try {
@@ -8761,9 +8224,9 @@ var require_polyfills = __commonJS({
8761
8224
  };
8762
8225
  }
8763
8226
  function patchLutimes(fs2) {
8764
- if (constants3.hasOwnProperty("O_SYMLINK") && fs2.futimes) {
8765
- fs2.lutimes = function(path3, at, mt, cb) {
8766
- fs2.open(path3, constants3.O_SYMLINK, function(er, fd) {
8227
+ if (constants.hasOwnProperty("O_SYMLINK") && fs2.futimes) {
8228
+ fs2.lutimes = function(path, at, mt, cb) {
8229
+ fs2.open(path, constants.O_SYMLINK, function(er, fd) {
8767
8230
  if (er) {
8768
8231
  if (cb)
8769
8232
  cb(er);
@@ -8777,8 +8240,8 @@ var require_polyfills = __commonJS({
8777
8240
  });
8778
8241
  });
8779
8242
  };
8780
- fs2.lutimesSync = function(path3, at, mt) {
8781
- var fd = fs2.openSync(path3, constants3.O_SYMLINK);
8243
+ fs2.lutimesSync = function(path, at, mt) {
8244
+ var fd = fs2.openSync(path, constants.O_SYMLINK);
8782
8245
  var ret;
8783
8246
  var threw = true;
8784
8247
  try {
@@ -8914,12 +8377,12 @@ var require_legacy_streams = __commonJS({
8914
8377
  ReadStream,
8915
8378
  WriteStream
8916
8379
  };
8917
- function ReadStream(path3, options) {
8380
+ function ReadStream(path, options) {
8918
8381
  if (!(this instanceof ReadStream))
8919
- return new ReadStream(path3, options);
8382
+ return new ReadStream(path, options);
8920
8383
  Stream.call(this);
8921
8384
  var self = this;
8922
- this.path = path3;
8385
+ this.path = path;
8923
8386
  this.fd = null;
8924
8387
  this.readable = true;
8925
8388
  this.paused = false;
@@ -8965,11 +8428,11 @@ var require_legacy_streams = __commonJS({
8965
8428
  self._read();
8966
8429
  });
8967
8430
  }
8968
- function WriteStream(path3, options) {
8431
+ function WriteStream(path, options) {
8969
8432
  if (!(this instanceof WriteStream))
8970
- return new WriteStream(path3, options);
8433
+ return new WriteStream(path, options);
8971
8434
  Stream.call(this);
8972
- this.path = path3;
8435
+ this.path = path;
8973
8436
  this.fd = null;
8974
8437
  this.writable = true;
8975
8438
  this.flags = "w";
@@ -9043,7 +8506,7 @@ var require_graceful_fs = __commonJS({
9043
8506
  gracefulQueue = "___graceful-fs.queue";
9044
8507
  previousSymbol = "___graceful-fs.previous";
9045
8508
  }
9046
- function noop2() {
8509
+ function noop() {
9047
8510
  }
9048
8511
  function publishQueue(context, queue2) {
9049
8512
  Object.defineProperty(context, gracefulQueue, {
@@ -9052,7 +8515,7 @@ var require_graceful_fs = __commonJS({
9052
8515
  }
9053
8516
  });
9054
8517
  }
9055
- var debug = noop2;
8518
+ var debug = noop;
9056
8519
  if (util2.debuglog)
9057
8520
  debug = util2.debuglog("gfs4");
9058
8521
  else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
@@ -9108,18 +8571,18 @@ var require_graceful_fs = __commonJS({
9108
8571
  function patch(fs2) {
9109
8572
  polyfills(fs2);
9110
8573
  fs2.gracefulify = patch;
9111
- fs2.createReadStream = createReadStream2;
9112
- fs2.createWriteStream = createWriteStream2;
8574
+ fs2.createReadStream = createReadStream;
8575
+ fs2.createWriteStream = createWriteStream;
9113
8576
  var fs$readFile = fs2.readFile;
9114
8577
  fs2.readFile = readFile;
9115
- function readFile(path3, options, cb) {
8578
+ function readFile(path, options, cb) {
9116
8579
  if (typeof options === "function")
9117
8580
  cb = options, options = null;
9118
- return go$readFile(path3, options, cb);
9119
- function go$readFile(path4, options2, cb2, startTime) {
9120
- return fs$readFile(path4, options2, function(err) {
8581
+ return go$readFile(path, options, cb);
8582
+ function go$readFile(path2, options2, cb2, startTime) {
8583
+ return fs$readFile(path2, options2, function(err) {
9121
8584
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
9122
- enqueue([go$readFile, [path4, options2, cb2], err, startTime || Date.now(), Date.now()]);
8585
+ enqueue([go$readFile, [path2, options2, cb2], err, startTime || Date.now(), Date.now()]);
9123
8586
  else {
9124
8587
  if (typeof cb2 === "function")
9125
8588
  cb2.apply(this, arguments);
@@ -9129,14 +8592,14 @@ var require_graceful_fs = __commonJS({
9129
8592
  }
9130
8593
  var fs$writeFile = fs2.writeFile;
9131
8594
  fs2.writeFile = writeFile;
9132
- function writeFile(path3, data, options, cb) {
8595
+ function writeFile(path, data, options, cb) {
9133
8596
  if (typeof options === "function")
9134
8597
  cb = options, options = null;
9135
- return go$writeFile(path3, data, options, cb);
9136
- function go$writeFile(path4, data2, options2, cb2, startTime) {
9137
- return fs$writeFile(path4, data2, options2, function(err) {
8598
+ return go$writeFile(path, data, options, cb);
8599
+ function go$writeFile(path2, data2, options2, cb2, startTime) {
8600
+ return fs$writeFile(path2, data2, options2, function(err) {
9138
8601
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
9139
- enqueue([go$writeFile, [path4, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
8602
+ enqueue([go$writeFile, [path2, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
9140
8603
  else {
9141
8604
  if (typeof cb2 === "function")
9142
8605
  cb2.apply(this, arguments);
@@ -9147,14 +8610,14 @@ var require_graceful_fs = __commonJS({
9147
8610
  var fs$appendFile = fs2.appendFile;
9148
8611
  if (fs$appendFile)
9149
8612
  fs2.appendFile = appendFile;
9150
- function appendFile(path3, data, options, cb) {
8613
+ function appendFile(path, data, options, cb) {
9151
8614
  if (typeof options === "function")
9152
8615
  cb = options, options = null;
9153
- return go$appendFile(path3, data, options, cb);
9154
- function go$appendFile(path4, data2, options2, cb2, startTime) {
9155
- return fs$appendFile(path4, data2, options2, function(err) {
8616
+ return go$appendFile(path, data, options, cb);
8617
+ function go$appendFile(path2, data2, options2, cb2, startTime) {
8618
+ return fs$appendFile(path2, data2, options2, function(err) {
9156
8619
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
9157
- enqueue([go$appendFile, [path4, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
8620
+ enqueue([go$appendFile, [path2, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
9158
8621
  else {
9159
8622
  if (typeof cb2 === "function")
9160
8623
  cb2.apply(this, arguments);
@@ -9185,31 +8648,31 @@ var require_graceful_fs = __commonJS({
9185
8648
  var fs$readdir = fs2.readdir;
9186
8649
  fs2.readdir = readdir;
9187
8650
  var noReaddirOptionVersions = /^v[0-5]\./;
9188
- function readdir(path3, options, cb) {
8651
+ function readdir(path, options, cb) {
9189
8652
  if (typeof options === "function")
9190
8653
  cb = options, options = null;
9191
- var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path4, options2, cb2, startTime) {
9192
- return fs$readdir(path4, fs$readdirCallback(
9193
- path4,
8654
+ var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path2, options2, cb2, startTime) {
8655
+ return fs$readdir(path2, fs$readdirCallback(
8656
+ path2,
9194
8657
  options2,
9195
8658
  cb2,
9196
8659
  startTime
9197
8660
  ));
9198
- } : function go$readdir2(path4, options2, cb2, startTime) {
9199
- return fs$readdir(path4, options2, fs$readdirCallback(
9200
- path4,
8661
+ } : function go$readdir2(path2, options2, cb2, startTime) {
8662
+ return fs$readdir(path2, options2, fs$readdirCallback(
8663
+ path2,
9201
8664
  options2,
9202
8665
  cb2,
9203
8666
  startTime
9204
8667
  ));
9205
8668
  };
9206
- return go$readdir(path3, options, cb);
9207
- function fs$readdirCallback(path4, options2, cb2, startTime) {
8669
+ return go$readdir(path, options, cb);
8670
+ function fs$readdirCallback(path2, options2, cb2, startTime) {
9208
8671
  return function(err, files) {
9209
8672
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
9210
8673
  enqueue([
9211
8674
  go$readdir,
9212
- [path4, options2, cb2],
8675
+ [path2, options2, cb2],
9213
8676
  err,
9214
8677
  startTime || Date.now(),
9215
8678
  Date.now()
@@ -9280,7 +8743,7 @@ var require_graceful_fs = __commonJS({
9280
8743
  enumerable: true,
9281
8744
  configurable: true
9282
8745
  });
9283
- function ReadStream(path3, options) {
8746
+ function ReadStream(path, options) {
9284
8747
  if (this instanceof ReadStream)
9285
8748
  return fs$ReadStream.apply(this, arguments), this;
9286
8749
  else
@@ -9300,7 +8763,7 @@ var require_graceful_fs = __commonJS({
9300
8763
  }
9301
8764
  });
9302
8765
  }
9303
- function WriteStream(path3, options) {
8766
+ function WriteStream(path, options) {
9304
8767
  if (this instanceof WriteStream)
9305
8768
  return fs$WriteStream.apply(this, arguments), this;
9306
8769
  else
@@ -9318,22 +8781,22 @@ var require_graceful_fs = __commonJS({
9318
8781
  }
9319
8782
  });
9320
8783
  }
9321
- function createReadStream2(path3, options) {
9322
- return new fs2.ReadStream(path3, options);
8784
+ function createReadStream(path, options) {
8785
+ return new fs2.ReadStream(path, options);
9323
8786
  }
9324
- function createWriteStream2(path3, options) {
9325
- return new fs2.WriteStream(path3, options);
8787
+ function createWriteStream(path, options) {
8788
+ return new fs2.WriteStream(path, options);
9326
8789
  }
9327
8790
  var fs$open = fs2.open;
9328
8791
  fs2.open = open;
9329
- function open(path3, flags, mode, cb) {
8792
+ function open(path, flags, mode, cb) {
9330
8793
  if (typeof mode === "function")
9331
8794
  cb = mode, mode = null;
9332
- return go$open(path3, flags, mode, cb);
9333
- function go$open(path4, flags2, mode2, cb2, startTime) {
9334
- return fs$open(path4, flags2, mode2, function(err, fd) {
8795
+ return go$open(path, flags, mode, cb);
8796
+ function go$open(path2, flags2, mode2, cb2, startTime) {
8797
+ return fs$open(path2, flags2, mode2, function(err, fd) {
9335
8798
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
9336
- enqueue([go$open, [path4, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
8799
+ enqueue([go$open, [path2, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
9337
8800
  else {
9338
8801
  if (typeof cb2 === "function")
9339
8802
  cb2.apply(this, arguments);
@@ -9516,10 +8979,10 @@ var require_fs = __commonJS({
9516
8979
  var require_utils = __commonJS({
9517
8980
  "node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/mkdirs/utils.js"(exports2, module2) {
9518
8981
  "use strict";
9519
- var path3 = require("path");
8982
+ var path = require("path");
9520
8983
  module2.exports.checkPath = function checkPath(pth) {
9521
8984
  if (process.platform === "win32") {
9522
- const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path3.parse(pth).root, ""));
8985
+ const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path.parse(pth).root, ""));
9523
8986
  if (pathHasInvalidWinCharacters) {
9524
8987
  const error = new Error(`Path contains invalid characters: ${pth}`);
9525
8988
  error.code = "EINVAL";
@@ -9584,8 +9047,8 @@ var require_path_exists = __commonJS({
9584
9047
  "use strict";
9585
9048
  var u = require_universalify().fromPromise;
9586
9049
  var fs = require_fs();
9587
- function pathExists(path3) {
9588
- return fs.access(path3).then(() => true).catch(() => false);
9050
+ function pathExists(path) {
9051
+ return fs.access(path).then(() => true).catch(() => false);
9589
9052
  }
9590
9053
  module2.exports = {
9591
9054
  pathExists: u(pathExists),
@@ -9600,8 +9063,8 @@ var require_utimes = __commonJS({
9600
9063
  "use strict";
9601
9064
  var fs = require_fs();
9602
9065
  var u = require_universalify().fromPromise;
9603
- async function utimesMillis(path3, atime, mtime) {
9604
- const fd = await fs.open(path3, "r+");
9066
+ async function utimesMillis(path, atime, mtime) {
9067
+ const fd = await fs.open(path, "r+");
9605
9068
  let closeErr = null;
9606
9069
  try {
9607
9070
  await fs.futimes(fd, atime, mtime);
@@ -9616,8 +9079,8 @@ var require_utimes = __commonJS({
9616
9079
  throw closeErr;
9617
9080
  }
9618
9081
  }
9619
- function utimesMillisSync(path3, atime, mtime) {
9620
- const fd = fs.openSync(path3, "r+");
9082
+ function utimesMillisSync(path, atime, mtime) {
9083
+ const fd = fs.openSync(path, "r+");
9621
9084
  fs.futimesSync(fd, atime, mtime);
9622
9085
  return fs.closeSync(fd);
9623
9086
  }
@@ -9633,7 +9096,7 @@ var require_stat = __commonJS({
9633
9096
  "node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/util/stat.js"(exports2, module2) {
9634
9097
  "use strict";
9635
9098
  var fs = require_fs();
9636
- var path3 = require("path");
9099
+ var path = require("path");
9637
9100
  var u = require_universalify().fromPromise;
9638
9101
  function getStats(src, dest, opts) {
9639
9102
  const statFunc = opts.dereference ? (file) => fs.stat(file, { bigint: true }) : (file) => fs.lstat(file, { bigint: true });
@@ -9663,8 +9126,8 @@ var require_stat = __commonJS({
9663
9126
  const { srcStat, destStat } = await getStats(src, dest, opts);
9664
9127
  if (destStat) {
9665
9128
  if (areIdentical(srcStat, destStat)) {
9666
- const srcBaseName = path3.basename(src);
9667
- const destBaseName = path3.basename(dest);
9129
+ const srcBaseName = path.basename(src);
9130
+ const destBaseName = path.basename(dest);
9668
9131
  if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
9669
9132
  return { srcStat, destStat, isChangingCase: true };
9670
9133
  }
@@ -9686,8 +9149,8 @@ var require_stat = __commonJS({
9686
9149
  const { srcStat, destStat } = getStatsSync(src, dest, opts);
9687
9150
  if (destStat) {
9688
9151
  if (areIdentical(srcStat, destStat)) {
9689
- const srcBaseName = path3.basename(src);
9690
- const destBaseName = path3.basename(dest);
9152
+ const srcBaseName = path.basename(src);
9153
+ const destBaseName = path.basename(dest);
9691
9154
  if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
9692
9155
  return { srcStat, destStat, isChangingCase: true };
9693
9156
  }
@@ -9706,9 +9169,9 @@ var require_stat = __commonJS({
9706
9169
  return { srcStat, destStat };
9707
9170
  }
9708
9171
  async function checkParentPaths(src, srcStat, dest, funcName) {
9709
- const srcParent = path3.resolve(path3.dirname(src));
9710
- const destParent = path3.resolve(path3.dirname(dest));
9711
- if (destParent === srcParent || destParent === path3.parse(destParent).root)
9172
+ const srcParent = path.resolve(path.dirname(src));
9173
+ const destParent = path.resolve(path.dirname(dest));
9174
+ if (destParent === srcParent || destParent === path.parse(destParent).root)
9712
9175
  return;
9713
9176
  let destStat;
9714
9177
  try {
@@ -9724,9 +9187,9 @@ var require_stat = __commonJS({
9724
9187
  return checkParentPaths(src, srcStat, destParent, funcName);
9725
9188
  }
9726
9189
  function checkParentPathsSync(src, srcStat, dest, funcName) {
9727
- const srcParent = path3.resolve(path3.dirname(src));
9728
- const destParent = path3.resolve(path3.dirname(dest));
9729
- if (destParent === srcParent || destParent === path3.parse(destParent).root)
9190
+ const srcParent = path.resolve(path.dirname(src));
9191
+ const destParent = path.resolve(path.dirname(dest));
9192
+ if (destParent === srcParent || destParent === path.parse(destParent).root)
9730
9193
  return;
9731
9194
  let destStat;
9732
9195
  try {
@@ -9745,8 +9208,8 @@ var require_stat = __commonJS({
9745
9208
  return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
9746
9209
  }
9747
9210
  function isSrcSubdir(src, dest) {
9748
- const srcArr = path3.resolve(src).split(path3.sep).filter((i) => i);
9749
- const destArr = path3.resolve(dest).split(path3.sep).filter((i) => i);
9211
+ const srcArr = path.resolve(src).split(path.sep).filter((i) => i);
9212
+ const destArr = path.resolve(dest).split(path.sep).filter((i) => i);
9750
9213
  return srcArr.every((cur, i) => destArr[i] === cur);
9751
9214
  }
9752
9215
  function errMsg(src, dest, funcName) {
@@ -9771,7 +9234,7 @@ var require_copy = __commonJS({
9771
9234
  "node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/copy/copy.js"(exports2, module2) {
9772
9235
  "use strict";
9773
9236
  var fs = require_fs();
9774
- var path3 = require("path");
9237
+ var path = require("path");
9775
9238
  var { mkdirs } = require_mkdirs();
9776
9239
  var { pathExists } = require_path_exists();
9777
9240
  var { utimesMillis } = require_utimes();
@@ -9794,7 +9257,7 @@ var require_copy = __commonJS({
9794
9257
  const include = await runFilter(src, dest, opts);
9795
9258
  if (!include)
9796
9259
  return;
9797
- const destParent = path3.dirname(dest);
9260
+ const destParent = path.dirname(dest);
9798
9261
  const dirExists = await pathExists(destParent);
9799
9262
  if (!dirExists) {
9800
9263
  await mkdirs(destParent);
@@ -9855,8 +9318,8 @@ var require_copy = __commonJS({
9855
9318
  }
9856
9319
  const items = await fs.readdir(src);
9857
9320
  await Promise.all(items.map(async (item) => {
9858
- const srcItem = path3.join(src, item);
9859
- const destItem = path3.join(dest, item);
9321
+ const srcItem = path.join(src, item);
9322
+ const destItem = path.join(dest, item);
9860
9323
  const include = await runFilter(srcItem, destItem, opts);
9861
9324
  if (!include)
9862
9325
  return;
@@ -9870,7 +9333,7 @@ var require_copy = __commonJS({
9870
9333
  async function onLink(destStat, src, dest, opts) {
9871
9334
  let resolvedSrc = await fs.readlink(src);
9872
9335
  if (opts.dereference) {
9873
- resolvedSrc = path3.resolve(process.cwd(), resolvedSrc);
9336
+ resolvedSrc = path.resolve(process.cwd(), resolvedSrc);
9874
9337
  }
9875
9338
  if (!destStat) {
9876
9339
  return fs.symlink(resolvedSrc, dest);
@@ -9884,7 +9347,7 @@ var require_copy = __commonJS({
9884
9347
  throw e;
9885
9348
  }
9886
9349
  if (opts.dereference) {
9887
- resolvedDest = path3.resolve(process.cwd(), resolvedDest);
9350
+ resolvedDest = path.resolve(process.cwd(), resolvedDest);
9888
9351
  }
9889
9352
  if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
9890
9353
  throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
@@ -9904,7 +9367,7 @@ var require_copy_sync = __commonJS({
9904
9367
  "node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/copy/copy-sync.js"(exports2, module2) {
9905
9368
  "use strict";
9906
9369
  var fs = require_graceful_fs();
9907
- var path3 = require("path");
9370
+ var path = require("path");
9908
9371
  var mkdirsSync = require_mkdirs().mkdirsSync;
9909
9372
  var utimesMillisSync = require_utimes().utimesMillisSync;
9910
9373
  var stat = require_stat();
@@ -9926,7 +9389,7 @@ var require_copy_sync = __commonJS({
9926
9389
  stat.checkParentPathsSync(src, srcStat, dest, "copy");
9927
9390
  if (opts.filter && !opts.filter(src, dest))
9928
9391
  return;
9929
- const destParent = path3.dirname(dest);
9392
+ const destParent = path.dirname(dest);
9930
9393
  if (!fs.existsSync(destParent))
9931
9394
  mkdirsSync(destParent);
9932
9395
  return getStats(destStat, src, dest, opts);
@@ -9997,8 +9460,8 @@ var require_copy_sync = __commonJS({
9997
9460
  fs.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
9998
9461
  }
9999
9462
  function copyDirItem(item, src, dest, opts) {
10000
- const srcItem = path3.join(src, item);
10001
- const destItem = path3.join(dest, item);
9463
+ const srcItem = path.join(src, item);
9464
+ const destItem = path.join(dest, item);
10002
9465
  if (opts.filter && !opts.filter(srcItem, destItem))
10003
9466
  return;
10004
9467
  const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy", opts);
@@ -10007,7 +9470,7 @@ var require_copy_sync = __commonJS({
10007
9470
  function onLink(destStat, src, dest, opts) {
10008
9471
  let resolvedSrc = fs.readlinkSync(src);
10009
9472
  if (opts.dereference) {
10010
- resolvedSrc = path3.resolve(process.cwd(), resolvedSrc);
9473
+ resolvedSrc = path.resolve(process.cwd(), resolvedSrc);
10011
9474
  }
10012
9475
  if (!destStat) {
10013
9476
  return fs.symlinkSync(resolvedSrc, dest);
@@ -10021,7 +9484,7 @@ var require_copy_sync = __commonJS({
10021
9484
  throw err;
10022
9485
  }
10023
9486
  if (opts.dereference) {
10024
- resolvedDest = path3.resolve(process.cwd(), resolvedDest);
9487
+ resolvedDest = path.resolve(process.cwd(), resolvedDest);
10025
9488
  }
10026
9489
  if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
10027
9490
  throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
@@ -10058,11 +9521,11 @@ var require_remove = __commonJS({
10058
9521
  "use strict";
10059
9522
  var fs = require_graceful_fs();
10060
9523
  var u = require_universalify().fromCallback;
10061
- function remove(path3, callback) {
10062
- fs.rm(path3, { recursive: true, force: true }, callback);
9524
+ function remove(path, callback) {
9525
+ fs.rm(path, { recursive: true, force: true }, callback);
10063
9526
  }
10064
- function removeSync2(path3) {
10065
- fs.rmSync(path3, { recursive: true, force: true });
9527
+ function removeSync2(path) {
9528
+ fs.rmSync(path, { recursive: true, force: true });
10066
9529
  }
10067
9530
  module2.exports = {
10068
9531
  remove: u(remove),
@@ -10077,7 +9540,7 @@ var require_empty = __commonJS({
10077
9540
  "use strict";
10078
9541
  var u = require_universalify().fromPromise;
10079
9542
  var fs = require_fs();
10080
- var path3 = require("path");
9543
+ var path = require("path");
10081
9544
  var mkdir = require_mkdirs();
10082
9545
  var remove = require_remove();
10083
9546
  var emptyDir = u(async function emptyDir2(dir) {
@@ -10087,7 +9550,7 @@ var require_empty = __commonJS({
10087
9550
  } catch {
10088
9551
  return mkdir.mkdirs(dir);
10089
9552
  }
10090
- return Promise.all(items.map((item) => remove.remove(path3.join(dir, item))));
9553
+ return Promise.all(items.map((item) => remove.remove(path.join(dir, item))));
10091
9554
  });
10092
9555
  function emptyDirSync(dir) {
10093
9556
  let items;
@@ -10097,7 +9560,7 @@ var require_empty = __commonJS({
10097
9560
  return mkdir.mkdirsSync(dir);
10098
9561
  }
10099
9562
  items.forEach((item) => {
10100
- item = path3.join(dir, item);
9563
+ item = path.join(dir, item);
10101
9564
  remove.removeSync(item);
10102
9565
  });
10103
9566
  }
@@ -10115,7 +9578,7 @@ var require_file = __commonJS({
10115
9578
  "node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/file.js"(exports2, module2) {
10116
9579
  "use strict";
10117
9580
  var u = require_universalify().fromPromise;
10118
- var path3 = require("path");
9581
+ var path = require("path");
10119
9582
  var fs = require_fs();
10120
9583
  var mkdir = require_mkdirs();
10121
9584
  async function createFile(file) {
@@ -10126,7 +9589,7 @@ var require_file = __commonJS({
10126
9589
  }
10127
9590
  if (stats && stats.isFile())
10128
9591
  return;
10129
- const dir = path3.dirname(file);
9592
+ const dir = path.dirname(file);
10130
9593
  let dirStats = null;
10131
9594
  try {
10132
9595
  dirStats = await fs.stat(dir);
@@ -10153,7 +9616,7 @@ var require_file = __commonJS({
10153
9616
  }
10154
9617
  if (stats && stats.isFile())
10155
9618
  return;
10156
- const dir = path3.dirname(file);
9619
+ const dir = path.dirname(file);
10157
9620
  try {
10158
9621
  if (!fs.statSync(dir).isDirectory()) {
10159
9622
  fs.readdirSync(dir);
@@ -10178,7 +9641,7 @@ var require_link = __commonJS({
10178
9641
  "node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/link.js"(exports2, module2) {
10179
9642
  "use strict";
10180
9643
  var u = require_universalify().fromPromise;
10181
- var path3 = require("path");
9644
+ var path = require("path");
10182
9645
  var fs = require_fs();
10183
9646
  var mkdir = require_mkdirs();
10184
9647
  var { pathExists } = require_path_exists();
@@ -10198,7 +9661,7 @@ var require_link = __commonJS({
10198
9661
  }
10199
9662
  if (dstStat && areIdentical(srcStat, dstStat))
10200
9663
  return;
10201
- const dir = path3.dirname(dstpath);
9664
+ const dir = path.dirname(dstpath);
10202
9665
  const dirExists = await pathExists(dir);
10203
9666
  if (!dirExists) {
10204
9667
  await mkdir.mkdirs(dir);
@@ -10219,7 +9682,7 @@ var require_link = __commonJS({
10219
9682
  err.message = err.message.replace("lstat", "ensureLink");
10220
9683
  throw err;
10221
9684
  }
10222
- const dir = path3.dirname(dstpath);
9685
+ const dir = path.dirname(dstpath);
10223
9686
  const dirExists = fs.existsSync(dir);
10224
9687
  if (dirExists)
10225
9688
  return fs.linkSync(srcpath, dstpath);
@@ -10237,12 +9700,12 @@ var require_link = __commonJS({
10237
9700
  var require_symlink_paths = __commonJS({
10238
9701
  "node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports2, module2) {
10239
9702
  "use strict";
10240
- var path3 = require("path");
9703
+ var path = require("path");
10241
9704
  var fs = require_fs();
10242
9705
  var { pathExists } = require_path_exists();
10243
9706
  var u = require_universalify().fromPromise;
10244
9707
  async function symlinkPaths(srcpath, dstpath) {
10245
- if (path3.isAbsolute(srcpath)) {
9708
+ if (path.isAbsolute(srcpath)) {
10246
9709
  try {
10247
9710
  await fs.lstat(srcpath);
10248
9711
  } catch (err) {
@@ -10254,8 +9717,8 @@ var require_symlink_paths = __commonJS({
10254
9717
  toDst: srcpath
10255
9718
  };
10256
9719
  }
10257
- const dstdir = path3.dirname(dstpath);
10258
- const relativeToDst = path3.join(dstdir, srcpath);
9720
+ const dstdir = path.dirname(dstpath);
9721
+ const relativeToDst = path.join(dstdir, srcpath);
10259
9722
  const exists = await pathExists(relativeToDst);
10260
9723
  if (exists) {
10261
9724
  return {
@@ -10271,11 +9734,11 @@ var require_symlink_paths = __commonJS({
10271
9734
  }
10272
9735
  return {
10273
9736
  toCwd: srcpath,
10274
- toDst: path3.relative(dstdir, srcpath)
9737
+ toDst: path.relative(dstdir, srcpath)
10275
9738
  };
10276
9739
  }
10277
9740
  function symlinkPathsSync(srcpath, dstpath) {
10278
- if (path3.isAbsolute(srcpath)) {
9741
+ if (path.isAbsolute(srcpath)) {
10279
9742
  const exists2 = fs.existsSync(srcpath);
10280
9743
  if (!exists2)
10281
9744
  throw new Error("absolute srcpath does not exist");
@@ -10284,8 +9747,8 @@ var require_symlink_paths = __commonJS({
10284
9747
  toDst: srcpath
10285
9748
  };
10286
9749
  }
10287
- const dstdir = path3.dirname(dstpath);
10288
- const relativeToDst = path3.join(dstdir, srcpath);
9750
+ const dstdir = path.dirname(dstpath);
9751
+ const relativeToDst = path.join(dstdir, srcpath);
10289
9752
  const exists = fs.existsSync(relativeToDst);
10290
9753
  if (exists) {
10291
9754
  return {
@@ -10298,7 +9761,7 @@ var require_symlink_paths = __commonJS({
10298
9761
  throw new Error("relative srcpath does not exist");
10299
9762
  return {
10300
9763
  toCwd: srcpath,
10301
- toDst: path3.relative(dstdir, srcpath)
9764
+ toDst: path.relative(dstdir, srcpath)
10302
9765
  };
10303
9766
  }
10304
9767
  module2.exports = {
@@ -10348,7 +9811,7 @@ var require_symlink = __commonJS({
10348
9811
  "node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/symlink.js"(exports2, module2) {
10349
9812
  "use strict";
10350
9813
  var u = require_universalify().fromPromise;
10351
- var path3 = require("path");
9814
+ var path = require("path");
10352
9815
  var fs = require_fs();
10353
9816
  var { mkdirs, mkdirsSync } = require_mkdirs();
10354
9817
  var { symlinkPaths, symlinkPathsSync } = require_symlink_paths();
@@ -10372,7 +9835,7 @@ var require_symlink = __commonJS({
10372
9835
  const relative = await symlinkPaths(srcpath, dstpath);
10373
9836
  srcpath = relative.toDst;
10374
9837
  const toType = await symlinkType(relative.toCwd, type);
10375
- const dir = path3.dirname(dstpath);
9838
+ const dir = path.dirname(dstpath);
10376
9839
  if (!await pathExists(dir)) {
10377
9840
  await mkdirs(dir);
10378
9841
  }
@@ -10393,7 +9856,7 @@ var require_symlink = __commonJS({
10393
9856
  const relative = symlinkPathsSync(srcpath, dstpath);
10394
9857
  srcpath = relative.toDst;
10395
9858
  type = symlinkTypeSync(relative.toCwd, type);
10396
- const dir = path3.dirname(dstpath);
9859
+ const dir = path.dirname(dstpath);
10397
9860
  const exists = fs.existsSync(dir);
10398
9861
  if (exists)
10399
9862
  return fs.symlinkSync(srcpath, dstpath, type);
@@ -10484,7 +9947,7 @@ var require_jsonfile = __commonJS({
10484
9947
  return obj;
10485
9948
  }
10486
9949
  var readFile = universalify.fromPromise(_readFile);
10487
- function readFileSync3(file, options = {}) {
9950
+ function readFileSync2(file, options = {}) {
10488
9951
  if (typeof options === "string") {
10489
9952
  options = { encoding: options };
10490
9953
  }
@@ -10516,7 +9979,7 @@ var require_jsonfile = __commonJS({
10516
9979
  }
10517
9980
  var jsonfile = {
10518
9981
  readFile,
10519
- readFileSync: readFileSync3,
9982
+ readFileSync: readFileSync2,
10520
9983
  writeFile,
10521
9984
  writeFileSync
10522
9985
  };
@@ -10545,18 +10008,18 @@ var require_output_file = __commonJS({
10545
10008
  "use strict";
10546
10009
  var u = require_universalify().fromPromise;
10547
10010
  var fs = require_fs();
10548
- var path3 = require("path");
10011
+ var path = require("path");
10549
10012
  var mkdir = require_mkdirs();
10550
10013
  var pathExists = require_path_exists().pathExists;
10551
10014
  async function outputFile(file, data, encoding = "utf-8") {
10552
- const dir = path3.dirname(file);
10015
+ const dir = path.dirname(file);
10553
10016
  if (!await pathExists(dir)) {
10554
10017
  await mkdir.mkdirs(dir);
10555
10018
  }
10556
10019
  return fs.writeFile(file, data, encoding);
10557
10020
  }
10558
10021
  function outputFileSync(file, ...args) {
10559
- const dir = path3.dirname(file);
10022
+ const dir = path.dirname(file);
10560
10023
  if (!fs.existsSync(dir)) {
10561
10024
  mkdir.mkdirsSync(dir);
10562
10025
  }
@@ -10620,7 +10083,7 @@ var require_move = __commonJS({
10620
10083
  "node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/move/move.js"(exports2, module2) {
10621
10084
  "use strict";
10622
10085
  var fs = require_fs();
10623
- var path3 = require("path");
10086
+ var path = require("path");
10624
10087
  var { copy } = require_copy2();
10625
10088
  var { remove } = require_remove();
10626
10089
  var { mkdirp } = require_mkdirs();
@@ -10630,8 +10093,8 @@ var require_move = __commonJS({
10630
10093
  const overwrite = opts.overwrite || opts.clobber || false;
10631
10094
  const { srcStat, isChangingCase = false } = await stat.checkPaths(src, dest, "move", opts);
10632
10095
  await stat.checkParentPaths(src, srcStat, dest, "move");
10633
- const destParent = path3.dirname(dest);
10634
- const parsedParentPath = path3.parse(destParent);
10096
+ const destParent = path.dirname(dest);
10097
+ const parsedParentPath = path.parse(destParent);
10635
10098
  if (parsedParentPath.root !== destParent) {
10636
10099
  await mkdirp(destParent);
10637
10100
  }
@@ -10672,7 +10135,7 @@ var require_move_sync = __commonJS({
10672
10135
  "node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/move/move-sync.js"(exports2, module2) {
10673
10136
  "use strict";
10674
10137
  var fs = require_graceful_fs();
10675
- var path3 = require("path");
10138
+ var path = require("path");
10676
10139
  var copySync = require_copy2().copySync;
10677
10140
  var removeSync2 = require_remove().removeSync;
10678
10141
  var mkdirpSync = require_mkdirs().mkdirpSync;
@@ -10683,12 +10146,12 @@ var require_move_sync = __commonJS({
10683
10146
  const { srcStat, isChangingCase = false } = stat.checkPathsSync(src, dest, "move", opts);
10684
10147
  stat.checkParentPathsSync(src, srcStat, dest, "move");
10685
10148
  if (!isParentRoot(dest))
10686
- mkdirpSync(path3.dirname(dest));
10149
+ mkdirpSync(path.dirname(dest));
10687
10150
  return doRename(src, dest, overwrite, isChangingCase);
10688
10151
  }
10689
10152
  function isParentRoot(dest) {
10690
- const parent = path3.dirname(dest);
10691
- const parsedPath = path3.parse(parent);
10153
+ const parent = path.dirname(dest);
10154
+ const parsedPath = path.parse(parent);
10692
10155
  return parsedPath.root === parent;
10693
10156
  }
10694
10157
  function doRename(src, dest, overwrite, isChangingCase) {
@@ -12170,10 +11633,10 @@ var require_RandomGenerator = __commonJS({
12170
11633
  return (0, exports2.url)();
12171
11634
  };
12172
11635
  exports2.uriTemplate = uriTemplate;
12173
- var url2 = function() {
11636
+ var url = function() {
12174
11637
  return "https://".concat((0, exports2.string)(10), ".").concat((0, exports2.string)(3));
12175
11638
  };
12176
- exports2.url = url2;
11639
+ exports2.url = url;
12177
11640
  var datetime = function(min, max) {
12178
11641
  return new Date((0, exports2.number)(min !== null && min !== void 0 ? min : Date.now() - 30 * DAY, max !== null && max !== void 0 ? max : Date.now() + 7 * DAY)).toISOString();
12179
11642
  };
@@ -15335,7 +14798,7 @@ var require_iterate_metadata_intersection = __commonJS({
15335
14798
  var _b2 = __read(_a2, 1), c2 = _b2[0];
15336
14799
  return c2.size() === 1 && (c2.atomics.length === 1 || c2.constants.length === 1 && c2.constants[0].type === "boolean" || c2.arrays.length === 1);
15337
14800
  });
15338
- var constants3 = children.filter(function(m2) {
14801
+ var constants = children.filter(function(m2) {
15339
14802
  return m2.size() === m2.constants.map(function(c2) {
15340
14803
  return c2.values.length;
15341
14804
  }).reduce(function(a, b) {
@@ -15365,7 +14828,7 @@ var require_iterate_metadata_intersection = __commonJS({
15365
14828
  return a.type.name;
15366
14829
  });
15367
14830
  }).flat());
15368
- if (atomics.size + arrays.size > 1 || individuals.length + objects.length + constants3.length !== children.length) {
14831
+ if (atomics.size + arrays.size > 1 || individuals.length + objects.length + constants.length !== children.length) {
15369
14832
  errors.push({
15370
14833
  name: children.map(function(c2) {
15371
14834
  return c2.getName();
@@ -15374,9 +14837,9 @@ var require_iterate_metadata_intersection = __commonJS({
15374
14837
  messages: ["nonsensible intersection"]
15375
14838
  });
15376
14839
  return true;
15377
- } else if (atomics.size === 0 && arrays.size === 0 && constants3.length) {
14840
+ } else if (atomics.size === 0 && arrays.size === 0 && constants.length) {
15378
14841
  try {
15379
- for (var constants_1 = __values(constants3), constants_1_1 = constants_1.next(); !constants_1_1.done; constants_1_1 = constants_1.next()) {
14842
+ for (var constants_1 = __values(constants), constants_1_1 = constants_1.next(); !constants_1_1.done; constants_1_1 = constants_1.next()) {
15380
14843
  var m = constants_1_1.value;
15381
14844
  try {
15382
14845
  for (var _e = (e_2 = void 0, __values(m.templates)), _f = _e.next(); !_f.done; _f = _e.next()) {
@@ -20959,14 +20422,14 @@ var require_AssertProgrammer = __commonJS({
20959
20422
  object: assert_object(equals)(project)(importer),
20960
20423
  numeric: true
20961
20424
  })(project)(importer).combiner(explore);
20962
- var path3 = explore.postfix ? "_path + ".concat(explore.postfix) : "_path";
20425
+ var path = explore.postfix ? "_path + ".concat(explore.postfix) : "_path";
20963
20426
  return function(logic) {
20964
20427
  return function(input, binaries, expected) {
20965
20428
  return logic === "and" ? binaries.map(function(binary) {
20966
- return binary.combined ? binary.expression : typescript_1.default.factory.createLogicalOr(binary.expression, create_guard_call(importer)(explore.source === "top" ? typescript_1.default.factory.createTrue() : typescript_1.default.factory.createIdentifier("_exceptionable"))(typescript_1.default.factory.createIdentifier(path3), expected, input));
20429
+ return binary.combined ? binary.expression : typescript_1.default.factory.createLogicalOr(binary.expression, create_guard_call(importer)(explore.source === "top" ? typescript_1.default.factory.createTrue() : typescript_1.default.factory.createIdentifier("_exceptionable"))(typescript_1.default.factory.createIdentifier(path), expected, input));
20967
20430
  }).reduce(typescript_1.default.factory.createLogicalAnd) : typescript_1.default.factory.createLogicalOr(binaries.map(function(binary) {
20968
20431
  return binary.expression;
20969
- }).reduce(typescript_1.default.factory.createLogicalOr), create_guard_call(importer)(explore.source === "top" ? typescript_1.default.factory.createTrue() : typescript_1.default.factory.createIdentifier("_exceptionable"))(typescript_1.default.factory.createIdentifier(path3), expected, input));
20432
+ }).reduce(typescript_1.default.factory.createLogicalOr), create_guard_call(importer)(explore.source === "top" ? typescript_1.default.factory.createTrue() : typescript_1.default.factory.createIdentifier("_exceptionable"))(typescript_1.default.factory.createIdentifier(path), expected, input));
20970
20433
  };
20971
20434
  };
20972
20435
  };
@@ -21016,11 +20479,11 @@ var require_AssertProgrammer = __commonJS({
21016
20479
  };
21017
20480
  var create_guard_call = function(importer) {
21018
20481
  return function(exceptionable) {
21019
- return function(path3, expected, value) {
20482
+ return function(path, expected, value) {
21020
20483
  return typescript_1.default.factory.createCallExpression(importer.use("guard"), void 0, [
21021
20484
  exceptionable !== null && exceptionable !== void 0 ? exceptionable : typescript_1.default.factory.createIdentifier("_exceptionable"),
21022
20485
  typescript_1.default.factory.createObjectLiteralExpression([
21023
- typescript_1.default.factory.createPropertyAssignment("path", path3),
20486
+ typescript_1.default.factory.createPropertyAssignment("path", path),
21024
20487
  typescript_1.default.factory.createPropertyAssignment("expected", typescript_1.default.factory.createStringLiteral(expected)),
21025
20488
  typescript_1.default.factory.createPropertyAssignment("value", value)
21026
20489
  ], true)
@@ -22459,14 +21922,14 @@ var require_ValidateProgrammer = __commonJS({
22459
21922
  object: validate_object(equals)(project)(importer),
22460
21923
  numeric: true
22461
21924
  })(project)(importer).combiner(explore);
22462
- var path3 = explore.postfix ? "_path + ".concat(explore.postfix) : "_path";
21925
+ var path = explore.postfix ? "_path + ".concat(explore.postfix) : "_path";
22463
21926
  return function(logic) {
22464
21927
  return function(input, binaries, expected) {
22465
21928
  return logic === "and" ? binaries.map(function(binary) {
22466
- return binary.combined ? binary.expression : typescript_1.default.factory.createLogicalOr(binary.expression, create_report_call(explore.source === "top" ? typescript_1.default.factory.createTrue() : typescript_1.default.factory.createIdentifier("_exceptionable"))(typescript_1.default.factory.createIdentifier(path3), expected, input));
21929
+ return binary.combined ? binary.expression : typescript_1.default.factory.createLogicalOr(binary.expression, create_report_call(explore.source === "top" ? typescript_1.default.factory.createTrue() : typescript_1.default.factory.createIdentifier("_exceptionable"))(typescript_1.default.factory.createIdentifier(path), expected, input));
22467
21930
  }).reduce(typescript_1.default.factory.createLogicalAnd) : typescript_1.default.factory.createLogicalOr(binaries.map(function(binary) {
22468
21931
  return binary.expression;
22469
- }).reduce(typescript_1.default.factory.createLogicalOr), create_report_call(explore.source === "top" ? typescript_1.default.factory.createTrue() : typescript_1.default.factory.createIdentifier("_exceptionable"))(typescript_1.default.factory.createIdentifier(path3), expected, input));
21932
+ }).reduce(typescript_1.default.factory.createLogicalOr), create_report_call(explore.source === "top" ? typescript_1.default.factory.createTrue() : typescript_1.default.factory.createIdentifier("_exceptionable"))(typescript_1.default.factory.createIdentifier(path), expected, input));
22470
21933
  };
22471
21934
  };
22472
21935
  };
@@ -22520,11 +21983,11 @@ var require_ValidateProgrammer = __commonJS({
22520
21983
  ], true);
22521
21984
  };
22522
21985
  var create_report_call = function(exceptionable) {
22523
- return function(path3, expected, value) {
21986
+ return function(path, expected, value) {
22524
21987
  return typescript_1.default.factory.createCallExpression(typescript_1.default.factory.createIdentifier("$report"), void 0, [
22525
21988
  exceptionable !== null && exceptionable !== void 0 ? exceptionable : typescript_1.default.factory.createIdentifier("_exceptionable"),
22526
21989
  typescript_1.default.factory.createObjectLiteralExpression([
22527
- typescript_1.default.factory.createPropertyAssignment("path", path3),
21990
+ typescript_1.default.factory.createPropertyAssignment("path", path),
22528
21991
  typescript_1.default.factory.createPropertyAssignment("expected", typescript_1.default.factory.createStringLiteral(expected)),
22529
21992
  typescript_1.default.factory.createPropertyAssignment("value", value)
22530
21993
  ], true)
@@ -34069,8 +33532,8 @@ function getErrorMap() {
34069
33532
  return overrideErrorMap;
34070
33533
  }
34071
33534
  var makeIssue = (params) => {
34072
- const { data, path: path3, errorMaps, issueData } = params;
34073
- const fullPath = [...path3, ...issueData.path || []];
33535
+ const { data, path, errorMaps, issueData } = params;
33536
+ const fullPath = [...path, ...issueData.path || []];
34074
33537
  const fullIssue = {
34075
33538
  ...issueData,
34076
33539
  path: fullPath
@@ -34168,11 +33631,11 @@ var errorUtil;
34168
33631
  errorUtil2.toString = (message) => typeof message === "string" ? message : message === null || message === void 0 ? void 0 : message.message;
34169
33632
  })(errorUtil || (errorUtil = {}));
34170
33633
  var ParseInputLazyPath = class {
34171
- constructor(parent, value, path3, key) {
33634
+ constructor(parent, value, path, key) {
34172
33635
  this._cachedPath = [];
34173
33636
  this.parent = parent;
34174
33637
  this.data = value;
34175
- this._path = path3;
33638
+ this._path = path;
34176
33639
  this._key = key;
34177
33640
  }
34178
33641
  get path() {
@@ -37622,1583 +37085,6 @@ var getStopwatch = (name) => {
37622
37085
  };
37623
37086
  };
37624
37087
 
37625
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/index.js
37626
- var import_node_buffer2 = require("node:buffer");
37627
- var import_node_path4 = __toESM(require("node:path"), 1);
37628
- var import_node_child_process3 = __toESM(require("node:child_process"), 1);
37629
- var import_node_process4 = __toESM(require("node:process"), 1);
37630
- var import_cross_spawn = __toESM(require_cross_spawn(), 1);
37631
-
37632
- // node_modules/.pnpm/strip-final-newline@3.0.0/node_modules/strip-final-newline/index.js
37633
- function stripFinalNewline(input) {
37634
- const LF = typeof input === "string" ? "\n" : "\n".charCodeAt();
37635
- const CR = typeof input === "string" ? "\r" : "\r".charCodeAt();
37636
- if (input[input.length - 1] === LF) {
37637
- input = input.slice(0, -1);
37638
- }
37639
- if (input[input.length - 1] === CR) {
37640
- input = input.slice(0, -1);
37641
- }
37642
- return input;
37643
- }
37644
-
37645
- // node_modules/.pnpm/npm-run-path@5.2.0/node_modules/npm-run-path/index.js
37646
- var import_node_process = __toESM(require("node:process"), 1);
37647
- var import_node_path3 = __toESM(require("node:path"), 1);
37648
- var import_node_url = __toESM(require("node:url"), 1);
37649
-
37650
- // node_modules/.pnpm/path-key@4.0.0/node_modules/path-key/index.js
37651
- function pathKey(options = {}) {
37652
- const {
37653
- env = process.env,
37654
- platform = process.platform
37655
- } = options;
37656
- if (platform !== "win32") {
37657
- return "PATH";
37658
- }
37659
- return Object.keys(env).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
37660
- }
37661
-
37662
- // node_modules/.pnpm/npm-run-path@5.2.0/node_modules/npm-run-path/index.js
37663
- function npmRunPath(options = {}) {
37664
- const {
37665
- cwd = import_node_process.default.cwd(),
37666
- path: path_ = import_node_process.default.env[pathKey()],
37667
- execPath = import_node_process.default.execPath
37668
- } = options;
37669
- let previous;
37670
- const execPathString = execPath instanceof URL ? import_node_url.default.fileURLToPath(execPath) : execPath;
37671
- const cwdString = cwd instanceof URL ? import_node_url.default.fileURLToPath(cwd) : cwd;
37672
- let cwdPath = import_node_path3.default.resolve(cwdString);
37673
- const result = [];
37674
- while (previous !== cwdPath) {
37675
- result.push(import_node_path3.default.join(cwdPath, "node_modules/.bin"));
37676
- previous = cwdPath;
37677
- cwdPath = import_node_path3.default.resolve(cwdPath, "..");
37678
- }
37679
- result.push(import_node_path3.default.resolve(cwdString, execPathString, ".."));
37680
- return [...result, path_].join(import_node_path3.default.delimiter);
37681
- }
37682
- function npmRunPathEnv({ env = import_node_process.default.env, ...options } = {}) {
37683
- env = { ...env };
37684
- const path3 = pathKey({ env });
37685
- options.path = env[path3];
37686
- env[path3] = npmRunPath(options);
37687
- return env;
37688
- }
37689
-
37690
- // node_modules/.pnpm/mimic-fn@4.0.0/node_modules/mimic-fn/index.js
37691
- var copyProperty = (to, from, property, ignoreNonConfigurable) => {
37692
- if (property === "length" || property === "prototype") {
37693
- return;
37694
- }
37695
- if (property === "arguments" || property === "caller") {
37696
- return;
37697
- }
37698
- const toDescriptor = Object.getOwnPropertyDescriptor(to, property);
37699
- const fromDescriptor = Object.getOwnPropertyDescriptor(from, property);
37700
- if (!canCopyProperty(toDescriptor, fromDescriptor) && ignoreNonConfigurable) {
37701
- return;
37702
- }
37703
- Object.defineProperty(to, property, fromDescriptor);
37704
- };
37705
- var canCopyProperty = function(toDescriptor, fromDescriptor) {
37706
- return toDescriptor === void 0 || toDescriptor.configurable || toDescriptor.writable === fromDescriptor.writable && toDescriptor.enumerable === fromDescriptor.enumerable && toDescriptor.configurable === fromDescriptor.configurable && (toDescriptor.writable || toDescriptor.value === fromDescriptor.value);
37707
- };
37708
- var changePrototype = (to, from) => {
37709
- const fromPrototype = Object.getPrototypeOf(from);
37710
- if (fromPrototype === Object.getPrototypeOf(to)) {
37711
- return;
37712
- }
37713
- Object.setPrototypeOf(to, fromPrototype);
37714
- };
37715
- var wrappedToString = (withName, fromBody) => `/* Wrapped ${withName}*/
37716
- ${fromBody}`;
37717
- var toStringDescriptor = Object.getOwnPropertyDescriptor(Function.prototype, "toString");
37718
- var toStringName = Object.getOwnPropertyDescriptor(Function.prototype.toString, "name");
37719
- var changeToString = (to, from, name) => {
37720
- const withName = name === "" ? "" : `with ${name.trim()}() `;
37721
- const newToString = wrappedToString.bind(null, withName, from.toString());
37722
- Object.defineProperty(newToString, "name", toStringName);
37723
- Object.defineProperty(to, "toString", { ...toStringDescriptor, value: newToString });
37724
- };
37725
- function mimicFunction(to, from, { ignoreNonConfigurable = false } = {}) {
37726
- const { name } = to;
37727
- for (const property of Reflect.ownKeys(from)) {
37728
- copyProperty(to, from, property, ignoreNonConfigurable);
37729
- }
37730
- changePrototype(to, from);
37731
- changeToString(to, from, name);
37732
- return to;
37733
- }
37734
-
37735
- // node_modules/.pnpm/onetime@6.0.0/node_modules/onetime/index.js
37736
- var calledFunctions = /* @__PURE__ */ new WeakMap();
37737
- var onetime = (function_, options = {}) => {
37738
- if (typeof function_ !== "function") {
37739
- throw new TypeError("Expected a function");
37740
- }
37741
- let returnValue;
37742
- let callCount = 0;
37743
- const functionName = function_.displayName || function_.name || "<anonymous>";
37744
- const onetime2 = function(...arguments_) {
37745
- calledFunctions.set(onetime2, ++callCount);
37746
- if (callCount === 1) {
37747
- returnValue = function_.apply(this, arguments_);
37748
- function_ = null;
37749
- } else if (options.throw === true) {
37750
- throw new Error(`Function \`${functionName}\` can only be called once`);
37751
- }
37752
- return returnValue;
37753
- };
37754
- mimicFunction(onetime2, function_);
37755
- calledFunctions.set(onetime2, callCount);
37756
- return onetime2;
37757
- };
37758
- onetime.callCount = (function_) => {
37759
- if (!calledFunctions.has(function_)) {
37760
- throw new Error(`The given function \`${function_.name}\` is not wrapped by the \`onetime\` package`);
37761
- }
37762
- return calledFunctions.get(function_);
37763
- };
37764
- var onetime_default = onetime;
37765
-
37766
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/error.js
37767
- var import_node_process2 = __toESM(require("node:process"), 1);
37768
-
37769
- // node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/main.js
37770
- var import_node_os2 = require("node:os");
37771
-
37772
- // node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/realtime.js
37773
- var getRealtimeSignals = () => {
37774
- const length = SIGRTMAX - SIGRTMIN + 1;
37775
- return Array.from({ length }, getRealtimeSignal);
37776
- };
37777
- var getRealtimeSignal = (value, index) => ({
37778
- name: `SIGRT${index + 1}`,
37779
- number: SIGRTMIN + index,
37780
- action: "terminate",
37781
- description: "Application-specific signal (realtime)",
37782
- standard: "posix"
37783
- });
37784
- var SIGRTMIN = 34;
37785
- var SIGRTMAX = 64;
37786
-
37787
- // node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/signals.js
37788
- var import_node_os = require("node:os");
37789
-
37790
- // node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/core.js
37791
- var SIGNALS = [
37792
- {
37793
- name: "SIGHUP",
37794
- number: 1,
37795
- action: "terminate",
37796
- description: "Terminal closed",
37797
- standard: "posix"
37798
- },
37799
- {
37800
- name: "SIGINT",
37801
- number: 2,
37802
- action: "terminate",
37803
- description: "User interruption with CTRL-C",
37804
- standard: "ansi"
37805
- },
37806
- {
37807
- name: "SIGQUIT",
37808
- number: 3,
37809
- action: "core",
37810
- description: "User interruption with CTRL-\\",
37811
- standard: "posix"
37812
- },
37813
- {
37814
- name: "SIGILL",
37815
- number: 4,
37816
- action: "core",
37817
- description: "Invalid machine instruction",
37818
- standard: "ansi"
37819
- },
37820
- {
37821
- name: "SIGTRAP",
37822
- number: 5,
37823
- action: "core",
37824
- description: "Debugger breakpoint",
37825
- standard: "posix"
37826
- },
37827
- {
37828
- name: "SIGABRT",
37829
- number: 6,
37830
- action: "core",
37831
- description: "Aborted",
37832
- standard: "ansi"
37833
- },
37834
- {
37835
- name: "SIGIOT",
37836
- number: 6,
37837
- action: "core",
37838
- description: "Aborted",
37839
- standard: "bsd"
37840
- },
37841
- {
37842
- name: "SIGBUS",
37843
- number: 7,
37844
- action: "core",
37845
- description: "Bus error due to misaligned, non-existing address or paging error",
37846
- standard: "bsd"
37847
- },
37848
- {
37849
- name: "SIGEMT",
37850
- number: 7,
37851
- action: "terminate",
37852
- description: "Command should be emulated but is not implemented",
37853
- standard: "other"
37854
- },
37855
- {
37856
- name: "SIGFPE",
37857
- number: 8,
37858
- action: "core",
37859
- description: "Floating point arithmetic error",
37860
- standard: "ansi"
37861
- },
37862
- {
37863
- name: "SIGKILL",
37864
- number: 9,
37865
- action: "terminate",
37866
- description: "Forced termination",
37867
- standard: "posix",
37868
- forced: true
37869
- },
37870
- {
37871
- name: "SIGUSR1",
37872
- number: 10,
37873
- action: "terminate",
37874
- description: "Application-specific signal",
37875
- standard: "posix"
37876
- },
37877
- {
37878
- name: "SIGSEGV",
37879
- number: 11,
37880
- action: "core",
37881
- description: "Segmentation fault",
37882
- standard: "ansi"
37883
- },
37884
- {
37885
- name: "SIGUSR2",
37886
- number: 12,
37887
- action: "terminate",
37888
- description: "Application-specific signal",
37889
- standard: "posix"
37890
- },
37891
- {
37892
- name: "SIGPIPE",
37893
- number: 13,
37894
- action: "terminate",
37895
- description: "Broken pipe or socket",
37896
- standard: "posix"
37897
- },
37898
- {
37899
- name: "SIGALRM",
37900
- number: 14,
37901
- action: "terminate",
37902
- description: "Timeout or timer",
37903
- standard: "posix"
37904
- },
37905
- {
37906
- name: "SIGTERM",
37907
- number: 15,
37908
- action: "terminate",
37909
- description: "Termination",
37910
- standard: "ansi"
37911
- },
37912
- {
37913
- name: "SIGSTKFLT",
37914
- number: 16,
37915
- action: "terminate",
37916
- description: "Stack is empty or overflowed",
37917
- standard: "other"
37918
- },
37919
- {
37920
- name: "SIGCHLD",
37921
- number: 17,
37922
- action: "ignore",
37923
- description: "Child process terminated, paused or unpaused",
37924
- standard: "posix"
37925
- },
37926
- {
37927
- name: "SIGCLD",
37928
- number: 17,
37929
- action: "ignore",
37930
- description: "Child process terminated, paused or unpaused",
37931
- standard: "other"
37932
- },
37933
- {
37934
- name: "SIGCONT",
37935
- number: 18,
37936
- action: "unpause",
37937
- description: "Unpaused",
37938
- standard: "posix",
37939
- forced: true
37940
- },
37941
- {
37942
- name: "SIGSTOP",
37943
- number: 19,
37944
- action: "pause",
37945
- description: "Paused",
37946
- standard: "posix",
37947
- forced: true
37948
- },
37949
- {
37950
- name: "SIGTSTP",
37951
- number: 20,
37952
- action: "pause",
37953
- description: 'Paused using CTRL-Z or "suspend"',
37954
- standard: "posix"
37955
- },
37956
- {
37957
- name: "SIGTTIN",
37958
- number: 21,
37959
- action: "pause",
37960
- description: "Background process cannot read terminal input",
37961
- standard: "posix"
37962
- },
37963
- {
37964
- name: "SIGBREAK",
37965
- number: 21,
37966
- action: "terminate",
37967
- description: "User interruption with CTRL-BREAK",
37968
- standard: "other"
37969
- },
37970
- {
37971
- name: "SIGTTOU",
37972
- number: 22,
37973
- action: "pause",
37974
- description: "Background process cannot write to terminal output",
37975
- standard: "posix"
37976
- },
37977
- {
37978
- name: "SIGURG",
37979
- number: 23,
37980
- action: "ignore",
37981
- description: "Socket received out-of-band data",
37982
- standard: "bsd"
37983
- },
37984
- {
37985
- name: "SIGXCPU",
37986
- number: 24,
37987
- action: "core",
37988
- description: "Process timed out",
37989
- standard: "bsd"
37990
- },
37991
- {
37992
- name: "SIGXFSZ",
37993
- number: 25,
37994
- action: "core",
37995
- description: "File too big",
37996
- standard: "bsd"
37997
- },
37998
- {
37999
- name: "SIGVTALRM",
38000
- number: 26,
38001
- action: "terminate",
38002
- description: "Timeout or timer",
38003
- standard: "bsd"
38004
- },
38005
- {
38006
- name: "SIGPROF",
38007
- number: 27,
38008
- action: "terminate",
38009
- description: "Timeout or timer",
38010
- standard: "bsd"
38011
- },
38012
- {
38013
- name: "SIGWINCH",
38014
- number: 28,
38015
- action: "ignore",
38016
- description: "Terminal window size changed",
38017
- standard: "bsd"
38018
- },
38019
- {
38020
- name: "SIGIO",
38021
- number: 29,
38022
- action: "terminate",
38023
- description: "I/O is available",
38024
- standard: "other"
38025
- },
38026
- {
38027
- name: "SIGPOLL",
38028
- number: 29,
38029
- action: "terminate",
38030
- description: "Watched event",
38031
- standard: "other"
38032
- },
38033
- {
38034
- name: "SIGINFO",
38035
- number: 29,
38036
- action: "ignore",
38037
- description: "Request for process information",
38038
- standard: "other"
38039
- },
38040
- {
38041
- name: "SIGPWR",
38042
- number: 30,
38043
- action: "terminate",
38044
- description: "Device running out of power",
38045
- standard: "systemv"
38046
- },
38047
- {
38048
- name: "SIGSYS",
38049
- number: 31,
38050
- action: "core",
38051
- description: "Invalid system call",
38052
- standard: "other"
38053
- },
38054
- {
38055
- name: "SIGUNUSED",
38056
- number: 31,
38057
- action: "terminate",
38058
- description: "Invalid system call",
38059
- standard: "other"
38060
- }
38061
- ];
38062
-
38063
- // node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/signals.js
38064
- var getSignals = () => {
38065
- const realtimeSignals = getRealtimeSignals();
38066
- const signals2 = [...SIGNALS, ...realtimeSignals].map(normalizeSignal);
38067
- return signals2;
38068
- };
38069
- var normalizeSignal = ({
38070
- name,
38071
- number: defaultNumber,
38072
- description,
38073
- action,
38074
- forced = false,
38075
- standard
38076
- }) => {
38077
- const {
38078
- signals: { [name]: constantSignal }
38079
- } = import_node_os.constants;
38080
- const supported = constantSignal !== void 0;
38081
- const number = supported ? constantSignal : defaultNumber;
38082
- return { name, number, description, supported, action, forced, standard };
38083
- };
38084
-
38085
- // node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/main.js
38086
- var getSignalsByName = () => {
38087
- const signals2 = getSignals();
38088
- return Object.fromEntries(signals2.map(getSignalByName));
38089
- };
38090
- var getSignalByName = ({
38091
- name,
38092
- number,
38093
- description,
38094
- supported,
38095
- action,
38096
- forced,
38097
- standard
38098
- }) => [name, { name, number, description, supported, action, forced, standard }];
38099
- var signalsByName = getSignalsByName();
38100
- var getSignalsByNumber = () => {
38101
- const signals2 = getSignals();
38102
- const length = SIGRTMAX + 1;
38103
- const signalsA = Array.from(
38104
- { length },
38105
- (value, number) => getSignalByNumber(number, signals2)
38106
- );
38107
- return Object.assign({}, ...signalsA);
38108
- };
38109
- var getSignalByNumber = (number, signals2) => {
38110
- const signal = findSignalByNumber(number, signals2);
38111
- if (signal === void 0) {
38112
- return {};
38113
- }
38114
- const { name, description, supported, action, forced, standard } = signal;
38115
- return {
38116
- [number]: {
38117
- name,
38118
- number,
38119
- description,
38120
- supported,
38121
- action,
38122
- forced,
38123
- standard
38124
- }
38125
- };
38126
- };
38127
- var findSignalByNumber = (number, signals2) => {
38128
- const signal = signals2.find(({ name }) => import_node_os2.constants.signals[name] === number);
38129
- if (signal !== void 0) {
38130
- return signal;
38131
- }
38132
- return signals2.find((signalA) => signalA.number === number);
38133
- };
38134
- var signalsByNumber = getSignalsByNumber();
38135
-
38136
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/error.js
38137
- var getErrorPrefix = ({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled }) => {
38138
- if (timedOut) {
38139
- return `timed out after ${timeout} milliseconds`;
38140
- }
38141
- if (isCanceled) {
38142
- return "was canceled";
38143
- }
38144
- if (errorCode !== void 0) {
38145
- return `failed with ${errorCode}`;
38146
- }
38147
- if (signal !== void 0) {
38148
- return `was killed with ${signal} (${signalDescription})`;
38149
- }
38150
- if (exitCode !== void 0) {
38151
- return `failed with exit code ${exitCode}`;
38152
- }
38153
- return "failed";
38154
- };
38155
- var makeError = ({
38156
- stdout,
38157
- stderr,
38158
- all,
38159
- error,
38160
- signal,
38161
- exitCode,
38162
- command,
38163
- escapedCommand,
38164
- timedOut,
38165
- isCanceled,
38166
- killed,
38167
- parsed: { options: { timeout, cwd = import_node_process2.default.cwd() } }
38168
- }) => {
38169
- exitCode = exitCode === null ? void 0 : exitCode;
38170
- signal = signal === null ? void 0 : signal;
38171
- const signalDescription = signal === void 0 ? void 0 : signalsByName[signal].description;
38172
- const errorCode = error && error.code;
38173
- const prefix = getErrorPrefix({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled });
38174
- const execaMessage = `Command ${prefix}: ${command}`;
38175
- const isError = Object.prototype.toString.call(error) === "[object Error]";
38176
- const shortMessage = isError ? `${execaMessage}
38177
- ${error.message}` : execaMessage;
38178
- const message = [shortMessage, stderr, stdout].filter(Boolean).join("\n");
38179
- if (isError) {
38180
- error.originalMessage = error.message;
38181
- error.message = message;
38182
- } else {
38183
- error = new Error(message);
38184
- }
38185
- error.shortMessage = shortMessage;
38186
- error.command = command;
38187
- error.escapedCommand = escapedCommand;
38188
- error.exitCode = exitCode;
38189
- error.signal = signal;
38190
- error.signalDescription = signalDescription;
38191
- error.stdout = stdout;
38192
- error.stderr = stderr;
38193
- error.cwd = cwd;
38194
- if (all !== void 0) {
38195
- error.all = all;
38196
- }
38197
- if ("bufferedData" in error) {
38198
- delete error.bufferedData;
38199
- }
38200
- error.failed = true;
38201
- error.timedOut = Boolean(timedOut);
38202
- error.isCanceled = isCanceled;
38203
- error.killed = killed && !timedOut;
38204
- return error;
38205
- };
38206
-
38207
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/stdio.js
38208
- var aliases = ["stdin", "stdout", "stderr"];
38209
- var hasAlias = (options) => aliases.some((alias) => options[alias] !== void 0);
38210
- var normalizeStdio = (options) => {
38211
- if (!options) {
38212
- return;
38213
- }
38214
- const { stdio } = options;
38215
- if (stdio === void 0) {
38216
- return aliases.map((alias) => options[alias]);
38217
- }
38218
- if (hasAlias(options)) {
38219
- throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${aliases.map((alias) => `\`${alias}\``).join(", ")}`);
38220
- }
38221
- if (typeof stdio === "string") {
38222
- return stdio;
38223
- }
38224
- if (!Array.isArray(stdio)) {
38225
- throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);
38226
- }
38227
- const length = Math.max(stdio.length, aliases.length);
38228
- return Array.from({ length }, (value, index) => stdio[index]);
38229
- };
38230
-
38231
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/kill.js
38232
- var import_node_os3 = __toESM(require("node:os"), 1);
38233
-
38234
- // node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
38235
- var signals = [];
38236
- signals.push("SIGHUP", "SIGINT", "SIGTERM");
38237
- if (process.platform !== "win32") {
38238
- signals.push(
38239
- "SIGALRM",
38240
- "SIGABRT",
38241
- "SIGVTALRM",
38242
- "SIGXCPU",
38243
- "SIGXFSZ",
38244
- "SIGUSR2",
38245
- "SIGTRAP",
38246
- "SIGSYS",
38247
- "SIGQUIT",
38248
- "SIGIOT"
38249
- // should detect profiler and enable/disable accordingly.
38250
- // see #21
38251
- // 'SIGPROF'
38252
- );
38253
- }
38254
- if (process.platform === "linux") {
38255
- signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
38256
- }
38257
-
38258
- // node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/index.js
38259
- var processOk = (process7) => !!process7 && typeof process7 === "object" && typeof process7.removeListener === "function" && typeof process7.emit === "function" && typeof process7.reallyExit === "function" && typeof process7.listeners === "function" && typeof process7.kill === "function" && typeof process7.pid === "number" && typeof process7.on === "function";
38260
- var kExitEmitter = Symbol.for("signal-exit emitter");
38261
- var global2 = globalThis;
38262
- var ObjectDefineProperty = Object.defineProperty.bind(Object);
38263
- var Emitter = class {
38264
- emitted = {
38265
- afterExit: false,
38266
- exit: false
38267
- };
38268
- listeners = {
38269
- afterExit: [],
38270
- exit: []
38271
- };
38272
- count = 0;
38273
- id = Math.random();
38274
- constructor() {
38275
- if (global2[kExitEmitter]) {
38276
- return global2[kExitEmitter];
38277
- }
38278
- ObjectDefineProperty(global2, kExitEmitter, {
38279
- value: this,
38280
- writable: false,
38281
- enumerable: false,
38282
- configurable: false
38283
- });
38284
- }
38285
- on(ev, fn) {
38286
- this.listeners[ev].push(fn);
38287
- }
38288
- removeListener(ev, fn) {
38289
- const list = this.listeners[ev];
38290
- const i = list.indexOf(fn);
38291
- if (i === -1) {
38292
- return;
38293
- }
38294
- if (i === 0 && list.length === 1) {
38295
- list.length = 0;
38296
- } else {
38297
- list.splice(i, 1);
38298
- }
38299
- }
38300
- emit(ev, code, signal) {
38301
- if (this.emitted[ev]) {
38302
- return false;
38303
- }
38304
- this.emitted[ev] = true;
38305
- let ret = false;
38306
- for (const fn of this.listeners[ev]) {
38307
- ret = fn(code, signal) === true || ret;
38308
- }
38309
- if (ev === "exit") {
38310
- ret = this.emit("afterExit", code, signal) || ret;
38311
- }
38312
- return ret;
38313
- }
38314
- };
38315
- var SignalExitBase = class {
38316
- };
38317
- var signalExitWrap = (handler) => {
38318
- return {
38319
- onExit(cb, opts) {
38320
- return handler.onExit(cb, opts);
38321
- },
38322
- load() {
38323
- return handler.load();
38324
- },
38325
- unload() {
38326
- return handler.unload();
38327
- }
38328
- };
38329
- };
38330
- var SignalExitFallback = class extends SignalExitBase {
38331
- onExit() {
38332
- return () => {
38333
- };
38334
- }
38335
- load() {
38336
- }
38337
- unload() {
38338
- }
38339
- };
38340
- var SignalExit = class extends SignalExitBase {
38341
- // "SIGHUP" throws an `ENOSYS` error on Windows,
38342
- // so use a supported signal instead
38343
- /* c8 ignore start */
38344
- #hupSig = process4.platform === "win32" ? "SIGINT" : "SIGHUP";
38345
- /* c8 ignore stop */
38346
- #emitter = new Emitter();
38347
- #process;
38348
- #originalProcessEmit;
38349
- #originalProcessReallyExit;
38350
- #sigListeners = {};
38351
- #loaded = false;
38352
- constructor(process7) {
38353
- super();
38354
- this.#process = process7;
38355
- this.#sigListeners = {};
38356
- for (const sig of signals) {
38357
- this.#sigListeners[sig] = () => {
38358
- const listeners = this.#process.listeners(sig);
38359
- let { count } = this.#emitter;
38360
- const p = process7;
38361
- if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") {
38362
- count += p.__signal_exit_emitter__.count;
38363
- }
38364
- if (listeners.length === count) {
38365
- this.unload();
38366
- const ret = this.#emitter.emit("exit", null, sig);
38367
- const s = sig === "SIGHUP" ? this.#hupSig : sig;
38368
- if (!ret)
38369
- process7.kill(process7.pid, s);
38370
- }
38371
- };
38372
- }
38373
- this.#originalProcessReallyExit = process7.reallyExit;
38374
- this.#originalProcessEmit = process7.emit;
38375
- }
38376
- onExit(cb, opts) {
38377
- if (!processOk(this.#process)) {
38378
- return () => {
38379
- };
38380
- }
38381
- if (this.#loaded === false) {
38382
- this.load();
38383
- }
38384
- const ev = opts?.alwaysLast ? "afterExit" : "exit";
38385
- this.#emitter.on(ev, cb);
38386
- return () => {
38387
- this.#emitter.removeListener(ev, cb);
38388
- if (this.#emitter.listeners["exit"].length === 0 && this.#emitter.listeners["afterExit"].length === 0) {
38389
- this.unload();
38390
- }
38391
- };
38392
- }
38393
- load() {
38394
- if (this.#loaded) {
38395
- return;
38396
- }
38397
- this.#loaded = true;
38398
- this.#emitter.count += 1;
38399
- for (const sig of signals) {
38400
- try {
38401
- const fn = this.#sigListeners[sig];
38402
- if (fn)
38403
- this.#process.on(sig, fn);
38404
- } catch (_) {
38405
- }
38406
- }
38407
- this.#process.emit = (ev, ...a) => {
38408
- return this.#processEmit(ev, ...a);
38409
- };
38410
- this.#process.reallyExit = (code) => {
38411
- return this.#processReallyExit(code);
38412
- };
38413
- }
38414
- unload() {
38415
- if (!this.#loaded) {
38416
- return;
38417
- }
38418
- this.#loaded = false;
38419
- signals.forEach((sig) => {
38420
- const listener = this.#sigListeners[sig];
38421
- if (!listener) {
38422
- throw new Error("Listener not defined for signal: " + sig);
38423
- }
38424
- try {
38425
- this.#process.removeListener(sig, listener);
38426
- } catch (_) {
38427
- }
38428
- });
38429
- this.#process.emit = this.#originalProcessEmit;
38430
- this.#process.reallyExit = this.#originalProcessReallyExit;
38431
- this.#emitter.count -= 1;
38432
- }
38433
- #processReallyExit(code) {
38434
- if (!processOk(this.#process)) {
38435
- return 0;
38436
- }
38437
- this.#process.exitCode = code || 0;
38438
- this.#emitter.emit("exit", this.#process.exitCode, null);
38439
- return this.#originalProcessReallyExit.call(this.#process, this.#process.exitCode);
38440
- }
38441
- #processEmit(ev, ...args) {
38442
- const og = this.#originalProcessEmit;
38443
- if (ev === "exit" && processOk(this.#process)) {
38444
- if (typeof args[0] === "number") {
38445
- this.#process.exitCode = args[0];
38446
- }
38447
- const ret = og.call(this.#process, ev, ...args);
38448
- this.#emitter.emit("exit", this.#process.exitCode, null);
38449
- return ret;
38450
- } else {
38451
- return og.call(this.#process, ev, ...args);
38452
- }
38453
- }
38454
- };
38455
- var process4 = globalThis.process;
38456
- var {
38457
- /**
38458
- * Called when the process is exiting, whether via signal, explicit
38459
- * exit, or running out of stuff to do.
38460
- *
38461
- * If the global process object is not suitable for instrumentation,
38462
- * then this will be a no-op.
38463
- *
38464
- * Returns a function that may be used to unload signal-exit.
38465
- */
38466
- onExit,
38467
- /**
38468
- * Load the listeners. Likely you never need to call this, unless
38469
- * doing a rather deep integration with signal-exit functionality.
38470
- * Mostly exposed for the benefit of testing.
38471
- *
38472
- * @internal
38473
- */
38474
- load,
38475
- /**
38476
- * Unload the listeners. Likely you never need to call this, unless
38477
- * doing a rather deep integration with signal-exit functionality.
38478
- * Mostly exposed for the benefit of testing.
38479
- *
38480
- * @internal
38481
- */
38482
- unload
38483
- } = signalExitWrap(processOk(process4) ? new SignalExit(process4) : new SignalExitFallback());
38484
-
38485
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/kill.js
38486
- var DEFAULT_FORCE_KILL_TIMEOUT = 1e3 * 5;
38487
- var spawnedKill = (kill, signal = "SIGTERM", options = {}) => {
38488
- const killResult = kill(signal);
38489
- setKillTimeout(kill, signal, options, killResult);
38490
- return killResult;
38491
- };
38492
- var setKillTimeout = (kill, signal, options, killResult) => {
38493
- if (!shouldForceKill(signal, options, killResult)) {
38494
- return;
38495
- }
38496
- const timeout = getForceKillAfterTimeout(options);
38497
- const t = setTimeout(() => {
38498
- kill("SIGKILL");
38499
- }, timeout);
38500
- if (t.unref) {
38501
- t.unref();
38502
- }
38503
- };
38504
- var shouldForceKill = (signal, { forceKillAfterTimeout }, killResult) => isSigterm(signal) && forceKillAfterTimeout !== false && killResult;
38505
- var isSigterm = (signal) => signal === import_node_os3.default.constants.signals.SIGTERM || typeof signal === "string" && signal.toUpperCase() === "SIGTERM";
38506
- var getForceKillAfterTimeout = ({ forceKillAfterTimeout = true }) => {
38507
- if (forceKillAfterTimeout === true) {
38508
- return DEFAULT_FORCE_KILL_TIMEOUT;
38509
- }
38510
- if (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) {
38511
- throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${forceKillAfterTimeout}\` (${typeof forceKillAfterTimeout})`);
38512
- }
38513
- return forceKillAfterTimeout;
38514
- };
38515
- var spawnedCancel = (spawned, context) => {
38516
- const killResult = spawned.kill();
38517
- if (killResult) {
38518
- context.isCanceled = true;
38519
- }
38520
- };
38521
- var timeoutKill = (spawned, signal, reject) => {
38522
- spawned.kill(signal);
38523
- reject(Object.assign(new Error("Timed out"), { timedOut: true, signal }));
38524
- };
38525
- var setupTimeout = (spawned, { timeout, killSignal = "SIGTERM" }, spawnedPromise) => {
38526
- if (timeout === 0 || timeout === void 0) {
38527
- return spawnedPromise;
38528
- }
38529
- let timeoutId;
38530
- const timeoutPromise = new Promise((resolve, reject) => {
38531
- timeoutId = setTimeout(() => {
38532
- timeoutKill(spawned, killSignal, reject);
38533
- }, timeout);
38534
- });
38535
- const safeSpawnedPromise = spawnedPromise.finally(() => {
38536
- clearTimeout(timeoutId);
38537
- });
38538
- return Promise.race([timeoutPromise, safeSpawnedPromise]);
38539
- };
38540
- var validateTimeout = ({ timeout }) => {
38541
- if (timeout !== void 0 && (!Number.isFinite(timeout) || timeout < 0)) {
38542
- throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${timeout}\` (${typeof timeout})`);
38543
- }
38544
- };
38545
- var setExitHandler = async (spawned, { cleanup, detached }, timedPromise) => {
38546
- if (!cleanup || detached) {
38547
- return timedPromise;
38548
- }
38549
- const removeExitHandler = onExit(() => {
38550
- spawned.kill();
38551
- });
38552
- return timedPromise.finally(() => {
38553
- removeExitHandler();
38554
- });
38555
- };
38556
-
38557
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/pipe.js
38558
- var import_node_fs3 = require("node:fs");
38559
- var import_node_child_process = require("node:child_process");
38560
-
38561
- // node_modules/.pnpm/is-stream@3.0.0/node_modules/is-stream/index.js
38562
- function isStream(stream) {
38563
- return stream !== null && typeof stream === "object" && typeof stream.pipe === "function";
38564
- }
38565
- function isWritableStream(stream) {
38566
- return isStream(stream) && stream.writable !== false && typeof stream._write === "function" && typeof stream._writableState === "object";
38567
- }
38568
-
38569
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/pipe.js
38570
- var isExecaChildProcess = (target) => target instanceof import_node_child_process.ChildProcess && typeof target.then === "function";
38571
- var pipeToTarget = (spawned, streamName, target) => {
38572
- if (typeof target === "string") {
38573
- spawned[streamName].pipe((0, import_node_fs3.createWriteStream)(target));
38574
- return spawned;
38575
- }
38576
- if (isWritableStream(target)) {
38577
- spawned[streamName].pipe(target);
38578
- return spawned;
38579
- }
38580
- if (!isExecaChildProcess(target)) {
38581
- throw new TypeError("The second argument must be a string, a stream or an Execa child process.");
38582
- }
38583
- if (!isWritableStream(target.stdin)) {
38584
- throw new TypeError("The target child process's stdin must be available.");
38585
- }
38586
- spawned[streamName].pipe(target.stdin);
38587
- return target;
38588
- };
38589
- var addPipeMethods = (spawned) => {
38590
- if (spawned.stdout !== null) {
38591
- spawned.pipeStdout = pipeToTarget.bind(void 0, spawned, "stdout");
38592
- }
38593
- if (spawned.stderr !== null) {
38594
- spawned.pipeStderr = pipeToTarget.bind(void 0, spawned, "stderr");
38595
- }
38596
- if (spawned.all !== void 0) {
38597
- spawned.pipeAll = pipeToTarget.bind(void 0, spawned, "all");
38598
- }
38599
- };
38600
-
38601
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/stream.js
38602
- var import_node_fs4 = require("node:fs");
38603
- var import_promises = require("node:timers/promises");
38604
-
38605
- // node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/contents.js
38606
- var getStreamContents = async (stream, { init, convertChunk, getSize, truncateChunk, addChunk, getFinalChunk, finalize }, { maxBuffer = Number.POSITIVE_INFINITY } = {}) => {
38607
- if (!isAsyncIterable(stream)) {
38608
- throw new Error("The first argument must be a Readable, a ReadableStream, or an async iterable.");
38609
- }
38610
- const state = init();
38611
- state.length = 0;
38612
- try {
38613
- for await (const chunk of stream) {
38614
- const chunkType = getChunkType(chunk);
38615
- const convertedChunk = convertChunk[chunkType](chunk, state);
38616
- appendChunk({ convertedChunk, state, getSize, truncateChunk, addChunk, maxBuffer });
38617
- }
38618
- appendFinalChunk({ state, convertChunk, getSize, truncateChunk, addChunk, getFinalChunk, maxBuffer });
38619
- return finalize(state);
38620
- } catch (error) {
38621
- error.bufferedData = finalize(state);
38622
- throw error;
38623
- }
38624
- };
38625
- var appendFinalChunk = ({ state, getSize, truncateChunk, addChunk, getFinalChunk, maxBuffer }) => {
38626
- const convertedChunk = getFinalChunk(state);
38627
- if (convertedChunk !== void 0) {
38628
- appendChunk({ convertedChunk, state, getSize, truncateChunk, addChunk, maxBuffer });
38629
- }
38630
- };
38631
- var appendChunk = ({ convertedChunk, state, getSize, truncateChunk, addChunk, maxBuffer }) => {
38632
- const chunkSize = getSize(convertedChunk);
38633
- const newLength = state.length + chunkSize;
38634
- if (newLength <= maxBuffer) {
38635
- addNewChunk(convertedChunk, state, addChunk, newLength);
38636
- return;
38637
- }
38638
- const truncatedChunk = truncateChunk(convertedChunk, maxBuffer - state.length);
38639
- if (truncatedChunk !== void 0) {
38640
- addNewChunk(truncatedChunk, state, addChunk, maxBuffer);
38641
- }
38642
- throw new MaxBufferError();
38643
- };
38644
- var addNewChunk = (convertedChunk, state, addChunk, newLength) => {
38645
- state.contents = addChunk(convertedChunk, state, newLength);
38646
- state.length = newLength;
38647
- };
38648
- var isAsyncIterable = (stream) => typeof stream === "object" && stream !== null && typeof stream[Symbol.asyncIterator] === "function";
38649
- var getChunkType = (chunk) => {
38650
- const typeOfChunk = typeof chunk;
38651
- if (typeOfChunk === "string") {
38652
- return "string";
38653
- }
38654
- if (typeOfChunk !== "object" || chunk === null) {
38655
- return "others";
38656
- }
38657
- if (globalThis.Buffer?.isBuffer(chunk)) {
38658
- return "buffer";
38659
- }
38660
- const prototypeName = objectToString.call(chunk);
38661
- if (prototypeName === "[object ArrayBuffer]") {
38662
- return "arrayBuffer";
38663
- }
38664
- if (prototypeName === "[object DataView]") {
38665
- return "dataView";
38666
- }
38667
- if (Number.isInteger(chunk.byteLength) && Number.isInteger(chunk.byteOffset) && objectToString.call(chunk.buffer) === "[object ArrayBuffer]") {
38668
- return "typedArray";
38669
- }
38670
- return "others";
38671
- };
38672
- var { toString: objectToString } = Object.prototype;
38673
- var MaxBufferError = class extends Error {
38674
- name = "MaxBufferError";
38675
- constructor() {
38676
- super("maxBuffer exceeded");
38677
- }
38678
- };
38679
-
38680
- // node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/utils.js
38681
- var identity = (value) => value;
38682
- var noop = () => void 0;
38683
- var getContentsProp = ({ contents }) => contents;
38684
- var throwObjectStream = (chunk) => {
38685
- throw new Error(`Streams in object mode are not supported: ${String(chunk)}`);
38686
- };
38687
- var getLengthProp = (convertedChunk) => convertedChunk.length;
38688
-
38689
- // node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/array-buffer.js
38690
- async function getStreamAsArrayBuffer(stream, options) {
38691
- return getStreamContents(stream, arrayBufferMethods, options);
38692
- }
38693
- var initArrayBuffer = () => ({ contents: new ArrayBuffer(0) });
38694
- var useTextEncoder = (chunk) => textEncoder.encode(chunk);
38695
- var textEncoder = new TextEncoder();
38696
- var useUint8Array = (chunk) => new Uint8Array(chunk);
38697
- var useUint8ArrayWithOffset = (chunk) => new Uint8Array(chunk.buffer, chunk.byteOffset, chunk.byteLength);
38698
- var truncateArrayBufferChunk = (convertedChunk, chunkSize) => convertedChunk.slice(0, chunkSize);
38699
- var addArrayBufferChunk = (convertedChunk, { contents, length: previousLength }, length) => {
38700
- const newContents = hasArrayBufferResize() ? resizeArrayBuffer(contents, length) : resizeArrayBufferSlow(contents, length);
38701
- new Uint8Array(newContents).set(convertedChunk, previousLength);
38702
- return newContents;
38703
- };
38704
- var resizeArrayBufferSlow = (contents, length) => {
38705
- if (length <= contents.byteLength) {
38706
- return contents;
38707
- }
38708
- const arrayBuffer = new ArrayBuffer(getNewContentsLength(length));
38709
- new Uint8Array(arrayBuffer).set(new Uint8Array(contents), 0);
38710
- return arrayBuffer;
38711
- };
38712
- var resizeArrayBuffer = (contents, length) => {
38713
- if (length <= contents.maxByteLength) {
38714
- contents.resize(length);
38715
- return contents;
38716
- }
38717
- const arrayBuffer = new ArrayBuffer(length, { maxByteLength: getNewContentsLength(length) });
38718
- new Uint8Array(arrayBuffer).set(new Uint8Array(contents), 0);
38719
- return arrayBuffer;
38720
- };
38721
- var getNewContentsLength = (length) => SCALE_FACTOR ** Math.ceil(Math.log(length) / Math.log(SCALE_FACTOR));
38722
- var SCALE_FACTOR = 2;
38723
- var finalizeArrayBuffer = ({ contents, length }) => hasArrayBufferResize() ? contents : contents.slice(0, length);
38724
- var hasArrayBufferResize = () => "resize" in ArrayBuffer.prototype;
38725
- var arrayBufferMethods = {
38726
- init: initArrayBuffer,
38727
- convertChunk: {
38728
- string: useTextEncoder,
38729
- buffer: useUint8Array,
38730
- arrayBuffer: useUint8Array,
38731
- dataView: useUint8ArrayWithOffset,
38732
- typedArray: useUint8ArrayWithOffset,
38733
- others: throwObjectStream
38734
- },
38735
- getSize: getLengthProp,
38736
- truncateChunk: truncateArrayBufferChunk,
38737
- addChunk: addArrayBufferChunk,
38738
- getFinalChunk: noop,
38739
- finalize: finalizeArrayBuffer
38740
- };
38741
-
38742
- // node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/buffer.js
38743
- async function getStreamAsBuffer(stream, options) {
38744
- if (!("Buffer" in globalThis)) {
38745
- throw new Error("getStreamAsBuffer() is only supported in Node.js");
38746
- }
38747
- try {
38748
- return arrayBufferToNodeBuffer(await getStreamAsArrayBuffer(stream, options));
38749
- } catch (error) {
38750
- if (error.bufferedData !== void 0) {
38751
- error.bufferedData = arrayBufferToNodeBuffer(error.bufferedData);
38752
- }
38753
- throw error;
38754
- }
38755
- }
38756
- var arrayBufferToNodeBuffer = (arrayBuffer) => globalThis.Buffer.from(arrayBuffer);
38757
-
38758
- // node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/string.js
38759
- async function getStreamAsString(stream, options) {
38760
- return getStreamContents(stream, stringMethods, options);
38761
- }
38762
- var initString = () => ({ contents: "", textDecoder: new TextDecoder() });
38763
- var useTextDecoder = (chunk, { textDecoder }) => textDecoder.decode(chunk, { stream: true });
38764
- var addStringChunk = (convertedChunk, { contents }) => contents + convertedChunk;
38765
- var truncateStringChunk = (convertedChunk, chunkSize) => convertedChunk.slice(0, chunkSize);
38766
- var getFinalStringChunk = ({ textDecoder }) => {
38767
- const finalChunk = textDecoder.decode();
38768
- return finalChunk === "" ? void 0 : finalChunk;
38769
- };
38770
- var stringMethods = {
38771
- init: initString,
38772
- convertChunk: {
38773
- string: identity,
38774
- buffer: useTextDecoder,
38775
- arrayBuffer: useTextDecoder,
38776
- dataView: useTextDecoder,
38777
- typedArray: useTextDecoder,
38778
- others: throwObjectStream
38779
- },
38780
- getSize: getLengthProp,
38781
- truncateChunk: truncateStringChunk,
38782
- addChunk: addStringChunk,
38783
- getFinalChunk: getFinalStringChunk,
38784
- finalize: getContentsProp
38785
- };
38786
-
38787
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/stream.js
38788
- var import_merge_stream = __toESM(require_merge_stream(), 1);
38789
- var validateInputOptions = (input) => {
38790
- if (input !== void 0) {
38791
- throw new TypeError("The `input` and `inputFile` options cannot be both set.");
38792
- }
38793
- };
38794
- var getInputSync = ({ input, inputFile }) => {
38795
- if (typeof inputFile !== "string") {
38796
- return input;
38797
- }
38798
- validateInputOptions(input);
38799
- return (0, import_node_fs4.readFileSync)(inputFile);
38800
- };
38801
- var handleInputSync = (options) => {
38802
- const input = getInputSync(options);
38803
- if (isStream(input)) {
38804
- throw new TypeError("The `input` option cannot be a stream in sync mode");
38805
- }
38806
- return input;
38807
- };
38808
- var getInput = ({ input, inputFile }) => {
38809
- if (typeof inputFile !== "string") {
38810
- return input;
38811
- }
38812
- validateInputOptions(input);
38813
- return (0, import_node_fs4.createReadStream)(inputFile);
38814
- };
38815
- var handleInput = (spawned, options) => {
38816
- const input = getInput(options);
38817
- if (input === void 0) {
38818
- return;
38819
- }
38820
- if (isStream(input)) {
38821
- input.pipe(spawned.stdin);
38822
- } else {
38823
- spawned.stdin.end(input);
38824
- }
38825
- };
38826
- var makeAllStream = (spawned, { all }) => {
38827
- if (!all || !spawned.stdout && !spawned.stderr) {
38828
- return;
38829
- }
38830
- const mixed = (0, import_merge_stream.default)();
38831
- if (spawned.stdout) {
38832
- mixed.add(spawned.stdout);
38833
- }
38834
- if (spawned.stderr) {
38835
- mixed.add(spawned.stderr);
38836
- }
38837
- return mixed;
38838
- };
38839
- var getBufferedData = async (stream, streamPromise) => {
38840
- if (!stream || streamPromise === void 0) {
38841
- return;
38842
- }
38843
- await (0, import_promises.setTimeout)(0);
38844
- stream.destroy();
38845
- try {
38846
- return await streamPromise;
38847
- } catch (error) {
38848
- return error.bufferedData;
38849
- }
38850
- };
38851
- var getStreamPromise = (stream, { encoding, buffer, maxBuffer }) => {
38852
- if (!stream || !buffer) {
38853
- return;
38854
- }
38855
- if (encoding === "utf8" || encoding === "utf-8") {
38856
- return getStreamAsString(stream, { maxBuffer });
38857
- }
38858
- if (encoding === null || encoding === "buffer") {
38859
- return getStreamAsBuffer(stream, { maxBuffer });
38860
- }
38861
- return applyEncoding(stream, maxBuffer, encoding);
38862
- };
38863
- var applyEncoding = async (stream, maxBuffer, encoding) => {
38864
- const buffer = await getStreamAsBuffer(stream, { maxBuffer });
38865
- return buffer.toString(encoding);
38866
- };
38867
- var getSpawnedResult = async ({ stdout, stderr, all }, { encoding, buffer, maxBuffer }, processDone) => {
38868
- const stdoutPromise = getStreamPromise(stdout, { encoding, buffer, maxBuffer });
38869
- const stderrPromise = getStreamPromise(stderr, { encoding, buffer, maxBuffer });
38870
- const allPromise = getStreamPromise(all, { encoding, buffer, maxBuffer: maxBuffer * 2 });
38871
- try {
38872
- return await Promise.all([processDone, stdoutPromise, stderrPromise, allPromise]);
38873
- } catch (error) {
38874
- return Promise.all([
38875
- { error, signal: error.signal, timedOut: error.timedOut },
38876
- getBufferedData(stdout, stdoutPromise),
38877
- getBufferedData(stderr, stderrPromise),
38878
- getBufferedData(all, allPromise)
38879
- ]);
38880
- }
38881
- };
38882
-
38883
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/promise.js
38884
- var nativePromisePrototype = (async () => {
38885
- })().constructor.prototype;
38886
- var descriptors = ["then", "catch", "finally"].map((property) => [
38887
- property,
38888
- Reflect.getOwnPropertyDescriptor(nativePromisePrototype, property)
38889
- ]);
38890
- var mergePromise = (spawned, promise) => {
38891
- for (const [property, descriptor] of descriptors) {
38892
- const value = typeof promise === "function" ? (...args) => Reflect.apply(descriptor.value, promise(), args) : descriptor.value.bind(promise);
38893
- Reflect.defineProperty(spawned, property, { ...descriptor, value });
38894
- }
38895
- };
38896
- var getSpawnedPromise = (spawned) => new Promise((resolve, reject) => {
38897
- spawned.on("exit", (exitCode, signal) => {
38898
- resolve({ exitCode, signal });
38899
- });
38900
- spawned.on("error", (error) => {
38901
- reject(error);
38902
- });
38903
- if (spawned.stdin) {
38904
- spawned.stdin.on("error", (error) => {
38905
- reject(error);
38906
- });
38907
- }
38908
- });
38909
-
38910
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/command.js
38911
- var import_node_buffer = require("node:buffer");
38912
- var import_node_child_process2 = require("node:child_process");
38913
- var normalizeArgs = (file, args = []) => {
38914
- if (!Array.isArray(args)) {
38915
- return [file];
38916
- }
38917
- return [file, ...args];
38918
- };
38919
- var NO_ESCAPE_REGEXP = /^[\w.-]+$/;
38920
- var escapeArg = (arg) => {
38921
- if (typeof arg !== "string" || NO_ESCAPE_REGEXP.test(arg)) {
38922
- return arg;
38923
- }
38924
- return `"${arg.replaceAll('"', '\\"')}"`;
38925
- };
38926
- var joinCommand = (file, args) => normalizeArgs(file, args).join(" ");
38927
- var getEscapedCommand = (file, args) => normalizeArgs(file, args).map((arg) => escapeArg(arg)).join(" ");
38928
- var SPACES_REGEXP = / +/g;
38929
- var parseExpression = (expression) => {
38930
- const typeOfExpression = typeof expression;
38931
- if (typeOfExpression === "string") {
38932
- return expression;
38933
- }
38934
- if (typeOfExpression === "number") {
38935
- return String(expression);
38936
- }
38937
- if (typeOfExpression === "object" && expression !== null && !(expression instanceof import_node_child_process2.ChildProcess) && "stdout" in expression) {
38938
- const typeOfStdout = typeof expression.stdout;
38939
- if (typeOfStdout === "string") {
38940
- return expression.stdout;
38941
- }
38942
- if (import_node_buffer.Buffer.isBuffer(expression.stdout)) {
38943
- return expression.stdout.toString();
38944
- }
38945
- throw new TypeError(`Unexpected "${typeOfStdout}" stdout in template expression`);
38946
- }
38947
- throw new TypeError(`Unexpected "${typeOfExpression}" in template expression`);
38948
- };
38949
- var concatTokens = (tokens, nextTokens, isNew) => isNew || tokens.length === 0 || nextTokens.length === 0 ? [...tokens, ...nextTokens] : [
38950
- ...tokens.slice(0, -1),
38951
- `${tokens.at(-1)}${nextTokens[0]}`,
38952
- ...nextTokens.slice(1)
38953
- ];
38954
- var parseTemplate = ({ templates, expressions, tokens, index, template }) => {
38955
- const templateString = template ?? templates.raw[index];
38956
- const templateTokens = templateString.split(SPACES_REGEXP).filter(Boolean);
38957
- const newTokens = concatTokens(
38958
- tokens,
38959
- templateTokens,
38960
- templateString.startsWith(" ")
38961
- );
38962
- if (index === expressions.length) {
38963
- return newTokens;
38964
- }
38965
- const expression = expressions[index];
38966
- const expressionTokens = Array.isArray(expression) ? expression.map((expression2) => parseExpression(expression2)) : [parseExpression(expression)];
38967
- return concatTokens(
38968
- newTokens,
38969
- expressionTokens,
38970
- templateString.endsWith(" ")
38971
- );
38972
- };
38973
- var parseTemplates = (templates, expressions) => {
38974
- let tokens = [];
38975
- for (const [index, template] of templates.entries()) {
38976
- tokens = parseTemplate({ templates, expressions, tokens, index, template });
38977
- }
38978
- return tokens;
38979
- };
38980
-
38981
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/verbose.js
38982
- var import_node_util = require("node:util");
38983
- var import_node_process3 = __toESM(require("node:process"), 1);
38984
- var verboseDefault = (0, import_node_util.debuglog)("execa").enabled;
38985
- var padField = (field, padding) => String(field).padStart(padding, "0");
38986
- var getTimestamp = () => {
38987
- const date = /* @__PURE__ */ new Date();
38988
- return `${padField(date.getHours(), 2)}:${padField(date.getMinutes(), 2)}:${padField(date.getSeconds(), 2)}.${padField(date.getMilliseconds(), 3)}`;
38989
- };
38990
- var logCommand = (escapedCommand, { verbose }) => {
38991
- if (!verbose) {
38992
- return;
38993
- }
38994
- import_node_process3.default.stderr.write(`[${getTimestamp()}] ${escapedCommand}
38995
- `);
38996
- };
38997
-
38998
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/index.js
38999
- var DEFAULT_MAX_BUFFER = 1e3 * 1e3 * 100;
39000
- var getEnv = ({ env: envOption, extendEnv, preferLocal, localDir, execPath }) => {
39001
- const env = extendEnv ? { ...import_node_process4.default.env, ...envOption } : envOption;
39002
- if (preferLocal) {
39003
- return npmRunPathEnv({ env, cwd: localDir, execPath });
39004
- }
39005
- return env;
39006
- };
39007
- var handleArguments = (file, args, options = {}) => {
39008
- const parsed = import_cross_spawn.default._parse(file, args, options);
39009
- file = parsed.command;
39010
- args = parsed.args;
39011
- options = parsed.options;
39012
- options = {
39013
- maxBuffer: DEFAULT_MAX_BUFFER,
39014
- buffer: true,
39015
- stripFinalNewline: true,
39016
- extendEnv: true,
39017
- preferLocal: false,
39018
- localDir: options.cwd || import_node_process4.default.cwd(),
39019
- execPath: import_node_process4.default.execPath,
39020
- encoding: "utf8",
39021
- reject: true,
39022
- cleanup: true,
39023
- all: false,
39024
- windowsHide: true,
39025
- verbose: verboseDefault,
39026
- ...options
39027
- };
39028
- options.env = getEnv(options);
39029
- options.stdio = normalizeStdio(options);
39030
- if (import_node_process4.default.platform === "win32" && import_node_path4.default.basename(file, ".exe") === "cmd") {
39031
- args.unshift("/q");
39032
- }
39033
- return { file, args, options, parsed };
39034
- };
39035
- var handleOutput = (options, value, error) => {
39036
- if (typeof value !== "string" && !import_node_buffer2.Buffer.isBuffer(value)) {
39037
- return error === void 0 ? void 0 : "";
39038
- }
39039
- if (options.stripFinalNewline) {
39040
- return stripFinalNewline(value);
39041
- }
39042
- return value;
39043
- };
39044
- function execa(file, args, options) {
39045
- const parsed = handleArguments(file, args, options);
39046
- const command = joinCommand(file, args);
39047
- const escapedCommand = getEscapedCommand(file, args);
39048
- logCommand(escapedCommand, parsed.options);
39049
- validateTimeout(parsed.options);
39050
- let spawned;
39051
- try {
39052
- spawned = import_node_child_process3.default.spawn(parsed.file, parsed.args, parsed.options);
39053
- } catch (error) {
39054
- const dummySpawned = new import_node_child_process3.default.ChildProcess();
39055
- const errorPromise = Promise.reject(makeError({
39056
- error,
39057
- stdout: "",
39058
- stderr: "",
39059
- all: "",
39060
- command,
39061
- escapedCommand,
39062
- parsed,
39063
- timedOut: false,
39064
- isCanceled: false,
39065
- killed: false
39066
- }));
39067
- mergePromise(dummySpawned, errorPromise);
39068
- return dummySpawned;
39069
- }
39070
- const spawnedPromise = getSpawnedPromise(spawned);
39071
- const timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise);
39072
- const processDone = setExitHandler(spawned, parsed.options, timedPromise);
39073
- const context = { isCanceled: false };
39074
- spawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned));
39075
- spawned.cancel = spawnedCancel.bind(null, spawned, context);
39076
- const handlePromise = async () => {
39077
- const [{ error, exitCode, signal, timedOut }, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone);
39078
- const stdout = handleOutput(parsed.options, stdoutResult);
39079
- const stderr = handleOutput(parsed.options, stderrResult);
39080
- const all = handleOutput(parsed.options, allResult);
39081
- if (error || exitCode !== 0 || signal !== null) {
39082
- const returnedError = makeError({
39083
- error,
39084
- exitCode,
39085
- signal,
39086
- stdout,
39087
- stderr,
39088
- all,
39089
- command,
39090
- escapedCommand,
39091
- parsed,
39092
- timedOut,
39093
- isCanceled: context.isCanceled || (parsed.options.signal ? parsed.options.signal.aborted : false),
39094
- killed: spawned.killed
39095
- });
39096
- if (!parsed.options.reject) {
39097
- return returnedError;
39098
- }
39099
- throw returnedError;
39100
- }
39101
- return {
39102
- command,
39103
- escapedCommand,
39104
- exitCode: 0,
39105
- stdout,
39106
- stderr,
39107
- all,
39108
- failed: false,
39109
- timedOut: false,
39110
- isCanceled: false,
39111
- killed: false
39112
- };
39113
- };
39114
- const handlePromiseOnce = onetime_default(handlePromise);
39115
- handleInput(spawned, parsed.options);
39116
- spawned.all = makeAllStream(spawned, parsed.options);
39117
- addPipeMethods(spawned);
39118
- mergePromise(spawned, handlePromiseOnce);
39119
- return spawned;
39120
- }
39121
- function execaSync(file, args, options) {
39122
- const parsed = handleArguments(file, args, options);
39123
- const command = joinCommand(file, args);
39124
- const escapedCommand = getEscapedCommand(file, args);
39125
- logCommand(escapedCommand, parsed.options);
39126
- const input = handleInputSync(parsed.options);
39127
- let result;
39128
- try {
39129
- result = import_node_child_process3.default.spawnSync(parsed.file, parsed.args, { ...parsed.options, input });
39130
- } catch (error) {
39131
- throw makeError({
39132
- error,
39133
- stdout: "",
39134
- stderr: "",
39135
- all: "",
39136
- command,
39137
- escapedCommand,
39138
- parsed,
39139
- timedOut: false,
39140
- isCanceled: false,
39141
- killed: false
39142
- });
39143
- }
39144
- const stdout = handleOutput(parsed.options, result.stdout, result.error);
39145
- const stderr = handleOutput(parsed.options, result.stderr, result.error);
39146
- if (result.error || result.status !== 0 || result.signal !== null) {
39147
- const error = makeError({
39148
- stdout,
39149
- stderr,
39150
- error: result.error,
39151
- signal: result.signal,
39152
- exitCode: result.status,
39153
- command,
39154
- escapedCommand,
39155
- parsed,
39156
- timedOut: result.error && result.error.code === "ETIMEDOUT",
39157
- isCanceled: false,
39158
- killed: result.signal !== null
39159
- });
39160
- if (!parsed.options.reject) {
39161
- return error;
39162
- }
39163
- throw error;
39164
- }
39165
- return {
39166
- command,
39167
- escapedCommand,
39168
- exitCode: 0,
39169
- stdout,
39170
- stderr,
39171
- failed: false,
39172
- timedOut: false,
39173
- isCanceled: false,
39174
- killed: false
39175
- };
39176
- }
39177
- var normalizeScriptStdin = ({ input, inputFile, stdio }) => input === void 0 && inputFile === void 0 && stdio === void 0 ? { stdin: "inherit" } : {};
39178
- var normalizeScriptOptions = (options = {}) => ({
39179
- preferLocal: true,
39180
- ...normalizeScriptStdin(options),
39181
- ...options
39182
- });
39183
- function create$(options) {
39184
- function $2(templatesOrOptions, ...expressions) {
39185
- if (!Array.isArray(templatesOrOptions)) {
39186
- return create$({ ...options, ...templatesOrOptions });
39187
- }
39188
- const [file, ...args] = parseTemplates(templatesOrOptions, expressions);
39189
- return execa(file, args, normalizeScriptOptions(options));
39190
- }
39191
- $2.sync = (templates, ...expressions) => {
39192
- if (!Array.isArray(templates)) {
39193
- throw new TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");
39194
- }
39195
- const [file, ...args] = parseTemplates(templates, expressions);
39196
- return execaSync(file, args, normalizeScriptOptions(options));
39197
- };
39198
- return $2;
39199
- }
39200
- var $ = create$();
39201
-
39202
37088
  // packages/config-tools/src/utilities/run.ts
39203
37089
  var LARGE_BUFFER = 1024 * 1e6;
39204
37090