import { a as B } from "../../../../../_virtual/index37.js";
import f from "../../../color-convert@1.9.3/node_modules/color-convert/index.js";
(function(u) {
  const i = f, a = (t, e) => function() {
    return `\x1B[${t.apply(i, arguments) + e}m`;
  }, g = (t, e) => function() {
    const r = t.apply(i, arguments);
    return `\x1B[${38 + e};5;${r}m`;
  }, l = (t, e) => function() {
    const r = t.apply(i, arguments);
    return `\x1B[${38 + e};2;${r[0]};${r[1]};${r[2]}m`;
  };
  function m() {
    const t = /* @__PURE__ */ new Map(), e = {
      modifier: {
        reset: [0, 0],
        bold: [1, 22],
        dim: [2, 22],
        italic: [3, 23],
        underline: [4, 24],
        inverse: [7, 27],
        hidden: [8, 28],
        strikethrough: [9, 29]
      },
      color: {
        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],
        redBright: [91, 39],
        greenBright: [92, 39],
        yellowBright: [93, 39],
        blueBright: [94, 39],
        magentaBright: [95, 39],
        cyanBright: [96, 39],
        whiteBright: [97, 39]
      },
      bgColor: {
        bgBlack: [40, 49],
        bgRed: [41, 49],
        bgGreen: [42, 49],
        bgYellow: [43, 49],
        bgBlue: [44, 49],
        bgMagenta: [45, 49],
        bgCyan: [46, 49],
        bgWhite: [47, 49],
        bgBlackBright: [100, 49],
        bgRedBright: [101, 49],
        bgGreenBright: [102, 49],
        bgYellowBright: [103, 49],
        bgBlueBright: [104, 49],
        bgMagentaBright: [105, 49],
        bgCyanBright: [106, 49],
        bgWhiteBright: [107, 49]
      }
    };
    e.color.grey = e.color.gray;
    for (const o of Object.keys(e)) {
      const n = e[o];
      for (const s of Object.keys(n)) {
        const c = n[s];
        e[s] = {
          open: `\x1B[${c[0]}m`,
          close: `\x1B[${c[1]}m`
        }, n[s] = e[s], t.set(c[0], c[1]);
      }
      Object.defineProperty(e, o, {
        value: n,
        enumerable: !1
      }), Object.defineProperty(e, "codes", {
        value: t,
        enumerable: !1
      });
    }
    const r = (o) => o, b = (o, n, s) => [o, n, s];
    e.color.close = "\x1B[39m", e.bgColor.close = "\x1B[49m", e.color.ansi = {
      ansi: a(r, 0)
    }, e.color.ansi256 = {
      ansi256: g(r, 0)
    }, e.color.ansi16m = {
      rgb: l(b, 0)
    }, e.bgColor.ansi = {
      ansi: a(r, 10)
    }, e.bgColor.ansi256 = {
      ansi256: g(r, 10)
    }, e.bgColor.ansi16m = {
      rgb: l(b, 10)
    };
    for (let o of Object.keys(i)) {
      if (typeof i[o] != "object")
        continue;
      const n = i[o];
      o === "ansi16" && (o = "ansi"), "ansi16" in n && (e.color.ansi[o] = a(n.ansi16, 0), e.bgColor.ansi[o] = a(n.ansi16, 10)), "ansi256" in n && (e.color.ansi256[o] = g(n.ansi256, 0), e.bgColor.ansi256[o] = g(n.ansi256, 10)), "rgb" in n && (e.color.ansi16m[o] = l(n.rgb, 0), e.bgColor.ansi16m[o] = l(n.rgb, 10));
    }
    return e;
  }
  Object.defineProperty(u, "exports", {
    enumerable: !0,
    get: m
  });
})(B);
//# sourceMappingURL=index.js.map
