import{S as jt,i as Tt,s as Lt,k as r,a as P,q as p,H as Bt,l as s,m as l,h as n,c as S,r as u,n as a,I as at,F as e,b as De,J as me,K as Mt,L as Nt,A as _t,M as xt,o as Rt,z as Vt,N as qt,O as yt,p as Et,u as Ht,P as nt}from"../../chunks/index-a207c28c.js";const{document:Te,window:It}=qt;function kt(c){let h,i,I,A,R,d;return{c(){h=r("div"),i=r("p"),I=p("Loading\u2026"),A=P(),R=r("p"),d=p("\u2588\u2592\u2592\u2592\u2592\u2592\u2592\u2592\u2592\u2592")},l(H){h=s(H,"DIV",{});var C=l(h);i=s(C,"P",{});var j=l(i);I=u(j,"Loading\u2026"),j.forEach(n),A=S(C),R=s(C,"P",{});var v=l(R);d=u(v,"\u2588\u2592\u2592\u2592\u2592\u2592\u2592\u2592\u2592\u2592"),v.forEach(n),C.forEach(n)},m(H,C){De(H,h,C),e(h,i),e(i,I),e(h,A),e(h,R),e(R,d)},d(H){H&&n(h)}}}function Dt(c){let h,i,I,A,R,d,H,C,j,v,b,k,T,F,D,w,M,J,f,g,E,ie,G,U,ce,te,W,Q,X,ae,$,ne;return{c(){h=r("div"),i=r("div"),I=r("p"),A=p("Strength:"),R=P(),d=r("span"),H=P(),C=r("div"),j=r("p"),v=p("Prompt:"),b=P(),k=r("span"),T=P(),F=r("div"),D=r("button"),w=p("diffuse \u{1FA84}"),J=P(),f=r("div"),g=r("label"),E=r("input"),ie=p(` upload img`),G=P(),U=r("p"),ce=p("pro tip: upload img by dropping on the canvas"),te=P(),W=r("div"),Q=r("p"),X=p("Images returned: "),ae=p(c[2]),this.h()},l(N){h=s(N,"DIV",{});var x=l(h);i=s(x,"DIV",{class:!0});var oe=l(i);I=s(oe,"P",{class:!0});var de=l(I);A=u(de,"Strength:"),de.forEach(n),R=S(oe),d=s(oe,"SPAN",{class:!0,role:!0,contenteditable:!0,spellcheck:!0,dir:!0,maxlength:!0}),l(d).forEach(n),oe.forEach(n),H=S(x),C=s(x,"DIV",{class:!0});var V=l(C);j=s(V,"P",{class:!0});var fe=l(j);v=u(fe,"Prompt:"),fe.forEach(n),b=S(V),k=s(V,"SPAN",{class:!0,role:!0,contenteditable:!0,style:!0,spellcheck:!0,dir:!0,maxlength:!0}),l(k).forEach(n),V.forEach(n),T=S(x),F=s(x,"DIV",{class:!0});var Z=l(F);D=s(Z,"BUTTON",{class:!0});var he=l(D);w=u(he,"diffuse \u{1FA84}"),he.forEach(n),Z.forEach(n),J=S(x),f=s(x,"DIV",{class:!0});var t=l(f);g=s(t,"LABEL",{class:!0});var o=l(g);E=s(o,"INPUT",{accept:!0,style:!0,type:!0}),ie=u(o,` upload img`),o.forEach(n),G=S(t),U=s(t,"P",{class:!0});var m=l(U);ce=u(m,"pro tip: upload img by dropping on the canvas"),m.forEach(n),t.forEach(n),te=S(x),W=s(x,"DIV",{});var _=l(W);Q=s(_,"P",{class:!0});var y=l(Q);X=u(y,"Images returned: "),ae=u(y,c[2]),y.forEach(n),_.forEach(n),x.forEach(n),this.h()},h(){a(I,"class","font-bold align-middle py-2"),a(d,"class","overflow-auto resize-y py-2 px-3 min-h-[42px] max-h-[500px] !w-[181px] whitespace-pre-wrap inline-block border border-gray-200 shadow-inner outline-none svelte-1wfa7x9"),a(d,"role","textbox"),a(d,"contenteditable",""),a(d,"spellcheck","false"),a(d,"dir","auto"),a(d,"maxlength","200"),c[1]===void 0&&yt(()=>c[16].call(d)),a(i,"class","flex gap-x-2 mt-3 items-start justify-center align-vertical"),a(j,"class","font-bold align-middle py-2"),a(k,"class","overflow-auto resize-y py-2 px-3 min-h-[42px] max-h-[500px] !w-[181px] whitespace-pre-wrap inline-block border border-gray-200 shadow-inner outline-none svelte-1wfa7x9"),a(k,"role","textbox"),a(k,"contenteditable",""),Et(k,"--placeholder","'Add prompt'"),a(k,"spellcheck","false"),a(k,"dir","auto"),a(k,"maxlength","1000"),c[0]===void 0&&yt(()=>c[17].call(k)),a(C,"class","flex gap-x-2 mt-3 items-start justify-center"),a(D,"class","bg-sky-200 hover:bg-sky-300 text-sky-900 font-bold py-[0.555rem] px-4 rounded-xl"),a(F,"class",M="flex gap-x-2 mt-3 items-start justify-center "+(c[3]?"animate-pulse":"")),a(E,"accept","image/*"),Et(E,"display","none"),a(E,"type","file"),a(g,"class","inline border py-2 px-3 bg-slate-200 cursor-pointer"),a(U,"class","hidden desktop:inline mt-2 opacity-50"),a(f,"class","mt-4"),a(Q,"class","my-4")},m(N,x){De(N,h,x),e(h,i),e(i,I),e(I,A),e(i,R),e(i,d),c[1]!==void 0&&(d.textContent=c[1]),e(h,H),e(h,C),e(C,j),e(j,v),e(C,b),e(C,k),c[0]!==void 0&&(k.textContent=c[0]),e(h,T),e(h,F),e(F,D),e(D,w),e(h,J),e(h,f),e(f,g),e(g,E),c[18](E),e(g,ie),e(f,G),e(f,U),e(U,ce),e(h,te),e(h,W),e(W,Q),e(Q,X),e(Q,ae),$||(ne=[me(d,"input",c[16]),me(d,"keydown",c[13]),me(k,"input",c[17]),me(k,"keydown",c[13]),me(D,"click",c[9]),me(E,"change",c[10])],$=!0)},p(N,x){x[0]&2&&N[1]!==d.textContent&&(d.textContent=N[1]),x[0]&1&&N[0]!==k.textContent&&(k.textContent=N[0]),x[0]&8&&M!==(M="flex gap-x-2 mt-3 items-start justify-center "+(N[3]?"animate-pulse":""))&&a(F,"class",M),x[0]&4&&Ht(ae,N[2])},d(N){N&&n(h),c[18](null),$=!1,xt(ne)}}}function Ft(c){let h,i,I,A,R,d,H,C,j,v,b,k,T,F,D,w,M,J,f,g,E,ie,G,U,ce,te,W,Q,X,ae,$,ne,N,x,oe,de,V,fe,Z,he,t,o,m,_,y,L,K,ee,re,ye,se,Le,Ce,Ee,Re,ge,Ve,qe,xe,He,Fe,pe,Ue,be,Oe,ze,we,Ge,We,Pe,Ke,Ye,ue,Je,ve,Qe,Xe,_e,Ze,Be,$e,rt,O=!c[4]&&kt(),q=c[4]&&Dt(c);return{c(){h=r("link"),i=r("script"),A=r("script"),d=r("script"),C=P(),j=r("div"),v=r("canvas"),k=P(),T=r("div"),O&&O.c(),F=P(),D=r("div"),w=P(),q&&q.c(),J=P(),f=r("article"),g=r("div"),E=r("p"),ie=p("This is a fork of Huggingface\u2019s "),G=r("a"),U=p("diffuse-the-rest"),ce=p(", with the additional ability to change the strength, and other just miscellaneous tweaks."),te=P(),W=r("p"),Q=p("Github repo: "),X=r("a"),ae=p("dbirks/diffuse-the-rest"),$=P(),ne=r("p"),N=p("Hi Rachel \u{1F44B}\u{1F642}"),x=P(),oe=r("hr"),de=P(),V=r("p"),fe=p("Stable Diffusion model by "),Z=r("a"),he=p("CompVis"),t=p(" and "),o=r("a"),m=p("Stability AI"),_=p(" - Demo by \u{1F917} Hugging Face"),y=P(),L=r("p"),K=p("Powered by "),ee=r("a"),re=p("\u{1F917} Diffusers: State-of-the-art diffusion models for image and audio generation in PyTorch"),ye=p(". Based on "),se=r("a"),Le=p("notebook by @psuraj28"),Ce=P(),Ee=r("p"),Re=p("Check out "),ge=r("a"),Ve=p("Stable Diffusion Gradio demo"),qe=P(),xe=r("h3"),He=p("LICENSE"),Fe=P(),pe=r("p"),Ue=p("The model is licensed with a "),be=r("a"),Oe=p("CreativeML Open RAIL-M"),ze=p(" license. The authors claim no rights on the outputs you generate, you are free to use them and are accountable for their use which must not go against the provisions set in this license. The license forbids you from sharing any content that violates any laws, produce any harm to a person, disseminate any personal information that would be meant for harm, spread misinformation and target vulnerable groups. For the full list of restrictions please "),we=r("a"),Ge=p("read the license"),We=P(),Pe=r("h3"),Ke=p("Biases and content acknowledgment"),Ye=P(),ue=r("p"),Je=p("Despite how impressive being able to turn text into image is, beware to the fact that this model may output content that reinforces or exacerbates societal biases, as well as realistic faces, pornography and violence. The model was trained on the "),ve=r("a"),Qe=p("LAION-5B dataset"),Xe=p(", which scraped non-curated image-text-pairs from the internet (the exception being the removal of illegal content) and is meant for research purposes. You can read more in the "),_e=r("a"),Ze=p("model card"),this.h()},l(B){const z=Bt('[data-svelte="svelte-bw39ln"]',Te.head);h=s(z,"LINK",{href:!0,rel:!0}),i=s(z,"SCRIPT",{src:!0});var Pt=l(i);Pt.forEach(n),A=s(z,"SCRIPT",{src:!0});var St=l(A);St.forEach(n),d=s(z,"SCRIPT",{src:!0});var At=l(d);At.forEach(n),z.forEach(n),C=S(B),j=s(B,"DIV",{class:!0});var Me=l(j);v=s(Me,"CANVAS",{class:!0}),l(v).forEach(n),k=S(Me),T=s(Me,"DIV",{class:!0});var Ie=l(T);O&&O.l(Ie),F=S(Ie),D=s(Ie,"DIV",{id:!0}),l(D).forEach(n),w=S(Ie),q&&q.l(Ie),Ie.forEach(n),Me.forEach(n),J=S(B),f=s(B,"ARTICLE",{class:!0});var le=l(f);g=s(le,"DIV",{class:!0});var Y=l(g);E=s(Y,"P",{});var Ne=l(E);ie=u(Ne,"This is a fork of Huggingface\u2019s "),G=s(Ne,"A",{href:!0,rel:!0});var st=l(G);U=u(st,"diffuse-the-rest"),st.forEach(n),ce=u(Ne,", with the additional ability to change the strength, and other just miscellaneous tweaks."),Ne.forEach(n),te=S(Y),W=s(Y,"P",{});var et=l(W);Q=u(et,"Github repo: "),X=s(et,"A",{href:!0,rel:!0});var lt=l(X);ae=u(lt,"dbirks/diffuse-the-rest"),lt.forEach(n),et.forEach(n),$=S(Y),ne=s(Y,"P",{});var it=l(ne);N=u(it,"Hi Rachel \u{1F44B}\u{1F642}"),it.forEach(n),x=S(Y),oe=s(Y,"HR",{}),de=S(Y),V=s(Y,"P",{});var ke=l(V);fe=u(ke,"Stable Diffusion model by "),Z=s(ke,"A",{href:!0,rel:!0});var ct=l(Z);he=u(ct,"CompVis"),ct.forEach(n),t=u(ke," and "),o=s(ke,"A",{href:!0,rel:!0});var dt=l(o);m=u(dt,"Stability AI"),dt.forEach(n),_=u(ke," - Demo by \u{1F917} Hugging Face"),ke.forEach(n),y=S(Y),L=s(Y,"P",{});var Se=l(L);K=u(Se,"Powered by "),ee=s(Se,"A",{href:!0,rel:!0});var ft=l(ee);re=u(ft,"\u{1F917} Diffusers: State-of-the-art diffusion models for image and audio generation in PyTorch"),ft.forEach(n),ye=u(Se,". Based on "),se=s(Se,"A",{href:!0,rel:!0});var ht=l(se);Le=u(ht,"notebook by @psuraj28"),ht.forEach(n),Se.forEach(n),Ce=S(Y),Ee=s(Y,"P",{});var tt=l(Ee);Re=u(tt,"Check out "),ge=s(tt,"A",{href:!0,rel:!0});var pt=l(ge);Ve=u(pt,"Stable Diffusion Gradio demo"),pt.forEach(n),tt.forEach(n),Y.forEach(n),qe=S(le),xe=s(le,"H3",{});var ut=l(xe);He=u(ut,"LICENSE"),ut.forEach(n),Fe=S(le),pe=s(le,"P",{});var Ae=l(pe);Ue=u(Ae,"The model is licensed with a "),be=s(Ae,"A",{href:!0,rel:!0});var mt=l(be);Oe=u(mt,"CreativeML Open RAIL-M"),mt.forEach(n),ze=u(Ae," license. The authors claim no rights on the outputs you generate, you are free to use them and are accountable for their use which must not go against the provisions set in this license. The license forbids you from sharing any content that violates any laws, produce any harm to a person, disseminate any personal information that would be meant for harm, spread misinformation and target vulnerable groups. For the full list of restrictions please "),we=s(Ae,"A",{href:!0,rel:!0});var gt=l(we);Ge=u(gt,"read the license"),gt.forEach(n),Ae.forEach(n),We=S(le),Pe=s(le,"H3",{});var bt=l(Pe);Ke=u(bt,"Biases and content acknowledgment"),bt.forEach(n),Ye=S(le),ue=s(le,"P",{});var je=l(ue);Je=u(je,"Despite how impressive being able to turn text into image is, beware to the fact that this model may output content that reinforces or exacerbates societal biases, as well as realistic faces, pornography and violence. The model was trained on the "),ve=s(je,"A",{href:!0,rel:!0});var wt=l(ve);Qe=u(wt,"LAION-5B dataset"),wt.forEach(n),Xe=u(je,", which scraped non-curated image-text-pairs from the internet (the exception being the removal of illegal content) and is meant for research purposes. You can read more in the "),_e=s(je,"A",{href:!0,rel:!0});var vt=l(_e);Ze=u(vt,"model card"),vt.forEach(n),je.forEach(n),le.forEach(n),this.h()},h(){a(h,"href","https://cdnjs.cloudflare.com/ajax/libs/drawingboard.js/0.4.2/drawingboard.css"),a(h,"rel","stylesheet"),at(i.src,I="https://code.jquery.com/jquery-1.12.4.min.js")||a(i,"src",I),at(A.src,R="https://cdnjs.cloudflare.com/ajax/libs/drawingboard.js/0.4.2/drawingboard.min.js")||a(A,"src",R),at(d.src,H="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.1/iframeResizer.contentWindow.min.js")||a(d,"src",H),a(v,"class",b="border-[1.2px] desktop:mt-[34px] "+(c[8]?"":"hidden")),a(D,"id","board-container"),a(T,"class",M="flex flex-col items-center "+(c[3]?"pointer-events-none":"")),a(j,"class","flex flex-wrap gap-x-4 gap-y-2 justify-center my-8"),a(G,"href","https://huggingface.co/spaces/huggingface-projects/diffuse-the-rest"),a(G,"rel","nofollow"),a(X,"href","https://github.com/dbirks/diffuse-the-rest"),a(X,"rel","nofollow"),a(Z,"href","https://huggingface.co/CompVis"),a(Z,"rel","nofollow"),a(o,"href","https://huggingface.co/stabilityai"),a(o,"rel","nofollow"),a(ee,"href","https://github.com/huggingface/diffusers"),a(ee,"rel","nofollow"),a(se,"href","https://twitter.com/psuraj28/status/1562039265126670339"),a(se,"rel","nofollow"),a(ge,"href","https://huggingface.co/spaces/stabilityai/stable-diffusion"),a(ge,"rel","nofollow"),a(g,"class","text-center"),a(be,"href","https://huggingface.co/spaces/CompVis/stable-diffusion-license"),a(be,"rel","nofollow"),a(we,"href","https://huggingface.co/spaces/CompVis/stable-diffusion-license"),a(we,"rel","nofollow"),a(ve,"href","https://laion.ai/blog/laion-5b/"),a(ve,"rel","nofollow"),a(_e,"href","https://huggingface.co/CompVis/stable-diffusion-v1-4"),a(_e,"rel","nofollow"),a(f,"class",Be="prose-sm px-4 md:px-12 lg:px-56 mb-8 "+(c[4]?"":"hidden"))},m(B,z){e(Te.head,h),e(Te.head,i),e(Te.head,A),e(Te.head,d),De(B,C,z),De(B,j,z),e(j,v),c[14](v),e(j,k),e(j,T),O&&O.m(T,null),e(T,F),e(T,D),c[15](D),e(T,w),q&&q.m(T,null),De(B,J,z),De(B,f,z),e(f,g),e(g,E),e(E,ie),e(E,G),e(G,U),e(E,ce),e(g,te),e(g,W),e(W,Q),e(W,X),e(X,ae),e(g,$),e(g,ne),e(ne,N),e(g,x),e(g,oe),e(g,de),e(g,V),e(V,fe),e(V,Z),e(Z,he),e(V,t),e(V,o),e(o,m),e(V,_),e(g,y),e(g,L),e(L,K),e(L,ee),e(ee,re),e(L,ye),e(L,se),e(se,Le),e(g,Ce),e(g,Ee),e(Ee,Re),e(Ee,ge),e(ge,Ve),e(f,qe),e(f,xe),e(xe,He),e(f,Fe),e(f,pe),e(pe,Ue),e(pe,be),e(be,Oe),e(pe,ze),e(pe,we),e(we,Ge),e(f,We),e(f,Pe),e(Pe,Ke),e(f,Ye),e(f,ue),e(ue,Je),e(ue,ve),e(ve,Qe),e(ue,Xe),e(ue,_e),e(_e,Ze),$e||(rt=[me(It,"drop",Mt(Nt(c[11]))),me(It,"paste",c[12])],$e=!0)},p(B,z){z[0]&256&&b!==(b="border-[1.2px] desktop:mt-[34px] "+(B[8]?"":"hidden"))&&a(v,"class",b),B[4]?O&&(O.d(1),O=null):O||(O=kt(),O.c(),O.m(T,F)),B[4]?q?q.p(B,z):(q=Dt(B),q.c(),q.m(T,null)):q&&(q.d(1),q=null),z[0]&8&&M!==(M="flex flex-col items-center "+(B[3]?"pointer-events-none":""))&&a(T,"class",M),z[0]&16&&Be!==(Be="prose-sm px-4 md:px-12 lg:px-56 mb-8 "+(B[4]?"":"hidden"))&&a(f,"class",Be)},i:_t,o:_t,d(B){n(h),n(i),n(A),n(d),B&&n(C),B&&n(j),c[14](null),O&&O.d(),c[15](null),q&&q.d(),B&&n(J),B&&n(f),$e=!1,xt(rt)}}}const ot=500,Ct=3e3;function Ut(){window.createImageBitmap=async function(c){return new Promise((h,i)=>{const I=document.createElement("canvas"),A=I.getContext("2d");I.width=c.width,I.height=c.height,A.putImageData(c,0,0);const R=I.toDataURL(),d=document.createElement("img");d.addEventListener("load",()=>{h(d)}),d.src=R})}}function Ot(){const c=document.querySelectorAll("a");for(const h of c)h.target="_blank"}function zt(c,h,i){let I="",A="0.85",R="0",d=!1,H=!1,C=!1,j,v,b,k,T,F,D,w=400,M,J,f,g=!1,E=[],ie;async function G(){if(!b)return;const t=b.createImageData(v.width,v.height),o=t.data;for(let y=0,L=o.length;yU(t))}async function ce(t){const o=t.toDataURL("png"),_=await(await fetch(o)).blob(),y=new File([_],"canvas shot.png",{type:"image/png"}),L=t.getContext("2d").getImageData(0,0,w,w),K=await createImageBitmap(L);return{imgFile:y,imgBitmap:K}}async function te(){if(!I)return alert("Please add prompt");if(!v||!b)return;D&&clearInterval(D),i(3,d=!0),i(8,g=!1),C=!1,ae(),k=performance.now(),G();const{imgFile:t,imgBitmap:o}=await ce(v),m=new FormData;m.append("prompt",I),m.append("strength",A),m.append("image",t);try{const _=await fetch("https://sdb.pcuenca.net/i2i",{method:"POST",body:m}),y=JSON.parse(await _.text()),{images:L}=y;if(i(2,R=L.length.toString()),!L.length)return alert("All the results were flagged. Please try again with diffeerent sketch + prompt");E=await Promise.all(L.map(async ee=>{const re=new Image;return re.src=`data:image/png;base64, ${ee}`,await new Promise((ye,se)=>{re.onload=()=>ye(re)}),re})),E.push(o),ie={sketch:t,generations:await Promise.all(L.map(async ee=>{const re=`data:image/jpeg;base64, ${ee}`,se=await(await fetch(re)).blob(),Ce=`diffuse-the-rest-${Date.now()%200}.jpeg`;return new File([se],Ce,{type:"image/jpeg"})}))},i(8,g=!0);let K=0;T=performance.now(),U(E[K%E.length]),F=()=>{D&&clearInterval(D),T=performance.now(),K=K+1,U(E[K%E.length])},D=setInterval(()=>{K=K+1,T=performance.now(),U(E[K%E.length])},2500),H||W(),C=!0}catch(_){console.error(_),alert("Error happened, queue might be full. Please try again in a bit :)")}finally{i(3,d=!1)}}function W(){const t=document.createElement("div");t.className="drawing-board-control";const o=document.createElement("button");o.innerHTML="\u23EF",o.onclick=F,t.append(o);const m=document.querySelector(".drawing-board-controls");m&&E.length>1&&(m.appendChild(t),H=!0,i(5,M.onclick=()=>{D&&clearInterval(D)},M))}function Q(){const t=document.createElement("div");t.className="drawing-board-control";const o=document.createElement("button");o.innerHTML="\u{1F9F9}",o.onclick=()=>{b==null||b.clearRect(0,0,w,w),E=[],i(8,g=!1)},t.append(o);const m=document.querySelector(".drawing-board-controls");m&&m.appendChild(t)}function X(){const t=document.createElement("div");t.className="drawing-board-control";const o=document.createElement("button");o.innerHTML="\u2B07\uFE0F",o.onclick=()=>{if(!v)return;const _=document.createElement("a"),y=Date.now()%200;_.download=`diffuse-the-rest-${y}.png`,_.href=v.toDataURL(),_.click()},t.append(o);const m=document.querySelector(".drawing-board-controls");m&&m.appendChild(t)}function ae(){const t=f.getContext("2d");i(7,f.width=v.width,f),i(7,f.height=v.height,f),t.drawImage(v,0,0)}async function $(t){D&&clearInterval(D);const o=new Image;o.src=URL.createObjectURL(t),await new Promise((y,L)=>{o.onload=()=>y(o)});const{width:m,height:_}=o;if(m==_)b==null||b.drawImage(o,0,0,m,_,0,0,w,w);else if(m>_){const y=Math.floor(w*_/m),L=Math.floor((w-y)/2);b==null||b.drawImage(o,0,0,m,_,0,L,w,y)}else{const y=Math.floor(w*m/_),L=Math.floor((w-y)/2);b==null||b.drawImage(o,0,0,m,_,L,0,y,w)}}function ne(){var o;const t=(o=J.files)==null?void 0:o[0];t&&$(t)}function N(t){var _;if(!((_=t.dataTransfer)!=null&&_.files))return;t.preventDefault();const m=Array.from(t.dataTransfer.files)[0];$(m)}function x(t){if(!t.clipboardData)return;const o=Array.from(t.clipboardData.files);if(o.length===0)return;t.preventDefault();const m=o[0];$(m)}function oe(t){if(d)return t.preventDefault();t.code==="Enter"&&(t.preventDefault(),te())}Rt(async()=>{typeof createImageBitmap>"u"&&Ut();const{innerWidth:t}=window;w=Math.min(w,Math.floor(t*.75)),i(5,M.style.width=`${w}px`,M),i(5,M.style.height=`${w}px`,M),i(7,f.style.width=`${w}px`,f),i(7,f.style.height=`${w}px`,f),await Vt(),j=new window.DrawingBoard.Board("board-container",{size:10,controls:["Color",{Size:{type:"dropdown"}},{DrawingMode:{filler:!1}}],webStorage:!1,enlargeYourContainer:!0}),i(4,v=j.canvas),b=v.getContext("2d"),i(4,v.ondragover=function(o){return o.preventDefault(),!1},v),Q(),X(),Ot()});function de(t){nt[t?"unshift":"push"](()=>{f=t,i(7,f)})}function V(t){nt[t?"unshift":"push"](()=>{M=t,i(5,M)})}function fe(){A=this.textContent,i(1,A)}function Z(){I=this.textContent,i(0,I)}function he(t){nt[t?"unshift":"push"](()=>{J=t,i(6,J)})}return[I,A,R,d,v,M,J,f,g,te,ne,N,x,oe,de,V,fe,Z,he]}class Wt extends jt{constructor(h){super(),Tt(this,h,zt,Ft,Lt,{},null,[-1,-1])}}export{Wt as default};