const css_c = "max-height:100%;height:100vw;image-rendering:pixelated"; window.addEventListener('DOMContentLoaded',async(event)=>await main());let main=async()=>{let l=(p||window.p).split(",").map((e)=>td(e));let _c=c||window.c;let b=document.body;b.style.cssText=css_b;while(_c?.length>0){let g=await lh(_c);if(g?.p.length>0){l.push(...tdl(g.p))}_c=g?.c||null}let cv=dp(l,true);cv.style.cssText=css_c;b.appendChild(cv);let h=document.head;let jl=h.querySelectorAll("script");jl.forEach((js)=>h.removeChild(js));let b64=cv.toDataURL('image/png');var m=document.createElement("meta");m.setAttribute("name","snapshot");m.setAttribute("content",b64);h.appendChild(m);const ij=document.createElement("script");ij.text=`window.addEventListener('DOMContentLoaded',(event)=>{let img=new Image();img.src=document.querySelector('meta[name=snapshot]')?.content;img.onload=()=>{let cv=document.querySelector('canvas');let ctx=cv.getContext('2d');ctx.drawImage(img,0,0)}});`;h.appendChild(ij)};