rsbuild-plugin-arethetypeswrong 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/render.js ADDED
@@ -0,0 +1,1836 @@
1
+ /*! LICENSE: render.js.LICENSE.txt */
2
+ import { styleText } from "node:util";
3
+ import { __webpack_require__ } from "./453.js";
4
+ import { problemFlags, moduleKinds, resolutionKinds, filterProblems, problemAffectsEntrypoint, problemKindInfo, problemAffectsResolutionKind } from "./854.js";
5
+ import { allResolutionKinds, getResolutionOption, groupProblemsByKind } from "./utils.js";
6
+ import "./453.js";
7
+ __webpack_require__.add({
8
+ "./node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/colors.js" (module, __unused_rspack_exports, __webpack_require__) {
9
+ var colors = {};
10
+ module.exports = colors;
11
+ colors.themes = {};
12
+ var util = __webpack_require__("util");
13
+ var ansiStyles = colors.styles = __webpack_require__("./node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/styles.js");
14
+ var defineProps = Object.defineProperties;
15
+ var newLineRegex = new RegExp(/[\r\n]+/g);
16
+ colors.supportsColor = __webpack_require__("./node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/system/supports-colors.js").supportsColor;
17
+ if (void 0 === colors.enabled) colors.enabled = false !== colors.supportsColor();
18
+ colors.enable = function() {
19
+ colors.enabled = true;
20
+ };
21
+ colors.disable = function() {
22
+ colors.enabled = false;
23
+ };
24
+ colors.stripColors = colors.strip = function(str) {
25
+ return ('' + str).replace(/\x1B\[\d+m/g, '');
26
+ };
27
+ colors.stylize = function(str, style) {
28
+ if (!colors.enabled) return str + '';
29
+ var styleMap = ansiStyles[style];
30
+ if (!styleMap && style in colors) return colors[style](str);
31
+ return styleMap.open + str + styleMap.close;
32
+ };
33
+ var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
34
+ var escapeStringRegexp = function(str) {
35
+ if ('string' != typeof str) throw new TypeError('Expected a string');
36
+ return str.replace(matchOperatorsRe, '\\$&');
37
+ };
38
+ function build(_styles) {
39
+ var builder = function builder() {
40
+ return applyStyle.apply(builder, arguments);
41
+ };
42
+ builder._styles = _styles;
43
+ builder.__proto__ = proto;
44
+ return builder;
45
+ }
46
+ var styles = function() {
47
+ var ret = {};
48
+ ansiStyles.grey = ansiStyles.gray;
49
+ Object.keys(ansiStyles).forEach(function(key) {
50
+ ansiStyles[key].closeRe = new RegExp(escapeStringRegexp(ansiStyles[key].close), 'g');
51
+ ret[key] = {
52
+ get: function() {
53
+ return build(this._styles.concat(key));
54
+ }
55
+ };
56
+ });
57
+ return ret;
58
+ }();
59
+ var proto = defineProps(function() {}, styles);
60
+ function applyStyle() {
61
+ var args = Array.prototype.slice.call(arguments);
62
+ var str = args.map(function(arg) {
63
+ if (null != arg && arg.constructor === String) return arg;
64
+ return util.inspect(arg);
65
+ }).join(' ');
66
+ if (!colors.enabled || !str) return str;
67
+ var newLinesPresent = -1 != str.indexOf('\n');
68
+ var nestedStyles = this._styles;
69
+ var i = nestedStyles.length;
70
+ while(i--){
71
+ var code = ansiStyles[nestedStyles[i]];
72
+ str = code.open + str.replace(code.closeRe, code.open) + code.close;
73
+ if (newLinesPresent) str = str.replace(newLineRegex, function(match) {
74
+ return code.close + match + code.open;
75
+ });
76
+ }
77
+ return str;
78
+ }
79
+ colors.setTheme = function(theme) {
80
+ if ('string' == typeof theme) return void console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");
81
+ for(var style in theme)(function(style) {
82
+ colors[style] = function(str) {
83
+ if ('object' == typeof theme[style]) {
84
+ var out = str;
85
+ for(var i in theme[style])out = colors[theme[style][i]](out);
86
+ return out;
87
+ }
88
+ return colors[theme[style]](str);
89
+ };
90
+ })(style);
91
+ };
92
+ function init() {
93
+ var ret = {};
94
+ Object.keys(styles).forEach(function(name) {
95
+ ret[name] = {
96
+ get: function() {
97
+ return build([
98
+ name
99
+ ]);
100
+ }
101
+ };
102
+ });
103
+ return ret;
104
+ }
105
+ var sequencer = function(map, str) {
106
+ var exploded = str.split('');
107
+ exploded = exploded.map(map);
108
+ return exploded.join('');
109
+ };
110
+ colors.trap = __webpack_require__("./node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/custom/trap.js");
111
+ colors.zalgo = __webpack_require__("./node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/custom/zalgo.js");
112
+ colors.maps = {};
113
+ colors.maps.america = __webpack_require__("./node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/maps/america.js")(colors);
114
+ colors.maps.zebra = __webpack_require__("./node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/maps/zebra.js")(colors);
115
+ colors.maps.rainbow = __webpack_require__("./node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/maps/rainbow.js")(colors);
116
+ colors.maps.random = __webpack_require__("./node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/maps/random.js")(colors);
117
+ for(var map in colors.maps)(function(map) {
118
+ colors[map] = function(str) {
119
+ return sequencer(colors.maps[map], str);
120
+ };
121
+ })(map);
122
+ defineProps(colors, init());
123
+ },
124
+ "./node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/custom/trap.js" (module) {
125
+ module.exports = function(text, options) {
126
+ var result = '';
127
+ text = text || 'Run the trap, drop the bass';
128
+ text = text.split('');
129
+ var trap = {
130
+ a: [
131
+ '\u0040',
132
+ '\u0104',
133
+ '\u023a',
134
+ '\u0245',
135
+ '\u0394',
136
+ '\u039b',
137
+ '\u0414'
138
+ ],
139
+ b: [
140
+ '\u00df',
141
+ '\u0181',
142
+ '\u0243',
143
+ '\u026e',
144
+ '\u03b2',
145
+ '\u0e3f'
146
+ ],
147
+ c: [
148
+ '\u00a9',
149
+ '\u023b',
150
+ '\u03fe'
151
+ ],
152
+ d: [
153
+ '\u00d0',
154
+ '\u018a',
155
+ '\u0500',
156
+ '\u0501',
157
+ '\u0502',
158
+ '\u0503'
159
+ ],
160
+ e: [
161
+ '\u00cb',
162
+ '\u0115',
163
+ '\u018e',
164
+ '\u0258',
165
+ '\u03a3',
166
+ '\u03be',
167
+ '\u04bc',
168
+ '\u0a6c'
169
+ ],
170
+ f: [
171
+ '\u04fa'
172
+ ],
173
+ g: [
174
+ '\u0262'
175
+ ],
176
+ h: [
177
+ '\u0126',
178
+ '\u0195',
179
+ '\u04a2',
180
+ '\u04ba',
181
+ '\u04c7',
182
+ '\u050a'
183
+ ],
184
+ i: [
185
+ '\u0f0f'
186
+ ],
187
+ j: [
188
+ '\u0134'
189
+ ],
190
+ k: [
191
+ '\u0138',
192
+ '\u04a0',
193
+ '\u04c3',
194
+ '\u051e'
195
+ ],
196
+ l: [
197
+ '\u0139'
198
+ ],
199
+ m: [
200
+ '\u028d',
201
+ '\u04cd',
202
+ '\u04ce',
203
+ '\u0520',
204
+ '\u0521',
205
+ '\u0d69'
206
+ ],
207
+ n: [
208
+ '\u00d1',
209
+ '\u014b',
210
+ '\u019d',
211
+ '\u0376',
212
+ '\u03a0',
213
+ '\u048a'
214
+ ],
215
+ o: [
216
+ '\u00d8',
217
+ '\u00f5',
218
+ '\u00f8',
219
+ '\u01fe',
220
+ '\u0298',
221
+ '\u047a',
222
+ '\u05dd',
223
+ '\u06dd',
224
+ '\u0e4f'
225
+ ],
226
+ p: [
227
+ '\u01f7',
228
+ '\u048e'
229
+ ],
230
+ q: [
231
+ '\u09cd'
232
+ ],
233
+ r: [
234
+ '\u00ae',
235
+ '\u01a6',
236
+ '\u0210',
237
+ '\u024c',
238
+ '\u0280',
239
+ '\u042f'
240
+ ],
241
+ s: [
242
+ '\u00a7',
243
+ '\u03de',
244
+ '\u03df',
245
+ '\u03e8'
246
+ ],
247
+ t: [
248
+ '\u0141',
249
+ '\u0166',
250
+ '\u0373'
251
+ ],
252
+ u: [
253
+ '\u01b1',
254
+ '\u054d'
255
+ ],
256
+ v: [
257
+ '\u05d8'
258
+ ],
259
+ w: [
260
+ '\u0428',
261
+ '\u0460',
262
+ '\u047c',
263
+ '\u0d70'
264
+ ],
265
+ x: [
266
+ '\u04b2',
267
+ '\u04fe',
268
+ '\u04fc',
269
+ '\u04fd'
270
+ ],
271
+ y: [
272
+ '\u00a5',
273
+ '\u04b0',
274
+ '\u04cb'
275
+ ],
276
+ z: [
277
+ '\u01b5',
278
+ '\u0240'
279
+ ]
280
+ };
281
+ text.forEach(function(c) {
282
+ c = c.toLowerCase();
283
+ var chars = trap[c] || [
284
+ ' '
285
+ ];
286
+ var rand = Math.floor(Math.random() * chars.length);
287
+ if (void 0 !== trap[c]) result += trap[c][rand];
288
+ else result += c;
289
+ });
290
+ return result;
291
+ };
292
+ },
293
+ "./node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/custom/zalgo.js" (module) {
294
+ module.exports = function(text, options) {
295
+ text = text || ' he is here ';
296
+ var soul = {
297
+ up: [
298
+ '̍',
299
+ '̎',
300
+ '̄',
301
+ '̅',
302
+ '̿',
303
+ '̑',
304
+ '̆',
305
+ '̐',
306
+ '͒',
307
+ '͗',
308
+ '͑',
309
+ '̇',
310
+ '̈',
311
+ '̊',
312
+ '͂',
313
+ '̓',
314
+ '̈',
315
+ '͊',
316
+ '͋',
317
+ '͌',
318
+ '̃',
319
+ '̂',
320
+ '̌',
321
+ '͐',
322
+ '̀',
323
+ '́',
324
+ '̋',
325
+ '̏',
326
+ '̒',
327
+ '̓',
328
+ '̔',
329
+ '̽',
330
+ '̉',
331
+ 'ͣ',
332
+ 'ͤ',
333
+ 'ͥ',
334
+ 'ͦ',
335
+ 'ͧ',
336
+ 'ͨ',
337
+ 'ͩ',
338
+ 'ͪ',
339
+ 'ͫ',
340
+ 'ͬ',
341
+ 'ͭ',
342
+ 'ͮ',
343
+ 'ͯ',
344
+ '̾',
345
+ '͛',
346
+ '͆',
347
+ '̚'
348
+ ],
349
+ down: [
350
+ '̖',
351
+ '̗',
352
+ '̘',
353
+ '̙',
354
+ '̜',
355
+ '̝',
356
+ '̞',
357
+ '̟',
358
+ '̠',
359
+ '̤',
360
+ '̥',
361
+ '̦',
362
+ '̩',
363
+ '̪',
364
+ '̫',
365
+ '̬',
366
+ '̭',
367
+ '̮',
368
+ '̯',
369
+ '̰',
370
+ '̱',
371
+ '̲',
372
+ '̳',
373
+ '̹',
374
+ '̺',
375
+ '̻',
376
+ '̼',
377
+ 'ͅ',
378
+ '͇',
379
+ '͈',
380
+ '͉',
381
+ '͍',
382
+ '͎',
383
+ '͓',
384
+ '͔',
385
+ '͕',
386
+ '͖',
387
+ '͙',
388
+ '͚',
389
+ '̣'
390
+ ],
391
+ mid: [
392
+ '̕',
393
+ '̛',
394
+ '̀',
395
+ '́',
396
+ '͘',
397
+ '̡',
398
+ '̢',
399
+ '̧',
400
+ '̨',
401
+ '̴',
402
+ '̵',
403
+ '̶',
404
+ '͜',
405
+ '͝',
406
+ '͞',
407
+ '͟',
408
+ '͠',
409
+ '͢',
410
+ '̸',
411
+ '̷',
412
+ '͡',
413
+ ' ҉'
414
+ ]
415
+ };
416
+ var all = [].concat(soul.up, soul.down, soul.mid);
417
+ function randomNumber(range) {
418
+ var r = Math.floor(Math.random() * range);
419
+ return r;
420
+ }
421
+ function isChar(character) {
422
+ var bool = false;
423
+ all.filter(function(i) {
424
+ bool = i === character;
425
+ });
426
+ return bool;
427
+ }
428
+ function heComes(text, options) {
429
+ var result = '';
430
+ var counts;
431
+ var l;
432
+ options = options || {};
433
+ options['up'] = void 0 !== options['up'] ? options['up'] : true;
434
+ options['mid'] = void 0 !== options['mid'] ? options['mid'] : true;
435
+ options['down'] = void 0 !== options['down'] ? options['down'] : true;
436
+ options['size'] = void 0 !== options['size'] ? options['size'] : 'maxi';
437
+ text = text.split('');
438
+ for(l in text)if (!isChar(l)) {
439
+ result += text[l];
440
+ counts = {
441
+ up: 0,
442
+ down: 0,
443
+ mid: 0
444
+ };
445
+ switch(options.size){
446
+ case 'mini':
447
+ counts.up = randomNumber(8);
448
+ counts.mid = randomNumber(2);
449
+ counts.down = randomNumber(8);
450
+ break;
451
+ case 'maxi':
452
+ counts.up = randomNumber(16) + 3;
453
+ counts.mid = randomNumber(4) + 1;
454
+ counts.down = randomNumber(64) + 3;
455
+ break;
456
+ default:
457
+ counts.up = randomNumber(8) + 1;
458
+ counts.mid = randomNumber(6) / 2;
459
+ counts.down = randomNumber(8) + 1;
460
+ break;
461
+ }
462
+ var arr = [
463
+ 'up',
464
+ 'mid',
465
+ 'down'
466
+ ];
467
+ for(var d in arr){
468
+ var index = arr[d];
469
+ for(var i = 0; i <= counts[index]; i++)if (options[index]) result += soul[index][randomNumber(soul[index].length)];
470
+ }
471
+ }
472
+ return result;
473
+ }
474
+ return heComes(text, options);
475
+ };
476
+ },
477
+ "./node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/maps/america.js" (module) {
478
+ module.exports = function(colors) {
479
+ return function(letter, i, exploded) {
480
+ if (' ' === letter) return letter;
481
+ switch(i % 3){
482
+ case 0:
483
+ return colors.red(letter);
484
+ case 1:
485
+ return colors.white(letter);
486
+ case 2:
487
+ return colors.blue(letter);
488
+ }
489
+ };
490
+ };
491
+ },
492
+ "./node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/maps/rainbow.js" (module) {
493
+ module.exports = function(colors) {
494
+ var rainbowColors = [
495
+ 'red',
496
+ 'yellow',
497
+ 'green',
498
+ 'blue',
499
+ 'magenta'
500
+ ];
501
+ return function(letter, i, exploded) {
502
+ if (' ' === letter) return letter;
503
+ return colors[rainbowColors[i++ % rainbowColors.length]](letter);
504
+ };
505
+ };
506
+ },
507
+ "./node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/maps/random.js" (module) {
508
+ module.exports = function(colors) {
509
+ var available = [
510
+ 'underline',
511
+ 'inverse',
512
+ 'grey',
513
+ 'yellow',
514
+ 'red',
515
+ 'green',
516
+ 'blue',
517
+ 'white',
518
+ 'cyan',
519
+ 'magenta',
520
+ 'brightYellow',
521
+ 'brightRed',
522
+ 'brightGreen',
523
+ 'brightBlue',
524
+ 'brightWhite',
525
+ 'brightCyan',
526
+ 'brightMagenta'
527
+ ];
528
+ return function(letter, i, exploded) {
529
+ return ' ' === letter ? letter : colors[available[Math.round(Math.random() * (available.length - 2))]](letter);
530
+ };
531
+ };
532
+ },
533
+ "./node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/maps/zebra.js" (module) {
534
+ module.exports = function(colors) {
535
+ return function(letter, i, exploded) {
536
+ return i % 2 === 0 ? letter : colors.inverse(letter);
537
+ };
538
+ };
539
+ },
540
+ "./node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/styles.js" (module) {
541
+ var styles = {};
542
+ module.exports = styles;
543
+ var codes = {
544
+ reset: [
545
+ 0,
546
+ 0
547
+ ],
548
+ bold: [
549
+ 1,
550
+ 22
551
+ ],
552
+ dim: [
553
+ 2,
554
+ 22
555
+ ],
556
+ italic: [
557
+ 3,
558
+ 23
559
+ ],
560
+ underline: [
561
+ 4,
562
+ 24
563
+ ],
564
+ inverse: [
565
+ 7,
566
+ 27
567
+ ],
568
+ hidden: [
569
+ 8,
570
+ 28
571
+ ],
572
+ strikethrough: [
573
+ 9,
574
+ 29
575
+ ],
576
+ black: [
577
+ 30,
578
+ 39
579
+ ],
580
+ red: [
581
+ 31,
582
+ 39
583
+ ],
584
+ green: [
585
+ 32,
586
+ 39
587
+ ],
588
+ yellow: [
589
+ 33,
590
+ 39
591
+ ],
592
+ blue: [
593
+ 34,
594
+ 39
595
+ ],
596
+ magenta: [
597
+ 35,
598
+ 39
599
+ ],
600
+ cyan: [
601
+ 36,
602
+ 39
603
+ ],
604
+ white: [
605
+ 37,
606
+ 39
607
+ ],
608
+ gray: [
609
+ 90,
610
+ 39
611
+ ],
612
+ grey: [
613
+ 90,
614
+ 39
615
+ ],
616
+ brightRed: [
617
+ 91,
618
+ 39
619
+ ],
620
+ brightGreen: [
621
+ 92,
622
+ 39
623
+ ],
624
+ brightYellow: [
625
+ 93,
626
+ 39
627
+ ],
628
+ brightBlue: [
629
+ 94,
630
+ 39
631
+ ],
632
+ brightMagenta: [
633
+ 95,
634
+ 39
635
+ ],
636
+ brightCyan: [
637
+ 96,
638
+ 39
639
+ ],
640
+ brightWhite: [
641
+ 97,
642
+ 39
643
+ ],
644
+ bgBlack: [
645
+ 40,
646
+ 49
647
+ ],
648
+ bgRed: [
649
+ 41,
650
+ 49
651
+ ],
652
+ bgGreen: [
653
+ 42,
654
+ 49
655
+ ],
656
+ bgYellow: [
657
+ 43,
658
+ 49
659
+ ],
660
+ bgBlue: [
661
+ 44,
662
+ 49
663
+ ],
664
+ bgMagenta: [
665
+ 45,
666
+ 49
667
+ ],
668
+ bgCyan: [
669
+ 46,
670
+ 49
671
+ ],
672
+ bgWhite: [
673
+ 47,
674
+ 49
675
+ ],
676
+ bgGray: [
677
+ 100,
678
+ 49
679
+ ],
680
+ bgGrey: [
681
+ 100,
682
+ 49
683
+ ],
684
+ bgBrightRed: [
685
+ 101,
686
+ 49
687
+ ],
688
+ bgBrightGreen: [
689
+ 102,
690
+ 49
691
+ ],
692
+ bgBrightYellow: [
693
+ 103,
694
+ 49
695
+ ],
696
+ bgBrightBlue: [
697
+ 104,
698
+ 49
699
+ ],
700
+ bgBrightMagenta: [
701
+ 105,
702
+ 49
703
+ ],
704
+ bgBrightCyan: [
705
+ 106,
706
+ 49
707
+ ],
708
+ bgBrightWhite: [
709
+ 107,
710
+ 49
711
+ ],
712
+ blackBG: [
713
+ 40,
714
+ 49
715
+ ],
716
+ redBG: [
717
+ 41,
718
+ 49
719
+ ],
720
+ greenBG: [
721
+ 42,
722
+ 49
723
+ ],
724
+ yellowBG: [
725
+ 43,
726
+ 49
727
+ ],
728
+ blueBG: [
729
+ 44,
730
+ 49
731
+ ],
732
+ magentaBG: [
733
+ 45,
734
+ 49
735
+ ],
736
+ cyanBG: [
737
+ 46,
738
+ 49
739
+ ],
740
+ whiteBG: [
741
+ 47,
742
+ 49
743
+ ]
744
+ };
745
+ Object.keys(codes).forEach(function(key) {
746
+ var val = codes[key];
747
+ var style = styles[key] = [];
748
+ style.open = '\u001b[' + val[0] + 'm';
749
+ style.close = '\u001b[' + val[1] + 'm';
750
+ });
751
+ },
752
+ "./node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/system/has-flag.js" (module) {
753
+ module.exports = function(flag, argv) {
754
+ argv = argv || process.argv;
755
+ var terminatorPos = argv.indexOf('--');
756
+ var prefix = /^-{1,2}/.test(flag) ? '' : '--';
757
+ var pos = argv.indexOf(prefix + flag);
758
+ return -1 !== pos && (-1 === terminatorPos ? true : pos < terminatorPos);
759
+ };
760
+ },
761
+ "./node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/system/supports-colors.js" (module, __unused_rspack_exports, __webpack_require__) {
762
+ var os = __webpack_require__("os");
763
+ var hasFlag = __webpack_require__("./node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/system/has-flag.js");
764
+ var env = process.env;
765
+ var forceColor = void 0;
766
+ if (hasFlag('no-color') || hasFlag('no-colors') || hasFlag('color=false')) forceColor = false;
767
+ else if (hasFlag('color') || hasFlag('colors') || hasFlag('color=true') || hasFlag('color=always')) forceColor = true;
768
+ if ('FORCE_COLOR' in env) forceColor = 0 === env.FORCE_COLOR.length || 0 !== parseInt(env.FORCE_COLOR, 10);
769
+ function translateLevel(level) {
770
+ if (0 === level) return false;
771
+ return {
772
+ level: level,
773
+ hasBasic: true,
774
+ has256: level >= 2,
775
+ has16m: level >= 3
776
+ };
777
+ }
778
+ function supportsColor(stream) {
779
+ if (false === forceColor) return 0;
780
+ if (hasFlag('color=16m') || hasFlag('color=full') || hasFlag('color=truecolor')) return 3;
781
+ if (hasFlag('color=256')) return 2;
782
+ if (stream && !stream.isTTY && true !== forceColor) return 0;
783
+ var min = forceColor ? 1 : 0;
784
+ if ('win32' === process.platform) {
785
+ var osRelease = os.release().split('.');
786
+ if (Number(process.versions.node.split('.')[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) return Number(osRelease[2]) >= 14931 ? 3 : 2;
787
+ return 1;
788
+ }
789
+ if ('CI' in env) {
790
+ if ([
791
+ 'TRAVIS',
792
+ 'CIRCLECI',
793
+ 'APPVEYOR',
794
+ 'GITLAB_CI'
795
+ ].some(function(sign) {
796
+ return sign in env;
797
+ }) || 'codeship' === env.CI_NAME) return 1;
798
+ return min;
799
+ }
800
+ if ('TEAMCITY_VERSION' in env) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
801
+ if ('TERM_PROGRAM' in env) {
802
+ var version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
803
+ switch(env.TERM_PROGRAM){
804
+ case 'iTerm.app':
805
+ return version >= 3 ? 3 : 2;
806
+ case 'Hyper':
807
+ return 3;
808
+ case 'Apple_Terminal':
809
+ return 2;
810
+ }
811
+ }
812
+ if (/-256(color)?$/i.test(env.TERM)) return 2;
813
+ if (/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
814
+ if ('COLORTERM' in env) return 1;
815
+ env.TERM;
816
+ return min;
817
+ }
818
+ function getSupportLevel(stream) {
819
+ var level = supportsColor(stream);
820
+ return translateLevel(level);
821
+ }
822
+ module.exports = {
823
+ supportsColor: getSupportLevel,
824
+ stdout: getSupportLevel(process.stdout),
825
+ stderr: getSupportLevel(process.stderr)
826
+ };
827
+ },
828
+ "./node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/safe.js" (module, __unused_rspack_exports, __webpack_require__) {
829
+ var colors = __webpack_require__("./node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/colors.js");
830
+ module.exports = colors;
831
+ },
832
+ "./node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js" (module) {
833
+ module.exports = ({ onlyFirst = false } = {})=>{
834
+ const pattern = "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))";
835
+ return new RegExp(pattern, onlyFirst ? void 0 : 'g');
836
+ };
837
+ },
838
+ "./node_modules/.pnpm/cli-table3@0.6.5/node_modules/cli-table3/index.js" (module, __unused_rspack_exports, __webpack_require__) {
839
+ module.exports = __webpack_require__("./node_modules/.pnpm/cli-table3@0.6.5/node_modules/cli-table3/src/table.js");
840
+ },
841
+ "./node_modules/.pnpm/cli-table3@0.6.5/node_modules/cli-table3/src/cell.js" (module, __unused_rspack_exports, __webpack_require__) {
842
+ const { info, debug } = __webpack_require__("./node_modules/.pnpm/cli-table3@0.6.5/node_modules/cli-table3/src/debug.js");
843
+ const utils = __webpack_require__("./node_modules/.pnpm/cli-table3@0.6.5/node_modules/cli-table3/src/utils.js");
844
+ class Cell {
845
+ constructor(options){
846
+ this.setOptions(options);
847
+ this.x = null;
848
+ this.y = null;
849
+ }
850
+ setOptions(options) {
851
+ if (-1 !== [
852
+ 'boolean',
853
+ 'number',
854
+ 'bigint',
855
+ 'string'
856
+ ].indexOf(typeof options)) options = {
857
+ content: '' + options
858
+ };
859
+ options = options || {};
860
+ this.options = options;
861
+ let content = options.content;
862
+ if (-1 !== [
863
+ 'boolean',
864
+ 'number',
865
+ 'bigint',
866
+ 'string'
867
+ ].indexOf(typeof content)) this.content = String(content);
868
+ else if (content) throw new Error('Content needs to be a primitive, got: ' + typeof content);
869
+ else this.content = this.options.href || '';
870
+ this.colSpan = options.colSpan || 1;
871
+ this.rowSpan = options.rowSpan || 1;
872
+ if (this.options.href) Object.defineProperty(this, 'href', {
873
+ get () {
874
+ return this.options.href;
875
+ }
876
+ });
877
+ }
878
+ mergeTableOptions(tableOptions, cells) {
879
+ this.cells = cells;
880
+ let optionsChars = this.options.chars || {};
881
+ let tableChars = tableOptions.chars;
882
+ let chars = this.chars = {};
883
+ CHAR_NAMES.forEach(function(name) {
884
+ setOption(optionsChars, tableChars, name, chars);
885
+ });
886
+ this.truncate = this.options.truncate || tableOptions.truncate;
887
+ let style = this.options.style = this.options.style || {};
888
+ let tableStyle = tableOptions.style;
889
+ setOption(style, tableStyle, 'padding-left', this);
890
+ setOption(style, tableStyle, 'padding-right', this);
891
+ this.head = style.head || tableStyle.head;
892
+ this.border = style.border || tableStyle.border;
893
+ this.fixedWidth = tableOptions.colWidths[this.x];
894
+ this.lines = this.computeLines(tableOptions);
895
+ this.desiredWidth = utils.strlen(this.content) + this.paddingLeft + this.paddingRight;
896
+ this.desiredHeight = this.lines.length;
897
+ }
898
+ computeLines(tableOptions) {
899
+ const tableWordWrap = tableOptions.wordWrap || tableOptions.textWrap;
900
+ const { wordWrap = tableWordWrap } = this.options;
901
+ if (this.fixedWidth && wordWrap) {
902
+ this.fixedWidth -= this.paddingLeft + this.paddingRight;
903
+ if (this.colSpan) {
904
+ let i = 1;
905
+ while(i < this.colSpan){
906
+ this.fixedWidth += tableOptions.colWidths[this.x + i];
907
+ i++;
908
+ }
909
+ }
910
+ const { wrapOnWordBoundary: tableWrapOnWordBoundary = true } = tableOptions;
911
+ const { wrapOnWordBoundary = tableWrapOnWordBoundary } = this.options;
912
+ return this.wrapLines(utils.wordWrap(this.fixedWidth, this.content, wrapOnWordBoundary));
913
+ }
914
+ return this.wrapLines(this.content.split('\n'));
915
+ }
916
+ wrapLines(computedLines) {
917
+ const lines = utils.colorizeLines(computedLines);
918
+ if (this.href) return lines.map((line)=>utils.hyperlink(this.href, line));
919
+ return lines;
920
+ }
921
+ init(tableOptions) {
922
+ let x = this.x;
923
+ let y = this.y;
924
+ this.widths = tableOptions.colWidths.slice(x, x + this.colSpan);
925
+ this.heights = tableOptions.rowHeights.slice(y, y + this.rowSpan);
926
+ this.width = this.widths.reduce(sumPlusOne, -1);
927
+ this.height = this.heights.reduce(sumPlusOne, -1);
928
+ this.hAlign = this.options.hAlign || tableOptions.colAligns[x];
929
+ this.vAlign = this.options.vAlign || tableOptions.rowAligns[y];
930
+ this.drawRight = x + this.colSpan == tableOptions.colWidths.length;
931
+ }
932
+ draw(lineNum, spanningCell) {
933
+ if ('top' == lineNum) return this.drawTop(this.drawRight);
934
+ if ('bottom' == lineNum) return this.drawBottom(this.drawRight);
935
+ let content = utils.truncate(this.content, 10, this.truncate);
936
+ if (!lineNum) info(`${this.y}-${this.x}: ${this.rowSpan - lineNum}x${this.colSpan} Cell ${content}`);
937
+ let padLen = Math.max(this.height - this.lines.length, 0);
938
+ let padTop;
939
+ switch(this.vAlign){
940
+ case 'center':
941
+ padTop = Math.ceil(padLen / 2);
942
+ break;
943
+ case 'bottom':
944
+ padTop = padLen;
945
+ break;
946
+ default:
947
+ padTop = 0;
948
+ }
949
+ if (lineNum < padTop || lineNum >= padTop + this.lines.length) return this.drawEmpty(this.drawRight, spanningCell);
950
+ let forceTruncation = this.lines.length > this.height && lineNum + 1 >= this.height;
951
+ return this.drawLine(lineNum - padTop, this.drawRight, forceTruncation, spanningCell);
952
+ }
953
+ drawTop(drawRight) {
954
+ let content = [];
955
+ if (this.cells) this.widths.forEach(function(width, index) {
956
+ content.push(this._topLeftChar(index));
957
+ content.push(utils.repeat(this.chars[0 == this.y ? 'top' : 'mid'], width));
958
+ }, this);
959
+ else {
960
+ content.push(this._topLeftChar(0));
961
+ content.push(utils.repeat(this.chars[0 == this.y ? 'top' : 'mid'], this.width));
962
+ }
963
+ if (drawRight) content.push(this.chars[0 == this.y ? 'topRight' : 'rightMid']);
964
+ return this.wrapWithStyleColors('border', content.join(''));
965
+ }
966
+ _topLeftChar(offset) {
967
+ let x = this.x + offset;
968
+ let leftChar;
969
+ if (0 == this.y) leftChar = 0 == x ? 'topLeft' : 0 == offset ? 'topMid' : 'top';
970
+ else if (0 == x) leftChar = 'leftMid';
971
+ else {
972
+ leftChar = 0 == offset ? 'midMid' : 'bottomMid';
973
+ if (this.cells) {
974
+ let spanAbove = this.cells[this.y - 1][x] instanceof Cell.ColSpanCell;
975
+ if (spanAbove) leftChar = 0 == offset ? 'topMid' : 'mid';
976
+ if (0 == offset) {
977
+ let i = 1;
978
+ while(this.cells[this.y][x - i] instanceof Cell.ColSpanCell)i++;
979
+ if (this.cells[this.y][x - i] instanceof Cell.RowSpanCell) leftChar = 'leftMid';
980
+ }
981
+ }
982
+ }
983
+ return this.chars[leftChar];
984
+ }
985
+ wrapWithStyleColors(styleProperty, content) {
986
+ if (!this[styleProperty] || !this[styleProperty].length) return content;
987
+ try {
988
+ let colors = __webpack_require__("./node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/safe.js");
989
+ for(let i = this[styleProperty].length - 1; i >= 0; i--)colors = colors[this[styleProperty][i]];
990
+ return colors(content);
991
+ } catch (e) {
992
+ return content;
993
+ }
994
+ }
995
+ drawLine(lineNum, drawRight, forceTruncationSymbol, spanningCell) {
996
+ let left = this.chars[0 == this.x ? 'left' : 'middle'];
997
+ if (this.x && spanningCell && this.cells) {
998
+ let cellLeft = this.cells[this.y + spanningCell][this.x - 1];
999
+ while(cellLeft instanceof ColSpanCell)cellLeft = this.cells[cellLeft.y][cellLeft.x - 1];
1000
+ if (!(cellLeft instanceof RowSpanCell)) left = this.chars['rightMid'];
1001
+ }
1002
+ let leftPadding = utils.repeat(' ', this.paddingLeft);
1003
+ let right = drawRight ? this.chars['right'] : '';
1004
+ let rightPadding = utils.repeat(' ', this.paddingRight);
1005
+ let line = this.lines[lineNum];
1006
+ let len = this.width - (this.paddingLeft + this.paddingRight);
1007
+ if (forceTruncationSymbol) line += this.truncate || '…';
1008
+ let content = utils.truncate(line, len, this.truncate);
1009
+ content = utils.pad(content, len, ' ', this.hAlign);
1010
+ content = leftPadding + content + rightPadding;
1011
+ return this.stylizeLine(left, content, right);
1012
+ }
1013
+ stylizeLine(left, content, right) {
1014
+ left = this.wrapWithStyleColors('border', left);
1015
+ right = this.wrapWithStyleColors('border', right);
1016
+ if (0 === this.y) content = this.wrapWithStyleColors('head', content);
1017
+ return left + content + right;
1018
+ }
1019
+ drawBottom(drawRight) {
1020
+ let left = this.chars[0 == this.x ? 'bottomLeft' : 'bottomMid'];
1021
+ let content = utils.repeat(this.chars.bottom, this.width);
1022
+ let right = drawRight ? this.chars['bottomRight'] : '';
1023
+ return this.wrapWithStyleColors('border', left + content + right);
1024
+ }
1025
+ drawEmpty(drawRight, spanningCell) {
1026
+ let left = this.chars[0 == this.x ? 'left' : 'middle'];
1027
+ if (this.x && spanningCell && this.cells) {
1028
+ let cellLeft = this.cells[this.y + spanningCell][this.x - 1];
1029
+ while(cellLeft instanceof ColSpanCell)cellLeft = this.cells[cellLeft.y][cellLeft.x - 1];
1030
+ if (!(cellLeft instanceof RowSpanCell)) left = this.chars['rightMid'];
1031
+ }
1032
+ let right = drawRight ? this.chars['right'] : '';
1033
+ let content = utils.repeat(' ', this.width);
1034
+ return this.stylizeLine(left, content, right);
1035
+ }
1036
+ }
1037
+ class ColSpanCell {
1038
+ draw(lineNum) {
1039
+ if ('number' == typeof lineNum) debug(`${this.y}-${this.x}: 1x1 ColSpanCell`);
1040
+ return '';
1041
+ }
1042
+ init() {}
1043
+ mergeTableOptions() {}
1044
+ }
1045
+ class RowSpanCell {
1046
+ constructor(originalCell){
1047
+ this.originalCell = originalCell;
1048
+ }
1049
+ init(tableOptions) {
1050
+ let y = this.y;
1051
+ let originalY = this.originalCell.y;
1052
+ this.cellOffset = y - originalY;
1053
+ this.offset = findDimension(tableOptions.rowHeights, originalY, this.cellOffset);
1054
+ }
1055
+ draw(lineNum) {
1056
+ if ('top' == lineNum) return this.originalCell.draw(this.offset, this.cellOffset);
1057
+ if ('bottom' == lineNum) return this.originalCell.draw('bottom');
1058
+ debug(`${this.y}-${this.x}: 1x${this.colSpan} RowSpanCell for ${this.originalCell.content}`);
1059
+ return this.originalCell.draw(this.offset + 1 + lineNum);
1060
+ }
1061
+ mergeTableOptions() {}
1062
+ }
1063
+ function firstDefined(...args) {
1064
+ return args.filter((v)=>null != v).shift();
1065
+ }
1066
+ function setOption(objA, objB, nameB, targetObj) {
1067
+ let nameA = nameB.split('-');
1068
+ if (nameA.length > 1) {
1069
+ nameA[1] = nameA[1].charAt(0).toUpperCase() + nameA[1].substr(1);
1070
+ nameA = nameA.join('');
1071
+ targetObj[nameA] = firstDefined(objA[nameA], objA[nameB], objB[nameA], objB[nameB]);
1072
+ } else targetObj[nameB] = firstDefined(objA[nameB], objB[nameB]);
1073
+ }
1074
+ function findDimension(dimensionTable, startingIndex, span) {
1075
+ let ret = dimensionTable[startingIndex];
1076
+ for(let i = 1; i < span; i++)ret += 1 + dimensionTable[startingIndex + i];
1077
+ return ret;
1078
+ }
1079
+ function sumPlusOne(a, b) {
1080
+ return a + b + 1;
1081
+ }
1082
+ let CHAR_NAMES = [
1083
+ 'top',
1084
+ 'top-mid',
1085
+ 'top-left',
1086
+ 'top-right',
1087
+ 'bottom',
1088
+ 'bottom-mid',
1089
+ 'bottom-left',
1090
+ 'bottom-right',
1091
+ 'left',
1092
+ 'left-mid',
1093
+ 'mid',
1094
+ 'mid-mid',
1095
+ 'right',
1096
+ 'right-mid',
1097
+ 'middle'
1098
+ ];
1099
+ module.exports = Cell;
1100
+ module.exports.ColSpanCell = ColSpanCell;
1101
+ module.exports.RowSpanCell = RowSpanCell;
1102
+ },
1103
+ "./node_modules/.pnpm/cli-table3@0.6.5/node_modules/cli-table3/src/debug.js" (module) {
1104
+ let messages = [];
1105
+ let level = 0;
1106
+ const debug = (msg, min)=>{
1107
+ if (level >= min) messages.push(msg);
1108
+ };
1109
+ debug.WARN = 1;
1110
+ debug.INFO = 2;
1111
+ debug.DEBUG = 3;
1112
+ debug.reset = ()=>{
1113
+ messages = [];
1114
+ };
1115
+ debug.setDebugLevel = (v)=>{
1116
+ level = v;
1117
+ };
1118
+ debug.warn = (msg)=>debug(msg, debug.WARN);
1119
+ debug.info = (msg)=>debug(msg, debug.INFO);
1120
+ debug.debug = (msg)=>debug(msg, debug.DEBUG);
1121
+ debug.debugMessages = ()=>messages;
1122
+ module.exports = debug;
1123
+ },
1124
+ "./node_modules/.pnpm/cli-table3@0.6.5/node_modules/cli-table3/src/layout-manager.js" (module, __unused_rspack_exports, __webpack_require__) {
1125
+ const { warn, debug } = __webpack_require__("./node_modules/.pnpm/cli-table3@0.6.5/node_modules/cli-table3/src/debug.js");
1126
+ const Cell = __webpack_require__("./node_modules/.pnpm/cli-table3@0.6.5/node_modules/cli-table3/src/cell.js");
1127
+ const { ColSpanCell, RowSpanCell } = Cell;
1128
+ (function() {
1129
+ function next(alloc, col) {
1130
+ if (alloc[col] > 0) return next(alloc, col + 1);
1131
+ return col;
1132
+ }
1133
+ function layoutTable(table) {
1134
+ let alloc = {};
1135
+ table.forEach(function(row, rowIndex) {
1136
+ let col = 0;
1137
+ row.forEach(function(cell) {
1138
+ cell.y = rowIndex;
1139
+ cell.x = rowIndex ? next(alloc, col) : col;
1140
+ const rowSpan = cell.rowSpan || 1;
1141
+ const colSpan = cell.colSpan || 1;
1142
+ if (rowSpan > 1) for(let cs = 0; cs < colSpan; cs++)alloc[cell.x + cs] = rowSpan;
1143
+ col = cell.x + colSpan;
1144
+ });
1145
+ Object.keys(alloc).forEach((idx)=>{
1146
+ alloc[idx]--;
1147
+ if (alloc[idx] < 1) delete alloc[idx];
1148
+ });
1149
+ });
1150
+ }
1151
+ function maxWidth(table) {
1152
+ let mw = 0;
1153
+ table.forEach(function(row) {
1154
+ row.forEach(function(cell) {
1155
+ mw = Math.max(mw, cell.x + (cell.colSpan || 1));
1156
+ });
1157
+ });
1158
+ return mw;
1159
+ }
1160
+ function maxHeight(table) {
1161
+ return table.length;
1162
+ }
1163
+ function cellsConflict(cell1, cell2) {
1164
+ let yMin1 = cell1.y;
1165
+ let yMax1 = cell1.y - 1 + (cell1.rowSpan || 1);
1166
+ let yMin2 = cell2.y;
1167
+ let yMax2 = cell2.y - 1 + (cell2.rowSpan || 1);
1168
+ let yConflict = !(yMin1 > yMax2 || yMin2 > yMax1);
1169
+ let xMin1 = cell1.x;
1170
+ let xMax1 = cell1.x - 1 + (cell1.colSpan || 1);
1171
+ let xMin2 = cell2.x;
1172
+ let xMax2 = cell2.x - 1 + (cell2.colSpan || 1);
1173
+ let xConflict = !(xMin1 > xMax2 || xMin2 > xMax1);
1174
+ return yConflict && xConflict;
1175
+ }
1176
+ function conflictExists(rows, x, y) {
1177
+ let i_max = Math.min(rows.length - 1, y);
1178
+ let cell = {
1179
+ x: x,
1180
+ y: y
1181
+ };
1182
+ for(let i = 0; i <= i_max; i++){
1183
+ let row = rows[i];
1184
+ for(let j = 0; j < row.length; j++)if (cellsConflict(cell, row[j])) return true;
1185
+ }
1186
+ return false;
1187
+ }
1188
+ function allBlank(rows, y, xMin, xMax) {
1189
+ for(let x = xMin; x < xMax; x++)if (conflictExists(rows, x, y)) return false;
1190
+ return true;
1191
+ }
1192
+ function addRowSpanCells(table) {
1193
+ table.forEach(function(row, rowIndex) {
1194
+ row.forEach(function(cell) {
1195
+ for(let i = 1; i < cell.rowSpan; i++){
1196
+ let rowSpanCell = new RowSpanCell(cell);
1197
+ rowSpanCell.x = cell.x;
1198
+ rowSpanCell.y = cell.y + i;
1199
+ rowSpanCell.colSpan = cell.colSpan;
1200
+ insertCell(rowSpanCell, table[rowIndex + i]);
1201
+ }
1202
+ });
1203
+ });
1204
+ }
1205
+ function addColSpanCells(cellRows) {
1206
+ for(let rowIndex = cellRows.length - 1; rowIndex >= 0; rowIndex--){
1207
+ let cellColumns = cellRows[rowIndex];
1208
+ for(let columnIndex = 0; columnIndex < cellColumns.length; columnIndex++){
1209
+ let cell = cellColumns[columnIndex];
1210
+ for(let k = 1; k < cell.colSpan; k++){
1211
+ let colSpanCell = new ColSpanCell();
1212
+ colSpanCell.x = cell.x + k;
1213
+ colSpanCell.y = cell.y;
1214
+ cellColumns.splice(columnIndex + 1, 0, colSpanCell);
1215
+ }
1216
+ }
1217
+ }
1218
+ }
1219
+ function insertCell(cell, row) {
1220
+ let x = 0;
1221
+ while(x < row.length && row[x].x < cell.x)x++;
1222
+ row.splice(x, 0, cell);
1223
+ }
1224
+ function fillInTable(table) {
1225
+ let h_max = maxHeight(table);
1226
+ let w_max = maxWidth(table);
1227
+ debug(`Max rows: ${h_max}; Max cols: ${w_max}`);
1228
+ for(let y = 0; y < h_max; y++)for(let x = 0; x < w_max; x++)if (!conflictExists(table, x, y)) {
1229
+ let opts = {
1230
+ x: x,
1231
+ y: y,
1232
+ colSpan: 1,
1233
+ rowSpan: 1
1234
+ };
1235
+ x++;
1236
+ while(x < w_max && !conflictExists(table, x, y)){
1237
+ opts.colSpan++;
1238
+ x++;
1239
+ }
1240
+ let y2 = y + 1;
1241
+ while(y2 < h_max && allBlank(table, y2, opts.x, opts.x + opts.colSpan)){
1242
+ opts.rowSpan++;
1243
+ y2++;
1244
+ }
1245
+ let cell = new Cell(opts);
1246
+ cell.x = opts.x;
1247
+ cell.y = opts.y;
1248
+ warn(`Missing cell at ${cell.y}-${cell.x}.`);
1249
+ insertCell(cell, table[y]);
1250
+ }
1251
+ }
1252
+ function generateCells(rows) {
1253
+ return rows.map(function(row) {
1254
+ if (!Array.isArray(row)) {
1255
+ let key = Object.keys(row)[0];
1256
+ row = row[key];
1257
+ if (Array.isArray(row)) {
1258
+ row = row.slice();
1259
+ row.unshift(key);
1260
+ } else row = [
1261
+ key,
1262
+ row
1263
+ ];
1264
+ }
1265
+ return row.map(function(cell) {
1266
+ return new Cell(cell);
1267
+ });
1268
+ });
1269
+ }
1270
+ function makeTableLayout(rows) {
1271
+ let cellRows = generateCells(rows);
1272
+ layoutTable(cellRows);
1273
+ fillInTable(cellRows);
1274
+ addRowSpanCells(cellRows);
1275
+ addColSpanCells(cellRows);
1276
+ return cellRows;
1277
+ }
1278
+ module.exports = {
1279
+ makeTableLayout: makeTableLayout,
1280
+ layoutTable: layoutTable,
1281
+ addRowSpanCells: addRowSpanCells,
1282
+ maxWidth: maxWidth,
1283
+ fillInTable: fillInTable,
1284
+ computeWidths: makeComputeWidths('colSpan', 'desiredWidth', 'x', 1),
1285
+ computeHeights: makeComputeWidths('rowSpan', 'desiredHeight', 'y', 1)
1286
+ };
1287
+ })();
1288
+ function makeComputeWidths(colSpan, desiredWidth, x, forcedMin) {
1289
+ return function(vals, table) {
1290
+ let result = [];
1291
+ let spanners = [];
1292
+ let auto = {};
1293
+ table.forEach(function(row) {
1294
+ row.forEach(function(cell) {
1295
+ if ((cell[colSpan] || 1) > 1) spanners.push(cell);
1296
+ else result[cell[x]] = Math.max(result[cell[x]] || 0, cell[desiredWidth] || 0, forcedMin);
1297
+ });
1298
+ });
1299
+ vals.forEach(function(val, index) {
1300
+ if ('number' == typeof val) result[index] = val;
1301
+ });
1302
+ for(let k = spanners.length - 1; k >= 0; k--){
1303
+ let cell = spanners[k];
1304
+ let span = cell[colSpan];
1305
+ let col = cell[x];
1306
+ let existingWidth = result[col];
1307
+ let editableCols = 'number' == typeof vals[col] ? 0 : 1;
1308
+ if ('number' == typeof existingWidth) for(let i = 1; i < span; i++){
1309
+ existingWidth += 1 + result[col + i];
1310
+ if ('number' != typeof vals[col + i]) editableCols++;
1311
+ }
1312
+ else {
1313
+ existingWidth = 'desiredWidth' === desiredWidth ? cell.desiredWidth - 1 : 1;
1314
+ if (!auto[col] || auto[col] < existingWidth) auto[col] = existingWidth;
1315
+ }
1316
+ if (cell[desiredWidth] > existingWidth) {
1317
+ let i = 0;
1318
+ while(editableCols > 0 && cell[desiredWidth] > existingWidth){
1319
+ if ('number' != typeof vals[col + i]) {
1320
+ let dif = Math.round((cell[desiredWidth] - existingWidth) / editableCols);
1321
+ existingWidth += dif;
1322
+ result[col + i] += dif;
1323
+ editableCols--;
1324
+ }
1325
+ i++;
1326
+ }
1327
+ }
1328
+ }
1329
+ Object.assign(vals, result, auto);
1330
+ for(let j = 0; j < vals.length; j++)vals[j] = Math.max(forcedMin, vals[j] || 0);
1331
+ };
1332
+ }
1333
+ },
1334
+ "./node_modules/.pnpm/cli-table3@0.6.5/node_modules/cli-table3/src/table.js" (module, __unused_rspack_exports, __webpack_require__) {
1335
+ const debug = __webpack_require__("./node_modules/.pnpm/cli-table3@0.6.5/node_modules/cli-table3/src/debug.js");
1336
+ const utils = __webpack_require__("./node_modules/.pnpm/cli-table3@0.6.5/node_modules/cli-table3/src/utils.js");
1337
+ const tableLayout = __webpack_require__("./node_modules/.pnpm/cli-table3@0.6.5/node_modules/cli-table3/src/layout-manager.js");
1338
+ class Table extends Array {
1339
+ constructor(opts){
1340
+ super();
1341
+ const options = utils.mergeOptions(opts);
1342
+ Object.defineProperty(this, 'options', {
1343
+ value: options,
1344
+ enumerable: options.debug
1345
+ });
1346
+ if (options.debug) {
1347
+ switch(typeof options.debug){
1348
+ case 'boolean':
1349
+ debug.setDebugLevel(debug.WARN);
1350
+ break;
1351
+ case 'number':
1352
+ debug.setDebugLevel(options.debug);
1353
+ break;
1354
+ case 'string':
1355
+ debug.setDebugLevel(parseInt(options.debug, 10));
1356
+ break;
1357
+ default:
1358
+ debug.setDebugLevel(debug.WARN);
1359
+ debug.warn(`Debug option is expected to be boolean, number, or string. Received a ${typeof options.debug}`);
1360
+ }
1361
+ Object.defineProperty(this, 'messages', {
1362
+ get () {
1363
+ return debug.debugMessages();
1364
+ }
1365
+ });
1366
+ }
1367
+ }
1368
+ toString() {
1369
+ let array = this;
1370
+ let headersPresent = this.options.head && this.options.head.length;
1371
+ if (headersPresent) {
1372
+ array = [
1373
+ this.options.head
1374
+ ];
1375
+ if (this.length) array.push.apply(array, this);
1376
+ } else this.options.style.head = [];
1377
+ let cells = tableLayout.makeTableLayout(array);
1378
+ cells.forEach(function(row) {
1379
+ row.forEach(function(cell) {
1380
+ cell.mergeTableOptions(this.options, cells);
1381
+ }, this);
1382
+ }, this);
1383
+ tableLayout.computeWidths(this.options.colWidths, cells);
1384
+ tableLayout.computeHeights(this.options.rowHeights, cells);
1385
+ cells.forEach(function(row) {
1386
+ row.forEach(function(cell) {
1387
+ cell.init(this.options);
1388
+ }, this);
1389
+ }, this);
1390
+ let result = [];
1391
+ for(let rowIndex = 0; rowIndex < cells.length; rowIndex++){
1392
+ let row = cells[rowIndex];
1393
+ let heightOfRow = this.options.rowHeights[rowIndex];
1394
+ if (0 === rowIndex || !this.options.style.compact || 1 == rowIndex && headersPresent) doDraw(row, 'top', result);
1395
+ for(let lineNum = 0; lineNum < heightOfRow; lineNum++)doDraw(row, lineNum, result);
1396
+ if (rowIndex + 1 == cells.length) doDraw(row, 'bottom', result);
1397
+ }
1398
+ return result.join('\n');
1399
+ }
1400
+ get width() {
1401
+ let str = this.toString().split('\n');
1402
+ return str[0].length;
1403
+ }
1404
+ }
1405
+ Table.reset = ()=>debug.reset();
1406
+ function doDraw(row, lineNum, result) {
1407
+ let line = [];
1408
+ row.forEach(function(cell) {
1409
+ line.push(cell.draw(lineNum));
1410
+ });
1411
+ let str = line.join('');
1412
+ if (str.length) result.push(str);
1413
+ }
1414
+ module.exports = Table;
1415
+ },
1416
+ "./node_modules/.pnpm/cli-table3@0.6.5/node_modules/cli-table3/src/utils.js" (module, __unused_rspack_exports, __webpack_require__) {
1417
+ const stringWidth = __webpack_require__("./node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js");
1418
+ function codeRegex(capture) {
1419
+ return capture ? /\u001b\[((?:\d*;){0,5}\d*)m/g : /\u001b\[(?:\d*;){0,5}\d*m/g;
1420
+ }
1421
+ function strlen(str) {
1422
+ let code = codeRegex();
1423
+ let stripped = ('' + str).replace(code, '');
1424
+ let split = stripped.split('\n');
1425
+ return split.reduce(function(memo, s) {
1426
+ return stringWidth(s) > memo ? stringWidth(s) : memo;
1427
+ }, 0);
1428
+ }
1429
+ function repeat(str, times) {
1430
+ return Array(times + 1).join(str);
1431
+ }
1432
+ function pad(str, len, pad, dir) {
1433
+ let length = strlen(str);
1434
+ if (len + 1 >= length) {
1435
+ let padlen = len - length;
1436
+ switch(dir){
1437
+ case 'right':
1438
+ str = repeat(pad, padlen) + str;
1439
+ break;
1440
+ case 'center':
1441
+ {
1442
+ let right = Math.ceil(padlen / 2);
1443
+ let left = padlen - right;
1444
+ str = repeat(pad, left) + str + repeat(pad, right);
1445
+ break;
1446
+ }
1447
+ default:
1448
+ str += repeat(pad, padlen);
1449
+ break;
1450
+ }
1451
+ }
1452
+ return str;
1453
+ }
1454
+ let codeCache = {};
1455
+ function addToCodeCache(name, on, off) {
1456
+ on = '\u001b[' + on + 'm';
1457
+ off = '\u001b[' + off + 'm';
1458
+ codeCache[on] = {
1459
+ set: name,
1460
+ to: true
1461
+ };
1462
+ codeCache[off] = {
1463
+ set: name,
1464
+ to: false
1465
+ };
1466
+ codeCache[name] = {
1467
+ on: on,
1468
+ off: off
1469
+ };
1470
+ }
1471
+ addToCodeCache('bold', 1, 22);
1472
+ addToCodeCache('italics', 3, 23);
1473
+ addToCodeCache('underline', 4, 24);
1474
+ addToCodeCache('inverse', 7, 27);
1475
+ addToCodeCache('strikethrough', 9, 29);
1476
+ function updateState(state, controlChars) {
1477
+ let controlCode = controlChars[1] ? parseInt(controlChars[1].split(';')[0]) : 0;
1478
+ if (controlCode >= 30 && controlCode <= 39 || controlCode >= 90 && controlCode <= 97) {
1479
+ state.lastForegroundAdded = controlChars[0];
1480
+ return;
1481
+ }
1482
+ if (controlCode >= 40 && controlCode <= 49 || controlCode >= 100 && controlCode <= 107) {
1483
+ state.lastBackgroundAdded = controlChars[0];
1484
+ return;
1485
+ }
1486
+ if (0 === controlCode) {
1487
+ for(let i in state)if (Object.prototype.hasOwnProperty.call(state, i)) delete state[i];
1488
+ return;
1489
+ }
1490
+ let info = codeCache[controlChars[0]];
1491
+ if (info) state[info.set] = info.to;
1492
+ }
1493
+ function readState(line) {
1494
+ let code = codeRegex(true);
1495
+ let controlChars = code.exec(line);
1496
+ let state = {};
1497
+ while(null !== controlChars){
1498
+ updateState(state, controlChars);
1499
+ controlChars = code.exec(line);
1500
+ }
1501
+ return state;
1502
+ }
1503
+ function unwindState(state, ret) {
1504
+ let lastBackgroundAdded = state.lastBackgroundAdded;
1505
+ let lastForegroundAdded = state.lastForegroundAdded;
1506
+ delete state.lastBackgroundAdded;
1507
+ delete state.lastForegroundAdded;
1508
+ Object.keys(state).forEach(function(key) {
1509
+ if (state[key]) ret += codeCache[key].off;
1510
+ });
1511
+ if (lastBackgroundAdded && '\u001b[49m' != lastBackgroundAdded) ret += '\u001b[49m';
1512
+ if (lastForegroundAdded && '\u001b[39m' != lastForegroundAdded) ret += '\u001b[39m';
1513
+ return ret;
1514
+ }
1515
+ function rewindState(state, ret) {
1516
+ let lastBackgroundAdded = state.lastBackgroundAdded;
1517
+ let lastForegroundAdded = state.lastForegroundAdded;
1518
+ delete state.lastBackgroundAdded;
1519
+ delete state.lastForegroundAdded;
1520
+ Object.keys(state).forEach(function(key) {
1521
+ if (state[key]) ret = codeCache[key].on + ret;
1522
+ });
1523
+ if (lastBackgroundAdded && '\u001b[49m' != lastBackgroundAdded) ret = lastBackgroundAdded + ret;
1524
+ if (lastForegroundAdded && '\u001b[39m' != lastForegroundAdded) ret = lastForegroundAdded + ret;
1525
+ return ret;
1526
+ }
1527
+ function truncateWidth(str, desiredLength) {
1528
+ if (str.length === strlen(str)) return str.substr(0, desiredLength);
1529
+ while(strlen(str) > desiredLength)str = str.slice(0, -1);
1530
+ return str;
1531
+ }
1532
+ function truncateWidthWithAnsi(str, desiredLength) {
1533
+ let code = codeRegex(true);
1534
+ let split = str.split(codeRegex());
1535
+ let splitIndex = 0;
1536
+ let retLen = 0;
1537
+ let ret = '';
1538
+ let myArray;
1539
+ let state = {};
1540
+ while(retLen < desiredLength){
1541
+ myArray = code.exec(str);
1542
+ let toAdd = split[splitIndex];
1543
+ splitIndex++;
1544
+ if (retLen + strlen(toAdd) > desiredLength) toAdd = truncateWidth(toAdd, desiredLength - retLen);
1545
+ ret += toAdd;
1546
+ retLen += strlen(toAdd);
1547
+ if (retLen < desiredLength) {
1548
+ if (!myArray) break;
1549
+ ret += myArray[0];
1550
+ updateState(state, myArray);
1551
+ }
1552
+ }
1553
+ return unwindState(state, ret);
1554
+ }
1555
+ function truncate(str, desiredLength, truncateChar) {
1556
+ truncateChar = truncateChar || '…';
1557
+ let lengthOfStr = strlen(str);
1558
+ if (lengthOfStr <= desiredLength) return str;
1559
+ desiredLength -= strlen(truncateChar);
1560
+ let ret = truncateWidthWithAnsi(str, desiredLength);
1561
+ ret += truncateChar;
1562
+ const hrefTag = '\x1B]8;;\x07';
1563
+ if (str.includes(hrefTag) && !ret.includes(hrefTag)) ret += hrefTag;
1564
+ return ret;
1565
+ }
1566
+ function defaultOptions() {
1567
+ return {
1568
+ chars: {
1569
+ top: '─',
1570
+ 'top-mid': '┬',
1571
+ 'top-left': '┌',
1572
+ 'top-right': '┐',
1573
+ bottom: '─',
1574
+ 'bottom-mid': '┴',
1575
+ 'bottom-left': '└',
1576
+ 'bottom-right': '┘',
1577
+ left: '│',
1578
+ 'left-mid': '├',
1579
+ mid: '─',
1580
+ 'mid-mid': '┼',
1581
+ right: '│',
1582
+ 'right-mid': '┤',
1583
+ middle: '│'
1584
+ },
1585
+ truncate: '…',
1586
+ colWidths: [],
1587
+ rowHeights: [],
1588
+ colAligns: [],
1589
+ rowAligns: [],
1590
+ style: {
1591
+ 'padding-left': 1,
1592
+ 'padding-right': 1,
1593
+ head: [
1594
+ 'red'
1595
+ ],
1596
+ border: [
1597
+ 'grey'
1598
+ ],
1599
+ compact: false
1600
+ },
1601
+ head: []
1602
+ };
1603
+ }
1604
+ function mergeOptions(options, defaults) {
1605
+ options = options || {};
1606
+ defaults = defaults || defaultOptions();
1607
+ let ret = Object.assign({}, defaults, options);
1608
+ ret.chars = Object.assign({}, defaults.chars, options.chars);
1609
+ ret.style = Object.assign({}, defaults.style, options.style);
1610
+ return ret;
1611
+ }
1612
+ function wordWrap(maxLength, input) {
1613
+ let lines = [];
1614
+ let split = input.split(/(\s+)/g);
1615
+ let line = [];
1616
+ let lineLength = 0;
1617
+ let whitespace;
1618
+ for(let i = 0; i < split.length; i += 2){
1619
+ let word = split[i];
1620
+ let newLength = lineLength + strlen(word);
1621
+ if (lineLength > 0 && whitespace) newLength += whitespace.length;
1622
+ if (newLength > maxLength) {
1623
+ if (0 !== lineLength) lines.push(line.join(''));
1624
+ line = [
1625
+ word
1626
+ ];
1627
+ lineLength = strlen(word);
1628
+ } else {
1629
+ line.push(whitespace || '', word);
1630
+ lineLength = newLength;
1631
+ }
1632
+ whitespace = split[i + 1];
1633
+ }
1634
+ if (lineLength) lines.push(line.join(''));
1635
+ return lines;
1636
+ }
1637
+ function textWrap(maxLength, input) {
1638
+ let lines = [];
1639
+ let line = '';
1640
+ function pushLine(str, ws) {
1641
+ if (line.length && ws) line += ws;
1642
+ line += str;
1643
+ while(line.length > maxLength){
1644
+ lines.push(line.slice(0, maxLength));
1645
+ line = line.slice(maxLength);
1646
+ }
1647
+ }
1648
+ let split = input.split(/(\s+)/g);
1649
+ for(let i = 0; i < split.length; i += 2)pushLine(split[i], i && split[i - 1]);
1650
+ if (line.length) lines.push(line);
1651
+ return lines;
1652
+ }
1653
+ function multiLineWordWrap(maxLength, input, wrapOnWordBoundary = true) {
1654
+ let output = [];
1655
+ input = input.split('\n');
1656
+ const handler = wrapOnWordBoundary ? wordWrap : textWrap;
1657
+ for(let i = 0; i < input.length; i++)output.push.apply(output, handler(maxLength, input[i]));
1658
+ return output;
1659
+ }
1660
+ function colorizeLines(input) {
1661
+ let state = {};
1662
+ let output = [];
1663
+ for(let i = 0; i < input.length; i++){
1664
+ let line = rewindState(state, input[i]);
1665
+ state = readState(line);
1666
+ let temp = Object.assign({}, state);
1667
+ output.push(unwindState(temp, line));
1668
+ }
1669
+ return output;
1670
+ }
1671
+ function hyperlink(url, text) {
1672
+ const OSC = '\u001B]';
1673
+ const BEL = '\u0007';
1674
+ const SEP = ';';
1675
+ return [
1676
+ OSC,
1677
+ '8',
1678
+ SEP,
1679
+ SEP,
1680
+ url || text,
1681
+ BEL,
1682
+ text,
1683
+ OSC,
1684
+ '8',
1685
+ SEP,
1686
+ SEP,
1687
+ BEL
1688
+ ].join('');
1689
+ }
1690
+ module.exports = {
1691
+ strlen: strlen,
1692
+ repeat: repeat,
1693
+ pad: pad,
1694
+ truncate: truncate,
1695
+ mergeOptions: mergeOptions,
1696
+ wordWrap: multiLineWordWrap,
1697
+ colorizeLines: colorizeLines,
1698
+ hyperlink
1699
+ };
1700
+ },
1701
+ "./node_modules/.pnpm/emoji-regex@8.0.0/node_modules/emoji-regex/index.js" (module) {
1702
+ module.exports = function() {
1703
+ return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
1704
+ };
1705
+ },
1706
+ "./node_modules/.pnpm/is-fullwidth-code-point@3.0.0/node_modules/is-fullwidth-code-point/index.js" (module) {
1707
+ const isFullwidthCodePoint = (codePoint)=>{
1708
+ if (Number.isNaN(codePoint)) return false;
1709
+ if (codePoint >= 0x1100 && (codePoint <= 0x115F || 0x2329 === codePoint || 0x232A === codePoint || 0x2E80 <= codePoint && codePoint <= 0x3247 && 0x303F !== codePoint || 0x3250 <= codePoint && codePoint <= 0x4DBF || 0x4E00 <= codePoint && codePoint <= 0xA4C6 || 0xA960 <= codePoint && codePoint <= 0xA97C || 0xAC00 <= codePoint && codePoint <= 0xD7A3 || 0xF900 <= codePoint && codePoint <= 0xFAFF || 0xFE10 <= codePoint && codePoint <= 0xFE19 || 0xFE30 <= codePoint && codePoint <= 0xFE6B || 0xFF01 <= codePoint && codePoint <= 0xFF60 || 0xFFE0 <= codePoint && codePoint <= 0xFFE6 || 0x1B000 <= codePoint && codePoint <= 0x1B001 || 0x1F200 <= codePoint && codePoint <= 0x1F251 || 0x20000 <= codePoint && codePoint <= 0x3FFFD)) return true;
1710
+ return false;
1711
+ };
1712
+ module.exports = isFullwidthCodePoint;
1713
+ module.exports["default"] = isFullwidthCodePoint;
1714
+ },
1715
+ "./node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js" (module, __unused_rspack_exports, __webpack_require__) {
1716
+ const stripAnsi = __webpack_require__("./node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js");
1717
+ const isFullwidthCodePoint = __webpack_require__("./node_modules/.pnpm/is-fullwidth-code-point@3.0.0/node_modules/is-fullwidth-code-point/index.js");
1718
+ const emojiRegex = __webpack_require__("./node_modules/.pnpm/emoji-regex@8.0.0/node_modules/emoji-regex/index.js");
1719
+ const stringWidth = (string)=>{
1720
+ if ('string' != typeof string || 0 === string.length) return 0;
1721
+ string = stripAnsi(string);
1722
+ if (0 === string.length) return 0;
1723
+ string = string.replace(emojiRegex(), ' ');
1724
+ let width = 0;
1725
+ for(let i = 0; i < string.length; i++){
1726
+ const code = string.codePointAt(i);
1727
+ if (!(code <= 0x1F) && (!(code >= 0x7F) || !(code <= 0x9F))) {
1728
+ if (!(code >= 0x300) || !(code <= 0x36F)) {
1729
+ if (code > 0xFFFF) i++;
1730
+ width += isFullwidthCodePoint(code) ? 2 : 1;
1731
+ }
1732
+ }
1733
+ }
1734
+ return width;
1735
+ };
1736
+ module.exports = stringWidth;
1737
+ module.exports["default"] = stringWidth;
1738
+ },
1739
+ "./node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js" (module, __unused_rspack_exports, __webpack_require__) {
1740
+ const ansiRegex = __webpack_require__("./node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js");
1741
+ module.exports = (string)=>'string' == typeof string ? string.replace(ansiRegex(), '') : string;
1742
+ }
1743
+ });
1744
+ const cli_table3 = __webpack_require__("./node_modules/.pnpm/cli-table3@0.6.5/node_modules/cli-table3/index.js");
1745
+ var cli_table3_default = /*#__PURE__*/ __webpack_require__.n(cli_table3);
1746
+ /**
1747
+ * @license
1748
+ Copyright 2023 Andrew Branch
1749
+
1750
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1751
+
1752
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
1753
+
1754
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1755
+ */ function renderTyped(analysis, { emoji = true, summary = true, ignoreRules = [], ignoreResolutions = [] }) {
1756
+ let output = "";
1757
+ const problems = analysis.problems.filter((problem)=>!ignoreRules || !ignoreRules.includes(problemFlags[problem.kind]));
1758
+ const requiredResolutions = allResolutionKinds.filter((kind)=>!ignoreResolutions.includes(kind));
1759
+ const ignoredResolutions = allResolutionKinds.filter((kind)=>ignoreResolutions.includes(kind));
1760
+ const resolutions = requiredResolutions.concat(ignoredResolutions);
1761
+ const entrypoints = Object.keys(analysis.entrypoints);
1762
+ out(`[arethetypeswrong] ${analysis.packageName} v${analysis.packageVersion}`);
1763
+ out();
1764
+ if (Object.keys(analysis.buildTools).length) {
1765
+ out("Build tools:");
1766
+ out(Object.entries(analysis.buildTools).map(([tool, version])=>`- ${tool}@${version}`).join("\n"));
1767
+ out();
1768
+ }
1769
+ if (ignoreRules && ignoreRules.length) out(styleText("gray", ` (ignoring rules: ${ignoreRules.map((rule)=>`'${rule}'`).join(", ")})\n`));
1770
+ if (ignoreResolutions && ignoreResolutions.length) out(styleText("gray", ` (ignoring resolutions: ${ignoreResolutions.map((resolution)=>`'${resolution}'`).join(", ")})\n`));
1771
+ if (summary) {
1772
+ const defaultSummary = emoji ? " No problems found 🌟" : " No problems found";
1773
+ const grouped = groupProblemsByKind(problems);
1774
+ const summaryTexts = Object.entries(grouped).map(([kind, kindProblems])=>{
1775
+ const info = problemKindInfo[kind];
1776
+ const affectsRequiredResolution = kindProblems.some((p)=>requiredResolutions.some((r)=>problemAffectsResolutionKind(p, r, analysis)));
1777
+ let description = `${info.description}${info.details ? ` Use \`-f json\` to see ${info.details}.` : ""} ${info.docsUrl}`;
1778
+ description = description.replace(/`([^`]+)`/g, (_, code)=>styleText("cyan", code)).replace(/(?<!\x1b)\[([^\]]+)\]\(([^)]+)\)/g, (_, text, url)=>`${styleText("bold", text)} (${styleText("blue", styleText("underline", url))})`);
1779
+ return `${affectsRequiredResolution ? "" : "(ignored per resolution) "}${emoji ? `${info.emoji} ` : ""}${description}\n\n`;
1780
+ });
1781
+ out(summaryTexts.join("") || defaultSummary);
1782
+ }
1783
+ const entrypointNames = entrypoints.map((s)=>`"${"." === s ? analysis.packageName : `${analysis.packageName}/${s.substring(2)}`}"`);
1784
+ const entrypointHeaders = entrypoints.map((s, i)=>{
1785
+ const hasProblems = problems.some((p)=>problemAffectsEntrypoint(p, s, analysis));
1786
+ return styleText("bold", styleText(hasProblems ? "redBright" : "greenBright", entrypointNames[i]));
1787
+ });
1788
+ const getCellContents = (subpath, resolutionKind)=>{
1789
+ const ignoredPrefix = ignoreResolutions.includes(resolutionKind) ? "(ignored) " : "";
1790
+ const problemsForCell = groupProblemsByKind(filterProblems(problems, analysis, {
1791
+ entrypoint: subpath,
1792
+ resolutionKind
1793
+ }));
1794
+ const entrypoint = analysis.entrypoints[subpath].resolutions[resolutionKind];
1795
+ const resolution = entrypoint.resolution;
1796
+ const kinds = Object.keys(problemsForCell);
1797
+ if (kinds.length) return kinds.map((kind)=>ignoredPrefix + (emoji ? `${problemKindInfo[kind].emoji} ` : "") + problemKindInfo[kind].shortDescription).join("\n");
1798
+ const jsonResult = emoji ? "🟢 (JSON)" : "OK (JSON)";
1799
+ const moduleResult = entrypoint.isWildcard ? "(wildcard)" : (emoji ? "🟢 " : "OK ") + moduleKinds[analysis.programInfo[getResolutionOption(resolutionKind)].moduleKinds?.[resolution?.fileName ?? ""]?.detectedKind || ""];
1800
+ return ignoredPrefix + (resolution?.isJson ? jsonResult : moduleResult);
1801
+ };
1802
+ const table = new (cli_table3_default())({
1803
+ head: [
1804
+ "",
1805
+ ...entrypointHeaders
1806
+ ]
1807
+ });
1808
+ resolutions.forEach((kind)=>{
1809
+ table.push([
1810
+ resolutionKinds[kind],
1811
+ ...entrypoints.map((entrypoint)=>getCellContents(entrypoint, kind))
1812
+ ]);
1813
+ });
1814
+ out(table.toString());
1815
+ return output.trimEnd();
1816
+ function out(s = "") {
1817
+ output += s + "\n";
1818
+ }
1819
+ }
1820
+ /**
1821
+ * @license
1822
+ Copyright 2023 Andrew Branch
1823
+
1824
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1825
+
1826
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
1827
+
1828
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1829
+ */ function renderUntyped(analysis) {
1830
+ return `[arethetypeswrong] Package ${analysis.packageName}@${analysis.packageVersion} does not contain types.`;
1831
+ }
1832
+ function render(analysis, options) {
1833
+ if (analysis.types) return renderTyped(analysis, options);
1834
+ return renderUntyped(analysis);
1835
+ }
1836
+ export { render };