const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./dagre-KV5264BT-DGQh5NhF.js","./rolldown-runtime-BG2f4sTM.js","./reduce-CHQgHdXr.js","./_baseFor-DBc6wfxY.js","./isEmpty-D-5ng6I7.js","./lodash-hNqvBNwd.js","./merge-DIqo0EGT.js","./chunk-AGHRB4JF-COxpu2PX.js","./chunk-ICPOFSXX-CFvmAboO.js","./app-initial-BHB6SClA.js","./app-initial-Czet5G9g.css","./dist-CKldyVGb.js","./chunk-5PVQY5BW-DfdH3lpT.js","./src-D1Kyl_w4.js","./src-DWyvtO7a.js","./dist-BNkeg5V9.js","./chunk-U2HBQHQK-D5slOmuq.js","./esm-B1fsB5y-.js","./chunk-BSJP7CBP-DFvoyeko.js","./chunk-ZZ45TVLE-3eqPbOqm.js","./graphlib-C3puknBC.js","./chunk-X2U36JSP-DF5ovUWO.js","./chunk-5FUZZQ4R-DXh6s1If.js","./rough.esm-CxIZKu28.js","./chunk-ENJZ2VHE-BHXx9L73.js","./dagre-ByZQGFv2.js","./cose-bilkent-S5V4N54A-dX2T-8mu.js","./cytoscape.esm-BEZB12MU.js","./cytoscape-cose-bilkent-bwUXxoK6.js"])))=>i.map(i=>d[i]);
import{n as e}from"./rolldown-runtime-BG2f4sTM.js";import{Bmt as t,Vmt as n}from"./app-initial-BHB6SClA.js";import{i as r,n as i,r as a}from"./chunk-AGHRB4JF-COxpu2PX.js";import{A as o,s,y as c}from"./chunk-ICPOFSXX-CFvmAboO.js";import{d as l,u}from"./chunk-5PVQY5BW-DfdH3lpT.js";import{a as d,c as f,i as p,o as m}from"./chunk-5FUZZQ4R-DXh6s1If.js";import{a as h,i as g,n as _,o as v,r as y}from"./chunk-ENJZ2VHE-BHXx9L73.js";var b,x,S,C,w,T=e((()=>{_(),p(),u(),o(),a(),n(),b={common:s,getConfig:c,insertCluster:d,insertEdge:y,insertEdgeLabel:g,insertMarkers:h,insertNode:m,interpolateToCurve:l,labelHelper:f,log:r,positionEdgeLabel:v},x={},S=i(e=>{for(let t of e)x[t.name]=t},`registerLayoutLoaders`),i(()=>{S([{name:`dagre`,loader:i(async()=>await t(()=>import(`./dagre-KV5264BT-DGQh5NhF.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]),import.meta.url),`loader`)},{name:`cose-bilkent`,loader:i(async()=>await t(()=>import(`./cose-bilkent-S5V4N54A-dX2T-8mu.js`),__vite__mapDeps([26,1,13,9,10,14,27,28,7]),import.meta.url),`loader`)}])},`registerDefaultLayoutLoaders`)(),C=i(async(e,t)=>{if(!(e.layoutAlgorithm in x))throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(let t of e.nodes){let n=t.domId||t.id;t.domId=`${e.diagramId}-${n}`}let n=x[e.layoutAlgorithm],r=await n.loader(),{theme:i,themeVariables:a}=e.config,{useGradient:o,gradientStart:s,gradientStop:c}=a,l=t.attr(`id`);if(t.append(`defs`).append(`filter`).attr(`id`,`${l}-drop-shadow`).attr(`height`,`130%`).attr(`width`,`130%`).append(`feDropShadow`).attr(`dx`,`4`).attr(`dy`,`4`).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,`${i?.includes(`dark`)?`#FFFFFF`:`#000000`}`),t.append(`defs`).append(`filter`).attr(`id`,`${l}-drop-shadow-small`).attr(`height`,`150%`).attr(`width`,`150%`).append(`feDropShadow`).attr(`dx`,`2`).attr(`dy`,`2`).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,`${i?.includes(`dark`)?`#FFFFFF`:`#000000`}`),o){let e=t.append(`linearGradient`).attr(`id`,t.attr(`id`)+`-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);e.append(`svg:stop`).attr(`offset`,`0%`).attr(`stop-color`,s).attr(`stop-opacity`,1),e.append(`svg:stop`).attr(`offset`,`100%`).attr(`stop-color`,c).attr(`stop-opacity`,1)}return r.render(e,t,b,{algorithm:n.algorithm})},`render`),w=i((e=``,{fallback:t=`dagre`}={})=>{if(e in x)return e;if(t in x)return r.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw Error(`Both layout algorithms ${e} and ${t} are not registered.`)},`getRegisteredLayoutAlgorithm`)}));export{C as i,T as n,S as r,w as t};
//# sourceMappingURL=chunk-336JU56O-DY4O8Xg6.js.map