diff --git a/bun.lockb b/bun.lockb index 4ad6df5..05b77c5 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/dist/index.js b/dist/index.js index 869532d..365380d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1 +1 @@ -var P;((e)=>{e.lcase="abcdefghijklmnopqrstuvwxyz",e.ucase="ABCDEFGHIJKLMNOPQRSTUVWXYZ",e.numb="1234567890",e.symbols="!@#$%?&*";function t(m=0,D=100){var d=D-m,f=Math.ceil(Math.log2(d)/8);if(!f)return m;var l=Math.pow(256,f),E=new Uint8Array(f);while(!0){window.crypto.getRandomValues(E);var n=0;for(var C=0;C{const c=document.getElementById("label-length");if(T&&c)c.innerText=T.value});document.getElementById("generate")?.addEventListener("click",()=>{if(!T||!B||!H||!M||!L)return;const c=parseInt(T.value,10),I=B.checked,o=H.checked,u=M.checked;L.innerText=y.generate(c,I,o,u)});document.getElementById("btn-start")?.addEventListener("click",()=>{if(!g||!k||!T||!B||!H||!M)return;const c=parseInt(T.value,10),I=B.checked,o=H.checked,u=M.checked;let t=parseInt(g.value,10);if(t<1)t=1;if(t>1e5)t=1e5;k.innerText="1. Performance test has started.\n";const x=Date.now();for(let m=0;m{e.lcase="abcdefghijklmnopqrstuvwxyz",e.ucase="ABCDEFGHIJKLMNOPQRSTUVWXYZ",e.numb="1234567890",e.symbols="!@#$%?&*";function t(m=0,D=100){var d=D-m,f=Math.ceil(Math.log2(d)/8);if(!f)return m;var l=Math.pow(256,f),E=new Uint8Array(f);while(!0){globalThis.crypto.getRandomValues(E);var n=0;for(var C=0;C{const c=document.getElementById("label-length");if(T&&c)c.innerText=T.value});document.getElementById("generate")?.addEventListener("click",()=>{if(!T||!B||!H||!M||!L)return;const c=parseInt(T.value,10),I=B.checked,o=H.checked,u=M.checked;L.innerText=y.generate(c,I,o,u)});document.getElementById("btn-start")?.addEventListener("click",()=>{if(!g||!k||!T||!B||!H||!M)return;const c=parseInt(T.value,10),I=B.checked,o=H.checked,u=M.checked;let t=parseInt(g.value,10);if(t<1)t=1;if(t>1e5)t=1e5;k.innerText="1. Performance test has started.\n";const x=Date.now();for(let m=0;m