text: (()=>{"use strict";const e=VESUNA,t=dat.gui,n=document.getElementById("demo"),o="GENERATE",a={[o]:r},i=new e.Vesuna;function r(){i.autoseed(),d()}function d(){const{seed:e,separator:t}=i,o=t?e.split(t):[e];n.textContent=o.map((e=>{return(t=e).charAt(0).toUpperCase()+t.slice(1);var t})).join(" "),p()}i.separator=i.separators.DASH;const s=new t.GUI;s.vesuna=s.addFolder("Vesuna"),s.vesuna.add(i,"mode",i.modes).onChange(r),s.vesuna.add(i,"separator",i.separators).onChange(r),s.vesuna.add(i,"verbose").onChange(r),s.vesuna.add(i,"seed").onChange(d).listen(),s.vesuna.add(a,o),s.vesuna.open();const c=window.devicePixelRatio<=2?640:1280;window.innerWidth<c&&s.close();const l=document.getElementById("demo-canvas"),u=l.getContext("2d");function p(){i.reset();const e=window.innerWidth,t=window.innerHeight;l.width=e,l.height=t,u.globalCompositeOperation="source-over",u.clearRect(0,0,e,t);const n=i.number(.1,.5),o=Math.max(e,t)*n,a=`rgba(${i.int(0,255)}, ${i.int(0,255)}, ${i.int(0,255)}, 0.15)`,r=`rgba(${i.int(0,255)}, ${i.int(0,255)}, ${i.int(0,255)}, 0.15)`,d=u.createLinearGradient(0,0,e,0);d.addColorStop(0,a),d.addColorStop(1,r),u.fillStyle=d;const s=i.int(7,14),c=i.int(3,6),p=1/s,v=1/c;for(var g=0;g<s;g++){const n=i.uint(e),a=i.uint(t),r=o*(p*g);for(var h=0;h<c;h++)u.beginPath(),u.arc(n,a,r*v*h,0,2*Math.PI,!1),u.fill()}const m=u.createLinearGradient(0,0,0,t);m.addColorStop(0,a),m.addColorStop(1,r),u.fillStyle=m,u.globalCompositeOperation="saturation",u.fillRect(0,0,e,t)}window.addEventListener("resize",p),n.addEventListener("pointerup",r),r()})();