import{c4 as O,db as c,bM as P,bS as b,dc as A,bI as d,cA as h,dd as y,bG as _,de as g,c5 as p}from"./index-XuO881sr.js";var I=1,C=2;function G(n,r,e,t){var i=e.length,u=i;if(n==null)return!u;for(n=Object(n);i--;){var f=e[i];if(f[2]?f[1]!==n[f[0]]:!(f[0]in n))return!1}for(;++i<u;){f=e[i];var s=f[0],o=n[s],E=f[1];if(f[2]){if(o===void 0&&!(s in n))return!1}else{var M=new O,a;if(!(a===void 0?c(E,o,I|C,t,M):a))return!1}}return!0}function R(n){return n===n&&!P(n)}function L(n){for(var r=b(n),e=r.length;e--;){var t=r[e],i=n[t];r[e]=[t,i,R(i)]}return r}function l(n,r){return function(e){return e==null?!1:e[n]===r&&(r!==void 0||n in Object(e))}}function D(n){var r=L(n);return r.length==1&&r[0][2]?l(r[0][0],r[0][1]):function(e){return e===n||G(e,n,r)}}var m=1,w=2;function F(n,r){return A(n)&&R(r)?l(d(n),r):function(e){var t=h(e,n);return t===void 0&&t===r?y(e,n):c(r,t,m|w)}}function S(n){return function(r){return r?.[n]}}function x(n){return function(r){return _(r,n)}}function K(n){return A(n)?S(d(n)):x(n)}function T(n){return typeof n=="function"?n:n==null?g:typeof n=="object"?p(n)?F(n[0],n[1]):D(n):K(n)}export{T as b};
