import e from "./_SetCache.js";
import t from "./_arraySome.js";
import n from "./_cacheHas.js";
//#region ../../node_modules/lodash-es/_equalArrays.js
var r = 1, i = 2;
function a(a, o, s, c, l, u) {
	var d = s & r, f = a.length, p = o.length;
	if (f != p && !(d && p > f)) return !1;
	var m = u.get(a), h = u.get(o);
	if (m && h) return m == o && h == a;
	var g = -1, _ = !0, v = s & i ? new e() : void 0;
	for (u.set(a, o), u.set(o, a); ++g < f;) {
		var y = a[g], b = o[g];
		if (c) var x = d ? c(b, y, g, o, a, u) : c(y, b, g, a, o, u);
		if (x !== void 0) {
			if (x) continue;
			_ = !1;
			break;
		}
		if (v) {
			if (!t(o, function(e, t) {
				if (!n(v, t) && (y === e || l(y, e, s, c, u))) return v.push(t);
			})) {
				_ = !1;
				break;
			}
		} else if (!(y === b || l(y, b, s, c, u))) {
			_ = !1;
			break;
		}
	}
	return u.delete(a), u.delete(o), _;
}
//#endregion
export { a as default };
