import c from "./index.es273.js";
import { slice as m } from "./index.es40.js";
import p from "./index.es137.js";
function M(o, l, u) {
  return function(t, f, e) {
    var r = 0, n = c(t);
    if (typeof e == "number")
      o > 0 ? r = e >= 0 ? e : Math.max(e + n, r) : n = e >= 0 ? Math.min(e + 1, n) : e + n + 1;
    else if (u && e && n)
      return e = u(t, f), t[e] === f ? e : -1;
    if (f !== f)
      return e = l(m.call(t, r, n), p), e >= 0 ? e + r : -1;
    for (e = o > 0 ? r : n - 1; e >= 0 && e < n; e += o)
      if (t[e] === f) return e;
    return -1;
  };
}
export {
  M as default
};
//# sourceMappingURL=index.es291.js.map
