@unpackjs/core 1.7.1 → 1.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,133 +1,5 @@
1
1
  (() => {
2
2
  var __webpack_modules__ = {
3
- 2028: (module, __unused_webpack_exports, __nccwpck_require__) => {
4
- "use strict";
5
- module = __nccwpck_require__.nmd(module);
6
- const colorConvert = __nccwpck_require__(7107);
7
- const wrapAnsi16 = (fn, offset) =>
8
- function () {
9
- const code = fn.apply(colorConvert, arguments);
10
- return `[${code + offset}m`;
11
- };
12
- const wrapAnsi256 = (fn, offset) =>
13
- function () {
14
- const code = fn.apply(colorConvert, arguments);
15
- return `[${38 + offset};5;${code}m`;
16
- };
17
- const wrapAnsi16m = (fn, offset) =>
18
- function () {
19
- const rgb = fn.apply(colorConvert, arguments);
20
- return `[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
21
- };
22
- function assembleStyles() {
23
- const codes = new Map();
24
- const styles = {
25
- modifier: {
26
- reset: [0, 0],
27
- bold: [1, 22],
28
- dim: [2, 22],
29
- italic: [3, 23],
30
- underline: [4, 24],
31
- inverse: [7, 27],
32
- hidden: [8, 28],
33
- strikethrough: [9, 29],
34
- },
35
- color: {
36
- black: [30, 39],
37
- red: [31, 39],
38
- green: [32, 39],
39
- yellow: [33, 39],
40
- blue: [34, 39],
41
- magenta: [35, 39],
42
- cyan: [36, 39],
43
- white: [37, 39],
44
- gray: [90, 39],
45
- redBright: [91, 39],
46
- greenBright: [92, 39],
47
- yellowBright: [93, 39],
48
- blueBright: [94, 39],
49
- magentaBright: [95, 39],
50
- cyanBright: [96, 39],
51
- whiteBright: [97, 39],
52
- },
53
- bgColor: {
54
- bgBlack: [40, 49],
55
- bgRed: [41, 49],
56
- bgGreen: [42, 49],
57
- bgYellow: [43, 49],
58
- bgBlue: [44, 49],
59
- bgMagenta: [45, 49],
60
- bgCyan: [46, 49],
61
- bgWhite: [47, 49],
62
- bgBlackBright: [100, 49],
63
- bgRedBright: [101, 49],
64
- bgGreenBright: [102, 49],
65
- bgYellowBright: [103, 49],
66
- bgBlueBright: [104, 49],
67
- bgMagentaBright: [105, 49],
68
- bgCyanBright: [106, 49],
69
- bgWhiteBright: [107, 49],
70
- },
71
- };
72
- styles.color.grey = styles.color.gray;
73
- for (const groupName of Object.keys(styles)) {
74
- const group = styles[groupName];
75
- for (const styleName of Object.keys(group)) {
76
- const style = group[styleName];
77
- styles[styleName] = {
78
- open: `[${style[0]}m`,
79
- close: `[${style[1]}m`,
80
- };
81
- group[styleName] = styles[styleName];
82
- codes.set(style[0], style[1]);
83
- }
84
- Object.defineProperty(styles, groupName, {
85
- value: group,
86
- enumerable: false,
87
- });
88
- Object.defineProperty(styles, "codes", {
89
- value: codes,
90
- enumerable: false,
91
- });
92
- }
93
- const ansi2ansi = (n) => n;
94
- const rgb2rgb = (r, g, b) => [r, g, b];
95
- styles.color.close = "";
96
- styles.bgColor.close = "";
97
- styles.color.ansi = { ansi: wrapAnsi16(ansi2ansi, 0) };
98
- styles.color.ansi256 = { ansi256: wrapAnsi256(ansi2ansi, 0) };
99
- styles.color.ansi16m = { rgb: wrapAnsi16m(rgb2rgb, 0) };
100
- styles.bgColor.ansi = { ansi: wrapAnsi16(ansi2ansi, 10) };
101
- styles.bgColor.ansi256 = { ansi256: wrapAnsi256(ansi2ansi, 10) };
102
- styles.bgColor.ansi16m = { rgb: wrapAnsi16m(rgb2rgb, 10) };
103
- for (let key of Object.keys(colorConvert)) {
104
- if (typeof colorConvert[key] !== "object") {
105
- continue;
106
- }
107
- const suite = colorConvert[key];
108
- if (key === "ansi16") {
109
- key = "ansi";
110
- }
111
- if ("ansi16" in suite) {
112
- styles.color.ansi[key] = wrapAnsi16(suite.ansi16, 0);
113
- styles.bgColor.ansi[key] = wrapAnsi16(suite.ansi16, 10);
114
- }
115
- if ("ansi256" in suite) {
116
- styles.color.ansi256[key] = wrapAnsi256(suite.ansi256, 0);
117
- styles.bgColor.ansi256[key] = wrapAnsi256(suite.ansi256, 10);
118
- }
119
- if ("rgb" in suite) {
120
- styles.color.ansi16m[key] = wrapAnsi16m(suite.rgb, 0);
121
- styles.bgColor.ansi16m[key] = wrapAnsi16m(suite.rgb, 10);
122
- }
123
- }
124
- return styles;
125
- }
126
- Object.defineProperty(module, "exports", {
127
- enumerable: true,
128
- get: assembleStyles,
129
- });
130
- },
131
3
  8633: (module) => {
132
4
  "use strict";
133
5
  const callsites = () => {
@@ -140,1328 +12,6 @@
140
12
  module.exports = callsites;
141
13
  module.exports["default"] = callsites;
142
14
  },
143
- 9318: (module, __unused_webpack_exports, __nccwpck_require__) => {
144
- "use strict";
145
- const escapeStringRegexp = __nccwpck_require__(2656);
146
- const ansiStyles = __nccwpck_require__(2028);
147
- const stdoutColor = __nccwpck_require__(8018).stdout;
148
- const template = __nccwpck_require__(4091);
149
- const isSimpleWindowsTerm =
150
- process.platform === "win32" &&
151
- !(process.env.TERM || "").toLowerCase().startsWith("xterm");
152
- const levelMapping = ["ansi", "ansi", "ansi256", "ansi16m"];
153
- const skipModels = new Set(["gray"]);
154
- const styles = Object.create(null);
155
- function applyOptions(obj, options) {
156
- options = options || {};
157
- const scLevel = stdoutColor ? stdoutColor.level : 0;
158
- obj.level = options.level === undefined ? scLevel : options.level;
159
- obj.enabled = "enabled" in options ? options.enabled : obj.level > 0;
160
- }
161
- function Chalk(options) {
162
- if (!this || !(this instanceof Chalk) || this.template) {
163
- const chalk = {};
164
- applyOptions(chalk, options);
165
- chalk.template = function () {
166
- const args = [].slice.call(arguments);
167
- return chalkTag.apply(null, [chalk.template].concat(args));
168
- };
169
- Object.setPrototypeOf(chalk, Chalk.prototype);
170
- Object.setPrototypeOf(chalk.template, chalk);
171
- chalk.template.constructor = Chalk;
172
- return chalk.template;
173
- }
174
- applyOptions(this, options);
175
- }
176
- if (isSimpleWindowsTerm) {
177
- ansiStyles.blue.open = "";
178
- }
179
- for (const key of Object.keys(ansiStyles)) {
180
- ansiStyles[key].closeRe = new RegExp(
181
- escapeStringRegexp(ansiStyles[key].close),
182
- "g",
183
- );
184
- styles[key] = {
185
- get() {
186
- const codes = ansiStyles[key];
187
- return build.call(
188
- this,
189
- this._styles ? this._styles.concat(codes) : [codes],
190
- this._empty,
191
- key,
192
- );
193
- },
194
- };
195
- }
196
- styles.visible = {
197
- get() {
198
- return build.call(this, this._styles || [], true, "visible");
199
- },
200
- };
201
- ansiStyles.color.closeRe = new RegExp(
202
- escapeStringRegexp(ansiStyles.color.close),
203
- "g",
204
- );
205
- for (const model of Object.keys(ansiStyles.color.ansi)) {
206
- if (skipModels.has(model)) {
207
- continue;
208
- }
209
- styles[model] = {
210
- get() {
211
- const level = this.level;
212
- return function () {
213
- const open = ansiStyles.color[levelMapping[level]][model].apply(
214
- null,
215
- arguments,
216
- );
217
- const codes = {
218
- open,
219
- close: ansiStyles.color.close,
220
- closeRe: ansiStyles.color.closeRe,
221
- };
222
- return build.call(
223
- this,
224
- this._styles ? this._styles.concat(codes) : [codes],
225
- this._empty,
226
- model,
227
- );
228
- };
229
- },
230
- };
231
- }
232
- ansiStyles.bgColor.closeRe = new RegExp(
233
- escapeStringRegexp(ansiStyles.bgColor.close),
234
- "g",
235
- );
236
- for (const model of Object.keys(ansiStyles.bgColor.ansi)) {
237
- if (skipModels.has(model)) {
238
- continue;
239
- }
240
- const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
241
- styles[bgModel] = {
242
- get() {
243
- const level = this.level;
244
- return function () {
245
- const open = ansiStyles.bgColor[levelMapping[level]][model].apply(
246
- null,
247
- arguments,
248
- );
249
- const codes = {
250
- open,
251
- close: ansiStyles.bgColor.close,
252
- closeRe: ansiStyles.bgColor.closeRe,
253
- };
254
- return build.call(
255
- this,
256
- this._styles ? this._styles.concat(codes) : [codes],
257
- this._empty,
258
- model,
259
- );
260
- };
261
- },
262
- };
263
- }
264
- const proto = Object.defineProperties(() => {}, styles);
265
- function build(_styles, _empty, key) {
266
- const builder = function () {
267
- return applyStyle.apply(builder, arguments);
268
- };
269
- builder._styles = _styles;
270
- builder._empty = _empty;
271
- const self = this;
272
- Object.defineProperty(builder, "level", {
273
- enumerable: true,
274
- get() {
275
- return self.level;
276
- },
277
- set(level) {
278
- self.level = level;
279
- },
280
- });
281
- Object.defineProperty(builder, "enabled", {
282
- enumerable: true,
283
- get() {
284
- return self.enabled;
285
- },
286
- set(enabled) {
287
- self.enabled = enabled;
288
- },
289
- });
290
- builder.hasGrey = this.hasGrey || key === "gray" || key === "grey";
291
- builder.__proto__ = proto;
292
- return builder;
293
- }
294
- function applyStyle() {
295
- const args = arguments;
296
- const argsLen = args.length;
297
- let str = String(arguments[0]);
298
- if (argsLen === 0) {
299
- return "";
300
- }
301
- if (argsLen > 1) {
302
- for (let a = 1; a < argsLen; a++) {
303
- str += " " + args[a];
304
- }
305
- }
306
- if (!this.enabled || this.level <= 0 || !str) {
307
- return this._empty ? "" : str;
308
- }
309
- const originalDim = ansiStyles.dim.open;
310
- if (isSimpleWindowsTerm && this.hasGrey) {
311
- ansiStyles.dim.open = "";
312
- }
313
- for (const code of this._styles.slice().reverse()) {
314
- str = code.open + str.replace(code.closeRe, code.open) + code.close;
315
- str = str.replace(/\r?\n/g, `${code.close}$&${code.open}`);
316
- }
317
- ansiStyles.dim.open = originalDim;
318
- return str;
319
- }
320
- function chalkTag(chalk, strings) {
321
- if (!Array.isArray(strings)) {
322
- return [].slice.call(arguments, 1).join(" ");
323
- }
324
- const args = [].slice.call(arguments, 2);
325
- const parts = [strings.raw[0]];
326
- for (let i = 1; i < strings.length; i++) {
327
- parts.push(String(args[i - 1]).replace(/[{}\\]/g, "\\$&"));
328
- parts.push(String(strings.raw[i]));
329
- }
330
- return template(chalk, parts.join(""));
331
- }
332
- Object.defineProperties(Chalk.prototype, styles);
333
- module.exports = Chalk();
334
- module.exports.supportsColor = stdoutColor;
335
- module.exports["default"] = module.exports;
336
- },
337
- 4091: (module) => {
338
- "use strict";
339
- const TEMPLATE_REGEX =
340
- /(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;
341
- const STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
342
- const STRING_REGEX = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;
343
- const ESCAPE_REGEX = /\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi;
344
- const ESCAPES = new Map([
345
- ["n", "\n"],
346
- ["r", "\r"],
347
- ["t", "\t"],
348
- ["b", "\b"],
349
- ["f", "\f"],
350
- ["v", "\v"],
351
- ["0", "\0"],
352
- ["\\", "\\"],
353
- ["e", ""],
354
- ["a", ""],
355
- ]);
356
- function unescape(c) {
357
- if (
358
- (c[0] === "u" && c.length === 5) ||
359
- (c[0] === "x" && c.length === 3)
360
- ) {
361
- return String.fromCharCode(parseInt(c.slice(1), 16));
362
- }
363
- return ESCAPES.get(c) || c;
364
- }
365
- function parseArguments(name, args) {
366
- const results = [];
367
- const chunks = args.trim().split(/\s*,\s*/g);
368
- let matches;
369
- for (const chunk of chunks) {
370
- if (!isNaN(chunk)) {
371
- results.push(Number(chunk));
372
- } else if ((matches = chunk.match(STRING_REGEX))) {
373
- results.push(
374
- matches[2].replace(ESCAPE_REGEX, (m, escape, chr) =>
375
- escape ? unescape(escape) : chr,
376
- ),
377
- );
378
- } else {
379
- throw new Error(
380
- `Invalid Chalk template style argument: ${chunk} (in style '${name}')`,
381
- );
382
- }
383
- }
384
- return results;
385
- }
386
- function parseStyle(style) {
387
- STYLE_REGEX.lastIndex = 0;
388
- const results = [];
389
- let matches;
390
- while ((matches = STYLE_REGEX.exec(style)) !== null) {
391
- const name = matches[1];
392
- if (matches[2]) {
393
- const args = parseArguments(name, matches[2]);
394
- results.push([name].concat(args));
395
- } else {
396
- results.push([name]);
397
- }
398
- }
399
- return results;
400
- }
401
- function buildStyle(chalk, styles) {
402
- const enabled = {};
403
- for (const layer of styles) {
404
- for (const style of layer.styles) {
405
- enabled[style[0]] = layer.inverse ? null : style.slice(1);
406
- }
407
- }
408
- let current = chalk;
409
- for (const styleName of Object.keys(enabled)) {
410
- if (Array.isArray(enabled[styleName])) {
411
- if (!(styleName in current)) {
412
- throw new Error(`Unknown Chalk style: ${styleName}`);
413
- }
414
- if (enabled[styleName].length > 0) {
415
- current = current[styleName].apply(current, enabled[styleName]);
416
- } else {
417
- current = current[styleName];
418
- }
419
- }
420
- }
421
- return current;
422
- }
423
- module.exports = (chalk, tmp) => {
424
- const styles = [];
425
- const chunks = [];
426
- let chunk = [];
427
- tmp.replace(
428
- TEMPLATE_REGEX,
429
- (m, escapeChar, inverse, style, close, chr) => {
430
- if (escapeChar) {
431
- chunk.push(unescape(escapeChar));
432
- } else if (style) {
433
- const str = chunk.join("");
434
- chunk = [];
435
- chunks.push(
436
- styles.length === 0 ? str : buildStyle(chalk, styles)(str),
437
- );
438
- styles.push({ inverse, styles: parseStyle(style) });
439
- } else if (close) {
440
- if (styles.length === 0) {
441
- throw new Error("Found extraneous } in Chalk template literal");
442
- }
443
- chunks.push(buildStyle(chalk, styles)(chunk.join("")));
444
- chunk = [];
445
- styles.pop();
446
- } else {
447
- chunk.push(chr);
448
- }
449
- },
450
- );
451
- chunks.push(chunk.join(""));
452
- if (styles.length > 0) {
453
- const errMsg = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? "" : "s"} (\`}\`)`;
454
- throw new Error(errMsg);
455
- }
456
- return chunks.join("");
457
- };
458
- },
459
- 302: (module, __unused_webpack_exports, __nccwpck_require__) => {
460
- var cssKeywords = __nccwpck_require__(8782);
461
- var reverseKeywords = {};
462
- for (var key in cssKeywords) {
463
- if (cssKeywords.hasOwnProperty(key)) {
464
- reverseKeywords[cssKeywords[key]] = key;
465
- }
466
- }
467
- var convert = (module.exports = {
468
- rgb: { channels: 3, labels: "rgb" },
469
- hsl: { channels: 3, labels: "hsl" },
470
- hsv: { channels: 3, labels: "hsv" },
471
- hwb: { channels: 3, labels: "hwb" },
472
- cmyk: { channels: 4, labels: "cmyk" },
473
- xyz: { channels: 3, labels: "xyz" },
474
- lab: { channels: 3, labels: "lab" },
475
- lch: { channels: 3, labels: "lch" },
476
- hex: { channels: 1, labels: ["hex"] },
477
- keyword: { channels: 1, labels: ["keyword"] },
478
- ansi16: { channels: 1, labels: ["ansi16"] },
479
- ansi256: { channels: 1, labels: ["ansi256"] },
480
- hcg: { channels: 3, labels: ["h", "c", "g"] },
481
- apple: { channels: 3, labels: ["r16", "g16", "b16"] },
482
- gray: { channels: 1, labels: ["gray"] },
483
- });
484
- for (var model in convert) {
485
- if (convert.hasOwnProperty(model)) {
486
- if (!("channels" in convert[model])) {
487
- throw new Error("missing channels property: " + model);
488
- }
489
- if (!("labels" in convert[model])) {
490
- throw new Error("missing channel labels property: " + model);
491
- }
492
- if (convert[model].labels.length !== convert[model].channels) {
493
- throw new Error("channel and label counts mismatch: " + model);
494
- }
495
- var channels = convert[model].channels;
496
- var labels = convert[model].labels;
497
- delete convert[model].channels;
498
- delete convert[model].labels;
499
- Object.defineProperty(convert[model], "channels", {
500
- value: channels,
501
- });
502
- Object.defineProperty(convert[model], "labels", { value: labels });
503
- }
504
- }
505
- convert.rgb.hsl = function (rgb) {
506
- var r = rgb[0] / 255;
507
- var g = rgb[1] / 255;
508
- var b = rgb[2] / 255;
509
- var min = Math.min(r, g, b);
510
- var max = Math.max(r, g, b);
511
- var delta = max - min;
512
- var h;
513
- var s;
514
- var l;
515
- if (max === min) {
516
- h = 0;
517
- } else if (r === max) {
518
- h = (g - b) / delta;
519
- } else if (g === max) {
520
- h = 2 + (b - r) / delta;
521
- } else if (b === max) {
522
- h = 4 + (r - g) / delta;
523
- }
524
- h = Math.min(h * 60, 360);
525
- if (h < 0) {
526
- h += 360;
527
- }
528
- l = (min + max) / 2;
529
- if (max === min) {
530
- s = 0;
531
- } else if (l <= 0.5) {
532
- s = delta / (max + min);
533
- } else {
534
- s = delta / (2 - max - min);
535
- }
536
- return [h, s * 100, l * 100];
537
- };
538
- convert.rgb.hsv = function (rgb) {
539
- var rdif;
540
- var gdif;
541
- var bdif;
542
- var h;
543
- var s;
544
- var r = rgb[0] / 255;
545
- var g = rgb[1] / 255;
546
- var b = rgb[2] / 255;
547
- var v = Math.max(r, g, b);
548
- var diff = v - Math.min(r, g, b);
549
- var diffc = function (c) {
550
- return (v - c) / 6 / diff + 1 / 2;
551
- };
552
- if (diff === 0) {
553
- h = s = 0;
554
- } else {
555
- s = diff / v;
556
- rdif = diffc(r);
557
- gdif = diffc(g);
558
- bdif = diffc(b);
559
- if (r === v) {
560
- h = bdif - gdif;
561
- } else if (g === v) {
562
- h = 1 / 3 + rdif - bdif;
563
- } else if (b === v) {
564
- h = 2 / 3 + gdif - rdif;
565
- }
566
- if (h < 0) {
567
- h += 1;
568
- } else if (h > 1) {
569
- h -= 1;
570
- }
571
- }
572
- return [h * 360, s * 100, v * 100];
573
- };
574
- convert.rgb.hwb = function (rgb) {
575
- var r = rgb[0];
576
- var g = rgb[1];
577
- var b = rgb[2];
578
- var h = convert.rgb.hsl(rgb)[0];
579
- var w = (1 / 255) * Math.min(r, Math.min(g, b));
580
- b = 1 - (1 / 255) * Math.max(r, Math.max(g, b));
581
- return [h, w * 100, b * 100];
582
- };
583
- convert.rgb.cmyk = function (rgb) {
584
- var r = rgb[0] / 255;
585
- var g = rgb[1] / 255;
586
- var b = rgb[2] / 255;
587
- var c;
588
- var m;
589
- var y;
590
- var k;
591
- k = Math.min(1 - r, 1 - g, 1 - b);
592
- c = (1 - r - k) / (1 - k) || 0;
593
- m = (1 - g - k) / (1 - k) || 0;
594
- y = (1 - b - k) / (1 - k) || 0;
595
- return [c * 100, m * 100, y * 100, k * 100];
596
- };
597
- function comparativeDistance(x, y) {
598
- return (
599
- Math.pow(x[0] - y[0], 2) +
600
- Math.pow(x[1] - y[1], 2) +
601
- Math.pow(x[2] - y[2], 2)
602
- );
603
- }
604
- convert.rgb.keyword = function (rgb) {
605
- var reversed = reverseKeywords[rgb];
606
- if (reversed) {
607
- return reversed;
608
- }
609
- var currentClosestDistance = Infinity;
610
- var currentClosestKeyword;
611
- for (var keyword in cssKeywords) {
612
- if (cssKeywords.hasOwnProperty(keyword)) {
613
- var value = cssKeywords[keyword];
614
- var distance = comparativeDistance(rgb, value);
615
- if (distance < currentClosestDistance) {
616
- currentClosestDistance = distance;
617
- currentClosestKeyword = keyword;
618
- }
619
- }
620
- }
621
- return currentClosestKeyword;
622
- };
623
- convert.keyword.rgb = function (keyword) {
624
- return cssKeywords[keyword];
625
- };
626
- convert.rgb.xyz = function (rgb) {
627
- var r = rgb[0] / 255;
628
- var g = rgb[1] / 255;
629
- var b = rgb[2] / 255;
630
- r = r > 0.04045 ? Math.pow((r + 0.055) / 1.055, 2.4) : r / 12.92;
631
- g = g > 0.04045 ? Math.pow((g + 0.055) / 1.055, 2.4) : g / 12.92;
632
- b = b > 0.04045 ? Math.pow((b + 0.055) / 1.055, 2.4) : b / 12.92;
633
- var x = r * 0.4124 + g * 0.3576 + b * 0.1805;
634
- var y = r * 0.2126 + g * 0.7152 + b * 0.0722;
635
- var z = r * 0.0193 + g * 0.1192 + b * 0.9505;
636
- return [x * 100, y * 100, z * 100];
637
- };
638
- convert.rgb.lab = function (rgb) {
639
- var xyz = convert.rgb.xyz(rgb);
640
- var x = xyz[0];
641
- var y = xyz[1];
642
- var z = xyz[2];
643
- var l;
644
- var a;
645
- var b;
646
- x /= 95.047;
647
- y /= 100;
648
- z /= 108.883;
649
- x = x > 0.008856 ? Math.pow(x, 1 / 3) : 7.787 * x + 16 / 116;
650
- y = y > 0.008856 ? Math.pow(y, 1 / 3) : 7.787 * y + 16 / 116;
651
- z = z > 0.008856 ? Math.pow(z, 1 / 3) : 7.787 * z + 16 / 116;
652
- l = 116 * y - 16;
653
- a = 500 * (x - y);
654
- b = 200 * (y - z);
655
- return [l, a, b];
656
- };
657
- convert.hsl.rgb = function (hsl) {
658
- var h = hsl[0] / 360;
659
- var s = hsl[1] / 100;
660
- var l = hsl[2] / 100;
661
- var t1;
662
- var t2;
663
- var t3;
664
- var rgb;
665
- var val;
666
- if (s === 0) {
667
- val = l * 255;
668
- return [val, val, val];
669
- }
670
- if (l < 0.5) {
671
- t2 = l * (1 + s);
672
- } else {
673
- t2 = l + s - l * s;
674
- }
675
- t1 = 2 * l - t2;
676
- rgb = [0, 0, 0];
677
- for (var i = 0; i < 3; i++) {
678
- t3 = h + (1 / 3) * -(i - 1);
679
- if (t3 < 0) {
680
- t3++;
681
- }
682
- if (t3 > 1) {
683
- t3--;
684
- }
685
- if (6 * t3 < 1) {
686
- val = t1 + (t2 - t1) * 6 * t3;
687
- } else if (2 * t3 < 1) {
688
- val = t2;
689
- } else if (3 * t3 < 2) {
690
- val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
691
- } else {
692
- val = t1;
693
- }
694
- rgb[i] = val * 255;
695
- }
696
- return rgb;
697
- };
698
- convert.hsl.hsv = function (hsl) {
699
- var h = hsl[0];
700
- var s = hsl[1] / 100;
701
- var l = hsl[2] / 100;
702
- var smin = s;
703
- var lmin = Math.max(l, 0.01);
704
- var sv;
705
- var v;
706
- l *= 2;
707
- s *= l <= 1 ? l : 2 - l;
708
- smin *= lmin <= 1 ? lmin : 2 - lmin;
709
- v = (l + s) / 2;
710
- sv = l === 0 ? (2 * smin) / (lmin + smin) : (2 * s) / (l + s);
711
- return [h, sv * 100, v * 100];
712
- };
713
- convert.hsv.rgb = function (hsv) {
714
- var h = hsv[0] / 60;
715
- var s = hsv[1] / 100;
716
- var v = hsv[2] / 100;
717
- var hi = Math.floor(h) % 6;
718
- var f = h - Math.floor(h);
719
- var p = 255 * v * (1 - s);
720
- var q = 255 * v * (1 - s * f);
721
- var t = 255 * v * (1 - s * (1 - f));
722
- v *= 255;
723
- switch (hi) {
724
- case 0:
725
- return [v, t, p];
726
- case 1:
727
- return [q, v, p];
728
- case 2:
729
- return [p, v, t];
730
- case 3:
731
- return [p, q, v];
732
- case 4:
733
- return [t, p, v];
734
- case 5:
735
- return [v, p, q];
736
- }
737
- };
738
- convert.hsv.hsl = function (hsv) {
739
- var h = hsv[0];
740
- var s = hsv[1] / 100;
741
- var v = hsv[2] / 100;
742
- var vmin = Math.max(v, 0.01);
743
- var lmin;
744
- var sl;
745
- var l;
746
- l = (2 - s) * v;
747
- lmin = (2 - s) * vmin;
748
- sl = s * vmin;
749
- sl /= lmin <= 1 ? lmin : 2 - lmin;
750
- sl = sl || 0;
751
- l /= 2;
752
- return [h, sl * 100, l * 100];
753
- };
754
- convert.hwb.rgb = function (hwb) {
755
- var h = hwb[0] / 360;
756
- var wh = hwb[1] / 100;
757
- var bl = hwb[2] / 100;
758
- var ratio = wh + bl;
759
- var i;
760
- var v;
761
- var f;
762
- var n;
763
- if (ratio > 1) {
764
- wh /= ratio;
765
- bl /= ratio;
766
- }
767
- i = Math.floor(6 * h);
768
- v = 1 - bl;
769
- f = 6 * h - i;
770
- if ((i & 1) !== 0) {
771
- f = 1 - f;
772
- }
773
- n = wh + f * (v - wh);
774
- var r;
775
- var g;
776
- var b;
777
- switch (i) {
778
- default:
779
- case 6:
780
- case 0:
781
- r = v;
782
- g = n;
783
- b = wh;
784
- break;
785
- case 1:
786
- r = n;
787
- g = v;
788
- b = wh;
789
- break;
790
- case 2:
791
- r = wh;
792
- g = v;
793
- b = n;
794
- break;
795
- case 3:
796
- r = wh;
797
- g = n;
798
- b = v;
799
- break;
800
- case 4:
801
- r = n;
802
- g = wh;
803
- b = v;
804
- break;
805
- case 5:
806
- r = v;
807
- g = wh;
808
- b = n;
809
- break;
810
- }
811
- return [r * 255, g * 255, b * 255];
812
- };
813
- convert.cmyk.rgb = function (cmyk) {
814
- var c = cmyk[0] / 100;
815
- var m = cmyk[1] / 100;
816
- var y = cmyk[2] / 100;
817
- var k = cmyk[3] / 100;
818
- var r;
819
- var g;
820
- var b;
821
- r = 1 - Math.min(1, c * (1 - k) + k);
822
- g = 1 - Math.min(1, m * (1 - k) + k);
823
- b = 1 - Math.min(1, y * (1 - k) + k);
824
- return [r * 255, g * 255, b * 255];
825
- };
826
- convert.xyz.rgb = function (xyz) {
827
- var x = xyz[0] / 100;
828
- var y = xyz[1] / 100;
829
- var z = xyz[2] / 100;
830
- var r;
831
- var g;
832
- var b;
833
- r = x * 3.2406 + y * -1.5372 + z * -0.4986;
834
- g = x * -0.9689 + y * 1.8758 + z * 0.0415;
835
- b = x * 0.0557 + y * -0.204 + z * 1.057;
836
- r = r > 0.0031308 ? 1.055 * Math.pow(r, 1 / 2.4) - 0.055 : r * 12.92;
837
- g = g > 0.0031308 ? 1.055 * Math.pow(g, 1 / 2.4) - 0.055 : g * 12.92;
838
- b = b > 0.0031308 ? 1.055 * Math.pow(b, 1 / 2.4) - 0.055 : b * 12.92;
839
- r = Math.min(Math.max(0, r), 1);
840
- g = Math.min(Math.max(0, g), 1);
841
- b = Math.min(Math.max(0, b), 1);
842
- return [r * 255, g * 255, b * 255];
843
- };
844
- convert.xyz.lab = function (xyz) {
845
- var x = xyz[0];
846
- var y = xyz[1];
847
- var z = xyz[2];
848
- var l;
849
- var a;
850
- var b;
851
- x /= 95.047;
852
- y /= 100;
853
- z /= 108.883;
854
- x = x > 0.008856 ? Math.pow(x, 1 / 3) : 7.787 * x + 16 / 116;
855
- y = y > 0.008856 ? Math.pow(y, 1 / 3) : 7.787 * y + 16 / 116;
856
- z = z > 0.008856 ? Math.pow(z, 1 / 3) : 7.787 * z + 16 / 116;
857
- l = 116 * y - 16;
858
- a = 500 * (x - y);
859
- b = 200 * (y - z);
860
- return [l, a, b];
861
- };
862
- convert.lab.xyz = function (lab) {
863
- var l = lab[0];
864
- var a = lab[1];
865
- var b = lab[2];
866
- var x;
867
- var y;
868
- var z;
869
- y = (l + 16) / 116;
870
- x = a / 500 + y;
871
- z = y - b / 200;
872
- var y2 = Math.pow(y, 3);
873
- var x2 = Math.pow(x, 3);
874
- var z2 = Math.pow(z, 3);
875
- y = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787;
876
- x = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787;
877
- z = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787;
878
- x *= 95.047;
879
- y *= 100;
880
- z *= 108.883;
881
- return [x, y, z];
882
- };
883
- convert.lab.lch = function (lab) {
884
- var l = lab[0];
885
- var a = lab[1];
886
- var b = lab[2];
887
- var hr;
888
- var h;
889
- var c;
890
- hr = Math.atan2(b, a);
891
- h = (hr * 360) / 2 / Math.PI;
892
- if (h < 0) {
893
- h += 360;
894
- }
895
- c = Math.sqrt(a * a + b * b);
896
- return [l, c, h];
897
- };
898
- convert.lch.lab = function (lch) {
899
- var l = lch[0];
900
- var c = lch[1];
901
- var h = lch[2];
902
- var a;
903
- var b;
904
- var hr;
905
- hr = (h / 360) * 2 * Math.PI;
906
- a = c * Math.cos(hr);
907
- b = c * Math.sin(hr);
908
- return [l, a, b];
909
- };
910
- convert.rgb.ansi16 = function (args) {
911
- var r = args[0];
912
- var g = args[1];
913
- var b = args[2];
914
- var value = 1 in arguments ? arguments[1] : convert.rgb.hsv(args)[2];
915
- value = Math.round(value / 50);
916
- if (value === 0) {
917
- return 30;
918
- }
919
- var ansi =
920
- 30 +
921
- ((Math.round(b / 255) << 2) |
922
- (Math.round(g / 255) << 1) |
923
- Math.round(r / 255));
924
- if (value === 2) {
925
- ansi += 60;
926
- }
927
- return ansi;
928
- };
929
- convert.hsv.ansi16 = function (args) {
930
- return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);
931
- };
932
- convert.rgb.ansi256 = function (args) {
933
- var r = args[0];
934
- var g = args[1];
935
- var b = args[2];
936
- if (r === g && g === b) {
937
- if (r < 8) {
938
- return 16;
939
- }
940
- if (r > 248) {
941
- return 231;
942
- }
943
- return Math.round(((r - 8) / 247) * 24) + 232;
944
- }
945
- var ansi =
946
- 16 +
947
- 36 * Math.round((r / 255) * 5) +
948
- 6 * Math.round((g / 255) * 5) +
949
- Math.round((b / 255) * 5);
950
- return ansi;
951
- };
952
- convert.ansi16.rgb = function (args) {
953
- var color = args % 10;
954
- if (color === 0 || color === 7) {
955
- if (args > 50) {
956
- color += 3.5;
957
- }
958
- color = (color / 10.5) * 255;
959
- return [color, color, color];
960
- }
961
- var mult = (~~(args > 50) + 1) * 0.5;
962
- var r = (color & 1) * mult * 255;
963
- var g = ((color >> 1) & 1) * mult * 255;
964
- var b = ((color >> 2) & 1) * mult * 255;
965
- return [r, g, b];
966
- };
967
- convert.ansi256.rgb = function (args) {
968
- if (args >= 232) {
969
- var c = (args - 232) * 10 + 8;
970
- return [c, c, c];
971
- }
972
- args -= 16;
973
- var rem;
974
- var r = (Math.floor(args / 36) / 5) * 255;
975
- var g = (Math.floor((rem = args % 36) / 6) / 5) * 255;
976
- var b = ((rem % 6) / 5) * 255;
977
- return [r, g, b];
978
- };
979
- convert.rgb.hex = function (args) {
980
- var integer =
981
- ((Math.round(args[0]) & 255) << 16) +
982
- ((Math.round(args[1]) & 255) << 8) +
983
- (Math.round(args[2]) & 255);
984
- var string = integer.toString(16).toUpperCase();
985
- return "000000".substring(string.length) + string;
986
- };
987
- convert.hex.rgb = function (args) {
988
- var match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
989
- if (!match) {
990
- return [0, 0, 0];
991
- }
992
- var colorString = match[0];
993
- if (match[0].length === 3) {
994
- colorString = colorString
995
- .split("")
996
- .map(function (char) {
997
- return char + char;
998
- })
999
- .join("");
1000
- }
1001
- var integer = parseInt(colorString, 16);
1002
- var r = (integer >> 16) & 255;
1003
- var g = (integer >> 8) & 255;
1004
- var b = integer & 255;
1005
- return [r, g, b];
1006
- };
1007
- convert.rgb.hcg = function (rgb) {
1008
- var r = rgb[0] / 255;
1009
- var g = rgb[1] / 255;
1010
- var b = rgb[2] / 255;
1011
- var max = Math.max(Math.max(r, g), b);
1012
- var min = Math.min(Math.min(r, g), b);
1013
- var chroma = max - min;
1014
- var grayscale;
1015
- var hue;
1016
- if (chroma < 1) {
1017
- grayscale = min / (1 - chroma);
1018
- } else {
1019
- grayscale = 0;
1020
- }
1021
- if (chroma <= 0) {
1022
- hue = 0;
1023
- } else if (max === r) {
1024
- hue = ((g - b) / chroma) % 6;
1025
- } else if (max === g) {
1026
- hue = 2 + (b - r) / chroma;
1027
- } else {
1028
- hue = 4 + (r - g) / chroma + 4;
1029
- }
1030
- hue /= 6;
1031
- hue %= 1;
1032
- return [hue * 360, chroma * 100, grayscale * 100];
1033
- };
1034
- convert.hsl.hcg = function (hsl) {
1035
- var s = hsl[1] / 100;
1036
- var l = hsl[2] / 100;
1037
- var c = 1;
1038
- var f = 0;
1039
- if (l < 0.5) {
1040
- c = 2 * s * l;
1041
- } else {
1042
- c = 2 * s * (1 - l);
1043
- }
1044
- if (c < 1) {
1045
- f = (l - 0.5 * c) / (1 - c);
1046
- }
1047
- return [hsl[0], c * 100, f * 100];
1048
- };
1049
- convert.hsv.hcg = function (hsv) {
1050
- var s = hsv[1] / 100;
1051
- var v = hsv[2] / 100;
1052
- var c = s * v;
1053
- var f = 0;
1054
- if (c < 1) {
1055
- f = (v - c) / (1 - c);
1056
- }
1057
- return [hsv[0], c * 100, f * 100];
1058
- };
1059
- convert.hcg.rgb = function (hcg) {
1060
- var h = hcg[0] / 360;
1061
- var c = hcg[1] / 100;
1062
- var g = hcg[2] / 100;
1063
- if (c === 0) {
1064
- return [g * 255, g * 255, g * 255];
1065
- }
1066
- var pure = [0, 0, 0];
1067
- var hi = (h % 1) * 6;
1068
- var v = hi % 1;
1069
- var w = 1 - v;
1070
- var mg = 0;
1071
- switch (Math.floor(hi)) {
1072
- case 0:
1073
- pure[0] = 1;
1074
- pure[1] = v;
1075
- pure[2] = 0;
1076
- break;
1077
- case 1:
1078
- pure[0] = w;
1079
- pure[1] = 1;
1080
- pure[2] = 0;
1081
- break;
1082
- case 2:
1083
- pure[0] = 0;
1084
- pure[1] = 1;
1085
- pure[2] = v;
1086
- break;
1087
- case 3:
1088
- pure[0] = 0;
1089
- pure[1] = w;
1090
- pure[2] = 1;
1091
- break;
1092
- case 4:
1093
- pure[0] = v;
1094
- pure[1] = 0;
1095
- pure[2] = 1;
1096
- break;
1097
- default:
1098
- pure[0] = 1;
1099
- pure[1] = 0;
1100
- pure[2] = w;
1101
- }
1102
- mg = (1 - c) * g;
1103
- return [
1104
- (c * pure[0] + mg) * 255,
1105
- (c * pure[1] + mg) * 255,
1106
- (c * pure[2] + mg) * 255,
1107
- ];
1108
- };
1109
- convert.hcg.hsv = function (hcg) {
1110
- var c = hcg[1] / 100;
1111
- var g = hcg[2] / 100;
1112
- var v = c + g * (1 - c);
1113
- var f = 0;
1114
- if (v > 0) {
1115
- f = c / v;
1116
- }
1117
- return [hcg[0], f * 100, v * 100];
1118
- };
1119
- convert.hcg.hsl = function (hcg) {
1120
- var c = hcg[1] / 100;
1121
- var g = hcg[2] / 100;
1122
- var l = g * (1 - c) + 0.5 * c;
1123
- var s = 0;
1124
- if (l > 0 && l < 0.5) {
1125
- s = c / (2 * l);
1126
- } else if (l >= 0.5 && l < 1) {
1127
- s = c / (2 * (1 - l));
1128
- }
1129
- return [hcg[0], s * 100, l * 100];
1130
- };
1131
- convert.hcg.hwb = function (hcg) {
1132
- var c = hcg[1] / 100;
1133
- var g = hcg[2] / 100;
1134
- var v = c + g * (1 - c);
1135
- return [hcg[0], (v - c) * 100, (1 - v) * 100];
1136
- };
1137
- convert.hwb.hcg = function (hwb) {
1138
- var w = hwb[1] / 100;
1139
- var b = hwb[2] / 100;
1140
- var v = 1 - b;
1141
- var c = v - w;
1142
- var g = 0;
1143
- if (c < 1) {
1144
- g = (v - c) / (1 - c);
1145
- }
1146
- return [hwb[0], c * 100, g * 100];
1147
- };
1148
- convert.apple.rgb = function (apple) {
1149
- return [
1150
- (apple[0] / 65535) * 255,
1151
- (apple[1] / 65535) * 255,
1152
- (apple[2] / 65535) * 255,
1153
- ];
1154
- };
1155
- convert.rgb.apple = function (rgb) {
1156
- return [
1157
- (rgb[0] / 255) * 65535,
1158
- (rgb[1] / 255) * 65535,
1159
- (rgb[2] / 255) * 65535,
1160
- ];
1161
- };
1162
- convert.gray.rgb = function (args) {
1163
- return [
1164
- (args[0] / 100) * 255,
1165
- (args[0] / 100) * 255,
1166
- (args[0] / 100) * 255,
1167
- ];
1168
- };
1169
- convert.gray.hsl = convert.gray.hsv = function (args) {
1170
- return [0, 0, args[0]];
1171
- };
1172
- convert.gray.hwb = function (gray) {
1173
- return [0, 100, gray[0]];
1174
- };
1175
- convert.gray.cmyk = function (gray) {
1176
- return [0, 0, 0, gray[0]];
1177
- };
1178
- convert.gray.lab = function (gray) {
1179
- return [gray[0], 0, 0];
1180
- };
1181
- convert.gray.hex = function (gray) {
1182
- var val = Math.round((gray[0] / 100) * 255) & 255;
1183
- var integer = (val << 16) + (val << 8) + val;
1184
- var string = integer.toString(16).toUpperCase();
1185
- return "000000".substring(string.length) + string;
1186
- };
1187
- convert.rgb.gray = function (rgb) {
1188
- var val = (rgb[0] + rgb[1] + rgb[2]) / 3;
1189
- return [(val / 255) * 100];
1190
- };
1191
- },
1192
- 7107: (module, __unused_webpack_exports, __nccwpck_require__) => {
1193
- var conversions = __nccwpck_require__(302);
1194
- var route = __nccwpck_require__(7012);
1195
- var convert = {};
1196
- var models = Object.keys(conversions);
1197
- function wrapRaw(fn) {
1198
- var wrappedFn = function (args) {
1199
- if (args === undefined || args === null) {
1200
- return args;
1201
- }
1202
- if (arguments.length > 1) {
1203
- args = Array.prototype.slice.call(arguments);
1204
- }
1205
- return fn(args);
1206
- };
1207
- if ("conversion" in fn) {
1208
- wrappedFn.conversion = fn.conversion;
1209
- }
1210
- return wrappedFn;
1211
- }
1212
- function wrapRounded(fn) {
1213
- var wrappedFn = function (args) {
1214
- if (args === undefined || args === null) {
1215
- return args;
1216
- }
1217
- if (arguments.length > 1) {
1218
- args = Array.prototype.slice.call(arguments);
1219
- }
1220
- var result = fn(args);
1221
- if (typeof result === "object") {
1222
- for (var len = result.length, i = 0; i < len; i++) {
1223
- result[i] = Math.round(result[i]);
1224
- }
1225
- }
1226
- return result;
1227
- };
1228
- if ("conversion" in fn) {
1229
- wrappedFn.conversion = fn.conversion;
1230
- }
1231
- return wrappedFn;
1232
- }
1233
- models.forEach(function (fromModel) {
1234
- convert[fromModel] = {};
1235
- Object.defineProperty(convert[fromModel], "channels", {
1236
- value: conversions[fromModel].channels,
1237
- });
1238
- Object.defineProperty(convert[fromModel], "labels", {
1239
- value: conversions[fromModel].labels,
1240
- });
1241
- var routes = route(fromModel);
1242
- var routeModels = Object.keys(routes);
1243
- routeModels.forEach(function (toModel) {
1244
- var fn = routes[toModel];
1245
- convert[fromModel][toModel] = wrapRounded(fn);
1246
- convert[fromModel][toModel].raw = wrapRaw(fn);
1247
- });
1248
- });
1249
- module.exports = convert;
1250
- },
1251
- 7012: (module, __unused_webpack_exports, __nccwpck_require__) => {
1252
- var conversions = __nccwpck_require__(302);
1253
- function buildGraph() {
1254
- var graph = {};
1255
- var models = Object.keys(conversions);
1256
- for (var len = models.length, i = 0; i < len; i++) {
1257
- graph[models[i]] = { distance: -1, parent: null };
1258
- }
1259
- return graph;
1260
- }
1261
- function deriveBFS(fromModel) {
1262
- var graph = buildGraph();
1263
- var queue = [fromModel];
1264
- graph[fromModel].distance = 0;
1265
- while (queue.length) {
1266
- var current = queue.pop();
1267
- var adjacents = Object.keys(conversions[current]);
1268
- for (var len = adjacents.length, i = 0; i < len; i++) {
1269
- var adjacent = adjacents[i];
1270
- var node = graph[adjacent];
1271
- if (node.distance === -1) {
1272
- node.distance = graph[current].distance + 1;
1273
- node.parent = current;
1274
- queue.unshift(adjacent);
1275
- }
1276
- }
1277
- }
1278
- return graph;
1279
- }
1280
- function link(from, to) {
1281
- return function (args) {
1282
- return to(from(args));
1283
- };
1284
- }
1285
- function wrapConversion(toModel, graph) {
1286
- var path = [graph[toModel].parent, toModel];
1287
- var fn = conversions[graph[toModel].parent][toModel];
1288
- var cur = graph[toModel].parent;
1289
- while (graph[cur].parent) {
1290
- path.unshift(graph[cur].parent);
1291
- fn = link(conversions[graph[cur].parent][cur], fn);
1292
- cur = graph[cur].parent;
1293
- }
1294
- fn.conversion = path;
1295
- return fn;
1296
- }
1297
- module.exports = function (fromModel) {
1298
- var graph = deriveBFS(fromModel);
1299
- var conversion = {};
1300
- var models = Object.keys(graph);
1301
- for (var len = models.length, i = 0; i < len; i++) {
1302
- var toModel = models[i];
1303
- var node = graph[toModel];
1304
- if (node.parent === null) {
1305
- continue;
1306
- }
1307
- conversion[toModel] = wrapConversion(toModel, graph);
1308
- }
1309
- return conversion;
1310
- };
1311
- },
1312
- 8782: (module) => {
1313
- "use strict";
1314
- module.exports = {
1315
- aliceblue: [240, 248, 255],
1316
- antiquewhite: [250, 235, 215],
1317
- aqua: [0, 255, 255],
1318
- aquamarine: [127, 255, 212],
1319
- azure: [240, 255, 255],
1320
- beige: [245, 245, 220],
1321
- bisque: [255, 228, 196],
1322
- black: [0, 0, 0],
1323
- blanchedalmond: [255, 235, 205],
1324
- blue: [0, 0, 255],
1325
- blueviolet: [138, 43, 226],
1326
- brown: [165, 42, 42],
1327
- burlywood: [222, 184, 135],
1328
- cadetblue: [95, 158, 160],
1329
- chartreuse: [127, 255, 0],
1330
- chocolate: [210, 105, 30],
1331
- coral: [255, 127, 80],
1332
- cornflowerblue: [100, 149, 237],
1333
- cornsilk: [255, 248, 220],
1334
- crimson: [220, 20, 60],
1335
- cyan: [0, 255, 255],
1336
- darkblue: [0, 0, 139],
1337
- darkcyan: [0, 139, 139],
1338
- darkgoldenrod: [184, 134, 11],
1339
- darkgray: [169, 169, 169],
1340
- darkgreen: [0, 100, 0],
1341
- darkgrey: [169, 169, 169],
1342
- darkkhaki: [189, 183, 107],
1343
- darkmagenta: [139, 0, 139],
1344
- darkolivegreen: [85, 107, 47],
1345
- darkorange: [255, 140, 0],
1346
- darkorchid: [153, 50, 204],
1347
- darkred: [139, 0, 0],
1348
- darksalmon: [233, 150, 122],
1349
- darkseagreen: [143, 188, 143],
1350
- darkslateblue: [72, 61, 139],
1351
- darkslategray: [47, 79, 79],
1352
- darkslategrey: [47, 79, 79],
1353
- darkturquoise: [0, 206, 209],
1354
- darkviolet: [148, 0, 211],
1355
- deeppink: [255, 20, 147],
1356
- deepskyblue: [0, 191, 255],
1357
- dimgray: [105, 105, 105],
1358
- dimgrey: [105, 105, 105],
1359
- dodgerblue: [30, 144, 255],
1360
- firebrick: [178, 34, 34],
1361
- floralwhite: [255, 250, 240],
1362
- forestgreen: [34, 139, 34],
1363
- fuchsia: [255, 0, 255],
1364
- gainsboro: [220, 220, 220],
1365
- ghostwhite: [248, 248, 255],
1366
- gold: [255, 215, 0],
1367
- goldenrod: [218, 165, 32],
1368
- gray: [128, 128, 128],
1369
- green: [0, 128, 0],
1370
- greenyellow: [173, 255, 47],
1371
- grey: [128, 128, 128],
1372
- honeydew: [240, 255, 240],
1373
- hotpink: [255, 105, 180],
1374
- indianred: [205, 92, 92],
1375
- indigo: [75, 0, 130],
1376
- ivory: [255, 255, 240],
1377
- khaki: [240, 230, 140],
1378
- lavender: [230, 230, 250],
1379
- lavenderblush: [255, 240, 245],
1380
- lawngreen: [124, 252, 0],
1381
- lemonchiffon: [255, 250, 205],
1382
- lightblue: [173, 216, 230],
1383
- lightcoral: [240, 128, 128],
1384
- lightcyan: [224, 255, 255],
1385
- lightgoldenrodyellow: [250, 250, 210],
1386
- lightgray: [211, 211, 211],
1387
- lightgreen: [144, 238, 144],
1388
- lightgrey: [211, 211, 211],
1389
- lightpink: [255, 182, 193],
1390
- lightsalmon: [255, 160, 122],
1391
- lightseagreen: [32, 178, 170],
1392
- lightskyblue: [135, 206, 250],
1393
- lightslategray: [119, 136, 153],
1394
- lightslategrey: [119, 136, 153],
1395
- lightsteelblue: [176, 196, 222],
1396
- lightyellow: [255, 255, 224],
1397
- lime: [0, 255, 0],
1398
- limegreen: [50, 205, 50],
1399
- linen: [250, 240, 230],
1400
- magenta: [255, 0, 255],
1401
- maroon: [128, 0, 0],
1402
- mediumaquamarine: [102, 205, 170],
1403
- mediumblue: [0, 0, 205],
1404
- mediumorchid: [186, 85, 211],
1405
- mediumpurple: [147, 112, 219],
1406
- mediumseagreen: [60, 179, 113],
1407
- mediumslateblue: [123, 104, 238],
1408
- mediumspringgreen: [0, 250, 154],
1409
- mediumturquoise: [72, 209, 204],
1410
- mediumvioletred: [199, 21, 133],
1411
- midnightblue: [25, 25, 112],
1412
- mintcream: [245, 255, 250],
1413
- mistyrose: [255, 228, 225],
1414
- moccasin: [255, 228, 181],
1415
- navajowhite: [255, 222, 173],
1416
- navy: [0, 0, 128],
1417
- oldlace: [253, 245, 230],
1418
- olive: [128, 128, 0],
1419
- olivedrab: [107, 142, 35],
1420
- orange: [255, 165, 0],
1421
- orangered: [255, 69, 0],
1422
- orchid: [218, 112, 214],
1423
- palegoldenrod: [238, 232, 170],
1424
- palegreen: [152, 251, 152],
1425
- paleturquoise: [175, 238, 238],
1426
- palevioletred: [219, 112, 147],
1427
- papayawhip: [255, 239, 213],
1428
- peachpuff: [255, 218, 185],
1429
- peru: [205, 133, 63],
1430
- pink: [255, 192, 203],
1431
- plum: [221, 160, 221],
1432
- powderblue: [176, 224, 230],
1433
- purple: [128, 0, 128],
1434
- rebeccapurple: [102, 51, 153],
1435
- red: [255, 0, 0],
1436
- rosybrown: [188, 143, 143],
1437
- royalblue: [65, 105, 225],
1438
- saddlebrown: [139, 69, 19],
1439
- salmon: [250, 128, 114],
1440
- sandybrown: [244, 164, 96],
1441
- seagreen: [46, 139, 87],
1442
- seashell: [255, 245, 238],
1443
- sienna: [160, 82, 45],
1444
- silver: [192, 192, 192],
1445
- skyblue: [135, 206, 235],
1446
- slateblue: [106, 90, 205],
1447
- slategray: [112, 128, 144],
1448
- slategrey: [112, 128, 144],
1449
- snow: [255, 250, 250],
1450
- springgreen: [0, 255, 127],
1451
- steelblue: [70, 130, 180],
1452
- tan: [210, 180, 140],
1453
- teal: [0, 128, 128],
1454
- thistle: [216, 191, 216],
1455
- tomato: [255, 99, 71],
1456
- turquoise: [64, 224, 208],
1457
- violet: [238, 130, 238],
1458
- wheat: [245, 222, 179],
1459
- white: [255, 255, 255],
1460
- whitesmoke: [245, 245, 245],
1461
- yellow: [255, 255, 0],
1462
- yellowgreen: [154, 205, 50],
1463
- };
1464
- },
1465
15
  5499: function (__unused_webpack_module, exports, __nccwpck_require__) {
1466
16
  "use strict";
1467
17
  var __importDefault =
@@ -2831,32 +1381,6 @@
2831
1381
  };
2832
1382
  module.exports = errorEx;
2833
1383
  },
2834
- 2656: (module) => {
2835
- "use strict";
2836
- var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
2837
- module.exports = function (str) {
2838
- if (typeof str !== "string") {
2839
- throw new TypeError("Expected a string");
2840
- }
2841
- return str.replace(matchOperatorsRe, "\\$&");
2842
- };
2843
- },
2844
- 2143: (module) => {
2845
- "use strict";
2846
- module.exports = (flag, argv) => {
2847
- argv = argv || process.argv;
2848
- const prefix = flag.startsWith("-")
2849
- ? ""
2850
- : flag.length === 1
2851
- ? "-"
2852
- : "--";
2853
- const pos = argv.indexOf(prefix + flag);
2854
- const terminatorPos = argv.indexOf("--");
2855
- return (
2856
- pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos)
2857
- );
2858
- };
2859
- },
2860
1384
  8139: (module, __unused_webpack_exports, __nccwpck_require__) => {
2861
1385
  "use strict";
2862
1386
  const path = __nccwpck_require__(1017);
@@ -93151,7 +91675,7 @@
93151
91675
  const errorEx = __nccwpck_require__(7861);
93152
91676
  const fallback = __nccwpck_require__(3984);
93153
91677
  const { default: LinesAndColumns } = __nccwpck_require__(7151);
93154
- const { codeFrameColumns } = __nccwpck_require__(5780);
91678
+ const { codeFrameColumns } = __nccwpck_require__(4738);
93155
91679
  const JSONError = errorEx("JSONError", {
93156
91680
  fileName: errorEx.append("in %s"),
93157
91681
  codeFrame: errorEx.append("\n\n%s\n"),
@@ -93276,19 +91800,19 @@
93276
91800
  module.exports = createColors();
93277
91801
  module.exports.createColors = createColors;
93278
91802
  },
93279
- 1272: (module, __unused_webpack_exports, __nccwpck_require__) => {
91803
+ 7656: (module, __unused_webpack_exports, __nccwpck_require__) => {
93280
91804
  "use strict";
93281
- module.exports = __nccwpck_require__(6619)["default"];
91805
+ module.exports = __nccwpck_require__(3732)["default"];
93282
91806
  },
93283
- 6619: (__unused_webpack_module, exports, __nccwpck_require__) => {
91807
+ 3732: (__unused_webpack_module, exports, __nccwpck_require__) => {
93284
91808
  "use strict";
93285
91809
  var __webpack_unused_export__;
93286
91810
  __webpack_unused_export__ = { value: true };
93287
91811
  exports["default"] = loader;
93288
91812
  var _path = _interopRequireDefault(__nccwpck_require__(1017));
93289
91813
  var _package = _interopRequireDefault(__nccwpck_require__(7337));
93290
- var _options = _interopRequireDefault(__nccwpck_require__(6767));
93291
- var _utils = __nccwpck_require__(8483);
91814
+ var _options = _interopRequireDefault(__nccwpck_require__(5934));
91815
+ var _utils = __nccwpck_require__(8479);
93292
91816
  function _interopRequireDefault(obj) {
93293
91817
  return obj && obj.__esModule ? obj : { default: obj };
93294
91818
  }
@@ -93466,7 +91990,7 @@
93466
91990
  callback(null, result.css, map, { ast });
93467
91991
  }
93468
91992
  },
93469
- 8483: (module, exports, __nccwpck_require__) => {
91993
+ 8479: (module, exports, __nccwpck_require__) => {
93470
91994
  "use strict";
93471
91995
  module = __nccwpck_require__.nmd(module);
93472
91996
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -94004,129 +92528,6 @@
94004
92528
  module.exports.silent = (fromDir, moduleId) =>
94005
92529
  resolveFrom(fromDir, moduleId, true);
94006
92530
  },
94007
- 8018: (module, __unused_webpack_exports, __nccwpck_require__) => {
94008
- "use strict";
94009
- const os = __nccwpck_require__(2037);
94010
- const hasFlag = __nccwpck_require__(2143);
94011
- const env = process.env;
94012
- let forceColor;
94013
- if (
94014
- hasFlag("no-color") ||
94015
- hasFlag("no-colors") ||
94016
- hasFlag("color=false")
94017
- ) {
94018
- forceColor = false;
94019
- } else if (
94020
- hasFlag("color") ||
94021
- hasFlag("colors") ||
94022
- hasFlag("color=true") ||
94023
- hasFlag("color=always")
94024
- ) {
94025
- forceColor = true;
94026
- }
94027
- if ("FORCE_COLOR" in env) {
94028
- forceColor =
94029
- env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;
94030
- }
94031
- function translateLevel(level) {
94032
- if (level === 0) {
94033
- return false;
94034
- }
94035
- return {
94036
- level,
94037
- hasBasic: true,
94038
- has256: level >= 2,
94039
- has16m: level >= 3,
94040
- };
94041
- }
94042
- function supportsColor(stream) {
94043
- if (forceColor === false) {
94044
- return 0;
94045
- }
94046
- if (
94047
- hasFlag("color=16m") ||
94048
- hasFlag("color=full") ||
94049
- hasFlag("color=truecolor")
94050
- ) {
94051
- return 3;
94052
- }
94053
- if (hasFlag("color=256")) {
94054
- return 2;
94055
- }
94056
- if (stream && !stream.isTTY && forceColor !== true) {
94057
- return 0;
94058
- }
94059
- const min = forceColor ? 1 : 0;
94060
- if (process.platform === "win32") {
94061
- const osRelease = os.release().split(".");
94062
- if (
94063
- Number(process.versions.node.split(".")[0]) >= 8 &&
94064
- Number(osRelease[0]) >= 10 &&
94065
- Number(osRelease[2]) >= 10586
94066
- ) {
94067
- return Number(osRelease[2]) >= 14931 ? 3 : 2;
94068
- }
94069
- return 1;
94070
- }
94071
- if ("CI" in env) {
94072
- if (
94073
- ["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some(
94074
- (sign) => sign in env,
94075
- ) ||
94076
- env.CI_NAME === "codeship"
94077
- ) {
94078
- return 1;
94079
- }
94080
- return min;
94081
- }
94082
- if ("TEAMCITY_VERSION" in env) {
94083
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION)
94084
- ? 1
94085
- : 0;
94086
- }
94087
- if (env.COLORTERM === "truecolor") {
94088
- return 3;
94089
- }
94090
- if ("TERM_PROGRAM" in env) {
94091
- const version = parseInt(
94092
- (env.TERM_PROGRAM_VERSION || "").split(".")[0],
94093
- 10,
94094
- );
94095
- switch (env.TERM_PROGRAM) {
94096
- case "iTerm.app":
94097
- return version >= 3 ? 3 : 2;
94098
- case "Apple_Terminal":
94099
- return 2;
94100
- }
94101
- }
94102
- if (/-256(color)?$/i.test(env.TERM)) {
94103
- return 2;
94104
- }
94105
- if (
94106
- /^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(
94107
- env.TERM,
94108
- )
94109
- ) {
94110
- return 1;
94111
- }
94112
- if ("COLORTERM" in env) {
94113
- return 1;
94114
- }
94115
- if (env.TERM === "dumb") {
94116
- return min;
94117
- }
94118
- return min;
94119
- }
94120
- function getSupportLevel(stream) {
94121
- const level = supportsColor(stream);
94122
- return translateLevel(level);
94123
- }
94124
- module.exports = {
94125
- supportsColor: getSupportLevel,
94126
- stdout: getSupportLevel(process.stdout),
94127
- stderr: getSupportLevel(process.stderr),
94128
- };
94129
- },
94130
92531
  7922: (module) => {
94131
92532
  function webpackEmptyAsyncContext(req) {
94132
92533
  return Promise.resolve().then(() => {
@@ -94204,66 +92605,117 @@
94204
92605
  "use strict";
94205
92606
  module.exports = require("vm");
94206
92607
  },
94207
- 5780: (__unused_webpack_module, exports, __nccwpck_require__) => {
92608
+ 4738: (__unused_webpack_module, exports, __nccwpck_require__) => {
94208
92609
  "use strict";
94209
92610
  Object.defineProperty(exports, "__esModule", { value: true });
94210
- exports.codeFrameColumns = codeFrameColumns;
94211
- exports["default"] = _default;
94212
- var _highlight = __nccwpck_require__(3154);
94213
- var _picocolors = _interopRequireWildcard(
94214
- __nccwpck_require__(5209),
94215
- true,
94216
- );
94217
- function _getRequireWildcardCache(e) {
94218
- if ("function" != typeof WeakMap) return null;
94219
- var r = new WeakMap(),
94220
- t = new WeakMap();
94221
- return (_getRequireWildcardCache = function (e) {
94222
- return e ? t : r;
94223
- })(e);
94224
- }
94225
- function _interopRequireWildcard(e, r) {
94226
- if (!r && e && e.__esModule) return e;
94227
- if (null === e || ("object" != typeof e && "function" != typeof e))
94228
- return { default: e };
94229
- var t = _getRequireWildcardCache(r);
94230
- if (t && t.has(e)) return t.get(e);
94231
- var n = { __proto__: null },
94232
- a = Object.defineProperty && Object.getOwnPropertyDescriptor;
94233
- for (var u in e)
94234
- if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
94235
- var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
94236
- i && (i.get || i.set)
94237
- ? Object.defineProperty(n, u, i)
94238
- : (n[u] = e[u]);
94239
- }
94240
- return (n.default = e), t && t.set(e, n), n;
92611
+ var picocolors = __nccwpck_require__(5209);
92612
+ var jsTokens = __nccwpck_require__(1192);
92613
+ var helperValidatorIdentifier = __nccwpck_require__(6877);
92614
+ function isColorSupported() {
92615
+ return typeof process === "object" &&
92616
+ (process.env.FORCE_COLOR === "0" ||
92617
+ process.env.FORCE_COLOR === "false")
92618
+ ? false
92619
+ : picocolors.isColorSupported;
94241
92620
  }
94242
- const colors =
94243
- typeof process === "object" &&
94244
- (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false")
94245
- ? (0, _picocolors.createColors)(false)
94246
- : _picocolors.default;
94247
92621
  const compose = (f, g) => (v) => f(g(v));
94248
- let pcWithForcedColor = undefined;
94249
- function getColors(forceColor) {
94250
- if (forceColor) {
94251
- var _pcWithForcedColor;
94252
- (_pcWithForcedColor = pcWithForcedColor) != null
94253
- ? _pcWithForcedColor
94254
- : (pcWithForcedColor = (0, _picocolors.createColors)(true));
94255
- return pcWithForcedColor;
94256
- }
94257
- return colors;
94258
- }
94259
- let deprecationWarningShown = false;
94260
- function getDefs(colors) {
92622
+ function builDefs(colors) {
94261
92623
  return {
92624
+ keyword: colors.cyan,
92625
+ capitalized: colors.yellow,
92626
+ jsxIdentifier: colors.yellow,
92627
+ punctuator: colors.yellow,
92628
+ number: colors.magenta,
92629
+ string: colors.green,
92630
+ regex: colors.magenta,
92631
+ comment: colors.gray,
92632
+ invalid: compose(compose(colors.white, colors.bgRed), colors.bold),
94262
92633
  gutter: colors.gray,
94263
92634
  marker: compose(colors.red, colors.bold),
94264
92635
  message: compose(colors.red, colors.bold),
92636
+ reset: colors.reset,
92637
+ };
92638
+ }
92639
+ const defsOn = builDefs(picocolors.createColors(true));
92640
+ const defsOff = builDefs(picocolors.createColors(false));
92641
+ function getDefs(enabled) {
92642
+ return enabled ? defsOn : defsOff;
92643
+ }
92644
+ const sometimesKeywords = new Set([
92645
+ "as",
92646
+ "async",
92647
+ "from",
92648
+ "get",
92649
+ "of",
92650
+ "set",
92651
+ ]);
92652
+ const NEWLINE$1 = /\r\n|[\n\r\u2028\u2029]/;
92653
+ const BRACKET = /^[()[\]{}]$/;
92654
+ let tokenize;
92655
+ {
92656
+ const JSX_TAG = /^[a-z][\w-]*$/i;
92657
+ const getTokenType = function (token, offset, text) {
92658
+ if (token.type === "name") {
92659
+ if (
92660
+ helperValidatorIdentifier.isKeyword(token.value) ||
92661
+ helperValidatorIdentifier.isStrictReservedWord(
92662
+ token.value,
92663
+ true,
92664
+ ) ||
92665
+ sometimesKeywords.has(token.value)
92666
+ ) {
92667
+ return "keyword";
92668
+ }
92669
+ if (
92670
+ JSX_TAG.test(token.value) &&
92671
+ (text[offset - 1] === "<" ||
92672
+ text.slice(offset - 2, offset) === "</")
92673
+ ) {
92674
+ return "jsxIdentifier";
92675
+ }
92676
+ if (token.value[0] !== token.value[0].toLowerCase()) {
92677
+ return "capitalized";
92678
+ }
92679
+ }
92680
+ if (token.type === "punctuator" && BRACKET.test(token.value)) {
92681
+ return "bracket";
92682
+ }
92683
+ if (
92684
+ token.type === "invalid" &&
92685
+ (token.value === "@" || token.value === "#")
92686
+ ) {
92687
+ return "punctuator";
92688
+ }
92689
+ return token.type;
92690
+ };
92691
+ tokenize = function* (text) {
92692
+ let match;
92693
+ while ((match = jsTokens.default.exec(text))) {
92694
+ const token = jsTokens.matchToToken(match);
92695
+ yield {
92696
+ type: getTokenType(token, match.index, text),
92697
+ value: token.value,
92698
+ };
92699
+ }
94265
92700
  };
94266
92701
  }
92702
+ function highlight(text) {
92703
+ if (text === "") return "";
92704
+ const defs = getDefs(true);
92705
+ let highlighted = "";
92706
+ for (const { type, value } of tokenize(text)) {
92707
+ if (type in defs) {
92708
+ highlighted += value
92709
+ .split(NEWLINE$1)
92710
+ .map((str) => defs[type](str))
92711
+ .join("\n");
92712
+ } else {
92713
+ highlighted += value;
92714
+ }
92715
+ }
92716
+ return highlighted;
92717
+ }
92718
+ let deprecationWarningShown = false;
94267
92719
  const NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
94268
92720
  function getMarkerLines(loc, source, opts) {
94269
92721
  const startLoc = Object.assign({ column: 0, line: -1 }, loc.start);
@@ -94315,19 +92767,15 @@
94315
92767
  return { start, end, markerLines };
94316
92768
  }
94317
92769
  function codeFrameColumns(rawLines, loc, opts = {}) {
94318
- const highlighted =
94319
- (opts.highlightCode || opts.forceColor) &&
94320
- (0, _highlight.shouldHighlight)(opts);
94321
- const colors = getColors(opts.forceColor);
94322
- const defs = getDefs(colors);
94323
- const maybeHighlight = (fmt, string) =>
94324
- highlighted ? fmt(string) : string;
92770
+ const shouldHighlight =
92771
+ opts.forceColor || (isColorSupported() && opts.highlightCode);
92772
+ const defs = getDefs(shouldHighlight);
94325
92773
  const lines = rawLines.split(NEWLINE);
94326
92774
  const { start, end, markerLines } = getMarkerLines(loc, lines, opts);
94327
92775
  const hasColumns = loc.start && typeof loc.start.column === "number";
94328
92776
  const numberMaxWidth = String(end).length;
94329
- const highlightedLines = highlighted
94330
- ? (0, _highlight.default)(rawLines, opts)
92777
+ const highlightedLines = shouldHighlight
92778
+ ? highlight(rawLines)
94331
92779
  : rawLines;
94332
92780
  let frame = highlightedLines
94333
92781
  .split(NEWLINE, end)
@@ -94347,37 +92795,36 @@
94347
92795
  const numberOfMarkers = hasMarker[1] || 1;
94348
92796
  markerLine = [
94349
92797
  "\n ",
94350
- maybeHighlight(defs.gutter, gutter.replace(/\d/g, " ")),
92798
+ defs.gutter(gutter.replace(/\d/g, " ")),
94351
92799
  " ",
94352
92800
  markerSpacing,
94353
- maybeHighlight(defs.marker, "^").repeat(numberOfMarkers),
92801
+ defs.marker("^").repeat(numberOfMarkers),
94354
92802
  ].join("");
94355
92803
  if (lastMarkerLine && opts.message) {
94356
- markerLine +=
94357
- " " + maybeHighlight(defs.message, opts.message);
92804
+ markerLine += " " + defs.message(opts.message);
94358
92805
  }
94359
92806
  }
94360
92807
  return [
94361
- maybeHighlight(defs.marker, ">"),
94362
- maybeHighlight(defs.gutter, gutter),
92808
+ defs.marker(">"),
92809
+ defs.gutter(gutter),
94363
92810
  line.length > 0 ? ` ${line}` : "",
94364
92811
  markerLine,
94365
92812
  ].join("");
94366
92813
  } else {
94367
- return ` ${maybeHighlight(defs.gutter, gutter)}${line.length > 0 ? ` ${line}` : ""}`;
92814
+ return ` ${defs.gutter(gutter)}${line.length > 0 ? ` ${line}` : ""}`;
94368
92815
  }
94369
92816
  })
94370
92817
  .join("\n");
94371
92818
  if (opts.message && !hasColumns) {
94372
92819
  frame = `${" ".repeat(numberMaxWidth + 1)}${opts.message}\n${frame}`;
94373
92820
  }
94374
- if (highlighted) {
94375
- return colors.reset(frame);
92821
+ if (shouldHighlight) {
92822
+ return defs.reset(frame);
94376
92823
  } else {
94377
92824
  return frame;
94378
92825
  }
94379
92826
  }
94380
- function _default(rawLines, lineNumber, colNumber, opts = {}) {
92827
+ function index(rawLines, lineNumber, colNumber, opts = {}) {
94381
92828
  if (!deprecationWarningShown) {
94382
92829
  deprecationWarningShown = true;
94383
92830
  const message =
@@ -94394,6 +92841,9 @@
94394
92841
  const location = { start: { column: colNumber, line: lineNumber } };
94395
92842
  return codeFrameColumns(rawLines, location, opts);
94396
92843
  }
92844
+ exports.codeFrameColumns = codeFrameColumns;
92845
+ exports["default"] = index;
92846
+ exports.highlight = highlight;
94397
92847
  },
94398
92848
  3287: (__unused_webpack_module, exports) => {
94399
92849
  "use strict";
@@ -94662,178 +93112,7 @@
94662
93112
  return keywords.has(word);
94663
93113
  }
94664
93114
  },
94665
- 3154: (__unused_webpack_module, exports, __nccwpck_require__) => {
94666
- "use strict";
94667
- Object.defineProperty(exports, "__esModule", { value: true });
94668
- exports["default"] = highlight;
94669
- exports.shouldHighlight = shouldHighlight;
94670
- var _jsTokens = __nccwpck_require__(1192);
94671
- var _helperValidatorIdentifier = __nccwpck_require__(6877);
94672
- var _picocolors = _interopRequireWildcard(
94673
- __nccwpck_require__(5209),
94674
- true,
94675
- );
94676
- function _getRequireWildcardCache(e) {
94677
- if ("function" != typeof WeakMap) return null;
94678
- var r = new WeakMap(),
94679
- t = new WeakMap();
94680
- return (_getRequireWildcardCache = function (e) {
94681
- return e ? t : r;
94682
- })(e);
94683
- }
94684
- function _interopRequireWildcard(e, r) {
94685
- if (!r && e && e.__esModule) return e;
94686
- if (null === e || ("object" != typeof e && "function" != typeof e))
94687
- return { default: e };
94688
- var t = _getRequireWildcardCache(r);
94689
- if (t && t.has(e)) return t.get(e);
94690
- var n = { __proto__: null },
94691
- a = Object.defineProperty && Object.getOwnPropertyDescriptor;
94692
- for (var u in e)
94693
- if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
94694
- var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
94695
- i && (i.get || i.set)
94696
- ? Object.defineProperty(n, u, i)
94697
- : (n[u] = e[u]);
94698
- }
94699
- return (n.default = e), t && t.set(e, n), n;
94700
- }
94701
- const colors =
94702
- typeof process === "object" &&
94703
- (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false")
94704
- ? (0, _picocolors.createColors)(false)
94705
- : _picocolors.default;
94706
- const compose = (f, g) => (v) => f(g(v));
94707
- const sometimesKeywords = new Set([
94708
- "as",
94709
- "async",
94710
- "from",
94711
- "get",
94712
- "of",
94713
- "set",
94714
- ]);
94715
- function getDefs(colors) {
94716
- return {
94717
- keyword: colors.cyan,
94718
- capitalized: colors.yellow,
94719
- jsxIdentifier: colors.yellow,
94720
- punctuator: colors.yellow,
94721
- number: colors.magenta,
94722
- string: colors.green,
94723
- regex: colors.magenta,
94724
- comment: colors.gray,
94725
- invalid: compose(compose(colors.white, colors.bgRed), colors.bold),
94726
- };
94727
- }
94728
- const NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
94729
- const BRACKET = /^[()[\]{}]$/;
94730
- let tokenize;
94731
- {
94732
- const JSX_TAG = /^[a-z][\w-]*$/i;
94733
- const getTokenType = function (token, offset, text) {
94734
- if (token.type === "name") {
94735
- if (
94736
- (0, _helperValidatorIdentifier.isKeyword)(token.value) ||
94737
- (0, _helperValidatorIdentifier.isStrictReservedWord)(
94738
- token.value,
94739
- true,
94740
- ) ||
94741
- sometimesKeywords.has(token.value)
94742
- ) {
94743
- return "keyword";
94744
- }
94745
- if (
94746
- JSX_TAG.test(token.value) &&
94747
- (text[offset - 1] === "<" ||
94748
- text.slice(offset - 2, offset) === "</")
94749
- ) {
94750
- return "jsxIdentifier";
94751
- }
94752
- if (token.value[0] !== token.value[0].toLowerCase()) {
94753
- return "capitalized";
94754
- }
94755
- }
94756
- if (token.type === "punctuator" && BRACKET.test(token.value)) {
94757
- return "bracket";
94758
- }
94759
- if (
94760
- token.type === "invalid" &&
94761
- (token.value === "@" || token.value === "#")
94762
- ) {
94763
- return "punctuator";
94764
- }
94765
- return token.type;
94766
- };
94767
- tokenize = function* (text) {
94768
- let match;
94769
- while ((match = _jsTokens.default.exec(text))) {
94770
- const token = _jsTokens.matchToToken(match);
94771
- yield {
94772
- type: getTokenType(token, match.index, text),
94773
- value: token.value,
94774
- };
94775
- }
94776
- };
94777
- }
94778
- function highlightTokens(defs, text) {
94779
- let highlighted = "";
94780
- for (const { type, value } of tokenize(text)) {
94781
- const colorize = defs[type];
94782
- if (colorize) {
94783
- highlighted += value
94784
- .split(NEWLINE)
94785
- .map((str) => colorize(str))
94786
- .join("\n");
94787
- } else {
94788
- highlighted += value;
94789
- }
94790
- }
94791
- return highlighted;
94792
- }
94793
- function shouldHighlight(options) {
94794
- return colors.isColorSupported || options.forceColor;
94795
- }
94796
- let pcWithForcedColor = undefined;
94797
- function getColors(forceColor) {
94798
- if (forceColor) {
94799
- var _pcWithForcedColor;
94800
- (_pcWithForcedColor = pcWithForcedColor) != null
94801
- ? _pcWithForcedColor
94802
- : (pcWithForcedColor = (0, _picocolors.createColors)(true));
94803
- return pcWithForcedColor;
94804
- }
94805
- return colors;
94806
- }
94807
- function highlight(code, options = {}) {
94808
- if (code !== "" && shouldHighlight(options)) {
94809
- const defs = getDefs(getColors(options.forceColor));
94810
- return highlightTokens(defs, code);
94811
- } else {
94812
- return code;
94813
- }
94814
- }
94815
- {
94816
- let chalk, chalkWithForcedColor;
94817
- exports.getChalk = ({ forceColor }) => {
94818
- var _chalk;
94819
- (_chalk = chalk) != null
94820
- ? _chalk
94821
- : (chalk = __nccwpck_require__(9318));
94822
- if (forceColor) {
94823
- var _chalkWithForcedColor;
94824
- (_chalkWithForcedColor = chalkWithForcedColor) != null
94825
- ? _chalkWithForcedColor
94826
- : (chalkWithForcedColor = new chalk.constructor({
94827
- enabled: true,
94828
- level: 1,
94829
- }));
94830
- return chalkWithForcedColor;
94831
- }
94832
- return chalk;
94833
- };
94834
- }
94835
- },
94836
- 6767: (module) => {
93115
+ 5934: (module) => {
94837
93116
  "use strict";
94838
93117
  module.exports = JSON.parse(
94839
93118
  '{"title":"PostCSS Loader options","type":"object","properties":{"postcssOptions":{"description":"Options to pass through to `Postcss`.","link":"https://github.com/webpack-contrib/postcss-loader#postcssOptions","anyOf":[{"type":"object","additionalProperties":true,"properties":{"config":{"description":"Allows to specify PostCSS config path.","link":"https://github.com/webpack-contrib/postcss-loader#config","anyOf":[{"description":"Allows to specify the path to the configuration file","type":"string"},{"description":"Enables/Disables autoloading config","type":"boolean"}]}}},{"instanceof":"Function"}]},"execute":{"description":"Enables/Disables PostCSS parser support in \'CSS-in-JS\'.","link":"https://github.com/webpack-contrib/postcss-loader#execute","type":"boolean"},"sourceMap":{"description":"Enables/Disables generation of source maps.","link":"https://github.com/webpack-contrib/postcss-loader#sourcemap","type":"boolean"},"implementation":{"description":"The implementation of postcss to use, instead of the locally installed version","link":"https://github.com/webpack-contrib/postcss-loader#implementation","anyOf":[{"type":"string"},{"instanceof":"Function"}]}},"additionalProperties":false}',
@@ -94943,6 +93222,6 @@
94943
93222
  })();
94944
93223
  if (typeof __nccwpck_require__ !== "undefined")
94945
93224
  __nccwpck_require__.ab = __dirname + "/";
94946
- var __webpack_exports__ = __nccwpck_require__(1272);
93225
+ var __webpack_exports__ = __nccwpck_require__(7656);
94947
93226
  module.exports = __webpack_exports__;
94948
93227
  })();