const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./dagre-KV5264BT-BJJZGQOM.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-DR5eNcWR.js","./app-initial~avatarOverlayCompositionSurface~index~index-9fQ9wihu~index-BFCcxPM5~mapbox-gl-D~ch0na97m-DGJ4C9j8.js","./dist-CKldyVGb.js","./chunk-5PVQY5BW-BbQZwqS7.js","./app-initial~app-main~onboarding-page~mermaid-diagram~xychartDiagram-PRI3JC2R~timeline-defin~dcen2xty-DF12FUR9.js","./src-DAARyDAb.js","./src-DWyvtO7a.js","./dist-BNkeg5V9.js","./chunk-U2HBQHQK-1ea0xDQK.js","./esm-B1fsB5y-.js","./chunk-BSJP7CBP-DFvoyeko.js","./chunk-ZZ45TVLE-BBqrp2id.js","./graphlib-C3puknBC.js","./chunk-X2U36JSP-B_hQhnS7.js","./chunk-5FUZZQ4R-CyIhitb3.js","./rough.esm-CxIZKu28.js","./chunk-ENJZ2VHE-BjCyLcei.js","./dagre-ByZQGFv2.js","./cose-bilkent-S5V4N54A-BKyqPdgG.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{o as t,s as n}from"./app-initial~avatarOverlayCompositionSurface~index~index-9fQ9wihu~index-BFCcxPM5~mapbox-gl-D~ch0na97m-DGJ4C9j8.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-DR5eNcWR.js";import{d as l,u}from"./chunk-5PVQY5BW-BbQZwqS7.js";import{a as d,c as f,i as p,o as m}from"./chunk-5FUZZQ4R-CyIhitb3.js";import{a as h,i as g,n as _,o as v,r as y}from"./chunk-ENJZ2VHE-BjCyLcei.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-BJJZGQOM.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-BKyqPdgG.js`),__vite__mapDeps([26,1,13,12,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-1JNaXPk5.js.map