import{r as t,t as a}from"./c25d902c2-Dbv6uExJ.js";import{t as r}from"./c2a6d07ee-CfjUwk_j.js";import{j as e}from"./c255cf682-BhczLtlf.js";var s=r(),o=t((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),a.rx&&r.attr("rx",a.rx),a.ry&&r.attr("ry",a.ry),void 0!==a.attrs)for(const e in a.attrs)r.attr(e,a.attrs[e]);return a.class&&r.attr("class",a.class),r},"drawRect"),i=t((t,a)=>{o(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()},"drawBackgroundRect"),n=t((t,a)=>{const r=a.text.replace(e," "),s=t.append("text");s.attr("x",a.x),s.attr("y",a.y),s.attr("class","legend"),s.style("text-anchor",a.anchor),a.class&&s.attr("class",a.class);const o=s.append("tspan");return o.attr("x",a.x+2*a.textMargin),o.text(r),s},"drawText"),l=t((t,a,r,e)=>{const o=t.append("image");o.attr("x",a),o.attr("y",r);const i=(0,s.sanitizeUrl)(e);o.attr("xlink:href",i)},"drawImage"),x=t((t,a,r,e)=>{const o=t.append("use");o.attr("x",a),o.attr("y",r);const i=(0,s.sanitizeUrl)(e);o.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"),d=t(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),p=t(()=>{let t=a(".mermaidTooltip");return t.empty()&&(t=a("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),t},"createTooltip");export{o as a,d as c,l as i,i as n,n as o,x as r,c as s,p as t};