import{t as $,u as y,a as l,v as m,w as P,x as b,n as h,r as A,k as C}from"./_baseAssignValue-4b27bc5d.js";import{h as I}from"./_baseFor-d6cf4e2e.js";import{i as E}from"./identity-66bf3aad.js";var g=$,O=y,R=1,S=2;function D(r,e,t,n){var a=t.length,u=a,o=!n;if(r==null)return!u;for(r=Object(r);a--;){var i=t[a];if(o&&i[2]?i[1]!==r[i[0]]:!(i[0]in r))return!1}for(;++a<u;){i=t[a];var s=i[0],f=r[s],_=i[1];if(o&&i[2]){if(f===void 0&&!(s in r))return!1}else{var p=new g;if(n)var c=n(f,_,s,r,e,p);if(!(c===void 0?O(_,f,R|S,n,p):c))return!1}}return!0}var d=D,G=l;function K(r){return r===r&&!G(r)}var v=K,L=v,w=m;function F(r){for(var e=w(r),t=e.length;t--;){var n=e[t],a=r[n];e[t]=[n,a,L(a)]}return e}var q=F;function x(r,e){return function(t){return t==null?!1:t[r]===e&&(e!==void 0||r in Object(t))}}var M=x,N=d,T=q,U=M;function k(r){var e=T(r);return e.length==1&&e[0][2]?U(e[0][0],e[0][1]):function(t){return t===r||N(t,r,e)}}var B=k,H=y,J=P,Q=I,W=b,X=v,Y=M,Z=h,z=1,V=2;function j(r,e){return W(r)&&X(e)?Y(Z(r),e):function(t){var n=J(t,r);return n===void 0&&n===e?Q(t,r):H(e,n,z|V)}}var rr=j;function er(r){return function(e){return e==null?void 0:e[r]}}var tr=er,nr=A;function ar(r){return function(e){return nr(e,r)}}var ir=ar,sr=tr,fr=ir,ur=b,or=h;function _r(r){return ur(r)?sr(or(r)):fr(r)}var pr=_r,cr=B,yr=rr,br=E,hr=C,vr=pr;function Mr(r){return typeof r=="function"?r:r==null?br:typeof r=="object"?hr(r)?yr(r[0],r[1]):cr(r):vr(r)}var Pr=Mr;export{Pr as _};
