create-vue 3.19.0 → 3.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bundle.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- /*! create-vue v3.19.0 | MIT */
2
+ /*! create-vue v3.21.0 | MIT */
3
3
  import { createRequire } from "node:module";
4
4
  import * as fs from "node:fs";
5
5
  import * as path$1 from "node:path";
@@ -11,7 +11,7 @@ import O from "node:readline";
11
11
  import { Writable } from "node:stream";
12
12
  import * as path from "path";
13
13
 
14
- //#region rolldown:runtime
14
+ //#region \0rolldown/runtime.js
15
15
  var __create = Object.create;
16
16
  var __defProp = Object.defineProperty;
17
17
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -25,7 +25,7 @@ var __copyProps = (to, from, except, desc) => {
25
25
  key = keys[i];
26
26
  if (!__hasOwnProp.call(to, key) && key !== except) {
27
27
  __defProp(to, key, {
28
- get: ((k$2) => from[k$2]).bind(null, key),
28
+ get: ((k) => from[k]).bind(null, key),
29
29
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
30
30
  });
31
31
  }
@@ -46,16 +46,16 @@ var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
46
46
  const CSI = `${ESC}[`;
47
47
  const beep = "\x07";
48
48
  const cursor = {
49
- to(x$2, y$2) {
50
- if (!y$2) return `${CSI}${x$2 + 1}G`;
51
- return `${CSI}${y$2 + 1};${x$2 + 1}H`;
49
+ to(x, y) {
50
+ if (!y) return `${CSI}${x + 1}G`;
51
+ return `${CSI}${y + 1};${x + 1}H`;
52
52
  },
53
- move(x$2, y$2) {
53
+ move(x, y) {
54
54
  let ret = "";
55
- if (x$2 < 0) ret += `${CSI}${-x$2}D`;
56
- else if (x$2 > 0) ret += `${CSI}${x$2}C`;
57
- if (y$2 < 0) ret += `${CSI}${-y$2}A`;
58
- else if (y$2 > 0) ret += `${CSI}${y$2}B`;
55
+ if (x < 0) ret += `${CSI}${-x}D`;
56
+ else if (x > 0) ret += `${CSI}${x}C`;
57
+ if (y < 0) ret += `${CSI}${-y}A`;
58
+ else if (y > 0) ret += `${CSI}${y}B`;
59
59
  return ret;
60
60
  },
61
61
  up: (count = 1) => `${CSI}${count}A`,
@@ -169,43 +169,43 @@ var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
169
169
  //#region node_modules/.pnpm/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs
170
170
  var import_src = require_src();
171
171
  var import_picocolors = /* @__PURE__ */ __toESM(require_picocolors(), 1);
172
- function DD({ onlyFirst: e$1 = !1 } = {}) {
172
+ function DD({ onlyFirst: e = !1 } = {}) {
173
173
  const t = ["[\\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("|");
174
- return new RegExp(t, e$1 ? void 0 : "g");
174
+ return new RegExp(t, e ? void 0 : "g");
175
175
  }
176
176
  const uD = DD();
177
- function P$1(e$1) {
178
- if (typeof e$1 != "string") throw new TypeError(`Expected a \`string\`, got \`${typeof e$1}\``);
179
- return e$1.replace(uD, "");
177
+ function P$1(e) {
178
+ if (typeof e != "string") throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);
179
+ return e.replace(uD, "");
180
180
  }
181
- function L$1(e$1) {
182
- return e$1 && e$1.__esModule && Object.prototype.hasOwnProperty.call(e$1, "default") ? e$1.default : e$1;
181
+ function L$1(e) {
182
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
183
183
  }
184
184
  var W$1 = { exports: {} };
185
- (function(e$1) {
186
- var u$1 = {};
187
- e$1.exports = u$1, u$1.eastAsianWidth = function(F$1) {
188
- var s = F$1.charCodeAt(0), i = F$1.length == 2 ? F$1.charCodeAt(1) : 0, D$1 = s;
189
- return 55296 <= s && s <= 56319 && 56320 <= i && i <= 57343 && (s &= 1023, i &= 1023, D$1 = s << 10 | i, D$1 += 65536), D$1 == 12288 || 65281 <= D$1 && D$1 <= 65376 || 65504 <= D$1 && D$1 <= 65510 ? "F" : D$1 == 8361 || 65377 <= D$1 && D$1 <= 65470 || 65474 <= D$1 && D$1 <= 65479 || 65482 <= D$1 && D$1 <= 65487 || 65490 <= D$1 && D$1 <= 65495 || 65498 <= D$1 && D$1 <= 65500 || 65512 <= D$1 && D$1 <= 65518 ? "H" : 4352 <= D$1 && D$1 <= 4447 || 4515 <= D$1 && D$1 <= 4519 || 4602 <= D$1 && D$1 <= 4607 || 9001 <= D$1 && D$1 <= 9002 || 11904 <= D$1 && D$1 <= 11929 || 11931 <= D$1 && D$1 <= 12019 || 12032 <= D$1 && D$1 <= 12245 || 12272 <= D$1 && D$1 <= 12283 || 12289 <= D$1 && D$1 <= 12350 || 12353 <= D$1 && D$1 <= 12438 || 12441 <= D$1 && D$1 <= 12543 || 12549 <= D$1 && D$1 <= 12589 || 12593 <= D$1 && D$1 <= 12686 || 12688 <= D$1 && D$1 <= 12730 || 12736 <= D$1 && D$1 <= 12771 || 12784 <= D$1 && D$1 <= 12830 || 12832 <= D$1 && D$1 <= 12871 || 12880 <= D$1 && D$1 <= 13054 || 13056 <= D$1 && D$1 <= 19903 || 19968 <= D$1 && D$1 <= 42124 || 42128 <= D$1 && D$1 <= 42182 || 43360 <= D$1 && D$1 <= 43388 || 44032 <= D$1 && D$1 <= 55203 || 55216 <= D$1 && D$1 <= 55238 || 55243 <= D$1 && D$1 <= 55291 || 63744 <= D$1 && D$1 <= 64255 || 65040 <= D$1 && D$1 <= 65049 || 65072 <= D$1 && D$1 <= 65106 || 65108 <= D$1 && D$1 <= 65126 || 65128 <= D$1 && D$1 <= 65131 || 110592 <= D$1 && D$1 <= 110593 || 127488 <= D$1 && D$1 <= 127490 || 127504 <= D$1 && D$1 <= 127546 || 127552 <= D$1 && D$1 <= 127560 || 127568 <= D$1 && D$1 <= 127569 || 131072 <= D$1 && D$1 <= 194367 || 177984 <= D$1 && D$1 <= 196605 || 196608 <= D$1 && D$1 <= 262141 ? "W" : 32 <= D$1 && D$1 <= 126 || 162 <= D$1 && D$1 <= 163 || 165 <= D$1 && D$1 <= 166 || D$1 == 172 || D$1 == 175 || 10214 <= D$1 && D$1 <= 10221 || 10629 <= D$1 && D$1 <= 10630 ? "Na" : D$1 == 161 || D$1 == 164 || 167 <= D$1 && D$1 <= 168 || D$1 == 170 || 173 <= D$1 && D$1 <= 174 || 176 <= D$1 && D$1 <= 180 || 182 <= D$1 && D$1 <= 186 || 188 <= D$1 && D$1 <= 191 || D$1 == 198 || D$1 == 208 || 215 <= D$1 && D$1 <= 216 || 222 <= D$1 && D$1 <= 225 || D$1 == 230 || 232 <= D$1 && D$1 <= 234 || 236 <= D$1 && D$1 <= 237 || D$1 == 240 || 242 <= D$1 && D$1 <= 243 || 247 <= D$1 && D$1 <= 250 || D$1 == 252 || D$1 == 254 || D$1 == 257 || D$1 == 273 || D$1 == 275 || D$1 == 283 || 294 <= D$1 && D$1 <= 295 || D$1 == 299 || 305 <= D$1 && D$1 <= 307 || D$1 == 312 || 319 <= D$1 && D$1 <= 322 || D$1 == 324 || 328 <= D$1 && D$1 <= 331 || D$1 == 333 || 338 <= D$1 && D$1 <= 339 || 358 <= D$1 && D$1 <= 359 || D$1 == 363 || D$1 == 462 || D$1 == 464 || D$1 == 466 || D$1 == 468 || D$1 == 470 || D$1 == 472 || D$1 == 474 || D$1 == 476 || D$1 == 593 || D$1 == 609 || D$1 == 708 || D$1 == 711 || 713 <= D$1 && D$1 <= 715 || D$1 == 717 || D$1 == 720 || 728 <= D$1 && D$1 <= 731 || D$1 == 733 || D$1 == 735 || 768 <= D$1 && D$1 <= 879 || 913 <= D$1 && D$1 <= 929 || 931 <= D$1 && D$1 <= 937 || 945 <= D$1 && D$1 <= 961 || 963 <= D$1 && D$1 <= 969 || D$1 == 1025 || 1040 <= D$1 && D$1 <= 1103 || D$1 == 1105 || D$1 == 8208 || 8211 <= D$1 && D$1 <= 8214 || 8216 <= D$1 && D$1 <= 8217 || 8220 <= D$1 && D$1 <= 8221 || 8224 <= D$1 && D$1 <= 8226 || 8228 <= D$1 && D$1 <= 8231 || D$1 == 8240 || 8242 <= D$1 && D$1 <= 8243 || D$1 == 8245 || D$1 == 8251 || D$1 == 8254 || D$1 == 8308 || D$1 == 8319 || 8321 <= D$1 && D$1 <= 8324 || D$1 == 8364 || D$1 == 8451 || D$1 == 8453 || D$1 == 8457 || D$1 == 8467 || D$1 == 8470 || 8481 <= D$1 && D$1 <= 8482 || D$1 == 8486 || D$1 == 8491 || 8531 <= D$1 && D$1 <= 8532 || 8539 <= D$1 && D$1 <= 8542 || 8544 <= D$1 && D$1 <= 8555 || 8560 <= D$1 && D$1 <= 8569 || D$1 == 8585 || 8592 <= D$1 && D$1 <= 8601 || 8632 <= D$1 && D$1 <= 8633 || D$1 == 8658 || D$1 == 8660 || D$1 == 8679 || D$1 == 8704 || 8706 <= D$1 && D$1 <= 8707 || 8711 <= D$1 && D$1 <= 8712 || D$1 == 8715 || D$1 == 8719 || D$1 == 8721 || D$1 == 8725 || D$1 == 8730 || 8733 <= D$1 && D$1 <= 8736 || D$1 == 8739 || D$1 == 8741 || 8743 <= D$1 && D$1 <= 8748 || D$1 == 8750 || 8756 <= D$1 && D$1 <= 8759 || 8764 <= D$1 && D$1 <= 8765 || D$1 == 8776 || D$1 == 8780 || D$1 == 8786 || 8800 <= D$1 && D$1 <= 8801 || 8804 <= D$1 && D$1 <= 8807 || 8810 <= D$1 && D$1 <= 8811 || 8814 <= D$1 && D$1 <= 8815 || 8834 <= D$1 && D$1 <= 8835 || 8838 <= D$1 && D$1 <= 8839 || D$1 == 8853 || D$1 == 8857 || D$1 == 8869 || D$1 == 8895 || D$1 == 8978 || 9312 <= D$1 && D$1 <= 9449 || 9451 <= D$1 && D$1 <= 9547 || 9552 <= D$1 && D$1 <= 9587 || 9600 <= D$1 && D$1 <= 9615 || 9618 <= D$1 && D$1 <= 9621 || 9632 <= D$1 && D$1 <= 9633 || 9635 <= D$1 && D$1 <= 9641 || 9650 <= D$1 && D$1 <= 9651 || 9654 <= D$1 && D$1 <= 9655 || 9660 <= D$1 && D$1 <= 9661 || 9664 <= D$1 && D$1 <= 9665 || 9670 <= D$1 && D$1 <= 9672 || D$1 == 9675 || 9678 <= D$1 && D$1 <= 9681 || 9698 <= D$1 && D$1 <= 9701 || D$1 == 9711 || 9733 <= D$1 && D$1 <= 9734 || D$1 == 9737 || 9742 <= D$1 && D$1 <= 9743 || 9748 <= D$1 && D$1 <= 9749 || D$1 == 9756 || D$1 == 9758 || D$1 == 9792 || D$1 == 9794 || 9824 <= D$1 && D$1 <= 9825 || 9827 <= D$1 && D$1 <= 9829 || 9831 <= D$1 && D$1 <= 9834 || 9836 <= D$1 && D$1 <= 9837 || D$1 == 9839 || 9886 <= D$1 && D$1 <= 9887 || 9918 <= D$1 && D$1 <= 9919 || 9924 <= D$1 && D$1 <= 9933 || 9935 <= D$1 && D$1 <= 9953 || D$1 == 9955 || 9960 <= D$1 && D$1 <= 9983 || D$1 == 10045 || D$1 == 10071 || 10102 <= D$1 && D$1 <= 10111 || 11093 <= D$1 && D$1 <= 11097 || 12872 <= D$1 && D$1 <= 12879 || 57344 <= D$1 && D$1 <= 63743 || 65024 <= D$1 && D$1 <= 65039 || D$1 == 65533 || 127232 <= D$1 && D$1 <= 127242 || 127248 <= D$1 && D$1 <= 127277 || 127280 <= D$1 && D$1 <= 127337 || 127344 <= D$1 && D$1 <= 127386 || 917760 <= D$1 && D$1 <= 917999 || 983040 <= D$1 && D$1 <= 1048573 || 1048576 <= D$1 && D$1 <= 1114109 ? "A" : "N";
190
- }, u$1.characterLength = function(F$1) {
191
- var s = this.eastAsianWidth(F$1);
185
+ (function(e) {
186
+ var u = {};
187
+ e.exports = u, u.eastAsianWidth = function(F) {
188
+ var s = F.charCodeAt(0), i = F.length == 2 ? F.charCodeAt(1) : 0, D = s;
189
+ return 55296 <= s && s <= 56319 && 56320 <= i && i <= 57343 && (s &= 1023, i &= 1023, D = s << 10 | i, 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";
190
+ }, u.characterLength = function(F) {
191
+ var s = this.eastAsianWidth(F);
192
192
  return s == "F" || s == "W" || s == "A" ? 2 : 1;
193
193
  };
194
- function t(F$1) {
195
- return F$1.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
194
+ function t(F) {
195
+ return F.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
196
196
  }
197
- u$1.length = function(F$1) {
198
- for (var s = t(F$1), i = 0, D$1 = 0; D$1 < s.length; D$1++) i = i + this.characterLength(s[D$1]);
197
+ u.length = function(F) {
198
+ for (var s = t(F), i = 0, D = 0; D < s.length; D++) i = i + this.characterLength(s[D]);
199
199
  return i;
200
- }, u$1.slice = function(F$1, s, i) {
201
- textLen = u$1.length(F$1), s = s || 0, i = i || 1, s < 0 && (s = textLen + s), i < 0 && (i = textLen + i);
202
- for (var D$1 = "", C$1 = 0, n = t(F$1), E = 0; E < n.length; E++) {
203
- var a = n[E], o$1 = u$1.length(a);
204
- if (C$1 >= s - (o$1 == 2 ? 1 : 0)) if (C$1 + o$1 <= i) D$1 += a;
200
+ }, u.slice = function(F, s, i) {
201
+ textLen = u.length(F), s = s || 0, i = i || 1, s < 0 && (s = textLen + s), i < 0 && (i = textLen + i);
202
+ for (var D = "", C = 0, n = t(F), E = 0; E < n.length; E++) {
203
+ var a = n[E], o = u.length(a);
204
+ if (C >= s - (o == 2 ? 1 : 0)) if (C + o <= i) D += a;
205
205
  else break;
206
- C$1 += o$1;
206
+ C += o;
207
207
  }
208
- return D$1;
208
+ return D;
209
209
  };
210
210
  })(W$1);
211
211
  var tD = W$1.exports;
@@ -214,31 +214,31 @@ var FD = function() {
214
214
  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;
215
215
  };
216
216
  const sD = L$1(FD);
217
- function p(e$1, u$1 = {}) {
218
- if (typeof e$1 != "string" || e$1.length === 0 || (u$1 = {
217
+ function p(e, u = {}) {
218
+ if (typeof e != "string" || e.length === 0 || (u = {
219
219
  ambiguousIsNarrow: !0,
220
- ...u$1
221
- }, e$1 = P$1(e$1), e$1.length === 0)) return 0;
222
- e$1 = e$1.replace(sD(), " ");
223
- const t = u$1.ambiguousIsNarrow ? 1 : 2;
224
- let F$1 = 0;
225
- for (const s of e$1) {
220
+ ...u
221
+ }, e = P$1(e), e.length === 0)) return 0;
222
+ e = e.replace(sD(), " ");
223
+ const t = u.ambiguousIsNarrow ? 1 : 2;
224
+ let F = 0;
225
+ for (const s of e) {
226
226
  const i = s.codePointAt(0);
227
227
  if (i <= 31 || i >= 127 && i <= 159 || i >= 768 && i <= 879) continue;
228
228
  switch (eD.eastAsianWidth(s)) {
229
229
  case "F":
230
230
  case "W":
231
- F$1 += 2;
231
+ F += 2;
232
232
  break;
233
233
  case "A":
234
- F$1 += t;
234
+ F += t;
235
235
  break;
236
- default: F$1 += 1;
236
+ default: F += 1;
237
237
  }
238
238
  }
239
- return F$1;
239
+ return F;
240
240
  }
241
- const w = 10, N = (e$1 = 0) => (u$1) => `\x1B[${u$1 + e$1}m`, I = (e$1 = 0) => (u$1) => `\x1B[${38 + e$1};5;${u$1}m`, R = (e$1 = 0) => (u$1, t, F$1) => `\x1B[${38 + e$1};2;${u$1};${t};${F$1}m`, r = {
241
+ const w = 10, N = (e = 0) => (u) => `\x1B[${u + e}m`, I = (e = 0) => (u) => `\x1B[${38 + e};5;${u}m`, R = (e = 0) => (u, t, F) => `\x1B[${38 + e};2;${u};${t};${F}m`, r = {
242
242
  modifier: {
243
243
  reset: [0, 0],
244
244
  bold: [1, 22],
@@ -295,36 +295,36 @@ Object.keys(r.modifier);
295
295
  const iD = Object.keys(r.color), CD = Object.keys(r.bgColor);
296
296
  [...iD, ...CD];
297
297
  function rD() {
298
- const e$1 = /* @__PURE__ */ new Map();
299
- for (const [u$1, t] of Object.entries(r)) {
300
- for (const [F$1, s] of Object.entries(t)) r[F$1] = {
298
+ const e = /* @__PURE__ */ new Map();
299
+ for (const [u, t] of Object.entries(r)) {
300
+ for (const [F, s] of Object.entries(t)) r[F] = {
301
301
  open: `\x1B[${s[0]}m`,
302
302
  close: `\x1B[${s[1]}m`
303
- }, t[F$1] = r[F$1], e$1.set(s[0], s[1]);
304
- Object.defineProperty(r, u$1, {
303
+ }, t[F] = r[F], e.set(s[0], s[1]);
304
+ Object.defineProperty(r, u, {
305
305
  value: t,
306
306
  enumerable: !1
307
307
  });
308
308
  }
309
309
  return Object.defineProperty(r, "codes", {
310
- value: e$1,
310
+ value: e,
311
311
  enumerable: !1
312
312
  }), r.color.close = "\x1B[39m", r.bgColor.close = "\x1B[49m", r.color.ansi = N(), r.color.ansi256 = I(), r.color.ansi16m = R(), r.bgColor.ansi = N(w), r.bgColor.ansi256 = I(w), r.bgColor.ansi16m = R(w), Object.defineProperties(r, {
313
313
  rgbToAnsi256: {
314
- value: (u$1, t, F$1) => u$1 === t && t === F$1 ? u$1 < 8 ? 16 : u$1 > 248 ? 231 : Math.round((u$1 - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(u$1 / 255 * 5) + 6 * Math.round(t / 255 * 5) + Math.round(F$1 / 255 * 5),
314
+ value: (u, t, F) => u === t && t === F ? u < 8 ? 16 : u > 248 ? 231 : Math.round((u - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(u / 255 * 5) + 6 * Math.round(t / 255 * 5) + Math.round(F / 255 * 5),
315
315
  enumerable: !1
316
316
  },
317
317
  hexToRgb: {
318
- value: (u$1) => {
319
- const t = /[a-f\d]{6}|[a-f\d]{3}/i.exec(u$1.toString(16));
318
+ value: (u) => {
319
+ const t = /[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));
320
320
  if (!t) return [
321
321
  0,
322
322
  0,
323
323
  0
324
324
  ];
325
- let [F$1] = t;
326
- F$1.length === 3 && (F$1 = [...F$1].map((i) => i + i).join(""));
327
- const s = Number.parseInt(F$1, 16);
325
+ let [F] = t;
326
+ F.length === 3 && (F = [...F].map((i) => i + i).join(""));
327
+ const s = Number.parseInt(F, 16);
328
328
  return [
329
329
  s >> 16 & 255,
330
330
  s >> 8 & 255,
@@ -334,102 +334,102 @@ function rD() {
334
334
  enumerable: !1
335
335
  },
336
336
  hexToAnsi256: {
337
- value: (u$1) => r.rgbToAnsi256(...r.hexToRgb(u$1)),
337
+ value: (u) => r.rgbToAnsi256(...r.hexToRgb(u)),
338
338
  enumerable: !1
339
339
  },
340
340
  ansi256ToAnsi: {
341
- value: (u$1) => {
342
- if (u$1 < 8) return 30 + u$1;
343
- if (u$1 < 16) return 90 + (u$1 - 8);
344
- let t, F$1, s;
345
- if (u$1 >= 232) t = ((u$1 - 232) * 10 + 8) / 255, F$1 = t, s = t;
341
+ value: (u) => {
342
+ if (u < 8) return 30 + u;
343
+ if (u < 16) return 90 + (u - 8);
344
+ let t, F, s;
345
+ if (u >= 232) t = ((u - 232) * 10 + 8) / 255, F = t, s = t;
346
346
  else {
347
- u$1 -= 16;
348
- const C$1 = u$1 % 36;
349
- t = Math.floor(u$1 / 36) / 5, F$1 = Math.floor(C$1 / 6) / 5, s = C$1 % 6 / 5;
347
+ u -= 16;
348
+ const C = u % 36;
349
+ t = Math.floor(u / 36) / 5, F = Math.floor(C / 6) / 5, s = C % 6 / 5;
350
350
  }
351
- const i = Math.max(t, F$1, s) * 2;
351
+ const i = Math.max(t, F, s) * 2;
352
352
  if (i === 0) return 30;
353
- let D$1 = 30 + (Math.round(s) << 2 | Math.round(F$1) << 1 | Math.round(t));
354
- return i === 2 && (D$1 += 60), D$1;
353
+ let D = 30 + (Math.round(s) << 2 | Math.round(F) << 1 | Math.round(t));
354
+ return i === 2 && (D += 60), D;
355
355
  },
356
356
  enumerable: !1
357
357
  },
358
358
  rgbToAnsi: {
359
- value: (u$1, t, F$1) => r.ansi256ToAnsi(r.rgbToAnsi256(u$1, t, F$1)),
359
+ value: (u, t, F) => r.ansi256ToAnsi(r.rgbToAnsi256(u, t, F)),
360
360
  enumerable: !1
361
361
  },
362
362
  hexToAnsi: {
363
- value: (u$1) => r.ansi256ToAnsi(r.hexToAnsi256(u$1)),
363
+ value: (u) => r.ansi256ToAnsi(r.hexToAnsi256(u)),
364
364
  enumerable: !1
365
365
  }
366
366
  }), r;
367
367
  }
368
- const ED = rD(), d$1 = new Set(["\x1B", "›"]), oD = 39, y$1 = "\x07", V$1 = "[", nD = "]", G$1 = "m", _$1 = `${nD}8;;`, z = (e$1) => `${d$1.values().next().value}${V$1}${e$1}${G$1}`, K$1 = (e$1) => `${d$1.values().next().value}${_$1}${e$1}${y$1}`, aD = (e$1) => e$1.split(" ").map((u$1) => p(u$1)), k$1 = (e$1, u$1, t) => {
369
- const F$1 = [...u$1];
370
- let s = !1, i = !1, D$1 = p(P$1(e$1[e$1.length - 1]));
371
- for (const [C$1, n] of F$1.entries()) {
368
+ const ED = rD(), d$1 = new Set(["\x1B", "›"]), oD = 39, y$1 = "\x07", V$1 = "[", nD = "]", G$1 = "m", _$1 = `${nD}8;;`, z = (e) => `${d$1.values().next().value}${V$1}${e}${G$1}`, K$1 = (e) => `${d$1.values().next().value}${_$1}${e}${y$1}`, aD = (e) => e.split(" ").map((u) => p(u)), k$1 = (e, u, t) => {
369
+ const F = [...u];
370
+ let s = !1, i = !1, D = p(P$1(e[e.length - 1]));
371
+ for (const [C, n] of F.entries()) {
372
372
  const E = p(n);
373
- if (D$1 + E <= t ? e$1[e$1.length - 1] += n : (e$1.push(n), D$1 = 0), d$1.has(n) && (s = !0, i = F$1.slice(C$1 + 1).join("").startsWith(_$1)), s) {
373
+ if (D + E <= t ? e[e.length - 1] += n : (e.push(n), D = 0), d$1.has(n) && (s = !0, i = F.slice(C + 1).join("").startsWith(_$1)), s) {
374
374
  i ? n === y$1 && (s = !1, i = !1) : n === G$1 && (s = !1);
375
375
  continue;
376
376
  }
377
- D$1 += E, D$1 === t && C$1 < F$1.length - 1 && (e$1.push(""), D$1 = 0);
378
- }
379
- !D$1 && e$1[e$1.length - 1].length > 0 && e$1.length > 1 && (e$1[e$1.length - 2] += e$1.pop());
380
- }, hD = (e$1) => {
381
- const u$1 = e$1.split(" ");
382
- let t = u$1.length;
383
- for (; t > 0 && !(p(u$1[t - 1]) > 0);) t--;
384
- return t === u$1.length ? e$1 : u$1.slice(0, t).join(" ") + u$1.slice(t).join("");
385
- }, lD = (e$1, u$1, t = {}) => {
386
- if (t.trim !== !1 && e$1.trim() === "") return "";
387
- let F$1 = "", s, i;
388
- const D$1 = aD(e$1);
389
- let C$1 = [""];
390
- for (const [E, a] of e$1.split(" ").entries()) {
391
- t.trim !== !1 && (C$1[C$1.length - 1] = C$1[C$1.length - 1].trimStart());
392
- let o$1 = p(C$1[C$1.length - 1]);
393
- if (E !== 0 && (o$1 >= u$1 && (t.wordWrap === !1 || t.trim === !1) && (C$1.push(""), o$1 = 0), (o$1 > 0 || t.trim === !1) && (C$1[C$1.length - 1] += " ", o$1++)), t.hard && D$1[E] > u$1) {
394
- const c = u$1 - o$1, f = 1 + Math.floor((D$1[E] - c - 1) / u$1);
395
- Math.floor((D$1[E] - 1) / u$1) < f && C$1.push(""), k$1(C$1, a, u$1);
377
+ D += E, D === t && C < F.length - 1 && (e.push(""), D = 0);
378
+ }
379
+ !D && e[e.length - 1].length > 0 && e.length > 1 && (e[e.length - 2] += e.pop());
380
+ }, hD = (e) => {
381
+ const u = e.split(" ");
382
+ let t = u.length;
383
+ for (; t > 0 && !(p(u[t - 1]) > 0);) t--;
384
+ return t === u.length ? e : u.slice(0, t).join(" ") + u.slice(t).join("");
385
+ }, lD = (e, u, t = {}) => {
386
+ if (t.trim !== !1 && e.trim() === "") return "";
387
+ let F = "", s, i;
388
+ const D = aD(e);
389
+ let C = [""];
390
+ for (const [E, a] of e.split(" ").entries()) {
391
+ t.trim !== !1 && (C[C.length - 1] = C[C.length - 1].trimStart());
392
+ let o = p(C[C.length - 1]);
393
+ if (E !== 0 && (o >= u && (t.wordWrap === !1 || t.trim === !1) && (C.push(""), o = 0), (o > 0 || t.trim === !1) && (C[C.length - 1] += " ", o++)), t.hard && D[E] > u) {
394
+ const c = u - o, f = 1 + Math.floor((D[E] - c - 1) / u);
395
+ Math.floor((D[E] - 1) / u) < f && C.push(""), k$1(C, a, u);
396
396
  continue;
397
397
  }
398
- if (o$1 + D$1[E] > u$1 && o$1 > 0 && D$1[E] > 0) {
399
- if (t.wordWrap === !1 && o$1 < u$1) {
400
- k$1(C$1, a, u$1);
398
+ if (o + D[E] > u && o > 0 && D[E] > 0) {
399
+ if (t.wordWrap === !1 && o < u) {
400
+ k$1(C, a, u);
401
401
  continue;
402
402
  }
403
- C$1.push("");
403
+ C.push("");
404
404
  }
405
- if (o$1 + D$1[E] > u$1 && t.wordWrap === !1) {
406
- k$1(C$1, a, u$1);
405
+ if (o + D[E] > u && t.wordWrap === !1) {
406
+ k$1(C, a, u);
407
407
  continue;
408
408
  }
409
- C$1[C$1.length - 1] += a;
409
+ C[C.length - 1] += a;
410
410
  }
411
- t.trim !== !1 && (C$1 = C$1.map((E) => hD(E)));
412
- const n = [...C$1.join(`
411
+ t.trim !== !1 && (C = C.map((E) => hD(E)));
412
+ const n = [...C.join(`
413
413
  `)];
414
414
  for (const [E, a] of n.entries()) {
415
- if (F$1 += a, d$1.has(a)) {
416
- const { groups: c } = (/* @__PURE__ */ new RegExp(`(?:\\${V$1}(?<code>\\d+)m|\\${_$1}(?<uri>.*)${y$1})`)).exec(n.slice(E).join("")) || { groups: {} };
415
+ if (F += a, d$1.has(a)) {
416
+ const { groups: c } = new RegExp(`(?:\\${V$1}(?<code>\\d+)m|\\${_$1}(?<uri>.*)${y$1})`).exec(n.slice(E).join("")) || { groups: {} };
417
417
  if (c.code !== void 0) {
418
418
  const f = Number.parseFloat(c.code);
419
419
  s = f === oD ? void 0 : f;
420
420
  } else c.uri !== void 0 && (i = c.uri.length === 0 ? void 0 : c.uri);
421
421
  }
422
- const o$1 = ED.codes.get(Number(s));
422
+ const o = ED.codes.get(Number(s));
423
423
  n[E + 1] === `
424
- ` ? (i && (F$1 += K$1("")), s && o$1 && (F$1 += z(o$1))) : a === `
425
- ` && (s && o$1 && (F$1 += z(s)), i && (F$1 += K$1(i)));
424
+ ` ? (i && (F += K$1("")), s && o && (F += z(o))) : a === `
425
+ ` && (s && o && (F += z(s)), i && (F += K$1(i)));
426
426
  }
427
- return F$1;
427
+ return F;
428
428
  };
429
- function Y$1(e$1, u$1, t) {
430
- return String(e$1).normalize().replace(/\r\n/g, `
429
+ function Y$1(e, u, t) {
430
+ return String(e).normalize().replace(/\r\n/g, `
431
431
  `).split(`
432
- `).map((F$1) => lD(F$1, u$1, t)).join(`
432
+ `).map((F) => lD(F, u, t)).join(`
433
433
  `);
434
434
  }
435
435
  const B = {
@@ -451,124 +451,124 @@ const B = {
451
451
  ["escape", "cancel"]
452
452
  ])
453
453
  };
454
- function $(e$1, u$1) {
455
- if (typeof e$1 == "string") return B.aliases.get(e$1) === u$1;
456
- for (const t of e$1) if (t !== void 0 && $(t, u$1)) return !0;
454
+ function $(e, u) {
455
+ if (typeof e == "string") return B.aliases.get(e) === u;
456
+ for (const t of e) if (t !== void 0 && $(t, u)) return !0;
457
457
  return !1;
458
458
  }
459
- function BD(e$1, u$1) {
460
- if (e$1 === u$1) return;
461
- const t = e$1.split(`
462
- `), F$1 = u$1.split(`
459
+ function BD(e, u) {
460
+ if (e === u) return;
461
+ const t = e.split(`
462
+ `), F = u.split(`
463
463
  `), s = [];
464
- for (let i = 0; i < Math.max(t.length, F$1.length); i++) t[i] !== F$1[i] && s.push(i);
464
+ for (let i = 0; i < Math.max(t.length, F.length); i++) t[i] !== F[i] && s.push(i);
465
465
  return s;
466
466
  }
467
467
  const AD = globalThis.process.platform.startsWith("win"), S = Symbol("clack:cancel");
468
- function pD(e$1) {
469
- return e$1 === S;
468
+ function pD(e) {
469
+ return e === S;
470
470
  }
471
- function m(e$1, u$1) {
472
- const t = e$1;
473
- t.isTTY && t.setRawMode(u$1);
471
+ function m(e, u) {
472
+ const t = e;
473
+ t.isTTY && t.setRawMode(u);
474
474
  }
475
- function fD({ input: e$1 = stdin, output: u$1 = stdout, overwrite: t = !0, hideCursor: F$1 = !0 } = {}) {
475
+ function fD({ input: e = stdin, output: u = stdout, overwrite: t = !0, hideCursor: F = !0 } = {}) {
476
476
  const s = g.createInterface({
477
- input: e$1,
478
- output: u$1,
477
+ input: e,
478
+ output: u,
479
479
  prompt: "",
480
480
  tabSize: 1
481
481
  });
482
- g.emitKeypressEvents(e$1, s), e$1.isTTY && e$1.setRawMode(!0);
483
- const i = (D$1, { name: C$1, sequence: n }) => {
482
+ g.emitKeypressEvents(e, s), e.isTTY && e.setRawMode(!0);
483
+ const i = (D, { name: C, sequence: n }) => {
484
484
  if ($([
485
- String(D$1),
486
- C$1,
485
+ String(D),
486
+ C,
487
487
  n
488
488
  ], "cancel")) {
489
- F$1 && u$1.write(import_src.cursor.show), process.exit(0);
489
+ F && u.write(import_src.cursor.show), process.exit(0);
490
490
  return;
491
491
  }
492
492
  if (!t) return;
493
- const a = C$1 === "return" ? 0 : -1, o$1 = C$1 === "return" ? -1 : 0;
494
- g.moveCursor(u$1, a, o$1, () => {
495
- g.clearLine(u$1, 1, () => {
496
- e$1.once("keypress", i);
493
+ const a = C === "return" ? 0 : -1, o = C === "return" ? -1 : 0;
494
+ g.moveCursor(u, a, o, () => {
495
+ g.clearLine(u, 1, () => {
496
+ e.once("keypress", i);
497
497
  });
498
498
  });
499
499
  };
500
- return F$1 && u$1.write(import_src.cursor.hide), e$1.once("keypress", i), () => {
501
- e$1.off("keypress", i), F$1 && u$1.write(import_src.cursor.show), e$1.isTTY && !AD && e$1.setRawMode(!1), s.terminal = !1, s.close();
500
+ return F && u.write(import_src.cursor.hide), e.once("keypress", i), () => {
501
+ e.off("keypress", i), F && u.write(import_src.cursor.show), e.isTTY && !AD && e.setRawMode(!1), s.terminal = !1, s.close();
502
502
  };
503
503
  }
504
- var gD = Object.defineProperty, vD = (e$1, u$1, t) => u$1 in e$1 ? gD(e$1, u$1, {
504
+ var gD = Object.defineProperty, vD = (e, u, t) => u in e ? gD(e, u, {
505
505
  enumerable: !0,
506
506
  configurable: !0,
507
507
  writable: !0,
508
508
  value: t
509
- }) : e$1[u$1] = t, h = (e$1, u$1, t) => (vD(e$1, typeof u$1 != "symbol" ? u$1 + "" : u$1, t), t);
509
+ }) : e[u] = t, h = (e, u, t) => (vD(e, typeof u != "symbol" ? u + "" : u, t), t);
510
510
  var x$1 = class {
511
- constructor(u$1, t = !0) {
511
+ constructor(u, t = !0) {
512
512
  h(this, "input"), h(this, "output"), h(this, "_abortSignal"), h(this, "rl"), h(this, "opts"), h(this, "_render"), h(this, "_track", !1), h(this, "_prevFrame", ""), h(this, "_subscribers", /* @__PURE__ */ new Map()), h(this, "_cursor", 0), h(this, "state", "initial"), h(this, "error", ""), h(this, "value");
513
- const { input: F$1 = stdin, output: s = stdout, render: i, signal: D$1, ...C$1 } = u$1;
514
- this.opts = C$1, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = i.bind(this), this._track = t, this._abortSignal = D$1, this.input = F$1, this.output = s;
513
+ const { input: F = stdin, output: s = stdout, render: i, signal: D, ...C } = u;
514
+ this.opts = C, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = i.bind(this), this._track = t, this._abortSignal = D, this.input = F, this.output = s;
515
515
  }
516
516
  unsubscribe() {
517
517
  this._subscribers.clear();
518
518
  }
519
- setSubscriber(u$1, t) {
520
- const F$1 = this._subscribers.get(u$1) ?? [];
521
- F$1.push(t), this._subscribers.set(u$1, F$1);
519
+ setSubscriber(u, t) {
520
+ const F = this._subscribers.get(u) ?? [];
521
+ F.push(t), this._subscribers.set(u, F);
522
522
  }
523
- on(u$1, t) {
524
- this.setSubscriber(u$1, { cb: t });
523
+ on(u, t) {
524
+ this.setSubscriber(u, { cb: t });
525
525
  }
526
- once(u$1, t) {
527
- this.setSubscriber(u$1, {
526
+ once(u, t) {
527
+ this.setSubscriber(u, {
528
528
  cb: t,
529
529
  once: !0
530
530
  });
531
531
  }
532
- emit(u$1, ...t) {
533
- const F$1 = this._subscribers.get(u$1) ?? [], s = [];
534
- for (const i of F$1) i.cb(...t), i.once && s.push(() => F$1.splice(F$1.indexOf(i), 1));
532
+ emit(u, ...t) {
533
+ const F = this._subscribers.get(u) ?? [], s = [];
534
+ for (const i of F) i.cb(...t), i.once && s.push(() => F.splice(F.indexOf(i), 1));
535
535
  for (const i of s) i();
536
536
  }
537
537
  prompt() {
538
- return new Promise((u$1, t) => {
538
+ return new Promise((u, t) => {
539
539
  if (this._abortSignal) {
540
- if (this._abortSignal.aborted) return this.state = "cancel", this.close(), u$1(S);
540
+ if (this._abortSignal.aborted) return this.state = "cancel", this.close(), u(S);
541
541
  this._abortSignal.addEventListener("abort", () => {
542
542
  this.state = "cancel", this.close();
543
543
  }, { once: !0 });
544
544
  }
545
- const F$1 = new Writable();
546
- F$1._write = (s, i, D$1) => {
547
- this._track && (this.value = this.rl?.line.replace(/\t/g, ""), this._cursor = this.rl?.cursor ?? 0, this.emit("value", this.value)), D$1();
548
- }, this.input.pipe(F$1), this.rl = O.createInterface({
545
+ const F = new Writable();
546
+ F._write = (s, i, D) => {
547
+ this._track && (this.value = this.rl?.line.replace(/\t/g, ""), this._cursor = this.rl?.cursor ?? 0, this.emit("value", this.value)), D();
548
+ }, this.input.pipe(F), this.rl = O.createInterface({
549
549
  input: this.input,
550
- output: F$1,
550
+ output: F,
551
551
  tabSize: 2,
552
552
  prompt: "",
553
553
  escapeCodeTimeout: 50,
554
554
  terminal: !0
555
555
  }), O.emitKeypressEvents(this.input, this.rl), this.rl.prompt(), this.opts.initialValue !== void 0 && this._track && this.rl.write(this.opts.initialValue), this.input.on("keypress", this.onKeypress), m(this.input, !0), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
556
- this.output.write(import_src.cursor.show), this.output.off("resize", this.render), m(this.input, !1), u$1(this.value);
556
+ this.output.write(import_src.cursor.show), this.output.off("resize", this.render), m(this.input, !1), u(this.value);
557
557
  }), this.once("cancel", () => {
558
- this.output.write(import_src.cursor.show), this.output.off("resize", this.render), m(this.input, !1), u$1(S);
558
+ this.output.write(import_src.cursor.show), this.output.off("resize", this.render), m(this.input, !1), u(S);
559
559
  });
560
560
  });
561
561
  }
562
- onKeypress(u$1, t) {
563
- if (this.state === "error" && (this.state = "active"), t?.name && (!this._track && B.aliases.has(t.name) && this.emit("cursor", B.aliases.get(t.name)), B.actions.has(t.name) && this.emit("cursor", t.name)), u$1 && (u$1.toLowerCase() === "y" || u$1.toLowerCase() === "n") && this.emit("confirm", u$1.toLowerCase() === "y"), u$1 === " " && this.opts.placeholder && (this.value || (this.rl?.write(this.opts.placeholder), this.emit("value", this.opts.placeholder))), u$1 && this.emit("key", u$1.toLowerCase()), t?.name === "return") {
562
+ onKeypress(u, t) {
563
+ if (this.state === "error" && (this.state = "active"), t?.name && (!this._track && B.aliases.has(t.name) && this.emit("cursor", B.aliases.get(t.name)), B.actions.has(t.name) && this.emit("cursor", t.name)), u && (u.toLowerCase() === "y" || u.toLowerCase() === "n") && this.emit("confirm", u.toLowerCase() === "y"), u === " " && this.opts.placeholder && (this.value || (this.rl?.write(this.opts.placeholder), this.emit("value", this.opts.placeholder))), u && this.emit("key", u.toLowerCase()), t?.name === "return") {
564
564
  if (this.opts.validate) {
565
- const F$1 = this.opts.validate(this.value);
566
- F$1 && (this.error = F$1 instanceof Error ? F$1.message : F$1, this.state = "error", this.rl?.write(this.value));
565
+ const F = this.opts.validate(this.value);
566
+ F && (this.error = F instanceof Error ? F.message : F, this.state = "error", this.rl?.write(this.value));
567
567
  }
568
568
  this.state !== "error" && (this.state = "submit");
569
569
  }
570
570
  $([
571
- u$1,
571
+ u,
572
572
  t?.name,
573
573
  t?.sequence
574
574
  ], "cancel") && (this.state = "cancel"), (this.state === "submit" || this.state === "cancel") && this.emit("finalize"), this.render(), (this.state === "submit" || this.state === "cancel") && this.close();
@@ -578,36 +578,36 @@ var x$1 = class {
578
578
  `), m(this.input, !1), this.rl?.close(), this.rl = void 0, this.emit(`${this.state}`, this.value), this.unsubscribe();
579
579
  }
580
580
  restoreCursor() {
581
- const u$1 = Y$1(this._prevFrame, process.stdout.columns, { hard: !0 }).split(`
581
+ const u = Y$1(this._prevFrame, process.stdout.columns, { hard: !0 }).split(`
582
582
  `).length - 1;
583
- this.output.write(import_src.cursor.move(-999, u$1 * -1));
583
+ this.output.write(import_src.cursor.move(-999, u * -1));
584
584
  }
585
585
  render() {
586
- const u$1 = Y$1(this._render(this) ?? "", process.stdout.columns, { hard: !0 });
587
- if (u$1 !== this._prevFrame) {
586
+ const u = Y$1(this._render(this) ?? "", process.stdout.columns, { hard: !0 });
587
+ if (u !== this._prevFrame) {
588
588
  if (this.state === "initial") this.output.write(import_src.cursor.hide);
589
589
  else {
590
- const t = BD(this._prevFrame, u$1);
590
+ const t = BD(this._prevFrame, u);
591
591
  if (this.restoreCursor(), t && t?.length === 1) {
592
- const F$1 = t[0];
593
- this.output.write(import_src.cursor.move(0, F$1)), this.output.write(import_src.erase.lines(1));
594
- const s = u$1.split(`
592
+ const F = t[0];
593
+ this.output.write(import_src.cursor.move(0, F)), this.output.write(import_src.erase.lines(1));
594
+ const s = u.split(`
595
595
  `);
596
- this.output.write(s[F$1]), this._prevFrame = u$1, this.output.write(import_src.cursor.move(0, s.length - F$1 - 1));
596
+ this.output.write(s[F]), this._prevFrame = u, this.output.write(import_src.cursor.move(0, s.length - F - 1));
597
597
  return;
598
598
  }
599
599
  if (t && t?.length > 1) {
600
- const F$1 = t[0];
601
- this.output.write(import_src.cursor.move(0, F$1)), this.output.write(import_src.erase.down());
602
- const s = u$1.split(`
603
- `).slice(F$1);
600
+ const F = t[0];
601
+ this.output.write(import_src.cursor.move(0, F)), this.output.write(import_src.erase.down());
602
+ const s = u.split(`
603
+ `).slice(F);
604
604
  this.output.write(s.join(`
605
- `)), this._prevFrame = u$1;
605
+ `)), this._prevFrame = u;
606
606
  return;
607
607
  }
608
608
  this.output.write(import_src.erase.down());
609
609
  }
610
- this.output.write(u$1), this.state === "initial" && (this.state = "active"), this._prevFrame = u$1;
610
+ this.output.write(u), this.state === "initial" && (this.state = "active"), this._prevFrame = u;
611
611
  }
612
612
  }
613
613
  };
@@ -618,8 +618,8 @@ var dD = class extends x$1 {
618
618
  get _value() {
619
619
  return this.cursor === 0;
620
620
  }
621
- constructor(u$1) {
622
- super(u$1, !1), this.value = !!u$1.initialValue, this.on("value", () => {
621
+ constructor(u) {
622
+ super(u, !1), this.value = !!u.initialValue, this.on("value", () => {
623
623
  this.value = this._value;
624
624
  }), this.on("confirm", (t) => {
625
625
  this.output.write(import_src.cursor.move(0, -1)), this.value = t, this.state = "submit", this.close();
@@ -628,30 +628,30 @@ var dD = class extends x$1 {
628
628
  });
629
629
  }
630
630
  };
631
- var mD = Object.defineProperty, bD = (e$1, u$1, t) => u$1 in e$1 ? mD(e$1, u$1, {
631
+ var mD = Object.defineProperty, bD = (e, u, t) => u in e ? mD(e, u, {
632
632
  enumerable: !0,
633
633
  configurable: !0,
634
634
  writable: !0,
635
635
  value: t
636
- }) : e$1[u$1] = t, Z = (e$1, u$1, t) => (bD(e$1, typeof u$1 != "symbol" ? u$1 + "" : u$1, t), t), q$1 = (e$1, u$1, t) => {
637
- if (!u$1.has(e$1)) throw TypeError("Cannot " + t);
638
- }, T$1 = (e$1, u$1, t) => (q$1(e$1, u$1, "read from private field"), t ? t.call(e$1) : u$1.get(e$1)), wD = (e$1, u$1, t) => {
639
- if (u$1.has(e$1)) throw TypeError("Cannot add the same private member more than once");
640
- u$1 instanceof WeakSet ? u$1.add(e$1) : u$1.set(e$1, t);
641
- }, yD = (e$1, u$1, t, F$1) => (q$1(e$1, u$1, "write to private field"), F$1 ? F$1.call(e$1, t) : u$1.set(e$1, t), t), A$1;
636
+ }) : e[u] = t, Z = (e, u, t) => (bD(e, typeof u != "symbol" ? u + "" : u, t), t), q$1 = (e, u, t) => {
637
+ if (!u.has(e)) throw TypeError("Cannot " + t);
638
+ }, T$1 = (e, u, t) => (q$1(e, u, "read from private field"), t ? t.call(e) : u.get(e)), wD = (e, u, t) => {
639
+ if (u.has(e)) throw TypeError("Cannot add the same private member more than once");
640
+ u instanceof WeakSet ? u.add(e) : u.set(e, t);
641
+ }, yD = (e, u, t, F) => (q$1(e, u, "write to private field"), F ? F.call(e, t) : u.set(e, t), t), A$1;
642
642
  let _D = class extends x$1 {
643
- constructor(u$1) {
644
- super(u$1, !1), Z(this, "options"), Z(this, "cursor", 0), wD(this, A$1, void 0);
645
- const { options: t } = u$1;
646
- yD(this, A$1, u$1.selectableGroups !== !1), this.options = Object.entries(t).flatMap(([F$1, s]) => [{
647
- value: F$1,
643
+ constructor(u) {
644
+ super(u, !1), Z(this, "options"), Z(this, "cursor", 0), wD(this, A$1, void 0);
645
+ const { options: t } = u;
646
+ yD(this, A$1, u.selectableGroups !== !1), this.options = Object.entries(t).flatMap(([F, s]) => [{
647
+ value: F,
648
648
  group: !0,
649
- label: F$1
649
+ label: F
650
650
  }, ...s.map((i) => ({
651
651
  ...i,
652
- group: F$1
653
- }))]), this.value = [...u$1.initialValues ?? []], this.cursor = Math.max(this.options.findIndex(({ value: F$1 }) => F$1 === u$1.cursorAt), T$1(this, A$1) ? 0 : 1), this.on("cursor", (F$1) => {
654
- switch (F$1) {
652
+ group: F
653
+ }))]), this.value = [...u.initialValues ?? []], this.cursor = Math.max(this.options.findIndex(({ value: F }) => F === u.cursorAt), T$1(this, A$1) ? 0 : 1), this.on("cursor", (F) => {
654
+ switch (F) {
655
655
  case "left":
656
656
  case "up": {
657
657
  this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
@@ -672,30 +672,30 @@ let _D = class extends x$1 {
672
672
  }
673
673
  });
674
674
  }
675
- getGroupItems(u$1) {
676
- return this.options.filter((t) => t.group === u$1);
675
+ getGroupItems(u) {
676
+ return this.options.filter((t) => t.group === u);
677
677
  }
678
- isGroupSelected(u$1) {
679
- return this.getGroupItems(u$1).every((t) => this.value.includes(t.value));
678
+ isGroupSelected(u) {
679
+ return this.getGroupItems(u).every((t) => this.value.includes(t.value));
680
680
  }
681
681
  toggleValue() {
682
- const u$1 = this.options[this.cursor];
683
- if (u$1.group === !0) {
684
- const t = u$1.value, F$1 = this.getGroupItems(t);
685
- this.isGroupSelected(t) ? this.value = this.value.filter((s) => F$1.findIndex((i) => i.value === s) === -1) : this.value = [...this.value, ...F$1.map((s) => s.value)], this.value = Array.from(new Set(this.value));
686
- } else this.value = this.value.includes(u$1.value) ? this.value.filter((F$1) => F$1 !== u$1.value) : [...this.value, u$1.value];
682
+ const u = this.options[this.cursor];
683
+ if (u.group === !0) {
684
+ const t = u.value, F = this.getGroupItems(t);
685
+ this.isGroupSelected(t) ? this.value = this.value.filter((s) => F.findIndex((i) => i.value === s) === -1) : this.value = [...this.value, ...F.map((s) => s.value)], this.value = Array.from(new Set(this.value));
686
+ } else this.value = this.value.includes(u.value) ? this.value.filter((F) => F !== u.value) : [...this.value, u.value];
687
687
  }
688
688
  };
689
689
  A$1 = /* @__PURE__ */ new WeakMap();
690
- var kD = Object.defineProperty, $D = (e$1, u$1, t) => u$1 in e$1 ? kD(e$1, u$1, {
690
+ var kD = Object.defineProperty, $D = (e, u, t) => u in e ? kD(e, u, {
691
691
  enumerable: !0,
692
692
  configurable: !0,
693
693
  writable: !0,
694
694
  value: t
695
- }) : e$1[u$1] = t, H = (e$1, u$1, t) => ($D(e$1, typeof u$1 != "symbol" ? u$1 + "" : u$1, t), t);
695
+ }) : e[u] = t, H = (e, u, t) => ($D(e, typeof u != "symbol" ? u + "" : u, t), t);
696
696
  let SD = class extends x$1 {
697
- constructor(u$1) {
698
- super(u$1, !1), H(this, "options"), H(this, "cursor", 0), this.options = u$1.options, this.value = [...u$1.initialValues ?? []], this.cursor = Math.max(this.options.findIndex(({ value: t }) => t === u$1.cursorAt), 0), this.on("key", (t) => {
697
+ constructor(u) {
698
+ super(u, !1), H(this, "options"), H(this, "cursor", 0), this.options = u.options, this.value = [...u.initialValues ?? []], this.cursor = Math.max(this.options.findIndex(({ value: t }) => t === u.cursorAt), 0), this.on("key", (t) => {
699
699
  t === "a" && this.toggleAll();
700
700
  }), this.on("cursor", (t) => {
701
701
  switch (t) {
@@ -723,21 +723,21 @@ let SD = class extends x$1 {
723
723
  this.value = this.value.includes(this._value) ? this.value.filter((t) => t !== this._value) : [...this.value, this._value];
724
724
  }
725
725
  };
726
- var TD = Object.defineProperty, jD = (e$1, u$1, t) => u$1 in e$1 ? TD(e$1, u$1, {
726
+ var TD = Object.defineProperty, jD = (e, u, t) => u in e ? TD(e, u, {
727
727
  enumerable: !0,
728
728
  configurable: !0,
729
729
  writable: !0,
730
730
  value: t
731
- }) : e$1[u$1] = t, U$1 = (e$1, u$1, t) => (jD(e$1, typeof u$1 != "symbol" ? u$1 + "" : u$1, t), t);
731
+ }) : e[u] = t, U$1 = (e, u, t) => (jD(e, typeof u != "symbol" ? u + "" : u, t), t);
732
732
  var MD = class extends x$1 {
733
- constructor({ mask: u$1, ...t }) {
734
- super(t), U$1(this, "valueWithCursor", ""), U$1(this, "_mask", "•"), this._mask = u$1 ?? "•", this.on("finalize", () => {
733
+ constructor({ mask: u, ...t }) {
734
+ super(t), U$1(this, "valueWithCursor", ""), U$1(this, "_mask", "•"), this._mask = u ?? "•", this.on("finalize", () => {
735
735
  this.valueWithCursor = this.masked;
736
736
  }), this.on("value", () => {
737
737
  if (this.cursor >= this.value.length) this.valueWithCursor = `${this.masked}${import_picocolors.default.inverse(import_picocolors.default.hidden("_"))}`;
738
738
  else {
739
- const F$1 = this.masked.slice(0, this.cursor), s = this.masked.slice(this.cursor);
740
- this.valueWithCursor = `${F$1}${import_picocolors.default.inverse(s[0])}${s.slice(1)}`;
739
+ const F = this.masked.slice(0, this.cursor), s = this.masked.slice(this.cursor);
740
+ this.valueWithCursor = `${F}${import_picocolors.default.inverse(s[0])}${s.slice(1)}`;
741
741
  }
742
742
  });
743
743
  }
@@ -748,15 +748,15 @@ var MD = class extends x$1 {
748
748
  return this.value.replaceAll(/./g, this._mask);
749
749
  }
750
750
  };
751
- var OD = Object.defineProperty, PD = (e$1, u$1, t) => u$1 in e$1 ? OD(e$1, u$1, {
751
+ var OD = Object.defineProperty, PD = (e, u, t) => u in e ? OD(e, u, {
752
752
  enumerable: !0,
753
753
  configurable: !0,
754
754
  writable: !0,
755
755
  value: t
756
- }) : e$1[u$1] = t, J$1 = (e$1, u$1, t) => (PD(e$1, typeof u$1 != "symbol" ? u$1 + "" : u$1, t), t);
756
+ }) : e[u] = t, J$1 = (e, u, t) => (PD(e, typeof u != "symbol" ? u + "" : u, t), t);
757
757
  var LD = class extends x$1 {
758
- constructor(u$1) {
759
- super(u$1, !1), J$1(this, "options"), J$1(this, "cursor", 0), this.options = u$1.options, this.cursor = this.options.findIndex(({ value: t }) => t === u$1.initialValue), this.cursor === -1 && (this.cursor = 0), this.changeValue(), this.on("cursor", (t) => {
758
+ constructor(u) {
759
+ super(u, !1), J$1(this, "options"), J$1(this, "cursor", 0), this.options = u.options, this.cursor = this.options.findIndex(({ value: t }) => t === u.initialValue), this.cursor === -1 && (this.cursor = 0), this.changeValue(), this.on("cursor", (t) => {
760
760
  switch (t) {
761
761
  case "left":
762
762
  case "up":
@@ -777,19 +777,19 @@ var LD = class extends x$1 {
777
777
  this.value = this._value.value;
778
778
  }
779
779
  };
780
- var WD = Object.defineProperty, ND = (e$1, u$1, t) => u$1 in e$1 ? WD(e$1, u$1, {
780
+ var WD = Object.defineProperty, ND = (e, u, t) => u in e ? WD(e, u, {
781
781
  enumerable: !0,
782
782
  configurable: !0,
783
783
  writable: !0,
784
784
  value: t
785
- }) : e$1[u$1] = t, Q = (e$1, u$1, t) => (ND(e$1, typeof u$1 != "symbol" ? u$1 + "" : u$1, t), t);
785
+ }) : e[u] = t, Q = (e, u, t) => (ND(e, typeof u != "symbol" ? u + "" : u, t), t);
786
786
  var ID = class extends x$1 {
787
- constructor(u$1) {
788
- super(u$1, !1), Q(this, "options"), Q(this, "cursor", 0), this.options = u$1.options;
789
- const t = this.options.map(({ value: [F$1] }) => F$1?.toLowerCase());
790
- this.cursor = Math.max(t.indexOf(u$1.initialValue), 0), this.on("key", (F$1) => {
791
- if (!t.includes(F$1)) return;
792
- const s = this.options.find(({ value: [i] }) => i?.toLowerCase() === F$1);
787
+ constructor(u) {
788
+ super(u, !1), Q(this, "options"), Q(this, "cursor", 0), this.options = u.options;
789
+ const t = this.options.map(({ value: [F] }) => F?.toLowerCase());
790
+ this.cursor = Math.max(t.indexOf(u.initialValue), 0), this.on("key", (F) => {
791
+ if (!t.includes(F)) return;
792
+ const s = this.options.find(({ value: [i] }) => i?.toLowerCase() === F);
793
793
  s && (this.value = s.value, this.state = "submit", this.emit("submit"));
794
794
  });
795
795
  }
@@ -798,15 +798,15 @@ var RD = class extends x$1 {
798
798
  get valueWithCursor() {
799
799
  if (this.state === "submit") return this.value;
800
800
  if (this.cursor >= this.value.length) return `${this.value}\u2588`;
801
- const u$1 = this.value.slice(0, this.cursor), [t, ...F$1] = this.value.slice(this.cursor);
802
- return `${u$1}${import_picocolors.default.inverse(t)}${F$1.join("")}`;
801
+ const u = this.value.slice(0, this.cursor), [t, ...F] = this.value.slice(this.cursor);
802
+ return `${u}${import_picocolors.default.inverse(t)}${F.join("")}`;
803
803
  }
804
804
  get cursor() {
805
805
  return this._cursor;
806
806
  }
807
- constructor(u$1) {
808
- super(u$1), this.on("finalize", () => {
809
- this.value || (this.value = u$1.defaultValue);
807
+ constructor(u) {
808
+ super(u), this.on("finalize", () => {
809
+ this.value || (this.value = u.defaultValue);
810
810
  });
811
811
  }
812
812
  };
@@ -825,13 +825,13 @@ const V = ce(), u = (t, n) => V ? t : n, le = u("◆", "*"), L = u("■", "x"),
825
825
  case "submit": return import_picocolors.default.green(C);
826
826
  }
827
827
  }, G = (t) => {
828
- const { cursor: n, options: r$1, style: i } = t, s = t.maxItems ?? Number.POSITIVE_INFINITY, c = Math.max(process.stdout.rows - 4, 0), a = Math.min(c, Math.max(s, 5));
829
- let l$1 = 0;
830
- n >= l$1 + a - 3 ? l$1 = Math.max(Math.min(n - a + 3, r$1.length - a), 0) : n < l$1 + 2 && (l$1 = Math.max(n - 2, 0));
831
- const $$1 = a < r$1.length && l$1 > 0, g$1 = a < r$1.length && l$1 + a < r$1.length;
832
- return r$1.slice(l$1, l$1 + a).map((p$1, v$1, f) => {
833
- const j = v$1 === 0 && $$1, E = v$1 === f.length - 1 && g$1;
834
- return j || E ? import_picocolors.default.dim("...") : i(p$1, v$1 + l$1 === n);
828
+ const { cursor: n, options: r, style: i } = t, s = t.maxItems ?? Number.POSITIVE_INFINITY, c = Math.max(process.stdout.rows - 4, 0), a = Math.min(c, Math.max(s, 5));
829
+ let l = 0;
830
+ n >= l + a - 3 ? l = Math.max(Math.min(n - a + 3, r.length - a), 0) : n < l + 2 && (l = Math.max(n - 2, 0));
831
+ const $ = a < r.length && l > 0, g = a < r.length && l + a < r.length;
832
+ return r.slice(l, l + a).map((p, v, f) => {
833
+ const j = v === 0 && $, E = v === f.length - 1 && g;
834
+ return j || E ? import_picocolors.default.dim("...") : i(p, v + l === n);
835
835
  });
836
836
  }, he = (t) => new RD({
837
837
  validate: t.validate,
@@ -841,7 +841,7 @@ const V = ce(), u = (t, n) => V ? t : n, le = u("◆", "*"), L = u("■", "x"),
841
841
  render() {
842
842
  const n = `${import_picocolors.default.gray(o)}
843
843
  ${b(this.state)} ${t.message}
844
- `, r$1 = t.placeholder ? import_picocolors.default.inverse(t.placeholder[0]) + import_picocolors.default.dim(t.placeholder.slice(1)) : import_picocolors.default.inverse(import_picocolors.default.hidden("_")), i = this.value ? this.valueWithCursor : r$1;
844
+ `, r = t.placeholder ? import_picocolors.default.inverse(t.placeholder[0]) + import_picocolors.default.dim(t.placeholder.slice(1)) : import_picocolors.default.inverse(import_picocolors.default.hidden("_")), i = this.value ? this.valueWithCursor : r;
845
845
  switch (this.state) {
846
846
  case "error": return `${n.trim()}
847
847
  ${import_picocolors.default.yellow(o)} ${i}
@@ -861,7 +861,7 @@ ${import_picocolors.default.cyan(d)}
861
861
  render() {
862
862
  const n = `${import_picocolors.default.gray(o)}
863
863
  ${b(this.state)} ${t.message}
864
- `, r$1 = this.valueWithCursor, i = this.masked;
864
+ `, r = this.valueWithCursor, i = this.masked;
865
865
  switch (this.state) {
866
866
  case "error": return `${n.trim()}
867
867
  ${import_picocolors.default.yellow(o)} ${i}
@@ -870,37 +870,37 @@ ${import_picocolors.default.yellow(d)} ${import_picocolors.default.yellow(this.
870
870
  case "submit": return `${n}${import_picocolors.default.gray(o)} ${import_picocolors.default.dim(i)}`;
871
871
  case "cancel": return `${n}${import_picocolors.default.gray(o)} ${import_picocolors.default.strikethrough(import_picocolors.default.dim(i ?? ""))}${i ? `
872
872
  ${import_picocolors.default.gray(o)}` : ""}`;
873
- default: return `${n}${import_picocolors.default.cyan(o)} ${r$1}
873
+ default: return `${n}${import_picocolors.default.cyan(o)} ${r}
874
874
  ${import_picocolors.default.cyan(d)}
875
875
  `;
876
876
  }
877
877
  }
878
878
  }).prompt(), ye = (t) => {
879
- const n = t.active ?? "Yes", r$1 = t.inactive ?? "No";
879
+ const n = t.active ?? "Yes", r = t.inactive ?? "No";
880
880
  return new dD({
881
881
  active: n,
882
- inactive: r$1,
882
+ inactive: r,
883
883
  initialValue: t.initialValue ?? !0,
884
884
  render() {
885
885
  const i = `${import_picocolors.default.gray(o)}
886
886
  ${b(this.state)} ${t.message}
887
- `, s = this.value ? n : r$1;
887
+ `, s = this.value ? n : r;
888
888
  switch (this.state) {
889
889
  case "submit": return `${i}${import_picocolors.default.gray(o)} ${import_picocolors.default.dim(s)}`;
890
890
  case "cancel": return `${i}${import_picocolors.default.gray(o)} ${import_picocolors.default.strikethrough(import_picocolors.default.dim(s))}
891
891
  ${import_picocolors.default.gray(o)}`;
892
- default: return `${i}${import_picocolors.default.cyan(o)} ${this.value ? `${import_picocolors.default.green(k)} ${n}` : `${import_picocolors.default.dim(P)} ${import_picocolors.default.dim(n)}`} ${import_picocolors.default.dim("/")} ${this.value ? `${import_picocolors.default.dim(P)} ${import_picocolors.default.dim(r$1)}` : `${import_picocolors.default.green(k)} ${r$1}`}
892
+ default: return `${i}${import_picocolors.default.cyan(o)} ${this.value ? `${import_picocolors.default.green(k)} ${n}` : `${import_picocolors.default.dim(P)} ${import_picocolors.default.dim(n)}`} ${import_picocolors.default.dim("/")} ${this.value ? `${import_picocolors.default.dim(P)} ${import_picocolors.default.dim(r)}` : `${import_picocolors.default.green(k)} ${r}`}
893
893
  ${import_picocolors.default.cyan(d)}
894
894
  `;
895
895
  }
896
896
  }
897
897
  }).prompt();
898
898
  }, ve = (t) => {
899
- const n = (r$1, i) => {
900
- const s = r$1.label ?? String(r$1.value);
899
+ const n = (r, i) => {
900
+ const s = r.label ?? String(r.value);
901
901
  switch (i) {
902
902
  case "selected": return `${import_picocolors.default.dim(s)}`;
903
- case "active": return `${import_picocolors.default.green(k)} ${s} ${r$1.hint ? import_picocolors.default.dim(`(${r$1.hint})`) : ""}`;
903
+ case "active": return `${import_picocolors.default.green(k)} ${s} ${r.hint ? import_picocolors.default.dim(`(${r.hint})`) : ""}`;
904
904
  case "cancelled": return `${import_picocolors.default.strikethrough(import_picocolors.default.dim(s))}`;
905
905
  default: return `${import_picocolors.default.dim(P)} ${import_picocolors.default.dim(s)}`;
906
906
  }
@@ -909,14 +909,14 @@ ${import_picocolors.default.cyan(d)}
909
909
  options: t.options,
910
910
  initialValue: t.initialValue,
911
911
  render() {
912
- const r$1 = `${import_picocolors.default.gray(o)}
912
+ const r = `${import_picocolors.default.gray(o)}
913
913
  ${b(this.state)} ${t.message}
914
914
  `;
915
915
  switch (this.state) {
916
- case "submit": return `${r$1}${import_picocolors.default.gray(o)} ${n(this.options[this.cursor], "selected")}`;
917
- case "cancel": return `${r$1}${import_picocolors.default.gray(o)} ${n(this.options[this.cursor], "cancelled")}
916
+ case "submit": return `${r}${import_picocolors.default.gray(o)} ${n(this.options[this.cursor], "selected")}`;
917
+ case "cancel": return `${r}${import_picocolors.default.gray(o)} ${n(this.options[this.cursor], "cancelled")}
918
918
  ${import_picocolors.default.gray(o)}`;
919
- default: return `${r$1}${import_picocolors.default.cyan(o)} ${G({
919
+ default: return `${r}${import_picocolors.default.cyan(o)} ${G({
920
920
  cursor: this.cursor,
921
921
  options: this.options,
922
922
  maxItems: t.maxItems,
@@ -929,22 +929,22 @@ ${import_picocolors.default.cyan(d)}
929
929
  }
930
930
  }).prompt();
931
931
  }, we = (t) => {
932
- const n = (r$1, i = "inactive") => {
933
- const s = r$1.label ?? String(r$1.value);
934
- return i === "selected" ? `${import_picocolors.default.dim(s)}` : i === "cancelled" ? `${import_picocolors.default.strikethrough(import_picocolors.default.dim(s))}` : i === "active" ? `${import_picocolors.default.bgCyan(import_picocolors.default.gray(` ${r$1.value} `))} ${s} ${r$1.hint ? import_picocolors.default.dim(`(${r$1.hint})`) : ""}` : `${import_picocolors.default.gray(import_picocolors.default.bgWhite(import_picocolors.default.inverse(` ${r$1.value} `)))} ${s} ${r$1.hint ? import_picocolors.default.dim(`(${r$1.hint})`) : ""}`;
932
+ const n = (r, i = "inactive") => {
933
+ const s = r.label ?? String(r.value);
934
+ return i === "selected" ? `${import_picocolors.default.dim(s)}` : i === "cancelled" ? `${import_picocolors.default.strikethrough(import_picocolors.default.dim(s))}` : i === "active" ? `${import_picocolors.default.bgCyan(import_picocolors.default.gray(` ${r.value} `))} ${s} ${r.hint ? import_picocolors.default.dim(`(${r.hint})`) : ""}` : `${import_picocolors.default.gray(import_picocolors.default.bgWhite(import_picocolors.default.inverse(` ${r.value} `)))} ${s} ${r.hint ? import_picocolors.default.dim(`(${r.hint})`) : ""}`;
935
935
  };
936
936
  return new ID({
937
937
  options: t.options,
938
938
  initialValue: t.initialValue,
939
939
  render() {
940
- const r$1 = `${import_picocolors.default.gray(o)}
940
+ const r = `${import_picocolors.default.gray(o)}
941
941
  ${b(this.state)} ${t.message}
942
942
  `;
943
943
  switch (this.state) {
944
- case "submit": return `${r$1}${import_picocolors.default.gray(o)} ${n(this.options.find((i) => i.value === this.value) ?? t.options[0], "selected")}`;
945
- case "cancel": return `${r$1}${import_picocolors.default.gray(o)} ${n(this.options[0], "cancelled")}
944
+ case "submit": return `${r}${import_picocolors.default.gray(o)} ${n(this.options.find((i) => i.value === this.value) ?? t.options[0], "selected")}`;
945
+ case "cancel": return `${r}${import_picocolors.default.gray(o)} ${n(this.options[0], "cancelled")}
946
946
  ${import_picocolors.default.gray(o)}`;
947
- default: return `${r$1}${import_picocolors.default.cyan(o)} ${this.options.map((i, s) => n(i, s === this.cursor ? "active" : "inactive")).join(`
947
+ default: return `${r}${import_picocolors.default.cyan(o)} ${this.options.map((i, s) => n(i, s === this.cursor ? "active" : "inactive")).join(`
948
948
  ${import_picocolors.default.cyan(o)} `)}
949
949
  ${import_picocolors.default.cyan(d)}
950
950
  `;
@@ -952,38 +952,38 @@ ${import_picocolors.default.cyan(d)}
952
952
  }
953
953
  }).prompt();
954
954
  }, fe = (t) => {
955
- const n = (r$1, i) => {
956
- const s = r$1.label ?? String(r$1.value);
957
- return i === "active" ? `${import_picocolors.default.cyan(A)} ${s} ${r$1.hint ? import_picocolors.default.dim(`(${r$1.hint})`) : ""}` : i === "selected" ? `${import_picocolors.default.green(T)} ${import_picocolors.default.dim(s)} ${r$1.hint ? import_picocolors.default.dim(`(${r$1.hint})`) : ""}` : i === "cancelled" ? `${import_picocolors.default.strikethrough(import_picocolors.default.dim(s))}` : i === "active-selected" ? `${import_picocolors.default.green(T)} ${s} ${r$1.hint ? import_picocolors.default.dim(`(${r$1.hint})`) : ""}` : i === "submitted" ? `${import_picocolors.default.dim(s)}` : `${import_picocolors.default.dim(F)} ${import_picocolors.default.dim(s)}`;
955
+ const n = (r, i) => {
956
+ const s = r.label ?? String(r.value);
957
+ return i === "active" ? `${import_picocolors.default.cyan(A)} ${s} ${r.hint ? import_picocolors.default.dim(`(${r.hint})`) : ""}` : i === "selected" ? `${import_picocolors.default.green(T)} ${import_picocolors.default.dim(s)} ${r.hint ? import_picocolors.default.dim(`(${r.hint})`) : ""}` : i === "cancelled" ? `${import_picocolors.default.strikethrough(import_picocolors.default.dim(s))}` : i === "active-selected" ? `${import_picocolors.default.green(T)} ${s} ${r.hint ? import_picocolors.default.dim(`(${r.hint})`) : ""}` : i === "submitted" ? `${import_picocolors.default.dim(s)}` : `${import_picocolors.default.dim(F)} ${import_picocolors.default.dim(s)}`;
958
958
  };
959
959
  return new SD({
960
960
  options: t.options,
961
961
  initialValues: t.initialValues,
962
962
  required: t.required ?? !0,
963
963
  cursorAt: t.cursorAt,
964
- validate(r$1) {
965
- if (this.required && r$1.length === 0) return `Please select at least one option.
964
+ validate(r) {
965
+ if (this.required && r.length === 0) return `Please select at least one option.
966
966
  ${import_picocolors.default.reset(import_picocolors.default.dim(`Press ${import_picocolors.default.gray(import_picocolors.default.bgWhite(import_picocolors.default.inverse(" space ")))} to select, ${import_picocolors.default.gray(import_picocolors.default.bgWhite(import_picocolors.default.inverse(" enter ")))} to submit`))}`;
967
967
  },
968
968
  render() {
969
- const r$1 = `${import_picocolors.default.gray(o)}
969
+ const r = `${import_picocolors.default.gray(o)}
970
970
  ${b(this.state)} ${t.message}
971
971
  `, i = (s, c) => {
972
972
  const a = this.value.includes(s.value);
973
973
  return c && a ? n(s, "active-selected") : a ? n(s, "selected") : n(s, c ? "active" : "inactive");
974
974
  };
975
975
  switch (this.state) {
976
- case "submit": return `${r$1}${import_picocolors.default.gray(o)} ${this.options.filter(({ value: s }) => this.value.includes(s)).map((s) => n(s, "submitted")).join(import_picocolors.default.dim(", ")) || import_picocolors.default.dim("none")}`;
976
+ case "submit": return `${r}${import_picocolors.default.gray(o)} ${this.options.filter(({ value: s }) => this.value.includes(s)).map((s) => n(s, "submitted")).join(import_picocolors.default.dim(", ")) || import_picocolors.default.dim("none")}`;
977
977
  case "cancel": {
978
978
  const s = this.options.filter(({ value: c }) => this.value.includes(c)).map((c) => n(c, "cancelled")).join(import_picocolors.default.dim(", "));
979
- return `${r$1}${import_picocolors.default.gray(o)} ${s.trim() ? `${s}
979
+ return `${r}${import_picocolors.default.gray(o)} ${s.trim() ? `${s}
980
980
  ${import_picocolors.default.gray(o)}` : ""}`;
981
981
  }
982
982
  case "error": {
983
983
  const s = this.error.split(`
984
984
  `).map((c, a) => a === 0 ? `${import_picocolors.default.yellow(d)} ${import_picocolors.default.yellow(c)}` : ` ${c}`).join(`
985
985
  `);
986
- return `${r$1 + import_picocolors.default.yellow(o)} ${G({
986
+ return `${r + import_picocolors.default.yellow(o)} ${G({
987
987
  options: this.options,
988
988
  cursor: this.cursor,
989
989
  maxItems: t.maxItems,
@@ -993,7 +993,7 @@ ${import_picocolors.default.yellow(o)} `)}
993
993
  ${s}
994
994
  `;
995
995
  }
996
- default: return `${r$1}${import_picocolors.default.cyan(o)} ${G({
996
+ default: return `${r}${import_picocolors.default.cyan(o)} ${G({
997
997
  options: this.options,
998
998
  cursor: this.cursor,
999
999
  maxItems: t.maxItems,
@@ -1006,20 +1006,20 @@ ${import_picocolors.default.cyan(d)}
1006
1006
  }
1007
1007
  }).prompt();
1008
1008
  }, be = (t) => {
1009
- const { selectableGroups: n = !0 } = t, r$1 = (i, s, c = []) => {
1010
- const a = i.label ?? String(i.value), l$1 = typeof i.group == "string", $$1 = l$1 && (c[c.indexOf(i) + 1] ?? { group: !0 }), g$1 = l$1 && $$1.group === !0, p$1 = l$1 ? n ? `${g$1 ? d : o} ` : " " : "";
1011
- if (s === "active") return `${import_picocolors.default.dim(p$1)}${import_picocolors.default.cyan(A)} ${a} ${i.hint ? import_picocolors.default.dim(`(${i.hint})`) : ""}`;
1012
- if (s === "group-active") return `${p$1}${import_picocolors.default.cyan(A)} ${import_picocolors.default.dim(a)}`;
1013
- if (s === "group-active-selected") return `${p$1}${import_picocolors.default.green(T)} ${import_picocolors.default.dim(a)}`;
1009
+ const { selectableGroups: n = !0 } = t, r = (i, s, c = []) => {
1010
+ const a = i.label ?? String(i.value), l = typeof i.group == "string", $ = l && (c[c.indexOf(i) + 1] ?? { group: !0 }), g = l && $.group === !0, p = l ? n ? `${g ? d : o} ` : " " : "";
1011
+ if (s === "active") return `${import_picocolors.default.dim(p)}${import_picocolors.default.cyan(A)} ${a} ${i.hint ? import_picocolors.default.dim(`(${i.hint})`) : ""}`;
1012
+ if (s === "group-active") return `${p}${import_picocolors.default.cyan(A)} ${import_picocolors.default.dim(a)}`;
1013
+ if (s === "group-active-selected") return `${p}${import_picocolors.default.green(T)} ${import_picocolors.default.dim(a)}`;
1014
1014
  if (s === "selected") {
1015
- const f = l$1 || n ? import_picocolors.default.green(T) : "";
1016
- return `${import_picocolors.default.dim(p$1)}${f} ${import_picocolors.default.dim(a)} ${i.hint ? import_picocolors.default.dim(`(${i.hint})`) : ""}`;
1015
+ const f = l || n ? import_picocolors.default.green(T) : "";
1016
+ return `${import_picocolors.default.dim(p)}${f} ${import_picocolors.default.dim(a)} ${i.hint ? import_picocolors.default.dim(`(${i.hint})`) : ""}`;
1017
1017
  }
1018
1018
  if (s === "cancelled") return `${import_picocolors.default.strikethrough(import_picocolors.default.dim(a))}`;
1019
- if (s === "active-selected") return `${import_picocolors.default.dim(p$1)}${import_picocolors.default.green(T)} ${a} ${i.hint ? import_picocolors.default.dim(`(${i.hint})`) : ""}`;
1019
+ if (s === "active-selected") return `${import_picocolors.default.dim(p)}${import_picocolors.default.green(T)} ${a} ${i.hint ? import_picocolors.default.dim(`(${i.hint})`) : ""}`;
1020
1020
  if (s === "submitted") return `${import_picocolors.default.dim(a)}`;
1021
- const v$1 = l$1 || n ? import_picocolors.default.dim(F) : "";
1022
- return `${import_picocolors.default.dim(p$1)}${v$1} ${import_picocolors.default.dim(a)}`;
1021
+ const v = l || n ? import_picocolors.default.dim(F) : "";
1022
+ return `${import_picocolors.default.dim(p)}${v} ${import_picocolors.default.dim(a)}`;
1023
1023
  };
1024
1024
  return new _D({
1025
1025
  options: t.options,
@@ -1036,9 +1036,9 @@ ${import_picocolors.default.reset(import_picocolors.default.dim(`Press ${import_
1036
1036
  ${b(this.state)} ${t.message}
1037
1037
  `;
1038
1038
  switch (this.state) {
1039
- case "submit": return `${i}${import_picocolors.default.gray(o)} ${this.options.filter(({ value: s }) => this.value.includes(s)).map((s) => r$1(s, "submitted")).join(import_picocolors.default.dim(", "))}`;
1039
+ case "submit": return `${i}${import_picocolors.default.gray(o)} ${this.options.filter(({ value: s }) => this.value.includes(s)).map((s) => r(s, "submitted")).join(import_picocolors.default.dim(", "))}`;
1040
1040
  case "cancel": {
1041
- const s = this.options.filter(({ value: c }) => this.value.includes(c)).map((c) => r$1(c, "cancelled")).join(import_picocolors.default.dim(", "));
1041
+ const s = this.options.filter(({ value: c }) => this.value.includes(c)).map((c) => r(c, "cancelled")).join(import_picocolors.default.dim(", "));
1042
1042
  return `${i}${import_picocolors.default.gray(o)} ${s.trim() ? `${s}
1043
1043
  ${import_picocolors.default.gray(o)}` : ""}`;
1044
1044
  }
@@ -1046,17 +1046,17 @@ ${import_picocolors.default.gray(o)}` : ""}`;
1046
1046
  const s = this.error.split(`
1047
1047
  `).map((c, a) => a === 0 ? `${import_picocolors.default.yellow(d)} ${import_picocolors.default.yellow(c)}` : ` ${c}`).join(`
1048
1048
  `);
1049
- return `${i}${import_picocolors.default.yellow(o)} ${this.options.map((c, a, l$1) => {
1050
- const $$1 = this.value.includes(c.value) || c.group === !0 && this.isGroupSelected(`${c.value}`), g$1 = a === this.cursor;
1051
- return !g$1 && typeof c.group == "string" && this.options[this.cursor].value === c.group ? r$1(c, $$1 ? "group-active-selected" : "group-active", l$1) : g$1 && $$1 ? r$1(c, "active-selected", l$1) : $$1 ? r$1(c, "selected", l$1) : r$1(c, g$1 ? "active" : "inactive", l$1);
1049
+ return `${i}${import_picocolors.default.yellow(o)} ${this.options.map((c, a, l) => {
1050
+ const $ = this.value.includes(c.value) || c.group === !0 && this.isGroupSelected(`${c.value}`), g = a === this.cursor;
1051
+ return !g && typeof c.group == "string" && this.options[this.cursor].value === c.group ? r(c, $ ? "group-active-selected" : "group-active", l) : g && $ ? r(c, "active-selected", l) : $ ? r(c, "selected", l) : r(c, g ? "active" : "inactive", l);
1052
1052
  }).join(`
1053
1053
  ${import_picocolors.default.yellow(o)} `)}
1054
1054
  ${s}
1055
1055
  `;
1056
1056
  }
1057
1057
  default: return `${i}${import_picocolors.default.cyan(o)} ${this.options.map((s, c, a) => {
1058
- const l$1 = this.value.includes(s.value) || s.group === !0 && this.isGroupSelected(`${s.value}`), $$1 = c === this.cursor;
1059
- return !$$1 && typeof s.group == "string" && this.options[this.cursor].value === s.group ? r$1(s, l$1 ? "group-active-selected" : "group-active", a) : $$1 && l$1 ? r$1(s, "active-selected", a) : l$1 ? r$1(s, "selected", a) : r$1(s, $$1 ? "active" : "inactive", a);
1058
+ const l = this.value.includes(s.value) || s.group === !0 && this.isGroupSelected(`${s.value}`), $ = c === this.cursor;
1059
+ return !$ && typeof s.group == "string" && this.options[this.cursor].value === s.group ? r(s, l ? "group-active-selected" : "group-active", a) : $ && l ? r(s, "active-selected", a) : l ? r(s, "selected", a) : r(s, $ ? "active" : "inactive", a);
1060
1060
  }).join(`
1061
1061
  ${import_picocolors.default.cyan(o)} `)}
1062
1062
  ${import_picocolors.default.cyan(d)}
@@ -1065,13 +1065,13 @@ ${import_picocolors.default.cyan(d)}
1065
1065
  }
1066
1066
  }).prompt();
1067
1067
  }, Me = (t = "", n = "") => {
1068
- const r$1 = `
1068
+ const r = `
1069
1069
  ${t}
1070
1070
  `.split(`
1071
- `), i = stripVTControlCharacters(n).length, s = Math.max(r$1.reduce((a, l$1) => {
1072
- const $$1 = stripVTControlCharacters(l$1);
1073
- return $$1.length > a ? $$1.length : a;
1074
- }, 0), i) + 2, c = r$1.map((a) => `${import_picocolors.default.gray(o)} ${import_picocolors.default.dim(a)}${" ".repeat(s - stripVTControlCharacters(a).length)}${import_picocolors.default.gray(o)}`).join(`
1071
+ `), i = stripVTControlCharacters(n).length, s = Math.max(r.reduce((a, l) => {
1072
+ const $ = stripVTControlCharacters(l);
1073
+ return $.length > a ? $.length : a;
1074
+ }, 0), i) + 2, c = r.map((a) => `${import_picocolors.default.gray(o)} ${import_picocolors.default.dim(a)}${" ".repeat(s - stripVTControlCharacters(a).length)}${import_picocolors.default.gray(o)}`).join(`
1075
1075
  `);
1076
1076
  process.stdout.write(`${import_picocolors.default.gray(o)}
1077
1077
  ${import_picocolors.default.green(C)} ${import_picocolors.default.reset(n)} ${import_picocolors.default.gray(_.repeat(Math.max(s - i - 1, 1)) + me)}
@@ -1092,13 +1092,13 @@ ${import_picocolors.default.gray(d)} ${t}
1092
1092
  `);
1093
1093
  }, M = {
1094
1094
  message: (t = "", { symbol: n = import_picocolors.default.gray(o) } = {}) => {
1095
- const r$1 = [`${import_picocolors.default.gray(o)}`];
1095
+ const r = [`${import_picocolors.default.gray(o)}`];
1096
1096
  if (t) {
1097
1097
  const [i, ...s] = t.split(`
1098
1098
  `);
1099
- r$1.push(`${n} ${i}`, ...s.map((c) => `${import_picocolors.default.gray(o)} ${c}`));
1099
+ r.push(`${n} ${i}`, ...s.map((c) => `${import_picocolors.default.gray(o)} ${c}`));
1100
1100
  }
1101
- process.stdout.write(`${r$1.join(`
1101
+ process.stdout.write(`${r.join(`
1102
1102
  `)}
1103
1103
  `);
1104
1104
  },
@@ -1124,15 +1124,15 @@ ${import_picocolors.default.gray(d)} ${t}
1124
1124
  message: async (t, { symbol: n = import_picocolors.default.gray(o) } = {}) => {
1125
1125
  process.stdout.write(`${import_picocolors.default.gray(o)}
1126
1126
  ${n} `);
1127
- let r$1 = 3;
1127
+ let r = 3;
1128
1128
  for await (let i of t) {
1129
1129
  i = i.replace(/\n/g, `
1130
1130
  ${J}`), i.includes(`
1131
- `) && (r$1 = 3 + stripVTControlCharacters(i.slice(i.lastIndexOf(`
1131
+ `) && (r = 3 + stripVTControlCharacters(i.slice(i.lastIndexOf(`
1132
1132
  `))).length);
1133
1133
  const s = stripVTControlCharacters(i).length;
1134
- r$1 + s < process.stdout.columns ? (r$1 += s, process.stdout.write(i)) : (process.stdout.write(`
1135
- ${J}${i.trimStart()}`), r$1 = 3 + stripVTControlCharacters(i.trimStart()).length);
1134
+ r + s < process.stdout.columns ? (r += s, process.stdout.write(i)) : (process.stdout.write(`
1135
+ ${J}${i.trimStart()}`), r = 3 + stripVTControlCharacters(i.trimStart()).length);
1136
1136
  }
1137
1137
  process.stdout.write(`
1138
1138
  `);
@@ -1154,74 +1154,74 @@ ${J}${i.trimStart()}`), r$1 = 3 + stripVTControlCharacters(i.trimStart()).length
1154
1154
  "o",
1155
1155
  "O",
1156
1156
  "0"
1157
- ], r$1 = V ? 80 : 120, i = process.env.CI === "true";
1158
- let s, c, a = !1, l$1 = "", $$1, g$1 = performance.now();
1159
- const p$1 = (m$1) => {
1160
- a && N$1(m$1 > 1 ? "Something went wrong" : "Canceled", m$1);
1161
- }, v$1 = () => p$1(2), f = () => p$1(1), j = () => {
1162
- process.on("uncaughtExceptionMonitor", v$1), process.on("unhandledRejection", v$1), process.on("SIGINT", f), process.on("SIGTERM", f), process.on("exit", p$1);
1157
+ ], r = V ? 80 : 120, i = process.env.CI === "true";
1158
+ let s, c, a = !1, l = "", $, g = performance.now();
1159
+ const p = (m) => {
1160
+ a && N(m > 1 ? "Something went wrong" : "Canceled", m);
1161
+ }, v = () => p(2), f = () => p(1), j = () => {
1162
+ process.on("uncaughtExceptionMonitor", v), process.on("unhandledRejection", v), process.on("SIGINT", f), process.on("SIGTERM", f), process.on("exit", p);
1163
1163
  }, E = () => {
1164
- process.removeListener("uncaughtExceptionMonitor", v$1), process.removeListener("unhandledRejection", v$1), process.removeListener("SIGINT", f), process.removeListener("SIGTERM", f), process.removeListener("exit", p$1);
1165
- }, B$1 = () => {
1166
- if ($$1 === void 0) return;
1164
+ process.removeListener("uncaughtExceptionMonitor", v), process.removeListener("unhandledRejection", v), process.removeListener("SIGINT", f), process.removeListener("SIGTERM", f), process.removeListener("exit", p);
1165
+ }, B = () => {
1166
+ if ($ === void 0) return;
1167
1167
  i && process.stdout.write(`
1168
1168
  `);
1169
- const m$1 = $$1.split(`
1169
+ const m = $.split(`
1170
1170
  `);
1171
- process.stdout.write(import_src.cursor.move(-999, m$1.length - 1)), process.stdout.write(import_src.erase.down(m$1.length));
1172
- }, R$1 = (m$1) => m$1.replace(/\.+$/, ""), O$1 = (m$1) => {
1173
- const h$1 = (performance.now() - m$1) / 1e3, w$1 = Math.floor(h$1 / 60), I$1 = Math.floor(h$1 % 60);
1174
- return w$1 > 0 ? `[${w$1}m ${I$1}s]` : `[${I$1}s]`;
1175
- }, H$1 = (m$1 = "") => {
1176
- a = !0, s = fD(), l$1 = R$1(m$1), g$1 = performance.now(), process.stdout.write(`${import_picocolors.default.gray(o)}
1171
+ process.stdout.write(import_src.cursor.move(-999, m.length - 1)), process.stdout.write(import_src.erase.down(m.length));
1172
+ }, R = (m) => m.replace(/\.+$/, ""), O = (m) => {
1173
+ const h = (performance.now() - m) / 1e3, w = Math.floor(h / 60), I = Math.floor(h % 60);
1174
+ return w > 0 ? `[${w}m ${I}s]` : `[${I}s]`;
1175
+ }, H = (m = "") => {
1176
+ a = !0, s = fD(), l = R(m), g = performance.now(), process.stdout.write(`${import_picocolors.default.gray(o)}
1177
1177
  `);
1178
- let h$1 = 0, w$1 = 0;
1178
+ let h = 0, w = 0;
1179
1179
  j(), c = setInterval(() => {
1180
- if (i && l$1 === $$1) return;
1181
- B$1(), $$1 = l$1;
1182
- const I$1 = import_picocolors.default.magenta(n[h$1]);
1183
- if (i) process.stdout.write(`${I$1} ${l$1}...`);
1184
- else if (t === "timer") process.stdout.write(`${I$1} ${l$1} ${O$1(g$1)}`);
1180
+ if (i && l === $) return;
1181
+ B(), $ = l;
1182
+ const I = import_picocolors.default.magenta(n[h]);
1183
+ if (i) process.stdout.write(`${I} ${l}...`);
1184
+ else if (t === "timer") process.stdout.write(`${I} ${l} ${O(g)}`);
1185
1185
  else {
1186
- const z$1 = ".".repeat(Math.floor(w$1)).slice(0, 3);
1187
- process.stdout.write(`${I$1} ${l$1}${z$1}`);
1186
+ const z = ".".repeat(Math.floor(w)).slice(0, 3);
1187
+ process.stdout.write(`${I} ${l}${z}`);
1188
1188
  }
1189
- h$1 = h$1 + 1 < n.length ? h$1 + 1 : 0, w$1 = w$1 < n.length ? w$1 + .125 : 0;
1190
- }, r$1);
1191
- }, N$1 = (m$1 = "", h$1 = 0) => {
1192
- a = !1, clearInterval(c), B$1();
1193
- const w$1 = h$1 === 0 ? import_picocolors.default.green(C) : h$1 === 1 ? import_picocolors.default.red(L) : import_picocolors.default.red(W);
1194
- l$1 = R$1(m$1 ?? l$1), t === "timer" ? process.stdout.write(`${w$1} ${l$1} ${O$1(g$1)}
1195
- `) : process.stdout.write(`${w$1} ${l$1}
1189
+ h = h + 1 < n.length ? h + 1 : 0, w = w < n.length ? w + .125 : 0;
1190
+ }, r);
1191
+ }, N = (m = "", h = 0) => {
1192
+ a = !1, clearInterval(c), B();
1193
+ const w = h === 0 ? import_picocolors.default.green(C) : h === 1 ? import_picocolors.default.red(L) : import_picocolors.default.red(W);
1194
+ l = R(m ?? l), t === "timer" ? process.stdout.write(`${w} ${l} ${O(g)}
1195
+ `) : process.stdout.write(`${w} ${l}
1196
1196
  `), E(), s();
1197
1197
  };
1198
1198
  return {
1199
- start: H$1,
1200
- stop: N$1,
1201
- message: (m$1 = "") => {
1202
- l$1 = R$1(m$1 ?? l$1);
1199
+ start: H,
1200
+ stop: N,
1201
+ message: (m = "") => {
1202
+ l = R(m ?? l);
1203
1203
  }
1204
1204
  };
1205
1205
  }, Ce = async (t, n) => {
1206
- const r$1 = {}, i = Object.keys(t);
1206
+ const r = {}, i = Object.keys(t);
1207
1207
  for (const s of i) {
1208
- const c = t[s], a = await c({ results: r$1 })?.catch((l$1) => {
1209
- throw l$1;
1208
+ const c = t[s], a = await c({ results: r })?.catch((l) => {
1209
+ throw l;
1210
1210
  });
1211
1211
  if (typeof n?.onCancel == "function" && pD(a)) {
1212
- r$1[s] = "canceled", n.onCancel({ results: r$1 });
1212
+ r[s] = "canceled", n.onCancel({ results: r });
1213
1213
  continue;
1214
1214
  }
1215
- r$1[s] = a;
1215
+ r[s] = a;
1216
1216
  }
1217
- return r$1;
1217
+ return r;
1218
1218
  }, Te = async (t) => {
1219
1219
  for (const n of t) {
1220
1220
  if (n.enabled === !1) continue;
1221
- const r$1 = Y();
1222
- r$1.start(n.title);
1223
- const i = await n.task(r$1.message);
1224
- r$1.stop(i || n.title);
1221
+ const r = Y();
1222
+ r.start(n.title);
1223
+ const i = await n.task(r.message);
1224
+ r.stop(i || n.title);
1225
1225
  }
1226
1226
  };
1227
1227
 
@@ -1309,10 +1309,10 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
1309
1309
  */
1310
1310
  exports.shallowCopy = function(to, from) {
1311
1311
  from = from || {};
1312
- if (to !== null && to !== void 0) for (var p$1 in from) {
1313
- if (!hasOwn(from, p$1)) continue;
1314
- if (p$1 === "__proto__" || p$1 === "constructor") continue;
1315
- to[p$1] = from[p$1];
1312
+ if (to !== null && to !== void 0) for (var p in from) {
1313
+ if (!hasOwn(from, p)) continue;
1314
+ if (p === "__proto__" || p === "constructor") continue;
1315
+ to[p] = from[p];
1316
1316
  }
1317
1317
  return to;
1318
1318
  };
@@ -1332,11 +1332,11 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
1332
1332
  list = list || [];
1333
1333
  from = from || {};
1334
1334
  if (to !== null && to !== void 0) for (var i = 0; i < list.length; i++) {
1335
- var p$1 = list[i];
1336
- if (typeof from[p$1] != "undefined") {
1337
- if (!hasOwn(from, p$1)) continue;
1338
- if (p$1 === "__proto__" || p$1 === "constructor") continue;
1339
- to[p$1] = from[p$1];
1335
+ var p = list[i];
1336
+ if (typeof from[p] != "undefined") {
1337
+ if (!hasOwn(from, p)) continue;
1338
+ if (p === "__proto__" || p === "constructor") continue;
1339
+ to[p] = from[p];
1340
1340
  }
1341
1341
  }
1342
1342
  return to;
@@ -1396,9 +1396,9 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
1396
1396
  };
1397
1397
  })();
1398
1398
  exports.hasOwnOnlyObject = function(obj) {
1399
- var o$1 = exports.createNullProtoObjWherePossible();
1400
- for (var p$1 in obj) if (hasOwn(obj, p$1)) o$1[p$1] = obj[p$1];
1401
- return o$1;
1399
+ var o = exports.createNullProtoObjWherePossible();
1400
+ for (var p in obj) if (hasOwn(obj, p)) o[p] = obj[p];
1401
+ return o;
1402
1402
  };
1403
1403
  }));
1404
1404
 
@@ -1537,12 +1537,12 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
1537
1537
  * @param {Boolean} [isDir=false] whether the parent file path is a directory
1538
1538
  * @return {String}
1539
1539
  */
1540
- exports.resolveInclude = function(name$1, filename, isDir) {
1540
+ exports.resolveInclude = function(name, filename, isDir) {
1541
1541
  var dirname = path$2.dirname;
1542
1542
  var extname = path$2.extname;
1543
1543
  var resolve = path$2.resolve;
1544
- var includePath = resolve(isDir ? filename : dirname(filename), name$1);
1545
- if (!extname(name$1)) includePath += ".ejs";
1544
+ var includePath = resolve(isDir ? filename : dirname(filename), name);
1545
+ if (!extname(name)) includePath += ".ejs";
1546
1546
  return includePath;
1547
1547
  };
1548
1548
  /**
@@ -1552,10 +1552,10 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
1552
1552
  * @param {Array<String>} paths list of possible parent directory paths
1553
1553
  * @return {String}
1554
1554
  */
1555
- function resolvePaths(name$1, paths) {
1555
+ function resolvePaths(name, paths) {
1556
1556
  var filePath;
1557
- if (paths.some(function(v$1) {
1558
- filePath = exports.resolveInclude(name$1, v$1, true);
1557
+ if (paths.some(function(v) {
1558
+ filePath = exports.resolveInclude(name, v, true);
1559
1559
  return fs$1.existsSync(filePath);
1560
1560
  })) return filePath;
1561
1561
  }
@@ -1566,22 +1566,22 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
1566
1566
  * @param {Options} options compilation options
1567
1567
  * @return {String}
1568
1568
  */
1569
- function getIncludePath(path$3, options) {
1569
+ function getIncludePath(path, options) {
1570
1570
  var includePath;
1571
1571
  var filePath;
1572
1572
  var views = options.views;
1573
- var match = /^[A-Za-z]+:\\|^\//.exec(path$3);
1573
+ var match = /^[A-Za-z]+:\\|^\//.exec(path);
1574
1574
  if (match && match.length) {
1575
- path$3 = path$3.replace(/^\/*/, "");
1576
- if (Array.isArray(options.root)) includePath = resolvePaths(path$3, options.root);
1577
- else includePath = exports.resolveInclude(path$3, options.root || "/", true);
1575
+ path = path.replace(/^\/*/, "");
1576
+ if (Array.isArray(options.root)) includePath = resolvePaths(path, options.root);
1577
+ else includePath = exports.resolveInclude(path, options.root || "/", true);
1578
1578
  } else {
1579
1579
  if (options.filename) {
1580
- filePath = exports.resolveInclude(path$3, options.filename);
1580
+ filePath = exports.resolveInclude(path, options.filename);
1581
1581
  if (fs$1.existsSync(filePath)) includePath = filePath;
1582
1582
  }
1583
- if (!includePath && Array.isArray(views)) includePath = resolvePaths(path$3, views);
1584
- if (!includePath && typeof options.includer !== "function") throw new Error("Could not find the include file \"" + options.escapeFunction(path$3) + "\"");
1583
+ if (!includePath && Array.isArray(views)) includePath = resolvePaths(path, views);
1584
+ if (!includePath && typeof options.includer !== "function") throw new Error("Could not find the include file \"" + options.escapeFunction(path) + "\"");
1585
1585
  }
1586
1586
  return includePath;
1587
1587
  }
@@ -1673,11 +1673,11 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
1673
1673
  * Depending on the value of `options.client`, either type might be returned
1674
1674
  * @static
1675
1675
  */
1676
- function includeFile(path$3, options) {
1676
+ function includeFile(path, options) {
1677
1677
  var opts = utils.shallowCopy(utils.createNullProtoObjWherePossible(), options);
1678
- opts.filename = getIncludePath(path$3, opts);
1678
+ opts.filename = getIncludePath(path, opts);
1679
1679
  if (typeof options.includer === "function") {
1680
- var includerResult = options.includer(path$3, opts.filename);
1680
+ var includerResult = options.includer(path, opts.filename);
1681
1681
  if (includerResult) {
1682
1682
  if (includerResult.filename) opts.filename = includerResult.filename;
1683
1683
  if (includerResult.template) return handleCache(opts, includerResult.template);
@@ -1752,9 +1752,9 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
1752
1752
  * Return value type depends on `opts.async`.
1753
1753
  * @public
1754
1754
  */
1755
- exports.render = function(template, d$2, o$1) {
1756
- var data = d$2 || utils.createNullProtoObjWherePossible();
1757
- var opts = o$1 || utils.createNullProtoObjWherePossible();
1755
+ exports.render = function(template, d, o) {
1756
+ var data = d || utils.createNullProtoObjWherePossible();
1757
+ var opts = o || utils.createNullProtoObjWherePossible();
1758
1758
  if (arguments.length == 2) utils.shallowCopyFromList(opts, data, _OPTS_PASSABLE_WITH_DATA);
1759
1759
  return handleCache(opts, template)(data);
1760
1760
  };
@@ -1881,10 +1881,10 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
1881
1881
  if (opts.destructuredLocals && opts.destructuredLocals.length) {
1882
1882
  var destructuring = " var __locals = (" + opts.localsName + " || {}),\n";
1883
1883
  for (var i = 0; i < opts.destructuredLocals.length; i++) {
1884
- var name$1 = opts.destructuredLocals[i];
1885
- if (!_JS_IDENTIFIER.test(name$1)) throw new Error("destructuredLocals[" + i + "] is not a valid JS identifier.");
1884
+ var name = opts.destructuredLocals[i];
1885
+ if (!_JS_IDENTIFIER.test(name)) throw new Error("destructuredLocals[" + i + "] is not a valid JS identifier.");
1886
1886
  if (i > 0) destructuring += ",\n ";
1887
- destructuring += name$1 + " = __locals." + name$1;
1887
+ destructuring += name + " = __locals." + name;
1888
1888
  }
1889
1889
  prepended += destructuring + ";\n";
1890
1890
  }
@@ -1907,31 +1907,31 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
1907
1907
  try {
1908
1908
  if (opts.async) try {
1909
1909
  ctor = new Function("return (async function(){}).constructor;")();
1910
- } catch (e$1) {
1911
- if (e$1 instanceof SyntaxError) throw new Error("This environment does not support async/await");
1912
- else throw e$1;
1910
+ } catch (e) {
1911
+ if (e instanceof SyntaxError) throw new Error("This environment does not support async/await");
1912
+ else throw e;
1913
1913
  }
1914
1914
  else ctor = Function;
1915
1915
  fn = new ctor(opts.localsName + ", escapeFn, include, rethrow", src);
1916
- } catch (e$1) {
1916
+ } catch (e) {
1917
1917
  // istanbul ignore else
1918
- if (e$1 instanceof SyntaxError) {
1919
- if (opts.filename) e$1.message += " in " + opts.filename;
1920
- e$1.message += " while compiling ejs\n\n";
1921
- e$1.message += "If the above error is not helpful, you may want to try EJS-Lint:\n";
1922
- e$1.message += "https://github.com/RyanZim/EJS-Lint";
1918
+ if (e instanceof SyntaxError) {
1919
+ if (opts.filename) e.message += " in " + opts.filename;
1920
+ e.message += " while compiling ejs\n\n";
1921
+ e.message += "If the above error is not helpful, you may want to try EJS-Lint:\n";
1922
+ e.message += "https://github.com/RyanZim/EJS-Lint";
1923
1923
  if (!opts.async) {
1924
- e$1.message += "\n";
1925
- e$1.message += "Or, if you meant to create an async function, pass `async: true` as an option.";
1924
+ e.message += "\n";
1925
+ e.message += "Or, if you meant to create an async function, pass `async: true` as an option.";
1926
1926
  }
1927
1927
  }
1928
- throw e$1;
1928
+ throw e;
1929
1929
  }
1930
1930
  var returnedFn = opts.client ? fn : function anonymous(data) {
1931
- var include = function(path$3, includeData) {
1932
- var d$2 = utils.shallowCopy(utils.createNullProtoObjWherePossible(), data);
1933
- if (includeData) d$2 = utils.shallowCopy(d$2, includeData);
1934
- return includeFile(path$3, opts)(d$2);
1931
+ var include = function(path, includeData) {
1932
+ var d = utils.shallowCopy(utils.createNullProtoObjWherePossible(), data);
1933
+ if (includeData) d = utils.shallowCopy(d, includeData);
1934
+ return includeFile(path, opts)(d);
1935
1935
  };
1936
1936
  return fn.apply(opts.context, [
1937
1937
  data || utils.createNullProtoObjWherePossible(),
@@ -1950,7 +1950,7 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
1950
1950
  enumerable: false,
1951
1951
  configurable: true
1952
1952
  });
1953
- } catch (e$1) {}
1953
+ } catch (e) {}
1954
1954
  }
1955
1955
  return returnedFn;
1956
1956
  },
@@ -1959,14 +1959,14 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
1959
1959
  this.templateText = this.templateText.replace(/[ \t]*<%_/gm, "<%_").replace(/_%>[ \t]*/gm, "_%>");
1960
1960
  var self = this;
1961
1961
  var matches = this.parseTemplateText();
1962
- var d$2 = this.opts.delimiter;
1963
- var o$1 = this.opts.openDelimiter;
1962
+ var d = this.opts.delimiter;
1963
+ var o = this.opts.openDelimiter;
1964
1964
  var c = this.opts.closeDelimiter;
1965
1965
  if (matches && matches.length) matches.forEach(function(line, index) {
1966
1966
  var closing;
1967
- if (line.indexOf(o$1 + d$2) === 0 && line.indexOf(o$1 + d$2 + d$2) !== 0) {
1967
+ if (line.indexOf(o + d) === 0 && line.indexOf(o + d + d) !== 0) {
1968
1968
  closing = matches[index + 2];
1969
- if (!(closing == d$2 + c || closing == "-" + d$2 + c || closing == "_" + d$2 + c)) throw new Error("Could not find matching close tag for \"" + line + "\".");
1969
+ if (!(closing == d + c || closing == "-" + d + c || closing == "_" + d + c)) throw new Error("Could not find matching close tag for \"" + line + "\".");
1970
1970
  }
1971
1971
  self.scanLine(line);
1972
1972
  });
@@ -2004,36 +2004,36 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
2004
2004
  },
2005
2005
  scanLine: function(line) {
2006
2006
  var self = this;
2007
- var d$2 = this.opts.delimiter;
2008
- var o$1 = this.opts.openDelimiter;
2007
+ var d = this.opts.delimiter;
2008
+ var o = this.opts.openDelimiter;
2009
2009
  var c = this.opts.closeDelimiter;
2010
2010
  var newLineCount = 0;
2011
2011
  newLineCount = line.split("\n").length - 1;
2012
2012
  switch (line) {
2013
- case o$1 + d$2:
2014
- case o$1 + d$2 + "_":
2013
+ case o + d:
2014
+ case o + d + "_":
2015
2015
  this.mode = Template.modes.EVAL;
2016
2016
  break;
2017
- case o$1 + d$2 + "=":
2017
+ case o + d + "=":
2018
2018
  this.mode = Template.modes.ESCAPED;
2019
2019
  break;
2020
- case o$1 + d$2 + "-":
2020
+ case o + d + "-":
2021
2021
  this.mode = Template.modes.RAW;
2022
2022
  break;
2023
- case o$1 + d$2 + "#":
2023
+ case o + d + "#":
2024
2024
  this.mode = Template.modes.COMMENT;
2025
2025
  break;
2026
- case o$1 + d$2 + d$2:
2026
+ case o + d + d:
2027
2027
  this.mode = Template.modes.LITERAL;
2028
- this.source += " ; __append(\"" + line.replace(o$1 + d$2 + d$2, o$1 + d$2) + "\")\n";
2028
+ this.source += " ; __append(\"" + line.replace(o + d + d, o + d) + "\")\n";
2029
2029
  break;
2030
- case d$2 + d$2 + c:
2030
+ case d + d + c:
2031
2031
  this.mode = Template.modes.LITERAL;
2032
- this.source += " ; __append(\"" + line.replace(d$2 + d$2 + c, d$2 + c) + "\")\n";
2032
+ this.source += " ; __append(\"" + line.replace(d + d + c, d + c) + "\")\n";
2033
2033
  break;
2034
- case d$2 + c:
2035
- case "-" + d$2 + c:
2036
- case "_" + d$2 + c:
2034
+ case d + c:
2035
+ case "-" + d + c:
2036
+ case "_" + d + c:
2037
2037
  if (this.mode == Template.modes.LITERAL) this._addOutput(line);
2038
2038
  this.mode = null;
2039
2039
  this.truncate = line.indexOf("-") === 0 || line.indexOf("_") === 0;
@@ -2118,7 +2118,7 @@ const gradientBanner = "\x1B[38;2;66;211;146mV\x1B[39m\x1B[38;2;66;211;146mu\x1B
2118
2118
  //#endregion
2119
2119
  //#region utils/deepMerge.ts
2120
2120
  const isObject = (val) => val && typeof val === "object";
2121
- const mergeArrayWithDedupe = (a, b$2) => Array.from(new Set([...a, ...b$2]));
2121
+ const mergeArrayWithDedupe = (a, b) => Array.from(new Set([...a, ...b]));
2122
2122
  /**
2123
2123
  * Recursively merge the content of the new object to the existing one
2124
2124
  * @param {Object} target the existing object
@@ -2147,8 +2147,8 @@ function sortDependencies(packageJson) {
2147
2147
  "optionalDependencies"
2148
2148
  ]) if (packageJson[depType]) {
2149
2149
  sorted[depType] = {};
2150
- Object.keys(packageJson[depType]).sort().forEach((name$1) => {
2151
- sorted[depType][name$1] = packageJson[depType][name$1];
2150
+ Object.keys(packageJson[depType]).sort().forEach((name) => {
2151
+ sorted[depType][name] = packageJson[depType][name];
2152
2152
  });
2153
2153
  }
2154
2154
  return {
@@ -2465,10 +2465,90 @@ function emptyRouterConfig(rootDir, needsTypeScript) {
2465
2465
  replaceContent(path.resolve(srcDir, needsTypeScript ? "router/index.ts" : "router/index.js"), (content) => content.replace(`import HomeView from '../views/HomeView.vue'\n`, "").replace(/routes:\s*\[[\s\S]*?\],/, "routes: [],"));
2466
2466
  }
2467
2467
 
2468
+ //#endregion
2469
+ //#region utils/applyVueBeta.ts
2470
+ const CORE_VUE_PACKAGES = [
2471
+ "vue",
2472
+ "@vue/compiler-core",
2473
+ "@vue/compiler-dom",
2474
+ "@vue/compiler-sfc",
2475
+ "@vue/compiler-ssr",
2476
+ "@vue/compiler-vapor",
2477
+ "@vue/reactivity",
2478
+ "@vue/runtime-core",
2479
+ "@vue/runtime-dom",
2480
+ "@vue/runtime-vapor",
2481
+ "@vue/server-renderer",
2482
+ "@vue/shared",
2483
+ "@vue/compat"
2484
+ ];
2485
+ function generateOverridesMap() {
2486
+ return Object.fromEntries(CORE_VUE_PACKAGES.map((name) => [name, "beta"]));
2487
+ }
2488
+ /**
2489
+ * Apply Vue 3.6 beta overrides to the project based on the package manager.
2490
+ * Different package managers have different mechanisms for version overrides:
2491
+ * - npm/bun: uses `overrides` field in package.json
2492
+ * - yarn: uses `resolutions` field in package.json
2493
+ * - pnpm: uses `overrides` and `peerDependencyRules` in pnpm-workspace.yaml
2494
+ */
2495
+ function applyVueBeta(root, packageManager, pkg) {
2496
+ const overrides = generateOverridesMap();
2497
+ if (packageManager === "npm" || packageManager === "bun") {
2498
+ pkg.overrides = {
2499
+ ...pkg.overrides,
2500
+ ...overrides
2501
+ };
2502
+ for (const dependencyName of CORE_VUE_PACKAGES) for (const dependencyType of [
2503
+ "dependencies",
2504
+ "devDependencies",
2505
+ "optionalDependencies"
2506
+ ]) if (pkg[dependencyType]?.[dependencyName]) pkg[dependencyType][dependencyName] = overrides[dependencyName];
2507
+ } else if (packageManager === "yarn") pkg.resolutions = {
2508
+ ...pkg.resolutions,
2509
+ ...overrides
2510
+ };
2511
+ else if (packageManager === "pnpm") {
2512
+ const yamlContent = `overrides:
2513
+ ${Object.entries(overrides).map(([key, value]) => ` '${key}': '${value}'`).join("\n")}
2514
+
2515
+ peerDependencyRules:
2516
+ allowAny:
2517
+ - 'vue'
2518
+ `;
2519
+ fs.writeFileSync(path$1.resolve(root, "pnpm-workspace.yaml"), yamlContent, "utf-8");
2520
+ }
2521
+ }
2522
+
2523
+ //#endregion
2524
+ //#region utils/packageManager.ts
2525
+ /**
2526
+ * Infers the package manager from the user agent string.
2527
+ * Falls back to npm if unable to detect.
2528
+ */
2529
+ function inferPackageManager() {
2530
+ const userAgent = process.env.npm_config_user_agent ?? "";
2531
+ if (/pnpm/.test(userAgent)) return "pnpm";
2532
+ if (/yarn/.test(userAgent)) return "yarn";
2533
+ if (/bun/.test(userAgent)) return "bun";
2534
+ return "npm";
2535
+ }
2536
+ /**
2537
+ * Creates an ordered list of package managers with the preferred one first.
2538
+ */
2539
+ function getPackageManagerOptions(preferred) {
2540
+ return [preferred, ...[
2541
+ "npm",
2542
+ "pnpm",
2543
+ "yarn",
2544
+ "bun"
2545
+ ].filter((pm) => pm !== preferred)];
2546
+ }
2547
+
2468
2548
  //#endregion
2469
2549
  //#region package.json
2470
2550
  var name = "create-vue";
2471
- var version = "3.19.0";
2551
+ var version = "3.21.0";
2472
2552
 
2473
2553
  //#endregion
2474
2554
  //#region index.ts
@@ -2491,7 +2571,8 @@ const FEATURE_FLAGS = [
2491
2571
  "prettier",
2492
2572
  "eslint-with-prettier",
2493
2573
  "oxlint",
2494
- "vite-beta"
2574
+ "vite-beta",
2575
+ "vue-beta"
2495
2576
  ];
2496
2577
  const FEATURE_OPTIONS = [
2497
2578
  {
@@ -2528,10 +2609,6 @@ const FEATURE_OPTIONS = [
2528
2609
  }
2529
2610
  ];
2530
2611
  const EXPERIMENTAL_FEATURE_OPTIONS = [
2531
- {
2532
- value: "oxlint",
2533
- label: language.needsOxlint.message
2534
- },
2535
2612
  {
2536
2613
  value: "oxfmt",
2537
2614
  label: language.needsOxfmt.message
@@ -2539,6 +2616,10 @@ const EXPERIMENTAL_FEATURE_OPTIONS = [
2539
2616
  {
2540
2617
  value: "vite-beta",
2541
2618
  label: language.needsViteBeta.message
2619
+ },
2620
+ {
2621
+ value: "vue-beta",
2622
+ label: language.needsVueBeta.message
2542
2623
  }
2543
2624
  ];
2544
2625
  function isValidPackageName(projectName) {
@@ -2559,7 +2640,7 @@ function canSkipEmptying(dir) {
2559
2640
  }
2560
2641
  function emptyDir(dir) {
2561
2642
  if (!fs.existsSync(dir)) return;
2562
- postOrderDirectoryTraverse(dir, (dir$1) => fs.rmdirSync(dir$1), (file) => fs.unlinkSync(file));
2643
+ postOrderDirectoryTraverse(dir, (dir) => fs.rmdirSync(dir), (file) => fs.unlinkSync(file));
2563
2644
  }
2564
2645
  async function unwrapPrompt(maybeCancelPromise) {
2565
2646
  const result = await maybeCancelPromise;
@@ -2573,7 +2654,7 @@ const helpMessage = `\
2573
2654
  Usage: create-vue [FEATURE_FLAGS...] [OPTIONS...] [DIRECTORY]
2574
2655
 
2575
2656
  Create a new Vue.js project.
2576
- Start the CLI in interactive mode when no FEATURE_FLAGS is provided, or if the DIRECTORY argument is not a valid package name.
2657
+ Runs in interactive mode if started without feature flags, or if DIRECTORY is missing or not a valid package name.
2577
2658
 
2578
2659
  Options:
2579
2660
  --force
@@ -2608,21 +2689,27 @@ Available feature flags:
2608
2689
  If used without ${(0, import_picocolors.cyan)("--vitest")}, it will also add Nightwatch Component Testing.
2609
2690
  --eslint
2610
2691
  Add ESLint for code quality.
2611
- --eslint-with-prettier (Deprecated in favor of ${(0, import_picocolors.cyan)("--eslint --prettier")})
2612
- Add Prettier for code formatting in addition to ESLint.
2613
2692
  --prettier
2614
2693
  Add Prettier for code formatting.
2615
- --oxlint
2616
- Add Oxlint for code quality.
2617
2694
  --oxfmt
2618
2695
  Add Oxfmt for code formatting.
2619
2696
  --vite-beta
2620
2697
  Use Vite 8 Beta instead of Vite for building the project.
2698
+ --vue-beta
2699
+ Use Vue 3.6 Beta. Requires specifying a package manager in interactive mode.
2621
2700
 
2622
2701
  Unstable feature flags:
2623
2702
  --tests, --with-tests
2624
2703
  Add both unit testing and end-to-end testing support.
2625
2704
  Currently equivalent to ${(0, import_picocolors.cyan)("--vitest --cypress")}, but may change in the future.
2705
+
2706
+ Deprecated feature flags:
2707
+ --eslint-with-prettier
2708
+ Please use ${(0, import_picocolors.cyan)("--eslint --prettier")} instead.
2709
+ --oxlint
2710
+ Oxlint is now always included when ESLint is selected.
2711
+ --rolldown-vite
2712
+ Please use ${(0, import_picocolors.cyan)("--vite-beta")} instead.
2626
2713
  `;
2627
2714
  async function init() {
2628
2715
  const cwd = process.cwd();
@@ -2652,6 +2739,7 @@ async function init() {
2652
2739
  let targetDir = positionals[0];
2653
2740
  const defaultProjectName = targetDir || "vue-project";
2654
2741
  const forceOverwrite = argv.force;
2742
+ const inferredPackageManager = inferPackageManager();
2655
2743
  const result = {
2656
2744
  projectName: defaultProjectName,
2657
2745
  shouldOverwrite: forceOverwrite,
@@ -2717,6 +2805,16 @@ async function init() {
2717
2805
  options: EXPERIMENTAL_FEATURE_OPTIONS,
2718
2806
  required: false
2719
2807
  }));
2808
+ if (result.experimentFeatures.includes("vue-beta")) {
2809
+ const packageManagerOptions = getPackageManagerOptions(inferredPackageManager).map((pm) => ({
2810
+ value: pm,
2811
+ label: pm
2812
+ }));
2813
+ result.packageManager = await unwrapPrompt(ve({
2814
+ message: `${language.packageManagerSelection.message} ${(0, import_picocolors.dim)(language.packageManagerSelection.hint)}`,
2815
+ options: packageManagerOptions
2816
+ }));
2817
+ }
2720
2818
  }
2721
2819
  if (argv.bare) result.needsBareboneTemplates = true;
2722
2820
  else if (!isFeatureFlagsUsed) result.needsBareboneTemplates = await unwrapPrompt(ye({
@@ -2731,9 +2829,9 @@ async function init() {
2731
2829
  const needsVitest = argv.vitest || argv.tests || features.includes("vitest");
2732
2830
  const needsEslint = argv.eslint || argv["eslint-with-prettier"] || features.includes("eslint");
2733
2831
  const needsPrettier = argv.prettier || argv["eslint-with-prettier"] || features.includes("prettier");
2734
- const needsOxlint = experimentFeatures.includes("oxlint") || argv["oxlint"];
2735
2832
  const needsOxfmt = experimentFeatures.includes("oxfmt") || argv["oxfmt"];
2736
2833
  const needsViteBeta = experimentFeatures.includes("vite-beta") || argv["vite-beta"] || argv["rolldown-vite"];
2834
+ const needsVueBeta = experimentFeatures.includes("vue-beta") || argv["vue-beta"];
2737
2835
  const { e2eFramework } = result;
2738
2836
  const needsCypress = argv.cypress || argv.tests || e2eFramework === "cypress";
2739
2837
  const needsCypressCT = needsCypress && !needsVitest;
@@ -2751,7 +2849,7 @@ async function init() {
2751
2849
  fs.writeFileSync(path$1.resolve(root, "package.json"), JSON.stringify(pkg, null, 2));
2752
2850
  const templateRoot = fileURLToPath(new URL("./template", import.meta.url));
2753
2851
  const callbacks = [];
2754
- const render = function render$1(templateName) {
2852
+ const render = function render(templateName) {
2755
2853
  renderTemplate_default(path$1.resolve(templateRoot, templateName), root, callbacks);
2756
2854
  };
2757
2855
  const replaceVite = () => {
@@ -2805,11 +2903,15 @@ async function init() {
2805
2903
  if (needsCypressCT) render("linting/cypress-ct");
2806
2904
  if (needsPlaywright) render("linting/playwright");
2807
2905
  if (needsVitest) render("linting/vitest");
2906
+ render("linting/oxlint");
2907
+ callbacks.push(async (dataStore) => {
2908
+ const oxlintrcPath = path$1.resolve(root, ".oxlintrc.json");
2909
+ dataStore[oxlintrcPath] = { needsTypeScript };
2910
+ });
2808
2911
  if (needsPrettier || needsOxfmt) render("linting/formatter");
2809
- if (needsOxlint) render("linting/oxlint");
2810
2912
  }
2811
- if (needsPrettier) render("formatting/prettier");
2812
- else if (needsOxfmt) render("formatting/oxfmt");
2913
+ if (needsOxfmt) render("formatting/oxfmt");
2914
+ else if (needsPrettier) render("formatting/prettier");
2813
2915
  if (needsViteBeta) replaceVite();
2814
2916
  render(`code/${(needsTypeScript ? "typescript-" : "") + (needsRouter ? "router" : "default")}`);
2815
2917
  if (needsPinia && needsRouter) render("entry/router-and-pinia");
@@ -2853,8 +2955,13 @@ async function init() {
2853
2955
  removeCSSImport(root, needsTypeScript, needsCypressCT);
2854
2956
  if (needsRouter) emptyRouterConfig(root, needsTypeScript);
2855
2957
  }
2856
- const userAgent = process.env.npm_config_user_agent ?? "";
2857
- const packageManager = /pnpm/.test(userAgent) ? "pnpm" : /yarn/.test(userAgent) ? "yarn" : /bun/.test(userAgent) ? "bun" : "npm";
2958
+ const packageManager = result.packageManager ?? inferredPackageManager;
2959
+ if (needsVueBeta) {
2960
+ const pkgPath = path$1.resolve(root, "package.json");
2961
+ const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf-8"));
2962
+ applyVueBeta(root, packageManager, pkg);
2963
+ fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + "\n");
2964
+ }
2858
2965
  fs.writeFileSync(path$1.resolve(root, "README.md"), generateReadme({
2859
2966
  projectName: result.projectName ?? result.packageName ?? defaultProjectName,
2860
2967
  packageManager,
@@ -2881,8 +2988,8 @@ ${(0, import_picocolors.dim)("|")} ${language.infos.optionalGitCommand}
2881
2988
  ${(0, import_picocolors.bold)((0, import_picocolors.green)("git init && git add -A && git commit -m \"initial commit\""))}`;
2882
2989
  Se(outroMessage);
2883
2990
  }
2884
- init().catch((e$1) => {
2885
- console.error(e$1);
2991
+ init().catch((e) => {
2992
+ console.error(e);
2886
2993
  process.exit(1);
2887
2994
  });
2888
2995