@socketsecurity/lib 3.3.9 → 3.3.11

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.
@@ -920,10 +920,6 @@ var init_ansi_regex = __esm({
920
920
  });
921
921
 
922
922
  // node_modules/.pnpm/strip-ansi@7.1.2/node_modules/strip-ansi/index.js
923
- var strip_ansi_exports = {};
924
- __export(strip_ansi_exports, {
925
- default: () => stripAnsi
926
- });
927
923
  function stripAnsi(string) {
928
924
  if (typeof string !== "string") {
929
925
  throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
@@ -939,1213 +935,334 @@ var init_strip_ansi = __esm({
939
935
  }
940
936
  });
941
937
 
942
- // node_modules/.pnpm/is-fullwidth-code-point@3.0.0/node_modules/is-fullwidth-code-point/index.js
943
- var require_is_fullwidth_code_point = __commonJS({
944
- "node_modules/.pnpm/is-fullwidth-code-point@3.0.0/node_modules/is-fullwidth-code-point/index.js"(exports2, module2) {
945
- "use strict";
946
- var isFullwidthCodePoint = /* @__PURE__ */ __name((codePoint) => {
947
- if (Number.isNaN(codePoint)) {
948
- return false;
949
- }
950
- if (codePoint >= 4352 && (codePoint <= 4447 || // Hangul Jamo
951
- codePoint === 9001 || // LEFT-POINTING ANGLE BRACKET
952
- codePoint === 9002 || // RIGHT-POINTING ANGLE BRACKET
953
- // CJK Radicals Supplement .. Enclosed CJK Letters and Months
954
- 11904 <= codePoint && codePoint <= 12871 && codePoint !== 12351 || // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A
955
- 12880 <= codePoint && codePoint <= 19903 || // CJK Unified Ideographs .. Yi Radicals
956
- 19968 <= codePoint && codePoint <= 42182 || // Hangul Jamo Extended-A
957
- 43360 <= codePoint && codePoint <= 43388 || // Hangul Syllables
958
- 44032 <= codePoint && codePoint <= 55203 || // CJK Compatibility Ideographs
959
- 63744 <= codePoint && codePoint <= 64255 || // Vertical Forms
960
- 65040 <= codePoint && codePoint <= 65049 || // CJK Compatibility Forms .. Small Form Variants
961
- 65072 <= codePoint && codePoint <= 65131 || // Halfwidth and Fullwidth Forms
962
- 65281 <= codePoint && codePoint <= 65376 || 65504 <= codePoint && codePoint <= 65510 || // Kana Supplement
963
- 110592 <= codePoint && codePoint <= 110593 || // Enclosed Ideographic Supplement
964
- 127488 <= codePoint && codePoint <= 127569 || // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
965
- 131072 <= codePoint && codePoint <= 262141)) {
966
- return true;
967
- }
968
- return false;
969
- }, "isFullwidthCodePoint");
970
- module2.exports = isFullwidthCodePoint;
971
- module2.exports.default = isFullwidthCodePoint;
938
+ // node_modules/.pnpm/get-east-asian-width@1.3.0/node_modules/get-east-asian-width/lookup.js
939
+ function isAmbiguous(x) {
940
+ 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;
941
+ }
942
+ function isFullWidth(x) {
943
+ return x === 12288 || x >= 65281 && x <= 65376 || x >= 65504 && x <= 65510;
944
+ }
945
+ function isWide(x) {
946
+ 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;
947
+ }
948
+ var init_lookup = __esm({
949
+ "node_modules/.pnpm/get-east-asian-width@1.3.0/node_modules/get-east-asian-width/lookup.js"() {
950
+ __name(isAmbiguous, "isAmbiguous");
951
+ __name(isFullWidth, "isFullWidth");
952
+ __name(isWide, "isWide");
972
953
  }
973
954
  });
974
955
 
975
- // node_modules/.pnpm/emoji-regex@8.0.0/node_modules/emoji-regex/index.js
976
- var require_emoji_regex = __commonJS({
977
- "node_modules/.pnpm/emoji-regex@8.0.0/node_modules/emoji-regex/index.js"(exports2, module2) {
978
- "use strict";
979
- module2.exports = function() {
980
- 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;
981
- };
956
+ // node_modules/.pnpm/get-east-asian-width@1.3.0/node_modules/get-east-asian-width/index.js
957
+ function validate(codePoint) {
958
+ if (!Number.isSafeInteger(codePoint)) {
959
+ throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
982
960
  }
983
- });
984
-
985
- // node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js
986
- var require_string_width = __commonJS({
987
- "node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js"(exports2, module2) {
988
- "use strict";
989
- var stripAnsi2 = (init_strip_ansi(), __toCommonJS(strip_ansi_exports));
990
- var isFullwidthCodePoint = require_is_fullwidth_code_point();
991
- var emojiRegex = require_emoji_regex();
992
- var stringWidth = /* @__PURE__ */ __name((string) => {
993
- if (typeof string !== "string" || string.length === 0) {
994
- return 0;
995
- }
996
- string = stripAnsi2(string);
997
- if (string.length === 0) {
998
- return 0;
999
- }
1000
- string = string.replace(emojiRegex(), " ");
1001
- let width = 0;
1002
- for (let i = 0; i < string.length; i++) {
1003
- const code = string.codePointAt(i);
1004
- if (code <= 31 || code >= 127 && code <= 159) {
1005
- continue;
1006
- }
1007
- if (code >= 768 && code <= 879) {
1008
- continue;
1009
- }
1010
- if (code > 65535) {
1011
- i++;
1012
- }
1013
- width += isFullwidthCodePoint(code) ? 2 : 1;
1014
- }
1015
- return width;
1016
- }, "stringWidth");
1017
- module2.exports = stringWidth;
1018
- module2.exports.default = stringWidth;
961
+ }
962
+ function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
963
+ validate(codePoint);
964
+ if (isFullWidth(codePoint) || isWide(codePoint) || ambiguousAsWide && isAmbiguous(codePoint)) {
965
+ return 2;
1019
966
  }
1020
- });
1021
-
1022
- // node_modules/.pnpm/color-name@1.1.4/node_modules/color-name/index.js
1023
- var require_color_name = __commonJS({
1024
- "node_modules/.pnpm/color-name@1.1.4/node_modules/color-name/index.js"(exports2, module2) {
1025
- "use strict";
1026
- module2.exports = {
1027
- "aliceblue": [240, 248, 255],
1028
- "antiquewhite": [250, 235, 215],
1029
- "aqua": [0, 255, 255],
1030
- "aquamarine": [127, 255, 212],
1031
- "azure": [240, 255, 255],
1032
- "beige": [245, 245, 220],
1033
- "bisque": [255, 228, 196],
1034
- "black": [0, 0, 0],
1035
- "blanchedalmond": [255, 235, 205],
1036
- "blue": [0, 0, 255],
1037
- "blueviolet": [138, 43, 226],
1038
- "brown": [165, 42, 42],
1039
- "burlywood": [222, 184, 135],
1040
- "cadetblue": [95, 158, 160],
1041
- "chartreuse": [127, 255, 0],
1042
- "chocolate": [210, 105, 30],
1043
- "coral": [255, 127, 80],
1044
- "cornflowerblue": [100, 149, 237],
1045
- "cornsilk": [255, 248, 220],
1046
- "crimson": [220, 20, 60],
1047
- "cyan": [0, 255, 255],
1048
- "darkblue": [0, 0, 139],
1049
- "darkcyan": [0, 139, 139],
1050
- "darkgoldenrod": [184, 134, 11],
1051
- "darkgray": [169, 169, 169],
1052
- "darkgreen": [0, 100, 0],
1053
- "darkgrey": [169, 169, 169],
1054
- "darkkhaki": [189, 183, 107],
1055
- "darkmagenta": [139, 0, 139],
1056
- "darkolivegreen": [85, 107, 47],
1057
- "darkorange": [255, 140, 0],
1058
- "darkorchid": [153, 50, 204],
1059
- "darkred": [139, 0, 0],
1060
- "darksalmon": [233, 150, 122],
1061
- "darkseagreen": [143, 188, 143],
1062
- "darkslateblue": [72, 61, 139],
1063
- "darkslategray": [47, 79, 79],
1064
- "darkslategrey": [47, 79, 79],
1065
- "darkturquoise": [0, 206, 209],
1066
- "darkviolet": [148, 0, 211],
1067
- "deeppink": [255, 20, 147],
1068
- "deepskyblue": [0, 191, 255],
1069
- "dimgray": [105, 105, 105],
1070
- "dimgrey": [105, 105, 105],
1071
- "dodgerblue": [30, 144, 255],
1072
- "firebrick": [178, 34, 34],
1073
- "floralwhite": [255, 250, 240],
1074
- "forestgreen": [34, 139, 34],
1075
- "fuchsia": [255, 0, 255],
1076
- "gainsboro": [220, 220, 220],
1077
- "ghostwhite": [248, 248, 255],
1078
- "gold": [255, 215, 0],
1079
- "goldenrod": [218, 165, 32],
1080
- "gray": [128, 128, 128],
1081
- "green": [0, 128, 0],
1082
- "greenyellow": [173, 255, 47],
1083
- "grey": [128, 128, 128],
1084
- "honeydew": [240, 255, 240],
1085
- "hotpink": [255, 105, 180],
1086
- "indianred": [205, 92, 92],
1087
- "indigo": [75, 0, 130],
1088
- "ivory": [255, 255, 240],
1089
- "khaki": [240, 230, 140],
1090
- "lavender": [230, 230, 250],
1091
- "lavenderblush": [255, 240, 245],
1092
- "lawngreen": [124, 252, 0],
1093
- "lemonchiffon": [255, 250, 205],
1094
- "lightblue": [173, 216, 230],
1095
- "lightcoral": [240, 128, 128],
1096
- "lightcyan": [224, 255, 255],
1097
- "lightgoldenrodyellow": [250, 250, 210],
1098
- "lightgray": [211, 211, 211],
1099
- "lightgreen": [144, 238, 144],
1100
- "lightgrey": [211, 211, 211],
1101
- "lightpink": [255, 182, 193],
1102
- "lightsalmon": [255, 160, 122],
1103
- "lightseagreen": [32, 178, 170],
1104
- "lightskyblue": [135, 206, 250],
1105
- "lightslategray": [119, 136, 153],
1106
- "lightslategrey": [119, 136, 153],
1107
- "lightsteelblue": [176, 196, 222],
1108
- "lightyellow": [255, 255, 224],
1109
- "lime": [0, 255, 0],
1110
- "limegreen": [50, 205, 50],
1111
- "linen": [250, 240, 230],
1112
- "magenta": [255, 0, 255],
1113
- "maroon": [128, 0, 0],
1114
- "mediumaquamarine": [102, 205, 170],
1115
- "mediumblue": [0, 0, 205],
1116
- "mediumorchid": [186, 85, 211],
1117
- "mediumpurple": [147, 112, 219],
1118
- "mediumseagreen": [60, 179, 113],
1119
- "mediumslateblue": [123, 104, 238],
1120
- "mediumspringgreen": [0, 250, 154],
1121
- "mediumturquoise": [72, 209, 204],
1122
- "mediumvioletred": [199, 21, 133],
1123
- "midnightblue": [25, 25, 112],
1124
- "mintcream": [245, 255, 250],
1125
- "mistyrose": [255, 228, 225],
1126
- "moccasin": [255, 228, 181],
1127
- "navajowhite": [255, 222, 173],
1128
- "navy": [0, 0, 128],
1129
- "oldlace": [253, 245, 230],
1130
- "olive": [128, 128, 0],
1131
- "olivedrab": [107, 142, 35],
1132
- "orange": [255, 165, 0],
1133
- "orangered": [255, 69, 0],
1134
- "orchid": [218, 112, 214],
1135
- "palegoldenrod": [238, 232, 170],
1136
- "palegreen": [152, 251, 152],
1137
- "paleturquoise": [175, 238, 238],
1138
- "palevioletred": [219, 112, 147],
1139
- "papayawhip": [255, 239, 213],
1140
- "peachpuff": [255, 218, 185],
1141
- "peru": [205, 133, 63],
1142
- "pink": [255, 192, 203],
1143
- "plum": [221, 160, 221],
1144
- "powderblue": [176, 224, 230],
1145
- "purple": [128, 0, 128],
1146
- "rebeccapurple": [102, 51, 153],
1147
- "red": [255, 0, 0],
1148
- "rosybrown": [188, 143, 143],
1149
- "royalblue": [65, 105, 225],
1150
- "saddlebrown": [139, 69, 19],
1151
- "salmon": [250, 128, 114],
1152
- "sandybrown": [244, 164, 96],
1153
- "seagreen": [46, 139, 87],
1154
- "seashell": [255, 245, 238],
1155
- "sienna": [160, 82, 45],
1156
- "silver": [192, 192, 192],
1157
- "skyblue": [135, 206, 235],
1158
- "slateblue": [106, 90, 205],
1159
- "slategray": [112, 128, 144],
1160
- "slategrey": [112, 128, 144],
1161
- "snow": [255, 250, 250],
1162
- "springgreen": [0, 255, 127],
1163
- "steelblue": [70, 130, 180],
1164
- "tan": [210, 180, 140],
1165
- "teal": [0, 128, 128],
1166
- "thistle": [216, 191, 216],
1167
- "tomato": [255, 99, 71],
1168
- "turquoise": [64, 224, 208],
1169
- "violet": [238, 130, 238],
1170
- "wheat": [245, 222, 179],
1171
- "white": [255, 255, 255],
1172
- "whitesmoke": [245, 245, 245],
1173
- "yellow": [255, 255, 0],
1174
- "yellowgreen": [154, 205, 50]
1175
- };
967
+ return 1;
968
+ }
969
+ var init_get_east_asian_width = __esm({
970
+ "node_modules/.pnpm/get-east-asian-width@1.3.0/node_modules/get-east-asian-width/index.js"() {
971
+ init_lookup();
972
+ __name(validate, "validate");
973
+ __name(eastAsianWidth, "eastAsianWidth");
1176
974
  }
1177
975
  });
1178
976
 
1179
- // node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/conversions.js
1180
- var require_conversions = __commonJS({
1181
- "node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/conversions.js"(exports2, module2) {
1182
- var cssKeywords = require_color_name();
1183
- var reverseKeywords = {};
1184
- for (const key of Object.keys(cssKeywords)) {
1185
- reverseKeywords[cssKeywords[key]] = key;
977
+ // node_modules/.pnpm/string-width@8.1.0/node_modules/string-width/index.js
978
+ function baseVisible(segment) {
979
+ return segment.replace(leadingNonPrintingRegex, "");
980
+ }
981
+ function isZeroWidthCluster(segment) {
982
+ return zeroWidthClusterRegex.test(segment);
983
+ }
984
+ function trailingHalfwidthWidth(segment, eastAsianWidthOptions) {
985
+ let extra = 0;
986
+ if (segment.length > 1) {
987
+ for (const char of segment.slice(1)) {
988
+ if (char >= "＀" && char <= "￯") {
989
+ extra += eastAsianWidth(char.codePointAt(0), eastAsianWidthOptions);
990
+ }
1186
991
  }
1187
- var convert = {
1188
- rgb: { channels: 3, labels: "rgb" },
1189
- hsl: { channels: 3, labels: "hsl" },
1190
- hsv: { channels: 3, labels: "hsv" },
1191
- hwb: { channels: 3, labels: "hwb" },
1192
- cmyk: { channels: 4, labels: "cmyk" },
1193
- xyz: { channels: 3, labels: "xyz" },
1194
- lab: { channels: 3, labels: "lab" },
1195
- lch: { channels: 3, labels: "lch" },
1196
- hex: { channels: 1, labels: ["hex"] },
1197
- keyword: { channels: 1, labels: ["keyword"] },
1198
- ansi16: { channels: 1, labels: ["ansi16"] },
1199
- ansi256: { channels: 1, labels: ["ansi256"] },
1200
- hcg: { channels: 3, labels: ["h", "c", "g"] },
1201
- apple: { channels: 3, labels: ["r16", "g16", "b16"] },
1202
- gray: { channels: 1, labels: ["gray"] }
1203
- };
1204
- module2.exports = convert;
1205
- for (const model of Object.keys(convert)) {
1206
- if (!("channels" in convert[model])) {
1207
- throw new Error("missing channels property: " + model);
1208
- }
1209
- if (!("labels" in convert[model])) {
1210
- throw new Error("missing channel labels property: " + model);
1211
- }
1212
- if (convert[model].labels.length !== convert[model].channels) {
1213
- throw new Error("channel and label counts mismatch: " + model);
1214
- }
1215
- const { channels, labels } = convert[model];
1216
- delete convert[model].channels;
1217
- delete convert[model].labels;
1218
- Object.defineProperty(convert[model], "channels", { value: channels });
1219
- Object.defineProperty(convert[model], "labels", { value: labels });
992
+ }
993
+ return extra;
994
+ }
995
+ function stringWidth(input, options = {}) {
996
+ if (typeof input !== "string" || input.length === 0) {
997
+ return 0;
998
+ }
999
+ const {
1000
+ ambiguousIsNarrow = true,
1001
+ countAnsiEscapeCodes = false
1002
+ } = options;
1003
+ let string = input;
1004
+ if (!countAnsiEscapeCodes) {
1005
+ string = stripAnsi(string);
1006
+ }
1007
+ if (string.length === 0) {
1008
+ return 0;
1009
+ }
1010
+ let width = 0;
1011
+ const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
1012
+ for (const { segment } of segmenter.segment(string)) {
1013
+ if (isZeroWidthCluster(segment)) {
1014
+ continue;
1220
1015
  }
1221
- convert.rgb.hsl = function(rgb) {
1222
- const r = rgb[0] / 255;
1223
- const g = rgb[1] / 255;
1224
- const b = rgb[2] / 255;
1225
- const min = Math.min(r, g, b);
1226
- const max = Math.max(r, g, b);
1227
- const delta = max - min;
1228
- let h;
1229
- let s;
1230
- if (max === min) {
1231
- h = 0;
1232
- } else if (r === max) {
1233
- h = (g - b) / delta;
1234
- } else if (g === max) {
1235
- h = 2 + (b - r) / delta;
1236
- } else if (b === max) {
1237
- h = 4 + (r - g) / delta;
1238
- }
1239
- h = Math.min(h * 60, 360);
1240
- if (h < 0) {
1241
- h += 360;
1242
- }
1243
- const l = (min + max) / 2;
1244
- if (max === min) {
1245
- s = 0;
1246
- } else if (l <= 0.5) {
1247
- s = delta / (max + min);
1248
- } else {
1249
- s = delta / (2 - max - min);
1250
- }
1251
- return [h, s * 100, l * 100];
1252
- };
1253
- convert.rgb.hsv = function(rgb) {
1254
- let rdif;
1255
- let gdif;
1256
- let bdif;
1257
- let h;
1258
- let s;
1259
- const r = rgb[0] / 255;
1260
- const g = rgb[1] / 255;
1261
- const b = rgb[2] / 255;
1262
- const v = Math.max(r, g, b);
1263
- const diff = v - Math.min(r, g, b);
1264
- const diffc = /* @__PURE__ */ __name(function(c) {
1265
- return (v - c) / 6 / diff + 1 / 2;
1266
- }, "diffc");
1267
- if (diff === 0) {
1268
- h = 0;
1269
- s = 0;
1270
- } else {
1271
- s = diff / v;
1272
- rdif = diffc(r);
1273
- gdif = diffc(g);
1274
- bdif = diffc(b);
1275
- if (r === v) {
1276
- h = bdif - gdif;
1277
- } else if (g === v) {
1278
- h = 1 / 3 + rdif - bdif;
1279
- } else if (b === v) {
1280
- h = 2 / 3 + gdif - rdif;
1281
- }
1282
- if (h < 0) {
1283
- h += 1;
1284
- } else if (h > 1) {
1285
- h -= 1;
1286
- }
1287
- }
1288
- return [
1289
- h * 360,
1290
- s * 100,
1291
- v * 100
1292
- ];
1293
- };
1294
- convert.rgb.hwb = function(rgb) {
1295
- const r = rgb[0];
1296
- const g = rgb[1];
1297
- let b = rgb[2];
1298
- const h = convert.rgb.hsl(rgb)[0];
1299
- const w = 1 / 255 * Math.min(r, Math.min(g, b));
1300
- b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));
1301
- return [h, w * 100, b * 100];
1302
- };
1303
- convert.rgb.cmyk = function(rgb) {
1304
- const r = rgb[0] / 255;
1305
- const g = rgb[1] / 255;
1306
- const b = rgb[2] / 255;
1307
- const k = Math.min(1 - r, 1 - g, 1 - b);
1308
- const c = (1 - r - k) / (1 - k) || 0;
1309
- const m = (1 - g - k) / (1 - k) || 0;
1310
- const y = (1 - b - k) / (1 - k) || 0;
1311
- return [c * 100, m * 100, y * 100, k * 100];
1312
- };
1313
- function comparativeDistance(x, y) {
1314
- return (x[0] - y[0]) ** 2 + (x[1] - y[1]) ** 2 + (x[2] - y[2]) ** 2;
1016
+ if (rgiEmojiRegex.test(segment)) {
1017
+ width += 2;
1018
+ continue;
1315
1019
  }
1316
- __name(comparativeDistance, "comparativeDistance");
1317
- convert.rgb.keyword = function(rgb) {
1318
- const reversed = reverseKeywords[rgb];
1319
- if (reversed) {
1320
- return reversed;
1321
- }
1322
- let currentClosestDistance = Infinity;
1323
- let currentClosestKeyword;
1324
- for (const keyword of Object.keys(cssKeywords)) {
1325
- const value = cssKeywords[keyword];
1326
- const distance = comparativeDistance(rgb, value);
1327
- if (distance < currentClosestDistance) {
1328
- currentClosestDistance = distance;
1329
- currentClosestKeyword = keyword;
1330
- }
1331
- }
1332
- return currentClosestKeyword;
1333
- };
1334
- convert.keyword.rgb = function(keyword) {
1335
- return cssKeywords[keyword];
1336
- };
1337
- convert.rgb.xyz = function(rgb) {
1338
- let r = rgb[0] / 255;
1339
- let g = rgb[1] / 255;
1340
- let b = rgb[2] / 255;
1341
- r = r > 0.04045 ? ((r + 0.055) / 1.055) ** 2.4 : r / 12.92;
1342
- g = g > 0.04045 ? ((g + 0.055) / 1.055) ** 2.4 : g / 12.92;
1343
- b = b > 0.04045 ? ((b + 0.055) / 1.055) ** 2.4 : b / 12.92;
1344
- const x = r * 0.4124 + g * 0.3576 + b * 0.1805;
1345
- const y = r * 0.2126 + g * 0.7152 + b * 0.0722;
1346
- const z = r * 0.0193 + g * 0.1192 + b * 0.9505;
1347
- return [x * 100, y * 100, z * 100];
1348
- };
1349
- convert.rgb.lab = function(rgb) {
1350
- const xyz = convert.rgb.xyz(rgb);
1351
- let x = xyz[0];
1352
- let y = xyz[1];
1353
- let z = xyz[2];
1354
- x /= 95.047;
1355
- y /= 100;
1356
- z /= 108.883;
1357
- x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
1358
- y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
1359
- z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
1360
- const l = 116 * y - 16;
1361
- const a = 500 * (x - y);
1362
- const b = 200 * (y - z);
1363
- return [l, a, b];
1364
- };
1365
- convert.hsl.rgb = function(hsl) {
1366
- const h = hsl[0] / 360;
1367
- const s = hsl[1] / 100;
1368
- const l = hsl[2] / 100;
1369
- let t2;
1370
- let t3;
1371
- let val;
1372
- if (s === 0) {
1373
- val = l * 255;
1374
- return [val, val, val];
1375
- }
1376
- if (l < 0.5) {
1377
- t2 = l * (1 + s);
1378
- } else {
1379
- t2 = l + s - l * s;
1380
- }
1381
- const t1 = 2 * l - t2;
1382
- const rgb = [0, 0, 0];
1383
- for (let i = 0; i < 3; i++) {
1384
- t3 = h + 1 / 3 * -(i - 1);
1385
- if (t3 < 0) {
1386
- t3++;
1387
- }
1388
- if (t3 > 1) {
1389
- t3--;
1390
- }
1391
- if (6 * t3 < 1) {
1392
- val = t1 + (t2 - t1) * 6 * t3;
1393
- } else if (2 * t3 < 1) {
1394
- val = t2;
1395
- } else if (3 * t3 < 2) {
1396
- val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
1397
- } else {
1398
- val = t1;
1399
- }
1400
- rgb[i] = val * 255;
1401
- }
1402
- return rgb;
1403
- };
1404
- convert.hsl.hsv = function(hsl) {
1405
- const h = hsl[0];
1406
- let s = hsl[1] / 100;
1407
- let l = hsl[2] / 100;
1408
- let smin = s;
1409
- const lmin = Math.max(l, 0.01);
1410
- l *= 2;
1411
- s *= l <= 1 ? l : 2 - l;
1412
- smin *= lmin <= 1 ? lmin : 2 - lmin;
1413
- const v = (l + s) / 2;
1414
- const sv = l === 0 ? 2 * smin / (lmin + smin) : 2 * s / (l + s);
1415
- return [h, sv * 100, v * 100];
1416
- };
1417
- convert.hsv.rgb = function(hsv) {
1418
- const h = hsv[0] / 60;
1419
- const s = hsv[1] / 100;
1420
- let v = hsv[2] / 100;
1421
- const hi = Math.floor(h) % 6;
1422
- const f = h - Math.floor(h);
1423
- const p = 255 * v * (1 - s);
1424
- const q = 255 * v * (1 - s * f);
1425
- const t = 255 * v * (1 - s * (1 - f));
1426
- v *= 255;
1427
- switch (hi) {
1428
- case 0:
1429
- return [v, t, p];
1430
- case 1:
1431
- return [q, v, p];
1432
- case 2:
1433
- return [p, v, t];
1434
- case 3:
1435
- return [p, q, v];
1436
- case 4:
1437
- return [t, p, v];
1438
- case 5:
1439
- return [v, p, q];
1440
- }
1441
- };
1442
- convert.hsv.hsl = function(hsv) {
1443
- const h = hsv[0];
1444
- const s = hsv[1] / 100;
1445
- const v = hsv[2] / 100;
1446
- const vmin = Math.max(v, 0.01);
1447
- let sl;
1448
- let l;
1449
- l = (2 - s) * v;
1450
- const lmin = (2 - s) * vmin;
1451
- sl = s * vmin;
1452
- sl /= lmin <= 1 ? lmin : 2 - lmin;
1453
- sl = sl || 0;
1454
- l /= 2;
1455
- return [h, sl * 100, l * 100];
1456
- };
1457
- convert.hwb.rgb = function(hwb) {
1458
- const h = hwb[0] / 360;
1459
- let wh = hwb[1] / 100;
1460
- let bl = hwb[2] / 100;
1461
- const ratio = wh + bl;
1462
- let f;
1463
- if (ratio > 1) {
1464
- wh /= ratio;
1465
- bl /= ratio;
1466
- }
1467
- const i = Math.floor(6 * h);
1468
- const v = 1 - bl;
1469
- f = 6 * h - i;
1470
- if ((i & 1) !== 0) {
1471
- f = 1 - f;
1472
- }
1473
- const n = wh + f * (v - wh);
1474
- let r;
1475
- let g;
1476
- let b;
1477
- switch (i) {
1478
- default:
1479
- case 6:
1480
- case 0:
1481
- r = v;
1482
- g = n;
1483
- b = wh;
1484
- break;
1485
- case 1:
1486
- r = n;
1487
- g = v;
1488
- b = wh;
1489
- break;
1490
- case 2:
1491
- r = wh;
1492
- g = v;
1493
- b = n;
1494
- break;
1495
- case 3:
1496
- r = wh;
1497
- g = n;
1498
- b = v;
1499
- break;
1500
- case 4:
1501
- r = n;
1502
- g = wh;
1503
- b = v;
1504
- break;
1505
- case 5:
1506
- r = v;
1507
- g = wh;
1508
- b = n;
1509
- break;
1510
- }
1511
- return [r * 255, g * 255, b * 255];
1512
- };
1513
- convert.cmyk.rgb = function(cmyk) {
1514
- const c = cmyk[0] / 100;
1515
- const m = cmyk[1] / 100;
1516
- const y = cmyk[2] / 100;
1517
- const k = cmyk[3] / 100;
1518
- const r = 1 - Math.min(1, c * (1 - k) + k);
1519
- const g = 1 - Math.min(1, m * (1 - k) + k);
1520
- const b = 1 - Math.min(1, y * (1 - k) + k);
1521
- return [r * 255, g * 255, b * 255];
1522
- };
1523
- convert.xyz.rgb = function(xyz) {
1524
- const x = xyz[0] / 100;
1525
- const y = xyz[1] / 100;
1526
- const z = xyz[2] / 100;
1527
- let r;
1528
- let g;
1529
- let b;
1530
- r = x * 3.2406 + y * -1.5372 + z * -0.4986;
1531
- g = x * -0.9689 + y * 1.8758 + z * 0.0415;
1532
- b = x * 0.0557 + y * -0.204 + z * 1.057;
1533
- r = r > 31308e-7 ? 1.055 * r ** (1 / 2.4) - 0.055 : r * 12.92;
1534
- g = g > 31308e-7 ? 1.055 * g ** (1 / 2.4) - 0.055 : g * 12.92;
1535
- b = b > 31308e-7 ? 1.055 * b ** (1 / 2.4) - 0.055 : b * 12.92;
1536
- r = Math.min(Math.max(0, r), 1);
1537
- g = Math.min(Math.max(0, g), 1);
1538
- b = Math.min(Math.max(0, b), 1);
1539
- return [r * 255, g * 255, b * 255];
1540
- };
1541
- convert.xyz.lab = function(xyz) {
1542
- let x = xyz[0];
1543
- let y = xyz[1];
1544
- let z = xyz[2];
1545
- x /= 95.047;
1546
- y /= 100;
1547
- z /= 108.883;
1548
- x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
1549
- y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
1550
- z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
1551
- const l = 116 * y - 16;
1552
- const a = 500 * (x - y);
1553
- const b = 200 * (y - z);
1554
- return [l, a, b];
1555
- };
1556
- convert.lab.xyz = function(lab) {
1557
- const l = lab[0];
1558
- const a = lab[1];
1559
- const b = lab[2];
1560
- let x;
1561
- let y;
1562
- let z;
1563
- y = (l + 16) / 116;
1564
- x = a / 500 + y;
1565
- z = y - b / 200;
1566
- const y2 = y ** 3;
1567
- const x2 = x ** 3;
1568
- const z2 = z ** 3;
1569
- y = y2 > 8856e-6 ? y2 : (y - 16 / 116) / 7.787;
1570
- x = x2 > 8856e-6 ? x2 : (x - 16 / 116) / 7.787;
1571
- z = z2 > 8856e-6 ? z2 : (z - 16 / 116) / 7.787;
1572
- x *= 95.047;
1573
- y *= 100;
1574
- z *= 108.883;
1575
- return [x, y, z];
1576
- };
1577
- convert.lab.lch = function(lab) {
1578
- const l = lab[0];
1579
- const a = lab[1];
1580
- const b = lab[2];
1581
- let h;
1582
- const hr = Math.atan2(b, a);
1583
- h = hr * 360 / 2 / Math.PI;
1584
- if (h < 0) {
1585
- h += 360;
1586
- }
1587
- const c = Math.sqrt(a * a + b * b);
1588
- return [l, c, h];
1589
- };
1590
- convert.lch.lab = function(lch) {
1591
- const l = lch[0];
1592
- const c = lch[1];
1593
- const h = lch[2];
1594
- const hr = h / 360 * 2 * Math.PI;
1595
- const a = c * Math.cos(hr);
1596
- const b = c * Math.sin(hr);
1597
- return [l, a, b];
1598
- };
1599
- convert.rgb.ansi16 = function(args, saturation = null) {
1600
- const [r, g, b] = args;
1601
- let value = saturation === null ? convert.rgb.hsv(args)[2] : saturation;
1602
- value = Math.round(value / 50);
1603
- if (value === 0) {
1604
- return 30;
1605
- }
1606
- let ansi = 30 + (Math.round(b / 255) << 2 | Math.round(g / 255) << 1 | Math.round(r / 255));
1607
- if (value === 2) {
1608
- ansi += 60;
1609
- }
1610
- return ansi;
1611
- };
1612
- convert.hsv.ansi16 = function(args) {
1613
- return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);
1614
- };
1615
- convert.rgb.ansi256 = function(args) {
1616
- const r = args[0];
1617
- const g = args[1];
1618
- const b = args[2];
1619
- if (r === g && g === b) {
1620
- if (r < 8) {
1621
- return 16;
1622
- }
1623
- if (r > 248) {
1624
- return 231;
1625
- }
1626
- return Math.round((r - 8) / 247 * 24) + 232;
1627
- }
1628
- const ansi = 16 + 36 * Math.round(r / 255 * 5) + 6 * Math.round(g / 255 * 5) + Math.round(b / 255 * 5);
1629
- return ansi;
1630
- };
1631
- convert.ansi16.rgb = function(args) {
1632
- let color = args % 10;
1633
- if (color === 0 || color === 7) {
1634
- if (args > 50) {
1635
- color += 3.5;
1636
- }
1637
- color = color / 10.5 * 255;
1638
- return [color, color, color];
1639
- }
1640
- const mult = (~~(args > 50) + 1) * 0.5;
1641
- const r = (color & 1) * mult * 255;
1642
- const g = (color >> 1 & 1) * mult * 255;
1643
- const b = (color >> 2 & 1) * mult * 255;
1644
- return [r, g, b];
1645
- };
1646
- convert.ansi256.rgb = function(args) {
1647
- if (args >= 232) {
1648
- const c = (args - 232) * 10 + 8;
1649
- return [c, c, c];
1650
- }
1651
- args -= 16;
1652
- let rem;
1653
- const r = Math.floor(args / 36) / 5 * 255;
1654
- const g = Math.floor((rem = args % 36) / 6) / 5 * 255;
1655
- const b = rem % 6 / 5 * 255;
1656
- return [r, g, b];
1657
- };
1658
- convert.rgb.hex = function(args) {
1659
- const integer = ((Math.round(args[0]) & 255) << 16) + ((Math.round(args[1]) & 255) << 8) + (Math.round(args[2]) & 255);
1660
- const string = integer.toString(16).toUpperCase();
1661
- return "000000".substring(string.length) + string;
1662
- };
1663
- convert.hex.rgb = function(args) {
1664
- const match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
1665
- if (!match) {
1666
- return [0, 0, 0];
1667
- }
1668
- let colorString = match[0];
1669
- if (match[0].length === 3) {
1670
- colorString = colorString.split("").map((char) => {
1671
- return char + char;
1672
- }).join("");
1673
- }
1674
- const integer = parseInt(colorString, 16);
1675
- const r = integer >> 16 & 255;
1676
- const g = integer >> 8 & 255;
1677
- const b = integer & 255;
1678
- return [r, g, b];
1679
- };
1680
- convert.rgb.hcg = function(rgb) {
1681
- const r = rgb[0] / 255;
1682
- const g = rgb[1] / 255;
1683
- const b = rgb[2] / 255;
1684
- const max = Math.max(Math.max(r, g), b);
1685
- const min = Math.min(Math.min(r, g), b);
1686
- const chroma = max - min;
1687
- let grayscale;
1688
- let hue;
1689
- if (chroma < 1) {
1690
- grayscale = min / (1 - chroma);
1691
- } else {
1692
- grayscale = 0;
1693
- }
1694
- if (chroma <= 0) {
1695
- hue = 0;
1696
- } else if (max === r) {
1697
- hue = (g - b) / chroma % 6;
1698
- } else if (max === g) {
1699
- hue = 2 + (b - r) / chroma;
1700
- } else {
1701
- hue = 4 + (r - g) / chroma;
1702
- }
1703
- hue /= 6;
1704
- hue %= 1;
1705
- return [hue * 360, chroma * 100, grayscale * 100];
1706
- };
1707
- convert.hsl.hcg = function(hsl) {
1708
- const s = hsl[1] / 100;
1709
- const l = hsl[2] / 100;
1710
- const c = l < 0.5 ? 2 * s * l : 2 * s * (1 - l);
1711
- let f = 0;
1712
- if (c < 1) {
1713
- f = (l - 0.5 * c) / (1 - c);
1714
- }
1715
- return [hsl[0], c * 100, f * 100];
1716
- };
1717
- convert.hsv.hcg = function(hsv) {
1718
- const s = hsv[1] / 100;
1719
- const v = hsv[2] / 100;
1720
- const c = s * v;
1721
- let f = 0;
1722
- if (c < 1) {
1723
- f = (v - c) / (1 - c);
1724
- }
1725
- return [hsv[0], c * 100, f * 100];
1726
- };
1727
- convert.hcg.rgb = function(hcg) {
1728
- const h = hcg[0] / 360;
1729
- const c = hcg[1] / 100;
1730
- const g = hcg[2] / 100;
1731
- if (c === 0) {
1732
- return [g * 255, g * 255, g * 255];
1733
- }
1734
- const pure = [0, 0, 0];
1735
- const hi = h % 1 * 6;
1736
- const v = hi % 1;
1737
- const w = 1 - v;
1738
- let mg = 0;
1739
- switch (Math.floor(hi)) {
1740
- case 0:
1741
- pure[0] = 1;
1742
- pure[1] = v;
1743
- pure[2] = 0;
1744
- break;
1745
- case 1:
1746
- pure[0] = w;
1747
- pure[1] = 1;
1748
- pure[2] = 0;
1749
- break;
1750
- case 2:
1751
- pure[0] = 0;
1752
- pure[1] = 1;
1753
- pure[2] = v;
1754
- break;
1755
- case 3:
1756
- pure[0] = 0;
1757
- pure[1] = w;
1758
- pure[2] = 1;
1759
- break;
1760
- case 4:
1761
- pure[0] = v;
1762
- pure[1] = 0;
1763
- pure[2] = 1;
1764
- break;
1765
- default:
1766
- pure[0] = 1;
1767
- pure[1] = 0;
1768
- pure[2] = w;
1769
- }
1770
- mg = (1 - c) * g;
1771
- return [
1772
- (c * pure[0] + mg) * 255,
1773
- (c * pure[1] + mg) * 255,
1774
- (c * pure[2] + mg) * 255
1775
- ];
1776
- };
1777
- convert.hcg.hsv = function(hcg) {
1778
- const c = hcg[1] / 100;
1779
- const g = hcg[2] / 100;
1780
- const v = c + g * (1 - c);
1781
- let f = 0;
1782
- if (v > 0) {
1783
- f = c / v;
1784
- }
1785
- return [hcg[0], f * 100, v * 100];
1786
- };
1787
- convert.hcg.hsl = function(hcg) {
1788
- const c = hcg[1] / 100;
1789
- const g = hcg[2] / 100;
1790
- const l = g * (1 - c) + 0.5 * c;
1791
- let s = 0;
1792
- if (l > 0 && l < 0.5) {
1793
- s = c / (2 * l);
1794
- } else if (l >= 0.5 && l < 1) {
1795
- s = c / (2 * (1 - l));
1796
- }
1797
- return [hcg[0], s * 100, l * 100];
1798
- };
1799
- convert.hcg.hwb = function(hcg) {
1800
- const c = hcg[1] / 100;
1801
- const g = hcg[2] / 100;
1802
- const v = c + g * (1 - c);
1803
- return [hcg[0], (v - c) * 100, (1 - v) * 100];
1804
- };
1805
- convert.hwb.hcg = function(hwb) {
1806
- const w = hwb[1] / 100;
1807
- const b = hwb[2] / 100;
1808
- const v = 1 - b;
1809
- const c = v - w;
1810
- let g = 0;
1811
- if (c < 1) {
1812
- g = (v - c) / (1 - c);
1813
- }
1814
- return [hwb[0], c * 100, g * 100];
1815
- };
1816
- convert.apple.rgb = function(apple) {
1817
- return [apple[0] / 65535 * 255, apple[1] / 65535 * 255, apple[2] / 65535 * 255];
1818
- };
1819
- convert.rgb.apple = function(rgb) {
1820
- return [rgb[0] / 255 * 65535, rgb[1] / 255 * 65535, rgb[2] / 255 * 65535];
1821
- };
1822
- convert.gray.rgb = function(args) {
1823
- return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];
1824
- };
1825
- convert.gray.hsl = function(args) {
1826
- return [0, 0, args[0]];
1827
- };
1828
- convert.gray.hsv = convert.gray.hsl;
1829
- convert.gray.hwb = function(gray) {
1830
- return [0, 100, gray[0]];
1831
- };
1832
- convert.gray.cmyk = function(gray) {
1833
- return [0, 0, 0, gray[0]];
1834
- };
1835
- convert.gray.lab = function(gray) {
1836
- return [gray[0], 0, 0];
1837
- };
1838
- convert.gray.hex = function(gray) {
1839
- const val = Math.round(gray[0] / 100 * 255) & 255;
1840
- const integer = (val << 16) + (val << 8) + val;
1841
- const string = integer.toString(16).toUpperCase();
1842
- return "000000".substring(string.length) + string;
1843
- };
1844
- convert.rgb.gray = function(rgb) {
1845
- const val = (rgb[0] + rgb[1] + rgb[2]) / 3;
1846
- return [val / 255 * 100];
1847
- };
1020
+ const codePoint = baseVisible(segment).codePointAt(0);
1021
+ width += eastAsianWidth(codePoint, eastAsianWidthOptions);
1022
+ width += trailingHalfwidthWidth(segment, eastAsianWidthOptions);
1023
+ }
1024
+ return width;
1025
+ }
1026
+ var segmenter, zeroWidthClusterRegex, leadingNonPrintingRegex, rgiEmojiRegex;
1027
+ var init_string_width = __esm({
1028
+ "node_modules/.pnpm/string-width@8.1.0/node_modules/string-width/index.js"() {
1029
+ init_strip_ansi();
1030
+ init_get_east_asian_width();
1031
+ segmenter = new Intl.Segmenter();
1032
+ zeroWidthClusterRegex = new RegExp("^(?:\\p{Default_Ignorable_Code_Point}|\\p{Control}|\\p{Mark}|\\p{Surrogate})+$", "v");
1033
+ leadingNonPrintingRegex = new RegExp("^[\\p{Default_Ignorable_Code_Point}\\p{Control}\\p{Format}\\p{Mark}\\p{Surrogate}]+", "v");
1034
+ rgiEmojiRegex = new RegExp("^\\p{RGI_Emoji}$", "v");
1035
+ __name(baseVisible, "baseVisible");
1036
+ __name(isZeroWidthCluster, "isZeroWidthCluster");
1037
+ __name(trailingHalfwidthWidth, "trailingHalfwidthWidth");
1038
+ __name(stringWidth, "stringWidth");
1848
1039
  }
1849
1040
  });
1850
1041
 
1851
- // node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/route.js
1852
- var require_route = __commonJS({
1853
- "node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/route.js"(exports2, module2) {
1854
- var conversions = require_conversions();
1855
- function buildGraph() {
1856
- const graph = {};
1857
- const models = Object.keys(conversions);
1858
- for (let len = models.length, i = 0; i < len; i++) {
1859
- graph[models[i]] = {
1860
- // http://jsperf.com/1-vs-infinity
1861
- // micro-opt, but this is simple.
1862
- distance: -1,
1863
- parent: null
1864
- };
1865
- }
1866
- return graph;
1867
- }
1868
- __name(buildGraph, "buildGraph");
1869
- function deriveBFS(fromModel) {
1870
- const graph = buildGraph();
1871
- const queue = [fromModel];
1872
- graph[fromModel].distance = 0;
1873
- while (queue.length) {
1874
- const current = queue.pop();
1875
- const adjacents = Object.keys(conversions[current]);
1876
- for (let len = adjacents.length, i = 0; i < len; i++) {
1877
- const adjacent = adjacents[i];
1878
- const node = graph[adjacent];
1879
- if (node.distance === -1) {
1880
- node.distance = graph[current].distance + 1;
1881
- node.parent = current;
1882
- queue.unshift(adjacent);
1883
- }
1884
- }
1885
- }
1886
- return graph;
1887
- }
1888
- __name(deriveBFS, "deriveBFS");
1889
- function link(from, to) {
1890
- return function(args) {
1891
- return to(from(args));
1042
+ // node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.js
1043
+ function assembleStyles() {
1044
+ const codes = /* @__PURE__ */ new Map();
1045
+ for (const [groupName, group] of Object.entries(styles)) {
1046
+ for (const [styleName, style] of Object.entries(group)) {
1047
+ styles[styleName] = {
1048
+ open: `\x1B[${style[0]}m`,
1049
+ close: `\x1B[${style[1]}m`
1892
1050
  };
1051
+ group[styleName] = styles[styleName];
1052
+ codes.set(style[0], style[1]);
1893
1053
  }
1894
- __name(link, "link");
1895
- function wrapConversion(toModel, graph) {
1896
- const path = [graph[toModel].parent, toModel];
1897
- let fn = conversions[graph[toModel].parent][toModel];
1898
- let cur = graph[toModel].parent;
1899
- while (graph[cur].parent) {
1900
- path.unshift(graph[cur].parent);
1901
- fn = link(conversions[graph[cur].parent][cur], fn);
1902
- cur = graph[cur].parent;
1903
- }
1904
- fn.conversion = path;
1905
- return fn;
1906
- }
1907
- __name(wrapConversion, "wrapConversion");
1908
- module2.exports = function(fromModel) {
1909
- const graph = deriveBFS(fromModel);
1910
- const conversion = {};
1911
- const models = Object.keys(graph);
1912
- for (let len = models.length, i = 0; i < len; i++) {
1913
- const toModel = models[i];
1914
- const node = graph[toModel];
1915
- if (node.parent === null) {
1916
- continue;
1917
- }
1918
- conversion[toModel] = wrapConversion(toModel, graph);
1919
- }
1920
- return conversion;
1921
- };
1054
+ Object.defineProperty(styles, groupName, {
1055
+ value: group,
1056
+ enumerable: false
1057
+ });
1922
1058
  }
1923
- });
1924
-
1925
- // node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/index.js
1926
- var require_color_convert = __commonJS({
1927
- "node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/index.js"(exports2, module2) {
1928
- var conversions = require_conversions();
1929
- var route = require_route();
1930
- var convert = {};
1931
- var models = Object.keys(conversions);
1932
- function wrapRaw(fn) {
1933
- const wrappedFn = /* @__PURE__ */ __name(function(...args) {
1934
- const arg0 = args[0];
1935
- if (arg0 === void 0 || arg0 === null) {
1936
- return arg0;
1937
- }
1938
- if (arg0.length > 1) {
1939
- args = arg0;
1940
- }
1941
- return fn(args);
1942
- }, "wrappedFn");
1943
- if ("conversion" in fn) {
1944
- wrappedFn.conversion = fn.conversion;
1945
- }
1946
- return wrappedFn;
1947
- }
1948
- __name(wrapRaw, "wrapRaw");
1949
- function wrapRounded(fn) {
1950
- const wrappedFn = /* @__PURE__ */ __name(function(...args) {
1951
- const arg0 = args[0];
1952
- if (arg0 === void 0 || arg0 === null) {
1953
- return arg0;
1954
- }
1955
- if (arg0.length > 1) {
1956
- args = arg0;
1957
- }
1958
- const result = fn(args);
1959
- if (typeof result === "object") {
1960
- for (let len = result.length, i = 0; i < len; i++) {
1961
- result[i] = Math.round(result[i]);
1059
+ Object.defineProperty(styles, "codes", {
1060
+ value: codes,
1061
+ enumerable: false
1062
+ });
1063
+ styles.color.close = "\x1B[39m";
1064
+ styles.bgColor.close = "\x1B[49m";
1065
+ styles.color.ansi = wrapAnsi16();
1066
+ styles.color.ansi256 = wrapAnsi256();
1067
+ styles.color.ansi16m = wrapAnsi16m();
1068
+ styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
1069
+ styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
1070
+ styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
1071
+ Object.defineProperties(styles, {
1072
+ rgbToAnsi256: {
1073
+ value(red, green, blue) {
1074
+ if (red === green && green === blue) {
1075
+ if (red < 8) {
1076
+ return 16;
1077
+ }
1078
+ if (red > 248) {
1079
+ return 231;
1962
1080
  }
1081
+ return Math.round((red - 8) / 247 * 24) + 232;
1963
1082
  }
1964
- return result;
1965
- }, "wrappedFn");
1966
- if ("conversion" in fn) {
1967
- wrappedFn.conversion = fn.conversion;
1968
- }
1969
- return wrappedFn;
1970
- }
1971
- __name(wrapRounded, "wrapRounded");
1972
- models.forEach((fromModel) => {
1973
- convert[fromModel] = {};
1974
- Object.defineProperty(convert[fromModel], "channels", { value: conversions[fromModel].channels });
1975
- Object.defineProperty(convert[fromModel], "labels", { value: conversions[fromModel].labels });
1976
- const routes = route(fromModel);
1977
- const routeModels = Object.keys(routes);
1978
- routeModels.forEach((toModel) => {
1979
- const fn = routes[toModel];
1980
- convert[fromModel][toModel] = wrapRounded(fn);
1981
- convert[fromModel][toModel].raw = wrapRaw(fn);
1982
- });
1983
- });
1984
- module2.exports = convert;
1985
- }
1986
- });
1987
-
1988
- // node_modules/.pnpm/ansi-styles@4.3.0/node_modules/ansi-styles/index.js
1989
- var require_ansi_styles = __commonJS({
1990
- "node_modules/.pnpm/ansi-styles@4.3.0/node_modules/ansi-styles/index.js"(exports2, module2) {
1991
- "use strict";
1992
- var wrapAnsi16 = /* @__PURE__ */ __name((fn, offset) => (...args) => {
1993
- const code = fn(...args);
1994
- return `\x1B[${code + offset}m`;
1995
- }, "wrapAnsi16");
1996
- var wrapAnsi256 = /* @__PURE__ */ __name((fn, offset) => (...args) => {
1997
- const code = fn(...args);
1998
- return `\x1B[${38 + offset};5;${code}m`;
1999
- }, "wrapAnsi256");
2000
- var wrapAnsi16m = /* @__PURE__ */ __name((fn, offset) => (...args) => {
2001
- const rgb = fn(...args);
2002
- return `\x1B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
2003
- }, "wrapAnsi16m");
2004
- var ansi2ansi = /* @__PURE__ */ __name((n) => n, "ansi2ansi");
2005
- var rgb2rgb = /* @__PURE__ */ __name((r, g, b) => [r, g, b], "rgb2rgb");
2006
- var setLazyProperty = /* @__PURE__ */ __name((object, property, get) => {
2007
- Object.defineProperty(object, property, {
2008
- get: /* @__PURE__ */ __name(() => {
2009
- const value = get();
2010
- Object.defineProperty(object, property, {
2011
- value,
2012
- enumerable: true,
2013
- configurable: true
2014
- });
2015
- return value;
2016
- }, "get"),
2017
- enumerable: true,
2018
- configurable: true
2019
- });
2020
- }, "setLazyProperty");
2021
- var colorConvert;
2022
- var makeDynamicStyles = /* @__PURE__ */ __name((wrap, targetSpace, identity, isBackground) => {
2023
- if (colorConvert === void 0) {
2024
- colorConvert = require_color_convert();
2025
- }
2026
- const offset = isBackground ? 10 : 0;
2027
- const styles = {};
2028
- for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
2029
- const name = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
2030
- if (sourceSpace === targetSpace) {
2031
- styles[name] = wrap(identity, offset);
2032
- } else if (typeof suite === "object") {
2033
- styles[name] = wrap(suite[targetSpace], offset);
2034
- }
2035
- }
2036
- return styles;
2037
- }, "makeDynamicStyles");
2038
- function assembleStyles() {
2039
- const codes = /* @__PURE__ */ new Map();
2040
- const styles = {
2041
- modifier: {
2042
- reset: [0, 0],
2043
- // 21 isn't widely supported and 22 does the same thing
2044
- bold: [1, 22],
2045
- dim: [2, 22],
2046
- italic: [3, 23],
2047
- underline: [4, 24],
2048
- inverse: [7, 27],
2049
- hidden: [8, 28],
2050
- strikethrough: [9, 29]
2051
- },
2052
- color: {
2053
- black: [30, 39],
2054
- red: [31, 39],
2055
- green: [32, 39],
2056
- yellow: [33, 39],
2057
- blue: [34, 39],
2058
- magenta: [35, 39],
2059
- cyan: [36, 39],
2060
- white: [37, 39],
2061
- // Bright color
2062
- blackBright: [90, 39],
2063
- redBright: [91, 39],
2064
- greenBright: [92, 39],
2065
- yellowBright: [93, 39],
2066
- blueBright: [94, 39],
2067
- magentaBright: [95, 39],
2068
- cyanBright: [96, 39],
2069
- whiteBright: [97, 39]
2070
- },
2071
- bgColor: {
2072
- bgBlack: [40, 49],
2073
- bgRed: [41, 49],
2074
- bgGreen: [42, 49],
2075
- bgYellow: [43, 49],
2076
- bgBlue: [44, 49],
2077
- bgMagenta: [45, 49],
2078
- bgCyan: [46, 49],
2079
- bgWhite: [47, 49],
2080
- // Bright color
2081
- bgBlackBright: [100, 49],
2082
- bgRedBright: [101, 49],
2083
- bgGreenBright: [102, 49],
2084
- bgYellowBright: [103, 49],
2085
- bgBlueBright: [104, 49],
2086
- bgMagentaBright: [105, 49],
2087
- bgCyanBright: [106, 49],
2088
- bgWhiteBright: [107, 49]
1083
+ return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
1084
+ },
1085
+ enumerable: false
1086
+ },
1087
+ hexToRgb: {
1088
+ value(hex) {
1089
+ const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
1090
+ if (!matches) {
1091
+ return [0, 0, 0];
1092
+ }
1093
+ let [colorString] = matches;
1094
+ if (colorString.length === 3) {
1095
+ colorString = [...colorString].map((character) => character + character).join("");
1096
+ }
1097
+ const integer = Number.parseInt(colorString, 16);
1098
+ return [
1099
+ /* eslint-disable no-bitwise */
1100
+ integer >> 16 & 255,
1101
+ integer >> 8 & 255,
1102
+ integer & 255
1103
+ /* eslint-enable no-bitwise */
1104
+ ];
1105
+ },
1106
+ enumerable: false
1107
+ },
1108
+ hexToAnsi256: {
1109
+ value: /* @__PURE__ */ __name((hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)), "value"),
1110
+ enumerable: false
1111
+ },
1112
+ ansi256ToAnsi: {
1113
+ value(code) {
1114
+ if (code < 8) {
1115
+ return 30 + code;
1116
+ }
1117
+ if (code < 16) {
1118
+ return 90 + (code - 8);
1119
+ }
1120
+ let red;
1121
+ let green;
1122
+ let blue;
1123
+ if (code >= 232) {
1124
+ red = ((code - 232) * 10 + 8) / 255;
1125
+ green = red;
1126
+ blue = red;
1127
+ } else {
1128
+ code -= 16;
1129
+ const remainder = code % 36;
1130
+ red = Math.floor(code / 36) / 5;
1131
+ green = Math.floor(remainder / 6) / 5;
1132
+ blue = remainder % 6 / 5;
2089
1133
  }
2090
- };
2091
- styles.color.gray = styles.color.blackBright;
2092
- styles.bgColor.bgGray = styles.bgColor.bgBlackBright;
2093
- styles.color.grey = styles.color.blackBright;
2094
- styles.bgColor.bgGrey = styles.bgColor.bgBlackBright;
2095
- for (const [groupName, group] of Object.entries(styles)) {
2096
- for (const [styleName, style] of Object.entries(group)) {
2097
- styles[styleName] = {
2098
- open: `\x1B[${style[0]}m`,
2099
- close: `\x1B[${style[1]}m`
2100
- };
2101
- group[styleName] = styles[styleName];
2102
- codes.set(style[0], style[1]);
1134
+ const value = Math.max(red, green, blue) * 2;
1135
+ if (value === 0) {
1136
+ return 30;
2103
1137
  }
2104
- Object.defineProperty(styles, groupName, {
2105
- value: group,
2106
- enumerable: false
2107
- });
2108
- }
2109
- Object.defineProperty(styles, "codes", {
2110
- value: codes,
2111
- enumerable: false
2112
- });
2113
- styles.color.close = "\x1B[39m";
2114
- styles.bgColor.close = "\x1B[49m";
2115
- setLazyProperty(styles.color, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, false));
2116
- setLazyProperty(styles.color, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, false));
2117
- setLazyProperty(styles.color, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, false));
2118
- setLazyProperty(styles.bgColor, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, true));
2119
- setLazyProperty(styles.bgColor, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, true));
2120
- setLazyProperty(styles.bgColor, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, true));
2121
- return styles;
1138
+ let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
1139
+ if (value === 2) {
1140
+ result += 60;
1141
+ }
1142
+ return result;
1143
+ },
1144
+ enumerable: false
1145
+ },
1146
+ rgbToAnsi: {
1147
+ value: /* @__PURE__ */ __name((red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)), "value"),
1148
+ enumerable: false
1149
+ },
1150
+ hexToAnsi: {
1151
+ value: /* @__PURE__ */ __name((hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)), "value"),
1152
+ enumerable: false
2122
1153
  }
1154
+ });
1155
+ return styles;
1156
+ }
1157
+ var ANSI_BACKGROUND_OFFSET, wrapAnsi16, wrapAnsi256, wrapAnsi16m, styles, modifierNames, foregroundColorNames, backgroundColorNames, colorNames, ansiStyles, ansi_styles_default;
1158
+ var init_ansi_styles = __esm({
1159
+ "node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.js"() {
1160
+ ANSI_BACKGROUND_OFFSET = 10;
1161
+ wrapAnsi16 = /* @__PURE__ */ __name((offset = 0) => (code) => `\x1B[${code + offset}m`, "wrapAnsi16");
1162
+ wrapAnsi256 = /* @__PURE__ */ __name((offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`, "wrapAnsi256");
1163
+ wrapAnsi16m = /* @__PURE__ */ __name((offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`, "wrapAnsi16m");
1164
+ styles = {
1165
+ modifier: {
1166
+ reset: [0, 0],
1167
+ // 21 isn't widely supported and 22 does the same thing
1168
+ bold: [1, 22],
1169
+ dim: [2, 22],
1170
+ italic: [3, 23],
1171
+ underline: [4, 24],
1172
+ overline: [53, 55],
1173
+ inverse: [7, 27],
1174
+ hidden: [8, 28],
1175
+ strikethrough: [9, 29]
1176
+ },
1177
+ color: {
1178
+ black: [30, 39],
1179
+ red: [31, 39],
1180
+ green: [32, 39],
1181
+ yellow: [33, 39],
1182
+ blue: [34, 39],
1183
+ magenta: [35, 39],
1184
+ cyan: [36, 39],
1185
+ white: [37, 39],
1186
+ // Bright color
1187
+ blackBright: [90, 39],
1188
+ gray: [90, 39],
1189
+ // Alias of `blackBright`
1190
+ grey: [90, 39],
1191
+ // Alias of `blackBright`
1192
+ redBright: [91, 39],
1193
+ greenBright: [92, 39],
1194
+ yellowBright: [93, 39],
1195
+ blueBright: [94, 39],
1196
+ magentaBright: [95, 39],
1197
+ cyanBright: [96, 39],
1198
+ whiteBright: [97, 39]
1199
+ },
1200
+ bgColor: {
1201
+ bgBlack: [40, 49],
1202
+ bgRed: [41, 49],
1203
+ bgGreen: [42, 49],
1204
+ bgYellow: [43, 49],
1205
+ bgBlue: [44, 49],
1206
+ bgMagenta: [45, 49],
1207
+ bgCyan: [46, 49],
1208
+ bgWhite: [47, 49],
1209
+ // Bright color
1210
+ bgBlackBright: [100, 49],
1211
+ bgGray: [100, 49],
1212
+ // Alias of `bgBlackBright`
1213
+ bgGrey: [100, 49],
1214
+ // Alias of `bgBlackBright`
1215
+ bgRedBright: [101, 49],
1216
+ bgGreenBright: [102, 49],
1217
+ bgYellowBright: [103, 49],
1218
+ bgBlueBright: [104, 49],
1219
+ bgMagentaBright: [105, 49],
1220
+ bgCyanBright: [106, 49],
1221
+ bgWhiteBright: [107, 49]
1222
+ }
1223
+ };
1224
+ modifierNames = Object.keys(styles.modifier);
1225
+ foregroundColorNames = Object.keys(styles.color);
1226
+ backgroundColorNames = Object.keys(styles.bgColor);
1227
+ colorNames = [...foregroundColorNames, ...backgroundColorNames];
2123
1228
  __name(assembleStyles, "assembleStyles");
2124
- Object.defineProperty(module2, "exports", {
2125
- enumerable: true,
2126
- get: assembleStyles
2127
- });
1229
+ ansiStyles = assembleStyles();
1230
+ ansi_styles_default = ansiStyles;
2128
1231
  }
2129
1232
  });
2130
1233
 
2131
- // node_modules/.pnpm/wrap-ansi@6.2.0/node_modules/wrap-ansi/index.js
2132
- var require_wrap_ansi = __commonJS({
2133
- "node_modules/.pnpm/wrap-ansi@6.2.0/node_modules/wrap-ansi/index.js"(exports2, module2) {
2134
- "use strict";
2135
- var stringWidth = require_string_width();
2136
- var stripAnsi2 = (init_strip_ansi(), __toCommonJS(strip_ansi_exports));
2137
- var ansiStyles = require_ansi_styles();
2138
- var ESCAPES = /* @__PURE__ */ new Set([
1234
+ // node_modules/.pnpm/wrap-ansi@9.0.2/node_modules/wrap-ansi/index.js
1235
+ var wrap_ansi_exports = {};
1236
+ __export(wrap_ansi_exports, {
1237
+ default: () => wrapAnsi
1238
+ });
1239
+ function wrapAnsi(string, columns, options) {
1240
+ return String(string).normalize().replaceAll("\r\n", "\n").split("\n").map((line) => exec(line, columns, options)).join("\n");
1241
+ }
1242
+ var ESCAPES, END_CODE, ANSI_ESCAPE_BELL, ANSI_CSI, ANSI_OSC, ANSI_SGR_TERMINATOR, ANSI_ESCAPE_LINK, wrapAnsiCode, wrapAnsiHyperlink, wordLengths, wrapWord, stringVisibleTrimSpacesRight, exec;
1243
+ var init_wrap_ansi = __esm({
1244
+ "node_modules/.pnpm/wrap-ansi@9.0.2/node_modules/wrap-ansi/index.js"() {
1245
+ init_string_width();
1246
+ init_strip_ansi();
1247
+ init_ansi_styles();
1248
+ ESCAPES = /* @__PURE__ */ new Set([
2139
1249
  "\x1B",
2140
1250
  "›"
2141
1251
  ]);
2142
- var END_CODE = 39;
2143
- var wrapAnsi = /* @__PURE__ */ __name((code) => `${ESCAPES.values().next().value}[${code}m`, "wrapAnsi");
2144
- var wordLengths = /* @__PURE__ */ __name((string) => string.split(" ").map((character) => stringWidth(character)), "wordLengths");
2145
- var wrapWord = /* @__PURE__ */ __name((rows, word, columns) => {
1252
+ END_CODE = 39;
1253
+ ANSI_ESCAPE_BELL = "\x07";
1254
+ ANSI_CSI = "[";
1255
+ ANSI_OSC = "]";
1256
+ ANSI_SGR_TERMINATOR = "m";
1257
+ ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`;
1258
+ wrapAnsiCode = /* @__PURE__ */ __name((code) => `${ESCAPES.values().next().value}${ANSI_CSI}${code}${ANSI_SGR_TERMINATOR}`, "wrapAnsiCode");
1259
+ wrapAnsiHyperlink = /* @__PURE__ */ __name((url) => `${ESCAPES.values().next().value}${ANSI_ESCAPE_LINK}${url}${ANSI_ESCAPE_BELL}`, "wrapAnsiHyperlink");
1260
+ wordLengths = /* @__PURE__ */ __name((string) => string.split(" ").map((character) => stringWidth(character)), "wordLengths");
1261
+ wrapWord = /* @__PURE__ */ __name((rows, word, columns) => {
2146
1262
  const characters = [...word];
2147
1263
  let isInsideEscape = false;
2148
- let visible = stringWidth(stripAnsi2(rows[rows.length - 1]));
1264
+ let isInsideLinkEscape = false;
1265
+ let visible = stringWidth(stripAnsi(rows.at(-1)));
2149
1266
  for (const [index, character] of characters.entries()) {
2150
1267
  const characterLength = stringWidth(character);
2151
1268
  if (visible + characterLength <= columns) {
@@ -2156,11 +1273,18 @@ var require_wrap_ansi = __commonJS({
2156
1273
  }
2157
1274
  if (ESCAPES.has(character)) {
2158
1275
  isInsideEscape = true;
2159
- } else if (isInsideEscape && character === "m") {
2160
- isInsideEscape = false;
2161
- continue;
1276
+ const ansiEscapeLinkCandidate = characters.slice(index + 1, index + 1 + ANSI_ESCAPE_LINK.length).join("");
1277
+ isInsideLinkEscape = ansiEscapeLinkCandidate === ANSI_ESCAPE_LINK;
2162
1278
  }
2163
1279
  if (isInsideEscape) {
1280
+ if (isInsideLinkEscape) {
1281
+ if (character === ANSI_ESCAPE_BELL) {
1282
+ isInsideEscape = false;
1283
+ isInsideLinkEscape = false;
1284
+ }
1285
+ } else if (character === ANSI_SGR_TERMINATOR) {
1286
+ isInsideEscape = false;
1287
+ }
2164
1288
  continue;
2165
1289
  }
2166
1290
  visible += characterLength;
@@ -2169,12 +1293,12 @@ var require_wrap_ansi = __commonJS({
2169
1293
  visible = 0;
2170
1294
  }
2171
1295
  }
2172
- if (!visible && rows[rows.length - 1].length > 0 && rows.length > 1) {
1296
+ if (!visible && rows.at(-1).length > 0 && rows.length > 1) {
2173
1297
  rows[rows.length - 2] += rows.pop();
2174
1298
  }
2175
1299
  }, "wrapWord");
2176
- var stringVisibleTrimSpacesRight = /* @__PURE__ */ __name((str) => {
2177
- const words = str.split(" ");
1300
+ stringVisibleTrimSpacesRight = /* @__PURE__ */ __name((string) => {
1301
+ const words = string.split(" ");
2178
1302
  let last = words.length;
2179
1303
  while (last > 0) {
2180
1304
  if (stringWidth(words[last - 1]) > 0) {
@@ -2183,24 +1307,24 @@ var require_wrap_ansi = __commonJS({
2183
1307
  last--;
2184
1308
  }
2185
1309
  if (last === words.length) {
2186
- return str;
1310
+ return string;
2187
1311
  }
2188
1312
  return words.slice(0, last).join(" ") + words.slice(last).join("");
2189
1313
  }, "stringVisibleTrimSpacesRight");
2190
- var exec = /* @__PURE__ */ __name((string, columns, options = {}) => {
1314
+ exec = /* @__PURE__ */ __name((string, columns, options = {}) => {
2191
1315
  if (options.trim !== false && string.trim() === "") {
2192
1316
  return "";
2193
1317
  }
2194
- let pre = "";
2195
- let ret = "";
1318
+ let returnValue = "";
2196
1319
  let escapeCode;
1320
+ let escapeUrl;
2197
1321
  const lengths = wordLengths(string);
2198
1322
  let rows = [""];
2199
1323
  for (const [index, word] of string.split(" ").entries()) {
2200
1324
  if (options.trim !== false) {
2201
- rows[rows.length - 1] = rows[rows.length - 1].trimLeft();
1325
+ rows[rows.length - 1] = rows.at(-1).trimStart();
2202
1326
  }
2203
- let rowLength = stringWidth(rows[rows.length - 1]);
1327
+ let rowLength = stringWidth(rows.at(-1));
2204
1328
  if (index !== 0) {
2205
1329
  if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) {
2206
1330
  rows.push("");
@@ -2235,29 +1359,43 @@ var require_wrap_ansi = __commonJS({
2235
1359
  rows[rows.length - 1] += word;
2236
1360
  }
2237
1361
  if (options.trim !== false) {
2238
- rows = rows.map(stringVisibleTrimSpacesRight);
1362
+ rows = rows.map((row) => stringVisibleTrimSpacesRight(row));
2239
1363
  }
2240
- pre = rows.join("\n");
2241
- for (const [index, character] of [...pre].entries()) {
2242
- ret += character;
1364
+ const preString = rows.join("\n");
1365
+ const pre = [...preString];
1366
+ let preStringIndex = 0;
1367
+ for (const [index, character] of pre.entries()) {
1368
+ returnValue += character;
2243
1369
  if (ESCAPES.has(character)) {
2244
- const code2 = parseFloat(/\d[^m]*/.exec(pre.slice(index, index + 4)));
2245
- escapeCode = code2 === END_CODE ? null : code2;
2246
- }
2247
- const code = ansiStyles.codes.get(Number(escapeCode));
2248
- if (escapeCode && code) {
2249
- if (pre[index + 1] === "\n") {
2250
- ret += wrapAnsi(code);
2251
- } else if (character === "\n") {
2252
- ret += wrapAnsi(escapeCode);
1370
+ const { groups } = new RegExp(`(?:\\${ANSI_CSI}(?<code>\\d+)m|\\${ANSI_ESCAPE_LINK}(?<uri>.*)${ANSI_ESCAPE_BELL})`).exec(preString.slice(preStringIndex)) || { groups: {} };
1371
+ if (groups.code !== void 0) {
1372
+ const code2 = Number.parseFloat(groups.code);
1373
+ escapeCode = code2 === END_CODE ? void 0 : code2;
1374
+ } else if (groups.uri !== void 0) {
1375
+ escapeUrl = groups.uri.length === 0 ? void 0 : groups.uri;
2253
1376
  }
2254
1377
  }
1378
+ const code = ansi_styles_default.codes.get(Number(escapeCode));
1379
+ if (pre[index + 1] === "\n") {
1380
+ if (escapeUrl) {
1381
+ returnValue += wrapAnsiHyperlink("");
1382
+ }
1383
+ if (escapeCode && code) {
1384
+ returnValue += wrapAnsiCode(code);
1385
+ }
1386
+ } else if (character === "\n") {
1387
+ if (escapeCode && code) {
1388
+ returnValue += wrapAnsiCode(escapeCode);
1389
+ }
1390
+ if (escapeUrl) {
1391
+ returnValue += wrapAnsiHyperlink(escapeUrl);
1392
+ }
1393
+ }
1394
+ preStringIndex += character.length;
2255
1395
  }
2256
- return ret;
1396
+ return returnValue;
2257
1397
  }, "exec");
2258
- module2.exports = (string, columns, options) => {
2259
- return String(string).normalize().replace(/\r\n/g, "\n").split("\n").map((line) => exec(line, columns, options)).join("\n");
2260
- };
1398
+ __name(wrapAnsi, "wrapAnsi");
2261
1399
  }
2262
1400
  });
2263
1401
 
@@ -2272,7 +1410,7 @@ var require_utils = __commonJS({
2272
1410
  exports2.breakLines = breakLines;
2273
1411
  exports2.readlineWidth = readlineWidth;
2274
1412
  var cli_width_1 = __importDefault(require_cli_width());
2275
- var wrap_ansi_1 = __importDefault(require_wrap_ansi());
1413
+ var wrap_ansi_1 = __importDefault((init_wrap_ansi(), __toCommonJS(wrap_ansi_exports)));
2276
1414
  var hook_engine_ts_1 = require_hook_engine();
2277
1415
  function breakLines(content, width) {
2278
1416
  return content.split("\n").flatMap((line) => (0, wrap_ansi_1.default)(line, width, { trim: false, hard: true }).split("\n").map((str) => str.trimEnd())).join("\n");
@@ -3259,7 +2397,7 @@ var require_commonjs4 = __commonJS({
3259
2397
  pageSize = 7,
3260
2398
  loop = true,
3261
2399
  required,
3262
- validate = /* @__PURE__ */ __name(() => true, "validate")
2400
+ validate: validate2 = /* @__PURE__ */ __name(() => true, "validate")
3263
2401
  } = config;
3264
2402
  const shortcuts = { all: "a", invert: "i", ...config.shortcuts };
3265
2403
  const theme = (0, core_1.makeTheme)(checkboxTheme, config.theme);
@@ -3280,7 +2418,7 @@ var require_commonjs4 = __commonJS({
3280
2418
  (0, core_1.useKeypress)(async (key) => {
3281
2419
  if ((0, core_1.isEnterKey)(key)) {
3282
2420
  const selection = items.filter(isChecked);
3283
- const isValid = await validate([...selection]);
2421
+ const isValid = await validate2([...selection]);
3284
2422
  if (required && !items.some(isChecked)) {
3285
2423
  setError("At least one choice must be selected");
3286
2424
  } else if (isValid === true) {