@lynx-js/qrcode-rsbuild-plugin 0.3.4 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/517.js ADDED
@@ -0,0 +1,1456 @@
1
+ export const __webpack_ids__ = [
2
+ '517'
3
+ ];
4
+ export const __webpack_modules__ = {
5
+ "../../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js": function(module) {
6
+ let p = process || {}, argv = p.argv || [], env = p.env || {};
7
+ let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || "win32" === p.platform || (p.stdout || {}).isTTY && "dumb" !== env.TERM || !!env.CI);
8
+ let formatter = (open, close, replace = open)=>(input)=>{
9
+ let string = "" + input, index = string.indexOf(close, open.length);
10
+ return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
11
+ };
12
+ let replaceClose = (string, close, replace, index)=>{
13
+ let result = "", cursor = 0;
14
+ do {
15
+ result += string.substring(cursor, index) + replace;
16
+ cursor = index + close.length;
17
+ index = string.indexOf(close, cursor);
18
+ }while (~index);
19
+ return result + string.substring(cursor);
20
+ };
21
+ let createColors = (enabled = isColorSupported)=>{
22
+ let f = enabled ? formatter : ()=>String;
23
+ return {
24
+ isColorSupported: enabled,
25
+ reset: f("\x1b[0m", "\x1b[0m"),
26
+ bold: f("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m"),
27
+ dim: f("\x1b[2m", "\x1b[22m", "\x1b[22m\x1b[2m"),
28
+ italic: f("\x1b[3m", "\x1b[23m"),
29
+ underline: f("\x1b[4m", "\x1b[24m"),
30
+ inverse: f("\x1b[7m", "\x1b[27m"),
31
+ hidden: f("\x1b[8m", "\x1b[28m"),
32
+ strikethrough: f("\x1b[9m", "\x1b[29m"),
33
+ black: f("\x1b[30m", "\x1b[39m"),
34
+ red: f("\x1b[31m", "\x1b[39m"),
35
+ green: f("\x1b[32m", "\x1b[39m"),
36
+ yellow: f("\x1b[33m", "\x1b[39m"),
37
+ blue: f("\x1b[34m", "\x1b[39m"),
38
+ magenta: f("\x1b[35m", "\x1b[39m"),
39
+ cyan: f("\x1b[36m", "\x1b[39m"),
40
+ white: f("\x1b[37m", "\x1b[39m"),
41
+ gray: f("\x1b[90m", "\x1b[39m"),
42
+ bgBlack: f("\x1b[40m", "\x1b[49m"),
43
+ bgRed: f("\x1b[41m", "\x1b[49m"),
44
+ bgGreen: f("\x1b[42m", "\x1b[49m"),
45
+ bgYellow: f("\x1b[43m", "\x1b[49m"),
46
+ bgBlue: f("\x1b[44m", "\x1b[49m"),
47
+ bgMagenta: f("\x1b[45m", "\x1b[49m"),
48
+ bgCyan: f("\x1b[46m", "\x1b[49m"),
49
+ bgWhite: f("\x1b[47m", "\x1b[49m"),
50
+ blackBright: f("\x1b[90m", "\x1b[39m"),
51
+ redBright: f("\x1b[91m", "\x1b[39m"),
52
+ greenBright: f("\x1b[92m", "\x1b[39m"),
53
+ yellowBright: f("\x1b[93m", "\x1b[39m"),
54
+ blueBright: f("\x1b[94m", "\x1b[39m"),
55
+ magentaBright: f("\x1b[95m", "\x1b[39m"),
56
+ cyanBright: f("\x1b[96m", "\x1b[39m"),
57
+ whiteBright: f("\x1b[97m", "\x1b[39m"),
58
+ bgBlackBright: f("\x1b[100m", "\x1b[49m"),
59
+ bgRedBright: f("\x1b[101m", "\x1b[49m"),
60
+ bgGreenBright: f("\x1b[102m", "\x1b[49m"),
61
+ bgYellowBright: f("\x1b[103m", "\x1b[49m"),
62
+ bgBlueBright: f("\x1b[104m", "\x1b[49m"),
63
+ bgMagentaBright: f("\x1b[105m", "\x1b[49m"),
64
+ bgCyanBright: f("\x1b[106m", "\x1b[49m"),
65
+ bgWhiteBright: f("\x1b[107m", "\x1b[49m")
66
+ };
67
+ };
68
+ module.exports = createColors();
69
+ module.exports.createColors = createColors;
70
+ },
71
+ "../../../node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js": function(module) {
72
+ const ESC = '\x1B';
73
+ const CSI = `${ESC}[`;
74
+ const beep = '\u0007';
75
+ const cursor = {
76
+ to (x, y) {
77
+ if (!y) return `${CSI}${x + 1}G`;
78
+ return `${CSI}${y + 1};${x + 1}H`;
79
+ },
80
+ move (x, y) {
81
+ let ret = '';
82
+ if (x < 0) ret += `${CSI}${-x}D`;
83
+ else if (x > 0) ret += `${CSI}${x}C`;
84
+ if (y < 0) ret += `${CSI}${-y}A`;
85
+ else if (y > 0) ret += `${CSI}${y}B`;
86
+ return ret;
87
+ },
88
+ up: (count = 1)=>`${CSI}${count}A`,
89
+ down: (count = 1)=>`${CSI}${count}B`,
90
+ forward: (count = 1)=>`${CSI}${count}C`,
91
+ backward: (count = 1)=>`${CSI}${count}D`,
92
+ nextLine: (count = 1)=>`${CSI}E`.repeat(count),
93
+ prevLine: (count = 1)=>`${CSI}F`.repeat(count),
94
+ left: `${CSI}G`,
95
+ hide: `${CSI}?25l`,
96
+ show: `${CSI}?25h`,
97
+ save: `${ESC}7`,
98
+ restore: `${ESC}8`
99
+ };
100
+ const scroll = {
101
+ up: (count = 1)=>`${CSI}S`.repeat(count),
102
+ down: (count = 1)=>`${CSI}T`.repeat(count)
103
+ };
104
+ const erase = {
105
+ screen: `${CSI}2J`,
106
+ up: (count = 1)=>`${CSI}1J`.repeat(count),
107
+ down: (count = 1)=>`${CSI}J`.repeat(count),
108
+ line: `${CSI}2K`,
109
+ lineEnd: `${CSI}K`,
110
+ lineStart: `${CSI}1K`,
111
+ lines (count) {
112
+ let clear = '';
113
+ for(let i = 0; i < count; i++)clear += this.line + (i < count - 1 ? cursor.up() : '');
114
+ if (count) clear += cursor.left;
115
+ return clear;
116
+ }
117
+ };
118
+ module.exports = {
119
+ cursor,
120
+ scroll,
121
+ erase,
122
+ beep
123
+ };
124
+ },
125
+ "../../../node_modules/.pnpm/@clack+prompts@0.10.0/node_modules/@clack/prompts/dist/index.mjs": function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
126
+ __webpack_require__.r(__webpack_exports__);
127
+ __webpack_require__.d(__webpack_exports__, {
128
+ confirm: ()=>ye,
129
+ tasks: ()=>Te,
130
+ updateSettings: ()=>hD,
131
+ cancel: ()=>xe,
132
+ selectKey: ()=>we,
133
+ intro: ()=>Ie,
134
+ note: ()=>Me,
135
+ select: ()=>ve,
136
+ log: ()=>f,
137
+ spinner: ()=>dist_Y,
138
+ group: ()=>Ce,
139
+ isCancel: ()=>BD,
140
+ outro: ()=>Se,
141
+ stream: ()=>b,
142
+ groupMultiselect: ()=>be,
143
+ password: ()=>ge,
144
+ multiselect: ()=>fe,
145
+ text: ()=>he
146
+ });
147
+ var external_node_util_ = __webpack_require__("node:util");
148
+ var src = __webpack_require__("../../../node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js");
149
+ var external_node_process_ = __webpack_require__("node:process");
150
+ var external_node_readline_ = __webpack_require__("node:readline");
151
+ var external_node_tty_ = __webpack_require__("node:tty");
152
+ var picocolors = __webpack_require__("../../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
153
+ function J({ onlyFirst: t = !1 } = {}) {
154
+ const F = "[\\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=><~]))";
155
+ return new RegExp(F, t ? void 0 : "g");
156
+ }
157
+ const Q = J();
158
+ function T(t) {
159
+ if ("string" != typeof t) throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);
160
+ return t.replace(Q, "");
161
+ }
162
+ function dist_O(t) {
163
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
164
+ }
165
+ var P = {
166
+ exports: {}
167
+ };
168
+ (function(t) {
169
+ var u = {};
170
+ t.exports = u, u.eastAsianWidth = function(e) {
171
+ var s = e.charCodeAt(0), i = 2 == e.length ? e.charCodeAt(1) : 0, D = s;
172
+ return 55296 <= s && s <= 56319 && 56320 <= i && i <= 57343 && (s &= 1023, i &= 1023, D = s << 10 | i, D += 65536), 12288 == D || 65281 <= D && D <= 65376 || 65504 <= D && D <= 65510 ? "F" : 8361 == D || 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 || 172 == D || 175 == D || 10214 <= D && D <= 10221 || 10629 <= D && D <= 10630 ? "Na" : 161 == D || 164 == D || 167 <= D && D <= 168 || 170 == D || 173 <= D && D <= 174 || 176 <= D && D <= 180 || 182 <= D && D <= 186 || 188 <= D && D <= 191 || 198 == D || 208 == D || 215 <= D && D <= 216 || 222 <= D && D <= 225 || 230 == D || 232 <= D && D <= 234 || 236 <= D && D <= 237 || 240 == D || 242 <= D && D <= 243 || 247 <= D && D <= 250 || 252 == D || 254 == D || 257 == D || 273 == D || 275 == D || 283 == D || 294 <= D && D <= 295 || 299 == D || 305 <= D && D <= 307 || 312 == D || 319 <= D && D <= 322 || 324 == D || 328 <= D && D <= 331 || 333 == D || 338 <= D && D <= 339 || 358 <= D && D <= 359 || 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 == D || 713 <= D && D <= 715 || 717 == D || 720 == D || 728 <= D && D <= 731 || 733 == D || 735 == D || 768 <= D && D <= 879 || 913 <= D && D <= 929 || 931 <= D && D <= 937 || 945 <= D && D <= 961 || 963 <= D && D <= 969 || 1025 == D || 1040 <= D && D <= 1103 || 1105 == D || 8208 == D || 8211 <= D && D <= 8214 || 8216 <= D && D <= 8217 || 8220 <= D && D <= 8221 || 8224 <= D && D <= 8226 || 8228 <= D && D <= 8231 || 8240 == D || 8242 <= D && D <= 8243 || 8245 == D || 8251 == D || 8254 == D || 8308 == D || 8319 == D || 8321 <= D && D <= 8324 || 8364 == D || 8451 == D || 8453 == D || 8457 == D || 8467 == D || 8470 == D || 8481 <= D && D <= 8482 || 8486 == D || 8491 == D || 8531 <= D && D <= 8532 || 8539 <= D && D <= 8542 || 8544 <= D && D <= 8555 || 8560 <= D && D <= 8569 || 8585 == D || 8592 <= D && D <= 8601 || 8632 <= D && D <= 8633 || 8658 == D || 8660 == D || 8679 == D || 8704 == D || 8706 <= D && D <= 8707 || 8711 <= D && D <= 8712 || 8715 == D || 8719 == D || 8721 == D || 8725 == D || 8730 == D || 8733 <= D && D <= 8736 || 8739 == D || 8741 == D || 8743 <= D && D <= 8748 || 8750 == D || 8756 <= D && D <= 8759 || 8764 <= D && D <= 8765 || 8776 == D || 8780 == D || 8786 == D || 8800 <= D && D <= 8801 || 8804 <= D && D <= 8807 || 8810 <= D && D <= 8811 || 8814 <= D && D <= 8815 || 8834 <= D && D <= 8835 || 8838 <= D && D <= 8839 || 8853 == D || 8857 == D || 8869 == D || 8895 == D || 8978 == D || 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 || 9675 == D || 9678 <= D && D <= 9681 || 9698 <= D && D <= 9701 || 9711 == D || 9733 <= D && D <= 9734 || 9737 == D || 9742 <= D && D <= 9743 || 9748 <= D && D <= 9749 || 9756 == D || 9758 == D || 9792 == D || 9794 == D || 9824 <= D && D <= 9825 || 9827 <= D && D <= 9829 || 9831 <= D && D <= 9834 || 9836 <= D && D <= 9837 || 9839 == D || 9886 <= D && D <= 9887 || 9918 <= D && D <= 9919 || 9924 <= D && D <= 9933 || 9935 <= D && D <= 9953 || 9955 == D || 9960 <= D && D <= 9983 || 10045 == D || 10071 == D || 10102 <= D && D <= 10111 || 11093 <= D && D <= 11097 || 12872 <= D && D <= 12879 || 57344 <= D && D <= 63743 || 65024 <= D && D <= 65039 || 65533 == D || 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";
173
+ }, u.characterLength = function(e) {
174
+ var s = this.eastAsianWidth(e);
175
+ return "F" == s || "W" == s || "A" == s ? 2 : 1;
176
+ };
177
+ function F(e) {
178
+ return e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
179
+ }
180
+ u.length = function(e) {
181
+ for(var s = F(e), i = 0, D = 0; D < s.length; D++)i += this.characterLength(s[D]);
182
+ return i;
183
+ }, u.slice = function(e, s, i) {
184
+ textLen = u.length(e), s = s || 0, i = i || 1, s < 0 && (s = textLen + s), i < 0 && (i = textLen + i);
185
+ for(var D = "", C = 0, o = F(e), E = 0; E < o.length; E++){
186
+ var a = o[E], n = u.length(a);
187
+ if (C >= s - (2 == n ? 1 : 0)) if (C + n <= i) D += a;
188
+ else break;
189
+ C += n;
190
+ }
191
+ return D;
192
+ };
193
+ })(P);
194
+ var X = P.exports;
195
+ const DD = dist_O(X);
196
+ var uD = function() {
197
+ 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;
198
+ };
199
+ const FD = dist_O(uD);
200
+ function A(t, u = {}) {
201
+ if ("string" != typeof t || 0 === t.length || (u = {
202
+ ambiguousIsNarrow: !0,
203
+ ...u
204
+ }, t = T(t), 0 === t.length)) return 0;
205
+ t = t.replace(FD(), " ");
206
+ const F = u.ambiguousIsNarrow ? 1 : 2;
207
+ let e = 0;
208
+ for (const s of t){
209
+ const i = s.codePointAt(0);
210
+ if (!(i <= 31) && (!(i >= 127) || !(i <= 159)) && (!(i >= 768) || !(i <= 879))) switch(DD.eastAsianWidth(s)){
211
+ case "F":
212
+ case "W":
213
+ e += 2;
214
+ break;
215
+ case "A":
216
+ e += F;
217
+ break;
218
+ default:
219
+ e += 1;
220
+ }
221
+ }
222
+ return e;
223
+ }
224
+ const dist_m = 10, L = (t = 0)=>(u)=>`\x1B[${u + t}m`, dist_N = (t = 0)=>(u)=>`\x1B[${38 + t};5;${u}m`, dist_I = (t = 0)=>(u, F, e)=>`\x1B[${38 + t};2;${u};${F};${e}m`, dist_r = {
225
+ modifier: {
226
+ reset: [
227
+ 0,
228
+ 0
229
+ ],
230
+ bold: [
231
+ 1,
232
+ 22
233
+ ],
234
+ dim: [
235
+ 2,
236
+ 22
237
+ ],
238
+ italic: [
239
+ 3,
240
+ 23
241
+ ],
242
+ underline: [
243
+ 4,
244
+ 24
245
+ ],
246
+ overline: [
247
+ 53,
248
+ 55
249
+ ],
250
+ inverse: [
251
+ 7,
252
+ 27
253
+ ],
254
+ hidden: [
255
+ 8,
256
+ 28
257
+ ],
258
+ strikethrough: [
259
+ 9,
260
+ 29
261
+ ]
262
+ },
263
+ color: {
264
+ black: [
265
+ 30,
266
+ 39
267
+ ],
268
+ red: [
269
+ 31,
270
+ 39
271
+ ],
272
+ green: [
273
+ 32,
274
+ 39
275
+ ],
276
+ yellow: [
277
+ 33,
278
+ 39
279
+ ],
280
+ blue: [
281
+ 34,
282
+ 39
283
+ ],
284
+ magenta: [
285
+ 35,
286
+ 39
287
+ ],
288
+ cyan: [
289
+ 36,
290
+ 39
291
+ ],
292
+ white: [
293
+ 37,
294
+ 39
295
+ ],
296
+ blackBright: [
297
+ 90,
298
+ 39
299
+ ],
300
+ gray: [
301
+ 90,
302
+ 39
303
+ ],
304
+ grey: [
305
+ 90,
306
+ 39
307
+ ],
308
+ redBright: [
309
+ 91,
310
+ 39
311
+ ],
312
+ greenBright: [
313
+ 92,
314
+ 39
315
+ ],
316
+ yellowBright: [
317
+ 93,
318
+ 39
319
+ ],
320
+ blueBright: [
321
+ 94,
322
+ 39
323
+ ],
324
+ magentaBright: [
325
+ 95,
326
+ 39
327
+ ],
328
+ cyanBright: [
329
+ 96,
330
+ 39
331
+ ],
332
+ whiteBright: [
333
+ 97,
334
+ 39
335
+ ]
336
+ },
337
+ bgColor: {
338
+ bgBlack: [
339
+ 40,
340
+ 49
341
+ ],
342
+ bgRed: [
343
+ 41,
344
+ 49
345
+ ],
346
+ bgGreen: [
347
+ 42,
348
+ 49
349
+ ],
350
+ bgYellow: [
351
+ 43,
352
+ 49
353
+ ],
354
+ bgBlue: [
355
+ 44,
356
+ 49
357
+ ],
358
+ bgMagenta: [
359
+ 45,
360
+ 49
361
+ ],
362
+ bgCyan: [
363
+ 46,
364
+ 49
365
+ ],
366
+ bgWhite: [
367
+ 47,
368
+ 49
369
+ ],
370
+ bgBlackBright: [
371
+ 100,
372
+ 49
373
+ ],
374
+ bgGray: [
375
+ 100,
376
+ 49
377
+ ],
378
+ bgGrey: [
379
+ 100,
380
+ 49
381
+ ],
382
+ bgRedBright: [
383
+ 101,
384
+ 49
385
+ ],
386
+ bgGreenBright: [
387
+ 102,
388
+ 49
389
+ ],
390
+ bgYellowBright: [
391
+ 103,
392
+ 49
393
+ ],
394
+ bgBlueBright: [
395
+ 104,
396
+ 49
397
+ ],
398
+ bgMagentaBright: [
399
+ 105,
400
+ 49
401
+ ],
402
+ bgCyanBright: [
403
+ 106,
404
+ 49
405
+ ],
406
+ bgWhiteBright: [
407
+ 107,
408
+ 49
409
+ ]
410
+ }
411
+ };
412
+ Object.keys(dist_r.modifier);
413
+ const tD = Object.keys(dist_r.color), eD = Object.keys(dist_r.bgColor);
414
+ [
415
+ ...tD,
416
+ ...eD
417
+ ];
418
+ function sD() {
419
+ const t = new Map;
420
+ for (const [u, F] of Object.entries(dist_r)){
421
+ for (const [e, s] of Object.entries(F))dist_r[e] = {
422
+ open: `\x1B[${s[0]}m`,
423
+ close: `\x1B[${s[1]}m`
424
+ }, F[e] = dist_r[e], t.set(s[0], s[1]);
425
+ Object.defineProperty(dist_r, u, {
426
+ value: F,
427
+ enumerable: !1
428
+ });
429
+ }
430
+ return Object.defineProperty(dist_r, "codes", {
431
+ value: t,
432
+ enumerable: !1
433
+ }), dist_r.color.close = "\x1B[39m", dist_r.bgColor.close = "\x1B[49m", dist_r.color.ansi = L(), dist_r.color.ansi256 = dist_N(), dist_r.color.ansi16m = dist_I(), dist_r.bgColor.ansi = L(dist_m), dist_r.bgColor.ansi256 = dist_N(dist_m), dist_r.bgColor.ansi16m = dist_I(dist_m), Object.defineProperties(dist_r, {
434
+ rgbToAnsi256: {
435
+ value: (u, F, e)=>u === F && F === e ? u < 8 ? 16 : u > 248 ? 231 : Math.round((u - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(u / 255 * 5) + 6 * Math.round(F / 255 * 5) + Math.round(e / 255 * 5),
436
+ enumerable: !1
437
+ },
438
+ hexToRgb: {
439
+ value: (u)=>{
440
+ const F = /[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));
441
+ if (!F) return [
442
+ 0,
443
+ 0,
444
+ 0
445
+ ];
446
+ let [e] = F;
447
+ 3 === e.length && (e = [
448
+ ...e
449
+ ].map((i)=>i + i).join(""));
450
+ const s = Number.parseInt(e, 16);
451
+ return [
452
+ s >> 16 & 255,
453
+ s >> 8 & 255,
454
+ 255 & s
455
+ ];
456
+ },
457
+ enumerable: !1
458
+ },
459
+ hexToAnsi256: {
460
+ value: (u)=>dist_r.rgbToAnsi256(...dist_r.hexToRgb(u)),
461
+ enumerable: !1
462
+ },
463
+ ansi256ToAnsi: {
464
+ value: (u)=>{
465
+ if (u < 8) return 30 + u;
466
+ if (u < 16) return 90 + (u - 8);
467
+ let F, e, s;
468
+ if (u >= 232) F = ((u - 232) * 10 + 8) / 255, e = F, s = F;
469
+ else {
470
+ u -= 16;
471
+ const C = u % 36;
472
+ F = Math.floor(u / 36) / 5, e = Math.floor(C / 6) / 5, s = C % 6 / 5;
473
+ }
474
+ const i = 2 * Math.max(F, e, s);
475
+ if (0 === i) return 30;
476
+ let D = 30 + (Math.round(s) << 2 | Math.round(e) << 1 | Math.round(F));
477
+ return 2 === i && (D += 60), D;
478
+ },
479
+ enumerable: !1
480
+ },
481
+ rgbToAnsi: {
482
+ value: (u, F, e)=>dist_r.ansi256ToAnsi(dist_r.rgbToAnsi256(u, F, e)),
483
+ enumerable: !1
484
+ },
485
+ hexToAnsi: {
486
+ value: (u)=>dist_r.ansi256ToAnsi(dist_r.hexToAnsi256(u)),
487
+ enumerable: !1
488
+ }
489
+ }), dist_r;
490
+ }
491
+ const iD = sD(), dist_v = new Set([
492
+ "\x1B",
493
+ "\x9B"
494
+ ]), CD = 39, w = "\x07", W = "[", rD = "]", dist_R = "m", dist_y = `${rD}8;;`, V = (t)=>`${dist_v.values().next().value}${W}${t}${dist_R}`, dist_z = (t)=>`${dist_v.values().next().value}${dist_y}${t}${w}`, ED = (t)=>t.split(" ").map((u)=>A(u)), _ = (t, u, F)=>{
495
+ const e = [
496
+ ...u
497
+ ];
498
+ let s = !1, i = !1, D = A(T(t[t.length - 1]));
499
+ for (const [C, o] of e.entries()){
500
+ const E = A(o);
501
+ if (D + E <= F ? t[t.length - 1] += o : (t.push(o), D = 0), dist_v.has(o) && (s = !0, i = e.slice(C + 1).join("").startsWith(dist_y)), s) {
502
+ i ? o === w && (s = !1, i = !1) : o === dist_R && (s = !1);
503
+ continue;
504
+ }
505
+ D += E, D === F && C < e.length - 1 && (t.push(""), D = 0);
506
+ }
507
+ !D && t[t.length - 1].length > 0 && t.length > 1 && (t[t.length - 2] += t.pop());
508
+ }, nD = (t)=>{
509
+ const u = t.split(" ");
510
+ let F = u.length;
511
+ for(; F > 0 && !(A(u[F - 1]) > 0);)F--;
512
+ return F === u.length ? t : u.slice(0, F).join(" ") + u.slice(F).join("");
513
+ }, oD = (t, u, F = {})=>{
514
+ if (!1 !== F.trim && "" === t.trim()) return "";
515
+ let e = "", s, i;
516
+ const D = ED(t);
517
+ let C = [
518
+ ""
519
+ ];
520
+ for (const [E, a] of t.split(" ").entries()){
521
+ !1 !== F.trim && (C[C.length - 1] = C[C.length - 1].trimStart());
522
+ let n = A(C[C.length - 1]);
523
+ if (0 !== E && (n >= u && (!1 === F.wordWrap || !1 === F.trim) && (C.push(""), n = 0), (n > 0 || !1 === F.trim) && (C[C.length - 1] += " ", n++)), F.hard && D[E] > u) {
524
+ const B = u - n, p = 1 + Math.floor((D[E] - B - 1) / u);
525
+ Math.floor((D[E] - 1) / u) < p && C.push(""), _(C, a, u);
526
+ continue;
527
+ }
528
+ if (n + D[E] > u && n > 0 && D[E] > 0) {
529
+ if (!1 === F.wordWrap && n < u) {
530
+ _(C, a, u);
531
+ continue;
532
+ }
533
+ C.push("");
534
+ }
535
+ if (n + D[E] > u && !1 === F.wordWrap) {
536
+ _(C, a, u);
537
+ continue;
538
+ }
539
+ C[C.length - 1] += a;
540
+ }
541
+ !1 !== F.trim && (C = C.map((E)=>nD(E)));
542
+ const o = [
543
+ ...C.join(`
544
+ `)
545
+ ];
546
+ for (const [E, a] of o.entries()){
547
+ if (e += a, dist_v.has(a)) {
548
+ const { groups: B } = new RegExp(`(?:\\${W}(?<code>\\d+)m|\\${dist_y}(?<uri>.*)${w})`).exec(o.slice(E).join("")) || {
549
+ groups: {}
550
+ };
551
+ if (void 0 !== B.code) {
552
+ const p = Number.parseFloat(B.code);
553
+ s = p === CD ? void 0 : p;
554
+ } else void 0 !== B.uri && (i = 0 === B.uri.length ? void 0 : B.uri);
555
+ }
556
+ const n = iD.codes.get(Number(s));
557
+ o[E + 1] === `
558
+ ` ? (i && (e += dist_z("")), s && n && (e += V(n))) : a === `
559
+ ` && (s && n && (e += V(s)), i && (e += dist_z(i)));
560
+ }
561
+ return e;
562
+ };
563
+ function dist_G(t, u, F) {
564
+ return String(t).normalize().replace(/\r\n/g, `
565
+ `).split(`
566
+ `).map((e)=>oD(e, u, F)).join(`
567
+ `);
568
+ }
569
+ const aD = [
570
+ "up",
571
+ "down",
572
+ "left",
573
+ "right",
574
+ "space",
575
+ "enter",
576
+ "cancel"
577
+ ], dist_c = {
578
+ actions: new Set(aD),
579
+ aliases: new Map([
580
+ [
581
+ "k",
582
+ "up"
583
+ ],
584
+ [
585
+ "j",
586
+ "down"
587
+ ],
588
+ [
589
+ "h",
590
+ "left"
591
+ ],
592
+ [
593
+ "l",
594
+ "right"
595
+ ],
596
+ [
597
+ "",
598
+ "cancel"
599
+ ],
600
+ [
601
+ "escape",
602
+ "cancel"
603
+ ]
604
+ ])
605
+ };
606
+ function hD(t) {
607
+ for(const u in t){
608
+ const F = u;
609
+ if (!Object.hasOwn(t, F)) continue;
610
+ const e = t[F];
611
+ switch(F){
612
+ case "aliases":
613
+ for(const s in e)Object.hasOwn(e, s) && (dist_c.aliases.has(s) || dist_c.aliases.set(s, e[s]));
614
+ break;
615
+ }
616
+ }
617
+ }
618
+ function k(t, u) {
619
+ if ("string" == typeof t) return dist_c.aliases.get(t) === u;
620
+ for (const F of t)if (void 0 !== F && k(F, u)) return !0;
621
+ return !1;
622
+ }
623
+ function lD(t, u) {
624
+ if (t === u) return;
625
+ const F = t.split(`
626
+ `), e = u.split(`
627
+ `), s = [];
628
+ for(let i = 0; i < Math.max(F.length, e.length); i++)F[i] !== e[i] && s.push(i);
629
+ return s;
630
+ }
631
+ const xD = globalThis.process.platform.startsWith("win"), S = Symbol("clack:cancel");
632
+ function BD(t) {
633
+ return t === S;
634
+ }
635
+ function d(t, u) {
636
+ const F = t;
637
+ F.isTTY && F.setRawMode(u);
638
+ }
639
+ function cD({ input: t = external_node_process_.stdin, output: u = external_node_process_.stdout, overwrite: F = !0, hideCursor: e = !0 } = {}) {
640
+ const s = external_node_readline_.createInterface({
641
+ input: t,
642
+ output: u,
643
+ prompt: "",
644
+ tabSize: 1
645
+ });
646
+ external_node_readline_.emitKeypressEvents(t, s), t.isTTY && t.setRawMode(!0);
647
+ const i = (D, { name: C, sequence: o })=>{
648
+ const E = String(D);
649
+ if (k([
650
+ E,
651
+ C,
652
+ o
653
+ ], "cancel")) {
654
+ e && u.write(src.cursor.show), process.exit(0);
655
+ return;
656
+ }
657
+ if (!F) return;
658
+ const a = "return" === C ? 0 : -1, n = "return" === C ? -1 : 0;
659
+ external_node_readline_.moveCursor(u, a, n, ()=>{
660
+ external_node_readline_.clearLine(u, 1, ()=>{
661
+ t.once("keypress", i);
662
+ });
663
+ });
664
+ };
665
+ return e && u.write(src.cursor.hide), t.once("keypress", i), ()=>{
666
+ t.off("keypress", i), e && u.write(src.cursor.show), t.isTTY && !xD && t.setRawMode(!1), s.terminal = !1, s.close();
667
+ };
668
+ }
669
+ var AD = Object.defineProperty, pD = (t, u, F)=>u in t ? AD(t, u, {
670
+ enumerable: !0,
671
+ configurable: !0,
672
+ writable: !0,
673
+ value: F
674
+ }) : t[u] = F, dist_h = (t, u, F)=>(pD(t, "symbol" != typeof u ? u + "" : u, F), F);
675
+ class dist_x {
676
+ constructor(u, F = !0){
677
+ dist_h(this, "input"), dist_h(this, "output"), dist_h(this, "_abortSignal"), dist_h(this, "rl"), dist_h(this, "opts"), dist_h(this, "_render"), dist_h(this, "_track", !1), dist_h(this, "_prevFrame", ""), dist_h(this, "_subscribers", new Map), dist_h(this, "_cursor", 0), dist_h(this, "state", "initial"), dist_h(this, "error", ""), dist_h(this, "value");
678
+ const { input: e = external_node_process_.stdin, output: s = external_node_process_.stdout, render: i, signal: D, ...C } = u;
679
+ 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 = F, this._abortSignal = D, this.input = e, this.output = s;
680
+ }
681
+ unsubscribe() {
682
+ this._subscribers.clear();
683
+ }
684
+ setSubscriber(u, F) {
685
+ const e = this._subscribers.get(u) ?? [];
686
+ e.push(F), this._subscribers.set(u, e);
687
+ }
688
+ on(u, F) {
689
+ this.setSubscriber(u, {
690
+ cb: F
691
+ });
692
+ }
693
+ once(u, F) {
694
+ this.setSubscriber(u, {
695
+ cb: F,
696
+ once: !0
697
+ });
698
+ }
699
+ emit(u, ...F) {
700
+ const e = this._subscribers.get(u) ?? [], s = [];
701
+ for (const i of e)i.cb(...F), i.once && s.push(()=>e.splice(e.indexOf(i), 1));
702
+ for (const i of s)i();
703
+ }
704
+ prompt() {
705
+ return new Promise((u, F)=>{
706
+ if (this._abortSignal) {
707
+ if (this._abortSignal.aborted) return this.state = "cancel", this.close(), u(S);
708
+ this._abortSignal.addEventListener("abort", ()=>{
709
+ this.state = "cancel", this.close();
710
+ }, {
711
+ once: !0
712
+ });
713
+ }
714
+ const e = new external_node_tty_.WriteStream(0);
715
+ e._write = (s, i, D)=>{
716
+ this._track && (this.value = this.rl?.line.replace(/\t/g, ""), this._cursor = this.rl?.cursor ?? 0, this.emit("value", this.value)), D();
717
+ }, this.input.pipe(e), this.rl = external_node_readline_["default"].createInterface({
718
+ input: this.input,
719
+ output: e,
720
+ tabSize: 2,
721
+ prompt: "",
722
+ escapeCodeTimeout: 50
723
+ }), external_node_readline_["default"].emitKeypressEvents(this.input, this.rl), this.rl.prompt(), void 0 !== this.opts.initialValue && this._track && this.rl.write(this.opts.initialValue), this.input.on("keypress", this.onKeypress), d(this.input, !0), this.output.on("resize", this.render), this.render(), this.once("submit", ()=>{
724
+ this.output.write(src.cursor.show), this.output.off("resize", this.render), d(this.input, !1), u(this.value);
725
+ }), this.once("cancel", ()=>{
726
+ this.output.write(src.cursor.show), this.output.off("resize", this.render), d(this.input, !1), u(S);
727
+ });
728
+ });
729
+ }
730
+ onKeypress(u, F) {
731
+ if ("error" === this.state && (this.state = "active"), F?.name && (!this._track && dist_c.aliases.has(F.name) && this.emit("cursor", dist_c.aliases.get(F.name)), dist_c.actions.has(F.name) && this.emit("cursor", F.name)), u && ("y" === u.toLowerCase() || "n" === u.toLowerCase()) && this.emit("confirm", "y" === u.toLowerCase()), " " === u && this.opts.placeholder && (this.value || (this.rl?.write(this.opts.placeholder), this.emit("value", this.opts.placeholder))), u && this.emit("key", u.toLowerCase()), F?.name === "return") {
732
+ if (this.opts.validate) {
733
+ const e = this.opts.validate(this.value);
734
+ e && (this.error = e instanceof Error ? e.message : e, this.state = "error", this.rl?.write(this.value));
735
+ }
736
+ "error" !== this.state && (this.state = "submit");
737
+ }
738
+ k([
739
+ u,
740
+ F?.name,
741
+ F?.sequence
742
+ ], "cancel") && (this.state = "cancel"), ("submit" === this.state || "cancel" === this.state) && this.emit("finalize"), this.render(), ("submit" === this.state || "cancel" === this.state) && this.close();
743
+ }
744
+ close() {
745
+ this.input.unpipe(), this.input.removeListener("keypress", this.onKeypress), this.output.write(`
746
+ `), d(this.input, !1), this.rl?.close(), this.rl = void 0, this.emit(`${this.state}`, this.value), this.unsubscribe();
747
+ }
748
+ restoreCursor() {
749
+ const u = dist_G(this._prevFrame, process.stdout.columns, {
750
+ hard: !0
751
+ }).split(`
752
+ `).length - 1;
753
+ this.output.write(src.cursor.move(-999, -1 * u));
754
+ }
755
+ render() {
756
+ const u = dist_G(this._render(this) ?? "", process.stdout.columns, {
757
+ hard: !0
758
+ });
759
+ if (u !== this._prevFrame) {
760
+ if ("initial" === this.state) this.output.write(src.cursor.hide);
761
+ else {
762
+ const F = lD(this._prevFrame, u);
763
+ if (this.restoreCursor(), F && F?.length === 1) {
764
+ const e = F[0];
765
+ this.output.write(src.cursor.move(0, e)), this.output.write(src.erase.lines(1));
766
+ const s = u.split(`
767
+ `);
768
+ this.output.write(s[e]), this._prevFrame = u, this.output.write(src.cursor.move(0, s.length - e - 1));
769
+ return;
770
+ }
771
+ if (F && F?.length > 1) {
772
+ const e = F[0];
773
+ this.output.write(src.cursor.move(0, e)), this.output.write(src.erase.down());
774
+ const s = u.split(`
775
+ `).slice(e);
776
+ this.output.write(s.join(`
777
+ `)), this._prevFrame = u;
778
+ return;
779
+ }
780
+ this.output.write(src.erase.down());
781
+ }
782
+ this.output.write(u), "initial" === this.state && (this.state = "active"), this._prevFrame = u;
783
+ }
784
+ }
785
+ }
786
+ class fD extends dist_x {
787
+ get cursor() {
788
+ return this.value ? 0 : 1;
789
+ }
790
+ get _value() {
791
+ return 0 === this.cursor;
792
+ }
793
+ constructor(u){
794
+ super(u, !1), this.value = !!u.initialValue, this.on("value", ()=>{
795
+ this.value = this._value;
796
+ }), this.on("confirm", (F)=>{
797
+ this.output.write(src.cursor.move(0, -1)), this.value = F, this.state = "submit", this.close();
798
+ }), this.on("cursor", ()=>{
799
+ this.value = !this.value;
800
+ });
801
+ }
802
+ }
803
+ var gD = Object.defineProperty, vD = (t, u, F)=>u in t ? gD(t, u, {
804
+ enumerable: !0,
805
+ configurable: !0,
806
+ writable: !0,
807
+ value: F
808
+ }) : t[u] = F, K = (t, u, F)=>(vD(t, "symbol" != typeof u ? u + "" : u, F), F);
809
+ let dD = class extends dist_x {
810
+ constructor(u){
811
+ super(u, !1), K(this, "options"), K(this, "cursor", 0);
812
+ const { options: F } = u;
813
+ this.options = Object.entries(F).flatMap(([e, s])=>[
814
+ {
815
+ value: e,
816
+ group: !0,
817
+ label: e
818
+ },
819
+ ...s.map((i)=>({
820
+ ...i,
821
+ group: e
822
+ }))
823
+ ]), this.value = [
824
+ ...u.initialValues ?? []
825
+ ], this.cursor = Math.max(this.options.findIndex(({ value: e })=>e === u.cursorAt), 0), this.on("cursor", (e)=>{
826
+ switch(e){
827
+ case "left":
828
+ case "up":
829
+ this.cursor = 0 === this.cursor ? this.options.length - 1 : this.cursor - 1;
830
+ break;
831
+ case "down":
832
+ case "right":
833
+ this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
834
+ break;
835
+ case "space":
836
+ this.toggleValue();
837
+ break;
838
+ }
839
+ });
840
+ }
841
+ getGroupItems(u) {
842
+ return this.options.filter((F)=>F.group === u);
843
+ }
844
+ isGroupSelected(u) {
845
+ return this.getGroupItems(u).every((F)=>this.value.includes(F.value));
846
+ }
847
+ toggleValue() {
848
+ const u = this.options[this.cursor];
849
+ if (!0 === u.group) {
850
+ const F = u.value, e = this.getGroupItems(F);
851
+ this.isGroupSelected(F) ? this.value = this.value.filter((s)=>-1 === e.findIndex((i)=>i.value === s)) : this.value = [
852
+ ...this.value,
853
+ ...e.map((s)=>s.value)
854
+ ], this.value = Array.from(new Set(this.value));
855
+ } else {
856
+ const F = this.value.includes(u.value);
857
+ this.value = F ? this.value.filter((e)=>e !== u.value) : [
858
+ ...this.value,
859
+ u.value
860
+ ];
861
+ }
862
+ }
863
+ };
864
+ var bD = Object.defineProperty, mD = (t, u, F)=>u in t ? bD(t, u, {
865
+ enumerable: !0,
866
+ configurable: !0,
867
+ writable: !0,
868
+ value: F
869
+ }) : t[u] = F, Y = (t, u, F)=>(mD(t, "symbol" != typeof u ? u + "" : u, F), F);
870
+ let wD = class extends dist_x {
871
+ constructor(u){
872
+ super(u, !1), Y(this, "options"), Y(this, "cursor", 0), this.options = u.options, this.value = [
873
+ ...u.initialValues ?? []
874
+ ], this.cursor = Math.max(this.options.findIndex(({ value: F })=>F === u.cursorAt), 0), this.on("key", (F)=>{
875
+ "a" === F && this.toggleAll();
876
+ }), this.on("cursor", (F)=>{
877
+ switch(F){
878
+ case "left":
879
+ case "up":
880
+ this.cursor = 0 === this.cursor ? this.options.length - 1 : this.cursor - 1;
881
+ break;
882
+ case "down":
883
+ case "right":
884
+ this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
885
+ break;
886
+ case "space":
887
+ this.toggleValue();
888
+ break;
889
+ }
890
+ });
891
+ }
892
+ get _value() {
893
+ return this.options[this.cursor].value;
894
+ }
895
+ toggleAll() {
896
+ const u = this.value.length === this.options.length;
897
+ this.value = u ? [] : this.options.map((F)=>F.value);
898
+ }
899
+ toggleValue() {
900
+ const u = this.value.includes(this._value);
901
+ this.value = u ? this.value.filter((F)=>F !== this._value) : [
902
+ ...this.value,
903
+ this._value
904
+ ];
905
+ }
906
+ };
907
+ var yD = Object.defineProperty, _D = (t, u, F)=>u in t ? yD(t, u, {
908
+ enumerable: !0,
909
+ configurable: !0,
910
+ writable: !0,
911
+ value: F
912
+ }) : t[u] = F, Z = (t, u, F)=>(_D(t, "symbol" != typeof u ? u + "" : u, F), F);
913
+ class kD extends dist_x {
914
+ constructor({ mask: u, ...F }){
915
+ super(F), Z(this, "valueWithCursor", ""), Z(this, "_mask", "\u2022"), this._mask = u ?? "\u2022", this.on("finalize", ()=>{
916
+ this.valueWithCursor = this.masked;
917
+ }), this.on("value", ()=>{
918
+ if (this.cursor >= this.value.length) this.valueWithCursor = `${this.masked}${picocolors.inverse(picocolors.hidden("_"))}`;
919
+ else {
920
+ const e = this.masked.slice(0, this.cursor), s = this.masked.slice(this.cursor);
921
+ this.valueWithCursor = `${e}${picocolors.inverse(s[0])}${s.slice(1)}`;
922
+ }
923
+ });
924
+ }
925
+ get cursor() {
926
+ return this._cursor;
927
+ }
928
+ get masked() {
929
+ return this.value.replaceAll(/./g, this._mask);
930
+ }
931
+ }
932
+ var SD = Object.defineProperty, $D = (t, u, F)=>u in t ? SD(t, u, {
933
+ enumerable: !0,
934
+ configurable: !0,
935
+ writable: !0,
936
+ value: F
937
+ }) : t[u] = F, q = (t, u, F)=>($D(t, "symbol" != typeof u ? u + "" : u, F), F);
938
+ class jD extends dist_x {
939
+ constructor(u){
940
+ super(u, !1), q(this, "options"), q(this, "cursor", 0), this.options = u.options, this.cursor = this.options.findIndex(({ value: F })=>F === u.initialValue), -1 === this.cursor && (this.cursor = 0), this.changeValue(), this.on("cursor", (F)=>{
941
+ switch(F){
942
+ case "left":
943
+ case "up":
944
+ this.cursor = 0 === this.cursor ? this.options.length - 1 : this.cursor - 1;
945
+ break;
946
+ case "down":
947
+ case "right":
948
+ this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
949
+ break;
950
+ }
951
+ this.changeValue();
952
+ });
953
+ }
954
+ get _value() {
955
+ return this.options[this.cursor];
956
+ }
957
+ changeValue() {
958
+ this.value = this._value.value;
959
+ }
960
+ }
961
+ var MD = Object.defineProperty, TD = (t, u, F)=>u in t ? MD(t, u, {
962
+ enumerable: !0,
963
+ configurable: !0,
964
+ writable: !0,
965
+ value: F
966
+ }) : t[u] = F, dist_H = (t, u, F)=>(TD(t, "symbol" != typeof u ? u + "" : u, F), F);
967
+ class OD extends dist_x {
968
+ constructor(u){
969
+ super(u, !1), dist_H(this, "options"), dist_H(this, "cursor", 0), this.options = u.options;
970
+ const F = this.options.map(({ value: [e] })=>e?.toLowerCase());
971
+ this.cursor = Math.max(F.indexOf(u.initialValue), 0), this.on("key", (e)=>{
972
+ if (!F.includes(e)) return;
973
+ const s = this.options.find(({ value: [i] })=>i?.toLowerCase() === e);
974
+ s && (this.value = s.value, this.state = "submit", this.emit("submit"));
975
+ });
976
+ }
977
+ }
978
+ class PD extends dist_x {
979
+ get valueWithCursor() {
980
+ if ("submit" === this.state) return this.value;
981
+ if (this.cursor >= this.value.length) return `${this.value}\u2588`;
982
+ const u = this.value.slice(0, this.cursor), [F, ...e] = this.value.slice(this.cursor);
983
+ return `${u}${picocolors.inverse(F)}${e.join("")}`;
984
+ }
985
+ get cursor() {
986
+ return this._cursor;
987
+ }
988
+ constructor(u){
989
+ super(u), this.on("finalize", ()=>{
990
+ this.value || (this.value = u.defaultValue);
991
+ });
992
+ }
993
+ }
994
+ function ce() {
995
+ return "win32" !== external_node_process_["default"].platform ? "linux" !== external_node_process_["default"].env.TERM : !!external_node_process_["default"].env.CI || !!external_node_process_["default"].env.WT_SESSION || !!external_node_process_["default"].env.TERMINUS_SUBLIME || "{cmd::Cmder}" === external_node_process_["default"].env.ConEmuTask || "Terminus-Sublime" === external_node_process_["default"].env.TERM_PROGRAM || "vscode" === external_node_process_["default"].env.TERM_PROGRAM || "xterm-256color" === external_node_process_["default"].env.TERM || "alacritty" === external_node_process_["default"].env.TERM || "JetBrains-JediTerm" === external_node_process_["default"].env.TERMINAL_EMULATOR;
996
+ }
997
+ const dist_V = ce(), dist_u = (t, n)=>dist_V ? t : n, le = dist_u("\u25C6", "*"), dist_L = dist_u("\u25A0", "x"), dist_W = dist_u("\u25B2", "x"), dist_C = dist_u("\u25C7", "o"), ue = dist_u("\u250C", "T"), dist_o = dist_u("\u2502", "|"), dist_d = dist_u("\u2514", "\u2014"), dist_k = dist_u("\u25CF", ">"), dist_P = dist_u("\u25CB", " "), dist_A = dist_u("\u25FB", "[\u2022]"), dist_T = dist_u("\u25FC", "[+]"), dist_F = dist_u("\u25FB", "[ ]"), $e = dist_u("\u25AA", "\u2022"), dist_ = dist_u("\u2500", "-"), me = dist_u("\u256E", "+"), de = dist_u("\u251C", "+"), pe = dist_u("\u256F", "+"), dist_q = dist_u("\u25CF", "\u2022"), dist_D = dist_u("\u25C6", "*"), U = dist_u("\u25B2", "!"), dist_K = dist_u("\u25A0", "x"), dist_w = (t)=>{
998
+ switch(t){
999
+ case "initial":
1000
+ case "active":
1001
+ return picocolors.cyan(le);
1002
+ case "cancel":
1003
+ return picocolors.red(dist_L);
1004
+ case "error":
1005
+ return picocolors.yellow(dist_W);
1006
+ case "submit":
1007
+ return picocolors.green(dist_C);
1008
+ }
1009
+ }, dist_B = (t)=>{
1010
+ const { cursor: n, options: s, style: r } = t, i = t.maxItems ?? Number.POSITIVE_INFINITY, a = Math.max(process.stdout.rows - 4, 0), c = Math.min(a, Math.max(i, 5));
1011
+ let l = 0;
1012
+ n >= l + c - 3 ? l = Math.max(Math.min(n - c + 3, s.length - c), 0) : n < l + 2 && (l = Math.max(n - 2, 0));
1013
+ const $ = c < s.length && l > 0, p = c < s.length && l + c < s.length;
1014
+ return s.slice(l, l + c).map((M, v, x)=>{
1015
+ const j = 0 === v && $, E = v === x.length - 1 && p;
1016
+ return j || E ? picocolors.dim("...") : r(M, v + l === n);
1017
+ });
1018
+ }, he = (t)=>new PD({
1019
+ validate: t.validate,
1020
+ placeholder: t.placeholder,
1021
+ defaultValue: t.defaultValue,
1022
+ initialValue: t.initialValue,
1023
+ render () {
1024
+ const n = `${picocolors.gray(dist_o)}
1025
+ ${dist_w(this.state)} ${t.message}
1026
+ `, s = t.placeholder ? picocolors.inverse(t.placeholder[0]) + picocolors.dim(t.placeholder.slice(1)) : picocolors.inverse(picocolors.hidden("_")), r = this.value ? this.valueWithCursor : s;
1027
+ switch(this.state){
1028
+ case "error":
1029
+ return `${n.trim()}
1030
+ ${picocolors.yellow(dist_o)} ${r}
1031
+ ${picocolors.yellow(dist_d)} ${picocolors.yellow(this.error)}
1032
+ `;
1033
+ case "submit":
1034
+ return `${n}${picocolors.gray(dist_o)} ${picocolors.dim(this.value || t.placeholder)}`;
1035
+ case "cancel":
1036
+ return `${n}${picocolors.gray(dist_o)} ${picocolors.strikethrough(picocolors.dim(this.value ?? ""))}${this.value?.trim() ? `
1037
+ ${picocolors.gray(dist_o)}` : ""}`;
1038
+ default:
1039
+ return `${n}${picocolors.cyan(dist_o)} ${r}
1040
+ ${picocolors.cyan(dist_d)}
1041
+ `;
1042
+ }
1043
+ }
1044
+ }).prompt(), ge = (t)=>new kD({
1045
+ validate: t.validate,
1046
+ mask: t.mask ?? $e,
1047
+ render () {
1048
+ const n = `${picocolors.gray(dist_o)}
1049
+ ${dist_w(this.state)} ${t.message}
1050
+ `, s = this.valueWithCursor, r = this.masked;
1051
+ switch(this.state){
1052
+ case "error":
1053
+ return `${n.trim()}
1054
+ ${picocolors.yellow(dist_o)} ${r}
1055
+ ${picocolors.yellow(dist_d)} ${picocolors.yellow(this.error)}
1056
+ `;
1057
+ case "submit":
1058
+ return `${n}${picocolors.gray(dist_o)} ${picocolors.dim(r)}`;
1059
+ case "cancel":
1060
+ return `${n}${picocolors.gray(dist_o)} ${picocolors.strikethrough(picocolors.dim(r ?? ""))}${r ? `
1061
+ ${picocolors.gray(dist_o)}` : ""}`;
1062
+ default:
1063
+ return `${n}${picocolors.cyan(dist_o)} ${s}
1064
+ ${picocolors.cyan(dist_d)}
1065
+ `;
1066
+ }
1067
+ }
1068
+ }).prompt(), ye = (t)=>{
1069
+ const n = t.active ?? "Yes", s = t.inactive ?? "No";
1070
+ return new fD({
1071
+ active: n,
1072
+ inactive: s,
1073
+ initialValue: t.initialValue ?? !0,
1074
+ render () {
1075
+ const r = `${picocolors.gray(dist_o)}
1076
+ ${dist_w(this.state)} ${t.message}
1077
+ `, i = this.value ? n : s;
1078
+ switch(this.state){
1079
+ case "submit":
1080
+ return `${r}${picocolors.gray(dist_o)} ${picocolors.dim(i)}`;
1081
+ case "cancel":
1082
+ return `${r}${picocolors.gray(dist_o)} ${picocolors.strikethrough(picocolors.dim(i))}
1083
+ ${picocolors.gray(dist_o)}`;
1084
+ default:
1085
+ return `${r}${picocolors.cyan(dist_o)} ${this.value ? `${picocolors.green(dist_k)} ${n}` : `${picocolors.dim(dist_P)} ${picocolors.dim(n)}`} ${picocolors.dim("/")} ${this.value ? `${picocolors.dim(dist_P)} ${picocolors.dim(s)}` : `${picocolors.green(dist_k)} ${s}`}
1086
+ ${picocolors.cyan(dist_d)}
1087
+ `;
1088
+ }
1089
+ }
1090
+ }).prompt();
1091
+ }, ve = (t)=>{
1092
+ const n = (s, r)=>{
1093
+ const i = s.label ?? String(s.value);
1094
+ switch(r){
1095
+ case "selected":
1096
+ return `${picocolors.dim(i)}`;
1097
+ case "active":
1098
+ return `${picocolors.green(dist_k)} ${i} ${s.hint ? picocolors.dim(`(${s.hint})`) : ""}`;
1099
+ case "cancelled":
1100
+ return `${picocolors.strikethrough(picocolors.dim(i))}`;
1101
+ default:
1102
+ return `${picocolors.dim(dist_P)} ${picocolors.dim(i)}`;
1103
+ }
1104
+ };
1105
+ return new jD({
1106
+ options: t.options,
1107
+ initialValue: t.initialValue,
1108
+ render () {
1109
+ const s = `${picocolors.gray(dist_o)}
1110
+ ${dist_w(this.state)} ${t.message}
1111
+ `;
1112
+ switch(this.state){
1113
+ case "submit":
1114
+ return `${s}${picocolors.gray(dist_o)} ${n(this.options[this.cursor], "selected")}`;
1115
+ case "cancel":
1116
+ return `${s}${picocolors.gray(dist_o)} ${n(this.options[this.cursor], "cancelled")}
1117
+ ${picocolors.gray(dist_o)}`;
1118
+ default:
1119
+ return `${s}${picocolors.cyan(dist_o)} ${dist_B({
1120
+ cursor: this.cursor,
1121
+ options: this.options,
1122
+ maxItems: t.maxItems,
1123
+ style: (r, i)=>n(r, i ? "active" : "inactive")
1124
+ }).join(`
1125
+ ${picocolors.cyan(dist_o)} `)}
1126
+ ${picocolors.cyan(dist_d)}
1127
+ `;
1128
+ }
1129
+ }
1130
+ }).prompt();
1131
+ }, we = (t)=>{
1132
+ const n = (s, r = "inactive")=>{
1133
+ const i = s.label ?? String(s.value);
1134
+ return "selected" === r ? `${picocolors.dim(i)}` : "cancelled" === r ? `${picocolors.strikethrough(picocolors.dim(i))}` : "active" === r ? `${picocolors.bgCyan(picocolors.gray(` ${s.value} `))} ${i} ${s.hint ? picocolors.dim(`(${s.hint})`) : ""}` : `${picocolors.gray(picocolors.bgWhite(picocolors.inverse(` ${s.value} `)))} ${i} ${s.hint ? picocolors.dim(`(${s.hint})`) : ""}`;
1135
+ };
1136
+ return new OD({
1137
+ options: t.options,
1138
+ initialValue: t.initialValue,
1139
+ render () {
1140
+ const s = `${picocolors.gray(dist_o)}
1141
+ ${dist_w(this.state)} ${t.message}
1142
+ `;
1143
+ switch(this.state){
1144
+ case "submit":
1145
+ return `${s}${picocolors.gray(dist_o)} ${n(this.options.find((r)=>r.value === this.value) ?? t.options[0], "selected")}`;
1146
+ case "cancel":
1147
+ return `${s}${picocolors.gray(dist_o)} ${n(this.options[0], "cancelled")}
1148
+ ${picocolors.gray(dist_o)}`;
1149
+ default:
1150
+ return `${s}${picocolors.cyan(dist_o)} ${this.options.map((r, i)=>n(r, i === this.cursor ? "active" : "inactive")).join(`
1151
+ ${picocolors.cyan(dist_o)} `)}
1152
+ ${picocolors.cyan(dist_d)}
1153
+ `;
1154
+ }
1155
+ }
1156
+ }).prompt();
1157
+ }, fe = (t)=>{
1158
+ const n = (s, r)=>{
1159
+ const i = s.label ?? String(s.value);
1160
+ return "active" === r ? `${picocolors.cyan(dist_A)} ${i} ${s.hint ? picocolors.dim(`(${s.hint})`) : ""}` : "selected" === r ? `${picocolors.green(dist_T)} ${picocolors.dim(i)}` : "cancelled" === r ? `${picocolors.strikethrough(picocolors.dim(i))}` : "active-selected" === r ? `${picocolors.green(dist_T)} ${i} ${s.hint ? picocolors.dim(`(${s.hint})`) : ""}` : "submitted" === r ? `${picocolors.dim(i)}` : `${picocolors.dim(dist_F)} ${picocolors.dim(i)}`;
1161
+ };
1162
+ return new wD({
1163
+ options: t.options,
1164
+ initialValues: t.initialValues,
1165
+ required: t.required ?? !0,
1166
+ cursorAt: t.cursorAt,
1167
+ validate (s) {
1168
+ if (this.required && 0 === s.length) return `Please select at least one option.
1169
+ ${picocolors.reset(picocolors.dim(`Press ${picocolors.gray(picocolors.bgWhite(picocolors.inverse(" space ")))} to select, ${picocolors.gray(picocolors.bgWhite(picocolors.inverse(" enter ")))} to submit`))}`;
1170
+ },
1171
+ render () {
1172
+ const s = `${picocolors.gray(dist_o)}
1173
+ ${dist_w(this.state)} ${t.message}
1174
+ `, r = (i, a)=>{
1175
+ const c = this.value.includes(i.value);
1176
+ return a && c ? n(i, "active-selected") : c ? n(i, "selected") : n(i, a ? "active" : "inactive");
1177
+ };
1178
+ switch(this.state){
1179
+ case "submit":
1180
+ return `${s}${picocolors.gray(dist_o)} ${this.options.filter(({ value: i })=>this.value.includes(i)).map((i)=>n(i, "submitted")).join(picocolors.dim(", ")) || picocolors.dim("none")}`;
1181
+ case "cancel":
1182
+ {
1183
+ const i = this.options.filter(({ value: a })=>this.value.includes(a)).map((a)=>n(a, "cancelled")).join(picocolors.dim(", "));
1184
+ return `${s}${picocolors.gray(dist_o)} ${i.trim() ? `${i}
1185
+ ${picocolors.gray(dist_o)}` : ""}`;
1186
+ }
1187
+ case "error":
1188
+ {
1189
+ const i = this.error.split(`
1190
+ `).map((a, c)=>0 === c ? `${picocolors.yellow(dist_d)} ${picocolors.yellow(a)}` : ` ${a}`).join(`
1191
+ `);
1192
+ return `${s + picocolors.yellow(dist_o)} ${dist_B({
1193
+ options: this.options,
1194
+ cursor: this.cursor,
1195
+ maxItems: t.maxItems,
1196
+ style: r
1197
+ }).join(`
1198
+ ${picocolors.yellow(dist_o)} `)}
1199
+ ${i}
1200
+ `;
1201
+ }
1202
+ default:
1203
+ return `${s}${picocolors.cyan(dist_o)} ${dist_B({
1204
+ options: this.options,
1205
+ cursor: this.cursor,
1206
+ maxItems: t.maxItems,
1207
+ style: r
1208
+ }).join(`
1209
+ ${picocolors.cyan(dist_o)} `)}
1210
+ ${picocolors.cyan(dist_d)}
1211
+ `;
1212
+ }
1213
+ }
1214
+ }).prompt();
1215
+ }, be = (t)=>{
1216
+ const n = (s, r, i = [])=>{
1217
+ const a = s.label ?? String(s.value), c = "string" == typeof s.group, l = c && (i[i.indexOf(s) + 1] ?? {
1218
+ group: !0
1219
+ }), $ = c && !0 === l.group, p = c ? `${$ ? dist_d : dist_o} ` : "";
1220
+ return "active" === r ? `${picocolors.dim(p)}${picocolors.cyan(dist_A)} ${a} ${s.hint ? picocolors.dim(`(${s.hint})`) : ""}` : "group-active" === r ? `${p}${picocolors.cyan(dist_A)} ${picocolors.dim(a)}` : "group-active-selected" === r ? `${p}${picocolors.green(dist_T)} ${picocolors.dim(a)}` : "selected" === r ? `${picocolors.dim(p)}${picocolors.green(dist_T)} ${picocolors.dim(a)}` : "cancelled" === r ? `${picocolors.strikethrough(picocolors.dim(a))}` : "active-selected" === r ? `${picocolors.dim(p)}${picocolors.green(dist_T)} ${a} ${s.hint ? picocolors.dim(`(${s.hint})`) : ""}` : "submitted" === r ? `${picocolors.dim(a)}` : `${picocolors.dim(p)}${picocolors.dim(dist_F)} ${picocolors.dim(a)}`;
1221
+ };
1222
+ return new dD({
1223
+ options: t.options,
1224
+ initialValues: t.initialValues,
1225
+ required: t.required ?? !0,
1226
+ cursorAt: t.cursorAt,
1227
+ validate (s) {
1228
+ if (this.required && 0 === s.length) return `Please select at least one option.
1229
+ ${picocolors.reset(picocolors.dim(`Press ${picocolors.gray(picocolors.bgWhite(picocolors.inverse(" space ")))} to select, ${picocolors.gray(picocolors.bgWhite(picocolors.inverse(" enter ")))} to submit`))}`;
1230
+ },
1231
+ render () {
1232
+ const s = `${picocolors.gray(dist_o)}
1233
+ ${dist_w(this.state)} ${t.message}
1234
+ `;
1235
+ switch(this.state){
1236
+ case "submit":
1237
+ return `${s}${picocolors.gray(dist_o)} ${this.options.filter(({ value: r })=>this.value.includes(r)).map((r)=>n(r, "submitted")).join(picocolors.dim(", "))}`;
1238
+ case "cancel":
1239
+ {
1240
+ const r = this.options.filter(({ value: i })=>this.value.includes(i)).map((i)=>n(i, "cancelled")).join(picocolors.dim(", "));
1241
+ return `${s}${picocolors.gray(dist_o)} ${r.trim() ? `${r}
1242
+ ${picocolors.gray(dist_o)}` : ""}`;
1243
+ }
1244
+ case "error":
1245
+ {
1246
+ const r = this.error.split(`
1247
+ `).map((i, a)=>0 === a ? `${picocolors.yellow(dist_d)} ${picocolors.yellow(i)}` : ` ${i}`).join(`
1248
+ `);
1249
+ return `${s}${picocolors.yellow(dist_o)} ${this.options.map((i, a, c)=>{
1250
+ const l = this.value.includes(i.value) || !0 === i.group && this.isGroupSelected(`${i.value}`), $ = a === this.cursor;
1251
+ return $ || "string" != typeof i.group || this.options[this.cursor].value !== i.group ? $ && l ? n(i, "active-selected", c) : l ? n(i, "selected", c) : n(i, $ ? "active" : "inactive", c) : n(i, l ? "group-active-selected" : "group-active", c);
1252
+ }).join(`
1253
+ ${picocolors.yellow(dist_o)} `)}
1254
+ ${r}
1255
+ `;
1256
+ }
1257
+ default:
1258
+ return `${s}${picocolors.cyan(dist_o)} ${this.options.map((r, i, a)=>{
1259
+ const c = this.value.includes(r.value) || !0 === r.group && this.isGroupSelected(`${r.value}`), l = i === this.cursor;
1260
+ return l || "string" != typeof r.group || this.options[this.cursor].value !== r.group ? l && c ? n(r, "active-selected", a) : c ? n(r, "selected", a) : n(r, l ? "active" : "inactive", a) : n(r, c ? "group-active-selected" : "group-active", a);
1261
+ }).join(`
1262
+ ${picocolors.cyan(dist_o)} `)}
1263
+ ${picocolors.cyan(dist_d)}
1264
+ `;
1265
+ }
1266
+ }
1267
+ }).prompt();
1268
+ }, Me = (t = "", n = "")=>{
1269
+ const s = `
1270
+ ${t}
1271
+ `.split(`
1272
+ `), r = (0, external_node_util_.stripVTControlCharacters)(n).length, i = Math.max(s.reduce((c, l)=>{
1273
+ const $ = (0, external_node_util_.stripVTControlCharacters)(l);
1274
+ return $.length > c ? $.length : c;
1275
+ }, 0), r) + 2, a = s.map((c)=>`${picocolors.gray(dist_o)} ${picocolors.dim(c)}${" ".repeat(i - (0, external_node_util_.stripVTControlCharacters)(c).length)}${picocolors.gray(dist_o)}`).join(`
1276
+ `);
1277
+ process.stdout.write(`${picocolors.gray(dist_o)}
1278
+ ${picocolors.green(dist_C)} ${picocolors.reset(n)} ${picocolors.gray(dist_.repeat(Math.max(i - r - 1, 1)) + me)}
1279
+ ${a}
1280
+ ${picocolors.gray(de + dist_.repeat(i + 2) + pe)}
1281
+ `);
1282
+ }, xe = (t = "")=>{
1283
+ process.stdout.write(`${picocolors.gray(dist_d)} ${picocolors.red(t)}
1284
+
1285
+ `);
1286
+ }, Ie = (t = "")=>{
1287
+ process.stdout.write(`${picocolors.gray(ue)} ${t}
1288
+ `);
1289
+ }, Se = (t = "")=>{
1290
+ process.stdout.write(`${picocolors.gray(dist_o)}
1291
+ ${picocolors.gray(dist_d)} ${t}
1292
+
1293
+ `);
1294
+ }, f = {
1295
+ message: (t = "", { symbol: n = picocolors.gray(dist_o) } = {})=>{
1296
+ const s = [
1297
+ `${picocolors.gray(dist_o)}`
1298
+ ];
1299
+ if (t) {
1300
+ const [r, ...i] = t.split(`
1301
+ `);
1302
+ s.push(`${n} ${r}`, ...i.map((a)=>`${picocolors.gray(dist_o)} ${a}`));
1303
+ }
1304
+ process.stdout.write(`${s.join(`
1305
+ `)}
1306
+ `);
1307
+ },
1308
+ info: (t)=>{
1309
+ f.message(t, {
1310
+ symbol: picocolors.blue(dist_q)
1311
+ });
1312
+ },
1313
+ success: (t)=>{
1314
+ f.message(t, {
1315
+ symbol: picocolors.green(dist_D)
1316
+ });
1317
+ },
1318
+ step: (t)=>{
1319
+ f.message(t, {
1320
+ symbol: picocolors.green(dist_C)
1321
+ });
1322
+ },
1323
+ warn: (t)=>{
1324
+ f.message(t, {
1325
+ symbol: picocolors.yellow(U)
1326
+ });
1327
+ },
1328
+ warning: (t)=>{
1329
+ f.warn(t);
1330
+ },
1331
+ error: (t)=>{
1332
+ f.message(t, {
1333
+ symbol: picocolors.red(dist_K)
1334
+ });
1335
+ }
1336
+ }, dist_J = `${picocolors.gray(dist_o)} `, b = {
1337
+ message: async (t, { symbol: n = picocolors.gray(dist_o) } = {})=>{
1338
+ process.stdout.write(`${picocolors.gray(dist_o)}
1339
+ ${n} `);
1340
+ let s = 3;
1341
+ for await (let r of t){
1342
+ r = r.replace(/\n/g, `
1343
+ ${dist_J}`), r.includes(`
1344
+ `) && (s = 3 + (0, external_node_util_.stripVTControlCharacters)(r.slice(r.lastIndexOf(`
1345
+ `))).length);
1346
+ const i = (0, external_node_util_.stripVTControlCharacters)(r).length;
1347
+ s + i < process.stdout.columns ? (s += i, process.stdout.write(r)) : (process.stdout.write(`
1348
+ ${dist_J}${r.trimStart()}`), s = 3 + (0, external_node_util_.stripVTControlCharacters)(r.trimStart()).length);
1349
+ }
1350
+ process.stdout.write(`
1351
+ `);
1352
+ },
1353
+ info: (t)=>b.message(t, {
1354
+ symbol: picocolors.blue(dist_q)
1355
+ }),
1356
+ success: (t)=>b.message(t, {
1357
+ symbol: picocolors.green(dist_D)
1358
+ }),
1359
+ step: (t)=>b.message(t, {
1360
+ symbol: picocolors.green(dist_C)
1361
+ }),
1362
+ warn: (t)=>b.message(t, {
1363
+ symbol: picocolors.yellow(U)
1364
+ }),
1365
+ warning: (t)=>b.warn(t),
1366
+ error: (t)=>b.message(t, {
1367
+ symbol: picocolors.red(dist_K)
1368
+ })
1369
+ }, dist_Y = ({ indicator: t = "dots" } = {})=>{
1370
+ const n = dist_V ? [
1371
+ "\u25D2",
1372
+ "\u25D0",
1373
+ "\u25D3",
1374
+ "\u25D1"
1375
+ ] : [
1376
+ "\u2022",
1377
+ "o",
1378
+ "O",
1379
+ "0"
1380
+ ], s = dist_V ? 80 : 120, r = "true" === process.env.CI;
1381
+ let i, a, c = !1, l = "", $, p = performance.now();
1382
+ const M = (m)=>{
1383
+ const h = m > 1 ? "Something went wrong" : "Canceled";
1384
+ c && N(h, m);
1385
+ }, v = ()=>M(2), x = ()=>M(1), j = ()=>{
1386
+ process.on("uncaughtExceptionMonitor", v), process.on("unhandledRejection", v), process.on("SIGINT", x), process.on("SIGTERM", x), process.on("exit", M);
1387
+ }, E = ()=>{
1388
+ process.removeListener("uncaughtExceptionMonitor", v), process.removeListener("unhandledRejection", v), process.removeListener("SIGINT", x), process.removeListener("SIGTERM", x), process.removeListener("exit", M);
1389
+ }, O = ()=>{
1390
+ if (void 0 === $) return;
1391
+ r && process.stdout.write(`
1392
+ `);
1393
+ const m = $.split(`
1394
+ `);
1395
+ process.stdout.write(src.cursor.move(-999, m.length - 1)), process.stdout.write(src.erase.down(m.length));
1396
+ }, R = (m)=>m.replace(/\.+$/, ""), G = (m)=>{
1397
+ const h = (performance.now() - m) / 1e3, y = Math.floor(h / 60), I = Math.floor(h % 60);
1398
+ return y > 0 ? `[${y}m ${I}s]` : `[${I}s]`;
1399
+ }, H = (m = "")=>{
1400
+ c = !0, i = cD(), l = R(m), p = performance.now(), process.stdout.write(`${picocolors.gray(dist_o)}
1401
+ `);
1402
+ let h = 0, y = 0;
1403
+ j(), a = setInterval(()=>{
1404
+ if (r && l === $) return;
1405
+ O(), $ = l;
1406
+ const I = picocolors.magenta(n[h]);
1407
+ if (r) process.stdout.write(`${I} ${l}...`);
1408
+ else if ("timer" === t) process.stdout.write(`${I} ${l} ${G(p)}`);
1409
+ else {
1410
+ const z = ".".repeat(Math.floor(y)).slice(0, 3);
1411
+ process.stdout.write(`${I} ${l}${z}`);
1412
+ }
1413
+ h = h + 1 < n.length ? h + 1 : 0, y = y < n.length ? y + .125 : 0;
1414
+ }, s);
1415
+ }, N = (m = "", h = 0)=>{
1416
+ c = !1, clearInterval(a), O();
1417
+ const y = 0 === h ? picocolors.green(dist_C) : 1 === h ? picocolors.red(dist_L) : picocolors.red(dist_W);
1418
+ l = R(m ?? l), "timer" === t ? process.stdout.write(`${y} ${l} ${G(p)}
1419
+ `) : process.stdout.write(`${y} ${l}
1420
+ `), E(), i();
1421
+ };
1422
+ return {
1423
+ start: H,
1424
+ stop: N,
1425
+ message: (m = "")=>{
1426
+ l = R(m ?? l);
1427
+ }
1428
+ };
1429
+ }, Ce = async (t, n)=>{
1430
+ const s = {}, r = Object.keys(t);
1431
+ for (const i of r){
1432
+ const a = t[i], c = await a({
1433
+ results: s
1434
+ })?.catch((l)=>{
1435
+ throw l;
1436
+ });
1437
+ if ("function" == typeof n?.onCancel && BD(c)) {
1438
+ s[i] = "canceled", n.onCancel({
1439
+ results: s
1440
+ });
1441
+ continue;
1442
+ }
1443
+ s[i] = c;
1444
+ }
1445
+ return s;
1446
+ }, Te = async (t)=>{
1447
+ for (const n of t){
1448
+ if (!1 === n.enabled) continue;
1449
+ const s = dist_Y();
1450
+ s.start(n.title);
1451
+ const r = await n.task(s.message);
1452
+ s.stop(r || n.title);
1453
+ }
1454
+ };
1455
+ }
1456
+ };