"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const rgb = require("./src-rgb.cjs");
const array = require("./src-array.cjs");
const date = require("./src-date.cjs");
const number = require("./src-number.cjs");
const object = require("./src-object.cjs");
const string = require("./src-string.cjs");
const constant = require("./src-constant.cjs");
const numberArray = require("./src-numberArray.cjs");
const color = require("../d3-color/src-color.cjs");
function interpolate(a, b) {
  var t = typeof b, c;
  return b == null || t === "boolean" ? constant.default(b) : (t === "number" ? number.default : t === "string" ? (c = color.default(b)) ? (b = c, rgb.default) : string.default : b instanceof color.default ? rgb.default : b instanceof Date ? date.default : numberArray.isNumberArray(b) ? numberArray.default : Array.isArray(b) ? array.genericArray : typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? object.default : number.default)(a, b);
}
exports.default = interpolate;
//# sourceMappingURL=src-value.cjs.map
