@cloudnux/cloud-sdk 0.10.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,1615 +1,4 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
8
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
9
- }) : x)(function(x) {
10
- if (typeof require !== "undefined") return require.apply(this, arguments);
11
- throw Error('Dynamic require of "' + x + '" is not supported');
12
- });
13
- var __esm = (fn, res) => function __init() {
14
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
15
- };
16
- var __commonJS = (cb, mod) => function __require2() {
17
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
18
- };
19
- var __copyProps = (to, from, except, desc) => {
20
- if (from && typeof from === "object" || typeof from === "function") {
21
- for (let key of __getOwnPropNames(from))
22
- if (!__hasOwnProp.call(to, key) && key !== except)
23
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
24
- }
25
- return to;
26
- };
27
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
28
- // If the importer is in node compatibility mode or this is not an ESM
29
- // file that has been converted to a CommonJS file using a Babel-
30
- // compatible transform (i.e. "__esModule" has not been set), then set
31
- // "default" to the CommonJS "module.exports" for node compatibility.
32
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
33
- mod
34
- ));
35
-
36
- // ../../node_modules/tsup/assets/esm_shims.js
37
- import path from "path";
38
- import { fileURLToPath } from "url";
39
- var init_esm_shims = __esm({
40
- "../../node_modules/tsup/assets/esm_shims.js"() {
41
- "use strict";
42
- }
43
- });
44
-
45
- // ../../node_modules/color-name/index.js
46
- var require_color_name = __commonJS({
47
- "../../node_modules/color-name/index.js"(exports, module) {
48
- "use strict";
49
- init_esm_shims();
50
- module.exports = {
51
- "aliceblue": [240, 248, 255],
52
- "antiquewhite": [250, 235, 215],
53
- "aqua": [0, 255, 255],
54
- "aquamarine": [127, 255, 212],
55
- "azure": [240, 255, 255],
56
- "beige": [245, 245, 220],
57
- "bisque": [255, 228, 196],
58
- "black": [0, 0, 0],
59
- "blanchedalmond": [255, 235, 205],
60
- "blue": [0, 0, 255],
61
- "blueviolet": [138, 43, 226],
62
- "brown": [165, 42, 42],
63
- "burlywood": [222, 184, 135],
64
- "cadetblue": [95, 158, 160],
65
- "chartreuse": [127, 255, 0],
66
- "chocolate": [210, 105, 30],
67
- "coral": [255, 127, 80],
68
- "cornflowerblue": [100, 149, 237],
69
- "cornsilk": [255, 248, 220],
70
- "crimson": [220, 20, 60],
71
- "cyan": [0, 255, 255],
72
- "darkblue": [0, 0, 139],
73
- "darkcyan": [0, 139, 139],
74
- "darkgoldenrod": [184, 134, 11],
75
- "darkgray": [169, 169, 169],
76
- "darkgreen": [0, 100, 0],
77
- "darkgrey": [169, 169, 169],
78
- "darkkhaki": [189, 183, 107],
79
- "darkmagenta": [139, 0, 139],
80
- "darkolivegreen": [85, 107, 47],
81
- "darkorange": [255, 140, 0],
82
- "darkorchid": [153, 50, 204],
83
- "darkred": [139, 0, 0],
84
- "darksalmon": [233, 150, 122],
85
- "darkseagreen": [143, 188, 143],
86
- "darkslateblue": [72, 61, 139],
87
- "darkslategray": [47, 79, 79],
88
- "darkslategrey": [47, 79, 79],
89
- "darkturquoise": [0, 206, 209],
90
- "darkviolet": [148, 0, 211],
91
- "deeppink": [255, 20, 147],
92
- "deepskyblue": [0, 191, 255],
93
- "dimgray": [105, 105, 105],
94
- "dimgrey": [105, 105, 105],
95
- "dodgerblue": [30, 144, 255],
96
- "firebrick": [178, 34, 34],
97
- "floralwhite": [255, 250, 240],
98
- "forestgreen": [34, 139, 34],
99
- "fuchsia": [255, 0, 255],
100
- "gainsboro": [220, 220, 220],
101
- "ghostwhite": [248, 248, 255],
102
- "gold": [255, 215, 0],
103
- "goldenrod": [218, 165, 32],
104
- "gray": [128, 128, 128],
105
- "green": [0, 128, 0],
106
- "greenyellow": [173, 255, 47],
107
- "grey": [128, 128, 128],
108
- "honeydew": [240, 255, 240],
109
- "hotpink": [255, 105, 180],
110
- "indianred": [205, 92, 92],
111
- "indigo": [75, 0, 130],
112
- "ivory": [255, 255, 240],
113
- "khaki": [240, 230, 140],
114
- "lavender": [230, 230, 250],
115
- "lavenderblush": [255, 240, 245],
116
- "lawngreen": [124, 252, 0],
117
- "lemonchiffon": [255, 250, 205],
118
- "lightblue": [173, 216, 230],
119
- "lightcoral": [240, 128, 128],
120
- "lightcyan": [224, 255, 255],
121
- "lightgoldenrodyellow": [250, 250, 210],
122
- "lightgray": [211, 211, 211],
123
- "lightgreen": [144, 238, 144],
124
- "lightgrey": [211, 211, 211],
125
- "lightpink": [255, 182, 193],
126
- "lightsalmon": [255, 160, 122],
127
- "lightseagreen": [32, 178, 170],
128
- "lightskyblue": [135, 206, 250],
129
- "lightslategray": [119, 136, 153],
130
- "lightslategrey": [119, 136, 153],
131
- "lightsteelblue": [176, 196, 222],
132
- "lightyellow": [255, 255, 224],
133
- "lime": [0, 255, 0],
134
- "limegreen": [50, 205, 50],
135
- "linen": [250, 240, 230],
136
- "magenta": [255, 0, 255],
137
- "maroon": [128, 0, 0],
138
- "mediumaquamarine": [102, 205, 170],
139
- "mediumblue": [0, 0, 205],
140
- "mediumorchid": [186, 85, 211],
141
- "mediumpurple": [147, 112, 219],
142
- "mediumseagreen": [60, 179, 113],
143
- "mediumslateblue": [123, 104, 238],
144
- "mediumspringgreen": [0, 250, 154],
145
- "mediumturquoise": [72, 209, 204],
146
- "mediumvioletred": [199, 21, 133],
147
- "midnightblue": [25, 25, 112],
148
- "mintcream": [245, 255, 250],
149
- "mistyrose": [255, 228, 225],
150
- "moccasin": [255, 228, 181],
151
- "navajowhite": [255, 222, 173],
152
- "navy": [0, 0, 128],
153
- "oldlace": [253, 245, 230],
154
- "olive": [128, 128, 0],
155
- "olivedrab": [107, 142, 35],
156
- "orange": [255, 165, 0],
157
- "orangered": [255, 69, 0],
158
- "orchid": [218, 112, 214],
159
- "palegoldenrod": [238, 232, 170],
160
- "palegreen": [152, 251, 152],
161
- "paleturquoise": [175, 238, 238],
162
- "palevioletred": [219, 112, 147],
163
- "papayawhip": [255, 239, 213],
164
- "peachpuff": [255, 218, 185],
165
- "peru": [205, 133, 63],
166
- "pink": [255, 192, 203],
167
- "plum": [221, 160, 221],
168
- "powderblue": [176, 224, 230],
169
- "purple": [128, 0, 128],
170
- "rebeccapurple": [102, 51, 153],
171
- "red": [255, 0, 0],
172
- "rosybrown": [188, 143, 143],
173
- "royalblue": [65, 105, 225],
174
- "saddlebrown": [139, 69, 19],
175
- "salmon": [250, 128, 114],
176
- "sandybrown": [244, 164, 96],
177
- "seagreen": [46, 139, 87],
178
- "seashell": [255, 245, 238],
179
- "sienna": [160, 82, 45],
180
- "silver": [192, 192, 192],
181
- "skyblue": [135, 206, 235],
182
- "slateblue": [106, 90, 205],
183
- "slategray": [112, 128, 144],
184
- "slategrey": [112, 128, 144],
185
- "snow": [255, 250, 250],
186
- "springgreen": [0, 255, 127],
187
- "steelblue": [70, 130, 180],
188
- "tan": [210, 180, 140],
189
- "teal": [0, 128, 128],
190
- "thistle": [216, 191, 216],
191
- "tomato": [255, 99, 71],
192
- "turquoise": [64, 224, 208],
193
- "violet": [238, 130, 238],
194
- "wheat": [245, 222, 179],
195
- "white": [255, 255, 255],
196
- "whitesmoke": [245, 245, 245],
197
- "yellow": [255, 255, 0],
198
- "yellowgreen": [154, 205, 50]
199
- };
200
- }
201
- });
202
-
203
- // ../../node_modules/color-convert/conversions.js
204
- var require_conversions = __commonJS({
205
- "../../node_modules/color-convert/conversions.js"(exports, module) {
206
- "use strict";
207
- init_esm_shims();
208
- var cssKeywords = require_color_name();
209
- var reverseKeywords = {};
210
- for (const key of Object.keys(cssKeywords)) {
211
- reverseKeywords[cssKeywords[key]] = key;
212
- }
213
- var convert = {
214
- rgb: { channels: 3, labels: "rgb" },
215
- hsl: { channels: 3, labels: "hsl" },
216
- hsv: { channels: 3, labels: "hsv" },
217
- hwb: { channels: 3, labels: "hwb" },
218
- cmyk: { channels: 4, labels: "cmyk" },
219
- xyz: { channels: 3, labels: "xyz" },
220
- lab: { channels: 3, labels: "lab" },
221
- lch: { channels: 3, labels: "lch" },
222
- hex: { channels: 1, labels: ["hex"] },
223
- keyword: { channels: 1, labels: ["keyword"] },
224
- ansi16: { channels: 1, labels: ["ansi16"] },
225
- ansi256: { channels: 1, labels: ["ansi256"] },
226
- hcg: { channels: 3, labels: ["h", "c", "g"] },
227
- apple: { channels: 3, labels: ["r16", "g16", "b16"] },
228
- gray: { channels: 1, labels: ["gray"] }
229
- };
230
- module.exports = convert;
231
- for (const model of Object.keys(convert)) {
232
- if (!("channels" in convert[model])) {
233
- throw new Error("missing channels property: " + model);
234
- }
235
- if (!("labels" in convert[model])) {
236
- throw new Error("missing channel labels property: " + model);
237
- }
238
- if (convert[model].labels.length !== convert[model].channels) {
239
- throw new Error("channel and label counts mismatch: " + model);
240
- }
241
- const { channels, labels } = convert[model];
242
- delete convert[model].channels;
243
- delete convert[model].labels;
244
- Object.defineProperty(convert[model], "channels", { value: channels });
245
- Object.defineProperty(convert[model], "labels", { value: labels });
246
- }
247
- convert.rgb.hsl = function(rgb) {
248
- const r = rgb[0] / 255;
249
- const g = rgb[1] / 255;
250
- const b = rgb[2] / 255;
251
- const min = Math.min(r, g, b);
252
- const max = Math.max(r, g, b);
253
- const delta = max - min;
254
- let h;
255
- let s;
256
- if (max === min) {
257
- h = 0;
258
- } else if (r === max) {
259
- h = (g - b) / delta;
260
- } else if (g === max) {
261
- h = 2 + (b - r) / delta;
262
- } else if (b === max) {
263
- h = 4 + (r - g) / delta;
264
- }
265
- h = Math.min(h * 60, 360);
266
- if (h < 0) {
267
- h += 360;
268
- }
269
- const l = (min + max) / 2;
270
- if (max === min) {
271
- s = 0;
272
- } else if (l <= 0.5) {
273
- s = delta / (max + min);
274
- } else {
275
- s = delta / (2 - max - min);
276
- }
277
- return [h, s * 100, l * 100];
278
- };
279
- convert.rgb.hsv = function(rgb) {
280
- let rdif;
281
- let gdif;
282
- let bdif;
283
- let h;
284
- let s;
285
- const r = rgb[0] / 255;
286
- const g = rgb[1] / 255;
287
- const b = rgb[2] / 255;
288
- const v = Math.max(r, g, b);
289
- const diff = v - Math.min(r, g, b);
290
- const diffc = function(c) {
291
- return (v - c) / 6 / diff + 1 / 2;
292
- };
293
- if (diff === 0) {
294
- h = 0;
295
- s = 0;
296
- } else {
297
- s = diff / v;
298
- rdif = diffc(r);
299
- gdif = diffc(g);
300
- bdif = diffc(b);
301
- if (r === v) {
302
- h = bdif - gdif;
303
- } else if (g === v) {
304
- h = 1 / 3 + rdif - bdif;
305
- } else if (b === v) {
306
- h = 2 / 3 + gdif - rdif;
307
- }
308
- if (h < 0) {
309
- h += 1;
310
- } else if (h > 1) {
311
- h -= 1;
312
- }
313
- }
314
- return [
315
- h * 360,
316
- s * 100,
317
- v * 100
318
- ];
319
- };
320
- convert.rgb.hwb = function(rgb) {
321
- const r = rgb[0];
322
- const g = rgb[1];
323
- let b = rgb[2];
324
- const h = convert.rgb.hsl(rgb)[0];
325
- const w = 1 / 255 * Math.min(r, Math.min(g, b));
326
- b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));
327
- return [h, w * 100, b * 100];
328
- };
329
- convert.rgb.cmyk = function(rgb) {
330
- const r = rgb[0] / 255;
331
- const g = rgb[1] / 255;
332
- const b = rgb[2] / 255;
333
- const k = Math.min(1 - r, 1 - g, 1 - b);
334
- const c = (1 - r - k) / (1 - k) || 0;
335
- const m = (1 - g - k) / (1 - k) || 0;
336
- const y = (1 - b - k) / (1 - k) || 0;
337
- return [c * 100, m * 100, y * 100, k * 100];
338
- };
339
- function comparativeDistance(x, y) {
340
- return (x[0] - y[0]) ** 2 + (x[1] - y[1]) ** 2 + (x[2] - y[2]) ** 2;
341
- }
342
- convert.rgb.keyword = function(rgb) {
343
- const reversed = reverseKeywords[rgb];
344
- if (reversed) {
345
- return reversed;
346
- }
347
- let currentClosestDistance = Infinity;
348
- let currentClosestKeyword;
349
- for (const keyword of Object.keys(cssKeywords)) {
350
- const value = cssKeywords[keyword];
351
- const distance = comparativeDistance(rgb, value);
352
- if (distance < currentClosestDistance) {
353
- currentClosestDistance = distance;
354
- currentClosestKeyword = keyword;
355
- }
356
- }
357
- return currentClosestKeyword;
358
- };
359
- convert.keyword.rgb = function(keyword) {
360
- return cssKeywords[keyword];
361
- };
362
- convert.rgb.xyz = function(rgb) {
363
- let r = rgb[0] / 255;
364
- let g = rgb[1] / 255;
365
- let b = rgb[2] / 255;
366
- r = r > 0.04045 ? ((r + 0.055) / 1.055) ** 2.4 : r / 12.92;
367
- g = g > 0.04045 ? ((g + 0.055) / 1.055) ** 2.4 : g / 12.92;
368
- b = b > 0.04045 ? ((b + 0.055) / 1.055) ** 2.4 : b / 12.92;
369
- const x = r * 0.4124 + g * 0.3576 + b * 0.1805;
370
- const y = r * 0.2126 + g * 0.7152 + b * 0.0722;
371
- const z = r * 0.0193 + g * 0.1192 + b * 0.9505;
372
- return [x * 100, y * 100, z * 100];
373
- };
374
- convert.rgb.lab = function(rgb) {
375
- const xyz = convert.rgb.xyz(rgb);
376
- let x = xyz[0];
377
- let y = xyz[1];
378
- let z = xyz[2];
379
- x /= 95.047;
380
- y /= 100;
381
- z /= 108.883;
382
- x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
383
- y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
384
- z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
385
- const l = 116 * y - 16;
386
- const a = 500 * (x - y);
387
- const b = 200 * (y - z);
388
- return [l, a, b];
389
- };
390
- convert.hsl.rgb = function(hsl) {
391
- const h = hsl[0] / 360;
392
- const s = hsl[1] / 100;
393
- const l = hsl[2] / 100;
394
- let t2;
395
- let t3;
396
- let val;
397
- if (s === 0) {
398
- val = l * 255;
399
- return [val, val, val];
400
- }
401
- if (l < 0.5) {
402
- t2 = l * (1 + s);
403
- } else {
404
- t2 = l + s - l * s;
405
- }
406
- const t1 = 2 * l - t2;
407
- const rgb = [0, 0, 0];
408
- for (let i = 0; i < 3; i++) {
409
- t3 = h + 1 / 3 * -(i - 1);
410
- if (t3 < 0) {
411
- t3++;
412
- }
413
- if (t3 > 1) {
414
- t3--;
415
- }
416
- if (6 * t3 < 1) {
417
- val = t1 + (t2 - t1) * 6 * t3;
418
- } else if (2 * t3 < 1) {
419
- val = t2;
420
- } else if (3 * t3 < 2) {
421
- val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
422
- } else {
423
- val = t1;
424
- }
425
- rgb[i] = val * 255;
426
- }
427
- return rgb;
428
- };
429
- convert.hsl.hsv = function(hsl) {
430
- const h = hsl[0];
431
- let s = hsl[1] / 100;
432
- let l = hsl[2] / 100;
433
- let smin = s;
434
- const lmin = Math.max(l, 0.01);
435
- l *= 2;
436
- s *= l <= 1 ? l : 2 - l;
437
- smin *= lmin <= 1 ? lmin : 2 - lmin;
438
- const v = (l + s) / 2;
439
- const sv = l === 0 ? 2 * smin / (lmin + smin) : 2 * s / (l + s);
440
- return [h, sv * 100, v * 100];
441
- };
442
- convert.hsv.rgb = function(hsv) {
443
- const h = hsv[0] / 60;
444
- const s = hsv[1] / 100;
445
- let v = hsv[2] / 100;
446
- const hi = Math.floor(h) % 6;
447
- const f = h - Math.floor(h);
448
- const p = 255 * v * (1 - s);
449
- const q = 255 * v * (1 - s * f);
450
- const t = 255 * v * (1 - s * (1 - f));
451
- v *= 255;
452
- switch (hi) {
453
- case 0:
454
- return [v, t, p];
455
- case 1:
456
- return [q, v, p];
457
- case 2:
458
- return [p, v, t];
459
- case 3:
460
- return [p, q, v];
461
- case 4:
462
- return [t, p, v];
463
- case 5:
464
- return [v, p, q];
465
- }
466
- };
467
- convert.hsv.hsl = function(hsv) {
468
- const h = hsv[0];
469
- const s = hsv[1] / 100;
470
- const v = hsv[2] / 100;
471
- const vmin = Math.max(v, 0.01);
472
- let sl;
473
- let l;
474
- l = (2 - s) * v;
475
- const lmin = (2 - s) * vmin;
476
- sl = s * vmin;
477
- sl /= lmin <= 1 ? lmin : 2 - lmin;
478
- sl = sl || 0;
479
- l /= 2;
480
- return [h, sl * 100, l * 100];
481
- };
482
- convert.hwb.rgb = function(hwb) {
483
- const h = hwb[0] / 360;
484
- let wh = hwb[1] / 100;
485
- let bl = hwb[2] / 100;
486
- const ratio = wh + bl;
487
- let f;
488
- if (ratio > 1) {
489
- wh /= ratio;
490
- bl /= ratio;
491
- }
492
- const i = Math.floor(6 * h);
493
- const v = 1 - bl;
494
- f = 6 * h - i;
495
- if ((i & 1) !== 0) {
496
- f = 1 - f;
497
- }
498
- const n = wh + f * (v - wh);
499
- let r;
500
- let g;
501
- let b;
502
- switch (i) {
503
- default:
504
- case 6:
505
- case 0:
506
- r = v;
507
- g = n;
508
- b = wh;
509
- break;
510
- case 1:
511
- r = n;
512
- g = v;
513
- b = wh;
514
- break;
515
- case 2:
516
- r = wh;
517
- g = v;
518
- b = n;
519
- break;
520
- case 3:
521
- r = wh;
522
- g = n;
523
- b = v;
524
- break;
525
- case 4:
526
- r = n;
527
- g = wh;
528
- b = v;
529
- break;
530
- case 5:
531
- r = v;
532
- g = wh;
533
- b = n;
534
- break;
535
- }
536
- return [r * 255, g * 255, b * 255];
537
- };
538
- convert.cmyk.rgb = function(cmyk) {
539
- const c = cmyk[0] / 100;
540
- const m = cmyk[1] / 100;
541
- const y = cmyk[2] / 100;
542
- const k = cmyk[3] / 100;
543
- const r = 1 - Math.min(1, c * (1 - k) + k);
544
- const g = 1 - Math.min(1, m * (1 - k) + k);
545
- const b = 1 - Math.min(1, y * (1 - k) + k);
546
- return [r * 255, g * 255, b * 255];
547
- };
548
- convert.xyz.rgb = function(xyz) {
549
- const x = xyz[0] / 100;
550
- const y = xyz[1] / 100;
551
- const z = xyz[2] / 100;
552
- let r;
553
- let g;
554
- let b;
555
- r = x * 3.2406 + y * -1.5372 + z * -0.4986;
556
- g = x * -0.9689 + y * 1.8758 + z * 0.0415;
557
- b = x * 0.0557 + y * -0.204 + z * 1.057;
558
- r = r > 31308e-7 ? 1.055 * r ** (1 / 2.4) - 0.055 : r * 12.92;
559
- g = g > 31308e-7 ? 1.055 * g ** (1 / 2.4) - 0.055 : g * 12.92;
560
- b = b > 31308e-7 ? 1.055 * b ** (1 / 2.4) - 0.055 : b * 12.92;
561
- r = Math.min(Math.max(0, r), 1);
562
- g = Math.min(Math.max(0, g), 1);
563
- b = Math.min(Math.max(0, b), 1);
564
- return [r * 255, g * 255, b * 255];
565
- };
566
- convert.xyz.lab = function(xyz) {
567
- let x = xyz[0];
568
- let y = xyz[1];
569
- let z = xyz[2];
570
- x /= 95.047;
571
- y /= 100;
572
- z /= 108.883;
573
- x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
574
- y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
575
- z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
576
- const l = 116 * y - 16;
577
- const a = 500 * (x - y);
578
- const b = 200 * (y - z);
579
- return [l, a, b];
580
- };
581
- convert.lab.xyz = function(lab) {
582
- const l = lab[0];
583
- const a = lab[1];
584
- const b = lab[2];
585
- let x;
586
- let y;
587
- let z;
588
- y = (l + 16) / 116;
589
- x = a / 500 + y;
590
- z = y - b / 200;
591
- const y2 = y ** 3;
592
- const x2 = x ** 3;
593
- const z2 = z ** 3;
594
- y = y2 > 8856e-6 ? y2 : (y - 16 / 116) / 7.787;
595
- x = x2 > 8856e-6 ? x2 : (x - 16 / 116) / 7.787;
596
- z = z2 > 8856e-6 ? z2 : (z - 16 / 116) / 7.787;
597
- x *= 95.047;
598
- y *= 100;
599
- z *= 108.883;
600
- return [x, y, z];
601
- };
602
- convert.lab.lch = function(lab) {
603
- const l = lab[0];
604
- const a = lab[1];
605
- const b = lab[2];
606
- let h;
607
- const hr = Math.atan2(b, a);
608
- h = hr * 360 / 2 / Math.PI;
609
- if (h < 0) {
610
- h += 360;
611
- }
612
- const c = Math.sqrt(a * a + b * b);
613
- return [l, c, h];
614
- };
615
- convert.lch.lab = function(lch) {
616
- const l = lch[0];
617
- const c = lch[1];
618
- const h = lch[2];
619
- const hr = h / 360 * 2 * Math.PI;
620
- const a = c * Math.cos(hr);
621
- const b = c * Math.sin(hr);
622
- return [l, a, b];
623
- };
624
- convert.rgb.ansi16 = function(args, saturation = null) {
625
- const [r, g, b] = args;
626
- let value = saturation === null ? convert.rgb.hsv(args)[2] : saturation;
627
- value = Math.round(value / 50);
628
- if (value === 0) {
629
- return 30;
630
- }
631
- let ansi = 30 + (Math.round(b / 255) << 2 | Math.round(g / 255) << 1 | Math.round(r / 255));
632
- if (value === 2) {
633
- ansi += 60;
634
- }
635
- return ansi;
636
- };
637
- convert.hsv.ansi16 = function(args) {
638
- return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);
639
- };
640
- convert.rgb.ansi256 = function(args) {
641
- const r = args[0];
642
- const g = args[1];
643
- const b = args[2];
644
- if (r === g && g === b) {
645
- if (r < 8) {
646
- return 16;
647
- }
648
- if (r > 248) {
649
- return 231;
650
- }
651
- return Math.round((r - 8) / 247 * 24) + 232;
652
- }
653
- const ansi = 16 + 36 * Math.round(r / 255 * 5) + 6 * Math.round(g / 255 * 5) + Math.round(b / 255 * 5);
654
- return ansi;
655
- };
656
- convert.ansi16.rgb = function(args) {
657
- let color = args % 10;
658
- if (color === 0 || color === 7) {
659
- if (args > 50) {
660
- color += 3.5;
661
- }
662
- color = color / 10.5 * 255;
663
- return [color, color, color];
664
- }
665
- const mult = (~~(args > 50) + 1) * 0.5;
666
- const r = (color & 1) * mult * 255;
667
- const g = (color >> 1 & 1) * mult * 255;
668
- const b = (color >> 2 & 1) * mult * 255;
669
- return [r, g, b];
670
- };
671
- convert.ansi256.rgb = function(args) {
672
- if (args >= 232) {
673
- const c = (args - 232) * 10 + 8;
674
- return [c, c, c];
675
- }
676
- args -= 16;
677
- let rem;
678
- const r = Math.floor(args / 36) / 5 * 255;
679
- const g = Math.floor((rem = args % 36) / 6) / 5 * 255;
680
- const b = rem % 6 / 5 * 255;
681
- return [r, g, b];
682
- };
683
- convert.rgb.hex = function(args) {
684
- const integer = ((Math.round(args[0]) & 255) << 16) + ((Math.round(args[1]) & 255) << 8) + (Math.round(args[2]) & 255);
685
- const string = integer.toString(16).toUpperCase();
686
- return "000000".substring(string.length) + string;
687
- };
688
- convert.hex.rgb = function(args) {
689
- const match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
690
- if (!match) {
691
- return [0, 0, 0];
692
- }
693
- let colorString = match[0];
694
- if (match[0].length === 3) {
695
- colorString = colorString.split("").map((char) => {
696
- return char + char;
697
- }).join("");
698
- }
699
- const integer = parseInt(colorString, 16);
700
- const r = integer >> 16 & 255;
701
- const g = integer >> 8 & 255;
702
- const b = integer & 255;
703
- return [r, g, b];
704
- };
705
- convert.rgb.hcg = function(rgb) {
706
- const r = rgb[0] / 255;
707
- const g = rgb[1] / 255;
708
- const b = rgb[2] / 255;
709
- const max = Math.max(Math.max(r, g), b);
710
- const min = Math.min(Math.min(r, g), b);
711
- const chroma = max - min;
712
- let grayscale;
713
- let hue;
714
- if (chroma < 1) {
715
- grayscale = min / (1 - chroma);
716
- } else {
717
- grayscale = 0;
718
- }
719
- if (chroma <= 0) {
720
- hue = 0;
721
- } else if (max === r) {
722
- hue = (g - b) / chroma % 6;
723
- } else if (max === g) {
724
- hue = 2 + (b - r) / chroma;
725
- } else {
726
- hue = 4 + (r - g) / chroma;
727
- }
728
- hue /= 6;
729
- hue %= 1;
730
- return [hue * 360, chroma * 100, grayscale * 100];
731
- };
732
- convert.hsl.hcg = function(hsl) {
733
- const s = hsl[1] / 100;
734
- const l = hsl[2] / 100;
735
- const c = l < 0.5 ? 2 * s * l : 2 * s * (1 - l);
736
- let f = 0;
737
- if (c < 1) {
738
- f = (l - 0.5 * c) / (1 - c);
739
- }
740
- return [hsl[0], c * 100, f * 100];
741
- };
742
- convert.hsv.hcg = function(hsv) {
743
- const s = hsv[1] / 100;
744
- const v = hsv[2] / 100;
745
- const c = s * v;
746
- let f = 0;
747
- if (c < 1) {
748
- f = (v - c) / (1 - c);
749
- }
750
- return [hsv[0], c * 100, f * 100];
751
- };
752
- convert.hcg.rgb = function(hcg) {
753
- const h = hcg[0] / 360;
754
- const c = hcg[1] / 100;
755
- const g = hcg[2] / 100;
756
- if (c === 0) {
757
- return [g * 255, g * 255, g * 255];
758
- }
759
- const pure = [0, 0, 0];
760
- const hi = h % 1 * 6;
761
- const v = hi % 1;
762
- const w = 1 - v;
763
- let mg = 0;
764
- switch (Math.floor(hi)) {
765
- case 0:
766
- pure[0] = 1;
767
- pure[1] = v;
768
- pure[2] = 0;
769
- break;
770
- case 1:
771
- pure[0] = w;
772
- pure[1] = 1;
773
- pure[2] = 0;
774
- break;
775
- case 2:
776
- pure[0] = 0;
777
- pure[1] = 1;
778
- pure[2] = v;
779
- break;
780
- case 3:
781
- pure[0] = 0;
782
- pure[1] = w;
783
- pure[2] = 1;
784
- break;
785
- case 4:
786
- pure[0] = v;
787
- pure[1] = 0;
788
- pure[2] = 1;
789
- break;
790
- default:
791
- pure[0] = 1;
792
- pure[1] = 0;
793
- pure[2] = w;
794
- }
795
- mg = (1 - c) * g;
796
- return [
797
- (c * pure[0] + mg) * 255,
798
- (c * pure[1] + mg) * 255,
799
- (c * pure[2] + mg) * 255
800
- ];
801
- };
802
- convert.hcg.hsv = function(hcg) {
803
- const c = hcg[1] / 100;
804
- const g = hcg[2] / 100;
805
- const v = c + g * (1 - c);
806
- let f = 0;
807
- if (v > 0) {
808
- f = c / v;
809
- }
810
- return [hcg[0], f * 100, v * 100];
811
- };
812
- convert.hcg.hsl = function(hcg) {
813
- const c = hcg[1] / 100;
814
- const g = hcg[2] / 100;
815
- const l = g * (1 - c) + 0.5 * c;
816
- let s = 0;
817
- if (l > 0 && l < 0.5) {
818
- s = c / (2 * l);
819
- } else if (l >= 0.5 && l < 1) {
820
- s = c / (2 * (1 - l));
821
- }
822
- return [hcg[0], s * 100, l * 100];
823
- };
824
- convert.hcg.hwb = function(hcg) {
825
- const c = hcg[1] / 100;
826
- const g = hcg[2] / 100;
827
- const v = c + g * (1 - c);
828
- return [hcg[0], (v - c) * 100, (1 - v) * 100];
829
- };
830
- convert.hwb.hcg = function(hwb) {
831
- const w = hwb[1] / 100;
832
- const b = hwb[2] / 100;
833
- const v = 1 - b;
834
- const c = v - w;
835
- let g = 0;
836
- if (c < 1) {
837
- g = (v - c) / (1 - c);
838
- }
839
- return [hwb[0], c * 100, g * 100];
840
- };
841
- convert.apple.rgb = function(apple) {
842
- return [apple[0] / 65535 * 255, apple[1] / 65535 * 255, apple[2] / 65535 * 255];
843
- };
844
- convert.rgb.apple = function(rgb) {
845
- return [rgb[0] / 255 * 65535, rgb[1] / 255 * 65535, rgb[2] / 255 * 65535];
846
- };
847
- convert.gray.rgb = function(args) {
848
- return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];
849
- };
850
- convert.gray.hsl = function(args) {
851
- return [0, 0, args[0]];
852
- };
853
- convert.gray.hsv = convert.gray.hsl;
854
- convert.gray.hwb = function(gray) {
855
- return [0, 100, gray[0]];
856
- };
857
- convert.gray.cmyk = function(gray) {
858
- return [0, 0, 0, gray[0]];
859
- };
860
- convert.gray.lab = function(gray) {
861
- return [gray[0], 0, 0];
862
- };
863
- convert.gray.hex = function(gray) {
864
- const val = Math.round(gray[0] / 100 * 255) & 255;
865
- const integer = (val << 16) + (val << 8) + val;
866
- const string = integer.toString(16).toUpperCase();
867
- return "000000".substring(string.length) + string;
868
- };
869
- convert.rgb.gray = function(rgb) {
870
- const val = (rgb[0] + rgb[1] + rgb[2]) / 3;
871
- return [val / 255 * 100];
872
- };
873
- }
874
- });
875
-
876
- // ../../node_modules/color-convert/route.js
877
- var require_route = __commonJS({
878
- "../../node_modules/color-convert/route.js"(exports, module) {
879
- "use strict";
880
- init_esm_shims();
881
- var conversions = require_conversions();
882
- function buildGraph() {
883
- const graph = {};
884
- const models = Object.keys(conversions);
885
- for (let len = models.length, i = 0; i < len; i++) {
886
- graph[models[i]] = {
887
- // http://jsperf.com/1-vs-infinity
888
- // micro-opt, but this is simple.
889
- distance: -1,
890
- parent: null
891
- };
892
- }
893
- return graph;
894
- }
895
- function deriveBFS(fromModel) {
896
- const graph = buildGraph();
897
- const queue = [fromModel];
898
- graph[fromModel].distance = 0;
899
- while (queue.length) {
900
- const current = queue.pop();
901
- const adjacents = Object.keys(conversions[current]);
902
- for (let len = adjacents.length, i = 0; i < len; i++) {
903
- const adjacent = adjacents[i];
904
- const node = graph[adjacent];
905
- if (node.distance === -1) {
906
- node.distance = graph[current].distance + 1;
907
- node.parent = current;
908
- queue.unshift(adjacent);
909
- }
910
- }
911
- }
912
- return graph;
913
- }
914
- function link(from, to) {
915
- return function(args) {
916
- return to(from(args));
917
- };
918
- }
919
- function wrapConversion(toModel, graph) {
920
- const path2 = [graph[toModel].parent, toModel];
921
- let fn = conversions[graph[toModel].parent][toModel];
922
- let cur = graph[toModel].parent;
923
- while (graph[cur].parent) {
924
- path2.unshift(graph[cur].parent);
925
- fn = link(conversions[graph[cur].parent][cur], fn);
926
- cur = graph[cur].parent;
927
- }
928
- fn.conversion = path2;
929
- return fn;
930
- }
931
- module.exports = function(fromModel) {
932
- const graph = deriveBFS(fromModel);
933
- const conversion = {};
934
- const models = Object.keys(graph);
935
- for (let len = models.length, i = 0; i < len; i++) {
936
- const toModel = models[i];
937
- const node = graph[toModel];
938
- if (node.parent === null) {
939
- continue;
940
- }
941
- conversion[toModel] = wrapConversion(toModel, graph);
942
- }
943
- return conversion;
944
- };
945
- }
946
- });
947
-
948
- // ../../node_modules/color-convert/index.js
949
- var require_color_convert = __commonJS({
950
- "../../node_modules/color-convert/index.js"(exports, module) {
951
- "use strict";
952
- init_esm_shims();
953
- var conversions = require_conversions();
954
- var route = require_route();
955
- var convert = {};
956
- var models = Object.keys(conversions);
957
- function wrapRaw(fn) {
958
- const wrappedFn = function(...args) {
959
- const arg0 = args[0];
960
- if (arg0 === void 0 || arg0 === null) {
961
- return arg0;
962
- }
963
- if (arg0.length > 1) {
964
- args = arg0;
965
- }
966
- return fn(args);
967
- };
968
- if ("conversion" in fn) {
969
- wrappedFn.conversion = fn.conversion;
970
- }
971
- return wrappedFn;
972
- }
973
- function wrapRounded(fn) {
974
- const wrappedFn = function(...args) {
975
- const arg0 = args[0];
976
- if (arg0 === void 0 || arg0 === null) {
977
- return arg0;
978
- }
979
- if (arg0.length > 1) {
980
- args = arg0;
981
- }
982
- const result = fn(args);
983
- if (typeof result === "object") {
984
- for (let len = result.length, i = 0; i < len; i++) {
985
- result[i] = Math.round(result[i]);
986
- }
987
- }
988
- return result;
989
- };
990
- if ("conversion" in fn) {
991
- wrappedFn.conversion = fn.conversion;
992
- }
993
- return wrappedFn;
994
- }
995
- models.forEach((fromModel) => {
996
- convert[fromModel] = {};
997
- Object.defineProperty(convert[fromModel], "channels", { value: conversions[fromModel].channels });
998
- Object.defineProperty(convert[fromModel], "labels", { value: conversions[fromModel].labels });
999
- const routes = route(fromModel);
1000
- const routeModels = Object.keys(routes);
1001
- routeModels.forEach((toModel) => {
1002
- const fn = routes[toModel];
1003
- convert[fromModel][toModel] = wrapRounded(fn);
1004
- convert[fromModel][toModel].raw = wrapRaw(fn);
1005
- });
1006
- });
1007
- module.exports = convert;
1008
- }
1009
- });
1010
-
1011
- // ../../node_modules/ansi-styles/index.js
1012
- var require_ansi_styles = __commonJS({
1013
- "../../node_modules/ansi-styles/index.js"(exports, module) {
1014
- "use strict";
1015
- init_esm_shims();
1016
- var wrapAnsi16 = (fn, offset) => (...args) => {
1017
- const code = fn(...args);
1018
- return `\x1B[${code + offset}m`;
1019
- };
1020
- var wrapAnsi256 = (fn, offset) => (...args) => {
1021
- const code = fn(...args);
1022
- return `\x1B[${38 + offset};5;${code}m`;
1023
- };
1024
- var wrapAnsi16m = (fn, offset) => (...args) => {
1025
- const rgb = fn(...args);
1026
- return `\x1B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
1027
- };
1028
- var ansi2ansi = (n) => n;
1029
- var rgb2rgb = (r, g, b) => [r, g, b];
1030
- var setLazyProperty = (object, property, get) => {
1031
- Object.defineProperty(object, property, {
1032
- get: () => {
1033
- const value = get();
1034
- Object.defineProperty(object, property, {
1035
- value,
1036
- enumerable: true,
1037
- configurable: true
1038
- });
1039
- return value;
1040
- },
1041
- enumerable: true,
1042
- configurable: true
1043
- });
1044
- };
1045
- var colorConvert;
1046
- var makeDynamicStyles = (wrap, targetSpace, identity, isBackground) => {
1047
- if (colorConvert === void 0) {
1048
- colorConvert = require_color_convert();
1049
- }
1050
- const offset = isBackground ? 10 : 0;
1051
- const styles = {};
1052
- for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
1053
- const name = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
1054
- if (sourceSpace === targetSpace) {
1055
- styles[name] = wrap(identity, offset);
1056
- } else if (typeof suite === "object") {
1057
- styles[name] = wrap(suite[targetSpace], offset);
1058
- }
1059
- }
1060
- return styles;
1061
- };
1062
- function assembleStyles() {
1063
- const codes = /* @__PURE__ */ new Map();
1064
- const styles = {
1065
- modifier: {
1066
- reset: [0, 0],
1067
- // 21 isn't widely supported and 22 does the same thing
1068
- bold: [1, 22],
1069
- dim: [2, 22],
1070
- italic: [3, 23],
1071
- underline: [4, 24],
1072
- inverse: [7, 27],
1073
- hidden: [8, 28],
1074
- strikethrough: [9, 29]
1075
- },
1076
- color: {
1077
- black: [30, 39],
1078
- red: [31, 39],
1079
- green: [32, 39],
1080
- yellow: [33, 39],
1081
- blue: [34, 39],
1082
- magenta: [35, 39],
1083
- cyan: [36, 39],
1084
- white: [37, 39],
1085
- // Bright color
1086
- blackBright: [90, 39],
1087
- redBright: [91, 39],
1088
- greenBright: [92, 39],
1089
- yellowBright: [93, 39],
1090
- blueBright: [94, 39],
1091
- magentaBright: [95, 39],
1092
- cyanBright: [96, 39],
1093
- whiteBright: [97, 39]
1094
- },
1095
- bgColor: {
1096
- bgBlack: [40, 49],
1097
- bgRed: [41, 49],
1098
- bgGreen: [42, 49],
1099
- bgYellow: [43, 49],
1100
- bgBlue: [44, 49],
1101
- bgMagenta: [45, 49],
1102
- bgCyan: [46, 49],
1103
- bgWhite: [47, 49],
1104
- // Bright color
1105
- bgBlackBright: [100, 49],
1106
- bgRedBright: [101, 49],
1107
- bgGreenBright: [102, 49],
1108
- bgYellowBright: [103, 49],
1109
- bgBlueBright: [104, 49],
1110
- bgMagentaBright: [105, 49],
1111
- bgCyanBright: [106, 49],
1112
- bgWhiteBright: [107, 49]
1113
- }
1114
- };
1115
- styles.color.gray = styles.color.blackBright;
1116
- styles.bgColor.bgGray = styles.bgColor.bgBlackBright;
1117
- styles.color.grey = styles.color.blackBright;
1118
- styles.bgColor.bgGrey = styles.bgColor.bgBlackBright;
1119
- for (const [groupName, group] of Object.entries(styles)) {
1120
- for (const [styleName, style] of Object.entries(group)) {
1121
- styles[styleName] = {
1122
- open: `\x1B[${style[0]}m`,
1123
- close: `\x1B[${style[1]}m`
1124
- };
1125
- group[styleName] = styles[styleName];
1126
- codes.set(style[0], style[1]);
1127
- }
1128
- Object.defineProperty(styles, groupName, {
1129
- value: group,
1130
- enumerable: false
1131
- });
1132
- }
1133
- Object.defineProperty(styles, "codes", {
1134
- value: codes,
1135
- enumerable: false
1136
- });
1137
- styles.color.close = "\x1B[39m";
1138
- styles.bgColor.close = "\x1B[49m";
1139
- setLazyProperty(styles.color, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, false));
1140
- setLazyProperty(styles.color, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, false));
1141
- setLazyProperty(styles.color, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, false));
1142
- setLazyProperty(styles.bgColor, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, true));
1143
- setLazyProperty(styles.bgColor, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, true));
1144
- setLazyProperty(styles.bgColor, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, true));
1145
- return styles;
1146
- }
1147
- Object.defineProperty(module, "exports", {
1148
- enumerable: true,
1149
- get: assembleStyles
1150
- });
1151
- }
1152
- });
1153
-
1154
- // ../../node_modules/has-flag/index.js
1155
- var require_has_flag = __commonJS({
1156
- "../../node_modules/has-flag/index.js"(exports, module) {
1157
- "use strict";
1158
- init_esm_shims();
1159
- module.exports = (flag, argv = process.argv) => {
1160
- const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
1161
- const position = argv.indexOf(prefix + flag);
1162
- const terminatorPosition = argv.indexOf("--");
1163
- return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
1164
- };
1165
- }
1166
- });
1167
-
1168
- // ../../node_modules/supports-color/index.js
1169
- var require_supports_color = __commonJS({
1170
- "../../node_modules/supports-color/index.js"(exports, module) {
1171
- "use strict";
1172
- init_esm_shims();
1173
- var os = __require("os");
1174
- var tty = __require("tty");
1175
- var hasFlag = require_has_flag();
1176
- var { env: env2 } = process;
1177
- var forceColor;
1178
- if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
1179
- forceColor = 0;
1180
- } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
1181
- forceColor = 1;
1182
- }
1183
- if ("FORCE_COLOR" in env2) {
1184
- if (env2.FORCE_COLOR === "true") {
1185
- forceColor = 1;
1186
- } else if (env2.FORCE_COLOR === "false") {
1187
- forceColor = 0;
1188
- } else {
1189
- forceColor = env2.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env2.FORCE_COLOR, 10), 3);
1190
- }
1191
- }
1192
- function translateLevel(level) {
1193
- if (level === 0) {
1194
- return false;
1195
- }
1196
- return {
1197
- level,
1198
- hasBasic: true,
1199
- has256: level >= 2,
1200
- has16m: level >= 3
1201
- };
1202
- }
1203
- function supportsColor(haveStream, streamIsTTY) {
1204
- if (forceColor === 0) {
1205
- return 0;
1206
- }
1207
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
1208
- return 3;
1209
- }
1210
- if (hasFlag("color=256")) {
1211
- return 2;
1212
- }
1213
- if (haveStream && !streamIsTTY && forceColor === void 0) {
1214
- return 0;
1215
- }
1216
- const min = forceColor || 0;
1217
- if (env2.TERM === "dumb") {
1218
- return min;
1219
- }
1220
- if (process.platform === "win32") {
1221
- const osRelease = os.release().split(".");
1222
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
1223
- return Number(osRelease[2]) >= 14931 ? 3 : 2;
1224
- }
1225
- return 1;
1226
- }
1227
- if ("CI" in env2) {
1228
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
1229
- return 1;
1230
- }
1231
- return min;
1232
- }
1233
- if ("TEAMCITY_VERSION" in env2) {
1234
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
1235
- }
1236
- if (env2.COLORTERM === "truecolor") {
1237
- return 3;
1238
- }
1239
- if ("TERM_PROGRAM" in env2) {
1240
- const version = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
1241
- switch (env2.TERM_PROGRAM) {
1242
- case "iTerm.app":
1243
- return version >= 3 ? 3 : 2;
1244
- case "Apple_Terminal":
1245
- return 2;
1246
- }
1247
- }
1248
- if (/-256(color)?$/i.test(env2.TERM)) {
1249
- return 2;
1250
- }
1251
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
1252
- return 1;
1253
- }
1254
- if ("COLORTERM" in env2) {
1255
- return 1;
1256
- }
1257
- return min;
1258
- }
1259
- function getSupportLevel(stream) {
1260
- const level = supportsColor(stream, stream && stream.isTTY);
1261
- return translateLevel(level);
1262
- }
1263
- module.exports = {
1264
- supportsColor: getSupportLevel,
1265
- stdout: translateLevel(supportsColor(true, tty.isatty(1))),
1266
- stderr: translateLevel(supportsColor(true, tty.isatty(2)))
1267
- };
1268
- }
1269
- });
1270
-
1271
- // ../../node_modules/chalk/source/util.js
1272
- var require_util = __commonJS({
1273
- "../../node_modules/chalk/source/util.js"(exports, module) {
1274
- "use strict";
1275
- init_esm_shims();
1276
- var stringReplaceAll = (string, substring, replacer) => {
1277
- let index = string.indexOf(substring);
1278
- if (index === -1) {
1279
- return string;
1280
- }
1281
- const substringLength = substring.length;
1282
- let endIndex = 0;
1283
- let returnValue = "";
1284
- do {
1285
- returnValue += string.substr(endIndex, index - endIndex) + substring + replacer;
1286
- endIndex = index + substringLength;
1287
- index = string.indexOf(substring, endIndex);
1288
- } while (index !== -1);
1289
- returnValue += string.substr(endIndex);
1290
- return returnValue;
1291
- };
1292
- var stringEncaseCRLFWithFirstIndex = (string, prefix, postfix, index) => {
1293
- let endIndex = 0;
1294
- let returnValue = "";
1295
- do {
1296
- const gotCR = string[index - 1] === "\r";
1297
- returnValue += string.substr(endIndex, (gotCR ? index - 1 : index) - endIndex) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
1298
- endIndex = index + 1;
1299
- index = string.indexOf("\n", endIndex);
1300
- } while (index !== -1);
1301
- returnValue += string.substr(endIndex);
1302
- return returnValue;
1303
- };
1304
- module.exports = {
1305
- stringReplaceAll,
1306
- stringEncaseCRLFWithFirstIndex
1307
- };
1308
- }
1309
- });
1310
-
1311
- // ../../node_modules/chalk/source/templates.js
1312
- var require_templates = __commonJS({
1313
- "../../node_modules/chalk/source/templates.js"(exports, module) {
1314
- "use strict";
1315
- init_esm_shims();
1316
- var TEMPLATE_REGEX = /(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;
1317
- var STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
1318
- var STRING_REGEX = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;
1319
- var ESCAPE_REGEX = /\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;
1320
- var ESCAPES = /* @__PURE__ */ new Map([
1321
- ["n", "\n"],
1322
- ["r", "\r"],
1323
- ["t", " "],
1324
- ["b", "\b"],
1325
- ["f", "\f"],
1326
- ["v", "\v"],
1327
- ["0", "\0"],
1328
- ["\\", "\\"],
1329
- ["e", "\x1B"],
1330
- ["a", "\x07"]
1331
- ]);
1332
- function unescape(c) {
1333
- const u = c[0] === "u";
1334
- const bracket = c[1] === "{";
1335
- if (u && !bracket && c.length === 5 || c[0] === "x" && c.length === 3) {
1336
- return String.fromCharCode(parseInt(c.slice(1), 16));
1337
- }
1338
- if (u && bracket) {
1339
- return String.fromCodePoint(parseInt(c.slice(2, -1), 16));
1340
- }
1341
- return ESCAPES.get(c) || c;
1342
- }
1343
- function parseArguments(name, arguments_) {
1344
- const results = [];
1345
- const chunks = arguments_.trim().split(/\s*,\s*/g);
1346
- let matches;
1347
- for (const chunk of chunks) {
1348
- const number = Number(chunk);
1349
- if (!Number.isNaN(number)) {
1350
- results.push(number);
1351
- } else if (matches = chunk.match(STRING_REGEX)) {
1352
- results.push(matches[2].replace(ESCAPE_REGEX, (m, escape, character) => escape ? unescape(escape) : character));
1353
- } else {
1354
- throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
1355
- }
1356
- }
1357
- return results;
1358
- }
1359
- function parseStyle(style) {
1360
- STYLE_REGEX.lastIndex = 0;
1361
- const results = [];
1362
- let matches;
1363
- while ((matches = STYLE_REGEX.exec(style)) !== null) {
1364
- const name = matches[1];
1365
- if (matches[2]) {
1366
- const args = parseArguments(name, matches[2]);
1367
- results.push([name].concat(args));
1368
- } else {
1369
- results.push([name]);
1370
- }
1371
- }
1372
- return results;
1373
- }
1374
- function buildStyle(chalk2, styles) {
1375
- const enabled = {};
1376
- for (const layer of styles) {
1377
- for (const style of layer.styles) {
1378
- enabled[style[0]] = layer.inverse ? null : style.slice(1);
1379
- }
1380
- }
1381
- let current = chalk2;
1382
- for (const [styleName, styles2] of Object.entries(enabled)) {
1383
- if (!Array.isArray(styles2)) {
1384
- continue;
1385
- }
1386
- if (!(styleName in current)) {
1387
- throw new Error(`Unknown Chalk style: ${styleName}`);
1388
- }
1389
- current = styles2.length > 0 ? current[styleName](...styles2) : current[styleName];
1390
- }
1391
- return current;
1392
- }
1393
- module.exports = (chalk2, temporary) => {
1394
- const styles = [];
1395
- const chunks = [];
1396
- let chunk = [];
1397
- temporary.replace(TEMPLATE_REGEX, (m, escapeCharacter, inverse, style, close, character) => {
1398
- if (escapeCharacter) {
1399
- chunk.push(unescape(escapeCharacter));
1400
- } else if (style) {
1401
- const string = chunk.join("");
1402
- chunk = [];
1403
- chunks.push(styles.length === 0 ? string : buildStyle(chalk2, styles)(string));
1404
- styles.push({ inverse, styles: parseStyle(style) });
1405
- } else if (close) {
1406
- if (styles.length === 0) {
1407
- throw new Error("Found extraneous } in Chalk template literal");
1408
- }
1409
- chunks.push(buildStyle(chalk2, styles)(chunk.join("")));
1410
- chunk = [];
1411
- styles.pop();
1412
- } else {
1413
- chunk.push(character);
1414
- }
1415
- });
1416
- chunks.push(chunk.join(""));
1417
- if (styles.length > 0) {
1418
- const errMessage = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? "" : "s"} (\`}\`)`;
1419
- throw new Error(errMessage);
1420
- }
1421
- return chunks.join("");
1422
- };
1423
- }
1424
- });
1425
-
1426
- // ../../node_modules/chalk/source/index.js
1427
- var require_source = __commonJS({
1428
- "../../node_modules/chalk/source/index.js"(exports, module) {
1429
- "use strict";
1430
- init_esm_shims();
1431
- var ansiStyles = require_ansi_styles();
1432
- var { stdout: stdoutColor, stderr: stderrColor } = require_supports_color();
1433
- var {
1434
- stringReplaceAll,
1435
- stringEncaseCRLFWithFirstIndex
1436
- } = require_util();
1437
- var { isArray: isArray2 } = Array;
1438
- var levelMapping = [
1439
- "ansi",
1440
- "ansi",
1441
- "ansi256",
1442
- "ansi16m"
1443
- ];
1444
- var styles = /* @__PURE__ */ Object.create(null);
1445
- var applyOptions = (object, options = {}) => {
1446
- if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
1447
- throw new Error("The `level` option should be an integer from 0 to 3");
1448
- }
1449
- const colorLevel = stdoutColor ? stdoutColor.level : 0;
1450
- object.level = options.level === void 0 ? colorLevel : options.level;
1451
- };
1452
- var ChalkClass = class {
1453
- constructor(options) {
1454
- return chalkFactory(options);
1455
- }
1456
- };
1457
- var chalkFactory = (options) => {
1458
- const chalk3 = {};
1459
- applyOptions(chalk3, options);
1460
- chalk3.template = (...arguments_) => chalkTag(chalk3.template, ...arguments_);
1461
- Object.setPrototypeOf(chalk3, Chalk.prototype);
1462
- Object.setPrototypeOf(chalk3.template, chalk3);
1463
- chalk3.template.constructor = () => {
1464
- throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
1465
- };
1466
- chalk3.template.Instance = ChalkClass;
1467
- return chalk3.template;
1468
- };
1469
- function Chalk(options) {
1470
- return chalkFactory(options);
1471
- }
1472
- for (const [styleName, style] of Object.entries(ansiStyles)) {
1473
- styles[styleName] = {
1474
- get() {
1475
- const builder = createBuilder(this, createStyler(style.open, style.close, this._styler), this._isEmpty);
1476
- Object.defineProperty(this, styleName, { value: builder });
1477
- return builder;
1478
- }
1479
- };
1480
- }
1481
- styles.visible = {
1482
- get() {
1483
- const builder = createBuilder(this, this._styler, true);
1484
- Object.defineProperty(this, "visible", { value: builder });
1485
- return builder;
1486
- }
1487
- };
1488
- var usedModels = ["rgb", "hex", "keyword", "hsl", "hsv", "hwb", "ansi", "ansi256"];
1489
- for (const model of usedModels) {
1490
- styles[model] = {
1491
- get() {
1492
- const { level } = this;
1493
- return function(...arguments_) {
1494
- const styler = createStyler(ansiStyles.color[levelMapping[level]][model](...arguments_), ansiStyles.color.close, this._styler);
1495
- return createBuilder(this, styler, this._isEmpty);
1496
- };
1497
- }
1498
- };
1499
- }
1500
- for (const model of usedModels) {
1501
- const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
1502
- styles[bgModel] = {
1503
- get() {
1504
- const { level } = this;
1505
- return function(...arguments_) {
1506
- const styler = createStyler(ansiStyles.bgColor[levelMapping[level]][model](...arguments_), ansiStyles.bgColor.close, this._styler);
1507
- return createBuilder(this, styler, this._isEmpty);
1508
- };
1509
- }
1510
- };
1511
- }
1512
- var proto = Object.defineProperties(() => {
1513
- }, {
1514
- ...styles,
1515
- level: {
1516
- enumerable: true,
1517
- get() {
1518
- return this._generator.level;
1519
- },
1520
- set(level) {
1521
- this._generator.level = level;
1522
- }
1523
- }
1524
- });
1525
- var createStyler = (open, close, parent) => {
1526
- let openAll;
1527
- let closeAll;
1528
- if (parent === void 0) {
1529
- openAll = open;
1530
- closeAll = close;
1531
- } else {
1532
- openAll = parent.openAll + open;
1533
- closeAll = close + parent.closeAll;
1534
- }
1535
- return {
1536
- open,
1537
- close,
1538
- openAll,
1539
- closeAll,
1540
- parent
1541
- };
1542
- };
1543
- var createBuilder = (self2, _styler, _isEmpty) => {
1544
- const builder = (...arguments_) => {
1545
- if (isArray2(arguments_[0]) && isArray2(arguments_[0].raw)) {
1546
- return applyStyle(builder, chalkTag(builder, ...arguments_));
1547
- }
1548
- return applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
1549
- };
1550
- Object.setPrototypeOf(builder, proto);
1551
- builder._generator = self2;
1552
- builder._styler = _styler;
1553
- builder._isEmpty = _isEmpty;
1554
- return builder;
1555
- };
1556
- var applyStyle = (self2, string) => {
1557
- if (self2.level <= 0 || !string) {
1558
- return self2._isEmpty ? "" : string;
1559
- }
1560
- let styler = self2._styler;
1561
- if (styler === void 0) {
1562
- return string;
1563
- }
1564
- const { openAll, closeAll } = styler;
1565
- if (string.indexOf("\x1B") !== -1) {
1566
- while (styler !== void 0) {
1567
- string = stringReplaceAll(string, styler.close, styler.open);
1568
- styler = styler.parent;
1569
- }
1570
- }
1571
- const lfIndex = string.indexOf("\n");
1572
- if (lfIndex !== -1) {
1573
- string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
1574
- }
1575
- return openAll + string + closeAll;
1576
- };
1577
- var template;
1578
- var chalkTag = (chalk3, ...strings) => {
1579
- const [firstString] = strings;
1580
- if (!isArray2(firstString) || !isArray2(firstString.raw)) {
1581
- return strings.join(" ");
1582
- }
1583
- const arguments_ = strings.slice(1);
1584
- const parts = [firstString.raw[0]];
1585
- for (let i = 1; i < firstString.length; i++) {
1586
- parts.push(
1587
- String(arguments_[i - 1]).replace(/[{}\\]/g, "\\$&"),
1588
- String(firstString.raw[i])
1589
- );
1590
- }
1591
- if (template === void 0) {
1592
- template = require_templates();
1593
- }
1594
- return template(chalk3, parts.join(""));
1595
- };
1596
- Object.defineProperties(Chalk.prototype, styles);
1597
- var chalk2 = Chalk();
1598
- chalk2.supportsColor = stdoutColor;
1599
- chalk2.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
1600
- chalk2.stderr.supportsColor = stderrColor;
1601
- module.exports = chalk2;
1602
- }
1603
- });
1604
-
1605
- // src/index.ts
1606
- init_esm_shims();
1607
-
1608
- // src/services/event-broker.ts
1609
- init_esm_shims();
1610
-
1611
1
  // src/provider.ts
1612
- init_esm_shims();
1613
2
  var provider = null;
1614
3
  function getCloudProvider() {
1615
4
  if (!provider) {
@@ -1635,7 +24,6 @@ var cloudEventBroker = () => {
1635
24
  };
1636
25
 
1637
26
  // src/services/storage.ts
1638
- init_esm_shims();
1639
27
  var _cloudStorageService = null;
1640
28
  var cloudStorage = () => {
1641
29
  if (_cloudStorageService) {
@@ -1646,7 +34,6 @@ var cloudStorage = () => {
1646
34
  };
1647
35
 
1648
36
  // src/services/locations.ts
1649
- init_esm_shims();
1650
37
  var _cloudLocationService = null;
1651
38
  var cloudLocations = () => {
1652
39
  if (_cloudLocationService) {
@@ -1656,38 +43,7 @@ var cloudLocations = () => {
1656
43
  return _cloudLocationService;
1657
44
  };
1658
45
 
1659
- // src/services/functions/index.ts
1660
- init_esm_shims();
1661
-
1662
- // src/services/functions/event-broker/handler.ts
1663
- init_esm_shims();
1664
-
1665
- // ../utils/src/index.ts
1666
- init_esm_shims();
1667
-
1668
- // ../utils/src/config/index.ts
1669
- init_esm_shims();
1670
-
1671
- // ../utils/src/config/env.ts
1672
- init_esm_shims();
1673
-
1674
- // ../../node_modules/lodash-es/lodash.js
1675
- init_esm_shims();
1676
-
1677
- // ../../node_modules/lodash-es/isSymbol.js
1678
- init_esm_shims();
1679
-
1680
- // ../../node_modules/lodash-es/_baseGetTag.js
1681
- init_esm_shims();
1682
-
1683
- // ../../node_modules/lodash-es/_Symbol.js
1684
- init_esm_shims();
1685
-
1686
- // ../../node_modules/lodash-es/_root.js
1687
- init_esm_shims();
1688
-
1689
46
  // ../../node_modules/lodash-es/_freeGlobal.js
1690
- init_esm_shims();
1691
47
  var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
1692
48
  var freeGlobal_default = freeGlobal;
1693
49
 
@@ -1701,7 +57,6 @@ var Symbol2 = root_default.Symbol;
1701
57
  var Symbol_default = Symbol2;
1702
58
 
1703
59
  // ../../node_modules/lodash-es/_getRawTag.js
1704
- init_esm_shims();
1705
60
  var objectProto = Object.prototype;
1706
61
  var hasOwnProperty = objectProto.hasOwnProperty;
1707
62
  var nativeObjectToString = objectProto.toString;
@@ -1726,7 +81,6 @@ function getRawTag(value) {
1726
81
  var getRawTag_default = getRawTag;
1727
82
 
1728
83
  // ../../node_modules/lodash-es/_objectToString.js
1729
- init_esm_shims();
1730
84
  var objectProto2 = Object.prototype;
1731
85
  var nativeObjectToString2 = objectProto2.toString;
1732
86
  function objectToString(value) {
@@ -1747,7 +101,6 @@ function baseGetTag(value) {
1747
101
  var baseGetTag_default = baseGetTag;
1748
102
 
1749
103
  // ../../node_modules/lodash-es/isObjectLike.js
1750
- init_esm_shims();
1751
104
  function isObjectLike(value) {
1752
105
  return value != null && typeof value == "object";
1753
106
  }
@@ -1760,11 +113,7 @@ function isSymbol(value) {
1760
113
  }
1761
114
  var isSymbol_default = isSymbol;
1762
115
 
1763
- // ../../node_modules/lodash-es/_baseToString.js
1764
- init_esm_shims();
1765
-
1766
116
  // ../../node_modules/lodash-es/_arrayMap.js
1767
- init_esm_shims();
1768
117
  function arrayMap(array2, iteratee) {
1769
118
  var index = -1, length = array2 == null ? 0 : array2.length, result = Array(length);
1770
119
  while (++index < length) {
@@ -1775,7 +124,6 @@ function arrayMap(array2, iteratee) {
1775
124
  var arrayMap_default = arrayMap;
1776
125
 
1777
126
  // ../../node_modules/lodash-es/isArray.js
1778
- init_esm_shims();
1779
127
  var isArray = Array.isArray;
1780
128
  var isArray_default = isArray;
1781
129
 
@@ -1798,11 +146,7 @@ function baseToString(value) {
1798
146
  }
1799
147
  var baseToString_default = baseToString;
1800
148
 
1801
- // ../../node_modules/lodash-es/_baseTrim.js
1802
- init_esm_shims();
1803
-
1804
149
  // ../../node_modules/lodash-es/_trimmedEndIndex.js
1805
- init_esm_shims();
1806
150
  var reWhitespace = /\s/;
1807
151
  function trimmedEndIndex(string) {
1808
152
  var index = string.length;
@@ -1820,21 +164,13 @@ function baseTrim(string) {
1820
164
  var baseTrim_default = baseTrim;
1821
165
 
1822
166
  // ../../node_modules/lodash-es/isObject.js
1823
- init_esm_shims();
1824
167
  function isObject(value) {
1825
168
  var type = typeof value;
1826
169
  return value != null && (type == "object" || type == "function");
1827
170
  }
1828
171
  var isObject_default = isObject;
1829
172
 
1830
- // ../../node_modules/lodash-es/_getNative.js
1831
- init_esm_shims();
1832
-
1833
- // ../../node_modules/lodash-es/_baseIsNative.js
1834
- init_esm_shims();
1835
-
1836
173
  // ../../node_modules/lodash-es/isFunction.js
1837
- init_esm_shims();
1838
174
  var asyncTag = "[object AsyncFunction]";
1839
175
  var funcTag = "[object Function]";
1840
176
  var genTag = "[object GeneratorFunction]";
@@ -1848,11 +184,7 @@ function isFunction(value) {
1848
184
  }
1849
185
  var isFunction_default = isFunction;
1850
186
 
1851
- // ../../node_modules/lodash-es/_isMasked.js
1852
- init_esm_shims();
1853
-
1854
187
  // ../../node_modules/lodash-es/_coreJsData.js
1855
- init_esm_shims();
1856
188
  var coreJsData = root_default["__core-js_shared__"];
1857
189
  var coreJsData_default = coreJsData;
1858
190
 
@@ -1867,7 +199,6 @@ function isMasked(func) {
1867
199
  var isMasked_default = isMasked;
1868
200
 
1869
201
  // ../../node_modules/lodash-es/_toSource.js
1870
- init_esm_shims();
1871
202
  var funcProto = Function.prototype;
1872
203
  var funcToString = funcProto.toString;
1873
204
  function toSource(func) {
@@ -1905,7 +236,6 @@ function baseIsNative(value) {
1905
236
  var baseIsNative_default = baseIsNative;
1906
237
 
1907
238
  // ../../node_modules/lodash-es/_getValue.js
1908
- init_esm_shims();
1909
239
  function getValue(object, key) {
1910
240
  return object == null ? void 0 : object[key];
1911
241
  }
@@ -1918,11 +248,7 @@ function getNative(object, key) {
1918
248
  }
1919
249
  var getNative_default = getNative;
1920
250
 
1921
- // ../../node_modules/lodash-es/_baseIndexOf.js
1922
- init_esm_shims();
1923
-
1924
251
  // ../../node_modules/lodash-es/_baseFindIndex.js
1925
- init_esm_shims();
1926
252
  function baseFindIndex(array2, predicate, fromIndex, fromRight) {
1927
253
  var length = array2.length, index = fromIndex + (fromRight ? 1 : -1);
1928
254
  while (fromRight ? index-- : ++index < length) {
@@ -1935,14 +261,12 @@ function baseFindIndex(array2, predicate, fromIndex, fromRight) {
1935
261
  var baseFindIndex_default = baseFindIndex;
1936
262
 
1937
263
  // ../../node_modules/lodash-es/_baseIsNaN.js
1938
- init_esm_shims();
1939
264
  function baseIsNaN(value) {
1940
265
  return value !== value;
1941
266
  }
1942
267
  var baseIsNaN_default = baseIsNaN;
1943
268
 
1944
269
  // ../../node_modules/lodash-es/_strictIndexOf.js
1945
- init_esm_shims();
1946
270
  function strictIndexOf(array2, value, fromIndex) {
1947
271
  var index = fromIndex - 1, length = array2.length;
1948
272
  while (++index < length) {
@@ -1961,7 +285,6 @@ function baseIndexOf(array2, value, fromIndex) {
1961
285
  var baseIndexOf_default = baseIndexOf;
1962
286
 
1963
287
  // ../../node_modules/lodash-es/_isIndex.js
1964
- init_esm_shims();
1965
288
  var MAX_SAFE_INTEGER = 9007199254740991;
1966
289
  var reIsUint = /^(?:0|[1-9]\d*)$/;
1967
290
  function isIndex(value, length) {
@@ -1972,25 +295,19 @@ function isIndex(value, length) {
1972
295
  var isIndex_default = isIndex;
1973
296
 
1974
297
  // ../../node_modules/lodash-es/eq.js
1975
- init_esm_shims();
1976
298
  function eq(value, other) {
1977
299
  return value === other || value !== value && other !== other;
1978
300
  }
1979
301
  var eq_default = eq;
1980
302
 
1981
303
  // ../../node_modules/lodash-es/isLength.js
1982
- init_esm_shims();
1983
304
  var MAX_SAFE_INTEGER2 = 9007199254740991;
1984
305
  function isLength(value) {
1985
306
  return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER2;
1986
307
  }
1987
308
  var isLength_default = isLength;
1988
309
 
1989
- // ../../node_modules/lodash-es/isArguments.js
1990
- init_esm_shims();
1991
-
1992
310
  // ../../node_modules/lodash-es/_baseIsArguments.js
1993
- init_esm_shims();
1994
311
  var argsTag = "[object Arguments]";
1995
312
  function baseIsArguments(value) {
1996
313
  return isObjectLike_default(value) && baseGetTag_default(value) == argsTag;
@@ -2008,11 +325,7 @@ var isArguments = baseIsArguments_default(/* @__PURE__ */ function() {
2008
325
  };
2009
326
  var isArguments_default = isArguments;
2010
327
 
2011
- // ../../node_modules/lodash-es/_castPath.js
2012
- init_esm_shims();
2013
-
2014
328
  // ../../node_modules/lodash-es/_isKey.js
2015
- init_esm_shims();
2016
329
  var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
2017
330
  var reIsPlainProp = /^\w*$/;
2018
331
  function isKey(value, object) {
@@ -2027,29 +340,7 @@ function isKey(value, object) {
2027
340
  }
2028
341
  var isKey_default = isKey;
2029
342
 
2030
- // ../../node_modules/lodash-es/_stringToPath.js
2031
- init_esm_shims();
2032
-
2033
- // ../../node_modules/lodash-es/_memoizeCapped.js
2034
- init_esm_shims();
2035
-
2036
- // ../../node_modules/lodash-es/memoize.js
2037
- init_esm_shims();
2038
-
2039
- // ../../node_modules/lodash-es/_MapCache.js
2040
- init_esm_shims();
2041
-
2042
- // ../../node_modules/lodash-es/_mapCacheClear.js
2043
- init_esm_shims();
2044
-
2045
- // ../../node_modules/lodash-es/_Hash.js
2046
- init_esm_shims();
2047
-
2048
- // ../../node_modules/lodash-es/_hashClear.js
2049
- init_esm_shims();
2050
-
2051
343
  // ../../node_modules/lodash-es/_nativeCreate.js
2052
- init_esm_shims();
2053
344
  var nativeCreate = getNative_default(Object, "create");
2054
345
  var nativeCreate_default = nativeCreate;
2055
346
 
@@ -2061,7 +352,6 @@ function hashClear() {
2061
352
  var hashClear_default = hashClear;
2062
353
 
2063
354
  // ../../node_modules/lodash-es/_hashDelete.js
2064
- init_esm_shims();
2065
355
  function hashDelete(key) {
2066
356
  var result = this.has(key) && delete this.__data__[key];
2067
357
  this.size -= result ? 1 : 0;
@@ -2070,7 +360,6 @@ function hashDelete(key) {
2070
360
  var hashDelete_default = hashDelete;
2071
361
 
2072
362
  // ../../node_modules/lodash-es/_hashGet.js
2073
- init_esm_shims();
2074
363
  var HASH_UNDEFINED = "__lodash_hash_undefined__";
2075
364
  var objectProto5 = Object.prototype;
2076
365
  var hasOwnProperty4 = objectProto5.hasOwnProperty;
@@ -2085,7 +374,6 @@ function hashGet(key) {
2085
374
  var hashGet_default = hashGet;
2086
375
 
2087
376
  // ../../node_modules/lodash-es/_hashHas.js
2088
- init_esm_shims();
2089
377
  var objectProto6 = Object.prototype;
2090
378
  var hasOwnProperty5 = objectProto6.hasOwnProperty;
2091
379
  function hashHas(key) {
@@ -2095,7 +383,6 @@ function hashHas(key) {
2095
383
  var hashHas_default = hashHas;
2096
384
 
2097
385
  // ../../node_modules/lodash-es/_hashSet.js
2098
- init_esm_shims();
2099
386
  var HASH_UNDEFINED2 = "__lodash_hash_undefined__";
2100
387
  function hashSet(key, value) {
2101
388
  var data = this.__data__;
@@ -2121,22 +408,14 @@ Hash.prototype.has = hashHas_default;
2121
408
  Hash.prototype.set = hashSet_default;
2122
409
  var Hash_default = Hash;
2123
410
 
2124
- // ../../node_modules/lodash-es/_ListCache.js
2125
- init_esm_shims();
2126
-
2127
411
  // ../../node_modules/lodash-es/_listCacheClear.js
2128
- init_esm_shims();
2129
412
  function listCacheClear() {
2130
413
  this.__data__ = [];
2131
414
  this.size = 0;
2132
415
  }
2133
416
  var listCacheClear_default = listCacheClear;
2134
417
 
2135
- // ../../node_modules/lodash-es/_listCacheDelete.js
2136
- init_esm_shims();
2137
-
2138
418
  // ../../node_modules/lodash-es/_assocIndexOf.js
2139
- init_esm_shims();
2140
419
  function assocIndexOf(array2, key) {
2141
420
  var length = array2.length;
2142
421
  while (length--) {
@@ -2168,7 +447,6 @@ function listCacheDelete(key) {
2168
447
  var listCacheDelete_default = listCacheDelete;
2169
448
 
2170
449
  // ../../node_modules/lodash-es/_listCacheGet.js
2171
- init_esm_shims();
2172
450
  function listCacheGet(key) {
2173
451
  var data = this.__data__, index = assocIndexOf_default(data, key);
2174
452
  return index < 0 ? void 0 : data[index][1];
@@ -2176,14 +454,12 @@ function listCacheGet(key) {
2176
454
  var listCacheGet_default = listCacheGet;
2177
455
 
2178
456
  // ../../node_modules/lodash-es/_listCacheHas.js
2179
- init_esm_shims();
2180
457
  function listCacheHas(key) {
2181
458
  return assocIndexOf_default(this.__data__, key) > -1;
2182
459
  }
2183
460
  var listCacheHas_default = listCacheHas;
2184
461
 
2185
462
  // ../../node_modules/lodash-es/_listCacheSet.js
2186
- init_esm_shims();
2187
463
  function listCacheSet(key, value) {
2188
464
  var data = this.__data__, index = assocIndexOf_default(data, key);
2189
465
  if (index < 0) {
@@ -2213,7 +489,6 @@ ListCache.prototype.set = listCacheSet_default;
2213
489
  var ListCache_default = ListCache;
2214
490
 
2215
491
  // ../../node_modules/lodash-es/_Map.js
2216
- init_esm_shims();
2217
492
  var Map2 = getNative_default(root_default, "Map");
2218
493
  var Map_default = Map2;
2219
494
 
@@ -2228,14 +503,7 @@ function mapCacheClear() {
2228
503
  }
2229
504
  var mapCacheClear_default = mapCacheClear;
2230
505
 
2231
- // ../../node_modules/lodash-es/_mapCacheDelete.js
2232
- init_esm_shims();
2233
-
2234
- // ../../node_modules/lodash-es/_getMapData.js
2235
- init_esm_shims();
2236
-
2237
506
  // ../../node_modules/lodash-es/_isKeyable.js
2238
- init_esm_shims();
2239
507
  function isKeyable(value) {
2240
508
  var type = typeof value;
2241
509
  return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
@@ -2258,21 +526,18 @@ function mapCacheDelete(key) {
2258
526
  var mapCacheDelete_default = mapCacheDelete;
2259
527
 
2260
528
  // ../../node_modules/lodash-es/_mapCacheGet.js
2261
- init_esm_shims();
2262
529
  function mapCacheGet(key) {
2263
530
  return getMapData_default(this, key).get(key);
2264
531
  }
2265
532
  var mapCacheGet_default = mapCacheGet;
2266
533
 
2267
534
  // ../../node_modules/lodash-es/_mapCacheHas.js
2268
- init_esm_shims();
2269
535
  function mapCacheHas(key) {
2270
536
  return getMapData_default(this, key).has(key);
2271
537
  }
2272
538
  var mapCacheHas_default = mapCacheHas;
2273
539
 
2274
540
  // ../../node_modules/lodash-es/_mapCacheSet.js
2275
- init_esm_shims();
2276
541
  function mapCacheSet(key, value) {
2277
542
  var data = getMapData_default(this, key), size = data.size;
2278
543
  data.set(key, value);
@@ -2348,7 +613,6 @@ var stringToPath = memoizeCapped_default(function(string) {
2348
613
  var stringToPath_default = stringToPath;
2349
614
 
2350
615
  // ../../node_modules/lodash-es/toString.js
2351
- init_esm_shims();
2352
616
  function toString(value) {
2353
617
  return value == null ? "" : baseToString_default(value);
2354
618
  }
@@ -2364,7 +628,6 @@ function castPath(value, object) {
2364
628
  var castPath_default = castPath;
2365
629
 
2366
630
  // ../../node_modules/lodash-es/_toKey.js
2367
- init_esm_shims();
2368
631
  var INFINITY2 = 1 / 0;
2369
632
  function toKey(value) {
2370
633
  if (typeof value == "string" || isSymbol_default(value)) {
@@ -2375,11 +638,7 @@ function toKey(value) {
2375
638
  }
2376
639
  var toKey_default = toKey;
2377
640
 
2378
- // ../../node_modules/lodash-es/_castSlice.js
2379
- init_esm_shims();
2380
-
2381
641
  // ../../node_modules/lodash-es/_baseSlice.js
2382
- init_esm_shims();
2383
642
  function baseSlice(array2, start, end) {
2384
643
  var index = -1, length = array2.length;
2385
644
  if (start < 0) {
@@ -2408,7 +667,6 @@ function castSlice(array2, start, end) {
2408
667
  var castSlice_default = castSlice;
2409
668
 
2410
669
  // ../../node_modules/lodash-es/_hasUnicode.js
2411
- init_esm_shims();
2412
670
  var rsAstralRange = "\\ud800-\\udfff";
2413
671
  var rsComboMarksRange = "\\u0300-\\u036f";
2414
672
  var reComboHalfMarksRange = "\\ufe20-\\ufe2f";
@@ -2422,18 +680,13 @@ function hasUnicode(string) {
2422
680
  }
2423
681
  var hasUnicode_default = hasUnicode;
2424
682
 
2425
- // ../../node_modules/lodash-es/_stringToArray.js
2426
- init_esm_shims();
2427
-
2428
683
  // ../../node_modules/lodash-es/_asciiToArray.js
2429
- init_esm_shims();
2430
684
  function asciiToArray(string) {
2431
685
  return string.split("");
2432
686
  }
2433
687
  var asciiToArray_default = asciiToArray;
2434
688
 
2435
689
  // ../../node_modules/lodash-es/_unicodeToArray.js
2436
- init_esm_shims();
2437
690
  var rsAstralRange2 = "\\ud800-\\udfff";
2438
691
  var rsComboMarksRange2 = "\\u0300-\\u036f";
2439
692
  var reComboHalfMarksRange2 = "\\ufe20-\\ufe2f";
@@ -2466,12 +719,11 @@ function stringToArray(string) {
2466
719
  var stringToArray_default = stringToArray;
2467
720
 
2468
721
  // ../../node_modules/lodash-es/_hasPath.js
2469
- init_esm_shims();
2470
- function hasPath(object, path2, hasFunc) {
2471
- path2 = castPath_default(path2, object);
2472
- var index = -1, length = path2.length, result = false;
722
+ function hasPath(object, path, hasFunc) {
723
+ path = castPath_default(path, object);
724
+ var index = -1, length = path.length, result = false;
2473
725
  while (++index < length) {
2474
- var key = toKey_default(path2[index]);
726
+ var key = toKey_default(path[index]);
2475
727
  if (!(result = object != null && hasFunc(object, key))) {
2476
728
  break;
2477
729
  }
@@ -2485,11 +737,7 @@ function hasPath(object, path2, hasFunc) {
2485
737
  }
2486
738
  var hasPath_default = hasPath;
2487
739
 
2488
- // ../../node_modules/lodash-es/has.js
2489
- init_esm_shims();
2490
-
2491
740
  // ../../node_modules/lodash-es/_baseHas.js
2492
- init_esm_shims();
2493
741
  var objectProto7 = Object.prototype;
2494
742
  var hasOwnProperty6 = objectProto7.hasOwnProperty;
2495
743
  function baseHas(object, key) {
@@ -2498,16 +746,12 @@ function baseHas(object, key) {
2498
746
  var baseHas_default = baseHas;
2499
747
 
2500
748
  // ../../node_modules/lodash-es/has.js
2501
- function has(object, path2) {
2502
- return object != null && hasPath_default(object, path2, baseHas_default);
749
+ function has(object, path) {
750
+ return object != null && hasPath_default(object, path, baseHas_default);
2503
751
  }
2504
752
  var has_default = has;
2505
753
 
2506
- // ../../node_modules/lodash-es/trim.js
2507
- init_esm_shims();
2508
-
2509
754
  // ../../node_modules/lodash-es/_charsEndIndex.js
2510
- init_esm_shims();
2511
755
  function charsEndIndex(strSymbols, chrSymbols) {
2512
756
  var index = strSymbols.length;
2513
757
  while (index-- && baseIndexOf_default(chrSymbols, strSymbols[index], 0) > -1) {
@@ -2517,7 +761,6 @@ function charsEndIndex(strSymbols, chrSymbols) {
2517
761
  var charsEndIndex_default = charsEndIndex;
2518
762
 
2519
763
  // ../../node_modules/lodash-es/_charsStartIndex.js
2520
- init_esm_shims();
2521
764
  function charsStartIndex(strSymbols, chrSymbols) {
2522
765
  var index = -1, length = strSymbols.length;
2523
766
  while (++index < length && baseIndexOf_default(chrSymbols, strSymbols[index], 0) > -1) {
@@ -2622,19 +865,505 @@ var utils = {
2622
865
  };
2623
866
  var env = Object.assign(_env, utils);
2624
867
 
2625
- // ../utils/src/auth/index.ts
2626
- init_esm_shims();
868
+ // ../utils/node_modules/chalk/source/vendor/ansi-styles/index.js
869
+ var ANSI_BACKGROUND_OFFSET = 10;
870
+ var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
871
+ var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
872
+ var wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
873
+ var styles = {
874
+ modifier: {
875
+ reset: [0, 0],
876
+ // 21 isn't widely supported and 22 does the same thing
877
+ bold: [1, 22],
878
+ dim: [2, 22],
879
+ italic: [3, 23],
880
+ underline: [4, 24],
881
+ overline: [53, 55],
882
+ inverse: [7, 27],
883
+ hidden: [8, 28],
884
+ strikethrough: [9, 29]
885
+ },
886
+ color: {
887
+ black: [30, 39],
888
+ red: [31, 39],
889
+ green: [32, 39],
890
+ yellow: [33, 39],
891
+ blue: [34, 39],
892
+ magenta: [35, 39],
893
+ cyan: [36, 39],
894
+ white: [37, 39],
895
+ // Bright color
896
+ blackBright: [90, 39],
897
+ gray: [90, 39],
898
+ // Alias of `blackBright`
899
+ grey: [90, 39],
900
+ // Alias of `blackBright`
901
+ redBright: [91, 39],
902
+ greenBright: [92, 39],
903
+ yellowBright: [93, 39],
904
+ blueBright: [94, 39],
905
+ magentaBright: [95, 39],
906
+ cyanBright: [96, 39],
907
+ whiteBright: [97, 39]
908
+ },
909
+ bgColor: {
910
+ bgBlack: [40, 49],
911
+ bgRed: [41, 49],
912
+ bgGreen: [42, 49],
913
+ bgYellow: [43, 49],
914
+ bgBlue: [44, 49],
915
+ bgMagenta: [45, 49],
916
+ bgCyan: [46, 49],
917
+ bgWhite: [47, 49],
918
+ // Bright color
919
+ bgBlackBright: [100, 49],
920
+ bgGray: [100, 49],
921
+ // Alias of `bgBlackBright`
922
+ bgGrey: [100, 49],
923
+ // Alias of `bgBlackBright`
924
+ bgRedBright: [101, 49],
925
+ bgGreenBright: [102, 49],
926
+ bgYellowBright: [103, 49],
927
+ bgBlueBright: [104, 49],
928
+ bgMagentaBright: [105, 49],
929
+ bgCyanBright: [106, 49],
930
+ bgWhiteBright: [107, 49]
931
+ }
932
+ };
933
+ var modifierNames = Object.keys(styles.modifier);
934
+ var foregroundColorNames = Object.keys(styles.color);
935
+ var backgroundColorNames = Object.keys(styles.bgColor);
936
+ var colorNames = [...foregroundColorNames, ...backgroundColorNames];
937
+ function assembleStyles() {
938
+ const codes = /* @__PURE__ */ new Map();
939
+ for (const [groupName, group] of Object.entries(styles)) {
940
+ for (const [styleName, style] of Object.entries(group)) {
941
+ styles[styleName] = {
942
+ open: `\x1B[${style[0]}m`,
943
+ close: `\x1B[${style[1]}m`
944
+ };
945
+ group[styleName] = styles[styleName];
946
+ codes.set(style[0], style[1]);
947
+ }
948
+ Object.defineProperty(styles, groupName, {
949
+ value: group,
950
+ enumerable: false
951
+ });
952
+ }
953
+ Object.defineProperty(styles, "codes", {
954
+ value: codes,
955
+ enumerable: false
956
+ });
957
+ styles.color.close = "\x1B[39m";
958
+ styles.bgColor.close = "\x1B[49m";
959
+ styles.color.ansi = wrapAnsi16();
960
+ styles.color.ansi256 = wrapAnsi256();
961
+ styles.color.ansi16m = wrapAnsi16m();
962
+ styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
963
+ styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
964
+ styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
965
+ Object.defineProperties(styles, {
966
+ rgbToAnsi256: {
967
+ value(red, green, blue) {
968
+ if (red === green && green === blue) {
969
+ if (red < 8) {
970
+ return 16;
971
+ }
972
+ if (red > 248) {
973
+ return 231;
974
+ }
975
+ return Math.round((red - 8) / 247 * 24) + 232;
976
+ }
977
+ return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
978
+ },
979
+ enumerable: false
980
+ },
981
+ hexToRgb: {
982
+ value(hex) {
983
+ const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
984
+ if (!matches) {
985
+ return [0, 0, 0];
986
+ }
987
+ let [colorString] = matches;
988
+ if (colorString.length === 3) {
989
+ colorString = [...colorString].map((character) => character + character).join("");
990
+ }
991
+ const integer = Number.parseInt(colorString, 16);
992
+ return [
993
+ /* eslint-disable no-bitwise */
994
+ integer >> 16 & 255,
995
+ integer >> 8 & 255,
996
+ integer & 255
997
+ /* eslint-enable no-bitwise */
998
+ ];
999
+ },
1000
+ enumerable: false
1001
+ },
1002
+ hexToAnsi256: {
1003
+ value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
1004
+ enumerable: false
1005
+ },
1006
+ ansi256ToAnsi: {
1007
+ value(code) {
1008
+ if (code < 8) {
1009
+ return 30 + code;
1010
+ }
1011
+ if (code < 16) {
1012
+ return 90 + (code - 8);
1013
+ }
1014
+ let red;
1015
+ let green;
1016
+ let blue;
1017
+ if (code >= 232) {
1018
+ red = ((code - 232) * 10 + 8) / 255;
1019
+ green = red;
1020
+ blue = red;
1021
+ } else {
1022
+ code -= 16;
1023
+ const remainder = code % 36;
1024
+ red = Math.floor(code / 36) / 5;
1025
+ green = Math.floor(remainder / 6) / 5;
1026
+ blue = remainder % 6 / 5;
1027
+ }
1028
+ const value = Math.max(red, green, blue) * 2;
1029
+ if (value === 0) {
1030
+ return 30;
1031
+ }
1032
+ let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
1033
+ if (value === 2) {
1034
+ result += 60;
1035
+ }
1036
+ return result;
1037
+ },
1038
+ enumerable: false
1039
+ },
1040
+ rgbToAnsi: {
1041
+ value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
1042
+ enumerable: false
1043
+ },
1044
+ hexToAnsi: {
1045
+ value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
1046
+ enumerable: false
1047
+ }
1048
+ });
1049
+ return styles;
1050
+ }
1051
+ var ansiStyles = assembleStyles();
1052
+ var ansi_styles_default = ansiStyles;
1053
+
1054
+ // ../utils/node_modules/chalk/source/vendor/supports-color/index.js
1055
+ import process2 from "process";
1056
+ import os from "os";
1057
+ import tty from "tty";
1058
+ function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process2.argv) {
1059
+ const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
1060
+ const position = argv.indexOf(prefix + flag);
1061
+ const terminatorPosition = argv.indexOf("--");
1062
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
1063
+ }
1064
+ var { env: env2 } = process2;
1065
+ var flagForceColor;
1066
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
1067
+ flagForceColor = 0;
1068
+ } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
1069
+ flagForceColor = 1;
1070
+ }
1071
+ function envForceColor() {
1072
+ if ("FORCE_COLOR" in env2) {
1073
+ if (env2.FORCE_COLOR === "true") {
1074
+ return 1;
1075
+ }
1076
+ if (env2.FORCE_COLOR === "false") {
1077
+ return 0;
1078
+ }
1079
+ return env2.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env2.FORCE_COLOR, 10), 3);
1080
+ }
1081
+ }
1082
+ function translateLevel(level) {
1083
+ if (level === 0) {
1084
+ return false;
1085
+ }
1086
+ return {
1087
+ level,
1088
+ hasBasic: true,
1089
+ has256: level >= 2,
1090
+ has16m: level >= 3
1091
+ };
1092
+ }
1093
+ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
1094
+ const noFlagForceColor = envForceColor();
1095
+ if (noFlagForceColor !== void 0) {
1096
+ flagForceColor = noFlagForceColor;
1097
+ }
1098
+ const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
1099
+ if (forceColor === 0) {
1100
+ return 0;
1101
+ }
1102
+ if (sniffFlags) {
1103
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
1104
+ return 3;
1105
+ }
1106
+ if (hasFlag("color=256")) {
1107
+ return 2;
1108
+ }
1109
+ }
1110
+ if ("TF_BUILD" in env2 && "AGENT_NAME" in env2) {
1111
+ return 1;
1112
+ }
1113
+ if (haveStream && !streamIsTTY && forceColor === void 0) {
1114
+ return 0;
1115
+ }
1116
+ const min = forceColor || 0;
1117
+ if (env2.TERM === "dumb") {
1118
+ return min;
1119
+ }
1120
+ if (process2.platform === "win32") {
1121
+ const osRelease = os.release().split(".");
1122
+ if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
1123
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
1124
+ }
1125
+ return 1;
1126
+ }
1127
+ if ("CI" in env2) {
1128
+ if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => key in env2)) {
1129
+ return 3;
1130
+ }
1131
+ if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
1132
+ return 1;
1133
+ }
1134
+ return min;
1135
+ }
1136
+ if ("TEAMCITY_VERSION" in env2) {
1137
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
1138
+ }
1139
+ if (env2.COLORTERM === "truecolor") {
1140
+ return 3;
1141
+ }
1142
+ if (env2.TERM === "xterm-kitty") {
1143
+ return 3;
1144
+ }
1145
+ if (env2.TERM === "xterm-ghostty") {
1146
+ return 3;
1147
+ }
1148
+ if (env2.TERM === "wezterm") {
1149
+ return 3;
1150
+ }
1151
+ if ("TERM_PROGRAM" in env2) {
1152
+ const version = Number.parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
1153
+ switch (env2.TERM_PROGRAM) {
1154
+ case "iTerm.app": {
1155
+ return version >= 3 ? 3 : 2;
1156
+ }
1157
+ case "Apple_Terminal": {
1158
+ return 2;
1159
+ }
1160
+ }
1161
+ }
1162
+ if (/-256(color)?$/i.test(env2.TERM)) {
1163
+ return 2;
1164
+ }
1165
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
1166
+ return 1;
1167
+ }
1168
+ if ("COLORTERM" in env2) {
1169
+ return 1;
1170
+ }
1171
+ return min;
1172
+ }
1173
+ function createSupportsColor(stream, options = {}) {
1174
+ const level = _supportsColor(stream, {
1175
+ streamIsTTY: stream && stream.isTTY,
1176
+ ...options
1177
+ });
1178
+ return translateLevel(level);
1179
+ }
1180
+ var supportsColor = {
1181
+ stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
1182
+ stderr: createSupportsColor({ isTTY: tty.isatty(2) })
1183
+ };
1184
+ var supports_color_default = supportsColor;
2627
1185
 
2628
- // ../utils/src/auth/token.ts
2629
- init_esm_shims();
1186
+ // ../utils/node_modules/chalk/source/utilities.js
1187
+ function stringReplaceAll(string, substring, replacer) {
1188
+ let index = string.indexOf(substring);
1189
+ if (index === -1) {
1190
+ return string;
1191
+ }
1192
+ const substringLength = substring.length;
1193
+ let endIndex = 0;
1194
+ let returnValue = "";
1195
+ do {
1196
+ returnValue += string.slice(endIndex, index) + substring + replacer;
1197
+ endIndex = index + substringLength;
1198
+ index = string.indexOf(substring, endIndex);
1199
+ } while (index !== -1);
1200
+ returnValue += string.slice(endIndex);
1201
+ return returnValue;
1202
+ }
1203
+ function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
1204
+ let endIndex = 0;
1205
+ let returnValue = "";
1206
+ do {
1207
+ const gotCR = string[index - 1] === "\r";
1208
+ returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
1209
+ endIndex = index + 1;
1210
+ index = string.indexOf("\n", endIndex);
1211
+ } while (index !== -1);
1212
+ returnValue += string.slice(endIndex);
1213
+ return returnValue;
1214
+ }
1215
+
1216
+ // ../utils/node_modules/chalk/source/index.js
1217
+ var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default;
1218
+ var GENERATOR = Symbol("GENERATOR");
1219
+ var STYLER = Symbol("STYLER");
1220
+ var IS_EMPTY = Symbol("IS_EMPTY");
1221
+ var levelMapping = [
1222
+ "ansi",
1223
+ "ansi",
1224
+ "ansi256",
1225
+ "ansi16m"
1226
+ ];
1227
+ var styles2 = /* @__PURE__ */ Object.create(null);
1228
+ var applyOptions = (object, options = {}) => {
1229
+ if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
1230
+ throw new Error("The `level` option should be an integer from 0 to 3");
1231
+ }
1232
+ const colorLevel = stdoutColor ? stdoutColor.level : 0;
1233
+ object.level = options.level === void 0 ? colorLevel : options.level;
1234
+ };
1235
+ var chalkFactory = (options) => {
1236
+ const chalk2 = (...strings) => strings.join(" ");
1237
+ applyOptions(chalk2, options);
1238
+ Object.setPrototypeOf(chalk2, createChalk.prototype);
1239
+ return chalk2;
1240
+ };
1241
+ function createChalk(options) {
1242
+ return chalkFactory(options);
1243
+ }
1244
+ Object.setPrototypeOf(createChalk.prototype, Function.prototype);
1245
+ for (const [styleName, style] of Object.entries(ansi_styles_default)) {
1246
+ styles2[styleName] = {
1247
+ get() {
1248
+ const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
1249
+ Object.defineProperty(this, styleName, { value: builder });
1250
+ return builder;
1251
+ }
1252
+ };
1253
+ }
1254
+ styles2.visible = {
1255
+ get() {
1256
+ const builder = createBuilder(this, this[STYLER], true);
1257
+ Object.defineProperty(this, "visible", { value: builder });
1258
+ return builder;
1259
+ }
1260
+ };
1261
+ var getModelAnsi = (model, level, type, ...arguments_) => {
1262
+ if (model === "rgb") {
1263
+ if (level === "ansi16m") {
1264
+ return ansi_styles_default[type].ansi16m(...arguments_);
1265
+ }
1266
+ if (level === "ansi256") {
1267
+ return ansi_styles_default[type].ansi256(ansi_styles_default.rgbToAnsi256(...arguments_));
1268
+ }
1269
+ return ansi_styles_default[type].ansi(ansi_styles_default.rgbToAnsi(...arguments_));
1270
+ }
1271
+ if (model === "hex") {
1272
+ return getModelAnsi("rgb", level, type, ...ansi_styles_default.hexToRgb(...arguments_));
1273
+ }
1274
+ return ansi_styles_default[type][model](...arguments_);
1275
+ };
1276
+ var usedModels = ["rgb", "hex", "ansi256"];
1277
+ for (const model of usedModels) {
1278
+ styles2[model] = {
1279
+ get() {
1280
+ const { level } = this;
1281
+ return function(...arguments_) {
1282
+ const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansi_styles_default.color.close, this[STYLER]);
1283
+ return createBuilder(this, styler, this[IS_EMPTY]);
1284
+ };
1285
+ }
1286
+ };
1287
+ const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
1288
+ styles2[bgModel] = {
1289
+ get() {
1290
+ const { level } = this;
1291
+ return function(...arguments_) {
1292
+ const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansi_styles_default.bgColor.close, this[STYLER]);
1293
+ return createBuilder(this, styler, this[IS_EMPTY]);
1294
+ };
1295
+ }
1296
+ };
1297
+ }
1298
+ var proto = Object.defineProperties(() => {
1299
+ }, {
1300
+ ...styles2,
1301
+ level: {
1302
+ enumerable: true,
1303
+ get() {
1304
+ return this[GENERATOR].level;
1305
+ },
1306
+ set(level) {
1307
+ this[GENERATOR].level = level;
1308
+ }
1309
+ }
1310
+ });
1311
+ var createStyler = (open, close, parent) => {
1312
+ let openAll;
1313
+ let closeAll;
1314
+ if (parent === void 0) {
1315
+ openAll = open;
1316
+ closeAll = close;
1317
+ } else {
1318
+ openAll = parent.openAll + open;
1319
+ closeAll = close + parent.closeAll;
1320
+ }
1321
+ return {
1322
+ open,
1323
+ close,
1324
+ openAll,
1325
+ closeAll,
1326
+ parent
1327
+ };
1328
+ };
1329
+ var createBuilder = (self2, _styler, _isEmpty) => {
1330
+ const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
1331
+ Object.setPrototypeOf(builder, proto);
1332
+ builder[GENERATOR] = self2;
1333
+ builder[STYLER] = _styler;
1334
+ builder[IS_EMPTY] = _isEmpty;
1335
+ return builder;
1336
+ };
1337
+ var applyStyle = (self2, string) => {
1338
+ if (self2.level <= 0 || !string) {
1339
+ return self2[IS_EMPTY] ? "" : string;
1340
+ }
1341
+ let styler = self2[STYLER];
1342
+ if (styler === void 0) {
1343
+ return string;
1344
+ }
1345
+ const { openAll, closeAll } = styler;
1346
+ if (string.includes("\x1B")) {
1347
+ while (styler !== void 0) {
1348
+ string = stringReplaceAll(string, styler.close, styler.open);
1349
+ styler = styler.parent;
1350
+ }
1351
+ }
1352
+ const lfIndex = string.indexOf("\n");
1353
+ if (lfIndex !== -1) {
1354
+ string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
1355
+ }
1356
+ return openAll + string + closeAll;
1357
+ };
1358
+ Object.defineProperties(createChalk.prototype, styles2);
1359
+ var chalk = createChalk();
1360
+ var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
1361
+ var source_default = chalk;
2630
1362
 
2631
1363
  // ../utils/src/logging/index.ts
2632
- init_esm_shims();
2633
- var import_chalk = __toESM(require_source());
2634
1364
  import { EOL } from "os";
2635
1365
 
2636
1366
  // ../utils/src/logging/types.ts
2637
- init_esm_shims();
2638
1367
  var logLevels = {
2639
1368
  fatal: -1,
2640
1369
  error: 0,
@@ -2644,7 +1373,6 @@ var logLevels = {
2644
1373
  };
2645
1374
 
2646
1375
  // ../utils/src/logging/error-to-string.ts
2647
- init_esm_shims();
2648
1376
  var errorToString = (error) => {
2649
1377
  if (error === null) return "Null error";
2650
1378
  if (error === void 0) return "Undefined error";
@@ -2670,12 +1398,14 @@ var errorToString = (error) => {
2670
1398
 
2671
1399
  // ../utils/src/logging/index.ts
2672
1400
  var currentLogLevel = logLevels[env("LOG_LEVEL")?.toLowerCase()] ?? logLevels.info;
1401
+ var module = "default";
1402
+ var requestId = "";
2673
1403
  var logger = {
2674
1404
  fatal: (message, meta) => {
2675
1405
  if (currentLogLevel >= logLevels.fatal) {
2676
1406
  console.error(
2677
1407
  `[${(/* @__PURE__ */ new Date()).toTimeString()}]`,
2678
- `${import_chalk.default.bgRed.white(" fatal ")}${EOL}`,
1408
+ `${source_default.bgRed.white(" fatal ")} - ${module || "unknown module"} - ${requestId || "no request ID"} - ${EOL}`,
2679
1409
  errorToString(message),
2680
1410
  meta ? `${EOL}${JSON.stringify(meta, null, 2)}` : ""
2681
1411
  );
@@ -2685,7 +1415,7 @@ var logger = {
2685
1415
  if (currentLogLevel >= logLevels.error) {
2686
1416
  console.error(
2687
1417
  `[${(/* @__PURE__ */ new Date()).toTimeString()}]`,
2688
- `${import_chalk.default.bgRed.white(" error ")}${EOL}`,
1418
+ `${source_default.bgRed.white(" error ")} - ${module || "unknown module"} - ${requestId || "no request ID"} - ${EOL}`,
2689
1419
  errorToString(message),
2690
1420
  meta ? `${EOL}${JSON.stringify(meta, null, 2)}` : ""
2691
1421
  );
@@ -2695,7 +1425,7 @@ var logger = {
2695
1425
  if (currentLogLevel >= logLevels.warn) {
2696
1426
  console.warn(
2697
1427
  `[${(/* @__PURE__ */ new Date()).toTimeString()}]`,
2698
- `${import_chalk.default.bgYellow.black(" warn ")}${EOL}`,
1428
+ `${source_default.bgYellow.black(" warn ")} - ${module || "unknown module"} - ${requestId || "no request ID"} - ${EOL}`,
2699
1429
  errorToString(message),
2700
1430
  meta ? `${EOL}${JSON.stringify(meta, null, 2)}` : ""
2701
1431
  );
@@ -2705,7 +1435,7 @@ var logger = {
2705
1435
  if (currentLogLevel >= logLevels.info) {
2706
1436
  console.info(
2707
1437
  `[${(/* @__PURE__ */ new Date()).toTimeString()}]`,
2708
- `${import_chalk.default.bgBlue.white(" info ")}${EOL}`,
1438
+ `${source_default.bgBlue.white(" info ")} - ${module || "unknown module"} - ${requestId || "no request ID"} - ${EOL}`,
2709
1439
  message,
2710
1440
  meta ? `${EOL}${JSON.stringify(meta, null, 2)}` : ""
2711
1441
  );
@@ -2715,7 +1445,7 @@ var logger = {
2715
1445
  if (currentLogLevel >= logLevels.debug) {
2716
1446
  console.debug(
2717
1447
  `[${(/* @__PURE__ */ new Date()).toTimeString()}]`,
2718
- `${import_chalk.default.bgWhite.black(" debug ")}${EOL}`,
1448
+ `${source_default.bgWhite.black(" debug ")} - ${module || "unknown module"} - ${requestId || "no request ID"} - ${EOL}`,
2719
1449
  message,
2720
1450
  meta ? `${EOL}${JSON.stringify(meta, null, 2)}` : ""
2721
1451
  );
@@ -2724,7 +1454,6 @@ var logger = {
2724
1454
  };
2725
1455
 
2726
1456
  // src/services/functions/cloud-functions.ts
2727
- init_esm_shims();
2728
1457
  var _cloudFunctionsService = null;
2729
1458
  var cloudFunctions = () => {
2730
1459
  if (_cloudFunctionsService) {
@@ -2735,7 +1464,6 @@ var cloudFunctions = () => {
2735
1464
  };
2736
1465
 
2737
1466
  // src/services/functions/event-broker/create-event-context.ts
2738
- init_esm_shims();
2739
1467
  function createEventContext({
2740
1468
  body,
2741
1469
  attributes,
@@ -2792,17 +1520,8 @@ async function eventBrokerHandler(handler, ...args) {
2792
1520
  }
2793
1521
  }
2794
1522
 
2795
- // src/services/functions/http/handler.ts
2796
- init_esm_shims();
2797
-
2798
1523
  // src/services/functions/http/create-http-context.ts
2799
- init_esm_shims();
2800
1524
  import querystring from "querystring";
2801
-
2802
- // src/services/functions/http/types.ts
2803
- init_esm_shims();
2804
-
2805
- // src/services/functions/http/create-http-context.ts
2806
1525
  function createHttpContext(request, auth) {
2807
1526
  const response = {
2808
1527
  body: void 0,
@@ -2967,11 +1686,7 @@ async function httpHandler(handler, ...args) {
2967
1686
  }
2968
1687
  }
2969
1688
 
2970
- // src/services/functions/schedule/handler.ts
2971
- init_esm_shims();
2972
-
2973
1689
  // src/services/functions/schedule/create-schedule-context.ts
2974
- init_esm_shims();
2975
1690
  function createScheduleContext(request) {
2976
1691
  const response = {
2977
1692
  status: "error",
@@ -3014,11 +1729,7 @@ async function scheduleHandler(handler, ...args) {
3014
1729
  }
3015
1730
  }
3016
1731
 
3017
- // src/services/functions/websocket/handler.ts
3018
- init_esm_shims();
3019
-
3020
1732
  // src/services/functions/websocket/create-websocket-context.ts
3021
- init_esm_shims();
3022
1733
  function createWebSocketContext(request) {
3023
1734
  const response = {
3024
1735
  status: "success",
@@ -3069,7 +1780,6 @@ async function websocketHandler(handler, ...args) {
3069
1780
  }
3070
1781
 
3071
1782
  // src/services/websocket.ts
3072
- init_esm_shims();
3073
1783
  var _cloudWebSocket = null;
3074
1784
  var cloudWebSocket = () => {
3075
1785
  if (_cloudWebSocket) {