import{S as O,m as d,n as x,x as w}from"./_Uint8Array-D5Z9rM2X.js";import{n as S,y as k}from"./isArrayLikeObject-DKyJYtr8.js";import{f as p,t as l}from"./_baseIsEqual-BF8660ot.js";import{r as b,t as h}from"./_toKey-Di_xoXjD.js";import{n as z,t as A}from"./get-BYzWDFJH.js";import{t as C}from"./hasIn-WaG0qjy7.js";import{t as D}from"./_baseProperty-CIKnF2iY.js";var E=1,F=2;function I(r,n,t,o){var u=t.length,f=u,i=!o;if(r==null)return!f;for(r=Object(r);u--;){var a=t[u];if(i&&a[2]?a[1]!==r[a[0]]:!(a[0]in r))return!1}for(;++u<f;){a=t[u];var v=a[0],c=r[v],e=a[1];if(i&&a[2]){if(c===void 0&&!(v in r))return!1}else{var s=new x;if(o)var m=o(c,e,v,r,n,s);if(!(m===void 0?l(e,c,E|F,o,s):m))return!1}}return!0}var L=I;function M(r){return r===r&&!w(r)}var j=M;function N(r){for(var n=p(r),t=n.length;t--;){var o=n[t],u=r[o];n[t]=[o,u,j(u)]}return n}var P=N;function R(r,n){return function(t){return t==null?!1:t[r]===n&&(n!==void 0||r in Object(t))}}var g=R;function T(r){var n=P(r);return n.length==1&&n[0][2]?g(n[0][0],n[0][1]):function(t){return t===r||L(t,r,n)}}var _=T,q=1,B=2;function G(r,n){return b(r)&&j(n)?g(h(r),n):function(t){var o=A(t,r);return o===void 0&&o===n?C(t,r):l(n,o,q|B)}}var H=G;function J(r){return function(n){return z(n,r)}}var K=J;function Q(r){return b(r)?D(h(r)):K(r)}var U=Q;function V(r){return typeof r=="function"?r:r==null?k:typeof r=="object"?O(r)?H(r[0],r[1]):_(r):U(r)}var W=V;function X(r,n){return r&&S(r,n,p)}var y=X;function Y(r,n){return function(t,o){if(t==null)return t;if(!d(t))return r(t,o);for(var u=t.length,f=n?u:-1,i=Object(t);(n?f--:++f<u)&&o(i[f],f,i)!==!1;);return t}}var Z=Y(y);export{y as n,W as r,Z as t};
