const i=t=>Symbol.iterator in t,c=t=>"entries"in t,f=(t,e)=>{const s=t instanceof Map?t:new Map(t.entries()),n=e instanceof Map?e:new Map(e.entries());if(s.size!==n.size)return!1;for(const[r,o]of s)if(!n.has(r)||!Object.is(o,n.get(r)))return!1;return!0},b=(t,e)=>{const s=t[Symbol.iterator](),n=e[Symbol.iterator]();let r=s.next(),o=n.next();for(;!r.done&&!o.done;){if(!Object.is(r.value,o.value))return!1;r=s.next(),o=n.next()}return!!r.done&&!!o.done};function p(t,e){return Object.is(t,e)?!0:typeof t!="object"||t===null||typeof e!="object"||e===null||Object.getPrototypeOf(t)!==Object.getPrototypeOf(e)?!1:i(t)&&i(e)?c(t)&&c(e)?f(t,e):b(t,e):f({entries:()=>Object.entries(t)},{entries:()=>Object.entries(e)})}export{p as s};
