import{b as y,c as f,d as p,e as h}from"./chunk-2HSWTXAE.js";import{a as g,d,g as u}from"./chunk-5LZLMWQV.js";import{t as m}from"./chunk-WA6RPIFK.js";import{A as l,M as s}from"./chunk-RZVYJQAK.js";import{b as o,d as i}from"./chunk-WZSJ3VOD.js";import{j as a}from"./chunk-62QEBAUP.js";var L={common:s,getConfig:l,insertCluster:d,insertEdge:p,insertEdgeLabel:y,insertMarkers:h,insertNode:u,interpolateToCurve:m,labelHelper:g,log:i,positionEdgeLabel:f},t={},w=o(r=>{for(let e of r)t[e.name]=e},"registerLayoutLoaders"),c=o(()=>{w([{name:"dagre",loader:o(()=>a(null,null,function*(){return yield import("./chunk-GR5X4DL7.js")}),"loader")},{name:"cose-bilkent",loader:o(()=>a(null,null,function*(){return yield import("./chunk-RTJ3PWRK.js")}),"loader")}])},"registerDefaultLayoutLoaders");c();var C=o((r,e)=>a(null,null,function*(){if(!(r.layoutAlgorithm in t))throw new Error(`Unknown layout algorithm: ${r.layoutAlgorithm}`);let n=t[r.layoutAlgorithm];return(yield n.loader()).render(r,e,L,{algorithm:n.algorithm})}),"render"),D=o((r="",{fallback:e="dagre"}={})=>{if(r in t)return r;if(e in t)return i.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{w as a,C as b,D as c};
