@kingsoftcloud/ksadk-web 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (169) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +77 -4
  3. package/RELEASE_PROVENANCE.json +2 -2
  4. package/dist-ksadk/assets/{ArtifactsPanel-DSU1sWD_.js → ArtifactsPanel-CytJCLMc.js} +1 -1
  5. package/dist-ksadk/assets/{CodeBlock-DOH6MVcn.js → CodeBlock-D6tEbvd9.js} +1 -1
  6. package/dist-ksadk/assets/{MathMessageMarkdown-BL8my1R2.js → MathMessageMarkdown-BBnihmbC.js} +1 -1
  7. package/dist-ksadk/assets/{MermaidBlock-Dz4IP-Tx.js → MermaidBlock-CI9NjqQx.js} +6 -6
  8. package/dist-ksadk/assets/{NativeTerminalPanel-DUrK0JpZ.js → NativeTerminalPanel-Czpx2MSS.js} +1 -1
  9. package/dist-ksadk/assets/{abnfDiagram-VCTEODGH-g20pFzNV.js → abnfDiagram-VCTEODGH-CNsXewmF.js} +1 -1
  10. package/dist-ksadk/assets/{arc-C4FzinUA.js → arc-x-74isv6.js} +1 -1
  11. package/dist-ksadk/assets/architecture-7GRP2DOG-C3S9W0aD.js +1 -0
  12. package/dist-ksadk/assets/{architectureDiagram-5GKGNRK7-DpIqL5h4.js → architectureDiagram-5GKGNRK7-tZ3w1B6m.js} +1 -1
  13. package/dist-ksadk/assets/{blockDiagram-NRAW4CY4-BjkljTNz.js → blockDiagram-NRAW4CY4-BEhGFh0b.js} +1 -1
  14. package/dist-ksadk/assets/{c4Diagram-UCG6FXSJ-Dk_ieq2X.js → c4Diagram-UCG6FXSJ-zrSgZM44.js} +1 -1
  15. package/dist-ksadk/assets/channel-CdffTTpb.js +1 -0
  16. package/dist-ksadk/assets/chunk-2Q5K7J3B-B6k89qGR.js +1 -0
  17. package/dist-ksadk/assets/{chunk-5VM5RSS4-BVHAchFb.js → chunk-5VM5RSS4-VZAcej21.js} +1 -1
  18. package/dist-ksadk/assets/{chunk-F27PBJKO-C-ipQzuS.js → chunk-F27PBJKO-DNUQP5bs.js} +1 -1
  19. package/dist-ksadk/assets/{chunk-G27WJ6UU-C2EyJbIK.js → chunk-G27WJ6UU-BVuLv5Os.js} +1 -1
  20. package/dist-ksadk/assets/{chunk-JWPE2WC7-vYvVJb_M.js → chunk-JWPE2WC7-CEttzwEN.js} +1 -1
  21. package/dist-ksadk/assets/{chunk-LCL6LL3I-BcI6ysPT.js → chunk-LCL6LL3I-BT3bzrVf.js} +1 -1
  22. package/dist-ksadk/assets/{chunk-POPQ4Y6H-C030x_Z1.js → chunk-POPQ4Y6H-BvutC1JH.js} +1 -1
  23. package/dist-ksadk/assets/{chunk-RHFEMEQ7-yyGpsz4n.js → chunk-RHFEMEQ7-BIXm03MG.js} +1 -1
  24. package/dist-ksadk/assets/{chunk-SVP7TREG-BLTlmMU7.js → chunk-SVP7TREG--LDO57tP.js} +1 -1
  25. package/dist-ksadk/assets/{chunk-XXDRQBXY-C_32ArgP.js → chunk-XXDRQBXY-WtVtVhpq.js} +1 -1
  26. package/dist-ksadk/assets/classDiagram-DTDB5LWJ-C0BU8Yr9.js +1 -0
  27. package/dist-ksadk/assets/classDiagram-v2-JRS7N3AN-C0BU8Yr9.js +1 -0
  28. package/dist-ksadk/assets/{cose-bilkent-JH36ORCC-9YQYwdl0.js → cose-bilkent-JH36ORCC-CnqJMsPI.js} +1 -1
  29. package/dist-ksadk/assets/cynefin-OW5HDTMX-BckONr__.js +1 -0
  30. package/dist-ksadk/assets/{cynefinDiagram-5FMLGOSQ-ErLF5N13.js → cynefinDiagram-5FMLGOSQ-Ci9qjtA_.js} +1 -1
  31. package/dist-ksadk/assets/{dagre-3AP2YEHR-DFiQF-6f.js → dagre-3AP2YEHR-Ll3LkcYP.js} +1 -1
  32. package/dist-ksadk/assets/{dagre-BuhGnRI1.js → dagre-CKrj2THw.js} +1 -1
  33. package/dist-ksadk/assets/{diagram-S7CK7UJ4-Bt1v8-GC.js → diagram-S7CK7UJ4-BQ1slPEx.js} +1 -1
  34. package/dist-ksadk/assets/{diagram-UQ7AKVKN-DSCxJdBK.js → diagram-UQ7AKVKN-BXz7DvIg.js} +1 -1
  35. package/dist-ksadk/assets/{diagram-VSXAHHWV-DHfYwp_9.js → diagram-VSXAHHWV-DOno97OL.js} +1 -1
  36. package/dist-ksadk/assets/{diagram-VX7I27RA-DdzD-4Le.js → diagram-VX7I27RA-CU2kHvv3.js} +1 -1
  37. package/dist-ksadk/assets/{diagram-Z3DM3KII-Du-nAJ9F.js → diagram-Z3DM3KII-mhpvOavV.js} +1 -1
  38. package/dist-ksadk/assets/{dist-dydu68Fl.js → dist-2cbEIexW.js} +1 -1
  39. package/dist-ksadk/assets/{dist-ClxGviKw.js → dist-4j-rswH6.js} +1 -1
  40. package/dist-ksadk/assets/{dist-B7seoj3d.js → dist-B-VEMnGR.js} +1 -1
  41. package/dist-ksadk/assets/{dist-BjU6y-A2.js → dist-B6XMlZpc.js} +1 -1
  42. package/dist-ksadk/assets/{dist-BytlxIDT.js → dist-BQCggVji.js} +1 -1
  43. package/dist-ksadk/assets/{dist-W-TIVntx.js → dist-BZiMQVbN.js} +1 -1
  44. package/dist-ksadk/assets/{dist-CXYYBw3_.js → dist-BvMDy0Xp.js} +1 -1
  45. package/dist-ksadk/assets/{dist-CSh_DE14.js → dist-BxjBfG2w.js} +1 -1
  46. package/dist-ksadk/assets/{dist-CttYUqzS.js → dist-Byl0QKIY.js} +1 -1
  47. package/dist-ksadk/assets/{dist-DnfXs8Vn.js → dist-C-Q0Ulfg.js} +1 -1
  48. package/dist-ksadk/assets/{dist-dDdADKFA.js → dist-C-V2Wj4x.js} +1 -1
  49. package/dist-ksadk/assets/{dist-DUX-id_F.js → dist-CPZHorum.js} +1 -1
  50. package/dist-ksadk/assets/{dist-BE7bu-DL.js → dist-CTeZLI0m.js} +1 -1
  51. package/dist-ksadk/assets/{dist-ngtN0DJB.js → dist-CUFAKgYs.js} +1 -1
  52. package/dist-ksadk/assets/{dist-BX8z72IC.js → dist-CaTDm1g0.js} +1 -1
  53. package/dist-ksadk/assets/{dist-DmldrHd_.js → dist-CoCI5ZIy.js} +1 -1
  54. package/dist-ksadk/assets/{dist-Dq9gLD7L.js → dist-DGFsOxe9.js} +1 -1
  55. package/dist-ksadk/assets/{dist-C_wsv-Qd.js → dist-DeO3Qj-D.js} +1 -1
  56. package/dist-ksadk/assets/{dist-DNp6rLRA.js → dist-DgSf2VGQ.js} +1 -1
  57. package/dist-ksadk/assets/{dist-Bf2M8m3N.js → dist-DwwtGqH9.js} +1 -1
  58. package/dist-ksadk/assets/{dist-BVDffZ0U.js → dist-hRISJdRx.js} +1 -1
  59. package/dist-ksadk/assets/{dist-8hqcx0sU.js → dist-oPMjOYRU.js} +1 -1
  60. package/dist-ksadk/assets/{ebnfDiagram-PWID7BFC-Da9C9NO1.js → ebnfDiagram-PWID7BFC-DAH8tjOy.js} +1 -1
  61. package/dist-ksadk/assets/{erDiagram-SSCWMZ5O-EAGqqR79.js → erDiagram-SSCWMZ5O-JvDkJGJ3.js} +1 -1
  62. package/dist-ksadk/assets/eventmodeling-NTZA5JFV-vjy4Z61x.js +1 -0
  63. package/dist-ksadk/assets/flowDiagram-A5DVABFB-CvJ64Qzs.js +1 -0
  64. package/dist-ksadk/assets/{ganttDiagram-EL5Y4UJY-DqJsKb59.js → ganttDiagram-EL5Y4UJY-B-SEC706.js} +1 -1
  65. package/dist-ksadk/assets/gitGraph-4MIJSDKK-CX3KwgqY.js +1 -0
  66. package/dist-ksadk/assets/{gitGraphDiagram-WWUBYQGX-B6g4dtDi.js → gitGraphDiagram-WWUBYQGX-D7OJf_No.js} +1 -1
  67. package/dist-ksadk/assets/{index-8ipRcQ-M.js → index-BkDx9KsG.js} +65 -64
  68. package/dist-ksadk/assets/{index-ByFCqjlh.css → index-DW7rZ4ml.css} +1 -1
  69. package/dist-ksadk/assets/info-A6RAGUB7-CYHIOuL5.js +1 -0
  70. package/dist-ksadk/assets/{infoDiagram-RXCK75RN-Djm_nbd5.js → infoDiagram-RXCK75RN-CTIHOSud.js} +1 -1
  71. package/dist-ksadk/assets/{ishikawaDiagram-5VMMS53U-DWya9SG2.js → ishikawaDiagram-5VMMS53U-HMO7FchJ.js} +1 -1
  72. package/dist-ksadk/assets/{journeyDiagram-EYS64GPL-DutxhSNI.js → journeyDiagram-EYS64GPL-DeFbDr5t.js} +1 -1
  73. package/dist-ksadk/assets/{kanban-definition-3QL26DDD-DJdOF8Fm.js → kanban-definition-3QL26DDD-D3OeNqXY.js} +1 -1
  74. package/dist-ksadk/assets/{katex-vFWytM5c.js → katex-DCJHF0vD.js} +1 -1
  75. package/dist-ksadk/assets/{linear-BHjG8b-J.js → linear-D3-vxS4W.js} +1 -1
  76. package/dist-ksadk/assets/{mermaid-parser.core-KGSy4jWT.js → mermaid-parser.core-C-Sc5_7E.js} +2 -2
  77. package/dist-ksadk/assets/{mindmap-definition-FBJOCRG2-9-HC88D4.js → mindmap-definition-FBJOCRG2-D-XtspHN.js} +1 -1
  78. package/dist-ksadk/assets/packet-AYTQ26CC-Ctg2wH4o.js +1 -0
  79. package/dist-ksadk/assets/{pegDiagram-XKGWAZYB-DrEZd4fD.js → pegDiagram-XKGWAZYB-BYbAq9Nb.js} +1 -1
  80. package/dist-ksadk/assets/pie-WAS4IAKB-CU6GnSzI.js +1 -0
  81. package/dist-ksadk/assets/{pieDiagram-E7YTZNPT-DpjqOFFp.js → pieDiagram-E7YTZNPT-DQ2yX4VQ.js} +1 -1
  82. package/dist-ksadk/assets/{quadrantDiagram-AXDQQJYC-BiNhgOXX.js → quadrantDiagram-AXDQQJYC-rvRPUN0j.js} +1 -1
  83. package/dist-ksadk/assets/radar-RG4KPBEZ-Bhe0us4A.js +1 -0
  84. package/dist-ksadk/assets/railroad-74A4TZTK-DEgiNGfx.js +1 -0
  85. package/dist-ksadk/assets/railroad-abnf-HS5TGJTU-GK7ct0QX.js +1 -0
  86. package/dist-ksadk/assets/railroad-ebnf-LZEXJU2U-BzlcTUmk.js +1 -0
  87. package/dist-ksadk/assets/railroad-peg-WCYAUIDC-7ESM96BW.js +1 -0
  88. package/dist-ksadk/assets/{railroadDiagram-O6MQD6OU-_Y3Ojg6G.js → railroadDiagram-O6MQD6OU-2OVn6qwA.js} +1 -1
  89. package/dist-ksadk/assets/{requirementDiagram-EFPCY7ZU-DeCFdg9K.js → requirementDiagram-EFPCY7ZU-ChWVLAKz.js} +1 -1
  90. package/dist-ksadk/assets/{sankeyDiagram-P5KCCOFB-CPH75rhw.js → sankeyDiagram-P5KCCOFB-Cb5gXi_j.js} +1 -1
  91. package/dist-ksadk/assets/{sequenceDiagram-WJ2MYXX4-OEpQQdr4.js → sequenceDiagram-WJ2MYXX4-D7g_-PUM.js} +1 -1
  92. package/dist-ksadk/assets/{sizeCapture-X5ZJPWSS-heUErzhI.js → sizeCapture-X5ZJPWSS-D__whCj3.js} +1 -1
  93. package/dist-ksadk/assets/{stateDiagram-HBIQ2CUA-DvA3jSMB.js → stateDiagram-HBIQ2CUA-CpKIc0dl.js} +1 -1
  94. package/dist-ksadk/assets/stateDiagram-v2-4QOOHH4V-D7ulg6TV.js +1 -0
  95. package/dist-ksadk/assets/{swimlanes-XN3QIQJK-CR-dfN_t.js → swimlanes-XN3QIQJK-CFJohC2b.js} +1 -1
  96. package/dist-ksadk/assets/swimlanesDiagram-VK2B7HYN-A-oZaquE.js +8 -0
  97. package/dist-ksadk/assets/{timeline-definition-24CTP7MA-DAVJf1TX.js → timeline-definition-24CTP7MA-Dg4AY0KC.js} +1 -1
  98. package/dist-ksadk/assets/treeView-Q6P3EWNA-D6u1mSx1.js +1 -0
  99. package/dist-ksadk/assets/treemap-WGGIJYW6-CM87Vav0.js +1 -0
  100. package/dist-ksadk/assets/{vennDiagram-4TSXK5OY-DwM8eDkh.js → vennDiagram-4TSXK5OY-A6cRoCBU.js} +1 -1
  101. package/dist-ksadk/assets/wardley-WFR3VGLG-BPoQUTzr.js +1 -0
  102. package/dist-ksadk/assets/{wardleyDiagram-VM6X3IG4-DZL-Zz2t.js → wardleyDiagram-VM6X3IG4-BVD1hMYl.js} +1 -1
  103. package/dist-ksadk/assets/{xychartDiagram-S5SC5T6Z-Dy6Yh_hu.js → xychartDiagram-S5SC5T6Z-BlBLXETg.js} +1 -1
  104. package/dist-ksadk/index.html +2 -2
  105. package/dist-lib/{ArtifactsPanel-DDCKcvaL.js → ArtifactsPanel-D2EtX4X_.js} +1 -1
  106. package/dist-lib/{CodeBlock-BS9DcS5a.js → CodeBlock-CPaeJbtf.js} +1 -1
  107. package/dist-lib/{MathMessageMarkdown-CpCcJFjZ.js → MathMessageMarkdown-Bpp4hI6Q.js} +2 -2
  108. package/dist-lib/{NativeTerminalPanel-CDqCdIly.js → NativeTerminalPanel-CJXzKV0z.js} +1 -1
  109. package/dist-lib/{WorkspacePanelContainer-DzbAkIfx.js → WorkspacePanelContainer-DbD-6xqx.js} +8 -7
  110. package/dist-lib/client-1WQCunUo.js +616 -0
  111. package/dist-lib/components/chat/A2UIActivityMessage.d.ts.map +1 -1
  112. package/dist-lib/components.js +2 -2
  113. package/dist-lib/conversation.js +28 -0
  114. package/dist-lib/core/conversation/client.d.ts +26 -0
  115. package/dist-lib/core/conversation/client.d.ts.map +1 -0
  116. package/dist-lib/core/conversation/contracts.d.ts +20 -0
  117. package/dist-lib/core/conversation/contracts.d.ts.map +1 -0
  118. package/dist-lib/core/conversation/errors.d.ts +12 -0
  119. package/dist-lib/core/conversation/errors.d.ts.map +1 -0
  120. package/dist-lib/core/conversation/hosted.d.ts +23 -0
  121. package/dist-lib/core/conversation/hosted.d.ts.map +1 -0
  122. package/dist-lib/core/conversation/index.d.ts +8 -0
  123. package/dist-lib/core/conversation/index.d.ts.map +1 -0
  124. package/dist-lib/core/conversation/presentation.d.ts +8 -0
  125. package/dist-lib/core/conversation/presentation.d.ts.map +1 -0
  126. package/dist-lib/core/conversation/reducer.d.ts +19 -0
  127. package/dist-lib/core/conversation/reducer.d.ts.map +1 -0
  128. package/dist-lib/core/conversation/renderer-registry.d.ts +20 -0
  129. package/dist-lib/core/conversation/renderer-registry.d.ts.map +1 -0
  130. package/dist-lib/core/conversation/types.d.ts +176 -0
  131. package/dist-lib/core/conversation/types.d.ts.map +1 -0
  132. package/dist-lib/core/run/dispatcher.d.ts.map +1 -1
  133. package/dist-lib/core/run/engine.d.ts +3 -0
  134. package/dist-lib/core/run/engine.d.ts.map +1 -1
  135. package/dist-lib/core/run/types.d.ts +7 -0
  136. package/dist-lib/core/run/types.d.ts.map +1 -1
  137. package/dist-lib/hooks/useRunAgent.d.ts.map +1 -1
  138. package/dist-lib/public/conversation.d.ts +10 -0
  139. package/dist-lib/public/conversation.d.ts.map +1 -0
  140. package/dist-lib/public/runtime.d.ts +2 -0
  141. package/dist-lib/public/runtime.d.ts.map +1 -1
  142. package/dist-lib/public/types.d.ts +1 -0
  143. package/dist-lib/public/types.d.ts.map +1 -1
  144. package/dist-lib/runtime.js +1467 -1128
  145. package/dist-lib/styles.css +1 -1
  146. package/package.json +11 -2
  147. package/schemas/release-provenance.schema.json +34 -0
  148. package/dist-ksadk/assets/architecture-7GRP2DOG-DjKratdf.js +0 -1
  149. package/dist-ksadk/assets/channel-4cQHKtx1.js +0 -1
  150. package/dist-ksadk/assets/chunk-2Q5K7J3B-DmgWkESh.js +0 -1
  151. package/dist-ksadk/assets/classDiagram-DTDB5LWJ-DLFd9Xi0.js +0 -1
  152. package/dist-ksadk/assets/classDiagram-v2-JRS7N3AN-DLFd9Xi0.js +0 -1
  153. package/dist-ksadk/assets/cynefin-OW5HDTMX-DjEM48Qp.js +0 -1
  154. package/dist-ksadk/assets/eventmodeling-NTZA5JFV-CMgMaJrC.js +0 -1
  155. package/dist-ksadk/assets/flowDiagram-A5DVABFB-BBKL0x3P.js +0 -1
  156. package/dist-ksadk/assets/gitGraph-4MIJSDKK-Dw63mrhw.js +0 -1
  157. package/dist-ksadk/assets/info-A6RAGUB7-B6iAblII.js +0 -1
  158. package/dist-ksadk/assets/packet-AYTQ26CC-BOYAipuq.js +0 -1
  159. package/dist-ksadk/assets/pie-WAS4IAKB-Ctq0Kbku.js +0 -1
  160. package/dist-ksadk/assets/radar-RG4KPBEZ-DN0-ul_0.js +0 -1
  161. package/dist-ksadk/assets/railroad-74A4TZTK-C6cC_to0.js +0 -1
  162. package/dist-ksadk/assets/railroad-abnf-HS5TGJTU-BimjIuRc.js +0 -1
  163. package/dist-ksadk/assets/railroad-ebnf-LZEXJU2U-CvY65ABq.js +0 -1
  164. package/dist-ksadk/assets/railroad-peg-WCYAUIDC-D72Iq_Tv.js +0 -1
  165. package/dist-ksadk/assets/stateDiagram-v2-4QOOHH4V-BgQY03nz.js +0 -1
  166. package/dist-ksadk/assets/swimlanesDiagram-VK2B7HYN-DLVw3q5Q.js +0 -8
  167. package/dist-ksadk/assets/treeView-Q6P3EWNA-BMpO0wsB.js +0 -1
  168. package/dist-ksadk/assets/treemap-WGGIJYW6-Et0aqzU3.js +0 -1
  169. package/dist-ksadk/assets/wardley-WFR3VGLG-CbY0mhpl.js +0 -1
@@ -1,4 +1,4 @@
1
- import{Ir as e,Sr as t,Vt as n,bn as r,br as i,er as a,kt as o,lr as s,nr as c,or as l,rr as u,sr as d,ur as f,yr as p}from"./MermaidBlock-Dz4IP-Tx.js";var m=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,14],i=[1,12],a=[1,13],o=[6,7,8],s=[1,20],c=[1,18],l=[1,19],u=[6,7,11],d=[1,6,13,14],f=[1,23],p=[1,24],m=[1,6,7,11,13,14],h={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`ISHIKAWA`,11:`EOF`,13:`SPACELIST`,14:`TEXT`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 15:r.addNode(a[s-1].length,a[s].trim());break;case 16:r.addNode(0,a[s].trim());break}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:a},t(o,[2,3]),{1:[2,2]},t(o,[2,4]),t(o,[2,5]),{1:[2,6],6:r,12:15,13:i,14:a},{6:r,9:16,12:11,13:i,14:a},{6:s,7:c,10:17,11:l},t(u,[2,18],{14:[1,21]}),t(u,[2,16]),t(u,[2,17]),{6:s,7:c,10:22,11:l},{1:[2,7],6:r,12:15,13:i,14:a},t(d,[2,14],{7:f,11:p}),t(m,[2,8]),t(m,[2,9]),t(m,[2,10]),t(u,[2,15]),t(d,[2,13],{7:f,11:p}),t(m,[2,11]),t(m,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
1
+ import{Ir as e,Sr as t,Vt as n,bn as r,br as i,er as a,kt as o,lr as s,nr as c,or as l,rr as u,sr as d,ur as f,yr as p}from"./MermaidBlock-CI9NjqQx.js";var m=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,14],i=[1,12],a=[1,13],o=[6,7,8],s=[1,20],c=[1,18],l=[1,19],u=[6,7,11],d=[1,6,13,14],f=[1,23],p=[1,24],m=[1,6,7,11,13,14],h={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`ISHIKAWA`,11:`EOF`,13:`SPACELIST`,14:`TEXT`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 15:r.addNode(a[s-1].length,a[s].trim());break;case 16:r.addNode(0,a[s].trim());break}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:a},t(o,[2,3]),{1:[2,2]},t(o,[2,4]),t(o,[2,5]),{1:[2,6],6:r,12:15,13:i,14:a},{6:r,9:16,12:11,13:i,14:a},{6:s,7:c,10:17,11:l},t(u,[2,18],{14:[1,21]}),t(u,[2,16]),t(u,[2,17]),{6:s,7:c,10:22,11:l},{1:[2,7],6:r,12:15,13:i,14:a},t(d,[2,14],{7:f,11:p}),t(m,[2,8]),t(m,[2,9]),t(m,[2,10]),t(u,[2,15]),t(d,[2,13],{7:f,11:p}),t(m,[2,11]),t(m,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
2
  `+h.showPosition()+`
3
3
  Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};h.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{t as e}from"./arc-C4FzinUA.js";import{t}from"./chunk-5VM5RSS4-BVHAchFb.js";import{a as n,n as r,o as i,s as a}from"./chunk-F27PBJKO-C-ipQzuS.js";import{Ir as o,Sr as s,Zn as c,br as l,er as u,lr as d,or as f,rr as p,sr as m,ur as h,yr as g}from"./MermaidBlock-Dz4IP-Tx.js";var _=(function(){var e=o(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[6,8,10,11,12,14,16,17,18],n=[1,9],r=[1,10],i=[1,11],a=[1,12],s=[1,13],c=[1,14],l={trace:o(function(){},`trace`),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:`error`,4:`journey`,6:`EOF`,8:`SPACE`,10:`NEWLINE`,11:`title`,12:`acc_title`,13:`acc_title_value`,14:`acc_descr`,15:`acc_descr_value`,16:`acc_descr_multiline_value`,17:`section`,18:`taskName`,19:`taskData`},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:o(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 9:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 10:case 11:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 12:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 13:r.addTask(a[s-1],a[s]),this.$=`task`;break}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:n,12:r,14:i,16:a,17:s,18:c},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:15,11:n,12:r,14:i,16:a,17:s,18:c},e(t,[2,5]),e(t,[2,6]),e(t,[2,8]),{13:[1,16]},{15:[1,17]},e(t,[2,11]),e(t,[2,12]),{19:[1,18]},e(t,[2,4]),e(t,[2,9]),e(t,[2,10]),e(t,[2,13])],defaultActions:{},parseError:o(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:o(function(e){var t=this,n=[0],r=[],i=[null],a=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}o(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}o(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
1
+ import{t as e}from"./arc-x-74isv6.js";import{t}from"./chunk-5VM5RSS4-VZAcej21.js";import{a as n,n as r,o as i,s as a}from"./chunk-F27PBJKO-DNUQP5bs.js";import{Ir as o,Sr as s,Zn as c,br as l,er as u,lr as d,or as f,rr as p,sr as m,ur as h,yr as g}from"./MermaidBlock-CI9NjqQx.js";var _=(function(){var e=o(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[6,8,10,11,12,14,16,17,18],n=[1,9],r=[1,10],i=[1,11],a=[1,12],s=[1,13],c=[1,14],l={trace:o(function(){},`trace`),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:`error`,4:`journey`,6:`EOF`,8:`SPACE`,10:`NEWLINE`,11:`title`,12:`acc_title`,13:`acc_title_value`,14:`acc_descr`,15:`acc_descr_value`,16:`acc_descr_multiline_value`,17:`section`,18:`taskName`,19:`taskData`},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:o(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 9:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 10:case 11:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 12:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 13:r.addTask(a[s-1],a[s]),this.$=`task`;break}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:n,12:r,14:i,16:a,17:s,18:c},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:15,11:n,12:r,14:i,16:a,17:s,18:c},e(t,[2,5]),e(t,[2,6]),e(t,[2,8]),{13:[1,16]},{15:[1,17]},e(t,[2,11]),e(t,[2,12]),{19:[1,18]},e(t,[2,4]),e(t,[2,9]),e(t,[2,10]),e(t,[2,13])],defaultActions:{},parseError:o(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:o(function(e){var t=this,n=[0],r=[],i=[null],a=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}o(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}o(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
2
  `+h.showPosition()+`
3
3
  Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=s[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};l.lexer=(function(){return{EOF:1,parseError:o(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:o(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:o(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:o(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:o(function(){return this._more=!0,this},`more`),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:o(function(e){this.unput(this.match.slice(e))},`less`),pastInput:o(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:o(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:o(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{t as e}from"./chunk-5VM5RSS4-BVHAchFb.js";import{Cr as t,Ct as n,Dr as r,Er as i,Ir as a,Nr as o,ar as s,bn as c,f as l,kr as u,lr as d,n as f,t as p,vr as m,wt as h}from"./MermaidBlock-Dz4IP-Tx.js";var g=(function(){var e=a(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,4],n=[1,13],r=[1,12],i=[1,15],o=[1,16],s=[1,20],c=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,31],h=[6,7,11,24],g=[1,6,13,16,17,20,23],_=[1,35],v=[1,36],y=[1,6,7,11,13,16,17,20,23],b=[1,38],x={trace:a(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`KANBAN`,11:`EOF`,13:`SPACELIST`,16:`ICON`,17:`CLASS`,20:`NODE_DSTART`,21:`NODE_DESCR`,22:`NODE_DEND`,23:`NODE_ID`,24:`SHAPE_DATA`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:a(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s-1].id),r.addNode(a[s-2].length,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 16:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 17:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 18:case 23:r.decorateNode({class:a[s]});break;case 19:r.getLogger().trace(`SPACELIST`);break;case 20:r.getLogger().trace(`Node: `,a[s-1].id),r.addNode(0,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 21:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 22:r.decorateNode({icon:a[s]});break;case 27:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 28:this.$={id:a[s],descr:a[s],type:0};break;case 29:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 30:this.$=a[s-1]+a[s];break;case 31:this.$=a[s];break}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:n,7:[1,10],9:9,12:11,13:r,14:14,16:i,17:o,18:17,19:18,20:s,23:c},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:n,12:21,13:r,14:14,16:i,17:o,18:17,19:18,20:s,23:c},{6:n,9:22,12:11,13:r,14:14,16:i,17:o,18:17,19:18,20:s,23:c},{6:u,7:d,10:23,11:f},e(p,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:s,23:c}),e(p,[2,19]),e(p,[2,21],{15:30,24:m}),e(p,[2,22]),e(p,[2,23]),e(h,[2,25]),e(h,[2,26]),e(h,[2,28],{20:[1,32]}),{21:[1,33]},{6:u,7:d,10:34,11:f},{1:[2,7],6:n,12:21,13:r,14:14,16:i,17:o,18:17,19:18,20:s,23:c},e(g,[2,14],{7:_,11:v}),e(y,[2,8]),e(y,[2,9]),e(y,[2,10]),e(p,[2,16],{15:37,24:m}),e(p,[2,17]),e(p,[2,18]),e(p,[2,20],{24:b}),e(h,[2,31]),{21:[1,39]},{22:[1,40]},e(g,[2,13],{7:_,11:v}),e(y,[2,11]),e(y,[2,12]),e(p,[2,15],{24:b}),e(h,[2,30]),{22:[1,41]},e(h,[2,27]),e(h,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:a(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:a(function(e){var t=this,n=[0],r=[],i=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,o.length-=e}a(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}a(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
1
+ import{t as e}from"./chunk-5VM5RSS4-VZAcej21.js";import{Cr as t,Ct as n,Dr as r,Er as i,Ir as a,Nr as o,ar as s,bn as c,f as l,kr as u,lr as d,n as f,t as p,vr as m,wt as h}from"./MermaidBlock-CI9NjqQx.js";var g=(function(){var e=a(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,4],n=[1,13],r=[1,12],i=[1,15],o=[1,16],s=[1,20],c=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,31],h=[6,7,11,24],g=[1,6,13,16,17,20,23],_=[1,35],v=[1,36],y=[1,6,7,11,13,16,17,20,23],b=[1,38],x={trace:a(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`KANBAN`,11:`EOF`,13:`SPACELIST`,16:`ICON`,17:`CLASS`,20:`NODE_DSTART`,21:`NODE_DESCR`,22:`NODE_DEND`,23:`NODE_ID`,24:`SHAPE_DATA`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:a(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s-1].id),r.addNode(a[s-2].length,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 16:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 17:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 18:case 23:r.decorateNode({class:a[s]});break;case 19:r.getLogger().trace(`SPACELIST`);break;case 20:r.getLogger().trace(`Node: `,a[s-1].id),r.addNode(0,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 21:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 22:r.decorateNode({icon:a[s]});break;case 27:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 28:this.$={id:a[s],descr:a[s],type:0};break;case 29:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 30:this.$=a[s-1]+a[s];break;case 31:this.$=a[s];break}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:n,7:[1,10],9:9,12:11,13:r,14:14,16:i,17:o,18:17,19:18,20:s,23:c},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:n,12:21,13:r,14:14,16:i,17:o,18:17,19:18,20:s,23:c},{6:n,9:22,12:11,13:r,14:14,16:i,17:o,18:17,19:18,20:s,23:c},{6:u,7:d,10:23,11:f},e(p,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:s,23:c}),e(p,[2,19]),e(p,[2,21],{15:30,24:m}),e(p,[2,22]),e(p,[2,23]),e(h,[2,25]),e(h,[2,26]),e(h,[2,28],{20:[1,32]}),{21:[1,33]},{6:u,7:d,10:34,11:f},{1:[2,7],6:n,12:21,13:r,14:14,16:i,17:o,18:17,19:18,20:s,23:c},e(g,[2,14],{7:_,11:v}),e(y,[2,8]),e(y,[2,9]),e(y,[2,10]),e(p,[2,16],{15:37,24:m}),e(p,[2,17]),e(p,[2,18]),e(p,[2,20],{24:b}),e(h,[2,31]),{21:[1,39]},{22:[1,40]},e(g,[2,13],{7:_,11:v}),e(y,[2,11]),e(y,[2,12]),e(p,[2,15],{24:b}),e(h,[2,30]),{22:[1,41]},e(h,[2,27]),e(h,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:a(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:a(function(e){var t=this,n=[0],r=[],i=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,o.length-=e}a(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}a(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
2
  `+h.showPosition()+`
3
3
  Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),o.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],i,o].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),o=o.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),o.push(D._$),A=s[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};x.lexer=(function(){return{EOF:1,parseError:a(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:a(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:a(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:a(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:a(function(){return this._more=!0,this},`more`),reject:a(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:a(function(e){this.unput(this.match.slice(e))},`less`),pastInput:a(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:a(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:a(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{wt as e}from"./index-8ipRcQ-M.js";var t=e({ParseError:()=>n,SETTINGS_SCHEMA:()=>f,__defineFunction:()=>J,__defineMacro:()=>$,__defineSymbol:()=>M,__domTree:()=>ka,__parse:()=>wa,__renderToDomTree:()=>Ea,__renderToHTMLTree:()=>Da,__setFontMetrics:()=>qe,default:()=>Aa,render:()=>Sa,renderToString:()=>Ca,version:()=>Oa}),n=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var c=s.slice(i,a).replace(/[^]/g,`$&̲`),l=i>15?`…`+s.slice(i-15,i):s.slice(0,i),u=a+15<s.length?s.slice(a,a+15)+`…`:s.slice(a);r+=l+c+u}super(r),this.name=`ParseError`,this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,e.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=t}},r=/([A-Z])/g,i=e=>e.replace(r,`-$1`).toLowerCase(),a={"&":`&amp;`,">":`&gt;`,"<":`&lt;`,'"':`&quot;`,"'":`&#x27;`},o=/[&><"']/g,s=e=>String(e).replace(o,e=>a[e]),c=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?c(e.body[0]):e:e.type===`font`?c(e.body):e,l=new Set([`mathord`,`textord`,`atom`]),u=e=>l.has(c(e).type),d=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},f={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format <type>`},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color <color>`,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro <def>`,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness <size>`,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size <n>`,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand <n>`,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}};function p(e){if(typeof e!=`string`)return e.enum[0];switch(e){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{};default:throw Error(`Unexpected schema type; settings must declare an explicit default.`)}}function m(e){return e.default===void 0?p(Array.isArray(e.type)?e.type[0]:e.type):e.default}function h(e,t,n,r){var i=n[t];e[t]=i===void 0?m(r):r.processor?r.processor(i):i}var g=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e||={};for(var t of Object.keys(f)){var n=f[t];n&&h(this,t,e,n)}}reportNonstrict(e,t,r){var i=this.strict;if(typeof i==`function`&&(i=i(e,t,r)),!(!i||i===`ignore`)){if(i===!0||i===`error`)throw new n(`LaTeX-incompatible input and strict mode is set to 'error': `+(t+` [`+e+`]`),r);i===`warn`?typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)):typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+i+`': `+t+` [`+e+`]`))}}useStrictBehavior(e,t,n){var r=this.strict;if(typeof r==`function`)try{r=r(e,t,n)}catch{r=`error`}return!r||r===`ignore`?!1:r===!0||r===`error`?!0:r===`warn`?(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)),!1):(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`)),!1)}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=d(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},_=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return E[ee[this.id]]}sub(){return E[te[this.id]]}fracNum(){return E[ne[this.id]]}fracDen(){return E[re[this.id]]}cramp(){return E[ie[this.id]]}text(){return E[ae[this.id]]}isTight(){return this.size>=2}},v=0,y=1,b=2,x=3,S=4,C=5,w=6,T=7,E=[new _(v,0,!1),new _(y,0,!0),new _(b,1,!1),new _(x,1,!0),new _(S,2,!1),new _(C,2,!0),new _(w,3,!1),new _(T,3,!0)],ee=[S,C,S,C,w,T,w,T],te=[C,C,C,C,T,T,T,T],ne=[b,x,S,C,w,T,w,T],re=[x,x,C,C,T,T,T,T],ie=[y,y,x,x,C,C,T,T],ae=[v,y,b,x,b,x,b,x],D={DISPLAY:E[v],TEXT:E[b],SCRIPT:E[S],SCRIPTSCRIPT:E[w]},oe=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}];function se(e){for(var t=0;t<oe.length;t++)for(var n=oe[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}var ce=[];oe.forEach(e=>e.blocks.forEach(e=>ce.push(...e)));function le(e){for(var t=0;t<ce.length;t+=2)if(e>=ce[t]&&e<=ce[t+1])return!0;return!1}var O=e=>e+` `+e,ue=80,de=function(e,t){return`M95,`+(622+e+t)+`
1
+ import{wt as e}from"./index-BkDx9KsG.js";var t=e({ParseError:()=>n,SETTINGS_SCHEMA:()=>f,__defineFunction:()=>J,__defineMacro:()=>$,__defineSymbol:()=>M,__domTree:()=>ka,__parse:()=>wa,__renderToDomTree:()=>Ea,__renderToHTMLTree:()=>Da,__setFontMetrics:()=>qe,default:()=>Aa,render:()=>Sa,renderToString:()=>Ca,version:()=>Oa}),n=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var c=s.slice(i,a).replace(/[^]/g,`$&̲`),l=i>15?`…`+s.slice(i-15,i):s.slice(0,i),u=a+15<s.length?s.slice(a,a+15)+`…`:s.slice(a);r+=l+c+u}super(r),this.name=`ParseError`,this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,e.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=t}},r=/([A-Z])/g,i=e=>e.replace(r,`-$1`).toLowerCase(),a={"&":`&amp;`,">":`&gt;`,"<":`&lt;`,'"':`&quot;`,"'":`&#x27;`},o=/[&><"']/g,s=e=>String(e).replace(o,e=>a[e]),c=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?c(e.body[0]):e:e.type===`font`?c(e.body):e,l=new Set([`mathord`,`textord`,`atom`]),u=e=>l.has(c(e).type),d=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},f={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format <type>`},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color <color>`,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro <def>`,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness <size>`,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size <n>`,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand <n>`,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}};function p(e){if(typeof e!=`string`)return e.enum[0];switch(e){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{};default:throw Error(`Unexpected schema type; settings must declare an explicit default.`)}}function m(e){return e.default===void 0?p(Array.isArray(e.type)?e.type[0]:e.type):e.default}function h(e,t,n,r){var i=n[t];e[t]=i===void 0?m(r):r.processor?r.processor(i):i}var g=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e||={};for(var t of Object.keys(f)){var n=f[t];n&&h(this,t,e,n)}}reportNonstrict(e,t,r){var i=this.strict;if(typeof i==`function`&&(i=i(e,t,r)),!(!i||i===`ignore`)){if(i===!0||i===`error`)throw new n(`LaTeX-incompatible input and strict mode is set to 'error': `+(t+` [`+e+`]`),r);i===`warn`?typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)):typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+i+`': `+t+` [`+e+`]`))}}useStrictBehavior(e,t,n){var r=this.strict;if(typeof r==`function`)try{r=r(e,t,n)}catch{r=`error`}return!r||r===`ignore`?!1:r===!0||r===`error`?!0:r===`warn`?(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)),!1):(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`)),!1)}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=d(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},_=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return E[ee[this.id]]}sub(){return E[te[this.id]]}fracNum(){return E[ne[this.id]]}fracDen(){return E[re[this.id]]}cramp(){return E[ie[this.id]]}text(){return E[ae[this.id]]}isTight(){return this.size>=2}},v=0,y=1,b=2,x=3,S=4,C=5,w=6,T=7,E=[new _(v,0,!1),new _(y,0,!0),new _(b,1,!1),new _(x,1,!0),new _(S,2,!1),new _(C,2,!0),new _(w,3,!1),new _(T,3,!0)],ee=[S,C,S,C,w,T,w,T],te=[C,C,C,C,T,T,T,T],ne=[b,x,S,C,w,T,w,T],re=[x,x,C,C,T,T,T,T],ie=[y,y,x,x,C,C,T,T],ae=[v,y,b,x,b,x,b,x],D={DISPLAY:E[v],TEXT:E[b],SCRIPT:E[S],SCRIPTSCRIPT:E[w]},oe=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}];function se(e){for(var t=0;t<oe.length;t++)for(var n=oe[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}var ce=[];oe.forEach(e=>e.blocks.forEach(e=>ce.push(...e)));function le(e){for(var t=0;t<ce.length;t+=2)if(e>=ce[t]&&e<=ce[t+1])return!0;return!1}var O=e=>e+` `+e,ue=80,de=function(e,t){return`M95,`+(622+e+t)+`
2
2
  c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
3
3
  c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
4
4
  c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
@@ -1 +1 @@
1
- import{i as e,n as t,r as n,t as r}from"./defaultLocale-C8Fc0cco.js";import{t as i}from"./init-D6jRqBbL.js";import{Bn as a,Vn as o,Wn as s,qn as c,zn as l}from"./MermaidBlock-Dz4IP-Tx.js";function u(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function d(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function f(e){let t,n,r;e.length===2?(t=e===u||e===d?e:p,n=e,r=e):(t=u,n=(t,n)=>u(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<0?i=t+1:a=t}while(i<a)}return i}function a(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<=0?i=t+1:a=t}while(i<a)}return i}function o(e,t,n=0,a=e.length){let o=i(e,t,n,a-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function p(){return 0}function m(e){return e===null?NaN:+e}var h=f(u),g=h.right;h.left,f(m).center;var _=Math.sqrt(50),v=Math.sqrt(10),y=Math.sqrt(2);function b(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=_?10:a>=v?5:a>=y?2:1,s,c,l;return i<0?(l=10**-i/o,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=10**i*o,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?b(e,t,n*2):[s,c,l]}function x(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?b(t,e,n):b(e,t,n);if(!(a>=i))return[];let s=a-i+1,c=Array(s);if(r)if(o<0)for(let e=0;e<s;++e)c[e]=(a-e)/-o;else for(let e=0;e<s;++e)c[e]=(a-e)*o;else if(o<0)for(let e=0;e<s;++e)c[e]=(i+e)/-o;else for(let e=0;e<s;++e)c[e]=(i+e)*o;return c}function S(e,t,n){return t=+t,e=+e,n=+n,b(e,t,n)[2]}function C(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?S(t,e,n):S(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function w(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function T(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function E(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o;for(o=0;o<r;++o)i[o]=k(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}function D(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function O(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=k(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}function k(e,t){var n=typeof t,r;return t==null||n===`boolean`?s(t):(n===`number`?a:n===`string`?(r=c(t))?(t=r,o):l:t instanceof c?o:t instanceof Date?D:T(t)?w:Array.isArray(t)?E:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?O:a)(e,t)}function A(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function j(t){return Math.max(0,-e(Math.abs(t)))}function M(t,n){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(e(n)/3)))*3-e(Math.abs(t)))}function N(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,e(n)-e(t))+1}function P(e){return function(){return e}}function F(e){return+e}var I=[0,1];function L(e){return e}function R(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:P(isNaN(t)?NaN:.5)}function z(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function B(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=R(i,r),a=n(o,a)):(r=R(r,i),a=n(a,o)),function(e){return a(r(e))}}function V(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=R(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=g(e,t,1,r)-1;return a[n](i[n](t))}}function H(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function U(){var e=I,t=I,n=k,r,i,o,s=L,c,l,u;function d(){var n=Math.min(e.length,t.length);return s!==L&&(s=z(e[0],e[n-1])),c=n>2?V:B,l=u=null,f}function f(i){return i==null||isNaN(i=+i)?o:(l||=c(e.map(r),t,n))(r(s(i)))}return f.invert=function(n){return s(i((u||=c(t,e.map(r),a))(n)))},f.domain=function(t){return arguments.length?(e=Array.from(t,F),d()):e.slice()},f.range=function(e){return arguments.length?(t=Array.from(e),d()):t.slice()},f.rangeRound=function(e){return t=Array.from(e),n=A,d()},f.clamp=function(e){return arguments.length?(s=e?!0:L,d()):s!==L},f.interpolate=function(e){return arguments.length?(n=e,d()):n},f.unknown=function(e){return arguments.length?(o=e,f):o},function(e,t){return r=e,i=t,d()}}function W(){return U()(L,L)}function G(e,i,a,o){var s=C(e,i,a),c;switch(o=n(o??`,f`),o.type){case`s`:var l=Math.max(Math.abs(e),Math.abs(i));return o.precision==null&&!isNaN(c=M(s,l))&&(o.precision=c),t(o,l);case``:case`e`:case`g`:case`p`:case`r`:o.precision==null&&!isNaN(c=N(s,Math.max(Math.abs(e),Math.abs(i))))&&(o.precision=c-(o.type===`e`));break;case`f`:case`%`:o.precision==null&&!isNaN(c=j(s))&&(o.precision=c-(o.type===`%`)*2);break}return r(o)}function K(e){var t=e.domain;return e.ticks=function(e){var n=t();return x(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return G(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-- >0;){if(l=S(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function q(){var e=W();return e.copy=function(){return H(e,q())},i.apply(e,arguments),K(e)}export{f as a,C as i,W as n,H as r,q as t};
1
+ import{i as e,n as t,r as n,t as r}from"./defaultLocale-C8Fc0cco.js";import{t as i}from"./init-D6jRqBbL.js";import{Bn as a,Vn as o,Wn as s,qn as c,zn as l}from"./MermaidBlock-CI9NjqQx.js";function u(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function d(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function f(e){let t,n,r;e.length===2?(t=e===u||e===d?e:p,n=e,r=e):(t=u,n=(t,n)=>u(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<0?i=t+1:a=t}while(i<a)}return i}function a(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<=0?i=t+1:a=t}while(i<a)}return i}function o(e,t,n=0,a=e.length){let o=i(e,t,n,a-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function p(){return 0}function m(e){return e===null?NaN:+e}var h=f(u),g=h.right;h.left,f(m).center;var _=Math.sqrt(50),v=Math.sqrt(10),y=Math.sqrt(2);function b(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=_?10:a>=v?5:a>=y?2:1,s,c,l;return i<0?(l=10**-i/o,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=10**i*o,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?b(e,t,n*2):[s,c,l]}function x(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?b(t,e,n):b(e,t,n);if(!(a>=i))return[];let s=a-i+1,c=Array(s);if(r)if(o<0)for(let e=0;e<s;++e)c[e]=(a-e)/-o;else for(let e=0;e<s;++e)c[e]=(a-e)*o;else if(o<0)for(let e=0;e<s;++e)c[e]=(i+e)/-o;else for(let e=0;e<s;++e)c[e]=(i+e)*o;return c}function S(e,t,n){return t=+t,e=+e,n=+n,b(e,t,n)[2]}function C(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?S(t,e,n):S(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function w(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function T(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function E(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o;for(o=0;o<r;++o)i[o]=k(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}function D(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function O(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=k(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}function k(e,t){var n=typeof t,r;return t==null||n===`boolean`?s(t):(n===`number`?a:n===`string`?(r=c(t))?(t=r,o):l:t instanceof c?o:t instanceof Date?D:T(t)?w:Array.isArray(t)?E:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?O:a)(e,t)}function A(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function j(t){return Math.max(0,-e(Math.abs(t)))}function M(t,n){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(e(n)/3)))*3-e(Math.abs(t)))}function N(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,e(n)-e(t))+1}function P(e){return function(){return e}}function F(e){return+e}var I=[0,1];function L(e){return e}function R(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:P(isNaN(t)?NaN:.5)}function z(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function B(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=R(i,r),a=n(o,a)):(r=R(r,i),a=n(a,o)),function(e){return a(r(e))}}function V(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=R(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=g(e,t,1,r)-1;return a[n](i[n](t))}}function H(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function U(){var e=I,t=I,n=k,r,i,o,s=L,c,l,u;function d(){var n=Math.min(e.length,t.length);return s!==L&&(s=z(e[0],e[n-1])),c=n>2?V:B,l=u=null,f}function f(i){return i==null||isNaN(i=+i)?o:(l||=c(e.map(r),t,n))(r(s(i)))}return f.invert=function(n){return s(i((u||=c(t,e.map(r),a))(n)))},f.domain=function(t){return arguments.length?(e=Array.from(t,F),d()):e.slice()},f.range=function(e){return arguments.length?(t=Array.from(e),d()):t.slice()},f.rangeRound=function(e){return t=Array.from(e),n=A,d()},f.clamp=function(e){return arguments.length?(s=e?!0:L,d()):s!==L},f.interpolate=function(e){return arguments.length?(n=e,d()):n},f.unknown=function(e){return arguments.length?(o=e,f):o},function(e,t){return r=e,i=t,d()}}function W(){return U()(L,L)}function G(e,i,a,o){var s=C(e,i,a),c;switch(o=n(o??`,f`),o.type){case`s`:var l=Math.max(Math.abs(e),Math.abs(i));return o.precision==null&&!isNaN(c=M(s,l))&&(o.precision=c),t(o,l);case``:case`e`:case`g`:case`p`:case`r`:o.precision==null&&!isNaN(c=N(s,Math.max(Math.abs(e),Math.abs(i))))&&(o.precision=c-(o.type===`e`));break;case`f`:case`%`:o.precision==null&&!isNaN(c=j(s))&&(o.precision=c-(o.type===`%`)*2);break}return r(o)}function K(e){var t=e.domain;return e.ticks=function(e){var n=t();return x(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return G(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-- >0;){if(l=S(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function q(){var e=W();return e.copy=function(){return H(e,q())},i.apply(e,arguments),K(e)}export{f as a,C as i,W as n,H as r,q as t};
@@ -1,4 +1,4 @@
1
- import{W as e}from"./index-8ipRcQ-M.js";var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>n(e,`name`,{value:t,configurable:!0}),c=(e,t)=>function(){return e&&(t=(0,e[i(e)[0]])(e=0)),t},l=(e,t)=>function(){return t||(0,e[i(e)[0]])((t={exports:{}}).exports,t),t.exports},u=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},d=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let c of i(t))!o.call(e,c)&&c!==a&&n(e,c,{get:()=>t[c],enumerable:!(s=r(t,c))||s.enumerable});return e},f=(e,t,n)=>(d(e,t,`default`),n&&d(n,t,`default`)),p=(e,r,i)=>(i=e==null?{}:t(a(e)),d(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e)),m=e=>d(n({},`__esModule`,{value:!0}),e),h={};u(h,{AnnotatedTextEdit:()=>E,ChangeAnnotation:()=>de,ChangeAnnotationIdentifier:()=>T,CodeAction:()=>Ke,CodeActionContext:()=>Ge,CodeActionKind:()=>Ue,CodeActionTriggerKind:()=>We,CodeDescription:()=>se,CodeLens:()=>qe,Color:()=>ee,ColorInformation:()=>te,ColorPresentation:()=>w,Command:()=>le,CompletionItem:()=>Ae,CompletionItemKind:()=>we,CompletionItemLabelDetails:()=>ke,CompletionItemTag:()=>Ee,CompletionList:()=>je,CreateFile:()=>D,DeleteFile:()=>O,Diagnostic:()=>ce,DiagnosticRelatedInformation:()=>ie,DiagnosticSeverity:()=>ae,DiagnosticTag:()=>oe,DocumentHighlight:()=>Le,DocumentHighlightKind:()=>Ie,DocumentLink:()=>Ye,DocumentSymbol:()=>He,DocumentUri:()=>g,EOL:()=>mt,FoldingRange:()=>re,FoldingRangeKind:()=>ne,FormattingOptions:()=>Je,Hover:()=>Ne,InlayHint:()=>ot,InlayHintKind:()=>it,InlayHintLabelPart:()=>at,InlineCompletionContext:()=>ft,InlineCompletionItem:()=>ct,InlineCompletionList:()=>lt,InlineCompletionTriggerKind:()=>ut,InlineValueContext:()=>rt,InlineValueEvaluatableExpression:()=>nt,InlineValueText:()=>et,InlineValueVariableLookup:()=>tt,InsertReplaceEdit:()=>De,InsertTextFormat:()=>Te,InsertTextMode:()=>Oe,Location:()=>S,LocationLink:()=>C,MarkedString:()=>Me,MarkupContent:()=>Ce,MarkupKind:()=>Se,OptionalVersionedTextDocumentIdentifier:()=>be,ParameterInformation:()=>Pe,Position:()=>b,Range:()=>x,RenameFile:()=>pe,SelectedCompletionInfo:()=>dt,SelectionRange:()=>Xe,SemanticTokenModifiers:()=>Qe,SemanticTokenTypes:()=>Ze,SemanticTokens:()=>$e,SignatureInformation:()=>Fe,StringValue:()=>st,SymbolInformation:()=>Be,SymbolKind:()=>Re,SymbolTag:()=>ze,TextDocument:()=>ht,TextDocumentEdit:()=>fe,TextDocumentIdentifier:()=>ve,TextDocumentItem:()=>xe,TextEdit:()=>ue,URI:()=>_,VersionedTextDocumentIdentifier:()=>ye,WorkspaceChange:()=>_e,WorkspaceEdit:()=>me,WorkspaceFolder:()=>pt,WorkspaceSymbol:()=>Ve,integer:()=>v,uinteger:()=>y});var g,_,v,y,b,x,S,C,ee,te,w,ne,re,ie,ae,oe,se,ce,le,ue,de,T,E,fe,D,pe,O,me,he,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe,Ie,Le,Re,ze,Be,Ve,He,Ue,We,Ge,Ke,qe,Je,Ye,Xe,Ze,Qe,$e,et,tt,nt,rt,it,at,ot,st,ct,lt,ut,dt,ft,pt,mt,ht,gt,k,_t=c({"../../node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.js"(){(function(e){function t(e){return typeof e==`string`}s(t,`is`),e.is=t})(g||={}),(function(e){function t(e){return typeof e==`string`}s(t,`is`),e.is=t})(_||={}),(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(t){return typeof t==`number`&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}s(t,`is`),e.is=t})(v||={}),(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(t){return typeof t==`number`&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}s(t,`is`),e.is=t})(y||={}),(function(e){function t(e,t){return e===Number.MAX_VALUE&&(e=y.MAX_VALUE),t===Number.MAX_VALUE&&(t=y.MAX_VALUE),{line:e,character:t}}s(t,`create`),e.create=t;function n(e){let t=e;return k.objectLiteral(t)&&k.uinteger(t.line)&&k.uinteger(t.character)}s(n,`is`),e.is=n})(b||={}),(function(e){function t(e,t,n,r){if(k.uinteger(e)&&k.uinteger(t)&&k.uinteger(n)&&k.uinteger(r))return{start:b.create(e,t),end:b.create(n,r)};if(b.is(e)&&b.is(t))return{start:e,end:t};throw Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)}s(t,`create`),e.create=t;function n(e){let t=e;return k.objectLiteral(t)&&b.is(t.start)&&b.is(t.end)}s(n,`is`),e.is=n})(x||={}),(function(e){function t(e,t){return{uri:e,range:t}}s(t,`create`),e.create=t;function n(e){let t=e;return k.objectLiteral(t)&&x.is(t.range)&&(k.string(t.uri)||k.undefined(t.uri))}s(n,`is`),e.is=n})(S||={}),(function(e){function t(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}}s(t,`create`),e.create=t;function n(e){let t=e;return k.objectLiteral(t)&&x.is(t.targetRange)&&k.string(t.targetUri)&&x.is(t.targetSelectionRange)&&(x.is(t.originSelectionRange)||k.undefined(t.originSelectionRange))}s(n,`is`),e.is=n})(C||={}),(function(e){function t(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}}s(t,`create`),e.create=t;function n(e){let t=e;return k.objectLiteral(t)&&k.numberRange(t.red,0,1)&&k.numberRange(t.green,0,1)&&k.numberRange(t.blue,0,1)&&k.numberRange(t.alpha,0,1)}s(n,`is`),e.is=n})(ee||={}),(function(e){function t(e,t){return{range:e,color:t}}s(t,`create`),e.create=t;function n(e){let t=e;return k.objectLiteral(t)&&x.is(t.range)&&ee.is(t.color)}s(n,`is`),e.is=n})(te||={}),(function(e){function t(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}}s(t,`create`),e.create=t;function n(e){let t=e;return k.objectLiteral(t)&&k.string(t.label)&&(k.undefined(t.textEdit)||ue.is(t))&&(k.undefined(t.additionalTextEdits)||k.typedArray(t.additionalTextEdits,ue.is))}s(n,`is`),e.is=n})(w||={}),(function(e){e.Comment=`comment`,e.Imports=`imports`,e.Region=`region`})(ne||={}),(function(e){function t(e,t,n,r,i,a){let o={startLine:e,endLine:t};return k.defined(n)&&(o.startCharacter=n),k.defined(r)&&(o.endCharacter=r),k.defined(i)&&(o.kind=i),k.defined(a)&&(o.collapsedText=a),o}s(t,`create`),e.create=t;function n(e){let t=e;return k.objectLiteral(t)&&k.uinteger(t.startLine)&&k.uinteger(t.startLine)&&(k.undefined(t.startCharacter)||k.uinteger(t.startCharacter))&&(k.undefined(t.endCharacter)||k.uinteger(t.endCharacter))&&(k.undefined(t.kind)||k.string(t.kind))}s(n,`is`),e.is=n})(re||={}),(function(e){function t(e,t){return{location:e,message:t}}s(t,`create`),e.create=t;function n(e){let t=e;return k.defined(t)&&S.is(t.location)&&k.string(t.message)}s(n,`is`),e.is=n})(ie||={}),(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(ae||={}),(function(e){e.Unnecessary=1,e.Deprecated=2})(oe||={}),(function(e){function t(e){let t=e;return k.objectLiteral(t)&&k.string(t.href)}s(t,`is`),e.is=t})(se||={}),(function(e){function t(e,t,n,r,i,a){let o={range:e,message:t};return k.defined(n)&&(o.severity=n),k.defined(r)&&(o.code=r),k.defined(i)&&(o.source=i),k.defined(a)&&(o.relatedInformation=a),o}s(t,`create`),e.create=t;function n(e){let t=e;return k.defined(t)&&x.is(t.range)&&k.string(t.message)&&(k.number(t.severity)||k.undefined(t.severity))&&(k.integer(t.code)||k.string(t.code)||k.undefined(t.code))&&(k.undefined(t.codeDescription)||k.string(t.codeDescription?.href))&&(k.string(t.source)||k.undefined(t.source))&&(k.undefined(t.relatedInformation)||k.typedArray(t.relatedInformation,ie.is))}s(n,`is`),e.is=n})(ce||={}),(function(e){function t(e,t,...n){let r={title:e,command:t};return k.defined(n)&&n.length>0&&(r.arguments=n),r}s(t,`create`),e.create=t;function n(e){let t=e;return k.defined(t)&&k.string(t.title)&&k.string(t.command)}s(n,`is`),e.is=n})(le||={}),(function(e){function t(e,t){return{range:e,newText:t}}s(t,`replace`),e.replace=t;function n(e,t){return{range:{start:e,end:e},newText:t}}s(n,`insert`),e.insert=n;function r(e){return{range:e,newText:``}}s(r,`del`),e.del=r;function i(e){let t=e;return k.objectLiteral(t)&&k.string(t.newText)&&x.is(t.range)}s(i,`is`),e.is=i})(ue||={}),(function(e){function t(e,t,n){let r={label:e};return t!==void 0&&(r.needsConfirmation=t),n!==void 0&&(r.description=n),r}s(t,`create`),e.create=t;function n(e){let t=e;return k.objectLiteral(t)&&k.string(t.label)&&(k.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(k.string(t.description)||t.description===void 0)}s(n,`is`),e.is=n})(de||={}),(function(e){function t(e){let t=e;return k.string(t)}s(t,`is`),e.is=t})(T||={}),(function(e){function t(e,t,n){return{range:e,newText:t,annotationId:n}}s(t,`replace`),e.replace=t;function n(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}}s(n,`insert`),e.insert=n;function r(e,t){return{range:e,newText:``,annotationId:t}}s(r,`del`),e.del=r;function i(e){let t=e;return ue.is(t)&&(de.is(t.annotationId)||T.is(t.annotationId))}s(i,`is`),e.is=i})(E||={}),(function(e){function t(e,t){return{textDocument:e,edits:t}}s(t,`create`),e.create=t;function n(e){let t=e;return k.defined(t)&&be.is(t.textDocument)&&Array.isArray(t.edits)}s(n,`is`),e.is=n})(fe||={}),(function(e){function t(e,t,n){let r={kind:`create`,uri:e};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(r.options=t),n!==void 0&&(r.annotationId=n),r}s(t,`create`),e.create=t;function n(e){let t=e;return t&&t.kind===`create`&&k.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||k.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||k.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||T.is(t.annotationId))}s(n,`is`),e.is=n})(D||={}),(function(e){function t(e,t,n,r){let i={kind:`rename`,oldUri:e,newUri:t};return n!==void 0&&(n.overwrite!==void 0||n.ignoreIfExists!==void 0)&&(i.options=n),r!==void 0&&(i.annotationId=r),i}s(t,`create`),e.create=t;function n(e){let t=e;return t&&t.kind===`rename`&&k.string(t.oldUri)&&k.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||k.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||k.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||T.is(t.annotationId))}s(n,`is`),e.is=n})(pe||={}),(function(e){function t(e,t,n){let r={kind:`delete`,uri:e};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(r.options=t),n!==void 0&&(r.annotationId=n),r}s(t,`create`),e.create=t;function n(e){let t=e;return t&&t.kind===`delete`&&k.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||k.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||k.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||T.is(t.annotationId))}s(n,`is`),e.is=n})(O||={}),(function(e){function t(e){let t=e;return t&&(t.changes!==void 0||t.documentChanges!==void 0)&&(t.documentChanges===void 0||t.documentChanges.every(e=>k.string(e.kind)?D.is(e)||pe.is(e)||O.is(e):fe.is(e)))}s(t,`is`),e.is=t})(me||={}),he=class{static{s(this,`TextEditChangeImpl`)}constructor(e,t){this.edits=e,this.changeAnnotations=t}insert(e,t,n){let r,i;if(n===void 0?r=ue.insert(e,t):T.is(n)?(i=n,r=E.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=E.insert(e,t,i)),this.edits.push(r),i!==void 0)return i}replace(e,t,n){let r,i;if(n===void 0?r=ue.replace(e,t):T.is(n)?(i=n,r=E.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=E.replace(e,t,i)),this.edits.push(r),i!==void 0)return i}delete(e,t){let n,r;if(t===void 0?n=ue.del(e):T.is(t)?(r=t,n=E.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=E.del(e,r)),this.edits.push(n),r!==void 0)return r}add(e){this.edits.push(e)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(e){if(e===void 0)throw Error(`Text edit change is not configured to manage change annotations.`)}},ge=class{static{s(this,`ChangeAnnotations`)}constructor(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(e,t){let n;if(T.is(e)?n=e:(n=this.nextId(),t=e),this._annotations[n]!==void 0)throw Error(`Id ${n} is already in use.`);if(t===void 0)throw Error(`No annotation provided for id ${n}`);return this._annotations[n]=t,this._size++,n}nextId(){return this._counter++,this._counter.toString()}},_e=class{static{s(this,`WorkspaceChange`)}constructor(e){this._textEditChanges=Object.create(null),e===void 0?this._workspaceEdit={}:(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new ge(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(e=>{if(fe.is(e)){let t=new he(e.edits,this._changeAnnotations);this._textEditChanges[e.textDocument.uri]=t}})):e.changes&&Object.keys(e.changes).forEach(t=>{let n=new he(e.changes[t]);this._textEditChanges[t]=n}))}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(e){if(be.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error(`Workspace edit is not configured for document changes.`);let t={uri:e.uri,version:e.version},n=this._textEditChanges[t.uri];if(!n){let e=[],r={textDocument:t,edits:e};this._workspaceEdit.documentChanges.push(r),n=new he(e,this._changeAnnotations),this._textEditChanges[t.uri]=n}return n}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw Error(`Workspace edit is not configured for normal text edit changes.`);let t=this._textEditChanges[e];if(!t){let n=[];this._workspaceEdit.changes[e]=n,t=new he(n),this._textEditChanges[e]=t}return t}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ge,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(e,t,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error(`Workspace edit is not configured for document changes.`);let r;de.is(t)||T.is(t)?r=t:n=t;let i,a;if(r===void 0?i=D.create(e,n):(a=T.is(r)?r:this._changeAnnotations.manage(r),i=D.create(e,n,a)),this._workspaceEdit.documentChanges.push(i),a!==void 0)return a}renameFile(e,t,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error(`Workspace edit is not configured for document changes.`);let i;de.is(n)||T.is(n)?i=n:r=n;let a,o;if(i===void 0?a=pe.create(e,t,r):(o=T.is(i)?i:this._changeAnnotations.manage(i),a=pe.create(e,t,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o}deleteFile(e,t,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error(`Workspace edit is not configured for document changes.`);let r;de.is(t)||T.is(t)?r=t:n=t;let i,a;if(r===void 0?i=O.create(e,n):(a=T.is(r)?r:this._changeAnnotations.manage(r),i=O.create(e,n,a)),this._workspaceEdit.documentChanges.push(i),a!==void 0)return a}},(function(e){function t(e){return{uri:e}}s(t,`create`),e.create=t;function n(e){let t=e;return k.defined(t)&&k.string(t.uri)}s(n,`is`),e.is=n})(ve||={}),(function(e){function t(e,t){return{uri:e,version:t}}s(t,`create`),e.create=t;function n(e){let t=e;return k.defined(t)&&k.string(t.uri)&&k.integer(t.version)}s(n,`is`),e.is=n})(ye||={}),(function(e){function t(e,t){return{uri:e,version:t}}s(t,`create`),e.create=t;function n(e){let t=e;return k.defined(t)&&k.string(t.uri)&&(t.version===null||k.integer(t.version))}s(n,`is`),e.is=n})(be||={}),(function(e){function t(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}}s(t,`create`),e.create=t;function n(e){let t=e;return k.defined(t)&&k.string(t.uri)&&k.string(t.languageId)&&k.integer(t.version)&&k.string(t.text)}s(n,`is`),e.is=n})(xe||={}),(function(e){e.PlainText=`plaintext`,e.Markdown=`markdown`;function t(t){let n=t;return n===e.PlainText||n===e.Markdown}s(t,`is`),e.is=t})(Se||={}),(function(e){function t(e){let t=e;return k.objectLiteral(e)&&Se.is(t.kind)&&k.string(t.value)}s(t,`is`),e.is=t})(Ce||={}),(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(we||={}),(function(e){e.PlainText=1,e.Snippet=2})(Te||={}),(function(e){e.Deprecated=1})(Ee||={}),(function(e){function t(e,t,n){return{newText:e,insert:t,replace:n}}s(t,`create`),e.create=t;function n(e){let t=e;return t&&k.string(t.newText)&&x.is(t.insert)&&x.is(t.replace)}s(n,`is`),e.is=n})(De||={}),(function(e){e.asIs=1,e.adjustIndentation=2})(Oe||={}),(function(e){function t(e){let t=e;return t&&(k.string(t.detail)||t.detail===void 0)&&(k.string(t.description)||t.description===void 0)}s(t,`is`),e.is=t})(ke||={}),(function(e){function t(e){return{label:e}}s(t,`create`),e.create=t})(Ae||={}),(function(e){function t(e,t){return{items:e||[],isIncomplete:!!t}}s(t,`create`),e.create=t})(je||={}),(function(e){function t(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,`\\$&`)}s(t,`fromPlainText`),e.fromPlainText=t;function n(e){let t=e;return k.string(t)||k.objectLiteral(t)&&k.string(t.language)&&k.string(t.value)}s(n,`is`),e.is=n})(Me||={}),(function(e){function t(e){let t=e;return!!t&&k.objectLiteral(t)&&(Ce.is(t.contents)||Me.is(t.contents)||k.typedArray(t.contents,Me.is))&&(e.range===void 0||x.is(e.range))}s(t,`is`),e.is=t})(Ne||={}),(function(e){function t(e,t){return t?{label:e,documentation:t}:{label:e}}s(t,`create`),e.create=t})(Pe||={}),(function(e){function t(e,t,...n){let r={label:e};return k.defined(t)&&(r.documentation=t),k.defined(n)?r.parameters=n:r.parameters=[],r}s(t,`create`),e.create=t})(Fe||={}),(function(e){e.Text=1,e.Read=2,e.Write=3})(Ie||={}),(function(e){function t(e,t){let n={range:e};return k.number(t)&&(n.kind=t),n}s(t,`create`),e.create=t})(Le||={}),(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(Re||={}),(function(e){e.Deprecated=1})(ze||={}),(function(e){function t(e,t,n,r,i){let a={name:e,kind:t,location:{uri:r,range:n}};return i&&(a.containerName=i),a}s(t,`create`),e.create=t})(Be||={}),(function(e){function t(e,t,n,r){return r===void 0?{name:e,kind:t,location:{uri:n}}:{name:e,kind:t,location:{uri:n,range:r}}}s(t,`create`),e.create=t})(Ve||={}),(function(e){function t(e,t,n,r,i,a){let o={name:e,detail:t,kind:n,range:r,selectionRange:i};return a!==void 0&&(o.children=a),o}s(t,`create`),e.create=t;function n(e){let t=e;return t&&k.string(t.name)&&k.number(t.kind)&&x.is(t.range)&&x.is(t.selectionRange)&&(t.detail===void 0||k.string(t.detail))&&(t.deprecated===void 0||k.boolean(t.deprecated))&&(t.children===void 0||Array.isArray(t.children))&&(t.tags===void 0||Array.isArray(t.tags))}s(n,`is`),e.is=n})(He||={}),(function(e){e.Empty=``,e.QuickFix=`quickfix`,e.Refactor=`refactor`,e.RefactorExtract=`refactor.extract`,e.RefactorInline=`refactor.inline`,e.RefactorRewrite=`refactor.rewrite`,e.Source=`source`,e.SourceOrganizeImports=`source.organizeImports`,e.SourceFixAll=`source.fixAll`})(Ue||={}),(function(e){e.Invoked=1,e.Automatic=2})(We||={}),(function(e){function t(e,t,n){let r={diagnostics:e};return t!=null&&(r.only=t),n!=null&&(r.triggerKind=n),r}s(t,`create`),e.create=t;function n(e){let t=e;return k.defined(t)&&k.typedArray(t.diagnostics,ce.is)&&(t.only===void 0||k.typedArray(t.only,k.string))&&(t.triggerKind===void 0||t.triggerKind===We.Invoked||t.triggerKind===We.Automatic)}s(n,`is`),e.is=n})(Ge||={}),(function(e){function t(e,t,n){let r={title:e},i=!0;return typeof t==`string`?(i=!1,r.kind=t):le.is(t)?r.command=t:r.edit=t,i&&n!==void 0&&(r.kind=n),r}s(t,`create`),e.create=t;function n(e){let t=e;return t&&k.string(t.title)&&(t.diagnostics===void 0||k.typedArray(t.diagnostics,ce.is))&&(t.kind===void 0||k.string(t.kind))&&(t.edit!==void 0||t.command!==void 0)&&(t.command===void 0||le.is(t.command))&&(t.isPreferred===void 0||k.boolean(t.isPreferred))&&(t.edit===void 0||me.is(t.edit))}s(n,`is`),e.is=n})(Ke||={}),(function(e){function t(e,t){let n={range:e};return k.defined(t)&&(n.data=t),n}s(t,`create`),e.create=t;function n(e){let t=e;return k.defined(t)&&x.is(t.range)&&(k.undefined(t.command)||le.is(t.command))}s(n,`is`),e.is=n})(qe||={}),(function(e){function t(e,t){return{tabSize:e,insertSpaces:t}}s(t,`create`),e.create=t;function n(e){let t=e;return k.defined(t)&&k.uinteger(t.tabSize)&&k.boolean(t.insertSpaces)}s(n,`is`),e.is=n})(Je||={}),(function(e){function t(e,t,n){return{range:e,target:t,data:n}}s(t,`create`),e.create=t;function n(e){let t=e;return k.defined(t)&&x.is(t.range)&&(k.undefined(t.target)||k.string(t.target))}s(n,`is`),e.is=n})(Ye||={}),(function(e){function t(e,t){return{range:e,parent:t}}s(t,`create`),e.create=t;function n(t){let n=t;return k.objectLiteral(n)&&x.is(n.range)&&(n.parent===void 0||e.is(n.parent))}s(n,`is`),e.is=n})(Xe||={}),(function(e){e.namespace=`namespace`,e.type=`type`,e.class=`class`,e.enum=`enum`,e.interface=`interface`,e.struct=`struct`,e.typeParameter=`typeParameter`,e.parameter=`parameter`,e.variable=`variable`,e.property=`property`,e.enumMember=`enumMember`,e.event=`event`,e.function=`function`,e.method=`method`,e.macro=`macro`,e.keyword=`keyword`,e.modifier=`modifier`,e.comment=`comment`,e.string=`string`,e.number=`number`,e.regexp=`regexp`,e.operator=`operator`,e.decorator=`decorator`})(Ze||={}),(function(e){e.declaration=`declaration`,e.definition=`definition`,e.readonly=`readonly`,e.static=`static`,e.deprecated=`deprecated`,e.abstract=`abstract`,e.async=`async`,e.modification=`modification`,e.documentation=`documentation`,e.defaultLibrary=`defaultLibrary`})(Qe||={}),(function(e){function t(e){let t=e;return k.objectLiteral(t)&&(t.resultId===void 0||typeof t.resultId==`string`)&&Array.isArray(t.data)&&(t.data.length===0||typeof t.data[0]==`number`)}s(t,`is`),e.is=t})($e||={}),(function(e){function t(e,t){return{range:e,text:t}}s(t,`create`),e.create=t;function n(e){let t=e;return t!=null&&x.is(t.range)&&k.string(t.text)}s(n,`is`),e.is=n})(et||={}),(function(e){function t(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}}s(t,`create`),e.create=t;function n(e){let t=e;return t!=null&&x.is(t.range)&&k.boolean(t.caseSensitiveLookup)&&(k.string(t.variableName)||t.variableName===void 0)}s(n,`is`),e.is=n})(tt||={}),(function(e){function t(e,t){return{range:e,expression:t}}s(t,`create`),e.create=t;function n(e){let t=e;return t!=null&&x.is(t.range)&&(k.string(t.expression)||t.expression===void 0)}s(n,`is`),e.is=n})(nt||={}),(function(e){function t(e,t){return{frameId:e,stoppedLocation:t}}s(t,`create`),e.create=t;function n(e){let t=e;return k.defined(t)&&x.is(e.stoppedLocation)}s(n,`is`),e.is=n})(rt||={}),(function(e){e.Type=1,e.Parameter=2;function t(e){return e===1||e===2}s(t,`is`),e.is=t})(it||={}),(function(e){function t(e){return{value:e}}s(t,`create`),e.create=t;function n(e){let t=e;return k.objectLiteral(t)&&(t.tooltip===void 0||k.string(t.tooltip)||Ce.is(t.tooltip))&&(t.location===void 0||S.is(t.location))&&(t.command===void 0||le.is(t.command))}s(n,`is`),e.is=n})(at||={}),(function(e){function t(e,t,n){let r={position:e,label:t};return n!==void 0&&(r.kind=n),r}s(t,`create`),e.create=t;function n(e){let t=e;return k.objectLiteral(t)&&b.is(t.position)&&(k.string(t.label)||k.typedArray(t.label,at.is))&&(t.kind===void 0||it.is(t.kind))&&t.textEdits===void 0||k.typedArray(t.textEdits,ue.is)&&(t.tooltip===void 0||k.string(t.tooltip)||Ce.is(t.tooltip))&&(t.paddingLeft===void 0||k.boolean(t.paddingLeft))&&(t.paddingRight===void 0||k.boolean(t.paddingRight))}s(n,`is`),e.is=n})(ot||={}),(function(e){function t(e){return{kind:`snippet`,value:e}}s(t,`createSnippet`),e.createSnippet=t})(st||={}),(function(e){function t(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}}s(t,`create`),e.create=t})(ct||={}),(function(e){function t(e){return{items:e}}s(t,`create`),e.create=t})(lt||={}),(function(e){e.Invoked=0,e.Automatic=1})(ut||={}),(function(e){function t(e,t){return{range:e,text:t}}s(t,`create`),e.create=t})(dt||={}),(function(e){function t(e,t){return{triggerKind:e,selectedCompletionInfo:t}}s(t,`create`),e.create=t})(ft||={}),(function(e){function t(e){let t=e;return k.objectLiteral(t)&&_.is(t.uri)&&k.string(t.name)}s(t,`is`),e.is=t})(pt||={}),mt=[`
1
+ import{W as e}from"./index-BkDx9KsG.js";var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>n(e,`name`,{value:t,configurable:!0}),c=(e,t)=>function(){return e&&(t=(0,e[i(e)[0]])(e=0)),t},l=(e,t)=>function(){return t||(0,e[i(e)[0]])((t={exports:{}}).exports,t),t.exports},u=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},d=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let c of i(t))!o.call(e,c)&&c!==a&&n(e,c,{get:()=>t[c],enumerable:!(s=r(t,c))||s.enumerable});return e},f=(e,t,n)=>(d(e,t,`default`),n&&d(n,t,`default`)),p=(e,r,i)=>(i=e==null?{}:t(a(e)),d(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e)),m=e=>d(n({},`__esModule`,{value:!0}),e),h={};u(h,{AnnotatedTextEdit:()=>E,ChangeAnnotation:()=>de,ChangeAnnotationIdentifier:()=>T,CodeAction:()=>Ke,CodeActionContext:()=>Ge,CodeActionKind:()=>Ue,CodeActionTriggerKind:()=>We,CodeDescription:()=>se,CodeLens:()=>qe,Color:()=>ee,ColorInformation:()=>te,ColorPresentation:()=>w,Command:()=>le,CompletionItem:()=>Ae,CompletionItemKind:()=>we,CompletionItemLabelDetails:()=>ke,CompletionItemTag:()=>Ee,CompletionList:()=>je,CreateFile:()=>D,DeleteFile:()=>O,Diagnostic:()=>ce,DiagnosticRelatedInformation:()=>ie,DiagnosticSeverity:()=>ae,DiagnosticTag:()=>oe,DocumentHighlight:()=>Le,DocumentHighlightKind:()=>Ie,DocumentLink:()=>Ye,DocumentSymbol:()=>He,DocumentUri:()=>g,EOL:()=>mt,FoldingRange:()=>re,FoldingRangeKind:()=>ne,FormattingOptions:()=>Je,Hover:()=>Ne,InlayHint:()=>ot,InlayHintKind:()=>it,InlayHintLabelPart:()=>at,InlineCompletionContext:()=>ft,InlineCompletionItem:()=>ct,InlineCompletionList:()=>lt,InlineCompletionTriggerKind:()=>ut,InlineValueContext:()=>rt,InlineValueEvaluatableExpression:()=>nt,InlineValueText:()=>et,InlineValueVariableLookup:()=>tt,InsertReplaceEdit:()=>De,InsertTextFormat:()=>Te,InsertTextMode:()=>Oe,Location:()=>S,LocationLink:()=>C,MarkedString:()=>Me,MarkupContent:()=>Ce,MarkupKind:()=>Se,OptionalVersionedTextDocumentIdentifier:()=>be,ParameterInformation:()=>Pe,Position:()=>b,Range:()=>x,RenameFile:()=>pe,SelectedCompletionInfo:()=>dt,SelectionRange:()=>Xe,SemanticTokenModifiers:()=>Qe,SemanticTokenTypes:()=>Ze,SemanticTokens:()=>$e,SignatureInformation:()=>Fe,StringValue:()=>st,SymbolInformation:()=>Be,SymbolKind:()=>Re,SymbolTag:()=>ze,TextDocument:()=>ht,TextDocumentEdit:()=>fe,TextDocumentIdentifier:()=>ve,TextDocumentItem:()=>xe,TextEdit:()=>ue,URI:()=>_,VersionedTextDocumentIdentifier:()=>ye,WorkspaceChange:()=>_e,WorkspaceEdit:()=>me,WorkspaceFolder:()=>pt,WorkspaceSymbol:()=>Ve,integer:()=>v,uinteger:()=>y});var g,_,v,y,b,x,S,C,ee,te,w,ne,re,ie,ae,oe,se,ce,le,ue,de,T,E,fe,D,pe,O,me,he,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe,Ie,Le,Re,ze,Be,Ve,He,Ue,We,Ge,Ke,qe,Je,Ye,Xe,Ze,Qe,$e,et,tt,nt,rt,it,at,ot,st,ct,lt,ut,dt,ft,pt,mt,ht,gt,k,_t=c({"../../node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.js"(){(function(e){function t(e){return typeof e==`string`}s(t,`is`),e.is=t})(g||={}),(function(e){function t(e){return typeof e==`string`}s(t,`is`),e.is=t})(_||={}),(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(t){return typeof t==`number`&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}s(t,`is`),e.is=t})(v||={}),(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(t){return typeof t==`number`&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}s(t,`is`),e.is=t})(y||={}),(function(e){function t(e,t){return e===Number.MAX_VALUE&&(e=y.MAX_VALUE),t===Number.MAX_VALUE&&(t=y.MAX_VALUE),{line:e,character:t}}s(t,`create`),e.create=t;function n(e){let t=e;return k.objectLiteral(t)&&k.uinteger(t.line)&&k.uinteger(t.character)}s(n,`is`),e.is=n})(b||={}),(function(e){function t(e,t,n,r){if(k.uinteger(e)&&k.uinteger(t)&&k.uinteger(n)&&k.uinteger(r))return{start:b.create(e,t),end:b.create(n,r)};if(b.is(e)&&b.is(t))return{start:e,end:t};throw Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)}s(t,`create`),e.create=t;function n(e){let t=e;return k.objectLiteral(t)&&b.is(t.start)&&b.is(t.end)}s(n,`is`),e.is=n})(x||={}),(function(e){function t(e,t){return{uri:e,range:t}}s(t,`create`),e.create=t;function n(e){let t=e;return k.objectLiteral(t)&&x.is(t.range)&&(k.string(t.uri)||k.undefined(t.uri))}s(n,`is`),e.is=n})(S||={}),(function(e){function t(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}}s(t,`create`),e.create=t;function n(e){let t=e;return k.objectLiteral(t)&&x.is(t.targetRange)&&k.string(t.targetUri)&&x.is(t.targetSelectionRange)&&(x.is(t.originSelectionRange)||k.undefined(t.originSelectionRange))}s(n,`is`),e.is=n})(C||={}),(function(e){function t(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}}s(t,`create`),e.create=t;function n(e){let t=e;return k.objectLiteral(t)&&k.numberRange(t.red,0,1)&&k.numberRange(t.green,0,1)&&k.numberRange(t.blue,0,1)&&k.numberRange(t.alpha,0,1)}s(n,`is`),e.is=n})(ee||={}),(function(e){function t(e,t){return{range:e,color:t}}s(t,`create`),e.create=t;function n(e){let t=e;return k.objectLiteral(t)&&x.is(t.range)&&ee.is(t.color)}s(n,`is`),e.is=n})(te||={}),(function(e){function t(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}}s(t,`create`),e.create=t;function n(e){let t=e;return k.objectLiteral(t)&&k.string(t.label)&&(k.undefined(t.textEdit)||ue.is(t))&&(k.undefined(t.additionalTextEdits)||k.typedArray(t.additionalTextEdits,ue.is))}s(n,`is`),e.is=n})(w||={}),(function(e){e.Comment=`comment`,e.Imports=`imports`,e.Region=`region`})(ne||={}),(function(e){function t(e,t,n,r,i,a){let o={startLine:e,endLine:t};return k.defined(n)&&(o.startCharacter=n),k.defined(r)&&(o.endCharacter=r),k.defined(i)&&(o.kind=i),k.defined(a)&&(o.collapsedText=a),o}s(t,`create`),e.create=t;function n(e){let t=e;return k.objectLiteral(t)&&k.uinteger(t.startLine)&&k.uinteger(t.startLine)&&(k.undefined(t.startCharacter)||k.uinteger(t.startCharacter))&&(k.undefined(t.endCharacter)||k.uinteger(t.endCharacter))&&(k.undefined(t.kind)||k.string(t.kind))}s(n,`is`),e.is=n})(re||={}),(function(e){function t(e,t){return{location:e,message:t}}s(t,`create`),e.create=t;function n(e){let t=e;return k.defined(t)&&S.is(t.location)&&k.string(t.message)}s(n,`is`),e.is=n})(ie||={}),(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(ae||={}),(function(e){e.Unnecessary=1,e.Deprecated=2})(oe||={}),(function(e){function t(e){let t=e;return k.objectLiteral(t)&&k.string(t.href)}s(t,`is`),e.is=t})(se||={}),(function(e){function t(e,t,n,r,i,a){let o={range:e,message:t};return k.defined(n)&&(o.severity=n),k.defined(r)&&(o.code=r),k.defined(i)&&(o.source=i),k.defined(a)&&(o.relatedInformation=a),o}s(t,`create`),e.create=t;function n(e){let t=e;return k.defined(t)&&x.is(t.range)&&k.string(t.message)&&(k.number(t.severity)||k.undefined(t.severity))&&(k.integer(t.code)||k.string(t.code)||k.undefined(t.code))&&(k.undefined(t.codeDescription)||k.string(t.codeDescription?.href))&&(k.string(t.source)||k.undefined(t.source))&&(k.undefined(t.relatedInformation)||k.typedArray(t.relatedInformation,ie.is))}s(n,`is`),e.is=n})(ce||={}),(function(e){function t(e,t,...n){let r={title:e,command:t};return k.defined(n)&&n.length>0&&(r.arguments=n),r}s(t,`create`),e.create=t;function n(e){let t=e;return k.defined(t)&&k.string(t.title)&&k.string(t.command)}s(n,`is`),e.is=n})(le||={}),(function(e){function t(e,t){return{range:e,newText:t}}s(t,`replace`),e.replace=t;function n(e,t){return{range:{start:e,end:e},newText:t}}s(n,`insert`),e.insert=n;function r(e){return{range:e,newText:``}}s(r,`del`),e.del=r;function i(e){let t=e;return k.objectLiteral(t)&&k.string(t.newText)&&x.is(t.range)}s(i,`is`),e.is=i})(ue||={}),(function(e){function t(e,t,n){let r={label:e};return t!==void 0&&(r.needsConfirmation=t),n!==void 0&&(r.description=n),r}s(t,`create`),e.create=t;function n(e){let t=e;return k.objectLiteral(t)&&k.string(t.label)&&(k.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(k.string(t.description)||t.description===void 0)}s(n,`is`),e.is=n})(de||={}),(function(e){function t(e){let t=e;return k.string(t)}s(t,`is`),e.is=t})(T||={}),(function(e){function t(e,t,n){return{range:e,newText:t,annotationId:n}}s(t,`replace`),e.replace=t;function n(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}}s(n,`insert`),e.insert=n;function r(e,t){return{range:e,newText:``,annotationId:t}}s(r,`del`),e.del=r;function i(e){let t=e;return ue.is(t)&&(de.is(t.annotationId)||T.is(t.annotationId))}s(i,`is`),e.is=i})(E||={}),(function(e){function t(e,t){return{textDocument:e,edits:t}}s(t,`create`),e.create=t;function n(e){let t=e;return k.defined(t)&&be.is(t.textDocument)&&Array.isArray(t.edits)}s(n,`is`),e.is=n})(fe||={}),(function(e){function t(e,t,n){let r={kind:`create`,uri:e};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(r.options=t),n!==void 0&&(r.annotationId=n),r}s(t,`create`),e.create=t;function n(e){let t=e;return t&&t.kind===`create`&&k.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||k.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||k.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||T.is(t.annotationId))}s(n,`is`),e.is=n})(D||={}),(function(e){function t(e,t,n,r){let i={kind:`rename`,oldUri:e,newUri:t};return n!==void 0&&(n.overwrite!==void 0||n.ignoreIfExists!==void 0)&&(i.options=n),r!==void 0&&(i.annotationId=r),i}s(t,`create`),e.create=t;function n(e){let t=e;return t&&t.kind===`rename`&&k.string(t.oldUri)&&k.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||k.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||k.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||T.is(t.annotationId))}s(n,`is`),e.is=n})(pe||={}),(function(e){function t(e,t,n){let r={kind:`delete`,uri:e};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(r.options=t),n!==void 0&&(r.annotationId=n),r}s(t,`create`),e.create=t;function n(e){let t=e;return t&&t.kind===`delete`&&k.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||k.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||k.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||T.is(t.annotationId))}s(n,`is`),e.is=n})(O||={}),(function(e){function t(e){let t=e;return t&&(t.changes!==void 0||t.documentChanges!==void 0)&&(t.documentChanges===void 0||t.documentChanges.every(e=>k.string(e.kind)?D.is(e)||pe.is(e)||O.is(e):fe.is(e)))}s(t,`is`),e.is=t})(me||={}),he=class{static{s(this,`TextEditChangeImpl`)}constructor(e,t){this.edits=e,this.changeAnnotations=t}insert(e,t,n){let r,i;if(n===void 0?r=ue.insert(e,t):T.is(n)?(i=n,r=E.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=E.insert(e,t,i)),this.edits.push(r),i!==void 0)return i}replace(e,t,n){let r,i;if(n===void 0?r=ue.replace(e,t):T.is(n)?(i=n,r=E.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=E.replace(e,t,i)),this.edits.push(r),i!==void 0)return i}delete(e,t){let n,r;if(t===void 0?n=ue.del(e):T.is(t)?(r=t,n=E.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=E.del(e,r)),this.edits.push(n),r!==void 0)return r}add(e){this.edits.push(e)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(e){if(e===void 0)throw Error(`Text edit change is not configured to manage change annotations.`)}},ge=class{static{s(this,`ChangeAnnotations`)}constructor(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(e,t){let n;if(T.is(e)?n=e:(n=this.nextId(),t=e),this._annotations[n]!==void 0)throw Error(`Id ${n} is already in use.`);if(t===void 0)throw Error(`No annotation provided for id ${n}`);return this._annotations[n]=t,this._size++,n}nextId(){return this._counter++,this._counter.toString()}},_e=class{static{s(this,`WorkspaceChange`)}constructor(e){this._textEditChanges=Object.create(null),e===void 0?this._workspaceEdit={}:(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new ge(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(e=>{if(fe.is(e)){let t=new he(e.edits,this._changeAnnotations);this._textEditChanges[e.textDocument.uri]=t}})):e.changes&&Object.keys(e.changes).forEach(t=>{let n=new he(e.changes[t]);this._textEditChanges[t]=n}))}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(e){if(be.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error(`Workspace edit is not configured for document changes.`);let t={uri:e.uri,version:e.version},n=this._textEditChanges[t.uri];if(!n){let e=[],r={textDocument:t,edits:e};this._workspaceEdit.documentChanges.push(r),n=new he(e,this._changeAnnotations),this._textEditChanges[t.uri]=n}return n}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw Error(`Workspace edit is not configured for normal text edit changes.`);let t=this._textEditChanges[e];if(!t){let n=[];this._workspaceEdit.changes[e]=n,t=new he(n),this._textEditChanges[e]=t}return t}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ge,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(e,t,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error(`Workspace edit is not configured for document changes.`);let r;de.is(t)||T.is(t)?r=t:n=t;let i,a;if(r===void 0?i=D.create(e,n):(a=T.is(r)?r:this._changeAnnotations.manage(r),i=D.create(e,n,a)),this._workspaceEdit.documentChanges.push(i),a!==void 0)return a}renameFile(e,t,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error(`Workspace edit is not configured for document changes.`);let i;de.is(n)||T.is(n)?i=n:r=n;let a,o;if(i===void 0?a=pe.create(e,t,r):(o=T.is(i)?i:this._changeAnnotations.manage(i),a=pe.create(e,t,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o}deleteFile(e,t,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error(`Workspace edit is not configured for document changes.`);let r;de.is(t)||T.is(t)?r=t:n=t;let i,a;if(r===void 0?i=O.create(e,n):(a=T.is(r)?r:this._changeAnnotations.manage(r),i=O.create(e,n,a)),this._workspaceEdit.documentChanges.push(i),a!==void 0)return a}},(function(e){function t(e){return{uri:e}}s(t,`create`),e.create=t;function n(e){let t=e;return k.defined(t)&&k.string(t.uri)}s(n,`is`),e.is=n})(ve||={}),(function(e){function t(e,t){return{uri:e,version:t}}s(t,`create`),e.create=t;function n(e){let t=e;return k.defined(t)&&k.string(t.uri)&&k.integer(t.version)}s(n,`is`),e.is=n})(ye||={}),(function(e){function t(e,t){return{uri:e,version:t}}s(t,`create`),e.create=t;function n(e){let t=e;return k.defined(t)&&k.string(t.uri)&&(t.version===null||k.integer(t.version))}s(n,`is`),e.is=n})(be||={}),(function(e){function t(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}}s(t,`create`),e.create=t;function n(e){let t=e;return k.defined(t)&&k.string(t.uri)&&k.string(t.languageId)&&k.integer(t.version)&&k.string(t.text)}s(n,`is`),e.is=n})(xe||={}),(function(e){e.PlainText=`plaintext`,e.Markdown=`markdown`;function t(t){let n=t;return n===e.PlainText||n===e.Markdown}s(t,`is`),e.is=t})(Se||={}),(function(e){function t(e){let t=e;return k.objectLiteral(e)&&Se.is(t.kind)&&k.string(t.value)}s(t,`is`),e.is=t})(Ce||={}),(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(we||={}),(function(e){e.PlainText=1,e.Snippet=2})(Te||={}),(function(e){e.Deprecated=1})(Ee||={}),(function(e){function t(e,t,n){return{newText:e,insert:t,replace:n}}s(t,`create`),e.create=t;function n(e){let t=e;return t&&k.string(t.newText)&&x.is(t.insert)&&x.is(t.replace)}s(n,`is`),e.is=n})(De||={}),(function(e){e.asIs=1,e.adjustIndentation=2})(Oe||={}),(function(e){function t(e){let t=e;return t&&(k.string(t.detail)||t.detail===void 0)&&(k.string(t.description)||t.description===void 0)}s(t,`is`),e.is=t})(ke||={}),(function(e){function t(e){return{label:e}}s(t,`create`),e.create=t})(Ae||={}),(function(e){function t(e,t){return{items:e||[],isIncomplete:!!t}}s(t,`create`),e.create=t})(je||={}),(function(e){function t(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,`\\$&`)}s(t,`fromPlainText`),e.fromPlainText=t;function n(e){let t=e;return k.string(t)||k.objectLiteral(t)&&k.string(t.language)&&k.string(t.value)}s(n,`is`),e.is=n})(Me||={}),(function(e){function t(e){let t=e;return!!t&&k.objectLiteral(t)&&(Ce.is(t.contents)||Me.is(t.contents)||k.typedArray(t.contents,Me.is))&&(e.range===void 0||x.is(e.range))}s(t,`is`),e.is=t})(Ne||={}),(function(e){function t(e,t){return t?{label:e,documentation:t}:{label:e}}s(t,`create`),e.create=t})(Pe||={}),(function(e){function t(e,t,...n){let r={label:e};return k.defined(t)&&(r.documentation=t),k.defined(n)?r.parameters=n:r.parameters=[],r}s(t,`create`),e.create=t})(Fe||={}),(function(e){e.Text=1,e.Read=2,e.Write=3})(Ie||={}),(function(e){function t(e,t){let n={range:e};return k.number(t)&&(n.kind=t),n}s(t,`create`),e.create=t})(Le||={}),(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(Re||={}),(function(e){e.Deprecated=1})(ze||={}),(function(e){function t(e,t,n,r,i){let a={name:e,kind:t,location:{uri:r,range:n}};return i&&(a.containerName=i),a}s(t,`create`),e.create=t})(Be||={}),(function(e){function t(e,t,n,r){return r===void 0?{name:e,kind:t,location:{uri:n}}:{name:e,kind:t,location:{uri:n,range:r}}}s(t,`create`),e.create=t})(Ve||={}),(function(e){function t(e,t,n,r,i,a){let o={name:e,detail:t,kind:n,range:r,selectionRange:i};return a!==void 0&&(o.children=a),o}s(t,`create`),e.create=t;function n(e){let t=e;return t&&k.string(t.name)&&k.number(t.kind)&&x.is(t.range)&&x.is(t.selectionRange)&&(t.detail===void 0||k.string(t.detail))&&(t.deprecated===void 0||k.boolean(t.deprecated))&&(t.children===void 0||Array.isArray(t.children))&&(t.tags===void 0||Array.isArray(t.tags))}s(n,`is`),e.is=n})(He||={}),(function(e){e.Empty=``,e.QuickFix=`quickfix`,e.Refactor=`refactor`,e.RefactorExtract=`refactor.extract`,e.RefactorInline=`refactor.inline`,e.RefactorRewrite=`refactor.rewrite`,e.Source=`source`,e.SourceOrganizeImports=`source.organizeImports`,e.SourceFixAll=`source.fixAll`})(Ue||={}),(function(e){e.Invoked=1,e.Automatic=2})(We||={}),(function(e){function t(e,t,n){let r={diagnostics:e};return t!=null&&(r.only=t),n!=null&&(r.triggerKind=n),r}s(t,`create`),e.create=t;function n(e){let t=e;return k.defined(t)&&k.typedArray(t.diagnostics,ce.is)&&(t.only===void 0||k.typedArray(t.only,k.string))&&(t.triggerKind===void 0||t.triggerKind===We.Invoked||t.triggerKind===We.Automatic)}s(n,`is`),e.is=n})(Ge||={}),(function(e){function t(e,t,n){let r={title:e},i=!0;return typeof t==`string`?(i=!1,r.kind=t):le.is(t)?r.command=t:r.edit=t,i&&n!==void 0&&(r.kind=n),r}s(t,`create`),e.create=t;function n(e){let t=e;return t&&k.string(t.title)&&(t.diagnostics===void 0||k.typedArray(t.diagnostics,ce.is))&&(t.kind===void 0||k.string(t.kind))&&(t.edit!==void 0||t.command!==void 0)&&(t.command===void 0||le.is(t.command))&&(t.isPreferred===void 0||k.boolean(t.isPreferred))&&(t.edit===void 0||me.is(t.edit))}s(n,`is`),e.is=n})(Ke||={}),(function(e){function t(e,t){let n={range:e};return k.defined(t)&&(n.data=t),n}s(t,`create`),e.create=t;function n(e){let t=e;return k.defined(t)&&x.is(t.range)&&(k.undefined(t.command)||le.is(t.command))}s(n,`is`),e.is=n})(qe||={}),(function(e){function t(e,t){return{tabSize:e,insertSpaces:t}}s(t,`create`),e.create=t;function n(e){let t=e;return k.defined(t)&&k.uinteger(t.tabSize)&&k.boolean(t.insertSpaces)}s(n,`is`),e.is=n})(Je||={}),(function(e){function t(e,t,n){return{range:e,target:t,data:n}}s(t,`create`),e.create=t;function n(e){let t=e;return k.defined(t)&&x.is(t.range)&&(k.undefined(t.target)||k.string(t.target))}s(n,`is`),e.is=n})(Ye||={}),(function(e){function t(e,t){return{range:e,parent:t}}s(t,`create`),e.create=t;function n(t){let n=t;return k.objectLiteral(n)&&x.is(n.range)&&(n.parent===void 0||e.is(n.parent))}s(n,`is`),e.is=n})(Xe||={}),(function(e){e.namespace=`namespace`,e.type=`type`,e.class=`class`,e.enum=`enum`,e.interface=`interface`,e.struct=`struct`,e.typeParameter=`typeParameter`,e.parameter=`parameter`,e.variable=`variable`,e.property=`property`,e.enumMember=`enumMember`,e.event=`event`,e.function=`function`,e.method=`method`,e.macro=`macro`,e.keyword=`keyword`,e.modifier=`modifier`,e.comment=`comment`,e.string=`string`,e.number=`number`,e.regexp=`regexp`,e.operator=`operator`,e.decorator=`decorator`})(Ze||={}),(function(e){e.declaration=`declaration`,e.definition=`definition`,e.readonly=`readonly`,e.static=`static`,e.deprecated=`deprecated`,e.abstract=`abstract`,e.async=`async`,e.modification=`modification`,e.documentation=`documentation`,e.defaultLibrary=`defaultLibrary`})(Qe||={}),(function(e){function t(e){let t=e;return k.objectLiteral(t)&&(t.resultId===void 0||typeof t.resultId==`string`)&&Array.isArray(t.data)&&(t.data.length===0||typeof t.data[0]==`number`)}s(t,`is`),e.is=t})($e||={}),(function(e){function t(e,t){return{range:e,text:t}}s(t,`create`),e.create=t;function n(e){let t=e;return t!=null&&x.is(t.range)&&k.string(t.text)}s(n,`is`),e.is=n})(et||={}),(function(e){function t(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}}s(t,`create`),e.create=t;function n(e){let t=e;return t!=null&&x.is(t.range)&&k.boolean(t.caseSensitiveLookup)&&(k.string(t.variableName)||t.variableName===void 0)}s(n,`is`),e.is=n})(tt||={}),(function(e){function t(e,t){return{range:e,expression:t}}s(t,`create`),e.create=t;function n(e){let t=e;return t!=null&&x.is(t.range)&&(k.string(t.expression)||t.expression===void 0)}s(n,`is`),e.is=n})(nt||={}),(function(e){function t(e,t){return{frameId:e,stoppedLocation:t}}s(t,`create`),e.create=t;function n(e){let t=e;return k.defined(t)&&x.is(e.stoppedLocation)}s(n,`is`),e.is=n})(rt||={}),(function(e){e.Type=1,e.Parameter=2;function t(e){return e===1||e===2}s(t,`is`),e.is=t})(it||={}),(function(e){function t(e){return{value:e}}s(t,`create`),e.create=t;function n(e){let t=e;return k.objectLiteral(t)&&(t.tooltip===void 0||k.string(t.tooltip)||Ce.is(t.tooltip))&&(t.location===void 0||S.is(t.location))&&(t.command===void 0||le.is(t.command))}s(n,`is`),e.is=n})(at||={}),(function(e){function t(e,t,n){let r={position:e,label:t};return n!==void 0&&(r.kind=n),r}s(t,`create`),e.create=t;function n(e){let t=e;return k.objectLiteral(t)&&b.is(t.position)&&(k.string(t.label)||k.typedArray(t.label,at.is))&&(t.kind===void 0||it.is(t.kind))&&t.textEdits===void 0||k.typedArray(t.textEdits,ue.is)&&(t.tooltip===void 0||k.string(t.tooltip)||Ce.is(t.tooltip))&&(t.paddingLeft===void 0||k.boolean(t.paddingLeft))&&(t.paddingRight===void 0||k.boolean(t.paddingRight))}s(n,`is`),e.is=n})(ot||={}),(function(e){function t(e){return{kind:`snippet`,value:e}}s(t,`createSnippet`),e.createSnippet=t})(st||={}),(function(e){function t(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}}s(t,`create`),e.create=t})(ct||={}),(function(e){function t(e){return{items:e}}s(t,`create`),e.create=t})(lt||={}),(function(e){e.Invoked=0,e.Automatic=1})(ut||={}),(function(e){function t(e,t){return{range:e,text:t}}s(t,`create`),e.create=t})(dt||={}),(function(e){function t(e,t){return{triggerKind:e,selectedCompletionInfo:t}}s(t,`create`),e.create=t})(ft||={}),(function(e){function t(e){let t=e;return k.objectLiteral(t)&&_.is(t.uri)&&k.string(t.name)}s(t,`is`),e.is=t})(pt||={}),mt=[`
2
2
  `,`\r
3
3
  `,`\r`],(function(e){function t(e,t,n,r){return new gt(e,t,n,r)}s(t,`create`),e.create=t;function n(e){let t=e;return!!(k.defined(t)&&k.string(t.uri)&&(k.undefined(t.languageId)||k.string(t.languageId))&&k.uinteger(t.lineCount)&&k.func(t.getText)&&k.func(t.positionAt)&&k.func(t.offsetAt))}s(n,`is`),e.is=n;function r(e,t){let n=e.getText(),r=i(t,(e,t)=>{let n=e.range.start.line-t.range.start.line;return n===0?e.range.start.character-t.range.start.character:n}),a=n.length;for(let t=r.length-1;t>=0;t--){let i=r[t],o=e.offsetAt(i.range.start),s=e.offsetAt(i.range.end);if(s<=a)n=n.substring(0,o)+i.newText+n.substring(s,n.length);else throw Error(`Overlapping edit`);a=o}return n}s(r,`applyEdits`),e.applyEdits=r;function i(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),a=e.slice(n);i(r,t),i(a,t);let o=0,s=0,c=0;for(;o<r.length&&s<a.length;)t(r[o],a[s])<=0?e[c++]=r[o++]:e[c++]=a[s++];for(;o<r.length;)e[c++]=r[o++];for(;s<a.length;)e[c++]=a[s++];return e}s(i,`mergeSort`)})(ht||={}),gt=class{static{s(this,`FullTextDocument`)}constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let e=[],t=this._content,n=!0;for(let r=0;r<t.length;r++){n&&=(e.push(r),!1);let i=t.charAt(r);n=i===`\r`||i===`
4
4
  `,i===`\r`&&r+1<t.length&&t.charAt(r+1)===`
@@ -161,6 +161,6 @@ ${t}`),this.inline?`{${r}}`:r}};function wN(e,t,n){if(e===`linkplain`||e===`link
161
161
  `)}}},nR=class extends tR{static{s(this,`CommonValueConverter`)}runCustomConverter(e,t,n){}},rR=class extends Lj{static{s(this,`AbstractMermaidTokenBuilder`)}constructor(e){super(),this.keywords=new Set(e)}buildKeywordTokens(e,t,n){let r=super.buildKeywordTokens(e,t,n);return r.forEach(e=>{this.keywords.has(e.name)&&e.PATTERN!==void 0&&(e.PATTERN=RegExp(e.PATTERN.toString()+`(?:(?=%%)|(?!\\S))`))}),r}};(class extends rR{static{s(this,`CommonTokenBuilder`)}});var iR=class extends rR{static{s(this,`ArchitectureTokenBuilder`)}constructor(){super([`architecture`])}},aR=class extends tR{static{s(this,`ArchitectureValueConverter`)}runCustomConverter(e,t,n){if(e.name===`ARCH_ICON`)return t.replace(/[()]/g,``).trim();if(e.name===`ARCH_TEXT_ICON`)return t.replace(/["()]/g,``);if(e.name===`ARCH_TITLE`){let e=t.replace(/^\[|]$/g,``).trim();return(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))&&(e=e.slice(1,-1),e=e.replace(/\\"/g,`"`).replace(/\\'/g,`'`)),e.trim()}}},oR={parser:{TokenBuilder:s(()=>new iR,`TokenBuilder`),ValueConverter:s(()=>new aR,`ValueConverter`)}};function sR(e=ZN){let t=Q(LN(e),RL),n=Q(IN({shared:t}),zL,oR);return t.ServiceRegistry.register(n),{shared:t,Architecture:n}}s(sR,`createArchitectureServices`);var cR=class extends rR{static{s(this,`CynefinTokenBuilder`)}constructor(){super([`cynefin-beta`])}},lR={parser:{TokenBuilder:s(()=>new cR,`TokenBuilder`),ValueConverter:s(()=>new nR,`ValueConverter`)}};function uR(e=ZN){let t=Q(LN(e),RL),n=Q(IN({shared:t}),BL,lR);return t.ServiceRegistry.register(n),{shared:t,Cynefin:n}}s(uR,`createCynefinServices`);var dR=class extends rR{static{s(this,`EventModelingTokenBuilder`)}constructor(){super([`eventmodeling`])}},fR=new Set([`cmd`,`command`]),pR=new Set([`evt`,`event`]),mR=new Set([`rmo`,`readmodel`]),hR=new Set([`pcr`,`processor`]),gR=new Set([`ui`]);function _R(e){let t=e.validation.EventModelingValidator,n=e.validation.ValidationRegistry;if(n){let e={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};n.register(e,t)}}s(_R,`registerValidationChecks`);var vR=class{static{s(this,`EventModelingValidator`)}checkSourceFrameTypes(e,t){e.sourceFrames.length!==0&&(fR.has(e.modelEntityType)?this.validateSources(e,new Set([...gR,...hR]),`command`,`ui or processor`,t):pR.has(e.modelEntityType)?this.validateSources(e,fR,`event`,`command`,t):mR.has(e.modelEntityType)?this.validateSources(e,pR,`read model`,`event`,t):hR.has(e.modelEntityType)?this.validateSources(e,mR,`processor`,`read model`,t):gR.has(e.modelEntityType)&&this.validateSources(e,mR,`ui`,`read model`,t))}validateSources(e,t,n,r,i){for(let a of e.sourceFrames){let o=a.ref;o!==void 0&&!t.has(o.modelEntityType)&&i(`error`,`A ${n} can only receive input from a ${r}, not from '${o.modelEntityType}'.`,{node:e,property:`sourceFrames`})}}},yR={parser:{TokenBuilder:s(()=>new dR,`TokenBuilder`),ValueConverter:s(()=>new nR,`ValueConverter`)},validation:{EventModelingValidator:s(()=>new vR,`EventModelingValidator`)}};function bR(e=ZN){let t=Q(LN(e),RL),n=Q(IN({shared:t}),VL,yR);return t.ServiceRegistry.register(n),_R(n),{shared:t,EventModel:n}}s(bR,`createEventModelingServices`);var xR=class extends rR{static{s(this,`GitGraphTokenBuilder`)}constructor(){super([`gitGraph`])}},SR={parser:{TokenBuilder:s(()=>new xR,`TokenBuilder`),ValueConverter:s(()=>new nR,`ValueConverter`)}};function CR(e=ZN){let t=Q(LN(e),RL),n=Q(IN({shared:t}),HL,SR);return t.ServiceRegistry.register(n),{shared:t,GitGraph:n}}s(CR,`createGitGraphServices`);var wR=class extends rR{static{s(this,`InfoTokenBuilder`)}constructor(){super([`info`,`showInfo`])}},TR={parser:{TokenBuilder:s(()=>new wR,`TokenBuilder`),ValueConverter:s(()=>new nR,`ValueConverter`)}};function ER(e=ZN){let t=Q(LN(e),RL),n=Q(IN({shared:t}),UL,TR);return t.ServiceRegistry.register(n),{shared:t,Info:n}}s(ER,`createInfoServices`);var DR=class extends rR{static{s(this,`PacketTokenBuilder`)}constructor(){super([`packet`])}},OR={parser:{TokenBuilder:s(()=>new DR,`TokenBuilder`),ValueConverter:s(()=>new nR,`ValueConverter`)}};function kR(e=ZN){let t=Q(LN(e),RL),n=Q(IN({shared:t}),WL,OR);return t.ServiceRegistry.register(n),{shared:t,Packet:n}}s(kR,`createPacketServices`);var AR=class extends rR{static{s(this,`PieTokenBuilder`)}constructor(){super([`pie`,`showData`])}},jR=class extends tR{static{s(this,`PieValueConverter`)}runCustomConverter(e,t,n){if(e.name===`PIE_SECTION_LABEL`)return t.replace(/"/g,``).trim()}},MR={parser:{TokenBuilder:s(()=>new AR,`TokenBuilder`),ValueConverter:s(()=>new jR,`ValueConverter`)}};function NR(e=ZN){let t=Q(LN(e),RL),n=Q(IN({shared:t}),GL,MR);return t.ServiceRegistry.register(n),{shared:t,Pie:n}}s(NR,`createPieServices`);var PR=class extends rR{static{s(this,`RadarTokenBuilder`)}constructor(){super([`radar-beta`])}},FR={parser:{TokenBuilder:s(()=>new PR,`TokenBuilder`),ValueConverter:s(()=>new nR,`ValueConverter`)}};function IR(e=ZN){let t=Q(LN(e),RL),n=Q(IN({shared:t}),KL,FR);return t.ServiceRegistry.register(n),{shared:t,Radar:n}}s(IR,`createRadarServices`);var LR=class extends rR{static{s(this,`RailroadTokenBuilder`)}constructor(){super([`railroad-beta`])}},RR=s(e=>{let t=e.slice(1,-1),n=``;for(let e=0;e<t.length;e++){let r=t[e];if(r===`\\`&&e+1<t.length){e++;let r=t[e];switch(r){case`n`:n+=`
162
162
  `;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;default:n+=r}continue}n+=r}return n},`decodeEscapedString`),zR=class extends tR{static{s(this,`RailroadValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return RR(e)}return r}runCustomConverter(e,t,n){if(e.name===`RR_STRING`)return RR(t)}},BR={parser:{TokenBuilder:s(()=>new LR,`TokenBuilder`),ValueConverter:s(()=>new zR,`ValueConverter`)}};function VR(e=ZN){let t=Q(LN(e),RL),n=Q(IN({shared:t}),YL,BR);return t.ServiceRegistry.register(n),{shared:t,Railroad:n}}s(VR,`createRailroadServices`);var HR=class extends rR{static{s(this,`RailroadAbnfTokenBuilder`)}constructor(){super([`railroad-abnf-beta`])}},UR=class extends tR{static{s(this,`RailroadAbnfValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return e.slice(1,-1)}return r}runCustomConverter(e,t,n){if(e.name===`ABNF_STRING`)return t.slice(1,-1)}},WR={parser:{TokenBuilder:s(()=>new HR,`TokenBuilder`),ValueConverter:s(()=>new UR,`ValueConverter`)}};function GR(e=ZN){let t=Q(LN(e),RL),n=Q(IN({shared:t}),qL,WR);return t.ServiceRegistry.register(n),{shared:t,RailroadAbnf:n}}s(GR,`createRailroadAbnfServices`);var KR=class extends rR{static{s(this,`RailroadEbnfTokenBuilder`)}constructor(){super([`railroad-ebnf-beta`])}},qR=s(e=>{let t=e.slice(1,-1),n=``;for(let e=0;e<t.length;e++){let r=t[e];if(r===`\\`&&e+1<t.length){e++;let r=t[e];switch(r){case`n`:n+=`
163
163
  `;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;default:n+=r}continue}n+=r}return n},`decodeEscapedString`),JR=class extends tR{static{s(this,`RailroadEbnfValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return qR(e)}return r}runCustomConverter(e,t,n){if(e.name===`EBNF_STRING`)return qR(t);if(e.name===`EBNF_SPECIAL_SEQUENCE`)return t.slice(1,-1).trim()}},YR={parser:{TokenBuilder:s(()=>new KR,`TokenBuilder`),ValueConverter:s(()=>new JR,`ValueConverter`)}};function XR(e=ZN){let t=Q(LN(e),RL),n=Q(IN({shared:t}),JL,YR);return t.ServiceRegistry.register(n),{shared:t,RailroadEbnf:n}}s(XR,`createRailroadEbnfServices`);var ZR=class extends rR{static{s(this,`RailroadPegTokenBuilder`)}constructor(){super([`railroad-peg-beta`])}},QR=s(e=>{let t=e.slice(1,-1),n=``;for(let e=0;e<t.length;e++){let r=t[e];if(r===`\\`&&e+1<t.length){e++;let r=t[e];switch(r){case`n`:n+=`
164
- `;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;default:n+=r}continue}n+=r}return n},`decodeEscapedString`),$R=class extends tR{static{s(this,`RailroadPegValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return QR(e)}return r}runCustomConverter(e,t,n){if(e.name===`PEG_STRING`)return QR(t)}},ez={parser:{TokenBuilder:s(()=>new ZR,`TokenBuilder`),ValueConverter:s(()=>new $R,`ValueConverter`)}};function tz(e=ZN){let t=Q(LN(e),RL),n=Q(IN({shared:t}),XL,ez);return t.ServiceRegistry.register(n),{shared:t,RailroadPeg:n}}s(tz,`createRailroadPegServices`);var nz=class extends tR{static{s(this,`TreeViewValueConverter`)}runCustomConverter(e,t,n){if(e.name===`INDENTATION`)return t?.length||0;if(e.name===`QUOTED_NAME`)return t.substring(1,t.length-1);if(e.name===`BARE_NAME`)return t.replace(/[\t ]+$/,``);if(e.name===`CLASS_ANNOTATION`)return t.trim().substring(3).trim();if(e.name===`ICON_ANNOTATION`){let e=t.trim();return e.substring(5,e.length-1)}if(e.name===`DESC_ANNOTATION`)return t.trim().substring(2).trim()}},rz=class extends rR{static{s(this,`TreeViewTokenBuilder`)}constructor(){super([`treeView-beta`])}},iz={parser:{TokenBuilder:s(()=>new rz,`TokenBuilder`),ValueConverter:s(()=>new nz,`ValueConverter`)}};function az(e=ZN){let t=Q(LN(e),RL),n=Q(IN({shared:t}),QL,iz);return t.ServiceRegistry.register(n),{shared:t,TreeView:n}}s(az,`createTreeViewServices`);var oz=class extends rR{static{s(this,`TreemapTokenBuilder`)}constructor(){super([`treemap`])}},sz=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,cz=class extends tR{static{s(this,`TreemapValueConverter`)}runCustomConverter(e,t,n){if(e.name===`NUMBER2`)return parseFloat(t.replace(/,/g,``));if(e.name===`SEPARATOR`||e.name===`STRING2`)return t.substring(1,t.length-1);if(e.name===`INDENTATION`)return t.length;if(e.name===`ClassDef`){if(typeof t!=`string`)return t;let e=sz.exec(t);if(e)return{$type:`ClassDefStatement`,className:e[1],styleText:e[2]||void 0}}}};function lz(e){let t=e.validation.TreemapValidator,n=e.validation.ValidationRegistry;if(n){let e={Treemap:t.checkSingleRoot.bind(t)};n.register(e,t)}}s(lz,`registerValidationChecks`);var uz=class{static{s(this,`TreemapValidator`)}checkSingleRoot(e,t){let n;for(let r of e.TreemapRows)r.item&&(n===void 0&&r.indent===void 0?n=0:(r.indent===void 0||n!==void 0&&n>=parseInt(r.indent,10))&&t(`error`,`Multiple root nodes are not allowed in a treemap.`,{node:r,property:`item`}))}},dz={parser:{TokenBuilder:s(()=>new oz,`TokenBuilder`),ValueConverter:s(()=>new cz,`ValueConverter`)},validation:{TreemapValidator:s(()=>new uz,`TreemapValidator`)}};function fz(e=ZN){let t=Q(LN(e),RL),n=Q(IN({shared:t}),ZL,dz);return t.ServiceRegistry.register(n),lz(n),{shared:t,Treemap:n}}s(fz,`createTreemapServices`);var pz=class extends tR{static{s(this,`WardleyValueConverter`)}runCustomConverter(e,t,n){switch(e.name.toUpperCase()){case`LINK_LABEL`:return t.substring(1).trim();default:return}}},mz={parser:{ValueConverter:s(()=>new pz,`ValueConverter`)}};function hz(e=ZN){let t=Q(LN(e),RL),n=Q(IN({shared:t}),$L,mz);return t.ServiceRegistry.register(n),{shared:t,Wardley:n}}s(hz,`createWardleyServices`);var gz={},_z={info:s(async()=>{let{createInfoServices:t}=await e(async()=>{let{createInfoServices:e}=await import(`./info-A6RAGUB7-B6iAblII.js`);return{createInfoServices:e}},[],import.meta.url);gz.info=t().Info.parser.LangiumParser},`info`),packet:s(async()=>{let{createPacketServices:t}=await e(async()=>{let{createPacketServices:e}=await import(`./packet-AYTQ26CC-BOYAipuq.js`);return{createPacketServices:e}},[],import.meta.url);gz.packet=t().Packet.parser.LangiumParser},`packet`),pie:s(async()=>{let{createPieServices:t}=await e(async()=>{let{createPieServices:e}=await import(`./pie-WAS4IAKB-Ctq0Kbku.js`);return{createPieServices:e}},[],import.meta.url);gz.pie=t().Pie.parser.LangiumParser},`pie`),treeView:s(async()=>{let{createTreeViewServices:t}=await e(async()=>{let{createTreeViewServices:e}=await import(`./treeView-Q6P3EWNA-BMpO0wsB.js`);return{createTreeViewServices:e}},[],import.meta.url);gz.treeView=t().TreeView.parser.LangiumParser},`treeView`),architecture:s(async()=>{let{createArchitectureServices:t}=await e(async()=>{let{createArchitectureServices:e}=await import(`./architecture-7GRP2DOG-DjKratdf.js`);return{createArchitectureServices:e}},[],import.meta.url);gz.architecture=t().Architecture.parser.LangiumParser},`architecture`),gitGraph:s(async()=>{let{createGitGraphServices:t}=await e(async()=>{let{createGitGraphServices:e}=await import(`./gitGraph-4MIJSDKK-Dw63mrhw.js`);return{createGitGraphServices:e}},[],import.meta.url);gz.gitGraph=t().GitGraph.parser.LangiumParser},`gitGraph`),eventmodeling:s(async()=>{let{createEventModelingServices:t}=await e(async()=>{let{createEventModelingServices:e}=await import(`./eventmodeling-NTZA5JFV-CMgMaJrC.js`);return{createEventModelingServices:e}},[],import.meta.url);gz.eventmodeling=t().EventModel.parser.LangiumParser},`eventmodeling`),radar:s(async()=>{let{createRadarServices:t}=await e(async()=>{let{createRadarServices:e}=await import(`./radar-RG4KPBEZ-DN0-ul_0.js`);return{createRadarServices:e}},[],import.meta.url);gz.radar=t().Radar.parser.LangiumParser},`radar`),railroad:s(async()=>{let{createRailroadServices:t}=await e(async()=>{let{createRailroadServices:e}=await import(`./railroad-74A4TZTK-C6cC_to0.js`);return{createRailroadServices:e}},[],import.meta.url);gz.railroad=t().Railroad.parser.LangiumParser},`railroad`),railroadEbnf:s(async()=>{let{createRailroadEbnfServices:t}=await e(async()=>{let{createRailroadEbnfServices:e}=await import(`./railroad-ebnf-LZEXJU2U-CvY65ABq.js`);return{createRailroadEbnfServices:e}},[],import.meta.url);gz.railroadEbnf=t().RailroadEbnf.parser.LangiumParser},`railroadEbnf`),railroadAbnf:s(async()=>{let{createRailroadAbnfServices:t}=await e(async()=>{let{createRailroadAbnfServices:e}=await import(`./railroad-abnf-HS5TGJTU-BimjIuRc.js`);return{createRailroadAbnfServices:e}},[],import.meta.url);gz.railroadAbnf=t().RailroadAbnf.parser.LangiumParser},`railroadAbnf`),railroadPeg:s(async()=>{let{createRailroadPegServices:t}=await e(async()=>{let{createRailroadPegServices:e}=await import(`./railroad-peg-WCYAUIDC-D72Iq_Tv.js`);return{createRailroadPegServices:e}},[],import.meta.url);gz.railroadPeg=t().RailroadPeg.parser.LangiumParser},`railroadPeg`),treemap:s(async()=>{let{createTreemapServices:t}=await e(async()=>{let{createTreemapServices:e}=await import(`./treemap-WGGIJYW6-Et0aqzU3.js`);return{createTreemapServices:e}},[],import.meta.url);gz.treemap=t().Treemap.parser.LangiumParser},`treemap`),wardley:s(async()=>{let{createWardleyServices:t}=await e(async()=>{let{createWardleyServices:e}=await import(`./wardley-WFR3VGLG-CbY0mhpl.js`);return{createWardleyServices:e}},[],import.meta.url);gz.wardley=t().Wardley.parser.LangiumParser},`wardley`),cynefin:s(async()=>{let{createCynefinServices:t}=await e(async()=>{let{createCynefinServices:e}=await import(`./cynefin-OW5HDTMX-DjEM48Qp.js`);return{createCynefinServices:e}},[],import.meta.url);gz.cynefin=t().Cynefin.parser.LangiumParser},`cynefin`)};async function vz(e,t){let n=_z[e];if(!n)throw Error(`Unknown diagram type: ${e}`);gz[e]||await n();let r=gz[e].parse(t);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new yz(r);return r.value}s(vz,`parse`);var yz=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(`
164
+ `;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;default:n+=r}continue}n+=r}return n},`decodeEscapedString`),$R=class extends tR{static{s(this,`RailroadPegValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return QR(e)}return r}runCustomConverter(e,t,n){if(e.name===`PEG_STRING`)return QR(t)}},ez={parser:{TokenBuilder:s(()=>new ZR,`TokenBuilder`),ValueConverter:s(()=>new $R,`ValueConverter`)}};function tz(e=ZN){let t=Q(LN(e),RL),n=Q(IN({shared:t}),XL,ez);return t.ServiceRegistry.register(n),{shared:t,RailroadPeg:n}}s(tz,`createRailroadPegServices`);var nz=class extends tR{static{s(this,`TreeViewValueConverter`)}runCustomConverter(e,t,n){if(e.name===`INDENTATION`)return t?.length||0;if(e.name===`QUOTED_NAME`)return t.substring(1,t.length-1);if(e.name===`BARE_NAME`)return t.replace(/[\t ]+$/,``);if(e.name===`CLASS_ANNOTATION`)return t.trim().substring(3).trim();if(e.name===`ICON_ANNOTATION`){let e=t.trim();return e.substring(5,e.length-1)}if(e.name===`DESC_ANNOTATION`)return t.trim().substring(2).trim()}},rz=class extends rR{static{s(this,`TreeViewTokenBuilder`)}constructor(){super([`treeView-beta`])}},iz={parser:{TokenBuilder:s(()=>new rz,`TokenBuilder`),ValueConverter:s(()=>new nz,`ValueConverter`)}};function az(e=ZN){let t=Q(LN(e),RL),n=Q(IN({shared:t}),QL,iz);return t.ServiceRegistry.register(n),{shared:t,TreeView:n}}s(az,`createTreeViewServices`);var oz=class extends rR{static{s(this,`TreemapTokenBuilder`)}constructor(){super([`treemap`])}},sz=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,cz=class extends tR{static{s(this,`TreemapValueConverter`)}runCustomConverter(e,t,n){if(e.name===`NUMBER2`)return parseFloat(t.replace(/,/g,``));if(e.name===`SEPARATOR`||e.name===`STRING2`)return t.substring(1,t.length-1);if(e.name===`INDENTATION`)return t.length;if(e.name===`ClassDef`){if(typeof t!=`string`)return t;let e=sz.exec(t);if(e)return{$type:`ClassDefStatement`,className:e[1],styleText:e[2]||void 0}}}};function lz(e){let t=e.validation.TreemapValidator,n=e.validation.ValidationRegistry;if(n){let e={Treemap:t.checkSingleRoot.bind(t)};n.register(e,t)}}s(lz,`registerValidationChecks`);var uz=class{static{s(this,`TreemapValidator`)}checkSingleRoot(e,t){let n;for(let r of e.TreemapRows)r.item&&(n===void 0&&r.indent===void 0?n=0:(r.indent===void 0||n!==void 0&&n>=parseInt(r.indent,10))&&t(`error`,`Multiple root nodes are not allowed in a treemap.`,{node:r,property:`item`}))}},dz={parser:{TokenBuilder:s(()=>new oz,`TokenBuilder`),ValueConverter:s(()=>new cz,`ValueConverter`)},validation:{TreemapValidator:s(()=>new uz,`TreemapValidator`)}};function fz(e=ZN){let t=Q(LN(e),RL),n=Q(IN({shared:t}),ZL,dz);return t.ServiceRegistry.register(n),lz(n),{shared:t,Treemap:n}}s(fz,`createTreemapServices`);var pz=class extends tR{static{s(this,`WardleyValueConverter`)}runCustomConverter(e,t,n){switch(e.name.toUpperCase()){case`LINK_LABEL`:return t.substring(1).trim();default:return}}},mz={parser:{ValueConverter:s(()=>new pz,`ValueConverter`)}};function hz(e=ZN){let t=Q(LN(e),RL),n=Q(IN({shared:t}),$L,mz);return t.ServiceRegistry.register(n),{shared:t,Wardley:n}}s(hz,`createWardleyServices`);var gz={},_z={info:s(async()=>{let{createInfoServices:t}=await e(async()=>{let{createInfoServices:e}=await import(`./info-A6RAGUB7-CYHIOuL5.js`);return{createInfoServices:e}},[],import.meta.url);gz.info=t().Info.parser.LangiumParser},`info`),packet:s(async()=>{let{createPacketServices:t}=await e(async()=>{let{createPacketServices:e}=await import(`./packet-AYTQ26CC-Ctg2wH4o.js`);return{createPacketServices:e}},[],import.meta.url);gz.packet=t().Packet.parser.LangiumParser},`packet`),pie:s(async()=>{let{createPieServices:t}=await e(async()=>{let{createPieServices:e}=await import(`./pie-WAS4IAKB-CU6GnSzI.js`);return{createPieServices:e}},[],import.meta.url);gz.pie=t().Pie.parser.LangiumParser},`pie`),treeView:s(async()=>{let{createTreeViewServices:t}=await e(async()=>{let{createTreeViewServices:e}=await import(`./treeView-Q6P3EWNA-D6u1mSx1.js`);return{createTreeViewServices:e}},[],import.meta.url);gz.treeView=t().TreeView.parser.LangiumParser},`treeView`),architecture:s(async()=>{let{createArchitectureServices:t}=await e(async()=>{let{createArchitectureServices:e}=await import(`./architecture-7GRP2DOG-C3S9W0aD.js`);return{createArchitectureServices:e}},[],import.meta.url);gz.architecture=t().Architecture.parser.LangiumParser},`architecture`),gitGraph:s(async()=>{let{createGitGraphServices:t}=await e(async()=>{let{createGitGraphServices:e}=await import(`./gitGraph-4MIJSDKK-CX3KwgqY.js`);return{createGitGraphServices:e}},[],import.meta.url);gz.gitGraph=t().GitGraph.parser.LangiumParser},`gitGraph`),eventmodeling:s(async()=>{let{createEventModelingServices:t}=await e(async()=>{let{createEventModelingServices:e}=await import(`./eventmodeling-NTZA5JFV-vjy4Z61x.js`);return{createEventModelingServices:e}},[],import.meta.url);gz.eventmodeling=t().EventModel.parser.LangiumParser},`eventmodeling`),radar:s(async()=>{let{createRadarServices:t}=await e(async()=>{let{createRadarServices:e}=await import(`./radar-RG4KPBEZ-Bhe0us4A.js`);return{createRadarServices:e}},[],import.meta.url);gz.radar=t().Radar.parser.LangiumParser},`radar`),railroad:s(async()=>{let{createRailroadServices:t}=await e(async()=>{let{createRailroadServices:e}=await import(`./railroad-74A4TZTK-DEgiNGfx.js`);return{createRailroadServices:e}},[],import.meta.url);gz.railroad=t().Railroad.parser.LangiumParser},`railroad`),railroadEbnf:s(async()=>{let{createRailroadEbnfServices:t}=await e(async()=>{let{createRailroadEbnfServices:e}=await import(`./railroad-ebnf-LZEXJU2U-BzlcTUmk.js`);return{createRailroadEbnfServices:e}},[],import.meta.url);gz.railroadEbnf=t().RailroadEbnf.parser.LangiumParser},`railroadEbnf`),railroadAbnf:s(async()=>{let{createRailroadAbnfServices:t}=await e(async()=>{let{createRailroadAbnfServices:e}=await import(`./railroad-abnf-HS5TGJTU-GK7ct0QX.js`);return{createRailroadAbnfServices:e}},[],import.meta.url);gz.railroadAbnf=t().RailroadAbnf.parser.LangiumParser},`railroadAbnf`),railroadPeg:s(async()=>{let{createRailroadPegServices:t}=await e(async()=>{let{createRailroadPegServices:e}=await import(`./railroad-peg-WCYAUIDC-7ESM96BW.js`);return{createRailroadPegServices:e}},[],import.meta.url);gz.railroadPeg=t().RailroadPeg.parser.LangiumParser},`railroadPeg`),treemap:s(async()=>{let{createTreemapServices:t}=await e(async()=>{let{createTreemapServices:e}=await import(`./treemap-WGGIJYW6-CM87Vav0.js`);return{createTreemapServices:e}},[],import.meta.url);gz.treemap=t().Treemap.parser.LangiumParser},`treemap`),wardley:s(async()=>{let{createWardleyServices:t}=await e(async()=>{let{createWardleyServices:e}=await import(`./wardley-WFR3VGLG-BPoQUTzr.js`);return{createWardleyServices:e}},[],import.meta.url);gz.wardley=t().Wardley.parser.LangiumParser},`wardley`),cynefin:s(async()=>{let{createCynefinServices:t}=await e(async()=>{let{createCynefinServices:e}=await import(`./cynefin-OW5HDTMX-BckONr__.js`);return{createCynefinServices:e}},[],import.meta.url);gz.cynefin=t().Cynefin.parser.LangiumParser},`cynefin`)};async function vz(e,t){let n=_z[e];if(!n)throw Error(`Unknown diagram type: ${e}`);gz[e]||await n();let r=gz[e].parse(t);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new yz(r);return r.value}s(vz,`parse`);var yz=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(`
165
165
  `),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(`
166
166
  `);super(`Parsing failed: ${t} ${n}`),this.result=e}static{s(this,`MermaidParseError`)}};export{uR as A,TR as C,yR as D,CR as E,sR as M,DF as N,bR as O,kR as S,SR as T,FR as _,dz as a,NR as b,az as c,YR as d,XR as f,VR as g,BR as h,hz as i,oR as j,lR as k,ez as l,GR as m,vz as n,fz as o,WR as p,mz as r,iz as s,yz as t,tz as u,IR as v,ER as w,OR as x,MR as y};
@@ -1,4 +1,4 @@
1
- import{t as e}from"./chunk-XXDRQBXY-C_32ArgP.js";import{t}from"./chunk-POPQ4Y6H-C030x_Z1.js";import{Dr as n,Er as r,Ir as i,Nr as a,ar as o,cr as s,d as c,kr as l,lr as u,pr as d,u as f,vr as p}from"./MermaidBlock-Dz4IP-Tx.js";var m=[];for(let e=0;e<256;++e)m.push((e+256).toString(16).slice(1));function h(e,t=0){return(m[e[t+0]]+m[e[t+1]]+m[e[t+2]]+m[e[t+3]]+`-`+m[e[t+4]]+m[e[t+5]]+`-`+m[e[t+6]]+m[e[t+7]]+`-`+m[e[t+8]]+m[e[t+9]]+`-`+m[e[t+10]]+m[e[t+11]]+m[e[t+12]]+m[e[t+13]]+m[e[t+14]]+m[e[t+15]]).toLowerCase()}var g,_=new Uint8Array(16);function v(){if(!g){if(typeof crypto>`u`||!crypto.getRandomValues)throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);g=crypto.getRandomValues.bind(crypto)}return g(_)}var y={randomUUID:typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function b(e,t,n){e||={};let r=e.random??e.rng?.()??v();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return h(r)}function x(e,t,n){return y.randomUUID&&!t&&!e?y.randomUUID():b(e,t,n)}var S=(function(){var e=i(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,4],n=[1,13],r=[1,12],a=[1,15],o=[1,16],s=[1,20],c=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,6,13,15,16,19,22],h=[1,33],g=[1,34],_=[1,6,7,11,13,15,16,19,22],v={trace:i(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`MINDMAP`,11:`EOF`,13:`SPACELIST`,15:`ICON`,16:`CLASS`,19:`NODE_DSTART`,20:`NODE_DESCR`,21:`NODE_DEND`,22:`NODE_ID`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:i(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 16:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 17:case 21:r.decorateNode({class:a[s]});break;case 18:r.getLogger().trace(`SPACELIST`);break;case 19:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 20:r.decorateNode({icon:a[s]});break;case 25:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 26:this.$={id:a[s],descr:a[s],type:r.nodeType.DEFAULT};break;case 27:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])};break}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:n,7:[1,10],9:9,12:11,13:r,14:14,15:a,16:o,17:17,18:18,19:s,22:c},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:n,12:21,13:r,14:14,15:a,16:o,17:17,18:18,19:s,22:c},{6:n,9:22,12:11,13:r,14:14,15:a,16:o,17:17,18:18,19:s,22:c},{6:u,7:d,10:23,11:f},e(p,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:s,22:c}),e(p,[2,18]),e(p,[2,19]),e(p,[2,20]),e(p,[2,21]),e(p,[2,23]),e(p,[2,24]),e(p,[2,26],{19:[1,30]}),{20:[1,31]},{6:u,7:d,10:32,11:f},{1:[2,7],6:n,12:21,13:r,14:14,15:a,16:o,17:17,18:18,19:s,22:c},e(m,[2,14],{7:h,11:g}),e(_,[2,8]),e(_,[2,9]),e(_,[2,10]),e(p,[2,15]),e(p,[2,16]),e(p,[2,17]),{20:[1,35]},{21:[1,36]},e(m,[2,13],{7:h,11:g}),e(_,[2,11]),e(_,[2,12]),{21:[1,37]},e(p,[2,25]),e(p,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:i(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:i(function(e){var t=this,n=[0],r=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,a.length-=e,o.length-=e}i(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}i(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
1
+ import{t as e}from"./chunk-XXDRQBXY-WtVtVhpq.js";import{t}from"./chunk-POPQ4Y6H-BvutC1JH.js";import{Dr as n,Er as r,Ir as i,Nr as a,ar as o,cr as s,d as c,kr as l,lr as u,pr as d,u as f,vr as p}from"./MermaidBlock-CI9NjqQx.js";var m=[];for(let e=0;e<256;++e)m.push((e+256).toString(16).slice(1));function h(e,t=0){return(m[e[t+0]]+m[e[t+1]]+m[e[t+2]]+m[e[t+3]]+`-`+m[e[t+4]]+m[e[t+5]]+`-`+m[e[t+6]]+m[e[t+7]]+`-`+m[e[t+8]]+m[e[t+9]]+`-`+m[e[t+10]]+m[e[t+11]]+m[e[t+12]]+m[e[t+13]]+m[e[t+14]]+m[e[t+15]]).toLowerCase()}var g,_=new Uint8Array(16);function v(){if(!g){if(typeof crypto>`u`||!crypto.getRandomValues)throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);g=crypto.getRandomValues.bind(crypto)}return g(_)}var y={randomUUID:typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function b(e,t,n){e||={};let r=e.random??e.rng?.()??v();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return h(r)}function x(e,t,n){return y.randomUUID&&!t&&!e?y.randomUUID():b(e,t,n)}var S=(function(){var e=i(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,4],n=[1,13],r=[1,12],a=[1,15],o=[1,16],s=[1,20],c=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,6,13,15,16,19,22],h=[1,33],g=[1,34],_=[1,6,7,11,13,15,16,19,22],v={trace:i(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`MINDMAP`,11:`EOF`,13:`SPACELIST`,15:`ICON`,16:`CLASS`,19:`NODE_DSTART`,20:`NODE_DESCR`,21:`NODE_DEND`,22:`NODE_ID`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:i(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 16:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 17:case 21:r.decorateNode({class:a[s]});break;case 18:r.getLogger().trace(`SPACELIST`);break;case 19:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 20:r.decorateNode({icon:a[s]});break;case 25:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 26:this.$={id:a[s],descr:a[s],type:r.nodeType.DEFAULT};break;case 27:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])};break}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:n,7:[1,10],9:9,12:11,13:r,14:14,15:a,16:o,17:17,18:18,19:s,22:c},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:n,12:21,13:r,14:14,15:a,16:o,17:17,18:18,19:s,22:c},{6:n,9:22,12:11,13:r,14:14,15:a,16:o,17:17,18:18,19:s,22:c},{6:u,7:d,10:23,11:f},e(p,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:s,22:c}),e(p,[2,18]),e(p,[2,19]),e(p,[2,20]),e(p,[2,21]),e(p,[2,23]),e(p,[2,24]),e(p,[2,26],{19:[1,30]}),{20:[1,31]},{6:u,7:d,10:32,11:f},{1:[2,7],6:n,12:21,13:r,14:14,15:a,16:o,17:17,18:18,19:s,22:c},e(m,[2,14],{7:h,11:g}),e(_,[2,8]),e(_,[2,9]),e(_,[2,10]),e(p,[2,15]),e(p,[2,16]),e(p,[2,17]),{20:[1,35]},{21:[1,36]},e(m,[2,13],{7:h,11:g}),e(_,[2,11]),e(_,[2,12]),{21:[1,37]},e(p,[2,25]),e(p,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:i(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:i(function(e){var t=this,n=[0],r=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,a.length-=e,o.length-=e}i(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}i(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
2
  `+h.showPosition()+`
3
3
  Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),a.push(h.yytext),o.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};v.lexer=(function(){return{EOF:1,parseError:i(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:i(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:i(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:i(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:i(function(){return this._more=!0,this},`more`),reject:i(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:i(function(e){this.unput(this.match.slice(e))},`less`),pastInput:i(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:i(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:i(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
@@ -0,0 +1 @@
1
+ import{S as e}from"./mermaid-parser.core-C-Sc5_7E.js";export{e as createPacketServices};
@@ -1 +1 @@
1
- import{t as e,u as t}from"./mermaid-parser.core-KGSy4jWT.js";import{n,r,t as i}from"./chunk-SVP7TREG-BLTlmMU7.js";import{t as a}from"./chunk-JWPE2WC7-vYvVJb_M.js";import{Ir as o,Nr as s}from"./MermaidBlock-Dz4IP-Tx.js";var c=t().RailroadPeg.parser.LangiumParser,l=o(e=>{let t=e.alternatives.map(u);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformOrderedChoice`),u=o(e=>{let t=e.elements.map(d);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformSequence`),d=o(e=>{let t=p(e.suffix);return e.operator?{type:`special`,text:e.operator===`&`?`&${f(t)}`:`!${f(t)}`}:t},`transformPrefix`),f=o(e=>{switch(e.type){case`terminal`:return`"${e.value}"`;case`nonterminal`:return e.name;case`special`:return e.text;default:return`(...)`}},`nodeToLabel`),p=o(e=>{let t=m(e.primary);if(!e.operator)return t;switch(e.operator){case`?`:return{type:`optional`,element:t};case`*`:return{type:`repetition`,element:t,min:0,max:1/0};case`+`:return{type:`repetition`,element:t,min:1,max:1/0};default:throw Error(`Unsupported PEG suffix operator: ${e.operator}`)}},`transformSuffix`),m=o(e=>{switch(e.$type){case`PegLiteral`:return{type:`terminal`,value:e.value};case`PegIdentifier`:return{type:`nonterminal`,name:e.name};case`PegGroup`:return l(e.element);case`PegAny`:return{type:`special`,text:e.dot};default:throw Error(`Unsupported PEG primary node: ${e.$type}`)}},`transformPrimary`),h=o(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),g=o(e=>{a(e,i),e.title&&i.setTitle(e.title),e.rules.map(e=>i.addRule(h(e)))},`populateDb`),_={parser:{parse:o(t=>{i.clear(),s.debug(`[PEG Parser] Starting Langium parse`);let n=c.parse(t);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new e(n);let r=n.value;s.debug(`[PEG Parser] Parsed rules:`,r.rules.length),g(r),s.debug(`[PEG Parser] Parse complete`)},`parse`),parser:{yy:i}},db:i,renderer:r,styles:n};export{_ as diagram};
1
+ import{t as e,u as t}from"./mermaid-parser.core-C-Sc5_7E.js";import{n,r,t as i}from"./chunk-SVP7TREG--LDO57tP.js";import{t as a}from"./chunk-JWPE2WC7-CEttzwEN.js";import{Ir as o,Nr as s}from"./MermaidBlock-CI9NjqQx.js";var c=t().RailroadPeg.parser.LangiumParser,l=o(e=>{let t=e.alternatives.map(u);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformOrderedChoice`),u=o(e=>{let t=e.elements.map(d);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformSequence`),d=o(e=>{let t=p(e.suffix);return e.operator?{type:`special`,text:e.operator===`&`?`&${f(t)}`:`!${f(t)}`}:t},`transformPrefix`),f=o(e=>{switch(e.type){case`terminal`:return`"${e.value}"`;case`nonterminal`:return e.name;case`special`:return e.text;default:return`(...)`}},`nodeToLabel`),p=o(e=>{let t=m(e.primary);if(!e.operator)return t;switch(e.operator){case`?`:return{type:`optional`,element:t};case`*`:return{type:`repetition`,element:t,min:0,max:1/0};case`+`:return{type:`repetition`,element:t,min:1,max:1/0};default:throw Error(`Unsupported PEG suffix operator: ${e.operator}`)}},`transformSuffix`),m=o(e=>{switch(e.$type){case`PegLiteral`:return{type:`terminal`,value:e.value};case`PegIdentifier`:return{type:`nonterminal`,name:e.name};case`PegGroup`:return l(e.element);case`PegAny`:return{type:`special`,text:e.dot};default:throw Error(`Unsupported PEG primary node: ${e.$type}`)}},`transformPrimary`),h=o(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),g=o(e=>{a(e,i),e.title&&i.setTitle(e.title),e.rules.map(e=>i.addRule(h(e)))},`populateDb`),_={parser:{parse:o(t=>{i.clear(),s.debug(`[PEG Parser] Starting Langium parse`);let n=c.parse(t);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new e(n);let r=n.value;s.debug(`[PEG Parser] Parsed rules:`,r.rules.length),g(r),s.debug(`[PEG Parser] Parse complete`)},`parse`),parser:{yy:i}},db:i,renderer:r,styles:n};export{_ as diagram};
@@ -0,0 +1 @@
1
+ import{b as e}from"./mermaid-parser.core-C-Sc5_7E.js";export{e as createPieServices};
@@ -1,4 +1,4 @@
1
- import{n as e}from"./mermaid-parser.core-KGSy4jWT.js";import{t}from"./ordinal-hYBb2elL.js";import{t as n}from"./arc-C4FzinUA.js";import{t as r}from"./chunk-JWPE2WC7-vYvVJb_M.js";import{Cn as i,Ir as a,Ln as o,Lt as s,Nr as c,Rn as l,Sr as u,Vt as d,ar as f,bn as p,br as m,er as h,lr as g,or as _,rr as v,sr as y,ur as b,yr as x}from"./MermaidBlock-Dz4IP-Tx.js";function S(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function C(e){return e}function w(){var e=C,t=S,n=null,r=l(0),a=l(o),s=l(0);function c(c){var l,u=(c=i(c)).length,d,f,p=0,m=Array(u),h=Array(u),g=+r.apply(this,arguments),_=Math.min(o,Math.max(-o,a.apply(this,arguments)-g)),v,y=Math.min(Math.abs(_)/u,s.apply(this,arguments)),b=y*(_<0?-1:1),x;for(l=0;l<u;++l)(x=h[m[l]=l]=+e(c[l],l,c))>0&&(p+=x);for(t==null?n!=null&&m.sort(function(e,t){return n(c[e],c[t])}):m.sort(function(e,n){return t(h[e],h[n])}),l=0,f=p?(_-u*b)/p:0;l<u;++l,g=v)d=m[l],x=h[d],v=g+(x>0?x*f:0)+b,h[d]={data:c[d],index:l,value:x,startAngle:g,endAngle:v,padAngle:y};return h}return c.value=function(t){return arguments.length?(e=typeof t==`function`?t:l(+t),c):e},c.sortValues=function(e){return arguments.length?(t=e,n=null,c):t},c.sort=function(e){return arguments.length?(n=e,t=null,c):n},c.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:l(+e),c):r},c.endAngle=function(e){return arguments.length?(a=typeof e==`function`?e:l(+e),c):a},c.padAngle=function(e){return arguments.length?(s=typeof e==`function`?e:l(+e),c):s},c}var T=f.pie,E={sections:new Map,showData:!1,config:T},D=E.sections,O=E.showData,k=structuredClone(T),A={getConfig:a(()=>structuredClone(k),`getConfig`),clear:a(()=>{D=new Map,O=E.showData,h()},`clear`),setDiagramTitle:u,getDiagramTitle:b,setAccTitle:m,getAccTitle:y,setAccDescription:x,getAccDescription:_,addSection:a(({label:e,value:t})=>{if(t<0)throw Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);D.has(e)||(D.set(e,t),c.debug(`added new section: ${e}, with value: ${t}`))},`addSection`),getSections:a(()=>D,`getSections`),setShowData:a(e=>{O=e},`setShowData`),getShowData:a(()=>O,`getShowData`)},j=a((e,t)=>{r(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},`populateDb`),M={parse:a(async t=>{let n=await e(`pie`,t);c.debug(n),j(n,A)},`parse`)},N=a(e=>`
1
+ import{n as e}from"./mermaid-parser.core-C-Sc5_7E.js";import{t}from"./ordinal-hYBb2elL.js";import{t as n}from"./arc-x-74isv6.js";import{t as r}from"./chunk-JWPE2WC7-CEttzwEN.js";import{Cn as i,Ir as a,Ln as o,Lt as s,Nr as c,Rn as l,Sr as u,Vt as d,ar as f,bn as p,br as m,er as h,lr as g,or as _,rr as v,sr as y,ur as b,yr as x}from"./MermaidBlock-CI9NjqQx.js";function S(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function C(e){return e}function w(){var e=C,t=S,n=null,r=l(0),a=l(o),s=l(0);function c(c){var l,u=(c=i(c)).length,d,f,p=0,m=Array(u),h=Array(u),g=+r.apply(this,arguments),_=Math.min(o,Math.max(-o,a.apply(this,arguments)-g)),v,y=Math.min(Math.abs(_)/u,s.apply(this,arguments)),b=y*(_<0?-1:1),x;for(l=0;l<u;++l)(x=h[m[l]=l]=+e(c[l],l,c))>0&&(p+=x);for(t==null?n!=null&&m.sort(function(e,t){return n(c[e],c[t])}):m.sort(function(e,n){return t(h[e],h[n])}),l=0,f=p?(_-u*b)/p:0;l<u;++l,g=v)d=m[l],x=h[d],v=g+(x>0?x*f:0)+b,h[d]={data:c[d],index:l,value:x,startAngle:g,endAngle:v,padAngle:y};return h}return c.value=function(t){return arguments.length?(e=typeof t==`function`?t:l(+t),c):e},c.sortValues=function(e){return arguments.length?(t=e,n=null,c):t},c.sort=function(e){return arguments.length?(n=e,t=null,c):n},c.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:l(+e),c):r},c.endAngle=function(e){return arguments.length?(a=typeof e==`function`?e:l(+e),c):a},c.padAngle=function(e){return arguments.length?(s=typeof e==`function`?e:l(+e),c):s},c}var T=f.pie,E={sections:new Map,showData:!1,config:T},D=E.sections,O=E.showData,k=structuredClone(T),A={getConfig:a(()=>structuredClone(k),`getConfig`),clear:a(()=>{D=new Map,O=E.showData,h()},`clear`),setDiagramTitle:u,getDiagramTitle:b,setAccTitle:m,getAccTitle:y,setAccDescription:x,getAccDescription:_,addSection:a(({label:e,value:t})=>{if(t<0)throw Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);D.has(e)||(D.set(e,t),c.debug(`added new section: ${e}, with value: ${t}`))},`addSection`),getSections:a(()=>D,`getSections`),setShowData:a(e=>{O=e},`setShowData`),getShowData:a(()=>O,`getShowData`)},j=a((e,t)=>{r(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},`populateDb`),M={parse:a(async t=>{let n=await e(`pie`,t);c.debug(n),j(n,A)},`parse`)},N=a(e=>`
2
2
  .pieCircle{
3
3
  stroke: ${e.pieStrokeColor};
4
4
  stroke-width : ${e.pieStrokeWidth};
@@ -1,4 +1,4 @@
1
- import{t as e}from"./linear-BHjG8b-J.js";import{Ir as t,Nr as n,Sr as r,Zn as i,ar as a,br as o,dr as s,er as c,lr as l,or as u,rr as d,sr as f,ur as p,vr as m,yr as h}from"./MermaidBlock-Dz4IP-Tx.js";var g=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,3],r=[1,4],i=[1,5],a=[1,6],o=[1,7],s=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],c=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],l=[55,56,57],u=[2,36],d=[1,37],f=[1,36],p=[1,38],m=[1,35],h=[1,43],g=[1,41],_=[1,45],v=[1,14],y=[1,23],b=[1,18],x=[1,19],S=[1,20],C=[1,21],w=[1,22],T=[1,24],E=[1,25],D=[1,26],O=[1,27],k=[1,28],A=[1,29],j=[1,32],M=[1,33],N=[1,34],P=[1,39],F=[1,40],I=[1,42],L=[1,44],R=[1,63],z=[1,62],B=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],ee=[1,66],te=[1,67],ne=[1,68],re=[1,69],ie=[1,70],ae=[1,71],oe=[1,72],se=[1,73],ce=[1,74],le=[1,75],ue=[1,76],de=[1,77],V=[4,5,6,7,8,9,10,11,12,13,14,15,18],H=[1,91],U=[1,92],W=[1,93],G=[1,100],K=[1,94],q=[1,97],J=[1,95],Y=[1,96],X=[1,98],Z=[1,99],fe=[1,103],pe=[10,55,56,57],Q=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],me={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:`error`,4:`ALPHA`,5:`NUM`,6:`NODE_STRING`,7:`DOWN`,8:`MINUS`,9:`DEFAULT`,10:`COMMA`,11:`COLON`,12:`AMP`,13:`BRKT`,14:`MULT`,15:`UNICODE_TEXT`,17:`UNIT`,18:`SPACE`,19:`STYLE`,20:`PCT`,25:`CLASSDEF`,28:`QUADRANT`,35:`title`,36:`title_value`,37:`acc_title`,38:`acc_title_value`,39:`acc_descr`,40:`acc_descr_value`,41:`acc_descr_multiline_value`,42:`section`,44:`point_start`,45:`point_x`,46:`point_y`,47:`class_name`,48:`X-AXIS`,49:`AXIS-TEXT-DELIMITER`,50:`Y-AXIS`,51:`QUADRANT_1`,52:`QUADRANT_2`,53:`QUADRANT_3`,54:`QUADRANT_4`,55:`NEWLINE`,56:`SEMI`,57:`EOF`,60:`STR`,61:`MD_STR`,63:`PUNCTUATION`,64:`PLUS`,65:`EQUALS`,66:`DOT`,67:`UNDERSCORE`},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 23:this.$=a[s];break;case 24:this.$=a[s-1]+``+a[s];break;case 26:this.$=a[s-1]+a[s];break;case 27:this.$=[a[s].trim()];break;case 28:a[s-2].push(a[s].trim()),this.$=a[s-2];break;case 29:this.$=a[s-4],r.addClass(a[s-2],a[s]);break;case 37:this.$=[];break;case 42:this.$=a[s].trim(),r.setDiagramTitle(this.$);break;case 43:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 44:case 45:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 46:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 47:r.addPoint(a[s-3],``,a[s-1],a[s],[]);break;case 48:r.addPoint(a[s-4],a[s-3],a[s-1],a[s],[]);break;case 49:r.addPoint(a[s-4],``,a[s-2],a[s-1],a[s]);break;case 50:r.addPoint(a[s-5],a[s-4],a[s-2],a[s-1],a[s]);break;case 51:r.setXAxisLeftText(a[s-2]),r.setXAxisRightText(a[s]);break;case 52:a[s-1].text+=` ⟶ `,r.setXAxisLeftText(a[s-1]);break;case 53:r.setXAxisLeftText(a[s]);break;case 54:r.setYAxisBottomText(a[s-2]),r.setYAxisTopText(a[s]);break;case 55:a[s-1].text+=` ⟶ `,r.setYAxisBottomText(a[s-1]);break;case 56:r.setYAxisBottomText(a[s]);break;case 57:r.setQuadrant1Text(a[s]);break;case 58:r.setQuadrant2Text(a[s]);break;case 59:r.setQuadrant3Text(a[s]);break;case 60:r.setQuadrant4Text(a[s]);break;case 64:this.$={text:a[s],type:`text`};break;case 65:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 66:this.$={text:a[s],type:`text`};break;case 67:this.$={text:a[s],type:`markdown`};break;case 68:this.$=a[s];break;case 69:this.$=a[s-1]+``+a[s];break}},`anonymous`),table:[{18:n,26:1,27:2,28:r,55:i,56:a,57:o},{1:[3]},{18:n,26:8,27:2,28:r,55:i,56:a,57:o},{18:n,26:9,27:2,28:r,55:i,56:a,57:o},e(s,[2,33],{29:10}),e(c,[2,61]),e(c,[2,62]),e(c,[2,63]),{1:[2,30]},{1:[2,31]},e(l,u,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:f,10:p,12:m,13:h,14:g,15:_,18:v,25:y,35:b,37:x,39:S,41:C,42:w,48:T,50:E,51:D,52:O,53:k,54:A,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),e(s,[2,34]),{27:46,55:i,56:a,57:o},e(l,[2,37]),e(l,u,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:d,5:f,10:p,12:m,13:h,14:g,15:_,18:v,25:y,35:b,37:x,39:S,41:C,42:w,48:T,50:E,51:D,52:O,53:k,54:A,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),e(l,[2,39]),e(l,[2,40]),e(l,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},e(l,[2,45]),e(l,[2,46]),{18:[1,51]},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:52,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:53,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:54,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:55,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:56,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:57,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,44:[1,58],47:[1,59],58:61,59:60,63:N,64:P,65:F,66:I,67:L},e(B,[2,64]),e(B,[2,66]),e(B,[2,67]),e(B,[2,70]),e(B,[2,71]),e(B,[2,72]),e(B,[2,73]),e(B,[2,74]),e(B,[2,75]),e(B,[2,76]),e(B,[2,77]),e(B,[2,78]),e(B,[2,79]),e(B,[2,80]),e(B,[2,81]),e(s,[2,35]),e(l,[2,38]),e(l,[2,42]),e(l,[2,43]),e(l,[2,44]),{3:65,4:ee,5:te,6:ne,7:re,8:ie,9:ae,10:oe,11:se,12:ce,13:le,14:ue,15:de,21:64},e(l,[2,53],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,49:[1,78],63:N,64:P,65:F,66:I,67:L}),e(l,[2,56],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,49:[1,79],63:N,64:P,65:F,66:I,67:L}),e(l,[2,57],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),e(l,[2,58],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),e(l,[2,59],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),e(l,[2,60],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),{45:[1,80]},{44:[1,81]},e(B,[2,65]),e(B,[2,82]),e(B,[2,83]),e(B,[2,84]),{3:83,4:ee,5:te,6:ne,7:re,8:ie,9:ae,10:oe,11:se,12:ce,13:le,14:ue,15:de,18:[1,82]},e(V,[2,23]),e(V,[2,1]),e(V,[2,2]),e(V,[2,3]),e(V,[2,4]),e(V,[2,5]),e(V,[2,6]),e(V,[2,7]),e(V,[2,8]),e(V,[2,9]),e(V,[2,10]),e(V,[2,11]),e(V,[2,12]),e(l,[2,52],{58:31,43:84,4:d,5:f,10:p,12:m,13:h,14:g,15:_,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),e(l,[2,55],{58:31,43:85,4:d,5:f,10:p,12:m,13:h,14:g,15:_,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),{46:[1,86]},{45:[1,87]},{4:H,5:U,6:W,8:G,11:K,13:q,16:90,17:J,18:Y,19:X,20:Z,22:89,23:88},e(V,[2,24]),e(l,[2,51],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),e(l,[2,54],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),e(l,[2,47],{22:89,16:90,23:101,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),{46:[1,102]},e(l,[2,29],{10:fe}),e(pe,[2,27],{16:104,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),e(Q,[2,25]),e(Q,[2,13]),e(Q,[2,14]),e(Q,[2,15]),e(Q,[2,16]),e(Q,[2,17]),e(Q,[2,18]),e(Q,[2,19]),e(Q,[2,20]),e(Q,[2,21]),e(Q,[2,22]),e(l,[2,49],{10:fe}),e(l,[2,48],{22:89,16:90,23:105,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),{4:H,5:U,6:W,8:G,11:K,13:q,16:90,17:J,18:Y,19:X,20:Z,22:106},e(Q,[2,26]),e(l,[2,50],{10:fe}),e(pe,[2,28],{16:104,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z})],defaultActions:{8:[2,30],9:[2,31]},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
1
+ import{t as e}from"./linear-D3-vxS4W.js";import{Ir as t,Nr as n,Sr as r,Zn as i,ar as a,br as o,dr as s,er as c,lr as l,or as u,rr as d,sr as f,ur as p,vr as m,yr as h}from"./MermaidBlock-CI9NjqQx.js";var g=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,3],r=[1,4],i=[1,5],a=[1,6],o=[1,7],s=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],c=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],l=[55,56,57],u=[2,36],d=[1,37],f=[1,36],p=[1,38],m=[1,35],h=[1,43],g=[1,41],_=[1,45],v=[1,14],y=[1,23],b=[1,18],x=[1,19],S=[1,20],C=[1,21],w=[1,22],T=[1,24],E=[1,25],D=[1,26],O=[1,27],k=[1,28],A=[1,29],j=[1,32],M=[1,33],N=[1,34],P=[1,39],F=[1,40],I=[1,42],L=[1,44],R=[1,63],z=[1,62],B=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],ee=[1,66],te=[1,67],ne=[1,68],re=[1,69],ie=[1,70],ae=[1,71],oe=[1,72],se=[1,73],ce=[1,74],le=[1,75],ue=[1,76],de=[1,77],V=[4,5,6,7,8,9,10,11,12,13,14,15,18],H=[1,91],U=[1,92],W=[1,93],G=[1,100],K=[1,94],q=[1,97],J=[1,95],Y=[1,96],X=[1,98],Z=[1,99],fe=[1,103],pe=[10,55,56,57],Q=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],me={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:`error`,4:`ALPHA`,5:`NUM`,6:`NODE_STRING`,7:`DOWN`,8:`MINUS`,9:`DEFAULT`,10:`COMMA`,11:`COLON`,12:`AMP`,13:`BRKT`,14:`MULT`,15:`UNICODE_TEXT`,17:`UNIT`,18:`SPACE`,19:`STYLE`,20:`PCT`,25:`CLASSDEF`,28:`QUADRANT`,35:`title`,36:`title_value`,37:`acc_title`,38:`acc_title_value`,39:`acc_descr`,40:`acc_descr_value`,41:`acc_descr_multiline_value`,42:`section`,44:`point_start`,45:`point_x`,46:`point_y`,47:`class_name`,48:`X-AXIS`,49:`AXIS-TEXT-DELIMITER`,50:`Y-AXIS`,51:`QUADRANT_1`,52:`QUADRANT_2`,53:`QUADRANT_3`,54:`QUADRANT_4`,55:`NEWLINE`,56:`SEMI`,57:`EOF`,60:`STR`,61:`MD_STR`,63:`PUNCTUATION`,64:`PLUS`,65:`EQUALS`,66:`DOT`,67:`UNDERSCORE`},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 23:this.$=a[s];break;case 24:this.$=a[s-1]+``+a[s];break;case 26:this.$=a[s-1]+a[s];break;case 27:this.$=[a[s].trim()];break;case 28:a[s-2].push(a[s].trim()),this.$=a[s-2];break;case 29:this.$=a[s-4],r.addClass(a[s-2],a[s]);break;case 37:this.$=[];break;case 42:this.$=a[s].trim(),r.setDiagramTitle(this.$);break;case 43:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 44:case 45:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 46:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 47:r.addPoint(a[s-3],``,a[s-1],a[s],[]);break;case 48:r.addPoint(a[s-4],a[s-3],a[s-1],a[s],[]);break;case 49:r.addPoint(a[s-4],``,a[s-2],a[s-1],a[s]);break;case 50:r.addPoint(a[s-5],a[s-4],a[s-2],a[s-1],a[s]);break;case 51:r.setXAxisLeftText(a[s-2]),r.setXAxisRightText(a[s]);break;case 52:a[s-1].text+=` ⟶ `,r.setXAxisLeftText(a[s-1]);break;case 53:r.setXAxisLeftText(a[s]);break;case 54:r.setYAxisBottomText(a[s-2]),r.setYAxisTopText(a[s]);break;case 55:a[s-1].text+=` ⟶ `,r.setYAxisBottomText(a[s-1]);break;case 56:r.setYAxisBottomText(a[s]);break;case 57:r.setQuadrant1Text(a[s]);break;case 58:r.setQuadrant2Text(a[s]);break;case 59:r.setQuadrant3Text(a[s]);break;case 60:r.setQuadrant4Text(a[s]);break;case 64:this.$={text:a[s],type:`text`};break;case 65:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 66:this.$={text:a[s],type:`text`};break;case 67:this.$={text:a[s],type:`markdown`};break;case 68:this.$=a[s];break;case 69:this.$=a[s-1]+``+a[s];break}},`anonymous`),table:[{18:n,26:1,27:2,28:r,55:i,56:a,57:o},{1:[3]},{18:n,26:8,27:2,28:r,55:i,56:a,57:o},{18:n,26:9,27:2,28:r,55:i,56:a,57:o},e(s,[2,33],{29:10}),e(c,[2,61]),e(c,[2,62]),e(c,[2,63]),{1:[2,30]},{1:[2,31]},e(l,u,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:f,10:p,12:m,13:h,14:g,15:_,18:v,25:y,35:b,37:x,39:S,41:C,42:w,48:T,50:E,51:D,52:O,53:k,54:A,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),e(s,[2,34]),{27:46,55:i,56:a,57:o},e(l,[2,37]),e(l,u,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:d,5:f,10:p,12:m,13:h,14:g,15:_,18:v,25:y,35:b,37:x,39:S,41:C,42:w,48:T,50:E,51:D,52:O,53:k,54:A,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),e(l,[2,39]),e(l,[2,40]),e(l,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},e(l,[2,45]),e(l,[2,46]),{18:[1,51]},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:52,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:53,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:54,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:55,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:56,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:57,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,44:[1,58],47:[1,59],58:61,59:60,63:N,64:P,65:F,66:I,67:L},e(B,[2,64]),e(B,[2,66]),e(B,[2,67]),e(B,[2,70]),e(B,[2,71]),e(B,[2,72]),e(B,[2,73]),e(B,[2,74]),e(B,[2,75]),e(B,[2,76]),e(B,[2,77]),e(B,[2,78]),e(B,[2,79]),e(B,[2,80]),e(B,[2,81]),e(s,[2,35]),e(l,[2,38]),e(l,[2,42]),e(l,[2,43]),e(l,[2,44]),{3:65,4:ee,5:te,6:ne,7:re,8:ie,9:ae,10:oe,11:se,12:ce,13:le,14:ue,15:de,21:64},e(l,[2,53],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,49:[1,78],63:N,64:P,65:F,66:I,67:L}),e(l,[2,56],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,49:[1,79],63:N,64:P,65:F,66:I,67:L}),e(l,[2,57],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),e(l,[2,58],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),e(l,[2,59],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),e(l,[2,60],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),{45:[1,80]},{44:[1,81]},e(B,[2,65]),e(B,[2,82]),e(B,[2,83]),e(B,[2,84]),{3:83,4:ee,5:te,6:ne,7:re,8:ie,9:ae,10:oe,11:se,12:ce,13:le,14:ue,15:de,18:[1,82]},e(V,[2,23]),e(V,[2,1]),e(V,[2,2]),e(V,[2,3]),e(V,[2,4]),e(V,[2,5]),e(V,[2,6]),e(V,[2,7]),e(V,[2,8]),e(V,[2,9]),e(V,[2,10]),e(V,[2,11]),e(V,[2,12]),e(l,[2,52],{58:31,43:84,4:d,5:f,10:p,12:m,13:h,14:g,15:_,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),e(l,[2,55],{58:31,43:85,4:d,5:f,10:p,12:m,13:h,14:g,15:_,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),{46:[1,86]},{45:[1,87]},{4:H,5:U,6:W,8:G,11:K,13:q,16:90,17:J,18:Y,19:X,20:Z,22:89,23:88},e(V,[2,24]),e(l,[2,51],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),e(l,[2,54],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),e(l,[2,47],{22:89,16:90,23:101,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),{46:[1,102]},e(l,[2,29],{10:fe}),e(pe,[2,27],{16:104,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),e(Q,[2,25]),e(Q,[2,13]),e(Q,[2,14]),e(Q,[2,15]),e(Q,[2,16]),e(Q,[2,17]),e(Q,[2,18]),e(Q,[2,19]),e(Q,[2,20]),e(Q,[2,21]),e(Q,[2,22]),e(l,[2,49],{10:fe}),e(l,[2,48],{22:89,16:90,23:105,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),{4:H,5:U,6:W,8:G,11:K,13:q,16:90,17:J,18:Y,19:X,20:Z,22:106},e(Q,[2,26]),e(l,[2,50],{10:fe}),e(pe,[2,28],{16:104,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z})],defaultActions:{8:[2,30],9:[2,31]},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
2
  `+h.showPosition()+`
3
3
  Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};me.lexer=(function(){return{EOF:1,parseError:t(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:t(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:t(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t(function(){return this._more=!0,this},`more`),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:t(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:t(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
@@ -0,0 +1 @@
1
+ import{v as e}from"./mermaid-parser.core-C-Sc5_7E.js";export{e as createRadarServices};
@@ -0,0 +1 @@
1
+ import{g as e}from"./mermaid-parser.core-C-Sc5_7E.js";export{e as createRailroadServices};
@@ -0,0 +1 @@
1
+ import{m as e}from"./mermaid-parser.core-C-Sc5_7E.js";export{e as createRailroadAbnfServices};
@@ -0,0 +1 @@
1
+ import{f as e}from"./mermaid-parser.core-C-Sc5_7E.js";export{e as createRailroadEbnfServices};
@@ -0,0 +1 @@
1
+ import{u as e}from"./mermaid-parser.core-C-Sc5_7E.js";export{e as createRailroadPegServices};
@@ -1 +1 @@
1
- import{g as e,t}from"./mermaid-parser.core-KGSy4jWT.js";import{n,r,t as i}from"./chunk-SVP7TREG-BLTlmMU7.js";import{t as a}from"./chunk-JWPE2WC7-vYvVJb_M.js";import{Ir as o,Nr as s}from"./MermaidBlock-Dz4IP-Tx.js";var c=e().Railroad.parser.LangiumParser,l=o(e=>{switch(e.$type){case`RailroadTerminalExpr`:return{type:`terminal`,value:e.value};case`RailroadNonTerminalExpr`:return{type:`nonterminal`,name:e.name};case`RailroadSpecialExpr`:return{type:`special`,text:e.text};case`RailroadSequenceExpr`:{let t=e.elements.map(l);return t.length===1?t[0]:{type:`sequence`,elements:t}}case`RailroadChoiceExpr`:{let t=e.alternatives.map(l);return t.length===1?t[0]:{type:`choice`,alternatives:t}}case`RailroadOptionalExpr`:return{type:`optional`,element:l(e.element)};case`RailroadOneOrMoreExpr`:return{type:`repetition`,element:l(e.element),min:1,max:1/0};case`RailroadZeroOrMoreExpr`:return{type:`repetition`,element:l(e.element),min:0,max:1/0};default:throw Error(`Unsupported railroad expression: ${e.$type}`)}},`transformExpression`),u=o(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),d=o(e=>{a(e,i),e.title&&i.setTitle(e.title),e.rules.map(e=>i.addRule(u(e)))},`populateDb`),f={parser:{parse:o(e=>{i.clear(),s.debug(`[Railroad Parser] Starting Langium parse`);let n=c.parse(e);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new t(n);let r=n.value;s.debug(`[Railroad Parser] Parsed rules:`,r.rules.length),d(r),s.debug(`[Railroad Parser] Parse complete`)},`parse`),parser:{yy:i}},db:i,renderer:r,styles:n};export{f as diagram};
1
+ import{g as e,t}from"./mermaid-parser.core-C-Sc5_7E.js";import{n,r,t as i}from"./chunk-SVP7TREG--LDO57tP.js";import{t as a}from"./chunk-JWPE2WC7-CEttzwEN.js";import{Ir as o,Nr as s}from"./MermaidBlock-CI9NjqQx.js";var c=e().Railroad.parser.LangiumParser,l=o(e=>{switch(e.$type){case`RailroadTerminalExpr`:return{type:`terminal`,value:e.value};case`RailroadNonTerminalExpr`:return{type:`nonterminal`,name:e.name};case`RailroadSpecialExpr`:return{type:`special`,text:e.text};case`RailroadSequenceExpr`:{let t=e.elements.map(l);return t.length===1?t[0]:{type:`sequence`,elements:t}}case`RailroadChoiceExpr`:{let t=e.alternatives.map(l);return t.length===1?t[0]:{type:`choice`,alternatives:t}}case`RailroadOptionalExpr`:return{type:`optional`,element:l(e.element)};case`RailroadOneOrMoreExpr`:return{type:`repetition`,element:l(e.element),min:1,max:1/0};case`RailroadZeroOrMoreExpr`:return{type:`repetition`,element:l(e.element),min:0,max:1/0};default:throw Error(`Unsupported railroad expression: ${e.$type}`)}},`transformExpression`),u=o(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),d=o(e=>{a(e,i),e.title&&i.setTitle(e.title),e.rules.map(e=>i.addRule(u(e)))},`populateDb`),f={parser:{parse:o(e=>{i.clear(),s.debug(`[Railroad Parser] Starting Langium parse`);let n=c.parse(e);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new t(n);let r=n.value;s.debug(`[Railroad Parser] Parsed rules:`,r.rules.length),d(r),s.debug(`[Railroad Parser] Parse complete`)},`parse`),parser:{yy:i}},db:i,renderer:r,styles:n};export{f as diagram};