import{l as e}from"./usePrimitiveElement-DC7UloPZ.js";function t(e){return typeof e==`string`?`'${e}'`:new a().serialize(e)}var n=` _-,;:!?.'"()[]{}@*/\\&#%\`^+<=>|~$0123456789abcdefghijklmnopqrstuvwxyz`,r=(function(){let e=new Uint8Array(128);for(let t=0;t<69;t++)e[n.charCodeAt(t)]=t+1;for(let t=65;t<=90;t++)e[t]=e[t+32];return e})();function i(e,t){if(e===t)return 0;let n=Math.min(e.length,t.length),i=0;for(let a=0;ao?-1:1)}return e.length===t.length?i:e.lengththis.compare(e[0],t[0])),r=`${e}{`;for(let e=0;ethis.compare(e,t)))}`}$Map(e){return this.serializeObjectEntries(`Map`,e.entries())}}for(let t of[`Error`,`RegExp`,`URL`])e.prototype[`$`+t]=function(e){return`${t}(${e})`};for(let t of[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`,`)}]`};for(let t of[`BigInt64Array`,`BigUint64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`n,`)}${e.length>0?`n`:``}]`};return e})();function o(e,n){return e===n||t(e)===t(n)}function s(t,n){return e(t)?!1:Array.isArray(t)?t.some(e=>o(e,n)):o(t,n)}export{o as n,s as t};