import{g as t,h as i}from"./src-D0l_EE0Y.js";import{c as e}from"./chunk-ABZYJK2D-4oq0nW03.js";var o=i((i,o,s,a)=>{i.attr("class",s);const{width:c,height:d,x:n,y:g}=h(i,o);e(i,d,c,a);const w=r(n,g,c,d,o);i.attr("viewBox",w),t.debug(`viewBox configured: ${w} with padding: ${o}`)},"setupViewPortForSVG"),h=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"),r=i((t,i,e,o,h)=>`${t-h} ${i-h} ${e} ${o}`,"createViewBox");export{o as t};