@nice-move/cli 0.11.5 → 0.11.6
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/258.mjs +1 -0
- package/dist/290.mjs +1 -0
- package/dist/373.mjs +1 -0
- package/dist/402.mjs +1 -0
- package/dist/538.mjs +1 -0
- package/dist/754.mjs +1 -0
- package/dist/964.mjs +1 -0
- package/dist/cli.mjs +1 -10444
- package/package.json +2 -2
- package/dist/node_modules_commitlint_format_lib_index_js.mjs +0 -115
- package/dist/node_modules_lilconfig_dist_sync_recursive.mjs +0 -23
- package/dist/node_modules_lint-staged_lib_lazy_recursive.mjs +0 -27
- package/dist/vendors-node_modules_ansi-styles_index_js-node_modules_get-east-asian-width_index_js-node_mod-8ceb3e.mjs +0 -763
- package/dist/vendors-node_modules_chalk_source_index_js.mjs +0 -731
- package/dist/vendors-node_modules_cli-truncate_index_js.mjs +0 -377
- package/dist/vendors-node_modules_commitlint_lint_lib_lint_js.mjs +0 -8701
- package/dist/vendors-node_modules_lilconfig_dist_index_js.mjs +0 -335
- package/dist/vendors-node_modules_lint-staged_lib_index_js.mjs +0 -20252
- package/dist/vendors-node_modules_log-update_index_js.mjs +0 -938
- package/dist/vendors-node_modules_wrap-ansi_index_js.mjs +0 -326
|
@@ -1,763 +0,0 @@
|
|
|
1
|
-
export const id = "vendors-node_modules_ansi-styles_index_js-node_modules_get-east-asian-width_index_js-node_mod-8ceb3e";
|
|
2
|
-
export const ids = ["vendors-node_modules_ansi-styles_index_js-node_modules_get-east-asian-width_index_js-node_mod-8ceb3e"];
|
|
3
|
-
export const modules = {
|
|
4
|
-
|
|
5
|
-
/***/ "../../node_modules/ansi-styles/index.js":
|
|
6
|
-
/*!***********************************************!*\
|
|
7
|
-
!*** ../../node_modules/ansi-styles/index.js ***!
|
|
8
|
-
\***********************************************/
|
|
9
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
10
|
-
|
|
11
|
-
__webpack_require__.r(__webpack_exports__);
|
|
12
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13
|
-
/* harmony export */ backgroundColorNames: () => (/* binding */ backgroundColorNames),
|
|
14
|
-
/* harmony export */ colorNames: () => (/* binding */ colorNames),
|
|
15
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
16
|
-
/* harmony export */ foregroundColorNames: () => (/* binding */ foregroundColorNames),
|
|
17
|
-
/* harmony export */ modifierNames: () => (/* binding */ modifierNames)
|
|
18
|
-
/* harmony export */ });
|
|
19
|
-
const ANSI_BACKGROUND_OFFSET = 10;
|
|
20
|
-
|
|
21
|
-
const wrapAnsi16 = (offset = 0) => code => `\u001B[${code + offset}m`;
|
|
22
|
-
|
|
23
|
-
const wrapAnsi256 = (offset = 0) => code => `\u001B[${38 + offset};5;${code}m`;
|
|
24
|
-
|
|
25
|
-
const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\u001B[${38 + offset};2;${red};${green};${blue}m`;
|
|
26
|
-
|
|
27
|
-
const styles = {
|
|
28
|
-
modifier: {
|
|
29
|
-
reset: [0, 0],
|
|
30
|
-
// 21 isn't widely supported and 22 does the same thing
|
|
31
|
-
bold: [1, 22],
|
|
32
|
-
dim: [2, 22],
|
|
33
|
-
italic: [3, 23],
|
|
34
|
-
underline: [4, 24],
|
|
35
|
-
overline: [53, 55],
|
|
36
|
-
inverse: [7, 27],
|
|
37
|
-
hidden: [8, 28],
|
|
38
|
-
strikethrough: [9, 29],
|
|
39
|
-
},
|
|
40
|
-
color: {
|
|
41
|
-
black: [30, 39],
|
|
42
|
-
red: [31, 39],
|
|
43
|
-
green: [32, 39],
|
|
44
|
-
yellow: [33, 39],
|
|
45
|
-
blue: [34, 39],
|
|
46
|
-
magenta: [35, 39],
|
|
47
|
-
cyan: [36, 39],
|
|
48
|
-
white: [37, 39],
|
|
49
|
-
|
|
50
|
-
// Bright color
|
|
51
|
-
blackBright: [90, 39],
|
|
52
|
-
gray: [90, 39], // Alias of `blackBright`
|
|
53
|
-
grey: [90, 39], // Alias of `blackBright`
|
|
54
|
-
redBright: [91, 39],
|
|
55
|
-
greenBright: [92, 39],
|
|
56
|
-
yellowBright: [93, 39],
|
|
57
|
-
blueBright: [94, 39],
|
|
58
|
-
magentaBright: [95, 39],
|
|
59
|
-
cyanBright: [96, 39],
|
|
60
|
-
whiteBright: [97, 39],
|
|
61
|
-
},
|
|
62
|
-
bgColor: {
|
|
63
|
-
bgBlack: [40, 49],
|
|
64
|
-
bgRed: [41, 49],
|
|
65
|
-
bgGreen: [42, 49],
|
|
66
|
-
bgYellow: [43, 49],
|
|
67
|
-
bgBlue: [44, 49],
|
|
68
|
-
bgMagenta: [45, 49],
|
|
69
|
-
bgCyan: [46, 49],
|
|
70
|
-
bgWhite: [47, 49],
|
|
71
|
-
|
|
72
|
-
// Bright color
|
|
73
|
-
bgBlackBright: [100, 49],
|
|
74
|
-
bgGray: [100, 49], // Alias of `bgBlackBright`
|
|
75
|
-
bgGrey: [100, 49], // Alias of `bgBlackBright`
|
|
76
|
-
bgRedBright: [101, 49],
|
|
77
|
-
bgGreenBright: [102, 49],
|
|
78
|
-
bgYellowBright: [103, 49],
|
|
79
|
-
bgBlueBright: [104, 49],
|
|
80
|
-
bgMagentaBright: [105, 49],
|
|
81
|
-
bgCyanBright: [106, 49],
|
|
82
|
-
bgWhiteBright: [107, 49],
|
|
83
|
-
},
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
const modifierNames = Object.keys(styles.modifier);
|
|
87
|
-
const foregroundColorNames = Object.keys(styles.color);
|
|
88
|
-
const backgroundColorNames = Object.keys(styles.bgColor);
|
|
89
|
-
const colorNames = [...foregroundColorNames, ...backgroundColorNames];
|
|
90
|
-
|
|
91
|
-
function assembleStyles() {
|
|
92
|
-
const codes = new Map();
|
|
93
|
-
|
|
94
|
-
for (const [groupName, group] of Object.entries(styles)) {
|
|
95
|
-
for (const [styleName, style] of Object.entries(group)) {
|
|
96
|
-
styles[styleName] = {
|
|
97
|
-
open: `\u001B[${style[0]}m`,
|
|
98
|
-
close: `\u001B[${style[1]}m`,
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
group[styleName] = styles[styleName];
|
|
102
|
-
|
|
103
|
-
codes.set(style[0], style[1]);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
Object.defineProperty(styles, groupName, {
|
|
107
|
-
value: group,
|
|
108
|
-
enumerable: false,
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
Object.defineProperty(styles, 'codes', {
|
|
113
|
-
value: codes,
|
|
114
|
-
enumerable: false,
|
|
115
|
-
});
|
|
116
|
-
|
|
117
|
-
styles.color.close = '\u001B[39m';
|
|
118
|
-
styles.bgColor.close = '\u001B[49m';
|
|
119
|
-
|
|
120
|
-
styles.color.ansi = wrapAnsi16();
|
|
121
|
-
styles.color.ansi256 = wrapAnsi256();
|
|
122
|
-
styles.color.ansi16m = wrapAnsi16m();
|
|
123
|
-
styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
|
|
124
|
-
styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
|
|
125
|
-
styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
|
|
126
|
-
|
|
127
|
-
// From https://github.com/Qix-/color-convert/blob/3f0e0d4e92e235796ccb17f6e85c72094a651f49/conversions.js
|
|
128
|
-
Object.defineProperties(styles, {
|
|
129
|
-
rgbToAnsi256: {
|
|
130
|
-
value: (red, green, blue) => {
|
|
131
|
-
// We use the extended greyscale palette here, with the exception of
|
|
132
|
-
// black and white. normal palette only has 4 greyscale shades.
|
|
133
|
-
if (red === green && green === blue) {
|
|
134
|
-
if (red < 8) {
|
|
135
|
-
return 16;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
if (red > 248) {
|
|
139
|
-
return 231;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
return Math.round(((red - 8) / 247) * 24) + 232;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
return 16
|
|
146
|
-
+ (36 * Math.round(red / 255 * 5))
|
|
147
|
-
+ (6 * Math.round(green / 255 * 5))
|
|
148
|
-
+ Math.round(blue / 255 * 5);
|
|
149
|
-
},
|
|
150
|
-
enumerable: false,
|
|
151
|
-
},
|
|
152
|
-
hexToRgb: {
|
|
153
|
-
value: hex => {
|
|
154
|
-
const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
|
|
155
|
-
if (!matches) {
|
|
156
|
-
return [0, 0, 0];
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
let [colorString] = matches;
|
|
160
|
-
|
|
161
|
-
if (colorString.length === 3) {
|
|
162
|
-
colorString = [...colorString].map(character => character + character).join('');
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
const integer = Number.parseInt(colorString, 16);
|
|
166
|
-
|
|
167
|
-
return [
|
|
168
|
-
/* eslint-disable no-bitwise */
|
|
169
|
-
(integer >> 16) & 0xFF,
|
|
170
|
-
(integer >> 8) & 0xFF,
|
|
171
|
-
integer & 0xFF,
|
|
172
|
-
/* eslint-enable no-bitwise */
|
|
173
|
-
];
|
|
174
|
-
},
|
|
175
|
-
enumerable: false,
|
|
176
|
-
},
|
|
177
|
-
hexToAnsi256: {
|
|
178
|
-
value: hex => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
|
|
179
|
-
enumerable: false,
|
|
180
|
-
},
|
|
181
|
-
ansi256ToAnsi: {
|
|
182
|
-
value: code => {
|
|
183
|
-
if (code < 8) {
|
|
184
|
-
return 30 + code;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
if (code < 16) {
|
|
188
|
-
return 90 + (code - 8);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
let red;
|
|
192
|
-
let green;
|
|
193
|
-
let blue;
|
|
194
|
-
|
|
195
|
-
if (code >= 232) {
|
|
196
|
-
red = (((code - 232) * 10) + 8) / 255;
|
|
197
|
-
green = red;
|
|
198
|
-
blue = red;
|
|
199
|
-
} else {
|
|
200
|
-
code -= 16;
|
|
201
|
-
|
|
202
|
-
const remainder = code % 36;
|
|
203
|
-
|
|
204
|
-
red = Math.floor(code / 36) / 5;
|
|
205
|
-
green = Math.floor(remainder / 6) / 5;
|
|
206
|
-
blue = (remainder % 6) / 5;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
const value = Math.max(red, green, blue) * 2;
|
|
210
|
-
|
|
211
|
-
if (value === 0) {
|
|
212
|
-
return 30;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
// eslint-disable-next-line no-bitwise
|
|
216
|
-
let result = 30 + ((Math.round(blue) << 2) | (Math.round(green) << 1) | Math.round(red));
|
|
217
|
-
|
|
218
|
-
if (value === 2) {
|
|
219
|
-
result += 60;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
return result;
|
|
223
|
-
},
|
|
224
|
-
enumerable: false,
|
|
225
|
-
},
|
|
226
|
-
rgbToAnsi: {
|
|
227
|
-
value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
|
|
228
|
-
enumerable: false,
|
|
229
|
-
},
|
|
230
|
-
hexToAnsi: {
|
|
231
|
-
value: hex => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
|
|
232
|
-
enumerable: false,
|
|
233
|
-
},
|
|
234
|
-
});
|
|
235
|
-
|
|
236
|
-
return styles;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
const ansiStyles = assembleStyles();
|
|
240
|
-
|
|
241
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ansiStyles);
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
/***/ }),
|
|
245
|
-
|
|
246
|
-
/***/ "../../node_modules/get-east-asian-width/index.js":
|
|
247
|
-
/*!********************************************************!*\
|
|
248
|
-
!*** ../../node_modules/get-east-asian-width/index.js ***!
|
|
249
|
-
\********************************************************/
|
|
250
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
251
|
-
|
|
252
|
-
__webpack_require__.r(__webpack_exports__);
|
|
253
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
254
|
-
/* harmony export */ _isNarrowWidth: () => (/* binding */ _isNarrowWidth),
|
|
255
|
-
/* harmony export */ eastAsianWidth: () => (/* binding */ eastAsianWidth),
|
|
256
|
-
/* harmony export */ eastAsianWidthType: () => (/* binding */ eastAsianWidthType)
|
|
257
|
-
/* harmony export */ });
|
|
258
|
-
/* harmony import */ var _lookup_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./lookup.js */ "../../node_modules/get-east-asian-width/lookup.js");
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
function validate(codePoint) {
|
|
262
|
-
if (!Number.isSafeInteger(codePoint)) {
|
|
263
|
-
throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
function eastAsianWidthType(codePoint) {
|
|
268
|
-
validate(codePoint);
|
|
269
|
-
|
|
270
|
-
return (0,_lookup_js__WEBPACK_IMPORTED_MODULE_0__.getCategory)(codePoint);
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
function eastAsianWidth(codePoint, {ambiguousAsWide = false} = {}) {
|
|
274
|
-
validate(codePoint);
|
|
275
|
-
|
|
276
|
-
if (
|
|
277
|
-
(0,_lookup_js__WEBPACK_IMPORTED_MODULE_0__.isFullWidth)(codePoint)
|
|
278
|
-
|| (0,_lookup_js__WEBPACK_IMPORTED_MODULE_0__.isWide)(codePoint)
|
|
279
|
-
|| (ambiguousAsWide && (0,_lookup_js__WEBPACK_IMPORTED_MODULE_0__.isAmbiguous)(codePoint))
|
|
280
|
-
) {
|
|
281
|
-
return 2;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
return 1;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
// For Prettier. This doesn't count "ambiguous" characters or check for valid input.
|
|
288
|
-
// https://github.com/sindresorhus/get-east-asian-width/pull/6
|
|
289
|
-
const _isNarrowWidth = codePoint => !((0,_lookup_js__WEBPACK_IMPORTED_MODULE_0__.isFullWidth)(codePoint) || (0,_lookup_js__WEBPACK_IMPORTED_MODULE_0__.isWide)(codePoint));
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
/***/ }),
|
|
293
|
-
|
|
294
|
-
/***/ "../../node_modules/get-east-asian-width/lookup.js":
|
|
295
|
-
/*!*********************************************************!*\
|
|
296
|
-
!*** ../../node_modules/get-east-asian-width/lookup.js ***!
|
|
297
|
-
\*********************************************************/
|
|
298
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
299
|
-
|
|
300
|
-
__webpack_require__.r(__webpack_exports__);
|
|
301
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
302
|
-
/* harmony export */ getCategory: () => (/* binding */ getCategory),
|
|
303
|
-
/* harmony export */ isAmbiguous: () => (/* binding */ isAmbiguous),
|
|
304
|
-
/* harmony export */ isFullWidth: () => (/* binding */ isFullWidth),
|
|
305
|
-
/* harmony export */ isWide: () => (/* binding */ isWide)
|
|
306
|
-
/* harmony export */ });
|
|
307
|
-
// Generated code.
|
|
308
|
-
|
|
309
|
-
function isAmbiguous(x) {
|
|
310
|
-
return x === 0xA1
|
|
311
|
-
|| x === 0xA4
|
|
312
|
-
|| x === 0xA7
|
|
313
|
-
|| x === 0xA8
|
|
314
|
-
|| x === 0xAA
|
|
315
|
-
|| x === 0xAD
|
|
316
|
-
|| x === 0xAE
|
|
317
|
-
|| x >= 0xB0 && x <= 0xB4
|
|
318
|
-
|| x >= 0xB6 && x <= 0xBA
|
|
319
|
-
|| x >= 0xBC && x <= 0xBF
|
|
320
|
-
|| x === 0xC6
|
|
321
|
-
|| x === 0xD0
|
|
322
|
-
|| x === 0xD7
|
|
323
|
-
|| x === 0xD8
|
|
324
|
-
|| x >= 0xDE && x <= 0xE1
|
|
325
|
-
|| x === 0xE6
|
|
326
|
-
|| x >= 0xE8 && x <= 0xEA
|
|
327
|
-
|| x === 0xEC
|
|
328
|
-
|| x === 0xED
|
|
329
|
-
|| x === 0xF0
|
|
330
|
-
|| x === 0xF2
|
|
331
|
-
|| x === 0xF3
|
|
332
|
-
|| x >= 0xF7 && x <= 0xFA
|
|
333
|
-
|| x === 0xFC
|
|
334
|
-
|| x === 0xFE
|
|
335
|
-
|| x === 0x101
|
|
336
|
-
|| x === 0x111
|
|
337
|
-
|| x === 0x113
|
|
338
|
-
|| x === 0x11B
|
|
339
|
-
|| x === 0x126
|
|
340
|
-
|| x === 0x127
|
|
341
|
-
|| x === 0x12B
|
|
342
|
-
|| x >= 0x131 && x <= 0x133
|
|
343
|
-
|| x === 0x138
|
|
344
|
-
|| x >= 0x13F && x <= 0x142
|
|
345
|
-
|| x === 0x144
|
|
346
|
-
|| x >= 0x148 && x <= 0x14B
|
|
347
|
-
|| x === 0x14D
|
|
348
|
-
|| x === 0x152
|
|
349
|
-
|| x === 0x153
|
|
350
|
-
|| x === 0x166
|
|
351
|
-
|| x === 0x167
|
|
352
|
-
|| x === 0x16B
|
|
353
|
-
|| x === 0x1CE
|
|
354
|
-
|| x === 0x1D0
|
|
355
|
-
|| x === 0x1D2
|
|
356
|
-
|| x === 0x1D4
|
|
357
|
-
|| x === 0x1D6
|
|
358
|
-
|| x === 0x1D8
|
|
359
|
-
|| x === 0x1DA
|
|
360
|
-
|| x === 0x1DC
|
|
361
|
-
|| x === 0x251
|
|
362
|
-
|| x === 0x261
|
|
363
|
-
|| x === 0x2C4
|
|
364
|
-
|| x === 0x2C7
|
|
365
|
-
|| x >= 0x2C9 && x <= 0x2CB
|
|
366
|
-
|| x === 0x2CD
|
|
367
|
-
|| x === 0x2D0
|
|
368
|
-
|| x >= 0x2D8 && x <= 0x2DB
|
|
369
|
-
|| x === 0x2DD
|
|
370
|
-
|| x === 0x2DF
|
|
371
|
-
|| x >= 0x300 && x <= 0x36F
|
|
372
|
-
|| x >= 0x391 && x <= 0x3A1
|
|
373
|
-
|| x >= 0x3A3 && x <= 0x3A9
|
|
374
|
-
|| x >= 0x3B1 && x <= 0x3C1
|
|
375
|
-
|| x >= 0x3C3 && x <= 0x3C9
|
|
376
|
-
|| x === 0x401
|
|
377
|
-
|| x >= 0x410 && x <= 0x44F
|
|
378
|
-
|| x === 0x451
|
|
379
|
-
|| x === 0x2010
|
|
380
|
-
|| x >= 0x2013 && x <= 0x2016
|
|
381
|
-
|| x === 0x2018
|
|
382
|
-
|| x === 0x2019
|
|
383
|
-
|| x === 0x201C
|
|
384
|
-
|| x === 0x201D
|
|
385
|
-
|| x >= 0x2020 && x <= 0x2022
|
|
386
|
-
|| x >= 0x2024 && x <= 0x2027
|
|
387
|
-
|| x === 0x2030
|
|
388
|
-
|| x === 0x2032
|
|
389
|
-
|| x === 0x2033
|
|
390
|
-
|| x === 0x2035
|
|
391
|
-
|| x === 0x203B
|
|
392
|
-
|| x === 0x203E
|
|
393
|
-
|| x === 0x2074
|
|
394
|
-
|| x === 0x207F
|
|
395
|
-
|| x >= 0x2081 && x <= 0x2084
|
|
396
|
-
|| x === 0x20AC
|
|
397
|
-
|| x === 0x2103
|
|
398
|
-
|| x === 0x2105
|
|
399
|
-
|| x === 0x2109
|
|
400
|
-
|| x === 0x2113
|
|
401
|
-
|| x === 0x2116
|
|
402
|
-
|| x === 0x2121
|
|
403
|
-
|| x === 0x2122
|
|
404
|
-
|| x === 0x2126
|
|
405
|
-
|| x === 0x212B
|
|
406
|
-
|| x === 0x2153
|
|
407
|
-
|| x === 0x2154
|
|
408
|
-
|| x >= 0x215B && x <= 0x215E
|
|
409
|
-
|| x >= 0x2160 && x <= 0x216B
|
|
410
|
-
|| x >= 0x2170 && x <= 0x2179
|
|
411
|
-
|| x === 0x2189
|
|
412
|
-
|| x >= 0x2190 && x <= 0x2199
|
|
413
|
-
|| x === 0x21B8
|
|
414
|
-
|| x === 0x21B9
|
|
415
|
-
|| x === 0x21D2
|
|
416
|
-
|| x === 0x21D4
|
|
417
|
-
|| x === 0x21E7
|
|
418
|
-
|| x === 0x2200
|
|
419
|
-
|| x === 0x2202
|
|
420
|
-
|| x === 0x2203
|
|
421
|
-
|| x === 0x2207
|
|
422
|
-
|| x === 0x2208
|
|
423
|
-
|| x === 0x220B
|
|
424
|
-
|| x === 0x220F
|
|
425
|
-
|| x === 0x2211
|
|
426
|
-
|| x === 0x2215
|
|
427
|
-
|| x === 0x221A
|
|
428
|
-
|| x >= 0x221D && x <= 0x2220
|
|
429
|
-
|| x === 0x2223
|
|
430
|
-
|| x === 0x2225
|
|
431
|
-
|| x >= 0x2227 && x <= 0x222C
|
|
432
|
-
|| x === 0x222E
|
|
433
|
-
|| x >= 0x2234 && x <= 0x2237
|
|
434
|
-
|| x === 0x223C
|
|
435
|
-
|| x === 0x223D
|
|
436
|
-
|| x === 0x2248
|
|
437
|
-
|| x === 0x224C
|
|
438
|
-
|| x === 0x2252
|
|
439
|
-
|| x === 0x2260
|
|
440
|
-
|| x === 0x2261
|
|
441
|
-
|| x >= 0x2264 && x <= 0x2267
|
|
442
|
-
|| x === 0x226A
|
|
443
|
-
|| x === 0x226B
|
|
444
|
-
|| x === 0x226E
|
|
445
|
-
|| x === 0x226F
|
|
446
|
-
|| x === 0x2282
|
|
447
|
-
|| x === 0x2283
|
|
448
|
-
|| x === 0x2286
|
|
449
|
-
|| x === 0x2287
|
|
450
|
-
|| x === 0x2295
|
|
451
|
-
|| x === 0x2299
|
|
452
|
-
|| x === 0x22A5
|
|
453
|
-
|| x === 0x22BF
|
|
454
|
-
|| x === 0x2312
|
|
455
|
-
|| x >= 0x2460 && x <= 0x24E9
|
|
456
|
-
|| x >= 0x24EB && x <= 0x254B
|
|
457
|
-
|| x >= 0x2550 && x <= 0x2573
|
|
458
|
-
|| x >= 0x2580 && x <= 0x258F
|
|
459
|
-
|| x >= 0x2592 && x <= 0x2595
|
|
460
|
-
|| x === 0x25A0
|
|
461
|
-
|| x === 0x25A1
|
|
462
|
-
|| x >= 0x25A3 && x <= 0x25A9
|
|
463
|
-
|| x === 0x25B2
|
|
464
|
-
|| x === 0x25B3
|
|
465
|
-
|| x === 0x25B6
|
|
466
|
-
|| x === 0x25B7
|
|
467
|
-
|| x === 0x25BC
|
|
468
|
-
|| x === 0x25BD
|
|
469
|
-
|| x === 0x25C0
|
|
470
|
-
|| x === 0x25C1
|
|
471
|
-
|| x >= 0x25C6 && x <= 0x25C8
|
|
472
|
-
|| x === 0x25CB
|
|
473
|
-
|| x >= 0x25CE && x <= 0x25D1
|
|
474
|
-
|| x >= 0x25E2 && x <= 0x25E5
|
|
475
|
-
|| x === 0x25EF
|
|
476
|
-
|| x === 0x2605
|
|
477
|
-
|| x === 0x2606
|
|
478
|
-
|| x === 0x2609
|
|
479
|
-
|| x === 0x260E
|
|
480
|
-
|| x === 0x260F
|
|
481
|
-
|| x === 0x261C
|
|
482
|
-
|| x === 0x261E
|
|
483
|
-
|| x === 0x2640
|
|
484
|
-
|| x === 0x2642
|
|
485
|
-
|| x === 0x2660
|
|
486
|
-
|| x === 0x2661
|
|
487
|
-
|| x >= 0x2663 && x <= 0x2665
|
|
488
|
-
|| x >= 0x2667 && x <= 0x266A
|
|
489
|
-
|| x === 0x266C
|
|
490
|
-
|| x === 0x266D
|
|
491
|
-
|| x === 0x266F
|
|
492
|
-
|| x === 0x269E
|
|
493
|
-
|| x === 0x269F
|
|
494
|
-
|| x === 0x26BF
|
|
495
|
-
|| x >= 0x26C6 && x <= 0x26CD
|
|
496
|
-
|| x >= 0x26CF && x <= 0x26D3
|
|
497
|
-
|| x >= 0x26D5 && x <= 0x26E1
|
|
498
|
-
|| x === 0x26E3
|
|
499
|
-
|| x === 0x26E8
|
|
500
|
-
|| x === 0x26E9
|
|
501
|
-
|| x >= 0x26EB && x <= 0x26F1
|
|
502
|
-
|| x === 0x26F4
|
|
503
|
-
|| x >= 0x26F6 && x <= 0x26F9
|
|
504
|
-
|| x === 0x26FB
|
|
505
|
-
|| x === 0x26FC
|
|
506
|
-
|| x === 0x26FE
|
|
507
|
-
|| x === 0x26FF
|
|
508
|
-
|| x === 0x273D
|
|
509
|
-
|| x >= 0x2776 && x <= 0x277F
|
|
510
|
-
|| x >= 0x2B56 && x <= 0x2B59
|
|
511
|
-
|| x >= 0x3248 && x <= 0x324F
|
|
512
|
-
|| x >= 0xE000 && x <= 0xF8FF
|
|
513
|
-
|| x >= 0xFE00 && x <= 0xFE0F
|
|
514
|
-
|| x === 0xFFFD
|
|
515
|
-
|| x >= 0x1F100 && x <= 0x1F10A
|
|
516
|
-
|| x >= 0x1F110 && x <= 0x1F12D
|
|
517
|
-
|| x >= 0x1F130 && x <= 0x1F169
|
|
518
|
-
|| x >= 0x1F170 && x <= 0x1F18D
|
|
519
|
-
|| x === 0x1F18F
|
|
520
|
-
|| x === 0x1F190
|
|
521
|
-
|| x >= 0x1F19B && x <= 0x1F1AC
|
|
522
|
-
|| x >= 0xE0100 && x <= 0xE01EF
|
|
523
|
-
|| x >= 0xF0000 && x <= 0xFFFFD
|
|
524
|
-
|| x >= 0x100000 && x <= 0x10FFFD;
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
function isFullWidth(x) {
|
|
528
|
-
return x === 0x3000
|
|
529
|
-
|| x >= 0xFF01 && x <= 0xFF60
|
|
530
|
-
|| x >= 0xFFE0 && x <= 0xFFE6;
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
function isWide(x) {
|
|
534
|
-
return x >= 0x1100 && x <= 0x115F
|
|
535
|
-
|| x === 0x231A
|
|
536
|
-
|| x === 0x231B
|
|
537
|
-
|| x === 0x2329
|
|
538
|
-
|| x === 0x232A
|
|
539
|
-
|| x >= 0x23E9 && x <= 0x23EC
|
|
540
|
-
|| x === 0x23F0
|
|
541
|
-
|| x === 0x23F3
|
|
542
|
-
|| x === 0x25FD
|
|
543
|
-
|| x === 0x25FE
|
|
544
|
-
|| x === 0x2614
|
|
545
|
-
|| x === 0x2615
|
|
546
|
-
|| x >= 0x2648 && x <= 0x2653
|
|
547
|
-
|| x === 0x267F
|
|
548
|
-
|| x === 0x2693
|
|
549
|
-
|| x === 0x26A1
|
|
550
|
-
|| x === 0x26AA
|
|
551
|
-
|| x === 0x26AB
|
|
552
|
-
|| x === 0x26BD
|
|
553
|
-
|| x === 0x26BE
|
|
554
|
-
|| x === 0x26C4
|
|
555
|
-
|| x === 0x26C5
|
|
556
|
-
|| x === 0x26CE
|
|
557
|
-
|| x === 0x26D4
|
|
558
|
-
|| x === 0x26EA
|
|
559
|
-
|| x === 0x26F2
|
|
560
|
-
|| x === 0x26F3
|
|
561
|
-
|| x === 0x26F5
|
|
562
|
-
|| x === 0x26FA
|
|
563
|
-
|| x === 0x26FD
|
|
564
|
-
|| x === 0x2705
|
|
565
|
-
|| x === 0x270A
|
|
566
|
-
|| x === 0x270B
|
|
567
|
-
|| x === 0x2728
|
|
568
|
-
|| x === 0x274C
|
|
569
|
-
|| x === 0x274E
|
|
570
|
-
|| x >= 0x2753 && x <= 0x2755
|
|
571
|
-
|| x === 0x2757
|
|
572
|
-
|| x >= 0x2795 && x <= 0x2797
|
|
573
|
-
|| x === 0x27B0
|
|
574
|
-
|| x === 0x27BF
|
|
575
|
-
|| x === 0x2B1B
|
|
576
|
-
|| x === 0x2B1C
|
|
577
|
-
|| x === 0x2B50
|
|
578
|
-
|| x === 0x2B55
|
|
579
|
-
|| x >= 0x2E80 && x <= 0x2E99
|
|
580
|
-
|| x >= 0x2E9B && x <= 0x2EF3
|
|
581
|
-
|| x >= 0x2F00 && x <= 0x2FD5
|
|
582
|
-
|| x >= 0x2FF0 && x <= 0x2FFF
|
|
583
|
-
|| x >= 0x3001 && x <= 0x303E
|
|
584
|
-
|| x >= 0x3041 && x <= 0x3096
|
|
585
|
-
|| x >= 0x3099 && x <= 0x30FF
|
|
586
|
-
|| x >= 0x3105 && x <= 0x312F
|
|
587
|
-
|| x >= 0x3131 && x <= 0x318E
|
|
588
|
-
|| x >= 0x3190 && x <= 0x31E3
|
|
589
|
-
|| x >= 0x31EF && x <= 0x321E
|
|
590
|
-
|| x >= 0x3220 && x <= 0x3247
|
|
591
|
-
|| x >= 0x3250 && x <= 0x4DBF
|
|
592
|
-
|| x >= 0x4E00 && x <= 0xA48C
|
|
593
|
-
|| x >= 0xA490 && x <= 0xA4C6
|
|
594
|
-
|| x >= 0xA960 && x <= 0xA97C
|
|
595
|
-
|| x >= 0xAC00 && x <= 0xD7A3
|
|
596
|
-
|| x >= 0xF900 && x <= 0xFAFF
|
|
597
|
-
|| x >= 0xFE10 && x <= 0xFE19
|
|
598
|
-
|| x >= 0xFE30 && x <= 0xFE52
|
|
599
|
-
|| x >= 0xFE54 && x <= 0xFE66
|
|
600
|
-
|| x >= 0xFE68 && x <= 0xFE6B
|
|
601
|
-
|| x >= 0x16FE0 && x <= 0x16FE4
|
|
602
|
-
|| x === 0x16FF0
|
|
603
|
-
|| x === 0x16FF1
|
|
604
|
-
|| x >= 0x17000 && x <= 0x187F7
|
|
605
|
-
|| x >= 0x18800 && x <= 0x18CD5
|
|
606
|
-
|| x >= 0x18D00 && x <= 0x18D08
|
|
607
|
-
|| x >= 0x1AFF0 && x <= 0x1AFF3
|
|
608
|
-
|| x >= 0x1AFF5 && x <= 0x1AFFB
|
|
609
|
-
|| x === 0x1AFFD
|
|
610
|
-
|| x === 0x1AFFE
|
|
611
|
-
|| x >= 0x1B000 && x <= 0x1B122
|
|
612
|
-
|| x === 0x1B132
|
|
613
|
-
|| x >= 0x1B150 && x <= 0x1B152
|
|
614
|
-
|| x === 0x1B155
|
|
615
|
-
|| x >= 0x1B164 && x <= 0x1B167
|
|
616
|
-
|| x >= 0x1B170 && x <= 0x1B2FB
|
|
617
|
-
|| x === 0x1F004
|
|
618
|
-
|| x === 0x1F0CF
|
|
619
|
-
|| x === 0x1F18E
|
|
620
|
-
|| x >= 0x1F191 && x <= 0x1F19A
|
|
621
|
-
|| x >= 0x1F200 && x <= 0x1F202
|
|
622
|
-
|| x >= 0x1F210 && x <= 0x1F23B
|
|
623
|
-
|| x >= 0x1F240 && x <= 0x1F248
|
|
624
|
-
|| x === 0x1F250
|
|
625
|
-
|| x === 0x1F251
|
|
626
|
-
|| x >= 0x1F260 && x <= 0x1F265
|
|
627
|
-
|| x >= 0x1F300 && x <= 0x1F320
|
|
628
|
-
|| x >= 0x1F32D && x <= 0x1F335
|
|
629
|
-
|| x >= 0x1F337 && x <= 0x1F37C
|
|
630
|
-
|| x >= 0x1F37E && x <= 0x1F393
|
|
631
|
-
|| x >= 0x1F3A0 && x <= 0x1F3CA
|
|
632
|
-
|| x >= 0x1F3CF && x <= 0x1F3D3
|
|
633
|
-
|| x >= 0x1F3E0 && x <= 0x1F3F0
|
|
634
|
-
|| x === 0x1F3F4
|
|
635
|
-
|| x >= 0x1F3F8 && x <= 0x1F43E
|
|
636
|
-
|| x === 0x1F440
|
|
637
|
-
|| x >= 0x1F442 && x <= 0x1F4FC
|
|
638
|
-
|| x >= 0x1F4FF && x <= 0x1F53D
|
|
639
|
-
|| x >= 0x1F54B && x <= 0x1F54E
|
|
640
|
-
|| x >= 0x1F550 && x <= 0x1F567
|
|
641
|
-
|| x === 0x1F57A
|
|
642
|
-
|| x === 0x1F595
|
|
643
|
-
|| x === 0x1F596
|
|
644
|
-
|| x === 0x1F5A4
|
|
645
|
-
|| x >= 0x1F5FB && x <= 0x1F64F
|
|
646
|
-
|| x >= 0x1F680 && x <= 0x1F6C5
|
|
647
|
-
|| x === 0x1F6CC
|
|
648
|
-
|| x >= 0x1F6D0 && x <= 0x1F6D2
|
|
649
|
-
|| x >= 0x1F6D5 && x <= 0x1F6D7
|
|
650
|
-
|| x >= 0x1F6DC && x <= 0x1F6DF
|
|
651
|
-
|| x === 0x1F6EB
|
|
652
|
-
|| x === 0x1F6EC
|
|
653
|
-
|| x >= 0x1F6F4 && x <= 0x1F6FC
|
|
654
|
-
|| x >= 0x1F7E0 && x <= 0x1F7EB
|
|
655
|
-
|| x === 0x1F7F0
|
|
656
|
-
|| x >= 0x1F90C && x <= 0x1F93A
|
|
657
|
-
|| x >= 0x1F93C && x <= 0x1F945
|
|
658
|
-
|| x >= 0x1F947 && x <= 0x1F9FF
|
|
659
|
-
|| x >= 0x1FA70 && x <= 0x1FA7C
|
|
660
|
-
|| x >= 0x1FA80 && x <= 0x1FA88
|
|
661
|
-
|| x >= 0x1FA90 && x <= 0x1FABD
|
|
662
|
-
|| x >= 0x1FABF && x <= 0x1FAC5
|
|
663
|
-
|| x >= 0x1FACE && x <= 0x1FADB
|
|
664
|
-
|| x >= 0x1FAE0 && x <= 0x1FAE8
|
|
665
|
-
|| x >= 0x1FAF0 && x <= 0x1FAF8
|
|
666
|
-
|| x >= 0x20000 && x <= 0x2FFFD
|
|
667
|
-
|| x >= 0x30000 && x <= 0x3FFFD;
|
|
668
|
-
}
|
|
669
|
-
|
|
670
|
-
function getCategory(x) {
|
|
671
|
-
if (isAmbiguous(x)) return 'ambiguous';
|
|
672
|
-
|
|
673
|
-
if (isFullWidth(x)) return 'fullwidth';
|
|
674
|
-
|
|
675
|
-
if (
|
|
676
|
-
x === 0x20A9
|
|
677
|
-
|| x >= 0xFF61 && x <= 0xFFBE
|
|
678
|
-
|| x >= 0xFFC2 && x <= 0xFFC7
|
|
679
|
-
|| x >= 0xFFCA && x <= 0xFFCF
|
|
680
|
-
|| x >= 0xFFD2 && x <= 0xFFD7
|
|
681
|
-
|| x >= 0xFFDA && x <= 0xFFDC
|
|
682
|
-
|| x >= 0xFFE8 && x <= 0xFFEE
|
|
683
|
-
) {
|
|
684
|
-
return 'halfwidth';
|
|
685
|
-
}
|
|
686
|
-
|
|
687
|
-
if (
|
|
688
|
-
x >= 0x20 && x <= 0x7E
|
|
689
|
-
|| x === 0xA2
|
|
690
|
-
|| x === 0xA3
|
|
691
|
-
|| x === 0xA5
|
|
692
|
-
|| x === 0xA6
|
|
693
|
-
|| x === 0xAC
|
|
694
|
-
|| x === 0xAF
|
|
695
|
-
|| x >= 0x27E6 && x <= 0x27ED
|
|
696
|
-
|| x === 0x2985
|
|
697
|
-
|| x === 0x2986
|
|
698
|
-
) {
|
|
699
|
-
return 'narrow';
|
|
700
|
-
}
|
|
701
|
-
|
|
702
|
-
if (isWide(x)) return 'wide';
|
|
703
|
-
|
|
704
|
-
return 'neutral';
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
/***/ }),
|
|
711
|
-
|
|
712
|
-
/***/ "../../node_modules/strip-ansi/index.js":
|
|
713
|
-
/*!**********************************************!*\
|
|
714
|
-
!*** ../../node_modules/strip-ansi/index.js ***!
|
|
715
|
-
\**********************************************/
|
|
716
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
717
|
-
|
|
718
|
-
__webpack_require__.r(__webpack_exports__);
|
|
719
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
720
|
-
/* harmony export */ "default": () => (/* binding */ stripAnsi)
|
|
721
|
-
/* harmony export */ });
|
|
722
|
-
/* harmony import */ var ansi_regex__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ansi-regex */ "../../node_modules/strip-ansi/node_modules/ansi-regex/index.js");
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
const regex = (0,ansi_regex__WEBPACK_IMPORTED_MODULE_0__["default"])();
|
|
726
|
-
|
|
727
|
-
function stripAnsi(string) {
|
|
728
|
-
if (typeof string !== 'string') {
|
|
729
|
-
throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
|
|
730
|
-
}
|
|
731
|
-
|
|
732
|
-
// Even though the regex is global, we don't need to reset the `.lastIndex`
|
|
733
|
-
// because unlike `.exec()` and `.test()`, `.replace()` does it automatically
|
|
734
|
-
// and doing it manually has a performance penalty.
|
|
735
|
-
return string.replace(regex, '');
|
|
736
|
-
}
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
/***/ }),
|
|
740
|
-
|
|
741
|
-
/***/ "../../node_modules/strip-ansi/node_modules/ansi-regex/index.js":
|
|
742
|
-
/*!**********************************************************************!*\
|
|
743
|
-
!*** ../../node_modules/strip-ansi/node_modules/ansi-regex/index.js ***!
|
|
744
|
-
\**********************************************************************/
|
|
745
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
746
|
-
|
|
747
|
-
__webpack_require__.r(__webpack_exports__);
|
|
748
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
749
|
-
/* harmony export */ "default": () => (/* binding */ ansiRegex)
|
|
750
|
-
/* harmony export */ });
|
|
751
|
-
function ansiRegex({onlyFirst = false} = {}) {
|
|
752
|
-
const pattern = [
|
|
753
|
-
'[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
|
|
754
|
-
'(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'
|
|
755
|
-
].join('|');
|
|
756
|
-
|
|
757
|
-
return new RegExp(pattern, onlyFirst ? undefined : 'g');
|
|
758
|
-
}
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
/***/ })
|
|
762
|
-
|
|
763
|
-
};
|