"use client";
import a from "./value.js";
function m(r, n) {
  n === void 0 && (n = r, r = a);
  for (var t = 0, i = n.length - 1, e = n[0], f = new Array(i < 0 ? 0 : i); t < i; ) f[t] = r(e, e = n[++t]);
  return function(o) {
    var h = Math.max(0, Math.min(i - 1, Math.floor(o *= i)));
    return f[h](o - h);
  };
}
export {
  m as default
};
