import{S as n,k as r}from"./_initCloneObject.fb8fbaea.js";import{b as t}from"./isEqual.57d72c4a.js";import{P as u,cx as i,cy as e,bM as o,cz as f,cA as a,cB as c,Q as v}from"./index.286e9b79.js";var s=1,l=2;function b(n){return n==n&&!u(n)}function d(n,r){return function(t){return null!=t&&(t[n]===r&&(void 0!==r||n in Object(t)))}}function j(u){var i=function(n){for(var t=r(n),u=t.length;u--;){var i=t[u],e=n[i];t[u]=[i,e,b(e)]}return t}(u);return 1==i.length&&i[0][2]?d(i[0][0],i[0][1]):function(r){return r===u||function(r,u,i,e){var o=i.length,f=o,a=!e;if(null==r)return!f;for(r=Object(r);o--;){var c=i[o];if(a&&c[2]?c[1]!==r[c[0]]:!(c[0]in r))return!1}for(;++o<f;){var v=(c=i[o])[0],b=r[v],d=c[1];if(a&&c[2]){if(void 0===b&&!(v in r))return!1}else{var j=new n;if(e)var m=e(b,d,v,r,u,j);if(!(void 0===m?t(d,b,s|l,e,j):m))return!1}}return!0}(r,u,i)}}var m=1,p=2;function g(n){return i(n)?(r=e(n),function(n){return null==n?void 0:n[r]}):function(n){return function(r){return a(r,n)}}(n);var r}function h(n){return"function"==typeof n?n:null==n?c:"object"==typeof n?v(n)?(r=n[0],u=n[1],i(r)&&b(u)?d(e(r),u):function(n){var i=o(n,r);return void 0===i&&i===u?f(n,r):t(u,i,m|p)}):j(n):g(n);var r,u}export{h as b};
