@storm-software/git-tools 2.89.18 → 2.89.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/README.md +1 -1
  2. package/bin/{chunk-YMPZZ63R.js → chunk-2I5IZB7I.js} +1 -1
  3. package/bin/{chunk-WOZSAFMN.cjs → chunk-4EXZWKXK.cjs} +138 -138
  4. package/bin/{chunk-SDAFIVIF.cjs → chunk-4GTGG7FG.cjs} +11 -11
  5. package/bin/{chunk-UAKVQGZU.cjs → chunk-7FWXX5NN.cjs} +3 -3
  6. package/bin/{chunk-JHLNALI2.js → chunk-7JKZEVN7.js} +7 -7
  7. package/bin/{chunk-MUULUJFG.js → chunk-CZZS5O6X.js} +1 -1
  8. package/bin/{chunk-NHO7HSOE.cjs → chunk-D7E6FHYG.cjs} +32 -32
  9. package/bin/{chunk-43ATVBTN.cjs → chunk-EE6YDWP4.cjs} +44 -44
  10. package/bin/{chunk-EM6PLOYY.cjs → chunk-EVP6BIDZ.cjs} +7 -3
  11. package/bin/{chunk-JMRHG3KS.cjs → chunk-F6YMONH3.cjs} +233 -392
  12. package/bin/{chunk-OLYGBFVX.js → chunk-FHVPOT6G.js} +1481 -1299
  13. package/bin/{chunk-BXSXKKIZ.cjs → chunk-P2UJ7X76.cjs} +4 -4
  14. package/bin/{chunk-GAD5S6RI.js → chunk-P7LQIJOK.js} +2 -2
  15. package/bin/{chunk-4NALH4AO.js → chunk-PRYU3CEH.js} +2 -2
  16. package/bin/{chunk-3QBEWJXQ.js → chunk-S3A47QIS.js} +2 -2
  17. package/bin/{chunk-4MENWQJO.js → chunk-TYQRCC7E.js} +2 -2
  18. package/bin/{chunk-427CJVMZ.js → chunk-UZIBTESG.js} +1 -1
  19. package/bin/{chunk-TJ5BVZGX.js → chunk-V65N3PBL.js} +2 -2
  20. package/bin/{chunk-C34WMFNS.cjs → chunk-VOJH3O6K.cjs} +40 -40
  21. package/bin/{chunk-6L7OVDLD.cjs → chunk-W4EY6QRJ.cjs} +393 -393
  22. package/bin/{chunk-DEGLIS62.cjs → chunk-WFAIEAPC.cjs} +3683 -3501
  23. package/bin/{chunk-BNZUDAPR.js → chunk-ZEYLUM4B.js} +94 -253
  24. package/bin/dist-EX76TC3D.js +17570 -0
  25. package/bin/dist-MDJEMGZH.cjs +17584 -0
  26. package/bin/{esm-ADC7HY7G.cjs → esm-SEHCMT4E.cjs} +46 -46
  27. package/bin/{esm-PISMAGAM.js → esm-UXKHSPHY.js} +1 -1
  28. package/bin/git.cjs +4316 -4073
  29. package/bin/git.js +404 -161
  30. package/bin/json5-E6MR7H4J.cjs +10 -0
  31. package/bin/json5-HE6DANEW.js +10 -0
  32. package/bin/jsonc-CWW22DWU.cjs +15 -0
  33. package/bin/{jsonc-CHJ3SQ64.js → jsonc-TLFMS47G.js} +3 -3
  34. package/bin/{multipart-parser-QOE3NE7W.js → multipart-parser-KCGB6E6J.js} +4 -4
  35. package/bin/{multipart-parser-CN3QNGEE.cjs → multipart-parser-S4YB5ALJ.cjs} +13 -13
  36. package/bin/post-checkout.cjs +22 -22
  37. package/bin/post-checkout.js +10 -10
  38. package/bin/post-commit.cjs +22 -22
  39. package/bin/post-commit.js +10 -10
  40. package/bin/post-merge.cjs +22 -22
  41. package/bin/post-merge.js +10 -10
  42. package/bin/pre-commit.cjs +20 -20
  43. package/bin/pre-commit.js +9 -9
  44. package/bin/pre-install.cjs +19 -19
  45. package/bin/pre-install.js +9 -9
  46. package/bin/pre-push.cjs +27 -27
  47. package/bin/pre-push.js +10 -10
  48. package/bin/prepare.cjs +17 -17
  49. package/bin/prepare.js +9 -9
  50. package/bin/toml-PO23EX2W.js +10 -0
  51. package/bin/toml-TV5QPP5J.cjs +10 -0
  52. package/bin/version-warning.cjs +15 -15
  53. package/bin/version-warning.js +9 -9
  54. package/bin/yaml-NB7XNCSN.js +10 -0
  55. package/bin/yaml-WOAAZHQN.cjs +10 -0
  56. package/package.json +1 -1
  57. package/bin/chunk-EDTRL3GR.cjs +0 -259
  58. package/bin/chunk-K7RQNYFN.js +0 -259
  59. package/bin/dist-GN3JYRFA.js +0 -17570
  60. package/bin/dist-ZUU4T6MR.cjs +0 -17571
  61. package/bin/execa-45OZD4HI.js +0 -2174
  62. package/bin/execa-E3LSHKN4.cjs +0 -2174
  63. package/bin/json5-MEVIN4CB.cjs +0 -10
  64. package/bin/json5-VNZS6NRW.js +0 -10
  65. package/bin/jsonc-Q2LSC5PJ.cjs +0 -15
  66. package/bin/toml-24JQBPT6.cjs +0 -10
  67. package/bin/toml-5RFTLUCR.js +0 -10
  68. package/bin/yaml-76CIIR2C.cjs +0 -10
  69. package/bin/yaml-MEEY2W2C.js +0 -10
@@ -1,2174 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class;
2
-
3
- var _chunkEDTRL3GRcjs = require('./chunk-EDTRL3GR.cjs');
4
-
5
-
6
-
7
-
8
-
9
-
10
- var _chunkEM6PLOYYcjs = require('./chunk-EM6PLOYY.cjs');
11
-
12
- // ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js
13
- var require_windows = _chunkEM6PLOYYcjs.__commonJS.call(void 0, {
14
- "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports, module) {
15
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
16
- module.exports = isexe;
17
- isexe.sync = sync;
18
- var fs = _chunkEM6PLOYYcjs.__require.call(void 0, "fs");
19
- function checkPathExt(path3, options) {
20
- var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
21
- if (!pathext) {
22
- return true;
23
- }
24
- pathext = pathext.split(";");
25
- if (pathext.indexOf("") !== -1) {
26
- return true;
27
- }
28
- for (var i = 0; i < pathext.length; i++) {
29
- var p = pathext[i].toLowerCase();
30
- if (p && path3.substr(-p.length).toLowerCase() === p) {
31
- return true;
32
- }
33
- }
34
- return false;
35
- }
36
- _chunkEM6PLOYYcjs.__name.call(void 0, checkPathExt, "checkPathExt");
37
- function checkStat(stat, path3, options) {
38
- if (!stat.isSymbolicLink() && !stat.isFile()) {
39
- return false;
40
- }
41
- return checkPathExt(path3, options);
42
- }
43
- _chunkEM6PLOYYcjs.__name.call(void 0, checkStat, "checkStat");
44
- function isexe(path3, options, cb) {
45
- fs.stat(path3, function(er, stat) {
46
- cb(er, er ? false : checkStat(stat, path3, options));
47
- });
48
- }
49
- _chunkEM6PLOYYcjs.__name.call(void 0, isexe, "isexe");
50
- function sync(path3, options) {
51
- return checkStat(fs.statSync(path3), path3, options);
52
- }
53
- _chunkEM6PLOYYcjs.__name.call(void 0, sync, "sync");
54
- }
55
- });
56
-
57
- // ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js
58
- var require_mode = _chunkEM6PLOYYcjs.__commonJS.call(void 0, {
59
- "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports, module) {
60
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
61
- module.exports = isexe;
62
- isexe.sync = sync;
63
- var fs = _chunkEM6PLOYYcjs.__require.call(void 0, "fs");
64
- function isexe(path3, options, cb) {
65
- fs.stat(path3, function(er, stat) {
66
- cb(er, er ? false : checkStat(stat, options));
67
- });
68
- }
69
- _chunkEM6PLOYYcjs.__name.call(void 0, isexe, "isexe");
70
- function sync(path3, options) {
71
- return checkStat(fs.statSync(path3), options);
72
- }
73
- _chunkEM6PLOYYcjs.__name.call(void 0, sync, "sync");
74
- function checkStat(stat, options) {
75
- return stat.isFile() && checkMode(stat, options);
76
- }
77
- _chunkEM6PLOYYcjs.__name.call(void 0, checkStat, "checkStat");
78
- function checkMode(stat, options) {
79
- var mod = stat.mode;
80
- var uid = stat.uid;
81
- var gid = stat.gid;
82
- var myUid = options.uid !== void 0 ? options.uid : process.getuid && process.getuid();
83
- var myGid = options.gid !== void 0 ? options.gid : process.getgid && process.getgid();
84
- var u = parseInt("100", 8);
85
- var g = parseInt("010", 8);
86
- var o = parseInt("001", 8);
87
- var ug = u | g;
88
- var ret = mod & o || mod & g && gid === myGid || mod & u && uid === myUid || mod & ug && myUid === 0;
89
- return ret;
90
- }
91
- _chunkEM6PLOYYcjs.__name.call(void 0, checkMode, "checkMode");
92
- }
93
- });
94
-
95
- // ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js
96
- var require_isexe = _chunkEM6PLOYYcjs.__commonJS.call(void 0, {
97
- "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports, module) {
98
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
99
- var fs = _chunkEM6PLOYYcjs.__require.call(void 0, "fs");
100
- var core;
101
- if (process.platform === "win32" || global.TESTING_WINDOWS) {
102
- core = require_windows();
103
- } else {
104
- core = require_mode();
105
- }
106
- module.exports = isexe;
107
- isexe.sync = sync;
108
- function isexe(path3, options, cb) {
109
- if (typeof options === "function") {
110
- cb = options;
111
- options = {};
112
- }
113
- if (!cb) {
114
- if (typeof Promise !== "function") {
115
- throw new TypeError("callback not provided");
116
- }
117
- return new Promise(function(resolve, reject) {
118
- isexe(path3, options || {}, function(er, is) {
119
- if (er) {
120
- reject(er);
121
- } else {
122
- resolve(is);
123
- }
124
- });
125
- });
126
- }
127
- core(path3, options || {}, function(er, is) {
128
- if (er) {
129
- if (er.code === "EACCES" || options && options.ignoreErrors) {
130
- er = null;
131
- is = false;
132
- }
133
- }
134
- cb(er, is);
135
- });
136
- }
137
- _chunkEM6PLOYYcjs.__name.call(void 0, isexe, "isexe");
138
- function sync(path3, options) {
139
- try {
140
- return core.sync(path3, options || {});
141
- } catch (er) {
142
- if (options && options.ignoreErrors || er.code === "EACCES") {
143
- return false;
144
- } else {
145
- throw er;
146
- }
147
- }
148
- }
149
- _chunkEM6PLOYYcjs.__name.call(void 0, sync, "sync");
150
- }
151
- });
152
-
153
- // ../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
154
- var require_which = _chunkEM6PLOYYcjs.__commonJS.call(void 0, {
155
- "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports, module) {
156
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
157
- var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
158
- var path3 = _chunkEM6PLOYYcjs.__require.call(void 0, "path");
159
- var COLON = isWindows ? ";" : ":";
160
- var isexe = require_isexe();
161
- var getNotFoundError = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (cmd) => Object.assign(new Error(`not found: ${cmd}`), {
162
- code: "ENOENT"
163
- }), "getNotFoundError");
164
- var getPathInfo = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (cmd, opt) => {
165
- const colon = opt.colon || COLON;
166
- const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [
167
- ""
168
- ] : [
169
- // windows always checks the cwd first
170
- ...isWindows ? [
171
- process.cwd()
172
- ] : [],
173
- ...(opt.path || process.env.PATH || /* istanbul ignore next: very unusual */
174
- "").split(colon)
175
- ];
176
- const pathExtExe = isWindows ? opt.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
177
- const pathExt = isWindows ? pathExtExe.split(colon) : [
178
- ""
179
- ];
180
- if (isWindows) {
181
- if (cmd.indexOf(".") !== -1 && pathExt[0] !== "") pathExt.unshift("");
182
- }
183
- return {
184
- pathEnv,
185
- pathExt,
186
- pathExtExe
187
- };
188
- }, "getPathInfo");
189
- var which = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (cmd, opt, cb) => {
190
- if (typeof opt === "function") {
191
- cb = opt;
192
- opt = {};
193
- }
194
- if (!opt) opt = {};
195
- const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
196
- const found = [];
197
- const step = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (i) => new Promise((resolve, reject) => {
198
- if (i === pathEnv.length) return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
199
- const ppRaw = pathEnv[i];
200
- const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
201
- const pCmd = path3.join(pathPart, cmd);
202
- const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
203
- resolve(subStep(p, i, 0));
204
- }), "step");
205
- const subStep = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (p, i, ii) => new Promise((resolve, reject) => {
206
- if (ii === pathExt.length) return resolve(step(i + 1));
207
- const ext = pathExt[ii];
208
- isexe(p + ext, {
209
- pathExt: pathExtExe
210
- }, (er, is) => {
211
- if (!er && is) {
212
- if (opt.all) found.push(p + ext);
213
- else return resolve(p + ext);
214
- }
215
- return resolve(subStep(p, i, ii + 1));
216
- });
217
- }), "subStep");
218
- return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
219
- }, "which");
220
- var whichSync = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (cmd, opt) => {
221
- opt = opt || {};
222
- const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
223
- const found = [];
224
- for (let i = 0; i < pathEnv.length; i++) {
225
- const ppRaw = pathEnv[i];
226
- const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
227
- const pCmd = path3.join(pathPart, cmd);
228
- const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
229
- for (let j = 0; j < pathExt.length; j++) {
230
- const cur = p + pathExt[j];
231
- try {
232
- const is = isexe.sync(cur, {
233
- pathExt: pathExtExe
234
- });
235
- if (is) {
236
- if (opt.all) found.push(cur);
237
- else return cur;
238
- }
239
- } catch (ex) {
240
- }
241
- }
242
- }
243
- if (opt.all && found.length) return found;
244
- if (opt.nothrow) return null;
245
- throw getNotFoundError(cmd);
246
- }, "whichSync");
247
- module.exports = which;
248
- which.sync = whichSync;
249
- }
250
- });
251
-
252
- // ../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js
253
- var require_path_key = _chunkEM6PLOYYcjs.__commonJS.call(void 0, {
254
- "../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(exports, module) {
255
- "use strict";
256
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
257
- var pathKey2 = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (options = {}) => {
258
- const environment = options.env || process.env;
259
- const platform = options.platform || process.platform;
260
- if (platform !== "win32") {
261
- return "PATH";
262
- }
263
- return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
264
- }, "pathKey");
265
- module.exports = pathKey2;
266
- module.exports.default = pathKey2;
267
- }
268
- });
269
-
270
- // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
271
- var require_resolveCommand = _chunkEM6PLOYYcjs.__commonJS.call(void 0, {
272
- "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module) {
273
- "use strict";
274
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
275
- var path3 = _chunkEM6PLOYYcjs.__require.call(void 0, "path");
276
- var which = require_which();
277
- var getPathKey = require_path_key();
278
- function resolveCommandAttempt(parsed, withoutPathExt) {
279
- const env = parsed.options.env || process.env;
280
- const cwd = process.cwd();
281
- const hasCustomCwd = parsed.options.cwd != null;
282
- const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
283
- if (shouldSwitchCwd) {
284
- try {
285
- process.chdir(parsed.options.cwd);
286
- } catch (err) {
287
- }
288
- }
289
- let resolved;
290
- try {
291
- resolved = which.sync(parsed.command, {
292
- path: env[getPathKey({
293
- env
294
- })],
295
- pathExt: withoutPathExt ? path3.delimiter : void 0
296
- });
297
- } catch (e) {
298
- } finally {
299
- if (shouldSwitchCwd) {
300
- process.chdir(cwd);
301
- }
302
- }
303
- if (resolved) {
304
- resolved = path3.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
305
- }
306
- return resolved;
307
- }
308
- _chunkEM6PLOYYcjs.__name.call(void 0, resolveCommandAttempt, "resolveCommandAttempt");
309
- function resolveCommand(parsed) {
310
- return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
311
- }
312
- _chunkEM6PLOYYcjs.__name.call(void 0, resolveCommand, "resolveCommand");
313
- module.exports = resolveCommand;
314
- }
315
- });
316
-
317
- // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js
318
- var require_escape = _chunkEM6PLOYYcjs.__commonJS.call(void 0, {
319
- "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"(exports, module) {
320
- "use strict";
321
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
322
- var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
323
- function escapeCommand(arg) {
324
- arg = arg.replace(metaCharsRegExp, "^$1");
325
- return arg;
326
- }
327
- _chunkEM6PLOYYcjs.__name.call(void 0, escapeCommand, "escapeCommand");
328
- function escapeArgument(arg, doubleEscapeMetaChars) {
329
- arg = `${arg}`;
330
- arg = arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"');
331
- arg = arg.replace(/(?=(\\+?)?)\1$/, "$1$1");
332
- arg = `"${arg}"`;
333
- arg = arg.replace(metaCharsRegExp, "^$1");
334
- if (doubleEscapeMetaChars) {
335
- arg = arg.replace(metaCharsRegExp, "^$1");
336
- }
337
- return arg;
338
- }
339
- _chunkEM6PLOYYcjs.__name.call(void 0, escapeArgument, "escapeArgument");
340
- module.exports.command = escapeCommand;
341
- module.exports.argument = escapeArgument;
342
- }
343
- });
344
-
345
- // ../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js
346
- var require_shebang_regex = _chunkEM6PLOYYcjs.__commonJS.call(void 0, {
347
- "../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(exports, module) {
348
- "use strict";
349
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
350
- module.exports = /^#!(.*)/;
351
- }
352
- });
353
-
354
- // ../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js
355
- var require_shebang_command = _chunkEM6PLOYYcjs.__commonJS.call(void 0, {
356
- "../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(exports, module) {
357
- "use strict";
358
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
359
- var shebangRegex = require_shebang_regex();
360
- module.exports = (string = "") => {
361
- const match = string.match(shebangRegex);
362
- if (!match) {
363
- return null;
364
- }
365
- const [path3, argument] = match[0].replace(/#! ?/, "").split(" ");
366
- const binary = path3.split("/").pop();
367
- if (binary === "env") {
368
- return argument;
369
- }
370
- return argument ? `${binary} ${argument}` : binary;
371
- };
372
- }
373
- });
374
-
375
- // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
376
- var require_readShebang = _chunkEM6PLOYYcjs.__commonJS.call(void 0, {
377
- "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module) {
378
- "use strict";
379
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
380
- var fs = _chunkEM6PLOYYcjs.__require.call(void 0, "fs");
381
- var shebangCommand = require_shebang_command();
382
- function readShebang(command) {
383
- const size = 150;
384
- const buffer = Buffer.alloc(size);
385
- let fd;
386
- try {
387
- fd = fs.openSync(command, "r");
388
- fs.readSync(fd, buffer, 0, size, 0);
389
- fs.closeSync(fd);
390
- } catch (e) {
391
- }
392
- return shebangCommand(buffer.toString());
393
- }
394
- _chunkEM6PLOYYcjs.__name.call(void 0, readShebang, "readShebang");
395
- module.exports = readShebang;
396
- }
397
- });
398
-
399
- // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
400
- var require_parse = _chunkEM6PLOYYcjs.__commonJS.call(void 0, {
401
- "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports, module) {
402
- "use strict";
403
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
404
- var path3 = _chunkEM6PLOYYcjs.__require.call(void 0, "path");
405
- var resolveCommand = require_resolveCommand();
406
- var escape = require_escape();
407
- var readShebang = require_readShebang();
408
- var isWin = process.platform === "win32";
409
- var isExecutableRegExp = /\.(?:com|exe)$/i;
410
- var isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
411
- function detectShebang(parsed) {
412
- parsed.file = resolveCommand(parsed);
413
- const shebang = parsed.file && readShebang(parsed.file);
414
- if (shebang) {
415
- parsed.args.unshift(parsed.file);
416
- parsed.command = shebang;
417
- return resolveCommand(parsed);
418
- }
419
- return parsed.file;
420
- }
421
- _chunkEM6PLOYYcjs.__name.call(void 0, detectShebang, "detectShebang");
422
- function parseNonShell(parsed) {
423
- if (!isWin) {
424
- return parsed;
425
- }
426
- const commandFile = detectShebang(parsed);
427
- const needsShell = !isExecutableRegExp.test(commandFile);
428
- if (parsed.options.forceShell || needsShell) {
429
- const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
430
- parsed.command = path3.normalize(parsed.command);
431
- parsed.command = escape.command(parsed.command);
432
- parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
433
- const shellCommand = [
434
- parsed.command
435
- ].concat(parsed.args).join(" ");
436
- parsed.args = [
437
- "/d",
438
- "/s",
439
- "/c",
440
- `"${shellCommand}"`
441
- ];
442
- parsed.command = process.env.comspec || "cmd.exe";
443
- parsed.options.windowsVerbatimArguments = true;
444
- }
445
- return parsed;
446
- }
447
- _chunkEM6PLOYYcjs.__name.call(void 0, parseNonShell, "parseNonShell");
448
- function parse(command, args, options) {
449
- if (args && !Array.isArray(args)) {
450
- options = args;
451
- args = null;
452
- }
453
- args = args ? args.slice(0) : [];
454
- options = Object.assign({}, options);
455
- const parsed = {
456
- command,
457
- args,
458
- options,
459
- file: void 0,
460
- original: {
461
- command,
462
- args
463
- }
464
- };
465
- return options.shell ? parsed : parseNonShell(parsed);
466
- }
467
- _chunkEM6PLOYYcjs.__name.call(void 0, parse, "parse");
468
- module.exports = parse;
469
- }
470
- });
471
-
472
- // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js
473
- var require_enoent = _chunkEM6PLOYYcjs.__commonJS.call(void 0, {
474
- "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(exports, module) {
475
- "use strict";
476
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
477
- var isWin = process.platform === "win32";
478
- function notFoundError(original, syscall) {
479
- return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
480
- code: "ENOENT",
481
- errno: "ENOENT",
482
- syscall: `${syscall} ${original.command}`,
483
- path: original.command,
484
- spawnargs: original.args
485
- });
486
- }
487
- _chunkEM6PLOYYcjs.__name.call(void 0, notFoundError, "notFoundError");
488
- function hookChildProcess(cp, parsed) {
489
- if (!isWin) {
490
- return;
491
- }
492
- const originalEmit = cp.emit;
493
- cp.emit = function(name, arg1) {
494
- if (name === "exit") {
495
- const err = verifyENOENT(arg1, parsed);
496
- if (err) {
497
- return originalEmit.call(cp, "error", err);
498
- }
499
- }
500
- return originalEmit.apply(cp, arguments);
501
- };
502
- }
503
- _chunkEM6PLOYYcjs.__name.call(void 0, hookChildProcess, "hookChildProcess");
504
- function verifyENOENT(status, parsed) {
505
- if (isWin && status === 1 && !parsed.file) {
506
- return notFoundError(parsed.original, "spawn");
507
- }
508
- return null;
509
- }
510
- _chunkEM6PLOYYcjs.__name.call(void 0, verifyENOENT, "verifyENOENT");
511
- function verifyENOENTSync(status, parsed) {
512
- if (isWin && status === 1 && !parsed.file) {
513
- return notFoundError(parsed.original, "spawnSync");
514
- }
515
- return null;
516
- }
517
- _chunkEM6PLOYYcjs.__name.call(void 0, verifyENOENTSync, "verifyENOENTSync");
518
- module.exports = {
519
- hookChildProcess,
520
- verifyENOENT,
521
- verifyENOENTSync,
522
- notFoundError
523
- };
524
- }
525
- });
526
-
527
- // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js
528
- var require_cross_spawn = _chunkEM6PLOYYcjs.__commonJS.call(void 0, {
529
- "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports, module) {
530
- "use strict";
531
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
532
- var cp = _chunkEM6PLOYYcjs.__require.call(void 0, "child_process");
533
- var parse = require_parse();
534
- var enoent = require_enoent();
535
- function spawn(command, args, options) {
536
- const parsed = parse(command, args, options);
537
- const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
538
- enoent.hookChildProcess(spawned, parsed);
539
- return spawned;
540
- }
541
- _chunkEM6PLOYYcjs.__name.call(void 0, spawn, "spawn");
542
- function spawnSync(command, args, options) {
543
- const parsed = parse(command, args, options);
544
- const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
545
- result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
546
- return result;
547
- }
548
- _chunkEM6PLOYYcjs.__name.call(void 0, spawnSync, "spawnSync");
549
- module.exports = spawn;
550
- module.exports.spawn = spawn;
551
- module.exports.sync = spawnSync;
552
- module.exports._parse = parse;
553
- module.exports._enoent = enoent;
554
- }
555
- });
556
-
557
- // ../../node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js
558
- var require_merge_stream = _chunkEM6PLOYYcjs.__commonJS.call(void 0, {
559
- "../../node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js"(exports, module) {
560
- "use strict";
561
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
562
- var { PassThrough } = _chunkEM6PLOYYcjs.__require.call(void 0, "stream");
563
- module.exports = function() {
564
- var sources = [];
565
- var output = new PassThrough({
566
- objectMode: true
567
- });
568
- output.setMaxListeners(0);
569
- output.add = add;
570
- output.isEmpty = isEmpty;
571
- output.on("unpipe", remove);
572
- Array.prototype.slice.call(arguments).forEach(add);
573
- return output;
574
- function add(source) {
575
- if (Array.isArray(source)) {
576
- source.forEach(add);
577
- return this;
578
- }
579
- sources.push(source);
580
- source.once("end", remove.bind(null, source));
581
- source.once("error", output.emit.bind(output, "error"));
582
- source.pipe(output, {
583
- end: false
584
- });
585
- return this;
586
- }
587
- _chunkEM6PLOYYcjs.__name.call(void 0, add, "add");
588
- function isEmpty() {
589
- return sources.length == 0;
590
- }
591
- _chunkEM6PLOYYcjs.__name.call(void 0, isEmpty, "isEmpty");
592
- function remove(source) {
593
- sources = sources.filter(function(it) {
594
- return it !== source;
595
- });
596
- if (!sources.length && output.readable) {
597
- output.end();
598
- }
599
- }
600
- _chunkEM6PLOYYcjs.__name.call(void 0, remove, "remove");
601
- };
602
- }
603
- });
604
-
605
- // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/index.js
606
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
607
- var import_cross_spawn = _chunkEM6PLOYYcjs.__toESM.call(void 0, require_cross_spawn(), 1);
608
- var _buffer = require('buffer');
609
- var _path = require('path'); var _path2 = _interopRequireDefault(_path);
610
- var _child_process = require('child_process'); var _child_process2 = _interopRequireDefault(_child_process);
611
- var _process = require('process'); var _process2 = _interopRequireDefault(_process);
612
-
613
- // ../../node_modules/.pnpm/strip-final-newline@3.0.0/node_modules/strip-final-newline/index.js
614
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
615
- function stripFinalNewline(input) {
616
- const LF = typeof input === "string" ? "\n" : "\n".charCodeAt();
617
- const CR = typeof input === "string" ? "\r" : "\r".charCodeAt();
618
- if (input[input.length - 1] === LF) {
619
- input = input.slice(0, -1);
620
- }
621
- if (input[input.length - 1] === CR) {
622
- input = input.slice(0, -1);
623
- }
624
- return input;
625
- }
626
- _chunkEM6PLOYYcjs.__name.call(void 0, stripFinalNewline, "stripFinalNewline");
627
-
628
- // ../../node_modules/.pnpm/npm-run-path@5.3.0/node_modules/npm-run-path/index.js
629
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
630
-
631
-
632
- var _url = require('url');
633
-
634
- // ../../node_modules/.pnpm/path-key@4.0.0/node_modules/path-key/index.js
635
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
636
- function pathKey(options = {}) {
637
- const { env = process.env, platform = process.platform } = options;
638
- if (platform !== "win32") {
639
- return "PATH";
640
- }
641
- return Object.keys(env).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
642
- }
643
- _chunkEM6PLOYYcjs.__name.call(void 0, pathKey, "pathKey");
644
-
645
- // ../../node_modules/.pnpm/npm-run-path@5.3.0/node_modules/npm-run-path/index.js
646
- var npmRunPath = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, ({ cwd = _process2.default.cwd(), path: pathOption = _process2.default.env[pathKey()], preferLocal = true, execPath = _process2.default.execPath, addExecPath = true } = {}) => {
647
- const cwdString = cwd instanceof URL ? _url.fileURLToPath.call(void 0, cwd) : cwd;
648
- const cwdPath = _path2.default.resolve(cwdString);
649
- const result = [];
650
- if (preferLocal) {
651
- applyPreferLocal(result, cwdPath);
652
- }
653
- if (addExecPath) {
654
- applyExecPath(result, execPath, cwdPath);
655
- }
656
- return [
657
- ...result,
658
- pathOption
659
- ].join(_path2.default.delimiter);
660
- }, "npmRunPath");
661
- var applyPreferLocal = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (result, cwdPath) => {
662
- let previous;
663
- while (previous !== cwdPath) {
664
- result.push(_path2.default.join(cwdPath, "node_modules/.bin"));
665
- previous = cwdPath;
666
- cwdPath = _path2.default.resolve(cwdPath, "..");
667
- }
668
- }, "applyPreferLocal");
669
- var applyExecPath = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (result, execPath, cwdPath) => {
670
- const execPathString = execPath instanceof URL ? _url.fileURLToPath.call(void 0, execPath) : execPath;
671
- result.push(_path2.default.resolve(cwdPath, execPathString, ".."));
672
- }, "applyExecPath");
673
- var npmRunPathEnv = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, ({ env = _process2.default.env, ...options } = {}) => {
674
- env = {
675
- ...env
676
- };
677
- const pathName = pathKey({
678
- env
679
- });
680
- options.path = env[pathName];
681
- env[pathName] = npmRunPath(options);
682
- return env;
683
- }, "npmRunPathEnv");
684
-
685
- // ../../node_modules/.pnpm/onetime@6.0.0/node_modules/onetime/index.js
686
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
687
-
688
- // ../../node_modules/.pnpm/mimic-fn@4.0.0/node_modules/mimic-fn/index.js
689
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
690
- var copyProperty = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (to, from, property, ignoreNonConfigurable) => {
691
- if (property === "length" || property === "prototype") {
692
- return;
693
- }
694
- if (property === "arguments" || property === "caller") {
695
- return;
696
- }
697
- const toDescriptor = Object.getOwnPropertyDescriptor(to, property);
698
- const fromDescriptor = Object.getOwnPropertyDescriptor(from, property);
699
- if (!canCopyProperty(toDescriptor, fromDescriptor) && ignoreNonConfigurable) {
700
- return;
701
- }
702
- Object.defineProperty(to, property, fromDescriptor);
703
- }, "copyProperty");
704
- var canCopyProperty = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, function(toDescriptor, fromDescriptor) {
705
- return toDescriptor === void 0 || toDescriptor.configurable || toDescriptor.writable === fromDescriptor.writable && toDescriptor.enumerable === fromDescriptor.enumerable && toDescriptor.configurable === fromDescriptor.configurable && (toDescriptor.writable || toDescriptor.value === fromDescriptor.value);
706
- }, "canCopyProperty");
707
- var changePrototype = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (to, from) => {
708
- const fromPrototype = Object.getPrototypeOf(from);
709
- if (fromPrototype === Object.getPrototypeOf(to)) {
710
- return;
711
- }
712
- Object.setPrototypeOf(to, fromPrototype);
713
- }, "changePrototype");
714
- var wrappedToString = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (withName, fromBody) => `/* Wrapped ${withName}*/
715
- ${fromBody}`, "wrappedToString");
716
- var toStringDescriptor = Object.getOwnPropertyDescriptor(Function.prototype, "toString");
717
- var toStringName = Object.getOwnPropertyDescriptor(Function.prototype.toString, "name");
718
- var changeToString = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (to, from, name) => {
719
- const withName = name === "" ? "" : `with ${name.trim()}() `;
720
- const newToString = wrappedToString.bind(null, withName, from.toString());
721
- Object.defineProperty(newToString, "name", toStringName);
722
- Object.defineProperty(to, "toString", {
723
- ...toStringDescriptor,
724
- value: newToString
725
- });
726
- }, "changeToString");
727
- function mimicFunction(to, from, { ignoreNonConfigurable = false } = {}) {
728
- const { name } = to;
729
- for (const property of Reflect.ownKeys(from)) {
730
- copyProperty(to, from, property, ignoreNonConfigurable);
731
- }
732
- changePrototype(to, from);
733
- changeToString(to, from, name);
734
- return to;
735
- }
736
- _chunkEM6PLOYYcjs.__name.call(void 0, mimicFunction, "mimicFunction");
737
-
738
- // ../../node_modules/.pnpm/onetime@6.0.0/node_modules/onetime/index.js
739
- var calledFunctions = /* @__PURE__ */ new WeakMap();
740
- var onetime = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (function_, options = {}) => {
741
- if (typeof function_ !== "function") {
742
- throw new TypeError("Expected a function");
743
- }
744
- let returnValue;
745
- let callCount = 0;
746
- const functionName = function_.displayName || function_.name || "<anonymous>";
747
- const onetime2 = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, function(...arguments_) {
748
- calledFunctions.set(onetime2, ++callCount);
749
- if (callCount === 1) {
750
- returnValue = function_.apply(this, arguments_);
751
- function_ = null;
752
- } else if (options.throw === true) {
753
- throw new Error(`Function \`${functionName}\` can only be called once`);
754
- }
755
- return returnValue;
756
- }, "onetime");
757
- mimicFunction(onetime2, function_);
758
- calledFunctions.set(onetime2, callCount);
759
- return onetime2;
760
- }, "onetime");
761
- onetime.callCount = (function_) => {
762
- if (!calledFunctions.has(function_)) {
763
- throw new Error(`The given function \`${function_.name}\` is not wrapped by the \`onetime\` package`);
764
- }
765
- return calledFunctions.get(function_);
766
- };
767
- var onetime_default = onetime;
768
-
769
- // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/error.js
770
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
771
-
772
-
773
- // ../../node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/main.js
774
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
775
- var _os = require('os'); var _os2 = _interopRequireDefault(_os);
776
-
777
- // ../../node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/realtime.js
778
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
779
- var getRealtimeSignals = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, () => {
780
- const length = SIGRTMAX - SIGRTMIN + 1;
781
- return Array.from({
782
- length
783
- }, getRealtimeSignal);
784
- }, "getRealtimeSignals");
785
- var getRealtimeSignal = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (value, index) => ({
786
- name: `SIGRT${index + 1}`,
787
- number: SIGRTMIN + index,
788
- action: "terminate",
789
- description: "Application-specific signal (realtime)",
790
- standard: "posix"
791
- }), "getRealtimeSignal");
792
- var SIGRTMIN = 34;
793
- var SIGRTMAX = 64;
794
-
795
- // ../../node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/signals.js
796
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
797
-
798
-
799
- // ../../node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/core.js
800
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
801
- var SIGNALS = [
802
- {
803
- name: "SIGHUP",
804
- number: 1,
805
- action: "terminate",
806
- description: "Terminal closed",
807
- standard: "posix"
808
- },
809
- {
810
- name: "SIGINT",
811
- number: 2,
812
- action: "terminate",
813
- description: "User interruption with CTRL-C",
814
- standard: "ansi"
815
- },
816
- {
817
- name: "SIGQUIT",
818
- number: 3,
819
- action: "core",
820
- description: "User interruption with CTRL-\\",
821
- standard: "posix"
822
- },
823
- {
824
- name: "SIGILL",
825
- number: 4,
826
- action: "core",
827
- description: "Invalid machine instruction",
828
- standard: "ansi"
829
- },
830
- {
831
- name: "SIGTRAP",
832
- number: 5,
833
- action: "core",
834
- description: "Debugger breakpoint",
835
- standard: "posix"
836
- },
837
- {
838
- name: "SIGABRT",
839
- number: 6,
840
- action: "core",
841
- description: "Aborted",
842
- standard: "ansi"
843
- },
844
- {
845
- name: "SIGIOT",
846
- number: 6,
847
- action: "core",
848
- description: "Aborted",
849
- standard: "bsd"
850
- },
851
- {
852
- name: "SIGBUS",
853
- number: 7,
854
- action: "core",
855
- description: "Bus error due to misaligned, non-existing address or paging error",
856
- standard: "bsd"
857
- },
858
- {
859
- name: "SIGEMT",
860
- number: 7,
861
- action: "terminate",
862
- description: "Command should be emulated but is not implemented",
863
- standard: "other"
864
- },
865
- {
866
- name: "SIGFPE",
867
- number: 8,
868
- action: "core",
869
- description: "Floating point arithmetic error",
870
- standard: "ansi"
871
- },
872
- {
873
- name: "SIGKILL",
874
- number: 9,
875
- action: "terminate",
876
- description: "Forced termination",
877
- standard: "posix",
878
- forced: true
879
- },
880
- {
881
- name: "SIGUSR1",
882
- number: 10,
883
- action: "terminate",
884
- description: "Application-specific signal",
885
- standard: "posix"
886
- },
887
- {
888
- name: "SIGSEGV",
889
- number: 11,
890
- action: "core",
891
- description: "Segmentation fault",
892
- standard: "ansi"
893
- },
894
- {
895
- name: "SIGUSR2",
896
- number: 12,
897
- action: "terminate",
898
- description: "Application-specific signal",
899
- standard: "posix"
900
- },
901
- {
902
- name: "SIGPIPE",
903
- number: 13,
904
- action: "terminate",
905
- description: "Broken pipe or socket",
906
- standard: "posix"
907
- },
908
- {
909
- name: "SIGALRM",
910
- number: 14,
911
- action: "terminate",
912
- description: "Timeout or timer",
913
- standard: "posix"
914
- },
915
- {
916
- name: "SIGTERM",
917
- number: 15,
918
- action: "terminate",
919
- description: "Termination",
920
- standard: "ansi"
921
- },
922
- {
923
- name: "SIGSTKFLT",
924
- number: 16,
925
- action: "terminate",
926
- description: "Stack is empty or overflowed",
927
- standard: "other"
928
- },
929
- {
930
- name: "SIGCHLD",
931
- number: 17,
932
- action: "ignore",
933
- description: "Child process terminated, paused or unpaused",
934
- standard: "posix"
935
- },
936
- {
937
- name: "SIGCLD",
938
- number: 17,
939
- action: "ignore",
940
- description: "Child process terminated, paused or unpaused",
941
- standard: "other"
942
- },
943
- {
944
- name: "SIGCONT",
945
- number: 18,
946
- action: "unpause",
947
- description: "Unpaused",
948
- standard: "posix",
949
- forced: true
950
- },
951
- {
952
- name: "SIGSTOP",
953
- number: 19,
954
- action: "pause",
955
- description: "Paused",
956
- standard: "posix",
957
- forced: true
958
- },
959
- {
960
- name: "SIGTSTP",
961
- number: 20,
962
- action: "pause",
963
- description: 'Paused using CTRL-Z or "suspend"',
964
- standard: "posix"
965
- },
966
- {
967
- name: "SIGTTIN",
968
- number: 21,
969
- action: "pause",
970
- description: "Background process cannot read terminal input",
971
- standard: "posix"
972
- },
973
- {
974
- name: "SIGBREAK",
975
- number: 21,
976
- action: "terminate",
977
- description: "User interruption with CTRL-BREAK",
978
- standard: "other"
979
- },
980
- {
981
- name: "SIGTTOU",
982
- number: 22,
983
- action: "pause",
984
- description: "Background process cannot write to terminal output",
985
- standard: "posix"
986
- },
987
- {
988
- name: "SIGURG",
989
- number: 23,
990
- action: "ignore",
991
- description: "Socket received out-of-band data",
992
- standard: "bsd"
993
- },
994
- {
995
- name: "SIGXCPU",
996
- number: 24,
997
- action: "core",
998
- description: "Process timed out",
999
- standard: "bsd"
1000
- },
1001
- {
1002
- name: "SIGXFSZ",
1003
- number: 25,
1004
- action: "core",
1005
- description: "File too big",
1006
- standard: "bsd"
1007
- },
1008
- {
1009
- name: "SIGVTALRM",
1010
- number: 26,
1011
- action: "terminate",
1012
- description: "Timeout or timer",
1013
- standard: "bsd"
1014
- },
1015
- {
1016
- name: "SIGPROF",
1017
- number: 27,
1018
- action: "terminate",
1019
- description: "Timeout or timer",
1020
- standard: "bsd"
1021
- },
1022
- {
1023
- name: "SIGWINCH",
1024
- number: 28,
1025
- action: "ignore",
1026
- description: "Terminal window size changed",
1027
- standard: "bsd"
1028
- },
1029
- {
1030
- name: "SIGIO",
1031
- number: 29,
1032
- action: "terminate",
1033
- description: "I/O is available",
1034
- standard: "other"
1035
- },
1036
- {
1037
- name: "SIGPOLL",
1038
- number: 29,
1039
- action: "terminate",
1040
- description: "Watched event",
1041
- standard: "other"
1042
- },
1043
- {
1044
- name: "SIGINFO",
1045
- number: 29,
1046
- action: "ignore",
1047
- description: "Request for process information",
1048
- standard: "other"
1049
- },
1050
- {
1051
- name: "SIGPWR",
1052
- number: 30,
1053
- action: "terminate",
1054
- description: "Device running out of power",
1055
- standard: "systemv"
1056
- },
1057
- {
1058
- name: "SIGSYS",
1059
- number: 31,
1060
- action: "core",
1061
- description: "Invalid system call",
1062
- standard: "other"
1063
- },
1064
- {
1065
- name: "SIGUNUSED",
1066
- number: 31,
1067
- action: "terminate",
1068
- description: "Invalid system call",
1069
- standard: "other"
1070
- }
1071
- ];
1072
-
1073
- // ../../node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/signals.js
1074
- var getSignals = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, () => {
1075
- const realtimeSignals = getRealtimeSignals();
1076
- const signals = [
1077
- ...SIGNALS,
1078
- ...realtimeSignals
1079
- ].map(normalizeSignal);
1080
- return signals;
1081
- }, "getSignals");
1082
- var normalizeSignal = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, ({ name, number: defaultNumber, description, action, forced = false, standard }) => {
1083
- const { signals: { [name]: constantSignal } } = _os.constants;
1084
- const supported = constantSignal !== void 0;
1085
- const number = supported ? constantSignal : defaultNumber;
1086
- return {
1087
- name,
1088
- number,
1089
- description,
1090
- supported,
1091
- action,
1092
- forced,
1093
- standard
1094
- };
1095
- }, "normalizeSignal");
1096
-
1097
- // ../../node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/main.js
1098
- var getSignalsByName = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, () => {
1099
- const signals = getSignals();
1100
- return Object.fromEntries(signals.map(getSignalByName));
1101
- }, "getSignalsByName");
1102
- var getSignalByName = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, ({ name, number, description, supported, action, forced, standard }) => [
1103
- name,
1104
- {
1105
- name,
1106
- number,
1107
- description,
1108
- supported,
1109
- action,
1110
- forced,
1111
- standard
1112
- }
1113
- ], "getSignalByName");
1114
- var signalsByName = getSignalsByName();
1115
- var getSignalsByNumber = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, () => {
1116
- const signals = getSignals();
1117
- const length = SIGRTMAX + 1;
1118
- const signalsA = Array.from({
1119
- length
1120
- }, (value, number) => getSignalByNumber(number, signals));
1121
- return Object.assign({}, ...signalsA);
1122
- }, "getSignalsByNumber");
1123
- var getSignalByNumber = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (number, signals) => {
1124
- const signal = findSignalByNumber(number, signals);
1125
- if (signal === void 0) {
1126
- return {};
1127
- }
1128
- const { name, description, supported, action, forced, standard } = signal;
1129
- return {
1130
- [number]: {
1131
- name,
1132
- number,
1133
- description,
1134
- supported,
1135
- action,
1136
- forced,
1137
- standard
1138
- }
1139
- };
1140
- }, "getSignalByNumber");
1141
- var findSignalByNumber = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (number, signals) => {
1142
- const signal = signals.find(({ name }) => _os.constants.signals[name] === number);
1143
- if (signal !== void 0) {
1144
- return signal;
1145
- }
1146
- return signals.find((signalA) => signalA.number === number);
1147
- }, "findSignalByNumber");
1148
- var signalsByNumber = getSignalsByNumber();
1149
-
1150
- // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/error.js
1151
- var getErrorPrefix = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, ({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled }) => {
1152
- if (timedOut) {
1153
- return `timed out after ${timeout} milliseconds`;
1154
- }
1155
- if (isCanceled) {
1156
- return "was canceled";
1157
- }
1158
- if (errorCode !== void 0) {
1159
- return `failed with ${errorCode}`;
1160
- }
1161
- if (signal !== void 0) {
1162
- return `was killed with ${signal} (${signalDescription})`;
1163
- }
1164
- if (exitCode !== void 0) {
1165
- return `failed with exit code ${exitCode}`;
1166
- }
1167
- return "failed";
1168
- }, "getErrorPrefix");
1169
- var makeError = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, ({ stdout, stderr, all, error, signal, exitCode, command, escapedCommand, timedOut, isCanceled, killed, parsed: { options: { timeout, cwd = _process2.default.cwd() } } }) => {
1170
- exitCode = exitCode === null ? void 0 : exitCode;
1171
- signal = signal === null ? void 0 : signal;
1172
- const signalDescription = signal === void 0 ? void 0 : signalsByName[signal].description;
1173
- const errorCode = error && error.code;
1174
- const prefix = getErrorPrefix({
1175
- timedOut,
1176
- timeout,
1177
- errorCode,
1178
- signal,
1179
- signalDescription,
1180
- exitCode,
1181
- isCanceled
1182
- });
1183
- const execaMessage = `Command ${prefix}: ${command}`;
1184
- const isError = Object.prototype.toString.call(error) === "[object Error]";
1185
- const shortMessage = isError ? `${execaMessage}
1186
- ${error.message}` : execaMessage;
1187
- const message = [
1188
- shortMessage,
1189
- stderr,
1190
- stdout
1191
- ].filter(Boolean).join("\n");
1192
- if (isError) {
1193
- error.originalMessage = error.message;
1194
- error.message = message;
1195
- } else {
1196
- error = new Error(message);
1197
- }
1198
- error.shortMessage = shortMessage;
1199
- error.command = command;
1200
- error.escapedCommand = escapedCommand;
1201
- error.exitCode = exitCode;
1202
- error.signal = signal;
1203
- error.signalDescription = signalDescription;
1204
- error.stdout = stdout;
1205
- error.stderr = stderr;
1206
- error.cwd = cwd;
1207
- if (all !== void 0) {
1208
- error.all = all;
1209
- }
1210
- if ("bufferedData" in error) {
1211
- delete error.bufferedData;
1212
- }
1213
- error.failed = true;
1214
- error.timedOut = Boolean(timedOut);
1215
- error.isCanceled = isCanceled;
1216
- error.killed = killed && !timedOut;
1217
- return error;
1218
- }, "makeError");
1219
-
1220
- // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/stdio.js
1221
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
1222
- var aliases = [
1223
- "stdin",
1224
- "stdout",
1225
- "stderr"
1226
- ];
1227
- var hasAlias = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (options) => aliases.some((alias) => options[alias] !== void 0), "hasAlias");
1228
- var normalizeStdio = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (options) => {
1229
- if (!options) {
1230
- return;
1231
- }
1232
- const { stdio } = options;
1233
- if (stdio === void 0) {
1234
- return aliases.map((alias) => options[alias]);
1235
- }
1236
- if (hasAlias(options)) {
1237
- throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${aliases.map((alias) => `\`${alias}\``).join(", ")}`);
1238
- }
1239
- if (typeof stdio === "string") {
1240
- return stdio;
1241
- }
1242
- if (!Array.isArray(stdio)) {
1243
- throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);
1244
- }
1245
- const length = Math.max(stdio.length, aliases.length);
1246
- return Array.from({
1247
- length
1248
- }, (value, index) => stdio[index]);
1249
- }, "normalizeStdio");
1250
- var normalizeStdioNode = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (options) => {
1251
- const stdio = normalizeStdio(options);
1252
- if (stdio === "ipc") {
1253
- return "ipc";
1254
- }
1255
- if (stdio === void 0 || typeof stdio === "string") {
1256
- return [
1257
- stdio,
1258
- stdio,
1259
- stdio,
1260
- "ipc"
1261
- ];
1262
- }
1263
- if (stdio.includes("ipc")) {
1264
- return stdio;
1265
- }
1266
- return [
1267
- ...stdio,
1268
- "ipc"
1269
- ];
1270
- }, "normalizeStdioNode");
1271
-
1272
- // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/kill.js
1273
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
1274
-
1275
- var DEFAULT_FORCE_KILL_TIMEOUT = 1e3 * 5;
1276
- var spawnedKill = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (kill, signal = "SIGTERM", options = {}) => {
1277
- const killResult = kill(signal);
1278
- setKillTimeout(kill, signal, options, killResult);
1279
- return killResult;
1280
- }, "spawnedKill");
1281
- var setKillTimeout = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (kill, signal, options, killResult) => {
1282
- if (!shouldForceKill(signal, options, killResult)) {
1283
- return;
1284
- }
1285
- const timeout = getForceKillAfterTimeout(options);
1286
- const t = setTimeout(() => {
1287
- kill("SIGKILL");
1288
- }, timeout);
1289
- if (t.unref) {
1290
- t.unref();
1291
- }
1292
- }, "setKillTimeout");
1293
- var shouldForceKill = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (signal, { forceKillAfterTimeout }, killResult) => isSigterm(signal) && forceKillAfterTimeout !== false && killResult, "shouldForceKill");
1294
- var isSigterm = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (signal) => signal === _os2.default.constants.signals.SIGTERM || typeof signal === "string" && signal.toUpperCase() === "SIGTERM", "isSigterm");
1295
- var getForceKillAfterTimeout = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, ({ forceKillAfterTimeout = true }) => {
1296
- if (forceKillAfterTimeout === true) {
1297
- return DEFAULT_FORCE_KILL_TIMEOUT;
1298
- }
1299
- if (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) {
1300
- throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${forceKillAfterTimeout}\` (${typeof forceKillAfterTimeout})`);
1301
- }
1302
- return forceKillAfterTimeout;
1303
- }, "getForceKillAfterTimeout");
1304
- var spawnedCancel = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (spawned, context) => {
1305
- const killResult = spawned.kill();
1306
- if (killResult) {
1307
- context.isCanceled = true;
1308
- }
1309
- }, "spawnedCancel");
1310
- var timeoutKill = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (spawned, signal, reject) => {
1311
- spawned.kill(signal);
1312
- reject(Object.assign(new Error("Timed out"), {
1313
- timedOut: true,
1314
- signal
1315
- }));
1316
- }, "timeoutKill");
1317
- var setupTimeout = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (spawned, { timeout, killSignal = "SIGTERM" }, spawnedPromise) => {
1318
- if (timeout === 0 || timeout === void 0) {
1319
- return spawnedPromise;
1320
- }
1321
- let timeoutId;
1322
- const timeoutPromise = new Promise((resolve, reject) => {
1323
- timeoutId = setTimeout(() => {
1324
- timeoutKill(spawned, killSignal, reject);
1325
- }, timeout);
1326
- });
1327
- const safeSpawnedPromise = spawnedPromise.finally(() => {
1328
- clearTimeout(timeoutId);
1329
- });
1330
- return Promise.race([
1331
- timeoutPromise,
1332
- safeSpawnedPromise
1333
- ]);
1334
- }, "setupTimeout");
1335
- var validateTimeout = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, ({ timeout }) => {
1336
- if (timeout !== void 0 && (!Number.isFinite(timeout) || timeout < 0)) {
1337
- throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${timeout}\` (${typeof timeout})`);
1338
- }
1339
- }, "validateTimeout");
1340
- var setExitHandler = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (spawned, { cleanup, detached }, timedPromise) => {
1341
- if (!cleanup || detached) {
1342
- return timedPromise;
1343
- }
1344
- const removeExitHandler = _chunkEDTRL3GRcjs.onExit.call(void 0, () => {
1345
- spawned.kill();
1346
- });
1347
- return timedPromise.finally(() => {
1348
- removeExitHandler();
1349
- });
1350
- }, "setExitHandler");
1351
-
1352
- // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/pipe.js
1353
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
1354
- var _fs = require('fs');
1355
-
1356
-
1357
- // ../../node_modules/.pnpm/is-stream@3.0.0/node_modules/is-stream/index.js
1358
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
1359
- function isStream(stream) {
1360
- return stream !== null && typeof stream === "object" && typeof stream.pipe === "function";
1361
- }
1362
- _chunkEM6PLOYYcjs.__name.call(void 0, isStream, "isStream");
1363
- function isWritableStream(stream) {
1364
- return isStream(stream) && stream.writable !== false && typeof stream._write === "function" && typeof stream._writableState === "object";
1365
- }
1366
- _chunkEM6PLOYYcjs.__name.call(void 0, isWritableStream, "isWritableStream");
1367
-
1368
- // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/pipe.js
1369
- var isExecaChildProcess = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (target) => target instanceof _child_process.ChildProcess && typeof target.then === "function", "isExecaChildProcess");
1370
- var pipeToTarget = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (spawned, streamName, target) => {
1371
- if (typeof target === "string") {
1372
- spawned[streamName].pipe(_fs.createWriteStream.call(void 0, target));
1373
- return spawned;
1374
- }
1375
- if (isWritableStream(target)) {
1376
- spawned[streamName].pipe(target);
1377
- return spawned;
1378
- }
1379
- if (!isExecaChildProcess(target)) {
1380
- throw new TypeError("The second argument must be a string, a stream or an Execa child process.");
1381
- }
1382
- if (!isWritableStream(target.stdin)) {
1383
- throw new TypeError("The target child process's stdin must be available.");
1384
- }
1385
- spawned[streamName].pipe(target.stdin);
1386
- return target;
1387
- }, "pipeToTarget");
1388
- var addPipeMethods = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (spawned) => {
1389
- if (spawned.stdout !== null) {
1390
- spawned.pipeStdout = pipeToTarget.bind(void 0, spawned, "stdout");
1391
- }
1392
- if (spawned.stderr !== null) {
1393
- spawned.pipeStderr = pipeToTarget.bind(void 0, spawned, "stderr");
1394
- }
1395
- if (spawned.all !== void 0) {
1396
- spawned.pipeAll = pipeToTarget.bind(void 0, spawned, "all");
1397
- }
1398
- }, "addPipeMethods");
1399
-
1400
- // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/stream.js
1401
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
1402
-
1403
- var _promises = require('timers/promises');
1404
-
1405
- // ../../node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/index.js
1406
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
1407
-
1408
- // ../../node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/array.js
1409
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
1410
-
1411
- // ../../node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/contents.js
1412
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
1413
- var getStreamContents = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (stream, { init, convertChunk, getSize, truncateChunk, addChunk, getFinalChunk, finalize }, { maxBuffer = Number.POSITIVE_INFINITY } = {}) => {
1414
- if (!isAsyncIterable(stream)) {
1415
- throw new Error("The first argument must be a Readable, a ReadableStream, or an async iterable.");
1416
- }
1417
- const state = init();
1418
- state.length = 0;
1419
- try {
1420
- for await (const chunk of stream) {
1421
- const chunkType = getChunkType(chunk);
1422
- const convertedChunk = convertChunk[chunkType](chunk, state);
1423
- appendChunk({
1424
- convertedChunk,
1425
- state,
1426
- getSize,
1427
- truncateChunk,
1428
- addChunk,
1429
- maxBuffer
1430
- });
1431
- }
1432
- appendFinalChunk({
1433
- state,
1434
- convertChunk,
1435
- getSize,
1436
- truncateChunk,
1437
- addChunk,
1438
- getFinalChunk,
1439
- maxBuffer
1440
- });
1441
- return finalize(state);
1442
- } catch (error) {
1443
- error.bufferedData = finalize(state);
1444
- throw error;
1445
- }
1446
- }, "getStreamContents");
1447
- var appendFinalChunk = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, ({ state, getSize, truncateChunk, addChunk, getFinalChunk, maxBuffer }) => {
1448
- const convertedChunk = getFinalChunk(state);
1449
- if (convertedChunk !== void 0) {
1450
- appendChunk({
1451
- convertedChunk,
1452
- state,
1453
- getSize,
1454
- truncateChunk,
1455
- addChunk,
1456
- maxBuffer
1457
- });
1458
- }
1459
- }, "appendFinalChunk");
1460
- var appendChunk = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, ({ convertedChunk, state, getSize, truncateChunk, addChunk, maxBuffer }) => {
1461
- const chunkSize = getSize(convertedChunk);
1462
- const newLength = state.length + chunkSize;
1463
- if (newLength <= maxBuffer) {
1464
- addNewChunk(convertedChunk, state, addChunk, newLength);
1465
- return;
1466
- }
1467
- const truncatedChunk = truncateChunk(convertedChunk, maxBuffer - state.length);
1468
- if (truncatedChunk !== void 0) {
1469
- addNewChunk(truncatedChunk, state, addChunk, maxBuffer);
1470
- }
1471
- throw new MaxBufferError();
1472
- }, "appendChunk");
1473
- var addNewChunk = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (convertedChunk, state, addChunk, newLength) => {
1474
- state.contents = addChunk(convertedChunk, state, newLength);
1475
- state.length = newLength;
1476
- }, "addNewChunk");
1477
- var isAsyncIterable = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (stream) => typeof stream === "object" && stream !== null && typeof stream[Symbol.asyncIterator] === "function", "isAsyncIterable");
1478
- var getChunkType = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (chunk) => {
1479
- const typeOfChunk = typeof chunk;
1480
- if (typeOfChunk === "string") {
1481
- return "string";
1482
- }
1483
- if (typeOfChunk !== "object" || chunk === null) {
1484
- return "others";
1485
- }
1486
- if (_optionalChain([globalThis, 'access', _ => _.Buffer, 'optionalAccess', _2 => _2.isBuffer, 'call', _3 => _3(chunk)])) {
1487
- return "buffer";
1488
- }
1489
- const prototypeName = objectToString.call(chunk);
1490
- if (prototypeName === "[object ArrayBuffer]") {
1491
- return "arrayBuffer";
1492
- }
1493
- if (prototypeName === "[object DataView]") {
1494
- return "dataView";
1495
- }
1496
- if (Number.isInteger(chunk.byteLength) && Number.isInteger(chunk.byteOffset) && objectToString.call(chunk.buffer) === "[object ArrayBuffer]") {
1497
- return "typedArray";
1498
- }
1499
- return "others";
1500
- }, "getChunkType");
1501
- var { toString: objectToString } = Object.prototype;
1502
- var MaxBufferError = (_class = class extends Error {
1503
- static {
1504
- _chunkEM6PLOYYcjs.__name.call(void 0, this, "MaxBufferError");
1505
- }
1506
- __init() {this.name = "MaxBufferError"}
1507
- constructor() {
1508
- super("maxBuffer exceeded");_class.prototype.__init.call(this);;
1509
- }
1510
- }, _class);
1511
-
1512
- // ../../node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/utils.js
1513
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
1514
- var identity = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (value) => value, "identity");
1515
- var noop = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, () => void 0, "noop");
1516
- var getContentsProp = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, ({ contents }) => contents, "getContentsProp");
1517
- var throwObjectStream = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (chunk) => {
1518
- throw new Error(`Streams in object mode are not supported: ${String(chunk)}`);
1519
- }, "throwObjectStream");
1520
- var getLengthProp = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (convertedChunk) => convertedChunk.length, "getLengthProp");
1521
-
1522
- // ../../node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/array-buffer.js
1523
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
1524
- async function getStreamAsArrayBuffer(stream, options) {
1525
- return getStreamContents(stream, arrayBufferMethods, options);
1526
- }
1527
- _chunkEM6PLOYYcjs.__name.call(void 0, getStreamAsArrayBuffer, "getStreamAsArrayBuffer");
1528
- var initArrayBuffer = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, () => ({
1529
- contents: new ArrayBuffer(0)
1530
- }), "initArrayBuffer");
1531
- var useTextEncoder = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (chunk) => textEncoder.encode(chunk), "useTextEncoder");
1532
- var textEncoder = new TextEncoder();
1533
- var useUint8Array = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (chunk) => new Uint8Array(chunk), "useUint8Array");
1534
- var useUint8ArrayWithOffset = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (chunk) => new Uint8Array(chunk.buffer, chunk.byteOffset, chunk.byteLength), "useUint8ArrayWithOffset");
1535
- var truncateArrayBufferChunk = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (convertedChunk, chunkSize) => convertedChunk.slice(0, chunkSize), "truncateArrayBufferChunk");
1536
- var addArrayBufferChunk = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (convertedChunk, { contents, length: previousLength }, length) => {
1537
- const newContents = hasArrayBufferResize() ? resizeArrayBuffer(contents, length) : resizeArrayBufferSlow(contents, length);
1538
- new Uint8Array(newContents).set(convertedChunk, previousLength);
1539
- return newContents;
1540
- }, "addArrayBufferChunk");
1541
- var resizeArrayBufferSlow = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (contents, length) => {
1542
- if (length <= contents.byteLength) {
1543
- return contents;
1544
- }
1545
- const arrayBuffer = new ArrayBuffer(getNewContentsLength(length));
1546
- new Uint8Array(arrayBuffer).set(new Uint8Array(contents), 0);
1547
- return arrayBuffer;
1548
- }, "resizeArrayBufferSlow");
1549
- var resizeArrayBuffer = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (contents, length) => {
1550
- if (length <= contents.maxByteLength) {
1551
- contents.resize(length);
1552
- return contents;
1553
- }
1554
- const arrayBuffer = new ArrayBuffer(length, {
1555
- maxByteLength: getNewContentsLength(length)
1556
- });
1557
- new Uint8Array(arrayBuffer).set(new Uint8Array(contents), 0);
1558
- return arrayBuffer;
1559
- }, "resizeArrayBuffer");
1560
- var getNewContentsLength = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (length) => SCALE_FACTOR ** Math.ceil(Math.log(length) / Math.log(SCALE_FACTOR)), "getNewContentsLength");
1561
- var SCALE_FACTOR = 2;
1562
- var finalizeArrayBuffer = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, ({ contents, length }) => hasArrayBufferResize() ? contents : contents.slice(0, length), "finalizeArrayBuffer");
1563
- var hasArrayBufferResize = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, () => "resize" in ArrayBuffer.prototype, "hasArrayBufferResize");
1564
- var arrayBufferMethods = {
1565
- init: initArrayBuffer,
1566
- convertChunk: {
1567
- string: useTextEncoder,
1568
- buffer: useUint8Array,
1569
- arrayBuffer: useUint8Array,
1570
- dataView: useUint8ArrayWithOffset,
1571
- typedArray: useUint8ArrayWithOffset,
1572
- others: throwObjectStream
1573
- },
1574
- getSize: getLengthProp,
1575
- truncateChunk: truncateArrayBufferChunk,
1576
- addChunk: addArrayBufferChunk,
1577
- getFinalChunk: noop,
1578
- finalize: finalizeArrayBuffer
1579
- };
1580
-
1581
- // ../../node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/buffer.js
1582
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
1583
- async function getStreamAsBuffer(stream, options) {
1584
- if (!("Buffer" in globalThis)) {
1585
- throw new Error("getStreamAsBuffer() is only supported in Node.js");
1586
- }
1587
- try {
1588
- return arrayBufferToNodeBuffer(await getStreamAsArrayBuffer(stream, options));
1589
- } catch (error) {
1590
- if (error.bufferedData !== void 0) {
1591
- error.bufferedData = arrayBufferToNodeBuffer(error.bufferedData);
1592
- }
1593
- throw error;
1594
- }
1595
- }
1596
- _chunkEM6PLOYYcjs.__name.call(void 0, getStreamAsBuffer, "getStreamAsBuffer");
1597
- var arrayBufferToNodeBuffer = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (arrayBuffer) => globalThis.Buffer.from(arrayBuffer), "arrayBufferToNodeBuffer");
1598
-
1599
- // ../../node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/string.js
1600
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
1601
- async function getStreamAsString(stream, options) {
1602
- return getStreamContents(stream, stringMethods, options);
1603
- }
1604
- _chunkEM6PLOYYcjs.__name.call(void 0, getStreamAsString, "getStreamAsString");
1605
- var initString = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, () => ({
1606
- contents: "",
1607
- textDecoder: new TextDecoder()
1608
- }), "initString");
1609
- var useTextDecoder = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (chunk, { textDecoder }) => textDecoder.decode(chunk, {
1610
- stream: true
1611
- }), "useTextDecoder");
1612
- var addStringChunk = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (convertedChunk, { contents }) => contents + convertedChunk, "addStringChunk");
1613
- var truncateStringChunk = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (convertedChunk, chunkSize) => convertedChunk.slice(0, chunkSize), "truncateStringChunk");
1614
- var getFinalStringChunk = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, ({ textDecoder }) => {
1615
- const finalChunk = textDecoder.decode();
1616
- return finalChunk === "" ? void 0 : finalChunk;
1617
- }, "getFinalStringChunk");
1618
- var stringMethods = {
1619
- init: initString,
1620
- convertChunk: {
1621
- string: identity,
1622
- buffer: useTextDecoder,
1623
- arrayBuffer: useTextDecoder,
1624
- dataView: useTextDecoder,
1625
- typedArray: useTextDecoder,
1626
- others: throwObjectStream
1627
- },
1628
- getSize: getLengthProp,
1629
- truncateChunk: truncateStringChunk,
1630
- addChunk: addStringChunk,
1631
- getFinalChunk: getFinalStringChunk,
1632
- finalize: getContentsProp
1633
- };
1634
-
1635
- // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/stream.js
1636
- var import_merge_stream = _chunkEM6PLOYYcjs.__toESM.call(void 0, require_merge_stream(), 1);
1637
- var validateInputOptions = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (input) => {
1638
- if (input !== void 0) {
1639
- throw new TypeError("The `input` and `inputFile` options cannot be both set.");
1640
- }
1641
- }, "validateInputOptions");
1642
- var getInputSync = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, ({ input, inputFile }) => {
1643
- if (typeof inputFile !== "string") {
1644
- return input;
1645
- }
1646
- validateInputOptions(input);
1647
- return _fs.readFileSync.call(void 0, inputFile);
1648
- }, "getInputSync");
1649
- var handleInputSync = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (options) => {
1650
- const input = getInputSync(options);
1651
- if (isStream(input)) {
1652
- throw new TypeError("The `input` option cannot be a stream in sync mode");
1653
- }
1654
- return input;
1655
- }, "handleInputSync");
1656
- var getInput = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, ({ input, inputFile }) => {
1657
- if (typeof inputFile !== "string") {
1658
- return input;
1659
- }
1660
- validateInputOptions(input);
1661
- return _fs.createReadStream.call(void 0, inputFile);
1662
- }, "getInput");
1663
- var handleInput = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (spawned, options) => {
1664
- const input = getInput(options);
1665
- if (input === void 0) {
1666
- return;
1667
- }
1668
- if (isStream(input)) {
1669
- input.pipe(spawned.stdin);
1670
- } else {
1671
- spawned.stdin.end(input);
1672
- }
1673
- }, "handleInput");
1674
- var makeAllStream = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (spawned, { all }) => {
1675
- if (!all || !spawned.stdout && !spawned.stderr) {
1676
- return;
1677
- }
1678
- const mixed = (0, import_merge_stream.default)();
1679
- if (spawned.stdout) {
1680
- mixed.add(spawned.stdout);
1681
- }
1682
- if (spawned.stderr) {
1683
- mixed.add(spawned.stderr);
1684
- }
1685
- return mixed;
1686
- }, "makeAllStream");
1687
- var getBufferedData = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (stream, streamPromise) => {
1688
- if (!stream || streamPromise === void 0) {
1689
- return;
1690
- }
1691
- await _promises.setTimeout.call(void 0, 0);
1692
- stream.destroy();
1693
- try {
1694
- return await streamPromise;
1695
- } catch (error) {
1696
- return error.bufferedData;
1697
- }
1698
- }, "getBufferedData");
1699
- var getStreamPromise = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (stream, { encoding, buffer, maxBuffer }) => {
1700
- if (!stream || !buffer) {
1701
- return;
1702
- }
1703
- if (encoding === "utf8" || encoding === "utf-8") {
1704
- return getStreamAsString(stream, {
1705
- maxBuffer
1706
- });
1707
- }
1708
- if (encoding === null || encoding === "buffer") {
1709
- return getStreamAsBuffer(stream, {
1710
- maxBuffer
1711
- });
1712
- }
1713
- return applyEncoding(stream, maxBuffer, encoding);
1714
- }, "getStreamPromise");
1715
- var applyEncoding = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (stream, maxBuffer, encoding) => {
1716
- const buffer = await getStreamAsBuffer(stream, {
1717
- maxBuffer
1718
- });
1719
- return buffer.toString(encoding);
1720
- }, "applyEncoding");
1721
- var getSpawnedResult = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async ({ stdout, stderr, all }, { encoding, buffer, maxBuffer }, processDone) => {
1722
- const stdoutPromise = getStreamPromise(stdout, {
1723
- encoding,
1724
- buffer,
1725
- maxBuffer
1726
- });
1727
- const stderrPromise = getStreamPromise(stderr, {
1728
- encoding,
1729
- buffer,
1730
- maxBuffer
1731
- });
1732
- const allPromise = getStreamPromise(all, {
1733
- encoding,
1734
- buffer,
1735
- maxBuffer: maxBuffer * 2
1736
- });
1737
- try {
1738
- return await Promise.all([
1739
- processDone,
1740
- stdoutPromise,
1741
- stderrPromise,
1742
- allPromise
1743
- ]);
1744
- } catch (error) {
1745
- return Promise.all([
1746
- {
1747
- error,
1748
- signal: error.signal,
1749
- timedOut: error.timedOut
1750
- },
1751
- getBufferedData(stdout, stdoutPromise),
1752
- getBufferedData(stderr, stderrPromise),
1753
- getBufferedData(all, allPromise)
1754
- ]);
1755
- }
1756
- }, "getSpawnedResult");
1757
-
1758
- // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/promise.js
1759
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
1760
- var nativePromisePrototype = (async () => {
1761
- })().constructor.prototype;
1762
- var descriptors = [
1763
- "then",
1764
- "catch",
1765
- "finally"
1766
- ].map((property) => [
1767
- property,
1768
- Reflect.getOwnPropertyDescriptor(nativePromisePrototype, property)
1769
- ]);
1770
- var mergePromise = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (spawned, promise) => {
1771
- for (const [property, descriptor] of descriptors) {
1772
- const value = typeof promise === "function" ? (...args) => Reflect.apply(descriptor.value, promise(), args) : descriptor.value.bind(promise);
1773
- Reflect.defineProperty(spawned, property, {
1774
- ...descriptor,
1775
- value
1776
- });
1777
- }
1778
- }, "mergePromise");
1779
- var getSpawnedPromise = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (spawned) => new Promise((resolve, reject) => {
1780
- spawned.on("exit", (exitCode, signal) => {
1781
- resolve({
1782
- exitCode,
1783
- signal
1784
- });
1785
- });
1786
- spawned.on("error", (error) => {
1787
- reject(error);
1788
- });
1789
- if (spawned.stdin) {
1790
- spawned.stdin.on("error", (error) => {
1791
- reject(error);
1792
- });
1793
- }
1794
- }), "getSpawnedPromise");
1795
-
1796
- // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/command.js
1797
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
1798
-
1799
-
1800
- var normalizeArgs = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (file, args = []) => {
1801
- if (!Array.isArray(args)) {
1802
- return [
1803
- file
1804
- ];
1805
- }
1806
- return [
1807
- file,
1808
- ...args
1809
- ];
1810
- }, "normalizeArgs");
1811
- var NO_ESCAPE_REGEXP = /^[\w.-]+$/;
1812
- var escapeArg = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (arg) => {
1813
- if (typeof arg !== "string" || NO_ESCAPE_REGEXP.test(arg)) {
1814
- return arg;
1815
- }
1816
- return `"${arg.replaceAll('"', '\\"')}"`;
1817
- }, "escapeArg");
1818
- var joinCommand = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (file, args) => normalizeArgs(file, args).join(" "), "joinCommand");
1819
- var getEscapedCommand = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (file, args) => normalizeArgs(file, args).map((arg) => escapeArg(arg)).join(" "), "getEscapedCommand");
1820
- var SPACES_REGEXP = / +/g;
1821
- var parseCommand = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (command) => {
1822
- const tokens = [];
1823
- for (const token of command.trim().split(SPACES_REGEXP)) {
1824
- const previousToken = tokens.at(-1);
1825
- if (previousToken && previousToken.endsWith("\\")) {
1826
- tokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;
1827
- } else {
1828
- tokens.push(token);
1829
- }
1830
- }
1831
- return tokens;
1832
- }, "parseCommand");
1833
- var parseExpression = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (expression) => {
1834
- const typeOfExpression = typeof expression;
1835
- if (typeOfExpression === "string") {
1836
- return expression;
1837
- }
1838
- if (typeOfExpression === "number") {
1839
- return String(expression);
1840
- }
1841
- if (typeOfExpression === "object" && expression !== null && !(expression instanceof _child_process.ChildProcess) && "stdout" in expression) {
1842
- const typeOfStdout = typeof expression.stdout;
1843
- if (typeOfStdout === "string") {
1844
- return expression.stdout;
1845
- }
1846
- if (_buffer.Buffer.isBuffer(expression.stdout)) {
1847
- return expression.stdout.toString();
1848
- }
1849
- throw new TypeError(`Unexpected "${typeOfStdout}" stdout in template expression`);
1850
- }
1851
- throw new TypeError(`Unexpected "${typeOfExpression}" in template expression`);
1852
- }, "parseExpression");
1853
- var concatTokens = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (tokens, nextTokens, isNew) => isNew || tokens.length === 0 || nextTokens.length === 0 ? [
1854
- ...tokens,
1855
- ...nextTokens
1856
- ] : [
1857
- ...tokens.slice(0, -1),
1858
- `${tokens.at(-1)}${nextTokens[0]}`,
1859
- ...nextTokens.slice(1)
1860
- ], "concatTokens");
1861
- var parseTemplate = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, ({ templates, expressions, tokens, index, template }) => {
1862
- const templateString = _nullishCoalesce(template, () => ( templates.raw[index]));
1863
- const templateTokens = templateString.split(SPACES_REGEXP).filter(Boolean);
1864
- const newTokens = concatTokens(tokens, templateTokens, templateString.startsWith(" "));
1865
- if (index === expressions.length) {
1866
- return newTokens;
1867
- }
1868
- const expression = expressions[index];
1869
- const expressionTokens = Array.isArray(expression) ? expression.map((expression2) => parseExpression(expression2)) : [
1870
- parseExpression(expression)
1871
- ];
1872
- return concatTokens(newTokens, expressionTokens, templateString.endsWith(" "));
1873
- }, "parseTemplate");
1874
- var parseTemplates = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (templates, expressions) => {
1875
- let tokens = [];
1876
- for (const [index, template] of templates.entries()) {
1877
- tokens = parseTemplate({
1878
- templates,
1879
- expressions,
1880
- tokens,
1881
- index,
1882
- template
1883
- });
1884
- }
1885
- return tokens;
1886
- }, "parseTemplates");
1887
-
1888
- // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/verbose.js
1889
- _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
1890
- var _util = require('util');
1891
-
1892
- var verboseDefault = _util.debuglog.call(void 0, "execa").enabled;
1893
- var padField = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (field, padding) => String(field).padStart(padding, "0"), "padField");
1894
- var getTimestamp = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, () => {
1895
- const date = /* @__PURE__ */ new Date();
1896
- return `${padField(date.getHours(), 2)}:${padField(date.getMinutes(), 2)}:${padField(date.getSeconds(), 2)}.${padField(date.getMilliseconds(), 3)}`;
1897
- }, "getTimestamp");
1898
- var logCommand = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (escapedCommand, { verbose }) => {
1899
- if (!verbose) {
1900
- return;
1901
- }
1902
- _process2.default.stderr.write(`[${getTimestamp()}] ${escapedCommand}
1903
- `);
1904
- }, "logCommand");
1905
-
1906
- // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/index.js
1907
- var DEFAULT_MAX_BUFFER = 1e3 * 1e3 * 100;
1908
- var getEnv = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, ({ env: envOption, extendEnv, preferLocal, localDir, execPath }) => {
1909
- const env = extendEnv ? {
1910
- ..._process2.default.env,
1911
- ...envOption
1912
- } : envOption;
1913
- if (preferLocal) {
1914
- return npmRunPathEnv({
1915
- env,
1916
- cwd: localDir,
1917
- execPath
1918
- });
1919
- }
1920
- return env;
1921
- }, "getEnv");
1922
- var handleArguments = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (file, args, options = {}) => {
1923
- const parsed = import_cross_spawn.default._parse(file, args, options);
1924
- file = parsed.command;
1925
- args = parsed.args;
1926
- options = parsed.options;
1927
- options = {
1928
- maxBuffer: DEFAULT_MAX_BUFFER,
1929
- buffer: true,
1930
- stripFinalNewline: true,
1931
- extendEnv: true,
1932
- preferLocal: false,
1933
- localDir: options.cwd || _process2.default.cwd(),
1934
- execPath: _process2.default.execPath,
1935
- encoding: "utf8",
1936
- reject: true,
1937
- cleanup: true,
1938
- all: false,
1939
- windowsHide: true,
1940
- verbose: verboseDefault,
1941
- ...options
1942
- };
1943
- options.env = getEnv(options);
1944
- options.stdio = normalizeStdio(options);
1945
- if (_process2.default.platform === "win32" && _path2.default.basename(file, ".exe") === "cmd") {
1946
- args.unshift("/q");
1947
- }
1948
- return {
1949
- file,
1950
- args,
1951
- options,
1952
- parsed
1953
- };
1954
- }, "handleArguments");
1955
- var handleOutput = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (options, value, error) => {
1956
- if (typeof value !== "string" && !_buffer.Buffer.isBuffer(value)) {
1957
- return error === void 0 ? void 0 : "";
1958
- }
1959
- if (options.stripFinalNewline) {
1960
- return stripFinalNewline(value);
1961
- }
1962
- return value;
1963
- }, "handleOutput");
1964
- function execa(file, args, options) {
1965
- const parsed = handleArguments(file, args, options);
1966
- const command = joinCommand(file, args);
1967
- const escapedCommand = getEscapedCommand(file, args);
1968
- logCommand(escapedCommand, parsed.options);
1969
- validateTimeout(parsed.options);
1970
- let spawned;
1971
- try {
1972
- spawned = _child_process2.default.spawn(parsed.file, parsed.args, parsed.options);
1973
- } catch (error) {
1974
- const dummySpawned = new _child_process2.default.ChildProcess();
1975
- const errorPromise = Promise.reject(makeError({
1976
- error,
1977
- stdout: "",
1978
- stderr: "",
1979
- all: "",
1980
- command,
1981
- escapedCommand,
1982
- parsed,
1983
- timedOut: false,
1984
- isCanceled: false,
1985
- killed: false
1986
- }));
1987
- mergePromise(dummySpawned, errorPromise);
1988
- return dummySpawned;
1989
- }
1990
- const spawnedPromise = getSpawnedPromise(spawned);
1991
- const timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise);
1992
- const processDone = setExitHandler(spawned, parsed.options, timedPromise);
1993
- const context = {
1994
- isCanceled: false
1995
- };
1996
- spawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned));
1997
- spawned.cancel = spawnedCancel.bind(null, spawned, context);
1998
- const handlePromise = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async () => {
1999
- const [{ error, exitCode, signal, timedOut }, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone);
2000
- const stdout = handleOutput(parsed.options, stdoutResult);
2001
- const stderr = handleOutput(parsed.options, stderrResult);
2002
- const all = handleOutput(parsed.options, allResult);
2003
- if (error || exitCode !== 0 || signal !== null) {
2004
- const returnedError = makeError({
2005
- error,
2006
- exitCode,
2007
- signal,
2008
- stdout,
2009
- stderr,
2010
- all,
2011
- command,
2012
- escapedCommand,
2013
- parsed,
2014
- timedOut,
2015
- isCanceled: context.isCanceled || (parsed.options.signal ? parsed.options.signal.aborted : false),
2016
- killed: spawned.killed
2017
- });
2018
- if (!parsed.options.reject) {
2019
- return returnedError;
2020
- }
2021
- throw returnedError;
2022
- }
2023
- return {
2024
- command,
2025
- escapedCommand,
2026
- exitCode: 0,
2027
- stdout,
2028
- stderr,
2029
- all,
2030
- failed: false,
2031
- timedOut: false,
2032
- isCanceled: false,
2033
- killed: false
2034
- };
2035
- }, "handlePromise");
2036
- const handlePromiseOnce = onetime_default(handlePromise);
2037
- handleInput(spawned, parsed.options);
2038
- spawned.all = makeAllStream(spawned, parsed.options);
2039
- addPipeMethods(spawned);
2040
- mergePromise(spawned, handlePromiseOnce);
2041
- return spawned;
2042
- }
2043
- _chunkEM6PLOYYcjs.__name.call(void 0, execa, "execa");
2044
- function execaSync(file, args, options) {
2045
- const parsed = handleArguments(file, args, options);
2046
- const command = joinCommand(file, args);
2047
- const escapedCommand = getEscapedCommand(file, args);
2048
- logCommand(escapedCommand, parsed.options);
2049
- const input = handleInputSync(parsed.options);
2050
- let result;
2051
- try {
2052
- result = _child_process2.default.spawnSync(parsed.file, parsed.args, {
2053
- ...parsed.options,
2054
- input
2055
- });
2056
- } catch (error) {
2057
- throw makeError({
2058
- error,
2059
- stdout: "",
2060
- stderr: "",
2061
- all: "",
2062
- command,
2063
- escapedCommand,
2064
- parsed,
2065
- timedOut: false,
2066
- isCanceled: false,
2067
- killed: false
2068
- });
2069
- }
2070
- const stdout = handleOutput(parsed.options, result.stdout, result.error);
2071
- const stderr = handleOutput(parsed.options, result.stderr, result.error);
2072
- if (result.error || result.status !== 0 || result.signal !== null) {
2073
- const error = makeError({
2074
- stdout,
2075
- stderr,
2076
- error: result.error,
2077
- signal: result.signal,
2078
- exitCode: result.status,
2079
- command,
2080
- escapedCommand,
2081
- parsed,
2082
- timedOut: result.error && result.error.code === "ETIMEDOUT",
2083
- isCanceled: false,
2084
- killed: result.signal !== null
2085
- });
2086
- if (!parsed.options.reject) {
2087
- return error;
2088
- }
2089
- throw error;
2090
- }
2091
- return {
2092
- command,
2093
- escapedCommand,
2094
- exitCode: 0,
2095
- stdout,
2096
- stderr,
2097
- failed: false,
2098
- timedOut: false,
2099
- isCanceled: false,
2100
- killed: false
2101
- };
2102
- }
2103
- _chunkEM6PLOYYcjs.__name.call(void 0, execaSync, "execaSync");
2104
- var normalizeScriptStdin = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, ({ input, inputFile, stdio }) => input === void 0 && inputFile === void 0 && stdio === void 0 ? {
2105
- stdin: "inherit"
2106
- } : {}, "normalizeScriptStdin");
2107
- var normalizeScriptOptions = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (options = {}) => ({
2108
- preferLocal: true,
2109
- ...normalizeScriptStdin(options),
2110
- ...options
2111
- }), "normalizeScriptOptions");
2112
- function create$(options) {
2113
- function $2(templatesOrOptions, ...expressions) {
2114
- if (!Array.isArray(templatesOrOptions)) {
2115
- return create$({
2116
- ...options,
2117
- ...templatesOrOptions
2118
- });
2119
- }
2120
- const [file, ...args] = parseTemplates(templatesOrOptions, expressions);
2121
- return execa(file, args, normalizeScriptOptions(options));
2122
- }
2123
- _chunkEM6PLOYYcjs.__name.call(void 0, $2, "$");
2124
- $2.sync = (templates, ...expressions) => {
2125
- if (!Array.isArray(templates)) {
2126
- throw new TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");
2127
- }
2128
- const [file, ...args] = parseTemplates(templates, expressions);
2129
- return execaSync(file, args, normalizeScriptOptions(options));
2130
- };
2131
- return $2;
2132
- }
2133
- _chunkEM6PLOYYcjs.__name.call(void 0, create$, "create$");
2134
- var $ = create$();
2135
- function execaCommand(command, options) {
2136
- const [file, ...args] = parseCommand(command);
2137
- return execa(file, args, options);
2138
- }
2139
- _chunkEM6PLOYYcjs.__name.call(void 0, execaCommand, "execaCommand");
2140
- function execaCommandSync(command, options) {
2141
- const [file, ...args] = parseCommand(command);
2142
- return execaSync(file, args, options);
2143
- }
2144
- _chunkEM6PLOYYcjs.__name.call(void 0, execaCommandSync, "execaCommandSync");
2145
- function execaNode(scriptPath, args, options = {}) {
2146
- if (args && !Array.isArray(args) && typeof args === "object") {
2147
- options = args;
2148
- args = [];
2149
- }
2150
- const stdio = normalizeStdioNode(options);
2151
- const defaultExecArgv = _process2.default.execArgv.filter((arg) => !arg.startsWith("--inspect"));
2152
- const { nodePath = _process2.default.execPath, nodeOptions = defaultExecArgv } = options;
2153
- return execa(nodePath, [
2154
- ...nodeOptions,
2155
- scriptPath,
2156
- ...Array.isArray(args) ? args : []
2157
- ], {
2158
- ...options,
2159
- stdin: void 0,
2160
- stdout: void 0,
2161
- stderr: void 0,
2162
- stdio,
2163
- shell: false
2164
- });
2165
- }
2166
- _chunkEM6PLOYYcjs.__name.call(void 0, execaNode, "execaNode");
2167
-
2168
-
2169
-
2170
-
2171
-
2172
-
2173
-
2174
- exports.$ = $; exports.execa = execa; exports.execaCommand = execaCommand; exports.execaCommandSync = execaCommandSync; exports.execaNode = execaNode; exports.execaSync = execaSync;