//#region ../../node_modules/.pnpm/tinyrainbow@3.0.3/node_modules/tinyrainbow/dist/index.js
var d = {
	reset: [0, 0],
	bold: [
		1,
		22,
		"\x1B[22m\x1B[1m"
	],
	dim: [
		2,
		22,
		"\x1B[22m\x1B[2m"
	],
	italic: [3, 23],
	underline: [4, 24],
	inverse: [7, 27],
	hidden: [8, 28],
	strikethrough: [9, 29],
	black: [30, 39],
	red: [31, 39],
	green: [32, 39],
	yellow: [33, 39],
	blue: [34, 39],
	magenta: [35, 39],
	cyan: [36, 39],
	white: [37, 39],
	gray: [90, 39],
	bgBlack: [40, 49],
	bgRed: [41, 49],
	bgGreen: [42, 49],
	bgYellow: [43, 49],
	bgBlue: [44, 49],
	bgMagenta: [45, 49],
	bgCyan: [46, 49],
	bgWhite: [47, 49],
	blackBright: [90, 39],
	redBright: [91, 39],
	greenBright: [92, 39],
	yellowBright: [93, 39],
	blueBright: [94, 39],
	magentaBright: [95, 39],
	cyanBright: [96, 39],
	whiteBright: [97, 39],
	bgBlackBright: [100, 49],
	bgRedBright: [101, 49],
	bgGreenBright: [102, 49],
	bgYellowBright: [103, 49],
	bgBlueBright: [104, 49],
	bgMagentaBright: [105, 49],
	bgCyanBright: [106, 49],
	bgWhiteBright: [107, 49]
};
function g(e) {
	return String(e);
}
g.open = "";
g.close = "";
function B() {
	let e = {
		isColorSupported: !1,
		reset: g
	};
	for (let n in d) e[n] = g;
	return e;
}
function h() {
	let e = typeof process != "undefined" ? process : void 0, n = (e == null ? void 0 : e.env) || {}, a = n.FORCE_TTY !== "false", i = (e == null ? void 0 : e.argv) || [];
	return !("NO_COLOR" in n || i.includes("--no-color")) && ("FORCE_COLOR" in n || i.includes("--color") || (e == null ? void 0 : e.platform) === "win32" || a && n.TERM !== "dumb" || "CI" in n) || typeof window != "undefined" && !!window.chrome;
}
function f() {
	let e = h(), n = (r, t, u, o) => {
		let l = "", s = 0;
		do
			l += r.substring(s, o) + u, s = o + t.length, o = r.indexOf(t, s);
		while (~o);
		return l + r.substring(s);
	}, a = (r, t, u = r) => {
		let o = (l) => {
			let s = String(l), b = s.indexOf(t, r.length);
			return ~b ? r + n(s, t, u, b) + t : r + s + t;
		};
		return o.open = r, o.close = t, o;
	}, i = { isColorSupported: e }, c = (r) => `\x1B[${r}m`;
	for (let r in d) {
		let t = d[r];
		i[r] = e ? a(c(t[0]), c(t[1]), t[2]) : g;
	}
	return i;
}
var C = f();

//#endregion
export { f as createColors, C as default, B as getDefaultColors, h as isSupported };