create-rstack 1.0.2 → 1.0.4

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/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import {fileURLToPath as __webpack_fileURLToPath__} from "url";
2
- import {dirname as __webpack_dirname__} from "path";
1
+ import { fileURLToPath as __webpack_fileURLToPath__ } from "url";
2
+ import { dirname as __webpack_dirname__ } from "path";
3
3
  import * as __WEBPACK_EXTERNAL_MODULE_tty__ from "tty";
4
4
  import * as __WEBPACK_EXTERNAL_MODULE_node_fs__ from "node:fs";
5
5
  import * as __WEBPACK_EXTERNAL_MODULE_node_path__ from "node:path";
@@ -8,902 +8,1359 @@ import * as __WEBPACK_EXTERNAL_MODULE_node_readline__ from "node:readline";
8
8
  import * as __WEBPACK_EXTERNAL_MODULE_node_tty__ from "node:tty";
9
9
  import * as __WEBPACK_EXTERNAL_MODULE_process__ from "process";
10
10
  import * as __WEBPACK_EXTERNAL_MODULE_os__ from "os";
11
- var __webpack_modules__ = ({
12
- "./node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js": (function (module) {
13
-
14
-
15
- var isMergeableObject = function isMergeableObject(value) {
16
- return isNonNullObject(value)
17
- && !isSpecial(value)
11
+ var __webpack_modules__ = {
12
+ "./node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js": function(module) {
13
+ var isMergeableObject = function(value) {
14
+ return isNonNullObject(value) && !isSpecial(value);
15
+ };
16
+ function isNonNullObject(value) {
17
+ return !!value && 'object' == typeof value;
18
+ }
19
+ function isSpecial(value) {
20
+ var stringValue = Object.prototype.toString.call(value);
21
+ return '[object RegExp]' === stringValue || '[object Date]' === stringValue || isReactElement(value);
22
+ }
23
+ // see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
24
+ var canUseSymbol = 'function' == typeof Symbol && Symbol.for;
25
+ var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;
26
+ function isReactElement(value) {
27
+ return value.$$typeof === REACT_ELEMENT_TYPE;
28
+ }
29
+ function emptyTarget(val) {
30
+ return Array.isArray(val) ? [] : {};
31
+ }
32
+ function cloneUnlessOtherwiseSpecified(value, options) {
33
+ return false !== options.clone && options.isMergeableObject(value) ? deepmerge(emptyTarget(value), value, options) : value;
34
+ }
35
+ function defaultArrayMerge(target, source, options) {
36
+ return target.concat(source).map(function(element) {
37
+ return cloneUnlessOtherwiseSpecified(element, options);
38
+ });
39
+ }
40
+ function getMergeFunction(key, options) {
41
+ if (!options.customMerge) return deepmerge;
42
+ var customMerge = options.customMerge(key);
43
+ return 'function' == typeof customMerge ? customMerge : deepmerge;
44
+ }
45
+ function getEnumerableOwnPropertySymbols(target) {
46
+ return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(target).filter(function(symbol) {
47
+ return Object.propertyIsEnumerable.call(target, symbol);
48
+ }) : [];
49
+ }
50
+ function getKeys(target) {
51
+ return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target));
52
+ }
53
+ function propertyIsOnObject(object, property) {
54
+ try {
55
+ return property in object;
56
+ } catch (_) {
57
+ return false;
58
+ }
59
+ }
60
+ // Protects from prototype poisoning and unexpected merging up the prototype chain.
61
+ function propertyIsUnsafe(target, key) {
62
+ return propertyIsOnObject(target, key) // Properties are safe to merge if they don't exist in the target yet,
63
+ && !(Object.hasOwnProperty.call(target, key) // unsafe if they exist up the prototype chain,
64
+ && Object.propertyIsEnumerable.call(target, key) // and also unsafe if they're nonenumerable.
65
+ );
66
+ }
67
+ function mergeObject(target, source, options) {
68
+ var destination = {};
69
+ if (options.isMergeableObject(target)) getKeys(target).forEach(function(key) {
70
+ destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
71
+ });
72
+ getKeys(source).forEach(function(key) {
73
+ if (propertyIsUnsafe(target, key)) return;
74
+ if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) destination[key] = getMergeFunction(key, options)(target[key], source[key], options);
75
+ else destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
76
+ });
77
+ return destination;
78
+ }
79
+ function deepmerge(target, source, options) {
80
+ options = options || {};
81
+ options.arrayMerge = options.arrayMerge || defaultArrayMerge;
82
+ options.isMergeableObject = options.isMergeableObject || isMergeableObject;
83
+ // cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
84
+ // implementations can use it. The caller may not replace it.
85
+ options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
86
+ var sourceIsArray = Array.isArray(source);
87
+ var targetIsArray = Array.isArray(target);
88
+ var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
89
+ if (!sourceAndTargetTypesMatch) return cloneUnlessOtherwiseSpecified(source, options);
90
+ if (sourceIsArray) return options.arrayMerge(target, source, options);
91
+ return mergeObject(target, source, options);
92
+ }
93
+ deepmerge.all = function(array, options) {
94
+ if (!Array.isArray(array)) throw new Error('first argument should be an array');
95
+ return array.reduce(function(prev, next) {
96
+ return deepmerge(prev, next, options);
97
+ }, {});
98
+ };
99
+ var deepmerge_1 = deepmerge;
100
+ module.exports = deepmerge_1;
101
+ },
102
+ "./node_modules/.pnpm/minimist@1.2.8/node_modules/minimist/index.js": function(module) {
103
+ function hasKey(obj, keys) {
104
+ var o = obj;
105
+ keys.slice(0, -1).forEach(function(key) {
106
+ o = o[key] || {};
107
+ });
108
+ var key = keys[keys.length - 1];
109
+ return key in o;
110
+ }
111
+ function isNumber(x) {
112
+ if ('number' == typeof x) return true;
113
+ if (/^0x[0-9a-f]+$/i.test(x)) return true;
114
+ return /^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(x);
115
+ }
116
+ function isConstructorOrProto(obj, key) {
117
+ return 'constructor' === key && 'function' == typeof obj[key] || '__proto__' === key;
118
+ }
119
+ module.exports = function(args, opts) {
120
+ if (!opts) opts = {};
121
+ var flags = {
122
+ bools: {},
123
+ strings: {},
124
+ unknownFn: null
125
+ };
126
+ if ('function' == typeof opts.unknown) flags.unknownFn = opts.unknown;
127
+ if ('boolean' == typeof opts.boolean && opts.boolean) flags.allBools = true;
128
+ else [].concat(opts.boolean).filter(Boolean).forEach(function(key) {
129
+ flags.bools[key] = true;
130
+ });
131
+ var aliases = {};
132
+ function aliasIsBoolean(key) {
133
+ return aliases[key].some(function(x) {
134
+ return flags.bools[x];
135
+ });
136
+ }
137
+ Object.keys(opts.alias || {}).forEach(function(key) {
138
+ aliases[key] = [].concat(opts.alias[key]);
139
+ aliases[key].forEach(function(x) {
140
+ aliases[x] = [
141
+ key
142
+ ].concat(aliases[key].filter(function(y) {
143
+ return x !== y;
144
+ }));
145
+ });
146
+ });
147
+ [].concat(opts.string).filter(Boolean).forEach(function(key) {
148
+ flags.strings[key] = true;
149
+ if (aliases[key]) [].concat(aliases[key]).forEach(function(k) {
150
+ flags.strings[k] = true;
151
+ });
152
+ });
153
+ var defaults = opts.default || {};
154
+ var argv = {
155
+ _: []
156
+ };
157
+ function argDefined(key, arg) {
158
+ return flags.allBools && /^--[^=]+$/.test(arg) || flags.strings[key] || flags.bools[key] || aliases[key];
159
+ }
160
+ function setKey(obj, keys, value) {
161
+ var o = obj;
162
+ for(var i = 0; i < keys.length - 1; i++){
163
+ var key = keys[i];
164
+ if (isConstructorOrProto(o, key)) return;
165
+ if (void 0 === o[key]) o[key] = {};
166
+ if (o[key] === Object.prototype || o[key] === Number.prototype || o[key] === String.prototype) o[key] = {};
167
+ if (o[key] === Array.prototype) o[key] = [];
168
+ o = o[key];
169
+ }
170
+ var lastKey = keys[keys.length - 1];
171
+ if (isConstructorOrProto(o, lastKey)) return;
172
+ if (o === Object.prototype || o === Number.prototype || o === String.prototype) o = {};
173
+ if (o === Array.prototype) o = [];
174
+ if (void 0 === o[lastKey] || flags.bools[lastKey] || 'boolean' == typeof o[lastKey]) o[lastKey] = value;
175
+ else if (Array.isArray(o[lastKey])) o[lastKey].push(value);
176
+ else o[lastKey] = [
177
+ o[lastKey],
178
+ value
179
+ ];
180
+ }
181
+ function setArg(key, val, arg) {
182
+ if (arg && flags.unknownFn && !argDefined(key, arg)) {
183
+ if (false === flags.unknownFn(arg)) return;
184
+ }
185
+ var value = !flags.strings[key] && isNumber(val) ? Number(val) : val;
186
+ setKey(argv, key.split('.'), value);
187
+ (aliases[key] || []).forEach(function(x) {
188
+ setKey(argv, x.split('.'), value);
189
+ });
190
+ }
191
+ Object.keys(flags.bools).forEach(function(key) {
192
+ setArg(key, void 0 !== defaults[key] && defaults[key]);
193
+ });
194
+ var notFlags = [];
195
+ if (-1 !== args.indexOf('--')) {
196
+ notFlags = args.slice(args.indexOf('--') + 1);
197
+ args = args.slice(0, args.indexOf('--'));
198
+ }
199
+ for(var i = 0; i < args.length; i++){
200
+ var arg = args[i];
201
+ var key;
202
+ var next;
203
+ if (/^--.+=/.test(arg)) {
204
+ // Using [\s\S] instead of . because js doesn't support the
205
+ // 'dotall' regex modifier. See:
206
+ // http://stackoverflow.com/a/1068308/13216
207
+ var m = arg.match(/^--([^=]+)=([\s\S]*)$/);
208
+ key = m[1];
209
+ var value = m[2];
210
+ if (flags.bools[key]) value = 'false' !== value;
211
+ setArg(key, value, arg);
212
+ } else if (/^--no-.+/.test(arg)) {
213
+ key = arg.match(/^--no-(.+)/)[1];
214
+ setArg(key, false, arg);
215
+ } else if (/^--.+/.test(arg)) {
216
+ key = arg.match(/^--(.+)/)[1];
217
+ next = args[i + 1];
218
+ if (void 0 === next || /^(-|--)[^-]/.test(next) || flags.bools[key] || flags.allBools || aliases[key] && aliasIsBoolean(key)) {
219
+ if (/^(true|false)$/.test(next)) {
220
+ setArg(key, 'true' === next, arg);
221
+ i += 1;
222
+ } else setArg(key, !flags.strings[key] || '', arg);
223
+ } else {
224
+ setArg(key, next, arg);
225
+ i += 1;
226
+ }
227
+ } else if (/^-[^-]+/.test(arg)) {
228
+ var letters = arg.slice(1, -1).split('');
229
+ var broken = false;
230
+ for(var j = 0; j < letters.length; j++){
231
+ next = arg.slice(j + 2);
232
+ if ('-' === next) {
233
+ setArg(letters[j], next, arg);
234
+ continue;
235
+ }
236
+ if (/[A-Za-z]/.test(letters[j]) && '=' === next[0]) {
237
+ setArg(letters[j], next.slice(1), arg);
238
+ broken = true;
239
+ break;
240
+ }
241
+ if (/[A-Za-z]/.test(letters[j]) && /-?\d+(\.\d*)?(e-?\d+)?$/.test(next)) {
242
+ setArg(letters[j], next, arg);
243
+ broken = true;
244
+ break;
245
+ }
246
+ if (letters[j + 1] && letters[j + 1].match(/\W/)) {
247
+ setArg(letters[j], arg.slice(j + 2), arg);
248
+ broken = true;
249
+ break;
250
+ }
251
+ setArg(letters[j], !flags.strings[letters[j]] || '', arg);
252
+ }
253
+ key = arg.slice(-1)[0];
254
+ if (!broken && '-' !== key) {
255
+ if (!args[i + 1] || /^(-|--)[^-]/.test(args[i + 1]) || flags.bools[key] || aliases[key] && aliasIsBoolean(key)) {
256
+ if (args[i + 1] && /^(true|false)$/.test(args[i + 1])) {
257
+ setArg(key, 'true' === args[i + 1], arg);
258
+ i += 1;
259
+ } else setArg(key, !flags.strings[key] || '', arg);
260
+ } else {
261
+ setArg(key, args[i + 1], arg);
262
+ i += 1;
263
+ }
264
+ }
265
+ } else {
266
+ if (!flags.unknownFn || false !== flags.unknownFn(arg)) argv._.push(flags.strings._ || !isNumber(arg) ? arg : Number(arg));
267
+ if (opts.stopEarly) {
268
+ argv._.push.apply(argv._, args.slice(i + 1));
269
+ break;
270
+ }
271
+ }
272
+ }
273
+ Object.keys(defaults).forEach(function(k) {
274
+ if (!hasKey(argv, k.split('.'))) {
275
+ setKey(argv, k.split('.'), defaults[k]);
276
+ (aliases[k] || []).forEach(function(x) {
277
+ setKey(argv, x.split('.'), defaults[k]);
278
+ });
279
+ }
280
+ });
281
+ if (opts['--']) argv['--'] = notFlags.slice();
282
+ else notFlags.forEach(function(k) {
283
+ argv._.push(k);
284
+ });
285
+ return argv;
286
+ };
287
+ },
288
+ "./node_modules/.pnpm/picocolors@1.0.1/node_modules/picocolors/picocolors.js": function(module, __unused_webpack_exports, __webpack_require__) {
289
+ let argv = process.argv || [], env = process.env;
290
+ let isColorSupported = !("NO_COLOR" in env || argv.includes("--no-color")) && ("FORCE_COLOR" in env || argv.includes("--color") || "win32" === process.platform || null != require && __webpack_require__("tty")/* .isatty */ .isatty(1) && "dumb" !== env.TERM || "CI" in env);
291
+ let formatter = (open, close, replace = open)=>(input)=>{
292
+ let string = "" + input;
293
+ let index = string.indexOf(close, open.length);
294
+ return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
295
+ };
296
+ let replaceClose = (string, close, replace, index)=>{
297
+ let result = "";
298
+ let cursor = 0;
299
+ do {
300
+ result += string.substring(cursor, index) + replace;
301
+ cursor = index + close.length;
302
+ index = string.indexOf(close, cursor);
303
+ }while (~index);
304
+ return result + string.substring(cursor);
305
+ };
306
+ let createColors = (enabled = isColorSupported)=>{
307
+ let init = enabled ? formatter : ()=>String;
308
+ return {
309
+ isColorSupported: enabled,
310
+ reset: init("\x1b[0m", "\x1b[0m"),
311
+ bold: init("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m"),
312
+ dim: init("\x1b[2m", "\x1b[22m", "\x1b[22m\x1b[2m"),
313
+ italic: init("\x1b[3m", "\x1b[23m"),
314
+ underline: init("\x1b[4m", "\x1b[24m"),
315
+ inverse: init("\x1b[7m", "\x1b[27m"),
316
+ hidden: init("\x1b[8m", "\x1b[28m"),
317
+ strikethrough: init("\x1b[9m", "\x1b[29m"),
318
+ black: init("\x1b[30m", "\x1b[39m"),
319
+ red: init("\x1b[31m", "\x1b[39m"),
320
+ green: init("\x1b[32m", "\x1b[39m"),
321
+ yellow: init("\x1b[33m", "\x1b[39m"),
322
+ blue: init("\x1b[34m", "\x1b[39m"),
323
+ magenta: init("\x1b[35m", "\x1b[39m"),
324
+ cyan: init("\x1b[36m", "\x1b[39m"),
325
+ white: init("\x1b[37m", "\x1b[39m"),
326
+ gray: init("\x1b[90m", "\x1b[39m"),
327
+ bgBlack: init("\x1b[40m", "\x1b[49m"),
328
+ bgRed: init("\x1b[41m", "\x1b[49m"),
329
+ bgGreen: init("\x1b[42m", "\x1b[49m"),
330
+ bgYellow: init("\x1b[43m", "\x1b[49m"),
331
+ bgBlue: init("\x1b[44m", "\x1b[49m"),
332
+ bgMagenta: init("\x1b[45m", "\x1b[49m"),
333
+ bgCyan: init("\x1b[46m", "\x1b[49m"),
334
+ bgWhite: init("\x1b[47m", "\x1b[49m")
335
+ };
336
+ };
337
+ module.exports = createColors();
338
+ module.exports.createColors = createColors;
339
+ },
340
+ "./node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js": function(module) {
341
+ const ESC = '\x1B';
342
+ const CSI = `${ESC}[`;
343
+ const beep = '\u0007';
344
+ const cursor = {
345
+ to (x, y) {
346
+ if (!y) return `${CSI}${x + 1}G`;
347
+ return `${CSI}${y + 1};${x + 1}H`;
348
+ },
349
+ move (x, y) {
350
+ let ret = '';
351
+ if (x < 0) ret += `${CSI}${-x}D`;
352
+ else if (x > 0) ret += `${CSI}${x}C`;
353
+ if (y < 0) ret += `${CSI}${-y}A`;
354
+ else if (y > 0) ret += `${CSI}${y}B`;
355
+ return ret;
356
+ },
357
+ up: (count = 1)=>`${CSI}${count}A`,
358
+ down: (count = 1)=>`${CSI}${count}B`,
359
+ forward: (count = 1)=>`${CSI}${count}C`,
360
+ backward: (count = 1)=>`${CSI}${count}D`,
361
+ nextLine: (count = 1)=>`${CSI}E`.repeat(count),
362
+ prevLine: (count = 1)=>`${CSI}F`.repeat(count),
363
+ left: `${CSI}G`,
364
+ hide: `${CSI}?25l`,
365
+ show: `${CSI}?25h`,
366
+ save: `${ESC}7`,
367
+ restore: `${ESC}8`
368
+ };
369
+ const scroll = {
370
+ up: (count = 1)=>`${CSI}S`.repeat(count),
371
+ down: (count = 1)=>`${CSI}T`.repeat(count)
372
+ };
373
+ const erase = {
374
+ screen: `${CSI}2J`,
375
+ up: (count = 1)=>`${CSI}1J`.repeat(count),
376
+ down: (count = 1)=>`${CSI}J`.repeat(count),
377
+ line: `${CSI}2K`,
378
+ lineEnd: `${CSI}K`,
379
+ lineStart: `${CSI}1K`,
380
+ lines (count) {
381
+ let clear = '';
382
+ for(let i = 0; i < count; i++)clear += this.line + (i < count - 1 ? cursor.up() : '');
383
+ if (count) clear += cursor.left;
384
+ return clear;
385
+ }
386
+ };
387
+ module.exports = {
388
+ cursor,
389
+ scroll,
390
+ erase,
391
+ beep
392
+ };
393
+ },
394
+ tty: function(module) {
395
+ module.exports = __WEBPACK_EXTERNAL_MODULE_tty__;
396
+ }
18
397
  };
19
-
20
- function isNonNullObject(value) {
21
- return !!value && typeof value === 'object'
22
- }
23
-
24
- function isSpecial(value) {
25
- var stringValue = Object.prototype.toString.call(value);
26
-
27
- return stringValue === '[object RegExp]'
28
- || stringValue === '[object Date]'
29
- || isReactElement(value)
30
- }
31
-
32
- // see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
33
- var canUseSymbol = typeof Symbol === 'function' && Symbol.for;
34
- var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;
35
-
36
- function isReactElement(value) {
37
- return value.$$typeof === REACT_ELEMENT_TYPE
38
- }
39
-
40
- function emptyTarget(val) {
41
- return Array.isArray(val) ? [] : {}
42
- }
43
-
44
- function cloneUnlessOtherwiseSpecified(value, options) {
45
- return (options.clone !== false && options.isMergeableObject(value))
46
- ? deepmerge(emptyTarget(value), value, options)
47
- : value
48
- }
49
-
50
- function defaultArrayMerge(target, source, options) {
51
- return target.concat(source).map(function(element) {
52
- return cloneUnlessOtherwiseSpecified(element, options)
53
- })
54
- }
55
-
56
- function getMergeFunction(key, options) {
57
- if (!options.customMerge) {
58
- return deepmerge
59
- }
60
- var customMerge = options.customMerge(key);
61
- return typeof customMerge === 'function' ? customMerge : deepmerge
62
- }
63
-
64
- function getEnumerableOwnPropertySymbols(target) {
65
- return Object.getOwnPropertySymbols
66
- ? Object.getOwnPropertySymbols(target).filter(function(symbol) {
67
- return Object.propertyIsEnumerable.call(target, symbol)
68
- })
69
- : []
70
- }
71
-
72
- function getKeys(target) {
73
- return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target))
74
- }
75
-
76
- function propertyIsOnObject(object, property) {
77
- try {
78
- return property in object
79
- } catch(_) {
80
- return false
81
- }
398
+ /************************************************************************/ // The module cache
399
+ var __webpack_module_cache__ = {};
400
+ // The require function
401
+ function __webpack_require__(moduleId) {
402
+ // Check if module is in cache
403
+ var cachedModule = __webpack_module_cache__[moduleId];
404
+ if (void 0 !== cachedModule) return cachedModule.exports;
405
+ // Create a new module (and put it into the cache)
406
+ var module = __webpack_module_cache__[moduleId] = {
407
+ exports: {}
408
+ };
409
+ // Execute the module function
410
+ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
411
+ // Return the exports of the module
412
+ return module.exports;
82
413
  }
83
-
84
- // Protects from prototype poisoning and unexpected merging up the prototype chain.
85
- function propertyIsUnsafe(target, key) {
86
- return propertyIsOnObject(target, key) // Properties are safe to merge if they don't exist in the target yet,
87
- && !(Object.hasOwnProperty.call(target, key) // unsafe if they exist up the prototype chain,
88
- && Object.propertyIsEnumerable.call(target, key)) // and also unsafe if they're nonenumerable.
414
+ /************************************************************************/ // webpack/runtime/compat_get_default_export
415
+ (()=>{
416
+ // getDefaultExport function for compatibility with non-harmony modules
417
+ __webpack_require__.n = function(module) {
418
+ var getter = module && module.__esModule ? function() {
419
+ return module['default'];
420
+ } : function() {
421
+ return module;
422
+ };
423
+ __webpack_require__.d(getter, {
424
+ a: getter
425
+ });
426
+ return getter;
427
+ };
428
+ })();
429
+ // webpack/runtime/define_property_getters
430
+ (()=>{
431
+ __webpack_require__.d = function(exports, definition) {
432
+ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, {
433
+ enumerable: true,
434
+ get: definition[key]
435
+ });
436
+ };
437
+ })();
438
+ // webpack/runtime/has_own_property
439
+ (()=>{
440
+ __webpack_require__.o = function(obj, prop) {
441
+ return Object.prototype.hasOwnProperty.call(obj, prop);
442
+ };
443
+ })(); /************************************************************************/
444
+ // EXTERNAL MODULE: ./node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js
445
+ var src = __webpack_require__("./node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js");
446
+ // EXTERNAL MODULE: ./node_modules/.pnpm/picocolors@1.0.1/node_modules/picocolors/picocolors.js
447
+ var picocolors = __webpack_require__("./node_modules/.pnpm/picocolors@1.0.1/node_modules/picocolors/picocolors.js");
448
+ function q({ onlyFirst: t = !1 } = {}) {
449
+ const u = "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))";
450
+ return new RegExp(u, t ? void 0 : "g");
89
451
  }
90
-
91
- function mergeObject(target, source, options) {
92
- var destination = {};
93
- if (options.isMergeableObject(target)) {
94
- getKeys(target).forEach(function(key) {
95
- destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
96
- });
97
- }
98
- getKeys(source).forEach(function(key) {
99
- if (propertyIsUnsafe(target, key)) {
100
- return
101
- }
102
-
103
- if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {
104
- destination[key] = getMergeFunction(key, options)(target[key], source[key], options);
105
- } else {
106
- destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
107
- }
108
- });
109
- return destination
452
+ function S(t) {
453
+ if ("string" != typeof t) throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);
454
+ return t.replace(q(), "");
110
455
  }
111
-
112
- function deepmerge(target, source, options) {
113
- options = options || {};
114
- options.arrayMerge = options.arrayMerge || defaultArrayMerge;
115
- options.isMergeableObject = options.isMergeableObject || isMergeableObject;
116
- // cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
117
- // implementations can use it. The caller may not replace it.
118
- options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
119
-
120
- var sourceIsArray = Array.isArray(source);
121
- var targetIsArray = Array.isArray(target);
122
- var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
123
-
124
- if (!sourceAndTargetTypesMatch) {
125
- return cloneUnlessOtherwiseSpecified(source, options)
126
- } else if (sourceIsArray) {
127
- return options.arrayMerge(target, source, options)
128
- } else {
129
- return mergeObject(target, source, options)
130
- }
456
+ function dist_j(t) {
457
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
131
458
  }
132
-
133
- deepmerge.all = function deepmergeAll(array, options) {
134
- if (!Array.isArray(array)) {
135
- throw new Error('first argument should be an array')
136
- }
137
-
138
- return array.reduce(function(prev, next) {
139
- return deepmerge(prev, next, options)
140
- }, {})
459
+ var M = {
460
+ exports: {}
141
461
  };
142
-
143
- var deepmerge_1 = deepmerge;
144
-
145
- module.exports = deepmerge_1;
146
-
147
-
148
- }),
149
- "./node_modules/.pnpm/minimist@1.2.8/node_modules/minimist/index.js": (function (module) {
150
-
151
-
152
- function hasKey(obj, keys) {
153
- var o = obj;
154
- keys.slice(0, -1).forEach(function (key) {
155
- o = o[key] || {};
156
- });
157
-
158
- var key = keys[keys.length - 1];
159
- return key in o;
160
- }
161
-
162
- function isNumber(x) {
163
- if (typeof x === 'number') { return true; }
164
- if ((/^0x[0-9a-f]+$/i).test(x)) { return true; }
165
- return (/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/).test(x);
166
- }
167
-
168
- function isConstructorOrProto(obj, key) {
169
- return (key === 'constructor' && typeof obj[key] === 'function') || key === '__proto__';
170
- }
171
-
172
- module.exports = function (args, opts) {
173
- if (!opts) { opts = {}; }
174
-
175
- var flags = {
176
- bools: {},
177
- strings: {},
178
- unknownFn: null,
179
- };
180
-
181
- if (typeof opts.unknown === 'function') {
182
- flags.unknownFn = opts.unknown;
183
- }
184
-
185
- if (typeof opts.boolean === 'boolean' && opts.boolean) {
186
- flags.allBools = true;
187
- } else {
188
- [].concat(opts.boolean).filter(Boolean).forEach(function (key) {
189
- flags.bools[key] = true;
190
- });
191
- }
192
-
193
- var aliases = {};
194
-
195
- function aliasIsBoolean(key) {
196
- return aliases[key].some(function (x) {
197
- return flags.bools[x];
198
- });
199
- }
200
-
201
- Object.keys(opts.alias || {}).forEach(function (key) {
202
- aliases[key] = [].concat(opts.alias[key]);
203
- aliases[key].forEach(function (x) {
204
- aliases[x] = [key].concat(aliases[key].filter(function (y) {
205
- return x !== y;
206
- }));
207
- });
208
- });
209
-
210
- [].concat(opts.string).filter(Boolean).forEach(function (key) {
211
- flags.strings[key] = true;
212
- if (aliases[key]) {
213
- [].concat(aliases[key]).forEach(function (k) {
214
- flags.strings[k] = true;
215
- });
216
- }
217
- });
218
-
219
- var defaults = opts.default || {};
220
-
221
- var argv = { _: [] };
222
-
223
- function argDefined(key, arg) {
224
- return (flags.allBools && (/^--[^=]+$/).test(arg))
225
- || flags.strings[key]
226
- || flags.bools[key]
227
- || aliases[key];
228
- }
229
-
230
- function setKey(obj, keys, value) {
231
- var o = obj;
232
- for (var i = 0; i < keys.length - 1; i++) {
233
- var key = keys[i];
234
- if (isConstructorOrProto(o, key)) { return; }
235
- if (o[key] === undefined) { o[key] = {}; }
236
- if (
237
- o[key] === Object.prototype
238
- || o[key] === Number.prototype
239
- || o[key] === String.prototype
240
- ) {
241
- o[key] = {};
242
- }
243
- if (o[key] === Array.prototype) { o[key] = []; }
244
- o = o[key];
245
- }
246
-
247
- var lastKey = keys[keys.length - 1];
248
- if (isConstructorOrProto(o, lastKey)) { return; }
249
- if (
250
- o === Object.prototype
251
- || o === Number.prototype
252
- || o === String.prototype
253
- ) {
254
- o = {};
255
- }
256
- if (o === Array.prototype) { o = []; }
257
- if (o[lastKey] === undefined || flags.bools[lastKey] || typeof o[lastKey] === 'boolean') {
258
- o[lastKey] = value;
259
- } else if (Array.isArray(o[lastKey])) {
260
- o[lastKey].push(value);
261
- } else {
262
- o[lastKey] = [o[lastKey], value];
263
- }
264
- }
265
-
266
- function setArg(key, val, arg) {
267
- if (arg && flags.unknownFn && !argDefined(key, arg)) {
268
- if (flags.unknownFn(arg) === false) { return; }
269
- }
270
-
271
- var value = !flags.strings[key] && isNumber(val)
272
- ? Number(val)
273
- : val;
274
- setKey(argv, key.split('.'), value);
275
-
276
- (aliases[key] || []).forEach(function (x) {
277
- setKey(argv, x.split('.'), value);
278
- });
279
- }
280
-
281
- Object.keys(flags.bools).forEach(function (key) {
282
- setArg(key, defaults[key] === undefined ? false : defaults[key]);
283
- });
284
-
285
- var notFlags = [];
286
-
287
- if (args.indexOf('--') !== -1) {
288
- notFlags = args.slice(args.indexOf('--') + 1);
289
- args = args.slice(0, args.indexOf('--'));
290
- }
291
-
292
- for (var i = 0; i < args.length; i++) {
293
- var arg = args[i];
294
- var key;
295
- var next;
296
-
297
- if ((/^--.+=/).test(arg)) {
298
- // Using [\s\S] instead of . because js doesn't support the
299
- // 'dotall' regex modifier. See:
300
- // http://stackoverflow.com/a/1068308/13216
301
- var m = arg.match(/^--([^=]+)=([\s\S]*)$/);
302
- key = m[1];
303
- var value = m[2];
304
- if (flags.bools[key]) {
305
- value = value !== 'false';
306
- }
307
- setArg(key, value, arg);
308
- } else if ((/^--no-.+/).test(arg)) {
309
- key = arg.match(/^--no-(.+)/)[1];
310
- setArg(key, false, arg);
311
- } else if ((/^--.+/).test(arg)) {
312
- key = arg.match(/^--(.+)/)[1];
313
- next = args[i + 1];
314
- if (
315
- next !== undefined
316
- && !(/^(-|--)[^-]/).test(next)
317
- && !flags.bools[key]
318
- && !flags.allBools
319
- && (aliases[key] ? !aliasIsBoolean(key) : true)
320
- ) {
321
- setArg(key, next, arg);
322
- i += 1;
323
- } else if ((/^(true|false)$/).test(next)) {
324
- setArg(key, next === 'true', arg);
325
- i += 1;
326
- } else {
327
- setArg(key, flags.strings[key] ? '' : true, arg);
328
- }
329
- } else if ((/^-[^-]+/).test(arg)) {
330
- var letters = arg.slice(1, -1).split('');
331
-
332
- var broken = false;
333
- for (var j = 0; j < letters.length; j++) {
334
- next = arg.slice(j + 2);
335
-
336
- if (next === '-') {
337
- setArg(letters[j], next, arg);
338
- continue;
339
- }
340
-
341
- if ((/[A-Za-z]/).test(letters[j]) && next[0] === '=') {
342
- setArg(letters[j], next.slice(1), arg);
343
- broken = true;
344
- break;
345
- }
346
-
347
- if (
348
- (/[A-Za-z]/).test(letters[j])
349
- && (/-?\d+(\.\d*)?(e-?\d+)?$/).test(next)
350
- ) {
351
- setArg(letters[j], next, arg);
352
- broken = true;
353
- break;
354
- }
355
-
356
- if (letters[j + 1] && letters[j + 1].match(/\W/)) {
357
- setArg(letters[j], arg.slice(j + 2), arg);
358
- broken = true;
359
- break;
360
- } else {
361
- setArg(letters[j], flags.strings[letters[j]] ? '' : true, arg);
362
- }
363
- }
364
-
365
- key = arg.slice(-1)[0];
366
- if (!broken && key !== '-') {
367
- if (
368
- args[i + 1]
369
- && !(/^(-|--)[^-]/).test(args[i + 1])
370
- && !flags.bools[key]
371
- && (aliases[key] ? !aliasIsBoolean(key) : true)
372
- ) {
373
- setArg(key, args[i + 1], arg);
374
- i += 1;
375
- } else if (args[i + 1] && (/^(true|false)$/).test(args[i + 1])) {
376
- setArg(key, args[i + 1] === 'true', arg);
377
- i += 1;
378
- } else {
379
- setArg(key, flags.strings[key] ? '' : true, arg);
380
- }
381
- }
382
- } else {
383
- if (!flags.unknownFn || flags.unknownFn(arg) !== false) {
384
- argv._.push(flags.strings._ || !isNumber(arg) ? arg : Number(arg));
385
- }
386
- if (opts.stopEarly) {
387
- argv._.push.apply(argv._, args.slice(i + 1));
388
- break;
389
- }
390
- }
391
- }
392
-
393
- Object.keys(defaults).forEach(function (k) {
394
- if (!hasKey(argv, k.split('.'))) {
395
- setKey(argv, k.split('.'), defaults[k]);
396
-
397
- (aliases[k] || []).forEach(function (x) {
398
- setKey(argv, x.split('.'), defaults[k]);
399
- });
400
- }
401
- });
402
-
403
- if (opts['--']) {
404
- argv['--'] = notFlags.slice();
405
- } else {
406
- notFlags.forEach(function (k) {
407
- argv._.push(k);
408
- });
409
- }
410
-
411
- return argv;
462
+ (function(t) {
463
+ var u = {};
464
+ t.exports = u, u.eastAsianWidth = function(e) {
465
+ var s = e.charCodeAt(0), C = 2 == e.length ? e.charCodeAt(1) : 0, D = s;
466
+ return 55296 <= s && s <= 56319 && 56320 <= C && C <= 57343 && (s &= 1023, C &= 1023, D = s << 10 | C, 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";
467
+ }, u.characterLength = function(e) {
468
+ var s = this.eastAsianWidth(e);
469
+ return "F" == s || "W" == s || "A" == s ? 2 : 1;
470
+ };
471
+ function F(e) {
472
+ return e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
473
+ }
474
+ u.length = function(e) {
475
+ for(var s = F(e), C = 0, D = 0; D < s.length; D++)C += this.characterLength(s[D]);
476
+ return C;
477
+ }, u.slice = function(e, s, C) {
478
+ textLen = u.length(e), s = s || 0, C = C || 1, s < 0 && (s = textLen + s), C < 0 && (C = textLen + C);
479
+ for(var D = "", i = 0, n = F(e), E = 0; E < n.length; E++){
480
+ var h = n[E], o = u.length(h);
481
+ if (i >= s - (2 == o ? 1 : 0)) {
482
+ if (i + o <= C) D += h;
483
+ else break;
484
+ }
485
+ i += o;
486
+ }
487
+ return D;
488
+ };
489
+ })(M);
490
+ var J = M.exports;
491
+ const Q = dist_j(J);
492
+ var X = function() {
493
+ 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;
412
494
  };
413
-
414
-
415
- }),
416
- "./node_modules/.pnpm/picocolors@1.0.1/node_modules/picocolors/picocolors.js": (function (module, __unused_webpack_exports, __webpack_require__) {
417
- let argv = process.argv || [],
418
- env = process.env
419
- let isColorSupported =
420
- !("NO_COLOR" in env || argv.includes("--no-color")) &&
421
- ("FORCE_COLOR" in env ||
422
- argv.includes("--color") ||
423
- process.platform === "win32" ||
424
- (__webpack_require__("./node_modules/.pnpm/picocolors@1.0.1/node_modules/picocolors sync recursive") != null && (__webpack_require__("tty")/* .isatty */.isatty)(1) && env.TERM !== "dumb") ||
425
- "CI" in env)
426
-
427
- let formatter =
428
- (open, close, replace = open) =>
429
- input => {
430
- let string = "" + input
431
- let index = string.indexOf(close, open.length)
432
- return ~index
433
- ? open + replaceClose(string, close, replace, index) + close
434
- : open + string + close
435
- }
436
-
437
- let replaceClose = (string, close, replace, index) => {
438
- let result = ""
439
- let cursor = 0
440
- do {
441
- result += string.substring(cursor, index) + replace
442
- cursor = index + close.length
443
- index = string.indexOf(close, cursor)
444
- } while (~index)
445
- return result + string.substring(cursor)
446
- }
447
-
448
- let createColors = (enabled = isColorSupported) => {
449
- let init = enabled ? formatter : () => String
450
- return {
451
- isColorSupported: enabled,
452
- reset: init("\x1b[0m", "\x1b[0m"),
453
- bold: init("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m"),
454
- dim: init("\x1b[2m", "\x1b[22m", "\x1b[22m\x1b[2m"),
455
- italic: init("\x1b[3m", "\x1b[23m"),
456
- underline: init("\x1b[4m", "\x1b[24m"),
457
- inverse: init("\x1b[7m", "\x1b[27m"),
458
- hidden: init("\x1b[8m", "\x1b[28m"),
459
- strikethrough: init("\x1b[9m", "\x1b[29m"),
460
- black: init("\x1b[30m", "\x1b[39m"),
461
- red: init("\x1b[31m", "\x1b[39m"),
462
- green: init("\x1b[32m", "\x1b[39m"),
463
- yellow: init("\x1b[33m", "\x1b[39m"),
464
- blue: init("\x1b[34m", "\x1b[39m"),
465
- magenta: init("\x1b[35m", "\x1b[39m"),
466
- cyan: init("\x1b[36m", "\x1b[39m"),
467
- white: init("\x1b[37m", "\x1b[39m"),
468
- gray: init("\x1b[90m", "\x1b[39m"),
469
- bgBlack: init("\x1b[40m", "\x1b[49m"),
470
- bgRed: init("\x1b[41m", "\x1b[49m"),
471
- bgGreen: init("\x1b[42m", "\x1b[49m"),
472
- bgYellow: init("\x1b[43m", "\x1b[49m"),
473
- bgBlue: init("\x1b[44m", "\x1b[49m"),
474
- bgMagenta: init("\x1b[45m", "\x1b[49m"),
475
- bgCyan: init("\x1b[46m", "\x1b[49m"),
476
- bgWhite: init("\x1b[47m", "\x1b[49m"),
477
- }
478
- }
479
-
480
- module.exports = createColors()
481
- module.exports.createColors = createColors
482
-
483
-
484
- }),
485
- "./node_modules/.pnpm/picocolors@1.0.1/node_modules/picocolors sync recursive": (function (module) {
486
- function webpackEmptyContext(req) {
487
- var e = new Error("Cannot find module '" + req + "'");
488
- e.code = 'MODULE_NOT_FOUND';
489
- throw e;
495
+ const DD = dist_j(X);
496
+ function dist_A(t, u = {}) {
497
+ if ("string" != typeof t || 0 === t.length || (u = {
498
+ ambiguousIsNarrow: !0,
499
+ ...u
500
+ }, t = S(t), 0 === t.length)) return 0;
501
+ t = t.replace(DD(), " ");
502
+ const F = u.ambiguousIsNarrow ? 1 : 2;
503
+ let e = 0;
504
+ for (const s of t){
505
+ const C = s.codePointAt(0);
506
+ if (!(C <= 31) && (!(C >= 127) || !(C <= 159)) && (!(C >= 768) || !(C <= 879))) switch(Q.eastAsianWidth(s)){
507
+ case "F":
508
+ case "W":
509
+ e += 2;
510
+ break;
511
+ case "A":
512
+ e += F;
513
+ break;
514
+ default:
515
+ e += 1;
516
+ }
517
+ }
518
+ return e;
490
519
  }
491
- webpackEmptyContext.keys = () => ([]);
492
- webpackEmptyContext.resolve = webpackEmptyContext;
493
- webpackEmptyContext.id = "./node_modules/.pnpm/picocolors@1.0.1/node_modules/picocolors sync recursive";
494
- module.exports = webpackEmptyContext;
495
-
496
-
497
- }),
498
- "./node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js": (function (module) {
499
-
500
-
501
- const ESC = '\x1B';
502
- const CSI = `${ESC}[`;
503
- const beep = '\u0007';
504
-
505
- const cursor = {
506
- to(x, y) {
507
- if (!y) return `${CSI}${x + 1}G`;
508
- return `${CSI}${y + 1};${x + 1}H`;
509
- },
510
- move(x, y) {
511
- let ret = '';
512
-
513
- if (x < 0) ret += `${CSI}${-x}D`;
514
- else if (x > 0) ret += `${CSI}${x}C`;
515
-
516
- if (y < 0) ret += `${CSI}${-y}A`;
517
- else if (y > 0) ret += `${CSI}${y}B`;
518
-
519
- return ret;
520
- },
521
- up: (count = 1) => `${CSI}${count}A`,
522
- down: (count = 1) => `${CSI}${count}B`,
523
- forward: (count = 1) => `${CSI}${count}C`,
524
- backward: (count = 1) => `${CSI}${count}D`,
525
- nextLine: (count = 1) => `${CSI}E`.repeat(count),
526
- prevLine: (count = 1) => `${CSI}F`.repeat(count),
527
- left: `${CSI}G`,
528
- hide: `${CSI}?25l`,
529
- show: `${CSI}?25h`,
530
- save: `${ESC}7`,
531
- restore: `${ESC}8`
520
+ const dist_m = 10, dist_T = (t = 0)=>(u)=>`\x1B[${u + t}m`, dist_P = (t = 0)=>(u)=>`\x1B[${38 + t};5;${u}m`, dist_W = (t = 0)=>(u, F, e)=>`\x1B[${38 + t};2;${u};${F};${e}m`, dist_r = {
521
+ modifier: {
522
+ reset: [
523
+ 0,
524
+ 0
525
+ ],
526
+ bold: [
527
+ 1,
528
+ 22
529
+ ],
530
+ dim: [
531
+ 2,
532
+ 22
533
+ ],
534
+ italic: [
535
+ 3,
536
+ 23
537
+ ],
538
+ underline: [
539
+ 4,
540
+ 24
541
+ ],
542
+ overline: [
543
+ 53,
544
+ 55
545
+ ],
546
+ inverse: [
547
+ 7,
548
+ 27
549
+ ],
550
+ hidden: [
551
+ 8,
552
+ 28
553
+ ],
554
+ strikethrough: [
555
+ 9,
556
+ 29
557
+ ]
558
+ },
559
+ color: {
560
+ black: [
561
+ 30,
562
+ 39
563
+ ],
564
+ red: [
565
+ 31,
566
+ 39
567
+ ],
568
+ green: [
569
+ 32,
570
+ 39
571
+ ],
572
+ yellow: [
573
+ 33,
574
+ 39
575
+ ],
576
+ blue: [
577
+ 34,
578
+ 39
579
+ ],
580
+ magenta: [
581
+ 35,
582
+ 39
583
+ ],
584
+ cyan: [
585
+ 36,
586
+ 39
587
+ ],
588
+ white: [
589
+ 37,
590
+ 39
591
+ ],
592
+ blackBright: [
593
+ 90,
594
+ 39
595
+ ],
596
+ gray: [
597
+ 90,
598
+ 39
599
+ ],
600
+ grey: [
601
+ 90,
602
+ 39
603
+ ],
604
+ redBright: [
605
+ 91,
606
+ 39
607
+ ],
608
+ greenBright: [
609
+ 92,
610
+ 39
611
+ ],
612
+ yellowBright: [
613
+ 93,
614
+ 39
615
+ ],
616
+ blueBright: [
617
+ 94,
618
+ 39
619
+ ],
620
+ magentaBright: [
621
+ 95,
622
+ 39
623
+ ],
624
+ cyanBright: [
625
+ 96,
626
+ 39
627
+ ],
628
+ whiteBright: [
629
+ 97,
630
+ 39
631
+ ]
632
+ },
633
+ bgColor: {
634
+ bgBlack: [
635
+ 40,
636
+ 49
637
+ ],
638
+ bgRed: [
639
+ 41,
640
+ 49
641
+ ],
642
+ bgGreen: [
643
+ 42,
644
+ 49
645
+ ],
646
+ bgYellow: [
647
+ 43,
648
+ 49
649
+ ],
650
+ bgBlue: [
651
+ 44,
652
+ 49
653
+ ],
654
+ bgMagenta: [
655
+ 45,
656
+ 49
657
+ ],
658
+ bgCyan: [
659
+ 46,
660
+ 49
661
+ ],
662
+ bgWhite: [
663
+ 47,
664
+ 49
665
+ ],
666
+ bgBlackBright: [
667
+ 100,
668
+ 49
669
+ ],
670
+ bgGray: [
671
+ 100,
672
+ 49
673
+ ],
674
+ bgGrey: [
675
+ 100,
676
+ 49
677
+ ],
678
+ bgRedBright: [
679
+ 101,
680
+ 49
681
+ ],
682
+ bgGreenBright: [
683
+ 102,
684
+ 49
685
+ ],
686
+ bgYellowBright: [
687
+ 103,
688
+ 49
689
+ ],
690
+ bgBlueBright: [
691
+ 104,
692
+ 49
693
+ ],
694
+ bgMagentaBright: [
695
+ 105,
696
+ 49
697
+ ],
698
+ bgCyanBright: [
699
+ 106,
700
+ 49
701
+ ],
702
+ bgWhiteBright: [
703
+ 107,
704
+ 49
705
+ ]
706
+ }
707
+ };
708
+ Object.keys(dist_r.modifier);
709
+ const uD = Object.keys(dist_r.color), FD = Object.keys(dist_r.bgColor);
710
+ [
711
+ ...uD,
712
+ ...FD
713
+ ];
714
+ function tD() {
715
+ const t = new Map;
716
+ for (const [u, F] of Object.entries(dist_r)){
717
+ for (const [e, s] of Object.entries(F))dist_r[e] = {
718
+ open: `\x1B[${s[0]}m`,
719
+ close: `\x1B[${s[1]}m`
720
+ }, F[e] = dist_r[e], t.set(s[0], s[1]);
721
+ Object.defineProperty(dist_r, u, {
722
+ value: F,
723
+ enumerable: !1
724
+ });
725
+ }
726
+ return Object.defineProperty(dist_r, "codes", {
727
+ value: t,
728
+ enumerable: !1
729
+ }), dist_r.color.close = "\x1B[39m", dist_r.bgColor.close = "\x1B[49m", dist_r.color.ansi = dist_T(), dist_r.color.ansi256 = dist_P(), dist_r.color.ansi16m = dist_W(), dist_r.bgColor.ansi = dist_T(dist_m), dist_r.bgColor.ansi256 = dist_P(dist_m), dist_r.bgColor.ansi16m = dist_W(dist_m), Object.defineProperties(dist_r, {
730
+ rgbToAnsi256: {
731
+ 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),
732
+ enumerable: !1
733
+ },
734
+ hexToRgb: {
735
+ value: (u)=>{
736
+ const F = /[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));
737
+ if (!F) return [
738
+ 0,
739
+ 0,
740
+ 0
741
+ ];
742
+ let [e] = F;
743
+ 3 === e.length && (e = [
744
+ ...e
745
+ ].map((C)=>C + C).join(""));
746
+ const s = Number.parseInt(e, 16);
747
+ return [
748
+ s >> 16 & 255,
749
+ s >> 8 & 255,
750
+ 255 & s
751
+ ];
752
+ },
753
+ enumerable: !1
754
+ },
755
+ hexToAnsi256: {
756
+ value: (u)=>dist_r.rgbToAnsi256(...dist_r.hexToRgb(u)),
757
+ enumerable: !1
758
+ },
759
+ ansi256ToAnsi: {
760
+ value: (u)=>{
761
+ if (u < 8) return 30 + u;
762
+ if (u < 16) return 90 + (u - 8);
763
+ let F, e, s;
764
+ if (u >= 232) F = ((u - 232) * 10 + 8) / 255, e = F, s = F;
765
+ else {
766
+ u -= 16;
767
+ const i = u % 36;
768
+ F = Math.floor(u / 36) / 5, e = Math.floor(i / 6) / 5, s = i % 6 / 5;
769
+ }
770
+ const C = 2 * Math.max(F, e, s);
771
+ if (0 === C) return 30;
772
+ let D = 30 + (Math.round(s) << 2 | Math.round(e) << 1 | Math.round(F));
773
+ return 2 === C && (D += 60), D;
774
+ },
775
+ enumerable: !1
776
+ },
777
+ rgbToAnsi: {
778
+ value: (u, F, e)=>dist_r.ansi256ToAnsi(dist_r.rgbToAnsi256(u, F, e)),
779
+ enumerable: !1
780
+ },
781
+ hexToAnsi: {
782
+ value: (u)=>dist_r.ansi256ToAnsi(dist_r.hexToAnsi256(u)),
783
+ enumerable: !1
784
+ }
785
+ }), dist_r;
532
786
  }
533
-
534
- const scroll = {
535
- up: (count = 1) => `${CSI}S`.repeat(count),
536
- down: (count = 1) => `${CSI}T`.repeat(count)
787
+ const eD = tD(), dist_g = new Set([
788
+ "\x1B",
789
+ "\x9B"
790
+ ]), sD = 39, dist_b = "\x07", dist_O = "[", CD = "]", I = "m", w = `${CD}8;;`, dist_N = (t)=>`${dist_g.values().next().value}${dist_O}${t}${I}`, dist_L = (t)=>`${dist_g.values().next().value}${w}${t}${dist_b}`, iD = (t)=>t.split(" ").map((u)=>dist_A(u)), y = (t, u, F)=>{
791
+ const e = [
792
+ ...u
793
+ ];
794
+ let s = !1, C = !1, D = dist_A(S(t[t.length - 1]));
795
+ for (const [i, n] of e.entries()){
796
+ const E = dist_A(n);
797
+ if (D + E <= F ? t[t.length - 1] += n : (t.push(n), D = 0), dist_g.has(n) && (s = !0, C = e.slice(i + 1).join("").startsWith(w)), s) {
798
+ C ? n === dist_b && (s = !1, C = !1) : n === I && (s = !1);
799
+ continue;
800
+ }
801
+ D += E, D === F && i < e.length - 1 && (t.push(""), D = 0);
802
+ }
803
+ !D && t[t.length - 1].length > 0 && t.length > 1 && (t[t.length - 2] += t.pop());
804
+ }, rD = (t)=>{
805
+ const u = t.split(" ");
806
+ let F = u.length;
807
+ for(; F > 0 && !(dist_A(u[F - 1]) > 0);)F--;
808
+ return F === u.length ? t : u.slice(0, F).join(" ") + u.slice(F).join("");
809
+ }, ED = (t, u, F = {})=>{
810
+ if (!1 !== F.trim && "" === t.trim()) return "";
811
+ let e = "", s, C;
812
+ const D = iD(t);
813
+ let i = [
814
+ ""
815
+ ];
816
+ for (const [E, h] of t.split(" ").entries()){
817
+ !1 !== F.trim && (i[i.length - 1] = i[i.length - 1].trimStart());
818
+ let o = dist_A(i[i.length - 1]);
819
+ if (0 !== E && (o >= u && (!1 === F.wordWrap || !1 === F.trim) && (i.push(""), o = 0), (o > 0 || !1 === F.trim) && (i[i.length - 1] += " ", o++)), F.hard && D[E] > u) {
820
+ const B = u - o, p = 1 + Math.floor((D[E] - B - 1) / u);
821
+ Math.floor((D[E] - 1) / u) < p && i.push(""), y(i, h, u);
822
+ continue;
823
+ }
824
+ if (o + D[E] > u && o > 0 && D[E] > 0) {
825
+ if (!1 === F.wordWrap && o < u) {
826
+ y(i, h, u);
827
+ continue;
828
+ }
829
+ i.push("");
830
+ }
831
+ if (o + D[E] > u && !1 === F.wordWrap) {
832
+ y(i, h, u);
833
+ continue;
834
+ }
835
+ i[i.length - 1] += h;
836
+ }
837
+ !1 !== F.trim && (i = i.map((E)=>rD(E)));
838
+ const n = [
839
+ ...i.join(`
840
+ `)
841
+ ];
842
+ for (const [E, h] of n.entries()){
843
+ if (e += h, dist_g.has(h)) {
844
+ const { groups: B } = new RegExp(`(?:\\${dist_O}(?<code>\\d+)m|\\${w}(?<uri>.*)${dist_b})`).exec(n.slice(E).join("")) || {
845
+ groups: {}
846
+ };
847
+ if (void 0 !== B.code) {
848
+ const p = Number.parseFloat(B.code);
849
+ s = p === sD ? void 0 : p;
850
+ } else void 0 !== B.uri && (C = 0 === B.uri.length ? void 0 : B.uri);
851
+ }
852
+ const o = eD.codes.get(Number(s));
853
+ n[E + 1] === `
854
+ ` ? (C && (e += dist_L("")), s && o && (e += dist_N(o))) : h === `
855
+ ` && (s && o && (e += dist_N(s)), C && (e += dist_L(C)));
856
+ }
857
+ return e;
858
+ };
859
+ function R(t, u, F) {
860
+ return String(t).normalize().replace(/\r\n/g, `
861
+ `).split(`
862
+ `).map((e)=>ED(e, u, F)).join(`
863
+ `);
537
864
  }
538
-
539
- const erase = {
540
- screen: `${CSI}2J`,
541
- up: (count = 1) => `${CSI}1J`.repeat(count),
542
- down: (count = 1) => `${CSI}J`.repeat(count),
543
- line: `${CSI}2K`,
544
- lineEnd: `${CSI}K`,
545
- lineStart: `${CSI}1K`,
546
- lines(count) {
547
- let clear = '';
548
- for (let i = 0; i < count; i++)
549
- clear += this.line + (i < count - 1 ? cursor.up() : '');
550
- if (count)
551
- clear += cursor.left;
552
- return clear;
553
- }
865
+ var oD = Object.defineProperty, nD = (t, u, F)=>u in t ? oD(t, u, {
866
+ enumerable: !0,
867
+ configurable: !0,
868
+ writable: !0,
869
+ value: F
870
+ }) : t[u] = F, a = (t, u, F)=>(nD(t, "symbol" != typeof u ? u + "" : u, F), F);
871
+ function aD(t, u) {
872
+ if (t === u) return;
873
+ const F = t.split(`
874
+ `), e = u.split(`
875
+ `), s = [];
876
+ for(let C = 0; C < Math.max(F.length, e.length); C++)F[C] !== e[C] && s.push(C);
877
+ return s;
554
878
  }
555
-
556
- module.exports = { cursor, scroll, erase, beep };
557
-
558
-
559
- }),
560
- "tty": (function (module) {
561
-
562
- module.exports = __WEBPACK_EXTERNAL_MODULE_tty__;
563
-
564
-
565
- }),
566
-
567
- });
568
- /************************************************************************/
569
- // The module cache
570
- var __webpack_module_cache__ = {};
571
-
572
- // The require function
573
- function __webpack_require__(moduleId) {
574
-
575
- // Check if module is in cache
576
- var cachedModule = __webpack_module_cache__[moduleId];
577
- if (cachedModule !== undefined) {
578
- return cachedModule.exports;
879
+ const V = Symbol("clack:cancel");
880
+ function hD(t) {
881
+ return t === V;
579
882
  }
580
- // Create a new module (and put it into the cache)
581
- var module = (__webpack_module_cache__[moduleId] = {
582
- exports: {}
583
- });
584
- // Execute the module function
585
- __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
586
-
587
- // Return the exports of the module
588
- return module.exports;
589
-
883
+ function dist_v(t, u) {
884
+ t.isTTY && t.setRawMode(u);
590
885
  }
591
-
592
- /************************************************************************/
593
- // webpack/runtime/compat_get_default_export
594
- (() => {
595
- // getDefaultExport function for compatibility with non-harmony modules
596
- __webpack_require__.n = function (module) {
597
- var getter = module && module.__esModule ?
598
- function () { return module['default']; } :
599
- function () { return module; };
600
- __webpack_require__.d(getter, { a: getter });
601
- return getter;
602
- };
603
-
604
-
605
-
606
-
607
- })();
608
- // webpack/runtime/define_property_getters
609
- (() => {
610
- __webpack_require__.d = function(exports, definition) {
611
- for(var key in definition) {
612
- if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
613
- Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
886
+ const z = new Map([
887
+ [
888
+ "k",
889
+ "up"
890
+ ],
891
+ [
892
+ "j",
893
+ "down"
894
+ ],
895
+ [
896
+ "h",
897
+ "left"
898
+ ],
899
+ [
900
+ "l",
901
+ "right"
902
+ ]
903
+ ]), lD = new Set([
904
+ "up",
905
+ "down",
906
+ "left",
907
+ "right",
908
+ "space",
909
+ "enter"
910
+ ]);
911
+ class x {
912
+ constructor({ render: u, input: F = __WEBPACK_EXTERNAL_MODULE_node_process__.stdin, output: e = __WEBPACK_EXTERNAL_MODULE_node_process__.stdout, ...s }, C = !0){
913
+ a(this, "input"), a(this, "output"), a(this, "rl"), a(this, "opts"), a(this, "_track", !1), a(this, "_render"), a(this, "_cursor", 0), a(this, "state", "initial"), a(this, "value"), a(this, "error", ""), a(this, "subscribers", new Map), a(this, "_prevFrame", ""), this.opts = s, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = u.bind(this), this._track = C, this.input = F, this.output = e;
914
+ }
915
+ prompt() {
916
+ const u = new __WEBPACK_EXTERNAL_MODULE_node_tty__.WriteStream(0);
917
+ return u._write = (F, e, s)=>{
918
+ this._track && (this.value = this.rl.line.replace(/\t/g, ""), this._cursor = this.rl.cursor, this.emit("value", this.value)), s();
919
+ }, this.input.pipe(u), this.rl = __WEBPACK_EXTERNAL_MODULE_node_readline__["default"].createInterface({
920
+ input: this.input,
921
+ output: u,
922
+ tabSize: 2,
923
+ prompt: "",
924
+ escapeCodeTimeout: 50
925
+ }), __WEBPACK_EXTERNAL_MODULE_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), dist_v(this.input, !0), this.output.on("resize", this.render), this.render(), new Promise((F, e)=>{
926
+ this.once("submit", ()=>{
927
+ this.output.write(src.cursor.show), this.output.off("resize", this.render), dist_v(this.input, !1), F(this.value);
928
+ }), this.once("cancel", ()=>{
929
+ this.output.write(src.cursor.show), this.output.off("resize", this.render), dist_v(this.input, !1), F(V);
930
+ });
931
+ });
932
+ }
933
+ on(u, F) {
934
+ const e = this.subscribers.get(u) ?? [];
935
+ e.push({
936
+ cb: F
937
+ }), this.subscribers.set(u, e);
938
+ }
939
+ once(u, F) {
940
+ const e = this.subscribers.get(u) ?? [];
941
+ e.push({
942
+ cb: F,
943
+ once: !0
944
+ }), this.subscribers.set(u, e);
945
+ }
946
+ emit(u, ...F) {
947
+ const e = this.subscribers.get(u) ?? [], s = [];
948
+ for (const C of e)C.cb(...F), C.once && s.push(()=>e.splice(e.indexOf(C), 1));
949
+ for (const C of s)C();
950
+ }
951
+ unsubscribe() {
952
+ this.subscribers.clear();
953
+ }
954
+ onKeypress(u, F) {
955
+ if ("error" === this.state && (this.state = "active"), F?.name && !this._track && z.has(F.name) && this.emit("cursor", z.get(F.name)), F?.name && lD.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") {
956
+ if (this.opts.validate) {
957
+ const e = this.opts.validate(this.value);
958
+ e && (this.error = e, this.state = "error", this.rl.write(this.value));
959
+ }
960
+ "error" !== this.state && (this.state = "submit");
614
961
  }
962
+ "" === u && (this.state = "cancel"), ("submit" === this.state || "cancel" === this.state) && this.emit("finalize"), this.render(), ("submit" === this.state || "cancel" === this.state) && this.close();
963
+ }
964
+ close() {
965
+ this.input.unpipe(), this.input.removeListener("keypress", this.onKeypress), this.output.write(`
966
+ `), dist_v(this.input, !1), this.rl.close(), this.emit(`${this.state}`, this.value), this.unsubscribe();
967
+ }
968
+ restoreCursor() {
969
+ const u = R(this._prevFrame, process.stdout.columns, {
970
+ hard: !0
971
+ }).split(`
972
+ `).length - 1;
973
+ this.output.write(src.cursor.move(-999, -1 * u));
974
+ }
975
+ render() {
976
+ const u = R(this._render(this) ?? "", process.stdout.columns, {
977
+ hard: !0
978
+ });
979
+ if (u !== this._prevFrame) {
980
+ if ("initial" === this.state) this.output.write(src.cursor.hide);
981
+ else {
982
+ const F = aD(this._prevFrame, u);
983
+ if (this.restoreCursor(), F && F?.length === 1) {
984
+ const e = F[0];
985
+ this.output.write(src.cursor.move(0, e)), this.output.write(src.erase.lines(1));
986
+ const s = u.split(`
987
+ `);
988
+ this.output.write(s[e]), this._prevFrame = u, this.output.write(src.cursor.move(0, s.length - e - 1));
989
+ return;
990
+ }
991
+ if (F && F?.length > 1) {
992
+ const e = F[0];
993
+ this.output.write(src.cursor.move(0, e)), this.output.write(src.erase.down());
994
+ const s = u.split(`
995
+ `).slice(e);
996
+ this.output.write(s.join(`
997
+ `)), this._prevFrame = u;
998
+ return;
999
+ }
1000
+ this.output.write(src.erase.down());
1001
+ }
1002
+ this.output.write(u), "initial" === this.state && (this.state = "active"), this._prevFrame = u;
1003
+ }
1004
+ }
1005
+ }
1006
+ var pD = Object.defineProperty, fD = (t, u, F)=>u in t ? pD(t, u, {
1007
+ enumerable: !0,
1008
+ configurable: !0,
1009
+ writable: !0,
1010
+ value: F
1011
+ }) : t[u] = F, K = (t, u, F)=>(fD(t, "symbol" != typeof u ? u + "" : u, F), F);
1012
+ let gD = class extends x {
1013
+ constructor(u){
1014
+ super(u, !1), K(this, "options"), K(this, "cursor", 0), this.options = u.options, this.value = [
1015
+ ...u.initialValues ?? []
1016
+ ], this.cursor = Math.max(this.options.findIndex(({ value: F })=>F === u.cursorAt), 0), this.on("key", (F)=>{
1017
+ "a" === F && this.toggleAll();
1018
+ }), this.on("cursor", (F)=>{
1019
+ switch(F){
1020
+ case "left":
1021
+ case "up":
1022
+ this.cursor = 0 === this.cursor ? this.options.length - 1 : this.cursor - 1;
1023
+ break;
1024
+ case "down":
1025
+ case "right":
1026
+ this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
1027
+ break;
1028
+ case "space":
1029
+ this.toggleValue();
1030
+ break;
1031
+ }
1032
+ });
1033
+ }
1034
+ get _value() {
1035
+ return this.options[this.cursor].value;
1036
+ }
1037
+ toggleAll() {
1038
+ const u = this.value.length === this.options.length;
1039
+ this.value = u ? [] : this.options.map((F)=>F.value);
1040
+ }
1041
+ toggleValue() {
1042
+ const u = this.value.includes(this._value);
1043
+ this.value = u ? this.value.filter((F)=>F !== this._value) : [
1044
+ ...this.value,
1045
+ this._value
1046
+ ];
615
1047
  }
616
1048
  };
617
- })();
618
- // webpack/runtime/has_own_property
619
- (() => {
620
- __webpack_require__.o = function (obj, prop) {
621
- return Object.prototype.hasOwnProperty.call(obj, prop);
1049
+ var bD = Object.defineProperty, wD = (t, u, F)=>u in t ? bD(t, u, {
1050
+ enumerable: !0,
1051
+ configurable: !0,
1052
+ writable: !0,
1053
+ value: F
1054
+ }) : t[u] = F, Z = (t, u, F)=>(wD(t, "symbol" != typeof u ? u + "" : u, F), F);
1055
+ let yD = class extends x {
1056
+ constructor(u){
1057
+ super(u, !1), Z(this, "options"), Z(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)=>{
1058
+ switch(F){
1059
+ case "left":
1060
+ case "up":
1061
+ this.cursor = 0 === this.cursor ? this.options.length - 1 : this.cursor - 1;
1062
+ break;
1063
+ case "down":
1064
+ case "right":
1065
+ this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
1066
+ break;
1067
+ }
1068
+ this.changeValue();
1069
+ });
1070
+ }
1071
+ get _value() {
1072
+ return this.options[this.cursor];
1073
+ }
1074
+ changeValue() {
1075
+ this.value = this._value.value;
1076
+ }
622
1077
  };
623
-
624
- })();
625
- /************************************************************************/
626
-
627
- ;// CONCATENATED MODULE: external "node:fs"
628
-
629
- var external_node_fs_namespaceObject = __WEBPACK_EXTERNAL_MODULE_node_fs__;
630
-
631
- ;// CONCATENATED MODULE: external "node:path"
632
-
633
- var external_node_path_namespaceObject = __WEBPACK_EXTERNAL_MODULE_node_path__;
634
-
635
- // EXTERNAL MODULE: ./node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js
636
- var src = __webpack_require__("./node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js");
637
- ;// CONCATENATED MODULE: external "node:process"
638
-
639
- var external_node_process_namespaceObject = __WEBPACK_EXTERNAL_MODULE_node_process__;
640
-
641
- ;// CONCATENATED MODULE: external "node:readline"
642
-
643
- var external_node_readline_namespaceObject = __WEBPACK_EXTERNAL_MODULE_node_readline__;
644
-
645
- ;// CONCATENATED MODULE: external "node:tty"
646
-
647
- var external_node_tty_namespaceObject = __WEBPACK_EXTERNAL_MODULE_node_tty__;
648
-
649
- // EXTERNAL MODULE: ./node_modules/.pnpm/picocolors@1.0.1/node_modules/picocolors/picocolors.js
650
- var picocolors = __webpack_require__("./node_modules/.pnpm/picocolors@1.0.1/node_modules/picocolors/picocolors.js");
651
- ;// CONCATENATED MODULE: ./node_modules/.pnpm/@clack+core@0.3.4/node_modules/@clack/core/dist/index.mjs
652
- function q({onlyFirst:t=!1}={}){const u=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(u,t?void 0:"g")}function S(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(q(),"")}function dist_j(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var M={exports:{}};(function(t){var u={};t.exports=u,u.eastAsianWidth=function(e){var s=e.charCodeAt(0),C=e.length==2?e.charCodeAt(1):0,D=s;return 55296<=s&&s<=56319&&56320<=C&&C<=57343&&(s&=1023,C&=1023,D=s<<10|C,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"},u.characterLength=function(e){var s=this.eastAsianWidth(e);return s=="F"||s=="W"||s=="A"?2:1};function F(e){return e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}u.length=function(e){for(var s=F(e),C=0,D=0;D<s.length;D++)C=C+this.characterLength(s[D]);return C},u.slice=function(e,s,C){textLen=u.length(e),s=s||0,C=C||1,s<0&&(s=textLen+s),C<0&&(C=textLen+C);for(var D="",i=0,n=F(e),E=0;E<n.length;E++){var h=n[E],o=u.length(h);if(i>=s-(o==2?1:0))if(i+o<=C)D+=h;else break;i+=o}return D}})(M);var J=M.exports;const Q=dist_j(J);var X=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g};const DD=dist_j(X);function dist_A(t,u={}){if(typeof t!="string"||t.length===0||(u={ambiguousIsNarrow:!0,...u},t=S(t),t.length===0))return 0;t=t.replace(DD()," ");const F=u.ambiguousIsNarrow?1:2;let e=0;for(const s of t){const C=s.codePointAt(0);if(C<=31||C>=127&&C<=159||C>=768&&C<=879)continue;switch(Q.eastAsianWidth(s)){case"F":case"W":e+=2;break;case"A":e+=F;break;default:e+=1}}return e}const dist_m=10,dist_T=(t=0)=>u=>`\x1B[${u+t}m`,dist_P=(t=0)=>u=>`\x1B[${38+t};5;${u}m`,dist_W=(t=0)=>(u,F,e)=>`\x1B[${38+t};2;${u};${F};${e}m`,dist_r={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]}};Object.keys(dist_r.modifier);const uD=Object.keys(dist_r.color),FD=Object.keys(dist_r.bgColor);[...uD,...FD];function tD(){const t=new Map;for(const[u,F]of Object.entries(dist_r)){for(const[e,s]of Object.entries(F))dist_r[e]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},F[e]=dist_r[e],t.set(s[0],s[1]);Object.defineProperty(dist_r,u,{value:F,enumerable:!1})}return Object.defineProperty(dist_r,"codes",{value:t,enumerable:!1}),dist_r.color.close="\x1B[39m",dist_r.bgColor.close="\x1B[49m",dist_r.color.ansi=dist_T(),dist_r.color.ansi256=dist_P(),dist_r.color.ansi16m=dist_W(),dist_r.bgColor.ansi=dist_T(dist_m),dist_r.bgColor.ansi256=dist_P(dist_m),dist_r.bgColor.ansi16m=dist_W(dist_m),Object.defineProperties(dist_r,{rgbToAnsi256:{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),enumerable:!1},hexToRgb:{value:u=>{const F=/[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));if(!F)return[0,0,0];let[e]=F;e.length===3&&(e=[...e].map(C=>C+C).join(""));const s=Number.parseInt(e,16);return[s>>16&255,s>>8&255,s&255]},enumerable:!1},hexToAnsi256:{value:u=>dist_r.rgbToAnsi256(...dist_r.hexToRgb(u)),enumerable:!1},ansi256ToAnsi:{value:u=>{if(u<8)return 30+u;if(u<16)return 90+(u-8);let F,e,s;if(u>=232)F=((u-232)*10+8)/255,e=F,s=F;else{u-=16;const i=u%36;F=Math.floor(u/36)/5,e=Math.floor(i/6)/5,s=i%6/5}const C=Math.max(F,e,s)*2;if(C===0)return 30;let D=30+(Math.round(s)<<2|Math.round(e)<<1|Math.round(F));return C===2&&(D+=60),D},enumerable:!1},rgbToAnsi:{value:(u,F,e)=>dist_r.ansi256ToAnsi(dist_r.rgbToAnsi256(u,F,e)),enumerable:!1},hexToAnsi:{value:u=>dist_r.ansi256ToAnsi(dist_r.hexToAnsi256(u)),enumerable:!1}}),dist_r}const eD=tD(),dist_g=new Set(["\x1B","\x9B"]),sD=39,dist_b="\x07",dist_O="[",CD="]",I="m",w=`${CD}8;;`,dist_N=t=>`${dist_g.values().next().value}${dist_O}${t}${I}`,dist_L=t=>`${dist_g.values().next().value}${w}${t}${dist_b}`,iD=t=>t.split(" ").map(u=>dist_A(u)),y=(t,u,F)=>{const e=[...u];let s=!1,C=!1,D=dist_A(S(t[t.length-1]));for(const[i,n]of e.entries()){const E=dist_A(n);if(D+E<=F?t[t.length-1]+=n:(t.push(n),D=0),dist_g.has(n)&&(s=!0,C=e.slice(i+1).join("").startsWith(w)),s){C?n===dist_b&&(s=!1,C=!1):n===I&&(s=!1);continue}D+=E,D===F&&i<e.length-1&&(t.push(""),D=0)}!D&&t[t.length-1].length>0&&t.length>1&&(t[t.length-2]+=t.pop())},rD=t=>{const u=t.split(" ");let F=u.length;for(;F>0&&!(dist_A(u[F-1])>0);)F--;return F===u.length?t:u.slice(0,F).join(" ")+u.slice(F).join("")},ED=(t,u,F={})=>{if(F.trim!==!1&&t.trim()==="")return"";let e="",s,C;const D=iD(t);let i=[""];for(const[E,h]of t.split(" ").entries()){F.trim!==!1&&(i[i.length-1]=i[i.length-1].trimStart());let o=dist_A(i[i.length-1]);if(E!==0&&(o>=u&&(F.wordWrap===!1||F.trim===!1)&&(i.push(""),o=0),(o>0||F.trim===!1)&&(i[i.length-1]+=" ",o++)),F.hard&&D[E]>u){const B=u-o,p=1+Math.floor((D[E]-B-1)/u);Math.floor((D[E]-1)/u)<p&&i.push(""),y(i,h,u);continue}if(o+D[E]>u&&o>0&&D[E]>0){if(F.wordWrap===!1&&o<u){y(i,h,u);continue}i.push("")}if(o+D[E]>u&&F.wordWrap===!1){y(i,h,u);continue}i[i.length-1]+=h}F.trim!==!1&&(i=i.map(E=>rD(E)));const n=[...i.join(`
653
- `)];for(const[E,h]of n.entries()){if(e+=h,dist_g.has(h)){const{groups:B}=new RegExp(`(?:\\${dist_O}(?<code>\\d+)m|\\${w}(?<uri>.*)${dist_b})`).exec(n.slice(E).join(""))||{groups:{}};if(B.code!==void 0){const p=Number.parseFloat(B.code);s=p===sD?void 0:p}else B.uri!==void 0&&(C=B.uri.length===0?void 0:B.uri)}const o=eD.codes.get(Number(s));n[E+1]===`
654
- `?(C&&(e+=dist_L("")),s&&o&&(e+=dist_N(o))):h===`
655
- `&&(s&&o&&(e+=dist_N(s)),C&&(e+=dist_L(C)))}return e};function R(t,u,F){return String(t).normalize().replace(/\r\n/g,`
656
- `).split(`
657
- `).map(e=>ED(e,u,F)).join(`
658
- `)}var oD=Object.defineProperty,nD=(t,u,F)=>u in t?oD(t,u,{enumerable:!0,configurable:!0,writable:!0,value:F}):t[u]=F,a=(t,u,F)=>(nD(t,typeof u!="symbol"?u+"":u,F),F);function aD(t,u){if(t===u)return;const F=t.split(`
659
- `),e=u.split(`
660
- `),s=[];for(let C=0;C<Math.max(F.length,e.length);C++)F[C]!==e[C]&&s.push(C);return s}const V=Symbol("clack:cancel");function hD(t){return t===V}function dist_v(t,u){t.isTTY&&t.setRawMode(u)}const z=new Map([["k","up"],["j","down"],["h","left"],["l","right"]]),lD=new Set(["up","down","left","right","space","enter"]);class x{constructor({render:u,input:F=external_node_process_namespaceObject.stdin,output:e=external_node_process_namespaceObject.stdout,...s},C=!0){a(this,"input"),a(this,"output"),a(this,"rl"),a(this,"opts"),a(this,"_track",!1),a(this,"_render"),a(this,"_cursor",0),a(this,"state","initial"),a(this,"value"),a(this,"error",""),a(this,"subscribers",new Map),a(this,"_prevFrame",""),this.opts=s,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=u.bind(this),this._track=C,this.input=F,this.output=e}prompt(){const u=new external_node_tty_namespaceObject.WriteStream(0);return u._write=(F,e,s)=>{this._track&&(this.value=this.rl.line.replace(/\t/g,""),this._cursor=this.rl.cursor,this.emit("value",this.value)),s()},this.input.pipe(u),this.rl=external_node_readline_namespaceObject["default"].createInterface({input:this.input,output:u,tabSize:2,prompt:"",escapeCodeTimeout:50}),external_node_readline_namespaceObject["default"].emitKeypressEvents(this.input,this.rl),this.rl.prompt(),this.opts.initialValue!==void 0&&this._track&&this.rl.write(this.opts.initialValue),this.input.on("keypress",this.onKeypress),dist_v(this.input,!0),this.output.on("resize",this.render),this.render(),new Promise((F,e)=>{this.once("submit",()=>{this.output.write(src.cursor.show),this.output.off("resize",this.render),dist_v(this.input,!1),F(this.value)}),this.once("cancel",()=>{this.output.write(src.cursor.show),this.output.off("resize",this.render),dist_v(this.input,!1),F(V)})})}on(u,F){const e=this.subscribers.get(u)??[];e.push({cb:F}),this.subscribers.set(u,e)}once(u,F){const e=this.subscribers.get(u)??[];e.push({cb:F,once:!0}),this.subscribers.set(u,e)}emit(u,...F){const e=this.subscribers.get(u)??[],s=[];for(const C of e)C.cb(...F),C.once&&s.push(()=>e.splice(e.indexOf(C),1));for(const C of s)C()}unsubscribe(){this.subscribers.clear()}onKeypress(u,F){if(this.state==="error"&&(this.state="active"),F?.name&&!this._track&&z.has(F.name)&&this.emit("cursor",z.get(F.name)),F?.name&&lD.has(F.name)&&this.emit("cursor",F.name),u&&(u.toLowerCase()==="y"||u.toLowerCase()==="n")&&this.emit("confirm",u.toLowerCase()==="y"),u===" "&&this.opts.placeholder&&(this.value||(this.rl.write(this.opts.placeholder),this.emit("value",this.opts.placeholder))),u&&this.emit("key",u.toLowerCase()),F?.name==="return"){if(this.opts.validate){const e=this.opts.validate(this.value);e&&(this.error=e,this.state="error",this.rl.write(this.value))}this.state!=="error"&&(this.state="submit")}u===""&&(this.state="cancel"),(this.state==="submit"||this.state==="cancel")&&this.emit("finalize"),this.render(),(this.state==="submit"||this.state==="cancel")&&this.close()}close(){this.input.unpipe(),this.input.removeListener("keypress",this.onKeypress),this.output.write(`
661
- `),dist_v(this.input,!1),this.rl.close(),this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){const u=R(this._prevFrame,process.stdout.columns,{hard:!0}).split(`
662
- `).length-1;this.output.write(src.cursor.move(-999,u*-1))}render(){const u=R(this._render(this)??"",process.stdout.columns,{hard:!0});if(u!==this._prevFrame){if(this.state==="initial")this.output.write(src.cursor.hide);else{const F=aD(this._prevFrame,u);if(this.restoreCursor(),F&&F?.length===1){const e=F[0];this.output.write(src.cursor.move(0,e)),this.output.write(src.erase.lines(1));const s=u.split(`
663
- `);this.output.write(s[e]),this._prevFrame=u,this.output.write(src.cursor.move(0,s.length-e-1));return}else if(F&&F?.length>1){const e=F[0];this.output.write(src.cursor.move(0,e)),this.output.write(src.erase.down());const s=u.split(`
664
- `).slice(e);this.output.write(s.join(`
665
- `)),this._prevFrame=u;return}this.output.write(src.erase.down())}this.output.write(u),this.state==="initial"&&(this.state="active"),this._prevFrame=u}}}class xD extends x{get cursor(){return this.value?0:1}get _value(){return this.cursor===0}constructor(u){super(u,!1),this.value=!!u.initialValue,this.on("value",()=>{this.value=this._value}),this.on("confirm",F=>{this.output.write(src.cursor.move(0,-1)),this.value=F,this.state="submit",this.close()}),this.on("cursor",()=>{this.value=!this.value})}}var BD=Object.defineProperty,cD=(t,u,F)=>u in t?BD(t,u,{enumerable:!0,configurable:!0,writable:!0,value:F}):t[u]=F,dist_G=(t,u,F)=>(cD(t,typeof u!="symbol"?u+"":u,F),F);let AD=class extends (/* unused pure expression or super */ null && (x)){constructor(u){super(u,!1),dist_G(this,"options"),dist_G(this,"cursor",0);const{options:F}=u;this.options=Object.entries(F).flatMap(([e,s])=>[{value:e,group:!0,label:e},...s.map(C=>({...C,group:e}))]),this.value=[...u.initialValues??[]],this.cursor=Math.max(this.options.findIndex(({value:e})=>e===u.cursorAt),0),this.on("cursor",e=>{switch(e){case"left":case"up":this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case"down":case"right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break;case"space":this.toggleValue();break}})}getGroupItems(u){return this.options.filter(F=>F.group===u)}isGroupSelected(u){return this.getGroupItems(u).every(F=>this.value.includes(F.value))}toggleValue(){const u=this.options[this.cursor];if(u.group===!0){const F=u.value,e=this.getGroupItems(F);this.isGroupSelected(F)?this.value=this.value.filter(s=>e.findIndex(C=>C.value===s)===-1):this.value=[...this.value,...e.map(s=>s.value)],this.value=Array.from(new Set(this.value))}else{const F=this.value.includes(u.value);this.value=F?this.value.filter(e=>e!==u.value):[...this.value,u.value]}}};var pD=Object.defineProperty,fD=(t,u,F)=>u in t?pD(t,u,{enumerable:!0,configurable:!0,writable:!0,value:F}):t[u]=F,K=(t,u,F)=>(fD(t,typeof u!="symbol"?u+"":u,F),F);let gD=class extends x{constructor(u){super(u,!1),K(this,"options"),K(this,"cursor",0),this.options=u.options,this.value=[...u.initialValues??[]],this.cursor=Math.max(this.options.findIndex(({value:F})=>F===u.cursorAt),0),this.on("key",F=>{F==="a"&&this.toggleAll()}),this.on("cursor",F=>{switch(F){case"left":case"up":this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case"down":case"right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break;case"space":this.toggleValue();break}})}get _value(){return this.options[this.cursor].value}toggleAll(){const u=this.value.length===this.options.length;this.value=u?[]:this.options.map(F=>F.value)}toggleValue(){const u=this.value.includes(this._value);this.value=u?this.value.filter(F=>F!==this._value):[...this.value,this._value]}};var vD=Object.defineProperty,dD=(t,u,F)=>u in t?vD(t,u,{enumerable:!0,configurable:!0,writable:!0,value:F}):t[u]=F,Y=(t,u,F)=>(dD(t,typeof u!="symbol"?u+"":u,F),F);class mD extends x{constructor({mask:u,...F}){super(F),Y(this,"valueWithCursor",""),Y(this,"_mask","\u2022"),this._mask=u??"\u2022",this.on("finalize",()=>{this.valueWithCursor=this.masked}),this.on("value",()=>{if(this.cursor>=this.value.length)this.valueWithCursor=`${this.masked}${picocolors.inverse(picocolors.hidden("_"))}`;else{const e=this.masked.slice(0,this.cursor),s=this.masked.slice(this.cursor);this.valueWithCursor=`${e}${picocolors.inverse(s[0])}${s.slice(1)}`}})}get cursor(){return this._cursor}get masked(){return this.value.replaceAll(/./g,this._mask)}}var bD=Object.defineProperty,wD=(t,u,F)=>u in t?bD(t,u,{enumerable:!0,configurable:!0,writable:!0,value:F}):t[u]=F,Z=(t,u,F)=>(wD(t,typeof u!="symbol"?u+"":u,F),F);let yD=class extends x{constructor(u){super(u,!1),Z(this,"options"),Z(this,"cursor",0),this.options=u.options,this.cursor=this.options.findIndex(({value:F})=>F===u.initialValue),this.cursor===-1&&(this.cursor=0),this.changeValue(),this.on("cursor",F=>{switch(F){case"left":case"up":this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case"down":case"right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break}this.changeValue()})}get _value(){return this.options[this.cursor]}changeValue(){this.value=this._value.value}};var $D=Object.defineProperty,kD=(t,u,F)=>u in t?$D(t,u,{enumerable:!0,configurable:!0,writable:!0,value:F}):t[u]=F,H=(t,u,F)=>(kD(t,typeof u!="symbol"?u+"":u,F),F);class _D extends x{constructor(u){super(u,!1),H(this,"options"),H(this,"cursor",0),this.options=u.options;const F=this.options.map(({value:[e]})=>e?.toLowerCase());this.cursor=Math.max(F.indexOf(u.initialValue),0),this.on("key",e=>{if(!F.includes(e))return;const s=this.options.find(({value:[C]})=>C?.toLowerCase()===e);s&&(this.value=s.value,this.state="submit",this.emit("submit"))})}}var SD=Object.defineProperty,jD=(t,u,F)=>u in t?SD(t,u,{enumerable:!0,configurable:!0,writable:!0,value:F}):t[u]=F,MD=(t,u,F)=>(jD(t,typeof u!="symbol"?u+"":u,F),F);class TD extends x{constructor(u){super(u),MD(this,"valueWithCursor",""),this.on("finalize",()=>{this.value||(this.value=u.defaultValue),this.valueWithCursor=this.value}),this.on("value",()=>{if(this.cursor>=this.value.length)this.valueWithCursor=`${this.value}${picocolors.inverse(picocolors.hidden("_"))}`;else{const F=this.value.slice(0,this.cursor),e=this.value.slice(this.cursor);this.valueWithCursor=`${F}${picocolors.inverse(e[0])}${e.slice(1)}`}})}get cursor(){return this._cursor}}const PD=globalThis.process.platform.startsWith("win");function WD({input:t=$,output:u=k,overwrite:F=!0,hideCursor:e=!0}={}){const s=f.createInterface({input:t,output:u,prompt:"",tabSize:1});f.emitKeypressEvents(t,s),t.isTTY&&t.setRawMode(!0);const C=(D,{name:i})=>{if(String(D)===""&&process.exit(0),!F)return;let n=i==="return"?0:-1,E=i==="return"?-1:0;f.moveCursor(u,n,E,()=>{f.clearLine(u,1,()=>{t.once("keypress",C)})})};return e&&process.stdout.write(l.hide),t.once("keypress",C),()=>{t.off("keypress",C),e&&process.stdout.write(l.show),t.isTTY&&!PD&&t.setRawMode(!1),s.terminal=!1,s.close()}}
666
- //# sourceMappingURL=index.mjs.map
667
-
668
- ;// CONCATENATED MODULE: ./node_modules/.pnpm/@clack+prompts@0.7.0/node_modules/@clack/prompts/dist/index.mjs
669
- function dist_q(){return external_node_process_namespaceObject["default"].platform!=="win32"?external_node_process_namespaceObject["default"].env.TERM!=="linux":Boolean(external_node_process_namespaceObject["default"].env.CI)||Boolean(external_node_process_namespaceObject["default"].env.WT_SESSION)||Boolean(external_node_process_namespaceObject["default"].env.TERMINUS_SUBLIME)||external_node_process_namespaceObject["default"].env.ConEmuTask==="{cmd::Cmder}"||external_node_process_namespaceObject["default"].env.TERM_PROGRAM==="Terminus-Sublime"||external_node_process_namespaceObject["default"].env.TERM_PROGRAM==="vscode"||external_node_process_namespaceObject["default"].env.TERM==="xterm-256color"||external_node_process_namespaceObject["default"].env.TERM==="alacritty"||external_node_process_namespaceObject["default"].env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}const _=dist_q(),dist_o=(r,n)=>_?r:n,dist_H=dist_o("\u25C6","*"),dist_I=dist_o("\u25A0","x"),dist_x=dist_o("\u25B2","x"),dist_S=dist_o("\u25C7","o"),dist_K=dist_o("\u250C","T"),dist_a=dist_o("\u2502","|"),d=dist_o("\u2514","\u2014"),prompts_dist_b=dist_o("\u25CF",">"),dist_E=dist_o("\u25CB"," "),dist_C=dist_o("\u25FB","[\u2022]"),dist_w=dist_o("\u25FC","[+]"),dist_M=dist_o("\u25FB","[ ]"),U=dist_o("\u25AA","\u2022"),dist_B=dist_o("\u2500","-"),dist_Z=dist_o("\u256E","+"),dist_z=dist_o("\u251C","+"),dist_X=dist_o("\u256F","+"),dist_J=dist_o("\u25CF","\u2022"),dist_Y=dist_o("\u25C6","*"),dist_Q=dist_o("\u25B2","!"),ee=dist_o("\u25A0","x"),dist_y=r=>{switch(r){case"initial":case"active":return picocolors.cyan(dist_H);case"cancel":return picocolors.red(dist_I);case"error":return picocolors.yellow(dist_x);case"submit":return picocolors.green(dist_S)}},te=r=>new TD({validate:r.validate,placeholder:r.placeholder,defaultValue:r.defaultValue,initialValue:r.initialValue,render(){const n=`${picocolors.gray(dist_a)}
1078
+ var SD = Object.defineProperty, jD = (t, u, F)=>u in t ? SD(t, u, {
1079
+ enumerable: !0,
1080
+ configurable: !0,
1081
+ writable: !0,
1082
+ value: F
1083
+ }) : t[u] = F, MD = (t, u, F)=>(jD(t, "symbol" != typeof u ? u + "" : u, F), F);
1084
+ class TD extends x {
1085
+ constructor(u){
1086
+ super(u), MD(this, "valueWithCursor", ""), this.on("finalize", ()=>{
1087
+ this.value || (this.value = u.defaultValue), this.valueWithCursor = this.value;
1088
+ }), this.on("value", ()=>{
1089
+ if (this.cursor >= this.value.length) this.valueWithCursor = `${this.value}${picocolors.inverse(picocolors.hidden("_"))}`;
1090
+ else {
1091
+ const F = this.value.slice(0, this.cursor), e = this.value.slice(this.cursor);
1092
+ this.valueWithCursor = `${F}${picocolors.inverse(e[0])}${e.slice(1)}`;
1093
+ }
1094
+ });
1095
+ }
1096
+ get cursor() {
1097
+ return this._cursor;
1098
+ }
1099
+ }
1100
+ globalThis.process.platform.startsWith("win");
1101
+ function dist_q() {
1102
+ return "win32" !== __WEBPACK_EXTERNAL_MODULE_node_process__["default"].platform ? "linux" !== __WEBPACK_EXTERNAL_MODULE_node_process__["default"].env.TERM : Boolean(__WEBPACK_EXTERNAL_MODULE_node_process__["default"].env.CI) || Boolean(__WEBPACK_EXTERNAL_MODULE_node_process__["default"].env.WT_SESSION) || Boolean(__WEBPACK_EXTERNAL_MODULE_node_process__["default"].env.TERMINUS_SUBLIME) || "{cmd::Cmder}" === __WEBPACK_EXTERNAL_MODULE_node_process__["default"].env.ConEmuTask || "Terminus-Sublime" === __WEBPACK_EXTERNAL_MODULE_node_process__["default"].env.TERM_PROGRAM || "vscode" === __WEBPACK_EXTERNAL_MODULE_node_process__["default"].env.TERM_PROGRAM || "xterm-256color" === __WEBPACK_EXTERNAL_MODULE_node_process__["default"].env.TERM || "alacritty" === __WEBPACK_EXTERNAL_MODULE_node_process__["default"].env.TERM || "JetBrains-JediTerm" === __WEBPACK_EXTERNAL_MODULE_node_process__["default"].env.TERMINAL_EMULATOR;
1103
+ }
1104
+ const _ = dist_q(), dist_o = (r, n)=>_ ? r : n, dist_H = dist_o("\u25C6", "*"), dist_I = dist_o("\u25A0", "x"), dist_x = dist_o("\u25B2", "x"), dist_S = dist_o("\u25C7", "o"), dist_a = (dist_o("\u250C", "T"), dist_o("\u2502", "|")), d = dist_o("\u2514", "\u2014"), prompts_dist_b = dist_o("\u25CF", ">"), dist_E = dist_o("\u25CB", " "), dist_C = dist_o("\u25FB", "[\u2022]"), dist_w = dist_o("\u25FC", "[+]"), dist_M = dist_o("\u25FB", "[ ]"), dist_B = (dist_o("\u25AA", "\u2022"), dist_o("\u2500", "-")), dist_Z = dist_o("\u256E", "+"), dist_z = dist_o("\u251C", "+"), dist_X = dist_o("\u256F", "+"), dist_y = (dist_o("\u25CF", "\u2022"), dist_o("\u25C6", "*"), dist_o("\u25B2", "!"), dist_o("\u25A0", "x"), (r)=>{
1105
+ switch(r){
1106
+ case "initial":
1107
+ case "active":
1108
+ return picocolors.cyan(dist_H);
1109
+ case "cancel":
1110
+ return picocolors.red(dist_I);
1111
+ case "error":
1112
+ return picocolors.yellow(dist_x);
1113
+ case "submit":
1114
+ return picocolors.green(dist_S);
1115
+ }
1116
+ }), te = (r)=>new TD({
1117
+ validate: r.validate,
1118
+ placeholder: r.placeholder,
1119
+ defaultValue: r.defaultValue,
1120
+ initialValue: r.initialValue,
1121
+ render () {
1122
+ const n = `${picocolors.gray(dist_a)}
670
1123
  ${dist_y(this.state)} ${r.message}
671
- `,i=r.placeholder?picocolors.inverse(r.placeholder[0])+picocolors.dim(r.placeholder.slice(1)):picocolors.inverse(picocolors.hidden("_")),t=this.value?this.valueWithCursor:i;switch(this.state){case"error":return`${n.trim()}
1124
+ `, i = r.placeholder ? picocolors.inverse(r.placeholder[0]) + picocolors.dim(r.placeholder.slice(1)) : picocolors.inverse(picocolors.hidden("_")), t = this.value ? this.valueWithCursor : i;
1125
+ switch(this.state){
1126
+ case "error":
1127
+ return `${n.trim()}
672
1128
  ${picocolors.yellow(dist_a)} ${t}
673
1129
  ${picocolors.yellow(d)} ${picocolors.yellow(this.error)}
674
- `;case"submit":return`${n}${picocolors.gray(dist_a)} ${picocolors.dim(this.value||r.placeholder)}`;case"cancel":return`${n}${picocolors.gray(dist_a)} ${picocolors.strikethrough(picocolors.dim(this.value??""))}${this.value?.trim()?`
675
- `+picocolors.gray(dist_a):""}`;default:return`${n}${picocolors.cyan(dist_a)} ${t}
1130
+ `;
1131
+ case "submit":
1132
+ return `${n}${picocolors.gray(dist_a)} ${picocolors.dim(this.value || r.placeholder)}`;
1133
+ case "cancel":
1134
+ return `${n}${picocolors.gray(dist_a)} ${picocolors.strikethrough(picocolors.dim(this.value ?? ""))}${this.value?.trim() ? `
1135
+ ` + picocolors.gray(dist_a) : ""}`;
1136
+ default:
1137
+ return `${n}${picocolors.cyan(dist_a)} ${t}
676
1138
  ${picocolors.cyan(d)}
677
- `}}}).prompt(),re=r=>new j({validate:r.validate,mask:r.mask??U,render(){const n=`${e.gray(dist_a)}
678
- ${dist_y(this.state)} ${r.message}
679
- `,i=this.valueWithCursor,t=this.masked;switch(this.state){case"error":return`${n.trim()}
680
- ${e.yellow(dist_a)} ${t}
681
- ${e.yellow(d)} ${e.yellow(this.error)}
682
- `;case"submit":return`${n}${e.gray(dist_a)} ${e.dim(t)}`;case"cancel":return`${n}${e.gray(dist_a)} ${e.strikethrough(e.dim(t??""))}${t?`
683
- `+e.gray(dist_a):""}`;default:return`${n}${e.cyan(dist_a)} ${i}
684
- ${e.cyan(d)}
685
- `}}}).prompt(),se=r=>{const n=r.active??"Yes",i=r.inactive??"No";return new N({active:n,inactive:i,initialValue:r.initialValue??!0,render(){const t=`${e.gray(dist_a)}
686
- ${dist_y(this.state)} ${r.message}
687
- `,s=this.value?n:i;switch(this.state){case"submit":return`${t}${e.gray(dist_a)} ${e.dim(s)}`;case"cancel":return`${t}${e.gray(dist_a)} ${e.strikethrough(e.dim(s))}
688
- ${e.gray(dist_a)}`;default:return`${t}${e.cyan(dist_a)} ${this.value?`${e.green(prompts_dist_b)} ${n}`:`${e.dim(dist_E)} ${e.dim(n)}`} ${e.dim("/")} ${this.value?`${e.dim(dist_E)} ${e.dim(i)}`:`${e.green(prompts_dist_b)} ${i}`}
689
- ${e.cyan(d)}
690
- `}}}).prompt()},ie=r=>{const n=(t,s)=>{const c=t.label??String(t.value);return s==="active"?`${picocolors.green(prompts_dist_b)} ${c} ${t.hint?picocolors.dim(`(${t.hint})`):""}`:s==="selected"?`${picocolors.dim(c)}`:s==="cancelled"?`${picocolors.strikethrough(picocolors.dim(c))}`:`${picocolors.dim(dist_E)} ${picocolors.dim(c)}`};let i=0;return new yD({options:r.options,initialValue:r.initialValue,render(){const t=`${picocolors.gray(dist_a)}
1139
+ `;
1140
+ }
1141
+ }
1142
+ }).prompt(), ie = (r)=>{
1143
+ const n = (t, s)=>{
1144
+ const c = t.label ?? String(t.value);
1145
+ return "active" === s ? `${picocolors.green(prompts_dist_b)} ${c} ${t.hint ? picocolors.dim(`(${t.hint})`) : ""}` : "selected" === s ? `${picocolors.dim(c)}` : "cancelled" === s ? `${picocolors.strikethrough(picocolors.dim(c))}` : `${picocolors.dim(dist_E)} ${picocolors.dim(c)}`;
1146
+ };
1147
+ let i = 0;
1148
+ return new yD({
1149
+ options: r.options,
1150
+ initialValue: r.initialValue,
1151
+ render () {
1152
+ const t = `${picocolors.gray(dist_a)}
691
1153
  ${dist_y(this.state)} ${r.message}
692
- `;switch(this.state){case"submit":return`${t}${picocolors.gray(dist_a)} ${n(this.options[this.cursor],"selected")}`;case"cancel":return`${t}${picocolors.gray(dist_a)} ${n(this.options[this.cursor],"cancelled")}
693
- ${picocolors.gray(dist_a)}`;default:{const s=r.maxItems===void 0?1/0:Math.max(r.maxItems,5);this.cursor>=i+s-3?i=Math.max(Math.min(this.cursor-s+3,this.options.length-s),0):this.cursor<i+2&&(i=Math.max(this.cursor-2,0));const c=s<this.options.length&&i>0,l=s<this.options.length&&i+s<this.options.length;return`${t}${picocolors.cyan(dist_a)} ${this.options.slice(i,i+s).map((u,m,$)=>m===0&&c?picocolors.dim("..."):m===$.length-1&&l?picocolors.dim("..."):n(u,m+i===this.cursor?"active":"inactive")).join(`
1154
+ `;
1155
+ switch(this.state){
1156
+ case "submit":
1157
+ return `${t}${picocolors.gray(dist_a)} ${n(this.options[this.cursor], "selected")}`;
1158
+ case "cancel":
1159
+ return `${t}${picocolors.gray(dist_a)} ${n(this.options[this.cursor], "cancelled")}
1160
+ ${picocolors.gray(dist_a)}`;
1161
+ default:
1162
+ {
1163
+ const s = void 0 === r.maxItems ? 1 / 0 : Math.max(r.maxItems, 5);
1164
+ this.cursor >= i + s - 3 ? i = Math.max(Math.min(this.cursor - s + 3, this.options.length - s), 0) : this.cursor < i + 2 && (i = Math.max(this.cursor - 2, 0));
1165
+ const c = s < this.options.length && i > 0, l = s < this.options.length && i + s < this.options.length;
1166
+ return `${t}${picocolors.cyan(dist_a)} ${this.options.slice(i, i + s).map((u, m, $)=>0 === m && c ? picocolors.dim("...") : m === $.length - 1 && l ? picocolors.dim("...") : n(u, m + i === this.cursor ? "active" : "inactive")).join(`
694
1167
  ${picocolors.cyan(dist_a)} `)}
695
1168
  ${picocolors.cyan(d)}
696
- `}}}}).prompt()},ne=r=>{const n=(i,t="inactive")=>{const s=i.label??String(i.value);return t==="selected"?`${e.dim(s)}`:t==="cancelled"?`${e.strikethrough(e.dim(s))}`:t==="active"?`${e.bgCyan(e.gray(` ${i.value} `))} ${s} ${i.hint?e.dim(`(${i.hint})`):""}`:`${e.gray(e.bgWhite(e.inverse(` ${i.value} `)))} ${s} ${i.hint?e.dim(`(${i.hint})`):""}`};return new W({options:r.options,initialValue:r.initialValue,render(){const i=`${e.gray(dist_a)}
697
- ${dist_y(this.state)} ${r.message}
698
- `;switch(this.state){case"submit":return`${i}${e.gray(dist_a)} ${n(this.options.find(t=>t.value===this.value),"selected")}`;case"cancel":return`${i}${e.gray(dist_a)} ${n(this.options[0],"cancelled")}
699
- ${e.gray(dist_a)}`;default:return`${i}${e.cyan(dist_a)} ${this.options.map((t,s)=>n(t,s===this.cursor?"active":"inactive")).join(`
700
- ${e.cyan(dist_a)} `)}
701
- ${e.cyan(d)}
702
- `}}}).prompt()},ae=r=>{const n=(i,t)=>{const s=i.label??String(i.value);return t==="active"?`${picocolors.cyan(dist_C)} ${s} ${i.hint?picocolors.dim(`(${i.hint})`):""}`:t==="selected"?`${picocolors.green(dist_w)} ${picocolors.dim(s)}`:t==="cancelled"?`${picocolors.strikethrough(picocolors.dim(s))}`:t==="active-selected"?`${picocolors.green(dist_w)} ${s} ${i.hint?picocolors.dim(`(${i.hint})`):""}`:t==="submitted"?`${picocolors.dim(s)}`:`${picocolors.dim(dist_M)} ${picocolors.dim(s)}`};return new gD({options:r.options,initialValues:r.initialValues,required:r.required??!0,cursorAt:r.cursorAt,validate(i){if(this.required&&i.length===0)return`Please select at least one option.
703
- ${picocolors.reset(picocolors.dim(`Press ${picocolors.gray(picocolors.bgWhite(picocolors.inverse(" space ")))} to select, ${picocolors.gray(picocolors.bgWhite(picocolors.inverse(" enter ")))} to submit`))}`},render(){let i=`${picocolors.gray(dist_a)}
1169
+ `;
1170
+ }
1171
+ }
1172
+ }
1173
+ }).prompt();
1174
+ }, ae = (r)=>{
1175
+ const n = (i, t)=>{
1176
+ const s = i.label ?? String(i.value);
1177
+ return "active" === t ? `${picocolors.cyan(dist_C)} ${s} ${i.hint ? picocolors.dim(`(${i.hint})`) : ""}` : "selected" === t ? `${picocolors.green(dist_w)} ${picocolors.dim(s)}` : "cancelled" === t ? `${picocolors.strikethrough(picocolors.dim(s))}` : "active-selected" === t ? `${picocolors.green(dist_w)} ${s} ${i.hint ? picocolors.dim(`(${i.hint})`) : ""}` : "submitted" === t ? `${picocolors.dim(s)}` : `${picocolors.dim(dist_M)} ${picocolors.dim(s)}`;
1178
+ };
1179
+ return new gD({
1180
+ options: r.options,
1181
+ initialValues: r.initialValues,
1182
+ required: r.required ?? !0,
1183
+ cursorAt: r.cursorAt,
1184
+ validate (i) {
1185
+ if (this.required && 0 === i.length) return `Please select at least one option.
1186
+ ${picocolors.reset(picocolors.dim(`Press ${picocolors.gray(picocolors.bgWhite(picocolors.inverse(" space ")))} to select, ${picocolors.gray(picocolors.bgWhite(picocolors.inverse(" enter ")))} to submit`))}`;
1187
+ },
1188
+ render () {
1189
+ let i = `${picocolors.gray(dist_a)}
704
1190
  ${dist_y(this.state)} ${r.message}
705
- `;switch(this.state){case"submit":return`${i}${picocolors.gray(dist_a)} ${this.options.filter(({value:t})=>this.value.includes(t)).map(t=>n(t,"submitted")).join(picocolors.dim(", "))||picocolors.dim("none")}`;case"cancel":{const t=this.options.filter(({value:s})=>this.value.includes(s)).map(s=>n(s,"cancelled")).join(picocolors.dim(", "));return`${i}${picocolors.gray(dist_a)} ${t.trim()?`${t}
706
- ${picocolors.gray(dist_a)}`:""}`}case"error":{const t=this.error.split(`
707
- `).map((s,c)=>c===0?`${picocolors.yellow(d)} ${picocolors.yellow(s)}`:` ${s}`).join(`
708
- `);return i+picocolors.yellow(dist_a)+" "+this.options.map((s,c)=>{const l=this.value.includes(s.value),u=c===this.cursor;return u&&l?n(s,"active-selected"):l?n(s,"selected"):n(s,u?"active":"inactive")}).join(`
709
- ${picocolors.yellow(dist_a)} `)+`
710
- `+t+`
711
- `}default:return`${i}${picocolors.cyan(dist_a)} ${this.options.map((t,s)=>{const c=this.value.includes(t.value),l=s===this.cursor;return l&&c?n(t,"active-selected"):c?n(t,"selected"):n(t,l?"active":"inactive")}).join(`
1191
+ `;
1192
+ switch(this.state){
1193
+ case "submit":
1194
+ return `${i}${picocolors.gray(dist_a)} ${this.options.filter(({ value: t })=>this.value.includes(t)).map((t)=>n(t, "submitted")).join(picocolors.dim(", ")) || picocolors.dim("none")}`;
1195
+ case "cancel":
1196
+ {
1197
+ const t = this.options.filter(({ value: s })=>this.value.includes(s)).map((s)=>n(s, "cancelled")).join(picocolors.dim(", "));
1198
+ return `${i}${picocolors.gray(dist_a)} ${t.trim() ? `${t}
1199
+ ${picocolors.gray(dist_a)}` : ""}`;
1200
+ }
1201
+ case "error":
1202
+ {
1203
+ const t = this.error.split(`
1204
+ `).map((s, c)=>0 === c ? `${picocolors.yellow(d)} ${picocolors.yellow(s)}` : ` ${s}`).join(`
1205
+ `);
1206
+ return i + picocolors.yellow(dist_a) + " " + this.options.map((s, c)=>{
1207
+ const l = this.value.includes(s.value), u = c === this.cursor;
1208
+ return u && l ? n(s, "active-selected") : l ? n(s, "selected") : n(s, u ? "active" : "inactive");
1209
+ }).join(`
1210
+ ${picocolors.yellow(dist_a)} `) + `
1211
+ ` + t + `
1212
+ `;
1213
+ }
1214
+ default:
1215
+ return `${i}${picocolors.cyan(dist_a)} ${this.options.map((t, s)=>{
1216
+ const c = this.value.includes(t.value), l = s === this.cursor;
1217
+ return l && c ? n(t, "active-selected") : c ? n(t, "selected") : n(t, l ? "active" : "inactive");
1218
+ }).join(`
712
1219
  ${picocolors.cyan(dist_a)} `)}
713
1220
  ${picocolors.cyan(d)}
714
- `}}}).prompt()},ce=r=>{const n=(i,t,s=[])=>{const c=i.label??String(i.value),l=typeof i.group=="string",u=l&&(s[s.indexOf(i)+1]??{group:!0}),m=l&&u.group===!0,$=l?`${m?d:dist_a} `:"";return t==="active"?`${e.dim($)}${e.cyan(dist_C)} ${c} ${i.hint?e.dim(`(${i.hint})`):""}`:t==="group-active"?`${$}${e.cyan(dist_C)} ${e.dim(c)}`:t==="group-active-selected"?`${$}${e.green(dist_w)} ${e.dim(c)}`:t==="selected"?`${e.dim($)}${e.green(dist_w)} ${e.dim(c)}`:t==="cancelled"?`${e.strikethrough(e.dim(c))}`:t==="active-selected"?`${e.dim($)}${e.green(dist_w)} ${c} ${i.hint?e.dim(`(${i.hint})`):""}`:t==="submitted"?`${e.dim(c)}`:`${e.dim($)}${e.dim(dist_M)} ${e.dim(c)}`};return new L({options:r.options,initialValues:r.initialValues,required:r.required??!0,cursorAt:r.cursorAt,validate(i){if(this.required&&i.length===0)return`Please select at least one option.
715
- ${e.reset(e.dim(`Press ${e.gray(e.bgWhite(e.inverse(" space ")))} to select, ${e.gray(e.bgWhite(e.inverse(" enter ")))} to submit`))}`},render(){let i=`${e.gray(dist_a)}
716
- ${dist_y(this.state)} ${r.message}
717
- `;switch(this.state){case"submit":return`${i}${e.gray(dist_a)} ${this.options.filter(({value:t})=>this.value.includes(t)).map(t=>n(t,"submitted")).join(e.dim(", "))}`;case"cancel":{const t=this.options.filter(({value:s})=>this.value.includes(s)).map(s=>n(s,"cancelled")).join(e.dim(", "));return`${i}${e.gray(dist_a)} ${t.trim()?`${t}
718
- ${e.gray(dist_a)}`:""}`}case"error":{const t=this.error.split(`
719
- `).map((s,c)=>c===0?`${e.yellow(d)} ${e.yellow(s)}`:` ${s}`).join(`
720
- `);return`${i}${e.yellow(dist_a)} ${this.options.map((s,c,l)=>{const u=this.value.includes(s.value)||s.group===!0&&this.isGroupSelected(`${s.value}`),m=c===this.cursor;return!m&&typeof s.group=="string"&&this.options[this.cursor].value===s.group?n(s,u?"group-active-selected":"group-active",l):m&&u?n(s,"active-selected",l):u?n(s,"selected",l):n(s,m?"active":"inactive",l)}).join(`
721
- ${e.yellow(dist_a)} `)}
722
- ${t}
723
- `}default:return`${i}${e.cyan(dist_a)} ${this.options.map((t,s,c)=>{const l=this.value.includes(t.value)||t.group===!0&&this.isGroupSelected(`${t.value}`),u=s===this.cursor;return!u&&typeof t.group=="string"&&this.options[this.cursor].value===t.group?n(t,l?"group-active-selected":"group-active",c):u&&l?n(t,"active-selected",c):l?n(t,"selected",c):n(t,u?"active":"inactive",c)}).join(`
724
- ${e.cyan(dist_a)} `)}
725
- ${e.cyan(d)}
726
- `}}}).prompt()},dist_R=r=>r.replace(me(),""),le=(r="",n="")=>{const i=`
1221
+ `;
1222
+ }
1223
+ }
1224
+ }).prompt();
1225
+ }, dist_R = (r)=>r.replace(me(), ""), le = (r = "", n = "")=>{
1226
+ const i = `
727
1227
  ${r}
728
1228
  `.split(`
729
- `),t=dist_R(n).length,s=Math.max(i.reduce((l,u)=>(u=dist_R(u),u.length>l?u.length:l),0),t)+2,c=i.map(l=>`${picocolors.gray(dist_a)} ${picocolors.dim(l)}${" ".repeat(s-dist_R(l).length)}${picocolors.gray(dist_a)}`).join(`
730
- `);process.stdout.write(`${picocolors.gray(dist_a)}
731
- ${picocolors.green(dist_S)} ${picocolors.reset(n)} ${picocolors.gray(dist_B.repeat(Math.max(s-t-1,1))+dist_Z)}
1229
+ `), t = dist_R(n).length, s = Math.max(i.reduce((l, u)=>(u = dist_R(u), u.length > l ? u.length : l), 0), t) + 2, c = i.map((l)=>`${picocolors.gray(dist_a)} ${picocolors.dim(l)}${" ".repeat(s - dist_R(l).length)}${picocolors.gray(dist_a)}`).join(`
1230
+ `);
1231
+ process.stdout.write(`${picocolors.gray(dist_a)}
1232
+ ${picocolors.green(dist_S)} ${picocolors.reset(n)} ${picocolors.gray(dist_B.repeat(Math.max(s - t - 1, 1)) + dist_Z)}
732
1233
  ${c}
733
- ${picocolors.gray(dist_z+dist_B.repeat(s+2)+dist_X)}
734
- `)},ue=(r="")=>{process.stdout.write(`${picocolors.gray(d)} ${picocolors.red(r)}
1234
+ ${picocolors.gray(dist_z + dist_B.repeat(s + 2) + dist_X)}
1235
+ `);
1236
+ }, ue = (r = "")=>{
1237
+ process.stdout.write(`${picocolors.gray(d)} ${picocolors.red(r)}
735
1238
 
736
- `)},oe=(r="")=>{process.stdout.write(`${e.gray(dist_K)} ${r}
737
- `)},$e=(r="")=>{process.stdout.write(`${picocolors.gray(dist_a)}
1239
+ `);
1240
+ }, $e = (r = "")=>{
1241
+ process.stdout.write(`${picocolors.gray(dist_a)}
738
1242
  ${picocolors.gray(d)} ${r}
739
1243
 
740
- `)},dist_f=(/* unused pure expression or super */ null && ({message:(r="",{symbol:n=e.gray(dist_a)}={})=>{const i=[`${e.gray(dist_a)}`];if(r){const[t,...s]=r.split(`
741
- `);i.push(`${n} ${t}`,...s.map(c=>`${e.gray(dist_a)} ${c}`))}process.stdout.write(`${i.join(`
742
- `)}
743
- `)},info:r=>{dist_f.message(r,{symbol:e.blue(dist_J)})},success:r=>{dist_f.message(r,{symbol:e.green(dist_Y)})},step:r=>{dist_f.message(r,{symbol:e.green(dist_S)})},warn:r=>{dist_f.message(r,{symbol:e.yellow(dist_Q)})},warning:r=>{dist_f.warn(r)},error:r=>{dist_f.message(r,{symbol:e.red(ee)})}})),de=()=>{const r=_?["\u25D2","\u25D0","\u25D3","\u25D1"]:["\u2022","o","O","0"],n=_?80:120;let i,t,s=!1,c="";const l=(v="")=>{s=!0,i=F(),c=v.replace(/\.+$/,""),process.stdout.write(`${e.gray(dist_a)}
744
- `);let g=0,p=0;t=setInterval(()=>{const O=e.magenta(r[g]),P=".".repeat(Math.floor(p)).slice(0,3);process.stdout.write(T.move(-999,0)),process.stdout.write(A.down(1)),process.stdout.write(`${O} ${c}${P}`),g=g+1<r.length?g+1:0,p=p<r.length?p+.125:0},n)},u=(v="",g=0)=>{c=v??c,s=!1,clearInterval(t);const p=g===0?e.green(dist_S):g===1?e.red(dist_I):e.red(dist_x);process.stdout.write(T.move(-999,0)),process.stdout.write(A.down(1)),process.stdout.write(`${p} ${c}
745
- `),i()},m=(v="")=>{c=v??c},$=v=>{const g=v>1?"Something went wrong":"Canceled";s&&u(g,v)};return process.on("uncaughtExceptionMonitor",()=>$(2)),process.on("unhandledRejection",()=>$(2)),process.on("SIGINT",()=>$(1)),process.on("SIGTERM",()=>$(1)),process.on("exit",$),{start:l,stop:u,message:m}};function me(){const r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(r,"g")}const he=async(r,n)=>{const i={},t=Object.keys(r);for(const s of t){const c=r[s],l=await c({results:i})?.catch(u=>{throw u});if(typeof n?.onCancel=="function"&&G(l)){i[s]="canceled",n.onCancel({results:i});continue}i[s]=l}return i};
746
-
1244
+ `);
1245
+ };
1246
+ function me() {
1247
+ const r = "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))";
1248
+ return new RegExp(r, "g");
1249
+ }
747
1250
  // EXTERNAL MODULE: ./node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js
748
1251
  var cjs = __webpack_require__("./node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js");
749
- var cjs_default = /*#__PURE__*/__webpack_require__.n(cjs);
1252
+ var cjs_default = /*#__PURE__*/ __webpack_require__.n(cjs);
750
1253
  // EXTERNAL MODULE: ./node_modules/.pnpm/minimist@1.2.8/node_modules/minimist/index.js
751
1254
  var minimist = __webpack_require__("./node_modules/.pnpm/minimist@1.2.8/node_modules/minimist/index.js");
752
- var minimist_default = /*#__PURE__*/__webpack_require__.n(minimist);
753
- ;// CONCATENATED MODULE: external "process"
754
-
755
- var external_process_namespaceObject = __WEBPACK_EXTERNAL_MODULE_process__;
756
-
757
- ;// CONCATENATED MODULE: external "os"
758
-
759
- var external_os_namespaceObject = __WEBPACK_EXTERNAL_MODULE_os__;
760
-
1255
+ var minimist_default = /*#__PURE__*/ __webpack_require__.n(minimist);
761
1256
  // EXTERNAL MODULE: external "tty"
762
1257
  var external_tty_ = __webpack_require__("tty");
763
- ;// CONCATENATED MODULE: ./node_modules/.pnpm/rslog@1.2.2/node_modules/rslog/dist/index.mjs
764
1258
  // node_modules/.pnpm/supports-color@9.4.0/node_modules/supports-color/index.js
765
-
766
-
767
-
768
- function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : external_process_namespaceObject["default"].argv) {
769
- const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
770
- const position = argv.indexOf(prefix + flag);
771
- const terminatorPosition = argv.indexOf("--");
772
- return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
1259
+ function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : __WEBPACK_EXTERNAL_MODULE_process__["default"].argv) {
1260
+ const prefix = flag.startsWith("-") ? "" : 1 === flag.length ? "-" : "--";
1261
+ const position = argv.indexOf(prefix + flag);
1262
+ const terminatorPosition = argv.indexOf("--");
1263
+ return -1 !== position && (-1 === terminatorPosition || position < terminatorPosition);
773
1264
  }
774
- var { env } = external_process_namespaceObject["default"];
1265
+ var { env } = __WEBPACK_EXTERNAL_MODULE_process__["default"];
775
1266
  var flagForceColor;
776
- if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
777
- flagForceColor = 0;
778
- } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
779
- flagForceColor = 1;
780
- }
1267
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) flagForceColor = 0;
1268
+ else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) flagForceColor = 1;
781
1269
  function envForceColor() {
782
- if ("FORCE_COLOR" in env) {
783
- if (env.FORCE_COLOR === "true") {
784
- return 1;
785
- }
786
- if (env.FORCE_COLOR === "false") {
787
- return 0;
1270
+ if ("FORCE_COLOR" in env) {
1271
+ if ("true" === env.FORCE_COLOR) return 1;
1272
+ if ("false" === env.FORCE_COLOR) return 0;
1273
+ return 0 === env.FORCE_COLOR.length ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
788
1274
  }
789
- return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
790
- }
791
1275
  }
792
1276
  function translateLevel(level) {
793
- if (level === 0) {
794
- return false;
795
- }
796
- return {
797
- level,
798
- hasBasic: true,
799
- has256: level >= 2,
800
- has16m: level >= 3
801
- };
1277
+ if (0 === level) return false;
1278
+ return {
1279
+ level,
1280
+ hasBasic: true,
1281
+ has256: level >= 2,
1282
+ has16m: level >= 3
1283
+ };
802
1284
  }
803
1285
  function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
804
- const noFlagForceColor = envForceColor();
805
- if (noFlagForceColor !== void 0) {
806
- flagForceColor = noFlagForceColor;
807
- }
808
- const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
809
- if (forceColor === 0) {
810
- return 0;
811
- }
812
- if (sniffFlags) {
813
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
814
- return 3;
815
- }
816
- if (hasFlag("color=256")) {
817
- return 2;
1286
+ const noFlagForceColor = envForceColor();
1287
+ if (void 0 !== noFlagForceColor) flagForceColor = noFlagForceColor;
1288
+ const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
1289
+ if (0 === forceColor) return 0;
1290
+ if (sniffFlags) {
1291
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) return 3;
1292
+ if (hasFlag("color=256")) return 2;
818
1293
  }
819
- }
820
- if ("TF_BUILD" in env && "AGENT_NAME" in env) {
821
- return 1;
822
- }
823
- if (haveStream && !streamIsTTY && forceColor === void 0) {
824
- return 0;
825
- }
826
- const min = forceColor || 0;
827
- if (env.TERM === "dumb") {
828
- return min;
829
- }
830
- if (external_process_namespaceObject["default"].platform === "win32") {
831
- const osRelease = external_os_namespaceObject["default"].release().split(".");
832
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
833
- return Number(osRelease[2]) >= 14931 ? 3 : 2;
1294
+ if ("TF_BUILD" in env && "AGENT_NAME" in env) return 1;
1295
+ if (haveStream && !streamIsTTY && void 0 === forceColor) return 0;
1296
+ const min = forceColor || 0;
1297
+ if ("dumb" === env.TERM) return min;
1298
+ if ("win32" === __WEBPACK_EXTERNAL_MODULE_process__["default"].platform) {
1299
+ const osRelease = __WEBPACK_EXTERNAL_MODULE_os__["default"].release().split(".");
1300
+ if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) return Number(osRelease[2]) >= 14931 ? 3 : 2;
1301
+ return 1;
834
1302
  }
835
- return 1;
836
- }
837
- if ("CI" in env) {
838
- if ("GITHUB_ACTIONS" in env || "GITEA_ACTIONS" in env) {
839
- return 3;
1303
+ if ("CI" in env) {
1304
+ if ("GITHUB_ACTIONS" in env || "GITEA_ACTIONS" in env) return 3;
1305
+ if ([
1306
+ "TRAVIS",
1307
+ "CIRCLECI",
1308
+ "APPVEYOR",
1309
+ "GITLAB_CI",
1310
+ "BUILDKITE",
1311
+ "DRONE"
1312
+ ].some((sign)=>sign in env) || "codeship" === env.CI_NAME) return 1;
1313
+ return min;
840
1314
  }
841
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
842
- return 1;
1315
+ if ("TEAMCITY_VERSION" in env) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
1316
+ if ("truecolor" === env.COLORTERM) return 3;
1317
+ if ("xterm-kitty" === env.TERM) return 3;
1318
+ if ("TERM_PROGRAM" in env) {
1319
+ const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
1320
+ switch(env.TERM_PROGRAM){
1321
+ case "iTerm.app":
1322
+ return version >= 3 ? 3 : 2;
1323
+ case "Apple_Terminal":
1324
+ return 2;
1325
+ }
843
1326
  }
1327
+ if (/-256(color)?$/i.test(env.TERM)) return 2;
1328
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
1329
+ if ("COLORTERM" in env) return 1;
844
1330
  return min;
845
- }
846
- if ("TEAMCITY_VERSION" in env) {
847
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
848
- }
849
- if (env.COLORTERM === "truecolor") {
850
- return 3;
851
- }
852
- if (env.TERM === "xterm-kitty") {
853
- return 3;
854
- }
855
- if ("TERM_PROGRAM" in env) {
856
- const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
857
- switch (env.TERM_PROGRAM) {
858
- case "iTerm.app": {
859
- return version >= 3 ? 3 : 2;
860
- }
861
- case "Apple_Terminal": {
862
- return 2;
863
- }
864
- }
865
- }
866
- if (/-256(color)?$/i.test(env.TERM)) {
867
- return 2;
868
- }
869
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
870
- return 1;
871
- }
872
- if ("COLORTERM" in env) {
873
- return 1;
874
- }
875
- return min;
876
1331
  }
877
1332
  function createSupportsColor(stream, options = {}) {
878
- const level = _supportsColor(stream, {
879
- streamIsTTY: stream && stream.isTTY,
880
- ...options
881
- });
882
- return translateLevel(level);
1333
+ const level = _supportsColor(stream, {
1334
+ streamIsTTY: stream && stream.isTTY,
1335
+ ...options
1336
+ });
1337
+ return translateLevel(level);
883
1338
  }
884
1339
  var supportsColor = {
885
- stdout: createSupportsColor({ isTTY: external_tty_["default"].isatty(1) }),
886
- stderr: createSupportsColor({ isTTY: external_tty_["default"].isatty(2) })
1340
+ stdout: createSupportsColor({
1341
+ isTTY: external_tty_["default"].isatty(1)
1342
+ }),
1343
+ stderr: createSupportsColor({
1344
+ isTTY: external_tty_["default"].isatty(2)
1345
+ })
887
1346
  };
888
1347
  var supports_color_default = supportsColor;
889
-
890
1348
  // src/utils.ts
891
1349
  var colorLevel = supports_color_default.stdout ? supports_color_default.stdout.level : 0;
892
1350
  var errorStackRegExp = /at\s.*:\d+:\d+[\s\)]*$/;
893
- var anonymousErrorStackRegExp = /^\s*at\s.*\(<anonymous>\)$/;
894
- var isErrorStackMessage = (message) => errorStackRegExp.test(message) || anonymousErrorStackRegExp.test(message);
895
-
1351
+ var anonymousErrorStackRegExp = /at\s.*\(<anonymous>\)$/;
1352
+ var isErrorStackMessage = (message)=>errorStackRegExp.test(message) || anonymousErrorStackRegExp.test(message);
896
1353
  // src/color.ts
897
- var formatter = (open, close, replace = open) => colorLevel >= 2 ? (input) => {
898
- let string = "" + input;
899
- let index = string.indexOf(close, open.length);
900
- return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
901
- } : String;
902
- var replaceClose = (string, close, replace, index) => {
903
- let start = string.substring(0, index) + replace;
904
- let end = string.substring(index + close.length);
905
- let nextIndex = end.indexOf(close);
906
- return ~nextIndex ? start + replaceClose(end, close, replace, nextIndex) : start + end;
1354
+ var formatter = (open, close, replace = open)=>colorLevel >= 2 ? (input)=>{
1355
+ let string = "" + input;
1356
+ let index = string.indexOf(close, open.length);
1357
+ return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
1358
+ } : String;
1359
+ var replaceClose = (string, close, replace, index)=>{
1360
+ let start = string.substring(0, index) + replace;
1361
+ let end = string.substring(index + close.length);
1362
+ let nextIndex = end.indexOf(close);
1363
+ return ~nextIndex ? start + replaceClose(end, close, replace, nextIndex) : start + end;
907
1364
  };
908
1365
  var bold = formatter("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m");
909
1366
  var red = formatter("\x1B[31m", "\x1B[39m");
@@ -912,166 +1369,146 @@ var yellow = formatter("\x1B[33m", "\x1B[39m");
912
1369
  var magenta = formatter("\x1B[35m", "\x1B[39m");
913
1370
  var cyan = formatter("\x1B[36m", "\x1B[39m");
914
1371
  var gray = formatter("\x1B[90m", "\x1B[39m");
915
-
916
1372
  // src/gradient.ts
917
- var startColor = [189, 255, 243];
918
- var endColor = [74, 194, 154];
919
- var isWord = (char) => !/[\s\n]/.test(char);
920
- var gradient = (message) => {
921
- if (colorLevel < 3) {
922
- return colorLevel === 2 ? bold(cyan(message)) : message;
923
- }
924
- let chars = [...message];
925
- let steps = chars.filter(isWord).length;
926
- let r = startColor[0];
927
- let g = startColor[1];
928
- let b = startColor[2];
929
- let rStep = (endColor[0] - r) / steps;
930
- let gStep = (endColor[1] - g) / steps;
931
- let bStep = (endColor[2] - b) / steps;
932
- let output = "";
933
- for (let char of chars) {
934
- if (isWord(char)) {
935
- r += rStep;
936
- g += gStep;
937
- b += bStep;
1373
+ var startColor = [
1374
+ 189,
1375
+ 255,
1376
+ 243
1377
+ ];
1378
+ var endColor = [
1379
+ 74,
1380
+ 194,
1381
+ 154
1382
+ ];
1383
+ var isWord = (char)=>!/[\s\n]/.test(char);
1384
+ var gradient = (message)=>{
1385
+ if (colorLevel < 3) return 2 === colorLevel ? bold(cyan(message)) : message;
1386
+ let chars = [
1387
+ ...message
1388
+ ];
1389
+ let steps = chars.filter(isWord).length;
1390
+ let r = startColor[0];
1391
+ let g = startColor[1];
1392
+ let b = startColor[2];
1393
+ let rStep = (endColor[0] - r) / steps;
1394
+ let gStep = (endColor[1] - g) / steps;
1395
+ let bStep = (endColor[2] - b) / steps;
1396
+ let output = "";
1397
+ for (let char of chars){
1398
+ if (isWord(char)) {
1399
+ r += rStep;
1400
+ g += gStep;
1401
+ b += bStep;
1402
+ }
1403
+ output += `\x1B[38;2;${Math.round(r)};${Math.round(g)};${Math.round(b)}m${char}\x1B[39m`;
938
1404
  }
939
- output += `\x1B[38;2;${Math.round(r)};${Math.round(g)};${Math.round(
940
- b
941
- )}m${char}\x1B[39m`;
942
- }
943
- return bold(output);
1405
+ return bold(output);
944
1406
  };
945
-
946
1407
  // src/constants.ts
947
1408
  var LOG_LEVEL = {
948
- error: 0,
949
- warn: 1,
950
- info: 2,
951
- log: 3,
952
- verbose: 4
1409
+ error: 0,
1410
+ warn: 1,
1411
+ info: 2,
1412
+ log: 3,
1413
+ verbose: 4
953
1414
  };
954
1415
  var LOG_TYPES = {
955
- // Level error
956
- error: {
957
- label: "error",
958
- level: "error",
959
- color: red
960
- },
961
- // Level warn
962
- warn: {
963
- label: "warn",
964
- level: "warn",
965
- color: yellow
966
- },
967
- // Level info
968
- info: {
969
- label: "info",
970
- level: "info",
971
- color: cyan
972
- },
973
- start: {
974
- label: "start",
975
- level: "info",
976
- color: cyan
977
- },
978
- ready: {
979
- label: "ready",
980
- level: "info",
981
- color: green
982
- },
983
- success: {
984
- label: "success",
985
- level: "info",
986
- color: green
987
- },
988
- // Level log
989
- log: {
990
- level: "log"
991
- },
992
- // Level debug
993
- debug: {
994
- label: "debug",
995
- level: "verbose",
996
- color: magenta
997
- }
1416
+ // Level error
1417
+ error: {
1418
+ label: "error",
1419
+ level: "error",
1420
+ color: red
1421
+ },
1422
+ // Level warn
1423
+ warn: {
1424
+ label: "warn",
1425
+ level: "warn",
1426
+ color: yellow
1427
+ },
1428
+ // Level info
1429
+ info: {
1430
+ label: "info",
1431
+ level: "info",
1432
+ color: cyan
1433
+ },
1434
+ start: {
1435
+ label: "start",
1436
+ level: "info",
1437
+ color: cyan
1438
+ },
1439
+ ready: {
1440
+ label: "ready",
1441
+ level: "info",
1442
+ color: green
1443
+ },
1444
+ success: {
1445
+ label: "success",
1446
+ level: "info",
1447
+ color: green
1448
+ },
1449
+ // Level log
1450
+ log: {
1451
+ level: "log"
1452
+ },
1453
+ // Level debug
1454
+ debug: {
1455
+ label: "debug",
1456
+ level: "verbose",
1457
+ color: magenta
1458
+ }
998
1459
  };
999
-
1000
1460
  // src/createLogger.ts
1001
- var createLogger = (options = {}) => {
1002
- let maxLevel = options.level || "log";
1003
- let log = (type, message, ...args) => {
1004
- if (LOG_LEVEL[LOG_TYPES[type].level] > LOG_LEVEL[maxLevel]) {
1005
- return;
1006
- }
1007
- if (message === void 0 || message === null) {
1008
- return console.log();
1009
- }
1010
- let logType = LOG_TYPES[type];
1011
- let label = "";
1012
- let text = "";
1013
- if ("label" in logType) {
1014
- label = (logType.label || "").padEnd(7);
1015
- label = bold(logType.color ? logType.color(label) : label);
1016
- }
1017
- if (message instanceof Error) {
1018
- if (message.stack) {
1019
- let [name, ...rest] = message.stack.split("\n");
1020
- if (name.startsWith("Error: ")) {
1021
- name = name.slice(7);
1461
+ var createLogger = (options = {})=>{
1462
+ let maxLevel = options.level || "log";
1463
+ let log = (type, message, ...args)=>{
1464
+ if (LOG_LEVEL[LOG_TYPES[type].level] > LOG_LEVEL[maxLevel]) return;
1465
+ if (null == message) return console.log();
1466
+ let logType = LOG_TYPES[type];
1467
+ let label = "";
1468
+ let text = "";
1469
+ if ("label" in logType) {
1470
+ label = (logType.label || "").padEnd(7);
1471
+ label = bold(logType.color ? logType.color(label) : label);
1022
1472
  }
1023
- text = `${name}
1473
+ if (message instanceof Error) {
1474
+ if (message.stack) {
1475
+ let [name, ...rest] = message.stack.split("\n");
1476
+ if (name.startsWith("Error: ")) name = name.slice(7);
1477
+ text = `${name}
1024
1478
  ${gray(rest.join("\n"))}`;
1025
- } else {
1026
- text = message.message;
1027
- }
1028
- } else if (logType.level === "error" && typeof message === "string") {
1029
- let lines = message.split("\n");
1030
- text = lines.map((line) => isErrorStackMessage(line) ? gray(line) : line).join("\n");
1031
- } else {
1032
- text = `${message}`;
1033
- }
1034
- console.log(label.length ? `${label} ${text}` : text, ...args);
1035
- };
1036
- let logger2 = {
1037
- greet: (message) => log("log", gradient(message))
1038
- };
1039
- Object.keys(LOG_TYPES).forEach((key) => {
1040
- logger2[key] = (...args) => log(key, ...args);
1041
- });
1042
- Object.defineProperty(logger2, "level", {
1043
- get: () => maxLevel,
1044
- set(val) {
1045
- maxLevel = val;
1046
- }
1047
- });
1048
- logger2.override = (customLogger) => {
1049
- Object.assign(logger2, customLogger);
1050
- };
1051
- return logger2;
1479
+ } else text = message.message;
1480
+ } else if ("error" === logType.level && "string" == typeof message) {
1481
+ let lines = message.split("\n");
1482
+ text = lines.map((line)=>isErrorStackMessage(line) ? gray(line) : line).join("\n");
1483
+ } else text = `${message}`;
1484
+ console.log(label.length ? `${label} ${text}` : text, ...args);
1485
+ };
1486
+ let logger2 = {
1487
+ greet: (message)=>log("log", gradient(message))
1488
+ };
1489
+ Object.keys(LOG_TYPES).forEach((key)=>{
1490
+ logger2[key] = (...args)=>log(key, ...args);
1491
+ });
1492
+ Object.defineProperty(logger2, "level", {
1493
+ get: ()=>maxLevel,
1494
+ set (val) {
1495
+ maxLevel = val;
1496
+ }
1497
+ });
1498
+ logger2.override = (customLogger)=>{
1499
+ Object.assign(logger2, customLogger);
1500
+ };
1501
+ return logger2;
1052
1502
  };
1053
-
1054
1503
  // src/index.ts
1055
1504
  var logger = createLogger();
1056
-
1057
-
1058
- ;// CONCATENATED MODULE: ./src/index.ts
1059
1505
  var src_dirname = __webpack_dirname__(__webpack_fileURLToPath__(import.meta.url));
1060
-
1061
-
1062
-
1063
-
1064
-
1065
-
1066
-
1067
1506
  function cancelAndExit() {
1068
1507
  ue('Operation cancelled.');
1069
1508
  process.exit(0);
1070
1509
  }
1071
1510
  function checkCancel(value) {
1072
- if (hD(value)) {
1073
- cancelAndExit();
1074
- }
1511
+ if (hD(value)) cancelAndExit();
1075
1512
  return value;
1076
1513
  }
1077
1514
  /**
@@ -1092,12 +1529,12 @@ function checkCancel(value) {
1092
1529
  */ function formatProjectName(input) {
1093
1530
  const formatted = input.trim().replace(/\/+$/g, '');
1094
1531
  return {
1095
- packageName: formatted.startsWith('@') ? formatted : external_node_path_namespaceObject["default"].basename(formatted),
1532
+ packageName: formatted.startsWith('@') ? formatted : __WEBPACK_EXTERNAL_MODULE_node_path__["default"].basename(formatted),
1096
1533
  targetDir: formatted
1097
1534
  };
1098
1535
  }
1099
1536
  function pkgFromUserAgent(userAgent) {
1100
- if (!userAgent) return undefined;
1537
+ if (!userAgent) return;
1101
1538
  const pkgSpec = userAgent.split(' ')[0];
1102
1539
  const pkgSpecArr = pkgSpec.split('/');
1103
1540
  return {
@@ -1106,8 +1543,8 @@ function pkgFromUserAgent(userAgent) {
1106
1543
  };
1107
1544
  }
1108
1545
  function isEmptyDir(path) {
1109
- const files = external_node_fs_namespaceObject["default"].readdirSync(path);
1110
- return files.length === 0 || files.length === 1 && files[0] === '.git';
1546
+ const files = __WEBPACK_EXTERNAL_MODULE_node_fs__["default"].readdirSync(path);
1547
+ return 0 === files.length || 1 === files.length && '.git' === files[0];
1111
1548
  }
1112
1549
  function logHelpMessage(name, templates) {
1113
1550
  logger.log(`
@@ -1127,15 +1564,11 @@ function logHelpMessage(name, templates) {
1127
1564
  `);
1128
1565
  }
1129
1566
  async function getTools({ tools, dir, template }) {
1130
- if (tools) {
1131
- return Array.isArray(tools) ? tools : [
1132
- tools
1133
- ];
1134
- }
1567
+ if (tools) return Array.isArray(tools) ? tools : [
1568
+ tools
1569
+ ];
1135
1570
  // skip tools selection when using CLI options
1136
- if (dir && template) {
1137
- return [];
1138
- }
1571
+ if (dir && template) return [];
1139
1572
  return checkCancel(await ae({
1140
1573
  message: 'Select additional tools (Use <space> to select, <enter> to continue)',
1141
1574
  options: [
@@ -1175,21 +1608,19 @@ async function create({ name, root, templates, skipFiles, getTemplateName, mapES
1175
1608
  const cwd = process.cwd();
1176
1609
  const pkgInfo = pkgFromUserAgent(process.env.npm_config_user_agent);
1177
1610
  const pkgManager = pkgInfo ? pkgInfo.name : 'npm';
1178
- const packageJsonPath = external_node_path_namespaceObject["default"].join(root, 'package.json');
1179
- const { version } = JSON.parse(await external_node_fs_namespaceObject["default"].promises.readFile(packageJsonPath, 'utf-8'));
1611
+ const packageJsonPath = __WEBPACK_EXTERNAL_MODULE_node_path__["default"].join(root, 'package.json');
1612
+ const { version } = JSON.parse(await __WEBPACK_EXTERNAL_MODULE_node_fs__["default"].promises.readFile(packageJsonPath, 'utf-8'));
1180
1613
  const projectName = argv.dir ?? checkCancel(await te({
1181
1614
  message: 'Project name or path',
1182
1615
  placeholder: `${name}-project`,
1183
1616
  defaultValue: `${name}-project`,
1184
1617
  validate (value) {
1185
- if (value.length === 0) {
1186
- return 'Project name is required';
1187
- }
1618
+ if (0 === value.length) return 'Project name is required';
1188
1619
  }
1189
1620
  }));
1190
1621
  const { targetDir, packageName } = formatProjectName(projectName);
1191
- const distFolder = external_node_path_namespaceObject["default"].isAbsolute(targetDir) ? targetDir : external_node_path_namespaceObject["default"].join(cwd, targetDir);
1192
- if (!argv.override && external_node_fs_namespaceObject["default"].existsSync(distFolder) && !isEmptyDir(distFolder)) {
1622
+ const distFolder = __WEBPACK_EXTERNAL_MODULE_node_path__["default"].isAbsolute(targetDir) ? targetDir : __WEBPACK_EXTERNAL_MODULE_node_path__["default"].join(cwd, targetDir);
1623
+ if (!argv.override && __WEBPACK_EXTERNAL_MODULE_node_fs__["default"].existsSync(distFolder) && !isEmptyDir(distFolder)) {
1193
1624
  const option = checkCancel(await ie({
1194
1625
  message: `"${targetDir}" is not empty, please choose:`,
1195
1626
  options: [
@@ -1203,17 +1634,13 @@ async function create({ name, root, templates, skipFiles, getTemplateName, mapES
1203
1634
  }
1204
1635
  ]
1205
1636
  }));
1206
- if (option === 'no') {
1207
- cancelAndExit();
1208
- }
1637
+ if ('no' === option) cancelAndExit();
1209
1638
  }
1210
1639
  const templateName = await getTemplateName(argv);
1211
1640
  const tools = await getTools(argv);
1212
- const srcFolder = external_node_path_namespaceObject["default"].join(root, `template-${templateName}`);
1213
- const commonFolder = external_node_path_namespaceObject["default"].join(root, 'template-common');
1214
- if (!external_node_fs_namespaceObject["default"].existsSync(srcFolder)) {
1215
- throw new Error(`Invalid input: template "${templateName}" not found.`);
1216
- }
1641
+ const srcFolder = __WEBPACK_EXTERNAL_MODULE_node_path__["default"].join(root, `template-${templateName}`);
1642
+ const commonFolder = __WEBPACK_EXTERNAL_MODULE_node_path__["default"].join(root, 'template-common');
1643
+ if (!__WEBPACK_EXTERNAL_MODULE_node_fs__["default"].existsSync(srcFolder)) throw new Error(`Invalid input: template "${templateName}" not found.`);
1217
1644
  copyFolder({
1218
1645
  from: commonFolder,
1219
1646
  to: distFolder,
@@ -1227,15 +1654,13 @@ async function create({ name, root, templates, skipFiles, getTemplateName, mapES
1227
1654
  packageName,
1228
1655
  skipFiles
1229
1656
  });
1230
- const packageRoot = external_node_path_namespaceObject["default"].resolve(src_dirname, '..');
1657
+ const packageRoot = __WEBPACK_EXTERNAL_MODULE_node_path__["default"].resolve(src_dirname, '..');
1231
1658
  for (const tool of tools){
1232
- const toolFolder = external_node_path_namespaceObject["default"].join(packageRoot, `template-${tool}`);
1233
- if (tool === 'eslint') {
1659
+ const toolFolder = __WEBPACK_EXTERNAL_MODULE_node_path__["default"].join(packageRoot, `template-${tool}`);
1660
+ if ('eslint' === tool) {
1234
1661
  const eslintTemplateName = mapESLintTemplate(templateName);
1235
- if (!eslintTemplateName) {
1236
- continue;
1237
- }
1238
- const subFolder = external_node_path_namespaceObject["default"].join(toolFolder, eslintTemplateName);
1662
+ if (!eslintTemplateName) continue;
1663
+ const subFolder = __WEBPACK_EXTERNAL_MODULE_node_path__["default"].join(toolFolder, eslintTemplateName);
1239
1664
  copyFolder({
1240
1665
  from: subFolder,
1241
1666
  to: distFolder,
@@ -1243,19 +1668,17 @@ async function create({ name, root, templates, skipFiles, getTemplateName, mapES
1243
1668
  skipFiles,
1244
1669
  isMergePackageJson: true
1245
1670
  });
1246
- } else {
1247
- copyFolder({
1248
- from: toolFolder,
1249
- to: distFolder,
1250
- version,
1251
- skipFiles,
1252
- isMergePackageJson: true
1253
- });
1254
- }
1671
+ } else copyFolder({
1672
+ from: toolFolder,
1673
+ to: distFolder,
1674
+ version,
1675
+ skipFiles,
1676
+ isMergePackageJson: true
1677
+ });
1255
1678
  }
1256
1679
  const nextSteps = [
1257
1680
  `cd ${targetDir}`,
1258
- `${pkgManager} i`,
1681
+ `${pkgManager} install`,
1259
1682
  `${pkgManager} run dev`
1260
1683
  ];
1261
1684
  le(nextSteps.join('\n'), 'Next steps');
@@ -1264,17 +1687,13 @@ async function create({ name, root, templates, skipFiles, getTemplateName, mapES
1264
1687
  function sortObjectKeys(obj) {
1265
1688
  const sortedKeys = Object.keys(obj).sort();
1266
1689
  const sortedObj = {};
1267
- for (const key of sortedKeys){
1268
- sortedObj[key] = obj[key];
1269
- }
1690
+ for (const key of sortedKeys)sortedObj[key] = obj[key];
1270
1691
  return sortedObj;
1271
1692
  }
1272
1693
  function mergePackageJson(targetPackage, extraPackage) {
1273
- if (!external_node_fs_namespaceObject["default"].existsSync(targetPackage)) {
1274
- return;
1275
- }
1276
- const targetJson = JSON.parse(external_node_fs_namespaceObject["default"].readFileSync(targetPackage, 'utf-8'));
1277
- const extraJson = JSON.parse(external_node_fs_namespaceObject["default"].readFileSync(extraPackage, 'utf-8'));
1694
+ if (!__WEBPACK_EXTERNAL_MODULE_node_fs__["default"].existsSync(targetPackage)) return;
1695
+ const targetJson = JSON.parse(__WEBPACK_EXTERNAL_MODULE_node_fs__["default"].readFileSync(targetPackage, 'utf-8'));
1696
+ const extraJson = JSON.parse(__WEBPACK_EXTERNAL_MODULE_node_fs__["default"].readFileSync(extraPackage, 'utf-8'));
1278
1697
  const mergedJson = cjs_default()(targetJson, extraJson);
1279
1698
  mergedJson.name = targetJson.name || extraJson.name;
1280
1699
  for (const key of [
@@ -1282,12 +1701,9 @@ function mergePackageJson(targetPackage, extraPackage) {
1282
1701
  'dependencies',
1283
1702
  'devDependencies'
1284
1703
  ]){
1285
- if (!(key in mergedJson)) {
1286
- continue;
1287
- }
1288
- mergedJson[key] = sortObjectKeys(mergedJson[key]);
1704
+ if (key in mergedJson) mergedJson[key] = sortObjectKeys(mergedJson[key]);
1289
1705
  }
1290
- external_node_fs_namespaceObject["default"].writeFileSync(targetPackage, `${JSON.stringify(mergedJson, null, 2)}\n`);
1706
+ __WEBPACK_EXTERNAL_MODULE_node_fs__["default"].writeFileSync(targetPackage, `${JSON.stringify(mergedJson, null, 2)}\n`);
1291
1707
  }
1292
1708
  function copyFolder({ from, to, version, packageName, isMergePackageJson, skipFiles = [] }) {
1293
1709
  const renameFiles = {
@@ -1299,55 +1715,44 @@ function copyFolder({ from, to, version, packageName, isMergePackageJson, skipFi
1299
1715
  'dist',
1300
1716
  ...skipFiles
1301
1717
  ];
1302
- external_node_fs_namespaceObject["default"].mkdirSync(to, {
1718
+ __WEBPACK_EXTERNAL_MODULE_node_fs__["default"].mkdirSync(to, {
1303
1719
  recursive: true
1304
1720
  });
1305
- for (const file of external_node_fs_namespaceObject["default"].readdirSync(from)){
1306
- if (allSkipFiles.includes(file)) {
1307
- continue;
1308
- }
1309
- const srcFile = external_node_path_namespaceObject["default"].resolve(from, file);
1310
- const distFile = renameFiles[file] ? external_node_path_namespaceObject["default"].resolve(to, renameFiles[file]) : external_node_path_namespaceObject["default"].resolve(to, file);
1311
- const stat = external_node_fs_namespaceObject["default"].statSync(srcFile);
1312
- if (stat.isDirectory()) {
1313
- copyFolder({
1314
- from: srcFile,
1315
- to: distFile,
1316
- version,
1317
- skipFiles
1318
- });
1319
- } else if (file === 'package.json') {
1320
- const targetPackage = external_node_path_namespaceObject["default"].resolve(to, 'package.json');
1321
- if (isMergePackageJson && external_node_fs_namespaceObject["default"].existsSync(targetPackage)) {
1322
- mergePackageJson(targetPackage, srcFile);
1323
- } else {
1324
- external_node_fs_namespaceObject["default"].copyFileSync(srcFile, distFile);
1721
+ for (const file of __WEBPACK_EXTERNAL_MODULE_node_fs__["default"].readdirSync(from)){
1722
+ if (allSkipFiles.includes(file)) continue;
1723
+ const srcFile = __WEBPACK_EXTERNAL_MODULE_node_path__["default"].resolve(from, file);
1724
+ const distFile = renameFiles[file] ? __WEBPACK_EXTERNAL_MODULE_node_path__["default"].resolve(to, renameFiles[file]) : __WEBPACK_EXTERNAL_MODULE_node_path__["default"].resolve(to, file);
1725
+ const stat = __WEBPACK_EXTERNAL_MODULE_node_fs__["default"].statSync(srcFile);
1726
+ if (stat.isDirectory()) copyFolder({
1727
+ from: srcFile,
1728
+ to: distFile,
1729
+ version,
1730
+ skipFiles
1731
+ });
1732
+ else if ('package.json' === file) {
1733
+ const targetPackage = __WEBPACK_EXTERNAL_MODULE_node_path__["default"].resolve(to, 'package.json');
1734
+ if (isMergePackageJson && __WEBPACK_EXTERNAL_MODULE_node_fs__["default"].existsSync(targetPackage)) mergePackageJson(targetPackage, srcFile);
1735
+ else {
1736
+ __WEBPACK_EXTERNAL_MODULE_node_fs__["default"].copyFileSync(srcFile, distFile);
1325
1737
  updatePackageJson(distFile, version, packageName);
1326
1738
  }
1327
- } else {
1328
- external_node_fs_namespaceObject["default"].copyFileSync(srcFile, distFile);
1329
- }
1739
+ } else __WEBPACK_EXTERNAL_MODULE_node_fs__["default"].copyFileSync(srcFile, distFile);
1330
1740
  }
1331
1741
  }
1332
- const isStableVersion = (version)=>{
1333
- return [
1742
+ const isStableVersion = (version)=>[
1334
1743
  'alpha',
1335
1744
  'beta',
1336
1745
  'rc',
1337
1746
  'canary',
1338
1747
  'nightly'
1339
1748
  ].every((tag)=>!version.includes(tag));
1340
- };
1341
1749
  const updatePackageJson = (pkgJsonPath, version, name)=>{
1342
- let content = external_node_fs_namespaceObject["default"].readFileSync(pkgJsonPath, 'utf-8');
1750
+ let content = __WEBPACK_EXTERNAL_MODULE_node_fs__["default"].readFileSync(pkgJsonPath, 'utf-8');
1343
1751
  // Lock the version if it is not stable
1344
1752
  const targetVersion = isStableVersion(version) ? `^${version}` : version;
1345
1753
  content = content.replace(/workspace:\*/g, targetVersion);
1346
1754
  const pkg = JSON.parse(content);
1347
- if (name && name !== '.') {
1348
- pkg.name = name;
1349
- }
1350
- external_node_fs_namespaceObject["default"].writeFileSync(pkgJsonPath, JSON.stringify(pkg, null, 2));
1755
+ if (name && '.' !== name) pkg.name = name;
1756
+ __WEBPACK_EXTERNAL_MODULE_node_fs__["default"].writeFileSync(pkgJsonPath, JSON.stringify(pkg, null, 2));
1351
1757
  };
1352
-
1353
1758
  export { checkCancel, create, ae as multiselect, ie as select, te as text };