import t from "./index-typeof2.js";
import u from "./index-toDate.js";
import a from "./index-requiredArgs.js";
function i(e) {
  a(1, arguments);
  var f;
  if (e && typeof e.forEach == "function")
    f = e;
  else if (t(e) === "object" && e !== null)
    f = Array.prototype.slice.call(e);
  else
    return /* @__PURE__ */ new Date(NaN);
  var o;
  return f.forEach(function(r) {
    var n = u(r);
    (o === void 0 || o < n || isNaN(Number(n))) && (o = n);
  }), o || /* @__PURE__ */ new Date(NaN);
}
export {
  i as default
};
