import{G as e,I as t,L as n,U as r,V as i,b as a,f as o,g as s,m as c,w as l,x as u,y as d}from"./isArrayLikeObject-BVwxJxhV.js";var f=t(e,`WeakMap`),p=c(Object.keys,Object),m=Object.prototype.hasOwnProperty;function h(e){if(!u(e))return p(e);var t=[];for(var n in Object(e))m.call(e,n)&&n!=`constructor`&&t.push(n);return t}var g=t(e,`DataView`),_=t(e,`Promise`),v=t(e,`Set`),y=`[object Map]`,b=`[object Object]`,x=`[object Promise]`,S=`[object Set]`,C=`[object WeakMap]`,w=`[object DataView]`,T=n(g),E=n(o),D=n(_),O=n(v),k=n(f),A=r;(g&&A(new g(new ArrayBuffer(1)))!=w||o&&A(new o)!=y||_&&A(_.resolve())!=x||v&&A(new v)!=S||f&&A(new f)!=C)&&(A=function(e){var t=r(e),i=t==b?e.constructor:void 0,a=i?n(i):``;if(a)switch(a){case T:return w;case E:return y;case D:return x;case O:return S;case k:return C}return t});var j=A,M=`[object Map]`,N=`[object Set]`,P=Object.prototype.hasOwnProperty;function F(e){if(e==null)return!0;if(l(e)&&(i(e)||typeof e==`string`||typeof e.splice==`function`||d(e)||s(e)||a(e)))return!e.length;var t=j(e);if(t==M||t==N)return!e.size;if(u(e))return!h(e).length;for(var n in e)if(P.call(e,n))return!1;return!0}export{h as i,j as n,v as r,F as t};