import{f as a}from"./chunk-EF5W5FZL.js";var t={},o={info:a(async()=>{let{createInfoServices:e}=await import("./info-NVLQJR56-GYX5LCHD.js"),r=e().Info.parser.LangiumParser;t.info=r},"info"),packet:a(async()=>{let{createPacketServices:e}=await import("./packet-BFZMPI3H-5PFWISC3.js"),r=e().Packet.parser.LangiumParser;t.packet=r},"packet"),pie:a(async()=>{let{createPieServices:e}=await import("./pie-7BOR55EZ-W7HGEZV6.js"),r=e().Pie.parser.LangiumParser;t.pie=r},"pie"),architecture:a(async()=>{let{createArchitectureServices:e}=await import("./architecture-U656AL7Q-46A3QRNM.js"),r=e().Architecture.parser.LangiumParser;t.architecture=r},"architecture"),gitGraph:a(async()=>{let{createGitGraphServices:e}=await import("./gitGraph-F6HP7TQM-AEOFGK37.js"),r=e().GitGraph.parser.LangiumParser;t.gitGraph=r},"gitGraph"),radar:a(async()=>{let{createRadarServices:e}=await import("./radar-NHE76QYJ-Y5KIQ6U4.js"),r=e().Radar.parser.LangiumParser;t.radar=r},"radar"),treemap:a(async()=>{let{createTreemapServices:e}=await import("./treemap-KMMF4GRG-CNJ24PTL.js"),r=e().Treemap.parser.LangiumParser;t.treemap=r},"treemap")};async function n(e,r){let i=o[e];if(!i)throw new Error(`Unknown diagram type: ${e}`);t[e]||await i();let s=t[e].parse(r);if(s.lexerErrors.length>0||s.parserErrors.length>0)throw new p(s);return s.value}a(n,"parse");var p=class extends Error{constructor(e){let r=e.lexerErrors.map(c=>c.message).join(`
`),i=e.parserErrors.map(c=>c.message).join(`
`);super(`Parsing failed: ${r} ${i}`),this.result=e}static{a(this,"MermaidParseError")}};export{n as a};
//# sourceMappingURL=chunk-5NWG6I7K.js.map
