@kubb/cli 3.0.0-alpha.9 → 3.0.0-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,50 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class; var _class2;var __create = Object.create;
1
+ 'use strict';
2
+
3
+ var tty = require('tty');
4
+ var url = require('url');
5
+ var child_process = require('child_process');
6
+ var string_decoder = require('string_decoder');
7
+ var util = require('util');
8
+ var process3 = require('process');
9
+ var path2 = require('path');
10
+ var promises$1 = require('timers/promises');
11
+ var os = require('os');
12
+ var events = require('events');
13
+ var v8 = require('v8');
14
+ var fs = require('fs');
15
+ var promises = require('stream/promises');
16
+ var stream = require('stream');
17
+ var buffer = require('buffer');
18
+ var logger = require('@kubb/core/logger');
19
+ var core = require('@kubb/core');
20
+ var stringArgv = require('string-argv');
21
+ var cliProgress = require('cli-progress');
22
+
23
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
24
+
25
+ function _interopNamespace(e) {
26
+ if (e && e.__esModule) return e;
27
+ var n = Object.create(null);
28
+ if (e) {
29
+ Object.keys(e).forEach(function (k) {
30
+ if (k !== 'default') {
31
+ var d = Object.getOwnPropertyDescriptor(e, k);
32
+ Object.defineProperty(n, k, d.get ? d : {
33
+ enumerable: true,
34
+ get: function () { return e[k]; }
35
+ });
36
+ }
37
+ });
38
+ }
39
+ n.default = e;
40
+ return Object.freeze(n);
41
+ }
42
+
43
+ var tty__default = /*#__PURE__*/_interopDefault(tty);
44
+ var process3__namespace = /*#__PURE__*/_interopNamespace(process3);
45
+ var path2__default = /*#__PURE__*/_interopDefault(path2);
46
+
47
+ var __create = Object.create;
2
48
  var __defProp = Object.defineProperty;
3
49
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
50
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -29,26 +75,27 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
29
75
  // file that has been converted to a CommonJS file using a Babel-
30
76
  // compatible transform (i.e. "__esModule" has not been set), then set
31
77
  // "default" to the CommonJS "module.exports" for node compatibility.
32
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
78
+ __defProp(target, "default", { value: mod, enumerable: true }) ,
33
79
  mod
34
80
  ));
35
81
 
36
- // ../../node_modules/.pnpm/tsup@8.2.4_@microsoft+api-extractor@7.47.7_@types+node@20.16.2__jiti@1.21.6_postcss@8.4.41_typescript@5.5.4_yaml@2.4.5/node_modules/tsup/assets/cjs_shims.js
82
+ // ../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.47.11_@types+node@20.17.3__@swc+core@1.7.22_jiti@2.3.3__njwlryiwvpy37iky3y3g2bvfku/node_modules/tsup/assets/cjs_shims.js
83
+ var getImportMetaUrl; exports.importMetaUrl = void 0;
37
84
  var init_cjs_shims = __esm({
38
- "../../node_modules/.pnpm/tsup@8.2.4_@microsoft+api-extractor@7.47.7_@types+node@20.16.2__jiti@1.21.6_postcss@8.4.41_typescript@5.5.4_yaml@2.4.5/node_modules/tsup/assets/cjs_shims.js"() {
39
- "use strict";
85
+ "../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.47.11_@types+node@20.17.3__@swc+core@1.7.22_jiti@2.3.3__njwlryiwvpy37iky3y3g2bvfku/node_modules/tsup/assets/cjs_shims.js"() {
86
+ getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
87
+ exports.importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
40
88
  }
41
89
  });
42
90
 
43
91
  // ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js
44
92
  var require_windows = __commonJS({
45
93
  "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports, module) {
46
- "use strict";
47
94
  init_cjs_shims();
48
95
  module.exports = isexe;
49
96
  isexe.sync = sync;
50
97
  var fs = __require("fs");
51
- function checkPathExt(path6, options) {
98
+ function checkPathExt(path7, options) {
52
99
  var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
53
100
  if (!pathext) {
54
101
  return true;
@@ -59,25 +106,25 @@ var require_windows = __commonJS({
59
106
  }
60
107
  for (var i2 = 0; i2 < pathext.length; i2++) {
61
108
  var p3 = pathext[i2].toLowerCase();
62
- if (p3 && path6.substr(-p3.length).toLowerCase() === p3) {
109
+ if (p3 && path7.substr(-p3.length).toLowerCase() === p3) {
63
110
  return true;
64
111
  }
65
112
  }
66
113
  return false;
67
114
  }
68
- function checkStat(stat, path6, options) {
115
+ function checkStat(stat, path7, options) {
69
116
  if (!stat.isSymbolicLink() && !stat.isFile()) {
70
117
  return false;
71
118
  }
72
- return checkPathExt(path6, options);
119
+ return checkPathExt(path7, options);
73
120
  }
74
- function isexe(path6, options, cb) {
75
- fs.stat(path6, function(er, stat) {
76
- cb(er, er ? false : checkStat(stat, path6, options));
121
+ function isexe(path7, options, cb) {
122
+ fs.stat(path7, function(er, stat) {
123
+ cb(er, er ? false : checkStat(stat, path7, options));
77
124
  });
78
125
  }
79
- function sync(path6, options) {
80
- return checkStat(fs.statSync(path6), path6, options);
126
+ function sync(path7, options) {
127
+ return checkStat(fs.statSync(path7), path7, options);
81
128
  }
82
129
  }
83
130
  });
@@ -85,18 +132,17 @@ var require_windows = __commonJS({
85
132
  // ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js
86
133
  var require_mode = __commonJS({
87
134
  "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports, module) {
88
- "use strict";
89
135
  init_cjs_shims();
90
136
  module.exports = isexe;
91
137
  isexe.sync = sync;
92
138
  var fs = __require("fs");
93
- function isexe(path6, options, cb) {
94
- fs.stat(path6, function(er, stat) {
139
+ function isexe(path7, options, cb) {
140
+ fs.stat(path7, function(er, stat) {
95
141
  cb(er, er ? false : checkStat(stat, options));
96
142
  });
97
143
  }
98
- function sync(path6, options) {
99
- return checkStat(fs.statSync(path6), options);
144
+ function sync(path7, options) {
145
+ return checkStat(fs.statSync(path7), options);
100
146
  }
101
147
  function checkStat(stat, options) {
102
148
  return stat.isFile() && checkMode(stat, options);
@@ -120,9 +166,8 @@ var require_mode = __commonJS({
120
166
  // ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js
121
167
  var require_isexe = __commonJS({
122
168
  "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports, module) {
123
- "use strict";
124
169
  init_cjs_shims();
125
- var fs = __require("fs");
170
+ __require("fs");
126
171
  var core;
127
172
  if (process.platform === "win32" || global.TESTING_WINDOWS) {
128
173
  core = require_windows();
@@ -131,7 +176,7 @@ var require_isexe = __commonJS({
131
176
  }
132
177
  module.exports = isexe;
133
178
  isexe.sync = sync;
134
- function isexe(path6, options, cb) {
179
+ function isexe(path7, options, cb) {
135
180
  if (typeof options === "function") {
136
181
  cb = options;
137
182
  options = {};
@@ -140,17 +185,17 @@ var require_isexe = __commonJS({
140
185
  if (typeof Promise !== "function") {
141
186
  throw new TypeError("callback not provided");
142
187
  }
143
- return new Promise(function(resolve2, reject) {
144
- isexe(path6, options || {}, function(er, is) {
188
+ return new Promise(function(resolve, reject) {
189
+ isexe(path7, options || {}, function(er, is) {
145
190
  if (er) {
146
191
  reject(er);
147
192
  } else {
148
- resolve2(is);
193
+ resolve(is);
149
194
  }
150
195
  });
151
196
  });
152
197
  }
153
- core(path6, options || {}, function(er, is) {
198
+ core(path7, options || {}, function(er, is) {
154
199
  if (er) {
155
200
  if (er.code === "EACCES" || options && options.ignoreErrors) {
156
201
  er = null;
@@ -160,9 +205,9 @@ var require_isexe = __commonJS({
160
205
  cb(er, is);
161
206
  });
162
207
  }
163
- function sync(path6, options) {
208
+ function sync(path7, options) {
164
209
  try {
165
- return core.sync(path6, options || {});
210
+ return core.sync(path7, options || {});
166
211
  } catch (er) {
167
212
  if (options && options.ignoreErrors || er.code === "EACCES") {
168
213
  return false;
@@ -177,10 +222,9 @@ var require_isexe = __commonJS({
177
222
  // ../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
178
223
  var require_which = __commonJS({
179
224
  "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports, module) {
180
- "use strict";
181
225
  init_cjs_shims();
182
226
  var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
183
- var path6 = __require("path");
227
+ var path7 = __require("path");
184
228
  var COLON = isWindows ? ";" : ":";
185
229
  var isexe = require_isexe();
186
230
  var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
@@ -213,27 +257,27 @@ var require_which = __commonJS({
213
257
  opt = {};
214
258
  const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
215
259
  const found = [];
216
- const step = (i2) => new Promise((resolve2, reject) => {
260
+ const step = (i2) => new Promise((resolve, reject) => {
217
261
  if (i2 === pathEnv.length)
218
- return opt.all && found.length ? resolve2(found) : reject(getNotFoundError(cmd));
262
+ return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
219
263
  const ppRaw = pathEnv[i2];
220
264
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
221
- const pCmd = path6.join(pathPart, cmd);
265
+ const pCmd = path7.join(pathPart, cmd);
222
266
  const p3 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
223
- resolve2(subStep(p3, i2, 0));
267
+ resolve(subStep(p3, i2, 0));
224
268
  });
225
- const subStep = (p3, i2, ii) => new Promise((resolve2, reject) => {
269
+ const subStep = (p3, i2, ii) => new Promise((resolve, reject) => {
226
270
  if (ii === pathExt.length)
227
- return resolve2(step(i2 + 1));
271
+ return resolve(step(i2 + 1));
228
272
  const ext = pathExt[ii];
229
273
  isexe(p3 + ext, { pathExt: pathExtExe }, (er, is) => {
230
274
  if (!er && is) {
231
275
  if (opt.all)
232
276
  found.push(p3 + ext);
233
277
  else
234
- return resolve2(p3 + ext);
278
+ return resolve(p3 + ext);
235
279
  }
236
- return resolve2(subStep(p3, i2, ii + 1));
280
+ return resolve(subStep(p3, i2, ii + 1));
237
281
  });
238
282
  });
239
283
  return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
@@ -245,7 +289,7 @@ var require_which = __commonJS({
245
289
  for (let i2 = 0; i2 < pathEnv.length; i2++) {
246
290
  const ppRaw = pathEnv[i2];
247
291
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
248
- const pCmd = path6.join(pathPart, cmd);
292
+ const pCmd = path7.join(pathPart, cmd);
249
293
  const p3 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
250
294
  for (let j = 0; j < pathExt.length; j++) {
251
295
  const cur = p3 + pathExt[j];
@@ -275,7 +319,6 @@ var require_which = __commonJS({
275
319
  // ../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js
276
320
  var require_path_key = __commonJS({
277
321
  "../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(exports, module) {
278
- "use strict";
279
322
  init_cjs_shims();
280
323
  var pathKey2 = (options = {}) => {
281
324
  const environment = options.env || process.env;
@@ -293,9 +336,8 @@ var require_path_key = __commonJS({
293
336
  // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js
294
337
  var require_resolveCommand = __commonJS({
295
338
  "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module) {
296
- "use strict";
297
339
  init_cjs_shims();
298
- var path6 = __require("path");
340
+ var path7 = __require("path");
299
341
  var which = require_which();
300
342
  var getPathKey = require_path_key();
301
343
  function resolveCommandAttempt(parsed, withoutPathExt) {
@@ -313,7 +355,7 @@ var require_resolveCommand = __commonJS({
313
355
  try {
314
356
  resolved = which.sync(parsed.command, {
315
357
  path: env[getPathKey({ env })],
316
- pathExt: withoutPathExt ? path6.delimiter : void 0
358
+ pathExt: withoutPathExt ? path7.delimiter : void 0
317
359
  });
318
360
  } catch (e) {
319
361
  } finally {
@@ -322,7 +364,7 @@ var require_resolveCommand = __commonJS({
322
364
  }
323
365
  }
324
366
  if (resolved) {
325
- resolved = path6.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
367
+ resolved = path7.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
326
368
  }
327
369
  return resolved;
328
370
  }
@@ -336,7 +378,6 @@ var require_resolveCommand = __commonJS({
336
378
  // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js
337
379
  var require_escape = __commonJS({
338
380
  "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js"(exports, module) {
339
- "use strict";
340
381
  init_cjs_shims();
341
382
  var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
342
383
  function escapeCommand(arg) {
@@ -362,7 +403,6 @@ var require_escape = __commonJS({
362
403
  // ../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js
363
404
  var require_shebang_regex = __commonJS({
364
405
  "../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(exports, module) {
365
- "use strict";
366
406
  init_cjs_shims();
367
407
  module.exports = /^#!(.*)/;
368
408
  }
@@ -371,7 +411,6 @@ var require_shebang_regex = __commonJS({
371
411
  // ../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js
372
412
  var require_shebang_command = __commonJS({
373
413
  "../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(exports, module) {
374
- "use strict";
375
414
  init_cjs_shims();
376
415
  var shebangRegex = require_shebang_regex();
377
416
  module.exports = (string = "") => {
@@ -379,8 +418,8 @@ var require_shebang_command = __commonJS({
379
418
  if (!match) {
380
419
  return null;
381
420
  }
382
- const [path6, argument] = match[0].replace(/#! ?/, "").split(" ");
383
- const binary = path6.split("/").pop();
421
+ const [path7, argument] = match[0].replace(/#! ?/, "").split(" ");
422
+ const binary = path7.split("/").pop();
384
423
  if (binary === "env") {
385
424
  return argument;
386
425
  }
@@ -392,7 +431,6 @@ var require_shebang_command = __commonJS({
392
431
  // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js
393
432
  var require_readShebang = __commonJS({
394
433
  "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module) {
395
- "use strict";
396
434
  init_cjs_shims();
397
435
  var fs = __require("fs");
398
436
  var shebangCommand = require_shebang_command();
@@ -415,9 +453,8 @@ var require_readShebang = __commonJS({
415
453
  // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js
416
454
  var require_parse = __commonJS({
417
455
  "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js"(exports, module) {
418
- "use strict";
419
456
  init_cjs_shims();
420
- var path6 = __require("path");
457
+ var path7 = __require("path");
421
458
  var resolveCommand = require_resolveCommand();
422
459
  var escape = require_escape();
423
460
  var readShebang = require_readShebang();
@@ -442,7 +479,7 @@ var require_parse = __commonJS({
442
479
  const needsShell = !isExecutableRegExp.test(commandFile);
443
480
  if (parsed.options.forceShell || needsShell) {
444
481
  const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
445
- parsed.command = path6.normalize(parsed.command);
482
+ parsed.command = path7.normalize(parsed.command);
446
483
  parsed.command = escape.command(parsed.command);
447
484
  parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
448
485
  const shellCommand = [parsed.command].concat(parsed.args).join(" ");
@@ -478,7 +515,6 @@ var require_parse = __commonJS({
478
515
  // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js
479
516
  var require_enoent = __commonJS({
480
517
  "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js"(exports, module) {
481
- "use strict";
482
518
  init_cjs_shims();
483
519
  var isWin = process.platform === "win32";
484
520
  function notFoundError(original, syscall) {
@@ -497,7 +533,7 @@ var require_enoent = __commonJS({
497
533
  const originalEmit = cp.emit;
498
534
  cp.emit = function(name, arg1) {
499
535
  if (name === "exit") {
500
- const err = verifyENOENT(arg1, parsed, "spawn");
536
+ const err = verifyENOENT(arg1, parsed);
501
537
  if (err) {
502
538
  return originalEmit.call(cp, "error", err);
503
539
  }
@@ -529,7 +565,6 @@ var require_enoent = __commonJS({
529
565
  // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js
530
566
  var require_cross_spawn = __commonJS({
531
567
  "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js"(exports, module) {
532
- "use strict";
533
568
  init_cjs_shims();
534
569
  var cp = __require("child_process");
535
570
  var parse = require_parse();
@@ -557,7 +592,6 @@ var require_cross_spawn = __commonJS({
557
592
  // ../../node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.js
558
593
  var require_eventemitter3 = __commonJS({
559
594
  "../../node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.js"(exports, module) {
560
- "use strict";
561
595
  init_cjs_shims();
562
596
  var has = Object.prototype.hasOwnProperty;
563
597
  var prefix = "~";
@@ -799,15 +833,12 @@ function p(n2 = false) {
799
833
  ) : a;
800
834
  return u2;
801
835
  }
836
+ var p2 = p(tty.isatty(1));
802
837
 
803
- // ../../node_modules/.pnpm/tinyrainbow@1.2.0/node_modules/tinyrainbow/dist/node.js
804
- var _tty = require('tty'); var _tty2 = _interopRequireDefault(_tty);
805
- var p2 = p(_tty.isatty.call(void 0, 1));
806
-
807
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/index.js
838
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/index.js
808
839
  init_cjs_shims();
809
840
 
810
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/methods/create.js
841
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/methods/create.js
811
842
  init_cjs_shims();
812
843
 
813
844
  // ../../node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.js
@@ -820,22 +851,23 @@ function isPlainObject(value) {
820
851
  return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
821
852
  }
822
853
 
823
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/methods/parameters.js
854
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/methods/parameters.js
824
855
  init_cjs_shims();
825
856
 
826
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/arguments/file-url.js
857
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/arguments/file-url.js
827
858
  init_cjs_shims();
828
- var _url = require('url');
829
859
  var safeNormalizeFileUrl = (file, name) => {
830
- const fileString = normalizeFileUrl(file);
860
+ const fileString = normalizeFileUrl(normalizeDenoExecPath(file));
831
861
  if (typeof fileString !== "string") {
832
862
  throw new TypeError(`${name} must be a string or a file URL: ${fileString}.`);
833
863
  }
834
864
  return fileString;
835
865
  };
836
- var normalizeFileUrl = (file) => file instanceof URL ? _url.fileURLToPath.call(void 0, file) : file;
866
+ var normalizeDenoExecPath = (file) => isDenoExecPath(file) ? file.toString() : file;
867
+ var isDenoExecPath = (file) => typeof file !== "string" && file && Object.getPrototypeOf(file) === String.prototype;
868
+ var normalizeFileUrl = (file) => file instanceof URL ? url.fileURLToPath(file) : file;
837
869
 
838
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/methods/parameters.js
870
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/methods/parameters.js
839
871
  var normalizeParameters = (rawFile, rawArguments = [], rawOptions = {}) => {
840
872
  const filePath = safeNormalizeFileUrl(rawFile, "First argument");
841
873
  const [commandArguments, options] = isPlainObject(rawArguments) ? [[], rawArguments] : [rawArguments, rawOptions];
@@ -856,13 +888,11 @@ var normalizeParameters = (rawFile, rawArguments = [], rawOptions = {}) => {
856
888
  return [filePath, normalizedArguments, options];
857
889
  };
858
890
 
859
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/methods/template.js
891
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/methods/template.js
860
892
  init_cjs_shims();
861
- var _child_process = require('child_process');
862
893
 
863
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/utils/uint-array.js
894
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/utils/uint-array.js
864
895
  init_cjs_shims();
865
- var _string_decoder = require('string_decoder');
866
896
  var { toString: objectToString } = Object.prototype;
867
897
  var isArrayBuffer = (value) => objectToString.call(value) === "[object ArrayBuffer]";
868
898
  var isUint8Array = (value) => objectToString.call(value) === "[object Uint8Array]";
@@ -879,7 +909,7 @@ var uint8ArraysToStrings = (uint8ArraysOrStrings, encoding) => {
879
909
  if (encoding === "utf8" && uint8ArraysOrStrings.every((uint8ArrayOrString) => typeof uint8ArrayOrString === "string")) {
880
910
  return uint8ArraysOrStrings;
881
911
  }
882
- const decoder = new (0, _string_decoder.StringDecoder)(encoding);
912
+ const decoder = new string_decoder.StringDecoder(encoding);
883
913
  const strings = uint8ArraysOrStrings.map((uint8ArrayOrString) => typeof uint8ArrayOrString === "string" ? stringToUint8Array(uint8ArrayOrString) : uint8ArrayOrString).map((uint8Array) => decoder.write(uint8Array));
884
914
  const finalString = decoder.end();
885
915
  return finalString === "" ? strings : [...strings, finalString];
@@ -908,7 +938,7 @@ var getJoinLength = (uint8Arrays) => {
908
938
  return joinLength;
909
939
  };
910
940
 
911
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/methods/template.js
941
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/methods/template.js
912
942
  var isTemplateString = (templates) => Array.isArray(templates) && Array.isArray(templates.raw);
913
943
  var parseTemplates = (templates, expressions) => {
914
944
  let tokens = [];
@@ -959,7 +989,7 @@ var splitByWhitespaces = (template, rawTemplate) => {
959
989
  if (nextRawCharacter === "u" && rawTemplate[rawIndex + 2] === "{") {
960
990
  rawIndex = rawTemplate.indexOf("}", rawIndex + 3);
961
991
  } else {
962
- rawIndex += _nullishCoalesce(ESCAPE_LENGTH[nextRawCharacter], () => ( 1));
992
+ rawIndex += ESCAPE_LENGTH[nextRawCharacter] ?? 1;
963
993
  }
964
994
  }
965
995
  }
@@ -987,7 +1017,7 @@ var parseExpression = (expression) => {
987
1017
  if (isPlainObject(expression) && ("stdout" in expression || "isMaxBuffer" in expression)) {
988
1018
  return getSubprocessResult(expression);
989
1019
  }
990
- if (expression instanceof _child_process.ChildProcess || Object.prototype.toString.call(expression) === "[object Promise]") {
1020
+ if (expression instanceof child_process.ChildProcess || Object.prototype.toString.call(expression) === "[object Promise]") {
991
1021
  throw new TypeError("Unexpected subprocess in template expression. Please use ${await subprocess} instead of ${subprocess}.");
992
1022
  }
993
1023
  throw new TypeError(`Unexpected "${typeOfExpression}" in template expression`);
@@ -1005,32 +1035,29 @@ var getSubprocessResult = ({ stdout: stdout2 }) => {
1005
1035
  throw new TypeError(`Unexpected "${typeof stdout2}" stdout in template expression`);
1006
1036
  };
1007
1037
 
1008
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/methods/main-sync.js
1038
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/methods/main-sync.js
1009
1039
  init_cjs_shims();
1010
1040
 
1011
-
1012
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/arguments/command.js
1041
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/arguments/command.js
1013
1042
  init_cjs_shims();
1014
1043
 
1015
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/verbose/start.js
1044
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/verbose/start.js
1016
1045
  init_cjs_shims();
1017
1046
 
1018
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/verbose/values.js
1047
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/verbose/values.js
1019
1048
  init_cjs_shims();
1020
1049
 
1021
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/arguments/specific.js
1050
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/arguments/specific.js
1022
1051
  init_cjs_shims();
1023
- var _util = require('util');
1024
1052
 
1025
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/utils/standard-stream.js
1053
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/utils/standard-stream.js
1026
1054
  init_cjs_shims();
1027
- var _process = require('process'); var process10 = _interopRequireWildcard(_process);
1028
1055
  var isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
1029
- var STANDARD_STREAMS = [process10.default.stdin, process10.default.stdout, process10.default.stderr];
1056
+ var STANDARD_STREAMS = [process3__namespace.default.stdin, process3__namespace.default.stdout, process3__namespace.default.stderr];
1030
1057
  var STANDARD_STREAMS_ALIASES = ["stdin", "stdout", "stderr"];
1031
- var getStreamName = (fdNumber) => _nullishCoalesce(STANDARD_STREAMS_ALIASES[fdNumber], () => ( `stdio[${fdNumber}]`));
1058
+ var getStreamName = (fdNumber) => STANDARD_STREAMS_ALIASES[fdNumber] ?? `stdio[${fdNumber}]`;
1032
1059
 
1033
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/arguments/specific.js
1060
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/arguments/specific.js
1034
1061
  var normalizeFdSpecificOptions = (options) => {
1035
1062
  const optionsCopy = { ...options };
1036
1063
  for (const optionName of FD_SPECIFIC_OPTIONS) {
@@ -1089,7 +1116,7 @@ var parseFd = (fdName) => {
1089
1116
  };
1090
1117
  var FD_REGEXP = /^fd(\d+)$/;
1091
1118
  var addDefaultValue = (optionArray, optionName) => optionArray.map((optionValue) => optionValue === void 0 ? DEFAULT_OPTIONS[optionName] : optionValue);
1092
- var verboseDefault = _util.debuglog.call(void 0, "execa").enabled ? "full" : "none";
1119
+ var verboseDefault = util.debuglog("execa").enabled ? "full" : "none";
1093
1120
  var DEFAULT_OPTIONS = {
1094
1121
  lines: false,
1095
1122
  buffer: true,
@@ -1100,7 +1127,7 @@ var DEFAULT_OPTIONS = {
1100
1127
  var FD_SPECIFIC_OPTIONS = ["lines", "buffer", "maxBuffer", "verbose", "stripFinalNewline"];
1101
1128
  var getFdSpecificValue = (optionArray, fdNumber) => fdNumber === "ipc" ? optionArray.at(-1) : optionArray[fdNumber];
1102
1129
 
1103
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/verbose/values.js
1130
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/verbose/values.js
1104
1131
  var isVerbose = ({ verbose }, fdNumber) => getFdVerbose(verbose, fdNumber) !== "none";
1105
1132
  var isFullVerbose = ({ verbose }, fdNumber) => !["none", "short"].includes(getFdVerbose(verbose, fdNumber));
1106
1133
  var getVerboseFunction = ({ verbose }, fdNumber) => {
@@ -1108,26 +1135,22 @@ var getVerboseFunction = ({ verbose }, fdNumber) => {
1108
1135
  return isVerboseFunction(fdVerbose) ? fdVerbose : void 0;
1109
1136
  };
1110
1137
  var getFdVerbose = (verbose, fdNumber) => fdNumber === void 0 ? getFdGenericVerbose(verbose) : getFdSpecificValue(verbose, fdNumber);
1111
- var getFdGenericVerbose = (verbose) => _nullishCoalesce(verbose.find((fdVerbose) => isVerboseFunction(fdVerbose)), () => ( VERBOSE_VALUES.findLast((fdVerbose) => verbose.includes(fdVerbose))));
1138
+ var getFdGenericVerbose = (verbose) => verbose.find((fdVerbose) => isVerboseFunction(fdVerbose)) ?? VERBOSE_VALUES.findLast((fdVerbose) => verbose.includes(fdVerbose));
1112
1139
  var isVerboseFunction = (fdVerbose) => typeof fdVerbose === "function";
1113
1140
  var VERBOSE_VALUES = ["none", "short", "full"];
1114
1141
 
1115
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/verbose/log.js
1142
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/verbose/log.js
1116
1143
  init_cjs_shims();
1117
- var _fs = require('fs');
1118
-
1119
1144
 
1120
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/arguments/escape.js
1145
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/arguments/escape.js
1121
1146
  init_cjs_shims();
1122
-
1123
-
1124
1147
  var joinCommand = (filePath, rawArguments) => {
1125
1148
  const fileAndArguments = [filePath, ...rawArguments];
1126
1149
  const command = fileAndArguments.join(" ");
1127
1150
  const escapedCommand = fileAndArguments.map((fileAndArgument) => quoteString(escapeControlCharacters(fileAndArgument))).join(" ");
1128
1151
  return { command, escapedCommand };
1129
1152
  };
1130
- var escapeLines = (lines) => _util.stripVTControlCharacters.call(void 0, lines).split("\n").map((line) => escapeControlCharacters(line)).join("\n");
1153
+ var escapeLines = (lines) => util.stripVTControlCharacters(lines).split("\n").map((line) => escapeControlCharacters(line)).join("\n");
1131
1154
  var escapeControlCharacters = (line) => line.replaceAll(SPECIAL_CHAR_REGEXP, (character) => escapeControlCharacter(character));
1132
1155
  var escapeControlCharacter = (character) => {
1133
1156
  const commonEscape = COMMON_ESCAPES[character];
@@ -1141,7 +1164,7 @@ var escapeControlCharacter = (character) => {
1141
1164
  var getSpecialCharRegExp = () => {
1142
1165
  try {
1143
1166
  return new RegExp("\\p{Separator}|\\p{Other}", "gu");
1144
- } catch (e2) {
1167
+ } catch {
1145
1168
  return /[\s\u0000-\u001F\u007F-\u009F\u00AD]/g;
1146
1169
  }
1147
1170
  };
@@ -1159,11 +1182,11 @@ var quoteString = (escapedArgument) => {
1159
1182
  if (NO_ESCAPE_REGEXP.test(escapedArgument)) {
1160
1183
  return escapedArgument;
1161
1184
  }
1162
- return _process.platform === "win32" ? `"${escapedArgument.replaceAll('"', '""')}"` : `'${escapedArgument.replaceAll("'", "'\\''")}'`;
1185
+ return process3.platform === "win32" ? `"${escapedArgument.replaceAll('"', '""')}"` : `'${escapedArgument.replaceAll("'", "'\\''")}'`;
1163
1186
  };
1164
1187
  var NO_ESCAPE_REGEXP = /^[\w./-]+$/;
1165
1188
 
1166
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/verbose/default.js
1189
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/verbose/default.js
1167
1190
  init_cjs_shims();
1168
1191
 
1169
1192
  // ../../node_modules/.pnpm/figures@6.1.0/node_modules/figures/index.js
@@ -1171,12 +1194,11 @@ init_cjs_shims();
1171
1194
 
1172
1195
  // ../../node_modules/.pnpm/is-unicode-supported@2.0.0/node_modules/is-unicode-supported/index.js
1173
1196
  init_cjs_shims();
1174
-
1175
1197
  function isUnicodeSupported() {
1176
- if (process10.default.platform !== "win32") {
1177
- return process10.default.env.TERM !== "linux";
1198
+ if (process3__namespace.default.platform !== "win32") {
1199
+ return process3__namespace.default.env.TERM !== "linux";
1178
1200
  }
1179
- return Boolean(process10.default.env.WT_SESSION) || Boolean(process10.default.env.TERMINUS_SUBLIME) || process10.default.env.ConEmuTask === "{cmd::Cmder}" || process10.default.env.TERM_PROGRAM === "Terminus-Sublime" || process10.default.env.TERM_PROGRAM === "vscode" || process10.default.env.TERM === "xterm-256color" || process10.default.env.TERM === "alacritty" || process10.default.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
1201
+ return Boolean(process3__namespace.default.env.WT_SESSION) || Boolean(process3__namespace.default.env.TERMINUS_SUBLIME) || process3__namespace.default.env.ConEmuTask === "{cmd::Cmder}" || process3__namespace.default.env.TERM_PROGRAM === "Terminus-Sublime" || process3__namespace.default.env.TERM_PROGRAM === "vscode" || process3__namespace.default.env.TERM === "xterm-256color" || process3__namespace.default.env.TERM === "alacritty" || process3__namespace.default.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
1180
1202
  }
1181
1203
 
1182
1204
  // ../../node_modules/.pnpm/figures@6.1.0/node_modules/figures/index.js
@@ -1453,12 +1475,10 @@ var fallbackSymbols = { ...common, ...specialFallbackSymbols };
1453
1475
  var shouldUseMain = isUnicodeSupported();
1454
1476
  var figures = shouldUseMain ? mainSymbols : fallbackSymbols;
1455
1477
  var figures_default = figures;
1456
- var replacements = Object.entries(specialMainSymbols);
1457
1478
 
1458
1479
  // ../../node_modules/.pnpm/yoctocolors@2.1.1/node_modules/yoctocolors/base.js
1459
1480
  init_cjs_shims();
1460
-
1461
- var hasColors = _nullishCoalesce(_optionalChain([_tty2.default, 'optionalAccess', _2 => _2.WriteStream, 'optionalAccess', _3 => _3.prototype, 'optionalAccess', _4 => _4.hasColors, 'optionalCall', _5 => _5()]), () => ( false));
1481
+ var hasColors = tty__default.default?.WriteStream?.prototype?.hasColors?.() ?? false;
1462
1482
  var format = (open, close) => {
1463
1483
  if (!hasColors) {
1464
1484
  return (input) => input;
@@ -1482,49 +1502,12 @@ var format = (open, close) => {
1482
1502
  return result;
1483
1503
  };
1484
1504
  };
1485
- var reset = format(0, 0);
1486
1505
  var bold = format(1, 22);
1487
- var dim = format(2, 22);
1488
- var italic = format(3, 23);
1489
- var underline = format(4, 24);
1490
- var overline = format(53, 55);
1491
- var inverse = format(7, 27);
1492
- var hidden = format(8, 28);
1493
- var strikethrough = format(9, 29);
1494
- var black = format(30, 39);
1495
- var red = format(31, 39);
1496
- var green = format(32, 39);
1497
- var yellow = format(33, 39);
1498
- var blue = format(34, 39);
1499
- var magenta = format(35, 39);
1500
- var cyan = format(36, 39);
1501
- var white = format(37, 39);
1502
1506
  var gray = format(90, 39);
1503
- var bgBlack = format(40, 49);
1504
- var bgRed = format(41, 49);
1505
- var bgGreen = format(42, 49);
1506
- var bgYellow = format(43, 49);
1507
- var bgBlue = format(44, 49);
1508
- var bgMagenta = format(45, 49);
1509
- var bgCyan = format(46, 49);
1510
- var bgWhite = format(47, 49);
1511
- var bgGray = format(100, 49);
1512
1507
  var redBright = format(91, 39);
1513
- var greenBright = format(92, 39);
1514
1508
  var yellowBright = format(93, 39);
1515
- var blueBright = format(94, 39);
1516
- var magentaBright = format(95, 39);
1517
- var cyanBright = format(96, 39);
1518
- var whiteBright = format(97, 39);
1519
- var bgRedBright = format(101, 49);
1520
- var bgGreenBright = format(102, 49);
1521
- var bgYellowBright = format(103, 49);
1522
- var bgBlueBright = format(104, 49);
1523
- var bgMagentaBright = format(105, 49);
1524
- var bgCyanBright = format(106, 49);
1525
- var bgWhiteBright = format(107, 49);
1526
-
1527
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/verbose/default.js
1509
+
1510
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/verbose/default.js
1528
1511
  var defaultVerboseFunction = ({
1529
1512
  type,
1530
1513
  message,
@@ -1563,7 +1546,7 @@ var COLORS = {
1563
1546
  duration: () => gray
1564
1547
  };
1565
1548
 
1566
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/verbose/custom.js
1549
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/verbose/custom.js
1567
1550
  init_cjs_shims();
1568
1551
  var applyVerboseOnLines = (printedLines, verboseInfo, fdNumber) => {
1569
1552
  const verboseFunction = getVerboseFunction(verboseInfo, fdNumber);
@@ -1581,12 +1564,14 @@ var applyVerboseFunction = (verboseLine, verboseObject, verboseFunction) => {
1581
1564
  var appendNewline = (printedLine) => printedLine.endsWith("\n") ? printedLine : `${printedLine}
1582
1565
  `;
1583
1566
 
1584
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/verbose/log.js
1567
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/verbose/log.js
1585
1568
  var verboseLog = ({ type, verboseMessage, fdNumber, verboseInfo, result }) => {
1586
1569
  const verboseObject = getVerboseObject({ type, result, verboseInfo });
1587
1570
  const printedLines = getPrintedLines(verboseMessage, verboseObject);
1588
1571
  const finalLines = applyVerboseOnLines(printedLines, verboseInfo, fdNumber);
1589
- _fs.writeFileSync.call(void 0, STDERR_FD, finalLines);
1572
+ if (finalLines !== "") {
1573
+ console.warn(finalLines.slice(0, -1));
1574
+ }
1590
1575
  };
1591
1576
  var getVerboseObject = ({
1592
1577
  type,
@@ -1606,15 +1591,14 @@ var getPrintedLine = (verboseObject) => {
1606
1591
  const verboseLine = defaultVerboseFunction(verboseObject);
1607
1592
  return { verboseLine, verboseObject };
1608
1593
  };
1609
- var STDERR_FD = 2;
1610
1594
  var serializeVerboseMessage = (message) => {
1611
- const messageString = typeof message === "string" ? message : _util.inspect.call(void 0, message);
1595
+ const messageString = typeof message === "string" ? message : util.inspect(message);
1612
1596
  const escapedMessage = escapeLines(messageString);
1613
1597
  return escapedMessage.replaceAll(" ", " ".repeat(TAB_SIZE));
1614
1598
  };
1615
1599
  var TAB_SIZE = 2;
1616
1600
 
1617
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/verbose/start.js
1601
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/verbose/start.js
1618
1602
  var logCommand = (escapedCommand, verboseInfo) => {
1619
1603
  if (!isVerbose(verboseInfo)) {
1620
1604
  return;
@@ -1626,7 +1610,7 @@ var logCommand = (escapedCommand, verboseInfo) => {
1626
1610
  });
1627
1611
  };
1628
1612
 
1629
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/verbose/info.js
1613
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/verbose/info.js
1630
1614
  init_cjs_shims();
1631
1615
  var getVerboseInfo = (verbose, escapedCommand, rawOptions) => {
1632
1616
  validateVerbose(verbose);
@@ -1655,13 +1639,12 @@ var validateVerbose = (verbose) => {
1655
1639
  }
1656
1640
  };
1657
1641
 
1658
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/return/duration.js
1642
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/return/duration.js
1659
1643
  init_cjs_shims();
1644
+ var getStartTime = () => process3.hrtime.bigint();
1645
+ var getDurationMs = (startTime) => Number(process3.hrtime.bigint() - startTime) / 1e6;
1660
1646
 
1661
- var getStartTime = () => _process.hrtime.bigint();
1662
- var getDurationMs = (startTime) => Number(_process.hrtime.bigint() - startTime) / 1e6;
1663
-
1664
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/arguments/command.js
1647
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/arguments/command.js
1665
1648
  var handleCommand = (filePath, rawArguments, rawOptions) => {
1666
1649
  const startTime = getStartTime();
1667
1650
  const { command, escapedCommand } = joinCommand(filePath, rawArguments);
@@ -1676,18 +1659,13 @@ var handleCommand = (filePath, rawArguments, rawOptions) => {
1676
1659
  };
1677
1660
  };
1678
1661
 
1679
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/arguments/options.js
1662
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/arguments/options.js
1680
1663
  init_cjs_shims();
1681
- var import_cross_spawn = __toESM(require_cross_spawn(), 1);
1682
- var _path = require('path'); var _path2 = _interopRequireDefault(_path);
1683
-
1664
+ var import_cross_spawn = __toESM(require_cross_spawn());
1684
1665
 
1685
- // ../../node_modules/.pnpm/npm-run-path@5.3.0/node_modules/npm-run-path/index.js
1666
+ // ../../node_modules/.pnpm/npm-run-path@6.0.0/node_modules/npm-run-path/index.js
1686
1667
  init_cjs_shims();
1687
1668
 
1688
-
1689
-
1690
-
1691
1669
  // ../../node_modules/.pnpm/path-key@4.0.0/node_modules/path-key/index.js
1692
1670
  init_cjs_shims();
1693
1671
  function pathKey(options = {}) {
@@ -1701,38 +1679,60 @@ function pathKey(options = {}) {
1701
1679
  return Object.keys(env).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
1702
1680
  }
1703
1681
 
1704
- // ../../node_modules/.pnpm/npm-run-path@5.3.0/node_modules/npm-run-path/index.js
1682
+ // ../../node_modules/.pnpm/unicorn-magic@0.3.0/node_modules/unicorn-magic/node.js
1683
+ init_cjs_shims();
1684
+ util.promisify(child_process.execFile);
1685
+ function toPath(urlOrPath) {
1686
+ return urlOrPath instanceof URL ? url.fileURLToPath(urlOrPath) : urlOrPath;
1687
+ }
1688
+ function traversePathUp(startPath) {
1689
+ return {
1690
+ *[Symbol.iterator]() {
1691
+ let currentPath = path2__default.default.resolve(toPath(startPath));
1692
+ let previousPath;
1693
+ while (previousPath !== currentPath) {
1694
+ yield currentPath;
1695
+ previousPath = currentPath;
1696
+ currentPath = path2__default.default.resolve(currentPath, "..");
1697
+ }
1698
+ }
1699
+ };
1700
+ }
1701
+
1702
+ // ../../node_modules/.pnpm/npm-run-path@6.0.0/node_modules/npm-run-path/index.js
1705
1703
  var npmRunPath = ({
1706
- cwd = process10.default.cwd(),
1707
- path: pathOption = process10.default.env[pathKey()],
1704
+ cwd = process3__namespace.default.cwd(),
1705
+ path: pathOption = process3__namespace.default.env[pathKey()],
1708
1706
  preferLocal = true,
1709
- execPath: execPath2 = process10.default.execPath,
1707
+ execPath: execPath2 = process3__namespace.default.execPath,
1710
1708
  addExecPath = true
1711
1709
  } = {}) => {
1712
- const cwdString = cwd instanceof URL ? _url.fileURLToPath.call(void 0, cwd) : cwd;
1713
- const cwdPath = _path2.default.resolve(cwdString);
1710
+ const cwdPath = path2__default.default.resolve(toPath(cwd));
1714
1711
  const result = [];
1712
+ const pathParts = pathOption.split(path2__default.default.delimiter);
1715
1713
  if (preferLocal) {
1716
- applyPreferLocal(result, cwdPath);
1714
+ applyPreferLocal(result, pathParts, cwdPath);
1717
1715
  }
1718
1716
  if (addExecPath) {
1719
- applyExecPath(result, execPath2, cwdPath);
1717
+ applyExecPath(result, pathParts, execPath2, cwdPath);
1720
1718
  }
1721
- return [...result, pathOption].join(_path2.default.delimiter);
1719
+ return pathOption === "" || pathOption === path2__default.default.delimiter ? `${result.join(path2__default.default.delimiter)}${pathOption}` : [...result, pathOption].join(path2__default.default.delimiter);
1722
1720
  };
1723
- var applyPreferLocal = (result, cwdPath) => {
1724
- let previous;
1725
- while (previous !== cwdPath) {
1726
- result.push(_path2.default.join(cwdPath, "node_modules/.bin"));
1727
- previous = cwdPath;
1728
- cwdPath = _path2.default.resolve(cwdPath, "..");
1721
+ var applyPreferLocal = (result, pathParts, cwdPath) => {
1722
+ for (const directory of traversePathUp(cwdPath)) {
1723
+ const pathPart = path2__default.default.join(directory, "node_modules/.bin");
1724
+ if (!pathParts.includes(pathPart)) {
1725
+ result.push(pathPart);
1726
+ }
1729
1727
  }
1730
1728
  };
1731
- var applyExecPath = (result, execPath2, cwdPath) => {
1732
- const execPathString = execPath2 instanceof URL ? _url.fileURLToPath.call(void 0, execPath2) : execPath2;
1733
- result.push(_path2.default.resolve(cwdPath, execPathString, ".."));
1729
+ var applyExecPath = (result, pathParts, execPath2, cwdPath) => {
1730
+ const pathPart = path2__default.default.resolve(cwdPath, toPath(execPath2), "..");
1731
+ if (!pathParts.includes(pathPart)) {
1732
+ result.push(pathPart);
1733
+ }
1734
1734
  };
1735
- var npmRunPathEnv = ({ env = process10.default.env, ...options } = {}) => {
1735
+ var npmRunPathEnv = ({ env = process3__namespace.default.env, ...options } = {}) => {
1736
1736
  env = { ...env };
1737
1737
  const pathName = pathKey({ env });
1738
1738
  options.path = env[pathName];
@@ -1740,11 +1740,10 @@ var npmRunPathEnv = ({ env = process10.default.env, ...options } = {}) => {
1740
1740
  return env;
1741
1741
  };
1742
1742
 
1743
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/terminate/kill.js
1743
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/terminate/kill.js
1744
1744
  init_cjs_shims();
1745
- var _promises = require('timers/promises');
1746
1745
 
1747
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/return/final-error.js
1746
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/return/final-error.js
1748
1747
  init_cjs_shims();
1749
1748
  var getFinalError = (originalError, message, isSync) => {
1750
1749
  const ErrorClass = isSync ? ExecaSyncError : ExecaError;
@@ -1777,14 +1776,12 @@ var ExecaSyncError = class extends Error {
1777
1776
  };
1778
1777
  setErrorName(ExecaSyncError, ExecaSyncError.name);
1779
1778
 
1780
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/terminate/signal.js
1779
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/terminate/signal.js
1781
1780
  init_cjs_shims();
1782
- var _os = require('os');
1783
1781
 
1784
1782
  // ../../node_modules/.pnpm/human-signals@8.0.0/node_modules/human-signals/build/src/main.js
1785
1783
  init_cjs_shims();
1786
1784
 
1787
-
1788
1785
  // ../../node_modules/.pnpm/human-signals@8.0.0/node_modules/human-signals/build/src/realtime.js
1789
1786
  init_cjs_shims();
1790
1787
  var getRealtimeSignals = () => {
@@ -1804,7 +1801,6 @@ var SIGRTMAX = 64;
1804
1801
  // ../../node_modules/.pnpm/human-signals@8.0.0/node_modules/human-signals/build/src/signals.js
1805
1802
  init_cjs_shims();
1806
1803
 
1807
-
1808
1804
  // ../../node_modules/.pnpm/human-signals@8.0.0/node_modules/human-signals/build/src/core.js
1809
1805
  init_cjs_shims();
1810
1806
  var SIGNALS = [
@@ -2095,7 +2091,7 @@ var normalizeSignal = ({
2095
2091
  }) => {
2096
2092
  const {
2097
2093
  signals: { [name]: constantSignal }
2098
- } = _os.constants;
2094
+ } = os.constants;
2099
2095
  const supported = constantSignal !== void 0;
2100
2096
  const number = supported ? constantSignal : defaultNumber;
2101
2097
  return { name, number, description, supported, action, forced, standard };
@@ -2144,15 +2140,15 @@ var getSignalByNumber = (number, signals2) => {
2144
2140
  };
2145
2141
  };
2146
2142
  var findSignalByNumber = (number, signals2) => {
2147
- const signal = signals2.find(({ name }) => _os.constants.signals[name] === number);
2143
+ const signal = signals2.find(({ name }) => os.constants.signals[name] === number);
2148
2144
  if (signal !== void 0) {
2149
2145
  return signal;
2150
2146
  }
2151
2147
  return signals2.find((signalA) => signalA.number === number);
2152
2148
  };
2153
- var signalsByNumber = getSignalsByNumber();
2149
+ getSignalsByNumber();
2154
2150
 
2155
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/terminate/signal.js
2151
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/terminate/signal.js
2156
2152
  var normalizeKillSignal = (killSignal) => {
2157
2153
  const optionName = "option `killSignal`";
2158
2154
  if (killSignal === 0) {
@@ -2178,13 +2174,13 @@ var normalizeSignalInteger = (signalInteger, optionName) => {
2178
2174
  throw new TypeError(`Invalid ${optionName} ${signalInteger}: this signal integer does not exist.
2179
2175
  ${getAvailableSignals()}`);
2180
2176
  };
2181
- var getSignalsIntegerToName = () => new Map(Object.entries(_os.constants.signals).reverse().map(([signalName, signalInteger]) => [signalInteger, signalName]));
2177
+ var getSignalsIntegerToName = () => new Map(Object.entries(os.constants.signals).reverse().map(([signalName, signalInteger]) => [signalInteger, signalName]));
2182
2178
  var signalsIntegerToName = getSignalsIntegerToName();
2183
2179
  var normalizeSignalName = (signalName, optionName) => {
2184
- if (signalName in _os.constants.signals) {
2180
+ if (signalName in os.constants.signals) {
2185
2181
  return signalName;
2186
2182
  }
2187
- if (signalName.toUpperCase() in _os.constants.signals) {
2183
+ if (signalName.toUpperCase() in os.constants.signals) {
2188
2184
  throw new TypeError(`Invalid ${optionName} '${signalName}': please rename it to '${signalName.toUpperCase()}'.`);
2189
2185
  }
2190
2186
  throw new TypeError(`Invalid ${optionName} '${signalName}': this signal name does not exist.
@@ -2192,11 +2188,11 @@ ${getAvailableSignals()}`);
2192
2188
  };
2193
2189
  var getAvailableSignals = () => `Available signal names: ${getAvailableSignalNames()}.
2194
2190
  Available signal numbers: ${getAvailableSignalIntegers()}.`;
2195
- var getAvailableSignalNames = () => Object.keys(_os.constants.signals).sort().map((signalName) => `'${signalName}'`).join(", ");
2196
- var getAvailableSignalIntegers = () => [...new Set(Object.values(_os.constants.signals).sort((signalInteger, signalIntegerTwo) => signalInteger - signalIntegerTwo))].join(", ");
2191
+ var getAvailableSignalNames = () => Object.keys(os.constants.signals).sort().map((signalName) => `'${signalName}'`).join(", ");
2192
+ var getAvailableSignalIntegers = () => [...new Set(Object.values(os.constants.signals).sort((signalInteger, signalIntegerTwo) => signalInteger - signalIntegerTwo))].join(", ");
2197
2193
  var getSignalDescription = (signal) => signalsByName[signal].description;
2198
2194
 
2199
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/terminate/kill.js
2195
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/terminate/kill.js
2200
2196
  var normalizeForceKillAfterDelay = (forceKillAfterDelay) => {
2201
2197
  if (forceKillAfterDelay === false) {
2202
2198
  return forceKillAfterDelay;
@@ -2255,27 +2251,26 @@ var killOnTimeout = async ({ kill, forceKillAfterDelay, context, controllerSigna
2255
2251
  return;
2256
2252
  }
2257
2253
  try {
2258
- await _promises.setTimeout.call(void 0, forceKillAfterDelay, void 0, { signal: controllerSignal });
2254
+ await promises$1.setTimeout(forceKillAfterDelay, void 0, { signal: controllerSignal });
2259
2255
  if (kill("SIGKILL")) {
2260
2256
  context.isForcefullyTerminated ??= true;
2261
2257
  }
2262
- } catch (e3) {
2258
+ } catch {
2263
2259
  }
2264
2260
  };
2265
2261
 
2266
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/terminate/cancel.js
2262
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/terminate/cancel.js
2267
2263
  init_cjs_shims();
2268
2264
 
2269
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/utils/abort-signal.js
2265
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/utils/abort-signal.js
2270
2266
  init_cjs_shims();
2271
- var _events2 = require('events');
2272
2267
  var onAbortedSignal = async (mainSignal, stopSignal) => {
2273
2268
  if (!mainSignal.aborted) {
2274
- await _events2.once.call(void 0, mainSignal, "abort", { signal: stopSignal });
2269
+ await events.once(mainSignal, "abort", { signal: stopSignal });
2275
2270
  }
2276
2271
  };
2277
2272
 
2278
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/terminate/cancel.js
2273
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/terminate/cancel.js
2279
2274
  var validateCancelSignal = ({ cancelSignal }) => {
2280
2275
  if (cancelSignal !== void 0 && Object.prototype.toString.call(cancelSignal) !== "[object AbortSignal]") {
2281
2276
  throw new Error(`The \`cancelSignal\` option must be an AbortSignal: ${String(cancelSignal)}`);
@@ -2289,18 +2284,16 @@ var terminateOnCancel = async (subprocess, cancelSignal, context, { signal }) =>
2289
2284
  throw cancelSignal.reason;
2290
2285
  };
2291
2286
 
2292
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/terminate/graceful.js
2287
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/terminate/graceful.js
2293
2288
  init_cjs_shims();
2294
2289
 
2295
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/ipc/graceful.js
2290
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/ipc/graceful.js
2296
2291
  init_cjs_shims();
2297
2292
 
2298
-
2299
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/ipc/send.js
2293
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/ipc/send.js
2300
2294
  init_cjs_shims();
2301
2295
 
2302
-
2303
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/ipc/validation.js
2296
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/ipc/validation.js
2304
2297
  init_cjs_shims();
2305
2298
  var validateIpcMethod = ({ methodName, isSubprocess, ipc, isConnected: isConnected2 }) => {
2306
2299
  validateIpcOption(methodName, isSubprocess, ipc);
@@ -2373,20 +2366,20 @@ var disconnect = (anyProcess) => {
2373
2366
  }
2374
2367
  };
2375
2368
 
2376
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/ipc/outgoing.js
2369
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/ipc/outgoing.js
2377
2370
  init_cjs_shims();
2378
2371
 
2379
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/utils/deferred.js
2372
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/utils/deferred.js
2380
2373
  init_cjs_shims();
2381
2374
  var createDeferred = () => {
2382
2375
  const methods = {};
2383
- const promise = new Promise((resolve2, reject) => {
2384
- Object.assign(methods, { resolve: resolve2, reject });
2376
+ const promise = new Promise((resolve, reject) => {
2377
+ Object.assign(methods, { resolve, reject });
2385
2378
  });
2386
2379
  return Object.assign(promise, methods);
2387
2380
  };
2388
2381
 
2389
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/arguments/fd-options.js
2382
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/arguments/fd-options.js
2390
2383
  init_cjs_shims();
2391
2384
  var getToStream = (destination, to = "stdin") => {
2392
2385
  const isWritable = true;
@@ -2467,34 +2460,29 @@ var serializeOptionValue = (value) => {
2467
2460
  return typeof value === "number" ? `${value}` : "Stream";
2468
2461
  };
2469
2462
 
2470
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/ipc/strict.js
2463
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/ipc/strict.js
2471
2464
  init_cjs_shims();
2472
2465
 
2473
-
2474
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/utils/max-listeners.js
2466
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/utils/max-listeners.js
2475
2467
  init_cjs_shims();
2476
-
2477
2468
  var incrementMaxListeners = (eventEmitter, maxListenersIncrement, signal) => {
2478
2469
  const maxListeners = eventEmitter.getMaxListeners();
2479
2470
  if (maxListeners === 0 || maxListeners === Number.POSITIVE_INFINITY) {
2480
2471
  return;
2481
2472
  }
2482
2473
  eventEmitter.setMaxListeners(maxListeners + maxListenersIncrement);
2483
- _events2.addAbortListener.call(void 0, signal, () => {
2474
+ events.addAbortListener(signal, () => {
2484
2475
  eventEmitter.setMaxListeners(eventEmitter.getMaxListeners() - maxListenersIncrement);
2485
2476
  });
2486
2477
  };
2487
2478
 
2488
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/ipc/forward.js
2479
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/ipc/forward.js
2489
2480
  init_cjs_shims();
2490
2481
 
2491
-
2492
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/ipc/incoming.js
2482
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/ipc/incoming.js
2493
2483
  init_cjs_shims();
2494
2484
 
2495
-
2496
-
2497
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/ipc/reference.js
2485
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/ipc/reference.js
2498
2486
  init_cjs_shims();
2499
2487
  var addReference = (channel, reference) => {
2500
2488
  if (reference) {
@@ -2525,7 +2513,7 @@ var redoAddedReferences = (channel, isSubprocess) => {
2525
2513
  }
2526
2514
  };
2527
2515
 
2528
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/ipc/incoming.js
2516
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/ipc/incoming.js
2529
2517
  var onMessage = async ({ anyProcess, channel, isSubprocess, ipcEmitter }, wrappedMessage) => {
2530
2518
  if (handleStrictResponse(wrappedMessage) || handleAbort(wrappedMessage)) {
2531
2519
  return;
@@ -2540,7 +2528,7 @@ var onMessage = async ({ anyProcess, channel, isSubprocess, ipcEmitter }, wrappe
2540
2528
  }
2541
2529
  while (incomingMessages.length > 0) {
2542
2530
  await waitForOutgoingMessages(anyProcess, ipcEmitter, wrappedMessage);
2543
- await _promises.scheduler.yield();
2531
+ await promises$1.scheduler.yield();
2544
2532
  const message = await handleStrictRequest({
2545
2533
  wrappedMessage: incomingMessages[0],
2546
2534
  anyProcess,
@@ -2556,8 +2544,8 @@ var onMessage = async ({ anyProcess, channel, isSubprocess, ipcEmitter }, wrappe
2556
2544
  var onDisconnect = async ({ anyProcess, channel, isSubprocess, ipcEmitter, boundOnMessage }) => {
2557
2545
  abortOnDisconnect();
2558
2546
  const incomingMessages = INCOMING_MESSAGES.get(anyProcess);
2559
- while (_optionalChain([incomingMessages, 'optionalAccess', _6 => _6.length]) > 0) {
2560
- await _events2.once.call(void 0, ipcEmitter, "message:done");
2547
+ while (incomingMessages?.length > 0) {
2548
+ await events.once(ipcEmitter, "message:done");
2561
2549
  }
2562
2550
  anyProcess.removeListener("message", boundOnMessage);
2563
2551
  redoAddedReferences(channel, isSubprocess);
@@ -2566,12 +2554,12 @@ var onDisconnect = async ({ anyProcess, channel, isSubprocess, ipcEmitter, bound
2566
2554
  };
2567
2555
  var INCOMING_MESSAGES = /* @__PURE__ */ new WeakMap();
2568
2556
 
2569
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/ipc/forward.js
2557
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/ipc/forward.js
2570
2558
  var getIpcEmitter = (anyProcess, channel, isSubprocess) => {
2571
2559
  if (IPC_EMITTERS.has(anyProcess)) {
2572
2560
  return IPC_EMITTERS.get(anyProcess);
2573
2561
  }
2574
- const ipcEmitter = new (0, _events2.EventEmitter)();
2562
+ const ipcEmitter = new events.EventEmitter();
2575
2563
  ipcEmitter.connected = true;
2576
2564
  IPC_EMITTERS.set(anyProcess, ipcEmitter);
2577
2565
  forwardEvents({
@@ -2605,7 +2593,7 @@ var isConnected = (anyProcess) => {
2605
2593
  return ipcEmitter === void 0 ? anyProcess.channel !== null : ipcEmitter.connected;
2606
2594
  };
2607
2595
 
2608
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/ipc/strict.js
2596
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/ipc/strict.js
2609
2597
  var handleSendStrict = ({ anyProcess, channel, isSubprocess, message, strict }) => {
2610
2598
  if (!strict) {
2611
2599
  return message;
@@ -2621,7 +2609,7 @@ var handleSendStrict = ({ anyProcess, channel, isSubprocess, message, strict })
2621
2609
  };
2622
2610
  var count = 0n;
2623
2611
  var validateStrictDeadlock = (outgoingMessages, wrappedMessage) => {
2624
- if (_optionalChain([wrappedMessage, 'optionalAccess', _7 => _7.type]) !== REQUEST_TYPE || wrappedMessage.hasListeners) {
2612
+ if (wrappedMessage?.type !== REQUEST_TYPE || wrappedMessage.hasListeners) {
2625
2613
  return;
2626
2614
  }
2627
2615
  for (const { id } of outgoingMessages) {
@@ -2631,7 +2619,7 @@ var validateStrictDeadlock = (outgoingMessages, wrappedMessage) => {
2631
2619
  }
2632
2620
  };
2633
2621
  var handleStrictRequest = async ({ wrappedMessage, anyProcess, channel, isSubprocess, ipcEmitter }) => {
2634
- if (_optionalChain([wrappedMessage, 'optionalAccess', _8 => _8.type]) !== REQUEST_TYPE || !anyProcess.connected) {
2622
+ if (wrappedMessage?.type !== REQUEST_TYPE || !anyProcess.connected) {
2635
2623
  return wrappedMessage;
2636
2624
  }
2637
2625
  const { id, message } = wrappedMessage;
@@ -2649,15 +2637,15 @@ var handleStrictRequest = async ({ wrappedMessage, anyProcess, channel, isSubpro
2649
2637
  return message;
2650
2638
  };
2651
2639
  var handleStrictResponse = (wrappedMessage) => {
2652
- if (_optionalChain([wrappedMessage, 'optionalAccess', _9 => _9.type]) !== RESPONSE_TYPE) {
2640
+ if (wrappedMessage?.type !== RESPONSE_TYPE) {
2653
2641
  return false;
2654
2642
  }
2655
2643
  const { id, message: hasListeners } = wrappedMessage;
2656
- _optionalChain([STRICT_RESPONSES, 'access', _10 => _10[id], 'optionalAccess', _11 => _11.resolve, 'call', _12 => _12({ isDeadlock: false, hasListeners })]);
2644
+ STRICT_RESPONSES[id]?.resolve({ isDeadlock: false, hasListeners });
2657
2645
  return true;
2658
2646
  };
2659
2647
  var waitForStrictResponse = async (wrappedMessage, anyProcess, isSubprocess) => {
2660
- if (_optionalChain([wrappedMessage, 'optionalAccess', _13 => _13.type]) !== REQUEST_TYPE) {
2648
+ if (wrappedMessage?.type !== REQUEST_TYPE) {
2661
2649
  return;
2662
2650
  }
2663
2651
  const deferred = createDeferred();
@@ -2682,13 +2670,13 @@ var waitForStrictResponse = async (wrappedMessage, anyProcess, isSubprocess) =>
2682
2670
  var STRICT_RESPONSES = {};
2683
2671
  var throwOnDisconnect = async (anyProcess, isSubprocess, { signal }) => {
2684
2672
  incrementMaxListeners(anyProcess, 1, signal);
2685
- await _events2.once.call(void 0, anyProcess, "disconnect", { signal });
2673
+ await events.once(anyProcess, "disconnect", { signal });
2686
2674
  throwOnStrictDisconnect(isSubprocess);
2687
2675
  };
2688
2676
  var REQUEST_TYPE = "execa:ipc:request";
2689
2677
  var RESPONSE_TYPE = "execa:ipc:response";
2690
2678
 
2691
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/ipc/outgoing.js
2679
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/ipc/outgoing.js
2692
2680
  var startSendMessage = (anyProcess, wrappedMessage, strict) => {
2693
2681
  if (!OUTGOING_MESSAGES.has(anyProcess)) {
2694
2682
  OUTGOING_MESSAGES.set(anyProcess, /* @__PURE__ */ new Set());
@@ -2705,7 +2693,7 @@ var endSendMessage = ({ outgoingMessages, outgoingMessage }) => {
2705
2693
  outgoingMessage.onMessageSent.resolve();
2706
2694
  };
2707
2695
  var waitForOutgoingMessages = async (anyProcess, ipcEmitter, wrappedMessage) => {
2708
- while (!hasMessageListeners(anyProcess, ipcEmitter) && _optionalChain([OUTGOING_MESSAGES, 'access', _14 => _14.get, 'call', _15 => _15(anyProcess), 'optionalAccess', _16 => _16.size]) > 0) {
2696
+ while (!hasMessageListeners(anyProcess, ipcEmitter) && OUTGOING_MESSAGES.get(anyProcess)?.size > 0) {
2709
2697
  const outgoingMessages = [...OUTGOING_MESSAGES.get(anyProcess)];
2710
2698
  validateStrictDeadlock(outgoingMessages, wrappedMessage);
2711
2699
  await Promise.all(outgoingMessages.map(({ onMessageSent }) => onMessageSent));
@@ -2715,7 +2703,7 @@ var OUTGOING_MESSAGES = /* @__PURE__ */ new WeakMap();
2715
2703
  var hasMessageListeners = (anyProcess, ipcEmitter) => ipcEmitter.listenerCount("message") > getMinListenerCount(anyProcess);
2716
2704
  var getMinListenerCount = (anyProcess) => SUBPROCESS_OPTIONS.has(anyProcess) && !getFdSpecificValue(SUBPROCESS_OPTIONS.get(anyProcess).options.buffer, "ipc") ? 1 : 0;
2717
2705
 
2718
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/ipc/send.js
2706
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/ipc/send.js
2719
2707
  var sendMessage = ({ anyProcess, channel, isSubprocess, ipc }, message, { strict = false } = {}) => {
2720
2708
  const methodName = "sendMessage";
2721
2709
  validateIpcMethod({
@@ -2779,13 +2767,13 @@ var getSendMethod = (anyProcess) => {
2779
2767
  if (PROCESS_SEND_METHODS.has(anyProcess)) {
2780
2768
  return PROCESS_SEND_METHODS.get(anyProcess);
2781
2769
  }
2782
- const sendMethod = _util.promisify.call(void 0, anyProcess.send.bind(anyProcess));
2770
+ const sendMethod = util.promisify(anyProcess.send.bind(anyProcess));
2783
2771
  PROCESS_SEND_METHODS.set(anyProcess, sendMethod);
2784
2772
  return sendMethod;
2785
2773
  };
2786
2774
  var PROCESS_SEND_METHODS = /* @__PURE__ */ new WeakMap();
2787
2775
 
2788
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/ipc/graceful.js
2776
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/ipc/graceful.js
2789
2777
  var sendAbort = (subprocess, message) => {
2790
2778
  const methodName = "cancelSignal";
2791
2779
  validateConnection(methodName, false, subprocess.connected);
@@ -2820,11 +2808,11 @@ var startIpc = async ({ anyProcess, channel, isSubprocess, ipc }) => {
2820
2808
  return;
2821
2809
  }
2822
2810
  getIpcEmitter(anyProcess, channel, isSubprocess);
2823
- await _promises.scheduler.yield();
2811
+ await promises$1.scheduler.yield();
2824
2812
  };
2825
2813
  var cancelListening = false;
2826
2814
  var handleAbort = (wrappedMessage) => {
2827
- if (_optionalChain([wrappedMessage, 'optionalAccess', _17 => _17.type]) !== GRACEFUL_CANCEL_TYPE) {
2815
+ if (wrappedMessage?.type !== GRACEFUL_CANCEL_TYPE) {
2828
2816
  return false;
2829
2817
  }
2830
2818
  cancelController.abort(wrappedMessage.message);
@@ -2836,7 +2824,7 @@ var abortOnDisconnect = () => {
2836
2824
  };
2837
2825
  var cancelController = new AbortController();
2838
2826
 
2839
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/terminate/graceful.js
2827
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/terminate/graceful.js
2840
2828
  var validateGracefulCancel = ({ gracefulCancel, cancelSignal, ipc, serialization }) => {
2841
2829
  if (!gracefulCancel) {
2842
2830
  return;
@@ -2892,9 +2880,8 @@ var getReason = ({ reason }) => {
2892
2880
  return error;
2893
2881
  };
2894
2882
 
2895
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/terminate/timeout.js
2883
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/terminate/timeout.js
2896
2884
  init_cjs_shims();
2897
-
2898
2885
  var validateTimeout = ({ timeout }) => {
2899
2886
  if (timeout !== void 0 && (!Number.isFinite(timeout) || timeout < 0)) {
2900
2887
  throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${timeout}\` (${typeof timeout})`);
@@ -2902,16 +2889,14 @@ var validateTimeout = ({ timeout }) => {
2902
2889
  };
2903
2890
  var throwOnTimeout = (subprocess, timeout, context, controller) => timeout === 0 || timeout === void 0 ? [] : [killAfterTimeout(subprocess, timeout, context, controller)];
2904
2891
  var killAfterTimeout = async (subprocess, timeout, context, { signal }) => {
2905
- await _promises.setTimeout.call(void 0, timeout, void 0, { signal });
2892
+ await promises$1.setTimeout(timeout, void 0, { signal });
2906
2893
  context.terminationReason ??= "timeout";
2907
2894
  subprocess.kill();
2908
2895
  throw new DiscardedError();
2909
2896
  };
2910
2897
 
2911
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/methods/node.js
2898
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/methods/node.js
2912
2899
  init_cjs_shims();
2913
-
2914
-
2915
2900
  var mapNode = ({ options }) => {
2916
2901
  if (options.node === false) {
2917
2902
  throw new TypeError('The "node" option cannot be false with `execaNode()`.');
@@ -2920,8 +2905,8 @@ var mapNode = ({ options }) => {
2920
2905
  };
2921
2906
  var handleNodeOption = (file, commandArguments, {
2922
2907
  node: shouldHandleNode = false,
2923
- nodePath = _process.execPath,
2924
- nodeOptions = _process.execArgv.filter((nodeOption) => !nodeOption.startsWith("--inspect")),
2908
+ nodePath = process3.execPath,
2909
+ nodeOptions = process3.execArgv.filter((nodeOption) => !nodeOption.startsWith("--inspect")),
2925
2910
  cwd,
2926
2911
  execPath: formerNodePath,
2927
2912
  ...options
@@ -2930,7 +2915,7 @@ var handleNodeOption = (file, commandArguments, {
2930
2915
  throw new TypeError('The "execPath" option has been removed. Please use the "nodePath" option instead.');
2931
2916
  }
2932
2917
  const normalizedNodePath = safeNormalizeFileUrl(nodePath, 'The "nodePath" option');
2933
- const resolvedNodePath = _path2.default.resolve(cwd, normalizedNodePath);
2918
+ const resolvedNodePath = path2__default.default.resolve(cwd, normalizedNodePath);
2934
2919
  const newOptions = {
2935
2920
  ...options,
2936
2921
  nodePath: resolvedNodePath,
@@ -2940,7 +2925,7 @@ var handleNodeOption = (file, commandArguments, {
2940
2925
  if (!shouldHandleNode) {
2941
2926
  return [file, commandArguments, newOptions];
2942
2927
  }
2943
- if (_path2.default.basename(file, ".exe") === "node") {
2928
+ if (path2__default.default.basename(file, ".exe") === "node") {
2944
2929
  throw new TypeError('When the "node" option is true, the first argument does not need to be "node".');
2945
2930
  }
2946
2931
  return [
@@ -2950,9 +2935,8 @@ var handleNodeOption = (file, commandArguments, {
2950
2935
  ];
2951
2936
  };
2952
2937
 
2953
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/ipc/ipc-input.js
2938
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/ipc/ipc-input.js
2954
2939
  init_cjs_shims();
2955
- var _v8 = require('v8');
2956
2940
  var validateIpcInputOption = ({ ipcInput, ipc, serialization }) => {
2957
2941
  if (ipcInput === void 0) {
2958
2942
  return;
@@ -2964,7 +2948,7 @@ var validateIpcInputOption = ({ ipcInput, ipc, serialization }) => {
2964
2948
  };
2965
2949
  var validateAdvancedInput = (ipcInput) => {
2966
2950
  try {
2967
- _v8.serialize.call(void 0, ipcInput);
2951
+ v8.serialize(ipcInput);
2968
2952
  } catch (error) {
2969
2953
  throw new Error("The `ipcInput` option is not serializable with a structured clone.", { cause: error });
2970
2954
  }
@@ -2987,7 +2971,7 @@ var sendIpcInput = async (subprocess, ipcInput) => {
2987
2971
  await subprocess.sendMessage(ipcInput);
2988
2972
  };
2989
2973
 
2990
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/arguments/encoding-option.js
2974
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/arguments/encoding-option.js
2991
2975
  init_cjs_shims();
2992
2976
  var validateEncoding = ({ encoding }) => {
2993
2977
  if (ENCODINGS.has(encoding)) {
@@ -3030,18 +3014,15 @@ var ENCODING_ALIASES = {
3030
3014
  };
3031
3015
  var serializeEncoding = (encoding) => typeof encoding === "string" ? `"${encoding}"` : String(encoding);
3032
3016
 
3033
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/arguments/cwd.js
3017
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/arguments/cwd.js
3034
3018
  init_cjs_shims();
3035
-
3036
-
3037
-
3038
3019
  var normalizeCwd = (cwd = getDefaultCwd()) => {
3039
3020
  const cwdString = safeNormalizeFileUrl(cwd, 'The "cwd" option');
3040
- return _path2.default.resolve(cwdString);
3021
+ return path2__default.default.resolve(cwdString);
3041
3022
  };
3042
3023
  var getDefaultCwd = () => {
3043
3024
  try {
3044
- return process10.default.cwd();
3025
+ return process3__namespace.default.cwd();
3045
3026
  } catch (error) {
3046
3027
  error.message = `The current directory does not exist.
3047
3028
  ${error.message}`;
@@ -3054,7 +3035,7 @@ var fixCwdError = (originalMessage, cwd) => {
3054
3035
  }
3055
3036
  let cwdStat;
3056
3037
  try {
3057
- cwdStat = _fs.statSync.call(void 0, cwd);
3038
+ cwdStat = fs.statSync(cwd);
3058
3039
  } catch (error) {
3059
3040
  return `The "cwd" option is invalid: ${cwd}.
3060
3041
  ${error.message}
@@ -3067,7 +3048,7 @@ ${originalMessage}`;
3067
3048
  return originalMessage;
3068
3049
  };
3069
3050
 
3070
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/arguments/options.js
3051
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/arguments/options.js
3071
3052
  var normalizeOptions = (filePath, rawArguments, rawOptions) => {
3072
3053
  rawOptions.cwd = normalizeCwd(rawOptions.cwd);
3073
3054
  const [processedFile, processedArguments, processedOptions] = handleNodeOption(filePath, rawArguments, rawOptions);
@@ -3084,7 +3065,7 @@ var normalizeOptions = (filePath, rawArguments, rawOptions) => {
3084
3065
  options.killSignal = normalizeKillSignal(options.killSignal);
3085
3066
  options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);
3086
3067
  options.lines = options.lines.map((lines, fdNumber) => lines && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);
3087
- if (process10.default.platform === "win32" && _path2.default.basename(file, ".exe") === "cmd") {
3068
+ if (process3__namespace.default.platform === "win32" && path2__default.default.basename(file, ".exe") === "cmd") {
3088
3069
  commandArguments.unshift("/q");
3089
3070
  }
3090
3071
  return { file, commandArguments, options };
@@ -3125,7 +3106,7 @@ var addDefaultOptions = ({
3125
3106
  serialization
3126
3107
  });
3127
3108
  var getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath }) => {
3128
- const env = extendEnv ? { ...process10.default.env, ...envOption } : envOption;
3109
+ const env = extendEnv ? { ...process3__namespace.default.env, ...envOption } : envOption;
3129
3110
  if (preferLocal || node) {
3130
3111
  return npmRunPathEnv({
3131
3112
  env,
@@ -3138,13 +3119,12 @@ var getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, no
3138
3119
  return env;
3139
3120
  };
3140
3121
 
3141
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/return/result.js
3122
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/return/result.js
3142
3123
  init_cjs_shims();
3143
3124
 
3144
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/return/message.js
3125
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/return/message.js
3145
3126
  init_cjs_shims();
3146
3127
 
3147
-
3148
3128
  // ../../node_modules/.pnpm/strip-final-newline@4.0.0/node_modules/strip-final-newline/index.js
3149
3129
  init_cjs_shims();
3150
3130
  function stripFinalNewline(input) {
@@ -3163,14 +3143,12 @@ var LF_BINARY = LF.codePointAt(0);
3163
3143
  var CR = "\r";
3164
3144
  var CR_BINARY = CR.codePointAt(0);
3165
3145
 
3166
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/io/max-buffer.js
3146
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/io/max-buffer.js
3167
3147
  init_cjs_shims();
3168
3148
 
3169
3149
  // ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/index.js
3170
3150
  init_cjs_shims();
3171
3151
 
3172
- var _promises3 = require('stream/promises');
3173
-
3174
3152
  // ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/stream.js
3175
3153
  init_cjs_shims();
3176
3154
 
@@ -3289,7 +3267,7 @@ var getAsyncIterable = (stream) => {
3289
3267
  if (isReadableStream(stream, { checkOpen: false }) && nodeImports.on !== void 0) {
3290
3268
  return getStreamIterable(stream);
3291
3269
  }
3292
- if (typeof _optionalChain([stream, 'optionalAccess', _18 => _18[Symbol.asyncIterator]]) === "function") {
3270
+ if (typeof stream?.[Symbol.asyncIterator] === "function") {
3293
3271
  return stream;
3294
3272
  }
3295
3273
  if (toString.call(stream) === "[object ReadableStream]") {
@@ -3411,7 +3389,7 @@ var getChunkType = (chunk) => {
3411
3389
  if (typeOfChunk !== "object" || chunk === null) {
3412
3390
  return "others";
3413
3391
  }
3414
- if (_optionalChain([globalThis, 'access', _19 => _19.Buffer, 'optionalAccess', _20 => _20.isBuffer, 'call', _21 => _21(chunk)])) {
3392
+ if (globalThis.Buffer?.isBuffer(chunk)) {
3415
3393
  return "buffer";
3416
3394
  }
3417
3395
  const prototypeName = objectToString2.call(chunk);
@@ -3427,12 +3405,12 @@ var getChunkType = (chunk) => {
3427
3405
  return "others";
3428
3406
  };
3429
3407
  var { toString: objectToString2 } = Object.prototype;
3430
- var MaxBufferError = (_class = class extends Error {
3431
- __init2() {this.name = "MaxBufferError"}
3408
+ var MaxBufferError = class extends Error {
3409
+ name = "MaxBufferError";
3432
3410
  constructor() {
3433
- super("maxBuffer exceeded");_class.prototype.__init2.call(this);;
3411
+ super("maxBuffer exceeded");
3434
3412
  }
3435
- }, _class);
3413
+ };
3436
3414
 
3437
3415
  // ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/utils.js
3438
3416
  init_cjs_shims();
@@ -3556,9 +3534,9 @@ var stringMethods = {
3556
3534
  };
3557
3535
 
3558
3536
  // ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/index.js
3559
- Object.assign(nodeImports, { on: _events2.on, finished: _promises3.finished });
3537
+ Object.assign(nodeImports, { on: events.on, finished: promises.finished });
3560
3538
 
3561
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/io/max-buffer.js
3539
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/io/max-buffer.js
3562
3540
  var handleMaxBuffer = ({ error, stream, readableObjectMode, lines, encoding, fdNumber }) => {
3563
3541
  if (!(error instanceof MaxBufferError)) {
3564
3542
  throw error;
@@ -3596,7 +3574,7 @@ var getMaxBufferMessage = (error, maxBuffer) => {
3596
3574
  return `Command's ${streamName} was larger than ${threshold} ${unit}`;
3597
3575
  };
3598
3576
  var getMaxBufferInfo = (error, maxBuffer) => {
3599
- if (_optionalChain([error, 'optionalAccess', _22 => _22.maxBufferInfo]) === void 0) {
3577
+ if (error?.maxBufferInfo === void 0) {
3600
3578
  return { streamName: "output", threshold: maxBuffer[1], unit: "bytes" };
3601
3579
  }
3602
3580
  const { maxBufferInfo: { fdNumber, unit } } = error;
@@ -3607,7 +3585,7 @@ var getMaxBufferInfo = (error, maxBuffer) => {
3607
3585
  }
3608
3586
  return { streamName: getStreamName(fdNumber), threshold, unit };
3609
3587
  };
3610
- var isMaxBufferSync = (resultError, output, maxBuffer) => _optionalChain([resultError, 'optionalAccess', _23 => _23.code]) === "ENOBUFS" && output !== null && output.some((result) => result !== null && result.length > getMaxBufferSync(maxBuffer));
3588
+ var isMaxBufferSync = (resultError, output, maxBuffer) => resultError?.code === "ENOBUFS" && output !== null && output.some((result) => result !== null && result.length > getMaxBufferSync(maxBuffer));
3611
3589
  var truncateMaxBufferSync = (result, isMaxBuffer, maxBuffer) => {
3612
3590
  if (!isMaxBuffer) {
3613
3591
  return result;
@@ -3617,7 +3595,7 @@ var truncateMaxBufferSync = (result, isMaxBuffer, maxBuffer) => {
3617
3595
  };
3618
3596
  var getMaxBufferSync = ([, stdoutMaxBuffer]) => stdoutMaxBuffer;
3619
3597
 
3620
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/return/message.js
3598
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/return/message.js
3621
3599
  var createMessages = ({
3622
3600
  stdio,
3623
3601
  all,
@@ -3638,7 +3616,7 @@ var createMessages = ({
3638
3616
  timeout,
3639
3617
  cwd
3640
3618
  }) => {
3641
- const errorCode = _optionalChain([originalError, 'optionalAccess', _24 => _24.code]);
3619
+ const errorCode = originalError?.code;
3642
3620
  const prefix = getErrorPrefix({
3643
3621
  originalError,
3644
3622
  timedOut,
@@ -3719,11 +3697,11 @@ var getOriginalMessage = (originalError, cwd) => {
3719
3697
  if (originalError instanceof DiscardedError) {
3720
3698
  return;
3721
3699
  }
3722
- const originalMessage = isExecaError(originalError) ? originalError.originalMessage : String(_nullishCoalesce(_optionalChain([originalError, 'optionalAccess', _25 => _25.message]), () => ( originalError)));
3700
+ const originalMessage = isExecaError(originalError) ? originalError.originalMessage : String(originalError?.message ?? originalError);
3723
3701
  const escapedOriginalMessage = escapeLines(fixCwdError(originalMessage, cwd));
3724
3702
  return escapedOriginalMessage === "" ? void 0 : escapedOriginalMessage;
3725
3703
  };
3726
- var serializeIpcMessage = (ipcMessage) => typeof ipcMessage === "string" ? ipcMessage : _util.inspect.call(void 0, ipcMessage);
3704
+ var serializeIpcMessage = (ipcMessage) => typeof ipcMessage === "string" ? ipcMessage : util.inspect(ipcMessage);
3727
3705
  var serializeMessagePart = (messagePart) => Array.isArray(messagePart) ? messagePart.map((messageItem) => stripFinalNewline(serializeMessageItem(messageItem))).filter(Boolean).join("\n") : serializeMessageItem(messagePart);
3728
3706
  var serializeMessageItem = (messageItem) => {
3729
3707
  if (typeof messageItem === "string") {
@@ -3735,7 +3713,7 @@ var serializeMessageItem = (messageItem) => {
3735
3713
  return "";
3736
3714
  };
3737
3715
 
3738
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/return/result.js
3716
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/return/result.js
3739
3717
  var makeSuccessResult = ({
3740
3718
  command,
3741
3719
  escapedCommand,
@@ -3892,7 +3870,7 @@ var getErrorProperties = ({
3892
3870
  exitCode,
3893
3871
  signal,
3894
3872
  signalDescription,
3895
- code: _optionalChain([error, 'access', _26 => _26.cause, 'optionalAccess', _27 => _27.code]),
3873
+ code: error.cause?.code,
3896
3874
  stdout: stdio[1],
3897
3875
  stderr: stdio[2],
3898
3876
  all,
@@ -3908,10 +3886,10 @@ var normalizeExitPayload = (rawExitCode, rawSignal) => {
3908
3886
  return { exitCode, signal, signalDescription };
3909
3887
  };
3910
3888
 
3911
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/return/reject.js
3889
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/return/reject.js
3912
3890
  init_cjs_shims();
3913
3891
 
3914
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/verbose/complete.js
3892
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/verbose/complete.js
3915
3893
  init_cjs_shims();
3916
3894
 
3917
3895
  // ../../node_modules/.pnpm/pretty-ms@9.0.0/node_modules/pretty-ms/index.js
@@ -3989,7 +3967,7 @@ function prettyMilliseconds(milliseconds, options) {
3989
3967
  if ((result.length === 0 || !options.colonNotation) && isZero(value) && !(options.colonNotation && short === "m")) {
3990
3968
  return;
3991
3969
  }
3992
- valueString = _nullishCoalesce(valueString, () => ( String(value)));
3970
+ valueString = valueString ?? String(value);
3993
3971
  if (options.colonNotation) {
3994
3972
  const wholeDigits = valueString.includes(".") ? valueString.split(".")[0].length : valueString.length;
3995
3973
  const minLength = result.length > 0 ? 2 : 1;
@@ -4044,7 +4022,7 @@ function prettyMilliseconds(milliseconds, options) {
4044
4022
  return result.join(separator);
4045
4023
  }
4046
4024
 
4047
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/verbose/error.js
4025
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/verbose/error.js
4048
4026
  init_cjs_shims();
4049
4027
  var logError = (result, verboseInfo) => {
4050
4028
  if (result.failed) {
@@ -4057,7 +4035,7 @@ var logError = (result, verboseInfo) => {
4057
4035
  }
4058
4036
  };
4059
4037
 
4060
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/verbose/complete.js
4038
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/verbose/complete.js
4061
4039
  var logResult = (result, verboseInfo) => {
4062
4040
  if (!isVerbose(verboseInfo)) {
4063
4041
  return;
@@ -4075,7 +4053,7 @@ var logDuration = (result, verboseInfo) => {
4075
4053
  });
4076
4054
  };
4077
4055
 
4078
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/return/reject.js
4056
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/return/reject.js
4079
4057
  var handleResult = (result, verboseInfo, { reject }) => {
4080
4058
  logResult(result, verboseInfo);
4081
4059
  if (result.failed && reject) {
@@ -4084,17 +4062,16 @@ var handleResult = (result, verboseInfo, { reject }) => {
4084
4062
  return result;
4085
4063
  };
4086
4064
 
4087
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/stdio/handle-sync.js
4065
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/stdio/handle-sync.js
4088
4066
  init_cjs_shims();
4089
4067
 
4090
-
4091
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/stdio/handle.js
4068
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/stdio/handle.js
4092
4069
  init_cjs_shims();
4093
4070
 
4094
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/transform/normalize.js
4071
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/transform/normalize.js
4095
4072
  init_cjs_shims();
4096
4073
 
4097
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/stdio/type.js
4074
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/stdio/type.js
4098
4075
  init_cjs_shims();
4099
4076
  var getStdioItemType = (value, optionName) => {
4100
4077
  if (isAsyncGenerator(value)) {
@@ -4187,14 +4164,15 @@ var isSyncGenerator = (value) => Object.prototype.toString.call(value) === "[obj
4187
4164
  var isTransformOptions = (value) => isPlainObject(value) && (value.transform !== void 0 || value.final !== void 0);
4188
4165
  var isUrl = (value) => Object.prototype.toString.call(value) === "[object URL]";
4189
4166
  var isRegularUrl = (value) => isUrl(value) && value.protocol !== "file:";
4190
- var isFilePathObject = (value) => isPlainObject(value) && Object.keys(value).length === 1 && isFilePathString(value.file);
4167
+ var isFilePathObject = (value) => isPlainObject(value) && Object.keys(value).length > 0 && Object.keys(value).every((key) => FILE_PATH_KEYS.has(key)) && isFilePathString(value.file);
4168
+ var FILE_PATH_KEYS = /* @__PURE__ */ new Set(["file", "append"]);
4191
4169
  var isFilePathString = (file) => typeof file === "string";
4192
4170
  var isUnknownStdioString = (type, value) => type === "native" && typeof value === "string" && !KNOWN_STDIO_STRINGS.has(value);
4193
4171
  var KNOWN_STDIO_STRINGS = /* @__PURE__ */ new Set(["ipc", "ignore", "inherit", "overlapped", "pipe"]);
4194
4172
  var isReadableStream2 = (value) => Object.prototype.toString.call(value) === "[object ReadableStream]";
4195
4173
  var isWritableStream2 = (value) => Object.prototype.toString.call(value) === "[object WritableStream]";
4196
4174
  var isWebStream = (value) => isReadableStream2(value) || isWritableStream2(value);
4197
- var isTransformStream = (value) => isReadableStream2(_optionalChain([value, 'optionalAccess', _28 => _28.readable])) && isWritableStream2(_optionalChain([value, 'optionalAccess', _29 => _29.writable]));
4175
+ var isTransformStream = (value) => isReadableStream2(value?.readable) && isWritableStream2(value?.writable);
4198
4176
  var isAsyncIterableObject = (value) => isObject(value) && typeof value[Symbol.asyncIterator] === "function";
4199
4177
  var isIterableObject = (value) => isObject(value) && typeof value[Symbol.iterator] === "function";
4200
4178
  var isObject = (value) => typeof value === "object" && value !== null;
@@ -4220,17 +4198,17 @@ var TYPE_TO_MESSAGE = {
4220
4198
  uint8Array: "a Uint8Array"
4221
4199
  };
4222
4200
 
4223
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/transform/object-mode.js
4201
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/transform/object-mode.js
4224
4202
  init_cjs_shims();
4225
4203
  var getTransformObjectModes = (objectMode, index, newTransforms, direction) => direction === "output" ? getOutputObjectModes(objectMode, index, newTransforms) : getInputObjectModes(objectMode, index, newTransforms);
4226
4204
  var getOutputObjectModes = (objectMode, index, newTransforms) => {
4227
4205
  const writableObjectMode = index !== 0 && newTransforms[index - 1].value.readableObjectMode;
4228
- const readableObjectMode = _nullishCoalesce(objectMode, () => ( writableObjectMode));
4206
+ const readableObjectMode = objectMode ?? writableObjectMode;
4229
4207
  return { writableObjectMode, readableObjectMode };
4230
4208
  };
4231
4209
  var getInputObjectModes = (objectMode, index, newTransforms) => {
4232
4210
  const writableObjectMode = index === 0 ? objectMode === true : newTransforms[index - 1].value.readableObjectMode;
4233
- const readableObjectMode = index !== newTransforms.length - 1 && (_nullishCoalesce(objectMode, () => ( writableObjectMode)));
4211
+ const readableObjectMode = index !== newTransforms.length - 1 && (objectMode ?? writableObjectMode);
4234
4212
  return { writableObjectMode, readableObjectMode };
4235
4213
  };
4236
4214
  var getFdObjectMode = (stdioItems, direction) => {
@@ -4241,7 +4219,7 @@ var getFdObjectMode = (stdioItems, direction) => {
4241
4219
  return direction === "input" ? lastTransform.value.writableObjectMode : lastTransform.value.readableObjectMode;
4242
4220
  };
4243
4221
 
4244
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/transform/normalize.js
4222
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/transform/normalize.js
4245
4223
  var normalizeTransforms = (stdioItems, optionName, direction, options) => [
4246
4224
  ...stdioItems.filter(({ type }) => !TRANSFORM_TYPES.has(type)),
4247
4225
  ...getTransforms(stdioItems, optionName, direction, options)
@@ -4335,17 +4313,16 @@ var normalizeGenerator = ({ stdioItem, stdioItem: { value }, index, newTransform
4335
4313
  };
4336
4314
  var sortTransforms = (newTransforms, direction) => direction === "input" ? newTransforms.reverse() : newTransforms;
4337
4315
 
4338
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/stdio/direction.js
4316
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/stdio/direction.js
4339
4317
  init_cjs_shims();
4340
-
4341
4318
  var getStreamDirection = (stdioItems, fdNumber, optionName) => {
4342
4319
  const directions = stdioItems.map((stdioItem) => getStdioItemDirection(stdioItem, fdNumber));
4343
4320
  if (directions.includes("input") && directions.includes("output")) {
4344
4321
  throw new TypeError(`The \`${optionName}\` option must not be an array of both readable and writable values.`);
4345
4322
  }
4346
- return _nullishCoalesce(directions.find(Boolean), () => ( DEFAULT_DIRECTION));
4323
+ return directions.find(Boolean) ?? DEFAULT_DIRECTION;
4347
4324
  };
4348
- var getStdioItemDirection = ({ type, value }, fdNumber) => _nullishCoalesce(KNOWN_DIRECTIONS[fdNumber], () => ( guessStreamDirection[type](value)));
4325
+ var getStdioItemDirection = ({ type, value }, fdNumber) => KNOWN_DIRECTIONS[fdNumber] ?? guessStreamDirection[type](value);
4349
4326
  var KNOWN_DIRECTIONS = ["input", "output", "output"];
4350
4327
  var anyDirection = () => void 0;
4351
4328
  var alwaysInput = () => "input";
@@ -4377,23 +4354,23 @@ var guessStreamDirection = {
4377
4354
  }
4378
4355
  };
4379
4356
  var getStandardStreamDirection = (value) => {
4380
- if ([0, process10.default.stdin].includes(value)) {
4357
+ if ([0, process3__namespace.default.stdin].includes(value)) {
4381
4358
  return "input";
4382
4359
  }
4383
- if ([1, 2, process10.default.stdout, process10.default.stderr].includes(value)) {
4360
+ if ([1, 2, process3__namespace.default.stdout, process3__namespace.default.stderr].includes(value)) {
4384
4361
  return "output";
4385
4362
  }
4386
4363
  };
4387
4364
  var DEFAULT_DIRECTION = "output";
4388
4365
 
4389
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/stdio/stdio-option.js
4366
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/stdio/stdio-option.js
4390
4367
  init_cjs_shims();
4391
4368
 
4392
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/ipc/array.js
4369
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/ipc/array.js
4393
4370
  init_cjs_shims();
4394
4371
  var normalizeIpcStdioArray = (stdioArray, ipc) => ipc && !stdioArray.includes("ipc") ? [...stdioArray, "ipc"] : stdioArray;
4395
4372
 
4396
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/stdio/stdio-option.js
4373
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/stdio/stdio-option.js
4397
4374
  var normalizeStdioOption = ({ stdio, ipc, buffer, ...options }, verboseInfo, isSync) => {
4398
4375
  const stdioArray = getStdioArray(stdio, options).map((stdioOption, fdNumber) => addDefaultValue2(stdioOption, fdNumber));
4399
4376
  return isSync ? normalizeStdioSync(stdioArray, buffer, verboseInfo) : normalizeIpcStdioArray(stdioArray, ipc);
@@ -4427,10 +4404,8 @@ var addDefaultValue2 = (stdioOption, fdNumber) => {
4427
4404
  var normalizeStdioSync = (stdioArray, buffer, verboseInfo) => stdioArray.map((stdioOption, fdNumber) => !buffer[fdNumber] && fdNumber !== 0 && !isFullVerbose(verboseInfo, fdNumber) && isOutputPipeOnly(stdioOption) ? "ignore" : stdioOption);
4428
4405
  var isOutputPipeOnly = (stdioOption) => stdioOption === "pipe" || Array.isArray(stdioOption) && stdioOption.every((item) => item === "pipe");
4429
4406
 
4430
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/stdio/native.js
4407
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/stdio/native.js
4431
4408
  init_cjs_shims();
4432
-
4433
-
4434
4409
  var handleNativeStream = ({ stdioItem, stdioItem: { type }, isStdioArray, fdNumber, direction, isSync }) => {
4435
4410
  if (!isStdioArray || type !== "native") {
4436
4411
  return stdioItem;
@@ -4460,10 +4435,10 @@ var getTargetFd = ({ value, optionName, fdNumber, direction }) => {
4460
4435
  if (direction === "output") {
4461
4436
  return { type: "fileNumber", value: targetFdNumber, optionName };
4462
4437
  }
4463
- if (_tty2.default.isatty(targetFdNumber)) {
4438
+ if (tty__default.default.isatty(targetFdNumber)) {
4464
4439
  throw new TypeError(`The \`${optionName}: ${serializeOptionValue(value)}\` option is invalid: it cannot be a TTY with synchronous methods.`);
4465
4440
  }
4466
- return { type: "uint8Array", value: bufferToUint8Array(_fs.readFileSync.call(void 0, targetFdNumber)), optionName };
4441
+ return { type: "uint8Array", value: bufferToUint8Array(fs.readFileSync(targetFdNumber)), optionName };
4467
4442
  };
4468
4443
  var getTargetFdNumber = (value, fdNumber) => {
4469
4444
  if (value === "inherit") {
@@ -4497,7 +4472,7 @@ var getStandardStream = (fdNumber, value, optionName) => {
4497
4472
  return standardStream;
4498
4473
  };
4499
4474
 
4500
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/stdio/input-option.js
4475
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/stdio/input-option.js
4501
4476
  init_cjs_shims();
4502
4477
  var handleInputOptions = ({ input, inputFile }, fdNumber) => fdNumber === 0 ? [
4503
4478
  ...handleInputOption(input),
@@ -4534,7 +4509,7 @@ var getInputFileType = (inputFile) => {
4534
4509
  throw new Error("The `inputFile` option must be a file path string or a file URL.");
4535
4510
  };
4536
4511
 
4537
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/stdio/duplicate.js
4512
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/stdio/duplicate.js
4538
4513
  init_cjs_shims();
4539
4514
  var filterDuplicates = (stdioItems) => stdioItems.filter((stdioItemOne, indexOne) => stdioItems.every((stdioItemTwo, indexTwo) => stdioItemOne.value !== stdioItemTwo.value || indexOne >= indexTwo || stdioItemOne.type === "generator" || stdioItemOne.type === "asyncGenerator"));
4540
4515
  var getDuplicateStream = ({ stdioItem: { type, value, optionName }, direction, fileDescriptors, isSync }) => {
@@ -4610,7 +4585,7 @@ var throwOnDuplicateStream = (stdioItem, optionName, type) => {
4610
4585
  }
4611
4586
  };
4612
4587
 
4613
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/stdio/handle.js
4588
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/stdio/handle.js
4614
4589
  var handleStdio = (addProperties3, options, verboseInfo, isSync) => {
4615
4590
  const stdio = normalizeStdioOption(options, verboseInfo, isSync);
4616
4591
  const initialFileDescriptors = stdio.map((stdioOption, fdNumber) => getFileDescriptor({
@@ -4770,7 +4745,7 @@ var forwardStdio = (stdioItems) => {
4770
4745
  return type === "native" ? value : "pipe";
4771
4746
  };
4772
4747
 
4773
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/stdio/handle-sync.js
4748
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/stdio/handle-sync.js
4774
4749
  var handleStdioSync = (options, verboseInfo) => handleStdio(addPropertiesSync, options, verboseInfo, true);
4775
4750
  var forbiddenIfSync = ({ type, optionName }) => {
4776
4751
  throwInvalidSyncValue(optionName, TYPE_TO_MESSAGE[type]);
@@ -4798,8 +4773,8 @@ var addProperties = {
4798
4773
  var addPropertiesSync = {
4799
4774
  input: {
4800
4775
  ...addProperties,
4801
- fileUrl: ({ value }) => ({ contents: [bufferToUint8Array(_fs.readFileSync.call(void 0, value))] }),
4802
- filePath: ({ value: { file } }) => ({ contents: [bufferToUint8Array(_fs.readFileSync.call(void 0, file))] }),
4776
+ fileUrl: ({ value }) => ({ contents: [bufferToUint8Array(fs.readFileSync(value))] }),
4777
+ filePath: ({ value: { file } }) => ({ contents: [bufferToUint8Array(fs.readFileSync(file))] }),
4803
4778
  fileNumber: forbiddenIfSync,
4804
4779
  iterable: ({ value }) => ({ contents: [...value] }),
4805
4780
  string: ({ value }) => ({ contents: [value] }),
@@ -4808,7 +4783,7 @@ var addPropertiesSync = {
4808
4783
  output: {
4809
4784
  ...addProperties,
4810
4785
  fileUrl: ({ value }) => ({ path: value }),
4811
- filePath: ({ value: { file } }) => ({ path: file }),
4786
+ filePath: ({ value: { file, append } }) => ({ path: file, append }),
4812
4787
  fileNumber: ({ value }) => ({ path: value }),
4813
4788
  iterable: forbiddenIfSync,
4814
4789
  string: forbiddenIfSync,
@@ -4816,19 +4791,18 @@ var addPropertiesSync = {
4816
4791
  }
4817
4792
  };
4818
4793
 
4819
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/io/strip-newline.js
4794
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/io/strip-newline.js
4820
4795
  init_cjs_shims();
4821
4796
  var stripNewline = (value, { stripFinalNewline: stripFinalNewline2 }, fdNumber) => getStripFinalNewline(stripFinalNewline2, fdNumber) && value !== void 0 && !Array.isArray(value) ? stripFinalNewline(value) : value;
4822
4797
  var getStripFinalNewline = (stripFinalNewline2, fdNumber) => fdNumber === "all" ? stripFinalNewline2[1] || stripFinalNewline2[2] : stripFinalNewline2[fdNumber];
4823
4798
 
4824
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/io/input-sync.js
4799
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/io/input-sync.js
4825
4800
  init_cjs_shims();
4826
4801
 
4827
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/transform/generator.js
4802
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/transform/generator.js
4828
4803
  init_cjs_shims();
4829
- var _stream = require('stream');
4830
4804
 
4831
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/transform/split.js
4805
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/transform/split.js
4832
4806
  init_cjs_shims();
4833
4807
  var getSplitLinesGenerator = (binary, preserveNewlines, skipped, state) => binary || skipped ? void 0 : initializeSplitLines(preserveNewlines, state);
4834
4808
  var splitLinesSync = (chunk, preserveNewlines, objectMode) => objectMode ? chunk.flatMap((item) => splitLinesItemSync(item, preserveNewlines)) : splitLinesItemSync(chunk, preserveNewlines);
@@ -4909,12 +4883,11 @@ var linesUint8ArrayInfo = {
4909
4883
  concatBytes: concatUint8Array
4910
4884
  };
4911
4885
 
4912
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/transform/validate.js
4886
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/transform/validate.js
4913
4887
  init_cjs_shims();
4914
- var _buffer = require('buffer');
4915
4888
  var getValidateTransformInput = (writableObjectMode, optionName) => writableObjectMode ? void 0 : validateStringTransformInput.bind(void 0, optionName);
4916
4889
  var validateStringTransformInput = function* (optionName, chunk) {
4917
- if (typeof chunk !== "string" && !isUint8Array(chunk) && !_buffer.Buffer.isBuffer(chunk)) {
4890
+ if (typeof chunk !== "string" && !isUint8Array(chunk) && !buffer.Buffer.isBuffer(chunk)) {
4918
4891
  throw new TypeError(`The \`${optionName}\` option's transform must use "objectMode: true" to receive as input: ${typeof chunk}.`);
4919
4892
  }
4920
4893
  yield chunk;
@@ -4939,10 +4912,8 @@ Instead, \`yield\` should either be called with a value, or not be called at all
4939
4912
  }
4940
4913
  };
4941
4914
 
4942
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/transform/encoding-transform.js
4915
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/transform/encoding-transform.js
4943
4916
  init_cjs_shims();
4944
-
4945
-
4946
4917
  var getEncodingTransformGenerator = (binary, encoding, skipped) => {
4947
4918
  if (skipped) {
4948
4919
  return;
@@ -4950,14 +4921,14 @@ var getEncodingTransformGenerator = (binary, encoding, skipped) => {
4950
4921
  if (binary) {
4951
4922
  return { transform: encodingUint8ArrayGenerator.bind(void 0, new TextEncoder()) };
4952
4923
  }
4953
- const stringDecoder = new (0, _string_decoder.StringDecoder)(encoding);
4924
+ const stringDecoder = new string_decoder.StringDecoder(encoding);
4954
4925
  return {
4955
4926
  transform: encodingStringGenerator.bind(void 0, stringDecoder),
4956
4927
  final: encodingStringFinal.bind(void 0, stringDecoder)
4957
4928
  };
4958
4929
  };
4959
4930
  var encodingUint8ArrayGenerator = function* (textEncoder3, chunk) {
4960
- if (_buffer.Buffer.isBuffer(chunk)) {
4931
+ if (buffer.Buffer.isBuffer(chunk)) {
4961
4932
  yield bufferToUint8Array(chunk);
4962
4933
  } else if (typeof chunk === "string") {
4963
4934
  yield textEncoder3.encode(chunk);
@@ -4975,10 +4946,9 @@ var encodingStringFinal = function* (stringDecoder) {
4975
4946
  }
4976
4947
  };
4977
4948
 
4978
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/transform/run-async.js
4949
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/transform/run-async.js
4979
4950
  init_cjs_shims();
4980
-
4981
- var pushChunks = _util.callbackify.call(void 0, async (getChunks, state, getChunksArguments, transformStream) => {
4951
+ var pushChunks = util.callbackify(async (getChunks, state, getChunksArguments, transformStream) => {
4982
4952
  state.currentIterable = getChunks(...getChunksArguments);
4983
4953
  try {
4984
4954
  for await (const chunk of state.currentIterable) {
@@ -5011,7 +4981,7 @@ var generatorFinalChunks = async function* (final, index, generators) {
5011
4981
  yield* transformChunk(finalChunk, generators, index + 1);
5012
4982
  }
5013
4983
  };
5014
- var destroyTransform = _util.callbackify.call(void 0, async ({ currentIterable }, error) => {
4984
+ var destroyTransform = util.callbackify(async ({ currentIterable }, error) => {
5015
4985
  if (currentIterable !== void 0) {
5016
4986
  await (error ? currentIterable.throw(error) : currentIterable.return());
5017
4987
  return;
@@ -5024,7 +4994,7 @@ var identityGenerator = function* (chunk) {
5024
4994
  yield chunk;
5025
4995
  };
5026
4996
 
5027
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/transform/run-sync.js
4997
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/transform/run-sync.js
5028
4998
  init_cjs_shims();
5029
4999
  var pushChunksSync = (getChunksSync, getChunksArguments, transformStream, done) => {
5030
5000
  try {
@@ -5067,7 +5037,7 @@ var identityGenerator2 = function* (chunk) {
5067
5037
  yield chunk;
5068
5038
  };
5069
5039
 
5070
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/transform/generator.js
5040
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/transform/generator.js
5071
5041
  var generatorToStream = ({
5072
5042
  value,
5073
5043
  value: { transform, final, writableObjectMode, readableObjectMode },
@@ -5080,11 +5050,11 @@ var generatorToStream = ({
5080
5050
  const transformMethod = transformAsync ? pushChunks.bind(void 0, transformChunk, state) : pushChunksSync.bind(void 0, transformChunkSync);
5081
5051
  const finalMethod = transformAsync || finalAsync ? pushChunks.bind(void 0, finalChunks, state) : pushChunksSync.bind(void 0, finalChunksSync);
5082
5052
  const destroyMethod = transformAsync || finalAsync ? destroyTransform.bind(void 0, state) : void 0;
5083
- const stream = new (0, _stream.Transform)({
5053
+ const stream$1 = new stream.Transform({
5084
5054
  writableObjectMode,
5085
- writableHighWaterMark: _stream.getDefaultHighWaterMark.call(void 0, writableObjectMode),
5055
+ writableHighWaterMark: stream.getDefaultHighWaterMark(writableObjectMode),
5086
5056
  readableObjectMode,
5087
- readableHighWaterMark: _stream.getDefaultHighWaterMark.call(void 0, readableObjectMode),
5057
+ readableHighWaterMark: stream.getDefaultHighWaterMark(readableObjectMode),
5088
5058
  transform(chunk, encoding2, done) {
5089
5059
  transformMethod([chunk, generators, 0], this, done);
5090
5060
  },
@@ -5093,7 +5063,7 @@ var generatorToStream = ({
5093
5063
  },
5094
5064
  destroy: destroyMethod
5095
5065
  });
5096
- return { stream };
5066
+ return { stream: stream$1 };
5097
5067
  };
5098
5068
  var runGeneratorsSync = (chunks, stdioItems, encoding, isInput) => {
5099
5069
  const generators = stdioItems.filter(({ type }) => type === "generator");
@@ -5121,7 +5091,7 @@ var addInternalGenerators = ({ transform, final, binary, writableObjectMode, rea
5121
5091
  ].filter(Boolean);
5122
5092
  };
5123
5093
 
5124
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/io/input-sync.js
5094
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/io/input-sync.js
5125
5095
  var addInputOptionsSync = (fileDescriptors, options) => {
5126
5096
  for (const fdNumber of getInputFdNumbers(fileDescriptors)) {
5127
5097
  addInputOptionSync(fileDescriptors, fdNumber, options);
@@ -5154,11 +5124,10 @@ var validateSerializable = (newContents) => {
5154
5124
  }
5155
5125
  };
5156
5126
 
5157
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/io/output-sync.js
5127
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/io/output-sync.js
5158
5128
  init_cjs_shims();
5159
5129
 
5160
-
5161
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/verbose/output.js
5130
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/verbose/output.js
5162
5131
  init_cjs_shims();
5163
5132
  var shouldLogOutput = ({ stdioItems, encoding, verboseInfo, fdNumber }) => fdNumber !== "all" && isFullVerbose(verboseInfo, fdNumber) && !BINARY_ENCODINGS.has(encoding) && fdUsesVerbose(fdNumber) && (stdioItems.some(({ type, value }) => type === "native" && PIPED_STDIO_VALUES.has(value)) || stdioItems.every(({ type }) => TRANSFORM_TYPES.has(type)));
5164
5133
  var fdUsesVerbose = (fdNumber) => fdNumber === 1 || fdNumber === 2;
@@ -5186,7 +5155,7 @@ var logLine = (line, fdNumber, verboseInfo) => {
5186
5155
  });
5187
5156
  };
5188
5157
 
5189
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/io/output-sync.js
5158
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/io/output-sync.js
5190
5159
  var transformOutputSync = ({ fileDescriptors, syncResult: { output }, options, isMaxBuffer, verboseInfo }) => {
5191
5160
  if (output === null) {
5192
5161
  return { output: Array.from({ length: 3 }) };
@@ -5278,18 +5247,18 @@ var logOutputSync = ({ serializedResult, fdNumber, state, verboseInfo, encoding,
5278
5247
  }
5279
5248
  };
5280
5249
  var writeToFiles = (serializedResult, stdioItems, outputFiles) => {
5281
- for (const { path: path6 } of stdioItems.filter(({ type }) => FILE_TYPES.has(type))) {
5282
- const pathString = typeof path6 === "string" ? path6 : path6.toString();
5283
- if (outputFiles.has(pathString)) {
5284
- _fs.appendFileSync.call(void 0, path6, serializedResult);
5250
+ for (const { path: path7, append } of stdioItems.filter(({ type }) => FILE_TYPES.has(type))) {
5251
+ const pathString = typeof path7 === "string" ? path7 : path7.toString();
5252
+ if (append || outputFiles.has(pathString)) {
5253
+ fs.appendFileSync(path7, serializedResult);
5285
5254
  } else {
5286
5255
  outputFiles.add(pathString);
5287
- _fs.writeFileSync.call(void 0, path6, serializedResult);
5256
+ fs.writeFileSync(path7, serializedResult);
5288
5257
  }
5289
5258
  }
5290
5259
  };
5291
5260
 
5292
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/resolve/all-sync.js
5261
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/resolve/all-sync.js
5293
5262
  init_cjs_shims();
5294
5263
  var getAllSync = ([, stdout2, stderr], options) => {
5295
5264
  if (!options.all) {
@@ -5313,12 +5282,11 @@ var getAllSync = ([, stdout2, stderr], options) => {
5313
5282
  return `${stdout2}${stderr}`;
5314
5283
  };
5315
5284
 
5316
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/resolve/exit-sync.js
5285
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/resolve/exit-sync.js
5317
5286
  init_cjs_shims();
5318
5287
 
5319
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/resolve/exit-async.js
5288
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/resolve/exit-async.js
5320
5289
  init_cjs_shims();
5321
-
5322
5290
  var waitForExit = async (subprocess, context) => {
5323
5291
  const [exitCode, signal] = await waitForExitOrError(subprocess);
5324
5292
  context.isForcefullyTerminated ??= false;
@@ -5326,8 +5294,8 @@ var waitForExit = async (subprocess, context) => {
5326
5294
  };
5327
5295
  var waitForExitOrError = async (subprocess) => {
5328
5296
  const [spawnPayload, exitPayload] = await Promise.allSettled([
5329
- _events2.once.call(void 0, subprocess, "spawn"),
5330
- _events2.once.call(void 0, subprocess, "exit")
5297
+ events.once(subprocess, "spawn"),
5298
+ events.once(subprocess, "exit")
5331
5299
  ]);
5332
5300
  if (spawnPayload.status === "rejected") {
5333
5301
  return [];
@@ -5336,8 +5304,8 @@ var waitForExitOrError = async (subprocess) => {
5336
5304
  };
5337
5305
  var waitForSubprocessExit = async (subprocess) => {
5338
5306
  try {
5339
- return await _events2.once.call(void 0, subprocess, "exit");
5340
- } catch (e4) {
5307
+ return await events.once(subprocess, "exit");
5308
+ } catch {
5341
5309
  return waitForSubprocessExit(subprocess);
5342
5310
  }
5343
5311
  };
@@ -5351,10 +5319,10 @@ var waitForSuccessfulExit = async (exitPromise) => {
5351
5319
  var isSubprocessErrorExit = (exitCode, signal) => exitCode === void 0 && signal === void 0;
5352
5320
  var isFailedExit = (exitCode, signal) => exitCode !== 0 || signal !== null;
5353
5321
 
5354
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/resolve/exit-sync.js
5322
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/resolve/exit-sync.js
5355
5323
  var getExitResultSync = ({ error, status: exitCode, signal, output }, { maxBuffer }) => {
5356
5324
  const resultError = getResultError(error, exitCode, signal);
5357
- const timedOut = _optionalChain([resultError, 'optionalAccess', _30 => _30.code]) === "ETIMEDOUT";
5325
+ const timedOut = resultError?.code === "ETIMEDOUT";
5358
5326
  const isMaxBuffer = isMaxBufferSync(resultError, output, maxBuffer);
5359
5327
  return {
5360
5328
  resultError,
@@ -5371,7 +5339,7 @@ var getResultError = (error, exitCode, signal) => {
5371
5339
  return isFailedExit(exitCode, signal) ? new DiscardedError() : void 0;
5372
5340
  };
5373
5341
 
5374
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/methods/main-sync.js
5342
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/methods/main-sync.js
5375
5343
  var execaCoreSync = (rawFile, rawArguments, rawOptions) => {
5376
5344
  const { file, commandArguments, command, escapedCommand, startTime, verboseInfo, options, fileDescriptors } = handleSyncArguments(rawFile, rawArguments, rawOptions);
5377
5345
  const result = spawnSubprocessSync({
@@ -5462,7 +5430,7 @@ var runSubprocessSync = ({ file, commandArguments, options, command, escapedComm
5462
5430
  try {
5463
5431
  addInputOptionsSync(fileDescriptors, options);
5464
5432
  const normalizedOptions = normalizeSpawnSyncOptions(options);
5465
- return _child_process.spawnSync.call(void 0, file, commandArguments, normalizedOptions);
5433
+ return child_process.spawnSync(file, commandArguments, normalizedOptions);
5466
5434
  } catch (error) {
5467
5435
  return makeEarlyError({
5468
5436
  error,
@@ -5503,18 +5471,14 @@ var getSyncResult = ({ error, exitCode, signal, timedOut, isMaxBuffer, stdio, al
5503
5471
  isSync: true
5504
5472
  });
5505
5473
 
5506
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/methods/main-async.js
5474
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/methods/main-async.js
5507
5475
  init_cjs_shims();
5508
5476
 
5509
-
5510
-
5511
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/ipc/methods.js
5477
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/ipc/methods.js
5512
5478
  init_cjs_shims();
5513
5479
 
5514
-
5515
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/ipc/get-one.js
5480
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/ipc/get-one.js
5516
5481
  init_cjs_shims();
5517
-
5518
5482
  var getOneMessage = ({ anyProcess, channel, isSubprocess, ipc }, { reference = true, filter } = {}) => {
5519
5483
  validateIpcMethod({
5520
5484
  methodName: "getOneMessage",
@@ -5550,27 +5514,26 @@ var getOneMessageAsync = async ({ anyProcess, channel, isSubprocess, filter, ref
5550
5514
  };
5551
5515
  var getMessage = async (ipcEmitter, filter, { signal }) => {
5552
5516
  if (filter === void 0) {
5553
- const [message] = await _events2.once.call(void 0, ipcEmitter, "message", { signal });
5517
+ const [message] = await events.once(ipcEmitter, "message", { signal });
5554
5518
  return message;
5555
5519
  }
5556
- for await (const [message] of _events2.on.call(void 0, ipcEmitter, "message", { signal })) {
5520
+ for await (const [message] of events.on(ipcEmitter, "message", { signal })) {
5557
5521
  if (filter(message)) {
5558
5522
  return message;
5559
5523
  }
5560
5524
  }
5561
5525
  };
5562
5526
  var throwOnDisconnect2 = async (ipcEmitter, isSubprocess, { signal }) => {
5563
- await _events2.once.call(void 0, ipcEmitter, "disconnect", { signal });
5527
+ await events.once(ipcEmitter, "disconnect", { signal });
5564
5528
  throwOnEarlyDisconnect(isSubprocess);
5565
5529
  };
5566
5530
  var throwOnStrictError = async (ipcEmitter, isSubprocess, { signal }) => {
5567
- const [error] = await _events2.once.call(void 0, ipcEmitter, "strict:error", { signal });
5531
+ const [error] = await events.once(ipcEmitter, "strict:error", { signal });
5568
5532
  throw getStrictResponseError(error, isSubprocess);
5569
5533
  };
5570
5534
 
5571
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/ipc/get-each.js
5535
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/ipc/get-each.js
5572
5536
  init_cjs_shims();
5573
-
5574
5537
  var getEachMessage = ({ anyProcess, channel, isSubprocess, ipc }, { reference = true } = {}) => loopOnMessages({
5575
5538
  anyProcess,
5576
5539
  channel,
@@ -5610,26 +5573,26 @@ var loopOnMessages = ({ anyProcess, channel, isSubprocess, ipc, shouldAwait, ref
5610
5573
  };
5611
5574
  var stopOnDisconnect = async (anyProcess, ipcEmitter, controller) => {
5612
5575
  try {
5613
- await _events2.once.call(void 0, ipcEmitter, "disconnect", { signal: controller.signal });
5576
+ await events.once(ipcEmitter, "disconnect", { signal: controller.signal });
5614
5577
  controller.abort();
5615
- } catch (e5) {
5578
+ } catch {
5616
5579
  }
5617
5580
  };
5618
5581
  var abortOnStrictError = async ({ ipcEmitter, isSubprocess, controller, state }) => {
5619
5582
  try {
5620
- const [error] = await _events2.once.call(void 0, ipcEmitter, "strict:error", { signal: controller.signal });
5583
+ const [error] = await events.once(ipcEmitter, "strict:error", { signal: controller.signal });
5621
5584
  state.error = getStrictResponseError(error, isSubprocess);
5622
5585
  controller.abort();
5623
- } catch (e6) {
5586
+ } catch {
5624
5587
  }
5625
5588
  };
5626
5589
  var iterateOnMessages = async function* ({ anyProcess, channel, ipcEmitter, isSubprocess, shouldAwait, controller, state, reference }) {
5627
5590
  try {
5628
- for await (const [message] of _events2.on.call(void 0, ipcEmitter, "message", { signal: controller.signal })) {
5591
+ for await (const [message] of events.on(ipcEmitter, "message", { signal: controller.signal })) {
5629
5592
  throwIfStrictError(state);
5630
5593
  yield message;
5631
5594
  }
5632
- } catch (e7) {
5595
+ } catch {
5633
5596
  throwIfStrictError(state);
5634
5597
  } finally {
5635
5598
  controller.abort();
@@ -5648,14 +5611,14 @@ var throwIfStrictError = ({ error }) => {
5648
5611
  }
5649
5612
  };
5650
5613
 
5651
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/ipc/methods.js
5614
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/ipc/methods.js
5652
5615
  var addIpcMethods = (subprocess, { ipc }) => {
5653
5616
  Object.assign(subprocess, getIpcMethods(subprocess, false, ipc));
5654
5617
  };
5655
5618
  var getIpcExport = () => {
5656
- const anyProcess = process10.default;
5619
+ const anyProcess = process3__namespace.default;
5657
5620
  const isSubprocess = true;
5658
- const ipc = process10.default.channel !== void 0;
5621
+ const ipc = process3__namespace.default.channel !== void 0;
5659
5622
  return {
5660
5623
  ...getIpcMethods(anyProcess, isSubprocess, ipc),
5661
5624
  getCancelSignal: getCancelSignal.bind(void 0, {
@@ -5687,18 +5650,11 @@ var getIpcMethods = (anyProcess, isSubprocess, ipc) => ({
5687
5650
  })
5688
5651
  });
5689
5652
 
5690
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/return/early-error.js
5653
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/return/early-error.js
5691
5654
  init_cjs_shims();
5692
-
5693
-
5694
-
5695
-
5696
-
5697
-
5698
-
5699
5655
  var handleEarlyError = ({ error, command, escapedCommand, fileDescriptors, options, startTime, verboseInfo }) => {
5700
5656
  cleanupCustomStreams(fileDescriptors);
5701
- const subprocess = new (0, _child_process.ChildProcess)();
5657
+ const subprocess = new child_process.ChildProcess();
5702
5658
  createDummyStreams(subprocess, fileDescriptors);
5703
5659
  Object.assign(subprocess, { readable, writable, duplex });
5704
5660
  const earlyError = makeEarlyError({
@@ -5729,24 +5685,21 @@ var createDummyStreams = (subprocess, fileDescriptors) => {
5729
5685
  });
5730
5686
  };
5731
5687
  var createDummyStream = () => {
5732
- const stream = new (0, _stream.PassThrough)();
5733
- stream.end();
5734
- return stream;
5688
+ const stream$1 = new stream.PassThrough();
5689
+ stream$1.end();
5690
+ return stream$1;
5735
5691
  };
5736
- var readable = () => new (0, _stream.Readable)({ read() {
5692
+ var readable = () => new stream.Readable({ read() {
5737
5693
  } });
5738
- var writable = () => new (0, _stream.Writable)({ write() {
5694
+ var writable = () => new stream.Writable({ write() {
5739
5695
  } });
5740
- var duplex = () => new (0, _stream.Duplex)({ read() {
5696
+ var duplex = () => new stream.Duplex({ read() {
5741
5697
  }, write() {
5742
5698
  } });
5743
5699
  var handleDummyPromise = async (error, verboseInfo, options) => handleResult(error, verboseInfo, options);
5744
5700
 
5745
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/stdio/handle-async.js
5701
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/stdio/handle-async.js
5746
5702
  init_cjs_shims();
5747
-
5748
-
5749
-
5750
5703
  var handleStdioAsync = (options, verboseInfo) => handleStdio(addPropertiesAsync, options, verboseInfo, false);
5751
5704
  var forbiddenIfAsync = ({ type, optionName }) => {
5752
5705
  throw new TypeError(`The \`${optionName}\` option cannot be ${TYPE_TO_MESSAGE[type]}.`);
@@ -5758,8 +5711,8 @@ var addProperties2 = {
5758
5711
  nodeStream: ({ value }) => ({ stream: value }),
5759
5712
  webTransform({ value: { transform, writableObjectMode, readableObjectMode } }) {
5760
5713
  const objectMode = writableObjectMode || readableObjectMode;
5761
- const stream = _stream.Duplex.fromWeb(transform, { objectMode });
5762
- return { stream };
5714
+ const stream$1 = stream.Duplex.fromWeb(transform, { objectMode });
5715
+ return { stream: stream$1 };
5763
5716
  },
5764
5717
  duplex: ({ value: { transform } }) => ({ stream: transform }),
5765
5718
  native() {
@@ -5768,19 +5721,19 @@ var addProperties2 = {
5768
5721
  var addPropertiesAsync = {
5769
5722
  input: {
5770
5723
  ...addProperties2,
5771
- fileUrl: ({ value }) => ({ stream: _fs.createReadStream.call(void 0, value) }),
5772
- filePath: ({ value: { file } }) => ({ stream: _fs.createReadStream.call(void 0, file) }),
5773
- webStream: ({ value }) => ({ stream: _stream.Readable.fromWeb(value) }),
5774
- iterable: ({ value }) => ({ stream: _stream.Readable.from(value) }),
5775
- asyncIterable: ({ value }) => ({ stream: _stream.Readable.from(value) }),
5776
- string: ({ value }) => ({ stream: _stream.Readable.from(value) }),
5777
- uint8Array: ({ value }) => ({ stream: _stream.Readable.from(_buffer.Buffer.from(value)) })
5724
+ fileUrl: ({ value }) => ({ stream: fs.createReadStream(value) }),
5725
+ filePath: ({ value: { file } }) => ({ stream: fs.createReadStream(file) }),
5726
+ webStream: ({ value }) => ({ stream: stream.Readable.fromWeb(value) }),
5727
+ iterable: ({ value }) => ({ stream: stream.Readable.from(value) }),
5728
+ asyncIterable: ({ value }) => ({ stream: stream.Readable.from(value) }),
5729
+ string: ({ value }) => ({ stream: stream.Readable.from(value) }),
5730
+ uint8Array: ({ value }) => ({ stream: stream.Readable.from(buffer.Buffer.from(value)) })
5778
5731
  },
5779
5732
  output: {
5780
5733
  ...addProperties2,
5781
- fileUrl: ({ value }) => ({ stream: _fs.createWriteStream.call(void 0, value) }),
5782
- filePath: ({ value: { file } }) => ({ stream: _fs.createWriteStream.call(void 0, file) }),
5783
- webStream: ({ value }) => ({ stream: _stream.Writable.fromWeb(value) }),
5734
+ fileUrl: ({ value }) => ({ stream: fs.createWriteStream(value) }),
5735
+ filePath: ({ value: { file, append } }) => ({ stream: fs.createWriteStream(file, append ? { flags: "a" } : {}) }),
5736
+ webStream: ({ value }) => ({ stream: stream.Writable.fromWeb(value) }),
5784
5737
  iterable: forbiddenIfAsync,
5785
5738
  asyncIterable: forbiddenIfAsync,
5786
5739
  string: forbiddenIfAsync,
@@ -5788,14 +5741,11 @@ var addPropertiesAsync = {
5788
5741
  }
5789
5742
  };
5790
5743
 
5791
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/io/output-async.js
5744
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/io/output-async.js
5792
5745
  init_cjs_shims();
5793
5746
 
5794
5747
  // ../../node_modules/.pnpm/@sindresorhus+merge-streams@4.0.0/node_modules/@sindresorhus/merge-streams/index.js
5795
5748
  init_cjs_shims();
5796
-
5797
-
5798
-
5799
5749
  function mergeStreams(streams) {
5800
5750
  if (!Array.isArray(streams)) {
5801
5751
  throw new TypeError(`Expected an array, got \`${typeof streams}\`.`);
@@ -5817,12 +5767,12 @@ function mergeStreams(streams) {
5817
5767
  }
5818
5768
  var getHighWaterMark = (streams, objectMode) => {
5819
5769
  if (streams.length === 0) {
5820
- return _stream.getDefaultHighWaterMark.call(void 0, objectMode);
5770
+ return stream.getDefaultHighWaterMark(objectMode);
5821
5771
  }
5822
5772
  const highWaterMarks = streams.filter(({ readableObjectMode }) => readableObjectMode === objectMode).map(({ readableHighWaterMark }) => readableHighWaterMark);
5823
5773
  return Math.max(...highWaterMarks);
5824
5774
  };
5825
- var MergedStream = class extends _stream.PassThrough {
5775
+ var MergedStream = class extends stream.PassThrough {
5826
5776
  #streams = /* @__PURE__ */ new Set([]);
5827
5777
  #ended = /* @__PURE__ */ new Set([]);
5828
5778
  #aborted = /* @__PURE__ */ new Set([]);
@@ -5878,21 +5828,21 @@ var onMergedStreamFinished = async (passThroughStream, streams, unpipeEvent) =>
5878
5828
  };
5879
5829
  var onMergedStreamEnd = async (passThroughStream, { signal }) => {
5880
5830
  try {
5881
- await _promises3.finished.call(void 0, passThroughStream, { signal, cleanup: true });
5831
+ await promises.finished(passThroughStream, { signal, cleanup: true });
5882
5832
  } catch (error) {
5883
5833
  errorOrAbortStream(passThroughStream, error);
5884
5834
  throw error;
5885
5835
  }
5886
5836
  };
5887
5837
  var onInputStreamsUnpipe = async (passThroughStream, streams, unpipeEvent, { signal }) => {
5888
- for await (const [unpipedStream] of _events2.on.call(void 0, passThroughStream, "unpipe", { signal })) {
5838
+ for await (const [unpipedStream] of events.on(passThroughStream, "unpipe", { signal })) {
5889
5839
  if (streams.has(unpipedStream)) {
5890
5840
  unpipedStream.emit(unpipeEvent);
5891
5841
  }
5892
5842
  }
5893
5843
  };
5894
5844
  var validateStream = (stream) => {
5895
- if (typeof _optionalChain([stream, 'optionalAccess', _31 => _31.pipe]) !== "function") {
5845
+ if (typeof stream?.pipe !== "function") {
5896
5846
  throw new TypeError(`Expected a readable stream, got: \`${typeof stream}\`.`);
5897
5847
  }
5898
5848
  };
@@ -5945,7 +5895,7 @@ var afterMergedStreamFinished = async (onFinished, stream, { signal }) => {
5945
5895
  };
5946
5896
  var onInputStreamEnd = async ({ passThroughStream, stream, streams, ended, aborted: aborted2, controller: { signal } }) => {
5947
5897
  try {
5948
- await _promises3.finished.call(void 0, stream, {
5898
+ await promises.finished(stream, {
5949
5899
  signal,
5950
5900
  cleanup: true,
5951
5901
  readable: true,
@@ -5966,9 +5916,9 @@ var onInputStreamEnd = async ({ passThroughStream, stream, streams, ended, abort
5966
5916
  }
5967
5917
  };
5968
5918
  var onInputStreamUnpipe = async ({ stream, streams, ended, aborted: aborted2, unpipeEvent, controller: { signal } }) => {
5969
- await _events2.once.call(void 0, stream, unpipeEvent, { signal });
5919
+ await events.once(stream, unpipeEvent, { signal });
5970
5920
  if (!stream.readable) {
5971
- return _events2.once.call(void 0, signal, "abort", { signal });
5921
+ return events.once(signal, "abort", { signal });
5972
5922
  }
5973
5923
  streams.delete(stream);
5974
5924
  ended.delete(stream);
@@ -5986,7 +5936,7 @@ var errorOrAbortStream = (stream, error) => {
5986
5936
  errorStream(stream, error);
5987
5937
  }
5988
5938
  };
5989
- var isAbortError = (error) => _optionalChain([error, 'optionalAccess', _32 => _32.code]) === "ERR_STREAM_PREMATURE_CLOSE";
5939
+ var isAbortError = (error) => error?.code === "ERR_STREAM_PREMATURE_CLOSE";
5990
5940
  var abortStream = (stream) => {
5991
5941
  if (stream.readable || stream.writable) {
5992
5942
  stream.destroy();
@@ -6009,9 +5959,8 @@ var updateMaxListeners = (passThroughStream, increment2) => {
6009
5959
  var PASSTHROUGH_LISTENERS_COUNT = 2;
6010
5960
  var PASSTHROUGH_LISTENERS_PER_STREAM = 1;
6011
5961
 
6012
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/io/pipeline.js
5962
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/io/pipeline.js
6013
5963
  init_cjs_shims();
6014
-
6015
5964
  var pipeStreams = (source, destination) => {
6016
5965
  source.pipe(destination);
6017
5966
  onSourceFinish(source, destination);
@@ -6022,8 +5971,8 @@ var onSourceFinish = async (source, destination) => {
6022
5971
  return;
6023
5972
  }
6024
5973
  try {
6025
- await _promises3.finished.call(void 0, source, { cleanup: true, readable: true, writable: false });
6026
- } catch (e8) {
5974
+ await promises.finished(source, { cleanup: true, readable: true, writable: false });
5975
+ } catch {
6027
5976
  }
6028
5977
  endDestinationStream(destination);
6029
5978
  };
@@ -6037,8 +5986,8 @@ var onDestinationFinish = async (source, destination) => {
6037
5986
  return;
6038
5987
  }
6039
5988
  try {
6040
- await _promises3.finished.call(void 0, destination, { cleanup: true, readable: false, writable: true });
6041
- } catch (e9) {
5989
+ await promises.finished(destination, { cleanup: true, readable: false, writable: true });
5990
+ } catch {
6042
5991
  }
6043
5992
  abortSourceStream(source);
6044
5993
  };
@@ -6048,7 +5997,7 @@ var abortSourceStream = (source) => {
6048
5997
  }
6049
5998
  };
6050
5999
 
6051
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/io/output-async.js
6000
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/io/output-async.js
6052
6001
  var pipeOutputAsync = (subprocess, fileDescriptors, controller) => {
6053
6002
  const pipeGroups = /* @__PURE__ */ new Map();
6054
6003
  for (const [fdNumber, { stdioItems, direction }] of Object.entries(fileDescriptors)) {
@@ -6090,7 +6039,7 @@ var pipeStdioItem = ({ subprocess, stream, direction, fdNumber, pipeGroups, cont
6090
6039
  }
6091
6040
  setStandardStreamMaxListeners(stream, controller);
6092
6041
  const [inputStream, outputStream] = direction === "output" ? [stream, subprocess.stdio[fdNumber]] : [subprocess.stdio[fdNumber], stream];
6093
- const outputStreams = _nullishCoalesce(pipeGroups.get(inputStream), () => ( []));
6042
+ const outputStreams = pipeGroups.get(inputStream) ?? [];
6094
6043
  pipeGroups.set(inputStream, [...outputStreams, outputStream]);
6095
6044
  };
6096
6045
  var setStandardStreamMaxListeners = (stream, { signal }) => {
@@ -6100,10 +6049,9 @@ var setStandardStreamMaxListeners = (stream, { signal }) => {
6100
6049
  };
6101
6050
  var MAX_LISTENERS_INCREMENT = 2;
6102
6051
 
6103
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/terminate/cleanup.js
6052
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/terminate/cleanup.js
6104
6053
  init_cjs_shims();
6105
6054
 
6106
-
6107
6055
  // ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/index.js
6108
6056
  init_cjs_shims();
6109
6057
 
@@ -6137,18 +6085,18 @@ var processOk = (process11) => !!process11 && typeof process11 === "object" && t
6137
6085
  var kExitEmitter = Symbol.for("signal-exit emitter");
6138
6086
  var global2 = globalThis;
6139
6087
  var ObjectDefineProperty = Object.defineProperty.bind(Object);
6140
- var Emitter = (_class2 = class {
6141
- __init3() {this.emitted = {
6088
+ var Emitter = class {
6089
+ emitted = {
6142
6090
  afterExit: false,
6143
6091
  exit: false
6144
- }}
6145
- __init4() {this.listeners = {
6092
+ };
6093
+ listeners = {
6146
6094
  afterExit: [],
6147
6095
  exit: []
6148
- }}
6149
- __init5() {this.count = 0}
6150
- __init6() {this.id = Math.random()}
6151
- constructor() {;_class2.prototype.__init3.call(this);_class2.prototype.__init4.call(this);_class2.prototype.__init5.call(this);_class2.prototype.__init6.call(this);
6096
+ };
6097
+ count = 0;
6098
+ id = Math.random();
6099
+ constructor() {
6152
6100
  if (global2[kExitEmitter]) {
6153
6101
  return global2[kExitEmitter];
6154
6102
  }
@@ -6188,7 +6136,7 @@ var Emitter = (_class2 = class {
6188
6136
  }
6189
6137
  return ret;
6190
6138
  }
6191
- }, _class2);
6139
+ };
6192
6140
  var SignalExitBase = class {
6193
6141
  };
6194
6142
  var signalExitWrap = (handler) => {
@@ -6258,7 +6206,7 @@ var SignalExit = class extends SignalExitBase {
6258
6206
  if (this.#loaded === false) {
6259
6207
  this.load();
6260
6208
  }
6261
- const ev = _optionalChain([opts, 'optionalAccess', _33 => _33.alwaysLast]) ? "afterExit" : "exit";
6209
+ const ev = opts?.alwaysLast ? "afterExit" : "exit";
6262
6210
  this.#emitter.on(ev, cb);
6263
6211
  return () => {
6264
6212
  this.#emitter.removeListener(ev, cb);
@@ -6359,7 +6307,7 @@ var {
6359
6307
  unload
6360
6308
  } = signalExitWrap(processOk(process9) ? new SignalExit(process9) : new SignalExitFallback());
6361
6309
 
6362
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/terminate/cleanup.js
6310
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/terminate/cleanup.js
6363
6311
  var cleanupOnExit = (subprocess, { cleanup, detached }, { signal }) => {
6364
6312
  if (!cleanup || detached) {
6365
6313
  return;
@@ -6367,15 +6315,15 @@ var cleanupOnExit = (subprocess, { cleanup, detached }, { signal }) => {
6367
6315
  const removeExitHandler = onExit(() => {
6368
6316
  subprocess.kill();
6369
6317
  });
6370
- _events2.addAbortListener.call(void 0, signal, () => {
6318
+ events.addAbortListener(signal, () => {
6371
6319
  removeExitHandler();
6372
6320
  });
6373
6321
  };
6374
6322
 
6375
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/pipe/setup.js
6323
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/pipe/setup.js
6376
6324
  init_cjs_shims();
6377
6325
 
6378
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/pipe/pipe-arguments.js
6326
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/pipe/pipe-arguments.js
6379
6327
  init_cjs_shims();
6380
6328
  var normalizePipeArguments = ({ source, sourcePromise, boundOptions, createNested }, ...pipeArguments) => {
6381
6329
  const startTime = getStartTime();
@@ -6423,7 +6371,7 @@ var getDestination = (boundOptions, createNested, firstArgument, ...pipeArgument
6423
6371
  const destination = createNested(mapDestinationArguments, boundOptions)(firstArgument, ...pipeArguments);
6424
6372
  return { destination, pipeOptions: boundOptions };
6425
6373
  }
6426
- if (typeof firstArgument === "string" || firstArgument instanceof URL) {
6374
+ if (typeof firstArgument === "string" || firstArgument instanceof URL || isDenoExecPath(firstArgument)) {
6427
6375
  if (Object.keys(boundOptions).length > 0) {
6428
6376
  throw new TypeError('Please use .pipe("file", ..., options) or .pipe(execa("file", ..., options)) instead of .pipe(options)("file", ...).');
6429
6377
  }
@@ -6449,7 +6397,7 @@ var getSourceStream = (source, from) => {
6449
6397
  }
6450
6398
  };
6451
6399
 
6452
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/pipe/throw.js
6400
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/pipe/throw.js
6453
6401
  init_cjs_shims();
6454
6402
  var handlePipeArgumentsError = ({
6455
6403
  sourceStream,
@@ -6499,7 +6447,7 @@ var createNonCommandError = ({ error, fileDescriptors, sourceOptions, startTime
6499
6447
  });
6500
6448
  var PIPE_COMMAND_MESSAGE = "source.pipe(destination)";
6501
6449
 
6502
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/pipe/sequence.js
6450
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/pipe/sequence.js
6503
6451
  init_cjs_shims();
6504
6452
  var waitForBothSubprocesses = async (subprocessPromises) => {
6505
6453
  const [
@@ -6518,9 +6466,8 @@ var waitForBothSubprocesses = async (subprocessPromises) => {
6518
6466
  return destinationResult;
6519
6467
  };
6520
6468
 
6521
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/pipe/streaming.js
6469
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/pipe/streaming.js
6522
6470
  init_cjs_shims();
6523
-
6524
6471
  var pipeSubprocessStream = (sourceStream, destinationStream, maxListenersController) => {
6525
6472
  const mergedStream = MERGED_STREAMS.has(destinationStream) ? pipeMoreSubprocessStream(sourceStream, destinationStream) : pipeFirstSubprocessStream(sourceStream, destinationStream);
6526
6473
  incrementMaxListeners(sourceStream, SOURCE_LISTENERS_PER_PIPE, maxListenersController.signal);
@@ -6541,8 +6488,8 @@ var pipeMoreSubprocessStream = (sourceStream, destinationStream) => {
6541
6488
  };
6542
6489
  var cleanupMergedStreamsMap = async (destinationStream) => {
6543
6490
  try {
6544
- await _promises3.finished.call(void 0, destinationStream, { cleanup: true, readable: false, writable: true });
6545
- } catch (e10) {
6491
+ await promises.finished(destinationStream, { cleanup: true, readable: false, writable: true });
6492
+ } catch {
6546
6493
  }
6547
6494
  MERGED_STREAMS.delete(destinationStream);
6548
6495
  };
@@ -6550,12 +6497,11 @@ var MERGED_STREAMS = /* @__PURE__ */ new WeakMap();
6550
6497
  var SOURCE_LISTENERS_PER_PIPE = 2;
6551
6498
  var DESTINATION_LISTENERS_PER_PIPE = 1;
6552
6499
 
6553
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/pipe/abort.js
6500
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/pipe/abort.js
6554
6501
  init_cjs_shims();
6555
-
6556
6502
  var unpipeOnAbort = (unpipeSignal, unpipeContext) => unpipeSignal === void 0 ? [] : [unpipeOnSignalAbort(unpipeSignal, unpipeContext)];
6557
6503
  var unpipeOnSignalAbort = async (unpipeSignal, { sourceStream, mergedStream, fileDescriptors, sourceOptions, startTime }) => {
6558
- await _util.aborted.call(void 0, unpipeSignal, sourceStream);
6504
+ await util.aborted(unpipeSignal, sourceStream);
6559
6505
  await mergedStream.remove(sourceStream);
6560
6506
  const error = new Error("Pipe canceled by `unpipeSignal` option.");
6561
6507
  throw createNonCommandError({
@@ -6566,7 +6512,7 @@ var unpipeOnSignalAbort = async (unpipeSignal, { sourceStream, mergedStream, fil
6566
6512
  });
6567
6513
  };
6568
6514
 
6569
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/pipe/setup.js
6515
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/pipe/setup.js
6570
6516
  var pipeToSubprocess = (sourceInfo, ...pipeArguments) => {
6571
6517
  if (isPlainObject(pipeArguments[0])) {
6572
6518
  return pipeToSubprocess.bind(void 0, {
@@ -6625,20 +6571,17 @@ var handlePipePromise = async ({
6625
6571
  };
6626
6572
  var getSubprocessPromises = (sourcePromise, destination) => Promise.allSettled([sourcePromise, destination]);
6627
6573
 
6628
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/resolve/all-async.js
6574
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/resolve/all-async.js
6629
6575
  init_cjs_shims();
6630
6576
 
6631
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/resolve/stdio.js
6577
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/resolve/stdio.js
6632
6578
  init_cjs_shims();
6633
6579
 
6634
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/io/contents.js
6580
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/io/contents.js
6635
6581
  init_cjs_shims();
6636
6582
 
6637
-
6638
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/io/iterate.js
6583
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/io/iterate.js
6639
6584
  init_cjs_shims();
6640
-
6641
-
6642
6585
  var iterateOnSubprocessStream = ({ subprocessStdout, subprocess, binary, shouldEncode, encoding, preserveNewlines }) => {
6643
6586
  const controller = new AbortController();
6644
6587
  stopReadingOnExit(subprocess, controller);
@@ -6655,7 +6598,7 @@ var iterateOnSubprocessStream = ({ subprocessStdout, subprocess, binary, shouldE
6655
6598
  var stopReadingOnExit = async (subprocess, controller) => {
6656
6599
  try {
6657
6600
  await subprocess;
6658
- } catch (e11) {
6601
+ } catch {
6659
6602
  } finally {
6660
6603
  controller.abort();
6661
6604
  }
@@ -6677,14 +6620,14 @@ var iterateForResult = ({ stream, onStreamEnd, lines, encoding, stripFinalNewlin
6677
6620
  var stopReadingOnStreamEnd = async (onStreamEnd, controller, stream) => {
6678
6621
  try {
6679
6622
  await onStreamEnd;
6680
- } catch (e12) {
6623
+ } catch {
6681
6624
  stream.destroy();
6682
6625
  } finally {
6683
6626
  controller.abort();
6684
6627
  }
6685
6628
  };
6686
6629
  var iterateOnStream = ({ stream, controller, binary, shouldEncode, encoding, shouldSplit, preserveNewlines }) => {
6687
- const onStdoutChunk = _events2.on.call(void 0, stream, "data", {
6630
+ const onStdoutChunk = events.on(stream, "data", {
6688
6631
  signal: controller.signal,
6689
6632
  highWaterMark: HIGH_WATER_MARK,
6690
6633
  // Backward compatibility with older name for this option
@@ -6702,7 +6645,7 @@ var iterateOnStream = ({ stream, controller, binary, shouldEncode, encoding, sho
6702
6645
  preserveNewlines
6703
6646
  });
6704
6647
  };
6705
- var DEFAULT_OBJECT_HIGH_WATER_MARK = _stream.getDefaultHighWaterMark.call(void 0, true);
6648
+ var DEFAULT_OBJECT_HIGH_WATER_MARK = stream.getDefaultHighWaterMark(true);
6706
6649
  var HIGH_WATER_MARK = DEFAULT_OBJECT_HIGH_WATER_MARK;
6707
6650
  var iterateOnData = async function* ({ onStdoutChunk, controller, binary, shouldEncode, encoding, shouldSplit, preserveNewlines }) {
6708
6651
  const generators = getGenerators({
@@ -6729,7 +6672,7 @@ var getGenerators = ({ binary, shouldEncode, encoding, shouldSplit, preserveNewl
6729
6672
  getSplitLinesGenerator(binary, preserveNewlines, !shouldSplit, {})
6730
6673
  ].filter(Boolean);
6731
6674
 
6732
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/io/contents.js
6675
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/io/contents.js
6733
6676
  var getStreamOutput = async ({ stream, onStreamEnd, fdNumber, encoding, buffer, maxBuffer, lines, allMixed, stripFinalNewline: stripFinalNewline2, verboseInfo, streamInfo }) => {
6734
6677
  const logPromise = logOutputAsync({
6735
6678
  stream,
@@ -6768,7 +6711,7 @@ var getStreamOutput = async ({ stream, onStreamEnd, fdNumber, encoding, buffer,
6768
6711
  };
6769
6712
  var logOutputAsync = async ({ stream, onStreamEnd, fdNumber, encoding, allMixed, verboseInfo, streamInfo: { fileDescriptors } }) => {
6770
6713
  if (!shouldLogOutput({
6771
- stdioItems: _optionalChain([fileDescriptors, 'access', _34 => _34[fdNumber], 'optionalAccess', _35 => _35.stdioItems]),
6714
+ stdioItems: fileDescriptors[fdNumber]?.stdioItems,
6772
6715
  encoding,
6773
6716
  verboseInfo,
6774
6717
  fdNumber
@@ -6786,7 +6729,7 @@ var logOutputAsync = async ({ stream, onStreamEnd, fdNumber, encoding, allMixed,
6786
6729
  await logLines(linesIterable, stream, fdNumber, verboseInfo);
6787
6730
  };
6788
6731
  var resumeStream = async (stream) => {
6789
- await _promises.setImmediate.call(void 0, );
6732
+ await promises$1.setImmediate();
6790
6733
  if (stream.readableFlowing === null) {
6791
6734
  stream.resume();
6792
6735
  }
@@ -6820,16 +6763,15 @@ var getBufferedData = async (streamPromise) => {
6820
6763
  };
6821
6764
  var handleBufferedData = ({ bufferedData }) => isArrayBuffer(bufferedData) ? new Uint8Array(bufferedData) : bufferedData;
6822
6765
 
6823
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/resolve/wait-stream.js
6766
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/resolve/wait-stream.js
6824
6767
  init_cjs_shims();
6825
-
6826
6768
  var waitForStream = async (stream, fdNumber, streamInfo, { isSameDirection, stopOnExit = false } = {}) => {
6827
6769
  const state = handleStdinDestroy(stream, streamInfo);
6828
6770
  const abortController = new AbortController();
6829
6771
  try {
6830
6772
  await Promise.race([
6831
6773
  ...stopOnExit ? [streamInfo.exitPromise] : [],
6832
- _promises3.finished.call(void 0, stream, { cleanup: true, signal: abortController.signal })
6774
+ promises.finished(stream, { cleanup: true, signal: abortController.signal })
6833
6775
  ]);
6834
6776
  } catch (error) {
6835
6777
  if (!state.stdinCleanedUp) {
@@ -6871,10 +6813,10 @@ var shouldIgnoreStreamError = (error, fdNumber, streamInfo, isSameDirection = tr
6871
6813
  return isInputFileDescriptor(streamInfo, fdNumber) === isSameDirection ? isStreamEpipe(error) : isStreamAbort(error);
6872
6814
  };
6873
6815
  var isInputFileDescriptor = ({ fileDescriptors }, fdNumber) => fdNumber !== "all" && fileDescriptors[fdNumber].direction === "input";
6874
- var isStreamAbort = (error) => _optionalChain([error, 'optionalAccess', _36 => _36.code]) === "ERR_STREAM_PREMATURE_CLOSE";
6875
- var isStreamEpipe = (error) => _optionalChain([error, 'optionalAccess', _37 => _37.code]) === "EPIPE";
6816
+ var isStreamAbort = (error) => error?.code === "ERR_STREAM_PREMATURE_CLOSE";
6817
+ var isStreamEpipe = (error) => error?.code === "EPIPE";
6876
6818
 
6877
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/resolve/stdio.js
6819
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/resolve/stdio.js
6878
6820
  var waitForStdioStreams = ({ subprocess, encoding, buffer, maxBuffer, lines, stripFinalNewline: stripFinalNewline2, verboseInfo, streamInfo }) => subprocess.stdio.map((stream, fdNumber) => waitForSubprocessStream({
6879
6821
  stream,
6880
6822
  fdNumber,
@@ -6915,7 +6857,7 @@ var waitForSubprocessStream = async ({ stream, fdNumber, encoding, buffer, maxBu
6915
6857
  return output;
6916
6858
  };
6917
6859
 
6918
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/resolve/all-async.js
6860
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/resolve/all-async.js
6919
6861
  var makeAllStream = ({ stdout: stdout2, stderr }, { all }) => all && (stdout2 || stderr) ? mergeStreams([stdout2, stderr].filter(Boolean)) : void 0;
6920
6862
  var waitForAllStream = ({ subprocess, encoding, buffer, maxBuffer, lines, stripFinalNewline: stripFinalNewline2, verboseInfo, streamInfo }) => waitForSubprocessStream({
6921
6863
  ...getAllStream(subprocess, buffer),
@@ -6943,14 +6885,13 @@ var getAllStream = ({ stdout: stdout2, stderr, all }, [, bufferStdout, bufferStd
6943
6885
  };
6944
6886
  var getAllMixed = ({ all, stdout: stdout2, stderr }) => all && stdout2 && stderr && stdout2.readableObjectMode !== stderr.readableObjectMode;
6945
6887
 
6946
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/resolve/wait-subprocess.js
6888
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/resolve/wait-subprocess.js
6947
6889
  init_cjs_shims();
6948
6890
 
6949
-
6950
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/ipc/buffer-messages.js
6891
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/ipc/buffer-messages.js
6951
6892
  init_cjs_shims();
6952
6893
 
6953
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/verbose/ipc.js
6894
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/verbose/ipc.js
6954
6895
  init_cjs_shims();
6955
6896
  var shouldLogIpc = (verboseInfo) => isFullVerbose(verboseInfo, "ipc");
6956
6897
  var logIpcOutput = (message, verboseInfo) => {
@@ -6963,7 +6904,7 @@ var logIpcOutput = (message, verboseInfo) => {
6963
6904
  });
6964
6905
  };
6965
6906
 
6966
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/ipc/buffer-messages.js
6907
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/ipc/buffer-messages.js
6967
6908
  var waitForIpcOutput = async ({
6968
6909
  subprocess,
6969
6910
  buffer: bufferArray,
@@ -7001,7 +6942,7 @@ var getBufferedIpcOutput = async (ipcOutputPromise, ipcOutput) => {
7001
6942
  return ipcOutput;
7002
6943
  };
7003
6944
 
7004
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/resolve/wait-subprocess.js
6945
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/resolve/wait-subprocess.js
7005
6946
  var waitForSubprocessResult = async ({
7006
6947
  subprocess,
7007
6948
  options: {
@@ -7113,14 +7054,14 @@ var waitForCustomStreamsEnd = (fileDescriptors, streamInfo) => fileDescriptors.f
7113
7054
  stopOnExit: type === "native"
7114
7055
  })));
7115
7056
  var throwOnSubprocessError = async (subprocess, { signal }) => {
7116
- const [error] = await _events2.once.call(void 0, subprocess, "error", { signal });
7057
+ const [error] = await events.once(subprocess, "error", { signal });
7117
7058
  throw error;
7118
7059
  };
7119
7060
 
7120
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/convert/add.js
7061
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/convert/add.js
7121
7062
  init_cjs_shims();
7122
7063
 
7123
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/convert/concurrent.js
7064
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/convert/concurrent.js
7124
7065
  init_cjs_shims();
7125
7066
  var initializeConcurrentStreams = () => ({
7126
7067
  readableDestroy: /* @__PURE__ */ new WeakMap(),
@@ -7135,11 +7076,11 @@ var addConcurrentStream = (concurrentStreams, stream, waitName) => {
7135
7076
  const promises = weakMap.get(stream);
7136
7077
  const promise = createDeferred();
7137
7078
  promises.push(promise);
7138
- const resolve2 = promise.resolve.bind(promise);
7139
- return { resolve: resolve2, promises };
7079
+ const resolve = promise.resolve.bind(promise);
7080
+ return { resolve, promises };
7140
7081
  };
7141
- var waitForConcurrentStreams = async ({ resolve: resolve2, promises }, subprocess) => {
7142
- resolve2();
7082
+ var waitForConcurrentStreams = async ({ resolve, promises }, subprocess) => {
7083
+ resolve();
7143
7084
  const [isSubprocessExit] = await Promise.race([
7144
7085
  Promise.allSettled([true, subprocess]),
7145
7086
  Promise.all([false, ...promises])
@@ -7147,21 +7088,18 @@ var waitForConcurrentStreams = async ({ resolve: resolve2, promises }, subproces
7147
7088
  return !isSubprocessExit;
7148
7089
  };
7149
7090
 
7150
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/convert/readable.js
7091
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/convert/readable.js
7151
7092
  init_cjs_shims();
7152
7093
 
7153
-
7154
-
7155
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/convert/shared.js
7094
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/convert/shared.js
7156
7095
  init_cjs_shims();
7157
-
7158
7096
  var safeWaitForSubprocessStdin = async (subprocessStdin) => {
7159
7097
  if (subprocessStdin === void 0) {
7160
7098
  return;
7161
7099
  }
7162
7100
  try {
7163
7101
  await waitForSubprocessStdin(subprocessStdin);
7164
- } catch (e13) {
7102
+ } catch {
7165
7103
  }
7166
7104
  };
7167
7105
  var safeWaitForSubprocessStdout = async (subprocessStdout) => {
@@ -7170,14 +7108,14 @@ var safeWaitForSubprocessStdout = async (subprocessStdout) => {
7170
7108
  }
7171
7109
  try {
7172
7110
  await waitForSubprocessStdout(subprocessStdout);
7173
- } catch (e14) {
7111
+ } catch {
7174
7112
  }
7175
7113
  };
7176
7114
  var waitForSubprocessStdin = async (subprocessStdin) => {
7177
- await _promises3.finished.call(void 0, subprocessStdin, { cleanup: true, readable: false, writable: true });
7115
+ await promises.finished(subprocessStdin, { cleanup: true, readable: false, writable: true });
7178
7116
  };
7179
7117
  var waitForSubprocessStdout = async (subprocessStdout) => {
7180
- await _promises3.finished.call(void 0, subprocessStdout, { cleanup: true, readable: true, writable: false });
7118
+ await promises.finished(subprocessStdout, { cleanup: true, readable: true, writable: false });
7181
7119
  };
7182
7120
  var waitForSubprocess = async (subprocess, error) => {
7183
7121
  await subprocess;
@@ -7193,21 +7131,21 @@ var destroyOtherStream = (stream, isOpen, error) => {
7193
7131
  }
7194
7132
  };
7195
7133
 
7196
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/convert/readable.js
7134
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/convert/readable.js
7197
7135
  var createReadable = ({ subprocess, concurrentStreams, encoding }, { from, binary: binaryOption = true, preserveNewlines = true } = {}) => {
7198
7136
  const binary = binaryOption || BINARY_ENCODINGS.has(encoding);
7199
7137
  const { subprocessStdout, waitReadableDestroy } = getSubprocessStdout(subprocess, from, concurrentStreams);
7200
7138
  const { readableEncoding, readableObjectMode, readableHighWaterMark } = getReadableOptions(subprocessStdout, binary);
7201
- const { read: read2, onStdoutDataDone } = getReadableMethods({
7139
+ const { read, onStdoutDataDone } = getReadableMethods({
7202
7140
  subprocessStdout,
7203
7141
  subprocess,
7204
7142
  binary,
7205
7143
  encoding,
7206
7144
  preserveNewlines
7207
7145
  });
7208
- const readable2 = new (0, _stream.Readable)({
7209
- read: read2,
7210
- destroy: _util.callbackify.call(void 0, onReadableDestroy.bind(void 0, { subprocessStdout, subprocess, waitReadableDestroy })),
7146
+ const readable2 = new stream.Readable({
7147
+ read,
7148
+ destroy: util.callbackify(onReadableDestroy.bind(void 0, { subprocessStdout, subprocess, waitReadableDestroy })),
7211
7149
  highWaterMark: readableHighWaterMark,
7212
7150
  objectMode: readableObjectMode,
7213
7151
  encoding: readableEncoding
@@ -7251,7 +7189,7 @@ var onRead = async (readable2, onStdoutData, onStdoutDataDone) => {
7251
7189
  } else {
7252
7190
  readable2.push(value);
7253
7191
  }
7254
- } catch (e15) {
7192
+ } catch {
7255
7193
  }
7256
7194
  };
7257
7195
  var onStdoutFinished = async ({ subprocessStdout, onStdoutDataDone, readable: readable2, subprocess, subprocessStdin }) => {
@@ -7278,15 +7216,13 @@ var destroyOtherReadable = (stream, error) => {
7278
7216
  destroyOtherStream(stream, stream.readable, error);
7279
7217
  };
7280
7218
 
7281
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/convert/writable.js
7219
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/convert/writable.js
7282
7220
  init_cjs_shims();
7283
-
7284
-
7285
7221
  var createWritable = ({ subprocess, concurrentStreams }, { to } = {}) => {
7286
7222
  const { subprocessStdin, waitWritableFinal, waitWritableDestroy } = getSubprocessStdin(subprocess, to, concurrentStreams);
7287
- const writable2 = new (0, _stream.Writable)({
7223
+ const writable2 = new stream.Writable({
7288
7224
  ...getWritableMethods(subprocessStdin, subprocess, waitWritableFinal),
7289
- destroy: _util.callbackify.call(void 0, onWritableDestroy.bind(void 0, {
7225
+ destroy: util.callbackify(onWritableDestroy.bind(void 0, {
7290
7226
  subprocessStdin,
7291
7227
  subprocess,
7292
7228
  waitWritableFinal,
@@ -7306,7 +7242,7 @@ var getSubprocessStdin = (subprocess, to, concurrentStreams) => {
7306
7242
  };
7307
7243
  var getWritableMethods = (subprocessStdin, subprocess, waitWritableFinal) => ({
7308
7244
  write: onWrite.bind(void 0, subprocessStdin),
7309
- final: _util.callbackify.call(void 0, onWritableFinal.bind(void 0, subprocessStdin, subprocess, waitWritableFinal))
7245
+ final: util.callbackify(onWritableFinal.bind(void 0, subprocessStdin, subprocess, waitWritableFinal))
7310
7246
  });
7311
7247
  var onWrite = (subprocessStdin, chunk, encoding, done) => {
7312
7248
  if (subprocessStdin.write(chunk, encoding)) {
@@ -7345,26 +7281,24 @@ var destroyOtherWritable = (stream, error) => {
7345
7281
  destroyOtherStream(stream, stream.writable, error);
7346
7282
  };
7347
7283
 
7348
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/convert/duplex.js
7284
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/convert/duplex.js
7349
7285
  init_cjs_shims();
7350
-
7351
-
7352
7286
  var createDuplex = ({ subprocess, concurrentStreams, encoding }, { from, to, binary: binaryOption = true, preserveNewlines = true } = {}) => {
7353
7287
  const binary = binaryOption || BINARY_ENCODINGS.has(encoding);
7354
7288
  const { subprocessStdout, waitReadableDestroy } = getSubprocessStdout(subprocess, from, concurrentStreams);
7355
7289
  const { subprocessStdin, waitWritableFinal, waitWritableDestroy } = getSubprocessStdin(subprocess, to, concurrentStreams);
7356
7290
  const { readableEncoding, readableObjectMode, readableHighWaterMark } = getReadableOptions(subprocessStdout, binary);
7357
- const { read: read2, onStdoutDataDone } = getReadableMethods({
7291
+ const { read, onStdoutDataDone } = getReadableMethods({
7358
7292
  subprocessStdout,
7359
7293
  subprocess,
7360
7294
  binary,
7361
7295
  encoding,
7362
7296
  preserveNewlines
7363
7297
  });
7364
- const duplex2 = new (0, _stream.Duplex)({
7365
- read: read2,
7298
+ const duplex2 = new stream.Duplex({
7299
+ read,
7366
7300
  ...getWritableMethods(subprocessStdin, subprocess, waitWritableFinal),
7367
- destroy: _util.callbackify.call(void 0, onDuplexDestroy.bind(void 0, {
7301
+ destroy: util.callbackify(onDuplexDestroy.bind(void 0, {
7368
7302
  subprocessStdout,
7369
7303
  subprocessStdin,
7370
7304
  subprocess,
@@ -7400,7 +7334,7 @@ var onDuplexDestroy = async ({ subprocessStdout, subprocessStdin, subprocess, wa
7400
7334
  ]);
7401
7335
  };
7402
7336
 
7403
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/convert/iterable.js
7337
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/convert/iterable.js
7404
7338
  init_cjs_shims();
7405
7339
  var createIterable = (subprocess, encoding, {
7406
7340
  from,
@@ -7430,7 +7364,7 @@ var iterateOnStdoutData = async function* (onStdoutData, subprocessStdout, subpr
7430
7364
  }
7431
7365
  };
7432
7366
 
7433
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/convert/add.js
7367
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/convert/add.js
7434
7368
  var addConvertedStreams = (subprocess, { encoding }) => {
7435
7369
  const concurrentStreams = initializeConcurrentStreams();
7436
7370
  subprocess.readable = createReadable.bind(void 0, { subprocess, concurrentStreams, encoding });
@@ -7440,7 +7374,7 @@ var addConvertedStreams = (subprocess, { encoding }) => {
7440
7374
  subprocess[Symbol.asyncIterator] = createIterable.bind(void 0, subprocess, encoding, {});
7441
7375
  };
7442
7376
 
7443
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/methods/promise.js
7377
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/methods/promise.js
7444
7378
  init_cjs_shims();
7445
7379
  var mergePromise = (subprocess, promise) => {
7446
7380
  for (const [property, descriptor] of descriptors) {
@@ -7455,7 +7389,7 @@ var descriptors = ["then", "catch", "finally"].map((property) => [
7455
7389
  Reflect.getOwnPropertyDescriptor(nativePromisePrototype, property)
7456
7390
  ]);
7457
7391
 
7458
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/methods/main-async.js
7392
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/methods/main-async.js
7459
7393
  var execaCoreAsync = (rawFile, rawArguments, rawOptions, createNested) => {
7460
7394
  const { file, commandArguments, command, escapedCommand, startTime, verboseInfo, options, fileDescriptors } = handleAsyncArguments(rawFile, rawArguments, rawOptions);
7461
7395
  const { subprocess, promise } = spawnSubprocessAsync({
@@ -7503,7 +7437,7 @@ var handleAsyncOptions = ({ timeout, signal, ...options }) => {
7503
7437
  var spawnSubprocessAsync = ({ file, commandArguments, options, startTime, verboseInfo, command, escapedCommand, fileDescriptors }) => {
7504
7438
  let subprocess;
7505
7439
  try {
7506
- subprocess = _child_process.spawn.call(void 0, file, commandArguments, options);
7440
+ subprocess = child_process.spawn(file, commandArguments, options);
7507
7441
  } catch (error) {
7508
7442
  return handleEarlyError({
7509
7443
  error,
@@ -7516,7 +7450,7 @@ var spawnSubprocessAsync = ({ file, commandArguments, options, startTime, verbos
7516
7450
  });
7517
7451
  }
7518
7452
  const controller = new AbortController();
7519
- _events2.setMaxListeners.call(void 0, Number.POSITIVE_INFINITY, controller.signal);
7453
+ events.setMaxListeners(Number.POSITIVE_INFINITY, controller.signal);
7520
7454
  const originalStreams = [...subprocess.stdio];
7521
7455
  pipeOutputAsync(subprocess, fileDescriptors, controller);
7522
7456
  cleanupOnExit(subprocess, options, controller);
@@ -7610,7 +7544,7 @@ var getAsyncResult = ({ errorInfo, exitCode, signal, stdio, all, ipcOutput, cont
7610
7544
  startTime
7611
7545
  });
7612
7546
 
7613
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/methods/bind.js
7547
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/methods/bind.js
7614
7548
  init_cjs_shims();
7615
7549
  var mergeOptions = (boundOptions, options) => {
7616
7550
  const newOptions = Object.fromEntries(
@@ -7629,7 +7563,7 @@ var mergeOption = (optionName, boundOptionValue, optionValue) => {
7629
7563
  };
7630
7564
  var DEEP_OPTIONS = /* @__PURE__ */ new Set(["env", ...FD_SPECIFIC_OPTIONS]);
7631
7565
 
7632
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/methods/create.js
7566
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/methods/create.js
7633
7567
  var createExeca = (mapArguments, boundOptions, deepOptions, setBoundExeca) => {
7634
7568
  const createNested = (mapArguments2, boundOptions2, setBoundExeca2) => createExeca(mapArguments2, boundOptions2, deepOptions, setBoundExeca2);
7635
7569
  const boundExeca = (...execaArguments) => callBoundExeca({
@@ -7675,7 +7609,7 @@ var parseArguments = ({ mapArguments, firstArgument, nextArguments, deepOptions,
7675
7609
  };
7676
7610
  };
7677
7611
 
7678
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/methods/command.js
7612
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/methods/command.js
7679
7613
  init_cjs_shims();
7680
7614
  var mapCommandAsync = ({ file, commandArguments }) => parseCommand(file, commandArguments);
7681
7615
  var mapCommandSync = ({ file, commandArguments }) => ({ ...parseCommand(file, commandArguments), isSync: true });
@@ -7707,7 +7641,7 @@ var parseCommandString = (command) => {
7707
7641
  };
7708
7642
  var SPACES_REGEXP = / +/g;
7709
7643
 
7710
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/methods/script.js
7644
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/lib/methods/script.js
7711
7645
  init_cjs_shims();
7712
7646
  var setScriptSync = (boundExeca, createNested, boundOptions) => {
7713
7647
  boundExeca.sync = createNested(mapScriptSync, boundOptions);
@@ -7719,56 +7653,43 @@ var getScriptOptions = (options) => ({ options: { ...getScriptStdinOption(option
7719
7653
  var getScriptStdinOption = ({ input, inputFile, stdio }) => input === void 0 && inputFile === void 0 && stdio === void 0 ? { stdin: "inherit" } : {};
7720
7654
  var deepScriptOptions = { preferLocal: true };
7721
7655
 
7722
- // ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/index.js
7656
+ // ../../node_modules/.pnpm/execa@9.5.1/node_modules/execa/index.js
7723
7657
  var execa = createExeca(() => ({}));
7724
- var execaSync = createExeca(() => ({ isSync: true }));
7725
- var execaCommand = createExeca(mapCommandAsync);
7726
- var execaCommandSync = createExeca(mapCommandSync);
7727
- var execaNode = createExeca(mapNode);
7728
- var $ = createExeca(mapScriptAsync, {}, deepScriptOptions, setScriptSync);
7729
- var {
7730
- sendMessage: sendMessage2,
7731
- getOneMessage: getOneMessage2,
7732
- getEachMessage: getEachMessage2,
7733
- getCancelSignal: getCancelSignal2
7734
- } = getIpcExport();
7658
+ createExeca(() => ({ isSync: true }));
7659
+ createExeca(mapCommandAsync);
7660
+ createExeca(mapCommandSync);
7661
+ createExeca(mapNode);
7662
+ createExeca(mapScriptAsync, {}, deepScriptOptions, setScriptSync);
7663
+ getIpcExport();
7735
7664
 
7736
7665
  // src/generate.ts
7737
7666
  init_cjs_shims();
7738
- var _logger = require('@kubb/core/logger');
7739
- var _core = require('@kubb/core');
7740
7667
 
7741
7668
  // src/utils/executeHooks.ts
7742
7669
  init_cjs_shims();
7743
- var _stringargv = require('string-argv');
7744
7670
 
7745
7671
  // src/utils/Writables.ts
7746
7672
  init_cjs_shims();
7747
-
7748
-
7749
- var ConsolaWritable = class extends _stream.Writable {
7750
-
7751
-
7673
+ var ConsolaWritable = class extends stream.Writable {
7674
+ consola;
7675
+ command;
7752
7676
  constructor(consola, command, opts) {
7753
7677
  super(opts);
7754
7678
  this.command = command;
7755
7679
  this.consola = consola;
7756
7680
  }
7757
7681
  _write(chunk, _encoding, callback) {
7758
- process10.stdout.write(`${p2.dim(_optionalChain([chunk, 'optionalAccess', _38 => _38.toString, 'call', _39 => _39()]))}`);
7682
+ process3__namespace.stdout.write(`${p2.dim(chunk?.toString())}`);
7759
7683
  callback();
7760
7684
  }
7761
7685
  };
7762
7686
 
7763
- // src/utils/executeHooks.ts
7764
-
7765
-
7766
7687
  // ../../node_modules/.pnpm/p-queue@8.0.1/node_modules/p-queue/dist/index.js
7767
7688
  init_cjs_shims();
7768
7689
 
7769
7690
  // ../../node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.mjs
7770
7691
  init_cjs_shims();
7771
- var import_index = __toESM(require_eventemitter3(), 1);
7692
+ var import_index = __toESM(require_eventemitter3());
7772
7693
 
7773
7694
  // ../../node_modules/.pnpm/p-timeout@6.1.2/node_modules/p-timeout/index.js
7774
7695
  init_cjs_shims();
@@ -7798,7 +7719,7 @@ function pTimeout(promise, options) {
7798
7719
  customTimers = { setTimeout, clearTimeout }
7799
7720
  } = options;
7800
7721
  let timer;
7801
- const wrappedPromise = new Promise((resolve2, reject) => {
7722
+ const wrappedPromise = new Promise((resolve, reject) => {
7802
7723
  if (typeof milliseconds !== "number" || Math.sign(milliseconds) !== 1) {
7803
7724
  throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${milliseconds}\``);
7804
7725
  }
@@ -7812,14 +7733,14 @@ function pTimeout(promise, options) {
7812
7733
  });
7813
7734
  }
7814
7735
  if (milliseconds === Number.POSITIVE_INFINITY) {
7815
- promise.then(resolve2, reject);
7736
+ promise.then(resolve, reject);
7816
7737
  return;
7817
7738
  }
7818
7739
  const timeoutError = new TimeoutError();
7819
7740
  timer = customTimers.setTimeout.call(void 0, () => {
7820
7741
  if (fallback) {
7821
7742
  try {
7822
- resolve2(fallback());
7743
+ resolve(fallback());
7823
7744
  } catch (error) {
7824
7745
  reject(error);
7825
7746
  }
@@ -7829,17 +7750,17 @@ function pTimeout(promise, options) {
7829
7750
  promise.cancel();
7830
7751
  }
7831
7752
  if (message === false) {
7832
- resolve2();
7753
+ resolve();
7833
7754
  } else if (message instanceof Error) {
7834
7755
  reject(message);
7835
7756
  } else {
7836
- timeoutError.message = _nullishCoalesce(message, () => ( `Promise timed out after ${milliseconds} milliseconds`));
7757
+ timeoutError.message = message ?? `Promise timed out after ${milliseconds} milliseconds`;
7837
7758
  reject(timeoutError);
7838
7759
  }
7839
7760
  }, milliseconds);
7840
7761
  (async () => {
7841
7762
  try {
7842
- resolve2(await promise);
7763
+ resolve(await promise);
7843
7764
  } catch (error) {
7844
7765
  reject(error);
7845
7766
  }
@@ -7897,7 +7818,7 @@ var PriorityQueue = class {
7897
7818
  }
7898
7819
  dequeue() {
7899
7820
  const item = this.#queue.shift();
7900
- return _optionalChain([item, 'optionalAccess', _40 => _40.run]);
7821
+ return item?.run;
7901
7822
  }
7902
7823
  filter(options) {
7903
7824
  return this.#queue.filter((element) => element.priority === options.priority).map((element) => element.run);
@@ -7929,7 +7850,7 @@ var PQueue = class extends import_index.default {
7929
7850
 
7930
7851
  Applies to each future operation.
7931
7852
  */
7932
-
7853
+ timeout;
7933
7854
  // TODO: The `throwOnTimeout` option should affect the return types of `add()` and `addAll()`
7934
7855
  constructor(options) {
7935
7856
  super();
@@ -7943,10 +7864,10 @@ var PQueue = class extends import_index.default {
7943
7864
  ...options
7944
7865
  };
7945
7866
  if (!(typeof options.intervalCap === "number" && options.intervalCap >= 1)) {
7946
- throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${_nullishCoalesce(_optionalChain([options, 'access', _41 => _41.intervalCap, 'optionalAccess', _42 => _42.toString, 'call', _43 => _43()]), () => ( ""))}\` (${typeof options.intervalCap})`);
7867
+ throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${options.intervalCap?.toString() ?? ""}\` (${typeof options.intervalCap})`);
7947
7868
  }
7948
7869
  if (options.interval === void 0 || !(Number.isFinite(options.interval) && options.interval >= 0)) {
7949
- throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${_nullishCoalesce(_optionalChain([options, 'access', _44 => _44.interval, 'optionalAccess', _45 => _45.toString, 'call', _46 => _46()]), () => ( ""))}\` (${typeof options.interval})`);
7870
+ throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${options.interval?.toString() ?? ""}\` (${typeof options.interval})`);
7950
7871
  }
7951
7872
  this.#carryoverConcurrencyCount = options.carryoverConcurrencyCount;
7952
7873
  this.#isIntervalIgnored = options.intervalCap === Number.POSITIVE_INFINITY || options.interval === 0;
@@ -8068,12 +7989,12 @@ var PQueue = class extends import_index.default {
8068
7989
  throwOnTimeout: this.#throwOnTimeout,
8069
7990
  ...options
8070
7991
  };
8071
- return new Promise((resolve2, reject) => {
7992
+ return new Promise((resolve, reject) => {
8072
7993
  this.#queue.enqueue(async () => {
8073
7994
  this.#pending++;
8074
7995
  this.#intervalCount++;
8075
7996
  try {
8076
- _optionalChain([options, 'access', _47 => _47.signal, 'optionalAccess', _48 => _48.throwIfAborted, 'call', _49 => _49()]);
7997
+ options.signal?.throwIfAborted();
8077
7998
  let operation = function_({ signal: options.signal });
8078
7999
  if (options.timeout) {
8079
8000
  operation = pTimeout(Promise.resolve(operation), { milliseconds: options.timeout });
@@ -8082,11 +8003,11 @@ var PQueue = class extends import_index.default {
8082
8003
  operation = Promise.race([operation, this.#throwOnAbort(options.signal)]);
8083
8004
  }
8084
8005
  const result = await operation;
8085
- resolve2(result);
8006
+ resolve(result);
8086
8007
  this.emit("completed", result);
8087
8008
  } catch (error) {
8088
8009
  if (error instanceof TimeoutError && !options.throwOnTimeout) {
8089
- resolve2();
8010
+ resolve();
8090
8011
  return;
8091
8012
  }
8092
8013
  reject(error);
@@ -8161,13 +8082,13 @@ var PQueue = class extends import_index.default {
8161
8082
  await this.#onEvent("idle");
8162
8083
  }
8163
8084
  async #onEvent(event, filter) {
8164
- return new Promise((resolve2) => {
8085
+ return new Promise((resolve) => {
8165
8086
  const listener = () => {
8166
8087
  if (filter && !filter()) {
8167
8088
  return;
8168
8089
  }
8169
8090
  this.off(event, listener);
8170
- resolve2();
8091
+ resolve();
8171
8092
  };
8172
8093
  this.on(event, listener);
8173
8094
  });
@@ -8201,34 +8122,34 @@ var PQueue = class extends import_index.default {
8201
8122
  };
8202
8123
 
8203
8124
  // src/utils/executeHooks.ts
8204
- async function executeHooks({ hooks, logger }) {
8125
+ async function executeHooks({ hooks, logger: logger$1 }) {
8205
8126
  const commands = Array.isArray(hooks.done) ? hooks.done : [hooks.done].filter(Boolean);
8206
8127
  const queue = new PQueue({ concurrency: 1 });
8207
8128
  const promises = commands.map(async (command) => {
8208
- const consolaWritable = new ConsolaWritable(logger.consola, command);
8209
- const [cmd, ..._args] = [..._stringargv.parseArgsStringToArgv.call(void 0, command)];
8129
+ const consolaWritable = new ConsolaWritable(logger$1.consola, command);
8130
+ const [cmd, ..._args] = [...stringArgv.parseArgsStringToArgv(command)];
8210
8131
  if (!cmd) {
8211
8132
  return null;
8212
8133
  }
8213
8134
  await queue.add(async () => {
8214
- logger.emit("start", `Executing hook ${logger.logLevel !== _logger.LogMapper.silent ? p2.dim(command) : ""}`);
8215
- const subProcess = await execa(cmd, _args, {
8135
+ logger$1?.emit("start", `Executing hook ${logger$1.logLevel !== logger.LogMapper.silent ? p2.dim(command) : ""}`);
8136
+ await execa(cmd, _args, {
8216
8137
  detached: true,
8217
- stdout: logger.logLevel === _logger.LogMapper.silent ? void 0 : ["pipe", consolaWritable],
8138
+ stdout: logger$1?.logLevel === logger.LogMapper.silent ? void 0 : ["pipe", consolaWritable],
8218
8139
  stripFinalNewline: true
8219
8140
  });
8220
- logger.emit("success", `Executed hook ${logger.logLevel !== _logger.LogMapper.silent ? p2.dim(command) : ""}`);
8141
+ logger$1?.emit("success", `Executed hook ${logger$1.logLevel !== logger.LogMapper.silent ? p2.dim(command) : ""}`);
8221
8142
  });
8222
8143
  });
8223
8144
  await Promise.all(promises);
8224
- logger.emit("success", "Executed hooks");
8145
+ logger$1?.emit("success", "Executed hooks");
8225
8146
  }
8226
8147
 
8227
8148
  // src/utils/getErrorCauses.ts
8228
8149
  init_cjs_shims();
8229
8150
  function getErrorCauses(errors) {
8230
8151
  return errors.reduce((prev, error) => {
8231
- const causedError = _optionalChain([error, 'optionalAccess', _50 => _50.cause]);
8152
+ const causedError = error?.cause;
8232
8153
  if (causedError) {
8233
8154
  prev = [...prev, ...getErrorCauses([causedError])];
8234
8155
  return prev;
@@ -8241,8 +8162,6 @@ function getErrorCauses(errors) {
8241
8162
  // src/utils/getSummary.ts
8242
8163
  init_cjs_shims();
8243
8164
 
8244
-
8245
-
8246
8165
  // src/utils/parseHrtimeToSeconds.ts
8247
8166
  init_cjs_shims();
8248
8167
  function parseHrtimeToSeconds(hrtime2) {
@@ -8252,20 +8171,20 @@ function parseHrtimeToSeconds(hrtime2) {
8252
8171
 
8253
8172
  // src/utils/getSummary.ts
8254
8173
  function getSummary({ pluginManager, filesCreated, status, hrStart, config }) {
8255
- const logs = [];
8174
+ const logs = /* @__PURE__ */ new Set();
8256
8175
  const elapsedSeconds = parseHrtimeToSeconds(process.hrtime(hrStart));
8257
8176
  const buildStartPlugins = pluginManager.executed.filter((item) => item.hookName === "buildStart" && item.plugin.name !== "core").map((item) => item.plugin.name);
8258
8177
  const buildEndPlugins = pluginManager.executed.filter((item) => item.hookName === "buildEnd" && item.plugin.name !== "core").map((item) => item.plugin.name);
8259
- const failedPlugins = _optionalChain([config, 'access', _51 => _51.plugins, 'optionalAccess', _52 => _52.filter, 'call', _53 => _53((plugin) => !buildEndPlugins.includes(plugin.name)), 'optionalAccess', _54 => _54.map, 'call', _55 => _55((plugin) => plugin.name)]);
8260
- const pluginsCount = _optionalChain([config, 'access', _56 => _56.plugins, 'optionalAccess', _57 => _57.length]) || 0;
8178
+ const failedPlugins = config.plugins?.filter((plugin) => !buildEndPlugins.includes(plugin.name))?.map((plugin) => plugin.name);
8179
+ const pluginsCount = config.plugins?.length || 0;
8261
8180
  const meta = {
8262
- plugins: status === "success" ? `${p2.green(`${buildStartPlugins.length} successful`)}, ${pluginsCount} total` : `${p2.red(`${_nullishCoalesce(_optionalChain([failedPlugins, 'optionalAccess', _58 => _58.length]), () => ( 1))} failed`)}, ${pluginsCount} total`,
8263
- pluginsFailed: status === "failed" ? _optionalChain([failedPlugins, 'optionalAccess', _59 => _59.map, 'call', _60 => _60((name) => _logger.randomCliColour.call(void 0, name)), 'optionalAccess', _61 => _61.join, 'call', _62 => _62(", ")]) : void 0,
8181
+ plugins: status === "success" ? `${p2.green(`${buildStartPlugins.length} successful`)}, ${pluginsCount} total` : `${p2.red(`${failedPlugins?.length ?? 1} failed`)}, ${pluginsCount} total`,
8182
+ pluginsFailed: status === "failed" ? failedPlugins?.map((name) => logger.randomCliColour(name))?.join(", ") : void 0,
8264
8183
  filesCreated,
8265
8184
  time: `${p2.yellow(`${elapsedSeconds}s`)}`,
8266
- output: _path2.default.isAbsolute(config.root) ? _path2.default.resolve(config.root, config.output.path) : config.root
8185
+ output: path2__default.default.isAbsolute(config.root) ? path2__default.default.resolve(config.root, config.output.path) : config.root
8267
8186
  };
8268
- logs.push(
8187
+ logs.add(
8269
8188
  [
8270
8189
  [`${p2.bold("Plugins:")} ${meta.plugins}`, true],
8271
8190
  [`${p2.dim("Failed:")} ${meta.pluginsFailed || "none"}`, !!meta.pluginsFailed],
@@ -8278,78 +8197,45 @@ function getSummary({ pluginManager, filesCreated, status, hrStart, config }) {
8278
8197
  return void 0;
8279
8198
  }).filter(Boolean).join("\n")
8280
8199
  );
8281
- return logs;
8282
- }
8283
-
8284
- // src/utils/writeLog.ts
8285
- init_cjs_shims();
8286
-
8287
- var _fs3 = require('@kubb/fs');
8288
- async function writeLog({ data, override, fileName = "kubb.log" }) {
8289
- if (data.trim() === "") {
8290
- return void 0;
8291
- }
8292
- const path6 = _path.resolve.call(void 0, process.cwd(), fileName);
8293
- let previousLogs = "";
8294
- try {
8295
- previousLogs = await _fs3.read.call(void 0, _path.resolve.call(void 0, path6));
8296
- } catch (_err) {
8297
- }
8298
- if (override) {
8299
- return _fs3.write.call(void 0, path6, data.trim(), { sanity: false });
8300
- }
8301
- return _fs3.write.call(void 0, path6, [previousLogs, data.trim()].filter(Boolean).join("\n"), { sanity: false });
8200
+ return [...logs];
8302
8201
  }
8303
-
8304
- // src/generate.ts
8305
- var _cliprogress = require('cli-progress');
8306
8202
  async function generate({ input, config, args }) {
8307
- const logLevel = _logger.LogMapper[args.logLevel] || 3;
8308
- const logger = _logger.createLogger.call(void 0, {
8203
+ const logLevel = logger.LogMapper[args.logLevel] || 3;
8204
+ const logger$1 = logger.createLogger({
8309
8205
  logLevel,
8310
8206
  name: config.name
8311
8207
  });
8312
- const progressBars = {};
8313
- logger.on("progress_start", ({ id, size }) => {
8314
- _optionalChain([logger, 'access', _63 => _63.consola, 'optionalAccess', _64 => _64.pauseLogs, 'call', _65 => _65()]);
8315
- if (!progressBars[id]) {
8316
- progressBars[id] = new (0, _cliprogress.SingleBar)(
8317
- logLevel === _logger.LogMapper.info ? {
8318
- format: "{percentage}% {bar} {value}/{total} {id} | ETA: {eta_formatted} | {data}",
8319
- barsize: 20,
8320
- clearOnComplete: true,
8321
- emptyOnZero: true
8322
- } : {
8323
- format: "{percentage}% {bar} {value}/{total} {id}",
8208
+ const { root = process.cwd(), ...userConfig } = config;
8209
+ const inputPath = input ?? ("path" in userConfig.input ? userConfig.input.path : void 0);
8210
+ if (logger$1.logLevel !== logger.LogMapper.debug) {
8211
+ const progressCache = /* @__PURE__ */ new Map();
8212
+ logger$1.on("progress_start", ({ id, size, message = "" }) => {
8213
+ logger$1.consola?.pauseLogs();
8214
+ const payload = { id, message };
8215
+ const progressBar = new cliProgress.SingleBar(
8216
+ {
8217
+ format: "{percentage}% {bar} {value}/{total} | {message}",
8324
8218
  barsize: 30,
8325
8219
  clearOnComplete: true,
8326
8220
  emptyOnZero: true
8327
8221
  },
8328
- _cliprogress.Presets.shades_grey
8222
+ cliProgress.Presets.shades_grey
8329
8223
  );
8330
- progressBars[id].start(size, 1, { id, data: " " });
8331
- }
8332
- });
8333
- logger.on("progress_stop", ({ id }) => {
8334
- const progressBar = progressBars[id];
8335
- _optionalChain([progressBar, 'optionalAccess', _66 => _66.stop, 'call', _67 => _67()]);
8336
- _optionalChain([logger, 'access', _68 => _68.consola, 'optionalAccess', _69 => _69.resumeLogs, 'call', _70 => _70()]);
8337
- });
8338
- logger.on("progress", ({ id, count: count2, data = "" }) => {
8339
- const progressBar = progressBars[id];
8340
- const payload = { id, data };
8341
- if (count2) {
8342
- _optionalChain([progressBar, 'optionalAccess', _71 => _71.update, 'call', _72 => _72(count2, payload)]);
8343
- } else {
8344
- _optionalChain([progressBar, 'optionalAccess', _73 => _73.increment, 'call', _74 => _74(1, payload)]);
8345
- }
8346
- });
8347
- logger.on("debug", async ({ logs, override, fileName }) => {
8348
- await writeLog({ data: logs.join("\n"), fileName, override });
8349
- });
8350
- const { root = process.cwd(), ...userConfig } = config;
8351
- const inputPath = _nullishCoalesce(input, () => ( ("path" in userConfig.input ? userConfig.input.path : void 0)));
8352
- logger.emit("start", `Building ${logLevel !== _logger.LogMapper.silent ? p2.dim(inputPath) : ""}`);
8224
+ if (!progressCache.has(id)) {
8225
+ progressCache.set(id, progressBar);
8226
+ progressBar.start(size, 1, payload);
8227
+ }
8228
+ });
8229
+ logger$1.on("progress_stop", ({ id }) => {
8230
+ progressCache.get(id)?.stop();
8231
+ logger$1.consola?.resumeLogs();
8232
+ });
8233
+ logger$1.on("progressed", ({ id, message = "" }) => {
8234
+ const payload = { id, message };
8235
+ progressCache.get(id)?.increment(1, payload);
8236
+ });
8237
+ }
8238
+ logger$1.emit("start", `Building ${logger$1.logLevel !== logger.LogMapper.silent ? p2.dim(inputPath) : ""}`);
8353
8239
  const definedConfig = {
8354
8240
  root,
8355
8241
  ...userConfig,
@@ -8359,27 +8245,35 @@ async function generate({ input, config, args }) {
8359
8245
  } : userConfig.input,
8360
8246
  output: {
8361
8247
  write: true,
8362
- exportType: "barrelNamed",
8248
+ barrelType: "named",
8249
+ extension: {
8250
+ ".ts": ".ts"
8251
+ },
8363
8252
  ...userConfig.output
8364
8253
  }
8365
8254
  };
8366
8255
  const hrStart = process.hrtime();
8367
- const { pluginManager, files, error } = await _core.safeBuild.call(void 0, {
8256
+ const { pluginManager, files, error } = await core.safeBuild({
8368
8257
  config: definedConfig,
8369
- logger
8258
+ logger: logger$1
8370
8259
  });
8260
+ if (logger$1.logLevel === logger.LogMapper.debug) {
8261
+ logger$1.consola?.start("Writing logs");
8262
+ const logFiles = await logger$1.writeLogs();
8263
+ logger$1.consola?.success(`Written logs:
8264
+ ${logFiles.join("\n")}`);
8265
+ }
8371
8266
  const summary = getSummary({
8372
8267
  filesCreated: files.length,
8373
8268
  pluginManager,
8374
8269
  config: definedConfig,
8375
8270
  status: error ? "failed" : "success",
8376
- hrStart,
8377
- logger
8271
+ hrStart
8378
8272
  });
8379
- if (error && logger.consola) {
8380
- _optionalChain([logger, 'access', _75 => _75.consola, 'optionalAccess', _76 => _76.resumeLogs, 'call', _77 => _77()]);
8381
- logger.consola.error(`Build failed ${logLevel !== _logger.LogMapper.silent ? p2.dim(inputPath) : ""}`);
8382
- logger.consola.box({
8273
+ if (error && logger$1.consola) {
8274
+ logger$1.consola?.resumeLogs();
8275
+ logger$1.consola.error(`Build failed ${logger$1.logLevel !== logger.LogMapper.silent ? p2.dim(inputPath) : ""}`);
8276
+ logger$1.consola.box({
8383
8277
  title: `${config.name || ""}`,
8384
8278
  message: summary.join(""),
8385
8279
  style: {
@@ -8389,19 +8283,19 @@ async function generate({ input, config, args }) {
8389
8283
  }
8390
8284
  });
8391
8285
  const errors = getErrorCauses([error]);
8392
- if (logger.consola && errors.length && logLevel === _logger.LogMapper.debug) {
8286
+ if (logger$1.consola && errors.length && logger$1.logLevel === logger.LogMapper.debug) {
8393
8287
  errors.forEach((err) => {
8394
- _optionalChain([logger, 'access', _78 => _78.consola, 'optionalAccess', _79 => _79.error, 'call', _80 => _80(err)]);
8288
+ logger$1.consola?.error(err);
8395
8289
  });
8396
8290
  }
8397
- _optionalChain([logger, 'access', _81 => _81.consola, 'optionalAccess', _82 => _82.error, 'call', _83 => _83(error)]);
8291
+ logger$1.consola?.error(error);
8398
8292
  process.exit(0);
8399
8293
  }
8400
8294
  if (config.hooks) {
8401
- await executeHooks({ hooks: config.hooks, logger });
8295
+ await executeHooks({ hooks: config.hooks, logger: logger$1 });
8402
8296
  }
8403
- _optionalChain([logger, 'access', _84 => _84.consola, 'optionalAccess', _85 => _85.log, 'call', _86 => _86(`\u26A1Build completed ${logLevel !== _logger.LogMapper.silent ? p2.dim(inputPath) : ""}`)]);
8404
- _optionalChain([logger, 'access', _87 => _87.consola, 'optionalAccess', _88 => _88.box, 'call', _89 => _89({
8297
+ logger$1.consola?.log(`\u26A1Build completed ${logger$1.logLevel !== logger.LogMapper.silent ? p2.dim(inputPath) : ""}`);
8298
+ logger$1.consola?.box({
8405
8299
  title: `${config.name || ""}`,
8406
8300
  message: summary.join(""),
8407
8301
  style: {
@@ -8409,13 +8303,11 @@ async function generate({ input, config, args }) {
8409
8303
  borderColor: "green",
8410
8304
  borderStyle: "rounded"
8411
8305
  }
8412
- })]);
8306
+ });
8413
8307
  }
8414
8308
 
8415
-
8416
-
8417
-
8418
-
8419
-
8420
- exports.init_cjs_shims = init_cjs_shims; exports.p = p2; exports.execa = execa; exports.generate = generate;
8421
- //# sourceMappingURL=chunk-LK3JKOEH.cjs.map
8309
+ exports.generate = generate;
8310
+ exports.init_cjs_shims = init_cjs_shims;
8311
+ exports.p = p2;
8312
+ //# sourceMappingURL=chunk-LV33XAJU.cjs.map
8313
+ //# sourceMappingURL=chunk-LV33XAJU.cjs.map