import { G as o, I as i, L as s, U as T, V as O, b as h, f as n, g as v, m as M, w as P, x as S, y as A } from "./isArrayLikeObject.js";
var c = i(o, "WeakMap"), C = M(Object.keys, Object), V = Object.prototype.hasOwnProperty;
function d(r) {
  if (!S(r)) return C(r);
  var t = [];
  for (var e in Object(r)) V.call(r, e) && e != "constructor" && t.push(e);
  return t;
}
var p = i(o, "DataView"), g = i(o, "Promise"), f = i(o, "Set"), y = "[object Map]", k = "[object Object]", u = "[object Promise]", b = "[object Set]", m = "[object WeakMap]", j = "[object DataView]", $ = s(p), D = s(n), W = s(g), x = s(f), B = s(c), a = T;
(p && a(new p(/* @__PURE__ */ new ArrayBuffer(1))) != j || n && a(new n()) != y || g && a(g.resolve()) != u || f && a(new f()) != b || c && a(new c()) != m) && (a = function(r) {
  var t = T(r), e = t == k ? r.constructor : void 0, w = e ? s(e) : "";
  if (w) switch (w) {
    case $:
      return j;
    case D:
      return y;
    case W:
      return u;
    case x:
      return b;
    case B:
      return m;
  }
  return t;
});
var G = a, K = "[object Map]", L = "[object Set]", _ = Object.prototype.hasOwnProperty;
function E(r) {
  if (r == null) return !0;
  if (P(r) && (O(r) || typeof r == "string" || typeof r.splice == "function" || A(r) || v(r) || h(r))) return !r.length;
  var t = G(r);
  if (t == K || t == L) return !r.size;
  if (S(r)) return !d(r).length;
  for (var e in r) if (_.call(r, e)) return !1;
  return !0;
}
export {
  d as i,
  G as n,
  f as r,
  E as t
};

//# sourceMappingURL=isEmpty.js.map