import interpolateNumber from '../../../../../d3-interpolate@3.0.1/node_modules/d3-interpolate/src/number.mjs';
import interpolateRgb from '../../../../../d3-interpolate@3.0.1/node_modules/d3-interpolate/src/rgb.mjs';
import interpolateString from '../../../../../d3-interpolate@3.0.1/node_modules/d3-interpolate/src/string.mjs';
import color from '../../../../../d3-color@3.1.0/node_modules/d3-color/src/color.mjs';

function interpolate(a, b) {
  var c;
  return (typeof b === "number" ? interpolateNumber
      : b instanceof color ? interpolateRgb
      : (c = color(b)) ? (b = c, interpolateRgb)
      : interpolateString)(a, b);
}

export { interpolate as default };
