import{i as t,r as i}from"./c25d902c2-Dbv6uExJ.js";import{c as e}from"./c255cf682-BhczLtlf.js";var o=i((i,o,s,a)=>{i.attr("class",s);const{width:c,height:d,x:n,y:x}=r(i,o);e(i,d,c,a);const g=h(n,x,c,d,o);i.attr("viewBox",g),t.debug(`viewBox configured: ${g} with padding: ${o}`)},"setupViewPortForSVG"),r=i((t,i)=>{const e=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:e.width+2*i,height:e.height+2*i,x:e.x,y:e.y}},"calculateDimensionsWithPadding"),h=i((t,i,e,o,r)=>`${t-r} ${i-r} ${e} ${o}`,"createViewBox");export{o as t};