"use strict";
/* Socket Lib - Built with esbuild */
"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
  mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var symbols_builder_exports = {};
__export(symbols_builder_exports, {
  buildLoggerSymbols: () => buildLoggerSymbols,
  stripLoggerSymbols: () => stripLoggerSymbols
});
module.exports = __toCommonJS(symbols_builder_exports);
var import_is_unicode_supported = __toESM(require("../external/@socketregistry/is-unicode-supported"));
var import_string = require("../primordials/string");
var import_colors = require("./colors");
function buildLoggerSymbols(theme) {
  const supported = (0, import_is_unicode_supported.default)();
  const colors = (0, import_colors.getYoctocolors)();
  return {
    __proto__: null,
    fail: (0, import_colors.applyColor)(supported ? "\u2716" : "\xD7", theme.colors.error, colors),
    info: (0, import_colors.applyColor)(supported ? "\u2139" : "i", theme.colors.info, colors),
    progress: (0, import_colors.applyColor)(supported ? "\u2234" : ":.", theme.colors.step, colors),
    skip: (0, import_colors.applyColor)(supported ? "\u21BB" : "@", theme.colors.step, colors),
    step: (0, import_colors.applyColor)(supported ? "\u2192" : ">", theme.colors.step, colors),
    success: (0, import_colors.applyColor)(supported ? "\u2714" : "\u221A", theme.colors.success, colors),
    warn: (0, import_colors.applyColor)(supported ? "\u26A0" : "\u203C", theme.colors.warning, colors)
  };
}
function stripLoggerSymbols(text) {
  return (0, import_string.StringPrototypeReplace)(text, /^(?:[✖✗×⚠‼✔✓√ℹ→∴↻]|:.)[️\s]*/u, "");
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  buildLoggerSymbols,
  stripLoggerSymbols
});
