import { _ as r } from "./index.es344.js";
import { _ as w } from "./index.es345.js";
import { _ as D } from "./index.es346.js";
var G = r, H = w, M = D, q = 1, x = 2;
function F(n, e, A, _, R, f) {
  var l = A & q, d = n.length, p = e.length;
  if (d != p && !(l && p > d))
    return !1;
  var C = f.get(n), E = f.get(e);
  if (C && E)
    return C == e && E == n;
  var v = -1, g = !0, L = A & x ? new G() : void 0;
  for (f.set(n, e), f.set(e, n); ++v < d; ) {
    var i = n[v], S = e[v];
    if (_)
      var P = l ? _(S, i, v, e, n, f) : _(i, S, v, n, e, f);
    if (P !== void 0) {
      if (P)
        continue;
      g = !1;
      break;
    }
    if (L) {
      if (!H(e, function(s, O) {
        if (!M(L, O) && (i === s || R(i, s, A, _, f)))
          return L.push(O);
      })) {
        g = !1;
        break;
      }
    } else if (!(i === S || R(i, S, A, _, f))) {
      g = !1;
      break;
    }
  }
  return f.delete(n), f.delete(e), g;
}
var b = F;
export {
  b as _
};
//# sourceMappingURL=index.es307.js.map
