chlklib 1.0.0 → 1.0.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.
@@ -0,0 +1,211 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var ansi_styles_exports = {};
19
+ __export(ansi_styles_exports, {
20
+ backgroundColorNames: () => backgroundColorNames,
21
+ colorNames: () => colorNames,
22
+ default: () => ansi_styles_default,
23
+ foregroundColorNames: () => foregroundColorNames,
24
+ modifierNames: () => modifierNames
25
+ });
26
+ module.exports = __toCommonJS(ansi_styles_exports);
27
+ const ANSI_BACKGROUND_OFFSET = 10;
28
+ const wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
29
+ const wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
30
+ const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
31
+ const styles = {
32
+ modifier: {
33
+ reset: [0, 0],
34
+ // 21 isn't widely supported and 22 does the same thing
35
+ bold: [1, 22],
36
+ dim: [2, 22],
37
+ italic: [3, 23],
38
+ underline: [4, 24],
39
+ overline: [53, 55],
40
+ inverse: [7, 27],
41
+ hidden: [8, 28],
42
+ strikethrough: [9, 29]
43
+ },
44
+ color: {
45
+ black: [30, 39],
46
+ red: [31, 39],
47
+ green: [32, 39],
48
+ yellow: [33, 39],
49
+ blue: [34, 39],
50
+ magenta: [35, 39],
51
+ cyan: [36, 39],
52
+ white: [37, 39],
53
+ // Bright color
54
+ blackBright: [90, 39],
55
+ gray: [90, 39],
56
+ // Alias of `blackBright`
57
+ grey: [90, 39],
58
+ // Alias of `blackBright`
59
+ redBright: [91, 39],
60
+ greenBright: [92, 39],
61
+ yellowBright: [93, 39],
62
+ blueBright: [94, 39],
63
+ magentaBright: [95, 39],
64
+ cyanBright: [96, 39],
65
+ whiteBright: [97, 39]
66
+ },
67
+ bgColor: {
68
+ bgBlack: [40, 49],
69
+ bgRed: [41, 49],
70
+ bgGreen: [42, 49],
71
+ bgYellow: [43, 49],
72
+ bgBlue: [44, 49],
73
+ bgMagenta: [45, 49],
74
+ bgCyan: [46, 49],
75
+ bgWhite: [47, 49],
76
+ // Bright color
77
+ bgBlackBright: [100, 49],
78
+ bgGray: [100, 49],
79
+ // Alias of `bgBlackBright`
80
+ bgGrey: [100, 49],
81
+ // Alias of `bgBlackBright`
82
+ bgRedBright: [101, 49],
83
+ bgGreenBright: [102, 49],
84
+ bgYellowBright: [103, 49],
85
+ bgBlueBright: [104, 49],
86
+ bgMagentaBright: [105, 49],
87
+ bgCyanBright: [106, 49],
88
+ bgWhiteBright: [107, 49]
89
+ }
90
+ };
91
+ const modifierNames = Object.keys(styles.modifier);
92
+ const foregroundColorNames = Object.keys(styles.color);
93
+ const backgroundColorNames = Object.keys(styles.bgColor);
94
+ const colorNames = [...foregroundColorNames, ...backgroundColorNames];
95
+ function assembleStyles() {
96
+ const codes = /* @__PURE__ */ new Map();
97
+ for (const [groupName, group] of Object.entries(styles)) {
98
+ for (const [styleName, style] of Object.entries(group)) {
99
+ styles[styleName] = {
100
+ open: `\x1B[${style[0]}m`,
101
+ close: `\x1B[${style[1]}m`
102
+ };
103
+ group[styleName] = styles[styleName];
104
+ codes.set(style[0], style[1]);
105
+ }
106
+ Object.defineProperty(styles, groupName, {
107
+ value: group,
108
+ enumerable: false
109
+ });
110
+ }
111
+ Object.defineProperty(styles, "codes", {
112
+ value: codes,
113
+ enumerable: false
114
+ });
115
+ styles.color.close = "\x1B[39m";
116
+ styles.bgColor.close = "\x1B[49m";
117
+ styles.color.ansi = wrapAnsi16();
118
+ styles.color.ansi256 = wrapAnsi256();
119
+ styles.color.ansi16m = wrapAnsi16m();
120
+ styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
121
+ styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
122
+ styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
123
+ Object.defineProperties(styles, {
124
+ rgbToAnsi256: {
125
+ value(red, green, blue) {
126
+ if (red === green && green === blue) {
127
+ if (red < 8) {
128
+ return 16;
129
+ }
130
+ if (red > 248) {
131
+ return 231;
132
+ }
133
+ return Math.round((red - 8) / 247 * 24) + 232;
134
+ }
135
+ return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
136
+ },
137
+ enumerable: false
138
+ },
139
+ hexToRgb: {
140
+ value(hex) {
141
+ const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
142
+ if (!matches) {
143
+ return [0, 0, 0];
144
+ }
145
+ let [colorString] = matches;
146
+ if (colorString.length === 3) {
147
+ colorString = [...colorString].map((character) => character + character).join("");
148
+ }
149
+ const integer = Number.parseInt(colorString, 16);
150
+ return [
151
+ /* eslint-disable no-bitwise */
152
+ integer >> 16 & 255,
153
+ integer >> 8 & 255,
154
+ integer & 255
155
+ /* eslint-enable no-bitwise */
156
+ ];
157
+ },
158
+ enumerable: false
159
+ },
160
+ hexToAnsi256: {
161
+ value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
162
+ enumerable: false
163
+ },
164
+ ansi256ToAnsi: {
165
+ value(code) {
166
+ if (code < 8) {
167
+ return 30 + code;
168
+ }
169
+ if (code < 16) {
170
+ return 90 + (code - 8);
171
+ }
172
+ let red;
173
+ let green;
174
+ let blue;
175
+ if (code >= 232) {
176
+ red = ((code - 232) * 10 + 8) / 255;
177
+ green = red;
178
+ blue = red;
179
+ } else {
180
+ code -= 16;
181
+ const remainder = code % 36;
182
+ red = Math.floor(code / 36) / 5;
183
+ green = Math.floor(remainder / 6) / 5;
184
+ blue = remainder % 6 / 5;
185
+ }
186
+ const value = Math.max(red, green, blue) * 2;
187
+ if (value === 0) {
188
+ return 30;
189
+ }
190
+ let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
191
+ if (value === 2) {
192
+ result += 60;
193
+ }
194
+ return result;
195
+ },
196
+ enumerable: false
197
+ },
198
+ rgbToAnsi: {
199
+ value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
200
+ enumerable: false
201
+ },
202
+ hexToAnsi: {
203
+ value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
204
+ enumerable: false
205
+ }
206
+ });
207
+ return styles;
208
+ }
209
+ const ansiStyles = assembleStyles();
210
+ var ansi_styles_default = ansiStyles;
211
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../source/vendor/ansi-styles/index.js"],
4
+ "sourcesContent": ["const ANSI_BACKGROUND_OFFSET = 10;\n\nconst wrapAnsi16 = (offset = 0) => code => `\\u001B[${code + offset}m`;\n\nconst wrapAnsi256 = (offset = 0) => code => `\\u001B[${38 + offset};5;${code}m`;\n\nconst wrapAnsi16m = (offset = 0) => (red, green, blue) => `\\u001B[${38 + offset};2;${red};${green};${blue}m`;\n\nconst styles = {\n\tmodifier: {\n\t\treset: [0, 0],\n\t\t// 21 isn't widely supported and 22 does the same thing\n\t\tbold: [1, 22],\n\t\tdim: [2, 22],\n\t\titalic: [3, 23],\n\t\tunderline: [4, 24],\n\t\toverline: [53, 55],\n\t\tinverse: [7, 27],\n\t\thidden: [8, 28],\n\t\tstrikethrough: [9, 29],\n\t},\n\tcolor: {\n\t\tblack: [30, 39],\n\t\tred: [31, 39],\n\t\tgreen: [32, 39],\n\t\tyellow: [33, 39],\n\t\tblue: [34, 39],\n\t\tmagenta: [35, 39],\n\t\tcyan: [36, 39],\n\t\twhite: [37, 39],\n\n\t\t// Bright color\n\t\tblackBright: [90, 39],\n\t\tgray: [90, 39], // Alias of `blackBright`\n\t\tgrey: [90, 39], // Alias of `blackBright`\n\t\tredBright: [91, 39],\n\t\tgreenBright: [92, 39],\n\t\tyellowBright: [93, 39],\n\t\tblueBright: [94, 39],\n\t\tmagentaBright: [95, 39],\n\t\tcyanBright: [96, 39],\n\t\twhiteBright: [97, 39],\n\t},\n\tbgColor: {\n\t\tbgBlack: [40, 49],\n\t\tbgRed: [41, 49],\n\t\tbgGreen: [42, 49],\n\t\tbgYellow: [43, 49],\n\t\tbgBlue: [44, 49],\n\t\tbgMagenta: [45, 49],\n\t\tbgCyan: [46, 49],\n\t\tbgWhite: [47, 49],\n\n\t\t// Bright color\n\t\tbgBlackBright: [100, 49],\n\t\tbgGray: [100, 49], // Alias of `bgBlackBright`\n\t\tbgGrey: [100, 49], // Alias of `bgBlackBright`\n\t\tbgRedBright: [101, 49],\n\t\tbgGreenBright: [102, 49],\n\t\tbgYellowBright: [103, 49],\n\t\tbgBlueBright: [104, 49],\n\t\tbgMagentaBright: [105, 49],\n\t\tbgCyanBright: [106, 49],\n\t\tbgWhiteBright: [107, 49],\n\t},\n};\n\nexport const modifierNames = Object.keys(styles.modifier);\nexport const foregroundColorNames = Object.keys(styles.color);\nexport const backgroundColorNames = Object.keys(styles.bgColor);\nexport const colorNames = [...foregroundColorNames, ...backgroundColorNames];\n\nfunction assembleStyles() {\n\tconst codes = new Map();\n\n\tfor (const [groupName, group] of Object.entries(styles)) {\n\t\tfor (const [styleName, style] of Object.entries(group)) {\n\t\t\tstyles[styleName] = {\n\t\t\t\topen: `\\u001B[${style[0]}m`,\n\t\t\t\tclose: `\\u001B[${style[1]}m`,\n\t\t\t};\n\n\t\t\tgroup[styleName] = styles[styleName];\n\n\t\t\tcodes.set(style[0], style[1]);\n\t\t}\n\n\t\tObject.defineProperty(styles, groupName, {\n\t\t\tvalue: group,\n\t\t\tenumerable: false,\n\t\t});\n\t}\n\n\tObject.defineProperty(styles, 'codes', {\n\t\tvalue: codes,\n\t\tenumerable: false,\n\t});\n\n\tstyles.color.close = '\\u001B[39m';\n\tstyles.bgColor.close = '\\u001B[49m';\n\n\tstyles.color.ansi = wrapAnsi16();\n\tstyles.color.ansi256 = wrapAnsi256();\n\tstyles.color.ansi16m = wrapAnsi16m();\n\tstyles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);\n\tstyles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);\n\tstyles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);\n\n\t// From https://github.com/Qix-/color-convert/blob/3f0e0d4e92e235796ccb17f6e85c72094a651f49/conversions.js\n\tObject.defineProperties(styles, {\n\t\trgbToAnsi256: {\n\t\t\tvalue(red, green, blue) {\n\t\t\t\t// We use the extended greyscale palette here, with the exception of\n\t\t\t\t// black and white. normal palette only has 4 greyscale shades.\n\t\t\t\tif (red === green && green === blue) {\n\t\t\t\t\tif (red < 8) {\n\t\t\t\t\t\treturn 16;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (red > 248) {\n\t\t\t\t\t\treturn 231;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn Math.round(((red - 8) / 247) * 24) + 232;\n\t\t\t\t}\n\n\t\t\t\treturn 16\n\t\t\t\t\t+ (36 * Math.round(red / 255 * 5))\n\t\t\t\t\t+ (6 * Math.round(green / 255 * 5))\n\t\t\t\t\t+ Math.round(blue / 255 * 5);\n\t\t\t},\n\t\t\tenumerable: false,\n\t\t},\n\t\thexToRgb: {\n\t\t\tvalue(hex) {\n\t\t\t\tconst matches = /[a-f\\d]{6}|[a-f\\d]{3}/i.exec(hex.toString(16));\n\t\t\t\tif (!matches) {\n\t\t\t\t\treturn [0, 0, 0];\n\t\t\t\t}\n\n\t\t\t\tlet [colorString] = matches;\n\n\t\t\t\tif (colorString.length === 3) {\n\t\t\t\t\tcolorString = [...colorString].map(character => character + character).join('');\n\t\t\t\t}\n\n\t\t\t\tconst integer = Number.parseInt(colorString, 16);\n\n\t\t\t\treturn [\n\t\t\t\t\t/* eslint-disable no-bitwise */\n\t\t\t\t\t(integer >> 16) & 0xFF,\n\t\t\t\t\t(integer >> 8) & 0xFF,\n\t\t\t\t\tinteger & 0xFF,\n\t\t\t\t\t/* eslint-enable no-bitwise */\n\t\t\t\t];\n\t\t\t},\n\t\t\tenumerable: false,\n\t\t},\n\t\thexToAnsi256: {\n\t\t\tvalue: hex => styles.rgbToAnsi256(...styles.hexToRgb(hex)),\n\t\t\tenumerable: false,\n\t\t},\n\t\tansi256ToAnsi: {\n\t\t\tvalue(code) {\n\t\t\t\tif (code < 8) {\n\t\t\t\t\treturn 30 + code;\n\t\t\t\t}\n\n\t\t\t\tif (code < 16) {\n\t\t\t\t\treturn 90 + (code - 8);\n\t\t\t\t}\n\n\t\t\t\tlet red;\n\t\t\t\tlet green;\n\t\t\t\tlet blue;\n\n\t\t\t\tif (code >= 232) {\n\t\t\t\t\tred = (((code - 232) * 10) + 8) / 255;\n\t\t\t\t\tgreen = red;\n\t\t\t\t\tblue = red;\n\t\t\t\t} else {\n\t\t\t\t\tcode -= 16;\n\n\t\t\t\t\tconst remainder = code % 36;\n\n\t\t\t\t\tred = Math.floor(code / 36) / 5;\n\t\t\t\t\tgreen = Math.floor(remainder / 6) / 5;\n\t\t\t\t\tblue = (remainder % 6) / 5;\n\t\t\t\t}\n\n\t\t\t\tconst value = Math.max(red, green, blue) * 2;\n\n\t\t\t\tif (value === 0) {\n\t\t\t\t\treturn 30;\n\t\t\t\t}\n\n\t\t\t\t// eslint-disable-next-line no-bitwise\n\t\t\t\tlet result = 30 + ((Math.round(blue) << 2) | (Math.round(green) << 1) | Math.round(red));\n\n\t\t\t\tif (value === 2) {\n\t\t\t\t\tresult += 60;\n\t\t\t\t}\n\n\t\t\t\treturn result;\n\t\t\t},\n\t\t\tenumerable: false,\n\t\t},\n\t\trgbToAnsi: {\n\t\t\tvalue: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),\n\t\t\tenumerable: false,\n\t\t},\n\t\thexToAnsi: {\n\t\t\tvalue: hex => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),\n\t\t\tenumerable: false,\n\t\t},\n\t});\n\n\treturn styles;\n}\n\nconst ansiStyles = assembleStyles();\n\nexport default ansiStyles;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAAM,yBAAyB;AAE/B,MAAM,aAAa,CAAC,SAAS,MAAM,UAAQ,QAAU,OAAO,MAAM;AAElE,MAAM,cAAc,CAAC,SAAS,MAAM,UAAQ,QAAU,KAAK,MAAM,MAAM,IAAI;AAE3E,MAAM,cAAc,CAAC,SAAS,MAAM,CAAC,KAAK,OAAO,SAAS,QAAU,KAAK,MAAM,MAAM,GAAG,IAAI,KAAK,IAAI,IAAI;AAEzG,MAAM,SAAS;AAAA,EACd,UAAU;AAAA,IACT,OAAO,CAAC,GAAG,CAAC;AAAA;AAAA,IAEZ,MAAM,CAAC,GAAG,EAAE;AAAA,IACZ,KAAK,CAAC,GAAG,EAAE;AAAA,IACX,QAAQ,CAAC,GAAG,EAAE;AAAA,IACd,WAAW,CAAC,GAAG,EAAE;AAAA,IACjB,UAAU,CAAC,IAAI,EAAE;AAAA,IACjB,SAAS,CAAC,GAAG,EAAE;AAAA,IACf,QAAQ,CAAC,GAAG,EAAE;AAAA,IACd,eAAe,CAAC,GAAG,EAAE;AA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J,YAAI;AAEJ,YAAI,QAAQ,KAAK;AAChB,kBAAS,OAAO,OAAO,KAAM,KAAK;AAClC,kBAAQ;AACR,iBAAO;AAAA,QACR,OAAO;AACN,kBAAQ;AAER,gBAAM,YAAY,OAAO;AAEzB,gBAAM,KAAK,MAAM,OAAO,EAAE,IAAI;AAC9B,kBAAQ,KAAK,MAAM,YAAY,CAAC,IAAI;AACpC,iBAAQ,YAAY,IAAK;AAAA,QAC1B;AAEA,cAAM,QAAQ,KAAK,IAAI,KAAK,OAAO,IAAI,IAAI;AAE3C,YAAI,UAAU,GAAG;AAChB,iBAAO;AAAA,QACR;AAGA,YAAI,SAAS,MAAO,KAAK,MAAM,IAAI,KAAK,IAAM,KAAK,MAAM,KAAK,KAAK,IAAK,KAAK,MAAM,GAAG;AAEtF,YAAI,UAAU,GAAG;AAChB,oBAAU;AAAA,QACX;AAEA,eAAO;AAAA,MACR;AAAA,MACA,YAAY;AAAA,IACb;AAAA,IACA,WAAW;AAAA,MACV,OAAO,CAAC,KAAK,OAAO,SAAS,OAAO,cAAc,OAAO,aAAa,KAAK,OAAO,IAAI,CAAC;AAAA,MACvF,YAAY;AAAA,IACb;AAAA,IACA,WAAW;AAAA,MACV,OAAO,SAAO,OAAO,cAAc,OAAO,aAAa,GAAG,CAAC;AAAA,MAC3D,YAAY;AAAA,IACb;AAAA,EACD,CAAC;AAED,SAAO;AACR;AAEA,MAAM,aAAa,eAAe;AAElC,IAAO,sBAAQ;",
6
+ "names": []
7
+ }
@@ -0,0 +1,192 @@
1
+ const ANSI_BACKGROUND_OFFSET = 10;
2
+ const wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
3
+ const wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
4
+ const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
5
+ const styles = {
6
+ modifier: {
7
+ reset: [0, 0],
8
+ // 21 isn't widely supported and 22 does the same thing
9
+ bold: [1, 22],
10
+ dim: [2, 22],
11
+ italic: [3, 23],
12
+ underline: [4, 24],
13
+ overline: [53, 55],
14
+ inverse: [7, 27],
15
+ hidden: [8, 28],
16
+ strikethrough: [9, 29]
17
+ },
18
+ color: {
19
+ black: [30, 39],
20
+ red: [31, 39],
21
+ green: [32, 39],
22
+ yellow: [33, 39],
23
+ blue: [34, 39],
24
+ magenta: [35, 39],
25
+ cyan: [36, 39],
26
+ white: [37, 39],
27
+ // Bright color
28
+ blackBright: [90, 39],
29
+ gray: [90, 39],
30
+ // Alias of `blackBright`
31
+ grey: [90, 39],
32
+ // Alias of `blackBright`
33
+ redBright: [91, 39],
34
+ greenBright: [92, 39],
35
+ yellowBright: [93, 39],
36
+ blueBright: [94, 39],
37
+ magentaBright: [95, 39],
38
+ cyanBright: [96, 39],
39
+ whiteBright: [97, 39]
40
+ },
41
+ bgColor: {
42
+ bgBlack: [40, 49],
43
+ bgRed: [41, 49],
44
+ bgGreen: [42, 49],
45
+ bgYellow: [43, 49],
46
+ bgBlue: [44, 49],
47
+ bgMagenta: [45, 49],
48
+ bgCyan: [46, 49],
49
+ bgWhite: [47, 49],
50
+ // Bright color
51
+ bgBlackBright: [100, 49],
52
+ bgGray: [100, 49],
53
+ // Alias of `bgBlackBright`
54
+ bgGrey: [100, 49],
55
+ // Alias of `bgBlackBright`
56
+ bgRedBright: [101, 49],
57
+ bgGreenBright: [102, 49],
58
+ bgYellowBright: [103, 49],
59
+ bgBlueBright: [104, 49],
60
+ bgMagentaBright: [105, 49],
61
+ bgCyanBright: [106, 49],
62
+ bgWhiteBright: [107, 49]
63
+ }
64
+ };
65
+ const modifierNames = Object.keys(styles.modifier);
66
+ const foregroundColorNames = Object.keys(styles.color);
67
+ const backgroundColorNames = Object.keys(styles.bgColor);
68
+ const colorNames = [...foregroundColorNames, ...backgroundColorNames];
69
+ function assembleStyles() {
70
+ const codes = /* @__PURE__ */ new Map();
71
+ for (const [groupName, group] of Object.entries(styles)) {
72
+ for (const [styleName, style] of Object.entries(group)) {
73
+ styles[styleName] = {
74
+ open: `\x1B[${style[0]}m`,
75
+ close: `\x1B[${style[1]}m`
76
+ };
77
+ group[styleName] = styles[styleName];
78
+ codes.set(style[0], style[1]);
79
+ }
80
+ Object.defineProperty(styles, groupName, {
81
+ value: group,
82
+ enumerable: false
83
+ });
84
+ }
85
+ Object.defineProperty(styles, "codes", {
86
+ value: codes,
87
+ enumerable: false
88
+ });
89
+ styles.color.close = "\x1B[39m";
90
+ styles.bgColor.close = "\x1B[49m";
91
+ styles.color.ansi = wrapAnsi16();
92
+ styles.color.ansi256 = wrapAnsi256();
93
+ styles.color.ansi16m = wrapAnsi16m();
94
+ styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
95
+ styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
96
+ styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
97
+ Object.defineProperties(styles, {
98
+ rgbToAnsi256: {
99
+ value(red, green, blue) {
100
+ if (red === green && green === blue) {
101
+ if (red < 8) {
102
+ return 16;
103
+ }
104
+ if (red > 248) {
105
+ return 231;
106
+ }
107
+ return Math.round((red - 8) / 247 * 24) + 232;
108
+ }
109
+ return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
110
+ },
111
+ enumerable: false
112
+ },
113
+ hexToRgb: {
114
+ value(hex) {
115
+ const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
116
+ if (!matches) {
117
+ return [0, 0, 0];
118
+ }
119
+ let [colorString] = matches;
120
+ if (colorString.length === 3) {
121
+ colorString = [...colorString].map((character) => character + character).join("");
122
+ }
123
+ const integer = Number.parseInt(colorString, 16);
124
+ return [
125
+ /* eslint-disable no-bitwise */
126
+ integer >> 16 & 255,
127
+ integer >> 8 & 255,
128
+ integer & 255
129
+ /* eslint-enable no-bitwise */
130
+ ];
131
+ },
132
+ enumerable: false
133
+ },
134
+ hexToAnsi256: {
135
+ value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
136
+ enumerable: false
137
+ },
138
+ ansi256ToAnsi: {
139
+ value(code) {
140
+ if (code < 8) {
141
+ return 30 + code;
142
+ }
143
+ if (code < 16) {
144
+ return 90 + (code - 8);
145
+ }
146
+ let red;
147
+ let green;
148
+ let blue;
149
+ if (code >= 232) {
150
+ red = ((code - 232) * 10 + 8) / 255;
151
+ green = red;
152
+ blue = red;
153
+ } else {
154
+ code -= 16;
155
+ const remainder = code % 36;
156
+ red = Math.floor(code / 36) / 5;
157
+ green = Math.floor(remainder / 6) / 5;
158
+ blue = remainder % 6 / 5;
159
+ }
160
+ const value = Math.max(red, green, blue) * 2;
161
+ if (value === 0) {
162
+ return 30;
163
+ }
164
+ let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
165
+ if (value === 2) {
166
+ result += 60;
167
+ }
168
+ return result;
169
+ },
170
+ enumerable: false
171
+ },
172
+ rgbToAnsi: {
173
+ value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
174
+ enumerable: false
175
+ },
176
+ hexToAnsi: {
177
+ value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
178
+ enumerable: false
179
+ }
180
+ });
181
+ return styles;
182
+ }
183
+ const ansiStyles = assembleStyles();
184
+ var ansi_styles_default = ansiStyles;
185
+ export {
186
+ backgroundColorNames,
187
+ colorNames,
188
+ ansi_styles_default as default,
189
+ foregroundColorNames,
190
+ modifierNames
191
+ };
192
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../source/vendor/ansi-styles/index.js"],
4
+ "sourcesContent": ["const ANSI_BACKGROUND_OFFSET = 10;\n\nconst wrapAnsi16 = (offset = 0) => code => `\\u001B[${code + offset}m`;\n\nconst wrapAnsi256 = (offset = 0) => code => `\\u001B[${38 + offset};5;${code}m`;\n\nconst wrapAnsi16m = (offset = 0) => (red, green, blue) => `\\u001B[${38 + offset};2;${red};${green};${blue}m`;\n\nconst styles = {\n\tmodifier: {\n\t\treset: [0, 0],\n\t\t// 21 isn't widely supported and 22 does the same thing\n\t\tbold: [1, 22],\n\t\tdim: [2, 22],\n\t\titalic: [3, 23],\n\t\tunderline: [4, 24],\n\t\toverline: [53, 55],\n\t\tinverse: [7, 27],\n\t\thidden: [8, 28],\n\t\tstrikethrough: [9, 29],\n\t},\n\tcolor: {\n\t\tblack: [30, 39],\n\t\tred: [31, 39],\n\t\tgreen: [32, 39],\n\t\tyellow: [33, 39],\n\t\tblue: [34, 39],\n\t\tmagenta: [35, 39],\n\t\tcyan: [36, 39],\n\t\twhite: [37, 39],\n\n\t\t// Bright color\n\t\tblackBright: [90, 39],\n\t\tgray: [90, 39], // Alias of `blackBright`\n\t\tgrey: [90, 39], // Alias of `blackBright`\n\t\tredBright: [91, 39],\n\t\tgreenBright: [92, 39],\n\t\tyellowBright: [93, 39],\n\t\tblueBright: [94, 39],\n\t\tmagentaBright: [95, 39],\n\t\tcyanBright: [96, 39],\n\t\twhiteBright: [97, 39],\n\t},\n\tbgColor: {\n\t\tbgBlack: [40, 49],\n\t\tbgRed: [41, 49],\n\t\tbgGreen: [42, 49],\n\t\tbgYellow: [43, 49],\n\t\tbgBlue: [44, 49],\n\t\tbgMagenta: [45, 49],\n\t\tbgCyan: [46, 49],\n\t\tbgWhite: [47, 49],\n\n\t\t// Bright color\n\t\tbgBlackBright: [100, 49],\n\t\tbgGray: [100, 49], // Alias of `bgBlackBright`\n\t\tbgGrey: [100, 49], // Alias of `bgBlackBright`\n\t\tbgRedBright: [101, 49],\n\t\tbgGreenBright: [102, 49],\n\t\tbgYellowBright: [103, 49],\n\t\tbgBlueBright: [104, 49],\n\t\tbgMagentaBright: [105, 49],\n\t\tbgCyanBright: [106, 49],\n\t\tbgWhiteBright: [107, 49],\n\t},\n};\n\nexport const modifierNames = Object.keys(styles.modifier);\nexport const foregroundColorNames = Object.keys(styles.color);\nexport const backgroundColorNames = Object.keys(styles.bgColor);\nexport const colorNames = [...foregroundColorNames, ...backgroundColorNames];\n\nfunction assembleStyles() {\n\tconst codes = new Map();\n\n\tfor (const [groupName, group] of Object.entries(styles)) {\n\t\tfor (const [styleName, style] of Object.entries(group)) {\n\t\t\tstyles[styleName] = {\n\t\t\t\topen: `\\u001B[${style[0]}m`,\n\t\t\t\tclose: `\\u001B[${style[1]}m`,\n\t\t\t};\n\n\t\t\tgroup[styleName] = styles[styleName];\n\n\t\t\tcodes.set(style[0], style[1]);\n\t\t}\n\n\t\tObject.defineProperty(styles, groupName, {\n\t\t\tvalue: group,\n\t\t\tenumerable: false,\n\t\t});\n\t}\n\n\tObject.defineProperty(styles, 'codes', {\n\t\tvalue: codes,\n\t\tenumerable: false,\n\t});\n\n\tstyles.color.close = '\\u001B[39m';\n\tstyles.bgColor.close = '\\u001B[49m';\n\n\tstyles.color.ansi = wrapAnsi16();\n\tstyles.color.ansi256 = wrapAnsi256();\n\tstyles.color.ansi16m = wrapAnsi16m();\n\tstyles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);\n\tstyles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);\n\tstyles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);\n\n\t// From https://github.com/Qix-/color-convert/blob/3f0e0d4e92e235796ccb17f6e85c72094a651f49/conversions.js\n\tObject.defineProperties(styles, {\n\t\trgbToAnsi256: {\n\t\t\tvalue(red, green, blue) {\n\t\t\t\t// We use the extended greyscale palette here, with the exception of\n\t\t\t\t// black and white. normal palette only has 4 greyscale shades.\n\t\t\t\tif (red === green && green === blue) {\n\t\t\t\t\tif (red < 8) {\n\t\t\t\t\t\treturn 16;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (red > 248) {\n\t\t\t\t\t\treturn 231;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn Math.round(((red - 8) / 247) * 24) + 232;\n\t\t\t\t}\n\n\t\t\t\treturn 16\n\t\t\t\t\t+ (36 * Math.round(red / 255 * 5))\n\t\t\t\t\t+ (6 * Math.round(green / 255 * 5))\n\t\t\t\t\t+ Math.round(blue / 255 * 5);\n\t\t\t},\n\t\t\tenumerable: false,\n\t\t},\n\t\thexToRgb: {\n\t\t\tvalue(hex) {\n\t\t\t\tconst matches = /[a-f\\d]{6}|[a-f\\d]{3}/i.exec(hex.toString(16));\n\t\t\t\tif (!matches) {\n\t\t\t\t\treturn [0, 0, 0];\n\t\t\t\t}\n\n\t\t\t\tlet [colorString] = matches;\n\n\t\t\t\tif (colorString.length === 3) {\n\t\t\t\t\tcolorString = [...colorString].map(character => character + character).join('');\n\t\t\t\t}\n\n\t\t\t\tconst integer = Number.parseInt(colorString, 16);\n\n\t\t\t\treturn [\n\t\t\t\t\t/* eslint-disable no-bitwise */\n\t\t\t\t\t(integer >> 16) & 0xFF,\n\t\t\t\t\t(integer >> 8) & 0xFF,\n\t\t\t\t\tinteger & 0xFF,\n\t\t\t\t\t/* eslint-enable no-bitwise */\n\t\t\t\t];\n\t\t\t},\n\t\t\tenumerable: false,\n\t\t},\n\t\thexToAnsi256: {\n\t\t\tvalue: hex => styles.rgbToAnsi256(...styles.hexToRgb(hex)),\n\t\t\tenumerable: false,\n\t\t},\n\t\tansi256ToAnsi: {\n\t\t\tvalue(code) {\n\t\t\t\tif (code < 8) {\n\t\t\t\t\treturn 30 + code;\n\t\t\t\t}\n\n\t\t\t\tif (code < 16) {\n\t\t\t\t\treturn 90 + (code - 8);\n\t\t\t\t}\n\n\t\t\t\tlet red;\n\t\t\t\tlet green;\n\t\t\t\tlet blue;\n\n\t\t\t\tif (code >= 232) {\n\t\t\t\t\tred = (((code - 232) * 10) + 8) / 255;\n\t\t\t\t\tgreen = red;\n\t\t\t\t\tblue = red;\n\t\t\t\t} else {\n\t\t\t\t\tcode -= 16;\n\n\t\t\t\t\tconst remainder = code % 36;\n\n\t\t\t\t\tred = Math.floor(code / 36) / 5;\n\t\t\t\t\tgreen = Math.floor(remainder / 6) / 5;\n\t\t\t\t\tblue = (remainder % 6) / 5;\n\t\t\t\t}\n\n\t\t\t\tconst value = Math.max(red, green, blue) * 2;\n\n\t\t\t\tif (value === 0) {\n\t\t\t\t\treturn 30;\n\t\t\t\t}\n\n\t\t\t\t// eslint-disable-next-line no-bitwise\n\t\t\t\tlet result = 30 + ((Math.round(blue) << 2) | (Math.round(green) << 1) | Math.round(red));\n\n\t\t\t\tif (value === 2) {\n\t\t\t\t\tresult += 60;\n\t\t\t\t}\n\n\t\t\t\treturn result;\n\t\t\t},\n\t\t\tenumerable: false,\n\t\t},\n\t\trgbToAnsi: {\n\t\t\tvalue: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),\n\t\t\tenumerable: false,\n\t\t},\n\t\thexToAnsi: {\n\t\t\tvalue: hex => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),\n\t\t\tenumerable: false,\n\t\t},\n\t});\n\n\treturn styles;\n}\n\nconst ansiStyles = assembleStyles();\n\nexport default ansiStyles;\n"],
5
+ "mappings": "AAAA,MAAM,yBAAyB;AAE/B,MAAM,aAAa,CAAC,SAAS,MAAM,UAAQ,QAAU,OAAO,MAAM;AAElE,MAAM,cAAc,CAAC,SAAS,MAAM,UAAQ,QAAU,KAAK,MAAM,MAAM,IAAI;AAE3E,MAAM,cAAc,CAAC,SAAS,MAAM,CAAC,KAAK,OAAO,SAAS,QAAU,KAAK,MAAM,MAAM,GAAG,IAAI,KAAK,IAAI,IAAI;AAEzG,MAAM,SAAS;AAAA,EACd,UAAU;AAAA,IACT,OAAO,CAAC,GAAG,CAAC;AAAA;AAAA,IAEZ,MAAM,CAAC,GAAG,EAAE;AAAA,IACZ,KAAK,CAAC,GAAG,EAAE;AAAA,IACX,QAAQ,CAAC,GAAG,EAAE;AAAA,IACd,WAAW,CAAC,GAAG,EAAE;AA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AAM;AACX,YAAI,OAAO,GAAG;AACb,iBAAO,KAAK;AAAA,QACb;AAEA,YAAI,OAAO,IAAI;AACd,iBAAO,MAAM,OAAO;AAAA,QACrB;AAEA,YAAI;AACJ,YAAI;AACJ,YAAI;AAEJ,YAAI,QAAQ,KAAK;AAChB,kBAAS,OAAO,OAAO,KAAM,KAAK;AAClC,kBAAQ;AACR,iBAAO;AAAA,QACR,OAAO;AACN,kBAAQ;AAER,gBAAM,YAAY,OAAO;AAEzB,gBAAM,KAAK,MAAM,OAAO,EAAE,IAAI;AAC9B,kBAAQ,KAAK,MAAM,YAAY,CAAC,IAAI;AACpC,iBAAQ,YAAY,IAAK;AAAA,QAC1B;AAEA,cAAM,QAAQ,KAAK,IAAI,KAAK,OAAO,IAAI,IAAI;AAE3C,YAAI,UAAU,GAAG;AAChB,iBAAO;AAAA,QACR;AAGA,YAAI,SAAS,MAAO,KAAK,MAAM,IAAI,KAAK,IAAM,KAAK,MAAM,KAAK,KAAK,IAAK,KAAK,MAAM,GAAG;AAEtF,YAAI,UAAU,GAAG;AAChB,oBAAU;AAAA,QACX;AAEA,eAAO;AAAA,MACR;AAAA,MACA,YAAY;AAAA,IACb;AAAA,IACA,WAAW;AAAA,MACV,OAAO,CAAC,KAAK,OAAO,SAAS,OAAO,cAAc,OAAO,aAAa,KAAK,OAAO,IAAI,CAAC;AAAA,MACvF,YAAY;AAAA,IACb;AAAA,IACA,WAAW;AAAA,MACV,OAAO,SAAO,OAAO,cAAc,OAAO,aAAa,GAAG,CAAC;AAAA,MAC3D,YAAY;AAAA,IACb;AAAA,EACD,CAAC;AAED,SAAO;AACR;AAEA,MAAM,aAAa,eAAe;AAElC,IAAO,sBAAQ;",
6
+ "names": []
7
+ }
@@ -0,0 +1,49 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var browser_exports = {};
19
+ __export(browser_exports, {
20
+ default: () => browser_default
21
+ });
22
+ module.exports = __toCommonJS(browser_exports);
23
+ const level = (() => {
24
+ if (!("navigator" in globalThis)) {
25
+ return 0;
26
+ }
27
+ if (globalThis.navigator.userAgentData) {
28
+ const brand = navigator.userAgentData.brands.find(({ brand: brand2 }) => brand2 === "Chromium");
29
+ if (brand && brand.version > 93) {
30
+ return 3;
31
+ }
32
+ }
33
+ if (/\b(Chrome|Chromium)\//.test(globalThis.navigator.userAgent)) {
34
+ return 1;
35
+ }
36
+ return 0;
37
+ })();
38
+ const colorSupport = level !== 0 && {
39
+ level,
40
+ hasBasic: true,
41
+ has256: level >= 2,
42
+ has16m: level >= 3
43
+ };
44
+ const supportsColor = {
45
+ stdout: colorSupport,
46
+ stderr: colorSupport
47
+ };
48
+ var browser_default = supportsColor;
49
+ //# sourceMappingURL=browser.cjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../source/vendor/supports-color/browser.js"],
4
+ "sourcesContent": ["/* eslint-env browser */\n\nconst level = (() => {\n\tif (!('navigator' in globalThis)) {\n\t\treturn 0;\n\t}\n\n\tif (globalThis.navigator.userAgentData) {\n\t\tconst brand = navigator.userAgentData.brands.find(({brand}) => brand === 'Chromium');\n\t\tif (brand && brand.version > 93) {\n\t\t\treturn 3;\n\t\t}\n\t}\n\n\tif (/\\b(Chrome|Chromium)\\//.test(globalThis.navigator.userAgent)) {\n\t\treturn 1;\n\t}\n\n\treturn 0;\n})();\n\nconst colorSupport = level !== 0 && {\n\tlevel,\n\thasBasic: true,\n\thas256: level >= 2,\n\thas16m: level >= 3,\n};\n\nconst supportsColor = {\n\tstdout: colorSupport,\n\tstderr: colorSupport,\n};\n\nexport default supportsColor;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,MAAM,SAAS,MAAM;AACpB,MAAI,EAAE,eAAe,aAAa;AACjC,WAAO;AAAA,EACR;AAEA,MAAI,WAAW,UAAU,eAAe;AACvC,UAAM,QAAQ,UAAU,cAAc,OAAO,KAAK,CAAC,EAAC,OAAAA,OAAK,MAAMA,WAAU,UAAU;AACnF,QAAI,SAAS,MAAM,UAAU,IAAI;AAChC,aAAO;AAAA,IACR;AAAA,EACD;AAEA,MAAI,wBAAwB,KAAK,WAAW,UAAU,SAAS,GAAG;AACjE,WAAO;AAAA,EACR;AAEA,SAAO;AACR,GAAG;AAEH,MAAM,eAAe,UAAU,KAAK;AAAA,EACnC;AAAA,EACA,UAAU;AAAA,EACV,QAAQ,SAAS;AAAA,EACjB,QAAQ,SAAS;AAClB;AAEA,MAAM,gBAAgB;AAAA,EACrB,QAAQ;AAAA,EACR,QAAQ;AACT;AAEA,IAAO,kBAAQ;",
6
+ "names": ["brand"]
7
+ }
@@ -0,0 +1,30 @@
1
+ const level = (() => {
2
+ if (!("navigator" in globalThis)) {
3
+ return 0;
4
+ }
5
+ if (globalThis.navigator.userAgentData) {
6
+ const brand = navigator.userAgentData.brands.find(({ brand: brand2 }) => brand2 === "Chromium");
7
+ if (brand && brand.version > 93) {
8
+ return 3;
9
+ }
10
+ }
11
+ if (/\b(Chrome|Chromium)\//.test(globalThis.navigator.userAgent)) {
12
+ return 1;
13
+ }
14
+ return 0;
15
+ })();
16
+ const colorSupport = level !== 0 && {
17
+ level,
18
+ hasBasic: true,
19
+ has256: level >= 2,
20
+ has16m: level >= 3
21
+ };
22
+ const supportsColor = {
23
+ stdout: colorSupport,
24
+ stderr: colorSupport
25
+ };
26
+ var browser_default = supportsColor;
27
+ export {
28
+ browser_default as default
29
+ };
30
+ //# sourceMappingURL=browser.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../source/vendor/supports-color/browser.js"],
4
+ "sourcesContent": ["/* eslint-env browser */\n\nconst level = (() => {\n\tif (!('navigator' in globalThis)) {\n\t\treturn 0;\n\t}\n\n\tif (globalThis.navigator.userAgentData) {\n\t\tconst brand = navigator.userAgentData.brands.find(({brand}) => brand === 'Chromium');\n\t\tif (brand && brand.version > 93) {\n\t\t\treturn 3;\n\t\t}\n\t}\n\n\tif (/\\b(Chrome|Chromium)\\//.test(globalThis.navigator.userAgent)) {\n\t\treturn 1;\n\t}\n\n\treturn 0;\n})();\n\nconst colorSupport = level !== 0 && {\n\tlevel,\n\thasBasic: true,\n\thas256: level >= 2,\n\thas16m: level >= 3,\n};\n\nconst supportsColor = {\n\tstdout: colorSupport,\n\tstderr: colorSupport,\n};\n\nexport default supportsColor;\n"],
5
+ "mappings": "AAEA,MAAM,SAAS,MAAM;AACpB,MAAI,EAAE,eAAe,aAAa;AACjC,WAAO;AAAA,EACR;AAEA,MAAI,WAAW,UAAU,eAAe;AACvC,UAAM,QAAQ,UAAU,cAAc,OAAO,KAAK,CAAC,EAAC,OAAAA,OAAK,MAAMA,WAAU,UAAU;AACnF,QAAI,SAAS,MAAM,UAAU,IAAI;AAChC,aAAO;AAAA,IACR;AAAA,EACD;AAEA,MAAI,wBAAwB,KAAK,WAAW,UAAU,SAAS,GAAG;AACjE,WAAO;AAAA,EACR;AAEA,SAAO;AACR,GAAG;AAEH,MAAM,eAAe,UAAU,KAAK;AAAA,EACnC;AAAA,EACA,UAAU;AAAA,EACV,QAAQ,SAAS;AAAA,EACjB,QAAQ,SAAS;AAClB;AAEA,MAAM,gBAAgB;AAAA,EACrB,QAAQ;AAAA,EACR,QAAQ;AACT;AAEA,IAAO,kBAAQ;",
6
+ "names": ["brand"]
7
+ }