import interpolateRgb from "./src-rgb.js";
import { genericArray } from "./src-array.js";
import date from "./src-date.js";
import interpolateNumber from "./src-number.js";
import object from "./src-object.js";
import interpolateString from "./src-string.js";
import constant from "./src-constant.js";
import numberArray, { isNumberArray } from "./src-numberArray.js";
import color from "../d3-color/src-color.js";
function interpolate(a, b) {
  var t = typeof b, c;
  return b == null || t === "boolean" ? constant(b) : (t === "number" ? interpolateNumber : t === "string" ? (c = color(b)) ? (b = c, interpolateRgb) : interpolateString : b instanceof color ? interpolateRgb : b instanceof Date ? date : isNumberArray(b) ? numberArray : Array.isArray(b) ? genericArray : typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? object : interpolateNumber)(a, b);
}
export {
  interpolate as default
};
//# sourceMappingURL=src-value.js.map
