@vltpkg/cli-js 0.0.0-7
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/LICENSE +15 -0
- package/README.md +10 -0
- package/cache-unzip-src-unzip.js +7896 -0
- package/cache-unzip-src-unzip.js.map +7 -0
- package/chunk-36Z4IEW5.js +1010 -0
- package/chunk-36Z4IEW5.js.map +7 -0
- package/chunk-433RK6QP.js +72 -0
- package/chunk-433RK6QP.js.map +7 -0
- package/chunk-457WPPV5.js +969 -0
- package/chunk-457WPPV5.js.map +7 -0
- package/chunk-66GJ6BNX.js +2666 -0
- package/chunk-66GJ6BNX.js.map +7 -0
- package/chunk-AYOLWFFJ.js +10972 -0
- package/chunk-AYOLWFFJ.js.map +7 -0
- package/chunk-GQLKOYXI.js +1451 -0
- package/chunk-GQLKOYXI.js.map +7 -0
- package/chunk-GU2E2KHZ.js +152 -0
- package/chunk-GU2E2KHZ.js.map +7 -0
- package/chunk-H75RQSUK.js +5413 -0
- package/chunk-H75RQSUK.js.map +7 -0
- package/chunk-LJEVKV7R.js +36 -0
- package/chunk-LJEVKV7R.js.map +7 -0
- package/chunk-MF4RCNHU.js +71 -0
- package/chunk-MF4RCNHU.js.map +7 -0
- package/chunk-NM754OFF.js +1104 -0
- package/chunk-NM754OFF.js.map +7 -0
- package/chunk-OGUMFXHI.js +1136 -0
- package/chunk-OGUMFXHI.js.map +7 -0
- package/chunk-OKDQY2GQ.js +1866 -0
- package/chunk-OKDQY2GQ.js.map +7 -0
- package/chunk-OOZN2US4.js +61 -0
- package/chunk-OOZN2US4.js.map +7 -0
- package/chunk-OSVOPGNL.js +782 -0
- package/chunk-OSVOPGNL.js.map +7 -0
- package/chunk-PKKWJ5FM.js +11836 -0
- package/chunk-PKKWJ5FM.js.map +7 -0
- package/chunk-PPTEV6PS.js +27 -0
- package/chunk-PPTEV6PS.js.map +7 -0
- package/chunk-S7LRSSDW.js +40 -0
- package/chunk-S7LRSSDW.js.map +7 -0
- package/chunk-SJZXAMQQ.js +5233 -0
- package/chunk-SJZXAMQQ.js.map +7 -0
- package/chunk-TV2RDGWY.js +181 -0
- package/chunk-TV2RDGWY.js.map +7 -0
- package/chunk-V4TLWRQW.js +34 -0
- package/chunk-V4TLWRQW.js.map +7 -0
- package/chunk-VIE5PVDF.js +21788 -0
- package/chunk-VIE5PVDF.js.map +7 -0
- package/chunk-VO2MAWDF.js +53 -0
- package/chunk-VO2MAWDF.js.map +7 -0
- package/chunk-XCC42LF5.js +511 -0
- package/chunk-XCC42LF5.js.map +7 -0
- package/chunk-YS3ZYKCN.js +6499 -0
- package/chunk-YS3ZYKCN.js.map +7 -0
- package/chunk-ZLP22ACI.js +65 -0
- package/chunk-ZLP22ACI.js.map +7 -0
- package/chunk-ZSTAQQQN.js +2070 -0
- package/chunk-ZSTAQQQN.js.map +7 -0
- package/cli-package.json +104 -0
- package/config-M6ZTMEJC.js +184 -0
- package/config-M6ZTMEJC.js.map +7 -0
- package/devtools-PSS6DSS6.js +16681 -0
- package/devtools-PSS6DSS6.js.map +7 -0
- package/exec-5Q6ZP6JI.js +48 -0
- package/exec-5Q6ZP6JI.js.map +7 -0
- package/gui-667EH2M7.js +44 -0
- package/gui-667EH2M7.js.map +7 -0
- package/gui-assets/favicon.ico +0 -0
- package/gui-assets/fonts/courier-bold-italic.ttf +0 -0
- package/gui-assets/fonts/courier-bold.ttf +0 -0
- package/gui-assets/fonts/courier-italic.ttf +0 -0
- package/gui-assets/fonts/courier-regular.ttf +0 -0
- package/gui-assets/fonts/geist-mono.ttf +0 -0
- package/gui-assets/fonts/inter.ttf +0 -0
- package/gui-assets/images/folder.png +0 -0
- package/gui-assets/index.html +34 -0
- package/gui-assets/index.js +1573 -0
- package/gui-assets/index.js.map +7 -0
- package/gui-assets/main.css +1 -0
- package/help-JZ3VD6MH.js +24 -0
- package/help-JZ3VD6MH.js.map +7 -0
- package/init-4JOBGJ4C.js +24 -0
- package/init-4JOBGJ4C.js.map +7 -0
- package/install-I6UDMAKJ.js +53 -0
- package/install-I6UDMAKJ.js.map +7 -0
- package/install-exec-BGKORQDZ.js +27 -0
- package/install-exec-BGKORQDZ.js.map +7 -0
- package/list-NKJNNDAV.js +138 -0
- package/list-NKJNNDAV.js.map +7 -0
- package/login-5X5JKFYS.js +35 -0
- package/login-5X5JKFYS.js.map +7 -0
- package/logout-5NO6B4BW.js +35 -0
- package/logout-5NO6B4BW.js.map +7 -0
- package/package.json +25 -0
- package/pkg-CUX23YND.js +363 -0
- package/pkg-CUX23YND.js.map +7 -0
- package/query-XWAQ6U4O.js +126 -0
- package/query-XWAQ6U4O.js.map +7 -0
- package/registry-client-package.json +84 -0
- package/reporter-GV7DMKAK.js +17 -0
- package/reporter-GV7DMKAK.js.map +7 -0
- package/rollback-remove-src-remove.js +7397 -0
- package/rollback-remove-src-remove.js.map +7 -0
- package/run-GJDCKL7X.js +66 -0
- package/run-GJDCKL7X.js.map +7 -0
- package/run-exec-L3RGBBPL.js +39 -0
- package/run-exec-L3RGBBPL.js.map +7 -0
- package/source-ALZ2QHEZ.js +32 -0
- package/source-ALZ2QHEZ.js.map +7 -0
- package/src-XRLOORCU.js +92 -0
- package/src-XRLOORCU.js.map +7 -0
- package/token-JLM4D6QR.js +85 -0
- package/token-JLM4D6QR.js.map +7 -0
- package/uninstall-X72YAQHZ.js +53 -0
- package/uninstall-X72YAQHZ.js.map +7 -0
- package/vlix.js +13 -0
- package/vlix.js.map +7 -0
- package/vlr.js +13 -0
- package/vlr.js.map +7 -0
- package/vlrx.js +13 -0
- package/vlrx.js.map +7 -0
- package/vlt.js +13 -0
- package/vlt.js.map +7 -0
- package/vlx.js +13 -0
- package/vlx.js.map +7 -0
- package/whoami-CMKBD6ZT.js +45 -0
- package/whoami-CMKBD6ZT.js.map +7 -0
- package/yoga.wasm +0 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
var global = globalThis;
|
|
2
|
+
import {setTimeout,clearTimeout,setImmediate,clearImmediate,setInterval,clearInterval} from "node:timers";
|
|
3
|
+
import {createRequire as _vlt_createRequire} from "node:module";
|
|
4
|
+
var require = _vlt_createRequire(import.meta.filename);
|
|
5
|
+
var __create = Object.create;
|
|
6
|
+
var __defProp = Object.defineProperty;
|
|
7
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
8
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
9
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
10
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
12
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
13
|
+
}) : x)(function(x) {
|
|
14
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
15
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
16
|
+
});
|
|
17
|
+
var __glob = (map) => (path) => {
|
|
18
|
+
var fn = map[path];
|
|
19
|
+
if (fn) return fn();
|
|
20
|
+
throw new Error("Module not found in bundle: " + path);
|
|
21
|
+
};
|
|
22
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
23
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
24
|
+
};
|
|
25
|
+
var __export = (target, all) => {
|
|
26
|
+
for (var name in all)
|
|
27
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
28
|
+
};
|
|
29
|
+
var __copyProps = (to, from, except, desc) => {
|
|
30
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
31
|
+
for (let key of __getOwnPropNames(from))
|
|
32
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
33
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
34
|
+
}
|
|
35
|
+
return to;
|
|
36
|
+
};
|
|
37
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
38
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
39
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
40
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
41
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
42
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
43
|
+
mod
|
|
44
|
+
));
|
|
45
|
+
|
|
46
|
+
export {
|
|
47
|
+
__require,
|
|
48
|
+
__glob,
|
|
49
|
+
__commonJS,
|
|
50
|
+
__export,
|
|
51
|
+
__toESM
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=chunk-VO2MAWDF.js.map
|
|
@@ -0,0 +1,511 @@
|
|
|
1
|
+
var global = globalThis;
|
|
2
|
+
import {setTimeout,clearTimeout,setImmediate,clearImmediate,setInterval,clearInterval} from "node:timers";
|
|
3
|
+
import {createRequire as _vlt_createRequire} from "node:module";
|
|
4
|
+
var require = _vlt_createRequire(import.meta.filename);
|
|
5
|
+
|
|
6
|
+
// ../../node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
7
|
+
var ANSI_BACKGROUND_OFFSET = 10;
|
|
8
|
+
var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
|
|
9
|
+
var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
|
|
10
|
+
var wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
|
|
11
|
+
var styles = {
|
|
12
|
+
modifier: {
|
|
13
|
+
reset: [0, 0],
|
|
14
|
+
// 21 isn't widely supported and 22 does the same thing
|
|
15
|
+
bold: [1, 22],
|
|
16
|
+
dim: [2, 22],
|
|
17
|
+
italic: [3, 23],
|
|
18
|
+
underline: [4, 24],
|
|
19
|
+
overline: [53, 55],
|
|
20
|
+
inverse: [7, 27],
|
|
21
|
+
hidden: [8, 28],
|
|
22
|
+
strikethrough: [9, 29]
|
|
23
|
+
},
|
|
24
|
+
color: {
|
|
25
|
+
black: [30, 39],
|
|
26
|
+
red: [31, 39],
|
|
27
|
+
green: [32, 39],
|
|
28
|
+
yellow: [33, 39],
|
|
29
|
+
blue: [34, 39],
|
|
30
|
+
magenta: [35, 39],
|
|
31
|
+
cyan: [36, 39],
|
|
32
|
+
white: [37, 39],
|
|
33
|
+
// Bright color
|
|
34
|
+
blackBright: [90, 39],
|
|
35
|
+
gray: [90, 39],
|
|
36
|
+
// Alias of `blackBright`
|
|
37
|
+
grey: [90, 39],
|
|
38
|
+
// Alias of `blackBright`
|
|
39
|
+
redBright: [91, 39],
|
|
40
|
+
greenBright: [92, 39],
|
|
41
|
+
yellowBright: [93, 39],
|
|
42
|
+
blueBright: [94, 39],
|
|
43
|
+
magentaBright: [95, 39],
|
|
44
|
+
cyanBright: [96, 39],
|
|
45
|
+
whiteBright: [97, 39]
|
|
46
|
+
},
|
|
47
|
+
bgColor: {
|
|
48
|
+
bgBlack: [40, 49],
|
|
49
|
+
bgRed: [41, 49],
|
|
50
|
+
bgGreen: [42, 49],
|
|
51
|
+
bgYellow: [43, 49],
|
|
52
|
+
bgBlue: [44, 49],
|
|
53
|
+
bgMagenta: [45, 49],
|
|
54
|
+
bgCyan: [46, 49],
|
|
55
|
+
bgWhite: [47, 49],
|
|
56
|
+
// Bright color
|
|
57
|
+
bgBlackBright: [100, 49],
|
|
58
|
+
bgGray: [100, 49],
|
|
59
|
+
// Alias of `bgBlackBright`
|
|
60
|
+
bgGrey: [100, 49],
|
|
61
|
+
// Alias of `bgBlackBright`
|
|
62
|
+
bgRedBright: [101, 49],
|
|
63
|
+
bgGreenBright: [102, 49],
|
|
64
|
+
bgYellowBright: [103, 49],
|
|
65
|
+
bgBlueBright: [104, 49],
|
|
66
|
+
bgMagentaBright: [105, 49],
|
|
67
|
+
bgCyanBright: [106, 49],
|
|
68
|
+
bgWhiteBright: [107, 49]
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
var modifierNames = Object.keys(styles.modifier);
|
|
72
|
+
var foregroundColorNames = Object.keys(styles.color);
|
|
73
|
+
var backgroundColorNames = Object.keys(styles.bgColor);
|
|
74
|
+
var colorNames = [...foregroundColorNames, ...backgroundColorNames];
|
|
75
|
+
function assembleStyles() {
|
|
76
|
+
const codes = /* @__PURE__ */ new Map();
|
|
77
|
+
for (const [groupName, group] of Object.entries(styles)) {
|
|
78
|
+
for (const [styleName, style] of Object.entries(group)) {
|
|
79
|
+
styles[styleName] = {
|
|
80
|
+
open: `\x1B[${style[0]}m`,
|
|
81
|
+
close: `\x1B[${style[1]}m`
|
|
82
|
+
};
|
|
83
|
+
group[styleName] = styles[styleName];
|
|
84
|
+
codes.set(style[0], style[1]);
|
|
85
|
+
}
|
|
86
|
+
Object.defineProperty(styles, groupName, {
|
|
87
|
+
value: group,
|
|
88
|
+
enumerable: false
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
Object.defineProperty(styles, "codes", {
|
|
92
|
+
value: codes,
|
|
93
|
+
enumerable: false
|
|
94
|
+
});
|
|
95
|
+
styles.color.close = "\x1B[39m";
|
|
96
|
+
styles.bgColor.close = "\x1B[49m";
|
|
97
|
+
styles.color.ansi = wrapAnsi16();
|
|
98
|
+
styles.color.ansi256 = wrapAnsi256();
|
|
99
|
+
styles.color.ansi16m = wrapAnsi16m();
|
|
100
|
+
styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
|
|
101
|
+
styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
|
|
102
|
+
styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
|
|
103
|
+
Object.defineProperties(styles, {
|
|
104
|
+
rgbToAnsi256: {
|
|
105
|
+
value(red, green, blue) {
|
|
106
|
+
if (red === green && green === blue) {
|
|
107
|
+
if (red < 8) {
|
|
108
|
+
return 16;
|
|
109
|
+
}
|
|
110
|
+
if (red > 248) {
|
|
111
|
+
return 231;
|
|
112
|
+
}
|
|
113
|
+
return Math.round((red - 8) / 247 * 24) + 232;
|
|
114
|
+
}
|
|
115
|
+
return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
|
|
116
|
+
},
|
|
117
|
+
enumerable: false
|
|
118
|
+
},
|
|
119
|
+
hexToRgb: {
|
|
120
|
+
value(hex) {
|
|
121
|
+
const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
|
|
122
|
+
if (!matches) {
|
|
123
|
+
return [0, 0, 0];
|
|
124
|
+
}
|
|
125
|
+
let [colorString] = matches;
|
|
126
|
+
if (colorString.length === 3) {
|
|
127
|
+
colorString = [...colorString].map((character) => character + character).join("");
|
|
128
|
+
}
|
|
129
|
+
const integer = Number.parseInt(colorString, 16);
|
|
130
|
+
return [
|
|
131
|
+
/* eslint-disable no-bitwise */
|
|
132
|
+
integer >> 16 & 255,
|
|
133
|
+
integer >> 8 & 255,
|
|
134
|
+
integer & 255
|
|
135
|
+
/* eslint-enable no-bitwise */
|
|
136
|
+
];
|
|
137
|
+
},
|
|
138
|
+
enumerable: false
|
|
139
|
+
},
|
|
140
|
+
hexToAnsi256: {
|
|
141
|
+
value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
|
|
142
|
+
enumerable: false
|
|
143
|
+
},
|
|
144
|
+
ansi256ToAnsi: {
|
|
145
|
+
value(code) {
|
|
146
|
+
if (code < 8) {
|
|
147
|
+
return 30 + code;
|
|
148
|
+
}
|
|
149
|
+
if (code < 16) {
|
|
150
|
+
return 90 + (code - 8);
|
|
151
|
+
}
|
|
152
|
+
let red;
|
|
153
|
+
let green;
|
|
154
|
+
let blue;
|
|
155
|
+
if (code >= 232) {
|
|
156
|
+
red = ((code - 232) * 10 + 8) / 255;
|
|
157
|
+
green = red;
|
|
158
|
+
blue = red;
|
|
159
|
+
} else {
|
|
160
|
+
code -= 16;
|
|
161
|
+
const remainder = code % 36;
|
|
162
|
+
red = Math.floor(code / 36) / 5;
|
|
163
|
+
green = Math.floor(remainder / 6) / 5;
|
|
164
|
+
blue = remainder % 6 / 5;
|
|
165
|
+
}
|
|
166
|
+
const value = Math.max(red, green, blue) * 2;
|
|
167
|
+
if (value === 0) {
|
|
168
|
+
return 30;
|
|
169
|
+
}
|
|
170
|
+
let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
|
|
171
|
+
if (value === 2) {
|
|
172
|
+
result += 60;
|
|
173
|
+
}
|
|
174
|
+
return result;
|
|
175
|
+
},
|
|
176
|
+
enumerable: false
|
|
177
|
+
},
|
|
178
|
+
rgbToAnsi: {
|
|
179
|
+
value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
|
|
180
|
+
enumerable: false
|
|
181
|
+
},
|
|
182
|
+
hexToAnsi: {
|
|
183
|
+
value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
|
|
184
|
+
enumerable: false
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
return styles;
|
|
188
|
+
}
|
|
189
|
+
var ansiStyles = assembleStyles();
|
|
190
|
+
var ansi_styles_default = ansiStyles;
|
|
191
|
+
|
|
192
|
+
// ../../node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/vendor/supports-color/index.js
|
|
193
|
+
import process from "node:process";
|
|
194
|
+
import os from "node:os";
|
|
195
|
+
import tty from "node:tty";
|
|
196
|
+
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process.argv) {
|
|
197
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
198
|
+
const position = argv.indexOf(prefix + flag);
|
|
199
|
+
const terminatorPosition = argv.indexOf("--");
|
|
200
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
201
|
+
}
|
|
202
|
+
var { env } = process;
|
|
203
|
+
var flagForceColor;
|
|
204
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
205
|
+
flagForceColor = 0;
|
|
206
|
+
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
207
|
+
flagForceColor = 1;
|
|
208
|
+
}
|
|
209
|
+
function envForceColor() {
|
|
210
|
+
if ("FORCE_COLOR" in env) {
|
|
211
|
+
if (env.FORCE_COLOR === "true") {
|
|
212
|
+
return 1;
|
|
213
|
+
}
|
|
214
|
+
if (env.FORCE_COLOR === "false") {
|
|
215
|
+
return 0;
|
|
216
|
+
}
|
|
217
|
+
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
function translateLevel(level) {
|
|
221
|
+
if (level === 0) {
|
|
222
|
+
return false;
|
|
223
|
+
}
|
|
224
|
+
return {
|
|
225
|
+
level,
|
|
226
|
+
hasBasic: true,
|
|
227
|
+
has256: level >= 2,
|
|
228
|
+
has16m: level >= 3
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
232
|
+
const noFlagForceColor = envForceColor();
|
|
233
|
+
if (noFlagForceColor !== void 0) {
|
|
234
|
+
flagForceColor = noFlagForceColor;
|
|
235
|
+
}
|
|
236
|
+
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
237
|
+
if (forceColor === 0) {
|
|
238
|
+
return 0;
|
|
239
|
+
}
|
|
240
|
+
if (sniffFlags) {
|
|
241
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
242
|
+
return 3;
|
|
243
|
+
}
|
|
244
|
+
if (hasFlag("color=256")) {
|
|
245
|
+
return 2;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
if ("TF_BUILD" in env && "AGENT_NAME" in env) {
|
|
249
|
+
return 1;
|
|
250
|
+
}
|
|
251
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
252
|
+
return 0;
|
|
253
|
+
}
|
|
254
|
+
const min = forceColor || 0;
|
|
255
|
+
if (env.TERM === "dumb") {
|
|
256
|
+
return min;
|
|
257
|
+
}
|
|
258
|
+
if (process.platform === "win32") {
|
|
259
|
+
const osRelease = os.release().split(".");
|
|
260
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
261
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
262
|
+
}
|
|
263
|
+
return 1;
|
|
264
|
+
}
|
|
265
|
+
if ("CI" in env) {
|
|
266
|
+
if ("GITHUB_ACTIONS" in env || "GITEA_ACTIONS" in env) {
|
|
267
|
+
return 3;
|
|
268
|
+
}
|
|
269
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
270
|
+
return 1;
|
|
271
|
+
}
|
|
272
|
+
return min;
|
|
273
|
+
}
|
|
274
|
+
if ("TEAMCITY_VERSION" in env) {
|
|
275
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
276
|
+
}
|
|
277
|
+
if (env.COLORTERM === "truecolor") {
|
|
278
|
+
return 3;
|
|
279
|
+
}
|
|
280
|
+
if (env.TERM === "xterm-kitty") {
|
|
281
|
+
return 3;
|
|
282
|
+
}
|
|
283
|
+
if ("TERM_PROGRAM" in env) {
|
|
284
|
+
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
285
|
+
switch (env.TERM_PROGRAM) {
|
|
286
|
+
case "iTerm.app": {
|
|
287
|
+
return version >= 3 ? 3 : 2;
|
|
288
|
+
}
|
|
289
|
+
case "Apple_Terminal": {
|
|
290
|
+
return 2;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
|
295
|
+
return 2;
|
|
296
|
+
}
|
|
297
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
298
|
+
return 1;
|
|
299
|
+
}
|
|
300
|
+
if ("COLORTERM" in env) {
|
|
301
|
+
return 1;
|
|
302
|
+
}
|
|
303
|
+
return min;
|
|
304
|
+
}
|
|
305
|
+
function createSupportsColor(stream, options = {}) {
|
|
306
|
+
const level = _supportsColor(stream, {
|
|
307
|
+
streamIsTTY: stream && stream.isTTY,
|
|
308
|
+
...options
|
|
309
|
+
});
|
|
310
|
+
return translateLevel(level);
|
|
311
|
+
}
|
|
312
|
+
var supportsColor = {
|
|
313
|
+
stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
|
|
314
|
+
stderr: createSupportsColor({ isTTY: tty.isatty(2) })
|
|
315
|
+
};
|
|
316
|
+
var supports_color_default = supportsColor;
|
|
317
|
+
|
|
318
|
+
// ../../node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/utilities.js
|
|
319
|
+
function stringReplaceAll(string, substring, replacer) {
|
|
320
|
+
let index = string.indexOf(substring);
|
|
321
|
+
if (index === -1) {
|
|
322
|
+
return string;
|
|
323
|
+
}
|
|
324
|
+
const substringLength = substring.length;
|
|
325
|
+
let endIndex = 0;
|
|
326
|
+
let returnValue = "";
|
|
327
|
+
do {
|
|
328
|
+
returnValue += string.slice(endIndex, index) + substring + replacer;
|
|
329
|
+
endIndex = index + substringLength;
|
|
330
|
+
index = string.indexOf(substring, endIndex);
|
|
331
|
+
} while (index !== -1);
|
|
332
|
+
returnValue += string.slice(endIndex);
|
|
333
|
+
return returnValue;
|
|
334
|
+
}
|
|
335
|
+
function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
336
|
+
let endIndex = 0;
|
|
337
|
+
let returnValue = "";
|
|
338
|
+
do {
|
|
339
|
+
const gotCR = string[index - 1] === "\r";
|
|
340
|
+
returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
|
|
341
|
+
endIndex = index + 1;
|
|
342
|
+
index = string.indexOf("\n", endIndex);
|
|
343
|
+
} while (index !== -1);
|
|
344
|
+
returnValue += string.slice(endIndex);
|
|
345
|
+
return returnValue;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
// ../../node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/index.js
|
|
349
|
+
var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default;
|
|
350
|
+
var GENERATOR = Symbol("GENERATOR");
|
|
351
|
+
var STYLER = Symbol("STYLER");
|
|
352
|
+
var IS_EMPTY = Symbol("IS_EMPTY");
|
|
353
|
+
var levelMapping = [
|
|
354
|
+
"ansi",
|
|
355
|
+
"ansi",
|
|
356
|
+
"ansi256",
|
|
357
|
+
"ansi16m"
|
|
358
|
+
];
|
|
359
|
+
var styles2 = /* @__PURE__ */ Object.create(null);
|
|
360
|
+
var applyOptions = (object, options = {}) => {
|
|
361
|
+
if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
|
|
362
|
+
throw new Error("The `level` option should be an integer from 0 to 3");
|
|
363
|
+
}
|
|
364
|
+
const colorLevel = stdoutColor ? stdoutColor.level : 0;
|
|
365
|
+
object.level = options.level === void 0 ? colorLevel : options.level;
|
|
366
|
+
};
|
|
367
|
+
var Chalk = class {
|
|
368
|
+
constructor(options) {
|
|
369
|
+
return chalkFactory(options);
|
|
370
|
+
}
|
|
371
|
+
};
|
|
372
|
+
var chalkFactory = (options) => {
|
|
373
|
+
const chalk2 = (...strings) => strings.join(" ");
|
|
374
|
+
applyOptions(chalk2, options);
|
|
375
|
+
Object.setPrototypeOf(chalk2, createChalk.prototype);
|
|
376
|
+
return chalk2;
|
|
377
|
+
};
|
|
378
|
+
function createChalk(options) {
|
|
379
|
+
return chalkFactory(options);
|
|
380
|
+
}
|
|
381
|
+
Object.setPrototypeOf(createChalk.prototype, Function.prototype);
|
|
382
|
+
for (const [styleName, style] of Object.entries(ansi_styles_default)) {
|
|
383
|
+
styles2[styleName] = {
|
|
384
|
+
get() {
|
|
385
|
+
const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
|
|
386
|
+
Object.defineProperty(this, styleName, { value: builder });
|
|
387
|
+
return builder;
|
|
388
|
+
}
|
|
389
|
+
};
|
|
390
|
+
}
|
|
391
|
+
styles2.visible = {
|
|
392
|
+
get() {
|
|
393
|
+
const builder = createBuilder(this, this[STYLER], true);
|
|
394
|
+
Object.defineProperty(this, "visible", { value: builder });
|
|
395
|
+
return builder;
|
|
396
|
+
}
|
|
397
|
+
};
|
|
398
|
+
var getModelAnsi = (model, level, type, ...arguments_) => {
|
|
399
|
+
if (model === "rgb") {
|
|
400
|
+
if (level === "ansi16m") {
|
|
401
|
+
return ansi_styles_default[type].ansi16m(...arguments_);
|
|
402
|
+
}
|
|
403
|
+
if (level === "ansi256") {
|
|
404
|
+
return ansi_styles_default[type].ansi256(ansi_styles_default.rgbToAnsi256(...arguments_));
|
|
405
|
+
}
|
|
406
|
+
return ansi_styles_default[type].ansi(ansi_styles_default.rgbToAnsi(...arguments_));
|
|
407
|
+
}
|
|
408
|
+
if (model === "hex") {
|
|
409
|
+
return getModelAnsi("rgb", level, type, ...ansi_styles_default.hexToRgb(...arguments_));
|
|
410
|
+
}
|
|
411
|
+
return ansi_styles_default[type][model](...arguments_);
|
|
412
|
+
};
|
|
413
|
+
var usedModels = ["rgb", "hex", "ansi256"];
|
|
414
|
+
for (const model of usedModels) {
|
|
415
|
+
styles2[model] = {
|
|
416
|
+
get() {
|
|
417
|
+
const { level } = this;
|
|
418
|
+
return function(...arguments_) {
|
|
419
|
+
const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansi_styles_default.color.close, this[STYLER]);
|
|
420
|
+
return createBuilder(this, styler, this[IS_EMPTY]);
|
|
421
|
+
};
|
|
422
|
+
}
|
|
423
|
+
};
|
|
424
|
+
const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
|
|
425
|
+
styles2[bgModel] = {
|
|
426
|
+
get() {
|
|
427
|
+
const { level } = this;
|
|
428
|
+
return function(...arguments_) {
|
|
429
|
+
const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansi_styles_default.bgColor.close, this[STYLER]);
|
|
430
|
+
return createBuilder(this, styler, this[IS_EMPTY]);
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
};
|
|
434
|
+
}
|
|
435
|
+
var proto = Object.defineProperties(() => {
|
|
436
|
+
}, {
|
|
437
|
+
...styles2,
|
|
438
|
+
level: {
|
|
439
|
+
enumerable: true,
|
|
440
|
+
get() {
|
|
441
|
+
return this[GENERATOR].level;
|
|
442
|
+
},
|
|
443
|
+
set(level) {
|
|
444
|
+
this[GENERATOR].level = level;
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
});
|
|
448
|
+
var createStyler = (open, close, parent) => {
|
|
449
|
+
let openAll;
|
|
450
|
+
let closeAll;
|
|
451
|
+
if (parent === void 0) {
|
|
452
|
+
openAll = open;
|
|
453
|
+
closeAll = close;
|
|
454
|
+
} else {
|
|
455
|
+
openAll = parent.openAll + open;
|
|
456
|
+
closeAll = close + parent.closeAll;
|
|
457
|
+
}
|
|
458
|
+
return {
|
|
459
|
+
open,
|
|
460
|
+
close,
|
|
461
|
+
openAll,
|
|
462
|
+
closeAll,
|
|
463
|
+
parent
|
|
464
|
+
};
|
|
465
|
+
};
|
|
466
|
+
var createBuilder = (self, _styler, _isEmpty) => {
|
|
467
|
+
const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
|
|
468
|
+
Object.setPrototypeOf(builder, proto);
|
|
469
|
+
builder[GENERATOR] = self;
|
|
470
|
+
builder[STYLER] = _styler;
|
|
471
|
+
builder[IS_EMPTY] = _isEmpty;
|
|
472
|
+
return builder;
|
|
473
|
+
};
|
|
474
|
+
var applyStyle = (self, string) => {
|
|
475
|
+
if (self.level <= 0 || !string) {
|
|
476
|
+
return self[IS_EMPTY] ? "" : string;
|
|
477
|
+
}
|
|
478
|
+
let styler = self[STYLER];
|
|
479
|
+
if (styler === void 0) {
|
|
480
|
+
return string;
|
|
481
|
+
}
|
|
482
|
+
const { openAll, closeAll } = styler;
|
|
483
|
+
if (string.includes("\x1B")) {
|
|
484
|
+
while (styler !== void 0) {
|
|
485
|
+
string = stringReplaceAll(string, styler.close, styler.open);
|
|
486
|
+
styler = styler.parent;
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
const lfIndex = string.indexOf("\n");
|
|
490
|
+
if (lfIndex !== -1) {
|
|
491
|
+
string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
|
|
492
|
+
}
|
|
493
|
+
return openAll + string + closeAll;
|
|
494
|
+
};
|
|
495
|
+
Object.defineProperties(createChalk.prototype, styles2);
|
|
496
|
+
var chalk = createChalk();
|
|
497
|
+
var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
498
|
+
var source_default = chalk;
|
|
499
|
+
|
|
500
|
+
export {
|
|
501
|
+
modifierNames,
|
|
502
|
+
foregroundColorNames,
|
|
503
|
+
backgroundColorNames,
|
|
504
|
+
colorNames,
|
|
505
|
+
stdoutColor,
|
|
506
|
+
stderrColor,
|
|
507
|
+
Chalk,
|
|
508
|
+
chalkStderr,
|
|
509
|
+
source_default
|
|
510
|
+
};
|
|
511
|
+
//# sourceMappingURL=chunk-XCC42LF5.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/vendor/ansi-styles/index.js", "../../../node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/vendor/supports-color/index.js", "../../../node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/utilities.js", "../../../node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/index.js"],
|
|
4
|
+
"sourcesContent": ["const ANSI_BACKGROUND_OFFSET = 10;\n\nconst wrapAnsi16 = (offset = 0) => code => `\\u001B[${code + offset}m`;\n\nconst wrapAnsi256 = (offset = 0) => code => `\\u001B[${38 + offset};5;${code}m`;\n\nconst wrapAnsi16m = (offset = 0) => (red, green, blue) => `\\u001B[${38 + offset};2;${red};${green};${blue}m`;\n\nconst styles = {\n\tmodifier: {\n\t\treset: [0, 0],\n\t\t// 21 isn't widely supported and 22 does the same thing\n\t\tbold: [1, 22],\n\t\tdim: [2, 22],\n\t\titalic: [3, 23],\n\t\tunderline: [4, 24],\n\t\toverline: [53, 55],\n\t\tinverse: [7, 27],\n\t\thidden: [8, 28],\n\t\tstrikethrough: [9, 29],\n\t},\n\tcolor: {\n\t\tblack: [30, 39],\n\t\tred: [31, 39],\n\t\tgreen: [32, 39],\n\t\tyellow: [33, 39],\n\t\tblue: [34, 39],\n\t\tmagenta: [35, 39],\n\t\tcyan: [36, 39],\n\t\twhite: [37, 39],\n\n\t\t// Bright color\n\t\tblackBright: [90, 39],\n\t\tgray: [90, 39], // Alias of `blackBright`\n\t\tgrey: [90, 39], // Alias of `blackBright`\n\t\tredBright: [91, 39],\n\t\tgreenBright: [92, 39],\n\t\tyellowBright: [93, 39],\n\t\tblueBright: [94, 39],\n\t\tmagentaBright: [95, 39],\n\t\tcyanBright: [96, 39],\n\t\twhiteBright: [97, 39],\n\t},\n\tbgColor: {\n\t\tbgBlack: [40, 49],\n\t\tbgRed: [41, 49],\n\t\tbgGreen: [42, 49],\n\t\tbgYellow: [43, 49],\n\t\tbgBlue: [44, 49],\n\t\tbgMagenta: [45, 49],\n\t\tbgCyan: [46, 49],\n\t\tbgWhite: [47, 49],\n\n\t\t// Bright color\n\t\tbgBlackBright: [100, 49],\n\t\tbgGray: [100, 49], // Alias of `bgBlackBright`\n\t\tbgGrey: [100, 49], // Alias of `bgBlackBright`\n\t\tbgRedBright: [101, 49],\n\t\tbgGreenBright: [102, 49],\n\t\tbgYellowBright: [103, 49],\n\t\tbgBlueBright: [104, 49],\n\t\tbgMagentaBright: [105, 49],\n\t\tbgCyanBright: [106, 49],\n\t\tbgWhiteBright: [107, 49],\n\t},\n};\n\nexport const modifierNames = Object.keys(styles.modifier);\nexport const foregroundColorNames = Object.keys(styles.color);\nexport const backgroundColorNames = Object.keys(styles.bgColor);\nexport const colorNames = [...foregroundColorNames, ...backgroundColorNames];\n\nfunction assembleStyles() {\n\tconst codes = new Map();\n\n\tfor (const [groupName, group] of Object.entries(styles)) {\n\t\tfor (const [styleName, style] of Object.entries(group)) {\n\t\t\tstyles[styleName] = {\n\t\t\t\topen: `\\u001B[${style[0]}m`,\n\t\t\t\tclose: `\\u001B[${style[1]}m`,\n\t\t\t};\n\n\t\t\tgroup[styleName] = styles[styleName];\n\n\t\t\tcodes.set(style[0], style[1]);\n\t\t}\n\n\t\tObject.defineProperty(styles, groupName, {\n\t\t\tvalue: group,\n\t\t\tenumerable: false,\n\t\t});\n\t}\n\n\tObject.defineProperty(styles, 'codes', {\n\t\tvalue: codes,\n\t\tenumerable: false,\n\t});\n\n\tstyles.color.close = '\\u001B[39m';\n\tstyles.bgColor.close = '\\u001B[49m';\n\n\tstyles.color.ansi = wrapAnsi16();\n\tstyles.color.ansi256 = wrapAnsi256();\n\tstyles.color.ansi16m = wrapAnsi16m();\n\tstyles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);\n\tstyles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);\n\tstyles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);\n\n\t// From https://github.com/Qix-/color-convert/blob/3f0e0d4e92e235796ccb17f6e85c72094a651f49/conversions.js\n\tObject.defineProperties(styles, {\n\t\trgbToAnsi256: {\n\t\t\tvalue(red, green, blue) {\n\t\t\t\t// We use the extended greyscale palette here, with the exception of\n\t\t\t\t// black and white. normal palette only has 4 greyscale shades.\n\t\t\t\tif (red === green && green === blue) {\n\t\t\t\t\tif (red < 8) {\n\t\t\t\t\t\treturn 16;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (red > 248) {\n\t\t\t\t\t\treturn 231;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn Math.round(((red - 8) / 247) * 24) + 232;\n\t\t\t\t}\n\n\t\t\t\treturn 16\n\t\t\t\t\t+ (36 * Math.round(red / 255 * 5))\n\t\t\t\t\t+ (6 * Math.round(green / 255 * 5))\n\t\t\t\t\t+ Math.round(blue / 255 * 5);\n\t\t\t},\n\t\t\tenumerable: false,\n\t\t},\n\t\thexToRgb: {\n\t\t\tvalue(hex) {\n\t\t\t\tconst matches = /[a-f\\d]{6}|[a-f\\d]{3}/i.exec(hex.toString(16));\n\t\t\t\tif (!matches) {\n\t\t\t\t\treturn [0, 0, 0];\n\t\t\t\t}\n\n\t\t\t\tlet [colorString] = matches;\n\n\t\t\t\tif (colorString.length === 3) {\n\t\t\t\t\tcolorString = [...colorString].map(character => character + character).join('');\n\t\t\t\t}\n\n\t\t\t\tconst integer = Number.parseInt(colorString, 16);\n\n\t\t\t\treturn [\n\t\t\t\t\t/* eslint-disable no-bitwise */\n\t\t\t\t\t(integer >> 16) & 0xFF,\n\t\t\t\t\t(integer >> 8) & 0xFF,\n\t\t\t\t\tinteger & 0xFF,\n\t\t\t\t\t/* eslint-enable no-bitwise */\n\t\t\t\t];\n\t\t\t},\n\t\t\tenumerable: false,\n\t\t},\n\t\thexToAnsi256: {\n\t\t\tvalue: hex => styles.rgbToAnsi256(...styles.hexToRgb(hex)),\n\t\t\tenumerable: false,\n\t\t},\n\t\tansi256ToAnsi: {\n\t\t\tvalue(code) {\n\t\t\t\tif (code < 8) {\n\t\t\t\t\treturn 30 + code;\n\t\t\t\t}\n\n\t\t\t\tif (code < 16) {\n\t\t\t\t\treturn 90 + (code - 8);\n\t\t\t\t}\n\n\t\t\t\tlet red;\n\t\t\t\tlet green;\n\t\t\t\tlet blue;\n\n\t\t\t\tif (code >= 232) {\n\t\t\t\t\tred = (((code - 232) * 10) + 8) / 255;\n\t\t\t\t\tgreen = red;\n\t\t\t\t\tblue = red;\n\t\t\t\t} else {\n\t\t\t\t\tcode -= 16;\n\n\t\t\t\t\tconst remainder = code % 36;\n\n\t\t\t\t\tred = Math.floor(code / 36) / 5;\n\t\t\t\t\tgreen = Math.floor(remainder / 6) / 5;\n\t\t\t\t\tblue = (remainder % 6) / 5;\n\t\t\t\t}\n\n\t\t\t\tconst value = Math.max(red, green, blue) * 2;\n\n\t\t\t\tif (value === 0) {\n\t\t\t\t\treturn 30;\n\t\t\t\t}\n\n\t\t\t\t// eslint-disable-next-line no-bitwise\n\t\t\t\tlet result = 30 + ((Math.round(blue) << 2) | (Math.round(green) << 1) | Math.round(red));\n\n\t\t\t\tif (value === 2) {\n\t\t\t\t\tresult += 60;\n\t\t\t\t}\n\n\t\t\t\treturn result;\n\t\t\t},\n\t\t\tenumerable: false,\n\t\t},\n\t\trgbToAnsi: {\n\t\t\tvalue: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),\n\t\t\tenumerable: false,\n\t\t},\n\t\thexToAnsi: {\n\t\t\tvalue: hex => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),\n\t\t\tenumerable: false,\n\t\t},\n\t});\n\n\treturn styles;\n}\n\nconst ansiStyles = assembleStyles();\n\nexport default ansiStyles;\n", "import process from 'node:process';\nimport os from 'node:os';\nimport tty from 'node:tty';\n\n// From: https://github.com/sindresorhus/has-flag/blob/main/index.js\n/// function hasFlag(flag, argv = globalThis.Deno?.args ?? process.argv) {\nfunction hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process.argv) {\n\tconst prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');\n\tconst position = argv.indexOf(prefix + flag);\n\tconst terminatorPosition = argv.indexOf('--');\n\treturn position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);\n}\n\nconst {env} = process;\n\nlet flagForceColor;\nif (\n\thasFlag('no-color')\n\t|| hasFlag('no-colors')\n\t|| hasFlag('color=false')\n\t|| hasFlag('color=never')\n) {\n\tflagForceColor = 0;\n} else if (\n\thasFlag('color')\n\t|| hasFlag('colors')\n\t|| hasFlag('color=true')\n\t|| hasFlag('color=always')\n) {\n\tflagForceColor = 1;\n}\n\nfunction envForceColor() {\n\tif ('FORCE_COLOR' in env) {\n\t\tif (env.FORCE_COLOR === 'true') {\n\t\t\treturn 1;\n\t\t}\n\n\t\tif (env.FORCE_COLOR === 'false') {\n\t\t\treturn 0;\n\t\t}\n\n\t\treturn env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);\n\t}\n}\n\nfunction translateLevel(level) {\n\tif (level === 0) {\n\t\treturn false;\n\t}\n\n\treturn {\n\t\tlevel,\n\t\thasBasic: true,\n\t\thas256: level >= 2,\n\t\thas16m: level >= 3,\n\t};\n}\n\nfunction _supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) {\n\tconst noFlagForceColor = envForceColor();\n\tif (noFlagForceColor !== undefined) {\n\t\tflagForceColor = noFlagForceColor;\n\t}\n\n\tconst forceColor = sniffFlags ? flagForceColor : noFlagForceColor;\n\n\tif (forceColor === 0) {\n\t\treturn 0;\n\t}\n\n\tif (sniffFlags) {\n\t\tif (hasFlag('color=16m')\n\t\t\t|| hasFlag('color=full')\n\t\t\t|| hasFlag('color=truecolor')) {\n\t\t\treturn 3;\n\t\t}\n\n\t\tif (hasFlag('color=256')) {\n\t\t\treturn 2;\n\t\t}\n\t}\n\n\t// Check for Azure DevOps pipelines.\n\t// Has to be above the `!streamIsTTY` check.\n\tif ('TF_BUILD' in env && 'AGENT_NAME' in env) {\n\t\treturn 1;\n\t}\n\n\tif (haveStream && !streamIsTTY && forceColor === undefined) {\n\t\treturn 0;\n\t}\n\n\tconst min = forceColor || 0;\n\n\tif (env.TERM === 'dumb') {\n\t\treturn min;\n\t}\n\n\tif (process.platform === 'win32') {\n\t\t// Windows 10 build 10586 is the first Windows release that supports 256 colors.\n\t\t// Windows 10 build 14931 is the first release that supports 16m/TrueColor.\n\t\tconst osRelease = os.release().split('.');\n\t\tif (\n\t\t\tNumber(osRelease[0]) >= 10\n\t\t\t&& Number(osRelease[2]) >= 10_586\n\t\t) {\n\t\t\treturn Number(osRelease[2]) >= 14_931 ? 3 : 2;\n\t\t}\n\n\t\treturn 1;\n\t}\n\n\tif ('CI' in env) {\n\t\tif ('GITHUB_ACTIONS' in env || 'GITEA_ACTIONS' in env) {\n\t\t\treturn 3;\n\t\t}\n\n\t\tif (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'BUILDKITE', 'DRONE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {\n\t\t\treturn 1;\n\t\t}\n\n\t\treturn min;\n\t}\n\n\tif ('TEAMCITY_VERSION' in env) {\n\t\treturn /^(9\\.(0*[1-9]\\d*)\\.|\\d{2,}\\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;\n\t}\n\n\tif (env.COLORTERM === 'truecolor') {\n\t\treturn 3;\n\t}\n\n\tif (env.TERM === 'xterm-kitty') {\n\t\treturn 3;\n\t}\n\n\tif ('TERM_PROGRAM' in env) {\n\t\tconst version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);\n\n\t\tswitch (env.TERM_PROGRAM) {\n\t\t\tcase 'iTerm.app': {\n\t\t\t\treturn version >= 3 ? 3 : 2;\n\t\t\t}\n\n\t\t\tcase 'Apple_Terminal': {\n\t\t\t\treturn 2;\n\t\t\t}\n\t\t\t// No default\n\t\t}\n\t}\n\n\tif (/-256(color)?$/i.test(env.TERM)) {\n\t\treturn 2;\n\t}\n\n\tif (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {\n\t\treturn 1;\n\t}\n\n\tif ('COLORTERM' in env) {\n\t\treturn 1;\n\t}\n\n\treturn min;\n}\n\nexport function createSupportsColor(stream, options = {}) {\n\tconst level = _supportsColor(stream, {\n\t\tstreamIsTTY: stream && stream.isTTY,\n\t\t...options,\n\t});\n\n\treturn translateLevel(level);\n}\n\nconst supportsColor = {\n\tstdout: createSupportsColor({isTTY: tty.isatty(1)}),\n\tstderr: createSupportsColor({isTTY: tty.isatty(2)}),\n};\n\nexport default supportsColor;\n", "// TODO: When targeting Node.js 16, use `String.prototype.replaceAll`.\nexport function stringReplaceAll(string, substring, replacer) {\n\tlet index = string.indexOf(substring);\n\tif (index === -1) {\n\t\treturn string;\n\t}\n\n\tconst substringLength = substring.length;\n\tlet endIndex = 0;\n\tlet returnValue = '';\n\tdo {\n\t\treturnValue += string.slice(endIndex, index) + substring + replacer;\n\t\tendIndex = index + substringLength;\n\t\tindex = string.indexOf(substring, endIndex);\n\t} while (index !== -1);\n\n\treturnValue += string.slice(endIndex);\n\treturn returnValue;\n}\n\nexport function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {\n\tlet endIndex = 0;\n\tlet returnValue = '';\n\tdo {\n\t\tconst gotCR = string[index - 1] === '\\r';\n\t\treturnValue += string.slice(endIndex, (gotCR ? index - 1 : index)) + prefix + (gotCR ? '\\r\\n' : '\\n') + postfix;\n\t\tendIndex = index + 1;\n\t\tindex = string.indexOf('\\n', endIndex);\n\t} while (index !== -1);\n\n\treturnValue += string.slice(endIndex);\n\treturn returnValue;\n}\n", "import ansiStyles from '#ansi-styles';\nimport supportsColor from '#supports-color';\nimport { // eslint-disable-line import/order\n\tstringReplaceAll,\n\tstringEncaseCRLFWithFirstIndex,\n} from './utilities.js';\n\nconst {stdout: stdoutColor, stderr: stderrColor} = supportsColor;\n\nconst GENERATOR = Symbol('GENERATOR');\nconst STYLER = Symbol('STYLER');\nconst IS_EMPTY = Symbol('IS_EMPTY');\n\n// `supportsColor.level` \u2192 `ansiStyles.color[name]` mapping\nconst levelMapping = [\n\t'ansi',\n\t'ansi',\n\t'ansi256',\n\t'ansi16m',\n];\n\nconst styles = Object.create(null);\n\nconst applyOptions = (object, options = {}) => {\n\tif (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {\n\t\tthrow new Error('The `level` option should be an integer from 0 to 3');\n\t}\n\n\t// Detect level if not set manually\n\tconst colorLevel = stdoutColor ? stdoutColor.level : 0;\n\tobject.level = options.level === undefined ? colorLevel : options.level;\n};\n\nexport class Chalk {\n\tconstructor(options) {\n\t\t// eslint-disable-next-line no-constructor-return\n\t\treturn chalkFactory(options);\n\t}\n}\n\nconst chalkFactory = options => {\n\tconst chalk = (...strings) => strings.join(' ');\n\tapplyOptions(chalk, options);\n\n\tObject.setPrototypeOf(chalk, createChalk.prototype);\n\n\treturn chalk;\n};\n\nfunction createChalk(options) {\n\treturn chalkFactory(options);\n}\n\nObject.setPrototypeOf(createChalk.prototype, Function.prototype);\n\nfor (const [styleName, style] of Object.entries(ansiStyles)) {\n\tstyles[styleName] = {\n\t\tget() {\n\t\t\tconst builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);\n\t\t\tObject.defineProperty(this, styleName, {value: builder});\n\t\t\treturn builder;\n\t\t},\n\t};\n}\n\nstyles.visible = {\n\tget() {\n\t\tconst builder = createBuilder(this, this[STYLER], true);\n\t\tObject.defineProperty(this, 'visible', {value: builder});\n\t\treturn builder;\n\t},\n};\n\nconst getModelAnsi = (model, level, type, ...arguments_) => {\n\tif (model === 'rgb') {\n\t\tif (level === 'ansi16m') {\n\t\t\treturn ansiStyles[type].ansi16m(...arguments_);\n\t\t}\n\n\t\tif (level === 'ansi256') {\n\t\t\treturn ansiStyles[type].ansi256(ansiStyles.rgbToAnsi256(...arguments_));\n\t\t}\n\n\t\treturn ansiStyles[type].ansi(ansiStyles.rgbToAnsi(...arguments_));\n\t}\n\n\tif (model === 'hex') {\n\t\treturn getModelAnsi('rgb', level, type, ...ansiStyles.hexToRgb(...arguments_));\n\t}\n\n\treturn ansiStyles[type][model](...arguments_);\n};\n\nconst usedModels = ['rgb', 'hex', 'ansi256'];\n\nfor (const model of usedModels) {\n\tstyles[model] = {\n\t\tget() {\n\t\t\tconst {level} = this;\n\t\t\treturn function (...arguments_) {\n\t\t\t\tconst styler = createStyler(getModelAnsi(model, levelMapping[level], 'color', ...arguments_), ansiStyles.color.close, this[STYLER]);\n\t\t\t\treturn createBuilder(this, styler, this[IS_EMPTY]);\n\t\t\t};\n\t\t},\n\t};\n\n\tconst bgModel = 'bg' + model[0].toUpperCase() + model.slice(1);\n\tstyles[bgModel] = {\n\t\tget() {\n\t\t\tconst {level} = this;\n\t\t\treturn function (...arguments_) {\n\t\t\t\tconst styler = createStyler(getModelAnsi(model, levelMapping[level], 'bgColor', ...arguments_), ansiStyles.bgColor.close, this[STYLER]);\n\t\t\t\treturn createBuilder(this, styler, this[IS_EMPTY]);\n\t\t\t};\n\t\t},\n\t};\n}\n\nconst proto = Object.defineProperties(() => {}, {\n\t...styles,\n\tlevel: {\n\t\tenumerable: true,\n\t\tget() {\n\t\t\treturn this[GENERATOR].level;\n\t\t},\n\t\tset(level) {\n\t\t\tthis[GENERATOR].level = level;\n\t\t},\n\t},\n});\n\nconst createStyler = (open, close, parent) => {\n\tlet openAll;\n\tlet closeAll;\n\tif (parent === undefined) {\n\t\topenAll = open;\n\t\tcloseAll = close;\n\t} else {\n\t\topenAll = parent.openAll + open;\n\t\tcloseAll = close + parent.closeAll;\n\t}\n\n\treturn {\n\t\topen,\n\t\tclose,\n\t\topenAll,\n\t\tcloseAll,\n\t\tparent,\n\t};\n};\n\nconst createBuilder = (self, _styler, _isEmpty) => {\n\t// Single argument is hot path, implicit coercion is faster than anything\n\t// eslint-disable-next-line no-implicit-coercion\n\tconst builder = (...arguments_) => applyStyle(builder, (arguments_.length === 1) ? ('' + arguments_[0]) : arguments_.join(' '));\n\n\t// We alter the prototype because we must return a function, but there is\n\t// no way to create a function with a different prototype\n\tObject.setPrototypeOf(builder, proto);\n\n\tbuilder[GENERATOR] = self;\n\tbuilder[STYLER] = _styler;\n\tbuilder[IS_EMPTY] = _isEmpty;\n\n\treturn builder;\n};\n\nconst applyStyle = (self, string) => {\n\tif (self.level <= 0 || !string) {\n\t\treturn self[IS_EMPTY] ? '' : string;\n\t}\n\n\tlet styler = self[STYLER];\n\n\tif (styler === undefined) {\n\t\treturn string;\n\t}\n\n\tconst {openAll, closeAll} = styler;\n\tif (string.includes('\\u001B')) {\n\t\twhile (styler !== undefined) {\n\t\t\t// Replace any instances already present with a re-opening code\n\t\t\t// otherwise only the part of the string until said closing code\n\t\t\t// will be colored, and the rest will simply be 'plain'.\n\t\t\tstring = stringReplaceAll(string, styler.close, styler.open);\n\n\t\t\tstyler = styler.parent;\n\t\t}\n\t}\n\n\t// We can move both next actions out of loop, because remaining actions in loop won't have\n\t// any/visible effect on parts we add here. Close the styling before a linebreak and reopen\n\t// after next line to fix a bleed issue on macOS: https://github.com/chalk/chalk/pull/92\n\tconst lfIndex = string.indexOf('\\n');\n\tif (lfIndex !== -1) {\n\t\tstring = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);\n\t}\n\n\treturn openAll + string + closeAll;\n};\n\nObject.defineProperties(createChalk.prototype, styles);\n\nconst chalk = createChalk();\nexport const chalkStderr = createChalk({level: stderrColor ? stderrColor.level : 0});\n\nexport {\n\tmodifierNames,\n\tforegroundColorNames,\n\tbackgroundColorNames,\n\tcolorNames,\n\n\t// TODO: Remove these aliases in the next major version\n\tmodifierNames as modifiers,\n\tforegroundColorNames as foregroundColors,\n\tbackgroundColorNames as backgroundColors,\n\tcolorNames as colors,\n} from './vendor/ansi-styles/index.js';\n\nexport {\n\tstdoutColor as supportsColor,\n\tstderrColor as supportsColorStderr,\n};\n\nexport default chalk;\n"],
|
|
5
|
+
"mappings": ";;;;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