@nsshunt/stsutils 1.19.146 → 1.19.148

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/node.mjs CHANGED
@@ -1,4 +1,6 @@
1
+ import { t as chalk } from "./source-DJGQCPrR.js";
1
2
  import { AsyncLocalStorage } from "node:async_hooks";
3
+ import winston from "winston";
2
4
  //#region src/di-node.ts
3
5
  var NodeInjectionContextStore = class {
4
6
  storage = new AsyncLocalStorage();
@@ -10,6 +12,24 @@ var NodeInjectionContextStore = class {
10
12
  }
11
13
  };
12
14
  //#endregion
13
- export { NodeInjectionContextStore };
15
+ //#region src/pidColours.ts
16
+ var PidColours = class PidColours {
17
+ static pidColours = /* @__PURE__ */ new Map();
18
+ static randomChannel = () => Math.floor(80 + Math.random() * 176);
19
+ static getPidColour = (pid) => {
20
+ let colour = PidColours.pidColours.get(pid);
21
+ if (!colour) {
22
+ colour = chalk.rgb(PidColours.randomChannel(), PidColours.randomChannel(), PidColours.randomChannel());
23
+ PidColours.pidColours.set(pid, colour);
24
+ }
25
+ return colour;
26
+ };
27
+ static pidFormat = winston.format((info) => {
28
+ info.message = `${PidColours.getPidColour(process.pid)(String(process.pid))} ${info.message}`;
29
+ return info;
30
+ });
31
+ };
32
+ //#endregion
33
+ export { NodeInjectionContextStore, PidColours };
14
34
 
15
35
  //# sourceMappingURL=node.mjs.map
package/dist/node.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"node.mjs","names":[],"sources":["../src/di-node.ts"],"sourcesContent":["import { AsyncLocalStorage } from \"node:async_hooks\";\n\nimport { Injector, InjectionContextStore } from \"./di.js\";\n\nexport class NodeInjectionContextStore implements InjectionContextStore {\n private readonly storage = new AsyncLocalStorage<Injector>();\n\n run<T>(injector: Injector, fn: () => T): T {\n return this.storage.run(injector, fn);\n }\n\n get(): Injector | undefined {\n return this.storage.getStore();\n }\n}\n"],"mappings":";;AAIA,IAAa,4BAAb,MAAwE;CACpE,UAA2B,IAAI,kBAA4B;CAE3D,IAAO,UAAoB,IAAgB;EACvC,OAAO,KAAK,QAAQ,IAAI,UAAU,EAAE;CACxC;CAEA,MAA4B;EACxB,OAAO,KAAK,QAAQ,SAAS;CACjC;AACJ"}
1
+ {"version":3,"file":"node.mjs","names":[],"sources":["../src/di-node.ts","../src/pidColours.ts"],"sourcesContent":["import { AsyncLocalStorage } from \"node:async_hooks\";\n\nimport { Injector, InjectionContextStore } from \"./di.js\";\n\nexport class NodeInjectionContextStore implements InjectionContextStore {\n private readonly storage = new AsyncLocalStorage<Injector>();\n\n run<T>(injector: Injector, fn: () => T): T {\n return this.storage.run(injector, fn);\n }\n\n get(): Injector | undefined {\n return this.storage.getStore();\n }\n}\n","import winston from \"winston\";\nimport chalk from \"chalk\";\n\nexport class PidColours {\n private static readonly pidColours = new Map<\n number,\n (text: string) => string\n >();\n\n private static readonly randomChannel = () =>\n Math.floor(80 + Math.random() * 176);\n\n private static getPidColour = (pid: number) => {\n let colour = PidColours.pidColours.get(pid);\n\n if (!colour) {\n colour = chalk.rgb(\n PidColours.randomChannel(),\n PidColours.randomChannel(),\n PidColours.randomChannel()\n );\n\n PidColours.pidColours.set(pid, colour);\n }\n\n return colour;\n };\n\n static readonly pidFormat = winston.format((info) => {\n const colour = PidColours.getPidColour(process.pid);\n info.message = `${colour(String(process.pid))} ${info.message}`;\n return info;\n });\n}\n"],"mappings":";;;;AAIA,IAAa,4BAAb,MAAwE;CACpE,UAA2B,IAAI,kBAA4B;CAE3D,IAAO,UAAoB,IAAgB;EACvC,OAAO,KAAK,QAAQ,IAAI,UAAU,EAAE;CACxC;CAEA,MAA4B;EACxB,OAAO,KAAK,QAAQ,SAAS;CACjC;AACJ;;;ACXA,IAAa,aAAb,MAAa,WAAW;CACpB,OAAwB,6BAAa,IAAI,IAGvC;CAEF,OAAwB,sBACpB,KAAK,MAAM,KAAK,KAAK,OAAO,IAAI,GAAG;CAEvC,OAAe,gBAAgB,QAAgB;EAC3C,IAAI,SAAS,WAAW,WAAW,IAAI,GAAG;EAE1C,IAAI,CAAC,QAAQ;GACT,SAAS,MAAM,IACX,WAAW,cAAc,GACzB,WAAW,cAAc,GACzB,WAAW,cAAc,CAC7B;GAEA,WAAW,WAAW,IAAI,KAAK,MAAM;EACzC;EAEA,OAAO;CACX;CAEA,OAAgB,YAAY,QAAQ,QAAQ,SAAS;EAEjD,KAAK,UAAU,GADA,WAAW,aAAa,QAAQ,GAC7B,CAAA,CAAO,OAAO,QAAQ,GAAG,CAAC,EAAE,GAAG,KAAK;EACtD,OAAO;CACX,CAAC;AACL"}
@@ -0,0 +1,338 @@
1
+ //#region node_modules/chalk/source/vendor/ansi-styles/index.js
2
+ var ANSI_BACKGROUND_OFFSET = 10;
3
+ var wrapAnsi16 = (offset = 0) => (code) => `\u001B[${code + offset}m`;
4
+ var wrapAnsi256 = (offset = 0) => (code) => `\u001B[${38 + offset};5;${code}m`;
5
+ var wrapAnsi16m = (offset = 0) => (red, green, blue) => `\u001B[${38 + offset};2;${red};${green};${blue}m`;
6
+ var styles$1 = {
7
+ modifier: {
8
+ reset: [0, 0],
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
+ blackBright: [90, 39],
28
+ gray: [90, 39],
29
+ grey: [90, 39],
30
+ redBright: [91, 39],
31
+ greenBright: [92, 39],
32
+ yellowBright: [93, 39],
33
+ blueBright: [94, 39],
34
+ magentaBright: [95, 39],
35
+ cyanBright: [96, 39],
36
+ whiteBright: [97, 39]
37
+ },
38
+ bgColor: {
39
+ bgBlack: [40, 49],
40
+ bgRed: [41, 49],
41
+ bgGreen: [42, 49],
42
+ bgYellow: [43, 49],
43
+ bgBlue: [44, 49],
44
+ bgMagenta: [45, 49],
45
+ bgCyan: [46, 49],
46
+ bgWhite: [47, 49],
47
+ bgBlackBright: [100, 49],
48
+ bgGray: [100, 49],
49
+ bgGrey: [100, 49],
50
+ bgRedBright: [101, 49],
51
+ bgGreenBright: [102, 49],
52
+ bgYellowBright: [103, 49],
53
+ bgBlueBright: [104, 49],
54
+ bgMagentaBright: [105, 49],
55
+ bgCyanBright: [106, 49],
56
+ bgWhiteBright: [107, 49]
57
+ }
58
+ };
59
+ Object.keys(styles$1.modifier);
60
+ var foregroundColorNames = Object.keys(styles$1.color);
61
+ var backgroundColorNames = Object.keys(styles$1.bgColor);
62
+ [...foregroundColorNames, ...backgroundColorNames];
63
+ function assembleStyles() {
64
+ const codes = /* @__PURE__ */ new Map();
65
+ for (const [groupName, group] of Object.entries(styles$1)) {
66
+ for (const [styleName, style] of Object.entries(group)) {
67
+ styles$1[styleName] = {
68
+ open: `\u001B[${style[0]}m`,
69
+ close: `\u001B[${style[1]}m`
70
+ };
71
+ group[styleName] = styles$1[styleName];
72
+ codes.set(style[0], style[1]);
73
+ }
74
+ Object.defineProperty(styles$1, groupName, {
75
+ value: group,
76
+ enumerable: false
77
+ });
78
+ }
79
+ Object.defineProperty(styles$1, "codes", {
80
+ value: codes,
81
+ enumerable: false
82
+ });
83
+ styles$1.color.close = "\x1B[39m";
84
+ styles$1.bgColor.close = "\x1B[49m";
85
+ styles$1.color.ansi = wrapAnsi16();
86
+ styles$1.color.ansi256 = wrapAnsi256();
87
+ styles$1.color.ansi16m = wrapAnsi16m();
88
+ styles$1.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
89
+ styles$1.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
90
+ styles$1.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
91
+ Object.defineProperties(styles$1, {
92
+ rgbToAnsi256: {
93
+ value(red, green, blue) {
94
+ if (red === green && green === blue) {
95
+ if (red < 8) return 16;
96
+ if (red > 248) return 231;
97
+ return Math.round((red - 8) / 247 * 24) + 232;
98
+ }
99
+ return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
100
+ },
101
+ enumerable: false
102
+ },
103
+ hexToRgb: {
104
+ value(hex) {
105
+ const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
106
+ if (!matches) return [
107
+ 0,
108
+ 0,
109
+ 0
110
+ ];
111
+ let [colorString] = matches;
112
+ if (colorString.length === 3) colorString = [...colorString].map((character) => character + character).join("");
113
+ const integer = Number.parseInt(colorString, 16);
114
+ return [
115
+ integer >> 16 & 255,
116
+ integer >> 8 & 255,
117
+ integer & 255
118
+ ];
119
+ },
120
+ enumerable: false
121
+ },
122
+ hexToAnsi256: {
123
+ value: (hex) => styles$1.rgbToAnsi256(...styles$1.hexToRgb(hex)),
124
+ enumerable: false
125
+ },
126
+ ansi256ToAnsi: {
127
+ value(code) {
128
+ if (code < 8) return 30 + code;
129
+ if (code < 16) return 90 + (code - 8);
130
+ let red;
131
+ let green;
132
+ let blue;
133
+ if (code >= 232) {
134
+ red = ((code - 232) * 10 + 8) / 255;
135
+ green = red;
136
+ blue = red;
137
+ } else {
138
+ code -= 16;
139
+ const remainder = code % 36;
140
+ red = Math.floor(code / 36) / 5;
141
+ green = Math.floor(remainder / 6) / 5;
142
+ blue = remainder % 6 / 5;
143
+ }
144
+ const value = Math.max(red, green, blue) * 2;
145
+ if (value === 0) return 30;
146
+ let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
147
+ if (value === 2) result += 60;
148
+ return result;
149
+ },
150
+ enumerable: false
151
+ },
152
+ rgbToAnsi: {
153
+ value: (red, green, blue) => styles$1.ansi256ToAnsi(styles$1.rgbToAnsi256(red, green, blue)),
154
+ enumerable: false
155
+ },
156
+ hexToAnsi: {
157
+ value: (hex) => styles$1.ansi256ToAnsi(styles$1.hexToAnsi256(hex)),
158
+ enumerable: false
159
+ }
160
+ });
161
+ return styles$1;
162
+ }
163
+ var ansiStyles = assembleStyles();
164
+ //#endregion
165
+ //#region node_modules/chalk/source/vendor/supports-color/browser.js
166
+ var level = (() => {
167
+ if (!("navigator" in globalThis)) return 0;
168
+ if (globalThis.navigator.userAgentData) {
169
+ const brand = navigator.userAgentData.brands.find(({ brand }) => brand === "Chromium");
170
+ if (brand && brand.version > 93) return 3;
171
+ }
172
+ if (/\b(Chrome|Chromium)\//.test(globalThis.navigator.userAgent)) return 1;
173
+ return 0;
174
+ })();
175
+ var colorSupport = level !== 0 && {
176
+ level,
177
+ hasBasic: true,
178
+ has256: level >= 2,
179
+ has16m: level >= 3
180
+ };
181
+ var supportsColor = {
182
+ stdout: colorSupport,
183
+ stderr: colorSupport
184
+ };
185
+ //#endregion
186
+ //#region node_modules/chalk/source/utilities.js
187
+ function stringReplaceAll(string, substring, replacer) {
188
+ let index = string.indexOf(substring);
189
+ if (index === -1) return string;
190
+ const substringLength = substring.length;
191
+ let endIndex = 0;
192
+ let returnValue = "";
193
+ do {
194
+ returnValue += string.slice(endIndex, index) + substring + replacer;
195
+ endIndex = index + substringLength;
196
+ index = string.indexOf(substring, endIndex);
197
+ } while (index !== -1);
198
+ returnValue += string.slice(endIndex);
199
+ return returnValue;
200
+ }
201
+ function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
202
+ let endIndex = 0;
203
+ let returnValue = "";
204
+ do {
205
+ const gotCR = string[index - 1] === "\r";
206
+ returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
207
+ endIndex = index + 1;
208
+ index = string.indexOf("\n", endIndex);
209
+ } while (index !== -1);
210
+ returnValue += string.slice(endIndex);
211
+ return returnValue;
212
+ }
213
+ //#endregion
214
+ //#region node_modules/chalk/source/index.js
215
+ var { stdout: stdoutColor, stderr: stderrColor } = supportsColor;
216
+ var GENERATOR = Symbol("GENERATOR");
217
+ var STYLER = Symbol("STYLER");
218
+ var IS_EMPTY = Symbol("IS_EMPTY");
219
+ var levelMapping = [
220
+ "ansi",
221
+ "ansi",
222
+ "ansi256",
223
+ "ansi16m"
224
+ ];
225
+ var styles = Object.create(null);
226
+ var applyOptions = (object, options = {}) => {
227
+ if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) throw new Error("The `level` option should be an integer from 0 to 3");
228
+ const colorLevel = stdoutColor ? stdoutColor.level : 0;
229
+ object.level = options.level === void 0 ? colorLevel : options.level;
230
+ };
231
+ var chalkFactory = (options) => {
232
+ const chalk = (...strings) => strings.join(" ");
233
+ applyOptions(chalk, options);
234
+ Object.setPrototypeOf(chalk, createChalk.prototype);
235
+ return chalk;
236
+ };
237
+ function createChalk(options) {
238
+ return chalkFactory(options);
239
+ }
240
+ Object.setPrototypeOf(createChalk.prototype, Function.prototype);
241
+ for (const [styleName, style] of Object.entries(ansiStyles)) styles[styleName] = { get() {
242
+ const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
243
+ Object.defineProperty(this, styleName, { value: builder });
244
+ return builder;
245
+ } };
246
+ styles.visible = { get() {
247
+ const builder = createBuilder(this, this[STYLER], true);
248
+ Object.defineProperty(this, "visible", { value: builder });
249
+ return builder;
250
+ } };
251
+ var getModelAnsi = (model, level, type, ...arguments_) => {
252
+ if (model === "rgb") {
253
+ if (level === "ansi16m") return ansiStyles[type].ansi16m(...arguments_);
254
+ if (level === "ansi256") return ansiStyles[type].ansi256(ansiStyles.rgbToAnsi256(...arguments_));
255
+ return ansiStyles[type].ansi(ansiStyles.rgbToAnsi(...arguments_));
256
+ }
257
+ if (model === "hex") return getModelAnsi("rgb", level, type, ...ansiStyles.hexToRgb(...arguments_));
258
+ return ansiStyles[type][model](...arguments_);
259
+ };
260
+ for (const model of [
261
+ "rgb",
262
+ "hex",
263
+ "ansi256"
264
+ ]) {
265
+ styles[model] = { get() {
266
+ const { level } = this;
267
+ return function(...arguments_) {
268
+ const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansiStyles.color.close, this[STYLER]);
269
+ return createBuilder(this, styler, this[IS_EMPTY]);
270
+ };
271
+ } };
272
+ const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
273
+ styles[bgModel] = { get() {
274
+ const { level } = this;
275
+ return function(...arguments_) {
276
+ const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansiStyles.bgColor.close, this[STYLER]);
277
+ return createBuilder(this, styler, this[IS_EMPTY]);
278
+ };
279
+ } };
280
+ }
281
+ var proto = Object.defineProperties(() => {}, {
282
+ ...styles,
283
+ level: {
284
+ enumerable: true,
285
+ get() {
286
+ return this[GENERATOR].level;
287
+ },
288
+ set(level) {
289
+ this[GENERATOR].level = level;
290
+ }
291
+ }
292
+ });
293
+ var createStyler = (open, close, parent) => {
294
+ let openAll;
295
+ let closeAll;
296
+ if (parent === void 0) {
297
+ openAll = open;
298
+ closeAll = close;
299
+ } else {
300
+ openAll = parent.openAll + open;
301
+ closeAll = close + parent.closeAll;
302
+ }
303
+ return {
304
+ open,
305
+ close,
306
+ openAll,
307
+ closeAll,
308
+ parent
309
+ };
310
+ };
311
+ var createBuilder = (self, _styler, _isEmpty) => {
312
+ const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
313
+ Object.setPrototypeOf(builder, proto);
314
+ builder[GENERATOR] = self;
315
+ builder[STYLER] = _styler;
316
+ builder[IS_EMPTY] = _isEmpty;
317
+ return builder;
318
+ };
319
+ var applyStyle = (self, string) => {
320
+ if (self.level <= 0 || !string) return self[IS_EMPTY] ? "" : string;
321
+ let styler = self[STYLER];
322
+ if (styler === void 0) return string;
323
+ const { openAll, closeAll } = styler;
324
+ if (string.includes("\x1B")) while (styler !== void 0) {
325
+ string = stringReplaceAll(string, styler.close, styler.open);
326
+ styler = styler.parent;
327
+ }
328
+ const lfIndex = string.indexOf("\n");
329
+ if (lfIndex !== -1) string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
330
+ return openAll + string + closeAll;
331
+ };
332
+ Object.defineProperties(createChalk.prototype, styles);
333
+ var chalk = createChalk();
334
+ createChalk({ level: stderrColor ? stderrColor.level : 0 });
335
+ //#endregion
336
+ export { chalk as t };
337
+
338
+ //# sourceMappingURL=source-DJGQCPrR.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source-DJGQCPrR.js","names":["styles"],"sources":["../node_modules/chalk/source/vendor/ansi-styles/index.js","../node_modules/chalk/source/vendor/supports-color/browser.js","../node_modules/chalk/source/utilities.js","../node_modules/chalk/source/index.js"],"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","/* 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","// TODO: When targeting Node.js 16, use `String.prototype.replaceAll`.\nexport function stringReplaceAll(string, substring, replacer) {\n\tlet index = string.indexOf(substring);\n\tif (index === -1) {\n\t\treturn string;\n\t}\n\n\tconst substringLength = substring.length;\n\tlet endIndex = 0;\n\tlet returnValue = '';\n\tdo {\n\t\treturnValue += string.slice(endIndex, index) + substring + replacer;\n\t\tendIndex = index + substringLength;\n\t\tindex = string.indexOf(substring, endIndex);\n\t} while (index !== -1);\n\n\treturnValue += string.slice(endIndex);\n\treturn returnValue;\n}\n\nexport function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {\n\tlet endIndex = 0;\n\tlet returnValue = '';\n\tdo {\n\t\tconst gotCR = string[index - 1] === '\\r';\n\t\treturnValue += string.slice(endIndex, (gotCR ? index - 1 : index)) + prefix + (gotCR ? '\\r\\n' : '\\n') + postfix;\n\t\tendIndex = index + 1;\n\t\tindex = string.indexOf('\\n', endIndex);\n\t} while (index !== -1);\n\n\treturnValue += string.slice(endIndex);\n\treturn returnValue;\n}\n","import ansiStyles from '#ansi-styles';\nimport supportsColor from '#supports-color';\nimport { // eslint-disable-line import/order\n\tstringReplaceAll,\n\tstringEncaseCRLFWithFirstIndex,\n} from './utilities.js';\n\nconst {stdout: stdoutColor, stderr: stderrColor} = supportsColor;\n\nconst GENERATOR = Symbol('GENERATOR');\nconst STYLER = Symbol('STYLER');\nconst IS_EMPTY = Symbol('IS_EMPTY');\n\n// `supportsColor.level` → `ansiStyles.color[name]` mapping\nconst levelMapping = [\n\t'ansi',\n\t'ansi',\n\t'ansi256',\n\t'ansi16m',\n];\n\nconst styles = Object.create(null);\n\nconst applyOptions = (object, options = {}) => {\n\tif (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {\n\t\tthrow new Error('The `level` option should be an integer from 0 to 3');\n\t}\n\n\t// Detect level if not set manually\n\tconst colorLevel = stdoutColor ? stdoutColor.level : 0;\n\tobject.level = options.level === undefined ? colorLevel : options.level;\n};\n\nexport class Chalk {\n\tconstructor(options) {\n\t\t// eslint-disable-next-line no-constructor-return\n\t\treturn chalkFactory(options);\n\t}\n}\n\nconst chalkFactory = options => {\n\tconst chalk = (...strings) => strings.join(' ');\n\tapplyOptions(chalk, options);\n\n\tObject.setPrototypeOf(chalk, createChalk.prototype);\n\n\treturn chalk;\n};\n\nfunction createChalk(options) {\n\treturn chalkFactory(options);\n}\n\nObject.setPrototypeOf(createChalk.prototype, Function.prototype);\n\nfor (const [styleName, style] of Object.entries(ansiStyles)) {\n\tstyles[styleName] = {\n\t\tget() {\n\t\t\tconst builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);\n\t\t\tObject.defineProperty(this, styleName, {value: builder});\n\t\t\treturn builder;\n\t\t},\n\t};\n}\n\nstyles.visible = {\n\tget() {\n\t\tconst builder = createBuilder(this, this[STYLER], true);\n\t\tObject.defineProperty(this, 'visible', {value: builder});\n\t\treturn builder;\n\t},\n};\n\nconst getModelAnsi = (model, level, type, ...arguments_) => {\n\tif (model === 'rgb') {\n\t\tif (level === 'ansi16m') {\n\t\t\treturn ansiStyles[type].ansi16m(...arguments_);\n\t\t}\n\n\t\tif (level === 'ansi256') {\n\t\t\treturn ansiStyles[type].ansi256(ansiStyles.rgbToAnsi256(...arguments_));\n\t\t}\n\n\t\treturn ansiStyles[type].ansi(ansiStyles.rgbToAnsi(...arguments_));\n\t}\n\n\tif (model === 'hex') {\n\t\treturn getModelAnsi('rgb', level, type, ...ansiStyles.hexToRgb(...arguments_));\n\t}\n\n\treturn ansiStyles[type][model](...arguments_);\n};\n\nconst usedModels = ['rgb', 'hex', 'ansi256'];\n\nfor (const model of usedModels) {\n\tstyles[model] = {\n\t\tget() {\n\t\t\tconst {level} = this;\n\t\t\treturn function (...arguments_) {\n\t\t\t\tconst styler = createStyler(getModelAnsi(model, levelMapping[level], 'color', ...arguments_), ansiStyles.color.close, this[STYLER]);\n\t\t\t\treturn createBuilder(this, styler, this[IS_EMPTY]);\n\t\t\t};\n\t\t},\n\t};\n\n\tconst bgModel = 'bg' + model[0].toUpperCase() + model.slice(1);\n\tstyles[bgModel] = {\n\t\tget() {\n\t\t\tconst {level} = this;\n\t\t\treturn function (...arguments_) {\n\t\t\t\tconst styler = createStyler(getModelAnsi(model, levelMapping[level], 'bgColor', ...arguments_), ansiStyles.bgColor.close, this[STYLER]);\n\t\t\t\treturn createBuilder(this, styler, this[IS_EMPTY]);\n\t\t\t};\n\t\t},\n\t};\n}\n\nconst proto = Object.defineProperties(() => {}, {\n\t...styles,\n\tlevel: {\n\t\tenumerable: true,\n\t\tget() {\n\t\t\treturn this[GENERATOR].level;\n\t\t},\n\t\tset(level) {\n\t\t\tthis[GENERATOR].level = level;\n\t\t},\n\t},\n});\n\nconst createStyler = (open, close, parent) => {\n\tlet openAll;\n\tlet closeAll;\n\tif (parent === undefined) {\n\t\topenAll = open;\n\t\tcloseAll = close;\n\t} else {\n\t\topenAll = parent.openAll + open;\n\t\tcloseAll = close + parent.closeAll;\n\t}\n\n\treturn {\n\t\topen,\n\t\tclose,\n\t\topenAll,\n\t\tcloseAll,\n\t\tparent,\n\t};\n};\n\nconst createBuilder = (self, _styler, _isEmpty) => {\n\t// Single argument is hot path, implicit coercion is faster than anything\n\t// eslint-disable-next-line no-implicit-coercion\n\tconst builder = (...arguments_) => applyStyle(builder, (arguments_.length === 1) ? ('' + arguments_[0]) : arguments_.join(' '));\n\n\t// We alter the prototype because we must return a function, but there is\n\t// no way to create a function with a different prototype\n\tObject.setPrototypeOf(builder, proto);\n\n\tbuilder[GENERATOR] = self;\n\tbuilder[STYLER] = _styler;\n\tbuilder[IS_EMPTY] = _isEmpty;\n\n\treturn builder;\n};\n\nconst applyStyle = (self, string) => {\n\tif (self.level <= 0 || !string) {\n\t\treturn self[IS_EMPTY] ? '' : string;\n\t}\n\n\tlet styler = self[STYLER];\n\n\tif (styler === undefined) {\n\t\treturn string;\n\t}\n\n\tconst {openAll, closeAll} = styler;\n\tif (string.includes('\\u001B')) {\n\t\twhile (styler !== undefined) {\n\t\t\t// Replace any instances already present with a re-opening code\n\t\t\t// otherwise only the part of the string until said closing code\n\t\t\t// will be colored, and the rest will simply be 'plain'.\n\t\t\tstring = stringReplaceAll(string, styler.close, styler.open);\n\n\t\t\tstyler = styler.parent;\n\t\t}\n\t}\n\n\t// We can move both next actions out of loop, because remaining actions in loop won't have\n\t// any/visible effect on parts we add here. Close the styling before a linebreak and reopen\n\t// after next line to fix a bleed issue on macOS: https://github.com/chalk/chalk/pull/92\n\tconst lfIndex = string.indexOf('\\n');\n\tif (lfIndex !== -1) {\n\t\tstring = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);\n\t}\n\n\treturn openAll + string + closeAll;\n};\n\nObject.defineProperties(createChalk.prototype, styles);\n\nconst chalk = createChalk();\nexport const chalkStderr = createChalk({level: stderrColor ? stderrColor.level : 0});\n\nexport {\n\tmodifierNames,\n\tforegroundColorNames,\n\tbackgroundColorNames,\n\tcolorNames,\n\n\t// TODO: Remove these aliases in the next major version\n\tmodifierNames as modifiers,\n\tforegroundColorNames as foregroundColors,\n\tbackgroundColorNames as backgroundColors,\n\tcolorNames as colors,\n} from './vendor/ansi-styles/index.js';\n\nexport {\n\tstdoutColor as supportsColor,\n\tstderrColor as supportsColorStderr,\n};\n\nexport default chalk;\n"],"ignoreList":[0,1,2,3],"mappings":";AAAA,IAAM,yBAAyB;AAE/B,IAAM,cAAc,SAAS,OAAM,SAAQ,UAAU,OAAO,OAAO;AAEnE,IAAM,eAAe,SAAS,OAAM,SAAQ,UAAU,KAAK,OAAO,KAAK,KAAK;AAE5E,IAAM,eAAe,SAAS,OAAO,KAAK,OAAO,SAAS,UAAU,KAAK,OAAO,KAAK,IAAI,GAAG,MAAM,GAAG,KAAK;AAE1G,IAAMA,WAAS;CACd,UAAU;EACT,OAAO,CAAC,GAAG,CAAC;EAEZ,MAAM,CAAC,GAAG,EAAE;EACZ,KAAK,CAAC,GAAG,EAAE;EACX,QAAQ,CAAC,GAAG,EAAE;EACd,WAAW,CAAC,GAAG,EAAE;EACjB,UAAU,CAAC,IAAI,EAAE;EACjB,SAAS,CAAC,GAAG,EAAE;EACf,QAAQ,CAAC,GAAG,EAAE;EACd,eAAe,CAAC,GAAG,EAAE;CACtB;CACA,OAAO;EACN,OAAO,CAAC,IAAI,EAAE;EACd,KAAK,CAAC,IAAI,EAAE;EACZ,OAAO,CAAC,IAAI,EAAE;EACd,QAAQ,CAAC,IAAI,EAAE;EACf,MAAM,CAAC,IAAI,EAAE;EACb,SAAS,CAAC,IAAI,EAAE;EAChB,MAAM,CAAC,IAAI,EAAE;EACb,OAAO,CAAC,IAAI,EAAE;EAGd,aAAa,CAAC,IAAI,EAAE;EACpB,MAAM,CAAC,IAAI,EAAE;EACb,MAAM,CAAC,IAAI,EAAE;EACb,WAAW,CAAC,IAAI,EAAE;EAClB,aAAa,CAAC,IAAI,EAAE;EACpB,cAAc,CAAC,IAAI,EAAE;EACrB,YAAY,CAAC,IAAI,EAAE;EACnB,eAAe,CAAC,IAAI,EAAE;EACtB,YAAY,CAAC,IAAI,EAAE;EACnB,aAAa,CAAC,IA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