@stacksjs/types 0.58.73 → 0.59.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/dist/ai.d.ts +15 -0
  2. package/dist/analytics.d.ts +19 -0
  3. package/dist/api.d.ts +59 -0
  4. package/dist/app.d.ts +135 -0
  5. package/dist/auto-imports.d.ts +1 -0
  6. package/dist/binary.d.ts +11 -0
  7. package/dist/build.d.ts +2 -0
  8. package/dist/cache.d.ts +88 -0
  9. package/dist/cdn.d.ts +16 -0
  10. package/dist/chat.d.ts +4 -0
  11. package/dist/cli.d.ts +278 -0
  12. package/dist/cloud.d.ts +69 -0
  13. package/dist/components.d.ts +60 -0
  14. package/dist/configure.d.ts +12 -0
  15. package/dist/cron-jobs.d.ts +43 -0
  16. package/dist/database.d.ts +37 -0
  17. package/dist/dependencies.d.ts +62 -0
  18. package/dist/deploy.d.ts +12 -0
  19. package/dist/dns.d.ts +175 -0
  20. package/dist/docs.d.ts +22 -0
  21. package/dist/email.d.ts +14 -0
  22. package/dist/env.d.ts +1 -0
  23. package/dist/errors.d.ts +1 -0
  24. package/dist/events.d.ts +30 -0
  25. package/dist/exit-code.d.ts +10 -0
  26. package/dist/file-systems.d.ts +60 -0
  27. package/dist/git.d.ts +129 -0
  28. package/dist/hashing.d.ts +109 -0
  29. package/dist/helpers.d.ts +1 -0
  30. package/dist/i18n.d.ts +19 -0
  31. package/dist/index.d.ts +58 -0
  32. package/dist/index.js +8 -1785
  33. package/dist/inspect.d.ts +9 -0
  34. package/dist/library.d.ts +134 -0
  35. package/dist/logger.d.ts +49 -0
  36. package/dist/manifest.d.ts +9 -0
  37. package/dist/model.d.ts +70 -0
  38. package/dist/money.d.ts +2 -0
  39. package/dist/notifications.d.ts +117 -0
  40. package/dist/pages.d.ts +10 -0
  41. package/dist/payments.d.ts +60 -0
  42. package/dist/ports.d.ts +19 -0
  43. package/dist/promise.d.ts +1 -0
  44. package/dist/push.d.ts +35 -0
  45. package/dist/pwa.d.ts +7 -0
  46. package/dist/queue.d.ts +36 -0
  47. package/dist/reactivity.d.ts +1 -0
  48. package/dist/router.d.ts +78 -0
  49. package/dist/scheduler.d.ts +1 -0
  50. package/dist/search-engine.d.ts +118 -0
  51. package/dist/security.d.ts +18 -0
  52. package/dist/services.d.ts +33 -0
  53. package/dist/sms.d.ts +1 -0
  54. package/dist/ssg.d.ts +2 -0
  55. package/dist/stacks.d.ts +196 -0
  56. package/dist/storage.d.ts +12 -0
  57. package/dist/tables.d.ts +52 -0
  58. package/dist/team.d.ts +8 -0
  59. package/dist/ui.d.ts +165 -0
  60. package/dist/utils.d.ts +33 -0
  61. package/package.json +8 -9
  62. package/src/chat.ts +1 -2
  63. package/src/cli.ts +1 -1
  64. package/src/cloud.ts +2 -0
  65. package/src/index.ts +0 -1
  66. package/src/model.ts +19 -9
  67. package/src/router.ts +22 -2
  68. package/src/scheduler.ts +1 -1
  69. package/src/services.ts +0 -4
  70. package/src/sms.ts +3 -3
  71. package/src/request.ts +0 -3
package/dist/index.js CHANGED
@@ -16,1782 +16,8 @@ var __toESM = (mod, isNodeMode, target) => {
16
16
  return to;
17
17
  };
18
18
  var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
19
- var __export = (target, all) => {
20
- for (var name in all)
21
- __defProp(target, name, {
22
- get: all[name],
23
- enumerable: true,
24
- configurable: true,
25
- set: (newValue) => all[name] = () => newValue
26
- });
27
- };
28
- var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
29
19
  var __require = createRequire(import.meta.url);
30
20
 
31
- // ../../../../node_modules/consola/dist/core.mjs
32
- class Consola {
33
- constructor(options = {}) {
34
- const types = options.types || LogTypes;
35
- this.options = defu({
36
- ...options,
37
- defaults: { ...options.defaults },
38
- level: _normalizeLogLevel(options.level, types),
39
- reporters: [...options.reporters || []]
40
- }, {
41
- types: LogTypes,
42
- throttle: 1000,
43
- throttleMin: 5,
44
- formatOptions: {
45
- date: true,
46
- colors: false,
47
- compact: true
48
- }
49
- });
50
- for (const type in types) {
51
- const defaults = {
52
- type,
53
- ...this.options.defaults,
54
- ...types[type]
55
- };
56
- this[type] = this._wrapLogFn(defaults);
57
- this[type].raw = this._wrapLogFn(defaults, true);
58
- }
59
- if (this.options.mockFn) {
60
- this.mockTypes();
61
- }
62
- this._lastLog = {};
63
- }
64
- get level() {
65
- return this.options.level;
66
- }
67
- set level(level) {
68
- this.options.level = _normalizeLogLevel(level, this.options.types, this.options.level);
69
- }
70
- prompt(message, opts) {
71
- if (!this.options.prompt) {
72
- throw new Error("prompt is not supported!");
73
- }
74
- return this.options.prompt(message, opts);
75
- }
76
- create(options) {
77
- const instance = new Consola({
78
- ...this.options,
79
- ...options
80
- });
81
- if (this._mockFn) {
82
- instance.mockTypes(this._mockFn);
83
- }
84
- return instance;
85
- }
86
- withDefaults(defaults) {
87
- return this.create({
88
- ...this.options,
89
- defaults: {
90
- ...this.options.defaults,
91
- ...defaults
92
- }
93
- });
94
- }
95
- withTag(tag) {
96
- return this.withDefaults({
97
- tag: this.options.defaults.tag ? this.options.defaults.tag + ":" + tag : tag
98
- });
99
- }
100
- addReporter(reporter) {
101
- this.options.reporters.push(reporter);
102
- return this;
103
- }
104
- removeReporter(reporter) {
105
- if (reporter) {
106
- const i = this.options.reporters.indexOf(reporter);
107
- if (i >= 0) {
108
- return this.options.reporters.splice(i, 1);
109
- }
110
- } else {
111
- this.options.reporters.splice(0);
112
- }
113
- return this;
114
- }
115
- setReporters(reporters) {
116
- this.options.reporters = Array.isArray(reporters) ? reporters : [reporters];
117
- return this;
118
- }
119
- wrapAll() {
120
- this.wrapConsole();
121
- this.wrapStd();
122
- }
123
- restoreAll() {
124
- this.restoreConsole();
125
- this.restoreStd();
126
- }
127
- wrapConsole() {
128
- for (const type in this.options.types) {
129
- if (!console["__" + type]) {
130
- console["__" + type] = console[type];
131
- }
132
- console[type] = this[type].raw;
133
- }
134
- }
135
- restoreConsole() {
136
- for (const type in this.options.types) {
137
- if (console["__" + type]) {
138
- console[type] = console["__" + type];
139
- delete console["__" + type];
140
- }
141
- }
142
- }
143
- wrapStd() {
144
- this._wrapStream(this.options.stdout, "log");
145
- this._wrapStream(this.options.stderr, "log");
146
- }
147
- _wrapStream(stream, type) {
148
- if (!stream) {
149
- return;
150
- }
151
- if (!stream.__write) {
152
- stream.__write = stream.write;
153
- }
154
- stream.write = (data) => {
155
- this[type].raw(String(data).trim());
156
- };
157
- }
158
- restoreStd() {
159
- this._restoreStream(this.options.stdout);
160
- this._restoreStream(this.options.stderr);
161
- }
162
- _restoreStream(stream) {
163
- if (!stream) {
164
- return;
165
- }
166
- if (stream.__write) {
167
- stream.write = stream.__write;
168
- delete stream.__write;
169
- }
170
- }
171
- pauseLogs() {
172
- paused = true;
173
- }
174
- resumeLogs() {
175
- paused = false;
176
- const _queue = queue.splice(0);
177
- for (const item of _queue) {
178
- item[0]._logFn(item[1], item[2]);
179
- }
180
- }
181
- mockTypes(mockFn) {
182
- const _mockFn = mockFn || this.options.mockFn;
183
- this._mockFn = _mockFn;
184
- if (typeof _mockFn !== "function") {
185
- return;
186
- }
187
- for (const type in this.options.types) {
188
- this[type] = _mockFn(type, this.options.types[type]) || this[type];
189
- this[type].raw = this[type];
190
- }
191
- }
192
- _wrapLogFn(defaults, isRaw) {
193
- return (...args) => {
194
- if (paused) {
195
- queue.push([this, defaults, args, isRaw]);
196
- return;
197
- }
198
- return this._logFn(defaults, args, isRaw);
199
- };
200
- }
201
- _logFn(defaults, args, isRaw) {
202
- if ((defaults.level || 0) > this.level) {
203
- return false;
204
- }
205
- const logObj = {
206
- date: new Date,
207
- args: [],
208
- ...defaults,
209
- level: _normalizeLogLevel(defaults.level, this.options.types)
210
- };
211
- if (!isRaw && args.length === 1 && isLogObj(args[0])) {
212
- Object.assign(logObj, args[0]);
213
- } else {
214
- logObj.args = [...args];
215
- }
216
- if (logObj.message) {
217
- logObj.args.unshift(logObj.message);
218
- delete logObj.message;
219
- }
220
- if (logObj.additional) {
221
- if (!Array.isArray(logObj.additional)) {
222
- logObj.additional = logObj.additional.split("\n");
223
- }
224
- logObj.args.push("\n" + logObj.additional.join("\n"));
225
- delete logObj.additional;
226
- }
227
- logObj.type = typeof logObj.type === "string" ? logObj.type.toLowerCase() : "log";
228
- logObj.tag = typeof logObj.tag === "string" ? logObj.tag : "";
229
- const resolveLog = (newLog = false) => {
230
- const repeated = (this._lastLog.count || 0) - this.options.throttleMin;
231
- if (this._lastLog.object && repeated > 0) {
232
- const args2 = [...this._lastLog.object.args];
233
- if (repeated > 1) {
234
- args2.push(`(repeated ${repeated} times)`);
235
- }
236
- this._log({ ...this._lastLog.object, args: args2 });
237
- this._lastLog.count = 1;
238
- }
239
- if (newLog) {
240
- this._lastLog.object = logObj;
241
- this._log(logObj);
242
- }
243
- };
244
- clearTimeout(this._lastLog.timeout);
245
- const diffTime = this._lastLog.time && logObj.date ? logObj.date.getTime() - this._lastLog.time.getTime() : 0;
246
- this._lastLog.time = logObj.date;
247
- if (diffTime < this.options.throttle) {
248
- try {
249
- const serializedLog = JSON.stringify([
250
- logObj.type,
251
- logObj.tag,
252
- logObj.args
253
- ]);
254
- const isSameLog = this._lastLog.serialized === serializedLog;
255
- this._lastLog.serialized = serializedLog;
256
- if (isSameLog) {
257
- this._lastLog.count = (this._lastLog.count || 0) + 1;
258
- if (this._lastLog.count > this.options.throttleMin) {
259
- this._lastLog.timeout = setTimeout(resolveLog, this.options.throttle);
260
- return;
261
- }
262
- }
263
- } catch {
264
- }
265
- }
266
- resolveLog(true);
267
- }
268
- _log(logObj) {
269
- for (const reporter of this.options.reporters) {
270
- reporter.log(logObj, {
271
- options: this.options
272
- });
273
- }
274
- }
275
- }
276
- var isObject, _defu, createDefu, isPlainObject, isLogObj, _normalizeLogLevel, createConsola, LogLevels, LogTypes, defu, paused, queue;
277
- var init_core = __esm(() => {
278
- isObject = function(value) {
279
- return value !== null && typeof value === "object";
280
- };
281
- _defu = function(baseObject, defaults, namespace = ".", merger) {
282
- if (!isObject(defaults)) {
283
- return _defu(baseObject, {}, namespace, merger);
284
- }
285
- const object = Object.assign({}, defaults);
286
- for (const key in baseObject) {
287
- if (key === "__proto__" || key === "constructor") {
288
- continue;
289
- }
290
- const value = baseObject[key];
291
- if (value === null || value === undefined) {
292
- continue;
293
- }
294
- if (merger && merger(object, key, value, namespace)) {
295
- continue;
296
- }
297
- if (Array.isArray(value) && Array.isArray(object[key])) {
298
- object[key] = [...value, ...object[key]];
299
- } else if (isObject(value) && isObject(object[key])) {
300
- object[key] = _defu(value, object[key], (namespace ? `${namespace}.` : "") + key.toString(), merger);
301
- } else {
302
- object[key] = value;
303
- }
304
- }
305
- return object;
306
- };
307
- createDefu = function(merger) {
308
- return (...arguments_) => arguments_.reduce((p, c) => _defu(p, c, "", merger), {});
309
- };
310
- isPlainObject = function(obj) {
311
- return Object.prototype.toString.call(obj) === "[object Object]";
312
- };
313
- isLogObj = function(arg) {
314
- if (!isPlainObject(arg)) {
315
- return false;
316
- }
317
- if (!arg.message && !arg.args) {
318
- return false;
319
- }
320
- if (arg.stack) {
321
- return false;
322
- }
323
- return true;
324
- };
325
- _normalizeLogLevel = function(input, types = {}, defaultLevel = 3) {
326
- if (input === undefined) {
327
- return defaultLevel;
328
- }
329
- if (typeof input === "number") {
330
- return input;
331
- }
332
- if (types[input] && types[input].level !== undefined) {
333
- return types[input].level;
334
- }
335
- return defaultLevel;
336
- };
337
- createConsola = function(options = {}) {
338
- return new Consola(options);
339
- };
340
- LogLevels = {
341
- silent: Number.NEGATIVE_INFINITY,
342
- fatal: 0,
343
- error: 0,
344
- warn: 1,
345
- log: 2,
346
- info: 3,
347
- success: 3,
348
- fail: 3,
349
- ready: 3,
350
- start: 3,
351
- box: 3,
352
- debug: 4,
353
- trace: 5,
354
- verbose: Number.POSITIVE_INFINITY
355
- };
356
- LogTypes = {
357
- silent: {
358
- level: -1
359
- },
360
- fatal: {
361
- level: LogLevels.fatal
362
- },
363
- error: {
364
- level: LogLevels.error
365
- },
366
- warn: {
367
- level: LogLevels.warn
368
- },
369
- log: {
370
- level: LogLevels.log
371
- },
372
- info: {
373
- level: LogLevels.info
374
- },
375
- success: {
376
- level: LogLevels.success
377
- },
378
- fail: {
379
- level: LogLevels.fail
380
- },
381
- ready: {
382
- level: LogLevels.info
383
- },
384
- start: {
385
- level: LogLevels.info
386
- },
387
- box: {
388
- level: LogLevels.info
389
- },
390
- debug: {
391
- level: LogLevels.debug
392
- },
393
- trace: {
394
- level: LogLevels.trace
395
- },
396
- verbose: {
397
- level: LogLevels.verbose
398
- }
399
- };
400
- defu = createDefu();
401
- paused = false;
402
- queue = [];
403
- Consola.prototype.add = Consola.prototype.addReporter;
404
- Consola.prototype.remove = Consola.prototype.removeReporter;
405
- Consola.prototype.clear = Consola.prototype.removeReporter;
406
- Consola.prototype.withScope = Consola.prototype.withTag;
407
- Consola.prototype.mock = Consola.prototype.mockTypes;
408
- Consola.prototype.pause = Consola.prototype.pauseLogs;
409
- Consola.prototype.resume = Consola.prototype.resumeLogs;
410
- });
411
-
412
- // ../../../../node_modules/consola/dist/shared/consola.06ad8a64.mjs
413
- import {formatWithOptions} from "node:util";
414
- import {sep} from "node:path";
415
-
416
- class BasicReporter {
417
- formatStack(stack, opts) {
418
- return " " + parseStack(stack).join("\n ");
419
- }
420
- formatArgs(args, opts) {
421
- const _args = args.map((arg) => {
422
- if (arg && typeof arg.stack === "string") {
423
- return arg.message + "\n" + this.formatStack(arg.stack, opts);
424
- }
425
- return arg;
426
- });
427
- return formatWithOptions(opts, ..._args);
428
- }
429
- formatDate(date, opts) {
430
- return opts.date ? date.toLocaleTimeString() : "";
431
- }
432
- filterAndJoin(arr) {
433
- return arr.filter(Boolean).join(" ");
434
- }
435
- formatLogObj(logObj, opts) {
436
- const message = this.formatArgs(logObj.args, opts);
437
- if (logObj.type === "box") {
438
- return "\n" + [
439
- bracket(logObj.tag),
440
- logObj.title && logObj.title,
441
- ...message.split("\n")
442
- ].filter(Boolean).map((l) => " > " + l).join("\n") + "\n";
443
- }
444
- return this.filterAndJoin([
445
- bracket(logObj.type),
446
- bracket(logObj.tag),
447
- message
448
- ]);
449
- }
450
- log(logObj, ctx) {
451
- const line = this.formatLogObj(logObj, {
452
- columns: ctx.options.stdout.columns || 0,
453
- ...ctx.options.formatOptions
454
- });
455
- return writeStream(line + "\n", logObj.level < 2 ? ctx.options.stderr || process.stderr : ctx.options.stdout || process.stdout);
456
- }
457
- }
458
- var parseStack, writeStream, bracket;
459
- var init_consola_06ad8a64 = __esm(() => {
460
- parseStack = function(stack) {
461
- const cwd = process.cwd() + sep;
462
- const lines = stack.split("\n").splice(1).map((l) => l.trim().replace("file://", "").replace(cwd, ""));
463
- return lines;
464
- };
465
- writeStream = function(data, stream) {
466
- const write = stream.__write || stream.write;
467
- return write.call(stream, data);
468
- };
469
- bracket = (x) => x ? `[${x}]` : "";
470
- });
471
-
472
- // ../../../../node_modules/consola/dist/utils.mjs
473
- import * as tty from "node:tty";
474
- var replaceClose, clearBleed, filterEmpty, init, createColors, getColor, stripAnsi, box, env, argv, platform, isDisabled, isForced, isWindows, isDumbTerminal, isCompatibleTerminal, isCI, isColorSupported, colorDefs, colors, ansiRegex, boxStylePresets, defaultStyle;
475
- var init_utils = __esm(() => {
476
- replaceClose = function(index, string, close, replace, head = string.slice(0, Math.max(0, index)) + replace, tail = string.slice(Math.max(0, index + close.length)), next = tail.indexOf(close)) {
477
- return head + (next < 0 ? tail : replaceClose(next, tail, close, replace));
478
- };
479
- clearBleed = function(index, string, open, close, replace) {
480
- return index < 0 ? open + string + close : open + replaceClose(index, string, close, replace) + close;
481
- };
482
- filterEmpty = function(open, close, replace = open, at = open.length + 1) {
483
- return (string) => string || !(string === "" || string === undefined) ? clearBleed(("" + string).indexOf(close, at), string, open, close, replace) : "";
484
- };
485
- init = function(open, close, replace) {
486
- return filterEmpty(`\x1B[${open}m`, `\x1B[${close}m`, replace);
487
- };
488
- createColors = function(useColor = isColorSupported) {
489
- return useColor ? colorDefs : Object.fromEntries(Object.keys(colorDefs).map((key) => [key, String]));
490
- };
491
- getColor = function(color, fallback = "reset") {
492
- return colors[color] || colors[fallback];
493
- };
494
- stripAnsi = function(text) {
495
- return text.replace(new RegExp(ansiRegex, "g"), "");
496
- };
497
- box = function(text, _opts = {}) {
498
- const opts = {
499
- ..._opts,
500
- style: {
501
- ...defaultStyle,
502
- ..._opts.style
503
- }
504
- };
505
- const textLines = text.split("\n");
506
- const boxLines = [];
507
- const _color = getColor(opts.style.borderColor);
508
- const borderStyle = {
509
- ...typeof opts.style.borderStyle === "string" ? boxStylePresets[opts.style.borderStyle] || boxStylePresets.solid : opts.style.borderStyle
510
- };
511
- if (_color) {
512
- for (const key in borderStyle) {
513
- borderStyle[key] = _color(borderStyle[key]);
514
- }
515
- }
516
- const paddingOffset = opts.style.padding % 2 === 0 ? opts.style.padding : opts.style.padding + 1;
517
- const height = textLines.length + paddingOffset;
518
- const width = Math.max(...textLines.map((line) => line.length)) + paddingOffset;
519
- const widthOffset = width + paddingOffset;
520
- const leftSpace = opts.style.marginLeft > 0 ? " ".repeat(opts.style.marginLeft) : "";
521
- if (opts.style.marginTop > 0) {
522
- boxLines.push("".repeat(opts.style.marginTop));
523
- }
524
- if (opts.title) {
525
- const left = borderStyle.h.repeat(Math.floor((width - stripAnsi(opts.title).length) / 2));
526
- const right = borderStyle.h.repeat(width - stripAnsi(opts.title).length - stripAnsi(left).length + paddingOffset);
527
- boxLines.push(`${leftSpace}${borderStyle.tl}${left}${opts.title}${right}${borderStyle.tr}`);
528
- } else {
529
- boxLines.push(`${leftSpace}${borderStyle.tl}${borderStyle.h.repeat(widthOffset)}${borderStyle.tr}`);
530
- }
531
- const valignOffset = opts.style.valign === "center" ? Math.floor((height - textLines.length) / 2) : opts.style.valign === "top" ? height - textLines.length - paddingOffset : height - textLines.length;
532
- for (let i = 0;i < height; i++) {
533
- if (i < valignOffset || i >= valignOffset + textLines.length) {
534
- boxLines.push(`${leftSpace}${borderStyle.v}${" ".repeat(widthOffset)}${borderStyle.v}`);
535
- } else {
536
- const line = textLines[i - valignOffset];
537
- const left = " ".repeat(paddingOffset);
538
- const right = " ".repeat(width - stripAnsi(line).length);
539
- boxLines.push(`${leftSpace}${borderStyle.v}${left}${line}${right}${borderStyle.v}`);
540
- }
541
- }
542
- boxLines.push(`${leftSpace}${borderStyle.bl}${borderStyle.h.repeat(widthOffset)}${borderStyle.br}`);
543
- if (opts.style.marginBottom > 0) {
544
- boxLines.push("".repeat(opts.style.marginBottom));
545
- }
546
- return boxLines.join("\n");
547
- };
548
- ({
549
- env = {},
550
- argv = [],
551
- platform = ""
552
- } = typeof process === "undefined" ? {} : process);
553
- isDisabled = "NO_COLOR" in env || argv.includes("--no-color");
554
- isForced = "FORCE_COLOR" in env || argv.includes("--color");
555
- isWindows = platform === "win32";
556
- isDumbTerminal = env.TERM === "dumb";
557
- isCompatibleTerminal = tty && tty.isatty && tty.isatty(1) && env.TERM && !isDumbTerminal;
558
- isCI = "CI" in env && (("GITHUB_ACTIONS" in env) || ("GITLAB_CI" in env) || ("CIRCLECI" in env));
559
- isColorSupported = !isDisabled && (isForced || isWindows && !isDumbTerminal || isCompatibleTerminal || isCI);
560
- colorDefs = {
561
- reset: init(0, 0),
562
- bold: init(1, 22, "\x1B[22m\x1B[1m"),
563
- dim: init(2, 22, "\x1B[22m\x1B[2m"),
564
- italic: init(3, 23),
565
- underline: init(4, 24),
566
- inverse: init(7, 27),
567
- hidden: init(8, 28),
568
- strikethrough: init(9, 29),
569
- black: init(30, 39),
570
- red: init(31, 39),
571
- green: init(32, 39),
572
- yellow: init(33, 39),
573
- blue: init(34, 39),
574
- magenta: init(35, 39),
575
- cyan: init(36, 39),
576
- white: init(37, 39),
577
- gray: init(90, 39),
578
- bgBlack: init(40, 49),
579
- bgRed: init(41, 49),
580
- bgGreen: init(42, 49),
581
- bgYellow: init(43, 49),
582
- bgBlue: init(44, 49),
583
- bgMagenta: init(45, 49),
584
- bgCyan: init(46, 49),
585
- bgWhite: init(47, 49),
586
- blackBright: init(90, 39),
587
- redBright: init(91, 39),
588
- greenBright: init(92, 39),
589
- yellowBright: init(93, 39),
590
- blueBright: init(94, 39),
591
- magentaBright: init(95, 39),
592
- cyanBright: init(96, 39),
593
- whiteBright: init(97, 39),
594
- bgBlackBright: init(100, 49),
595
- bgRedBright: init(101, 49),
596
- bgGreenBright: init(102, 49),
597
- bgYellowBright: init(103, 49),
598
- bgBlueBright: init(104, 49),
599
- bgMagentaBright: init(105, 49),
600
- bgCyanBright: init(106, 49),
601
- bgWhiteBright: init(107, 49)
602
- };
603
- colors = createColors();
604
- ansiRegex = [
605
- "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
606
- "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"
607
- ].join("|");
608
- boxStylePresets = {
609
- solid: {
610
- tl: "\u250C",
611
- tr: "\u2510",
612
- bl: "\u2514",
613
- br: "\u2518",
614
- h: "\u2500",
615
- v: "\u2502"
616
- },
617
- double: {
618
- tl: "\u2554",
619
- tr: "\u2557",
620
- bl: "\u255A",
621
- br: "\u255D",
622
- h: "\u2550",
623
- v: "\u2551"
624
- },
625
- doubleSingle: {
626
- tl: "\u2553",
627
- tr: "\u2556",
628
- bl: "\u2559",
629
- br: "\u255C",
630
- h: "\u2500",
631
- v: "\u2551"
632
- },
633
- doubleSingleRounded: {
634
- tl: "\u256D",
635
- tr: "\u256E",
636
- bl: "\u2570",
637
- br: "\u256F",
638
- h: "\u2500",
639
- v: "\u2551"
640
- },
641
- singleThick: {
642
- tl: "\u250F",
643
- tr: "\u2513",
644
- bl: "\u2517",
645
- br: "\u251B",
646
- h: "\u2501",
647
- v: "\u2503"
648
- },
649
- singleDouble: {
650
- tl: "\u2552",
651
- tr: "\u2555",
652
- bl: "\u2558",
653
- br: "\u255B",
654
- h: "\u2550",
655
- v: "\u2502"
656
- },
657
- singleDoubleRounded: {
658
- tl: "\u256D",
659
- tr: "\u256E",
660
- bl: "\u2570",
661
- br: "\u256F",
662
- h: "\u2550",
663
- v: "\u2502"
664
- },
665
- rounded: {
666
- tl: "\u256D",
667
- tr: "\u256E",
668
- bl: "\u2570",
669
- br: "\u256F",
670
- h: "\u2500",
671
- v: "\u2502"
672
- }
673
- };
674
- defaultStyle = {
675
- borderColor: "white",
676
- borderStyle: "rounded",
677
- valign: "center",
678
- padding: 2,
679
- marginLeft: 1,
680
- marginTop: 1,
681
- marginBottom: 1
682
- };
683
- });
684
-
685
- // ../../../../node_modules/consola/dist/chunks/prompt.mjs
686
- var exports_prompt = {};
687
- __export(exports_prompt, {
688
- prompt: () => {
689
- {
690
- return prompt;
691
- }
692
- }
693
- });
694
- import {stdin, stdout} from "node:process";
695
- import f from "node:readline";
696
- import {WriteStream} from "node:tty";
697
- import require$$0 from "tty";
698
- async function prompt(message, opts = {}) {
699
- if (!opts.type || opts.type === "text") {
700
- return await text({
701
- message,
702
- defaultValue: opts.default,
703
- placeholder: opts.placeholder,
704
- initialValue: opts.initial
705
- });
706
- }
707
- if (opts.type === "confirm") {
708
- return await confirm({
709
- message,
710
- initialValue: opts.initial
711
- });
712
- }
713
- if (opts.type === "select") {
714
- return await select({
715
- message,
716
- options: opts.options.map((o) => typeof o === "string" ? { value: o, label: o } : o)
717
- });
718
- }
719
- if (opts.type === "multiselect") {
720
- return await multiselect({
721
- message,
722
- options: opts.options.map((o) => typeof o === "string" ? { value: o, label: o } : o),
723
- required: opts.required
724
- });
725
- }
726
- throw new Error(`Unknown prompt type: ${opts.type}`);
727
- }
728
-
729
- class h {
730
- constructor({ render: u, input: F = stdin, output: e = stdout, ...s }, C = true) {
731
- this._track = false, this._cursor = 0, this.state = "initial", this.error = "", this.subscribers = new Map, 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;
732
- }
733
- prompt() {
734
- const u = new WriteStream(0);
735
- return u._write = (F, e, s) => {
736
- this._track && (this.value = this.rl.line.replace(/\t/g, ""), this._cursor = this.rl.cursor, this.emit("value", this.value)), s();
737
- }, this.input.pipe(u), this.rl = f.createInterface({ input: this.input, output: u, tabSize: 2, prompt: "", escapeCodeTimeout: 50 }), f.emitKeypressEvents(this.input, this.rl), this.rl.prompt(), this.opts.initialValue !== undefined && this._track && this.rl.write(this.opts.initialValue), this.input.on("keypress", this.onKeypress), g(this.input, true), this.output.on("resize", this.render), this.render(), new Promise((F, e) => {
738
- this.once("submit", () => {
739
- this.output.write(src.cursor.show), this.output.off("resize", this.render), g(this.input, false), F(this.value);
740
- }), this.once("cancel", () => {
741
- this.output.write(src.cursor.show), this.output.off("resize", this.render), g(this.input, false), F(R);
742
- });
743
- });
744
- }
745
- on(u, F) {
746
- const e = this.subscribers.get(u) ?? [];
747
- e.push({ cb: F }), this.subscribers.set(u, e);
748
- }
749
- once(u, F) {
750
- const e = this.subscribers.get(u) ?? [];
751
- e.push({ cb: F, once: true }), this.subscribers.set(u, e);
752
- }
753
- emit(u, ...F) {
754
- const e = this.subscribers.get(u) ?? [], s = [];
755
- for (const C of e)
756
- C.cb(...F), C.once && s.push(() => e.splice(e.indexOf(C), 1));
757
- for (const C of s)
758
- C();
759
- }
760
- unsubscribe() {
761
- this.subscribers.clear();
762
- }
763
- onKeypress(u, F) {
764
- if (this.state === "error" && (this.state = "active"), F?.name && !this._track && V.has(F.name) && this.emit("cursor", V.get(F.name)), F?.name && tD.has(F.name) && this.emit("cursor", F.name), u && (u.toLowerCase() === "y" || u.toLowerCase() === "n") && this.emit("confirm", u.toLowerCase() === "y"), u && this.emit("key", u.toLowerCase()), F?.name === "return") {
765
- if (this.opts.validate) {
766
- const e = this.opts.validate(this.value);
767
- e && (this.error = e, this.state = "error", this.rl.write(this.value));
768
- }
769
- this.state !== "error" && (this.state = "submit");
770
- }
771
- u === "" && (this.state = "cancel"), (this.state === "submit" || this.state === "cancel") && this.emit("finalize"), this.render(), (this.state === "submit" || this.state === "cancel") && this.close();
772
- }
773
- close() {
774
- this.input.unpipe(), this.input.removeListener("keypress", this.onKeypress), this.output.write(`
775
- `), g(this.input, false), this.rl.close(), this.emit(`${this.state}`, this.value), this.unsubscribe();
776
- }
777
- restoreCursor() {
778
- const u = P(this._prevFrame, process.stdout.columns, { hard: true }).split(`
779
- `).length - 1;
780
- this.output.write(src.cursor.move(-999, u * -1));
781
- }
782
- render() {
783
- const u = P(this._render(this) ?? "", process.stdout.columns, { hard: true });
784
- if (u !== this._prevFrame) {
785
- if (this.state === "initial")
786
- this.output.write(src.cursor.hide);
787
- else {
788
- const F = FD(this._prevFrame, u);
789
- if (this.restoreCursor(), F && F?.length === 1) {
790
- const e = F[0];
791
- this.output.write(src.cursor.move(0, e)), this.output.write(src.erase.lines(1));
792
- const s = u.split(`
793
- `);
794
- this.output.write(s[e]), this._prevFrame = u, this.output.write(src.cursor.move(0, s.length - e - 1));
795
- return;
796
- } else if (F && F?.length > 1) {
797
- const e = F[0];
798
- this.output.write(src.cursor.move(0, e)), this.output.write(src.erase.down());
799
- const C = u.split(`
800
- `).slice(e);
801
- this.output.write(C.join(`
802
- `)), this._prevFrame = u;
803
- return;
804
- }
805
- this.output.write(src.erase.down());
806
- }
807
- this.output.write(u), this.state === "initial" && (this.state = "active"), this._prevFrame = u;
808
- }
809
- }
810
- }
811
-
812
- class sD extends h {
813
- get cursor() {
814
- return this.value ? 0 : 1;
815
- }
816
- get _value() {
817
- return this.cursor === 0;
818
- }
819
- constructor(u) {
820
- super(u, false), this.value = !!u.initialValue, this.on("value", () => {
821
- this.value = this._value;
822
- }), this.on("confirm", (F) => {
823
- this.output.write(src.cursor.move(0, -1)), this.value = F, this.state = "submit", this.close();
824
- }), this.on("cursor", () => {
825
- this.value = !this.value;
826
- });
827
- }
828
- }
829
-
830
- class iD extends h {
831
- constructor(u) {
832
- super(u, false), 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) => {
833
- F === "a" && this.toggleAll();
834
- }), this.on("cursor", (F) => {
835
- switch (F) {
836
- case "left":
837
- case "up":
838
- this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
839
- break;
840
- case "down":
841
- case "right":
842
- this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
843
- break;
844
- case "space":
845
- this.toggleValue();
846
- break;
847
- }
848
- });
849
- }
850
- get _value() {
851
- return this.options[this.cursor].value;
852
- }
853
- toggleAll() {
854
- const u = this.value.length === this.options.length;
855
- this.value = u ? [] : this.options.map((F) => F.value);
856
- }
857
- toggleValue() {
858
- const u = this.value.includes(this._value);
859
- this.value = u ? this.value.filter((F) => F !== this._value) : [...this.value, this._value];
860
- }
861
- }
862
-
863
- class ED extends h {
864
- constructor(u) {
865
- super(u, false), 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) => {
866
- switch (F) {
867
- case "left":
868
- case "up":
869
- this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
870
- break;
871
- case "down":
872
- case "right":
873
- this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
874
- break;
875
- }
876
- this.changeValue();
877
- });
878
- }
879
- get _value() {
880
- return this.options[this.cursor];
881
- }
882
- changeValue() {
883
- this.value = this._value.value;
884
- }
885
- }
886
-
887
- class oD extends h {
888
- constructor(u) {
889
- super(u), this.valueWithCursor = "", this.on("finalize", () => {
890
- this.value || (this.value = u.defaultValue), this.valueWithCursor = this.value;
891
- }), this.on("value", () => {
892
- if (this.cursor >= this.value.length)
893
- this.valueWithCursor = `${this.value}${l.inverse(l.hidden("_"))}`;
894
- else {
895
- const F = this.value.slice(0, this.cursor), e = this.value.slice(this.cursor);
896
- this.valueWithCursor = `${F}${l.inverse(e[0])}${e.slice(1)}`;
897
- }
898
- });
899
- }
900
- get cursor() {
901
- return this._cursor;
902
- }
903
- }
904
- var z, $, c, U, P, FD, g, ESC, CSI, beep, cursor, scroll, erase, src, picocolors, tty2, isColorSupported2, formatter, replaceClose2, createColors2, picocolorsExports, l, m, G, K, Y, v, L, M, T, r, Z, H, q, p, J, b, W, Q, I, w, N, j, X, _, DD, uD, R, V, tD, unicode, s, S_STEP_ACTIVE, S_STEP_CANCEL, S_STEP_ERROR, S_STEP_SUBMIT, S_BAR, S_BAR_END, S_RADIO_ACTIVE, S_RADIO_INACTIVE, S_CHECKBOX_ACTIVE, S_CHECKBOX_SELECTED, S_CHECKBOX_INACTIVE, symbol, text, confirm, select, multiselect;
905
- var init_prompt = __esm(() => {
906
- init_consola_36c0034f();
907
- init_utils();
908
- init_core();
909
- init_consola_06ad8a64();
910
- z = function({ onlyFirst: t = false } = {}) {
911
- 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("|");
912
- return new RegExp(u, t ? undefined : "g");
913
- };
914
- $ = function(t) {
915
- if (typeof t != "string")
916
- throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);
917
- return t.replace(z(), "");
918
- };
919
- c = function(t, u = {}) {
920
- if (typeof t != "string" || t.length === 0 || (u = { ambiguousIsNarrow: true, ...u }, t = $(t), t.length === 0))
921
- return 0;
922
- t = t.replace(Y(), " ");
923
- const F = u.ambiguousIsNarrow ? 1 : 2;
924
- let e = 0;
925
- for (const s of t) {
926
- const C = s.codePointAt(0);
927
- if (C <= 31 || C >= 127 && C <= 159 || C >= 768 && C <= 879)
928
- continue;
929
- switch (K.eastAsianWidth(s)) {
930
- case "F":
931
- case "W":
932
- e += 2;
933
- break;
934
- case "A":
935
- e += F;
936
- break;
937
- default:
938
- e += 1;
939
- }
940
- }
941
- return e;
942
- };
943
- U = function() {
944
- const t = new Map;
945
- for (const [u, F] of Object.entries(r)) {
946
- for (const [e, s] of Object.entries(F))
947
- r[e] = { open: `\x1B[${s[0]}m`, close: `\x1B[${s[1]}m` }, F[e] = r[e], t.set(s[0], s[1]);
948
- Object.defineProperty(r, u, { value: F, enumerable: false });
949
- }
950
- return Object.defineProperty(r, "codes", { value: t, enumerable: false }), r.color.close = "\x1B[39m", r.bgColor.close = "\x1B[49m", r.color.ansi = L(), r.color.ansi256 = M(), r.color.ansi16m = T(), r.bgColor.ansi = L(v), r.bgColor.ansi256 = M(v), r.bgColor.ansi16m = T(v), Object.defineProperties(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: false }, hexToRgb: { value: (u) => {
951
- const F = /[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));
952
- if (!F)
953
- return [0, 0, 0];
954
- let [e] = F;
955
- e.length === 3 && (e = [...e].map((C) => C + C).join(""));
956
- const s = Number.parseInt(e, 16);
957
- return [s >> 16 & 255, s >> 8 & 255, s & 255];
958
- }, enumerable: false }, hexToAnsi256: { value: (u) => r.rgbToAnsi256(...r.hexToRgb(u)), enumerable: false }, ansi256ToAnsi: { value: (u) => {
959
- if (u < 8)
960
- return 30 + u;
961
- if (u < 16)
962
- return 90 + (u - 8);
963
- let F, e, s;
964
- if (u >= 232)
965
- F = ((u - 232) * 10 + 8) / 255, e = F, s = F;
966
- else {
967
- u -= 16;
968
- const i = u % 36;
969
- F = Math.floor(u / 36) / 5, e = Math.floor(i / 6) / 5, s = i % 6 / 5;
970
- }
971
- const C = Math.max(F, e, s) * 2;
972
- if (C === 0)
973
- return 30;
974
- let D = 30 + (Math.round(s) << 2 | Math.round(e) << 1 | Math.round(F));
975
- return C === 2 && (D += 60), D;
976
- }, enumerable: false }, rgbToAnsi: { value: (u, F, e) => r.ansi256ToAnsi(r.rgbToAnsi256(u, F, e)), enumerable: false }, hexToAnsi: { value: (u) => r.ansi256ToAnsi(r.hexToAnsi256(u)), enumerable: false } }), r;
977
- };
978
- P = function(t, u, F) {
979
- return String(t).normalize().replace(/\r\n/g, `
980
- `).split(`
981
- `).map((e) => uD(e, u, F)).join(`
982
- `);
983
- };
984
- FD = function(t, u) {
985
- if (t === u)
986
- return;
987
- const F = t.split(`
988
- `), e = u.split(`
989
- `), s = [];
990
- for (let C = 0;C < Math.max(F.length, e.length); C++)
991
- F[C] !== e[C] && s.push(C);
992
- return s;
993
- };
994
- g = function(t, u) {
995
- t.isTTY && t.setRawMode(u);
996
- };
997
- ESC = "\x1B";
998
- CSI = `${ESC}[`;
999
- beep = "\x07";
1000
- cursor = {
1001
- to(x, y) {
1002
- if (!y)
1003
- return `${CSI}${x + 1}G`;
1004
- return `${CSI}${y + 1};${x + 1}H`;
1005
- },
1006
- move(x, y) {
1007
- let ret = "";
1008
- if (x < 0)
1009
- ret += `${CSI}${-x}D`;
1010
- else if (x > 0)
1011
- ret += `${CSI}${x}C`;
1012
- if (y < 0)
1013
- ret += `${CSI}${-y}A`;
1014
- else if (y > 0)
1015
- ret += `${CSI}${y}B`;
1016
- return ret;
1017
- },
1018
- up: (count = 1) => `${CSI}${count}A`,
1019
- down: (count = 1) => `${CSI}${count}B`,
1020
- forward: (count = 1) => `${CSI}${count}C`,
1021
- backward: (count = 1) => `${CSI}${count}D`,
1022
- nextLine: (count = 1) => `${CSI}E`.repeat(count),
1023
- prevLine: (count = 1) => `${CSI}F`.repeat(count),
1024
- left: `${CSI}G`,
1025
- hide: `${CSI}?25l`,
1026
- show: `${CSI}?25h`,
1027
- save: `${ESC}7`,
1028
- restore: `${ESC}8`
1029
- };
1030
- scroll = {
1031
- up: (count = 1) => `${CSI}S`.repeat(count),
1032
- down: (count = 1) => `${CSI}T`.repeat(count)
1033
- };
1034
- erase = {
1035
- screen: `${CSI}2J`,
1036
- up: (count = 1) => `${CSI}1J`.repeat(count),
1037
- down: (count = 1) => `${CSI}J`.repeat(count),
1038
- line: `${CSI}2K`,
1039
- lineEnd: `${CSI}K`,
1040
- lineStart: `${CSI}1K`,
1041
- lines(count) {
1042
- let clear = "";
1043
- for (let i = 0;i < count; i++)
1044
- clear += this.line + (i < count - 1 ? cursor.up() : "");
1045
- if (count)
1046
- clear += cursor.left;
1047
- return clear;
1048
- }
1049
- };
1050
- src = { cursor, scroll, erase, beep };
1051
- picocolors = { exports: {} };
1052
- tty2 = require$$0;
1053
- isColorSupported2 = !(("NO_COLOR" in process.env) || process.argv.includes("--no-color")) && (("FORCE_COLOR" in process.env) || process.argv.includes("--color") || process.platform === "win32" || tty2.isatty(1) && process.env.TERM !== "dumb" || ("CI" in process.env));
1054
- formatter = (open, close, replace = open) => (input) => {
1055
- let string = "" + input;
1056
- let index = string.indexOf(close, open.length);
1057
- return ~index ? open + replaceClose2(string, close, replace, index) + close : open + string + close;
1058
- };
1059
- replaceClose2 = (string, close, replace, index) => {
1060
- let start = string.substring(0, index) + replace;
1061
- let end = string.substring(index + close.length);
1062
- let nextIndex = end.indexOf(close);
1063
- return ~nextIndex ? start + replaceClose2(end, close, replace, nextIndex) : start + end;
1064
- };
1065
- createColors2 = (enabled = isColorSupported2) => ({
1066
- isColorSupported: enabled,
1067
- reset: enabled ? (s) => `\x1B[0m${s}\x1B[0m` : String,
1068
- bold: enabled ? formatter("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m") : String,
1069
- dim: enabled ? formatter("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m") : String,
1070
- italic: enabled ? formatter("\x1B[3m", "\x1B[23m") : String,
1071
- underline: enabled ? formatter("\x1B[4m", "\x1B[24m") : String,
1072
- inverse: enabled ? formatter("\x1B[7m", "\x1B[27m") : String,
1073
- hidden: enabled ? formatter("\x1B[8m", "\x1B[28m") : String,
1074
- strikethrough: enabled ? formatter("\x1B[9m", "\x1B[29m") : String,
1075
- black: enabled ? formatter("\x1B[30m", "\x1B[39m") : String,
1076
- red: enabled ? formatter("\x1B[31m", "\x1B[39m") : String,
1077
- green: enabled ? formatter("\x1B[32m", "\x1B[39m") : String,
1078
- yellow: enabled ? formatter("\x1B[33m", "\x1B[39m") : String,
1079
- blue: enabled ? formatter("\x1B[34m", "\x1B[39m") : String,
1080
- magenta: enabled ? formatter("\x1B[35m", "\x1B[39m") : String,
1081
- cyan: enabled ? formatter("\x1B[36m", "\x1B[39m") : String,
1082
- white: enabled ? formatter("\x1B[37m", "\x1B[39m") : String,
1083
- gray: enabled ? formatter("\x1B[90m", "\x1B[39m") : String,
1084
- bgBlack: enabled ? formatter("\x1B[40m", "\x1B[49m") : String,
1085
- bgRed: enabled ? formatter("\x1B[41m", "\x1B[49m") : String,
1086
- bgGreen: enabled ? formatter("\x1B[42m", "\x1B[49m") : String,
1087
- bgYellow: enabled ? formatter("\x1B[43m", "\x1B[49m") : String,
1088
- bgBlue: enabled ? formatter("\x1B[44m", "\x1B[49m") : String,
1089
- bgMagenta: enabled ? formatter("\x1B[45m", "\x1B[49m") : String,
1090
- bgCyan: enabled ? formatter("\x1B[46m", "\x1B[49m") : String,
1091
- bgWhite: enabled ? formatter("\x1B[47m", "\x1B[49m") : String
1092
- });
1093
- picocolors.exports = createColors2();
1094
- picocolors.exports.createColors = createColors2;
1095
- picocolorsExports = picocolors.exports;
1096
- l = getDefaultExportFromCjs(picocolorsExports);
1097
- m = {};
1098
- G = { get exports() {
1099
- return m;
1100
- }, set exports(t) {
1101
- m = t;
1102
- } };
1103
- (function(t) {
1104
- var u = {};
1105
- t.exports = u, u.eastAsianWidth = function(e) {
1106
- var s = e.charCodeAt(0), C = e.length == 2 ? e.charCodeAt(1) : 0, D = s;
1107
- 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";
1108
- }, u.characterLength = function(e) {
1109
- var s = this.eastAsianWidth(e);
1110
- return s == "F" || s == "W" || s == "A" ? 2 : 1;
1111
- };
1112
- function F(e) {
1113
- return e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
1114
- }
1115
- u.length = function(e) {
1116
- for (var s = F(e), C = 0, D = 0;D < s.length; D++)
1117
- C = C + this.characterLength(s[D]);
1118
- return C;
1119
- }, u.slice = function(e, s, C) {
1120
- textLen = u.length(e), s = s || 0, C = C || 1, s < 0 && (s = textLen + s), C < 0 && (C = textLen + C);
1121
- for (var D = "", i = 0, o = F(e), E = 0;E < o.length; E++) {
1122
- var a = o[E], n = u.length(a);
1123
- if (i >= s - (n == 2 ? 1 : 0))
1124
- if (i + n <= C)
1125
- D += a;
1126
- else
1127
- break;
1128
- i += n;
1129
- }
1130
- return D;
1131
- };
1132
- })(G);
1133
- K = m;
1134
- Y = function() {
1135
- 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;
1136
- };
1137
- v = 10;
1138
- L = (t = 0) => (u) => `\x1B[${u + t}m`;
1139
- M = (t = 0) => (u) => `\x1B[${38 + t};5;${u}m`;
1140
- T = (t = 0) => (u, F, e) => `\x1B[${38 + t};2;${u};${F};${e}m`;
1141
- 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] } };
1142
- Object.keys(r.modifier);
1143
- Z = Object.keys(r.color);
1144
- H = Object.keys(r.bgColor);
1145
- [...Z];
1146
- q = U();
1147
- p = new Set(["\x1B", "\x9B"]);
1148
- J = 39;
1149
- b = "\x07";
1150
- W = "[";
1151
- Q = "]";
1152
- I = "m";
1153
- w = `${Q}8;;`;
1154
- N = (t) => `${p.values().next().value}${W}${t}${I}`;
1155
- j = (t) => `${p.values().next().value}${w}${t}${b}`;
1156
- X = (t) => t.split(" ").map((u) => c(u));
1157
- _ = (t, u, F) => {
1158
- const e = [...u];
1159
- let s = false, C = false, D = c($(t[t.length - 1]));
1160
- for (const [i, o] of e.entries()) {
1161
- const E = c(o);
1162
- if (D + E <= F ? t[t.length - 1] += o : (t.push(o), D = 0), p.has(o) && (s = true, C = e.slice(i + 1).join("").startsWith(w)), s) {
1163
- C ? o === b && (s = false, C = false) : o === I && (s = false);
1164
- continue;
1165
- }
1166
- D += E, D === F && i < e.length - 1 && (t.push(""), D = 0);
1167
- }
1168
- !D && t[t.length - 1].length > 0 && t.length > 1 && (t[t.length - 2] += t.pop());
1169
- };
1170
- DD = (t) => {
1171
- const u = t.split(" ");
1172
- let F = u.length;
1173
- for (;F > 0 && !(c(u[F - 1]) > 0); )
1174
- F--;
1175
- return F === u.length ? t : u.slice(0, F).join(" ") + u.slice(F).join("");
1176
- };
1177
- uD = (t, u, F = {}) => {
1178
- if (F.trim !== false && t.trim() === "")
1179
- return "";
1180
- let e = "", s, C;
1181
- const D = X(t);
1182
- let i = [""];
1183
- for (const [E, a] of t.split(" ").entries()) {
1184
- F.trim !== false && (i[i.length - 1] = i[i.length - 1].trimStart());
1185
- let n = c(i[i.length - 1]);
1186
- if (E !== 0 && (n >= u && (F.wordWrap === false || F.trim === false) && (i.push(""), n = 0), (n > 0 || F.trim === false) && (i[i.length - 1] += " ", n++)), F.hard && D[E] > u) {
1187
- const B = u - n, A = 1 + Math.floor((D[E] - B - 1) / u);
1188
- Math.floor((D[E] - 1) / u) < A && i.push(""), _(i, a, u);
1189
- continue;
1190
- }
1191
- if (n + D[E] > u && n > 0 && D[E] > 0) {
1192
- if (F.wordWrap === false && n < u) {
1193
- _(i, a, u);
1194
- continue;
1195
- }
1196
- i.push("");
1197
- }
1198
- if (n + D[E] > u && F.wordWrap === false) {
1199
- _(i, a, u);
1200
- continue;
1201
- }
1202
- i[i.length - 1] += a;
1203
- }
1204
- F.trim !== false && (i = i.map((E) => DD(E)));
1205
- const o = [...i.join(`
1206
- `)];
1207
- for (const [E, a] of o.entries()) {
1208
- if (e += a, p.has(a)) {
1209
- const { groups: B } = new RegExp(`(?:\\${W}(?<code>\\d+)m|\\${w}(?<uri>.*)${b})`).exec(o.slice(E).join("")) || { groups: {} };
1210
- if (B.code !== undefined) {
1211
- const A = Number.parseFloat(B.code);
1212
- s = A === J ? undefined : A;
1213
- } else
1214
- B.uri !== undefined && (C = B.uri.length === 0 ? undefined : B.uri);
1215
- }
1216
- const n = q.codes.get(Number(s));
1217
- o[E + 1] === `
1218
- ` ? (C && (e += j("")), s && n && (e += N(n))) : a === `
1219
- ` && (s && n && (e += N(s)), C && (e += j(C)));
1220
- }
1221
- return e;
1222
- };
1223
- R = Symbol("clack:cancel");
1224
- V = new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"]]);
1225
- tD = new Set(["up", "down", "left", "right", "space", "enter"]);
1226
- unicode = isUnicodeSupported();
1227
- s = (c2, fallback) => unicode ? c2 : fallback;
1228
- S_STEP_ACTIVE = s("\u276F", ">");
1229
- S_STEP_CANCEL = s("\u25A0", "x");
1230
- S_STEP_ERROR = s("\u25B2", "x");
1231
- S_STEP_SUBMIT = s("\u2714", "\u221A");
1232
- S_BAR = "";
1233
- S_BAR_END = "";
1234
- S_RADIO_ACTIVE = s("\u25CF", ">");
1235
- S_RADIO_INACTIVE = s("\u25CB", " ");
1236
- S_CHECKBOX_ACTIVE = s("\u25FB", "[\u2022]");
1237
- S_CHECKBOX_SELECTED = s("\u25FC", "[+]");
1238
- S_CHECKBOX_INACTIVE = s("\u25FB", "[ ]");
1239
- symbol = (state) => {
1240
- switch (state) {
1241
- case "initial":
1242
- case "active": {
1243
- return colors.cyan(S_STEP_ACTIVE);
1244
- }
1245
- case "cancel": {
1246
- return colors.red(S_STEP_CANCEL);
1247
- }
1248
- case "error": {
1249
- return colors.yellow(S_STEP_ERROR);
1250
- }
1251
- case "submit": {
1252
- return colors.green(S_STEP_SUBMIT);
1253
- }
1254
- }
1255
- };
1256
- text = (opts) => {
1257
- return new oD({
1258
- validate: opts.validate,
1259
- placeholder: opts.placeholder,
1260
- defaultValue: opts.defaultValue,
1261
- initialValue: opts.initialValue,
1262
- render() {
1263
- const title = `${colors.gray(S_BAR)}
1264
- ${symbol(this.state)} ${opts.message}
1265
- `;
1266
- const placeholder = opts.placeholder ? colors.inverse(opts.placeholder[0]) + colors.dim(opts.placeholder.slice(1)) : colors.inverse(colors.hidden("_"));
1267
- const value = this.value ? this.valueWithCursor : placeholder;
1268
- switch (this.state) {
1269
- case "error": {
1270
- return `${title.trim()}
1271
- ${colors.yellow(S_BAR)} ${value}
1272
- ${colors.yellow(S_BAR_END)} ${colors.yellow(this.error)}
1273
- `;
1274
- }
1275
- case "submit": {
1276
- return `${title}${colors.gray(S_BAR)} ${colors.dim(this.value || opts.placeholder)}`;
1277
- }
1278
- case "cancel": {
1279
- return `${title}${colors.gray(S_BAR)} ${colors.strikethrough(colors.dim(this.value ?? ""))}${this.value?.trim() ? "\n" + colors.gray(S_BAR) : ""}`;
1280
- }
1281
- default: {
1282
- return `${title}${colors.cyan(S_BAR)} ${value}
1283
- ${colors.cyan(S_BAR_END)}
1284
- `;
1285
- }
1286
- }
1287
- }
1288
- }).prompt();
1289
- };
1290
- confirm = (opts) => {
1291
- const active = opts.active ?? "Yes";
1292
- const inactive = opts.inactive ?? "No";
1293
- return new sD({
1294
- active,
1295
- inactive,
1296
- initialValue: opts.initialValue ?? true,
1297
- render() {
1298
- const title = `${colors.gray(S_BAR)}
1299
- ${symbol(this.state)} ${opts.message}
1300
- `;
1301
- const value = this.value ? active : inactive;
1302
- switch (this.state) {
1303
- case "submit": {
1304
- return `${title}${colors.gray(S_BAR)} ${colors.dim(value)}`;
1305
- }
1306
- case "cancel": {
1307
- return `${title}${colors.gray(S_BAR)} ${colors.strikethrough(colors.dim(value))}
1308
- ${colors.gray(S_BAR)}`;
1309
- }
1310
- default: {
1311
- return `${title}${colors.cyan(S_BAR)} ${this.value ? `${colors.green(S_RADIO_ACTIVE)} ${active}` : `${colors.dim(S_RADIO_INACTIVE)} ${colors.dim(active)}`} ${colors.dim("/")} ${this.value ? `${colors.dim(S_RADIO_INACTIVE)} ${colors.dim(inactive)}` : `${colors.green(S_RADIO_ACTIVE)} ${inactive}`}
1312
- ${colors.cyan(S_BAR_END)}
1313
- `;
1314
- }
1315
- }
1316
- }
1317
- }).prompt();
1318
- };
1319
- select = (opts) => {
1320
- const opt = (option, state) => {
1321
- const label = option.label ?? String(option.value);
1322
- switch (state) {
1323
- case "active": {
1324
- return `${colors.green(S_RADIO_ACTIVE)} ${label} ${option.hint ? colors.dim(`(${option.hint})`) : ""}`;
1325
- }
1326
- case "selected": {
1327
- return `${colors.dim(label)}`;
1328
- }
1329
- case "cancelled": {
1330
- return `${colors.strikethrough(colors.dim(label))}`;
1331
- }
1332
- }
1333
- return `${colors.dim(S_RADIO_INACTIVE)} ${colors.dim(label)}`;
1334
- };
1335
- return new ED({
1336
- options: opts.options,
1337
- initialValue: opts.initialValue,
1338
- render() {
1339
- const title = `${colors.gray(S_BAR)}
1340
- ${symbol(this.state)} ${opts.message}
1341
- `;
1342
- switch (this.state) {
1343
- case "submit": {
1344
- return `${title}${colors.gray(S_BAR)} ${opt(this.options[this.cursor], "selected")}`;
1345
- }
1346
- case "cancel": {
1347
- return `${title}${colors.gray(S_BAR)} ${opt(this.options[this.cursor], "cancelled")}
1348
- ${colors.gray(S_BAR)}`;
1349
- }
1350
- default: {
1351
- return `${title}${colors.cyan(S_BAR)} ${this.options.map((option, i) => opt(option, i === this.cursor ? "active" : "inactive")).join(`
1352
- ${colors.cyan(S_BAR)} `)}
1353
- ${colors.cyan(S_BAR_END)}
1354
- `;
1355
- }
1356
- }
1357
- }
1358
- }).prompt();
1359
- };
1360
- multiselect = (opts) => {
1361
- const opt = (option, state) => {
1362
- const label = option.label ?? String(option.value);
1363
- switch (state) {
1364
- case "active": {
1365
- return `${colors.cyan(S_CHECKBOX_ACTIVE)} ${label} ${option.hint ? colors.dim(`(${option.hint})`) : ""}`;
1366
- }
1367
- case "selected": {
1368
- return `${colors.green(S_CHECKBOX_SELECTED)} ${colors.dim(label)}`;
1369
- }
1370
- case "cancelled": {
1371
- return `${colors.strikethrough(colors.dim(label))}`;
1372
- }
1373
- case "active-selected": {
1374
- return `${colors.green(S_CHECKBOX_SELECTED)} ${label} ${option.hint ? colors.dim(`(${option.hint})`) : ""}`;
1375
- }
1376
- case "submitted": {
1377
- return `${colors.dim(label)}`;
1378
- }
1379
- }
1380
- return `${colors.dim(S_CHECKBOX_INACTIVE)} ${colors.dim(label)}`;
1381
- };
1382
- return new iD({
1383
- options: opts.options,
1384
- initialValues: opts.initialValues,
1385
- required: opts.required ?? true,
1386
- cursorAt: opts.cursorAt,
1387
- validate(selected) {
1388
- if (this.required && selected.length === 0) {
1389
- return `Please select at least one option.
1390
- ${colors.reset(colors.dim(`Press ${colors.gray(colors.bgWhite(colors.inverse(" space ")))} to select, ${colors.gray(colors.bgWhite(colors.inverse(" enter ")))} to submit`))}`;
1391
- }
1392
- },
1393
- render() {
1394
- const title = `${colors.gray(S_BAR)}
1395
- ${symbol(this.state)} ${opts.message}
1396
- `;
1397
- switch (this.state) {
1398
- case "submit": {
1399
- return `${title}${colors.gray(S_BAR)} ${this.options.filter(({ value }) => this.value.includes(value)).map((option) => opt(option, "submitted")).join(colors.dim(", ")) || colors.dim("none")}`;
1400
- }
1401
- case "cancel": {
1402
- const label = this.options.filter(({ value }) => this.value.includes(value)).map((option) => opt(option, "cancelled")).join(colors.dim(", "));
1403
- return `${title}${colors.gray(S_BAR)} ${label.trim() ? `${label}
1404
- ${colors.gray(S_BAR)}` : ""}`;
1405
- }
1406
- case "error": {
1407
- const footer = this.error.split("\n").map((ln, i) => i === 0 ? `${colors.yellow(S_BAR_END)} ${colors.yellow(ln)}` : ` ${ln}`).join("\n");
1408
- return title + colors.yellow(S_BAR) + " " + this.options.map((option, i) => {
1409
- const selected = this.value.includes(option.value);
1410
- const active = i === this.cursor;
1411
- if (active && selected) {
1412
- return opt(option, "active-selected");
1413
- }
1414
- if (selected) {
1415
- return opt(option, "selected");
1416
- }
1417
- return opt(option, active ? "active" : "inactive");
1418
- }).join(`
1419
- ${colors.yellow(S_BAR)} `) + "\n" + footer + "\n";
1420
- }
1421
- default: {
1422
- return `${title}${colors.cyan(S_BAR)} ${this.options.map((option, i) => {
1423
- const selected = this.value.includes(option.value);
1424
- const active = i === this.cursor;
1425
- if (active && selected) {
1426
- return opt(option, "active-selected");
1427
- }
1428
- if (selected) {
1429
- return opt(option, "selected");
1430
- }
1431
- return opt(option, active ? "active" : "inactive");
1432
- }).join(`
1433
- ${colors.cyan(S_BAR)} `)}
1434
- ${colors.cyan(S_BAR_END)}
1435
- `;
1436
- }
1437
- }
1438
- }
1439
- }).prompt();
1440
- };
1441
- });
1442
-
1443
- // ../../../../node_modules/consola/dist/shared/consola.36c0034f.mjs
1444
- import process$1 from "node:process";
1445
-
1446
- class FancyReporter extends BasicReporter {
1447
- formatStack(stack) {
1448
- return "\n" + parseStack(stack).map((line) => " " + line.replace(/^at +/, (m2) => colors.gray(m2)).replace(/\((.+)\)/, (_2, m2) => `(${colors.cyan(m2)})`)).join("\n");
1449
- }
1450
- formatType(logObj, isBadge, opts) {
1451
- const typeColor = TYPE_COLOR_MAP[logObj.type] || LEVEL_COLOR_MAP[logObj.level] || "gray";
1452
- if (isBadge) {
1453
- return getBgColor(typeColor)(colors.black(` ${logObj.type.toUpperCase()} `));
1454
- }
1455
- const _type = typeof TYPE_ICONS[logObj.type] === "string" ? TYPE_ICONS[logObj.type] : logObj.icon || logObj.type;
1456
- return _type ? getColor2(typeColor)(_type) : "";
1457
- }
1458
- formatLogObj(logObj, opts) {
1459
- const [message, ...additional] = this.formatArgs(logObj.args, opts).split("\n");
1460
- if (logObj.type === "box") {
1461
- return box(characterFormat(message + (additional.length > 0 ? "\n" + additional.join("\n") : "")), {
1462
- title: logObj.title ? characterFormat(logObj.title) : undefined,
1463
- style: logObj.style
1464
- });
1465
- }
1466
- const date = this.formatDate(logObj.date, opts);
1467
- const coloredDate = date && colors.gray(date);
1468
- const isBadge = logObj.badge ?? logObj.level < 2;
1469
- const type = this.formatType(logObj, isBadge, opts);
1470
- const tag = logObj.tag ? colors.gray(logObj.tag) : "";
1471
- let line;
1472
- const left = this.filterAndJoin([type, characterFormat(message)]);
1473
- const right = this.filterAndJoin(opts.columns ? [tag, coloredDate] : [tag]);
1474
- const space = (opts.columns || 0) - stringWidth(left) - stringWidth(right) - 2;
1475
- line = space > 0 && (opts.columns || 0) >= 80 ? left + " ".repeat(space) + right : (right ? `${colors.gray(`[${right}]`)} ` : "") + left;
1476
- line += characterFormat(additional.length > 0 ? "\n" + additional.join("\n") : "");
1477
- if (logObj.type === "trace") {
1478
- const _err = new Error("Trace: " + logObj.message);
1479
- line += this.formatStack(_err.stack || "");
1480
- }
1481
- return isBadge ? "\n" + line + "\n" : line;
1482
- }
1483
- }
1484
- var detectProvider, toBoolean, ansiRegex2, stripAnsi2, getDefaultExportFromCjs, stringWidth$1, isUnicodeSupported, stringWidth, characterFormat, getColor2, getBgColor, createConsola2, _getDefaultLogLevel, providers, processShim, envShim, providerInfo, nodeENV, isCI2, hasTTY, isDebug, isTest, regex, eastasianwidth, eastasianwidthExports, eastAsianWidth, emojiRegex, TYPE_COLOR_MAP, LEVEL_COLOR_MAP, unicode2, s2, TYPE_ICONS, consola;
1485
- var init_consola_36c0034f = __esm(() => {
1486
- init_core();
1487
- init_consola_06ad8a64();
1488
- init_utils();
1489
- detectProvider = function(env2) {
1490
- for (const provider of providers) {
1491
- const envName = provider[1] || provider[0];
1492
- if (env2[envName]) {
1493
- return {
1494
- name: provider[0].toLowerCase(),
1495
- ...provider[2]
1496
- };
1497
- }
1498
- }
1499
- if (env2.SHELL && env2.SHELL === "/bin/jsh") {
1500
- return {
1501
- name: "stackblitz",
1502
- ci: false
1503
- };
1504
- }
1505
- return {
1506
- name: "",
1507
- ci: false
1508
- };
1509
- };
1510
- toBoolean = function(val) {
1511
- return val ? val !== "false" : false;
1512
- };
1513
- ansiRegex2 = function({ onlyFirst = false } = {}) {
1514
- const pattern = [
1515
- "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
1516
- "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
1517
- ].join("|");
1518
- return new RegExp(pattern, onlyFirst ? undefined : "g");
1519
- };
1520
- stripAnsi2 = function(string) {
1521
- if (typeof string !== "string") {
1522
- throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
1523
- }
1524
- return string.replace(regex, "");
1525
- };
1526
- getDefaultExportFromCjs = function(x) {
1527
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
1528
- };
1529
- stringWidth$1 = function(string, options) {
1530
- if (typeof string !== "string" || string.length === 0) {
1531
- return 0;
1532
- }
1533
- options = {
1534
- ambiguousIsNarrow: true,
1535
- countAnsiEscapeCodes: false,
1536
- ...options
1537
- };
1538
- if (!options.countAnsiEscapeCodes) {
1539
- string = stripAnsi2(string);
1540
- }
1541
- if (string.length === 0) {
1542
- return 0;
1543
- }
1544
- const ambiguousCharacterWidth = options.ambiguousIsNarrow ? 1 : 2;
1545
- let width = 0;
1546
- for (const { segment: character } of new Intl.Segmenter().segment(string)) {
1547
- const codePoint = character.codePointAt(0);
1548
- if (codePoint <= 31 || codePoint >= 127 && codePoint <= 159) {
1549
- continue;
1550
- }
1551
- if (codePoint >= 768 && codePoint <= 879) {
1552
- continue;
1553
- }
1554
- if (emojiRegex().test(character)) {
1555
- width += 2;
1556
- continue;
1557
- }
1558
- const code = eastAsianWidth.eastAsianWidth(character);
1559
- switch (code) {
1560
- case "F":
1561
- case "W": {
1562
- width += 2;
1563
- break;
1564
- }
1565
- case "A": {
1566
- width += ambiguousCharacterWidth;
1567
- break;
1568
- }
1569
- default: {
1570
- width += 1;
1571
- }
1572
- }
1573
- }
1574
- return width;
1575
- };
1576
- isUnicodeSupported = function() {
1577
- if (process$1.platform !== "win32") {
1578
- return process$1.env.TERM !== "linux";
1579
- }
1580
- return Boolean(process$1.env.CI) || Boolean(process$1.env.WT_SESSION) || Boolean(process$1.env.TERMINUS_SUBLIME) || process$1.env.ConEmuTask === "{cmd::Cmder}" || process$1.env.TERM_PROGRAM === "Terminus-Sublime" || process$1.env.TERM_PROGRAM === "vscode" || process$1.env.TERM === "xterm-256color" || process$1.env.TERM === "alacritty" || process$1.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
1581
- };
1582
- stringWidth = function(str) {
1583
- if (!Intl.Segmenter) {
1584
- return stripAnsi(str).length;
1585
- }
1586
- return stringWidth$1(str);
1587
- };
1588
- characterFormat = function(str) {
1589
- return str.replace(/`([^`]+)`/gm, (_2, m2) => colors.cyan(m2)).replace(/\s+_([^_]+)_\s+/gm, (_2, m2) => ` ${colors.underline(m2)} `);
1590
- };
1591
- getColor2 = function(color = "white") {
1592
- return colors[color] || colors.white;
1593
- };
1594
- getBgColor = function(color = "bgWhite") {
1595
- return colors[`bg${color[0].toUpperCase()}${color.slice(1)}`] || colors.bgWhite;
1596
- };
1597
- createConsola2 = function(options = {}) {
1598
- let level = _getDefaultLogLevel();
1599
- if (process.env.CONSOLA_LEVEL) {
1600
- level = Number.parseInt(process.env.CONSOLA_LEVEL) ?? level;
1601
- }
1602
- const consola2 = createConsola({
1603
- level,
1604
- defaults: { level },
1605
- stdout: process.stdout,
1606
- stderr: process.stderr,
1607
- prompt: (...args) => Promise.resolve().then(() => (init_prompt(), exports_prompt)).then((m2) => m2.prompt(...args)),
1608
- reporters: options.reporters || [
1609
- options.fancy ?? !(isCI2 || isTest) ? new FancyReporter : new BasicReporter
1610
- ],
1611
- ...options
1612
- });
1613
- return consola2;
1614
- };
1615
- _getDefaultLogLevel = function() {
1616
- if (isDebug) {
1617
- return LogLevels.debug;
1618
- }
1619
- if (isTest) {
1620
- return LogLevels.warn;
1621
- }
1622
- return LogLevels.info;
1623
- };
1624
- providers = [
1625
- ["APPVEYOR"],
1626
- ["AZURE_PIPELINES", "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],
1627
- ["AZURE_STATIC", "INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],
1628
- ["APPCIRCLE", "AC_APPCIRCLE"],
1629
- ["BAMBOO", "bamboo_planKey"],
1630
- ["BITBUCKET", "BITBUCKET_COMMIT"],
1631
- ["BITRISE", "BITRISE_IO"],
1632
- ["BUDDY", "BUDDY_WORKSPACE_ID"],
1633
- ["BUILDKITE"],
1634
- ["CIRCLE", "CIRCLECI"],
1635
- ["CIRRUS", "CIRRUS_CI"],
1636
- ["CLOUDFLARE_PAGES", "CF_PAGES", { ci: true }],
1637
- ["CODEBUILD", "CODEBUILD_BUILD_ARN"],
1638
- ["CODEFRESH", "CF_BUILD_ID"],
1639
- ["DRONE"],
1640
- ["DRONE", "DRONE_BUILD_EVENT"],
1641
- ["DSARI"],
1642
- ["GITHUB_ACTIONS"],
1643
- ["GITLAB", "GITLAB_CI"],
1644
- ["GITLAB", "CI_MERGE_REQUEST_ID"],
1645
- ["GOCD", "GO_PIPELINE_LABEL"],
1646
- ["LAYERCI"],
1647
- ["HUDSON", "HUDSON_URL"],
1648
- ["JENKINS", "JENKINS_URL"],
1649
- ["MAGNUM"],
1650
- ["NETLIFY"],
1651
- ["NETLIFY", "NETLIFY_LOCAL", { ci: false }],
1652
- ["NEVERCODE"],
1653
- ["RENDER"],
1654
- ["SAIL", "SAILCI"],
1655
- ["SEMAPHORE"],
1656
- ["SCREWDRIVER"],
1657
- ["SHIPPABLE"],
1658
- ["SOLANO", "TDDIUM"],
1659
- ["STRIDER"],
1660
- ["TEAMCITY", "TEAMCITY_VERSION"],
1661
- ["TRAVIS"],
1662
- ["VERCEL", "NOW_BUILDER"],
1663
- ["APPCENTER", "APPCENTER_BUILD_ID"],
1664
- ["CODESANDBOX", "CODESANDBOX_SSE", { ci: false }],
1665
- ["STACKBLITZ"],
1666
- ["STORMKIT"],
1667
- ["CLEAVR"]
1668
- ];
1669
- processShim = typeof process !== "undefined" ? process : {};
1670
- envShim = processShim.env || {};
1671
- providerInfo = detectProvider(envShim);
1672
- nodeENV = typeof process !== "undefined" && process.env && "development" || "";
1673
- processShim.platform;
1674
- providerInfo.name;
1675
- isCI2 = toBoolean(envShim.CI) || providerInfo.ci !== false;
1676
- hasTTY = toBoolean(processShim.stdout && processShim.stdout.isTTY);
1677
- isDebug = toBoolean(envShim.DEBUG);
1678
- isTest = nodeENV === "test" || toBoolean(envShim.TEST);
1679
- toBoolean(envShim.MINIMAL);
1680
- regex = ansiRegex2();
1681
- eastasianwidth = { exports: {} };
1682
- (function(module) {
1683
- var eaw = {};
1684
- {
1685
- module.exports = eaw;
1686
- }
1687
- eaw.eastAsianWidth = function(character) {
1688
- var x = character.charCodeAt(0);
1689
- var y = character.length == 2 ? character.charCodeAt(1) : 0;
1690
- var codePoint = x;
1691
- if (55296 <= x && x <= 56319 && (56320 <= y && y <= 57343)) {
1692
- x &= 1023;
1693
- y &= 1023;
1694
- codePoint = x << 10 | y;
1695
- codePoint += 65536;
1696
- }
1697
- if (codePoint == 12288 || 65281 <= codePoint && codePoint <= 65376 || 65504 <= codePoint && codePoint <= 65510) {
1698
- return "F";
1699
- }
1700
- if (codePoint == 8361 || 65377 <= codePoint && codePoint <= 65470 || 65474 <= codePoint && codePoint <= 65479 || 65482 <= codePoint && codePoint <= 65487 || 65490 <= codePoint && codePoint <= 65495 || 65498 <= codePoint && codePoint <= 65500 || 65512 <= codePoint && codePoint <= 65518) {
1701
- return "H";
1702
- }
1703
- if (4352 <= codePoint && codePoint <= 4447 || 4515 <= codePoint && codePoint <= 4519 || 4602 <= codePoint && codePoint <= 4607 || 9001 <= codePoint && codePoint <= 9002 || 11904 <= codePoint && codePoint <= 11929 || 11931 <= codePoint && codePoint <= 12019 || 12032 <= codePoint && codePoint <= 12245 || 12272 <= codePoint && codePoint <= 12283 || 12289 <= codePoint && codePoint <= 12350 || 12353 <= codePoint && codePoint <= 12438 || 12441 <= codePoint && codePoint <= 12543 || 12549 <= codePoint && codePoint <= 12589 || 12593 <= codePoint && codePoint <= 12686 || 12688 <= codePoint && codePoint <= 12730 || 12736 <= codePoint && codePoint <= 12771 || 12784 <= codePoint && codePoint <= 12830 || 12832 <= codePoint && codePoint <= 12871 || 12880 <= codePoint && codePoint <= 13054 || 13056 <= codePoint && codePoint <= 19903 || 19968 <= codePoint && codePoint <= 42124 || 42128 <= codePoint && codePoint <= 42182 || 43360 <= codePoint && codePoint <= 43388 || 44032 <= codePoint && codePoint <= 55203 || 55216 <= codePoint && codePoint <= 55238 || 55243 <= codePoint && codePoint <= 55291 || 63744 <= codePoint && codePoint <= 64255 || 65040 <= codePoint && codePoint <= 65049 || 65072 <= codePoint && codePoint <= 65106 || 65108 <= codePoint && codePoint <= 65126 || 65128 <= codePoint && codePoint <= 65131 || 110592 <= codePoint && codePoint <= 110593 || 127488 <= codePoint && codePoint <= 127490 || 127504 <= codePoint && codePoint <= 127546 || 127552 <= codePoint && codePoint <= 127560 || 127568 <= codePoint && codePoint <= 127569 || 131072 <= codePoint && codePoint <= 194367 || 177984 <= codePoint && codePoint <= 196605 || 196608 <= codePoint && codePoint <= 262141) {
1704
- return "W";
1705
- }
1706
- if (32 <= codePoint && codePoint <= 126 || 162 <= codePoint && codePoint <= 163 || 165 <= codePoint && codePoint <= 166 || codePoint == 172 || codePoint == 175 || 10214 <= codePoint && codePoint <= 10221 || 10629 <= codePoint && codePoint <= 10630) {
1707
- return "Na";
1708
- }
1709
- if (codePoint == 161 || codePoint == 164 || 167 <= codePoint && codePoint <= 168 || codePoint == 170 || 173 <= codePoint && codePoint <= 174 || 176 <= codePoint && codePoint <= 180 || 182 <= codePoint && codePoint <= 186 || 188 <= codePoint && codePoint <= 191 || codePoint == 198 || codePoint == 208 || 215 <= codePoint && codePoint <= 216 || 222 <= codePoint && codePoint <= 225 || codePoint == 230 || 232 <= codePoint && codePoint <= 234 || 236 <= codePoint && codePoint <= 237 || codePoint == 240 || 242 <= codePoint && codePoint <= 243 || 247 <= codePoint && codePoint <= 250 || codePoint == 252 || codePoint == 254 || codePoint == 257 || codePoint == 273 || codePoint == 275 || codePoint == 283 || 294 <= codePoint && codePoint <= 295 || codePoint == 299 || 305 <= codePoint && codePoint <= 307 || codePoint == 312 || 319 <= codePoint && codePoint <= 322 || codePoint == 324 || 328 <= codePoint && codePoint <= 331 || codePoint == 333 || 338 <= codePoint && codePoint <= 339 || 358 <= codePoint && codePoint <= 359 || codePoint == 363 || codePoint == 462 || codePoint == 464 || codePoint == 466 || codePoint == 468 || codePoint == 470 || codePoint == 472 || codePoint == 474 || codePoint == 476 || codePoint == 593 || codePoint == 609 || codePoint == 708 || codePoint == 711 || 713 <= codePoint && codePoint <= 715 || codePoint == 717 || codePoint == 720 || 728 <= codePoint && codePoint <= 731 || codePoint == 733 || codePoint == 735 || 768 <= codePoint && codePoint <= 879 || 913 <= codePoint && codePoint <= 929 || 931 <= codePoint && codePoint <= 937 || 945 <= codePoint && codePoint <= 961 || 963 <= codePoint && codePoint <= 969 || codePoint == 1025 || 1040 <= codePoint && codePoint <= 1103 || codePoint == 1105 || codePoint == 8208 || 8211 <= codePoint && codePoint <= 8214 || 8216 <= codePoint && codePoint <= 8217 || 8220 <= codePoint && codePoint <= 8221 || 8224 <= codePoint && codePoint <= 8226 || 8228 <= codePoint && codePoint <= 8231 || codePoint == 8240 || 8242 <= codePoint && codePoint <= 8243 || codePoint == 8245 || codePoint == 8251 || codePoint == 8254 || codePoint == 8308 || codePoint == 8319 || 8321 <= codePoint && codePoint <= 8324 || codePoint == 8364 || codePoint == 8451 || codePoint == 8453 || codePoint == 8457 || codePoint == 8467 || codePoint == 8470 || 8481 <= codePoint && codePoint <= 8482 || codePoint == 8486 || codePoint == 8491 || 8531 <= codePoint && codePoint <= 8532 || 8539 <= codePoint && codePoint <= 8542 || 8544 <= codePoint && codePoint <= 8555 || 8560 <= codePoint && codePoint <= 8569 || codePoint == 8585 || 8592 <= codePoint && codePoint <= 8601 || 8632 <= codePoint && codePoint <= 8633 || codePoint == 8658 || codePoint == 8660 || codePoint == 8679 || codePoint == 8704 || 8706 <= codePoint && codePoint <= 8707 || 8711 <= codePoint && codePoint <= 8712 || codePoint == 8715 || codePoint == 8719 || codePoint == 8721 || codePoint == 8725 || codePoint == 8730 || 8733 <= codePoint && codePoint <= 8736 || codePoint == 8739 || codePoint == 8741 || 8743 <= codePoint && codePoint <= 8748 || codePoint == 8750 || 8756 <= codePoint && codePoint <= 8759 || 8764 <= codePoint && codePoint <= 8765 || codePoint == 8776 || codePoint == 8780 || codePoint == 8786 || 8800 <= codePoint && codePoint <= 8801 || 8804 <= codePoint && codePoint <= 8807 || 8810 <= codePoint && codePoint <= 8811 || 8814 <= codePoint && codePoint <= 8815 || 8834 <= codePoint && codePoint <= 8835 || 8838 <= codePoint && codePoint <= 8839 || codePoint == 8853 || codePoint == 8857 || codePoint == 8869 || codePoint == 8895 || codePoint == 8978 || 9312 <= codePoint && codePoint <= 9449 || 9451 <= codePoint && codePoint <= 9547 || 9552 <= codePoint && codePoint <= 9587 || 9600 <= codePoint && codePoint <= 9615 || 9618 <= codePoint && codePoint <= 9621 || 9632 <= codePoint && codePoint <= 9633 || 9635 <= codePoint && codePoint <= 9641 || 9650 <= codePoint && codePoint <= 9651 || 9654 <= codePoint && codePoint <= 9655 || 9660 <= codePoint && codePoint <= 9661 || 9664 <= codePoint && codePoint <= 9665 || 9670 <= codePoint && codePoint <= 9672 || codePoint == 9675 || 9678 <= codePoint && codePoint <= 9681 || 9698 <= codePoint && codePoint <= 9701 || codePoint == 9711 || 9733 <= codePoint && codePoint <= 9734 || codePoint == 9737 || 9742 <= codePoint && codePoint <= 9743 || 9748 <= codePoint && codePoint <= 9749 || codePoint == 9756 || codePoint == 9758 || codePoint == 9792 || codePoint == 9794 || 9824 <= codePoint && codePoint <= 9825 || 9827 <= codePoint && codePoint <= 9829 || 9831 <= codePoint && codePoint <= 9834 || 9836 <= codePoint && codePoint <= 9837 || codePoint == 9839 || 9886 <= codePoint && codePoint <= 9887 || 9918 <= codePoint && codePoint <= 9919 || 9924 <= codePoint && codePoint <= 9933 || 9935 <= codePoint && codePoint <= 9953 || codePoint == 9955 || 9960 <= codePoint && codePoint <= 9983 || codePoint == 10045 || codePoint == 10071 || 10102 <= codePoint && codePoint <= 10111 || 11093 <= codePoint && codePoint <= 11097 || 12872 <= codePoint && codePoint <= 12879 || 57344 <= codePoint && codePoint <= 63743 || 65024 <= codePoint && codePoint <= 65039 || codePoint == 65533 || 127232 <= codePoint && codePoint <= 127242 || 127248 <= codePoint && codePoint <= 127277 || 127280 <= codePoint && codePoint <= 127337 || 127344 <= codePoint && codePoint <= 127386 || 917760 <= codePoint && codePoint <= 917999 || 983040 <= codePoint && codePoint <= 1048573 || 1048576 <= codePoint && codePoint <= 1114109) {
1710
- return "A";
1711
- }
1712
- return "N";
1713
- };
1714
- eaw.characterLength = function(character) {
1715
- var code = this.eastAsianWidth(character);
1716
- if (code == "F" || code == "W" || code == "A") {
1717
- return 2;
1718
- } else {
1719
- return 1;
1720
- }
1721
- };
1722
- function stringToArray(string) {
1723
- return string.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
1724
- }
1725
- eaw.length = function(string) {
1726
- var characters = stringToArray(string);
1727
- var len = 0;
1728
- for (var i = 0;i < characters.length; i++) {
1729
- len = len + this.characterLength(characters[i]);
1730
- }
1731
- return len;
1732
- };
1733
- eaw.slice = function(text2, start, end) {
1734
- textLen = eaw.length(text2);
1735
- start = start ? start : 0;
1736
- end = end ? end : 1;
1737
- if (start < 0) {
1738
- start = textLen + start;
1739
- }
1740
- if (end < 0) {
1741
- end = textLen + end;
1742
- }
1743
- var result = "";
1744
- var eawLen = 0;
1745
- var chars = stringToArray(text2);
1746
- for (var i = 0;i < chars.length; i++) {
1747
- var char = chars[i];
1748
- var charLen = eaw.length(char);
1749
- if (eawLen >= start - (charLen == 2 ? 1 : 0)) {
1750
- if (eawLen + charLen <= end) {
1751
- result += char;
1752
- } else {
1753
- break;
1754
- }
1755
- }
1756
- eawLen += charLen;
1757
- }
1758
- return result;
1759
- };
1760
- })(eastasianwidth);
1761
- eastasianwidthExports = eastasianwidth.exports;
1762
- eastAsianWidth = getDefaultExportFromCjs(eastasianwidthExports);
1763
- emojiRegex = () => {
1764
- return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\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]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\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?|[\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](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\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\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
1765
- };
1766
- TYPE_COLOR_MAP = {
1767
- info: "cyan",
1768
- fail: "red",
1769
- success: "green",
1770
- ready: "green",
1771
- start: "magenta"
1772
- };
1773
- LEVEL_COLOR_MAP = {
1774
- 0: "red",
1775
- 1: "yellow"
1776
- };
1777
- unicode2 = isUnicodeSupported();
1778
- s2 = (c2, fallback) => unicode2 ? c2 : fallback;
1779
- TYPE_ICONS = {
1780
- error: s2("\u2716", "\xD7"),
1781
- fatal: s2("\u2716", "\xD7"),
1782
- ready: s2("\u2714", "\u221A"),
1783
- warn: s2("\u26A0", "\u203C"),
1784
- info: s2("\u2139", "i"),
1785
- success: s2("\u2714", "\u221A"),
1786
- debug: s2("\u2699", "D"),
1787
- trace: s2("\u2192", "\u2192"),
1788
- fail: s2("\u2716", "\xD7"),
1789
- start: s2("\u25D0", "o"),
1790
- log: ""
1791
- };
1792
- consola = createConsola2();
1793
- });
1794
-
1795
21
  // ../../../../node_modules/slugify/slugify.js
1796
22
  var require_slugify = __commonJS((exports, module) => {
1797
23
  (function(name, root, factory) {
@@ -2207,11 +433,8 @@ var ExitCode;
2207
433
  ExitCode2[ExitCode2["FatalError"] = 1] = "FatalError";
2208
434
  ExitCode2[ExitCode2["InvalidArgument"] = 9] = "InvalidArgument";
2209
435
  })(ExitCode || (ExitCode = {}));
2210
- // ../../../../node_modules/consola/dist/index.mjs
2211
- init_consola_36c0034f();
2212
- init_core();
2213
- init_consola_06ad8a64();
2214
- init_utils();
436
+ // src/logger.ts
437
+ import {LogLevels, LogTypes} from "consola";
2215
438
  // ../strings/src/utils.ts
2216
439
  var import_slugify = __toESM(require_slugify(), 1);
2217
440
  // ../../../../node_modules/title-case/dist/index.js
@@ -2265,15 +488,15 @@ var SMALL_WORDS = new Set([
2265
488
  // ../strings/src/pluralize.ts
2266
489
  var pluralize = __toESM(require_pluralize(), 1);
2267
490
  // ../strings/src/helpers.ts
2268
- function toString(v2) {
2269
- return Object.prototype.toString.call(v2);
491
+ function toString(v) {
492
+ return Object.prototype.toString.call(v);
2270
493
  }
2271
494
  // src/helpers.ts
2272
- function getTypeName(v2) {
2273
- if (v2 === null)
495
+ function getTypeName(v) {
496
+ if (v === null)
2274
497
  return "null";
2275
- const type = toString(v2).slice(8, -1).toLowerCase();
2276
- return typeof v2 === "object" || typeof v2 === "function" ? type : typeof v2;
498
+ const type = toString(v).slice(8, -1).toLowerCase();
499
+ return typeof v === "object" || typeof v === "function" ? type : typeof v;
2277
500
  }
2278
501
  export {
2279
502
  getTypeName,