{"version":3,"file":"ohash-Bn6apWOK.js","sources":["../../node_modules/ohash/dist/shared/ohash.D__AXeF1.mjs"],"sourcesContent":["function serialize(o){return typeof o==\"string\"?`'${o}'`:new c().serialize(o)}const c=/*@__PURE__*/function(){class o{#t=new Map;compare(t,r){const e=typeof t,n=typeof r;return e===\"string\"&&n===\"string\"?t.localeCompare(r):e===\"number\"&&n===\"number\"?t-r:String.prototype.localeCompare.call(this.serialize(t,true),this.serialize(r,true))}serialize(t,r){if(t===null)return \"null\";switch(typeof t){case \"string\":return r?t:`'${t}'`;case \"bigint\":return `${t}n`;case \"object\":return this.$object(t);case \"function\":return this.$function(t)}return String(t)}serializeObject(t){const r=Object.prototype.toString.call(t);if(r!==\"[object Object]\")return this.serializeBuiltInType(r.length<10?`unknown:${r}`:r.slice(8,-1),t);const e=t.constructor,n=e===Object||e===void 0?\"\":e.name;if(n!==\"\"&&globalThis[n]===e)return this.serializeBuiltInType(n,t);if(typeof t.toJSON==\"function\"){const i=t.toJSON();return n+(i!==null&&typeof i==\"object\"?this.$object(i):`(${this.serialize(i)})`)}return this.serializeObjectEntries(n,Object.entries(t))}serializeBuiltInType(t,r){const e=this[\"$\"+t];if(e)return e.call(this,r);if(typeof r?.entries==\"function\")return this.serializeObjectEntries(t,r.entries());throw new Error(`Cannot serialize ${t}`)}serializeObjectEntries(t,r){const e=Array.from(r).sort((i,a)=>this.compare(i[0],a[0]));let n=`${t}{`;for(let i=0;ithis.compare(r,e)))}`}$Map(t){return this.serializeObjectEntries(\"Map\",t.entries())}}for(const s of [\"Error\",\"RegExp\",\"URL\"])o.prototype[\"$\"+s]=function(t){return `${s}(${t})`};for(const s of [\"Int8Array\",\"Uint8Array\",\"Uint8ClampedArray\",\"Int16Array\",\"Uint16Array\",\"Int32Array\",\"Uint32Array\",\"Float32Array\",\"Float64Array\"])o.prototype[\"$\"+s]=function(t){return `${s}[${t.join(\",\")}]`};for(const s of [\"BigInt64Array\",\"BigUint64Array\"])o.prototype[\"$\"+s]=function(t){return `${s}[${t.join(\"n,\")}${t.length>0?\"n\":\"\"}]`};return o}();\n\nfunction isEqual(object1, object2) {\n if (object1 === object2) {\n return true;\n }\n if (serialize(object1) === serialize(object2)) {\n return true;\n }\n return false;\n}\n\nexport { isEqual as i, serialize as s };\n"],"names":["e","serialize","o","c","_t","__privateAdd","t","n","i","a","l","__privateGet","isEqual","object1","object2"],"mappings":"iQAAA,GAAA,CAAA,IAAAA,EAAA,OAAA,OAAA,IAAA,OAAA,OAAA,OAAA,IAAA,OAAA,OAAA,WAAA,IAAA,WAAA,OAAA,KAAA,IAAA,KAAA,CAAA,EAAA,EAAA,IAAAA,EAAA,QAAA,MAAA,IAAAA,EAAA,gBAAAA,EAAA,iBAAA,CAAA,EAAAA,EAAA,gBAAA,CAAA,EAAA,uCAAAA,EAAA,yBAAA,mDAAA,MAAA,CAAA,CAAA,SAASC,EAAUC,EAAE,CAAC,OAAO,OAAOA,GAAG,SAAS,IAAIA,CAAC,IAAI,IAAIC,EAAC,EAAG,UAAUD,CAAC,CAAC,CAAC,MAAMC,EAAe,UAAU,CAA7G,IAAAC,EAA8G,MAAMF,CAAC,CAAP,cAAQG,EAAA,KAAAD,EAAG,IAAI,KAAI,QAAQE,EAAE,EAAE,CAAC,MAAMN,EAAE,OAAOM,EAAEC,EAAE,OAAO,EAAE,OAAOP,IAAI,UAAUO,IAAI,SAASD,EAAE,cAAc,CAAC,EAAEN,IAAI,UAAUO,IAAI,SAASD,EAAE,EAAE,OAAO,UAAU,cAAc,KAAK,KAAK,UAAUA,EAAE,EAAI,EAAE,KAAK,UAAU,EAAE,EAAI,CAAC,CAAC,CAAC,UAAUA,EAAE,EAAE,CAAC,GAAGA,IAAI,KAAK,MAAO,OAAO,OAAO,OAAOA,EAAC,CAAE,IAAK,SAAS,OAAO,EAAEA,EAAE,IAAIA,CAAC,IAAI,IAAK,SAAS,MAAO,GAAGA,CAAC,IAAI,IAAK,SAAS,OAAO,KAAK,QAAQA,CAAC,EAAE,IAA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