import{r as e}from"./toString.tRXNBxtF.js";import{r as t}from"./eq.DG5CISEJ.js";import{A as n,d as r,n as i,p as a,x as o}from"./isArrayLikeObject.5q1w4NUu.js";import{c as s,i as c,n as l,r as u,t as d}from"./get.D54r6jti.js";import{n as f,r as p,t as m}from"./isArrayLike.Co48mDbu.js";import{t as h}from"./_baseIsEqual.BY1BH86u.js";import{t as g}from"./_baseProperty.BV6HSwpm.js";var _=1,v=2;function y(e,t,n,i){var a=n.length,o=a,s=!i;if(e==null)return!o;for(e=Object(e);a--;){var c=n[a];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<o;){c=n[a];var l=c[0],u=e[l],d=c[1];if(s&&c[2]){if(u===void 0&&!(l in e))return!1}else{var f=new r;if(i)var p=i(u,d,l,e,t,f);if(!(p===void 0?h(d,u,_|v,i,f):p))return!1}}return!0}function b(e){return e===e&&!t(e)}function x(e){for(var t=a(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,b(i)]}return t}function S(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function C(e){var t=x(e);return t.length==1&&t[0][2]?S(t[0][0],t[0][1]):function(n){return n===e||y(n,e,t)}}function w(e,t){return e!=null&&t in Object(e)}function T(t,n,r){n=c(n,t);for(var i=-1,a=n.length,s=!1;++i<a;){var l=u(n[i]);if(!(s=t!=null&&r(t,l)))break;t=t[l]}return s||++i!=a?s:(a=t==null?0:t.length,!!a&&f(a)&&p(l,a)&&(e(t)||o(t)))}function E(e,t){return e!=null&&T(e,t,w)}var D=1,O=2;function k(e,t){return s(e)&&b(t)?S(u(e),t):function(n){var r=d(n,e);return r===void 0&&r===t?E(n,e):h(t,r,D|O)}}function A(e){return function(t){return l(t,e)}}function j(e){return s(e)?g(u(e)):A(e)}function M(t){return typeof t==`function`?t:t==null?n:typeof t==`object`?e(t)?k(t[0],t[1]):C(t):j(t)}function N(e,t){return e&&i(e,t,a)}function P(e,t){return function(n,r){if(n==null)return n;if(!m(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var F=P(N);export{T as a,E as i,N as n,M as r,F as t};