@ariestools/toolchain 8.7.25 → 8.7.27

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 (55) hide show
  1. package/dist/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.d.ts +10 -5
  2. package/dist/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.d.ts.map +1 -1
  3. package/dist/actions/deplint/engine.d.ts.map +1 -1
  4. package/dist/actions/deplint/findFiles.d.ts +25 -1
  5. package/dist/actions/deplint/findFiles.d.ts.map +1 -1
  6. package/dist/actions/deplint/getExternalImportsFromFiles.d.ts +8 -3
  7. package/dist/actions/deplint/getExternalImportsFromFiles.d.ts.map +1 -1
  8. package/dist/actions/deplint/isTerminalPackage.d.ts +72 -14
  9. package/dist/actions/deplint/isTerminalPackage.d.ts.map +1 -1
  10. package/dist/actions/deplint/rules.d.ts.map +1 -1
  11. package/dist/actions/deplint/snapshot.d.ts +9 -0
  12. package/dist/actions/deplint/snapshot.d.ts.map +1 -1
  13. package/dist/actions/deplint/types.d.ts +20 -2
  14. package/dist/actions/deplint/types.d.ts.map +1 -1
  15. package/dist/actions/package/compile/XyConfig.d.ts +23 -11
  16. package/dist/actions/package/compile/XyConfig.d.ts.map +1 -1
  17. package/dist/actions/skills/defaults.d.ts +18 -1
  18. package/dist/actions/skills/defaults.d.ts.map +1 -1
  19. package/dist/actions/skills/detectProfile.d.ts +8 -0
  20. package/dist/actions/skills/detectProfile.d.ts.map +1 -1
  21. package/dist/actions/skills/lint.d.ts.map +1 -1
  22. package/dist/actions/skills/skillRules.d.ts +12 -1
  23. package/dist/actions/skills/skillRules.d.ts.map +1 -1
  24. package/dist/bin/package/build.mjs +915 -2503
  25. package/dist/bin/package/build.mjs.map +1 -1
  26. package/dist/bin/package/clean.mjs +368 -2056
  27. package/dist/bin/package/clean.mjs.map +1 -1
  28. package/dist/bin/package/compile.mjs +717 -2401
  29. package/dist/bin/package/compile.mjs.map +1 -1
  30. package/dist/bin/package/copy-assets-cjs.mjs +159 -86
  31. package/dist/bin/package/copy-assets-cjs.mjs.map +1 -1
  32. package/dist/bin/package/copy-assets-esm.mjs +159 -86
  33. package/dist/bin/package/copy-assets-esm.mjs.map +1 -1
  34. package/dist/bin/package/fix.mjs +259 -148
  35. package/dist/bin/package/fix.mjs.map +1 -1
  36. package/dist/bin/package/lint-verbose.mjs +259 -148
  37. package/dist/bin/package/lint-verbose.mjs.map +1 -1
  38. package/dist/bin/package/lint.mjs +259 -148
  39. package/dist/bin/package/lint.mjs.map +1 -1
  40. package/dist/bin/package/publint.mjs +393 -2027
  41. package/dist/bin/package/publint.mjs.map +1 -1
  42. package/dist/bin/package/recompile.mjs +719 -2403
  43. package/dist/bin/package/recompile.mjs.map +1 -1
  44. package/dist/bin/package/relint.mjs +259 -148
  45. package/dist/bin/package/relint.mjs.map +1 -1
  46. package/dist/bin/package/sync-layout.mjs +232 -1961
  47. package/dist/bin/package/sync-layout.mjs.map +1 -1
  48. package/dist/bin/run-or-exec.mjs +157 -84
  49. package/dist/bin/run-or-exec.mjs.map +1 -1
  50. package/dist/bin/skills.mjs +4375 -670
  51. package/dist/bin/skills.mjs.map +1 -1
  52. package/dist/bin/xy.mjs +1205 -2347
  53. package/dist/bin/xy.mjs.map +1 -1
  54. package/dist/xy/common/skills/index.d.ts.map +1 -1
  55. package/package.json +4 -4
@@ -39,17 +39,47 @@ var __copyProps = (to, from, except, desc) => {
39
39
  }
40
40
  return to;
41
41
  };
42
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
42
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
43
43
  value: mod,
44
44
  enumerable: true
45
45
  }) : target, mod));
46
46
  var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
47
47
  //#endregion
48
- //#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.js
48
+ //#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/utilities.js
49
+ function stringReplaceAll(string, substring, postfix) {
50
+ let index = string.indexOf(substring);
51
+ if (index === -1) return string;
52
+ const substringLength = substring.length;
53
+ let endIndex = 0;
54
+ let returnValue = "";
55
+ do {
56
+ returnValue += string.slice(endIndex, index) + substring + postfix;
57
+ endIndex = index + substringLength;
58
+ index = string.indexOf(substring, endIndex);
59
+ } while (index !== -1);
60
+ returnValue += string.slice(endIndex);
61
+ return returnValue;
62
+ }
63
+ function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
64
+ let endIndex = 0;
65
+ let returnValue = "";
66
+ do {
67
+ const isGotCR = string[index - 1] === "\r";
68
+ returnValue += string.slice(endIndex, isGotCR ? index - 1 : index) + prefix + (isGotCR ? "\r\n" : "\n") + postfix;
69
+ endIndex = index + 1;
70
+ index = string.indexOf("\n", endIndex);
71
+ } while (index !== -1);
72
+ returnValue += string.slice(endIndex);
73
+ return returnValue;
74
+ }
75
+ //#endregion
76
+ //#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/vendor/ansi-styles/index.js
49
77
  const ANSI_BACKGROUND_OFFSET = 10;
50
- const wrapAnsi16 = (offset = 0) => (code) => `\u001B[${code + offset}m`;
51
- const wrapAnsi256 = (offset = 0) => (code) => `\u001B[${38 + offset};5;${code}m`;
52
- const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\u001B[${38 + offset};2;${red};${green};${blue}m`;
78
+ const ANSI_UNDERLINE_OFFSET = 20;
79
+ const wrapAnsi16 = (offset = 0) => (code) => `\u{1B}[${code + offset}m`;
80
+ const wrapAnsi256 = (offset = 0) => (code) => `\u{1B}[${38 + offset};5;${code}m`;
81
+ const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\u{1B}[${38 + offset};2;${red};${green};${blue}m`;
82
+ const wrapUnderlineAnsi = (code) => `\u{1B}[58;5;${code < 90 ? code - 30 : code - 90 + 8}m`;
53
83
  const styles$1 = {
54
84
  modifier: {
55
85
  reset: [0, 0],
@@ -57,6 +87,10 @@ const styles$1 = {
57
87
  dim: [2, 22],
58
88
  italic: [3, 23],
59
89
  underline: [4, 24],
90
+ underlineDouble: ["4:2", 24],
91
+ underlineCurly: ["4:3", 24],
92
+ underlineDotted: ["4:4", 24],
93
+ underlineDashed: ["4:5", 24],
60
94
  overline: [53, 55],
61
95
  inverse: [7, 27],
62
96
  hidden: [8, 28],
@@ -101,22 +135,43 @@ const styles$1 = {
101
135
  bgMagentaBright: [105, 49],
102
136
  bgCyanBright: [106, 49],
103
137
  bgWhiteBright: [107, 49]
138
+ },
139
+ underlineColor: {
140
+ underlineBlack: ["58;5;0", 59],
141
+ underlineRed: ["58;5;1", 59],
142
+ underlineGreen: ["58;5;2", 59],
143
+ underlineYellow: ["58;5;3", 59],
144
+ underlineBlue: ["58;5;4", 59],
145
+ underlineMagenta: ["58;5;5", 59],
146
+ underlineCyan: ["58;5;6", 59],
147
+ underlineWhite: ["58;5;7", 59],
148
+ underlineBlackBright: ["58;5;8", 59],
149
+ underlineGray: ["58;5;8", 59],
150
+ underlineGrey: ["58;5;8", 59],
151
+ underlineRedBright: ["58;5;9", 59],
152
+ underlineGreenBright: ["58;5;10", 59],
153
+ underlineYellowBright: ["58;5;11", 59],
154
+ underlineBlueBright: ["58;5;12", 59],
155
+ underlineMagentaBright: ["58;5;13", 59],
156
+ underlineCyanBright: ["58;5;14", 59],
157
+ underlineWhiteBright: ["58;5;15", 59]
104
158
  }
105
159
  };
106
160
  Object.keys(styles$1.modifier);
107
161
  const foregroundColorNames = Object.keys(styles$1.color);
108
162
  const backgroundColorNames = Object.keys(styles$1.bgColor);
163
+ Object.keys(styles$1.underlineColor);
109
164
  [...foregroundColorNames, ...backgroundColorNames];
110
165
  function assembleStyles() {
111
166
  const codes = /* @__PURE__ */ new Map();
112
167
  for (const [groupName, group] of Object.entries(styles$1)) {
113
168
  for (const [styleName, style] of Object.entries(group)) {
114
169
  styles$1[styleName] = {
115
- open: `\u001B[${style[0]}m`,
116
- close: `\u001B[${style[1]}m`
170
+ open: `\u{1B}[${style[0]}m`,
171
+ close: `\u{1B}[${style[1]}m`
117
172
  };
118
173
  group[styleName] = styles$1[styleName];
119
- codes.set(style[0], style[1]);
174
+ codes.set(Number.parseInt(style[0], 10), style[1]);
120
175
  }
121
176
  Object.defineProperty(styles$1, groupName, {
122
177
  value: group,
@@ -129,12 +184,16 @@ function assembleStyles() {
129
184
  });
130
185
  styles$1.color.close = "\x1B[39m";
131
186
  styles$1.bgColor.close = "\x1B[49m";
187
+ styles$1.underlineColor.close = "\x1B[59m";
132
188
  styles$1.color.ansi = wrapAnsi16();
133
189
  styles$1.color.ansi256 = wrapAnsi256();
134
190
  styles$1.color.ansi16m = wrapAnsi16m();
135
191
  styles$1.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
136
192
  styles$1.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
137
193
  styles$1.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
194
+ styles$1.underlineColor.ansi = wrapUnderlineAnsi;
195
+ styles$1.underlineColor.ansi256 = wrapAnsi256(ANSI_UNDERLINE_OFFSET);
196
+ styles$1.underlineColor.ansi16m = wrapAnsi16m(ANSI_UNDERLINE_OFFSET);
138
197
  Object.defineProperties(styles$1, {
139
198
  rgbToAnsi256: {
140
199
  value(red, green, blue) {
@@ -149,7 +208,7 @@ function assembleStyles() {
149
208
  },
150
209
  hexToRgb: {
151
210
  value(hex) {
152
- const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
211
+ const matches = /[\da-f]{6}|[\da-f]{3}/i.exec(hex.toString(16));
153
212
  if (!matches) return [
154
213
  0,
155
214
  0,
@@ -209,7 +268,7 @@ function assembleStyles() {
209
268
  }
210
269
  const ansiStyles = assembleStyles();
211
270
  //#endregion
212
- //#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.js
271
+ //#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/vendor/supports-color/index.js
213
272
  function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process$1.argv) {
214
273
  const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
215
274
  const position = argv.indexOf(prefix + flag);
@@ -220,12 +279,15 @@ const { env } = process$1;
220
279
  let flagForceColor;
221
280
  if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) flagForceColor = 0;
222
281
  else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) flagForceColor = 1;
282
+ function hasNumericForceColor() {
283
+ return /^\d+$/.test(env.FORCE_COLOR);
284
+ }
223
285
  function envForceColor() {
224
- if ("FORCE_COLOR" in env) {
225
- if (env.FORCE_COLOR === "true") return 1;
226
- if (env.FORCE_COLOR === "false") return 0;
227
- return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
228
- }
286
+ if (!("FORCE_COLOR" in env)) return;
287
+ if (env.FORCE_COLOR === "false") return 0;
288
+ if (env.FORCE_COLOR === "true" || env.FORCE_COLOR.length === 0) return 1;
289
+ if (!hasNumericForceColor()) return;
290
+ return Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
229
291
  }
230
292
  function translateLevel(level) {
231
293
  if (level === 0) return false;
@@ -245,6 +307,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
245
307
  if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) return 3;
246
308
  if (hasFlag("color=256")) return 2;
247
309
  }
310
+ if (forceColor !== void 0 && hasNumericForceColor()) return forceColor;
248
311
  if ("TF_BUILD" in env && "AGENT_NAME" in env) return 1;
249
312
  if (haveStream && !streamIsTTY && forceColor === void 0) return 0;
250
313
  const min = forceColor || 0;
@@ -269,19 +332,19 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
269
332
  ].some((sign) => sign in env) || env.CI_NAME === "codeship") return 1;
270
333
  return min;
271
334
  }
272
- if ("TEAMCITY_VERSION" in env) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
335
+ if ("TEAMCITY_VERSION" in env) return /^(?:9\.0*[1-9]\d*\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
273
336
  if (env.COLORTERM === "truecolor") return 3;
274
337
  if (env.TERM === "xterm-kitty") return 3;
275
338
  if (env.TERM === "xterm-ghostty") return 3;
276
339
  if (env.TERM === "wezterm") return 3;
277
340
  if ("TERM_PROGRAM" in env) {
278
- const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
341
+ const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".", 1)[0], 10);
279
342
  switch (env.TERM_PROGRAM) {
280
343
  case "iTerm.app": return version >= 3 ? 3 : 2;
281
344
  case "Apple_Terminal": return 2;
282
345
  }
283
346
  }
284
- if (/-256(color)?$/i.test(env.TERM)) return 2;
347
+ if (/-256(?:color)?$/i.test(env.TERM)) return 2;
285
348
  if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
286
349
  if ("COLORTERM" in env) return 1;
287
350
  return min;
@@ -292,55 +355,34 @@ function createSupportsColor(stream, options = {}) {
292
355
  ...options
293
356
  }));
294
357
  }
295
- const supportsColor = {
358
+ //#endregion
359
+ //#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/index.js
360
+ const { stdout: stdoutColor, stderr: stderrColor } = {
296
361
  stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
297
362
  stderr: createSupportsColor({ isTTY: tty.isatty(2) })
298
363
  };
299
- //#endregion
300
- //#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.js
301
- function stringReplaceAll(string, substring, replacer) {
302
- let index = string.indexOf(substring);
303
- if (index === -1) return string;
304
- const substringLength = substring.length;
305
- let endIndex = 0;
306
- let returnValue = "";
307
- do {
308
- returnValue += string.slice(endIndex, index) + substring + replacer;
309
- endIndex = index + substringLength;
310
- index = string.indexOf(substring, endIndex);
311
- } while (index !== -1);
312
- returnValue += string.slice(endIndex);
313
- return returnValue;
314
- }
315
- function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
316
- let endIndex = 0;
317
- let returnValue = "";
318
- do {
319
- const gotCR = string[index - 1] === "\r";
320
- returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
321
- endIndex = index + 1;
322
- index = string.indexOf("\n", endIndex);
323
- } while (index !== -1);
324
- returnValue += string.slice(endIndex);
325
- return returnValue;
326
- }
327
- //#endregion
328
- //#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.js
329
- const { stdout: stdoutColor, stderr: stderrColor } = supportsColor;
330
364
  const GENERATOR = Symbol("GENERATOR");
331
365
  const STYLER = Symbol("STYLER");
332
366
  const IS_EMPTY = Symbol("IS_EMPTY");
333
- const levelMapping = [
334
- "ansi",
335
- "ansi",
336
- "ansi256",
337
- "ansi16m"
338
- ];
367
+ const LEVEL = Symbol("LEVEL");
339
368
  const styles = Object.create(null);
369
+ const assertValidLevel = (level) => {
370
+ if (!Number.isSafeInteger(level) || level < 0 || level > 3) throw new Error("The `level` should be an integer from 0 to 3");
371
+ };
372
+ const levelDescriptor = {
373
+ enumerable: true,
374
+ get() {
375
+ return this[LEVEL];
376
+ },
377
+ set(level) {
378
+ assertValidLevel(level);
379
+ this[LEVEL] = level;
380
+ }
381
+ };
340
382
  const applyOptions = (object, options = {}) => {
341
- if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) throw new Error("The `level` option should be an integer from 0 to 3");
383
+ if (options.level !== void 0) assertValidLevel(options.level);
342
384
  const colorLevel = stdoutColor ? stdoutColor.level : 0;
343
- object.level = options.level === void 0 ? colorLevel : options.level;
385
+ object[LEVEL] = options.level === void 0 ? colorLevel : options.level;
344
386
  };
345
387
  const chalkFactory = (options) => {
346
388
  const chalk = (...strings) => strings.join(" ");
@@ -362,35 +404,58 @@ styles.visible = { get() {
362
404
  Object.defineProperty(this, "visible", { value: builder });
363
405
  return builder;
364
406
  } };
365
- const getModelAnsi = (model, level, type, ...arguments_) => {
407
+ const createModelConverters = (model, type) => {
408
+ const style = ansiStyles[type];
366
409
  if (model === "rgb") {
367
- if (level === "ansi16m") return ansiStyles[type].ansi16m(...arguments_);
368
- if (level === "ansi256") return ansiStyles[type].ansi256(ansiStyles.rgbToAnsi256(...arguments_));
369
- return ansiStyles[type].ansi(ansiStyles.rgbToAnsi(...arguments_));
410
+ const ansi = (red, green, blue) => style.ansi(ansiStyles.rgbToAnsi(red, green, blue));
411
+ const ansi256 = (red, green, blue) => style.ansi256(ansiStyles.rgbToAnsi256(red, green, blue));
412
+ return [
413
+ ansi,
414
+ ansi,
415
+ ansi256,
416
+ style.ansi16m
417
+ ];
370
418
  }
371
- if (model === "hex") return getModelAnsi("rgb", level, type, ...ansiStyles.hexToRgb(...arguments_));
372
- return ansiStyles[type][model](...arguments_);
419
+ if (model === "hex") {
420
+ const ansi = (hex) => style.ansi(ansiStyles.hexToAnsi(hex));
421
+ const ansi256 = (hex) => style.ansi256(ansiStyles.hexToAnsi256(hex));
422
+ return [
423
+ ansi,
424
+ ansi,
425
+ ansi256,
426
+ (hex) => style.ansi16m(...ansiStyles.hexToRgb(hex))
427
+ ];
428
+ }
429
+ const ansi = (code) => style.ansi(ansiStyles.ansi256ToAnsi(code));
430
+ return [
431
+ ansi,
432
+ ansi,
433
+ style.ansi256,
434
+ style.ansi256
435
+ ];
373
436
  };
374
437
  for (const model of [
375
438
  "rgb",
376
439
  "hex",
377
440
  "ansi256"
378
441
  ]) {
379
- styles[model] = { get() {
380
- const { level } = this;
381
- return function(...arguments_) {
382
- const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansiStyles.color.close, this[STYLER]);
383
- return createBuilder(this, styler, this[IS_EMPTY]);
384
- };
385
- } };
386
- const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
387
- styles[bgModel] = { get() {
388
- const { level } = this;
389
- return function(...arguments_) {
390
- const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansiStyles.bgColor.close, this[STYLER]);
391
- return createBuilder(this, styler, this[IS_EMPTY]);
392
- };
393
- } };
442
+ const capitalizedModel = model[0].toUpperCase() + model.slice(1);
443
+ for (const [styleName, type] of [
444
+ [model, "color"],
445
+ ["bg" + capitalizedModel, "bgColor"],
446
+ ["underline" + capitalizedModel, "underlineColor"]
447
+ ]) {
448
+ const { close } = ansiStyles[type];
449
+ const converters = createModelConverters(model, type);
450
+ styles[styleName] = { get() {
451
+ const styleFunction = function(first, second, third) {
452
+ const open = converters[this.level](first, second, third);
453
+ return createBuilder(this, createStyler(open, close, this[STYLER]), this[IS_EMPTY]);
454
+ };
455
+ Object.defineProperty(this, styleName, { value: styleFunction });
456
+ return styleFunction;
457
+ } };
458
+ }
394
459
  }
395
460
  const proto = Object.defineProperties(() => {}, {
396
461
  ...styles,
@@ -423,15 +488,19 @@ const createStyler = (open, close, parent) => {
423
488
  };
424
489
  };
425
490
  const createBuilder = (self, _styler, _isEmpty) => {
426
- const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
491
+ const builder = (...arguments_) => {
492
+ if (arguments_.length === 1) return applyStyle(builder, "" + arguments_[0]);
493
+ if (arguments_.length === 2) return applyStyle(builder, arguments_[0] + " " + arguments_[1]);
494
+ return applyStyle(builder, arguments_.join(" "));
495
+ };
427
496
  Object.setPrototypeOf(builder, proto);
428
- builder[GENERATOR] = self;
497
+ builder[GENERATOR] = self[GENERATOR] ?? self;
429
498
  builder[STYLER] = _styler;
430
499
  builder[IS_EMPTY] = _isEmpty;
431
500
  return builder;
432
501
  };
433
502
  const applyStyle = (self, string) => {
434
- if (self.level <= 0 || !string) return self[IS_EMPTY] ? "" : string;
503
+ if (self[GENERATOR][LEVEL] <= 0 || !string) return self[IS_EMPTY] ? "" : string;
435
504
  let styler = self[STYLER];
436
505
  if (styler === void 0) return string;
437
506
  const { openAll, closeAll } = styler;
@@ -443,7 +512,10 @@ const applyStyle = (self, string) => {
443
512
  if (lfIndex !== -1) string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
444
513
  return openAll + string + closeAll;
445
514
  };
446
- Object.defineProperties(createChalk.prototype, styles);
515
+ Object.defineProperties(createChalk.prototype, {
516
+ ...styles,
517
+ level: levelDescriptor
518
+ });
447
519
  const chalk = createChalk();
448
520
  createChalk({ level: stderrColor ? stderrColor.level : 0 });
449
521
  //#endregion
@@ -452,7 +524,7 @@ function Ht(n) {
452
524
  return isNaN(n) ? n.charCodeAt(0) : parseInt(n, 10);
453
525
  }
454
526
  function ps(n) {
455
- return n.replace(as, fe).replace(ls, ue).replace(cs, qt).replace(fs$5, de).replace(us, pe);
527
+ return n.replace(as, fe).replace(ls, ue).replace(cs, qt).replace(fs$4, de).replace(us, pe);
456
528
  }
457
529
  function ms(n) {
458
530
  return n.replace(is, "\\").replace(rs, "{").replace(ns, "}").replace(os$2, ",").replace(hs, ".");
@@ -544,7 +616,7 @@ function Ut(n, t = {}) {
544
616
  function es(n, t = {}) {
545
617
  return new I(n, t).iterate();
546
618
  }
547
- var Gt, ce, ss, fe, ue, qt, de, pe, is, rs, ns, os$2, hs, as, ls, cs, fs$5, us, ds, at, Ss, lt, Es, we, ye, W, xs, be, vs, Ct, Cs, Ts, As, ks, Kt, Se, Ee, Q, tt, O, Rs, Os, Fs, Ds, Ms, Ns, _s, Ls, Ws, Ps, js, Is, zs, Bs, Us, $s, Gs, Hs, Ce, Te, Ae, xe, A, Vs, Ys, Xs, Js, N, Zs, ke, Qs, ti, ve, ei, D, si, Oe, Vt, Fe, At, Re, ii, q, De, Tt, ri, ft, Ne, oi, hi, ai, G, H, K, kt, ut, Rt, _e, Ot, Le, P, et, v, dt, st, C, F, T, Yt, Ft, k, x, Xt, Jt, We, Zt, B, Qt, Dt, pt, Y, M, mt, li, ci, fi, ui, Mt, te, di, pi, V, wt, Ue, $e, Ri, Oi, L, Ge, He, U, qe, Ke, X, Ve, _, gt, se, je, yt, j, Nt, Lt, Ie, Fi, ie, ze, bt, Be, _t, Wt, ne, Ye, R, Pt, jt, It, it, rt, St, Xe, Di, Mi, Ni, nt, _i, ot, oe, he, ae, Et, Li, zt, xt, vt, Pi, I, le, ji, Ii, zi, Bi, Ui, Ze;
619
+ var Gt, ce, ss, fe, ue, qt, de, pe, is, rs, ns, os$2, hs, as, ls, cs, fs$4, us, ds, at, Ss, lt, Es, we, ye, W, xs, be, vs, Ct, Cs, Ts, As, ks, Kt, Se, Ee, Q, tt, O, Rs, Os, Fs, Ds, Ms, Ns, _s, Ls, Ws, Ps, js, Is, zs, Bs, Us, $s, Gs, Hs, Ce, Te, Ae, xe, A, Vs, Ys, Xs, Js, N, Zs, ke, Qs, ti, ve, ei, D, si, Oe, Vt, Fe, At, Re, ii, q, De, Tt, ri, ft, Ne, oi, hi, ai, G, H, K, kt, ut, Rt, _e, Ot, Le, P, et, v, dt, st, C, F, T, Yt, Ft, k, x, Xt, Jt, We, Zt, B, Qt, Dt, pt, Y, M, mt, li, ci, fi, ui, Mt, te, di, pi, V, vi, wt, Ue, $e, Ri, Oi, L, Ge, He, U, qe, Ke, X, Ve, _, gt, se, je, yt, j, Nt, Lt, Ie, Fi, ie, ze, bt, Be, _t, Wt, ne, Ye, R, Pt, jt, It, it, rt, St, Xe, Di, Mi, Ni, nt, _i, ot, oe, he, ae, Et, Li, zt, xt, vt, Pi, I, le, ji, Ii, zi, Bi, Ui, Ze;
548
620
  var init_index_min = __esmMin((() => {
549
621
  Gt = (n, t, e) => {
550
622
  let s = n instanceof RegExp ? ce(n, e) : n, i = t instanceof RegExp ? ce(t, e) : t, r = s !== null && i != null && ss(s, i, e);
@@ -589,7 +661,7 @@ var init_index_min = __esmMin((() => {
589
661
  as = /\\\\/g;
590
662
  ls = /\\{/g;
591
663
  cs = /\\}/g;
592
- fs$5 = /\\,/g;
664
+ fs$4 = /\\,/g;
593
665
  us = /\\./g;
594
666
  ds = 1e5;
595
667
  at = (n) => {
@@ -2299,12 +2371,13 @@ while (this[Le](this[Ft]()) && this[C].length);
2299
2371
  return oi;
2300
2372
  }
2301
2373
  };
2374
+ vi = realpathSync.native;
2302
2375
  wt = {
2303
2376
  lstatSync,
2304
2377
  readdir,
2305
2378
  readdirSync,
2306
2379
  readlinkSync,
2307
- realpathSync: realpathSync.native,
2380
+ realpathSync: vi,
2308
2381
  promises: {
2309
2382
  lstat,
2310
2383
  readdir: readdir$1,
@@ -2362,7 +2435,7 @@ while (this[Le](this[Ft]()) && this[C].length);
2362
2435
  }
2363
2436
  };
2364
2437
  ne = class extends ft {
2365
- constructor(t = 16 * 1024) {
2438
+ constructor(t = 16384) {
2366
2439
  super({
2367
2440
  maxSize: t,
2368
2441
  sizeCalculation: (e) => e.length + 1
@@ -2831,7 +2904,7 @@ while (this[Le](this[Ft]()) && this[C].length);
2831
2904
  #n;
2832
2905
  nocase;
2833
2906
  #r;
2834
- constructor(t = process.cwd(), e, s, { nocase: i, childrenCacheSize: r = 16 * 1024, fs: o = wt } = {}) {
2907
+ constructor(t = process.cwd(), e, s, { nocase: i, childrenCacheSize: r = 16384, fs: o = wt } = {}) {
2835
2908
  this.#r = Ue(o), (t instanceof URL || t.startsWith("file://")) && (t = fileURLToPath(t));
2836
2909
  let h = e.resolve(t);
2837
2910
  this.roots = Object.create(null), this.rootPath = this.parseRootPath(h), this.#t = new Wt(), this.#s = new Wt(), this.#n = new ne(r);
@@ -3742,7 +3815,7 @@ while (this[Le](this[Ft]()) && this[C].length);
3742
3815
  var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3743
3816
  module.exports = isexe;
3744
3817
  isexe.sync = sync;
3745
- var fs$4 = __require("fs");
3818
+ var fs$3 = __require("fs");
3746
3819
  function checkPathExt(path, options) {
3747
3820
  var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
3748
3821
  if (!pathext) return true;
@@ -3759,12 +3832,12 @@ var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3759
3832
  return checkPathExt(path, options);
3760
3833
  }
3761
3834
  function isexe(path, options, cb) {
3762
- fs$4.stat(path, function(er, stat) {
3835
+ fs$3.stat(path, function(er, stat) {
3763
3836
  cb(er, er ? false : checkStat(stat, path, options));
3764
3837
  });
3765
3838
  }
3766
3839
  function sync(path, options) {
3767
- return checkStat(fs$4.statSync(path), path, options);
3840
+ return checkStat(fs$3.statSync(path), path, options);
3768
3841
  }
3769
3842
  }));
3770
3843
  //#endregion
@@ -3772,14 +3845,14 @@ var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3772
3845
  var require_mode = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3773
3846
  module.exports = isexe;
3774
3847
  isexe.sync = sync;
3775
- var fs$3 = __require("fs");
3848
+ var fs$2 = __require("fs");
3776
3849
  function isexe(path, options, cb) {
3777
- fs$3.stat(path, function(er, stat) {
3850
+ fs$2.stat(path, function(er, stat) {
3778
3851
  cb(er, er ? false : checkStat(stat, options));
3779
3852
  });
3780
3853
  }
3781
3854
  function sync(path, options) {
3782
- return checkStat(fs$3.statSync(path), options);
3855
+ return checkStat(fs$2.statSync(path), options);
3783
3856
  }
3784
3857
  function checkStat(stat, options) {
3785
3858
  return stat.isFile() && checkMode(stat, options);
@@ -3843,13 +3916,14 @@ var require_isexe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3843
3916
  //#region ../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
3844
3917
  var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3845
3918
  const isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
3846
- const path$6 = __require("path");
3919
+ const path$4 = __require("path");
3847
3920
  const COLON = isWindows ? ";" : ":";
3848
3921
  const isexe = require_isexe();
3849
3922
  const getNotFoundError = (cmd) => Object.assign(/* @__PURE__ */ new Error(`not found: ${cmd}`), { code: "ENOENT" });
3850
3923
  const getPathInfo = (cmd, opt) => {
3851
3924
  const colon = opt.colon || COLON;
3852
- const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [...isWindows ? [process.cwd()] : [], ...(opt.path || process.env.PATH || "").split(colon)];
3925
+ const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [...isWindows ? [process.cwd()] : [], ...(opt.path || process.env.PATH ||
3926
+ /* istanbul ignore next: very unusual */ "").split(colon)];
3853
3927
  const pathExtExe = isWindows ? opt.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
3854
3928
  const pathExt = isWindows ? pathExtExe.split(colon) : [""];
3855
3929
  if (isWindows) {
@@ -3873,7 +3947,7 @@ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3873
3947
  if (i === pathEnv.length) return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
3874
3948
  const ppRaw = pathEnv[i];
3875
3949
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
3876
- const pCmd = path$6.join(pathPart, cmd);
3950
+ const pCmd = path$4.join(pathPart, cmd);
3877
3951
  const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
3878
3952
  resolve(subStep(p, i, 0));
3879
3953
  });
@@ -3895,7 +3969,7 @@ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3895
3969
  for (let i = 0; i < pathEnv.length; i++) {
3896
3970
  const ppRaw = pathEnv[i];
3897
3971
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
3898
- const pCmd = path$6.join(pathPart, cmd);
3972
+ const pCmd = path$4.join(pathPart, cmd);
3899
3973
  const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
3900
3974
  for (let j = 0; j < pathExt.length; j++) {
3901
3975
  const cur = p + pathExt[j];
@@ -3926,7 +4000,7 @@ var require_path_key = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3926
4000
  //#endregion
3927
4001
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
3928
4002
  var require_resolveCommand = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3929
- const path$5 = __require("path");
4003
+ const path$3 = __require("path");
3930
4004
  const which = require_which();
3931
4005
  const getPathKey = require_path_key();
3932
4006
  function resolveCommandAttempt(parsed, withoutPathExt) {
@@ -3941,12 +4015,12 @@ var require_resolveCommand = /* @__PURE__ */ __commonJSMin(((exports, module) =>
3941
4015
  try {
3942
4016
  resolved = which.sync(parsed.command, {
3943
4017
  path: env[getPathKey({ env })],
3944
- pathExt: withoutPathExt ? path$5.delimiter : void 0
4018
+ pathExt: withoutPathExt ? path$3.delimiter : void 0
3945
4019
  });
3946
4020
  } catch (e) {} finally {
3947
4021
  if (shouldSwitchCwd) process.chdir(cwd);
3948
4022
  }
3949
- if (resolved) resolved = path$5.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
4023
+ if (resolved) resolved = path$3.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
3950
4024
  return resolved;
3951
4025
  }
3952
4026
  function resolveCommand(parsed) {
@@ -3995,16 +4069,16 @@ var require_shebang_command = /* @__PURE__ */ __commonJSMin(((exports, module) =
3995
4069
  //#endregion
3996
4070
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
3997
4071
  var require_readShebang = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3998
- const fs$2 = __require("fs");
4072
+ const fs$1 = __require("fs");
3999
4073
  const shebangCommand = require_shebang_command();
4000
4074
  function readShebang(command) {
4001
4075
  const size = 150;
4002
4076
  const buffer = Buffer.alloc(size);
4003
4077
  let fd;
4004
4078
  try {
4005
- fd = fs$2.openSync(command, "r");
4006
- fs$2.readSync(fd, buffer, 0, size, 0);
4007
- fs$2.closeSync(fd);
4079
+ fd = fs$1.openSync(command, "r");
4080
+ fs$1.readSync(fd, buffer, 0, size, 0);
4081
+ fs$1.closeSync(fd);
4008
4082
  } catch (e) {}
4009
4083
  return shebangCommand(buffer.toString());
4010
4084
  }
@@ -4013,7 +4087,7 @@ var require_readShebang = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4013
4087
  //#endregion
4014
4088
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
4015
4089
  var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4016
- const path$4 = __require("path");
4090
+ const path$2 = __require("path");
4017
4091
  const resolveCommand = require_resolveCommand();
4018
4092
  const escape = require_escape();
4019
4093
  const readShebang = require_readShebang();
@@ -4036,7 +4110,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4036
4110
  const needsShell = !isExecutableRegExp.test(commandFile);
4037
4111
  if (parsed.options.forceShell || needsShell) {
4038
4112
  const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
4039
- parsed.command = path$4.normalize(parsed.command);
4113
+ parsed.command = path$2.normalize(parsed.command);
4040
4114
  parsed.command = escape.command(parsed.command);
4041
4115
  parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
4042
4116
  parsed.args = [
@@ -4251,1768 +4325,6 @@ function INIT_CWD() {
4251
4325
  return process.env.INIT_CWD ?? process.cwd();
4252
4326
  }
4253
4327
  //#endregion
4254
- //#region ../../node_modules/.pnpm/resolve-from@4.0.0/node_modules/resolve-from/index.js
4255
- var require_resolve_from = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4256
- const path$3 = __require("path");
4257
- const Module = __require("module");
4258
- const fs$1 = __require("fs");
4259
- const resolveFrom = (fromDir, moduleId, silent) => {
4260
- if (typeof fromDir !== "string") throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof fromDir}\``);
4261
- if (typeof moduleId !== "string") throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof moduleId}\``);
4262
- try {
4263
- fromDir = fs$1.realpathSync(fromDir);
4264
- } catch (err) {
4265
- if (err.code === "ENOENT") fromDir = path$3.resolve(fromDir);
4266
- else if (silent) return null;
4267
- else throw err;
4268
- }
4269
- const fromFile = path$3.join(fromDir, "noop.js");
4270
- const resolveFileName = () => Module._resolveFilename(moduleId, {
4271
- id: fromFile,
4272
- filename: fromFile,
4273
- paths: Module._nodeModulePaths(fromDir)
4274
- });
4275
- if (silent) try {
4276
- return resolveFileName();
4277
- } catch (err) {
4278
- return null;
4279
- }
4280
- return resolveFileName();
4281
- };
4282
- module.exports = (fromDir, moduleId) => resolveFrom(fromDir, moduleId);
4283
- module.exports.silent = (fromDir, moduleId) => resolveFrom(fromDir, moduleId, true);
4284
- }));
4285
- //#endregion
4286
- //#region ../../node_modules/.pnpm/callsites@3.1.0/node_modules/callsites/index.js
4287
- var require_callsites = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4288
- const callsites = () => {
4289
- const _prepareStackTrace = Error.prepareStackTrace;
4290
- Error.prepareStackTrace = (_, stack) => stack;
4291
- const stack = (/* @__PURE__ */ new Error()).stack.slice(1);
4292
- Error.prepareStackTrace = _prepareStackTrace;
4293
- return stack;
4294
- };
4295
- module.exports = callsites;
4296
- module.exports.default = callsites;
4297
- }));
4298
- //#endregion
4299
- //#region ../../node_modules/.pnpm/parent-module@1.0.1/node_modules/parent-module/index.js
4300
- var require_parent_module = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4301
- const callsites = require_callsites();
4302
- module.exports = (filepath) => {
4303
- const stacks = callsites();
4304
- if (!filepath) return stacks[2].getFileName();
4305
- let seenVal = false;
4306
- stacks.shift();
4307
- for (const stack of stacks) {
4308
- const parentFilepath = stack.getFileName();
4309
- if (typeof parentFilepath !== "string") continue;
4310
- if (parentFilepath === filepath) {
4311
- seenVal = true;
4312
- continue;
4313
- }
4314
- if (parentFilepath === "module.js") continue;
4315
- if (seenVal && parentFilepath !== filepath) return parentFilepath;
4316
- }
4317
- };
4318
- }));
4319
- //#endregion
4320
- //#region ../../node_modules/.pnpm/import-fresh@3.3.1/node_modules/import-fresh/index.js
4321
- var require_import_fresh = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4322
- const path$2 = __require("path");
4323
- const resolveFrom = require_resolve_from();
4324
- const parentModule = require_parent_module();
4325
- module.exports = (moduleId) => {
4326
- if (typeof moduleId !== "string") throw new TypeError("Expected a string");
4327
- const parentPath = parentModule(__filename);
4328
- const cwd = parentPath ? path$2.dirname(parentPath) : __dirname;
4329
- const filePath = resolveFrom(cwd, moduleId);
4330
- const oldModule = __require.cache[filePath];
4331
- if (oldModule && oldModule.parent) {
4332
- let i = oldModule.parent.children.length;
4333
- while (i--) if (oldModule.parent.children[i].id === filePath) oldModule.parent.children.splice(i, 1);
4334
- }
4335
- delete __require.cache[filePath];
4336
- const parent = __require.cache[parentPath];
4337
- return parent === void 0 || parent.require === void 0 ? __require(filePath) : parent.require(filePath);
4338
- };
4339
- }));
4340
- //#endregion
4341
- //#region ../../node_modules/.pnpm/is-arrayish@0.2.1/node_modules/is-arrayish/index.js
4342
- var require_is_arrayish = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4343
- module.exports = function isArrayish(obj) {
4344
- if (!obj) return false;
4345
- return obj instanceof Array || Array.isArray(obj) || obj.length >= 0 && obj.splice instanceof Function;
4346
- };
4347
- }));
4348
- //#endregion
4349
- //#region ../../node_modules/.pnpm/error-ex@1.3.4/node_modules/error-ex/index.js
4350
- var require_error_ex = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4351
- var util = __require("util");
4352
- var isArrayish = require_is_arrayish();
4353
- var errorEx = function errorEx(name, properties) {
4354
- if (!name || name.constructor !== String) {
4355
- properties = name || {};
4356
- name = Error.name;
4357
- }
4358
- var errorExError = function ErrorEXError(message) {
4359
- if (!this) return new ErrorEXError(message);
4360
- message = message instanceof Error ? message.message : message || this.message;
4361
- Error.call(this, message);
4362
- Error.captureStackTrace(this, errorExError);
4363
- this.name = name;
4364
- Object.defineProperty(this, "message", {
4365
- configurable: true,
4366
- enumerable: false,
4367
- get: function() {
4368
- var newMessage = message.split(/\r?\n/g);
4369
- for (var key in properties) {
4370
- if (!properties.hasOwnProperty(key)) continue;
4371
- var modifier = properties[key];
4372
- if ("message" in modifier) {
4373
- newMessage = modifier.message(this[key], newMessage) || newMessage;
4374
- if (!isArrayish(newMessage)) newMessage = [newMessage];
4375
- }
4376
- }
4377
- return newMessage.join("\n");
4378
- },
4379
- set: function(v) {
4380
- message = v;
4381
- }
4382
- });
4383
- var overwrittenStack = null;
4384
- var stackDescriptor = Object.getOwnPropertyDescriptor(this, "stack");
4385
- var stackGetter = stackDescriptor.get;
4386
- var stackValue = stackDescriptor.value;
4387
- delete stackDescriptor.value;
4388
- delete stackDescriptor.writable;
4389
- stackDescriptor.set = function(newstack) {
4390
- overwrittenStack = newstack;
4391
- };
4392
- stackDescriptor.get = function() {
4393
- var stack = (overwrittenStack || (stackGetter ? stackGetter.call(this) : stackValue)).split(/\r?\n+/g);
4394
- if (!overwrittenStack) stack[0] = this.name + ": " + this.message;
4395
- var lineCount = 1;
4396
- for (var key in properties) {
4397
- if (!properties.hasOwnProperty(key)) continue;
4398
- var modifier = properties[key];
4399
- if ("line" in modifier) {
4400
- var line = modifier.line(this[key]);
4401
- if (line) stack.splice(lineCount++, 0, " " + line);
4402
- }
4403
- if ("stack" in modifier) modifier.stack(this[key], stack);
4404
- }
4405
- return stack.join("\n");
4406
- };
4407
- Object.defineProperty(this, "stack", stackDescriptor);
4408
- };
4409
- if (Object.setPrototypeOf) {
4410
- Object.setPrototypeOf(errorExError.prototype, Error.prototype);
4411
- Object.setPrototypeOf(errorExError, Error);
4412
- } else util.inherits(errorExError, Error);
4413
- return errorExError;
4414
- };
4415
- errorEx.append = function(str, def) {
4416
- return { message: function(v, message) {
4417
- v = v || def;
4418
- if (v) message[0] += " " + str.replace("%s", v.toString());
4419
- return message;
4420
- } };
4421
- };
4422
- errorEx.line = function(str, def) {
4423
- return { line: function(v) {
4424
- v = v || def;
4425
- if (v) return str.replace("%s", v.toString());
4426
- return null;
4427
- } };
4428
- };
4429
- module.exports = errorEx;
4430
- }));
4431
- //#endregion
4432
- //#region ../../node_modules/.pnpm/json-parse-even-better-errors@2.3.1/node_modules/json-parse-even-better-errors/index.js
4433
- var require_json_parse_even_better_errors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4434
- const hexify = (char) => {
4435
- const h = char.charCodeAt(0).toString(16).toUpperCase();
4436
- return "0x" + (h.length % 2 ? "0" : "") + h;
4437
- };
4438
- const parseError = (e, txt, context) => {
4439
- if (!txt) return {
4440
- message: e.message + " while parsing empty string",
4441
- position: 0
4442
- };
4443
- const badToken = e.message.match(/^Unexpected token (.) .*position\s+(\d+)/i);
4444
- const errIdx = badToken ? +badToken[2] : e.message.match(/^Unexpected end of JSON.*/i) ? txt.length - 1 : null;
4445
- const msg = badToken ? e.message.replace(/^Unexpected token ./, `Unexpected token ${JSON.stringify(badToken[1])} (${hexify(badToken[1])})`) : e.message;
4446
- if (errIdx !== null && errIdx !== void 0) {
4447
- const start = errIdx <= context ? 0 : errIdx - context;
4448
- const end = errIdx + context >= txt.length ? txt.length : errIdx + context;
4449
- const slice = (start === 0 ? "" : "...") + txt.slice(start, end) + (end === txt.length ? "" : "...");
4450
- return {
4451
- message: msg + ` while parsing ${txt === slice ? "" : "near "}${JSON.stringify(slice)}`,
4452
- position: errIdx
4453
- };
4454
- } else return {
4455
- message: msg + ` while parsing '${txt.slice(0, context * 2)}'`,
4456
- position: 0
4457
- };
4458
- };
4459
- var JSONParseError = class extends SyntaxError {
4460
- constructor(er, txt, context, caller) {
4461
- context = context || 20;
4462
- const metadata = parseError(er, txt, context);
4463
- super(metadata.message);
4464
- Object.assign(this, metadata);
4465
- this.code = "EJSONPARSE";
4466
- this.systemError = er;
4467
- Error.captureStackTrace(this, caller || this.constructor);
4468
- }
4469
- get name() {
4470
- return this.constructor.name;
4471
- }
4472
- set name(n) {}
4473
- get [Symbol.toStringTag]() {
4474
- return this.constructor.name;
4475
- }
4476
- };
4477
- const kIndent = Symbol.for("indent");
4478
- const kNewline = Symbol.for("newline");
4479
- const formatRE = /^\s*[{\[]((?:\r?\n)+)([\s\t]*)/;
4480
- const emptyRE = /^(?:\{\}|\[\])((?:\r?\n)+)?$/;
4481
- const parseJson = (txt, reviver, context) => {
4482
- const parseText = stripBOM(txt);
4483
- context = context || 20;
4484
- try {
4485
- const [, newline = "\n", indent = " "] = parseText.match(emptyRE) || parseText.match(formatRE) || [
4486
- ,
4487
- "",
4488
- ""
4489
- ];
4490
- const result = JSON.parse(parseText, reviver);
4491
- if (result && typeof result === "object") {
4492
- result[kNewline] = newline;
4493
- result[kIndent] = indent;
4494
- }
4495
- return result;
4496
- } catch (e) {
4497
- if (typeof txt !== "string" && !Buffer.isBuffer(txt)) {
4498
- const isEmptyArray = Array.isArray(txt) && txt.length === 0;
4499
- throw Object.assign(/* @__PURE__ */ new TypeError(`Cannot parse ${isEmptyArray ? "an empty array" : String(txt)}`), {
4500
- code: "EJSONPARSE",
4501
- systemError: e
4502
- });
4503
- }
4504
- throw new JSONParseError(e, parseText, context, parseJson);
4505
- }
4506
- };
4507
- const stripBOM = (txt) => String(txt).replace(/^\uFEFF/, "");
4508
- module.exports = parseJson;
4509
- parseJson.JSONParseError = JSONParseError;
4510
- parseJson.noExceptions = (txt, reviver) => {
4511
- try {
4512
- return JSON.parse(stripBOM(txt), reviver);
4513
- } catch (e) {}
4514
- };
4515
- }));
4516
- //#endregion
4517
- //#region ../../node_modules/.pnpm/lines-and-columns@1.2.4/node_modules/lines-and-columns/build/index.js
4518
- var require_build = /* @__PURE__ */ __commonJSMin(((exports) => {
4519
- exports.__esModule = true;
4520
- exports.LinesAndColumns = void 0;
4521
- var LF = "\n";
4522
- var CR = "\r";
4523
- var LinesAndColumns = function() {
4524
- function LinesAndColumns(string) {
4525
- this.string = string;
4526
- var offsets = [0];
4527
- for (var offset = 0; offset < string.length;) switch (string[offset]) {
4528
- case LF:
4529
- offset += LF.length;
4530
- offsets.push(offset);
4531
- break;
4532
- case CR:
4533
- offset += CR.length;
4534
- if (string[offset] === LF) offset += LF.length;
4535
- offsets.push(offset);
4536
- break;
4537
- default:
4538
- offset++;
4539
- break;
4540
- }
4541
- this.offsets = offsets;
4542
- }
4543
- LinesAndColumns.prototype.locationForIndex = function(index) {
4544
- if (index < 0 || index > this.string.length) return null;
4545
- var line = 0;
4546
- var offsets = this.offsets;
4547
- while (offsets[line + 1] <= index) line++;
4548
- var column = index - offsets[line];
4549
- return {
4550
- line,
4551
- column
4552
- };
4553
- };
4554
- LinesAndColumns.prototype.indexForLocation = function(location) {
4555
- var line = location.line, column = location.column;
4556
- if (line < 0 || line >= this.offsets.length) return null;
4557
- if (column < 0 || column > this.lengthOfLine(line)) return null;
4558
- return this.offsets[line] + column;
4559
- };
4560
- LinesAndColumns.prototype.lengthOfLine = function(line) {
4561
- var offset = this.offsets[line];
4562
- return (line === this.offsets.length - 1 ? this.string.length : this.offsets[line + 1]) - offset;
4563
- };
4564
- return LinesAndColumns;
4565
- }();
4566
- exports.LinesAndColumns = LinesAndColumns;
4567
- exports["default"] = LinesAndColumns;
4568
- }));
4569
- //#endregion
4570
- //#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
4571
- var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4572
- let p = process || {};
4573
- let argv = p.argv || [];
4574
- let env = p.env || {};
4575
- let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
4576
- let formatter = (open, close, replace = open) => (input) => {
4577
- let string = "" + input, index = string.indexOf(close, open.length);
4578
- return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
4579
- };
4580
- let replaceClose = (string, close, replace, index) => {
4581
- let result = "", cursor = 0;
4582
- do {
4583
- result += string.substring(cursor, index) + replace;
4584
- cursor = index + close.length;
4585
- index = string.indexOf(close, cursor);
4586
- } while (~index);
4587
- return result + string.substring(cursor);
4588
- };
4589
- let createColors = (enabled = isColorSupported) => {
4590
- let f = enabled ? formatter : () => String;
4591
- return {
4592
- isColorSupported: enabled,
4593
- reset: f("\x1B[0m", "\x1B[0m"),
4594
- bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
4595
- dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
4596
- italic: f("\x1B[3m", "\x1B[23m"),
4597
- underline: f("\x1B[4m", "\x1B[24m"),
4598
- inverse: f("\x1B[7m", "\x1B[27m"),
4599
- hidden: f("\x1B[8m", "\x1B[28m"),
4600
- strikethrough: f("\x1B[9m", "\x1B[29m"),
4601
- black: f("\x1B[30m", "\x1B[39m"),
4602
- red: f("\x1B[31m", "\x1B[39m"),
4603
- green: f("\x1B[32m", "\x1B[39m"),
4604
- yellow: f("\x1B[33m", "\x1B[39m"),
4605
- blue: f("\x1B[34m", "\x1B[39m"),
4606
- magenta: f("\x1B[35m", "\x1B[39m"),
4607
- cyan: f("\x1B[36m", "\x1B[39m"),
4608
- white: f("\x1B[37m", "\x1B[39m"),
4609
- gray: f("\x1B[90m", "\x1B[39m"),
4610
- bgBlack: f("\x1B[40m", "\x1B[49m"),
4611
- bgRed: f("\x1B[41m", "\x1B[49m"),
4612
- bgGreen: f("\x1B[42m", "\x1B[49m"),
4613
- bgYellow: f("\x1B[43m", "\x1B[49m"),
4614
- bgBlue: f("\x1B[44m", "\x1B[49m"),
4615
- bgMagenta: f("\x1B[45m", "\x1B[49m"),
4616
- bgCyan: f("\x1B[46m", "\x1B[49m"),
4617
- bgWhite: f("\x1B[47m", "\x1B[49m"),
4618
- blackBright: f("\x1B[90m", "\x1B[39m"),
4619
- redBright: f("\x1B[91m", "\x1B[39m"),
4620
- greenBright: f("\x1B[92m", "\x1B[39m"),
4621
- yellowBright: f("\x1B[93m", "\x1B[39m"),
4622
- blueBright: f("\x1B[94m", "\x1B[39m"),
4623
- magentaBright: f("\x1B[95m", "\x1B[39m"),
4624
- cyanBright: f("\x1B[96m", "\x1B[39m"),
4625
- whiteBright: f("\x1B[97m", "\x1B[39m"),
4626
- bgBlackBright: f("\x1B[100m", "\x1B[49m"),
4627
- bgRedBright: f("\x1B[101m", "\x1B[49m"),
4628
- bgGreenBright: f("\x1B[102m", "\x1B[49m"),
4629
- bgYellowBright: f("\x1B[103m", "\x1B[49m"),
4630
- bgBlueBright: f("\x1B[104m", "\x1B[49m"),
4631
- bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
4632
- bgCyanBright: f("\x1B[106m", "\x1B[49m"),
4633
- bgWhiteBright: f("\x1B[107m", "\x1B[49m")
4634
- };
4635
- };
4636
- module.exports = createColors();
4637
- module.exports.createColors = createColors;
4638
- }));
4639
- //#endregion
4640
- //#region ../../node_modules/.pnpm/js-tokens@4.0.0/node_modules/js-tokens/index.js
4641
- var require_js_tokens = /* @__PURE__ */ __commonJSMin(((exports) => {
4642
- Object.defineProperty(exports, "__esModule", { value: true });
4643
- exports.default = /((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;
4644
- exports.matchToToken = function(match) {
4645
- var token = {
4646
- type: "invalid",
4647
- value: match[0],
4648
- closed: void 0
4649
- };
4650
- if (match[1]) token.type = "string", token.closed = !!(match[3] || match[4]);
4651
- else if (match[5]) token.type = "comment";
4652
- else if (match[6]) token.type = "comment", token.closed = !!match[7];
4653
- else if (match[8]) token.type = "regex";
4654
- else if (match[9]) token.type = "number";
4655
- else if (match[10]) token.type = "name";
4656
- else if (match[11]) token.type = "punctuator";
4657
- else if (match[12]) token.type = "whitespace";
4658
- return token;
4659
- };
4660
- }));
4661
- //#endregion
4662
- //#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/lib/identifier.js
4663
- var require_identifier = /* @__PURE__ */ __commonJSMin(((exports) => {
4664
- Object.defineProperty(exports, "__esModule", { value: true });
4665
- exports.isIdentifierChar = isIdentifierChar;
4666
- exports.isIdentifierName = isIdentifierName;
4667
- exports.isIdentifierStart = isIdentifierStart;
4668
- let nonASCIIidentifierStartChars = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";
4669
- let nonASCIIidentifierChars = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";
4670
- const nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
4671
- const nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
4672
- nonASCIIidentifierStartChars = nonASCIIidentifierChars = null;
4673
- const astralIdentifierStartCodes = [
4674
- 0,
4675
- 11,
4676
- 2,
4677
- 25,
4678
- 2,
4679
- 18,
4680
- 2,
4681
- 1,
4682
- 2,
4683
- 14,
4684
- 3,
4685
- 13,
4686
- 35,
4687
- 122,
4688
- 70,
4689
- 52,
4690
- 268,
4691
- 28,
4692
- 4,
4693
- 48,
4694
- 48,
4695
- 31,
4696
- 14,
4697
- 29,
4698
- 6,
4699
- 37,
4700
- 11,
4701
- 29,
4702
- 3,
4703
- 35,
4704
- 5,
4705
- 7,
4706
- 2,
4707
- 4,
4708
- 43,
4709
- 157,
4710
- 19,
4711
- 35,
4712
- 5,
4713
- 35,
4714
- 5,
4715
- 39,
4716
- 9,
4717
- 51,
4718
- 13,
4719
- 10,
4720
- 2,
4721
- 14,
4722
- 2,
4723
- 6,
4724
- 2,
4725
- 1,
4726
- 2,
4727
- 10,
4728
- 2,
4729
- 14,
4730
- 2,
4731
- 6,
4732
- 2,
4733
- 1,
4734
- 4,
4735
- 51,
4736
- 13,
4737
- 310,
4738
- 10,
4739
- 21,
4740
- 11,
4741
- 7,
4742
- 25,
4743
- 5,
4744
- 2,
4745
- 41,
4746
- 2,
4747
- 8,
4748
- 70,
4749
- 5,
4750
- 3,
4751
- 0,
4752
- 2,
4753
- 43,
4754
- 2,
4755
- 1,
4756
- 4,
4757
- 0,
4758
- 3,
4759
- 22,
4760
- 11,
4761
- 22,
4762
- 10,
4763
- 30,
4764
- 66,
4765
- 18,
4766
- 2,
4767
- 1,
4768
- 11,
4769
- 21,
4770
- 11,
4771
- 25,
4772
- 7,
4773
- 25,
4774
- 39,
4775
- 55,
4776
- 7,
4777
- 1,
4778
- 65,
4779
- 0,
4780
- 16,
4781
- 3,
4782
- 2,
4783
- 2,
4784
- 2,
4785
- 28,
4786
- 43,
4787
- 28,
4788
- 4,
4789
- 28,
4790
- 36,
4791
- 7,
4792
- 2,
4793
- 27,
4794
- 28,
4795
- 53,
4796
- 11,
4797
- 21,
4798
- 11,
4799
- 18,
4800
- 14,
4801
- 17,
4802
- 111,
4803
- 72,
4804
- 56,
4805
- 50,
4806
- 14,
4807
- 50,
4808
- 14,
4809
- 35,
4810
- 39,
4811
- 27,
4812
- 10,
4813
- 22,
4814
- 251,
4815
- 41,
4816
- 7,
4817
- 1,
4818
- 17,
4819
- 5,
4820
- 57,
4821
- 28,
4822
- 11,
4823
- 0,
4824
- 9,
4825
- 21,
4826
- 43,
4827
- 17,
4828
- 47,
4829
- 20,
4830
- 28,
4831
- 22,
4832
- 13,
4833
- 52,
4834
- 58,
4835
- 1,
4836
- 3,
4837
- 0,
4838
- 14,
4839
- 44,
4840
- 33,
4841
- 24,
4842
- 27,
4843
- 35,
4844
- 30,
4845
- 0,
4846
- 3,
4847
- 0,
4848
- 9,
4849
- 34,
4850
- 4,
4851
- 0,
4852
- 13,
4853
- 47,
4854
- 15,
4855
- 3,
4856
- 22,
4857
- 0,
4858
- 2,
4859
- 0,
4860
- 36,
4861
- 17,
4862
- 2,
4863
- 24,
4864
- 20,
4865
- 1,
4866
- 64,
4867
- 6,
4868
- 2,
4869
- 0,
4870
- 2,
4871
- 3,
4872
- 2,
4873
- 14,
4874
- 2,
4875
- 9,
4876
- 8,
4877
- 46,
4878
- 39,
4879
- 7,
4880
- 3,
4881
- 1,
4882
- 3,
4883
- 21,
4884
- 2,
4885
- 6,
4886
- 2,
4887
- 1,
4888
- 2,
4889
- 4,
4890
- 4,
4891
- 0,
4892
- 19,
4893
- 0,
4894
- 13,
4895
- 4,
4896
- 31,
4897
- 9,
4898
- 2,
4899
- 0,
4900
- 3,
4901
- 0,
4902
- 2,
4903
- 37,
4904
- 2,
4905
- 0,
4906
- 26,
4907
- 0,
4908
- 2,
4909
- 0,
4910
- 45,
4911
- 52,
4912
- 19,
4913
- 3,
4914
- 21,
4915
- 2,
4916
- 31,
4917
- 47,
4918
- 21,
4919
- 1,
4920
- 2,
4921
- 0,
4922
- 185,
4923
- 46,
4924
- 42,
4925
- 3,
4926
- 37,
4927
- 47,
4928
- 21,
4929
- 0,
4930
- 60,
4931
- 42,
4932
- 14,
4933
- 0,
4934
- 72,
4935
- 26,
4936
- 38,
4937
- 6,
4938
- 186,
4939
- 43,
4940
- 117,
4941
- 63,
4942
- 32,
4943
- 7,
4944
- 3,
4945
- 0,
4946
- 3,
4947
- 7,
4948
- 2,
4949
- 1,
4950
- 2,
4951
- 23,
4952
- 16,
4953
- 0,
4954
- 2,
4955
- 0,
4956
- 95,
4957
- 7,
4958
- 3,
4959
- 38,
4960
- 17,
4961
- 0,
4962
- 2,
4963
- 0,
4964
- 29,
4965
- 0,
4966
- 11,
4967
- 39,
4968
- 8,
4969
- 0,
4970
- 22,
4971
- 0,
4972
- 12,
4973
- 45,
4974
- 20,
4975
- 0,
4976
- 19,
4977
- 72,
4978
- 200,
4979
- 32,
4980
- 32,
4981
- 8,
4982
- 2,
4983
- 36,
4984
- 18,
4985
- 0,
4986
- 50,
4987
- 29,
4988
- 113,
4989
- 6,
4990
- 2,
4991
- 1,
4992
- 2,
4993
- 37,
4994
- 22,
4995
- 0,
4996
- 26,
4997
- 5,
4998
- 2,
4999
- 1,
5000
- 2,
5001
- 31,
5002
- 15,
5003
- 0,
5004
- 24,
5005
- 43,
5006
- 261,
5007
- 18,
5008
- 16,
5009
- 0,
5010
- 2,
5011
- 12,
5012
- 2,
5013
- 33,
5014
- 125,
5015
- 0,
5016
- 80,
5017
- 921,
5018
- 103,
5019
- 110,
5020
- 18,
5021
- 195,
5022
- 2637,
5023
- 96,
5024
- 16,
5025
- 1071,
5026
- 18,
5027
- 5,
5028
- 26,
5029
- 3994,
5030
- 6,
5031
- 582,
5032
- 6842,
5033
- 29,
5034
- 1763,
5035
- 568,
5036
- 8,
5037
- 30,
5038
- 18,
5039
- 78,
5040
- 18,
5041
- 29,
5042
- 19,
5043
- 47,
5044
- 17,
5045
- 3,
5046
- 32,
5047
- 20,
5048
- 6,
5049
- 18,
5050
- 433,
5051
- 44,
5052
- 212,
5053
- 63,
5054
- 33,
5055
- 24,
5056
- 3,
5057
- 24,
5058
- 45,
5059
- 74,
5060
- 6,
5061
- 0,
5062
- 67,
5063
- 12,
5064
- 65,
5065
- 1,
5066
- 2,
5067
- 0,
5068
- 15,
5069
- 4,
5070
- 10,
5071
- 7381,
5072
- 42,
5073
- 31,
5074
- 98,
5075
- 114,
5076
- 8702,
5077
- 3,
5078
- 2,
5079
- 6,
5080
- 2,
5081
- 1,
5082
- 2,
5083
- 290,
5084
- 16,
5085
- 0,
5086
- 30,
5087
- 2,
5088
- 3,
5089
- 0,
5090
- 15,
5091
- 3,
5092
- 9,
5093
- 395,
5094
- 2309,
5095
- 106,
5096
- 6,
5097
- 12,
5098
- 4,
5099
- 8,
5100
- 8,
5101
- 9,
5102
- 5991,
5103
- 84,
5104
- 2,
5105
- 70,
5106
- 2,
5107
- 1,
5108
- 3,
5109
- 0,
5110
- 3,
5111
- 1,
5112
- 3,
5113
- 3,
5114
- 2,
5115
- 11,
5116
- 2,
5117
- 0,
5118
- 2,
5119
- 6,
5120
- 2,
5121
- 64,
5122
- 2,
5123
- 3,
5124
- 3,
5125
- 7,
5126
- 2,
5127
- 6,
5128
- 2,
5129
- 27,
5130
- 2,
5131
- 3,
5132
- 2,
5133
- 4,
5134
- 2,
5135
- 0,
5136
- 4,
5137
- 6,
5138
- 2,
5139
- 339,
5140
- 3,
5141
- 24,
5142
- 2,
5143
- 24,
5144
- 2,
5145
- 30,
5146
- 2,
5147
- 24,
5148
- 2,
5149
- 30,
5150
- 2,
5151
- 24,
5152
- 2,
5153
- 30,
5154
- 2,
5155
- 24,
5156
- 2,
5157
- 30,
5158
- 2,
5159
- 24,
5160
- 2,
5161
- 7,
5162
- 1845,
5163
- 30,
5164
- 7,
5165
- 5,
5166
- 262,
5167
- 61,
5168
- 147,
5169
- 44,
5170
- 11,
5171
- 6,
5172
- 17,
5173
- 0,
5174
- 322,
5175
- 29,
5176
- 19,
5177
- 43,
5178
- 485,
5179
- 27,
5180
- 229,
5181
- 29,
5182
- 3,
5183
- 0,
5184
- 208,
5185
- 30,
5186
- 2,
5187
- 2,
5188
- 2,
5189
- 1,
5190
- 2,
5191
- 6,
5192
- 3,
5193
- 4,
5194
- 10,
5195
- 1,
5196
- 225,
5197
- 6,
5198
- 2,
5199
- 3,
5200
- 2,
5201
- 1,
5202
- 2,
5203
- 14,
5204
- 2,
5205
- 196,
5206
- 60,
5207
- 67,
5208
- 8,
5209
- 0,
5210
- 1205,
5211
- 3,
5212
- 2,
5213
- 26,
5214
- 2,
5215
- 1,
5216
- 2,
5217
- 0,
5218
- 3,
5219
- 0,
5220
- 2,
5221
- 9,
5222
- 2,
5223
- 3,
5224
- 2,
5225
- 0,
5226
- 2,
5227
- 0,
5228
- 7,
5229
- 0,
5230
- 5,
5231
- 0,
5232
- 2,
5233
- 0,
5234
- 2,
5235
- 0,
5236
- 2,
5237
- 2,
5238
- 2,
5239
- 1,
5240
- 2,
5241
- 0,
5242
- 3,
5243
- 0,
5244
- 2,
5245
- 0,
5246
- 2,
5247
- 0,
5248
- 2,
5249
- 0,
5250
- 2,
5251
- 0,
5252
- 2,
5253
- 1,
5254
- 2,
5255
- 0,
5256
- 3,
5257
- 3,
5258
- 2,
5259
- 6,
5260
- 2,
5261
- 3,
5262
- 2,
5263
- 3,
5264
- 2,
5265
- 0,
5266
- 2,
5267
- 9,
5268
- 2,
5269
- 16,
5270
- 6,
5271
- 2,
5272
- 2,
5273
- 4,
5274
- 2,
5275
- 16,
5276
- 4421,
5277
- 42719,
5278
- 33,
5279
- 4381,
5280
- 3,
5281
- 5773,
5282
- 3,
5283
- 7472,
5284
- 16,
5285
- 621,
5286
- 2467,
5287
- 541,
5288
- 1507,
5289
- 4938,
5290
- 6,
5291
- 8489
5292
- ];
5293
- const astralIdentifierCodes = [
5294
- 509,
5295
- 0,
5296
- 227,
5297
- 0,
5298
- 150,
5299
- 4,
5300
- 294,
5301
- 9,
5302
- 1368,
5303
- 2,
5304
- 2,
5305
- 1,
5306
- 6,
5307
- 3,
5308
- 41,
5309
- 2,
5310
- 5,
5311
- 0,
5312
- 166,
5313
- 1,
5314
- 574,
5315
- 3,
5316
- 9,
5317
- 9,
5318
- 7,
5319
- 9,
5320
- 32,
5321
- 4,
5322
- 318,
5323
- 1,
5324
- 78,
5325
- 5,
5326
- 71,
5327
- 10,
5328
- 50,
5329
- 3,
5330
- 123,
5331
- 2,
5332
- 54,
5333
- 14,
5334
- 32,
5335
- 10,
5336
- 3,
5337
- 1,
5338
- 11,
5339
- 3,
5340
- 46,
5341
- 10,
5342
- 8,
5343
- 0,
5344
- 46,
5345
- 9,
5346
- 7,
5347
- 2,
5348
- 37,
5349
- 13,
5350
- 2,
5351
- 9,
5352
- 6,
5353
- 1,
5354
- 45,
5355
- 0,
5356
- 13,
5357
- 2,
5358
- 49,
5359
- 13,
5360
- 9,
5361
- 3,
5362
- 2,
5363
- 11,
5364
- 83,
5365
- 11,
5366
- 7,
5367
- 0,
5368
- 3,
5369
- 0,
5370
- 158,
5371
- 11,
5372
- 6,
5373
- 9,
5374
- 7,
5375
- 3,
5376
- 56,
5377
- 1,
5378
- 2,
5379
- 6,
5380
- 3,
5381
- 1,
5382
- 3,
5383
- 2,
5384
- 10,
5385
- 0,
5386
- 11,
5387
- 1,
5388
- 3,
5389
- 6,
5390
- 4,
5391
- 4,
5392
- 68,
5393
- 8,
5394
- 2,
5395
- 0,
5396
- 3,
5397
- 0,
5398
- 2,
5399
- 3,
5400
- 2,
5401
- 4,
5402
- 2,
5403
- 0,
5404
- 15,
5405
- 1,
5406
- 83,
5407
- 17,
5408
- 10,
5409
- 9,
5410
- 5,
5411
- 0,
5412
- 82,
5413
- 19,
5414
- 13,
5415
- 9,
5416
- 214,
5417
- 6,
5418
- 3,
5419
- 8,
5420
- 28,
5421
- 1,
5422
- 83,
5423
- 16,
5424
- 16,
5425
- 9,
5426
- 82,
5427
- 12,
5428
- 9,
5429
- 9,
5430
- 7,
5431
- 19,
5432
- 58,
5433
- 14,
5434
- 5,
5435
- 9,
5436
- 243,
5437
- 14,
5438
- 166,
5439
- 9,
5440
- 71,
5441
- 5,
5442
- 2,
5443
- 1,
5444
- 3,
5445
- 3,
5446
- 2,
5447
- 0,
5448
- 2,
5449
- 1,
5450
- 13,
5451
- 9,
5452
- 120,
5453
- 6,
5454
- 3,
5455
- 6,
5456
- 4,
5457
- 0,
5458
- 29,
5459
- 9,
5460
- 41,
5461
- 6,
5462
- 2,
5463
- 3,
5464
- 9,
5465
- 0,
5466
- 10,
5467
- 10,
5468
- 47,
5469
- 15,
5470
- 199,
5471
- 7,
5472
- 137,
5473
- 9,
5474
- 54,
5475
- 7,
5476
- 2,
5477
- 7,
5478
- 17,
5479
- 9,
5480
- 57,
5481
- 21,
5482
- 2,
5483
- 13,
5484
- 123,
5485
- 5,
5486
- 4,
5487
- 0,
5488
- 2,
5489
- 1,
5490
- 2,
5491
- 6,
5492
- 2,
5493
- 0,
5494
- 9,
5495
- 9,
5496
- 49,
5497
- 4,
5498
- 2,
5499
- 1,
5500
- 2,
5501
- 4,
5502
- 9,
5503
- 9,
5504
- 55,
5505
- 9,
5506
- 266,
5507
- 3,
5508
- 10,
5509
- 1,
5510
- 2,
5511
- 0,
5512
- 49,
5513
- 6,
5514
- 4,
5515
- 4,
5516
- 14,
5517
- 10,
5518
- 5350,
5519
- 0,
5520
- 7,
5521
- 14,
5522
- 11465,
5523
- 27,
5524
- 2343,
5525
- 9,
5526
- 87,
5527
- 9,
5528
- 39,
5529
- 4,
5530
- 60,
5531
- 6,
5532
- 26,
5533
- 9,
5534
- 535,
5535
- 9,
5536
- 470,
5537
- 0,
5538
- 2,
5539
- 54,
5540
- 8,
5541
- 3,
5542
- 82,
5543
- 0,
5544
- 12,
5545
- 1,
5546
- 19628,
5547
- 1,
5548
- 4178,
5549
- 9,
5550
- 519,
5551
- 45,
5552
- 3,
5553
- 22,
5554
- 543,
5555
- 4,
5556
- 4,
5557
- 5,
5558
- 9,
5559
- 7,
5560
- 3,
5561
- 6,
5562
- 31,
5563
- 3,
5564
- 149,
5565
- 2,
5566
- 1418,
5567
- 49,
5568
- 513,
5569
- 54,
5570
- 5,
5571
- 49,
5572
- 9,
5573
- 0,
5574
- 15,
5575
- 0,
5576
- 23,
5577
- 4,
5578
- 2,
5579
- 14,
5580
- 1361,
5581
- 6,
5582
- 2,
5583
- 16,
5584
- 3,
5585
- 6,
5586
- 2,
5587
- 1,
5588
- 2,
5589
- 4,
5590
- 101,
5591
- 0,
5592
- 161,
5593
- 6,
5594
- 10,
5595
- 9,
5596
- 357,
5597
- 0,
5598
- 62,
5599
- 13,
5600
- 499,
5601
- 13,
5602
- 245,
5603
- 1,
5604
- 2,
5605
- 9,
5606
- 233,
5607
- 0,
5608
- 3,
5609
- 0,
5610
- 8,
5611
- 1,
5612
- 6,
5613
- 0,
5614
- 475,
5615
- 6,
5616
- 110,
5617
- 6,
5618
- 6,
5619
- 9,
5620
- 4759,
5621
- 9,
5622
- 787719,
5623
- 239
5624
- ];
5625
- function isInAstralSet(code, set) {
5626
- let pos = 65536;
5627
- for (let i = 0, length = set.length; i < length; i += 2) {
5628
- pos += set[i];
5629
- if (pos > code) return false;
5630
- pos += set[i + 1];
5631
- if (pos >= code) return true;
5632
- }
5633
- return false;
5634
- }
5635
- function isIdentifierStart(code) {
5636
- if (code < 65) return code === 36;
5637
- if (code <= 90) return true;
5638
- if (code < 97) return code === 95;
5639
- if (code <= 122) return true;
5640
- if (code <= 65535) return code >= 170 && nonASCIIidentifierStart.test(String.fromCharCode(code));
5641
- return isInAstralSet(code, astralIdentifierStartCodes);
5642
- }
5643
- function isIdentifierChar(code) {
5644
- if (code < 48) return code === 36;
5645
- if (code < 58) return true;
5646
- if (code < 65) return false;
5647
- if (code <= 90) return true;
5648
- if (code < 97) return code === 95;
5649
- if (code <= 122) return true;
5650
- if (code <= 65535) return code >= 170 && nonASCIIidentifier.test(String.fromCharCode(code));
5651
- return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes);
5652
- }
5653
- function isIdentifierName(name) {
5654
- let isFirst = true;
5655
- for (let i = 0; i < name.length; i++) {
5656
- let cp = name.charCodeAt(i);
5657
- if ((cp & 64512) === 55296 && i + 1 < name.length) {
5658
- const trail = name.charCodeAt(++i);
5659
- if ((trail & 64512) === 56320) cp = 65536 + ((cp & 1023) << 10) + (trail & 1023);
5660
- }
5661
- if (isFirst) {
5662
- isFirst = false;
5663
- if (!isIdentifierStart(cp)) return false;
5664
- } else if (!isIdentifierChar(cp)) return false;
5665
- }
5666
- return !isFirst;
5667
- }
5668
- }));
5669
- //#endregion
5670
- //#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/lib/keyword.js
5671
- var require_keyword = /* @__PURE__ */ __commonJSMin(((exports) => {
5672
- Object.defineProperty(exports, "__esModule", { value: true });
5673
- exports.isKeyword = isKeyword;
5674
- exports.isReservedWord = isReservedWord;
5675
- exports.isStrictBindOnlyReservedWord = isStrictBindOnlyReservedWord;
5676
- exports.isStrictBindReservedWord = isStrictBindReservedWord;
5677
- exports.isStrictReservedWord = isStrictReservedWord;
5678
- const reservedWords = {
5679
- keyword: [
5680
- "break",
5681
- "case",
5682
- "catch",
5683
- "continue",
5684
- "debugger",
5685
- "default",
5686
- "do",
5687
- "else",
5688
- "finally",
5689
- "for",
5690
- "function",
5691
- "if",
5692
- "return",
5693
- "switch",
5694
- "throw",
5695
- "try",
5696
- "var",
5697
- "const",
5698
- "while",
5699
- "with",
5700
- "new",
5701
- "this",
5702
- "super",
5703
- "class",
5704
- "extends",
5705
- "export",
5706
- "import",
5707
- "null",
5708
- "true",
5709
- "false",
5710
- "in",
5711
- "instanceof",
5712
- "typeof",
5713
- "void",
5714
- "delete"
5715
- ],
5716
- strict: [
5717
- "implements",
5718
- "interface",
5719
- "let",
5720
- "package",
5721
- "private",
5722
- "protected",
5723
- "public",
5724
- "static",
5725
- "yield"
5726
- ],
5727
- strictBind: ["eval", "arguments"]
5728
- };
5729
- const keywords = new Set(reservedWords.keyword);
5730
- const reservedWordsStrictSet = new Set(reservedWords.strict);
5731
- const reservedWordsStrictBindSet = new Set(reservedWords.strictBind);
5732
- function isReservedWord(word, inModule) {
5733
- return inModule && word === "await" || word === "enum";
5734
- }
5735
- function isStrictReservedWord(word, inModule) {
5736
- return isReservedWord(word, inModule) || reservedWordsStrictSet.has(word);
5737
- }
5738
- function isStrictBindOnlyReservedWord(word) {
5739
- return reservedWordsStrictBindSet.has(word);
5740
- }
5741
- function isStrictBindReservedWord(word, inModule) {
5742
- return isStrictReservedWord(word, inModule) || isStrictBindOnlyReservedWord(word);
5743
- }
5744
- function isKeyword(word) {
5745
- return keywords.has(word);
5746
- }
5747
- }));
5748
- //#endregion
5749
- //#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/lib/index.js
5750
- var require_lib$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
5751
- Object.defineProperty(exports, "__esModule", { value: true });
5752
- Object.defineProperty(exports, "isIdentifierChar", {
5753
- enumerable: true,
5754
- get: function() {
5755
- return _identifier.isIdentifierChar;
5756
- }
5757
- });
5758
- Object.defineProperty(exports, "isIdentifierName", {
5759
- enumerable: true,
5760
- get: function() {
5761
- return _identifier.isIdentifierName;
5762
- }
5763
- });
5764
- Object.defineProperty(exports, "isIdentifierStart", {
5765
- enumerable: true,
5766
- get: function() {
5767
- return _identifier.isIdentifierStart;
5768
- }
5769
- });
5770
- Object.defineProperty(exports, "isKeyword", {
5771
- enumerable: true,
5772
- get: function() {
5773
- return _keyword.isKeyword;
5774
- }
5775
- });
5776
- Object.defineProperty(exports, "isReservedWord", {
5777
- enumerable: true,
5778
- get: function() {
5779
- return _keyword.isReservedWord;
5780
- }
5781
- });
5782
- Object.defineProperty(exports, "isStrictBindOnlyReservedWord", {
5783
- enumerable: true,
5784
- get: function() {
5785
- return _keyword.isStrictBindOnlyReservedWord;
5786
- }
5787
- });
5788
- Object.defineProperty(exports, "isStrictBindReservedWord", {
5789
- enumerable: true,
5790
- get: function() {
5791
- return _keyword.isStrictBindReservedWord;
5792
- }
5793
- });
5794
- Object.defineProperty(exports, "isStrictReservedWord", {
5795
- enumerable: true,
5796
- get: function() {
5797
- return _keyword.isStrictReservedWord;
5798
- }
5799
- });
5800
- var _identifier = require_identifier();
5801
- var _keyword = require_keyword();
5802
- }));
5803
- //#endregion
5804
- //#region ../../node_modules/.pnpm/@babel+code-frame@7.29.7/node_modules/@babel/code-frame/lib/index.js
5805
- var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
5806
- Object.defineProperty(exports, "__esModule", { value: true });
5807
- var picocolors = require_picocolors();
5808
- var jsTokens = require_js_tokens();
5809
- var helperValidatorIdentifier = require_lib$1();
5810
- function isColorSupported() {
5811
- return typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? false : picocolors.isColorSupported;
5812
- }
5813
- const compose = (f, g) => (v) => f(g(v));
5814
- function buildDefs(colors) {
5815
- return {
5816
- keyword: colors.cyan,
5817
- capitalized: colors.yellow,
5818
- jsxIdentifier: colors.yellow,
5819
- punctuator: colors.yellow,
5820
- number: colors.magenta,
5821
- string: colors.green,
5822
- regex: colors.magenta,
5823
- comment: colors.gray,
5824
- invalid: compose(compose(colors.white, colors.bgRed), colors.bold),
5825
- gutter: colors.gray,
5826
- marker: compose(colors.red, colors.bold),
5827
- message: compose(colors.red, colors.bold),
5828
- reset: colors.reset
5829
- };
5830
- }
5831
- const defsOn = buildDefs(picocolors.createColors(true));
5832
- const defsOff = buildDefs(picocolors.createColors(false));
5833
- function getDefs(enabled) {
5834
- return enabled ? defsOn : defsOff;
5835
- }
5836
- const sometimesKeywords = /* @__PURE__ */ new Set([
5837
- "as",
5838
- "async",
5839
- "from",
5840
- "get",
5841
- "of",
5842
- "set"
5843
- ]);
5844
- const NEWLINE$1 = /\r\n|[\n\r\u2028\u2029]/;
5845
- const BRACKET = /^[()[\]{}]$/;
5846
- let tokenize;
5847
- const JSX_TAG = /^[a-z][\w-]*$/i;
5848
- const getTokenType = function(token, offset, text) {
5849
- if (token.type === "name") {
5850
- const tokenValue = token.value;
5851
- if (helperValidatorIdentifier.isKeyword(tokenValue) || helperValidatorIdentifier.isStrictReservedWord(tokenValue, true) || sometimesKeywords.has(tokenValue)) return "keyword";
5852
- if (JSX_TAG.test(tokenValue) && (text[offset - 1] === "<" || text.slice(offset - 2, offset) === "</")) return "jsxIdentifier";
5853
- const firstChar = String.fromCodePoint(tokenValue.codePointAt(0));
5854
- if (firstChar !== firstChar.toLowerCase()) return "capitalized";
5855
- }
5856
- if (token.type === "punctuator" && BRACKET.test(token.value)) return "bracket";
5857
- if (token.type === "invalid" && (token.value === "@" || token.value === "#")) return "punctuator";
5858
- return token.type;
5859
- };
5860
- tokenize = function* (text) {
5861
- let match;
5862
- while (match = jsTokens.default.exec(text)) {
5863
- const token = jsTokens.matchToToken(match);
5864
- yield {
5865
- type: getTokenType(token, match.index, text),
5866
- value: token.value
5867
- };
5868
- }
5869
- };
5870
- function highlight(text) {
5871
- if (text === "") return "";
5872
- const defs = getDefs(true);
5873
- let highlighted = "";
5874
- for (const { type, value } of tokenize(text)) if (type in defs) highlighted += value.split(NEWLINE$1).map((str) => defs[type](str)).join("\n");
5875
- else highlighted += value;
5876
- return highlighted;
5877
- }
5878
- let deprecationWarningShown = false;
5879
- const NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
5880
- function getMarkerLines(loc, source, opts, startLineBaseZero) {
5881
- const startLoc = Object.assign({
5882
- column: 0,
5883
- line: -1
5884
- }, loc.start);
5885
- const endLoc = Object.assign({}, startLoc, loc.end);
5886
- const { linesAbove = 2, linesBelow = 3 } = opts || {};
5887
- const startLine = startLoc.line - startLineBaseZero;
5888
- const startColumn = startLoc.column;
5889
- const endLine = endLoc.line - startLineBaseZero;
5890
- const endColumn = endLoc.column;
5891
- let start = Math.max(startLine - (linesAbove + 1), 0);
5892
- let end = Math.min(source.length, endLine + linesBelow);
5893
- if (startLine === -1) start = 0;
5894
- if (endLine === -1) end = source.length;
5895
- const lineDiff = endLine - startLine;
5896
- const markerLines = {};
5897
- if (lineDiff) for (let i = 0; i <= lineDiff; i++) {
5898
- const lineNumber = i + startLine;
5899
- if (!startColumn) markerLines[lineNumber] = true;
5900
- else if (i === 0) markerLines[lineNumber] = [startColumn, source[lineNumber - 1].length - startColumn + 1];
5901
- else if (i === lineDiff) markerLines[lineNumber] = [0, endColumn];
5902
- else markerLines[lineNumber] = [0, source[lineNumber - i].length];
5903
- }
5904
- else if (startColumn === endColumn) if (startColumn) markerLines[startLine] = [startColumn, 0];
5905
- else markerLines[startLine] = true;
5906
- else markerLines[startLine] = [startColumn, endColumn - startColumn];
5907
- return {
5908
- start,
5909
- end,
5910
- markerLines
5911
- };
5912
- }
5913
- function codeFrameColumns(rawLines, loc, opts = {}) {
5914
- const shouldHighlight = opts.forceColor || isColorSupported() && opts.highlightCode;
5915
- const startLineBaseZero = (opts.startLine || 1) - 1;
5916
- const defs = getDefs(shouldHighlight);
5917
- const { start, end, markerLines } = getMarkerLines(loc, rawLines.split(NEWLINE), opts, startLineBaseZero);
5918
- const hasColumns = loc.start && typeof loc.start.column === "number";
5919
- const numberMaxWidth = String(end + startLineBaseZero).length;
5920
- let frame = (shouldHighlight ? highlight(rawLines) : rawLines).split(NEWLINE, end).slice(start, end).map((line, index) => {
5921
- const number = start + 1 + index;
5922
- const gutter = ` ${` ${number + startLineBaseZero}`.slice(-numberMaxWidth)} |`;
5923
- const hasMarker = markerLines[number];
5924
- const lastMarkerLine = !markerLines[number + 1];
5925
- if (hasMarker) {
5926
- let markerLine = "";
5927
- if (Array.isArray(hasMarker)) {
5928
- const markerSpacing = line.slice(0, Math.max(hasMarker[0] - 1, 0)).replace(/[^\t]/g, " ");
5929
- const numberOfMarkers = hasMarker[1] || 1;
5930
- markerLine = [
5931
- "\n ",
5932
- defs.gutter(gutter.replace(/\d/g, " ")),
5933
- " ",
5934
- markerSpacing,
5935
- defs.marker("^").repeat(numberOfMarkers)
5936
- ].join("");
5937
- if (lastMarkerLine && opts.message) markerLine += " " + defs.message(opts.message);
5938
- }
5939
- return [
5940
- defs.marker(">"),
5941
- defs.gutter(gutter),
5942
- line.length > 0 ? ` ${line}` : "",
5943
- markerLine
5944
- ].join("");
5945
- } else return ` ${defs.gutter(gutter)}${line.length > 0 ? ` ${line}` : ""}`;
5946
- }).join("\n");
5947
- if (opts.message && !hasColumns) frame = `${" ".repeat(numberMaxWidth + 1)}${opts.message}\n${frame}`;
5948
- if (shouldHighlight) return defs.reset(frame);
5949
- else return frame;
5950
- }
5951
- function index(rawLines, lineNumber, colNumber, opts = {}) {
5952
- if (!deprecationWarningShown) {
5953
- deprecationWarningShown = true;
5954
- const message = "Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";
5955
- if (process.emitWarning) process.emitWarning(message, "DeprecationWarning");
5956
- else {
5957
- const deprecationError = /* @__PURE__ */ new Error(message);
5958
- deprecationError.name = "DeprecationWarning";
5959
- console.warn(/* @__PURE__ */ new Error(message));
5960
- }
5961
- }
5962
- colNumber = Math.max(colNumber, 0);
5963
- return codeFrameColumns(rawLines, { start: {
5964
- column: colNumber,
5965
- line: lineNumber
5966
- } }, opts);
5967
- }
5968
- exports.codeFrameColumns = codeFrameColumns;
5969
- exports.default = index;
5970
- exports.highlight = highlight;
5971
- }));
5972
- //#endregion
5973
- //#region ../../node_modules/.pnpm/parse-json@5.2.0/node_modules/parse-json/index.js
5974
- var require_parse_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5975
- const errorEx = require_error_ex();
5976
- const fallback = require_json_parse_even_better_errors();
5977
- const { default: LinesAndColumns } = require_build();
5978
- const { codeFrameColumns } = require_lib();
5979
- const JSONError = errorEx("JSONError", {
5980
- fileName: errorEx.append("in %s"),
5981
- codeFrame: errorEx.append("\n\n%s\n")
5982
- });
5983
- const parseJson = (string, reviver, filename) => {
5984
- if (typeof reviver === "string") {
5985
- filename = reviver;
5986
- reviver = null;
5987
- }
5988
- try {
5989
- try {
5990
- return JSON.parse(string, reviver);
5991
- } catch (error) {
5992
- fallback(string, reviver);
5993
- throw error;
5994
- }
5995
- } catch (error) {
5996
- error.message = error.message.replace(/\n/g, "");
5997
- const indexMatch = error.message.match(/in JSON at position (\d+) while parsing/);
5998
- const jsonError = new JSONError(error);
5999
- if (filename) jsonError.fileName = filename;
6000
- if (indexMatch && indexMatch.length > 0) {
6001
- const lines = new LinesAndColumns(string);
6002
- const index = Number(indexMatch[1]);
6003
- const location = lines.locationForIndex(index);
6004
- jsonError.codeFrame = codeFrameColumns(string, { start: {
6005
- line: location.line + 1,
6006
- column: location.column + 1
6007
- } }, { highlightCode: true });
6008
- }
6009
- throw jsonError;
6010
- }
6011
- };
6012
- parseJson.JSONError = JSONError;
6013
- module.exports = parseJson;
6014
- }));
6015
- //#endregion
6016
4328
  //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/common.js
6017
4329
  var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6018
4330
  function isNothing(subject) {
@@ -8360,22 +6672,15 @@ var require_js_yaml = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8360
6672
  module.exports.safeDump = renamed("safeDump", "dump");
8361
6673
  }));
8362
6674
  //#endregion
8363
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/loaders.js
6675
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/loaders.js
8364
6676
  var require_loaders = /* @__PURE__ */ __commonJSMin(((exports) => {
8365
- var __importDefault = exports && exports.__importDefault || function(mod) {
8366
- return mod && mod.__esModule ? mod : { "default": mod };
8367
- };
8368
6677
  Object.defineProperty(exports, "__esModule", { value: true });
8369
- exports.loadTs = exports.loadTsSync = exports.loadYaml = exports.loadJson = exports.loadJs = exports.loadJsSync = void 0;
8370
- const fs_1$2 = __require("fs");
6678
+ exports.loadYaml = exports.loadJson = exports.loadJs = exports.loadJsSync = void 0;
8371
6679
  const promises_1$1 = __require("fs/promises");
8372
- const path_1$3 = __importDefault(__require("path"));
8373
6680
  const url_1 = __require("url");
8374
- const crypto_1 = __require("crypto");
8375
- let importFresh;
8376
6681
  exports.loadJsSync = function loadJsSync(filepath) {
8377
- if (importFresh === void 0) importFresh = require_import_fresh();
8378
- return importFresh(filepath);
6682
+ delete __require.cache[__require.resolve(filepath)];
6683
+ return __require(filepath);
8379
6684
  };
8380
6685
  exports.loadJs = async function loadJs(filepath) {
8381
6686
  try {
@@ -8391,11 +6696,9 @@ var require_loaders = /* @__PURE__ */ __commonJSMin(((exports) => {
8391
6696
  }
8392
6697
  }
8393
6698
  };
8394
- let parseJson;
8395
6699
  exports.loadJson = function loadJson(filepath, content) {
8396
- if (parseJson === void 0) parseJson = require_parse_json();
8397
6700
  try {
8398
- return parseJson(content);
6701
+ return JSON.parse(content);
8399
6702
  } catch (error) {
8400
6703
  error.message = `JSON Error in ${filepath}:\n${error.message}`;
8401
6704
  throw error;
@@ -8411,73 +6714,12 @@ var require_loaders = /* @__PURE__ */ __commonJSMin(((exports) => {
8411
6714
  throw error;
8412
6715
  }
8413
6716
  };
8414
- let typescript;
8415
- exports.loadTsSync = function loadTsSync(filepath, content) {
8416
- /* istanbul ignore next -- @preserve */
8417
- if (typescript === void 0) typescript = __require("typescript");
8418
- const compiledFilepath = `${filepath}.${(0, crypto_1.randomUUID)()}.cjs`;
8419
- try {
8420
- const config = resolveTsConfig(path_1$3.default.dirname(filepath)) ?? {};
8421
- config.compilerOptions = {
8422
- ...config.compilerOptions,
8423
- module: typescript.ModuleKind.NodeNext,
8424
- moduleResolution: typescript.ModuleResolutionKind.NodeNext,
8425
- target: typescript.ScriptTarget.ES2022,
8426
- noEmit: false
8427
- };
8428
- content = typescript.transpileModule(content, config).outputText;
8429
- (0, fs_1$2.writeFileSync)(compiledFilepath, content);
8430
- return (0, exports.loadJsSync)(compiledFilepath, content).default;
8431
- } catch (error) {
8432
- error.message = `TypeScript Error in ${filepath}:\n${error.message}`;
8433
- throw error;
8434
- } finally {
8435
- if ((0, fs_1$2.existsSync)(compiledFilepath)) (0, fs_1$2.rmSync)(compiledFilepath);
8436
- }
8437
- };
8438
- exports.loadTs = async function loadTs(filepath, content) {
8439
- if (typescript === void 0) typescript = (await import("typescript")).default;
8440
- const compiledFilepath = `${filepath}.${(0, crypto_1.randomUUID)()}.mjs`;
8441
- let transpiledContent;
8442
- try {
8443
- try {
8444
- const config = resolveTsConfig(path_1$3.default.dirname(filepath)) ?? {};
8445
- config.compilerOptions = {
8446
- ...config.compilerOptions,
8447
- module: typescript.ModuleKind.ES2022,
8448
- moduleResolution: typescript.ModuleResolutionKind.Bundler,
8449
- target: typescript.ScriptTarget.ES2022,
8450
- noEmit: false
8451
- };
8452
- transpiledContent = typescript.transpileModule(content, config).outputText;
8453
- await (0, promises_1$1.writeFile)(compiledFilepath, transpiledContent);
8454
- } catch (error) {
8455
- error.message = `TypeScript Error in ${filepath}:\n${error.message}`;
8456
- throw error;
8457
- }
8458
- return await (0, exports.loadJs)(compiledFilepath, transpiledContent);
8459
- } finally {
8460
- if ((0, fs_1$2.existsSync)(compiledFilepath)) await (0, promises_1$1.rm)(compiledFilepath);
8461
- }
8462
- };
8463
- function resolveTsConfig(directory) {
8464
- const filePath = typescript.findConfigFile(directory, (fileName) => {
8465
- return typescript.sys.fileExists(fileName);
8466
- });
8467
- if (filePath !== void 0) {
8468
- const { config, error } = typescript.readConfigFile(filePath, (path) => typescript.sys.readFile(path));
8469
- if (error) throw new Error(`Error in ${filePath}: ${error.messageText.toString()}`);
8470
- return config;
8471
- }
8472
- }
8473
6717
  }));
8474
6718
  //#endregion
8475
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/defaults.js
6719
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/defaults.js
8476
6720
  var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
8477
6721
  Object.defineProperty(exports, "__esModule", { value: true });
8478
- exports.defaultLoadersSync = exports.defaultLoaders = exports.metaSearchPlaces = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = void 0;
8479
- exports.getDefaultSearchPlaces = getDefaultSearchPlaces;
8480
- exports.getDefaultSearchPlacesSync = getDefaultSearchPlacesSync;
6722
+ exports.defaultLoadersSync = exports.defaultLoaders = exports.metaSearchPlaces = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = void 0;
8481
6723
  const loaders_1 = require_loaders();
8482
6724
  function getDefaultSearchPlaces(moduleName) {
8483
6725
  return [
@@ -8504,6 +6746,7 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
8504
6746
  `${moduleName}.config.mjs`
8505
6747
  ];
8506
6748
  }
6749
+ exports.getDefaultSearchPlaces = getDefaultSearchPlaces;
8507
6750
  function getDefaultSearchPlacesSync(moduleName) {
8508
6751
  return [
8509
6752
  "package.json",
@@ -8526,6 +6769,7 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
8526
6769
  `${moduleName}.config.cjs`
8527
6770
  ];
8528
6771
  }
6772
+ exports.getDefaultSearchPlacesSync = getDefaultSearchPlacesSync;
8529
6773
  exports.globalConfigSearchPlaces = [
8530
6774
  "config",
8531
6775
  "config.json",
@@ -8560,7 +6804,9 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
8560
6804
  ".mjs": loaders_1.loadJs,
8561
6805
  ".cjs": loaders_1.loadJs,
8562
6806
  ".js": loaders_1.loadJs,
8563
- ".ts": loaders_1.loadTs,
6807
+ ".ts": loaders_1.loadJs,
6808
+ ".cts": loaders_1.loadJs,
6809
+ ".mts": loaders_1.loadJs,
8564
6810
  ".json": loaders_1.loadJson,
8565
6811
  ".yaml": loaders_1.loadYaml,
8566
6812
  ".yml": loaders_1.loadYaml,
@@ -8569,7 +6815,8 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
8569
6815
  exports.defaultLoadersSync = Object.freeze({
8570
6816
  ".cjs": loaders_1.loadJsSync,
8571
6817
  ".js": loaders_1.loadJsSync,
8572
- ".ts": loaders_1.loadTsSync,
6818
+ ".cts": loaders_1.loadJsSync,
6819
+ ".ts": loaders_1.loadJsSync,
8573
6820
  ".json": loaders_1.loadJson,
8574
6821
  ".yaml": loaders_1.loadYaml,
8575
6822
  ".yml": loaders_1.loadYaml,
@@ -8627,7 +6874,7 @@ var require_env_paths = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8627
6874
  module.exports.default = envPaths;
8628
6875
  }));
8629
6876
  //#endregion
8630
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/util.js
6877
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/util.js
8631
6878
  var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
8632
6879
  var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
8633
6880
  if (k2 === void 0) k2 = k;
@@ -8651,31 +6898,17 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
8651
6898
  }) : function(o, v) {
8652
6899
  o["default"] = v;
8653
6900
  });
8654
- var __importStar = exports && exports.__importStar || (function() {
8655
- var ownKeys = function(o) {
8656
- ownKeys = Object.getOwnPropertyNames || function(o) {
8657
- var ar = [];
8658
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
8659
- return ar;
8660
- };
8661
- return ownKeys(o);
8662
- };
8663
- return function(mod) {
8664
- if (mod && mod.__esModule) return mod;
8665
- var result = {};
8666
- if (mod != null) {
8667
- for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
8668
- }
8669
- __setModuleDefault(result, mod);
8670
- return result;
8671
- };
8672
- })();
6901
+ var __importStar = exports && exports.__importStar || function(mod) {
6902
+ if (mod && mod.__esModule) return mod;
6903
+ var result = {};
6904
+ if (mod != null) {
6905
+ for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
6906
+ }
6907
+ __setModuleDefault(result, mod);
6908
+ return result;
6909
+ };
8673
6910
  Object.defineProperty(exports, "__esModule", { value: true });
8674
- exports.emplace = emplace;
8675
- exports.getPropertyByPath = getPropertyByPath;
8676
- exports.removeUndefinedValuesFromObject = removeUndefinedValuesFromObject;
8677
- exports.isDirectory = isDirectory;
8678
- exports.isDirectorySync = isDirectorySync;
6911
+ exports.isDirectorySync = exports.isDirectory = exports.removeUndefinedValuesFromObject = exports.decodeFileContent = exports.getPropertyByPath = exports.emplace = void 0;
8679
6912
  const fs_1$1 = __importStar(__require("fs"));
8680
6913
  /**
8681
6914
  * @internal
@@ -8687,6 +6920,7 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
8687
6920
  map.set(key, result);
8688
6921
  return result;
8689
6922
  }
6923
+ exports.emplace = emplace;
8690
6924
  /**
8691
6925
  * @internal
8692
6926
  */
@@ -8697,10 +6931,19 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
8697
6931
  return previous[key];
8698
6932
  }, source);
8699
6933
  }
6934
+ exports.getPropertyByPath = getPropertyByPath;
6935
+ /** @internal */
6936
+ function decodeFileContent(buffer) {
6937
+ if (buffer[0] === 255 && buffer[1] === 254) return new TextDecoder("utf-16le").decode(buffer);
6938
+ if (buffer[0] === 254 && buffer[1] === 255) return new TextDecoder("utf-16be").decode(buffer);
6939
+ return buffer.toString("utf-8");
6940
+ }
6941
+ exports.decodeFileContent = decodeFileContent;
8700
6942
  /** @internal */
8701
6943
  function removeUndefinedValuesFromObject(options) {
8702
6944
  return Object.fromEntries(Object.entries(options).filter(([, value]) => value !== void 0));
8703
6945
  }
6946
+ exports.removeUndefinedValuesFromObject = removeUndefinedValuesFromObject;
8704
6947
  /** @internal */
8705
6948
  /* istanbul ignore next -- @preserve */
8706
6949
  async function isDirectory(path) {
@@ -8711,6 +6954,7 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
8711
6954
  throw e;
8712
6955
  }
8713
6956
  }
6957
+ exports.isDirectory = isDirectory;
8714
6958
  /** @internal */
8715
6959
  /* istanbul ignore next -- @preserve */
8716
6960
  function isDirectorySync(path) {
@@ -8721,16 +6965,16 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
8721
6965
  throw e;
8722
6966
  }
8723
6967
  }
6968
+ exports.isDirectorySync = isDirectorySync;
8724
6969
  }));
8725
6970
  //#endregion
8726
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/ExplorerBase.js
6971
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/ExplorerBase.js
8727
6972
  var require_ExplorerBase = /* @__PURE__ */ __commonJSMin(((exports) => {
8728
6973
  var __importDefault = exports && exports.__importDefault || function(mod) {
8729
6974
  return mod && mod.__esModule ? mod : { "default": mod };
8730
6975
  };
8731
6976
  Object.defineProperty(exports, "__esModule", { value: true });
8732
- exports.ExplorerBase = void 0;
8733
- exports.getExtensionDescription = getExtensionDescription;
6977
+ exports.getExtensionDescription = exports.ExplorerBase = void 0;
8734
6978
  const env_paths_1 = __importDefault(require_env_paths());
8735
6979
  const os_1 = __importDefault(__require("os"));
8736
6980
  const path_1$2 = __importDefault(__require("path"));
@@ -8842,13 +7086,13 @@ ${[...importStack, fullPath].map((path, i) => `${i + 1}. ${path}`).join("\n")} (
8842
7086
  /* istanbul ignore next -- @preserve */
8843
7087
  return extension ? `extension "${extension}"` : "files without extensions";
8844
7088
  }
7089
+ exports.getExtensionDescription = getExtensionDescription;
8845
7090
  }));
8846
7091
  //#endregion
8847
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/merge.js
7092
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/merge.js
8848
7093
  var require_merge = /* @__PURE__ */ __commonJSMin(((exports) => {
8849
7094
  Object.defineProperty(exports, "__esModule", { value: true });
8850
- exports.hasOwn = void 0;
8851
- exports.mergeAll = mergeAll;
7095
+ exports.mergeAll = exports.hasOwn = void 0;
8852
7096
  exports.hasOwn = Function.prototype.call.bind(Object.prototype.hasOwnProperty);
8853
7097
  const objToString = Function.prototype.call.bind(Object.prototype.toString);
8854
7098
  function isPlainObject(obj) {
@@ -8880,9 +7124,10 @@ var require_merge = /* @__PURE__ */ __commonJSMin(((exports) => {
8880
7124
  function mergeAll(objects, options) {
8881
7125
  return objects.reduce((target, source) => merge(target, source, options), {});
8882
7126
  }
7127
+ exports.mergeAll = mergeAll;
8883
7128
  }));
8884
7129
  //#endregion
8885
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/Explorer.js
7130
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/Explorer.js
8886
7131
  var require_Explorer = /* @__PURE__ */ __commonJSMin(((exports) => {
8887
7132
  var __importDefault = exports && exports.__importDefault || function(mod) {
8888
7133
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -8941,7 +7186,7 @@ var require_Explorer = /* @__PURE__ */ __commonJSMin(((exports) => {
8941
7186
  return await search();
8942
7187
  }
8943
7188
  async #readConfiguration(filepath, importStack = []) {
8944
- const contents = await promises_1.default.readFile(filepath, { encoding: "utf-8" });
7189
+ const contents = (0, util_js_1.decodeFileContent)(await promises_1.default.readFile(filepath));
8945
7190
  return this.toCosmiconfigResult(filepath, await this.#loadConfigFileWithImports(filepath, contents, importStack));
8946
7191
  }
8947
7192
  async #loadConfigFileWithImports(filepath, contents, importStack) {
@@ -9017,7 +7262,7 @@ var require_Explorer = /* @__PURE__ */ __commonJSMin(((exports) => {
9017
7262
  exports.Explorer = Explorer;
9018
7263
  }));
9019
7264
  //#endregion
9020
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/ExplorerSync.js
7265
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/ExplorerSync.js
9021
7266
  var require_ExplorerSync = /* @__PURE__ */ __commonJSMin(((exports) => {
9022
7267
  var __importDefault = exports && exports.__importDefault || function(mod) {
9023
7268
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -9076,7 +7321,7 @@ var require_ExplorerSync = /* @__PURE__ */ __commonJSMin(((exports) => {
9076
7321
  return search();
9077
7322
  }
9078
7323
  #readConfiguration(filepath, importStack = []) {
9079
- const contents = fs_1.default.readFileSync(filepath, "utf8");
7324
+ const contents = (0, util_js_1.decodeFileContent)(fs_1.default.readFileSync(filepath));
9080
7325
  return this.toCosmiconfigResult(filepath, this.#loadConfigFileWithImports(filepath, contents, importStack));
9081
7326
  }
9082
7327
  #loadConfigFileWithImports(filepath, contents, importStack) {
@@ -9166,11 +7411,10 @@ var require_ExplorerSync = /* @__PURE__ */ __commonJSMin(((exports) => {
9166
7411
  exports.ExplorerSync = ExplorerSync;
9167
7412
  }));
9168
7413
  //#endregion
9169
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/index.js
7414
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/index.js
9170
7415
  var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
9171
7416
  Object.defineProperty(exports, "__esModule", { value: true });
9172
- exports.defaultLoadersSync = exports.defaultLoaders = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = void 0;
9173
- exports.cosmiconfig = cosmiconfig;
7417
+ exports.defaultLoadersSync = exports.defaultLoaders = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = exports.cosmiconfigSync = exports.cosmiconfig = void 0;
9174
7418
  const defaults_1 = require_defaults();
9175
7419
  Object.defineProperty(exports, "defaultLoaders", {
9176
7420
  enumerable: true,
@@ -9244,7 +7488,8 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
9244
7488
  function getResolvedSearchPlaces(moduleName, toolDefinedSearchPlaces, userConfiguredOptions) {
9245
7489
  const userConfiguredSearchPlaces = userConfiguredOptions.searchPlaces?.map((path) => path.replace("{name}", moduleName));
9246
7490
  if (userConfiguredOptions.mergeSearchPlaces) return [...userConfiguredSearchPlaces ?? [], ...toolDefinedSearchPlaces];
9247
- return userConfiguredSearchPlaces ?? toolDefinedSearchPlaces;
7491
+ return userConfiguredSearchPlaces ??
7492
+ /* istanbul ignore next */ toolDefinedSearchPlaces;
9248
7493
  }
9249
7494
  function mergeOptionsBase(moduleName, defaults, options) {
9250
7495
  const userDefinedConfig = getUserDefinedOptionsFromMetaConfig();
@@ -9288,6 +7533,21 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
9288
7533
  searchStrategy: options.stopDir ? "global" : "none"
9289
7534
  }, options);
9290
7535
  }
7536
+ function mergeOptionsSync(moduleName, options) {
7537
+ validateOptions(options);
7538
+ return mergeOptionsBase(moduleName, {
7539
+ moduleName,
7540
+ searchPlaces: (0, defaults_1.getDefaultSearchPlacesSync)(moduleName),
7541
+ ignoreEmptySearchPlaces: true,
7542
+ cache: true,
7543
+ transform: identity,
7544
+ loaders: defaults_1.defaultLoadersSync,
7545
+ metaConfigFilePath: null,
7546
+ mergeImportArrays: true,
7547
+ mergeSearchPlaces: true,
7548
+ searchStrategy: options.stopDir ? "global" : "none"
7549
+ }, options);
7550
+ }
9291
7551
  function cosmiconfig(moduleName, options = {}) {
9292
7552
  const normalizedOptions = mergeOptions(moduleName, options);
9293
7553
  const explorer = new Explorer_js_1.Explorer(normalizedOptions);
@@ -9299,6 +7559,19 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
9299
7559
  clearCaches: explorer.clearCaches.bind(explorer)
9300
7560
  };
9301
7561
  }
7562
+ exports.cosmiconfig = cosmiconfig;
7563
+ function cosmiconfigSync(moduleName, options = {}) {
7564
+ const normalizedOptions = mergeOptionsSync(moduleName, options);
7565
+ const explorerSync = new ExplorerSync_js_1.ExplorerSync(normalizedOptions);
7566
+ return {
7567
+ search: explorerSync.search.bind(explorerSync),
7568
+ load: explorerSync.load.bind(explorerSync),
7569
+ clearLoadCache: explorerSync.clearLoadCache.bind(explorerSync),
7570
+ clearSearchCache: explorerSync.clearSearchCache.bind(explorerSync),
7571
+ clearCaches: explorerSync.clearCaches.bind(explorerSync)
7572
+ };
7573
+ }
7574
+ exports.cosmiconfigSync = cosmiconfigSync;
9302
7575
  }));
9303
7576
  //#endregion
9304
7577
  //#region src/lib/ruleCommandRegistry.ts
@@ -9606,7 +7879,7 @@ const range = (a, b, str) => {
9606
7879
  return result;
9607
7880
  };
9608
7881
  //#endregion
9609
- //#region ../../node_modules/.pnpm/brace-expansion@5.0.7/node_modules/brace-expansion/dist/esm/index.js
7882
+ //#region ../../node_modules/.pnpm/brace-expansion@5.0.9/node_modules/brace-expansion/dist/esm/index.js
9610
7883
  const escSlash = "\0SLASH" + Math.random() + "\0";
9611
7884
  const escOpen = "\0OPEN" + Math.random() + "\0";
9612
7885
  const escClose = "\0CLOSE" + Math.random() + "\0";
@@ -9623,6 +7896,7 @@ const closePattern = /\\}/g;
9623
7896
  const commaPattern = /\\,/g;
9624
7897
  const periodPattern = /\\\./g;
9625
7898
  const EXPANSION_MAX = 1e5;
7899
+ const EXPANSION_MAX_LENGTH = 4e6;
9626
7900
  function numeric(str) {
9627
7901
  return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
9628
7902
  }
@@ -9655,9 +7929,9 @@ function parseCommaParts(str) {
9655
7929
  }
9656
7930
  function expand(str, options = {}) {
9657
7931
  if (!str) return [];
9658
- const { max = EXPANSION_MAX } = options;
7932
+ const { max = EXPANSION_MAX, maxLength = EXPANSION_MAX_LENGTH } = options;
9659
7933
  if (str.slice(0, 2) === "{}") str = "\\{\\}" + str.slice(2);
9660
- return expand_(escapeBraces(str), max, true).map(unescapeBraces);
7934
+ return expand_(escapeBraces(str), max, maxLength, true).map(unescapeBraces);
9661
7935
  }
9662
7936
  function embrace(str) {
9663
7937
  return "{" + str + "}";
@@ -9671,20 +7945,72 @@ function lte(i, y) {
9671
7945
  function gte(i, y) {
9672
7946
  return i >= y;
9673
7947
  }
9674
- function expand_(str, max, isTop) {
9675
- /** @type {string[]} */
9676
- const expansions = [];
7948
+ function combine(acc, pre, values, max, maxLength, dropEmpties) {
7949
+ const out = [];
7950
+ let length = 0;
7951
+ for (let a = 0; a < acc.length; a++) for (let v = 0; v < values.length; v++) {
7952
+ if (out.length >= max) return out;
7953
+ const expansion = acc[a] + pre + values[v];
7954
+ if (dropEmpties && !expansion) continue;
7955
+ if (length + expansion.length > maxLength) return out;
7956
+ out.push(expansion);
7957
+ length += expansion.length;
7958
+ }
7959
+ return out;
7960
+ }
7961
+ function expandSequence(body, isAlphaSequence, max, maxLength) {
7962
+ const n = body.split(/\.\./);
7963
+ const N = [];
7964
+ /* c8 ignore start */
7965
+ if (n[0] === void 0 || n[1] === void 0) return N;
7966
+ /* c8 ignore stop */
7967
+ const x = numeric(n[0]);
7968
+ const y = numeric(n[1]);
7969
+ const width = Math.max(n[0].length, n[1].length);
7970
+ let incr = n.length === 3 && n[2] !== void 0 ? Math.max(Math.abs(numeric(n[2])), 1) : 1;
7971
+ let test = lte;
7972
+ if (y < x) {
7973
+ incr *= -1;
7974
+ test = gte;
7975
+ }
7976
+ const pad = n.some(isPadded);
7977
+ let length = 0;
7978
+ for (let i = x; test(i, y) && N.length < max; i += incr) {
7979
+ let c;
7980
+ if (isAlphaSequence) {
7981
+ c = String.fromCharCode(i);
7982
+ if (c === "\\") c = "";
7983
+ } else {
7984
+ c = String(i);
7985
+ if (pad) {
7986
+ const need = width - c.length;
7987
+ if (need > 0) {
7988
+ const z = new Array(need + 1).join("0");
7989
+ if (i < 0) c = "-" + z + c.slice(1);
7990
+ else c = z + c;
7991
+ }
7992
+ }
7993
+ }
7994
+ if (length + c.length > maxLength) break;
7995
+ N.push(c);
7996
+ length += c.length;
7997
+ }
7998
+ return N;
7999
+ }
8000
+ function expand_(str, max, maxLength, isTop) {
8001
+ let acc = [""];
8002
+ let dropEmpties = false;
8003
+ let firstGroup = true;
9677
8004
  for (;;) {
9678
8005
  const m = balanced("{", "}", str);
9679
- if (!m) return [str];
8006
+ if (!m) return combine(acc, str, [""], max, maxLength, dropEmpties);
9680
8007
  const pre = m.pre;
9681
- if (/\$$/.test(m.pre)) {
9682
- const post = m.post.length ? expand_(m.post, max, false) : [""];
9683
- for (let k = 0; k < post.length && k < max; k++) {
9684
- const expansion = pre + "{" + m.body + "}" + post[k];
9685
- expansions.push(expansion);
9686
- }
9687
- return expansions;
8008
+ if (/\$$/.test(pre)) {
8009
+ acc = combine(acc, pre + "{" + m.body + "}", [""], max, maxLength, dropEmpties && !m.post.length);
8010
+ firstGroup = false;
8011
+ if (!m.post.length) break;
8012
+ str = m.post;
8013
+ continue;
9688
8014
  }
9689
8015
  const isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
9690
8016
  const isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
@@ -9696,70 +8022,56 @@ function expand_(str, max, isTop) {
9696
8022
  isTop = true;
9697
8023
  continue;
9698
8024
  }
9699
- return [str];
8025
+ return combine(acc, pre + "{" + m.body + "}" + m.post, [""], max, maxLength, dropEmpties);
9700
8026
  }
9701
- const post = m.post.length ? expand_(m.post, max, false) : [""];
9702
- let n;
9703
- if (isSequence) n = m.body.split(/\.\./);
8027
+ if (firstGroup) {
8028
+ dropEmpties = isTop && !isSequence;
8029
+ firstGroup = false;
8030
+ }
8031
+ let values;
8032
+ if (isSequence) values = expandSequence(m.body, isAlphaSequence, max, maxLength);
9704
8033
  else {
9705
- n = parseCommaParts(m.body);
8034
+ let n = parseCommaParts(m.body);
9706
8035
  if (n.length === 1 && n[0] !== void 0) {
9707
- n = expand_(n[0], max, false).map(embrace);
8036
+ n = expand_(n[0], max, maxLength, false).map(embrace);
9708
8037
  /* c8 ignore start */
9709
- if (n.length === 1) return post.map((p) => m.pre + n[0] + p);
9710
- }
9711
- }
9712
- let N;
9713
- if (isSequence && n[0] !== void 0 && n[1] !== void 0) {
9714
- const x = numeric(n[0]);
9715
- const y = numeric(n[1]);
9716
- const width = Math.max(n[0].length, n[1].length);
9717
- let incr = n.length === 3 && n[2] !== void 0 ? Math.max(Math.abs(numeric(n[2])), 1) : 1;
9718
- let test = lte;
9719
- if (y < x) {
9720
- incr *= -1;
9721
- test = gte;
9722
- }
9723
- const pad = n.some(isPadded);
9724
- N = [];
9725
- for (let i = x; test(i, y) && N.length < max; i += incr) {
9726
- let c;
9727
- if (isAlphaSequence) {
9728
- c = String.fromCharCode(i);
9729
- if (c === "\\") c = "";
9730
- } else {
9731
- c = String(i);
9732
- if (pad) {
9733
- const need = width - c.length;
9734
- if (need > 0) {
9735
- const z = new Array(need + 1).join("0");
9736
- if (i < 0) c = "-" + z + c.slice(1);
9737
- else c = z + c;
9738
- }
9739
- }
8038
+ if (n.length === 1) {
8039
+ acc = combine(acc, pre + n[0], [""], max, maxLength, dropEmpties && !m.post.length);
8040
+ if (!m.post.length) break;
8041
+ str = m.post;
8042
+ continue;
8043
+ }
8044
+ }
8045
+ let dropsEmpties = dropEmpties && !m.post.length && !pre;
8046
+ for (let d = 0; dropsEmpties && d < acc.length; d++) if (acc[d]) dropsEmpties = false;
8047
+ values = [];
8048
+ let valuesLength = 0;
8049
+ outer: for (let j = 0; j < n.length; j++) {
8050
+ const expanded = expand_(n[j], max, maxLength, false);
8051
+ for (let k = 0; k < expanded.length; k++) {
8052
+ const v = expanded[k];
8053
+ if (dropsEmpties && !v) continue;
8054
+ if (values.length >= max || valuesLength + v.length > maxLength) break outer;
8055
+ values.push(v);
8056
+ valuesLength += v.length;
9740
8057
  }
9741
- N.push(c);
9742
8058
  }
9743
- } else {
9744
- N = [];
9745
- for (let j = 0; j < n.length; j++) N.push.apply(N, expand_(n[j], max, false));
9746
- }
9747
- for (let j = 0; j < N.length; j++) for (let k = 0; k < post.length && expansions.length < max; k++) {
9748
- const expansion = pre + N[j] + post[k];
9749
- if (!isTop || isSequence || expansion) expansions.push(expansion);
9750
8059
  }
9751
- return expansions;
8060
+ acc = combine(acc, pre, values, max, maxLength, dropEmpties && !m.post.length);
8061
+ if (!m.post.length) break;
8062
+ str = m.post;
9752
8063
  }
8064
+ return acc;
9753
8065
  }
9754
8066
  //#endregion
9755
- //#region ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/assert-valid-pattern.js
9756
- const MAX_PATTERN_LENGTH = 1024 * 64;
8067
+ //#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/assert-valid-pattern.js
8068
+ const MAX_PATTERN_LENGTH = 65536;
9757
8069
  const assertValidPattern = (pattern) => {
9758
8070
  if (typeof pattern !== "string") throw new TypeError("invalid pattern");
9759
8071
  if (pattern.length > MAX_PATTERN_LENGTH) throw new TypeError("pattern is too long");
9760
8072
  };
9761
8073
  //#endregion
9762
- //#region ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/brace-expressions.js
8074
+ //#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/brace-expressions.js
9763
8075
  const posixClasses = {
9764
8076
  "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
9765
8077
  "[:alpha:]": ["\\p{L}\\p{Nl}", true],
@@ -9883,7 +8195,7 @@ const parseClass = (glob, position) => {
9883
8195
  ];
9884
8196
  };
9885
8197
  //#endregion
9886
- //#region ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/unescape.js
8198
+ //#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/unescape.js
9887
8199
  /**
9888
8200
  * Un-escape a string that has been escaped with {@link escape}.
9889
8201
  *
@@ -9908,7 +8220,7 @@ const unescape = (s, { windowsPathsNoEscape = false, magicalBraces = true } = {}
9908
8220
  return windowsPathsNoEscape ? s.replace(/\[([^/\\{}])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^/\\{}])\]/g, "$1$2").replace(/\\([^/{}])/g, "$1");
9909
8221
  };
9910
8222
  //#endregion
9911
- //#region ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/ast.js
8223
+ //#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/ast.js
9912
8224
  var _a;
9913
8225
  const types = /* @__PURE__ */ new Set([
9914
8226
  "!",
@@ -10417,7 +8729,7 @@ var AST = class {
10417
8729
  };
10418
8730
  _a = AST;
10419
8731
  //#endregion
10420
- //#region ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/escape.js
8732
+ //#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/escape.js
10421
8733
  /**
10422
8734
  * Escape all magic characters in a glob pattern.
10423
8735
  *
@@ -10435,7 +8747,7 @@ const escape = (s, { windowsPathsNoEscape = false, magicalBraces = false } = {})
10435
8747
  return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
10436
8748
  };
10437
8749
  //#endregion
10438
- //#region ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/index.js
8750
+ //#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/index.js
10439
8751
  const minimatch = (p, pattern, options = {}) => {
10440
8752
  assertValidPattern(pattern);
10441
8753
  if (!options.nocomment && pattern.charAt(0) === "#") return false;
@@ -11103,7 +9415,7 @@ function runGit(rootDir, args) {
11103
9415
  ...args
11104
9416
  ], {
11105
9417
  encoding: "utf8",
11106
- maxBuffer: 32 * 1024 * 1024
9418
+ maxBuffer: 33554432
11107
9419
  });
11108
9420
  return {
11109
9421
  status: result.status,