const t=new Uint32Array(65536),e=(e,r)=>0===r.length?e.length:0===e.length?r.length:(e.length{const n=e.length,l=r.length,o=1<=0;r--)t[e.charCodeAt(r)]|=1<=0;r--)t[e.charCodeAt(r)]=0;return c})(e,r):((e,r)=>{const n=e.length,l=r.length,o=new Array(Math.ceil(n/32)),h=new Array(Math.ceil(n/32));for(let t=0;t>>r&1,u=h[l]>>>r&1,A=n|g;s=((n|u)&i)+i^i|n|u,a=g|~(s|i),c=i&s,0!=(a>>>31^f)&&(o[l]^=1<>>31^u)&&(h[l]^=1<>>r&1,d=h[u]>>>r&1,C=n|g;s=((n|d)&i)+i^i|n|d,a=g|~(s|i),c=i&s,f+=a>>>l-1&1,f-=c>>>l-1&1,0!=(a>>>31^A)&&(o[u]^=1<>>31^d)&&(h[u]^=1<{if(t===r)return 1;if(""===t||""===r)return 0;const n=e(t,r),l=Math.max(t.length,r.length);return(l-n)/l},n=(t,e)=>{if((t=t.replace(/\s+/g,""))===(e=e.replace(/\s+/g,"")))return 1;if(t.length<2||e.length<2)return 0;const r=new Map;for(let e=0;e0&&(r.set(l,o-1),n++)}const l=t.length+e.length-2;return 0===l?0:2*n/l};exports.bigramSimilarity=n,exports.calculateDistance=e,exports.didyoumean=(t,r)=>{let n=Infinity,l=0;for(let o=0;o(r(t,e)+n(t,e))/2; //# sourceMappingURL=index.cjs.map