dwkim 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +64 -1613
- package/package.json +5 -8
- package/dist/index.d.mts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.mjs +0 -1730
package/dist/index.mjs
DELETED
|
@@ -1,1730 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __esm = (fn, res) => function __init() {
|
|
9
|
-
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
10
|
-
};
|
|
11
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
12
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
13
|
-
};
|
|
14
|
-
var __copyProps = (to, from, except, desc) => {
|
|
15
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
-
for (let key of __getOwnPropNames(from))
|
|
17
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
18
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
23
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
24
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
25
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
26
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
27
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
28
|
-
mod
|
|
29
|
-
));
|
|
30
|
-
|
|
31
|
-
// node_modules/.pnpm/ansi-regex@6.1.0/node_modules/ansi-regex/index.js
|
|
32
|
-
function ansiRegex({ onlyFirst = false } = {}) {
|
|
33
|
-
const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
|
|
34
|
-
const pattern = [
|
|
35
|
-
`[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?${ST})`,
|
|
36
|
-
"(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"
|
|
37
|
-
].join("|");
|
|
38
|
-
return new RegExp(pattern, onlyFirst ? void 0 : "g");
|
|
39
|
-
}
|
|
40
|
-
var init_ansi_regex = __esm({
|
|
41
|
-
"node_modules/.pnpm/ansi-regex@6.1.0/node_modules/ansi-regex/index.js"() {
|
|
42
|
-
"use strict";
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
// node_modules/.pnpm/strip-ansi@7.1.0/node_modules/strip-ansi/index.js
|
|
47
|
-
function stripAnsi(string) {
|
|
48
|
-
if (typeof string !== "string") {
|
|
49
|
-
throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
|
|
50
|
-
}
|
|
51
|
-
return string.replace(regex, "");
|
|
52
|
-
}
|
|
53
|
-
var regex;
|
|
54
|
-
var init_strip_ansi = __esm({
|
|
55
|
-
"node_modules/.pnpm/strip-ansi@7.1.0/node_modules/strip-ansi/index.js"() {
|
|
56
|
-
"use strict";
|
|
57
|
-
init_ansi_regex();
|
|
58
|
-
regex = ansiRegex();
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
// node_modules/.pnpm/get-east-asian-width@1.3.0/node_modules/get-east-asian-width/lookup.js
|
|
63
|
-
function isAmbiguous(x) {
|
|
64
|
-
return x === 161 || x === 164 || x === 167 || x === 168 || x === 170 || x === 173 || x === 174 || x >= 176 && x <= 180 || x >= 182 && x <= 186 || x >= 188 && x <= 191 || x === 198 || x === 208 || x === 215 || x === 216 || x >= 222 && x <= 225 || x === 230 || x >= 232 && x <= 234 || x === 236 || x === 237 || x === 240 || x === 242 || x === 243 || x >= 247 && x <= 250 || x === 252 || x === 254 || x === 257 || x === 273 || x === 275 || x === 283 || x === 294 || x === 295 || x === 299 || x >= 305 && x <= 307 || x === 312 || x >= 319 && x <= 322 || x === 324 || x >= 328 && x <= 331 || x === 333 || x === 338 || x === 339 || x === 358 || x === 359 || x === 363 || x === 462 || x === 464 || x === 466 || x === 468 || x === 470 || x === 472 || x === 474 || x === 476 || x === 593 || x === 609 || x === 708 || x === 711 || x >= 713 && x <= 715 || x === 717 || x === 720 || x >= 728 && x <= 731 || x === 733 || x === 735 || x >= 768 && x <= 879 || x >= 913 && x <= 929 || x >= 931 && x <= 937 || x >= 945 && x <= 961 || x >= 963 && x <= 969 || x === 1025 || x >= 1040 && x <= 1103 || x === 1105 || x === 8208 || x >= 8211 && x <= 8214 || x === 8216 || x === 8217 || x === 8220 || x === 8221 || x >= 8224 && x <= 8226 || x >= 8228 && x <= 8231 || x === 8240 || x === 8242 || x === 8243 || x === 8245 || x === 8251 || x === 8254 || x === 8308 || x === 8319 || x >= 8321 && x <= 8324 || x === 8364 || x === 8451 || x === 8453 || x === 8457 || x === 8467 || x === 8470 || x === 8481 || x === 8482 || x === 8486 || x === 8491 || x === 8531 || x === 8532 || x >= 8539 && x <= 8542 || x >= 8544 && x <= 8555 || x >= 8560 && x <= 8569 || x === 8585 || x >= 8592 && x <= 8601 || x === 8632 || x === 8633 || x === 8658 || x === 8660 || x === 8679 || x === 8704 || x === 8706 || x === 8707 || x === 8711 || x === 8712 || x === 8715 || x === 8719 || x === 8721 || x === 8725 || x === 8730 || x >= 8733 && x <= 8736 || x === 8739 || x === 8741 || x >= 8743 && x <= 8748 || x === 8750 || x >= 8756 && x <= 8759 || x === 8764 || x === 8765 || x === 8776 || x === 8780 || x === 8786 || x === 8800 || x === 8801 || x >= 8804 && x <= 8807 || x === 8810 || x === 8811 || x === 8814 || x === 8815 || x === 8834 || x === 8835 || x === 8838 || x === 8839 || x === 8853 || x === 8857 || x === 8869 || x === 8895 || x === 8978 || x >= 9312 && x <= 9449 || x >= 9451 && x <= 9547 || x >= 9552 && x <= 9587 || x >= 9600 && x <= 9615 || x >= 9618 && x <= 9621 || x === 9632 || x === 9633 || x >= 9635 && x <= 9641 || x === 9650 || x === 9651 || x === 9654 || x === 9655 || x === 9660 || x === 9661 || x === 9664 || x === 9665 || x >= 9670 && x <= 9672 || x === 9675 || x >= 9678 && x <= 9681 || x >= 9698 && x <= 9701 || x === 9711 || x === 9733 || x === 9734 || x === 9737 || x === 9742 || x === 9743 || x === 9756 || x === 9758 || x === 9792 || x === 9794 || x === 9824 || x === 9825 || x >= 9827 && x <= 9829 || x >= 9831 && x <= 9834 || x === 9836 || x === 9837 || x === 9839 || x === 9886 || x === 9887 || x === 9919 || x >= 9926 && x <= 9933 || x >= 9935 && x <= 9939 || x >= 9941 && x <= 9953 || x === 9955 || x === 9960 || x === 9961 || x >= 9963 && x <= 9969 || x === 9972 || x >= 9974 && x <= 9977 || x === 9979 || x === 9980 || x === 9982 || x === 9983 || x === 10045 || x >= 10102 && x <= 10111 || x >= 11094 && x <= 11097 || x >= 12872 && x <= 12879 || x >= 57344 && x <= 63743 || x >= 65024 && x <= 65039 || x === 65533 || x >= 127232 && x <= 127242 || x >= 127248 && x <= 127277 || x >= 127280 && x <= 127337 || x >= 127344 && x <= 127373 || x === 127375 || x === 127376 || x >= 127387 && x <= 127404 || x >= 917760 && x <= 917999 || x >= 983040 && x <= 1048573 || x >= 1048576 && x <= 1114109;
|
|
65
|
-
}
|
|
66
|
-
function isFullWidth(x) {
|
|
67
|
-
return x === 12288 || x >= 65281 && x <= 65376 || x >= 65504 && x <= 65510;
|
|
68
|
-
}
|
|
69
|
-
function isWide(x) {
|
|
70
|
-
return x >= 4352 && x <= 4447 || x === 8986 || x === 8987 || x === 9001 || x === 9002 || x >= 9193 && x <= 9196 || x === 9200 || x === 9203 || x === 9725 || x === 9726 || x === 9748 || x === 9749 || x >= 9776 && x <= 9783 || x >= 9800 && x <= 9811 || x === 9855 || x >= 9866 && x <= 9871 || x === 9875 || x === 9889 || x === 9898 || x === 9899 || x === 9917 || x === 9918 || x === 9924 || x === 9925 || x === 9934 || x === 9940 || x === 9962 || x === 9970 || x === 9971 || x === 9973 || x === 9978 || x === 9981 || x === 9989 || x === 9994 || x === 9995 || x === 10024 || x === 10060 || x === 10062 || x >= 10067 && x <= 10069 || x === 10071 || x >= 10133 && x <= 10135 || x === 10160 || x === 10175 || x === 11035 || x === 11036 || x === 11088 || x === 11093 || x >= 11904 && x <= 11929 || x >= 11931 && x <= 12019 || x >= 12032 && x <= 12245 || x >= 12272 && x <= 12287 || x >= 12289 && x <= 12350 || x >= 12353 && x <= 12438 || x >= 12441 && x <= 12543 || x >= 12549 && x <= 12591 || x >= 12593 && x <= 12686 || x >= 12688 && x <= 12773 || x >= 12783 && x <= 12830 || x >= 12832 && x <= 12871 || x >= 12880 && x <= 42124 || x >= 42128 && x <= 42182 || x >= 43360 && x <= 43388 || x >= 44032 && x <= 55203 || x >= 63744 && x <= 64255 || x >= 65040 && x <= 65049 || x >= 65072 && x <= 65106 || x >= 65108 && x <= 65126 || x >= 65128 && x <= 65131 || x >= 94176 && x <= 94180 || x === 94192 || x === 94193 || x >= 94208 && x <= 100343 || x >= 100352 && x <= 101589 || x >= 101631 && x <= 101640 || x >= 110576 && x <= 110579 || x >= 110581 && x <= 110587 || x === 110589 || x === 110590 || x >= 110592 && x <= 110882 || x === 110898 || x >= 110928 && x <= 110930 || x === 110933 || x >= 110948 && x <= 110951 || x >= 110960 && x <= 111355 || x >= 119552 && x <= 119638 || x >= 119648 && x <= 119670 || x === 126980 || x === 127183 || x === 127374 || x >= 127377 && x <= 127386 || x >= 127488 && x <= 127490 || x >= 127504 && x <= 127547 || x >= 127552 && x <= 127560 || x === 127568 || x === 127569 || x >= 127584 && x <= 127589 || x >= 127744 && x <= 127776 || x >= 127789 && x <= 127797 || x >= 127799 && x <= 127868 || x >= 127870 && x <= 127891 || x >= 127904 && x <= 127946 || x >= 127951 && x <= 127955 || x >= 127968 && x <= 127984 || x === 127988 || x >= 127992 && x <= 128062 || x === 128064 || x >= 128066 && x <= 128252 || x >= 128255 && x <= 128317 || x >= 128331 && x <= 128334 || x >= 128336 && x <= 128359 || x === 128378 || x === 128405 || x === 128406 || x === 128420 || x >= 128507 && x <= 128591 || x >= 128640 && x <= 128709 || x === 128716 || x >= 128720 && x <= 128722 || x >= 128725 && x <= 128727 || x >= 128732 && x <= 128735 || x === 128747 || x === 128748 || x >= 128756 && x <= 128764 || x >= 128992 && x <= 129003 || x === 129008 || x >= 129292 && x <= 129338 || x >= 129340 && x <= 129349 || x >= 129351 && x <= 129535 || x >= 129648 && x <= 129660 || x >= 129664 && x <= 129673 || x >= 129679 && x <= 129734 || x >= 129742 && x <= 129756 || x >= 129759 && x <= 129769 || x >= 129776 && x <= 129784 || x >= 131072 && x <= 196605 || x >= 196608 && x <= 262141;
|
|
71
|
-
}
|
|
72
|
-
var init_lookup = __esm({
|
|
73
|
-
"node_modules/.pnpm/get-east-asian-width@1.3.0/node_modules/get-east-asian-width/lookup.js"() {
|
|
74
|
-
"use strict";
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
// node_modules/.pnpm/get-east-asian-width@1.3.0/node_modules/get-east-asian-width/index.js
|
|
79
|
-
function validate(codePoint) {
|
|
80
|
-
if (!Number.isSafeInteger(codePoint)) {
|
|
81
|
-
throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
|
|
85
|
-
validate(codePoint);
|
|
86
|
-
if (isFullWidth(codePoint) || isWide(codePoint) || ambiguousAsWide && isAmbiguous(codePoint)) {
|
|
87
|
-
return 2;
|
|
88
|
-
}
|
|
89
|
-
return 1;
|
|
90
|
-
}
|
|
91
|
-
var init_get_east_asian_width = __esm({
|
|
92
|
-
"node_modules/.pnpm/get-east-asian-width@1.3.0/node_modules/get-east-asian-width/index.js"() {
|
|
93
|
-
"use strict";
|
|
94
|
-
init_lookup();
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
// node_modules/.pnpm/emoji-regex@10.4.0/node_modules/emoji-regex/index.mjs
|
|
99
|
-
var emoji_regex_default;
|
|
100
|
-
var init_emoji_regex = __esm({
|
|
101
|
-
"node_modules/.pnpm/emoji-regex@10.4.0/node_modules/emoji-regex/index.mjs"() {
|
|
102
|
-
"use strict";
|
|
103
|
-
emoji_regex_default = () => {
|
|
104
|
-
return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
|
|
109
|
-
// node_modules/.pnpm/string-width@7.2.0/node_modules/string-width/index.js
|
|
110
|
-
function stringWidth(string, options = {}) {
|
|
111
|
-
if (typeof string !== "string" || string.length === 0) {
|
|
112
|
-
return 0;
|
|
113
|
-
}
|
|
114
|
-
const {
|
|
115
|
-
ambiguousIsNarrow = true,
|
|
116
|
-
countAnsiEscapeCodes = false
|
|
117
|
-
} = options;
|
|
118
|
-
if (!countAnsiEscapeCodes) {
|
|
119
|
-
string = stripAnsi(string);
|
|
120
|
-
}
|
|
121
|
-
if (string.length === 0) {
|
|
122
|
-
return 0;
|
|
123
|
-
}
|
|
124
|
-
let width = 0;
|
|
125
|
-
const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
|
|
126
|
-
for (const { segment: character } of segmenter.segment(string)) {
|
|
127
|
-
const codePoint = character.codePointAt(0);
|
|
128
|
-
if (codePoint <= 31 || codePoint >= 127 && codePoint <= 159) {
|
|
129
|
-
continue;
|
|
130
|
-
}
|
|
131
|
-
if (codePoint >= 8203 && codePoint <= 8207 || codePoint === 65279) {
|
|
132
|
-
continue;
|
|
133
|
-
}
|
|
134
|
-
if (codePoint >= 768 && codePoint <= 879 || codePoint >= 6832 && codePoint <= 6911 || codePoint >= 7616 && codePoint <= 7679 || codePoint >= 8400 && codePoint <= 8447 || codePoint >= 65056 && codePoint <= 65071) {
|
|
135
|
-
continue;
|
|
136
|
-
}
|
|
137
|
-
if (codePoint >= 55296 && codePoint <= 57343) {
|
|
138
|
-
continue;
|
|
139
|
-
}
|
|
140
|
-
if (codePoint >= 65024 && codePoint <= 65039) {
|
|
141
|
-
continue;
|
|
142
|
-
}
|
|
143
|
-
if (defaultIgnorableCodePointRegex.test(character)) {
|
|
144
|
-
continue;
|
|
145
|
-
}
|
|
146
|
-
if (emoji_regex_default().test(character)) {
|
|
147
|
-
width += 2;
|
|
148
|
-
continue;
|
|
149
|
-
}
|
|
150
|
-
width += eastAsianWidth(codePoint, eastAsianWidthOptions);
|
|
151
|
-
}
|
|
152
|
-
return width;
|
|
153
|
-
}
|
|
154
|
-
var segmenter, defaultIgnorableCodePointRegex;
|
|
155
|
-
var init_string_width = __esm({
|
|
156
|
-
"node_modules/.pnpm/string-width@7.2.0/node_modules/string-width/index.js"() {
|
|
157
|
-
"use strict";
|
|
158
|
-
init_strip_ansi();
|
|
159
|
-
init_get_east_asian_width();
|
|
160
|
-
init_emoji_regex();
|
|
161
|
-
segmenter = new Intl.Segmenter();
|
|
162
|
-
defaultIgnorableCodePointRegex = /^\p{Default_Ignorable_Code_Point}$/u;
|
|
163
|
-
}
|
|
164
|
-
});
|
|
165
|
-
|
|
166
|
-
// node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
167
|
-
function assembleStyles() {
|
|
168
|
-
const codes = /* @__PURE__ */ new Map();
|
|
169
|
-
for (const [groupName, group] of Object.entries(styles)) {
|
|
170
|
-
for (const [styleName, style] of Object.entries(group)) {
|
|
171
|
-
styles[styleName] = {
|
|
172
|
-
open: `\x1B[${style[0]}m`,
|
|
173
|
-
close: `\x1B[${style[1]}m`
|
|
174
|
-
};
|
|
175
|
-
group[styleName] = styles[styleName];
|
|
176
|
-
codes.set(style[0], style[1]);
|
|
177
|
-
}
|
|
178
|
-
Object.defineProperty(styles, groupName, {
|
|
179
|
-
value: group,
|
|
180
|
-
enumerable: false
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
Object.defineProperty(styles, "codes", {
|
|
184
|
-
value: codes,
|
|
185
|
-
enumerable: false
|
|
186
|
-
});
|
|
187
|
-
styles.color.close = "\x1B[39m";
|
|
188
|
-
styles.bgColor.close = "\x1B[49m";
|
|
189
|
-
styles.color.ansi = wrapAnsi16();
|
|
190
|
-
styles.color.ansi256 = wrapAnsi256();
|
|
191
|
-
styles.color.ansi16m = wrapAnsi16m();
|
|
192
|
-
styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
|
|
193
|
-
styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
|
|
194
|
-
styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
|
|
195
|
-
Object.defineProperties(styles, {
|
|
196
|
-
rgbToAnsi256: {
|
|
197
|
-
value(red, green, blue) {
|
|
198
|
-
if (red === green && green === blue) {
|
|
199
|
-
if (red < 8) {
|
|
200
|
-
return 16;
|
|
201
|
-
}
|
|
202
|
-
if (red > 248) {
|
|
203
|
-
return 231;
|
|
204
|
-
}
|
|
205
|
-
return Math.round((red - 8) / 247 * 24) + 232;
|
|
206
|
-
}
|
|
207
|
-
return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
|
|
208
|
-
},
|
|
209
|
-
enumerable: false
|
|
210
|
-
},
|
|
211
|
-
hexToRgb: {
|
|
212
|
-
value(hex) {
|
|
213
|
-
const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
|
|
214
|
-
if (!matches) {
|
|
215
|
-
return [0, 0, 0];
|
|
216
|
-
}
|
|
217
|
-
let [colorString] = matches;
|
|
218
|
-
if (colorString.length === 3) {
|
|
219
|
-
colorString = [...colorString].map((character) => character + character).join("");
|
|
220
|
-
}
|
|
221
|
-
const integer = Number.parseInt(colorString, 16);
|
|
222
|
-
return [
|
|
223
|
-
/* eslint-disable no-bitwise */
|
|
224
|
-
integer >> 16 & 255,
|
|
225
|
-
integer >> 8 & 255,
|
|
226
|
-
integer & 255
|
|
227
|
-
/* eslint-enable no-bitwise */
|
|
228
|
-
];
|
|
229
|
-
},
|
|
230
|
-
enumerable: false
|
|
231
|
-
},
|
|
232
|
-
hexToAnsi256: {
|
|
233
|
-
value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
|
|
234
|
-
enumerable: false
|
|
235
|
-
},
|
|
236
|
-
ansi256ToAnsi: {
|
|
237
|
-
value(code) {
|
|
238
|
-
if (code < 8) {
|
|
239
|
-
return 30 + code;
|
|
240
|
-
}
|
|
241
|
-
if (code < 16) {
|
|
242
|
-
return 90 + (code - 8);
|
|
243
|
-
}
|
|
244
|
-
let red;
|
|
245
|
-
let green;
|
|
246
|
-
let blue;
|
|
247
|
-
if (code >= 232) {
|
|
248
|
-
red = ((code - 232) * 10 + 8) / 255;
|
|
249
|
-
green = red;
|
|
250
|
-
blue = red;
|
|
251
|
-
} else {
|
|
252
|
-
code -= 16;
|
|
253
|
-
const remainder = code % 36;
|
|
254
|
-
red = Math.floor(code / 36) / 5;
|
|
255
|
-
green = Math.floor(remainder / 6) / 5;
|
|
256
|
-
blue = remainder % 6 / 5;
|
|
257
|
-
}
|
|
258
|
-
const value = Math.max(red, green, blue) * 2;
|
|
259
|
-
if (value === 0) {
|
|
260
|
-
return 30;
|
|
261
|
-
}
|
|
262
|
-
let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
|
|
263
|
-
if (value === 2) {
|
|
264
|
-
result += 60;
|
|
265
|
-
}
|
|
266
|
-
return result;
|
|
267
|
-
},
|
|
268
|
-
enumerable: false
|
|
269
|
-
},
|
|
270
|
-
rgbToAnsi: {
|
|
271
|
-
value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
|
|
272
|
-
enumerable: false
|
|
273
|
-
},
|
|
274
|
-
hexToAnsi: {
|
|
275
|
-
value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
|
|
276
|
-
enumerable: false
|
|
277
|
-
}
|
|
278
|
-
});
|
|
279
|
-
return styles;
|
|
280
|
-
}
|
|
281
|
-
var ANSI_BACKGROUND_OFFSET, wrapAnsi16, wrapAnsi256, wrapAnsi16m, styles, modifierNames, foregroundColorNames, backgroundColorNames, colorNames, ansiStyles, ansi_styles_default;
|
|
282
|
-
var init_ansi_styles = __esm({
|
|
283
|
-
"node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/vendor/ansi-styles/index.js"() {
|
|
284
|
-
"use strict";
|
|
285
|
-
ANSI_BACKGROUND_OFFSET = 10;
|
|
286
|
-
wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
|
|
287
|
-
wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
|
|
288
|
-
wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
|
|
289
|
-
styles = {
|
|
290
|
-
modifier: {
|
|
291
|
-
reset: [0, 0],
|
|
292
|
-
// 21 isn't widely supported and 22 does the same thing
|
|
293
|
-
bold: [1, 22],
|
|
294
|
-
dim: [2, 22],
|
|
295
|
-
italic: [3, 23],
|
|
296
|
-
underline: [4, 24],
|
|
297
|
-
overline: [53, 55],
|
|
298
|
-
inverse: [7, 27],
|
|
299
|
-
hidden: [8, 28],
|
|
300
|
-
strikethrough: [9, 29]
|
|
301
|
-
},
|
|
302
|
-
color: {
|
|
303
|
-
black: [30, 39],
|
|
304
|
-
red: [31, 39],
|
|
305
|
-
green: [32, 39],
|
|
306
|
-
yellow: [33, 39],
|
|
307
|
-
blue: [34, 39],
|
|
308
|
-
magenta: [35, 39],
|
|
309
|
-
cyan: [36, 39],
|
|
310
|
-
white: [37, 39],
|
|
311
|
-
// Bright color
|
|
312
|
-
blackBright: [90, 39],
|
|
313
|
-
gray: [90, 39],
|
|
314
|
-
// Alias of `blackBright`
|
|
315
|
-
grey: [90, 39],
|
|
316
|
-
// Alias of `blackBright`
|
|
317
|
-
redBright: [91, 39],
|
|
318
|
-
greenBright: [92, 39],
|
|
319
|
-
yellowBright: [93, 39],
|
|
320
|
-
blueBright: [94, 39],
|
|
321
|
-
magentaBright: [95, 39],
|
|
322
|
-
cyanBright: [96, 39],
|
|
323
|
-
whiteBright: [97, 39]
|
|
324
|
-
},
|
|
325
|
-
bgColor: {
|
|
326
|
-
bgBlack: [40, 49],
|
|
327
|
-
bgRed: [41, 49],
|
|
328
|
-
bgGreen: [42, 49],
|
|
329
|
-
bgYellow: [43, 49],
|
|
330
|
-
bgBlue: [44, 49],
|
|
331
|
-
bgMagenta: [45, 49],
|
|
332
|
-
bgCyan: [46, 49],
|
|
333
|
-
bgWhite: [47, 49],
|
|
334
|
-
// Bright color
|
|
335
|
-
bgBlackBright: [100, 49],
|
|
336
|
-
bgGray: [100, 49],
|
|
337
|
-
// Alias of `bgBlackBright`
|
|
338
|
-
bgGrey: [100, 49],
|
|
339
|
-
// Alias of `bgBlackBright`
|
|
340
|
-
bgRedBright: [101, 49],
|
|
341
|
-
bgGreenBright: [102, 49],
|
|
342
|
-
bgYellowBright: [103, 49],
|
|
343
|
-
bgBlueBright: [104, 49],
|
|
344
|
-
bgMagentaBright: [105, 49],
|
|
345
|
-
bgCyanBright: [106, 49],
|
|
346
|
-
bgWhiteBright: [107, 49]
|
|
347
|
-
}
|
|
348
|
-
};
|
|
349
|
-
modifierNames = Object.keys(styles.modifier);
|
|
350
|
-
foregroundColorNames = Object.keys(styles.color);
|
|
351
|
-
backgroundColorNames = Object.keys(styles.bgColor);
|
|
352
|
-
colorNames = [...foregroundColorNames, ...backgroundColorNames];
|
|
353
|
-
ansiStyles = assembleStyles();
|
|
354
|
-
ansi_styles_default = ansiStyles;
|
|
355
|
-
}
|
|
356
|
-
});
|
|
357
|
-
|
|
358
|
-
// node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/vendor/supports-color/index.js
|
|
359
|
-
import process from "process";
|
|
360
|
-
import os from "os";
|
|
361
|
-
import tty from "tty";
|
|
362
|
-
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process.argv) {
|
|
363
|
-
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
364
|
-
const position = argv.indexOf(prefix + flag);
|
|
365
|
-
const terminatorPosition = argv.indexOf("--");
|
|
366
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
367
|
-
}
|
|
368
|
-
function envForceColor() {
|
|
369
|
-
if ("FORCE_COLOR" in env) {
|
|
370
|
-
if (env.FORCE_COLOR === "true") {
|
|
371
|
-
return 1;
|
|
372
|
-
}
|
|
373
|
-
if (env.FORCE_COLOR === "false") {
|
|
374
|
-
return 0;
|
|
375
|
-
}
|
|
376
|
-
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
function translateLevel(level) {
|
|
380
|
-
if (level === 0) {
|
|
381
|
-
return false;
|
|
382
|
-
}
|
|
383
|
-
return {
|
|
384
|
-
level,
|
|
385
|
-
hasBasic: true,
|
|
386
|
-
has256: level >= 2,
|
|
387
|
-
has16m: level >= 3
|
|
388
|
-
};
|
|
389
|
-
}
|
|
390
|
-
function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
391
|
-
const noFlagForceColor = envForceColor();
|
|
392
|
-
if (noFlagForceColor !== void 0) {
|
|
393
|
-
flagForceColor = noFlagForceColor;
|
|
394
|
-
}
|
|
395
|
-
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
396
|
-
if (forceColor === 0) {
|
|
397
|
-
return 0;
|
|
398
|
-
}
|
|
399
|
-
if (sniffFlags) {
|
|
400
|
-
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
401
|
-
return 3;
|
|
402
|
-
}
|
|
403
|
-
if (hasFlag("color=256")) {
|
|
404
|
-
return 2;
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
if ("TF_BUILD" in env && "AGENT_NAME" in env) {
|
|
408
|
-
return 1;
|
|
409
|
-
}
|
|
410
|
-
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
411
|
-
return 0;
|
|
412
|
-
}
|
|
413
|
-
const min = forceColor || 0;
|
|
414
|
-
if (env.TERM === "dumb") {
|
|
415
|
-
return min;
|
|
416
|
-
}
|
|
417
|
-
if (process.platform === "win32") {
|
|
418
|
-
const osRelease = os.release().split(".");
|
|
419
|
-
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
420
|
-
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
421
|
-
}
|
|
422
|
-
return 1;
|
|
423
|
-
}
|
|
424
|
-
if ("CI" in env) {
|
|
425
|
-
if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => key in env)) {
|
|
426
|
-
return 3;
|
|
427
|
-
}
|
|
428
|
-
if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
429
|
-
return 1;
|
|
430
|
-
}
|
|
431
|
-
return min;
|
|
432
|
-
}
|
|
433
|
-
if ("TEAMCITY_VERSION" in env) {
|
|
434
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
435
|
-
}
|
|
436
|
-
if (env.COLORTERM === "truecolor") {
|
|
437
|
-
return 3;
|
|
438
|
-
}
|
|
439
|
-
if (env.TERM === "xterm-kitty") {
|
|
440
|
-
return 3;
|
|
441
|
-
}
|
|
442
|
-
if ("TERM_PROGRAM" in env) {
|
|
443
|
-
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
444
|
-
switch (env.TERM_PROGRAM) {
|
|
445
|
-
case "iTerm.app": {
|
|
446
|
-
return version >= 3 ? 3 : 2;
|
|
447
|
-
}
|
|
448
|
-
case "Apple_Terminal": {
|
|
449
|
-
return 2;
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
if (/-256(color)?$/i.test(env.TERM)) {
|
|
454
|
-
return 2;
|
|
455
|
-
}
|
|
456
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
457
|
-
return 1;
|
|
458
|
-
}
|
|
459
|
-
if ("COLORTERM" in env) {
|
|
460
|
-
return 1;
|
|
461
|
-
}
|
|
462
|
-
return min;
|
|
463
|
-
}
|
|
464
|
-
function createSupportsColor(stream, options = {}) {
|
|
465
|
-
const level = _supportsColor(stream, {
|
|
466
|
-
streamIsTTY: stream && stream.isTTY,
|
|
467
|
-
...options
|
|
468
|
-
});
|
|
469
|
-
return translateLevel(level);
|
|
470
|
-
}
|
|
471
|
-
var env, flagForceColor, supportsColor, supports_color_default;
|
|
472
|
-
var init_supports_color = __esm({
|
|
473
|
-
"node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/vendor/supports-color/index.js"() {
|
|
474
|
-
"use strict";
|
|
475
|
-
({ env } = process);
|
|
476
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
477
|
-
flagForceColor = 0;
|
|
478
|
-
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
479
|
-
flagForceColor = 1;
|
|
480
|
-
}
|
|
481
|
-
supportsColor = {
|
|
482
|
-
stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
|
|
483
|
-
stderr: createSupportsColor({ isTTY: tty.isatty(2) })
|
|
484
|
-
};
|
|
485
|
-
supports_color_default = supportsColor;
|
|
486
|
-
}
|
|
487
|
-
});
|
|
488
|
-
|
|
489
|
-
// node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/utilities.js
|
|
490
|
-
function stringReplaceAll(string, substring, replacer) {
|
|
491
|
-
let index = string.indexOf(substring);
|
|
492
|
-
if (index === -1) {
|
|
493
|
-
return string;
|
|
494
|
-
}
|
|
495
|
-
const substringLength = substring.length;
|
|
496
|
-
let endIndex = 0;
|
|
497
|
-
let returnValue = "";
|
|
498
|
-
do {
|
|
499
|
-
returnValue += string.slice(endIndex, index) + substring + replacer;
|
|
500
|
-
endIndex = index + substringLength;
|
|
501
|
-
index = string.indexOf(substring, endIndex);
|
|
502
|
-
} while (index !== -1);
|
|
503
|
-
returnValue += string.slice(endIndex);
|
|
504
|
-
return returnValue;
|
|
505
|
-
}
|
|
506
|
-
function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
507
|
-
let endIndex = 0;
|
|
508
|
-
let returnValue = "";
|
|
509
|
-
do {
|
|
510
|
-
const gotCR = string[index - 1] === "\r";
|
|
511
|
-
returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
|
|
512
|
-
endIndex = index + 1;
|
|
513
|
-
index = string.indexOf("\n", endIndex);
|
|
514
|
-
} while (index !== -1);
|
|
515
|
-
returnValue += string.slice(endIndex);
|
|
516
|
-
return returnValue;
|
|
517
|
-
}
|
|
518
|
-
var init_utilities = __esm({
|
|
519
|
-
"node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/utilities.js"() {
|
|
520
|
-
"use strict";
|
|
521
|
-
}
|
|
522
|
-
});
|
|
523
|
-
|
|
524
|
-
// node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/index.js
|
|
525
|
-
function createChalk(options) {
|
|
526
|
-
return chalkFactory(options);
|
|
527
|
-
}
|
|
528
|
-
var stdoutColor, stderrColor, GENERATOR, STYLER, IS_EMPTY, levelMapping, styles2, applyOptions, chalkFactory, getModelAnsi, usedModels, proto, createStyler, createBuilder, applyStyle, chalk, chalkStderr, source_default;
|
|
529
|
-
var init_source = __esm({
|
|
530
|
-
"node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/index.js"() {
|
|
531
|
-
"use strict";
|
|
532
|
-
init_ansi_styles();
|
|
533
|
-
init_supports_color();
|
|
534
|
-
init_utilities();
|
|
535
|
-
({ stdout: stdoutColor, stderr: stderrColor } = supports_color_default);
|
|
536
|
-
GENERATOR = Symbol("GENERATOR");
|
|
537
|
-
STYLER = Symbol("STYLER");
|
|
538
|
-
IS_EMPTY = Symbol("IS_EMPTY");
|
|
539
|
-
levelMapping = [
|
|
540
|
-
"ansi",
|
|
541
|
-
"ansi",
|
|
542
|
-
"ansi256",
|
|
543
|
-
"ansi16m"
|
|
544
|
-
];
|
|
545
|
-
styles2 = /* @__PURE__ */ Object.create(null);
|
|
546
|
-
applyOptions = (object, options = {}) => {
|
|
547
|
-
if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
|
|
548
|
-
throw new Error("The `level` option should be an integer from 0 to 3");
|
|
549
|
-
}
|
|
550
|
-
const colorLevel = stdoutColor ? stdoutColor.level : 0;
|
|
551
|
-
object.level = options.level === void 0 ? colorLevel : options.level;
|
|
552
|
-
};
|
|
553
|
-
chalkFactory = (options) => {
|
|
554
|
-
const chalk2 = (...strings) => strings.join(" ");
|
|
555
|
-
applyOptions(chalk2, options);
|
|
556
|
-
Object.setPrototypeOf(chalk2, createChalk.prototype);
|
|
557
|
-
return chalk2;
|
|
558
|
-
};
|
|
559
|
-
Object.setPrototypeOf(createChalk.prototype, Function.prototype);
|
|
560
|
-
for (const [styleName, style] of Object.entries(ansi_styles_default)) {
|
|
561
|
-
styles2[styleName] = {
|
|
562
|
-
get() {
|
|
563
|
-
const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
|
|
564
|
-
Object.defineProperty(this, styleName, { value: builder });
|
|
565
|
-
return builder;
|
|
566
|
-
}
|
|
567
|
-
};
|
|
568
|
-
}
|
|
569
|
-
styles2.visible = {
|
|
570
|
-
get() {
|
|
571
|
-
const builder = createBuilder(this, this[STYLER], true);
|
|
572
|
-
Object.defineProperty(this, "visible", { value: builder });
|
|
573
|
-
return builder;
|
|
574
|
-
}
|
|
575
|
-
};
|
|
576
|
-
getModelAnsi = (model, level, type, ...arguments_) => {
|
|
577
|
-
if (model === "rgb") {
|
|
578
|
-
if (level === "ansi16m") {
|
|
579
|
-
return ansi_styles_default[type].ansi16m(...arguments_);
|
|
580
|
-
}
|
|
581
|
-
if (level === "ansi256") {
|
|
582
|
-
return ansi_styles_default[type].ansi256(ansi_styles_default.rgbToAnsi256(...arguments_));
|
|
583
|
-
}
|
|
584
|
-
return ansi_styles_default[type].ansi(ansi_styles_default.rgbToAnsi(...arguments_));
|
|
585
|
-
}
|
|
586
|
-
if (model === "hex") {
|
|
587
|
-
return getModelAnsi("rgb", level, type, ...ansi_styles_default.hexToRgb(...arguments_));
|
|
588
|
-
}
|
|
589
|
-
return ansi_styles_default[type][model](...arguments_);
|
|
590
|
-
};
|
|
591
|
-
usedModels = ["rgb", "hex", "ansi256"];
|
|
592
|
-
for (const model of usedModels) {
|
|
593
|
-
styles2[model] = {
|
|
594
|
-
get() {
|
|
595
|
-
const { level } = this;
|
|
596
|
-
return function(...arguments_) {
|
|
597
|
-
const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansi_styles_default.color.close, this[STYLER]);
|
|
598
|
-
return createBuilder(this, styler, this[IS_EMPTY]);
|
|
599
|
-
};
|
|
600
|
-
}
|
|
601
|
-
};
|
|
602
|
-
const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
|
|
603
|
-
styles2[bgModel] = {
|
|
604
|
-
get() {
|
|
605
|
-
const { level } = this;
|
|
606
|
-
return function(...arguments_) {
|
|
607
|
-
const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansi_styles_default.bgColor.close, this[STYLER]);
|
|
608
|
-
return createBuilder(this, styler, this[IS_EMPTY]);
|
|
609
|
-
};
|
|
610
|
-
}
|
|
611
|
-
};
|
|
612
|
-
}
|
|
613
|
-
proto = Object.defineProperties(() => {
|
|
614
|
-
}, {
|
|
615
|
-
...styles2,
|
|
616
|
-
level: {
|
|
617
|
-
enumerable: true,
|
|
618
|
-
get() {
|
|
619
|
-
return this[GENERATOR].level;
|
|
620
|
-
},
|
|
621
|
-
set(level) {
|
|
622
|
-
this[GENERATOR].level = level;
|
|
623
|
-
}
|
|
624
|
-
}
|
|
625
|
-
});
|
|
626
|
-
createStyler = (open, close, parent) => {
|
|
627
|
-
let openAll;
|
|
628
|
-
let closeAll;
|
|
629
|
-
if (parent === void 0) {
|
|
630
|
-
openAll = open;
|
|
631
|
-
closeAll = close;
|
|
632
|
-
} else {
|
|
633
|
-
openAll = parent.openAll + open;
|
|
634
|
-
closeAll = close + parent.closeAll;
|
|
635
|
-
}
|
|
636
|
-
return {
|
|
637
|
-
open,
|
|
638
|
-
close,
|
|
639
|
-
openAll,
|
|
640
|
-
closeAll,
|
|
641
|
-
parent
|
|
642
|
-
};
|
|
643
|
-
};
|
|
644
|
-
createBuilder = (self, _styler, _isEmpty) => {
|
|
645
|
-
const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
|
|
646
|
-
Object.setPrototypeOf(builder, proto);
|
|
647
|
-
builder[GENERATOR] = self;
|
|
648
|
-
builder[STYLER] = _styler;
|
|
649
|
-
builder[IS_EMPTY] = _isEmpty;
|
|
650
|
-
return builder;
|
|
651
|
-
};
|
|
652
|
-
applyStyle = (self, string) => {
|
|
653
|
-
if (self.level <= 0 || !string) {
|
|
654
|
-
return self[IS_EMPTY] ? "" : string;
|
|
655
|
-
}
|
|
656
|
-
let styler = self[STYLER];
|
|
657
|
-
if (styler === void 0) {
|
|
658
|
-
return string;
|
|
659
|
-
}
|
|
660
|
-
const { openAll, closeAll } = styler;
|
|
661
|
-
if (string.includes("\x1B")) {
|
|
662
|
-
while (styler !== void 0) {
|
|
663
|
-
string = stringReplaceAll(string, styler.close, styler.open);
|
|
664
|
-
styler = styler.parent;
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
|
-
const lfIndex = string.indexOf("\n");
|
|
668
|
-
if (lfIndex !== -1) {
|
|
669
|
-
string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
|
|
670
|
-
}
|
|
671
|
-
return openAll + string + closeAll;
|
|
672
|
-
};
|
|
673
|
-
Object.defineProperties(createChalk.prototype, styles2);
|
|
674
|
-
chalk = createChalk();
|
|
675
|
-
chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
676
|
-
source_default = chalk;
|
|
677
|
-
}
|
|
678
|
-
});
|
|
679
|
-
|
|
680
|
-
// node_modules/.pnpm/widest-line@5.0.0/node_modules/widest-line/index.js
|
|
681
|
-
function widestLine(string) {
|
|
682
|
-
let lineWidth = 0;
|
|
683
|
-
for (const line of string.split("\n")) {
|
|
684
|
-
lineWidth = Math.max(lineWidth, stringWidth(line));
|
|
685
|
-
}
|
|
686
|
-
return lineWidth;
|
|
687
|
-
}
|
|
688
|
-
var init_widest_line = __esm({
|
|
689
|
-
"node_modules/.pnpm/widest-line@5.0.0/node_modules/widest-line/index.js"() {
|
|
690
|
-
"use strict";
|
|
691
|
-
init_string_width();
|
|
692
|
-
}
|
|
693
|
-
});
|
|
694
|
-
|
|
695
|
-
// node_modules/.pnpm/cli-boxes@3.0.0/node_modules/cli-boxes/boxes.json
|
|
696
|
-
var require_boxes = __commonJS({
|
|
697
|
-
"node_modules/.pnpm/cli-boxes@3.0.0/node_modules/cli-boxes/boxes.json"(exports, module) {
|
|
698
|
-
module.exports = {
|
|
699
|
-
single: {
|
|
700
|
-
topLeft: "\u250C",
|
|
701
|
-
top: "\u2500",
|
|
702
|
-
topRight: "\u2510",
|
|
703
|
-
right: "\u2502",
|
|
704
|
-
bottomRight: "\u2518",
|
|
705
|
-
bottom: "\u2500",
|
|
706
|
-
bottomLeft: "\u2514",
|
|
707
|
-
left: "\u2502"
|
|
708
|
-
},
|
|
709
|
-
double: {
|
|
710
|
-
topLeft: "\u2554",
|
|
711
|
-
top: "\u2550",
|
|
712
|
-
topRight: "\u2557",
|
|
713
|
-
right: "\u2551",
|
|
714
|
-
bottomRight: "\u255D",
|
|
715
|
-
bottom: "\u2550",
|
|
716
|
-
bottomLeft: "\u255A",
|
|
717
|
-
left: "\u2551"
|
|
718
|
-
},
|
|
719
|
-
round: {
|
|
720
|
-
topLeft: "\u256D",
|
|
721
|
-
top: "\u2500",
|
|
722
|
-
topRight: "\u256E",
|
|
723
|
-
right: "\u2502",
|
|
724
|
-
bottomRight: "\u256F",
|
|
725
|
-
bottom: "\u2500",
|
|
726
|
-
bottomLeft: "\u2570",
|
|
727
|
-
left: "\u2502"
|
|
728
|
-
},
|
|
729
|
-
bold: {
|
|
730
|
-
topLeft: "\u250F",
|
|
731
|
-
top: "\u2501",
|
|
732
|
-
topRight: "\u2513",
|
|
733
|
-
right: "\u2503",
|
|
734
|
-
bottomRight: "\u251B",
|
|
735
|
-
bottom: "\u2501",
|
|
736
|
-
bottomLeft: "\u2517",
|
|
737
|
-
left: "\u2503"
|
|
738
|
-
},
|
|
739
|
-
singleDouble: {
|
|
740
|
-
topLeft: "\u2553",
|
|
741
|
-
top: "\u2500",
|
|
742
|
-
topRight: "\u2556",
|
|
743
|
-
right: "\u2551",
|
|
744
|
-
bottomRight: "\u255C",
|
|
745
|
-
bottom: "\u2500",
|
|
746
|
-
bottomLeft: "\u2559",
|
|
747
|
-
left: "\u2551"
|
|
748
|
-
},
|
|
749
|
-
doubleSingle: {
|
|
750
|
-
topLeft: "\u2552",
|
|
751
|
-
top: "\u2550",
|
|
752
|
-
topRight: "\u2555",
|
|
753
|
-
right: "\u2502",
|
|
754
|
-
bottomRight: "\u255B",
|
|
755
|
-
bottom: "\u2550",
|
|
756
|
-
bottomLeft: "\u2558",
|
|
757
|
-
left: "\u2502"
|
|
758
|
-
},
|
|
759
|
-
classic: {
|
|
760
|
-
topLeft: "+",
|
|
761
|
-
top: "-",
|
|
762
|
-
topRight: "+",
|
|
763
|
-
right: "|",
|
|
764
|
-
bottomRight: "+",
|
|
765
|
-
bottom: "-",
|
|
766
|
-
bottomLeft: "+",
|
|
767
|
-
left: "|"
|
|
768
|
-
},
|
|
769
|
-
arrow: {
|
|
770
|
-
topLeft: "\u2198",
|
|
771
|
-
top: "\u2193",
|
|
772
|
-
topRight: "\u2199",
|
|
773
|
-
right: "\u2190",
|
|
774
|
-
bottomRight: "\u2196",
|
|
775
|
-
bottom: "\u2191",
|
|
776
|
-
bottomLeft: "\u2197",
|
|
777
|
-
left: "\u2192"
|
|
778
|
-
}
|
|
779
|
-
};
|
|
780
|
-
}
|
|
781
|
-
});
|
|
782
|
-
|
|
783
|
-
// node_modules/.pnpm/cli-boxes@3.0.0/node_modules/cli-boxes/index.js
|
|
784
|
-
var require_cli_boxes = __commonJS({
|
|
785
|
-
"node_modules/.pnpm/cli-boxes@3.0.0/node_modules/cli-boxes/index.js"(exports, module) {
|
|
786
|
-
"use strict";
|
|
787
|
-
var cliBoxes2 = require_boxes();
|
|
788
|
-
module.exports = cliBoxes2;
|
|
789
|
-
module.exports.default = cliBoxes2;
|
|
790
|
-
}
|
|
791
|
-
});
|
|
792
|
-
|
|
793
|
-
// node_modules/.pnpm/camelcase@8.0.0/node_modules/camelcase/index.js
|
|
794
|
-
function camelCase(input, options) {
|
|
795
|
-
if (!(typeof input === "string" || Array.isArray(input))) {
|
|
796
|
-
throw new TypeError("Expected the input to be `string | string[]`");
|
|
797
|
-
}
|
|
798
|
-
options = {
|
|
799
|
-
pascalCase: false,
|
|
800
|
-
preserveConsecutiveUppercase: false,
|
|
801
|
-
...options
|
|
802
|
-
};
|
|
803
|
-
if (Array.isArray(input)) {
|
|
804
|
-
input = input.map((x) => x.trim()).filter((x) => x.length).join("-");
|
|
805
|
-
} else {
|
|
806
|
-
input = input.trim();
|
|
807
|
-
}
|
|
808
|
-
if (input.length === 0) {
|
|
809
|
-
return "";
|
|
810
|
-
}
|
|
811
|
-
const toLowerCase = options.locale === false ? (string) => string.toLowerCase() : (string) => string.toLocaleLowerCase(options.locale);
|
|
812
|
-
const toUpperCase = options.locale === false ? (string) => string.toUpperCase() : (string) => string.toLocaleUpperCase(options.locale);
|
|
813
|
-
if (input.length === 1) {
|
|
814
|
-
if (SEPARATORS.test(input)) {
|
|
815
|
-
return "";
|
|
816
|
-
}
|
|
817
|
-
return options.pascalCase ? toUpperCase(input) : toLowerCase(input);
|
|
818
|
-
}
|
|
819
|
-
const hasUpperCase = input !== toLowerCase(input);
|
|
820
|
-
if (hasUpperCase) {
|
|
821
|
-
input = preserveCamelCase(input, toLowerCase, toUpperCase, options.preserveConsecutiveUppercase);
|
|
822
|
-
}
|
|
823
|
-
input = input.replace(LEADING_SEPARATORS, "");
|
|
824
|
-
input = options.preserveConsecutiveUppercase ? preserveConsecutiveUppercase(input, toLowerCase) : toLowerCase(input);
|
|
825
|
-
if (options.pascalCase) {
|
|
826
|
-
input = toUpperCase(input.charAt(0)) + input.slice(1);
|
|
827
|
-
}
|
|
828
|
-
return postProcess(input, toUpperCase);
|
|
829
|
-
}
|
|
830
|
-
var UPPERCASE, LOWERCASE, LEADING_CAPITAL, IDENTIFIER, SEPARATORS, LEADING_SEPARATORS, SEPARATORS_AND_IDENTIFIER, NUMBERS_AND_IDENTIFIER, preserveCamelCase, preserveConsecutiveUppercase, postProcess;
|
|
831
|
-
var init_camelcase = __esm({
|
|
832
|
-
"node_modules/.pnpm/camelcase@8.0.0/node_modules/camelcase/index.js"() {
|
|
833
|
-
"use strict";
|
|
834
|
-
UPPERCASE = /[\p{Lu}]/u;
|
|
835
|
-
LOWERCASE = /[\p{Ll}]/u;
|
|
836
|
-
LEADING_CAPITAL = /^[\p{Lu}](?![\p{Lu}])/gu;
|
|
837
|
-
IDENTIFIER = /([\p{Alpha}\p{N}_]|$)/u;
|
|
838
|
-
SEPARATORS = /[_.\- ]+/;
|
|
839
|
-
LEADING_SEPARATORS = new RegExp("^" + SEPARATORS.source);
|
|
840
|
-
SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, "gu");
|
|
841
|
-
NUMBERS_AND_IDENTIFIER = new RegExp("\\d+" + IDENTIFIER.source, "gu");
|
|
842
|
-
preserveCamelCase = (string, toLowerCase, toUpperCase, preserveConsecutiveUppercase2) => {
|
|
843
|
-
let isLastCharLower = false;
|
|
844
|
-
let isLastCharUpper = false;
|
|
845
|
-
let isLastLastCharUpper = false;
|
|
846
|
-
let isLastLastCharPreserved = false;
|
|
847
|
-
for (let index = 0; index < string.length; index++) {
|
|
848
|
-
const character = string[index];
|
|
849
|
-
isLastLastCharPreserved = index > 2 ? string[index - 3] === "-" : true;
|
|
850
|
-
if (isLastCharLower && UPPERCASE.test(character)) {
|
|
851
|
-
string = string.slice(0, index) + "-" + string.slice(index);
|
|
852
|
-
isLastCharLower = false;
|
|
853
|
-
isLastLastCharUpper = isLastCharUpper;
|
|
854
|
-
isLastCharUpper = true;
|
|
855
|
-
index++;
|
|
856
|
-
} else if (isLastCharUpper && isLastLastCharUpper && LOWERCASE.test(character) && (!isLastLastCharPreserved || preserveConsecutiveUppercase2)) {
|
|
857
|
-
string = string.slice(0, index - 1) + "-" + string.slice(index - 1);
|
|
858
|
-
isLastLastCharUpper = isLastCharUpper;
|
|
859
|
-
isLastCharUpper = false;
|
|
860
|
-
isLastCharLower = true;
|
|
861
|
-
} else {
|
|
862
|
-
isLastCharLower = toLowerCase(character) === character && toUpperCase(character) !== character;
|
|
863
|
-
isLastLastCharUpper = isLastCharUpper;
|
|
864
|
-
isLastCharUpper = toUpperCase(character) === character && toLowerCase(character) !== character;
|
|
865
|
-
}
|
|
866
|
-
}
|
|
867
|
-
return string;
|
|
868
|
-
};
|
|
869
|
-
preserveConsecutiveUppercase = (input, toLowerCase) => {
|
|
870
|
-
LEADING_CAPITAL.lastIndex = 0;
|
|
871
|
-
return input.replaceAll(LEADING_CAPITAL, (match) => toLowerCase(match));
|
|
872
|
-
};
|
|
873
|
-
postProcess = (input, toUpperCase) => {
|
|
874
|
-
SEPARATORS_AND_IDENTIFIER.lastIndex = 0;
|
|
875
|
-
NUMBERS_AND_IDENTIFIER.lastIndex = 0;
|
|
876
|
-
return input.replaceAll(NUMBERS_AND_IDENTIFIER, (match, pattern, offset) => ["_", "-"].includes(input.charAt(offset + match.length)) ? match : toUpperCase(match)).replaceAll(SEPARATORS_AND_IDENTIFIER, (_, identifier) => toUpperCase(identifier));
|
|
877
|
-
};
|
|
878
|
-
}
|
|
879
|
-
});
|
|
880
|
-
|
|
881
|
-
// node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js
|
|
882
|
-
var require_ansi_regex = __commonJS({
|
|
883
|
-
"node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js"(exports, module) {
|
|
884
|
-
"use strict";
|
|
885
|
-
module.exports = ({ onlyFirst = false } = {}) => {
|
|
886
|
-
const pattern = [
|
|
887
|
-
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
|
|
888
|
-
"(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
|
|
889
|
-
].join("|");
|
|
890
|
-
return new RegExp(pattern, onlyFirst ? void 0 : "g");
|
|
891
|
-
};
|
|
892
|
-
}
|
|
893
|
-
});
|
|
894
|
-
|
|
895
|
-
// node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js
|
|
896
|
-
var require_strip_ansi = __commonJS({
|
|
897
|
-
"node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js"(exports, module) {
|
|
898
|
-
"use strict";
|
|
899
|
-
var ansiRegex2 = require_ansi_regex();
|
|
900
|
-
module.exports = (string) => typeof string === "string" ? string.replace(ansiRegex2(), "") : string;
|
|
901
|
-
}
|
|
902
|
-
});
|
|
903
|
-
|
|
904
|
-
// node_modules/.pnpm/is-fullwidth-code-point@3.0.0/node_modules/is-fullwidth-code-point/index.js
|
|
905
|
-
var require_is_fullwidth_code_point = __commonJS({
|
|
906
|
-
"node_modules/.pnpm/is-fullwidth-code-point@3.0.0/node_modules/is-fullwidth-code-point/index.js"(exports, module) {
|
|
907
|
-
"use strict";
|
|
908
|
-
var isFullwidthCodePoint = (codePoint) => {
|
|
909
|
-
if (Number.isNaN(codePoint)) {
|
|
910
|
-
return false;
|
|
911
|
-
}
|
|
912
|
-
if (codePoint >= 4352 && (codePoint <= 4447 || // Hangul Jamo
|
|
913
|
-
codePoint === 9001 || // LEFT-POINTING ANGLE BRACKET
|
|
914
|
-
codePoint === 9002 || // RIGHT-POINTING ANGLE BRACKET
|
|
915
|
-
// CJK Radicals Supplement .. Enclosed CJK Letters and Months
|
|
916
|
-
11904 <= codePoint && codePoint <= 12871 && codePoint !== 12351 || // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A
|
|
917
|
-
12880 <= codePoint && codePoint <= 19903 || // CJK Unified Ideographs .. Yi Radicals
|
|
918
|
-
19968 <= codePoint && codePoint <= 42182 || // Hangul Jamo Extended-A
|
|
919
|
-
43360 <= codePoint && codePoint <= 43388 || // Hangul Syllables
|
|
920
|
-
44032 <= codePoint && codePoint <= 55203 || // CJK Compatibility Ideographs
|
|
921
|
-
63744 <= codePoint && codePoint <= 64255 || // Vertical Forms
|
|
922
|
-
65040 <= codePoint && codePoint <= 65049 || // CJK Compatibility Forms .. Small Form Variants
|
|
923
|
-
65072 <= codePoint && codePoint <= 65131 || // Halfwidth and Fullwidth Forms
|
|
924
|
-
65281 <= codePoint && codePoint <= 65376 || 65504 <= codePoint && codePoint <= 65510 || // Kana Supplement
|
|
925
|
-
110592 <= codePoint && codePoint <= 110593 || // Enclosed Ideographic Supplement
|
|
926
|
-
127488 <= codePoint && codePoint <= 127569 || // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
|
|
927
|
-
131072 <= codePoint && codePoint <= 262141)) {
|
|
928
|
-
return true;
|
|
929
|
-
}
|
|
930
|
-
return false;
|
|
931
|
-
};
|
|
932
|
-
module.exports = isFullwidthCodePoint;
|
|
933
|
-
module.exports.default = isFullwidthCodePoint;
|
|
934
|
-
}
|
|
935
|
-
});
|
|
936
|
-
|
|
937
|
-
// node_modules/.pnpm/emoji-regex@8.0.0/node_modules/emoji-regex/index.js
|
|
938
|
-
var require_emoji_regex = __commonJS({
|
|
939
|
-
"node_modules/.pnpm/emoji-regex@8.0.0/node_modules/emoji-regex/index.js"(exports, module) {
|
|
940
|
-
"use strict";
|
|
941
|
-
module.exports = function() {
|
|
942
|
-
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;
|
|
943
|
-
};
|
|
944
|
-
}
|
|
945
|
-
});
|
|
946
|
-
|
|
947
|
-
// node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js
|
|
948
|
-
var require_string_width = __commonJS({
|
|
949
|
-
"node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js"(exports, module) {
|
|
950
|
-
"use strict";
|
|
951
|
-
var stripAnsi2 = require_strip_ansi();
|
|
952
|
-
var isFullwidthCodePoint = require_is_fullwidth_code_point();
|
|
953
|
-
var emojiRegex = require_emoji_regex();
|
|
954
|
-
var stringWidth2 = (string) => {
|
|
955
|
-
if (typeof string !== "string" || string.length === 0) {
|
|
956
|
-
return 0;
|
|
957
|
-
}
|
|
958
|
-
string = stripAnsi2(string);
|
|
959
|
-
if (string.length === 0) {
|
|
960
|
-
return 0;
|
|
961
|
-
}
|
|
962
|
-
string = string.replace(emojiRegex(), " ");
|
|
963
|
-
let width = 0;
|
|
964
|
-
for (let i = 0; i < string.length; i++) {
|
|
965
|
-
const code = string.codePointAt(i);
|
|
966
|
-
if (code <= 31 || code >= 127 && code <= 159) {
|
|
967
|
-
continue;
|
|
968
|
-
}
|
|
969
|
-
if (code >= 768 && code <= 879) {
|
|
970
|
-
continue;
|
|
971
|
-
}
|
|
972
|
-
if (code > 65535) {
|
|
973
|
-
i++;
|
|
974
|
-
}
|
|
975
|
-
width += isFullwidthCodePoint(code) ? 2 : 1;
|
|
976
|
-
}
|
|
977
|
-
return width;
|
|
978
|
-
};
|
|
979
|
-
module.exports = stringWidth2;
|
|
980
|
-
module.exports.default = stringWidth2;
|
|
981
|
-
}
|
|
982
|
-
});
|
|
983
|
-
|
|
984
|
-
// node_modules/.pnpm/ansi-align@3.0.1/node_modules/ansi-align/index.js
|
|
985
|
-
var require_ansi_align = __commonJS({
|
|
986
|
-
"node_modules/.pnpm/ansi-align@3.0.1/node_modules/ansi-align/index.js"(exports, module) {
|
|
987
|
-
"use strict";
|
|
988
|
-
var stringWidth2 = require_string_width();
|
|
989
|
-
function ansiAlign2(text, opts) {
|
|
990
|
-
if (!text) return text;
|
|
991
|
-
opts = opts || {};
|
|
992
|
-
const align = opts.align || "center";
|
|
993
|
-
if (align === "left") return text;
|
|
994
|
-
const split = opts.split || "\n";
|
|
995
|
-
const pad = opts.pad || " ";
|
|
996
|
-
const widthDiffFn = align !== "right" ? halfDiff : fullDiff;
|
|
997
|
-
let returnString = false;
|
|
998
|
-
if (!Array.isArray(text)) {
|
|
999
|
-
returnString = true;
|
|
1000
|
-
text = String(text).split(split);
|
|
1001
|
-
}
|
|
1002
|
-
let width;
|
|
1003
|
-
let maxWidth = 0;
|
|
1004
|
-
text = text.map(function(str) {
|
|
1005
|
-
str = String(str);
|
|
1006
|
-
width = stringWidth2(str);
|
|
1007
|
-
maxWidth = Math.max(width, maxWidth);
|
|
1008
|
-
return {
|
|
1009
|
-
str,
|
|
1010
|
-
width
|
|
1011
|
-
};
|
|
1012
|
-
}).map(function(obj) {
|
|
1013
|
-
return new Array(widthDiffFn(maxWidth, obj.width) + 1).join(pad) + obj.str;
|
|
1014
|
-
});
|
|
1015
|
-
return returnString ? text.join(split) : text;
|
|
1016
|
-
}
|
|
1017
|
-
ansiAlign2.left = function left(text) {
|
|
1018
|
-
return ansiAlign2(text, { align: "left" });
|
|
1019
|
-
};
|
|
1020
|
-
ansiAlign2.center = function center(text) {
|
|
1021
|
-
return ansiAlign2(text, { align: "center" });
|
|
1022
|
-
};
|
|
1023
|
-
ansiAlign2.right = function right(text) {
|
|
1024
|
-
return ansiAlign2(text, { align: "right" });
|
|
1025
|
-
};
|
|
1026
|
-
module.exports = ansiAlign2;
|
|
1027
|
-
function halfDiff(maxWidth, curWidth) {
|
|
1028
|
-
return Math.floor((maxWidth - curWidth) / 2);
|
|
1029
|
-
}
|
|
1030
|
-
function fullDiff(maxWidth, curWidth) {
|
|
1031
|
-
return maxWidth - curWidth;
|
|
1032
|
-
}
|
|
1033
|
-
}
|
|
1034
|
-
});
|
|
1035
|
-
|
|
1036
|
-
// node_modules/.pnpm/ansi-styles@6.2.1/node_modules/ansi-styles/index.js
|
|
1037
|
-
function assembleStyles2() {
|
|
1038
|
-
const codes = /* @__PURE__ */ new Map();
|
|
1039
|
-
for (const [groupName, group] of Object.entries(styles3)) {
|
|
1040
|
-
for (const [styleName, style] of Object.entries(group)) {
|
|
1041
|
-
styles3[styleName] = {
|
|
1042
|
-
open: `\x1B[${style[0]}m`,
|
|
1043
|
-
close: `\x1B[${style[1]}m`
|
|
1044
|
-
};
|
|
1045
|
-
group[styleName] = styles3[styleName];
|
|
1046
|
-
codes.set(style[0], style[1]);
|
|
1047
|
-
}
|
|
1048
|
-
Object.defineProperty(styles3, groupName, {
|
|
1049
|
-
value: group,
|
|
1050
|
-
enumerable: false
|
|
1051
|
-
});
|
|
1052
|
-
}
|
|
1053
|
-
Object.defineProperty(styles3, "codes", {
|
|
1054
|
-
value: codes,
|
|
1055
|
-
enumerable: false
|
|
1056
|
-
});
|
|
1057
|
-
styles3.color.close = "\x1B[39m";
|
|
1058
|
-
styles3.bgColor.close = "\x1B[49m";
|
|
1059
|
-
styles3.color.ansi = wrapAnsi162();
|
|
1060
|
-
styles3.color.ansi256 = wrapAnsi2562();
|
|
1061
|
-
styles3.color.ansi16m = wrapAnsi16m2();
|
|
1062
|
-
styles3.bgColor.ansi = wrapAnsi162(ANSI_BACKGROUND_OFFSET2);
|
|
1063
|
-
styles3.bgColor.ansi256 = wrapAnsi2562(ANSI_BACKGROUND_OFFSET2);
|
|
1064
|
-
styles3.bgColor.ansi16m = wrapAnsi16m2(ANSI_BACKGROUND_OFFSET2);
|
|
1065
|
-
Object.defineProperties(styles3, {
|
|
1066
|
-
rgbToAnsi256: {
|
|
1067
|
-
value: (red, green, blue) => {
|
|
1068
|
-
if (red === green && green === blue) {
|
|
1069
|
-
if (red < 8) {
|
|
1070
|
-
return 16;
|
|
1071
|
-
}
|
|
1072
|
-
if (red > 248) {
|
|
1073
|
-
return 231;
|
|
1074
|
-
}
|
|
1075
|
-
return Math.round((red - 8) / 247 * 24) + 232;
|
|
1076
|
-
}
|
|
1077
|
-
return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
|
|
1078
|
-
},
|
|
1079
|
-
enumerable: false
|
|
1080
|
-
},
|
|
1081
|
-
hexToRgb: {
|
|
1082
|
-
value: (hex) => {
|
|
1083
|
-
const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
|
|
1084
|
-
if (!matches) {
|
|
1085
|
-
return [0, 0, 0];
|
|
1086
|
-
}
|
|
1087
|
-
let [colorString] = matches;
|
|
1088
|
-
if (colorString.length === 3) {
|
|
1089
|
-
colorString = [...colorString].map((character) => character + character).join("");
|
|
1090
|
-
}
|
|
1091
|
-
const integer = Number.parseInt(colorString, 16);
|
|
1092
|
-
return [
|
|
1093
|
-
/* eslint-disable no-bitwise */
|
|
1094
|
-
integer >> 16 & 255,
|
|
1095
|
-
integer >> 8 & 255,
|
|
1096
|
-
integer & 255
|
|
1097
|
-
/* eslint-enable no-bitwise */
|
|
1098
|
-
];
|
|
1099
|
-
},
|
|
1100
|
-
enumerable: false
|
|
1101
|
-
},
|
|
1102
|
-
hexToAnsi256: {
|
|
1103
|
-
value: (hex) => styles3.rgbToAnsi256(...styles3.hexToRgb(hex)),
|
|
1104
|
-
enumerable: false
|
|
1105
|
-
},
|
|
1106
|
-
ansi256ToAnsi: {
|
|
1107
|
-
value: (code) => {
|
|
1108
|
-
if (code < 8) {
|
|
1109
|
-
return 30 + code;
|
|
1110
|
-
}
|
|
1111
|
-
if (code < 16) {
|
|
1112
|
-
return 90 + (code - 8);
|
|
1113
|
-
}
|
|
1114
|
-
let red;
|
|
1115
|
-
let green;
|
|
1116
|
-
let blue;
|
|
1117
|
-
if (code >= 232) {
|
|
1118
|
-
red = ((code - 232) * 10 + 8) / 255;
|
|
1119
|
-
green = red;
|
|
1120
|
-
blue = red;
|
|
1121
|
-
} else {
|
|
1122
|
-
code -= 16;
|
|
1123
|
-
const remainder = code % 36;
|
|
1124
|
-
red = Math.floor(code / 36) / 5;
|
|
1125
|
-
green = Math.floor(remainder / 6) / 5;
|
|
1126
|
-
blue = remainder % 6 / 5;
|
|
1127
|
-
}
|
|
1128
|
-
const value = Math.max(red, green, blue) * 2;
|
|
1129
|
-
if (value === 0) {
|
|
1130
|
-
return 30;
|
|
1131
|
-
}
|
|
1132
|
-
let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
|
|
1133
|
-
if (value === 2) {
|
|
1134
|
-
result += 60;
|
|
1135
|
-
}
|
|
1136
|
-
return result;
|
|
1137
|
-
},
|
|
1138
|
-
enumerable: false
|
|
1139
|
-
},
|
|
1140
|
-
rgbToAnsi: {
|
|
1141
|
-
value: (red, green, blue) => styles3.ansi256ToAnsi(styles3.rgbToAnsi256(red, green, blue)),
|
|
1142
|
-
enumerable: false
|
|
1143
|
-
},
|
|
1144
|
-
hexToAnsi: {
|
|
1145
|
-
value: (hex) => styles3.ansi256ToAnsi(styles3.hexToAnsi256(hex)),
|
|
1146
|
-
enumerable: false
|
|
1147
|
-
}
|
|
1148
|
-
});
|
|
1149
|
-
return styles3;
|
|
1150
|
-
}
|
|
1151
|
-
var ANSI_BACKGROUND_OFFSET2, wrapAnsi162, wrapAnsi2562, wrapAnsi16m2, styles3, modifierNames2, foregroundColorNames2, backgroundColorNames2, colorNames2, ansiStyles2, ansi_styles_default2;
|
|
1152
|
-
var init_ansi_styles2 = __esm({
|
|
1153
|
-
"node_modules/.pnpm/ansi-styles@6.2.1/node_modules/ansi-styles/index.js"() {
|
|
1154
|
-
"use strict";
|
|
1155
|
-
ANSI_BACKGROUND_OFFSET2 = 10;
|
|
1156
|
-
wrapAnsi162 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
|
|
1157
|
-
wrapAnsi2562 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
|
|
1158
|
-
wrapAnsi16m2 = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
|
|
1159
|
-
styles3 = {
|
|
1160
|
-
modifier: {
|
|
1161
|
-
reset: [0, 0],
|
|
1162
|
-
// 21 isn't widely supported and 22 does the same thing
|
|
1163
|
-
bold: [1, 22],
|
|
1164
|
-
dim: [2, 22],
|
|
1165
|
-
italic: [3, 23],
|
|
1166
|
-
underline: [4, 24],
|
|
1167
|
-
overline: [53, 55],
|
|
1168
|
-
inverse: [7, 27],
|
|
1169
|
-
hidden: [8, 28],
|
|
1170
|
-
strikethrough: [9, 29]
|
|
1171
|
-
},
|
|
1172
|
-
color: {
|
|
1173
|
-
black: [30, 39],
|
|
1174
|
-
red: [31, 39],
|
|
1175
|
-
green: [32, 39],
|
|
1176
|
-
yellow: [33, 39],
|
|
1177
|
-
blue: [34, 39],
|
|
1178
|
-
magenta: [35, 39],
|
|
1179
|
-
cyan: [36, 39],
|
|
1180
|
-
white: [37, 39],
|
|
1181
|
-
// Bright color
|
|
1182
|
-
blackBright: [90, 39],
|
|
1183
|
-
gray: [90, 39],
|
|
1184
|
-
// Alias of `blackBright`
|
|
1185
|
-
grey: [90, 39],
|
|
1186
|
-
// Alias of `blackBright`
|
|
1187
|
-
redBright: [91, 39],
|
|
1188
|
-
greenBright: [92, 39],
|
|
1189
|
-
yellowBright: [93, 39],
|
|
1190
|
-
blueBright: [94, 39],
|
|
1191
|
-
magentaBright: [95, 39],
|
|
1192
|
-
cyanBright: [96, 39],
|
|
1193
|
-
whiteBright: [97, 39]
|
|
1194
|
-
},
|
|
1195
|
-
bgColor: {
|
|
1196
|
-
bgBlack: [40, 49],
|
|
1197
|
-
bgRed: [41, 49],
|
|
1198
|
-
bgGreen: [42, 49],
|
|
1199
|
-
bgYellow: [43, 49],
|
|
1200
|
-
bgBlue: [44, 49],
|
|
1201
|
-
bgMagenta: [45, 49],
|
|
1202
|
-
bgCyan: [46, 49],
|
|
1203
|
-
bgWhite: [47, 49],
|
|
1204
|
-
// Bright color
|
|
1205
|
-
bgBlackBright: [100, 49],
|
|
1206
|
-
bgGray: [100, 49],
|
|
1207
|
-
// Alias of `bgBlackBright`
|
|
1208
|
-
bgGrey: [100, 49],
|
|
1209
|
-
// Alias of `bgBlackBright`
|
|
1210
|
-
bgRedBright: [101, 49],
|
|
1211
|
-
bgGreenBright: [102, 49],
|
|
1212
|
-
bgYellowBright: [103, 49],
|
|
1213
|
-
bgBlueBright: [104, 49],
|
|
1214
|
-
bgMagentaBright: [105, 49],
|
|
1215
|
-
bgCyanBright: [106, 49],
|
|
1216
|
-
bgWhiteBright: [107, 49]
|
|
1217
|
-
}
|
|
1218
|
-
};
|
|
1219
|
-
modifierNames2 = Object.keys(styles3.modifier);
|
|
1220
|
-
foregroundColorNames2 = Object.keys(styles3.color);
|
|
1221
|
-
backgroundColorNames2 = Object.keys(styles3.bgColor);
|
|
1222
|
-
colorNames2 = [...foregroundColorNames2, ...backgroundColorNames2];
|
|
1223
|
-
ansiStyles2 = assembleStyles2();
|
|
1224
|
-
ansi_styles_default2 = ansiStyles2;
|
|
1225
|
-
}
|
|
1226
|
-
});
|
|
1227
|
-
|
|
1228
|
-
// node_modules/.pnpm/wrap-ansi@9.0.0/node_modules/wrap-ansi/index.js
|
|
1229
|
-
function wrapAnsi(string, columns, options) {
|
|
1230
|
-
return String(string).normalize().replaceAll("\r\n", "\n").split("\n").map((line) => exec(line, columns, options)).join("\n");
|
|
1231
|
-
}
|
|
1232
|
-
var ESCAPES, END_CODE, ANSI_ESCAPE_BELL, ANSI_CSI, ANSI_OSC, ANSI_SGR_TERMINATOR, ANSI_ESCAPE_LINK, wrapAnsiCode, wrapAnsiHyperlink, wordLengths, wrapWord, stringVisibleTrimSpacesRight, exec;
|
|
1233
|
-
var init_wrap_ansi = __esm({
|
|
1234
|
-
"node_modules/.pnpm/wrap-ansi@9.0.0/node_modules/wrap-ansi/index.js"() {
|
|
1235
|
-
"use strict";
|
|
1236
|
-
init_string_width();
|
|
1237
|
-
init_strip_ansi();
|
|
1238
|
-
init_ansi_styles2();
|
|
1239
|
-
ESCAPES = /* @__PURE__ */ new Set([
|
|
1240
|
-
"\x1B",
|
|
1241
|
-
"\x9B"
|
|
1242
|
-
]);
|
|
1243
|
-
END_CODE = 39;
|
|
1244
|
-
ANSI_ESCAPE_BELL = "\x07";
|
|
1245
|
-
ANSI_CSI = "[";
|
|
1246
|
-
ANSI_OSC = "]";
|
|
1247
|
-
ANSI_SGR_TERMINATOR = "m";
|
|
1248
|
-
ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`;
|
|
1249
|
-
wrapAnsiCode = (code) => `${ESCAPES.values().next().value}${ANSI_CSI}${code}${ANSI_SGR_TERMINATOR}`;
|
|
1250
|
-
wrapAnsiHyperlink = (url) => `${ESCAPES.values().next().value}${ANSI_ESCAPE_LINK}${url}${ANSI_ESCAPE_BELL}`;
|
|
1251
|
-
wordLengths = (string) => string.split(" ").map((character) => stringWidth(character));
|
|
1252
|
-
wrapWord = (rows, word, columns) => {
|
|
1253
|
-
const characters = [...word];
|
|
1254
|
-
let isInsideEscape = false;
|
|
1255
|
-
let isInsideLinkEscape = false;
|
|
1256
|
-
let visible = stringWidth(stripAnsi(rows.at(-1)));
|
|
1257
|
-
for (const [index, character] of characters.entries()) {
|
|
1258
|
-
const characterLength = stringWidth(character);
|
|
1259
|
-
if (visible + characterLength <= columns) {
|
|
1260
|
-
rows[rows.length - 1] += character;
|
|
1261
|
-
} else {
|
|
1262
|
-
rows.push(character);
|
|
1263
|
-
visible = 0;
|
|
1264
|
-
}
|
|
1265
|
-
if (ESCAPES.has(character)) {
|
|
1266
|
-
isInsideEscape = true;
|
|
1267
|
-
const ansiEscapeLinkCandidate = characters.slice(index + 1, index + 1 + ANSI_ESCAPE_LINK.length).join("");
|
|
1268
|
-
isInsideLinkEscape = ansiEscapeLinkCandidate === ANSI_ESCAPE_LINK;
|
|
1269
|
-
}
|
|
1270
|
-
if (isInsideEscape) {
|
|
1271
|
-
if (isInsideLinkEscape) {
|
|
1272
|
-
if (character === ANSI_ESCAPE_BELL) {
|
|
1273
|
-
isInsideEscape = false;
|
|
1274
|
-
isInsideLinkEscape = false;
|
|
1275
|
-
}
|
|
1276
|
-
} else if (character === ANSI_SGR_TERMINATOR) {
|
|
1277
|
-
isInsideEscape = false;
|
|
1278
|
-
}
|
|
1279
|
-
continue;
|
|
1280
|
-
}
|
|
1281
|
-
visible += characterLength;
|
|
1282
|
-
if (visible === columns && index < characters.length - 1) {
|
|
1283
|
-
rows.push("");
|
|
1284
|
-
visible = 0;
|
|
1285
|
-
}
|
|
1286
|
-
}
|
|
1287
|
-
if (!visible && rows.at(-1).length > 0 && rows.length > 1) {
|
|
1288
|
-
rows[rows.length - 2] += rows.pop();
|
|
1289
|
-
}
|
|
1290
|
-
};
|
|
1291
|
-
stringVisibleTrimSpacesRight = (string) => {
|
|
1292
|
-
const words = string.split(" ");
|
|
1293
|
-
let last = words.length;
|
|
1294
|
-
while (last > 0) {
|
|
1295
|
-
if (stringWidth(words[last - 1]) > 0) {
|
|
1296
|
-
break;
|
|
1297
|
-
}
|
|
1298
|
-
last--;
|
|
1299
|
-
}
|
|
1300
|
-
if (last === words.length) {
|
|
1301
|
-
return string;
|
|
1302
|
-
}
|
|
1303
|
-
return words.slice(0, last).join(" ") + words.slice(last).join("");
|
|
1304
|
-
};
|
|
1305
|
-
exec = (string, columns, options = {}) => {
|
|
1306
|
-
if (options.trim !== false && string.trim() === "") {
|
|
1307
|
-
return "";
|
|
1308
|
-
}
|
|
1309
|
-
let returnValue = "";
|
|
1310
|
-
let escapeCode;
|
|
1311
|
-
let escapeUrl;
|
|
1312
|
-
const lengths = wordLengths(string);
|
|
1313
|
-
let rows = [""];
|
|
1314
|
-
for (const [index, word] of string.split(" ").entries()) {
|
|
1315
|
-
if (options.trim !== false) {
|
|
1316
|
-
rows[rows.length - 1] = rows.at(-1).trimStart();
|
|
1317
|
-
}
|
|
1318
|
-
let rowLength = stringWidth(rows.at(-1));
|
|
1319
|
-
if (index !== 0) {
|
|
1320
|
-
if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) {
|
|
1321
|
-
rows.push("");
|
|
1322
|
-
rowLength = 0;
|
|
1323
|
-
}
|
|
1324
|
-
if (rowLength > 0 || options.trim === false) {
|
|
1325
|
-
rows[rows.length - 1] += " ";
|
|
1326
|
-
rowLength++;
|
|
1327
|
-
}
|
|
1328
|
-
}
|
|
1329
|
-
if (options.hard && lengths[index] > columns) {
|
|
1330
|
-
const remainingColumns = columns - rowLength;
|
|
1331
|
-
const breaksStartingThisLine = 1 + Math.floor((lengths[index] - remainingColumns - 1) / columns);
|
|
1332
|
-
const breaksStartingNextLine = Math.floor((lengths[index] - 1) / columns);
|
|
1333
|
-
if (breaksStartingNextLine < breaksStartingThisLine) {
|
|
1334
|
-
rows.push("");
|
|
1335
|
-
}
|
|
1336
|
-
wrapWord(rows, word, columns);
|
|
1337
|
-
continue;
|
|
1338
|
-
}
|
|
1339
|
-
if (rowLength + lengths[index] > columns && rowLength > 0 && lengths[index] > 0) {
|
|
1340
|
-
if (options.wordWrap === false && rowLength < columns) {
|
|
1341
|
-
wrapWord(rows, word, columns);
|
|
1342
|
-
continue;
|
|
1343
|
-
}
|
|
1344
|
-
rows.push("");
|
|
1345
|
-
}
|
|
1346
|
-
if (rowLength + lengths[index] > columns && options.wordWrap === false) {
|
|
1347
|
-
wrapWord(rows, word, columns);
|
|
1348
|
-
continue;
|
|
1349
|
-
}
|
|
1350
|
-
rows[rows.length - 1] += word;
|
|
1351
|
-
}
|
|
1352
|
-
if (options.trim !== false) {
|
|
1353
|
-
rows = rows.map((row) => stringVisibleTrimSpacesRight(row));
|
|
1354
|
-
}
|
|
1355
|
-
const preString = rows.join("\n");
|
|
1356
|
-
const pre = [...preString];
|
|
1357
|
-
let preStringIndex = 0;
|
|
1358
|
-
for (const [index, character] of pre.entries()) {
|
|
1359
|
-
returnValue += character;
|
|
1360
|
-
if (ESCAPES.has(character)) {
|
|
1361
|
-
const { groups } = new RegExp(`(?:\\${ANSI_CSI}(?<code>\\d+)m|\\${ANSI_ESCAPE_LINK}(?<uri>.*)${ANSI_ESCAPE_BELL})`).exec(preString.slice(preStringIndex)) || { groups: {} };
|
|
1362
|
-
if (groups.code !== void 0) {
|
|
1363
|
-
const code2 = Number.parseFloat(groups.code);
|
|
1364
|
-
escapeCode = code2 === END_CODE ? void 0 : code2;
|
|
1365
|
-
} else if (groups.uri !== void 0) {
|
|
1366
|
-
escapeUrl = groups.uri.length === 0 ? void 0 : groups.uri;
|
|
1367
|
-
}
|
|
1368
|
-
}
|
|
1369
|
-
const code = ansi_styles_default2.codes.get(Number(escapeCode));
|
|
1370
|
-
if (pre[index + 1] === "\n") {
|
|
1371
|
-
if (escapeUrl) {
|
|
1372
|
-
returnValue += wrapAnsiHyperlink("");
|
|
1373
|
-
}
|
|
1374
|
-
if (escapeCode && code) {
|
|
1375
|
-
returnValue += wrapAnsiCode(code);
|
|
1376
|
-
}
|
|
1377
|
-
} else if (character === "\n") {
|
|
1378
|
-
if (escapeCode && code) {
|
|
1379
|
-
returnValue += wrapAnsiCode(escapeCode);
|
|
1380
|
-
}
|
|
1381
|
-
if (escapeUrl) {
|
|
1382
|
-
returnValue += wrapAnsiHyperlink(escapeUrl);
|
|
1383
|
-
}
|
|
1384
|
-
}
|
|
1385
|
-
preStringIndex += character.length;
|
|
1386
|
-
}
|
|
1387
|
-
return returnValue;
|
|
1388
|
-
};
|
|
1389
|
-
}
|
|
1390
|
-
});
|
|
1391
|
-
|
|
1392
|
-
// node_modules/.pnpm/boxen@8.0.1/node_modules/boxen/index.js
|
|
1393
|
-
import process2 from "process";
|
|
1394
|
-
function boxen(text, options) {
|
|
1395
|
-
options = {
|
|
1396
|
-
padding: 0,
|
|
1397
|
-
borderStyle: "single",
|
|
1398
|
-
dimBorder: false,
|
|
1399
|
-
textAlignment: "left",
|
|
1400
|
-
float: "left",
|
|
1401
|
-
titleAlignment: "left",
|
|
1402
|
-
...options
|
|
1403
|
-
};
|
|
1404
|
-
if (options.align) {
|
|
1405
|
-
options.textAlignment = options.align;
|
|
1406
|
-
}
|
|
1407
|
-
if (options.borderColor && !isColorValid(options.borderColor)) {
|
|
1408
|
-
throw new Error(`${options.borderColor} is not a valid borderColor`);
|
|
1409
|
-
}
|
|
1410
|
-
if (options.backgroundColor && !isColorValid(options.backgroundColor)) {
|
|
1411
|
-
throw new Error(`${options.backgroundColor} is not a valid backgroundColor`);
|
|
1412
|
-
}
|
|
1413
|
-
options.padding = getObject(options.padding);
|
|
1414
|
-
options.margin = getObject(options.margin);
|
|
1415
|
-
options = determineDimensions(text, options);
|
|
1416
|
-
text = makeContentText(text, options);
|
|
1417
|
-
return boxContent(text, options.width, options);
|
|
1418
|
-
}
|
|
1419
|
-
var import_cli_boxes, import_ansi_align, import_cli_boxes2, NEWLINE, PAD, NONE, terminalColumns, getObject, getBorderWidth, getBorderChars, makeTitle, makeContentText, boxContent, sanitizeOptions, formatTitle, determineDimensions, isHex, isColorValid, getColorFunction, getBGColorFunction;
|
|
1420
|
-
var init_boxen = __esm({
|
|
1421
|
-
"node_modules/.pnpm/boxen@8.0.1/node_modules/boxen/index.js"() {
|
|
1422
|
-
"use strict";
|
|
1423
|
-
init_string_width();
|
|
1424
|
-
init_source();
|
|
1425
|
-
init_widest_line();
|
|
1426
|
-
import_cli_boxes = __toESM(require_cli_boxes(), 1);
|
|
1427
|
-
init_camelcase();
|
|
1428
|
-
import_ansi_align = __toESM(require_ansi_align(), 1);
|
|
1429
|
-
init_wrap_ansi();
|
|
1430
|
-
import_cli_boxes2 = __toESM(require_cli_boxes(), 1);
|
|
1431
|
-
NEWLINE = "\n";
|
|
1432
|
-
PAD = " ";
|
|
1433
|
-
NONE = "none";
|
|
1434
|
-
terminalColumns = () => {
|
|
1435
|
-
const { env: env2, stdout, stderr } = process2;
|
|
1436
|
-
if (stdout?.columns) {
|
|
1437
|
-
return stdout.columns;
|
|
1438
|
-
}
|
|
1439
|
-
if (stderr?.columns) {
|
|
1440
|
-
return stderr.columns;
|
|
1441
|
-
}
|
|
1442
|
-
if (env2.COLUMNS) {
|
|
1443
|
-
return Number.parseInt(env2.COLUMNS, 10);
|
|
1444
|
-
}
|
|
1445
|
-
return 80;
|
|
1446
|
-
};
|
|
1447
|
-
getObject = (detail) => typeof detail === "number" ? {
|
|
1448
|
-
top: detail,
|
|
1449
|
-
right: detail * 3,
|
|
1450
|
-
bottom: detail,
|
|
1451
|
-
left: detail * 3
|
|
1452
|
-
} : {
|
|
1453
|
-
top: 0,
|
|
1454
|
-
right: 0,
|
|
1455
|
-
bottom: 0,
|
|
1456
|
-
left: 0,
|
|
1457
|
-
...detail
|
|
1458
|
-
};
|
|
1459
|
-
getBorderWidth = (borderStyle) => borderStyle === NONE ? 0 : 2;
|
|
1460
|
-
getBorderChars = (borderStyle) => {
|
|
1461
|
-
const sides = [
|
|
1462
|
-
"topLeft",
|
|
1463
|
-
"topRight",
|
|
1464
|
-
"bottomRight",
|
|
1465
|
-
"bottomLeft",
|
|
1466
|
-
"left",
|
|
1467
|
-
"right",
|
|
1468
|
-
"top",
|
|
1469
|
-
"bottom"
|
|
1470
|
-
];
|
|
1471
|
-
let characters;
|
|
1472
|
-
if (borderStyle === NONE) {
|
|
1473
|
-
borderStyle = {};
|
|
1474
|
-
for (const side of sides) {
|
|
1475
|
-
borderStyle[side] = "";
|
|
1476
|
-
}
|
|
1477
|
-
}
|
|
1478
|
-
if (typeof borderStyle === "string") {
|
|
1479
|
-
characters = import_cli_boxes.default[borderStyle];
|
|
1480
|
-
if (!characters) {
|
|
1481
|
-
throw new TypeError(`Invalid border style: ${borderStyle}`);
|
|
1482
|
-
}
|
|
1483
|
-
} else {
|
|
1484
|
-
if (typeof borderStyle?.vertical === "string") {
|
|
1485
|
-
borderStyle.left = borderStyle.vertical;
|
|
1486
|
-
borderStyle.right = borderStyle.vertical;
|
|
1487
|
-
}
|
|
1488
|
-
if (typeof borderStyle?.horizontal === "string") {
|
|
1489
|
-
borderStyle.top = borderStyle.horizontal;
|
|
1490
|
-
borderStyle.bottom = borderStyle.horizontal;
|
|
1491
|
-
}
|
|
1492
|
-
for (const side of sides) {
|
|
1493
|
-
if (borderStyle[side] === null || typeof borderStyle[side] !== "string") {
|
|
1494
|
-
throw new TypeError(`Invalid border style: ${side}`);
|
|
1495
|
-
}
|
|
1496
|
-
}
|
|
1497
|
-
characters = borderStyle;
|
|
1498
|
-
}
|
|
1499
|
-
return characters;
|
|
1500
|
-
};
|
|
1501
|
-
makeTitle = (text, horizontal, alignment) => {
|
|
1502
|
-
let title = "";
|
|
1503
|
-
const textWidth = stringWidth(text);
|
|
1504
|
-
switch (alignment) {
|
|
1505
|
-
case "left": {
|
|
1506
|
-
title = text + horizontal.slice(textWidth);
|
|
1507
|
-
break;
|
|
1508
|
-
}
|
|
1509
|
-
case "right": {
|
|
1510
|
-
title = horizontal.slice(textWidth) + text;
|
|
1511
|
-
break;
|
|
1512
|
-
}
|
|
1513
|
-
default: {
|
|
1514
|
-
horizontal = horizontal.slice(textWidth);
|
|
1515
|
-
if (horizontal.length % 2 === 1) {
|
|
1516
|
-
horizontal = horizontal.slice(Math.floor(horizontal.length / 2));
|
|
1517
|
-
title = horizontal.slice(1) + text + horizontal;
|
|
1518
|
-
} else {
|
|
1519
|
-
horizontal = horizontal.slice(horizontal.length / 2);
|
|
1520
|
-
title = horizontal + text + horizontal;
|
|
1521
|
-
}
|
|
1522
|
-
break;
|
|
1523
|
-
}
|
|
1524
|
-
}
|
|
1525
|
-
return title;
|
|
1526
|
-
};
|
|
1527
|
-
makeContentText = (text, { padding, width, textAlignment, height }) => {
|
|
1528
|
-
text = (0, import_ansi_align.default)(text, { align: textAlignment });
|
|
1529
|
-
let lines = text.split(NEWLINE);
|
|
1530
|
-
const textWidth = widestLine(text);
|
|
1531
|
-
const max = width - padding.left - padding.right;
|
|
1532
|
-
if (textWidth > max) {
|
|
1533
|
-
const newLines = [];
|
|
1534
|
-
for (const line of lines) {
|
|
1535
|
-
const createdLines = wrapAnsi(line, max, { hard: true });
|
|
1536
|
-
const alignedLines = (0, import_ansi_align.default)(createdLines, { align: textAlignment });
|
|
1537
|
-
const alignedLinesArray = alignedLines.split("\n");
|
|
1538
|
-
const longestLength = Math.max(...alignedLinesArray.map((s) => stringWidth(s)));
|
|
1539
|
-
for (const alignedLine of alignedLinesArray) {
|
|
1540
|
-
let paddedLine;
|
|
1541
|
-
switch (textAlignment) {
|
|
1542
|
-
case "center": {
|
|
1543
|
-
paddedLine = PAD.repeat((max - longestLength) / 2) + alignedLine;
|
|
1544
|
-
break;
|
|
1545
|
-
}
|
|
1546
|
-
case "right": {
|
|
1547
|
-
paddedLine = PAD.repeat(max - longestLength) + alignedLine;
|
|
1548
|
-
break;
|
|
1549
|
-
}
|
|
1550
|
-
default: {
|
|
1551
|
-
paddedLine = alignedLine;
|
|
1552
|
-
break;
|
|
1553
|
-
}
|
|
1554
|
-
}
|
|
1555
|
-
newLines.push(paddedLine);
|
|
1556
|
-
}
|
|
1557
|
-
}
|
|
1558
|
-
lines = newLines;
|
|
1559
|
-
}
|
|
1560
|
-
if (textAlignment === "center" && textWidth < max) {
|
|
1561
|
-
lines = lines.map((line) => PAD.repeat((max - textWidth) / 2) + line);
|
|
1562
|
-
} else if (textAlignment === "right" && textWidth < max) {
|
|
1563
|
-
lines = lines.map((line) => PAD.repeat(max - textWidth) + line);
|
|
1564
|
-
}
|
|
1565
|
-
const paddingLeft = PAD.repeat(padding.left);
|
|
1566
|
-
const paddingRight = PAD.repeat(padding.right);
|
|
1567
|
-
lines = lines.map((line) => {
|
|
1568
|
-
const newLine = paddingLeft + line + paddingRight;
|
|
1569
|
-
return newLine + PAD.repeat(width - stringWidth(newLine));
|
|
1570
|
-
});
|
|
1571
|
-
if (padding.top > 0) {
|
|
1572
|
-
lines = [...Array.from({ length: padding.top }).fill(PAD.repeat(width)), ...lines];
|
|
1573
|
-
}
|
|
1574
|
-
if (padding.bottom > 0) {
|
|
1575
|
-
lines = [...lines, ...Array.from({ length: padding.bottom }).fill(PAD.repeat(width))];
|
|
1576
|
-
}
|
|
1577
|
-
if (height && lines.length > height) {
|
|
1578
|
-
lines = lines.slice(0, height);
|
|
1579
|
-
} else if (height && lines.length < height) {
|
|
1580
|
-
lines = [...lines, ...Array.from({ length: height - lines.length }).fill(PAD.repeat(width))];
|
|
1581
|
-
}
|
|
1582
|
-
return lines.join(NEWLINE);
|
|
1583
|
-
};
|
|
1584
|
-
boxContent = (content, contentWidth, options) => {
|
|
1585
|
-
const colorizeBorder = (border) => {
|
|
1586
|
-
const newBorder = options.borderColor ? getColorFunction(options.borderColor)(border) : border;
|
|
1587
|
-
return options.dimBorder ? source_default.dim(newBorder) : newBorder;
|
|
1588
|
-
};
|
|
1589
|
-
const colorizeContent = (content2) => options.backgroundColor ? getBGColorFunction(options.backgroundColor)(content2) : content2;
|
|
1590
|
-
const chars = getBorderChars(options.borderStyle);
|
|
1591
|
-
const columns = terminalColumns();
|
|
1592
|
-
let marginLeft = PAD.repeat(options.margin.left);
|
|
1593
|
-
if (options.float === "center") {
|
|
1594
|
-
const marginWidth = Math.max((columns - contentWidth - getBorderWidth(options.borderStyle)) / 2, 0);
|
|
1595
|
-
marginLeft = PAD.repeat(marginWidth);
|
|
1596
|
-
} else if (options.float === "right") {
|
|
1597
|
-
const marginWidth = Math.max(columns - contentWidth - options.margin.right - getBorderWidth(options.borderStyle), 0);
|
|
1598
|
-
marginLeft = PAD.repeat(marginWidth);
|
|
1599
|
-
}
|
|
1600
|
-
let result = "";
|
|
1601
|
-
if (options.margin.top) {
|
|
1602
|
-
result += NEWLINE.repeat(options.margin.top);
|
|
1603
|
-
}
|
|
1604
|
-
if (options.borderStyle !== NONE || options.title) {
|
|
1605
|
-
result += colorizeBorder(marginLeft + chars.topLeft + (options.title ? makeTitle(options.title, chars.top.repeat(contentWidth), options.titleAlignment) : chars.top.repeat(contentWidth)) + chars.topRight) + NEWLINE;
|
|
1606
|
-
}
|
|
1607
|
-
const lines = content.split(NEWLINE);
|
|
1608
|
-
result += lines.map((line) => marginLeft + colorizeBorder(chars.left) + colorizeContent(line) + colorizeBorder(chars.right)).join(NEWLINE);
|
|
1609
|
-
if (options.borderStyle !== NONE) {
|
|
1610
|
-
result += NEWLINE + colorizeBorder(marginLeft + chars.bottomLeft + chars.bottom.repeat(contentWidth) + chars.bottomRight);
|
|
1611
|
-
}
|
|
1612
|
-
if (options.margin.bottom) {
|
|
1613
|
-
result += NEWLINE.repeat(options.margin.bottom);
|
|
1614
|
-
}
|
|
1615
|
-
return result;
|
|
1616
|
-
};
|
|
1617
|
-
sanitizeOptions = (options) => {
|
|
1618
|
-
if (options.fullscreen && process2?.stdout) {
|
|
1619
|
-
let newDimensions = [process2.stdout.columns, process2.stdout.rows];
|
|
1620
|
-
if (typeof options.fullscreen === "function") {
|
|
1621
|
-
newDimensions = options.fullscreen(...newDimensions);
|
|
1622
|
-
}
|
|
1623
|
-
options.width ||= newDimensions[0];
|
|
1624
|
-
options.height ||= newDimensions[1];
|
|
1625
|
-
}
|
|
1626
|
-
options.width &&= Math.max(1, options.width - getBorderWidth(options.borderStyle));
|
|
1627
|
-
options.height &&= Math.max(1, options.height - getBorderWidth(options.borderStyle));
|
|
1628
|
-
return options;
|
|
1629
|
-
};
|
|
1630
|
-
formatTitle = (title, borderStyle) => borderStyle === NONE ? title : ` ${title} `;
|
|
1631
|
-
determineDimensions = (text, options) => {
|
|
1632
|
-
options = sanitizeOptions(options);
|
|
1633
|
-
const widthOverride = options.width !== void 0;
|
|
1634
|
-
const columns = terminalColumns();
|
|
1635
|
-
const borderWidth = getBorderWidth(options.borderStyle);
|
|
1636
|
-
const maxWidth = columns - options.margin.left - options.margin.right - borderWidth;
|
|
1637
|
-
const widest = widestLine(wrapAnsi(text, columns - borderWidth, { hard: true, trim: false })) + options.padding.left + options.padding.right;
|
|
1638
|
-
if (options.title && widthOverride) {
|
|
1639
|
-
options.title = options.title.slice(0, Math.max(0, options.width - 2));
|
|
1640
|
-
options.title &&= formatTitle(options.title, options.borderStyle);
|
|
1641
|
-
} else if (options.title) {
|
|
1642
|
-
options.title = options.title.slice(0, Math.max(0, maxWidth - 2));
|
|
1643
|
-
if (options.title) {
|
|
1644
|
-
options.title = formatTitle(options.title, options.borderStyle);
|
|
1645
|
-
if (stringWidth(options.title) > widest) {
|
|
1646
|
-
options.width = stringWidth(options.title);
|
|
1647
|
-
}
|
|
1648
|
-
}
|
|
1649
|
-
}
|
|
1650
|
-
options.width ||= widest;
|
|
1651
|
-
if (!widthOverride) {
|
|
1652
|
-
if (options.margin.left && options.margin.right && options.width > maxWidth) {
|
|
1653
|
-
const spaceForMargins = columns - options.width - borderWidth;
|
|
1654
|
-
const multiplier = spaceForMargins / (options.margin.left + options.margin.right);
|
|
1655
|
-
options.margin.left = Math.max(0, Math.floor(options.margin.left * multiplier));
|
|
1656
|
-
options.margin.right = Math.max(0, Math.floor(options.margin.right * multiplier));
|
|
1657
|
-
}
|
|
1658
|
-
options.width = Math.min(options.width, columns - borderWidth - options.margin.left - options.margin.right);
|
|
1659
|
-
}
|
|
1660
|
-
if (options.width - (options.padding.left + options.padding.right) <= 0) {
|
|
1661
|
-
options.padding.left = 0;
|
|
1662
|
-
options.padding.right = 0;
|
|
1663
|
-
}
|
|
1664
|
-
if (options.height && options.height - (options.padding.top + options.padding.bottom) <= 0) {
|
|
1665
|
-
options.padding.top = 0;
|
|
1666
|
-
options.padding.bottom = 0;
|
|
1667
|
-
}
|
|
1668
|
-
return options;
|
|
1669
|
-
};
|
|
1670
|
-
isHex = (color) => color.match(/^#(?:[0-f]{3}){1,2}$/i);
|
|
1671
|
-
isColorValid = (color) => typeof color === "string" && (source_default[color] ?? isHex(color));
|
|
1672
|
-
getColorFunction = (color) => isHex(color) ? source_default.hex(color) : source_default[color];
|
|
1673
|
-
getBGColorFunction = (color) => isHex(color) ? source_default.bgHex(color) : source_default[camelCase(["bg", color])];
|
|
1674
|
-
}
|
|
1675
|
-
});
|
|
1676
|
-
|
|
1677
|
-
// src/printBio.ts
|
|
1678
|
-
function printBio(profile) {
|
|
1679
|
-
const boxenOptions = {
|
|
1680
|
-
padding: 1,
|
|
1681
|
-
margin: 0,
|
|
1682
|
-
borderStyle: "round",
|
|
1683
|
-
borderColor: "green"
|
|
1684
|
-
};
|
|
1685
|
-
const cardContent = [
|
|
1686
|
-
`${source_default.white.bold(profile.name)} ${source_default.gray(profile.title)}`,
|
|
1687
|
-
source_default.white(profile.bio),
|
|
1688
|
-
"",
|
|
1689
|
-
`${source_default.gray.greenBright("Email")} ${profile.email}`,
|
|
1690
|
-
`${source_default.gray.greenBright("GitHub")} ${profile.github}`,
|
|
1691
|
-
`${source_default.gray.greenBright("Website")} ${profile.website}`,
|
|
1692
|
-
"",
|
|
1693
|
-
source_default.white(profile.quote)
|
|
1694
|
-
].join("\n");
|
|
1695
|
-
console.log(boxen(cardContent, boxenOptions));
|
|
1696
|
-
}
|
|
1697
|
-
var init_printBio = __esm({
|
|
1698
|
-
"src/printBio.ts"() {
|
|
1699
|
-
"use strict";
|
|
1700
|
-
init_boxen();
|
|
1701
|
-
init_source();
|
|
1702
|
-
}
|
|
1703
|
-
});
|
|
1704
|
-
|
|
1705
|
-
// src/profile.json
|
|
1706
|
-
var profile_default;
|
|
1707
|
-
var init_profile = __esm({
|
|
1708
|
-
"src/profile.json"() {
|
|
1709
|
-
profile_default = {
|
|
1710
|
-
id: "1",
|
|
1711
|
-
name: "\uAE40\uB3D9\uC6B1",
|
|
1712
|
-
email: "dannyworks102@gmail.com",
|
|
1713
|
-
title: "Frontend Engineer, BHSN.ai",
|
|
1714
|
-
github: "https://github.com/domuk-k",
|
|
1715
|
-
website: "https://domuk-k.vercel.app",
|
|
1716
|
-
bio: "Marathon Runner \u{1F3C3}, Opensource committer \u{1F4BB}, casual Yogi \u{1F9D8}",
|
|
1717
|
-
quote: "Customer Centric, Focus on what you can control"
|
|
1718
|
-
};
|
|
1719
|
-
}
|
|
1720
|
-
});
|
|
1721
|
-
|
|
1722
|
-
// src/index.ts
|
|
1723
|
-
var require_index = __commonJS({
|
|
1724
|
-
"src/index.ts"() {
|
|
1725
|
-
init_printBio();
|
|
1726
|
-
init_profile();
|
|
1727
|
-
printBio(profile_default);
|
|
1728
|
-
}
|
|
1729
|
-
});
|
|
1730
|
-
export default require_index();
|