(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,27679,t=>{"use strict";var e=t.i(35279),a=t.i(84722),r=t.i(39878);t.i(26286);var s=t.i(70837),l=(0,a.__name)((t,e)=>{let a=t.append("rect");if(a.attr("x",e.x),a.attr("y",e.y),a.attr("fill",e.fill),a.attr("stroke",e.stroke),a.attr("width",e.width),a.attr("height",e.height),e.name&&a.attr("name",e.name),e.rx&&a.attr("rx",e.rx),e.ry&&a.attr("ry",e.ry),void 0!==e.attrs)for(let t in e.attrs)a.attr(t,e.attrs[t]);return e.class&&a.attr("class",e.class),a},"drawRect"),i=(0,a.__name)((t,e)=>{l(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"}).lower()},"drawBackgroundRect"),n=(0,a.__name)((t,a)=>{let r=a.text.replace(e.lineBreakRegex," "),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);let l=s.append("tspan");return l.attr("x",a.x+2*a.textMargin),l.text(r),s},"drawText"),d=(0,a.__name)((t,e,a,s)=>{let l=t.append("image");l.attr("x",e),l.attr("y",a);let i=(0,r.sanitizeUrl)(s);l.attr("xlink:href",i)},"drawImage"),o=(0,a.__name)((t,e,a,s)=>{let l=t.append("use");l.attr("x",e),l.attr("y",a);let i=(0,r.sanitizeUrl)(s);l.attr("xlink:href",`#${i}`)},"drawEmbeddedImage"),x=(0,a.__name)(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),c=(0,a.__name)(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),p=(0,a.__name)(()=>{let t=(0,s.select)(".mermaidTooltip");return t.empty()&&(t=(0,s.select)("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");t.s(["createTooltip",0,p,"drawBackgroundRect",0,i,"drawEmbeddedImage",0,o,"drawImage",0,d,"drawRect",0,l,"drawText",0,n,"getNoteRect",0,x,"getTextObj",0,c])}]);