"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
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 __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var utils_exports = {};
__export(utils_exports, {
  fontConfig: () => fontConfig,
  valueFormatter: () => valueFormatter
});
module.exports = __toCommonJS(utils_exports);
const valueFormatter = (value) => {
  const breakpoints = [
    { value: 1e6, unit: "M" },
    { value: 1e3, unit: "K" },
    { value: 1, unit: "" }
  ];
  const formattedValue = typeof value === "number" ? value : parseFloat(value);
  const item = breakpoints.find((item2) => formattedValue >= item2.value);
  return item ? `${(formattedValue / item.value).toFixed(1).replace(".0", "")} ${item.unit}` : "0";
};
const fontConfig = {
  family: "Inter, Arial",
  size: 11,
  weight: "600",
  lineHeight: 1.21,
  style: "normal"
};
//# sourceMappingURL=utils.js.map
