varlock 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/auto-load.js +1 -1
  2. package/dist/{chunk-BHHYQ7SH.js → chunk-2YPKUF3A.js} +3 -3
  3. package/dist/{chunk-BHHYQ7SH.js.map → chunk-2YPKUF3A.js.map} +1 -1
  4. package/dist/{chunk-HPUQ2CCN.js → chunk-BXR2RIO6.js} +4 -4
  5. package/dist/{chunk-HPUQ2CCN.js.map → chunk-BXR2RIO6.js.map} +1 -1
  6. package/dist/{chunk-3FLO3UFZ.js → chunk-HTF7NU5C.js} +7 -7
  7. package/dist/chunk-HTF7NU5C.js.map +1 -0
  8. package/dist/{chunk-ZUNB52KY.js → chunk-ISSW6NKZ.js} +3 -3
  9. package/dist/{chunk-ZUNB52KY.js.map → chunk-ISSW6NKZ.js.map} +1 -1
  10. package/dist/chunk-OY5U5WTF.js +10829 -0
  11. package/dist/chunk-OY5U5WTF.js.map +1 -0
  12. package/dist/chunk-PESTWPBG.js +307 -0
  13. package/dist/chunk-PESTWPBG.js.map +1 -0
  14. package/dist/{chunk-4N3YR2QQ.js → chunk-Q3C4VKFT.js} +5 -5
  15. package/dist/chunk-Q3C4VKFT.js.map +1 -0
  16. package/dist/chunk-QZ6HBRJC.js +97 -0
  17. package/dist/chunk-QZ6HBRJC.js.map +1 -0
  18. package/dist/{chunk-N2HZMIGS.js → chunk-YIXN7TC7.js} +396 -396
  19. package/dist/chunk-YIXN7TC7.js.map +1 -0
  20. package/dist/cli/cli-executable.js +14 -15
  21. package/dist/cli/cli-executable.js.map +1 -1
  22. package/dist/dotenv-compat.js +1 -1
  23. package/dist/{env-graph-BZwrHQbb.d.ts → env-graph-DIcuAiYh.d.ts} +9 -2
  24. package/dist/index.d.ts +2 -3
  25. package/dist/index.js +3 -2
  26. package/dist/index.js.map +1 -1
  27. package/dist/init.command-RAYBZ66R.js +9 -0
  28. package/dist/{init.command-DLPZ3R4T.js.map → init.command-RAYBZ66R.js.map} +1 -1
  29. package/dist/load.command-KOSPGLV6.js +9 -0
  30. package/dist/{load.command-4G5POJYR.js.map → load.command-KOSPGLV6.js.map} +1 -1
  31. package/dist/plugin-lib.d.ts +2 -3
  32. package/dist/plugin-lib.js +2 -1
  33. package/dist/run.command-BOBQIELJ.js +10 -0
  34. package/dist/{run.command-L5LLHOW3.js.map → run.command-BOBQIELJ.js.map} +1 -1
  35. package/dist/runtime/env.d.ts +1 -2
  36. package/dist/telemetry.command-SFEMMU3U.js +9 -0
  37. package/dist/{telemetry.command-JF72FOYJ.js.map → telemetry.command-SFEMMU3U.js.map} +1 -1
  38. package/package.json +5 -11
  39. package/dist/chunk-3FLO3UFZ.js.map +0 -1
  40. package/dist/chunk-4N3YR2QQ.js.map +0 -1
  41. package/dist/chunk-FETFVFG5.js +0 -4146
  42. package/dist/chunk-FETFVFG5.js.map +0 -1
  43. package/dist/chunk-N2HZMIGS.js.map +0 -1
  44. package/dist/chunk-N4REMPVX.js +0 -135
  45. package/dist/chunk-N4REMPVX.js.map +0 -1
  46. package/dist/init.command-DLPZ3R4T.js +0 -8
  47. package/dist/load.command-4G5POJYR.js +0 -8
  48. package/dist/run.command-L5LLHOW3.js +0 -9
  49. package/dist/telemetry.command-JF72FOYJ.js +0 -8
@@ -1,15 +1,14 @@
1
- import { detectJsPackageManager, logLines, fmt, installJsDependency } from './chunk-4N3YR2QQ.js';
1
+ import { detectJsPackageManager, logLines, fmt, installJsDependency } from './chunk-Q3C4VKFT.js';
2
2
  import { define } from './chunk-UDXNNRWI.js';
3
- import { tryCatch, gracefulExit, ansis_default, pathExists } from './chunk-FETFVFG5.js';
3
+ import { envSpecUpdater, ParsedEnvSpecStaticValue, tryCatch, parseEnvSpecDotEnvFile, gracefulExit, ansis_default, pathExists } from './chunk-OY5U5WTF.js';
4
4
  import { __commonJS, __name, __toESM } from './chunk-6PEHRAEP.js';
5
5
  import path2, { dirname } from 'path';
6
6
  import fs3 from 'fs/promises';
7
- import P2, { stdin, stdout } from 'process';
7
+ import N2, { stdin, stdout } from 'process';
8
8
  import ot from 'readline';
9
9
  import { WriteStream } from 'tty';
10
10
  import 'fs';
11
11
  import { promisify } from 'util';
12
- import { envSpecUpdater, ParsedEnvSpecStaticValue, parseEnvSpecDotEnvFile } from '@env-spec/parser';
13
12
  import { exec, spawn } from 'child_process';
14
13
 
15
14
  // ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
@@ -139,82 +138,88 @@ var require_src = __commonJS({
139
138
  }
140
139
  });
141
140
 
142
- // ../../node_modules/.pnpm/@clack+core@1.0.0/node_modules/@clack/core/dist/index.mjs
141
+ // ../../node_modules/.pnpm/@clack+core@1.0.1/node_modules/@clack/core/dist/index.mjs
143
142
  var import_sisteransi = __toESM(require_src(), 1);
144
- var at = /* @__PURE__ */ __name((t2) => t2 === 161 || t2 === 164 || t2 === 167 || t2 === 168 || t2 === 170 || t2 === 173 || t2 === 174 || t2 >= 176 && t2 <= 180 || t2 >= 182 && t2 <= 186 || t2 >= 188 && t2 <= 191 || t2 === 198 || t2 === 208 || t2 === 215 || t2 === 216 || t2 >= 222 && t2 <= 225 || t2 === 230 || t2 >= 232 && t2 <= 234 || t2 === 236 || t2 === 237 || t2 === 240 || t2 === 242 || t2 === 243 || t2 >= 247 && t2 <= 250 || t2 === 252 || t2 === 254 || t2 === 257 || t2 === 273 || t2 === 275 || t2 === 283 || t2 === 294 || t2 === 295 || t2 === 299 || t2 >= 305 && t2 <= 307 || t2 === 312 || t2 >= 319 && t2 <= 322 || t2 === 324 || t2 >= 328 && t2 <= 331 || t2 === 333 || t2 === 338 || t2 === 339 || t2 === 358 || t2 === 359 || t2 === 363 || t2 === 462 || t2 === 464 || t2 === 466 || t2 === 468 || t2 === 470 || t2 === 472 || t2 === 474 || t2 === 476 || t2 === 593 || t2 === 609 || t2 === 708 || t2 === 711 || t2 >= 713 && t2 <= 715 || t2 === 717 || t2 === 720 || t2 >= 728 && t2 <= 731 || t2 === 733 || t2 === 735 || t2 >= 768 && t2 <= 879 || t2 >= 913 && t2 <= 929 || t2 >= 931 && t2 <= 937 || t2 >= 945 && t2 <= 961 || t2 >= 963 && t2 <= 969 || t2 === 1025 || t2 >= 1040 && t2 <= 1103 || t2 === 1105 || t2 === 8208 || t2 >= 8211 && t2 <= 8214 || t2 === 8216 || t2 === 8217 || t2 === 8220 || t2 === 8221 || t2 >= 8224 && t2 <= 8226 || t2 >= 8228 && t2 <= 8231 || t2 === 8240 || t2 === 8242 || t2 === 8243 || t2 === 8245 || t2 === 8251 || t2 === 8254 || t2 === 8308 || t2 === 8319 || t2 >= 8321 && t2 <= 8324 || t2 === 8364 || t2 === 8451 || t2 === 8453 || t2 === 8457 || t2 === 8467 || t2 === 8470 || t2 === 8481 || t2 === 8482 || t2 === 8486 || t2 === 8491 || t2 === 8531 || t2 === 8532 || t2 >= 8539 && t2 <= 8542 || t2 >= 8544 && t2 <= 8555 || t2 >= 8560 && t2 <= 8569 || t2 === 8585 || t2 >= 8592 && t2 <= 8601 || t2 === 8632 || t2 === 8633 || t2 === 8658 || t2 === 8660 || t2 === 8679 || t2 === 8704 || t2 === 8706 || t2 === 8707 || t2 === 8711 || t2 === 8712 || t2 === 8715 || t2 === 8719 || t2 === 8721 || t2 === 8725 || t2 === 8730 || t2 >= 8733 && t2 <= 8736 || t2 === 8739 || t2 === 8741 || t2 >= 8743 && t2 <= 8748 || t2 === 8750 || t2 >= 8756 && t2 <= 8759 || t2 === 8764 || t2 === 8765 || t2 === 8776 || t2 === 8780 || t2 === 8786 || t2 === 8800 || t2 === 8801 || t2 >= 8804 && t2 <= 8807 || t2 === 8810 || t2 === 8811 || t2 === 8814 || t2 === 8815 || t2 === 8834 || t2 === 8835 || t2 === 8838 || t2 === 8839 || t2 === 8853 || t2 === 8857 || t2 === 8869 || t2 === 8895 || t2 === 8978 || t2 >= 9312 && t2 <= 9449 || t2 >= 9451 && t2 <= 9547 || t2 >= 9552 && t2 <= 9587 || t2 >= 9600 && t2 <= 9615 || t2 >= 9618 && t2 <= 9621 || t2 === 9632 || t2 === 9633 || t2 >= 9635 && t2 <= 9641 || t2 === 9650 || t2 === 9651 || t2 === 9654 || t2 === 9655 || t2 === 9660 || t2 === 9661 || t2 === 9664 || t2 === 9665 || t2 >= 9670 && t2 <= 9672 || t2 === 9675 || t2 >= 9678 && t2 <= 9681 || t2 >= 9698 && t2 <= 9701 || t2 === 9711 || t2 === 9733 || t2 === 9734 || t2 === 9737 || t2 === 9742 || t2 === 9743 || t2 === 9756 || t2 === 9758 || t2 === 9792 || t2 === 9794 || t2 === 9824 || t2 === 9825 || t2 >= 9827 && t2 <= 9829 || t2 >= 9831 && t2 <= 9834 || t2 === 9836 || t2 === 9837 || t2 === 9839 || t2 === 9886 || t2 === 9887 || t2 === 9919 || t2 >= 9926 && t2 <= 9933 || t2 >= 9935 && t2 <= 9939 || t2 >= 9941 && t2 <= 9953 || t2 === 9955 || t2 === 9960 || t2 === 9961 || t2 >= 9963 && t2 <= 9969 || t2 === 9972 || t2 >= 9974 && t2 <= 9977 || t2 === 9979 || t2 === 9980 || t2 === 9982 || t2 === 9983 || t2 === 10045 || t2 >= 10102 && t2 <= 10111 || t2 >= 11094 && t2 <= 11097 || t2 >= 12872 && t2 <= 12879 || t2 >= 57344 && t2 <= 63743 || t2 >= 65024 && t2 <= 65039 || t2 === 65533 || t2 >= 127232 && t2 <= 127242 || t2 >= 127248 && t2 <= 127277 || t2 >= 127280 && t2 <= 127337 || t2 >= 127344 && t2 <= 127373 || t2 === 127375 || t2 === 127376 || t2 >= 127387 && t2 <= 127404 || t2 >= 917760 && t2 <= 917999 || t2 >= 983040 && t2 <= 1048573 || t2 >= 1048576 && t2 <= 1114109, "at");
145
- var lt = /* @__PURE__ */ __name((t2) => t2 === 12288 || t2 >= 65281 && t2 <= 65376 || t2 >= 65504 && t2 <= 65510, "lt");
146
- var ht = /* @__PURE__ */ __name((t2) => t2 >= 4352 && t2 <= 4447 || t2 === 8986 || t2 === 8987 || t2 === 9001 || t2 === 9002 || t2 >= 9193 && t2 <= 9196 || t2 === 9200 || t2 === 9203 || t2 === 9725 || t2 === 9726 || t2 === 9748 || t2 === 9749 || t2 >= 9800 && t2 <= 9811 || t2 === 9855 || t2 === 9875 || t2 === 9889 || t2 === 9898 || t2 === 9899 || t2 === 9917 || t2 === 9918 || t2 === 9924 || t2 === 9925 || t2 === 9934 || t2 === 9940 || t2 === 9962 || t2 === 9970 || t2 === 9971 || t2 === 9973 || t2 === 9978 || t2 === 9981 || t2 === 9989 || t2 === 9994 || t2 === 9995 || t2 === 10024 || t2 === 10060 || t2 === 10062 || t2 >= 10067 && t2 <= 10069 || t2 === 10071 || t2 >= 10133 && t2 <= 10135 || t2 === 10160 || t2 === 10175 || t2 === 11035 || t2 === 11036 || t2 === 11088 || t2 === 11093 || t2 >= 11904 && t2 <= 11929 || t2 >= 11931 && t2 <= 12019 || t2 >= 12032 && t2 <= 12245 || t2 >= 12272 && t2 <= 12287 || t2 >= 12289 && t2 <= 12350 || t2 >= 12353 && t2 <= 12438 || t2 >= 12441 && t2 <= 12543 || t2 >= 12549 && t2 <= 12591 || t2 >= 12593 && t2 <= 12686 || t2 >= 12688 && t2 <= 12771 || t2 >= 12783 && t2 <= 12830 || t2 >= 12832 && t2 <= 12871 || t2 >= 12880 && t2 <= 19903 || t2 >= 19968 && t2 <= 42124 || t2 >= 42128 && t2 <= 42182 || t2 >= 43360 && t2 <= 43388 || t2 >= 44032 && t2 <= 55203 || t2 >= 63744 && t2 <= 64255 || t2 >= 65040 && t2 <= 65049 || t2 >= 65072 && t2 <= 65106 || t2 >= 65108 && t2 <= 65126 || t2 >= 65128 && t2 <= 65131 || t2 >= 94176 && t2 <= 94180 || t2 === 94192 || t2 === 94193 || t2 >= 94208 && t2 <= 100343 || t2 >= 100352 && t2 <= 101589 || t2 >= 101632 && t2 <= 101640 || t2 >= 110576 && t2 <= 110579 || t2 >= 110581 && t2 <= 110587 || t2 === 110589 || t2 === 110590 || t2 >= 110592 && t2 <= 110882 || t2 === 110898 || t2 >= 110928 && t2 <= 110930 || t2 === 110933 || t2 >= 110948 && t2 <= 110951 || t2 >= 110960 && t2 <= 111355 || t2 === 126980 || t2 === 127183 || t2 === 127374 || t2 >= 127377 && t2 <= 127386 || t2 >= 127488 && t2 <= 127490 || t2 >= 127504 && t2 <= 127547 || t2 >= 127552 && t2 <= 127560 || t2 === 127568 || t2 === 127569 || t2 >= 127584 && t2 <= 127589 || t2 >= 127744 && t2 <= 127776 || t2 >= 127789 && t2 <= 127797 || t2 >= 127799 && t2 <= 127868 || t2 >= 127870 && t2 <= 127891 || t2 >= 127904 && t2 <= 127946 || t2 >= 127951 && t2 <= 127955 || t2 >= 127968 && t2 <= 127984 || t2 === 127988 || t2 >= 127992 && t2 <= 128062 || t2 === 128064 || t2 >= 128066 && t2 <= 128252 || t2 >= 128255 && t2 <= 128317 || t2 >= 128331 && t2 <= 128334 || t2 >= 128336 && t2 <= 128359 || t2 === 128378 || t2 === 128405 || t2 === 128406 || t2 === 128420 || t2 >= 128507 && t2 <= 128591 || t2 >= 128640 && t2 <= 128709 || t2 === 128716 || t2 >= 128720 && t2 <= 128722 || t2 >= 128725 && t2 <= 128727 || t2 >= 128732 && t2 <= 128735 || t2 === 128747 || t2 === 128748 || t2 >= 128756 && t2 <= 128764 || t2 >= 128992 && t2 <= 129003 || t2 === 129008 || t2 >= 129292 && t2 <= 129338 || t2 >= 129340 && t2 <= 129349 || t2 >= 129351 && t2 <= 129535 || t2 >= 129648 && t2 <= 129660 || t2 >= 129664 && t2 <= 129672 || t2 >= 129680 && t2 <= 129725 || t2 >= 129727 && t2 <= 129733 || t2 >= 129742 && t2 <= 129755 || t2 >= 129760 && t2 <= 129768 || t2 >= 129776 && t2 <= 129784 || t2 >= 131072 && t2 <= 196605 || t2 >= 196608 && t2 <= 262141, "ht");
143
+ function B(t, e2, s) {
144
+ if (!s.some((u) => !u.disabled)) return t;
145
+ const i = t + e2, r = Math.max(s.length - 1, 0), n = i < 0 ? r : i > r ? 0 : i;
146
+ return s[n].disabled ? B(n, e2 < 0 ? -1 : 1, s) : n;
147
+ }
148
+ __name(B, "B");
149
+ var at = /* @__PURE__ */ __name((t) => t === 161 || t === 164 || t === 167 || t === 168 || t === 170 || t === 173 || t === 174 || t >= 176 && t <= 180 || t >= 182 && t <= 186 || t >= 188 && t <= 191 || t === 198 || t === 208 || t === 215 || t === 216 || t >= 222 && t <= 225 || t === 230 || t >= 232 && t <= 234 || t === 236 || t === 237 || t === 240 || t === 242 || t === 243 || t >= 247 && t <= 250 || t === 252 || t === 254 || t === 257 || t === 273 || t === 275 || t === 283 || t === 294 || t === 295 || t === 299 || t >= 305 && t <= 307 || t === 312 || t >= 319 && t <= 322 || t === 324 || t >= 328 && t <= 331 || t === 333 || t === 338 || t === 339 || t === 358 || t === 359 || t === 363 || t === 462 || t === 464 || t === 466 || t === 468 || t === 470 || t === 472 || t === 474 || t === 476 || t === 593 || t === 609 || t === 708 || t === 711 || t >= 713 && t <= 715 || t === 717 || t === 720 || t >= 728 && t <= 731 || t === 733 || t === 735 || t >= 768 && t <= 879 || t >= 913 && t <= 929 || t >= 931 && t <= 937 || t >= 945 && t <= 961 || t >= 963 && t <= 969 || t === 1025 || t >= 1040 && t <= 1103 || t === 1105 || t === 8208 || t >= 8211 && t <= 8214 || t === 8216 || t === 8217 || t === 8220 || t === 8221 || t >= 8224 && t <= 8226 || t >= 8228 && t <= 8231 || t === 8240 || t === 8242 || t === 8243 || t === 8245 || t === 8251 || t === 8254 || t === 8308 || t === 8319 || t >= 8321 && t <= 8324 || t === 8364 || t === 8451 || t === 8453 || t === 8457 || t === 8467 || t === 8470 || t === 8481 || t === 8482 || t === 8486 || t === 8491 || t === 8531 || t === 8532 || t >= 8539 && t <= 8542 || t >= 8544 && t <= 8555 || t >= 8560 && t <= 8569 || t === 8585 || t >= 8592 && t <= 8601 || t === 8632 || t === 8633 || t === 8658 || t === 8660 || t === 8679 || t === 8704 || t === 8706 || t === 8707 || t === 8711 || t === 8712 || t === 8715 || t === 8719 || t === 8721 || t === 8725 || t === 8730 || t >= 8733 && t <= 8736 || t === 8739 || t === 8741 || t >= 8743 && t <= 8748 || t === 8750 || t >= 8756 && t <= 8759 || t === 8764 || t === 8765 || t === 8776 || t === 8780 || t === 8786 || t === 8800 || t === 8801 || t >= 8804 && t <= 8807 || t === 8810 || t === 8811 || t === 8814 || t === 8815 || t === 8834 || t === 8835 || t === 8838 || t === 8839 || t === 8853 || t === 8857 || t === 8869 || t === 8895 || t === 8978 || t >= 9312 && t <= 9449 || t >= 9451 && t <= 9547 || t >= 9552 && t <= 9587 || t >= 9600 && t <= 9615 || t >= 9618 && t <= 9621 || t === 9632 || t === 9633 || t >= 9635 && t <= 9641 || t === 9650 || t === 9651 || t === 9654 || t === 9655 || t === 9660 || t === 9661 || t === 9664 || t === 9665 || t >= 9670 && t <= 9672 || t === 9675 || t >= 9678 && t <= 9681 || t >= 9698 && t <= 9701 || t === 9711 || t === 9733 || t === 9734 || t === 9737 || t === 9742 || t === 9743 || t === 9756 || t === 9758 || t === 9792 || t === 9794 || t === 9824 || t === 9825 || t >= 9827 && t <= 9829 || t >= 9831 && t <= 9834 || t === 9836 || t === 9837 || t === 9839 || t === 9886 || t === 9887 || t === 9919 || t >= 9926 && t <= 9933 || t >= 9935 && t <= 9939 || t >= 9941 && t <= 9953 || t === 9955 || t === 9960 || t === 9961 || t >= 9963 && t <= 9969 || t === 9972 || t >= 9974 && t <= 9977 || t === 9979 || t === 9980 || t === 9982 || t === 9983 || t === 10045 || t >= 10102 && t <= 10111 || t >= 11094 && t <= 11097 || t >= 12872 && t <= 12879 || t >= 57344 && t <= 63743 || t >= 65024 && t <= 65039 || t === 65533 || t >= 127232 && t <= 127242 || t >= 127248 && t <= 127277 || t >= 127280 && t <= 127337 || t >= 127344 && t <= 127373 || t === 127375 || t === 127376 || t >= 127387 && t <= 127404 || t >= 917760 && t <= 917999 || t >= 983040 && t <= 1048573 || t >= 1048576 && t <= 1114109, "at");
150
+ var lt = /* @__PURE__ */ __name((t) => t === 12288 || t >= 65281 && t <= 65376 || t >= 65504 && t <= 65510, "lt");
151
+ var ht = /* @__PURE__ */ __name((t) => t >= 4352 && t <= 4447 || t === 8986 || t === 8987 || t === 9001 || t === 9002 || t >= 9193 && t <= 9196 || t === 9200 || t === 9203 || t === 9725 || t === 9726 || t === 9748 || t === 9749 || t >= 9800 && t <= 9811 || t === 9855 || t === 9875 || t === 9889 || t === 9898 || t === 9899 || t === 9917 || t === 9918 || t === 9924 || t === 9925 || t === 9934 || t === 9940 || t === 9962 || t === 9970 || t === 9971 || t === 9973 || t === 9978 || t === 9981 || t === 9989 || t === 9994 || t === 9995 || t === 10024 || t === 10060 || t === 10062 || t >= 10067 && t <= 10069 || t === 10071 || t >= 10133 && t <= 10135 || t === 10160 || t === 10175 || t === 11035 || t === 11036 || t === 11088 || t === 11093 || t >= 11904 && t <= 11929 || t >= 11931 && t <= 12019 || t >= 12032 && t <= 12245 || t >= 12272 && t <= 12287 || t >= 12289 && t <= 12350 || t >= 12353 && t <= 12438 || t >= 12441 && t <= 12543 || t >= 12549 && t <= 12591 || t >= 12593 && t <= 12686 || t >= 12688 && t <= 12771 || t >= 12783 && t <= 12830 || t >= 12832 && t <= 12871 || t >= 12880 && t <= 19903 || t >= 19968 && t <= 42124 || t >= 42128 && t <= 42182 || t >= 43360 && t <= 43388 || t >= 44032 && t <= 55203 || t >= 63744 && t <= 64255 || t >= 65040 && t <= 65049 || t >= 65072 && t <= 65106 || t >= 65108 && t <= 65126 || t >= 65128 && t <= 65131 || t >= 94176 && t <= 94180 || t === 94192 || t === 94193 || t >= 94208 && t <= 100343 || t >= 100352 && t <= 101589 || t >= 101632 && t <= 101640 || t >= 110576 && t <= 110579 || t >= 110581 && t <= 110587 || t === 110589 || t === 110590 || t >= 110592 && t <= 110882 || t === 110898 || t >= 110928 && t <= 110930 || t === 110933 || t >= 110948 && t <= 110951 || t >= 110960 && t <= 111355 || t === 126980 || t === 127183 || t === 127374 || t >= 127377 && t <= 127386 || t >= 127488 && t <= 127490 || t >= 127504 && t <= 127547 || t >= 127552 && t <= 127560 || t === 127568 || t === 127569 || t >= 127584 && t <= 127589 || t >= 127744 && t <= 127776 || t >= 127789 && t <= 127797 || t >= 127799 && t <= 127868 || t >= 127870 && t <= 127891 || t >= 127904 && t <= 127946 || t >= 127951 && t <= 127955 || t >= 127968 && t <= 127984 || t === 127988 || t >= 127992 && t <= 128062 || t === 128064 || t >= 128066 && t <= 128252 || t >= 128255 && t <= 128317 || t >= 128331 && t <= 128334 || t >= 128336 && t <= 128359 || t === 128378 || t === 128405 || t === 128406 || t === 128420 || t >= 128507 && t <= 128591 || t >= 128640 && t <= 128709 || t === 128716 || t >= 128720 && t <= 128722 || t >= 128725 && t <= 128727 || t >= 128732 && t <= 128735 || t === 128747 || t === 128748 || t >= 128756 && t <= 128764 || t >= 128992 && t <= 129003 || t === 129008 || t >= 129292 && t <= 129338 || t >= 129340 && t <= 129349 || t >= 129351 && t <= 129535 || t >= 129648 && t <= 129660 || t >= 129664 && t <= 129672 || t >= 129680 && t <= 129725 || t >= 129727 && t <= 129733 || t >= 129742 && t <= 129755 || t >= 129760 && t <= 129768 || t >= 129776 && t <= 129784 || t >= 131072 && t <= 196605 || t >= 196608 && t <= 262141, "ht");
147
152
  var O = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y;
148
153
  var y = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y;
149
- var M = /\t{1,1000}/y;
154
+ var L = /\t{1,1000}/y;
150
155
  var P = new RegExp("[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation}|\\p{Emoji}\\uFE0F\\u20E3?))*", "yu");
151
- var L = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y;
156
+ var M = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y;
152
157
  var ct = new RegExp("\\p{M}+", "gu");
153
- var pt = { limit: 1 / 0, ellipsis: "" };
154
- var X = /* @__PURE__ */ __name((t2, e = {}, s = {}) => {
155
- const i = e.limit ?? 1 / 0, r = e.ellipsis ?? "", n = e?.ellipsisWidth ?? (r ? X(r, pt, s).width : 0), u = s.ansiWidth ?? 0, a = s.controlWidth ?? 0, l = s.tabWidth ?? 8, E = s.ambiguousWidth ?? 1, g = s.emojiWidth ?? 2, m = s.fullWidthWidth ?? 2, A = s.regularWidth ?? 1, V = s.wideWidth ?? 2;
156
- let h2 = 0, o = 0, f = t2.length, v = 0, F = false, d = f, b = Math.max(0, i - n), C = 0, B = 0, c = 0, p = 0;
158
+ var ft = { limit: 1 / 0, ellipsis: "" };
159
+ var X = /* @__PURE__ */ __name((t, e2 = {}, s = {}) => {
160
+ const i = e2.limit ?? 1 / 0, r = e2.ellipsis ?? "", n = e2?.ellipsisWidth ?? (r ? X(r, ft, s).width : 0), u = s.ansiWidth ?? 0, a = s.controlWidth ?? 0, l = s.tabWidth ?? 8, E = s.ambiguousWidth ?? 1, g = s.emojiWidth ?? 2, m = s.fullWidthWidth ?? 2, A = s.regularWidth ?? 1, V2 = s.wideWidth ?? 2;
161
+ let h = 0, o = 0, p = t.length, v = 0, F = false, d2 = p, b = Math.max(0, i - n), C2 = 0, w = 0, c = 0, f = 0;
157
162
  t: for (; ; ) {
158
- if (B > C || o >= f && o > h2) {
159
- const ut = t2.slice(C, B) || t2.slice(h2, o);
163
+ if (w > C2 || o >= p && o > h) {
164
+ const ut2 = t.slice(C2, w) || t.slice(h, o);
160
165
  v = 0;
161
- for (const Y2 of ut.replaceAll(ct, "")) {
162
- const $ = Y2.codePointAt(0) || 0;
163
- if (lt($) ? p = m : ht($) ? p = V : E !== A && at($) ? p = E : p = A, c + p > b && (d = Math.min(d, Math.max(C, h2) + v)), c + p > i) {
166
+ for (const Y of ut2.replaceAll(ct, "")) {
167
+ const $ = Y.codePointAt(0) || 0;
168
+ if (lt($) ? f = m : ht($) ? f = V2 : E !== A && at($) ? f = E : f = A, c + f > b && (d2 = Math.min(d2, Math.max(C2, h) + v)), c + f > i) {
164
169
  F = true;
165
170
  break t;
166
171
  }
167
- v += Y2.length, c += p;
172
+ v += Y.length, c += f;
168
173
  }
169
- C = B = 0;
174
+ C2 = w = 0;
170
175
  }
171
- if (o >= f) break;
172
- if (L.lastIndex = o, L.test(t2)) {
173
- if (v = L.lastIndex - o, p = v * A, c + p > b && (d = Math.min(d, o + Math.floor((b - c) / A))), c + p > i) {
176
+ if (o >= p) break;
177
+ if (M.lastIndex = o, M.test(t)) {
178
+ if (v = M.lastIndex - o, f = v * A, c + f > b && (d2 = Math.min(d2, o + Math.floor((b - c) / A))), c + f > i) {
174
179
  F = true;
175
180
  break;
176
181
  }
177
- c += p, C = h2, B = o, o = h2 = L.lastIndex;
182
+ c += f, C2 = h, w = o, o = h = M.lastIndex;
178
183
  continue;
179
184
  }
180
- if (O.lastIndex = o, O.test(t2)) {
181
- if (c + u > b && (d = Math.min(d, o)), c + u > i) {
185
+ if (O.lastIndex = o, O.test(t)) {
186
+ if (c + u > b && (d2 = Math.min(d2, o)), c + u > i) {
182
187
  F = true;
183
188
  break;
184
189
  }
185
- c += u, C = h2, B = o, o = h2 = O.lastIndex;
190
+ c += u, C2 = h, w = o, o = h = O.lastIndex;
186
191
  continue;
187
192
  }
188
- if (y.lastIndex = o, y.test(t2)) {
189
- if (v = y.lastIndex - o, p = v * a, c + p > b && (d = Math.min(d, o + Math.floor((b - c) / a))), c + p > i) {
193
+ if (y.lastIndex = o, y.test(t)) {
194
+ if (v = y.lastIndex - o, f = v * a, c + f > b && (d2 = Math.min(d2, o + Math.floor((b - c) / a))), c + f > i) {
190
195
  F = true;
191
196
  break;
192
197
  }
193
- c += p, C = h2, B = o, o = h2 = y.lastIndex;
198
+ c += f, C2 = h, w = o, o = h = y.lastIndex;
194
199
  continue;
195
200
  }
196
- if (M.lastIndex = o, M.test(t2)) {
197
- if (v = M.lastIndex - o, p = v * l, c + p > b && (d = Math.min(d, o + Math.floor((b - c) / l))), c + p > i) {
201
+ if (L.lastIndex = o, L.test(t)) {
202
+ if (v = L.lastIndex - o, f = v * l, c + f > b && (d2 = Math.min(d2, o + Math.floor((b - c) / l))), c + f > i) {
198
203
  F = true;
199
204
  break;
200
205
  }
201
- c += p, C = h2, B = o, o = h2 = M.lastIndex;
206
+ c += f, C2 = h, w = o, o = h = L.lastIndex;
202
207
  continue;
203
208
  }
204
- if (P.lastIndex = o, P.test(t2)) {
205
- if (c + g > b && (d = Math.min(d, o)), c + g > i) {
209
+ if (P.lastIndex = o, P.test(t)) {
210
+ if (c + g > b && (d2 = Math.min(d2, o)), c + g > i) {
206
211
  F = true;
207
212
  break;
208
213
  }
209
- c += g, C = h2, B = o, o = h2 = P.lastIndex;
214
+ c += g, C2 = h, w = o, o = h = P.lastIndex;
210
215
  continue;
211
216
  }
212
217
  o += 1;
213
218
  }
214
- return { width: F ? b : c, index: F ? d : f, truncated: F, ellipsed: F && i >= n };
219
+ return { width: F ? b : c, index: F ? d2 : p, truncated: F, ellipsed: F && i >= n };
215
220
  }, "X");
216
- var ft = { limit: 1 / 0, ellipsis: "", ellipsisWidth: 0 };
217
- var S = /* @__PURE__ */ __name((t2, e = {}) => X(t2, ft, e).width, "S");
221
+ var pt = { limit: 1 / 0, ellipsis: "", ellipsisWidth: 0 };
222
+ var S = /* @__PURE__ */ __name((t, e2 = {}) => X(t, pt, e2).width, "S");
218
223
  var W = "\x1B";
219
224
  var Z = "\x9B";
220
225
  var Ft = 39;
@@ -224,102 +229,102 @@ var dt = "]";
224
229
  var tt = "m";
225
230
  var U = `${dt}8;;`;
226
231
  var et = new RegExp(`(?:\\${Q}(?<code>\\d+)m|\\${U}(?<uri>.*)${j})`, "y");
227
- var mt = /* @__PURE__ */ __name((t2) => {
228
- if (t2 >= 30 && t2 <= 37 || t2 >= 90 && t2 <= 97) return 39;
229
- if (t2 >= 40 && t2 <= 47 || t2 >= 100 && t2 <= 107) return 49;
230
- if (t2 === 1 || t2 === 2) return 22;
231
- if (t2 === 3) return 23;
232
- if (t2 === 4) return 24;
233
- if (t2 === 7) return 27;
234
- if (t2 === 8) return 28;
235
- if (t2 === 9) return 29;
236
- if (t2 === 0) return 0;
232
+ var mt = /* @__PURE__ */ __name((t) => {
233
+ if (t >= 30 && t <= 37 || t >= 90 && t <= 97) return 39;
234
+ if (t >= 40 && t <= 47 || t >= 100 && t <= 107) return 49;
235
+ if (t === 1 || t === 2) return 22;
236
+ if (t === 3) return 23;
237
+ if (t === 4) return 24;
238
+ if (t === 7) return 27;
239
+ if (t === 8) return 28;
240
+ if (t === 9) return 29;
241
+ if (t === 0) return 0;
237
242
  }, "mt");
238
- var st = /* @__PURE__ */ __name((t2) => `${W}${Q}${t2}${tt}`, "st");
239
- var it = /* @__PURE__ */ __name((t2) => `${W}${U}${t2}${j}`, "it");
240
- var gt = /* @__PURE__ */ __name((t2) => t2.map((e) => S(e)), "gt");
241
- var G = /* @__PURE__ */ __name((t2, e, s) => {
242
- const i = e[Symbol.iterator]();
243
- let r = false, n = false, u = t2.at(-1), a = u === void 0 ? 0 : S(u), l = i.next(), E = i.next(), g = 0;
243
+ var st = /* @__PURE__ */ __name((t) => `${W}${Q}${t}${tt}`, "st");
244
+ var it = /* @__PURE__ */ __name((t) => `${W}${U}${t}${j}`, "it");
245
+ var gt = /* @__PURE__ */ __name((t) => t.map((e2) => S(e2)), "gt");
246
+ var G = /* @__PURE__ */ __name((t, e2, s) => {
247
+ const i = e2[Symbol.iterator]();
248
+ let r = false, n = false, u = t.at(-1), a = u === void 0 ? 0 : S(u), l = i.next(), E = i.next(), g = 0;
244
249
  for (; !l.done; ) {
245
250
  const m = l.value, A = S(m);
246
- a + A <= s ? t2[t2.length - 1] += m : (t2.push(m), a = 0), (m === W || m === Z) && (r = true, n = e.startsWith(U, g + 1)), r ? n ? m === j && (r = false, n = false) : m === tt && (r = false) : (a += A, a === s && !E.done && (t2.push(""), a = 0)), l = E, E = i.next(), g += m.length;
251
+ a + A <= s ? t[t.length - 1] += m : (t.push(m), a = 0), (m === W || m === Z) && (r = true, n = e2.startsWith(U, g + 1)), r ? n ? m === j && (r = false, n = false) : m === tt && (r = false) : (a += A, a === s && !E.done && (t.push(""), a = 0)), l = E, E = i.next(), g += m.length;
247
252
  }
248
- u = t2.at(-1), !a && u !== void 0 && u.length > 0 && t2.length > 1 && (t2[t2.length - 2] += t2.pop());
253
+ u = t.at(-1), !a && u !== void 0 && u.length > 0 && t.length > 1 && (t[t.length - 2] += t.pop());
249
254
  }, "G");
250
- var vt = /* @__PURE__ */ __name((t2) => {
251
- const e = t2.split(" ");
252
- let s = e.length;
253
- for (; s > 0 && !(S(e[s - 1]) > 0); ) s--;
254
- return s === e.length ? t2 : e.slice(0, s).join(" ") + e.slice(s).join("");
255
+ var vt = /* @__PURE__ */ __name((t) => {
256
+ const e2 = t.split(" ");
257
+ let s = e2.length;
258
+ for (; s > 0 && !(S(e2[s - 1]) > 0); ) s--;
259
+ return s === e2.length ? t : e2.slice(0, s).join(" ") + e2.slice(s).join("");
255
260
  }, "vt");
256
- var Et = /* @__PURE__ */ __name((t2, e, s = {}) => {
257
- if (s.trim !== false && t2.trim() === "") return "";
261
+ var Et = /* @__PURE__ */ __name((t, e2, s = {}) => {
262
+ if (s.trim !== false && t.trim() === "") return "";
258
263
  let i = "", r, n;
259
- const u = t2.split(" "), a = gt(u);
264
+ const u = t.split(" "), a = gt(u);
260
265
  let l = [""];
261
- for (const [h2, o] of u.entries()) {
266
+ for (const [h, o] of u.entries()) {
262
267
  s.trim !== false && (l[l.length - 1] = (l.at(-1) ?? "").trimStart());
263
- let f = S(l.at(-1) ?? "");
264
- if (h2 !== 0 && (f >= e && (s.wordWrap === false || s.trim === false) && (l.push(""), f = 0), (f > 0 || s.trim === false) && (l[l.length - 1] += " ", f++)), s.hard && a[h2] > e) {
265
- const v = e - f, F = 1 + Math.floor((a[h2] - v - 1) / e);
266
- Math.floor((a[h2] - 1) / e) < F && l.push(""), G(l, o, e);
268
+ let p = S(l.at(-1) ?? "");
269
+ if (h !== 0 && (p >= e2 && (s.wordWrap === false || s.trim === false) && (l.push(""), p = 0), (p > 0 || s.trim === false) && (l[l.length - 1] += " ", p++)), s.hard && a[h] > e2) {
270
+ const v = e2 - p, F = 1 + Math.floor((a[h] - v - 1) / e2);
271
+ Math.floor((a[h] - 1) / e2) < F && l.push(""), G(l, o, e2);
267
272
  continue;
268
273
  }
269
- if (f + a[h2] > e && f > 0 && a[h2] > 0) {
270
- if (s.wordWrap === false && f < e) {
271
- G(l, o, e);
274
+ if (p + a[h] > e2 && p > 0 && a[h] > 0) {
275
+ if (s.wordWrap === false && p < e2) {
276
+ G(l, o, e2);
272
277
  continue;
273
278
  }
274
279
  l.push("");
275
280
  }
276
- if (f + a[h2] > e && s.wordWrap === false) {
277
- G(l, o, e);
281
+ if (p + a[h] > e2 && s.wordWrap === false) {
282
+ G(l, o, e2);
278
283
  continue;
279
284
  }
280
285
  l[l.length - 1] += o;
281
286
  }
282
- s.trim !== false && (l = l.map((h2) => vt(h2)));
287
+ s.trim !== false && (l = l.map((h) => vt(h)));
283
288
  const E = l.join(`
284
289
  `), g = E[Symbol.iterator]();
285
- let m = g.next(), A = g.next(), V = 0;
290
+ let m = g.next(), A = g.next(), V2 = 0;
286
291
  for (; !m.done; ) {
287
- const h2 = m.value, o = A.value;
288
- if (i += h2, h2 === W || h2 === Z) {
289
- et.lastIndex = V + 1;
292
+ const h = m.value, o = A.value;
293
+ if (i += h, h === W || h === Z) {
294
+ et.lastIndex = V2 + 1;
290
295
  const F = et.exec(E)?.groups;
291
296
  if (F?.code !== void 0) {
292
- const d = Number.parseFloat(F.code);
293
- r = d === Ft ? void 0 : d;
297
+ const d2 = Number.parseFloat(F.code);
298
+ r = d2 === Ft ? void 0 : d2;
294
299
  } else F?.uri !== void 0 && (n = F.uri.length === 0 ? void 0 : F.uri);
295
300
  }
296
- const f = r ? mt(r) : void 0;
301
+ const p = r ? mt(r) : void 0;
297
302
  o === `
298
- ` ? (n && (i += it("")), r && f && (i += st(f))) : h2 === `
299
- ` && (r && f && (i += st(r)), n && (i += it(n))), V += h2.length, m = A, A = g.next();
303
+ ` ? (n && (i += it("")), r && p && (i += st(p))) : h === `
304
+ ` && (r && p && (i += st(r)), n && (i += it(n))), V2 += h.length, m = A, A = g.next();
300
305
  }
301
306
  return i;
302
307
  }, "Et");
303
- function K(t2, e, s) {
304
- return String(t2).normalize().replaceAll(`\r
308
+ function K(t, e2, s) {
309
+ return String(t).normalize().replaceAll(`\r
305
310
  `, `
306
311
  `).split(`
307
- `).map((i) => Et(i, e, s)).join(`
312
+ `).map((i) => Et(i, e2, s)).join(`
308
313
  `);
309
314
  }
310
315
  __name(K, "K");
311
316
  var At = ["up", "down", "left", "right", "space", "enter", "cancel"];
312
- var _ = { actions: new Set(At), aliases: /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"], ["", "cancel"], ["escape", "cancel"]])};
313
- function H(t2, e) {
314
- if (typeof t2 == "string") return _.aliases.get(t2) === e;
315
- for (const s of t2) if (s !== void 0 && H(s, e)) return true;
317
+ var _ = { actions: new Set(At), aliases: /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"], ["", "cancel"], ["escape", "cancel"]]), withGuide: true };
318
+ function H(t, e2) {
319
+ if (typeof t == "string") return _.aliases.get(t) === e2;
320
+ for (const s of t) if (s !== void 0 && H(s, e2)) return true;
316
321
  return false;
317
322
  }
318
323
  __name(H, "H");
319
- function _t(t2, e) {
320
- if (t2 === e) return;
321
- const s = t2.split(`
322
- `), i = e.split(`
324
+ function _t(t, e2) {
325
+ if (t === e2) return;
326
+ const s = t.split(`
327
+ `), i = e2.split(`
323
328
  `), r = Math.max(s.length, i.length), n = [];
324
329
  for (let u = 0; u < r; u++) s[u] !== i[u] && n.push(u);
325
330
  return { lines: n, numLinesBefore: s.length, numLinesAfter: i.length, numLines: r };
@@ -327,24 +332,24 @@ function _t(t2, e) {
327
332
  __name(_t, "_t");
328
333
  globalThis.process.platform.startsWith("win");
329
334
  var z = /* @__PURE__ */ Symbol("clack:cancel");
330
- function Ct(t2) {
331
- return t2 === z;
335
+ function Ct(t) {
336
+ return t === z;
332
337
  }
333
338
  __name(Ct, "Ct");
334
- function T(t2, e) {
335
- const s = t2;
336
- s.isTTY && s.setRawMode(e);
339
+ function T(t, e2) {
340
+ const s = t;
341
+ s.isTTY && s.setRawMode(e2);
337
342
  }
338
343
  __name(T, "T");
339
- var rt = /* @__PURE__ */ __name((t2) => "columns" in t2 && typeof t2.columns == "number" ? t2.columns : 80, "rt");
340
- var nt = /* @__PURE__ */ __name((t2) => "rows" in t2 && typeof t2.rows == "number" ? t2.rows : 20, "nt");
341
- function Bt(t2, e, s, i = s) {
342
- const r = rt(t2 ?? stdout);
343
- return K(e, r - s.length, { hard: true, trim: false }).split(`
344
+ var rt = /* @__PURE__ */ __name((t) => "columns" in t && typeof t.columns == "number" ? t.columns : 80, "rt");
345
+ var nt = /* @__PURE__ */ __name((t) => "rows" in t && typeof t.rows == "number" ? t.rows : 20, "nt");
346
+ function xt(t, e2, s, i = s) {
347
+ const r = rt(t ?? stdout);
348
+ return K(e2, r - s.length, { hard: true, trim: false }).split(`
344
349
  `).map((n, u) => `${u === 0 ? i : s}${n}`).join(`
345
350
  `);
346
351
  }
347
- __name(Bt, "Bt");
352
+ __name(xt, "xt");
348
353
  var x = class {
349
354
  static {
350
355
  __name(this, "x");
@@ -363,92 +368,92 @@ var x = class {
363
368
  error = "";
364
369
  value;
365
370
  userInput = "";
366
- constructor(e, s = true) {
367
- const { input: i = stdin, output: r = stdout, render: n, signal: u, ...a } = e;
371
+ constructor(e2, s = true) {
372
+ const { input: i = stdin, output: r = stdout, render: n, signal: u, ...a } = e2;
368
373
  this.opts = a, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = n.bind(this), this._track = s, this._abortSignal = u, this.input = i, this.output = r;
369
374
  }
370
375
  unsubscribe() {
371
376
  this._subscribers.clear();
372
377
  }
373
- setSubscriber(e, s) {
374
- const i = this._subscribers.get(e) ?? [];
375
- i.push(s), this._subscribers.set(e, i);
378
+ setSubscriber(e2, s) {
379
+ const i = this._subscribers.get(e2) ?? [];
380
+ i.push(s), this._subscribers.set(e2, i);
376
381
  }
377
- on(e, s) {
378
- this.setSubscriber(e, { cb: s });
382
+ on(e2, s) {
383
+ this.setSubscriber(e2, { cb: s });
379
384
  }
380
- once(e, s) {
381
- this.setSubscriber(e, { cb: s, once: true });
385
+ once(e2, s) {
386
+ this.setSubscriber(e2, { cb: s, once: true });
382
387
  }
383
- emit(e, ...s) {
384
- const i = this._subscribers.get(e) ?? [], r = [];
388
+ emit(e2, ...s) {
389
+ const i = this._subscribers.get(e2) ?? [], r = [];
385
390
  for (const n of i) n.cb(...s), n.once && r.push(() => i.splice(i.indexOf(n), 1));
386
391
  for (const n of r) n();
387
392
  }
388
393
  prompt() {
389
- return new Promise((e) => {
394
+ return new Promise((e2) => {
390
395
  if (this._abortSignal) {
391
- if (this._abortSignal.aborted) return this.state = "cancel", this.close(), e(z);
396
+ if (this._abortSignal.aborted) return this.state = "cancel", this.close(), e2(z);
392
397
  this._abortSignal.addEventListener("abort", () => {
393
398
  this.state = "cancel", this.close();
394
399
  }, { once: true });
395
400
  }
396
401
  this.rl = ot.createInterface({ input: this.input, tabSize: 2, prompt: "", escapeCodeTimeout: 50, terminal: true }), this.rl.prompt(), this.opts.initialUserInput !== void 0 && this._setUserInput(this.opts.initialUserInput, true), this.input.on("keypress", this.onKeypress), T(this.input, true), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
397
- this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), T(this.input, false), e(this.value);
402
+ this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), T(this.input, false), e2(this.value);
398
403
  }), this.once("cancel", () => {
399
- this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), T(this.input, false), e(z);
404
+ this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), T(this.input, false), e2(z);
400
405
  });
401
406
  });
402
407
  }
403
- _isActionKey(e, s) {
404
- return e === " ";
408
+ _isActionKey(e2, s) {
409
+ return e2 === " ";
405
410
  }
406
- _setValue(e) {
407
- this.value = e, this.emit("value", this.value);
411
+ _setValue(e2) {
412
+ this.value = e2, this.emit("value", this.value);
408
413
  }
409
- _setUserInput(e, s) {
410
- this.userInput = e ?? "", this.emit("userInput", this.userInput), s && this._track && this.rl && (this.rl.write(this.userInput), this._cursor = this.rl.cursor);
414
+ _setUserInput(e2, s) {
415
+ this.userInput = e2 ?? "", this.emit("userInput", this.userInput), s && this._track && this.rl && (this.rl.write(this.userInput), this._cursor = this.rl.cursor);
411
416
  }
412
417
  _clearUserInput() {
413
418
  this.rl?.write(null, { ctrl: true, name: "u" }), this._setUserInput("");
414
419
  }
415
- onKeypress(e, s) {
416
- if (this._track && s.name !== "return" && (s.name && this._isActionKey(e, s) && this.rl?.write(null, { ctrl: true, name: "h" }), this._cursor = this.rl?.cursor ?? 0, this._setUserInput(this.rl?.line)), this.state === "error" && (this.state = "active"), s?.name && (!this._track && _.aliases.has(s.name) && this.emit("cursor", _.aliases.get(s.name)), _.actions.has(s.name) && this.emit("cursor", s.name)), e && (e.toLowerCase() === "y" || e.toLowerCase() === "n") && this.emit("confirm", e.toLowerCase() === "y"), this.emit("key", e?.toLowerCase(), s), s?.name === "return") {
420
+ onKeypress(e2, s) {
421
+ if (this._track && s.name !== "return" && (s.name && this._isActionKey(e2, s) && this.rl?.write(null, { ctrl: true, name: "h" }), this._cursor = this.rl?.cursor ?? 0, this._setUserInput(this.rl?.line)), this.state === "error" && (this.state = "active"), s?.name && (!this._track && _.aliases.has(s.name) && this.emit("cursor", _.aliases.get(s.name)), _.actions.has(s.name) && this.emit("cursor", s.name)), e2 && (e2.toLowerCase() === "y" || e2.toLowerCase() === "n") && this.emit("confirm", e2.toLowerCase() === "y"), this.emit("key", e2?.toLowerCase(), s), s?.name === "return") {
417
422
  if (this.opts.validate) {
418
423
  const i = this.opts.validate(this.value);
419
424
  i && (this.error = i instanceof Error ? i.message : i, this.state = "error", this.rl?.write(this.userInput));
420
425
  }
421
426
  this.state !== "error" && (this.state = "submit");
422
427
  }
423
- H([e, s?.name, s?.sequence], "cancel") && (this.state = "cancel"), (this.state === "submit" || this.state === "cancel") && this.emit("finalize"), this.render(), (this.state === "submit" || this.state === "cancel") && this.close();
428
+ H([e2, s?.name, s?.sequence], "cancel") && (this.state = "cancel"), (this.state === "submit" || this.state === "cancel") && this.emit("finalize"), this.render(), (this.state === "submit" || this.state === "cancel") && this.close();
424
429
  }
425
430
  close() {
426
431
  this.input.unpipe(), this.input.removeListener("keypress", this.onKeypress), this.output.write(`
427
432
  `), T(this.input, false), this.rl?.close(), this.rl = void 0, this.emit(`${this.state}`, this.value), this.unsubscribe();
428
433
  }
429
434
  restoreCursor() {
430
- const e = K(this._prevFrame, process.stdout.columns, { hard: true, trim: false }).split(`
435
+ const e2 = K(this._prevFrame, process.stdout.columns, { hard: true, trim: false }).split(`
431
436
  `).length - 1;
432
- this.output.write(import_sisteransi.cursor.move(-999, e * -1));
437
+ this.output.write(import_sisteransi.cursor.move(-999, e2 * -1));
433
438
  }
434
439
  render() {
435
- const e = K(this._render(this) ?? "", process.stdout.columns, { hard: true, trim: false });
436
- if (e !== this._prevFrame) {
440
+ const e2 = K(this._render(this) ?? "", process.stdout.columns, { hard: true, trim: false });
441
+ if (e2 !== this._prevFrame) {
437
442
  if (this.state === "initial") this.output.write(import_sisteransi.cursor.hide);
438
443
  else {
439
- const s = _t(this._prevFrame, e), i = nt(this.output);
444
+ const s = _t(this._prevFrame, e2), i = nt(this.output);
440
445
  if (this.restoreCursor(), s) {
441
446
  const r = Math.max(0, s.numLinesAfter - i), n = Math.max(0, s.numLinesBefore - i);
442
447
  let u = s.lines.find((a) => a >= r);
443
448
  if (u === void 0) {
444
- this._prevFrame = e;
449
+ this._prevFrame = e2;
445
450
  return;
446
451
  }
447
452
  if (s.lines.length === 1) {
448
453
  this.output.write(import_sisteransi.cursor.move(0, u - n)), this.output.write(import_sisteransi.erase.lines(1));
449
- const a = e.split(`
454
+ const a = e2.split(`
450
455
  `);
451
- this.output.write(a[u]), this._prevFrame = e, this.output.write(import_sisteransi.cursor.move(0, a.length - u - 1));
456
+ this.output.write(a[u]), this._prevFrame = e2, this.output.write(import_sisteransi.cursor.move(0, a.length - u - 1));
452
457
  return;
453
458
  } else if (s.lines.length > 1) {
454
459
  if (r < n) u = r;
@@ -457,16 +462,16 @@ var x = class {
457
462
  l > 0 && this.output.write(import_sisteransi.cursor.move(0, l));
458
463
  }
459
464
  this.output.write(import_sisteransi.erase.down());
460
- const a = e.split(`
465
+ const a = e2.split(`
461
466
  `).slice(u);
462
467
  this.output.write(a.join(`
463
- `)), this._prevFrame = e;
468
+ `)), this._prevFrame = e2;
464
469
  return;
465
470
  }
466
471
  }
467
472
  this.output.write(import_sisteransi.erase.down());
468
473
  }
469
- this.output.write(e), this.state === "initial" && (this.state = "active"), this._prevFrame = e;
474
+ this.output.write(e2), this.state === "initial" && (this.state = "active"), this._prevFrame = e2;
470
475
  }
471
476
  }
472
477
  };
@@ -480,8 +485,8 @@ var kt = class extends x {
480
485
  get _value() {
481
486
  return this.cursor === 0;
482
487
  }
483
- constructor(e) {
484
- super(e, false), this.value = !!e.initialValue, this.on("userInput", () => {
488
+ constructor(e2) {
489
+ super(e2, false), this.value = !!e2.initialValue, this.on("userInput", () => {
485
490
  this.value = this._value;
486
491
  }), this.on("confirm", (s) => {
487
492
  this.output.write(import_sisteransi.cursor.move(0, -1)), this.value = s, this.state = "submit", this.close();
@@ -490,14 +495,9 @@ var kt = class extends x {
490
495
  });
491
496
  }
492
497
  };
493
- function D(t2, e, s) {
494
- const i = t2 + e, r = Math.max(s.length - 1, 0), n = i < 0 ? r : i > r ? 0 : i;
495
- return s[n].disabled ? D(n, e < 0 ? -1 : 1, s) : n;
496
- }
497
- __name(D, "D");
498
- var Mt = class extends x {
498
+ var Lt = class extends x {
499
499
  static {
500
- __name(this, "Mt");
500
+ __name(this, "Lt");
501
501
  }
502
502
  options;
503
503
  cursor = 0;
@@ -505,37 +505,37 @@ var Mt = class extends x {
505
505
  return this.options[this.cursor].value;
506
506
  }
507
507
  get _enabledOptions() {
508
- return this.options.filter((e) => e.disabled !== true);
508
+ return this.options.filter((e2) => e2.disabled !== true);
509
509
  }
510
510
  toggleAll() {
511
- const e = this._enabledOptions, s = this.value !== void 0 && this.value.length === e.length;
512
- this.value = s ? [] : e.map((i) => i.value);
511
+ const e2 = this._enabledOptions, s = this.value !== void 0 && this.value.length === e2.length;
512
+ this.value = s ? [] : e2.map((i) => i.value);
513
513
  }
514
514
  toggleInvert() {
515
- const e = this.value;
516
- if (!e) return;
517
- const s = this._enabledOptions.filter((i) => !e.includes(i.value));
515
+ const e2 = this.value;
516
+ if (!e2) return;
517
+ const s = this._enabledOptions.filter((i) => !e2.includes(i.value));
518
518
  this.value = s.map((i) => i.value);
519
519
  }
520
520
  toggleValue() {
521
521
  this.value === void 0 && (this.value = []);
522
- const e = this.value.includes(this._value);
523
- this.value = e ? this.value.filter((s) => s !== this._value) : [...this.value, this._value];
522
+ const e2 = this.value.includes(this._value);
523
+ this.value = e2 ? this.value.filter((s) => s !== this._value) : [...this.value, this._value];
524
524
  }
525
- constructor(e) {
526
- super(e, false), this.options = e.options, this.value = [...e.initialValues ?? []];
527
- const s = Math.max(this.options.findIndex(({ value: i }) => i === e.cursorAt), 0);
528
- this.cursor = this.options[s].disabled ? D(s, 1, this.options) : s, this.on("key", (i) => {
525
+ constructor(e2) {
526
+ super(e2, false), this.options = e2.options, this.value = [...e2.initialValues ?? []];
527
+ const s = Math.max(this.options.findIndex(({ value: i }) => i === e2.cursorAt), 0);
528
+ this.cursor = this.options[s].disabled ? B(s, 1, this.options) : s, this.on("key", (i) => {
529
529
  i === "a" && this.toggleAll(), i === "i" && this.toggleInvert();
530
530
  }), this.on("cursor", (i) => {
531
531
  switch (i) {
532
532
  case "left":
533
533
  case "up":
534
- this.cursor = D(this.cursor, -1, this.options);
534
+ this.cursor = B(this.cursor, -1, this.options);
535
535
  break;
536
536
  case "down":
537
537
  case "right":
538
- this.cursor = D(this.cursor, 1, this.options);
538
+ this.cursor = B(this.cursor, 1, this.options);
539
539
  break;
540
540
  case "space":
541
541
  this.toggleValue();
@@ -556,18 +556,18 @@ var Wt = class extends x {
556
556
  changeValue() {
557
557
  this.value = this._selectedValue.value;
558
558
  }
559
- constructor(e) {
560
- super(e, false), this.options = e.options;
561
- const s = this.options.findIndex(({ value: r }) => r === e.initialValue), i = s === -1 ? 0 : s;
562
- this.cursor = this.options[i].disabled ? D(i, 1, this.options) : i, this.changeValue(), this.on("cursor", (r) => {
559
+ constructor(e2) {
560
+ super(e2, false), this.options = e2.options;
561
+ const s = this.options.findIndex(({ value: r }) => r === e2.initialValue), i = s === -1 ? 0 : s;
562
+ this.cursor = this.options[i].disabled ? B(i, 1, this.options) : i, this.changeValue(), this.on("cursor", (r) => {
563
563
  switch (r) {
564
564
  case "left":
565
565
  case "up":
566
- this.cursor = D(this.cursor, -1, this.options);
566
+ this.cursor = B(this.cursor, -1, this.options);
567
567
  break;
568
568
  case "down":
569
569
  case "right":
570
- this.cursor = D(this.cursor, 1, this.options);
570
+ this.cursor = B(this.cursor, 1, this.options);
571
571
  break;
572
572
  }
573
573
  this.changeValue();
@@ -575,313 +575,313 @@ var Wt = class extends x {
575
575
  }
576
576
  };
577
577
 
578
- // ../../node_modules/.pnpm/@clack+prompts@1.0.0/node_modules/@clack/prompts/dist/index.mjs
578
+ // ../../node_modules/.pnpm/@clack+prompts@1.0.1/node_modules/@clack/prompts/dist/index.mjs
579
579
  var import_picocolors = __toESM(require_picocolors(), 1);
580
580
  __toESM(require_src(), 1);
581
- function ht2() {
582
- return P2.platform !== "win32" ? P2.env.TERM !== "linux" : !!P2.env.CI || !!P2.env.WT_SESSION || !!P2.env.TERMINUS_SUBLIME || P2.env.ConEmuTask === "{cmd::Cmder}" || P2.env.TERM_PROGRAM === "Terminus-Sublime" || P2.env.TERM_PROGRAM === "vscode" || P2.env.TERM === "xterm-256color" || P2.env.TERM === "alacritty" || P2.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
581
+ function me() {
582
+ return N2.platform !== "win32" ? N2.env.TERM !== "linux" : !!N2.env.CI || !!N2.env.WT_SESSION || !!N2.env.TERMINUS_SUBLIME || N2.env.ConEmuTask === "{cmd::Cmder}" || N2.env.TERM_PROGRAM === "Terminus-Sublime" || N2.env.TERM_PROGRAM === "vscode" || N2.env.TERM === "xterm-256color" || N2.env.TERM === "alacritty" || N2.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
583
583
  }
584
- __name(ht2, "ht");
585
- var ee = ht2();
586
- var w = /* @__PURE__ */ __name((e, r) => ee ? e : r, "w");
587
- var Me = w("\u25C6", "*");
588
- var ce = w("\u25A0", "x");
589
- var de = w("\u25B2", "x");
590
- var k2 = w("\u25C7", "o");
591
- w("\u250C", "T");
592
- var h = w("\u2502", "|");
593
- var x2 = w("\u2514", "\u2014");
594
- w("\u2510", "T");
595
- w("\u2518", "\u2014");
596
- var Y = w("\u25CF", ">");
597
- var K2 = w("\u25CB", " ");
598
- w("\u25FB", "[\u2022]");
599
- w("\u25FC", "[+]");
600
- w("\u25FB", "[ ]");
601
- w("\u25AA", "\u2022");
602
- w("\u2500", "-");
603
- w("\u256E", "+");
604
- w("\u251C", "+");
605
- w("\u256F", "+");
606
- w("\u2570", "+");
607
- w("\u256D", "+");
608
- w("\u25CF", "\u2022");
609
- w("\u25C6", "*");
610
- w("\u25B2", "!");
611
- w("\u25A0", "x");
612
- var N2 = /* @__PURE__ */ __name((e) => {
613
- switch (e) {
584
+ __name(me, "me");
585
+ var et2 = me();
586
+ var C = /* @__PURE__ */ __name((t, r) => et2 ? t : r, "C");
587
+ var Rt = C("\u25C6", "*");
588
+ var dt2 = C("\u25A0", "x");
589
+ var $t2 = C("\u25B2", "x");
590
+ var V = C("\u25C7", "o");
591
+ C("\u250C", "T");
592
+ var d = C("\u2502", "|");
593
+ var x2 = C("\u2514", "\u2014");
594
+ C("\u2510", "T");
595
+ C("\u2518", "\u2014");
596
+ var Q2 = C("\u25CF", ">");
597
+ var H2 = C("\u25CB", " ");
598
+ C("\u25FB", "[\u2022]");
599
+ C("\u25FC", "[+]");
600
+ C("\u25FB", "[ ]");
601
+ C("\u25AA", "\u2022");
602
+ C("\u2500", "-");
603
+ C("\u256E", "+");
604
+ C("\u251C", "+");
605
+ C("\u256F", "+");
606
+ C("\u2570", "+");
607
+ C("\u256D", "+");
608
+ C("\u25CF", "\u2022");
609
+ C("\u25C6", "*");
610
+ C("\u25B2", "!");
611
+ C("\u25A0", "x");
612
+ var W2 = /* @__PURE__ */ __name((t) => {
613
+ switch (t) {
614
614
  case "initial":
615
615
  case "active":
616
- return import_picocolors.default.cyan(Me);
616
+ return import_picocolors.default.cyan(Rt);
617
617
  case "cancel":
618
- return import_picocolors.default.red(ce);
618
+ return import_picocolors.default.red(dt2);
619
619
  case "error":
620
- return import_picocolors.default.yellow(de);
620
+ return import_picocolors.default.yellow($t2);
621
621
  case "submit":
622
- return import_picocolors.default.green(k2);
622
+ return import_picocolors.default.green(V);
623
623
  }
624
- }, "N");
625
- var Ee = /* @__PURE__ */ __name((e) => {
626
- switch (e) {
624
+ }, "W");
625
+ var vt2 = /* @__PURE__ */ __name((t) => {
626
+ switch (t) {
627
627
  case "initial":
628
628
  case "active":
629
- return import_picocolors.default.cyan(h);
629
+ return import_picocolors.default.cyan(d);
630
630
  case "cancel":
631
- return import_picocolors.default.red(h);
631
+ return import_picocolors.default.red(d);
632
632
  case "error":
633
- return import_picocolors.default.yellow(h);
633
+ return import_picocolors.default.yellow(d);
634
634
  case "submit":
635
- return import_picocolors.default.green(h);
635
+ return import_picocolors.default.green(d);
636
636
  }
637
- }, "Ee");
638
- var mt2 = /* @__PURE__ */ __name((e) => e === 161 || e === 164 || e === 167 || e === 168 || e === 170 || e === 173 || e === 174 || e >= 176 && e <= 180 || e >= 182 && e <= 186 || e >= 188 && e <= 191 || e === 198 || e === 208 || e === 215 || e === 216 || e >= 222 && e <= 225 || e === 230 || e >= 232 && e <= 234 || e === 236 || e === 237 || e === 240 || e === 242 || e === 243 || e >= 247 && e <= 250 || e === 252 || e === 254 || e === 257 || e === 273 || e === 275 || e === 283 || e === 294 || e === 295 || e === 299 || e >= 305 && e <= 307 || e === 312 || e >= 319 && e <= 322 || e === 324 || e >= 328 && e <= 331 || e === 333 || e === 338 || e === 339 || e === 358 || e === 359 || e === 363 || e === 462 || e === 464 || e === 466 || e === 468 || e === 470 || e === 472 || e === 474 || e === 476 || e === 593 || e === 609 || e === 708 || e === 711 || e >= 713 && e <= 715 || e === 717 || e === 720 || e >= 728 && e <= 731 || e === 733 || e === 735 || e >= 768 && e <= 879 || e >= 913 && e <= 929 || e >= 931 && e <= 937 || e >= 945 && e <= 961 || e >= 963 && e <= 969 || e === 1025 || e >= 1040 && e <= 1103 || e === 1105 || e === 8208 || e >= 8211 && e <= 8214 || e === 8216 || e === 8217 || e === 8220 || e === 8221 || e >= 8224 && e <= 8226 || e >= 8228 && e <= 8231 || e === 8240 || e === 8242 || e === 8243 || e === 8245 || e === 8251 || e === 8254 || e === 8308 || e === 8319 || e >= 8321 && e <= 8324 || e === 8364 || e === 8451 || e === 8453 || e === 8457 || e === 8467 || e === 8470 || e === 8481 || e === 8482 || e === 8486 || e === 8491 || e === 8531 || e === 8532 || e >= 8539 && e <= 8542 || e >= 8544 && e <= 8555 || e >= 8560 && e <= 8569 || e === 8585 || e >= 8592 && e <= 8601 || e === 8632 || e === 8633 || e === 8658 || e === 8660 || e === 8679 || e === 8704 || e === 8706 || e === 8707 || e === 8711 || e === 8712 || e === 8715 || e === 8719 || e === 8721 || e === 8725 || e === 8730 || e >= 8733 && e <= 8736 || e === 8739 || e === 8741 || e >= 8743 && e <= 8748 || e === 8750 || e >= 8756 && e <= 8759 || e === 8764 || e === 8765 || e === 8776 || e === 8780 || e === 8786 || e === 8800 || e === 8801 || e >= 8804 && e <= 8807 || e === 8810 || e === 8811 || e === 8814 || e === 8815 || e === 8834 || e === 8835 || e === 8838 || e === 8839 || e === 8853 || e === 8857 || e === 8869 || e === 8895 || e === 8978 || e >= 9312 && e <= 9449 || e >= 9451 && e <= 9547 || e >= 9552 && e <= 9587 || e >= 9600 && e <= 9615 || e >= 9618 && e <= 9621 || e === 9632 || e === 9633 || e >= 9635 && e <= 9641 || e === 9650 || e === 9651 || e === 9654 || e === 9655 || e === 9660 || e === 9661 || e === 9664 || e === 9665 || e >= 9670 && e <= 9672 || e === 9675 || e >= 9678 && e <= 9681 || e >= 9698 && e <= 9701 || e === 9711 || e === 9733 || e === 9734 || e === 9737 || e === 9742 || e === 9743 || e === 9756 || e === 9758 || e === 9792 || e === 9794 || e === 9824 || e === 9825 || e >= 9827 && e <= 9829 || e >= 9831 && e <= 9834 || e === 9836 || e === 9837 || e === 9839 || e === 9886 || e === 9887 || e === 9919 || e >= 9926 && e <= 9933 || e >= 9935 && e <= 9939 || e >= 9941 && e <= 9953 || e === 9955 || e === 9960 || e === 9961 || e >= 9963 && e <= 9969 || e === 9972 || e >= 9974 && e <= 9977 || e === 9979 || e === 9980 || e === 9982 || e === 9983 || e === 10045 || e >= 10102 && e <= 10111 || e >= 11094 && e <= 11097 || e >= 12872 && e <= 12879 || e >= 57344 && e <= 63743 || e >= 65024 && e <= 65039 || e === 65533 || e >= 127232 && e <= 127242 || e >= 127248 && e <= 127277 || e >= 127280 && e <= 127337 || e >= 127344 && e <= 127373 || e === 127375 || e === 127376 || e >= 127387 && e <= 127404 || e >= 917760 && e <= 917999 || e >= 983040 && e <= 1048573 || e >= 1048576 && e <= 1114109, "mt");
639
- var pt2 = /* @__PURE__ */ __name((e) => e === 12288 || e >= 65281 && e <= 65376 || e >= 65504 && e <= 65510, "pt");
640
- var gt2 = /* @__PURE__ */ __name((e) => e >= 4352 && e <= 4447 || e === 8986 || e === 8987 || e === 9001 || e === 9002 || e >= 9193 && e <= 9196 || e === 9200 || e === 9203 || e === 9725 || e === 9726 || e === 9748 || e === 9749 || e >= 9800 && e <= 9811 || e === 9855 || e === 9875 || e === 9889 || e === 9898 || e === 9899 || e === 9917 || e === 9918 || e === 9924 || e === 9925 || e === 9934 || e === 9940 || e === 9962 || e === 9970 || e === 9971 || e === 9973 || e === 9978 || e === 9981 || e === 9989 || e === 9994 || e === 9995 || e === 10024 || e === 10060 || e === 10062 || e >= 10067 && e <= 10069 || e === 10071 || e >= 10133 && e <= 10135 || e === 10160 || e === 10175 || e === 11035 || e === 11036 || e === 11088 || e === 11093 || e >= 11904 && e <= 11929 || e >= 11931 && e <= 12019 || e >= 12032 && e <= 12245 || e >= 12272 && e <= 12287 || e >= 12289 && e <= 12350 || e >= 12353 && e <= 12438 || e >= 12441 && e <= 12543 || e >= 12549 && e <= 12591 || e >= 12593 && e <= 12686 || e >= 12688 && e <= 12771 || e >= 12783 && e <= 12830 || e >= 12832 && e <= 12871 || e >= 12880 && e <= 19903 || e >= 19968 && e <= 42124 || e >= 42128 && e <= 42182 || e >= 43360 && e <= 43388 || e >= 44032 && e <= 55203 || e >= 63744 && e <= 64255 || e >= 65040 && e <= 65049 || e >= 65072 && e <= 65106 || e >= 65108 && e <= 65126 || e >= 65128 && e <= 65131 || e >= 94176 && e <= 94180 || e === 94192 || e === 94193 || e >= 94208 && e <= 100343 || e >= 100352 && e <= 101589 || e >= 101632 && e <= 101640 || e >= 110576 && e <= 110579 || e >= 110581 && e <= 110587 || e === 110589 || e === 110590 || e >= 110592 && e <= 110882 || e === 110898 || e >= 110928 && e <= 110930 || e === 110933 || e >= 110948 && e <= 110951 || e >= 110960 && e <= 111355 || e === 126980 || e === 127183 || e === 127374 || e >= 127377 && e <= 127386 || e >= 127488 && e <= 127490 || e >= 127504 && e <= 127547 || e >= 127552 && e <= 127560 || e === 127568 || e === 127569 || e >= 127584 && e <= 127589 || e >= 127744 && e <= 127776 || e >= 127789 && e <= 127797 || e >= 127799 && e <= 127868 || e >= 127870 && e <= 127891 || e >= 127904 && e <= 127946 || e >= 127951 && e <= 127955 || e >= 127968 && e <= 127984 || e === 127988 || e >= 127992 && e <= 128062 || e === 128064 || e >= 128066 && e <= 128252 || e >= 128255 && e <= 128317 || e >= 128331 && e <= 128334 || e >= 128336 && e <= 128359 || e === 128378 || e === 128405 || e === 128406 || e === 128420 || e >= 128507 && e <= 128591 || e >= 128640 && e <= 128709 || e === 128716 || e >= 128720 && e <= 128722 || e >= 128725 && e <= 128727 || e >= 128732 && e <= 128735 || e === 128747 || e === 128748 || e >= 128756 && e <= 128764 || e >= 128992 && e <= 129003 || e === 129008 || e >= 129292 && e <= 129338 || e >= 129340 && e <= 129349 || e >= 129351 && e <= 129535 || e >= 129648 && e <= 129660 || e >= 129664 && e <= 129672 || e >= 129680 && e <= 129725 || e >= 129727 && e <= 129733 || e >= 129742 && e <= 129755 || e >= 129760 && e <= 129768 || e >= 129776 && e <= 129784 || e >= 131072 && e <= 196605 || e >= 196608 && e <= 262141, "gt");
641
- var ve = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y;
642
- var re = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y;
643
- var ie = /\t{1,1000}/y;
644
- var Ae = new RegExp("[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation}|\\p{Emoji}\\uFE0F\\u20E3?))*", "yu");
645
- var ne = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y;
646
- var ft2 = new RegExp("\\p{M}+", "gu");
647
- var Ft2 = { limit: 1 / 0, ellipsis: "" };
648
- var Le = /* @__PURE__ */ __name((e, r = {}, s = {}) => {
649
- const i = r.limit ?? 1 / 0, n = r.ellipsis ?? "", o = r?.ellipsisWidth ?? (n ? Le(n, Ft2, s).width : 0), u = s.ansiWidth ?? 0, l = s.controlWidth ?? 0, a = s.tabWidth ?? 8, d = s.ambiguousWidth ?? 1, g = s.emojiWidth ?? 2, E = s.fullWidthWidth ?? 2, p = s.regularWidth ?? 1, y2 = s.wideWidth ?? 2;
650
- let $ = 0, c = 0, m = e.length, f = 0, F = false, v = m, S2 = Math.max(0, i - o), B = 0, b = 0, A = 0, C = 0;
651
- e: for (; ; ) {
652
- if (b > B || c >= m && c > $) {
653
- const _3 = e.slice(B, b) || e.slice($, c);
654
- f = 0;
655
- for (const D2 of _3.replaceAll(ft2, "")) {
656
- const T2 = D2.codePointAt(0) || 0;
657
- if (pt2(T2) ? C = E : gt2(T2) ? C = y2 : d !== p && mt2(T2) ? C = d : C = p, A + C > S2 && (v = Math.min(v, Math.max(B, $) + f)), A + C > i) {
658
- F = true;
659
- break e;
637
+ }, "vt");
638
+ var pe = /* @__PURE__ */ __name((t) => t === 161 || t === 164 || t === 167 || t === 168 || t === 170 || t === 173 || t === 174 || t >= 176 && t <= 180 || t >= 182 && t <= 186 || t >= 188 && t <= 191 || t === 198 || t === 208 || t === 215 || t === 216 || t >= 222 && t <= 225 || t === 230 || t >= 232 && t <= 234 || t === 236 || t === 237 || t === 240 || t === 242 || t === 243 || t >= 247 && t <= 250 || t === 252 || t === 254 || t === 257 || t === 273 || t === 275 || t === 283 || t === 294 || t === 295 || t === 299 || t >= 305 && t <= 307 || t === 312 || t >= 319 && t <= 322 || t === 324 || t >= 328 && t <= 331 || t === 333 || t === 338 || t === 339 || t === 358 || t === 359 || t === 363 || t === 462 || t === 464 || t === 466 || t === 468 || t === 470 || t === 472 || t === 474 || t === 476 || t === 593 || t === 609 || t === 708 || t === 711 || t >= 713 && t <= 715 || t === 717 || t === 720 || t >= 728 && t <= 731 || t === 733 || t === 735 || t >= 768 && t <= 879 || t >= 913 && t <= 929 || t >= 931 && t <= 937 || t >= 945 && t <= 961 || t >= 963 && t <= 969 || t === 1025 || t >= 1040 && t <= 1103 || t === 1105 || t === 8208 || t >= 8211 && t <= 8214 || t === 8216 || t === 8217 || t === 8220 || t === 8221 || t >= 8224 && t <= 8226 || t >= 8228 && t <= 8231 || t === 8240 || t === 8242 || t === 8243 || t === 8245 || t === 8251 || t === 8254 || t === 8308 || t === 8319 || t >= 8321 && t <= 8324 || t === 8364 || t === 8451 || t === 8453 || t === 8457 || t === 8467 || t === 8470 || t === 8481 || t === 8482 || t === 8486 || t === 8491 || t === 8531 || t === 8532 || t >= 8539 && t <= 8542 || t >= 8544 && t <= 8555 || t >= 8560 && t <= 8569 || t === 8585 || t >= 8592 && t <= 8601 || t === 8632 || t === 8633 || t === 8658 || t === 8660 || t === 8679 || t === 8704 || t === 8706 || t === 8707 || t === 8711 || t === 8712 || t === 8715 || t === 8719 || t === 8721 || t === 8725 || t === 8730 || t >= 8733 && t <= 8736 || t === 8739 || t === 8741 || t >= 8743 && t <= 8748 || t === 8750 || t >= 8756 && t <= 8759 || t === 8764 || t === 8765 || t === 8776 || t === 8780 || t === 8786 || t === 8800 || t === 8801 || t >= 8804 && t <= 8807 || t === 8810 || t === 8811 || t === 8814 || t === 8815 || t === 8834 || t === 8835 || t === 8838 || t === 8839 || t === 8853 || t === 8857 || t === 8869 || t === 8895 || t === 8978 || t >= 9312 && t <= 9449 || t >= 9451 && t <= 9547 || t >= 9552 && t <= 9587 || t >= 9600 && t <= 9615 || t >= 9618 && t <= 9621 || t === 9632 || t === 9633 || t >= 9635 && t <= 9641 || t === 9650 || t === 9651 || t === 9654 || t === 9655 || t === 9660 || t === 9661 || t === 9664 || t === 9665 || t >= 9670 && t <= 9672 || t === 9675 || t >= 9678 && t <= 9681 || t >= 9698 && t <= 9701 || t === 9711 || t === 9733 || t === 9734 || t === 9737 || t === 9742 || t === 9743 || t === 9756 || t === 9758 || t === 9792 || t === 9794 || t === 9824 || t === 9825 || t >= 9827 && t <= 9829 || t >= 9831 && t <= 9834 || t === 9836 || t === 9837 || t === 9839 || t === 9886 || t === 9887 || t === 9919 || t >= 9926 && t <= 9933 || t >= 9935 && t <= 9939 || t >= 9941 && t <= 9953 || t === 9955 || t === 9960 || t === 9961 || t >= 9963 && t <= 9969 || t === 9972 || t >= 9974 && t <= 9977 || t === 9979 || t === 9980 || t === 9982 || t === 9983 || t === 10045 || t >= 10102 && t <= 10111 || t >= 11094 && t <= 11097 || t >= 12872 && t <= 12879 || t >= 57344 && t <= 63743 || t >= 65024 && t <= 65039 || t === 65533 || t >= 127232 && t <= 127242 || t >= 127248 && t <= 127277 || t >= 127280 && t <= 127337 || t >= 127344 && t <= 127373 || t === 127375 || t === 127376 || t >= 127387 && t <= 127404 || t >= 917760 && t <= 917999 || t >= 983040 && t <= 1048573 || t >= 1048576 && t <= 1114109, "pe");
639
+ var ge = /* @__PURE__ */ __name((t) => t === 12288 || t >= 65281 && t <= 65376 || t >= 65504 && t <= 65510, "ge");
640
+ var fe = /* @__PURE__ */ __name((t) => t >= 4352 && t <= 4447 || t === 8986 || t === 8987 || t === 9001 || t === 9002 || t >= 9193 && t <= 9196 || t === 9200 || t === 9203 || t === 9725 || t === 9726 || t === 9748 || t === 9749 || t >= 9800 && t <= 9811 || t === 9855 || t === 9875 || t === 9889 || t === 9898 || t === 9899 || t === 9917 || t === 9918 || t === 9924 || t === 9925 || t === 9934 || t === 9940 || t === 9962 || t === 9970 || t === 9971 || t === 9973 || t === 9978 || t === 9981 || t === 9989 || t === 9994 || t === 9995 || t === 10024 || t === 10060 || t === 10062 || t >= 10067 && t <= 10069 || t === 10071 || t >= 10133 && t <= 10135 || t === 10160 || t === 10175 || t === 11035 || t === 11036 || t === 11088 || t === 11093 || t >= 11904 && t <= 11929 || t >= 11931 && t <= 12019 || t >= 12032 && t <= 12245 || t >= 12272 && t <= 12287 || t >= 12289 && t <= 12350 || t >= 12353 && t <= 12438 || t >= 12441 && t <= 12543 || t >= 12549 && t <= 12591 || t >= 12593 && t <= 12686 || t >= 12688 && t <= 12771 || t >= 12783 && t <= 12830 || t >= 12832 && t <= 12871 || t >= 12880 && t <= 19903 || t >= 19968 && t <= 42124 || t >= 42128 && t <= 42182 || t >= 43360 && t <= 43388 || t >= 44032 && t <= 55203 || t >= 63744 && t <= 64255 || t >= 65040 && t <= 65049 || t >= 65072 && t <= 65106 || t >= 65108 && t <= 65126 || t >= 65128 && t <= 65131 || t >= 94176 && t <= 94180 || t === 94192 || t === 94193 || t >= 94208 && t <= 100343 || t >= 100352 && t <= 101589 || t >= 101632 && t <= 101640 || t >= 110576 && t <= 110579 || t >= 110581 && t <= 110587 || t === 110589 || t === 110590 || t >= 110592 && t <= 110882 || t === 110898 || t >= 110928 && t <= 110930 || t === 110933 || t >= 110948 && t <= 110951 || t >= 110960 && t <= 111355 || t === 126980 || t === 127183 || t === 127374 || t >= 127377 && t <= 127386 || t >= 127488 && t <= 127490 || t >= 127504 && t <= 127547 || t >= 127552 && t <= 127560 || t === 127568 || t === 127569 || t >= 127584 && t <= 127589 || t >= 127744 && t <= 127776 || t >= 127789 && t <= 127797 || t >= 127799 && t <= 127868 || t >= 127870 && t <= 127891 || t >= 127904 && t <= 127946 || t >= 127951 && t <= 127955 || t >= 127968 && t <= 127984 || t === 127988 || t >= 127992 && t <= 128062 || t === 128064 || t >= 128066 && t <= 128252 || t >= 128255 && t <= 128317 || t >= 128331 && t <= 128334 || t >= 128336 && t <= 128359 || t === 128378 || t === 128405 || t === 128406 || t === 128420 || t >= 128507 && t <= 128591 || t >= 128640 && t <= 128709 || t === 128716 || t >= 128720 && t <= 128722 || t >= 128725 && t <= 128727 || t >= 128732 && t <= 128735 || t === 128747 || t === 128748 || t >= 128756 && t <= 128764 || t >= 128992 && t <= 129003 || t === 129008 || t >= 129292 && t <= 129338 || t >= 129340 && t <= 129349 || t >= 129351 && t <= 129535 || t >= 129648 && t <= 129660 || t >= 129664 && t <= 129672 || t >= 129680 && t <= 129725 || t >= 129727 && t <= 129733 || t >= 129742 && t <= 129755 || t >= 129760 && t <= 129768 || t >= 129776 && t <= 129784 || t >= 131072 && t <= 196605 || t >= 196608 && t <= 262141, "fe");
641
+ var At2 = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y;
642
+ var it2 = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y;
643
+ var nt2 = /\t{1,1000}/y;
644
+ var wt = new RegExp("[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation}|\\p{Emoji}\\uFE0F\\u20E3?))*", "yu");
645
+ var at2 = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y;
646
+ var Fe = new RegExp("\\p{M}+", "gu");
647
+ var ye = { limit: 1 / 0, ellipsis: "" };
648
+ var jt = /* @__PURE__ */ __name((t, r = {}, s = {}) => {
649
+ const i = r.limit ?? 1 / 0, a = r.ellipsis ?? "", o = r?.ellipsisWidth ?? (a ? jt(a, ye, s).width : 0), u = s.ansiWidth ?? 0, l = s.controlWidth ?? 0, n = s.tabWidth ?? 8, c = s.ambiguousWidth ?? 1, g = s.emojiWidth ?? 2, F = s.fullWidthWidth ?? 2, p = s.regularWidth ?? 1, E = s.wideWidth ?? 2;
650
+ let $ = 0, m = 0, h = t.length, y2 = 0, f = false, v = h, S2 = Math.max(0, i - o), I2 = 0, B2 = 0, A = 0, w = 0;
651
+ t: for (; ; ) {
652
+ if (B2 > I2 || m >= h && m > $) {
653
+ const _3 = t.slice(I2, B2) || t.slice($, m);
654
+ y2 = 0;
655
+ for (const D of _3.replaceAll(Fe, "")) {
656
+ const T2 = D.codePointAt(0) || 0;
657
+ if (ge(T2) ? w = F : fe(T2) ? w = E : c !== p && pe(T2) ? w = c : w = p, A + w > S2 && (v = Math.min(v, Math.max(I2, $) + y2)), A + w > i) {
658
+ f = true;
659
+ break t;
660
660
  }
661
- f += D2.length, A += C;
661
+ y2 += D.length, A += w;
662
662
  }
663
- B = b = 0;
663
+ I2 = B2 = 0;
664
664
  }
665
- if (c >= m) break;
666
- if (ne.lastIndex = c, ne.test(e)) {
667
- if (f = ne.lastIndex - c, C = f * p, A + C > S2 && (v = Math.min(v, c + Math.floor((S2 - A) / p))), A + C > i) {
668
- F = true;
665
+ if (m >= h) break;
666
+ if (at2.lastIndex = m, at2.test(t)) {
667
+ if (y2 = at2.lastIndex - m, w = y2 * p, A + w > S2 && (v = Math.min(v, m + Math.floor((S2 - A) / p))), A + w > i) {
668
+ f = true;
669
669
  break;
670
670
  }
671
- A += C, B = $, b = c, c = $ = ne.lastIndex;
671
+ A += w, I2 = $, B2 = m, m = $ = at2.lastIndex;
672
672
  continue;
673
673
  }
674
- if (ve.lastIndex = c, ve.test(e)) {
675
- if (A + u > S2 && (v = Math.min(v, c)), A + u > i) {
676
- F = true;
674
+ if (At2.lastIndex = m, At2.test(t)) {
675
+ if (A + u > S2 && (v = Math.min(v, m)), A + u > i) {
676
+ f = true;
677
677
  break;
678
678
  }
679
- A += u, B = $, b = c, c = $ = ve.lastIndex;
679
+ A += u, I2 = $, B2 = m, m = $ = At2.lastIndex;
680
680
  continue;
681
681
  }
682
- if (re.lastIndex = c, re.test(e)) {
683
- if (f = re.lastIndex - c, C = f * l, A + C > S2 && (v = Math.min(v, c + Math.floor((S2 - A) / l))), A + C > i) {
684
- F = true;
682
+ if (it2.lastIndex = m, it2.test(t)) {
683
+ if (y2 = it2.lastIndex - m, w = y2 * l, A + w > S2 && (v = Math.min(v, m + Math.floor((S2 - A) / l))), A + w > i) {
684
+ f = true;
685
685
  break;
686
686
  }
687
- A += C, B = $, b = c, c = $ = re.lastIndex;
687
+ A += w, I2 = $, B2 = m, m = $ = it2.lastIndex;
688
688
  continue;
689
689
  }
690
- if (ie.lastIndex = c, ie.test(e)) {
691
- if (f = ie.lastIndex - c, C = f * a, A + C > S2 && (v = Math.min(v, c + Math.floor((S2 - A) / a))), A + C > i) {
692
- F = true;
690
+ if (nt2.lastIndex = m, nt2.test(t)) {
691
+ if (y2 = nt2.lastIndex - m, w = y2 * n, A + w > S2 && (v = Math.min(v, m + Math.floor((S2 - A) / n))), A + w > i) {
692
+ f = true;
693
693
  break;
694
694
  }
695
- A += C, B = $, b = c, c = $ = ie.lastIndex;
695
+ A += w, I2 = $, B2 = m, m = $ = nt2.lastIndex;
696
696
  continue;
697
697
  }
698
- if (Ae.lastIndex = c, Ae.test(e)) {
699
- if (A + g > S2 && (v = Math.min(v, c)), A + g > i) {
700
- F = true;
698
+ if (wt.lastIndex = m, wt.test(t)) {
699
+ if (A + g > S2 && (v = Math.min(v, m)), A + g > i) {
700
+ f = true;
701
701
  break;
702
702
  }
703
- A += g, B = $, b = c, c = $ = Ae.lastIndex;
703
+ A += g, I2 = $, B2 = m, m = $ = wt.lastIndex;
704
704
  continue;
705
705
  }
706
- c += 1;
706
+ m += 1;
707
707
  }
708
- return { width: F ? S2 : A, index: F ? v : m, truncated: F, ellipsed: F && i >= o };
709
- }, "Le");
710
- var yt2 = { limit: 1 / 0, ellipsis: "", ellipsisWidth: 0 };
711
- var M2 = /* @__PURE__ */ __name((e, r = {}) => Le(e, yt2, r).width, "M");
712
- var ae = "\x1B";
713
- var je = "\x9B";
714
- var Et2 = 39;
715
- var Ce = "\x07";
716
- var Ve = "[";
717
- var vt2 = "]";
718
- var ke = "m";
719
- var we = `${vt2}8;;`;
720
- var Ge = new RegExp(`(?:\\${Ve}(?<code>\\d+)m|\\${we}(?<uri>.*)${Ce})`, "y");
721
- var At2 = /* @__PURE__ */ __name((e) => {
722
- if (e >= 30 && e <= 37 || e >= 90 && e <= 97) return 39;
723
- if (e >= 40 && e <= 47 || e >= 100 && e <= 107) return 49;
724
- if (e === 1 || e === 2) return 22;
725
- if (e === 3) return 23;
726
- if (e === 4) return 24;
727
- if (e === 7) return 27;
728
- if (e === 8) return 28;
729
- if (e === 9) return 29;
730
- if (e === 0) return 0;
731
- }, "At");
732
- var He = /* @__PURE__ */ __name((e) => `${ae}${Ve}${e}${ke}`, "He");
733
- var Ue = /* @__PURE__ */ __name((e) => `${ae}${we}${e}${Ce}`, "Ue");
734
- var Ct2 = /* @__PURE__ */ __name((e) => e.map((r) => M2(r)), "Ct");
735
- var Se = /* @__PURE__ */ __name((e, r, s) => {
708
+ return { width: f ? S2 : A, index: f ? v : h, truncated: f, ellipsed: f && i >= o };
709
+ }, "jt");
710
+ var Ee = { limit: 1 / 0, ellipsis: "", ellipsisWidth: 0 };
711
+ var M2 = /* @__PURE__ */ __name((t, r = {}) => jt(t, Ee, r).width, "M");
712
+ var ot2 = "\x1B";
713
+ var Gt = "\x9B";
714
+ var ve = 39;
715
+ var Ct2 = "\x07";
716
+ var kt2 = "[";
717
+ var Ae = "]";
718
+ var Vt2 = "m";
719
+ var St = `${Ae}8;;`;
720
+ var Ht = new RegExp(`(?:\\${kt2}(?<code>\\d+)m|\\${St}(?<uri>.*)${Ct2})`, "y");
721
+ var we = /* @__PURE__ */ __name((t) => {
722
+ if (t >= 30 && t <= 37 || t >= 90 && t <= 97) return 39;
723
+ if (t >= 40 && t <= 47 || t >= 100 && t <= 107) return 49;
724
+ if (t === 1 || t === 2) return 22;
725
+ if (t === 3) return 23;
726
+ if (t === 4) return 24;
727
+ if (t === 7) return 27;
728
+ if (t === 8) return 28;
729
+ if (t === 9) return 29;
730
+ if (t === 0) return 0;
731
+ }, "we");
732
+ var Ut = /* @__PURE__ */ __name((t) => `${ot2}${kt2}${t}${Vt2}`, "Ut");
733
+ var Kt = /* @__PURE__ */ __name((t) => `${ot2}${St}${t}${Ct2}`, "Kt");
734
+ var Ce = /* @__PURE__ */ __name((t) => t.map((r) => M2(r)), "Ce");
735
+ var It2 = /* @__PURE__ */ __name((t, r, s) => {
736
736
  const i = r[Symbol.iterator]();
737
- let n = false, o = false, u = e.at(-1), l = u === void 0 ? 0 : M2(u), a = i.next(), d = i.next(), g = 0;
738
- for (; !a.done; ) {
739
- const E = a.value, p = M2(E);
740
- l + p <= s ? e[e.length - 1] += E : (e.push(E), l = 0), (E === ae || E === je) && (n = true, o = r.startsWith(we, g + 1)), n ? o ? E === Ce && (n = false, o = false) : E === ke && (n = false) : (l += p, l === s && !d.done && (e.push(""), l = 0)), a = d, d = i.next(), g += E.length;
737
+ let a = false, o = false, u = t.at(-1), l = u === void 0 ? 0 : M2(u), n = i.next(), c = i.next(), g = 0;
738
+ for (; !n.done; ) {
739
+ const F = n.value, p = M2(F);
740
+ l + p <= s ? t[t.length - 1] += F : (t.push(F), l = 0), (F === ot2 || F === Gt) && (a = true, o = r.startsWith(St, g + 1)), a ? o ? F === Ct2 && (a = false, o = false) : F === Vt2 && (a = false) : (l += p, l === s && !c.done && (t.push(""), l = 0)), n = c, c = i.next(), g += F.length;
741
741
  }
742
- u = e.at(-1), !l && u !== void 0 && u.length > 0 && e.length > 1 && (e[e.length - 2] += e.pop());
743
- }, "Se");
744
- var wt = /* @__PURE__ */ __name((e) => {
745
- const r = e.split(" ");
742
+ u = t.at(-1), !l && u !== void 0 && u.length > 0 && t.length > 1 && (t[t.length - 2] += t.pop());
743
+ }, "It");
744
+ var Se = /* @__PURE__ */ __name((t) => {
745
+ const r = t.split(" ");
746
746
  let s = r.length;
747
747
  for (; s > 0 && !(M2(r[s - 1]) > 0); ) s--;
748
- return s === r.length ? e : r.slice(0, s).join(" ") + r.slice(s).join("");
749
- }, "wt");
750
- var St = /* @__PURE__ */ __name((e, r, s = {}) => {
751
- if (s.trim !== false && e.trim() === "") return "";
752
- let i = "", n, o;
753
- const u = e.split(" "), l = Ct2(u);
754
- let a = [""];
755
- for (const [$, c] of u.entries()) {
756
- s.trim !== false && (a[a.length - 1] = (a.at(-1) ?? "").trimStart());
757
- let m = M2(a.at(-1) ?? "");
758
- if ($ !== 0 && (m >= r && (s.wordWrap === false || s.trim === false) && (a.push(""), m = 0), (m > 0 || s.trim === false) && (a[a.length - 1] += " ", m++)), s.hard && l[$] > r) {
759
- const f = r - m, F = 1 + Math.floor((l[$] - f - 1) / r);
760
- Math.floor((l[$] - 1) / r) < F && a.push(""), Se(a, c, r);
748
+ return s === r.length ? t : r.slice(0, s).join(" ") + r.slice(s).join("");
749
+ }, "Se");
750
+ var Ie = /* @__PURE__ */ __name((t, r, s = {}) => {
751
+ if (s.trim !== false && t.trim() === "") return "";
752
+ let i = "", a, o;
753
+ const u = t.split(" "), l = Ce(u);
754
+ let n = [""];
755
+ for (const [$, m] of u.entries()) {
756
+ s.trim !== false && (n[n.length - 1] = (n.at(-1) ?? "").trimStart());
757
+ let h = M2(n.at(-1) ?? "");
758
+ if ($ !== 0 && (h >= r && (s.wordWrap === false || s.trim === false) && (n.push(""), h = 0), (h > 0 || s.trim === false) && (n[n.length - 1] += " ", h++)), s.hard && l[$] > r) {
759
+ const y2 = r - h, f = 1 + Math.floor((l[$] - y2 - 1) / r);
760
+ Math.floor((l[$] - 1) / r) < f && n.push(""), It2(n, m, r);
761
761
  continue;
762
762
  }
763
- if (m + l[$] > r && m > 0 && l[$] > 0) {
764
- if (s.wordWrap === false && m < r) {
765
- Se(a, c, r);
763
+ if (h + l[$] > r && h > 0 && l[$] > 0) {
764
+ if (s.wordWrap === false && h < r) {
765
+ It2(n, m, r);
766
766
  continue;
767
767
  }
768
- a.push("");
768
+ n.push("");
769
769
  }
770
- if (m + l[$] > r && s.wordWrap === false) {
771
- Se(a, c, r);
770
+ if (h + l[$] > r && s.wordWrap === false) {
771
+ It2(n, m, r);
772
772
  continue;
773
773
  }
774
- a[a.length - 1] += c;
774
+ n[n.length - 1] += m;
775
775
  }
776
- s.trim !== false && (a = a.map(($) => wt($)));
777
- const d = a.join(`
778
- `), g = d[Symbol.iterator]();
779
- let E = g.next(), p = g.next(), y2 = 0;
780
- for (; !E.done; ) {
781
- const $ = E.value, c = p.value;
782
- if (i += $, $ === ae || $ === je) {
783
- Ge.lastIndex = y2 + 1;
784
- const F = Ge.exec(d)?.groups;
785
- if (F?.code !== void 0) {
786
- const v = Number.parseFloat(F.code);
787
- n = v === Et2 ? void 0 : v;
788
- } else F?.uri !== void 0 && (o = F.uri.length === 0 ? void 0 : F.uri);
776
+ s.trim !== false && (n = n.map(($) => Se($)));
777
+ const c = n.join(`
778
+ `), g = c[Symbol.iterator]();
779
+ let F = g.next(), p = g.next(), E = 0;
780
+ for (; !F.done; ) {
781
+ const $ = F.value, m = p.value;
782
+ if (i += $, $ === ot2 || $ === Gt) {
783
+ Ht.lastIndex = E + 1;
784
+ const f = Ht.exec(c)?.groups;
785
+ if (f?.code !== void 0) {
786
+ const v = Number.parseFloat(f.code);
787
+ a = v === ve ? void 0 : v;
788
+ } else f?.uri !== void 0 && (o = f.uri.length === 0 ? void 0 : f.uri);
789
789
  }
790
- const m = n ? At2(n) : void 0;
791
- c === `
792
- ` ? (o && (i += Ue("")), n && m && (i += He(m))) : $ === `
793
- ` && (n && m && (i += He(n)), o && (i += Ue(o))), y2 += $.length, E = p, p = g.next();
790
+ const h = a ? we(a) : void 0;
791
+ m === `
792
+ ` ? (o && (i += Kt("")), a && h && (i += Ut(h))) : $ === `
793
+ ` && (a && h && (i += Ut(a)), o && (i += Kt(o))), E += $.length, F = p, p = g.next();
794
794
  }
795
795
  return i;
796
- }, "St");
797
- function q2(e, r, s) {
798
- return String(e).normalize().replaceAll(`\r
796
+ }, "Ie");
797
+ function J2(t, r, s) {
798
+ return String(t).normalize().replaceAll(`\r
799
799
  `, `
800
800
  `).split(`
801
- `).map((i) => St(i, r, s)).join(`
801
+ `).map((i) => Ie(i, r, s)).join(`
802
802
  `);
803
803
  }
804
- __name(q2, "q");
805
- var It2 = /* @__PURE__ */ __name((e, r, s, i, n) => {
804
+ __name(J2, "J");
805
+ var be = /* @__PURE__ */ __name((t, r, s, i, a) => {
806
806
  let o = r, u = 0;
807
807
  for (let l = s; l < i; l++) {
808
- const a = e[l];
809
- if (o = o - a.length, u++, o <= n) break;
808
+ const n = t[l];
809
+ if (o = o - n.length, u++, o <= a) break;
810
810
  }
811
811
  return { lineCount: o, removals: u };
812
- }, "It");
813
- var J2 = /* @__PURE__ */ __name((e) => {
814
- const { cursor: r, options: s, style: i } = e, n = e.output ?? process.stdout, o = rt(n), u = e.columnPadding ?? 0, l = e.rowPadding ?? 4, a = o - u, d = nt(n), g = import_picocolors.default.dim("..."), E = e.maxItems ?? Number.POSITIVE_INFINITY, p = Math.max(d - l, 0), y2 = Math.max(Math.min(E, p), 5);
812
+ }, "be");
813
+ var X2 = /* @__PURE__ */ __name((t) => {
814
+ const { cursor: r, options: s, style: i } = t, a = t.output ?? process.stdout, o = rt(a), u = t.columnPadding ?? 0, l = t.rowPadding ?? 4, n = o - u, c = nt(a), g = import_picocolors.default.dim("..."), F = t.maxItems ?? Number.POSITIVE_INFINITY, p = Math.max(c - l, 0), E = Math.max(Math.min(F, p), 5);
815
815
  let $ = 0;
816
- r >= y2 - 3 && ($ = Math.max(Math.min(r - y2 + 3, s.length - y2), 0));
817
- let c = y2 < s.length && $ > 0, m = y2 < s.length && $ + y2 < s.length;
818
- const f = Math.min($ + y2, s.length), F = [];
816
+ r >= E - 3 && ($ = Math.max(Math.min(r - E + 3, s.length - E), 0));
817
+ let m = E < s.length && $ > 0, h = E < s.length && $ + E < s.length;
818
+ const y2 = Math.min($ + E, s.length), f = [];
819
819
  let v = 0;
820
- c && v++, m && v++;
821
- const S2 = $ + (c ? 1 : 0), B = f - (m ? 1 : 0);
822
- for (let A = S2; A < B; A++) {
823
- const C = q2(i(s[A], A === r), a, { hard: true, trim: false }).split(`
820
+ m && v++, h && v++;
821
+ const S2 = $ + (m ? 1 : 0), I2 = y2 - (h ? 1 : 0);
822
+ for (let A = S2; A < I2; A++) {
823
+ const w = J2(i(s[A], A === r), n, { hard: true, trim: false }).split(`
824
824
  `);
825
- F.push(C), v += C.length;
825
+ f.push(w), v += w.length;
826
826
  }
827
827
  if (v > p) {
828
- let A = 0, C = 0, _3 = v;
829
- const D2 = r - S2, T2 = /* @__PURE__ */ __name((W2, I2) => It2(F, _3, W2, I2, p), "T");
830
- c ? ({ lineCount: _3, removals: A } = T2(0, D2), _3 > p && ({ lineCount: _3, removals: C } = T2(D2 + 1, F.length))) : ({ lineCount: _3, removals: C } = T2(D2 + 1, F.length), _3 > p && ({ lineCount: _3, removals: A } = T2(0, D2))), A > 0 && (c = true, F.splice(0, A)), C > 0 && (m = true, F.splice(F.length - C, C));
828
+ let A = 0, w = 0, _3 = v;
829
+ const D = r - S2, T2 = /* @__PURE__ */ __name((Y, L2) => be(f, _3, Y, L2, p), "T");
830
+ m ? ({ lineCount: _3, removals: A } = T2(0, D), _3 > p && ({ lineCount: _3, removals: w } = T2(D + 1, f.length))) : ({ lineCount: _3, removals: w } = T2(D + 1, f.length), _3 > p && ({ lineCount: _3, removals: A } = T2(0, D))), A > 0 && (m = true, f.splice(0, A)), w > 0 && (h = true, f.splice(f.length - w, w));
831
831
  }
832
- const b = [];
833
- c && b.push(g);
834
- for (const A of F) for (const C of A) b.push(C);
835
- return m && b.push(g), b;
836
- }, "J");
832
+ const B2 = [];
833
+ m && B2.push(g);
834
+ for (const A of f) for (const w of A) B2.push(w);
835
+ return h && B2.push(g), B2;
836
+ }, "X");
837
837
  import_picocolors.default.magenta;
838
- ({ light: w("\u2500", "-"), heavy: w("\u2501", "="), block: w("\u2588", "#") });
839
- var oe = /* @__PURE__ */ __name((e, r) => e.includes(`
840
- `) ? e.split(`
838
+ ({ light: C("\u2500", "-"), heavy: C("\u2501", "="), block: C("\u2588", "#") });
839
+ var lt2 = /* @__PURE__ */ __name((t, r) => t.includes(`
840
+ `) ? t.split(`
841
841
  `).map((s) => r(s)).join(`
842
- `) : r(e), "oe");
843
- var qt = /* @__PURE__ */ __name((e) => {
842
+ `) : r(t), "lt");
843
+ var Je = /* @__PURE__ */ __name((t) => {
844
844
  const r = /* @__PURE__ */ __name((s, i) => {
845
- const n = s.label ?? String(s.value);
845
+ const a = s.label ?? String(s.value);
846
846
  switch (i) {
847
847
  case "disabled":
848
- return `${import_picocolors.default.gray(K2)} ${oe(n, import_picocolors.default.gray)}${s.hint ? ` ${import_picocolors.default.dim(`(${s.hint ?? "disabled"})`)}` : ""}`;
848
+ return `${import_picocolors.default.gray(H2)} ${lt2(a, import_picocolors.default.gray)}${s.hint ? ` ${import_picocolors.default.dim(`(${s.hint ?? "disabled"})`)}` : ""}`;
849
849
  case "selected":
850
- return `${oe(n, import_picocolors.default.dim)}`;
850
+ return `${lt2(a, import_picocolors.default.dim)}`;
851
851
  case "active":
852
- return `${import_picocolors.default.green(Y)} ${n}${s.hint ? ` ${import_picocolors.default.dim(`(${s.hint})`)}` : ""}`;
852
+ return `${import_picocolors.default.green(Q2)} ${a}${s.hint ? ` ${import_picocolors.default.dim(`(${s.hint})`)}` : ""}`;
853
853
  case "cancelled":
854
- return `${oe(n, (o) => import_picocolors.default.strikethrough(import_picocolors.default.dim(o)))}`;
854
+ return `${lt2(a, (o) => import_picocolors.default.strikethrough(import_picocolors.default.dim(o)))}`;
855
855
  default:
856
- return `${import_picocolors.default.dim(K2)} ${oe(n, import_picocolors.default.dim)}`;
856
+ return `${import_picocolors.default.dim(H2)} ${lt2(a, import_picocolors.default.dim)}`;
857
857
  }
858
858
  }, "r");
859
- return new Wt({ options: e.options, signal: e.signal, input: e.input, output: e.output, initialValue: e.initialValue, render() {
860
- const s = `${N2(this.state)} `, i = `${Ee(this.state)} `, n = Bt(e.output, e.message, i, s), o = `${import_picocolors.default.gray(h)}
861
- ${n}
859
+ return new Wt({ options: t.options, signal: t.signal, input: t.input, output: t.output, initialValue: t.initialValue, render() {
860
+ const s = t.withGuide ?? _.withGuide, i = `${W2(this.state)} `, a = `${vt2(this.state)} `, o = xt(t.output, t.message, a, i), u = `${s ? `${import_picocolors.default.gray(d)}
861
+ ` : ""}${o}
862
862
  `;
863
863
  switch (this.state) {
864
864
  case "submit": {
865
- const u = `${import_picocolors.default.gray(h)} `, l = Bt(e.output, r(this.options[this.cursor], "selected"), u);
866
- return `${o}${l}`;
865
+ const l = s ? `${import_picocolors.default.gray(d)} ` : "", n = xt(t.output, r(this.options[this.cursor], "selected"), l);
866
+ return `${u}${n}`;
867
867
  }
868
868
  case "cancel": {
869
- const u = `${import_picocolors.default.gray(h)} `, l = Bt(e.output, r(this.options[this.cursor], "cancelled"), u);
870
- return `${o}${l}
871
- ${import_picocolors.default.gray(h)}`;
869
+ const l = s ? `${import_picocolors.default.gray(d)} ` : "", n = xt(t.output, r(this.options[this.cursor], "cancelled"), l);
870
+ return `${u}${n}${s ? `
871
+ ${import_picocolors.default.gray(d)}` : ""}`;
872
872
  }
873
873
  default: {
874
- const u = `${import_picocolors.default.cyan(h)} `, l = o.split(`
875
- `).length;
876
- return `${o}${u}${J2({ output: e.output, cursor: this.cursor, options: this.options, maxItems: e.maxItems, columnPadding: u.length, rowPadding: l + 2, style: /* @__PURE__ */ __name((a, d) => r(a, a.disabled ? "disabled" : d ? "active" : "inactive"), "style") }).join(`
877
- ${u}`)}
878
- ${import_picocolors.default.cyan(x2)}
874
+ const l = s ? `${import_picocolors.default.cyan(d)} ` : "", n = s ? import_picocolors.default.cyan(x2) : "", c = u.split(`
875
+ `).length, g = s ? 2 : 1;
876
+ return `${u}${l}${X2({ output: t.output, cursor: this.cursor, options: this.options, maxItems: t.maxItems, columnPadding: l.length, rowPadding: c + g, style: /* @__PURE__ */ __name((F, p) => r(F, F.disabled ? "disabled" : p ? "active" : "inactive"), "style") }).join(`
877
+ ${l}`)}
878
+ ${n}
879
879
  `;
880
880
  }
881
881
  }
882
882
  } }).prompt();
883
- }, "qt");
884
- `${import_picocolors.default.gray(h)} `;
883
+ }, "Je");
884
+ `${import_picocolors.default.gray(d)} `;
885
885
  var ExecError = class extends Error {
886
886
  constructor(exitCode, signal, data = "command gave no output") {
887
887
  super(data);
@@ -957,9 +957,9 @@ async function checkIsFileGitIgnored(path3, warnIfNotGitRepo = false) {
957
957
  }
958
958
  __name(checkIsFileGitIgnored, "checkIsFileGitIgnored");
959
959
  function isUnicodeSupported() {
960
- const { env } = P2;
960
+ const { env } = N2;
961
961
  const { TERM, TERM_PROGRAM } = env;
962
- if (P2.platform !== "win32") {
962
+ if (N2.platform !== "win32") {
963
963
  return TERM !== "linux";
964
964
  }
965
965
  return Boolean(env.WT_SESSION) || Boolean(env.TERMINUS_SUBLIME) || env.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
@@ -1122,7 +1122,7 @@ var multiselect = /* @__PURE__ */ __name((opts) => {
1122
1122
  }
1123
1123
  return `${ansis_default.dim(S_CHECKBOX_INACTIVE)} ${ansis_default.dim(label)}`;
1124
1124
  }, "opt");
1125
- return new Mt({
1125
+ return new Lt({
1126
1126
  options: opts.options,
1127
1127
  input: opts.input,
1128
1128
  output: opts.output,
@@ -1392,7 +1392,7 @@ var commandFn = /* @__PURE__ */ __name(async (ctx) => {
1392
1392
  exampleFileToConvert = parsedEnvFiles[allExampleFileNames[0]];
1393
1393
  } else if (allExampleFileNames.length > 1) {
1394
1394
  console.log("");
1395
- const selectedExample = await qt({
1395
+ const selectedExample = await Je({
1396
1396
  message: `We detected more than one example .env file. Which one should we use to create your new ${fmt.fileName(".env.schema")}?`,
1397
1397
  options: allExampleFileNames.map((fileName) => ({
1398
1398
  label: fileName,
@@ -1492,7 +1492,7 @@ var commandFn = /* @__PURE__ */ __name(async (ctx) => {
1492
1492
  ]);
1493
1493
  for (const [sourcePath, itemKeys] of Object.entries(redundantInfo)) {
1494
1494
  console.log(fmt.filePath(sourcePath));
1495
- console.log(" ", itemKeys.map((k3) => ansis_default.italic(k3)).join(", "));
1495
+ console.log(" ", itemKeys.map((k2) => ansis_default.italic(k2)).join(", "));
1496
1496
  }
1497
1497
  const confirmDeleteRedundant = await prompts_default.confirm({
1498
1498
  message: "Should we delete these redundant values from your other .env files?"
@@ -1528,5 +1528,5 @@ var commandFn = /* @__PURE__ */ __name(async (ctx) => {
1528
1528
  }, "commandFn");
1529
1529
 
1530
1530
  export { commandFn, commandSpec };
1531
- //# sourceMappingURL=chunk-N2HZMIGS.js.map
1532
- //# sourceMappingURL=chunk-N2HZMIGS.js.map
1531
+ //# sourceMappingURL=chunk-YIXN7TC7.js.map
1532
+ //# sourceMappingURL=chunk-YIXN7TC7.js.map