var r, n;
function c() {
  if (n) return r;
  n = 1;
  function s(t, u) {
    if (typeof t != "function")
      throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof t}\`.`);
    let o, e = 0;
    return function(...i) {
      clearTimeout(o);
      const l = Date.now(), h = l - e, a = u - h;
      a <= 0 ? (e = l, t.apply(this, i)) : o = setTimeout(() => {
        e = Date.now(), t.apply(this, i);
      }, a);
    };
  }
  return r = s, r;
}
export {
  c as __require
};
//# sourceMappingURL=index.js.map
