import{r as t}from"./src-DK-XqvI0.js";import{k as r}from"./chunk-ABZYJK2D-BzfONPcX.js";import{t as a}from"./dist-CoFav-12.js";var s=a(),e=t((t,r)=>{const a=t.append("rect");if(a.attr("x",r.x),a.attr("y",r.y),a.attr("fill",r.fill),a.attr("stroke",r.stroke),a.attr("width",r.width),a.attr("height",r.height),r.name&&a.attr("name",r.name),r.rx&&a.attr("rx",r.rx),r.ry&&a.attr("ry",r.ry),void 0!==r.attrs)for(const s in r.attrs)a.attr(s,r.attrs[s]);return r.class&&a.attr("class",r.class),a},"drawRect"),n=t((t,r)=>{e(t,{x:r.startx,y:r.starty,width:r.stopx-r.startx,height:r.stopy-r.starty,fill:r.fill,stroke:r.stroke,class:"rect"}).lower()},"drawBackgroundRect"),i=t((t,a)=>{const s=a.text.replace(r," "),e=t.append("text");e.attr("x",a.x),e.attr("y",a.y),e.attr("class","legend"),e.style("text-anchor",a.anchor),a.class&&e.attr("class",a.class);const n=e.append("tspan");return n.attr("x",a.x+2*a.textMargin),n.text(s),e},"drawText"),o=t((t,r,a,e)=>{const n=t.append("image");n.attr("x",r),n.attr("y",a);const i=(0,s.sanitizeUrl)(e);n.attr("xlink:href",i)},"drawImage"),x=t((t,r,a,e)=>{const n=t.append("use");n.attr("x",r),n.attr("y",a);const i=(0,s.sanitizeUrl)(e);n.attr("xlink:href",`#${i}`)},"drawEmbeddedImage"),c=t(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),l=t(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj");export{i as a,e as i,x as n,c as o,o as r,l as s,n as t};