import { hex as o } from "./hex.es.js";
import { hsla as t } from "./hsla.es.js";
import { rgba as e } from "./rgba.es.js";
const a = {
  test: (r) => e.test(r) || o.test(r) || t.test(r),
  parse: (r) => e.test(r) ? e.parse(r) : t.test(r) ? t.parse(r) : o.parse(r),
  transform: (r) => typeof r == "string" ? r : r.hasOwnProperty("red") ? e.transform(r) : t.transform(r),
  getAnimatableNone: (r) => {
    const s = a.parse(r);
    return s.alpha = 0, a.transform(s);
  }
};
export {
  a as color
};
//# sourceMappingURL=index.es.js.map
