const r="/assets/avatar-ea67286d.gif",c=Symbol("watermark-dom");function m(i=document.body){let l=()=>{};const a=c.toString(),d=()=>{const e=document.getElementById(a);e&&i&&i.removeChild(e),window.removeEventListener("resize",l)},s=e=>{d();const o=document.createElement("canvas");o.width=300,o.height=240;const n=o.getContext("2d");n&&(n.rotate(-20*Math.PI/120),n.font="15px Vedana",n.fillStyle="rgba(0, 0, 0, 0.15)",n.textAlign="left",n.textBaseline="middle",n.fillText(e,o.width/20,o.height));const t=document.createElement("div");return t.id=a,t.style.pointerEvents="none",t.style.top="0px",t.style.left="0px",t.style.position="absolute",t.style.zIndex="100000000",t.style.width=document.documentElement.clientWidth+"px",t.style.height=document.documentElement.clientHeight+"px",t.style.background="url("+o.toDataURL("image/png")+") left top repeat",i&&i.appendChild(t),a};return{setWatermark:function(e){s(e),l=()=>{s(e)},window.addEventListener("resize",l)},clear:d}}export{r as a,m as u};
