import{b as u,c as y,d as f,e as p}from"./chunk-AMKVDKGX.js";import{b as m,e as g,h as d}from"./chunk-TFGYOXMH.js";import{c as s}from"./chunk-6KRYBVZ4.js";import{K as l,y as n}from"./chunk-LVWZDTEF.js";import{b as o,d as a}from"./chunk-IKPJTG7B.js";var h={common:l,getConfig:n,insertCluster:g,insertEdge:f,insertEdgeLabel:u,insertMarkers:p,insertNode:d,interpolateToCurve:s,labelHelper:m,log:a,positionEdgeLabel:y},t={},L=o(r=>{for(let e of r)t[e.name]=e},"registerLayoutLoaders"),w=o(()=>{L([{name:"dagre",loader:o(async()=>await import("./dagre-6UL2VRFP-KVAIHYGB.js"),"loader")},{name:"cose-bilkent",loader:o(async()=>await import("./cose-bilkent-S5V4N54A-JM7ZHIXY.js"),"loader")}])},"registerDefaultLayoutLoaders");w();var _=o(async(r,e)=>{if(!(r.layoutAlgorithm in t))throw new Error(`Unknown layout algorithm: ${r.layoutAlgorithm}`);let i=t[r.layoutAlgorithm];return(await i.loader()).render(r,e,h,{algorithm:i.algorithm})},"render"),C=o((r="",{fallback:e="dagre"}={})=>{if(r in t)return r;if(e in t)return a.warn(`Layout algorithm ${r} is not registered. Using ${e} as fallback.`),e;throw new Error(`Both layout algorithms ${r} and ${e} are not registered.`)},"getRegisteredLayoutAlgorithm");export{L as a,_ as b,C as c};
//# sourceMappingURL=chunk-Q6GGCF3W.js.map
