import { A as Pn, B as fn, F as Ln, H as $, M as xn, O as x, T as Mn, U as Rn, V as b, W as h, _ as L, a as an, b as sn, c as v, d as Cn, g as Fn, h as Dn, i as mn, k as Gn, l as Nn, n as Un, o as q, p as G, r as Bn, s as Kn, u as Hn, v as un, w as gn, y as D, z as on } from "./isArrayLikeObject.js";
import { i as Yn, n as I, r as R } from "./isEmpty.js";
var Zn = "[object Symbol]";
function N(n) {
  return typeof n == "symbol" || $(n) && Rn(n) == Zn;
}
function ln(n, r) {
  for (var e = -1, t = n == null ? 0 : n.length, f = Array(t); ++e < t; ) f[e] = r(n[e], e, n);
  return f;
}
var qn = 1 / 0, W = h ? h.prototype : void 0, X = W ? W.toString : void 0;
function cn(n) {
  if (typeof n == "string") return n;
  if (b(n)) return ln(n, cn) + "";
  if (N(n)) return X ? X.call(n) : "";
  var r = n + "";
  return r == "0" && 1 / n == -qn ? "-0" : r;
}
function Wn() {
}
function An(n, r) {
  for (var e = -1, t = n == null ? 0 : n.length; ++e < t && r(n[e], e, n) !== !1; ) ;
  return n;
}
function Xn(n, r, e, t) {
  for (var f = n.length, i = e + (t ? 1 : -1); t ? i-- : ++i < f; ) if (r(n[i], i, n)) return i;
  return -1;
}
function Jn(n) {
  return n !== n;
}
function Qn(n, r, e) {
  for (var t = e - 1, f = n.length; ++t < f; ) if (n[t] === r) return t;
  return -1;
}
function jn(n, r, e) {
  return r === r ? Qn(n, r, e) : Xn(n, Jn, e);
}
function zn(n, r) {
  return !!(n != null && n.length) && jn(n, r, 0) > -1;
}
function O(n) {
  return gn(n) ? Dn(n) : Yn(n);
}
var Vn = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, kn = /^\w*$/;
function U(n, r) {
  if (b(n)) return !1;
  var e = typeof n;
  return e == "number" || e == "symbol" || e == "boolean" || n == null || N(n) ? !0 : kn.test(n) || !Vn.test(n) || r != null && n in Object(r);
}
var nr = 500;
function rr(n) {
  var r = Hn(n, function(t) {
    return e.size === nr && e.clear(), t;
  }), e = r.cache;
  return r;
}
var er = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, tr = /\\(\\)?/g, ir = rr(function(n) {
  var r = [];
  return n.charCodeAt(0) === 46 && r.push(""), n.replace(er, function(e, t, f, i) {
    r.push(f ? i.replace(tr, "$1") : t || e);
  }), r;
});
function fr(n) {
  return n == null ? "" : cn(n);
}
function pn(n, r) {
  return b(n) ? n : U(n, r) ? [n] : ir(fr(n));
}
var ar = 1 / 0;
function M(n) {
  if (typeof n == "string" || N(n)) return n;
  var r = n + "";
  return r == "0" && 1 / n == -ar ? "-0" : r;
}
function Tn(n, r) {
  r = pn(r, n);
  for (var e = 0, t = r.length; n != null && e < t; ) n = n[M(r[e++])];
  return e && e == t ? n : void 0;
}
function sr(n, r, e) {
  var t = n == null ? void 0 : Tn(n, r);
  return t === void 0 ? e : t;
}
function B(n, r) {
  for (var e = -1, t = r.length, f = n.length; ++e < t; ) n[f + e] = r[e];
  return n;
}
var J = h ? h.isConcatSpreadable : void 0;
function ur(n) {
  return b(n) || sn(n) || !!(J && n && n[J]);
}
function gr(n, r, e, t, f) {
  var i = -1, a = n.length;
  for (e || (e = ur), f || (f = []); ++i < a; ) {
    var s = n[i];
    r > 0 && e(s) ? r > 1 ? gr(s, r - 1, e, t, f) : B(f, s) : t || (f[f.length] = s);
  }
  return f;
}
function or(n, r, e, t) {
  var f = -1, i = n == null ? 0 : n.length;
  for (t && i && (e = n[++f]); ++f < i; ) e = r(e, n[f], f, n);
  return e;
}
function lr(n, r) {
  return n && x(r, O(r), n);
}
function cr(n, r) {
  return n && x(r, G(r), n);
}
function yn(n, r) {
  for (var e = -1, t = n == null ? 0 : n.length, f = 0, i = []; ++e < t; ) {
    var a = n[e];
    r(a, e, n) && (i[f++] = a);
  }
  return i;
}
function dn() {
  return [];
}
var Ar = Object.prototype.propertyIsEnumerable, Q = Object.getOwnPropertySymbols, K = Q ? function(n) {
  return n == null ? [] : (n = Object(n), yn(Q(n), function(r) {
    return Ar.call(n, r);
  }));
} : dn;
function pr(n, r) {
  return x(n, K(n), r);
}
var bn = Object.getOwnPropertySymbols ? function(n) {
  for (var r = []; n; )
    B(r, K(n)), n = Nn(n);
  return r;
} : dn;
function Tr(n, r) {
  return x(n, bn(n), r);
}
function hn(n, r, e) {
  var t = r(n);
  return b(n) ? t : B(t, e(n));
}
function m(n) {
  return hn(n, O, K);
}
function yr(n) {
  return hn(n, G, bn);
}
var dr = Object.prototype.hasOwnProperty;
function br(n) {
  var r = n.length, e = new n.constructor(r);
  return r && typeof n[0] == "string" && dr.call(n, "index") && (e.index = n.index, e.input = n.input), e;
}
function hr(n, r) {
  var e = r ? an(n.buffer) : n.buffer;
  return new n.constructor(e, n.byteOffset, n.byteLength);
}
var wr = /\w*$/;
function Or(n) {
  var r = new n.constructor(n.source, wr.exec(n));
  return r.lastIndex = n.lastIndex, r;
}
var j = h ? h.prototype : void 0, z = j ? j.valueOf : void 0;
function _r(n) {
  return z ? Object(z.call(n)) : {};
}
var vr = "[object Boolean]", $r = "[object Date]", Ir = "[object Map]", Er = "[object Number]", Sr = "[object RegExp]", Pr = "[object Set]", Lr = "[object String]", xr = "[object Symbol]", Mr = "[object ArrayBuffer]", Rr = "[object DataView]", Cr = "[object Float32Array]", Fr = "[object Float64Array]", Dr = "[object Int8Array]", mr = "[object Int16Array]", Gr = "[object Int32Array]", Nr = "[object Uint8Array]", Ur = "[object Uint8ClampedArray]", Br = "[object Uint16Array]", Kr = "[object Uint32Array]";
function Hr(n, r, e) {
  var t = n.constructor;
  switch (r) {
    case Mr:
      return an(n);
    case vr:
    case $r:
      return new t(+n);
    case Rr:
      return hr(n, e);
    case Cr:
    case Fr:
    case Dr:
    case mr:
    case Gr:
    case Nr:
    case Ur:
    case Br:
    case Kr:
      return mn(n, e);
    case Ir:
      return new t();
    case Er:
    case Lr:
      return new t(n);
    case Sr:
      return Or(n);
    case Pr:
      return new t();
    case xr:
      return _r(n);
  }
}
var Yr = "[object Map]";
function Zr(n) {
  return $(n) && I(n) == Yr;
}
var V = L && L.isMap, qr = V ? un(V) : Zr, Wr = "[object Set]";
function Xr(n) {
  return $(n) && I(n) == Wr;
}
var k = L && L.isSet, Jr = k ? un(k) : Xr, Qr = 1, jr = 2, zr = 4, wn = "[object Arguments]", Vr = "[object Array]", kr = "[object Boolean]", ne = "[object Date]", re = "[object Error]", On = "[object Function]", ee = "[object GeneratorFunction]", te = "[object Map]", ie = "[object Number]", _n = "[object Object]", fe = "[object RegExp]", ae = "[object Set]", se = "[object String]", ue = "[object Symbol]", ge = "[object WeakMap]", oe = "[object ArrayBuffer]", le = "[object DataView]", ce = "[object Float32Array]", Ae = "[object Float64Array]", pe = "[object Int8Array]", Te = "[object Int16Array]", ye = "[object Int32Array]", de = "[object Uint8Array]", be = "[object Uint8ClampedArray]", he = "[object Uint16Array]", we = "[object Uint32Array]", l = {};
l[wn] = l[Vr] = l[oe] = l[le] = l[kr] = l[ne] = l[ce] = l[Ae] = l[pe] = l[Te] = l[ye] = l[te] = l[ie] = l[_n] = l[fe] = l[ae] = l[se] = l[ue] = l[de] = l[be] = l[he] = l[we] = !0;
l[re] = l[On] = l[ge] = !1;
function C(n, r, e, t, f, i) {
  var a, s = r & Qr, u = r & jr, c = r & zr;
  if (e && (a = f ? e(n, t, f, i) : e(n)), a !== void 0) return a;
  if (!fn(n)) return n;
  var g = b(n);
  if (g) {
    if (a = br(n), !s) return Ln(n, a);
  } else {
    var o = I(n), A = o == On || o == ee;
    if (D(n)) return Kn(n, s);
    if (o == _n || o == wn || A && !f) {
      if (a = u || A ? {} : Bn(n), !s) return u ? Tr(n, cr(a, n)) : pr(n, lr(a, n));
    } else {
      if (!l[o]) return f ? n : {};
      a = Hr(n, o, s);
    }
  }
  i || (i = new v());
  var d = i.get(n);
  if (d) return d;
  i.set(n, a), Jr(n) ? n.forEach(function(p) {
    a.add(C(p, r, e, p, n, i));
  }) : qr(n) && n.forEach(function(p, T) {
    a.set(T, C(p, r, e, T, n, i));
  });
  var y = g ? void 0 : (c ? u ? yr : m : u ? G : O)(n);
  return An(y || n, function(p, T) {
    y && (T = p, p = n[T]), Gn(a, T, C(p, r, e, T, n, i));
  }), a;
}
var Oe = "__lodash_hash_undefined__";
function _e(n) {
  return this.__data__.set(n, Oe), this;
}
function ve(n) {
  return this.__data__.has(n);
}
function E(n) {
  var r = -1, e = n == null ? 0 : n.length;
  for (this.__data__ = new Cn(); ++r < e; ) this.add(n[r]);
}
E.prototype.add = E.prototype.push = _e;
E.prototype.has = ve;
function $e(n, r) {
  for (var e = -1, t = n == null ? 0 : n.length; ++e < t; ) if (r(n[e], e, n)) return !0;
  return !1;
}
function vn(n, r) {
  return n.has(r);
}
var Ie = 1, Ee = 2;
function $n(n, r, e, t, f, i) {
  var a = e & Ie, s = n.length, u = r.length;
  if (s != u && !(a && u > s)) return !1;
  var c = i.get(n), g = i.get(r);
  if (c && g) return c == r && g == n;
  var o = -1, A = !0, d = e & Ee ? new E() : void 0;
  for (i.set(n, r), i.set(r, n); ++o < s; ) {
    var y = n[o], p = r[o];
    if (t) var T = a ? t(p, y, o, r, n, i) : t(y, p, o, n, r, i);
    if (T !== void 0) {
      if (T) continue;
      A = !1;
      break;
    }
    if (d) {
      if (!$e(r, function(_, w) {
        if (!vn(d, w) && (y === _ || f(y, _, e, t, i))) return d.push(w);
      })) {
        A = !1;
        break;
      }
    } else if (!(y === p || f(y, p, e, t, i))) {
      A = !1;
      break;
    }
  }
  return i.delete(n), i.delete(r), A;
}
function Se(n) {
  var r = -1, e = Array(n.size);
  return n.forEach(function(t, f) {
    e[++r] = [f, t];
  }), e;
}
function H(n) {
  var r = -1, e = Array(n.size);
  return n.forEach(function(t) {
    e[++r] = t;
  }), e;
}
var Pe = 1, Le = 2, xe = "[object Boolean]", Me = "[object Date]", Re = "[object Error]", Ce = "[object Map]", Fe = "[object Number]", De = "[object RegExp]", me = "[object Set]", Ge = "[object String]", Ne = "[object Symbol]", Ue = "[object ArrayBuffer]", Be = "[object DataView]", nn = h ? h.prototype : void 0, F = nn ? nn.valueOf : void 0;
function Ke(n, r, e, t, f, i, a) {
  switch (e) {
    case Be:
      if (n.byteLength != r.byteLength || n.byteOffset != r.byteOffset) return !1;
      n = n.buffer, r = r.buffer;
    case Ue:
      return !(n.byteLength != r.byteLength || !i(new q(n), new q(r)));
    case xe:
    case Me:
    case Fe:
      return Pn(+n, +r);
    case Re:
      return n.name == r.name && n.message == r.message;
    case De:
    case Ge:
      return n == r + "";
    case Ce:
      var s = Se;
    case me:
      var u = t & Pe;
      if (s || (s = H), n.size != r.size && !u) return !1;
      var c = a.get(n);
      if (c) return c == r;
      t |= Le, a.set(n, r);
      var g = $n(s(n), s(r), t, f, i, a);
      return a.delete(n), g;
    case Ne:
      if (F) return F.call(n) == F.call(r);
  }
  return !1;
}
var He = 1, Ye = Object.prototype.hasOwnProperty;
function Ze(n, r, e, t, f, i) {
  var a = e & He, s = m(n), u = s.length;
  if (u != m(r).length && !a) return !1;
  for (var c = u; c--; ) {
    var g = s[c];
    if (!(a ? g in r : Ye.call(r, g))) return !1;
  }
  var o = i.get(n), A = i.get(r);
  if (o && A) return o == r && A == n;
  var d = !0;
  i.set(n, r), i.set(r, n);
  for (var y = a; ++c < u; ) {
    g = s[c];
    var p = n[g], T = r[g];
    if (t) var _ = a ? t(T, p, g, r, n, i) : t(p, T, g, n, r, i);
    if (!(_ === void 0 ? p === T || f(p, T, e, t, i) : _)) {
      d = !1;
      break;
    }
    y || (y = g == "constructor");
  }
  if (d && !y) {
    var w = n.constructor, S = r.constructor;
    w != S && "constructor" in n && "constructor" in r && !(typeof w == "function" && w instanceof w && typeof S == "function" && S instanceof S) && (d = !1);
  }
  return i.delete(n), i.delete(r), d;
}
var qe = 1, rn = "[object Arguments]", en = "[object Array]", P = "[object Object]", tn = Object.prototype.hasOwnProperty;
function We(n, r, e, t, f, i) {
  var a = b(n), s = b(r), u = a ? en : I(n), c = s ? en : I(r);
  u = u == rn ? P : u, c = c == rn ? P : c;
  var g = u == P, o = c == P, A = u == c;
  if (A && D(n)) {
    if (!D(r)) return !1;
    a = !0, g = !1;
  }
  if (A && !g)
    return i || (i = new v()), a || Fn(n) ? $n(n, r, e, t, f, i) : Ke(n, r, u, e, t, f, i);
  if (!(e & qe)) {
    var d = g && tn.call(n, "__wrapped__"), y = o && tn.call(r, "__wrapped__");
    if (d || y) {
      var p = d ? n.value() : n, T = y ? r.value() : r;
      return i || (i = new v()), f(p, T, e, t, i);
    }
  }
  return A ? (i || (i = new v()), Ze(n, r, e, t, f, i)) : !1;
}
function Y(n, r, e, t, f) {
  return n === r ? !0 : n == null || r == null || !$(n) && !$(r) ? n !== n && r !== r : We(n, r, e, t, Y, f);
}
var Xe = 1, Je = 2;
function Qe(n, r, e, t) {
  var f = e.length, i = f, a = !t;
  if (n == null) return !i;
  for (n = Object(n); f--; ) {
    var s = e[f];
    if (a && s[2] ? s[1] !== n[s[0]] : !(s[0] in n)) return !1;
  }
  for (; ++f < i; ) {
    s = e[f];
    var u = s[0], c = n[u], g = s[1];
    if (a && s[2]) {
      if (c === void 0 && !(u in n)) return !1;
    } else {
      var o = new v();
      if (t) var A = t(c, g, u, n, r, o);
      if (!(A === void 0 ? Y(g, c, Xe | Je, t, o) : A)) return !1;
    }
  }
  return !0;
}
function In(n) {
  return n === n && !fn(n);
}
function je(n) {
  for (var r = O(n), e = r.length; e--; ) {
    var t = r[e], f = n[t];
    r[e] = [
      t,
      f,
      In(f)
    ];
  }
  return r;
}
function En(n, r) {
  return function(e) {
    return e == null ? !1 : e[n] === r && (r !== void 0 || n in Object(e));
  };
}
function ze(n) {
  var r = je(n);
  return r.length == 1 && r[0][2] ? En(r[0][0], r[0][1]) : function(e) {
    return e === n || Qe(e, n, r);
  };
}
function Ve(n, r) {
  return n != null && r in Object(n);
}
function ke(n, r, e) {
  r = pn(r, n);
  for (var t = -1, f = r.length, i = !1; ++t < f; ) {
    var a = M(r[t]);
    if (!(i = n != null && e(n, a))) break;
    n = n[a];
  }
  return i || ++t != f ? i : (f = n == null ? 0 : n.length, !!f && Mn(f) && xn(a, f) && (b(n) || sn(n)));
}
function nt(n, r) {
  return n != null && ke(n, r, Ve);
}
var rt = 1, et = 2;
function tt(n, r) {
  return U(n) && In(r) ? En(M(n), r) : function(e) {
    var t = sr(e, n);
    return t === void 0 && t === r ? nt(e, n) : Y(r, t, rt | et);
  };
}
function it(n) {
  return function(r) {
    return r?.[n];
  };
}
function ft(n) {
  return function(r) {
    return Tn(r, n);
  };
}
function at(n) {
  return U(n) ? it(M(n)) : ft(n);
}
function Sn(n) {
  return typeof n == "function" ? n : n == null ? on : typeof n == "object" ? b(n) ? tt(n[0], n[1]) : ze(n) : at(n);
}
function st(n, r) {
  return n && Un(n, r, O);
}
function ut(n, r) {
  return function(e, t) {
    if (e == null) return e;
    if (!gn(e)) return n(e, t);
    for (var f = e.length, i = r ? f : -1, a = Object(e); (r ? i-- : ++i < f) && t(a[i], i, a) !== !1; ) ;
    return e;
  };
}
var Z = ut(st);
function gt(n, r, e) {
  for (var t = -1, f = n == null ? 0 : n.length; ++t < f; ) if (e(r, n[t])) return !0;
  return !1;
}
function ot(n) {
  return typeof n == "function" ? n : on;
}
function bt(n, r) {
  return (b(n) ? An : Z)(n, ot(r));
}
function lt(n, r) {
  var e = [];
  return Z(n, function(t, f, i) {
    r(t, f, i) && e.push(t);
  }), e;
}
function ht(n, r) {
  return (b(n) ? yn : lt)(n, Sn(r, 3));
}
function ct(n, r) {
  return ln(r, function(e) {
    return n[e];
  });
}
function wt(n) {
  return n == null ? [] : ct(n, O(n));
}
function Ot(n) {
  return n === void 0;
}
function At(n, r, e, t, f) {
  return f(n, function(i, a, s) {
    e = t ? (t = !1, i) : r(e, i, a, s);
  }), e;
}
function _t(n, r, e) {
  var t = b(n) ? or : At, f = arguments.length < 3;
  return t(n, Sn(r, 4), e, f, Z);
}
var pt = R && 1 / H(new R([, -0]))[1] == 1 / 0 ? function(n) {
  return new R(n);
} : Wn, Tt = 200;
function vt(n, r, e) {
  var t = -1, f = zn, i = n.length, a = !0, s = [], u = s;
  if (e)
    a = !1, f = gt;
  else if (i >= Tt) {
    var c = r ? null : pt(n);
    if (c) return H(c);
    a = !1, f = vn, u = new E();
  } else u = r ? [] : s;
  n: for (; ++t < i; ) {
    var g = n[t], o = r ? r(g) : g;
    if (g = e || g !== 0 ? g : 0, a && o === o) {
      for (var A = u.length; A--; ) if (u[A] === o) continue n;
      r && u.push(o), s.push(g);
    } else f(u, o, e) || (u !== s && u.push(o), s.push(g));
  }
  return s;
}
export {
  Wn as A,
  M as C,
  zn as D,
  O as E,
  N as M,
  jn as O,
  Tn as S,
  fr as T,
  E as _,
  ht as a,
  yn as b,
  ot as c,
  st as d,
  Sn as f,
  $e as g,
  vn as h,
  wt as i,
  ln as j,
  Xn as k,
  gt as l,
  ke as m,
  _t as n,
  lt as o,
  nt as p,
  Ot as r,
  bt as s,
  vt as t,
  Z as u,
  C as v,
  pn as w,
  gr as x,
  yr as y
};

//# sourceMappingURL=_baseUniq.js.map