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