@disruptica/mantis-cli 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +59 -680
  2. package/package.json +1 -2
package/dist/index.js CHANGED
@@ -2068,134 +2068,6 @@ var require_commander = __commonJS((exports) => {
2068
2068
  exports.InvalidOptionArgumentError = InvalidArgumentError;
2069
2069
  });
2070
2070
 
2071
- // node_modules/sisteransi/src/index.js
2072
- var require_src = __commonJS((exports, module) => {
2073
- var ESC = "\x1B";
2074
- var CSI = `${ESC}[`;
2075
- var beep = "\x07";
2076
- var cursor = {
2077
- to(x, y) {
2078
- if (!y)
2079
- return `${CSI}${x + 1}G`;
2080
- return `${CSI}${y + 1};${x + 1}H`;
2081
- },
2082
- move(x, y) {
2083
- let ret = "";
2084
- if (x < 0)
2085
- ret += `${CSI}${-x}D`;
2086
- else if (x > 0)
2087
- ret += `${CSI}${x}C`;
2088
- if (y < 0)
2089
- ret += `${CSI}${-y}A`;
2090
- else if (y > 0)
2091
- ret += `${CSI}${y}B`;
2092
- return ret;
2093
- },
2094
- up: (count = 1) => `${CSI}${count}A`,
2095
- down: (count = 1) => `${CSI}${count}B`,
2096
- forward: (count = 1) => `${CSI}${count}C`,
2097
- backward: (count = 1) => `${CSI}${count}D`,
2098
- nextLine: (count = 1) => `${CSI}E`.repeat(count),
2099
- prevLine: (count = 1) => `${CSI}F`.repeat(count),
2100
- left: `${CSI}G`,
2101
- hide: `${CSI}?25l`,
2102
- show: `${CSI}?25h`,
2103
- save: `${ESC}7`,
2104
- restore: `${ESC}8`
2105
- };
2106
- var scroll = {
2107
- up: (count = 1) => `${CSI}S`.repeat(count),
2108
- down: (count = 1) => `${CSI}T`.repeat(count)
2109
- };
2110
- var erase = {
2111
- screen: `${CSI}2J`,
2112
- up: (count = 1) => `${CSI}1J`.repeat(count),
2113
- down: (count = 1) => `${CSI}J`.repeat(count),
2114
- line: `${CSI}2K`,
2115
- lineEnd: `${CSI}K`,
2116
- lineStart: `${CSI}1K`,
2117
- lines(count) {
2118
- let clear = "";
2119
- for (let i = 0;i < count; i++)
2120
- clear += this.line + (i < count - 1 ? cursor.up() : "");
2121
- if (count)
2122
- clear += cursor.left;
2123
- return clear;
2124
- }
2125
- };
2126
- module.exports = { cursor, scroll, erase, beep };
2127
- });
2128
-
2129
- // node_modules/picocolors/picocolors.js
2130
- var require_picocolors = __commonJS((exports, module) => {
2131
- var p = process || {};
2132
- var argv = p.argv || [];
2133
- var env = p.env || {};
2134
- var isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
2135
- var formatter = (open, close, replace = open) => (input) => {
2136
- let string = "" + input, index = string.indexOf(close, open.length);
2137
- return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
2138
- };
2139
- var replaceClose = (string, close, replace, index) => {
2140
- let result = "", cursor = 0;
2141
- do {
2142
- result += string.substring(cursor, index) + replace;
2143
- cursor = index + close.length;
2144
- index = string.indexOf(close, cursor);
2145
- } while (~index);
2146
- return result + string.substring(cursor);
2147
- };
2148
- var createColors = (enabled = isColorSupported) => {
2149
- let f = enabled ? formatter : () => String;
2150
- return {
2151
- isColorSupported: enabled,
2152
- reset: f("\x1B[0m", "\x1B[0m"),
2153
- bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
2154
- dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
2155
- italic: f("\x1B[3m", "\x1B[23m"),
2156
- underline: f("\x1B[4m", "\x1B[24m"),
2157
- inverse: f("\x1B[7m", "\x1B[27m"),
2158
- hidden: f("\x1B[8m", "\x1B[28m"),
2159
- strikethrough: f("\x1B[9m", "\x1B[29m"),
2160
- black: f("\x1B[30m", "\x1B[39m"),
2161
- red: f("\x1B[31m", "\x1B[39m"),
2162
- green: f("\x1B[32m", "\x1B[39m"),
2163
- yellow: f("\x1B[33m", "\x1B[39m"),
2164
- blue: f("\x1B[34m", "\x1B[39m"),
2165
- magenta: f("\x1B[35m", "\x1B[39m"),
2166
- cyan: f("\x1B[36m", "\x1B[39m"),
2167
- white: f("\x1B[37m", "\x1B[39m"),
2168
- gray: f("\x1B[90m", "\x1B[39m"),
2169
- bgBlack: f("\x1B[40m", "\x1B[49m"),
2170
- bgRed: f("\x1B[41m", "\x1B[49m"),
2171
- bgGreen: f("\x1B[42m", "\x1B[49m"),
2172
- bgYellow: f("\x1B[43m", "\x1B[49m"),
2173
- bgBlue: f("\x1B[44m", "\x1B[49m"),
2174
- bgMagenta: f("\x1B[45m", "\x1B[49m"),
2175
- bgCyan: f("\x1B[46m", "\x1B[49m"),
2176
- bgWhite: f("\x1B[47m", "\x1B[49m"),
2177
- blackBright: f("\x1B[90m", "\x1B[39m"),
2178
- redBright: f("\x1B[91m", "\x1B[39m"),
2179
- greenBright: f("\x1B[92m", "\x1B[39m"),
2180
- yellowBright: f("\x1B[93m", "\x1B[39m"),
2181
- blueBright: f("\x1B[94m", "\x1B[39m"),
2182
- magentaBright: f("\x1B[95m", "\x1B[39m"),
2183
- cyanBright: f("\x1B[96m", "\x1B[39m"),
2184
- whiteBright: f("\x1B[97m", "\x1B[39m"),
2185
- bgBlackBright: f("\x1B[100m", "\x1B[49m"),
2186
- bgRedBright: f("\x1B[101m", "\x1B[49m"),
2187
- bgGreenBright: f("\x1B[102m", "\x1B[49m"),
2188
- bgYellowBright: f("\x1B[103m", "\x1B[49m"),
2189
- bgBlueBright: f("\x1B[104m", "\x1B[49m"),
2190
- bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
2191
- bgCyanBright: f("\x1B[106m", "\x1B[49m"),
2192
- bgWhiteBright: f("\x1B[107m", "\x1B[49m")
2193
- };
2194
- };
2195
- module.exports = createColors();
2196
- module.exports.createColors = createColors;
2197
- });
2198
-
2199
2071
  // node_modules/commander/esm.mjs
2200
2072
  var import__ = __toESM(require_commander(), 1);
2201
2073
  var {
@@ -2212,497 +2084,8 @@ var {
2212
2084
  Help
2213
2085
  } = import__.default;
2214
2086
 
2215
- // node_modules/@clack/core/dist/index.mjs
2216
- var import_sisteransi = __toESM(require_src(), 1);
2217
- import { stdin as j, stdout as M } from "node:process";
2218
- var import_picocolors = __toESM(require_picocolors(), 1);
2219
- import O from "node:readline";
2220
- import { Writable as X } from "node:stream";
2221
- function DD({ onlyFirst: e = false } = {}) {
2222
- 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("|");
2223
- return new RegExp(t, e ? undefined : "g");
2224
- }
2225
- var uD = DD();
2226
- function P(e) {
2227
- if (typeof e != "string")
2228
- throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);
2229
- return e.replace(uD, "");
2230
- }
2231
- function L(e) {
2232
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
2233
- }
2234
- var W = { exports: {} };
2235
- (function(e) {
2236
- var u = {};
2237
- e.exports = u, u.eastAsianWidth = function(F) {
2238
- var s = F.charCodeAt(0), i = F.length == 2 ? F.charCodeAt(1) : 0, D = s;
2239
- 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";
2240
- }, u.characterLength = function(F) {
2241
- var s = this.eastAsianWidth(F);
2242
- return s == "F" || s == "W" || s == "A" ? 2 : 1;
2243
- };
2244
- function t(F) {
2245
- return F.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
2246
- }
2247
- u.length = function(F) {
2248
- for (var s = t(F), i = 0, D = 0;D < s.length; D++)
2249
- i = i + this.characterLength(s[D]);
2250
- return i;
2251
- }, u.slice = function(F, s, i) {
2252
- textLen = u.length(F), s = s || 0, i = i || 1, s < 0 && (s = textLen + s), i < 0 && (i = textLen + i);
2253
- for (var D = "", r = 0, n = t(F), E = 0;E < n.length; E++) {
2254
- var a = n[E], o = u.length(a);
2255
- if (r >= s - (o == 2 ? 1 : 0))
2256
- if (r + o <= i)
2257
- D += a;
2258
- else
2259
- break;
2260
- r += o;
2261
- }
2262
- return D;
2263
- };
2264
- })(W);
2265
- var tD = W.exports;
2266
- var eD = L(tD);
2267
- var FD = function() {
2268
- 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;
2269
- };
2270
- var sD = L(FD);
2271
- function p(e, u = {}) {
2272
- if (typeof e != "string" || e.length === 0 || (u = { ambiguousIsNarrow: true, ...u }, e = P(e), e.length === 0))
2273
- return 0;
2274
- e = e.replace(sD(), " ");
2275
- const t = u.ambiguousIsNarrow ? 1 : 2;
2276
- let F = 0;
2277
- for (const s of e) {
2278
- const i = s.codePointAt(0);
2279
- if (i <= 31 || i >= 127 && i <= 159 || i >= 768 && i <= 879)
2280
- continue;
2281
- switch (eD.eastAsianWidth(s)) {
2282
- case "F":
2283
- case "W":
2284
- F += 2;
2285
- break;
2286
- case "A":
2287
- F += t;
2288
- break;
2289
- default:
2290
- F += 1;
2291
- }
2292
- }
2293
- return F;
2294
- }
2295
- var w = 10;
2296
- var N = (e = 0) => (u) => `\x1B[${u + e}m`;
2297
- var I = (e = 0) => (u) => `\x1B[${38 + e};5;${u}m`;
2298
- var R = (e = 0) => (u, t, F) => `\x1B[${38 + e};2;${u};${t};${F}m`;
2299
- var C = { modifier: { reset: [0, 0], bold: [1, 22], dim: [2, 22], italic: [3, 23], underline: [4, 24], overline: [53, 55], inverse: [7, 27], hidden: [8, 28], strikethrough: [9, 29] }, color: { black: [30, 39], red: [31, 39], green: [32, 39], yellow: [33, 39], blue: [34, 39], magenta: [35, 39], cyan: [36, 39], white: [37, 39], blackBright: [90, 39], gray: [90, 39], grey: [90, 39], redBright: [91, 39], greenBright: [92, 39], yellowBright: [93, 39], blueBright: [94, 39], magentaBright: [95, 39], cyanBright: [96, 39], whiteBright: [97, 39] }, bgColor: { bgBlack: [40, 49], bgRed: [41, 49], bgGreen: [42, 49], bgYellow: [43, 49], bgBlue: [44, 49], bgMagenta: [45, 49], bgCyan: [46, 49], bgWhite: [47, 49], bgBlackBright: [100, 49], bgGray: [100, 49], bgGrey: [100, 49], bgRedBright: [101, 49], bgGreenBright: [102, 49], bgYellowBright: [103, 49], bgBlueBright: [104, 49], bgMagentaBright: [105, 49], bgCyanBright: [106, 49], bgWhiteBright: [107, 49] } };
2300
- Object.keys(C.modifier);
2301
- var iD = Object.keys(C.color);
2302
- var rD = Object.keys(C.bgColor);
2303
- [...iD, ...rD];
2304
- function CD() {
2305
- const e = new Map;
2306
- for (const [u, t] of Object.entries(C)) {
2307
- for (const [F, s] of Object.entries(t))
2308
- C[F] = { open: `\x1B[${s[0]}m`, close: `\x1B[${s[1]}m` }, t[F] = C[F], e.set(s[0], s[1]);
2309
- Object.defineProperty(C, u, { value: t, enumerable: false });
2310
- }
2311
- return Object.defineProperty(C, "codes", { value: e, enumerable: false }), C.color.close = "\x1B[39m", C.bgColor.close = "\x1B[49m", C.color.ansi = N(), C.color.ansi256 = I(), C.color.ansi16m = R(), C.bgColor.ansi = N(w), C.bgColor.ansi256 = I(w), C.bgColor.ansi16m = R(w), Object.defineProperties(C, { rgbToAnsi256: { 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), enumerable: false }, hexToRgb: { value: (u) => {
2312
- const t = /[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));
2313
- if (!t)
2314
- return [0, 0, 0];
2315
- let [F] = t;
2316
- F.length === 3 && (F = [...F].map((i) => i + i).join(""));
2317
- const s = Number.parseInt(F, 16);
2318
- return [s >> 16 & 255, s >> 8 & 255, s & 255];
2319
- }, enumerable: false }, hexToAnsi256: { value: (u) => C.rgbToAnsi256(...C.hexToRgb(u)), enumerable: false }, ansi256ToAnsi: { value: (u) => {
2320
- if (u < 8)
2321
- return 30 + u;
2322
- if (u < 16)
2323
- return 90 + (u - 8);
2324
- let t, F, s;
2325
- if (u >= 232)
2326
- t = ((u - 232) * 10 + 8) / 255, F = t, s = t;
2327
- else {
2328
- u -= 16;
2329
- const r = u % 36;
2330
- t = Math.floor(u / 36) / 5, F = Math.floor(r / 6) / 5, s = r % 6 / 5;
2331
- }
2332
- const i = Math.max(t, F, s) * 2;
2333
- if (i === 0)
2334
- return 30;
2335
- let D = 30 + (Math.round(s) << 2 | Math.round(F) << 1 | Math.round(t));
2336
- return i === 2 && (D += 60), D;
2337
- }, enumerable: false }, rgbToAnsi: { value: (u, t, F) => C.ansi256ToAnsi(C.rgbToAnsi256(u, t, F)), enumerable: false }, hexToAnsi: { value: (u) => C.ansi256ToAnsi(C.hexToAnsi256(u)), enumerable: false } }), C;
2338
- }
2339
- var ED = CD();
2340
- var d = new Set(["\x1B", "›"]);
2341
- var oD = 39;
2342
- var y = "\x07";
2343
- var V = "[";
2344
- var nD = "]";
2345
- var G = "m";
2346
- var _ = `${nD}8;;`;
2347
- var z = (e) => `${d.values().next().value}${V}${e}${G}`;
2348
- var K = (e) => `${d.values().next().value}${_}${e}${y}`;
2349
- var aD = (e) => e.split(" ").map((u) => p(u));
2350
- var k = (e, u, t) => {
2351
- const F = [...u];
2352
- let s = false, i = false, D = p(P(e[e.length - 1]));
2353
- for (const [r, n] of F.entries()) {
2354
- const E = p(n);
2355
- if (D + E <= t ? e[e.length - 1] += n : (e.push(n), D = 0), d.has(n) && (s = true, i = F.slice(r + 1).join("").startsWith(_)), s) {
2356
- i ? n === y && (s = false, i = false) : n === G && (s = false);
2357
- continue;
2358
- }
2359
- D += E, D === t && r < F.length - 1 && (e.push(""), D = 0);
2360
- }
2361
- !D && e[e.length - 1].length > 0 && e.length > 1 && (e[e.length - 2] += e.pop());
2362
- };
2363
- var hD = (e) => {
2364
- const u = e.split(" ");
2365
- let t = u.length;
2366
- for (;t > 0 && !(p(u[t - 1]) > 0); )
2367
- t--;
2368
- return t === u.length ? e : u.slice(0, t).join(" ") + u.slice(t).join("");
2369
- };
2370
- var lD = (e, u, t = {}) => {
2371
- if (t.trim !== false && e.trim() === "")
2372
- return "";
2373
- let F = "", s, i;
2374
- const D = aD(e);
2375
- let r = [""];
2376
- for (const [E, a] of e.split(" ").entries()) {
2377
- t.trim !== false && (r[r.length - 1] = r[r.length - 1].trimStart());
2378
- let o = p(r[r.length - 1]);
2379
- if (E !== 0 && (o >= u && (t.wordWrap === false || t.trim === false) && (r.push(""), o = 0), (o > 0 || t.trim === false) && (r[r.length - 1] += " ", o++)), t.hard && D[E] > u) {
2380
- const c = u - o, f = 1 + Math.floor((D[E] - c - 1) / u);
2381
- Math.floor((D[E] - 1) / u) < f && r.push(""), k(r, a, u);
2382
- continue;
2383
- }
2384
- if (o + D[E] > u && o > 0 && D[E] > 0) {
2385
- if (t.wordWrap === false && o < u) {
2386
- k(r, a, u);
2387
- continue;
2388
- }
2389
- r.push("");
2390
- }
2391
- if (o + D[E] > u && t.wordWrap === false) {
2392
- k(r, a, u);
2393
- continue;
2394
- }
2395
- r[r.length - 1] += a;
2396
- }
2397
- t.trim !== false && (r = r.map((E) => hD(E)));
2398
- const n = [...r.join(`
2399
- `)];
2400
- for (const [E, a] of n.entries()) {
2401
- if (F += a, d.has(a)) {
2402
- const { groups: c } = new RegExp(`(?:\\${V}(?<code>\\d+)m|\\${_}(?<uri>.*)${y})`).exec(n.slice(E).join("")) || { groups: {} };
2403
- if (c.code !== undefined) {
2404
- const f = Number.parseFloat(c.code);
2405
- s = f === oD ? undefined : f;
2406
- } else
2407
- c.uri !== undefined && (i = c.uri.length === 0 ? undefined : c.uri);
2408
- }
2409
- const o = ED.codes.get(Number(s));
2410
- n[E + 1] === `
2411
- ` ? (i && (F += K("")), s && o && (F += z(o))) : a === `
2412
- ` && (s && o && (F += z(s)), i && (F += K(i)));
2413
- }
2414
- return F;
2415
- };
2416
- function Y(e, u, t) {
2417
- return String(e).normalize().replace(/\r\n/g, `
2418
- `).split(`
2419
- `).map((F) => lD(F, u, t)).join(`
2420
- `);
2421
- }
2422
- var xD = ["up", "down", "left", "right", "space", "enter", "cancel"];
2423
- var B = { actions: new Set(xD), aliases: new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"], ["\x03", "cancel"], ["escape", "cancel"]]) };
2424
- function $(e, u) {
2425
- if (typeof e == "string")
2426
- return B.aliases.get(e) === u;
2427
- for (const t of e)
2428
- if (t !== undefined && $(t, u))
2429
- return true;
2430
- return false;
2431
- }
2432
- function BD(e, u) {
2433
- if (e === u)
2434
- return;
2435
- const t = e.split(`
2436
- `), F = u.split(`
2437
- `), s = [];
2438
- for (let i = 0;i < Math.max(t.length, F.length); i++)
2439
- t[i] !== F[i] && s.push(i);
2440
- return s;
2441
- }
2442
- var AD = globalThis.process.platform.startsWith("win");
2443
- var S = Symbol("clack:cancel");
2444
- function pD(e) {
2445
- return e === S;
2446
- }
2447
- function m(e, u) {
2448
- const t = e;
2449
- t.isTTY && t.setRawMode(u);
2450
- }
2451
- var gD = Object.defineProperty;
2452
- var vD = (e, u, t) => (u in e) ? gD(e, u, { enumerable: true, configurable: true, writable: true, value: t }) : e[u] = t;
2453
- var h = (e, u, t) => (vD(e, typeof u != "symbol" ? u + "" : u, t), t);
2454
-
2455
- class x {
2456
- constructor(u, t = true) {
2457
- h(this, "input"), h(this, "output"), h(this, "_abortSignal"), h(this, "rl"), h(this, "opts"), h(this, "_render"), h(this, "_track", false), h(this, "_prevFrame", ""), h(this, "_subscribers", new Map), h(this, "_cursor", 0), h(this, "state", "initial"), h(this, "error", ""), h(this, "value");
2458
- const { input: F = j, output: s = M, render: i, signal: D, ...r } = u;
2459
- this.opts = r, 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;
2460
- }
2461
- unsubscribe() {
2462
- this._subscribers.clear();
2463
- }
2464
- setSubscriber(u, t) {
2465
- const F = this._subscribers.get(u) ?? [];
2466
- F.push(t), this._subscribers.set(u, F);
2467
- }
2468
- on(u, t) {
2469
- this.setSubscriber(u, { cb: t });
2470
- }
2471
- once(u, t) {
2472
- this.setSubscriber(u, { cb: t, once: true });
2473
- }
2474
- emit(u, ...t) {
2475
- const F = this._subscribers.get(u) ?? [], s = [];
2476
- for (const i of F)
2477
- i.cb(...t), i.once && s.push(() => F.splice(F.indexOf(i), 1));
2478
- for (const i of s)
2479
- i();
2480
- }
2481
- prompt() {
2482
- return new Promise((u, t) => {
2483
- if (this._abortSignal) {
2484
- if (this._abortSignal.aborted)
2485
- return this.state = "cancel", this.close(), u(S);
2486
- this._abortSignal.addEventListener("abort", () => {
2487
- this.state = "cancel", this.close();
2488
- }, { once: true });
2489
- }
2490
- const F = new X;
2491
- F._write = (s, i, D) => {
2492
- this._track && (this.value = this.rl?.line.replace(/\t/g, ""), this._cursor = this.rl?.cursor ?? 0, this.emit("value", this.value)), D();
2493
- }, this.input.pipe(F), this.rl = O.createInterface({ input: this.input, output: F, tabSize: 2, prompt: "", escapeCodeTimeout: 50, terminal: true }), O.emitKeypressEvents(this.input, this.rl), this.rl.prompt(), this.opts.initialValue !== undefined && this._track && this.rl.write(this.opts.initialValue), this.input.on("keypress", this.onKeypress), m(this.input, true), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
2494
- this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), m(this.input, false), u(this.value);
2495
- }), this.once("cancel", () => {
2496
- this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), m(this.input, false), u(S);
2497
- });
2498
- });
2499
- }
2500
- onKeypress(u, t) {
2501
- 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 === "\t" && 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") {
2502
- if (!this.value && this.opts.placeholder && (this.rl?.write(this.opts.placeholder), this.emit("value", this.opts.placeholder)), this.opts.validate) {
2503
- const F = this.opts.validate(this.value);
2504
- F && (this.error = F instanceof Error ? F.message : F, this.state = "error", this.rl?.write(this.value));
2505
- }
2506
- this.state !== "error" && (this.state = "submit");
2507
- }
2508
- $([u, t?.name, t?.sequence], "cancel") && (this.state = "cancel"), (this.state === "submit" || this.state === "cancel") && this.emit("finalize"), this.render(), (this.state === "submit" || this.state === "cancel") && this.close();
2509
- }
2510
- close() {
2511
- this.input.unpipe(), this.input.removeListener("keypress", this.onKeypress), this.output.write(`
2512
- `), m(this.input, false), this.rl?.close(), this.rl = undefined, this.emit(`${this.state}`, this.value), this.unsubscribe();
2513
- }
2514
- restoreCursor() {
2515
- const u = Y(this._prevFrame, process.stdout.columns, { hard: true }).split(`
2516
- `).length - 1;
2517
- this.output.write(import_sisteransi.cursor.move(-999, u * -1));
2518
- }
2519
- render() {
2520
- const u = Y(this._render(this) ?? "", process.stdout.columns, { hard: true });
2521
- if (u !== this._prevFrame) {
2522
- if (this.state === "initial")
2523
- this.output.write(import_sisteransi.cursor.hide);
2524
- else {
2525
- const t = BD(this._prevFrame, u);
2526
- if (this.restoreCursor(), t && t?.length === 1) {
2527
- const F = t[0];
2528
- this.output.write(import_sisteransi.cursor.move(0, F)), this.output.write(import_sisteransi.erase.lines(1));
2529
- const s = u.split(`
2530
- `);
2531
- this.output.write(s[F]), this._prevFrame = u, this.output.write(import_sisteransi.cursor.move(0, s.length - F - 1));
2532
- return;
2533
- }
2534
- if (t && t?.length > 1) {
2535
- const F = t[0];
2536
- this.output.write(import_sisteransi.cursor.move(0, F)), this.output.write(import_sisteransi.erase.down());
2537
- const s = u.split(`
2538
- `).slice(F);
2539
- this.output.write(s.join(`
2540
- `)), this._prevFrame = u;
2541
- return;
2542
- }
2543
- this.output.write(import_sisteransi.erase.down());
2544
- }
2545
- this.output.write(u), this.state === "initial" && (this.state = "active"), this._prevFrame = u;
2546
- }
2547
- }
2548
- }
2549
- var A;
2550
- A = new WeakMap;
2551
- var OD = Object.defineProperty;
2552
- var PD = (e, u, t) => (u in e) ? OD(e, u, { enumerable: true, configurable: true, writable: true, value: t }) : e[u] = t;
2553
- var J = (e, u, t) => (PD(e, typeof u != "symbol" ? u + "" : u, t), t);
2554
-
2555
- class LD extends x {
2556
- constructor(u) {
2557
- super(u, false), J(this, "options"), J(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) => {
2558
- switch (t) {
2559
- case "left":
2560
- case "up":
2561
- this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
2562
- break;
2563
- case "down":
2564
- case "right":
2565
- this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
2566
- break;
2567
- }
2568
- this.changeValue();
2569
- });
2570
- }
2571
- get _value() {
2572
- return this.options[this.cursor];
2573
- }
2574
- changeValue() {
2575
- this.value = this._value.value;
2576
- }
2577
- }
2578
- class RD extends x {
2579
- get valueWithCursor() {
2580
- if (this.state === "submit")
2581
- return this.value;
2582
- if (this.cursor >= this.value.length)
2583
- return `${this.value}█`;
2584
- const u = this.value.slice(0, this.cursor), [t, ...F] = this.value.slice(this.cursor);
2585
- return `${u}${import_picocolors.default.inverse(t)}${F.join("")}`;
2586
- }
2587
- get cursor() {
2588
- return this._cursor;
2589
- }
2590
- constructor(u) {
2591
- super(u), this.on("finalize", () => {
2592
- this.value || (this.value = u.defaultValue);
2593
- });
2594
- }
2595
- }
2596
-
2597
- // node_modules/@clack/prompts/dist/index.mjs
2598
- var import_picocolors2 = __toESM(require_picocolors(), 1);
2599
- var import_sisteransi2 = __toESM(require_src(), 1);
2600
- import y2 from "node:process";
2601
- function ce() {
2602
- return y2.platform !== "win32" ? y2.env.TERM !== "linux" : !!y2.env.CI || !!y2.env.WT_SESSION || !!y2.env.TERMINUS_SUBLIME || y2.env.ConEmuTask === "{cmd::Cmder}" || y2.env.TERM_PROGRAM === "Terminus-Sublime" || y2.env.TERM_PROGRAM === "vscode" || y2.env.TERM === "xterm-256color" || y2.env.TERM === "alacritty" || y2.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
2603
- }
2604
- var V2 = ce();
2605
- var u = (t, n) => V2 ? t : n;
2606
- var le = u("◆", "*");
2607
- var L2 = u("■", "x");
2608
- var W2 = u("▲", "x");
2609
- var C2 = u("◇", "o");
2610
- var ue = u("┌", "T");
2611
- var o = u("│", "|");
2612
- var d2 = u("└", "—");
2613
- var k2 = u("●", ">");
2614
- var P2 = u("○", " ");
2615
- var A2 = u("◻", "[•]");
2616
- var T = u("◼", "[+]");
2617
- var F = u("◻", "[ ]");
2618
- var $e = u("▪", "•");
2619
- var _2 = u("─", "-");
2620
- var me = u("╮", "+");
2621
- var de = u("├", "+");
2622
- var pe = u("╯", "+");
2623
- var q = u("●", "•");
2624
- var D = u("◆", "*");
2625
- var U = u("▲", "!");
2626
- var K2 = u("■", "x");
2627
- var b2 = (t) => {
2628
- switch (t) {
2629
- case "initial":
2630
- case "active":
2631
- return import_picocolors2.default.cyan(le);
2632
- case "cancel":
2633
- return import_picocolors2.default.red(L2);
2634
- case "error":
2635
- return import_picocolors2.default.yellow(W2);
2636
- case "submit":
2637
- return import_picocolors2.default.green(C2);
2638
- }
2639
- };
2640
- var G2 = (t) => {
2641
- 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));
2642
- let l2 = 0;
2643
- n >= l2 + a - 3 ? l2 = Math.max(Math.min(n - a + 3, r.length - a), 0) : n < l2 + 2 && (l2 = Math.max(n - 2, 0));
2644
- const $2 = a < r.length && l2 > 0, g = a < r.length && l2 + a < r.length;
2645
- return r.slice(l2, l2 + a).map((p2, v2, f) => {
2646
- const j2 = v2 === 0 && $2, E = v2 === f.length - 1 && g;
2647
- return j2 || E ? import_picocolors2.default.dim("...") : i(p2, v2 + l2 === n);
2648
- });
2649
- };
2650
- var he = (t) => new RD({ validate: t.validate, placeholder: t.placeholder, defaultValue: t.defaultValue, initialValue: t.initialValue, render() {
2651
- const n = `${import_picocolors2.default.gray(o)}
2652
- ${b2(this.state)} ${t.message}
2653
- `, r = t.placeholder ? import_picocolors2.default.inverse(t.placeholder[0]) + import_picocolors2.default.dim(t.placeholder.slice(1)) : import_picocolors2.default.inverse(import_picocolors2.default.hidden("_")), i = this.value ? this.valueWithCursor : r;
2654
- switch (this.state) {
2655
- case "error":
2656
- return `${n.trim()}
2657
- ${import_picocolors2.default.yellow(o)} ${i}
2658
- ${import_picocolors2.default.yellow(d2)} ${import_picocolors2.default.yellow(this.error)}
2659
- `;
2660
- case "submit":
2661
- return `${n}${import_picocolors2.default.gray(o)} ${import_picocolors2.default.dim(this.value || t.placeholder)}`;
2662
- case "cancel":
2663
- return `${n}${import_picocolors2.default.gray(o)} ${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(this.value ?? ""))}${this.value?.trim() ? `
2664
- ${import_picocolors2.default.gray(o)}` : ""}`;
2665
- default:
2666
- return `${n}${import_picocolors2.default.cyan(o)} ${i}
2667
- ${import_picocolors2.default.cyan(d2)}
2668
- `;
2669
- }
2670
- } }).prompt();
2671
- var ve = (t) => {
2672
- const n = (r, i) => {
2673
- const s = r.label ?? String(r.value);
2674
- switch (i) {
2675
- case "selected":
2676
- return `${import_picocolors2.default.dim(s)}`;
2677
- case "active":
2678
- return `${import_picocolors2.default.green(k2)} ${s} ${r.hint ? import_picocolors2.default.dim(`(${r.hint})`) : ""}`;
2679
- case "cancelled":
2680
- return `${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(s))}`;
2681
- default:
2682
- return `${import_picocolors2.default.dim(P2)} ${import_picocolors2.default.dim(s)}`;
2683
- }
2684
- };
2685
- return new LD({ options: t.options, initialValue: t.initialValue, render() {
2686
- const r = `${import_picocolors2.default.gray(o)}
2687
- ${b2(this.state)} ${t.message}
2688
- `;
2689
- switch (this.state) {
2690
- case "submit":
2691
- return `${r}${import_picocolors2.default.gray(o)} ${n(this.options[this.cursor], "selected")}`;
2692
- case "cancel":
2693
- return `${r}${import_picocolors2.default.gray(o)} ${n(this.options[this.cursor], "cancelled")}
2694
- ${import_picocolors2.default.gray(o)}`;
2695
- default:
2696
- return `${r}${import_picocolors2.default.cyan(o)} ${G2({ cursor: this.cursor, options: this.options, maxItems: t.maxItems, style: (i, s) => n(i, s ? "active" : "inactive") }).join(`
2697
- ${import_picocolors2.default.cyan(o)} `)}
2698
- ${import_picocolors2.default.cyan(d2)}
2699
- `;
2700
- }
2701
- } }).prompt();
2702
- };
2703
- var J2 = `${import_picocolors2.default.gray(o)} `;
2704
-
2705
2087
  // src/commands/login.ts
2088
+ import { createInterface } from "node:readline";
2706
2089
  import { execSync } from "node:child_process";
2707
2090
 
2708
2091
  // src/config.ts
@@ -2770,54 +2153,50 @@ function openBrowser(url) {
2770
2153
  }
2771
2154
  } catch {}
2772
2155
  }
2156
+ function ask(question) {
2157
+ const rl = createInterface({ input: process.stdin, output: process.stdout });
2158
+ return new Promise((resolve) => rl.question(question + " ", (a) => {
2159
+ rl.close();
2160
+ resolve(a);
2161
+ }));
2162
+ }
2773
2163
  function loginCommand(program2) {
2774
2164
  program2.command("login").alias("auth:login").description("Authenticate the CLI with the Timetracker API").option("--url <url>", "The base URL", DEFAULT_URL).option("--token <token>", "API token (paste mode)").action(async (options) => {
2775
2165
  const url = options.url ?? DEFAULT_URL;
2776
- let token = options.token;
2777
- if (!token) {
2778
- const method = await ve({
2779
- message: "How do you want to authenticate?",
2780
- options: [
2781
- { value: "browser", label: "Open browser to generate a token" },
2782
- { value: "paste", label: "Paste an existing token" }
2783
- ]
2784
- });
2785
- if (pD(method))
2786
- process.exit(1);
2787
- if (method === "browser") {
2788
- const authorizeUrl = `${url.replace(/\/+$/, "")}/cli/authorize`;
2789
- console.log("");
2790
- console.log("Opening browser...");
2791
- console.log("If the browser does not open, visit this URL:");
2792
- console.log(` ${authorizeUrl}`);
2793
- console.log("");
2794
- openBrowser(authorizeUrl);
2795
- const t = await he({
2796
- message: "Paste the token from the browser"
2797
- });
2798
- if (pD(t))
2799
- process.exit(1);
2800
- token = t;
2801
- } else {
2802
- const t = await he({
2803
- message: "Paste your API token"
2804
- });
2805
- if (pD(t))
2806
- process.exit(1);
2807
- token = t;
2808
- }
2166
+ if (options.token) {
2167
+ return save(options.token, url);
2168
+ }
2169
+ console.log("");
2170
+ console.log("1) Open browser to generate a token");
2171
+ console.log("2) Paste an existing token");
2172
+ const choice = await ask("Choose (1/2):");
2173
+ let token;
2174
+ if (choice === "1") {
2175
+ const authorizeUrl = `${url.replace(/\/+$/, "")}/cli/authorize`;
2176
+ console.log("");
2177
+ console.log("Opening browser...");
2178
+ console.log("If the browser does not open, visit:");
2179
+ console.log(" " + authorizeUrl);
2180
+ console.log("");
2181
+ openBrowser(authorizeUrl);
2182
+ token = await ask("Paste the token from the browser:");
2183
+ } else {
2184
+ token = await ask("Paste your API token:");
2809
2185
  }
2810
2186
  if (!token) {
2811
2187
  console.error("Token is required.");
2812
2188
  process.exit(1);
2813
2189
  }
2814
- const config = new Config;
2815
- config.baseUrl = url.replace(/\/+$/, "");
2816
- config.token = token;
2817
- config.save();
2818
- console.log("Authenticated successfully.");
2190
+ save(token, url);
2819
2191
  });
2820
2192
  }
2193
+ function save(token, url) {
2194
+ const config = new Config;
2195
+ config.baseUrl = url.replace(/\/+$/, "");
2196
+ config.token = token;
2197
+ config.save();
2198
+ console.log("Authenticated successfully.");
2199
+ }
2821
2200
 
2822
2201
  // src/client.ts
2823
2202
  class Client {
@@ -2828,19 +2207,19 @@ class Client {
2828
2207
  this.token = token;
2829
2208
  }
2830
2209
  headers() {
2831
- const h2 = {
2210
+ const h = {
2832
2211
  Accept: "application/json",
2833
2212
  "Content-Type": "application/json"
2834
2213
  };
2835
2214
  if (this.token) {
2836
- h2["Authorization"] = `Bearer ${this.token}`;
2215
+ h["Authorization"] = `Bearer ${this.token}`;
2837
2216
  }
2838
- return h2;
2217
+ return h;
2839
2218
  }
2840
2219
  async get(path, query = {}) {
2841
2220
  const url = new URL(path, this.baseUrl);
2842
- for (const [k3, v2] of Object.entries(query)) {
2843
- url.searchParams.set(k3, v2);
2221
+ for (const [k, v] of Object.entries(query)) {
2222
+ url.searchParams.set(k, v);
2844
2223
  }
2845
2224
  const res = await fetch(url, { method: "GET", headers: this.headers() });
2846
2225
  const data = await res.json().catch(() => null);
@@ -2921,9 +2300,9 @@ function ticketsCommand(program2) {
2921
2300
  t.assigned_to?.name ?? "-"
2922
2301
  ]);
2923
2302
  const headers = ["ID", "Title", "Status", "Priority", "Account", "Assigned To"];
2924
- const colWidths = headers.map((h2, i) => Math.max(h2.length, ...rows.map((r) => r[i].length)));
2925
- const pad = (s, w2) => s.padEnd(w2);
2926
- const line = headers.map((h2, i) => pad(h2, colWidths[i])).join(" | ");
2303
+ const colWidths = headers.map((h, i) => Math.max(h.length, ...rows.map((r) => r[i].length)));
2304
+ const pad = (s, w) => s.padEnd(w);
2305
+ const line = headers.map((h, i) => pad(h, colWidths[i])).join(" | ");
2927
2306
  console.log(line);
2928
2307
  console.log("-".repeat(line.length));
2929
2308
  for (const row of rows) {
@@ -3012,18 +2391,18 @@ function timeEntriesCommand(program2) {
3012
2391
  console.log("No time entries found.");
3013
2392
  return;
3014
2393
  }
3015
- const rows = entries.map((e2) => [
3016
- String(e2.id),
3017
- String(e2.date ?? ""),
3018
- String(e2.hours ?? ""),
3019
- String(e2.task ?? "").slice(0, 40),
3020
- e2.account?.name ?? "-",
3021
- e2.statement_of_work?.name ?? "-"
2394
+ const rows = entries.map((e) => [
2395
+ String(e.id),
2396
+ String(e.date ?? ""),
2397
+ String(e.hours ?? ""),
2398
+ String(e.task ?? "").slice(0, 40),
2399
+ e.account?.name ?? "-",
2400
+ e.statement_of_work?.name ?? "-"
3022
2401
  ]);
3023
2402
  const headers = ["ID", "Date", "Hours", "Task", "Account", "SOW"];
3024
- const colWidths = headers.map((h2, i) => Math.max(h2.length, ...rows.map((r) => r[i].length)));
3025
- const pad = (s, w2) => s.padEnd(w2);
3026
- const line = headers.map((h2, i) => pad(h2, colWidths[i])).join(" | ");
2403
+ const colWidths = headers.map((h, i) => Math.max(h.length, ...rows.map((r) => r[i].length)));
2404
+ const pad = (s, w) => s.padEnd(w);
2405
+ const line = headers.map((h, i) => pad(h, colWidths[i])).join(" | ");
3027
2406
  console.log(line);
3028
2407
  console.log("-".repeat(line.length));
3029
2408
  for (const row of rows) {
@@ -3088,9 +2467,9 @@ function accountsCommand(program2) {
3088
2467
  String(a.status ?? "active")
3089
2468
  ]);
3090
2469
  const headers = ["ID", "Name", "Description", "Status"];
3091
- const colWidths = headers.map((h2, i) => Math.max(h2.length, ...rows.map((r) => r[i].length)));
3092
- const pad = (s, w2) => s.padEnd(w2);
3093
- const line = headers.map((h2, i) => pad(h2, colWidths[i])).join(" | ");
2470
+ const colWidths = headers.map((h, i) => Math.max(h.length, ...rows.map((r) => r[i].length)));
2471
+ const pad = (s, w) => s.padEnd(w);
2472
+ const line = headers.map((h, i) => pad(h, colWidths[i])).join(" | ");
3094
2473
  console.log(line);
3095
2474
  console.log("-".repeat(line.length));
3096
2475
  for (const row of rows) {
@@ -3135,9 +2514,9 @@ function contactsCommand(program2) {
3135
2514
  String(c.account_name ?? "-")
3136
2515
  ]);
3137
2516
  const headers = ["ID", "Name", "Email", "Account"];
3138
- const colWidths = headers.map((h2, i) => Math.max(h2.length, ...rows.map((r) => r[i].length)));
3139
- const pad = (s, w2) => s.padEnd(w2);
3140
- const line = headers.map((h2, i) => pad(h2, colWidths[i])).join(" | ");
2517
+ const colWidths = headers.map((h, i) => Math.max(h.length, ...rows.map((r) => r[i].length)));
2518
+ const pad = (s, w) => s.padEnd(w);
2519
+ const line = headers.map((h, i) => pad(h, colWidths[i])).join(" | ");
3141
2520
  console.log(line);
3142
2521
  console.log("-".repeat(line.length));
3143
2522
  for (const row of rows) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@disruptica/mantis-cli",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "CLI client for the Monitor/Timetracker API",
5
5
  "type": "module",
6
6
  "bin": {
@@ -20,7 +20,6 @@
20
20
  "access": "public"
21
21
  },
22
22
  "dependencies": {
23
- "@clack/prompts": "^0.10.0",
24
23
  "commander": "^13.0.0"
25
24
  },
26
25
  "devDependencies": {