@realsee/dnalogel
Version:
490 lines (489 loc) • 15 kB
JavaScript
import { commonjsGlobal as X } from "../../_commonjsHelpers.js";
var Y = {}, bn = {
get exports() {
return Y;
},
set exports(E) {
Y = E;
}
};
(function(E, Z) {
var Kt = 200, Q = "__lodash_hash_undefined__", M = 1, ut = 2, ot = 9007199254740991, G = "[object Arguments]", V = "[object Array]", $t = "[object AsyncFunction]", lt = "[object Boolean]", ct = "[object Date]", pt = "[object Error]", gt = "[object Function]", qt = "[object GeneratorFunction]", R = "[object Map]", dt = "[object Number]", Jt = "[object Null]", I = "[object Object]", _t = "[object Promise]", Wt = "[object Proxy]", ht = "[object RegExp]", U = "[object Set]", yt = "[object String]", Xt = "[object Symbol]", Yt = "[object Undefined]", k = "[object WeakMap]", vt = "[object ArrayBuffer]", B = "[object DataView]", Zt = "[object Float32Array]", Qt = "[object Float64Array]", Vt = "[object Int8Array]", kt = "[object Int16Array]", te = "[object Int32Array]", ee = "[object Uint8Array]", ne = "[object Uint8ClampedArray]", re = "[object Uint16Array]", ae = "[object Uint32Array]", ie = /[\\^$.*+?()[\]{}|]/g, se = /^\[object .+?Constructor\]$/, fe = /^(?:0|[1-9]\d*)$/, i = {};
i[Zt] = i[Qt] = i[Vt] = i[kt] = i[te] = i[ee] = i[ne] = i[re] = i[ae] = !0, i[G] = i[V] = i[vt] = i[lt] = i[B] = i[ct] = i[pt] = i[gt] = i[R] = i[dt] = i[I] = i[ht] = i[U] = i[yt] = i[k] = !1;
var Tt = typeof X == "object" && X && X.Object === Object && X, ue = typeof self == "object" && self && self.Object === Object && self, y = Tt || ue || Function("return this")(), bt = Z && !Z.nodeType && Z, At = bt && !0 && E && !E.nodeType && E, wt = At && At.exports === bt, tt = wt && Tt.process, St = function() {
try {
return tt && tt.binding && tt.binding("util");
} catch (t) {
}
}(), Ot = St && St.isTypedArray;
function oe(t, e) {
for (var n = -1, r = t == null ? 0 : t.length, s = 0, a = []; ++n < r; ) {
var u = t[n];
e(u, n, t) && (a[s++] = u);
}
return a;
}
function le(t, e) {
for (var n = -1, r = e.length, s = t.length; ++n < r; )
t[s + n] = e[n];
return t;
}
function ce(t, e) {
for (var n = -1, r = t == null ? 0 : t.length; ++n < r; )
if (e(t[n], n, t))
return !0;
return !1;
}
function pe(t, e) {
for (var n = -1, r = Array(t); ++n < t; )
r[n] = e(n);
return r;
}
function ge(t) {
return function(e) {
return t(e);
};
}
function de(t, e) {
return t.has(e);
}
function _e(t, e) {
return t == null ? void 0 : t[e];
}
function he(t) {
var e = -1, n = Array(t.size);
return t.forEach(function(r, s) {
n[++e] = [s, r];
}), n;
}
function ye(t, e) {
return function(n) {
return t(e(n));
};
}
function ve(t) {
var e = -1, n = Array(t.size);
return t.forEach(function(r) {
n[++e] = r;
}), n;
}
var Te = Array.prototype, be = Function.prototype, H = Object.prototype, et = y["__core-js_shared__"], xt = be.toString, h = H.hasOwnProperty, Ct = function() {
var t = /[^.]+$/.exec(et && et.keys && et.keys.IE_PROTO || "");
return t ? "Symbol(src)_1." + t : "";
}(), mt = H.toString, Ae = RegExp(
"^" + xt.call(h).replace(ie, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
), Et = wt ? y.Buffer : void 0, F = y.Symbol, It = y.Uint8Array, Pt = H.propertyIsEnumerable, we = Te.splice, S = F ? F.toStringTag : void 0, Lt = Object.getOwnPropertySymbols, Se = Et ? Et.isBuffer : void 0, Oe = ye(Object.keys, Object), nt = P(y, "DataView"), L = P(y, "Map"), rt = P(y, "Promise"), at = P(y, "Set"), it = P(y, "WeakMap"), j = P(Object, "create"), xe = C(nt), Ce = C(L), me = C(rt), Ee = C(at), Ie = C(it), jt = F ? F.prototype : void 0, st = jt ? jt.valueOf : void 0;
function O(t) {
var e = -1, n = t == null ? 0 : t.length;
for (this.clear(); ++e < n; ) {
var r = t[e];
this.set(r[0], r[1]);
}
}
function Pe() {
this.__data__ = j ? j(null) : {}, this.size = 0;
}
function Le(t) {
var e = this.has(t) && delete this.__data__[t];
return this.size -= e ? 1 : 0, e;
}
function je(t) {
var e = this.__data__;
if (j) {
var n = e[t];
return n === Q ? void 0 : n;
}
return h.call(e, t) ? e[t] : void 0;
}
function ze(t) {
var e = this.__data__;
return j ? e[t] !== void 0 : h.call(e, t);
}
function De(t, e) {
var n = this.__data__;
return this.size += this.has(t) ? 0 : 1, n[t] = j && e === void 0 ? Q : e, this;
}
O.prototype.clear = Pe, O.prototype.delete = Le, O.prototype.get = je, O.prototype.has = ze, O.prototype.set = De;
function v(t) {
var e = -1, n = t == null ? 0 : t.length;
for (this.clear(); ++e < n; ) {
var r = t[e];
this.set(r[0], r[1]);
}
}
function Me() {
this.__data__ = [], this.size = 0;
}
function Ge(t) {
var e = this.__data__, n = K(e, t);
if (n < 0)
return !1;
var r = e.length - 1;
return n == r ? e.pop() : we.call(e, n, 1), --this.size, !0;
}
function Re(t) {
var e = this.__data__, n = K(e, t);
return n < 0 ? void 0 : e[n][1];
}
function Ue(t) {
return K(this.__data__, t) > -1;
}
function Be(t, e) {
var n = this.__data__, r = K(n, t);
return r < 0 ? (++this.size, n.push([t, e])) : n[r][1] = e, this;
}
v.prototype.clear = Me, v.prototype.delete = Ge, v.prototype.get = Re, v.prototype.has = Ue, v.prototype.set = Be;
function x(t) {
var e = -1, n = t == null ? 0 : t.length;
for (this.clear(); ++e < n; ) {
var r = t[e];
this.set(r[0], r[1]);
}
}
function He() {
this.size = 0, this.__data__ = {
hash: new O(),
map: new (L || v)(),
string: new O()
};
}
function Fe(t) {
var e = $(this, t).delete(t);
return this.size -= e ? 1 : 0, e;
}
function Ne(t) {
return $(this, t).get(t);
}
function Ke(t) {
return $(this, t).has(t);
}
function $e(t, e) {
var n = $(this, t), r = n.size;
return n.set(t, e), this.size += n.size == r ? 0 : 1, this;
}
x.prototype.clear = He, x.prototype.delete = Fe, x.prototype.get = Ne, x.prototype.has = Ke, x.prototype.set = $e;
function N(t) {
var e = -1, n = t == null ? 0 : t.length;
for (this.__data__ = new x(); ++e < n; )
this.add(t[e]);
}
function qe(t) {
return this.__data__.set(t, Q), this;
}
function Je(t) {
return this.__data__.has(t);
}
N.prototype.add = N.prototype.push = qe, N.prototype.has = Je;
function b(t) {
var e = this.__data__ = new v(t);
this.size = e.size;
}
function We() {
this.__data__ = new v(), this.size = 0;
}
function Xe(t) {
var e = this.__data__, n = e.delete(t);
return this.size = e.size, n;
}
function Ye(t) {
return this.__data__.get(t);
}
function Ze(t) {
return this.__data__.has(t);
}
function Qe(t, e) {
var n = this.__data__;
if (n instanceof v) {
var r = n.__data__;
if (!L || r.length < Kt - 1)
return r.push([t, e]), this.size = ++n.size, this;
n = this.__data__ = new x(r);
}
return n.set(t, e), this.size = n.size, this;
}
b.prototype.clear = We, b.prototype.delete = Xe, b.prototype.get = Ye, b.prototype.has = Ze, b.prototype.set = Qe;
function Ve(t, e) {
var n = q(t), r = !n && dn(t), s = !n && !r && ft(t), a = !n && !r && !s && Ft(t), u = n || r || s || a, o = u ? pe(t.length, String) : [], l = o.length;
for (var f in t)
(e || h.call(t, f)) && !(u && // Safari 9 has enumerable `arguments.length` in strict mode.
(f == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
s && (f == "offset" || f == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
a && (f == "buffer" || f == "byteLength" || f == "byteOffset") || // Skip index properties.
on(f, l))) && o.push(f);
return o;
}
function K(t, e) {
for (var n = t.length; n--; )
if (Rt(t[n][0], e))
return n;
return -1;
}
function ke(t, e, n) {
var r = e(t);
return q(t) ? r : le(r, n(t));
}
function z(t) {
return t == null ? t === void 0 ? Yt : Jt : S && S in Object(t) ? fn(t) : gn(t);
}
function zt(t) {
return D(t) && z(t) == G;
}
function Dt(t, e, n, r, s) {
return t === e ? !0 : t == null || e == null || !D(t) && !D(e) ? t !== t && e !== e : tn(t, e, n, r, Dt, s);
}
function tn(t, e, n, r, s, a) {
var u = q(t), o = q(e), l = u ? V : A(t), f = o ? V : A(e);
l = l == G ? I : l, f = f == G ? I : f;
var p = l == I, _ = f == I, c = l == f;
if (c && ft(t)) {
if (!ft(e))
return !1;
u = !0, p = !1;
}
if (c && !p)
return a || (a = new b()), u || Ft(t) ? Mt(t, e, n, r, s, a) : an(t, e, l, n, r, s, a);
if (!(n & M)) {
var g = p && h.call(t, "__wrapped__"), d = _ && h.call(e, "__wrapped__");
if (g || d) {
var w = g ? t.value() : t, T = d ? e.value() : e;
return a || (a = new b()), s(w, T, n, r, a);
}
}
return c ? (a || (a = new b()), sn(t, e, n, r, s, a)) : !1;
}
function en(t) {
if (!Ht(t) || cn(t))
return !1;
var e = Ut(t) ? Ae : se;
return e.test(C(t));
}
function nn(t) {
return D(t) && Bt(t.length) && !!i[z(t)];
}
function rn(t) {
if (!pn(t))
return Oe(t);
var e = [];
for (var n in Object(t))
h.call(t, n) && n != "constructor" && e.push(n);
return e;
}
function Mt(t, e, n, r, s, a) {
var u = n & M, o = t.length, l = e.length;
if (o != l && !(u && l > o))
return !1;
var f = a.get(t);
if (f && a.get(e))
return f == e;
var p = -1, _ = !0, c = n & ut ? new N() : void 0;
for (a.set(t, e), a.set(e, t); ++p < o; ) {
var g = t[p], d = e[p];
if (r)
var w = u ? r(d, g, p, e, t, a) : r(g, d, p, t, e, a);
if (w !== void 0) {
if (w)
continue;
_ = !1;
break;
}
if (c) {
if (!ce(e, function(T, m) {
if (!de(c, m) && (g === T || s(g, T, n, r, a)))
return c.push(m);
})) {
_ = !1;
break;
}
} else if (!(g === d || s(g, d, n, r, a))) {
_ = !1;
break;
}
}
return a.delete(t), a.delete(e), _;
}
function an(t, e, n, r, s, a, u) {
switch (n) {
case B:
if (t.byteLength != e.byteLength || t.byteOffset != e.byteOffset)
return !1;
t = t.buffer, e = e.buffer;
case vt:
return !(t.byteLength != e.byteLength || !a(new It(t), new It(e)));
case lt:
case ct:
case dt:
return Rt(+t, +e);
case pt:
return t.name == e.name && t.message == e.message;
case ht:
case yt:
return t == e + "";
case R:
var o = he;
case U:
var l = r & M;
if (o || (o = ve), t.size != e.size && !l)
return !1;
var f = u.get(t);
if (f)
return f == e;
r |= ut, u.set(t, e);
var p = Mt(o(t), o(e), r, s, a, u);
return u.delete(t), p;
case Xt:
if (st)
return st.call(t) == st.call(e);
}
return !1;
}
function sn(t, e, n, r, s, a) {
var u = n & M, o = Gt(t), l = o.length, f = Gt(e), p = f.length;
if (l != p && !u)
return !1;
for (var _ = l; _--; ) {
var c = o[_];
if (!(u ? c in e : h.call(e, c)))
return !1;
}
var g = a.get(t);
if (g && a.get(e))
return g == e;
var d = !0;
a.set(t, e), a.set(e, t);
for (var w = u; ++_ < l; ) {
c = o[_];
var T = t[c], m = e[c];
if (r)
var Nt = u ? r(m, T, c, e, t, a) : r(T, m, c, t, e, a);
if (!(Nt === void 0 ? T === m || s(T, m, n, r, a) : Nt)) {
d = !1;
break;
}
w || (w = c == "constructor");
}
if (d && !w) {
var J = t.constructor, W = e.constructor;
J != W && "constructor" in t && "constructor" in e && !(typeof J == "function" && J instanceof J && typeof W == "function" && W instanceof W) && (d = !1);
}
return a.delete(t), a.delete(e), d;
}
function Gt(t) {
return ke(t, yn, un);
}
function $(t, e) {
var n = t.__data__;
return ln(e) ? n[typeof e == "string" ? "string" : "hash"] : n.map;
}
function P(t, e) {
var n = _e(t, e);
return en(n) ? n : void 0;
}
function fn(t) {
var e = h.call(t, S), n = t[S];
try {
t[S] = void 0;
var r = !0;
} catch (a) {
}
var s = mt.call(t);
return r && (e ? t[S] = n : delete t[S]), s;
}
var un = Lt ? function(t) {
return t == null ? [] : (t = Object(t), oe(Lt(t), function(e) {
return Pt.call(t, e);
}));
} : vn, A = z;
(nt && A(new nt(new ArrayBuffer(1))) != B || L && A(new L()) != R || rt && A(rt.resolve()) != _t || at && A(new at()) != U || it && A(new it()) != k) && (A = function(t) {
var e = z(t), n = e == I ? t.constructor : void 0, r = n ? C(n) : "";
if (r)
switch (r) {
case xe:
return B;
case Ce:
return R;
case me:
return _t;
case Ee:
return U;
case Ie:
return k;
}
return e;
});
function on(t, e) {
return e = e == null ? ot : e, !!e && (typeof t == "number" || fe.test(t)) && t > -1 && t % 1 == 0 && t < e;
}
function ln(t) {
var e = typeof t;
return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
}
function cn(t) {
return !!Ct && Ct in t;
}
function pn(t) {
var e = t && t.constructor, n = typeof e == "function" && e.prototype || H;
return t === n;
}
function gn(t) {
return mt.call(t);
}
function C(t) {
if (t != null) {
try {
return xt.call(t);
} catch (e) {
}
try {
return t + "";
} catch (e) {
}
}
return "";
}
function Rt(t, e) {
return t === e || t !== t && e !== e;
}
var dn = zt(function() {
return arguments;
}()) ? zt : function(t) {
return D(t) && h.call(t, "callee") && !Pt.call(t, "callee");
}, q = Array.isArray;
function _n(t) {
return t != null && Bt(t.length) && !Ut(t);
}
var ft = Se || Tn;
function hn(t, e) {
return Dt(t, e);
}
function Ut(t) {
if (!Ht(t))
return !1;
var e = z(t);
return e == gt || e == qt || e == $t || e == Wt;
}
function Bt(t) {
return typeof t == "number" && t > -1 && t % 1 == 0 && t <= ot;
}
function Ht(t) {
var e = typeof t;
return t != null && (e == "object" || e == "function");
}
function D(t) {
return t != null && typeof t == "object";
}
var Ft = Ot ? ge(Ot) : nn;
function yn(t) {
return _n(t) ? Ve(t) : rn(t);
}
function vn() {
return [];
}
function Tn() {
return !1;
}
E.exports = hn;
})(bn, Y);
const wn = Y;
export {
wn as isEqual
};