const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./info-OMHHGYJF-Ss8M9aN-.js","./chunk-K5T4RW27-CIvAbCBS.js","./chunk-Bj-mKKzh.js","./isEmpty-D__iH1WQ.js","./_baseFor-SRtUHe7G.js","./reduce-CkcXOmmJ.js","./flatten-DtM0XAMt.js","./main-BFTHe6RY.js","./chunk-KGLVRYIC-DU2HGsau.js","./packet-4T2RLAQJ-DwSvJCuI.js","./chunk-FOC6F5B3-B0gygXWV.js","./pie-ZZUOXDRM-CwT8IZWe.js","./chunk-AA7GKIK3-B5Je89hs.js","./treeView-SZITEDCU-BXlrjVk8.js","./chunk-ORNJ4GCN-B7bzN4Vp.js","./architecture-YZFGNWBL-CqrPkqUA.js","./chunk-7N4EOEYR-CAcZDzbh.js","./gitGraph-7Q5UKJZL-DEyjgunU.js","./chunk-67CJDMHE-C-dITdcZ.js","./radar-PYXPWWZC-ep80oGlp.js","./chunk-2KRD3SAO-DKg6NFJe.js","./treemap-W4RFUUIX-DoMGuivC.js","./chunk-LIHQZDEY-DnSbArHv.js","./wardley-RL74JXVD-D9WaG_Ql.js","./chunk-CIAEETIT-CKs8trhv.js"])))=>i.map(i=>d[i]);
import{t as e}from"./preload-helper-Chd9yIcd.js";import{m as t}from"./chunk-K5T4RW27-CIvAbCBS.js";var n={},r={info:t(async()=>{let{createInfoServices:t}=await e(async()=>{let{createInfoServices:e}=await import(`./info-OMHHGYJF-Ss8M9aN-.js`);return{createInfoServices:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url);n.info=t().Info.parser.LangiumParser},`info`),packet:t(async()=>{let{createPacketServices:t}=await e(async()=>{let{createPacketServices:e}=await import(`./packet-4T2RLAQJ-DwSvJCuI.js`);return{createPacketServices:e}},__vite__mapDeps([9,1,2,3,4,5,6,7,10]),import.meta.url);n.packet=t().Packet.parser.LangiumParser},`packet`),pie:t(async()=>{let{createPieServices:t}=await e(async()=>{let{createPieServices:e}=await import(`./pie-ZZUOXDRM-CwT8IZWe.js`);return{createPieServices:e}},__vite__mapDeps([11,1,2,3,4,5,6,7,12]),import.meta.url);n.pie=t().Pie.parser.LangiumParser},`pie`),treeView:t(async()=>{let{createTreeViewServices:t}=await e(async()=>{let{createTreeViewServices:e}=await import(`./treeView-SZITEDCU-BXlrjVk8.js`);return{createTreeViewServices:e}},__vite__mapDeps([13,1,2,3,4,5,6,7,14]),import.meta.url);n.treeView=t().TreeView.parser.LangiumParser},`treeView`),architecture:t(async()=>{let{createArchitectureServices:t}=await e(async()=>{let{createArchitectureServices:e}=await import(`./architecture-YZFGNWBL-CqrPkqUA.js`);return{createArchitectureServices:e}},__vite__mapDeps([15,1,2,3,4,5,6,7,16]),import.meta.url);n.architecture=t().Architecture.parser.LangiumParser},`architecture`),gitGraph:t(async()=>{let{createGitGraphServices:t}=await e(async()=>{let{createGitGraphServices:e}=await import(`./gitGraph-7Q5UKJZL-DEyjgunU.js`);return{createGitGraphServices:e}},__vite__mapDeps([17,1,2,3,4,5,6,7,18]),import.meta.url);n.gitGraph=t().GitGraph.parser.LangiumParser},`gitGraph`),radar:t(async()=>{let{createRadarServices:t}=await e(async()=>{let{createRadarServices:e}=await import(`./radar-PYXPWWZC-ep80oGlp.js`);return{createRadarServices:e}},__vite__mapDeps([19,1,2,3,4,5,6,7,20]),import.meta.url);n.radar=t().Radar.parser.LangiumParser},`radar`),treemap:t(async()=>{let{createTreemapServices:t}=await e(async()=>{let{createTreemapServices:e}=await import(`./treemap-W4RFUUIX-DoMGuivC.js`);return{createTreemapServices:e}},__vite__mapDeps([21,1,2,3,4,5,6,7,22]),import.meta.url);n.treemap=t().Treemap.parser.LangiumParser},`treemap`),wardley:t(async()=>{let{createWardleyServices:t}=await e(async()=>{let{createWardleyServices:e}=await import(`./wardley-RL74JXVD-D9WaG_Ql.js`);return{createWardleyServices:e}},__vite__mapDeps([23,1,2,3,4,5,6,7,24]),import.meta.url);n.wardley=t().Wardley.parser.LangiumParser},`wardley`)};async function i(e,t){let i=r[e];if(!i)throw Error(`Unknown diagram type: ${e}`);n[e]||await i();let o=n[e].parse(t);if(o.lexerErrors.length>0||o.parserErrors.length>0)throw new a(o);return o.value}t(i,`parse`);var a=class extends Error{constructor(e){let t=e.lexerErrors.map(e=>`Lexer error on line ${e.line!==void 0&&!isNaN(e.line)?e.line:`?`}, column ${e.column!==void 0&&!isNaN(e.column)?e.column:`?`}: ${e.message}`).join(`
`),n=e.parserErrors.map(e=>`Parse error on line ${e.token.startLine!==void 0&&!isNaN(e.token.startLine)?e.token.startLine:`?`}, column ${e.token.startColumn!==void 0&&!isNaN(e.token.startColumn)?e.token.startColumn:`?`}: ${e.message}`).join(`
`);super(`Parsing failed: ${t} ${n}`),this.result=e}static{t(this,`MermaidParseError`)}};export{i as t};
//# sourceMappingURL=mermaid-parser.core-m1vXlCH9.js.map