javascript:{(()=>{var o=class{static get _S3(){return"source-over"}};var r=class s{static m_0;static _g6(e,t){globalThis[e]=t,s.m_0.push(e)}static getData(e){return globalThis[e]}static clear(){for(var e of[...s.m_0])s._g6(e,null)}static set _W(e){s._g6("canvas98",e)}static get _W(){return s.getData("canvas98")}};r.m_0=[];var u=class s{m_0;m_1;_R2;name;static _h6=new s("default");static _i6=new s("maker",()=>"darken");get _A8(){return this.m_0()}constructor(e,t=()=>o._S3,i=1,_=a=>a){this.name=e,this.m_0=t,this._R2=i,this.m_1=_}_A1(e){return this.m_1(e)}};var l=class{pens=[];selectedPens=[];keys=[];isSmooth;correction},h=class s{static m_1;m_0;_w1;get _za(){return this.m_0}constructor(e){this.m_0=[];let t=null;try{t=JSON.parse(e??"")}catch{}t==null&&(t=new l),this._w1=t}_z7(){return JSON.stringify(this._w1)}_A7(e){let t="",i=this._w1;for(var _ of this.m_0)_.name==e&&(t=_.value);for(var a of i.keys)a.name==e&&(t=a.value);return t}_B7(e,t){this.m_0.push({name:e,value:t})}static _t4(){return s.m_1}};h.m_1=new h(window.localStorage.getItem("canvas98Settings"));var d={ZoomIn:"zoomIn",ZoomReset:"zoomReset",ZoomOut:"zoomOut"},c=class s{static bindInput(e){let t=document.createElement("input");return t.type="url",t.value=n[e],t.addEventListener("keydown",i=>{i.stopImmediatePropagation();let _=i.key.toLocaleLowerCase();switch(_){case"escape":case"tab":case"enter":return}n[e]=_,i.currentTarget.value=""}),t}static dialogHTML(){let e=document.createElement("dialog");e.style.padding="0",e.style.background="rgb(255, 255, 238)";let t=document.createElement("div");t.style.width="100%",t.style.height="100%",t.style.display="flex",t.style.padding="1em",t.style.flexFlow="column nowrap",t.style.gap=".5em",t.style.boxSizing="border-box";for(let i of Object.values(d)){let _=document.createElement("div");_.style.display="grid",_.style.gridTemplateColumns="1fr 1fr",_.innerHTML=`