@hot-updater/cloudflare 0.27.1 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,16 +1,15 @@
1
- //#region rolldown:runtime
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ //#region \0rolldown/runtime.js
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
7
  var __getProtoOf = Object.getPrototypeOf;
7
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __commonJS = (cb, mod) => function() {
9
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
- };
9
+ var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
11
10
  var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i$1 = 0, n$1 = keys.length, key; i$1 < n$1; i$1++) {
13
- key = keys[i$1];
11
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
12
+ key = keys[i];
14
13
  if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
14
  get: ((k) => from[k]).bind(null, key),
16
15
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
@@ -22,20 +21,15 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
22
21
  value: mod,
23
22
  enumerable: true
24
23
  }) : target, mod));
25
-
26
24
  //#endregion
27
- let __hot_updater_plugin_core = require("@hot-updater/plugin-core");
28
- __hot_updater_plugin_core = __toESM(__hot_updater_plugin_core);
25
+ let _hot_updater_core = require("@hot-updater/core");
26
+ let _hot_updater_plugin_core = require("@hot-updater/plugin-core");
29
27
  let cloudflare = require("cloudflare");
30
28
  cloudflare = __toESM(cloudflare);
31
29
  let node_url = require("node:url");
32
- node_url = __toESM(node_url);
33
30
  let node_child_process = require("node:child_process");
34
- node_child_process = __toESM(node_child_process);
35
31
  let node_string_decoder = require("node:string_decoder");
36
- node_string_decoder = __toESM(node_string_decoder);
37
32
  let node_util = require("node:util");
38
- node_util = __toESM(node_util);
39
33
  let node_process = require("node:process");
40
34
  node_process = __toESM(node_process);
41
35
  let node_tty = require("node:tty");
@@ -45,26 +39,17 @@ node_path = __toESM(node_path);
45
39
  let path = require("path");
46
40
  path = __toESM(path);
47
41
  let node_timers_promises = require("node:timers/promises");
48
- node_timers_promises = __toESM(node_timers_promises);
49
42
  let node_os = require("node:os");
50
- node_os = __toESM(node_os);
51
43
  let node_events = require("node:events");
52
- node_events = __toESM(node_events);
53
44
  let node_v8 = require("node:v8");
54
- node_v8 = __toESM(node_v8);
55
45
  let node_fs = require("node:fs");
56
- node_fs = __toESM(node_fs);
57
46
  let node_stream_promises = require("node:stream/promises");
58
- node_stream_promises = __toESM(node_stream_promises);
59
47
  let node_stream = require("node:stream");
60
- node_stream = __toESM(node_stream);
61
48
  let node_buffer = require("node:buffer");
62
- node_buffer = __toESM(node_buffer);
63
-
64
49
  //#region ../../node_modules/.pnpm/pg-minify@1.6.5/node_modules/pg-minify/lib/utils.js
65
- var require_utils = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/pg-minify@1.6.5/node_modules/pg-minify/lib/utils.js": ((exports, module) => {
50
+ var require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
66
51
  const { inspect: inspect$2 } = require("util");
67
- function getIndexPos$1(text, index) {
52
+ function getIndexPos(text, index) {
68
53
  let lineIdx = 0, colIdx = index, pos = 0;
69
54
  do {
70
55
  pos = text.indexOf("\n", pos);
@@ -78,31 +63,30 @@ var require_utils = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/pg-mi
78
63
  column: colIdx + 1
79
64
  };
80
65
  }
81
- function messageGap$1(level) {
66
+ function messageGap(level) {
82
67
  return " ".repeat(level * 4);
83
68
  }
84
- function addInspection$1(type, cb) {
69
+ function addInspection(type, cb) {
85
70
  type[inspect$2.custom] = cb;
86
71
  }
87
72
  module.exports = {
88
- getIndexPos: getIndexPos$1,
89
- messageGap: messageGap$1,
90
- addInspection: addInspection$1
73
+ getIndexPos,
74
+ messageGap,
75
+ addInspection
91
76
  };
92
- }) });
93
-
77
+ }));
94
78
  //#endregion
95
79
  //#region ../../node_modules/.pnpm/pg-minify@1.6.5/node_modules/pg-minify/lib/error.js
96
- var require_error = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/pg-minify@1.6.5/node_modules/pg-minify/lib/error.js": ((exports, module) => {
80
+ var require_error = /* @__PURE__ */ __commonJSMin(((exports, module) => {
97
81
  const { EOL } = require("os");
98
82
  const { addInspection, messageGap } = require_utils();
99
- const parsingErrorCode$1 = {
83
+ const parsingErrorCode = {
100
84
  unclosedMLC: 0,
101
85
  unclosedText: 1,
102
86
  unclosedQI: 2,
103
87
  multiLineQI: 3
104
88
  };
105
- Object.freeze(parsingErrorCode$1);
89
+ Object.freeze(parsingErrorCode);
106
90
  const errorMessages = [
107
91
  {
108
92
  name: "unclosedMLC",
@@ -121,7 +105,7 @@ var require_error = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/pg-mi
121
105
  message: "Multi-line quoted identifiers are not supported."
122
106
  }
123
107
  ];
124
- var SQLParsingError$1 = class extends Error {
108
+ var SQLParsingError = class extends Error {
125
109
  constructor(code, position) {
126
110
  const err = errorMessages[code].message;
127
111
  const message = `Error parsing SQL at {line:${position.line},col:${position.column}}: ${err}`;
@@ -133,7 +117,7 @@ var require_error = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/pg-mi
133
117
  Error.captureStackTrace(this, this.constructor);
134
118
  }
135
119
  };
136
- SQLParsingError$1.prototype.toString = function(level) {
120
+ SQLParsingError.prototype.toString = function(level) {
137
121
  level = level > 0 ? parseInt(level) : 0;
138
122
  const gap = messageGap(level + 1);
139
123
  return [
@@ -144,22 +128,21 @@ var require_error = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/pg-mi
144
128
  `${messageGap(level)}}`
145
129
  ].join(EOL);
146
130
  };
147
- addInspection(SQLParsingError$1.prototype, function() {
131
+ addInspection(SQLParsingError.prototype, function() {
148
132
  return this.toString();
149
133
  });
150
134
  module.exports = {
151
- SQLParsingError: SQLParsingError$1,
152
- parsingErrorCode: parsingErrorCode$1
135
+ SQLParsingError,
136
+ parsingErrorCode
153
137
  };
154
- }) });
155
-
138
+ }));
156
139
  //#endregion
157
140
  //#region ../../node_modules/.pnpm/pg-minify@1.6.5/node_modules/pg-minify/lib/parser.js
158
- var require_parser = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/pg-minify@1.6.5/node_modules/pg-minify/lib/parser.js": ((exports, module) => {
141
+ var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
159
142
  const { parsingErrorCode, SQLParsingError } = require_error();
160
143
  const { getIndexPos } = require_utils();
161
144
  const compressors = ".,;:()[]=<>+-*/|!?@#";
162
- function minify$1(sql, options) {
145
+ function minify(sql, options) {
163
146
  if (typeof sql !== "string") throw new TypeError("Input SQL must be a text string.");
164
147
  if (!sql.length) return "";
165
148
  sql = sql.replace(/\r\n/g, "\n");
@@ -182,15 +165,15 @@ var require_parser = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/pg-m
182
165
  continue;
183
166
  }
184
167
  if (s === "/" && s1 === "*") {
185
- let c$1 = idx + 1, open = 0, close = 0, lastOpen, lastClose;
186
- while (++c$1 < len - 1 && close <= open) if (sql[c$1] === "/" && sql[c$1 + 1] === "*") {
187
- lastOpen = c$1;
168
+ let c = idx + 1, open = 0, close = 0, lastOpen, lastClose;
169
+ while (++c < len - 1 && close <= open) if (sql[c] === "/" && sql[c + 1] === "*") {
170
+ lastOpen = c;
188
171
  open++;
189
- c$1++;
190
- } else if (sql[c$1] === "*" && sql[c$1 + 1] === "/") {
191
- lastClose = c$1;
172
+ c++;
173
+ } else if (sql[c] === "*" && sql[c + 1] === "/") {
174
+ lastClose = c;
192
175
  close++;
193
- c$1++;
176
+ c++;
194
177
  }
195
178
  if (close <= open) {
196
179
  idx = lastOpen;
@@ -223,9 +206,9 @@ var require_parser = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/pg-m
223
206
  do {
224
207
  closeIdx = sql.indexOf("'", closeIdx + 1);
225
208
  if (closeIdx > 0) {
226
- let i$1 = closeIdx;
227
- while (sql[--i$1] === "\\");
228
- if ((closeIdx - i$1) % 2) {
209
+ let i = closeIdx;
210
+ while (sql[--i] === "\\");
211
+ if ((closeIdx - i) % 2) {
229
212
  let step = closeIdx;
230
213
  while (++step < len && sql[step] === "'");
231
214
  if ((step - closeIdx) % 2) {
@@ -283,22 +266,17 @@ var require_parser = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/pg-m
283
266
  function isGap(s) {
284
267
  return s === " " || s === " " || s === "\r" || s === "\n";
285
268
  }
286
- module.exports = minify$1;
287
- }) });
288
-
269
+ module.exports = minify;
270
+ }));
289
271
  //#endregion
290
- //#region ../../node_modules/.pnpm/pg-minify@1.6.5/node_modules/pg-minify/lib/index.js
291
- var require_lib = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/pg-minify@1.6.5/node_modules/pg-minify/lib/index.js": ((exports, module) => {
272
+ //#region src/d1Database.ts
273
+ var import_lib = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
292
274
  const parser = require_parser();
293
275
  const error = require_error();
294
276
  parser.SQLParsingError = error.SQLParsingError;
295
277
  parser.parsingErrorCode = error.parsingErrorCode;
296
278
  module.exports = parser;
297
- }) });
298
-
299
- //#endregion
300
- //#region src/d1Database.ts
301
- var import_lib = /* @__PURE__ */ __toESM(require_lib(), 1);
279
+ })))(), 1);
302
280
  async function resolvePage(singlePage) {
303
281
  const results = [];
304
282
  for await (const page of singlePage.iterPages()) {
@@ -318,11 +296,67 @@ function buildWhereClause(conditions) {
318
296
  clauses.push("platform = ?");
319
297
  params.push(conditions.platform);
320
298
  }
299
+ if (conditions.enabled !== void 0) {
300
+ clauses.push("enabled = ?");
301
+ params.push(conditions.enabled ? 1 : 0);
302
+ }
303
+ if (conditions.id?.in) if (conditions.id.in.length === 0) clauses.push("1 = 0");
304
+ else {
305
+ clauses.push(`id IN (${conditions.id.in.map(() => "?").join(", ")})`);
306
+ params.push(...conditions.id.in);
307
+ }
308
+ if (conditions.id?.eq) {
309
+ clauses.push("id = ?");
310
+ params.push(conditions.id.eq);
311
+ }
312
+ if (conditions.id?.gt) {
313
+ clauses.push("id > ?");
314
+ params.push(conditions.id.gt);
315
+ }
316
+ if (conditions.id?.gte) {
317
+ clauses.push("id >= ?");
318
+ params.push(conditions.id.gte);
319
+ }
320
+ if (conditions.id?.lt) {
321
+ clauses.push("id < ?");
322
+ params.push(conditions.id.lt);
323
+ }
324
+ if (conditions.id?.lte) {
325
+ clauses.push("id <= ?");
326
+ params.push(conditions.id.lte);
327
+ }
328
+ if (conditions.targetAppVersionNotNull) clauses.push("target_app_version IS NOT NULL");
329
+ if (conditions.targetAppVersion !== void 0) if (conditions.targetAppVersion === null) clauses.push("target_app_version IS NULL");
330
+ else {
331
+ clauses.push("target_app_version = ?");
332
+ params.push(conditions.targetAppVersion);
333
+ }
334
+ if (conditions.targetAppVersionIn) if (conditions.targetAppVersionIn.length === 0) clauses.push("1 = 0");
335
+ else {
336
+ clauses.push(`target_app_version IN (${conditions.targetAppVersionIn.map(() => "?").join(", ")})`);
337
+ params.push(...conditions.targetAppVersionIn);
338
+ }
339
+ if (conditions.fingerprintHash !== void 0) if (conditions.fingerprintHash === null) clauses.push("fingerprint_hash IS NULL");
340
+ else {
341
+ clauses.push("fingerprint_hash = ?");
342
+ params.push(conditions.fingerprintHash);
343
+ }
321
344
  return {
322
345
  sql: clauses.length > 0 ? ` WHERE ${clauses.join(" AND ")}` : "",
323
346
  params
324
347
  };
325
348
  }
349
+ function parseTargetCohorts(value) {
350
+ if (!value) return null;
351
+ if (Array.isArray(value)) return value.filter((v) => typeof v === "string");
352
+ if (typeof value === "string") try {
353
+ const parsed = JSON.parse(value);
354
+ if (Array.isArray(parsed)) return parsed.filter((v) => typeof v === "string");
355
+ } catch {
356
+ return null;
357
+ }
358
+ return null;
359
+ }
326
360
  function transformRowToBundle(row) {
327
361
  return {
328
362
  id: row.id,
@@ -336,10 +370,12 @@ function transformRowToBundle(row) {
336
370
  targetAppVersion: row.target_app_version,
337
371
  storageUri: row.storage_uri,
338
372
  fingerprintHash: row.fingerprint_hash,
339
- metadata: row?.metadata ? JSON.parse(row?.metadata) : {}
373
+ metadata: row?.metadata ? JSON.parse(row?.metadata) : {},
374
+ rolloutCohortCount: row.rollout_cohort_count ?? _hot_updater_core.DEFAULT_ROLLOUT_COHORT_COUNT,
375
+ targetCohorts: parseTargetCohorts(row.target_cohorts)
340
376
  };
341
377
  }
342
- const d1Database = (0, __hot_updater_plugin_core.createDatabasePlugin)({
378
+ const d1Database = (0, _hot_updater_plugin_core.createDatabasePlugin)({
343
379
  name: "d1Database",
344
380
  factory: (config) => {
345
381
  let bundles = [];
@@ -353,12 +389,12 @@ const d1Database = (0, __hot_updater_plugin_core.createDatabasePlugin)({
353
389
  params
354
390
  })))[0]?.total || 0;
355
391
  }
356
- async function getPaginatedBundles(conditions, limit, offset) {
392
+ async function getPaginatedBundles(conditions, limit, offset, orderBy) {
357
393
  const { sql: whereClause, params } = buildWhereClause(conditions);
358
394
  const sql = (0, import_lib.default)(`
359
395
  SELECT * FROM bundles
360
396
  ${whereClause}
361
- ORDER BY id DESC
397
+ ${orderBy?.direction === "asc" ? "ORDER BY id ASC" : "ORDER BY id DESC"}
362
398
  LIMIT ?
363
399
  OFFSET ?
364
400
  `);
@@ -384,10 +420,10 @@ const d1Database = (0, __hot_updater_plugin_core.createDatabasePlugin)({
384
420
  return transformRowToBundle(rows[0]);
385
421
  },
386
422
  async getBundles(options) {
387
- const { where = {}, limit, offset } = options;
423
+ const { where = {}, limit, offset, orderBy } = options;
388
424
  const totalCount = await getTotalCount(where);
389
- bundles = await getPaginatedBundles(where, limit, offset);
390
- const pagination = (0, __hot_updater_plugin_core.calculatePagination)(totalCount, {
425
+ bundles = await getPaginatedBundles(where, limit, offset, orderBy);
426
+ const pagination = (0, _hot_updater_plugin_core.calculatePagination)(totalCount, {
391
427
  limit,
392
428
  offset
393
429
  });
@@ -433,9 +469,11 @@ const d1Database = (0, __hot_updater_plugin_core.createDatabasePlugin)({
433
469
  target_app_version,
434
470
  storage_uri,
435
471
  fingerprint_hash,
436
- metadata
472
+ metadata,
473
+ rollout_cohort_count,
474
+ target_cohorts
437
475
  )
438
- VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
476
+ VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
439
477
  `);
440
478
  const params = [
441
479
  bundle.id,
@@ -449,7 +487,9 @@ const d1Database = (0, __hot_updater_plugin_core.createDatabasePlugin)({
449
487
  bundle.targetAppVersion,
450
488
  bundle.storageUri,
451
489
  bundle.fingerprintHash,
452
- bundle.metadata ? JSON.stringify(bundle.metadata) : JSON.stringify({})
490
+ bundle.metadata ? JSON.stringify(bundle.metadata) : JSON.stringify({}),
491
+ bundle.rolloutCohortCount ?? _hot_updater_core.DEFAULT_ROLLOUT_COHORT_COUNT,
492
+ bundle.targetCohorts ? JSON.stringify(bundle.targetCohorts) : null
453
493
  ];
454
494
  await cf.d1.database.query(config.databaseId, {
455
495
  account_id: config.accountId,
@@ -461,7 +501,6 @@ const d1Database = (0, __hot_updater_plugin_core.createDatabasePlugin)({
461
501
  };
462
502
  }
463
503
  });
464
-
465
504
  //#endregion
466
505
  //#region ../../node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.js
467
506
  function isPlainObject(value) {
@@ -469,7 +508,6 @@ function isPlainObject(value) {
469
508
  const prototype = Object.getPrototypeOf(value);
470
509
  return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
471
510
  }
472
-
473
511
  //#endregion
474
512
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/file-url.js
475
513
  const safeNormalizeFileUrl = (file, name) => {
@@ -480,7 +518,6 @@ const safeNormalizeFileUrl = (file, name) => {
480
518
  const normalizeDenoExecPath = (file) => isDenoExecPath(file) ? file.toString() : file;
481
519
  const isDenoExecPath = (file) => typeof file !== "string" && file && Object.getPrototypeOf(file) === String.prototype;
482
520
  const normalizeFileUrl = (file) => file instanceof URL ? (0, node_url.fileURLToPath)(file) : file;
483
-
484
521
  //#endregion
485
522
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/parameters.js
486
523
  const normalizeParameters = (rawFile, rawArguments = [], rawOptions = {}) => {
@@ -498,7 +535,6 @@ const normalizeParameters = (rawFile, rawArguments = [], rawOptions = {}) => {
498
535
  options
499
536
  ];
500
537
  };
501
-
502
538
  //#endregion
503
539
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/utils/uint-array.js
504
540
  const { toString: objectToString$1 } = Object.prototype;
@@ -538,7 +574,6 @@ const getJoinLength = (uint8Arrays) => {
538
574
  for (const uint8Array of uint8Arrays) joinLength += uint8Array.length;
539
575
  return joinLength;
540
576
  };
541
-
542
577
  //#endregion
543
578
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/template.js
544
579
  const isTemplateString = (templates) => Array.isArray(templates) && Array.isArray(templates.raw);
@@ -565,7 +600,7 @@ const parseTemplate = ({ templates, expressions, tokens, index, template }) => {
565
600
  const newTokens = concatTokens(tokens, nextTokens, leadingWhitespaces);
566
601
  if (index === expressions.length) return newTokens;
567
602
  const expression = expressions[index];
568
- return concatTokens(newTokens, Array.isArray(expression) ? expression.map((expression$1) => parseExpression(expression$1)) : [parseExpression(expression)], trailingWhitespaces);
603
+ return concatTokens(newTokens, Array.isArray(expression) ? expression.map((expression) => parseExpression(expression)) : [parseExpression(expression)], trailingWhitespaces);
569
604
  };
570
605
  const splitByWhitespaces = (template, rawTemplate) => {
571
606
  if (rawTemplate.length === 0) return {
@@ -627,7 +662,6 @@ const getSubprocessResult = ({ stdout }) => {
627
662
  if (stdout === void 0) throw new TypeError("Missing result.stdout in template expression. This is probably due to the previous subprocess' \"stdout\" option.");
628
663
  throw new TypeError(`Unexpected "${typeof stdout}" stdout in template expression`);
629
664
  };
630
-
631
665
  //#endregion
632
666
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/utils/standard-stream.js
633
667
  const isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
@@ -642,7 +676,6 @@ const STANDARD_STREAMS_ALIASES = [
642
676
  "stderr"
643
677
  ];
644
678
  const getStreamName = (fdNumber) => STANDARD_STREAMS_ALIASES[fdNumber] ?? `stdio[${fdNumber}]`;
645
-
646
679
  //#endregion
647
680
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/specific.js
648
681
  const normalizeFdSpecificOptions = (options) => {
@@ -697,7 +730,6 @@ const FD_SPECIFIC_OPTIONS = [
697
730
  "stripFinalNewline"
698
731
  ];
699
732
  const getFdSpecificValue = (optionArray, fdNumber) => fdNumber === "ipc" ? optionArray.at(-1) : optionArray[fdNumber];
700
-
701
733
  //#endregion
702
734
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/values.js
703
735
  const isVerbose = ({ verbose }, fdNumber) => getFdVerbose(verbose, fdNumber) !== "none";
@@ -714,7 +746,6 @@ const VERBOSE_VALUES = [
714
746
  "short",
715
747
  "full"
716
748
  ];
717
-
718
749
  //#endregion
719
750
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/escape.js
720
751
  const joinCommand = (filePath, rawArguments) => {
@@ -735,7 +766,7 @@ const escapeControlCharacter = (character) => {
735
766
  };
736
767
  const getSpecialCharRegExp = () => {
737
768
  try {
738
- return new RegExp("\\p{Separator}|\\p{Other}", "gu");
769
+ return /* @__PURE__ */ new RegExp("\\p{Separator}|\\p{Other}", "gu");
739
770
  } catch {
740
771
  return /[\s\u0000-\u001F\u007F-\u009F\u00AD]/g;
741
772
  }
@@ -755,7 +786,6 @@ const quoteString = (escapedArgument) => {
755
786
  return node_process.platform === "win32" ? `"${escapedArgument.replaceAll("\"", "\"\"")}"` : `'${escapedArgument.replaceAll("'", "'\\''")}'`;
756
787
  };
757
788
  const NO_ESCAPE_REGEXP = /^[\w./-]+$/;
758
-
759
789
  //#endregion
760
790
  //#region ../../node_modules/.pnpm/is-unicode-supported@2.1.0/node_modules/is-unicode-supported/index.js
761
791
  function isUnicodeSupported() {
@@ -764,7 +794,6 @@ function isUnicodeSupported() {
764
794
  if (node_process.default.platform !== "win32") return TERM !== "linux";
765
795
  return Boolean(env.WT_SESSION) || Boolean(env.TERMINUS_SUBLIME) || env.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
766
796
  }
767
-
768
797
  //#endregion
769
798
  //#region ../../node_modules/.pnpm/figures@6.1.0/node_modules/figures/index.js
770
799
  const common = {
@@ -1043,11 +1072,8 @@ const fallbackSymbols = {
1043
1072
  ...common,
1044
1073
  ...specialFallbackSymbols
1045
1074
  };
1046
- const shouldUseMain = isUnicodeSupported();
1047
- const figures = shouldUseMain ? mainSymbols : fallbackSymbols;
1048
- var figures_default = figures;
1049
- const replacements = Object.entries(specialMainSymbols);
1050
-
1075
+ const figures = isUnicodeSupported() ? mainSymbols : fallbackSymbols;
1076
+ Object.entries(specialMainSymbols);
1051
1077
  //#endregion
1052
1078
  //#region ../../node_modules/.pnpm/yoctocolors@2.1.1/node_modules/yoctocolors/base.js
1053
1079
  const hasColors = node_tty.default?.WriteStream?.prototype?.hasColors?.() ?? false;
@@ -1070,48 +1096,47 @@ const format = (open, close) => {
1070
1096
  return result;
1071
1097
  };
1072
1098
  };
1073
- const reset = format(0, 0);
1099
+ format(0, 0);
1074
1100
  const bold = format(1, 22);
1075
- const dim = format(2, 22);
1076
- const italic = format(3, 23);
1077
- const underline = format(4, 24);
1078
- const overline = format(53, 55);
1079
- const inverse = format(7, 27);
1080
- const hidden = format(8, 28);
1081
- const strikethrough = format(9, 29);
1082
- const black = format(30, 39);
1083
- const red = format(31, 39);
1084
- const green = format(32, 39);
1085
- const yellow = format(33, 39);
1086
- const blue = format(34, 39);
1087
- const magenta = format(35, 39);
1088
- const cyan = format(36, 39);
1089
- const white = format(37, 39);
1101
+ format(2, 22);
1102
+ format(3, 23);
1103
+ format(4, 24);
1104
+ format(53, 55);
1105
+ format(7, 27);
1106
+ format(8, 28);
1107
+ format(9, 29);
1108
+ format(30, 39);
1109
+ format(31, 39);
1110
+ format(32, 39);
1111
+ format(33, 39);
1112
+ format(34, 39);
1113
+ format(35, 39);
1114
+ format(36, 39);
1115
+ format(37, 39);
1090
1116
  const gray = format(90, 39);
1091
- const bgBlack = format(40, 49);
1092
- const bgRed = format(41, 49);
1093
- const bgGreen = format(42, 49);
1094
- const bgYellow = format(43, 49);
1095
- const bgBlue = format(44, 49);
1096
- const bgMagenta = format(45, 49);
1097
- const bgCyan = format(46, 49);
1098
- const bgWhite = format(47, 49);
1099
- const bgGray = format(100, 49);
1117
+ format(40, 49);
1118
+ format(41, 49);
1119
+ format(42, 49);
1120
+ format(43, 49);
1121
+ format(44, 49);
1122
+ format(45, 49);
1123
+ format(46, 49);
1124
+ format(47, 49);
1125
+ format(100, 49);
1100
1126
  const redBright = format(91, 39);
1101
- const greenBright = format(92, 39);
1127
+ format(92, 39);
1102
1128
  const yellowBright = format(93, 39);
1103
- const blueBright = format(94, 39);
1104
- const magentaBright = format(95, 39);
1105
- const cyanBright = format(96, 39);
1106
- const whiteBright = format(97, 39);
1107
- const bgRedBright = format(101, 49);
1108
- const bgGreenBright = format(102, 49);
1109
- const bgYellowBright = format(103, 49);
1110
- const bgBlueBright = format(104, 49);
1111
- const bgMagentaBright = format(105, 49);
1112
- const bgCyanBright = format(106, 49);
1113
- const bgWhiteBright = format(107, 49);
1114
-
1129
+ format(94, 39);
1130
+ format(95, 39);
1131
+ format(96, 39);
1132
+ format(97, 39);
1133
+ format(101, 49);
1134
+ format(102, 49);
1135
+ format(103, 49);
1136
+ format(104, 49);
1137
+ format(105, 49);
1138
+ format(106, 49);
1139
+ format(107, 49);
1115
1140
  //#endregion
1116
1141
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/default.js
1117
1142
  const defaultVerboseFunction = ({ type, message, timestamp, piped, commandId, result: { failed = false } = {}, options: { reject = true } }) => {
@@ -1127,8 +1152,8 @@ const defaultVerboseFunction = ({ type, message, timestamp, piped, commandId, re
1127
1152
  const serializeTimestamp = (timestamp) => `${padField(timestamp.getHours(), 2)}:${padField(timestamp.getMinutes(), 2)}:${padField(timestamp.getSeconds(), 2)}.${padField(timestamp.getMilliseconds(), 3)}`;
1128
1153
  const padField = (field, padding) => String(field).padStart(padding, "0");
1129
1154
  const getFinalIcon = ({ failed, reject }) => {
1130
- if (!failed) return figures_default.tick;
1131
- return reject ? figures_default.cross : figures_default.warning;
1155
+ if (!failed) return figures.tick;
1156
+ return reject ? figures.cross : figures.warning;
1132
1157
  };
1133
1158
  const ICONS = {
1134
1159
  command: ({ piped }) => piped ? "|" : "$",
@@ -1145,7 +1170,6 @@ const COLORS = {
1145
1170
  error: ({ reject }) => reject ? redBright : yellowBright,
1146
1171
  duration: () => gray
1147
1172
  };
1148
-
1149
1173
  //#endregion
1150
1174
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/custom.js
1151
1175
  const applyVerboseOnLines = (printedLines, verboseInfo, fdNumber) => {
@@ -1158,7 +1182,6 @@ const applyVerboseFunction = (verboseLine, verboseObject, verboseFunction) => {
1158
1182
  if (typeof printedLine === "string") return printedLine;
1159
1183
  };
1160
1184
  const appendNewline = (printedLine) => printedLine.endsWith("\n") ? printedLine : `${printedLine}\n`;
1161
-
1162
1185
  //#endregion
1163
1186
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/log.js
1164
1187
  const verboseLog = ({ type, verboseMessage, fdNumber, verboseInfo, result }) => {
@@ -1169,7 +1192,7 @@ const verboseLog = ({ type, verboseMessage, fdNumber, verboseInfo, result }) =>
1169
1192
  })), verboseInfo, fdNumber);
1170
1193
  if (finalLines !== "") console.warn(finalLines.slice(0, -1));
1171
1194
  };
1172
- const getVerboseObject = ({ type, result, verboseInfo: { escapedCommand, commandId, rawOptions: { piped = false,...options } } }) => ({
1195
+ const getVerboseObject = ({ type, result, verboseInfo: { escapedCommand, commandId, rawOptions: { piped = false, ...options } } }) => ({
1173
1196
  type,
1174
1197
  escapedCommand,
1175
1198
  commandId: `${commandId}`,
@@ -1192,7 +1215,6 @@ const serializeVerboseMessage = (message) => {
1192
1215
  return escapeLines(typeof message === "string" ? message : (0, node_util.inspect)(message)).replaceAll(" ", " ".repeat(TAB_SIZE));
1193
1216
  };
1194
1217
  const TAB_SIZE = 2;
1195
-
1196
1218
  //#endregion
1197
1219
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/start.js
1198
1220
  const logCommand = (escapedCommand, verboseInfo) => {
@@ -1203,7 +1225,6 @@ const logCommand = (escapedCommand, verboseInfo) => {
1203
1225
  verboseInfo
1204
1226
  });
1205
1227
  };
1206
-
1207
1228
  //#endregion
1208
1229
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/info.js
1209
1230
  const getVerboseInfo = (verbose, escapedCommand, rawOptions) => {
@@ -1227,12 +1248,10 @@ const validateVerbose = (verbose) => {
1227
1248
  }
1228
1249
  }
1229
1250
  };
1230
-
1231
1251
  //#endregion
1232
1252
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/duration.js
1233
1253
  const getStartTime = () => node_process.hrtime.bigint();
1234
1254
  const getDurationMs = (startTime) => Number(node_process.hrtime.bigint() - startTime) / 1e6;
1235
-
1236
1255
  //#endregion
1237
1256
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/command.js
1238
1257
  const handleCommand = (filePath, rawArguments, rawOptions) => {
@@ -1247,51 +1266,49 @@ const handleCommand = (filePath, rawArguments, rawOptions) => {
1247
1266
  verboseInfo
1248
1267
  };
1249
1268
  };
1250
-
1251
1269
  //#endregion
1252
1270
  //#region ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js
1253
- var require_windows = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js": ((exports, module) => {
1254
- module.exports = isexe$3;
1255
- isexe$3.sync = sync$2;
1271
+ var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1272
+ module.exports = isexe;
1273
+ isexe.sync = sync;
1256
1274
  var fs$2 = require("fs");
1257
- function checkPathExt(path$10, options) {
1275
+ function checkPathExt(path, options) {
1258
1276
  var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
1259
1277
  if (!pathext) return true;
1260
1278
  pathext = pathext.split(";");
1261
1279
  if (pathext.indexOf("") !== -1) return true;
1262
- for (var i$1 = 0; i$1 < pathext.length; i$1++) {
1263
- var p = pathext[i$1].toLowerCase();
1264
- if (p && path$10.substr(-p.length).toLowerCase() === p) return true;
1280
+ for (var i = 0; i < pathext.length; i++) {
1281
+ var p = pathext[i].toLowerCase();
1282
+ if (p && path.substr(-p.length).toLowerCase() === p) return true;
1265
1283
  }
1266
1284
  return false;
1267
1285
  }
1268
- function checkStat$1(stat, path$10, options) {
1286
+ function checkStat(stat, path, options) {
1269
1287
  if (!stat.isSymbolicLink() && !stat.isFile()) return false;
1270
- return checkPathExt(path$10, options);
1288
+ return checkPathExt(path, options);
1271
1289
  }
1272
- function isexe$3(path$10, options, cb) {
1273
- fs$2.stat(path$10, function(er, stat) {
1274
- cb(er, er ? false : checkStat$1(stat, path$10, options));
1290
+ function isexe(path, options, cb) {
1291
+ fs$2.stat(path, function(er, stat) {
1292
+ cb(er, er ? false : checkStat(stat, path, options));
1275
1293
  });
1276
1294
  }
1277
- function sync$2(path$10, options) {
1278
- return checkStat$1(fs$2.statSync(path$10), path$10, options);
1295
+ function sync(path, options) {
1296
+ return checkStat(fs$2.statSync(path), path, options);
1279
1297
  }
1280
- }) });
1281
-
1298
+ }));
1282
1299
  //#endregion
1283
1300
  //#region ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js
1284
- var require_mode = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js": ((exports, module) => {
1285
- module.exports = isexe$2;
1286
- isexe$2.sync = sync$1;
1301
+ var require_mode = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1302
+ module.exports = isexe;
1303
+ isexe.sync = sync;
1287
1304
  var fs$1 = require("fs");
1288
- function isexe$2(path$10, options, cb) {
1289
- fs$1.stat(path$10, function(er, stat) {
1305
+ function isexe(path, options, cb) {
1306
+ fs$1.stat(path, function(er, stat) {
1290
1307
  cb(er, er ? false : checkStat(stat, options));
1291
1308
  });
1292
1309
  }
1293
- function sync$1(path$10, options) {
1294
- return checkStat(fs$1.statSync(path$10), options);
1310
+ function sync(path, options) {
1311
+ return checkStat(fs$1.statSync(path), options);
1295
1312
  }
1296
1313
  function checkStat(stat, options) {
1297
1314
  return stat.isFile() && checkMode(stat, options);
@@ -1302,24 +1319,23 @@ var require_mode = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe@
1302
1319
  var gid = stat.gid;
1303
1320
  var myUid = options.uid !== void 0 ? options.uid : process.getuid && process.getuid();
1304
1321
  var myGid = options.gid !== void 0 ? options.gid : process.getgid && process.getgid();
1305
- var u$1 = parseInt("100", 8);
1322
+ var u = parseInt("100", 8);
1306
1323
  var g = parseInt("010", 8);
1307
- var o$1 = parseInt("001", 8);
1308
- var ug = u$1 | g;
1309
- return mod & o$1 || mod & g && gid === myGid || mod & u$1 && uid === myUid || mod & ug && myUid === 0;
1324
+ var o = parseInt("001", 8);
1325
+ var ug = u | g;
1326
+ return mod & o || mod & g && gid === myGid || mod & u && uid === myUid || mod & ug && myUid === 0;
1310
1327
  }
1311
- }) });
1312
-
1328
+ }));
1313
1329
  //#endregion
1314
1330
  //#region ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js
1315
- var require_isexe = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js": ((exports, module) => {
1331
+ var require_isexe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1316
1332
  require("fs");
1317
1333
  var core;
1318
1334
  if (process.platform === "win32" || global.TESTING_WINDOWS) core = require_windows();
1319
1335
  else core = require_mode();
1320
- module.exports = isexe$1;
1321
- isexe$1.sync = sync;
1322
- function isexe$1(path$10, options, cb) {
1336
+ module.exports = isexe;
1337
+ isexe.sync = sync;
1338
+ function isexe(path, options, cb) {
1323
1339
  if (typeof options === "function") {
1324
1340
  cb = options;
1325
1341
  options = {};
@@ -1327,13 +1343,13 @@ var require_isexe = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe
1327
1343
  if (!cb) {
1328
1344
  if (typeof Promise !== "function") throw new TypeError("callback not provided");
1329
1345
  return new Promise(function(resolve, reject) {
1330
- isexe$1(path$10, options || {}, function(er, is) {
1346
+ isexe(path, options || {}, function(er, is) {
1331
1347
  if (er) reject(er);
1332
1348
  else resolve(is);
1333
1349
  });
1334
1350
  });
1335
1351
  }
1336
- core(path$10, options || {}, function(er, is) {
1352
+ core(path, options || {}, function(er, is) {
1337
1353
  if (er) {
1338
1354
  if (er.code === "EACCES" || options && options.ignoreErrors) {
1339
1355
  er = null;
@@ -1343,19 +1359,18 @@ var require_isexe = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe
1343
1359
  cb(er, is);
1344
1360
  });
1345
1361
  }
1346
- function sync(path$10, options) {
1362
+ function sync(path, options) {
1347
1363
  try {
1348
- return core.sync(path$10, options || {});
1364
+ return core.sync(path, options || {});
1349
1365
  } catch (er) {
1350
1366
  if (options && options.ignoreErrors || er.code === "EACCES") return false;
1351
1367
  else throw er;
1352
1368
  }
1353
1369
  }
1354
- }) });
1355
-
1370
+ }));
1356
1371
  //#endregion
1357
1372
  //#region ../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
1358
- var require_which = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js": ((exports, module) => {
1373
+ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1359
1374
  const isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
1360
1375
  const path$9 = require("path");
1361
1376
  const COLON = isWindows ? ";" : ":";
@@ -1375,7 +1390,7 @@ var require_which = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/which
1375
1390
  pathExtExe
1376
1391
  };
1377
1392
  };
1378
- const which$1 = (cmd, opt, cb) => {
1393
+ const which = (cmd, opt, cb) => {
1379
1394
  if (typeof opt === "function") {
1380
1395
  cb = opt;
1381
1396
  opt = {};
@@ -1383,20 +1398,20 @@ var require_which = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/which
1383
1398
  if (!opt) opt = {};
1384
1399
  const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
1385
1400
  const found = [];
1386
- const step = (i$1) => new Promise((resolve, reject) => {
1387
- if (i$1 === pathEnv.length) return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
1388
- const ppRaw = pathEnv[i$1];
1401
+ const step = (i) => new Promise((resolve, reject) => {
1402
+ if (i === pathEnv.length) return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
1403
+ const ppRaw = pathEnv[i];
1389
1404
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
1390
1405
  const pCmd = path$9.join(pathPart, cmd);
1391
- resolve(subStep(!pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd, i$1, 0));
1406
+ resolve(subStep(!pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd, i, 0));
1392
1407
  });
1393
- const subStep = (p, i$1, ii) => new Promise((resolve, reject) => {
1394
- if (ii === pathExt.length) return resolve(step(i$1 + 1));
1408
+ const subStep = (p, i, ii) => new Promise((resolve, reject) => {
1409
+ if (ii === pathExt.length) return resolve(step(i + 1));
1395
1410
  const ext = pathExt[ii];
1396
1411
  isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
1397
1412
  if (!er && is) if (opt.all) found.push(p + ext);
1398
1413
  else return resolve(p + ext);
1399
- return resolve(subStep(p, i$1, ii + 1));
1414
+ return resolve(subStep(p, i, ii + 1));
1400
1415
  });
1401
1416
  });
1402
1417
  return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
@@ -1405,8 +1420,8 @@ var require_which = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/which
1405
1420
  opt = opt || {};
1406
1421
  const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
1407
1422
  const found = [];
1408
- for (let i$1 = 0; i$1 < pathEnv.length; i$1++) {
1409
- const ppRaw = pathEnv[i$1];
1423
+ for (let i = 0; i < pathEnv.length; i++) {
1424
+ const ppRaw = pathEnv[i];
1410
1425
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
1411
1426
  const pCmd = path$9.join(pathPart, cmd);
1412
1427
  const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
@@ -1422,25 +1437,23 @@ var require_which = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/which
1422
1437
  if (opt.nothrow) return null;
1423
1438
  throw getNotFoundError(cmd);
1424
1439
  };
1425
- module.exports = which$1;
1426
- which$1.sync = whichSync;
1427
- }) });
1428
-
1440
+ module.exports = which;
1441
+ which.sync = whichSync;
1442
+ }));
1429
1443
  //#endregion
1430
1444
  //#region ../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js
1431
- var require_path_key = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js": ((exports, module) => {
1432
- const pathKey$1 = (options = {}) => {
1445
+ var require_path_key = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1446
+ const pathKey = (options = {}) => {
1433
1447
  const environment = options.env || process.env;
1434
1448
  if ((options.platform || process.platform) !== "win32") return "PATH";
1435
1449
  return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
1436
1450
  };
1437
- module.exports = pathKey$1;
1438
- module.exports.default = pathKey$1;
1439
- }) });
1440
-
1451
+ module.exports = pathKey;
1452
+ module.exports.default = pathKey;
1453
+ }));
1441
1454
  //#endregion
1442
1455
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
1443
- var require_resolveCommand = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js": ((exports, module) => {
1456
+ var require_resolveCommand = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1444
1457
  const path$8 = require("path");
1445
1458
  const which = require_which();
1446
1459
  const getPathKey = require_path_key();
@@ -1464,15 +1477,14 @@ var require_resolveCommand = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
1464
1477
  if (resolved) resolved = path$8.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
1465
1478
  return resolved;
1466
1479
  }
1467
- function resolveCommand$1(parsed) {
1480
+ function resolveCommand(parsed) {
1468
1481
  return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
1469
1482
  }
1470
- module.exports = resolveCommand$1;
1471
- }) });
1472
-
1483
+ module.exports = resolveCommand;
1484
+ }));
1473
1485
  //#endregion
1474
1486
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js
1475
- var require_escape = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js": ((exports, module) => {
1487
+ var require_escape = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1476
1488
  const metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
1477
1489
  function escapeCommand(arg) {
1478
1490
  arg = arg.replace(metaCharsRegExp, "^$1");
@@ -1489,34 +1501,31 @@ var require_escape = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cros
1489
1501
  }
1490
1502
  module.exports.command = escapeCommand;
1491
1503
  module.exports.argument = escapeArgument;
1492
- }) });
1493
-
1504
+ }));
1494
1505
  //#endregion
1495
1506
  //#region ../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js
1496
- var require_shebang_regex = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js": ((exports, module) => {
1507
+ var require_shebang_regex = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1497
1508
  module.exports = /^#!(.*)/;
1498
- }) });
1499
-
1509
+ }));
1500
1510
  //#endregion
1501
1511
  //#region ../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js
1502
- var require_shebang_command = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js": ((exports, module) => {
1512
+ var require_shebang_command = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1503
1513
  const shebangRegex = require_shebang_regex();
1504
1514
  module.exports = (string = "") => {
1505
1515
  const match = string.match(shebangRegex);
1506
1516
  if (!match) return null;
1507
- const [path$10, argument] = match[0].replace(/#! ?/, "").split(" ");
1508
- const binary = path$10.split("/").pop();
1517
+ const [path, argument] = match[0].replace(/#! ?/, "").split(" ");
1518
+ const binary = path.split("/").pop();
1509
1519
  if (binary === "env") return argument;
1510
1520
  return argument ? `${binary} ${argument}` : binary;
1511
1521
  };
1512
- }) });
1513
-
1522
+ }));
1514
1523
  //#endregion
1515
1524
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
1516
- var require_readShebang = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js": ((exports, module) => {
1525
+ var require_readShebang = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1517
1526
  const fs = require("fs");
1518
1527
  const shebangCommand = require_shebang_command();
1519
- function readShebang$1(command) {
1528
+ function readShebang(command) {
1520
1529
  const size = 150;
1521
1530
  const buffer = Buffer.alloc(size);
1522
1531
  let fd;
@@ -1527,17 +1536,16 @@ var require_readShebang = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
1527
1536
  } catch (e) {}
1528
1537
  return shebangCommand(buffer.toString());
1529
1538
  }
1530
- module.exports = readShebang$1;
1531
- }) });
1532
-
1539
+ module.exports = readShebang;
1540
+ }));
1533
1541
  //#endregion
1534
1542
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
1535
- var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js": ((exports, module) => {
1543
+ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1536
1544
  const path$7 = require("path");
1537
1545
  const resolveCommand = require_resolveCommand();
1538
1546
  const escape = require_escape();
1539
1547
  const readShebang = require_readShebang();
1540
- const isWin$1 = process.platform === "win32";
1548
+ const isWin = process.platform === "win32";
1541
1549
  const isExecutableRegExp = /\.(?:com|exe)$/i;
1542
1550
  const isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
1543
1551
  function detectShebang(parsed) {
@@ -1551,7 +1559,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross
1551
1559
  return parsed.file;
1552
1560
  }
1553
1561
  function parseNonShell(parsed) {
1554
- if (!isWin$1) return parsed;
1562
+ if (!isWin) return parsed;
1555
1563
  const commandFile = detectShebang(parsed);
1556
1564
  const needsShell = !isExecutableRegExp.test(commandFile);
1557
1565
  if (parsed.options.forceShell || needsShell) {
@@ -1570,7 +1578,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross
1570
1578
  }
1571
1579
  return parsed;
1572
1580
  }
1573
- function parse$1(command, args, options) {
1581
+ function parse(command, args, options) {
1574
1582
  if (args && !Array.isArray(args)) {
1575
1583
  options = args;
1576
1584
  args = null;
@@ -1589,12 +1597,11 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross
1589
1597
  };
1590
1598
  return options.shell ? parsed : parseNonShell(parsed);
1591
1599
  }
1592
- module.exports = parse$1;
1593
- }) });
1594
-
1600
+ module.exports = parse;
1601
+ }));
1595
1602
  //#endregion
1596
1603
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js
1597
- var require_enoent = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js": ((exports, module) => {
1604
+ var require_enoent = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1598
1605
  const isWin = process.platform === "win32";
1599
1606
  function notFoundError(original, syscall) {
1600
1607
  return Object.assign(/* @__PURE__ */ new Error(`${syscall} ${original.command} ENOENT`), {
@@ -1605,15 +1612,15 @@ var require_enoent = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cros
1605
1612
  spawnargs: original.args
1606
1613
  });
1607
1614
  }
1608
- function hookChildProcess(cp$1, parsed) {
1615
+ function hookChildProcess(cp, parsed) {
1609
1616
  if (!isWin) return;
1610
- const originalEmit = cp$1.emit;
1611
- cp$1.emit = function(name, arg1) {
1617
+ const originalEmit = cp.emit;
1618
+ cp.emit = function(name, arg1) {
1612
1619
  if (name === "exit") {
1613
1620
  const err = verifyENOENT(arg1, parsed);
1614
- if (err) return originalEmit.call(cp$1, "error", err);
1621
+ if (err) return originalEmit.call(cp, "error", err);
1615
1622
  }
1616
- return originalEmit.apply(cp$1, arguments);
1623
+ return originalEmit.apply(cp, arguments);
1617
1624
  };
1618
1625
  }
1619
1626
  function verifyENOENT(status, parsed) {
@@ -1630,45 +1637,37 @@ var require_enoent = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cros
1630
1637
  verifyENOENTSync,
1631
1638
  notFoundError
1632
1639
  };
1633
- }) });
1634
-
1640
+ }));
1635
1641
  //#endregion
1636
- //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js
1637
- var require_cross_spawn = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js": ((exports, module) => {
1642
+ //#region ../../node_modules/.pnpm/path-key@4.0.0/node_modules/path-key/index.js
1643
+ var import_cross_spawn = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
1638
1644
  const cp = require("child_process");
1639
1645
  const parse = require_parse();
1640
1646
  const enoent = require_enoent();
1641
- function spawn$1(command, args, options) {
1647
+ function spawn(command, args, options) {
1642
1648
  const parsed = parse(command, args, options);
1643
1649
  const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
1644
1650
  enoent.hookChildProcess(spawned, parsed);
1645
1651
  return spawned;
1646
1652
  }
1647
- function spawnSync$1(command, args, options) {
1653
+ function spawnSync(command, args, options) {
1648
1654
  const parsed = parse(command, args, options);
1649
1655
  const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
1650
1656
  result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
1651
1657
  return result;
1652
1658
  }
1653
- module.exports = spawn$1;
1654
- module.exports.spawn = spawn$1;
1655
- module.exports.sync = spawnSync$1;
1659
+ module.exports = spawn;
1660
+ module.exports.spawn = spawn;
1661
+ module.exports.sync = spawnSync;
1656
1662
  module.exports._parse = parse;
1657
1663
  module.exports._enoent = enoent;
1658
- }) });
1659
-
1660
- //#endregion
1661
- //#region ../../node_modules/.pnpm/path-key@4.0.0/node_modules/path-key/index.js
1662
- var import_cross_spawn = /* @__PURE__ */ __toESM(require_cross_spawn(), 1);
1664
+ })))(), 1);
1663
1665
  function pathKey(options = {}) {
1664
- const { env = process.env, platform: platform$1 = process.platform } = options;
1665
- if (platform$1 !== "win32") return "PATH";
1666
+ const { env = process.env, platform = process.platform } = options;
1667
+ if (platform !== "win32") return "PATH";
1666
1668
  return Object.keys(env).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
1667
1669
  }
1668
-
1669
- //#endregion
1670
- //#region ../../node_modules/.pnpm/unicorn-magic@0.3.0/node_modules/unicorn-magic/node.js
1671
- const execFileOriginal = (0, node_util.promisify)(node_child_process.execFile);
1670
+ (0, node_util.promisify)(node_child_process.execFile);
1672
1671
  function toPath(urlOrPath) {
1673
1672
  return urlOrPath instanceof URL ? (0, node_url.fileURLToPath)(urlOrPath) : urlOrPath;
1674
1673
  }
@@ -1683,16 +1682,14 @@ function traversePathUp(startPath) {
1683
1682
  }
1684
1683
  } };
1685
1684
  }
1686
- const TEN_MEGABYTES_IN_BYTES = 10 * 1024 * 1024;
1687
-
1688
1685
  //#endregion
1689
1686
  //#region ../../node_modules/.pnpm/npm-run-path@6.0.0/node_modules/npm-run-path/index.js
1690
- const npmRunPath = ({ cwd = node_process.default.cwd(), path: pathOption = node_process.default.env[pathKey()], preferLocal = true, execPath: execPath$1 = node_process.default.execPath, addExecPath = true } = {}) => {
1687
+ const npmRunPath = ({ cwd = node_process.default.cwd(), path: pathOption = node_process.default.env[pathKey()], preferLocal = true, execPath = node_process.default.execPath, addExecPath = true } = {}) => {
1691
1688
  const cwdPath = node_path.default.resolve(toPath(cwd));
1692
1689
  const result = [];
1693
1690
  const pathParts = pathOption.split(node_path.default.delimiter);
1694
1691
  if (preferLocal) applyPreferLocal(result, pathParts, cwdPath);
1695
- if (addExecPath) applyExecPath(result, pathParts, execPath$1, cwdPath);
1692
+ if (addExecPath) applyExecPath(result, pathParts, execPath, cwdPath);
1696
1693
  return pathOption === "" || pathOption === node_path.default.delimiter ? `${result.join(node_path.default.delimiter)}${pathOption}` : [...result, pathOption].join(node_path.default.delimiter);
1697
1694
  };
1698
1695
  const applyPreferLocal = (result, pathParts, cwdPath) => {
@@ -1701,18 +1698,17 @@ const applyPreferLocal = (result, pathParts, cwdPath) => {
1701
1698
  if (!pathParts.includes(pathPart)) result.push(pathPart);
1702
1699
  }
1703
1700
  };
1704
- const applyExecPath = (result, pathParts, execPath$1, cwdPath) => {
1705
- const pathPart = node_path.default.resolve(cwdPath, toPath(execPath$1), "..");
1701
+ const applyExecPath = (result, pathParts, execPath, cwdPath) => {
1702
+ const pathPart = node_path.default.resolve(cwdPath, toPath(execPath), "..");
1706
1703
  if (!pathParts.includes(pathPart)) result.push(pathPart);
1707
1704
  };
1708
- const npmRunPathEnv = ({ env = node_process.default.env,...options } = {}) => {
1705
+ const npmRunPathEnv = ({ env = node_process.default.env, ...options } = {}) => {
1709
1706
  env = { ...env };
1710
1707
  const pathName = pathKey({ env });
1711
1708
  options.path = env[pathName];
1712
1709
  env[pathName] = npmRunPath(options);
1713
1710
  return env;
1714
1711
  };
1715
-
1716
1712
  //#endregion
1717
1713
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/final-error.js
1718
1714
  const getFinalError = (originalError, message, isSync) => {
@@ -1733,18 +1729,17 @@ const setErrorName = (ErrorClass, value) => {
1733
1729
  configurable: false
1734
1730
  });
1735
1731
  };
1736
- const isExecaError = (error$1) => isErrorInstance(error$1) && execaErrorSymbol in error$1;
1732
+ const isExecaError = (error) => isErrorInstance(error) && execaErrorSymbol in error;
1737
1733
  const execaErrorSymbol = Symbol("isExecaError");
1738
1734
  const isErrorInstance = (value) => Object.prototype.toString.call(value) === "[object Error]";
1739
1735
  var ExecaError = class extends Error {};
1740
1736
  setErrorName(ExecaError, ExecaError.name);
1741
1737
  var ExecaSyncError = class extends Error {};
1742
1738
  setErrorName(ExecaSyncError, ExecaSyncError.name);
1743
-
1744
1739
  //#endregion
1745
- //#region ../../node_modules/.pnpm/human-signals@8.0.0/node_modules/human-signals/build/src/realtime.js
1740
+ //#region ../../node_modules/.pnpm/human-signals@8.0.1/node_modules/human-signals/build/src/realtime.js
1746
1741
  const getRealtimeSignals = () => {
1747
- const length = SIGRTMAX - SIGRTMIN + 1;
1742
+ const length = 64 - SIGRTMIN + 1;
1748
1743
  return Array.from({ length }, getRealtimeSignal);
1749
1744
  };
1750
1745
  const getRealtimeSignal = (value, index) => ({
@@ -1755,10 +1750,8 @@ const getRealtimeSignal = (value, index) => ({
1755
1750
  standard: "posix"
1756
1751
  });
1757
1752
  const SIGRTMIN = 34;
1758
- const SIGRTMAX = 64;
1759
-
1760
1753
  //#endregion
1761
- //#region ../../node_modules/.pnpm/human-signals@8.0.0/node_modules/human-signals/build/src/core.js
1754
+ //#region ../../node_modules/.pnpm/human-signals@8.0.1/node_modules/human-signals/build/src/core.js
1762
1755
  const SIGNALS = [
1763
1756
  {
1764
1757
  name: "SIGHUP",
@@ -2030,9 +2023,8 @@ const SIGNALS = [
2030
2023
  standard: "other"
2031
2024
  }
2032
2025
  ];
2033
-
2034
2026
  //#endregion
2035
- //#region ../../node_modules/.pnpm/human-signals@8.0.0/node_modules/human-signals/build/src/signals.js
2027
+ //#region ../../node_modules/.pnpm/human-signals@8.0.1/node_modules/human-signals/build/src/signals.js
2036
2028
  const getSignals = () => {
2037
2029
  const realtimeSignals = getRealtimeSignals();
2038
2030
  return [...SIGNALS, ...realtimeSignals].map(normalizeSignal$1);
@@ -2050,12 +2042,11 @@ const normalizeSignal$1 = ({ name, number: defaultNumber, description, action, f
2050
2042
  standard
2051
2043
  };
2052
2044
  };
2053
-
2054
2045
  //#endregion
2055
- //#region ../../node_modules/.pnpm/human-signals@8.0.0/node_modules/human-signals/build/src/main.js
2046
+ //#region ../../node_modules/.pnpm/human-signals@8.0.1/node_modules/human-signals/build/src/main.js
2056
2047
  const getSignalsByName = () => {
2057
- const signals$1 = getSignals();
2058
- return Object.fromEntries(signals$1.map(getSignalByName));
2048
+ const signals = getSignals();
2049
+ return Object.fromEntries(signals.map(getSignalByName));
2059
2050
  };
2060
2051
  const getSignalByName = ({ name, number, description, supported, action, forced, standard }) => [name, {
2061
2052
  name,
@@ -2068,13 +2059,12 @@ const getSignalByName = ({ name, number, description, supported, action, forced,
2068
2059
  }];
2069
2060
  const signalsByName = getSignalsByName();
2070
2061
  const getSignalsByNumber = () => {
2071
- const signals$1 = getSignals();
2072
- const length = SIGRTMAX + 1;
2073
- const signalsA = Array.from({ length }, (value, number) => getSignalByNumber(number, signals$1));
2062
+ const signals = getSignals();
2063
+ const signalsA = Array.from({ length: 65 }, (value, number) => getSignalByNumber(number, signals));
2074
2064
  return Object.assign({}, ...signalsA);
2075
2065
  };
2076
- const getSignalByNumber = (number, signals$1) => {
2077
- const signal = findSignalByNumber(number, signals$1);
2066
+ const getSignalByNumber = (number, signals) => {
2067
+ const signal = findSignalByNumber(number, signals);
2078
2068
  if (signal === void 0) return {};
2079
2069
  const { name, description, supported, action, forced, standard } = signal;
2080
2070
  return { [number]: {
@@ -2087,13 +2077,12 @@ const getSignalByNumber = (number, signals$1) => {
2087
2077
  standard
2088
2078
  } };
2089
2079
  };
2090
- const findSignalByNumber = (number, signals$1) => {
2091
- const signal = signals$1.find(({ name }) => node_os.constants.signals[name] === number);
2080
+ const findSignalByNumber = (number, signals) => {
2081
+ const signal = signals.find(({ name }) => node_os.constants.signals[name] === number);
2092
2082
  if (signal !== void 0) return signal;
2093
- return signals$1.find((signalA) => signalA.number === number);
2083
+ return signals.find((signalA) => signalA.number === number);
2094
2084
  };
2095
- const signalsByNumber = getSignalsByNumber();
2096
-
2085
+ getSignalsByNumber();
2097
2086
  //#endregion
2098
2087
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/terminate/signal.js
2099
2088
  const normalizeKillSignal = (killSignal) => {
@@ -2123,7 +2112,6 @@ Available signal numbers: ${getAvailableSignalIntegers()}.`;
2123
2112
  const getAvailableSignalNames = () => Object.keys(node_os.constants.signals).sort().map((signalName) => `'${signalName}'`).join(", ");
2124
2113
  const getAvailableSignalIntegers = () => [...new Set(Object.values(node_os.constants.signals).sort((signalInteger, signalIntegerTwo) => signalInteger - signalIntegerTwo))].join(", ");
2125
2114
  const getSignalDescription = (signal) => signalsByName[signal].description;
2126
-
2127
2115
  //#endregion
2128
2116
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/terminate/kill.js
2129
2117
  const normalizeForceKillAfterDelay = (forceKillAfterDelay) => {
@@ -2134,8 +2122,8 @@ const normalizeForceKillAfterDelay = (forceKillAfterDelay) => {
2134
2122
  };
2135
2123
  const DEFAULT_FORCE_KILL_TIMEOUT = 1e3 * 5;
2136
2124
  const subprocessKill = ({ kill, options: { forceKillAfterDelay, killSignal }, onInternalError, context, controller }, signalOrError, errorArgument) => {
2137
- const { signal, error: error$1 } = parseKillArguments(signalOrError, errorArgument, killSignal);
2138
- emitKillError(error$1, onInternalError);
2125
+ const { signal, error } = parseKillArguments(signalOrError, errorArgument, killSignal);
2126
+ emitKillError(error, onInternalError);
2139
2127
  const killResult = kill(signal);
2140
2128
  setKillTimeout({
2141
2129
  kill,
@@ -2149,16 +2137,16 @@ const subprocessKill = ({ kill, options: { forceKillAfterDelay, killSignal }, on
2149
2137
  return killResult;
2150
2138
  };
2151
2139
  const parseKillArguments = (signalOrError, errorArgument, killSignal) => {
2152
- const [signal = killSignal, error$1] = isErrorInstance(signalOrError) ? [void 0, signalOrError] : [signalOrError, errorArgument];
2140
+ const [signal = killSignal, error] = isErrorInstance(signalOrError) ? [void 0, signalOrError] : [signalOrError, errorArgument];
2153
2141
  if (typeof signal !== "string" && !Number.isInteger(signal)) throw new TypeError(`The first argument must be an error instance or a signal name string/integer: ${String(signal)}`);
2154
- if (error$1 !== void 0 && !isErrorInstance(error$1)) throw new TypeError(`The second argument is optional. If specified, it must be an error instance: ${error$1}`);
2142
+ if (error !== void 0 && !isErrorInstance(error)) throw new TypeError(`The second argument is optional. If specified, it must be an error instance: ${error}`);
2155
2143
  return {
2156
2144
  signal: normalizeSignalArgument(signal),
2157
- error: error$1
2145
+ error
2158
2146
  };
2159
2147
  };
2160
- const emitKillError = (error$1, onInternalError) => {
2161
- if (error$1 !== void 0) onInternalError.reject(error$1);
2148
+ const emitKillError = (error, onInternalError) => {
2149
+ if (error !== void 0) onInternalError.reject(error);
2162
2150
  };
2163
2151
  const setKillTimeout = async ({ kill, signal, forceKillAfterDelay, killSignal, killResult, context, controller }) => {
2164
2152
  if (signal === killSignal && killResult) killOnTimeout({
@@ -2175,13 +2163,11 @@ const killOnTimeout = async ({ kill, forceKillAfterDelay, context, controllerSig
2175
2163
  if (kill("SIGKILL")) context.isForcefullyTerminated ??= true;
2176
2164
  } catch {}
2177
2165
  };
2178
-
2179
2166
  //#endregion
2180
2167
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/utils/abort-signal.js
2181
2168
  const onAbortedSignal = async (mainSignal, stopSignal) => {
2182
2169
  if (!mainSignal.aborted) await (0, node_events.once)(mainSignal, "abort", { signal: stopSignal });
2183
2170
  };
2184
-
2185
2171
  //#endregion
2186
2172
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/terminate/cancel.js
2187
2173
  const validateCancelSignal = ({ cancelSignal }) => {
@@ -2194,18 +2180,17 @@ const terminateOnCancel = async (subprocess, cancelSignal, context, { signal })
2194
2180
  subprocess.kill();
2195
2181
  throw cancelSignal.reason;
2196
2182
  };
2197
-
2198
2183
  //#endregion
2199
2184
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/validation.js
2200
- const validateIpcMethod = ({ methodName, isSubprocess, ipc, isConnected: isConnected$1 }) => {
2185
+ const validateIpcMethod = ({ methodName, isSubprocess, ipc, isConnected }) => {
2201
2186
  validateIpcOption(methodName, isSubprocess, ipc);
2202
- validateConnection(methodName, isSubprocess, isConnected$1);
2187
+ validateConnection(methodName, isSubprocess, isConnected);
2203
2188
  };
2204
2189
  const validateIpcOption = (methodName, isSubprocess, ipc) => {
2205
2190
  if (!ipc) throw new Error(`${getMethodName(methodName, isSubprocess)} can only be used if the \`ipc\` option is \`true\`.`);
2206
2191
  };
2207
- const validateConnection = (methodName, isSubprocess, isConnected$1) => {
2208
- if (!isConnected$1) throw new Error(`${getMethodName(methodName, isSubprocess)} cannot be used: the ${getOtherProcessName(isSubprocess)} has already exited or disconnected.`);
2192
+ const validateConnection = (methodName, isSubprocess, isConnected) => {
2193
+ if (!isConnected) throw new Error(`${getMethodName(methodName, isSubprocess)} cannot be used: the ${getOtherProcessName(isSubprocess)} has already exited or disconnected.`);
2209
2194
  };
2210
2195
  const throwOnEarlyDisconnect = (isSubprocess) => {
2211
2196
  throw new Error(`${getMethodName("getOneMessage", isSubprocess)} could not complete: the ${getOtherProcessName(isSubprocess)} exited or disconnected.`);
@@ -2219,7 +2204,7 @@ const [receivedMessage] = await Promise.all([
2219
2204
  ${getMethodName("sendMessage", isSubprocess, "message, {strict: true}")},
2220
2205
  ]);`);
2221
2206
  };
2222
- const getStrictResponseError = (error$1, isSubprocess) => new Error(`${getMethodName("sendMessage", isSubprocess)} failed when sending an acknowledgment response to the ${getOtherProcessName(isSubprocess)}.`, { cause: error$1 });
2207
+ const getStrictResponseError = (error, isSubprocess) => new Error(`${getMethodName("sendMessage", isSubprocess)} failed when sending an acknowledgment response to the ${getOtherProcessName(isSubprocess)}.`, { cause: error });
2223
2208
  const throwOnMissingStrict = (isSubprocess) => {
2224
2209
  throw new Error(`${getMethodName("sendMessage", isSubprocess)} failed: the ${getOtherProcessName(isSubprocess)} is not listening to incoming messages.`);
2225
2210
  };
@@ -2230,11 +2215,11 @@ const getAbortDisconnectError = () => /* @__PURE__ */ new Error(`\`cancelSignal\
2230
2215
  const throwOnMissingParent = () => {
2231
2216
  throw new Error("`getCancelSignal()` cannot be used without setting the `cancelSignal` subprocess option.");
2232
2217
  };
2233
- const handleEpipeError = ({ error: error$1, methodName, isSubprocess }) => {
2234
- if (error$1.code === "EPIPE") throw new Error(`${getMethodName(methodName, isSubprocess)} cannot be used: the ${getOtherProcessName(isSubprocess)} is disconnecting.`, { cause: error$1 });
2218
+ const handleEpipeError = ({ error, methodName, isSubprocess }) => {
2219
+ if (error.code === "EPIPE") throw new Error(`${getMethodName(methodName, isSubprocess)} cannot be used: the ${getOtherProcessName(isSubprocess)} is disconnecting.`, { cause: error });
2235
2220
  };
2236
- const handleSerializationError = ({ error: error$1, methodName, isSubprocess, message }) => {
2237
- if (isSerializationError(error$1)) throw new Error(`${getMethodName(methodName, isSubprocess)}'s argument type is invalid: the message cannot be serialized: ${String(message)}.`, { cause: error$1 });
2221
+ const handleSerializationError = ({ error, methodName, isSubprocess, message }) => {
2222
+ if (isSerializationError(error)) throw new Error(`${getMethodName(methodName, isSubprocess)}'s argument type is invalid: the message cannot be serialized: ${String(message)}.`, { cause: error });
2238
2223
  };
2239
2224
  const isSerializationError = ({ code, message }) => SERIALIZATION_ERROR_CODES.has(code) || SERIALIZATION_ERROR_MESSAGES.some((serializationErrorMessage) => message.includes(serializationErrorMessage));
2240
2225
  const SERIALIZATION_ERROR_CODES = new Set(["ERR_MISSING_ARGS", "ERR_INVALID_ARG_TYPE"]);
@@ -2249,7 +2234,6 @@ const getOtherProcessName = (isSubprocess) => isSubprocess ? "parent process" :
2249
2234
  const disconnect = (anyProcess) => {
2250
2235
  if (anyProcess.connected) anyProcess.disconnect();
2251
2236
  };
2252
-
2253
2237
  //#endregion
2254
2238
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/utils/deferred.js
2255
2239
  const createDeferred = () => {
@@ -2262,7 +2246,6 @@ const createDeferred = () => {
2262
2246
  });
2263
2247
  return Object.assign(promise, methods);
2264
2248
  };
2265
-
2266
2249
  //#endregion
2267
2250
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/fd-options.js
2268
2251
  const getToStream = (destination, to = "stdin") => {
@@ -2339,7 +2322,6 @@ const serializeOptionValue = (value) => {
2339
2322
  if (typeof value === "string") return `'${value}'`;
2340
2323
  return typeof value === "number" ? `${value}` : "Stream";
2341
2324
  };
2342
-
2343
2325
  //#endregion
2344
2326
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/utils/max-listeners.js
2345
2327
  const incrementMaxListeners = (eventEmitter, maxListenersIncrement, signal) => {
@@ -2350,7 +2332,6 @@ const incrementMaxListeners = (eventEmitter, maxListenersIncrement, signal) => {
2350
2332
  eventEmitter.setMaxListeners(eventEmitter.getMaxListeners() - maxListenersIncrement);
2351
2333
  });
2352
2334
  };
2353
-
2354
2335
  //#endregion
2355
2336
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/reference.js
2356
2337
  const addReference = (channel, reference) => {
@@ -2377,7 +2358,6 @@ const redoAddedReferences = (channel, isSubprocess) => {
2377
2358
  addReferenceCount(channel);
2378
2359
  }
2379
2360
  };
2380
-
2381
2361
  //#endregion
2382
2362
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/incoming.js
2383
2363
  const onMessage = async ({ anyProcess, channel, isSubprocess, ipcEmitter }, wrappedMessage) => {
@@ -2411,7 +2391,6 @@ const onDisconnect = async ({ anyProcess, channel, isSubprocess, ipcEmitter, bou
2411
2391
  ipcEmitter.emit("disconnect");
2412
2392
  };
2413
2393
  const INCOMING_MESSAGES = /* @__PURE__ */ new WeakMap();
2414
-
2415
2394
  //#endregion
2416
2395
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/forward.js
2417
2396
  const getIpcEmitter = (anyProcess, channel, isSubprocess) => {
@@ -2449,7 +2428,6 @@ const isConnected = (anyProcess) => {
2449
2428
  const ipcEmitter = IPC_EMITTERS.get(anyProcess);
2450
2429
  return ipcEmitter === void 0 ? anyProcess.channel !== null : ipcEmitter.connected;
2451
2430
  };
2452
-
2453
2431
  //#endregion
2454
2432
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/strict.js
2455
2433
  const handleSendStrict = ({ anyProcess, channel, isSubprocess, message, strict }) => {
@@ -2485,8 +2463,8 @@ const handleStrictRequest = async ({ wrappedMessage, anyProcess, channel, isSubp
2485
2463
  isSubprocess,
2486
2464
  ipc: true
2487
2465
  }, response);
2488
- } catch (error$1) {
2489
- ipcEmitter.emit("strict:error", error$1);
2466
+ } catch (error) {
2467
+ ipcEmitter.emit("strict:error", error);
2490
2468
  }
2491
2469
  return message;
2492
2470
  };
@@ -2521,7 +2499,6 @@ const throwOnDisconnect$1 = async (anyProcess, isSubprocess, { signal }) => {
2521
2499
  };
2522
2500
  const REQUEST_TYPE = "execa:ipc:request";
2523
2501
  const RESPONSE_TYPE = "execa:ipc:response";
2524
-
2525
2502
  //#endregion
2526
2503
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/outgoing.js
2527
2504
  const startSendMessage = (anyProcess, wrappedMessage, strict) => {
@@ -2551,7 +2528,6 @@ const waitForOutgoingMessages = async (anyProcess, ipcEmitter, wrappedMessage) =
2551
2528
  const OUTGOING_MESSAGES = /* @__PURE__ */ new WeakMap();
2552
2529
  const hasMessageListeners = (anyProcess, ipcEmitter) => ipcEmitter.listenerCount("message") > getMinListenerCount(anyProcess);
2553
2530
  const getMinListenerCount = (anyProcess) => SUBPROCESS_OPTIONS.has(anyProcess) && !getFdSpecificValue(SUBPROCESS_OPTIONS.get(anyProcess).options.buffer, "ipc") ? 1 : 0;
2554
-
2555
2531
  //#endregion
2556
2532
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/send.js
2557
2533
  const sendMessage$1 = ({ anyProcess, channel, isSubprocess, ipc }, message, { strict = false } = {}) => {
@@ -2588,9 +2564,9 @@ const sendMessageAsync = async ({ anyProcess, channel, methodName, isSubprocess,
2588
2564
  wrappedMessage,
2589
2565
  message
2590
2566
  });
2591
- } catch (error$1) {
2567
+ } catch (error) {
2592
2568
  disconnect(anyProcess);
2593
- throw error$1;
2569
+ throw error;
2594
2570
  } finally {
2595
2571
  endSendMessage(outgoingMessagesState);
2596
2572
  }
@@ -2599,19 +2575,19 @@ const sendOneMessage = async ({ anyProcess, methodName, isSubprocess, wrappedMes
2599
2575
  const sendMethod = getSendMethod(anyProcess);
2600
2576
  try {
2601
2577
  await Promise.all([waitForStrictResponse(wrappedMessage, anyProcess, isSubprocess), sendMethod(wrappedMessage)]);
2602
- } catch (error$1) {
2578
+ } catch (error) {
2603
2579
  handleEpipeError({
2604
- error: error$1,
2580
+ error,
2605
2581
  methodName,
2606
2582
  isSubprocess
2607
2583
  });
2608
2584
  handleSerializationError({
2609
- error: error$1,
2585
+ error,
2610
2586
  methodName,
2611
2587
  isSubprocess,
2612
2588
  message
2613
2589
  });
2614
- throw error$1;
2590
+ throw error;
2615
2591
  }
2616
2592
  };
2617
2593
  const getSendMethod = (anyProcess) => {
@@ -2621,7 +2597,6 @@ const getSendMethod = (anyProcess) => {
2621
2597
  return sendMethod;
2622
2598
  };
2623
2599
  const PROCESS_SEND_METHODS = /* @__PURE__ */ new WeakMap();
2624
-
2625
2600
  //#endregion
2626
2601
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/graceful.js
2627
2602
  const sendAbort = (subprocess, message) => {
@@ -2672,7 +2647,6 @@ const abortOnDisconnect = () => {
2672
2647
  cancelController.abort(getAbortDisconnectError());
2673
2648
  };
2674
2649
  const cancelController = new AbortController();
2675
-
2676
2650
  //#endregion
2677
2651
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/terminate/graceful.js
2678
2652
  const validateGracefulCancel = ({ gracefulCancel, cancelSignal, ipc, serialization }) => {
@@ -2702,16 +2676,15 @@ const sendOnAbort = async ({ subprocess, cancelSignal, forceKillAfterDelay, cont
2702
2676
  };
2703
2677
  const getReason = ({ reason }) => {
2704
2678
  if (!(reason instanceof DOMException)) return reason;
2705
- const error$1 = new Error(reason.message);
2706
- Object.defineProperty(error$1, "stack", {
2679
+ const error = new Error(reason.message);
2680
+ Object.defineProperty(error, "stack", {
2707
2681
  value: reason.stack,
2708
2682
  enumerable: false,
2709
2683
  configurable: true,
2710
2684
  writable: true
2711
2685
  });
2712
- return error$1;
2686
+ return error;
2713
2687
  };
2714
-
2715
2688
  //#endregion
2716
2689
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/terminate/timeout.js
2717
2690
  const validateTimeout = ({ timeout }) => {
@@ -2724,7 +2697,6 @@ const killAfterTimeout = async (subprocess, timeout, context, { signal }) => {
2724
2697
  subprocess.kill();
2725
2698
  throw new DiscardedError();
2726
2699
  };
2727
-
2728
2700
  //#endregion
2729
2701
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/node.js
2730
2702
  const mapNode = ({ options }) => {
@@ -2734,7 +2706,7 @@ const mapNode = ({ options }) => {
2734
2706
  node: true
2735
2707
  } };
2736
2708
  };
2737
- const handleNodeOption = (file, commandArguments, { node: shouldHandleNode = false, nodePath = node_process.execPath, nodeOptions = node_process.execArgv.filter((nodeOption) => !nodeOption.startsWith("--inspect")), cwd, execPath: formerNodePath,...options }) => {
2709
+ const handleNodeOption = (file, commandArguments, { node: shouldHandleNode = false, nodePath = node_process.execPath, nodeOptions = node_process.execArgv.filter((nodeOption) => !nodeOption.startsWith("--inspect")), cwd, execPath: formerNodePath, ...options }) => {
2738
2710
  if (formerNodePath !== void 0) throw new TypeError("The \"execPath\" option has been removed. Please use the \"nodePath\" option instead.");
2739
2711
  const normalizedNodePath = safeNormalizeFileUrl(nodePath, "The \"nodePath\" option");
2740
2712
  const resolvedNodePath = node_path.default.resolve(cwd, normalizedNodePath);
@@ -2764,7 +2736,6 @@ const handleNodeOption = (file, commandArguments, { node: shouldHandleNode = fal
2764
2736
  }
2765
2737
  ];
2766
2738
  };
2767
-
2768
2739
  //#endregion
2769
2740
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/ipc-input.js
2770
2741
  const validateIpcInputOption = ({ ipcInput, ipc, serialization }) => {
@@ -2775,15 +2746,15 @@ const validateIpcInputOption = ({ ipcInput, ipc, serialization }) => {
2775
2746
  const validateAdvancedInput = (ipcInput) => {
2776
2747
  try {
2777
2748
  (0, node_v8.serialize)(ipcInput);
2778
- } catch (error$1) {
2779
- throw new Error("The `ipcInput` option is not serializable with a structured clone.", { cause: error$1 });
2749
+ } catch (error) {
2750
+ throw new Error("The `ipcInput` option is not serializable with a structured clone.", { cause: error });
2780
2751
  }
2781
2752
  };
2782
2753
  const validateJsonInput = (ipcInput) => {
2783
2754
  try {
2784
2755
  JSON.stringify(ipcInput);
2785
- } catch (error$1) {
2786
- throw new Error("The `ipcInput` option is not serializable with JSON.", { cause: error$1 });
2756
+ } catch (error) {
2757
+ throw new Error("The `ipcInput` option is not serializable with JSON.", { cause: error });
2787
2758
  }
2788
2759
  };
2789
2760
  const validateIpcInput = {
@@ -2794,7 +2765,6 @@ const sendIpcInput = async (subprocess, ipcInput) => {
2794
2765
  if (ipcInput === void 0) return;
2795
2766
  await subprocess.sendMessage(ipcInput);
2796
2767
  };
2797
-
2798
2768
  //#endregion
2799
2769
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/encoding-option.js
2800
2770
  const validateEncoding = ({ encoding }) => {
@@ -2802,7 +2772,7 @@ const validateEncoding = ({ encoding }) => {
2802
2772
  const correctEncoding = getCorrectEncoding(encoding);
2803
2773
  if (correctEncoding !== void 0) throw new TypeError(`Invalid option \`encoding: ${serializeEncoding(encoding)}\`.
2804
2774
  Please rename it to ${serializeEncoding(correctEncoding)}.`);
2805
- const correctEncodings = [...ENCODINGS].map((correctEncoding$1) => serializeEncoding(correctEncoding$1)).join(", ");
2775
+ const correctEncodings = [...ENCODINGS].map((correctEncoding) => serializeEncoding(correctEncoding)).join(", ");
2806
2776
  throw new TypeError(`Invalid option \`encoding: ${serializeEncoding(encoding)}\`.
2807
2777
  Please rename it to one of: ${correctEncodings}.`);
2808
2778
  };
@@ -2831,7 +2801,6 @@ const ENCODING_ALIASES = {
2831
2801
  binary: "latin1"
2832
2802
  };
2833
2803
  const serializeEncoding = (encoding) => typeof encoding === "string" ? `"${encoding}"` : String(encoding);
2834
-
2835
2804
  //#endregion
2836
2805
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/cwd.js
2837
2806
  const normalizeCwd = (cwd = getDefaultCwd()) => {
@@ -2841,9 +2810,9 @@ const normalizeCwd = (cwd = getDefaultCwd()) => {
2841
2810
  const getDefaultCwd = () => {
2842
2811
  try {
2843
2812
  return node_process.default.cwd();
2844
- } catch (error$1) {
2845
- error$1.message = `The current directory does not exist.\n${error$1.message}`;
2846
- throw error$1;
2813
+ } catch (error) {
2814
+ error.message = `The current directory does not exist.\n${error.message}`;
2815
+ throw error;
2847
2816
  }
2848
2817
  };
2849
2818
  const fixCwdError = (originalMessage, cwd) => {
@@ -2851,13 +2820,12 @@ const fixCwdError = (originalMessage, cwd) => {
2851
2820
  let cwdStat;
2852
2821
  try {
2853
2822
  cwdStat = (0, node_fs.statSync)(cwd);
2854
- } catch (error$1) {
2855
- return `The "cwd" option is invalid: ${cwd}.\n${error$1.message}\n${originalMessage}`;
2823
+ } catch (error) {
2824
+ return `The "cwd" option is invalid: ${cwd}.\n${error.message}\n${originalMessage}`;
2856
2825
  }
2857
2826
  if (!cwdStat.isDirectory()) return `The "cwd" option is not a directory: ${cwd}.\n${originalMessage}`;
2858
2827
  return originalMessage;
2859
2828
  };
2860
-
2861
2829
  //#endregion
2862
2830
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/options.js
2863
2831
  const normalizeOptions = (filePath, rawArguments, rawOptions) => {
@@ -2882,7 +2850,7 @@ const normalizeOptions = (filePath, rawArguments, rawOptions) => {
2882
2850
  options
2883
2851
  };
2884
2852
  };
2885
- const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDir: localDirectory = cwd, encoding = "utf8", reject = true, cleanup = true, all = false, windowsHide = true, killSignal = "SIGTERM", forceKillAfterDelay = true, gracefulCancel = false, ipcInput, ipc = ipcInput !== void 0 || gracefulCancel, serialization = "advanced",...options }) => ({
2853
+ const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDir: localDirectory = cwd, encoding = "utf8", reject = true, cleanup = true, all = false, windowsHide = true, killSignal = "SIGTERM", forceKillAfterDelay = true, gracefulCancel = false, ipcInput, ipc = ipcInput !== void 0 || gracefulCancel, serialization = "advanced", ...options }) => ({
2886
2854
  ...options,
2887
2855
  extendEnv,
2888
2856
  preferLocal,
@@ -2914,7 +2882,6 @@ const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory,
2914
2882
  });
2915
2883
  return env;
2916
2884
  };
2917
-
2918
2885
  //#endregion
2919
2886
  //#region ../../node_modules/.pnpm/strip-final-newline@4.0.0/node_modules/strip-final-newline/index.js
2920
2887
  function stripFinalNewline(input) {
@@ -2928,22 +2895,20 @@ const LF = "\n";
2928
2895
  const LF_BINARY = LF.codePointAt(0);
2929
2896
  const CR = "\r";
2930
2897
  const CR_BINARY = CR.codePointAt(0);
2931
-
2932
2898
  //#endregion
2933
2899
  //#region ../../node_modules/.pnpm/is-stream@4.0.1/node_modules/is-stream/index.js
2934
2900
  function isStream(stream, { checkOpen = true } = {}) {
2935
2901
  return stream !== null && typeof stream === "object" && (stream.writable || stream.readable || !checkOpen || stream.writable === void 0 && stream.readable === void 0) && typeof stream.pipe === "function";
2936
2902
  }
2937
- function isWritableStream(stream, { checkOpen = true } = {}) {
2903
+ function isWritableStream$1(stream, { checkOpen = true } = {}) {
2938
2904
  return isStream(stream, { checkOpen }) && (stream.writable || !checkOpen) && typeof stream.write === "function" && typeof stream.end === "function" && typeof stream.writable === "boolean" && typeof stream.writableObjectMode === "boolean" && typeof stream.destroy === "function" && typeof stream.destroyed === "boolean";
2939
2905
  }
2940
- function isReadableStream(stream, { checkOpen = true } = {}) {
2906
+ function isReadableStream$1(stream, { checkOpen = true } = {}) {
2941
2907
  return isStream(stream, { checkOpen }) && (stream.readable || !checkOpen) && typeof stream.read === "function" && typeof stream.readable === "boolean" && typeof stream.readableObjectMode === "boolean" && typeof stream.destroy === "function" && typeof stream.destroyed === "boolean";
2942
2908
  }
2943
2909
  function isDuplexStream(stream, options) {
2944
- return isWritableStream(stream, options) && isReadableStream(stream, options);
2910
+ return isWritableStream$1(stream, options) && isReadableStream$1(stream, options);
2945
2911
  }
2946
-
2947
2912
  //#endregion
2948
2913
  //#region ../../node_modules/.pnpm/@sec-ant+readable-stream@0.4.1/node_modules/@sec-ant/readable-stream/dist/ponyfill/asyncIterator.js
2949
2914
  const a = Object.getPrototypeOf(Object.getPrototypeOf(
@@ -3024,11 +2989,10 @@ function h({ preventCancel: r = !1 } = {}) {
3024
2989
  const t = new c(this.getReader(), r), s = Object.create(u);
3025
2990
  return s[n] = t, s;
3026
2991
  }
3027
-
3028
2992
  //#endregion
3029
2993
  //#region ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/stream.js
3030
2994
  const getAsyncIterable = (stream) => {
3031
- if (isReadableStream(stream, { checkOpen: false }) && nodeImports.on !== void 0) return getStreamIterable(stream);
2995
+ if (isReadableStream$1(stream, { checkOpen: false }) && nodeImports.on !== void 0) return getStreamIterable(stream);
3032
2996
  if (typeof stream?.[Symbol.asyncIterator] === "function") return stream;
3033
2997
  if (toString.call(stream) === "[object ReadableStream]") return h.call(stream);
3034
2998
  throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.");
@@ -3040,9 +3004,9 @@ const getStreamIterable = async function* (stream) {
3040
3004
  handleStreamEnd(stream, controller, state);
3041
3005
  try {
3042
3006
  for await (const [chunk] of nodeImports.on(stream, "data", { signal: controller.signal })) yield chunk;
3043
- } catch (error$1) {
3007
+ } catch (error) {
3044
3008
  if (state.error !== void 0) throw state.error;
3045
- else if (!controller.signal.aborted) throw error$1;
3009
+ else if (!controller.signal.aborted) throw error;
3046
3010
  } finally {
3047
3011
  stream.destroy();
3048
3012
  }
@@ -3055,14 +3019,13 @@ const handleStreamEnd = async (stream, controller, state) => {
3055
3019
  writable: false,
3056
3020
  error: false
3057
3021
  });
3058
- } catch (error$1) {
3059
- state.error = error$1;
3022
+ } catch (error) {
3023
+ state.error = error;
3060
3024
  } finally {
3061
3025
  controller.abort();
3062
3026
  }
3063
3027
  };
3064
3028
  const nodeImports = {};
3065
-
3066
3029
  //#endregion
3067
3030
  //#region ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/contents.js
3068
3031
  const getStreamContents$1 = async (stream, { init, convertChunk, getSize, truncateChunk, addChunk, getFinalChunk, finalize }, { maxBuffer = Number.POSITIVE_INFINITY } = {}) => {
@@ -3088,8 +3051,8 @@ const getStreamContents$1 = async (stream, { init, convertChunk, getSize, trunca
3088
3051
  maxBuffer
3089
3052
  });
3090
3053
  return finalize(state);
3091
- } catch (error$1) {
3092
- const normalizedError = typeof error$1 === "object" && error$1 !== null ? error$1 : new Error(error$1);
3054
+ } catch (error) {
3055
+ const normalizedError = typeof error === "object" && error !== null ? error : new Error(error);
3093
3056
  normalizedError.bufferedData = finalize(state);
3094
3057
  throw normalizedError;
3095
3058
  }
@@ -3138,7 +3101,6 @@ var MaxBufferError = class extends Error {
3138
3101
  super("maxBuffer exceeded");
3139
3102
  }
3140
3103
  };
3141
-
3142
3104
  //#endregion
3143
3105
  //#region ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/utils.js
3144
3106
  const identity = (value) => value;
@@ -3148,7 +3110,6 @@ const throwObjectStream = (chunk) => {
3148
3110
  throw new Error(`Streams in object mode are not supported: ${String(chunk)}`);
3149
3111
  };
3150
3112
  const getLengthProperty = (convertedChunk) => convertedChunk.length;
3151
-
3152
3113
  //#endregion
3153
3114
  //#region ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/array.js
3154
3115
  async function getStreamAsArray(stream, options) {
@@ -3176,7 +3137,6 @@ const arrayMethods = {
3176
3137
  getFinalChunk: noop$1,
3177
3138
  finalize: getContentsProperty
3178
3139
  };
3179
-
3180
3140
  //#endregion
3181
3141
  //#region ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/array-buffer.js
3182
3142
  async function getStreamAsArrayBuffer(stream, options) {
@@ -3228,7 +3188,6 @@ const arrayBufferMethods = {
3228
3188
  getFinalChunk: noop$1,
3229
3189
  finalize: finalizeArrayBuffer
3230
3190
  };
3231
-
3232
3191
  //#endregion
3233
3192
  //#region ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/string.js
3234
3193
  async function getStreamAsString(stream, options) {
@@ -3238,11 +3197,11 @@ const initString = () => ({
3238
3197
  contents: "",
3239
3198
  textDecoder: new TextDecoder()
3240
3199
  });
3241
- const useTextDecoder = (chunk, { textDecoder: textDecoder$1 }) => textDecoder$1.decode(chunk, { stream: true });
3200
+ const useTextDecoder = (chunk, { textDecoder }) => textDecoder.decode(chunk, { stream: true });
3242
3201
  const addStringChunk = (convertedChunk, { contents }) => contents + convertedChunk;
3243
3202
  const truncateStringChunk = (convertedChunk, chunkSize) => convertedChunk.slice(0, chunkSize);
3244
- const getFinalStringChunk = ({ textDecoder: textDecoder$1 }) => {
3245
- const finalChunk = textDecoder$1.decode();
3203
+ const getFinalStringChunk = ({ textDecoder }) => {
3204
+ const finalChunk = textDecoder.decode();
3246
3205
  return finalChunk === "" ? void 0 : finalChunk;
3247
3206
  };
3248
3207
  const stringMethods = {
@@ -3261,18 +3220,17 @@ const stringMethods = {
3261
3220
  getFinalChunk: getFinalStringChunk,
3262
3221
  finalize: getContentsProperty
3263
3222
  };
3264
-
3265
3223
  //#endregion
3266
3224
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/max-buffer.js
3267
- const handleMaxBuffer = ({ error: error$1, stream, readableObjectMode, lines, encoding, fdNumber }) => {
3268
- if (!(error$1 instanceof MaxBufferError)) throw error$1;
3269
- if (fdNumber === "all") return error$1;
3270
- error$1.maxBufferInfo = {
3225
+ const handleMaxBuffer = ({ error, stream, readableObjectMode, lines, encoding, fdNumber }) => {
3226
+ if (!(error instanceof MaxBufferError)) throw error;
3227
+ if (fdNumber === "all") return error;
3228
+ error.maxBufferInfo = {
3271
3229
  fdNumber,
3272
3230
  unit: getMaxBufferUnit(readableObjectMode, lines, encoding)
3273
3231
  };
3274
3232
  stream.destroy();
3275
- throw error$1;
3233
+ throw error;
3276
3234
  };
3277
3235
  const getMaxBufferUnit = (readableObjectMode, lines, encoding) => {
3278
3236
  if (readableObjectMode) return "objects";
@@ -3282,22 +3240,22 @@ const getMaxBufferUnit = (readableObjectMode, lines, encoding) => {
3282
3240
  };
3283
3241
  const checkIpcMaxBuffer = (subprocess, ipcOutput, maxBuffer) => {
3284
3242
  if (ipcOutput.length !== maxBuffer) return;
3285
- const error$1 = new MaxBufferError();
3286
- error$1.maxBufferInfo = { fdNumber: "ipc" };
3287
- throw error$1;
3243
+ const error = new MaxBufferError();
3244
+ error.maxBufferInfo = { fdNumber: "ipc" };
3245
+ throw error;
3288
3246
  };
3289
- const getMaxBufferMessage = (error$1, maxBuffer) => {
3290
- const { streamName, threshold, unit } = getMaxBufferInfo(error$1, maxBuffer);
3247
+ const getMaxBufferMessage = (error, maxBuffer) => {
3248
+ const { streamName, threshold, unit } = getMaxBufferInfo(error, maxBuffer);
3291
3249
  return `Command's ${streamName} was larger than ${threshold} ${unit}`;
3292
3250
  };
3293
- const getMaxBufferInfo = (error$1, maxBuffer) => {
3294
- if (error$1?.maxBufferInfo === void 0) return {
3251
+ const getMaxBufferInfo = (error, maxBuffer) => {
3252
+ if (error?.maxBufferInfo === void 0) return {
3295
3253
  streamName: "output",
3296
3254
  threshold: maxBuffer[1],
3297
3255
  unit: "bytes"
3298
3256
  };
3299
- const { maxBufferInfo: { fdNumber, unit } } = error$1;
3300
- delete error$1.maxBufferInfo;
3257
+ const { maxBufferInfo: { fdNumber, unit } } = error;
3258
+ delete error.maxBufferInfo;
3301
3259
  const threshold = getFdSpecificValue(maxBuffer, fdNumber);
3302
3260
  if (fdNumber === "ipc") return {
3303
3261
  streamName: "IPC output",
@@ -3317,7 +3275,6 @@ const truncateMaxBufferSync = (result, isMaxBuffer, maxBuffer) => {
3317
3275
  return result.length > maxBufferValue ? result.slice(0, maxBufferValue) : result;
3318
3276
  };
3319
3277
  const getMaxBufferSync = ([, stdoutMaxBuffer]) => stdoutMaxBuffer;
3320
-
3321
3278
  //#endregion
3322
3279
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/message.js
3323
3280
  const createMessages = ({ stdio, all, ipcOutput, originalError, signal, signalDescription, exitCode, escapedCommand, timedOut, isCanceled, isGracefullyCanceled, isMaxBuffer, isForcefullyTerminated, forceKillAfterDelay, killSignal, maxBuffer, timeout, cwd }) => {
@@ -3379,7 +3336,6 @@ const serializeMessageItem = (messageItem) => {
3379
3336
  if (isUint8Array(messageItem)) return uint8ArrayToString(messageItem);
3380
3337
  return "";
3381
3338
  };
3382
-
3383
3339
  //#endregion
3384
3340
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/result.js
3385
3341
  const makeSuccessResult = ({ command, escapedCommand, stdio, all, ipcOutput, options: { cwd }, startTime }) => omitUndefinedProperties({
@@ -3402,8 +3358,8 @@ const makeSuccessResult = ({ command, escapedCommand, stdio, all, ipcOutput, opt
3402
3358
  ipcOutput,
3403
3359
  pipedFrom: []
3404
3360
  });
3405
- const makeEarlyError = ({ error: error$1, command, escapedCommand, fileDescriptors, options, startTime, isSync }) => makeError({
3406
- error: error$1,
3361
+ const makeEarlyError = ({ error, command, escapedCommand, fileDescriptors, options, startTime, isSync }) => makeError({
3362
+ error,
3407
3363
  command,
3408
3364
  escapedCommand,
3409
3365
  startTime,
@@ -3439,9 +3395,9 @@ const makeError = ({ error: originalError, command, escapedCommand, startTime, t
3439
3395
  timeout,
3440
3396
  cwd
3441
3397
  });
3442
- const error$1 = getFinalError(originalError, message, isSync);
3443
- Object.assign(error$1, getErrorProperties({
3444
- error: error$1,
3398
+ const error = getFinalError(originalError, message, isSync);
3399
+ Object.assign(error, getErrorProperties({
3400
+ error,
3445
3401
  command,
3446
3402
  escapedCommand,
3447
3403
  startTime,
@@ -3460,9 +3416,9 @@ const makeError = ({ error: originalError, command, escapedCommand, startTime, t
3460
3416
  originalMessage,
3461
3417
  shortMessage
3462
3418
  }));
3463
- return error$1;
3419
+ return error;
3464
3420
  };
3465
- const getErrorProperties = ({ error: error$1, command, escapedCommand, startTime, timedOut, isCanceled, isGracefullyCanceled, isMaxBuffer, isForcefullyTerminated, exitCode, signal, signalDescription, stdio, all, ipcOutput, cwd, originalMessage, shortMessage }) => omitUndefinedProperties({
3421
+ const getErrorProperties = ({ error, command, escapedCommand, startTime, timedOut, isCanceled, isGracefullyCanceled, isMaxBuffer, isForcefullyTerminated, exitCode, signal, signalDescription, stdio, all, ipcOutput, cwd, originalMessage, shortMessage }) => omitUndefinedProperties({
3466
3422
  shortMessage,
3467
3423
  originalMessage,
3468
3424
  command,
@@ -3479,7 +3435,7 @@ const getErrorProperties = ({ error: error$1, command, escapedCommand, startTime
3479
3435
  exitCode,
3480
3436
  signal,
3481
3437
  signalDescription,
3482
- code: error$1.cause?.code,
3438
+ code: error.cause?.code,
3483
3439
  stdout: stdio[1],
3484
3440
  stderr: stdio[2],
3485
3441
  all,
@@ -3497,7 +3453,6 @@ const normalizeExitPayload = (rawExitCode, rawSignal) => {
3497
3453
  signalDescription: signal === void 0 ? void 0 : getSignalDescription(rawSignal)
3498
3454
  };
3499
3455
  };
3500
-
3501
3456
  //#endregion
3502
3457
  //#region ../../node_modules/.pnpm/parse-ms@4.0.0/node_modules/parse-ms/index.js
3503
3458
  const toZeroIfInfinity = (value) => Number.isFinite(value) ? value : 0;
@@ -3532,11 +3487,10 @@ function parseMilliseconds(milliseconds) {
3532
3487
  }
3533
3488
  throw new TypeError("Expected a finite number or bigint");
3534
3489
  }
3535
-
3536
3490
  //#endregion
3537
3491
  //#region ../../node_modules/.pnpm/pretty-ms@9.2.0/node_modules/pretty-ms/index.js
3538
3492
  const isZero = (value) => value === 0 || value === 0n;
3539
- const pluralize = (word, count$1) => count$1 === 1 || count$1 === 1n ? word : `${word}s`;
3493
+ const pluralize = (word, count) => count === 1 || count === 1n ? word : `${word}s`;
3540
3494
  const SECOND_ROUNDING_EPSILON = 1e-7;
3541
3495
  const ONE_DAY_IN_MILLISECONDS = 24n * 60n * 60n * 1000n;
3542
3496
  function prettyMilliseconds(milliseconds, options) {
@@ -3585,16 +3539,16 @@ function prettyMilliseconds(milliseconds, options) {
3585
3539
  add(Number(parsed.minutes), "minute", "m");
3586
3540
  if (!options.hideSeconds) if (options.separateMilliseconds || options.formatSubMilliseconds || !options.colonNotation && milliseconds < 1e3) {
3587
3541
  const seconds = Number(parsed.seconds);
3588
- const milliseconds$1 = Number(parsed.milliseconds);
3542
+ const milliseconds = Number(parsed.milliseconds);
3589
3543
  const microseconds = Number(parsed.microseconds);
3590
3544
  const nanoseconds = Number(parsed.nanoseconds);
3591
3545
  add(seconds, "second", "s");
3592
3546
  if (options.formatSubMilliseconds) {
3593
- add(milliseconds$1, "millisecond", "ms");
3547
+ add(milliseconds, "millisecond", "ms");
3594
3548
  add(microseconds, "microsecond", "µs");
3595
3549
  add(nanoseconds, "nanosecond", "ns");
3596
3550
  } else {
3597
- const millisecondsAndBelow = milliseconds$1 + microseconds / 1e3 + nanoseconds / 1e6;
3551
+ const millisecondsAndBelow = milliseconds + microseconds / 1e3 + nanoseconds / 1e6;
3598
3552
  const millisecondsDecimalDigits = typeof options.millisecondsDecimalDigits === "number" ? options.millisecondsDecimalDigits : 0;
3599
3553
  const millisecondsString = millisecondsDecimalDigits ? millisecondsAndBelow.toFixed(millisecondsDecimalDigits) : millisecondsAndBelow >= 1 ? Math.round(millisecondsAndBelow) : Math.ceil(millisecondsAndBelow);
3600
3554
  add(Number.parseFloat(millisecondsString), "millisecond", "ms", millisecondsString);
@@ -3609,7 +3563,6 @@ function prettyMilliseconds(milliseconds, options) {
3609
3563
  if (typeof options.unitCount === "number") result = result.slice(0, Math.max(options.unitCount, 1));
3610
3564
  return sign + result.join(separator);
3611
3565
  }
3612
-
3613
3566
  //#endregion
3614
3567
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/error.js
3615
3568
  const logError = (result, verboseInfo) => {
@@ -3620,7 +3573,6 @@ const logError = (result, verboseInfo) => {
3620
3573
  result
3621
3574
  });
3622
3575
  };
3623
-
3624
3576
  //#endregion
3625
3577
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/complete.js
3626
3578
  const logResult = (result, verboseInfo) => {
@@ -3636,7 +3588,6 @@ const logDuration = (result, verboseInfo) => {
3636
3588
  result
3637
3589
  });
3638
3590
  };
3639
-
3640
3591
  //#endregion
3641
3592
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/reject.js
3642
3593
  const handleResult = (result, verboseInfo, { reject }) => {
@@ -3644,7 +3595,6 @@ const handleResult = (result, verboseInfo, { reject }) => {
3644
3595
  if (result.failed && reject) throw result;
3645
3596
  return result;
3646
3597
  };
3647
-
3648
3598
  //#endregion
3649
3599
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/type.js
3650
3600
  const getStdioItemType = (value, optionName) => {
@@ -3711,10 +3661,10 @@ const KNOWN_STDIO_STRINGS = new Set([
3711
3661
  "overlapped",
3712
3662
  "pipe"
3713
3663
  ]);
3714
- const isReadableStream$1 = (value) => Object.prototype.toString.call(value) === "[object ReadableStream]";
3715
- const isWritableStream$1 = (value) => Object.prototype.toString.call(value) === "[object WritableStream]";
3716
- const isWebStream = (value) => isReadableStream$1(value) || isWritableStream$1(value);
3717
- const isTransformStream = (value) => isReadableStream$1(value?.readable) && isWritableStream$1(value?.writable);
3664
+ const isReadableStream = (value) => Object.prototype.toString.call(value) === "[object ReadableStream]";
3665
+ const isWritableStream = (value) => Object.prototype.toString.call(value) === "[object WritableStream]";
3666
+ const isWebStream = (value) => isReadableStream(value) || isWritableStream(value);
3667
+ const isTransformStream = (value) => isReadableStream(value?.readable) && isWritableStream(value?.writable);
3718
3668
  const isAsyncIterableObject = (value) => isObject(value) && typeof value[Symbol.asyncIterator] === "function";
3719
3669
  const isIterableObject = (value) => isObject(value) && typeof value[Symbol.iterator] === "function";
3720
3670
  const isObject = (value) => typeof value === "object" && value !== null;
@@ -3752,7 +3702,6 @@ const TYPE_TO_MESSAGE = {
3752
3702
  string: "a string",
3753
3703
  uint8Array: "a Uint8Array"
3754
3704
  };
3755
-
3756
3705
  //#endregion
3757
3706
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/object-mode.js
3758
3707
  const getTransformObjectModes = (objectMode, index, newTransforms, direction) => direction === "output" ? getOutputObjectModes(objectMode, index, newTransforms) : getInputObjectModes(objectMode, index, newTransforms);
@@ -3775,7 +3724,6 @@ const getFdObjectMode = (stdioItems, direction) => {
3775
3724
  if (lastTransform === void 0) return false;
3776
3725
  return direction === "input" ? lastTransform.value.writableObjectMode : lastTransform.value.readableObjectMode;
3777
3726
  };
3778
-
3779
3727
  //#endregion
3780
3728
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/normalize.js
3781
3729
  const normalizeTransforms = (stdioItems, optionName, direction, options) => [...stdioItems.filter(({ type }) => !TRANSFORM_TYPES.has(type)), ...getTransforms(stdioItems, optionName, direction, options)];
@@ -3852,7 +3800,6 @@ const normalizeGenerator = ({ stdioItem, stdioItem: { value }, index, newTransfo
3852
3800
  };
3853
3801
  };
3854
3802
  const sortTransforms = (newTransforms, direction) => direction === "input" ? newTransforms.reverse() : newTransforms;
3855
-
3856
3803
  //#endregion
3857
3804
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/direction.js
3858
3805
  const getStreamDirection = (stdioItems, fdNumber, optionName) => {
@@ -3876,10 +3823,10 @@ const guessStreamDirection = {
3876
3823
  iterable: alwaysInput,
3877
3824
  asyncIterable: alwaysInput,
3878
3825
  uint8Array: alwaysInput,
3879
- webStream: (value) => isWritableStream$1(value) ? "output" : "input",
3826
+ webStream: (value) => isWritableStream(value) ? "output" : "input",
3880
3827
  nodeStream(value) {
3881
- if (!isReadableStream(value, { checkOpen: false })) return "output";
3882
- return isWritableStream(value, { checkOpen: false }) ? void 0 : "input";
3828
+ if (!isReadableStream$1(value, { checkOpen: false })) return "output";
3829
+ return isWritableStream$1(value, { checkOpen: false }) ? void 0 : "input";
3883
3830
  },
3884
3831
  webTransform: anyDirection,
3885
3832
  duplex: anyDirection,
@@ -3899,14 +3846,12 @@ const getStandardStreamDirection = (value) => {
3899
3846
  ].includes(value)) return "output";
3900
3847
  };
3901
3848
  const DEFAULT_DIRECTION = "output";
3902
-
3903
3849
  //#endregion
3904
3850
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/array.js
3905
3851
  const normalizeIpcStdioArray = (stdioArray, ipc) => ipc && !stdioArray.includes("ipc") ? [...stdioArray, "ipc"] : stdioArray;
3906
-
3907
3852
  //#endregion
3908
3853
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/stdio-option.js
3909
- const normalizeStdioOption = ({ stdio, ipc, buffer,...options }, verboseInfo, isSync) => {
3854
+ const normalizeStdioOption = ({ stdio, ipc, buffer, ...options }, verboseInfo, isSync) => {
3910
3855
  const stdioArray = getStdioArray(stdio, options).map((stdioOption, fdNumber) => addDefaultValue(stdioOption, fdNumber));
3911
3856
  return isSync ? normalizeStdioSync(stdioArray, buffer, verboseInfo) : normalizeIpcStdioArray(stdioArray, ipc);
3912
3857
  };
@@ -3930,7 +3875,6 @@ const addDefaultValue = (stdioOption, fdNumber) => {
3930
3875
  };
3931
3876
  const normalizeStdioSync = (stdioArray, buffer, verboseInfo) => stdioArray.map((stdioOption, fdNumber) => !buffer[fdNumber] && fdNumber !== 0 && !isFullVerbose(verboseInfo, fdNumber) && isOutputPipeOnly(stdioOption) ? "ignore" : stdioOption);
3932
3877
  const isOutputPipeOnly = (stdioOption) => stdioOption === "pipe" || Array.isArray(stdioOption) && stdioOption.every((item) => item === "pipe");
3933
-
3934
3878
  //#endregion
3935
3879
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/native.js
3936
3880
  const handleNativeStream = ({ stdioItem, stdioItem: { type }, isStdioArray, fdNumber, direction, isSync }) => {
@@ -3999,7 +3943,6 @@ const getStandardStream = (fdNumber, value, optionName) => {
3999
3943
  if (standardStream === void 0) throw new TypeError(`The \`${optionName}: ${value}\` option is invalid: no such standard stream.`);
4000
3944
  return standardStream;
4001
3945
  };
4002
-
4003
3946
  //#endregion
4004
3947
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/input-option.js
4005
3948
  const handleInputOptions = ({ input, inputFile }, fdNumber) => fdNumber === 0 ? [...handleInputOption(input), ...handleInputFileOption(inputFile)] : [];
@@ -4009,7 +3952,7 @@ const handleInputOption = (input) => input === void 0 ? [] : [{
4009
3952
  optionName: "input"
4010
3953
  }];
4011
3954
  const getInputType = (input) => {
4012
- if (isReadableStream(input, { checkOpen: false })) return "nodeStream";
3955
+ if (isReadableStream$1(input, { checkOpen: false })) return "nodeStream";
4013
3956
  if (typeof input === "string") return "string";
4014
3957
  if (isUint8Array(input)) return "uint8Array";
4015
3958
  throw new Error("The `input` option must be a string, a Uint8Array or a Node.js Readable stream.");
@@ -4029,7 +3972,6 @@ const getInputFileType = (inputFile) => {
4029
3972
  };
4030
3973
  throw new Error("The `inputFile` option must be a file path string or a file URL.");
4031
3974
  };
4032
-
4033
3975
  //#endregion
4034
3976
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/duplicate.js
4035
3977
  const filterDuplicates = (stdioItems) => stdioItems.filter((stdioItemOne, indexOne) => stdioItems.every((stdioItemTwo, indexTwo) => stdioItemOne.value !== stdioItemTwo.value || indexOne >= indexTwo || stdioItemOne.type === "generator" || stdioItemOne.type === "asyncGenerator"));
@@ -4090,10 +4032,9 @@ const validateDuplicateTransform = ({ otherStdioItems, type, value, optionName }
4090
4032
  const throwOnDuplicateStream = (stdioItem, optionName, type) => {
4091
4033
  if (stdioItem !== void 0) throw new TypeError(`The \`${stdioItem.optionName}\` and \`${optionName}\` options must not target ${TYPE_TO_MESSAGE[type]} that is the same.`);
4092
4034
  };
4093
-
4094
4035
  //#endregion
4095
4036
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/handle.js
4096
- const handleStdio = (addProperties$2, options, verboseInfo, isSync) => {
4037
+ const handleStdio = (addProperties, options, verboseInfo, isSync) => {
4097
4038
  const fileDescriptors = getFinalFileDescriptors({
4098
4039
  initialFileDescriptors: normalizeStdioOption(options, verboseInfo, isSync).map((stdioOption, fdNumber) => getFileDescriptor({
4099
4040
  stdioOption,
@@ -4101,7 +4042,7 @@ const handleStdio = (addProperties$2, options, verboseInfo, isSync) => {
4101
4042
  options,
4102
4043
  isSync
4103
4044
  })),
4104
- addProperties: addProperties$2,
4045
+ addProperties,
4105
4046
  options,
4106
4047
  isSync
4107
4048
  });
@@ -4150,7 +4091,7 @@ const initializeStdioItem = (value, optionName) => ({
4150
4091
  const validateStdioArray = (stdioItems, isStdioArray, optionName) => {
4151
4092
  if (stdioItems.length === 0) throw new TypeError(`The \`${optionName}\` option must not be an empty array.`);
4152
4093
  if (!isStdioArray) return;
4153
- for (const { value, optionName: optionName$1 } of stdioItems) if (INVALID_STDIO_ARRAY_OPTIONS.has(value)) throw new Error(`The \`${optionName$1}\` option must not include \`${value}\`.`);
4094
+ for (const { value, optionName } of stdioItems) if (INVALID_STDIO_ARRAY_OPTIONS.has(value)) throw new Error(`The \`${optionName}\` option must not include \`${value}\`.`);
4154
4095
  };
4155
4096
  const INVALID_STDIO_ARRAY_OPTIONS = new Set(["ignore", "ipc"]);
4156
4097
  const validateStreams = (stdioItems) => {
@@ -4166,29 +4107,29 @@ const validateFileObjectMode = (stdioItems, objectMode) => {
4166
4107
  const fileStdioItem = stdioItems.find(({ type }) => FILE_TYPES.has(type));
4167
4108
  if (fileStdioItem !== void 0) throw new TypeError(`The \`${fileStdioItem.optionName}\` option cannot use both files and transforms in objectMode.`);
4168
4109
  };
4169
- const getFinalFileDescriptors = ({ initialFileDescriptors, addProperties: addProperties$2, options, isSync }) => {
4110
+ const getFinalFileDescriptors = ({ initialFileDescriptors, addProperties, options, isSync }) => {
4170
4111
  const fileDescriptors = [];
4171
4112
  try {
4172
4113
  for (const fileDescriptor of initialFileDescriptors) fileDescriptors.push(getFinalFileDescriptor({
4173
4114
  fileDescriptor,
4174
4115
  fileDescriptors,
4175
- addProperties: addProperties$2,
4116
+ addProperties,
4176
4117
  options,
4177
4118
  isSync
4178
4119
  }));
4179
4120
  return fileDescriptors;
4180
- } catch (error$1) {
4121
+ } catch (error) {
4181
4122
  cleanupCustomStreams(fileDescriptors);
4182
- throw error$1;
4123
+ throw error;
4183
4124
  }
4184
4125
  };
4185
- const getFinalFileDescriptor = ({ fileDescriptor: { direction, objectMode, stdioItems }, fileDescriptors, addProperties: addProperties$2, options, isSync }) => {
4126
+ const getFinalFileDescriptor = ({ fileDescriptor: { direction, objectMode, stdioItems }, fileDescriptors, addProperties, options, isSync }) => {
4186
4127
  return {
4187
4128
  direction,
4188
4129
  objectMode,
4189
4130
  stdioItems: stdioItems.map((stdioItem) => addStreamProperties({
4190
4131
  stdioItem,
4191
- addProperties: addProperties$2,
4132
+ addProperties,
4192
4133
  direction,
4193
4134
  options,
4194
4135
  fileDescriptors,
@@ -4196,7 +4137,7 @@ const getFinalFileDescriptor = ({ fileDescriptor: { direction, objectMode, stdio
4196
4137
  }))
4197
4138
  };
4198
4139
  };
4199
- const addStreamProperties = ({ stdioItem, addProperties: addProperties$2, direction, options, fileDescriptors, isSync }) => {
4140
+ const addStreamProperties = ({ stdioItem, addProperties, direction, options, fileDescriptors, isSync }) => {
4200
4141
  const duplicateStream = getDuplicateStream({
4201
4142
  stdioItem,
4202
4143
  direction,
@@ -4209,18 +4150,17 @@ const addStreamProperties = ({ stdioItem, addProperties: addProperties$2, direct
4209
4150
  };
4210
4151
  return {
4211
4152
  ...stdioItem,
4212
- ...addProperties$2[direction][stdioItem.type](stdioItem, options)
4153
+ ...addProperties[direction][stdioItem.type](stdioItem, options)
4213
4154
  };
4214
4155
  };
4215
4156
  const cleanupCustomStreams = (fileDescriptors) => {
4216
4157
  for (const { stdioItems } of fileDescriptors) for (const { stream } of stdioItems) if (stream !== void 0 && !isStandardStream(stream)) stream.destroy();
4217
4158
  };
4218
4159
  const forwardStdio = (stdioItems) => {
4219
- if (stdioItems.length > 1) return stdioItems.some(({ value: value$1 }) => value$1 === "overlapped") ? "overlapped" : "pipe";
4160
+ if (stdioItems.length > 1) return stdioItems.some(({ value }) => value === "overlapped") ? "overlapped" : "pipe";
4220
4161
  const [{ type, value }] = stdioItems;
4221
4162
  return type === "native" ? value : "pipe";
4222
4163
  };
4223
-
4224
4164
  //#endregion
4225
4165
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/handle-sync.js
4226
4166
  const handleStdioSync = (options, verboseInfo) => handleStdio(addPropertiesSync, options, verboseInfo, true);
@@ -4267,12 +4207,10 @@ const addPropertiesSync = {
4267
4207
  uint8Array: forbiddenIfSync
4268
4208
  }
4269
4209
  };
4270
-
4271
4210
  //#endregion
4272
4211
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/strip-newline.js
4273
4212
  const stripNewline = (value, { stripFinalNewline: stripFinalNewline$1 }, fdNumber) => getStripFinalNewline(stripFinalNewline$1, fdNumber) && value !== void 0 && !Array.isArray(value) ? stripFinalNewline(value) : value;
4274
- const getStripFinalNewline = (stripFinalNewline$1, fdNumber) => fdNumber === "all" ? stripFinalNewline$1[1] || stripFinalNewline$1[2] : stripFinalNewline$1[fdNumber];
4275
-
4213
+ const getStripFinalNewline = (stripFinalNewline, fdNumber) => fdNumber === "all" ? stripFinalNewline[1] || stripFinalNewline[2] : stripFinalNewline[fdNumber];
4276
4214
  //#endregion
4277
4215
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/split.js
4278
4216
  const getSplitLinesGenerator = (binary, preserveNewlines, skipped, state) => binary || skipped ? void 0 : initializeSplitLines(preserveNewlines, state);
@@ -4318,8 +4256,8 @@ const linesFinal = function* ({ previousChunks }) {
4318
4256
  };
4319
4257
  const getAppendNewlineGenerator = ({ binary, preserveNewlines, readableObjectMode, state }) => binary || preserveNewlines || readableObjectMode ? void 0 : { transform: appendNewlineGenerator.bind(void 0, state) };
4320
4258
  const appendNewlineGenerator = function* ({ isWindowsNewline = false }, chunk) {
4321
- const { unixNewline, windowsNewline, LF: LF$1, concatBytes } = typeof chunk === "string" ? linesStringInfo : linesUint8ArrayInfo;
4322
- if (chunk.at(-1) === LF$1) {
4259
+ const { unixNewline, windowsNewline, LF, concatBytes } = typeof chunk === "string" ? linesStringInfo : linesUint8ArrayInfo;
4260
+ if (chunk.at(-1) === LF) {
4323
4261
  yield chunk;
4324
4262
  return;
4325
4263
  }
@@ -4344,7 +4282,6 @@ const linesUint8ArrayInfo = {
4344
4282
  LF: 10,
4345
4283
  concatBytes: concatUint8Array
4346
4284
  };
4347
-
4348
4285
  //#endregion
4349
4286
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/validate.js
4350
4287
  const getValidateTransformInput = (writableObjectMode, optionName) => writableObjectMode ? void 0 : validateStringTransformInput.bind(void 0, optionName);
@@ -4367,7 +4304,6 @@ const validateEmptyReturn = (optionName, chunk) => {
4367
4304
  Instead, \`yield\` should either be called with a value, or not be called at all. For example:
4368
4305
  if (condition) { yield value; }`);
4369
4306
  };
4370
-
4371
4307
  //#endregion
4372
4308
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/encoding-transform.js
4373
4309
  const getEncodingTransformGenerator = (binary, encoding, skipped) => {
@@ -4379,9 +4315,9 @@ const getEncodingTransformGenerator = (binary, encoding, skipped) => {
4379
4315
  final: encodingStringFinal.bind(void 0, stringDecoder)
4380
4316
  };
4381
4317
  };
4382
- const encodingUint8ArrayGenerator = function* (textEncoder$2, chunk) {
4318
+ const encodingUint8ArrayGenerator = function* (textEncoder, chunk) {
4383
4319
  if (node_buffer.Buffer.isBuffer(chunk)) yield bufferToUint8Array(chunk);
4384
- else if (typeof chunk === "string") yield textEncoder$2.encode(chunk);
4320
+ else if (typeof chunk === "string") yield textEncoder.encode(chunk);
4385
4321
  else yield chunk;
4386
4322
  };
4387
4323
  const encodingStringGenerator = function* (stringDecoder, chunk) {
@@ -4391,7 +4327,6 @@ const encodingStringFinal = function* (stringDecoder) {
4391
4327
  const lastChunk = stringDecoder.end();
4392
4328
  if (lastChunk !== "") yield lastChunk;
4393
4329
  };
4394
-
4395
4330
  //#endregion
4396
4331
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/run-async.js
4397
4332
  const pushChunks = (0, node_util.callbackify)(async (getChunks, state, getChunksArguments, transformStream) => {
@@ -4417,25 +4352,24 @@ const generatorFinalChunks = async function* (final, index, generators) {
4417
4352
  if (final === void 0) return;
4418
4353
  for await (const finalChunk of final()) yield* transformChunk(finalChunk, generators, index + 1);
4419
4354
  };
4420
- const destroyTransform = (0, node_util.callbackify)(async ({ currentIterable }, error$1) => {
4355
+ const destroyTransform = (0, node_util.callbackify)(async ({ currentIterable }, error) => {
4421
4356
  if (currentIterable !== void 0) {
4422
- await (error$1 ? currentIterable.throw(error$1) : currentIterable.return());
4357
+ await (error ? currentIterable.throw(error) : currentIterable.return());
4423
4358
  return;
4424
4359
  }
4425
- if (error$1) throw error$1;
4360
+ if (error) throw error;
4426
4361
  });
4427
4362
  const identityGenerator$1 = function* (chunk) {
4428
4363
  yield chunk;
4429
4364
  };
4430
-
4431
4365
  //#endregion
4432
4366
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/run-sync.js
4433
4367
  const pushChunksSync = (getChunksSync, getChunksArguments, transformStream, done) => {
4434
4368
  try {
4435
4369
  for (const chunk of getChunksSync(...getChunksArguments)) transformStream.push(chunk);
4436
4370
  done();
4437
- } catch (error$1) {
4438
- done(error$1);
4371
+ } catch (error) {
4372
+ done(error);
4439
4373
  }
4440
4374
  };
4441
4375
  const runTransformSync = (generators, chunks) => [...chunks.flatMap((chunk) => [...transformChunkSync(chunk, generators, 0)]), ...finalChunksSync(generators)];
@@ -4457,7 +4391,6 @@ const generatorFinalChunksSync = function* (final, index, generators) {
4457
4391
  const identityGenerator = function* (chunk) {
4458
4392
  yield chunk;
4459
4393
  };
4460
-
4461
4394
  //#endregion
4462
4395
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/generator.js
4463
4396
  const generatorToStream = ({ value, value: { transform, final, writableObjectMode, readableObjectMode }, optionName }, { encoding }) => {
@@ -4473,7 +4406,7 @@ const generatorToStream = ({ value, value: { transform, final, writableObjectMod
4473
4406
  writableHighWaterMark: (0, node_stream.getDefaultHighWaterMark)(writableObjectMode),
4474
4407
  readableObjectMode,
4475
4408
  readableHighWaterMark: (0, node_stream.getDefaultHighWaterMark)(readableObjectMode),
4476
- transform(chunk, encoding$1, done) {
4409
+ transform(chunk, encoding, done) {
4477
4410
  transformMethod([
4478
4411
  chunk,
4479
4412
  generators,
@@ -4511,7 +4444,6 @@ const addInternalGenerators = ({ transform, final, binary, writableObjectMode, r
4511
4444
  })
4512
4445
  ].filter(Boolean);
4513
4446
  };
4514
-
4515
4447
  //#endregion
4516
4448
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/input-sync.js
4517
4449
  const addInputOptionsSync = (fileDescriptors, options) => {
@@ -4537,7 +4469,6 @@ const validateSerializable = (newContents) => {
4537
4469
  const invalidItem = newContents.find((item) => typeof item !== "string" && !isUint8Array(item));
4538
4470
  if (invalidItem !== void 0) throw new TypeError(`The \`stdin\` option is invalid: when passing objects as input, a transform must be used to serialize them to strings or Uint8Arrays: ${invalidItem}.`);
4539
4471
  };
4540
-
4541
4472
  //#endregion
4542
4473
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/output.js
4543
4474
  const 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)));
@@ -4558,7 +4489,6 @@ const logLine = (line, fdNumber, verboseInfo) => {
4558
4489
  verboseInfo
4559
4490
  });
4560
4491
  };
4561
-
4562
4492
  //#endregion
4563
4493
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/output-sync.js
4564
4494
  const transformOutputSync = ({ fileDescriptors, syncResult: { output }, options, isMaxBuffer, verboseInfo }) => {
@@ -4578,7 +4508,7 @@ const transformOutputSync = ({ fileDescriptors, syncResult: { output }, options,
4578
4508
  ...state
4579
4509
  };
4580
4510
  };
4581
- const transformOutputResultSync = ({ result, fileDescriptors, fdNumber, state, outputFiles, isMaxBuffer, verboseInfo }, { buffer, encoding, lines, stripFinalNewline: stripFinalNewline$1, maxBuffer }) => {
4511
+ const transformOutputResultSync = ({ result, fileDescriptors, fdNumber, state, outputFiles, isMaxBuffer, verboseInfo }, { buffer, encoding, lines, stripFinalNewline, maxBuffer }) => {
4582
4512
  if (result === null) return;
4583
4513
  const uint8ArrayResult = bufferToUint8Array(truncateMaxBufferSync(result, isMaxBuffer, maxBuffer));
4584
4514
  const { stdioItems, objectMode } = fileDescriptors[fdNumber];
@@ -4587,7 +4517,7 @@ const transformOutputResultSync = ({ result, fileDescriptors, fdNumber, state, o
4587
4517
  objectMode,
4588
4518
  encoding,
4589
4519
  lines,
4590
- stripFinalNewline: stripFinalNewline$1,
4520
+ stripFinalNewline,
4591
4521
  fdNumber
4592
4522
  });
4593
4523
  logOutputSync({
@@ -4603,26 +4533,26 @@ const transformOutputResultSync = ({ result, fileDescriptors, fdNumber, state, o
4603
4533
  try {
4604
4534
  if (state.error === void 0) writeToFiles(serializedResult, stdioItems, outputFiles);
4605
4535
  return returnedResult;
4606
- } catch (error$1) {
4607
- state.error = error$1;
4536
+ } catch (error) {
4537
+ state.error = error;
4608
4538
  return returnedResult;
4609
4539
  }
4610
4540
  };
4611
4541
  const runOutputGeneratorsSync = (chunks, stdioItems, encoding, state) => {
4612
4542
  try {
4613
4543
  return runGeneratorsSync(chunks, stdioItems, encoding, false);
4614
- } catch (error$1) {
4615
- state.error = error$1;
4544
+ } catch (error) {
4545
+ state.error = error;
4616
4546
  return chunks;
4617
4547
  }
4618
4548
  };
4619
- const serializeChunks = ({ chunks, objectMode, encoding, lines, stripFinalNewline: stripFinalNewline$1, fdNumber }) => {
4549
+ const serializeChunks = ({ chunks, objectMode, encoding, lines, stripFinalNewline, fdNumber }) => {
4620
4550
  if (objectMode) return { serializedResult: chunks };
4621
4551
  if (encoding === "buffer") return { serializedResult: joinToUint8Array(chunks) };
4622
4552
  const serializedResult = joinToString(chunks, encoding);
4623
4553
  if (lines[fdNumber]) return {
4624
4554
  serializedResult,
4625
- finalResult: splitLinesSync(serializedResult, !stripFinalNewline$1[fdNumber], objectMode)
4555
+ finalResult: splitLinesSync(serializedResult, !stripFinalNewline[fdNumber], objectMode)
4626
4556
  };
4627
4557
  return { serializedResult };
4628
4558
  };
@@ -4636,21 +4566,20 @@ const logOutputSync = ({ serializedResult, fdNumber, state, verboseInfo, encodin
4636
4566
  const linesArray = splitLinesSync(serializedResult, false, objectMode);
4637
4567
  try {
4638
4568
  logLinesSync(linesArray, fdNumber, verboseInfo);
4639
- } catch (error$1) {
4640
- state.error ??= error$1;
4569
+ } catch (error) {
4570
+ state.error ??= error;
4641
4571
  }
4642
4572
  };
4643
4573
  const writeToFiles = (serializedResult, stdioItems, outputFiles) => {
4644
- for (const { path: path$10, append } of stdioItems.filter(({ type }) => FILE_TYPES.has(type))) {
4645
- const pathString = typeof path$10 === "string" ? path$10 : path$10.toString();
4646
- if (append || outputFiles.has(pathString)) (0, node_fs.appendFileSync)(path$10, serializedResult);
4574
+ for (const { path, append } of stdioItems.filter(({ type }) => FILE_TYPES.has(type))) {
4575
+ const pathString = typeof path === "string" ? path : path.toString();
4576
+ if (append || outputFiles.has(pathString)) (0, node_fs.appendFileSync)(path, serializedResult);
4647
4577
  else {
4648
4578
  outputFiles.add(pathString);
4649
- (0, node_fs.writeFileSync)(path$10, serializedResult);
4579
+ (0, node_fs.writeFileSync)(path, serializedResult);
4650
4580
  }
4651
4581
  }
4652
4582
  };
4653
-
4654
4583
  //#endregion
4655
4584
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/resolve/all-sync.js
4656
4585
  const getAllSync = ([, stdout, stderr], options) => {
@@ -4662,7 +4591,6 @@ const getAllSync = ([, stdout, stderr], options) => {
4662
4591
  if (isUint8Array(stdout) && isUint8Array(stderr)) return concatUint8Arrays([stdout, stderr]);
4663
4592
  return `${stdout}${stderr}`;
4664
4593
  };
4665
-
4666
4594
  //#endregion
4667
4595
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/resolve/exit-async.js
4668
4596
  const waitForExit = async (subprocess, context) => {
@@ -4689,11 +4617,10 @@ const waitForSuccessfulExit = async (exitPromise) => {
4689
4617
  };
4690
4618
  const isSubprocessErrorExit = (exitCode, signal) => exitCode === void 0 && signal === void 0;
4691
4619
  const isFailedExit = (exitCode, signal) => exitCode !== 0 || signal !== null;
4692
-
4693
4620
  //#endregion
4694
4621
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/resolve/exit-sync.js
4695
- const getExitResultSync = ({ error: error$1, status: exitCode, signal, output }, { maxBuffer }) => {
4696
- const resultError = getResultError(error$1, exitCode, signal);
4622
+ const getExitResultSync = ({ error, status: exitCode, signal, output }, { maxBuffer }) => {
4623
+ const resultError = getResultError(error, exitCode, signal);
4697
4624
  return {
4698
4625
  resultError,
4699
4626
  exitCode,
@@ -4702,11 +4629,10 @@ const getExitResultSync = ({ error: error$1, status: exitCode, signal, output },
4702
4629
  isMaxBuffer: isMaxBufferSync(resultError, output, maxBuffer)
4703
4630
  };
4704
4631
  };
4705
- const getResultError = (error$1, exitCode, signal) => {
4706
- if (error$1 !== void 0) return error$1;
4632
+ const getResultError = (error, exitCode, signal) => {
4633
+ if (error !== void 0) return error;
4707
4634
  return isFailedExit(exitCode, signal) ? new DiscardedError() : void 0;
4708
4635
  };
4709
-
4710
4636
  //#endregion
4711
4637
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/main-sync.js
4712
4638
  const execaCoreSync = (rawFile, rawArguments, rawOptions) => {
@@ -4762,7 +4688,7 @@ const spawnSubprocessSync = ({ file, commandArguments, options, command, escaped
4762
4688
  });
4763
4689
  if (syncResult.failed) return syncResult;
4764
4690
  const { resultError, exitCode, signal, timedOut, isMaxBuffer } = getExitResultSync(syncResult, options);
4765
- const { output, error: error$1 = resultError } = transformOutputSync({
4691
+ const { output, error = resultError } = transformOutputSync({
4766
4692
  fileDescriptors,
4767
4693
  syncResult,
4768
4694
  options,
@@ -4770,7 +4696,7 @@ const spawnSubprocessSync = ({ file, commandArguments, options, command, escaped
4770
4696
  verboseInfo
4771
4697
  });
4772
4698
  return getSyncResult({
4773
- error: error$1,
4699
+ error,
4774
4700
  exitCode,
4775
4701
  signal,
4776
4702
  timedOut,
@@ -4787,9 +4713,9 @@ const runSubprocessSync = ({ file, commandArguments, options, command, escapedCo
4787
4713
  try {
4788
4714
  addInputOptionsSync(fileDescriptors, options);
4789
4715
  return (0, node_child_process.spawnSync)(file, commandArguments, normalizeSpawnSyncOptions(options));
4790
- } catch (error$1) {
4716
+ } catch (error) {
4791
4717
  return makeEarlyError({
4792
- error: error$1,
4718
+ error,
4793
4719
  command,
4794
4720
  escapedCommand,
4795
4721
  fileDescriptors,
@@ -4799,12 +4725,12 @@ const runSubprocessSync = ({ file, commandArguments, options, command, escapedCo
4799
4725
  });
4800
4726
  }
4801
4727
  };
4802
- const normalizeSpawnSyncOptions = ({ encoding, maxBuffer,...options }) => ({
4728
+ const normalizeSpawnSyncOptions = ({ encoding, maxBuffer, ...options }) => ({
4803
4729
  ...options,
4804
4730
  encoding: "buffer",
4805
4731
  maxBuffer: getMaxBufferSync(maxBuffer)
4806
4732
  });
4807
- const getSyncResult = ({ error: error$1, exitCode, signal, timedOut, isMaxBuffer, stdio, all, options, command, escapedCommand, startTime }) => error$1 === void 0 ? makeSuccessResult({
4733
+ const getSyncResult = ({ error, exitCode, signal, timedOut, isMaxBuffer, stdio, all, options, command, escapedCommand, startTime }) => error === void 0 ? makeSuccessResult({
4808
4734
  command,
4809
4735
  escapedCommand,
4810
4736
  stdio,
@@ -4813,7 +4739,7 @@ const getSyncResult = ({ error: error$1, exitCode, signal, timedOut, isMaxBuffer
4813
4739
  options,
4814
4740
  startTime
4815
4741
  }) : makeError({
4816
- error: error$1,
4742
+ error,
4817
4743
  command,
4818
4744
  escapedCommand,
4819
4745
  timedOut,
@@ -4830,7 +4756,6 @@ const getSyncResult = ({ error: error$1, exitCode, signal, timedOut, isMaxBuffer
4830
4756
  startTime,
4831
4757
  isSync: true
4832
4758
  });
4833
-
4834
4759
  //#endregion
4835
4760
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/get-one.js
4836
4761
  const getOneMessage$1 = ({ anyProcess, channel, isSubprocess, ipc }, { reference = true, filter } = {}) => {
@@ -4858,9 +4783,9 @@ const getOneMessageAsync = async ({ anyProcess, channel, isSubprocess, filter, r
4858
4783
  throwOnDisconnect(ipcEmitter, isSubprocess, controller),
4859
4784
  throwOnStrictError(ipcEmitter, isSubprocess, controller)
4860
4785
  ]);
4861
- } catch (error$1) {
4786
+ } catch (error) {
4862
4787
  disconnect(anyProcess);
4863
- throw error$1;
4788
+ throw error;
4864
4789
  } finally {
4865
4790
  controller.abort();
4866
4791
  removeReference(channel, reference);
@@ -4878,10 +4803,9 @@ const throwOnDisconnect = async (ipcEmitter, isSubprocess, { signal }) => {
4878
4803
  throwOnEarlyDisconnect(isSubprocess);
4879
4804
  };
4880
4805
  const throwOnStrictError = async (ipcEmitter, isSubprocess, { signal }) => {
4881
- const [error$1] = await (0, node_events.once)(ipcEmitter, "strict:error", { signal });
4882
- throw getStrictResponseError(error$1, isSubprocess);
4806
+ const [error] = await (0, node_events.once)(ipcEmitter, "strict:error", { signal });
4807
+ throw getStrictResponseError(error, isSubprocess);
4883
4808
  };
4884
-
4885
4809
  //#endregion
4886
4810
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/get-each.js
4887
4811
  const getEachMessage$1 = ({ anyProcess, channel, isSubprocess, ipc }, { reference = true } = {}) => loopOnMessages({
@@ -4929,8 +4853,8 @@ const stopOnDisconnect = async (anyProcess, ipcEmitter, controller) => {
4929
4853
  };
4930
4854
  const abortOnStrictError = async ({ ipcEmitter, isSubprocess, controller, state }) => {
4931
4855
  try {
4932
- const [error$1] = await (0, node_events.once)(ipcEmitter, "strict:error", { signal: controller.signal });
4933
- state.error = getStrictResponseError(error$1, isSubprocess);
4856
+ const [error] = await (0, node_events.once)(ipcEmitter, "strict:error", { signal: controller.signal });
4857
+ state.error = getStrictResponseError(error, isSubprocess);
4934
4858
  controller.abort();
4935
4859
  } catch {}
4936
4860
  };
@@ -4949,10 +4873,9 @@ const iterateOnMessages = async function* ({ anyProcess, channel, ipcEmitter, is
4949
4873
  if (shouldAwait) await anyProcess;
4950
4874
  }
4951
4875
  };
4952
- const throwIfStrictError = ({ error: error$1 }) => {
4953
- if (error$1) throw error$1;
4876
+ const throwIfStrictError = ({ error }) => {
4877
+ if (error) throw error;
4954
4878
  };
4955
-
4956
4879
  //#endregion
4957
4880
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/methods.js
4958
4881
  const addIpcMethods = (subprocess, { ipc }) => {
@@ -4992,10 +4915,9 @@ const getIpcMethods = (anyProcess, isSubprocess, ipc) => ({
4992
4915
  ipc
4993
4916
  })
4994
4917
  });
4995
-
4996
4918
  //#endregion
4997
4919
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/early-error.js
4998
- const handleEarlyError = ({ error: error$1, command, escapedCommand, fileDescriptors, options, startTime, verboseInfo }) => {
4920
+ const handleEarlyError = ({ error, command, escapedCommand, fileDescriptors, options, startTime, verboseInfo }) => {
4999
4921
  cleanupCustomStreams(fileDescriptors);
5000
4922
  const subprocess = new node_child_process.ChildProcess();
5001
4923
  createDummyStreams(subprocess, fileDescriptors);
@@ -5007,7 +4929,7 @@ const handleEarlyError = ({ error: error$1, command, escapedCommand, fileDescrip
5007
4929
  return {
5008
4930
  subprocess,
5009
4931
  promise: handleDummyPromise(makeEarlyError({
5010
- error: error$1,
4932
+ error,
5011
4933
  command,
5012
4934
  escapedCommand,
5013
4935
  fileDescriptors,
@@ -5048,8 +4970,7 @@ const duplex = () => new node_stream.Duplex({
5048
4970
  read() {},
5049
4971
  write() {}
5050
4972
  });
5051
- const handleDummyPromise = async (error$1, verboseInfo, options) => handleResult(error$1, verboseInfo, options);
5052
-
4973
+ const handleDummyPromise = async (error, verboseInfo, options) => handleResult(error, verboseInfo, options);
5053
4974
  //#endregion
5054
4975
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/handle-async.js
5055
4976
  const handleStdioAsync = (options, verboseInfo) => handleStdio(addPropertiesAsync, options, verboseInfo, false);
@@ -5090,7 +5011,6 @@ const addPropertiesAsync = {
5090
5011
  uint8Array: forbiddenIfAsync
5091
5012
  }
5092
5013
  };
5093
-
5094
5014
  //#endregion
5095
5015
  //#region ../../node_modules/.pnpm/@sindresorhus+merge-streams@4.0.0/node_modules/@sindresorhus/merge-streams/index.js
5096
5016
  function mergeStreams(streams) {
@@ -5162,9 +5082,9 @@ const onMergedStreamEnd = async (passThroughStream, { signal }) => {
5162
5082
  signal,
5163
5083
  cleanup: true
5164
5084
  });
5165
- } catch (error$1) {
5166
- errorOrAbortStream(passThroughStream, error$1);
5167
- throw error$1;
5085
+ } catch (error) {
5086
+ errorOrAbortStream(passThroughStream, error);
5087
+ throw error;
5168
5088
  }
5169
5089
  };
5170
5090
  const onInputStreamsUnpipe = async (passThroughStream, streams, unpipeEvent, { signal }) => {
@@ -5173,7 +5093,7 @@ const onInputStreamsUnpipe = async (passThroughStream, streams, unpipeEvent, { s
5173
5093
  const validateStream = (stream) => {
5174
5094
  if (typeof stream?.pipe !== "function") throw new TypeError(`Expected a readable stream, got: \`${typeof stream}\`.`);
5175
5095
  };
5176
- const endWhenStreamsDone = async ({ passThroughStream, stream, streams, ended, aborted: aborted$1, onFinished, unpipeEvent }) => {
5096
+ const endWhenStreamsDone = async ({ passThroughStream, stream, streams, ended, aborted, onFinished, unpipeEvent }) => {
5177
5097
  updateMaxListeners(passThroughStream, PASSTHROUGH_LISTENERS_PER_STREAM);
5178
5098
  const controller = new AbortController();
5179
5099
  try {
@@ -5184,14 +5104,14 @@ const endWhenStreamsDone = async ({ passThroughStream, stream, streams, ended, a
5184
5104
  stream,
5185
5105
  streams,
5186
5106
  ended,
5187
- aborted: aborted$1,
5107
+ aborted,
5188
5108
  controller
5189
5109
  }),
5190
5110
  onInputStreamUnpipe({
5191
5111
  stream,
5192
5112
  streams,
5193
5113
  ended,
5194
- aborted: aborted$1,
5114
+ aborted,
5195
5115
  unpipeEvent,
5196
5116
  controller
5197
5117
  })
@@ -5200,18 +5120,18 @@ const endWhenStreamsDone = async ({ passThroughStream, stream, streams, ended, a
5200
5120
  controller.abort();
5201
5121
  updateMaxListeners(passThroughStream, -PASSTHROUGH_LISTENERS_PER_STREAM);
5202
5122
  }
5203
- if (streams.size > 0 && streams.size === ended.size + aborted$1.size) if (ended.size === 0 && aborted$1.size > 0) abortStream(passThroughStream);
5123
+ if (streams.size > 0 && streams.size === ended.size + aborted.size) if (ended.size === 0 && aborted.size > 0) abortStream(passThroughStream);
5204
5124
  else endStream(passThroughStream);
5205
5125
  };
5206
5126
  const afterMergedStreamFinished = async (onFinished, stream, { signal }) => {
5207
5127
  try {
5208
5128
  await onFinished;
5209
5129
  if (!signal.aborted) abortStream(stream);
5210
- } catch (error$1) {
5211
- if (!signal.aborted) errorOrAbortStream(stream, error$1);
5130
+ } catch (error) {
5131
+ if (!signal.aborted) errorOrAbortStream(stream, error);
5212
5132
  }
5213
5133
  };
5214
- const onInputStreamEnd = async ({ passThroughStream, stream, streams, ended, aborted: aborted$1, controller: { signal } }) => {
5134
+ const onInputStreamEnd = async ({ passThroughStream, stream, streams, ended, aborted, controller: { signal } }) => {
5215
5135
  try {
5216
5136
  await (0, node_stream_promises.finished)(stream, {
5217
5137
  signal,
@@ -5220,44 +5140,43 @@ const onInputStreamEnd = async ({ passThroughStream, stream, streams, ended, abo
5220
5140
  writable: false
5221
5141
  });
5222
5142
  if (streams.has(stream)) ended.add(stream);
5223
- } catch (error$1) {
5143
+ } catch (error) {
5224
5144
  if (signal.aborted || !streams.has(stream)) return;
5225
- if (isAbortError(error$1)) aborted$1.add(stream);
5226
- else errorStream(passThroughStream, error$1);
5145
+ if (isAbortError(error)) aborted.add(stream);
5146
+ else errorStream(passThroughStream, error);
5227
5147
  }
5228
5148
  };
5229
- const onInputStreamUnpipe = async ({ stream, streams, ended, aborted: aborted$1, unpipeEvent, controller: { signal } }) => {
5149
+ const onInputStreamUnpipe = async ({ stream, streams, ended, aborted, unpipeEvent, controller: { signal } }) => {
5230
5150
  await (0, node_events.once)(stream, unpipeEvent, { signal });
5231
5151
  if (!stream.readable) return (0, node_events.once)(signal, "abort", { signal });
5232
5152
  streams.delete(stream);
5233
5153
  ended.delete(stream);
5234
- aborted$1.delete(stream);
5154
+ aborted.delete(stream);
5235
5155
  };
5236
5156
  const endStream = (stream) => {
5237
5157
  if (stream.writable) stream.end();
5238
5158
  };
5239
- const errorOrAbortStream = (stream, error$1) => {
5240
- if (isAbortError(error$1)) abortStream(stream);
5241
- else errorStream(stream, error$1);
5159
+ const errorOrAbortStream = (stream, error) => {
5160
+ if (isAbortError(error)) abortStream(stream);
5161
+ else errorStream(stream, error);
5242
5162
  };
5243
- const isAbortError = (error$1) => error$1?.code === "ERR_STREAM_PREMATURE_CLOSE";
5163
+ const isAbortError = (error) => error?.code === "ERR_STREAM_PREMATURE_CLOSE";
5244
5164
  const abortStream = (stream) => {
5245
5165
  if (stream.readable || stream.writable) stream.destroy();
5246
5166
  };
5247
- const errorStream = (stream, error$1) => {
5167
+ const errorStream = (stream, error) => {
5248
5168
  if (!stream.destroyed) {
5249
5169
  stream.once("error", noop);
5250
- stream.destroy(error$1);
5170
+ stream.destroy(error);
5251
5171
  }
5252
5172
  };
5253
5173
  const noop = () => {};
5254
- const updateMaxListeners = (passThroughStream, increment$1) => {
5174
+ const updateMaxListeners = (passThroughStream, increment) => {
5255
5175
  const maxListeners = passThroughStream.getMaxListeners();
5256
- if (maxListeners !== 0 && maxListeners !== Number.POSITIVE_INFINITY) passThroughStream.setMaxListeners(maxListeners + increment$1);
5176
+ if (maxListeners !== 0 && maxListeners !== Number.POSITIVE_INFINITY) passThroughStream.setMaxListeners(maxListeners + increment);
5257
5177
  };
5258
5178
  const PASSTHROUGH_LISTENERS_COUNT = 2;
5259
5179
  const PASSTHROUGH_LISTENERS_PER_STREAM = 1;
5260
-
5261
5180
  //#endregion
5262
5181
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/pipeline.js
5263
5182
  const pipeStreams = (source, destination) => {
@@ -5293,7 +5212,6 @@ const onDestinationFinish = async (source, destination) => {
5293
5212
  const abortSourceStream = (source) => {
5294
5213
  if (source.readable) source.destroy();
5295
5214
  };
5296
-
5297
5215
  //#endregion
5298
5216
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/output-async.js
5299
5217
  const pipeOutputAsync = (subprocess, fileDescriptors, controller) => {
@@ -5334,7 +5252,6 @@ const setStandardStreamMaxListeners = (stream, { signal }) => {
5334
5252
  if (isStandardStream(stream)) incrementMaxListeners(stream, MAX_LISTENERS_INCREMENT, signal);
5335
5253
  };
5336
5254
  const MAX_LISTENERS_INCREMENT = 2;
5337
-
5338
5255
  //#endregion
5339
5256
  //#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
5340
5257
  /**
@@ -5367,10 +5284,9 @@ const signals = [];
5367
5284
  signals.push("SIGHUP", "SIGINT", "SIGTERM");
5368
5285
  if (process.platform !== "win32") signals.push("SIGALRM", "SIGABRT", "SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
5369
5286
  if (process.platform === "linux") signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
5370
-
5371
5287
  //#endregion
5372
5288
  //#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/index.js
5373
- const processOk = (process$9) => !!process$9 && typeof process$9 === "object" && typeof process$9.removeListener === "function" && typeof process$9.emit === "function" && typeof process$9.reallyExit === "function" && typeof process$9.listeners === "function" && typeof process$9.kill === "function" && typeof process$9.pid === "number" && typeof process$9.on === "function";
5289
+ const processOk = (process) => !!process && typeof process === "object" && typeof process.removeListener === "function" && typeof process.emit === "function" && typeof process.reallyExit === "function" && typeof process.listeners === "function" && typeof process.kill === "function" && typeof process.pid === "number" && typeof process.on === "function";
5374
5290
  const kExitEmitter = Symbol.for("signal-exit emitter");
5375
5291
  const global$1 = globalThis;
5376
5292
  const ObjectDefineProperty = Object.defineProperty.bind(Object);
@@ -5399,12 +5315,12 @@ var Emitter = class {
5399
5315
  }
5400
5316
  removeListener(ev, fn) {
5401
5317
  const list = this.listeners[ev];
5402
- const i$1 = list.indexOf(fn);
5318
+ const i = list.indexOf(fn);
5403
5319
  /* c8 ignore start */
5404
- if (i$1 === -1) return;
5320
+ if (i === -1) return;
5405
5321
  /* c8 ignore stop */
5406
- if (i$1 === 0 && list.length === 1) list.length = 0;
5407
- else list.splice(i$1, 1);
5322
+ if (i === 0 && list.length === 1) list.length = 0;
5323
+ else list.splice(i, 1);
5408
5324
  }
5409
5325
  emit(ev, code, signal) {
5410
5326
  if (this.emitted[ev]) return false;
@@ -5446,27 +5362,27 @@ var SignalExit = class extends SignalExitBase {
5446
5362
  #originalProcessReallyExit;
5447
5363
  #sigListeners = {};
5448
5364
  #loaded = false;
5449
- constructor(process$9) {
5365
+ constructor(process) {
5450
5366
  super();
5451
- this.#process = process$9;
5367
+ this.#process = process;
5452
5368
  this.#sigListeners = {};
5453
5369
  for (const sig of signals) this.#sigListeners[sig] = () => {
5454
5370
  const listeners = this.#process.listeners(sig);
5455
- let { count: count$1 } = this.#emitter;
5371
+ let { count } = this.#emitter;
5456
5372
  /* c8 ignore start */
5457
- const p = process$9;
5458
- if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") count$1 += p.__signal_exit_emitter__.count;
5373
+ const p = process;
5374
+ if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") count += p.__signal_exit_emitter__.count;
5459
5375
  /* c8 ignore stop */
5460
- if (listeners.length === count$1) {
5376
+ if (listeners.length === count) {
5461
5377
  this.unload();
5462
5378
  const ret = this.#emitter.emit("exit", null, sig);
5463
5379
  /* c8 ignore start */
5464
5380
  const s = sig === "SIGHUP" ? this.#hupSig : sig;
5465
- if (!ret) process$9.kill(process$9.pid, s);
5381
+ if (!ret) process.kill(process.pid, s);
5466
5382
  }
5467
5383
  };
5468
- this.#originalProcessReallyExit = process$9.reallyExit;
5469
- this.#originalProcessEmit = process$9.emit;
5384
+ this.#originalProcessReallyExit = process.reallyExit;
5385
+ this.#originalProcessEmit = process.emit;
5470
5386
  }
5471
5387
  onExit(cb, opts) {
5472
5388
  /* c8 ignore start */
@@ -5488,8 +5404,8 @@ var SignalExit = class extends SignalExitBase {
5488
5404
  const fn = this.#sigListeners[sig];
5489
5405
  if (fn) this.#process.on(sig, fn);
5490
5406
  } catch (_) {}
5491
- this.#process.emit = (ev, ...a$1) => {
5492
- return this.#processEmit(ev, ...a$1);
5407
+ this.#process.emit = (ev, ...a) => {
5408
+ return this.#processEmit(ev, ...a);
5493
5409
  };
5494
5410
  this.#process.reallyExit = (code) => {
5495
5411
  return this.#processReallyExit(code);
@@ -5535,7 +5451,6 @@ var SignalExit = class extends SignalExitBase {
5535
5451
  };
5536
5452
  const process$1 = globalThis.process;
5537
5453
  const { onExit, load, unload } = signalExitWrap(processOk(process$1) ? new SignalExit(process$1) : new SignalExitFallback());
5538
-
5539
5454
  //#endregion
5540
5455
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/terminate/cleanup.js
5541
5456
  const cleanupOnExit = (subprocess, { cleanup, detached }, { signal }) => {
@@ -5547,7 +5462,6 @@ const cleanupOnExit = (subprocess, { cleanup, detached }, { signal }) => {
5547
5462
  removeExitHandler();
5548
5463
  });
5549
5464
  };
5550
-
5551
5465
  //#endregion
5552
5466
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/pipe/pipe-arguments.js
5553
5467
  const normalizePipeArguments = ({ source, sourcePromise, boundOptions, createNested }, ...pipeArguments) => {
@@ -5577,8 +5491,8 @@ const getDestinationStream = (boundOptions, createNested, pipeArguments) => {
5577
5491
  from,
5578
5492
  unpipeSignal
5579
5493
  };
5580
- } catch (error$1) {
5581
- return { destinationError: error$1 };
5494
+ } catch (error) {
5495
+ return { destinationError: error };
5582
5496
  }
5583
5497
  };
5584
5498
  const getDestination = (boundOptions, createNested, firstArgument, ...pipeArguments) => {
@@ -5611,22 +5525,21 @@ const mapDestinationArguments = ({ options }) => ({ options: {
5611
5525
  const getSourceStream = (source, from) => {
5612
5526
  try {
5613
5527
  return { sourceStream: getFromStream(source, from) };
5614
- } catch (error$1) {
5615
- return { sourceError: error$1 };
5528
+ } catch (error) {
5529
+ return { sourceError: error };
5616
5530
  }
5617
5531
  };
5618
-
5619
5532
  //#endregion
5620
5533
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/pipe/throw.js
5621
5534
  const handlePipeArgumentsError = ({ sourceStream, sourceError, destinationStream, destinationError, fileDescriptors, sourceOptions, startTime }) => {
5622
- const error$1 = getPipeArgumentsError({
5535
+ const error = getPipeArgumentsError({
5623
5536
  sourceStream,
5624
5537
  sourceError,
5625
5538
  destinationStream,
5626
5539
  destinationError
5627
5540
  });
5628
- if (error$1 !== void 0) throw createNonCommandError({
5629
- error: error$1,
5541
+ if (error !== void 0) throw createNonCommandError({
5542
+ error,
5630
5543
  fileDescriptors,
5631
5544
  sourceOptions,
5632
5545
  startTime
@@ -5643,8 +5556,8 @@ const getPipeArgumentsError = ({ sourceStream, sourceError, destinationStream, d
5643
5556
  return sourceError;
5644
5557
  }
5645
5558
  };
5646
- const createNonCommandError = ({ error: error$1, fileDescriptors, sourceOptions, startTime }) => makeEarlyError({
5647
- error: error$1,
5559
+ const createNonCommandError = ({ error, fileDescriptors, sourceOptions, startTime }) => makeEarlyError({
5560
+ error,
5648
5561
  command: PIPE_COMMAND_MESSAGE,
5649
5562
  escapedCommand: PIPE_COMMAND_MESSAGE,
5650
5563
  fileDescriptors,
@@ -5653,7 +5566,6 @@ const createNonCommandError = ({ error: error$1, fileDescriptors, sourceOptions,
5653
5566
  isSync: false
5654
5567
  });
5655
5568
  const PIPE_COMMAND_MESSAGE = "source.pipe(destination)";
5656
-
5657
5569
  //#endregion
5658
5570
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/pipe/sequence.js
5659
5571
  const waitForBothSubprocesses = async (subprocessPromises) => {
@@ -5663,7 +5575,6 @@ const waitForBothSubprocesses = async (subprocessPromises) => {
5663
5575
  if (sourceStatus === "rejected") throw sourceResult;
5664
5576
  return destinationResult;
5665
5577
  };
5666
-
5667
5578
  //#endregion
5668
5579
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/pipe/streaming.js
5669
5580
  const pipeSubprocessStream = (sourceStream, destinationStream, maxListenersController) => {
@@ -5697,7 +5608,6 @@ const cleanupMergedStreamsMap = async (destinationStream) => {
5697
5608
  const MERGED_STREAMS = /* @__PURE__ */ new WeakMap();
5698
5609
  const SOURCE_LISTENERS_PER_PIPE = 2;
5699
5610
  const DESTINATION_LISTENERS_PER_PIPE = 1;
5700
-
5701
5611
  //#endregion
5702
5612
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/pipe/abort.js
5703
5613
  const unpipeOnAbort = (unpipeSignal, unpipeContext) => unpipeSignal === void 0 ? [] : [unpipeOnSignalAbort(unpipeSignal, unpipeContext)];
@@ -5711,7 +5621,6 @@ const unpipeOnSignalAbort = async (unpipeSignal, { sourceStream, mergedStream, f
5711
5621
  startTime
5712
5622
  });
5713
5623
  };
5714
-
5715
5624
  //#endregion
5716
5625
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/pipe/setup.js
5717
5626
  const pipeToSubprocess = (sourceInfo, ...pipeArguments) => {
@@ -5722,7 +5631,7 @@ const pipeToSubprocess = (sourceInfo, ...pipeArguments) => {
5722
5631
  ...pipeArguments[0]
5723
5632
  }
5724
5633
  });
5725
- const { destination,...normalizedInfo } = normalizePipeArguments(sourceInfo, ...pipeArguments);
5634
+ const { destination, ...normalizedInfo } = normalizePipeArguments(sourceInfo, ...pipeArguments);
5726
5635
  const promise = handlePipePromise({
5727
5636
  ...normalizedInfo,
5728
5637
  destination
@@ -5761,7 +5670,6 @@ const handlePipePromise = async ({ sourcePromise, sourceStream, sourceOptions, s
5761
5670
  }
5762
5671
  };
5763
5672
  const getSubprocessPromises = (sourcePromise, destination) => Promise.allSettled([sourcePromise, destination]);
5764
-
5765
5673
  //#endregion
5766
5674
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/iterate.js
5767
5675
  const iterateOnSubprocessStream = ({ subprocessStdout, subprocess, binary, shouldEncode, encoding, preserveNewlines }) => {
@@ -5784,7 +5692,7 @@ const stopReadingOnExit = async (subprocess, controller) => {
5784
5692
  controller.abort();
5785
5693
  }
5786
5694
  };
5787
- const iterateForResult = ({ stream, onStreamEnd, lines, encoding, stripFinalNewline: stripFinalNewline$1, allMixed }) => {
5695
+ const iterateForResult = ({ stream, onStreamEnd, lines, encoding, stripFinalNewline, allMixed }) => {
5788
5696
  const controller = new AbortController();
5789
5697
  stopReadingOnStreamEnd(onStreamEnd, controller, stream);
5790
5698
  const objectMode = stream.readableObjectMode && !allMixed;
@@ -5795,7 +5703,7 @@ const iterateForResult = ({ stream, onStreamEnd, lines, encoding, stripFinalNewl
5795
5703
  shouldEncode: !objectMode,
5796
5704
  encoding,
5797
5705
  shouldSplit: !objectMode && lines,
5798
- preserveNewlines: !stripFinalNewline$1
5706
+ preserveNewlines: !stripFinalNewline
5799
5707
  });
5800
5708
  };
5801
5709
  const stopReadingOnStreamEnd = async (onStreamEnd, controller, stream) => {
@@ -5834,17 +5742,16 @@ const iterateOnData = async function* ({ onStdoutChunk, controller, binary, shou
5834
5742
  });
5835
5743
  try {
5836
5744
  for await (const [chunk] of onStdoutChunk) yield* transformChunkSync(chunk, generators, 0);
5837
- } catch (error$1) {
5838
- if (!controller.signal.aborted) throw error$1;
5745
+ } catch (error) {
5746
+ if (!controller.signal.aborted) throw error;
5839
5747
  } finally {
5840
5748
  yield* finalChunksSync(generators);
5841
5749
  }
5842
5750
  };
5843
5751
  const getGenerators = ({ binary, shouldEncode, encoding, shouldSplit, preserveNewlines }) => [getEncodingTransformGenerator(binary, encoding, !shouldEncode), getSplitLinesGenerator(binary, preserveNewlines, !shouldSplit, {})].filter(Boolean);
5844
-
5845
5752
  //#endregion
5846
5753
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/contents.js
5847
- const getStreamOutput = async ({ stream, onStreamEnd, fdNumber, encoding, buffer, maxBuffer, lines, allMixed, stripFinalNewline: stripFinalNewline$1, verboseInfo, streamInfo }) => {
5754
+ const getStreamOutput = async ({ stream, onStreamEnd, fdNumber, encoding, buffer, maxBuffer, lines, allMixed, stripFinalNewline, verboseInfo, streamInfo }) => {
5848
5755
  const logPromise = logOutputAsync({
5849
5756
  stream,
5850
5757
  onStreamEnd,
@@ -5863,7 +5770,7 @@ const getStreamOutput = async ({ stream, onStreamEnd, fdNumber, encoding, buffer
5863
5770
  onStreamEnd,
5864
5771
  lines,
5865
5772
  encoding,
5866
- stripFinalNewline: getStripFinalNewline(stripFinalNewline$1, fdNumber),
5773
+ stripFinalNewline: getStripFinalNewline(stripFinalNewline, fdNumber),
5867
5774
  allMixed
5868
5775
  });
5869
5776
  const [output] = await Promise.all([getStreamContents({
@@ -5901,9 +5808,9 @@ const getStreamContents = async ({ stream, stream: { readableObjectMode }, itera
5901
5808
  if (readableObjectMode || lines) return await getStreamAsArray(iterable, { maxBuffer });
5902
5809
  if (encoding === "buffer") return new Uint8Array(await getStreamAsArrayBuffer(iterable, { maxBuffer }));
5903
5810
  return await getStreamAsString(iterable, { maxBuffer });
5904
- } catch (error$1) {
5811
+ } catch (error) {
5905
5812
  return handleBufferedData(handleMaxBuffer({
5906
- error: error$1,
5813
+ error,
5907
5814
  stream,
5908
5815
  readableObjectMode,
5909
5816
  lines,
@@ -5915,12 +5822,11 @@ const getStreamContents = async ({ stream, stream: { readableObjectMode }, itera
5915
5822
  const getBufferedData = async (streamPromise) => {
5916
5823
  try {
5917
5824
  return await streamPromise;
5918
- } catch (error$1) {
5919
- return handleBufferedData(error$1);
5825
+ } catch (error) {
5826
+ return handleBufferedData(error);
5920
5827
  }
5921
5828
  };
5922
5829
  const handleBufferedData = ({ bufferedData }) => isArrayBuffer(bufferedData) ? new Uint8Array(bufferedData) : bufferedData;
5923
-
5924
5830
  //#endregion
5925
5831
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/resolve/wait-stream.js
5926
5832
  const waitForStream = async (stream, fdNumber, streamInfo, { isSameDirection, stopOnExit = false } = {}) => {
@@ -5931,8 +5837,8 @@ const waitForStream = async (stream, fdNumber, streamInfo, { isSameDirection, st
5931
5837
  cleanup: true,
5932
5838
  signal: abortController.signal
5933
5839
  })]);
5934
- } catch (error$1) {
5935
- if (!state.stdinCleanedUp) handleStreamError(error$1, fdNumber, streamInfo, isSameDirection);
5840
+ } catch (error) {
5841
+ if (!state.stdinCleanedUp) handleStreamError(error, fdNumber, streamInfo, isSameDirection);
5936
5842
  } finally {
5937
5843
  abortController.abort();
5938
5844
  }
@@ -5952,21 +5858,20 @@ const spyOnStdinDestroy = (subprocessStdin, subprocess, state) => {
5952
5858
  const setStdinCleanedUp = ({ exitCode, signalCode }, state) => {
5953
5859
  if (exitCode !== null || signalCode !== null) state.stdinCleanedUp = true;
5954
5860
  };
5955
- const handleStreamError = (error$1, fdNumber, streamInfo, isSameDirection) => {
5956
- if (!shouldIgnoreStreamError(error$1, fdNumber, streamInfo, isSameDirection)) throw error$1;
5861
+ const handleStreamError = (error, fdNumber, streamInfo, isSameDirection) => {
5862
+ if (!shouldIgnoreStreamError(error, fdNumber, streamInfo, isSameDirection)) throw error;
5957
5863
  };
5958
- const shouldIgnoreStreamError = (error$1, fdNumber, streamInfo, isSameDirection = true) => {
5959
- if (streamInfo.propagating) return isStreamEpipe(error$1) || isStreamAbort(error$1);
5864
+ const shouldIgnoreStreamError = (error, fdNumber, streamInfo, isSameDirection = true) => {
5865
+ if (streamInfo.propagating) return isStreamEpipe(error) || isStreamAbort(error);
5960
5866
  streamInfo.propagating = true;
5961
- return isInputFileDescriptor(streamInfo, fdNumber) === isSameDirection ? isStreamEpipe(error$1) : isStreamAbort(error$1);
5867
+ return isInputFileDescriptor(streamInfo, fdNumber) === isSameDirection ? isStreamEpipe(error) : isStreamAbort(error);
5962
5868
  };
5963
5869
  const isInputFileDescriptor = ({ fileDescriptors }, fdNumber) => fdNumber !== "all" && fileDescriptors[fdNumber].direction === "input";
5964
- const isStreamAbort = (error$1) => error$1?.code === "ERR_STREAM_PREMATURE_CLOSE";
5965
- const isStreamEpipe = (error$1) => error$1?.code === "EPIPE";
5966
-
5870
+ const isStreamAbort = (error) => error?.code === "ERR_STREAM_PREMATURE_CLOSE";
5871
+ const isStreamEpipe = (error) => error?.code === "EPIPE";
5967
5872
  //#endregion
5968
5873
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/resolve/stdio.js
5969
- const waitForStdioStreams = ({ subprocess, encoding, buffer, maxBuffer, lines, stripFinalNewline: stripFinalNewline$1, verboseInfo, streamInfo }) => subprocess.stdio.map((stream, fdNumber) => waitForSubprocessStream({
5874
+ const waitForStdioStreams = ({ subprocess, encoding, buffer, maxBuffer, lines, stripFinalNewline, verboseInfo, streamInfo }) => subprocess.stdio.map((stream, fdNumber) => waitForSubprocessStream({
5970
5875
  stream,
5971
5876
  fdNumber,
5972
5877
  encoding,
@@ -5974,11 +5879,11 @@ const waitForStdioStreams = ({ subprocess, encoding, buffer, maxBuffer, lines, s
5974
5879
  maxBuffer: maxBuffer[fdNumber],
5975
5880
  lines: lines[fdNumber],
5976
5881
  allMixed: false,
5977
- stripFinalNewline: stripFinalNewline$1,
5882
+ stripFinalNewline,
5978
5883
  verboseInfo,
5979
5884
  streamInfo
5980
5885
  }));
5981
- const waitForSubprocessStream = async ({ stream, fdNumber, encoding, buffer, maxBuffer, lines, allMixed, stripFinalNewline: stripFinalNewline$1, verboseInfo, streamInfo }) => {
5886
+ const waitForSubprocessStream = async ({ stream, fdNumber, encoding, buffer, maxBuffer, lines, allMixed, stripFinalNewline, verboseInfo, streamInfo }) => {
5982
5887
  if (!stream) return;
5983
5888
  const onStreamEnd = waitForStream(stream, fdNumber, streamInfo);
5984
5889
  if (isInputFileDescriptor(streamInfo, fdNumber)) {
@@ -5994,24 +5899,23 @@ const waitForSubprocessStream = async ({ stream, fdNumber, encoding, buffer, max
5994
5899
  maxBuffer,
5995
5900
  lines,
5996
5901
  allMixed,
5997
- stripFinalNewline: stripFinalNewline$1,
5902
+ stripFinalNewline,
5998
5903
  verboseInfo,
5999
5904
  streamInfo
6000
5905
  }), onStreamEnd]);
6001
5906
  return output;
6002
5907
  };
6003
-
6004
5908
  //#endregion
6005
5909
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/resolve/all-async.js
6006
5910
  const makeAllStream = ({ stdout, stderr }, { all }) => all && (stdout || stderr) ? mergeStreams([stdout, stderr].filter(Boolean)) : void 0;
6007
- const waitForAllStream = ({ subprocess, encoding, buffer, maxBuffer, lines, stripFinalNewline: stripFinalNewline$1, verboseInfo, streamInfo }) => waitForSubprocessStream({
5911
+ const waitForAllStream = ({ subprocess, encoding, buffer, maxBuffer, lines, stripFinalNewline, verboseInfo, streamInfo }) => waitForSubprocessStream({
6008
5912
  ...getAllStream(subprocess, buffer),
6009
5913
  fdNumber: "all",
6010
5914
  encoding,
6011
5915
  maxBuffer: maxBuffer[1] + maxBuffer[2],
6012
5916
  lines: lines[1] || lines[2],
6013
5917
  allMixed: getAllMixed(subprocess),
6014
- stripFinalNewline: stripFinalNewline$1,
5918
+ stripFinalNewline,
6015
5919
  verboseInfo,
6016
5920
  streamInfo
6017
5921
  });
@@ -6035,7 +5939,6 @@ const getAllStream = ({ stdout, stderr, all }, [, bufferStdout, bufferStderr]) =
6035
5939
  };
6036
5940
  };
6037
5941
  const getAllMixed = ({ all, stdout, stderr }) => all && stdout && stderr && stdout.readableObjectMode !== stderr.readableObjectMode;
6038
-
6039
5942
  //#endregion
6040
5943
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/ipc.js
6041
5944
  const shouldLogIpc = (verboseInfo) => isFullVerbose(verboseInfo, "ipc");
@@ -6047,12 +5950,11 @@ const logIpcOutput = (message, verboseInfo) => {
6047
5950
  verboseInfo
6048
5951
  });
6049
5952
  };
6050
-
6051
5953
  //#endregion
6052
5954
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/buffer-messages.js
6053
5955
  const waitForIpcOutput = async ({ subprocess, buffer: bufferArray, maxBuffer: maxBufferArray, ipc, ipcOutput, verboseInfo }) => {
6054
5956
  if (!ipc) return ipcOutput;
6055
- const isVerbose$1 = shouldLogIpc(verboseInfo);
5957
+ const isVerbose = shouldLogIpc(verboseInfo);
6056
5958
  const buffer = getFdSpecificValue(bufferArray, "ipc");
6057
5959
  const maxBuffer = getFdSpecificValue(maxBufferArray, "ipc");
6058
5960
  for await (const message of loopOnMessages({
@@ -6067,7 +5969,7 @@ const waitForIpcOutput = async ({ subprocess, buffer: bufferArray, maxBuffer: ma
6067
5969
  checkIpcMaxBuffer(subprocess, ipcOutput, maxBuffer);
6068
5970
  ipcOutput.push(message);
6069
5971
  }
6070
- if (isVerbose$1) logIpcOutput(message, verboseInfo);
5972
+ if (isVerbose) logIpcOutput(message, verboseInfo);
6071
5973
  }
6072
5974
  return ipcOutput;
6073
5975
  };
@@ -6075,10 +5977,9 @@ const getBufferedIpcOutput = async (ipcOutputPromise, ipcOutput) => {
6075
5977
  await Promise.allSettled([ipcOutputPromise]);
6076
5978
  return ipcOutput;
6077
5979
  };
6078
-
6079
5980
  //#endregion
6080
5981
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/resolve/wait-subprocess.js
6081
- const waitForSubprocessResult = async ({ subprocess, options: { encoding, buffer, maxBuffer, lines, timeoutDuration: timeout, cancelSignal, gracefulCancel, forceKillAfterDelay, stripFinalNewline: stripFinalNewline$1, ipc, ipcInput }, context, verboseInfo, fileDescriptors, originalStreams, onInternalError, controller }) => {
5982
+ const waitForSubprocessResult = async ({ subprocess, options: { encoding, buffer, maxBuffer, lines, timeoutDuration: timeout, cancelSignal, gracefulCancel, forceKillAfterDelay, stripFinalNewline, ipc, ipcInput }, context, verboseInfo, fileDescriptors, originalStreams, onInternalError, controller }) => {
6082
5983
  const exitPromise = waitForExit(subprocess, context);
6083
5984
  const streamInfo = {
6084
5985
  originalStreams,
@@ -6093,7 +5994,7 @@ const waitForSubprocessResult = async ({ subprocess, options: { encoding, buffer
6093
5994
  buffer,
6094
5995
  maxBuffer,
6095
5996
  lines,
6096
- stripFinalNewline: stripFinalNewline$1,
5997
+ stripFinalNewline,
6097
5998
  verboseInfo,
6098
5999
  streamInfo
6099
6000
  });
@@ -6103,7 +6004,7 @@ const waitForSubprocessResult = async ({ subprocess, options: { encoding, buffer
6103
6004
  buffer,
6104
6005
  maxBuffer,
6105
6006
  lines,
6106
- stripFinalNewline: stripFinalNewline$1,
6007
+ stripFinalNewline,
6107
6008
  verboseInfo,
6108
6009
  streamInfo
6109
6010
  });
@@ -6149,10 +6050,10 @@ const waitForSubprocessResult = async ({ subprocess, options: { encoding, buffer
6149
6050
  controller
6150
6051
  })
6151
6052
  ]);
6152
- } catch (error$1) {
6053
+ } catch (error) {
6153
6054
  context.terminationReason ??= "other";
6154
6055
  return Promise.all([
6155
- { error: error$1 },
6056
+ { error },
6156
6057
  exitPromise,
6157
6058
  Promise.all(stdioPromises.map((stdioPromise) => getBufferedData(stdioPromise))),
6158
6059
  getBufferedData(allPromise),
@@ -6168,10 +6069,9 @@ const waitForCustomStreamsEnd = (fileDescriptors, streamInfo) => fileDescriptors
6168
6069
  stopOnExit: type === "native"
6169
6070
  })));
6170
6071
  const throwOnSubprocessError = async (subprocess, { signal }) => {
6171
- const [error$1] = await (0, node_events.once)(subprocess, "error", { signal });
6172
- throw error$1;
6072
+ const [error] = await (0, node_events.once)(subprocess, "error", { signal });
6073
+ throw error;
6173
6074
  };
6174
-
6175
6075
  //#endregion
6176
6076
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/concurrent.js
6177
6077
  const initializeConcurrentStreams = () => ({
@@ -6195,7 +6095,6 @@ const waitForConcurrentStreams = async ({ resolve, promises }, subprocess) => {
6195
6095
  const [isSubprocessExit] = await Promise.race([Promise.allSettled([true, subprocess]), Promise.all([false, ...promises])]);
6196
6096
  return !isSubprocessExit;
6197
6097
  };
6198
-
6199
6098
  //#endregion
6200
6099
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/shared.js
6201
6100
  const safeWaitForSubprocessStdin = async (subprocessStdin) => {
@@ -6224,15 +6123,14 @@ const waitForSubprocessStdout = async (subprocessStdout) => {
6224
6123
  writable: false
6225
6124
  });
6226
6125
  };
6227
- const waitForSubprocess = async (subprocess, error$1) => {
6126
+ const waitForSubprocess = async (subprocess, error) => {
6228
6127
  await subprocess;
6229
- if (error$1) throw error$1;
6128
+ if (error) throw error;
6230
6129
  };
6231
- const destroyOtherStream = (stream, isOpen, error$1) => {
6232
- if (error$1 && !isStreamAbort(error$1)) stream.destroy(error$1);
6130
+ const destroyOtherStream = (stream, isOpen, error) => {
6131
+ if (error && !isStreamAbort(error)) stream.destroy(error);
6233
6132
  else if (isOpen) stream.destroy();
6234
6133
  };
6235
-
6236
6134
  //#endregion
6237
6135
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/readable.js
6238
6136
  const createReadable = ({ subprocess, concurrentStreams, encoding }, { from, binary: binaryOption = true, preserveNewlines = true } = {}) => {
@@ -6246,7 +6144,7 @@ const createReadable = ({ subprocess, concurrentStreams, encoding }, { from, bin
6246
6144
  encoding,
6247
6145
  preserveNewlines
6248
6146
  });
6249
- const readable$1 = new node_stream.Readable({
6147
+ const readable = new node_stream.Readable({
6250
6148
  read,
6251
6149
  destroy: (0, node_util.callbackify)(onReadableDestroy.bind(void 0, {
6252
6150
  subprocessStdout,
@@ -6260,10 +6158,10 @@ const createReadable = ({ subprocess, concurrentStreams, encoding }, { from, bin
6260
6158
  onStdoutFinished({
6261
6159
  subprocessStdout,
6262
6160
  onStdoutDataDone,
6263
- readable: readable$1,
6161
+ readable,
6264
6162
  subprocess
6265
6163
  });
6266
- return readable$1;
6164
+ return readable;
6267
6165
  };
6268
6166
  const getSubprocessStdout = (subprocess, from, concurrentStreams) => {
6269
6167
  const subprocessStdout = getFromStream(subprocess, from);
@@ -6298,40 +6196,39 @@ const getReadableMethods = ({ subprocessStdout, subprocess, binary, encoding, pr
6298
6196
  onStdoutDataDone
6299
6197
  };
6300
6198
  };
6301
- const onRead = async (readable$1, onStdoutData, onStdoutDataDone) => {
6199
+ const onRead = async (readable, onStdoutData, onStdoutDataDone) => {
6302
6200
  try {
6303
6201
  const { value, done } = await onStdoutData.next();
6304
6202
  if (done) onStdoutDataDone.resolve();
6305
- else readable$1.push(value);
6203
+ else readable.push(value);
6306
6204
  } catch {}
6307
6205
  };
6308
- const onStdoutFinished = async ({ subprocessStdout, onStdoutDataDone, readable: readable$1, subprocess, subprocessStdin }) => {
6206
+ const onStdoutFinished = async ({ subprocessStdout, onStdoutDataDone, readable, subprocess, subprocessStdin }) => {
6309
6207
  try {
6310
6208
  await waitForSubprocessStdout(subprocessStdout);
6311
6209
  await subprocess;
6312
6210
  await safeWaitForSubprocessStdin(subprocessStdin);
6313
6211
  await onStdoutDataDone;
6314
- if (readable$1.readable) readable$1.push(null);
6315
- } catch (error$1) {
6212
+ if (readable.readable) readable.push(null);
6213
+ } catch (error) {
6316
6214
  await safeWaitForSubprocessStdin(subprocessStdin);
6317
- destroyOtherReadable(readable$1, error$1);
6215
+ destroyOtherReadable(readable, error);
6318
6216
  }
6319
6217
  };
6320
- const onReadableDestroy = async ({ subprocessStdout, subprocess, waitReadableDestroy }, error$1) => {
6218
+ const onReadableDestroy = async ({ subprocessStdout, subprocess, waitReadableDestroy }, error) => {
6321
6219
  if (await waitForConcurrentStreams(waitReadableDestroy, subprocess)) {
6322
- destroyOtherReadable(subprocessStdout, error$1);
6323
- await waitForSubprocess(subprocess, error$1);
6220
+ destroyOtherReadable(subprocessStdout, error);
6221
+ await waitForSubprocess(subprocess, error);
6324
6222
  }
6325
6223
  };
6326
- const destroyOtherReadable = (stream, error$1) => {
6327
- destroyOtherStream(stream, stream.readable, error$1);
6224
+ const destroyOtherReadable = (stream, error) => {
6225
+ destroyOtherStream(stream, stream.readable, error);
6328
6226
  };
6329
-
6330
6227
  //#endregion
6331
6228
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/writable.js
6332
6229
  const createWritable = ({ subprocess, concurrentStreams }, { to } = {}) => {
6333
6230
  const { subprocessStdin, waitWritableFinal, waitWritableDestroy } = getSubprocessStdin(subprocess, to, concurrentStreams);
6334
- const writable$1 = new node_stream.Writable({
6231
+ const writable = new node_stream.Writable({
6335
6232
  ...getWritableMethods(subprocessStdin, subprocess, waitWritableFinal),
6336
6233
  destroy: (0, node_util.callbackify)(onWritableDestroy.bind(void 0, {
6337
6234
  subprocessStdin,
@@ -6342,8 +6239,8 @@ const createWritable = ({ subprocess, concurrentStreams }, { to } = {}) => {
6342
6239
  highWaterMark: subprocessStdin.writableHighWaterMark,
6343
6240
  objectMode: subprocessStdin.writableObjectMode
6344
6241
  });
6345
- onStdinFinished(subprocessStdin, writable$1);
6346
- return writable$1;
6242
+ onStdinFinished(subprocessStdin, writable);
6243
+ return writable;
6347
6244
  };
6348
6245
  const getSubprocessStdin = (subprocess, to, concurrentStreams) => {
6349
6246
  const subprocessStdin = getToStream(subprocess, to);
@@ -6367,26 +6264,25 @@ const onWritableFinal = async (subprocessStdin, subprocess, waitWritableFinal) =
6367
6264
  await subprocess;
6368
6265
  }
6369
6266
  };
6370
- const onStdinFinished = async (subprocessStdin, writable$1, subprocessStdout) => {
6267
+ const onStdinFinished = async (subprocessStdin, writable, subprocessStdout) => {
6371
6268
  try {
6372
6269
  await waitForSubprocessStdin(subprocessStdin);
6373
- if (writable$1.writable) writable$1.end();
6374
- } catch (error$1) {
6270
+ if (writable.writable) writable.end();
6271
+ } catch (error) {
6375
6272
  await safeWaitForSubprocessStdout(subprocessStdout);
6376
- destroyOtherWritable(writable$1, error$1);
6273
+ destroyOtherWritable(writable, error);
6377
6274
  }
6378
6275
  };
6379
- const onWritableDestroy = async ({ subprocessStdin, subprocess, waitWritableFinal, waitWritableDestroy }, error$1) => {
6276
+ const onWritableDestroy = async ({ subprocessStdin, subprocess, waitWritableFinal, waitWritableDestroy }, error) => {
6380
6277
  await waitForConcurrentStreams(waitWritableFinal, subprocess);
6381
6278
  if (await waitForConcurrentStreams(waitWritableDestroy, subprocess)) {
6382
- destroyOtherWritable(subprocessStdin, error$1);
6383
- await waitForSubprocess(subprocess, error$1);
6279
+ destroyOtherWritable(subprocessStdin, error);
6280
+ await waitForSubprocess(subprocess, error);
6384
6281
  }
6385
6282
  };
6386
- const destroyOtherWritable = (stream, error$1) => {
6387
- destroyOtherStream(stream, stream.writable, error$1);
6283
+ const destroyOtherWritable = (stream, error) => {
6284
+ destroyOtherStream(stream, stream.writable, error);
6388
6285
  };
6389
-
6390
6286
  //#endregion
6391
6287
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/duplex.js
6392
6288
  const createDuplex = ({ subprocess, concurrentStreams, encoding }, { from, to, binary: binaryOption = true, preserveNewlines = true } = {}) => {
@@ -6401,7 +6297,7 @@ const createDuplex = ({ subprocess, concurrentStreams, encoding }, { from, to, b
6401
6297
  encoding,
6402
6298
  preserveNewlines
6403
6299
  });
6404
- const duplex$1 = new node_stream.Duplex({
6300
+ const duplex = new node_stream.Duplex({
6405
6301
  read,
6406
6302
  ...getWritableMethods(subprocessStdin, subprocess, waitWritableFinal),
6407
6303
  destroy: (0, node_util.callbackify)(onDuplexDestroy.bind(void 0, {
@@ -6421,26 +6317,25 @@ const createDuplex = ({ subprocess, concurrentStreams, encoding }, { from, to, b
6421
6317
  onStdoutFinished({
6422
6318
  subprocessStdout,
6423
6319
  onStdoutDataDone,
6424
- readable: duplex$1,
6320
+ readable: duplex,
6425
6321
  subprocess,
6426
6322
  subprocessStdin
6427
6323
  });
6428
- onStdinFinished(subprocessStdin, duplex$1, subprocessStdout);
6429
- return duplex$1;
6324
+ onStdinFinished(subprocessStdin, duplex, subprocessStdout);
6325
+ return duplex;
6430
6326
  };
6431
- const onDuplexDestroy = async ({ subprocessStdout, subprocessStdin, subprocess, waitReadableDestroy, waitWritableFinal, waitWritableDestroy }, error$1) => {
6327
+ const onDuplexDestroy = async ({ subprocessStdout, subprocessStdin, subprocess, waitReadableDestroy, waitWritableFinal, waitWritableDestroy }, error) => {
6432
6328
  await Promise.all([onReadableDestroy({
6433
6329
  subprocessStdout,
6434
6330
  subprocess,
6435
6331
  waitReadableDestroy
6436
- }, error$1), onWritableDestroy({
6332
+ }, error), onWritableDestroy({
6437
6333
  subprocessStdin,
6438
6334
  subprocess,
6439
6335
  waitWritableFinal,
6440
6336
  waitWritableDestroy
6441
- }, error$1)]);
6337
+ }, error)]);
6442
6338
  };
6443
-
6444
6339
  //#endregion
6445
6340
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/iterable.js
6446
6341
  const createIterable = (subprocess, encoding, { from, binary: binaryOption = false, preserveNewlines = false } = {}) => {
@@ -6463,7 +6358,6 @@ const iterateOnStdoutData = async function* (onStdoutData, subprocessStdout, sub
6463
6358
  await subprocess;
6464
6359
  }
6465
6360
  };
6466
-
6467
6361
  //#endregion
6468
6362
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/add.js
6469
6363
  const addConvertedStreams = (subprocess, { encoding }) => {
@@ -6485,7 +6379,6 @@ const addConvertedStreams = (subprocess, { encoding }) => {
6485
6379
  subprocess.iterable = createIterable.bind(void 0, subprocess, encoding);
6486
6380
  subprocess[Symbol.asyncIterator] = createIterable.bind(void 0, subprocess, encoding, {});
6487
6381
  };
6488
-
6489
6382
  //#endregion
6490
6383
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/promise.js
6491
6384
  const mergePromise = (subprocess, promise) => {
@@ -6503,7 +6396,6 @@ const descriptors = [
6503
6396
  "catch",
6504
6397
  "finally"
6505
6398
  ].map((property) => [property, Reflect.getOwnPropertyDescriptor(nativePromisePrototype, property)]);
6506
-
6507
6399
  //#endregion
6508
6400
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/main-async.js
6509
6401
  const execaCoreAsync = (rawFile, rawArguments, rawOptions, createNested) => {
@@ -6546,7 +6438,7 @@ const handleAsyncArguments = (rawFile, rawArguments, rawOptions) => {
6546
6438
  fileDescriptors: handleStdioAsync(options, verboseInfo)
6547
6439
  };
6548
6440
  };
6549
- const handleAsyncOptions = ({ timeout, signal,...options }) => {
6441
+ const handleAsyncOptions = ({ timeout, signal, ...options }) => {
6550
6442
  if (signal !== void 0) throw new TypeError("The \"signal\" option has been renamed to \"cancelSignal\" instead.");
6551
6443
  return {
6552
6444
  ...options,
@@ -6557,9 +6449,9 @@ const spawnSubprocessAsync = ({ file, commandArguments, options, startTime, verb
6557
6449
  let subprocess;
6558
6450
  try {
6559
6451
  subprocess = (0, node_child_process.spawn)(file, commandArguments, options);
6560
- } catch (error$1) {
6452
+ } catch (error) {
6561
6453
  return handleEarlyError({
6562
- error: error$1,
6454
+ error,
6563
6455
  command,
6564
6456
  escapedCommand,
6565
6457
  fileDescriptors,
@@ -6656,7 +6548,6 @@ const getAsyncResult = ({ errorInfo, exitCode, signal, stdio, all, ipcOutput, co
6656
6548
  options,
6657
6549
  startTime
6658
6550
  });
6659
-
6660
6551
  //#endregion
6661
6552
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/bind.js
6662
6553
  const mergeOptions = (boundOptions, options) => {
@@ -6674,11 +6565,10 @@ const mergeOption = (optionName, boundOptionValue, optionValue) => {
6674
6565
  return optionValue;
6675
6566
  };
6676
6567
  const DEEP_OPTIONS = new Set(["env", ...FD_SPECIFIC_OPTIONS]);
6677
-
6678
6568
  //#endregion
6679
6569
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/create.js
6680
6570
  const createExeca = (mapArguments, boundOptions, deepOptions, setBoundExeca) => {
6681
- const createNested = (mapArguments$1, boundOptions$1, setBoundExeca$1) => createExeca(mapArguments$1, boundOptions$1, deepOptions, setBoundExeca$1);
6571
+ const createNested = (mapArguments, boundOptions, setBoundExeca) => createExeca(mapArguments, boundOptions, deepOptions, setBoundExeca);
6682
6572
  const boundExeca = (...execaArguments) => callBoundExeca({
6683
6573
  mapArguments,
6684
6574
  deepOptions,
@@ -6715,7 +6605,6 @@ const parseArguments = ({ mapArguments, firstArgument, nextArguments, deepOption
6715
6605
  isSync
6716
6606
  };
6717
6607
  };
6718
-
6719
6608
  //#endregion
6720
6609
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/command.js
6721
6610
  const mapCommandAsync = ({ file, commandArguments }) => parseCommand(file, commandArguments);
@@ -6744,7 +6633,6 @@ const parseCommandString = (command) => {
6744
6633
  return tokens;
6745
6634
  };
6746
6635
  const SPACES_REGEXP = / +/g;
6747
-
6748
6636
  //#endregion
6749
6637
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/script.js
6750
6638
  const setScriptSync = (boundExeca, createNested, boundOptions) => {
@@ -6762,21 +6650,19 @@ const getScriptOptions = (options) => ({ options: {
6762
6650
  } });
6763
6651
  const getScriptStdinOption = ({ input, inputFile, stdio }) => input === void 0 && inputFile === void 0 && stdio === void 0 ? { stdin: "inherit" } : {};
6764
6652
  const deepScriptOptions = { preferLocal: true };
6765
-
6766
6653
  //#endregion
6767
6654
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/index.js
6768
6655
  const execa = createExeca(() => ({}));
6769
- const execaSync = createExeca(() => ({ isSync: true }));
6770
- const execaCommand = createExeca(mapCommandAsync);
6771
- const execaCommandSync = createExeca(mapCommandSync);
6772
- const execaNode = createExeca(mapNode);
6773
- const $ = createExeca(mapScriptAsync, {}, deepScriptOptions, setScriptSync);
6656
+ createExeca(() => ({ isSync: true }));
6657
+ createExeca(mapCommandAsync);
6658
+ createExeca(mapCommandSync);
6659
+ createExeca(mapNode);
6660
+ createExeca(mapScriptAsync, {}, deepScriptOptions, setScriptSync);
6774
6661
  const { sendMessage, getOneMessage, getEachMessage, getCancelSignal } = getIpcExport();
6775
-
6776
6662
  //#endregion
6777
6663
  //#region src/utils/createWrangler.ts
6778
6664
  const createWrangler = ({ stdio, accountId, cloudflareApiToken, cwd }) => {
6779
- const $$1 = execa({
6665
+ const $ = execa({
6780
6666
  stdio,
6781
6667
  extendsEnv: true,
6782
6668
  shell: stdio === "inherit",
@@ -6786,9 +6672,8 @@ const createWrangler = ({ stdio, accountId, cloudflareApiToken, cwd }) => {
6786
6672
  CLOUDFLARE_API_TOKEN: cloudflareApiToken
6787
6673
  }
6788
6674
  });
6789
- return (...command) => $$1("npx", ["wrangler", ...command]);
6675
+ return (...command) => $("npx", ["wrangler", ...command]);
6790
6676
  };
6791
-
6792
6677
  //#endregion
6793
6678
  //#region src/r2Storage.ts
6794
6679
  /**
@@ -6814,7 +6699,7 @@ const createWrangler = ({ stdio, accountId, cloudflareApiToken, cwd }) => {
6814
6699
  * })
6815
6700
  * ```
6816
6701
  */
6817
- const r2Storage = (0, __hot_updater_plugin_core.createStoragePlugin)({
6702
+ const r2Storage = (0, _hot_updater_plugin_core.createStoragePlugin)({
6818
6703
  name: "r2Storage",
6819
6704
  supportedProtocol: "r2",
6820
6705
  factory: (config) => {
@@ -6824,10 +6709,10 @@ const r2Storage = (0, __hot_updater_plugin_core.createStoragePlugin)({
6824
6709
  cloudflareApiToken,
6825
6710
  cwd: process.cwd()
6826
6711
  });
6827
- const getStorageKey = (0, __hot_updater_plugin_core.createStorageKeyBuilder)(config.basePath);
6712
+ const getStorageKey = (0, _hot_updater_plugin_core.createStorageKeyBuilder)(config.basePath);
6828
6713
  return {
6829
6714
  async delete(storageUri) {
6830
- const { bucket, key } = (0, __hot_updater_plugin_core.parseStorageUri)(storageUri, "r2");
6715
+ const { bucket, key } = (0, _hot_updater_plugin_core.parseStorageUri)(storageUri, "r2");
6831
6716
  if (bucket !== bucketName) throw new Error(`Bucket name mismatch: expected "${bucketName}", but found "${bucket}".`);
6832
6717
  try {
6833
6718
  await wrangler("r2", "object", "delete", [bucketName, key].join("/"), "--remote");
@@ -6836,14 +6721,14 @@ const r2Storage = (0, __hot_updater_plugin_core.createStoragePlugin)({
6836
6721
  }
6837
6722
  },
6838
6723
  async upload(key, filePath) {
6839
- const contentType = (0, __hot_updater_plugin_core.getContentType)(filePath);
6724
+ const contentType = (0, _hot_updater_plugin_core.getContentType)(filePath);
6840
6725
  const Key = getStorageKey(key, path.default.basename(filePath));
6841
6726
  try {
6842
6727
  const { stderr, exitCode } = await wrangler("r2", "object", "put", [bucketName, Key].join("/"), "--file", filePath, "--content-type", contentType, "--remote");
6843
6728
  if (exitCode !== 0 && stderr) throw new Error(stderr);
6844
- } catch (error$1) {
6845
- if (error$1 instanceof ExecaError) throw new Error(error$1.stderr || error$1.stdout);
6846
- throw error$1;
6729
+ } catch (error) {
6730
+ if (error instanceof ExecaError) throw new Error(error.stderr || error.stdout);
6731
+ throw error;
6847
6732
  }
6848
6733
  return { storageUri: `r2://${bucketName}/${Key}` };
6849
6734
  },
@@ -6853,7 +6738,6 @@ const r2Storage = (0, __hot_updater_plugin_core.createStoragePlugin)({
6853
6738
  };
6854
6739
  }
6855
6740
  });
6856
-
6857
6741
  //#endregion
6858
6742
  exports.d1Database = d1Database;
6859
- exports.r2Storage = r2Storage;
6743
+ exports.r2Storage = r2Storage;