import CJS_COMPAT_NODE_URL from 'node:url';
import CJS_COMPAT_NODE_PATH from 'node:path';
import CJS_COMPAT_NODE_MODULE from "node:module";

const __filename = CJS_COMPAT_NODE_URL.fileURLToPath(import.meta.url);
const __dirname = CJS_COMPAT_NODE_PATH.dirname(__filename);
const require = CJS_COMPAT_NODE_MODULE.createRequire(import.meta.url);
// ------------------------------------------------------------
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
// ------------------------------------------------------------
import {
  a as E,
  d as h,
  f as p
} from "./chunk-HRN2KQZP.js";

// ../node_modules/eastasianwidth/eastasianwidth.js
var q = h((r0, V) => {
  var d = {};
  typeof V > "u" ? window.eastasianwidth = d : V.exports = d;
  d.eastAsianWidth = function(u) {
    var F = u.charCodeAt(0), e = u.length == 2 ? u.charCodeAt(1) : 0, D = F;
    return 55296 <= F && F <= 56319 && 56320 <= e && e <= 57343 && (F &= 1023, e &= 1023, D = F << 10 | e, D += 65536), D == 12288 || 65281 <= D && D <= 65376 || 65504 <= D && D <= 65510 ? "F" : D == 8361 || 65377 <= D && D <= 65470 || 65474 <= D && D <= 65479 || 65482 <= D && D <= 65487 || 65490 <= D && D <= 65495 || 65498 <= D && D <= 65500 || 65512 <= D && D <= 65518 ? "H" : 4352 <= D && D <= 4447 || 4515 <= D && D <= 4519 || 4602 <= D && D <= 4607 || 9001 <= D && D <= 9002 || 11904 <= D && D <= 11929 || 11931 <= D && D <= 12019 || 12032 <= D && D <= 12245 || 12272 <= D && D <= 12283 || 12289 <= D && D <= 12350 || 12353 <= D && D <= 12438 || 12441 <= D && D <= 12543 || 12549 <= D && D <= 12589 || 12593 <= D && D <= 12686 || 12688 <= D && D <= 12730 || 12736 <= D && D <= 12771 || 12784 <= D && D <= 12830 || 12832 <= D && D <= 12871 || 12880 <= D && D <= 13054 || 13056 <= D && D <= 19903 || 19968 <= D && D <= 42124 || 42128 <= D && D <= 42182 || 43360 <= D && D <= 43388 || 44032 <= D && D <= 55203 || 55216 <= D && D <= 55238 || 55243 <= D && D <= 55291 || 63744 <= D && D <= 64255 || 65040 <= D && D <= 65049 || 65072 <= D && D <= 65106 || 65108 <= D && D <= 65126 || 65128 <= D && D <= 65131 || 110592 <= D && D <= 110593 || 127488 <= D && D <= 127490 || 127504 <= D && D <= 127546 || 127552 <= D && D <= 127560 || 127568 <= D && D <= 127569 || 131072 <= D && D <= 194367 || 177984 <= D && D <= 196605 || 196608 <= D && D <= 262141 ? "W" : 32 <= D && D <= 126 || 162 <= D && D <= 163 || 165 <= D && D <= 166 || D == 172 || D == 175 || 10214 <= D && D <= 10221 || 10629 <= D && D <= 10630 ? "Na" : D == 161 || D == 164 || 167 <= D && D <= 168 || D == 170 || 173 <= D && D <= 174 || 176 <= D && D <= 180 || 182 <= D && D <= 186 || 188 <= D && D <= 191 || D == 198 || D == 208 || 215 <= D && D <= 216 || 222 <= D && D <= 225 || D == 230 || 232 <= D && D <= 234 || 236 <= D && D <= 237 || D == 240 || 242 <= D && D <= 243 || 247 <= D && D <= 250 || D == 252 || D == 254 || D == 257 || D == 273 || D == 275 || D == 283 || 294 <= D && D <= 295 || D == 299 || 305 <= D && D <= 307 || D == 312 || 319 <= D && D <= 322 || D == 324 || 328 <= D && D <= 331 || D == 333 || 338 <= D && D <= 339 || 358 <= D && D <= 359 || D == 363 || D == 462 || D == 464 || D == 466 || D == 468 || D == 470 || D == 472 || D == 474 || D == 476 || D == 593 || D == 609 || D == 708 || D == 711 || 713 <= D && D <= 715 || D == 717 || D == 720 || 728 <= D && D <= 731 || D == 733 || D == 735 || 768 <= D && D <= 879 || 913 <= D && D <= 929 || 931 <= D && D <= 937 || 945 <= D && D <= 961 || 963 <= D && D <= 969 || D == 1025 || 1040 <= D && D <= 1103 || D == 1105 || D == 8208 || 8211 <= D && D <= 8214 || 8216 <= D && D <= 8217 || 8220 <= D && D <= 8221 || 8224 <= D && D <= 8226 || 8228 <= D && D <= 8231 || D == 8240 || 8242 <= D && D <= 8243 || D == 8245 || D == 8251 || D == 8254 || D == 8308 || D == 8319 || 8321 <= D && D <= 8324 || D == 8364 || D == 8451 || D == 8453 || D == 8457 || D == 8467 || D == 8470 || 8481 <= D && D <= 8482 || D == 8486 || D == 8491 || 8531 <= D && D <= 8532 || 8539 <= D && D <= 8542 || 8544 <= D && D <= 8555 || 8560 <= D && D <= 8569 || D == 8585 || 8592 <= D && D <= 8601 || 8632 <= D && D <= 8633 || D == 8658 || D == 8660 || D == 8679 || D == 8704 || 8706 <= D && D <= 8707 || 8711 <= D && D <= 8712 || D == 8715 || D == 8719 || D == 8721 || D == 8725 || D == 8730 || 8733 <= D && D <= 8736 || D == 8739 || D == 8741 || 8743 <= D && D <= 8748 || D == 8750 || 8756 <= D && D <= 8759 || 8764 <= D && D <= 8765 || D == 8776 || D == 8780 || D == 8786 || 8800 <= D && D <= 8801 || 8804 <= D && D <= 8807 || 8810 <= D && D <= 8811 || 8814 <= D && D <= 8815 || 8834 <= D && D <= 8835 || 8838 <= D && D <= 8839 || D == 8853 || D == 8857 || D == 8869 || D == 8895 || D == 8978 || 9312 <= D && D <= 9449 || 9451 <= D && D <= 9547 || 9552 <= D && D <= 9587 || 9600 <= D && D <= 9615 || 9618 <= D && D <= 9621 || 9632 <= D && D <= 9633 || 9635 <= D && D <= 9641 || 9650 <= D && D <= 9651 || 9654 <= D && D <= 9655 || 9660 <= D && D <= 9661 || 9664 <= D && D <= 9665 || 9670 <= D && D <= 9672 || D == 9675 || 9678 <= D && D <= 9681 || 9698 <= D && D <= 9701 || D == 9711 || 9733 <= D && D <= 9734 || D == 9737 || 9742 <= D && D <= 9743 || 9748 <= D && D <= 9749 || D == 9756 || D == 9758 || D == 9792 || D == 9794 || 9824 <= D && D <= 9825 || 9827 <= D && D <= 9829 || 9831 <= D && D <= 9834 || 9836 <= D && D <= 9837 || D == 9839 || 9886 <= D && D <= 9887 || 9918 <= D && D <= 9919 || 9924 <= D && D <= 9933 || 9935 <= D && D <= 9953 || D == 9955 || 9960 <= D && D <= 9983 || D == 10045 || D == 10071 || 10102 <= D && D <= 10111 || 11093 <= D && D <= 11097 || 12872 <= D && D <= 12879 || 57344 <= D && D <= 63743 || 65024 <= D && D <= 65039 || D == 65533 || 127232 <= D && D <= 127242 || 127248 <= D && D <= 127277 || 127280 <= D && D <= 127337 || 127344 <= D && D <= 127386 || 917760 <= D && D <= 917999 || 983040 <= D && D <= 1048573 || 1048576 <= D && D <= 1114109 ? "A" : "N";
  };
  d.characterLength = function(u) {
    var F = this.eastAsianWidth(u);
    return F == "F" || F == "W" || F == "A" ? 2 : 1;
  };
  function aD(u) {
    return u.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
  }
  E(aD, "stringToArray");
  d.length = function(u) {
    for (var F = aD(u), e = 0, D = 0; D < F.length; D++)
      e = e + this.characterLength(F[D]);
    return e;
  };
  d.slice = function(u, F, e) {
    textLen = d.length(u), F = F || 0, e = e || 1, F < 0 && (F = textLen + F), e < 0 && (e = textLen + e);
    for (var D = "", t = 0, C = aD(u), r = 0; r < C.length; r++) {
      var n = C[r], B = d.length(n);
      if (t >= F - (B == 2 ? 1 : 0))
        if (t + B <= e)
          D += n;
        else
          break;
      t += B;
    }
    return D;
  };
});

// ../node_modules/emoji-regex/index.js
var Z = h((B0, sD) => {
  "use strict";
  sD.exports = function() {
    return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\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])|\uD83C[\uDF3E\uDF73\uDF7C\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\uDF7C\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\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\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\uDF7C\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\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\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|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\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]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\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\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\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-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\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-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*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\u26A7\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-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\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[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
  };
});

// ../node_modules/cli-boxes/boxes.json
var WD = h((P0, Lu) => {
  Lu.exports = {
    single: {
      topLeft: "\u250C",
      top: "\u2500",
      topRight: "\u2510",
      right: "\u2502",
      bottomRight: "\u2518",
      bottom: "\u2500",
      bottomLeft: "\u2514",
      left: "\u2502"
    },
    double: {
      topLeft: "\u2554",
      top: "\u2550",
      topRight: "\u2557",
      right: "\u2551",
      bottomRight: "\u255D",
      bottom: "\u2550",
      bottomLeft: "\u255A",
      left: "\u2551"
    },
    round: {
      topLeft: "\u256D",
      top: "\u2500",
      topRight: "\u256E",
      right: "\u2502",
      bottomRight: "\u256F",
      bottom: "\u2500",
      bottomLeft: "\u2570",
      left: "\u2502"
    },
    bold: {
      topLeft: "\u250F",
      top: "\u2501",
      topRight: "\u2513",
      right: "\u2503",
      bottomRight: "\u251B",
      bottom: "\u2501",
      bottomLeft: "\u2517",
      left: "\u2503"
    },
    singleDouble: {
      topLeft: "\u2553",
      top: "\u2500",
      topRight: "\u2556",
      right: "\u2551",
      bottomRight: "\u255C",
      bottom: "\u2500",
      bottomLeft: "\u2559",
      left: "\u2551"
    },
    doubleSingle: {
      topLeft: "\u2552",
      top: "\u2550",
      topRight: "\u2555",
      right: "\u2502",
      bottomRight: "\u255B",
      bottom: "\u2550",
      bottomLeft: "\u2558",
      left: "\u2502"
    },
    classic: {
      topLeft: "+",
      top: "-",
      topRight: "+",
      right: "|",
      bottomRight: "+",
      bottom: "-",
      bottomLeft: "+",
      left: "|"
    },
    arrow: {
      topLeft: "\u2198",
      top: "\u2193",
      topRight: "\u2199",
      right: "\u2190",
      bottomRight: "\u2196",
      bottom: "\u2191",
      bottomLeft: "\u2197",
      left: "\u2192"
    }
  };
});

// ../node_modules/cli-boxes/index.js
var tD = h((K0, CD) => {
  "use strict";
  var GD = WD();
  CD.exports = GD;
  CD.exports.default = GD;
});

// ../node_modules/string-width/node_modules/ansi-regex/index.js
var qD = h((Z0, VD) => {
  "use strict";
  VD.exports = ({ onlyFirst: u = !1 } = {}) => {
    let F = [
      "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
      "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
    ].join("|");
    return new RegExp(F, u ? void 0 : "g");
  };
});

// ../node_modules/string-width/node_modules/strip-ansi/index.js
var HD = h((H0, ZD) => {
  "use strict";
  var $u = qD();
  ZD.exports = (u) => typeof u == "string" ? u.replace($u(), "") : u;
});

// ../node_modules/is-fullwidth-code-point/index.js
var QD = h((J0, nD) => {
  "use strict";
  var JD = /* @__PURE__ */ E((u) => Number.isNaN(u) ? !1 : u >= 4352 && (u <= 4447 || // Hangul Jamo
  u === 9001 || // LEFT-POINTING ANGLE BRACKET
  u === 9002 || // RIGHT-POINTING ANGLE BRACKET
  // CJK Radicals Supplement .. Enclosed CJK Letters and Months
  11904 <= u && u <= 12871 && u !== 12351 || // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A
  12880 <= u && u <= 19903 || // CJK Unified Ideographs .. Yi Radicals
  19968 <= u && u <= 42182 || // Hangul Jamo Extended-A
  43360 <= u && u <= 43388 || // Hangul Syllables
  44032 <= u && u <= 55203 || // CJK Compatibility Ideographs
  63744 <= u && u <= 64255 || // Vertical Forms
  65040 <= u && u <= 65049 || // CJK Compatibility Forms .. Small Form Variants
  65072 <= u && u <= 65131 || // Halfwidth and Fullwidth Forms
  65281 <= u && u <= 65376 || 65504 <= u && u <= 65510 || // Kana Supplement
  110592 <= u && u <= 110593 || // Enclosed Ideographic Supplement
  127488 <= u && u <= 127569 || // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
  131072 <= u && u <= 262141), "isFullwidthCodePoint");
  nD.exports = JD;
  nD.exports.default = JD;
});

// ../node_modules/string-width/node_modules/emoji-regex/index.js
var zD = h((X0, XD) => {
  "use strict";
  XD.exports = function() {
    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;
  };
});

// ../node_modules/string-width/index.js
var uu = h((z0, BD) => {
  "use strict";
  var Wu = HD(), Gu = QD(), Uu = zD(), Du = /* @__PURE__ */ E((u) => {
    if (typeof u != "string" || u.length === 0 || (u = Wu(u), u.length === 0))
      return 0;
    u = u.replace(Uu(), "  ");
    let F = 0;
    for (let e = 0; e < u.length; e++) {
      let D = u.codePointAt(e);
      D <= 31 || D >= 127 && D <= 159 || D >= 768 && D <= 879 || (D > 65535 && e++, F += Gu(D) ? 2 : 1);
    }
    return F;
  }, "stringWidth");
  BD.exports = Du;
  BD.exports.default = Du;
});

// ../node_modules/ansi-align/index.js
var eu = h((uF, Fu) => {
  "use strict";
  var Yu = uu();
  function w(u, F) {
    if (!u) return u;
    F = F || {};
    let e = F.align || "center";
    if (e === "left") return u;
    let D = F.split || `
`, t = F.pad || " ", C = e !== "right" ? Pu : Ku, r = !1;
    Array.isArray(u) || (r = !0, u = String(u).split(D));
    let n, B = 0;
    return u = u.map(function(i) {
      return i = String(i), n = Yu(i), B = Math.max(n, B), {
        str: i,
        width: n
      };
    }).map(function(i) {
      return new Array(C(B, i.width) + 1).join(t) + i.str;
    }), r ? u.join(D) : u;
  }
  E(w, "ansiAlign");
  w.left = /* @__PURE__ */ E(function(F) {
    return w(F, { align: "left" });
  }, "left");
  w.center = /* @__PURE__ */ E(function(F) {
    return w(F, { align: "center" });
  }, "center");
  w.right = /* @__PURE__ */ E(function(F) {
    return w(F, { align: "right" });
  }, "right");
  Fu.exports = w;
  function Pu(u, F) {
    return Math.floor((u - F) / 2);
  }
  E(Pu, "halfDiff");
  function Ku(u, F) {
    return u - F;
  }
  E(Ku, "fullDiff");
});

// ../node_modules/ansi-regex/index.js
function K({ onlyFirst: u = !1 } = {}) {
  let e = [
    "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))",
    "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"
  ].join("|");
  return new RegExp(e, u ? void 0 : "g");
}
E(K, "ansiRegex");

// ../node_modules/strip-ansi/index.js
var Bu = K();
function R(u) {
  if (typeof u != "string")
    throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);
  return u.replace(Bu, "");
}
E(R, "stripAnsi");

// ../node_modules/wrap-ansi/node_modules/string-width/index.js
var xD = p(q(), 1), AD = p(Z(), 1);
function T(u, F = {}) {
  if (typeof u != "string" || u.length === 0 || (F = {
    ambiguousIsNarrow: !0,
    ...F
  }, u = R(u), u.length === 0))
    return 0;
  u = u.replace((0, AD.default)(), "  ");
  let e = F.ambiguousIsNarrow ? 1 : 2, D = 0;
  for (let t of u) {
    let C = t.codePointAt(0);
    if (C <= 31 || C >= 127 && C <= 159 || C >= 768 && C <= 879)
      continue;
    switch (xD.default.eastAsianWidth(t)) {
      case "F":
      case "W":
        D += 2;
        break;
      case "A":
        D += e;
        break;
      default:
        D += 1;
    }
  }
  return D;
}
E(T, "stringWidth");

// ../node_modules/wrap-ansi/node_modules/ansi-styles/index.js
var fD = /* @__PURE__ */ E((u = 0) => (F) => `\x1B[${F + u}m`, "wrapAnsi16"), cD = /* @__PURE__ */ E((u = 0) => (F) => `\x1B[${38 + u};5;${F}m`, "wrapAnsi256"), gD = /* @__PURE__ */ E((u = 0) => (F, e, D) => `\x1B[${38 + u};2;${F};${e};${D}m`, "wrapAnsi16m"), o = {
  modifier: {
    reset: [0, 0],
    // 21 isn't widely supported and 22 does the same thing
    bold: [1, 22],
    dim: [2, 22],
    italic: [3, 23],
    underline: [4, 24],
    overline: [53, 55],
    inverse: [7, 27],
    hidden: [8, 28],
    strikethrough: [9, 29]
  },
  color: {
    black: [30, 39],
    red: [31, 39],
    green: [32, 39],
    yellow: [33, 39],
    blue: [34, 39],
    magenta: [35, 39],
    cyan: [36, 39],
    white: [37, 39],
    // Bright color
    blackBright: [90, 39],
    gray: [90, 39],
    // Alias of `blackBright`
    grey: [90, 39],
    // Alias of `blackBright`
    redBright: [91, 39],
    greenBright: [92, 39],
    yellowBright: [93, 39],
    blueBright: [94, 39],
    magentaBright: [95, 39],
    cyanBright: [96, 39],
    whiteBright: [97, 39]
  },
  bgColor: {
    bgBlack: [40, 49],
    bgRed: [41, 49],
    bgGreen: [42, 49],
    bgYellow: [43, 49],
    bgBlue: [44, 49],
    bgMagenta: [45, 49],
    bgCyan: [46, 49],
    bgWhite: [47, 49],
    // Bright color
    bgBlackBright: [100, 49],
    bgGray: [100, 49],
    // Alias of `bgBlackBright`
    bgGrey: [100, 49],
    // Alias of `bgBlackBright`
    bgRedBright: [101, 49],
    bgGreenBright: [102, 49],
    bgYellowBright: [103, 49],
    bgBlueBright: [104, 49],
    bgMagentaBright: [105, 49],
    bgCyanBright: [106, 49],
    bgWhiteBright: [107, 49]
  }
}, a0 = Object.keys(o.modifier), iu = Object.keys(o.color), lu = Object.keys(o.bgColor), s0 = [...iu, ...lu];
function ou() {
  let u = /* @__PURE__ */ new Map();
  for (let [F, e] of Object.entries(o)) {
    for (let [D, t] of Object.entries(e))
      o[D] = {
        open: `\x1B[${t[0]}m`,
        close: `\x1B[${t[1]}m`
      }, e[D] = o[D], u.set(t[0], t[1]);
    Object.defineProperty(o, F, {
      value: e,
      enumerable: !1
    });
  }
  return Object.defineProperty(o, "codes", {
    value: u,
    enumerable: !1
  }), o.color.close = "\x1B[39m", o.bgColor.close = "\x1B[49m", o.color.ansi = fD(), o.color.ansi256 = cD(), o.color.ansi16m = gD(), o.bgColor.ansi = fD(10), o.bgColor.ansi256 = cD(10), o.bgColor.ansi16m = gD(10), Object.defineProperties(o, {
    rgbToAnsi256: {
      value: /* @__PURE__ */ E((F, e, D) => F === e && e === D ? F < 8 ? 16 : F > 248 ? 231 : Math.round((F - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(F / 255 * 5) + 6 * Math.round(e / 255 * 5) + Math.round(D / 255 * 5), "value"),
      enumerable: !1
    },
    hexToRgb: {
      value: /* @__PURE__ */ E((F) => {
        let e = /[a-f\d]{6}|[a-f\d]{3}/i.exec(F.toString(16));
        if (!e)
          return [0, 0, 0];
        let [D] = e;
        D.length === 3 && (D = [...D].map((C) => C + C).join(""));
        let t = Number.parseInt(D, 16);
        return [
          /* eslint-disable no-bitwise */
          t >> 16 & 255,
          t >> 8 & 255,
          t & 255
          /* eslint-enable no-bitwise */
        ];
      }, "value"),
      enumerable: !1
    },
    hexToAnsi256: {
      value: /* @__PURE__ */ E((F) => o.rgbToAnsi256(...o.hexToRgb(F)), "value"),
      enumerable: !1
    },
    ansi256ToAnsi: {
      value: /* @__PURE__ */ E((F) => {
        if (F < 8)
          return 30 + F;
        if (F < 16)
          return 90 + (F - 8);
        let e, D, t;
        if (F >= 232)
          e = ((F - 232) * 10 + 8) / 255, D = e, t = e;
        else {
          F -= 16;
          let n = F % 36;
          e = Math.floor(F / 36) / 5, D = Math.floor(n / 6) / 5, t = n % 6 / 5;
        }
        let C = Math.max(e, D, t) * 2;
        if (C === 0)
          return 30;
        let r = 30 + (Math.round(t) << 2 | Math.round(D) << 1 | Math.round(e));
        return C === 2 && (r += 60), r;
      }, "value"),
      enumerable: !1
    },
    rgbToAnsi: {
      value: /* @__PURE__ */ E((F, e, D) => o.ansi256ToAnsi(o.rgbToAnsi256(F, e, D)), "value"),
      enumerable: !1
    },
    hexToAnsi: {
      value: /* @__PURE__ */ E((F) => o.ansi256ToAnsi(o.hexToAnsi256(F)), "value"),
      enumerable: !1
    }
  }), o;
}
E(ou, "assembleStyles");
var au = ou(), hD = au;

// ../node_modules/wrap-ansi/index.js
var j = /* @__PURE__ */ new Set([
  "\x1B",
  "\x9B"
]), su = 39, J = "\x07", bD = "[", xu = "]", pD = "m", Q = `${xu}8;;`, mD = /* @__PURE__ */ E((u) => `${j.values().next().value}${bD}${u}${pD}`, "wrapAnsiCode"), dD = /* @__PURE__ */ E((u) => `${j.values().next().value}${Q}${u}${J}`, "wrapAnsiHyperlink"), Au = /* @__PURE__ */ E((u) => u.split(" ").map((F) => T(F)), "wordLengths"), H = /* @__PURE__ */ E((u, F, e) => {
  let D = [...F], t = !1, C = !1, r = T(R(u[u.length - 1]));
  for (let [n, B] of D.entries()) {
    let i = T(B);
    if (r + i <= e ? u[u.length - 1] += B : (u.push(B), r = 0), j.has(B) && (t = !0, C = D.slice(n + 1).join("").startsWith(Q)), t) {
      C ? B === J && (t = !1, C = !1) : B === pD && (t = !1);
      continue;
    }
    r += i, r === e && n < D.length - 1 && (u.push(""), r = 0);
  }
  !r && u[u.length - 1].length > 0 && u.length > 1 && (u[u.length - 2] += u.pop());
}, "wrapWord"), fu = /* @__PURE__ */ E((u) => {
  let F = u.split(" "), e = F.length;
  for (; e > 0 && !(T(F[e - 1]) > 0); )
    e--;
  return e === F.length ? u : F.slice(0, e).join(" ") + F.slice(e).join("");
}, "stringVisibleTrimSpacesRight"), cu = /* @__PURE__ */ E((u, F, e = {}) => {
  if (e.trim !== !1 && u.trim() === "")
    return "";
  let D = "", t, C, r = Au(u), n = [""];
  for (let [i, l] of u.split(" ").entries()) {
    e.trim !== !1 && (n[n.length - 1] = n[n.length - 1].trimStart());
    let x = T(n[n.length - 1]);
    if (i !== 0 && (x >= F && (e.wordWrap === !1 || e.trim === !1) && (n.push(""), x = 0), (x > 0 || e.trim === !1) && (n[n.length - 1] += " ", x++)), e.hard && r[i] > F) {
      let m = F - x, v = 1 + Math.floor((r[i] - m - 1) / F);
      Math.floor((r[i] - 1) / F) < v && n.push(""), H(n, l, F);
      continue;
    }
    if (x + r[i] > F && x > 0 && r[i] > 0) {
      if (e.wordWrap === !1 && x < F) {
        H(n, l, F);
        continue;
      }
      n.push("");
    }
    if (x + r[i] > F && e.wordWrap === !1) {
      H(n, l, F);
      continue;
    }
    n[n.length - 1] += l;
  }
  e.trim !== !1 && (n = n.map((i) => fu(i)));
  let B = [...n.join(`
`)];
  for (let [i, l] of B.entries()) {
    if (D += l, j.has(l)) {
      let { groups: m } = new RegExp(`(?:\\${bD}(?<code>\\d+)m|\\${Q}(?<uri>.*)${J})`).exec(B.slice(i).join("")) || { groups: {} };
      if (m.code !== void 0) {
        let v = Number.parseFloat(m.code);
        t = v === su ? void 0 : v;
      } else m.uri !== void 0 && (C = m.uri.length === 0 ? void 0 : m.uri);
    }
    let x = hD.codes.get(Number(t));
    B[i + 1] === `
` ? (C && (D += dD("")), t && x && (D += mD(x))) : l === `
` && (t && x && (D += mD(t)), C && (D += dD(C)));
  }
  return D;
}, "exec");
function $(u, F, e) {
  return String(u).normalize().replace(/\r\n/g, `
`).split(`
`).map((D) => cu(D, F, e)).join(`
`);
}
E($, "wrapAnsi");

// ../node_modules/boxen/index.js
import Y from "node:process";

// ../node_modules/boxen/node_modules/string-width/index.js
var RD = p(q(), 1), TD = p(Z(), 1);
function f(u, F = {}) {
  if (typeof u != "string" || u.length === 0 || (F = {
    ambiguousIsNarrow: !0,
    ...F
  }, u = R(u), u.length === 0))
    return 0;
  u = u.replace((0, TD.default)(), "  ");
  let e = F.ambiguousIsNarrow ? 1 : 2, D = 0;
  for (let t of u) {
    let C = t.codePointAt(0);
    if (C <= 31 || C >= 127 && C <= 159 || C >= 768 && C <= 879)
      continue;
    switch (RD.default.eastAsianWidth(t)) {
      case "F":
      case "W":
        D += 2;
        break;
      case "A":
        D += e;
        break;
      default:
        D += 1;
    }
  }
  return D;
}
E(f, "stringWidth");

// ../node_modules/boxen/node_modules/chalk/source/vendor/ansi-styles/index.js
var yD = /* @__PURE__ */ E((u = 0) => (F) => `\x1B[${F + u}m`, "wrapAnsi16"), wD = /* @__PURE__ */ E((u = 0) => (F) => `\x1B[${38 + u};5;${F}m`, "wrapAnsi256"), OD = /* @__PURE__ */ E((u = 0) => (F, e, D) => `\x1B[${38 + u};2;${F};${e};${D}m`, "wrapAnsi16m"), a = {
  modifier: {
    reset: [0, 0],
    // 21 isn't widely supported and 22 does the same thing
    bold: [1, 22],
    dim: [2, 22],
    italic: [3, 23],
    underline: [4, 24],
    overline: [53, 55],
    inverse: [7, 27],
    hidden: [8, 28],
    strikethrough: [9, 29]
  },
  color: {
    black: [30, 39],
    red: [31, 39],
    green: [32, 39],
    yellow: [33, 39],
    blue: [34, 39],
    magenta: [35, 39],
    cyan: [36, 39],
    white: [37, 39],
    // Bright color
    blackBright: [90, 39],
    gray: [90, 39],
    // Alias of `blackBright`
    grey: [90, 39],
    // Alias of `blackBright`
    redBright: [91, 39],
    greenBright: [92, 39],
    yellowBright: [93, 39],
    blueBright: [94, 39],
    magentaBright: [95, 39],
    cyanBright: [96, 39],
    whiteBright: [97, 39]
  },
  bgColor: {
    bgBlack: [40, 49],
    bgRed: [41, 49],
    bgGreen: [42, 49],
    bgYellow: [43, 49],
    bgBlue: [44, 49],
    bgMagenta: [45, 49],
    bgCyan: [46, 49],
    bgWhite: [47, 49],
    // Bright color
    bgBlackBright: [100, 49],
    bgGray: [100, 49],
    // Alias of `bgBlackBright`
    bgGrey: [100, 49],
    // Alias of `bgBlackBright`
    bgRedBright: [101, 49],
    bgGreenBright: [102, 49],
    bgYellowBright: [103, 49],
    bgBlueBright: [104, 49],
    bgMagentaBright: [105, 49],
    bgCyanBright: [106, 49],
    bgWhiteBright: [107, 49]
  }
}, ND = Object.keys(a.modifier), X = Object.keys(a.color), z = Object.keys(a.bgColor), vD = [...X, ...z];
function gu() {
  let u = /* @__PURE__ */ new Map();
  for (let [F, e] of Object.entries(a)) {
    for (let [D, t] of Object.entries(e))
      a[D] = {
        open: `\x1B[${t[0]}m`,
        close: `\x1B[${t[1]}m`
      }, e[D] = a[D], u.set(t[0], t[1]);
    Object.defineProperty(a, F, {
      value: e,
      enumerable: !1
    });
  }
  return Object.defineProperty(a, "codes", {
    value: u,
    enumerable: !1
  }), a.color.close = "\x1B[39m", a.bgColor.close = "\x1B[49m", a.color.ansi = yD(), a.color.ansi256 = wD(), a.color.ansi16m = OD(), a.bgColor.ansi = yD(10), a.bgColor.ansi256 = wD(10), a.bgColor.ansi16m = OD(10), Object.defineProperties(a, {
    rgbToAnsi256: {
      value(F, e, D) {
        return F === e && e === D ? F < 8 ? 16 : F > 248 ? 231 : Math.round((F - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(F / 255 * 5) + 6 * Math.round(e / 255 * 5) + Math.round(D / 255 * 5);
      },
      enumerable: !1
    },
    hexToRgb: {
      value(F) {
        let e = /[a-f\d]{6}|[a-f\d]{3}/i.exec(F.toString(16));
        if (!e)
          return [0, 0, 0];
        let [D] = e;
        D.length === 3 && (D = [...D].map((C) => C + C).join(""));
        let t = Number.parseInt(D, 16);
        return [
          /* eslint-disable no-bitwise */
          t >> 16 & 255,
          t >> 8 & 255,
          t & 255
          /* eslint-enable no-bitwise */
        ];
      },
      enumerable: !1
    },
    hexToAnsi256: {
      value: /* @__PURE__ */ E((F) => a.rgbToAnsi256(...a.hexToRgb(F)), "value"),
      enumerable: !1
    },
    ansi256ToAnsi: {
      value(F) {
        if (F < 8)
          return 30 + F;
        if (F < 16)
          return 90 + (F - 8);
        let e, D, t;
        if (F >= 232)
          e = ((F - 232) * 10 + 8) / 255, D = e, t = e;
        else {
          F -= 16;
          let n = F % 36;
          e = Math.floor(F / 36) / 5, D = Math.floor(n / 6) / 5, t = n % 6 / 5;
        }
        let C = Math.max(e, D, t) * 2;
        if (C === 0)
          return 30;
        let r = 30 + (Math.round(t) << 2 | Math.round(D) << 1 | Math.round(e));
        return C === 2 && (r += 60), r;
      },
      enumerable: !1
    },
    rgbToAnsi: {
      value: /* @__PURE__ */ E((F, e, D) => a.ansi256ToAnsi(a.rgbToAnsi256(F, e, D)), "value"),
      enumerable: !1
    },
    hexToAnsi: {
      value: /* @__PURE__ */ E((F) => a.ansi256ToAnsi(a.hexToAnsi256(F)), "value"),
      enumerable: !1
    }
  }), a;
}
E(gu, "assembleStyles");
var hu = gu(), g = hu;

// ../node_modules/boxen/node_modules/chalk/source/vendor/supports-color/index.js
import DD from "node:process";
import mu from "node:os";
import LD from "node:tty";
function c(u, F = globalThis.Deno ? globalThis.Deno.args : DD.argv) {
  let e = u.startsWith("-") ? "" : u.length === 1 ? "-" : "--", D = F.indexOf(e + u), t = F.indexOf("--");
  return D !== -1 && (t === -1 || D < t);
}
E(c, "hasFlag");
var { env: s } = DD, W;
c("no-color") || c("no-colors") || c("color=false") || c("color=never") ? W = 0 : (c("color") || c("colors") || c("color=true") || c("color=always")) && (W = 1);
function du() {
  if ("FORCE_COLOR" in s)
    return s.FORCE_COLOR === "true" ? 1 : s.FORCE_COLOR === "false" ? 0 : s.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(s.FORCE_COLOR, 10), 3);
}
E(du, "envForceColor");
function bu(u) {
  return u === 0 ? !1 : {
    level: u,
    hasBasic: !0,
    has256: u >= 2,
    has16m: u >= 3
  };
}
E(bu, "translateLevel");
function pu(u, { streamIsTTY: F, sniffFlags: e = !0 } = {}) {
  let D = du();
  D !== void 0 && (W = D);
  let t = e ? W : D;
  if (t === 0)
    return 0;
  if (e) {
    if (c("color=16m") || c("color=full") || c("color=truecolor"))
      return 3;
    if (c("color=256"))
      return 2;
  }
  if ("TF_BUILD" in s && "AGENT_NAME" in s)
    return 1;
  if (u && !F && t === void 0)
    return 0;
  let C = t || 0;
  if (s.TERM === "dumb")
    return C;
  if (DD.platform === "win32") {
    let r = mu.release().split(".");
    return Number(r[0]) >= 10 && Number(r[2]) >= 10586 ? Number(r[2]) >= 14931 ? 3 : 2 : 1;
  }
  if ("CI" in s)
    return ["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((r) => r in s) ? 3 : ["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((r) => r in s) || s.CI_NAME === "codeship" ? 1 : C;
  if ("TEAMCITY_VERSION" in s)
    return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION) ? 1 : 0;
  if (s.COLORTERM === "truecolor" || s.TERM === "xterm-kitty")
    return 3;
  if ("TERM_PROGRAM" in s) {
    let r = Number.parseInt((s.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
    switch (s.TERM_PROGRAM) {
      case "iTerm.app":
        return r >= 3 ? 3 : 2;
      case "Apple_Terminal":
        return 2;
    }
  }
  return /-256(color)?$/i.test(s.TERM) ? 2 : /^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM) || "COLORTERM" in s ? 1 : C;
}
E(pu, "_supportsColor");
function SD(u, F = {}) {
  let e = pu(u, {
    streamIsTTY: u && u.isTTY,
    ...F
  });
  return bu(e);
}
E(SD, "createSupportsColor");
var Ru = {
  stdout: SD({ isTTY: LD.isatty(1) }),
  stderr: SD({ isTTY: LD.isatty(2) })
}, ID = Ru;

// ../node_modules/boxen/node_modules/chalk/source/utilities.js
function MD(u, F, e) {
  let D = u.indexOf(F);
  if (D === -1)
    return u;
  let t = F.length, C = 0, r = "";
  do
    r += u.slice(C, D) + F + e, C = D + t, D = u.indexOf(F, C);
  while (D !== -1);
  return r += u.slice(C), r;
}
E(MD, "stringReplaceAll");
function _D(u, F, e, D) {
  let t = 0, C = "";
  do {
    let r = u[D - 1] === "\r";
    C += u.slice(t, r ? D - 1 : D) + F + (r ? `\r
` : `
`) + e, t = D + 1, D = u.indexOf(`
`, t);
  } while (D !== -1);
  return C += u.slice(t), C;
}
E(_D, "stringEncaseCRLFWithFirstIndex");

// ../node_modules/boxen/node_modules/chalk/source/index.js
var { stdout: kD, stderr: jD } = ID, uD = Symbol("GENERATOR"), O = Symbol("STYLER"), S = Symbol("IS_EMPTY"), $D = [
  "ansi",
  "ansi",
  "ansi256",
  "ansi16m"
], N = /* @__PURE__ */ Object.create(null), Tu = /* @__PURE__ */ E((u, F = {}) => {
  if (F.level && !(Number.isInteger(F.level) && F.level >= 0 && F.level <= 3))
    throw new Error("The `level` option should be an integer from 0 to 3");
  let e = kD ? kD.level : 0;
  u.level = F.level === void 0 ? e : F.level;
}, "applyOptions");
var yu = /* @__PURE__ */ E((u) => {
  let F = /* @__PURE__ */ E((...e) => e.join(" "), "chalk");
  return Tu(F, u), Object.setPrototypeOf(F, I.prototype), F;
}, "chalkFactory");
function I(u) {
  return yu(u);
}
E(I, "createChalk");
Object.setPrototypeOf(I.prototype, Function.prototype);
for (let [u, F] of Object.entries(g))
  N[u] = {
    get() {
      let e = G(this, eD(F.open, F.close, this[O]), this[S]);
      return Object.defineProperty(this, u, { value: e }), e;
    }
  };
N.visible = {
  get() {
    let u = G(this, this[O], !0);
    return Object.defineProperty(this, "visible", { value: u }), u;
  }
};
var FD = /* @__PURE__ */ E((u, F, e, ...D) => u === "rgb" ? F === "ansi16m" ? g[e].ansi16m(...D) : F === "ansi256" ? g[e].ansi256(g.rgbToAnsi256(...D)) : g[e].ansi(g.rgbToAnsi(...D)) : u === "hex" ? FD("rgb", F, e, ...g.hexToRgb(...D)) : g[e][u](...D), "getModelAnsi"), wu = ["rgb", "hex", "ansi256"];
for (let u of wu) {
  N[u] = {
    get() {
      let { level: e } = this;
      return function(...D) {
        let t = eD(FD(u, $D[e], "color", ...D), g.color.close, this[O]);
        return G(this, t, this[S]);
      };
    }
  };
  let F = "bg" + u[0].toUpperCase() + u.slice(1);
  N[F] = {
    get() {
      let { level: e } = this;
      return function(...D) {
        let t = eD(FD(u, $D[e], "bgColor", ...D), g.bgColor.close, this[O]);
        return G(this, t, this[S]);
      };
    }
  };
}
var Ou = Object.defineProperties(() => {
}, {
  ...N,
  level: {
    enumerable: !0,
    get() {
      return this[uD].level;
    },
    set(u) {
      this[uD].level = u;
    }
  }
}), eD = /* @__PURE__ */ E((u, F, e) => {
  let D, t;
  return e === void 0 ? (D = u, t = F) : (D = e.openAll + u, t = F + e.closeAll), {
    open: u,
    close: F,
    openAll: D,
    closeAll: t,
    parent: e
  };
}, "createStyler"), G = /* @__PURE__ */ E((u, F, e) => {
  let D = /* @__PURE__ */ E((...t) => Nu(D, t.length === 1 ? "" + t[0] : t.join(" ")), "builder");
  return Object.setPrototypeOf(D, Ou), D[uD] = u, D[O] = F, D[S] = e, D;
}, "createBuilder"), Nu = /* @__PURE__ */ E((u, F) => {
  if (u.level <= 0 || !F)
    return u[S] ? "" : F;
  let e = u[O];
  if (e === void 0)
    return F;
  let { openAll: D, closeAll: t } = e;
  if (F.includes("\x1B"))
    for (; e !== void 0; )
      F = MD(F, e.close, e.open), e = e.parent;
  let C = F.indexOf(`
`);
  return C !== -1 && (F = _D(F, t, D, C)), D + F + t;
}, "applyStyle");
Object.defineProperties(I.prototype, N);
var vu = I(), k0 = I({ level: jD ? jD.level : 0 });
var y = vu;

// ../node_modules/boxen/node_modules/widest-line/index.js
function U(u) {
  let F = 0;
  for (let e of u.split(`
`))
    F = Math.max(F, f(e));
  return F;
}
E(U, "widestLine");

// ../node_modules/boxen/index.js
var ru = p(tD(), 1);

// ../node_modules/boxen/node_modules/camelcase/index.js
var Su = /[\p{Lu}]/u, Iu = /[\p{Ll}]/u, UD = /^[\p{Lu}](?![\p{Lu}])/gu, KD = /([\p{Alpha}\p{N}_]|$)/u, ED = /[_.\- ]+/, Mu = new RegExp("^" + ED.source), YD = new RegExp(ED.source + KD.source, "gu"), PD = new RegExp("\\d+" + KD.source, "gu"), _u = /* @__PURE__ */ E((u, F, e, D) => {
  let t = !1, C = !1, r = !1, n = !1;
  for (let B = 0; B < u.length; B++) {
    let i = u[B];
    n = B > 2 ? u[B - 3] === "-" : !0, t && Su.test(i) ? (u = u.slice(0, B) + "-" + u.slice(B), t = !1, r = C, C = !0, B++) : C && r && Iu.test(i) && (!n || D) ? (u = u.slice(0, B - 1) + "-" + u.slice(B - 1), r = C, C = !1, t = !0) : (t = F(i) === i && e(i) !== i, r = C, C = e(i) === i && F(i) !== i);
  }
  return u;
}, "preserveCamelCase"), ku = /* @__PURE__ */ E((u, F) => (UD.lastIndex = 0, u.replace(UD, (e) => F(e))), "preserveConsecutiveUppercase"), ju = /* @__PURE__ */ E((u, F) => (YD.lastIndex = 0, PD.lastIndex = 0, u.replace(YD, (e, D) => F(D)).replace(PD, (e) => F(e))), "postProcess");
function rD(u, F) {
  if (!(typeof u == "string" || Array.isArray(u)))
    throw new TypeError("Expected the input to be `string | string[]`");
  if (F = {
    pascalCase: !1,
    preserveConsecutiveUppercase: !1,
    ...F
  }, Array.isArray(u) ? u = u.map((C) => C.trim()).filter((C) => C.length).join("-") : u = u.trim(), u.length === 0)
    return "";
  let e = F.locale === !1 ? (C) => C.toLowerCase() : (C) => C.toLocaleLowerCase(F.locale), D = F.locale === !1 ? (C) => C.toUpperCase() : (C) => C.toLocaleUpperCase(F.locale);
  return u.length === 1 ? ED.test(u) ? "" : F.pascalCase ? D(u) : e(u) : (u !== e(u) && (u = _u(u, e, D, F.preserveConsecutiveUppercase)), u = u.replace(Mu, ""), u = F.preserveConsecutiveUppercase ? ku(u, e) : e(u), F.pascalCase && (u = D(u.charAt(0)) + u.slice(1)), ju(u, D));
}
E(rD, "camelCase");

// ../node_modules/boxen/index.js
var iD = p(eu(), 1);
var u0 = p(tD(), 1);
var b = `
`, A = " ", M = "none", nu = /* @__PURE__ */ E(() => {
  let { env: u, stdout: F, stderr: e } = Y;
  return F?.columns ? F.columns : e?.columns ? e.columns : u.COLUMNS ? Number.parseInt(u.COLUMNS, 10) : 80;
}, "terminalColumns"), Cu = /* @__PURE__ */ E((u) => typeof u == "number" ? {
  top: u,
  right: u * 3,
  bottom: u,
  left: u * 3
} : {
  top: 0,
  right: 0,
  bottom: 0,
  left: 0,
  ...u
}, "getObject"), _ = /* @__PURE__ */ E((u) => u === M ? 0 : 2, "getBorderWidth"), Vu = /* @__PURE__ */ E((u) => {
  let F = [
    "topLeft",
    "topRight",
    "bottomRight",
    "bottomLeft",
    "left",
    "right",
    "top",
    "bottom"
  ], e;
  if (u === M) {
    u = {};
    for (let D of F)
      u[D] = "";
  }
  if (typeof u == "string") {
    if (e = ru.default[u], !e)
      throw new TypeError(`Invalid border style: ${u}`);
  } else {
    typeof u?.vertical == "string" && (u.left = u.vertical, u.right = u.vertical), typeof u?.horizontal == "string" && (u.top = u.horizontal, u.bottom = u.horizontal);
    for (let D of F)
      if (u[D] === null || typeof u[D] != "string")
        throw new TypeError(`Invalid border style: ${D}`);
    e = u;
  }
  return e;
}, "getBorderChars"), qu = /* @__PURE__ */ E((u, F, e) => {
  let D = "", t = f(u);
  switch (e) {
    case "left": {
      D = u + F.slice(t);
      break;
    }
    case "right": {
      D = F.slice(t) + u;
      break;
    }
    default: {
      F = F.slice(t), F.length % 2 === 1 ? (F = F.slice(Math.floor(F.length / 2)), D = F.slice(1) + u + F) : (F = F.slice(F.length / 2), D = F + u + F);
      break;
    }
  }
  return D;
}, "makeTitle"), Zu = /* @__PURE__ */ E((u, { padding: F, width: e, textAlignment: D, height: t }) => {
  u = (0, iD.default)(u, { align: D });
  let C = u.split(b), r = U(u), n = e - F.left - F.right;
  if (r > n) {
    let l = [];
    for (let x of C) {
      let m = $(x, n, { hard: !0 }), P = (0, iD.default)(m, { align: D }).split(`
`), oD = Math.max(...P.map((L) => f(L)));
      for (let L of P) {
        let k;
        switch (D) {
          case "center": {
            k = A.repeat((n - oD) / 2) + L;
            break;
          }
          case "right": {
            k = A.repeat(n - oD) + L;
            break;
          }
          default: {
            k = L;
            break;
          }
        }
        l.push(k);
      }
    }
    C = l;
  }
  D === "center" && r < n ? C = C.map((l) => A.repeat((n - r) / 2) + l) : D === "right" && r < n && (C = C.map((l) => A.repeat(n - r) + l));
  let B = A.repeat(F.left), i = A.repeat(F.right);
  return C = C.map((l) => B + l + i), C = C.map((l) => {
    if (e - f(l) > 0)
      switch (D) {
        case "center":
          return l + A.repeat(e - f(l));
        case "right":
          return l + A.repeat(e - f(l));
        default:
          return l + A.repeat(e - f(l));
      }
    return l;
  }), F.top > 0 && (C = [...Array.from({ length: F.top }).fill(A.repeat(e)), ...C]), F.bottom > 0 && (C = [...C, ...Array.from({ length: F.bottom }).fill(A.repeat(e))]), t && C.length > t ? C = C.slice(0, t) : t && C.length < t && (C = [...C, ...Array.from({ length: t - C.length }).fill(A.repeat(e))]), C.join(b);
}, "makeContentText"), Hu = /* @__PURE__ */ E((u, F, e) => {
  let D = /* @__PURE__ */ E((l) => {
    let x = e.borderColor ? Xu(e.borderColor)(l) : l;
    return e.dimBorder ? y.dim(x) : x;
  }, "colorizeBorder"), t = /* @__PURE__ */ E((l) => e.backgroundColor ? zu(e.backgroundColor)(l) : l, "colorizeContent"), C = Vu(e.borderStyle), r = nu(), n = A.repeat(e.margin.left);
  if (e.float === "center") {
    let l = Math.max((r - F - _(e.borderStyle)) / 2, 0);
    n = A.repeat(l);
  } else if (e.float === "right") {
    let l = Math.max(r - F - e.margin.right - _(e.borderStyle), 0);
    n = A.repeat(l);
  }
  let B = "";
  e.margin.top && (B += b.repeat(e.margin.top)), (e.borderStyle !== M || e.title) && (B += D(n + C.topLeft + (e.title ? qu(e.title, C.top.repeat(F), e.titleAlignment) : C.top.repeat(F)) + C.topRight) + b);
  let i = u.split(b);
  return B += i.map((l) => n + D(C.left) + t(l) + D(C.right)).join(b), e.borderStyle !== M && (B += b + D(n + C.bottomLeft + C.bottom.repeat(F) + C.bottomRight)), e.margin.bottom && (B += b.repeat(e.margin.bottom)), B;
}, "boxContent"), Ju = /* @__PURE__ */ E((u) => {
  if (u.fullscreen && Y?.stdout) {
    let F = [Y.stdout.columns, Y.stdout.rows];
    typeof u.fullscreen == "function" && (F = u.fullscreen(...F)), u.width || (u.width = F[0]), u.height || (u.height = F[1]);
  }
  return u.width && (u.width = Math.max(1, u.width - _(u.borderStyle))), u.height && (u.height = Math.max(1, u.height - _(u.borderStyle))), u;
}, "sanitizeOptions"), tu = /* @__PURE__ */ E((u, F) => F === M ? u : ` ${u} `, "formatTitle"), Qu = /* @__PURE__ */ E((u, F) => {
  F = Ju(F);
  let e = F.width !== void 0, D = nu(), t = _(F.borderStyle), C = D - F.margin.left - F.margin.right - t, r = U($(u, D - t, { hard: !0, trim: !1 })) + F.padding.left + F.padding.right;
  if (F.title && e ? (F.title = F.title.slice(0, Math.max(0, F.width - 2)), F.title && (F.title = tu(F.title, F.borderStyle))) : F.title && (F.title = F.title.slice(0, Math.max(0, C - 2)), F.title && (F.title = tu(F.title, F.borderStyle), f(F.title) > r && (F.width = f(F.title)))), F.width = F.width ? F.width : r, !e) {
    if (F.margin.left && F.margin.right && F.width > C) {
      let B = (D - F.width - t) / (F.margin.left + F.margin.right);
      F.margin.left = Math.max(0, Math.floor(F.margin.left * B)), F.margin.right = Math.max(0, Math.floor(F.margin.right * B));
    }
    F.width = Math.min(F.width, D - t - F.margin.left - F.margin.right);
  }
  return F.width - (F.padding.left + F.padding.right) <= 0 && (F.padding.left = 0, F.padding.right = 0), F.height && F.height - (F.padding.top + F.padding.bottom) <= 0 && (F.padding.top = 0, F.padding.bottom = 0), F;
}, "determineDimensions"), lD = /* @__PURE__ */ E((u) => u.match(/^#(?:[0-f]{3}){1,2}$/i), "isHex"), Eu = /* @__PURE__ */ E((u) => typeof u == "string" && (y[u] ?? lD(u)), "isColorValid"), Xu = /* @__PURE__ */ E((u) => lD(u) ? y.hex(u) : y[u], "getColorFn"), zu = /* @__PURE__ */ E((u) => lD(u) ? y.bgHex(u) : y[rD(["bg", u])], "getBGColorFn");
function D0(u, F) {
  if (F = {
    padding: 0,
    borderStyle: "single",
    dimBorder: !1,
    textAlignment: "left",
    float: "left",
    titleAlignment: "left",
    ...F
  }, F.align && (F.textAlignment = F.align), F.borderColor && !Eu(F.borderColor))
    throw new Error(`${F.borderColor} is not a valid borderColor`);
  if (F.backgroundColor && !Eu(F.backgroundColor))
    throw new Error(`${F.backgroundColor} is not a valid backgroundColor`);
  return F.padding = Cu(F.padding), F.margin = Cu(F.margin), F = Qu(u, F), u = Zu(u, F), Hu(u, F.width, F);
}
E(D0, "boxen");

export {
  uu as a,
  $ as b,
  D0 as c
};
