import{aE as t,r as a}from"./mermaid-CC8t29Kt.js";const r=(t,a)=>{const r=t.append("rect");if(r.attr("x",a.x),r.attr("y",a.y),r.attr("fill",a.fill),r.attr("stroke",a.stroke),r.attr("width",a.width),r.attr("height",a.height),a.name&&r.attr("name",a.name),void 0!==a.rx&&r.attr("rx",a.rx),void 0!==a.ry&&r.attr("ry",a.ry),void 0!==a.attrs)for(const t in a.attrs)r.attr(t,a.attrs[t]);return void 0!==a.class&&r.attr("class",a.class),r},s=(t,a)=>{r(t,{x:a.startx,y:a.starty,width:a.stopx-a.startx,height:a.stopy-a.starty,fill:a.fill,stroke:a.stroke,class:"rect"}).lower()},e=(a,r)=>{const s=r.text.replace(t," "),e=a.append("text");e.attr("x",r.x),e.attr("y",r.y),e.attr("class","legend"),e.style("text-anchor",r.anchor),void 0!==r.class&&e.attr("class",r.class);const i=e.append("tspan");return i.attr("x",r.x+2*r.textMargin),i.text(s),e},i=(t,r,s,e)=>{const i=t.append("image");i.attr("x",r),i.attr("y",s);const n=a.sanitizeUrl(e);i.attr("xlink:href",n)},n=(t,r,s,e)=>{const i=t.append("use");i.attr("x",r),i.attr("y",s);const n=a.sanitizeUrl(e);i.attr("xlink:href",`#${n}`)},o=()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),x=()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0});export{s as a,x as b,n as c,r as d,i as e,e as f,o as g};
