@hot-updater/supabase 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.
@@ -1,5 +1,5 @@
1
1
  import { createRequire } from "node:module";
2
- import { ConfigBuilder, copyDirToTmp, link, makeEnv, p, transformEnv, transformTemplate } from "@hot-updater/cli-tools";
2
+ import { ConfigBuilder, copyDirToTmp, link, makeEnv, p, resolvePackageVersion, transformEnv, transformTemplate } from "@hot-updater/cli-tools";
3
3
  import { fileURLToPath } from "node:url";
4
4
  import { ChildProcess, execFile, spawn, spawnSync } from "node:child_process";
5
5
  import { StringDecoder } from "node:string_decoder";
@@ -18,20 +18,17 @@ import { Duplex, PassThrough, Readable, Transform, Writable, getDefaultHighWater
18
18
  import { Buffer as Buffer$1 } from "node:buffer";
19
19
  import fs from "fs/promises";
20
20
  import { createClient } from "@supabase/supabase-js";
21
-
22
- //#region rolldown:runtime
21
+ //#region \0rolldown/runtime.js
23
22
  var __create = Object.create;
24
23
  var __defProp = Object.defineProperty;
25
24
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
26
25
  var __getOwnPropNames = Object.getOwnPropertyNames;
27
26
  var __getProtoOf = Object.getPrototypeOf;
28
27
  var __hasOwnProp = Object.prototype.hasOwnProperty;
29
- var __commonJS = (cb, mod) => function() {
30
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
31
- };
28
+ var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
32
29
  var __copyProps = (to, from, except, desc) => {
33
- 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++) {
34
- key = keys[i$1];
30
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
31
+ key = keys[i];
35
32
  if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
36
33
  get: ((k) => from[k]).bind(null, key),
37
34
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
@@ -44,7 +41,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
44
41
  enumerable: true
45
42
  }) : target, mod));
46
43
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
47
-
48
44
  //#endregion
49
45
  //#region ../../node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/error/AbortError.mjs
50
46
  var AbortError = class extends Error {
@@ -53,7 +49,6 @@ var AbortError = class extends Error {
53
49
  this.name = "AbortError";
54
50
  }
55
51
  };
56
-
57
52
  //#endregion
58
53
  //#region ../../node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/promise/delay.mjs
59
54
  function delay(ms, { signal } = {}) {
@@ -73,7 +68,6 @@ function delay(ms, { signal } = {}) {
73
68
  signal?.addEventListener("abort", abortHandler, { once: true });
74
69
  });
75
70
  }
76
-
77
71
  //#endregion
78
72
  //#region ../../node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.js
79
73
  function isPlainObject(value) {
@@ -81,7 +75,6 @@ function isPlainObject(value) {
81
75
  const prototype = Object.getPrototypeOf(value);
82
76
  return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
83
77
  }
84
-
85
78
  //#endregion
86
79
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/file-url.js
87
80
  const safeNormalizeFileUrl = (file, name) => {
@@ -92,7 +85,6 @@ const safeNormalizeFileUrl = (file, name) => {
92
85
  const normalizeDenoExecPath = (file) => isDenoExecPath(file) ? file.toString() : file;
93
86
  const isDenoExecPath = (file) => typeof file !== "string" && file && Object.getPrototypeOf(file) === String.prototype;
94
87
  const normalizeFileUrl = (file) => file instanceof URL ? fileURLToPath(file) : file;
95
-
96
88
  //#endregion
97
89
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/parameters.js
98
90
  const normalizeParameters = (rawFile, rawArguments = [], rawOptions = {}) => {
@@ -110,7 +102,6 @@ const normalizeParameters = (rawFile, rawArguments = [], rawOptions = {}) => {
110
102
  options
111
103
  ];
112
104
  };
113
-
114
105
  //#endregion
115
106
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/utils/uint-array.js
116
107
  const { toString: objectToString$1 } = Object.prototype;
@@ -150,7 +141,6 @@ const getJoinLength = (uint8Arrays) => {
150
141
  for (const uint8Array of uint8Arrays) joinLength += uint8Array.length;
151
142
  return joinLength;
152
143
  };
153
-
154
144
  //#endregion
155
145
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/template.js
156
146
  const isTemplateString = (templates) => Array.isArray(templates) && Array.isArray(templates.raw);
@@ -177,7 +167,7 @@ const parseTemplate = ({ templates, expressions, tokens, index, template }) => {
177
167
  const newTokens = concatTokens(tokens, nextTokens, leadingWhitespaces);
178
168
  if (index === expressions.length) return newTokens;
179
169
  const expression = expressions[index];
180
- return concatTokens(newTokens, Array.isArray(expression) ? expression.map((expression$1) => parseExpression(expression$1)) : [parseExpression(expression)], trailingWhitespaces);
170
+ return concatTokens(newTokens, Array.isArray(expression) ? expression.map((expression) => parseExpression(expression)) : [parseExpression(expression)], trailingWhitespaces);
181
171
  };
182
172
  const splitByWhitespaces = (template, rawTemplate) => {
183
173
  if (rawTemplate.length === 0) return {
@@ -239,7 +229,6 @@ const getSubprocessResult = ({ stdout }) => {
239
229
  if (stdout === void 0) throw new TypeError("Missing result.stdout in template expression. This is probably due to the previous subprocess' \"stdout\" option.");
240
230
  throw new TypeError(`Unexpected "${typeof stdout}" stdout in template expression`);
241
231
  };
242
-
243
232
  //#endregion
244
233
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/utils/standard-stream.js
245
234
  const isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
@@ -254,7 +243,6 @@ const STANDARD_STREAMS_ALIASES = [
254
243
  "stderr"
255
244
  ];
256
245
  const getStreamName = (fdNumber) => STANDARD_STREAMS_ALIASES[fdNumber] ?? `stdio[${fdNumber}]`;
257
-
258
246
  //#endregion
259
247
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/specific.js
260
248
  const normalizeFdSpecificOptions = (options) => {
@@ -309,7 +297,6 @@ const FD_SPECIFIC_OPTIONS = [
309
297
  "stripFinalNewline"
310
298
  ];
311
299
  const getFdSpecificValue = (optionArray, fdNumber) => fdNumber === "ipc" ? optionArray.at(-1) : optionArray[fdNumber];
312
-
313
300
  //#endregion
314
301
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/values.js
315
302
  const isVerbose = ({ verbose }, fdNumber) => getFdVerbose(verbose, fdNumber) !== "none";
@@ -326,7 +313,6 @@ const VERBOSE_VALUES = [
326
313
  "short",
327
314
  "full"
328
315
  ];
329
-
330
316
  //#endregion
331
317
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/escape.js
332
318
  const joinCommand = (filePath, rawArguments) => {
@@ -347,7 +333,7 @@ const escapeControlCharacter = (character) => {
347
333
  };
348
334
  const getSpecialCharRegExp = () => {
349
335
  try {
350
- return new RegExp("\\p{Separator}|\\p{Other}", "gu");
336
+ return /* @__PURE__ */ new RegExp("\\p{Separator}|\\p{Other}", "gu");
351
337
  } catch {
352
338
  return /[\s\u0000-\u001F\u007F-\u009F\u00AD]/g;
353
339
  }
@@ -367,7 +353,6 @@ const quoteString = (escapedArgument) => {
367
353
  return platform === "win32" ? `"${escapedArgument.replaceAll("\"", "\"\"")}"` : `'${escapedArgument.replaceAll("'", "'\\''")}'`;
368
354
  };
369
355
  const NO_ESCAPE_REGEXP = /^[\w./-]+$/;
370
-
371
356
  //#endregion
372
357
  //#region ../../node_modules/.pnpm/is-unicode-supported@2.1.0/node_modules/is-unicode-supported/index.js
373
358
  function isUnicodeSupported() {
@@ -376,7 +361,6 @@ function isUnicodeSupported() {
376
361
  if (process$1.platform !== "win32") return TERM !== "linux";
377
362
  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";
378
363
  }
379
-
380
364
  //#endregion
381
365
  //#region ../../node_modules/.pnpm/figures@6.1.0/node_modules/figures/index.js
382
366
  const common = {
@@ -655,11 +639,8 @@ const fallbackSymbols = {
655
639
  ...common,
656
640
  ...specialFallbackSymbols
657
641
  };
658
- const shouldUseMain = isUnicodeSupported();
659
- const figures = shouldUseMain ? mainSymbols : fallbackSymbols;
660
- var figures_default = figures;
661
- const replacements = Object.entries(specialMainSymbols);
662
-
642
+ const figures = isUnicodeSupported() ? mainSymbols : fallbackSymbols;
643
+ Object.entries(specialMainSymbols);
663
644
  //#endregion
664
645
  //#region ../../node_modules/.pnpm/yoctocolors@2.1.1/node_modules/yoctocolors/base.js
665
646
  const hasColors = tty?.WriteStream?.prototype?.hasColors?.() ?? false;
@@ -682,48 +663,47 @@ const format = (open, close) => {
682
663
  return result;
683
664
  };
684
665
  };
685
- const reset = format(0, 0);
666
+ format(0, 0);
686
667
  const bold = format(1, 22);
687
- const dim = format(2, 22);
688
- const italic = format(3, 23);
689
- const underline = format(4, 24);
690
- const overline = format(53, 55);
691
- const inverse = format(7, 27);
692
- const hidden = format(8, 28);
693
- const strikethrough = format(9, 29);
694
- const black = format(30, 39);
695
- const red = format(31, 39);
696
- const green = format(32, 39);
697
- const yellow = format(33, 39);
698
- const blue = format(34, 39);
699
- const magenta = format(35, 39);
700
- const cyan = format(36, 39);
701
- const white = format(37, 39);
668
+ format(2, 22);
669
+ format(3, 23);
670
+ format(4, 24);
671
+ format(53, 55);
672
+ format(7, 27);
673
+ format(8, 28);
674
+ format(9, 29);
675
+ format(30, 39);
676
+ format(31, 39);
677
+ format(32, 39);
678
+ format(33, 39);
679
+ format(34, 39);
680
+ format(35, 39);
681
+ format(36, 39);
682
+ format(37, 39);
702
683
  const gray = format(90, 39);
703
- const bgBlack = format(40, 49);
704
- const bgRed = format(41, 49);
705
- const bgGreen = format(42, 49);
706
- const bgYellow = format(43, 49);
707
- const bgBlue = format(44, 49);
708
- const bgMagenta = format(45, 49);
709
- const bgCyan = format(46, 49);
710
- const bgWhite = format(47, 49);
711
- const bgGray = format(100, 49);
684
+ format(40, 49);
685
+ format(41, 49);
686
+ format(42, 49);
687
+ format(43, 49);
688
+ format(44, 49);
689
+ format(45, 49);
690
+ format(46, 49);
691
+ format(47, 49);
692
+ format(100, 49);
712
693
  const redBright = format(91, 39);
713
- const greenBright = format(92, 39);
694
+ format(92, 39);
714
695
  const yellowBright = format(93, 39);
715
- const blueBright = format(94, 39);
716
- const magentaBright = format(95, 39);
717
- const cyanBright = format(96, 39);
718
- const whiteBright = format(97, 39);
719
- const bgRedBright = format(101, 49);
720
- const bgGreenBright = format(102, 49);
721
- const bgYellowBright = format(103, 49);
722
- const bgBlueBright = format(104, 49);
723
- const bgMagentaBright = format(105, 49);
724
- const bgCyanBright = format(106, 49);
725
- const bgWhiteBright = format(107, 49);
726
-
696
+ format(94, 39);
697
+ format(95, 39);
698
+ format(96, 39);
699
+ format(97, 39);
700
+ format(101, 49);
701
+ format(102, 49);
702
+ format(103, 49);
703
+ format(104, 49);
704
+ format(105, 49);
705
+ format(106, 49);
706
+ format(107, 49);
727
707
  //#endregion
728
708
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/default.js
729
709
  const defaultVerboseFunction = ({ type, message, timestamp, piped, commandId, result: { failed = false } = {}, options: { reject = true } }) => {
@@ -739,8 +719,8 @@ const defaultVerboseFunction = ({ type, message, timestamp, piped, commandId, re
739
719
  const serializeTimestamp = (timestamp) => `${padField(timestamp.getHours(), 2)}:${padField(timestamp.getMinutes(), 2)}:${padField(timestamp.getSeconds(), 2)}.${padField(timestamp.getMilliseconds(), 3)}`;
740
720
  const padField = (field, padding) => String(field).padStart(padding, "0");
741
721
  const getFinalIcon = ({ failed, reject }) => {
742
- if (!failed) return figures_default.tick;
743
- return reject ? figures_default.cross : figures_default.warning;
722
+ if (!failed) return figures.tick;
723
+ return reject ? figures.cross : figures.warning;
744
724
  };
745
725
  const ICONS = {
746
726
  command: ({ piped }) => piped ? "|" : "$",
@@ -757,7 +737,6 @@ const COLORS = {
757
737
  error: ({ reject }) => reject ? redBright : yellowBright,
758
738
  duration: () => gray
759
739
  };
760
-
761
740
  //#endregion
762
741
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/custom.js
763
742
  const applyVerboseOnLines = (printedLines, verboseInfo, fdNumber) => {
@@ -770,7 +749,6 @@ const applyVerboseFunction = (verboseLine, verboseObject, verboseFunction) => {
770
749
  if (typeof printedLine === "string") return printedLine;
771
750
  };
772
751
  const appendNewline = (printedLine) => printedLine.endsWith("\n") ? printedLine : `${printedLine}\n`;
773
-
774
752
  //#endregion
775
753
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/log.js
776
754
  const verboseLog = ({ type, verboseMessage, fdNumber, verboseInfo, result }) => {
@@ -781,7 +759,7 @@ const verboseLog = ({ type, verboseMessage, fdNumber, verboseInfo, result }) =>
781
759
  })), verboseInfo, fdNumber);
782
760
  if (finalLines !== "") console.warn(finalLines.slice(0, -1));
783
761
  };
784
- const getVerboseObject = ({ type, result, verboseInfo: { escapedCommand, commandId, rawOptions: { piped = false,...options } } }) => ({
762
+ const getVerboseObject = ({ type, result, verboseInfo: { escapedCommand, commandId, rawOptions: { piped = false, ...options } } }) => ({
785
763
  type,
786
764
  escapedCommand,
787
765
  commandId: `${commandId}`,
@@ -804,7 +782,6 @@ const serializeVerboseMessage = (message) => {
804
782
  return escapeLines(typeof message === "string" ? message : inspect(message)).replaceAll(" ", " ".repeat(TAB_SIZE));
805
783
  };
806
784
  const TAB_SIZE = 2;
807
-
808
785
  //#endregion
809
786
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/start.js
810
787
  const logCommand = (escapedCommand, verboseInfo) => {
@@ -815,7 +792,6 @@ const logCommand = (escapedCommand, verboseInfo) => {
815
792
  verboseInfo
816
793
  });
817
794
  };
818
-
819
795
  //#endregion
820
796
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/info.js
821
797
  const getVerboseInfo = (verbose, escapedCommand, rawOptions) => {
@@ -839,12 +815,10 @@ const validateVerbose = (verbose) => {
839
815
  }
840
816
  }
841
817
  };
842
-
843
818
  //#endregion
844
819
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/duration.js
845
820
  const getStartTime = () => hrtime.bigint();
846
821
  const getDurationMs = (startTime) => Number(hrtime.bigint() - startTime) / 1e6;
847
-
848
822
  //#endregion
849
823
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/command.js
850
824
  const handleCommand = (filePath, rawArguments, rawOptions) => {
@@ -859,51 +833,49 @@ const handleCommand = (filePath, rawArguments, rawOptions) => {
859
833
  verboseInfo
860
834
  };
861
835
  };
862
-
863
836
  //#endregion
864
837
  //#region ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js
865
- var require_windows = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js": ((exports, module) => {
866
- module.exports = isexe$3;
867
- isexe$3.sync = sync$2;
838
+ var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
839
+ module.exports = isexe;
840
+ isexe.sync = sync;
868
841
  var fs$3 = __require("fs");
869
- function checkPathExt(path$5, options) {
842
+ function checkPathExt(path, options) {
870
843
  var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
871
844
  if (!pathext) return true;
872
845
  pathext = pathext.split(";");
873
846
  if (pathext.indexOf("") !== -1) return true;
874
- for (var i$1 = 0; i$1 < pathext.length; i$1++) {
875
- var p$1 = pathext[i$1].toLowerCase();
876
- if (p$1 && path$5.substr(-p$1.length).toLowerCase() === p$1) return true;
847
+ for (var i = 0; i < pathext.length; i++) {
848
+ var p = pathext[i].toLowerCase();
849
+ if (p && path.substr(-p.length).toLowerCase() === p) return true;
877
850
  }
878
851
  return false;
879
852
  }
880
- function checkStat$1(stat, path$5, options) {
853
+ function checkStat(stat, path, options) {
881
854
  if (!stat.isSymbolicLink() && !stat.isFile()) return false;
882
- return checkPathExt(path$5, options);
855
+ return checkPathExt(path, options);
883
856
  }
884
- function isexe$3(path$5, options, cb) {
885
- fs$3.stat(path$5, function(er, stat) {
886
- cb(er, er ? false : checkStat$1(stat, path$5, options));
857
+ function isexe(path, options, cb) {
858
+ fs$3.stat(path, function(er, stat) {
859
+ cb(er, er ? false : checkStat(stat, path, options));
887
860
  });
888
861
  }
889
- function sync$2(path$5, options) {
890
- return checkStat$1(fs$3.statSync(path$5), path$5, options);
862
+ function sync(path, options) {
863
+ return checkStat(fs$3.statSync(path), path, options);
891
864
  }
892
- }) });
893
-
865
+ }));
894
866
  //#endregion
895
867
  //#region ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js
896
- var require_mode = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js": ((exports, module) => {
897
- module.exports = isexe$2;
898
- isexe$2.sync = sync$1;
868
+ var require_mode = /* @__PURE__ */ __commonJSMin(((exports, module) => {
869
+ module.exports = isexe;
870
+ isexe.sync = sync;
899
871
  var fs$2 = __require("fs");
900
- function isexe$2(path$5, options, cb) {
901
- fs$2.stat(path$5, function(er, stat) {
872
+ function isexe(path, options, cb) {
873
+ fs$2.stat(path, function(er, stat) {
902
874
  cb(er, er ? false : checkStat(stat, options));
903
875
  });
904
876
  }
905
- function sync$1(path$5, options) {
906
- return checkStat(fs$2.statSync(path$5), options);
877
+ function sync(path, options) {
878
+ return checkStat(fs$2.statSync(path), options);
907
879
  }
908
880
  function checkStat(stat, options) {
909
881
  return stat.isFile() && checkMode(stat, options);
@@ -914,24 +886,23 @@ var require_mode = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe@
914
886
  var gid = stat.gid;
915
887
  var myUid = options.uid !== void 0 ? options.uid : process.getuid && process.getuid();
916
888
  var myGid = options.gid !== void 0 ? options.gid : process.getgid && process.getgid();
917
- var u$1 = parseInt("100", 8);
889
+ var u = parseInt("100", 8);
918
890
  var g = parseInt("010", 8);
919
- var o$1 = parseInt("001", 8);
920
- var ug = u$1 | g;
921
- return mod & o$1 || mod & g && gid === myGid || mod & u$1 && uid === myUid || mod & ug && myUid === 0;
891
+ var o = parseInt("001", 8);
892
+ var ug = u | g;
893
+ return mod & o || mod & g && gid === myGid || mod & u && uid === myUid || mod & ug && myUid === 0;
922
894
  }
923
- }) });
924
-
895
+ }));
925
896
  //#endregion
926
897
  //#region ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js
927
- var require_isexe = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js": ((exports, module) => {
898
+ var require_isexe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
928
899
  __require("fs");
929
900
  var core;
930
901
  if (process.platform === "win32" || global.TESTING_WINDOWS) core = require_windows();
931
902
  else core = require_mode();
932
- module.exports = isexe$1;
933
- isexe$1.sync = sync;
934
- function isexe$1(path$5, options, cb) {
903
+ module.exports = isexe;
904
+ isexe.sync = sync;
905
+ function isexe(path, options, cb) {
935
906
  if (typeof options === "function") {
936
907
  cb = options;
937
908
  options = {};
@@ -939,13 +910,13 @@ var require_isexe = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe
939
910
  if (!cb) {
940
911
  if (typeof Promise !== "function") throw new TypeError("callback not provided");
941
912
  return new Promise(function(resolve, reject) {
942
- isexe$1(path$5, options || {}, function(er, is) {
913
+ isexe(path, options || {}, function(er, is) {
943
914
  if (er) reject(er);
944
915
  else resolve(is);
945
916
  });
946
917
  });
947
918
  }
948
- core(path$5, options || {}, function(er, is) {
919
+ core(path, options || {}, function(er, is) {
949
920
  if (er) {
950
921
  if (er.code === "EACCES" || options && options.ignoreErrors) {
951
922
  er = null;
@@ -955,19 +926,18 @@ var require_isexe = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe
955
926
  cb(er, is);
956
927
  });
957
928
  }
958
- function sync(path$5, options) {
929
+ function sync(path, options) {
959
930
  try {
960
- return core.sync(path$5, options || {});
931
+ return core.sync(path, options || {});
961
932
  } catch (er) {
962
933
  if (options && options.ignoreErrors || er.code === "EACCES") return false;
963
934
  else throw er;
964
935
  }
965
936
  }
966
- }) });
967
-
937
+ }));
968
938
  //#endregion
969
939
  //#region ../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
970
- var require_which = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js": ((exports, module) => {
940
+ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
971
941
  const isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
972
942
  const path$4 = __require("path");
973
943
  const COLON = isWindows ? ";" : ":";
@@ -987,7 +957,7 @@ var require_which = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/which
987
957
  pathExtExe
988
958
  };
989
959
  };
990
- const which$1 = (cmd, opt, cb) => {
960
+ const which = (cmd, opt, cb) => {
991
961
  if (typeof opt === "function") {
992
962
  cb = opt;
993
963
  opt = {};
@@ -995,20 +965,20 @@ var require_which = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/which
995
965
  if (!opt) opt = {};
996
966
  const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
997
967
  const found = [];
998
- const step = (i$1) => new Promise((resolve, reject) => {
999
- if (i$1 === pathEnv.length) return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
1000
- const ppRaw = pathEnv[i$1];
968
+ const step = (i) => new Promise((resolve, reject) => {
969
+ if (i === pathEnv.length) return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
970
+ const ppRaw = pathEnv[i];
1001
971
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
1002
972
  const pCmd = path$4.join(pathPart, cmd);
1003
- resolve(subStep(!pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd, i$1, 0));
973
+ resolve(subStep(!pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd, i, 0));
1004
974
  });
1005
- const subStep = (p$1, i$1, ii) => new Promise((resolve, reject) => {
1006
- if (ii === pathExt.length) return resolve(step(i$1 + 1));
975
+ const subStep = (p, i, ii) => new Promise((resolve, reject) => {
976
+ if (ii === pathExt.length) return resolve(step(i + 1));
1007
977
  const ext = pathExt[ii];
1008
- isexe(p$1 + ext, { pathExt: pathExtExe }, (er, is) => {
1009
- if (!er && is) if (opt.all) found.push(p$1 + ext);
1010
- else return resolve(p$1 + ext);
1011
- return resolve(subStep(p$1, i$1, ii + 1));
978
+ isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
979
+ if (!er && is) if (opt.all) found.push(p + ext);
980
+ else return resolve(p + ext);
981
+ return resolve(subStep(p, i, ii + 1));
1012
982
  });
1013
983
  });
1014
984
  return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
@@ -1017,13 +987,13 @@ var require_which = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/which
1017
987
  opt = opt || {};
1018
988
  const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
1019
989
  const found = [];
1020
- for (let i$1 = 0; i$1 < pathEnv.length; i$1++) {
1021
- const ppRaw = pathEnv[i$1];
990
+ for (let i = 0; i < pathEnv.length; i++) {
991
+ const ppRaw = pathEnv[i];
1022
992
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
1023
993
  const pCmd = path$4.join(pathPart, cmd);
1024
- const p$1 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
994
+ const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
1025
995
  for (let j = 0; j < pathExt.length; j++) {
1026
- const cur = p$1 + pathExt[j];
996
+ const cur = p + pathExt[j];
1027
997
  try {
1028
998
  if (isexe.sync(cur, { pathExt: pathExtExe })) if (opt.all) found.push(cur);
1029
999
  else return cur;
@@ -1034,25 +1004,23 @@ var require_which = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/which
1034
1004
  if (opt.nothrow) return null;
1035
1005
  throw getNotFoundError(cmd);
1036
1006
  };
1037
- module.exports = which$1;
1038
- which$1.sync = whichSync;
1039
- }) });
1040
-
1007
+ module.exports = which;
1008
+ which.sync = whichSync;
1009
+ }));
1041
1010
  //#endregion
1042
1011
  //#region ../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js
1043
- var require_path_key = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js": ((exports, module) => {
1044
- const pathKey$1 = (options = {}) => {
1012
+ var require_path_key = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1013
+ const pathKey = (options = {}) => {
1045
1014
  const environment = options.env || process.env;
1046
1015
  if ((options.platform || process.platform) !== "win32") return "PATH";
1047
1016
  return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
1048
1017
  };
1049
- module.exports = pathKey$1;
1050
- module.exports.default = pathKey$1;
1051
- }) });
1052
-
1018
+ module.exports = pathKey;
1019
+ module.exports.default = pathKey;
1020
+ }));
1053
1021
  //#endregion
1054
1022
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
1055
- var require_resolveCommand = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js": ((exports, module) => {
1023
+ var require_resolveCommand = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1056
1024
  const path$3 = __require("path");
1057
1025
  const which = require_which();
1058
1026
  const getPathKey = require_path_key();
@@ -1076,15 +1044,14 @@ var require_resolveCommand = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
1076
1044
  if (resolved) resolved = path$3.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
1077
1045
  return resolved;
1078
1046
  }
1079
- function resolveCommand$1(parsed) {
1047
+ function resolveCommand(parsed) {
1080
1048
  return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
1081
1049
  }
1082
- module.exports = resolveCommand$1;
1083
- }) });
1084
-
1050
+ module.exports = resolveCommand;
1051
+ }));
1085
1052
  //#endregion
1086
1053
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js
1087
- var require_escape = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js": ((exports, module) => {
1054
+ var require_escape = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1088
1055
  const metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
1089
1056
  function escapeCommand(arg) {
1090
1057
  arg = arg.replace(metaCharsRegExp, "^$1");
@@ -1101,34 +1068,31 @@ var require_escape = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cros
1101
1068
  }
1102
1069
  module.exports.command = escapeCommand;
1103
1070
  module.exports.argument = escapeArgument;
1104
- }) });
1105
-
1071
+ }));
1106
1072
  //#endregion
1107
1073
  //#region ../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js
1108
- var require_shebang_regex = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js": ((exports, module) => {
1074
+ var require_shebang_regex = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1109
1075
  module.exports = /^#!(.*)/;
1110
- }) });
1111
-
1076
+ }));
1112
1077
  //#endregion
1113
1078
  //#region ../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js
1114
- var require_shebang_command = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js": ((exports, module) => {
1079
+ var require_shebang_command = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1115
1080
  const shebangRegex = require_shebang_regex();
1116
1081
  module.exports = (string = "") => {
1117
1082
  const match = string.match(shebangRegex);
1118
1083
  if (!match) return null;
1119
- const [path$5, argument] = match[0].replace(/#! ?/, "").split(" ");
1120
- const binary = path$5.split("/").pop();
1084
+ const [path, argument] = match[0].replace(/#! ?/, "").split(" ");
1085
+ const binary = path.split("/").pop();
1121
1086
  if (binary === "env") return argument;
1122
1087
  return argument ? `${binary} ${argument}` : binary;
1123
1088
  };
1124
- }) });
1125
-
1089
+ }));
1126
1090
  //#endregion
1127
1091
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
1128
- var require_readShebang = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js": ((exports, module) => {
1092
+ var require_readShebang = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1129
1093
  const fs$1 = __require("fs");
1130
1094
  const shebangCommand = require_shebang_command();
1131
- function readShebang$1(command) {
1095
+ function readShebang(command) {
1132
1096
  const size = 150;
1133
1097
  const buffer = Buffer.alloc(size);
1134
1098
  let fd;
@@ -1139,17 +1103,16 @@ var require_readShebang = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
1139
1103
  } catch (e) {}
1140
1104
  return shebangCommand(buffer.toString());
1141
1105
  }
1142
- module.exports = readShebang$1;
1143
- }) });
1144
-
1106
+ module.exports = readShebang;
1107
+ }));
1145
1108
  //#endregion
1146
1109
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
1147
- var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js": ((exports, module) => {
1110
+ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1148
1111
  const path$2 = __require("path");
1149
1112
  const resolveCommand = require_resolveCommand();
1150
1113
  const escape = require_escape();
1151
1114
  const readShebang = require_readShebang();
1152
- const isWin$1 = process.platform === "win32";
1115
+ const isWin = process.platform === "win32";
1153
1116
  const isExecutableRegExp = /\.(?:com|exe)$/i;
1154
1117
  const isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
1155
1118
  function detectShebang(parsed) {
@@ -1163,7 +1126,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross
1163
1126
  return parsed.file;
1164
1127
  }
1165
1128
  function parseNonShell(parsed) {
1166
- if (!isWin$1) return parsed;
1129
+ if (!isWin) return parsed;
1167
1130
  const commandFile = detectShebang(parsed);
1168
1131
  const needsShell = !isExecutableRegExp.test(commandFile);
1169
1132
  if (parsed.options.forceShell || needsShell) {
@@ -1182,7 +1145,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross
1182
1145
  }
1183
1146
  return parsed;
1184
1147
  }
1185
- function parse$1(command, args, options) {
1148
+ function parse(command, args, options) {
1186
1149
  if (args && !Array.isArray(args)) {
1187
1150
  options = args;
1188
1151
  args = null;
@@ -1201,12 +1164,11 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross
1201
1164
  };
1202
1165
  return options.shell ? parsed : parseNonShell(parsed);
1203
1166
  }
1204
- module.exports = parse$1;
1205
- }) });
1206
-
1167
+ module.exports = parse;
1168
+ }));
1207
1169
  //#endregion
1208
1170
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js
1209
- var require_enoent = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js": ((exports, module) => {
1171
+ var require_enoent = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1210
1172
  const isWin = process.platform === "win32";
1211
1173
  function notFoundError(original, syscall) {
1212
1174
  return Object.assign(/* @__PURE__ */ new Error(`${syscall} ${original.command} ENOENT`), {
@@ -1217,15 +1179,15 @@ var require_enoent = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cros
1217
1179
  spawnargs: original.args
1218
1180
  });
1219
1181
  }
1220
- function hookChildProcess(cp$1, parsed) {
1182
+ function hookChildProcess(cp, parsed) {
1221
1183
  if (!isWin) return;
1222
- const originalEmit = cp$1.emit;
1223
- cp$1.emit = function(name, arg1) {
1184
+ const originalEmit = cp.emit;
1185
+ cp.emit = function(name, arg1) {
1224
1186
  if (name === "exit") {
1225
1187
  const err = verifyENOENT(arg1, parsed);
1226
- if (err) return originalEmit.call(cp$1, "error", err);
1188
+ if (err) return originalEmit.call(cp, "error", err);
1227
1189
  }
1228
- return originalEmit.apply(cp$1, arguments);
1190
+ return originalEmit.apply(cp, arguments);
1229
1191
  };
1230
1192
  }
1231
1193
  function verifyENOENT(status, parsed) {
@@ -1242,45 +1204,37 @@ var require_enoent = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cros
1242
1204
  verifyENOENTSync,
1243
1205
  notFoundError
1244
1206
  };
1245
- }) });
1246
-
1207
+ }));
1247
1208
  //#endregion
1248
- //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js
1249
- var require_cross_spawn = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js": ((exports, module) => {
1209
+ //#region ../../node_modules/.pnpm/path-key@4.0.0/node_modules/path-key/index.js
1210
+ var import_cross_spawn = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
1250
1211
  const cp = __require("child_process");
1251
1212
  const parse = require_parse();
1252
1213
  const enoent = require_enoent();
1253
- function spawn$1(command, args, options) {
1214
+ function spawn(command, args, options) {
1254
1215
  const parsed = parse(command, args, options);
1255
1216
  const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
1256
1217
  enoent.hookChildProcess(spawned, parsed);
1257
1218
  return spawned;
1258
1219
  }
1259
- function spawnSync$1(command, args, options) {
1220
+ function spawnSync(command, args, options) {
1260
1221
  const parsed = parse(command, args, options);
1261
1222
  const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
1262
1223
  result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
1263
1224
  return result;
1264
1225
  }
1265
- module.exports = spawn$1;
1266
- module.exports.spawn = spawn$1;
1267
- module.exports.sync = spawnSync$1;
1226
+ module.exports = spawn;
1227
+ module.exports.spawn = spawn;
1228
+ module.exports.sync = spawnSync;
1268
1229
  module.exports._parse = parse;
1269
1230
  module.exports._enoent = enoent;
1270
- }) });
1271
-
1272
- //#endregion
1273
- //#region ../../node_modules/.pnpm/path-key@4.0.0/node_modules/path-key/index.js
1274
- var import_cross_spawn = /* @__PURE__ */ __toESM(require_cross_spawn(), 1);
1231
+ })))(), 1);
1275
1232
  function pathKey(options = {}) {
1276
- const { env = process.env, platform: platform$1 = process.platform } = options;
1277
- if (platform$1 !== "win32") return "PATH";
1233
+ const { env = process.env, platform = process.platform } = options;
1234
+ if (platform !== "win32") return "PATH";
1278
1235
  return Object.keys(env).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
1279
1236
  }
1280
-
1281
- //#endregion
1282
- //#region ../../node_modules/.pnpm/unicorn-magic@0.3.0/node_modules/unicorn-magic/node.js
1283
- const execFileOriginal = promisify(execFile);
1237
+ promisify(execFile);
1284
1238
  function toPath(urlOrPath) {
1285
1239
  return urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;
1286
1240
  }
@@ -1295,16 +1249,14 @@ function traversePathUp(startPath) {
1295
1249
  }
1296
1250
  } };
1297
1251
  }
1298
- const TEN_MEGABYTES_IN_BYTES = 10 * 1024 * 1024;
1299
-
1300
1252
  //#endregion
1301
1253
  //#region ../../node_modules/.pnpm/npm-run-path@6.0.0/node_modules/npm-run-path/index.js
1302
- const npmRunPath = ({ cwd = process$1.cwd(), path: pathOption = process$1.env[pathKey()], preferLocal = true, execPath: execPath$1 = process$1.execPath, addExecPath = true } = {}) => {
1254
+ const npmRunPath = ({ cwd = process$1.cwd(), path: pathOption = process$1.env[pathKey()], preferLocal = true, execPath = process$1.execPath, addExecPath = true } = {}) => {
1303
1255
  const cwdPath = path.resolve(toPath(cwd));
1304
1256
  const result = [];
1305
1257
  const pathParts = pathOption.split(path.delimiter);
1306
1258
  if (preferLocal) applyPreferLocal(result, pathParts, cwdPath);
1307
- if (addExecPath) applyExecPath(result, pathParts, execPath$1, cwdPath);
1259
+ if (addExecPath) applyExecPath(result, pathParts, execPath, cwdPath);
1308
1260
  return pathOption === "" || pathOption === path.delimiter ? `${result.join(path.delimiter)}${pathOption}` : [...result, pathOption].join(path.delimiter);
1309
1261
  };
1310
1262
  const applyPreferLocal = (result, pathParts, cwdPath) => {
@@ -1313,18 +1265,17 @@ const applyPreferLocal = (result, pathParts, cwdPath) => {
1313
1265
  if (!pathParts.includes(pathPart)) result.push(pathPart);
1314
1266
  }
1315
1267
  };
1316
- const applyExecPath = (result, pathParts, execPath$1, cwdPath) => {
1317
- const pathPart = path.resolve(cwdPath, toPath(execPath$1), "..");
1268
+ const applyExecPath = (result, pathParts, execPath, cwdPath) => {
1269
+ const pathPart = path.resolve(cwdPath, toPath(execPath), "..");
1318
1270
  if (!pathParts.includes(pathPart)) result.push(pathPart);
1319
1271
  };
1320
- const npmRunPathEnv = ({ env = process$1.env,...options } = {}) => {
1272
+ const npmRunPathEnv = ({ env = process$1.env, ...options } = {}) => {
1321
1273
  env = { ...env };
1322
1274
  const pathName = pathKey({ env });
1323
1275
  options.path = env[pathName];
1324
1276
  env[pathName] = npmRunPath(options);
1325
1277
  return env;
1326
1278
  };
1327
-
1328
1279
  //#endregion
1329
1280
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/final-error.js
1330
1281
  const getFinalError = (originalError, message, isSync) => {
@@ -1352,11 +1303,10 @@ var ExecaError = class extends Error {};
1352
1303
  setErrorName(ExecaError, ExecaError.name);
1353
1304
  var ExecaSyncError = class extends Error {};
1354
1305
  setErrorName(ExecaSyncError, ExecaSyncError.name);
1355
-
1356
1306
  //#endregion
1357
- //#region ../../node_modules/.pnpm/human-signals@8.0.0/node_modules/human-signals/build/src/realtime.js
1307
+ //#region ../../node_modules/.pnpm/human-signals@8.0.1/node_modules/human-signals/build/src/realtime.js
1358
1308
  const getRealtimeSignals = () => {
1359
- const length = SIGRTMAX - SIGRTMIN + 1;
1309
+ const length = 64 - SIGRTMIN + 1;
1360
1310
  return Array.from({ length }, getRealtimeSignal);
1361
1311
  };
1362
1312
  const getRealtimeSignal = (value, index) => ({
@@ -1367,10 +1317,8 @@ const getRealtimeSignal = (value, index) => ({
1367
1317
  standard: "posix"
1368
1318
  });
1369
1319
  const SIGRTMIN = 34;
1370
- const SIGRTMAX = 64;
1371
-
1372
1320
  //#endregion
1373
- //#region ../../node_modules/.pnpm/human-signals@8.0.0/node_modules/human-signals/build/src/core.js
1321
+ //#region ../../node_modules/.pnpm/human-signals@8.0.1/node_modules/human-signals/build/src/core.js
1374
1322
  const SIGNALS = [
1375
1323
  {
1376
1324
  name: "SIGHUP",
@@ -1642,9 +1590,8 @@ const SIGNALS = [
1642
1590
  standard: "other"
1643
1591
  }
1644
1592
  ];
1645
-
1646
1593
  //#endregion
1647
- //#region ../../node_modules/.pnpm/human-signals@8.0.0/node_modules/human-signals/build/src/signals.js
1594
+ //#region ../../node_modules/.pnpm/human-signals@8.0.1/node_modules/human-signals/build/src/signals.js
1648
1595
  const getSignals = () => {
1649
1596
  const realtimeSignals = getRealtimeSignals();
1650
1597
  return [...SIGNALS, ...realtimeSignals].map(normalizeSignal$1);
@@ -1662,12 +1609,11 @@ const normalizeSignal$1 = ({ name, number: defaultNumber, description, action, f
1662
1609
  standard
1663
1610
  };
1664
1611
  };
1665
-
1666
1612
  //#endregion
1667
- //#region ../../node_modules/.pnpm/human-signals@8.0.0/node_modules/human-signals/build/src/main.js
1613
+ //#region ../../node_modules/.pnpm/human-signals@8.0.1/node_modules/human-signals/build/src/main.js
1668
1614
  const getSignalsByName = () => {
1669
- const signals$1 = getSignals();
1670
- return Object.fromEntries(signals$1.map(getSignalByName));
1615
+ const signals = getSignals();
1616
+ return Object.fromEntries(signals.map(getSignalByName));
1671
1617
  };
1672
1618
  const getSignalByName = ({ name, number, description, supported, action, forced, standard }) => [name, {
1673
1619
  name,
@@ -1680,13 +1626,12 @@ const getSignalByName = ({ name, number, description, supported, action, forced,
1680
1626
  }];
1681
1627
  const signalsByName = getSignalsByName();
1682
1628
  const getSignalsByNumber = () => {
1683
- const signals$1 = getSignals();
1684
- const length = SIGRTMAX + 1;
1685
- const signalsA = Array.from({ length }, (value, number) => getSignalByNumber(number, signals$1));
1629
+ const signals = getSignals();
1630
+ const signalsA = Array.from({ length: 65 }, (value, number) => getSignalByNumber(number, signals));
1686
1631
  return Object.assign({}, ...signalsA);
1687
1632
  };
1688
- const getSignalByNumber = (number, signals$1) => {
1689
- const signal = findSignalByNumber(number, signals$1);
1633
+ const getSignalByNumber = (number, signals) => {
1634
+ const signal = findSignalByNumber(number, signals);
1690
1635
  if (signal === void 0) return {};
1691
1636
  const { name, description, supported, action, forced, standard } = signal;
1692
1637
  return { [number]: {
@@ -1699,13 +1644,12 @@ const getSignalByNumber = (number, signals$1) => {
1699
1644
  standard
1700
1645
  } };
1701
1646
  };
1702
- const findSignalByNumber = (number, signals$1) => {
1703
- const signal = signals$1.find(({ name }) => constants.signals[name] === number);
1647
+ const findSignalByNumber = (number, signals) => {
1648
+ const signal = signals.find(({ name }) => constants.signals[name] === number);
1704
1649
  if (signal !== void 0) return signal;
1705
- return signals$1.find((signalA) => signalA.number === number);
1650
+ return signals.find((signalA) => signalA.number === number);
1706
1651
  };
1707
- const signalsByNumber = getSignalsByNumber();
1708
-
1652
+ getSignalsByNumber();
1709
1653
  //#endregion
1710
1654
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/terminate/signal.js
1711
1655
  const normalizeKillSignal = (killSignal) => {
@@ -1735,7 +1679,6 @@ Available signal numbers: ${getAvailableSignalIntegers()}.`;
1735
1679
  const getAvailableSignalNames = () => Object.keys(constants.signals).sort().map((signalName) => `'${signalName}'`).join(", ");
1736
1680
  const getAvailableSignalIntegers = () => [...new Set(Object.values(constants.signals).sort((signalInteger, signalIntegerTwo) => signalInteger - signalIntegerTwo))].join(", ");
1737
1681
  const getSignalDescription = (signal) => signalsByName[signal].description;
1738
-
1739
1682
  //#endregion
1740
1683
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/terminate/kill.js
1741
1684
  const normalizeForceKillAfterDelay = (forceKillAfterDelay) => {
@@ -1787,13 +1730,11 @@ const killOnTimeout = async ({ kill, forceKillAfterDelay, context, controllerSig
1787
1730
  if (kill("SIGKILL")) context.isForcefullyTerminated ??= true;
1788
1731
  } catch {}
1789
1732
  };
1790
-
1791
1733
  //#endregion
1792
1734
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/utils/abort-signal.js
1793
1735
  const onAbortedSignal = async (mainSignal, stopSignal) => {
1794
1736
  if (!mainSignal.aborted) await once(mainSignal, "abort", { signal: stopSignal });
1795
1737
  };
1796
-
1797
1738
  //#endregion
1798
1739
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/terminate/cancel.js
1799
1740
  const validateCancelSignal = ({ cancelSignal }) => {
@@ -1806,18 +1747,17 @@ const terminateOnCancel = async (subprocess, cancelSignal, context, { signal })
1806
1747
  subprocess.kill();
1807
1748
  throw cancelSignal.reason;
1808
1749
  };
1809
-
1810
1750
  //#endregion
1811
1751
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/validation.js
1812
- const validateIpcMethod = ({ methodName, isSubprocess, ipc, isConnected: isConnected$1 }) => {
1752
+ const validateIpcMethod = ({ methodName, isSubprocess, ipc, isConnected }) => {
1813
1753
  validateIpcOption(methodName, isSubprocess, ipc);
1814
- validateConnection(methodName, isSubprocess, isConnected$1);
1754
+ validateConnection(methodName, isSubprocess, isConnected);
1815
1755
  };
1816
1756
  const validateIpcOption = (methodName, isSubprocess, ipc) => {
1817
1757
  if (!ipc) throw new Error(`${getMethodName(methodName, isSubprocess)} can only be used if the \`ipc\` option is \`true\`.`);
1818
1758
  };
1819
- const validateConnection = (methodName, isSubprocess, isConnected$1) => {
1820
- if (!isConnected$1) throw new Error(`${getMethodName(methodName, isSubprocess)} cannot be used: the ${getOtherProcessName(isSubprocess)} has already exited or disconnected.`);
1759
+ const validateConnection = (methodName, isSubprocess, isConnected) => {
1760
+ if (!isConnected) throw new Error(`${getMethodName(methodName, isSubprocess)} cannot be used: the ${getOtherProcessName(isSubprocess)} has already exited or disconnected.`);
1821
1761
  };
1822
1762
  const throwOnEarlyDisconnect = (isSubprocess) => {
1823
1763
  throw new Error(`${getMethodName("getOneMessage", isSubprocess)} could not complete: the ${getOtherProcessName(isSubprocess)} exited or disconnected.`);
@@ -1861,7 +1801,6 @@ const getOtherProcessName = (isSubprocess) => isSubprocess ? "parent process" :
1861
1801
  const disconnect = (anyProcess) => {
1862
1802
  if (anyProcess.connected) anyProcess.disconnect();
1863
1803
  };
1864
-
1865
1804
  //#endregion
1866
1805
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/utils/deferred.js
1867
1806
  const createDeferred = () => {
@@ -1874,7 +1813,6 @@ const createDeferred = () => {
1874
1813
  });
1875
1814
  return Object.assign(promise, methods);
1876
1815
  };
1877
-
1878
1816
  //#endregion
1879
1817
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/fd-options.js
1880
1818
  const getToStream = (destination, to = "stdin") => {
@@ -1951,7 +1889,6 @@ const serializeOptionValue = (value) => {
1951
1889
  if (typeof value === "string") return `'${value}'`;
1952
1890
  return typeof value === "number" ? `${value}` : "Stream";
1953
1891
  };
1954
-
1955
1892
  //#endregion
1956
1893
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/utils/max-listeners.js
1957
1894
  const incrementMaxListeners = (eventEmitter, maxListenersIncrement, signal) => {
@@ -1962,7 +1899,6 @@ const incrementMaxListeners = (eventEmitter, maxListenersIncrement, signal) => {
1962
1899
  eventEmitter.setMaxListeners(eventEmitter.getMaxListeners() - maxListenersIncrement);
1963
1900
  });
1964
1901
  };
1965
-
1966
1902
  //#endregion
1967
1903
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/reference.js
1968
1904
  const addReference = (channel, reference) => {
@@ -1989,7 +1925,6 @@ const redoAddedReferences = (channel, isSubprocess) => {
1989
1925
  addReferenceCount(channel);
1990
1926
  }
1991
1927
  };
1992
-
1993
1928
  //#endregion
1994
1929
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/incoming.js
1995
1930
  const onMessage = async ({ anyProcess, channel, isSubprocess, ipcEmitter }, wrappedMessage) => {
@@ -2023,7 +1958,6 @@ const onDisconnect = async ({ anyProcess, channel, isSubprocess, ipcEmitter, bou
2023
1958
  ipcEmitter.emit("disconnect");
2024
1959
  };
2025
1960
  const INCOMING_MESSAGES = /* @__PURE__ */ new WeakMap();
2026
-
2027
1961
  //#endregion
2028
1962
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/forward.js
2029
1963
  const getIpcEmitter = (anyProcess, channel, isSubprocess) => {
@@ -2061,7 +1995,6 @@ const isConnected = (anyProcess) => {
2061
1995
  const ipcEmitter = IPC_EMITTERS.get(anyProcess);
2062
1996
  return ipcEmitter === void 0 ? anyProcess.channel !== null : ipcEmitter.connected;
2063
1997
  };
2064
-
2065
1998
  //#endregion
2066
1999
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/strict.js
2067
2000
  const handleSendStrict = ({ anyProcess, channel, isSubprocess, message, strict }) => {
@@ -2133,7 +2066,6 @@ const throwOnDisconnect$1 = async (anyProcess, isSubprocess, { signal }) => {
2133
2066
  };
2134
2067
  const REQUEST_TYPE = "execa:ipc:request";
2135
2068
  const RESPONSE_TYPE = "execa:ipc:response";
2136
-
2137
2069
  //#endregion
2138
2070
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/outgoing.js
2139
2071
  const startSendMessage = (anyProcess, wrappedMessage, strict) => {
@@ -2163,7 +2095,6 @@ const waitForOutgoingMessages = async (anyProcess, ipcEmitter, wrappedMessage) =
2163
2095
  const OUTGOING_MESSAGES = /* @__PURE__ */ new WeakMap();
2164
2096
  const hasMessageListeners = (anyProcess, ipcEmitter) => ipcEmitter.listenerCount("message") > getMinListenerCount(anyProcess);
2165
2097
  const getMinListenerCount = (anyProcess) => SUBPROCESS_OPTIONS.has(anyProcess) && !getFdSpecificValue(SUBPROCESS_OPTIONS.get(anyProcess).options.buffer, "ipc") ? 1 : 0;
2166
-
2167
2098
  //#endregion
2168
2099
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/send.js
2169
2100
  const sendMessage$1 = ({ anyProcess, channel, isSubprocess, ipc }, message, { strict = false } = {}) => {
@@ -2233,7 +2164,6 @@ const getSendMethod = (anyProcess) => {
2233
2164
  return sendMethod;
2234
2165
  };
2235
2166
  const PROCESS_SEND_METHODS = /* @__PURE__ */ new WeakMap();
2236
-
2237
2167
  //#endregion
2238
2168
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/graceful.js
2239
2169
  const sendAbort = (subprocess, message) => {
@@ -2284,7 +2214,6 @@ const abortOnDisconnect = () => {
2284
2214
  cancelController.abort(getAbortDisconnectError());
2285
2215
  };
2286
2216
  const cancelController = new AbortController();
2287
-
2288
2217
  //#endregion
2289
2218
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/terminate/graceful.js
2290
2219
  const validateGracefulCancel = ({ gracefulCancel, cancelSignal, ipc, serialization }) => {
@@ -2323,7 +2252,6 @@ const getReason = ({ reason }) => {
2323
2252
  });
2324
2253
  return error;
2325
2254
  };
2326
-
2327
2255
  //#endregion
2328
2256
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/terminate/timeout.js
2329
2257
  const validateTimeout = ({ timeout }) => {
@@ -2336,7 +2264,6 @@ const killAfterTimeout = async (subprocess, timeout, context, { signal }) => {
2336
2264
  subprocess.kill();
2337
2265
  throw new DiscardedError();
2338
2266
  };
2339
-
2340
2267
  //#endregion
2341
2268
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/node.js
2342
2269
  const mapNode = ({ options }) => {
@@ -2346,7 +2273,7 @@ const mapNode = ({ options }) => {
2346
2273
  node: true
2347
2274
  } };
2348
2275
  };
2349
- const handleNodeOption = (file, commandArguments, { node: shouldHandleNode = false, nodePath = execPath, nodeOptions = execArgv.filter((nodeOption) => !nodeOption.startsWith("--inspect")), cwd, execPath: formerNodePath,...options }) => {
2276
+ const handleNodeOption = (file, commandArguments, { node: shouldHandleNode = false, nodePath = execPath, nodeOptions = execArgv.filter((nodeOption) => !nodeOption.startsWith("--inspect")), cwd, execPath: formerNodePath, ...options }) => {
2350
2277
  if (formerNodePath !== void 0) throw new TypeError("The \"execPath\" option has been removed. Please use the \"nodePath\" option instead.");
2351
2278
  const normalizedNodePath = safeNormalizeFileUrl(nodePath, "The \"nodePath\" option");
2352
2279
  const resolvedNodePath = path.resolve(cwd, normalizedNodePath);
@@ -2376,7 +2303,6 @@ const handleNodeOption = (file, commandArguments, { node: shouldHandleNode = fal
2376
2303
  }
2377
2304
  ];
2378
2305
  };
2379
-
2380
2306
  //#endregion
2381
2307
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/ipc-input.js
2382
2308
  const validateIpcInputOption = ({ ipcInput, ipc, serialization }) => {
@@ -2406,7 +2332,6 @@ const sendIpcInput = async (subprocess, ipcInput) => {
2406
2332
  if (ipcInput === void 0) return;
2407
2333
  await subprocess.sendMessage(ipcInput);
2408
2334
  };
2409
-
2410
2335
  //#endregion
2411
2336
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/encoding-option.js
2412
2337
  const validateEncoding = ({ encoding }) => {
@@ -2414,7 +2339,7 @@ const validateEncoding = ({ encoding }) => {
2414
2339
  const correctEncoding = getCorrectEncoding(encoding);
2415
2340
  if (correctEncoding !== void 0) throw new TypeError(`Invalid option \`encoding: ${serializeEncoding(encoding)}\`.
2416
2341
  Please rename it to ${serializeEncoding(correctEncoding)}.`);
2417
- const correctEncodings = [...ENCODINGS].map((correctEncoding$1) => serializeEncoding(correctEncoding$1)).join(", ");
2342
+ const correctEncodings = [...ENCODINGS].map((correctEncoding) => serializeEncoding(correctEncoding)).join(", ");
2418
2343
  throw new TypeError(`Invalid option \`encoding: ${serializeEncoding(encoding)}\`.
2419
2344
  Please rename it to one of: ${correctEncodings}.`);
2420
2345
  };
@@ -2443,7 +2368,6 @@ const ENCODING_ALIASES = {
2443
2368
  binary: "latin1"
2444
2369
  };
2445
2370
  const serializeEncoding = (encoding) => typeof encoding === "string" ? `"${encoding}"` : String(encoding);
2446
-
2447
2371
  //#endregion
2448
2372
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/cwd.js
2449
2373
  const normalizeCwd = (cwd = getDefaultCwd()) => {
@@ -2469,7 +2393,6 @@ const fixCwdError = (originalMessage, cwd) => {
2469
2393
  if (!cwdStat.isDirectory()) return `The "cwd" option is not a directory: ${cwd}.\n${originalMessage}`;
2470
2394
  return originalMessage;
2471
2395
  };
2472
-
2473
2396
  //#endregion
2474
2397
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/options.js
2475
2398
  const normalizeOptions = (filePath, rawArguments, rawOptions) => {
@@ -2494,7 +2417,7 @@ const normalizeOptions = (filePath, rawArguments, rawOptions) => {
2494
2417
  options
2495
2418
  };
2496
2419
  };
2497
- 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 }) => ({
2420
+ 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 }) => ({
2498
2421
  ...options,
2499
2422
  extendEnv,
2500
2423
  preferLocal,
@@ -2526,7 +2449,6 @@ const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory,
2526
2449
  });
2527
2450
  return env;
2528
2451
  };
2529
-
2530
2452
  //#endregion
2531
2453
  //#region ../../node_modules/.pnpm/strip-final-newline@4.0.0/node_modules/strip-final-newline/index.js
2532
2454
  function stripFinalNewline(input) {
@@ -2540,22 +2462,20 @@ const LF = "\n";
2540
2462
  const LF_BINARY = LF.codePointAt(0);
2541
2463
  const CR = "\r";
2542
2464
  const CR_BINARY = CR.codePointAt(0);
2543
-
2544
2465
  //#endregion
2545
2466
  //#region ../../node_modules/.pnpm/is-stream@4.0.1/node_modules/is-stream/index.js
2546
2467
  function isStream(stream, { checkOpen = true } = {}) {
2547
2468
  return stream !== null && typeof stream === "object" && (stream.writable || stream.readable || !checkOpen || stream.writable === void 0 && stream.readable === void 0) && typeof stream.pipe === "function";
2548
2469
  }
2549
- function isWritableStream(stream, { checkOpen = true } = {}) {
2470
+ function isWritableStream$1(stream, { checkOpen = true } = {}) {
2550
2471
  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";
2551
2472
  }
2552
- function isReadableStream(stream, { checkOpen = true } = {}) {
2473
+ function isReadableStream$1(stream, { checkOpen = true } = {}) {
2553
2474
  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";
2554
2475
  }
2555
2476
  function isDuplexStream(stream, options) {
2556
- return isWritableStream(stream, options) && isReadableStream(stream, options);
2477
+ return isWritableStream$1(stream, options) && isReadableStream$1(stream, options);
2557
2478
  }
2558
-
2559
2479
  //#endregion
2560
2480
  //#region ../../node_modules/.pnpm/@sec-ant+readable-stream@0.4.1/node_modules/@sec-ant/readable-stream/dist/ponyfill/asyncIterator.js
2561
2481
  const a = Object.getPrototypeOf(Object.getPrototypeOf(
@@ -2636,11 +2556,10 @@ function h({ preventCancel: r = !1 } = {}) {
2636
2556
  const t = new c(this.getReader(), r), s = Object.create(u);
2637
2557
  return s[n] = t, s;
2638
2558
  }
2639
-
2640
2559
  //#endregion
2641
2560
  //#region ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/stream.js
2642
2561
  const getAsyncIterable = (stream) => {
2643
- if (isReadableStream(stream, { checkOpen: false }) && nodeImports.on !== void 0) return getStreamIterable(stream);
2562
+ if (isReadableStream$1(stream, { checkOpen: false }) && nodeImports.on !== void 0) return getStreamIterable(stream);
2644
2563
  if (typeof stream?.[Symbol.asyncIterator] === "function") return stream;
2645
2564
  if (toString.call(stream) === "[object ReadableStream]") return h.call(stream);
2646
2565
  throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.");
@@ -2674,7 +2593,6 @@ const handleStreamEnd = async (stream, controller, state) => {
2674
2593
  }
2675
2594
  };
2676
2595
  const nodeImports = {};
2677
-
2678
2596
  //#endregion
2679
2597
  //#region ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/contents.js
2680
2598
  const getStreamContents$1 = async (stream, { init, convertChunk, getSize, truncateChunk, addChunk, getFinalChunk, finalize }, { maxBuffer = Number.POSITIVE_INFINITY } = {}) => {
@@ -2750,7 +2668,6 @@ var MaxBufferError = class extends Error {
2750
2668
  super("maxBuffer exceeded");
2751
2669
  }
2752
2670
  };
2753
-
2754
2671
  //#endregion
2755
2672
  //#region ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/utils.js
2756
2673
  const identity = (value) => value;
@@ -2760,7 +2677,6 @@ const throwObjectStream = (chunk) => {
2760
2677
  throw new Error(`Streams in object mode are not supported: ${String(chunk)}`);
2761
2678
  };
2762
2679
  const getLengthProperty = (convertedChunk) => convertedChunk.length;
2763
-
2764
2680
  //#endregion
2765
2681
  //#region ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/array.js
2766
2682
  async function getStreamAsArray(stream, options) {
@@ -2788,7 +2704,6 @@ const arrayMethods = {
2788
2704
  getFinalChunk: noop$1,
2789
2705
  finalize: getContentsProperty
2790
2706
  };
2791
-
2792
2707
  //#endregion
2793
2708
  //#region ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/array-buffer.js
2794
2709
  async function getStreamAsArrayBuffer(stream, options) {
@@ -2840,7 +2755,6 @@ const arrayBufferMethods = {
2840
2755
  getFinalChunk: noop$1,
2841
2756
  finalize: finalizeArrayBuffer
2842
2757
  };
2843
-
2844
2758
  //#endregion
2845
2759
  //#region ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/string.js
2846
2760
  async function getStreamAsString(stream, options) {
@@ -2850,11 +2764,11 @@ const initString = () => ({
2850
2764
  contents: "",
2851
2765
  textDecoder: new TextDecoder()
2852
2766
  });
2853
- const useTextDecoder = (chunk, { textDecoder: textDecoder$1 }) => textDecoder$1.decode(chunk, { stream: true });
2767
+ const useTextDecoder = (chunk, { textDecoder }) => textDecoder.decode(chunk, { stream: true });
2854
2768
  const addStringChunk = (convertedChunk, { contents }) => contents + convertedChunk;
2855
2769
  const truncateStringChunk = (convertedChunk, chunkSize) => convertedChunk.slice(0, chunkSize);
2856
- const getFinalStringChunk = ({ textDecoder: textDecoder$1 }) => {
2857
- const finalChunk = textDecoder$1.decode();
2770
+ const getFinalStringChunk = ({ textDecoder }) => {
2771
+ const finalChunk = textDecoder.decode();
2858
2772
  return finalChunk === "" ? void 0 : finalChunk;
2859
2773
  };
2860
2774
  const stringMethods = {
@@ -2873,7 +2787,6 @@ const stringMethods = {
2873
2787
  getFinalChunk: getFinalStringChunk,
2874
2788
  finalize: getContentsProperty
2875
2789
  };
2876
-
2877
2790
  //#endregion
2878
2791
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/max-buffer.js
2879
2792
  const handleMaxBuffer = ({ error, stream, readableObjectMode, lines, encoding, fdNumber }) => {
@@ -2929,7 +2842,6 @@ const truncateMaxBufferSync = (result, isMaxBuffer, maxBuffer) => {
2929
2842
  return result.length > maxBufferValue ? result.slice(0, maxBufferValue) : result;
2930
2843
  };
2931
2844
  const getMaxBufferSync = ([, stdoutMaxBuffer]) => stdoutMaxBuffer;
2932
-
2933
2845
  //#endregion
2934
2846
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/message.js
2935
2847
  const createMessages = ({ stdio, all, ipcOutput, originalError, signal, signalDescription, exitCode, escapedCommand, timedOut, isCanceled, isGracefullyCanceled, isMaxBuffer, isForcefullyTerminated, forceKillAfterDelay, killSignal, maxBuffer, timeout, cwd }) => {
@@ -2991,7 +2903,6 @@ const serializeMessageItem = (messageItem) => {
2991
2903
  if (isUint8Array(messageItem)) return uint8ArrayToString(messageItem);
2992
2904
  return "";
2993
2905
  };
2994
-
2995
2906
  //#endregion
2996
2907
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/result.js
2997
2908
  const makeSuccessResult = ({ command, escapedCommand, stdio, all, ipcOutput, options: { cwd }, startTime }) => omitUndefinedProperties({
@@ -3109,7 +3020,6 @@ const normalizeExitPayload = (rawExitCode, rawSignal) => {
3109
3020
  signalDescription: signal === void 0 ? void 0 : getSignalDescription(rawSignal)
3110
3021
  };
3111
3022
  };
3112
-
3113
3023
  //#endregion
3114
3024
  //#region ../../node_modules/.pnpm/parse-ms@4.0.0/node_modules/parse-ms/index.js
3115
3025
  const toZeroIfInfinity = (value) => Number.isFinite(value) ? value : 0;
@@ -3144,11 +3054,10 @@ function parseMilliseconds(milliseconds) {
3144
3054
  }
3145
3055
  throw new TypeError("Expected a finite number or bigint");
3146
3056
  }
3147
-
3148
3057
  //#endregion
3149
3058
  //#region ../../node_modules/.pnpm/pretty-ms@9.2.0/node_modules/pretty-ms/index.js
3150
3059
  const isZero = (value) => value === 0 || value === 0n;
3151
- const pluralize = (word, count$1) => count$1 === 1 || count$1 === 1n ? word : `${word}s`;
3060
+ const pluralize = (word, count) => count === 1 || count === 1n ? word : `${word}s`;
3152
3061
  const SECOND_ROUNDING_EPSILON = 1e-7;
3153
3062
  const ONE_DAY_IN_MILLISECONDS = 24n * 60n * 60n * 1000n;
3154
3063
  function prettyMilliseconds(milliseconds, options) {
@@ -3197,16 +3106,16 @@ function prettyMilliseconds(milliseconds, options) {
3197
3106
  add(Number(parsed.minutes), "minute", "m");
3198
3107
  if (!options.hideSeconds) if (options.separateMilliseconds || options.formatSubMilliseconds || !options.colonNotation && milliseconds < 1e3) {
3199
3108
  const seconds = Number(parsed.seconds);
3200
- const milliseconds$1 = Number(parsed.milliseconds);
3109
+ const milliseconds = Number(parsed.milliseconds);
3201
3110
  const microseconds = Number(parsed.microseconds);
3202
3111
  const nanoseconds = Number(parsed.nanoseconds);
3203
3112
  add(seconds, "second", "s");
3204
3113
  if (options.formatSubMilliseconds) {
3205
- add(milliseconds$1, "millisecond", "ms");
3114
+ add(milliseconds, "millisecond", "ms");
3206
3115
  add(microseconds, "microsecond", "µs");
3207
3116
  add(nanoseconds, "nanosecond", "ns");
3208
3117
  } else {
3209
- const millisecondsAndBelow = milliseconds$1 + microseconds / 1e3 + nanoseconds / 1e6;
3118
+ const millisecondsAndBelow = milliseconds + microseconds / 1e3 + nanoseconds / 1e6;
3210
3119
  const millisecondsDecimalDigits = typeof options.millisecondsDecimalDigits === "number" ? options.millisecondsDecimalDigits : 0;
3211
3120
  const millisecondsString = millisecondsDecimalDigits ? millisecondsAndBelow.toFixed(millisecondsDecimalDigits) : millisecondsAndBelow >= 1 ? Math.round(millisecondsAndBelow) : Math.ceil(millisecondsAndBelow);
3212
3121
  add(Number.parseFloat(millisecondsString), "millisecond", "ms", millisecondsString);
@@ -3221,7 +3130,6 @@ function prettyMilliseconds(milliseconds, options) {
3221
3130
  if (typeof options.unitCount === "number") result = result.slice(0, Math.max(options.unitCount, 1));
3222
3131
  return sign + result.join(separator);
3223
3132
  }
3224
-
3225
3133
  //#endregion
3226
3134
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/error.js
3227
3135
  const logError = (result, verboseInfo) => {
@@ -3232,7 +3140,6 @@ const logError = (result, verboseInfo) => {
3232
3140
  result
3233
3141
  });
3234
3142
  };
3235
-
3236
3143
  //#endregion
3237
3144
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/complete.js
3238
3145
  const logResult = (result, verboseInfo) => {
@@ -3248,7 +3155,6 @@ const logDuration = (result, verboseInfo) => {
3248
3155
  result
3249
3156
  });
3250
3157
  };
3251
-
3252
3158
  //#endregion
3253
3159
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/reject.js
3254
3160
  const handleResult = (result, verboseInfo, { reject }) => {
@@ -3256,7 +3162,6 @@ const handleResult = (result, verboseInfo, { reject }) => {
3256
3162
  if (result.failed && reject) throw result;
3257
3163
  return result;
3258
3164
  };
3259
-
3260
3165
  //#endregion
3261
3166
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/type.js
3262
3167
  const getStdioItemType = (value, optionName) => {
@@ -3323,10 +3228,10 @@ const KNOWN_STDIO_STRINGS = new Set([
3323
3228
  "overlapped",
3324
3229
  "pipe"
3325
3230
  ]);
3326
- const isReadableStream$1 = (value) => Object.prototype.toString.call(value) === "[object ReadableStream]";
3327
- const isWritableStream$1 = (value) => Object.prototype.toString.call(value) === "[object WritableStream]";
3328
- const isWebStream = (value) => isReadableStream$1(value) || isWritableStream$1(value);
3329
- const isTransformStream = (value) => isReadableStream$1(value?.readable) && isWritableStream$1(value?.writable);
3231
+ const isReadableStream = (value) => Object.prototype.toString.call(value) === "[object ReadableStream]";
3232
+ const isWritableStream = (value) => Object.prototype.toString.call(value) === "[object WritableStream]";
3233
+ const isWebStream = (value) => isReadableStream(value) || isWritableStream(value);
3234
+ const isTransformStream = (value) => isReadableStream(value?.readable) && isWritableStream(value?.writable);
3330
3235
  const isAsyncIterableObject = (value) => isObject(value) && typeof value[Symbol.asyncIterator] === "function";
3331
3236
  const isIterableObject = (value) => isObject(value) && typeof value[Symbol.iterator] === "function";
3332
3237
  const isObject = (value) => typeof value === "object" && value !== null;
@@ -3364,7 +3269,6 @@ const TYPE_TO_MESSAGE = {
3364
3269
  string: "a string",
3365
3270
  uint8Array: "a Uint8Array"
3366
3271
  };
3367
-
3368
3272
  //#endregion
3369
3273
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/object-mode.js
3370
3274
  const getTransformObjectModes = (objectMode, index, newTransforms, direction) => direction === "output" ? getOutputObjectModes(objectMode, index, newTransforms) : getInputObjectModes(objectMode, index, newTransforms);
@@ -3387,7 +3291,6 @@ const getFdObjectMode = (stdioItems, direction) => {
3387
3291
  if (lastTransform === void 0) return false;
3388
3292
  return direction === "input" ? lastTransform.value.writableObjectMode : lastTransform.value.readableObjectMode;
3389
3293
  };
3390
-
3391
3294
  //#endregion
3392
3295
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/normalize.js
3393
3296
  const normalizeTransforms = (stdioItems, optionName, direction, options) => [...stdioItems.filter(({ type }) => !TRANSFORM_TYPES.has(type)), ...getTransforms(stdioItems, optionName, direction, options)];
@@ -3464,7 +3367,6 @@ const normalizeGenerator = ({ stdioItem, stdioItem: { value }, index, newTransfo
3464
3367
  };
3465
3368
  };
3466
3369
  const sortTransforms = (newTransforms, direction) => direction === "input" ? newTransforms.reverse() : newTransforms;
3467
-
3468
3370
  //#endregion
3469
3371
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/direction.js
3470
3372
  const getStreamDirection = (stdioItems, fdNumber, optionName) => {
@@ -3488,10 +3390,10 @@ const guessStreamDirection = {
3488
3390
  iterable: alwaysInput,
3489
3391
  asyncIterable: alwaysInput,
3490
3392
  uint8Array: alwaysInput,
3491
- webStream: (value) => isWritableStream$1(value) ? "output" : "input",
3393
+ webStream: (value) => isWritableStream(value) ? "output" : "input",
3492
3394
  nodeStream(value) {
3493
- if (!isReadableStream(value, { checkOpen: false })) return "output";
3494
- return isWritableStream(value, { checkOpen: false }) ? void 0 : "input";
3395
+ if (!isReadableStream$1(value, { checkOpen: false })) return "output";
3396
+ return isWritableStream$1(value, { checkOpen: false }) ? void 0 : "input";
3495
3397
  },
3496
3398
  webTransform: anyDirection,
3497
3399
  duplex: anyDirection,
@@ -3511,14 +3413,12 @@ const getStandardStreamDirection = (value) => {
3511
3413
  ].includes(value)) return "output";
3512
3414
  };
3513
3415
  const DEFAULT_DIRECTION = "output";
3514
-
3515
3416
  //#endregion
3516
3417
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/array.js
3517
3418
  const normalizeIpcStdioArray = (stdioArray, ipc) => ipc && !stdioArray.includes("ipc") ? [...stdioArray, "ipc"] : stdioArray;
3518
-
3519
3419
  //#endregion
3520
3420
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/stdio-option.js
3521
- const normalizeStdioOption = ({ stdio, ipc, buffer,...options }, verboseInfo, isSync) => {
3421
+ const normalizeStdioOption = ({ stdio, ipc, buffer, ...options }, verboseInfo, isSync) => {
3522
3422
  const stdioArray = getStdioArray(stdio, options).map((stdioOption, fdNumber) => addDefaultValue(stdioOption, fdNumber));
3523
3423
  return isSync ? normalizeStdioSync(stdioArray, buffer, verboseInfo) : normalizeIpcStdioArray(stdioArray, ipc);
3524
3424
  };
@@ -3542,7 +3442,6 @@ const addDefaultValue = (stdioOption, fdNumber) => {
3542
3442
  };
3543
3443
  const normalizeStdioSync = (stdioArray, buffer, verboseInfo) => stdioArray.map((stdioOption, fdNumber) => !buffer[fdNumber] && fdNumber !== 0 && !isFullVerbose(verboseInfo, fdNumber) && isOutputPipeOnly(stdioOption) ? "ignore" : stdioOption);
3544
3444
  const isOutputPipeOnly = (stdioOption) => stdioOption === "pipe" || Array.isArray(stdioOption) && stdioOption.every((item) => item === "pipe");
3545
-
3546
3445
  //#endregion
3547
3446
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/native.js
3548
3447
  const handleNativeStream = ({ stdioItem, stdioItem: { type }, isStdioArray, fdNumber, direction, isSync }) => {
@@ -3611,7 +3510,6 @@ const getStandardStream = (fdNumber, value, optionName) => {
3611
3510
  if (standardStream === void 0) throw new TypeError(`The \`${optionName}: ${value}\` option is invalid: no such standard stream.`);
3612
3511
  return standardStream;
3613
3512
  };
3614
-
3615
3513
  //#endregion
3616
3514
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/input-option.js
3617
3515
  const handleInputOptions = ({ input, inputFile }, fdNumber) => fdNumber === 0 ? [...handleInputOption(input), ...handleInputFileOption(inputFile)] : [];
@@ -3621,7 +3519,7 @@ const handleInputOption = (input) => input === void 0 ? [] : [{
3621
3519
  optionName: "input"
3622
3520
  }];
3623
3521
  const getInputType = (input) => {
3624
- if (isReadableStream(input, { checkOpen: false })) return "nodeStream";
3522
+ if (isReadableStream$1(input, { checkOpen: false })) return "nodeStream";
3625
3523
  if (typeof input === "string") return "string";
3626
3524
  if (isUint8Array(input)) return "uint8Array";
3627
3525
  throw new Error("The `input` option must be a string, a Uint8Array or a Node.js Readable stream.");
@@ -3641,7 +3539,6 @@ const getInputFileType = (inputFile) => {
3641
3539
  };
3642
3540
  throw new Error("The `inputFile` option must be a file path string or a file URL.");
3643
3541
  };
3644
-
3645
3542
  //#endregion
3646
3543
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/duplicate.js
3647
3544
  const filterDuplicates = (stdioItems) => stdioItems.filter((stdioItemOne, indexOne) => stdioItems.every((stdioItemTwo, indexTwo) => stdioItemOne.value !== stdioItemTwo.value || indexOne >= indexTwo || stdioItemOne.type === "generator" || stdioItemOne.type === "asyncGenerator"));
@@ -3702,10 +3599,9 @@ const validateDuplicateTransform = ({ otherStdioItems, type, value, optionName }
3702
3599
  const throwOnDuplicateStream = (stdioItem, optionName, type) => {
3703
3600
  if (stdioItem !== void 0) throw new TypeError(`The \`${stdioItem.optionName}\` and \`${optionName}\` options must not target ${TYPE_TO_MESSAGE[type]} that is the same.`);
3704
3601
  };
3705
-
3706
3602
  //#endregion
3707
3603
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/handle.js
3708
- const handleStdio = (addProperties$2, options, verboseInfo, isSync) => {
3604
+ const handleStdio = (addProperties, options, verboseInfo, isSync) => {
3709
3605
  const fileDescriptors = getFinalFileDescriptors({
3710
3606
  initialFileDescriptors: normalizeStdioOption(options, verboseInfo, isSync).map((stdioOption, fdNumber) => getFileDescriptor({
3711
3607
  stdioOption,
@@ -3713,7 +3609,7 @@ const handleStdio = (addProperties$2, options, verboseInfo, isSync) => {
3713
3609
  options,
3714
3610
  isSync
3715
3611
  })),
3716
- addProperties: addProperties$2,
3612
+ addProperties,
3717
3613
  options,
3718
3614
  isSync
3719
3615
  });
@@ -3762,7 +3658,7 @@ const initializeStdioItem = (value, optionName) => ({
3762
3658
  const validateStdioArray = (stdioItems, isStdioArray, optionName) => {
3763
3659
  if (stdioItems.length === 0) throw new TypeError(`The \`${optionName}\` option must not be an empty array.`);
3764
3660
  if (!isStdioArray) return;
3765
- 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}\`.`);
3661
+ for (const { value, optionName } of stdioItems) if (INVALID_STDIO_ARRAY_OPTIONS.has(value)) throw new Error(`The \`${optionName}\` option must not include \`${value}\`.`);
3766
3662
  };
3767
3663
  const INVALID_STDIO_ARRAY_OPTIONS = new Set(["ignore", "ipc"]);
3768
3664
  const validateStreams = (stdioItems) => {
@@ -3778,13 +3674,13 @@ const validateFileObjectMode = (stdioItems, objectMode) => {
3778
3674
  const fileStdioItem = stdioItems.find(({ type }) => FILE_TYPES.has(type));
3779
3675
  if (fileStdioItem !== void 0) throw new TypeError(`The \`${fileStdioItem.optionName}\` option cannot use both files and transforms in objectMode.`);
3780
3676
  };
3781
- const getFinalFileDescriptors = ({ initialFileDescriptors, addProperties: addProperties$2, options, isSync }) => {
3677
+ const getFinalFileDescriptors = ({ initialFileDescriptors, addProperties, options, isSync }) => {
3782
3678
  const fileDescriptors = [];
3783
3679
  try {
3784
3680
  for (const fileDescriptor of initialFileDescriptors) fileDescriptors.push(getFinalFileDescriptor({
3785
3681
  fileDescriptor,
3786
3682
  fileDescriptors,
3787
- addProperties: addProperties$2,
3683
+ addProperties,
3788
3684
  options,
3789
3685
  isSync
3790
3686
  }));
@@ -3794,13 +3690,13 @@ const getFinalFileDescriptors = ({ initialFileDescriptors, addProperties: addPro
3794
3690
  throw error;
3795
3691
  }
3796
3692
  };
3797
- const getFinalFileDescriptor = ({ fileDescriptor: { direction, objectMode, stdioItems }, fileDescriptors, addProperties: addProperties$2, options, isSync }) => {
3693
+ const getFinalFileDescriptor = ({ fileDescriptor: { direction, objectMode, stdioItems }, fileDescriptors, addProperties, options, isSync }) => {
3798
3694
  return {
3799
3695
  direction,
3800
3696
  objectMode,
3801
3697
  stdioItems: stdioItems.map((stdioItem) => addStreamProperties({
3802
3698
  stdioItem,
3803
- addProperties: addProperties$2,
3699
+ addProperties,
3804
3700
  direction,
3805
3701
  options,
3806
3702
  fileDescriptors,
@@ -3808,7 +3704,7 @@ const getFinalFileDescriptor = ({ fileDescriptor: { direction, objectMode, stdio
3808
3704
  }))
3809
3705
  };
3810
3706
  };
3811
- const addStreamProperties = ({ stdioItem, addProperties: addProperties$2, direction, options, fileDescriptors, isSync }) => {
3707
+ const addStreamProperties = ({ stdioItem, addProperties, direction, options, fileDescriptors, isSync }) => {
3812
3708
  const duplicateStream = getDuplicateStream({
3813
3709
  stdioItem,
3814
3710
  direction,
@@ -3821,18 +3717,17 @@ const addStreamProperties = ({ stdioItem, addProperties: addProperties$2, direct
3821
3717
  };
3822
3718
  return {
3823
3719
  ...stdioItem,
3824
- ...addProperties$2[direction][stdioItem.type](stdioItem, options)
3720
+ ...addProperties[direction][stdioItem.type](stdioItem, options)
3825
3721
  };
3826
3722
  };
3827
3723
  const cleanupCustomStreams = (fileDescriptors) => {
3828
3724
  for (const { stdioItems } of fileDescriptors) for (const { stream } of stdioItems) if (stream !== void 0 && !isStandardStream(stream)) stream.destroy();
3829
3725
  };
3830
3726
  const forwardStdio = (stdioItems) => {
3831
- if (stdioItems.length > 1) return stdioItems.some(({ value: value$1 }) => value$1 === "overlapped") ? "overlapped" : "pipe";
3727
+ if (stdioItems.length > 1) return stdioItems.some(({ value }) => value === "overlapped") ? "overlapped" : "pipe";
3832
3728
  const [{ type, value }] = stdioItems;
3833
3729
  return type === "native" ? value : "pipe";
3834
3730
  };
3835
-
3836
3731
  //#endregion
3837
3732
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/handle-sync.js
3838
3733
  const handleStdioSync = (options, verboseInfo) => handleStdio(addPropertiesSync, options, verboseInfo, true);
@@ -3879,12 +3774,10 @@ const addPropertiesSync = {
3879
3774
  uint8Array: forbiddenIfSync
3880
3775
  }
3881
3776
  };
3882
-
3883
3777
  //#endregion
3884
3778
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/strip-newline.js
3885
3779
  const stripNewline = (value, { stripFinalNewline: stripFinalNewline$1 }, fdNumber) => getStripFinalNewline(stripFinalNewline$1, fdNumber) && value !== void 0 && !Array.isArray(value) ? stripFinalNewline(value) : value;
3886
- const getStripFinalNewline = (stripFinalNewline$1, fdNumber) => fdNumber === "all" ? stripFinalNewline$1[1] || stripFinalNewline$1[2] : stripFinalNewline$1[fdNumber];
3887
-
3780
+ const getStripFinalNewline = (stripFinalNewline, fdNumber) => fdNumber === "all" ? stripFinalNewline[1] || stripFinalNewline[2] : stripFinalNewline[fdNumber];
3888
3781
  //#endregion
3889
3782
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/split.js
3890
3783
  const getSplitLinesGenerator = (binary, preserveNewlines, skipped, state) => binary || skipped ? void 0 : initializeSplitLines(preserveNewlines, state);
@@ -3930,8 +3823,8 @@ const linesFinal = function* ({ previousChunks }) {
3930
3823
  };
3931
3824
  const getAppendNewlineGenerator = ({ binary, preserveNewlines, readableObjectMode, state }) => binary || preserveNewlines || readableObjectMode ? void 0 : { transform: appendNewlineGenerator.bind(void 0, state) };
3932
3825
  const appendNewlineGenerator = function* ({ isWindowsNewline = false }, chunk) {
3933
- const { unixNewline, windowsNewline, LF: LF$1, concatBytes } = typeof chunk === "string" ? linesStringInfo : linesUint8ArrayInfo;
3934
- if (chunk.at(-1) === LF$1) {
3826
+ const { unixNewline, windowsNewline, LF, concatBytes } = typeof chunk === "string" ? linesStringInfo : linesUint8ArrayInfo;
3827
+ if (chunk.at(-1) === LF) {
3935
3828
  yield chunk;
3936
3829
  return;
3937
3830
  }
@@ -3956,7 +3849,6 @@ const linesUint8ArrayInfo = {
3956
3849
  LF: 10,
3957
3850
  concatBytes: concatUint8Array
3958
3851
  };
3959
-
3960
3852
  //#endregion
3961
3853
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/validate.js
3962
3854
  const getValidateTransformInput = (writableObjectMode, optionName) => writableObjectMode ? void 0 : validateStringTransformInput.bind(void 0, optionName);
@@ -3979,7 +3871,6 @@ const validateEmptyReturn = (optionName, chunk) => {
3979
3871
  Instead, \`yield\` should either be called with a value, or not be called at all. For example:
3980
3872
  if (condition) { yield value; }`);
3981
3873
  };
3982
-
3983
3874
  //#endregion
3984
3875
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/encoding-transform.js
3985
3876
  const getEncodingTransformGenerator = (binary, encoding, skipped) => {
@@ -3991,9 +3882,9 @@ const getEncodingTransformGenerator = (binary, encoding, skipped) => {
3991
3882
  final: encodingStringFinal.bind(void 0, stringDecoder)
3992
3883
  };
3993
3884
  };
3994
- const encodingUint8ArrayGenerator = function* (textEncoder$2, chunk) {
3885
+ const encodingUint8ArrayGenerator = function* (textEncoder, chunk) {
3995
3886
  if (Buffer$1.isBuffer(chunk)) yield bufferToUint8Array(chunk);
3996
- else if (typeof chunk === "string") yield textEncoder$2.encode(chunk);
3887
+ else if (typeof chunk === "string") yield textEncoder.encode(chunk);
3997
3888
  else yield chunk;
3998
3889
  };
3999
3890
  const encodingStringGenerator = function* (stringDecoder, chunk) {
@@ -4003,7 +3894,6 @@ const encodingStringFinal = function* (stringDecoder) {
4003
3894
  const lastChunk = stringDecoder.end();
4004
3895
  if (lastChunk !== "") yield lastChunk;
4005
3896
  };
4006
-
4007
3897
  //#endregion
4008
3898
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/run-async.js
4009
3899
  const pushChunks = callbackify(async (getChunks, state, getChunksArguments, transformStream) => {
@@ -4039,7 +3929,6 @@ const destroyTransform = callbackify(async ({ currentIterable }, error) => {
4039
3929
  const identityGenerator$1 = function* (chunk) {
4040
3930
  yield chunk;
4041
3931
  };
4042
-
4043
3932
  //#endregion
4044
3933
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/run-sync.js
4045
3934
  const pushChunksSync = (getChunksSync, getChunksArguments, transformStream, done) => {
@@ -4069,7 +3958,6 @@ const generatorFinalChunksSync = function* (final, index, generators) {
4069
3958
  const identityGenerator = function* (chunk) {
4070
3959
  yield chunk;
4071
3960
  };
4072
-
4073
3961
  //#endregion
4074
3962
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/generator.js
4075
3963
  const generatorToStream = ({ value, value: { transform, final, writableObjectMode, readableObjectMode }, optionName }, { encoding }) => {
@@ -4085,7 +3973,7 @@ const generatorToStream = ({ value, value: { transform, final, writableObjectMod
4085
3973
  writableHighWaterMark: getDefaultHighWaterMark(writableObjectMode),
4086
3974
  readableObjectMode,
4087
3975
  readableHighWaterMark: getDefaultHighWaterMark(readableObjectMode),
4088
- transform(chunk, encoding$1, done) {
3976
+ transform(chunk, encoding, done) {
4089
3977
  transformMethod([
4090
3978
  chunk,
4091
3979
  generators,
@@ -4123,7 +4011,6 @@ const addInternalGenerators = ({ transform, final, binary, writableObjectMode, r
4123
4011
  })
4124
4012
  ].filter(Boolean);
4125
4013
  };
4126
-
4127
4014
  //#endregion
4128
4015
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/input-sync.js
4129
4016
  const addInputOptionsSync = (fileDescriptors, options) => {
@@ -4149,7 +4036,6 @@ const validateSerializable = (newContents) => {
4149
4036
  const invalidItem = newContents.find((item) => typeof item !== "string" && !isUint8Array(item));
4150
4037
  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}.`);
4151
4038
  };
4152
-
4153
4039
  //#endregion
4154
4040
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/output.js
4155
4041
  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)));
@@ -4170,7 +4056,6 @@ const logLine = (line, fdNumber, verboseInfo) => {
4170
4056
  verboseInfo
4171
4057
  });
4172
4058
  };
4173
-
4174
4059
  //#endregion
4175
4060
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/output-sync.js
4176
4061
  const transformOutputSync = ({ fileDescriptors, syncResult: { output }, options, isMaxBuffer, verboseInfo }) => {
@@ -4190,7 +4075,7 @@ const transformOutputSync = ({ fileDescriptors, syncResult: { output }, options,
4190
4075
  ...state
4191
4076
  };
4192
4077
  };
4193
- const transformOutputResultSync = ({ result, fileDescriptors, fdNumber, state, outputFiles, isMaxBuffer, verboseInfo }, { buffer, encoding, lines, stripFinalNewline: stripFinalNewline$1, maxBuffer }) => {
4078
+ const transformOutputResultSync = ({ result, fileDescriptors, fdNumber, state, outputFiles, isMaxBuffer, verboseInfo }, { buffer, encoding, lines, stripFinalNewline, maxBuffer }) => {
4194
4079
  if (result === null) return;
4195
4080
  const uint8ArrayResult = bufferToUint8Array(truncateMaxBufferSync(result, isMaxBuffer, maxBuffer));
4196
4081
  const { stdioItems, objectMode } = fileDescriptors[fdNumber];
@@ -4199,7 +4084,7 @@ const transformOutputResultSync = ({ result, fileDescriptors, fdNumber, state, o
4199
4084
  objectMode,
4200
4085
  encoding,
4201
4086
  lines,
4202
- stripFinalNewline: stripFinalNewline$1,
4087
+ stripFinalNewline,
4203
4088
  fdNumber
4204
4089
  });
4205
4090
  logOutputSync({
@@ -4228,13 +4113,13 @@ const runOutputGeneratorsSync = (chunks, stdioItems, encoding, state) => {
4228
4113
  return chunks;
4229
4114
  }
4230
4115
  };
4231
- const serializeChunks = ({ chunks, objectMode, encoding, lines, stripFinalNewline: stripFinalNewline$1, fdNumber }) => {
4116
+ const serializeChunks = ({ chunks, objectMode, encoding, lines, stripFinalNewline, fdNumber }) => {
4232
4117
  if (objectMode) return { serializedResult: chunks };
4233
4118
  if (encoding === "buffer") return { serializedResult: joinToUint8Array(chunks) };
4234
4119
  const serializedResult = joinToString(chunks, encoding);
4235
4120
  if (lines[fdNumber]) return {
4236
4121
  serializedResult,
4237
- finalResult: splitLinesSync(serializedResult, !stripFinalNewline$1[fdNumber], objectMode)
4122
+ finalResult: splitLinesSync(serializedResult, !stripFinalNewline[fdNumber], objectMode)
4238
4123
  };
4239
4124
  return { serializedResult };
4240
4125
  };
@@ -4253,16 +4138,15 @@ const logOutputSync = ({ serializedResult, fdNumber, state, verboseInfo, encodin
4253
4138
  }
4254
4139
  };
4255
4140
  const writeToFiles = (serializedResult, stdioItems, outputFiles) => {
4256
- for (const { path: path$5, append } of stdioItems.filter(({ type }) => FILE_TYPES.has(type))) {
4257
- const pathString = typeof path$5 === "string" ? path$5 : path$5.toString();
4258
- if (append || outputFiles.has(pathString)) appendFileSync(path$5, serializedResult);
4141
+ for (const { path, append } of stdioItems.filter(({ type }) => FILE_TYPES.has(type))) {
4142
+ const pathString = typeof path === "string" ? path : path.toString();
4143
+ if (append || outputFiles.has(pathString)) appendFileSync(path, serializedResult);
4259
4144
  else {
4260
4145
  outputFiles.add(pathString);
4261
- writeFileSync(path$5, serializedResult);
4146
+ writeFileSync(path, serializedResult);
4262
4147
  }
4263
4148
  }
4264
4149
  };
4265
-
4266
4150
  //#endregion
4267
4151
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/resolve/all-sync.js
4268
4152
  const getAllSync = ([, stdout, stderr], options) => {
@@ -4274,7 +4158,6 @@ const getAllSync = ([, stdout, stderr], options) => {
4274
4158
  if (isUint8Array(stdout) && isUint8Array(stderr)) return concatUint8Arrays([stdout, stderr]);
4275
4159
  return `${stdout}${stderr}`;
4276
4160
  };
4277
-
4278
4161
  //#endregion
4279
4162
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/resolve/exit-async.js
4280
4163
  const waitForExit = async (subprocess, context) => {
@@ -4301,7 +4184,6 @@ const waitForSuccessfulExit = async (exitPromise) => {
4301
4184
  };
4302
4185
  const isSubprocessErrorExit = (exitCode, signal) => exitCode === void 0 && signal === void 0;
4303
4186
  const isFailedExit = (exitCode, signal) => exitCode !== 0 || signal !== null;
4304
-
4305
4187
  //#endregion
4306
4188
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/resolve/exit-sync.js
4307
4189
  const getExitResultSync = ({ error, status: exitCode, signal, output }, { maxBuffer }) => {
@@ -4318,7 +4200,6 @@ const getResultError = (error, exitCode, signal) => {
4318
4200
  if (error !== void 0) return error;
4319
4201
  return isFailedExit(exitCode, signal) ? new DiscardedError() : void 0;
4320
4202
  };
4321
-
4322
4203
  //#endregion
4323
4204
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/main-sync.js
4324
4205
  const execaCoreSync = (rawFile, rawArguments, rawOptions) => {
@@ -4411,7 +4292,7 @@ const runSubprocessSync = ({ file, commandArguments, options, command, escapedCo
4411
4292
  });
4412
4293
  }
4413
4294
  };
4414
- const normalizeSpawnSyncOptions = ({ encoding, maxBuffer,...options }) => ({
4295
+ const normalizeSpawnSyncOptions = ({ encoding, maxBuffer, ...options }) => ({
4415
4296
  ...options,
4416
4297
  encoding: "buffer",
4417
4298
  maxBuffer: getMaxBufferSync(maxBuffer)
@@ -4442,7 +4323,6 @@ const getSyncResult = ({ error, exitCode, signal, timedOut, isMaxBuffer, stdio,
4442
4323
  startTime,
4443
4324
  isSync: true
4444
4325
  });
4445
-
4446
4326
  //#endregion
4447
4327
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/get-one.js
4448
4328
  const getOneMessage$1 = ({ anyProcess, channel, isSubprocess, ipc }, { reference = true, filter } = {}) => {
@@ -4493,7 +4373,6 @@ const throwOnStrictError = async (ipcEmitter, isSubprocess, { signal }) => {
4493
4373
  const [error] = await once(ipcEmitter, "strict:error", { signal });
4494
4374
  throw getStrictResponseError(error, isSubprocess);
4495
4375
  };
4496
-
4497
4376
  //#endregion
4498
4377
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/get-each.js
4499
4378
  const getEachMessage$1 = ({ anyProcess, channel, isSubprocess, ipc }, { reference = true } = {}) => loopOnMessages({
@@ -4564,7 +4443,6 @@ const iterateOnMessages = async function* ({ anyProcess, channel, ipcEmitter, is
4564
4443
  const throwIfStrictError = ({ error }) => {
4565
4444
  if (error) throw error;
4566
4445
  };
4567
-
4568
4446
  //#endregion
4569
4447
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/methods.js
4570
4448
  const addIpcMethods = (subprocess, { ipc }) => {
@@ -4604,7 +4482,6 @@ const getIpcMethods = (anyProcess, isSubprocess, ipc) => ({
4604
4482
  ipc
4605
4483
  })
4606
4484
  });
4607
-
4608
4485
  //#endregion
4609
4486
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/early-error.js
4610
4487
  const handleEarlyError = ({ error, command, escapedCommand, fileDescriptors, options, startTime, verboseInfo }) => {
@@ -4661,7 +4538,6 @@ const duplex = () => new Duplex({
4661
4538
  write() {}
4662
4539
  });
4663
4540
  const handleDummyPromise = async (error, verboseInfo, options) => handleResult(error, verboseInfo, options);
4664
-
4665
4541
  //#endregion
4666
4542
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/handle-async.js
4667
4543
  const handleStdioAsync = (options, verboseInfo) => handleStdio(addPropertiesAsync, options, verboseInfo, false);
@@ -4702,7 +4578,6 @@ const addPropertiesAsync = {
4702
4578
  uint8Array: forbiddenIfAsync
4703
4579
  }
4704
4580
  };
4705
-
4706
4581
  //#endregion
4707
4582
  //#region ../../node_modules/.pnpm/@sindresorhus+merge-streams@4.0.0/node_modules/@sindresorhus/merge-streams/index.js
4708
4583
  function mergeStreams(streams) {
@@ -4785,7 +4660,7 @@ const onInputStreamsUnpipe = async (passThroughStream, streams, unpipeEvent, { s
4785
4660
  const validateStream = (stream) => {
4786
4661
  if (typeof stream?.pipe !== "function") throw new TypeError(`Expected a readable stream, got: \`${typeof stream}\`.`);
4787
4662
  };
4788
- const endWhenStreamsDone = async ({ passThroughStream, stream, streams, ended, aborted: aborted$1, onFinished, unpipeEvent }) => {
4663
+ const endWhenStreamsDone = async ({ passThroughStream, stream, streams, ended, aborted, onFinished, unpipeEvent }) => {
4789
4664
  updateMaxListeners(passThroughStream, PASSTHROUGH_LISTENERS_PER_STREAM);
4790
4665
  const controller = new AbortController();
4791
4666
  try {
@@ -4796,14 +4671,14 @@ const endWhenStreamsDone = async ({ passThroughStream, stream, streams, ended, a
4796
4671
  stream,
4797
4672
  streams,
4798
4673
  ended,
4799
- aborted: aborted$1,
4674
+ aborted,
4800
4675
  controller
4801
4676
  }),
4802
4677
  onInputStreamUnpipe({
4803
4678
  stream,
4804
4679
  streams,
4805
4680
  ended,
4806
- aborted: aborted$1,
4681
+ aborted,
4807
4682
  unpipeEvent,
4808
4683
  controller
4809
4684
  })
@@ -4812,7 +4687,7 @@ const endWhenStreamsDone = async ({ passThroughStream, stream, streams, ended, a
4812
4687
  controller.abort();
4813
4688
  updateMaxListeners(passThroughStream, -PASSTHROUGH_LISTENERS_PER_STREAM);
4814
4689
  }
4815
- if (streams.size > 0 && streams.size === ended.size + aborted$1.size) if (ended.size === 0 && aborted$1.size > 0) abortStream(passThroughStream);
4690
+ if (streams.size > 0 && streams.size === ended.size + aborted.size) if (ended.size === 0 && aborted.size > 0) abortStream(passThroughStream);
4816
4691
  else endStream(passThroughStream);
4817
4692
  };
4818
4693
  const afterMergedStreamFinished = async (onFinished, stream, { signal }) => {
@@ -4823,7 +4698,7 @@ const afterMergedStreamFinished = async (onFinished, stream, { signal }) => {
4823
4698
  if (!signal.aborted) errorOrAbortStream(stream, error);
4824
4699
  }
4825
4700
  };
4826
- const onInputStreamEnd = async ({ passThroughStream, stream, streams, ended, aborted: aborted$1, controller: { signal } }) => {
4701
+ const onInputStreamEnd = async ({ passThroughStream, stream, streams, ended, aborted, controller: { signal } }) => {
4827
4702
  try {
4828
4703
  await finished(stream, {
4829
4704
  signal,
@@ -4834,16 +4709,16 @@ const onInputStreamEnd = async ({ passThroughStream, stream, streams, ended, abo
4834
4709
  if (streams.has(stream)) ended.add(stream);
4835
4710
  } catch (error) {
4836
4711
  if (signal.aborted || !streams.has(stream)) return;
4837
- if (isAbortError(error)) aborted$1.add(stream);
4712
+ if (isAbortError(error)) aborted.add(stream);
4838
4713
  else errorStream(passThroughStream, error);
4839
4714
  }
4840
4715
  };
4841
- const onInputStreamUnpipe = async ({ stream, streams, ended, aborted: aborted$1, unpipeEvent, controller: { signal } }) => {
4716
+ const onInputStreamUnpipe = async ({ stream, streams, ended, aborted, unpipeEvent, controller: { signal } }) => {
4842
4717
  await once(stream, unpipeEvent, { signal });
4843
4718
  if (!stream.readable) return once(signal, "abort", { signal });
4844
4719
  streams.delete(stream);
4845
4720
  ended.delete(stream);
4846
- aborted$1.delete(stream);
4721
+ aborted.delete(stream);
4847
4722
  };
4848
4723
  const endStream = (stream) => {
4849
4724
  if (stream.writable) stream.end();
@@ -4863,13 +4738,12 @@ const errorStream = (stream, error) => {
4863
4738
  }
4864
4739
  };
4865
4740
  const noop = () => {};
4866
- const updateMaxListeners = (passThroughStream, increment$1) => {
4741
+ const updateMaxListeners = (passThroughStream, increment) => {
4867
4742
  const maxListeners = passThroughStream.getMaxListeners();
4868
- if (maxListeners !== 0 && maxListeners !== Number.POSITIVE_INFINITY) passThroughStream.setMaxListeners(maxListeners + increment$1);
4743
+ if (maxListeners !== 0 && maxListeners !== Number.POSITIVE_INFINITY) passThroughStream.setMaxListeners(maxListeners + increment);
4869
4744
  };
4870
4745
  const PASSTHROUGH_LISTENERS_COUNT = 2;
4871
4746
  const PASSTHROUGH_LISTENERS_PER_STREAM = 1;
4872
-
4873
4747
  //#endregion
4874
4748
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/pipeline.js
4875
4749
  const pipeStreams = (source, destination) => {
@@ -4905,7 +4779,6 @@ const onDestinationFinish = async (source, destination) => {
4905
4779
  const abortSourceStream = (source) => {
4906
4780
  if (source.readable) source.destroy();
4907
4781
  };
4908
-
4909
4782
  //#endregion
4910
4783
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/output-async.js
4911
4784
  const pipeOutputAsync = (subprocess, fileDescriptors, controller) => {
@@ -4946,7 +4819,6 @@ const setStandardStreamMaxListeners = (stream, { signal }) => {
4946
4819
  if (isStandardStream(stream)) incrementMaxListeners(stream, MAX_LISTENERS_INCREMENT, signal);
4947
4820
  };
4948
4821
  const MAX_LISTENERS_INCREMENT = 2;
4949
-
4950
4822
  //#endregion
4951
4823
  //#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
4952
4824
  /**
@@ -4979,10 +4851,9 @@ const signals = [];
4979
4851
  signals.push("SIGHUP", "SIGINT", "SIGTERM");
4980
4852
  if (process.platform !== "win32") signals.push("SIGALRM", "SIGABRT", "SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
4981
4853
  if (process.platform === "linux") signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
4982
-
4983
4854
  //#endregion
4984
4855
  //#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/index.js
4985
- const processOk = (process$3) => !!process$3 && typeof process$3 === "object" && typeof process$3.removeListener === "function" && typeof process$3.emit === "function" && typeof process$3.reallyExit === "function" && typeof process$3.listeners === "function" && typeof process$3.kill === "function" && typeof process$3.pid === "number" && typeof process$3.on === "function";
4856
+ 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";
4986
4857
  const kExitEmitter = Symbol.for("signal-exit emitter");
4987
4858
  const global$1 = globalThis;
4988
4859
  const ObjectDefineProperty = Object.defineProperty.bind(Object);
@@ -5011,12 +4882,12 @@ var Emitter = class {
5011
4882
  }
5012
4883
  removeListener(ev, fn) {
5013
4884
  const list = this.listeners[ev];
5014
- const i$1 = list.indexOf(fn);
4885
+ const i = list.indexOf(fn);
5015
4886
  /* c8 ignore start */
5016
- if (i$1 === -1) return;
4887
+ if (i === -1) return;
5017
4888
  /* c8 ignore stop */
5018
- if (i$1 === 0 && list.length === 1) list.length = 0;
5019
- else list.splice(i$1, 1);
4889
+ if (i === 0 && list.length === 1) list.length = 0;
4890
+ else list.splice(i, 1);
5020
4891
  }
5021
4892
  emit(ev, code, signal) {
5022
4893
  if (this.emitted[ev]) return false;
@@ -5058,27 +4929,27 @@ var SignalExit = class extends SignalExitBase {
5058
4929
  #originalProcessReallyExit;
5059
4930
  #sigListeners = {};
5060
4931
  #loaded = false;
5061
- constructor(process$3) {
4932
+ constructor(process) {
5062
4933
  super();
5063
- this.#process = process$3;
4934
+ this.#process = process;
5064
4935
  this.#sigListeners = {};
5065
4936
  for (const sig of signals) this.#sigListeners[sig] = () => {
5066
4937
  const listeners = this.#process.listeners(sig);
5067
- let { count: count$1 } = this.#emitter;
4938
+ let { count } = this.#emitter;
5068
4939
  /* c8 ignore start */
5069
- const p$1 = process$3;
5070
- if (typeof p$1.__signal_exit_emitter__ === "object" && typeof p$1.__signal_exit_emitter__.count === "number") count$1 += p$1.__signal_exit_emitter__.count;
4940
+ const p = process;
4941
+ if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") count += p.__signal_exit_emitter__.count;
5071
4942
  /* c8 ignore stop */
5072
- if (listeners.length === count$1) {
4943
+ if (listeners.length === count) {
5073
4944
  this.unload();
5074
4945
  const ret = this.#emitter.emit("exit", null, sig);
5075
4946
  /* c8 ignore start */
5076
4947
  const s = sig === "SIGHUP" ? this.#hupSig : sig;
5077
- if (!ret) process$3.kill(process$3.pid, s);
4948
+ if (!ret) process.kill(process.pid, s);
5078
4949
  }
5079
4950
  };
5080
- this.#originalProcessReallyExit = process$3.reallyExit;
5081
- this.#originalProcessEmit = process$3.emit;
4951
+ this.#originalProcessReallyExit = process.reallyExit;
4952
+ this.#originalProcessEmit = process.emit;
5082
4953
  }
5083
4954
  onExit(cb, opts) {
5084
4955
  /* c8 ignore start */
@@ -5100,8 +4971,8 @@ var SignalExit = class extends SignalExitBase {
5100
4971
  const fn = this.#sigListeners[sig];
5101
4972
  if (fn) this.#process.on(sig, fn);
5102
4973
  } catch (_) {}
5103
- this.#process.emit = (ev, ...a$1) => {
5104
- return this.#processEmit(ev, ...a$1);
4974
+ this.#process.emit = (ev, ...a) => {
4975
+ return this.#processEmit(ev, ...a);
5105
4976
  };
5106
4977
  this.#process.reallyExit = (code) => {
5107
4978
  return this.#processReallyExit(code);
@@ -5147,7 +5018,6 @@ var SignalExit = class extends SignalExitBase {
5147
5018
  };
5148
5019
  const process$2 = globalThis.process;
5149
5020
  const { onExit, load, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
5150
-
5151
5021
  //#endregion
5152
5022
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/terminate/cleanup.js
5153
5023
  const cleanupOnExit = (subprocess, { cleanup, detached }, { signal }) => {
@@ -5159,7 +5029,6 @@ const cleanupOnExit = (subprocess, { cleanup, detached }, { signal }) => {
5159
5029
  removeExitHandler();
5160
5030
  });
5161
5031
  };
5162
-
5163
5032
  //#endregion
5164
5033
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/pipe/pipe-arguments.js
5165
5034
  const normalizePipeArguments = ({ source, sourcePromise, boundOptions, createNested }, ...pipeArguments) => {
@@ -5227,7 +5096,6 @@ const getSourceStream = (source, from) => {
5227
5096
  return { sourceError: error };
5228
5097
  }
5229
5098
  };
5230
-
5231
5099
  //#endregion
5232
5100
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/pipe/throw.js
5233
5101
  const handlePipeArgumentsError = ({ sourceStream, sourceError, destinationStream, destinationError, fileDescriptors, sourceOptions, startTime }) => {
@@ -5265,7 +5133,6 @@ const createNonCommandError = ({ error, fileDescriptors, sourceOptions, startTim
5265
5133
  isSync: false
5266
5134
  });
5267
5135
  const PIPE_COMMAND_MESSAGE = "source.pipe(destination)";
5268
-
5269
5136
  //#endregion
5270
5137
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/pipe/sequence.js
5271
5138
  const waitForBothSubprocesses = async (subprocessPromises) => {
@@ -5275,7 +5142,6 @@ const waitForBothSubprocesses = async (subprocessPromises) => {
5275
5142
  if (sourceStatus === "rejected") throw sourceResult;
5276
5143
  return destinationResult;
5277
5144
  };
5278
-
5279
5145
  //#endregion
5280
5146
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/pipe/streaming.js
5281
5147
  const pipeSubprocessStream = (sourceStream, destinationStream, maxListenersController) => {
@@ -5309,7 +5175,6 @@ const cleanupMergedStreamsMap = async (destinationStream) => {
5309
5175
  const MERGED_STREAMS = /* @__PURE__ */ new WeakMap();
5310
5176
  const SOURCE_LISTENERS_PER_PIPE = 2;
5311
5177
  const DESTINATION_LISTENERS_PER_PIPE = 1;
5312
-
5313
5178
  //#endregion
5314
5179
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/pipe/abort.js
5315
5180
  const unpipeOnAbort = (unpipeSignal, unpipeContext) => unpipeSignal === void 0 ? [] : [unpipeOnSignalAbort(unpipeSignal, unpipeContext)];
@@ -5323,7 +5188,6 @@ const unpipeOnSignalAbort = async (unpipeSignal, { sourceStream, mergedStream, f
5323
5188
  startTime
5324
5189
  });
5325
5190
  };
5326
-
5327
5191
  //#endregion
5328
5192
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/pipe/setup.js
5329
5193
  const pipeToSubprocess = (sourceInfo, ...pipeArguments) => {
@@ -5334,7 +5198,7 @@ const pipeToSubprocess = (sourceInfo, ...pipeArguments) => {
5334
5198
  ...pipeArguments[0]
5335
5199
  }
5336
5200
  });
5337
- const { destination,...normalizedInfo } = normalizePipeArguments(sourceInfo, ...pipeArguments);
5201
+ const { destination, ...normalizedInfo } = normalizePipeArguments(sourceInfo, ...pipeArguments);
5338
5202
  const promise = handlePipePromise({
5339
5203
  ...normalizedInfo,
5340
5204
  destination
@@ -5373,7 +5237,6 @@ const handlePipePromise = async ({ sourcePromise, sourceStream, sourceOptions, s
5373
5237
  }
5374
5238
  };
5375
5239
  const getSubprocessPromises = (sourcePromise, destination) => Promise.allSettled([sourcePromise, destination]);
5376
-
5377
5240
  //#endregion
5378
5241
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/iterate.js
5379
5242
  const iterateOnSubprocessStream = ({ subprocessStdout, subprocess, binary, shouldEncode, encoding, preserveNewlines }) => {
@@ -5396,7 +5259,7 @@ const stopReadingOnExit = async (subprocess, controller) => {
5396
5259
  controller.abort();
5397
5260
  }
5398
5261
  };
5399
- const iterateForResult = ({ stream, onStreamEnd, lines, encoding, stripFinalNewline: stripFinalNewline$1, allMixed }) => {
5262
+ const iterateForResult = ({ stream, onStreamEnd, lines, encoding, stripFinalNewline, allMixed }) => {
5400
5263
  const controller = new AbortController();
5401
5264
  stopReadingOnStreamEnd(onStreamEnd, controller, stream);
5402
5265
  const objectMode = stream.readableObjectMode && !allMixed;
@@ -5407,7 +5270,7 @@ const iterateForResult = ({ stream, onStreamEnd, lines, encoding, stripFinalNewl
5407
5270
  shouldEncode: !objectMode,
5408
5271
  encoding,
5409
5272
  shouldSplit: !objectMode && lines,
5410
- preserveNewlines: !stripFinalNewline$1
5273
+ preserveNewlines: !stripFinalNewline
5411
5274
  });
5412
5275
  };
5413
5276
  const stopReadingOnStreamEnd = async (onStreamEnd, controller, stream) => {
@@ -5453,10 +5316,9 @@ const iterateOnData = async function* ({ onStdoutChunk, controller, binary, shou
5453
5316
  }
5454
5317
  };
5455
5318
  const getGenerators = ({ binary, shouldEncode, encoding, shouldSplit, preserveNewlines }) => [getEncodingTransformGenerator(binary, encoding, !shouldEncode), getSplitLinesGenerator(binary, preserveNewlines, !shouldSplit, {})].filter(Boolean);
5456
-
5457
5319
  //#endregion
5458
5320
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/contents.js
5459
- const getStreamOutput = async ({ stream, onStreamEnd, fdNumber, encoding, buffer, maxBuffer, lines, allMixed, stripFinalNewline: stripFinalNewline$1, verboseInfo, streamInfo }) => {
5321
+ const getStreamOutput = async ({ stream, onStreamEnd, fdNumber, encoding, buffer, maxBuffer, lines, allMixed, stripFinalNewline, verboseInfo, streamInfo }) => {
5460
5322
  const logPromise = logOutputAsync({
5461
5323
  stream,
5462
5324
  onStreamEnd,
@@ -5475,7 +5337,7 @@ const getStreamOutput = async ({ stream, onStreamEnd, fdNumber, encoding, buffer
5475
5337
  onStreamEnd,
5476
5338
  lines,
5477
5339
  encoding,
5478
- stripFinalNewline: getStripFinalNewline(stripFinalNewline$1, fdNumber),
5340
+ stripFinalNewline: getStripFinalNewline(stripFinalNewline, fdNumber),
5479
5341
  allMixed
5480
5342
  });
5481
5343
  const [output] = await Promise.all([getStreamContents({
@@ -5532,7 +5394,6 @@ const getBufferedData = async (streamPromise) => {
5532
5394
  }
5533
5395
  };
5534
5396
  const handleBufferedData = ({ bufferedData }) => isArrayBuffer(bufferedData) ? new Uint8Array(bufferedData) : bufferedData;
5535
-
5536
5397
  //#endregion
5537
5398
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/resolve/wait-stream.js
5538
5399
  const waitForStream = async (stream, fdNumber, streamInfo, { isSameDirection, stopOnExit = false } = {}) => {
@@ -5575,10 +5436,9 @@ const shouldIgnoreStreamError = (error, fdNumber, streamInfo, isSameDirection =
5575
5436
  const isInputFileDescriptor = ({ fileDescriptors }, fdNumber) => fdNumber !== "all" && fileDescriptors[fdNumber].direction === "input";
5576
5437
  const isStreamAbort = (error) => error?.code === "ERR_STREAM_PREMATURE_CLOSE";
5577
5438
  const isStreamEpipe = (error) => error?.code === "EPIPE";
5578
-
5579
5439
  //#endregion
5580
5440
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/resolve/stdio.js
5581
- const waitForStdioStreams = ({ subprocess, encoding, buffer, maxBuffer, lines, stripFinalNewline: stripFinalNewline$1, verboseInfo, streamInfo }) => subprocess.stdio.map((stream, fdNumber) => waitForSubprocessStream({
5441
+ const waitForStdioStreams = ({ subprocess, encoding, buffer, maxBuffer, lines, stripFinalNewline, verboseInfo, streamInfo }) => subprocess.stdio.map((stream, fdNumber) => waitForSubprocessStream({
5582
5442
  stream,
5583
5443
  fdNumber,
5584
5444
  encoding,
@@ -5586,11 +5446,11 @@ const waitForStdioStreams = ({ subprocess, encoding, buffer, maxBuffer, lines, s
5586
5446
  maxBuffer: maxBuffer[fdNumber],
5587
5447
  lines: lines[fdNumber],
5588
5448
  allMixed: false,
5589
- stripFinalNewline: stripFinalNewline$1,
5449
+ stripFinalNewline,
5590
5450
  verboseInfo,
5591
5451
  streamInfo
5592
5452
  }));
5593
- const waitForSubprocessStream = async ({ stream, fdNumber, encoding, buffer, maxBuffer, lines, allMixed, stripFinalNewline: stripFinalNewline$1, verboseInfo, streamInfo }) => {
5453
+ const waitForSubprocessStream = async ({ stream, fdNumber, encoding, buffer, maxBuffer, lines, allMixed, stripFinalNewline, verboseInfo, streamInfo }) => {
5594
5454
  if (!stream) return;
5595
5455
  const onStreamEnd = waitForStream(stream, fdNumber, streamInfo);
5596
5456
  if (isInputFileDescriptor(streamInfo, fdNumber)) {
@@ -5606,24 +5466,23 @@ const waitForSubprocessStream = async ({ stream, fdNumber, encoding, buffer, max
5606
5466
  maxBuffer,
5607
5467
  lines,
5608
5468
  allMixed,
5609
- stripFinalNewline: stripFinalNewline$1,
5469
+ stripFinalNewline,
5610
5470
  verboseInfo,
5611
5471
  streamInfo
5612
5472
  }), onStreamEnd]);
5613
5473
  return output;
5614
5474
  };
5615
-
5616
5475
  //#endregion
5617
5476
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/resolve/all-async.js
5618
5477
  const makeAllStream = ({ stdout, stderr }, { all }) => all && (stdout || stderr) ? mergeStreams([stdout, stderr].filter(Boolean)) : void 0;
5619
- const waitForAllStream = ({ subprocess, encoding, buffer, maxBuffer, lines, stripFinalNewline: stripFinalNewline$1, verboseInfo, streamInfo }) => waitForSubprocessStream({
5478
+ const waitForAllStream = ({ subprocess, encoding, buffer, maxBuffer, lines, stripFinalNewline, verboseInfo, streamInfo }) => waitForSubprocessStream({
5620
5479
  ...getAllStream(subprocess, buffer),
5621
5480
  fdNumber: "all",
5622
5481
  encoding,
5623
5482
  maxBuffer: maxBuffer[1] + maxBuffer[2],
5624
5483
  lines: lines[1] || lines[2],
5625
5484
  allMixed: getAllMixed(subprocess),
5626
- stripFinalNewline: stripFinalNewline$1,
5485
+ stripFinalNewline,
5627
5486
  verboseInfo,
5628
5487
  streamInfo
5629
5488
  });
@@ -5647,7 +5506,6 @@ const getAllStream = ({ stdout, stderr, all }, [, bufferStdout, bufferStderr]) =
5647
5506
  };
5648
5507
  };
5649
5508
  const getAllMixed = ({ all, stdout, stderr }) => all && stdout && stderr && stdout.readableObjectMode !== stderr.readableObjectMode;
5650
-
5651
5509
  //#endregion
5652
5510
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/ipc.js
5653
5511
  const shouldLogIpc = (verboseInfo) => isFullVerbose(verboseInfo, "ipc");
@@ -5659,12 +5517,11 @@ const logIpcOutput = (message, verboseInfo) => {
5659
5517
  verboseInfo
5660
5518
  });
5661
5519
  };
5662
-
5663
5520
  //#endregion
5664
5521
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/buffer-messages.js
5665
5522
  const waitForIpcOutput = async ({ subprocess, buffer: bufferArray, maxBuffer: maxBufferArray, ipc, ipcOutput, verboseInfo }) => {
5666
5523
  if (!ipc) return ipcOutput;
5667
- const isVerbose$1 = shouldLogIpc(verboseInfo);
5524
+ const isVerbose = shouldLogIpc(verboseInfo);
5668
5525
  const buffer = getFdSpecificValue(bufferArray, "ipc");
5669
5526
  const maxBuffer = getFdSpecificValue(maxBufferArray, "ipc");
5670
5527
  for await (const message of loopOnMessages({
@@ -5679,7 +5536,7 @@ const waitForIpcOutput = async ({ subprocess, buffer: bufferArray, maxBuffer: ma
5679
5536
  checkIpcMaxBuffer(subprocess, ipcOutput, maxBuffer);
5680
5537
  ipcOutput.push(message);
5681
5538
  }
5682
- if (isVerbose$1) logIpcOutput(message, verboseInfo);
5539
+ if (isVerbose) logIpcOutput(message, verboseInfo);
5683
5540
  }
5684
5541
  return ipcOutput;
5685
5542
  };
@@ -5687,10 +5544,9 @@ const getBufferedIpcOutput = async (ipcOutputPromise, ipcOutput) => {
5687
5544
  await Promise.allSettled([ipcOutputPromise]);
5688
5545
  return ipcOutput;
5689
5546
  };
5690
-
5691
5547
  //#endregion
5692
5548
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/resolve/wait-subprocess.js
5693
- 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 }) => {
5549
+ const waitForSubprocessResult = async ({ subprocess, options: { encoding, buffer, maxBuffer, lines, timeoutDuration: timeout, cancelSignal, gracefulCancel, forceKillAfterDelay, stripFinalNewline, ipc, ipcInput }, context, verboseInfo, fileDescriptors, originalStreams, onInternalError, controller }) => {
5694
5550
  const exitPromise = waitForExit(subprocess, context);
5695
5551
  const streamInfo = {
5696
5552
  originalStreams,
@@ -5705,7 +5561,7 @@ const waitForSubprocessResult = async ({ subprocess, options: { encoding, buffer
5705
5561
  buffer,
5706
5562
  maxBuffer,
5707
5563
  lines,
5708
- stripFinalNewline: stripFinalNewline$1,
5564
+ stripFinalNewline,
5709
5565
  verboseInfo,
5710
5566
  streamInfo
5711
5567
  });
@@ -5715,7 +5571,7 @@ const waitForSubprocessResult = async ({ subprocess, options: { encoding, buffer
5715
5571
  buffer,
5716
5572
  maxBuffer,
5717
5573
  lines,
5718
- stripFinalNewline: stripFinalNewline$1,
5574
+ stripFinalNewline,
5719
5575
  verboseInfo,
5720
5576
  streamInfo
5721
5577
  });
@@ -5783,7 +5639,6 @@ const throwOnSubprocessError = async (subprocess, { signal }) => {
5783
5639
  const [error] = await once(subprocess, "error", { signal });
5784
5640
  throw error;
5785
5641
  };
5786
-
5787
5642
  //#endregion
5788
5643
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/concurrent.js
5789
5644
  const initializeConcurrentStreams = () => ({
@@ -5807,7 +5662,6 @@ const waitForConcurrentStreams = async ({ resolve, promises }, subprocess) => {
5807
5662
  const [isSubprocessExit] = await Promise.race([Promise.allSettled([true, subprocess]), Promise.all([false, ...promises])]);
5808
5663
  return !isSubprocessExit;
5809
5664
  };
5810
-
5811
5665
  //#endregion
5812
5666
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/shared.js
5813
5667
  const safeWaitForSubprocessStdin = async (subprocessStdin) => {
@@ -5844,7 +5698,6 @@ const destroyOtherStream = (stream, isOpen, error) => {
5844
5698
  if (error && !isStreamAbort(error)) stream.destroy(error);
5845
5699
  else if (isOpen) stream.destroy();
5846
5700
  };
5847
-
5848
5701
  //#endregion
5849
5702
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/readable.js
5850
5703
  const createReadable = ({ subprocess, concurrentStreams, encoding }, { from, binary: binaryOption = true, preserveNewlines = true } = {}) => {
@@ -5858,7 +5711,7 @@ const createReadable = ({ subprocess, concurrentStreams, encoding }, { from, bin
5858
5711
  encoding,
5859
5712
  preserveNewlines
5860
5713
  });
5861
- const readable$1 = new Readable({
5714
+ const readable = new Readable({
5862
5715
  read,
5863
5716
  destroy: callbackify(onReadableDestroy.bind(void 0, {
5864
5717
  subprocessStdout,
@@ -5872,10 +5725,10 @@ const createReadable = ({ subprocess, concurrentStreams, encoding }, { from, bin
5872
5725
  onStdoutFinished({
5873
5726
  subprocessStdout,
5874
5727
  onStdoutDataDone,
5875
- readable: readable$1,
5728
+ readable,
5876
5729
  subprocess
5877
5730
  });
5878
- return readable$1;
5731
+ return readable;
5879
5732
  };
5880
5733
  const getSubprocessStdout = (subprocess, from, concurrentStreams) => {
5881
5734
  const subprocessStdout = getFromStream(subprocess, from);
@@ -5910,23 +5763,23 @@ const getReadableMethods = ({ subprocessStdout, subprocess, binary, encoding, pr
5910
5763
  onStdoutDataDone
5911
5764
  };
5912
5765
  };
5913
- const onRead = async (readable$1, onStdoutData, onStdoutDataDone) => {
5766
+ const onRead = async (readable, onStdoutData, onStdoutDataDone) => {
5914
5767
  try {
5915
5768
  const { value, done } = await onStdoutData.next();
5916
5769
  if (done) onStdoutDataDone.resolve();
5917
- else readable$1.push(value);
5770
+ else readable.push(value);
5918
5771
  } catch {}
5919
5772
  };
5920
- const onStdoutFinished = async ({ subprocessStdout, onStdoutDataDone, readable: readable$1, subprocess, subprocessStdin }) => {
5773
+ const onStdoutFinished = async ({ subprocessStdout, onStdoutDataDone, readable, subprocess, subprocessStdin }) => {
5921
5774
  try {
5922
5775
  await waitForSubprocessStdout(subprocessStdout);
5923
5776
  await subprocess;
5924
5777
  await safeWaitForSubprocessStdin(subprocessStdin);
5925
5778
  await onStdoutDataDone;
5926
- if (readable$1.readable) readable$1.push(null);
5779
+ if (readable.readable) readable.push(null);
5927
5780
  } catch (error) {
5928
5781
  await safeWaitForSubprocessStdin(subprocessStdin);
5929
- destroyOtherReadable(readable$1, error);
5782
+ destroyOtherReadable(readable, error);
5930
5783
  }
5931
5784
  };
5932
5785
  const onReadableDestroy = async ({ subprocessStdout, subprocess, waitReadableDestroy }, error) => {
@@ -5938,12 +5791,11 @@ const onReadableDestroy = async ({ subprocessStdout, subprocess, waitReadableDes
5938
5791
  const destroyOtherReadable = (stream, error) => {
5939
5792
  destroyOtherStream(stream, stream.readable, error);
5940
5793
  };
5941
-
5942
5794
  //#endregion
5943
5795
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/writable.js
5944
5796
  const createWritable = ({ subprocess, concurrentStreams }, { to } = {}) => {
5945
5797
  const { subprocessStdin, waitWritableFinal, waitWritableDestroy } = getSubprocessStdin(subprocess, to, concurrentStreams);
5946
- const writable$1 = new Writable({
5798
+ const writable = new Writable({
5947
5799
  ...getWritableMethods(subprocessStdin, subprocess, waitWritableFinal),
5948
5800
  destroy: callbackify(onWritableDestroy.bind(void 0, {
5949
5801
  subprocessStdin,
@@ -5954,8 +5806,8 @@ const createWritable = ({ subprocess, concurrentStreams }, { to } = {}) => {
5954
5806
  highWaterMark: subprocessStdin.writableHighWaterMark,
5955
5807
  objectMode: subprocessStdin.writableObjectMode
5956
5808
  });
5957
- onStdinFinished(subprocessStdin, writable$1);
5958
- return writable$1;
5809
+ onStdinFinished(subprocessStdin, writable);
5810
+ return writable;
5959
5811
  };
5960
5812
  const getSubprocessStdin = (subprocess, to, concurrentStreams) => {
5961
5813
  const subprocessStdin = getToStream(subprocess, to);
@@ -5979,13 +5831,13 @@ const onWritableFinal = async (subprocessStdin, subprocess, waitWritableFinal) =
5979
5831
  await subprocess;
5980
5832
  }
5981
5833
  };
5982
- const onStdinFinished = async (subprocessStdin, writable$1, subprocessStdout) => {
5834
+ const onStdinFinished = async (subprocessStdin, writable, subprocessStdout) => {
5983
5835
  try {
5984
5836
  await waitForSubprocessStdin(subprocessStdin);
5985
- if (writable$1.writable) writable$1.end();
5837
+ if (writable.writable) writable.end();
5986
5838
  } catch (error) {
5987
5839
  await safeWaitForSubprocessStdout(subprocessStdout);
5988
- destroyOtherWritable(writable$1, error);
5840
+ destroyOtherWritable(writable, error);
5989
5841
  }
5990
5842
  };
5991
5843
  const onWritableDestroy = async ({ subprocessStdin, subprocess, waitWritableFinal, waitWritableDestroy }, error) => {
@@ -5998,7 +5850,6 @@ const onWritableDestroy = async ({ subprocessStdin, subprocess, waitWritableFina
5998
5850
  const destroyOtherWritable = (stream, error) => {
5999
5851
  destroyOtherStream(stream, stream.writable, error);
6000
5852
  };
6001
-
6002
5853
  //#endregion
6003
5854
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/duplex.js
6004
5855
  const createDuplex = ({ subprocess, concurrentStreams, encoding }, { from, to, binary: binaryOption = true, preserveNewlines = true } = {}) => {
@@ -6013,7 +5864,7 @@ const createDuplex = ({ subprocess, concurrentStreams, encoding }, { from, to, b
6013
5864
  encoding,
6014
5865
  preserveNewlines
6015
5866
  });
6016
- const duplex$1 = new Duplex({
5867
+ const duplex = new Duplex({
6017
5868
  read,
6018
5869
  ...getWritableMethods(subprocessStdin, subprocess, waitWritableFinal),
6019
5870
  destroy: callbackify(onDuplexDestroy.bind(void 0, {
@@ -6033,12 +5884,12 @@ const createDuplex = ({ subprocess, concurrentStreams, encoding }, { from, to, b
6033
5884
  onStdoutFinished({
6034
5885
  subprocessStdout,
6035
5886
  onStdoutDataDone,
6036
- readable: duplex$1,
5887
+ readable: duplex,
6037
5888
  subprocess,
6038
5889
  subprocessStdin
6039
5890
  });
6040
- onStdinFinished(subprocessStdin, duplex$1, subprocessStdout);
6041
- return duplex$1;
5891
+ onStdinFinished(subprocessStdin, duplex, subprocessStdout);
5892
+ return duplex;
6042
5893
  };
6043
5894
  const onDuplexDestroy = async ({ subprocessStdout, subprocessStdin, subprocess, waitReadableDestroy, waitWritableFinal, waitWritableDestroy }, error) => {
6044
5895
  await Promise.all([onReadableDestroy({
@@ -6052,7 +5903,6 @@ const onDuplexDestroy = async ({ subprocessStdout, subprocessStdin, subprocess,
6052
5903
  waitWritableDestroy
6053
5904
  }, error)]);
6054
5905
  };
6055
-
6056
5906
  //#endregion
6057
5907
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/iterable.js
6058
5908
  const createIterable = (subprocess, encoding, { from, binary: binaryOption = false, preserveNewlines = false } = {}) => {
@@ -6075,7 +5925,6 @@ const iterateOnStdoutData = async function* (onStdoutData, subprocessStdout, sub
6075
5925
  await subprocess;
6076
5926
  }
6077
5927
  };
6078
-
6079
5928
  //#endregion
6080
5929
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/add.js
6081
5930
  const addConvertedStreams = (subprocess, { encoding }) => {
@@ -6097,7 +5946,6 @@ const addConvertedStreams = (subprocess, { encoding }) => {
6097
5946
  subprocess.iterable = createIterable.bind(void 0, subprocess, encoding);
6098
5947
  subprocess[Symbol.asyncIterator] = createIterable.bind(void 0, subprocess, encoding, {});
6099
5948
  };
6100
-
6101
5949
  //#endregion
6102
5950
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/promise.js
6103
5951
  const mergePromise = (subprocess, promise) => {
@@ -6115,7 +5963,6 @@ const descriptors = [
6115
5963
  "catch",
6116
5964
  "finally"
6117
5965
  ].map((property) => [property, Reflect.getOwnPropertyDescriptor(nativePromisePrototype, property)]);
6118
-
6119
5966
  //#endregion
6120
5967
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/main-async.js
6121
5968
  const execaCoreAsync = (rawFile, rawArguments, rawOptions, createNested) => {
@@ -6158,7 +6005,7 @@ const handleAsyncArguments = (rawFile, rawArguments, rawOptions) => {
6158
6005
  fileDescriptors: handleStdioAsync(options, verboseInfo)
6159
6006
  };
6160
6007
  };
6161
- const handleAsyncOptions = ({ timeout, signal,...options }) => {
6008
+ const handleAsyncOptions = ({ timeout, signal, ...options }) => {
6162
6009
  if (signal !== void 0) throw new TypeError("The \"signal\" option has been renamed to \"cancelSignal\" instead.");
6163
6010
  return {
6164
6011
  ...options,
@@ -6268,7 +6115,6 @@ const getAsyncResult = ({ errorInfo, exitCode, signal, stdio, all, ipcOutput, co
6268
6115
  options,
6269
6116
  startTime
6270
6117
  });
6271
-
6272
6118
  //#endregion
6273
6119
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/bind.js
6274
6120
  const mergeOptions = (boundOptions, options) => {
@@ -6286,11 +6132,10 @@ const mergeOption = (optionName, boundOptionValue, optionValue) => {
6286
6132
  return optionValue;
6287
6133
  };
6288
6134
  const DEEP_OPTIONS = new Set(["env", ...FD_SPECIFIC_OPTIONS]);
6289
-
6290
6135
  //#endregion
6291
6136
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/create.js
6292
6137
  const createExeca = (mapArguments, boundOptions, deepOptions, setBoundExeca) => {
6293
- const createNested = (mapArguments$1, boundOptions$1, setBoundExeca$1) => createExeca(mapArguments$1, boundOptions$1, deepOptions, setBoundExeca$1);
6138
+ const createNested = (mapArguments, boundOptions, setBoundExeca) => createExeca(mapArguments, boundOptions, deepOptions, setBoundExeca);
6294
6139
  const boundExeca = (...execaArguments) => callBoundExeca({
6295
6140
  mapArguments,
6296
6141
  deepOptions,
@@ -6327,7 +6172,6 @@ const parseArguments = ({ mapArguments, firstArgument, nextArguments, deepOption
6327
6172
  isSync
6328
6173
  };
6329
6174
  };
6330
-
6331
6175
  //#endregion
6332
6176
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/command.js
6333
6177
  const mapCommandAsync = ({ file, commandArguments }) => parseCommand(file, commandArguments);
@@ -6356,7 +6200,6 @@ const parseCommandString = (command) => {
6356
6200
  return tokens;
6357
6201
  };
6358
6202
  const SPACES_REGEXP = / +/g;
6359
-
6360
6203
  //#endregion
6361
6204
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/script.js
6362
6205
  const setScriptSync = (boundExeca, createNested, boundOptions) => {
@@ -6374,17 +6217,15 @@ const getScriptOptions = (options) => ({ options: {
6374
6217
  } });
6375
6218
  const getScriptStdinOption = ({ input, inputFile, stdio }) => input === void 0 && inputFile === void 0 && stdio === void 0 ? { stdin: "inherit" } : {};
6376
6219
  const deepScriptOptions = { preferLocal: true };
6377
-
6378
6220
  //#endregion
6379
6221
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/index.js
6380
6222
  const execa = createExeca(() => ({}));
6381
- const execaSync = createExeca(() => ({ isSync: true }));
6382
- const execaCommand = createExeca(mapCommandAsync);
6383
- const execaCommandSync = createExeca(mapCommandSync);
6384
- const execaNode = createExeca(mapNode);
6385
- const $ = createExeca(mapScriptAsync, {}, deepScriptOptions, setScriptSync);
6223
+ createExeca(() => ({ isSync: true }));
6224
+ createExeca(mapCommandAsync);
6225
+ createExeca(mapCommandSync);
6226
+ createExeca(mapNode);
6227
+ createExeca(mapScriptAsync, {}, deepScriptOptions, setScriptSync);
6386
6228
  const { sendMessage, getOneMessage, getEachMessage, getCancelSignal } = getIpcExport();
6387
-
6388
6229
  //#endregion
6389
6230
  //#region iac/supabaseApi.ts
6390
6231
  const supabaseApi = (supabaseUrl, supabaseAnonKey) => {
@@ -6407,9 +6248,12 @@ const supabaseApi = (supabaseUrl, supabaseAnonKey) => {
6407
6248
  }
6408
6249
  };
6409
6250
  };
6410
-
6411
6251
  //#endregion
6412
6252
  //#region iac/index.ts
6253
+ const require$1 = createRequire(import.meta.url);
6254
+ const EDGE_VENDOR_DIR = "_hot-updater";
6255
+ const WORKSPACE_PACKAGE_PREFIX = "@hot-updater/";
6256
+ const IMPORT_SPECIFIER_PATTERN = /from\s+["']([^"']+)["']|import\s*\(\s*["']([^"']+)["']\s*\)/g;
6413
6257
  const getConfigTemplate = (build) => {
6414
6258
  return new ConfigBuilder().setBuildType(build).setStorage({
6415
6259
  imports: [{
@@ -6450,6 +6294,130 @@ project_id = "%%projectId%%"
6450
6294
  [db.seed]
6451
6295
  enabled = false
6452
6296
  `;
6297
+ const resolvePackageExportPath = async (packageName, exportName) => {
6298
+ const packageJsonPath = require$1.resolve(`${packageName}/package.json`);
6299
+ const exportTarget = JSON.parse(await fs.readFile(packageJsonPath, "utf-8")).exports?.[exportName];
6300
+ const relativePath = typeof exportTarget === "string" ? exportTarget : exportTarget?.import ?? exportTarget?.default ?? exportTarget?.require;
6301
+ if (!relativePath) throw new Error(`Could not resolve ${exportName} export for package ${packageName}`);
6302
+ return path$1.resolve(path$1.dirname(packageJsonPath), relativePath);
6303
+ };
6304
+ const toImportMapPath = (fromDir, toPath) => {
6305
+ const relativePath = path$1.relative(fromDir, toPath).split(path$1.sep).join("/");
6306
+ return relativePath.startsWith(".") ? relativePath : `./${relativePath}`;
6307
+ };
6308
+ const pathExists = async (targetPath) => {
6309
+ try {
6310
+ await fs.access(targetPath);
6311
+ return true;
6312
+ } catch {
6313
+ return false;
6314
+ }
6315
+ };
6316
+ const resolveLocalModulePath = async (fromFile, specifier) => {
6317
+ const basePath = path$1.resolve(path$1.dirname(fromFile), specifier);
6318
+ const candidates = [
6319
+ basePath,
6320
+ `${basePath}.mjs`,
6321
+ `${basePath}.js`,
6322
+ path$1.join(basePath, "index.mjs"),
6323
+ path$1.join(basePath, "index.js")
6324
+ ];
6325
+ for (const candidate of candidates) if (await pathExists(candidate)) return candidate;
6326
+ return null;
6327
+ };
6328
+ const collectBareImportSpecifiers = async (entryPath) => {
6329
+ const filesToVisit = [entryPath];
6330
+ const visitedFiles = /* @__PURE__ */ new Set();
6331
+ const specifiers = /* @__PURE__ */ new Set();
6332
+ while (filesToVisit.length > 0) {
6333
+ const currentFile = filesToVisit.pop();
6334
+ if (!currentFile || visitedFiles.has(currentFile)) continue;
6335
+ visitedFiles.add(currentFile);
6336
+ const source = await fs.readFile(currentFile, "utf8");
6337
+ for (const match of source.matchAll(IMPORT_SPECIFIER_PATTERN)) {
6338
+ const specifier = match[1] ?? match[2];
6339
+ if (!specifier) continue;
6340
+ if (specifier.startsWith("./") || specifier.startsWith("../")) {
6341
+ const resolvedPath = await resolveLocalModulePath(currentFile, specifier);
6342
+ if (resolvedPath) filesToVisit.push(resolvedPath);
6343
+ continue;
6344
+ }
6345
+ if (specifier.startsWith("node:") || specifier.startsWith("npm:") || specifier.startsWith("jsr:") || specifier.startsWith("http://") || specifier.startsWith("https://")) continue;
6346
+ specifiers.add(specifier);
6347
+ }
6348
+ }
6349
+ return specifiers;
6350
+ };
6351
+ const toVendorDirName = (packageName) => packageName.replace(/^@/, "").replaceAll("/", "-");
6352
+ const prepareVendoredPackageImport = async ({ targetDir, packageName, exportName }) => {
6353
+ const packageJsonPath = require$1.resolve(`${packageName}/package.json`);
6354
+ const packageRoot = path$1.dirname(packageJsonPath);
6355
+ const exportPath = await resolvePackageExportPath(packageName, exportName);
6356
+ const [sourceRootDir, ...restPath] = path$1.relative(packageRoot, exportPath).split(path$1.sep);
6357
+ if (!sourceRootDir || restPath.length === 0) throw new Error(`Could not determine vendored import layout for ${packageName}${exportName}`);
6358
+ const vendorDirName = toVendorDirName(packageName);
6359
+ const sourceRootPath = path$1.join(packageRoot, sourceRootDir);
6360
+ const vendoredRootPath = path$1.join(targetDir, EDGE_VENDOR_DIR, vendorDirName, sourceRootDir);
6361
+ await fs.rm(path$1.join(targetDir, EDGE_VENDOR_DIR, vendorDirName), {
6362
+ recursive: true,
6363
+ force: true
6364
+ });
6365
+ await fs.mkdir(path$1.dirname(vendoredRootPath), { recursive: true });
6366
+ await fs.cp(sourceRootPath, vendoredRootPath, {
6367
+ recursive: true,
6368
+ force: true
6369
+ });
6370
+ return {
6371
+ importMapPath: toImportMapPath(targetDir, path$1.join(vendoredRootPath, ...restPath)),
6372
+ packageRoot,
6373
+ sourceEntryPath: exportPath
6374
+ };
6375
+ };
6376
+ const resolveBareSpecifierImportTarget = async (specifier, searchFrom) => {
6377
+ return `npm:${specifier}@${resolvePackageVersion(specifier, { searchFrom })}`;
6378
+ };
6379
+ const buildEdgeFunctionImports = async (targetDir) => {
6380
+ const imports = {};
6381
+ const visitedWorkspacePackages = /* @__PURE__ */ new Set();
6382
+ const addWorkspacePackage = async ({ importSpecifier, packageName, exportName }) => {
6383
+ const visitKey = `${packageName}:${exportName}`;
6384
+ if (visitedWorkspacePackages.has(visitKey)) return;
6385
+ visitedWorkspacePackages.add(visitKey);
6386
+ const vendoredPackage = await prepareVendoredPackageImport({
6387
+ targetDir,
6388
+ packageName,
6389
+ exportName
6390
+ });
6391
+ imports[importSpecifier] = vendoredPackage.importMapPath;
6392
+ const nestedSpecifiers = await collectBareImportSpecifiers(vendoredPackage.sourceEntryPath);
6393
+ for (const nestedSpecifier of nestedSpecifiers) {
6394
+ if (imports[nestedSpecifier]) continue;
6395
+ if (nestedSpecifier.startsWith(WORKSPACE_PACKAGE_PREFIX)) {
6396
+ await addWorkspacePackage({
6397
+ importSpecifier: nestedSpecifier,
6398
+ packageName: nestedSpecifier,
6399
+ exportName: "."
6400
+ });
6401
+ continue;
6402
+ }
6403
+ imports[nestedSpecifier] = await resolveBareSpecifierImportTarget(nestedSpecifier, vendoredPackage.packageRoot);
6404
+ }
6405
+ };
6406
+ await addWorkspacePackage({
6407
+ importSpecifier: "@hot-updater/server/runtime",
6408
+ packageName: "@hot-updater/server",
6409
+ exportName: "./runtime"
6410
+ });
6411
+ await addWorkspacePackage({
6412
+ importSpecifier: "@hot-updater/supabase",
6413
+ packageName: "@hot-updater/supabase",
6414
+ exportName: "./edge"
6415
+ });
6416
+ return imports;
6417
+ };
6418
+ const resolveEdgeFunctionDenoConfig = async (targetDir) => {
6419
+ return { imports: await buildEdgeFunctionImports(targetDir) };
6420
+ };
6453
6421
  const selectProject = async () => {
6454
6422
  const spinner = p.spinner();
6455
6423
  spinner.start("Fetching Supabase projects...");
@@ -6618,8 +6586,10 @@ const deployEdgeFunction = async (workdir, projectId) => {
6618
6586
  const edgeFunctionsCode = transformEnv(path$1.join(edgeFunctionsLibPath, "index.ts"), { FUNCTION_NAME: functionName });
6619
6587
  const targetDir = path$1.join(workdir, "supabase", "functions", functionName);
6620
6588
  await fs.mkdir(targetDir, { recursive: true });
6589
+ const denoConfig = await resolveEdgeFunctionDenoConfig(targetDir);
6621
6590
  const targetPath = path$1.join(targetDir, "index.ts");
6622
6591
  await fs.writeFile(targetPath, edgeFunctionsCode);
6592
+ await fs.writeFile(path$1.join(targetDir, "deno.json"), `${JSON.stringify(denoConfig, null, 2)}\n`);
6623
6593
  await p.tasks([{
6624
6594
  title: "Supabase edge function deploy. This may take a few minutes.",
6625
6595
  task: async () => {
@@ -6669,7 +6639,7 @@ const runInit = async ({ build }) => {
6669
6639
  const serviceRoleKey = apiKeys.find((key) => key.name === "service_role");
6670
6640
  if (!serviceRoleKey) throw new Error("Service role key not found, is your project paused?");
6671
6641
  const bucket = await selectBucket(supabaseApi(`https://${project.id}.supabase.co`, serviceRoleKey.api_key));
6672
- const { tmpDir, removeTmpDir } = await copyDirToTmp(path$1.dirname(path$1.resolve(__require.resolve("@hot-updater/supabase/scaffold"))), "supabase");
6642
+ const { tmpDir, removeTmpDir } = await copyDirToTmp(path$1.dirname(path$1.resolve(require$1.resolve("@hot-updater/supabase/scaffold"))), "supabase");
6673
6643
  const migrationPath = await path$1.join(tmpDir, "supabase", "migrations");
6674
6644
  const migrationFiles = await fs.readdir(migrationPath);
6675
6645
  for (const file of migrationFiles) if (file.endsWith(".sql")) {
@@ -6698,6 +6668,5 @@ const runInit = async ({ build }) => {
6698
6668
  p.log.message(`Next step: ${link("https://hot-updater.dev/docs/managed/supabase#step-4-add-hotupdater-to-your-project")}`);
6699
6669
  p.log.success("Done! 🎉");
6700
6670
  };
6701
-
6702
6671
  //#endregion
6703
- export { runInit, selectBucket, selectProject };
6672
+ export { resolveEdgeFunctionDenoConfig, runInit, selectBucket, selectProject };